Take the catalogue's composition rules into the node-engine

ADR 0593 §7: the composer with its refusals leaves mesh-sdk, so mesh-sdk
carries no composition rule. The catalogue functions only the
node-engine's composition reaches (Resolve, Resolution's Compose,
Declaration, DataItems, LeftOut, Rules and the rest, the settings,
placeholder and template refusals, the rendering helpers) are copied
with their tests into internal/compose/resolution; a method of a
mesh-sdk shape becomes a function taking it first. The composition
calls its own copies, and the captured catalogue its tests read lives
here now, shared by mesh-compose's tests.

Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
2026-11-02 19:15:55 +01:00
parent be0226b624
commit d68e241724
686 changed files with 35703 additions and 80 deletions
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!--
The mesh's file (module fonts, novox/hq research 026/04): which face each generic family means for
this account, so every program that asks for monospace, sans-serif, serif or emoji gets the same
face. Replaced at every push. Other files in this directory are yours.
-->
<fontconfig>
<description>The mesh: the faces monospace, sans-serif, serif and emoji mean</description>
<!--
Families the desktop's files named before this module, mapped to monospace for as long as they
are not installed: a configuration still naming one gets the chosen monospace face rather than
fontconfig's last resort, sans-serif. Where the family is still installed, it is used as before.
Placed first, so the monospace they lead to is resolved by the rule below.
-->
<alias><family>Hack Nerd Font</family><accept><family>monospace</family></accept></alias>
<alias><family>MesloLGS NF</family><accept><family>monospace</family></accept></alias>
<alias><family>Iosevka Nerd Font</family><accept><family>monospace</family></accept></alias>
<alias><family>JetBrains Mono Nerd Font</family><accept><family>JetBrainsMono Nerd Font</family></accept></alias>
<!--
The decided faces, bound the same as the request: a program asking for monospace asks strongly,
and a face added weakly loses to the distribution's own choice (measured with fontconfig 2.18).
-->
<alias binding="same"><family>monospace</family><prefer><family>JetBrainsMono Nerd Font</family></prefer></alias>
<alias binding="same"><family>sans-serif</family><prefer><family>Inter</family><family>Noto Sans</family></prefer></alias>
<alias binding="same"><family>system-ui</family><prefer><family>Inter</family></prefer></alias>
<alias binding="same"><family>serif</family><prefer><family>Noto Serif</family></prefer></alias>
<alias binding="same"><family>emoji</family><prefer><family>Noto Color Emoji</family></prefer></alias>
<!--
Fallbacks for any face: an icon a face lacks comes from the Nerd Fonts symbols, an emoji from
Noto Color Emoji. Appended last, so they never displace a face that has the character.
-->
<match target="pattern">
<edit name="family" mode="append_last"><string>Symbols Nerd Font</string></edit>
<edit name="family" mode="append_last"><string>Noto Color Emoji</string></edit>
</match>
</fontconfig>
@@ -0,0 +1,70 @@
{
"module": "fonts",
"version": "1",
"capabilities": [
"package-manager"
],
"tools": [
"fonts_families",
"fonts_match",
"fonts_glyph",
"fonts_sources",
"fonts_config",
"fonts_cache_rebuild"
],
"resources": [
{
"id": "monospace",
"type": "package",
"package": "ttf-jetbrains-mono-nerd"
},
{
"id": "interface",
"type": "package",
"package": "inter-font"
},
{
"id": "symbols",
"type": "package",
"package": "ttf-nerd-fonts-symbols"
},
{
"id": "noto",
"type": "package",
"package": "noto-fonts"
},
{
"id": "emoji",
"type": "package",
"package": "noto-fonts-emoji"
},
{
"id": "defaults",
"type": "file",
"path": "${machine:account-home}/.config/fontconfig/conf.d/50-mesh-fonts.conf",
"owner": "${machine:account}",
"mode": "0644",
"template": "files/50-mesh-fonts.conf"
}
],
"build": {
"artifacts": [
{
"name": "tools",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/fonts-tools",
"binary": "fonts-tools",
"loads": [
"fonts-tools"
]
},
{
"name": "files",
"kind": "archive",
"from": "files"
}
]
}
}