{ "module": "anthropic-consumer", "version": "1", "slug": "claude", "capabilities": [ "container-runtime" ], "requires": [ "model-access" ], "binds": { "model-access": "${dir:state}/model.json" }, "secrets": { "model-access": "${dir:state}/access-token" }, "emits": [ "usage.session" ], "resources": [ { "id": "state", "type": "directory", "mode": "0700", "place": "." }, { "id": "claude-home", "type": "directory", "path": "/var/lib/anthropic-consumer/claude", "mode": "0700" }, { "id": "out", "type": "directory", "mode": "0700" }, { "id": "apply", "type": "process", "name": "anthropic-consumer-apply", "artifact": "code", "run": [ "node", "apply/index.js" ], "schedule": "*/5 * * * *", "env": { "MESH_MODEL_ACCESS_SECRET_FILE": "${dir:state}/access-token", "MESH_MODEL_ACCESS_BIND_FILE": "${dir:state}/model.json", "MESH_CLAUDE_CREDENTIALS_FILE": "${dir:state}/claude/.credentials.json", "MESH_CLAUDE_IDENTITY_FILE": "${dir:state}/claude/.claude.json" } } ], "build": { "artifacts": [ { "name": "code", "kind": "bundle", "language": "typescript", "entrypoints": [ "apply/index.js", "usage/index.js" ], "loads": [ "usage/index.js" ], "env": { "MESH_CLAUDE_PROJECTS_DIR": "${dir:state}/claude/projects", "MESH_ANTHROPIC_USAGE_OUT": "${dir:state}/out/session-usage.json" } } ] } }