@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge-pack.generated.js","sourceRoot":"","sources":["../../src/ask/knowledge-pack.generated.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAoB;AAEpB,MAAM,CAAC,MAAM,cAAc,GAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ot.ts — `olam ask "<question>"` answers once and exits.
|
|
3
|
-
*
|
|
4
|
-
* Script-friendly: prints the answer to stdout, exits 0 on success and
|
|
5
|
-
* non-zero on failure (SDK unavailable → exit 1 with an actionable message).
|
|
6
|
-
*/
|
|
7
|
-
import { type AskQueryFn } from './sdk-client.js';
|
|
8
|
-
export interface OneShotDeps {
|
|
9
|
-
/** Injected query fn for tests; live SDK resolution when absent. */
|
|
10
|
-
readonly queryFn?: AskQueryFn;
|
|
11
|
-
/** Override checkout detection (tests). */
|
|
12
|
-
readonly checkoutRoot?: string | null;
|
|
13
|
-
/** stdout writer (tests). Defaults to process.stdout.write. */
|
|
14
|
-
readonly write?: (s: string) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Run a single question. Returns the process exit code (0 success, 1 failure)
|
|
18
|
-
* rather than calling process.exit directly, so it is unit-testable.
|
|
19
|
-
*/
|
|
20
|
-
export declare function runOneShot(question: string, deps?: OneShotDeps): Promise<number>;
|
|
21
|
-
//# sourceMappingURL=one-shot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"one-shot.d.ts","sourceRoot":"","sources":["../../src/ask/one-shot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAInF,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC9B,2CAA2C;IAC3C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,+DAA+D;IAC/D,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE,WAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqC1F"}
|
package/dist/ask/one-shot.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* one-shot.ts — `olam ask "<question>"` answers once and exits.
|
|
3
|
-
*
|
|
4
|
-
* Script-friendly: prints the answer to stdout, exits 0 on success and
|
|
5
|
-
* non-zero on failure (SDK unavailable → exit 1 with an actionable message).
|
|
6
|
-
*/
|
|
7
|
-
import { KNOWLEDGE_PACK } from './knowledge-pack.generated.js';
|
|
8
|
-
import { assembleSystemPrompt } from './system-prompt.js';
|
|
9
|
-
import { findOlamCheckoutRoot } from './checkout.js';
|
|
10
|
-
import { askOnce, AskSdkUnavailableError } from './sdk-client.js';
|
|
11
|
-
import { printError } from '../output.js';
|
|
12
|
-
import { EXIT_GENERIC_ERROR } from '../exit-codes.js';
|
|
13
|
-
/**
|
|
14
|
-
* Run a single question. Returns the process exit code (0 success, 1 failure)
|
|
15
|
-
* rather than calling process.exit directly, so it is unit-testable.
|
|
16
|
-
*/
|
|
17
|
-
export async function runOneShot(question, deps = {}) {
|
|
18
|
-
const write = deps.write ?? ((s) => void process.stdout.write(s));
|
|
19
|
-
const trimmed = question.trim();
|
|
20
|
-
if (trimmed.length === 0) {
|
|
21
|
-
printError('olam ask: empty question. Usage: olam ask "<your question>"');
|
|
22
|
-
return EXIT_GENERIC_ERROR;
|
|
23
|
-
}
|
|
24
|
-
const repoRoot = deps.checkoutRoot !== undefined ? deps.checkoutRoot : findOlamCheckoutRoot();
|
|
25
|
-
const systemPromptAppend = assembleSystemPrompt({
|
|
26
|
-
knowledgePack: KNOWLEDGE_PACK,
|
|
27
|
-
insideCheckout: repoRoot !== null,
|
|
28
|
-
repoRoot: repoRoot ?? undefined,
|
|
29
|
-
});
|
|
30
|
-
try {
|
|
31
|
-
const answer = await askOnce(trimmed, {
|
|
32
|
-
systemPromptAppend,
|
|
33
|
-
repoRoot: repoRoot ?? undefined,
|
|
34
|
-
queryFn: deps.queryFn,
|
|
35
|
-
}, (chunk) => write(chunk));
|
|
36
|
-
// Ensure a trailing newline even if the stream didn't end with one.
|
|
37
|
-
if (!answer.endsWith('\n'))
|
|
38
|
-
write('\n');
|
|
39
|
-
return 0;
|
|
40
|
-
}
|
|
41
|
-
catch (err) {
|
|
42
|
-
if (err instanceof AskSdkUnavailableError) {
|
|
43
|
-
printError(err.message);
|
|
44
|
-
return EXIT_GENERIC_ERROR;
|
|
45
|
-
}
|
|
46
|
-
printError(err instanceof Error ? err.message : String(err));
|
|
47
|
-
return EXIT_GENERIC_ERROR;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=one-shot.js.map
|
package/dist/ask/one-shot.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"one-shot.js","sourceRoot":"","sources":["../../src/ask/one-shot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAmB,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAWtD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,QAAgB,EAAE,OAAoB,EAAE;IACvE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,UAAU,CAAC,6DAA6D,CAAC,CAAC;QAC1E,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,MAAM,QAAQ,GACZ,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC;IAC/E,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAC9C,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,QAAQ,KAAK,IAAI;QACjC,QAAQ,EAAE,QAAQ,IAAI,SAAS;KAChC,CAAC,CAAC;IAEH,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAC1B,OAAO,EACP;YACE,kBAAkB;YAClB,QAAQ,EAAE,QAAQ,IAAI,SAAS;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CACxB,CAAC;QACF,oEAAoE;QACpE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,YAAY,sBAAsB,EAAE,CAAC;YAC1C,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACxB,OAAO,kBAAkB,CAAC;QAC5B,CAAC;QACD,UAAU,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7D,OAAO,kBAAkB,CAAC;IAC5B,CAAC;AACH,CAAC"}
|
package/dist/ask/repl.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* repl.ts — `olam ask` (no args) opens an interactive multi-turn REPL.
|
|
3
|
-
*
|
|
4
|
-
* Conversation context is preserved by accumulating a running transcript and
|
|
5
|
-
* prepending it to each new prompt. The SDK `query()` call is independent
|
|
6
|
-
* per-turn (no session resume needed for a lightweight Q&A loop); the
|
|
7
|
-
* transcript carries prior Q&A forward so follow-ups land in context.
|
|
8
|
-
*
|
|
9
|
-
* Exits on `/exit`, `/quit`, or Ctrl-D (EOF). Ctrl-C aborts the in-flight
|
|
10
|
-
* answer (or exits at an empty prompt).
|
|
11
|
-
*/
|
|
12
|
-
import { type Interface as ReadlineInterface } from 'node:readline';
|
|
13
|
-
import { type AskQueryFn } from './sdk-client.js';
|
|
14
|
-
export interface ReplDeps {
|
|
15
|
-
readonly queryFn?: AskQueryFn;
|
|
16
|
-
readonly checkoutRoot?: string | null;
|
|
17
|
-
/** Injected readline interface (tests). Defaults to stdin/stdout. */
|
|
18
|
-
readonly rl?: ReadlineInterface;
|
|
19
|
-
readonly write?: (s: string) => void;
|
|
20
|
-
}
|
|
21
|
-
/** Compose the next prompt from prior transcript + the new question. */
|
|
22
|
-
export declare function composeTurnPrompt(transcript: string, question: string): string;
|
|
23
|
-
/** Append a completed Q&A pair to the transcript (immutable return). */
|
|
24
|
-
export declare function appendTurn(transcript: string, question: string, answer: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Run the interactive REPL. Returns the process exit code. Unit-testable via
|
|
27
|
-
* an injected readline interface + query fn (no real stdin / API).
|
|
28
|
-
*/
|
|
29
|
-
export declare function runRepl(deps?: ReplDeps): Promise<number>;
|
|
30
|
-
//# sourceMappingURL=repl.d.ts.map
|
package/dist/ask/repl.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/ask/repl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAmB,KAAK,SAAS,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKrF,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAInF,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,EAAE,iBAAiB,CAAC;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAID,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG9E;AAED,wEAAwE;AACxE,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGvF;AAED;;;GAGG;AACH,wBAAsB,OAAO,CAAC,IAAI,GAAE,QAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAqFlE"}
|
package/dist/ask/repl.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* repl.ts — `olam ask` (no args) opens an interactive multi-turn REPL.
|
|
3
|
-
*
|
|
4
|
-
* Conversation context is preserved by accumulating a running transcript and
|
|
5
|
-
* prepending it to each new prompt. The SDK `query()` call is independent
|
|
6
|
-
* per-turn (no session resume needed for a lightweight Q&A loop); the
|
|
7
|
-
* transcript carries prior Q&A forward so follow-ups land in context.
|
|
8
|
-
*
|
|
9
|
-
* Exits on `/exit`, `/quit`, or Ctrl-D (EOF). Ctrl-C aborts the in-flight
|
|
10
|
-
* answer (or exits at an empty prompt).
|
|
11
|
-
*/
|
|
12
|
-
import { createInterface } from 'node:readline';
|
|
13
|
-
import pc from 'picocolors';
|
|
14
|
-
import { KNOWLEDGE_PACK } from './knowledge-pack.generated.js';
|
|
15
|
-
import { assembleSystemPrompt } from './system-prompt.js';
|
|
16
|
-
import { findOlamCheckoutRoot } from './checkout.js';
|
|
17
|
-
import { askOnce, AskSdkUnavailableError } from './sdk-client.js';
|
|
18
|
-
import { printError } from '../output.js';
|
|
19
|
-
import { EXIT_GENERIC_ERROR } from '../exit-codes.js';
|
|
20
|
-
const EXIT_COMMANDS = new Set(['/exit', '/quit', '/q']);
|
|
21
|
-
/** Compose the next prompt from prior transcript + the new question. */
|
|
22
|
-
export function composeTurnPrompt(transcript, question) {
|
|
23
|
-
if (transcript.trim().length === 0)
|
|
24
|
-
return question;
|
|
25
|
-
return `${transcript}\n\nNew question: ${question}`;
|
|
26
|
-
}
|
|
27
|
-
/** Append a completed Q&A pair to the transcript (immutable return). */
|
|
28
|
-
export function appendTurn(transcript, question, answer) {
|
|
29
|
-
const pair = `Q: ${question}\nA: ${answer}`;
|
|
30
|
-
return transcript.length === 0 ? pair : `${transcript}\n\n${pair}`;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Run the interactive REPL. Returns the process exit code. Unit-testable via
|
|
34
|
-
* an injected readline interface + query fn (no real stdin / API).
|
|
35
|
-
*/
|
|
36
|
-
export async function runRepl(deps = {}) {
|
|
37
|
-
const write = deps.write ?? ((s) => void process.stdout.write(s));
|
|
38
|
-
const repoRoot = deps.checkoutRoot !== undefined ? deps.checkoutRoot : findOlamCheckoutRoot();
|
|
39
|
-
const systemPromptAppend = assembleSystemPrompt({
|
|
40
|
-
knowledgePack: KNOWLEDGE_PACK,
|
|
41
|
-
insideCheckout: repoRoot !== null,
|
|
42
|
-
repoRoot: repoRoot ?? undefined,
|
|
43
|
-
});
|
|
44
|
-
write([
|
|
45
|
-
pc.bold('olam ask') + pc.dim(' — interactive assistant (local Claude subscription, Sonnet)'),
|
|
46
|
-
pc.dim(repoRoot
|
|
47
|
-
? `inside checkout: ${repoRoot} (live repo files available)`
|
|
48
|
-
: 'no checkout detected — answering from the bundled knowledge pack'),
|
|
49
|
-
pc.dim('Type a question. /exit (or Ctrl-D) to quit.'),
|
|
50
|
-
'',
|
|
51
|
-
].join('\n'));
|
|
52
|
-
const rl = deps.rl ??
|
|
53
|
-
createInterface({ input: process.stdin, output: process.stdout, prompt: pc.cyan('olam ask> ') });
|
|
54
|
-
let transcript = '';
|
|
55
|
-
let exitCode = 0;
|
|
56
|
-
// EOF (Ctrl-D) closes the interface. Track it once (not per-turn — a
|
|
57
|
-
// per-turn `rl.once('close')` leaks listeners and warns after 10 turns).
|
|
58
|
-
// An in-flight ask() resolves null when this fires.
|
|
59
|
-
let closed = false;
|
|
60
|
-
let onClose = null;
|
|
61
|
-
rl.on('close', () => {
|
|
62
|
-
closed = true;
|
|
63
|
-
onClose?.();
|
|
64
|
-
});
|
|
65
|
-
const ask = () => new Promise((resolve) => {
|
|
66
|
-
if (closed)
|
|
67
|
-
return resolve(null);
|
|
68
|
-
onClose = () => resolve(null);
|
|
69
|
-
rl.question(pc.cyan('olam ask> '), (line) => {
|
|
70
|
-
onClose = null;
|
|
71
|
-
resolve(line);
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
try {
|
|
75
|
-
for (;;) {
|
|
76
|
-
const line = await ask();
|
|
77
|
-
if (line === null) {
|
|
78
|
-
write('\n');
|
|
79
|
-
break; // EOF
|
|
80
|
-
}
|
|
81
|
-
const question = line.trim();
|
|
82
|
-
if (question.length === 0)
|
|
83
|
-
continue;
|
|
84
|
-
if (EXIT_COMMANDS.has(question.toLowerCase()))
|
|
85
|
-
break;
|
|
86
|
-
try {
|
|
87
|
-
const answer = await askOnce(composeTurnPrompt(transcript, question), { systemPromptAppend, repoRoot: repoRoot ?? undefined, queryFn: deps.queryFn }, (chunk) => write(chunk));
|
|
88
|
-
if (!answer.endsWith('\n'))
|
|
89
|
-
write('\n');
|
|
90
|
-
write('\n');
|
|
91
|
-
transcript = appendTurn(transcript, question, answer);
|
|
92
|
-
}
|
|
93
|
-
catch (err) {
|
|
94
|
-
if (err instanceof AskSdkUnavailableError) {
|
|
95
|
-
printError(err.message);
|
|
96
|
-
exitCode = EXIT_GENERIC_ERROR;
|
|
97
|
-
break; // SDK gone → no point continuing the loop
|
|
98
|
-
}
|
|
99
|
-
printError(err instanceof Error ? err.message : String(err));
|
|
100
|
-
// Transient per-turn error: keep the REPL alive for a retry.
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
finally {
|
|
105
|
-
rl.close();
|
|
106
|
-
}
|
|
107
|
-
return exitCode;
|
|
108
|
-
}
|
|
109
|
-
//# sourceMappingURL=repl.js.map
|
package/dist/ask/repl.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repl.js","sourceRoot":"","sources":["../../src/ask/repl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAuC,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAmB,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAUtD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAExD,wEAAwE;AACxE,MAAM,UAAU,iBAAiB,CAAC,UAAkB,EAAE,QAAgB;IACpE,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC;IACpD,OAAO,GAAG,UAAU,qBAAqB,QAAQ,EAAE,CAAC;AACtD,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,UAAU,CAAC,UAAkB,EAAE,QAAgB,EAAE,MAAc;IAC7E,MAAM,IAAI,GAAG,MA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EAAE,QAAQ,EAAE,QAAQ,IAAI,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAC9E,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CACxB,CAAC;gBACF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAAE,KAAK,CAAC,IAAI,CAAC,CAAC;gBACxC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACZ,UAAU,GAAG,UAAU,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxD,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,GAAG,YAAY,sBAAsB,EAAE,CAAC;oBAC1C,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;oBACxB,QAAQ,GAAG,kBAAkB,CAAC;oBAC9B,MAAM,CAAC,0CAA0C;gBACnD,CAAC;gBACD,UAAU,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC7D,6DAA6D;YAC/D,CAAC;QACH,CAAC;IACH,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/ask/sdk-client.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* sdk-client.ts — thin wrapper over `@anthropic-ai/claude-agent-sdk`'s
|
|
3
|
-
* `query()` for `olam ask`.
|
|
4
|
-
*
|
|
5
|
-
* Auth model (per repo CLAUDE.md, Decision D15): the Claude Agent SDK consumes
|
|
6
|
-
* the operator's LOCAL Claude Code subscription via stdio/IPC. It is NOT an
|
|
7
|
-
* `api.anthropic.com` HTTPS caller, so it is EXEMPT from `audit:auth-callers`
|
|
8
|
-
* and the `withCredential` helper-or-die rule. Nothing in this file references
|
|
9
|
-
* `api.anthropic.com`; the operator pays $0 incremental on top of their
|
|
10
|
-
* existing Claude Code login.
|
|
11
|
-
*
|
|
12
|
-
* The SDK is imported via dynamic `import()` so a missing / unbuilt SDK (or a
|
|
13
|
-
* Claude Code that isn't logged in) degrades to a clear, actionable error
|
|
14
|
-
* rather than a hard module-load crash (Rule 12 — fail loud, not cryptic).
|
|
15
|
-
*
|
|
16
|
-
* The model is pinned to `claude-sonnet-4-6` — the locked decision for this
|
|
17
|
-
* feature. `olam ask` is a fast Q&A surface, not a deep-reasoning loop.
|
|
18
|
-
*/
|
|
19
|
-
/** Pinned model for `olam ask`. Locked decision — do not change without sign-off. */
|
|
20
|
-
export declare const ASK_MODEL = "claude-sonnet-4-6";
|
|
21
|
-
/** Error thrown when the Agent SDK / local Claude Code is unavailable. */
|
|
22
|
-
export declare class AskSdkUnavailableError extends Error {
|
|
23
|
-
readonly cause?: unknown | undefined;
|
|
24
|
-
constructor(message: string, cause?: unknown | undefined);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Minimal shape of an SDK message this client reacts to. The real SDKMessage
|
|
28
|
-
* union is wider; we narrow to assistant text + the terminal result so the
|
|
29
|
-
* client is testable with synthetic iterables (no real API calls in tests).
|
|
30
|
-
*/
|
|
31
|
-
export interface AskSdkMessage {
|
|
32
|
-
readonly type: string;
|
|
33
|
-
readonly message?: {
|
|
34
|
-
readonly content?: ReadonlyArray<{
|
|
35
|
-
readonly type: string;
|
|
36
|
-
readonly text?: string;
|
|
37
|
-
}>;
|
|
38
|
-
};
|
|
39
|
-
readonly is_error?: boolean;
|
|
40
|
-
readonly subtype?: string;
|
|
41
|
-
}
|
|
42
|
-
/** A `query()`-shaped function. Injected in tests; resolved from the SDK live. */
|
|
43
|
-
export type AskQueryFn = (input: {
|
|
44
|
-
prompt: string;
|
|
45
|
-
options: Record<string, unknown>;
|
|
46
|
-
}) => AsyncIterable<AskSdkMessage>;
|
|
47
|
-
export interface AskSdkOptions {
|
|
48
|
-
/** Full system-prompt append text (preamble + knowledge pack). */
|
|
49
|
-
readonly systemPromptAppend: string;
|
|
50
|
-
/**
|
|
51
|
-
* When set, the SDK is allowed to read repo files (Read/Grep/Glob) with the
|
|
52
|
-
* given dir as cwd. Omit to run with zero tools (no local-file access).
|
|
53
|
-
*/
|
|
54
|
-
readonly repoRoot?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Injected `query` for tests. When absent, resolved at call time via dynamic
|
|
57
|
-
* import of `@anthropic-ai/claude-agent-sdk`.
|
|
58
|
-
*/
|
|
59
|
-
readonly queryFn?: AskQueryFn;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Resolve the SDK's `query` function, mapping any import failure to a
|
|
63
|
-
* domain error with an actionable message. Exported for the degradation test.
|
|
64
|
-
*/
|
|
65
|
-
export declare function resolveQueryFn(injected?: AskQueryFn): Promise<AskQueryFn>;
|
|
66
|
-
/**
|
|
67
|
-
* Build the `query()` options object. Pinned model + the system-prompt append
|
|
68
|
-
* on the Claude Code preset. Read-only tools enabled only inside a checkout;
|
|
69
|
-
* otherwise an empty allowlist (no filesystem access). Exported so the
|
|
70
|
-
* options shape is snapshot-testable (Rule 9 — a regression that unpinned the
|
|
71
|
-
* model or dropped the system prompt would slip past behaviour tests).
|
|
72
|
-
*/
|
|
73
|
-
export declare function buildAskQueryOptions(opts: AskSdkOptions): Record<string, unknown>;
|
|
74
|
-
/**
|
|
75
|
-
* Extract the assistant's visible text from an SDK message. Returns '' for
|
|
76
|
-
* non-text messages (system / result / tool-use). Exported for the unit test
|
|
77
|
-
* that asserts text aggregation across content blocks.
|
|
78
|
-
*/
|
|
79
|
-
export declare function extractAssistantText(msg: AskSdkMessage): string;
|
|
80
|
-
/**
|
|
81
|
-
* Run one prompt through the SDK and return the aggregated assistant text.
|
|
82
|
-
* Streams via the optional `onText` callback so the REPL/one-shot can print
|
|
83
|
-
* incrementally. Throws {@link AskSdkUnavailableError} when the SDK can't be
|
|
84
|
-
* resolved, or the underlying error if the SDK itself fails mid-stream.
|
|
85
|
-
*/
|
|
86
|
-
export declare function askOnce(prompt: string, opts: AskSdkOptions, onText?: (chunk: string) => void): Promise<string>;
|
|
87
|
-
//# sourceMappingURL=sdk-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-client.d.ts","sourceRoot":"","sources":["../../src/ask/sdk-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,qFAAqF;AACrF,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAE7C,0EAA0E;AAC1E,qBAAa,sBAAuB,SAAQ,KAAK;IAClB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;gBAAzC,OAAO,EAAE,MAAM,EAAW,KAAK,CAAC,EAAE,OAAO,YAAA;CAItD;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE;QACjB,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACrF,CAAC;IACF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,KAAK,aAAa,CAAC,aAAa,CAAC,CAAC;AAEnC,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;CAC/B;AAKD;;;GAGG;AACH,wBAAsB,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CA0B/E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAcjF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAM/D;AAED;;;;;GAKG;AACH,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,EACnB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAC/B,OAAO,CAAC,MAAM,CAAC,CAmBjB"}
|
package/dist/ask/sdk-client.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* sdk-client.ts — thin wrapper over `@anthropic-ai/claude-agent-sdk`'s
|
|
3
|
-
* `query()` for `olam ask`.
|
|
4
|
-
*
|
|
5
|
-
* Auth model (per repo CLAUDE.md, Decision D15): the Claude Agent SDK consumes
|
|
6
|
-
* the operator's LOCAL Claude Code subscription via stdio/IPC. It is NOT an
|
|
7
|
-
* `api.anthropic.com` HTTPS caller, so it is EXEMPT from `audit:auth-callers`
|
|
8
|
-
* and the `withCredential` helper-or-die rule. Nothing in this file references
|
|
9
|
-
* `api.anthropic.com`; the operator pays $0 incremental on top of their
|
|
10
|
-
* existing Claude Code login.
|
|
11
|
-
*
|
|
12
|
-
* The SDK is imported via dynamic `import()` so a missing / unbuilt SDK (or a
|
|
13
|
-
* Claude Code that isn't logged in) degrades to a clear, actionable error
|
|
14
|
-
* rather than a hard module-load crash (Rule 12 — fail loud, not cryptic).
|
|
15
|
-
*
|
|
16
|
-
* The model is pinned to `claude-sonnet-4-6` — the locked decision for this
|
|
17
|
-
* feature. `olam ask` is a fast Q&A surface, not a deep-reasoning loop.
|
|
18
|
-
*/
|
|
19
|
-
/** Pinned model for `olam ask`. Locked decision — do not change without sign-off. */
|
|
20
|
-
export const ASK_MODEL = 'claude-sonnet-4-6';
|
|
21
|
-
/** Error thrown when the Agent SDK / local Claude Code is unavailable. */
|
|
22
|
-
export class AskSdkUnavailableError extends Error {
|
|
23
|
-
cause;
|
|
24
|
-
constructor(message, cause) {
|
|
25
|
-
super(message);
|
|
26
|
-
this.cause = cause;
|
|
27
|
-
this.name = 'AskSdkUnavailableError';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/** Read-only tool allowlist used when running inside a checkout. */
|
|
31
|
-
const READ_ONLY_TOOLS = ['Read', 'Grep', 'Glob'];
|
|
32
|
-
/**
|
|
33
|
-
* Resolve the SDK's `query` function, mapping any import failure to a
|
|
34
|
-
* domain error with an actionable message. Exported for the degradation test.
|
|
35
|
-
*/
|
|
36
|
-
export async function resolveQueryFn(injected) {
|
|
37
|
-
if (injected)
|
|
38
|
-
return injected;
|
|
39
|
-
try {
|
|
40
|
-
// Dynamic import: a missing/unbuilt SDK must not crash module load.
|
|
41
|
-
const mod = (await import('@anthropic-ai/claude-agent-sdk'));
|
|
42
|
-
if (typeof mod.query !== 'function') {
|
|
43
|
-
throw new Error('SDK loaded but `query` export is missing');
|
|
44
|
-
}
|
|
45
|
-
return mod.query;
|
|
46
|
-
}
|
|
47
|
-
catch (err) {
|
|
48
|
-
throw new AskSdkUnavailableError([
|
|
49
|
-
'olam ask needs the Claude Agent SDK backed by a logged-in Claude Code.',
|
|
50
|
-
'',
|
|
51
|
-
'Fix:',
|
|
52
|
-
' 1. Install Claude Code: https://docs.claude.com/claude-code',
|
|
53
|
-
' 2. Log in: run `claude` once and complete login',
|
|
54
|
-
' 3. Retry: olam ask "<your question>"',
|
|
55
|
-
'',
|
|
56
|
-
'olam ask uses your local Claude subscription (Sonnet) — no extra API cost.',
|
|
57
|
-
].join('\n'), err);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Build the `query()` options object. Pinned model + the system-prompt append
|
|
62
|
-
* on the Claude Code preset. Read-only tools enabled only inside a checkout;
|
|
63
|
-
* otherwise an empty allowlist (no filesystem access). Exported so the
|
|
64
|
-
* options shape is snapshot-testable (Rule 9 — a regression that unpinned the
|
|
65
|
-
* model or dropped the system prompt would slip past behaviour tests).
|
|
66
|
-
*/
|
|
67
|
-
export function buildAskQueryOptions(opts) {
|
|
68
|
-
return {
|
|
69
|
-
model: ASK_MODEL,
|
|
70
|
-
systemPrompt: {
|
|
71
|
-
type: 'preset',
|
|
72
|
-
preset: 'claude_code',
|
|
73
|
-
append: opts.systemPromptAppend,
|
|
74
|
-
},
|
|
75
|
-
// Inside a checkout → read-only tools so the model can pull live files.
|
|
76
|
-
// Outside → empty allowlist = zero tools (pack-only answers).
|
|
77
|
-
allowedTools: opts.repoRoot ? READ_ONLY_TOOLS : [],
|
|
78
|
-
...(opts.repoRoot ? { cwd: opts.repoRoot } : {}),
|
|
79
|
-
thinking: { type: 'disabled' },
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Extract the assistant's visible text from an SDK message. Returns '' for
|
|
84
|
-
* non-text messages (system / result / tool-use). Exported for the unit test
|
|
85
|
-
* that asserts text aggregation across content blocks.
|
|
86
|
-
*/
|
|
87
|
-
export function extractAssistantText(msg) {
|
|
88
|
-
if (msg.type !== 'assistant' || !msg.message?.content)
|
|
89
|
-
return '';
|
|
90
|
-
return msg.message.content
|
|
91
|
-
.filter((b) => b.type === 'text' && typeof b.text === 'string')
|
|
92
|
-
.map((b) => b.text)
|
|
93
|
-
.join('');
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Run one prompt through the SDK and return the aggregated assistant text.
|
|
97
|
-
* Streams via the optional `onText` callback so the REPL/one-shot can print
|
|
98
|
-
* incrementally. Throws {@link AskSdkUnavailableError} when the SDK can't be
|
|
99
|
-
* resolved, or the underlying error if the SDK itself fails mid-stream.
|
|
100
|
-
*/
|
|
101
|
-
export async function askOnce(prompt, opts, onText) {
|
|
102
|
-
const query = await resolveQueryFn(opts.queryFn);
|
|
103
|
-
const options = buildAskQueryOptions(opts);
|
|
104
|
-
let answer = '';
|
|
105
|
-
const stream = query({ prompt, options });
|
|
106
|
-
for await (const msg of stream) {
|
|
107
|
-
if (msg.type === 'result' && msg.is_error) {
|
|
108
|
-
throw new Error(`Claude Agent SDK returned an error result${msg.subtype ? ` (${msg.subtype})` : ''}.`);
|
|
109
|
-
}
|
|
110
|
-
const text = extractAssistantText(msg);
|
|
111
|
-
if (text) {
|
|
112
|
-
answer += text;
|
|
113
|
-
onText?.(text);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return answer;
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=sdk-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-client.js","sourceRoot":"","sources":["../../src/ask/sdk-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAE7C,0EAA0E;AAC1E,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IACT;IAAtC,YAAY,OAAe,EAAW,KAAe;QACnD,KAAK,CAAC,OAAO,CAAC,CAAC;QADqB,UAAK,GAAL,KAAK,CAAU;QAEnD,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAqCD,oEAAoE;AACpE,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,QAAqB;IACxD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,I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t is the Claude Code preset `append` text: a behavioural
|
|
5
|
-
* contract ("you are olam's built-in assistant…") followed by the bundled
|
|
6
|
-
* knowledge pack. Keeping assembly pure + exported lets the test assert the
|
|
7
|
-
* pack is actually embedded (Rule 9 — a regression that drops the pack would
|
|
8
|
-
* silently degrade every answer to ungrounded guesses).
|
|
9
|
-
*/
|
|
10
|
-
/** Instruction preamble — the assistant's role + answer discipline. */
|
|
11
|
-
export declare const ASK_SYSTEM_PREAMBLE = "You are olam's built-in assistant, answering questions about how to use, set up, and operate olam from its command line.\n\nBehaviour:\n- Answer olam usage / setup / CLI questions concisely and accurately, grounded in the knowledge pack below and \u2014 when available \u2014 the local repo files you can read.\n- Prefer the exact command, config key, or doc path over prose. Show the command the operator should run.\n- If a checkout's local files are available and more current than the pack, trust the files.\n- If you are unsure or the answer isn't covered, say so plainly and point to the most relevant doc (under `docs/`) or command (`olam <cmd> --help`). Do not invent flags, commands, or config keys.\n- Keep answers focused. Use short paragraphs or tight bullet lists. No filler.\n- You are a read-only assistant: never modify files, run mutating commands, or create worlds. If asked to do something destructive, explain the command instead of performing it.";
|
|
12
|
-
export interface AssembleSystemPromptInput {
|
|
13
|
-
/** The bundled knowledge pack Markdown string. */
|
|
14
|
-
readonly knowledgePack: string;
|
|
15
|
-
/**
|
|
16
|
-
* Whether `olam ask` is running inside an olam checkout (the SDK can read
|
|
17
|
-
* live repo files). Tunes a single sentence so the model knows whether to
|
|
18
|
-
* lean on local files.
|
|
19
|
-
*/
|
|
20
|
-
readonly insideCheckout: boolean;
|
|
21
|
-
/** Absolute repo root when inside a checkout (rendered as a hint). */
|
|
22
|
-
readonly repoRoot?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Build the full system-prompt `append` text fed to the SDK. Pure + exported
|
|
26
|
-
* so the regression test can assert (a) the preamble is present and (b) the
|
|
27
|
-
* knowledge pack body is embedded verbatim.
|
|
28
|
-
*/
|
|
29
|
-
export declare function assembleSystemPrompt(input: AssembleSystemPromptInput): string;
|
|
30
|
-
//# sourceMappingURL=system-prompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/ask/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,48BAQkJ,CAAC;AAEnL,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,MAAM,CAM7E"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* system-prompt.ts — assembles the `olam ask` SDK system prompt.
|
|
3
|
-
*
|
|
4
|
-
* The system prompt is the Claude Code preset `append` text: a behavioural
|
|
5
|
-
* contract ("you are olam's built-in assistant…") followed by the bundled
|
|
6
|
-
* knowledge pack. Keeping assembly pure + exported lets the test assert the
|
|
7
|
-
* pack is actually embedded (Rule 9 — a regression that drops the pack would
|
|
8
|
-
* silently degrade every answer to ungrounded guesses).
|
|
9
|
-
*/
|
|
10
|
-
/** Instruction preamble — the assistant's role + answer discipline. */
|
|
11
|
-
export const ASK_SYSTEM_PREAMBLE = `You are olam's built-in assistant, answering questions about how to use, set up, and operate olam from its command line.
|
|
12
|
-
|
|
13
|
-
Behaviour:
|
|
14
|
-
- Answer olam usage / setup / CLI questions concisely and accurately, grounded in the knowledge pack below and — when available — the local repo files you can read.
|
|
15
|
-
- Prefer the exact command, config key, or doc path over prose. Show the command the operator should run.
|
|
16
|
-
- If a checkout's local files are available and more current than the pack, trust the files.
|
|
17
|
-
- If you are unsure or the answer isn't covered, say so plainly and point to the most relevant doc (under \`docs/\`) or command (\`olam <cmd> --help\`). Do not invent flags, commands, or config keys.
|
|
18
|
-
- Keep answers focused. Use short paragraphs or tight bullet lists. No filler.
|
|
19
|
-
- You are a read-only assistant: never modify files, run mutating commands, or create worlds. If asked to do something destructive, explain the command instead of performing it.`;
|
|
20
|
-
/**
|
|
21
|
-
* Build the full system-prompt `append` text fed to the SDK. Pure + exported
|
|
22
|
-
* so the regression test can assert (a) the preamble is present and (b) the
|
|
23
|
-
* knowledge pack body is embedded verbatim.
|
|
24
|
-
*/
|
|
25
|
-
export function assembleSystemPrompt(input) {
|
|
26
|
-
const locality = input.insideCheckout
|
|
27
|
-
? `You are running inside an olam checkout at \`${input.repoRoot ?? process.cwd()}\`. You may read repo files (README, docs/, packages/) to give fresher, more precise answers than the bundled pack alone.`
|
|
28
|
-
: `You are running outside an olam checkout (installed via npx). Answer from the bundled knowledge pack below; there are no local repo files to read.`;
|
|
29
|
-
return [ASK_SYSTEM_PREAMBLE, locality, input.knowledgePack].join('\n\n');
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=system-prompt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/ask/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,uEAAuE;AACvE,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;kLAQ+I,CAAC;AAenL;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc;QACnC,CAAC,CAAC,gDAAgD,KAAK,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,2HAA2H;QAC5M,CAAC,CAAC,oJAAoJ,CAAC;IAEzJ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3E,CAAC"}
|
package/dist/cli-version.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read the CLI's version from the package.json that ships alongside
|
|
3
|
-
* the bundled `dist/index.js`.
|
|
4
|
-
*
|
|
5
|
-
* Lives in its own module so callers other than the CLI's main entry
|
|
6
|
-
* (e.g. `host-cp.ts buildComposeEnv` propagating the version into the
|
|
7
|
-
* host-cp container) can read the same source of truth without
|
|
8
|
-
* duplicating the lookup logic.
|
|
9
|
-
*
|
|
10
|
-
* Resolution: the bundle lives at `packages/cli/dist/index.js`; the
|
|
11
|
-
* package.json is its sibling at `packages/cli/package.json`. We resolve
|
|
12
|
-
* relative to `import.meta.url` so the lookup works whether the bundle
|
|
13
|
-
* was loaded from a global install (npm) or a local checkout (tsx).
|
|
14
|
-
*/
|
|
15
|
-
export declare function readCliVersion(): string;
|
|
16
|
-
//# sourceMappingURL=cli-version.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-version.d.ts","sourceRoot":"","sources":["../src/cli-version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,wBAAgB,cAAc,IAAI,MAAM,CAkBvC"}
|
package/dist/cli-version.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read the CLI's version from the package.json that ships alongside
|
|
3
|
-
* the bundled `dist/index.js`.
|
|
4
|
-
*
|
|
5
|
-
* Lives in its own module so callers other than the CLI's main entry
|
|
6
|
-
* (e.g. `host-cp.ts buildComposeEnv` propagating the version into the
|
|
7
|
-
* host-cp container) can read the same source of truth without
|
|
8
|
-
* duplicating the lookup logic.
|
|
9
|
-
*
|
|
10
|
-
* Resolution: the bundle lives at `packages/cli/dist/index.js`; the
|
|
11
|
-
* package.json is its sibling at `packages/cli/package.json`. We resolve
|
|
12
|
-
* relative to `import.meta.url` so the lookup works whether the bundle
|
|
13
|
-
* was loaded from a global install (npm) or a local checkout (tsx).
|
|
14
|
-
*/
|
|
15
|
-
import * as fs from 'node:fs';
|
|
16
|
-
import * as path from 'node:path';
|
|
17
|
-
import { fileURLToPath } from 'node:url';
|
|
18
|
-
export function readCliVersion() {
|
|
19
|
-
try {
|
|
20
|
-
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
21
|
-
// Walk up from dist/ to package root.
|
|
22
|
-
for (const candidate of [
|
|
23
|
-
path.join(here, 'package.json'),
|
|
24
|
-
path.join(here, '..', 'package.json'),
|
|
25
|
-
path.join(here, '..', '..', 'package.json'),
|
|
26
|
-
]) {
|
|
27
|
-
if (fs.existsSync(candidate)) {
|
|
28
|
-
const pkg = JSON.parse(fs.readFileSync(candidate, 'utf-8'));
|
|
29
|
-
if (typeof pkg.version === 'string' && pkg.version.length > 0)
|
|
30
|
-
return pkg.version;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
// fall through
|
|
36
|
-
}
|
|
37
|
-
return '0.0.0-unknown';
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=cli-version.js.map
|
package/dist/cli-version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-version.js","sourceRoot":"","sources":["../src/cli-version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,sCAAsC;QACtC,KAAK,MAAM,SAAS,IAAI;YACtB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC;YAC/B,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC;YACrC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC;SAC5C,EAAE,CAAC;YACF,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAyB,CAAC;gBACpF,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;oBAAE,OAAO,GAAG,CAAC,OAAO,CAAC;YACpF,CAAC;QACH,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,eAAe;IACjB,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
package/dist/commands/ask.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* olam ask — interactive assistant for olam usage + setup questions.
|
|
3
|
-
*
|
|
4
|
-
* olam ask "<question>" answer once and exit (script-friendly)
|
|
5
|
-
* olam ask open an interactive multi-turn REPL
|
|
6
|
-
*
|
|
7
|
-
* Powered by the Claude Agent SDK on the operator's LOCAL Claude Code
|
|
8
|
-
* subscription, pinned to Sonnet (`claude-sonnet-4-6`). No extra API cost on
|
|
9
|
-
* top of the operator's existing Claude Code login. Grounded in a knowledge
|
|
10
|
-
* pack bundled at build time, plus live repo files when run inside a checkout.
|
|
11
|
-
*
|
|
12
|
-
* Read-only: the assistant never mutates files or creates worlds.
|
|
13
|
-
*/
|
|
14
|
-
import type { Command } from 'commander';
|
|
15
|
-
/**
|
|
16
|
-
* Route invocation to one-shot vs REPL based on argument presence. Pure
|
|
17
|
-
* relative to the injected runners so the routing decision is unit-testable
|
|
18
|
-
* without spinning up the SDK (Rule 9 — the WHY: a regression that routed a
|
|
19
|
-
* bare `olam ask` to one-shot, or an arg to the REPL, breaks both the script
|
|
20
|
-
* contract and the interactive contract silently).
|
|
21
|
-
*/
|
|
22
|
-
export declare function routeAsk(question: string | undefined, runners: {
|
|
23
|
-
oneShot: (q: string) => Promise<number>;
|
|
24
|
-
repl: () => Promise<number>;
|
|
25
|
-
}): Promise<number>;
|
|
26
|
-
export declare function registerAsk(program: Command): void;
|
|
27
|
-
//# sourceMappingURL=ask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../src/commands/ask.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE;IACP,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B,GACA,OAAO,CAAC,MAAM,CAAC,CAKjB;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoClD"}
|