@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,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* bundle-source.ts — Phase C C2 (olam-world-bundle-freshness).
|
|
3
|
-
*
|
|
4
|
-
* Single resolver for the agent-stream bind-mount source path. Two modes:
|
|
5
|
-
*
|
|
6
|
-
* source-mode (OLAM_DEV=1 + packages/ sibling in repo root):
|
|
7
|
-
* → <repo>/packages/intelligence/dist/agent-stream
|
|
8
|
-
*
|
|
9
|
-
* install-mode (OLAM_FORCE_INSTALL_MODE=1, or OLAM_DEV is absent/not '1',
|
|
10
|
-
* or the packages/ sibling is absent):
|
|
11
|
-
* → <cli-pkg-root>/dist/agent-stream
|
|
12
|
-
* (the path populated by bundle-agent-stream.mjs at publish time)
|
|
13
|
-
*
|
|
14
|
-
* Throws `BundleSourceNotFoundError` with a remediation message when neither
|
|
15
|
-
* path exists on disk.
|
|
16
|
-
*
|
|
17
|
-
* Design decisions:
|
|
18
|
-
* - Reuses `installRoot()` + `isDevMode()` from install-root.ts (the seam
|
|
19
|
-
* established by Phase B / fresh-install-self-bootstrap). No new heuristics.
|
|
20
|
-
* - `OLAM_FORCE_INSTALL_MODE=1` forces install-mode regardless of cwd; used
|
|
21
|
-
* by the C4 integration test to exercise install-mode paths without a real
|
|
22
|
-
* global install.
|
|
23
|
-
* - Does NOT import from @olam/adapters (dep cycle — adapters cannot import
|
|
24
|
-
* from @pleri/olam-cli). The container.ts refactor in Phase C receives the
|
|
25
|
-
* resolved path as an argument instead of computing it internally.
|
|
26
|
-
*/
|
|
27
|
-
import { existsSync } from 'node:fs';
|
|
28
|
-
import { join, resolve } from 'node:path';
|
|
29
|
-
import { installRoot, isDevMode } from '../install-root.js';
|
|
30
|
-
/**
|
|
31
|
-
* Thrown when neither the source-mode nor the install-mode bundle directory
|
|
32
|
-
* exists on disk. Carries a remediation message operators can act on.
|
|
33
|
-
*/
|
|
34
|
-
export class BundleSourceNotFoundError extends Error {
|
|
35
|
-
constructor(sourceModePath, installModePath) {
|
|
36
|
-
super(`agent-stream bundle not found in either location:\n` +
|
|
37
|
-
` source-mode path: ${sourceModePath}\n` +
|
|
38
|
-
` install-mode path: ${installModePath}\n` +
|
|
39
|
-
`\n` +
|
|
40
|
-
`Remediation:\n` +
|
|
41
|
-
` In a monorepo clone (OLAM_DEV=1): run \`npm run build --workspace=@olam/intelligence\`\n` +
|
|
42
|
-
` In a global install: reinstall or update — \`npm install -g @pleri/olam-cli@latest\`\n` +
|
|
43
|
-
` (the published tarball ships dist/agent-stream/ as of Phase C)\n`);
|
|
44
|
-
this.name = 'BundleSourceNotFoundError';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Resolve the agent-stream bind-mount source for the current runtime context.
|
|
49
|
-
*
|
|
50
|
-
* @param env - Process environment. Defaults to `process.env`. Injectable for
|
|
51
|
-
* tests — pass `{ OLAM_FORCE_INSTALL_MODE: '1' }` to exercise install-mode.
|
|
52
|
-
* @param installRootDir - Override the CLI package root. Defaults to
|
|
53
|
-
* `installRoot()`. Injectable for tests.
|
|
54
|
-
* @returns `BundleSource` with the resolved mode and absolute directory path.
|
|
55
|
-
* @throws `BundleSourceNotFoundError` when neither path exists.
|
|
56
|
-
*/
|
|
57
|
-
export function resolveBundleSource(env = process.env, installRootDir = installRoot()) {
|
|
58
|
-
// OLAM_FORCE_INSTALL_MODE=1 skips the source-mode check unconditionally.
|
|
59
|
-
// Used by the C4 integration test to force install-mode without a real
|
|
60
|
-
// global install.
|
|
61
|
-
const forceInstall = env['OLAM_FORCE_INSTALL_MODE'] === '1';
|
|
62
|
-
// Source-mode: OLAM_DEV=1 + packages/ sibling + package.json (per isDevMode).
|
|
63
|
-
if (!forceInstall && isDevMode(env, installRootDir)) {
|
|
64
|
-
// installRoot sits at <repo>/packages/cli; walk up two levels to repo root.
|
|
65
|
-
const repoRoot = resolve(installRootDir, '..', '..');
|
|
66
|
-
const sourcePath = join(repoRoot, 'packages', 'intelligence', 'dist', 'agent-stream');
|
|
67
|
-
const installPath = join(installRootDir, 'dist', 'agent-stream');
|
|
68
|
-
if (!existsSync(sourcePath)) {
|
|
69
|
-
throw new BundleSourceNotFoundError(sourcePath, installPath);
|
|
70
|
-
}
|
|
71
|
-
return { mode: 'source', path: sourcePath };
|
|
72
|
-
}
|
|
73
|
-
// Install-mode: use the CLI's own dist/agent-stream/ (shipped via C1).
|
|
74
|
-
const installPath = join(installRootDir, 'dist', 'agent-stream');
|
|
75
|
-
// Source path for error message.
|
|
76
|
-
const repoRoot = resolve(installRootDir, '..', '..');
|
|
77
|
-
const sourcePath = join(repoRoot, 'packages', 'intelligence', 'dist', 'agent-stream');
|
|
78
|
-
if (!existsSync(installPath)) {
|
|
79
|
-
throw new BundleSourceNotFoundError(sourcePath, installPath);
|
|
80
|
-
}
|
|
81
|
-
return { mode: 'install', path: installPath };
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=bundle-source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-source.js","sourceRoot":"","sources":["../../src/lib/bundle-source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WAAW,CAAC,CAAC;QAC/D,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC9C,CAAC;IAED,uEAAuE;IACvE,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACjE,iCAAiC;IACjC,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACtF,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,yBAAyB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CF Access service-token resolver (CLI mirror — Phase H h2).
|
|
3
|
-
*
|
|
4
|
-
* Mirrors packages/auth-client/src/cf-access-service-token.ts so the CLI
|
|
5
|
-
* stays a self-contained published bundle (no new workspace dependency in
|
|
6
|
-
* the publish path). The auth-client copy is the canonical one consumed by
|
|
7
|
-
* host-cp; this copy backs `olam auth issue/list-anthropic-tokens`.
|
|
8
|
-
*
|
|
9
|
-
* A CF Access *service token* is a non-interactive (client-id + client-secret)
|
|
10
|
-
* credential the Cloudflare edge validates and converts into a
|
|
11
|
-
* `Cf-Access-Jwt-Assertion` JWT before the request reaches the auth-worker —
|
|
12
|
-
* replacing the manual "paste your CF_Authorization cookie" step.
|
|
13
|
-
*
|
|
14
|
-
* Resolution priority (first hit wins):
|
|
15
|
-
* 1. env CF_ACCESS_CLIENT_ID + CF_ACCESS_CLIENT_SECRET
|
|
16
|
-
* 2. ~/.olam/cf-access-service-token.json ({clientId, clientSecret}, chmod 600)
|
|
17
|
-
*
|
|
18
|
-
* See docs/runbooks/cf-access-service-token.md for provisioning.
|
|
19
|
-
*/
|
|
20
|
-
export interface CfAccessServiceToken {
|
|
21
|
-
clientId: string;
|
|
22
|
-
clientSecret: string;
|
|
23
|
-
}
|
|
24
|
-
/** Default on-disk location for the service-token credential file. */
|
|
25
|
-
export declare function defaultServiceTokenPath(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Resolve a CF Access service token from env, then from disk.
|
|
28
|
-
* Returns null when neither source supplies BOTH a non-empty clientId and
|
|
29
|
-
* clientSecret.
|
|
30
|
-
*/
|
|
31
|
-
export declare function resolveCfAccessServiceToken(env?: NodeJS.ProcessEnv, filePath?: string): CfAccessServiceToken | null;
|
|
32
|
-
//# sourceMappingURL=cf-access-token.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cf-access-token.d.ts","sourceRoot":"","sources":["../../src/lib/cf-access-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,sEAAsE;AACtE,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,QAAQ,GAAE,MAAkC,GAC3C,oBAAoB,GAAG,IAAI,CAqB7B"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CF Access service-token resolver (CLI mirror — Phase H h2).
|
|
3
|
-
*
|
|
4
|
-
* Mirrors packages/auth-client/src/cf-access-service-token.ts so the CLI
|
|
5
|
-
* stays a self-contained published bundle (no new workspace dependency in
|
|
6
|
-
* the publish path). The auth-client copy is the canonical one consumed by
|
|
7
|
-
* host-cp; this copy backs `olam auth issue/list-anthropic-tokens`.
|
|
8
|
-
*
|
|
9
|
-
* A CF Access *service token* is a non-interactive (client-id + client-secret)
|
|
10
|
-
* credential the Cloudflare edge validates and converts into a
|
|
11
|
-
* `Cf-Access-Jwt-Assertion` JWT before the request reaches the auth-worker —
|
|
12
|
-
* replacing the manual "paste your CF_Authorization cookie" step.
|
|
13
|
-
*
|
|
14
|
-
* Resolution priority (first hit wins):
|
|
15
|
-
* 1. env CF_ACCESS_CLIENT_ID + CF_ACCESS_CLIENT_SECRET
|
|
16
|
-
* 2. ~/.olam/cf-access-service-token.json ({clientId, clientSecret}, chmod 600)
|
|
17
|
-
*
|
|
18
|
-
* See docs/runbooks/cf-access-service-token.md for provisioning.
|
|
19
|
-
*/
|
|
20
|
-
import * as fs from 'node:fs';
|
|
21
|
-
import { resolveSecretPath } from '@olam/core/src/secrets/paths.js';
|
|
22
|
-
/** Default on-disk location for the service-token credential file. */
|
|
23
|
-
export function defaultServiceTokenPath() {
|
|
24
|
-
return resolveSecretPath('cf-access-service-token.json');
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Resolve a CF Access service token from env, then from disk.
|
|
28
|
-
* Returns null when neither source supplies BOTH a non-empty clientId and
|
|
29
|
-
* clientSecret.
|
|
30
|
-
*/
|
|
31
|
-
export function resolveCfAccessServiceToken(env = process.env, filePath = defaultServiceTokenPath()) {
|
|
32
|
-
const envId = env['CF_ACCESS_CLIENT_ID'];
|
|
33
|
-
const envSecret = env['CF_ACCESS_CLIENT_SECRET'];
|
|
34
|
-
if (envId && envId.trim().length > 0 && envSecret && envSecret.trim().length > 0) {
|
|
35
|
-
return { clientId: envId.trim(), clientSecret: envSecret.trim() };
|
|
36
|
-
}
|
|
37
|
-
try {
|
|
38
|
-
const raw = fs.readFileSync(filePath, 'utf-8');
|
|
39
|
-
const parsed = JSON.parse(raw);
|
|
40
|
-
const clientId = typeof parsed.clientId === 'string' ? parsed.clientId.trim() : '';
|
|
41
|
-
const clientSecret = typeof parsed.clientSecret === 'string' ? parsed.clientSecret.trim() : '';
|
|
42
|
-
if (clientId.length > 0 && clientSecret.length > 0) {
|
|
43
|
-
return { clientId, clientSecret };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
catch {
|
|
47
|
-
// File absent / unreadable / malformed JSON → no token.
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=cf-access-token.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cf-access-token.js","sourceRoot":"","sources":["../../src/lib/cf-access-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAOpE,sEAAsE;AACtE,MAAM,UAAU,uBAAuB;IACrC,OAAO,iBAAiB,CAAC,8BAA8B,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAyB,OAAO,CAAC,GAAG,EACpC,WAAmB,uBAAuB,EAAE;IAE5C,MAAM,KAAK,GAAG,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACzC,MAAM,SAAS,GAAG,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACjD,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjF,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;IACpE,CAAC;IAED,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAmD,CAAC;QACjF,MAAM,QAAQ,GAAG,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,MAAM,YAAY,GAChB,OAAO,MAAM,CAAC,YAAY,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5E,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,wDAAwD;IAC1D,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* completion-generator.ts — Commander command-tree → POSIX shell completion script.
|
|
3
|
-
*
|
|
4
|
-
* Phase B1 of olam-operator-onboarding-parity (plan
|
|
5
|
-
* ~/.claude/plans/olam-operator-onboarding-parity.md).
|
|
6
|
-
*
|
|
7
|
-
* Decision 4 (plan): runtime-emit from the commander tree, NOT static
|
|
8
|
-
* fixtures in the tarball. One source of truth: new CLI commands auto-
|
|
9
|
-
* included in the next `olam completion <shell>` invocation.
|
|
10
|
-
*
|
|
11
|
-
* Supported shells: zsh + bash. Other shells throw `UnsupportedShellError`.
|
|
12
|
-
*
|
|
13
|
-
* Nesting depth: TWO levels of subcommand dispatch (top-level + one
|
|
14
|
-
* nested). Covers ~95% of olam's tree (`olam kg build`, `olam auth login`,
|
|
15
|
-
* `olam workspace list`, etc.). Deeper nesting (`olam world snapshot
|
|
16
|
-
* restore`) falls through gracefully — top + one level still complete.
|
|
17
|
-
*
|
|
18
|
-
* Escaping:
|
|
19
|
-
* - zsh: descriptions inside `name:description` syntax need `:` escaped
|
|
20
|
-
* (since `:` is the field separator) and `'` doubled (since strings
|
|
21
|
-
* are single-quoted).
|
|
22
|
-
* - bash: descriptions inside double-quoted strings need `"`, `\`, `$`,
|
|
23
|
-
* and backtick escaped.
|
|
24
|
-
*
|
|
25
|
-
* Hidden commands (commander's private `_hidden` flag) are excluded:
|
|
26
|
-
* - `olam crystallize` is registered with `{ hidden: !isPleriConfigured() }`
|
|
27
|
-
* for fresh-install operators.
|
|
28
|
-
*
|
|
29
|
-
* Determinism: commander preserves command-registration order in
|
|
30
|
-
* `Command.commands`. The walk is a pure-functional map → the output is
|
|
31
|
-
* a deterministic function of the program tree. Snapshot tests rely on
|
|
32
|
-
* this.
|
|
33
|
-
*/
|
|
34
|
-
import type { Command } from 'commander';
|
|
35
|
-
export interface CommandNode {
|
|
36
|
-
readonly name: string;
|
|
37
|
-
readonly description: string;
|
|
38
|
-
readonly subcommands: ReadonlyArray<CommandNode>;
|
|
39
|
-
}
|
|
40
|
-
export declare class UnsupportedShellError extends Error {
|
|
41
|
-
constructor(shell: string);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Walk a commander `Command` recursively, extracting (name, description,
|
|
45
|
-
* subcommands). Hidden commands (commander's private `_hidden` flag,
|
|
46
|
-
* set via `.command(..., { hidden: true })`) are excluded.
|
|
47
|
-
*/
|
|
48
|
-
export declare function extractCommandTree(program: Command): CommandNode;
|
|
49
|
-
/**
|
|
50
|
-
* Emit a zsh completion script.
|
|
51
|
-
*
|
|
52
|
-
* Format:
|
|
53
|
-
* #compdef <program>
|
|
54
|
-
*
|
|
55
|
-
* _<program>() {
|
|
56
|
-
* local -a l1_subs
|
|
57
|
-
* l1_subs=(
|
|
58
|
-
* '<sub>:<description>'
|
|
59
|
-
* ...
|
|
60
|
-
* )
|
|
61
|
-
* if (( CURRENT == 2 )); then
|
|
62
|
-
* _describe '<program> command' l1_subs
|
|
63
|
-
* return
|
|
64
|
-
* fi
|
|
65
|
-
* case $words[2] in
|
|
66
|
-
* <sub-with-children>)
|
|
67
|
-
* if (( CURRENT == 3 )); then
|
|
68
|
-
* local -a l2_subs
|
|
69
|
-
* l2_subs=(...)
|
|
70
|
-
* _describe '<sub> subcommand' l2_subs
|
|
71
|
-
* fi
|
|
72
|
-
* ;;
|
|
73
|
-
* ...
|
|
74
|
-
* esac
|
|
75
|
-
* }
|
|
76
|
-
*
|
|
77
|
-
* _<program> "$@"
|
|
78
|
-
*/
|
|
79
|
-
export declare function generateZshCompletion(tree: CommandNode): string;
|
|
80
|
-
/**
|
|
81
|
-
* Emit a bash completion script.
|
|
82
|
-
*
|
|
83
|
-
* Format:
|
|
84
|
-
* _<program>_completions() {
|
|
85
|
-
* local cur="${COMP_WORDS[COMP_CWORD]}"
|
|
86
|
-
* local cword=$COMP_CWORD
|
|
87
|
-
* if [[ $cword -eq 1 ]]; then
|
|
88
|
-
* COMPREPLY=( $(compgen -W "<sub1> <sub2> ..." -- "$cur") )
|
|
89
|
-
* return
|
|
90
|
-
* fi
|
|
91
|
-
* case "${COMP_WORDS[1]}" in
|
|
92
|
-
* <sub-with-children>)
|
|
93
|
-
* if [[ $cword -eq 2 ]]; then
|
|
94
|
-
* COMPREPLY=( $(compgen -W "<l2-1> <l2-2> ..." -- "$cur") )
|
|
95
|
-
* fi
|
|
96
|
-
* ;;
|
|
97
|
-
* esac
|
|
98
|
-
* }
|
|
99
|
-
* complete -F _<program>_completions <program>
|
|
100
|
-
*/
|
|
101
|
-
export declare function generateBashCompletion(tree: CommandNode): string;
|
|
102
|
-
/**
|
|
103
|
-
* Top-level API: walk the commander program + emit a completion script
|
|
104
|
-
* for the requested shell.
|
|
105
|
-
*/
|
|
106
|
-
export declare function generateCompletion(program: Command, shell: 'zsh' | 'bash'): string;
|
|
107
|
-
//# sourceMappingURL=completion-generator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion-generator.d.ts","sourceRoot":"","sources":["../../src/lib/completion-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CAClD;AAED,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,KAAK,EAAE,MAAM;CAI1B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAQhE;AA0CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CA0C/D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAgChE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAKlF"}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* completion-generator.ts — Commander command-tree → POSIX shell completion script.
|
|
3
|
-
*
|
|
4
|
-
* Phase B1 of olam-operator-onboarding-parity (plan
|
|
5
|
-
* ~/.claude/plans/olam-operator-onboarding-parity.md).
|
|
6
|
-
*
|
|
7
|
-
* Decision 4 (plan): runtime-emit from the commander tree, NOT static
|
|
8
|
-
* fixtures in the tarball. One source of truth: new CLI commands auto-
|
|
9
|
-
* included in the next `olam completion <shell>` invocation.
|
|
10
|
-
*
|
|
11
|
-
* Supported shells: zsh + bash. Other shells throw `UnsupportedShellError`.
|
|
12
|
-
*
|
|
13
|
-
* Nesting depth: TWO levels of subcommand dispatch (top-level + one
|
|
14
|
-
* nested). Covers ~95% of olam's tree (`olam kg build`, `olam auth login`,
|
|
15
|
-
* `olam workspace list`, etc.). Deeper nesting (`olam world snapshot
|
|
16
|
-
* restore`) falls through gracefully — top + one level still complete.
|
|
17
|
-
*
|
|
18
|
-
* Escaping:
|
|
19
|
-
* - zsh: descriptions inside `name:description` syntax need `:` escaped
|
|
20
|
-
* (since `:` is the field separator) and `'` doubled (since strings
|
|
21
|
-
* are single-quoted).
|
|
22
|
-
* - bash: descriptions inside double-quoted strings need `"`, `\`, `$`,
|
|
23
|
-
* and backtick escaped.
|
|
24
|
-
*
|
|
25
|
-
* Hidden commands (commander's private `_hidden` flag) are excluded:
|
|
26
|
-
* - `olam crystallize` is registered with `{ hidden: !isPleriConfigured() }`
|
|
27
|
-
* for fresh-install operators.
|
|
28
|
-
*
|
|
29
|
-
* Determinism: commander preserves command-registration order in
|
|
30
|
-
* `Command.commands`. The walk is a pure-functional map → the output is
|
|
31
|
-
* a deterministic function of the program tree. Snapshot tests rely on
|
|
32
|
-
* this.
|
|
33
|
-
*/
|
|
34
|
-
export class UnsupportedShellError extends Error {
|
|
35
|
-
constructor(shell) {
|
|
36
|
-
super(`Unsupported shell: ${shell}. Supported shells: zsh, bash.`);
|
|
37
|
-
this.name = 'UnsupportedShellError';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Walk a commander `Command` recursively, extracting (name, description,
|
|
42
|
-
* subcommands). Hidden commands (commander's private `_hidden` flag,
|
|
43
|
-
* set via `.command(..., { hidden: true })`) are excluded.
|
|
44
|
-
*/
|
|
45
|
-
export function extractCommandTree(program) {
|
|
46
|
-
return {
|
|
47
|
-
name: program.name(),
|
|
48
|
-
description: program.description() ?? '',
|
|
49
|
-
subcommands: program.commands
|
|
50
|
-
.filter((c) => !isHidden(c))
|
|
51
|
-
.map((c) => extractCommandTree(c)),
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function isHidden(cmd) {
|
|
55
|
-
// Commander stores hidden flag privately. Access defensively in case
|
|
56
|
-
// the field name changes across versions.
|
|
57
|
-
const c = cmd;
|
|
58
|
-
return c._hidden === true;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Escape a description string for zsh's `name:description` completion
|
|
62
|
-
* syntax. Three transformations:
|
|
63
|
-
* 1. Collapse newlines + carriage returns to single spaces (multi-line
|
|
64
|
-
* descriptions break single-quoted `'name:description'` syntax —
|
|
65
|
-
* a literal `\n` in the source string forces the next line to start
|
|
66
|
-
* a new entry without a leading quote → zsh parse error → operator's
|
|
67
|
-
* shell rc fails to load; audit finding B-ADV-3).
|
|
68
|
-
* 2. Double single quotes (single-quoted-string termination).
|
|
69
|
-
* 3. Backslash-escape colons (field separator in `name:description`).
|
|
70
|
-
*/
|
|
71
|
-
function escapeZsh(s) {
|
|
72
|
-
return s
|
|
73
|
-
.replace(/[\r\n]+/g, ' ')
|
|
74
|
-
.replace(/'/g, "''")
|
|
75
|
-
.replace(/:/g, '\\:');
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Escape a string for bash double-quoted contexts. Three transformations:
|
|
79
|
-
* 1. Collapse newlines + carriage returns to single spaces (bash
|
|
80
|
-
* double-quoted strings tolerate `\n` but `compgen -W` interprets
|
|
81
|
-
* whitespace as word boundaries — a newline silently splits the
|
|
82
|
-
* word list; audit finding B-ADV-3).
|
|
83
|
-
* 2. Backslash-escape `"`, `\`, `$`, backtick (the four chars bash
|
|
84
|
-
* interprets inside double quotes).
|
|
85
|
-
*/
|
|
86
|
-
function escapeBash(s) {
|
|
87
|
-
return s
|
|
88
|
-
.replace(/[\r\n]+/g, ' ')
|
|
89
|
-
.replace(/(["\\$`])/g, '\\$1');
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Emit a zsh completion script.
|
|
93
|
-
*
|
|
94
|
-
* Format:
|
|
95
|
-
* #compdef <program>
|
|
96
|
-
*
|
|
97
|
-
* _<program>() {
|
|
98
|
-
* local -a l1_subs
|
|
99
|
-
* l1_subs=(
|
|
100
|
-
* '<sub>:<description>'
|
|
101
|
-
* ...
|
|
102
|
-
* )
|
|
103
|
-
* if (( CURRENT == 2 )); then
|
|
104
|
-
* _describe '<program> command' l1_subs
|
|
105
|
-
* return
|
|
106
|
-
* fi
|
|
107
|
-
* case $words[2] in
|
|
108
|
-
* <sub-with-children>)
|
|
109
|
-
* if (( CURRENT == 3 )); then
|
|
110
|
-
* local -a l2_subs
|
|
111
|
-
* l2_subs=(...)
|
|
112
|
-
* _describe '<sub> subcommand' l2_subs
|
|
113
|
-
* fi
|
|
114
|
-
* ;;
|
|
115
|
-
* ...
|
|
116
|
-
* esac
|
|
117
|
-
* }
|
|
118
|
-
*
|
|
119
|
-
* _<program> "$@"
|
|
120
|
-
*/
|
|
121
|
-
export function generateZshCompletion(tree) {
|
|
122
|
-
const lines = [];
|
|
123
|
-
lines.push(`#compdef ${tree.name}`);
|
|
124
|
-
lines.push('');
|
|
125
|
-
lines.push(`_${tree.name}() {`);
|
|
126
|
-
lines.push(' local -a l1_subs');
|
|
127
|
-
lines.push(' l1_subs=(');
|
|
128
|
-
for (const sub of tree.subcommands) {
|
|
129
|
-
lines.push(` '${sub.name}:${escapeZsh(sub.description)}'`);
|
|
130
|
-
}
|
|
131
|
-
lines.push(' )');
|
|
132
|
-
lines.push('');
|
|
133
|
-
lines.push(' if (( CURRENT == 2 )); then');
|
|
134
|
-
lines.push(` _describe '${tree.name} command' l1_subs`);
|
|
135
|
-
lines.push(' return');
|
|
136
|
-
lines.push(' fi');
|
|
137
|
-
lines.push('');
|
|
138
|
-
const subsWithChildren = tree.subcommands.filter((s) => s.subcommands.length > 0);
|
|
139
|
-
if (subsWithChildren.length > 0) {
|
|
140
|
-
lines.push(' case $words[2] in');
|
|
141
|
-
for (const sub of subsWithChildren) {
|
|
142
|
-
lines.push(` ${sub.name})`);
|
|
143
|
-
lines.push(' if (( CURRENT == 3 )); then');
|
|
144
|
-
lines.push(' local -a l2_subs');
|
|
145
|
-
lines.push(' l2_subs=(');
|
|
146
|
-
for (const s2 of sub.subcommands) {
|
|
147
|
-
lines.push(` '${s2.name}:${escapeZsh(s2.description)}'`);
|
|
148
|
-
}
|
|
149
|
-
lines.push(' )');
|
|
150
|
-
lines.push(` _describe '${sub.name} subcommand' l2_subs`);
|
|
151
|
-
lines.push(' fi');
|
|
152
|
-
lines.push(' ;;');
|
|
153
|
-
}
|
|
154
|
-
lines.push(' esac');
|
|
155
|
-
}
|
|
156
|
-
lines.push('}');
|
|
157
|
-
lines.push('');
|
|
158
|
-
lines.push(`_${tree.name} "$@"`);
|
|
159
|
-
lines.push('');
|
|
160
|
-
return lines.join('\n');
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Emit a bash completion script.
|
|
164
|
-
*
|
|
165
|
-
* Format:
|
|
166
|
-
* _<program>_completions() {
|
|
167
|
-
* local cur="${COMP_WORDS[COMP_CWORD]}"
|
|
168
|
-
* local cword=$COMP_CWORD
|
|
169
|
-
* if [[ $cword -eq 1 ]]; then
|
|
170
|
-
* COMPREPLY=( $(compgen -W "<sub1> <sub2> ..." -- "$cur") )
|
|
171
|
-
* return
|
|
172
|
-
* fi
|
|
173
|
-
* case "${COMP_WORDS[1]}" in
|
|
174
|
-
* <sub-with-children>)
|
|
175
|
-
* if [[ $cword -eq 2 ]]; then
|
|
176
|
-
* COMPREPLY=( $(compgen -W "<l2-1> <l2-2> ..." -- "$cur") )
|
|
177
|
-
* fi
|
|
178
|
-
* ;;
|
|
179
|
-
* esac
|
|
180
|
-
* }
|
|
181
|
-
* complete -F _<program>_completions <program>
|
|
182
|
-
*/
|
|
183
|
-
export function generateBashCompletion(tree) {
|
|
184
|
-
const lines = [];
|
|
185
|
-
lines.push(`_${tree.name}_completions() {`);
|
|
186
|
-
lines.push(' local cur="${COMP_WORDS[COMP_CWORD]}"');
|
|
187
|
-
lines.push(' local cword=$COMP_CWORD');
|
|
188
|
-
lines.push('');
|
|
189
|
-
lines.push(' if [[ $cword -eq 1 ]]; then');
|
|
190
|
-
const l1Names = tree.subcommands.map((s) => s.name).join(' ');
|
|
191
|
-
lines.push(` COMPREPLY=( $(compgen -W "${escapeBash(l1Names)}" -- "$cur") )`);
|
|
192
|
-
lines.push(' return');
|
|
193
|
-
lines.push(' fi');
|
|
194
|
-
lines.push('');
|
|
195
|
-
const subsWithChildren = tree.subcommands.filter((s) => s.subcommands.length > 0);
|
|
196
|
-
if (subsWithChildren.length > 0) {
|
|
197
|
-
lines.push(' case "${COMP_WORDS[1]}" in');
|
|
198
|
-
for (const sub of subsWithChildren) {
|
|
199
|
-
lines.push(` ${sub.name})`);
|
|
200
|
-
lines.push(' if [[ $cword -eq 2 ]]; then');
|
|
201
|
-
const l2Names = sub.subcommands.map((s) => s.name).join(' ');
|
|
202
|
-
lines.push(` COMPREPLY=( $(compgen -W "${escapeBash(l2Names)}" -- "$cur") )`);
|
|
203
|
-
lines.push(' fi');
|
|
204
|
-
lines.push(' ;;');
|
|
205
|
-
}
|
|
206
|
-
lines.push(' esac');
|
|
207
|
-
}
|
|
208
|
-
lines.push('}');
|
|
209
|
-
lines.push('');
|
|
210
|
-
lines.push(`complete -F _${tree.name}_completions ${tree.name}`);
|
|
211
|
-
lines.push('');
|
|
212
|
-
return lines.join('\n');
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Top-level API: walk the commander program + emit a completion script
|
|
216
|
-
* for the requested shell.
|
|
217
|
-
*/
|
|
218
|
-
export function generateCompletion(program, shell) {
|
|
219
|
-
const tree = extractCommandTree(program);
|
|
220
|
-
if (shell === 'zsh')
|
|
221
|
-
return generateZshCompletion(tree);
|
|
222
|
-
if (shell === 'bash')
|
|
223
|
-
return generateBashCompletion(tree);
|
|
224
|
-
throw new UnsupportedShellError(shell);
|
|
225
|
-
}
|
|
226
|
-
//# sourceMappingURL=completion-generator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion-generator.js","source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AC,CAAC;YACvB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACzB,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,gBAAgB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACjE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,KAAqB;IACxE,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACxD,IAAI,KAAK,KAAK,MAAM;QAAE,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC1D,MAAM,IAAI,qBAAqB,CAAC,KAAe,CAAC,CAAC;AACnD,CAAC"}
|
package/dist/lib/config.d.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* config.ts — `~/.olam/config.json` / `~/.olam/config.yaml` helper for olam-cli.
|
|
3
|
-
*
|
|
4
|
-
* Phase 1b A1 of olam-host-suite-phase-1b-k3s-beta-flavour (plan
|
|
5
|
-
* ~/.claude/plans/olam-host-suite-phase-1b-k3s-beta-flavour.md).
|
|
6
|
-
*
|
|
7
|
-
* Schema v1 (Decision 1 — config is the substrate-state seam):
|
|
8
|
-
* {
|
|
9
|
-
* "config.schema": 1,
|
|
10
|
-
* "host": { "substrate": "compose" | "kubernetes" },
|
|
11
|
-
* "install_id": "<uuid-v4>"
|
|
12
|
-
* }
|
|
13
|
-
*
|
|
14
|
-
* - `install_id` is generated once on first config write; persists thereafter;
|
|
15
|
-
* never rotated. Used by instrumentation events (D21) to enable
|
|
16
|
-
* distinct-operator counting at month-6 retro.
|
|
17
|
-
* - Graceful fallback to `{config.schema: 1, host: {substrate: 'compose'}, install_id}`
|
|
18
|
-
* if file missing or invalid (T1 — never crash).
|
|
19
|
-
* - `~/.olam/state/` directory ensured to exist (recursive mkdir) before any
|
|
20
|
-
* state-file writes elsewhere in olam-cli (Phase A1 closes feasibility F3-03
|
|
21
|
-
* from pass-3 review).
|
|
22
|
-
* - Both `config.json` AND `config.yaml` are accepted. Read-priority: `.json`
|
|
23
|
-
* first (existing behaviour preserved); `.yaml` as fallback. Writes preserve
|
|
24
|
-
* the source format (yaml-in → yaml-out). Fresh installs default to `.json`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const OLAM_HOME: string;
|
|
27
|
-
export declare const OLAM_STATE_DIR: string;
|
|
28
|
-
/**
|
|
29
|
-
* Resolve the global config path within a given olam home directory.
|
|
30
|
-
*
|
|
31
|
-
* Read-precedence: `.json` wins when both files exist (preserves existing
|
|
32
|
-
* behaviour for current operators). `.yaml` used as fallback (per-repo
|
|
33
|
-
* `.olam/config.yaml` parity). Defaults to `.json` when neither exists so
|
|
34
|
-
* fresh installs continue to write JSON.
|
|
35
|
-
*/
|
|
36
|
-
export declare function resolveConfigPath(home?: string): string;
|
|
37
|
-
/**
|
|
38
|
-
* Get the resolved global config path at call-time.
|
|
39
|
-
*
|
|
40
|
-
* Prefer this over `OLAM_CONFIG_PATH` when you need the live, filesystem-
|
|
41
|
-
* sensitive resolution (e.g. in tests that manipulate HOME). `OLAM_CONFIG_PATH`
|
|
42
|
-
* is resolved once at module-load and is kept for backwards compatibility.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getOlamConfigPath(): string;
|
|
45
|
-
/** @deprecated Use `getOlamConfigPath()` for live resolution. Kept for backwards compat. */
|
|
46
|
-
export declare const OLAM_CONFIG_PATH: string;
|
|
47
|
-
export type Substrate = 'compose' | 'kubernetes';
|
|
48
|
-
export type PreferredRuntime = 'docker-desktop' | 'colima' | 'external-k8s';
|
|
49
|
-
export type OlamHost = {
|
|
50
|
-
substrate: Substrate;
|
|
51
|
-
/**
|
|
52
|
-
* Pinned kubectl context name for the kubernetes substrate. Read by
|
|
53
|
-
* `resolveKubectlContext` (lib/kubectl-context.ts). Optional: absent on
|
|
54
|
-
* fresh installs until `olam upgrade`/`olam setup` auto-pins it or the
|
|
55
|
-
* operator sets it via `olam config set host.kubectl_context_pinned <name>`.
|
|
56
|
-
*/
|
|
57
|
-
kubectl_context_pinned?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Optional GitHub token for authenticated ghcr.io image pulls. Read by the
|
|
60
|
-
* kubernetes upgrade flow when creating the ghcr-pull imagePullSecret.
|
|
61
|
-
*/
|
|
62
|
-
gh_token?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Phase 0 substrate picker: records which container runtime the operator
|
|
65
|
-
* chose so future phases can hint when the wrong daemon is up.
|
|
66
|
-
* Written by `olam setup` Phase 0 substrate picker.
|
|
67
|
-
*/
|
|
68
|
-
preferred_runtime?: PreferredRuntime;
|
|
69
|
-
};
|
|
70
|
-
export type OlamConfig = {
|
|
71
|
-
'config.schema': 1;
|
|
72
|
-
host: OlamHost;
|
|
73
|
-
install_id: string;
|
|
74
|
-
};
|
|
75
|
-
export declare function isValidConfig(value: unknown): value is OlamConfig;
|
|
76
|
-
/**
|
|
77
|
-
* Read `~/.olam/config.json` or `~/.olam/config.yaml` (or `configPath`
|
|
78
|
-
* override). Returns a valid OlamConfig regardless of file state:
|
|
79
|
-
* - File missing → write default + return.
|
|
80
|
-
* - File present + valid → return parsed.
|
|
81
|
-
* - File present + malformed → emit WARN to stderr; write default + return.
|
|
82
|
-
*
|
|
83
|
-
* When `configPath` ends `.yaml` / `.yml` the file is parsed as YAML; otherwise
|
|
84
|
-
* as JSON. Writes preserve the source format (yaml-in → yaml-out).
|
|
85
|
-
*
|
|
86
|
-
* Always ensures `~/.olam/state/` exists as a side-effect.
|
|
87
|
-
*
|
|
88
|
-
* @param opts.configPath — override for tests (default: resolved via `resolveConfigPath()`)
|
|
89
|
-
* @param opts.stateDir — override for tests (default: `~/.olam/state`)
|
|
90
|
-
* @param opts.stderr — override for tests (default: `process.stderr`)
|
|
91
|
-
*/
|
|
92
|
-
export declare function readConfig(opts?: {
|
|
93
|
-
configPath?: string;
|
|
94
|
-
stateDir?: string;
|
|
95
|
-
stderr?: NodeJS.WritableStream;
|
|
96
|
-
}): OlamConfig;
|
|
97
|
-
/**
|
|
98
|
-
* Apply a partial update to the config and persist atomically.
|
|
99
|
-
*
|
|
100
|
-
* Preserves `install_id` (never rotated by writeConfig). Caller MUST NOT
|
|
101
|
-
* pass `install_id` in updates; if they do, the existing value wins.
|
|
102
|
-
*
|
|
103
|
-
* @param updates — partial config (only `host` is settable via this surface)
|
|
104
|
-
* @param opts — same as readConfig for test injection
|
|
105
|
-
* @returns the new OlamConfig that was persisted
|
|
106
|
-
*/
|
|
107
|
-
export declare function writeConfig(updates: {
|
|
108
|
-
host?: Partial<OlamConfig['host']>;
|
|
109
|
-
}, opts?: {
|
|
110
|
-
configPath?: string;
|
|
111
|
-
stateDir?: string;
|
|
112
|
-
stderr?: NodeJS.WritableStream;
|
|
113
|
-
}): OlamConfig;
|
|
114
|
-
//# sourceMappingURL=config.d.ts.map
|
package/dist/lib/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAeH,eAAO,MAAM,SAAS,QAA2B,CAAC;AAClD,eAAO,MAAM,cAAc,QAA2B,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAMlE;AAED;;;;;;GAMG;AACH,wBAAgB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