@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,76 @@
|
|
|
1
|
+
// `stigmer search <type> <query>` — relevance-ranked text search over agents.
|
|
2
|
+
// Thin handler: validate type/verb/flags, delegate to the resource
|
|
3
|
+
// layer, then append the footer for human output: how many results match,
|
|
4
|
+
// and the command that reads the next page when one follows.
|
|
5
|
+
import { ensureAuthenticated } from "../config/index.js";
|
|
6
|
+
import { UsageError } from "../errors/index.js";
|
|
7
|
+
import { defaultRegistry, Verb } from "../registry/index.js";
|
|
8
|
+
import { addReadFlags, globalOrg, readFormat } from "./shared.js";
|
|
9
|
+
const DEFAULT_PAGE_SIZE = 20;
|
|
10
|
+
const MAX_PAGE_SIZE = 100;
|
|
11
|
+
export function registerSearch(program) {
|
|
12
|
+
const search = program
|
|
13
|
+
.command("search <type> <query>")
|
|
14
|
+
.description("search resources by text query (supported types: agent)")
|
|
15
|
+
.option("--page-size <n>", "results per page (max 100)", String(DEFAULT_PAGE_SIZE))
|
|
16
|
+
.option("--page-token <token>", "continue a search from the token the previous page printed")
|
|
17
|
+
.action((type, query, options, command) => runSearch(type, query, options, command));
|
|
18
|
+
addReadFlags(search);
|
|
19
|
+
}
|
|
20
|
+
async function runSearch(type, query, options, command) {
|
|
21
|
+
const info = defaultRegistry().getByAlias(type);
|
|
22
|
+
if (info === undefined) {
|
|
23
|
+
throw new UsageError(`unknown resource type: ${type}\n\nAvailable types: agent`);
|
|
24
|
+
}
|
|
25
|
+
if (!info.supportedVerbs.has(Verb.Search)) {
|
|
26
|
+
throw new UsageError(`${info.displayName} does not support 'search'`);
|
|
27
|
+
}
|
|
28
|
+
if (query.trim() === "") {
|
|
29
|
+
throw new UsageError("search query is required");
|
|
30
|
+
}
|
|
31
|
+
const pageSize = parsePositive(options.pageSize, DEFAULT_PAGE_SIZE, "--page-size");
|
|
32
|
+
if (pageSize > MAX_PAGE_SIZE) {
|
|
33
|
+
throw new UsageError(`--page-size cannot exceed ${MAX_PAGE_SIZE}`);
|
|
34
|
+
}
|
|
35
|
+
const [{ connectBackend }, { searchResources }] = await Promise.all([
|
|
36
|
+
import("../backend.js"),
|
|
37
|
+
import("../resources/search.js"),
|
|
38
|
+
]);
|
|
39
|
+
const client = connectBackend();
|
|
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).
|
|
43
|
+
const org = globalOrg(command) ?? "";
|
|
44
|
+
const format = readFormat(options);
|
|
45
|
+
const outcome = await searchResources(client.stigmer, info.kind, query, {
|
|
46
|
+
org,
|
|
47
|
+
pageSize,
|
|
48
|
+
pageToken: options.pageToken ?? "",
|
|
49
|
+
}, format);
|
|
50
|
+
process.stdout.write(outcome.rendered);
|
|
51
|
+
// The footer is human-only: appending it to json/yaml would corrupt the
|
|
52
|
+
// machine-readable payload (a latent wart in the Go CLI we don't copy).
|
|
53
|
+
if (format !== "json" && format !== "yaml" && outcome.nextPageToken !== "") {
|
|
54
|
+
process.stdout.write(`\n${outcome.matches} results match.\n`);
|
|
55
|
+
// The token belongs to this query in this organization, so the command
|
|
56
|
+
// repeats both; --org is the program's own flag and leads.
|
|
57
|
+
const orgFlag = org === "" ? "" : ` --org ${shellQuote(org)}`;
|
|
58
|
+
const sizeFlag = pageSize === DEFAULT_PAGE_SIZE ? "" : ` --page-size ${pageSize}`;
|
|
59
|
+
process.stdout.write(`See the next page with: stigmer${orgFlag} search ${type} ${shellQuote(query)}${sizeFlag} --page-token ${outcome.nextPageToken}\n`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// A query as one shell word, so the printed next-page command runs as shown.
|
|
63
|
+
function shellQuote(value) {
|
|
64
|
+
return /^[A-Za-z0-9._\/-]+$/.test(value) ? value : `'${value.replace(/'/g, `'\\''`)}'`;
|
|
65
|
+
}
|
|
66
|
+
function parsePositive(raw, fallback, flag) {
|
|
67
|
+
if (raw === undefined || raw === "")
|
|
68
|
+
return fallback;
|
|
69
|
+
if (!/^\d+$/.test(raw))
|
|
70
|
+
throw new UsageError(`invalid ${flag} value "${raw}"`);
|
|
71
|
+
const value = Number.parseInt(raw, 10);
|
|
72
|
+
if (value < 1)
|
|
73
|
+
throw new UsageError(`${flag} must be at least 1`);
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +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,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AAG,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,WAAW,IAAI,WAAW,GAAG,GAAG,CAAC,CAAC;IAC/E,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACvC,IAAI,KAAK,GAAG,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IAClE,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { OutputFlags } from "../../output/index.js";
|
|
3
|
+
export interface ServiceAccountCreateFlags extends OutputFlags {
|
|
4
|
+
role?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function registerServiceAccount(program: Command): void;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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,CAyF7D"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// `stigmer service-account create|list|delete` — an organization's own
|
|
2
|
+
// accounts for automation.
|
|
3
|
+
//
|
|
4
|
+
// service-account create <name> [--role admin|member|viewer] default member
|
|
5
|
+
// service-account list
|
|
6
|
+
// service-account keys <name> its API keys (organization admins)
|
|
7
|
+
// service-account delete <name> confirms first; -f/--force skips it
|
|
8
|
+
//
|
|
9
|
+
// A service account is what a CI job or a script acts as, through API keys
|
|
10
|
+
// created for it with `stigmer apikey create --service-account <name>`, so the
|
|
11
|
+
// automation keeps working when the person who set it up leaves. It is an
|
|
12
|
+
// account noun, not a resource kind, so it has a group of its own as `auth`
|
|
13
|
+
// and `apikey` do, and the generic verbs gain no row for it. Its keys are
|
|
14
|
+
// listed with `keys`, since `stigmer list apikeys` answers the caller's own,
|
|
15
|
+
// and read and revoked with the generic verbs on `apikey`. Its organization is the one every org-scoped command uses:
|
|
16
|
+
// `--org`, then `STIGMER_ORG`, then the context.
|
|
17
|
+
//
|
|
18
|
+
// Deleting one ends every key it has at once, so it runs the `delete`
|
|
19
|
+
// interaction: warn naming the account, confirm on a TTY, and abort cleanly
|
|
20
|
+
// when declined or when no one can answer.
|
|
21
|
+
//
|
|
22
|
+
// Thin handlers: resolve credentials and org, delegate to
|
|
23
|
+
// resources/service-account, render. Heavy modules are lazy-imported so
|
|
24
|
+
// `--help` stays fast.
|
|
25
|
+
import { ensureAuthenticated, resolveOrganization } from "../../config/index.js";
|
|
26
|
+
import { addReadFlags, addResultFlags, globalOrg, readFormat, resultFormat } from "../shared.js";
|
|
27
|
+
/** The lines `requireOrganization` prints for setting the organization. */
|
|
28
|
+
const SET_ORG_WITH = [
|
|
29
|
+
"stigmer service-account <command> --org <org>",
|
|
30
|
+
"stigmer config context set --org <org>",
|
|
31
|
+
];
|
|
32
|
+
export function registerServiceAccount(program) {
|
|
33
|
+
const group = program
|
|
34
|
+
.command("service-account")
|
|
35
|
+
.description("manage the organization's service accounts, the accounts its automation acts as");
|
|
36
|
+
const createCmd = group
|
|
37
|
+
.command("create <name>")
|
|
38
|
+
.description("create a service account holding one organization role (organization admins)")
|
|
39
|
+
.option("--role <role>", "its organization role: admin, member or viewer", "member")
|
|
40
|
+
.action(async (name, options, command) => {
|
|
41
|
+
const format = resultFormat(options);
|
|
42
|
+
const resources = await import("../../resources/service-account.js");
|
|
43
|
+
// A wrong role fails before anything is sent.
|
|
44
|
+
const role = resources.parseServiceAccountRole(options.role ?? "member");
|
|
45
|
+
const [session, { renderResult }] = await Promise.all([
|
|
46
|
+
openSession(command),
|
|
47
|
+
import("../../output/command-result.js"),
|
|
48
|
+
]);
|
|
49
|
+
renderResult(await resources.createServiceAccount(session.client, session.org, name, role), format);
|
|
50
|
+
});
|
|
51
|
+
addResultFlags(createCmd);
|
|
52
|
+
const listCmd = group
|
|
53
|
+
.command("list")
|
|
54
|
+
.description("list the organization's service accounts, newest first (organization admins)")
|
|
55
|
+
.action(async (options, command) => {
|
|
56
|
+
const format = readFormat(options);
|
|
57
|
+
const [session, resources, output, { IdentityAccountSchema }] = await Promise.all([
|
|
58
|
+
openSession(command),
|
|
59
|
+
import("../../resources/service-account.js"),
|
|
60
|
+
import("../../output/index.js"),
|
|
61
|
+
import("@stigmer/apis/ai/stigmer/iam/identityaccount/v1/api_pb"),
|
|
62
|
+
]);
|
|
63
|
+
const accounts = await resources.listServiceAccounts(session.client, session.org);
|
|
64
|
+
writeList(output, format, IdentityAccountSchema, accounts, {
|
|
65
|
+
empty: "service accounts",
|
|
66
|
+
headers: resources.SERVICE_ACCOUNT_TABLE_HEADERS,
|
|
67
|
+
rows: resources.serviceAccountRows,
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
addReadFlags(listCmd);
|
|
71
|
+
const keysCmd = group
|
|
72
|
+
.command("keys <name>")
|
|
73
|
+
.description("list a service account's API keys, newest first (organization admins)")
|
|
74
|
+
.action(async (name, options, command) => {
|
|
75
|
+
const format = readFormat(options);
|
|
76
|
+
const [session, resources, output, { ApiKeySchema }] = await Promise.all([
|
|
77
|
+
openSession(command),
|
|
78
|
+
import("../../resources/service-account.js"),
|
|
79
|
+
import("../../output/index.js"),
|
|
80
|
+
import("@stigmer/apis/ai/stigmer/iam/apikey/v1/api_pb"),
|
|
81
|
+
]);
|
|
82
|
+
const keys = await resources.listServiceAccountKeys(session.client, session.org, name);
|
|
83
|
+
writeList(output, format, ApiKeySchema, keys, {
|
|
84
|
+
empty: "API keys",
|
|
85
|
+
headers: resources.SERVICE_ACCOUNT_KEY_TABLE_HEADERS,
|
|
86
|
+
rows: resources.serviceAccountKeyRows,
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
addReadFlags(keysCmd);
|
|
90
|
+
const deleteCmd = group
|
|
91
|
+
.command("delete <name>")
|
|
92
|
+
.description("delete a service account; every API key it has stops working at once")
|
|
93
|
+
.option("-f, --force", "skip the confirmation prompt")
|
|
94
|
+
.action(async (name, options, command) => {
|
|
95
|
+
const format = resultFormat(options);
|
|
96
|
+
const [session, resources, { renderResult }, { confirm }] = await Promise.all([
|
|
97
|
+
openSession(command),
|
|
98
|
+
import("../../resources/service-account.js"),
|
|
99
|
+
import("../../output/command-result.js"),
|
|
100
|
+
import("../../output/confirm.js"),
|
|
101
|
+
]);
|
|
102
|
+
const staged = await resources.planDeleteServiceAccount(session.client, session.org, name);
|
|
103
|
+
if (options.force !== true) {
|
|
104
|
+
renderResult(staged.warning, format);
|
|
105
|
+
if (!(await confirm(staged.confirmPrompt))) {
|
|
106
|
+
// Declined (or no TTY): a clean, intentional no-op — exit 0.
|
|
107
|
+
process.stderr.write("Aborted.\n");
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
renderResult(await staged.perform(), format);
|
|
112
|
+
});
|
|
113
|
+
addResultFlags(deleteCmd);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A read verb's list: the protos as JSON or YAML, otherwise a table, or the
|
|
117
|
+
* standard empty-state line when there is nothing to show.
|
|
118
|
+
*/
|
|
119
|
+
function writeList(output, format, schema, items, table) {
|
|
120
|
+
if (format === "json") {
|
|
121
|
+
process.stdout.write(output.renderProtoListJson(schema, items));
|
|
122
|
+
}
|
|
123
|
+
else if (format === "yaml") {
|
|
124
|
+
process.stdout.write(output.renderProtoListYaml(schema, items));
|
|
125
|
+
}
|
|
126
|
+
else if (items.length === 0) {
|
|
127
|
+
process.stdout.write(output.renderEmpty(table.empty));
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
process.stdout.write(output.renderTable(table.headers, table.rows(items)));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async function openSession(command) {
|
|
134
|
+
const [{ connectBackend }, { requireOrganization }] = await Promise.all([
|
|
135
|
+
import("../../backend.js"),
|
|
136
|
+
import("../../client/single-org.js"),
|
|
137
|
+
]);
|
|
138
|
+
const client = connectBackend();
|
|
139
|
+
ensureAuthenticated(client.config);
|
|
140
|
+
const org = resolveOrganization(client.config, globalOrg(command));
|
|
141
|
+
await requireOrganization(client.stigmer, org, SET_ORG_WITH);
|
|
142
|
+
return { client: client.stigmer, org };
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/service-account/index.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,2BAA2B;AAC3B,EAAE;AACF,gFAAgF;AAChF,yBAAyB;AACzB,8EAA8E;AAC9E,+EAA+E;AAC/E,EAAE;AACF,2EAA2E;AAC3E,+EAA+E;AAC/E,0EAA0E;AAC1E,4EAA4E;AAC5E,0EAA0E;AAC1E,6EAA6E;AAC7E,sHAAsH;AACtH,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,4EAA4E;AAC5E,2CAA2C;AAC3C,EAAE;AACF,0DAA0D;AAC1D,wEAAwE;AACxE,uBAAuB;AAGvB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAUjG,2EAA2E;AAC3E,MAAM,YAAY,GAAG;IACnB,+CAA+C;IAC/C,wCAAwC;CACzC,CAAC;AAEF,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,MAAM,KAAK,GAAG,OAAO;SAClB,OAAO,CAAC,iBAAiB,CAAC;SAC1B,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7D,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/commands/setup.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYzC,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAUpD"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// `stigmer setup` — configure the LLM provider used for agent execution and
|
|
2
|
+
// the optional self-hosted operator identity (oss#796).
|
|
3
|
+
//
|
|
4
|
+
// Two paths share one decision core (local/setup/wizard.ts): a non-interactive
|
|
5
|
+
// flag path (`--provider`/`--api-key`, `--operator-email`/`--operator-name`)
|
|
6
|
+
// for scripts and CI, and an interactive flow when NO flag is given. Flags
|
|
7
|
+
// are independently applicable — operator flags without `--provider` leave
|
|
8
|
+
// the LLM section untouched, and vice versa. Writes land under
|
|
9
|
+
// backend.local.llm / backend.local.operator, preserving every other config
|
|
10
|
+
// field. The valid provider set is owned by wizard.ts's PROVIDER_CHOICES
|
|
11
|
+
// (Anthropic-only + skip — the only story the native runner serves).
|
|
12
|
+
//
|
|
13
|
+
// Setup deliberately has NO model concept: the platform model registry owns
|
|
14
|
+
// the execution default, and per-run overrides belong to `stigmer run
|
|
15
|
+
// --model`. A setup-level pin used to exist but never reached execution
|
|
16
|
+
// (oss#314) — config that looks authoritative but is dead invites exactly
|
|
17
|
+
// that bug class, so it is structurally gone rather than wired up.
|
|
18
|
+
import { homedir } from "node:os";
|
|
19
|
+
import { CommandResult, renderResult } from "../output/index.js";
|
|
20
|
+
import { addResultFlags, resultFormat } from "./shared.js";
|
|
21
|
+
export function registerSetup(program) {
|
|
22
|
+
const setup = program
|
|
23
|
+
.command("setup")
|
|
24
|
+
.description("configure the LLM provider and operator identity for local execution")
|
|
25
|
+
.option("--provider <name>", "provider: anthropic, or skip to clear (non-interactive)")
|
|
26
|
+
.option("--api-key <key>", "Anthropic API key")
|
|
27
|
+
.option("--operator-email <email>", "operator identity for local caller attribution (non-interactive)")
|
|
28
|
+
.option("--operator-name <name>", "operator display name (requires --operator-email)")
|
|
29
|
+
.action((options) => runSetup(options));
|
|
30
|
+
addResultFlags(setup);
|
|
31
|
+
}
|
|
32
|
+
async function runSetup(options) {
|
|
33
|
+
const { load, save } = await import("../config/config.js");
|
|
34
|
+
const { PROVIDER_CHOICES, applyChoice, applyOperatorIdentity, runInteractiveWizard } = await import("../local/setup/wizard.js");
|
|
35
|
+
const { isRunning } = await import("../local/daemon/launch.js");
|
|
36
|
+
const { CliExitError } = await import("../errors/cli-exit-error.js");
|
|
37
|
+
const { ExitCode } = await import("../errors/exit-codes.js");
|
|
38
|
+
const config = load();
|
|
39
|
+
const nonInteractive = options.provider !== undefined ||
|
|
40
|
+
options.operatorEmail !== undefined ||
|
|
41
|
+
options.operatorName !== undefined;
|
|
42
|
+
let updated;
|
|
43
|
+
if (nonInteractive) {
|
|
44
|
+
updated = config;
|
|
45
|
+
if (options.provider !== undefined) {
|
|
46
|
+
const provider = options.provider.toLowerCase();
|
|
47
|
+
if (!PROVIDER_CHOICES.includes(provider)) {
|
|
48
|
+
throw new CliExitError(`unknown provider: ${options.provider}`, ExitCode.Usage, [
|
|
49
|
+
`Valid providers: ${PROVIDER_CHOICES.join(", ")}`,
|
|
50
|
+
]);
|
|
51
|
+
}
|
|
52
|
+
updated = applyChoice(updated, provider, {
|
|
53
|
+
apiKey: options.apiKey,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (options.operatorEmail !== undefined || options.operatorName !== undefined) {
|
|
57
|
+
try {
|
|
58
|
+
updated = applyOperatorIdentity(updated, options.operatorEmail ?? "", options.operatorName ?? "");
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
// Same rule the server enforces at boot, surfaced at setup time.
|
|
62
|
+
throw new CliExitError(error instanceof Error ? error.message : String(error), ExitCode.Usage);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
updated = await runInteractiveWizard(config);
|
|
68
|
+
}
|
|
69
|
+
save(updated);
|
|
70
|
+
const result = CommandResult.success("Configuration saved");
|
|
71
|
+
if (await isRunning(homedir())) {
|
|
72
|
+
result.hint("Restart to apply: stigmer down && stigmer up");
|
|
73
|
+
}
|
|
74
|
+
renderResult(result, resultFormat(options));
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/commands/setup.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,wDAAwD;AACxD,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,2EAA2E;AAC3E,2EAA2E;AAC3E,+DAA+D;AAC/D,4EAA4E;AAC5E,yEAAyE;AACzE,qEAAqE;AACrE,EAAE;AACF,4EAA4E;AAC5E,sEAAsE;AACtE,wEAAwE;AACxE,0EAA0E;AAC1E,mEAAmE;AAGnE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAoB,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAS3D,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,MAAM,KAAK,GAAG,OAAO;SAClB,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,sEAAsE,CAAC;SACnF,MAAM,CAAC,mBAAmB,EAAE,yDAAyD,CAAC;SACtF,MAAM,CAAC,iBAAiB,EAAE,mBAAmB,CAAC;SAC9C,MAAM,CAAC,0BAA0B,EAAE,kEAAkE,CAAC;SACtG,MAAM,CAAC,wBAAwB,EAAE,mDAAmD,CAAC;SACrF,MAAM,CAAC,CAA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D,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,QAA6C,EAAE;gBAC5E,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC,CAAC;QACL,CAAC;QACD,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YAC9E,IAAI,CAAC;gBACH,OAAO,GAAG,qBAAqB,CAC7B,OAAO,EACP,OAAO,CAAC,aAAa,IAAI,EAAE,EAC3B,OAAO,CAAC,YAAY,IAAI,EAAE,CAC3B,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,iEAAiE;gBACjE,MAAM,IAAI,YAAY,CACpB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACtD,QAAQ,CAAC,KAAK,CACf,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,MAAM,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,CAAC;IAEd,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC5D,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC9D,CAAC;IACD,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import { type CommandClass, type OutputFlags, type OutputFormat } from "../output/index.js";
|
|
3
|
+
/** Add read-verb output flags: `-o/--output {table,json,yaml}` plus `--json`. */
|
|
4
|
+
export declare function addReadFlags(command: Command): Command;
|
|
5
|
+
/** Add mutating-command output flags: `--json` and `--quiet`. */
|
|
6
|
+
export declare function addResultFlags(command: Command): Command;
|
|
7
|
+
/** Resolve the output format for a read verb from parsed options. */
|
|
8
|
+
export declare function readFormat(options: OutputFlags): OutputFormat;
|
|
9
|
+
/** Resolve the output format for a mutating command from parsed options. */
|
|
10
|
+
export declare function resultFormat(options: OutputFlags): OutputFormat;
|
|
11
|
+
/** Resolve any command class's format (escape hatch for non-standard verbs). */
|
|
12
|
+
export declare function formatFor(options: OutputFlags, commandClass: CommandClass): OutputFormat;
|
|
13
|
+
/** Read the inherited global `--org` flag from within a subcommand action. */
|
|
14
|
+
export declare function globalOrg(command: Command): string | undefined;
|
|
15
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/commands/shared.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAiB,MAAM,oBAAoB,CAAC;AAE3G,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAItD;AAED,iEAAiE;AACjE,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAIxD;AAED,qEAAqE;AACrE,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAE7D;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAE/D;AAED,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,GAAG,YAAY,CAExF;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG9D"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Shared commander wiring for output flags. Keeps the unified output model
|
|
2
|
+
// (src/output/format.ts) consistent across every command and out of the
|
|
3
|
+
// individual handlers.
|
|
4
|
+
import { resolveFormat } from "../output/index.js";
|
|
5
|
+
/** Add read-verb output flags: `-o/--output {table,json,yaml}` plus `--json`. */
|
|
6
|
+
export function addReadFlags(command) {
|
|
7
|
+
return command
|
|
8
|
+
.option("-o, --output <format>", "output format: table, json, or yaml")
|
|
9
|
+
.option("--json", "shorthand for --output json");
|
|
10
|
+
}
|
|
11
|
+
/** Add mutating-command output flags: `--json` and `--quiet`. */
|
|
12
|
+
export function addResultFlags(command) {
|
|
13
|
+
return command
|
|
14
|
+
.option("--json", "emit the result as JSON")
|
|
15
|
+
.option("--quiet", "print only the status line");
|
|
16
|
+
}
|
|
17
|
+
/** Resolve the output format for a read verb from parsed options. */
|
|
18
|
+
export function readFormat(options) {
|
|
19
|
+
return resolveFormat(options, "read");
|
|
20
|
+
}
|
|
21
|
+
/** Resolve the output format for a mutating command from parsed options. */
|
|
22
|
+
export function resultFormat(options) {
|
|
23
|
+
return resolveFormat(options, "mutating");
|
|
24
|
+
}
|
|
25
|
+
/** Resolve any command class's format (escape hatch for non-standard verbs). */
|
|
26
|
+
export function formatFor(options, commandClass) {
|
|
27
|
+
return resolveFormat(options, commandClass);
|
|
28
|
+
}
|
|
29
|
+
/** Read the inherited global `--org` flag from within a subcommand action. */
|
|
30
|
+
export function globalOrg(command) {
|
|
31
|
+
const value = command.optsWithGlobals().org;
|
|
32
|
+
return typeof value === "string" && value !== "" ? value : undefined;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/commands/shared.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wEAAwE;AACxE,uBAAuB;AAGvB,OAAO,EAA0D,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3G,iFAAiF;AACjF,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,OAAO,OAAO;SACX,MAAM,CAAC,uBAAuB,EAAE,qCAAqC,CAAC;SACtE,MAAM,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;AACrD,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,OAAO,OAAO;SACX,MAAM,CAAC,QAAQ,EAAE,yBAAyB,CAAC;SAC3C,MAAM,CAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;AACrD,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,UAAU,CAAC,OAAoB;IAC7C,OAAO,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACxC,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,YAAY,CAAC,OAAoB;IAC/C,OAAO,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAC5C,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,SAAS,CAAC,OAAoB,EAAE,YAA0B;IACxE,OAAO,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AAC9C,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,SAAS,CAAC,OAAgB;IACxC,MAAM,KAAK,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/commands/status.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CASrD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// `stigmer status` — show the local stack's health (daemon, Temporal, server,
|
|
2
|
+
// runner, web console) plus the effective LLM configuration.
|
|
3
|
+
//
|
|
4
|
+
// Thin handler: build the structured result in the local subsystem and render
|
|
5
|
+
// it. The local module loads lazily so `--help` stays fast.
|
|
6
|
+
import { renderResult } from "../output/index.js";
|
|
7
|
+
import { addResultFlags, resultFormat } from "./shared.js";
|
|
8
|
+
export function registerStatus(program) {
|
|
9
|
+
const status = program
|
|
10
|
+
.command("status")
|
|
11
|
+
.description("show the status of the local Stigmer stack")
|
|
12
|
+
.action(async (options) => {
|
|
13
|
+
const { buildStatusResult } = await import("../local/status.js");
|
|
14
|
+
renderResult(await buildStatusResult(), resultFormat(options));
|
|
15
|
+
});
|
|
16
|
+
addResultFlags(status);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../src/commands/status.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6DAA6D;AAC7D,EAAE;AACF,8EAA8E;AAC9E,4DAA4D;AAG5D,OAAO,EAAoB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,MAAM,GAAG,OAAO;SACnB,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,4CAA4C,CAAC;SACzD,MAAM,CAAC,KAAK,EAAE,OAAoB,EAAE,EAAE;QACrC,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACjE,YAAY,CAAC,MAAM,iBAAiB,EAAE,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IACL,cAAc,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../src/commands/tag.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAOlD"}
|
package/commands/tag.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// `stigmer tag <type> <org/slug> <hash> <tag>` — assign a tag to a resource
|
|
2
|
+
// version. Thin handler: resolve credentials/org, delegate to the resource
|
|
3
|
+
// layer, render the result. Heavy modules are lazy-imported.
|
|
4
|
+
import { ensureAuthenticated, resolveOrganization } from "../config/index.js";
|
|
5
|
+
import { globalOrg } from "./shared.js";
|
|
6
|
+
export function registerTag(program) {
|
|
7
|
+
program
|
|
8
|
+
.command("tag <type> <org/slug> <hash> <tag>")
|
|
9
|
+
.description("assign a tag to a resource version (supported types: agent)")
|
|
10
|
+
.action((type, ref, hash, tag, _options, command) => runTag(type, ref, hash, tag, command));
|
|
11
|
+
}
|
|
12
|
+
async function runTag(type, ref, hash, tag, command) {
|
|
13
|
+
const [{ connectBackend }, { tagVersion }, { renderResult }] = await Promise.all([
|
|
14
|
+
import("../backend.js"),
|
|
15
|
+
import("../resources/tag.js"),
|
|
16
|
+
import("../output/command-result.js"),
|
|
17
|
+
]);
|
|
18
|
+
const client = connectBackend();
|
|
19
|
+
ensureAuthenticated(client.config);
|
|
20
|
+
const org = resolveOrganization(client.config, globalOrg(command));
|
|
21
|
+
const result = await tagVersion(client.stigmer, type, ref, hash, tag, org);
|
|
22
|
+
renderResult(result, "human");
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../src/commands/tag.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,6DAA6D;AAG7D,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,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ings":"AAWA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6BzC,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAwBjD"}
|
package/commands/up.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// `stigmer up [server]` — start the local Stigmer stack (managed Temporal, the
|
|
2
|
+
// control-plane server, and the unified runner) as a supervised background
|
|
3
|
+
// daemon, or with `--foreground` as this very process. `up server` brings up
|
|
4
|
+
// only the control plane.
|
|
5
|
+
//
|
|
6
|
+
// Thin handler: parse flags, delegate to the local daemon launcher, render the
|
|
7
|
+
// outcome. The launcher (and the heavy resolvers it pulls in) load lazily so
|
|
8
|
+
// `--help` stays fast.
|
|
9
|
+
import { homedir } from "node:os";
|
|
10
|
+
import { join } from "node:path";
|
|
11
|
+
import { CliExitError } from "../errors/cli-exit-error.js";
|
|
12
|
+
import { ExitCode } from "../errors/exit-codes.js";
|
|
13
|
+
import { CommandResult, renderResult } from "../output/index.js";
|
|
14
|
+
import { HEALTH_STATE_FILE, SERVER_PORT } from "../local/constants.js";
|
|
15
|
+
import { addResultFlags, resultFormat } from "./shared.js";
|
|
16
|
+
// The server serves the web console from its unified port; the
|
|
17
|
+
// flag suppresses probing/reporting it, not the serving itself (one
|
|
18
|
+
// process, one origin — there is no separate console to not-start).
|
|
19
|
+
const NO_WEB_HELP = "don't report the web console URL";
|
|
20
|
+
// Foreground is the shape a supervisor wants — a container entrypoint, a
|
|
21
|
+
// systemd unit, a tmux pane: one process to watch, signals delivered to it,
|
|
22
|
+
// the stack's output on its stdio — instead of a detached daemon to poll.
|
|
23
|
+
const FOREGROUND_HELP = "run the stack in this process until Ctrl-C or SIGTERM (for containers and service managers)";
|
|
24
|
+
export function registerUp(program) {
|
|
25
|
+
const up = program
|
|
26
|
+
.command("up")
|
|
27
|
+
.description("start the local Stigmer stack (server, runner, Temporal)")
|
|
28
|
+
.option("--server-only", "start only the control plane (no runners)")
|
|
29
|
+
.option("--no-web", NO_WEB_HELP)
|
|
30
|
+
.option("--foreground", FOREGROUND_HELP)
|
|
31
|
+
.action((options) => runUp({ serverOnly: options.serverOnly === true, noWeb: options.web === false, foreground: options.foreground === true }, options));
|
|
32
|
+
addResultFlags(up);
|
|
33
|
+
const server = up
|
|
34
|
+
.command("server")
|
|
35
|
+
.description("start only the control plane (no runners)")
|
|
36
|
+
.option("--no-web", NO_WEB_HELP)
|
|
37
|
+
.option("--foreground", FOREGROUND_HELP)
|
|
38
|
+
.action((options) => runUp({ serverOnly: true, noWeb: options.web === false, foreground: options.foreground === true }, options));
|
|
39
|
+
addResultFlags(server);
|
|
40
|
+
}
|
|
41
|
+
async function runUp(run, flags) {
|
|
42
|
+
process.stderr.write("Starting Stigmer local stack… (first run may take a moment)\n");
|
|
43
|
+
const launch = await import("../local/daemon/launch.js");
|
|
44
|
+
if (!run.foreground) {
|
|
45
|
+
await launch.up(run);
|
|
46
|
+
await renderUpCard(run, flags);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
// The card renders when the stack is serving — the moment the
|
|
50
|
+
// detached shape would have returned — and the process then stays up,
|
|
51
|
+
// mirroring the server's and runner's output, until a shutdown signal.
|
|
52
|
+
const code = await launch.upForeground(run, homedir(), {
|
|
53
|
+
onReady: () => renderUpCard(run, flags),
|
|
54
|
+
});
|
|
55
|
+
if (code !== 0) {
|
|
56
|
+
// The daemon body has already logged which component failed and why.
|
|
57
|
+
const { logDir } = await import("../local/paths.js");
|
|
58
|
+
throw new CliExitError("the local stack did not start", ExitCode.General, [
|
|
59
|
+
`Check the component logs under ${logDir(homedir())}.`,
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async function renderUpCard(run, flags) {
|
|
64
|
+
const result = CommandResult.success(run.serverOnly ? "Stigmer control plane is up" : "Stigmer local stack is up");
|
|
65
|
+
const section = result.addSection("Endpoints");
|
|
66
|
+
section.field("server", `http://localhost:${SERVER_PORT}`);
|
|
67
|
+
if (await consoleReported()) {
|
|
68
|
+
// Same origin as the API: the server serves the console. Only
|
|
69
|
+
// printed when the daemon's probe found a bundled export — a dev-tree
|
|
70
|
+
// server without one must not advertise a dead URL.
|
|
71
|
+
section.field("console", `http://localhost:${SERVER_PORT}`);
|
|
72
|
+
}
|
|
73
|
+
result.hint("Check status with: stigmer status");
|
|
74
|
+
result.hint(run.foreground ? "Stop it with: Ctrl-C (or stigmer down from another shell)" : "Stop it with: stigmer down");
|
|
75
|
+
renderResult(result, resultFormat(flags));
|
|
76
|
+
}
|
|
77
|
+
/** Whether the daemon recorded the web console as running (its own probe). */
|
|
78
|
+
async function consoleReported() {
|
|
79
|
+
const { dataDir } = await import("../local/paths.js");
|
|
80
|
+
const { loadHealthState } = await import("../local/state/health-state.js");
|
|
81
|
+
const health = loadHealthState(join(dataDir(homedir()), HEALTH_STATE_FILE));
|
|
82
|
+
return health?.components["web-console"]?.state === "running";
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=up.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"up.js","sourceRoot":"","sources":["../src/commands/up.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,2EAA2E;AAC3E,6EAA6E;AAC7E,0BAA0B;AAC1B,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,uBAAuB;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAoB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC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AE,oBAAoB,WAAW,EAAE,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IACjD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,8DAA8D,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC;IAC/H,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,8EAA8E;AAC9E,KAAK,UAAU,eAAe;IAC5B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACtD,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC;IAC3E,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAC5E,OAAO,MAAM,EAAE,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK,KAAK,SAAS,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
/** What `usage hours` says on a server that serves no subscriptions. */
|
|
3
|
+
export declare const AGENT_HOURS_NOT_SERVED = "This server does not count agent hours: they are a Stigmer Cloud plan's. `stigmer usage org` shows working time.";
|
|
4
|
+
export declare function registerUsage(program: Command): void;
|
|
5
|
+
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/commands/usage.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAczC,wEAAwE;AACxE,eAAO,MAAM,sBAAsB,qHACiF,CAAC;AAErH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8BpD"}
|