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:
@@ -0,0 +1,160 @@
|
||||
{
|
||||
"module": "zsh",
|
||||
"version": "1",
|
||||
"moved": true,
|
||||
"capabilities": [
|
||||
"package-manager"
|
||||
],
|
||||
"claims": [
|
||||
{
|
||||
"name": "node-login-shell",
|
||||
"scope": "node",
|
||||
"serves": [
|
||||
"execute"
|
||||
]
|
||||
}
|
||||
],
|
||||
"tools": [
|
||||
"zsh_config"
|
||||
],
|
||||
"config": {
|
||||
"execute": {
|
||||
"type": "string",
|
||||
"description": "Whether this machine offers execute, which runs any command as the operator account and so can become root without a person: serve, or withhold on a machine that does not offer it (novox/hq ADR 0268), such as the control-node until a call to it needs a person's approval.",
|
||||
"enum": [
|
||||
"serve",
|
||||
"withhold"
|
||||
],
|
||||
"trusted": true,
|
||||
"default": "serve"
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"collection": "environment",
|
||||
"name": "editor",
|
||||
"attributes": {
|
||||
"kind": "variable",
|
||||
"name": "EDITOR"
|
||||
},
|
||||
"template": "files/env-editor"
|
||||
},
|
||||
{
|
||||
"collection": "environment",
|
||||
"name": "visual",
|
||||
"attributes": {
|
||||
"kind": "variable",
|
||||
"name": "VISUAL"
|
||||
},
|
||||
"template": "files/env-visual"
|
||||
},
|
||||
{
|
||||
"collection": "environment",
|
||||
"name": "xdg-config-home",
|
||||
"attributes": {
|
||||
"kind": "variable",
|
||||
"name": "XDG_CONFIG_HOME"
|
||||
},
|
||||
"template": "files/env-xdg-config-home"
|
||||
},
|
||||
{
|
||||
"collection": "environment",
|
||||
"name": "path-local-bin",
|
||||
"attributes": {
|
||||
"kind": "path",
|
||||
"at": "start",
|
||||
"order": "10"
|
||||
},
|
||||
"template": "files/env-path-local-bin"
|
||||
},
|
||||
{
|
||||
"collection": "environment",
|
||||
"name": "path-scripts",
|
||||
"attributes": {
|
||||
"kind": "path",
|
||||
"at": "start",
|
||||
"order": "20"
|
||||
},
|
||||
"template": "files/env-path-scripts"
|
||||
},
|
||||
{
|
||||
"collection": "environment",
|
||||
"name": "path-scripts-bin",
|
||||
"attributes": {
|
||||
"kind": "path",
|
||||
"at": "start",
|
||||
"order": "30"
|
||||
},
|
||||
"template": "files/env-path-scripts-bin"
|
||||
}
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"id": "package",
|
||||
"type": "package",
|
||||
"package": "zsh"
|
||||
},
|
||||
{
|
||||
"id": "env",
|
||||
"type": "file",
|
||||
"path": "${machine:account-home}/.zshenv",
|
||||
"owner": "${machine:account}",
|
||||
"mode": "0644",
|
||||
"into": "block",
|
||||
"at": "start",
|
||||
"template": "files/zshenv"
|
||||
},
|
||||
{
|
||||
"id": "rc",
|
||||
"type": "file",
|
||||
"path": "${machine:account-home}/.zshrc",
|
||||
"owner": "${machine:account}",
|
||||
"mode": "0644",
|
||||
"into": "block",
|
||||
"at": "start",
|
||||
"template": "files/zshrc"
|
||||
},
|
||||
{
|
||||
"id": "login",
|
||||
"type": "user",
|
||||
"name": "${machine:account}",
|
||||
"shell": "/usr/bin/zsh"
|
||||
},
|
||||
{
|
||||
"id": "state",
|
||||
"type": "directory",
|
||||
"place": ".",
|
||||
"owner": "root",
|
||||
"mode": "0755",
|
||||
"unknown": "program"
|
||||
},
|
||||
{
|
||||
"id": "tools-conf",
|
||||
"type": "file",
|
||||
"path": "${dir:state}/tools.conf",
|
||||
"owner": "root",
|
||||
"mode": "0644",
|
||||
"template": "files/tools.conf"
|
||||
}
|
||||
],
|
||||
"build": {
|
||||
"artifacts": [
|
||||
{
|
||||
"name": "tools",
|
||||
"kind": "bundle",
|
||||
"language": "typescript",
|
||||
"entrypoints": [
|
||||
"tools/index.js"
|
||||
],
|
||||
"env": {
|
||||
"ZSH_TOOLS_CONF": "${dir:state}/tools.conf"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "files",
|
||||
"kind": "archive",
|
||||
"from": "files"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user