@stigmer/cli 0.1.0-dev.20261017064309.g94d062a29f89 → 0.1.0
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 +5 -4
- package/auth/auth0.js +1 -1
- package/auth/auth0.js.map +1 -1
- package/auth/token.d.ts +26 -4
- package/auth/token.d.ts.map +1 -1
- package/auth/token.js +120 -24
- package/auth/token.js.map +1 -1
- package/client/client.d.ts.map +1 -1
- package/client/client.js +21 -8
- package/client/client.js.map +1 -1
- package/command-tree.d.ts +63 -0
- package/command-tree.d.ts.map +1 -0
- package/command-tree.js +128 -0
- package/command-tree.js.map +1 -0
- package/commands/access-history/index.d.ts.map +1 -1
- package/commands/access-history/index.js +13 -1
- package/commands/access-history/index.js.map +1 -1
- package/commands/agent-exec-flags.d.ts +2 -0
- package/commands/agent-exec-flags.d.ts.map +1 -1
- package/commands/agent-exec-flags.js +9 -5
- package/commands/agent-exec-flags.js.map +1 -1
- package/commands/apikey/duration.d.ts.map +1 -1
- package/commands/apikey/duration.js +1 -2
- package/commands/apikey/duration.js.map +1 -1
- package/commands/apikey/index.d.ts.map +1 -1
- package/commands/apikey/index.js +3 -4
- package/commands/apikey/index.js.map +1 -1
- package/commands/apply.d.ts.map +1 -1
- package/commands/apply.js +2 -32
- package/commands/apply.js.map +1 -1
- package/commands/auth/index.d.ts.map +1 -1
- package/commands/auth/index.js +7 -5
- package/commands/auth/index.js.map +1 -1
- package/commands/auth/whoami.js +1 -1
- package/commands/config/index.js +3 -3
- package/commands/config/kv.d.ts.map +1 -1
- package/commands/config/kv.js +18 -14
- package/commands/config/kv.js.map +1 -1
- package/commands/connect.d.ts.map +1 -1
- package/commands/connect.js +18 -2
- package/commands/connect.js.map +1 -1
- package/commands/download.d.ts.map +1 -1
- package/commands/download.js +81 -54
- package/commands/download.js.map +1 -1
- package/commands/eval.d.ts.map +1 -1
- package/commands/eval.js +17 -19
- package/commands/eval.js.map +1 -1
- package/commands/file.d.ts +3 -0
- package/commands/file.d.ts.map +1 -0
- package/commands/file.js +64 -0
- package/commands/file.js.map +1 -0
- package/commands/get.d.ts.map +1 -1
- package/commands/get.js +20 -13
- package/commands/get.js.map +1 -1
- package/commands/help.d.ts +15 -0
- package/commands/help.d.ts.map +1 -0
- package/commands/help.js +175 -0
- package/commands/help.js.map +1 -0
- package/commands/internal-daemon.d.ts.map +1 -1
- package/commands/internal-daemon.js +9 -2
- package/commands/internal-daemon.js.map +1 -1
- package/commands/list.d.ts.map +1 -1
- package/commands/list.js +22 -1
- package/commands/list.js.map +1 -1
- package/commands/logs.js +1 -1
- package/commands/logs.js.map +1 -1
- package/commands/mcp-server.d.ts +16 -6
- package/commands/mcp-server.d.ts.map +1 -1
- package/commands/mcp-server.js +51 -26
- package/commands/mcp-server.js.map +1 -1
- package/commands/provider-key/index.d.ts +3 -0
- package/commands/provider-key/index.d.ts.map +1 -0
- package/commands/provider-key/index.js +156 -0
- package/commands/provider-key/index.js.map +1 -0
- package/commands/push.js +8 -8
- package/commands/push.js.map +1 -1
- package/commands/resume.d.ts.map +1 -1
- package/commands/resume.js +17 -11
- package/commands/resume.js.map +1 -1
- package/commands/routine.d.ts.map +1 -1
- package/commands/routine.js +42 -3
- package/commands/routine.js.map +1 -1
- package/commands/run.d.ts.map +1 -1
- package/commands/run.js +34 -15
- package/commands/run.js.map +1 -1
- package/commands/runs/approve.d.ts.map +1 -1
- package/commands/runs/approve.js +10 -2
- package/commands/runs/approve.js.map +1 -1
- package/commands/runs/control.d.ts.map +1 -1
- package/commands/runs/control.js +24 -16
- package/commands/runs/control.js.map +1 -1
- package/commands/runs/index.d.ts.map +1 -1
- package/commands/runs/index.js +1 -2
- package/commands/runs/index.js.map +1 -1
- package/commands/runs/logs.d.ts.map +1 -1
- package/commands/runs/logs.js +7 -4
- package/commands/runs/logs.js.map +1 -1
- package/commands/runs/to-eval-case.d.ts.map +1 -1
- package/commands/runs/to-eval-case.js +13 -4
- package/commands/runs/to-eval-case.js.map +1 -1
- package/commands/runs/trace.js +1 -1
- package/commands/runs/trace.js.map +1 -1
- package/commands/search.js +2 -3
- package/commands/search.js.map +1 -1
- package/commands/service-account/index.d.ts.map +1 -1
- package/commands/service-account/index.js +4 -2
- package/commands/service-account/index.js.map +1 -1
- package/commands/session-help.d.ts +5 -0
- package/commands/session-help.d.ts.map +1 -0
- package/commands/session-help.js +38 -0
- package/commands/session-help.js.map +1 -0
- package/commands/setup.js +5 -5
- package/commands/setup.js.map +1 -1
- package/commands/shared.d.ts +10 -2
- package/commands/shared.d.ts.map +1 -1
- package/commands/shared.js +30 -3
- package/commands/shared.js.map +1 -1
- package/commands/tag.d.ts.map +1 -1
- package/commands/tag.js +11 -6
- package/commands/tag.js.map +1 -1
- package/commands/up.d.ts.map +1 -1
- package/commands/up.js +51 -21
- package/commands/up.js.map +1 -1
- package/commands/validate.js +2 -2
- package/commands/validate.js.map +1 -1
- package/commands/version.d.ts.map +1 -1
- package/commands/version.js +8 -4
- package/commands/version.js.map +1 -1
- package/config/config.d.ts +5 -22
- package/config/config.d.ts.map +1 -1
- package/config/config.js +56 -47
- package/config/config.js.map +1 -1
- package/config/index.d.ts +2 -2
- package/config/index.d.ts.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/keys.js +4 -4
- package/config/keys.js.map +1 -1
- package/config/paths.js +2 -2
- package/config/paths.js.map +1 -1
- package/config/resolve.d.ts +12 -2
- package/config/resolve.d.ts.map +1 -1
- package/config/resolve.js +18 -8
- package/config/resolve.js.map +1 -1
- package/errors/classify.d.ts +20 -0
- package/errors/classify.d.ts.map +1 -1
- package/errors/classify.js +97 -21
- package/errors/classify.js.map +1 -1
- package/errors/command-line.d.ts +14 -0
- package/errors/command-line.d.ts.map +1 -0
- package/errors/command-line.js +90 -0
- package/errors/command-line.js.map +1 -0
- package/errors/handle.js +2 -2
- package/errors/handle.js.map +1 -1
- package/errors/index.d.ts +2 -2
- package/errors/index.d.ts.map +1 -1
- package/errors/index.js +12 -2
- package/errors/index.js.map +1 -1
- package/errors/usage-error.js +1 -1
- package/errors/usage-error.js.map +1 -1
- package/global-options.d.ts +35 -0
- package/global-options.d.ts.map +1 -0
- package/global-options.js +81 -0
- package/global-options.js.map +1 -0
- package/local/artifact.d.ts +1 -20
- package/local/artifact.d.ts.map +1 -1
- package/local/artifact.js +35 -117
- package/local/artifact.js.map +1 -1
- package/local/constants.d.ts +3 -9
- package/local/constants.d.ts.map +1 -1
- package/local/constants.js +3 -9
- package/local/constants.js.map +1 -1
- package/local/daemon/components.d.ts +18 -5
- package/local/daemon/components.d.ts.map +1 -1
- package/local/daemon/components.js +61 -23
- package/local/daemon/components.js.map +1 -1
- package/local/daemon/env.d.ts +1 -5
- package/local/daemon/env.d.ts.map +1 -1
- package/local/daemon/env.js +0 -2
- package/local/daemon/env.js.map +1 -1
- package/local/daemon/host.d.ts +5 -0
- package/local/daemon/host.d.ts.map +1 -1
- package/local/daemon/host.js +68 -21
- package/local/daemon/host.js.map +1 -1
- package/local/daemon/index.d.ts +2 -1
- package/local/daemon/index.d.ts.map +1 -1
- package/local/daemon/index.js +2 -1
- package/local/daemon/index.js.map +1 -1
- package/local/daemon/launch.d.ts +58 -9
- package/local/daemon/launch.d.ts.map +1 -1
- package/local/daemon/launch.js +210 -64
- package/local/daemon/launch.js.map +1 -1
- package/local/daemon/process.d.ts +11 -7
- package/local/daemon/process.d.ts.map +1 -1
- package/local/daemon/process.js +74 -38
- package/local/daemon/process.js.map +1 -1
- package/local/daemon/signals.d.ts +3 -0
- package/local/daemon/signals.d.ts.map +1 -0
- package/local/daemon/signals.js +19 -0
- package/local/daemon/signals.js.map +1 -0
- package/local/daemon/supervisor.d.ts +9 -2
- package/local/daemon/supervisor.d.ts.map +1 -1
- package/local/daemon/supervisor.js +81 -22
- package/local/daemon/supervisor.js.map +1 -1
- package/local/daemon/types.d.ts +6 -1
- package/local/daemon/types.d.ts.map +1 -1
- package/local/daemon/types.js +2 -3
- package/local/daemon/types.js.map +1 -1
- package/local/llm-config.d.ts +4 -2
- package/local/llm-config.d.ts.map +1 -1
- package/local/llm-config.js +15 -9
- package/local/llm-config.js.map +1 -1
- package/local/logs/view.d.ts.map +1 -1
- package/local/logs/view.js +5 -6
- package/local/logs/view.js.map +1 -1
- package/local/net/tcp.d.ts +8 -6
- package/local/net/tcp.d.ts.map +1 -1
- package/local/net/tcp.js +13 -8
- package/local/net/tcp.js.map +1 -1
- package/local/paths.d.ts +1 -1
- package/local/paths.d.ts.map +1 -1
- package/local/paths.js +2 -3
- package/local/paths.js.map +1 -1
- package/local/provider-reach.d.ts +18 -0
- package/local/provider-reach.d.ts.map +1 -0
- package/local/provider-reach.js +109 -0
- package/local/provider-reach.js.map +1 -0
- package/local/reset.d.ts.map +1 -1
- package/local/reset.js +1 -2
- package/local/reset.js.map +1 -1
- package/local/runtime/index.d.ts.map +1 -1
- package/local/runtime/index.js +1 -2
- package/local/runtime/index.js.map +1 -1
- package/local/runtime/node.js +1 -1
- package/local/runtime/runner.js +2 -2
- package/local/runtime/runner.js.map +1 -1
- package/local/runtime/runtimes-install.js +1 -1
- package/local/runtime/server.d.ts.map +1 -1
- package/local/runtime/server.js +2 -4
- package/local/runtime/server.js.map +1 -1
- package/local/runtime/which.js +1 -1
- package/local/runtime/which.js.map +1 -1
- package/local/setup/wizard.d.ts +1 -1
- package/local/setup/wizard.d.ts.map +1 -1
- package/local/setup/wizard.js +7 -5
- package/local/setup/wizard.js.map +1 -1
- package/local/state/health-state.d.ts +6 -0
- package/local/state/health-state.d.ts.map +1 -1
- package/local/state/health-state.js +6 -2
- package/local/state/health-state.js.map +1 -1
- package/local/state/lock.d.ts +3 -2
- package/local/state/lock.d.ts.map +1 -1
- package/local/state/lock.js +26 -28
- package/local/state/lock.js.map +1 -1
- package/local/state/log-rotation.d.ts.map +1 -1
- package/local/state/log-rotation.js +2 -3
- package/local/state/log-rotation.js.map +1 -1
- package/local/state/pidfile.d.ts +24 -1
- package/local/state/pidfile.d.ts.map +1 -1
- package/local/state/pidfile.js +54 -6
- package/local/state/pidfile.js.map +1 -1
- package/local/state/proc.d.ts +31 -0
- package/local/state/proc.d.ts.map +1 -1
- package/local/state/proc.js +98 -1
- package/local/state/proc.js.map +1 -1
- package/local/state/startup-config.d.ts +2 -2
- package/local/status.d.ts +2 -4
- package/local/status.d.ts.map +1 -1
- package/local/status.js +26 -41
- package/local/status.js.map +1 -1
- package/local/temporal/download.d.ts +9 -5
- package/local/temporal/download.d.ts.map +1 -1
- package/local/temporal/download.js +29 -8
- package/local/temporal/download.js.map +1 -1
- package/local/temporal/index.d.ts +1 -1
- package/local/temporal/index.d.ts.map +1 -1
- package/local/temporal/index.js +1 -1
- package/local/temporal/index.js.map +1 -1
- package/local/temporal/manager.d.ts +31 -5
- package/local/temporal/manager.d.ts.map +1 -1
- package/local/temporal/manager.js +74 -35
- package/local/temporal/manager.js.map +1 -1
- package/local/temporal/supervisor.js +1 -1
- package/local/temporal/supervisor.js.map +1 -1
- package/local/webconsole/index.d.ts +5 -2
- package/local/webconsole/index.d.ts.map +1 -1
- package/local/webconsole/index.js +8 -6
- package/local/webconsole/index.js.map +1 -1
- package/marketplace/github.js +1 -1
- package/marketplace/github.js.map +1 -1
- package/marketplace/official.js +1 -1
- package/marketplace/official.js.map +1 -1
- package/output/command-result.d.ts +6 -0
- package/output/command-result.d.ts.map +1 -1
- package/output/command-result.js +13 -2
- package/output/command-result.js.map +1 -1
- package/output/confirm.d.ts.map +1 -1
- package/output/confirm.js +2 -3
- package/output/confirm.js.map +1 -1
- package/output/format.d.ts.map +1 -1
- package/output/format.js +5 -6
- package/output/format.js.map +1 -1
- package/output/index.d.ts +2 -2
- package/output/index.d.ts.map +1 -1
- package/output/index.js +2 -2
- package/output/index.js.map +1 -1
- package/output/printable.d.ts +8 -0
- package/output/printable.d.ts.map +1 -0
- package/output/printable.js +24 -0
- package/output/printable.js.map +1 -0
- package/output/proto.d.ts.map +1 -1
- package/output/proto.js +3 -4
- package/output/proto.js.map +1 -1
- package/output/style.js +2 -2
- package/output/style.js.map +1 -1
- package/output/table.d.ts +20 -1
- package/output/table.d.ts.map +1 -1
- package/output/table.js +75 -17
- package/output/table.js.map +1 -1
- package/package.json +13 -10
- package/program.d.ts +0 -14
- package/program.d.ts.map +1 -1
- package/program.js +57 -119
- package/program.js.map +1 -1
- package/registry/aliases.d.ts.map +1 -1
- package/registry/aliases.js +0 -3
- package/registry/aliases.js.map +1 -1
- package/registry/index.d.ts +1 -1
- package/registry/index.d.ts.map +1 -1
- package/registry/index.js +1 -1
- package/registry/index.js.map +1 -1
- package/registry/metadata.d.ts +0 -15
- package/registry/metadata.d.ts.map +1 -1
- package/registry/metadata.js +16 -57
- package/registry/metadata.js.map +1 -1
- package/registry/registry.d.ts +1 -5
- package/registry/registry.d.ts.map +1 -1
- package/registry/registry.js +3 -11
- package/registry/registry.js.map +1 -1
- package/registry/verb-support.d.ts.map +1 -1
- package/registry/verb-support.js +28 -5
- package/registry/verb-support.js.map +1 -1
- package/resources/agent/quality.d.ts +10 -5
- package/resources/agent/quality.d.ts.map +1 -1
- package/resources/agent/quality.js +19 -9
- package/resources/agent/quality.js.map +1 -1
- package/resources/agent/resolve.js +3 -3
- package/resources/agent/resolve.js.map +1 -1
- package/resources/apply/apply.d.ts +4 -3
- package/resources/apply/apply.d.ts.map +1 -1
- package/resources/apply/apply.js +54 -41
- package/resources/apply/apply.js.map +1 -1
- package/resources/apply/handlers.d.ts.map +1 -1
- package/resources/apply/handlers.js +3 -4
- package/resources/apply/handlers.js.map +1 -1
- package/resources/channel.d.ts.map +1 -1
- package/resources/channel.js +3 -4
- package/resources/channel.js.map +1 -1
- package/resources/connect/connect.js +2 -2
- package/resources/connect/connect.js.map +1 -1
- package/resources/delete.d.ts.map +1 -1
- package/resources/delete.js +38 -4
- package/resources/delete.js.map +1 -1
- package/resources/documents.js +1 -1
- package/resources/documents.js.map +1 -1
- package/resources/download.d.ts +43 -3
- package/resources/download.d.ts.map +1 -1
- package/resources/download.js +169 -34
- package/resources/download.js.map +1 -1
- package/resources/eval-run/options.d.ts +3 -1
- package/resources/eval-run/options.d.ts.map +1 -1
- package/resources/eval-run/options.js +36 -18
- package/resources/eval-run/options.js.map +1 -1
- package/resources/eval-run/report.d.ts +4 -2
- package/resources/eval-run/report.d.ts.map +1 -1
- package/resources/eval-run/report.js +9 -7
- package/resources/eval-run/report.js.map +1 -1
- package/resources/eval-run/run.d.ts +2 -1
- package/resources/eval-run/run.d.ts.map +1 -1
- package/resources/eval-run/run.js +13 -7
- package/resources/eval-run/run.js.map +1 -1
- package/resources/file.d.ts +27 -0
- package/resources/file.d.ts.map +1 -0
- package/resources/file.js +82 -0
- package/resources/file.js.map +1 -0
- package/resources/get-bindings.d.ts.map +1 -1
- package/resources/get-bindings.js +18 -0
- package/resources/get-bindings.js.map +1 -1
- package/resources/git.d.ts +1 -1
- package/resources/git.js +1 -1
- package/resources/list.d.ts +21 -2
- package/resources/list.d.ts.map +1 -1
- package/resources/list.js +148 -31
- package/resources/list.js.map +1 -1
- package/resources/plugin.d.ts.map +1 -1
- package/resources/plugin.js +4 -0
- package/resources/plugin.js.map +1 -1
- package/resources/provider-key.d.ts +81 -0
- package/resources/provider-key.d.ts.map +1 -0
- package/resources/provider-key.js +261 -0
- package/resources/provider-key.js.map +1 -0
- package/resources/reference.d.ts +15 -21
- package/resources/reference.d.ts.map +1 -1
- package/resources/reference.js +42 -88
- package/resources/reference.js.map +1 -1
- package/resources/render.d.ts +31 -7
- package/resources/render.d.ts.map +1 -1
- package/resources/render.js +66 -38
- package/resources/render.js.map +1 -1
- package/resources/routine.d.ts +21 -5
- package/resources/routine.d.ts.map +1 -1
- package/resources/routine.js +104 -15
- package/resources/routine.js.map +1 -1
- package/resources/run/agent-exec.d.ts +12 -2
- package/resources/run/agent-exec.d.ts.map +1 -1
- package/resources/run/agent-exec.js +85 -38
- package/resources/run/agent-exec.js.map +1 -1
- package/resources/run/create.d.ts +16 -12
- package/resources/run/create.d.ts.map +1 -1
- package/resources/run/create.js +14 -15
- package/resources/run/create.js.map +1 -1
- package/resources/run/engines.d.ts +32 -0
- package/resources/run/engines.d.ts.map +1 -0
- package/resources/run/engines.js +39 -0
- package/resources/run/engines.js.map +1 -0
- package/resources/run/environment.d.ts +11 -0
- package/resources/run/environment.d.ts.map +1 -0
- package/resources/run/environment.js +30 -0
- package/resources/run/environment.js.map +1 -0
- package/resources/run/epilogue.d.ts +1 -1
- package/resources/run/epilogue.d.ts.map +1 -1
- package/resources/run/epilogue.js +18 -19
- package/resources/run/epilogue.js.map +1 -1
- package/resources/run/files.d.ts +104 -0
- package/resources/run/files.d.ts.map +1 -0
- package/resources/run/files.js +316 -0
- package/resources/run/files.js.map +1 -0
- package/resources/run/header.d.ts +11 -9
- package/resources/run/header.d.ts.map +1 -1
- package/resources/run/header.js +14 -14
- package/resources/run/header.js.map +1 -1
- package/resources/run/prepare.d.ts +31 -25
- package/resources/run/prepare.d.ts.map +1 -1
- package/resources/run/prepare.js +42 -51
- package/resources/run/prepare.js.map +1 -1
- package/resources/run/references.d.ts.map +1 -1
- package/resources/run/references.js +6 -5
- package/resources/run/references.js.map +1 -1
- package/resources/run/resolve.js +1 -1
- package/resources/run/resolve.js.map +1 -1
- package/resources/run/resume.d.ts +3 -1
- package/resources/run/resume.d.ts.map +1 -1
- package/resources/run/resume.js +25 -10
- package/resources/run/resume.js.map +1 -1
- package/resources/run/stream.d.ts +34 -2
- package/resources/run/stream.d.ts.map +1 -1
- package/resources/run/stream.js +92 -8
- package/resources/run/stream.js.map +1 -1
- package/resources/run/workspace.d.ts +9 -12
- package/resources/run/workspace.d.ts.map +1 -1
- package/resources/run/workspace.js +29 -36
- package/resources/run/workspace.js.map +1 -1
- package/resources/run-approve.d.ts.map +1 -1
- package/resources/run-approve.js +2 -11
- package/resources/run-approve.js.map +1 -1
- package/resources/run-control.d.ts +3 -3
- package/resources/run-control.d.ts.map +1 -1
- package/resources/run-control.js +4 -5
- package/resources/run-control.js.map +1 -1
- package/resources/run-format.d.ts +2 -2
- package/resources/run-format.d.ts.map +1 -1
- package/resources/run-format.js +3 -4
- package/resources/run-format.js.map +1 -1
- package/resources/run-logs.d.ts +2 -0
- package/resources/run-logs.d.ts.map +1 -1
- package/resources/run-logs.js +16 -6
- package/resources/run-logs.js.map +1 -1
- package/resources/run-scores.d.ts +6 -2
- package/resources/run-scores.d.ts.map +1 -1
- package/resources/run-scores.js +7 -4
- package/resources/run-scores.js.map +1 -1
- package/resources/run-to-eval-case.js +2 -2
- package/resources/run-to-eval-case.js.map +1 -1
- package/resources/runs.d.ts +3 -3
- package/resources/runs.d.ts.map +1 -1
- package/resources/runs.js +5 -5
- package/resources/runs.js.map +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +1 -2
- package/resources/search.js.map +1 -1
- package/resources/service-account.d.ts +2 -0
- package/resources/service-account.d.ts.map +1 -1
- package/resources/service-account.js +3 -1
- package/resources/service-account.js.map +1 -1
- package/resources/session.d.ts +4 -3
- package/resources/session.d.ts.map +1 -1
- package/resources/session.js +10 -7
- package/resources/session.js.map +1 -1
- package/resources/skill.d.ts +1 -1
- package/resources/skill.d.ts.map +1 -1
- package/resources/skill.js +7 -8
- package/resources/skill.js.map +1 -1
- package/resources/stream/answer.d.ts +1 -2
- package/resources/stream/answer.d.ts.map +1 -1
- package/resources/stream/answer.js +3 -16
- package/resources/stream/answer.js.map +1 -1
- package/resources/stream/composer.d.ts +16 -0
- package/resources/stream/composer.d.ts.map +1 -0
- package/resources/stream/composer.js +171 -0
- package/resources/stream/composer.js.map +1 -0
- package/resources/stream/ink.d.ts +20 -4
- package/resources/stream/ink.d.ts.map +1 -1
- package/resources/stream/ink.js +34 -3
- package/resources/stream/ink.js.map +1 -1
- package/resources/stream/render-plaintext.d.ts +1 -0
- package/resources/stream/render-plaintext.d.ts.map +1 -1
- package/resources/stream/render-plaintext.js +21 -4
- package/resources/stream/render-plaintext.js.map +1 -1
- package/resources/stream/tty.js +1 -1
- package/resources/stream/tty.js.map +1 -1
- package/resources/tag.d.ts.map +1 -1
- package/resources/tag.js +7 -8
- package/resources/tag.js.map +1 -1
- package/resources/usage.d.ts +3 -2
- package/resources/usage.d.ts.map +1 -1
- package/resources/usage.js +19 -16
- package/resources/usage.js.map +1 -1
- package/resources/validate.d.ts.map +1 -1
- package/resources/validate.js +1 -12
- package/resources/validate.js.map +1 -1
- package/resources/version.d.ts +17 -3
- package/resources/version.d.ts.map +1 -1
- package/resources/version.js +105 -14
- package/resources/version.js.map +1 -1
- package/resources/views/agent.d.ts +3 -0
- package/resources/views/agent.d.ts.map +1 -0
- package/resources/views/agent.js +54 -0
- package/resources/views/agent.js.map +1 -0
- package/resources/views/environment.d.ts +3 -0
- package/resources/views/environment.d.ts.map +1 -0
- package/resources/views/environment.js +37 -0
- package/resources/views/environment.js.map +1 -0
- package/resources/views/index.d.ts +22 -0
- package/resources/views/index.d.ts.map +1 -0
- package/resources/views/index.js +70 -0
- package/resources/views/index.js.map +1 -0
- package/resources/views/organization.d.ts +3 -0
- package/resources/views/organization.d.ts.map +1 -0
- package/resources/views/organization.js +27 -0
- package/resources/views/organization.js.map +1 -0
- package/resources/views/routine.d.ts +3 -0
- package/resources/views/routine.d.ts.map +1 -0
- package/resources/views/routine.js +37 -0
- package/resources/views/routine.js.map +1 -0
- package/resources/views/run.d.ts +3 -0
- package/resources/views/run.d.ts.map +1 -0
- package/resources/views/run.js +45 -0
- package/resources/views/run.js.map +1 -0
- package/resources/views/session.d.ts +5 -0
- package/resources/views/session.d.ts.map +1 -0
- package/resources/views/session.js +85 -0
- package/resources/views/session.js.map +1 -0
- package/resources/views/skill.d.ts +5 -0
- package/resources/views/skill.d.ts.map +1 -0
- package/resources/views/skill.js +48 -0
- package/resources/views/skill.js.map +1 -0
- package/resources/views/view.d.ts +66 -0
- package/resources/views/view.d.ts.map +1 -0
- package/resources/views/view.js +130 -0
- package/resources/views/view.js.map +1 -0
- package/resources/views/words.d.ts +52 -0
- package/resources/views/words.d.ts.map +1 -0
- package/resources/views/words.js +190 -0
- package/resources/views/words.js.map +1 -0
- package/runtime.d.ts +22 -0
- package/runtime.d.ts.map +1 -1
- package/runtime.js +33 -2
- package/runtime.js.map +1 -1
- package/src/auth/auth0.ts +1 -1
- package/src/auth/token.ts +136 -26
- package/src/client/client.ts +23 -16
- package/src/command-tree.ts +152 -0
- package/src/commands/access-history/index.ts +15 -2
- package/src/commands/agent-exec-flags.ts +11 -5
- package/src/commands/apikey/duration.ts +1 -2
- package/src/commands/apikey/index.ts +3 -4
- package/src/commands/apply.ts +3 -22
- package/src/commands/auth/index.ts +7 -5
- package/src/commands/auth/whoami.ts +1 -1
- package/src/commands/config/index.ts +3 -3
- package/src/commands/config/kv.ts +18 -14
- package/src/commands/connect.ts +21 -3
- package/src/commands/download.ts +106 -62
- package/src/commands/eval.ts +22 -21
- package/src/commands/file.ts +80 -0
- package/src/commands/get.ts +19 -13
- package/src/commands/help.ts +182 -0
- package/src/commands/internal-daemon.ts +9 -2
- package/src/commands/list.ts +22 -1
- package/src/commands/logs.ts +1 -1
- package/src/commands/mcp-server.ts +57 -28
- package/src/commands/provider-key/index.ts +192 -0
- package/src/commands/push.ts +8 -8
- package/src/commands/resume.ts +20 -12
- package/src/commands/routine.ts +58 -5
- package/src/commands/run.ts +37 -17
- package/src/commands/runs/approve.ts +13 -4
- package/src/commands/runs/control.ts +50 -27
- package/src/commands/runs/index.ts +1 -2
- package/src/commands/runs/logs.ts +9 -5
- package/src/commands/runs/to-eval-case.ts +18 -6
- package/src/commands/runs/trace.ts +1 -1
- package/src/commands/search.ts +2 -3
- package/src/commands/service-account/index.ts +7 -2
- package/src/commands/session-help.ts +39 -0
- package/src/commands/setup.ts +5 -5
- package/src/commands/shared.ts +32 -3
- package/src/commands/tag.ts +13 -7
- package/src/commands/up.ts +55 -21
- package/src/commands/validate.ts +2 -2
- package/src/commands/version.ts +9 -4
- package/src/config/config.ts +66 -69
- package/src/config/index.ts +1 -2
- package/src/config/keys.ts +4 -4
- package/src/config/paths.ts +2 -2
- package/src/config/resolve.ts +20 -8
- package/src/errors/classify.ts +110 -21
- package/src/errors/command-line.ts +95 -0
- package/src/errors/handle.ts +2 -2
- package/src/errors/index.ts +12 -2
- package/src/errors/usage-error.ts +1 -1
- package/src/global-options.ts +100 -0
- package/src/local/artifact.ts +46 -140
- package/src/local/constants.ts +3 -9
- package/src/local/daemon/components.ts +78 -22
- package/src/local/daemon/env.ts +3 -8
- package/src/local/daemon/host.ts +64 -19
- package/src/local/daemon/index.ts +2 -1
- package/src/local/daemon/launch.ts +251 -72
- package/src/local/daemon/process.ts +78 -46
- package/src/local/daemon/signals.ts +19 -0
- package/src/local/daemon/supervisor.ts +84 -21
- package/src/local/daemon/types.ts +8 -4
- package/src/local/llm-config.ts +15 -9
- package/src/local/logs/view.ts +5 -6
- package/src/local/net/tcp.ts +18 -11
- package/src/local/paths.ts +2 -3
- package/src/local/provider-reach.ts +124 -0
- package/src/local/reset.ts +1 -2
- package/src/local/runtime/index.ts +1 -2
- package/src/local/runtime/node.ts +1 -1
- package/src/local/runtime/runner.ts +2 -2
- package/src/local/runtime/runtimes-install.ts +1 -1
- package/src/local/runtime/server.ts +2 -4
- package/src/local/runtime/which.ts +1 -1
- package/src/local/setup/wizard.ts +7 -5
- package/src/local/state/health-state.ts +10 -2
- package/src/local/state/lock.ts +26 -28
- package/src/local/state/log-rotation.ts +2 -3
- package/src/local/state/pidfile.ts +61 -6
- package/src/local/state/proc.ts +104 -1
- package/src/local/state/startup-config.ts +2 -2
- package/src/local/status.ts +30 -41
- package/src/local/temporal/download.ts +31 -9
- package/src/local/temporal/index.ts +1 -1
- package/src/local/temporal/manager.ts +94 -34
- package/src/local/temporal/supervisor.ts +1 -1
- package/src/local/webconsole/index.ts +8 -5
- package/src/marketplace/github.ts +1 -1
- package/src/marketplace/official.ts +1 -1
- package/src/output/command-result.ts +14 -2
- package/src/output/confirm.ts +2 -3
- package/src/output/format.ts +5 -6
- package/src/output/index.ts +8 -1
- package/src/output/printable.ts +26 -0
- package/src/output/proto.ts +3 -4
- package/src/output/style.ts +2 -2
- package/src/output/table.ts +118 -15
- package/src/program.ts +58 -128
- package/src/registry/aliases.ts +0 -3
- package/src/registry/index.ts +0 -1
- package/src/registry/metadata.ts +16 -64
- package/src/registry/registry.ts +3 -13
- package/src/registry/verb-support.ts +28 -5
- package/src/resources/agent/quality.ts +29 -8
- package/src/resources/agent/resolve.ts +3 -3
- package/src/resources/apply/apply.ts +58 -49
- package/src/resources/apply/handlers.ts +3 -4
- package/src/resources/channel.ts +3 -4
- package/src/resources/connect/connect.ts +2 -2
- package/src/resources/delete.ts +44 -4
- package/src/resources/documents.ts +1 -1
- package/src/resources/download.ts +239 -43
- package/src/resources/eval-run/options.ts +38 -17
- package/src/resources/eval-run/report.ts +11 -5
- package/src/resources/eval-run/run.ts +13 -9
- package/src/resources/file.ts +114 -0
- package/src/resources/get-bindings.ts +18 -0
- package/src/resources/git.ts +1 -1
- package/src/resources/list.ts +178 -34
- package/src/resources/plugin.ts +3 -0
- package/src/resources/provider-key.ts +327 -0
- package/src/resources/reference.ts +41 -85
- package/src/resources/render.ts +72 -38
- package/src/resources/routine.ts +152 -15
- package/src/resources/run/agent-exec.ts +95 -44
- package/src/resources/run/create.ts +27 -24
- package/src/resources/run/engines.ts +57 -0
- package/src/resources/run/environment.ts +43 -0
- package/src/resources/run/epilogue.ts +18 -17
- package/src/resources/run/files.ts +433 -0
- package/src/resources/run/header.ts +18 -18
- package/src/resources/run/prepare.ts +67 -74
- package/src/resources/run/references.ts +6 -5
- package/src/resources/run/resolve.ts +1 -1
- package/src/resources/run/resume.ts +28 -9
- package/src/resources/run/stream.ts +110 -9
- package/src/resources/run/workspace.ts +37 -47
- package/src/resources/run-approve.ts +2 -14
- package/src/resources/run-control.ts +4 -5
- package/src/resources/run-format.ts +3 -4
- package/src/resources/run-logs.ts +17 -6
- package/src/resources/run-scores.ts +14 -4
- package/src/resources/run-to-eval-case.ts +2 -2
- package/src/resources/runs.ts +5 -5
- package/src/resources/search.ts +1 -2
- package/src/resources/service-account.ts +4 -1
- package/src/resources/session.ts +10 -7
- package/src/resources/skill.ts +7 -8
- package/src/resources/stream/answer.ts +3 -19
- package/src/resources/stream/composer.ts +170 -0
- package/src/resources/stream/ink.tsx +74 -10
- package/src/resources/stream/render-plaintext.ts +22 -4
- package/src/resources/stream/tty.ts +1 -1
- package/src/resources/tag.ts +7 -9
- package/src/resources/usage.ts +19 -15
- package/src/resources/validate.ts +1 -10
- package/src/resources/version.ts +117 -15
- package/src/resources/views/agent.ts +60 -0
- package/src/resources/views/environment.ts +41 -0
- package/src/resources/views/index.ts +82 -0
- package/src/resources/views/organization.ts +29 -0
- package/src/resources/views/routine.ts +39 -0
- package/src/resources/views/run.ts +46 -0
- package/src/resources/views/session.ts +91 -0
- package/src/resources/views/skill.ts +49 -0
- package/src/resources/views/view.ts +188 -0
- package/src/resources/views/words.ts +191 -0
- package/src/runtime.ts +51 -2
- package/errors/exit-codes.d.ts +0 -10
- package/errors/exit-codes.d.ts.map +0 -1
- package/errors/exit-codes.js +0 -15
- package/errors/exit-codes.js.map +0 -1
- package/resources/run/attachments.d.ts +0 -24
- package/resources/run/attachments.d.ts.map +0 -1
- package/resources/run/attachments.js +0 -237
- package/resources/run/attachments.js.map +0 -1
- package/src/errors/exit-codes.ts +0 -17
- package/src/resources/run/attachments.ts +0 -300
- package/src/types/marked-terminal.d.ts +0 -31
package/local/llm-config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Typed view over the otherwise-opaque `backend.local` config section, scoped to
|
|
2
|
-
// the LLM settings `setup` writes and
|
|
2
|
+
// the LLM settings `setup` writes and the launcher reads.
|
|
3
3
|
//
|
|
4
4
|
// The config module (config/config.ts) carries `backend.local` through verbatim
|
|
5
5
|
// so the CLI never drops fields it does not model. This module adds a *typed
|
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
// API-key autodetect). Writes merge into a shallow copy of `local`, preserving
|
|
9
9
|
// every sibling key (temporal, execution, …).
|
|
10
10
|
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
11
|
+
// These settings hold the one key `stigmer setup` saves, Anthropic's; they do
|
|
12
|
+
// not say which providers the local runner reaches. The runner also reaches
|
|
13
|
+
// OpenAI by a key in the shell, and Anthropic through a gateway or a cloud
|
|
14
|
+
// backend, none of which `setup` stores. What it reaches is judged by
|
|
15
|
+
// the runner's own rule over the environment the launcher builds
|
|
16
|
+
// (provider-reach.ts), which is what `stigmer status`, `stigmer up`'s card and
|
|
17
|
+
// the server's STIGMER_RUNNER_PROVIDERS read. Two invariants hold:
|
|
14
18
|
//
|
|
15
19
|
// 1. The model registry — not this config — owns the execution model, so
|
|
16
20
|
// there is deliberately NO model field here. A config-level model pin
|
|
@@ -19,9 +23,9 @@
|
|
|
19
23
|
// overrides belong to `stigmer run --model`. Stale `model` keys in
|
|
20
24
|
// existing config files are silently ignored (verbatim carry-through)
|
|
21
25
|
// and cleared by the next `setup` write.
|
|
22
|
-
// 2. `provider` exists to route the
|
|
23
|
-
// select an execution backend
|
|
24
|
-
//
|
|
26
|
+
// 2. `provider` exists to route the saved API key to the runner, not to
|
|
27
|
+
// select an execution backend or to report what the runner reaches;
|
|
28
|
+
// "anthropic" is the only provider whose key `setup` saves.
|
|
25
29
|
function localSection(config) {
|
|
26
30
|
const local = config.backend.local;
|
|
27
31
|
return local !== null && typeof local === "object" ? local : {};
|
|
@@ -31,8 +35,10 @@ export function readLlm(config) {
|
|
|
31
35
|
return localSection(config).llm;
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
|
-
* Detect
|
|
35
|
-
* only
|
|
38
|
+
* Detect the saved-key provider from the environment: ANTHROPIC_API_KEY is the
|
|
39
|
+
* only key this config section routes, so it is the only one that counts here.
|
|
40
|
+
* Other providers' keys reach the runner by inheritance and are judged by the
|
|
41
|
+
* reach rule (provider-reach.ts), not by this.
|
|
36
42
|
*/
|
|
37
43
|
export function detectProviderFromEnv(env = process.env) {
|
|
38
44
|
if (env.ANTHROPIC_API_KEY)
|
package/local/llm-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-config.js","sourceRoot":"","sources":["../src/local/llm-config.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"llm-config.js","sourceRoot":"","sources":["../src/local/llm-config.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,0DAA0D;AAC1D,EAAE;AACF,gFAAgF;AAChF,6EAA6E;AAC7E,yEAAyE;AACzE,2EAA2E;AAC3E,+EAA+E;AAC/E,8CAA8C;AAC9C,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,2EAA2E;AAC3E,sEAAsE;AACtE,iEAAiE;AACjE,+EAA+E;AAC/E,mEAAmE;AACnE,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,wEAAwE;AACxE,8EAA8E;AAC9E,wEAAwE;AACxE,2EAA2E;AAC3E,8CAA8C;AAC9C,0EAA0E;AAC1E,yEAAyE;AACzE,iEAAiE;AAejE,SAAS,YAAY,CAAC,MAAc;IAClC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAE,KAAsB,CAAC,CAAC,CAAC,EAAE,CAAC;AACpF,CAAC;AAED,0CAA0C;AAC1C,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC;AAClC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACxE,IAAI,GAAG,CAAC,iBAAiB;QAAE,OAAO,WAAW,CAAC;IAC9C,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,MAAyB,OAAO,CAAC,GAAG;IAClF,IAAI,GAAG,CAAC,oBAAoB;QAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC;IAC9D,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B,IAAI,GAAG,EAAE,QAAQ;QAAE,OAAO,GAAG,CAAC,QAAQ,CAAC;IACvC,OAAO,qBAAqB,CAAC,GAAG,CAAC,CAAC;AACpC,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,MAAyB,OAAO,CAAC,GAAG;IAChF,IAAI,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,WAAW;QAAE,OAAO,EAAE,CAAC;IAC5D,IAAI,GAAG,CAAC,iBAAiB;QAAE,OAAO,GAAG,CAAC,iBAAiB,CAAC;IACxD,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,IAAI,EAAE,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,MAAc,EAAE,QAAiC;IACtE,MAAM,KAAK,GAAiB,EAAE,GAAG,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IACxD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC,GAAG,CAAC;IACnB,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC;IACvB,CAAC;IACD,OAAO,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC;AAC9D,CAAC"}
|
package/local/logs/view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/local/logs/view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/local/logs/view.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,WAAW,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,EAAE,CAM5D;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEtF;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAMD,4EAA4E;AAC5E,wBAAgB,SAAS,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,CAOnF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,GAAG,EAAE,IAAI,GAAG,YAAY,CAU7E"}
|
package/local/logs/view.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Multi-component log viewing for `stigmer logs`: print a tail snapshot and,
|
|
2
2
|
// optionally, follow appended lines live.
|
|
3
3
|
//
|
|
4
|
-
//
|
|
5
|
-
// components by
|
|
6
|
-
//
|
|
7
|
-
// cannot parse. The
|
|
8
|
-
//
|
|
9
|
-
// in both snapshot and follow modes.
|
|
4
|
+
// The view prefixes every line with its component name (kubectl-style) rather
|
|
5
|
+
// than merging components by each line's timestamp: the server's and runner's
|
|
6
|
+
// log formats differ, and a timestamp parse would silently misorder lines it
|
|
7
|
+
// cannot parse. The prefix needs no format coupling and reads clearly in both
|
|
8
|
+
// snapshot and follow modes.
|
|
10
9
|
import { join } from "node:path";
|
|
11
10
|
import { followFile, tailLines } from "./tail.js";
|
|
12
11
|
/** The components whose logs the daemon writes, in dependency order. */
|
package/local/logs/view.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../src/local/logs/view.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,0CAA0C;AAC1C,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../src/local/logs/view.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,0CAA0C;AAC1C,EAAE;AACF,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,6BAA6B;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAqB,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAOrE,wEAAwE;AACxE,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO;QACL,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAAE;QACpE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE;QACpD,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE;KACzD,CAAC;AACJ,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,IAAY;IAC1D,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AAC5E,CAAC;AAMD,SAAS,MAAM,CAAC,IAAY,EAAE,IAAY,EAAE,MAAe;IACzD,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC;AACtD,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,SAAS,CAAC,UAA0B,EAAE,IAAY,EAAE,GAAS;IAC3E,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;IACrC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;YACnD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,UAA0B,EAAE,GAAS;IAC7D,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAC3C,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACtF,CAAC;IACF,OAAO;QACL,IAAI;YACF,KAAK,MAAM,MAAM,IAAI,OAAO;gBAAE,MAAM,CAAC,IAAI,EAAE,CAAC;QAC9C,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/local/net/tcp.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/** Attempt a single TCP connection; resolves true if it connects in time. */
|
|
2
2
|
export declare function tcpConnects(port: number, host?: string, timeoutMs?: number): Promise<boolean>;
|
|
3
|
+
/** How a watched process ended. */
|
|
4
|
+
export interface ProcessExit {
|
|
5
|
+
code: number | null;
|
|
6
|
+
signal: NodeJS.Signals | null;
|
|
7
|
+
}
|
|
3
8
|
export interface WaitForTcpOptions {
|
|
4
9
|
port: number;
|
|
5
10
|
host?: string;
|
|
@@ -9,15 +14,12 @@ export interface WaitForTcpOptions {
|
|
|
9
14
|
pollMs?: number;
|
|
10
15
|
/** If provided and it returns non-null, the watched process has exited — fail
|
|
11
16
|
* immediately rather than waiting out the deadline. */
|
|
12
|
-
getExit?: () =>
|
|
13
|
-
code: number | null;
|
|
14
|
-
signal: NodeJS.Signals | null;
|
|
15
|
-
} | null;
|
|
16
|
-
/** Diagnostic log tail, appended to the failure message. */
|
|
17
|
-
getLog?: () => string;
|
|
17
|
+
getExit?: () => ProcessExit | null;
|
|
18
18
|
/** Human label for the thing being awaited (used in error text). */
|
|
19
19
|
label?: string;
|
|
20
20
|
}
|
|
21
21
|
/** Poll a TCP port until it accepts a connection or the deadline passes. */
|
|
22
22
|
export declare function waitForTcp(options: WaitForTcpOptions): Promise<void>;
|
|
23
|
+
/** How a process ended, as a person would say it: "exited with code 1". */
|
|
24
|
+
export declare function describeExit(exit: ProcessExit): string;
|
|
23
25
|
//# sourceMappingURL=tcp.d.ts.map
|
package/local/net/tcp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcp.d.ts","sourceRoot":"","sources":["../../src/local/net/tcp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tcp.d.ts","sourceRoot":"","sources":["../../src/local/net/tcp.ts"],"names":[],"mappings":"AAaA,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAc,EAAE,SAAS,SAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAc/F;AAED,mCAAmC;AACnC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;2DACuD;IACvD,OAAO,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;IACnC,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,4EAA4E;AAC5E,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAa1E;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAItD"}
|
package/local/net/tcp.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// manager and the server gate.
|
|
3
3
|
//
|
|
4
4
|
// A single short-lived connection attempt tells us whether something is
|
|
5
|
-
// listening; waitForTcp loops that probe until a deadline, failing fast
|
|
6
|
-
//
|
|
5
|
+
// listening; waitForTcp loops that probe until a deadline, failing fast, with
|
|
6
|
+
// how it ended, if the process under watch exits first. Its output is the
|
|
7
|
+
// caller's to keep beside the error, as data (the daemon's health snapshot). This mirrors
|
|
7
8
|
// `test/support/src/temporal.ts` so the CLI and the harnesses share
|
|
8
9
|
// one readiness model.
|
|
9
10
|
import { connect } from "node:net";
|
|
@@ -27,21 +28,25 @@ export function tcpConnects(port, host = "127.0.0.1", timeoutMs = 200) {
|
|
|
27
28
|
}
|
|
28
29
|
/** Poll a TCP port until it accepts a connection or the deadline passes. */
|
|
29
30
|
export async function waitForTcp(options) {
|
|
30
|
-
const { port, host = "127.0.0.1", timeoutMs = 30_000, pollMs = 150, getExit,
|
|
31
|
+
const { port, host = "127.0.0.1", timeoutMs = 30_000, pollMs = 150, getExit, label = `port ${port}` } = options;
|
|
31
32
|
const deadline = Date.now() + timeoutMs;
|
|
32
33
|
while (Date.now() < deadline) {
|
|
33
34
|
const exit = getExit?.();
|
|
34
35
|
if (exit != null) {
|
|
35
|
-
throw new Error(`${label}
|
|
36
|
+
throw new Error(`${label} ${describeExit(exit)} before it was ready`);
|
|
36
37
|
}
|
|
37
38
|
if (await tcpConnects(port, host))
|
|
38
39
|
return;
|
|
39
40
|
await delay(pollMs);
|
|
40
41
|
}
|
|
41
|
-
throw new Error(`${label} did not become ready within ${timeoutMs}ms
|
|
42
|
+
throw new Error(`${label} did not become ready within ${timeoutMs}ms`);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
/** How a process ended, as a person would say it: "exited with code 1". */
|
|
45
|
+
export function describeExit(exit) {
|
|
46
|
+
if (exit.code !== null)
|
|
47
|
+
return `exited with code ${exit.code}`;
|
|
48
|
+
if (exit.signal !== null)
|
|
49
|
+
return `was stopped by ${exit.signal}`;
|
|
50
|
+
return "exited";
|
|
46
51
|
}
|
|
47
52
|
//# sourceMappingURL=tcp.js.map
|
package/local/net/tcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcp.js","sourceRoot":"","sources":["../../src/local/net/tcp.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+BAA+B;AAC/B,EAAE;AACF,wEAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"tcp.js","sourceRoot":"","sources":["../../src/local/net/tcp.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+BAA+B;AAC/B,EAAE;AACF,wEAAwE;AACxE,8EAA8E;AAC9E,0EAA0E;AAC1E,0FAA0F;AAC1F,oEAAoE;AACpE,uBAAuB;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE3D,6EAA6E;AAC7E,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,IAAI,GAAG,WAAW,EAAE,SAAS,GAAG,GAAG;IAC3E,OAAO,IAAI,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE;QACtC,MAAM,MAAM,GAAG,OAAO,CA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OAAO;QAC1C,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,gCAAgC,SAAS,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,YAAY,CAAC,IAAiB;IAC5C,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,oBAAoB,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/D,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI;QAAE,OAAO,kBAAkB,IAAI,CAAC,MAAM,EAAE,CAAC;IACjE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/local/paths.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare function runtimesDir(home?: string, env?: NodeJS.ProcessEnv): str
|
|
|
36
36
|
/** Temporal dev-server data directory (~/.stigmer/temporal-data). */
|
|
37
37
|
export declare function temporalDataDir(home?: string): string;
|
|
38
38
|
/** Temporal PID file (~/.stigmer/temporal.pid). Lives in the config dir, not
|
|
39
|
-
* the data dir
|
|
39
|
+
* the data dir, beside the rest of Temporal's files. */
|
|
40
40
|
export declare function temporalPidFile(home?: string): string;
|
|
41
41
|
/** Temporal single-instance lock file (~/.stigmer/temporal.lock). */
|
|
42
42
|
export declare function temporalLockFile(home?: string): string;
|
package/local/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/local/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/local/paths.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAE9B,0EAA0E;AAC1E,wBAAgB,MAAM,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEvD;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAE7D;AAED,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAE5D;AAED,kFAAkF;AAClF,wBAAgB,MAAM,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEvD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AAEvD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAkB,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAIlG;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEhE;AAED;wDACwD;AACxD,wBAAgB,eAAe,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEhE;AAED,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEjE;AAED,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAE7D;AAED,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAkB,GAAG,MAAM,CAE5D"}
|
package/local/paths.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Filesystem layout for the local stack, built on the CLI's config paths.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
// preserves it exactly:
|
|
3
|
+
// State is split across two roots:
|
|
5
4
|
// - the *data dir* (~/.stigmer/data) holds daemon/server/runner PID + state +
|
|
6
5
|
// logs + the runner workspace;
|
|
7
6
|
// - the *config dir* (~/.stigmer) holds config.yaml, the SQLite db, and the
|
|
@@ -64,7 +63,7 @@ export function temporalDataDir(home = homedir()) {
|
|
|
64
63
|
return join(configDir(home), "temporal-data");
|
|
65
64
|
}
|
|
66
65
|
/** Temporal PID file (~/.stigmer/temporal.pid). Lives in the config dir, not
|
|
67
|
-
* the data dir
|
|
66
|
+
* the data dir, beside the rest of Temporal's files. */
|
|
68
67
|
export function temporalPidFile(home = homedir()) {
|
|
69
68
|
return join(configDir(home), "temporal.pid");
|
|
70
69
|
}
|
package/local/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/local/paths.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/local/paths.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,EAAE;AACF,mCAAmC;AACnC,gFAAgF;AAChF,mCAAmC;AACnC,8EAA8E;AAC9E,iCAAiC;AACjC,4EAA4E;AAC5E,4EAA4E;AAC5E,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAE9B,0EAA0E;AAC1E,MAAM,UAAU,MAAM,CAAC,OAAe,OAAO,EAAE;IAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,YAAY,CAAC,OAAe,OAAO,EAAE;IACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe,OAAO,EAAE;IAClD,O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UAAU,WAAW,CAAC,OAAe,OAAO,EAAE;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** The model providers a runner can reach, in the order they are reported. */
|
|
2
|
+
export declare const REACHABLE_PROVIDERS: readonly ["anthropic", "openai"];
|
|
3
|
+
export type ReachableProvider = (typeof REACHABLE_PROVIDERS)[number];
|
|
4
|
+
/** How a provider is reached: its own key, a gateway, a cloud backend, or a proxy. */
|
|
5
|
+
export type ProviderRoute = "key" | "gateway" | "vertex" | "bedrock" | "foundry" | "proxy";
|
|
6
|
+
export interface ProviderReach {
|
|
7
|
+
readonly provider: ReachableProvider;
|
|
8
|
+
readonly via: ProviderRoute;
|
|
9
|
+
}
|
|
10
|
+
/** The environment the rule reads; `process.env` and a launcher's built env both fit. */
|
|
11
|
+
export type ReachEnv = Readonly<Record<string, string | undefined>>;
|
|
12
|
+
/** The providers the runner with environment `env` reaches, in {@link REACHABLE_PROVIDERS} order. */
|
|
13
|
+
export declare function providerReach(env: ReachEnv): readonly ProviderReach[];
|
|
14
|
+
/** The setting's value for a reach: the providers' names, comma-separated (`"anthropic,openai"`). */
|
|
15
|
+
export declare function runnerProvidersValue(reach: readonly ProviderReach[]): string;
|
|
16
|
+
/** A reach for a person to read: `anthropic (vertex), openai (key)`, or `""` when it is empty. */
|
|
17
|
+
export declare function describeReach(reach: readonly ProviderReach[]): string;
|
|
18
|
+
//# sourceMappingURL=provider-reach.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-reach.d.ts","sourceRoot":"","sources":["../src/local/provider-reach.ts"],"names":[],"mappings":"AAgBA,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,kCAAmC,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,sFAAsF;AACtF,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3F,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;CAC7B;AAED,yFAAyF;AACzF,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;AAKpE,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS,aAAa,EAAE,CAqBrE;AAED,qGAAqG;AACrG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,MAAM,CAE5E;AAED,kGAAkG;AAClG,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,MAAM,CAErE"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Which model providers the local runner reaches, and how, judged from the
|
|
2
|
+
// environment `stigmer up` builds for it: the CLI's copy of the runner's rule
|
|
3
|
+
// (backend/services/runner/src/shared/provider-reach.ts, whose header gives
|
|
4
|
+
// every arm and the runner code each one mirrors).
|
|
5
|
+
//
|
|
6
|
+
// The CLI depends on neither the runner nor the server, so it keeps this copy
|
|
7
|
+
// rather than importing the runner's; the runner's
|
|
8
|
+
// `shared/__tests__/provider-reach.test.ts` loads this file from source
|
|
9
|
+
// by path and holds the two equal over a matrix of environments. It imports
|
|
10
|
+
// nothing, so that test can load it without following any CLI import.
|
|
11
|
+
//
|
|
12
|
+
// Two places read it: the daemon, which hands the server the providers its
|
|
13
|
+
// runner reaches (STIGMER_RUNNER_PROVIDERS, so a run that needs a provider the
|
|
14
|
+
// laptop lacks is refused at create, stigmer#1084), and the faces that tell a
|
|
15
|
+
// person whether agents can run (`stigmer up`'s card, `stigmer status`).
|
|
16
|
+
/** The model providers a runner can reach, in the order they are reported. */
|
|
17
|
+
export const REACHABLE_PROVIDERS = ["anthropic", "openai"];
|
|
18
|
+
const ANTHROPIC_BACKENDS = ["public", "vertex", "bedrock", "foundry"];
|
|
19
|
+
/** The providers the runner with environment `env` reaches, in {@link REACHABLE_PROVIDERS} order. */
|
|
20
|
+
export function providerReach(env) {
|
|
21
|
+
if (filled(env.STIGMER_PROXY_ENDPOINT)) {
|
|
22
|
+
return REACHABLE_PROVIDERS.map((provider) => ({ provider, via: "proxy" }));
|
|
23
|
+
}
|
|
24
|
+
const anthropicBackend = backendOf(env.STIGMER_ANTHROPIC_BACKEND, ANTHROPIC_BACKENDS);
|
|
25
|
+
const openAiBackend = backendOf(env.STIGMER_OPENAI_BACKEND, ["public"]);
|
|
26
|
+
const baseUrl = baseUrlOf(env.ANTHROPIC_BASE_URL);
|
|
27
|
+
if (anthropicBackend === null || openAiBackend === null || baseUrl === null)
|
|
28
|
+
return [];
|
|
29
|
+
if (!prerequisitesMet(anthropicBackend, env))
|
|
30
|
+
return [];
|
|
31
|
+
const reach = [];
|
|
32
|
+
if (anthropicBackend !== "public") {
|
|
33
|
+
reach.push({ provider: "anthropic", via: anthropicBackend });
|
|
34
|
+
}
|
|
35
|
+
else if (baseUrl !== "") {
|
|
36
|
+
reach.push({ provider: "anthropic", via: "gateway" });
|
|
37
|
+
}
|
|
38
|
+
else if (filled(env.ANTHROPIC_API_KEY)) {
|
|
39
|
+
reach.push({ provider: "anthropic", via: "key" });
|
|
40
|
+
}
|
|
41
|
+
if (filled(env.OPENAI_API_KEY))
|
|
42
|
+
reach.push({ provider: "openai", via: "key" });
|
|
43
|
+
return reach;
|
|
44
|
+
}
|
|
45
|
+
/** The setting's value for a reach: the providers' names, comma-separated (`"anthropic,openai"`). */
|
|
46
|
+
export function runnerProvidersValue(reach) {
|
|
47
|
+
return reach.map((entry) => entry.provider).join(",");
|
|
48
|
+
}
|
|
49
|
+
/** A reach for a person to read: `anthropic (vertex), openai (key)`, or `""` when it is empty. */
|
|
50
|
+
export function describeReach(reach) {
|
|
51
|
+
return reach.map((entry) => `${entry.provider} (${entry.via})`).join(", ");
|
|
52
|
+
}
|
|
53
|
+
/** Non-blank after trimming. */
|
|
54
|
+
function filled(value) {
|
|
55
|
+
return (value?.trim() ?? "") !== "";
|
|
56
|
+
}
|
|
57
|
+
/** A backend variable's value (unset or blank: `public`), or null when the runner refuses it. */
|
|
58
|
+
function backendOf(raw, supported) {
|
|
59
|
+
const value = raw?.trim().toLowerCase() ?? "";
|
|
60
|
+
if (value === "")
|
|
61
|
+
return "public";
|
|
62
|
+
return supported.includes(value) ? value : null;
|
|
63
|
+
}
|
|
64
|
+
/** `ANTHROPIC_BASE_URL` trimmed (`""` when unset or blank), or null when it is not an http(s) URL. */
|
|
65
|
+
function baseUrlOf(raw) {
|
|
66
|
+
const value = raw?.trim() ?? "";
|
|
67
|
+
if (value === "")
|
|
68
|
+
return "";
|
|
69
|
+
let url;
|
|
70
|
+
try {
|
|
71
|
+
url = new URL(value);
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
url = undefined;
|
|
75
|
+
}
|
|
76
|
+
if (url === undefined || (url.protocol !== "http:" && url.protocol !== "https:"))
|
|
77
|
+
return null;
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
/** Whether a non-public backend's boot prerequisites hold (`check*Prerequisites` in the runner's `llm-backend.ts`). */
|
|
81
|
+
function prerequisitesMet(backend, env) {
|
|
82
|
+
switch (backend) {
|
|
83
|
+
case "public":
|
|
84
|
+
return true;
|
|
85
|
+
case "vertex":
|
|
86
|
+
return filled(env.CLOUD_ML_REGION);
|
|
87
|
+
case "bedrock":
|
|
88
|
+
return filled(env.AWS_REGION) && modelMapValid(env.STIGMER_BEDROCK_MODEL_MAP);
|
|
89
|
+
case "foundry":
|
|
90
|
+
return (filled(env.ANTHROPIC_FOUNDRY_RESOURCE) !== filled(env.ANTHROPIC_FOUNDRY_BASE_URL) &&
|
|
91
|
+
modelMapValid(env.STIGMER_FOUNDRY_DEPLOYMENT_MAP));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/** Whether an override map parses: comma-separated `canonical=target` pairs, blank entries skipped. */
|
|
95
|
+
function modelMapValid(raw) {
|
|
96
|
+
const trimmed = raw?.trim();
|
|
97
|
+
if (!trimmed)
|
|
98
|
+
return true;
|
|
99
|
+
for (const entry of trimmed.split(",")) {
|
|
100
|
+
const pair = entry.trim();
|
|
101
|
+
if (pair === "")
|
|
102
|
+
continue;
|
|
103
|
+
const eq = pair.indexOf("=");
|
|
104
|
+
if (eq === -1 || pair.slice(0, eq).trim() === "" || pair.slice(eq + 1).trim() === "")
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=provider-reach.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-reach.js","sourceRoot":"","sources":["../src/local/provider-reach.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,8EAA8E;AAC9E,4EAA4E;AAC5E,mDAAmD;AACnD,EAAE;AACF,8EAA8E;AAC9E,mDAAmD;AACnD,wEAAwE;AACxE,4EAA4E;AAC5E,sEAAsE;AACtE,EAAE;AACF,2EAA2E;AAC3E,+EAA+E;AAC/E,8EAA8E;AAC9E,yEAAyE;AAEzE,8EAA8E;AAC9E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAU,CAAC;AAepE,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAG/E,qGAAqG;AACrG,MAAM,UAAU,aAAa,CAAC,GAAa;IACzC,IAAI,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACvC,OAAO,mBAAmB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,C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,EAAE,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;IACrG,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/local/reset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../src/local/reset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../src/local/reset.ts"],"names":[],"mappings":"AAuBA,MAAM,WAAW,YAAY;IAC3B,yEAAyE;IACzE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,WAAW;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;0EAC0E;AAC1E,MAAM,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAQxD,2EAA2E;AAC3E,wBAAsB,KAAK,CACzB,OAAO,GAAE,YAAiB,EAC1B,IAAI,GAAE,MAAkB,EACxB,IAAI,GAAE,MAAoB,GACzB,OAAO,CAAC,WAAW,CAAC,CAwCtB"}
|
package/local/reset.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// next `up` starts from a clean slate. Configuration (config.yaml) is preserved
|
|
3
3
|
// by default so users do not lose API keys; `includeConfig` removes it too.
|
|
4
4
|
//
|
|
5
|
-
// The set of removed paths
|
|
6
|
-
// both roots of the `~/.stigmer` layout (the SQLite db + Temporal state under
|
|
5
|
+
// The set of removed paths spans both roots of the `~/.stigmer` layout (the SQLite db + Temporal state under
|
|
7
6
|
// the config dir, and everything under the data dir).
|
|
8
7
|
import { existsSync, rmSync } from "node:fs";
|
|
9
8
|
import { homedir } from "node:os";
|
package/local/reset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset.js","sourceRoot":"","sources":["../src/local/reset.ts"],"names":[],"mappings":"AAAA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BAAgB,EACrB,aAAa,EACb,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/local/runtime/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,aAAa,EACb,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,KAAK,mBAAmB,EACxB,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
package/local/runtime/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Public surface of the runtime-acquisition seams.
|
|
2
2
|
export { resolveNode, resolveServerNode } from "./node.js";
|
|
3
3
|
export { acquireRunner, ensureRunner, resolveRunner, } from "./runner.js";
|
|
4
|
-
// The
|
|
5
|
-
// backed rollback retired with the Go server).
|
|
4
|
+
// The server.
|
|
6
5
|
export { acquireServer, ensureServer, resolveServerTs, } from "./server.js";
|
|
7
6
|
export { which } from "./which.js";
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/local/runtime/index.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAGL,aAAa,EACb,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/local/runtime/index.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAGL,aAAa,EACb,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,cAAc;AACd,OAAO,EAEL,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
package/local/runtime/node.js
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
// guidance instead of a subprocess crash.
|
|
32
32
|
import { execFileSync } from "node:child_process";
|
|
33
33
|
import { CliExitError } from "../../errors/cli-exit-error.js";
|
|
34
|
-
import { ExitCode } from "
|
|
34
|
+
import { ExitCode } from "@stigmer/client/exit-codes";
|
|
35
35
|
// Exits 0 when the binary provides `node:sqlite`, 1 otherwise.
|
|
36
36
|
//
|
|
37
37
|
// Probe notes (each verified against real binaries; do not "simplify"):
|
package/local/runtime/runner.js
CHANGED
|
@@ -21,7 +21,7 @@ import { homedir } from "node:os";
|
|
|
21
21
|
import { dirname, join } from "node:path";
|
|
22
22
|
import { fileURLToPath } from "node:url";
|
|
23
23
|
import { CliExitError } from "../../errors/cli-exit-error.js";
|
|
24
|
-
import { ExitCode } from "
|
|
24
|
+
import { ExitCode } from "@stigmer/client/exit-codes";
|
|
25
25
|
import { log } from "../../logger.js";
|
|
26
26
|
import { VERSION } from "../../version.js";
|
|
27
27
|
import { runtimesDir } from "../paths.js";
|
|
@@ -105,7 +105,7 @@ function resolveBuiltRunner(appDir, node) {
|
|
|
105
105
|
const entryPath = join(appDir, "dist", "main.js");
|
|
106
106
|
if (!existsSync(entryPath)) {
|
|
107
107
|
throw new CliExitError(`runner not built: ${entryPath} is missing`, ExitCode.General, [
|
|
108
|
-
"Build it with:
|
|
108
|
+
"Build it with: make build-runner",
|
|
109
109
|
"The runner must be compiled — it cannot run from source via tsx (Temporal",
|
|
110
110
|
"workflow bundling fails on raw-.ts proto stubs).",
|
|
111
111
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sour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EAAE,MAAM,EAAE,CAAC;AAChD,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IACjC,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,8EAA8E;AAC9E,SAAS,QAAQ;IACf,IAAI,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;YAAE,OAAO,GAAG,CAAC;QACvF,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,MAAM,KAAK,GAAG;YAAE,MAAM;QAC1B,GAAG,GAAG,MAAM,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
|
8
8
|
import { join } from "node:path";
|
|
9
9
|
import { isReleaseVersion } from "@stigmer/plugin-package/client";
|
|
10
10
|
import { CliExitError } from "../../errors/cli-exit-error.js";
|
|
11
|
-
import { ExitCode } from "
|
|
11
|
+
import { ExitCode } from "@stigmer/client/exit-codes";
|
|
12
12
|
/**
|
|
13
13
|
* Ensure the per-version install root exists with a stable package.json.
|
|
14
14
|
* A stable root makes installs deterministic and records the pinned
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/local/runtime/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/local/runtime/server.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAI/B,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,yDAAyD;IACzD,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,GAAE,mBAAwB,GAAG,YAAY,CAKzE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,IAAI,GAAE,MAAM,MAA0B,GACrC,YAAY,GAAG,IAAI,CAqBrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,IAAI,GAAE,mBAAwB,GAAG,YAAY,CAmD1E"}
|
package/local/runtime/server.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
// Resolution and on-demand acquisition of the stigmer server
|
|
2
|
-
// TypeScript implementation (the Go binary ladder that backed rollback
|
|
3
|
-
// retired with the Go server).
|
|
1
|
+
// Resolution and on-demand acquisition of the stigmer server.
|
|
4
2
|
//
|
|
5
3
|
// The server is launched exactly like the runner: a compiled `node main.js`,
|
|
6
4
|
// never `tsx src/main.ts` (the workers bundle Temporal workflows on boot in
|
|
@@ -20,7 +18,7 @@ import { homedir } from "node:os";
|
|
|
20
18
|
import { dirname, join } from "node:path";
|
|
21
19
|
import { fileURLToPath } from "node:url";
|
|
22
20
|
import { CliExitError } from "../../errors/cli-exit-error.js";
|
|
23
|
-
import { ExitCode } from "
|
|
21
|
+
import { ExitCode } from "@stigmer/client/exit-codes";
|
|
24
22
|
import { log } from "../../logger.js";
|
|
25
23
|
import { VERSION } from "../../version.js";
|
|
26
24
|
import { runtimesDir } from "../paths.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/local/runtime/server.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/local/runtime/server.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,4EAA4E;AAC5E,wEAAwE;AACxE,EAAE;AACF,oBAAoB;AACpB,yEAAyE;AACzE,iDAAiD;AACjD,2DAA2D;AAC3D,sEAAsE;AACtE,2EAA2E;AAC3E,qEAAqE;AACrE,wEAAwE;AAExE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GAEvB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAY5C;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,OAA4B,EAAE;IACzD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,iBAAiB,CAAC;IAC5C,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACpC,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IACjC,OA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SAAS,aAAa,EAC9C,QAAQ,CAAC,OAAO,EAChB;YACE,kCAAkC;YAClC,sEAAsE;YACtE,gEAAgE;YAChE,yEAAyE;YACzE,yEAAyE;YACzE,eAAe;SAChB,CACF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AAChD,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IACjC,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,4EAA4E;AAC5E,SAAS,QAAQ;IACf,IAAI,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,IACE,UAAU,CACR,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,CAAC,CACnE;YAED,OAAO,GAAG,CAAC;QACb,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,MAAM,KAAK,GAAG;YAAE,MAAM;QAC1B,GAAG,GAAG,MAAM,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/local/runtime/which.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"which.js","sourceRoot":"","sources":["../../src/local/runtime/which.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"which.js","sourceRoot":"","sources":["../../src/local/runtime/which.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,2EAA2E;AAC3E,4EAA4E;AAE5E,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE7D,oEAAoE;AACpE,MAAM,UAAU,KAAK,CAAC,IAAY;IAChC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3C,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1C,CAAC;IACD,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;IAClF,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;QAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClC,IAAI,YAAY,CAAC,SAAS,CAAC;YAAE,OAAO,SAAS,CAAC;IAChD,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,IAAI,CAAC;QACH,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/local/setup/wizard.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { type OperatorSettings } from "../operator-config.js";
|
|
|
5
5
|
* The providers `stigmer setup` accepts. This is the single source of truth
|
|
6
6
|
* for the CLI's local-provider surface — `setup --provider` validates against
|
|
7
7
|
* it and a regression test pins it, because every entry here promises an
|
|
8
|
-
* execution path the
|
|
8
|
+
* execution path the Stigmer harness must actually serve.
|
|
9
9
|
*/
|
|
10
10
|
export declare const PROVIDER_CHOICES: readonly ["anthropic", "skip"];
|
|
11
11
|
export type ProviderChoice = (typeof PROVIDER_CHOICES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../src/local/setup/wizard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../src/local/setup/wizard.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,WAAW,EAAU,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,uBAAuB,CAAC;AAG/B;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,gCAAiC,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,GAAE,eAAoB,GAAG,WAAW,GAAG,SAAS,CAK/G;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAE,eAAoB,GAAG,MAAM,CAExG;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAShG;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGzF;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBhH"}
|