@stigmer/cli 0.1.0-dev.20261017020314.g644422724c27
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/LICENSE +194 -0
- package/README.md +45 -0
- package/auth/auth0.d.ts +19 -0
- package/auth/auth0.d.ts.map +1 -0
- package/auth/auth0.js +39 -0
- package/auth/auth0.js.map +1 -0
- package/auth/callback-server.d.ts +18 -0
- package/auth/callback-server.d.ts.map +1 -0
- package/auth/callback-server.js +77 -0
- package/auth/callback-server.js.map +1 -0
- package/auth/index.d.ts +5 -0
- package/auth/index.d.ts.map +1 -0
- package/auth/index.js +6 -0
- package/auth/index.js.map +1 -0
- package/auth/login.d.ts +2 -0
- package/auth/login.d.ts.map +1 -0
- package/auth/login.js +81 -0
- package/auth/login.js.map +1 -0
- package/auth/pages.d.ts +7 -0
- package/auth/pages.d.ts.map +1 -0
- package/auth/pages.js +21 -0
- package/auth/pages.js.map +1 -0
- package/auth/pkce.d.ts +7 -0
- package/auth/pkce.d.ts.map +1 -0
- package/auth/pkce.js +22 -0
- package/auth/pkce.js.map +1 -0
- package/auth/token.d.ts +38 -0
- package/auth/token.d.ts.map +1 -0
- package/auth/token.js +120 -0
- package/auth/token.js.map +1 -0
- package/backend.d.ts +5 -0
- package/backend.d.ts.map +1 -0
- package/backend.js +14 -0
- package/backend.js.map +1 -0
- package/cli/stigmer.d.ts +3 -0
- package/cli/stigmer.d.ts.map +1 -0
- package/cli/stigmer.js +14 -0
- package/cli/stigmer.js.map +1 -0
- package/client/client.d.ts +44 -0
- package/client/client.d.ts.map +1 -0
- package/client/client.js +82 -0
- package/client/client.js.map +1 -0
- package/client/index.d.ts +2 -0
- package/client/index.d.ts.map +1 -0
- package/client/index.js +3 -0
- package/client/index.js.map +1 -0
- package/client/organizations.d.ts +41 -0
- package/client/organizations.d.ts.map +1 -0
- package/client/organizations.js +86 -0
- package/client/organizations.js.map +1 -0
- package/client/single-org.d.ts +16 -0
- package/client/single-org.d.ts.map +1 -0
- package/client/single-org.js +35 -0
- package/client/single-org.js.map +1 -0
- package/commands/access-history/index.d.ts +3 -0
- package/commands/access-history/index.d.ts.map +1 -0
- package/commands/access-history/index.js +99 -0
- package/commands/access-history/index.js.map +1 -0
- package/commands/agent-exec-flags.d.ts +30 -0
- package/commands/agent-exec-flags.d.ts.map +1 -0
- package/commands/agent-exec-flags.js +49 -0
- package/commands/agent-exec-flags.js.map +1 -0
- package/commands/agent.d.ts +3 -0
- package/commands/agent.d.ts.map +1 -0
- package/commands/agent.js +43 -0
- package/commands/agent.js.map +1 -0
- package/commands/apikey/duration.d.ts +2 -0
- package/commands/apikey/duration.d.ts.map +1 -0
- package/commands/apikey/duration.js +30 -0
- package/commands/apikey/duration.js.map +1 -0
- package/commands/apikey/index.d.ts +18 -0
- package/commands/apikey/index.d.ts.map +1 -0
- package/commands/apikey/index.js +198 -0
- package/commands/apikey/index.js.map +1 -0
- package/commands/apply.d.ts +3 -0
- package/commands/apply.d.ts.map +1 -0
- package/commands/apply.js +146 -0
- package/commands/apply.js.map +1 -0
- package/commands/auth/index.d.ts +3 -0
- package/commands/auth/index.d.ts.map +1 -0
- package/commands/auth/index.js +58 -0
- package/commands/auth/index.js.map +1 -0
- package/commands/auth/login.d.ts +13 -0
- package/commands/auth/login.d.ts.map +1 -0
- package/commands/auth/login.js +58 -0
- package/commands/auth/login.js.map +1 -0
- package/commands/auth/whoami.d.ts +22 -0
- package/commands/auth/whoami.d.ts.map +1 -0
- package/commands/auth/whoami.js +123 -0
- package/commands/auth/whoami.js.map +1 -0
- package/commands/channel.d.ts +3 -0
- package/commands/channel.d.ts.map +1 -0
- package/commands/channel.js +114 -0
- package/commands/channel.js.map +1 -0
- package/commands/completion.d.ts +3 -0
- package/commands/completion.d.ts.map +1 -0
- package/commands/completion.js +80 -0
- package/commands/completion.js.map +1 -0
- package/commands/config/backend.d.ts +3 -0
- package/commands/config/backend.d.ts.map +1 -0
- package/commands/config/backend.js +171 -0
- package/commands/config/backend.js.map +1 -0
- package/commands/config/context.d.ts +3 -0
- package/commands/config/context.d.ts.map +1 -0
- package/commands/config/context.js +88 -0
- package/commands/config/context.js.map +1 -0
- package/commands/config/index.d.ts +3 -0
- package/commands/config/index.d.ts.map +1 -0
- package/commands/config/index.js +13 -0
- package/commands/config/index.js.map +1 -0
- package/commands/config/kv.d.ts +3 -0
- package/commands/config/kv.d.ts.map +1 -0
- package/commands/config/kv.js +39 -0
- package/commands/config/kv.js.map +1 -0
- package/commands/connect.d.ts +3 -0
- package/commands/connect.d.ts.map +1 -0
- package/commands/connect.js +74 -0
- package/commands/connect.js.map +1 -0
- package/commands/delete.d.ts +3 -0
- package/commands/delete.d.ts.map +1 -0
- package/commands/delete.js +44 -0
- package/commands/delete.js.map +1 -0
- package/commands/down.d.ts +3 -0
- package/commands/down.d.ts.map +1 -0
- package/commands/down.js +23 -0
- package/commands/down.js.map +1 -0
- package/commands/download.d.ts +3 -0
- package/commands/download.d.ts.map +1 -0
- package/commands/download.js +79 -0
- package/commands/download.js.map +1 -0
- package/commands/eval.d.ts +3 -0
- package/commands/eval.d.ts.map +1 -0
- package/commands/eval.js +115 -0
- package/commands/eval.js.map +1 -0
- package/commands/get.d.ts +3 -0
- package/commands/get.d.ts.map +1 -0
- package/commands/get.js +113 -0
- package/commands/get.js.map +1 -0
- package/commands/install.d.ts +3 -0
- package/commands/install.d.ts.map +1 -0
- package/commands/install.js +68 -0
- package/commands/install.js.map +1 -0
- package/commands/internal-daemon.d.ts +3 -0
- package/commands/internal-daemon.d.ts.map +1 -0
- package/commands/internal-daemon.js +15 -0
- package/commands/internal-daemon.js.map +1 -0
- package/commands/list.d.ts +10 -0
- package/commands/list.d.ts.map +1 -0
- package/commands/list.js +131 -0
- package/commands/list.js.map +1 -0
- package/commands/logs.d.ts +3 -0
- package/commands/logs.d.ts.map +1 -0
- package/commands/logs.js +59 -0
- package/commands/logs.js.map +1 -0
- package/commands/marketplace.d.ts +3 -0
- package/commands/marketplace.d.ts.map +1 -0
- package/commands/marketplace.js +94 -0
- package/commands/marketplace.js.map +1 -0
- package/commands/mcp-server.d.ts +22 -0
- package/commands/mcp-server.d.ts.map +1 -0
- package/commands/mcp-server.js +105 -0
- package/commands/mcp-server.js.map +1 -0
- package/commands/mcp.d.ts +3 -0
- package/commands/mcp.d.ts.map +1 -0
- package/commands/mcp.js +58 -0
- package/commands/mcp.js.map +1 -0
- package/commands/push.d.ts +27 -0
- package/commands/push.d.ts.map +1 -0
- package/commands/push.js +401 -0
- package/commands/push.js.map +1 -0
- package/commands/reset.d.ts +3 -0
- package/commands/reset.d.ts.map +1 -0
- package/commands/reset.js +45 -0
- package/commands/reset.js.map +1 -0
- package/commands/resume.d.ts +3 -0
- package/commands/resume.d.ts.map +1 -0
- package/commands/resume.js +90 -0
- package/commands/resume.js.map +1 -0
- package/commands/run.d.ts +3 -0
- package/commands/run.d.ts.map +1 -0
- package/commands/run.js +158 -0
- package/commands/run.js.map +1 -0
- package/commands/runs/approve.d.ts +3 -0
- package/commands/runs/approve.d.ts.map +1 -0
- package/commands/runs/approve.js +37 -0
- package/commands/runs/approve.js.map +1 -0
- package/commands/runs/control.d.ts +3 -0
- package/commands/runs/control.d.ts.map +1 -0
- package/commands/runs/control.js +71 -0
- package/commands/runs/control.js.map +1 -0
- package/commands/runs/index.d.ts +3 -0
- package/commands/runs/index.d.ts.map +1 -0
- package/commands/runs/index.js +28 -0
- package/commands/runs/index.js.map +1 -0
- package/commands/runs/logs.d.ts +3 -0
- package/commands/runs/logs.d.ts.map +1 -0
- package/commands/runs/logs.js +33 -0
- package/commands/runs/logs.js.map +1 -0
- package/commands/runs/scores.d.ts +3 -0
- package/commands/runs/scores.d.ts.map +1 -0
- package/commands/runs/scores.js +26 -0
- package/commands/runs/scores.js.map +1 -0
- package/commands/runs/to-eval-case.d.ts +3 -0
- package/commands/runs/to-eval-case.d.ts.map +1 -0
- package/commands/runs/to-eval-case.js +35 -0
- package/commands/runs/to-eval-case.js.map +1 -0
- package/commands/runs/trace.d.ts +3 -0
- package/commands/runs/trace.d.ts.map +1 -0
- package/commands/runs/trace.js +24 -0
- package/commands/runs/trace.js.map +1 -0
- package/commands/schedule.d.ts +3 -0
- package/commands/schedule.d.ts.map +1 -0
- package/commands/schedule.js +57 -0
- package/commands/schedule.js.map +1 -0
- package/commands/search.d.ts +3 -0
- package/commands/search.d.ts.map +1 -0
- package/commands/search.js +76 -0
- package/commands/search.js.map +1 -0
- package/commands/service-account/index.d.ts +7 -0
- package/commands/service-account/index.d.ts.map +1 -0
- package/commands/service-account/index.js +144 -0
- package/commands/service-account/index.js.map +1 -0
- package/commands/setup.d.ts +3 -0
- package/commands/setup.d.ts.map +1 -0
- package/commands/setup.js +76 -0
- package/commands/setup.js.map +1 -0
- package/commands/shared.d.ts +15 -0
- package/commands/shared.d.ts.map +1 -0
- package/commands/shared.js +34 -0
- package/commands/shared.js.map +1 -0
- package/commands/status.d.ts +3 -0
- package/commands/status.d.ts.map +1 -0
- package/commands/status.js +18 -0
- package/commands/status.js.map +1 -0
- package/commands/tag.d.ts +3 -0
- package/commands/tag.d.ts.map +1 -0
- package/commands/tag.js +24 -0
- package/commands/tag.js.map +1 -0
- package/commands/up.d.ts +3 -0
- package/commands/up.d.ts.map +1 -0
- package/commands/up.js +84 -0
- package/commands/up.js.map +1 -0
- package/commands/usage.d.ts +5 -0
- package/commands/usage.d.ts.map +1 -0
- package/commands/usage.js +92 -0
- package/commands/usage.js.map +1 -0
- package/commands/validate.d.ts +3 -0
- package/commands/validate.d.ts.map +1 -0
- package/commands/validate.js +95 -0
- package/commands/validate.js.map +1 -0
- package/commands/vault.d.ts +3 -0
- package/commands/vault.d.ts.map +1 -0
- package/commands/vault.js +143 -0
- package/commands/vault.js.map +1 -0
- package/commands/version.d.ts +3 -0
- package/commands/version.d.ts.map +1 -0
- package/commands/version.js +11 -0
- package/commands/version.js.map +1 -0
- package/config/config.d.ts +110 -0
- package/config/config.d.ts.map +1 -0
- package/config/config.js +199 -0
- package/config/config.js.map +1 -0
- package/config/index.d.ts +5 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +6 -0
- package/config/index.js.map +1 -0
- package/config/keys.d.ts +6 -0
- package/config/keys.d.ts.map +1 -0
- package/config/keys.js +80 -0
- package/config/keys.js.map +1 -0
- package/config/paths.d.ts +10 -0
- package/config/paths.d.ts.map +1 -0
- package/config/paths.js +21 -0
- package/config/paths.js.map +1 -0
- package/config/resolve.d.ts +65 -0
- package/config/resolve.d.ts.map +1 -0
- package/config/resolve.js +160 -0
- package/config/resolve.js.map +1 -0
- package/errors/classify.d.ts +17 -0
- package/errors/classify.d.ts.map +1 -0
- package/errors/classify.js +204 -0
- package/errors/classify.js.map +1 -0
- package/errors/cli-exit-error.d.ts +6 -0
- package/errors/cli-exit-error.d.ts.map +1 -0
- package/errors/cli-exit-error.js +15 -0
- package/errors/cli-exit-error.js.map +1 -0
- package/errors/exit-codes.d.ts +10 -0
- package/errors/exit-codes.d.ts.map +1 -0
- package/errors/exit-codes.js +15 -0
- package/errors/exit-codes.js.map +1 -0
- package/errors/handle.d.ts +14 -0
- package/errors/handle.d.ts.map +1 -0
- package/errors/handle.js +46 -0
- package/errors/handle.js.map +1 -0
- package/errors/index.d.ts +6 -0
- package/errors/index.d.ts.map +1 -0
- package/errors/index.js +7 -0
- package/errors/index.js.map +1 -0
- package/errors/usage-error.d.ts +5 -0
- package/errors/usage-error.d.ts.map +1 -0
- package/errors/usage-error.js +13 -0
- package/errors/usage-error.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +8 -0
- package/index.js.map +1 -0
- package/local/artifact.d.ts +77 -0
- package/local/artifact.d.ts.map +1 -0
- package/local/artifact.js +268 -0
- package/local/artifact.js.map +1 -0
- package/local/constants.d.ts +41 -0
- package/local/constants.d.ts.map +1 -0
- package/local/constants.js +48 -0
- package/local/constants.js.map +1 -0
- package/local/daemon/components.d.ts +20 -0
- package/local/daemon/components.d.ts.map +1 -0
- package/local/daemon/components.js +140 -0
- package/local/daemon/components.js.map +1 -0
- package/local/daemon/env.d.ts +77 -0
- package/local/daemon/env.d.ts.map +1 -0
- package/local/daemon/env.js +107 -0
- package/local/daemon/env.js.map +1 -0
- package/local/daemon/host.d.ts +15 -0
- package/local/daemon/host.d.ts.map +1 -0
- package/local/daemon/host.js +115 -0
- package/local/daemon/host.js.map +1 -0
- package/local/daemon/index.d.ts +8 -0
- package/local/daemon/index.d.ts.map +1 -0
- package/local/daemon/index.js +8 -0
- package/local/daemon/index.js.map +1 -0
- package/local/daemon/launch.d.ts +38 -0
- package/local/daemon/launch.d.ts.map +1 -0
- package/local/daemon/launch.js +261 -0
- package/local/daemon/launch.js.map +1 -0
- package/local/daemon/process.d.ts +42 -0
- package/local/daemon/process.d.ts.map +1 -0
- package/local/daemon/process.js +166 -0
- package/local/daemon/process.js.map +1 -0
- package/local/daemon/supervisor.d.ts +56 -0
- package/local/daemon/supervisor.d.ts.map +1 -0
- package/local/daemon/supervisor.js +211 -0
- package/local/daemon/supervisor.js.map +1 -0
- package/local/daemon/types.d.ts +65 -0
- package/local/daemon/types.d.ts.map +1 -0
- package/local/daemon/types.js +9 -0
- package/local/daemon/types.js.map +1 -0
- package/local/llm-config.d.ts +24 -0
- package/local/llm-config.d.ts.map +1 -0
- package/local/llm-config.js +74 -0
- package/local/llm-config.js.map +1 -0
- package/local/logs/tail.d.ts +19 -0
- package/local/logs/tail.d.ts.map +1 -0
- package/local/logs/tail.js +86 -0
- package/local/logs/tail.js.map +1 -0
- package/local/logs/view.d.ts +20 -0
- package/local/logs/view.d.ts.map +1 -0
- package/local/logs/view.js +50 -0
- package/local/logs/view.js.map +1 -0
- package/local/net/tcp.d.ts +23 -0
- package/local/net/tcp.d.ts.map +1 -0
- package/local/net/tcp.js +47 -0
- package/local/net/tcp.js.map +1 -0
- package/local/operator-config.d.ts +28 -0
- package/local/operator-config.d.ts.map +1 -0
- package/local/operator-config.js +77 -0
- package/local/operator-config.js.map +1 -0
- package/local/paths.d.ts +47 -0
- package/local/paths.d.ts.map +1 -0
- package/local/paths.js +83 -0
- package/local/paths.js.map +1 -0
- package/local/reset.d.ts +14 -0
- package/local/reset.d.ts.map +1 -0
- package/local/reset.js +57 -0
- package/local/reset.js.map +1 -0
- package/local/runtime/index.d.ts +5 -0
- package/local/runtime/index.d.ts.map +1 -0
- package/local/runtime/index.js +8 -0
- package/local/runtime/index.js.map +1 -0
- package/local/runtime/node.d.ts +17 -0
- package/local/runtime/node.d.ts.map +1 -0
- package/local/runtime/node.js +139 -0
- package/local/runtime/node.js.map +1 -0
- package/local/runtime/runner.d.ts +45 -0
- package/local/runtime/runner.d.ts.map +1 -0
- package/local/runtime/runner.js +131 -0
- package/local/runtime/runner.js.map +1 -0
- package/local/runtime/runtimes-install.d.ts +13 -0
- package/local/runtime/runtimes-install.d.ts.map +1 -0
- package/local/runtime/runtimes-install.js +63 -0
- package/local/runtime/runtimes-install.js.map +1 -0
- package/local/runtime/server.d.ts +40 -0
- package/local/runtime/server.d.ts.map +1 -0
- package/local/runtime/server.js +144 -0
- package/local/runtime/server.js.map +1 -0
- package/local/runtime/which.d.ts +3 -0
- package/local/runtime/which.d.ts.map +1 -0
- package/local/runtime/which.js +30 -0
- package/local/runtime/which.js.map +1 -0
- package/local/setup/prompt.d.ts +8 -0
- package/local/setup/prompt.d.ts.map +1 -0
- package/local/setup/prompt.js +63 -0
- package/local/setup/prompt.js.map +1 -0
- package/local/setup/wizard.d.ts +43 -0
- package/local/setup/wizard.d.ts.map +1 -0
- package/local/setup/wizard.js +119 -0
- package/local/setup/wizard.js.map +1 -0
- package/local/state/health-state.d.ts +26 -0
- package/local/state/health-state.d.ts.map +1 -0
- package/local/state/health-state.js +34 -0
- package/local/state/health-state.js.map +1 -0
- package/local/state/index.d.ts +7 -0
- package/local/state/index.d.ts.map +1 -0
- package/local/state/index.js +8 -0
- package/local/state/index.js.map +1 -0
- package/local/state/lock.d.ts +13 -0
- package/local/state/lock.d.ts.map +1 -0
- package/local/state/lock.js +84 -0
- package/local/state/lock.js.map +1 -0
- package/local/state/log-rotation.d.ts +17 -0
- package/local/state/log-rotation.d.ts.map +1 -0
- package/local/state/log-rotation.js +101 -0
- package/local/state/log-rotation.js.map +1 -0
- package/local/state/pidfile.d.ts +11 -0
- package/local/state/pidfile.d.ts.map +1 -0
- package/local/state/pidfile.js +35 -0
- package/local/state/pidfile.js.map +1 -0
- package/local/state/proc.d.ts +29 -0
- package/local/state/proc.d.ts.map +1 -0
- package/local/state/proc.js +84 -0
- package/local/state/proc.js.map +1 -0
- package/local/state/startup-config.d.ts +24 -0
- package/local/state/startup-config.d.ts.map +1 -0
- package/local/state/startup-config.js +36 -0
- package/local/state/startup-config.js.map +1 -0
- package/local/status.d.ts +9 -0
- package/local/status.d.ts.map +1 -0
- package/local/status.js +170 -0
- package/local/status.js.map +1 -0
- package/local/temporal/download.d.ts +42 -0
- package/local/temporal/download.d.ts.map +1 -0
- package/local/temporal/download.js +55 -0
- package/local/temporal/download.js.map +1 -0
- package/local/temporal/index.d.ts +5 -0
- package/local/temporal/index.d.ts.map +1 -0
- package/local/temporal/index.js +6 -0
- package/local/temporal/index.js.map +1 -0
- package/local/temporal/inspect.d.ts +15 -0
- package/local/temporal/inspect.d.ts.map +1 -0
- package/local/temporal/inspect.js +72 -0
- package/local/temporal/inspect.js.map +1 -0
- package/local/temporal/manager.d.ts +62 -0
- package/local/temporal/manager.d.ts.map +1 -0
- package/local/temporal/manager.js +221 -0
- package/local/temporal/manager.js.map +1 -0
- package/local/temporal/supervisor.d.ts +34 -0
- package/local/temporal/supervisor.d.ts.map +1 -0
- package/local/temporal/supervisor.js +83 -0
- package/local/temporal/supervisor.js.map +1 -0
- package/local/webconsole/index.d.ts +3 -0
- package/local/webconsole/index.d.ts.map +1 -0
- package/local/webconsole/index.js +27 -0
- package/local/webconsole/index.js.map +1 -0
- package/logger.d.ts +13 -0
- package/logger.d.ts.map +1 -0
- package/logger.js +35 -0
- package/logger.js.map +1 -0
- package/marketplace/config.d.ts +61 -0
- package/marketplace/config.d.ts.map +1 -0
- package/marketplace/config.js +179 -0
- package/marketplace/config.js.map +1 -0
- package/marketplace/github.d.ts +68 -0
- package/marketplace/github.d.ts.map +1 -0
- package/marketplace/github.js +272 -0
- package/marketplace/github.js.map +1 -0
- package/marketplace/index.d.ts +8 -0
- package/marketplace/index.d.ts.map +1 -0
- package/marketplace/index.js +12 -0
- package/marketplace/index.js.map +1 -0
- package/marketplace/install.d.ts +35 -0
- package/marketplace/install.d.ts.map +1 -0
- package/marketplace/install.js +156 -0
- package/marketplace/install.js.map +1 -0
- package/marketplace/materialize.d.ts +19 -0
- package/marketplace/materialize.d.ts.map +1 -0
- package/marketplace/materialize.js +53 -0
- package/marketplace/materialize.js.map +1 -0
- package/marketplace/official.d.ts +28 -0
- package/marketplace/official.d.ts.map +1 -0
- package/marketplace/official.js +87 -0
- package/marketplace/official.js.map +1 -0
- package/marketplace/read.d.ts +17 -0
- package/marketplace/read.d.ts.map +1 -0
- package/marketplace/read.js +44 -0
- package/marketplace/read.js.map +1 -0
- package/marketplace/ref.d.ts +13 -0
- package/marketplace/ref.d.ts.map +1 -0
- package/marketplace/ref.js +54 -0
- package/marketplace/ref.js.map +1 -0
- package/marketplace/render.d.ts +22 -0
- package/marketplace/render.d.ts.map +1 -0
- package/marketplace/render.js +115 -0
- package/marketplace/render.js.map +1 -0
- package/output/command-result.d.ts +55 -0
- package/output/command-result.d.ts.map +1 -0
- package/output/command-result.js +147 -0
- package/output/command-result.js.map +1 -0
- package/output/confirm.d.ts +22 -0
- package/output/confirm.d.ts.map +1 -0
- package/output/confirm.js +43 -0
- package/output/confirm.js.map +1 -0
- package/output/format.d.ts +22 -0
- package/output/format.d.ts.map +1 -0
- package/output/format.js +72 -0
- package/output/format.js.map +1 -0
- package/output/index.d.ts +7 -0
- package/output/index.d.ts.map +1 -0
- package/output/index.js +8 -0
- package/output/index.js.map +1 -0
- package/output/ndjson.d.ts +7 -0
- package/output/ndjson.d.ts.map +1 -0
- package/output/ndjson.js +13 -0
- package/output/ndjson.js.map +1 -0
- package/output/proto.d.ts +12 -0
- package/output/proto.d.ts.map +1 -0
- package/output/proto.js +34 -0
- package/output/proto.js.map +1 -0
- package/output/style.d.ts +19 -0
- package/output/style.d.ts.map +1 -0
- package/output/style.js +44 -0
- package/output/style.js.map +1 -0
- package/output/table.d.ts +5 -0
- package/output/table.d.ts.map +1 -0
- package/output/table.js +43 -0
- package/output/table.js.map +1 -0
- package/package.json +50 -0
- package/program.d.ts +17 -0
- package/program.d.ts.map +1 -0
- package/program.js +195 -0
- package/program.js.map +1 -0
- package/registry/aliases.d.ts +21 -0
- package/registry/aliases.d.ts.map +1 -0
- package/registry/aliases.js +99 -0
- package/registry/aliases.js.map +1 -0
- package/registry/index.d.ts +6 -0
- package/registry/index.d.ts.map +1 -0
- package/registry/index.js +7 -0
- package/registry/index.js.map +1 -0
- package/registry/metadata.d.ts +27 -0
- package/registry/metadata.d.ts.map +1 -0
- package/registry/metadata.js +152 -0
- package/registry/metadata.js.map +1 -0
- package/registry/registry.d.ts +56 -0
- package/registry/registry.d.ts.map +1 -0
- package/registry/registry.js +85 -0
- package/registry/registry.js.map +1 -0
- package/registry/verb-support.d.ts +5 -0
- package/registry/verb-support.d.ts.map +1 -0
- package/registry/verb-support.js +112 -0
- package/registry/verb-support.js.map +1 -0
- package/registry/verbs.d.ts +16 -0
- package/registry/verbs.d.ts.map +1 -0
- package/registry/verbs.js +35 -0
- package/registry/verbs.js.map +1 -0
- package/resources/access-history.d.ts +28 -0
- package/resources/access-history.d.ts.map +1 -0
- package/resources/access-history.js +124 -0
- package/resources/access-history.js.map +1 -0
- package/resources/agent/quality.d.ts +40 -0
- package/resources/agent/quality.d.ts.map +1 -0
- package/resources/agent/quality.js +338 -0
- package/resources/agent/quality.js.map +1 -0
- package/resources/agent/resolve.d.ts +5 -0
- package/resources/agent/resolve.d.ts.map +1 -0
- package/resources/agent/resolve.js +23 -0
- package/resources/agent/resolve.js.map +1 -0
- package/resources/apply/apply.d.ts +62 -0
- package/resources/apply/apply.d.ts.map +1 -0
- package/resources/apply/apply.js +371 -0
- package/resources/apply/apply.js.map +1 -0
- package/resources/apply/handlers.d.ts +54 -0
- package/resources/apply/handlers.d.ts.map +1 -0
- package/resources/apply/handlers.js +56 -0
- package/resources/apply/handlers.js.map +1 -0
- package/resources/channel.d.ts +52 -0
- package/resources/channel.d.ts.map +1 -0
- package/resources/channel.js +404 -0
- package/resources/channel.js.map +1 -0
- package/resources/connect/address.d.ts +5 -0
- package/resources/connect/address.d.ts.map +1 -0
- package/resources/connect/address.js +49 -0
- package/resources/connect/address.js.map +1 -0
- package/resources/connect/connect.d.ts +30 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +163 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/discover.d.ts +7 -0
- package/resources/connect/discover.d.ts.map +1 -0
- package/resources/connect/discover.js +122 -0
- package/resources/connect/discover.js.map +1 -0
- package/resources/connect/display.d.ts +10 -0
- package/resources/connect/display.d.ts.map +1 -0
- package/resources/connect/display.js +50 -0
- package/resources/connect/display.js.map +1 -0
- package/resources/connect/sign-in.d.ts +48 -0
- package/resources/connect/sign-in.d.ts.map +1 -0
- package/resources/connect/sign-in.js +158 -0
- package/resources/connect/sign-in.js.map +1 -0
- package/resources/cursor-pages.d.ts +9 -0
- package/resources/cursor-pages.d.ts.map +1 -0
- package/resources/cursor-pages.js +25 -0
- package/resources/cursor-pages.js.map +1 -0
- package/resources/delete.d.ts +34 -0
- package/resources/delete.d.ts.map +1 -0
- package/resources/delete.js +260 -0
- package/resources/delete.js.map +1 -0
- package/resources/documents.d.ts +16 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +89 -0
- package/resources/documents.js.map +1 -0
- package/resources/download.d.ts +16 -0
- package/resources/download.d.ts.map +1 -0
- package/resources/download.js +101 -0
- package/resources/download.js.map +1 -0
- package/resources/eval-run/follow.d.ts +67 -0
- package/resources/eval-run/follow.d.ts.map +1 -0
- package/resources/eval-run/follow.js +285 -0
- package/resources/eval-run/follow.js.map +1 -0
- package/resources/eval-run/node-io.d.ts +4 -0
- package/resources/eval-run/node-io.d.ts.map +1 -0
- package/resources/eval-run/node-io.js +39 -0
- package/resources/eval-run/node-io.js.map +1 -0
- package/resources/eval-run/options.d.ts +116 -0
- package/resources/eval-run/options.d.ts.map +1 -0
- package/resources/eval-run/options.js +265 -0
- package/resources/eval-run/options.js.map +1 -0
- package/resources/eval-run/report.d.ts +64 -0
- package/resources/eval-run/report.d.ts.map +1 -0
- package/resources/eval-run/report.js +434 -0
- package/resources/eval-run/report.js.map +1 -0
- package/resources/eval-run/run.d.ts +10 -0
- package/resources/eval-run/run.d.ts.map +1 -0
- package/resources/eval-run/run.js +158 -0
- package/resources/eval-run/run.js.map +1 -0
- package/resources/eval.d.ts +69 -0
- package/resources/eval.d.ts.map +1 -0
- package/resources/eval.js +225 -0
- package/resources/eval.js.map +1 -0
- package/resources/get-bindings.d.ts +13 -0
- package/resources/get-bindings.d.ts.map +1 -0
- package/resources/get-bindings.js +93 -0
- package/resources/get-bindings.js.map +1 -0
- package/resources/get.d.ts +6 -0
- package/resources/get.d.ts.map +1 -0
- package/resources/get.js +43 -0
- package/resources/get.js.map +1 -0
- package/resources/git.d.ts +15 -0
- package/resources/git.d.ts.map +1 -0
- package/resources/git.js +69 -0
- package/resources/git.js.map +1 -0
- package/resources/ignore/index.d.ts +3 -0
- package/resources/ignore/index.d.ts.map +1 -0
- package/resources/ignore/index.js +6 -0
- package/resources/ignore/index.js.map +1 -0
- package/resources/ignore/matcher.d.ts +11 -0
- package/resources/ignore/matcher.d.ts.map +1 -0
- package/resources/ignore/matcher.js +41 -0
- package/resources/ignore/matcher.js.map +1 -0
- package/resources/list.d.ts +16 -0
- package/resources/list.d.ts.map +1 -0
- package/resources/list.js +453 -0
- package/resources/list.js.map +1 -0
- package/resources/mcp/add.d.ts +18 -0
- package/resources/mcp/add.d.ts.map +1 -0
- package/resources/mcp/add.js +95 -0
- package/resources/mcp/add.js.map +1 -0
- package/resources/mcp/placeholder-resolver.d.ts +19 -0
- package/resources/mcp/placeholder-resolver.d.ts.map +1 -0
- package/resources/mcp/placeholder-resolver.js +52 -0
- package/resources/mcp/placeholder-resolver.js.map +1 -0
- package/resources/picker/ink.d.ts +45 -0
- package/resources/picker/ink.d.ts.map +1 -0
- package/resources/picker/ink.js +45 -0
- package/resources/picker/ink.js.map +1 -0
- package/resources/picker/tty.d.ts +19 -0
- package/resources/picker/tty.d.ts.map +1 -0
- package/resources/picker/tty.js +21 -0
- package/resources/picker/tty.js.map +1 -0
- package/resources/plugin.d.ts +131 -0
- package/resources/plugin.d.ts.map +1 -0
- package/resources/plugin.js +382 -0
- package/resources/plugin.js.map +1 -0
- package/resources/reference.d.ts +44 -0
- package/resources/reference.d.ts.map +1 -0
- package/resources/reference.js +152 -0
- package/resources/reference.js.map +1 -0
- package/resources/render.d.ts +52 -0
- package/resources/render.d.ts.map +1 -0
- package/resources/render.js +135 -0
- package/resources/render.js.map +1 -0
- package/resources/run/agent-exec.d.ts +16 -0
- package/resources/run/agent-exec.d.ts.map +1 -0
- package/resources/run/agent-exec.js +89 -0
- package/resources/run/agent-exec.js.map +1 -0
- package/resources/run/attachments.d.ts +24 -0
- package/resources/run/attachments.d.ts.map +1 -0
- package/resources/run/attachments.js +237 -0
- package/resources/run/attachments.js.map +1 -0
- package/resources/run/create.d.ts +57 -0
- package/resources/run/create.d.ts.map +1 -0
- package/resources/run/create.js +112 -0
- package/resources/run/create.js.map +1 -0
- package/resources/run/epilogue.d.ts +9 -0
- package/resources/run/epilogue.d.ts.map +1 -0
- package/resources/run/epilogue.js +172 -0
- package/resources/run/epilogue.js.map +1 -0
- package/resources/run/header.d.ts +31 -0
- package/resources/run/header.d.ts.map +1 -0
- package/resources/run/header.js +54 -0
- package/resources/run/header.js.map +1 -0
- package/resources/run/plugins.d.ts +11 -0
- package/resources/run/plugins.d.ts.map +1 -0
- package/resources/run/plugins.js +18 -0
- package/resources/run/plugins.js.map +1 -0
- package/resources/run/prepare.d.ts +149 -0
- package/resources/run/prepare.d.ts.map +1 -0
- package/resources/run/prepare.js +180 -0
- package/resources/run/prepare.js.map +1 -0
- package/resources/run/references.d.ts +22 -0
- package/resources/run/references.d.ts.map +1 -0
- package/resources/run/references.js +56 -0
- package/resources/run/references.js.map +1 -0
- package/resources/run/resolve.d.ts +5 -0
- package/resources/run/resolve.d.ts.map +1 -0
- package/resources/run/resolve.js +16 -0
- package/resources/run/resolve.js.map +1 -0
- package/resources/run/resume.d.ts +12 -0
- package/resources/run/resume.d.ts.map +1 -0
- package/resources/run/resume.js +97 -0
- package/resources/run/resume.js.map +1 -0
- package/resources/run/stream.d.ts +24 -0
- package/resources/run/stream.d.ts.map +1 -0
- package/resources/run/stream.js +74 -0
- package/resources/run/stream.js.map +1 -0
- package/resources/run/vaults.d.ts +11 -0
- package/resources/run/vaults.d.ts.map +1 -0
- package/resources/run/vaults.js +19 -0
- package/resources/run/vaults.js.map +1 -0
- package/resources/run/workspace.d.ts +17 -0
- package/resources/run/workspace.d.ts.map +1 -0
- package/resources/run/workspace.js +147 -0
- package/resources/run/workspace.js.map +1 -0
- package/resources/run-approve.d.ts +18 -0
- package/resources/run-approve.d.ts.map +1 -0
- package/resources/run-approve.js +72 -0
- package/resources/run-approve.js.map +1 -0
- package/resources/run-control.d.ts +19 -0
- package/resources/run-control.d.ts.map +1 -0
- package/resources/run-control.js +37 -0
- package/resources/run-control.js.map +1 -0
- package/resources/run-format.d.ts +15 -0
- package/resources/run-format.d.ts.map +1 -0
- package/resources/run-format.js +49 -0
- package/resources/run-format.js.map +1 -0
- package/resources/run-logs.d.ts +17 -0
- package/resources/run-logs.d.ts.map +1 -0
- package/resources/run-logs.js +105 -0
- package/resources/run-logs.js.map +1 -0
- package/resources/run-scores.d.ts +20 -0
- package/resources/run-scores.d.ts.map +1 -0
- package/resources/run-scores.js +132 -0
- package/resources/run-scores.js.map +1 -0
- package/resources/run-to-eval-case.d.ts +24 -0
- package/resources/run-to-eval-case.d.ts.map +1 -0
- package/resources/run-to-eval-case.js +113 -0
- package/resources/run-to-eval-case.js.map +1 -0
- package/resources/run-trace.d.ts +10 -0
- package/resources/run-trace.d.ts.map +1 -0
- package/resources/run-trace.js +81 -0
- package/resources/run-trace.js.map +1 -0
- package/resources/runs.d.ts +45 -0
- package/resources/runs.d.ts.map +1 -0
- package/resources/runs.js +123 -0
- package/resources/runs.js.map +1 -0
- package/resources/schedule.d.ts +22 -0
- package/resources/schedule.d.ts.map +1 -0
- package/resources/schedule.js +116 -0
- package/resources/schedule.js.map +1 -0
- package/resources/search.d.ts +21 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +25 -0
- package/resources/search.js.map +1 -0
- package/resources/service-account.d.ts +37 -0
- package/resources/service-account.d.ts.map +1 -0
- package/resources/service-account.js +139 -0
- package/resources/service-account.js.map +1 -0
- package/resources/session.d.ts +20 -0
- package/resources/session.d.ts.map +1 -0
- package/resources/session.js +51 -0
- package/resources/session.js.map +1 -0
- package/resources/skill.d.ts +123 -0
- package/resources/skill.d.ts.map +1 -0
- package/resources/skill.js +441 -0
- package/resources/skill.js.map +1 -0
- package/resources/stream/answer.d.ts +34 -0
- package/resources/stream/answer.d.ts.map +1 -0
- package/resources/stream/answer.js +88 -0
- package/resources/stream/answer.js.map +1 -0
- package/resources/stream/headless.d.ts +45 -0
- package/resources/stream/headless.d.ts.map +1 -0
- package/resources/stream/headless.js +100 -0
- package/resources/stream/headless.js.map +1 -0
- package/resources/stream/ink.d.ts +22 -0
- package/resources/stream/ink.d.ts.map +1 -0
- package/resources/stream/ink.js +24 -0
- package/resources/stream/ink.js.map +1 -0
- package/resources/stream/render-ndjson.d.ts +23 -0
- package/resources/stream/render-ndjson.d.ts.map +1 -0
- package/resources/stream/render-ndjson.js +28 -0
- package/resources/stream/render-ndjson.js.map +1 -0
- package/resources/stream/render-plaintext.d.ts +27 -0
- package/resources/stream/render-plaintext.d.ts.map +1 -0
- package/resources/stream/render-plaintext.js +142 -0
- package/resources/stream/render-plaintext.js.map +1 -0
- package/resources/stream/submit.d.ts +25 -0
- package/resources/stream/submit.d.ts.map +1 -0
- package/resources/stream/submit.js +132 -0
- package/resources/stream/submit.js.map +1 -0
- package/resources/stream/tty.d.ts +8 -0
- package/resources/stream/tty.d.ts.map +1 -0
- package/resources/stream/tty.js +15 -0
- package/resources/stream/tty.js.map +1 -0
- package/resources/tag.d.ts +4 -0
- package/resources/tag.d.ts.map +1 -0
- package/resources/tag.js +37 -0
- package/resources/tag.js.map +1 -0
- package/resources/usage.d.ts +47 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +376 -0
- package/resources/usage.js.map +1 -0
- package/resources/validate.d.ts +7 -0
- package/resources/validate.d.ts.map +1 -0
- package/resources/validate.js +36 -0
- package/resources/validate.js.map +1 -0
- package/resources/vault.d.ts +79 -0
- package/resources/vault.d.ts.map +1 -0
- package/resources/vault.js +277 -0
- package/resources/vault.js.map +1 -0
- package/resources/version.d.ts +11 -0
- package/resources/version.d.ts.map +1 -0
- package/resources/version.js +80 -0
- package/resources/version.js.map +1 -0
- package/runtime.d.ts +5 -0
- package/runtime.d.ts.map +1 -0
- package/runtime.js +19 -0
- package/runtime.js.map +1 -0
- package/src/auth/auth0.ts +43 -0
- package/src/auth/callback-server.ts +104 -0
- package/src/auth/index.ts +6 -0
- package/src/auth/login.ts +106 -0
- package/src/auth/pages.ts +31 -0
- package/src/auth/pkce.ts +26 -0
- package/src/auth/token.ts +159 -0
- package/src/backend.ts +15 -0
- package/src/cli/stigmer.ts +16 -0
- package/src/client/client.ts +157 -0
- package/src/client/index.ts +3 -0
- package/src/client/organizations.ts +118 -0
- package/src/client/single-org.ts +62 -0
- package/src/commands/access-history/index.ts +124 -0
- package/src/commands/agent-exec-flags.ts +76 -0
- package/src/commands/agent.ts +57 -0
- package/src/commands/apikey/duration.ts +35 -0
- package/src/commands/apikey/index.ts +273 -0
- package/src/commands/apply.ts +200 -0
- package/src/commands/auth/index.ts +76 -0
- package/src/commands/auth/login.ts +70 -0
- package/src/commands/auth/whoami.ts +157 -0
- package/src/commands/channel.ts +178 -0
- package/src/commands/completion.ts +94 -0
- package/src/commands/config/backend.ts +239 -0
- package/src/commands/config/context.ts +110 -0
- package/src/commands/config/index.ts +18 -0
- package/src/commands/config/kv.ts +44 -0
- package/src/commands/connect.ts +115 -0
- package/src/commands/delete.ts +59 -0
- package/src/commands/down.ts +27 -0
- package/src/commands/download.ts +113 -0
- package/src/commands/eval.ts +148 -0
- package/src/commands/get.ts +138 -0
- package/src/commands/install.ts +108 -0
- package/src/commands/internal-daemon.ts +17 -0
- package/src/commands/list.ts +164 -0
- package/src/commands/logs.ts +73 -0
- package/src/commands/marketplace.ts +133 -0
- package/src/commands/mcp-server.ts +125 -0
- package/src/commands/mcp.ts +92 -0
- package/src/commands/push.ts +630 -0
- package/src/commands/reset.ts +57 -0
- package/src/commands/resume.ts +122 -0
- package/src/commands/run.ts +228 -0
- package/src/commands/runs/approve.ts +57 -0
- package/src/commands/runs/control.ts +96 -0
- package/src/commands/runs/index.ts +31 -0
- package/src/commands/runs/logs.ts +45 -0
- package/src/commands/runs/scores.ts +34 -0
- package/src/commands/runs/to-eval-case.ts +50 -0
- package/src/commands/runs/trace.ts +32 -0
- package/src/commands/schedule.ts +70 -0
- package/src/commands/search.ts +95 -0
- package/src/commands/service-account/index.ts +180 -0
- package/src/commands/setup.ts +97 -0
- package/src/commands/shared.ts +41 -0
- package/src/commands/status.ts +20 -0
- package/src/commands/tag.ts +31 -0
- package/src/commands/up.ts +113 -0
- package/src/commands/usage.ts +116 -0
- package/src/commands/validate.ts +127 -0
- package/src/commands/vault.ts +245 -0
- package/src/commands/version.ts +13 -0
- package/src/config/config.ts +308 -0
- package/src/config/index.ts +33 -0
- package/src/config/keys.ts +105 -0
- package/src/config/paths.ts +25 -0
- package/src/config/resolve.ts +174 -0
- package/src/errors/classify.ts +249 -0
- package/src/errors/cli-exit-error.ts +16 -0
- package/src/errors/exit-codes.ts +17 -0
- package/src/errors/handle.ts +53 -0
- package/src/errors/index.ts +7 -0
- package/src/errors/usage-error.ts +14 -0
- package/src/index.ts +8 -0
- package/src/local/artifact.ts +351 -0
- package/src/local/constants.ts +55 -0
- package/src/local/daemon/components.ts +145 -0
- package/src/local/daemon/env.ts +171 -0
- package/src/local/daemon/host.ts +128 -0
- package/src/local/daemon/index.ts +18 -0
- package/src/local/daemon/launch.ts +326 -0
- package/src/local/daemon/process.ts +213 -0
- package/src/local/daemon/supervisor.ts +249 -0
- package/src/local/daemon/types.ts +78 -0
- package/src/local/llm-config.ts +86 -0
- package/src/local/logs/tail.ts +100 -0
- package/src/local/logs/view.ts +65 -0
- package/src/local/net/tcp.ts +65 -0
- package/src/local/operator-config.ts +95 -0
- package/src/local/paths.ts +95 -0
- package/src/local/reset.ts +90 -0
- package/src/local/runtime/index.ts +19 -0
- package/src/local/runtime/node.ts +173 -0
- package/src/local/runtime/runner.ts +159 -0
- package/src/local/runtime/runtimes-install.ts +75 -0
- package/src/local/runtime/server.ts +197 -0
- package/src/local/runtime/which.ts +30 -0
- package/src/local/setup/prompt.ts +70 -0
- package/src/local/setup/wizard.ts +140 -0
- package/src/local/state/health-state.ts +55 -0
- package/src/local/state/index.ts +8 -0
- package/src/local/state/lock.ts +92 -0
- package/src/local/state/log-rotation.ts +112 -0
- package/src/local/state/pidfile.ts +37 -0
- package/src/local/state/proc.ts +82 -0
- package/src/local/state/startup-config.ts +55 -0
- package/src/local/status.ts +189 -0
- package/src/local/temporal/download.ts +84 -0
- package/src/local/temporal/index.ts +14 -0
- package/src/local/temporal/inspect.ts +80 -0
- package/src/local/temporal/manager.ts +261 -0
- package/src/local/temporal/supervisor.ts +97 -0
- package/src/local/webconsole/index.ts +30 -0
- package/src/logger.ts +39 -0
- package/src/marketplace/config.ts +255 -0
- package/src/marketplace/github.ts +410 -0
- package/src/marketplace/index.ts +54 -0
- package/src/marketplace/install.ts +217 -0
- package/src/marketplace/materialize.ts +80 -0
- package/src/marketplace/official.ts +126 -0
- package/src/marketplace/read.ts +76 -0
- package/src/marketplace/ref.ts +74 -0
- package/src/marketplace/render.ts +151 -0
- package/src/output/command-result.ts +199 -0
- package/src/output/confirm.ts +54 -0
- package/src/output/format.ts +101 -0
- package/src/output/index.ts +30 -0
- package/src/output/ndjson.ts +14 -0
- package/src/output/proto.ts +55 -0
- package/src/output/style.ts +57 -0
- package/src/output/table.ts +52 -0
- package/src/program.ts +209 -0
- package/src/registry/aliases.ts +113 -0
- package/src/registry/index.ts +30 -0
- package/src/registry/metadata.ts +170 -0
- package/src/registry/registry.ts +135 -0
- package/src/registry/verb-support.ts +117 -0
- package/src/registry/verbs.ts +42 -0
- package/src/resources/access-history.ts +167 -0
- package/src/resources/agent/quality.ts +424 -0
- package/src/resources/agent/resolve.ts +31 -0
- package/src/resources/apply/apply.ts +472 -0
- package/src/resources/apply/handlers.ts +115 -0
- package/src/resources/channel.ts +548 -0
- package/src/resources/connect/address.ts +47 -0
- package/src/resources/connect/connect.ts +219 -0
- package/src/resources/connect/discover.ts +145 -0
- package/src/resources/connect/display.ts +67 -0
- package/src/resources/connect/sign-in.ts +210 -0
- package/src/resources/cursor-pages.ts +35 -0
- package/src/resources/delete.ts +381 -0
- package/src/resources/documents.ts +102 -0
- package/src/resources/download.ts +147 -0
- package/src/resources/eval-run/follow.ts +390 -0
- package/src/resources/eval-run/node-io.ts +42 -0
- package/src/resources/eval-run/options.ts +391 -0
- package/src/resources/eval-run/report.ts +529 -0
- package/src/resources/eval-run/run.ts +230 -0
- package/src/resources/eval.ts +278 -0
- package/src/resources/get-bindings.ts +137 -0
- package/src/resources/get.ts +51 -0
- package/src/resources/git.ts +71 -0
- package/src/resources/ignore/index.ts +20 -0
- package/src/resources/ignore/matcher.ts +55 -0
- package/src/resources/list.ts +552 -0
- package/src/resources/mcp/add.ts +105 -0
- package/src/resources/mcp/placeholder-resolver.ts +63 -0
- package/src/resources/picker/ink.tsx +123 -0
- package/src/resources/picker/tty.ts +30 -0
- package/src/resources/plugin.ts +560 -0
- package/src/resources/reference.ts +170 -0
- package/src/resources/render.ts +198 -0
- package/src/resources/run/agent-exec.ts +115 -0
- package/src/resources/run/attachments.ts +300 -0
- package/src/resources/run/create.ts +181 -0
- package/src/resources/run/epilogue.ts +200 -0
- package/src/resources/run/header.ts +72 -0
- package/src/resources/run/plugins.ts +32 -0
- package/src/resources/run/prepare.ts +350 -0
- package/src/resources/run/references.ts +77 -0
- package/src/resources/run/resolve.ts +18 -0
- package/src/resources/run/resume.ts +122 -0
- package/src/resources/run/stream.ts +96 -0
- package/src/resources/run/vaults.ts +33 -0
- package/src/resources/run/workspace.ts +171 -0
- package/src/resources/run-approve.ts +94 -0
- package/src/resources/run-control.ts +59 -0
- package/src/resources/run-format.ts +44 -0
- package/src/resources/run-logs.ts +131 -0
- package/src/resources/run-scores.ts +164 -0
- package/src/resources/run-to-eval-case.ts +160 -0
- package/src/resources/run-trace.ts +102 -0
- package/src/resources/runs.ts +155 -0
- package/src/resources/schedule.ts +132 -0
- package/src/resources/search.ts +62 -0
- package/src/resources/service-account.ts +195 -0
- package/src/resources/session.ts +64 -0
- package/src/resources/skill.ts +577 -0
- package/src/resources/stream/answer.ts +125 -0
- package/src/resources/stream/headless.ts +150 -0
- package/src/resources/stream/ink.tsx +56 -0
- package/src/resources/stream/render-ndjson.ts +44 -0
- package/src/resources/stream/render-plaintext.ts +153 -0
- package/src/resources/stream/submit.ts +145 -0
- package/src/resources/stream/tty.ts +14 -0
- package/src/resources/tag.ts +51 -0
- package/src/resources/usage.ts +443 -0
- package/src/resources/validate.ts +37 -0
- package/src/resources/vault.ts +372 -0
- package/src/resources/version.ts +103 -0
- package/src/runtime.ts +23 -0
- package/src/types/marked-terminal.d.ts +31 -0
- package/src/version.ts +46 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +45 -0
- package/version.js.map +1 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { AgentSpec } from "@stigmer/apis/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
2
|
+
import type { Attachment } from "@stigmer/apis/ai/stigmer/agentic/run/v1/spec_pb";
|
|
3
|
+
import type { WorkspaceEntry } from "@stigmer/apis/ai/stigmer/agentic/session/v1/workspace_pb";
|
|
4
|
+
import type { ApiResourceReference } from "@stigmer/apis/ai/stigmer/commons/apiresource/io_pb";
|
|
5
|
+
import type { Stigmer } from "@stigmer/client";
|
|
6
|
+
import { type ApproveDefault } from "../stream/answer.js";
|
|
7
|
+
import { type ProgressSink } from "./attachments.js";
|
|
8
|
+
/** The interaction mode requested for the run; "" means the agent default. */
|
|
9
|
+
export type RunMode = "" | "agent" | "plan";
|
|
10
|
+
/**
|
|
11
|
+
* The `--service-tier` flag's value space (#357). Empty means unset —
|
|
12
|
+
* distinct from an explicit "standard" so the usage record keeps the
|
|
13
|
+
* unspecified-vs-explicit distinction.
|
|
14
|
+
*/
|
|
15
|
+
export type ServiceTierFlag = "" | "standard" | "fast";
|
|
16
|
+
/**
|
|
17
|
+
* The `--thinking` flag's value space (#772), the tier's twin: empty means
|
|
18
|
+
* unset — distinct from an explicit "disabled" for the same usage-record reason.
|
|
19
|
+
*/
|
|
20
|
+
export type ThinkingFlag = "" | "disabled" | "enabled";
|
|
21
|
+
/**
|
|
22
|
+
* The `--harness` flag's value space (oss#293): empty means unset — the
|
|
23
|
+
* account preference may fill it (see {@link prepareAgentExec}), and when
|
|
24
|
+
* nothing resolves the server defaults the session to native. Deliberately
|
|
25
|
+
* only the two shipped engines, mirroring the proto validation on
|
|
26
|
+
* `IdentityAccountPreferences.default_harness`.
|
|
27
|
+
*/
|
|
28
|
+
export type HarnessFlag = "" | "native" | "cursor";
|
|
29
|
+
/** Raw agent-execution flags as `run` parses them (Go's agentExecFlags). */
|
|
30
|
+
export interface AgentExecFlags {
|
|
31
|
+
readonly message: string;
|
|
32
|
+
readonly attach: readonly string[];
|
|
33
|
+
readonly approveDefault: string;
|
|
34
|
+
readonly verbose: boolean;
|
|
35
|
+
readonly detach: boolean;
|
|
36
|
+
readonly workspace: readonly string[];
|
|
37
|
+
readonly branch: string;
|
|
38
|
+
readonly commit: string;
|
|
39
|
+
/** The `--vault` references, in the order given. */
|
|
40
|
+
readonly vault: readonly string[];
|
|
41
|
+
/** False when `--no-my-vault` leaves the person's own My vault out. */
|
|
42
|
+
readonly myVault: boolean;
|
|
43
|
+
/** The `--plugin` references, in the order given. */
|
|
44
|
+
readonly plugin: readonly string[];
|
|
45
|
+
readonly model: string;
|
|
46
|
+
readonly autoApprove: boolean;
|
|
47
|
+
readonly mode: RunMode;
|
|
48
|
+
readonly serviceTier: ServiceTierFlag;
|
|
49
|
+
readonly thinking: ThinkingFlag;
|
|
50
|
+
readonly harness: HarnessFlag;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The validated, resolved inputs ready for create + stream. Mirrors Go's
|
|
54
|
+
* preparedAgentExec, minus the client/org which the command already owns.
|
|
55
|
+
*/
|
|
56
|
+
export interface PreparedRun {
|
|
57
|
+
readonly approveDefault: ApproveDefault;
|
|
58
|
+
readonly workspaceEntries: WorkspaceEntry[];
|
|
59
|
+
/** The shared vaults the new conversation uses, in order. */
|
|
60
|
+
readonly vaults: readonly ApiResourceReference[];
|
|
61
|
+
/** Whether each turn uses its sender's own My vault first. */
|
|
62
|
+
readonly includeMyVault: boolean;
|
|
63
|
+
/** The plugins the new conversation uses, in order. */
|
|
64
|
+
readonly plugins: readonly ApiResourceReference[];
|
|
65
|
+
readonly attachments: Attachment[];
|
|
66
|
+
readonly workspaceFileRefs: string[];
|
|
67
|
+
readonly message: string;
|
|
68
|
+
readonly detach: boolean;
|
|
69
|
+
readonly verbose: boolean;
|
|
70
|
+
readonly model: string;
|
|
71
|
+
readonly autoApproveAll: boolean;
|
|
72
|
+
readonly mode: RunMode;
|
|
73
|
+
readonly serviceTier: ServiceTierFlag;
|
|
74
|
+
readonly thinking: ThinkingFlag;
|
|
75
|
+
/**
|
|
76
|
+
* The RESOLVED harness for the new session: the explicit flag; else ""
|
|
77
|
+
* when `--model` names a model alone (the server reads it on native);
|
|
78
|
+
* else the engine the agent names, else the account preference (when the
|
|
79
|
+
* caller opted in), else "" — which stays off the wire so the server
|
|
80
|
+
* default (native) applies. Also drives the header's
|
|
81
|
+
* visibility row: a cursor session is never entered silently.
|
|
82
|
+
*/
|
|
83
|
+
readonly harness: HarnessFlag;
|
|
84
|
+
}
|
|
85
|
+
/** Optional behavior switches for {@link prepareAgentExec}. */
|
|
86
|
+
export interface PrepareAgentExecOptions {
|
|
87
|
+
/**
|
|
88
|
+
* When `true`, an omitted `--harness` is filled from the caller's account
|
|
89
|
+
* preference (`IdentityAccountPreferences.default_harness`) and an omitted
|
|
90
|
+
* `--model` from `default_*_model` for the resolved harness, both via one
|
|
91
|
+
* `whoAmI()`. The caller answers this from the connected server's edition
|
|
92
|
+
* and the kind's tier —
|
|
93
|
+
* `client.isResourceAvailable(ApiResourceKind.identity_account)` — never
|
|
94
|
+
* from the config's backend type: a server that does not
|
|
95
|
+
* serve identity accounts is not even asked, and the omitted values keep
|
|
96
|
+
* resolving to the platform defaults.
|
|
97
|
+
*/
|
|
98
|
+
readonly accountPreferencesAvailable?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* The spec of the agent the run starts (its current version, which a new
|
|
101
|
+
* conversation pins); omitted for the built-in assistant. Its run
|
|
102
|
+
* defaults come before the account's: an omitted `--harness` resolves to
|
|
103
|
+
* the engine the agent names, and an omitted `--model` stays unset where
|
|
104
|
+
* the agent names a model for the resolved engine, so the server applies
|
|
105
|
+
* the agent's choice instead of the account's.
|
|
106
|
+
*/
|
|
107
|
+
readonly agentSpec?: AgentSpec;
|
|
108
|
+
/**
|
|
109
|
+
* The organization the run is created in: a `--vault` or `--plugin` named
|
|
110
|
+
* by slug alone is that organization's. Empty leaves the reference relative, which the
|
|
111
|
+
* server resolves to the conversation's organization.
|
|
112
|
+
*/
|
|
113
|
+
readonly org?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Validate flags and resolve all run inputs. The `client` uploads
|
|
117
|
+
* non-workspace attachments.
|
|
118
|
+
*/
|
|
119
|
+
export declare function prepareAgentExec(flags: AgentExecFlags, client: Stigmer, progress?: ProgressSink, options?: PrepareAgentExecOptions): Promise<PreparedRun>;
|
|
120
|
+
/**
|
|
121
|
+
* Validate the `--mode` flag. Empty (unset) is valid and means "use default"
|
|
122
|
+
* (agent). Mirrors Go's validateMode.
|
|
123
|
+
*/
|
|
124
|
+
export declare function validateMode(mode: string): asserts mode is RunMode;
|
|
125
|
+
/**
|
|
126
|
+
* Validate the `--service-tier` flag. Empty means "platform default" (which
|
|
127
|
+
* resolves to standard — never the provider account default, #357). The
|
|
128
|
+
* server refuses fast on models without a registry fast variant; this check
|
|
129
|
+
* only catches spelling errors before a network round trip.
|
|
130
|
+
*/
|
|
131
|
+
export declare function validateServiceTier(tier: string): asserts tier is ServiceTierFlag;
|
|
132
|
+
/**
|
|
133
|
+
* Validate the `--thinking` flag, the tier check's twin (#772). Empty means
|
|
134
|
+
* "platform default" (which resolves to disabled — never the provider
|
|
135
|
+
* account default). The server refuses enabled on models without the
|
|
136
|
+
* registry thinking capability; this check only catches spelling errors
|
|
137
|
+
* before a network round trip.
|
|
138
|
+
*/
|
|
139
|
+
export declare function validateThinking(mode: string): asserts mode is ThinkingFlag;
|
|
140
|
+
/**
|
|
141
|
+
* Validate the `--harness` flag. Empty means "use default": the account
|
|
142
|
+
* preference when the caller opted in, else the platform default (native).
|
|
143
|
+
* Only the shipped engines are accepted — other harness names that appear in
|
|
144
|
+
* UI metadata (copilot, codex, ...) have no proto mapping yet, so rejecting
|
|
145
|
+
* them here is honest, and this check catches spelling errors before a
|
|
146
|
+
* network round trip.
|
|
147
|
+
*/
|
|
148
|
+
export declare function validateHarness(harness: string): asserts harness is HarnessFlag;
|
|
149
|
+
//# sourceMappingURL=prepare.d.ts.map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e,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B;AAED,+DAA+D;AAC/D,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAC/C;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,OAAO,EACf,QAAQ,CAAC,EAAE,YAAY,EACvB,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,WAAW,CAAC,CAmFtB;AA6DD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAMlE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,IAAI,eAAe,CAMjC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,IAAI,YAAY,CAM3E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,IAAI,WAAW,CAMhC"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
// The run prelude: validate flags and resolve every input the
|
|
2
|
+
// create step needs. Ports the Go CLI's prepareAgentExec (run_agent_exec.go).
|
|
3
|
+
//
|
|
4
|
+
// Order matters and mirrors Go: validate cheap flags first (mode, approve
|
|
5
|
+
// default), then parse workspaces, then resolve the vaults and plugins the
|
|
6
|
+
// conversation uses, then process attachments. A failure short-circuits before any
|
|
7
|
+
// upload. A run carries no values of its own: its keys come from the vaults
|
|
8
|
+
// its conversation uses (vaults.ts), which is why a vault named by id is
|
|
9
|
+
// looked up here, before anything is uploaded.
|
|
10
|
+
import { Harness } from "@stigmer/apis/ai/stigmer/agentic/session/v1/enum_pb";
|
|
11
|
+
import { UsageError } from "../../errors/index.js";
|
|
12
|
+
import { parseApproveDefault } from "../stream/answer.js";
|
|
13
|
+
import { processAttachments } from "./attachments.js";
|
|
14
|
+
import { resolveRunPlugins } from "./plugins.js";
|
|
15
|
+
import { resolveRunVaults } from "./vaults.js";
|
|
16
|
+
import { localWorkspaceRoots, parseWorkspaceEntries } from "./workspace.js";
|
|
17
|
+
/**
|
|
18
|
+
* Validate flags and resolve all run inputs. The `client` uploads
|
|
19
|
+
* non-workspace attachments.
|
|
20
|
+
*/
|
|
21
|
+
export async function prepareAgentExec(flags, client, progress, options) {
|
|
22
|
+
const approveDefault = parseApproveDefault(flags.approveDefault);
|
|
23
|
+
validateMode(flags.mode);
|
|
24
|
+
validateServiceTier(flags.serviceTier);
|
|
25
|
+
validateThinking(flags.thinking);
|
|
26
|
+
validateHarness(flags.harness);
|
|
27
|
+
// Layered seeds (oss#293): explicit flag > the agent's run defaults >
|
|
28
|
+
// account preference (where the server serves identity accounts) >
|
|
29
|
+
// platform default. Harness resolves first because the model
|
|
30
|
+
// fill is harness-aware: a cursor session fills from default_cursor_model,
|
|
31
|
+
// everything else from default_native_model. `run` always creates a NEW
|
|
32
|
+
// session (threading lives in `resume`, which does not pass through
|
|
33
|
+
// here), so neither fill can ever contradict an existing session's
|
|
34
|
+
// immutable harness. One whoAmI round trip serves both fills, and it is
|
|
35
|
+
// skipped entirely when explicit flags leave nothing to fill.
|
|
36
|
+
const agentHarness = harnessFlagOf(options?.agentSpec?.harness);
|
|
37
|
+
// The agent's model applies on the engine it names, and only when the run
|
|
38
|
+
// takes that engine (an explicit --harness may leave it).
|
|
39
|
+
const agentModelApplies = agentHarness !== "" &&
|
|
40
|
+
(flags.harness === "" || flags.harness === agentHarness) &&
|
|
41
|
+
(options?.agentSpec?.runConfig?.modelName ?? "") !== "";
|
|
42
|
+
// A --model with no --harness names no engine: the server starts the
|
|
43
|
+
// conversation on native, the engine a model named alone is read on, so
|
|
44
|
+
// neither the agent's engine nor the account's is filled in under it.
|
|
45
|
+
const modelNamesEngine = flags.model !== "" && flags.harness === "";
|
|
46
|
+
const wantsHarnessFill = flags.harness === "" && agentHarness === "" && !modelNamesEngine;
|
|
47
|
+
const wantsModelFill = flags.model === "" && !agentModelApplies;
|
|
48
|
+
const accountDefaults = options?.accountPreferencesAvailable === true &&
|
|
49
|
+
(wantsHarnessFill || wantsModelFill)
|
|
50
|
+
? await resolveAccountExecutionDefaults(client)
|
|
51
|
+
: NO_ACCOUNT_DEFAULTS;
|
|
52
|
+
const harness = flags.harness !== ""
|
|
53
|
+
? flags.harness
|
|
54
|
+
: modelNamesEngine
|
|
55
|
+
? ""
|
|
56
|
+
: agentHarness !== ""
|
|
57
|
+
? agentHarness
|
|
58
|
+
: accountDefaults.harness;
|
|
59
|
+
const model = wantsModelFill
|
|
60
|
+
? harness === "cursor"
|
|
61
|
+
? accountDefaults.cursorModel
|
|
62
|
+
: accountDefaults.nativeModel
|
|
63
|
+
: flags.model;
|
|
64
|
+
const workspaceEntries = parseWorkspaceEntries(flags.workspace, flags.branch, flags.commit);
|
|
65
|
+
const vaults = await resolveRunVaults(client, flags.vault, options?.org ?? "");
|
|
66
|
+
const plugins = await resolveRunPlugins(client, flags.plugin, options?.org ?? "");
|
|
67
|
+
const { attachments, workspaceFileRefs } = await processAttachments(client.run, flags.attach, localWorkspaceRoots(workspaceEntries), progress);
|
|
68
|
+
return {
|
|
69
|
+
approveDefault,
|
|
70
|
+
workspaceEntries,
|
|
71
|
+
vaults,
|
|
72
|
+
includeMyVault: flags.myVault,
|
|
73
|
+
plugins,
|
|
74
|
+
attachments,
|
|
75
|
+
workspaceFileRefs,
|
|
76
|
+
message: flags.message,
|
|
77
|
+
detach: flags.detach,
|
|
78
|
+
verbose: flags.verbose,
|
|
79
|
+
model,
|
|
80
|
+
autoApproveAll: flags.autoApprove,
|
|
81
|
+
mode: flags.mode,
|
|
82
|
+
serviceTier: flags.serviceTier,
|
|
83
|
+
thinking: flags.thinking,
|
|
84
|
+
harness,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** The engine an agent names as a flag value, "" when it names none. */
|
|
88
|
+
function harnessFlagOf(harness) {
|
|
89
|
+
switch (harness) {
|
|
90
|
+
case Harness.NATIVE:
|
|
91
|
+
return "native";
|
|
92
|
+
case Harness.CURSOR:
|
|
93
|
+
return "cursor";
|
|
94
|
+
default:
|
|
95
|
+
return "";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const NO_ACCOUNT_DEFAULTS = {
|
|
99
|
+
harness: "",
|
|
100
|
+
nativeModel: "",
|
|
101
|
+
cursorModel: "",
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Best-effort read of the caller's execution defaults
|
|
105
|
+
* (`IdentityAccountPreferences.default_harness` / `default_*_model`) in one
|
|
106
|
+
* whoAmI round trip. Any failure — network, auth, a backend without
|
|
107
|
+
* IdentityAccount — resolves to no defaults and the run proceeds exactly as
|
|
108
|
+
* unfilled flags do today: a missing preference must never fail a run.
|
|
109
|
+
*
|
|
110
|
+
* This reads `whoAmI` directly and never the SDK's ensureMyIdentityAccount:
|
|
111
|
+
* a run must not create an account as a side effect, so NOT_FOUND here means
|
|
112
|
+
* "no preferences yet". Provisioning belongs to `auth login` and `auth
|
|
113
|
+
* whoami`, the commands whose purpose is the caller's identity.
|
|
114
|
+
*
|
|
115
|
+
* The persisted harness value is allowlist-guarded to the shipped engines
|
|
116
|
+
* (the same guard the web launcher's useAccountExecutionDefaults applies):
|
|
117
|
+
* a client must not trust stored data it did not write, so anything outside
|
|
118
|
+
* native/cursor is treated as undeclared rather than stamped on the wire.
|
|
119
|
+
*/
|
|
120
|
+
async function resolveAccountExecutionDefaults(client) {
|
|
121
|
+
try {
|
|
122
|
+
const account = await client.identityAccount.whoAmI();
|
|
123
|
+
const prefs = account.spec?.preferences;
|
|
124
|
+
const declared = prefs?.defaultHarness;
|
|
125
|
+
return {
|
|
126
|
+
harness: declared === "native" || declared === "cursor" ? declared : "",
|
|
127
|
+
nativeModel: prefs?.defaultNativeModel ?? "",
|
|
128
|
+
cursorModel: prefs?.defaultCursorModel ?? "",
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
return NO_ACCOUNT_DEFAULTS;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Validate the `--mode` flag. Empty (unset) is valid and means "use default"
|
|
137
|
+
* (agent). Mirrors Go's validateMode.
|
|
138
|
+
*/
|
|
139
|
+
export function validateMode(mode) {
|
|
140
|
+
if (mode !== "" && mode !== "agent" && mode !== "plan") {
|
|
141
|
+
throw new UsageError(`invalid --mode value "${mode}": must be "agent" or "plan"`);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Validate the `--service-tier` flag. Empty means "platform default" (which
|
|
146
|
+
* resolves to standard — never the provider account default, #357). The
|
|
147
|
+
* server refuses fast on models without a registry fast variant; this check
|
|
148
|
+
* only catches spelling errors before a network round trip.
|
|
149
|
+
*/
|
|
150
|
+
export function validateServiceTier(tier) {
|
|
151
|
+
if (tier !== "" && tier !== "standard" && tier !== "fast") {
|
|
152
|
+
throw new UsageError(`invalid --service-tier value "${tier}": must be "standard" or "fast"`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Validate the `--thinking` flag, the tier check's twin (#772). Empty means
|
|
157
|
+
* "platform default" (which resolves to disabled — never the provider
|
|
158
|
+
* account default). The server refuses enabled on models without the
|
|
159
|
+
* registry thinking capability; this check only catches spelling errors
|
|
160
|
+
* before a network round trip.
|
|
161
|
+
*/
|
|
162
|
+
export function validateThinking(mode) {
|
|
163
|
+
if (mode !== "" && mode !== "disabled" && mode !== "enabled") {
|
|
164
|
+
throw new UsageError(`invalid --thinking value "${mode}": must be "disabled" or "enabled"`);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Validate the `--harness` flag. Empty means "use default": the account
|
|
169
|
+
* preference when the caller opted in, else the platform default (native).
|
|
170
|
+
* Only the shipped engines are accepted — other harness names that appear in
|
|
171
|
+
* UI metadata (copilot, codex, ...) have no proto mapping yet, so rejecting
|
|
172
|
+
* them here is honest, and this check catches spelling errors before a
|
|
173
|
+
* network round trip.
|
|
174
|
+
*/
|
|
175
|
+
export function validateHarness(harness) {
|
|
176
|
+
if (harness !== "" && harness !== "native" && harness !== "cursor") {
|
|
177
|
+
throw new UsageError(`invalid --harness value "${harness}": must be "native" or "cursor"`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=prepare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../../src/resources/run/prepare.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,8EAA8E;AAC9E,EAAE;AACF,0EAA0E;AAC1E,2EAA2E;AAC3E,mFAAmF;AACnF,4EAA4E;AAC5E,yEAAyE;AACzE,+CAA+C;AAI/C,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAI9E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAuB,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAqB,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAoH5E;;;GAGG;AACH,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ACvC,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACvD,MAAM,IAAI,UAAU,CAClB,yBAAyB,IAAI,8BAA8B,CAC5D,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAY;IAEZ,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAC1D,MAAM,IAAI,UAAU,CAClB,iCAAiC,IAAI,iCAAiC,CACvE,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QAC7D,MAAM,IAAI,UAAU,CAClB,6BAA6B,IAAI,oCAAoC,CACtE,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAe;IAEf,IAAI,OAAO,KAAK,EAAE,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACnE,MAAM,IAAI,UAAU,CAClB,4BAA4B,OAAO,iCAAiC,CACrE,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ApiResourceKind } from "@stigmer/apis/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
2
|
+
import { type ApiResourceReference } from "@stigmer/apis/ai/stigmer/commons/apiresource/io_pb";
|
|
3
|
+
import type { ApiResourceMetadata } from "@stigmer/apis/ai/stigmer/commons/apiresource/metadata_pb";
|
|
4
|
+
/** One run flag naming resources of one kind. */
|
|
5
|
+
export interface RunReferenceKind {
|
|
6
|
+
/** The flag as typed, for messages: `--vault`. */
|
|
7
|
+
readonly flag: string;
|
|
8
|
+
/** The resource's noun, for messages: `vault`. */
|
|
9
|
+
readonly noun: string;
|
|
10
|
+
readonly kind: ApiResourceKind;
|
|
11
|
+
/** Read a resource by id, for its organization and slug. */
|
|
12
|
+
get(id: string): Promise<{
|
|
13
|
+
readonly metadata?: ApiResourceMetadata;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Resolve each reference to the reference the conversation stores, in
|
|
18
|
+
* order, a reference written twice once. An empty or malformed reference is
|
|
19
|
+
* a usage error.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveRunReferences(of: RunReferenceKind, refs: readonly string[], org: string): Promise<ApiResourceReference[]>;
|
|
22
|
+
//# sourceMappingURL=references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../src/resources/run/references.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mFAAmF,CAAC;AACzH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAIpG,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,4DAA4D;IAC5D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;KAAE,CAAC,CAAC;CACvE;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,EAAE,EAAE,gBAAgB,EACpB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAiCjC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// The references a new conversation stores for the resources named on
|
|
2
|
+
// `stigmer run` (`--vault`, `--plugin`): one rule for every such flag.
|
|
3
|
+
//
|
|
4
|
+
// A reference is named as the resource verbs name one (reference.ts): an id,
|
|
5
|
+
// an `org/slug`, or a slug in the run's organization. An id is looked up for
|
|
6
|
+
// its organization and slug, because a conversation stores references, never
|
|
7
|
+
// ids; a slug is sent as written, and the server's reference rule refuses a
|
|
8
|
+
// resource that does not exist or that the caller may not use, so nothing is
|
|
9
|
+
// read twice. A reference that is no form at all (`acme/`, `/x`, `a/b/c`) is
|
|
10
|
+
// refused here, before anything is sent. A reference written the same way
|
|
11
|
+
// twice is sent once, in its first position; the same resource written two
|
|
12
|
+
// ways (by id and by slug) is sent as given, each time.
|
|
13
|
+
import { create } from "@bufbuild/protobuf";
|
|
14
|
+
import { ApiResourceReferenceSchema, } from "@stigmer/apis/ai/stigmer/commons/apiresource/io_pb";
|
|
15
|
+
import { UsageError } from "../../errors/index.js";
|
|
16
|
+
import { idPrefixesFor, parseReference } from "../reference.js";
|
|
17
|
+
/**
|
|
18
|
+
* Resolve each reference to the reference the conversation stores, in
|
|
19
|
+
* order, a reference written twice once. An empty or malformed reference is
|
|
20
|
+
* a usage error.
|
|
21
|
+
*/
|
|
22
|
+
export async function resolveRunReferences(of, refs, org) {
|
|
23
|
+
const resolved = [];
|
|
24
|
+
const seen = new Set();
|
|
25
|
+
for (const raw of refs) {
|
|
26
|
+
if (raw.trim() === "") {
|
|
27
|
+
throw new UsageError(`invalid ${of.flag} value: empty; name a ${of.noun} by id, org/slug or slug`);
|
|
28
|
+
}
|
|
29
|
+
const parts = raw.trim().split("/");
|
|
30
|
+
if (parts.length > 2 || parts.some((part) => part === "")) {
|
|
31
|
+
throw new UsageError(`invalid ${of.flag} value '${raw}': name a ${of.noun} by id, org/slug or slug`);
|
|
32
|
+
}
|
|
33
|
+
const parsed = parseReference(raw, org, idPrefixesFor(of.kind));
|
|
34
|
+
let refOrg;
|
|
35
|
+
let slug;
|
|
36
|
+
if (parsed.kind === "id") {
|
|
37
|
+
const found = await of.get(parsed.id);
|
|
38
|
+
refOrg = found.metadata?.org ?? "";
|
|
39
|
+
slug = found.metadata?.slug ?? "";
|
|
40
|
+
if (slug === "") {
|
|
41
|
+
throw new UsageError(`${of.noun} '${raw}' has no slug: a conversation names a ${of.noun} by its organization and slug`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
refOrg = parsed.org;
|
|
46
|
+
slug = parsed.slug;
|
|
47
|
+
}
|
|
48
|
+
const key = `${refOrg}/${slug}`;
|
|
49
|
+
if (seen.has(key))
|
|
50
|
+
continue;
|
|
51
|
+
seen.add(key);
|
|
52
|
+
resolved.push(create(ApiResourceReferenceSchema, { kind: of.kind, org: refOrg, slug }));
|
|
53
|
+
}
|
|
54
|
+
return resolved;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.js","sourceRoot":"","sources":["../../src/resources/run/references.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,uEAAuE;AACvE,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,0EAA0E;AAC1E,2EAA2E;AAC3E,wDAAwD;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAEL,0BAA0B,GAC3B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAahE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,EAAoB,EACpB,IAAu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I,+BAA+B,CAClG,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC;YACpB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;QACD,MAAM,GAAG,GAAG,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;QAChC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,SAAS;QAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACd,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1F,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Agent } from "@stigmer/apis/ai/stigmer/agentic/agent/v1/api_pb";
|
|
2
|
+
import type { Stigmer } from "@stigmer/client";
|
|
3
|
+
/** Resolve an agent by ID, org/slug, or bare slug. Throws if not found. */
|
|
4
|
+
export declare function resolveAgentRef(client: Stigmer, ref: string, org: string): Promise<Agent>;
|
|
5
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/resources/run/resolve.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AAE9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAI/C,2EAA2E;AAC3E,wBAAsB,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAI/F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Reference resolution for the run path (Go's resolveAgent in run_resolve.go).
|
|
2
|
+
// A reference is an ID (agt_…), an explicit org/slug, or
|
|
3
|
+
// a bare slug resolved against the context org. The strict ID *classification*
|
|
4
|
+
// used by smart dispatch lives in resources/reference.ts; this module just turns
|
|
5
|
+
// a reference into a fetched resource.
|
|
6
|
+
import { ApiResourceKind } from "@stigmer/apis/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
7
|
+
import { defaultRegistry } from "../../registry/index.js";
|
|
8
|
+
import { parseReference } from "../reference.js";
|
|
9
|
+
/** Resolve an agent by ID, org/slug, or bare slug. Throws if not found. */
|
|
10
|
+
export async function resolveAgentRef(client, ref, org) {
|
|
11
|
+
const parsed = parseReference(ref, org, defaultRegistry().getByKind(ApiResourceKind.agent)?.idPrefix ?? "");
|
|
12
|
+
if (parsed.kind === "id")
|
|
13
|
+
return client.agent.get(parsed.id);
|
|
14
|
+
return client.agent.getByReference({ org: parsed.org, slug: parsed.slug });
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/resources/run/resolve.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,yDAAyD;AACzD,+EAA+E;AAC/E,iFAAiF;AACjF,uCAAuC;AAGvC,OAAO,EAAE,eAAe,EAAE,MAAM,mFAAmF,CAAC;AAEpH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,2EAA2E;AAC3E,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAAe,EAAE,GAAW,EAAE,GAAW;IAC7E,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC;IAC5G,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BackendClient } from "../../client/index.js";
|
|
2
|
+
import type { RunMode } from "./prepare.js";
|
|
3
|
+
import { type RunOutputMode } from "./stream.js";
|
|
4
|
+
export interface OpenSessionDeps {
|
|
5
|
+
readonly client: BackendClient;
|
|
6
|
+
readonly sessionId: string;
|
|
7
|
+
/** Explicit --mode override; "" means infer from the latest run. */
|
|
8
|
+
readonly mode: RunMode;
|
|
9
|
+
readonly outputMode: RunOutputMode;
|
|
10
|
+
}
|
|
11
|
+
export declare function openSession(deps: OpenSessionDeps): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=resume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../../src/resources/run/resume.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAO3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAcjE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;CACpC;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAyCtE"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Re-opening an existing session (Go's openSession / resumeSession in
|
|
2
|
+
// resume_session.go). Fetch the session + its runs, then either:
|
|
3
|
+
// - re-attach when the latest run is still active: the headless driver
|
|
4
|
+
// follows the session's log from its start, so the history is replayed
|
|
5
|
+
// and the latest turn followed to its end, or
|
|
6
|
+
// - replay the session's stored events when everything has finished.
|
|
7
|
+
// The TTY path defers to Ink's SessionView, which loads history and offers a
|
|
8
|
+
// follow-up composer for free.
|
|
9
|
+
import { RunPhase, InteractionMode } from "@stigmer/apis/ai/stigmer/agentic/run/v1/enum_pb";
|
|
10
|
+
import { getSessionById, listRunsBySession, listSessionEvents } from "../session.js";
|
|
11
|
+
import { renderReplay } from "../stream/headless.js";
|
|
12
|
+
import { NdjsonRenderer } from "../stream/render-ndjson.js";
|
|
13
|
+
import { PlaintextRenderer } from "../stream/render-plaintext.js";
|
|
14
|
+
import { isInkSupported } from "../stream/tty.js";
|
|
15
|
+
import { renderSessionHeader, workspaceNames } from "./header.js";
|
|
16
|
+
import { streamAgentRun } from "./stream.js";
|
|
17
|
+
// The backend's auto-create sentinel; suppressed in the header until the async
|
|
18
|
+
// title activity replaces it (Go's session.PendingSubject / ResolvedSubject).
|
|
19
|
+
const PENDING_SUBJECT = "Auto-created session";
|
|
20
|
+
// Phases where the latest run is still producing output — re-attach live.
|
|
21
|
+
const ACTIVE_PHASES = new Set([
|
|
22
|
+
RunPhase.RUN_PENDING,
|
|
23
|
+
RunPhase.RUN_IN_PROGRESS,
|
|
24
|
+
RunPhase.RUN_WAITING_FOR_APPROVAL,
|
|
25
|
+
RunPhase.RUN_PAUSED,
|
|
26
|
+
]);
|
|
27
|
+
export async function openSession(deps) {
|
|
28
|
+
const stigmer = deps.client.stigmer;
|
|
29
|
+
const session = await getSessionById(stigmer, deps.sessionId);
|
|
30
|
+
// Every turn in the session is filed under the session's own organization
|
|
31
|
+
// (stigmer/stigmer#1580), never the CLI's context organization.
|
|
32
|
+
const org = session.metadata?.org ?? "";
|
|
33
|
+
const entries = await listRunsBySession(stigmer, deps.sessionId);
|
|
34
|
+
if (entries.length === 0) {
|
|
35
|
+
process.stderr.write(`Session ${deps.sessionId} has no runs\n`);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const latest = entries[0];
|
|
39
|
+
const phase = latest.status?.phase ?? RunPhase.RUN_PHASE_UNSPECIFIED;
|
|
40
|
+
const effectiveMode = resolveResumeMode(deps.mode, latest);
|
|
41
|
+
const header = {
|
|
42
|
+
agentName: "",
|
|
43
|
+
sessionId: deps.sessionId,
|
|
44
|
+
subject: resolvedSubject(session.spec?.subject ?? ""),
|
|
45
|
+
model: "",
|
|
46
|
+
mode: effectiveMode,
|
|
47
|
+
workspaces: workspaceNames(session.spec?.workspaceEntries ?? []),
|
|
48
|
+
};
|
|
49
|
+
if (ACTIVE_PHASES.has(phase)) {
|
|
50
|
+
// Live re-attach reuses the exact run streaming stack.
|
|
51
|
+
await streamAgentRun({
|
|
52
|
+
client: stigmer,
|
|
53
|
+
sessionId: deps.sessionId,
|
|
54
|
+
runId: latest.metadata?.id ?? "",
|
|
55
|
+
org,
|
|
56
|
+
mode: effectiveMode,
|
|
57
|
+
approveDefault: "",
|
|
58
|
+
outputMode: deps.outputMode,
|
|
59
|
+
header,
|
|
60
|
+
});
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
await replaySession(deps, org, header);
|
|
64
|
+
}
|
|
65
|
+
// Completed session: render the stored history. TTY → Ink (history + composer);
|
|
66
|
+
// headless → the session's stored events through the matching renderer.
|
|
67
|
+
async function replaySession(deps, org, header) {
|
|
68
|
+
if (deps.outputMode === "inline" && isInkSupported(process.stdout)) {
|
|
69
|
+
const { runInkSession } = await import("../stream/ink.js");
|
|
70
|
+
await runInkSession({
|
|
71
|
+
client: deps.client.stigmer,
|
|
72
|
+
sessionId: deps.sessionId,
|
|
73
|
+
org,
|
|
74
|
+
mode: header.mode === "plan" ? "plan" : "agent",
|
|
75
|
+
});
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
renderSessionHeader(process.stderr, header);
|
|
79
|
+
const events = await listSessionEvents(deps.client.stigmer, deps.sessionId);
|
|
80
|
+
const renderer = deps.outputMode === "json"
|
|
81
|
+
? new NdjsonRenderer({ data: process.stdout, status: process.stderr })
|
|
82
|
+
: new PlaintextRenderer({ data: process.stdout, status: process.stderr });
|
|
83
|
+
renderReplay(events, renderer);
|
|
84
|
+
}
|
|
85
|
+
// Mirrors Go's resolveResumeMode: --mode wins; else infer "plan" from the last
|
|
86
|
+
// run's InteractionMode; else default (agent).
|
|
87
|
+
function resolveResumeMode(explicit, latest) {
|
|
88
|
+
if (explicit !== "")
|
|
89
|
+
return explicit;
|
|
90
|
+
if (latest.spec?.interactionMode === InteractionMode.PLAN)
|
|
91
|
+
return "plan";
|
|
92
|
+
return "";
|
|
93
|
+
}
|
|
94
|
+
function resolvedSubject(subject) {
|
|
95
|
+
return subject === PENDING_SUBJECT ? "" : subject;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=resume.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../../src/resources/run/resume.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,iEAAiE;AACjE,yEAAyE;AACzE,2EAA2E;AAC3E,kDAAkD;AAClD,uEAAuE;AACvE,6EAA6E;AAC7E,+BAA+B;AAG/B,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAE5F,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO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,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5E,MAAM,QAAQ,GACZ,IAAI,CAAC,UAAU,KAAK,MAAM;QACxB,CAAC,CAAC,IAAI,cAAc,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QACtE,CAAC,CAAC,IAAI,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9E,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACjC,CAAC;AAED,+EAA+E;AAC/E,+CAA+C;AAC/C,SAAS,iBAAiB,CAAC,QAAiB,EAAE,MAAW;IACvD,IAAI,QAAQ,KAAK,EAAE;QAAE,OAAO,QAAQ,CAAC;IACrC,IAAI,MAAM,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC,IAAI;QAAE,OAAO,MAAM,CAAC;IACzE,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,eAAe,CAAC,OAAe;IACtC,OAAO,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Run } from "@stigmer/apis/ai/stigmer/agentic/run/v1/api_pb";
|
|
2
|
+
import { type Stigmer } from "@stigmer/client";
|
|
3
|
+
import { type SessionHeaderInfo } from "./header.js";
|
|
4
|
+
import type { RunMode } from "./prepare.js";
|
|
5
|
+
import { type ApproveDefault } from "../stream/answer.js";
|
|
6
|
+
/** The user-selected output mode for a streaming command. */
|
|
7
|
+
export type RunOutputMode = "inline" | "json";
|
|
8
|
+
export interface StreamDeps {
|
|
9
|
+
readonly client: Stigmer;
|
|
10
|
+
readonly sessionId: string;
|
|
11
|
+
readonly runId: string;
|
|
12
|
+
/** Org slug, for follow-up runs created from the Ink composer. */
|
|
13
|
+
readonly org: string;
|
|
14
|
+
readonly mode: RunMode;
|
|
15
|
+
readonly approveDefault: ApproveDefault;
|
|
16
|
+
readonly outputMode: RunOutputMode;
|
|
17
|
+
readonly header: SessionHeaderInfo;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Stream the run to its end, then run the epilogue. Returns the
|
|
21
|
+
* authoritative final run (for artifact download).
|
|
22
|
+
*/
|
|
23
|
+
export declare function streamAgentRun(deps: StreamDeps): Promise<Run>;
|
|
24
|
+
//# sourceMappingURL=stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/resources/run/stream.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAMxE,6DAA6D;AAC7D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;CACpC;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAgBnE"}
|