@stigmer/cli 0.1.0-dev.20261017064309.g94d062a29f89 → 0.1.1
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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// The keys and commands of the live session `stigmer run` and `stigmer
|
|
2
|
+
// resume` open on a terminal, as both commands' help prints them (and the
|
|
3
|
+
// generated command pages with it). The commands themselves are the
|
|
4
|
+
// composer's (resources/stream/composer.ts); this is their words, kept light
|
|
5
|
+
// so `--help` loads no part of the session view.
|
|
6
|
+
/** What `--help` says about how a run returns and the code it exits with. */
|
|
7
|
+
export const UNTIL_HELP = `
|
|
8
|
+
How it ends:
|
|
9
|
+
On a terminal the session stays open for follow-ups until you leave
|
|
10
|
+
(--until exit, the default); --until turn returns when the turn ends.
|
|
11
|
+
Off a terminal, and with -o json, it returns when the turn ends.
|
|
12
|
+
|
|
13
|
+
Exit codes (the newest turn's):
|
|
14
|
+
0 the turn completed
|
|
15
|
+
1 the turn failed, was cancelled or was stopped
|
|
16
|
+
130 you left while the turn still works
|
|
17
|
+
`;
|
|
18
|
+
/** What `--help` says about the session a terminal opens. */
|
|
19
|
+
export const SESSION_HELP = `
|
|
20
|
+
In the session (on a terminal):
|
|
21
|
+
Enter send the message
|
|
22
|
+
\\ Enter, Ctrl+J, Alt+Enter start a new line (Shift+Enter where the terminal reports it)
|
|
23
|
+
Up, Down earlier messages, kept per directory
|
|
24
|
+
Esc stop the agent's turn; twice while it stops, end it now
|
|
25
|
+
Ctrl+C clear the message; on an empty one, twice to leave
|
|
26
|
+
(the agent keeps working: come back with stigmer resume)
|
|
27
|
+
Shift+Tab, Ctrl+T switch plan and agent mode
|
|
28
|
+
Ctrl+O expand tool calls and thinking
|
|
29
|
+
? list the keys and commands
|
|
30
|
+
|
|
31
|
+
Commands:
|
|
32
|
+
/help list the commands and keys
|
|
33
|
+
/mode plan|agent switch the mode
|
|
34
|
+
/stop stop the agent's turn
|
|
35
|
+
/exit leave; the agent keeps working
|
|
36
|
+
@<path> mention a file in the session's folder
|
|
37
|
+
`;
|
|
38
|
+
//# sourceMappingURL=session-help.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-help.js","sourceRoot":"","sources":["../src/commands/session-help.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,0EAA0E;AAC1E,oEAAoE;AACpE,6EAA6E;AAC7E,iDAAiD;AAEjD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAG;;;;;;;;;;CAUzB,CAAC;AAEF,6DAA6D;AAC7D,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;CAkB3B,CAAC"}
|
package/commands/setup.js
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
// the LLM section untouched, and vice versa. Writes land under
|
|
9
9
|
// backend.local.llm / backend.local.operator, preserving every other config
|
|
10
10
|
// field. The valid provider set is owned by wizard.ts's PROVIDER_CHOICES
|
|
11
|
-
// (Anthropic
|
|
11
|
+
// (Anthropic + skip: the key setup saves; the runner reaches other providers
|
|
12
|
+
// by keys exported in the shell, local/provider-reach.ts).
|
|
12
13
|
//
|
|
13
14
|
// Setup deliberately has NO model concept: the platform model registry owns
|
|
14
15
|
// the execution default, and per-run overrides belong to `stigmer run
|
|
15
|
-
// --model`. A setup-level pin
|
|
16
|
-
// (oss#314)
|
|
17
|
-
// that bug class, so it is structurally gone rather than wired up.
|
|
16
|
+
// --model`. A setup-level pin would look authoritative and reach no
|
|
17
|
+
// execution (oss#314), so setup has none.
|
|
18
18
|
import { homedir } from "node:os";
|
|
19
19
|
import { CommandResult, renderResult } from "../output/index.js";
|
|
20
20
|
import { addResultFlags, resultFormat } from "./shared.js";
|
|
@@ -34,7 +34,7 @@ async function runSetup(options) {
|
|
|
34
34
|
const { PROVIDER_CHOICES, applyChoice, applyOperatorIdentity, runInteractiveWizard } = await import("../local/setup/wizard.js");
|
|
35
35
|
const { isRunning } = await import("../local/daemon/launch.js");
|
|
36
36
|
const { CliExitError } = await import("../errors/cli-exit-error.js");
|
|
37
|
-
const { ExitCode } = await import("
|
|
37
|
+
const { ExitCode } = await import("@stigmer/client/exit-codes");
|
|
38
38
|
const config = load();
|
|
39
39
|
const nonInteractive = options.provider !== undefined ||
|
|
40
40
|
options.operatorEmail !== undefined ||
|
package/commands/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/commands/setup.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,wDAAwD;AACxD,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,2EAA2E;AAC3E,2EAA2E;AAC3E,+DAA+D;AAC/D,4EAA4E;AAC5E,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,KAAK,EAAE,CAAC;gBACf,iEAAiE;gBACjE,MAAM,IAAI,YAAY,CACpB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACtD,QAAQ,CAAC,KAAK,CACf,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,MAAM,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,CAAC;IAEd,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC5D,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC9D,CAAC;IACD,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
package/commands/shared.d.ts
CHANGED
|
@@ -2,14 +2,22 @@ import type { Command } from "commander";
|
|
|
2
2
|
import { type CommandClass, type OutputFlags, type OutputFormat } from "../output/index.js";
|
|
3
3
|
/** Add read-verb output flags: `-o/--output {table,json,yaml}` plus `--json`. */
|
|
4
4
|
export declare function addReadFlags(command: Command): Command;
|
|
5
|
-
/** Add mutating-command output flags: `--json` and `--quiet`. */
|
|
5
|
+
/** Add mutating-command output flags: `-o/--output {table,json}`, `--json` and `--quiet`. */
|
|
6
6
|
export declare function addResultFlags(command: Command): Command;
|
|
7
|
+
/** Add output flags for a command whose answer is a bare value: `-o/--output {table,json}` and `--json`. */
|
|
8
|
+
export declare function addValueFlags(command: Command): Command;
|
|
9
|
+
/** Add streaming-command output flags: `-o/--output {table,json,ndjson}` and `--json`. */
|
|
10
|
+
export declare function addStreamFlags(command: Command, json?: string): Command;
|
|
11
|
+
/** Resolve the output format for a streaming command from parsed options. */
|
|
12
|
+
export declare function streamFormat(options: OutputFlags): OutputFormat;
|
|
7
13
|
/** Resolve the output format for a read verb from parsed options. */
|
|
8
14
|
export declare function readFormat(options: OutputFlags): OutputFormat;
|
|
9
15
|
/** Resolve the output format for a mutating command from parsed options. */
|
|
10
16
|
export declare function resultFormat(options: OutputFlags): OutputFormat;
|
|
11
17
|
/** Resolve any command class's format (escape hatch for non-standard verbs). */
|
|
12
18
|
export declare function formatFor(options: OutputFlags, commandClass: CommandClass): OutputFormat;
|
|
13
|
-
/** Read the
|
|
19
|
+
/** Read the global `--org` flag from within a subcommand action, written before or after the command. */
|
|
14
20
|
export declare function globalOrg(command: Command): string | undefined;
|
|
21
|
+
/** `--until`'s value for `run` and `resume`: "exit" when absent; anything but turn or exit is refused. */
|
|
22
|
+
export declare function untilOf(raw: string | undefined): "turn" | "exit";
|
|
15
23
|
//# sourceMappingURL=shared.d.ts.map
|
package/commands/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/commands/shared.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/commands/shared.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAiB,MAAM,oBAAoB,CAAC;AAE3G,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAItD;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAKxD;AAED,4GAA4G;AAC5G,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAIvD;AAED,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,SAA4C,GAAG,OAAO,CAI1G;AAED,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAE/D;AAED,qEAAqE;AACrE,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAE7D;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAE/D;AAED,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,GAAG,YAAY,CAExF;AAED,yGAAyG;AACzG,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG9D;AAED,0GAA0G;AAC1G,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAIhE"}
|
package/commands/shared.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Shared commander wiring for output flags. Keeps the unified output model
|
|
2
2
|
// (src/output/format.ts) consistent across every command and out of the
|
|
3
3
|
// individual handlers.
|
|
4
|
+
import { UsageError } from "../errors/usage-error.js";
|
|
5
|
+
import { nearestOption } from "../global-options.js";
|
|
4
6
|
import { resolveFormat } from "../output/index.js";
|
|
5
7
|
/** Add read-verb output flags: `-o/--output {table,json,yaml}` plus `--json`. */
|
|
6
8
|
export function addReadFlags(command) {
|
|
@@ -8,12 +10,29 @@ export function addReadFlags(command) {
|
|
|
8
10
|
.option("-o, --output <format>", "output format: table, json, or yaml")
|
|
9
11
|
.option("--json", "shorthand for --output json");
|
|
10
12
|
}
|
|
11
|
-
/** Add mutating-command output flags: `--json` and `--quiet`. */
|
|
13
|
+
/** Add mutating-command output flags: `-o/--output {table,json}`, `--json` and `--quiet`. */
|
|
12
14
|
export function addResultFlags(command) {
|
|
13
15
|
return command
|
|
16
|
+
.option("-o, --output <format>", "output format: table or json")
|
|
14
17
|
.option("--json", "emit the result as JSON")
|
|
15
18
|
.option("--quiet", "print only the status line");
|
|
16
19
|
}
|
|
20
|
+
/** Add output flags for a command whose answer is a bare value: `-o/--output {table,json}` and `--json`. */
|
|
21
|
+
export function addValueFlags(command) {
|
|
22
|
+
return command
|
|
23
|
+
.option("-o, --output <format>", "output format: table (the bare value) or json")
|
|
24
|
+
.option("--json", "shorthand for --output json");
|
|
25
|
+
}
|
|
26
|
+
/** Add streaming-command output flags: `-o/--output {table,json,ndjson}` and `--json`. */
|
|
27
|
+
export function addStreamFlags(command, json = "stream events as newline-delimited JSON") {
|
|
28
|
+
return command
|
|
29
|
+
.option("-o, --output <format>", "output format: table (the live view), json or ndjson (newline-delimited JSON events)")
|
|
30
|
+
.option("--json", json);
|
|
31
|
+
}
|
|
32
|
+
/** Resolve the output format for a streaming command from parsed options. */
|
|
33
|
+
export function streamFormat(options) {
|
|
34
|
+
return resolveFormat(options, "streaming");
|
|
35
|
+
}
|
|
17
36
|
/** Resolve the output format for a read verb from parsed options. */
|
|
18
37
|
export function readFormat(options) {
|
|
19
38
|
return resolveFormat(options, "read");
|
|
@@ -26,9 +45,17 @@ export function resultFormat(options) {
|
|
|
26
45
|
export function formatFor(options, commandClass) {
|
|
27
46
|
return resolveFormat(options, commandClass);
|
|
28
47
|
}
|
|
29
|
-
/** Read the
|
|
48
|
+
/** Read the global `--org` flag from within a subcommand action, written before or after the command. */
|
|
30
49
|
export function globalOrg(command) {
|
|
31
|
-
const value = command
|
|
50
|
+
const value = nearestOption(command, "org");
|
|
32
51
|
return typeof value === "string" && value !== "" ? value : undefined;
|
|
33
52
|
}
|
|
53
|
+
/** `--until`'s value for `run` and `resume`: "exit" when absent; anything but turn or exit is refused. */
|
|
54
|
+
export function untilOf(raw) {
|
|
55
|
+
if (raw === undefined || raw === "exit")
|
|
56
|
+
return "exit";
|
|
57
|
+
if (raw === "turn")
|
|
58
|
+
return "turn";
|
|
59
|
+
throw new UsageError(`invalid --until value "${raw}" (expected turn or exit)`);
|
|
60
|
+
}
|
|
34
61
|
//# sourceMappingURL=shared.js.map
|
package/commands/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/commands/shared.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wEAAwE;AACxE,uBAAuB;AAGvB,OAAO,EAA0D,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3G,iFAAiF;AACjF,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,OAAO,OAAO;SACX,MAAM,CAAC,uBAAuB,EAAE,qCAAqC,CAAC;SACtE,MAAM,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;AACrD,CAAC;AAED,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/commands/shared.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wEAAwE;AACxE,uBAAuB;AAGvB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAA0D,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3G,iFAAiF;AACjF,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,OAAO,OAAO;SACX,MAAM,CAAC,uBAAuB,EAAE,qCAAqC,CAAC;SACtE,MAAM,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;AACrD,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,OAAO,OAAO;SACX,MAAM,CAAC,uBAAuB,EAAE,8BAA8B,CAAC;SAC/D,MAAM,CAAC,QAAQ,EAAE,yBAAyB,CAAC;SAC3C,MAAM,CAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;AACrD,CAAC;AAED,4GAA4G;AAC5G,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,OAAO,OAAO;SACX,MAAM,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AAM,IAAI,UAAU,CAAC,0BAA0B,GAAG,2BAA2B,CAAC,CAAC;AACjF,CAAC"}
|
package/commands/tag.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../src/commands/tag.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../src/commands/tag.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAYlD"}
|
package/commands/tag.js
CHANGED
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
// version. Thin handler: resolve credentials/org, delegate to the resource
|
|
3
3
|
// layer, render the result. Heavy modules are lazy-imported.
|
|
4
4
|
import { ensureAuthenticated, resolveOrganization } from "../config/index.js";
|
|
5
|
-
import { globalOrg } from "./shared.js";
|
|
5
|
+
import { addResultFlags, globalOrg, resultFormat } from "./shared.js";
|
|
6
6
|
export function registerTag(program) {
|
|
7
|
-
program
|
|
8
|
-
.command("tag
|
|
7
|
+
const tag = program
|
|
8
|
+
.command("tag")
|
|
9
9
|
.description("assign a tag to a resource version (supported types: agent)")
|
|
10
|
-
.
|
|
10
|
+
.argument("<type>", "the resource type")
|
|
11
|
+
.argument("<org/slug>", "the resource")
|
|
12
|
+
.argument("<hash>", "the version's hash, or a unique prefix of it as `get agent --version-history` prints it")
|
|
13
|
+
.argument("<tag>", "the tag to assign; it moves off any version that held it")
|
|
14
|
+
.action((type, ref, hash, tag, options, command) => runTag(type, ref, hash, tag, options, command));
|
|
15
|
+
addResultFlags(tag);
|
|
11
16
|
}
|
|
12
|
-
async function runTag(type, ref, hash, tag, command) {
|
|
17
|
+
async function runTag(type, ref, hash, tag, options, command) {
|
|
13
18
|
const [{ connectBackend }, { tagVersion }, { renderResult }] = await Promise.all([
|
|
14
19
|
import("../backend.js"),
|
|
15
20
|
import("../resources/tag.js"),
|
|
@@ -19,6 +24,6 @@ async function runTag(type, ref, hash, tag, command) {
|
|
|
19
24
|
ensureAuthenticated(client.config);
|
|
20
25
|
const org = resolveOrganization(client.config, globalOrg(command));
|
|
21
26
|
const result = await tagVersion(client.stigmer, type, ref, hash, tag, org);
|
|
22
|
-
renderResult(result,
|
|
27
|
+
renderResult(result, resultFormat(options));
|
|
23
28
|
}
|
|
24
29
|
//# sourceMappingURL=tag.js.map
|
package/commands/tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../src/commands/tag.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,6DAA6D;AAG7D,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../src/commands/tag.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,6DAA6D;AAG7D,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtE,MAAM,UAAU,WAAW,CAAC,OAAgB;IAC1C,MAAM,GAAG,GAAG,OAAO;SAChB,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,6DAA6D,CAAC;SAC1E,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;SACvC,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAC;SACtC,QAAQ,CAAC,QAAQ,EAAE,yFAAyF,CAAC;SAC7G,QAAQ,CAAC,OAAO,EAAE,0DAA0D,CAAC;SAC7E,MAAM,CAAC,CAAC,IAAY,EAAE,GAAW,EAAE,IAAY,EAAE,GAAW,EAAE,OAAoB,EAAE,OAAgB,EAAE,EAAE,CACvG,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAC/C,CAAC;IACJ,cAAc,CAAC,GAAG,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,MAAM,CAAC,IAAY,EAAE,GAAW,EAAE,IAAY,EAAE,GAAW,EAAE,OAAoB,EAAE,OAAgB;IAChH,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC/E,MAAM,CAAC,eAAe,CAAC;QACvB,MAAM,CAAC,qBAAqB,CAAC;QAC7B,MAAM,CAAC,6BAA6B,CAAC;KACtC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;IAChC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,GAAG,GAAG,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3E,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
package/commands/up.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"up.d.ts","sourceRoot":"","sources":["../src/commands/up.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"up.d.ts","sourceRoot":"","sources":["../src/commands/up.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAwBjD"}
|
package/commands/up.js
CHANGED
|
@@ -6,12 +6,19 @@
|
|
|
6
6
|
// Thin handler: parse flags, delegate to the local daemon launcher, render the
|
|
7
7
|
// outcome. The launcher (and the heavy resolvers it pulls in) load lazily so
|
|
8
8
|
// `--help` stays fast.
|
|
9
|
+
//
|
|
10
|
+
// The card says where the console is and whether agents can run, the two
|
|
11
|
+
// things a person needs next: the console line comes from probing the server
|
|
12
|
+
// once it answers (stigmer#2649), and the agents line from the providers the
|
|
13
|
+
// started runner reaches, the same answer the server was handed (stigmer#1084).
|
|
14
|
+
// A stack that does not start ends with why, in either shape: the failed
|
|
15
|
+
// component, how it ended and its last stderr lines (stigmer#1845).
|
|
9
16
|
import { homedir } from "node:os";
|
|
10
|
-
import { join } from "node:path";
|
|
11
17
|
import { CliExitError } from "../errors/cli-exit-error.js";
|
|
12
|
-
import { ExitCode } from "
|
|
18
|
+
import { ExitCode } from "@stigmer/client/exit-codes";
|
|
13
19
|
import { CommandResult, renderResult } from "../output/index.js";
|
|
14
|
-
import {
|
|
20
|
+
import { SERVER_PORT } from "../local/constants.js";
|
|
21
|
+
import { describeReach } from "../local/provider-reach.js";
|
|
15
22
|
import { addResultFlags, resultFormat } from "./shared.js";
|
|
16
23
|
// The server serves the web console from its unified port; the
|
|
17
24
|
// flag suppresses probing/reporting it, not the serving itself (one
|
|
@@ -42,43 +49,66 @@ async function runUp(run, flags) {
|
|
|
42
49
|
process.stderr.write("Starting Stigmer local stack… (first run may take a moment)\n");
|
|
43
50
|
const launch = await import("../local/daemon/launch.js");
|
|
44
51
|
if (!run.foreground) {
|
|
45
|
-
await launch.up(run);
|
|
46
|
-
await renderUpCard(run, flags);
|
|
52
|
+
const report = await launch.up(run);
|
|
53
|
+
await renderUpCard(run, flags, report);
|
|
47
54
|
return;
|
|
48
55
|
}
|
|
49
56
|
// The card renders when the stack is serving — the moment the
|
|
50
57
|
// detached shape would have returned — and the process then stays up,
|
|
51
58
|
// mirroring the server's and runner's output, until a shutdown signal.
|
|
52
59
|
const code = await launch.upForeground(run, homedir(), {
|
|
53
|
-
onReady: () => renderUpCard(run, flags),
|
|
60
|
+
onReady: (report) => renderUpCard(run, flags, report),
|
|
54
61
|
});
|
|
55
62
|
if (code !== 0) {
|
|
56
|
-
// The daemon body
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
// The daemon body ran as this process, so its record carries our PID; the
|
|
64
|
+
// last words a container's log shows are then the reason, not a pointer.
|
|
65
|
+
const { dataDir, logDir } = await import("../local/paths.js");
|
|
66
|
+
throw (launch.startupFailure(dataDir(homedir()), process.pid) ??
|
|
67
|
+
new CliExitError("the local stack did not start", ExitCode.General, [
|
|
68
|
+
`Check the component logs under ${logDir(homedir())}.`,
|
|
69
|
+
]));
|
|
61
70
|
}
|
|
62
71
|
}
|
|
63
|
-
async function renderUpCard(run, flags) {
|
|
72
|
+
async function renderUpCard(run, flags, report) {
|
|
64
73
|
const result = CommandResult.success(run.serverOnly ? "Stigmer control plane is up" : "Stigmer local stack is up");
|
|
65
74
|
const section = result.addSection("Endpoints");
|
|
66
75
|
section.field("server", `http://localhost:${SERVER_PORT}`);
|
|
67
|
-
if (await
|
|
76
|
+
if (!run.noWeb && (await consoleServed())) {
|
|
68
77
|
// Same origin as the API: the server serves the console. Only
|
|
69
|
-
// printed when the
|
|
70
|
-
// server without
|
|
78
|
+
// printed when the server answers the console probe — a dev-tree
|
|
79
|
+
// server without a bundled export must not advertise a dead URL.
|
|
71
80
|
section.field("console", `http://localhost:${SERVER_PORT}`);
|
|
72
81
|
}
|
|
82
|
+
addAgentsSection(result, report);
|
|
73
83
|
result.hint("Check status with: stigmer status");
|
|
74
84
|
result.hint(run.foreground ? "Stop it with: Ctrl-C (or stigmer down from another shell)" : "Stop it with: stigmer down");
|
|
75
85
|
renderResult(result, resultFormat(flags));
|
|
76
86
|
}
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Whether the server serves the web console. The card renders once the
|
|
89
|
+
* server's port answers, and the server binds its port only after every lane
|
|
90
|
+
* is mounted, so the probe here reads what a browser would find. The daemon's
|
|
91
|
+
* own record of the same probe lands seconds later (after its settle delay),
|
|
92
|
+
* too late for a card that read it to see it (stigmer#2649).
|
|
93
|
+
*/
|
|
94
|
+
async function consoleServed() {
|
|
95
|
+
const { isWebConsoleAvailable } = await import("../local/webconsole/index.js");
|
|
96
|
+
return isWebConsoleAvailable();
|
|
97
|
+
}
|
|
98
|
+
/** Whether agents can run on this stack, and through which providers. */
|
|
99
|
+
function addAgentsSection(result, report) {
|
|
100
|
+
const section = result.addSection("Agents");
|
|
101
|
+
if (report.runnerReach === undefined) {
|
|
102
|
+
section.field("not ready", "no local runner (control plane only)");
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (report.runnerReach.length === 0) {
|
|
106
|
+
section.field("not ready", "no model provider");
|
|
107
|
+
// The daemon hands its runner the key only at start, so a key saved
|
|
108
|
+
// while the stack runs needs a restart to reach it.
|
|
109
|
+
result.hint("Add a model provider: stigmer setup, then stigmer down && stigmer up");
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
section.field("ready", describeReach(report.runnerReach));
|
|
83
113
|
}
|
|
84
114
|
//# sourceMappingURL=up.js.map
|
package/commands/up.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"up.js","sourceRoot":"","sources":["../src/commands/up.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,2EAA2E;AAC3E,6EAA6E;AAC7E,0BAA0B;AAC1B,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,uBAAuB;
|
|
1
|
+
{"version":3,"file":"up.js","sourceRoot":"","sources":["../src/commands/up.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,2EAA2E;AAC3E,6EAA6E;AAC7E,0BAA0B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C,CAAC;IAC/E,OAAO,qBAAqB,EAAE,CAAC;AACjC,CAAC;AAED,yEAAyE;AACzE,SAAS,gBAAgB,CAAC,MAAqB,EAAE,MAAgB;IAC/D,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAI,MAAM,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACrC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,sCAAsC,CAAC,CAAC;QACnE,OAAO;IACT,CAAC;IACD,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;QAChD,oEAAoE;QACpE,oDAAoD;QACpD,MAAM,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAC;QACpF,OAAO;IACT,CAAC;IACD,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AAC5D,CAAC"}
|
package/commands/validate.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
// `.codex-plugin/plugin.json`) is read with `@stigmer/plugin-package`, the
|
|
9
9
|
// same reader the server installs with, so what validates here installs
|
|
10
10
|
// there and what is refused here is refused there with the same sentence.
|
|
11
|
-
// The plugin check runs BEFORE the YAML walk: a plugin's
|
|
12
|
-
//
|
|
11
|
+
// The plugin check runs BEFORE the YAML walk: a plugin's YAML documents
|
|
12
|
+
// would otherwise be validated as loose resources.
|
|
13
13
|
//
|
|
14
14
|
// A plugin refusal is a `UsageError` (exit 2) listing every problem at once;
|
|
15
15
|
// an accepted plugin renders as `success`, or `warning` when the reader had
|
package/commands/validate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../src/commands/validate.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,yBAAyB;AACzB,EAA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E,MAAM,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,MAAM,GACV,QAAQ,CAAC,MAAM,KAAK,CAAC;QACnB,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,MAAM,CAAC,IAAI,YAAY,CAAC;QAC3D,CAAC,CAAC,aAAa,CAAC,OAAO,CACnB,WAAW,MAAM,CAAC,IAAI,mBAAmB,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAC7E,CAAC;IACR,OAAO,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/commands/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/commands/version.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAQtD"}
|
package/commands/version.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
// `stigmer version` — print the CLI version. No backend
|
|
1
|
+
// `stigmer version` — print the CLI version. No backend; `-o json` prints
|
|
2
|
+
// it as `{"version": ...}`.
|
|
3
|
+
import { renderValue } from "../output/command-result.js";
|
|
2
4
|
import { VERSION } from "../version.js";
|
|
5
|
+
import { addValueFlags, resultFormat } from "./shared.js";
|
|
3
6
|
export function registerVersion(program) {
|
|
4
|
-
program
|
|
7
|
+
const version = program
|
|
5
8
|
.command("version")
|
|
6
9
|
.description("print the CLI version")
|
|
7
|
-
.action(() => {
|
|
8
|
-
|
|
10
|
+
.action((options) => {
|
|
11
|
+
renderValue(VERSION, { version: VERSION }, resultFormat(options));
|
|
9
12
|
});
|
|
13
|
+
addValueFlags(version);
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=version.js.map
|
package/commands/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/commands/version.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/commands/version.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4BAA4B;AAG5B,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,UAAU,eAAe,CAAC,OAAgB;IAC9C,MAAM,OAAO,GAAG,OAAO;SACpB,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,uBAAuB,CAAC;SACpC,MAAM,CAAC,CAAC,OAAoB,EAAE,EAAE;QAC/B,WAAW,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IACL,aAAa,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"}
|
package/config/config.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** The legacy binary switch, still written as a mirror for older readers. */
|
|
2
|
-
export type BackendType = "local" | "cloud";
|
|
3
1
|
/** The two named-backend families: Stigmer Cloud, or any OSS server. */
|
|
4
2
|
export type NamedBackendType = "cloud" | "selfhost";
|
|
5
3
|
/** The reserved name of the managed local daemon backend. */
|
|
@@ -28,22 +26,10 @@ export interface NamedBackendConfig {
|
|
|
28
26
|
token_expiry?: string;
|
|
29
27
|
api_key?: string;
|
|
30
28
|
}
|
|
31
|
-
/** Cloud backend connection — the LEGACY single-slot shape (older files). */
|
|
32
|
-
export interface CloudBackendConfig {
|
|
33
|
-
endpoint?: string;
|
|
34
|
-
token?: string;
|
|
35
|
-
org_id?: string;
|
|
36
|
-
env_id?: string;
|
|
37
|
-
refresh_token?: string;
|
|
38
|
-
token_expiry?: string;
|
|
39
|
-
}
|
|
40
29
|
export interface BackendConfig {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* preserved verbatim across save so coexisting tools keep their config. */
|
|
30
|
+
/** Local daemon/LLM/Temporal settings — opaque to this module,
|
|
31
|
+
* preserved verbatim across save so the local-mode modules keep their config. */
|
|
44
32
|
local?: unknown;
|
|
45
|
-
/** Legacy cloud slot — read for migration, never written back. */
|
|
46
|
-
cloud?: CloudBackendConfig;
|
|
47
33
|
}
|
|
48
34
|
export interface ContextConfig {
|
|
49
35
|
/** The context organization's id (or, set by hand, whatever value was given). */
|
|
@@ -81,16 +67,13 @@ export declare function getDefault(): Config;
|
|
|
81
67
|
/**
|
|
82
68
|
* Load the config from disk. In standalone mode the file is ignored and the
|
|
83
69
|
* default is returned, isolating sidecar/automation invocations from ambient
|
|
84
|
-
* user config
|
|
70
|
+
* user config. A missing file also yields the default.
|
|
85
71
|
*/
|
|
86
72
|
export declare function load(path?: string): Config;
|
|
87
73
|
/**
|
|
88
74
|
* Persist the config to disk (0600 file in a 0755 directory), with the
|
|
89
|
-
* documentation header the file
|
|
90
|
-
* (
|
|
91
|
-
* lives in `backends.cloud` — and `backend.type` is written as the
|
|
92
|
-
* local-vs-not mirror. A pristine local config (no named backends) writes
|
|
93
|
-
* exactly the legacy bytes.
|
|
75
|
+
* documentation header, replacing the file in one step. A pristine local config
|
|
76
|
+
* (no named backends) writes no backend keys at all.
|
|
94
77
|
*/
|
|
95
78
|
export declare function save(config: Config, path?: string): void;
|
|
96
79
|
/** The active backend's name (normalize always stamps current_backend). */
|
package/config/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config/config.ts"],"names":[],"mappings":"AAqCA,wEAAwE;AACxE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,UAAU,CAAC;AAEpD,6DAA6D;AAC7D,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B;qFACiF;IACjF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAk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