@pleri/olam-cli 0.1.201 → 0.1.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -169
- package/dist/agent-stream/agent-sdk-to-chunks.js +1 -1
- package/dist/agent-stream/driver-runner.js +73 -7
- package/dist/agent-stream/host-driver-launch.js +14 -1
- package/dist/agent-stream/prototype-gen-launch.js +113 -0
- package/dist/agent-stream/question-broker-bridge.js +335 -0
- package/dist/agent-stream/sdk-env-merge.demo.js +35 -0
- package/dist/agent-stream/sdk-env-merge.js +98 -0
- package/dist/image-digests.json +8 -8
- package/dist/index.js +9533 -6258
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +24721 -12934
- package/hermes-bundle/version.json +1 -1
- package/hooks/__tests__/_loader.py +26 -0
- package/hooks/__tests__/prompts.py +63 -0
- package/hooks/__tests__/test_classify_bench.py +94 -0
- package/hooks/__tests__/test_classify_pins.py +78 -0
- package/hooks/model-router.py +17 -4
- package/host-cp/k8s/manifests/50-deployment.yaml +1 -1
- package/host-cp/k8s/manifests/auth-service/50-deployment.yaml +1 -1
- package/host-cp/k8s/manifests/kg-service/50-deployment.yaml +1 -1
- package/host-cp/k8s/manifests/mcp-auth-service/50-deployment.yaml +1 -1
- package/host-cp/k8s/manifests/memory-service/50-deployment.yaml +1 -1
- package/host-cp/src/op-side-longpoll.mjs +212 -0
- package/host-cp/src/plan-chat-proxy-headers.mjs +53 -0
- package/host-cp/src/plan-chat-service.mjs +100 -0
- package/host-cp/src/plan-orchestrator.mjs +100 -6
- package/host-cp/src/server.mjs +607 -45
- package/memory-hooks/agentmemory-classify-queue.mjs +363 -0
- package/memory-hooks/agentmemory-recall-trigger.mjs +233 -0
- package/memory-hooks/agentmemory-reflect-cite.mjs +332 -0
- package/memory-hooks/agentmemory-session-recall.js +332 -0
- package/memory-hooks/recall-log.mjs +185 -0
- package/package.json +9 -4
- package/dist/ask/checkout.d.ts +0 -19
- package/dist/ask/checkout.d.ts.map +0 -1
- package/dist/ask/checkout.js +0 -40
- package/dist/ask/checkout.js.map +0 -1
- package/dist/ask/knowledge-pack-builder.d.ts +0 -72
- package/dist/ask/knowledge-pack-builder.d.ts.map +0 -1
- package/dist/ask/knowledge-pack-builder.js +0 -96
- package/dist/ask/knowledge-pack-builder.js.map +0 -1
- package/dist/ask/knowledge-pack.generated.d.ts +0 -8
- package/dist/ask/knowledge-pack.generated.d.ts.map +0 -1
- package/dist/ask/knowledge-pack.generated.js +0 -2362
- package/dist/ask/knowledge-pack.generated.js.map +0 -1
- package/dist/ask/one-shot.d.ts +0 -21
- package/dist/ask/one-shot.d.ts.map +0 -1
- package/dist/ask/one-shot.js +0 -50
- package/dist/ask/one-shot.js.map +0 -1
- package/dist/ask/repl.d.ts +0 -30
- package/dist/ask/repl.d.ts.map +0 -1
- package/dist/ask/repl.js +0 -109
- package/dist/ask/repl.js.map +0 -1
- package/dist/ask/sdk-client.d.ts +0 -87
- package/dist/ask/sdk-client.d.ts.map +0 -1
- package/dist/ask/sdk-client.js +0 -118
- package/dist/ask/sdk-client.js.map +0 -1
- package/dist/ask/system-prompt.d.ts +0 -30
- package/dist/ask/system-prompt.d.ts.map +0 -1
- package/dist/ask/system-prompt.js +0 -31
- package/dist/ask/system-prompt.js.map +0 -1
- package/dist/cli-version.d.ts +0 -16
- package/dist/cli-version.d.ts.map +0 -1
- package/dist/cli-version.js +0 -39
- package/dist/cli-version.js.map +0 -1
- package/dist/commands/ask.d.ts +0 -27
- package/dist/commands/ask.d.ts.map +0 -1
- package/dist/commands/ask.js +0 -63
- package/dist/commands/ask.js.map +0 -1
- package/dist/commands/auth-list-json.d.ts +0 -87
- package/dist/commands/auth-list-json.d.ts.map +0 -1
- package/dist/commands/auth-list-json.js +0 -71
- package/dist/commands/auth-list-json.js.map +0 -1
- package/dist/commands/auth-migrate.d.ts +0 -212
- package/dist/commands/auth-migrate.d.ts.map +0 -1
- package/dist/commands/auth-migrate.js +0 -465
- package/dist/commands/auth-migrate.js.map +0 -1
- package/dist/commands/auth-status.d.ts +0 -51
- package/dist/commands/auth-status.d.ts.map +0 -1
- package/dist/commands/auth-status.js +0 -250
- package/dist/commands/auth-status.js.map +0 -1
- package/dist/commands/auth-upgrade.d.ts +0 -88
- package/dist/commands/auth-upgrade.d.ts.map +0 -1
- package/dist/commands/auth-upgrade.js +0 -431
- package/dist/commands/auth-upgrade.js.map +0 -1
- package/dist/commands/auth.d.ts +0 -31
- package/dist/commands/auth.d.ts.map +0 -1
- package/dist/commands/auth.js +0 -784
- package/dist/commands/auth.js.map +0 -1
- package/dist/commands/begin.d.ts +0 -27
- package/dist/commands/begin.d.ts.map +0 -1
- package/dist/commands/begin.js +0 -45
- package/dist/commands/begin.js.map +0 -1
- package/dist/commands/bootstrap.d.ts +0 -111
- package/dist/commands/bootstrap.d.ts.map +0 -1
- package/dist/commands/bootstrap.js +0 -485
- package/dist/commands/bootstrap.js.map +0 -1
- package/dist/commands/clean.d.ts +0 -41
- package/dist/commands/clean.d.ts.map +0 -1
- package/dist/commands/clean.js +0 -382
- package/dist/commands/clean.js.map +0 -1
- package/dist/commands/completion.d.ts +0 -30
- package/dist/commands/completion.d.ts.map +0 -1
- package/dist/commands/completion.js +0 -50
- package/dist/commands/completion.js.map +0 -1
- package/dist/commands/config.d.ts +0 -3
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -146
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/create.d.ts +0 -8
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js +0 -775
- package/dist/commands/create.js.map +0 -1
- package/dist/commands/crystallize.d.ts +0 -18
- package/dist/commands/crystallize.d.ts.map +0 -1
- package/dist/commands/crystallize.js +0 -123
- package/dist/commands/crystallize.js.map +0 -1
- package/dist/commands/destroy.d.ts +0 -59
- package/dist/commands/destroy.d.ts.map +0 -1
- package/dist/commands/destroy.js +0 -148
- package/dist/commands/destroy.js.map +0 -1
- package/dist/commands/diagnose.d.ts +0 -36
- package/dist/commands/diagnose.d.ts.map +0 -1
- package/dist/commands/diagnose.js +0 -177
- package/dist/commands/diagnose.js.map +0 -1
- package/dist/commands/dispatch-resolve.d.ts +0 -54
- package/dist/commands/dispatch-resolve.d.ts.map +0 -1
- package/dist/commands/dispatch-resolve.js +0 -105
- package/dist/commands/dispatch-resolve.js.map +0 -1
- package/dist/commands/dispatch.d.ts +0 -18
- package/dist/commands/dispatch.d.ts.map +0 -1
- package/dist/commands/dispatch.js +0 -159
- package/dist/commands/dispatch.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -258
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -1073
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/enter.d.ts +0 -63
- package/dist/commands/enter.d.ts.map +0 -1
- package/dist/commands/enter.js +0 -230
- package/dist/commands/enter.js.map +0 -1
- package/dist/commands/flywheel/check-persona-skeleton.d.ts +0 -35
- package/dist/commands/flywheel/check-persona-skeleton.d.ts.map +0 -1
- package/dist/commands/flywheel/check-persona-skeleton.js +0 -151
- package/dist/commands/flywheel/check-persona-skeleton.js.map +0 -1
- package/dist/commands/flywheel/diversity-check.d.ts +0 -17
- package/dist/commands/flywheel/diversity-check.d.ts.map +0 -1
- package/dist/commands/flywheel/diversity-check.js +0 -64
- package/dist/commands/flywheel/diversity-check.js.map +0 -1
- package/dist/commands/flywheel/emit-breadcrumb.d.ts +0 -20
- package/dist/commands/flywheel/emit-breadcrumb.d.ts.map +0 -1
- package/dist/commands/flywheel/emit-breadcrumb.js +0 -137
- package/dist/commands/flywheel/emit-breadcrumb.js.map +0 -1
- package/dist/commands/flywheel/index.d.ts +0 -27
- package/dist/commands/flywheel/index.d.ts.map +0 -1
- package/dist/commands/flywheel/index.js +0 -54
- package/dist/commands/flywheel/index.js.map +0 -1
- package/dist/commands/flywheel/install-sessionstart-hook.d.ts +0 -64
- package/dist/commands/flywheel/install-sessionstart-hook.d.ts.map +0 -1
- package/dist/commands/flywheel/install-sessionstart-hook.js +0 -197
- package/dist/commands/flywheel/install-sessionstart-hook.js.map +0 -1
- package/dist/commands/flywheel/install-shims.d.ts +0 -41
- package/dist/commands/flywheel/install-shims.d.ts.map +0 -1
- package/dist/commands/flywheel/install-shims.js +0 -126
- package/dist/commands/flywheel/install-shims.js.map +0 -1
- package/dist/commands/flywheel/k10-measure.d.ts +0 -17
- package/dist/commands/flywheel/k10-measure.d.ts.map +0 -1
- package/dist/commands/flywheel/k10-measure.js +0 -63
- package/dist/commands/flywheel/k10-measure.js.map +0 -1
- package/dist/commands/flywheel/k5-score.d.ts +0 -14
- package/dist/commands/flywheel/k5-score.d.ts.map +0 -1
- package/dist/commands/flywheel/k5-score.js +0 -59
- package/dist/commands/flywheel/k5-score.js.map +0 -1
- package/dist/commands/flywheel/k5-validate.d.ts +0 -46
- package/dist/commands/flywheel/k5-validate.d.ts.map +0 -1
- package/dist/commands/flywheel/k5-validate.js +0 -246
- package/dist/commands/flywheel/k5-validate.js.map +0 -1
- package/dist/commands/flywheel/migrate-overlays.d.ts +0 -116
- package/dist/commands/flywheel/migrate-overlays.d.ts.map +0 -1
- package/dist/commands/flywheel/migrate-overlays.js +0 -792
- package/dist/commands/flywheel/migrate-overlays.js.map +0 -1
- package/dist/commands/flywheel/ping.d.ts +0 -21
- package/dist/commands/flywheel/ping.d.ts.map +0 -1
- package/dist/commands/flywheel/ping.js +0 -79
- package/dist/commands/flywheel/ping.js.map +0 -1
- package/dist/commands/flywheel/sanitize-persona-output.d.ts +0 -38
- package/dist/commands/flywheel/sanitize-persona-output.d.ts.map +0 -1
- package/dist/commands/flywheel/sanitize-persona-output.js +0 -102
- package/dist/commands/flywheel/sanitize-persona-output.js.map +0 -1
- package/dist/commands/flywheel/session-start.d.ts +0 -26
- package/dist/commands/flywheel/session-start.d.ts.map +0 -1
- package/dist/commands/flywheel/session-start.js +0 -119
- package/dist/commands/flywheel/session-start.js.map +0 -1
- package/dist/commands/hermes-kg-hook.d.ts +0 -36
- package/dist/commands/hermes-kg-hook.d.ts.map +0 -1
- package/dist/commands/hermes-kg-hook.js +0 -80
- package/dist/commands/hermes-kg-hook.js.map +0 -1
- package/dist/commands/hermes.d.ts +0 -46
- package/dist/commands/hermes.d.ts.map +0 -1
- package/dist/commands/hermes.js +0 -320
- package/dist/commands/hermes.js.map +0 -1
- package/dist/commands/host-cp.d.ts +0 -216
- package/dist/commands/host-cp.d.ts.map +0 -1
- package/dist/commands/host-cp.js +0 -913
- package/dist/commands/host-cp.js.map +0 -1
- package/dist/commands/implode.d.ts +0 -86
- package/dist/commands/implode.d.ts.map +0 -1
- package/dist/commands/implode.js +0 -468
- package/dist/commands/implode.js.map +0 -1
- package/dist/commands/init.d.ts +0 -86
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -357
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/install.d.ts +0 -22
- package/dist/commands/install.d.ts.map +0 -1
- package/dist/commands/install.js +0 -203
- package/dist/commands/install.js.map +0 -1
- package/dist/commands/keys-list-json.d.ts +0 -55
- package/dist/commands/keys-list-json.d.ts.map +0 -1
- package/dist/commands/keys-list-json.js +0 -54
- package/dist/commands/keys-list-json.js.map +0 -1
- package/dist/commands/keys.d.ts +0 -26
- package/dist/commands/keys.d.ts.map +0 -1
- package/dist/commands/keys.js +0 -157
- package/dist/commands/keys.js.map +0 -1
- package/dist/commands/kg-build.d.ts +0 -80
- package/dist/commands/kg-build.d.ts.map +0 -1
- package/dist/commands/kg-build.js +0 -282
- package/dist/commands/kg-build.js.map +0 -1
- package/dist/commands/kg-classify.d.ts +0 -30
- package/dist/commands/kg-classify.d.ts.map +0 -1
- package/dist/commands/kg-classify.js +0 -88
- package/dist/commands/kg-classify.js.map +0 -1
- package/dist/commands/kg-doctor.d.ts +0 -76
- package/dist/commands/kg-doctor.d.ts.map +0 -1
- package/dist/commands/kg-doctor.js +0 -262
- package/dist/commands/kg-doctor.js.map +0 -1
- package/dist/commands/kg-install-hook.d.ts +0 -20
- package/dist/commands/kg-install-hook.d.ts.map +0 -1
- package/dist/commands/kg-install-hook.js +0 -208
- package/dist/commands/kg-install-hook.js.map +0 -1
- package/dist/commands/kg-mirror.d.ts +0 -72
- package/dist/commands/kg-mirror.d.ts.map +0 -1
- package/dist/commands/kg-mirror.js +0 -397
- package/dist/commands/kg-mirror.js.map +0 -1
- package/dist/commands/kg-savings.d.ts +0 -20
- package/dist/commands/kg-savings.d.ts.map +0 -1
- package/dist/commands/kg-savings.js +0 -77
- package/dist/commands/kg-savings.js.map +0 -1
- package/dist/commands/kg-service-container.d.ts +0 -68
- package/dist/commands/kg-service-container.d.ts.map +0 -1
- package/dist/commands/kg-service-container.js +0 -191
- package/dist/commands/kg-service-container.js.map +0 -1
- package/dist/commands/kg-status.d.ts +0 -59
- package/dist/commands/kg-status.d.ts.map +0 -1
- package/dist/commands/kg-status.js +0 -344
- package/dist/commands/kg-status.js.map +0 -1
- package/dist/commands/kg-uninstall-hook.d.ts +0 -12
- package/dist/commands/kg-uninstall-hook.d.ts.map +0 -1
- package/dist/commands/kg-uninstall-hook.js +0 -121
- package/dist/commands/kg-uninstall-hook.js.map +0 -1
- package/dist/commands/kg-watch.d.ts +0 -49
- package/dist/commands/kg-watch.d.ts.map +0 -1
- package/dist/commands/kg-watch.js +0 -172
- package/dist/commands/kg-watch.js.map +0 -1
- package/dist/commands/lanes-list-json.d.ts +0 -69
- package/dist/commands/lanes-list-json.d.ts.map +0 -1
- package/dist/commands/lanes-list-json.js +0 -42
- package/dist/commands/lanes-list-json.js.map +0 -1
- package/dist/commands/lanes.d.ts +0 -18
- package/dist/commands/lanes.d.ts.map +0 -1
- package/dist/commands/lanes.js +0 -133
- package/dist/commands/lanes.js.map +0 -1
- package/dist/commands/list.d.ts +0 -33
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js +0 -87
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -52
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -180
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/mcp/add.d.ts +0 -9
- package/dist/commands/mcp/add.d.ts.map +0 -1
- package/dist/commands/mcp/add.js +0 -87
- package/dist/commands/mcp/add.js.map +0 -1
- package/dist/commands/mcp/client.d.ts +0 -60
- package/dist/commands/mcp/client.d.ts.map +0 -1
- package/dist/commands/mcp/client.js +0 -70
- package/dist/commands/mcp/client.js.map +0 -1
- package/dist/commands/mcp/complete.d.ts +0 -36
- package/dist/commands/mcp/complete.d.ts.map +0 -1
- package/dist/commands/mcp/complete.js +0 -66
- package/dist/commands/mcp/complete.js.map +0 -1
- package/dist/commands/mcp/import-discovery.d.ts +0 -25
- package/dist/commands/mcp/import-discovery.d.ts.map +0 -1
- package/dist/commands/mcp/import-discovery.js +0 -135
- package/dist/commands/mcp/import-discovery.js.map +0 -1
- package/dist/commands/mcp/import-validate.d.ts +0 -15
- package/dist/commands/mcp/import-validate.d.ts.map +0 -1
- package/dist/commands/mcp/import-validate.js +0 -55
- package/dist/commands/mcp/import-validate.js.map +0 -1
- package/dist/commands/mcp/import.d.ts +0 -12
- package/dist/commands/mcp/import.d.ts.map +0 -1
- package/dist/commands/mcp/import.js +0 -126
- package/dist/commands/mcp/import.js.map +0 -1
- package/dist/commands/mcp/index.d.ts +0 -14
- package/dist/commands/mcp/index.d.ts.map +0 -1
- package/dist/commands/mcp/index.js +0 -39
- package/dist/commands/mcp/index.js.map +0 -1
- package/dist/commands/mcp/install-shared.d.ts +0 -24
- package/dist/commands/mcp/install-shared.d.ts.map +0 -1
- package/dist/commands/mcp/install-shared.js +0 -42
- package/dist/commands/mcp/install-shared.js.map +0 -1
- package/dist/commands/mcp/install.d.ts +0 -20
- package/dist/commands/mcp/install.d.ts.map +0 -1
- package/dist/commands/mcp/install.js +0 -59
- package/dist/commands/mcp/install.js.map +0 -1
- package/dist/commands/mcp/list.d.ts +0 -6
- package/dist/commands/mcp/list.d.ts.map +0 -1
- package/dist/commands/mcp/list.js +0 -56
- package/dist/commands/mcp/list.js.map +0 -1
- package/dist/commands/mcp/login.d.ts +0 -6
- package/dist/commands/mcp/login.d.ts.map +0 -1
- package/dist/commands/mcp/login.js +0 -38
- package/dist/commands/mcp/login.js.map +0 -1
- package/dist/commands/mcp/remove.d.ts +0 -6
- package/dist/commands/mcp/remove.d.ts.map +0 -1
- package/dist/commands/mcp/remove.js +0 -21
- package/dist/commands/mcp/remove.js.map +0 -1
- package/dist/commands/mcp/revoke.d.ts +0 -11
- package/dist/commands/mcp/revoke.d.ts.map +0 -1
- package/dist/commands/mcp/revoke.js +0 -51
- package/dist/commands/mcp/revoke.js.map +0 -1
- package/dist/commands/mcp/serve.d.ts +0 -23
- package/dist/commands/mcp/serve.d.ts.map +0 -1
- package/dist/commands/mcp/serve.js +0 -55
- package/dist/commands/mcp/serve.js.map +0 -1
- package/dist/commands/mcp/status.d.ts +0 -6
- package/dist/commands/mcp/status.d.ts.map +0 -1
- package/dist/commands/mcp/status.js +0 -57
- package/dist/commands/mcp/status.js.map +0 -1
- package/dist/commands/mcp/uninstall.d.ts +0 -20
- package/dist/commands/mcp/uninstall.d.ts.map +0 -1
- package/dist/commands/mcp/uninstall.js +0 -60
- package/dist/commands/mcp/uninstall.js.map +0 -1
- package/dist/commands/memory/_paths.d.ts +0 -25
- package/dist/commands/memory/_paths.d.ts.map +0 -1
- package/dist/commands/memory/_paths.js +0 -57
- package/dist/commands/memory/_paths.js.map +0 -1
- package/dist/commands/memory/bridge.d.ts +0 -57
- package/dist/commands/memory/bridge.d.ts.map +0 -1
- package/dist/commands/memory/bridge.js +0 -152
- package/dist/commands/memory/bridge.js.map +0 -1
- package/dist/commands/memory/index.d.ts +0 -20
- package/dist/commands/memory/index.d.ts.map +0 -1
- package/dist/commands/memory/index.js +0 -47
- package/dist/commands/memory/index.js.map +0 -1
- package/dist/commands/memory/install-hooks.d.ts +0 -22
- package/dist/commands/memory/install-hooks.d.ts.map +0 -1
- package/dist/commands/memory/install-hooks.js +0 -156
- package/dist/commands/memory/install-hooks.js.map +0 -1
- package/dist/commands/memory/install.d.ts +0 -57
- package/dist/commands/memory/install.d.ts.map +0 -1
- package/dist/commands/memory/install.js +0 -114
- package/dist/commands/memory/install.js.map +0 -1
- package/dist/commands/memory/logs.d.ts +0 -19
- package/dist/commands/memory/logs.d.ts.map +0 -1
- package/dist/commands/memory/logs.js +0 -50
- package/dist/commands/memory/logs.js.map +0 -1
- package/dist/commands/memory/mode.d.ts +0 -47
- package/dist/commands/memory/mode.d.ts.map +0 -1
- package/dist/commands/memory/mode.js +0 -185
- package/dist/commands/memory/mode.js.map +0 -1
- package/dist/commands/memory/reclassify.d.ts +0 -56
- package/dist/commands/memory/reclassify.d.ts.map +0 -1
- package/dist/commands/memory/reclassify.js +0 -177
- package/dist/commands/memory/reclassify.js.map +0 -1
- package/dist/commands/memory/secret.d.ts +0 -16
- package/dist/commands/memory/secret.d.ts.map +0 -1
- package/dist/commands/memory/secret.js +0 -80
- package/dist/commands/memory/secret.js.map +0 -1
- package/dist/commands/memory/start.d.ts +0 -25
- package/dist/commands/memory/start.d.ts.map +0 -1
- package/dist/commands/memory/start.js +0 -83
- package/dist/commands/memory/start.js.map +0 -1
- package/dist/commands/memory/stats.d.ts +0 -69
- package/dist/commands/memory/stats.d.ts.map +0 -1
- package/dist/commands/memory/stats.js +0 -164
- package/dist/commands/memory/stats.js.map +0 -1
- package/dist/commands/memory/status.d.ts +0 -45
- package/dist/commands/memory/status.d.ts.map +0 -1
- package/dist/commands/memory/status.js +0 -134
- package/dist/commands/memory/status.js.map +0 -1
- package/dist/commands/memory/stop.d.ts +0 -13
- package/dist/commands/memory/stop.d.ts.map +0 -1
- package/dist/commands/memory/stop.js +0 -52
- package/dist/commands/memory/stop.js.map +0 -1
- package/dist/commands/memory/uninstall.d.ts +0 -19
- package/dist/commands/memory/uninstall.d.ts.map +0 -1
- package/dist/commands/memory/uninstall.js +0 -60
- package/dist/commands/memory/uninstall.js.map +0 -1
- package/dist/commands/memory-service-container.d.ts +0 -130
- package/dist/commands/memory-service-container.d.ts.map +0 -1
- package/dist/commands/memory-service-container.js +0 -251
- package/dist/commands/memory-service-container.js.map +0 -1
- package/dist/commands/observe.d.ts +0 -9
- package/dist/commands/observe.d.ts.map +0 -1
- package/dist/commands/observe.js +0 -42
- package/dist/commands/observe.js.map +0 -1
- package/dist/commands/plans-list-json.d.ts +0 -77
- package/dist/commands/plans-list-json.d.ts.map +0 -1
- package/dist/commands/plans-list-json.js +0 -61
- package/dist/commands/plans-list-json.js.map +0 -1
- package/dist/commands/plans.d.ts +0 -3
- package/dist/commands/plans.d.ts.map +0 -1
- package/dist/commands/plans.js +0 -221
- package/dist/commands/plans.js.map +0 -1
- package/dist/commands/policy-check.d.ts +0 -14
- package/dist/commands/policy-check.d.ts.map +0 -1
- package/dist/commands/policy-check.js +0 -76
- package/dist/commands/policy-check.js.map +0 -1
- package/dist/commands/pr.d.ts +0 -17
- package/dist/commands/pr.d.ts.map +0 -1
- package/dist/commands/pr.js +0 -148
- package/dist/commands/pr.js.map +0 -1
- package/dist/commands/ps.d.ts +0 -57
- package/dist/commands/ps.d.ts.map +0 -1
- package/dist/commands/ps.js +0 -202
- package/dist/commands/ps.js.map +0 -1
- package/dist/commands/refresh-helpers.d.ts +0 -25
- package/dist/commands/refresh-helpers.d.ts.map +0 -1
- package/dist/commands/refresh-helpers.js +0 -56
- package/dist/commands/refresh-helpers.js.map +0 -1
- package/dist/commands/refresh.d.ts +0 -23
- package/dist/commands/refresh.d.ts.map +0 -1
- package/dist/commands/refresh.js +0 -237
- package/dist/commands/refresh.js.map +0 -1
- package/dist/commands/rekey.d.ts +0 -84
- package/dist/commands/rekey.d.ts.map +0 -1
- package/dist/commands/rekey.js +0 -209
- package/dist/commands/rekey.js.map +0 -1
- package/dist/commands/repos-list-json.d.ts +0 -58
- package/dist/commands/repos-list-json.d.ts.map +0 -1
- package/dist/commands/repos-list-json.js +0 -45
- package/dist/commands/repos-list-json.js.map +0 -1
- package/dist/commands/repos.d.ts +0 -11
- package/dist/commands/repos.d.ts.map +0 -1
- package/dist/commands/repos.js +0 -102
- package/dist/commands/repos.js.map +0 -1
- package/dist/commands/restart.d.ts +0 -18
- package/dist/commands/restart.d.ts.map +0 -1
- package/dist/commands/restart.js +0 -113
- package/dist/commands/restart.js.map +0 -1
- package/dist/commands/resume.d.ts +0 -63
- package/dist/commands/resume.d.ts.map +0 -1
- package/dist/commands/resume.js +0 -174
- package/dist/commands/resume.js.map +0 -1
- package/dist/commands/runbooks.d.ts +0 -45
- package/dist/commands/runbooks.d.ts.map +0 -1
- package/dist/commands/runbooks.js +0 -313
- package/dist/commands/runbooks.js.map +0 -1
- package/dist/commands/seed.d.ts +0 -27
- package/dist/commands/seed.d.ts.map +0 -1
- package/dist/commands/seed.js +0 -303
- package/dist/commands/seed.js.map +0 -1
- package/dist/commands/services-tls.d.ts +0 -120
- package/dist/commands/services-tls.d.ts.map +0 -1
- package/dist/commands/services-tls.js +0 -489
- package/dist/commands/services-tls.js.map +0 -1
- package/dist/commands/services.d.ts +0 -218
- package/dist/commands/services.d.ts.map +0 -1
- package/dist/commands/services.js +0 -830
- package/dist/commands/services.js.map +0 -1
- package/dist/commands/setup-linux-gate.d.ts +0 -26
- package/dist/commands/setup-linux-gate.d.ts.map +0 -1
- package/dist/commands/setup-linux-gate.js +0 -40
- package/dist/commands/setup-linux-gate.js.map +0 -1
- package/dist/commands/setup-metrics.d.ts +0 -26
- package/dist/commands/setup-metrics.d.ts.map +0 -1
- package/dist/commands/setup-metrics.js +0 -56
- package/dist/commands/setup-metrics.js.map +0 -1
- package/dist/commands/setup-phase-5a-skill-source.d.ts +0 -84
- package/dist/commands/setup-phase-5a-skill-source.d.ts.map +0 -1
- package/dist/commands/setup-phase-5a-skill-source.js +0 -259
- package/dist/commands/setup-phase-5a-skill-source.js.map +0 -1
- package/dist/commands/setup-phase-5b-project-sweep.d.ts +0 -38
- package/dist/commands/setup-phase-5b-project-sweep.d.ts.map +0 -1
- package/dist/commands/setup-phase-5b-project-sweep.js +0 -175
- package/dist/commands/setup-phase-5b-project-sweep.js.map +0 -1
- package/dist/commands/setup-phase-8-kg-hook.d.ts +0 -48
- package/dist/commands/setup-phase-8-kg-hook.d.ts.map +0 -1
- package/dist/commands/setup-phase-8-kg-hook.js +0 -93
- package/dist/commands/setup-phase-8-kg-hook.js.map +0 -1
- package/dist/commands/setup-phase-9-memory-bridge.d.ts +0 -36
- package/dist/commands/setup-phase-9-memory-bridge.d.ts.map +0 -1
- package/dist/commands/setup-phase-9-memory-bridge.js +0 -59
- package/dist/commands/setup-phase-9-memory-bridge.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -231
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -1374
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/skills-100x.d.ts +0 -34
- package/dist/commands/skills-100x.d.ts.map +0 -1
- package/dist/commands/skills-100x.js +0 -405
- package/dist/commands/skills-100x.js.map +0 -1
- package/dist/commands/skills-doctor.d.ts +0 -14
- package/dist/commands/skills-doctor.d.ts.map +0 -1
- package/dist/commands/skills-doctor.js +0 -126
- package/dist/commands/skills-doctor.js.map +0 -1
- package/dist/commands/skills-hook.d.ts +0 -19
- package/dist/commands/skills-hook.d.ts.map +0 -1
- package/dist/commands/skills-hook.js +0 -99
- package/dist/commands/skills-hook.js.map +0 -1
- package/dist/commands/skills-install-model-router.d.ts +0 -20
- package/dist/commands/skills-install-model-router.d.ts.map +0 -1
- package/dist/commands/skills-install-model-router.js +0 -55
- package/dist/commands/skills-install-model-router.js.map +0 -1
- package/dist/commands/skills-migrate-back.d.ts +0 -21
- package/dist/commands/skills-migrate-back.d.ts.map +0 -1
- package/dist/commands/skills-migrate-back.js +0 -222
- package/dist/commands/skills-migrate-back.js.map +0 -1
- package/dist/commands/skills-migrate-hooks-back.d.ts +0 -19
- package/dist/commands/skills-migrate-hooks-back.d.ts.map +0 -1
- package/dist/commands/skills-migrate-hooks-back.js +0 -83
- package/dist/commands/skills-migrate-hooks-back.js.map +0 -1
- package/dist/commands/skills-migrate-hooks.d.ts +0 -40
- package/dist/commands/skills-migrate-hooks.d.ts.map +0 -1
- package/dist/commands/skills-migrate-hooks.js +0 -178
- package/dist/commands/skills-migrate-hooks.js.map +0 -1
- package/dist/commands/skills-migrate.d.ts +0 -33
- package/dist/commands/skills-migrate.d.ts.map +0 -1
- package/dist/commands/skills-migrate.js +0 -216
- package/dist/commands/skills-migrate.js.map +0 -1
- package/dist/commands/skills-onboard.d.ts +0 -26
- package/dist/commands/skills-onboard.d.ts.map +0 -1
- package/dist/commands/skills-onboard.js +0 -230
- package/dist/commands/skills-onboard.js.map +0 -1
- package/dist/commands/skills-shadow-backups.d.ts +0 -15
- package/dist/commands/skills-shadow-backups.d.ts.map +0 -1
- package/dist/commands/skills-shadow-backups.js +0 -132
- package/dist/commands/skills-shadow-backups.js.map +0 -1
- package/dist/commands/skills-source.d.ts +0 -61
- package/dist/commands/skills-source.d.ts.map +0 -1
- package/dist/commands/skills-source.js +0 -895
- package/dist/commands/skills-source.js.map +0 -1
- package/dist/commands/skills.d.ts +0 -59
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -461
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/status.d.ts +0 -65
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -249
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/stop.d.ts +0 -10
- package/dist/commands/stop.d.ts.map +0 -1
- package/dist/commands/stop.js +0 -17
- package/dist/commands/stop.js.map +0 -1
- package/dist/commands/substrate-audit-log.d.ts +0 -51
- package/dist/commands/substrate-audit-log.d.ts.map +0 -1
- package/dist/commands/substrate-audit-log.js +0 -161
- package/dist/commands/substrate-audit-log.js.map +0 -1
- package/dist/commands/substrate.d.ts +0 -87
- package/dist/commands/substrate.d.ts.map +0 -1
- package/dist/commands/substrate.js +0 -194
- package/dist/commands/substrate.js.map +0 -1
- package/dist/commands/update.d.ts +0 -89
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -331
- package/dist/commands/update.js.map +0 -1
- package/dist/commands/upgrade-history.d.ts +0 -15
- package/dist/commands/upgrade-history.d.ts.map +0 -1
- package/dist/commands/upgrade-history.js +0 -34
- package/dist/commands/upgrade-history.js.map +0 -1
- package/dist/commands/upgrade-lock.d.ts +0 -93
- package/dist/commands/upgrade-lock.d.ts.map +0 -1
- package/dist/commands/upgrade-lock.js +0 -225
- package/dist/commands/upgrade-lock.js.map +0 -1
- package/dist/commands/upgrade-log.d.ts +0 -86
- package/dist/commands/upgrade-log.d.ts.map +0 -1
- package/dist/commands/upgrade-log.js +0 -146
- package/dist/commands/upgrade-log.js.map +0 -1
- package/dist/commands/upgrade.d.ts +0 -445
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/dist/commands/upgrade.js +0 -1718
- package/dist/commands/upgrade.js.map +0 -1
- package/dist/commands/workspace-list-json.d.ts +0 -73
- package/dist/commands/workspace-list-json.d.ts.map +0 -1
- package/dist/commands/workspace-list-json.js +0 -59
- package/dist/commands/workspace-list-json.js.map +0 -1
- package/dist/commands/workspace.d.ts +0 -23
- package/dist/commands/workspace.d.ts.map +0 -1
- package/dist/commands/workspace.js +0 -203
- package/dist/commands/workspace.js.map +0 -1
- package/dist/commands/world-snapshot.d.ts +0 -32
- package/dist/commands/world-snapshot.d.ts.map +0 -1
- package/dist/commands/world-snapshot.js +0 -531
- package/dist/commands/world-snapshot.js.map +0 -1
- package/dist/commands/world-upgrade.d.ts +0 -33
- package/dist/commands/world-upgrade.d.ts.map +0 -1
- package/dist/commands/world-upgrade.js +0 -82
- package/dist/commands/world-upgrade.js.map +0 -1
- package/dist/commands/world.d.ts +0 -12
- package/dist/commands/world.d.ts.map +0 -1
- package/dist/commands/world.js +0 -18
- package/dist/commands/world.js.map +0 -1
- package/dist/commands/worldspec/compile.d.ts +0 -20
- package/dist/commands/worldspec/compile.d.ts.map +0 -1
- package/dist/commands/worldspec/compile.js +0 -130
- package/dist/commands/worldspec/compile.js.map +0 -1
- package/dist/commands/worldspec/index.d.ts +0 -12
- package/dist/commands/worldspec/index.d.ts.map +0 -1
- package/dist/commands/worldspec/index.js +0 -23
- package/dist/commands/worldspec/index.js.map +0 -1
- package/dist/commands/worldspec/init.d.ts +0 -15
- package/dist/commands/worldspec/init.d.ts.map +0 -1
- package/dist/commands/worldspec/init.js +0 -166
- package/dist/commands/worldspec/init.js.map +0 -1
- package/dist/commands/worldspec/schema.d.ts +0 -11
- package/dist/commands/worldspec/schema.d.ts.map +0 -1
- package/dist/commands/worldspec/schema.js +0 -55
- package/dist/commands/worldspec/schema.js.map +0 -1
- package/dist/commands/worldspec/validate.d.ts +0 -15
- package/dist/commands/worldspec/validate.d.ts.map +0 -1
- package/dist/commands/worldspec/validate.js +0 -66
- package/dist/commands/worldspec/validate.js.map +0 -1
- package/dist/commands/yolo.d.ts +0 -95
- package/dist/commands/yolo.d.ts.map +0 -1
- package/dist/commands/yolo.js +0 -377
- package/dist/commands/yolo.js.map +0 -1
- package/dist/context.d.ts +0 -30
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js +0 -56
- package/dist/context.js.map +0 -1
- package/dist/docker-host.d.ts +0 -18
- package/dist/docker-host.d.ts.map +0 -1
- package/dist/docker-host.js +0 -17
- package/dist/docker-host.js.map +0 -1
- package/dist/exit-codes.d.ts +0 -67
- package/dist/exit-codes.d.ts.map +0 -1
- package/dist/exit-codes.js +0 -67
- package/dist/exit-codes.js.map +0 -1
- package/dist/from-manifest.d.ts +0 -53
- package/dist/from-manifest.d.ts.map +0 -1
- package/dist/from-manifest.js +0 -95
- package/dist/from-manifest.js.map +0 -1
- package/dist/image-presence.d.ts +0 -40
- package/dist/image-presence.d.ts.map +0 -1
- package/dist/image-presence.js +0 -39
- package/dist/image-presence.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/install-root.d.ts +0 -74
- package/dist/install-root.d.ts.map +0 -1
- package/dist/install-root.js +0 -98
- package/dist/install-root.js.map +0 -1
- package/dist/lib/anthropic-base-url-file.d.ts +0 -37
- package/dist/lib/anthropic-base-url-file.d.ts.map +0 -1
- package/dist/lib/anthropic-base-url-file.js +0 -46
- package/dist/lib/anthropic-base-url-file.js.map +0 -1
- package/dist/lib/auth-backend.d.ts +0 -168
- package/dist/lib/auth-backend.d.ts.map +0 -1
- package/dist/lib/auth-backend.js +0 -172
- package/dist/lib/auth-backend.js.map +0 -1
- package/dist/lib/auth-list-cache.d.ts +0 -67
- package/dist/lib/auth-list-cache.d.ts.map +0 -1
- package/dist/lib/auth-list-cache.js +0 -84
- package/dist/lib/auth-list-cache.js.map +0 -1
- package/dist/lib/auth-list.d.ts +0 -107
- package/dist/lib/auth-list.d.ts.map +0 -1
- package/dist/lib/auth-list.js +0 -123
- package/dist/lib/auth-list.js.map +0 -1
- package/dist/lib/auth-login.d.ts +0 -92
- package/dist/lib/auth-login.d.ts.map +0 -1
- package/dist/lib/auth-login.js +0 -124
- package/dist/lib/auth-login.js.map +0 -1
- package/dist/lib/auth-mutator-backend.d.ts +0 -54
- package/dist/lib/auth-mutator-backend.d.ts.map +0 -1
- package/dist/lib/auth-mutator-backend.js +0 -62
- package/dist/lib/auth-mutator-backend.js.map +0 -1
- package/dist/lib/auth-refresh-kubernetes.d.ts +0 -65
- package/dist/lib/auth-refresh-kubernetes.d.ts.map +0 -1
- package/dist/lib/auth-refresh-kubernetes.js +0 -125
- package/dist/lib/auth-refresh-kubernetes.js.map +0 -1
- package/dist/lib/auth-remote.d.ts +0 -172
- package/dist/lib/auth-remote.d.ts.map +0 -1
- package/dist/lib/auth-remote.js +0 -394
- package/dist/lib/auth-remote.js.map +0 -1
- package/dist/lib/bootstrap-kubernetes.d.ts +0 -164
- package/dist/lib/bootstrap-kubernetes.d.ts.map +0 -1
- package/dist/lib/bootstrap-kubernetes.js +0 -1002
- package/dist/lib/bootstrap-kubernetes.js.map +0 -1
- package/dist/lib/build-if-stale.d.ts +0 -33
- package/dist/lib/build-if-stale.d.ts.map +0 -1
- package/dist/lib/build-if-stale.js +0 -156
- package/dist/lib/build-if-stale.js.map +0 -1
- package/dist/lib/bundle-freshness.d.ts +0 -57
- package/dist/lib/bundle-freshness.d.ts.map +0 -1
- package/dist/lib/bundle-freshness.js +0 -223
- package/dist/lib/bundle-freshness.js.map +0 -1
- package/dist/lib/bundle-source.d.ts +0 -52
- package/dist/lib/bundle-source.d.ts.map +0 -1
- package/dist/lib/bundle-source.js +0 -83
- package/dist/lib/bundle-source.js.map +0 -1
- package/dist/lib/cf-access-token.d.ts +0 -32
- package/dist/lib/cf-access-token.d.ts.map +0 -1
- package/dist/lib/cf-access-token.js +0 -51
- package/dist/lib/cf-access-token.js.map +0 -1
- package/dist/lib/completion-generator.d.ts +0 -107
- package/dist/lib/completion-generator.d.ts.map +0 -1
- package/dist/lib/completion-generator.js +0 -226
- package/dist/lib/completion-generator.js.map +0 -1
- package/dist/lib/config.d.ts +0 -114
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/config.js +0 -246
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/flywheel-probes.d.ts +0 -58
- package/dist/lib/flywheel-probes.d.ts.map +0 -1
- package/dist/lib/flywheel-probes.js +0 -163
- package/dist/lib/flywheel-probes.js.map +0 -1
- package/dist/lib/health-probes.d.ts +0 -267
- package/dist/lib/health-probes.d.ts.map +0 -1
- package/dist/lib/health-probes.js +0 -933
- package/dist/lib/health-probes.js.map +0 -1
- package/dist/lib/help-groups.d.ts +0 -36
- package/dist/lib/help-groups.d.ts.map +0 -1
- package/dist/lib/help-groups.js +0 -124
- package/dist/lib/help-groups.js.map +0 -1
- package/dist/lib/host-side-proxy.d.ts +0 -67
- package/dist/lib/host-side-proxy.d.ts.map +0 -1
- package/dist/lib/host-side-proxy.js +0 -177
- package/dist/lib/host-side-proxy.js.map +0 -1
- package/dist/lib/instrumentation.d.ts +0 -85
- package/dist/lib/instrumentation.d.ts.map +0 -1
- package/dist/lib/instrumentation.js +0 -104
- package/dist/lib/instrumentation.js.map +0 -1
- package/dist/lib/k8s-bootstrap.d.ts +0 -126
- package/dist/lib/k8s-bootstrap.d.ts.map +0 -1
- package/dist/lib/k8s-bootstrap.js +0 -218
- package/dist/lib/k8s-bootstrap.js.map +0 -1
- package/dist/lib/k8s-context-discovery.d.ts +0 -80
- package/dist/lib/k8s-context-discovery.d.ts.map +0 -1
- package/dist/lib/k8s-context-discovery.js +0 -102
- package/dist/lib/k8s-context-discovery.js.map +0 -1
- package/dist/lib/k8s-secret-render.d.ts +0 -141
- package/dist/lib/k8s-secret-render.d.ts.map +0 -1
- package/dist/lib/k8s-secret-render.js +0 -318
- package/dist/lib/k8s-secret-render.js.map +0 -1
- package/dist/lib/kg-caps.d.ts +0 -19
- package/dist/lib/kg-caps.d.ts.map +0 -1
- package/dist/lib/kg-caps.js +0 -19
- package/dist/lib/kg-caps.js.map +0 -1
- package/dist/lib/kubectl-context.d.ts +0 -87
- package/dist/lib/kubectl-context.d.ts.map +0 -1
- package/dist/lib/kubectl-context.js +0 -105
- package/dist/lib/kubectl-context.js.map +0 -1
- package/dist/lib/kubectl-wrap.d.ts +0 -65
- package/dist/lib/kubectl-wrap.d.ts.map +0 -1
- package/dist/lib/kubectl-wrap.js +0 -135
- package/dist/lib/kubectl-wrap.js.map +0 -1
- package/dist/lib/manifest-refresh.d.ts +0 -136
- package/dist/lib/manifest-refresh.d.ts.map +0 -1
- package/dist/lib/manifest-refresh.js +0 -298
- package/dist/lib/manifest-refresh.js.map +0 -1
- package/dist/lib/memory-host-process-migration.d.ts +0 -56
- package/dist/lib/memory-host-process-migration.d.ts.map +0 -1
- package/dist/lib/memory-host-process-migration.js +0 -156
- package/dist/lib/memory-host-process-migration.js.map +0 -1
- package/dist/lib/memory-secret.d.ts +0 -83
- package/dist/lib/memory-secret.d.ts.map +0 -1
- package/dist/lib/memory-secret.js +0 -147
- package/dist/lib/memory-secret.js.map +0 -1
- package/dist/lib/peripheral-registry.d.ts +0 -53
- package/dist/lib/peripheral-registry.d.ts.map +0 -1
- package/dist/lib/peripheral-registry.js +0 -73
- package/dist/lib/peripheral-registry.js.map +0 -1
- package/dist/lib/plans-client.d.ts +0 -69
- package/dist/lib/plans-client.d.ts.map +0 -1
- package/dist/lib/plans-client.js +0 -140
- package/dist/lib/plans-client.js.map +0 -1
- package/dist/lib/port-forward.d.ts +0 -168
- package/dist/lib/port-forward.d.ts.map +0 -1
- package/dist/lib/port-forward.js +0 -393
- package/dist/lib/port-forward.js.map +0 -1
- package/dist/lib/shell-rc.d.ts +0 -90
- package/dist/lib/shell-rc.d.ts.map +0 -1
- package/dist/lib/shell-rc.js +0 -91
- package/dist/lib/shell-rc.js.map +0 -1
- package/dist/lib/shim-generator.d.ts +0 -51
- package/dist/lib/shim-generator.d.ts.map +0 -1
- package/dist/lib/shim-generator.js +0 -88
- package/dist/lib/shim-generator.js.map +0 -1
- package/dist/lib/skills-apply-overlays.d.ts +0 -35
- package/dist/lib/skills-apply-overlays.d.ts.map +0 -1
- package/dist/lib/skills-apply-overlays.js +0 -243
- package/dist/lib/skills-apply-overlays.js.map +0 -1
- package/dist/lib/symlink-reconcile.d.ts +0 -32
- package/dist/lib/symlink-reconcile.d.ts.map +0 -1
- package/dist/lib/symlink-reconcile.js +0 -80
- package/dist/lib/symlink-reconcile.js.map +0 -1
- package/dist/lib/upgrade-check.d.ts +0 -60
- package/dist/lib/upgrade-check.d.ts.map +0 -1
- package/dist/lib/upgrade-check.js +0 -169
- package/dist/lib/upgrade-check.js.map +0 -1
- package/dist/lib/upgrade-kubernetes.d.ts +0 -193
- package/dist/lib/upgrade-kubernetes.d.ts.map +0 -1
- package/dist/lib/upgrade-kubernetes.js +0 -1014
- package/dist/lib/upgrade-kubernetes.js.map +0 -1
- package/dist/lib/world-mcp-register.d.ts +0 -98
- package/dist/lib/world-mcp-register.d.ts.map +0 -1
- package/dist/lib/world-mcp-register.js +0 -117
- package/dist/lib/world-mcp-register.js.map +0 -1
- package/dist/output.d.ts +0 -10
- package/dist/output.d.ts.map +0 -1
- package/dist/output.js +0 -31
- package/dist/output.js.map +0 -1
- package/dist/pleri-config.d.ts +0 -22
- package/dist/pleri-config.d.ts.map +0 -1
- package/dist/pleri-config.js +0 -42
- package/dist/pleri-config.js.map +0 -1
- package/dist/protocol-version.d.ts +0 -79
- package/dist/protocol-version.d.ts.map +0 -1
- package/dist/protocol-version.js +0 -133
- package/dist/protocol-version.js.map +0 -1
- package/dist/registry-allowlist.d.ts +0 -47
- package/dist/registry-allowlist.d.ts.map +0 -1
- package/dist/registry-allowlist.js +0 -67
- package/dist/registry-allowlist.js.map +0 -1
- package/dist/spawn/home-override.d.ts +0 -82
- package/dist/spawn/home-override.d.ts.map +0 -1
- package/dist/spawn/home-override.js +0 -107
- package/dist/spawn/home-override.js.map +0 -1
- package/host-cp/src/linear-sync.mjs +0 -43
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* KgServiceContainerController — lifecycle for olam-kg-service.
|
|
3
|
-
*
|
|
4
|
-
* Mirrors McpAuthContainerController (./services.ts) since kg-service, like
|
|
5
|
-
* mcp-auth-service, is not a @olam/core package. The persistent HTTP classifier
|
|
6
|
-
* inside the container holds bge-small-en-v1.5 in memory; we pre-warm at
|
|
7
|
-
* start() to eliminate the first-call cold cliff (see Phase A latency bench at
|
|
8
|
-
* ~/kg-benchmark/kg-service-poc/latency-results.json).
|
|
9
|
-
*/
|
|
10
|
-
import { execFileSync, spawnSync } from 'node:child_process';
|
|
11
|
-
import * as fs from 'node:fs';
|
|
12
|
-
import { KG_PATHS_INTERNALS } from '@olam/core/src/kg/storage-paths.js';
|
|
13
|
-
export const KG_SERVICE_PORT = 9997;
|
|
14
|
-
export const KG_SERVICE_CONTAINER = 'olam-kg-service';
|
|
15
|
-
export const KG_SERVICE_LOCAL_TAG = 'olam-kg-service:local';
|
|
16
|
-
export const KG_SERVICE_PUBLISHED_TAG = 'ghcr.io/pleri/olam-kg-service:latest';
|
|
17
|
-
export const KG_SERVICE_DEV_TAG = 'olam-kg-service:dev';
|
|
18
|
-
export const KG_SERVICE_HEALTH_URL = `http://127.0.0.1:${KG_SERVICE_PORT}/health`;
|
|
19
|
-
export const KG_SERVICE_CLASSIFY_URL = `http://127.0.0.1:${KG_SERVICE_PORT}/classify`;
|
|
20
|
-
// Cold-start path measured at ~1.3s (bge-small load + warmup probe). On flaky
|
|
21
|
-
// CI runners with no Docker layer cache we've seen 60s+; mirror McpAuth's
|
|
22
|
-
// 60s timeout so the failure mode is the same operator-visible "took too long"
|
|
23
|
-
// rather than spurious flake.
|
|
24
|
-
export const KG_SERVICE_HEALTH_TIMEOUT_MS = 60_000;
|
|
25
|
-
// kg-data is the host-mounted `~/.olam/kg/` so the container's /build can
|
|
26
|
-
// write graphs back to the operator's pristine workspace KG store.
|
|
27
|
-
const KG_SERVICE_VOLUME_TARGET = '/kg-data';
|
|
28
|
-
/**
|
|
29
|
-
* Resolves the operator's KG storage root for the host bind-mount.
|
|
30
|
-
*
|
|
31
|
-
* Consumes `KG_PATHS_INTERNALS.kgRoot()` from @olam/core/src/kg/storage-paths.js
|
|
32
|
-
* so this controller honours OLAM_HOME redirection (tests, per-world
|
|
33
|
-
* overrides). Naively reading $HOME would cause split-brain: kg-service's
|
|
34
|
-
* /build endpoint would write to ~/.olam/kg while host-side `olam kg
|
|
35
|
-
* status` (which DOES consult OLAM_HOME via kgPristinePath) reports the
|
|
36
|
-
* KG as missing.
|
|
37
|
-
*
|
|
38
|
-
* Caller is responsible for ensuring the directory exists pre-bind-mount
|
|
39
|
-
* (Linux dockerd auto-creates as root:root if absent, which breaks
|
|
40
|
-
* subsequent host-side writes from the operator's UID).
|
|
41
|
-
*/
|
|
42
|
-
function kgDataHostPath() {
|
|
43
|
-
return KG_PATHS_INTERNALS.kgRoot();
|
|
44
|
-
}
|
|
45
|
-
export class KgServiceContainerController {
|
|
46
|
-
imageTag = KG_SERVICE_LOCAL_TAG;
|
|
47
|
-
status() {
|
|
48
|
-
const r = spawnSync('docker', ['inspect', '--format', '{{.State.Status}}|{{.Id}}', KG_SERVICE_CONTAINER], { encoding: 'utf-8' });
|
|
49
|
-
if (r.status === 0) {
|
|
50
|
-
const [stateRaw, id] = r.stdout.trim().split('|');
|
|
51
|
-
return {
|
|
52
|
-
state: stateRaw === 'running' ? 'running' : 'stopped',
|
|
53
|
-
port: KG_SERVICE_PORT,
|
|
54
|
-
containerId: id,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
return { state: 'missing', port: KG_SERVICE_PORT };
|
|
58
|
-
}
|
|
59
|
-
imageExists(tag = this.imageTag) {
|
|
60
|
-
return spawnSync('docker', ['image', 'inspect', tag], { encoding: 'utf-8' }).status === 0;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Resolve the first available image tag: local → dev → published.
|
|
64
|
-
* Throws if none exist (operator should run `olam bootstrap` to pull).
|
|
65
|
-
*/
|
|
66
|
-
resolveImage() {
|
|
67
|
-
for (const tag of [KG_SERVICE_LOCAL_TAG, KG_SERVICE_DEV_TAG, KG_SERVICE_PUBLISHED_TAG]) {
|
|
68
|
-
if (this.imageExists(tag))
|
|
69
|
-
return tag;
|
|
70
|
-
}
|
|
71
|
-
throw new Error(`kg-service image not found. Tried: ${KG_SERVICE_LOCAL_TAG}, ${KG_SERVICE_DEV_TAG}, ${KG_SERVICE_PUBLISHED_TAG}. ` +
|
|
72
|
-
'Run `olam bootstrap` to pull the published image, or `npm --workspace @olam/kg-service run build` to build locally.');
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Idempotent start. If already running → return. If stopped → docker start.
|
|
76
|
-
* If missing → docker run with port-forward + kg-data volume mount + restart
|
|
77
|
-
* policy. The container's CMD is `python -u /app/src/server.py` which begins
|
|
78
|
-
* loading bge-small immediately; the model is warm by the time /health
|
|
79
|
-
* returns ready=true. We additionally fire a synthetic /classify after
|
|
80
|
-
* readiness to JIT-warm the embedding hot path.
|
|
81
|
-
*/
|
|
82
|
-
start() {
|
|
83
|
-
const current = this.status();
|
|
84
|
-
if (current.state === 'running')
|
|
85
|
-
return;
|
|
86
|
-
if (current.state === 'stopped') {
|
|
87
|
-
execFileSync('docker', ['start', KG_SERVICE_CONTAINER], { stdio: 'pipe' });
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
this.imageTag = this.resolveImage();
|
|
91
|
-
const kgData = kgDataHostPath();
|
|
92
|
-
// Pre-create the host path with the operator's UID. Without this,
|
|
93
|
-
// dockerd on Linux auto-creates the bind-mount target as root:root,
|
|
94
|
-
// which breaks subsequent host-side `olam kg build` writes from the
|
|
95
|
-
// operator's UID (EACCES). macOS Docker Desktop's user-mapped binds
|
|
96
|
-
// don't bite here but the explicit mkdir is portable + cheap.
|
|
97
|
-
fs.mkdirSync(kgData, { recursive: true });
|
|
98
|
-
execFileSync('docker', [
|
|
99
|
-
'run',
|
|
100
|
-
'--detach',
|
|
101
|
-
'--name', KG_SERVICE_CONTAINER,
|
|
102
|
-
'--restart', 'unless-stopped',
|
|
103
|
-
// Bind to 127.0.0.1 ONLY at the host port level — local-only by design.
|
|
104
|
-
'--publish', `127.0.0.1:${KG_SERVICE_PORT}:${KG_SERVICE_PORT}`,
|
|
105
|
-
// host-gateway lets this container reach the host (e.g. for diagnostic
|
|
106
|
-
// probes). Worlds reach kg-service via the published 127.0.0.1:9997
|
|
107
|
-
// PLUS their OWN --add-host flag configured in the world-create code path.
|
|
108
|
-
'--add-host', 'host.docker.internal:host-gateway',
|
|
109
|
-
// Mount the operator's KG root (OLAM_HOME-aware) so /build can persist graphs.
|
|
110
|
-
'--volume', `${kgData}:${KG_SERVICE_VOLUME_TARGET}`,
|
|
111
|
-
// kg-service-container-v2 Phase F: read-only mount of $HOME so /build
|
|
112
|
-
// can ingest any project under the operator's home as the source repo.
|
|
113
|
-
// Read-only is sufficient: server-side scratch in /tmp/ holds the
|
|
114
|
-
// working copy + receives graphify's output before persisting to
|
|
115
|
-
// /kg-data. Operator's source tree is never written. Mount path
|
|
116
|
-
// `/host-home` is referenced by kg-build.ts when translating cwd
|
|
117
|
-
// → container-side path. Closes Samuel's multi-submodule cp-r bug
|
|
118
|
-
// by construction: copy runs INSIDE the container as root, not on
|
|
119
|
-
// the host with the operator's UID hitting locked .git/objects/pack/*.
|
|
120
|
-
'--volume', `${process.env.HOME ?? '/root'}:/host-home:ro`,
|
|
121
|
-
this.imageTag,
|
|
122
|
-
], { stdio: 'pipe' });
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Returns true when no kg-service image exists locally — useful for callers
|
|
126
|
-
* (e.g. servicesUp) to distinguish "operator opted out of kg-service" from
|
|
127
|
-
* "kg-service was supposed to work but is broken". The opted-out case
|
|
128
|
-
* should be silent; the broken case should warn.
|
|
129
|
-
*/
|
|
130
|
-
imageMissingEverywhere() {
|
|
131
|
-
return (!this.imageExists(KG_SERVICE_LOCAL_TAG) &&
|
|
132
|
-
!this.imageExists(KG_SERVICE_DEV_TAG) &&
|
|
133
|
-
!this.imageExists(KG_SERVICE_PUBLISHED_TAG));
|
|
134
|
-
}
|
|
135
|
-
stop() {
|
|
136
|
-
const current = this.status();
|
|
137
|
-
if (current.state !== 'running')
|
|
138
|
-
return;
|
|
139
|
-
execFileSync('docker', ['stop', KG_SERVICE_CONTAINER], { stdio: 'pipe' });
|
|
140
|
-
}
|
|
141
|
-
remove() {
|
|
142
|
-
spawnSync('docker', ['rm', '-f', KG_SERVICE_CONTAINER], { stdio: 'pipe' });
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Poll /health until ready=true OR timeoutMs elapses. The container reports
|
|
146
|
-
* ready=true only after the bge-small model + 31 exemplars have loaded
|
|
147
|
-
* (~1.3s on a warm machine; longer on first pull where the image needs to
|
|
148
|
-
* unpack).
|
|
149
|
-
*/
|
|
150
|
-
async waitForReady(timeoutMs = KG_SERVICE_HEALTH_TIMEOUT_MS) {
|
|
151
|
-
const deadline = Date.now() + timeoutMs;
|
|
152
|
-
while (Date.now() < deadline) {
|
|
153
|
-
try {
|
|
154
|
-
const res = await fetch(KG_SERVICE_HEALTH_URL, { signal: AbortSignal.timeout(1_500) });
|
|
155
|
-
if (res.ok) {
|
|
156
|
-
const body = (await res.json());
|
|
157
|
-
if (body.ready === true)
|
|
158
|
-
return true;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
catch {
|
|
162
|
-
// not ready yet
|
|
163
|
-
}
|
|
164
|
-
await sleep(500);
|
|
165
|
-
}
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Fire a synthetic classify against the warm server. Called by `servicesUp`
|
|
170
|
-
* after `waitForReady` succeeds — extra insurance that the embedding
|
|
171
|
-
* inference hot path is JITted before the first operator-driven call.
|
|
172
|
-
* Errors are swallowed; pre-warm is best-effort.
|
|
173
|
-
*/
|
|
174
|
-
async prewarm() {
|
|
175
|
-
try {
|
|
176
|
-
await fetch(KG_SERVICE_CLASSIFY_URL, {
|
|
177
|
-
method: 'POST',
|
|
178
|
-
headers: { 'Content-Type': 'application/json' },
|
|
179
|
-
body: JSON.stringify({ q: 'prewarm probe' }),
|
|
180
|
-
signal: AbortSignal.timeout(5_000),
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
catch {
|
|
184
|
-
// best-effort
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function sleep(ms) {
|
|
189
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
190
|
-
}
|
|
191
|
-
//# sourceMappingURL=kg-service-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kg-service-container.js","sourceRoot":"","sources":["../../src/commands/kg-service-container.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAA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AAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* olam kg status [<workspace>] — operator-facing report for KG storage.
|
|
3
|
-
*
|
|
4
|
-
* Phase C1 of olam-kg-service (plan ~/.claude/plans/olam-kg-service.md).
|
|
5
|
-
*
|
|
6
|
-
* Two modes:
|
|
7
|
-
* - `olam kg status` — enumerate every pristine + total overlay count.
|
|
8
|
-
* Compact table with built_at / node_count / size / world_count.
|
|
9
|
-
* - `olam kg status <workspace>` — same workspace's pristine plus a
|
|
10
|
-
* per-world overlay table (world_id / overlay-graphify-out size /
|
|
11
|
-
* overlay graph.json node_count).
|
|
12
|
-
*
|
|
13
|
-
* Storage layout (per Phase A2 + B1):
|
|
14
|
-
* - Pristines: `~/.olam/kg/<workspace>/graphify-out/` + `freshness.json`
|
|
15
|
-
* - Overlays: `~/.olam/worlds/<world-id>/<clone-dir>/graphify-out/`
|
|
16
|
-
*
|
|
17
|
-
* Cumulative-storage policy (per tracker T1):
|
|
18
|
-
* - >= 1.5GB → soft warn on stderr (operator decides whether to prune)
|
|
19
|
-
* - >= 5.0GB → hard error on stderr + non-zero exit
|
|
20
|
-
*
|
|
21
|
-
* Risk T7 mitigation: workspace name (when passed) regex-validated via
|
|
22
|
-
* @olam/core's `validateWorkspaceName`. All resolved paths asserted to
|
|
23
|
-
* live under `~/.olam/` (via `kgPristinePath` / explicit prefix check).
|
|
24
|
-
*
|
|
25
|
-
* Side effects: read-only (no FS writes; no subprocess spawns).
|
|
26
|
-
*/
|
|
27
|
-
import type { Command } from 'commander';
|
|
28
|
-
interface KgStatusOptions {
|
|
29
|
-
readonly json?: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface PristineRecord {
|
|
32
|
-
readonly workspace: string;
|
|
33
|
-
readonly built_at: string | null;
|
|
34
|
-
readonly node_count: number | null;
|
|
35
|
-
readonly graphify_version: string | null;
|
|
36
|
-
readonly graphify_out_size_bytes: number;
|
|
37
|
-
readonly world_count: number;
|
|
38
|
-
}
|
|
39
|
-
interface OverlayRecord {
|
|
40
|
-
readonly world_id: string;
|
|
41
|
-
readonly clone_dir: string;
|
|
42
|
-
readonly graphify_out_path: string;
|
|
43
|
-
readonly graphify_out_size_bytes: number;
|
|
44
|
-
readonly node_count: number | null;
|
|
45
|
-
}
|
|
46
|
-
interface KgStatusReport {
|
|
47
|
-
readonly pristines: ReadonlyArray<PristineRecord>;
|
|
48
|
-
readonly overlays: ReadonlyArray<OverlayRecord>;
|
|
49
|
-
readonly total_bytes: number;
|
|
50
|
-
readonly cap_status: 'ok' | 'soft-warn' | 'hard-critical';
|
|
51
|
-
}
|
|
52
|
-
interface RunResult {
|
|
53
|
-
readonly exitCode: number;
|
|
54
|
-
readonly report: KgStatusReport;
|
|
55
|
-
}
|
|
56
|
-
export declare function runKgStatus(workspaceArg: string | undefined, opts: KgStatusOptions): Promise<RunResult>;
|
|
57
|
-
export declare function registerKgStatusCommand(kg: Command): void;
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=kg-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kg-status.d.ts","sourceRoot":"","sources":["../../src/commands/kg-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,UAAU,eAAe;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,UAAU,cAAc;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,UAAU,aAAa;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,UAAU,cAAc;IACtB,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAClD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,GAAG,eAAe,CAAC;CAC3D;AAgRD,UAAU,SAAS;IACjB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC;AAED,wBAAsB,WAAW,CAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,SAAS,CAAC,CAkCpB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAYzD"}
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* olam kg status [<workspace>] — operator-facing report for KG storage.
|
|
3
|
-
*
|
|
4
|
-
* Phase C1 of olam-kg-service (plan ~/.claude/plans/olam-kg-service.md).
|
|
5
|
-
*
|
|
6
|
-
* Two modes:
|
|
7
|
-
* - `olam kg status` — enumerate every pristine + total overlay count.
|
|
8
|
-
* Compact table with built_at / node_count / size / world_count.
|
|
9
|
-
* - `olam kg status <workspace>` — same workspace's pristine plus a
|
|
10
|
-
* per-world overlay table (world_id / overlay-graphify-out size /
|
|
11
|
-
* overlay graph.json node_count).
|
|
12
|
-
*
|
|
13
|
-
* Storage layout (per Phase A2 + B1):
|
|
14
|
-
* - Pristines: `~/.olam/kg/<workspace>/graphify-out/` + `freshness.json`
|
|
15
|
-
* - Overlays: `~/.olam/worlds/<world-id>/<clone-dir>/graphify-out/`
|
|
16
|
-
*
|
|
17
|
-
* Cumulative-storage policy (per tracker T1):
|
|
18
|
-
* - >= 1.5GB → soft warn on stderr (operator decides whether to prune)
|
|
19
|
-
* - >= 5.0GB → hard error on stderr + non-zero exit
|
|
20
|
-
*
|
|
21
|
-
* Risk T7 mitigation: workspace name (when passed) regex-validated via
|
|
22
|
-
* @olam/core's `validateWorkspaceName`. All resolved paths asserted to
|
|
23
|
-
* live under `~/.olam/` (via `kgPristinePath` / explicit prefix check).
|
|
24
|
-
*
|
|
25
|
-
* Side effects: read-only (no FS writes; no subprocess spawns).
|
|
26
|
-
*/
|
|
27
|
-
import fs from 'node:fs';
|
|
28
|
-
import { homedir } from 'node:os';
|
|
29
|
-
import path from 'node:path';
|
|
30
|
-
import { kgPristinePath } from '@olam/core/src/kg/storage-paths.js';
|
|
31
|
-
import { validateWorkspaceName } from '@olam/core/src/world/workspace-name.js';
|
|
32
|
-
import { SOFT_CAP_BYTES, HARD_CAP_BYTES } from '../lib/kg-caps.js';
|
|
33
|
-
import { printError, printWarning } from '../output.js';
|
|
34
|
-
function olamHome() {
|
|
35
|
-
return process.env.OLAM_HOME ?? path.join(homedir(), '.olam');
|
|
36
|
-
}
|
|
37
|
-
function kgRoot() {
|
|
38
|
-
return path.join(olamHome(), 'kg');
|
|
39
|
-
}
|
|
40
|
-
function worldsRoot() {
|
|
41
|
-
return path.join(olamHome(), 'worlds');
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Recursive directory size in bytes. Symlinks NOT followed (lstat).
|
|
45
|
-
* Missing directory → 0 (callers handle via empty-state messaging).
|
|
46
|
-
*
|
|
47
|
-
* Pure read; no FS mutation. Cheap enough for KG-sized trees (graphify-out
|
|
48
|
-
* is typically ~10-200MB per workspace); not optimised for trees with
|
|
49
|
-
* millions of files.
|
|
50
|
-
*/
|
|
51
|
-
function dirSizeBytes(dir) {
|
|
52
|
-
if (!fs.existsSync(dir))
|
|
53
|
-
return 0;
|
|
54
|
-
let total = 0;
|
|
55
|
-
const stack = [dir];
|
|
56
|
-
while (stack.length > 0) {
|
|
57
|
-
const cur = stack.pop();
|
|
58
|
-
let entries;
|
|
59
|
-
try {
|
|
60
|
-
entries = fs.readdirSync(cur, { withFileTypes: true });
|
|
61
|
-
}
|
|
62
|
-
catch {
|
|
63
|
-
continue; // permission denied / race; skip
|
|
64
|
-
}
|
|
65
|
-
for (const entry of entries) {
|
|
66
|
-
const full = path.join(cur, entry.name);
|
|
67
|
-
if (entry.isSymbolicLink())
|
|
68
|
-
continue;
|
|
69
|
-
if (entry.isDirectory()) {
|
|
70
|
-
stack.push(full);
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
try {
|
|
74
|
-
total += fs.statSync(full).size;
|
|
75
|
-
}
|
|
76
|
-
catch {
|
|
77
|
-
// file disappeared between readdir + stat; skip
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return total;
|
|
82
|
-
}
|
|
83
|
-
function formatBytes(n) {
|
|
84
|
-
if (n < 1024)
|
|
85
|
-
return `${n} B`;
|
|
86
|
-
if (n < 1024 * 1024)
|
|
87
|
-
return `${(n / 1024).toFixed(1)} KB`;
|
|
88
|
-
if (n < 1024 * 1024 * 1024)
|
|
89
|
-
return `${(n / 1024 / 1024).toFixed(1)} MB`;
|
|
90
|
-
return `${(n / 1024 / 1024 / 1024).toFixed(2)} GB`;
|
|
91
|
-
}
|
|
92
|
-
function readFreshness(workspace) {
|
|
93
|
-
const file = path.join(kgPristinePath(workspace), 'freshness.json');
|
|
94
|
-
if (!fs.existsSync(file))
|
|
95
|
-
return null;
|
|
96
|
-
try {
|
|
97
|
-
const raw = JSON.parse(fs.readFileSync(file, 'utf-8'));
|
|
98
|
-
if (raw && typeof raw === 'object')
|
|
99
|
-
return raw;
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
catch {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Read node_count directly from an overlay's graph.json. Returns null
|
|
108
|
-
* when graph.json is missing OR malformed — defensive: the report should
|
|
109
|
-
* still render even if one overlay is broken.
|
|
110
|
-
*/
|
|
111
|
-
function readOverlayNodeCount(graphifyOutDir) {
|
|
112
|
-
const graphPath = path.join(graphifyOutDir, 'graph.json');
|
|
113
|
-
if (!fs.existsSync(graphPath))
|
|
114
|
-
return null;
|
|
115
|
-
try {
|
|
116
|
-
const raw = JSON.parse(fs.readFileSync(graphPath, 'utf-8'));
|
|
117
|
-
if (raw && typeof raw === 'object') {
|
|
118
|
-
const nodes = raw.nodes;
|
|
119
|
-
if (Array.isArray(nodes))
|
|
120
|
-
return nodes.length;
|
|
121
|
-
}
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
catch {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Enumerate every world's overlay graphify-out directory.
|
|
130
|
-
*
|
|
131
|
-
* Layout: `~/.olam/worlds/<world-id>/<clone-dir>/graphify-out/`. Each
|
|
132
|
-
* world MAY have multiple clones (multi-repo manifests; phase C of
|
|
133
|
-
* olam-3-org-fatbox-runtime). We surface ALL of them.
|
|
134
|
-
*/
|
|
135
|
-
function listOverlays() {
|
|
136
|
-
const root = worldsRoot();
|
|
137
|
-
if (!fs.existsSync(root))
|
|
138
|
-
return [];
|
|
139
|
-
const records = [];
|
|
140
|
-
let worldDirs;
|
|
141
|
-
try {
|
|
142
|
-
worldDirs = fs.readdirSync(root, { withFileTypes: true });
|
|
143
|
-
}
|
|
144
|
-
catch {
|
|
145
|
-
return [];
|
|
146
|
-
}
|
|
147
|
-
for (const worldEntry of worldDirs) {
|
|
148
|
-
if (!worldEntry.isDirectory())
|
|
149
|
-
continue;
|
|
150
|
-
const worldId = worldEntry.name;
|
|
151
|
-
const worldDir = path.join(root, worldId);
|
|
152
|
-
let cloneDirs;
|
|
153
|
-
try {
|
|
154
|
-
cloneDirs = fs.readdirSync(worldDir, { withFileTypes: true });
|
|
155
|
-
}
|
|
156
|
-
catch {
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
for (const cloneEntry of cloneDirs) {
|
|
160
|
-
if (!cloneEntry.isDirectory())
|
|
161
|
-
continue;
|
|
162
|
-
const graphifyOut = path.join(worldDir, cloneEntry.name, 'graphify-out');
|
|
163
|
-
if (!fs.existsSync(graphifyOut))
|
|
164
|
-
continue;
|
|
165
|
-
records.push({
|
|
166
|
-
world_id: worldId,
|
|
167
|
-
clone_dir: cloneEntry.name,
|
|
168
|
-
graphify_out_path: graphifyOut,
|
|
169
|
-
graphify_out_size_bytes: dirSizeBytes(graphifyOut),
|
|
170
|
-
node_count: readOverlayNodeCount(graphifyOut),
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return records;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Collect every pristine workspace KG. Cheap read: re-uses the freshness.json
|
|
178
|
-
* shape committed in A4. Workspace-to-world join is by clone-dir-name; the
|
|
179
|
-
* pristine record exposes `world_count` so the operator can spot orphans
|
|
180
|
-
* (overlays without a pristine, or pristines with zero worlds).
|
|
181
|
-
*/
|
|
182
|
-
function listPristines(overlays) {
|
|
183
|
-
const root = kgRoot();
|
|
184
|
-
if (!fs.existsSync(root))
|
|
185
|
-
return [];
|
|
186
|
-
const records = [];
|
|
187
|
-
let entries;
|
|
188
|
-
try {
|
|
189
|
-
entries = fs.readdirSync(root, { withFileTypes: true });
|
|
190
|
-
}
|
|
191
|
-
catch {
|
|
192
|
-
return [];
|
|
193
|
-
}
|
|
194
|
-
for (const entry of entries) {
|
|
195
|
-
if (!entry.isDirectory())
|
|
196
|
-
continue;
|
|
197
|
-
const workspace = entry.name;
|
|
198
|
-
// Defensive: a non-conformant directory name shouldn't crash status.
|
|
199
|
-
try {
|
|
200
|
-
validateWorkspaceName(workspace);
|
|
201
|
-
}
|
|
202
|
-
catch {
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
const fresh = readFreshness(workspace);
|
|
206
|
-
const graphifyOut = path.join(kgPristinePath(workspace), 'graphify-out');
|
|
207
|
-
const size = dirSizeBytes(graphifyOut);
|
|
208
|
-
const worldCount = overlays.filter((o) => o.clone_dir === workspace).length;
|
|
209
|
-
records.push({
|
|
210
|
-
workspace,
|
|
211
|
-
built_at: fresh?.built_at ?? null,
|
|
212
|
-
node_count: fresh?.node_count ?? null,
|
|
213
|
-
graphify_version: fresh?.graphify_version ?? null,
|
|
214
|
-
graphify_out_size_bytes: size,
|
|
215
|
-
world_count: worldCount,
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
return records.sort((a, b) => a.workspace.localeCompare(b.workspace));
|
|
219
|
-
}
|
|
220
|
-
function classifyCap(totalBytes) {
|
|
221
|
-
if (totalBytes >= HARD_CAP_BYTES)
|
|
222
|
-
return 'hard-critical';
|
|
223
|
-
if (totalBytes >= SOFT_CAP_BYTES)
|
|
224
|
-
return 'soft-warn';
|
|
225
|
-
return 'ok';
|
|
226
|
-
}
|
|
227
|
-
function buildReport(workspaceFilter) {
|
|
228
|
-
if (workspaceFilter)
|
|
229
|
-
validateWorkspaceName(workspaceFilter);
|
|
230
|
-
const allOverlays = listOverlays();
|
|
231
|
-
const allPristines = listPristines(allOverlays);
|
|
232
|
-
const pristines = workspaceFilter
|
|
233
|
-
? allPristines.filter((p) => p.workspace === workspaceFilter)
|
|
234
|
-
: allPristines;
|
|
235
|
-
const overlays = workspaceFilter
|
|
236
|
-
? allOverlays.filter((o) => o.clone_dir === workspaceFilter)
|
|
237
|
-
: allOverlays;
|
|
238
|
-
const totalBytes = pristines.reduce((acc, p) => acc + p.graphify_out_size_bytes, 0) +
|
|
239
|
-
overlays.reduce((acc, o) => acc + o.graphify_out_size_bytes, 0);
|
|
240
|
-
return {
|
|
241
|
-
pristines,
|
|
242
|
-
overlays,
|
|
243
|
-
total_bytes: totalBytes,
|
|
244
|
-
cap_status: classifyCap(totalBytes),
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
function renderHuman(report, workspaceFilter) {
|
|
248
|
-
const lines = [];
|
|
249
|
-
if (report.pristines.length === 0 && report.overlays.length === 0) {
|
|
250
|
-
if (workspaceFilter) {
|
|
251
|
-
lines.push(`No KG state for workspace "${workspaceFilter}".`);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
lines.push('No KG state on this host yet. Run `olam kg build` from a workspace clone.');
|
|
255
|
-
}
|
|
256
|
-
return lines.join('\n');
|
|
257
|
-
}
|
|
258
|
-
if (report.pristines.length > 0) {
|
|
259
|
-
lines.push('Pristines:');
|
|
260
|
-
lines.push([
|
|
261
|
-
'workspace'.padEnd(24),
|
|
262
|
-
'built_at'.padEnd(22),
|
|
263
|
-
'nodes'.padStart(8),
|
|
264
|
-
'size'.padStart(10),
|
|
265
|
-
'worlds'.padStart(7),
|
|
266
|
-
].join(' '));
|
|
267
|
-
lines.push('-'.repeat(74));
|
|
268
|
-
for (const p of report.pristines) {
|
|
269
|
-
lines.push([
|
|
270
|
-
p.workspace.padEnd(24),
|
|
271
|
-
(p.built_at ?? '—').padEnd(22),
|
|
272
|
-
String(p.node_count ?? '—').padStart(8),
|
|
273
|
-
formatBytes(p.graphify_out_size_bytes).padStart(10),
|
|
274
|
-
String(p.world_count).padStart(7),
|
|
275
|
-
].join(' '));
|
|
276
|
-
}
|
|
277
|
-
lines.push('');
|
|
278
|
-
}
|
|
279
|
-
if (report.overlays.length > 0) {
|
|
280
|
-
lines.push('Overlays:');
|
|
281
|
-
lines.push([
|
|
282
|
-
'world_id'.padEnd(24),
|
|
283
|
-
'clone'.padEnd(20),
|
|
284
|
-
'nodes'.padStart(8),
|
|
285
|
-
'size'.padStart(10),
|
|
286
|
-
].join(' '));
|
|
287
|
-
lines.push('-'.repeat(66));
|
|
288
|
-
for (const o of report.overlays) {
|
|
289
|
-
lines.push([
|
|
290
|
-
o.world_id.padEnd(24),
|
|
291
|
-
o.clone_dir.padEnd(20),
|
|
292
|
-
String(o.node_count ?? '—').padStart(8),
|
|
293
|
-
formatBytes(o.graphify_out_size_bytes).padStart(10),
|
|
294
|
-
].join(' '));
|
|
295
|
-
}
|
|
296
|
-
lines.push('');
|
|
297
|
-
}
|
|
298
|
-
lines.push(`Total: ${formatBytes(report.total_bytes)} (cap: ${report.cap_status})`);
|
|
299
|
-
return lines.join('\n');
|
|
300
|
-
}
|
|
301
|
-
export async function runKgStatus(workspaceArg, opts) {
|
|
302
|
-
let report;
|
|
303
|
-
try {
|
|
304
|
-
report = buildReport(workspaceArg);
|
|
305
|
-
}
|
|
306
|
-
catch (err) {
|
|
307
|
-
printError(err.message);
|
|
308
|
-
return {
|
|
309
|
-
exitCode: 1,
|
|
310
|
-
report: { pristines: [], overlays: [], total_bytes: 0, cap_status: 'ok' },
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
if (opts.json) {
|
|
314
|
-
process.stdout.write(JSON.stringify(report, null, 2) + '\n');
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
process.stdout.write(renderHuman(report, workspaceArg) + '\n');
|
|
318
|
-
}
|
|
319
|
-
// Caps are emitted to stderr regardless of --json so script-callers
|
|
320
|
-
// see them in their error stream.
|
|
321
|
-
if (report.cap_status === 'soft-warn') {
|
|
322
|
-
printWarning(`KG storage at ${formatBytes(report.total_bytes)} — exceeds 1.5GB soft cap. Consider `
|
|
323
|
-
+ `pruning stale pristines via \`rm -rf ~/.olam/kg/<workspace>\` after operator review.`);
|
|
324
|
-
}
|
|
325
|
-
else if (report.cap_status === 'hard-critical') {
|
|
326
|
-
printError(`KG storage at ${formatBytes(report.total_bytes)} — exceeds 5GB hard cap. Prune stale `
|
|
327
|
-
+ `pristines or overlays before running \`olam kg build\` again.`);
|
|
328
|
-
return { exitCode: 1, report };
|
|
329
|
-
}
|
|
330
|
-
return { exitCode: 0, report };
|
|
331
|
-
}
|
|
332
|
-
export function registerKgStatusCommand(kg) {
|
|
333
|
-
kg.command('status')
|
|
334
|
-
.description('Report pristine + overlay KG state for every workspace (or one named workspace). '
|
|
335
|
-
+ 'Emits 1.5GB soft-cap warning + 5GB hard-cap critical error on stderr.')
|
|
336
|
-
.argument('[workspace]', 'workspace name (lowercase alphanumeric + hyphens/underscores)')
|
|
337
|
-
.option('--json', 'emit the report as JSON instead of a compact table')
|
|
338
|
-
.action(async (workspaceArg, opts) => {
|
|
339
|
-
const r = await runKgStatus(workspaceArg, opts);
|
|
340
|
-
if (r.exitCode !== 0)
|
|
341
|
-
process.exitCode = r.exitCode;
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
//# sourceMappingURL=kg-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kg-status.js","sourceRoot":"","sources":["../../src/commands/kg-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8BxD,SAAS,QAAQ;IACf,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OA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,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `olam kg uninstall-hook [--scope project|user]` — surgical removal of the
|
|
3
|
-
* kg-service PreToolUse hook from .claude/settings.json.
|
|
4
|
-
*
|
|
5
|
-
* Matches by sentinel — only removes hook entries whose command contains
|
|
6
|
-
* KG_HOOK_SENTINEL. Other PreToolUse entries (e.g. operator-installed
|
|
7
|
-
* custom hooks) are left intact. Idempotent: running on a non-installed
|
|
8
|
-
* file is a no-op.
|
|
9
|
-
*/
|
|
10
|
-
import type { Command } from 'commander';
|
|
11
|
-
export declare function registerKgUninstallHookCommand(kg: Command): void;
|
|
12
|
-
//# sourceMappingURL=kg-uninstall-hook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kg-uninstall-hook.d.ts","sourceRoot":"","sources":["../../src/commands/kg-uninstall-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiEzC,wBAAgB,8BAA8B,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAsEhE"}
|