@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/install-root.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase B (olam-fresh-install-self-bootstrap) — B6.
|
|
3
|
-
*
|
|
4
|
-
* `installRoot()` + `isDevMode()` — the seam between an installed
|
|
5
|
-
* @pleri/olam-cli and a monorepo clone. Three CLI commands need to
|
|
6
|
-
* shell out to `packages/adapters/src/docker/build-*.sh` (legacy
|
|
7
|
-
* source-build paths from before Phase B's image registry):
|
|
8
|
-
*
|
|
9
|
-
* - olam auth upgrade --from-source
|
|
10
|
-
* - olam upgrade --from-source
|
|
11
|
-
* - olam create --rebuild-base
|
|
12
|
-
*
|
|
13
|
-
* From an installed CLI, those scripts don't exist (the published
|
|
14
|
-
* tarball ships dist/ + plugin/ + host-cp/ — not the build scripts).
|
|
15
|
-
* From a monorepo clone, they do.
|
|
16
|
-
*
|
|
17
|
-
* Decision #1 (Phase B) carries-forward Decision #1 (Phase C revision):
|
|
18
|
-
* dev mode is a 2-condition opt-in:
|
|
19
|
-
* 1. OLAM_DEV=1 in the environment
|
|
20
|
-
* 2. A `packages/` sibling exists at the installRoot
|
|
21
|
-
*
|
|
22
|
-
* Both must be true. The OLAM_DEV flag prevents a stray `packages/`
|
|
23
|
-
* directory adjacent to a global npm install from accidentally
|
|
24
|
-
* activating source-build paths (still imperfect — see S10's deferred
|
|
25
|
-
* 4-condition opt-in for full path-traversal hardening — but adequate
|
|
26
|
-
* for the local-dev / dogfood audience the epic targets).
|
|
27
|
-
*
|
|
28
|
-
* S10 simplified the 4-condition opt-in (uid match + sentinel file)
|
|
29
|
-
* to 2-condition per the user's "perf + leak/logic over security
|
|
30
|
-
* hardening" reframe in pass 3.
|
|
31
|
-
*/
|
|
32
|
-
import { existsSync } from 'node:fs';
|
|
33
|
-
import { dirname, join, resolve } from 'node:path';
|
|
34
|
-
import { fileURLToPath } from 'node:url';
|
|
35
|
-
/**
|
|
36
|
-
* Returns the absolute path to the package's install root.
|
|
37
|
-
*
|
|
38
|
-
* - Locally (from src/): /<repo>/packages/cli
|
|
39
|
-
* - Globally installed: /<global-prefix>/lib/node_modules/@pleri/olam-cli
|
|
40
|
-
* - From dist/index.js: /<global-prefix>/lib/node_modules/@pleri/olam-cli
|
|
41
|
-
*
|
|
42
|
-
* Implementation: this file lives at <pkg>/src/install-root.ts (dev)
|
|
43
|
-
* or <pkg>/dist/install-root.js (when bundled). Walking up one directory
|
|
44
|
-
* from this file's location lands at <pkg> in both cases — the
|
|
45
|
-
* `import.meta.url`-resolved dirname. The fileURLToPath conversion
|
|
46
|
-
* handles `file:` URLs cleanly across platforms (Windows-forward-slash
|
|
47
|
-
* tolerance comes for free from path.dirname).
|
|
48
|
-
*/
|
|
49
|
-
export function installRoot(metaUrl = import.meta.url) {
|
|
50
|
-
const here = fileURLToPath(metaUrl);
|
|
51
|
-
// dist/install-root.js OR src/install-root.ts → <pkg>
|
|
52
|
-
return resolve(dirname(here), '..');
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 2-condition dev-mode detection.
|
|
56
|
-
*
|
|
57
|
-
* @param env - Process env. Defaults to `process.env`. Injectable for tests.
|
|
58
|
-
* @param installRootDir - Where to look for the `packages/` sibling. Defaults
|
|
59
|
-
* to `installRoot()`. Injectable for tests.
|
|
60
|
-
*/
|
|
61
|
-
export function isDevMode(env = process.env, installRootDir = installRoot()) {
|
|
62
|
-
if (env.OLAM_DEV !== '1')
|
|
63
|
-
return false;
|
|
64
|
-
// The package install root sits at <repo>/packages/cli when from a clone.
|
|
65
|
-
// Walking up two levels lands at <repo>; checking <repo>/packages/.
|
|
66
|
-
const repoRoot = resolve(installRootDir, '..', '..');
|
|
67
|
-
return existsSync(join(repoRoot, 'packages')) && existsSync(join(repoRoot, 'package.json'));
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Resolve the path to a build script under packages/adapters/src/docker/.
|
|
71
|
-
* In dev mode → returns the absolute path to the source script.
|
|
72
|
-
* In install mode → throws `MissingBuildScriptError` with a named remedy.
|
|
73
|
-
*
|
|
74
|
-
* The exception, not exit-code path, lets call sites decide whether to
|
|
75
|
-
* recover gracefully (e.g. fall back to a pull-by-digest path) or just
|
|
76
|
-
* surface to stderr + exit. Phase C's C6 will use the recover-gracefully
|
|
77
|
-
* path; today's three call sites just exit.
|
|
78
|
-
*/
|
|
79
|
-
export class MissingBuildScriptError extends Error {
|
|
80
|
-
constructor(scriptRelPath) {
|
|
81
|
-
super(`Build script ${scriptRelPath} is not available in this CLI install.\n` +
|
|
82
|
-
` Source-build paths require a monorepo clone:\n` +
|
|
83
|
-
` git clone https://github.com/pleri/olam && cd olam\n` +
|
|
84
|
-
` OLAM_DEV=1 olam <command> --from-source\n` +
|
|
85
|
-
` For published-image upgrades (Phase B+), drop the --from-source flag\n` +
|
|
86
|
-
` and the CLI will pull pre-built images from ghcr.io/pleri/* by digest.`);
|
|
87
|
-
this.name = 'MissingBuildScriptError';
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
export function resolveBuildScript(input) {
|
|
91
|
-
const { scriptRelPath, env = process.env, installRootDir = installRoot() } = input;
|
|
92
|
-
if (!isDevMode(env, installRootDir)) {
|
|
93
|
-
throw new MissingBuildScriptError(scriptRelPath);
|
|
94
|
-
}
|
|
95
|
-
const repoRoot = resolve(installRootDir, '..', '..');
|
|
96
|
-
return join(repoRoot, scriptRelPath);
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=install-root.js.map
|
package/dist/install-root.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install-root.js","sourceRoot":"","sources":["../src/install-root.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CAAC,UAAkB,MAAM,CAAC,IAAI,CAAC,GAAG;IAC3D,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IACpC,sDAAsD;IACtD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CACvB,MAAyB,OAAO,CAAC,GAAG,EACpC,iBAAyB,WAAW,EAAE;IAEtC,IAAI,GAAG,CAAC,QAAQ,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IACvC,0EAA0E;IAC1E,oEAAoE;IACpE,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,OAAO,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;AAC9F,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,YAAY,aAAqB;QAC/B,KAAK,CACH,gBAAgB,aAAa,0CAA0C;YACrE,kDAAkD;YAClD,0DAA0D;YAC1D,+CAA+C;YAC/C,0EAA0E;YAC1E,0EAA0E,CAC7E,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAQD,MAAM,UAAU,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,EAAE,aAAa,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW,EAAE,EAAE,GAAG,KAAK,CAAC;IACnF,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,cAAc,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACnD,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,OAAO,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helpers for `olam auth issue-anthropic-token` (g4.1) cloud-mode UX.
|
|
3
|
-
*
|
|
4
|
-
* Extracted from auth.ts so the file-write + label-default logic is unit
|
|
5
|
-
* testable without driving the commander action (which blocks on a stdin
|
|
6
|
-
* cookie prompt). auth.ts delegates here; tests target this module directly
|
|
7
|
-
* — same pattern as `auth-refresh-kubernetes.ts`.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Resolve the friendly token label. The label is just a handle for
|
|
11
|
-
* `list-anthropic-tokens` + revocation, so it is optional: when omitted we
|
|
12
|
-
* default to `<hostname>-<timestamp>`, unique per mint on a single laptop.
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveTokenLabel(label?: string): string;
|
|
15
|
-
export interface WriteBaseUrlResult {
|
|
16
|
-
/** True when the file was written; false when skipped via `write: false`. */
|
|
17
|
-
readonly wrote: boolean;
|
|
18
|
-
/** Absolute path the URL was (or would have been) written to. */
|
|
19
|
-
readonly path: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Persist the cloud-mode bearer URL where auth-client's `resolveCloudUrl()`
|
|
23
|
-
* expects it: `<home>/.olam/anthropic-base-url`, a single BARE trimmed URL
|
|
24
|
-
* plus a trailing newline, chmod 600.
|
|
25
|
-
*
|
|
26
|
-
* Bare URL only — NO `export X='...'` shell wrapper and no quotes. The
|
|
27
|
-
* resolver reads the file verbatim, `.trim()`s it, and parses one URL per
|
|
28
|
-
* file; a shell-assignment line would break that contract.
|
|
29
|
-
*
|
|
30
|
-
* Returns `{ wrote: false }` (no filesystem touch) when `opts.write === false`
|
|
31
|
-
* — the `--no-write-file` opt-out path.
|
|
32
|
-
*/
|
|
33
|
-
export declare function writeAnthropicBaseUrlFile(url: string, opts?: {
|
|
34
|
-
write?: boolean;
|
|
35
|
-
homeDir?: string;
|
|
36
|
-
}): WriteBaseUrlResult;
|
|
37
|
-
//# sourceMappingURL=anthropic-base-url-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-base-url-file.d.ts","sourceRoot":"","sources":["../../src/lib/anthropic-base-url-file.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED,MAAM,WAAW,kBAAkB;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/C,kBAAkB,CAcpB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helpers for `olam auth issue-anthropic-token` (g4.1) cloud-mode UX.
|
|
3
|
-
*
|
|
4
|
-
* Extracted from auth.ts so the file-write + label-default logic is unit
|
|
5
|
-
* testable without driving the commander action (which blocks on a stdin
|
|
6
|
-
* cookie prompt). auth.ts delegates here; tests target this module directly
|
|
7
|
-
* — same pattern as `auth-refresh-kubernetes.ts`.
|
|
8
|
-
*/
|
|
9
|
-
import * as fs from 'node:fs';
|
|
10
|
-
import * as os from 'node:os';
|
|
11
|
-
import * as path from 'node:path';
|
|
12
|
-
/**
|
|
13
|
-
* Resolve the friendly token label. The label is just a handle for
|
|
14
|
-
* `list-anthropic-tokens` + revocation, so it is optional: when omitted we
|
|
15
|
-
* default to `<hostname>-<timestamp>`, unique per mint on a single laptop.
|
|
16
|
-
*/
|
|
17
|
-
export function resolveTokenLabel(label) {
|
|
18
|
-
if (label && label.trim().length > 0)
|
|
19
|
-
return label;
|
|
20
|
-
return `${os.hostname()}-${Date.now()}`;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Persist the cloud-mode bearer URL where auth-client's `resolveCloudUrl()`
|
|
24
|
-
* expects it: `<home>/.olam/anthropic-base-url`, a single BARE trimmed URL
|
|
25
|
-
* plus a trailing newline, chmod 600.
|
|
26
|
-
*
|
|
27
|
-
* Bare URL only — NO `export X='...'` shell wrapper and no quotes. The
|
|
28
|
-
* resolver reads the file verbatim, `.trim()`s it, and parses one URL per
|
|
29
|
-
* file; a shell-assignment line would break that contract.
|
|
30
|
-
*
|
|
31
|
-
* Returns `{ wrote: false }` (no filesystem touch) when `opts.write === false`
|
|
32
|
-
* — the `--no-write-file` opt-out path.
|
|
33
|
-
*/
|
|
34
|
-
export function writeAnthropicBaseUrlFile(url, opts = {}) {
|
|
35
|
-
const homeDir = opts.homeDir ?? os.homedir();
|
|
36
|
-
const filePath = path.join(homeDir, '.olam', 'anthropic-base-url');
|
|
37
|
-
if (opts.write === false) {
|
|
38
|
-
return { wrote: false, path: filePath };
|
|
39
|
-
}
|
|
40
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
41
|
-
// mode on writeFileSync is masked by umask; chmod after to guarantee 600.
|
|
42
|
-
fs.writeFileSync(filePath, `${url}\n`, { mode: 0o600 });
|
|
43
|
-
fs.chmodSync(filePath, 0o600);
|
|
44
|
-
return { wrote: true, path: filePath };
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=anthropic-base-url-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-base-url-file.js","sourceRoot":"","sources":["../../src/lib/anthropic-base-url-file.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,OAAO,GAAG,EAAE,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;AAC1C,CAAC;AASD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,yBAAyB,CACvC,GAAW,EACX,OAA8C,EAAE;IAEhD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IAC7C,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC;IAEnE,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;QACzB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC1C,CAAC;IAED,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,0EAA0E;IAC1E,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACxD,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAE9B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* auth-backend — shared backend resolver for `olam auth` subcommands.
|
|
3
|
-
*
|
|
4
|
-
* Phase B (cloud-only-vault) flips the default credential backend across the
|
|
5
|
-
* full CLI auth surface from local (`auth-service` container at 127.0.0.1:9999)
|
|
6
|
-
* to remote (cloud auth-worker, e.g. auth-worker.kaluga.co). This helper is the
|
|
7
|
-
* single seam every auth subcommand calls to determine which backend its
|
|
8
|
-
* action should target.
|
|
9
|
-
*
|
|
10
|
-
* Resolution order (mirrors docs/architecture/cloud-only-vault.md §2 for
|
|
11
|
-
* `withCredential`, adapted to the CLI's --local / --remote flag surface):
|
|
12
|
-
*
|
|
13
|
-
* 1. `--local` AND `--remote` (any form) both passed → throw
|
|
14
|
-
* `ConflictingBackendFlags` (exit 1 in the action handler).
|
|
15
|
-
* 2. `--local` alone → backend='local', emitDeprecationWarning=true
|
|
16
|
-
* (operator explicitly opted out of the new default; warn so they know
|
|
17
|
-
* the flag will eventually be removed).
|
|
18
|
-
* 3. `--remote` (boolean) alone → backend='remote', no warning.
|
|
19
|
-
* 4. `--remote <url>` (string form, back-compat) → backend='remote',
|
|
20
|
-
* explicitRemoteUrl=<url>. No warning. Pre-Phase-B operators were
|
|
21
|
-
* already opting in by typing the URL.
|
|
22
|
-
* 5. `OLAM_CREDENTIAL_BACKEND=local` env → backend='local', NO warning
|
|
23
|
-
* (env-set is the operator's host-wide preference; pestering them on
|
|
24
|
-
* every command is noise).
|
|
25
|
-
* 6. `OLAM_CREDENTIAL_BACKEND=remote` env → backend='remote', no warning.
|
|
26
|
-
* 7. Default → backend='remote' (the Phase B flip).
|
|
27
|
-
*
|
|
28
|
-
* The Phase A `withCredential` selector at
|
|
29
|
-
* `packages/auth-client/src/backends/selector.ts` honours the same env var
|
|
30
|
-
* for the agent runtime; this helper keeps the CLI surface symmetric.
|
|
31
|
-
*
|
|
32
|
-
* ─── Subcommand audit (current backend coupling, pre-Phase-B) ───
|
|
33
|
-
*
|
|
34
|
-
* Every existing `olam auth` subcommand and the code path it currently uses
|
|
35
|
-
* to reach a credential backend. Each is a future caller of `requireBackend`
|
|
36
|
-
* once B2 / B4 land. References are `packages/cli/src/commands/auth.ts` line
|
|
37
|
-
* numbers at HEAD = 3a74bb62 (Phase A complete).
|
|
38
|
-
*
|
|
39
|
-
* login (auth.ts:170-306) — `--remote <url>` already wired to
|
|
40
|
-
* auth-remote.ts `remoteOAuthStart` (auth.ts:178-238).
|
|
41
|
-
* Local path (auth.ts:240-305) uses `AuthClient` against
|
|
42
|
-
* 127.0.0.1:9999. B2 flips the default + adds the
|
|
43
|
-
* interactive confirm prompt + deprecation warning.
|
|
44
|
-
*
|
|
45
|
-
* list (auth.ts:416-509) — `--remote <url>` wired to
|
|
46
|
-
* `remoteListAccounts` + `remoteListServiceTokens`
|
|
47
|
-
* (auth.ts:423-464). Local path (auth.ts:466-508) uses
|
|
48
|
-
* `AuthClient.status()`. B4 flips default + adds 30s TTL
|
|
49
|
-
* cache + `--no-cache`.
|
|
50
|
-
*
|
|
51
|
-
* refresh (auth.ts:323-361) — LOCAL ONLY today. Reads config to
|
|
52
|
-
* detect k8s substrate, then calls `AuthClient.refreshAccount`.
|
|
53
|
-
* No --remote path exists yet. B4 adds a default-remote
|
|
54
|
-
* branch (token-refresh via cloud DO) + `--local` opt-out.
|
|
55
|
-
*
|
|
56
|
-
* disable (auth.ts:124-137) — LOCAL ONLY (AuthClient.disableAccount).
|
|
57
|
-
* B4 adds default-remote branch.
|
|
58
|
-
*
|
|
59
|
-
* enable (auth.ts:139-152) — LOCAL ONLY (AuthClient.enableAccount).
|
|
60
|
-
* B4 adds default-remote branch.
|
|
61
|
-
*
|
|
62
|
-
* status (auth.ts:116-122 — deprecated alias for `olam services
|
|
63
|
-
* status`) AND auth-status.ts:runAuthStatus (the real
|
|
64
|
-
* status implementation invoked by other code paths).
|
|
65
|
-
* LOCAL ONLY (AuthClient.status). B7 doctor sweep covers
|
|
66
|
-
* the cross-backend health view.
|
|
67
|
-
*
|
|
68
|
-
* list-json (auth-list-json.ts) — pure serialiser invoked from
|
|
69
|
-
* `list --json` (auth.ts:481-484). Operates on already-
|
|
70
|
-
* fetched local data. B4 keeps it local-only for now
|
|
71
|
-
* (the JSON wire shape is a local-vault contract).
|
|
72
|
-
*
|
|
73
|
-
* logout (auth.ts:308-321) — LOCAL ONLY (AuthClient.deleteAccount).
|
|
74
|
-
* Out of Phase B scope; tracked for a follow-up plan.
|
|
75
|
-
*
|
|
76
|
-
* remove (auth.ts:154-167) — LOCAL ONLY (AuthClient.deleteAccount).
|
|
77
|
-
* Out of Phase B scope.
|
|
78
|
-
*
|
|
79
|
-
* bind-service-token (auth.ts:363-413) — remote-only by design (CF
|
|
80
|
-
* Access service-token binding). No `requireBackend` needed.
|
|
81
|
-
*
|
|
82
|
-
* migrate-to-remote (auth.ts:511-543) — bridging command from e6; B3
|
|
83
|
-
* replaces this with `olam auth migrate`.
|
|
84
|
-
*
|
|
85
|
-
* rotate-service-token (auth.ts:545-572) — remote-only. No change.
|
|
86
|
-
*
|
|
87
|
-
* doctor (auth.ts:574-614) — remote-only probe today; B7
|
|
88
|
-
* extends to dual-backend health.
|
|
89
|
-
*
|
|
90
|
-
* issue-anthropic-token (auth.ts:616-684) — remote-only. No change.
|
|
91
|
-
*
|
|
92
|
-
* list-anthropic-tokens (auth.ts:686-740) — remote-only. No change.
|
|
93
|
-
*
|
|
94
|
-
* revoke-anthropic-token (auth.ts:742-773) — remote-only. No change.
|
|
95
|
-
*
|
|
96
|
-
* upgrade (registered via registerAuthUpgrade(auth) at
|
|
97
|
-
* auth.ts:775) — separate file; out of Phase B scope.
|
|
98
|
-
*
|
|
99
|
-
* Subcommands flagged "LOCAL ONLY" today are the ones B4 will refactor to
|
|
100
|
-
* route through `requireBackend`. The "remote-only by design" subcommands
|
|
101
|
-
* (bind-service-token, doctor, issue/list/revoke anthropic tokens) keep
|
|
102
|
-
* their `--remote` required flag — they have no local equivalent.
|
|
103
|
-
*/
|
|
104
|
-
/** Discriminant for the resolved credential backend. */
|
|
105
|
-
export type Backend = 'local' | 'remote';
|
|
106
|
-
/**
|
|
107
|
-
* Parsed CLI flags relevant to backend selection. Commander.js gives us
|
|
108
|
-
* `--remote` as boolean OR string depending on the option definition; we
|
|
109
|
-
* support both forms so subcommands can choose:
|
|
110
|
-
*
|
|
111
|
-
* .option('--remote', '...') // boolean
|
|
112
|
-
* .option('--remote <url>', '...') // string (back-compat)
|
|
113
|
-
*
|
|
114
|
-
* Mixed-cardinality subcommands (login, list) historically used the string
|
|
115
|
-
* form; future cleanup may collapse to boolean once the artifact-based
|
|
116
|
-
* default URL discovery (Phase A `~/.olam/cloud-bearer.json`) covers all
|
|
117
|
-
* call sites.
|
|
118
|
-
*/
|
|
119
|
-
export interface BackendResolutionArgs {
|
|
120
|
-
readonly local?: boolean;
|
|
121
|
-
readonly remote?: boolean | string;
|
|
122
|
-
}
|
|
123
|
-
export interface BackendResolution {
|
|
124
|
-
readonly backend: Backend;
|
|
125
|
-
/**
|
|
126
|
-
* When backend='remote' and the operator passed `--remote <url>` (string
|
|
127
|
-
* form), the explicit URL. Subcommands prefer this over auto-discovered
|
|
128
|
-
* defaults (env / artifact / hard-coded fallback).
|
|
129
|
-
*/
|
|
130
|
-
readonly explicitRemoteUrl?: string;
|
|
131
|
-
/**
|
|
132
|
-
* True when the operator passed `--local` on the CLI. Used by callers to
|
|
133
|
-
* emit a single deprecation-warning line to stderr before proceeding.
|
|
134
|
-
* False for `OLAM_CREDENTIAL_BACKEND=local` — that's a host-wide opt-out
|
|
135
|
-
* the operator already understands, no need to nag every command.
|
|
136
|
-
*/
|
|
137
|
-
readonly emitDeprecationWarning: boolean;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Thrown when the operator passes `--local` AND `--remote` to the same
|
|
141
|
-
* subcommand. Both flags express intent — there's no sane way to choose
|
|
142
|
-
* one silently. Action handlers should `printError(err.message); exit 1`.
|
|
143
|
-
*/
|
|
144
|
-
export declare class ConflictingBackendFlags extends Error {
|
|
145
|
-
constructor();
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Resolve which credential backend a subcommand should target.
|
|
149
|
-
*
|
|
150
|
-
* See the resolution-order comment at the top of this file for the seven
|
|
151
|
-
* branches. Pure function — no I/O, no side effects, no caching. Cheap
|
|
152
|
-
* enough to call once per subcommand action.
|
|
153
|
-
*
|
|
154
|
-
* Reads `process.env.OLAM_CREDENTIAL_BACKEND` directly so callers don't
|
|
155
|
-
* have to thread it through.
|
|
156
|
-
*/
|
|
157
|
-
export declare function requireBackend(args: BackendResolutionArgs): BackendResolution;
|
|
158
|
-
/**
|
|
159
|
-
* Emit a single deprecation-warning line to the supplied stream. Centralised
|
|
160
|
-
* so the wording stays consistent across every `olam auth` subcommand that
|
|
161
|
-
* accepts `--local`. Returns void; callers may ignore the return.
|
|
162
|
-
*
|
|
163
|
-
* Callers should only invoke this when
|
|
164
|
-
* `resolution.emitDeprecationWarning === true` — gating belongs to the
|
|
165
|
-
* caller so test scaffolding can introspect the resolution without IO.
|
|
166
|
-
*/
|
|
167
|
-
export declare function emitDeprecationWarning(stderr: NodeJS.WritableStream): void;
|
|
168
|
-
//# sourceMappingURL=auth-backend.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-backend.d.ts","sourceRoot":"","sources":["../../src/lib/auth-backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AAEH,wDAAwD;AACxD,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;CAC1C;AAED;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;;CAKjD;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,qBAAqB,GAAG,iBAAiB,CAwC7E;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,CAK1E"}
|
package/dist/lib/auth-backend.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* auth-backend — shared backend resolver for `olam auth` subcommands.
|
|
3
|
-
*
|
|
4
|
-
* Phase B (cloud-only-vault) flips the default credential backend across the
|
|
5
|
-
* full CLI auth surface from local (`auth-service` container at 127.0.0.1:9999)
|
|
6
|
-
* to remote (cloud auth-worker, e.g. auth-worker.kaluga.co). This helper is the
|
|
7
|
-
* single seam every auth subcommand calls to determine which backend its
|
|
8
|
-
* action should target.
|
|
9
|
-
*
|
|
10
|
-
* Resolution order (mirrors docs/architecture/cloud-only-vault.md §2 for
|
|
11
|
-
* `withCredential`, adapted to the CLI's --local / --remote flag surface):
|
|
12
|
-
*
|
|
13
|
-
* 1. `--local` AND `--remote` (any form) both passed → throw
|
|
14
|
-
* `ConflictingBackendFlags` (exit 1 in the action handler).
|
|
15
|
-
* 2. `--local` alone → backend='local', emitDeprecationWarning=true
|
|
16
|
-
* (operator explicitly opted out of the new default; warn so they know
|
|
17
|
-
* the flag will eventually be removed).
|
|
18
|
-
* 3. `--remote` (boolean) alone → backend='remote', no warning.
|
|
19
|
-
* 4. `--remote <url>` (string form, back-compat) → backend='remote',
|
|
20
|
-
* explicitRemoteUrl=<url>. No warning. Pre-Phase-B operators were
|
|
21
|
-
* already opting in by typing the URL.
|
|
22
|
-
* 5. `OLAM_CREDENTIAL_BACKEND=local` env → backend='local', NO warning
|
|
23
|
-
* (env-set is the operator's host-wide preference; pestering them on
|
|
24
|
-
* every command is noise).
|
|
25
|
-
* 6. `OLAM_CREDENTIAL_BACKEND=remote` env → backend='remote', no warning.
|
|
26
|
-
* 7. Default → backend='remote' (the Phase B flip).
|
|
27
|
-
*
|
|
28
|
-
* The Phase A `withCredential` selector at
|
|
29
|
-
* `packages/auth-client/src/backends/selector.ts` honours the same env var
|
|
30
|
-
* for the agent runtime; this helper keeps the CLI surface symmetric.
|
|
31
|
-
*
|
|
32
|
-
* ─── Subcommand audit (current backend coupling, pre-Phase-B) ───
|
|
33
|
-
*
|
|
34
|
-
* Every existing `olam auth` subcommand and the code path it currently uses
|
|
35
|
-
* to reach a credential backend. Each is a future caller of `requireBackend`
|
|
36
|
-
* once B2 / B4 land. References are `packages/cli/src/commands/auth.ts` line
|
|
37
|
-
* numbers at HEAD = 3a74bb62 (Phase A complete).
|
|
38
|
-
*
|
|
39
|
-
* login (auth.ts:170-306) — `--remote <url>` already wired to
|
|
40
|
-
* auth-remote.ts `remoteOAuthStart` (auth.ts:178-238).
|
|
41
|
-
* Local path (auth.ts:240-305) uses `AuthClient` against
|
|
42
|
-
* 127.0.0.1:9999. B2 flips the default + adds the
|
|
43
|
-
* interactive confirm prompt + deprecation warning.
|
|
44
|
-
*
|
|
45
|
-
* list (auth.ts:416-509) — `--remote <url>` wired to
|
|
46
|
-
* `remoteListAccounts` + `remoteListServiceTokens`
|
|
47
|
-
* (auth.ts:423-464). Local path (auth.ts:466-508) uses
|
|
48
|
-
* `AuthClient.status()`. B4 flips default + adds 30s TTL
|
|
49
|
-
* cache + `--no-cache`.
|
|
50
|
-
*
|
|
51
|
-
* refresh (auth.ts:323-361) — LOCAL ONLY today. Reads config to
|
|
52
|
-
* detect k8s substrate, then calls `AuthClient.refreshAccount`.
|
|
53
|
-
* No --remote path exists yet. B4 adds a default-remote
|
|
54
|
-
* branch (token-refresh via cloud DO) + `--local` opt-out.
|
|
55
|
-
*
|
|
56
|
-
* disable (auth.ts:124-137) — LOCAL ONLY (AuthClient.disableAccount).
|
|
57
|
-
* B4 adds default-remote branch.
|
|
58
|
-
*
|
|
59
|
-
* enable (auth.ts:139-152) — LOCAL ONLY (AuthClient.enableAccount).
|
|
60
|
-
* B4 adds default-remote branch.
|
|
61
|
-
*
|
|
62
|
-
* status (auth.ts:116-122 — deprecated alias for `olam services
|
|
63
|
-
* status`) AND auth-status.ts:runAuthStatus (the real
|
|
64
|
-
* status implementation invoked by other code paths).
|
|
65
|
-
* LOCAL ONLY (AuthClient.status). B7 doctor sweep covers
|
|
66
|
-
* the cross-backend health view.
|
|
67
|
-
*
|
|
68
|
-
* list-json (auth-list-json.ts) — pure serialiser invoked from
|
|
69
|
-
* `list --json` (auth.ts:481-484). Operates on already-
|
|
70
|
-
* fetched local data. B4 keeps it local-only for now
|
|
71
|
-
* (the JSON wire shape is a local-vault contract).
|
|
72
|
-
*
|
|
73
|
-
* logout (auth.ts:308-321) — LOCAL ONLY (AuthClient.deleteAccount).
|
|
74
|
-
* Out of Phase B scope; tracked for a follow-up plan.
|
|
75
|
-
*
|
|
76
|
-
* remove (auth.ts:154-167) — LOCAL ONLY (AuthClient.deleteAccount).
|
|
77
|
-
* Out of Phase B scope.
|
|
78
|
-
*
|
|
79
|
-
* bind-service-token (auth.ts:363-413) — remote-only by design (CF
|
|
80
|
-
* Access service-token binding). No `requireBackend` needed.
|
|
81
|
-
*
|
|
82
|
-
* migrate-to-remote (auth.ts:511-543) — bridging command from e6; B3
|
|
83
|
-
* replaces this with `olam auth migrate`.
|
|
84
|
-
*
|
|
85
|
-
* rotate-service-token (auth.ts:545-572) — remote-only. No change.
|
|
86
|
-
*
|
|
87
|
-
* doctor (auth.ts:574-614) — remote-only probe today; B7
|
|
88
|
-
* extends to dual-backend health.
|
|
89
|
-
*
|
|
90
|
-
* issue-anthropic-token (auth.ts:616-684) — remote-only. No change.
|
|
91
|
-
*
|
|
92
|
-
* list-anthropic-tokens (auth.ts:686-740) — remote-only. No change.
|
|
93
|
-
*
|
|
94
|
-
* revoke-anthropic-token (auth.ts:742-773) — remote-only. No change.
|
|
95
|
-
*
|
|
96
|
-
* upgrade (registered via registerAuthUpgrade(auth) at
|
|
97
|
-
* auth.ts:775) — separate file; out of Phase B scope.
|
|
98
|
-
*
|
|
99
|
-
* Subcommands flagged "LOCAL ONLY" today are the ones B4 will refactor to
|
|
100
|
-
* route through `requireBackend`. The "remote-only by design" subcommands
|
|
101
|
-
* (bind-service-token, doctor, issue/list/revoke anthropic tokens) keep
|
|
102
|
-
* their `--remote` required flag — they have no local equivalent.
|
|
103
|
-
*/
|
|
104
|
-
/**
|
|
105
|
-
* Thrown when the operator passes `--local` AND `--remote` to the same
|
|
106
|
-
* subcommand. Both flags express intent — there's no sane way to choose
|
|
107
|
-
* one silently. Action handlers should `printError(err.message); exit 1`.
|
|
108
|
-
*/
|
|
109
|
-
export class ConflictingBackendFlags extends Error {
|
|
110
|
-
constructor() {
|
|
111
|
-
super('Cannot specify both --local and --remote. Pick one.');
|
|
112
|
-
this.name = 'ConflictingBackendFlags';
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Resolve which credential backend a subcommand should target.
|
|
117
|
-
*
|
|
118
|
-
* See the resolution-order comment at the top of this file for the seven
|
|
119
|
-
* branches. Pure function — no I/O, no side effects, no caching. Cheap
|
|
120
|
-
* enough to call once per subcommand action.
|
|
121
|
-
*
|
|
122
|
-
* Reads `process.env.OLAM_CREDENTIAL_BACKEND` directly so callers don't
|
|
123
|
-
* have to thread it through.
|
|
124
|
-
*/
|
|
125
|
-
export function requireBackend(args) {
|
|
126
|
-
const localFlag = args.local === true;
|
|
127
|
-
const remoteFlag = args.remote === true || (typeof args.remote === 'string' && args.remote.length > 0);
|
|
128
|
-
// (1) Conflict — both flags explicit.
|
|
129
|
-
if (localFlag && remoteFlag) {
|
|
130
|
-
throw new ConflictingBackendFlags();
|
|
131
|
-
}
|
|
132
|
-
// (2) Explicit --local opt-out.
|
|
133
|
-
if (localFlag) {
|
|
134
|
-
return { backend: 'local', emitDeprecationWarning: true };
|
|
135
|
-
}
|
|
136
|
-
// (3) Explicit --remote (boolean).
|
|
137
|
-
if (args.remote === true) {
|
|
138
|
-
return { backend: 'remote', emitDeprecationWarning: false };
|
|
139
|
-
}
|
|
140
|
-
// (4) Explicit --remote <url> (string).
|
|
141
|
-
if (typeof args.remote === 'string' && args.remote.length > 0) {
|
|
142
|
-
return {
|
|
143
|
-
backend: 'remote',
|
|
144
|
-
explicitRemoteUrl: args.remote,
|
|
145
|
-
emitDeprecationWarning: false,
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
// (5) + (6) Env-set override.
|
|
149
|
-
const env = process.env['OLAM_CREDENTIAL_BACKEND'];
|
|
150
|
-
if (env === 'local') {
|
|
151
|
-
return { backend: 'local', emitDeprecationWarning: false };
|
|
152
|
-
}
|
|
153
|
-
if (env === 'remote') {
|
|
154
|
-
return { backend: 'remote', emitDeprecationWarning: false };
|
|
155
|
-
}
|
|
156
|
-
// (7) Default — Phase B flip: remote.
|
|
157
|
-
return { backend: 'remote', emitDeprecationWarning: false };
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Emit a single deprecation-warning line to the supplied stream. Centralised
|
|
161
|
-
* so the wording stays consistent across every `olam auth` subcommand that
|
|
162
|
-
* accepts `--local`. Returns void; callers may ignore the return.
|
|
163
|
-
*
|
|
164
|
-
* Callers should only invoke this when
|
|
165
|
-
* `resolution.emitDeprecationWarning === true` — gating belongs to the
|
|
166
|
-
* caller so test scaffolding can introspect the resolution without IO.
|
|
167
|
-
*/
|
|
168
|
-
export function emitDeprecationWarning(stderr) {
|
|
169
|
-
stderr.write('warning: --local flag is deprecated. Cloud auth-worker is now the default. ' +
|
|
170
|
-
'See docs/plans/cloud-only-vault/.\n');
|
|
171
|
-
}
|
|
172
|
-
//# sourceMappingURL=auth-backend.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-backend.js","sourceRoot":"","sources":["../../src/lib/auth-backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AAwCH;;;;GAIG;AACH,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD;QACE,KAAK,CAAC,qDAAqD,CAAC,CAAC;QAC7D,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,IAA2B;IACxD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC;IACtC,MAAM,UAAU,GACd,IAAI,CAAC,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAEtF,sCAAsC;IACtC,IAAI,SAAS,IAAI,UAAU,EAAE,CAAC;QAC5B,MAAM,IAAI,uBAAuB,EAAE,CAAC;IACtC,CAAC;IAED,gCAAgC;IAChC,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC;IAC5D,CAAC;IAED,mCAAmC;IACnC,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QACzB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;IAC9D,CAAC;IAED,wCAAwC;IACxC,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9D,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,iBAAiB,EAAE,IAAI,CAAC,MAAM;YAC9B,sBAAsB,EAAE,KAAK;SAC9B,CAAC;IACJ,CAAC;IAED,8BAA8B;IAC9B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACnD,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;QACpB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;IAC7D,CAAC;IACD,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;IAC9D,CAAC;IAED,sCAAsC;IACtC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;AAC9D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAA6B;IAClE,MAAM,CAAC,KAAK,CACV,6EAA6E;QAC3E,qCAAqC,CACxC,CAAC;AACJ,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* auth-list-cache — in-process TTL cache for `olam auth list --remote` results.
|
|
3
|
-
*
|
|
4
|
-
* Phase B (cloud-only-vault) Decision D5 caches remote `auth list` results for
|
|
5
|
-
* 30 seconds in-memory (NOT persisted to disk). The cache keeps interactive
|
|
6
|
-
* runs cheap and lets driver scripts (e.g. `olam doctor` probes that fan out
|
|
7
|
-
* to `auth list` for credential health) avoid hammering the cloud DO.
|
|
8
|
-
*
|
|
9
|
-
* Two-tier read model: `getCachedAuthList` returns a FRESH entry (within TTL),
|
|
10
|
-
* `getStaleAuthList` returns the most recent entry regardless of age — the
|
|
11
|
-
* latter is the offline fallback used when a fresh fetch fails. The command
|
|
12
|
-
* action surfaces staleness to the operator via a `(stale)` annotation +
|
|
13
|
-
* footer warning.
|
|
14
|
-
*
|
|
15
|
-
* Key shape: callers compose a key from (baseUrl, identityHint). A single
|
|
16
|
-
* Map keyed by that string keeps multiple auth-worker targets isolated (an
|
|
17
|
-
* operator running `auth list --remote A` then `--remote B` shouldn't see
|
|
18
|
-
* A's results for B).
|
|
19
|
-
*
|
|
20
|
-
* Not persisted: this cache lives only as long as the CLI process. Phase D
|
|
21
|
-
* may extend to a file-based cache if operator runs frequent short-lived
|
|
22
|
-
* `olam auth list` invocations and pays a real RTT cost — but the in-process
|
|
23
|
-
* model is simpler + correct for the most common cases (interactive use,
|
|
24
|
-
* tight-loop script invocations within a single CLI process).
|
|
25
|
-
*
|
|
26
|
-
* Concurrency: single-threaded JS; no locking needed. Read returns the
|
|
27
|
-
* snapshot at-call-time.
|
|
28
|
-
*/
|
|
29
|
-
/** TTL in milliseconds — 30 seconds per Decision D5. */
|
|
30
|
-
export declare const AUTH_LIST_CACHE_TTL_MS = 30000;
|
|
31
|
-
/**
|
|
32
|
-
* Return the cached entry for `key` when it's within the TTL window.
|
|
33
|
-
* Returns `null` when the entry is missing OR stale. `now` is injectable
|
|
34
|
-
* for deterministic tests; production callers omit it.
|
|
35
|
-
*/
|
|
36
|
-
export declare function getCachedAuthList<T>(key: string, now?: number): {
|
|
37
|
-
result: T;
|
|
38
|
-
fetchedAt: number;
|
|
39
|
-
} | null;
|
|
40
|
-
/**
|
|
41
|
-
* Return the cached entry for `key` regardless of age. Used as the
|
|
42
|
-
* offline fallback when a fresh fetch fails. Returns `null` when the
|
|
43
|
-
* cache has never seen this key.
|
|
44
|
-
*/
|
|
45
|
-
export declare function getStaleAuthList<T>(key: string): {
|
|
46
|
-
result: T;
|
|
47
|
-
fetchedAt: number;
|
|
48
|
-
} | null;
|
|
49
|
-
/**
|
|
50
|
-
* Insert / replace the cached entry for `key`. `now` is injectable for tests.
|
|
51
|
-
*/
|
|
52
|
-
export declare function setCachedAuthList<T>(key: string, result: T, now?: number): void;
|
|
53
|
-
/**
|
|
54
|
-
* Invalidate the entry for `key`. When `key` is omitted, clear the entire
|
|
55
|
-
* cache. Callers use this after a mutation that the next `list` MUST reflect
|
|
56
|
-
* (e.g. an explicit `auth login` succeeded against the same baseUrl) — though
|
|
57
|
-
* for B4 (narrowed) such mutations live on the local backend so callers will
|
|
58
|
-
* mostly leave the cache to expire naturally.
|
|
59
|
-
*/
|
|
60
|
-
export declare function invalidateAuthListCache(key?: string): void;
|
|
61
|
-
/**
|
|
62
|
-
* Test-only: wipes the module-level cache. Production code MUST NOT call
|
|
63
|
-
* this. Tests that share the module across describe blocks call it in a
|
|
64
|
-
* `beforeEach` to keep the cache deterministic.
|
|
65
|
-
*/
|
|
66
|
-
export declare function _resetAuthListCacheForTests(): void;
|
|
67
|
-
//# sourceMappingURL=auth-list-cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-list-cache.d.ts","sourceRoot":"","sources":["../../src/lib/auth-list-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,wDAAwD;AACxD,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAS7C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,MAAmB,GACvB;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAKzC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,GAAG,EAAE,MAAM,GACV;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAIzC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,EACT,GAAG,GAAE,MAAmB,GACvB,IAAI,CAEN;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAM1D;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,IAAI,IAAI,CAElD"}
|