@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/commands/run.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// `stigmer run [agent]` — run an agent and stream it. Thin handler: parse
|
|
2
|
-
// flags, resolve the reference (0/1-arg dispatch
|
|
3
|
-
// run_picker.go), then delegate to the shared run stack. Heavy modules
|
|
2
|
+
// flags, resolve the reference (0/1-arg dispatch), then delegate to the shared run stack. Heavy modules
|
|
4
3
|
// (backend client, Ink, the session stream) load lazily inside the action so `--help`
|
|
5
4
|
// stays fast.
|
|
6
5
|
//
|
|
@@ -9,13 +8,20 @@
|
|
|
9
8
|
// a bare `stigmer run` on a terminal opens the agent picker with the
|
|
10
9
|
// assistant as its first row. Off a terminal with no message there is
|
|
11
10
|
// nothing to run and the guidance names both forms.
|
|
11
|
+
//
|
|
12
|
+
// Bare text is looked up as an agent's slug. Only the server's answer that
|
|
13
|
+
// the text names no agent opens the picker or prints "No agent found"; every
|
|
14
|
+
// other failure of the lookup (an unreachable server, an expired sign-in, an
|
|
15
|
+
// agent that is not the caller's) is the command's error.
|
|
16
|
+
import { Code } from "@connectrpc/connect";
|
|
12
17
|
import { ApiResourceKind } from "@stigmer/apis/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
13
18
|
import { ensureAuthenticated, resolveOrganization } from "../config/index.js";
|
|
14
|
-
import { UsageError } from "../errors/index.js";
|
|
19
|
+
import { classify, UsageError } from "../errors/index.js";
|
|
15
20
|
import { interactiveBrowseEnabled } from "../resources/picker/tty.js";
|
|
16
21
|
import { addAgentExecFlags, } from "./agent-exec-flags.js";
|
|
17
|
-
import { globalOrg } from "./shared.js";
|
|
22
|
+
import { addStreamFlags, globalOrg, streamFormat, untilOf } from "./shared.js";
|
|
18
23
|
import { requireOrganization } from "../client/single-org.js";
|
|
24
|
+
import { SESSION_HELP, UNTIL_HELP } from "./session-help.js";
|
|
19
25
|
export function registerRun(program) {
|
|
20
26
|
// One argument: the agent. A second is refused rather than ignored, so the
|
|
21
27
|
// old `run <type> <reference>` form fails loudly instead of resolving an
|
|
@@ -23,10 +29,12 @@ export function registerRun(program) {
|
|
|
23
29
|
const run = program
|
|
24
30
|
.command("run [agent]")
|
|
25
31
|
.description("run an agent by reference")
|
|
26
|
-
.allowExcessArguments(false)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.option("--download <dir>", "
|
|
32
|
+
.allowExcessArguments(false)
|
|
33
|
+
.addHelpText("after", SESSION_HELP);
|
|
34
|
+
addStreamFlags(addAgentExecFlags(run))
|
|
35
|
+
.option("--download <dir>", "save each turn's outputs to directory as the turn ends")
|
|
36
|
+
.option("--until <turn|exit>", "on a terminal, return when the turn ends (turn) or when you leave (exit, the default)")
|
|
37
|
+
.addHelpText("after", UNTIL_HELP)
|
|
30
38
|
.action((agent, options, command) => runRun(agent, options, command));
|
|
31
39
|
}
|
|
32
40
|
async function runRun(reference, options, command) {
|
|
@@ -38,7 +46,11 @@ async function runRun(reference, options, command) {
|
|
|
38
46
|
"stigmer config context set --org <org>",
|
|
39
47
|
"stigmer run --org <org> ...",
|
|
40
48
|
]);
|
|
41
|
-
const outputMode = options
|
|
49
|
+
const outputMode = streamFormat(options) === "ndjson" ? "json" : "inline";
|
|
50
|
+
untilOf(options.until);
|
|
51
|
+
if (options.detach === true && (options.download ?? "") !== "") {
|
|
52
|
+
throw new UsageError("--download waits for the turn; --detach does not");
|
|
53
|
+
}
|
|
42
54
|
// 0 args → the built-in assistant when a message was given; else the
|
|
43
55
|
// interactive agent picker on a TTY; otherwise actionable guidance.
|
|
44
56
|
if (reference === undefined) {
|
|
@@ -54,8 +66,7 @@ async function runRun(reference, options, command) {
|
|
|
54
66
|
}
|
|
55
67
|
await runSmart(reference, options, org, outputMode, client);
|
|
56
68
|
}
|
|
57
|
-
// stigmer run <value>: classify the argument and dispatch
|
|
58
|
-
// executeRunSmart). Session IDs belong to `resume`; complete agent IDs resolve
|
|
69
|
+
// stigmer run <value>: classify the argument and dispatch. Session IDs belong to `resume`; complete agent IDs resolve
|
|
59
70
|
// directly; other resource IDs are not runnable; bare text is resolved as an
|
|
60
71
|
// agent slug.
|
|
61
72
|
async function runSmart(value, options, org, outputMode, client) {
|
|
@@ -73,15 +84,17 @@ async function runSmart(value, options, org, outputMode, client) {
|
|
|
73
84
|
}
|
|
74
85
|
throw new UsageError(`Cannot run resource ID "${value}": only agents run\n\nTo run an agent:\n stigmer run <agent-id>`);
|
|
75
86
|
}
|
|
76
|
-
// Bare text: try to resolve as an agent reference;
|
|
77
|
-
// the
|
|
78
|
-
// guide the user.
|
|
87
|
+
// Bare text: try to resolve as an agent reference; when the server answers
|
|
88
|
+
// that the text names no agent, fall back to the interactive picker
|
|
89
|
+
// (pre-filled with the typed text) on a TTY, otherwise guide the user.
|
|
79
90
|
const { resolveAgentRef } = await import("../resources/run/resolve.js");
|
|
80
91
|
let agent;
|
|
81
92
|
try {
|
|
82
93
|
agent = await resolveAgentRef(client.stigmer, value, org);
|
|
83
94
|
}
|
|
84
|
-
catch {
|
|
95
|
+
catch (err) {
|
|
96
|
+
if (!namesNoAgent(err))
|
|
97
|
+
throw err;
|
|
85
98
|
if (interactiveBrowseEnabled(outputMode)) {
|
|
86
99
|
await browseAndRunAgent(value, options, org, outputMode, client);
|
|
87
100
|
return;
|
|
@@ -90,6 +103,11 @@ async function runSmart(value, options, org, outputMode, client) {
|
|
|
90
103
|
}
|
|
91
104
|
await runResolvedAgent(agent, options, org, outputMode, client);
|
|
92
105
|
}
|
|
106
|
+
/** Whether a failed lookup says the text names no agent: no agent has that slug (NotFound), or it is not a slug and so a search (InvalidArgument). */
|
|
107
|
+
function namesNoAgent(err) {
|
|
108
|
+
const code = classify(err)?.code;
|
|
109
|
+
return code === Code.NotFound || code === Code.InvalidArgument;
|
|
110
|
+
}
|
|
93
111
|
// Resolve a complete agent ID, then run.
|
|
94
112
|
async function runAgent(agentId, options, org, outputMode, client) {
|
|
95
113
|
const { resolveAgentRef } = await import("../resources/run/resolve.js");
|
|
@@ -115,6 +133,7 @@ async function runResolvedAgent(agent, options, org, outputMode, client) {
|
|
|
115
133
|
org,
|
|
116
134
|
downloadDir: options.download ?? "",
|
|
117
135
|
outputMode,
|
|
136
|
+
until: untilOf(options.until),
|
|
118
137
|
client,
|
|
119
138
|
});
|
|
120
139
|
}
|
package/commands/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/commands/run.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/commands/run.ts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,SAAS,CAAC;QAC/B,MAAM,EAAE,MAAM,CAAC,OAAO;QACtB,GAAG;QACH,YAAY;KACb,CAAC,CAAC;IACH,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO;IACnC,IAAI,QAAQ,CAAC,IAAI,KAAK,oBAAoB,EAAE,CAAC;QAC3C,MAAM,gBAAgB,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,gFAAgF;AAChF,4EAA4E;AAC5E,SAAS,sBAAsB,CAAC,KAAa;IAC3C,MAAM,IAAI,GACR,KAAK,KAAK,EAAE;QACV,CAAC,CAAC,6DAA6D;QAC/D,CAAC,CAAC,uBAAuB,KAAK,GAAG,CAAC;IACtC,MAAM,aAAa,GACjB,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,sEAAsE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7F,OAAO,IAAI,UAAU,CACnB,GAAG,IAAI,MAAM;QACX,mCAAmC;QACnC,4BAA4B;QAC5B,4BAA4B;QAC5B,aAAa,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../src/commands/runs/approve.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../src/commands/runs/approve.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYzC,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAavD"}
|
package/commands/runs/approve.js
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
// --action, with --comment as a deny's reason. Thin handler: delegate to
|
|
4
4
|
// resources/run-approve.ts and report the answer.
|
|
5
5
|
import { ensureAuthenticated } from "../../config/index.js";
|
|
6
|
+
import { addResultFlags, resultFormat } from "../shared.js";
|
|
6
7
|
export function registerRunsApprove(runs) {
|
|
7
|
-
runs
|
|
8
|
+
const approve = runs
|
|
8
9
|
.command("approve <run-id>")
|
|
9
10
|
.description("answer a tool call a run waits on")
|
|
10
11
|
.option("--comment <comment>", "the reason the agent reads with a deny")
|
|
11
12
|
.option("--tool-call <id>", "the tool use to answer, as runs logs shows it; optional when the run waits on one")
|
|
12
13
|
.option("--action <action>", "allow, deny, or allow-all (allow it and every waiting call of its kind for the rest of the turn)", "allow")
|
|
13
14
|
.action((runId, options) => runApprove(runId, options));
|
|
15
|
+
addResultFlags(approve);
|
|
14
16
|
}
|
|
15
17
|
// What the success line calls each answer.
|
|
16
18
|
const ANSWERED = {
|
|
@@ -19,6 +21,7 @@ const ANSWERED = {
|
|
|
19
21
|
grant: "allowed for the rest of the turn",
|
|
20
22
|
};
|
|
21
23
|
async function runApprove(runId, options) {
|
|
24
|
+
const format = resultFormat(options);
|
|
22
25
|
const [{ connectBackend }, approve, { CommandResult, renderResult }] = await Promise.all([
|
|
23
26
|
import("../../backend.js"),
|
|
24
27
|
import("../../resources/run-approve.js"),
|
|
@@ -32,6 +35,11 @@ async function runApprove(runId, options) {
|
|
|
32
35
|
action: options.action ?? "allow",
|
|
33
36
|
comment: options.comment ?? "",
|
|
34
37
|
});
|
|
35
|
-
renderResult(CommandResult.success(`Tool call ${ANSWERED[result.answer]}: ${result.toolName} (${result.toolUseId})`)
|
|
38
|
+
renderResult(CommandResult.success(`Tool call ${ANSWERED[result.answer]}: ${result.toolName} (${result.toolUseId})`).withData({
|
|
39
|
+
runId,
|
|
40
|
+
toolUseId: result.toolUseId,
|
|
41
|
+
toolName: result.toolName,
|
|
42
|
+
answer: result.answer,
|
|
43
|
+
}), format);
|
|
36
44
|
}
|
|
37
45
|
//# sourceMappingURL=approve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../src/commands/runs/approve.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,kDAAkD;AAGlD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../src/commands/runs/approve.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,kDAAkD;AAGlD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAQ5D,MAAM,UAAU,mBAAmB,CAAC,IAAa;IAC/C,MAAM,OAAO,GAAG,IAAI;SACjB,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,mCAAmC,CAAC;SAChD,MAAM,CAAC,qBAAqB,EAAE,wCAAwC,CAAC;SACvE,MAAM,CAAC,kBAAkB,EAAE,mFAAmF,CAAC;SAC/G,MAAM,CACL,mBAAmB,EACnB,kGAAkG,EAClG,OAAO,CACR;SACA,MAAM,CAAC,CAAC,KAAa,EAAE,OAAqB,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAChF,cAAc,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC;AAED,2CAA2C;AAC3C,MAAM,QAAQ,GAA4C;IACxD,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,kCAAkC;CAC1C,CAAC;AAEF,KAAK,UAAU,UAAU,CAAC,KAAa,EAAE,OAAqB;IAC5D,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvF,MAAM,CAAC,kBAAkB,CAAC;QAC1B,MAAM,CAAC,gCAAgC,CAAC;QACxC,MAAM,CAAC,gCAAgC,CAAC;KACzC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;IAChC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEnC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,OAAO,EAAE;QAChE,KAAK;QACL,UAAU,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO;QACjC,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;KAC/B,CAAC,CAAC;IACH,YAAY,CACV,aAAa,CAAC,OAAO,CAAC,aAAa,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,QAAQ,KAAK,MAAM,CAAC,SAAS,GAAG,CAAC,CAAC,QAAQ,CAAC;QAC/G,KAAK;QACL,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,EACF,MAAM,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/commands/runs/control.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/commands/runs/control.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CA8BvD"}
|
package/commands/runs/control.js
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
// `stigmer runs {cancel,terminate,pause,resume} <run-id>` — lifecycle
|
|
2
2
|
// control verbs. Thin handlers: resolve the client, call the control resource,
|
|
3
|
-
// render the resulting phase
|
|
3
|
+
// render the resulting phase (`-o json`: the run, its phase, and for cancel
|
|
4
|
+
// the turns it stopped).
|
|
4
5
|
// cancel stops the run's whole conversation (resources/run-control.ts), takes
|
|
5
6
|
// no reason, and names every turn it stopped.
|
|
6
7
|
import { ensureAuthenticated } from "../../config/index.js";
|
|
8
|
+
import { addResultFlags, resultFormat } from "../shared.js";
|
|
7
9
|
export function registerRunsControl(runs) {
|
|
8
|
-
runs
|
|
10
|
+
addResultFlags(runs
|
|
9
11
|
.command("cancel <run-id>")
|
|
10
12
|
.description("cancel a run in progress: every unfinished turn of its conversation stops")
|
|
11
|
-
.action((runId) => runCancel(runId));
|
|
12
|
-
runs
|
|
13
|
+
.action((runId, options) => runCancel(runId, options)));
|
|
14
|
+
addResultFlags(runs
|
|
13
15
|
.command("terminate <run-id>")
|
|
14
16
|
.description("force-stop a run immediately")
|
|
15
17
|
.option("--reason <reason>", "reason for termination")
|
|
16
|
-
.action((runId, options) => runControl("terminate", runId, options
|
|
17
|
-
runs
|
|
18
|
+
.action((runId, options) => runControl("terminate", runId, options)));
|
|
19
|
+
addResultFlags(runs
|
|
18
20
|
.command("pause <run-id>")
|
|
19
21
|
.description("pause a run in progress")
|
|
20
22
|
.option("--reason <reason>", "reason for pausing")
|
|
21
|
-
.action((runId, options) => runControl("pause", runId, options
|
|
22
|
-
runs
|
|
23
|
+
.action((runId, options) => runControl("pause", runId, options)));
|
|
24
|
+
addResultFlags(runs
|
|
23
25
|
.command("resume <run-id>")
|
|
24
26
|
.description("resume a paused run")
|
|
25
|
-
.action((runId) => runControl("resume", runId,
|
|
27
|
+
.action((runId, options) => runControl("resume", runId, options)));
|
|
26
28
|
}
|
|
27
|
-
// Past-tense success wording per verb
|
|
29
|
+
// Past-tense success wording per verb.
|
|
28
30
|
const PAST_TENSE = {
|
|
29
31
|
terminate: "terminated",
|
|
30
32
|
pause: "paused",
|
|
31
33
|
resume: "resumed",
|
|
32
34
|
};
|
|
33
|
-
async function runCancel(runId) {
|
|
35
|
+
async function runCancel(runId, options) {
|
|
36
|
+
const format = resultFormat(options);
|
|
34
37
|
const [{ connectBackend }, control, { CommandResult, renderResult }] = await Promise.all([
|
|
35
38
|
import("../../backend.js"),
|
|
36
39
|
import("../../resources/run-control.js"),
|
|
@@ -40,13 +43,18 @@ async function runCancel(runId) {
|
|
|
40
43
|
ensureAuthenticated(client.config);
|
|
41
44
|
const result = await control.cancelRun(client.stigmer, runId);
|
|
42
45
|
if (result.wasAlreadyTerminal) {
|
|
43
|
-
renderResult(CommandResult.warning(`Run already ended: ${runId} (phase: ${result.phase})`),
|
|
46
|
+
renderResult(CommandResult.warning(`Run already ended: ${runId} (phase: ${result.phase})`).withData({ runId, phase: result.phase, stoppedRunIds: [] }), format);
|
|
44
47
|
return;
|
|
45
48
|
}
|
|
46
49
|
const stopped = result.stoppedRunIds.length > 0 ? `; stopped: ${result.stoppedRunIds.join(", ")}` : "";
|
|
47
|
-
renderResult(CommandResult.success(`Run cancelled: ${runId} (phase: ${result.phase}${stopped})`)
|
|
50
|
+
renderResult(CommandResult.success(`Run cancelled: ${runId} (phase: ${result.phase}${stopped})`).withData({
|
|
51
|
+
runId,
|
|
52
|
+
phase: result.phase,
|
|
53
|
+
stoppedRunIds: result.stoppedRunIds,
|
|
54
|
+
}), format);
|
|
48
55
|
}
|
|
49
|
-
async function runControl(verb, runId,
|
|
56
|
+
async function runControl(verb, runId, options) {
|
|
57
|
+
const format = resultFormat(options);
|
|
50
58
|
const [{ connectBackend }, control, { CommandResult, renderResult }] = await Promise.all([
|
|
51
59
|
import("../../backend.js"),
|
|
52
60
|
import("../../resources/run-control.js"),
|
|
@@ -54,9 +62,9 @@ async function runControl(verb, runId, reason) {
|
|
|
54
62
|
]);
|
|
55
63
|
const client = connectBackend();
|
|
56
64
|
ensureAuthenticated(client.config);
|
|
57
|
-
const result = await dispatch(verb, control, client.stigmer, runId, reason);
|
|
65
|
+
const result = await dispatch(verb, control, client.stigmer, runId, options.reason ?? "");
|
|
58
66
|
const message = `Run ${PAST_TENSE[verb]}: ${runId} (phase: ${result.phase})`;
|
|
59
|
-
renderResult(CommandResult.success(message),
|
|
67
|
+
renderResult(CommandResult.success(message).withData({ runId, phase: result.phase }), format);
|
|
60
68
|
}
|
|
61
69
|
function dispatch(verb, control, client, runId, reason) {
|
|
62
70
|
switch (verb) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../src/commands/runs/control.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,+EAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../src/commands/runs/control.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,+EAA+E;AAC/E,4EAA4E;AAC5E,yBAAyB;AACzB,8EAA8E;AAC9E,8CAA8C;AAG9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5D,MAAM,UAAU,mBAAmB,CAAC,IAAa;IAC/C,cAAc,CACZ,IAAI;SACD,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,2EAA2E,CAAC;SACxF,MAAM,CAAC,CAAC,KAAa,EAAE,OAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAC9E,CAAC;IAEF,cAAc,CACZ,IAAI;SACD,OAAO,CAAC,oBAAoB,CAAC;SAC7B,WAAW,CAAC,8BAA8B,CAAC;SAC3C,MAAM,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;SACrD,MAAM,CAAC,CAAC,KAAa,EAAE,OAAoB,EAAE,EAAE,CAAC,UAA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AAO,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC1F,MAAM,OAAO,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK,YAAY,MAAM,CAAC,KAAK,GAAG,CAAC;IAC7E,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AAChG,CAAC;AAED,SAAS,QAAQ,CACf,IAAiB,EACjB,OAAwD,EACxD,MAAyC,EACzC,KAAa,EACb,MAAc;IAEd,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW;YACd,OAAO,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACrD,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACjD,KAAK,QAAQ;YACX,OAAO,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/runs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/runs/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAWnD"}
|
package/commands/runs/index.js
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
// and the top-level `resume` reopens a session; `runs` is the one plural group
|
|
6
6
|
// the CLI has.
|
|
7
7
|
//
|
|
8
|
-
//
|
|
9
|
-
// subcommand is a thin handler that resolves the backend client and delegates to
|
|
8
|
+
// Each subcommand is a thin handler that resolves the backend client and delegates to
|
|
10
9
|
// a resources/ module; heavy modules load lazily inside the actions.
|
|
11
10
|
import { registerRunsApprove } from "./approve.js";
|
|
12
11
|
import { registerRunsControl } from "./control.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/runs/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,4EAA4E;AAC5E,wDAAwD;AACxD,+EAA+E;AAC/E,eAAe;AACf,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/runs/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,4EAA4E;AAC5E,wDAAwD;AACxD,+EAA+E;AAC/E,eAAe;AACf,EAAE;AACF,sFAAsF;AACtF,qEAAqE;AAGrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,MAAM,IAAI,GAAG,OAAO;SACjB,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,wDAAwD,CAAC,CAAC;IAEzE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1B,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvB,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACxB,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACzB,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC7B,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/commands/runs/logs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/commands/runs/logs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAOpD"}
|
package/commands/runs/logs.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
// `stigmer runs logs <run-id>` — view or follow a run's events.
|
|
2
2
|
// Thin handler: resolve the client, wire Ctrl-C to abort a follow cleanly, and
|
|
3
|
-
// delegate to resources/run-logs.ts.
|
|
3
|
+
// delegate to resources/run-logs.ts.
|
|
4
4
|
import { ensureAuthenticated } from "../../config/index.js";
|
|
5
|
+
import { addStreamFlags, streamFormat } from "../shared.js";
|
|
5
6
|
export function registerRunsLogs(runs) {
|
|
6
|
-
runs
|
|
7
|
+
const logs = runs
|
|
7
8
|
.command("logs <run-id>")
|
|
8
9
|
.description("view a run's events (use --follow to stream)")
|
|
9
10
|
.option("-f, --follow", "keep printing new events until the run ends")
|
|
10
11
|
.action((runId, options) => runLogs(runId, options));
|
|
12
|
+
addStreamFlags(logs, "print each event as a line of JSON");
|
|
11
13
|
}
|
|
12
14
|
async function runLogs(runId, options) {
|
|
15
|
+
const ndjson = streamFormat(options) === "ndjson";
|
|
13
16
|
const [{ connectBackend }, { streamRunLogs }] = await Promise.all([
|
|
14
17
|
import("../../backend.js"),
|
|
15
18
|
import("../../resources/run-logs.js"),
|
|
@@ -17,13 +20,13 @@ async function runLogs(runId, options) {
|
|
|
17
20
|
const client = connectBackend();
|
|
18
21
|
ensureAuthenticated(client.config);
|
|
19
22
|
// Ctrl-C aborts the follow; the resource treats an aborted signal as a
|
|
20
|
-
// clean exit
|
|
23
|
+
// clean exit.
|
|
21
24
|
const controller = new AbortController();
|
|
22
25
|
const onSignal = () => controller.abort();
|
|
23
26
|
process.once("SIGINT", onSignal);
|
|
24
27
|
process.once("SIGTERM", onSignal);
|
|
25
28
|
try {
|
|
26
|
-
await streamRunLogs(client.stigmer, { runId, follow: options.follow === true }, controller.signal);
|
|
29
|
+
await streamRunLogs(client.stigmer, { runId, follow: options.follow === true, ndjson }, controller.signal);
|
|
27
30
|
}
|
|
28
31
|
finally {
|
|
29
32
|
process.removeListener("SIGINT", onSignal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/commands/runs/logs.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,+EAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/commands/runs/logs.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,+EAA+E;AAC/E,qCAAqC;AAGrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5D,MAAM,UAAU,gBAAgB,CAAC,IAAa;IAC5C,MAAM,IAAI,GAAG,IAAI;SACd,OAAO,CAAC,eAAe,CAAC;SACxB,WAAW,CAAC,8CAA8C,CAAC;SAC3D,MAAM,CAAC,cAAc,EAAE,6CAA6C,CAAC;SACrE,MAAM,CAAC,CAAC,KAAa,EAAE,OAAkB,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,cAAc,CAAC,IAAI,EAAE,oCAAoC,CAAC,CAAC;AAC7D,CAAC;AAED,KAAK,UAAU,OAAO,CAAC,KAAa,EAAE,OAAkB;IACtD,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;IAClD,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAChE,MAAM,CAAC,kBAAkB,CAAC;QAC1B,MAAM,CAAC,6BAA6B,CAAC;KACtC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;IAChC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEnC,uEAAuE;IACvE,cAAc;IACd,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,GAAS,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAChD,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACjC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,aAAa,CACjB,MAAM,CAAC,OAAO,EACd,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI,EAAE,MAAM,EAAE,EAClD,UAAU,CAAC,MAAM,CAClB,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC3C,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-eval-case.d.ts","sourceRoot":"","sources":["../../src/commands/runs/to-eval-case.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-eval-case.d.ts","sourceRoot":"","sources":["../../src/commands/runs/to-eval-case.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAU1D"}
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
// it got as mocks, and an AI rubric whose FAIL line names what went wrong.
|
|
4
4
|
// Written under --dir on this machine, or added to an eval with --eval.
|
|
5
5
|
// Thin handler: resolve the client and the organization, delegate to
|
|
6
|
-
// resources/run-to-eval-case.ts, which owns the rules.
|
|
6
|
+
// resources/run-to-eval-case.ts, which owns the rules. With `-o json` the
|
|
7
|
+
// case's directory (or the eval and its new digest) is printed as JSON.
|
|
7
8
|
import { ensureAuthenticated, resolveOrganization } from "../../config/index.js";
|
|
8
|
-
import {
|
|
9
|
+
import { renderValue } from "../../output/command-result.js";
|
|
10
|
+
import { addValueFlags, globalOrg, resultFormat } from "../shared.js";
|
|
9
11
|
export function registerRunsToEvalCase(runs) {
|
|
10
|
-
runs
|
|
12
|
+
const toEvalCase = runs
|
|
11
13
|
.command("to-eval-case <run-id>")
|
|
12
14
|
.description("turn a run into an eval case: written under evals/, or added to an eval")
|
|
13
15
|
.option("--dir <dir>", "the eval directory to write the case into (default: evals)")
|
|
@@ -15,8 +17,10 @@ export function registerRunsToEvalCase(runs) {
|
|
|
15
17
|
.option("--skill <plugin:skill>", "also check that this skill was read")
|
|
16
18
|
.option("--eval <eval>", "add the case to this eval as a new version instead of writing it here")
|
|
17
19
|
.action((runId, options, command) => runToEvalCase(runId, options, command));
|
|
20
|
+
addValueFlags(toEvalCase);
|
|
18
21
|
}
|
|
19
22
|
async function runToEvalCase(runId, options, command) {
|
|
23
|
+
const format = resultFormat(options);
|
|
20
24
|
const [{ connectBackend }, { writeEvalCaseFromRun }, { access }, { extractArchive }] = await Promise.all([
|
|
21
25
|
import("../../backend.js"),
|
|
22
26
|
import("../../resources/run-to-eval-case.js"),
|
|
@@ -26,10 +30,15 @@ async function runToEvalCase(runId, options, command) {
|
|
|
26
30
|
const client = connectBackend();
|
|
27
31
|
ensureAuthenticated(client.config);
|
|
28
32
|
const org = resolveOrganization(client.config, globalOrg(command));
|
|
29
|
-
await writeEvalCaseFromRun(client.stigmer, runId, options, {
|
|
33
|
+
const written = await writeEvalCaseFromRun(client.stigmer, runId, options, {
|
|
30
34
|
exists: (path) => access(path).then(() => true, () => false),
|
|
31
35
|
extract: extractArchive,
|
|
32
36
|
stderr: process.stderr,
|
|
33
37
|
}, org);
|
|
38
|
+
// The lines above went to stderr; `-o json` adds where the case went.
|
|
39
|
+
if (format === "json") {
|
|
40
|
+
const data = options.eval === undefined ? { runId, caseDir: written } : { runId, eval: options.eval, digest: written };
|
|
41
|
+
renderValue("", data, format);
|
|
42
|
+
}
|
|
34
43
|
}
|
|
35
44
|
//# sourceMappingURL=to-eval-case.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-eval-case.js","sourceRoot":"","sources":["../../src/commands/runs/to-eval-case.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,wEAAwE;AACxE,qEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"to-eval-case.js","sourceRoot":"","sources":["../../src/commands/runs/to-eval-case.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,wEAAwE;AACxE,qEAAqE;AACrE,0EAA0E;AAC1E,wEAAwE;AAGxE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAItE,MAAM,UAAU,sBAAsB,CAAC,IAAa;IAClD,MAAM,UAAU,GAAG,IAAI;SACpB,OAAO,CAAC,uBAAuB,CAAC;SAChC,WAAW,CAAC,yEAAyE,CAAC;SACtF,MAAM,CAAC,aAAa,EAAE,4DAA4D,CAAC;SACnF,MAAM,CAAC,eAAe,EAAE,iEAAiE,CAAC;SAC1F,MAAM,CAAC,wBAA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EAAE,CAAC;QACtB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;QACvH,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;AACH,CAAC"}
|
package/commands/runs/trace.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// `stigmer runs trace <run-id>` — show the run's tool-call structure.
|
|
2
2
|
// Thin handler: resolve the client and format, delegate to
|
|
3
|
-
// resources/run-trace.ts.
|
|
3
|
+
// resources/run-trace.ts.
|
|
4
4
|
import { ensureAuthenticated } from "../../config/index.js";
|
|
5
5
|
import { addReadFlags, readFormat } from "../shared.js";
|
|
6
6
|
export function registerRunsTrace(runs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../src/commands/runs/trace.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,2DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../src/commands/runs/trace.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,2DAA2D;AAC3D,0BAA0B;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,UAAU,iBAAiB,CAAC,IAAa;IAC7C,MAAM,KAAK,GAAG,IAAI;SACf,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,4CAA4C,CAAC;SACzD,MAAM,CAAC,CAAC,KAAa,EAAE,OAAoB,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7E,YAAY,CAAC,KAAK,CAAC,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,KAAa,EAAE,OAAoB;IACzD,iFAAiF;IACjF,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAgB,CAAC;IAElD,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,MAAM,CAAC,kBAAkB,CAAC;QAC1B,MAAM,CAAC,8BAA8B,CAAC;KACvC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;IAChC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEnC,MAAM,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC"}
|
package/commands/search.js
CHANGED
|
@@ -38,8 +38,7 @@ async function runSearch(type, query, options, command) {
|
|
|
38
38
|
]);
|
|
39
39
|
const client = connectBackend();
|
|
40
40
|
ensureAuthenticated(client.config);
|
|
41
|
-
// Search defaults to all accessible orgs; only an explicit --org scopes it
|
|
42
|
-
// (mirrors the Go CLI, which leaves the org empty unless overridden).
|
|
41
|
+
// Search defaults to all accessible orgs; only an explicit --org scopes it.
|
|
43
42
|
const org = globalOrg(command) ?? "";
|
|
44
43
|
const format = readFormat(options);
|
|
45
44
|
const outcome = await searchResources(client.stigmer, info.kind, query, {
|
|
@@ -49,7 +48,7 @@ async function runSearch(type, query, options, command) {
|
|
|
49
48
|
}, format);
|
|
50
49
|
process.stdout.write(outcome.rendered);
|
|
51
50
|
// The footer is human-only: appending it to json/yaml would corrupt the
|
|
52
|
-
// machine-readable payload
|
|
51
|
+
// machine-readable payload.
|
|
53
52
|
if (format !== "json" && format !== "yaml" && outcome.nextPageToken !== "") {
|
|
54
53
|
process.stdout.write(`\n${outcome.matches} results match.\n`);
|
|
55
54
|
// The token belongs to this query in this organization, so the command
|
package/commands/search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/commands/search.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,mEAAmE;AACnE,0EAA0E;AAC1E,6DAA6D;AAG7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAElE,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,aAAa,GAAG,GAAG,CAAC;AAO1B,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,MAAM,GAAG,OAAO;SACnB,OAAO,CAAC,uBAAuB,CAAC;SAChC,WAAW,CAAC,yDAAyD,CAAC;SACtE,MAAM,CAAC,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAClF,MAAM,CAAC,sBAAsB,EAAE,4DAA4D,CAAC;SAC5F,MAAM,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,OAAoB,EAAE,OAAgB,EAAE,EAAE,CAC9E,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CACzC,CAAC;IACJ,YAAY,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC;AAED,KAAK,UAAU,SAAS,CAAC,IAAY,EAAE,KAAa,EAAE,OAAoB,EAAE,OAAgB;IAC1F,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,UAAU,CAAC,0BAA0B,IAAI,4BAA4B,CAAC,CAAC;IACnF,CAA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file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/service-account/index.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,uBAAuB,CAAC;AAGvE,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAYD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0F7D"}
|
|
@@ -83,6 +83,7 @@ export function registerServiceAccount(program) {
|
|
|
83
83
|
writeList(output, format, ApiKeySchema, keys, {
|
|
84
84
|
empty: "API keys",
|
|
85
85
|
headers: resources.SERVICE_ACCOUNT_KEY_TABLE_HEADERS,
|
|
86
|
+
shrink: resources.SERVICE_ACCOUNT_KEY_TABLE_SHRINK,
|
|
86
87
|
rows: resources.serviceAccountKeyRows,
|
|
87
88
|
});
|
|
88
89
|
});
|
|
@@ -113,7 +114,8 @@ export function registerServiceAccount(program) {
|
|
|
113
114
|
addResultFlags(deleteCmd);
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
|
-
* A read verb's list: the protos as JSON or YAML, otherwise a table
|
|
117
|
+
* A read verb's list: the protos as JSON or YAML, otherwise a table fitted to
|
|
118
|
+
* the terminal (its `shrink` columns giving up width), or the
|
|
117
119
|
* standard empty-state line when there is nothing to show.
|
|
118
120
|
*/
|
|
119
121
|
function writeList(output, format, schema, items, table) {
|
|
@@ -127,7 +129,7 @@ function writeList(output, format, schema, items, table) {
|
|
|
127
129
|
process.stdout.write(output.renderEmpty(table.empty));
|
|
128
130
|
}
|
|
129
131
|
else {
|
|
130
|
-
process.stdout.write(output.renderTable(table.headers, table.rows(items)));
|
|
132
|
+
process.stdout.write(output.renderTable(table.headers, table.rows(items), { width: output.terminalWidth(), shrink: table.shrink }));
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
async function openSession(command) {
|
|
@@ -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,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,mBAAmB,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACtE,MAAM,CAAC,kBAAkB,CAAC;QAC1B,MAAM,CAAC,4BAA4B,CAAC;KACrC,CAAC,CAAC;IACH,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;IACnE,MAAM,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC;IAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** What `--help` says about how a run returns and the code it exits with. */
|
|
2
|
+
export declare const UNTIL_HELP = "\nHow it ends:\n On a terminal the session stays open for follow-ups until you leave\n (--until exit, the default); --until turn returns when the turn ends.\n Off a terminal, and with -o json, it returns when the turn ends.\n\nExit codes (the newest turn's):\n 0 the turn completed\n 1 the turn failed, was cancelled or was stopped\n 130 you left while the turn still works\n";
|
|
3
|
+
/** What `--help` says about the session a terminal opens. */
|
|
4
|
+
export declare const SESSION_HELP = "\nIn the session (on a terminal):\n Enter send the message\n \\ Enter, Ctrl+J, Alt+Enter start a new line (Shift+Enter where the terminal reports it)\n Up, Down earlier messages, kept per directory\n Esc stop the agent's turn; twice while it stops, end it now\n Ctrl+C clear the message; on an empty one, twice to leave\n (the agent keeps working: come back with stigmer resume)\n Shift+Tab, Ctrl+T switch plan and agent mode\n Ctrl+O expand tool calls and thinking\n ? list the keys and commands\n\nCommands:\n /help list the commands and keys\n /mode plan|agent switch the mode\n /stop stop the agent's turn\n /exit leave; the agent keeps working\n @<path> mention a file in the session's folder\n";
|
|
5
|
+
//# sourceMappingURL=session-help.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-help.d.ts","sourceRoot":"","sources":["../src/commands/session-help.ts"],"names":[],"mappings":"AAMA,6EAA6E;AAC7E,eAAO,MAAM,UAAU,yYAUtB,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,YAAY,29BAkBxB,CAAC"}
|