An identity is `mesh_<node>_<slug-or-name>` and a backend keeps 20 characters (an S3 access key). Overflow makes a module unresolvable, and this catalogue was finding it one module at a time, on a raise: route-proxy on novox is 22, home-assistant on ace is 23. Two found by hand where a sweep would have found eighteen. So the whole catalogue was swept instead, against the longest node name the mesh actually has (`shanks`, six characters) rather than against the node each module happens to sit on today — a module is assigned somewhere, and where is not a property of the manifest. That leaves eight characters for the identity source, and eighteen modules were over it. Slugs added, chosen to stay greppable in a provider's user list: anthropic-consumer claude openai-consumer openai anthropic-manager anthmgr portainer portain audit-logger audit public-acme pubacme bookshelf books qbittorrent qbt cloudflare-dns cfdns resolv-conf resolv confluence confl resolved-split-dns splitdns home-assistant hass route-proxy rproxy invoicing invoice verdaccio verdacc mosquitto mosq nextcloud ncloud A slug changes the login the mesh mints, so a module already provisioned under its full name is re-minted under the slug and its old login withdrawn — which is the provisioner's ordinary business, but it is a change, not a no-op. Checked with the real parser: every one of the 66 manifests through `catalogue.ParseManifest`, and every module's `CheckIdentity` against all four node names. 0 problems, where the same check over the parent commit reports 44.
93 lines
2.5 KiB
JSON
93 lines
2.5 KiB
JSON
{
|
|
"module": "anthropic-consumer",
|
|
"version": "1",
|
|
"slug": "claude",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"model-access"
|
|
],
|
|
"binds": {
|
|
"model-access": "/var/lib/anthropic-consumer/model.json"
|
|
},
|
|
"secrets": {
|
|
"model-access": "/var/lib/anthropic-consumer/access-token"
|
|
},
|
|
"own-secrets": {
|
|
"broker": "/var/lib/mesh/anthropic-consumer/broker"
|
|
},
|
|
"emits": [
|
|
"module.anthropic-consumer.usage.session"
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/anthropic-consumer",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"path": "/var/lib/anthropic-consumer",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "claude-home",
|
|
"type": "directory",
|
|
"path": "/var/lib/anthropic-consumer/claude",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "out",
|
|
"type": "directory",
|
|
"path": "/var/lib/anthropic-consumer/out",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "apply",
|
|
"type": "container",
|
|
"name": "mesh-anthropic-consumer-apply",
|
|
"image": "mesh-runtime-anthropic-consumer@sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
"network": "host",
|
|
"schedule": "*/5 * * * *",
|
|
"args": [
|
|
"run",
|
|
"/app/modules/anthropic-consumer/dist/apply/index.js"
|
|
],
|
|
"volumes": [
|
|
"/var/lib/anthropic-consumer:/run/state"
|
|
],
|
|
"env": {
|
|
"MESH_MODEL_ACCESS_SECRET_FILE": "/run/state/access-token",
|
|
"MESH_MODEL_ACCESS_BIND_FILE": "/run/state/model.json",
|
|
"MESH_CLAUDE_CREDENTIALS_FILE": "/run/state/claude/.credentials.json",
|
|
"MESH_CLAUDE_IDENTITY_FILE": "/run/state/claude/.claude.json"
|
|
}
|
|
},
|
|
{
|
|
"id": "usage",
|
|
"type": "container",
|
|
"name": "mesh-anthropic-consumer-usage",
|
|
"image": "mesh-runtime-anthropic-consumer@sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
"network": "host",
|
|
"schedule": "*/5 * * * *",
|
|
"args": [
|
|
"run",
|
|
"/app/modules/anthropic-consumer/dist/usage/index.js"
|
|
],
|
|
"volumes": [
|
|
"/var/lib/mesh/anthropic-consumer/broker:/run/secrets/broker:ro",
|
|
"/var/lib/anthropic-consumer:/run/state"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "/run/secrets/broker",
|
|
"MESH_CLAUDE_PROJECTS_DIR": "/run/state/claude/projects",
|
|
"MESH_ANTHROPIC_USAGE_OUT": "/run/state/out/session-usage.json",
|
|
"MESH_TOOLS_MAIN": "/app/dist/main.js"
|
|
}
|
|
}
|
|
]
|
|
}
|