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,69 @@
|
||||
{
|
||||
"module": "sensors",
|
||||
"version": "1",
|
||||
"capabilities": [
|
||||
"package-manager",
|
||||
"service-manager"
|
||||
],
|
||||
"tools": [
|
||||
"sensors_summary",
|
||||
"sensors_temperatures",
|
||||
"sensors_fans",
|
||||
"sensors_drives",
|
||||
"sensors_faults",
|
||||
"sensors_health"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"id": "smartmontools",
|
||||
"type": "package",
|
||||
"package": "smartmontools"
|
||||
},
|
||||
{
|
||||
"id": "drives",
|
||||
"type": "process",
|
||||
"name": "sensors-drives",
|
||||
"artifact": "tools",
|
||||
"run": [
|
||||
"./sensors",
|
||||
"drives"
|
||||
],
|
||||
"health": {
|
||||
"kind": "unit"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "watch",
|
||||
"type": "process",
|
||||
"name": "sensors-watch",
|
||||
"artifact": "tools",
|
||||
"run": [
|
||||
"./sensors",
|
||||
"watch"
|
||||
],
|
||||
"health": {
|
||||
"kind": "tool",
|
||||
"tool": "sensors_health",
|
||||
"interval": "60s",
|
||||
"timeout": "10s",
|
||||
"looks": 2,
|
||||
"grace": "60s"
|
||||
}
|
||||
}
|
||||
],
|
||||
"build": {
|
||||
"artifacts": [
|
||||
{
|
||||
"name": "tools",
|
||||
"kind": "bundle",
|
||||
"language": "go",
|
||||
"system": "arch",
|
||||
"from": "cmd/sensors",
|
||||
"binary": "sensors",
|
||||
"loads": [
|
||||
"sensors"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user