@useconvoy/cli 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +90 -0
- package/README.md +495 -0
- package/dist/bin/convoy.d.ts +2 -0
- package/dist/bin/convoy.js +129 -0
- package/dist/bin/convoy.js.map +1 -0
- package/dist/marketplace/.claude-plugin/marketplace.json +14 -0
- package/dist/marketplace/opensana/.claude-plugin/plugin.json +5 -0
- package/dist/marketplace/opensana/README.md +90 -0
- package/dist/marketplace/opensana/skills/tasks/SKILL.md +133 -0
- package/dist/marketplace/opensana/skills/tasks/references/mcp-setup.md +164 -0
- package/dist/src/agent/app/chunk-flush-buffer.d.ts +35 -0
- package/dist/src/agent/app/chunk-flush-buffer.js +133 -0
- package/dist/src/agent/app/chunk-flush-buffer.js.map +1 -0
- package/dist/src/agent/app/chunk-scrub.d.ts +9 -0
- package/dist/src/agent/app/chunk-scrub.js +120 -0
- package/dist/src/agent/app/chunk-scrub.js.map +1 -0
- package/dist/src/agent/app/interaction-router.d.ts +16 -0
- package/dist/src/agent/app/interaction-router.js +29 -0
- package/dist/src/agent/app/interaction-router.js.map +1 -0
- package/dist/src/agent/app/runner.d.ts +41 -0
- package/dist/src/agent/app/runner.js +353 -0
- package/dist/src/agent/app/runner.js.map +1 -0
- package/dist/src/agent/app/runtime-config.d.ts +3 -0
- package/dist/src/agent/app/runtime-config.js +4 -0
- package/dist/src/agent/app/runtime-config.js.map +1 -0
- package/dist/src/agent/app/thread-attachment-cache.d.ts +17 -0
- package/dist/src/agent/app/thread-attachment-cache.js +124 -0
- package/dist/src/agent/app/thread-attachment-cache.js.map +1 -0
- package/dist/src/agent/app/thread-processor.d.ts +40 -0
- package/dist/src/agent/app/thread-processor.js +792 -0
- package/dist/src/agent/app/thread-processor.js.map +1 -0
- package/dist/src/agent/app/worktree-op-processor.d.ts +27 -0
- package/dist/src/agent/app/worktree-op-processor.js +173 -0
- package/dist/src/agent/app/worktree-op-processor.js.map +1 -0
- package/dist/src/agent/runtimes/agent-instructions.d.ts +16 -0
- package/dist/src/agent/runtimes/agent-instructions.js +33 -0
- package/dist/src/agent/runtimes/agent-instructions.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/continuation.d.ts +1 -0
- package/dist/src/agent/runtimes/claudeCode/continuation.js +30 -0
- package/dist/src/agent/runtimes/claudeCode/continuation.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/detect.d.ts +12 -0
- package/dist/src/agent/runtimes/claudeCode/detect.js +109 -0
- package/dist/src/agent/runtimes/claudeCode/detect.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/interactions.d.ts +13 -0
- package/dist/src/agent/runtimes/claudeCode/interactions.js +167 -0
- package/dist/src/agent/runtimes/claudeCode/interactions.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/models.d.ts +3 -0
- package/dist/src/agent/runtimes/claudeCode/models.js +16 -0
- package/dist/src/agent/runtimes/claudeCode/models.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/prompts.d.ts +1 -0
- package/dist/src/agent/runtimes/claudeCode/prompts.js +5 -0
- package/dist/src/agent/runtimes/claudeCode/prompts.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/runner.d.ts +32 -0
- package/dist/src/agent/runtimes/claudeCode/runner.js +941 -0
- package/dist/src/agent/runtimes/claudeCode/runner.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/runtime.d.ts +2 -0
- package/dist/src/agent/runtimes/claudeCode/runtime.js +126 -0
- package/dist/src/agent/runtimes/claudeCode/runtime.js.map +1 -0
- package/dist/src/agent/runtimes/claudeCode/streaming.d.ts +8 -0
- package/dist/src/agent/runtimes/claudeCode/streaming.js +88 -0
- package/dist/src/agent/runtimes/claudeCode/streaming.js.map +1 -0
- package/dist/src/agent/runtimes/codex/app-server-rpc.d.ts +26 -0
- package/dist/src/agent/runtimes/codex/app-server-rpc.js +109 -0
- package/dist/src/agent/runtimes/codex/app-server-rpc.js.map +1 -0
- package/dist/src/agent/runtimes/codex/app-server-runner.d.ts +59 -0
- package/dist/src/agent/runtimes/codex/app-server-runner.js +688 -0
- package/dist/src/agent/runtimes/codex/app-server-runner.js.map +1 -0
- package/dist/src/agent/runtimes/codex/commands.d.ts +23 -0
- package/dist/src/agent/runtimes/codex/commands.js +25 -0
- package/dist/src/agent/runtimes/codex/commands.js.map +1 -0
- package/dist/src/agent/runtimes/codex/detect.d.ts +5 -0
- package/dist/src/agent/runtimes/codex/detect.js +17 -0
- package/dist/src/agent/runtimes/codex/detect.js.map +1 -0
- package/dist/src/agent/runtimes/codex/models.d.ts +2 -0
- package/dist/src/agent/runtimes/codex/models.js +4 -0
- package/dist/src/agent/runtimes/codex/models.js.map +1 -0
- package/dist/src/agent/runtimes/codex/runner.d.ts +46 -0
- package/dist/src/agent/runtimes/codex/runner.js +298 -0
- package/dist/src/agent/runtimes/codex/runner.js.map +1 -0
- package/dist/src/agent/runtimes/codex/runtime.d.ts +10 -0
- package/dist/src/agent/runtimes/codex/runtime.js +73 -0
- package/dist/src/agent/runtimes/codex/runtime.js.map +1 -0
- package/dist/src/agent/runtimes/contracts.d.ts +215 -0
- package/dist/src/agent/runtimes/contracts.js +33 -0
- package/dist/src/agent/runtimes/contracts.js.map +1 -0
- package/dist/src/agent/runtimes/cursor/commands.d.ts +7 -0
- package/dist/src/agent/runtimes/cursor/commands.js +39 -0
- package/dist/src/agent/runtimes/cursor/commands.js.map +1 -0
- package/dist/src/agent/runtimes/cursor/detect.d.ts +17 -0
- package/dist/src/agent/runtimes/cursor/detect.js +54 -0
- package/dist/src/agent/runtimes/cursor/detect.js.map +1 -0
- package/dist/src/agent/runtimes/cursor/models.d.ts +9 -0
- package/dist/src/agent/runtimes/cursor/models.js +97 -0
- package/dist/src/agent/runtimes/cursor/models.js.map +1 -0
- package/dist/src/agent/runtimes/cursor/runner.d.ts +36 -0
- package/dist/src/agent/runtimes/cursor/runner.js +293 -0
- package/dist/src/agent/runtimes/cursor/runner.js.map +1 -0
- package/dist/src/agent/runtimes/cursor/runtime.d.ts +2 -0
- package/dist/src/agent/runtimes/cursor/runtime.js +48 -0
- package/dist/src/agent/runtimes/cursor/runtime.js.map +1 -0
- package/dist/src/agent/runtimes/cursor/streaming.d.ts +8 -0
- package/dist/src/agent/runtimes/cursor/streaming.js +78 -0
- package/dist/src/agent/runtimes/cursor/streaming.js.map +1 -0
- package/dist/src/agent/runtimes/debug.d.ts +8 -0
- package/dist/src/agent/runtimes/debug.js +19 -0
- package/dist/src/agent/runtimes/debug.js.map +1 -0
- package/dist/src/agent/runtimes/message-format.d.ts +6 -0
- package/dist/src/agent/runtimes/message-format.js +31 -0
- package/dist/src/agent/runtimes/message-format.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/client.d.ts +82 -0
- package/dist/src/agent/runtimes/opencode/client.js +109 -0
- package/dist/src/agent/runtimes/opencode/client.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/detect.d.ts +18 -0
- package/dist/src/agent/runtimes/opencode/detect.js +100 -0
- package/dist/src/agent/runtimes/opencode/detect.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/json.d.ts +4 -0
- package/dist/src/agent/runtimes/opencode/json.js +17 -0
- package/dist/src/agent/runtimes/opencode/json.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/runner.d.ts +50 -0
- package/dist/src/agent/runtimes/opencode/runner.js +598 -0
- package/dist/src/agent/runtimes/opencode/runner.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/runtime.d.ts +9 -0
- package/dist/src/agent/runtimes/opencode/runtime.js +82 -0
- package/dist/src/agent/runtimes/opencode/runtime.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/server.d.ts +36 -0
- package/dist/src/agent/runtimes/opencode/server.js +210 -0
- package/dist/src/agent/runtimes/opencode/server.js.map +1 -0
- package/dist/src/agent/runtimes/opencode/streaming.d.ts +7 -0
- package/dist/src/agent/runtimes/opencode/streaming.js +47 -0
- package/dist/src/agent/runtimes/opencode/streaming.js.map +1 -0
- package/dist/src/agent/runtimes/registry.d.ts +10 -0
- package/dist/src/agent/runtimes/registry.js +48 -0
- package/dist/src/agent/runtimes/registry.js.map +1 -0
- package/dist/src/agent/sdk/adapters/adapter-interface.d.ts +2 -0
- package/dist/src/agent/sdk/adapters/adapter-interface.js +4 -0
- package/dist/src/agent/sdk/adapters/adapter-interface.js.map +1 -0
- package/dist/src/agent/sdk/adapters/claude/claude-adapter.d.ts +9 -0
- package/dist/src/agent/sdk/adapters/claude/claude-adapter.js +95 -0
- package/dist/src/agent/sdk/adapters/claude/claude-adapter.js.map +1 -0
- package/dist/src/agent/sdk/adapters/codex/codex-adapter.d.ts +10 -0
- package/dist/src/agent/sdk/adapters/codex/codex-adapter.js +87 -0
- package/dist/src/agent/sdk/adapters/codex/codex-adapter.js.map +1 -0
- package/dist/src/agent/sdk/adapters/executable-resolution.d.ts +2 -0
- package/dist/src/agent/sdk/adapters/executable-resolution.js +50 -0
- package/dist/src/agent/sdk/adapters/executable-resolution.js.map +1 -0
- package/dist/src/agent/sdk/adapters/generic/generic-subprocess-adapter.d.ts +11 -0
- package/dist/src/agent/sdk/adapters/generic/generic-subprocess-adapter.js +61 -0
- package/dist/src/agent/sdk/adapters/generic/generic-subprocess-adapter.js.map +1 -0
- package/dist/src/agent/sdk/adapters/provider-registry.d.ts +8 -0
- package/dist/src/agent/sdk/adapters/provider-registry.js +32 -0
- package/dist/src/agent/sdk/adapters/provider-registry.js.map +1 -0
- package/dist/src/agent/sdk/constants.d.ts +5 -0
- package/dist/src/agent/sdk/constants.js +29 -0
- package/dist/src/agent/sdk/constants.js.map +1 -0
- package/dist/src/agent/sdk/index.d.ts +2 -0
- package/dist/src/agent/sdk/index.js +2 -0
- package/dist/src/agent/sdk/index.js.map +1 -0
- package/dist/src/agent/sdk/run-handle.d.ts +22 -0
- package/dist/src/agent/sdk/run-handle.js +90 -0
- package/dist/src/agent/sdk/run-handle.js.map +1 -0
- package/dist/src/agent/sdk/runtime/isolation-env.d.ts +9 -0
- package/dist/src/agent/sdk/runtime/isolation-env.js +39 -0
- package/dist/src/agent/sdk/runtime/isolation-env.js.map +1 -0
- package/dist/src/agent/sdk/runtime/line-parser.d.ts +11 -0
- package/dist/src/agent/sdk/runtime/line-parser.js +59 -0
- package/dist/src/agent/sdk/runtime/line-parser.js.map +1 -0
- package/dist/src/agent/sdk/runtime/output-pump.d.ts +20 -0
- package/dist/src/agent/sdk/runtime/output-pump.js +88 -0
- package/dist/src/agent/sdk/runtime/output-pump.js.map +1 -0
- package/dist/src/agent/sdk/runtime/process-group.d.ts +9 -0
- package/dist/src/agent/sdk/runtime/process-group.js +69 -0
- package/dist/src/agent/sdk/runtime/process-group.js.map +1 -0
- package/dist/src/agent/sdk/runtime/provider-supervisor-entrypoint.d.ts +1 -0
- package/dist/src/agent/sdk/runtime/provider-supervisor-entrypoint.js +3 -0
- package/dist/src/agent/sdk/runtime/provider-supervisor-entrypoint.js.map +1 -0
- package/dist/src/agent/sdk/runtime/provider-supervisor.d.ts +1 -0
- package/dist/src/agent/sdk/runtime/provider-supervisor.js +190 -0
- package/dist/src/agent/sdk/runtime/provider-supervisor.js.map +1 -0
- package/dist/src/agent/sdk/runtime/spawn-process.d.ts +7 -0
- package/dist/src/agent/sdk/runtime/spawn-process.js +16 -0
- package/dist/src/agent/sdk/runtime/spawn-process.js.map +1 -0
- package/dist/src/agent/sdk/runtime/spawn-supervised-process.d.ts +17 -0
- package/dist/src/agent/sdk/runtime/spawn-supervised-process.js +203 -0
- package/dist/src/agent/sdk/runtime/spawn-supervised-process.js.map +1 -0
- package/dist/src/agent/sdk/runtime/supervisor-protocol.d.ts +29 -0
- package/dist/src/agent/sdk/runtime/supervisor-protocol.js +90 -0
- package/dist/src/agent/sdk/runtime/supervisor-protocol.js.map +1 -0
- package/dist/src/agent/sdk/runtime/timeouts.d.ts +24 -0
- package/dist/src/agent/sdk/runtime/timeouts.js +65 -0
- package/dist/src/agent/sdk/runtime/timeouts.js.map +1 -0
- package/dist/src/agent/sdk/session-manager.d.ts +38 -0
- package/dist/src/agent/sdk/session-manager.js +557 -0
- package/dist/src/agent/sdk/session-manager.js.map +1 -0
- package/dist/src/agent/sdk/transport/json-stream-decoder.d.ts +6 -0
- package/dist/src/agent/sdk/transport/json-stream-decoder.js +29 -0
- package/dist/src/agent/sdk/transport/json-stream-decoder.js.map +1 -0
- package/dist/src/agent/sdk/transport/line-text-decoder.d.ts +6 -0
- package/dist/src/agent/sdk/transport/line-text-decoder.js +9 -0
- package/dist/src/agent/sdk/transport/line-text-decoder.js.map +1 -0
- package/dist/src/agent/sdk/transport/pty-contract.d.ts +12 -0
- package/dist/src/agent/sdk/transport/pty-contract.js +2 -0
- package/dist/src/agent/sdk/transport/pty-contract.js.map +1 -0
- package/dist/src/agent/sdk/types.d.ts +194 -0
- package/dist/src/agent/sdk/types.js +2 -0
- package/dist/src/agent/sdk/types.js.map +1 -0
- package/dist/src/agent/sdk/versioning/provider-version.d.ts +9 -0
- package/dist/src/agent/sdk/versioning/provider-version.js +41 -0
- package/dist/src/agent/sdk/versioning/provider-version.js.map +1 -0
- package/dist/src/cli.d.ts +7 -0
- package/dist/src/cli.js +56 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/commands/config/command.d.ts +2 -0
- package/dist/src/commands/config/command.js +150 -0
- package/dist/src/commands/config/command.js.map +1 -0
- package/dist/src/commands/connect/command.d.ts +4 -0
- package/dist/src/commands/connect/command.js +19 -0
- package/dist/src/commands/connect/command.js.map +1 -0
- package/dist/src/commands/connect/workflow.d.ts +92 -0
- package/dist/src/commands/connect/workflow.js +381 -0
- package/dist/src/commands/connect/workflow.js.map +1 -0
- package/dist/src/commands/devcontainer/command.d.ts +2 -0
- package/dist/src/commands/devcontainer/command.js +49 -0
- package/dist/src/commands/devcontainer/command.js.map +1 -0
- package/dist/src/commands/devcontainer/install.d.ts +46 -0
- package/dist/src/commands/devcontainer/install.js +107 -0
- package/dist/src/commands/devcontainer/install.js.map +1 -0
- package/dist/src/commands/init/config/claude-mcp.d.ts +27 -0
- package/dist/src/commands/init/config/claude-mcp.js +56 -0
- package/dist/src/commands/init/config/claude-mcp.js.map +1 -0
- package/dist/src/commands/init/config/codex-mcp.d.ts +12 -0
- package/dist/src/commands/init/config/codex-mcp.js +83 -0
- package/dist/src/commands/init/config/codex-mcp.js.map +1 -0
- package/dist/src/commands/init/config/opencode-mcp.d.ts +16 -0
- package/dist/src/commands/init/config/opencode-mcp.js +55 -0
- package/dist/src/commands/init/config/opencode-mcp.js.map +1 -0
- package/dist/src/commands/init/errors.d.ts +3 -0
- package/dist/src/commands/init/errors.js +7 -0
- package/dist/src/commands/init/errors.js.map +1 -0
- package/dist/src/commands/init/index.d.ts +9 -0
- package/dist/src/commands/init/index.js +10 -0
- package/dist/src/commands/init/index.js.map +1 -0
- package/dist/src/commands/init/io/file-copy.d.ts +18 -0
- package/dist/src/commands/init/io/file-copy.js +129 -0
- package/dist/src/commands/init/io/file-copy.js.map +1 -0
- package/dist/src/commands/init/marketplace.d.ts +8 -0
- package/dist/src/commands/init/marketplace.js +25 -0
- package/dist/src/commands/init/marketplace.js.map +1 -0
- package/dist/src/commands/init/mcp-service.d.ts +2 -0
- package/dist/src/commands/init/mcp-service.js +66 -0
- package/dist/src/commands/init/mcp-service.js.map +1 -0
- package/dist/src/commands/init/parsers.d.ts +4 -0
- package/dist/src/commands/init/parsers.js +40 -0
- package/dist/src/commands/init/parsers.js.map +1 -0
- package/dist/src/commands/init/prompts.d.ts +4 -0
- package/dist/src/commands/init/prompts.js +72 -0
- package/dist/src/commands/init/prompts.js.map +1 -0
- package/dist/src/commands/init/skill-service.d.ts +2 -0
- package/dist/src/commands/init/skill-service.js +36 -0
- package/dist/src/commands/init/skill-service.js.map +1 -0
- package/dist/src/commands/init/summary.d.ts +2 -0
- package/dist/src/commands/init/summary.js +22 -0
- package/dist/src/commands/init/summary.js.map +1 -0
- package/dist/src/commands/init/targets/claude.d.ts +4 -0
- package/dist/src/commands/init/targets/claude.js +178 -0
- package/dist/src/commands/init/targets/claude.js.map +1 -0
- package/dist/src/commands/init/targets/codex.d.ts +4 -0
- package/dist/src/commands/init/targets/codex.js +75 -0
- package/dist/src/commands/init/targets/codex.js.map +1 -0
- package/dist/src/commands/init/targets/driver.d.ts +28 -0
- package/dist/src/commands/init/targets/driver.js +2 -0
- package/dist/src/commands/init/targets/driver.js.map +1 -0
- package/dist/src/commands/init/targets/opencode.d.ts +4 -0
- package/dist/src/commands/init/targets/opencode.js +77 -0
- package/dist/src/commands/init/targets/opencode.js.map +1 -0
- package/dist/src/commands/init/targets/registry.d.ts +4 -0
- package/dist/src/commands/init/targets/registry.js +15 -0
- package/dist/src/commands/init/targets/registry.js.map +1 -0
- package/dist/src/commands/init/types.d.ts +30 -0
- package/dist/src/commands/init/types.js +7 -0
- package/dist/src/commands/init/types.js.map +1 -0
- package/dist/src/commands/init.d.ts +3 -0
- package/dist/src/commands/init.js +143 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/keys/command.d.ts +2 -0
- package/dist/src/commands/keys/command.js +154 -0
- package/dist/src/commands/keys/command.js.map +1 -0
- package/dist/src/commands/labels/create.d.ts +2 -0
- package/dist/src/commands/labels/create.js +31 -0
- package/dist/src/commands/labels/create.js.map +1 -0
- package/dist/src/commands/labels/delete.d.ts +2 -0
- package/dist/src/commands/labels/delete.js +51 -0
- package/dist/src/commands/labels/delete.js.map +1 -0
- package/dist/src/commands/labels/formatters.d.ts +4 -0
- package/dist/src/commands/labels/formatters.js +6 -0
- package/dist/src/commands/labels/formatters.js.map +1 -0
- package/dist/src/commands/labels/index.d.ts +2 -0
- package/dist/src/commands/labels/index.js +13 -0
- package/dist/src/commands/labels/index.js.map +1 -0
- package/dist/src/commands/labels/list.d.ts +2 -0
- package/dist/src/commands/labels/list.js +29 -0
- package/dist/src/commands/labels/list.js.map +1 -0
- package/dist/src/commands/labels/resolve.d.ts +9 -0
- package/dist/src/commands/labels/resolve.js +23 -0
- package/dist/src/commands/labels/resolve.js.map +1 -0
- package/dist/src/commands/labels/update.d.ts +2 -0
- package/dist/src/commands/labels/update.js +37 -0
- package/dist/src/commands/labels/update.js.map +1 -0
- package/dist/src/commands/lists/constants.d.ts +7 -0
- package/dist/src/commands/lists/constants.js +14 -0
- package/dist/src/commands/lists/constants.js.map +1 -0
- package/dist/src/commands/lists/create.d.ts +2 -0
- package/dist/src/commands/lists/create.js +45 -0
- package/dist/src/commands/lists/create.js.map +1 -0
- package/dist/src/commands/lists/index.d.ts +2 -0
- package/dist/src/commands/lists/index.js +10 -0
- package/dist/src/commands/lists/index.js.map +1 -0
- package/dist/src/commands/lists/list.d.ts +2 -0
- package/dist/src/commands/lists/list.js +66 -0
- package/dist/src/commands/lists/list.js.map +1 -0
- package/dist/src/commands/lists/resolve.d.ts +11 -0
- package/dist/src/commands/lists/resolve.js +24 -0
- package/dist/src/commands/lists/resolve.js.map +1 -0
- package/dist/src/commands/lists/update.d.ts +2 -0
- package/dist/src/commands/lists/update.js +61 -0
- package/dist/src/commands/lists/update.js.map +1 -0
- package/dist/src/commands/login/command.d.ts +8 -0
- package/dist/src/commands/login/command.js +20 -0
- package/dist/src/commands/login/command.js.map +1 -0
- package/dist/src/commands/orgs/index.d.ts +2 -0
- package/dist/src/commands/orgs/index.js +6 -0
- package/dist/src/commands/orgs/index.js.map +1 -0
- package/dist/src/commands/orgs/list.d.ts +2 -0
- package/dist/src/commands/orgs/list.js +29 -0
- package/dist/src/commands/orgs/list.js.map +1 -0
- package/dist/src/commands/paths/command.d.ts +2 -0
- package/dist/src/commands/paths/command.js +90 -0
- package/dist/src/commands/paths/command.js.map +1 -0
- package/dist/src/commands/profiles/index.d.ts +2 -0
- package/dist/src/commands/profiles/index.js +6 -0
- package/dist/src/commands/profiles/index.js.map +1 -0
- package/dist/src/commands/profiles/list.d.ts +2 -0
- package/dist/src/commands/profiles/list.js +50 -0
- package/dist/src/commands/profiles/list.js.map +1 -0
- package/dist/src/commands/project-agents/create.d.ts +2 -0
- package/dist/src/commands/project-agents/create.js +53 -0
- package/dist/src/commands/project-agents/create.js.map +1 -0
- package/dist/src/commands/project-agents/index.d.ts +2 -0
- package/dist/src/commands/project-agents/index.js +10 -0
- package/dist/src/commands/project-agents/index.js.map +1 -0
- package/dist/src/commands/project-agents/list.d.ts +2 -0
- package/dist/src/commands/project-agents/list.js +30 -0
- package/dist/src/commands/project-agents/list.js.map +1 -0
- package/dist/src/commands/project-agents/parsers.d.ts +16 -0
- package/dist/src/commands/project-agents/parsers.js +80 -0
- package/dist/src/commands/project-agents/parsers.js.map +1 -0
- package/dist/src/commands/project-agents/update.d.ts +2 -0
- package/dist/src/commands/project-agents/update.js +74 -0
- package/dist/src/commands/project-agents/update.js.map +1 -0
- package/dist/src/commands/projects/index.d.ts +2 -0
- package/dist/src/commands/projects/index.js +6 -0
- package/dist/src/commands/projects/index.js.map +1 -0
- package/dist/src/commands/projects/list.d.ts +2 -0
- package/dist/src/commands/projects/list.js +41 -0
- package/dist/src/commands/projects/list.js.map +1 -0
- package/dist/src/commands/prompts/create.d.ts +2 -0
- package/dist/src/commands/prompts/create.js +48 -0
- package/dist/src/commands/prompts/create.js.map +1 -0
- package/dist/src/commands/prompts/formatters.d.ts +4 -0
- package/dist/src/commands/prompts/formatters.js +7 -0
- package/dist/src/commands/prompts/formatters.js.map +1 -0
- package/dist/src/commands/prompts/index.d.ts +2 -0
- package/dist/src/commands/prompts/index.js +11 -0
- package/dist/src/commands/prompts/index.js.map +1 -0
- package/dist/src/commands/prompts/list.d.ts +2 -0
- package/dist/src/commands/prompts/list.js +34 -0
- package/dist/src/commands/prompts/list.js.map +1 -0
- package/dist/src/commands/prompts/parsers.d.ts +9 -0
- package/dist/src/commands/prompts/parsers.js +12 -0
- package/dist/src/commands/prompts/parsers.js.map +1 -0
- package/dist/src/commands/prompts/resolve.d.ts +17 -0
- package/dist/src/commands/prompts/resolve.js +43 -0
- package/dist/src/commands/prompts/resolve.js.map +1 -0
- package/dist/src/commands/prompts/update.d.ts +2 -0
- package/dist/src/commands/prompts/update.js +58 -0
- package/dist/src/commands/prompts/update.js.map +1 -0
- package/dist/src/commands/setup/command.d.ts +2 -0
- package/dist/src/commands/setup/command.js +15 -0
- package/dist/src/commands/setup/command.js.map +1 -0
- package/dist/src/commands/setup/prompts.d.ts +66 -0
- package/dist/src/commands/setup/prompts.js +199 -0
- package/dist/src/commands/setup/prompts.js.map +1 -0
- package/dist/src/commands/setup/workflow.d.ts +17 -0
- package/dist/src/commands/setup/workflow.js +141 -0
- package/dist/src/commands/setup/workflow.js.map +1 -0
- package/dist/src/commands/status/command.d.ts +2 -0
- package/dist/src/commands/status/command.js +83 -0
- package/dist/src/commands/status/command.js.map +1 -0
- package/dist/src/commands/task-types/index.d.ts +2 -0
- package/dist/src/commands/task-types/index.js +6 -0
- package/dist/src/commands/task-types/index.js.map +1 -0
- package/dist/src/commands/task-types/list.d.ts +2 -0
- package/dist/src/commands/task-types/list.js +32 -0
- package/dist/src/commands/task-types/list.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/add.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/comments/add.js +32 -0
- package/dist/src/commands/tasks/artifacts/comments/add.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/formatters.d.ts +7 -0
- package/dist/src/commands/tasks/artifacts/comments/formatters.js +32 -0
- package/dist/src/commands/tasks/artifacts/comments/formatters.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/index.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/comments/index.js +13 -0
- package/dist/src/commands/tasks/artifacts/comments/index.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/list.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/comments/list.js +24 -0
- package/dist/src/commands/tasks/artifacts/comments/list.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/parsers.d.ts +6 -0
- package/dist/src/commands/tasks/artifacts/comments/parsers.js +8 -0
- package/dist/src/commands/tasks/artifacts/comments/parsers.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/reply.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/comments/reply.js +23 -0
- package/dist/src/commands/tasks/artifacts/comments/reply.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/comments/resolve.d.ts +3 -0
- package/dist/src/commands/tasks/artifacts/comments/resolve.js +26 -0
- package/dist/src/commands/tasks/artifacts/comments/resolve.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/create.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/create.js +63 -0
- package/dist/src/commands/tasks/artifacts/create.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/delete.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/delete.js +27 -0
- package/dist/src/commands/tasks/artifacts/delete.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/get.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/get.js +54 -0
- package/dist/src/commands/tasks/artifacts/get.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/index.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/index.js +18 -0
- package/dist/src/commands/tasks/artifacts/index.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/list.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/list.js +31 -0
- package/dist/src/commands/tasks/artifacts/list.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/parsers.d.ts +13 -0
- package/dist/src/commands/tasks/artifacts/parsers.js +24 -0
- package/dist/src/commands/tasks/artifacts/parsers.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/replace.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/replace.js +62 -0
- package/dist/src/commands/tasks/artifacts/replace.js.map +1 -0
- package/dist/src/commands/tasks/artifacts/update.d.ts +2 -0
- package/dist/src/commands/tasks/artifacts/update.js +55 -0
- package/dist/src/commands/tasks/artifacts/update.js.map +1 -0
- package/dist/src/commands/tasks/attach.d.ts +2 -0
- package/dist/src/commands/tasks/attach.js +70 -0
- package/dist/src/commands/tasks/attach.js.map +1 -0
- package/dist/src/commands/tasks/attachments/delete.d.ts +2 -0
- package/dist/src/commands/tasks/attachments/delete.js +61 -0
- package/dist/src/commands/tasks/attachments/delete.js.map +1 -0
- package/dist/src/commands/tasks/attachments/download.d.ts +2 -0
- package/dist/src/commands/tasks/attachments/download.js +42 -0
- package/dist/src/commands/tasks/attachments/download.js.map +1 -0
- package/dist/src/commands/tasks/attachments/formatters.d.ts +5 -0
- package/dist/src/commands/tasks/attachments/formatters.js +18 -0
- package/dist/src/commands/tasks/attachments/formatters.js.map +1 -0
- package/dist/src/commands/tasks/attachments/index.d.ts +2 -0
- package/dist/src/commands/tasks/attachments/index.js +11 -0
- package/dist/src/commands/tasks/attachments/index.js.map +1 -0
- package/dist/src/commands/tasks/attachments/list.d.ts +2 -0
- package/dist/src/commands/tasks/attachments/list.js +36 -0
- package/dist/src/commands/tasks/attachments/list.js.map +1 -0
- package/dist/src/commands/tasks/attachments/resolve.d.ts +6 -0
- package/dist/src/commands/tasks/attachments/resolve.js +15 -0
- package/dist/src/commands/tasks/attachments/resolve.js.map +1 -0
- package/dist/src/commands/tasks/attachments/transfer.d.ts +11 -0
- package/dist/src/commands/tasks/attachments/transfer.js +71 -0
- package/dist/src/commands/tasks/attachments/transfer.js.map +1 -0
- package/dist/src/commands/tasks/comments/add.d.ts +2 -0
- package/dist/src/commands/tasks/comments/add.js +44 -0
- package/dist/src/commands/tasks/comments/add.js.map +1 -0
- package/dist/src/commands/tasks/comments/index.d.ts +2 -0
- package/dist/src/commands/tasks/comments/index.js +6 -0
- package/dist/src/commands/tasks/comments/index.js.map +1 -0
- package/dist/src/commands/tasks/create.d.ts +2 -0
- package/dist/src/commands/tasks/create.js +77 -0
- package/dist/src/commands/tasks/create.js.map +1 -0
- package/dist/src/commands/tasks/delete.d.ts +2 -0
- package/dist/src/commands/tasks/delete.js +31 -0
- package/dist/src/commands/tasks/delete.js.map +1 -0
- package/dist/src/commands/tasks/formatters.d.ts +25 -0
- package/dist/src/commands/tasks/formatters.js +40 -0
- package/dist/src/commands/tasks/formatters.js.map +1 -0
- package/dist/src/commands/tasks/get.d.ts +2 -0
- package/dist/src/commands/tasks/get.js +94 -0
- package/dist/src/commands/tasks/get.js.map +1 -0
- package/dist/src/commands/tasks/hydrate.d.ts +20 -0
- package/dist/src/commands/tasks/hydrate.js +47 -0
- package/dist/src/commands/tasks/hydrate.js.map +1 -0
- package/dist/src/commands/tasks/index.d.ts +2 -0
- package/dist/src/commands/tasks/index.js +33 -0
- package/dist/src/commands/tasks/index.js.map +1 -0
- package/dist/src/commands/tasks/links.d.ts +4 -0
- package/dist/src/commands/tasks/links.js +121 -0
- package/dist/src/commands/tasks/links.js.map +1 -0
- package/dist/src/commands/tasks/list.d.ts +2 -0
- package/dist/src/commands/tasks/list.js +47 -0
- package/dist/src/commands/tasks/list.js.map +1 -0
- package/dist/src/commands/tasks/move-to-list.d.ts +2 -0
- package/dist/src/commands/tasks/move-to-list.js +41 -0
- package/dist/src/commands/tasks/move-to-list.js.map +1 -0
- package/dist/src/commands/tasks/move.d.ts +2 -0
- package/dist/src/commands/tasks/move.js +61 -0
- package/dist/src/commands/tasks/move.js.map +1 -0
- package/dist/src/commands/tasks/parsers.d.ts +22 -0
- package/dist/src/commands/tasks/parsers.js +118 -0
- package/dist/src/commands/tasks/parsers.js.map +1 -0
- package/dist/src/commands/tasks/refs.d.ts +2 -0
- package/dist/src/commands/tasks/refs.js +89 -0
- package/dist/src/commands/tasks/refs.js.map +1 -0
- package/dist/src/commands/tasks/resolve.d.ts +20 -0
- package/dist/src/commands/tasks/resolve.js +57 -0
- package/dist/src/commands/tasks/resolve.js.map +1 -0
- package/dist/src/commands/tasks/search.d.ts +2 -0
- package/dist/src/commands/tasks/search.js +110 -0
- package/dist/src/commands/tasks/search.js.map +1 -0
- package/dist/src/commands/tasks/update.d.ts +2 -0
- package/dist/src/commands/tasks/update.js +101 -0
- package/dist/src/commands/tasks/update.js.map +1 -0
- package/dist/src/commands/test-helpers.d.ts +2 -0
- package/dist/src/commands/test-helpers.js +6 -0
- package/dist/src/commands/test-helpers.js.map +1 -0
- package/dist/src/commands/threads/create.d.ts +2 -0
- package/dist/src/commands/threads/create.js +99 -0
- package/dist/src/commands/threads/create.js.map +1 -0
- package/dist/src/commands/threads/formatters.d.ts +10 -0
- package/dist/src/commands/threads/formatters.js +17 -0
- package/dist/src/commands/threads/formatters.js.map +1 -0
- package/dist/src/commands/threads/get.d.ts +2 -0
- package/dist/src/commands/threads/get.js +53 -0
- package/dist/src/commands/threads/get.js.map +1 -0
- package/dist/src/commands/threads/index.d.ts +2 -0
- package/dist/src/commands/threads/index.js +14 -0
- package/dist/src/commands/threads/index.js.map +1 -0
- package/dist/src/commands/threads/list.d.ts +2 -0
- package/dist/src/commands/threads/list.js +69 -0
- package/dist/src/commands/threads/list.js.map +1 -0
- package/dist/src/commands/threads/messages.d.ts +2 -0
- package/dist/src/commands/threads/messages.js +59 -0
- package/dist/src/commands/threads/messages.js.map +1 -0
- package/dist/src/commands/threads/parsers.d.ts +5 -0
- package/dist/src/commands/threads/parsers.js +19 -0
- package/dist/src/commands/threads/parsers.js.map +1 -0
- package/dist/src/commands/threads/send.d.ts +2 -0
- package/dist/src/commands/threads/send.js +49 -0
- package/dist/src/commands/threads/send.js.map +1 -0
- package/dist/src/commands/threads/spawn-target.d.ts +29 -0
- package/dist/src/commands/threads/spawn-target.js +62 -0
- package/dist/src/commands/threads/spawn-target.js.map +1 -0
- package/dist/src/convex/_generated/ai/ai-files.state.json +6 -0
- package/dist/src/convex/_generated/ai/guidelines.md +371 -0
- package/dist/src/convex/_generated/api.d.ts +598 -0
- package/dist/src/convex/_generated/api.js +23 -0
- package/dist/src/convex/_generated/dataModel.d.ts +60 -0
- package/dist/src/convex/_generated/server.d.ts +143 -0
- package/dist/src/convex/_generated/server.js +93 -0
- package/dist/src/lib/argv.d.ts +1 -0
- package/dist/src/lib/argv.js +7 -0
- package/dist/src/lib/argv.js.map +1 -0
- package/dist/src/lib/browser-login.d.ts +43 -0
- package/dist/src/lib/browser-login.js +216 -0
- package/dist/src/lib/browser-login.js.map +1 -0
- package/dist/src/lib/config/convex-client.d.ts +41 -0
- package/dist/src/lib/config/convex-client.js +53 -0
- package/dist/src/lib/config/convex-client.js.map +1 -0
- package/dist/src/lib/config/index.d.ts +7 -0
- package/dist/src/lib/config/index.js +13 -0
- package/dist/src/lib/config/index.js.map +1 -0
- package/dist/src/lib/config/profile.d.ts +40 -0
- package/dist/src/lib/config/profile.js +155 -0
- package/dist/src/lib/config/profile.js.map +1 -0
- package/dist/src/lib/config/provider-keys.d.ts +47 -0
- package/dist/src/lib/config/provider-keys.js +97 -0
- package/dist/src/lib/config/provider-keys.js.map +1 -0
- package/dist/src/lib/config/toml.d.ts +78 -0
- package/dist/src/lib/config/toml.js +228 -0
- package/dist/src/lib/config/toml.js.map +1 -0
- package/dist/src/lib/config/types.d.ts +98 -0
- package/dist/src/lib/config/types.js +65 -0
- package/dist/src/lib/config/types.js.map +1 -0
- package/dist/src/lib/config/validate.d.ts +30 -0
- package/dist/src/lib/config/validate.js +66 -0
- package/dist/src/lib/config/validate.js.map +1 -0
- package/dist/src/lib/connect-events.d.ts +42 -0
- package/dist/src/lib/connect-events.js +65 -0
- package/dist/src/lib/connect-events.js.map +1 -0
- package/dist/src/lib/constants.d.ts +20 -0
- package/dist/src/lib/constants.js +27 -0
- package/dist/src/lib/constants.js.map +1 -0
- package/dist/src/lib/content-type.d.ts +1 -0
- package/dist/src/lib/content-type.js +27 -0
- package/dist/src/lib/content-type.js.map +1 -0
- package/dist/src/lib/convex-error.d.ts +12 -0
- package/dist/src/lib/convex-error.js +33 -0
- package/dist/src/lib/convex-error.js.map +1 -0
- package/dist/src/lib/git/checkpoint.d.ts +74 -0
- package/dist/src/lib/git/checkpoint.js +210 -0
- package/dist/src/lib/git/checkpoint.js.map +1 -0
- package/dist/src/lib/git/exec.d.ts +23 -0
- package/dist/src/lib/git/exec.js +46 -0
- package/dist/src/lib/git/exec.js.map +1 -0
- package/dist/src/lib/git/file-index.d.ts +8 -0
- package/dist/src/lib/git/file-index.js +125 -0
- package/dist/src/lib/git/file-index.js.map +1 -0
- package/dist/src/lib/git/index.d.ts +5 -0
- package/dist/src/lib/git/index.js +6 -0
- package/dist/src/lib/git/index.js.map +1 -0
- package/dist/src/lib/git/repo.d.ts +32 -0
- package/dist/src/lib/git/repo.js +95 -0
- package/dist/src/lib/git/repo.js.map +1 -0
- package/dist/src/lib/git/worktrees.d.ts +49 -0
- package/dist/src/lib/git/worktrees.js +97 -0
- package/dist/src/lib/git/worktrees.js.map +1 -0
- package/dist/src/lib/global-options.d.ts +3 -0
- package/dist/src/lib/global-options.js +8 -0
- package/dist/src/lib/global-options.js.map +1 -0
- package/dist/src/lib/id.d.ts +3 -0
- package/dist/src/lib/id.js +14 -0
- package/dist/src/lib/id.js.map +1 -0
- package/dist/src/lib/one-shot-command.d.ts +7 -0
- package/dist/src/lib/one-shot-command.js +30 -0
- package/dist/src/lib/one-shot-command.js.map +1 -0
- package/dist/src/lib/one-shot-config.d.ts +3 -0
- package/dist/src/lib/one-shot-config.js +7 -0
- package/dist/src/lib/one-shot-config.js.map +1 -0
- package/dist/src/lib/output.d.ts +10 -0
- package/dist/src/lib/output.js +27 -0
- package/dist/src/lib/output.js.map +1 -0
- package/dist/src/lib/pagination.d.ts +16 -0
- package/dist/src/lib/pagination.js +45 -0
- package/dist/src/lib/pagination.js.map +1 -0
- package/dist/src/lib/parsers.d.ts +2 -0
- package/dist/src/lib/parsers.js +21 -0
- package/dist/src/lib/parsers.js.map +1 -0
- package/dist/src/lib/project-resolution.d.ts +41 -0
- package/dist/src/lib/project-resolution.js +84 -0
- package/dist/src/lib/project-resolution.js.map +1 -0
- package/dist/src/lib/pull-requests.d.ts +47 -0
- package/dist/src/lib/pull-requests.js +305 -0
- package/dist/src/lib/pull-requests.js.map +1 -0
- package/dist/src/lib/skill-install-guidance.d.ts +5 -0
- package/dist/src/lib/skill-install-guidance.js +41 -0
- package/dist/src/lib/skill-install-guidance.js.map +1 -0
- package/dist/src/lib/text-input.d.ts +18 -0
- package/dist/src/lib/text-input.js +36 -0
- package/dist/src/lib/text-input.js.map +1 -0
- package/dist/src/lib/thread-attachments.d.ts +21 -0
- package/dist/src/lib/thread-attachments.js +104 -0
- package/dist/src/lib/thread-attachments.js.map +1 -0
- package/dist/src/lib/url.d.ts +13 -0
- package/dist/src/lib/url.js +25 -0
- package/dist/src/lib/url.js.map +1 -0
- package/dist/src/lib/version.d.ts +2 -0
- package/dist/src/lib/version.js +33 -0
- package/dist/src/lib/version.js.map +1 -0
- package/dist/templates/devcontainer/Dockerfile +95 -0
- package/dist/templates/devcontainer/README.md +129 -0
- package/dist/templates/devcontainer/devcontainer.json +92 -0
- package/dist/templates/devcontainer/init-firewall.sh +271 -0
- package/package.json +79 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import { api } from "../../convex/_generated/api.js";
|
|
4
|
+
import { addGlobalOptions } from "../../cli.js";
|
|
5
|
+
import { parseId } from "../../lib/id.js";
|
|
6
|
+
import { runOneShotCommand } from "../../lib/one-shot-command.js";
|
|
7
|
+
import { addOutputOptions, printOutput, resolveOutputMode, } from "../../lib/output.js";
|
|
8
|
+
import { parseOptionalNonEmptyString } from "../../lib/parsers.js";
|
|
9
|
+
import { validateNoConflict } from "../tasks/parsers.js";
|
|
10
|
+
// No scope flags: the stored prompt already carries its scope, and the backend
|
|
11
|
+
// derives permissions from it.
|
|
12
|
+
export const updatePromptCommand = addGlobalOptions(addOutputOptions(new Command("update")
|
|
13
|
+
.description("Edit a prompt")
|
|
14
|
+
.argument("<promptId>", "Prompt ID")
|
|
15
|
+
.option("--key <key>", "New prompt key without the leading slash")
|
|
16
|
+
.option("--content <content>", "New prompt content")
|
|
17
|
+
.option("--description <description>", "New short description")
|
|
18
|
+
.option("--clear-description", "Clear the description")
|
|
19
|
+
.option("--category <category>", "New category label")
|
|
20
|
+
.option("--clear-category", "Clear the category")
|
|
21
|
+
.option("--auto-expand", "Expand the prompt into the composer on selection")
|
|
22
|
+
.option("--no-auto-expand", "Stop expanding the prompt into the composer")
|
|
23
|
+
.option("--auto-submit", "Submit the message when the prompt is selected")
|
|
24
|
+
.option("--no-auto-submit", "Stop submitting the message on selection"))).action(async (prompt, options, cmd) => {
|
|
25
|
+
await runOneShotCommand(cmd, async ({ client }) => {
|
|
26
|
+
const outputMode = resolveOutputMode(options);
|
|
27
|
+
validateNoConflict(options.clearDescription === true, options.description !== undefined, "Cannot use --description and --clear-description together");
|
|
28
|
+
validateNoConflict(options.clearCategory === true, options.category !== undefined, "Cannot use --category and --clear-category together");
|
|
29
|
+
const key = parseOptionalNonEmptyString(options.key, "Key");
|
|
30
|
+
const content = parseOptionalNonEmptyString(options.content, "Content");
|
|
31
|
+
const description = parseOptionalNonEmptyString(options.description, "Description");
|
|
32
|
+
const category = parseOptionalNonEmptyString(options.category, "Category");
|
|
33
|
+
const updates = {
|
|
34
|
+
...(key !== undefined && { key }),
|
|
35
|
+
...(content !== undefined && { content }),
|
|
36
|
+
...(description !== undefined && { description }),
|
|
37
|
+
...(options.clearDescription === true && { description: null }),
|
|
38
|
+
...(category !== undefined && { category }),
|
|
39
|
+
...(options.clearCategory === true && { category: null }),
|
|
40
|
+
...(options.autoExpand !== undefined && { autoExpand: options.autoExpand }),
|
|
41
|
+
...(options.autoSubmit !== undefined && { autoSubmit: options.autoSubmit }),
|
|
42
|
+
};
|
|
43
|
+
if (Object.keys(updates).length === 0) {
|
|
44
|
+
throw new Error("No updates provided. Pass at least one field to change.");
|
|
45
|
+
}
|
|
46
|
+
const promptId = parseId(prompt, "promptId");
|
|
47
|
+
await client.mutation(api.slashCommands.core.update, {
|
|
48
|
+
slashCommandId: promptId,
|
|
49
|
+
...updates,
|
|
50
|
+
});
|
|
51
|
+
printOutput(outputMode, { promptId }, (value) => {
|
|
52
|
+
console.log(chalk.green("✓") + " Prompt updated");
|
|
53
|
+
console.log(` ID: ${value.promptId}`);
|
|
54
|
+
console.log();
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/prompts/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAazD,+EAA+E;AAC/E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CACjD,gBAAgB,CACd,IAAI,OAAO,CAAC,QAAQ,CAAC;KAClB,WAAW,CAAC,eAAe,CAAC;KAC5B,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC;KACnC,MAAM,CAAC,aAAa,EAAE,0CAA0C,CAAC;KACjE,MAAM,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;KACnD,MAAM,CAAC,6BAA6B,EAAE,uBAAuB,CAAC;KAC9D,MAAM,CAAC,qBAAqB,EAAE,uBAAuB,CAAC;KACtD,MAAM,CAAC,uBAAuB,EAAE,oBAAoB,CAAC;KACrD,MAAM,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;KAChD,MAAM,CAA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setupCommand = new Command("setup")
|
|
4
|
+
.description("Interactive setup wizard")
|
|
5
|
+
.option("--url <url>", "Prefill Convex URL")
|
|
6
|
+
.option("--api-key <key>", "Prefill API key")
|
|
7
|
+
.option("--profile <name>", "Prefill profile name")
|
|
8
|
+
.option("--profile-key <key>", "Prefill profile key (for config file)")
|
|
9
|
+
.option("--project <id>", "Prefill project ID")
|
|
10
|
+
.option("--path <path>", "Workspace folder path (defaults to current directory)")
|
|
11
|
+
.option("-f, --force", "Overwrite existing profile key")
|
|
12
|
+
.action(async (options) => {
|
|
13
|
+
await runSetup(options);
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../src/commands/setup/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAYzC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;KAC7C,WAAW,CAAC,0BAA0B,CAAC;KACvC,MAAM,CAAC,aAAa,EAAE,oBAAoB,CAAC;KAC3C,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;KAC5C,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC;KAClD,MAAM,CAAC,qBAAqB,EAAE,uCAAuC,CAAC;KACtE,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;KAC9C,MAAM,CAAC,eAAe,EAAE,uDAAuD,CAAC;KAChF,MAAM,CAAC,aAAa,EAAE,gCAAgC,CAAC;KACvD,MAAM,CAAC,KAAK,EAAE,OAAqB,EAAE,EAAE;IACtC,MAAM,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Profile } from "../../lib/config/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Prompt for Convex URL with validation
|
|
4
|
+
*/
|
|
5
|
+
export declare function promptUrl(prefill?: string): Promise<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Prompt for the authentication method. Browser login is the interactive
|
|
8
|
+
* default; pasting a key stays available as the manual/CI fallback.
|
|
9
|
+
*/
|
|
10
|
+
export declare function promptAuthMethod(): Promise<"browser" | "paste">;
|
|
11
|
+
/**
|
|
12
|
+
* Prompt for API key with masked input and validation
|
|
13
|
+
*/
|
|
14
|
+
export declare function promptApiKey(): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Prompt for profile name with validation
|
|
17
|
+
* Profile names are for display - allow spaces and most characters
|
|
18
|
+
*/
|
|
19
|
+
export declare function promptProfileName(prefill?: string): Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Project type for selection prompt
|
|
22
|
+
*/
|
|
23
|
+
export interface ProjectChoice {
|
|
24
|
+
_id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
alias: string;
|
|
27
|
+
organizationName: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Prompt to select a project from a list, grouped by organization
|
|
31
|
+
*/
|
|
32
|
+
export declare function promptProjectSelect(projects: ProjectChoice[]): Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Profile choice for selection
|
|
35
|
+
*/
|
|
36
|
+
export interface ProfileChoice {
|
|
37
|
+
key: string;
|
|
38
|
+
profile: Profile;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Result of the three-way "unmatched folder" prompt.
|
|
42
|
+
* - create: run setup wizard
|
|
43
|
+
* - add-folder: add CWD to the chosen profile's paths, then connect
|
|
44
|
+
* - connect-once: connect using the chosen profile without saving the folder
|
|
45
|
+
*/
|
|
46
|
+
export type UnmatchedFolderResult = {
|
|
47
|
+
action: "create";
|
|
48
|
+
} | {
|
|
49
|
+
action: "add-folder";
|
|
50
|
+
key: string;
|
|
51
|
+
} | {
|
|
52
|
+
action: "connect-once";
|
|
53
|
+
key: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Prompt when CWD doesn't match any profile.
|
|
57
|
+
* Three-way choice: create new profile / add folder to existing / connect once.
|
|
58
|
+
*/
|
|
59
|
+
export declare function promptUnmatchedFolder(profiles: ProfileChoice[]): Promise<UnmatchedFolderResult>;
|
|
60
|
+
/**
|
|
61
|
+
* Prompt for profile key (slug for config file)
|
|
62
|
+
*/
|
|
63
|
+
export declare function promptProfileKey(prefill?: string): Promise<string>;
|
|
64
|
+
export declare function resolveWorkspacePath(value: string, defaultPath?: string): string;
|
|
65
|
+
export declare function validateWorkspaceDirectory(value: string): true | string;
|
|
66
|
+
export declare function promptWorkspacePath(defaultPath: string): Promise<string>;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { input, password, select } from "@inquirer/prompts";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import * as fs from "node:fs";
|
|
4
|
+
import * as path from "node:path";
|
|
5
|
+
import { API_KEY_PREFIX, ENV_URL } from "../../lib/constants.js";
|
|
6
|
+
/**
|
|
7
|
+
* Prompt for Convex URL with validation
|
|
8
|
+
*/
|
|
9
|
+
export async function promptUrl(prefill) {
|
|
10
|
+
return input({
|
|
11
|
+
message: "Convex URL:",
|
|
12
|
+
default: prefill || process.env[ENV_URL] || undefined,
|
|
13
|
+
validate: (value) => {
|
|
14
|
+
const trimmed = value.trim();
|
|
15
|
+
if (!trimmed) {
|
|
16
|
+
return "Convex URL is required (e.g. https://your-deployment.convex.cloud)";
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
const url = new URL(trimmed);
|
|
20
|
+
return url.protocol === "https:" || "URL must use HTTPS";
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return "Invalid URL format";
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Prompt for the authentication method. Browser login is the interactive
|
|
30
|
+
* default; pasting a key stays available as the manual/CI fallback.
|
|
31
|
+
*/
|
|
32
|
+
export async function promptAuthMethod() {
|
|
33
|
+
return select({
|
|
34
|
+
message: "How do you want to authenticate?",
|
|
35
|
+
choices: [
|
|
36
|
+
{ name: "Log in with browser (recommended)", value: "browser" },
|
|
37
|
+
{ name: "Paste an API key", value: "paste" },
|
|
38
|
+
],
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Prompt for API key with masked input and validation
|
|
43
|
+
*/
|
|
44
|
+
export async function promptApiKey() {
|
|
45
|
+
return password({
|
|
46
|
+
message: "API Key:",
|
|
47
|
+
mask: "*",
|
|
48
|
+
validate: (value) => {
|
|
49
|
+
if (!value.startsWith(API_KEY_PREFIX)) {
|
|
50
|
+
return `API key must start with '${API_KEY_PREFIX}'`;
|
|
51
|
+
}
|
|
52
|
+
return value.length >= 20 || "API key seems too short";
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Prompt for profile name with validation
|
|
58
|
+
* Profile names are for display - allow spaces and most characters
|
|
59
|
+
*/
|
|
60
|
+
export async function promptProfileName(prefill) {
|
|
61
|
+
return input({
|
|
62
|
+
message: "Profile name:",
|
|
63
|
+
default: prefill || "default",
|
|
64
|
+
validate: (value) => {
|
|
65
|
+
const trimmed = value.trim();
|
|
66
|
+
if (trimmed.length < 1)
|
|
67
|
+
return "Name is required";
|
|
68
|
+
if (trimmed.length > 50)
|
|
69
|
+
return "Name must be 50 characters or less";
|
|
70
|
+
return true;
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Prompt to select a project from a list, grouped by organization
|
|
76
|
+
*/
|
|
77
|
+
export async function promptProjectSelect(projects) {
|
|
78
|
+
// Group by organization for display
|
|
79
|
+
const byOrg = new Map();
|
|
80
|
+
for (const p of projects) {
|
|
81
|
+
if (!byOrg.has(p.organizationName))
|
|
82
|
+
byOrg.set(p.organizationName, []);
|
|
83
|
+
byOrg.get(p.organizationName).push(p);
|
|
84
|
+
}
|
|
85
|
+
const choices = [];
|
|
86
|
+
for (const [orgName, orgProjects] of byOrg) {
|
|
87
|
+
choices.push({
|
|
88
|
+
name: chalk.bold.dim(`── ${orgName} ──`),
|
|
89
|
+
value: "",
|
|
90
|
+
disabled: " ",
|
|
91
|
+
});
|
|
92
|
+
for (const p of orgProjects) {
|
|
93
|
+
// Format: "Name (ALIAS), proj_xxx"
|
|
94
|
+
choices.push({
|
|
95
|
+
name: `${p.name} ${chalk.dim(`(${p.alias})`)}, ${chalk.dim(p._id)}`,
|
|
96
|
+
value: p._id,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return select({ message: "Select a project:", choices });
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Prompt when CWD doesn't match any profile.
|
|
104
|
+
* Three-way choice: create new profile / add folder to existing / connect once.
|
|
105
|
+
*/
|
|
106
|
+
export async function promptUnmatchedFolder(profiles) {
|
|
107
|
+
const choices = [];
|
|
108
|
+
// Option 1: Create new profile
|
|
109
|
+
choices.push({
|
|
110
|
+
name: chalk.cyan("+ Create new profile"),
|
|
111
|
+
value: { action: "create" },
|
|
112
|
+
});
|
|
113
|
+
// Option 2: Add folder to existing profile
|
|
114
|
+
if (profiles.length > 0) {
|
|
115
|
+
choices.push({
|
|
116
|
+
name: chalk.dim("─ Add folder to existing profile ─"),
|
|
117
|
+
value: { action: "add-folder", key: "" },
|
|
118
|
+
disabled: " ",
|
|
119
|
+
});
|
|
120
|
+
for (const { key, profile } of profiles) {
|
|
121
|
+
const shortUrl = profile.url.replace("https://", "").replace(".convex.cloud", "");
|
|
122
|
+
choices.push({
|
|
123
|
+
name: ` ${profile.name} ${chalk.dim(`(${key})`)} · ${chalk.dim(shortUrl)}`,
|
|
124
|
+
value: { action: "add-folder", key },
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// Option 3: Connect once without saving
|
|
129
|
+
if (profiles.length > 0) {
|
|
130
|
+
choices.push({
|
|
131
|
+
name: chalk.dim("─ Connect once (don't save) ─"),
|
|
132
|
+
value: { action: "connect-once", key: "" },
|
|
133
|
+
disabled: " ",
|
|
134
|
+
});
|
|
135
|
+
for (const { key, profile } of profiles) {
|
|
136
|
+
const shortUrl = profile.url.replace("https://", "").replace(".convex.cloud", "");
|
|
137
|
+
choices.push({
|
|
138
|
+
name: ` ${profile.name} ${chalk.dim(`(${key})`)} · ${chalk.dim(shortUrl)}`,
|
|
139
|
+
value: { action: "connect-once", key },
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return select({
|
|
144
|
+
message: "No profile matches this folder. What would you like to do?",
|
|
145
|
+
choices,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Convert a string to a valid profile key (slug)
|
|
150
|
+
* - Lowercase
|
|
151
|
+
* - Replace spaces/underscores with hyphens
|
|
152
|
+
* - Remove invalid characters
|
|
153
|
+
* - Ensure starts with letter
|
|
154
|
+
*/
|
|
155
|
+
function toProfileKey(name) {
|
|
156
|
+
return name
|
|
157
|
+
.toLowerCase()
|
|
158
|
+
.replace(/[\s_]+/g, "-") // spaces/underscores → hyphens
|
|
159
|
+
.replace(/[^a-z0-9-]/g, "") // remove invalid chars
|
|
160
|
+
.replace(/^[^a-z]+/, "") // ensure starts with letter
|
|
161
|
+
.replace(/-+/g, "-") // collapse multiple hyphens
|
|
162
|
+
.replace(/-$/, ""); // remove trailing hyphen
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Prompt for profile key (slug for config file)
|
|
166
|
+
*/
|
|
167
|
+
export async function promptProfileKey(prefill) {
|
|
168
|
+
const defaultKey = prefill ? toProfileKey(prefill) : undefined;
|
|
169
|
+
return input({
|
|
170
|
+
message: "Profile key (for config file):",
|
|
171
|
+
default: defaultKey,
|
|
172
|
+
validate: (value) => /^[a-z][a-z0-9_-]*$/.test(value) ||
|
|
173
|
+
"Must be lowercase, start with letter, only letters/numbers/hyphens/underscores",
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export function resolveWorkspacePath(value, defaultPath = process.cwd()) {
|
|
177
|
+
const rawPath = value.trim() || defaultPath;
|
|
178
|
+
return path.resolve(rawPath);
|
|
179
|
+
}
|
|
180
|
+
export function validateWorkspaceDirectory(value) {
|
|
181
|
+
const resolvedPath = resolveWorkspacePath(value);
|
|
182
|
+
try {
|
|
183
|
+
const stats = fs.statSync(resolvedPath);
|
|
184
|
+
return stats.isDirectory() || "Workspace path must be a directory";
|
|
185
|
+
}
|
|
186
|
+
catch {
|
|
187
|
+
return "Workspace path must exist";
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export async function promptWorkspacePath(defaultPath) {
|
|
191
|
+
const resolvedDefaultPath = path.resolve(defaultPath);
|
|
192
|
+
const value = await input({
|
|
193
|
+
message: `Press Enter to use ${resolvedDefaultPath}, or type another path:`,
|
|
194
|
+
default: resolvedDefaultPath,
|
|
195
|
+
validate: validateWorkspaceDirectory,
|
|
196
|
+
});
|
|
197
|
+
return resolveWorkspacePath(value, resolvedDefaultPath);
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../../src/commands/setup/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU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mB,yBAAyB;QAC3E,OAAO,EAAE,mBAAmB;QAC5B,QAAQ,EAAE,0BAA0B;KACrC,CAAC,CAAC;IAEH,OAAO,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface SetupOptions {
|
|
2
|
+
url?: string;
|
|
3
|
+
apiKey?: string;
|
|
4
|
+
profile?: string;
|
|
5
|
+
project?: string;
|
|
6
|
+
profileKey?: string;
|
|
7
|
+
path?: string;
|
|
8
|
+
force?: boolean;
|
|
9
|
+
/** Skip the method prompt (used by `convoy login` to force browser auth). */
|
|
10
|
+
authMethod?: "browser" | "paste";
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Run the setup wizard (reusable function)
|
|
14
|
+
* Guides user through: URL → API key → validate → project → profile name/key → save → connect
|
|
15
|
+
*/
|
|
16
|
+
export declare function runSetup(options?: SetupOptions): Promise<void>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import chalk from "chalk";
|
|
2
|
+
import ora from "ora";
|
|
3
|
+
import * as path from "node:path";
|
|
4
|
+
import { api } from "../../convex/_generated/api.js";
|
|
5
|
+
import { promptUrl, promptApiKey, promptAuthMethod, promptProfileName, promptProjectSelect, promptProfileKey, promptWorkspacePath, resolveWorkspacePath, validateWorkspaceDirectory, } from "./prompts.js";
|
|
6
|
+
import { LoginStartError, runBrowserLogin } from "../../lib/browser-login.js";
|
|
7
|
+
import { normalizeConvexUrl } from "../../lib/url.js";
|
|
8
|
+
import { setProfileInConfig, createConvexClient, getConfigPath, getProfileByKey, } from "../../lib/config/index.js";
|
|
9
|
+
import { runConnect } from "../connect/workflow.js";
|
|
10
|
+
const PROFILE_KEY_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
11
|
+
function isFullyNonInteractiveSetup(options) {
|
|
12
|
+
return Boolean(options.url &&
|
|
13
|
+
options.apiKey &&
|
|
14
|
+
options.project &&
|
|
15
|
+
options.profileKey);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Run the setup wizard (reusable function)
|
|
19
|
+
* Guides user through: URL → API key → validate → project → profile name/key → save → connect
|
|
20
|
+
*/
|
|
21
|
+
export async function runSetup(options = {}) {
|
|
22
|
+
console.log(chalk.bold("\nOpenSana Setup\n"));
|
|
23
|
+
const isNonInteractive = isFullyNonInteractiveSetup(options);
|
|
24
|
+
const defaultRepoPath = process.cwd();
|
|
25
|
+
// === CREDENTIALS SETUP ===
|
|
26
|
+
// Step 1: Get URL
|
|
27
|
+
let url = normalizeConvexUrl(options.url || (await promptUrl()));
|
|
28
|
+
// Step 2: Get API key — browser login is the interactive default;
|
|
29
|
+
// pasting a key remains available (and is the only non-interactive path).
|
|
30
|
+
let apiKey = options.apiKey;
|
|
31
|
+
if (!apiKey) {
|
|
32
|
+
const authMethod = options.authMethod ?? (await promptAuthMethod());
|
|
33
|
+
if (authMethod === "browser") {
|
|
34
|
+
// An unreachable/wrong URL shouldn't kill the wizard — re-prompt.
|
|
35
|
+
for (;;) {
|
|
36
|
+
try {
|
|
37
|
+
apiKey = (await runBrowserLogin(url)).apiKey;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
if (!(error instanceof LoginStartError))
|
|
42
|
+
throw error;
|
|
43
|
+
console.error(chalk.red(`\nError: ${error.message}`));
|
|
44
|
+
console.log(chalk.dim("Could not reach this deployment. Check the Convex URL (e.g. https://your-deployment.convex.cloud) and try again.\n"));
|
|
45
|
+
url = normalizeConvexUrl(await promptUrl(url));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
apiKey = await promptApiKey();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Step 3: Validate credentials by fetching projects
|
|
54
|
+
const spinner = ora("Validating credentials...").start();
|
|
55
|
+
let projects;
|
|
56
|
+
try {
|
|
57
|
+
const client = createConvexClient({ url, apiKey });
|
|
58
|
+
projects = await client.query(api.projects.core.listAccessible, {});
|
|
59
|
+
await client.close();
|
|
60
|
+
spinner.succeed("Credentials validated");
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
spinner.fail("Failed to validate credentials");
|
|
64
|
+
console.error(chalk.red(`\nError: ${error instanceof Error ? error.message : String(error)}`));
|
|
65
|
+
console.log(chalk.dim("\nPlease check your URL and API key and try again."));
|
|
66
|
+
process.exit(1);
|
|
67
|
+
}
|
|
68
|
+
// === PROJECT SELECTION ===
|
|
69
|
+
// Step 4: Select project
|
|
70
|
+
if (projects.length === 0) {
|
|
71
|
+
console.log(chalk.yellow("\nNo projects found. Create one in the web app first."));
|
|
72
|
+
process.exit(0);
|
|
73
|
+
}
|
|
74
|
+
console.log();
|
|
75
|
+
const projectId = options.project || (await promptProjectSelect(projects));
|
|
76
|
+
const selectedProject = projects.find((p) => p._id === projectId);
|
|
77
|
+
if (isNonInteractive && !selectedProject) {
|
|
78
|
+
console.error(chalk.red(`\nError: Project "${projectId}" was not found in accessible projects.`));
|
|
79
|
+
process.exit(1);
|
|
80
|
+
}
|
|
81
|
+
// === PROFILE SETUP ===
|
|
82
|
+
// Step 5: Get profile name (display name)
|
|
83
|
+
console.log();
|
|
84
|
+
const defaultName = selectedProject?.name || path.basename(defaultRepoPath);
|
|
85
|
+
const profileName = options.profile ||
|
|
86
|
+
(isNonInteractive
|
|
87
|
+
? defaultName
|
|
88
|
+
: await promptProfileName(defaultName));
|
|
89
|
+
// Step 6: Get profile key (for config file)
|
|
90
|
+
const defaultKey = profileName.toLowerCase().replace(/[^a-z0-9-_]/g, "-");
|
|
91
|
+
const profileKey = isNonInteractive
|
|
92
|
+
? options.profileKey
|
|
93
|
+
: await promptProfileKey(options.profileKey ?? defaultKey);
|
|
94
|
+
if (!PROFILE_KEY_PATTERN.test(profileKey)) {
|
|
95
|
+
console.error(chalk.red(`\nError: Invalid profile key "${profileKey}". Must be lowercase, start with a letter, and only contain letters, numbers, hyphens, or underscores.`));
|
|
96
|
+
process.exit(1);
|
|
97
|
+
}
|
|
98
|
+
if (isNonInteractive) {
|
|
99
|
+
const existingProfile = getProfileByKey(profileKey);
|
|
100
|
+
if (existingProfile && !options.force) {
|
|
101
|
+
console.error(chalk.red(`\nError: Profile "${profileKey}" already exists.`));
|
|
102
|
+
console.log(chalk.dim("Use --force to overwrite it."));
|
|
103
|
+
process.exit(1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const repoPath = options.path
|
|
107
|
+
? resolveWorkspacePath(options.path)
|
|
108
|
+
: isNonInteractive
|
|
109
|
+
? resolveWorkspacePath(defaultRepoPath)
|
|
110
|
+
: await promptWorkspacePath(defaultRepoPath);
|
|
111
|
+
const pathValidation = validateWorkspaceDirectory(repoPath);
|
|
112
|
+
if (pathValidation !== true) {
|
|
113
|
+
console.error(chalk.red(`\nError: ${pathValidation}: ${repoPath}`));
|
|
114
|
+
process.exit(1);
|
|
115
|
+
}
|
|
116
|
+
// Step 7: Save profile to config.toml
|
|
117
|
+
setProfileInConfig(profileKey, {
|
|
118
|
+
name: profileName,
|
|
119
|
+
url,
|
|
120
|
+
api_key: apiKey,
|
|
121
|
+
project_id: projectId,
|
|
122
|
+
paths: [repoPath],
|
|
123
|
+
});
|
|
124
|
+
console.log(chalk.green("\n✓") + ` Profile "${profileKey}" saved`);
|
|
125
|
+
console.log(chalk.dim(` Config: ${getConfigPath()}`));
|
|
126
|
+
console.log();
|
|
127
|
+
if (isNonInteractive) {
|
|
128
|
+
console.log(chalk.dim("Non-interactive setup complete. Skipping connection."));
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
// === START CONNECTION ===
|
|
132
|
+
// Step 8: Start the connection
|
|
133
|
+
await runConnect({
|
|
134
|
+
convexUrl: url,
|
|
135
|
+
apiKey,
|
|
136
|
+
projectId,
|
|
137
|
+
paths: [repoPath],
|
|
138
|
+
profileKey,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/commands/setup/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EACL,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAcpD,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEjD,SAAS,0BAA0B,CACjC,OAAqB;IAOrB,OAAO,OAAO,CACZ,OAAO,CAAC,GAAG;QACT,OAAO,CAAC,MAAM;QACd,OAAO,CAAC,OAAO;QACf,OAAO,CAAC,UAAU,CACrB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,UAAwB,EAAE;IACvD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC9C,MAAM,gBAAgB,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAE7D,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAEtC,4BAA4B;IAE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 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import { resolveProfile, resolveConfigFromProfileCommand, getConfigPath, configExists, getAllProfiles, } from "../../lib/config/index.js";
|
|
4
|
+
import { ENV_URL, ENV_API_KEY, ENV_PROFILE } from "../../lib/constants.js";
|
|
5
|
+
import { addGlobalOptions } from "../../cli.js";
|
|
6
|
+
export const statusCommand = addGlobalOptions(new Command("status")
|
|
7
|
+
.description("Show configuration and connection status")).action(async (_options, cmd) => {
|
|
8
|
+
const cwd = process.cwd();
|
|
9
|
+
const resolution = resolveProfile(cwd, {
|
|
10
|
+
profile: cmd.optsWithGlobals().profile,
|
|
11
|
+
});
|
|
12
|
+
const config = resolveConfigFromProfileCommand(cmd, cwd);
|
|
13
|
+
console.log(chalk.bold("\nConfiguration Status\n"));
|
|
14
|
+
// Config file
|
|
15
|
+
console.log(chalk.underline("Config File:"));
|
|
16
|
+
const configPath = getConfigPath();
|
|
17
|
+
console.log(` ${configExists() ? chalk.green(configPath) : chalk.dim(`${configPath} (not found)`)}`);
|
|
18
|
+
console.log();
|
|
19
|
+
// Profile resolution
|
|
20
|
+
console.log(chalk.underline("Profile Resolution:"));
|
|
21
|
+
console.log(` Current directory: ${chalk.dim(cwd)}`);
|
|
22
|
+
if (resolution.profile) {
|
|
23
|
+
console.log(` Matched profile: ${chalk.green(resolution.key)} (via ${resolution.source})`);
|
|
24
|
+
console.log(` Profile name: ${chalk.cyan(resolution.profile.name)}`);
|
|
25
|
+
console.log(` Profile paths:`);
|
|
26
|
+
for (const p of resolution.profile.paths) {
|
|
27
|
+
console.log(` ${chalk.dim(p)}`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
console.log(` Matched profile: ${chalk.yellow("none")}`);
|
|
32
|
+
}
|
|
33
|
+
console.log();
|
|
34
|
+
// Resolved values
|
|
35
|
+
console.log(chalk.underline("Resolved Configuration:"));
|
|
36
|
+
console.log(` Convex URL: ${config.convexUrl ? chalk.cyan(config.convexUrl) : chalk.red("not set")}`);
|
|
37
|
+
console.log(` Project ID: ${config.projectId ? chalk.cyan(config.projectId) : chalk.dim("not set")}`);
|
|
38
|
+
console.log(` API Key: ${config.apiKey ? chalk.green("configured") : chalk.red("not configured")}`);
|
|
39
|
+
console.log();
|
|
40
|
+
// All profiles
|
|
41
|
+
const allProfiles = getAllProfiles();
|
|
42
|
+
if (allProfiles.length > 0) {
|
|
43
|
+
console.log(chalk.underline("All Profiles:"));
|
|
44
|
+
for (const { key, profile } of allProfiles) {
|
|
45
|
+
const isCurrent = key === resolution.key;
|
|
46
|
+
const marker = isCurrent ? chalk.green("→") : " ";
|
|
47
|
+
const keyDisplay = isCurrent ? chalk.green(key) : key;
|
|
48
|
+
const pathSummary = profile.paths.length === 1
|
|
49
|
+
? profile.paths[0]
|
|
50
|
+
: `${profile.paths.length} paths`;
|
|
51
|
+
console.log(` ${marker} ${keyDisplay.padEnd(20)} ${chalk.dim(pathSummary)}`);
|
|
52
|
+
}
|
|
53
|
+
console.log();
|
|
54
|
+
}
|
|
55
|
+
// Environment overrides
|
|
56
|
+
const envOverrides = [];
|
|
57
|
+
if (process.env[ENV_API_KEY])
|
|
58
|
+
envOverrides.push(ENV_API_KEY);
|
|
59
|
+
if (process.env[ENV_PROFILE])
|
|
60
|
+
envOverrides.push(ENV_PROFILE);
|
|
61
|
+
if (process.env[ENV_URL])
|
|
62
|
+
envOverrides.push(ENV_URL);
|
|
63
|
+
if (envOverrides.length > 0) {
|
|
64
|
+
console.log(chalk.underline("Environment Overrides:"));
|
|
65
|
+
for (const env of envOverrides) {
|
|
66
|
+
console.log(` ${chalk.yellow(env)}`);
|
|
67
|
+
}
|
|
68
|
+
console.log();
|
|
69
|
+
}
|
|
70
|
+
// Ready check
|
|
71
|
+
if (config.convexUrl && config.apiKey && config.projectId) {
|
|
72
|
+
console.log(chalk.green("✓") +
|
|
73
|
+
" Ready to connect. Run " +
|
|
74
|
+
chalk.cyan("convoy connect"));
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
console.log(chalk.yellow("Missing required configuration:"));
|
|
78
|
+
if (!config.convexUrl || !config.apiKey || !config.projectId) {
|
|
79
|
+
console.log(" Run " + chalk.cyan("convoy setup") + " to configure.");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../src/commands/status/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,aAAa,EACb,YAAY,EACZ,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAC3C,IAAI,OAAO,CAAC,QAAQ,CAAC;KAClB,WAAW,CAAC,0CAA0C,CAAC,CAC3D,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAY,EAAE,EAAE;IACtC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,EAAE;QACrC,OAAO,EAAE,GAAG,CAAC,eAAe,EAAE,CAAC,OAAO;KACvC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,+BAA+B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAEzD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAEpD,cAAc;IACd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SA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