@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
package/dist/commands/clean.js
DELETED
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* olam clean — reap orphan world filesystem state.
|
|
3
|
-
*
|
|
4
|
-
* The "no new orphans" half of the contract:
|
|
5
|
-
* - destroy.ts → destroyWorld() already calls fs.rmSync on the
|
|
6
|
-
* workspace dir, but the result is best-effort (try/catch swallows).
|
|
7
|
-
* - This command audits ~/.olam/worlds/<id>/ against the live
|
|
8
|
-
* registry + git worktree state, and either lists what's drift
|
|
9
|
-
* (default, dry-run) or reaps it (`--apply`).
|
|
10
|
-
*
|
|
11
|
-
* Categorisation of each on-disk world:
|
|
12
|
-
*
|
|
13
|
-
* active — registry knows about it AND status != destroyed.
|
|
14
|
-
* Always preserved. Excluded from --apply.
|
|
15
|
-
*
|
|
16
|
-
* dirty — git worktree registered AND has uncommitted changes
|
|
17
|
-
* or unpushed commits. Preserved by default; deletable
|
|
18
|
-
* via `--include-dirty` (with a final summary list so
|
|
19
|
-
* the operator sees what's about to disappear).
|
|
20
|
-
*
|
|
21
|
-
* stale-wt — git worktree registered but clean (no uncommits, no
|
|
22
|
-
* unpushed). Reaped via `git worktree remove --force`,
|
|
23
|
-
* which drops both the registration AND the directory.
|
|
24
|
-
*
|
|
25
|
-
* orphan — neither in the registry nor a registered worktree.
|
|
26
|
-
* Just a directory on disk. Reaped via `rm -rf`.
|
|
27
|
-
*
|
|
28
|
-
* Default invocation prints the table + total reclaimable bytes and
|
|
29
|
-
* exits 0 without touching disk. `--apply` performs the reap.
|
|
30
|
-
*/
|
|
31
|
-
import fs from 'node:fs';
|
|
32
|
-
import os from 'node:os';
|
|
33
|
-
import path from 'node:path';
|
|
34
|
-
import { execFileSync } from 'node:child_process';
|
|
35
|
-
import { loadContext } from '../context.js';
|
|
36
|
-
import { printError, printInfo } from '../output.js';
|
|
37
|
-
export function registerClean(program) {
|
|
38
|
-
program
|
|
39
|
-
.command('clean')
|
|
40
|
-
.description('Reap orphaned world filesystem state')
|
|
41
|
-
.option('--apply', 'Actually delete the orphans (default is dry-run)', false)
|
|
42
|
-
.option('--include-dirty', "Also delete worktrees with uncommitted changes (default preserves them)", false)
|
|
43
|
-
.option('-y, --yes', 'Skip the confirmation prompt under --apply', false)
|
|
44
|
-
.option('--json', 'Emit a machine-readable JSON inventory instead of the text table', false)
|
|
45
|
-
.action(async (raw) => {
|
|
46
|
-
const opts = {
|
|
47
|
-
apply: raw.apply === true,
|
|
48
|
-
includeDirty: raw.includeDirty === true,
|
|
49
|
-
yes: raw.yes === true,
|
|
50
|
-
json: raw.json === true,
|
|
51
|
-
};
|
|
52
|
-
const exitCode = await runClean(opts);
|
|
53
|
-
process.exitCode = exitCode;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
export async function runClean(opts) {
|
|
57
|
-
const { ctx, error } = await loadContext();
|
|
58
|
-
if (!ctx) {
|
|
59
|
-
printError(error?.message ?? 'Olam is not configured. Run `olam init` first.');
|
|
60
|
-
return 1;
|
|
61
|
-
}
|
|
62
|
-
const worldsDir = path.join(os.homedir(), '.olam', 'worlds');
|
|
63
|
-
if (!fs.existsSync(worldsDir)) {
|
|
64
|
-
if (opts.json) {
|
|
65
|
-
process.stdout.write(`${JSON.stringify({ worldsDir, entries: [] })}\n`);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
printInfo('Clean', `No ${worldsDir} directory present.`);
|
|
69
|
-
}
|
|
70
|
-
return 0;
|
|
71
|
-
}
|
|
72
|
-
// Set of world ids the registry knows are still live (not destroyed).
|
|
73
|
-
const liveIds = new Set();
|
|
74
|
-
for (const w of ctx.worldManager.listWorlds()) {
|
|
75
|
-
if (w.status !== 'destroyed')
|
|
76
|
-
liveIds.add(w.id);
|
|
77
|
-
}
|
|
78
|
-
// Map of canonical-repo-managed worktrees, keyed by their path. We
|
|
79
|
-
// can't tell from the operator's repo path alone what the canonical
|
|
80
|
-
// repo is, so we resolve it lazily once: walk every world dir's
|
|
81
|
-
// `olam/` subdir, and if it's a worktree, ask its parent.
|
|
82
|
-
const worktreeMap = collectWorktrees(worldsDir);
|
|
83
|
-
const entries = [];
|
|
84
|
-
for (const id of fs.readdirSync(worldsDir).sort()) {
|
|
85
|
-
const fullPath = path.join(worldsDir, id);
|
|
86
|
-
const stat = safeStat(fullPath);
|
|
87
|
-
if (!stat || !stat.isDirectory())
|
|
88
|
-
continue;
|
|
89
|
-
entries.push(classifyWorld({ id, fullPath, liveIds, worktreeMap }));
|
|
90
|
-
}
|
|
91
|
-
if (opts.json) {
|
|
92
|
-
process.stdout.write(`${JSON.stringify({ worldsDir, entries }, null, 2)}\n`);
|
|
93
|
-
return 0;
|
|
94
|
-
}
|
|
95
|
-
printTable(entries);
|
|
96
|
-
// Deletable subset (for both dry-run summary and --apply path).
|
|
97
|
-
const deletable = entries.filter((e) => isDeletable(e, opts));
|
|
98
|
-
const reclaimable = deletable.reduce((acc, e) => acc + e.bytes, 0);
|
|
99
|
-
process.stdout.write(`\n Reclaimable: ${formatBytes(reclaimable)} across ${deletable.length} entries`);
|
|
100
|
-
if (entries.length > deletable.length) {
|
|
101
|
-
process.stdout.write(` (preserved ${entries.length - deletable.length}: live registry + ${opts.includeDirty ? 'none' : 'dirty worktrees'})`);
|
|
102
|
-
}
|
|
103
|
-
process.stdout.write('\n');
|
|
104
|
-
if (!opts.apply) {
|
|
105
|
-
process.stdout.write('\n Dry-run only. Re-run with `--apply` to delete.\n');
|
|
106
|
-
return 0;
|
|
107
|
-
}
|
|
108
|
-
if (deletable.length === 0) {
|
|
109
|
-
process.stdout.write(' Nothing to delete. Exit clean.\n');
|
|
110
|
-
return 0;
|
|
111
|
-
}
|
|
112
|
-
if (!opts.yes) {
|
|
113
|
-
process.stdout.write(`\n About to delete ${deletable.length} entries (${formatBytes(reclaimable)}). Pass --yes to skip this prompt.\n`);
|
|
114
|
-
const confirmed = await confirmInteractive();
|
|
115
|
-
if (!confirmed) {
|
|
116
|
-
process.stdout.write(' Aborted.\n');
|
|
117
|
-
return 0;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
let removedBytes = 0;
|
|
121
|
-
let removedCount = 0;
|
|
122
|
-
for (const entry of deletable) {
|
|
123
|
-
const ok = reapEntry(entry);
|
|
124
|
-
if (ok) {
|
|
125
|
-
removedBytes += entry.bytes;
|
|
126
|
-
removedCount += 1;
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
process.stderr.write(` ! failed to reap ${entry.id}\n`);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
process.stdout.write(`\n Reaped ${removedCount}/${deletable.length} entries · ${formatBytes(removedBytes)} reclaimed.\n`);
|
|
133
|
-
return removedCount === deletable.length ? 0 : 1;
|
|
134
|
-
}
|
|
135
|
-
function classifyWorld(args) {
|
|
136
|
-
const { id, fullPath, liveIds, worktreeMap } = args;
|
|
137
|
-
const bytes = computeBytes(fullPath);
|
|
138
|
-
if (liveIds.has(id)) {
|
|
139
|
-
return { id, path: fullPath, bytes, category: 'active', note: 'in registry' };
|
|
140
|
-
}
|
|
141
|
-
const worktreeChild = path.join(fullPath, 'olam');
|
|
142
|
-
const worktreeInfo = worktreeMap.get(worktreeChild);
|
|
143
|
-
if (worktreeInfo) {
|
|
144
|
-
if (worktreeInfo.dirty > 0 || worktreeInfo.unpushed > 0) {
|
|
145
|
-
const flags = [];
|
|
146
|
-
if (worktreeInfo.dirty > 0)
|
|
147
|
-
flags.push(`dirty=${worktreeInfo.dirty}`);
|
|
148
|
-
if (worktreeInfo.unpushed > 0)
|
|
149
|
-
flags.push(`unpushed=${worktreeInfo.unpushed}`);
|
|
150
|
-
return {
|
|
151
|
-
id,
|
|
152
|
-
path: fullPath,
|
|
153
|
-
bytes,
|
|
154
|
-
category: 'dirty',
|
|
155
|
-
worktreePath: worktreeChild,
|
|
156
|
-
note: `${worktreeInfo.branch} · ${flags.join(' ')}`,
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
return {
|
|
160
|
-
id,
|
|
161
|
-
path: fullPath,
|
|
162
|
-
bytes,
|
|
163
|
-
category: 'stale-wt',
|
|
164
|
-
worktreePath: worktreeChild,
|
|
165
|
-
note: worktreeInfo.branch,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
return { id, path: fullPath, bytes, category: 'orphan' };
|
|
169
|
-
}
|
|
170
|
-
function isDeletable(entry, opts) {
|
|
171
|
-
if (entry.category === 'active')
|
|
172
|
-
return false;
|
|
173
|
-
if (entry.category === 'dirty' && !opts.includeDirty)
|
|
174
|
-
return false;
|
|
175
|
-
return true;
|
|
176
|
-
}
|
|
177
|
-
function reapEntry(entry) {
|
|
178
|
-
if (entry.worktreePath) {
|
|
179
|
-
// Try a clean `git worktree remove --force` first — that drops the
|
|
180
|
-
// git registration AND the directory in one call. Fall back to
|
|
181
|
-
// raw rm if git can't find the canonical repo (e.g. deleted).
|
|
182
|
-
try {
|
|
183
|
-
const gitDir = resolveGitDirForWorktree(entry.worktreePath);
|
|
184
|
-
if (gitDir) {
|
|
185
|
-
execFileSync('git', ['worktree', 'remove', '--force', entry.worktreePath], {
|
|
186
|
-
cwd: gitDir,
|
|
187
|
-
stdio: 'pipe',
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
catch {
|
|
192
|
-
// Fallthrough to rm.
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
try {
|
|
196
|
-
fs.rmSync(entry.path, { recursive: true, force: true });
|
|
197
|
-
}
|
|
198
|
-
catch (err) {
|
|
199
|
-
process.stderr.write(` ! rm ${entry.path}: ${err instanceof Error ? err.message : String(err)}\n`);
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
// Final sanity check.
|
|
203
|
-
return !fs.existsSync(entry.path);
|
|
204
|
-
}
|
|
205
|
-
// ---------------------------------------------------------------------------
|
|
206
|
-
// Worktree discovery
|
|
207
|
-
// ---------------------------------------------------------------------------
|
|
208
|
-
/**
|
|
209
|
-
* Walk every world's `olam/` subdir, ask its `.git` file what canonical
|
|
210
|
-
* repo it refers to, and bucket worktrees by absolute path. Cheap enough
|
|
211
|
-
* to do every invocation — there are typically <500 dirs.
|
|
212
|
-
*/
|
|
213
|
-
function collectWorktrees(worldsDir) {
|
|
214
|
-
const out = new Map();
|
|
215
|
-
for (const id of fs.readdirSync(worldsDir)) {
|
|
216
|
-
// Per-world layout: ~/.olam/worlds/<id>/<repo>/. We're only auditing
|
|
217
|
-
// the canonical "olam" worktree to detect dirty / unpushed; non-olam
|
|
218
|
-
// repos under the same world dir are reaped together with the world.
|
|
219
|
-
const child = path.join(worldsDir, id, 'olam');
|
|
220
|
-
const gitMarker = path.join(child, '.git');
|
|
221
|
-
if (!fs.existsSync(gitMarker))
|
|
222
|
-
continue;
|
|
223
|
-
const gitDir = resolveGitDirForWorktree(child);
|
|
224
|
-
if (!gitDir)
|
|
225
|
-
continue;
|
|
226
|
-
const branch = readBranch(child);
|
|
227
|
-
const dirty = countDirty(child);
|
|
228
|
-
const unpushed = countUnpushed(child);
|
|
229
|
-
out.set(child, { branch, dirty, unpushed, gitDir });
|
|
230
|
-
}
|
|
231
|
-
return out;
|
|
232
|
-
}
|
|
233
|
-
function resolveGitDirForWorktree(worktreePath) {
|
|
234
|
-
const gitMarker = path.join(worktreePath, '.git');
|
|
235
|
-
// .git inside a worktree is a file with `gitdir: <abs-path>`. We don't
|
|
236
|
-
// need to read it — `git rev-parse --show-toplevel` from inside the
|
|
237
|
-
// worktree resolves the canonical repo for us.
|
|
238
|
-
try {
|
|
239
|
-
const top = execFileSync('git', ['rev-parse', '--show-toplevel'], {
|
|
240
|
-
cwd: worktreePath,
|
|
241
|
-
encoding: 'utf-8',
|
|
242
|
-
stdio: 'pipe',
|
|
243
|
-
}).trim();
|
|
244
|
-
if (!top)
|
|
245
|
-
return null;
|
|
246
|
-
// For worktrees, --show-toplevel returns the worktree root; the
|
|
247
|
-
// canonical repo is one level up via --git-common-dir.
|
|
248
|
-
const common = execFileSync('git', ['rev-parse', '--git-common-dir'], {
|
|
249
|
-
cwd: worktreePath,
|
|
250
|
-
encoding: 'utf-8',
|
|
251
|
-
stdio: 'pipe',
|
|
252
|
-
}).trim();
|
|
253
|
-
if (!common)
|
|
254
|
-
return top;
|
|
255
|
-
return path.dirname(path.resolve(worktreePath, common));
|
|
256
|
-
}
|
|
257
|
-
catch {
|
|
258
|
-
return null;
|
|
259
|
-
}
|
|
260
|
-
// (gitMarker referenced for readability above; the lookup uses git itself)
|
|
261
|
-
void gitMarker;
|
|
262
|
-
}
|
|
263
|
-
function readBranch(worktreePath) {
|
|
264
|
-
try {
|
|
265
|
-
return execFileSync('git', ['branch', '--show-current'], {
|
|
266
|
-
cwd: worktreePath,
|
|
267
|
-
encoding: 'utf-8',
|
|
268
|
-
stdio: 'pipe',
|
|
269
|
-
}).trim() || '(detached)';
|
|
270
|
-
}
|
|
271
|
-
catch {
|
|
272
|
-
return '(unknown)';
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
function countDirty(worktreePath) {
|
|
276
|
-
try {
|
|
277
|
-
const out = execFileSync('git', ['status', '--porcelain'], {
|
|
278
|
-
cwd: worktreePath,
|
|
279
|
-
encoding: 'utf-8',
|
|
280
|
-
stdio: 'pipe',
|
|
281
|
-
});
|
|
282
|
-
return out.split('\n').filter((l) => l.trim()).length;
|
|
283
|
-
}
|
|
284
|
-
catch {
|
|
285
|
-
return 0;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
function countUnpushed(worktreePath) {
|
|
289
|
-
try {
|
|
290
|
-
const out = execFileSync('git', ['log', '@{u}..HEAD', '--oneline'], {
|
|
291
|
-
cwd: worktreePath,
|
|
292
|
-
encoding: 'utf-8',
|
|
293
|
-
stdio: 'pipe',
|
|
294
|
-
});
|
|
295
|
-
return out.split('\n').filter((l) => l.trim()).length;
|
|
296
|
-
}
|
|
297
|
-
catch {
|
|
298
|
-
// No upstream → can't measure; treat as 0 to avoid false positives.
|
|
299
|
-
return 0;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
// ---------------------------------------------------------------------------
|
|
303
|
-
// Disk + formatting helpers
|
|
304
|
-
// ---------------------------------------------------------------------------
|
|
305
|
-
function safeStat(p) {
|
|
306
|
-
try {
|
|
307
|
-
return fs.statSync(p);
|
|
308
|
-
}
|
|
309
|
-
catch {
|
|
310
|
-
return null;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
function computeBytes(p) {
|
|
314
|
-
let total = 0;
|
|
315
|
-
const stack = [p];
|
|
316
|
-
while (stack.length > 0) {
|
|
317
|
-
const cur = stack.pop();
|
|
318
|
-
let st;
|
|
319
|
-
try {
|
|
320
|
-
st = fs.lstatSync(cur);
|
|
321
|
-
}
|
|
322
|
-
catch {
|
|
323
|
-
continue;
|
|
324
|
-
}
|
|
325
|
-
if (st.isSymbolicLink())
|
|
326
|
-
continue;
|
|
327
|
-
if (st.isDirectory()) {
|
|
328
|
-
let entries;
|
|
329
|
-
try {
|
|
330
|
-
entries = fs.readdirSync(cur);
|
|
331
|
-
}
|
|
332
|
-
catch {
|
|
333
|
-
continue;
|
|
334
|
-
}
|
|
335
|
-
for (const name of entries)
|
|
336
|
-
stack.push(path.join(cur, name));
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
total += st.size;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return total;
|
|
343
|
-
}
|
|
344
|
-
function formatBytes(n) {
|
|
345
|
-
if (n < 1024)
|
|
346
|
-
return `${n}B`;
|
|
347
|
-
if (n < 1024 * 1024)
|
|
348
|
-
return `${(n / 1024).toFixed(1)}KB`;
|
|
349
|
-
if (n < 1024 * 1024 * 1024)
|
|
350
|
-
return `${(n / 1024 / 1024).toFixed(1)}MB`;
|
|
351
|
-
return `${(n / 1024 / 1024 / 1024).toFixed(2)}GB`;
|
|
352
|
-
}
|
|
353
|
-
function printTable(entries) {
|
|
354
|
-
if (entries.length === 0) {
|
|
355
|
-
process.stdout.write(' (no worlds on disk)\n');
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
// Header.
|
|
359
|
-
process.stdout.write(` ${'category'.padEnd(10)} ${'size'.padStart(10)} ${'world id'.padEnd(28)} note\n`);
|
|
360
|
-
process.stdout.write(` ${'-'.repeat(10)} ${'-'.repeat(10)} ${'-'.repeat(28)} ${'-'.repeat(40)}\n`);
|
|
361
|
-
for (const e of entries) {
|
|
362
|
-
process.stdout.write(` ${e.category.padEnd(10)} ${formatBytes(e.bytes).padStart(10)} ${e.id.padEnd(28)} ${e.note ?? ''}\n`);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
async function confirmInteractive() {
|
|
366
|
-
process.stdout.write(' Type `yes` to proceed: ');
|
|
367
|
-
const buf = [];
|
|
368
|
-
return new Promise((resolve) => {
|
|
369
|
-
const onData = (chunk) => {
|
|
370
|
-
buf.push(chunk);
|
|
371
|
-
if (Buffer.concat(buf).toString('utf-8').includes('\n')) {
|
|
372
|
-
process.stdin.removeListener('data', onData);
|
|
373
|
-
process.stdin.pause();
|
|
374
|
-
const answer = Buffer.concat(buf).toString('utf-8').trim();
|
|
375
|
-
resolve(answer.toLowerCase() === 'yes');
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
process.stdin.resume();
|
|
379
|
-
process.stdin.on('data', onData);
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
//# sourceMappingURL=clean.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clean.js","sourceRoot":"","sources":["../../src/commands/clean.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAoBrD,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,OAAO;SACJ,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,sCAAsC,CAAC;SACnD,MAAM,CAAC,SAAS,EAAE,kDAAkD,EAAE,KAAK,CAAC;SAC5E,MAAM,CACL,iBAAiB,EACjB,yEAAyE,EACzE,KAAK,CACN;SACA,MAAM,CAAC,WAAW,EAAE,4CAA4C,EAAE,KAAK,CAAC;SACxE,MAAM,CAAC,QAAQ,EAAE,kEAAkE,EAAE,KAAK,CAAC;SAC3F,MAAM,CAAC,KAAK,EAAE,GAA+E,EAAE,EAAE;QAChG,MAAM,IAAI,GAAiB;YACzB,KAAK,EAAE,GAAG,CAAC,KAAK,KAAK,IAAI;YACzB,YAAY,EAAE,GAAG,CAAC,YAAY,KAAK,IAAI;YACvC,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,IAAI;YACrB,IAAI,EAAE,GAAG,CAAC,IAAI,KAAK,IAAI;SACxB,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,2BAA2B,CAAC,CAAC;IAClD,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,MAAM,GAAG,CAAC,KAAa,EAAQ,EAAE;YACrC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChB,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxD,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAC7C,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACtB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;gBAC3D,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC;QACF,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACvB,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* olam completion <shell> — emit shell completion script.
|
|
3
|
-
*
|
|
4
|
-
* Phase B2 of olam-operator-onboarding-parity (plan
|
|
5
|
-
* ~/.claude/plans/olam-operator-onboarding-parity.md).
|
|
6
|
-
*
|
|
7
|
-
* Wraps the runtime-emit generator at `../lib/completion-generator.ts`
|
|
8
|
-
* (Decision 4 — runtime-emit from commander tree, not static fixtures).
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* olam completion zsh # → stdout: #compdef olam + _olam() function
|
|
12
|
-
* olam completion bash # → stdout: _olam_completions() + complete -F binding
|
|
13
|
-
* olam completion fish # → stderr: "Unsupported shell..."; exit 1
|
|
14
|
-
*
|
|
15
|
-
* Pipe to `eval` in shell rc OR let Phase C's `olam setup` do the
|
|
16
|
-
* idempotent shell-rc append for you:
|
|
17
|
-
* echo 'eval "$(olam completion zsh)"' >> ~/.zshrc
|
|
18
|
-
*/
|
|
19
|
-
import type { Command } from 'commander';
|
|
20
|
-
/**
|
|
21
|
-
* Register `olam completion <shell>` on the given commander program.
|
|
22
|
-
*
|
|
23
|
-
* Captures `program` in the closure so the action handler can walk the
|
|
24
|
-
* full command tree at invoke time. Using `program.parent ?? program`
|
|
25
|
-
* keeps the implementation working when commands inject their subcommands
|
|
26
|
-
* via a different parent — though in olam's current shape, `program` IS
|
|
27
|
-
* always the root, so the parent fallback is defence-in-depth.
|
|
28
|
-
*/
|
|
29
|
-
export declare function registerCompletion(program: Command): void;
|
|
30
|
-
//# sourceMappingURL=completion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmBzD"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* olam completion <shell> — emit shell completion script.
|
|
3
|
-
*
|
|
4
|
-
* Phase B2 of olam-operator-onboarding-parity (plan
|
|
5
|
-
* ~/.claude/plans/olam-operator-onboarding-parity.md).
|
|
6
|
-
*
|
|
7
|
-
* Wraps the runtime-emit generator at `../lib/completion-generator.ts`
|
|
8
|
-
* (Decision 4 — runtime-emit from commander tree, not static fixtures).
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* olam completion zsh # → stdout: #compdef olam + _olam() function
|
|
12
|
-
* olam completion bash # → stdout: _olam_completions() + complete -F binding
|
|
13
|
-
* olam completion fish # → stderr: "Unsupported shell..."; exit 1
|
|
14
|
-
*
|
|
15
|
-
* Pipe to `eval` in shell rc OR let Phase C's `olam setup` do the
|
|
16
|
-
* idempotent shell-rc append for you:
|
|
17
|
-
* echo 'eval "$(olam completion zsh)"' >> ~/.zshrc
|
|
18
|
-
*/
|
|
19
|
-
import { generateCompletion, UnsupportedShellError } from '../lib/completion-generator.js';
|
|
20
|
-
/**
|
|
21
|
-
* Register `olam completion <shell>` on the given commander program.
|
|
22
|
-
*
|
|
23
|
-
* Captures `program` in the closure so the action handler can walk the
|
|
24
|
-
* full command tree at invoke time. Using `program.parent ?? program`
|
|
25
|
-
* keeps the implementation working when commands inject their subcommands
|
|
26
|
-
* via a different parent — though in olam's current shape, `program` IS
|
|
27
|
-
* always the root, so the parent fallback is defence-in-depth.
|
|
28
|
-
*/
|
|
29
|
-
export function registerCompletion(program) {
|
|
30
|
-
program
|
|
31
|
-
.command('completion')
|
|
32
|
-
.description('Emit a shell completion script for zsh or bash')
|
|
33
|
-
.argument('<shell>', 'zsh | bash')
|
|
34
|
-
.action((shell) => {
|
|
35
|
-
const tree = program.parent ?? program;
|
|
36
|
-
try {
|
|
37
|
-
const output = generateCompletion(tree, shell);
|
|
38
|
-
process.stdout.write(output);
|
|
39
|
-
}
|
|
40
|
-
catch (err) {
|
|
41
|
-
if (err instanceof UnsupportedShellError) {
|
|
42
|
-
process.stderr.write(`${err.message}\n`);
|
|
43
|
-
process.exitCode = 1;
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
throw err;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=completion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAI3F;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB;IACjD,OAAO;SACJ,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,gDAAgD,CAAC;SAC7D,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;SACjC,MAAM,CAAC,CAAC,KAAa,EAAE,EAAE;QACxB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC;QACvC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,kBAAkB,CAAC,IAAI,EAAE,KAAuB,CAAC,CAAC;YACjE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,qBAAqB,EAAE,CAAC;gBACzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC;gBACzC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;gBACrB,OAAO;YACT,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyDzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmIrD"}
|
package/dist/commands/config.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import * as fs from 'node:fs';
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
import { GlobalConfigSchema } from '@olam/core/src/global-config/index.js';
|
|
4
|
-
import { globalConfigPath } from '@olam/core/src/global-config/store.js';
|
|
5
|
-
import { readConfig, writeConfig, isValidConfig, OLAM_CONFIG_PATH, } from '../lib/config.js';
|
|
6
|
-
const _require = createRequire(import.meta.url);
|
|
7
|
-
const { parse: parseWithMap } = _require('json-source-map');
|
|
8
|
-
/**
|
|
9
|
-
* Keys settable via `olam config set`. These live in the cli/lib host-config
|
|
10
|
-
* slice (`config.schema` shape) — the slice read by `olam upgrade`,
|
|
11
|
-
* `olam services`, `olam auth`, and the kubectl-context resolver.
|
|
12
|
-
*/
|
|
13
|
-
const SETTABLE_KEYS = [
|
|
14
|
-
'host.substrate',
|
|
15
|
-
'host.kubectl_context_pinned',
|
|
16
|
-
'host.gh_token',
|
|
17
|
-
];
|
|
18
|
-
/** Keys whose values are secret and must not be echoed back to the terminal. */
|
|
19
|
-
const SECRET_KEYS = new Set(['host.gh_token']);
|
|
20
|
-
/**
|
|
21
|
-
* Resolve the host-config path. Honors `OLAM_CONFIG_PATH` (used by tests and
|
|
22
|
-
* power-users with a non-default home); falls back to the cli/lib default
|
|
23
|
-
* (`~/.olam/config.json`).
|
|
24
|
-
*/
|
|
25
|
-
function hostConfigPath() {
|
|
26
|
-
return process.env['OLAM_CONFIG_PATH'] ?? OLAM_CONFIG_PATH;
|
|
27
|
-
}
|
|
28
|
-
export function registerConfig(program) {
|
|
29
|
-
const config = program.command('config').description('Manage global olam configuration');
|
|
30
|
-
config
|
|
31
|
-
.command('validate [path]')
|
|
32
|
-
.description('Validate ~/.olam/config.json (or a custom path) against the schema')
|
|
33
|
-
.action((filePath) => {
|
|
34
|
-
const resolvedPath = filePath ?? globalConfigPath();
|
|
35
|
-
if (!fs.existsSync(resolvedPath)) {
|
|
36
|
-
process.stderr.write(`config file not found: ${resolvedPath}\n`);
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
let raw;
|
|
40
|
-
try {
|
|
41
|
-
raw = fs.readFileSync(resolvedPath, 'utf-8');
|
|
42
|
-
}
|
|
43
|
-
catch (err) {
|
|
44
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
45
|
-
process.stderr.write(`cannot read ${resolvedPath}: ${msg}\n`);
|
|
46
|
-
process.exit(1);
|
|
47
|
-
}
|
|
48
|
-
let parsed;
|
|
49
|
-
let pointers;
|
|
50
|
-
try {
|
|
51
|
-
const result = parseWithMap(raw);
|
|
52
|
-
parsed = result.data;
|
|
53
|
-
pointers = result.pointers;
|
|
54
|
-
}
|
|
55
|
-
catch (err) {
|
|
56
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
57
|
-
process.stderr.write(`${resolvedPath}: invalid JSON — ${msg}\n`);
|
|
58
|
-
process.exit(1);
|
|
59
|
-
}
|
|
60
|
-
// `~/.olam/config.json` is shared by two schema owners: the cli/lib
|
|
61
|
-
// host-config slice (`"config.schema": 1`, with host/install_id) and
|
|
62
|
-
// @olam/core's global-config slice (`schemaVersion: 1`, with
|
|
63
|
-
// repos/runbooks). Validate against whichever shape the file declares so
|
|
64
|
-
// a healthy host-config isn't false-flagged against the repos schema.
|
|
65
|
-
// (Full union validation is pending the schema-unification follow-up.)
|
|
66
|
-
const isHostShape = typeof parsed === 'object' &&
|
|
67
|
-
parsed !== null &&
|
|
68
|
-
'config.schema' in parsed;
|
|
69
|
-
if (isHostShape) {
|
|
70
|
-
if (isValidConfig(parsed)) {
|
|
71
|
-
process.stdout.write('valid (olam host config — config.schema v1)\n');
|
|
72
|
-
process.exit(0);
|
|
73
|
-
}
|
|
74
|
-
process.stderr.write(`${resolvedPath}: invalid olam host config — expected { "config.schema": 1, ` +
|
|
75
|
-
`host: { substrate: "compose" | "kubernetes" }, install_id: <non-empty string> }\n`);
|
|
76
|
-
process.exit(1);
|
|
77
|
-
}
|
|
78
|
-
const result = GlobalConfigSchema.safeParse(parsed);
|
|
79
|
-
if (result.success) {
|
|
80
|
-
process.exit(0);
|
|
81
|
-
}
|
|
82
|
-
for (const issue of result.error.issues) {
|
|
83
|
-
const pointer = '/' + issue.path.join('/');
|
|
84
|
-
const entry = pointers[pointer];
|
|
85
|
-
const rawLine = entry?.value?.line ?? entry?.key?.line ?? -1;
|
|
86
|
-
const lineStr = rawLine >= 0 ? `Line ${rawLine + 1}: ` : '';
|
|
87
|
-
process.stderr.write(`${lineStr}${pointer}: ${issue.message}\n`);
|
|
88
|
-
}
|
|
89
|
-
process.exit(1);
|
|
90
|
-
});
|
|
91
|
-
config
|
|
92
|
-
.command('get [key]')
|
|
93
|
-
.description('Print the global config (or a dotted key, e.g. host.kubectl_context_pinned)')
|
|
94
|
-
.action((key) => {
|
|
95
|
-
const cfg = readConfig({ configPath: hostConfigPath() });
|
|
96
|
-
if (key === undefined) {
|
|
97
|
-
process.stdout.write(JSON.stringify(cfg, null, 2) + '\n');
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const value = key.split('.').reduce((acc, part) => {
|
|
101
|
-
if (acc !== null && typeof acc === 'object' && part in acc) {
|
|
102
|
-
return acc[part];
|
|
103
|
-
}
|
|
104
|
-
return undefined;
|
|
105
|
-
}, cfg);
|
|
106
|
-
if (value === undefined) {
|
|
107
|
-
process.stderr.write(`${key} is not set\n`);
|
|
108
|
-
process.exit(1);
|
|
109
|
-
}
|
|
110
|
-
process.stdout.write((typeof value === 'object' ? JSON.stringify(value, null, 2) : String(value)) + '\n');
|
|
111
|
-
});
|
|
112
|
-
config
|
|
113
|
-
.command('set <key> <value>')
|
|
114
|
-
.description(`Set a global config value. Keys: ${SETTABLE_KEYS.join(', ')}`)
|
|
115
|
-
.action((key, value) => {
|
|
116
|
-
const configPath = hostConfigPath();
|
|
117
|
-
if (key === 'host.substrate') {
|
|
118
|
-
if (value !== 'compose' && value !== 'kubernetes') {
|
|
119
|
-
process.stderr.write(`invalid value for host.substrate: "${value}" (expected "compose" or "kubernetes")\n`);
|
|
120
|
-
process.exit(1);
|
|
121
|
-
}
|
|
122
|
-
writeConfig({ host: { substrate: value } }, { configPath });
|
|
123
|
-
}
|
|
124
|
-
else if (key === 'host.kubectl_context_pinned') {
|
|
125
|
-
if (value.length === 0) {
|
|
126
|
-
process.stderr.write('host.kubectl_context_pinned must be a non-empty context name\n');
|
|
127
|
-
process.exit(1);
|
|
128
|
-
}
|
|
129
|
-
writeConfig({ host: { kubectl_context_pinned: value } }, { configPath });
|
|
130
|
-
}
|
|
131
|
-
else if (key === 'host.gh_token') {
|
|
132
|
-
if (value.length === 0) {
|
|
133
|
-
process.stderr.write('host.gh_token must be a non-empty token\n');
|
|
134
|
-
process.exit(1);
|
|
135
|
-
}
|
|
136
|
-
writeConfig({ host: { gh_token: value } }, { configPath });
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
process.stderr.write(`unknown config key: "${key}"\n Settable keys: ${SETTABLE_KEYS.join(', ')}\n`);
|
|
140
|
-
process.exit(1);
|
|
141
|
-
}
|
|
142
|
-
const shown = SECRET_KEYS.has(key) ? '***' : value;
|
|
143
|
-
process.stdout.write(`set ${key} = ${shown} → ${configPath}\n`);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,gBAAgB,GAEjB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAmBhD,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC,iBAAiB,CAEzD,CAAC;AAEF;;;;GAIG;AACH,MAAM,aAAa,GA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