@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,156 @@
|
|
|
1
|
+
// An entry of an open marketplace becomes a prepared push. This is the one
|
|
2
|
+
// place that happens, for both callers: `stigmer install <ref>` and the
|
|
3
|
+
// `stigmer up` default-set step. Neither re-derives the entry's directory or
|
|
4
|
+
// the archive's digest; both hand the prepared value to `pushPrepared` (or,
|
|
5
|
+
// for `up`, compare its digest first). The entry's directory goes through the
|
|
6
|
+
// same walker `push plugin <dir>` uses, so a marketplace install and a push
|
|
7
|
+
// of the same checked-out folder yield one digest for one tree.
|
|
8
|
+
import { UsageError } from "../errors/index.js";
|
|
9
|
+
import { preparePluginPush, } from "../resources/plugin.js";
|
|
10
|
+
import { describeSource, } from "./config.js";
|
|
11
|
+
import { openMarketplace, } from "./materialize.js";
|
|
12
|
+
import { peekGitHubMarketplace } from "./github.js";
|
|
13
|
+
import { entryDirectory, findEntry, marketplaceRefusal, readMarketplaceTree, } from "./read.js";
|
|
14
|
+
import { formatInstallRef } from "./ref.js";
|
|
15
|
+
/**
|
|
16
|
+
* Find the source a ref names. A prefixed ref names it outright; a bare
|
|
17
|
+
* name is searched across every known source in listing order (the official
|
|
18
|
+
* one first), and exactly one must offer it: none refuses toward
|
|
19
|
+
* `marketplace show`, more than one refuses by naming each holder, because
|
|
20
|
+
* "the first one wins" would make the answer depend on the order the user
|
|
21
|
+
* added sources in. The caller owns `open` and disposes it.
|
|
22
|
+
*
|
|
23
|
+
* The search is cheap by design: a GitHub source is asked through its
|
|
24
|
+
* marketplace file alone (`peekGitHubMarketplace`, a few KB), and only the
|
|
25
|
+
* one source that declares the name is opened as a tree and read whole,
|
|
26
|
+
* which is where "declared" becomes "offered" or the install refuses. With
|
|
27
|
+
* the vendors' catalogues built in, the alternative was three zipballs per
|
|
28
|
+
* bare install.
|
|
29
|
+
*/
|
|
30
|
+
export async function locateEntry(ref, listing, options = {}) {
|
|
31
|
+
if (ref.marketplace !== undefined) {
|
|
32
|
+
const marketplace = listing.known.find((known) => known.name === ref.marketplace);
|
|
33
|
+
if (marketplace === undefined) {
|
|
34
|
+
throw new UsageError(`no marketplace named '${ref.marketplace}' is configured\n\n` +
|
|
35
|
+
"Run 'stigmer marketplace list' to see the configured names, or add one with 'stigmer marketplace add <source>'.");
|
|
36
|
+
}
|
|
37
|
+
const open = await openMarketplace(marketplace.source, options);
|
|
38
|
+
try {
|
|
39
|
+
const tree = readMarketplaceTree(open.root, describeSource(marketplace.source));
|
|
40
|
+
if (findEntry(tree.marketplace, ref.name) === undefined)
|
|
41
|
+
throw entryNotOffered(tree, ref.name);
|
|
42
|
+
return { marketplace, open, tree };
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
open.dispose();
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const holders = [];
|
|
50
|
+
for (const marketplace of listing.known) {
|
|
51
|
+
let located;
|
|
52
|
+
try {
|
|
53
|
+
located = await locateIn(marketplace, ref.name, options);
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
for (const holder of holders)
|
|
57
|
+
holder.open.dispose();
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
if (located !== undefined)
|
|
61
|
+
holders.push(located);
|
|
62
|
+
}
|
|
63
|
+
if (holders.length === 1)
|
|
64
|
+
return holders[0];
|
|
65
|
+
for (const holder of holders)
|
|
66
|
+
holder.open.dispose();
|
|
67
|
+
if (holders.length === 0) {
|
|
68
|
+
const skipped = listing.unreadable.length === 0
|
|
69
|
+
? ""
|
|
70
|
+
: ` Not searched, because its entry cannot be read: ${listing.unreadable.map((entry) => entry.name).join(", ")} (see 'stigmer marketplace list').`;
|
|
71
|
+
throw new UsageError(`no configured marketplace offers a plugin named '${ref.name}'\n\n` +
|
|
72
|
+
`Searched: ${listing.known.map((known) => known.name).join(", ")}.${skipped} ` +
|
|
73
|
+
"Run 'stigmer marketplace show <name>' to see what each offers, or add the marketplace that has it.");
|
|
74
|
+
}
|
|
75
|
+
throw new UsageError(`'${ref.name}' is offered by more than one marketplace: ${holders.map((holder) => holder.marketplace.name).join(", ")}\n\n` +
|
|
76
|
+
`Name the one you mean: ${holders.map((holder) => formatInstallRef({ ...ref, marketplace: holder.marketplace.name })).join(" or ")}.`);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The entry called `name` in one source, opened and read, or `undefined`
|
|
80
|
+
* when the source does not offer it. A GitHub source is first asked through
|
|
81
|
+
* its marketplace file alone (a few KB); its zipball is downloaded only when
|
|
82
|
+
* the file declares the name, and the tree read then decides whether it is
|
|
83
|
+
* held. A local or official tree is on disk and is read once. A GitHub
|
|
84
|
+
* repository with no marketplace file declares nothing (a built-in whose
|
|
85
|
+
* vendor moved the file must not break every bare install); one whose file
|
|
86
|
+
* the library refuses is a real fault and is said so.
|
|
87
|
+
*/
|
|
88
|
+
async function locateIn(marketplace, name, options) {
|
|
89
|
+
if (marketplace.source.type === "github") {
|
|
90
|
+
const peek = await peekGitHubMarketplace(marketplace.source, options.fetchImpl);
|
|
91
|
+
if (!peek.ok) {
|
|
92
|
+
switch (peek.kind) {
|
|
93
|
+
case "not-a-marketplace":
|
|
94
|
+
return undefined;
|
|
95
|
+
case "refused":
|
|
96
|
+
throw marketplaceRefusal(`${describeSource(marketplace.source)} (${peek.location})`, peek.errors, peek.warnings);
|
|
97
|
+
default: {
|
|
98
|
+
const exhaustive = peek;
|
|
99
|
+
return exhaustive;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (findEntry(peek.peeked.marketplace, name) === undefined)
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
const open = await openMarketplace(marketplace.source, options);
|
|
107
|
+
try {
|
|
108
|
+
const tree = readMarketplaceTree(open.root, describeSource(marketplace.source));
|
|
109
|
+
if (findEntry(tree.marketplace, name) === undefined) {
|
|
110
|
+
// Declared by a file but not held by the tree, or simply absent: not a
|
|
111
|
+
// holder. The not-found sentence names every source searched.
|
|
112
|
+
open.dispose();
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
return { marketplace, open, tree };
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
open.dispose();
|
|
119
|
+
throw error;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/** Read, validate and zip the entry called `name`; refuses an entry the marketplace does not offer. */
|
|
123
|
+
export async function prepareEntry(tree, name) {
|
|
124
|
+
const entry = findEntry(tree.marketplace, name);
|
|
125
|
+
if (entry === undefined)
|
|
126
|
+
throw entryNotOffered(tree, name);
|
|
127
|
+
return preparePluginPush(entryDirectory(tree, entry));
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* `@version` in a ref is an assertion, not a selector: a marketplace tree
|
|
131
|
+
* holds one version of each plugin, so the ref either names it or is wrong.
|
|
132
|
+
*/
|
|
133
|
+
export function assertVersion(prepared, wanted, ref) {
|
|
134
|
+
if (wanted === undefined)
|
|
135
|
+
return;
|
|
136
|
+
const offered = prepared.plugin.version;
|
|
137
|
+
if (offered === wanted)
|
|
138
|
+
return;
|
|
139
|
+
throw new UsageError(offered === undefined
|
|
140
|
+
? `'${ref}' pins version ${wanted}, but the marketplace's '${prepared.plugin.name}' declares no version\n\nInstall it without '@${wanted}'.`
|
|
141
|
+
: `'${ref}' pins version ${wanted}, but the marketplace offers '${prepared.plugin.name}' at ${offered}\n\nInstall it as '${ref.slice(0, ref.lastIndexOf("@"))}@${offered}', or without a version.`);
|
|
142
|
+
}
|
|
143
|
+
function entryNotOffered(tree, name) {
|
|
144
|
+
const dropped = tree.warnings.find((warning) => warning.subject === name);
|
|
145
|
+
const offered = tree.marketplace.plugins.map((entry) => entry.name);
|
|
146
|
+
const lines = [
|
|
147
|
+
`marketplace '${tree.marketplace.name}' does not offer a plugin named '${name}'`,
|
|
148
|
+
];
|
|
149
|
+
if (dropped !== undefined)
|
|
150
|
+
lines.push("", dropped.message);
|
|
151
|
+
lines.push("", offered.length === 0
|
|
152
|
+
? "It offers no plugins this CLI can install."
|
|
153
|
+
: `Run 'stigmer marketplace show ${tree.marketplace.name}' to see the ${offered.length} it offers.`);
|
|
154
|
+
return new UsageError(lines.join("\n"));
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../src/marketplace/install.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wEAAwE;AACxE,6EAA6E;AAC7E,4EAA4E;AAC5E,8EAA8E;AAC9E,4EAA4E;AAC5E,gEAAgE;AAGhE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAEL,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAEL,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAmB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAS7D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,GAAe,EACf,OAA2B,EAC3B,UAAkC,EAAE;IAEpC,IAAI,GAAG,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CACpC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,WAAW,CAC1C,CAAC;QACF,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,UAAU,CAClB,yBAAyB,GAAG,CAAC,WAAW,qBAAqB;gBAC3D,iHAAiH,CACpH,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,MAA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AI,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,KAAK,CAAC,IAAI,CACR,EAAE,EACF,OAAO,CAAC,MAAM,KAAK,CAAC;QAClB,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,iCAAiC,IAAI,CAAC,WAAW,CAAC,IAAI,gBAAgB,OAAO,CAAC,MAAM,aAAa,CACtG,CAAC;IACF,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MarketplaceSource } from "./config.js";
|
|
2
|
+
import { type ResolveOfficialOptions } from "./official.js";
|
|
3
|
+
/** A marketplace tree on disk, for as long as the caller holds it. */
|
|
4
|
+
export interface OpenMarketplace {
|
|
5
|
+
/** Absolute path to the tree root: the directory the marketplace file sits in. */
|
|
6
|
+
readonly root: string;
|
|
7
|
+
/** Release whatever the open created (a temp directory); a no-op for a tree that was already there. */
|
|
8
|
+
dispose(): void;
|
|
9
|
+
}
|
|
10
|
+
export interface OpenMarketplaceOptions {
|
|
11
|
+
/** The HTTP client for GitHub sources (injectable for tests). */
|
|
12
|
+
readonly fetchImpl?: typeof globalThis.fetch;
|
|
13
|
+
/** How the official tree is found (injectable for tests). */
|
|
14
|
+
readonly official?: ResolveOfficialOptions;
|
|
15
|
+
}
|
|
16
|
+
export declare function openMarketplace(source: MarketplaceSource, options?: OpenMarketplaceOptions): Promise<OpenMarketplace>;
|
|
17
|
+
/** Open, hand the tree to `use`, and dispose whatever the outcome. */
|
|
18
|
+
export declare function withMarketplace<T>(source: MarketplaceSource, use: (open: OpenMarketplace) => Promise<T> | T, options?: OpenMarketplaceOptions): Promise<T>;
|
|
19
|
+
//# sourceMappingURL=materialize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"materialize.d.ts","sourceRoot":"","sources":["../src/marketplace/materialize.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,eAAe,CAAC;AAEvB,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uGAAuG;IACvG,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAC7C,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CAC5C;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,eAAe,CAAC,CA6B1B;AAED,sEAAsE;AACtE,wBAAsB,eAAe,CAAC,CAAC,EACrC,MAAM,EAAE,iBAAiB,EACzB,GAAG,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAC9C,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,CAAC,CAAC,CAOZ"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Every marketplace source becomes a directory, and every directory is read by
|
|
2
|
+
// the one plugin walker. This module is where a source turns into that
|
|
3
|
+
// directory and where the directory's lifetime is owned: a local path is used
|
|
4
|
+
// where it is; the official tree is resolved or acquired; a GitHub zipball is
|
|
5
|
+
// extracted under a temp directory that `dispose` removes. One owner for the
|
|
6
|
+
// lifetime means `add`, `show` and `install` cannot leak a temp tree between
|
|
7
|
+
// them, whatever path an error takes.
|
|
8
|
+
import { mkdtempSync, rmSync } from "node:fs";
|
|
9
|
+
import { tmpdir } from "node:os";
|
|
10
|
+
import { join } from "node:path";
|
|
11
|
+
import { fetchGitHubTree } from "./github.js";
|
|
12
|
+
import { resolveOfficialMarketplace, } from "./official.js";
|
|
13
|
+
export async function openMarketplace(source, options = {}) {
|
|
14
|
+
switch (source.type) {
|
|
15
|
+
case "local":
|
|
16
|
+
return { root: source.path, dispose: () => { } };
|
|
17
|
+
case "official":
|
|
18
|
+
return {
|
|
19
|
+
root: resolveOfficialMarketplace(options.official).dir,
|
|
20
|
+
dispose: () => { },
|
|
21
|
+
};
|
|
22
|
+
case "github": {
|
|
23
|
+
const root = mkdtempSync(join(tmpdir(), "stigmer-marketplace-"));
|
|
24
|
+
const dispose = () => rmSync(root, { recursive: true, force: true });
|
|
25
|
+
try {
|
|
26
|
+
await fetchGitHubTree(source, {
|
|
27
|
+
destDir: root,
|
|
28
|
+
fetchImpl: options.fetchImpl,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
dispose();
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
return { root, dispose };
|
|
36
|
+
}
|
|
37
|
+
default: {
|
|
38
|
+
const exhaustive = source;
|
|
39
|
+
return exhaustive;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** Open, hand the tree to `use`, and dispose whatever the outcome. */
|
|
44
|
+
export async function withMarketplace(source, use, options = {}) {
|
|
45
|
+
const open = await openMarketplace(source, options);
|
|
46
|
+
try {
|
|
47
|
+
return await use(open);
|
|
48
|
+
}
|
|
49
|
+
finally {
|
|
50
|
+
open.dispose();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=materialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"materialize.js","sourceRoot":"","sources":["../src/marketplace/materialize.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uEAAuE;AACvE,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,M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,OAAO,UAAU,CAAC;QACpB,CAAC;IACH,CAAC;AACH,CAAC;AAED,sEAAsE;AACtE,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAAyB,EACzB,GAA8C,EAC9C,UAAkC,EAAE;IAEpC,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpD,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;YAAS,CAAC;QACT,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type NpmInstall } from "../local/runtime/runtimes-install.js";
|
|
2
|
+
export interface OfficialMarketplaceDir {
|
|
3
|
+
/** Absolute path to the tree root (holds `marketplace.json`). */
|
|
4
|
+
readonly dir: string;
|
|
5
|
+
/** Where the tree came from, for diagnostics. */
|
|
6
|
+
readonly source: "repo" | "package";
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveOfficialOptions {
|
|
9
|
+
home?: string;
|
|
10
|
+
/** Release version of `@stigmer/plugins` to acquire (defaults to the CLI version). */
|
|
11
|
+
version?: string;
|
|
12
|
+
/** npm install implementation (injectable for tests). */
|
|
13
|
+
install?: NpmInstall;
|
|
14
|
+
/** The repo-tree probe (injectable for tests; the default walks up from this module). */
|
|
15
|
+
repoDir?: () => string | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The official marketplace's directory: a repo-tree checkout in dev, else the
|
|
19
|
+
* on-demand-acquired package. Throws actionable guidance when acquisition is
|
|
20
|
+
* not possible (a non-release build with no checkout, a failed install).
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveOfficialMarketplace(opts?: ResolveOfficialOptions): OfficialMarketplaceDir;
|
|
23
|
+
/**
|
|
24
|
+
* Acquire `@stigmer/plugins@<version>` into ~/.stigmer/runtimes/<version>/
|
|
25
|
+
* (idempotent) and return the package directory, which is the tree root.
|
|
26
|
+
*/
|
|
27
|
+
export declare function acquireOfficialMarketplace(opts?: ResolveOfficialOptions): string;
|
|
28
|
+
//# sourceMappingURL=official.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"official.d.ts","sourceRoot":"","sources":["../src/marketplace/official.ts"],"names":[],"mappings":"AA8BA,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,sCAAsC,CAAC;AAQ9C,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,GAAE,sBAA2B,GAChC,sBAAsB,CAIxB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,GAAE,sBAA2B,GAChC,MAAM,CAiCR"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Resolution and on-demand acquisition of the official marketplace.
|
|
2
|
+
//
|
|
3
|
+
// The official catalogue (`plugins/` in the OSS repository, published as
|
|
4
|
+
// `@stigmer/plugins`) is what `stigmer install <name>` reads when no other
|
|
5
|
+
// marketplace is named, so it follows the server's and the runner's rule:
|
|
6
|
+
// acquired at the CLI's OWN version, so the plugins it installs match the
|
|
7
|
+
// control plane that serves them. A lean `npx @stigmer/cli` does not carry the
|
|
8
|
+
// content; it is fetched once, the first time an install needs it, into
|
|
9
|
+
// ~/.stigmer/runtimes/<version>/ like the server and the runner.
|
|
10
|
+
//
|
|
11
|
+
// Two sources, tried in order (mirrors runtime/server.ts and runtime/runner.ts):
|
|
12
|
+
// 1. A repo-tree checkout (dev): `<repo>/plugins`, the tree itself.
|
|
13
|
+
// 2. The published `@stigmer/plugins@<cli-version>`, whose package root IS
|
|
14
|
+
// the marketplace tree (`publish-libs.mjs` publishes from `dist/`, where
|
|
15
|
+
// `stage-content.mjs` placed `marketplace.json` and every listed plugin).
|
|
16
|
+
//
|
|
17
|
+
// Presence beats acquirability (the server acquirer's rule): installed content
|
|
18
|
+
// is used whatever its version string; only an install we would have to
|
|
19
|
+
// perform is refused for a non-release build. The all-in-one image relies on
|
|
20
|
+
// this: it bakes the package at a dev-stamped version npm never published.
|
|
21
|
+
import { existsSync } from "node:fs";
|
|
22
|
+
import { homedir } from "node:os";
|
|
23
|
+
import { dirname, join } from "node:path";
|
|
24
|
+
import { fileURLToPath } from "node:url";
|
|
25
|
+
import { MARKETPLACE_LOCATIONS } from "@stigmer/plugin-package";
|
|
26
|
+
import { CliExitError } from "../errors/cli-exit-error.js";
|
|
27
|
+
import { ExitCode } from "../errors/exit-codes.js";
|
|
28
|
+
import { log } from "../logger.js";
|
|
29
|
+
import { runtimesDir } from "../local/paths.js";
|
|
30
|
+
import { ensureRuntimesRoot, isAcquirableRelease, npmInstallIntoRuntimes, } from "../local/runtime/runtimes-install.js";
|
|
31
|
+
import { VERSION } from "../version.js";
|
|
32
|
+
const PLUGINS_PACKAGE = "@stigmer/plugins";
|
|
33
|
+
/** The file that makes a directory the official tree: Stigmer's own marketplace dialect at the root. */
|
|
34
|
+
const OFFICIAL_MARKER = MARKETPLACE_LOCATIONS.stigmer;
|
|
35
|
+
/**
|
|
36
|
+
* The official marketplace's directory: a repo-tree checkout in dev, else the
|
|
37
|
+
* on-demand-acquired package. Throws actionable guidance when acquisition is
|
|
38
|
+
* not possible (a non-release build with no checkout, a failed install).
|
|
39
|
+
*/
|
|
40
|
+
export function resolveOfficialMarketplace(opts = {}) {
|
|
41
|
+
const repo = (opts.repoDir ?? repoPluginsDir)();
|
|
42
|
+
if (repo !== null)
|
|
43
|
+
return { dir: repo, source: "repo" };
|
|
44
|
+
return { dir: acquireOfficialMarketplace(opts), source: "package" };
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Acquire `@stigmer/plugins@<version>` into ~/.stigmer/runtimes/<version>/
|
|
48
|
+
* (idempotent) and return the package directory, which is the tree root.
|
|
49
|
+
*/
|
|
50
|
+
export function acquireOfficialMarketplace(opts = {}) {
|
|
51
|
+
const home = opts.home ?? homedir();
|
|
52
|
+
const version = opts.version ?? VERSION;
|
|
53
|
+
const installDir = join(runtimesDir(home), version);
|
|
54
|
+
const pkgDir = join(installDir, "node_modules", "@stigmer", "plugins");
|
|
55
|
+
const marker = join(pkgDir, OFFICIAL_MARKER);
|
|
56
|
+
if (!existsSync(marker)) {
|
|
57
|
+
if (!isAcquirableRelease(version)) {
|
|
58
|
+
throw new CliExitError(`cannot acquire ${PLUGINS_PACKAGE} for a non-release build (${version})`, ExitCode.General, [
|
|
59
|
+
"Run from the repo (the plugins/ tree is used directly in dev).",
|
|
60
|
+
"On-demand acquisition is only available for published releases.",
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
log.info(`acquiring ${PLUGINS_PACKAGE}`, { version, dir: installDir });
|
|
64
|
+
ensureRuntimesRoot(installDir);
|
|
65
|
+
const install = opts.install ?? npmInstallIntoRuntimes;
|
|
66
|
+
install(installDir, `${PLUGINS_PACKAGE}@${version}`);
|
|
67
|
+
}
|
|
68
|
+
if (!existsSync(marker)) {
|
|
69
|
+
throw new CliExitError(`${PLUGINS_PACKAGE} install did not produce ${marker}`, ExitCode.General, [`Remove ${installDir} and retry.`]);
|
|
70
|
+
}
|
|
71
|
+
return pkgDir;
|
|
72
|
+
}
|
|
73
|
+
// Walk up from this module to a repo root whose plugins/ holds the marker.
|
|
74
|
+
function repoPluginsDir() {
|
|
75
|
+
let dir = dirname(fileURLToPath(import.meta.url));
|
|
76
|
+
for (let i = 0; i < 10; i += 1) {
|
|
77
|
+
const candidate = join(dir, "plugins");
|
|
78
|
+
if (existsSync(join(candidate, OFFICIAL_MARKER)))
|
|
79
|
+
return candidate;
|
|
80
|
+
const parent = dirname(dir);
|
|
81
|
+
if (parent === dir)
|
|
82
|
+
break;
|
|
83
|
+
dir = parent;
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=official.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"official.js","sourceRoot":"","sources":["../src/marketplace/official.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,EAAE;AACF,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E;AAC1E,0EAA0E;AAC1E,+EAA+E;AAC/E,wEAAwE;AACxE,iEAAiE;AACjE,EAAE;AACF,iFAAiF;AACjF,sEAAsE;AACtE,6EAA6E;AAC7E,8EAA8E;AAC9E,+EAA+E;AAC/E,EAAE;AACF,+EAA+E;AAC/E,wEAAwE;AACxE,6EAA6E;AAC7E,2EAA2E;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GAEvB,MAAM,sCAAsC,CAAC;AAC9C,O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E,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,CAAC;QACvE,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,sBAAsB,CAAC;QACvD,OAAO,CAAC,UAAU,EAAE,GAAG,eAAe,IAAI,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,YAAY,CACpB,GAAG,eAAe,4BAA4B,MAAM,EAAE,EACtD,QAAQ,CAAC,OAAO,EAChB,CAAC,UAAU,UAAU,aAAa,CAAC,CACpC,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,2EAA2E;AAC3E,SAAS,cAAc;IACrB,IAAI,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QACvC,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;YAAE,OAAO,SAAS,CAAC;QACnE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,MAAM,KAAK,GAAG;YAAE,MAAM;QAC1B,GAAG,GAAG,MAAM,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Marketplace, type MarketplaceEntry, type MarketplaceFinding } from "@stigmer/plugin-package";
|
|
2
|
+
import { UsageError } from "../errors/index.js";
|
|
3
|
+
export interface ReadMarketplaceTree {
|
|
4
|
+
readonly root: string;
|
|
5
|
+
readonly marketplace: Marketplace;
|
|
6
|
+
/** The library's warnings: entries dropped, each with its own sentence. */
|
|
7
|
+
readonly warnings: readonly MarketplaceFinding[];
|
|
8
|
+
}
|
|
9
|
+
/** Read the tree at `root`; a marketplace the library refuses throws with every problem named. */
|
|
10
|
+
export declare function readMarketplaceTree(root: string, describe?: string): ReadMarketplaceTree;
|
|
11
|
+
/** The library's refusal as the CLI's one UsageError: every problem, then every warning. */
|
|
12
|
+
export declare function marketplaceRefusal(describe: string, errors: readonly MarketplaceFinding[], warnings: readonly MarketplaceFinding[]): UsageError;
|
|
13
|
+
/** The offered entry called `name`, or `undefined`. */
|
|
14
|
+
export declare function findEntry(marketplace: Marketplace, name: string): MarketplaceEntry | undefined;
|
|
15
|
+
/** The absolute directory of an offered entry: what the plugin walker reads next. */
|
|
16
|
+
export declare function entryDirectory(tree: ReadMarketplaceTree, entry: MarketplaceEntry): string;
|
|
17
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/marketplace/read.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;CAClD;AAED,kGAAkG;AAClG,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,MAAa,GACtB,mBAAmB,CAMrB;AAED,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,SAAS,kBAAkB,EAAE,EACrC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,UAAU,CAYZ;AAED,uDAAuD;AACvD,wBAAgB,SAAS,CACvB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,GACX,gBAAgB,GAAG,SAAS,CAE9B;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAIR"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// A marketplace tree on disk, read into the library's one shape.
|
|
2
|
+
//
|
|
3
|
+
// `@stigmer/plugin-package` is pure over a `PluginFiles`; the CLI feeds it
|
|
4
|
+
// the same gitignore-aware walk `push plugin` uses (`readPluginDirectory`),
|
|
5
|
+
// rooted at the marketplace tree, so what `show` lists is what the tree
|
|
6
|
+
// holds after the ignore rules that would apply to a push from it. The
|
|
7
|
+
// library's refusal (a broken marketplace FILE) becomes one `UsageError`
|
|
8
|
+
// with every sentence, the shape `pluginRefusal` prints for a plugin; its
|
|
9
|
+
// warnings (entries the tree cannot offer) travel with the marketplace so
|
|
10
|
+
// `show` can say why an entry is missing.
|
|
11
|
+
import { join } from "node:path";
|
|
12
|
+
import { readMarketplace, } from "@stigmer/plugin-package";
|
|
13
|
+
import { UsageError } from "../errors/index.js";
|
|
14
|
+
import { count, readPluginDirectory } from "../resources/plugin.js";
|
|
15
|
+
/** Read the tree at `root`; a marketplace the library refuses throws with every problem named. */
|
|
16
|
+
export function readMarketplaceTree(root, describe = root) {
|
|
17
|
+
const directory = readPluginDirectory(root);
|
|
18
|
+
const outcome = readMarketplace(directory.files);
|
|
19
|
+
if (!outcome.ok)
|
|
20
|
+
throw marketplaceRefusal(describe, outcome.errors, outcome.warnings);
|
|
21
|
+
return { root, marketplace: outcome.marketplace, warnings: outcome.warnings };
|
|
22
|
+
}
|
|
23
|
+
/** The library's refusal as the CLI's one UsageError: every problem, then every warning. */
|
|
24
|
+
export function marketplaceRefusal(describe, errors, warnings) {
|
|
25
|
+
const lines = [
|
|
26
|
+
`${describe}: not a marketplace this CLI can read, ${count(errors.length, "problem")} found:`,
|
|
27
|
+
...errors.map((finding) => ` - ${finding.message}`),
|
|
28
|
+
];
|
|
29
|
+
if (warnings.length > 0) {
|
|
30
|
+
lines.push(`and ${count(warnings.length, "warning")}:`, ...warnings.map((finding) => ` - ${finding.message}`));
|
|
31
|
+
}
|
|
32
|
+
return new UsageError(lines.join("\n"));
|
|
33
|
+
}
|
|
34
|
+
/** The offered entry called `name`, or `undefined`. */
|
|
35
|
+
export function findEntry(marketplace, name) {
|
|
36
|
+
return marketplace.plugins.find((entry) => entry.name === name);
|
|
37
|
+
}
|
|
38
|
+
/** The absolute directory of an offered entry: what the plugin walker reads next. */
|
|
39
|
+
export function entryDirectory(tree, entry) {
|
|
40
|
+
return entry.dir === ""
|
|
41
|
+
? tree.root
|
|
42
|
+
: join(tree.root, ...entry.dir.split("/"));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../src/marketplace/read.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,2EAA2E;AAC3E,4EAA4E;AAC5E,wEAAwE;AACxE,uEAAuE;AACvE,yEAAyE;AACzE,0EAA0E;AAC1E,0EAA0E;AAC1E,0CAA0C;AAE1C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAIL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AASpE,kGAAkG;AAClG,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,WAAmB,IAAI;IAEvB,MAAM,SAAS,GAAG,mBAAmB,CAAC,IAAI,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CAC5B,IAAyB,EACzB,KAAuB;IAEvB,OAAO,KAAK,CAAC,GAAG,KAAK,EAAE;QACrB,CAAC,CAAC,IAAI,CAAC,IAAI;QACX,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type InstallRef, formatInstallRef } from "@stigmer/plugin-package/client";
|
|
2
|
+
import { type MarketplaceSource } from "./config.js";
|
|
3
|
+
export { type InstallRef, formatInstallRef };
|
|
4
|
+
export declare function parseInstallRef(text: string): InstallRef;
|
|
5
|
+
/**
|
|
6
|
+
* What `marketplace add <source>` was given, as a source. An existing
|
|
7
|
+
* directory wins over every other reading; otherwise the shared GitHub
|
|
8
|
+
* grammar decides, and what it refuses is refused here with the shape.
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseAddSource(text: string, cwd?: string): Exclude<MarketplaceSource, {
|
|
11
|
+
type: "official";
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../src/marketplace/ref.ts"],"names":[],"mappings":"AAcA,OAAO,EAGL,KAAK,UAAU,EACf,gBAAgB,EAIjB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,gBAAgB,EAAE,CAAC;AAE7C,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CASxD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAgBlD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// The two grammars a user types at the marketplace surface, as the CLI's
|
|
2
|
+
// errors.
|
|
3
|
+
//
|
|
4
|
+
// The grammars themselves (`[marketplace/]name[@version]` and the GitHub
|
|
5
|
+
// `owner/repo[@ref]` or URL forms) live in `@stigmer/plugin-package/client`,
|
|
6
|
+
// where the console parses the same text and gets the same sentence. This
|
|
7
|
+
// module adds what only the CLI has: a `UsageError` carrying the sentence
|
|
8
|
+
// plus the paragraph naming the CLI command to run instead, and the reading
|
|
9
|
+
// of `marketplace add <source>` as a directory on this machine, which wins
|
|
10
|
+
// over every other reading (`add plugins` in a checkout means the folder,
|
|
11
|
+
// not a GitHub owner).
|
|
12
|
+
import { statSync } from "node:fs";
|
|
13
|
+
import { resolve } from "node:path";
|
|
14
|
+
import { GITHUB_SOURCE_SHAPE, INSTALL_REF_SHAPE, formatInstallRef, looksLikePath, parseGitHubSource, parseInstallRef as parseInstallRefText, } from "@stigmer/plugin-package/client";
|
|
15
|
+
import { UsageError } from "../errors/index.js";
|
|
16
|
+
export { formatInstallRef };
|
|
17
|
+
export function parseInstallRef(text) {
|
|
18
|
+
const outcome = parseInstallRefText(text);
|
|
19
|
+
if (outcome.ok)
|
|
20
|
+
return outcome.ref;
|
|
21
|
+
if (outcome.kind === "path") {
|
|
22
|
+
throw new UsageError(`${outcome.message}\n\nTo install a plugin from a folder, run: stigmer push plugin ${text}`);
|
|
23
|
+
}
|
|
24
|
+
throw new UsageError(`${outcome.message}\n\nA ref is ${INSTALL_REF_SHAPE}.`);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* What `marketplace add <source>` was given, as a source. An existing
|
|
28
|
+
* directory wins over every other reading; otherwise the shared GitHub
|
|
29
|
+
* grammar decides, and what it refuses is refused here with the shape.
|
|
30
|
+
*/
|
|
31
|
+
export function parseAddSource(text, cwd = process.cwd()) {
|
|
32
|
+
if (text === "")
|
|
33
|
+
throw new UsageError(`a marketplace source is required\n\n${ADD_SHAPE}`);
|
|
34
|
+
const asDirectory = resolve(cwd, text);
|
|
35
|
+
if (isDirectory(asDirectory))
|
|
36
|
+
return { type: "local", path: asDirectory };
|
|
37
|
+
const github = parseGitHubSource(text);
|
|
38
|
+
if (github.ok)
|
|
39
|
+
return github.source;
|
|
40
|
+
if (looksLikePath(text) || text.includes("/")) {
|
|
41
|
+
throw new UsageError(`'${text}' is not a directory on this machine and not a GitHub 'owner/repo'\n\n${ADD_SHAPE}`);
|
|
42
|
+
}
|
|
43
|
+
throw new UsageError(`'${text}' is not a marketplace source\n\n${ADD_SHAPE}`);
|
|
44
|
+
}
|
|
45
|
+
const ADD_SHAPE = `A source is a directory holding a marketplace file, or ${GITHUB_SOURCE_SHAPE}.`;
|
|
46
|
+
function isDirectory(path) {
|
|
47
|
+
try {
|
|
48
|
+
return statSync(path).isDirectory();
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref.js","sourceRoot":"","sources":["../src/marketplace/ref.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,UAAU;AACV,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,0EAA0E;AAC1E,0EAA0E;AAC1E,4EAA4E;AAC5E,2EAA2E;AAC3E,0EAA0E;AAC1E,uBAAuB;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAEjB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,eAAe,IAAI,mBAAmB,GACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAmB,gBAAgB,EAAE,CAAC;A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W,CAAC,IAAY;IAC/B,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CommandResult } from "../output/index.js";
|
|
2
|
+
import { type KnownMarketplace, type MarketplaceListing } from "./config.js";
|
|
3
|
+
import { type ReadMarketplaceTree } from "./read.js";
|
|
4
|
+
export declare function renderMarketplaceList(listing: MarketplaceListing): CommandResult;
|
|
5
|
+
/** One offered entry as `show` reports it, after its own manifest has been read. */
|
|
6
|
+
export interface ShownEntry {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly dir: string;
|
|
9
|
+
readonly version?: string;
|
|
10
|
+
readonly description?: string;
|
|
11
|
+
/** Set when the entry's own package refuses to read; `show` still lists it so the gap is visible. */
|
|
12
|
+
readonly problems?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Read each offered entry's own package for its version and description.
|
|
16
|
+
* The marketplace file's description is a fallback (Stigmer's own catalogue
|
|
17
|
+
* carries none, so nothing is written twice); the plugin's manifest is the
|
|
18
|
+
* truth a user installs.
|
|
19
|
+
*/
|
|
20
|
+
export declare function inspectEntries(tree: ReadMarketplaceTree): ShownEntry[];
|
|
21
|
+
export declare function renderMarketplaceShow(marketplace: KnownMarketplace, tree: ReadMarketplaceTree, entries: readonly ShownEntry[]): CommandResult;
|
|
22
|
+
//# sourceMappingURL=render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/marketplace/render.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAExB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,mBAAmB,EAAkB,MAAM,WAAW,CAAC;AAErE,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,kBAAkB,GAC1B,aAAa,CA6Bf;AAED,oFAAoF;AACpF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,qGAAqG;IACrG,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,EAAE,CAyBtE;AAED,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,SAAS,UAAU,EAAE,GAC7B,aAAa,CAsDf"}
|