@stigmer/cli 3.0.8
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 +190 -0
- package/README.md +42 -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 +56 -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 +33 -0
- package/auth/token.d.ts.map +1 -0
- package/auth/token.js +111 -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 +25 -0
- package/client/client.d.ts.map +1 -0
- package/client/client.js +55 -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/commands/agent-exec-flags.d.ts +30 -0
- package/commands/agent-exec-flags.d.ts.map +1 -0
- package/commands/agent-exec-flags.js +52 -0
- package/commands/agent-exec-flags.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 +3 -0
- package/commands/apikey/index.d.ts.map +1 -0
- package/commands/apikey/index.js +118 -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 +155 -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 +76 -0
- package/commands/auth/index.js.map +1 -0
- package/commands/completion.d.ts +3 -0
- package/commands/completion.d.ts.map +1 -0
- package/commands/completion.js +82 -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 +49 -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 +23 -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 +56 -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 +41 -0
- package/commands/delete.js.map +1 -0
- package/commands/diff.d.ts +3 -0
- package/commands/diff.d.ts.map +1 -0
- package/commands/diff.js +87 -0
- package/commands/diff.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 +46 -0
- package/commands/download.js.map +1 -0
- package/commands/draft.d.ts +3 -0
- package/commands/draft.d.ts.map +1 -0
- package/commands/draft.js +97 -0
- package/commands/draft.js.map +1 -0
- package/commands/execution/approve.d.ts +3 -0
- package/commands/execution/approve.d.ts.map +1 -0
- package/commands/execution/approve.js +60 -0
- package/commands/execution/approve.js.map +1 -0
- package/commands/execution/control.d.ts +3 -0
- package/commands/execution/control.d.ts.map +1 -0
- package/commands/execution/control.js +57 -0
- package/commands/execution/control.js.map +1 -0
- package/commands/execution/index.d.ts +3 -0
- package/commands/execution/index.d.ts.map +1 -0
- package/commands/execution/index.js +21 -0
- package/commands/execution/index.js.map +1 -0
- package/commands/execution/logs.d.ts +3 -0
- package/commands/execution/logs.d.ts.map +1 -0
- package/commands/execution/logs.js +34 -0
- package/commands/execution/logs.js.map +1 -0
- package/commands/execution/trace.d.ts +3 -0
- package/commands/execution/trace.d.ts.map +1 -0
- package/commands/execution/trace.js +24 -0
- package/commands/execution/trace.js.map +1 -0
- package/commands/get.d.ts +3 -0
- package/commands/get.d.ts.map +1 -0
- package/commands/get.js +81 -0
- package/commands/get.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 +22 -0
- package/commands/internal-daemon.js.map +1 -0
- package/commands/list.d.ts +3 -0
- package/commands/list.d.ts.map +1 -0
- package/commands/list.js +117 -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/mcp-server.d.ts +22 -0
- package/commands/mcp-server.d.ts.map +1 -0
- package/commands/mcp-server.js +104 -0
- package/commands/mcp-server.js.map +1 -0
- package/commands/push.d.ts +3 -0
- package/commands/push.d.ts.map +1 -0
- package/commands/push.js +150 -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 +87 -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 +193 -0
- package/commands/run.js.map +1 -0
- package/commands/search.d.ts +3 -0
- package/commands/search.d.ts.map +1 -0
- package/commands/search.js +73 -0
- package/commands/search.js.map +1 -0
- package/commands/seedpack.d.ts +3 -0
- package/commands/seedpack.d.ts.map +1 -0
- package/commands/seedpack.js +76 -0
- package/commands/seedpack.js.map +1 -0
- package/commands/setup.d.ts +3 -0
- package/commands/setup.d.ts.map +1 -0
- package/commands/setup.js +57 -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 +39 -0
- package/commands/up.js.map +1 -0
- package/commands/usage.d.ts +3 -0
- package/commands/usage.d.ts.map +1 -0
- package/commands/usage.js +56 -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 +64 -0
- package/commands/validate.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 +39 -0
- package/config/config.d.ts.map +1 -0
- package/config/config.js +85 -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 +53 -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 +33 -0
- package/config/resolve.d.ts.map +1 -0
- package/config/resolve.js +77 -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 +158 -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 +12 -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 +38 -0
- package/local/artifact.d.ts.map +1 -0
- package/local/artifact.js +133 -0
- package/local/artifact.js.map +1 -0
- package/local/constants.d.ts +36 -0
- package/local/constants.d.ts.map +1 -0
- package/local/constants.js +44 -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 +105 -0
- package/local/daemon/components.js.map +1 -0
- package/local/daemon/env.d.ts +55 -0
- package/local/daemon/env.d.ts.map +1 -0
- package/local/daemon/env.js +82 -0
- package/local/daemon/env.js.map +1 -0
- package/local/daemon/host.d.ts +7 -0
- package/local/daemon/host.d.ts.map +1 -0
- package/local/daemon/host.js +74 -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 +11 -0
- package/local/daemon/launch.d.ts.map +1 -0
- package/local/daemon/launch.js +219 -0
- package/local/daemon/launch.js.map +1 -0
- package/local/daemon/process.d.ts +28 -0
- package/local/daemon/process.d.ts.map +1 -0
- package/local/daemon/process.js +149 -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 +63 -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 +30 -0
- package/local/llm-config.d.ts.map +1 -0
- package/local/llm-config.js +93 -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/paths.d.ts +26 -0
- package/local/paths.d.ts.map +1 -0
- package/local/paths.js +57 -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 +6 -0
- package/local/runtime/index.js.map +1 -0
- package/local/runtime/node.d.ts +8 -0
- package/local/runtime/node.d.ts.map +1 -0
- package/local/runtime/node.js +59 -0
- package/local/runtime/node.js.map +1 -0
- package/local/runtime/runner.d.ts +40 -0
- package/local/runtime/runner.d.ts.map +1 -0
- package/local/runtime/runner.js +154 -0
- package/local/runtime/runner.js.map +1 -0
- package/local/runtime/server.d.ts +39 -0
- package/local/runtime/server.d.ts.map +1 -0
- package/local/runtime/server.js +141 -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/seedpack/apply.d.ts +43 -0
- package/local/seedpack/apply.d.ts.map +1 -0
- package/local/seedpack/apply.js +94 -0
- package/local/seedpack/apply.js.map +1 -0
- package/local/seedpack/content.d.ts +56 -0
- package/local/seedpack/content.d.ts.map +1 -0
- package/local/seedpack/content.js +201 -0
- package/local/seedpack/content.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 +22 -0
- package/local/setup/wizard.d.ts.map +1 -0
- package/local/setup/wizard.js +65 -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 +12 -0
- package/local/state/lock.d.ts.map +1 -0
- package/local/state/lock.js +70 -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 +16 -0
- package/local/state/proc.d.ts.map +1 -0
- package/local/state/proc.js +69 -0
- package/local/state/proc.js.map +1 -0
- package/local/state/startup-config.d.ts +23 -0
- package/local/state/startup-config.d.ts.map +1 -0
- package/local/state/startup-config.js +33 -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 +168 -0
- package/local/status.js.map +1 -0
- package/local/temporal/download.d.ts +20 -0
- package/local/temporal/download.d.ts.map +1 -0
- package/local/temporal/download.js +36 -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 +8 -0
- package/local/temporal/inspect.d.ts.map +1 -0
- package/local/temporal/inspect.js +33 -0
- package/local/temporal/inspect.js.map +1 -0
- package/local/temporal/manager.d.ts +50 -0
- package/local/temporal/manager.d.ts.map +1 -0
- package/local/temporal/manager.js +208 -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 +4 -0
- package/local/webconsole/index.d.ts.map +1 -0
- package/local/webconsole/index.js +13 -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/output/command-result.d.ts +47 -0
- package/output/command-result.d.ts.map +1 -0
- package/output/command-result.js +134 -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 +42 -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 +24 -0
- package/output/ndjson.d.ts.map +1 -0
- package/output/ndjson.js +38 -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 +49 -0
- package/program.d.ts +3 -0
- package/program.d.ts.map +1 -0
- package/program.js +95 -0
- package/program.js.map +1 -0
- package/registry/aliases.d.ts +18 -0
- package/registry/aliases.d.ts.map +1 -0
- package/registry/aliases.js +85 -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 +12 -0
- package/registry/metadata.d.ts.map +1 -0
- package/registry/metadata.js +49 -0
- package/registry/metadata.js.map +1 -0
- package/registry/registry.d.ts +39 -0
- package/registry/registry.d.ts.map +1 -0
- package/registry/registry.js +59 -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 +48 -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 +36 -0
- package/registry/verbs.js.map +1 -0
- package/resources/apply/apply.d.ts +55 -0
- package/resources/apply/apply.d.ts.map +1 -0
- package/resources/apply/apply.js +163 -0
- package/resources/apply/apply.js.map +1 -0
- package/resources/apply/declarative.d.ts +106 -0
- package/resources/apply/declarative.d.ts.map +1 -0
- package/resources/apply/declarative.js +378 -0
- package/resources/apply/declarative.js.map +1 -0
- package/resources/apply/discovery.d.ts +7 -0
- package/resources/apply/discovery.d.ts.map +1 -0
- package/resources/apply/discovery.js +47 -0
- package/resources/apply/discovery.js.map +1 -0
- package/resources/apply/handlers.d.ts +15 -0
- package/resources/apply/handlers.d.ts.map +1 -0
- package/resources/apply/handlers.js +126 -0
- package/resources/apply/handlers.js.map +1 -0
- package/resources/apply/synth/project-track.d.ts +21 -0
- package/resources/apply/synth/project-track.d.ts.map +1 -0
- package/resources/apply/synth/project-track.js +102 -0
- package/resources/apply/synth/project-track.js.map +1 -0
- package/resources/apply/synth/reader.d.ts +18 -0
- package/resources/apply/synth/reader.d.ts.map +1 -0
- package/resources/apply/synth/reader.js +55 -0
- package/resources/apply/synth/reader.js.map +1 -0
- package/resources/apply/synth/runtime.d.ts +8 -0
- package/resources/apply/synth/runtime.d.ts.map +1 -0
- package/resources/apply/synth/runtime.js +32 -0
- package/resources/apply/synth/runtime.js.map +1 -0
- package/resources/apply/synth/synthesize.d.ts +43 -0
- package/resources/apply/synth/synthesize.d.ts.map +1 -0
- package/resources/apply/synth/synthesize.js +115 -0
- package/resources/apply/synth/synthesize.js.map +1 -0
- package/resources/connect/connect.d.ts +24 -0
- package/resources/connect/connect.d.ts.map +1 -0
- package/resources/connect/connect.js +71 -0
- package/resources/connect/connect.js.map +1 -0
- package/resources/connect/discover.d.ts +5 -0
- package/resources/connect/discover.d.ts.map +1 -0
- package/resources/connect/discover.js +100 -0
- package/resources/connect/discover.js.map +1 -0
- package/resources/connect/display.d.ts +5 -0
- package/resources/connect/display.d.ts.map +1 -0
- package/resources/connect/display.js +58 -0
- package/resources/connect/display.js.map +1 -0
- package/resources/connect/oauth.d.ts +45 -0
- package/resources/connect/oauth.d.ts.map +1 -0
- package/resources/connect/oauth.js +152 -0
- package/resources/connect/oauth.js.map +1 -0
- package/resources/delete.d.ts +18 -0
- package/resources/delete.d.ts.map +1 -0
- package/resources/delete.js +180 -0
- package/resources/delete.js.map +1 -0
- package/resources/diff.d.ts +16 -0
- package/resources/diff.d.ts.map +1 -0
- package/resources/diff.js +158 -0
- package/resources/diff.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 +107 -0
- package/resources/download.js.map +1 -0
- package/resources/execution-approve.d.ts +26 -0
- package/resources/execution-approve.d.ts.map +1 -0
- package/resources/execution-approve.js +69 -0
- package/resources/execution-approve.js.map +1 -0
- package/resources/execution-control.d.ts +16 -0
- package/resources/execution-control.d.ts.map +1 -0
- package/resources/execution-control.js +57 -0
- package/resources/execution-control.js.map +1 -0
- package/resources/execution-format.d.ts +12 -0
- package/resources/execution-format.d.ts.map +1 -0
- package/resources/execution-format.js +56 -0
- package/resources/execution-format.js.map +1 -0
- package/resources/execution-logs.d.ts +16 -0
- package/resources/execution-logs.d.ts.map +1 -0
- package/resources/execution-logs.js +132 -0
- package/resources/execution-logs.js.map +1 -0
- package/resources/execution-trace.d.ts +10 -0
- package/resources/execution-trace.d.ts.map +1 -0
- package/resources/execution-trace.js +125 -0
- package/resources/execution-trace.js.map +1 -0
- package/resources/execution.d.ts +59 -0
- package/resources/execution.d.ts.map +1 -0
- package/resources/execution.js +192 -0
- package/resources/execution.js.map +1 -0
- package/resources/get-bindings.d.ts +12 -0
- package/resources/get-bindings.d.ts.map +1 -0
- package/resources/get-bindings.js +40 -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 +31 -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/defaults.d.ts +2 -0
- package/resources/ignore/defaults.d.ts.map +1 -0
- package/resources/ignore/defaults.js +140 -0
- package/resources/ignore/defaults.js.map +1 -0
- package/resources/ignore/index.d.ts +5 -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/match.d.ts +3 -0
- package/resources/ignore/match.d.ts.map +1 -0
- package/resources/ignore/match.js +166 -0
- package/resources/ignore/match.js.map +1 -0
- package/resources/ignore/matcher.d.ts +44 -0
- package/resources/ignore/matcher.d.ts.map +1 -0
- package/resources/ignore/matcher.js +125 -0
- package/resources/ignore/matcher.js.map +1 -0
- package/resources/ignore/pattern.d.ts +13 -0
- package/resources/ignore/pattern.d.ts.map +1 -0
- package/resources/ignore/pattern.js +118 -0
- package/resources/ignore/pattern.js.map +1 -0
- package/resources/list.d.ts +7 -0
- package/resources/list.d.ts.map +1 -0
- package/resources/list.js +82 -0
- package/resources/list.js.map +1 -0
- package/resources/mcp/runtime-env.d.ts +23 -0
- package/resources/mcp/runtime-env.d.ts.map +1 -0
- package/resources/mcp/runtime-env.js +68 -0
- package/resources/mcp/runtime-env.js.map +1 -0
- package/resources/picker/ink.d.ts +35 -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/reference.d.ts +32 -0
- package/resources/reference.d.ts.map +1 -0
- package/resources/reference.js +128 -0
- package/resources/reference.js.map +1 -0
- package/resources/render.d.ts +28 -0
- package/resources/render.d.ts.map +1 -0
- package/resources/render.js +87 -0
- package/resources/render.js.map +1 -0
- package/resources/run/agent-exec.d.ts +15 -0
- package/resources/run/agent-exec.d.ts.map +1 -0
- package/resources/run/agent-exec.js +81 -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 +209 -0
- package/resources/run/attachments.js.map +1 -0
- package/resources/run/create.d.ts +56 -0
- package/resources/run/create.d.ts.map +1 -0
- package/resources/run/create.js +105 -0
- package/resources/run/create.js.map +1 -0
- package/resources/run/env.d.ts +18 -0
- package/resources/run/env.d.ts.map +1 -0
- package/resources/run/env.js +147 -0
- package/resources/run/env.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 +144 -0
- package/resources/run/epilogue.js.map +1 -0
- package/resources/run/header.d.ts +23 -0
- package/resources/run/header.d.ts.map +1 -0
- package/resources/run/header.js +51 -0
- package/resources/run/header.js.map +1 -0
- package/resources/run/prepare.d.ts +60 -0
- package/resources/run/prepare.d.ts.map +1 -0
- package/resources/run/prepare.js +78 -0
- package/resources/run/prepare.js.map +1 -0
- package/resources/run/resolve.d.ts +8 -0
- package/resources/run/resolve.d.ts.map +1 -0
- package/resources/run/resolve.js +28 -0
- package/resources/run/resolve.js.map +1 -0
- package/resources/run/resume.d.ts +13 -0
- package/resources/run/resume.d.ts.map +1 -0
- package/resources/run/resume.js +94 -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 +80 -0
- package/resources/run/stream.js.map +1 -0
- package/resources/run/workflow-stream.d.ts +25 -0
- package/resources/run/workflow-stream.d.ts.map +1 -0
- package/resources/run/workflow-stream.js +152 -0
- package/resources/run/workflow-stream.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/search.d.ts +22 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +23 -0
- package/resources/search.js.map +1 -0
- package/resources/session.d.ts +19 -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 +84 -0
- package/resources/skill.d.ts.map +1 -0
- package/resources/skill.js +342 -0
- package/resources/skill.js.map +1 -0
- package/resources/stream/approval-detect.d.ts +38 -0
- package/resources/stream/approval-detect.d.ts.map +1 -0
- package/resources/stream/approval-detect.js +93 -0
- package/resources/stream/approval-detect.js.map +1 -0
- package/resources/stream/convert.d.ts +38 -0
- package/resources/stream/convert.d.ts.map +1 -0
- package/resources/stream/convert.js +178 -0
- package/resources/stream/convert.js.map +1 -0
- package/resources/stream/diff.d.ts +29 -0
- package/resources/stream/diff.d.ts.map +1 -0
- package/resources/stream/diff.js +214 -0
- package/resources/stream/diff.js.map +1 -0
- package/resources/stream/events.d.ts +137 -0
- package/resources/stream/events.d.ts.map +1 -0
- package/resources/stream/events.js +15 -0
- package/resources/stream/events.js.map +1 -0
- package/resources/stream/headless.d.ts +38 -0
- package/resources/stream/headless.d.ts.map +1 -0
- package/resources/stream/headless.js +75 -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 +25 -0
- package/resources/stream/render-ndjson.d.ts.map +1 -0
- package/resources/stream/render-ndjson.js +156 -0
- package/resources/stream/render-ndjson.js.map +1 -0
- package/resources/stream/render-plaintext.d.ts +18 -0
- package/resources/stream/render-plaintext.d.ts.map +1 -0
- package/resources/stream/render-plaintext.js +71 -0
- package/resources/stream/render-plaintext.js.map +1 -0
- package/resources/stream/snapshot.d.ts +8 -0
- package/resources/stream/snapshot.d.ts.map +1 -0
- package/resources/stream/snapshot.js +163 -0
- package/resources/stream/snapshot.js.map +1 -0
- package/resources/stream/subagent.d.ts +12 -0
- package/resources/stream/subagent.d.ts.map +1 -0
- package/resources/stream/subagent.js +76 -0
- package/resources/stream/subagent.js.map +1 -0
- package/resources/stream/submit.d.ts +20 -0
- package/resources/stream/submit.d.ts.map +1 -0
- package/resources/stream/submit.js +125 -0
- package/resources/stream/submit.js.map +1 -0
- package/resources/stream/todo.d.ts +11 -0
- package/resources/stream/todo.d.ts.map +1 -0
- package/resources/stream/todo.js +44 -0
- package/resources/stream/todo.js.map +1 -0
- package/resources/stream/tool-state.d.ts +31 -0
- package/resources/stream/tool-state.d.ts.map +1 -0
- package/resources/stream/tool-state.js +126 -0
- package/resources/stream/tool-state.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/stream/workflow-event-view.d.ts +21 -0
- package/resources/stream/workflow-event-view.d.ts.map +1 -0
- package/resources/stream/workflow-event-view.js +88 -0
- package/resources/stream/workflow-event-view.js.map +1 -0
- package/resources/stream/workflow-render-ndjson.d.ts +5 -0
- package/resources/stream/workflow-render-ndjson.d.ts.map +1 -0
- package/resources/stream/workflow-render-ndjson.js +54 -0
- package/resources/stream/workflow-render-ndjson.js.map +1 -0
- package/resources/stream/workflow-render-plaintext.d.ts +8 -0
- package/resources/stream/workflow-render-plaintext.d.ts.map +1 -0
- package/resources/stream/workflow-render-plaintext.js +34 -0
- package/resources/stream/workflow-render-plaintext.js.map +1 -0
- package/resources/tag.d.ts +4 -0
- package/resources/tag.d.ts.map +1 -0
- package/resources/tag.js +36 -0
- package/resources/tag.js.map +1 -0
- package/resources/usage.d.ts +14 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +251 -0
- package/resources/usage.js.map +1 -0
- package/resources/validate.d.ts +6 -0
- package/resources/validate.d.ts.map +1 -0
- package/resources/validate.js +28 -0
- package/resources/validate.js.map +1 -0
- package/resources/version.d.ts +6 -0
- package/resources/version.d.ts.map +1 -0
- package/resources/version.js +75 -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 +61 -0
- package/src/auth/pages.ts +31 -0
- package/src/auth/pkce.test.ts +37 -0
- package/src/auth/pkce.ts +26 -0
- package/src/auth/token.test.ts +95 -0
- package/src/auth/token.ts +135 -0
- package/src/backend.ts +15 -0
- package/src/cli/stigmer.ts +16 -0
- package/src/client/client.test.ts +46 -0
- package/src/client/client.ts +84 -0
- package/src/client/index.ts +3 -0
- package/src/commands/agent-exec-flags.ts +75 -0
- package/src/commands/apikey/duration.test.ts +23 -0
- package/src/commands/apikey/duration.ts +35 -0
- package/src/commands/apikey/index.ts +133 -0
- package/src/commands/apply.ts +213 -0
- package/src/commands/auth/index.ts +87 -0
- package/src/commands/completion.ts +96 -0
- package/src/commands/config/backend.ts +58 -0
- package/src/commands/config/context.ts +26 -0
- package/src/commands/config/index.ts +18 -0
- package/src/commands/config/kv.ts +44 -0
- package/src/commands/connect.ts +75 -0
- package/src/commands/delete.ts +56 -0
- package/src/commands/diff.ts +97 -0
- package/src/commands/down.ts +27 -0
- package/src/commands/download.ts +68 -0
- package/src/commands/draft.ts +128 -0
- package/src/commands/execution/approve.ts +76 -0
- package/src/commands/execution/control.ts +79 -0
- package/src/commands/execution/index.ts +24 -0
- package/src/commands/execution/logs.ts +47 -0
- package/src/commands/execution/trace.ts +32 -0
- package/src/commands/get.ts +99 -0
- package/src/commands/internal-daemon.ts +25 -0
- package/src/commands/list.ts +138 -0
- package/src/commands/logs.ts +73 -0
- package/src/commands/mcp-server.test.ts +65 -0
- package/src/commands/mcp-server.ts +124 -0
- package/src/commands/push.ts +205 -0
- package/src/commands/reset.ts +57 -0
- package/src/commands/resume.ts +121 -0
- package/src/commands/run.ts +276 -0
- package/src/commands/search.ts +90 -0
- package/src/commands/seedpack.ts +94 -0
- package/src/commands/setup.ts +71 -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 +51 -0
- package/src/commands/usage.ts +74 -0
- package/src/commands/validate.test.ts +79 -0
- package/src/commands/validate.ts +73 -0
- package/src/commands/version.ts +13 -0
- package/src/config/config.test.ts +76 -0
- package/src/config/config.ts +127 -0
- package/src/config/index.ts +22 -0
- package/src/config/keys.test.ts +38 -0
- package/src/config/keys.ts +64 -0
- package/src/config/paths.ts +25 -0
- package/src/config/resolve.test.ts +103 -0
- package/src/config/resolve.ts +80 -0
- package/src/errors/classify.ts +199 -0
- package/src/errors/cli-exit-error.ts +16 -0
- package/src/errors/clierr.test.ts +172 -0
- package/src/errors/exit-codes.ts +14 -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.test.ts +28 -0
- package/src/local/artifact.ts +166 -0
- package/src/local/constants.ts +52 -0
- package/src/local/daemon/components.test.ts +80 -0
- package/src/local/daemon/components.ts +113 -0
- package/src/local/daemon/daemon.integration.test.ts +183 -0
- package/src/local/daemon/env.test.ts +51 -0
- package/src/local/daemon/env.ts +118 -0
- package/src/local/daemon/host.ts +79 -0
- package/src/local/daemon/index.ts +18 -0
- package/src/local/daemon/launch.ts +260 -0
- package/src/local/daemon/process.ts +183 -0
- package/src/local/daemon/supervisor.test.ts +260 -0
- package/src/local/daemon/supervisor.ts +249 -0
- package/src/local/daemon/types.ts +76 -0
- package/src/local/llm-config.test.ts +80 -0
- package/src/local/llm-config.ts +107 -0
- package/src/local/logs/tail.test.ts +70 -0
- package/src/local/logs/tail.ts +100 -0
- package/src/local/logs/view.test.ts +46 -0
- package/src/local/logs/view.ts +65 -0
- package/src/local/net/tcp.ts +65 -0
- package/src/local/paths.ts +67 -0
- package/src/local/reset.test.ts +53 -0
- package/src/local/reset.ts +90 -0
- package/src/local/runtime/index.ts +18 -0
- package/src/local/runtime/node.ts +67 -0
- package/src/local/runtime/runner.ts +186 -0
- package/src/local/runtime/runtime.test.ts +155 -0
- package/src/local/runtime/server.test.ts +152 -0
- package/src/local/runtime/server.ts +172 -0
- package/src/local/runtime/which.ts +30 -0
- package/src/local/seedpack/apply.test.ts +166 -0
- package/src/local/seedpack/apply.ts +139 -0
- package/src/local/seedpack/content.test.ts +148 -0
- package/src/local/seedpack/content.ts +223 -0
- package/src/local/setup/prompt.ts +70 -0
- package/src/local/setup/wizard.test.ts +42 -0
- package/src/local/setup/wizard.ts +78 -0
- package/src/local/state/health-state.ts +55 -0
- package/src/local/state/index.ts +8 -0
- package/src/local/state/lock.ts +77 -0
- package/src/local/state/log-rotation.ts +112 -0
- package/src/local/state/pidfile.ts +37 -0
- package/src/local/state/proc.ts +66 -0
- package/src/local/state/startup-config.ts +51 -0
- package/src/local/state/state.test.ts +166 -0
- package/src/local/status.test.ts +88 -0
- package/src/local/status.ts +186 -0
- package/src/local/temporal/download.test.ts +64 -0
- package/src/local/temporal/download.ts +54 -0
- package/src/local/temporal/index.ts +6 -0
- package/src/local/temporal/inspect.ts +32 -0
- package/src/local/temporal/manager.test.ts +31 -0
- package/src/local/temporal/manager.ts +247 -0
- package/src/local/temporal/supervisor.test.ts +77 -0
- package/src/local/temporal/supervisor.ts +97 -0
- package/src/local/webconsole/index.ts +13 -0
- package/src/logger.ts +39 -0
- package/src/output/command-result.test.ts +64 -0
- package/src/output/command-result.ts +185 -0
- package/src/output/confirm.test.ts +43 -0
- package/src/output/confirm.ts +53 -0
- package/src/output/format.test.ts +65 -0
- package/src/output/format.ts +101 -0
- package/src/output/index.ts +30 -0
- package/src/output/ndjson.ts +55 -0
- package/src/output/proto.test.ts +72 -0
- package/src/output/proto.ts +55 -0
- package/src/output/style.ts +57 -0
- package/src/output/table.test.ts +37 -0
- package/src/output/table.ts +52 -0
- package/src/program.test.ts +64 -0
- package/src/program.ts +100 -0
- package/src/registry/aliases.test.ts +99 -0
- package/src/registry/aliases.ts +93 -0
- package/src/registry/index.ts +7 -0
- package/src/registry/metadata.ts +60 -0
- package/src/registry/registry.test.ts +80 -0
- package/src/registry/registry.ts +101 -0
- package/src/registry/verb-support.ts +50 -0
- package/src/registry/verbs.ts +43 -0
- package/src/resources/apply/apply.integration.test.ts +207 -0
- package/src/resources/apply/apply.ts +202 -0
- package/src/resources/apply/declarative.integration.test.ts +126 -0
- package/src/resources/apply/declarative.test.ts +132 -0
- package/src/resources/apply/declarative.ts +474 -0
- package/src/resources/apply/discovery.ts +60 -0
- package/src/resources/apply/handlers.ts +145 -0
- package/src/resources/apply/synth/capstone.integration.test.ts +134 -0
- package/src/resources/apply/synth/project-track.integration.test.ts +194 -0
- package/src/resources/apply/synth/project-track.ts +126 -0
- package/src/resources/apply/synth/reader.test.ts +90 -0
- package/src/resources/apply/synth/reader.ts +68 -0
- package/src/resources/apply/synth/runtime.test.ts +29 -0
- package/src/resources/apply/synth/runtime.ts +39 -0
- package/src/resources/apply/synth/synthesize.test.ts +109 -0
- package/src/resources/apply/synth/synthesize.ts +161 -0
- package/src/resources/connect/__fixtures__/stdio-crash.mjs +6 -0
- package/src/resources/connect/__fixtures__/stdio-server.mjs +43 -0
- package/src/resources/connect/connect.integration.test.ts +185 -0
- package/src/resources/connect/connect.ts +107 -0
- package/src/resources/connect/discover.test.ts +45 -0
- package/src/resources/connect/discover.ts +125 -0
- package/src/resources/connect/display.ts +68 -0
- package/src/resources/connect/oauth.test.ts +155 -0
- package/src/resources/connect/oauth.ts +191 -0
- package/src/resources/delete.ts +239 -0
- package/src/resources/diff.integration.test.ts +103 -0
- package/src/resources/diff.test.ts +34 -0
- package/src/resources/diff.ts +187 -0
- package/src/resources/documents.test.ts +67 -0
- package/src/resources/documents.ts +102 -0
- package/src/resources/download.ts +151 -0
- package/src/resources/execution-approve.test.ts +50 -0
- package/src/resources/execution-approve.ts +94 -0
- package/src/resources/execution-control.ts +78 -0
- package/src/resources/execution-format.test.ts +48 -0
- package/src/resources/execution-format.ts +54 -0
- package/src/resources/execution-logs.ts +176 -0
- package/src/resources/execution-trace.ts +159 -0
- package/src/resources/execution.integration.test.ts +285 -0
- package/src/resources/execution.test.ts +138 -0
- package/src/resources/execution.ts +229 -0
- package/src/resources/get-bindings.ts +61 -0
- package/src/resources/get.ts +41 -0
- package/src/resources/git.ts +71 -0
- package/src/resources/ignore/defaults.ts +155 -0
- package/src/resources/ignore/ignore.test.ts +139 -0
- package/src/resources/ignore/index.ts +17 -0
- package/src/resources/ignore/match.ts +158 -0
- package/src/resources/ignore/matcher.ts +158 -0
- package/src/resources/ignore/pattern.ts +131 -0
- package/src/resources/list.ts +97 -0
- package/src/resources/mcp/runtime-env.test.ts +68 -0
- package/src/resources/mcp/runtime-env.ts +79 -0
- package/src/resources/mutate-verbs.integration.test.ts +233 -0
- package/src/resources/picker/ink.tsx +114 -0
- package/src/resources/picker/tty.test.ts +37 -0
- package/src/resources/picker/tty.ts +30 -0
- package/src/resources/push-download.integration.test.ts +175 -0
- package/src/resources/read-completion.integration.test.ts +156 -0
- package/src/resources/read-verbs.integration.test.ts +164 -0
- package/src/resources/reference.test.ts +107 -0
- package/src/resources/reference.ts +140 -0
- package/src/resources/render.ts +118 -0
- package/src/resources/run/agent-exec.ts +107 -0
- package/src/resources/run/attachments.test.ts +113 -0
- package/src/resources/run/attachments.ts +261 -0
- package/src/resources/run/create.test.ts +119 -0
- package/src/resources/run/create.ts +165 -0
- package/src/resources/run/env.test.ts +131 -0
- package/src/resources/run/env.ts +167 -0
- package/src/resources/run/epilogue.ts +166 -0
- package/src/resources/run/header.test.ts +61 -0
- package/src/resources/run/header.ts +62 -0
- package/src/resources/run/prepare.test.ts +92 -0
- package/src/resources/run/prepare.ts +139 -0
- package/src/resources/run/resolve.ts +32 -0
- package/src/resources/run/resume.ts +119 -0
- package/src/resources/run/stream.ts +108 -0
- package/src/resources/run/workflow-stream.integration.test.ts +157 -0
- package/src/resources/run/workflow-stream.ts +203 -0
- package/src/resources/run/workspace.test.ts +93 -0
- package/src/resources/run/workspace.ts +171 -0
- package/src/resources/search.ts +53 -0
- package/src/resources/session.test.ts +48 -0
- package/src/resources/session.ts +66 -0
- package/src/resources/skill.test.ts +227 -0
- package/src/resources/skill.ts +451 -0
- package/src/resources/stream/approval-detect.ts +118 -0
- package/src/resources/stream/convert.ts +210 -0
- package/src/resources/stream/diff.test.ts +316 -0
- package/src/resources/stream/diff.ts +254 -0
- package/src/resources/stream/events.ts +193 -0
- package/src/resources/stream/headless.test.ts +119 -0
- package/src/resources/stream/headless.ts +112 -0
- package/src/resources/stream/ink.tsx +56 -0
- package/src/resources/stream/lazy-import.test.ts +63 -0
- package/src/resources/stream/render-ndjson.test.ts +116 -0
- package/src/resources/stream/render-ndjson.ts +176 -0
- package/src/resources/stream/render-plaintext.test.ts +68 -0
- package/src/resources/stream/render-plaintext.ts +86 -0
- package/src/resources/stream/snapshot.test.ts +97 -0
- package/src/resources/stream/snapshot.ts +191 -0
- package/src/resources/stream/subagent.ts +104 -0
- package/src/resources/stream/submit.test.ts +77 -0
- package/src/resources/stream/submit.ts +137 -0
- package/src/resources/stream/todo.ts +53 -0
- package/src/resources/stream/tool-state.ts +142 -0
- package/src/resources/stream/tty.ts +14 -0
- package/src/resources/stream/workflow-event-view.test.ts +116 -0
- package/src/resources/stream/workflow-event-view.ts +111 -0
- package/src/resources/stream/workflow-render-ndjson.ts +61 -0
- package/src/resources/stream/workflow-render-plaintext.ts +43 -0
- package/src/resources/stream/workflow-render.test.ts +81 -0
- package/src/resources/tag.ts +50 -0
- package/src/resources/usage.test.ts +94 -0
- package/src/resources/usage.ts +301 -0
- package/src/resources/validate.test.ts +54 -0
- package/src/resources/validate.ts +31 -0
- package/src/resources/version.ts +105 -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
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stigmer/cli",
|
|
3
|
+
"version": "3.0.8",
|
|
4
|
+
"description": "Stigmer command-line interface — manage agents, workflows, MCP servers, skills, and executions from the terminal",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/stigmer/stigmer.git",
|
|
10
|
+
"directory": "client-apps/cli"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=20"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stigmer",
|
|
17
|
+
"cli",
|
|
18
|
+
"ai-agents",
|
|
19
|
+
"workflows",
|
|
20
|
+
"grpc"
|
|
21
|
+
],
|
|
22
|
+
"main": "./index.js",
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"stigmer": "./cli/stigmer.js"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./index.d.ts",
|
|
30
|
+
"import": "./index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@bufbuild/protobuf": "^2.0.0",
|
|
35
|
+
"@connectrpc/connect": "^2.0.0",
|
|
36
|
+
"@connectrpc/connect-node": "^2.1.1",
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
38
|
+
"@stigmer/ink": "3.0.8",
|
|
39
|
+
"@stigmer/mcp-server": "3.0.8",
|
|
40
|
+
"@stigmer/protos": "3.0.8",
|
|
41
|
+
"@stigmer/sdk": "3.0.8",
|
|
42
|
+
"commander": "^12.1.0",
|
|
43
|
+
"fflate": "^0.8.3",
|
|
44
|
+
"ink": "^7.0.0",
|
|
45
|
+
"open": "^10.1.0",
|
|
46
|
+
"react": "^19.0.0",
|
|
47
|
+
"yaml": "^2.8.2"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/program.d.ts
ADDED
package/program.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkCpC,wBAAgB,YAAY,IAAI,OAAO,CAyDtC"}
|
package/program.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Builds the root commander program: global flags, the preAction hook that
|
|
2
|
+
// captures them into process-global runtime state, and command registration.
|
|
3
|
+
//
|
|
4
|
+
// Command modules are registered through small `register*` functions so the
|
|
5
|
+
// entry path stays light; heavier commands lazy-load their implementation via
|
|
6
|
+
// dynamic import inside the action (DD-001), so `stigmer --help`/`version`/
|
|
7
|
+
// `completion` never pay for importing the backend client or auth stack.
|
|
8
|
+
import { Command } from "commander";
|
|
9
|
+
import { registerApiKey } from "./commands/apikey/index.js";
|
|
10
|
+
import { registerApply } from "./commands/apply.js";
|
|
11
|
+
import { registerAuth } from "./commands/auth/index.js";
|
|
12
|
+
import { registerCompletion } from "./commands/completion.js";
|
|
13
|
+
import { registerConfig } from "./commands/config/index.js";
|
|
14
|
+
import { registerConnect } from "./commands/connect.js";
|
|
15
|
+
import { registerDelete } from "./commands/delete.js";
|
|
16
|
+
import { registerDiff } from "./commands/diff.js";
|
|
17
|
+
import { registerDown } from "./commands/down.js";
|
|
18
|
+
import { registerDownload } from "./commands/download.js";
|
|
19
|
+
import { registerDraft } from "./commands/draft.js";
|
|
20
|
+
import { registerExecution } from "./commands/execution/index.js";
|
|
21
|
+
import { registerGet } from "./commands/get.js";
|
|
22
|
+
import { registerInternalDaemon } from "./commands/internal-daemon.js";
|
|
23
|
+
import { registerList } from "./commands/list.js";
|
|
24
|
+
import { registerLogs } from "./commands/logs.js";
|
|
25
|
+
import { registerMcpServer } from "./commands/mcp-server.js";
|
|
26
|
+
import { registerPush } from "./commands/push.js";
|
|
27
|
+
import { registerReset } from "./commands/reset.js";
|
|
28
|
+
import { registerResume } from "./commands/resume.js";
|
|
29
|
+
import { registerRun } from "./commands/run.js";
|
|
30
|
+
import { registerSearch } from "./commands/search.js";
|
|
31
|
+
import { registerSeedpack } from "./commands/seedpack.js";
|
|
32
|
+
import { registerSetup } from "./commands/setup.js";
|
|
33
|
+
import { registerStatus } from "./commands/status.js";
|
|
34
|
+
import { registerTag } from "./commands/tag.js";
|
|
35
|
+
import { registerUp } from "./commands/up.js";
|
|
36
|
+
import { registerUsage } from "./commands/usage.js";
|
|
37
|
+
import { registerValidate } from "./commands/validate.js";
|
|
38
|
+
import { registerVersion } from "./commands/version.js";
|
|
39
|
+
import { setDebug, setStandalone } from "./runtime.js";
|
|
40
|
+
import { VERSION } from "./version.js";
|
|
41
|
+
export function buildProgram() {
|
|
42
|
+
const program = new Command();
|
|
43
|
+
program
|
|
44
|
+
.name("stigmer")
|
|
45
|
+
.description("Stigmer command-line interface")
|
|
46
|
+
.version(VERSION, "--version", "print the CLI version")
|
|
47
|
+
.option("-d, --debug", "enable debug output")
|
|
48
|
+
.option("--standalone", "ignore the config file; use flags and environment only")
|
|
49
|
+
.option("--org <slug>", "organization slug override")
|
|
50
|
+
.option("--api-key <key>", "API key for authentication")
|
|
51
|
+
.enablePositionalOptions();
|
|
52
|
+
// Capture global flags into process-global state before any command runs.
|
|
53
|
+
// Bridging --api-key to the env mirrors the Go CLI's PersistentPreRun so the
|
|
54
|
+
// SDK auth interceptor and config layer pick it up uniformly.
|
|
55
|
+
program.hook("preAction", () => {
|
|
56
|
+
const globals = program.opts();
|
|
57
|
+
setDebug(Boolean(globals.debug));
|
|
58
|
+
setStandalone(Boolean(globals.standalone));
|
|
59
|
+
if (typeof globals.apiKey === "string" && globals.apiKey !== "") {
|
|
60
|
+
process.env.STIGMER_API_KEY = globals.apiKey;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
registerVersion(program);
|
|
64
|
+
registerCompletion(program);
|
|
65
|
+
registerConfig(program);
|
|
66
|
+
registerAuth(program);
|
|
67
|
+
registerApiKey(program);
|
|
68
|
+
registerGet(program);
|
|
69
|
+
registerList(program);
|
|
70
|
+
registerSearch(program);
|
|
71
|
+
registerValidate(program);
|
|
72
|
+
registerDelete(program);
|
|
73
|
+
registerTag(program);
|
|
74
|
+
registerDiff(program);
|
|
75
|
+
registerUsage(program);
|
|
76
|
+
registerPush(program);
|
|
77
|
+
registerDownload(program);
|
|
78
|
+
registerApply(program);
|
|
79
|
+
registerRun(program);
|
|
80
|
+
registerResume(program);
|
|
81
|
+
registerDraft(program);
|
|
82
|
+
registerExecution(program);
|
|
83
|
+
registerConnect(program);
|
|
84
|
+
registerMcpServer(program);
|
|
85
|
+
registerUp(program);
|
|
86
|
+
registerDown(program);
|
|
87
|
+
registerStatus(program);
|
|
88
|
+
registerLogs(program);
|
|
89
|
+
registerSeedpack(program);
|
|
90
|
+
registerSetup(program);
|
|
91
|
+
registerReset(program);
|
|
92
|
+
registerInternalDaemon(program);
|
|
93
|
+
return program;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=program.js.map
|
package/program.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,6EAA6E;AAC7E,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,4EAA4E;AAC5E,yEAAyE;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,O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AAC,CAAC;IAC5B,cAAc,CAAC,OAAO,CAAC,CAAC;IACxB,YAAY,CAAC,OAAO,CAAC,CAAC;IACtB,cAAc,CAAC,OAAO,CAAC,CAAC;IACxB,WAAW,CAAC,OAAO,CAAC,CAAC;IACrB,YAAY,CAAC,OAAO,CAAC,CAAC;IACtB,cAAc,CAAC,OAAO,CAAC,CAAC;IACxB,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1B,cAAc,CAAC,OAAO,CAAC,CAAC;IACxB,WAAW,CAAC,OAAO,CAAC,CAAC;IACrB,YAAY,CAAC,OAAO,CAAC,CAAC;IACtB,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,YAAY,CAAC,OAAO,CAAC,CAAC;IACtB,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1B,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,WAAW,CAAC,OAAO,CAAC,CAAC;IACrB,cAAc,CAAC,OAAO,CAAC,CAAC;IACxB,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC3B,eAAe,CAAC,OAAO,CAAC,CAAC;IACzB,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC3B,UAAU,CAAC,OAAO,CAAC,CAAC;IACpB,YAAY,CAAC,OAAO,CAAC,CAAC;IACtB,cAAc,CAAC,OAAO,CAAC,CAAC;IACxB,YAAY,CAAC,OAAO,CAAC,CAAC;IACtB,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1B,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate every accepted input form for a resource kind.
|
|
3
|
+
*
|
|
4
|
+
* From name "McpServer": "mcpserver", "mcp-server", "mcp_server", "McpServer"
|
|
5
|
+
* From displayName "MCP Server": "mcp" / "MCP"
|
|
6
|
+
* From idPrefix "mcp": "mcp"
|
|
7
|
+
* Plus the plural of every form above.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateAliases(name: string, displayName: string, idPrefix: string): string[];
|
|
10
|
+
/** Convert PascalCase to kebab-case: "McpServer" -> "mcp-server". */
|
|
11
|
+
export declare function toKebabCase(s: string): string;
|
|
12
|
+
/** Convert PascalCase to snake_case: "McpServer" -> "mcp_server". */
|
|
13
|
+
export declare function toSnakeCase(s: string): string;
|
|
14
|
+
/** Naive English pluralization; the singular is always accepted too. */
|
|
15
|
+
export declare function pluralize(s: string): string;
|
|
16
|
+
/** Normalize user input for case-insensitive alias lookup. */
|
|
17
|
+
export declare function normalizeAlias(input: string): string;
|
|
18
|
+
//# sourceMappingURL=aliases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../src/registry/aliases.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CA6C7F;AAED,qEAAqE;AACrE,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,qEAAqE;AACrE,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7C;AAcD,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAG3C;AAED,8DAA8D;AAC9D,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Algorithmic alias generation — a faithful port of the Go types.GenerateAliases
|
|
2
|
+
// family. Aliases are *derived* from proto kind metadata (name/display_name/
|
|
3
|
+
// id_prefix), never hardcoded, so a new resource kind picks up its full set of
|
|
4
|
+
// accepted spellings automatically. Keeping the algorithm byte-for-byte
|
|
5
|
+
// identical to Go guarantees both CLIs accept exactly the same inputs.
|
|
6
|
+
/**
|
|
7
|
+
* Generate every accepted input form for a resource kind.
|
|
8
|
+
*
|
|
9
|
+
* From name "McpServer": "mcpserver", "mcp-server", "mcp_server", "McpServer"
|
|
10
|
+
* From displayName "MCP Server": "mcp" / "MCP"
|
|
11
|
+
* From idPrefix "mcp": "mcp"
|
|
12
|
+
* Plus the plural of every form above.
|
|
13
|
+
*/
|
|
14
|
+
export function generateAliases(name, displayName, idPrefix) {
|
|
15
|
+
const seen = new Set();
|
|
16
|
+
const aliases = [];
|
|
17
|
+
const add = (alias) => {
|
|
18
|
+
if (alias === "")
|
|
19
|
+
return;
|
|
20
|
+
const lower = alias.toLowerCase();
|
|
21
|
+
if (!seen.has(lower)) {
|
|
22
|
+
seen.add(lower);
|
|
23
|
+
aliases.push(alias);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
// From name: "McpServer"
|
|
27
|
+
add(name.toLowerCase()); // "mcpserver"
|
|
28
|
+
add(toKebabCase(name)); // "mcp-server"
|
|
29
|
+
add(toSnakeCase(name)); // "mcp_server"
|
|
30
|
+
add(name); // "McpServer"
|
|
31
|
+
// From display_name: single-word names contribute lower/upper forms; for
|
|
32
|
+
// multi-word names only the first word is added, and only when it does not
|
|
33
|
+
// simply re-derive the name (this stops "Agent Instance" from stealing
|
|
34
|
+
// "agent" from "Agent", while still letting "MCP Server" register "mcp").
|
|
35
|
+
const words = displayName.split(/\s+/).filter((w) => w.length > 0);
|
|
36
|
+
if (words.length === 1) {
|
|
37
|
+
add(words[0].toLowerCase());
|
|
38
|
+
add(words[0].toUpperCase());
|
|
39
|
+
}
|
|
40
|
+
else if (words.length > 1) {
|
|
41
|
+
const firstWord = words[0].toLowerCase();
|
|
42
|
+
const lowerName = name.toLowerCase();
|
|
43
|
+
if (!lowerName.startsWith(firstWord) || firstWord === lowerName) {
|
|
44
|
+
add(firstWord);
|
|
45
|
+
add(words[0].toUpperCase());
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// From id_prefix: "mcp"
|
|
49
|
+
add(idPrefix);
|
|
50
|
+
// Plurals of every form gathered so far.
|
|
51
|
+
for (const alias of [...aliases]) {
|
|
52
|
+
add(pluralize(alias));
|
|
53
|
+
}
|
|
54
|
+
return aliases;
|
|
55
|
+
}
|
|
56
|
+
/** Convert PascalCase to kebab-case: "McpServer" -> "mcp-server". */
|
|
57
|
+
export function toKebabCase(s) {
|
|
58
|
+
return splitCase(s, "-");
|
|
59
|
+
}
|
|
60
|
+
/** Convert PascalCase to snake_case: "McpServer" -> "mcp_server". */
|
|
61
|
+
export function toSnakeCase(s) {
|
|
62
|
+
return splitCase(s, "_");
|
|
63
|
+
}
|
|
64
|
+
function splitCase(s, sep) {
|
|
65
|
+
let result = "";
|
|
66
|
+
for (let i = 0; i < s.length; i++) {
|
|
67
|
+
const ch = s[i];
|
|
68
|
+
if (i > 0 && ch >= "A" && ch <= "Z") {
|
|
69
|
+
result += sep;
|
|
70
|
+
}
|
|
71
|
+
result += ch.toLowerCase();
|
|
72
|
+
}
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
/** Naive English pluralization; the singular is always accepted too. */
|
|
76
|
+
export function pluralize(s) {
|
|
77
|
+
if (s === "" || s.endsWith("s"))
|
|
78
|
+
return s;
|
|
79
|
+
return `${s}s`;
|
|
80
|
+
}
|
|
81
|
+
/** Normalize user input for case-insensitive alias lookup. */
|
|
82
|
+
export function normalizeAlias(input) {
|
|
83
|
+
return input.trim().toLowerCase();
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=aliases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.js","sourceRoot":"","sources":["../../src/registry/aliases.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,6EAA6E;AAC7E,+EAA+E;AAC/E,wEAAwE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CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,SAAS,CAAC,CAAS;IACjC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,CAAC;IAC1C,OAAO,GAAG,CAAC,GAAG,CAAC;AACjB,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,cAAc,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { generateAliases, normalizeAlias, pluralize, toKebabCase, toSnakeCase } from "./aliases.js";
|
|
2
|
+
export { CLI_RELEVANT_KINDS, type KindMeta, KIND_META } from "./metadata.js";
|
|
3
|
+
export { defaultRegistry, type Registry, supportsVerb, type TypeInfo } from "./registry.js";
|
|
4
|
+
export { ALL_VERBS, isFileBasedVerb, isReferenceBasedVerb, Verb } from "./verbs.js";
|
|
5
|
+
export { VERB_SUPPORT, verbsForKind } from "./verb-support.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,KAAK,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,KAAK,QAAQ,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Public surface of the type-registry module.
|
|
2
|
+
export { generateAliases, normalizeAlias, pluralize, toKebabCase, toSnakeCase } from "./aliases.js";
|
|
3
|
+
export { CLI_RELEVANT_KINDS, KIND_META } from "./metadata.js";
|
|
4
|
+
export { defaultRegistry, supportsVerb } from "./registry.js";
|
|
5
|
+
export { ALL_VERBS, isFileBasedVerb, isReferenceBasedVerb, Verb } from "./verbs.js";
|
|
6
|
+
export { VERB_SUPPORT, verbsForKind } from "./verb-support.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAiB,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAiB,YAAY,EAAiB,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
2
|
+
export interface KindMeta {
|
|
3
|
+
/** Proto kind_meta.name — also the YAML `kind` value (e.g. "McpServer"). */
|
|
4
|
+
readonly name: string;
|
|
5
|
+
/** Proto kind_meta.display_name (e.g. "MCP Server"). */
|
|
6
|
+
readonly displayName: string;
|
|
7
|
+
/** Proto kind_meta.id_prefix (e.g. "mcp"). */
|
|
8
|
+
readonly idPrefix: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const KIND_META: ReadonlyMap<ApiResourceKind, KindMeta>;
|
|
11
|
+
export declare const CLI_RELEVANT_KINDS: readonly ApiResourceKind[];
|
|
12
|
+
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/registry/metadata.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,MAAM,WAAW,QAAQ;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,eAAe,EAAE,QAAQ,CAe3D,CAAC;AAOH,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EAcxD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Declarative mirror of api_resource_kind.proto `kind_meta` for CLI-relevant
|
|
2
|
+
// kinds.
|
|
3
|
+
//
|
|
4
|
+
// Why a hand-maintained table instead of reading the proto extension at
|
|
5
|
+
// runtime: protobuf-es does not surface custom enum-value options (the
|
|
6
|
+
// `kind_meta` extension) through its runtime reflection the way Go's protobuf
|
|
7
|
+
// reflection does. The SDK already established this pattern — see
|
|
8
|
+
// `sdk/typescript/src/gen/resource-availability.ts`, a generated table derived
|
|
9
|
+
// from the same `kind_meta`. T06's codegen pass can emit THIS file the same
|
|
10
|
+
// way; until then the table is small, stable, and guarded by tests that pin the
|
|
11
|
+
// derived aliases. Values below are copied verbatim from the proto.
|
|
12
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
13
|
+
export const KIND_META = new Map([
|
|
14
|
+
[ApiResourceKind.organization, { name: "Organization", displayName: "Organization", idPrefix: "org" }],
|
|
15
|
+
[ApiResourceKind.agent, { name: "Agent", displayName: "Agent", idPrefix: "agt" }],
|
|
16
|
+
[ApiResourceKind.workflow, { name: "Workflow", displayName: "Workflow", idPrefix: "wfl" }],
|
|
17
|
+
[ApiResourceKind.skill, { name: "Skill", displayName: "Skill", idPrefix: "skl" }],
|
|
18
|
+
[ApiResourceKind.mcp_server, { name: "McpServer", displayName: "MCP Server", idPrefix: "mcp" }],
|
|
19
|
+
[ApiResourceKind.project, { name: "Project", displayName: "Project", idPrefix: "prj" }],
|
|
20
|
+
[ApiResourceKind.api_key, { name: "ApiKey", displayName: "API Key", idPrefix: "key" }],
|
|
21
|
+
[ApiResourceKind.identity_provider, { name: "IdentityProvider", displayName: "Identity Provider", idPrefix: "idp" }],
|
|
22
|
+
[ApiResourceKind.oauth_app, { name: "OAuthApp", displayName: "OAuth App", idPrefix: "oapp" }],
|
|
23
|
+
[ApiResourceKind.environment, { name: "Environment", displayName: "Environment", idPrefix: "env" }],
|
|
24
|
+
[ApiResourceKind.agent_instance, { name: "AgentInstance", displayName: "Agent Instance", idPrefix: "ain" }],
|
|
25
|
+
[ApiResourceKind.workflow_instance, { name: "WorkflowInstance", displayName: "Workflow Instance", idPrefix: "win" }],
|
|
26
|
+
[ApiResourceKind.session, { name: "Session", displayName: "Session", idPrefix: "ses" }],
|
|
27
|
+
[ApiResourceKind.agent_execution, { name: "AgentExecution", displayName: "Agent Execution", idPrefix: "aex" }],
|
|
28
|
+
]);
|
|
29
|
+
// Kinds that are user-facing in the CLI and therefore registered as addressable
|
|
30
|
+
// types. Mirrors Go's `cliRelevantKinds`. Note: agent_execution is intentionally
|
|
31
|
+
// excluded — it is driven through its dedicated AgentExecutionQueryController
|
|
32
|
+
// RPCs as a command special-case, not the generic verb dispatch, even though it
|
|
33
|
+
// carries kind metadata above and a verb-support entry below.
|
|
34
|
+
export const CLI_RELEVANT_KINDS = [
|
|
35
|
+
ApiResourceKind.organization,
|
|
36
|
+
ApiResourceKind.agent,
|
|
37
|
+
ApiResourceKind.workflow,
|
|
38
|
+
ApiResourceKind.skill,
|
|
39
|
+
ApiResourceKind.mcp_server,
|
|
40
|
+
ApiResourceKind.project,
|
|
41
|
+
ApiResourceKind.api_key,
|
|
42
|
+
ApiResourceKind.identity_provider,
|
|
43
|
+
ApiResourceKind.oauth_app,
|
|
44
|
+
ApiResourceKind.environment,
|
|
45
|
+
ApiResourceKind.agent_instance,
|
|
46
|
+
ApiResourceKind.workflow_instance,
|
|
47
|
+
ApiResourceKind.session,
|
|
48
|
+
];
|
|
49
|
+
//# sourceMappingURL=metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/registry/metadata.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,SAAS;AACT,EAAE;AACF,wEAAwE;AACxE,uEAAuE;AACvE,8EAA8E;AAC9E,kEAAkE;AAClE,+EAA+E;AAC/E,4EAA4E;AAC5E,gFAAgF;AAChF,oEAAoE;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAWtH,MAAM,CAAC,MAAM,SAAS,GAA2C,IAAI,GAAG,CAAC;IACvE,CAAC,eAAe,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtG,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACjF,CAAC,eAAe,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1F,CAAC,eAAe,CAAC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CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;CAC/G,CAAC,CAAC;AAEH,gFAAgF;AAChF,iFAAiF;AACjF,8EAA8E;AAC9E,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,eAAe,CAAC,YAAY;IAC5B,eAAe,CAAC,KAAK;IACrB,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,KAAK;IACrB,eAAe,CAAC,UAAU;IAC1B,eAAe,CAAC,OAAO;IACvB,eAAe,CAAC,OAAO;IACvB,eAAe,CAAC,iBAAiB;IACjC,eAAe,CAAC,SAAS;IACzB,eAAe,CAAC,WAAW;IAC3B,eAAe,CAAC,cAAc;IAC9B,eAAe,CAAC,iBAAiB;IACjC,eAAe,CAAC,OAAO;CACxB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
2
|
+
import { Verb } from "./verbs.js";
|
|
3
|
+
/** CLI metadata for a single resource type. */
|
|
4
|
+
export interface TypeInfo {
|
|
5
|
+
/** Proto enum value this type maps to. */
|
|
6
|
+
readonly kind: ApiResourceKind;
|
|
7
|
+
/** Kind name (also the YAML `kind` value), e.g. "McpServer". */
|
|
8
|
+
readonly name: string;
|
|
9
|
+
/** Human-readable name, e.g. "MCP Server". */
|
|
10
|
+
readonly displayName: string;
|
|
11
|
+
/** ID prefix, e.g. "mcp". */
|
|
12
|
+
readonly idPrefix: string;
|
|
13
|
+
/** Canonical singular form (lowercase name), e.g. "mcpserver". */
|
|
14
|
+
readonly singular: string;
|
|
15
|
+
/** Plural form for list commands, e.g. "mcpservers". */
|
|
16
|
+
readonly plural: string;
|
|
17
|
+
/** All accepted input spellings (case-insensitive on lookup). */
|
|
18
|
+
readonly aliases: readonly string[];
|
|
19
|
+
/** Verbs this type supports. */
|
|
20
|
+
readonly supportedVerbs: ReadonlySet<Verb>;
|
|
21
|
+
}
|
|
22
|
+
export declare function supportsVerb(info: TypeInfo, verb: Verb): boolean;
|
|
23
|
+
export interface Registry {
|
|
24
|
+
/** Look up a type by its proto kind. */
|
|
25
|
+
getByKind(kind: ApiResourceKind): TypeInfo | undefined;
|
|
26
|
+
/** Look up a type by any alias (case-insensitive). */
|
|
27
|
+
getByAlias(input: string): TypeInfo | undefined;
|
|
28
|
+
/** Look up a type by its exact YAML kind string. */
|
|
29
|
+
getByYamlKind(yamlKind: string): TypeInfo | undefined;
|
|
30
|
+
/** All registered CLI-relevant types, in declaration order. */
|
|
31
|
+
all(): readonly TypeInfo[];
|
|
32
|
+
/** Whether a kind supports a verb. */
|
|
33
|
+
supportsVerb(kind: ApiResourceKind, verb: Verb): boolean;
|
|
34
|
+
/** All types supporting a given verb, in declaration order. */
|
|
35
|
+
typesForVerb(verb: Verb): readonly TypeInfo[];
|
|
36
|
+
}
|
|
37
|
+
/** The process-wide registry singleton, built lazily on first use. */
|
|
38
|
+
export declare function defaultRegistry(): Registry;
|
|
39
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/registry/registry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAGtH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,+CAA+C;AAC/C,MAAM,WAAW,QAAQ;IACvB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,gCAAgC;IAChC,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAEhE;AAED,MAAM,WAAW,QAAQ;IACvB,wCAAwC;IACxC,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,QAAQ,GAAG,SAAS,CAAC;IACvD,sDAAsD;IACtD,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChD,oDAAoD;IACpD,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtD,+DAA+D;IAC/D,GAAG,IAAI,SAAS,QAAQ,EAAE,CAAC;IAC3B,sCAAsC;IACtC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IACzD,+DAA+D;IAC/D,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,QAAQ,EAAE,CAAC;CAC/C;AAgDD,sEAAsE;AACtE,wBAAgB,eAAe,IAAI,QAAQ,CAG1C"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// The type registry: the single source of truth that maps user-facing resource
|
|
2
|
+
// identifiers (aliases, YAML kinds) to proto kinds and their supported verbs.
|
|
3
|
+
// Built once from the declarative kind-metadata table with aliases derived
|
|
4
|
+
// algorithmically — a structural mirror of Go's types.Registry.
|
|
5
|
+
import { generateAliases, normalizeAlias } from "./aliases.js";
|
|
6
|
+
import { CLI_RELEVANT_KINDS, KIND_META } from "./metadata.js";
|
|
7
|
+
import { verbsForKind } from "./verb-support.js";
|
|
8
|
+
export function supportsVerb(info, verb) {
|
|
9
|
+
return info.supportedVerbs.has(verb);
|
|
10
|
+
}
|
|
11
|
+
function buildTypeInfo(kind) {
|
|
12
|
+
const meta = KIND_META.get(kind);
|
|
13
|
+
if (meta === undefined)
|
|
14
|
+
return undefined;
|
|
15
|
+
const singular = meta.name.toLowerCase();
|
|
16
|
+
return {
|
|
17
|
+
kind,
|
|
18
|
+
name: meta.name,
|
|
19
|
+
displayName: meta.displayName,
|
|
20
|
+
idPrefix: meta.idPrefix,
|
|
21
|
+
singular,
|
|
22
|
+
plural: singular.endsWith("s") ? singular : `${singular}s`,
|
|
23
|
+
aliases: generateAliases(meta.name, meta.displayName, meta.idPrefix),
|
|
24
|
+
supportedVerbs: verbsForKind(kind),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function buildRegistry() {
|
|
28
|
+
const byKind = new Map();
|
|
29
|
+
const byAlias = new Map();
|
|
30
|
+
const byYamlKind = new Map();
|
|
31
|
+
const all = [];
|
|
32
|
+
for (const kind of CLI_RELEVANT_KINDS) {
|
|
33
|
+
const info = buildTypeInfo(kind);
|
|
34
|
+
if (info === undefined)
|
|
35
|
+
continue;
|
|
36
|
+
byKind.set(kind, info);
|
|
37
|
+
byYamlKind.set(info.name, info);
|
|
38
|
+
all.push(info);
|
|
39
|
+
for (const alias of info.aliases) {
|
|
40
|
+
byAlias.set(normalizeAlias(alias), info);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
getByKind: (kind) => byKind.get(kind),
|
|
45
|
+
getByAlias: (input) => byAlias.get(normalizeAlias(input)),
|
|
46
|
+
getByYamlKind: (yamlKind) => byYamlKind.get(yamlKind),
|
|
47
|
+
all: () => all,
|
|
48
|
+
supportsVerb: (kind, verb) => byKind.get(kind)?.supportedVerbs.has(verb) ?? false,
|
|
49
|
+
typesForVerb: (verb) => all.filter((info) => info.supportedVerbs.has(verb)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
let cached;
|
|
53
|
+
/** The process-wide registry singleton, built lazily on first use. */
|
|
54
|
+
export function defaultRegistry() {
|
|
55
|
+
if (cached === undefined)
|
|
56
|
+
cached = buildRegistry();
|
|
57
|
+
return cached;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/registry/registry.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,gEAAgE;AAGhE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAsBjD,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,IAAU;IACrD,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAiBD,SAAS,aAAa,CAAC,IAAqB;IAC1C,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAEzC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IACzC,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ;QACR,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG;QAC1D,OAAO,EAAE,eAAe,CAAC,IAAI,CAAC,IAAI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AC,EAAE,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK;QACjF,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KAC5E,CAAC;AACJ,CAAC;AAED,IAAI,MAA4B,CAAC;AAEjC,sEAAsE;AACtE,MAAM,UAAU,eAAe;IAC7B,IAAI,MAAM,KAAK,SAAS;QAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IACnD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
2
|
+
import { Verb } from "./verbs.js";
|
|
3
|
+
export declare const VERB_SUPPORT: ReadonlyMap<ApiResourceKind, ReadonlySet<Verb>>;
|
|
4
|
+
export declare function verbsForKind(kind: ApiResourceKind): ReadonlySet<Verb>;
|
|
5
|
+
//# sourceMappingURL=verb-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verb-support.d.ts","sourceRoot":"","sources":["../../src/registry/verb-support.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,CAwBvE,CAAC;AAEH,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC,CAErE"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Verb-support matrix — which verbs each resource kind supports.
|
|
2
|
+
//
|
|
3
|
+
// This is CLI-specific policy (not stored in proto), ported verbatim from Go's
|
|
4
|
+
// types.verbSupport so both CLIs expose the same surface. Keep in lockstep.
|
|
5
|
+
//
|
|
6
|
+
// | Kind | apply | validate | get | list | delete | run | push | search | download |
|
|
7
|
+
// |--------------|-------|----------|-----|------|--------|-----|------|--------|----------|
|
|
8
|
+
// | Organization | Y | - | Y | Y | Y | - | - | - | - |
|
|
9
|
+
// | Agent | Y | Y | Y | Y | Y | Y | - | Y | - |
|
|
10
|
+
// | Workflow | Y | Y | Y | Y | Y | Y | - | Y | - |
|
|
11
|
+
// | Skill | - | - | Y | Y | Y | - | Y | - | - |
|
|
12
|
+
// | McpServer | Y | Y | Y | Y | Y | - | - | - | - |
|
|
13
|
+
// | Project | Y* | Y | Y | Y | Y | - | - | - | - |
|
|
14
|
+
// | Execution | - | - | Y | Y | Y** | - | - | - | Y |
|
|
15
|
+
//
|
|
16
|
+
// * Project "apply" triggers SDK synthesis mode.
|
|
17
|
+
// ** Execution "delete" maps to a cancel operation.
|
|
18
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
19
|
+
import { Verb } from "./verbs.js";
|
|
20
|
+
export const VERB_SUPPORT = new Map([
|
|
21
|
+
[ApiResourceKind.organization, new Set([Verb.Apply, Verb.Get, Verb.List, Verb.Delete])],
|
|
22
|
+
[
|
|
23
|
+
ApiResourceKind.agent,
|
|
24
|
+
new Set([Verb.Apply, Verb.Validate, Verb.Get, Verb.List, Verb.Delete, Verb.Run, Verb.Search]),
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
ApiResourceKind.workflow,
|
|
28
|
+
new Set([Verb.Apply, Verb.Validate, Verb.Get, Verb.List, Verb.Delete, Verb.Run, Verb.Search]),
|
|
29
|
+
],
|
|
30
|
+
[ApiResourceKind.skill, new Set([Verb.Get, Verb.List, Verb.Delete, Verb.Push])],
|
|
31
|
+
[ApiResourceKind.mcp_server, new Set([Verb.Apply, Verb.Validate, Verb.Get, Verb.List, Verb.Delete])],
|
|
32
|
+
[ApiResourceKind.project, new Set([Verb.Apply, Verb.Validate, Verb.Get, Verb.List, Verb.Delete])],
|
|
33
|
+
[ApiResourceKind.api_key, new Set([Verb.Get, Verb.List, Verb.Delete])],
|
|
34
|
+
// agent_execution is special — uses dedicated AgentExecutionQueryController
|
|
35
|
+
// RPCs, not the unified SearchService. delete maps to cancel.
|
|
36
|
+
[ApiResourceKind.agent_execution, new Set([Verb.Get, Verb.List, Verb.Delete, Verb.Download])],
|
|
37
|
+
[ApiResourceKind.identity_provider, new Set([Verb.Apply, Verb.Get, Verb.List, Verb.Delete])],
|
|
38
|
+
[ApiResourceKind.oauth_app, new Set([Verb.Apply, Verb.Get, Verb.List, Verb.Delete])],
|
|
39
|
+
[ApiResourceKind.environment, new Set([Verb.Apply, Verb.Get, Verb.List, Verb.Delete])],
|
|
40
|
+
[ApiResourceKind.agent_instance, new Set([Verb.Apply, Verb.Get, Verb.List, Verb.Delete])],
|
|
41
|
+
// No list: proto exposes getByWorkflow (requires workflow_id), not a generic list.
|
|
42
|
+
[ApiResourceKind.workflow_instance, new Set([Verb.Apply, Verb.Get, Verb.Delete])],
|
|
43
|
+
[ApiResourceKind.session, new Set([Verb.Apply, Verb.Get, Verb.List, Verb.Delete])],
|
|
44
|
+
]);
|
|
45
|
+
export function verbsForKind(kind) {
|
|
46
|
+
return VERB_SUPPORT.get(kind) ?? new Set();
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=verb-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verb-support.js","sourceRoot":"","sources":["../../src/registry/verb-support.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,EAAE;AACF,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,+FAA+F;AAC/F,EA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B,EAAE,IAAI,GAAG,CAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACvF,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,GAAG,CAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;CACzF,CAAC,CAAC;AAEH,MAAM,UAAU,YAAY,CAAC,IAAqB;IAChD,OAAO,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,EAAQ,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const Verb: {
|
|
2
|
+
readonly Apply: "apply";
|
|
3
|
+
readonly Validate: "validate";
|
|
4
|
+
readonly Get: "get";
|
|
5
|
+
readonly List: "list";
|
|
6
|
+
readonly Delete: "delete";
|
|
7
|
+
readonly Run: "run";
|
|
8
|
+
readonly Push: "push";
|
|
9
|
+
readonly Search: "search";
|
|
10
|
+
readonly Download: "download";
|
|
11
|
+
};
|
|
12
|
+
export type Verb = (typeof Verb)[keyof typeof Verb];
|
|
13
|
+
export declare const ALL_VERBS: readonly Verb[];
|
|
14
|
+
export declare function isFileBasedVerb(verb: Verb): boolean;
|
|
15
|
+
export declare function isReferenceBasedVerb(verb: Verb): boolean;
|
|
16
|
+
//# sourceMappingURL=verbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verbs.d.ts","sourceRoot":"","sources":["../../src/registry/verbs.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;CAUP,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAGpD,eAAO,MAAM,SAAS,EAAE,SAAS,IAAI,EAUpC,CAAC;AAEF,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAEnD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAQxD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// CLI verbs — operations that can be performed on a resource.
|
|
2
|
+
// Mirrors the Go types.Verb set so the two CLIs stay behaviorally identical.
|
|
3
|
+
export const Verb = {
|
|
4
|
+
Apply: "apply",
|
|
5
|
+
Validate: "validate",
|
|
6
|
+
Get: "get",
|
|
7
|
+
List: "list",
|
|
8
|
+
Delete: "delete",
|
|
9
|
+
Run: "run",
|
|
10
|
+
Push: "push",
|
|
11
|
+
Search: "search",
|
|
12
|
+
Download: "download",
|
|
13
|
+
};
|
|
14
|
+
// Declaration order is the canonical display order (help text, parity tables).
|
|
15
|
+
export const ALL_VERBS = [
|
|
16
|
+
Verb.Apply,
|
|
17
|
+
Verb.Validate,
|
|
18
|
+
Verb.Get,
|
|
19
|
+
Verb.List,
|
|
20
|
+
Verb.Delete,
|
|
21
|
+
Verb.Run,
|
|
22
|
+
Verb.Push,
|
|
23
|
+
Verb.Search,
|
|
24
|
+
Verb.Download,
|
|
25
|
+
];
|
|
26
|
+
export function isFileBasedVerb(verb) {
|
|
27
|
+
return verb === Verb.Apply || verb === Verb.Validate;
|
|
28
|
+
}
|
|
29
|
+
export function isReferenceBasedVerb(verb) {
|
|
30
|
+
return (verb === Verb.Get ||
|
|
31
|
+
verb === Verb.Delete ||
|
|
32
|
+
verb === Verb.Run ||
|
|
33
|
+
verb === Verb.Search ||
|
|
34
|
+
verb === Verb.Download);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=verbs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verbs.js","sourceRoot":"","sources":["../../src/registry/verbs.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,6EAA6E;AAE7E,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIX,+EAA+E;AAC/E,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,IAAI,CAAC,KAAK;IACV,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,QAAQ;CACd,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,IAAU;IACxC,OAAO,IAAI,KAAK,IAAI,CAAC,KAAK,IAAI,IAAI,KAAK,IAAI,CAAC,QAAQ,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAU;IAC7C,OAAO,CACL,IAAI,KAAK,IAAI,CAAC,GAAG;QACjB,IAAI,KAAK,IAAI,CAAC,MAAM;QACpB,IAAI,KAAK,IAAI,CAAC,GAAG;QACjB,IAAI,KAAK,IAAI,CAAC,MAAM;QACpB,IAAI,KAAK,IAAI,CAAC,QAAQ,CACvB,CAAC;AACJ,CAAC"}
|