@agentuity/cli 3.0.0-alpha.7 → 3.0.0-beta.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/AGENTS.md +146 -21
- package/bin/cli.js +31 -0
- package/dist/agent-detection.d.ts.map +1 -1
- package/dist/agent-detection.js +127 -34
- package/dist/agent-detection.js.map +1 -1
- package/dist/ai-help.d.ts +1 -1
- package/dist/ai-help.d.ts.map +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/auth.d.ts +2 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +10 -10
- package/dist/auth.js.map +1 -1
- package/dist/banner.d.ts.map +1 -1
- package/dist/banner.js +6 -13
- package/dist/banner.js.map +1 -1
- package/dist/build-report.d.ts +1 -1
- package/dist/build-report.d.ts.map +1 -1
- package/dist/build-report.js +3 -4
- package/dist/build-report.js.map +1 -1
- package/dist/bun-path.d.ts +11 -4
- package/dist/bun-path.d.ts.map +1 -1
- package/dist/bun-path.js +27 -14
- package/dist/bun-path.js.map +1 -1
- package/dist/cache/index.d.ts +3 -4
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/cache/index.js +3 -4
- package/dist/cache/index.js.map +1 -1
- package/dist/cache/resource-region.d.ts.map +1 -1
- package/dist/cache/resource-region.js +62 -33
- package/dist/cache/resource-region.js.map +1 -1
- package/dist/cache/user-cache.d.ts +4 -4
- package/dist/cache/user-cache.d.ts.map +1 -1
- package/dist/cache/user-cache.js +19 -17
- package/dist/cache/user-cache.js.map +1 -1
- package/dist/cli-logger.d.ts +2 -2
- package/dist/cli-logger.d.ts.map +1 -1
- package/dist/cli-logger.js +1 -1
- package/dist/cli-logger.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +51 -48
- package/dist/cli.js.map +1 -1
- package/dist/cmd/ai/capabilities/index.d.ts +1 -1
- package/dist/cmd/ai/capabilities/index.d.ts.map +1 -1
- package/dist/cmd/ai/capabilities/index.js +3 -3
- package/dist/cmd/ai/capabilities/index.js.map +1 -1
- package/dist/cmd/ai/capabilities/show.d.ts +1 -1
- package/dist/cmd/ai/capabilities/show.d.ts.map +1 -1
- package/dist/cmd/ai/capabilities/show.js +3 -3
- package/dist/cmd/ai/capabilities/show.js.map +1 -1
- package/dist/cmd/ai/claude-code/index.d.ts +1 -1
- package/dist/cmd/ai/claude-code/index.d.ts.map +1 -1
- package/dist/cmd/ai/claude-code/index.js +4 -4
- package/dist/cmd/ai/claude-code/index.js.map +1 -1
- package/dist/cmd/ai/claude-code/install.d.ts +1 -1
- package/dist/cmd/ai/claude-code/install.d.ts.map +1 -1
- package/dist/cmd/ai/claude-code/install.js +12 -11
- package/dist/cmd/ai/claude-code/install.js.map +1 -1
- package/dist/cmd/ai/claude-code/uninstall.d.ts +1 -1
- package/dist/cmd/ai/claude-code/uninstall.d.ts.map +1 -1
- package/dist/cmd/ai/claude-code/uninstall.js +8 -7
- package/dist/cmd/ai/claude-code/uninstall.js.map +1 -1
- package/dist/cmd/ai/detect.d.ts +1 -1
- package/dist/cmd/ai/detect.d.ts.map +1 -1
- package/dist/cmd/ai/detect.js +4 -4
- package/dist/cmd/ai/detect.js.map +1 -1
- package/dist/cmd/ai/index.d.ts +1 -1
- package/dist/cmd/ai/index.d.ts.map +1 -1
- package/dist/cmd/ai/index.js +9 -9
- package/dist/cmd/ai/index.js.map +1 -1
- package/dist/cmd/ai/intro.d.ts +1 -1
- package/dist/cmd/ai/intro.d.ts.map +1 -1
- package/dist/cmd/ai/intro.js +5 -5
- package/dist/cmd/ai/intro.js.map +1 -1
- package/dist/cmd/ai/opencode/dashboard.d.ts +1 -1
- package/dist/cmd/ai/opencode/dashboard.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/dashboard.js +16 -15
- package/dist/cmd/ai/opencode/dashboard.js.map +1 -1
- package/dist/cmd/ai/opencode/db.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/db.js +3 -2
- package/dist/cmd/ai/opencode/db.js.map +1 -1
- package/dist/cmd/ai/opencode/index.d.ts +1 -1
- package/dist/cmd/ai/opencode/index.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/index.js +7 -7
- package/dist/cmd/ai/opencode/index.js.map +1 -1
- package/dist/cmd/ai/opencode/inspect.d.ts +1 -1
- package/dist/cmd/ai/opencode/inspect.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/inspect.js +15 -15
- package/dist/cmd/ai/opencode/inspect.js.map +1 -1
- package/dist/cmd/ai/opencode/install.d.ts +1 -1
- package/dist/cmd/ai/opencode/install.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/install.js +3 -3
- package/dist/cmd/ai/opencode/install.js.map +1 -1
- package/dist/cmd/ai/opencode/run.d.ts +1 -1
- package/dist/cmd/ai/opencode/run.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/run.js +8 -9
- package/dist/cmd/ai/opencode/run.js.map +1 -1
- package/dist/cmd/ai/opencode/uninstall.d.ts +1 -1
- package/dist/cmd/ai/opencode/uninstall.d.ts.map +1 -1
- package/dist/cmd/ai/opencode/uninstall.js +3 -3
- package/dist/cmd/ai/opencode/uninstall.js.map +1 -1
- package/dist/cmd/ai/prompt/api.d.ts +1 -1
- package/dist/cmd/ai/prompt/api.d.ts.map +1 -1
- package/dist/cmd/ai/prompt/api.js +10 -4
- package/dist/cmd/ai/prompt/api.js.map +1 -1
- package/dist/cmd/ai/prompt/index.d.ts +1 -1
- package/dist/cmd/ai/prompt/index.d.ts.map +1 -1
- package/dist/cmd/ai/prompt/index.js +5 -5
- package/dist/cmd/ai/prompt/index.js.map +1 -1
- package/dist/cmd/ai/prompt/llm.d.ts +1 -1
- package/dist/cmd/ai/prompt/llm.d.ts.map +1 -1
- package/dist/cmd/ai/prompt/llm.js +2 -2
- package/dist/cmd/ai/prompt/llm.js.map +1 -1
- package/dist/cmd/ai/prompt/version.d.ts +1 -1
- package/dist/cmd/ai/prompt/version.d.ts.map +1 -1
- package/dist/cmd/ai/prompt/version.js +3 -4
- package/dist/cmd/ai/prompt/version.js.map +1 -1
- package/dist/cmd/ai/prompt/web.d.ts +1 -1
- package/dist/cmd/ai/prompt/web.d.ts.map +1 -1
- package/dist/cmd/ai/prompt/web.js +11 -4
- package/dist/cmd/ai/prompt/web.js.map +1 -1
- package/dist/cmd/ai/schema/generate.d.ts +1 -1
- package/dist/cmd/ai/schema/generate.d.ts.map +1 -1
- package/dist/cmd/ai/schema/generate.js +3 -3
- package/dist/cmd/ai/schema/generate.js.map +1 -1
- package/dist/cmd/ai/schema/index.d.ts +1 -1
- package/dist/cmd/ai/schema/index.d.ts.map +1 -1
- package/dist/cmd/ai/schema/index.js +4 -4
- package/dist/cmd/ai/schema/index.js.map +1 -1
- package/dist/cmd/ai/schema/show.d.ts +1 -1
- package/dist/cmd/ai/schema/show.d.ts.map +1 -1
- package/dist/cmd/ai/schema/show.js +3 -3
- package/dist/cmd/ai/schema/show.js.map +1 -1
- package/dist/cmd/auth/api.d.ts +1 -1
- package/dist/cmd/auth/api.d.ts.map +1 -1
- package/dist/cmd/auth/api.js +6 -5
- package/dist/cmd/auth/api.js.map +1 -1
- package/dist/cmd/auth/apikey.d.ts +1 -1
- package/dist/cmd/auth/apikey.d.ts.map +1 -1
- package/dist/cmd/auth/apikey.js +2 -2
- package/dist/cmd/auth/apikey.js.map +1 -1
- package/dist/cmd/auth/index.d.ts +1 -1
- package/dist/cmd/auth/index.d.ts.map +1 -1
- package/dist/cmd/auth/index.js +9 -9
- package/dist/cmd/auth/index.js.map +1 -1
- package/dist/cmd/auth/login.d.ts +1 -1
- package/dist/cmd/auth/login.d.ts.map +1 -1
- package/dist/cmd/auth/login.js +9 -21
- package/dist/cmd/auth/login.js.map +1 -1
- package/dist/cmd/auth/logout.d.ts +1 -1
- package/dist/cmd/auth/logout.d.ts.map +1 -1
- package/dist/cmd/auth/logout.js +6 -6
- package/dist/cmd/auth/logout.js.map +1 -1
- package/dist/cmd/auth/org/enroll.d.ts +1 -1
- package/dist/cmd/auth/org/enroll.d.ts.map +1 -1
- package/dist/cmd/auth/org/enroll.js +6 -5
- package/dist/cmd/auth/org/enroll.js.map +1 -1
- package/dist/cmd/auth/org/index.d.ts +1 -1
- package/dist/cmd/auth/org/index.d.ts.map +1 -1
- package/dist/cmd/auth/org/index.js +7 -7
- package/dist/cmd/auth/org/index.js.map +1 -1
- package/dist/cmd/auth/org/status.d.ts +1 -1
- package/dist/cmd/auth/org/status.d.ts.map +1 -1
- package/dist/cmd/auth/org/status.js +4 -4
- package/dist/cmd/auth/org/status.js.map +1 -1
- package/dist/cmd/auth/org/unenroll.d.ts +1 -1
- package/dist/cmd/auth/org/unenroll.d.ts.map +1 -1
- package/dist/cmd/auth/org/unenroll.js +4 -4
- package/dist/cmd/auth/org/unenroll.js.map +1 -1
- package/dist/cmd/auth/signup.d.ts +1 -1
- package/dist/cmd/auth/signup.d.ts.map +1 -1
- package/dist/cmd/auth/signup.js +6 -6
- package/dist/cmd/auth/signup.js.map +1 -1
- package/dist/cmd/auth/ssh/add.d.ts +1 -1
- package/dist/cmd/auth/ssh/add.d.ts.map +1 -1
- package/dist/cmd/auth/ssh/add.js +11 -10
- package/dist/cmd/auth/ssh/add.js.map +1 -1
- package/dist/cmd/auth/ssh/api.d.ts +1 -1
- package/dist/cmd/auth/ssh/api.d.ts.map +1 -1
- package/dist/cmd/auth/ssh/delete.d.ts +1 -1
- package/dist/cmd/auth/ssh/delete.d.ts.map +1 -1
- package/dist/cmd/auth/ssh/delete.js +6 -6
- package/dist/cmd/auth/ssh/delete.js.map +1 -1
- package/dist/cmd/auth/ssh/index.d.ts +1 -1
- package/dist/cmd/auth/ssh/index.d.ts.map +1 -1
- package/dist/cmd/auth/ssh/index.js +5 -5
- package/dist/cmd/auth/ssh/index.js.map +1 -1
- package/dist/cmd/auth/ssh/list.d.ts +1 -1
- package/dist/cmd/auth/ssh/list.d.ts.map +1 -1
- package/dist/cmd/auth/ssh/list.js +5 -5
- package/dist/cmd/auth/ssh/list.js.map +1 -1
- package/dist/cmd/auth/whoami.d.ts +1 -1
- package/dist/cmd/auth/whoami.d.ts.map +1 -1
- package/dist/cmd/auth/whoami.js +3 -3
- package/dist/cmd/auth/whoami.js.map +1 -1
- package/dist/cmd/build/adapters/generic.d.ts +1 -1
- package/dist/cmd/build/adapters/generic.d.ts.map +1 -1
- package/dist/cmd/build/adapters/generic.js +20 -18
- package/dist/cmd/build/adapters/generic.js.map +1 -1
- package/dist/cmd/build/adapters/index.d.ts +2 -2
- package/dist/cmd/build/adapters/index.d.ts.map +1 -1
- package/dist/cmd/build/adapters/index.js +2 -2
- package/dist/cmd/build/adapters/index.js.map +1 -1
- package/dist/cmd/build/adapters/nextjs.d.ts +1 -1
- package/dist/cmd/build/adapters/nextjs.d.ts.map +1 -1
- package/dist/cmd/build/adapters/nextjs.js +1 -1
- package/dist/cmd/build/adapters/nextjs.js.map +1 -1
- package/dist/cmd/build/adapters/static-server.d.ts.map +1 -1
- package/dist/cmd/build/adapters/static-server.js +16 -7
- package/dist/cmd/build/adapters/static-server.js.map +1 -1
- package/dist/cmd/build/adapters/types.d.ts +3 -3
- package/dist/cmd/build/adapters/types.d.ts.map +1 -1
- package/dist/cmd/build/ci.d.ts.map +1 -1
- package/dist/cmd/build/ci.js +12 -19
- package/dist/cmd/build/ci.js.map +1 -1
- package/dist/cmd/build/detect/engine.d.ts +2 -2
- package/dist/cmd/build/detect/engine.d.ts.map +1 -1
- package/dist/cmd/build/detect/engine.js +4 -3
- package/dist/cmd/build/detect/engine.js.map +1 -1
- package/dist/cmd/build/detect/generic.d.ts +1 -1
- package/dist/cmd/build/detect/generic.d.ts.map +1 -1
- package/dist/cmd/build/detect/generic.js +3 -3
- package/dist/cmd/build/detect/generic.js.map +1 -1
- package/dist/cmd/build/detect/index.d.ts +2 -2
- package/dist/cmd/build/detect/index.d.ts.map +1 -1
- package/dist/cmd/build/detect/index.js +4 -4
- package/dist/cmd/build/detect/index.js.map +1 -1
- package/dist/cmd/build/detect/util.d.ts +1 -1
- package/dist/cmd/build/detect/util.d.ts.map +1 -1
- package/dist/cmd/build/detect/util.js +11 -10
- package/dist/cmd/build/detect/util.js.map +1 -1
- package/dist/cmd/build/ids.d.ts.map +1 -1
- package/dist/cmd/build/ids.js +5 -3
- package/dist/cmd/build/ids.js.map +1 -1
- package/dist/cmd/build/index.d.ts +1 -1
- package/dist/cmd/build/index.d.ts.map +1 -1
- package/dist/cmd/build/index.js +15 -14
- package/dist/cmd/build/index.js.map +1 -1
- package/dist/cmd/build/package/index.d.ts +4 -4
- package/dist/cmd/build/package/index.d.ts.map +1 -1
- package/dist/cmd/build/package/index.js +1 -1
- package/dist/cmd/build/package/index.js.map +1 -1
- package/dist/cmd/build/package/launch.d.ts +2 -2
- package/dist/cmd/build/package/launch.d.ts.map +1 -1
- package/dist/cmd/build/patch/aisdk.d.ts +1 -1
- package/dist/cmd/build/patch/aisdk.d.ts.map +1 -1
- package/dist/cmd/build/patch/aisdk.js +1 -1
- package/dist/cmd/build/patch/aisdk.js.map +1 -1
- package/dist/cmd/build/patch/index.d.ts +8 -2
- package/dist/cmd/build/patch/index.d.ts.map +1 -1
- package/dist/cmd/build/patch/index.js +6 -5
- package/dist/cmd/build/patch/index.js.map +1 -1
- package/dist/cmd/build/patch/llm.d.ts +1 -1
- package/dist/cmd/build/patch/llm.d.ts.map +1 -1
- package/dist/cmd/build/patch/llm.js +1 -1
- package/dist/cmd/build/patch/llm.js.map +1 -1
- package/dist/cmd/build/patch/otel-llm.d.ts +1 -1
- package/dist/cmd/build/patch/otel-llm.d.ts.map +1 -1
- package/dist/cmd/build/typecheck.d.ts +2 -2
- package/dist/cmd/build/typecheck.d.ts.map +1 -1
- package/dist/cmd/build/typecheck.js +14 -14
- package/dist/cmd/build/typecheck.js.map +1 -1
- package/dist/cmd/canary/index.d.ts +1 -1
- package/dist/cmd/canary/index.d.ts.map +1 -1
- package/dist/cmd/canary/index.js +10 -7
- package/dist/cmd/canary/index.js.map +1 -1
- package/dist/cmd/cloud/agent/get.d.ts +1 -1
- package/dist/cmd/cloud/agent/get.d.ts.map +1 -1
- package/dist/cmd/cloud/agent/get.js +4 -4
- package/dist/cmd/cloud/agent/get.js.map +1 -1
- package/dist/cmd/cloud/agent/index.d.ts +1 -1
- package/dist/cmd/cloud/agent/index.d.ts.map +1 -1
- package/dist/cmd/cloud/agent/index.js +4 -4
- package/dist/cmd/cloud/agent/index.js.map +1 -1
- package/dist/cmd/cloud/agent/list.d.ts +1 -1
- package/dist/cmd/cloud/agent/list.d.ts.map +1 -1
- package/dist/cmd/cloud/agent/list.js +5 -5
- package/dist/cmd/cloud/agent/list.js.map +1 -1
- package/dist/cmd/cloud/apikey/create.d.ts +1 -1
- package/dist/cmd/cloud/apikey/create.d.ts.map +1 -1
- package/dist/cmd/cloud/apikey/create.js +4 -4
- package/dist/cmd/cloud/apikey/create.js.map +1 -1
- package/dist/cmd/cloud/apikey/delete.d.ts +1 -1
- package/dist/cmd/cloud/apikey/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/apikey/delete.js +4 -4
- package/dist/cmd/cloud/apikey/delete.js.map +1 -1
- package/dist/cmd/cloud/apikey/get.d.ts +1 -1
- package/dist/cmd/cloud/apikey/get.d.ts.map +1 -1
- package/dist/cmd/cloud/apikey/get.js +4 -4
- package/dist/cmd/cloud/apikey/get.js.map +1 -1
- package/dist/cmd/cloud/apikey/index.d.ts +1 -1
- package/dist/cmd/cloud/apikey/index.d.ts.map +1 -1
- package/dist/cmd/cloud/apikey/index.js +6 -6
- package/dist/cmd/cloud/apikey/index.js.map +1 -1
- package/dist/cmd/cloud/apikey/list.d.ts +1 -1
- package/dist/cmd/cloud/apikey/list.d.ts.map +1 -1
- package/dist/cmd/cloud/apikey/list.js +3 -3
- package/dist/cmd/cloud/apikey/list.js.map +1 -1
- package/dist/cmd/cloud/db/create.d.ts +1 -1
- package/dist/cmd/cloud/db/create.d.ts.map +1 -1
- package/dist/cmd/cloud/db/create.js +7 -7
- package/dist/cmd/cloud/db/create.js.map +1 -1
- package/dist/cmd/cloud/db/delete.d.ts +1 -1
- package/dist/cmd/cloud/db/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/db/delete.js +8 -8
- package/dist/cmd/cloud/db/delete.js.map +1 -1
- package/dist/cmd/cloud/db/get.d.ts +1 -1
- package/dist/cmd/cloud/db/get.d.ts.map +1 -1
- package/dist/cmd/cloud/db/get.js +6 -6
- package/dist/cmd/cloud/db/get.js.map +1 -1
- package/dist/cmd/cloud/db/index.d.ts +1 -1
- package/dist/cmd/cloud/db/index.d.ts.map +1 -1
- package/dist/cmd/cloud/db/index.js +9 -9
- package/dist/cmd/cloud/db/index.js.map +1 -1
- package/dist/cmd/cloud/db/list.d.ts +1 -1
- package/dist/cmd/cloud/db/list.d.ts.map +1 -1
- package/dist/cmd/cloud/db/list.js +4 -4
- package/dist/cmd/cloud/db/list.js.map +1 -1
- package/dist/cmd/cloud/db/logs.d.ts +1 -1
- package/dist/cmd/cloud/db/logs.d.ts.map +1 -1
- package/dist/cmd/cloud/db/logs.js +6 -6
- package/dist/cmd/cloud/db/logs.js.map +1 -1
- package/dist/cmd/cloud/db/sql.d.ts +1 -1
- package/dist/cmd/cloud/db/sql.d.ts.map +1 -1
- package/dist/cmd/cloud/db/sql.js +4 -4
- package/dist/cmd/cloud/db/sql.js.map +1 -1
- package/dist/cmd/cloud/db/stats.d.ts +1 -1
- package/dist/cmd/cloud/db/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/db/stats.js +4 -4
- package/dist/cmd/cloud/db/stats.js.map +1 -1
- package/dist/cmd/cloud/deploy/build.d.ts +68 -0
- package/dist/cmd/cloud/deploy/build.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/build.js +166 -0
- package/dist/cmd/cloud/deploy/build.js.map +1 -0
- package/dist/cmd/cloud/deploy/discover.d.ts +42 -0
- package/dist/cmd/cloud/deploy/discover.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/discover.js +85 -0
- package/dist/cmd/cloud/deploy/discover.js.map +1 -0
- package/dist/cmd/cloud/deploy/preflight.d.ts +81 -0
- package/dist/cmd/cloud/deploy/preflight.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/preflight.js +116 -0
- package/dist/cmd/cloud/deploy/preflight.js.map +1 -0
- package/dist/cmd/cloud/deploy/register.d.ts +62 -0
- package/dist/cmd/cloud/deploy/register.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/register.js +135 -0
- package/dist/cmd/cloud/deploy/register.js.map +1 -0
- package/dist/cmd/cloud/deploy/types.d.ts +43 -0
- package/dist/cmd/cloud/deploy/types.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/types.js +12 -0
- package/dist/cmd/cloud/deploy/types.js.map +1 -0
- package/dist/cmd/cloud/deploy/upload.d.ts +77 -0
- package/dist/cmd/cloud/deploy/upload.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/upload.js +343 -0
- package/dist/cmd/cloud/deploy/upload.js.map +1 -0
- package/dist/cmd/cloud/deploy/wait.d.ts +84 -0
- package/dist/cmd/cloud/deploy/wait.d.ts.map +1 -0
- package/dist/cmd/cloud/deploy/wait.js +237 -0
- package/dist/cmd/cloud/deploy/wait.js.map +1 -0
- package/dist/cmd/cloud/deploy-fork.d.ts +2 -2
- package/dist/cmd/cloud/deploy-fork.d.ts.map +1 -1
- package/dist/cmd/cloud/deploy-fork.js +59 -46
- package/dist/cmd/cloud/deploy-fork.js.map +1 -1
- package/dist/cmd/cloud/deploy.d.ts +1 -1
- package/dist/cmd/cloud/deploy.d.ts.map +1 -1
- package/dist/cmd/cloud/deploy.js +128 -718
- package/dist/cmd/cloud/deploy.js.map +1 -1
- package/dist/cmd/cloud/deployment/index.d.ts +1 -1
- package/dist/cmd/cloud/deployment/index.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/index.js +8 -8
- package/dist/cmd/cloud/deployment/index.js.map +1 -1
- package/dist/cmd/cloud/deployment/list.d.ts +1 -1
- package/dist/cmd/cloud/deployment/list.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/list.js +4 -4
- package/dist/cmd/cloud/deployment/list.js.map +1 -1
- package/dist/cmd/cloud/deployment/logs.d.ts +1 -1
- package/dist/cmd/cloud/deployment/logs.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/logs.js +5 -5
- package/dist/cmd/cloud/deployment/logs.js.map +1 -1
- package/dist/cmd/cloud/deployment/remove.d.ts +1 -1
- package/dist/cmd/cloud/deployment/remove.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/remove.js +4 -4
- package/dist/cmd/cloud/deployment/remove.js.map +1 -1
- package/dist/cmd/cloud/deployment/rollback.d.ts +1 -1
- package/dist/cmd/cloud/deployment/rollback.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/rollback.js +4 -4
- package/dist/cmd/cloud/deployment/rollback.js.map +1 -1
- package/dist/cmd/cloud/deployment/show.d.ts +1 -1
- package/dist/cmd/cloud/deployment/show.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/show.js +4 -4
- package/dist/cmd/cloud/deployment/show.js.map +1 -1
- package/dist/cmd/cloud/deployment/undeploy.d.ts +1 -1
- package/dist/cmd/cloud/deployment/undeploy.d.ts.map +1 -1
- package/dist/cmd/cloud/deployment/undeploy.js +4 -4
- package/dist/cmd/cloud/deployment/undeploy.js.map +1 -1
- package/dist/cmd/cloud/deployment/utils.d.ts +1 -1
- package/dist/cmd/cloud/deployment/utils.d.ts.map +1 -1
- package/dist/cmd/cloud/email/create.d.ts +1 -1
- package/dist/cmd/cloud/email/create.d.ts.map +1 -1
- package/dist/cmd/cloud/email/create.js +5 -5
- package/dist/cmd/cloud/email/create.js.map +1 -1
- package/dist/cmd/cloud/email/delete.d.ts +1 -1
- package/dist/cmd/cloud/email/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/email/delete.js +3 -3
- package/dist/cmd/cloud/email/delete.js.map +1 -1
- package/dist/cmd/cloud/email/destination/delete.d.ts +1 -1
- package/dist/cmd/cloud/email/destination/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/email/destination/delete.js +3 -3
- package/dist/cmd/cloud/email/destination/delete.js.map +1 -1
- package/dist/cmd/cloud/email/destination/index.d.ts +1 -1
- package/dist/cmd/cloud/email/destination/index.d.ts.map +1 -1
- package/dist/cmd/cloud/email/destination/index.js +4 -4
- package/dist/cmd/cloud/email/destination/index.js.map +1 -1
- package/dist/cmd/cloud/email/destination/list.d.ts +1 -1
- package/dist/cmd/cloud/email/destination/list.d.ts.map +1 -1
- package/dist/cmd/cloud/email/destination/list.js +4 -4
- package/dist/cmd/cloud/email/destination/list.js.map +1 -1
- package/dist/cmd/cloud/email/destination/url.d.ts +1 -1
- package/dist/cmd/cloud/email/destination/url.d.ts.map +1 -1
- package/dist/cmd/cloud/email/destination/url.js +6 -6
- package/dist/cmd/cloud/email/destination/url.js.map +1 -1
- package/dist/cmd/cloud/email/get.d.ts +1 -1
- package/dist/cmd/cloud/email/get.d.ts.map +1 -1
- package/dist/cmd/cloud/email/get.js +3 -3
- package/dist/cmd/cloud/email/get.js.map +1 -1
- package/dist/cmd/cloud/email/inbound/get.d.ts +1 -1
- package/dist/cmd/cloud/email/inbound/get.d.ts.map +1 -1
- package/dist/cmd/cloud/email/inbound/get.js +4 -4
- package/dist/cmd/cloud/email/inbound/get.js.map +1 -1
- package/dist/cmd/cloud/email/inbound/index.d.ts +1 -1
- package/dist/cmd/cloud/email/inbound/index.d.ts.map +1 -1
- package/dist/cmd/cloud/email/inbound/index.js +3 -3
- package/dist/cmd/cloud/email/inbound/index.js.map +1 -1
- package/dist/cmd/cloud/email/inbound/list.d.ts +1 -1
- package/dist/cmd/cloud/email/inbound/list.d.ts.map +1 -1
- package/dist/cmd/cloud/email/inbound/list.js +4 -4
- package/dist/cmd/cloud/email/inbound/list.js.map +1 -1
- package/dist/cmd/cloud/email/index.d.ts +1 -1
- package/dist/cmd/cloud/email/index.d.ts.map +1 -1
- package/dist/cmd/cloud/email/index.js +10 -10
- package/dist/cmd/cloud/email/index.js.map +1 -1
- package/dist/cmd/cloud/email/list.d.ts +1 -1
- package/dist/cmd/cloud/email/list.d.ts.map +1 -1
- package/dist/cmd/cloud/email/list.js +3 -3
- package/dist/cmd/cloud/email/list.js.map +1 -1
- package/dist/cmd/cloud/email/outbound/get.d.ts +1 -1
- package/dist/cmd/cloud/email/outbound/get.d.ts.map +1 -1
- package/dist/cmd/cloud/email/outbound/get.js +4 -4
- package/dist/cmd/cloud/email/outbound/get.js.map +1 -1
- package/dist/cmd/cloud/email/outbound/index.d.ts +1 -1
- package/dist/cmd/cloud/email/outbound/index.d.ts.map +1 -1
- package/dist/cmd/cloud/email/outbound/index.js +3 -3
- package/dist/cmd/cloud/email/outbound/index.js.map +1 -1
- package/dist/cmd/cloud/email/outbound/list.d.ts +1 -1
- package/dist/cmd/cloud/email/outbound/list.d.ts.map +1 -1
- package/dist/cmd/cloud/email/outbound/list.js +4 -4
- package/dist/cmd/cloud/email/outbound/list.js.map +1 -1
- package/dist/cmd/cloud/email/send.d.ts +1 -1
- package/dist/cmd/cloud/email/send.d.ts.map +1 -1
- package/dist/cmd/cloud/email/send.js +10 -8
- package/dist/cmd/cloud/email/send.js.map +1 -1
- package/dist/cmd/cloud/email/stats.d.ts +1 -1
- package/dist/cmd/cloud/email/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/email/stats.js +4 -4
- package/dist/cmd/cloud/email/stats.js.map +1 -1
- package/dist/cmd/cloud/email/util.d.ts +1 -1
- package/dist/cmd/cloud/email/util.d.ts.map +1 -1
- package/dist/cmd/cloud/email/util.js +3 -3
- package/dist/cmd/cloud/email/util.js.map +1 -1
- package/dist/cmd/cloud/env/delete.d.ts +1 -1
- package/dist/cmd/cloud/env/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/env/delete.js +6 -6
- package/dist/cmd/cloud/env/delete.js.map +1 -1
- package/dist/cmd/cloud/env/env-diff.js +2 -2
- package/dist/cmd/cloud/env/env-diff.js.map +1 -1
- package/dist/cmd/cloud/env/get.d.ts +1 -1
- package/dist/cmd/cloud/env/get.d.ts.map +1 -1
- package/dist/cmd/cloud/env/get.js +5 -5
- package/dist/cmd/cloud/env/get.js.map +1 -1
- package/dist/cmd/cloud/env/import.d.ts +1 -1
- package/dist/cmd/cloud/env/import.d.ts.map +1 -1
- package/dist/cmd/cloud/env/import.js +5 -5
- package/dist/cmd/cloud/env/import.js.map +1 -1
- package/dist/cmd/cloud/env/index.d.ts +1 -1
- package/dist/cmd/cloud/env/index.d.ts.map +1 -1
- package/dist/cmd/cloud/env/index.js +9 -9
- package/dist/cmd/cloud/env/index.js.map +1 -1
- package/dist/cmd/cloud/env/list.d.ts +1 -1
- package/dist/cmd/cloud/env/list.d.ts.map +1 -1
- package/dist/cmd/cloud/env/list.js +4 -4
- package/dist/cmd/cloud/env/list.js.map +1 -1
- package/dist/cmd/cloud/env/org-util.d.ts +2 -2
- package/dist/cmd/cloud/env/org-util.d.ts.map +1 -1
- package/dist/cmd/cloud/env/org-util.js +1 -1
- package/dist/cmd/cloud/env/org-util.js.map +1 -1
- package/dist/cmd/cloud/env/pull.d.ts +1 -1
- package/dist/cmd/cloud/env/pull.d.ts.map +1 -1
- package/dist/cmd/cloud/env/pull.js +6 -6
- package/dist/cmd/cloud/env/pull.js.map +1 -1
- package/dist/cmd/cloud/env/push.d.ts +1 -1
- package/dist/cmd/cloud/env/push.d.ts.map +1 -1
- package/dist/cmd/cloud/env/push.js +6 -6
- package/dist/cmd/cloud/env/push.js.map +1 -1
- package/dist/cmd/cloud/env/set.d.ts +1 -1
- package/dist/cmd/cloud/env/set.d.ts.map +1 -1
- package/dist/cmd/cloud/env/set.js +5 -5
- package/dist/cmd/cloud/env/set.js.map +1 -1
- package/dist/cmd/cloud/index.d.ts +1 -1
- package/dist/cmd/cloud/index.d.ts.map +1 -1
- package/dist/cmd/cloud/index.js +29 -29
- package/dist/cmd/cloud/index.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/create-namespace.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/create-namespace.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/create-namespace.js +4 -4
- package/dist/cmd/cloud/keyvalue/create-namespace.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/delete-namespace.js +5 -5
- package/dist/cmd/cloud/keyvalue/delete-namespace.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/delete.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/delete.js +4 -4
- package/dist/cmd/cloud/keyvalue/delete.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/get.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/get.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/get.js +5 -5
- package/dist/cmd/cloud/keyvalue/get.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/index.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/index.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/index.js +12 -12
- package/dist/cmd/cloud/keyvalue/index.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/keys.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/keys.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/keys.js +4 -4
- package/dist/cmd/cloud/keyvalue/keys.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/list-namespaces.js +4 -4
- package/dist/cmd/cloud/keyvalue/list-namespaces.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/repl.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/repl.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/repl.js +10 -14
- package/dist/cmd/cloud/keyvalue/repl.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/search.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/search.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/search.js +13 -20
- package/dist/cmd/cloud/keyvalue/search.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/set.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/set.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/set.js +5 -5
- package/dist/cmd/cloud/keyvalue/set.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/stats.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/stats.js +4 -4
- package/dist/cmd/cloud/keyvalue/stats.js.map +1 -1
- package/dist/cmd/cloud/keyvalue/util.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/util.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/util.js +2 -2
- package/dist/cmd/cloud/keyvalue/util.js.map +1 -1
- package/dist/cmd/cloud/machine/delete.d.ts +1 -1
- package/dist/cmd/cloud/machine/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/machine/delete.js +5 -5
- package/dist/cmd/cloud/machine/delete.js.map +1 -1
- package/dist/cmd/cloud/machine/deployments.d.ts +1 -1
- package/dist/cmd/cloud/machine/deployments.d.ts.map +1 -1
- package/dist/cmd/cloud/machine/deployments.js +5 -5
- package/dist/cmd/cloud/machine/deployments.js.map +1 -1
- package/dist/cmd/cloud/machine/get.d.ts +1 -1
- package/dist/cmd/cloud/machine/get.d.ts.map +1 -1
- package/dist/cmd/cloud/machine/get.js +5 -5
- package/dist/cmd/cloud/machine/get.js.map +1 -1
- package/dist/cmd/cloud/machine/index.d.ts +1 -1
- package/dist/cmd/cloud/machine/index.d.ts.map +1 -1
- package/dist/cmd/cloud/machine/index.js +6 -6
- package/dist/cmd/cloud/machine/index.js.map +1 -1
- package/dist/cmd/cloud/machine/list.d.ts +1 -1
- package/dist/cmd/cloud/machine/list.d.ts.map +1 -1
- package/dist/cmd/cloud/machine/list.js +5 -5
- package/dist/cmd/cloud/machine/list.js.map +1 -1
- package/dist/cmd/cloud/monitor.d.ts +1 -1
- package/dist/cmd/cloud/monitor.d.ts.map +1 -1
- package/dist/cmd/cloud/monitor.js +4 -4
- package/dist/cmd/cloud/monitor.js.map +1 -1
- package/dist/cmd/cloud/oidc/activity.d.ts +1 -1
- package/dist/cmd/cloud/oidc/activity.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/activity.js +4 -4
- package/dist/cmd/cloud/oidc/activity.js.map +1 -1
- package/dist/cmd/cloud/oidc/create.d.ts +1 -1
- package/dist/cmd/cloud/oidc/create.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/create.js +4 -4
- package/dist/cmd/cloud/oidc/create.js.map +1 -1
- package/dist/cmd/cloud/oidc/delete.d.ts +1 -1
- package/dist/cmd/cloud/oidc/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/delete.js +5 -5
- package/dist/cmd/cloud/oidc/delete.js.map +1 -1
- package/dist/cmd/cloud/oidc/get.d.ts +1 -1
- package/dist/cmd/cloud/oidc/get.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/get.js +5 -5
- package/dist/cmd/cloud/oidc/get.js.map +1 -1
- package/dist/cmd/cloud/oidc/index.d.ts +1 -1
- package/dist/cmd/cloud/oidc/index.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/index.js +9 -9
- package/dist/cmd/cloud/oidc/index.js.map +1 -1
- package/dist/cmd/cloud/oidc/list.d.ts +1 -1
- package/dist/cmd/cloud/oidc/list.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/list.js +4 -4
- package/dist/cmd/cloud/oidc/list.js.map +1 -1
- package/dist/cmd/cloud/oidc/rotate-secret.d.ts +1 -1
- package/dist/cmd/cloud/oidc/rotate-secret.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/rotate-secret.js +5 -5
- package/dist/cmd/cloud/oidc/rotate-secret.js.map +1 -1
- package/dist/cmd/cloud/oidc/users.d.ts +1 -1
- package/dist/cmd/cloud/oidc/users.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/users.js +4 -4
- package/dist/cmd/cloud/oidc/users.js.map +1 -1
- package/dist/cmd/cloud/oidc/util.d.ts +1 -1
- package/dist/cmd/cloud/oidc/util.d.ts.map +1 -1
- package/dist/cmd/cloud/oidc/util.js +2 -2
- package/dist/cmd/cloud/oidc/util.js.map +1 -1
- package/dist/cmd/cloud/queue/ack.d.ts +1 -1
- package/dist/cmd/cloud/queue/ack.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/ack.js +4 -4
- package/dist/cmd/cloud/queue/ack.js.map +1 -1
- package/dist/cmd/cloud/queue/consumers.d.ts +1 -1
- package/dist/cmd/cloud/queue/consumers.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/consumers.js +4 -4
- package/dist/cmd/cloud/queue/consumers.js.map +1 -1
- package/dist/cmd/cloud/queue/create.d.ts +1 -1
- package/dist/cmd/cloud/queue/create.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/create.js +4 -4
- package/dist/cmd/cloud/queue/create.js.map +1 -1
- package/dist/cmd/cloud/queue/delete.d.ts +1 -1
- package/dist/cmd/cloud/queue/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/delete.js +5 -5
- package/dist/cmd/cloud/queue/delete.js.map +1 -1
- package/dist/cmd/cloud/queue/destinations.d.ts +1 -1
- package/dist/cmd/cloud/queue/destinations.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/destinations.js +5 -5
- package/dist/cmd/cloud/queue/destinations.js.map +1 -1
- package/dist/cmd/cloud/queue/dlq.d.ts +1 -1
- package/dist/cmd/cloud/queue/dlq.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/dlq.js +5 -5
- package/dist/cmd/cloud/queue/dlq.js.map +1 -1
- package/dist/cmd/cloud/queue/get.d.ts +1 -1
- package/dist/cmd/cloud/queue/get.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/get.js +4 -4
- package/dist/cmd/cloud/queue/get.js.map +1 -1
- package/dist/cmd/cloud/queue/index.d.ts +1 -1
- package/dist/cmd/cloud/queue/index.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/index.js +18 -18
- package/dist/cmd/cloud/queue/index.js.map +1 -1
- package/dist/cmd/cloud/queue/list.d.ts +1 -1
- package/dist/cmd/cloud/queue/list.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/list.js +4 -4
- package/dist/cmd/cloud/queue/list.js.map +1 -1
- package/dist/cmd/cloud/queue/messages.d.ts +1 -1
- package/dist/cmd/cloud/queue/messages.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/messages.js +4 -4
- package/dist/cmd/cloud/queue/messages.js.map +1 -1
- package/dist/cmd/cloud/queue/nack.d.ts +1 -1
- package/dist/cmd/cloud/queue/nack.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/nack.js +4 -4
- package/dist/cmd/cloud/queue/nack.js.map +1 -1
- package/dist/cmd/cloud/queue/pause.d.ts +1 -1
- package/dist/cmd/cloud/queue/pause.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/pause.js +4 -4
- package/dist/cmd/cloud/queue/pause.js.map +1 -1
- package/dist/cmd/cloud/queue/publish.d.ts +1 -1
- package/dist/cmd/cloud/queue/publish.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/publish.js +5 -5
- package/dist/cmd/cloud/queue/publish.js.map +1 -1
- package/dist/cmd/cloud/queue/receive.d.ts +1 -1
- package/dist/cmd/cloud/queue/receive.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/receive.js +4 -4
- package/dist/cmd/cloud/queue/receive.js.map +1 -1
- package/dist/cmd/cloud/queue/resume.d.ts +1 -1
- package/dist/cmd/cloud/queue/resume.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/resume.js +4 -4
- package/dist/cmd/cloud/queue/resume.js.map +1 -1
- package/dist/cmd/cloud/queue/sources.d.ts +1 -1
- package/dist/cmd/cloud/queue/sources.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/sources.js +5 -5
- package/dist/cmd/cloud/queue/sources.js.map +1 -1
- package/dist/cmd/cloud/queue/stats.d.ts +1 -1
- package/dist/cmd/cloud/queue/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/stats.js +4 -4
- package/dist/cmd/cloud/queue/stats.js.map +1 -1
- package/dist/cmd/cloud/queue/util.d.ts +1 -1
- package/dist/cmd/cloud/queue/util.d.ts.map +1 -1
- package/dist/cmd/cloud/queue/util.js +1 -1
- package/dist/cmd/cloud/queue/util.js.map +1 -1
- package/dist/cmd/cloud/redis/get.d.ts +1 -1
- package/dist/cmd/cloud/redis/get.d.ts.map +1 -1
- package/dist/cmd/cloud/redis/get.js +4 -4
- package/dist/cmd/cloud/redis/get.js.map +1 -1
- package/dist/cmd/cloud/redis/index.d.ts +1 -1
- package/dist/cmd/cloud/redis/index.d.ts.map +1 -1
- package/dist/cmd/cloud/redis/index.js +3 -3
- package/dist/cmd/cloud/redis/index.js.map +1 -1
- package/dist/cmd/cloud/region/index.d.ts +1 -1
- package/dist/cmd/cloud/region/index.d.ts.map +1 -1
- package/dist/cmd/cloud/region/index.js +5 -5
- package/dist/cmd/cloud/region/index.js.map +1 -1
- package/dist/cmd/cloud/region/list.d.ts +1 -1
- package/dist/cmd/cloud/region/list.d.ts.map +1 -1
- package/dist/cmd/cloud/region/list.js +3 -3
- package/dist/cmd/cloud/region/list.js.map +1 -1
- package/dist/cmd/cloud/region-lookup.d.ts +1 -1
- package/dist/cmd/cloud/region-lookup.d.ts.map +1 -1
- package/dist/cmd/cloud/region-lookup.js +4 -4
- package/dist/cmd/cloud/region-lookup.js.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/create.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/create.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/create.js +6 -7
- package/dist/cmd/cloud/sandbox/checkpoint/create.js.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/delete.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/delete.js +6 -7
- package/dist/cmd/cloud/sandbox/checkpoint/delete.js.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/index.js +6 -6
- package/dist/cmd/cloud/sandbox/checkpoint/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/list.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/list.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/list.js +6 -7
- package/dist/cmd/cloud/sandbox/checkpoint/list.js.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/restore.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/restore.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/checkpoint/restore.js +6 -7
- package/dist/cmd/cloud/sandbox/checkpoint/restore.js.map +1 -1
- package/dist/cmd/cloud/sandbox/create.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/create.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/create.js +62 -11
- package/dist/cmd/cloud/sandbox/create.js.map +1 -1
- package/dist/cmd/cloud/sandbox/delete.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/delete.js +6 -7
- package/dist/cmd/cloud/sandbox/delete.js.map +1 -1
- package/dist/cmd/cloud/sandbox/env.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/env.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/env.js +6 -8
- package/dist/cmd/cloud/sandbox/env.js.map +1 -1
- package/dist/cmd/cloud/sandbox/events.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/events.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/events.js +4 -4
- package/dist/cmd/cloud/sandbox/events.js.map +1 -1
- package/dist/cmd/cloud/sandbox/exec.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/exec.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/exec.js +83 -26
- package/dist/cmd/cloud/sandbox/exec.js.map +1 -1
- package/dist/cmd/cloud/sandbox/execution/get.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/execution/get.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/execution/get.js +4 -4
- package/dist/cmd/cloud/sandbox/execution/get.js.map +1 -1
- package/dist/cmd/cloud/sandbox/execution/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/execution/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/execution/index.js +4 -4
- package/dist/cmd/cloud/sandbox/execution/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/execution/list.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/execution/list.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/execution/list.js +6 -8
- package/dist/cmd/cloud/sandbox/execution/list.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/cp.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/cp.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/cp.js +68 -119
- package/dist/cmd/cloud/sandbox/fs/cp.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/download.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/download.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/download.js +14 -25
- package/dist/cmd/cloud/sandbox/fs/download.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/index.js +9 -9
- package/dist/cmd/cloud/sandbox/fs/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/ls.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/ls.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/ls.js +6 -8
- package/dist/cmd/cloud/sandbox/fs/ls.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/mkdir.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/mkdir.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/mkdir.js +6 -8
- package/dist/cmd/cloud/sandbox/fs/mkdir.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/rm.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/rm.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/rm.js +6 -8
- package/dist/cmd/cloud/sandbox/fs/rm.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/rmdir.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/rmdir.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/rmdir.js +6 -8
- package/dist/cmd/cloud/sandbox/fs/rmdir.js.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/upload.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/fs/upload.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/fs/upload.js +10 -11
- package/dist/cmd/cloud/sandbox/fs/upload.js.map +1 -1
- package/dist/cmd/cloud/sandbox/get.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/get.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/get.js +24 -10
- package/dist/cmd/cloud/sandbox/get.js.map +1 -1
- package/dist/cmd/cloud/sandbox/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/index.js +19 -19
- package/dist/cmd/cloud/sandbox/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/job/create.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/job/create.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/job/create.js +6 -7
- package/dist/cmd/cloud/sandbox/job/create.js.map +1 -1
- package/dist/cmd/cloud/sandbox/job/destroy.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/job/destroy.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/job/destroy.js +6 -7
- package/dist/cmd/cloud/sandbox/job/destroy.js.map +1 -1
- package/dist/cmd/cloud/sandbox/job/get.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/job/get.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/job/get.js +5 -6
- package/dist/cmd/cloud/sandbox/job/get.js.map +1 -1
- package/dist/cmd/cloud/sandbox/job/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/job/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/job/index.js +7 -7
- package/dist/cmd/cloud/sandbox/job/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/job/list.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/job/list.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/job/list.js +5 -6
- package/dist/cmd/cloud/sandbox/job/list.js.map +1 -1
- package/dist/cmd/cloud/sandbox/job/logs.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/job/logs.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/job/logs.js +7 -8
- package/dist/cmd/cloud/sandbox/job/logs.js.map +1 -1
- package/dist/cmd/cloud/sandbox/list.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/list.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/list.js +3 -3
- package/dist/cmd/cloud/sandbox/list.js.map +1 -1
- package/dist/cmd/cloud/sandbox/pause.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/pause.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/pause.js +24 -8
- package/dist/cmd/cloud/sandbox/pause.js.map +1 -1
- package/dist/cmd/cloud/sandbox/resume.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/resume.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/resume.js +6 -7
- package/dist/cmd/cloud/sandbox/resume.js.map +1 -1
- package/dist/cmd/cloud/sandbox/run.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/run.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/run.js +15 -11
- package/dist/cmd/cloud/sandbox/run.js.map +1 -1
- package/dist/cmd/cloud/sandbox/runtime/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/runtime/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/runtime/index.js +3 -3
- package/dist/cmd/cloud/sandbox/runtime/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/runtime/list.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/runtime/list.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/runtime/list.js +4 -4
- package/dist/cmd/cloud/sandbox/runtime/list.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/build.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/build.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/build.js +36 -33
- package/dist/cmd/cloud/sandbox/snapshot/build.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/create.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/create.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/create.js +7 -7
- package/dist/cmd/cloud/sandbox/snapshot/create.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/delete.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/delete.js +4 -4
- package/dist/cmd/cloud/sandbox/snapshot/delete.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/generate.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/generate.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/generate.js +2 -2
- package/dist/cmd/cloud/sandbox/snapshot/generate.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/get.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/get.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/get.js +4 -4
- package/dist/cmd/cloud/sandbox/snapshot/get.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/index.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/index.js +9 -9
- package/dist/cmd/cloud/sandbox/snapshot/index.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/list.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/list.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/list.js +4 -4
- package/dist/cmd/cloud/sandbox/snapshot/list.js.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/tag.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/tag.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/snapshot/tag.js +4 -4
- package/dist/cmd/cloud/sandbox/snapshot/tag.js.map +1 -1
- package/dist/cmd/cloud/sandbox/stats.d.ts +1 -1
- package/dist/cmd/cloud/sandbox/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/stats.js +4 -4
- package/dist/cmd/cloud/sandbox/stats.js.map +1 -1
- package/dist/cmd/cloud/sandbox/util.d.ts +11 -1
- package/dist/cmd/cloud/sandbox/util.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/util.js +26 -7
- package/dist/cmd/cloud/sandbox/util.js.map +1 -1
- package/dist/cmd/cloud/schedule/create.d.ts +1 -1
- package/dist/cmd/cloud/schedule/create.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/create.js +4 -4
- package/dist/cmd/cloud/schedule/create.js.map +1 -1
- package/dist/cmd/cloud/schedule/delete.d.ts +1 -1
- package/dist/cmd/cloud/schedule/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/delete.js +4 -4
- package/dist/cmd/cloud/schedule/delete.js.map +1 -1
- package/dist/cmd/cloud/schedule/delivery/get.d.ts +1 -1
- package/dist/cmd/cloud/schedule/delivery/get.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/delivery/get.js +4 -4
- package/dist/cmd/cloud/schedule/delivery/get.js.map +1 -1
- package/dist/cmd/cloud/schedule/delivery/index.d.ts +1 -1
- package/dist/cmd/cloud/schedule/delivery/index.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/delivery/index.js +4 -4
- package/dist/cmd/cloud/schedule/delivery/index.js.map +1 -1
- package/dist/cmd/cloud/schedule/delivery/list.d.ts +1 -1
- package/dist/cmd/cloud/schedule/delivery/list.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/delivery/list.js +4 -4
- package/dist/cmd/cloud/schedule/delivery/list.js.map +1 -1
- package/dist/cmd/cloud/schedule/destination/create.d.ts +1 -1
- package/dist/cmd/cloud/schedule/destination/create.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/destination/create.js +4 -4
- package/dist/cmd/cloud/schedule/destination/create.js.map +1 -1
- package/dist/cmd/cloud/schedule/destination/delete.d.ts +1 -1
- package/dist/cmd/cloud/schedule/destination/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/destination/delete.js +4 -4
- package/dist/cmd/cloud/schedule/destination/delete.js.map +1 -1
- package/dist/cmd/cloud/schedule/destination/get.d.ts +1 -1
- package/dist/cmd/cloud/schedule/destination/get.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/destination/get.js +4 -4
- package/dist/cmd/cloud/schedule/destination/get.js.map +1 -1
- package/dist/cmd/cloud/schedule/destination/index.d.ts +1 -1
- package/dist/cmd/cloud/schedule/destination/index.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/destination/index.js +6 -6
- package/dist/cmd/cloud/schedule/destination/index.js.map +1 -1
- package/dist/cmd/cloud/schedule/destination/list.d.ts +1 -1
- package/dist/cmd/cloud/schedule/destination/list.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/destination/list.js +4 -4
- package/dist/cmd/cloud/schedule/destination/list.js.map +1 -1
- package/dist/cmd/cloud/schedule/get.d.ts +1 -1
- package/dist/cmd/cloud/schedule/get.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/get.js +4 -4
- package/dist/cmd/cloud/schedule/get.js.map +1 -1
- package/dist/cmd/cloud/schedule/index.d.ts +1 -1
- package/dist/cmd/cloud/schedule/index.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/index.js +10 -10
- package/dist/cmd/cloud/schedule/index.js.map +1 -1
- package/dist/cmd/cloud/schedule/list.d.ts +1 -1
- package/dist/cmd/cloud/schedule/list.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/list.js +4 -4
- package/dist/cmd/cloud/schedule/list.js.map +1 -1
- package/dist/cmd/cloud/schedule/stats.d.ts +1 -1
- package/dist/cmd/cloud/schedule/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/stats.js +4 -4
- package/dist/cmd/cloud/schedule/stats.js.map +1 -1
- package/dist/cmd/cloud/schedule/update.d.ts +1 -1
- package/dist/cmd/cloud/schedule/update.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/update.js +4 -4
- package/dist/cmd/cloud/schedule/update.js.map +1 -1
- package/dist/cmd/cloud/schedule/util.d.ts +1 -1
- package/dist/cmd/cloud/schedule/util.d.ts.map +1 -1
- package/dist/cmd/cloud/schedule/util.js +3 -3
- package/dist/cmd/cloud/schedule/util.js.map +1 -1
- package/dist/cmd/cloud/scp/download.d.ts +1 -1
- package/dist/cmd/cloud/scp/download.d.ts.map +1 -1
- package/dist/cmd/cloud/scp/download.js +10 -13
- package/dist/cmd/cloud/scp/download.js.map +1 -1
- package/dist/cmd/cloud/scp/index.d.ts +1 -1
- package/dist/cmd/cloud/scp/index.d.ts.map +1 -1
- package/dist/cmd/cloud/scp/index.js +4 -4
- package/dist/cmd/cloud/scp/index.js.map +1 -1
- package/dist/cmd/cloud/scp/upload.d.ts +1 -1
- package/dist/cmd/cloud/scp/upload.d.ts.map +1 -1
- package/dist/cmd/cloud/scp/upload.js +10 -13
- package/dist/cmd/cloud/scp/upload.js.map +1 -1
- package/dist/cmd/cloud/services/index.d.ts +1 -1
- package/dist/cmd/cloud/services/index.d.ts.map +1 -1
- package/dist/cmd/cloud/services/index.js +2 -2
- package/dist/cmd/cloud/services/index.js.map +1 -1
- package/dist/cmd/cloud/services/stats.d.ts +1 -1
- package/dist/cmd/cloud/services/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/services/stats.js +4 -4
- package/dist/cmd/cloud/services/stats.js.map +1 -1
- package/dist/cmd/cloud/session/get.d.ts +1 -1
- package/dist/cmd/cloud/session/get.d.ts.map +1 -1
- package/dist/cmd/cloud/session/get.js +5 -5
- package/dist/cmd/cloud/session/get.js.map +1 -1
- package/dist/cmd/cloud/session/index.d.ts +1 -1
- package/dist/cmd/cloud/session/index.d.ts.map +1 -1
- package/dist/cmd/cloud/session/index.js +5 -5
- package/dist/cmd/cloud/session/index.js.map +1 -1
- package/dist/cmd/cloud/session/list.d.ts +1 -1
- package/dist/cmd/cloud/session/list.d.ts.map +1 -1
- package/dist/cmd/cloud/session/list.js +5 -5
- package/dist/cmd/cloud/session/list.js.map +1 -1
- package/dist/cmd/cloud/session/logs.d.ts +1 -1
- package/dist/cmd/cloud/session/logs.d.ts.map +1 -1
- package/dist/cmd/cloud/session/logs.js +4 -4
- package/dist/cmd/cloud/session/logs.js.map +1 -1
- package/dist/cmd/cloud/ssh.d.ts +1 -1
- package/dist/cmd/cloud/ssh.d.ts.map +1 -1
- package/dist/cmd/cloud/ssh.js +8 -14
- package/dist/cmd/cloud/ssh.js.map +1 -1
- package/dist/cmd/cloud/storage/config.d.ts +1 -1
- package/dist/cmd/cloud/storage/config.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/config.js +5 -5
- package/dist/cmd/cloud/storage/config.js.map +1 -1
- package/dist/cmd/cloud/storage/create.d.ts +1 -1
- package/dist/cmd/cloud/storage/create.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/create.js +7 -7
- package/dist/cmd/cloud/storage/create.js.map +1 -1
- package/dist/cmd/cloud/storage/delete.d.ts +1 -1
- package/dist/cmd/cloud/storage/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/delete.js +9 -9
- package/dist/cmd/cloud/storage/delete.js.map +1 -1
- package/dist/cmd/cloud/storage/download.d.ts +1 -1
- package/dist/cmd/cloud/storage/download.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/download.js +9 -8
- package/dist/cmd/cloud/storage/download.js.map +1 -1
- package/dist/cmd/cloud/storage/get.d.ts +1 -1
- package/dist/cmd/cloud/storage/get.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/get.js +6 -6
- package/dist/cmd/cloud/storage/get.js.map +1 -1
- package/dist/cmd/cloud/storage/index.d.ts +1 -1
- package/dist/cmd/cloud/storage/index.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/index.js +9 -9
- package/dist/cmd/cloud/storage/index.js.map +1 -1
- package/dist/cmd/cloud/storage/list.d.ts +1 -1
- package/dist/cmd/cloud/storage/list.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/list.js +7 -7
- package/dist/cmd/cloud/storage/list.js.map +1 -1
- package/dist/cmd/cloud/storage/upload.d.ts +1 -1
- package/dist/cmd/cloud/storage/upload.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/upload.js +20 -16
- package/dist/cmd/cloud/storage/upload.js.map +1 -1
- package/dist/cmd/cloud/storage/utils.d.ts +13 -13
- package/dist/cmd/cloud/storage/utils.d.ts.map +1 -1
- package/dist/cmd/cloud/storage/utils.js +13 -16
- package/dist/cmd/cloud/storage/utils.js.map +1 -1
- package/dist/cmd/cloud/stream/create.d.ts +1 -1
- package/dist/cmd/cloud/stream/create.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/create.js +11 -10
- package/dist/cmd/cloud/stream/create.js.map +1 -1
- package/dist/cmd/cloud/stream/delete.d.ts +1 -1
- package/dist/cmd/cloud/stream/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/delete.js +4 -4
- package/dist/cmd/cloud/stream/delete.js.map +1 -1
- package/dist/cmd/cloud/stream/get.d.ts +1 -1
- package/dist/cmd/cloud/stream/get.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/get.js +11 -9
- package/dist/cmd/cloud/stream/get.js.map +1 -1
- package/dist/cmd/cloud/stream/index.d.ts +1 -1
- package/dist/cmd/cloud/stream/index.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/index.js +7 -7
- package/dist/cmd/cloud/stream/index.js.map +1 -1
- package/dist/cmd/cloud/stream/list.d.ts +1 -1
- package/dist/cmd/cloud/stream/list.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/list.js +3 -3
- package/dist/cmd/cloud/stream/list.js.map +1 -1
- package/dist/cmd/cloud/stream/stats.d.ts +1 -1
- package/dist/cmd/cloud/stream/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/stats.js +4 -4
- package/dist/cmd/cloud/stream/stats.js.map +1 -1
- package/dist/cmd/cloud/stream/util.d.ts +1 -1
- package/dist/cmd/cloud/stream/util.d.ts.map +1 -1
- package/dist/cmd/cloud/stream/util.js +2 -2
- package/dist/cmd/cloud/stream/util.js.map +1 -1
- package/dist/cmd/cloud/task/attachment.d.ts +1 -1
- package/dist/cmd/cloud/task/attachment.d.ts.map +1 -1
- package/dist/cmd/cloud/task/attachment.js +19 -13
- package/dist/cmd/cloud/task/attachment.js.map +1 -1
- package/dist/cmd/cloud/task/close.d.ts +1 -1
- package/dist/cmd/cloud/task/close.d.ts.map +1 -1
- package/dist/cmd/cloud/task/close.js +9 -8
- package/dist/cmd/cloud/task/close.js.map +1 -1
- package/dist/cmd/cloud/task/create.d.ts +1 -1
- package/dist/cmd/cloud/task/create.d.ts.map +1 -1
- package/dist/cmd/cloud/task/create.js +22 -18
- package/dist/cmd/cloud/task/create.js.map +1 -1
- package/dist/cmd/cloud/task/delete.d.ts +2 -2
- package/dist/cmd/cloud/task/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/task/delete.js +6 -6
- package/dist/cmd/cloud/task/delete.js.map +1 -1
- package/dist/cmd/cloud/task/get.d.ts +1 -1
- package/dist/cmd/cloud/task/get.d.ts.map +1 -1
- package/dist/cmd/cloud/task/get.js +4 -4
- package/dist/cmd/cloud/task/get.js.map +1 -1
- package/dist/cmd/cloud/task/index.d.ts +1 -1
- package/dist/cmd/cloud/task/index.d.ts.map +1 -1
- package/dist/cmd/cloud/task/index.js +12 -12
- package/dist/cmd/cloud/task/index.js.map +1 -1
- package/dist/cmd/cloud/task/list.d.ts +1 -1
- package/dist/cmd/cloud/task/list.d.ts.map +1 -1
- package/dist/cmd/cloud/task/list.js +4 -4
- package/dist/cmd/cloud/task/list.js.map +1 -1
- package/dist/cmd/cloud/task/project.d.ts +1 -1
- package/dist/cmd/cloud/task/project.d.ts.map +1 -1
- package/dist/cmd/cloud/task/project.js +4 -4
- package/dist/cmd/cloud/task/project.js.map +1 -1
- package/dist/cmd/cloud/task/stats.d.ts +1 -1
- package/dist/cmd/cloud/task/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/task/stats.js +4 -4
- package/dist/cmd/cloud/task/stats.js.map +1 -1
- package/dist/cmd/cloud/task/update.d.ts +1 -1
- package/dist/cmd/cloud/task/update.d.ts.map +1 -1
- package/dist/cmd/cloud/task/update.js +4 -4
- package/dist/cmd/cloud/task/update.js.map +1 -1
- package/dist/cmd/cloud/task/user.d.ts +1 -1
- package/dist/cmd/cloud/task/user.d.ts.map +1 -1
- package/dist/cmd/cloud/task/user.js +4 -4
- package/dist/cmd/cloud/task/user.js.map +1 -1
- package/dist/cmd/cloud/task/util.d.ts +1 -1
- package/dist/cmd/cloud/task/util.d.ts.map +1 -1
- package/dist/cmd/cloud/task/util.js +4 -4
- package/dist/cmd/cloud/task/util.js.map +1 -1
- package/dist/cmd/cloud/thread/delete.d.ts +1 -1
- package/dist/cmd/cloud/thread/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/thread/delete.js +5 -5
- package/dist/cmd/cloud/thread/delete.js.map +1 -1
- package/dist/cmd/cloud/thread/get.d.ts +1 -1
- package/dist/cmd/cloud/thread/get.d.ts.map +1 -1
- package/dist/cmd/cloud/thread/get.js +5 -5
- package/dist/cmd/cloud/thread/get.js.map +1 -1
- package/dist/cmd/cloud/thread/index.d.ts +1 -1
- package/dist/cmd/cloud/thread/index.d.ts.map +1 -1
- package/dist/cmd/cloud/thread/index.js +5 -5
- package/dist/cmd/cloud/thread/index.js.map +1 -1
- package/dist/cmd/cloud/thread/list.d.ts +1 -1
- package/dist/cmd/cloud/thread/list.d.ts.map +1 -1
- package/dist/cmd/cloud/thread/list.js +5 -5
- package/dist/cmd/cloud/thread/list.js.map +1 -1
- package/dist/cmd/cloud/vector/delete-namespace.d.ts +1 -1
- package/dist/cmd/cloud/vector/delete-namespace.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/delete-namespace.js +5 -5
- package/dist/cmd/cloud/vector/delete-namespace.js.map +1 -1
- package/dist/cmd/cloud/vector/delete.d.ts +1 -1
- package/dist/cmd/cloud/vector/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/delete.js +5 -5
- package/dist/cmd/cloud/vector/delete.js.map +1 -1
- package/dist/cmd/cloud/vector/get.d.ts +1 -1
- package/dist/cmd/cloud/vector/get.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/get.js +4 -4
- package/dist/cmd/cloud/vector/get.js.map +1 -1
- package/dist/cmd/cloud/vector/index.d.ts +1 -1
- package/dist/cmd/cloud/vector/index.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/index.js +9 -9
- package/dist/cmd/cloud/vector/index.js.map +1 -1
- package/dist/cmd/cloud/vector/list-namespaces.d.ts +1 -1
- package/dist/cmd/cloud/vector/list-namespaces.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/list-namespaces.js +4 -4
- package/dist/cmd/cloud/vector/list-namespaces.js.map +1 -1
- package/dist/cmd/cloud/vector/search.d.ts +1 -1
- package/dist/cmd/cloud/vector/search.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/search.js +4 -4
- package/dist/cmd/cloud/vector/search.js.map +1 -1
- package/dist/cmd/cloud/vector/stats.d.ts +1 -1
- package/dist/cmd/cloud/vector/stats.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/stats.js +4 -4
- package/dist/cmd/cloud/vector/stats.js.map +1 -1
- package/dist/cmd/cloud/vector/upsert.d.ts +1 -1
- package/dist/cmd/cloud/vector/upsert.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/upsert.js +10 -19
- package/dist/cmd/cloud/vector/upsert.js.map +1 -1
- package/dist/cmd/cloud/vector/util.d.ts +1 -1
- package/dist/cmd/cloud/vector/util.d.ts.map +1 -1
- package/dist/cmd/cloud/vector/util.js +2 -2
- package/dist/cmd/cloud/vector/util.js.map +1 -1
- package/dist/cmd/cloud/webhook/create.d.ts +1 -1
- package/dist/cmd/cloud/webhook/create.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/create.js +4 -4
- package/dist/cmd/cloud/webhook/create.js.map +1 -1
- package/dist/cmd/cloud/webhook/delete.d.ts +1 -1
- package/dist/cmd/cloud/webhook/delete.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/delete.js +5 -5
- package/dist/cmd/cloud/webhook/delete.js.map +1 -1
- package/dist/cmd/cloud/webhook/deliveries.d.ts +1 -1
- package/dist/cmd/cloud/webhook/deliveries.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/deliveries.js +4 -4
- package/dist/cmd/cloud/webhook/deliveries.js.map +1 -1
- package/dist/cmd/cloud/webhook/destinations.d.ts +1 -1
- package/dist/cmd/cloud/webhook/destinations.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/destinations.js +5 -5
- package/dist/cmd/cloud/webhook/destinations.js.map +1 -1
- package/dist/cmd/cloud/webhook/get.d.ts +1 -1
- package/dist/cmd/cloud/webhook/get.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/get.js +4 -4
- package/dist/cmd/cloud/webhook/get.js.map +1 -1
- package/dist/cmd/cloud/webhook/index.d.ts +1 -1
- package/dist/cmd/cloud/webhook/index.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/index.js +9 -9
- package/dist/cmd/cloud/webhook/index.js.map +1 -1
- package/dist/cmd/cloud/webhook/list.d.ts +1 -1
- package/dist/cmd/cloud/webhook/list.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/list.js +4 -4
- package/dist/cmd/cloud/webhook/list.js.map +1 -1
- package/dist/cmd/cloud/webhook/receipts.d.ts +1 -1
- package/dist/cmd/cloud/webhook/receipts.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/receipts.js +4 -4
- package/dist/cmd/cloud/webhook/receipts.js.map +1 -1
- package/dist/cmd/cloud/webhook/util.d.ts +1 -1
- package/dist/cmd/cloud/webhook/util.d.ts.map +1 -1
- package/dist/cmd/cloud/webhook/util.js +1 -1
- package/dist/cmd/cloud/webhook/util.js.map +1 -1
- package/dist/cmd/cloud/workflow/get.d.ts +1 -1
- package/dist/cmd/cloud/workflow/get.d.ts.map +1 -1
- package/dist/cmd/cloud/workflow/get.js +4 -4
- package/dist/cmd/cloud/workflow/get.js.map +1 -1
- package/dist/cmd/cloud/workflow/index.d.ts +1 -1
- package/dist/cmd/cloud/workflow/index.d.ts.map +1 -1
- package/dist/cmd/cloud/workflow/index.js +4 -4
- package/dist/cmd/cloud/workflow/index.js.map +1 -1
- package/dist/cmd/cloud/workflow/list.d.ts +1 -1
- package/dist/cmd/cloud/workflow/list.d.ts.map +1 -1
- package/dist/cmd/cloud/workflow/list.js +4 -4
- package/dist/cmd/cloud/workflow/list.js.map +1 -1
- package/dist/cmd/cloud/workflow/util.d.ts +1 -1
- package/dist/cmd/cloud/workflow/util.d.ts.map +1 -1
- package/dist/cmd/cloud/workflow/util.js +3 -3
- package/dist/cmd/cloud/workflow/util.js.map +1 -1
- package/dist/cmd/coder/archive.d.ts +1 -1
- package/dist/cmd/coder/archive.d.ts.map +1 -1
- package/dist/cmd/coder/archive.js +4 -4
- package/dist/cmd/coder/archive.js.map +1 -1
- package/dist/cmd/coder/create.d.ts +1 -1
- package/dist/cmd/coder/create.d.ts.map +1 -1
- package/dist/cmd/coder/create.js +7 -7
- package/dist/cmd/coder/create.js.map +1 -1
- package/dist/cmd/coder/delete.d.ts +1 -1
- package/dist/cmd/coder/delete.d.ts.map +1 -1
- package/dist/cmd/coder/delete.js +4 -4
- package/dist/cmd/coder/delete.js.map +1 -1
- package/dist/cmd/coder/events.d.ts +1 -1
- package/dist/cmd/coder/events.d.ts.map +1 -1
- package/dist/cmd/coder/events.js +4 -4
- package/dist/cmd/coder/events.js.map +1 -1
- package/dist/cmd/coder/extension-path.d.ts.map +1 -1
- package/dist/cmd/coder/extension-path.js +5 -4
- package/dist/cmd/coder/extension-path.js.map +1 -1
- package/dist/cmd/coder/get.d.ts +1 -1
- package/dist/cmd/coder/get.d.ts.map +1 -1
- package/dist/cmd/coder/get.js +4 -4
- package/dist/cmd/coder/get.js.map +1 -1
- package/dist/cmd/coder/index.d.ts +1 -1
- package/dist/cmd/coder/index.d.ts.map +1 -1
- package/dist/cmd/coder/index.js +16 -16
- package/dist/cmd/coder/index.js.map +1 -1
- package/dist/cmd/coder/list.d.ts +1 -1
- package/dist/cmd/coder/list.d.ts.map +1 -1
- package/dist/cmd/coder/list.js +4 -4
- package/dist/cmd/coder/list.js.map +1 -1
- package/dist/cmd/coder/loop.d.ts +1 -1
- package/dist/cmd/coder/loop.d.ts.map +1 -1
- package/dist/cmd/coder/loop.js +4 -4
- package/dist/cmd/coder/loop.js.map +1 -1
- package/dist/cmd/coder/participants.d.ts +1 -1
- package/dist/cmd/coder/participants.d.ts.map +1 -1
- package/dist/cmd/coder/participants.js +4 -4
- package/dist/cmd/coder/participants.js.map +1 -1
- package/dist/cmd/coder/replay.d.ts +1 -1
- package/dist/cmd/coder/replay.d.ts.map +1 -1
- package/dist/cmd/coder/replay.js +4 -4
- package/dist/cmd/coder/replay.js.map +1 -1
- package/dist/cmd/coder/skill/buckets.d.ts +1 -1
- package/dist/cmd/coder/skill/buckets.d.ts.map +1 -1
- package/dist/cmd/coder/skill/buckets.js +4 -4
- package/dist/cmd/coder/skill/buckets.js.map +1 -1
- package/dist/cmd/coder/skill/delete.d.ts +1 -1
- package/dist/cmd/coder/skill/delete.d.ts.map +1 -1
- package/dist/cmd/coder/skill/delete.js +4 -4
- package/dist/cmd/coder/skill/delete.js.map +1 -1
- package/dist/cmd/coder/skill/index.d.ts +1 -1
- package/dist/cmd/coder/skill/index.d.ts.map +1 -1
- package/dist/cmd/coder/skill/index.js +6 -6
- package/dist/cmd/coder/skill/index.js.map +1 -1
- package/dist/cmd/coder/skill/list.d.ts +1 -1
- package/dist/cmd/coder/skill/list.d.ts.map +1 -1
- package/dist/cmd/coder/skill/list.js +4 -4
- package/dist/cmd/coder/skill/list.js.map +1 -1
- package/dist/cmd/coder/skill/save.d.ts +1 -1
- package/dist/cmd/coder/skill/save.d.ts.map +1 -1
- package/dist/cmd/coder/skill/save.js +4 -4
- package/dist/cmd/coder/skill/save.js.map +1 -1
- package/dist/cmd/coder/start.d.ts +1 -1
- package/dist/cmd/coder/start.d.ts.map +1 -1
- package/dist/cmd/coder/start.js +23 -20
- package/dist/cmd/coder/start.js.map +1 -1
- package/dist/cmd/coder/update.d.ts +1 -1
- package/dist/cmd/coder/update.d.ts.map +1 -1
- package/dist/cmd/coder/update.js +4 -4
- package/dist/cmd/coder/update.js.map +1 -1
- package/dist/cmd/coder/users.d.ts +1 -1
- package/dist/cmd/coder/users.d.ts.map +1 -1
- package/dist/cmd/coder/users.js +4 -4
- package/dist/cmd/coder/users.js.map +1 -1
- package/dist/cmd/coder/workspace/create.d.ts +1 -1
- package/dist/cmd/coder/workspace/create.d.ts.map +1 -1
- package/dist/cmd/coder/workspace/create.js +5 -5
- package/dist/cmd/coder/workspace/create.js.map +1 -1
- package/dist/cmd/coder/workspace/delete.d.ts +1 -1
- package/dist/cmd/coder/workspace/delete.d.ts.map +1 -1
- package/dist/cmd/coder/workspace/delete.js +4 -4
- package/dist/cmd/coder/workspace/delete.js.map +1 -1
- package/dist/cmd/coder/workspace/get.d.ts +1 -1
- package/dist/cmd/coder/workspace/get.d.ts.map +1 -1
- package/dist/cmd/coder/workspace/get.js +4 -4
- package/dist/cmd/coder/workspace/get.js.map +1 -1
- package/dist/cmd/coder/workspace/index.d.ts +1 -1
- package/dist/cmd/coder/workspace/index.d.ts.map +1 -1
- package/dist/cmd/coder/workspace/index.js +6 -6
- package/dist/cmd/coder/workspace/index.js.map +1 -1
- package/dist/cmd/coder/workspace/list.d.ts +1 -1
- package/dist/cmd/coder/workspace/list.d.ts.map +1 -1
- package/dist/cmd/coder/workspace/list.js +4 -4
- package/dist/cmd/coder/workspace/list.js.map +1 -1
- package/dist/cmd/dev/index.d.ts +1 -1
- package/dist/cmd/dev/index.d.ts.map +1 -1
- package/dist/cmd/dev/index.js +18 -14
- package/dist/cmd/dev/index.js.map +1 -1
- package/dist/cmd/git/account/add.d.ts +3 -3
- package/dist/cmd/git/account/add.d.ts.map +1 -1
- package/dist/cmd/git/account/add.js +8 -17
- package/dist/cmd/git/account/add.js.map +1 -1
- package/dist/cmd/git/account/index.d.ts +1 -1
- package/dist/cmd/git/account/index.d.ts.map +1 -1
- package/dist/cmd/git/account/index.js +4 -4
- package/dist/cmd/git/account/index.js.map +1 -1
- package/dist/cmd/git/account/list.d.ts +1 -1
- package/dist/cmd/git/account/list.d.ts.map +1 -1
- package/dist/cmd/git/account/list.js +5 -5
- package/dist/cmd/git/account/list.js.map +1 -1
- package/dist/cmd/git/account/remove.d.ts +1 -1
- package/dist/cmd/git/account/remove.d.ts.map +1 -1
- package/dist/cmd/git/account/remove.js +5 -5
- package/dist/cmd/git/account/remove.js.map +1 -1
- package/dist/cmd/git/api.d.ts +1 -1
- package/dist/cmd/git/api.d.ts.map +1 -1
- package/dist/cmd/git/api.js +2 -1
- package/dist/cmd/git/api.js.map +1 -1
- package/dist/cmd/git/identity/connect.d.ts +3 -3
- package/dist/cmd/git/identity/connect.d.ts.map +1 -1
- package/dist/cmd/git/identity/connect.js +8 -17
- package/dist/cmd/git/identity/connect.js.map +1 -1
- package/dist/cmd/git/identity/disconnect.d.ts +1 -1
- package/dist/cmd/git/identity/disconnect.d.ts.map +1 -1
- package/dist/cmd/git/identity/disconnect.js +5 -5
- package/dist/cmd/git/identity/disconnect.js.map +1 -1
- package/dist/cmd/git/identity/index.d.ts +1 -1
- package/dist/cmd/git/identity/index.d.ts.map +1 -1
- package/dist/cmd/git/identity/index.js +4 -4
- package/dist/cmd/git/identity/index.js.map +1 -1
- package/dist/cmd/git/identity/status.d.ts +1 -1
- package/dist/cmd/git/identity/status.d.ts.map +1 -1
- package/dist/cmd/git/identity/status.js +5 -5
- package/dist/cmd/git/identity/status.js.map +1 -1
- package/dist/cmd/git/index.d.ts +1 -1
- package/dist/cmd/git/index.d.ts.map +1 -1
- package/dist/cmd/git/index.js +7 -7
- package/dist/cmd/git/index.js.map +1 -1
- package/dist/cmd/git/link.d.ts +4 -4
- package/dist/cmd/git/link.d.ts.map +1 -1
- package/dist/cmd/git/link.js +26 -36
- package/dist/cmd/git/link.js.map +1 -1
- package/dist/cmd/git/list.d.ts +1 -1
- package/dist/cmd/git/list.d.ts.map +1 -1
- package/dist/cmd/git/list.js +5 -5
- package/dist/cmd/git/list.js.map +1 -1
- package/dist/cmd/git/status.d.ts +1 -1
- package/dist/cmd/git/status.d.ts.map +1 -1
- package/dist/cmd/git/status.js +5 -5
- package/dist/cmd/git/status.js.map +1 -1
- package/dist/cmd/git/unlink.d.ts +1 -1
- package/dist/cmd/git/unlink.d.ts.map +1 -1
- package/dist/cmd/git/unlink.js +5 -5
- package/dist/cmd/git/unlink.js.map +1 -1
- package/dist/cmd/help/index.d.ts +1 -1
- package/dist/cmd/help/index.d.ts.map +1 -1
- package/dist/cmd/help/index.js +3 -3
- package/dist/cmd/help/index.js.map +1 -1
- package/dist/cmd/index.d.ts +1 -1
- package/dist/cmd/index.d.ts.map +1 -1
- package/dist/cmd/index.js +16 -16
- package/dist/cmd/index.js.map +1 -1
- package/dist/cmd/profile/create.d.ts +1 -1
- package/dist/cmd/profile/create.d.ts.map +1 -1
- package/dist/cmd/profile/create.js +5 -5
- package/dist/cmd/profile/create.js.map +1 -1
- package/dist/cmd/profile/current.d.ts +1 -1
- package/dist/cmd/profile/current.d.ts.map +1 -1
- package/dist/cmd/profile/current.js +2 -2
- package/dist/cmd/profile/current.js.map +1 -1
- package/dist/cmd/profile/delete.d.ts +1 -1
- package/dist/cmd/profile/delete.d.ts.map +1 -1
- package/dist/cmd/profile/delete.js +5 -5
- package/dist/cmd/profile/delete.js.map +1 -1
- package/dist/cmd/profile/index.d.ts +1 -1
- package/dist/cmd/profile/index.d.ts.map +1 -1
- package/dist/cmd/profile/index.js +8 -8
- package/dist/cmd/profile/index.js.map +1 -1
- package/dist/cmd/profile/list.d.ts +1 -1
- package/dist/cmd/profile/list.d.ts.map +1 -1
- package/dist/cmd/profile/list.js +4 -4
- package/dist/cmd/profile/list.js.map +1 -1
- package/dist/cmd/profile/show.d.ts +1 -1
- package/dist/cmd/profile/show.d.ts.map +1 -1
- package/dist/cmd/profile/show.js +5 -5
- package/dist/cmd/profile/show.js.map +1 -1
- package/dist/cmd/profile/use.d.ts +1 -1
- package/dist/cmd/profile/use.d.ts.map +1 -1
- package/dist/cmd/profile/use.js +4 -4
- package/dist/cmd/profile/use.js.map +1 -1
- package/dist/cmd/project/add/database.d.ts +1 -1
- package/dist/cmd/project/add/database.d.ts.map +1 -1
- package/dist/cmd/project/add/database.js +8 -8
- package/dist/cmd/project/add/database.js.map +1 -1
- package/dist/cmd/project/add/domain.d.ts +1 -1
- package/dist/cmd/project/add/domain.d.ts.map +1 -1
- package/dist/cmd/project/add/domain.js +8 -8
- package/dist/cmd/project/add/domain.js.map +1 -1
- package/dist/cmd/project/add/index.d.ts +1 -1
- package/dist/cmd/project/add/index.d.ts.map +1 -1
- package/dist/cmd/project/add/index.js +5 -5
- package/dist/cmd/project/add/index.js.map +1 -1
- package/dist/cmd/project/add/storage.d.ts +1 -1
- package/dist/cmd/project/add/storage.d.ts.map +1 -1
- package/dist/cmd/project/add/storage.js +8 -8
- package/dist/cmd/project/add/storage.js.map +1 -1
- package/dist/cmd/project/create.d.ts +1 -1
- package/dist/cmd/project/create.d.ts.map +1 -1
- package/dist/cmd/project/create.js +153 -4
- package/dist/cmd/project/create.js.map +1 -1
- package/dist/cmd/project/delete.d.ts +1 -1
- package/dist/cmd/project/delete.d.ts.map +1 -1
- package/dist/cmd/project/delete.js +3 -3
- package/dist/cmd/project/delete.js.map +1 -1
- package/dist/cmd/project/detect-existing.d.ts +46 -0
- package/dist/cmd/project/detect-existing.d.ts.map +1 -0
- package/dist/cmd/project/detect-existing.js +113 -0
- package/dist/cmd/project/detect-existing.js.map +1 -0
- package/dist/cmd/project/domain/check.d.ts +1 -1
- package/dist/cmd/project/domain/check.d.ts.map +1 -1
- package/dist/cmd/project/domain/check.js +6 -6
- package/dist/cmd/project/domain/check.js.map +1 -1
- package/dist/cmd/project/domain/index.d.ts +1 -1
- package/dist/cmd/project/domain/index.d.ts.map +1 -1
- package/dist/cmd/project/domain/index.js +3 -3
- package/dist/cmd/project/domain/index.js.map +1 -1
- package/dist/cmd/project/frameworks.d.ts.map +1 -1
- package/dist/cmd/project/frameworks.js +18 -15
- package/dist/cmd/project/frameworks.js.map +1 -1
- package/dist/cmd/project/hostname/get.d.ts +1 -1
- package/dist/cmd/project/hostname/get.d.ts.map +1 -1
- package/dist/cmd/project/hostname/get.js +4 -4
- package/dist/cmd/project/hostname/get.js.map +1 -1
- package/dist/cmd/project/hostname/index.d.ts +1 -1
- package/dist/cmd/project/hostname/index.d.ts.map +1 -1
- package/dist/cmd/project/hostname/index.js +4 -4
- package/dist/cmd/project/hostname/index.js.map +1 -1
- package/dist/cmd/project/hostname/set.d.ts +1 -1
- package/dist/cmd/project/hostname/set.d.ts.map +1 -1
- package/dist/cmd/project/hostname/set.js +5 -5
- package/dist/cmd/project/hostname/set.js.map +1 -1
- package/dist/cmd/project/import.d.ts +1 -1
- package/dist/cmd/project/import.d.ts.map +1 -1
- package/dist/cmd/project/import.js +7 -7
- package/dist/cmd/project/import.js.map +1 -1
- package/dist/cmd/project/index.d.ts +1 -1
- package/dist/cmd/project/index.d.ts.map +1 -1
- package/dist/cmd/project/index.js +10 -10
- package/dist/cmd/project/index.js.map +1 -1
- package/dist/cmd/project/list.d.ts +1 -1
- package/dist/cmd/project/list.d.ts.map +1 -1
- package/dist/cmd/project/list.js +3 -3
- package/dist/cmd/project/list.js.map +1 -1
- package/dist/cmd/project/provisioning-decisions.d.ts +43 -0
- package/dist/cmd/project/provisioning-decisions.d.ts.map +1 -0
- package/dist/cmd/project/provisioning-decisions.js +51 -0
- package/dist/cmd/project/provisioning-decisions.js.map +1 -0
- package/dist/cmd/project/random-name.d.ts +17 -0
- package/dist/cmd/project/random-name.d.ts.map +1 -0
- package/dist/cmd/project/random-name.js +144 -0
- package/dist/cmd/project/random-name.js.map +1 -0
- package/dist/cmd/project/reconcile.d.ts +5 -5
- package/dist/cmd/project/reconcile.d.ts.map +1 -1
- package/dist/cmd/project/reconcile.js +17 -16
- package/dist/cmd/project/reconcile.js.map +1 -1
- package/dist/cmd/project/remote-import.d.ts +2 -2
- package/dist/cmd/project/remote-import.d.ts.map +1 -1
- package/dist/cmd/project/remote-import.js +50 -79
- package/dist/cmd/project/remote-import.js.map +1 -1
- package/dist/cmd/project/scaffold.d.ts +1 -1
- package/dist/cmd/project/scaffold.d.ts.map +1 -1
- package/dist/cmd/project/scaffold.js +9 -8
- package/dist/cmd/project/scaffold.js.map +1 -1
- package/dist/cmd/project/services-catalog.d.ts +72 -0
- package/dist/cmd/project/services-catalog.d.ts.map +1 -0
- package/dist/cmd/project/services-catalog.js +141 -0
- package/dist/cmd/project/services-catalog.js.map +1 -0
- package/dist/cmd/project/services-composer.d.ts +49 -0
- package/dist/cmd/project/services-composer.d.ts.map +1 -0
- package/dist/cmd/project/services-composer.js +366 -0
- package/dist/cmd/project/services-composer.js.map +1 -0
- package/dist/cmd/project/show.d.ts +1 -1
- package/dist/cmd/project/show.d.ts.map +1 -1
- package/dist/cmd/project/show.js +3 -3
- package/dist/cmd/project/show.js.map +1 -1
- package/dist/cmd/project/template-flow.d.ts +9 -2
- package/dist/cmd/project/template-flow.d.ts.map +1 -1
- package/dist/cmd/project/template-flow.js +250 -169
- package/dist/cmd/project/template-flow.js.map +1 -1
- package/dist/cmd/project/templates/astro/manifest.json +27 -0
- package/dist/cmd/project/templates/astro/src/lib/translate.ts +40 -0
- package/dist/cmd/project/templates/astro/src/pages/api/translate.ts +10 -0
- package/dist/cmd/project/templates/astro/src/pages/index.astro +173 -0
- package/dist/cmd/project/templates/hono/manifest.json +35 -0
- package/dist/cmd/project/templates/hono/src/index.ts +29 -0
- package/dist/cmd/project/templates/hono/src/landing.html +91 -0
- package/dist/cmd/project/templates/hono/src/translate.ts +40 -0
- package/dist/cmd/project/templates/nextjs/manifest.json +27 -0
- package/dist/cmd/project/templates/nextjs/src/app/api/translate/route.ts +8 -0
- package/dist/cmd/project/templates/nextjs/src/app/page.tsx +246 -0
- package/dist/cmd/project/templates/nextjs/src/lib/translate.ts +40 -0
- package/dist/cmd/project/templates/nuxt/app.vue +203 -0
- package/dist/cmd/project/templates/nuxt/manifest.json +27 -0
- package/dist/cmd/project/templates/nuxt/server/api/translate.post.ts +4 -0
- package/dist/cmd/project/templates/nuxt/server/utils/translate.ts +40 -0
- package/dist/cmd/project/templates/remix/app/lib/translate.ts +40 -0
- package/dist/cmd/project/templates/remix/app/routes/api.translate.ts +17 -0
- package/dist/cmd/project/templates/remix/app/routes/home.tsx +249 -0
- package/dist/cmd/project/templates/remix/manifest.json +27 -0
- package/dist/cmd/project/templates/services/db/files/astro/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/astro/src/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/astro/src/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/files/astro/src/pages/api/history.ts +14 -0
- package/dist/cmd/project/templates/services/db/files/hono/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/hono/src/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/hono/src/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/files/nextjs/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/nextjs/src/app/api/history/route.ts +12 -0
- package/dist/cmd/project/templates/services/db/files/nextjs/src/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/nextjs/src/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/files/nuxt/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/nuxt/server/api/history.get.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/nuxt/server/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/nuxt/server/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/files/remix/app/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/remix/app/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/files/remix/app/routes/api.history.ts +12 -0
- package/dist/cmd/project/templates/services/db/files/remix/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/sveltekit/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/sveltekit/src/lib/server/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/sveltekit/src/lib/server/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/files/sveltekit/src/routes/api/history/+server.ts +12 -0
- package/dist/cmd/project/templates/services/db/files/vite-react/drizzle.config.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/vite-react/server/db/index.ts +10 -0
- package/dist/cmd/project/templates/services/db/files/vite-react/server/db/schema.ts +20 -0
- package/dist/cmd/project/templates/services/db/manifest.json +23 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/page.after-form.astro +1 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/page.on-mount.astro +1 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/page.on-result.astro +7 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/page.state.astro +44 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/astro/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/page.after-form.html +1 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/page.on-mount.html +1 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/page.on-result.html +7 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/page.state.html +37 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/server.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/server.routes.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/hono/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/page.after-form.tsx +22 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/page.after-result.tsx +3 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/page.imports.tsx +2 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/page.on-mount.tsx +6 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/page.on-result.tsx +8 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/page.state.tsx +1 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/nextjs/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/page.after-form.vue +17 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/page.after-result.vue +3 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/page.imports.vue +1 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/page.on-result.vue +5 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/page.state.vue +3 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/nuxt/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/page.after-form.tsx +22 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/page.after-result.tsx +3 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/page.imports.tsx +2 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/page.on-mount.tsx +6 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/page.on-result.tsx +8 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/page.state.tsx +1 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/remix/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/page.after-form.svelte +17 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/page.after-result.svelte +3 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/page.imports.svelte +11 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/page.on-mount.svelte +1 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/page.on-result.svelte +3 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/page.state.svelte +8 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/sveltekit/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/page.after-form.tsx +22 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/page.after-result.tsx +3 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/page.imports.tsx +3 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/page.on-result.tsx +5 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/page.state.tsx +9 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/server.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/server.routes.ts +8 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/translate.imports.ts +2 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/translate.translate-post.ts +9 -0
- package/dist/cmd/project/templates/services/db/snippets/vite-react/translate.translate-pre.ts +21 -0
- package/dist/cmd/project/templates/services/keyvalue/files/astro/src/pages/api/preferences.ts +21 -0
- package/dist/cmd/project/templates/services/keyvalue/files/nextjs/src/app/api/preferences/route.ts +22 -0
- package/dist/cmd/project/templates/services/keyvalue/files/nuxt/server/api/preferences.get.ts +11 -0
- package/dist/cmd/project/templates/services/keyvalue/files/nuxt/server/api/preferences.post.ts +9 -0
- package/dist/cmd/project/templates/services/keyvalue/files/remix/app/routes/api.preferences.ts +23 -0
- package/dist/cmd/project/templates/services/keyvalue/files/sveltekit/src/routes/api/preferences/+server.ts +17 -0
- package/dist/cmd/project/templates/services/keyvalue/manifest.json +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/astro/page.on-mount.astro +8 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/astro/page.on-result.astro +5 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/hono/page.on-mount.html +10 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/hono/page.on-result.html +5 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/hono/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/hono/server.module.ts +3 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/hono/server.routes.ts +14 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/nextjs/page.imports.tsx +1 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/nextjs/page.on-mount.tsx +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/nextjs/page.on-result.tsx +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/nuxt/page.on-mount.vue +11 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/nuxt/page.on-result.vue +8 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/remix/page.imports.tsx +1 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/remix/page.on-mount.tsx +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/remix/page.on-result.tsx +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/sveltekit/page.imports.svelte +1 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/sveltekit/page.on-mount.svelte +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/sveltekit/page.on-result.svelte +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/vite-react/page.imports.tsx +1 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/vite-react/page.on-mount.tsx +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/vite-react/page.on-result.tsx +9 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/vite-react/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/vite-react/server.module.ts +3 -0
- package/dist/cmd/project/templates/services/keyvalue/snippets/vite-react/server.routes.ts +13 -0
- package/dist/cmd/project/templates/services/queue/files/astro/src/pages/api/jobs.ts +13 -0
- package/dist/cmd/project/templates/services/queue/files/nextjs/src/app/api/jobs/route.ts +11 -0
- package/dist/cmd/project/templates/services/queue/files/nuxt/server/api/jobs.post.ts +9 -0
- package/dist/cmd/project/templates/services/queue/files/remix/app/routes/api.jobs.ts +12 -0
- package/dist/cmd/project/templates/services/queue/files/sveltekit/src/routes/api/jobs/+server.ts +11 -0
- package/dist/cmd/project/templates/services/queue/manifest.json +9 -0
- package/dist/cmd/project/templates/services/queue/snippets/astro/page.after-form.astro +1 -0
- package/dist/cmd/project/templates/services/queue/snippets/astro/page.inside-form-buttons.astro +7 -0
- package/dist/cmd/project/templates/services/queue/snippets/astro/page.state.astro +50 -0
- package/dist/cmd/project/templates/services/queue/snippets/hono/page.after-form.html +1 -0
- package/dist/cmd/project/templates/services/queue/snippets/hono/page.inside-form-buttons.html +7 -0
- package/dist/cmd/project/templates/services/queue/snippets/hono/page.state.html +42 -0
- package/dist/cmd/project/templates/services/queue/snippets/hono/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/queue/snippets/hono/server.module.ts +2 -0
- package/dist/cmd/project/templates/services/queue/snippets/hono/server.routes.ts +6 -0
- package/dist/cmd/project/templates/services/queue/snippets/nextjs/page.after-form.tsx +21 -0
- package/dist/cmd/project/templates/services/queue/snippets/nextjs/page.inside-form-buttons.tsx +8 -0
- package/dist/cmd/project/templates/services/queue/snippets/nextjs/page.state.tsx +19 -0
- package/dist/cmd/project/templates/services/queue/snippets/nuxt/page.after-form.vue +18 -0
- package/dist/cmd/project/templates/services/queue/snippets/nuxt/page.inside-form-buttons.vue +8 -0
- package/dist/cmd/project/templates/services/queue/snippets/nuxt/page.state.vue +25 -0
- package/dist/cmd/project/templates/services/queue/snippets/remix/page.after-form.tsx +21 -0
- package/dist/cmd/project/templates/services/queue/snippets/remix/page.inside-form-buttons.tsx +8 -0
- package/dist/cmd/project/templates/services/queue/snippets/remix/page.state.tsx +19 -0
- package/dist/cmd/project/templates/services/queue/snippets/sveltekit/page.after-form.svelte +18 -0
- package/dist/cmd/project/templates/services/queue/snippets/sveltekit/page.inside-form-buttons.svelte +8 -0
- package/dist/cmd/project/templates/services/queue/snippets/sveltekit/page.state.svelte +19 -0
- package/dist/cmd/project/templates/services/queue/snippets/vite-react/page.after-form.tsx +21 -0
- package/dist/cmd/project/templates/services/queue/snippets/vite-react/page.inside-form-buttons.tsx +8 -0
- package/dist/cmd/project/templates/services/queue/snippets/vite-react/page.state.tsx +19 -0
- package/dist/cmd/project/templates/services/queue/snippets/vite-react/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/queue/snippets/vite-react/server.module.ts +2 -0
- package/dist/cmd/project/templates/services/queue/snippets/vite-react/server.routes.ts +5 -0
- package/dist/cmd/project/templates/services/storage/files/astro/src/pages/api/export.ts +18 -0
- package/dist/cmd/project/templates/services/storage/files/astro/src/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/hono/src/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/nextjs/src/app/api/export/route.ts +16 -0
- package/dist/cmd/project/templates/services/storage/files/nextjs/src/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/nuxt/server/api/export.post.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/nuxt/server/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/remix/app/routes/api.export.ts +16 -0
- package/dist/cmd/project/templates/services/storage/files/remix/app/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/sveltekit/src/lib/server/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/files/sveltekit/src/routes/api/export/+server.ts +16 -0
- package/dist/cmd/project/templates/services/storage/files/vite-react/server/storage/index.ts +15 -0
- package/dist/cmd/project/templates/services/storage/manifest.json +19 -0
- package/dist/cmd/project/templates/services/storage/snippets/astro/page.after-form.astro +13 -0
- package/dist/cmd/project/templates/services/storage/snippets/astro/page.state.astro +17 -0
- package/dist/cmd/project/templates/services/storage/snippets/hono/page.after-form.html +13 -0
- package/dist/cmd/project/templates/services/storage/snippets/hono/page.state.html +17 -0
- package/dist/cmd/project/templates/services/storage/snippets/hono/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/storage/snippets/hono/server.routes.ts +12 -0
- package/dist/cmd/project/templates/services/storage/snippets/nextjs/page.after-form.tsx +18 -0
- package/dist/cmd/project/templates/services/storage/snippets/nextjs/page.state.tsx +12 -0
- package/dist/cmd/project/templates/services/storage/snippets/nuxt/page.after-form.vue +16 -0
- package/dist/cmd/project/templates/services/storage/snippets/nuxt/page.state.vue +13 -0
- package/dist/cmd/project/templates/services/storage/snippets/remix/page.after-form.tsx +18 -0
- package/dist/cmd/project/templates/services/storage/snippets/remix/page.state.tsx +12 -0
- package/dist/cmd/project/templates/services/storage/snippets/sveltekit/page.after-form.svelte +18 -0
- package/dist/cmd/project/templates/services/storage/snippets/sveltekit/page.state.svelte +12 -0
- package/dist/cmd/project/templates/services/storage/snippets/vite-react/page.after-form.tsx +18 -0
- package/dist/cmd/project/templates/services/storage/snippets/vite-react/page.state.tsx +12 -0
- package/dist/cmd/project/templates/services/storage/snippets/vite-react/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/storage/snippets/vite-react/server.routes.ts +11 -0
- package/dist/cmd/project/templates/services/vector/files/astro/src/pages/api/similar.ts +18 -0
- package/dist/cmd/project/templates/services/vector/files/nextjs/src/app/api/similar/route.ts +13 -0
- package/dist/cmd/project/templates/services/vector/files/nuxt/server/api/similar.get.ts +10 -0
- package/dist/cmd/project/templates/services/vector/files/remix/app/routes/api.similar.ts +14 -0
- package/dist/cmd/project/templates/services/vector/files/sveltekit/src/routes/api/similar/+server.ts +12 -0
- package/dist/cmd/project/templates/services/vector/manifest.json +9 -0
- package/dist/cmd/project/templates/services/vector/snippets/astro/page.after-result.astro +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/astro/page.on-result.astro +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/astro/page.state.astro +29 -0
- package/dist/cmd/project/templates/services/vector/snippets/astro/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/astro/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/astro/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/page.after-result.html +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/page.on-result.html +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/page.state.html +25 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/server.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/server.routes.ts +7 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/hono/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/page.after-result.tsx +13 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/page.imports.tsx +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/page.on-result.tsx +7 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/page.state.tsx +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/nextjs/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/nuxt/page.after-result.vue +16 -0
- package/dist/cmd/project/templates/services/vector/snippets/nuxt/page.on-result.vue +10 -0
- package/dist/cmd/project/templates/services/vector/snippets/nuxt/page.state.vue +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/nuxt/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/nuxt/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/nuxt/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/page.after-result.tsx +13 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/page.imports.tsx +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/page.on-result.tsx +7 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/page.state.tsx +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/remix/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/sveltekit/page.after-result.svelte +13 -0
- package/dist/cmd/project/templates/services/vector/snippets/sveltekit/page.on-result.svelte +11 -0
- package/dist/cmd/project/templates/services/vector/snippets/sveltekit/page.state.svelte +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/sveltekit/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/sveltekit/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/sveltekit/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/page.after-result.tsx +13 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/page.imports.tsx +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/page.on-result.tsx +7 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/page.state.tsx +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/server.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/server.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/server.routes.ts +6 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/translate.imports.ts +1 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/translate.module.ts +2 -0
- package/dist/cmd/project/templates/services/vector/snippets/vite-react/translate.translate-post.ts +6 -0
- package/dist/cmd/project/templates/sveltekit/manifest.json +27 -0
- package/dist/cmd/project/templates/sveltekit/src/lib/server/translate.ts +40 -0
- package/dist/cmd/project/templates/sveltekit/src/routes/+page.server.ts +13 -0
- package/dist/cmd/project/templates/sveltekit/src/routes/+page.svelte +216 -0
- package/dist/cmd/project/templates/vite-react/manifest.json +35 -0
- package/dist/cmd/project/templates/vite-react/server/translate.ts +40 -0
- package/dist/cmd/project/templates/vite-react/server.ts +33 -0
- package/dist/cmd/project/templates/vite-react/src/App.tsx +253 -0
- package/dist/cmd/repl/index.d.ts +1 -1
- package/dist/cmd/repl/index.d.ts.map +1 -1
- package/dist/cmd/repl/index.js +3 -3
- package/dist/cmd/repl/index.js.map +1 -1
- package/dist/cmd/setup/index.d.ts +1 -1
- package/dist/cmd/setup/index.d.ts.map +1 -1
- package/dist/cmd/setup/index.js +9 -13
- package/dist/cmd/setup/index.js.map +1 -1
- package/dist/cmd/support/index.d.ts +1 -1
- package/dist/cmd/support/index.d.ts.map +1 -1
- package/dist/cmd/support/index.js +4 -4
- package/dist/cmd/support/index.js.map +1 -1
- package/dist/cmd/support/logs/index.d.ts +1 -1
- package/dist/cmd/support/logs/index.js +3 -3
- package/dist/cmd/support/logs/index.js.map +1 -1
- package/dist/cmd/support/logs/path.d.ts +1 -1
- package/dist/cmd/support/logs/path.js +3 -3
- package/dist/cmd/support/logs/path.js.map +1 -1
- package/dist/cmd/support/logs/show.d.ts +1 -1
- package/dist/cmd/support/logs/show.js +3 -3
- package/dist/cmd/support/logs/show.js.map +1 -1
- package/dist/cmd/support/report.d.ts +1 -1
- package/dist/cmd/support/report.d.ts.map +1 -1
- package/dist/cmd/support/report.js +25 -22
- package/dist/cmd/support/report.js.map +1 -1
- package/dist/cmd/support/system.d.ts +1 -1
- package/dist/cmd/support/system.d.ts.map +1 -1
- package/dist/cmd/support/system.js +10 -9
- package/dist/cmd/support/system.js.map +1 -1
- package/dist/cmd/upgrade/index.d.ts +2 -2
- package/dist/cmd/upgrade/index.d.ts.map +1 -1
- package/dist/cmd/upgrade/index.js +11 -11
- package/dist/cmd/upgrade/index.js.map +1 -1
- package/dist/cmd/upgrade/npm-availability.d.ts +3 -2
- package/dist/cmd/upgrade/npm-availability.d.ts.map +1 -1
- package/dist/cmd/upgrade/npm-availability.js +12 -29
- package/dist/cmd/upgrade/npm-availability.js.map +1 -1
- package/dist/cmd/version/index.d.ts +1 -1
- package/dist/cmd/version/index.d.ts.map +1 -1
- package/dist/cmd/version/index.js +4 -4
- package/dist/cmd/version/index.js.map +1 -1
- package/dist/command-prefix.js +2 -2
- package/dist/command-prefix.js.map +1 -1
- package/dist/composite-logger.d.ts.map +1 -1
- package/dist/composite-logger.js +19 -0
- package/dist/composite-logger.js.map +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +34 -43
- package/dist/config.js.map +1 -1
- package/dist/deploy-metadata.d.ts +4 -5
- package/dist/deploy-metadata.d.ts.map +1 -1
- package/dist/deploy-metadata.js +11 -5
- package/dist/deploy-metadata.js.map +1 -1
- package/dist/domain.d.ts +1 -1
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.js +6 -4
- package/dist/domain.js.map +1 -1
- package/dist/download.js +2 -2
- package/dist/download.js.map +1 -1
- package/dist/env-util.d.ts.map +1 -1
- package/dist/env-util.js +5 -4
- package/dist/env-util.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/explain.d.ts +1 -1
- package/dist/explain.d.ts.map +1 -1
- package/dist/explain.js +1 -1
- package/dist/explain.js.map +1 -1
- package/dist/git-helper.d.ts +51 -9
- package/dist/git-helper.d.ts.map +1 -1
- package/dist/git-helper.js +70 -45
- package/dist/git-helper.js.map +1 -1
- package/dist/index.d.ts +31 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/internal-logger.d.ts.map +1 -1
- package/dist/internal-logger.js +8 -6
- package/dist/internal-logger.js.map +1 -1
- package/dist/keychain.d.ts.map +1 -1
- package/dist/keychain.js +35 -38
- package/dist/keychain.js.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +396 -0
- package/dist/main.js.map +1 -0
- package/dist/node-compat/ansi.d.ts +134 -0
- package/dist/node-compat/ansi.d.ts.map +1 -0
- package/dist/node-compat/ansi.js +128 -0
- package/dist/node-compat/ansi.js.map +1 -0
- package/dist/node-compat/crypto.d.ts +30 -0
- package/dist/node-compat/crypto.d.ts.map +1 -0
- package/dist/node-compat/crypto.js +33 -0
- package/dist/node-compat/crypto.js.map +1 -0
- package/dist/node-compat/fs.d.ts +31 -0
- package/dist/node-compat/fs.d.ts.map +1 -0
- package/dist/node-compat/fs.js +44 -0
- package/dist/node-compat/fs.js.map +1 -0
- package/dist/node-compat/index.d.ts +31 -0
- package/dist/node-compat/index.d.ts.map +1 -0
- package/dist/node-compat/index.js +31 -0
- package/dist/node-compat/index.js.map +1 -0
- package/dist/node-compat/proc.d.ts +120 -0
- package/dist/node-compat/proc.d.ts.map +1 -0
- package/dist/node-compat/proc.js +184 -0
- package/dist/node-compat/proc.js.map +1 -0
- package/dist/node-compat/runtime-info.d.ts +47 -0
- package/dist/node-compat/runtime-info.d.ts.map +1 -0
- package/dist/node-compat/runtime-info.js +65 -0
- package/dist/node-compat/runtime-info.js.map +1 -0
- package/dist/node-compat/sqlite.d.ts +58 -0
- package/dist/node-compat/sqlite.d.ts.map +1 -0
- package/dist/node-compat/sqlite.js +47 -0
- package/dist/node-compat/sqlite.js.map +1 -0
- package/dist/node-compat/stdin.d.ts +18 -0
- package/dist/node-compat/stdin.d.ts.map +1 -0
- package/dist/node-compat/stdin.js +24 -0
- package/dist/node-compat/stdin.js.map +1 -0
- package/dist/node-compat/which.d.ts +21 -0
- package/dist/node-compat/which.d.ts.map +1 -0
- package/dist/node-compat/which.js +58 -0
- package/dist/node-compat/which.js.map +1 -0
- package/dist/output.d.ts +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +1 -1
- package/dist/output.js.map +1 -1
- package/dist/regions.d.ts +1 -1
- package/dist/regions.d.ts.map +1 -1
- package/dist/regions.js +7 -8
- package/dist/regions.js.map +1 -1
- package/dist/repl.d.ts +1 -1
- package/dist/repl.d.ts.map +1 -1
- package/dist/repl.js +8 -7
- package/dist/repl.js.map +1 -1
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +26 -12
- package/dist/runtime.js.map +1 -1
- package/dist/schema-generator.d.ts +1 -1
- package/dist/schema-generator.d.ts.map +1 -1
- package/dist/schema-generator.js +2 -2
- package/dist/schema-generator.js.map +1 -1
- package/dist/schema-parser.d.ts +1 -1
- package/dist/schema-parser.d.ts.map +1 -1
- package/dist/sound.d.ts +1 -1
- package/dist/sound.d.ts.map +1 -1
- package/dist/sound.js +5 -5
- package/dist/sound.js.map +1 -1
- package/dist/steps.d.ts +1 -1
- package/dist/steps.d.ts.map +1 -1
- package/dist/steps.js +3 -3
- package/dist/steps.js.map +1 -1
- package/dist/system/browser.d.ts +39 -0
- package/dist/system/browser.d.ts.map +1 -0
- package/dist/system/browser.js +54 -0
- package/dist/system/browser.js.map +1 -0
- package/dist/tui/box.js +5 -5
- package/dist/tui/box.js.map +1 -1
- package/dist/tui/colors.js +1 -1
- package/dist/tui/colors.js.map +1 -1
- package/dist/tui/prompt.d.ts +29 -0
- package/dist/tui/prompt.d.ts.map +1 -1
- package/dist/tui/prompt.js +182 -10
- package/dist/tui/prompt.js.map +1 -1
- package/dist/tui/symbols.js +1 -1
- package/dist/tui/symbols.js.map +1 -1
- package/dist/tui.d.ts +14 -14
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +54 -69
- package/dist/tui.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/typescript-errors.d.ts +1 -1
- package/dist/typescript-errors.d.ts.map +1 -1
- package/dist/typescript-errors.js +7 -6
- package/dist/typescript-errors.js.map +1 -1
- package/dist/utils/apt-validator.d.ts +1 -1
- package/dist/utils/apt-validator.d.ts.map +1 -1
- package/dist/utils/apt-validator.js +8 -8
- package/dist/utils/apt-validator.js.map +1 -1
- package/dist/utils/deps.d.ts +1 -1
- package/dist/utils/deps.d.ts.map +1 -1
- package/dist/utils/deps.js +10 -6
- package/dist/utils/deps.js.map +1 -1
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +45 -58
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/installation-type.d.ts.map +1 -1
- package/dist/utils/installation-type.js +8 -3
- package/dist/utils/installation-type.js.map +1 -1
- package/dist/utils/stream-url.js +1 -1
- package/dist/utils/stream-url.js.map +1 -1
- package/dist/utils/zip.d.ts.map +1 -1
- package/dist/utils/zip.js +11 -5
- package/dist/utils/zip.js.map +1 -1
- package/dist/version-check.d.ts +1 -1
- package/dist/version-check.d.ts.map +1 -1
- package/dist/version-check.js +11 -16
- package/dist/version-check.js.map +1 -1
- package/dist/version.d.ts +25 -4
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +45 -7
- package/dist/version.js.map +1 -1
- package/package.json +18 -11
- package/bin/cli.ts +0 -455
- package/dist/cache/agent-intro.d.ts +0 -23
- package/dist/cache/agent-intro.d.ts.map +0 -1
- package/dist/cache/agent-intro.js +0 -104
- package/dist/cache/agent-intro.js.map +0 -1
- package/dist/cmd/upgrade/npm-availability.test.d.ts +0 -2
- package/dist/cmd/upgrade/npm-availability.test.d.ts.map +0 -1
- package/dist/cmd/upgrade/npm-availability.test.js +0 -48
- package/dist/cmd/upgrade/npm-availability.test.js.map +0 -1
- package/src/agent-detection.ts +0 -588
- package/src/ai-help.ts +0 -454
- package/src/api-errors.md +0 -115
- package/src/api.ts +0 -105
- package/src/auth.ts +0 -539
- package/src/banner.ts +0 -92
- package/src/build-report.ts +0 -456
- package/src/bun-path.ts +0 -27
- package/src/cache/agent-intro.ts +0 -115
- package/src/cache/index.ts +0 -22
- package/src/cache/project-cache.ts +0 -41
- package/src/cache/resource-region.ts +0 -209
- package/src/cache/user-cache.ts +0 -92
- package/src/catalyst.ts +0 -24
- package/src/cli-logger.ts +0 -80
- package/src/cli.ts +0 -2514
- package/src/cmd/ai/capabilities/index.ts +0 -16
- package/src/cmd/ai/capabilities/show.ts +0 -258
- package/src/cmd/ai/claude-code/constants.ts +0 -26
- package/src/cmd/ai/claude-code/index.ts +0 -23
- package/src/cmd/ai/claude-code/install.ts +0 -178
- package/src/cmd/ai/claude-code/uninstall.ts +0 -122
- package/src/cmd/ai/detect.ts +0 -54
- package/src/cmd/ai/index.ts +0 -51
- package/src/cmd/ai/intro.ts +0 -174
- package/src/cmd/ai/opencode/dashboard.ts +0 -772
- package/src/cmd/ai/opencode/db.ts +0 -66
- package/src/cmd/ai/opencode/index.ts +0 -44
- package/src/cmd/ai/opencode/inspect.ts +0 -516
- package/src/cmd/ai/opencode/install.ts +0 -120
- package/src/cmd/ai/opencode/run.ts +0 -112
- package/src/cmd/ai/opencode/uninstall.ts +0 -90
- package/src/cmd/ai/prompt/api.ts +0 -31
- package/src/cmd/ai/prompt/index.ts +0 -22
- package/src/cmd/ai/prompt/llm.ts +0 -368
- package/src/cmd/ai/prompt/version.ts +0 -62
- package/src/cmd/ai/prompt/web.ts +0 -31
- package/src/cmd/ai/schema/generate.ts +0 -64
- package/src/cmd/ai/schema/index.ts +0 -15
- package/src/cmd/ai/schema/show.ts +0 -30
- package/src/cmd/auth/README.md +0 -129
- package/src/cmd/auth/api.ts +0 -159
- package/src/cmd/auth/apikey.ts +0 -36
- package/src/cmd/auth/index.ts +0 -29
- package/src/cmd/auth/login.ts +0 -147
- package/src/cmd/auth/logout.ts +0 -26
- package/src/cmd/auth/org/enroll.ts +0 -104
- package/src/cmd/auth/org/index.ts +0 -192
- package/src/cmd/auth/org/status.ts +0 -64
- package/src/cmd/auth/org/unenroll.ts +0 -80
- package/src/cmd/auth/signup.ts +0 -64
- package/src/cmd/auth/ssh/add.ts +0 -309
- package/src/cmd/auth/ssh/api.ts +0 -106
- package/src/cmd/auth/ssh/delete.ts +0 -168
- package/src/cmd/auth/ssh/index.ts +0 -16
- package/src/cmd/auth/ssh/list.ts +0 -82
- package/src/cmd/auth/whoami.ts +0 -77
- package/src/cmd/build/adapters/generic.ts +0 -239
- package/src/cmd/build/adapters/index.ts +0 -30
- package/src/cmd/build/adapters/nextjs.ts +0 -146
- package/src/cmd/build/adapters/static-server.ts +0 -143
- package/src/cmd/build/adapters/types.ts +0 -93
- package/src/cmd/build/ci.ts +0 -225
- package/src/cmd/build/detect/engine.ts +0 -111
- package/src/cmd/build/detect/frameworks.ts +0 -335
- package/src/cmd/build/detect/generic.ts +0 -71
- package/src/cmd/build/detect/index.ts +0 -122
- package/src/cmd/build/detect/types.ts +0 -109
- package/src/cmd/build/detect/util.ts +0 -104
- package/src/cmd/build/ids.ts +0 -19
- package/src/cmd/build/index.ts +0 -260
- package/src/cmd/build/package/index.ts +0 -66
- package/src/cmd/build/package/launch.ts +0 -104
- package/src/cmd/build/patch/_util.ts +0 -90
- package/src/cmd/build/patch/aisdk.ts +0 -130
- package/src/cmd/build/patch/index.ts +0 -109
- package/src/cmd/build/patch/llm.ts +0 -36
- package/src/cmd/build/patch/otel-llm.ts +0 -421
- package/src/cmd/build/typecheck.ts +0 -141
- package/src/cmd/canary/index.ts +0 -149
- package/src/cmd/cloud/agent/get.ts +0 -119
- package/src/cmd/cloud/agent/index.ts +0 -16
- package/src/cmd/cloud/agent/list.ts +0 -123
- package/src/cmd/cloud/agent/schema.ts +0 -25
- package/src/cmd/cloud/apikey/create.ts +0 -117
- package/src/cmd/cloud/apikey/delete.ts +0 -66
- package/src/cmd/cloud/apikey/get.ts +0 -63
- package/src/cmd/cloud/apikey/index.ts +0 -22
- package/src/cmd/cloud/apikey/list.ts +0 -65
- package/src/cmd/cloud/db/create.ts +0 -109
- package/src/cmd/cloud/db/delete.ts +0 -222
- package/src/cmd/cloud/db/get.ts +0 -225
- package/src/cmd/cloud/db/index.ts +0 -29
- package/src/cmd/cloud/db/list.ts +0 -132
- package/src/cmd/cloud/db/logs.ts +0 -198
- package/src/cmd/cloud/db/sql.ts +0 -84
- package/src/cmd/cloud/db/stats.ts +0 -78
- package/src/cmd/cloud/deploy-fork.ts +0 -430
- package/src/cmd/cloud/deploy.ts +0 -1464
- package/src/cmd/cloud/deployment/index.ts +0 -27
- package/src/cmd/cloud/deployment/list.ts +0 -123
- package/src/cmd/cloud/deployment/logs.ts +0 -84
- package/src/cmd/cloud/deployment/remove.ts +0 -75
- package/src/cmd/cloud/deployment/rollback.ts +0 -92
- package/src/cmd/cloud/deployment/show.ts +0 -203
- package/src/cmd/cloud/deployment/undeploy.ts +0 -56
- package/src/cmd/cloud/deployment/utils.ts +0 -20
- package/src/cmd/cloud/email/create.ts +0 -75
- package/src/cmd/cloud/email/delete.ts +0 -53
- package/src/cmd/cloud/email/destination/delete.ts +0 -69
- package/src/cmd/cloud/email/destination/index.ts +0 -15
- package/src/cmd/cloud/email/destination/list.ts +0 -46
- package/src/cmd/cloud/email/destination/schemas.ts +0 -9
- package/src/cmd/cloud/email/destination/url.ts +0 -76
- package/src/cmd/cloud/email/get.ts +0 -88
- package/src/cmd/cloud/email/inbound/get.ts +0 -53
- package/src/cmd/cloud/email/inbound/index.ts +0 -13
- package/src/cmd/cloud/email/inbound/list.ts +0 -48
- package/src/cmd/cloud/email/inbound/schemas.ts +0 -13
- package/src/cmd/cloud/email/index.ts +0 -31
- package/src/cmd/cloud/email/list.ts +0 -45
- package/src/cmd/cloud/email/outbound/get.ts +0 -55
- package/src/cmd/cloud/email/outbound/index.ts +0 -13
- package/src/cmd/cloud/email/outbound/list.ts +0 -50
- package/src/cmd/cloud/email/outbound/schemas.ts +0 -15
- package/src/cmd/cloud/email/send.ts +0 -85
- package/src/cmd/cloud/email/stats.ts +0 -79
- package/src/cmd/cloud/email/util.ts +0 -68
- package/src/cmd/cloud/env/delete.ts +0 -185
- package/src/cmd/cloud/env/env-diff.ts +0 -180
- package/src/cmd/cloud/env/get.ts +0 -119
- package/src/cmd/cloud/env/import.ts +0 -173
- package/src/cmd/cloud/env/index.ts +0 -40
- package/src/cmd/cloud/env/list.ts +0 -200
- package/src/cmd/cloud/env/org-util.ts +0 -40
- package/src/cmd/cloud/env/pull.ts +0 -197
- package/src/cmd/cloud/env/push.ts +0 -243
- package/src/cmd/cloud/env/set.ts +0 -272
- package/src/cmd/cloud/index.ts +0 -69
- package/src/cmd/cloud/keyvalue/create-namespace.ts +0 -53
- package/src/cmd/cloud/keyvalue/delete-namespace.ts +0 -86
- package/src/cmd/cloud/keyvalue/delete.ts +0 -62
- package/src/cmd/cloud/keyvalue/get.ts +0 -80
- package/src/cmd/cloud/keyvalue/index.ts +0 -40
- package/src/cmd/cloud/keyvalue/keys.ts +0 -62
- package/src/cmd/cloud/keyvalue/list-namespaces.ts +0 -49
- package/src/cmd/cloud/keyvalue/repl.ts +0 -297
- package/src/cmd/cloud/keyvalue/search.ts +0 -87
- package/src/cmd/cloud/keyvalue/set.ts +0 -84
- package/src/cmd/cloud/keyvalue/stats.ts +0 -222
- package/src/cmd/cloud/keyvalue/util.ts +0 -41
- package/src/cmd/cloud/machine/delete.ts +0 -97
- package/src/cmd/cloud/machine/deployments.ts +0 -100
- package/src/cmd/cloud/machine/get.ts +0 -116
- package/src/cmd/cloud/machine/index.ts +0 -22
- package/src/cmd/cloud/machine/list.ts +0 -105
- package/src/cmd/cloud/monitor.ts +0 -375
- package/src/cmd/cloud/oidc/activity.ts +0 -64
- package/src/cmd/cloud/oidc/create.ts +0 -230
- package/src/cmd/cloud/oidc/delete.ts +0 -66
- package/src/cmd/cloud/oidc/get.ts +0 -69
- package/src/cmd/cloud/oidc/index.ts +0 -35
- package/src/cmd/cloud/oidc/list.ts +0 -53
- package/src/cmd/cloud/oidc/rotate-secret.ts +0 -80
- package/src/cmd/cloud/oidc/users.ts +0 -60
- package/src/cmd/cloud/oidc/util.ts +0 -28
- package/src/cmd/cloud/queue/ack.ts +0 -50
- package/src/cmd/cloud/queue/consumers.ts +0 -97
- package/src/cmd/cloud/queue/create.ts +0 -92
- package/src/cmd/cloud/queue/delete.ts +0 -57
- package/src/cmd/cloud/queue/destinations.ts +0 -402
- package/src/cmd/cloud/queue/dlq.ts +0 -209
- package/src/cmd/cloud/queue/get.ts +0 -159
- package/src/cmd/cloud/queue/index.ts +0 -68
- package/src/cmd/cloud/queue/list.ts +0 -99
- package/src/cmd/cloud/queue/messages.ts +0 -160
- package/src/cmd/cloud/queue/nack.ts +0 -50
- package/src/cmd/cloud/queue/pause.ts +0 -41
- package/src/cmd/cloud/queue/publish.ts +0 -94
- package/src/cmd/cloud/queue/receive.ts +0 -84
- package/src/cmd/cloud/queue/resume.ts +0 -40
- package/src/cmd/cloud/queue/sources.ts +0 -352
- package/src/cmd/cloud/queue/stats.ts +0 -297
- package/src/cmd/cloud/queue/util.ts +0 -35
- package/src/cmd/cloud/redis/get.ts +0 -72
- package/src/cmd/cloud/redis/index.ts +0 -13
- package/src/cmd/cloud/region/index.ts +0 -159
- package/src/cmd/cloud/region/list.ts +0 -62
- package/src/cmd/cloud/region-lookup.ts +0 -220
- package/src/cmd/cloud/sandbox/checkpoint/create.ts +0 -86
- package/src/cmd/cloud/sandbox/checkpoint/delete.ts +0 -93
- package/src/cmd/cloud/sandbox/checkpoint/index.ts +0 -33
- package/src/cmd/cloud/sandbox/checkpoint/list.ts +0 -83
- package/src/cmd/cloud/sandbox/checkpoint/restore.ts +0 -72
- package/src/cmd/cloud/sandbox/create.ts +0 -231
- package/src/cmd/cloud/sandbox/delete.ts +0 -82
- package/src/cmd/cloud/sandbox/env.ts +0 -108
- package/src/cmd/cloud/sandbox/events.ts +0 -108
- package/src/cmd/cloud/sandbox/exec.ts +0 -343
- package/src/cmd/cloud/sandbox/execution/get.ts +0 -120
- package/src/cmd/cloud/sandbox/execution/index.ts +0 -25
- package/src/cmd/cloud/sandbox/execution/list.ts +0 -120
- package/src/cmd/cloud/sandbox/fs/cp.ts +0 -646
- package/src/cmd/cloud/sandbox/fs/download.ts +0 -106
- package/src/cmd/cloud/sandbox/fs/index.ts +0 -36
- package/src/cmd/cloud/sandbox/fs/ls.ts +0 -131
- package/src/cmd/cloud/sandbox/fs/mkdir.ts +0 -70
- package/src/cmd/cloud/sandbox/fs/rm.ts +0 -62
- package/src/cmd/cloud/sandbox/fs/rmdir.ts +0 -75
- package/src/cmd/cloud/sandbox/fs/upload.ts +0 -95
- package/src/cmd/cloud/sandbox/get.ts +0 -187
- package/src/cmd/cloud/sandbox/index.ts +0 -62
- package/src/cmd/cloud/sandbox/job/create.ts +0 -63
- package/src/cmd/cloud/sandbox/job/destroy.ts +0 -67
- package/src/cmd/cloud/sandbox/job/get.ts +0 -78
- package/src/cmd/cloud/sandbox/job/index.ts +0 -42
- package/src/cmd/cloud/sandbox/job/list.ts +0 -81
- package/src/cmd/cloud/sandbox/job/logs.ts +0 -140
- package/src/cmd/cloud/sandbox/list.ts +0 -174
- package/src/cmd/cloud/sandbox/pause.ts +0 -60
- package/src/cmd/cloud/sandbox/resume.ts +0 -60
- package/src/cmd/cloud/sandbox/run.ts +0 -282
- package/src/cmd/cloud/sandbox/runtime/index.ts +0 -20
- package/src/cmd/cloud/sandbox/runtime/list.ts +0 -90
- package/src/cmd/cloud/sandbox/snapshot/build.ts +0 -1059
- package/src/cmd/cloud/sandbox/snapshot/create.ts +0 -143
- package/src/cmd/cloud/sandbox/snapshot/delete.ts +0 -80
- package/src/cmd/cloud/sandbox/snapshot/generate.ts +0 -147
- package/src/cmd/cloud/sandbox/snapshot/get.ts +0 -259
- package/src/cmd/cloud/sandbox/snapshot/index.ts +0 -46
- package/src/cmd/cloud/sandbox/snapshot/list.ts +0 -110
- package/src/cmd/cloud/sandbox/snapshot/tag.ts +0 -92
- package/src/cmd/cloud/sandbox/stats.ts +0 -88
- package/src/cmd/cloud/sandbox/util.ts +0 -145
- package/src/cmd/cloud/schedule/create.ts +0 -83
- package/src/cmd/cloud/schedule/delete.ts +0 -45
- package/src/cmd/cloud/schedule/delivery/get.ts +0 -85
- package/src/cmd/cloud/schedule/delivery/index.ts +0 -24
- package/src/cmd/cloud/schedule/delivery/list.ts +0 -83
- package/src/cmd/cloud/schedule/destination/create.ts +0 -123
- package/src/cmd/cloud/schedule/destination/delete.ts +0 -45
- package/src/cmd/cloud/schedule/destination/get.ts +0 -67
- package/src/cmd/cloud/schedule/destination/index.ts +0 -29
- package/src/cmd/cloud/schedule/destination/list.ts +0 -79
- package/src/cmd/cloud/schedule/get.ts +0 -103
- package/src/cmd/cloud/schedule/index.ts +0 -41
- package/src/cmd/cloud/schedule/list.ts +0 -79
- package/src/cmd/cloud/schedule/stats.ts +0 -78
- package/src/cmd/cloud/schedule/update.ts +0 -74
- package/src/cmd/cloud/schedule/util.ts +0 -28
- package/src/cmd/cloud/scp/download.ts +0 -113
- package/src/cmd/cloud/scp/index.ts +0 -21
- package/src/cmd/cloud/scp/upload.ts +0 -114
- package/src/cmd/cloud/services/index.ts +0 -11
- package/src/cmd/cloud/services/stats.ts +0 -205
- package/src/cmd/cloud/session/get.ts +0 -206
- package/src/cmd/cloud/session/index.ts +0 -17
- package/src/cmd/cloud/session/list.ts +0 -191
- package/src/cmd/cloud/session/logs.ts +0 -73
- package/src/cmd/cloud/ssh.ts +0 -114
- package/src/cmd/cloud/storage/config.ts +0 -245
- package/src/cmd/cloud/storage/create.ts +0 -125
- package/src/cmd/cloud/storage/delete.ts +0 -394
- package/src/cmd/cloud/storage/download.ts +0 -197
- package/src/cmd/cloud/storage/get.ts +0 -140
- package/src/cmd/cloud/storage/index.ts +0 -32
- package/src/cmd/cloud/storage/list.ts +0 -309
- package/src/cmd/cloud/storage/upload.ts +0 -210
- package/src/cmd/cloud/storage/utils.ts +0 -26
- package/src/cmd/cloud/stream/create.ts +0 -252
- package/src/cmd/cloud/stream/delete.ts +0 -79
- package/src/cmd/cloud/stream/get.ts +0 -157
- package/src/cmd/cloud/stream/index.ts +0 -35
- package/src/cmd/cloud/stream/list.ts +0 -195
- package/src/cmd/cloud/stream/stats.ts +0 -76
- package/src/cmd/cloud/stream/util.ts +0 -99
- package/src/cmd/cloud/task/attachment.ts +0 -432
- package/src/cmd/cloud/task/close.ts +0 -319
- package/src/cmd/cloud/task/create.ts +0 -280
- package/src/cmd/cloud/task/delete.ts +0 -314
- package/src/cmd/cloud/task/get.ts +0 -229
- package/src/cmd/cloud/task/index.ts +0 -80
- package/src/cmd/cloud/task/list.ts +0 -314
- package/src/cmd/cloud/task/project.ts +0 -227
- package/src/cmd/cloud/task/stats.ts +0 -80
- package/src/cmd/cloud/task/update.ts +0 -125
- package/src/cmd/cloud/task/user.ts +0 -202
- package/src/cmd/cloud/task/util.ts +0 -132
- package/src/cmd/cloud/thread/delete.ts +0 -47
- package/src/cmd/cloud/thread/get.ts +0 -96
- package/src/cmd/cloud/thread/index.ts +0 -18
- package/src/cmd/cloud/thread/list.ts +0 -144
- package/src/cmd/cloud/vector/delete-namespace.ts +0 -90
- package/src/cmd/cloud/vector/delete.ts +0 -117
- package/src/cmd/cloud/vector/get.ts +0 -116
- package/src/cmd/cloud/vector/index.ts +0 -40
- package/src/cmd/cloud/vector/list-namespaces.ts +0 -50
- package/src/cmd/cloud/vector/search.ts +0 -174
- package/src/cmd/cloud/vector/stats.ts +0 -209
- package/src/cmd/cloud/vector/upsert.ts +0 -244
- package/src/cmd/cloud/vector/util.ts +0 -41
- package/src/cmd/cloud/webhook/create.ts +0 -72
- package/src/cmd/cloud/webhook/delete.ts +0 -57
- package/src/cmd/cloud/webhook/deliveries.ts +0 -161
- package/src/cmd/cloud/webhook/destinations.ts +0 -286
- package/src/cmd/cloud/webhook/get.ts +0 -60
- package/src/cmd/cloud/webhook/index.ts +0 -46
- package/src/cmd/cloud/webhook/list.ts +0 -82
- package/src/cmd/cloud/webhook/receipts.ts +0 -170
- package/src/cmd/cloud/webhook/util.ts +0 -35
- package/src/cmd/cloud/workflow/get.ts +0 -58
- package/src/cmd/cloud/workflow/index.ts +0 -22
- package/src/cmd/cloud/workflow/list.ts +0 -84
- package/src/cmd/cloud/workflow/util.ts +0 -28
- package/src/cmd/coder/archive.ts +0 -59
- package/src/cmd/coder/create.ts +0 -291
- package/src/cmd/coder/delete.ts +0 -67
- package/src/cmd/coder/events.ts +0 -106
- package/src/cmd/coder/extension-path.ts +0 -71
- package/src/cmd/coder/get.ts +0 -199
- package/src/cmd/coder/index.ts +0 -81
- package/src/cmd/coder/list.ts +0 -106
- package/src/cmd/coder/loop.ts +0 -85
- package/src/cmd/coder/participants.ts +0 -100
- package/src/cmd/coder/replay.ts +0 -58
- package/src/cmd/coder/resolve-repo.ts +0 -119
- package/src/cmd/coder/skill/buckets.ts +0 -191
- package/src/cmd/coder/skill/delete.ts +0 -67
- package/src/cmd/coder/skill/index.ts +0 -35
- package/src/cmd/coder/skill/list.ts +0 -97
- package/src/cmd/coder/skill/save.ts +0 -84
- package/src/cmd/coder/start.ts +0 -459
- package/src/cmd/coder/tui-init.ts +0 -92
- package/src/cmd/coder/update.ts +0 -145
- package/src/cmd/coder/users.ts +0 -101
- package/src/cmd/coder/workspace/create.ts +0 -173
- package/src/cmd/coder/workspace/delete.ts +0 -70
- package/src/cmd/coder/workspace/get.ts +0 -112
- package/src/cmd/coder/workspace/index.ts +0 -40
- package/src/cmd/coder/workspace/list.ts +0 -101
- package/src/cmd/dev/index.ts +0 -212
- package/src/cmd/git/account/add.ts +0 -179
- package/src/cmd/git/account/index.ts +0 -10
- package/src/cmd/git/account/list.ts +0 -108
- package/src/cmd/git/account/remove.ts +0 -163
- package/src/cmd/git/api.ts +0 -444
- package/src/cmd/git/identity/connect.ts +0 -178
- package/src/cmd/git/identity/disconnect.ts +0 -103
- package/src/cmd/git/identity/index.ts +0 -10
- package/src/cmd/git/identity/status.ts +0 -96
- package/src/cmd/git/index.ts +0 -20
- package/src/cmd/git/link.ts +0 -465
- package/src/cmd/git/list.ts +0 -151
- package/src/cmd/git/status.ts +0 -159
- package/src/cmd/git/unlink.ts +0 -117
- package/src/cmd/help/index.ts +0 -26
- package/src/cmd/index.ts +0 -60
- package/src/cmd/profile/README.md +0 -80
- package/src/cmd/profile/create.ts +0 -113
- package/src/cmd/profile/current.ts +0 -31
- package/src/cmd/profile/delete.ts +0 -78
- package/src/cmd/profile/index.ts +0 -30
- package/src/cmd/profile/list.ts +0 -54
- package/src/cmd/profile/show.ts +0 -81
- package/src/cmd/profile/use.ts +0 -52
- package/src/cmd/project/add/database.ts +0 -196
- package/src/cmd/project/add/domain.ts +0 -187
- package/src/cmd/project/add/index.ts +0 -35
- package/src/cmd/project/add/storage.ts +0 -198
- package/src/cmd/project/create.ts +0 -132
- package/src/cmd/project/delete.ts +0 -188
- package/src/cmd/project/domain/check.ts +0 -153
- package/src/cmd/project/domain/index.ts +0 -20
- package/src/cmd/project/frameworks.ts +0 -219
- package/src/cmd/project/hostname/get.ts +0 -55
- package/src/cmd/project/hostname/index.ts +0 -18
- package/src/cmd/project/hostname/set.ts +0 -123
- package/src/cmd/project/import.ts +0 -170
- package/src/cmd/project/index.ts +0 -44
- package/src/cmd/project/list.ts +0 -55
- package/src/cmd/project/reconcile.ts +0 -755
- package/src/cmd/project/remote-import.ts +0 -1349
- package/src/cmd/project/scaffold.ts +0 -311
- package/src/cmd/project/show.ts +0 -74
- package/src/cmd/project/template-flow.ts +0 -679
- package/src/cmd/project/templates/astro/src/pages/api/translate.ts +0 -22
- package/src/cmd/project/templates/astro/src/pages/index.astro +0 -160
- package/src/cmd/project/templates/hono/src/index.ts +0 -103
- package/src/cmd/project/templates/nextjs/src/app/api/translate/route.ts +0 -19
- package/src/cmd/project/templates/nextjs/src/app/page.tsx +0 -234
- package/src/cmd/project/templates/nuxt/app.vue +0 -191
- package/src/cmd/project/templates/nuxt/server/api/translate.post.ts +0 -18
- package/src/cmd/project/templates/remix/app/routes/api.translate.ts +0 -24
- package/src/cmd/project/templates/remix/app/routes/home.tsx +0 -241
- package/src/cmd/project/templates/sveltekit/src/routes/+page.server.ts +0 -24
- package/src/cmd/project/templates/sveltekit/src/routes/+page.svelte +0 -204
- package/src/cmd/project/templates/vite-react/server.ts +0 -39
- package/src/cmd/project/templates/vite-react/src/App.tsx +0 -241
- package/src/cmd/repl/index.ts +0 -477
- package/src/cmd/setup/index.ts +0 -93
- package/src/cmd/support/index.ts +0 -11
- package/src/cmd/support/logs/index.ts +0 -9
- package/src/cmd/support/logs/path.ts +0 -56
- package/src/cmd/support/logs/show.ts +0 -144
- package/src/cmd/support/report.ts +0 -427
- package/src/cmd/support/system.ts +0 -136
- package/src/cmd/upgrade/index.ts +0 -308
- package/src/cmd/upgrade/npm-availability.test.ts +0 -57
- package/src/cmd/upgrade/npm-availability.ts +0 -261
- package/src/cmd/version/index.ts +0 -42
- package/src/coder-hub-url.ts +0 -32
- package/src/command-prefix.ts +0 -34
- package/src/composite-logger.ts +0 -86
- package/src/config.ts +0 -923
- package/src/crypto/box.ts +0 -529
- package/src/deploy-metadata.ts +0 -253
- package/src/domain.ts +0 -378
- package/src/download.ts +0 -105
- package/src/env-util.ts +0 -466
- package/src/errors.ts +0 -288
- package/src/explain.ts +0 -126
- package/src/git-helper.ts +0 -74
- package/src/index.ts +0 -128
- package/src/internal-logger.ts +0 -599
- package/src/json.ts +0 -28
- package/src/keychain.ts +0 -205
- package/src/log-collector.ts +0 -77
- package/src/onboarding/agentPrompt.ts +0 -260
- package/src/output.ts +0 -359
- package/src/program-ref.ts +0 -11
- package/src/regions.ts +0 -95
- package/src/repl.ts +0 -1523
- package/src/runtime-bootstrap.md +0 -160
- package/src/runtime.ts +0 -36
- package/src/schema-generator.ts +0 -443
- package/src/schema-parser.ts +0 -550
- package/src/sound.ts +0 -30
- package/src/steps.ts +0 -748
- package/src/terminal.ts +0 -151
- package/src/tsc-output-parser.ts +0 -1138
- package/src/tui/box.ts +0 -319
- package/src/tui/colors.ts +0 -112
- package/src/tui/group.ts +0 -56
- package/src/tui/prompt.ts +0 -578
- package/src/tui/symbols.ts +0 -75
- package/src/tui.md +0 -254
- package/src/tui.ts +0 -2266
- package/src/types/md.d.ts +0 -8
- package/src/types.ts +0 -608
- package/src/typescript-errors.ts +0 -422
- package/src/utils/apt-validator.ts +0 -215
- package/src/utils/date.ts +0 -66
- package/src/utils/deps.ts +0 -219
- package/src/utils/format.ts +0 -17
- package/src/utils/git.ts +0 -209
- package/src/utils/installation-type.ts +0 -106
- package/src/utils/jsonc.ts +0 -67
- package/src/utils/normalize-path.ts +0 -12
- package/src/utils/stream-url.ts +0 -226
- package/src/utils/zip.ts +0 -68
- package/src/version-check.ts +0 -329
- package/src/version.ts +0 -57
- /package/{src → dist}/cmd/ai/prompt/api.md +0 -0
- /package/{src → dist}/cmd/ai/prompt/web.md +0 -0
- /package/{src → dist}/cmd/project/templates/nextjs/src/app/globals.css +0 -0
- /package/{src → dist}/cmd/project/templates/vite-react/src/index.css +0 -0
- /package/{src → dist}/cmd/project/templates/vite-react/src/main.tsx +0 -0
- /package/{src → dist}/cmd/project/templates/vite-react/vite.config.ts +0 -0
|
@@ -1,1349 +0,0 @@
|
|
|
1
|
-
import { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, rmSync } from 'node:fs';
|
|
2
|
-
import { tmpdir } from 'node:os';
|
|
3
|
-
import { join } from 'node:path';
|
|
4
|
-
import { type Logger, parseEnvExample, StructuredError } from '@agentuity/core';
|
|
5
|
-
import {
|
|
6
|
-
createQueue,
|
|
7
|
-
createResources,
|
|
8
|
-
listOrganizations,
|
|
9
|
-
listQueues,
|
|
10
|
-
listResources,
|
|
11
|
-
projectCreate,
|
|
12
|
-
validateDatabaseName,
|
|
13
|
-
} from '@agentuity/server';
|
|
14
|
-
import type { APIClient } from '../../api';
|
|
15
|
-
import { isTTY } from '../../auth';
|
|
16
|
-
import {
|
|
17
|
-
createProjectConfig,
|
|
18
|
-
getCatalystAPIClient,
|
|
19
|
-
getGlobalCatalystAPIClient,
|
|
20
|
-
} from '../../config';
|
|
21
|
-
import { addResourceEnvVars } from '../../env-util';
|
|
22
|
-
import { getDefaultBranch, isGitAvailable } from '../../git-helper';
|
|
23
|
-
import { fetchRegionsWithCache } from '../../regions';
|
|
24
|
-
import * as tui from '../../tui';
|
|
25
|
-
import { createPrompt } from '../../tui';
|
|
26
|
-
import type { AuthData, Config } from '../../types';
|
|
27
|
-
import {
|
|
28
|
-
checkGithubRepo,
|
|
29
|
-
createGithubRepo,
|
|
30
|
-
getGithubBotIdentity,
|
|
31
|
-
getGithubToken,
|
|
32
|
-
linkProjectToRepo,
|
|
33
|
-
} from '../git/api';
|
|
34
|
-
import { initGitRepo } from './scaffold';
|
|
35
|
-
|
|
36
|
-
// ─── Structured Errors ───
|
|
37
|
-
|
|
38
|
-
const RemoteImportInvalidURLError = StructuredError('RemoteImportInvalidURLError');
|
|
39
|
-
const RemoteImportUnsupportedHostError = StructuredError('RemoteImportUnsupportedHostError');
|
|
40
|
-
const RemoteImportDownloadError = StructuredError('RemoteImportDownloadError');
|
|
41
|
-
const RemoteImportExtractError = StructuredError('RemoteImportExtractError');
|
|
42
|
-
const RemoteImportNoOrganizationError = StructuredError(
|
|
43
|
-
'RemoteImportNoOrganizationError',
|
|
44
|
-
'No organizations found for your account'
|
|
45
|
-
);
|
|
46
|
-
const RemoteImportNoRegionError = StructuredError(
|
|
47
|
-
'RemoteImportNoRegionError',
|
|
48
|
-
'No cloud regions available'
|
|
49
|
-
);
|
|
50
|
-
const RemoteImportInvalidRepoError = StructuredError('RemoteImportInvalidRepoError');
|
|
51
|
-
const RemoteImportGitError = StructuredError('RemoteImportGitError');
|
|
52
|
-
const RemoteImportDeployError = StructuredError('RemoteImportDeployError');
|
|
53
|
-
const RemoteImportDirectoryNotFoundError = StructuredError('RemoteImportDirectoryNotFoundError');
|
|
54
|
-
const RemoteImportConfigError = StructuredError('RemoteImportConfigError');
|
|
55
|
-
|
|
56
|
-
export interface RemoteImportOptions {
|
|
57
|
-
url: string;
|
|
58
|
-
deploy: boolean;
|
|
59
|
-
projectId?: string;
|
|
60
|
-
repo?: string;
|
|
61
|
-
name?: string;
|
|
62
|
-
env?: string[];
|
|
63
|
-
org?: string;
|
|
64
|
-
region?: string;
|
|
65
|
-
/** If true, skip confirmation prompts (--confirm flag) */
|
|
66
|
-
confirm?: boolean;
|
|
67
|
-
apiClient: APIClient;
|
|
68
|
-
auth: AuthData;
|
|
69
|
-
config: Config;
|
|
70
|
-
logger: Logger;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface ParsedGitHubUrl {
|
|
74
|
-
owner: string;
|
|
75
|
-
repo: string;
|
|
76
|
-
branch: string;
|
|
77
|
-
directory?: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Sanitize a string by removing any embedded GitHub tokens from URLs.
|
|
82
|
-
* Prevents token leakage in error messages and logs.
|
|
83
|
-
*/
|
|
84
|
-
function sanitizeTokens(msg: string): string {
|
|
85
|
-
return msg.replace(/x-access-token:[^@]+@/g, 'x-access-token:***@');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Build GitHub API request headers, using the Agentuity-managed GitHub token
|
|
90
|
-
* when available, falling back to the GITHUB_TOKEN env var.
|
|
91
|
-
*/
|
|
92
|
-
async function githubHeaders(apiClient: APIClient): Promise<Record<string, string>> {
|
|
93
|
-
const headers: Record<string, string> = {
|
|
94
|
-
Accept: 'application/vnd.github+json',
|
|
95
|
-
'User-Agent': 'Agentuity-CLI',
|
|
96
|
-
};
|
|
97
|
-
try {
|
|
98
|
-
const { token } = await getGithubToken(apiClient);
|
|
99
|
-
headers.Authorization = `Bearer ${token}`;
|
|
100
|
-
} catch {
|
|
101
|
-
// Fallback to GITHUB_TOKEN env var
|
|
102
|
-
const githubToken = process.env.GITHUB_TOKEN;
|
|
103
|
-
if (githubToken) {
|
|
104
|
-
headers.Authorization = `Bearer ${githubToken}`;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return headers;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Fetch the default branch of a GitHub repository via the API.
|
|
112
|
-
* Falls back to 'main' on any error.
|
|
113
|
-
*/
|
|
114
|
-
async function fetchDefaultBranch(
|
|
115
|
-
owner: string,
|
|
116
|
-
repo: string,
|
|
117
|
-
apiClient: APIClient
|
|
118
|
-
): Promise<string> {
|
|
119
|
-
try {
|
|
120
|
-
const headers = await githubHeaders(apiClient);
|
|
121
|
-
const resp = await fetch(`https://api.github.com/repos/${owner}/${repo}`, {
|
|
122
|
-
headers,
|
|
123
|
-
});
|
|
124
|
-
if (!resp.ok) return 'main';
|
|
125
|
-
const data = (await resp.json()) as { default_branch?: string };
|
|
126
|
-
return data.default_branch ?? 'main';
|
|
127
|
-
} catch {
|
|
128
|
-
return 'main';
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Parse a GitHub URL into its components.
|
|
134
|
-
*
|
|
135
|
-
* Supported formats:
|
|
136
|
-
* https://github.com/owner/repo
|
|
137
|
-
* https://github.com/owner/repo/tree/branch
|
|
138
|
-
* https://github.com/owner/repo/tree/branch/path/to/dir
|
|
139
|
-
*
|
|
140
|
-
* When the URL does not include a branch (no `/tree/…` segment), the GitHub
|
|
141
|
-
* API is queried to discover the repository's default branch.
|
|
142
|
-
*/
|
|
143
|
-
export async function parseGitHubUrl(url: string, apiClient: APIClient): Promise<ParsedGitHubUrl> {
|
|
144
|
-
let parsed: URL;
|
|
145
|
-
try {
|
|
146
|
-
parsed = new URL(url);
|
|
147
|
-
} catch {
|
|
148
|
-
throw new RemoteImportInvalidURLError({ message: `Invalid URL: ${url}` });
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
if (parsed.hostname !== 'github.com') {
|
|
152
|
-
throw new RemoteImportUnsupportedHostError({
|
|
153
|
-
message: `Only GitHub URLs are supported. Got: ${parsed.hostname}`,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// pathname is like /owner/repo or /owner/repo/tree/branch/path
|
|
158
|
-
const parts = parsed.pathname.replace(/^\//, '').replace(/\/$/, '').split('/');
|
|
159
|
-
|
|
160
|
-
if (parts.length < 2) {
|
|
161
|
-
throw new RemoteImportInvalidURLError({
|
|
162
|
-
message: `Invalid GitHub URL: expected at least owner/repo in path. Got: ${parsed.pathname}`,
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const owner = parts[0]!;
|
|
167
|
-
// Strip .git suffix from repo name if present
|
|
168
|
-
const repo = parts[1]!.replace(/\.git$/, '');
|
|
169
|
-
|
|
170
|
-
let branch: string;
|
|
171
|
-
let directory: string | undefined;
|
|
172
|
-
|
|
173
|
-
// /owner/repo/tree/branch[/path/to/dir]
|
|
174
|
-
if (parts.length >= 4 && parts[2] === 'tree') {
|
|
175
|
-
branch = parts[3]!;
|
|
176
|
-
if (parts.length > 4) {
|
|
177
|
-
directory = parts.slice(4).join('/');
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
// No branch in URL — ask GitHub for the repo's default branch
|
|
181
|
-
branch = await fetchDefaultBranch(owner, repo, apiClient);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return { owner, repo, branch, directory };
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Download and extract a GitHub repository zipball to a temp directory.
|
|
189
|
-
* Returns the path to the extracted content root.
|
|
190
|
-
*/
|
|
191
|
-
async function downloadAndExtract(
|
|
192
|
-
parsed: ParsedGitHubUrl,
|
|
193
|
-
apiClient: APIClient,
|
|
194
|
-
logger: Logger
|
|
195
|
-
): Promise<{ extractDir: string; tempDir: string }> {
|
|
196
|
-
const { owner, repo, branch } = parsed;
|
|
197
|
-
const zipUrl = `https://api.github.com/repos/${owner}/${repo}/zipball/${branch}`;
|
|
198
|
-
|
|
199
|
-
logger.debug('[remote-import] Downloading zipball from: %s', zipUrl);
|
|
200
|
-
|
|
201
|
-
const tempDir = mkdtempSync(join(tmpdir(), 'agentuity-remote-'));
|
|
202
|
-
|
|
203
|
-
try {
|
|
204
|
-
const zipPath = join(tempDir, 'download.zip');
|
|
205
|
-
|
|
206
|
-
// Download the zipball
|
|
207
|
-
const headers = await githubHeaders(apiClient);
|
|
208
|
-
await tui.spinner({
|
|
209
|
-
message: `Downloading ${owner}/${repo}...`,
|
|
210
|
-
clearOnSuccess: true,
|
|
211
|
-
callback: async () => {
|
|
212
|
-
const resp = await fetch(zipUrl, {
|
|
213
|
-
headers,
|
|
214
|
-
redirect: 'follow',
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
if (!resp.ok) {
|
|
218
|
-
throw new RemoteImportDownloadError({
|
|
219
|
-
message: `Failed to download from GitHub: ${resp.status} ${resp.statusText}`,
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
const buffer = Buffer.from(await resp.arrayBuffer());
|
|
224
|
-
await Bun.write(zipPath, buffer);
|
|
225
|
-
logger.debug('[remote-import] Downloaded %d bytes to %s', buffer.length, zipPath);
|
|
226
|
-
|
|
227
|
-
return resp;
|
|
228
|
-
},
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
// Extract the zip
|
|
232
|
-
const extractDir = join(tempDir, 'extracted');
|
|
233
|
-
mkdirSync(extractDir, { recursive: true });
|
|
234
|
-
|
|
235
|
-
await tui.spinner({
|
|
236
|
-
message: 'Extracting template...',
|
|
237
|
-
clearOnSuccess: true,
|
|
238
|
-
callback: async () => {
|
|
239
|
-
// Use Bun's built-in unzip via subprocess
|
|
240
|
-
const proc = Bun.spawnSync(['unzip', '-q', '-o', zipPath, '-d', extractDir], {
|
|
241
|
-
stdout: 'pipe',
|
|
242
|
-
stderr: 'pipe',
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
if (proc.exitCode !== 0) {
|
|
246
|
-
const stderr = proc.stderr.toString();
|
|
247
|
-
throw new RemoteImportExtractError({
|
|
248
|
-
message: `Failed to extract zip: ${stderr}`,
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
logger.debug('[remote-import] Extracted to %s', extractDir);
|
|
253
|
-
},
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
// GitHub zipball creates a top-level directory like "owner-repo-sha/"
|
|
257
|
-
// We need to find it and return its path
|
|
258
|
-
const entries = readdirSync(extractDir);
|
|
259
|
-
if (entries.length === 1 && entries[0]) {
|
|
260
|
-
const innerDir = join(extractDir, entries[0]);
|
|
261
|
-
return { extractDir: innerDir, tempDir };
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
return { extractDir, tempDir };
|
|
265
|
-
} catch (err) {
|
|
266
|
-
// Clean up temp directory on failure to prevent leaks
|
|
267
|
-
try {
|
|
268
|
-
rmSync(tempDir, { recursive: true, force: true });
|
|
269
|
-
} catch {
|
|
270
|
-
// Ignore cleanup errors
|
|
271
|
-
}
|
|
272
|
-
throw err;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Look for agentuity.yaml in the extracted content and parse it.
|
|
278
|
-
* Returns the parsed content or null if not found.
|
|
279
|
-
*/
|
|
280
|
-
async function findAgentuityYaml(
|
|
281
|
-
dir: string,
|
|
282
|
-
logger: Logger
|
|
283
|
-
): Promise<Record<string, unknown> | null> {
|
|
284
|
-
const yamlPath = join(dir, 'agentuity.yaml');
|
|
285
|
-
const file = Bun.file(yamlPath);
|
|
286
|
-
|
|
287
|
-
if (!(await file.exists())) {
|
|
288
|
-
logger.debug('[remote-import] No agentuity.yaml found at %s', yamlPath);
|
|
289
|
-
return null;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
try {
|
|
293
|
-
const { YAML } = await import('bun');
|
|
294
|
-
const content = await file.text();
|
|
295
|
-
const parsed = YAML.parse(content) as Record<string, unknown>;
|
|
296
|
-
logger.debug('[remote-import] Parsed agentuity.yaml: %o', parsed);
|
|
297
|
-
return parsed;
|
|
298
|
-
} catch (err) {
|
|
299
|
-
logger.debug('[remote-import] Failed to parse agentuity.yaml: %o', err);
|
|
300
|
-
return null;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Create a project via the API in non-interactive mode using the provided name.
|
|
306
|
-
*/
|
|
307
|
-
async function createProjectNonInteractive(
|
|
308
|
-
apiClient: APIClient,
|
|
309
|
-
config: Config,
|
|
310
|
-
logger: Logger,
|
|
311
|
-
name: string,
|
|
312
|
-
region?: string,
|
|
313
|
-
orgOverride?: string
|
|
314
|
-
): Promise<{ id: string; sdkKey: string; orgId: string; region: string }> {
|
|
315
|
-
// Fetch orgs — use the first one in non-interactive mode
|
|
316
|
-
const orgs = await listOrganizations(apiClient);
|
|
317
|
-
if (orgs.length === 0) {
|
|
318
|
-
throw new RemoteImportNoOrganizationError();
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
const firstOrg = orgs[0];
|
|
322
|
-
if (!firstOrg) {
|
|
323
|
-
throw new RemoteImportNoOrganizationError();
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
const orgId = orgOverride ?? config.preferences?.orgId ?? firstOrg.id;
|
|
327
|
-
|
|
328
|
-
// Determine region
|
|
329
|
-
let selectedRegion = region;
|
|
330
|
-
if (!selectedRegion) {
|
|
331
|
-
selectedRegion = process.env.AGENTUITY_REGION ?? config.preferences?.region;
|
|
332
|
-
}
|
|
333
|
-
if (!selectedRegion) {
|
|
334
|
-
const regions = await fetchRegionsWithCache(config.name, apiClient, logger);
|
|
335
|
-
const firstRegion = regions[0];
|
|
336
|
-
if (!firstRegion) {
|
|
337
|
-
throw new RemoteImportNoRegionError();
|
|
338
|
-
}
|
|
339
|
-
selectedRegion = firstRegion.region;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
const newProject = await tui.spinner({
|
|
343
|
-
message: 'Creating project...',
|
|
344
|
-
clearOnSuccess: true,
|
|
345
|
-
callback: async () => {
|
|
346
|
-
return projectCreate(apiClient, {
|
|
347
|
-
name,
|
|
348
|
-
orgId,
|
|
349
|
-
cloudRegion: selectedRegion,
|
|
350
|
-
});
|
|
351
|
-
},
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
return {
|
|
355
|
-
id: newProject.id,
|
|
356
|
-
sdkKey: newProject.sdkKey,
|
|
357
|
-
orgId,
|
|
358
|
-
region: selectedRegion,
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Create a project interactively — select org, region, name via TUI prompts.
|
|
364
|
-
*/
|
|
365
|
-
async function createProjectInteractive(
|
|
366
|
-
apiClient: APIClient,
|
|
367
|
-
config: Config,
|
|
368
|
-
logger: Logger,
|
|
369
|
-
defaultName?: string
|
|
370
|
-
): Promise<{ id: string; sdkKey: string; orgId: string; region: string }> {
|
|
371
|
-
// Fetch orgs
|
|
372
|
-
const orgs = await tui.spinner({
|
|
373
|
-
message: 'Fetching organizations...',
|
|
374
|
-
clearOnSuccess: true,
|
|
375
|
-
callback: () => listOrganizations(apiClient),
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
if (orgs.length === 0) {
|
|
379
|
-
throw new RemoteImportNoOrganizationError();
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
// Select org
|
|
383
|
-
const orgId = await tui.selectOrganization(orgs, config.preferences?.orgId);
|
|
384
|
-
|
|
385
|
-
// Fetch and select region
|
|
386
|
-
const regions = await tui.spinner({
|
|
387
|
-
message: 'Fetching regions...',
|
|
388
|
-
clearOnSuccess: true,
|
|
389
|
-
callback: () => fetchRegionsWithCache(config.name, apiClient, logger),
|
|
390
|
-
});
|
|
391
|
-
|
|
392
|
-
let selectedRegion: string;
|
|
393
|
-
if (regions.length === 1 && regions[0]) {
|
|
394
|
-
selectedRegion = regions[0].region;
|
|
395
|
-
} else {
|
|
396
|
-
const prompt = tui.createPrompt();
|
|
397
|
-
const options = regions.map((r) => ({
|
|
398
|
-
value: r.region,
|
|
399
|
-
label: `${r.description} (${r.region})`,
|
|
400
|
-
}));
|
|
401
|
-
const firstOption = options[0];
|
|
402
|
-
selectedRegion = await prompt.select({
|
|
403
|
-
message: 'Select a region:',
|
|
404
|
-
options,
|
|
405
|
-
initial: firstOption?.value ?? '',
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
// Get project name
|
|
410
|
-
const prompt = tui.createPrompt();
|
|
411
|
-
const projectName = await prompt.text({
|
|
412
|
-
message: 'Project name:',
|
|
413
|
-
initial: defaultName,
|
|
414
|
-
validate: (value: string) => {
|
|
415
|
-
if (!value || value.trim().length === 0) {
|
|
416
|
-
return 'Project name is required';
|
|
417
|
-
}
|
|
418
|
-
return true;
|
|
419
|
-
},
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
// Create the project
|
|
423
|
-
const newProject = await tui.spinner({
|
|
424
|
-
message: 'Registering project...',
|
|
425
|
-
clearOnSuccess: true,
|
|
426
|
-
callback: async () => {
|
|
427
|
-
return projectCreate(apiClient, {
|
|
428
|
-
name: projectName,
|
|
429
|
-
orgId,
|
|
430
|
-
cloudRegion: selectedRegion,
|
|
431
|
-
});
|
|
432
|
-
},
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
return {
|
|
436
|
-
id: newProject.id,
|
|
437
|
-
sdkKey: newProject.sdkKey,
|
|
438
|
-
orgId,
|
|
439
|
-
region: selectedRegion,
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Parse a repo URL or "owner/name" string into owner and name components.
|
|
445
|
-
* Supports:
|
|
446
|
-
* - https://github.com/owner/repo
|
|
447
|
-
* - https://github.com/owner/repo.git
|
|
448
|
-
* - owner/repo
|
|
449
|
-
*/
|
|
450
|
-
function parseRepoTarget(repo: string): { owner: string; name: string } {
|
|
451
|
-
// Try as a URL first
|
|
452
|
-
try {
|
|
453
|
-
const parsed = new URL(repo);
|
|
454
|
-
if (parsed.hostname === 'github.com') {
|
|
455
|
-
const parts = parsed.pathname.replace(/^\//, '').replace(/\/$/, '').split('/');
|
|
456
|
-
if (parts.length >= 2 && parts[0] && parts[1]) {
|
|
457
|
-
return { owner: parts[0], name: parts[1].replace(/\.git$/, '') };
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
} catch {
|
|
461
|
-
// Not a URL — try "owner/name" format
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
const parts = repo.split('/');
|
|
465
|
-
if (parts.length === 2 && parts[0] && parts[1]) {
|
|
466
|
-
return { owner: parts[0], name: parts[1].replace(/\.git$/, '') };
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
throw new RemoteImportInvalidRepoError({
|
|
470
|
-
message: `Invalid repo target: "${repo}". Expected a GitHub URL (https://github.com/owner/repo) or owner/repo format.`,
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Create a GitHub repo via the API. Preflight check already verified it doesn't exist.
|
|
476
|
-
* Returns the HTTPS URL of the repo.
|
|
477
|
-
*/
|
|
478
|
-
async function createGithubRepoForImport(
|
|
479
|
-
apiClient: APIClient,
|
|
480
|
-
repo: string,
|
|
481
|
-
_logger: Logger
|
|
482
|
-
): Promise<string> {
|
|
483
|
-
const { owner, name } = parseRepoTarget(repo);
|
|
484
|
-
|
|
485
|
-
const createResult = await tui.spinner({
|
|
486
|
-
message: `Creating repository ${owner}/${name}...`,
|
|
487
|
-
clearOnSuccess: true,
|
|
488
|
-
callback: () =>
|
|
489
|
-
createGithubRepo(apiClient, {
|
|
490
|
-
name,
|
|
491
|
-
owner,
|
|
492
|
-
private: true,
|
|
493
|
-
}),
|
|
494
|
-
});
|
|
495
|
-
|
|
496
|
-
tui.success(`Created repository ${createResult.fullName}`);
|
|
497
|
-
return createResult.url;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Push the working directory to a remote git repository.
|
|
502
|
-
*/
|
|
503
|
-
async function pushToRepo(
|
|
504
|
-
dest: string,
|
|
505
|
-
repoUrl: string,
|
|
506
|
-
apiClient: APIClient,
|
|
507
|
-
logger: Logger
|
|
508
|
-
): Promise<void> {
|
|
509
|
-
const gitAvailable = await isGitAvailable();
|
|
510
|
-
if (!gitAvailable) {
|
|
511
|
-
tui.warning('Git is not available — skipping git push.');
|
|
512
|
-
return;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
const defaultBranch = (await getDefaultBranch()) || 'main';
|
|
516
|
-
|
|
517
|
-
// Get GitHub token from Agentuity API (uses stored OAuth token)
|
|
518
|
-
let remoteUrl = repoUrl;
|
|
519
|
-
try {
|
|
520
|
-
const { token } = await getGithubToken(apiClient);
|
|
521
|
-
const parsed = new URL(repoUrl);
|
|
522
|
-
if (parsed.hostname === 'github.com') {
|
|
523
|
-
remoteUrl = `https://x-access-token:${token}@github.com${parsed.pathname}`;
|
|
524
|
-
if (!remoteUrl.endsWith('.git')) {
|
|
525
|
-
remoteUrl += '.git';
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
} catch (err) {
|
|
529
|
-
logger.debug(
|
|
530
|
-
'[remote-import] Could not get GitHub token from API, trying without auth: %o',
|
|
531
|
-
err
|
|
532
|
-
);
|
|
533
|
-
// Fall through — push will likely fail for private repos but may work for public
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
await tui.spinner({
|
|
537
|
-
message: 'Pushing to remote repository...',
|
|
538
|
-
clearOnSuccess: true,
|
|
539
|
-
callback: async () => {
|
|
540
|
-
// Add remote origin
|
|
541
|
-
const addRemote = Bun.spawnSync(['git', 'remote', 'add', 'origin', remoteUrl], {
|
|
542
|
-
cwd: dest,
|
|
543
|
-
stdout: 'pipe',
|
|
544
|
-
stderr: 'pipe',
|
|
545
|
-
});
|
|
546
|
-
|
|
547
|
-
if (addRemote.exitCode !== 0) {
|
|
548
|
-
// Remote might already exist, try set-url instead
|
|
549
|
-
const setUrl = Bun.spawnSync(['git', 'remote', 'set-url', 'origin', remoteUrl], {
|
|
550
|
-
cwd: dest,
|
|
551
|
-
stdout: 'pipe',
|
|
552
|
-
stderr: 'pipe',
|
|
553
|
-
});
|
|
554
|
-
if (setUrl.exitCode !== 0) {
|
|
555
|
-
throw new RemoteImportGitError({
|
|
556
|
-
message: `Failed to set git remote: ${sanitizeTokens(setUrl.stderr.toString())}`,
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
// Push to remote
|
|
562
|
-
const push = Bun.spawnSync(['git', 'push', '-u', 'origin', defaultBranch], {
|
|
563
|
-
cwd: dest,
|
|
564
|
-
stdout: 'pipe',
|
|
565
|
-
stderr: 'pipe',
|
|
566
|
-
});
|
|
567
|
-
|
|
568
|
-
if (push.exitCode !== 0) {
|
|
569
|
-
throw new RemoteImportGitError({
|
|
570
|
-
message: `Failed to push to remote: ${sanitizeTokens(push.stderr.toString())}`,
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
logger.debug('[remote-import] Pushed to %s on branch %s', repoUrl, defaultBranch);
|
|
575
|
-
},
|
|
576
|
-
});
|
|
577
|
-
|
|
578
|
-
tui.success(`Pushed to ${repoUrl}`);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Run the deploy command as a subprocess.
|
|
583
|
-
*
|
|
584
|
-
* Uses `bunx agentuity deploy …` to match the fork-wrapper pattern used
|
|
585
|
-
* elsewhere in the CLI (see deploy-fork.ts). This avoids relying on
|
|
586
|
-
* `agentuity` being independently available on PATH.
|
|
587
|
-
*/
|
|
588
|
-
async function runDeploy(dest: string, logger: Logger): Promise<void> {
|
|
589
|
-
tui.info('Deploying project...');
|
|
590
|
-
|
|
591
|
-
const args = ['bunx', 'agentuity', 'deploy', '--trigger', 'cli', '--event', 'manual'];
|
|
592
|
-
|
|
593
|
-
logger.debug('[remote-import] Running deploy: %s', args.join(' '));
|
|
594
|
-
|
|
595
|
-
const proc = Bun.spawn(args, {
|
|
596
|
-
cwd: dest,
|
|
597
|
-
stdout: 'inherit',
|
|
598
|
-
stderr: 'inherit',
|
|
599
|
-
env: {
|
|
600
|
-
...process.env,
|
|
601
|
-
},
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
const exitCode = await proc.exited;
|
|
605
|
-
if (exitCode !== 0) {
|
|
606
|
-
throw new RemoteImportDeployError({
|
|
607
|
-
message: `Deploy failed with exit code ${exitCode}`,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Run the remote import flow: download from GitHub, set up project, optionally push and deploy.
|
|
614
|
-
*/
|
|
615
|
-
export async function runRemoteImport(options: RemoteImportOptions): Promise<void> {
|
|
616
|
-
const {
|
|
617
|
-
url,
|
|
618
|
-
deploy,
|
|
619
|
-
projectId,
|
|
620
|
-
repo,
|
|
621
|
-
name,
|
|
622
|
-
env,
|
|
623
|
-
org,
|
|
624
|
-
region: optRegion,
|
|
625
|
-
apiClient,
|
|
626
|
-
auth,
|
|
627
|
-
config,
|
|
628
|
-
logger,
|
|
629
|
-
} = options;
|
|
630
|
-
|
|
631
|
-
// Safety check: refuse to run inside an existing git repo
|
|
632
|
-
try {
|
|
633
|
-
const result = Bun.spawnSync(['git', 'rev-parse', '--is-inside-work-tree'], {
|
|
634
|
-
cwd: process.cwd(),
|
|
635
|
-
stdout: 'pipe',
|
|
636
|
-
stderr: 'pipe',
|
|
637
|
-
});
|
|
638
|
-
if (result.exitCode === 0 && result.stdout.toString().trim() === 'true') {
|
|
639
|
-
tui.fatal(
|
|
640
|
-
'Cannot run remote import inside an existing git repository. Please run from an empty directory.'
|
|
641
|
-
);
|
|
642
|
-
}
|
|
643
|
-
} catch {
|
|
644
|
-
// git not found or command failed — not inside a repo, which is fine
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
// 1. Parse GitHub URL (async — may query GitHub API for default branch)
|
|
648
|
-
const parsed = await parseGitHubUrl(url, apiClient);
|
|
649
|
-
logger.debug(
|
|
650
|
-
'[remote-import] Parsed URL: owner=%s repo=%s branch=%s dir=%s',
|
|
651
|
-
parsed.owner,
|
|
652
|
-
parsed.repo,
|
|
653
|
-
parsed.branch,
|
|
654
|
-
parsed.directory ?? '(root)'
|
|
655
|
-
);
|
|
656
|
-
|
|
657
|
-
// ── Preflight checks (all before any mutations) ──
|
|
658
|
-
|
|
659
|
-
// Check: target directory doesn't already exist
|
|
660
|
-
const projectDirName = name ?? parsed.repo;
|
|
661
|
-
const dest = join(process.cwd(), projectDirName);
|
|
662
|
-
if (existsSync(dest)) {
|
|
663
|
-
tui.fatal(
|
|
664
|
-
`Directory "${projectDirName}" already exists. Choose a different name with --name.`
|
|
665
|
-
);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
// Check: target GitHub repo doesn't already exist
|
|
669
|
-
if (repo) {
|
|
670
|
-
const { owner: repoOwner, name: repoName } = parseRepoTarget(repo);
|
|
671
|
-
const checkResult = await tui.spinner({
|
|
672
|
-
message: `Checking repository ${repoOwner}/${repoName}...`,
|
|
673
|
-
clearOnSuccess: true,
|
|
674
|
-
callback: () => checkGithubRepo(apiClient, { owner: repoOwner, name: repoName }),
|
|
675
|
-
});
|
|
676
|
-
if (checkResult.exists) {
|
|
677
|
-
tui.fatal(
|
|
678
|
-
`Repository ${repoOwner}/${repoName} already exists. Use a different name or delete the existing repo first.`
|
|
679
|
-
);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
// ── All checks passed — start doing work ──
|
|
684
|
-
|
|
685
|
-
// 2. Download and extract template source
|
|
686
|
-
let tempDir: string | undefined;
|
|
687
|
-
let sourceDir: string;
|
|
688
|
-
|
|
689
|
-
try {
|
|
690
|
-
const result = await downloadAndExtract(parsed, apiClient, logger);
|
|
691
|
-
tempDir = result.tempDir;
|
|
692
|
-
sourceDir = result.extractDir;
|
|
693
|
-
|
|
694
|
-
// If a specific directory was specified in the URL, navigate into it
|
|
695
|
-
if (parsed.directory) {
|
|
696
|
-
const subDir = join(sourceDir, parsed.directory);
|
|
697
|
-
if (!existsSync(subDir)) {
|
|
698
|
-
throw new RemoteImportDirectoryNotFoundError({
|
|
699
|
-
message: `Directory "${parsed.directory}" not found in the repository.`,
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
sourceDir = subDir;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
// 3. Find and parse agentuity.yaml (informational, for future use)
|
|
706
|
-
const yamlConfig = await findAgentuityYaml(sourceDir, logger);
|
|
707
|
-
if (yamlConfig) {
|
|
708
|
-
tui.info('Found agentuity.yaml in template.');
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
// 4. Project setup
|
|
712
|
-
let projectInfo: {
|
|
713
|
-
id: string;
|
|
714
|
-
sdkKey: string;
|
|
715
|
-
orgId: string;
|
|
716
|
-
region: string;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
if (projectId) {
|
|
720
|
-
// --project-id was provided: skip creation, just write config
|
|
721
|
-
const sdkKey = process.env.AGENTUITY_SDK_KEY;
|
|
722
|
-
if (!sdkKey) {
|
|
723
|
-
throw new RemoteImportConfigError({
|
|
724
|
-
message:
|
|
725
|
-
'AGENTUITY_SDK_KEY environment variable is required when using --project-id',
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
const orgId = org ?? config.preferences?.orgId;
|
|
729
|
-
if (!orgId) {
|
|
730
|
-
throw new RemoteImportConfigError({
|
|
731
|
-
message:
|
|
732
|
-
'Organization ID not found. Use --org flag, set orgId in config preferences, or use interactive mode.',
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
const region = process.env.AGENTUITY_REGION ?? config.preferences?.region ?? 'usc';
|
|
736
|
-
|
|
737
|
-
projectInfo = { id: projectId, sdkKey, orgId, region };
|
|
738
|
-
tui.info(`Using pre-created project: ${projectId}`);
|
|
739
|
-
} else if (name) {
|
|
740
|
-
// --name provided: create non-interactively (headless-friendly)
|
|
741
|
-
projectInfo = await createProjectNonInteractive(
|
|
742
|
-
apiClient,
|
|
743
|
-
config,
|
|
744
|
-
logger,
|
|
745
|
-
name,
|
|
746
|
-
optRegion,
|
|
747
|
-
org
|
|
748
|
-
);
|
|
749
|
-
} else if (isTTY() && !options.confirm) {
|
|
750
|
-
// Interactive mode: prompt for org/region/name
|
|
751
|
-
projectInfo = await createProjectInteractive(apiClient, config, logger, parsed.repo);
|
|
752
|
-
} else {
|
|
753
|
-
// Non-interactive without --name: use repo name
|
|
754
|
-
projectInfo = await createProjectNonInteractive(
|
|
755
|
-
apiClient,
|
|
756
|
-
config,
|
|
757
|
-
logger,
|
|
758
|
-
parsed.repo,
|
|
759
|
-
optRegion,
|
|
760
|
-
org
|
|
761
|
-
);
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
// Parse .env.example to detect required env vars and resources
|
|
765
|
-
// Platform-managed vars that should not appear in requirements
|
|
766
|
-
const platformManagedVars = new Set([
|
|
767
|
-
'AGENTUITY_SDK_KEY',
|
|
768
|
-
'AGENTUITY_URL',
|
|
769
|
-
'AGENTUITY_TRANSPORT_URL',
|
|
770
|
-
'AGENTUITY_BEARER_TOKEN',
|
|
771
|
-
'NODE_ENV',
|
|
772
|
-
]);
|
|
773
|
-
|
|
774
|
-
type TemplateConfig = {
|
|
775
|
-
source?: string;
|
|
776
|
-
requirements?: {
|
|
777
|
-
resources?: Array<{
|
|
778
|
-
type: 'database' | 'queue';
|
|
779
|
-
envVar: string;
|
|
780
|
-
description?: string;
|
|
781
|
-
defaultName?: string;
|
|
782
|
-
queueType?: 'worker' | 'pubsub';
|
|
783
|
-
}>;
|
|
784
|
-
env?: Array<{ key: string; required: boolean; description?: string }>;
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
|
|
788
|
-
let template: TemplateConfig | undefined;
|
|
789
|
-
const envExamplePath = join(sourceDir, '.env.example');
|
|
790
|
-
if (await Bun.file(envExamplePath).exists()) {
|
|
791
|
-
try {
|
|
792
|
-
const envContent = await Bun.file(envExamplePath).text();
|
|
793
|
-
const envFields = parseEnvExample(envContent).filter(
|
|
794
|
-
(f) => !platformManagedVars.has(f.key)
|
|
795
|
-
);
|
|
796
|
-
|
|
797
|
-
const resources: NonNullable<NonNullable<TemplateConfig['requirements']>['resources']> =
|
|
798
|
-
envFields
|
|
799
|
-
.filter((f) => f.resource)
|
|
800
|
-
.map((f) => ({
|
|
801
|
-
type: f.resource!,
|
|
802
|
-
envVar: f.key,
|
|
803
|
-
description: f.comment,
|
|
804
|
-
}));
|
|
805
|
-
|
|
806
|
-
const envVars = envFields
|
|
807
|
-
.filter((f) => !f.resource)
|
|
808
|
-
.map((f) => ({
|
|
809
|
-
key: f.key,
|
|
810
|
-
required: f.required ?? false,
|
|
811
|
-
description: f.comment,
|
|
812
|
-
}));
|
|
813
|
-
|
|
814
|
-
// Merge curated metadata from the source template's existing agentuity.json
|
|
815
|
-
const existingConfigPath = join(sourceDir, 'agentuity.json');
|
|
816
|
-
if (await Bun.file(existingConfigPath).exists()) {
|
|
817
|
-
try {
|
|
818
|
-
const existingConfig = JSON.parse(await Bun.file(existingConfigPath).text());
|
|
819
|
-
const existingResources = existingConfig?.template?.requirements?.resources;
|
|
820
|
-
if (Array.isArray(existingResources)) {
|
|
821
|
-
// Merge extra fields (like defaultName) from curated config
|
|
822
|
-
for (const resource of resources) {
|
|
823
|
-
const curated = existingResources.find(
|
|
824
|
-
(r: { envVar?: string }) => r.envVar === resource.envVar
|
|
825
|
-
);
|
|
826
|
-
if (curated?.defaultName) {
|
|
827
|
-
resource.defaultName = curated.defaultName;
|
|
828
|
-
}
|
|
829
|
-
if (curated?.queueType) {
|
|
830
|
-
resource.queueType = curated.queueType;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
// Preserve curated resources NOT detected by parser
|
|
834
|
-
for (const curated of existingResources) {
|
|
835
|
-
if (!resources.some((r) => r.envVar === curated.envVar)) {
|
|
836
|
-
resources.push(curated);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
// Merge curated env vars not detected by parser
|
|
842
|
-
const existingEnv = existingConfig?.template?.requirements?.env;
|
|
843
|
-
if (Array.isArray(existingEnv)) {
|
|
844
|
-
for (const curated of existingEnv) {
|
|
845
|
-
if (!envVars.some((e) => e.key === curated.key)) {
|
|
846
|
-
envVars.push(curated);
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
} catch {
|
|
851
|
-
// Ignore parse errors — source config may be malformed
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
if (resources.length > 0 || envVars.length > 0) {
|
|
856
|
-
template = {
|
|
857
|
-
source: `github.com/${parsed.owner}/${parsed.repo}`,
|
|
858
|
-
requirements: {
|
|
859
|
-
resources: resources.length > 0 ? resources : undefined,
|
|
860
|
-
env: envVars.length > 0 ? envVars : undefined,
|
|
861
|
-
},
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
for (const r of resources) {
|
|
865
|
-
tui.info(
|
|
866
|
-
`Requires ${r.type}: ${r.envVar}${r.description ? ` (${r.description})` : ''}`
|
|
867
|
-
);
|
|
868
|
-
}
|
|
869
|
-
const requiredEnv = envVars.filter((f) => f.required);
|
|
870
|
-
for (const f of requiredEnv) {
|
|
871
|
-
tui.info(
|
|
872
|
-
`Required env var: ${f.key}${f.description ? ` (${f.description})` : ''}`
|
|
873
|
-
);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
} catch (err) {
|
|
877
|
-
logger.debug('[remote-import] Could not parse .env.example: %o', err);
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
// If no .env.example but we know the source, still track it
|
|
882
|
-
if (!template && parsed.owner && parsed.repo) {
|
|
883
|
-
template = { source: `github.com/${parsed.owner}/${parsed.repo}` };
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
// ─── Resource Provisioning ───
|
|
887
|
-
|
|
888
|
-
// Parse --env flags into a map
|
|
889
|
-
const envOverrides = new Map<string, string>();
|
|
890
|
-
for (const e of env ?? []) {
|
|
891
|
-
const colonIdx = e.indexOf(':');
|
|
892
|
-
if (colonIdx > 0) {
|
|
893
|
-
envOverrides.set(e.slice(0, colonIdx), e.slice(colonIdx + 1));
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
const resourceEnvVars: Record<string, string> = {};
|
|
898
|
-
const interactive = isTTY() && !options.confirm;
|
|
899
|
-
const templateResources = template?.requirements?.resources ?? [];
|
|
900
|
-
const templateEnvVars = template?.requirements?.env ?? [];
|
|
901
|
-
|
|
902
|
-
// Check if we can provision (need auth + org + region)
|
|
903
|
-
const orgId = projectInfo.orgId;
|
|
904
|
-
const region = projectInfo.region;
|
|
905
|
-
const canProvision = !!orgId && !!region;
|
|
906
|
-
|
|
907
|
-
if (canProvision && (templateResources.length > 0 || templateEnvVars.length > 0)) {
|
|
908
|
-
// ── Preflight validation: check all required items before creating anything ──
|
|
909
|
-
if (!interactive) {
|
|
910
|
-
const missing: string[] = [];
|
|
911
|
-
|
|
912
|
-
for (const r of templateResources) {
|
|
913
|
-
if (!envOverrides.has(r.envVar)) {
|
|
914
|
-
missing.push(`--env ${r.envVar}:<${r.type}-name>`);
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
for (const e of templateEnvVars) {
|
|
919
|
-
if (e.required && !envOverrides.has(e.key)) {
|
|
920
|
-
missing.push(`--env ${e.key}:<value>`);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
if (missing.length > 0) {
|
|
925
|
-
for (const m of missing) {
|
|
926
|
-
tui.error(`Missing: ${m}`);
|
|
927
|
-
}
|
|
928
|
-
tui.fatal('Provide all required --env flags for non-interactive mode.');
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
// Validate database names upfront
|
|
932
|
-
for (const r of templateResources.filter((res) => res.type === 'database')) {
|
|
933
|
-
const name = envOverrides.get(r.envVar)!;
|
|
934
|
-
const validation = validateDatabaseName(name);
|
|
935
|
-
if (!validation.valid) {
|
|
936
|
-
tui.fatal(`Invalid database name "${name}" for ${r.envVar}: ${validation.error}`);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
const catalystClient = getCatalystAPIClient(logger, auth, region, undefined, config);
|
|
942
|
-
|
|
943
|
-
// ── Database Resources ──
|
|
944
|
-
for (const r of templateResources.filter((resource) => resource.type === 'database')) {
|
|
945
|
-
const overrideName = envOverrides.get(r.envVar);
|
|
946
|
-
|
|
947
|
-
if (overrideName) {
|
|
948
|
-
// Non-interactive path: create DB with the given name
|
|
949
|
-
try {
|
|
950
|
-
const validation = validateDatabaseName(overrideName);
|
|
951
|
-
if (!validation.valid) {
|
|
952
|
-
throw new RemoteImportConfigError({
|
|
953
|
-
message: `Invalid database name "${overrideName}": ${validation.error}`,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
const created = await tui.spinner({
|
|
957
|
-
message: `Creating database "${overrideName}"`,
|
|
958
|
-
clearOnSuccess: true,
|
|
959
|
-
callback: () =>
|
|
960
|
-
createResources(catalystClient, orgId, region, [
|
|
961
|
-
{ type: 'db', name: overrideName, description: r.description },
|
|
962
|
-
]),
|
|
963
|
-
});
|
|
964
|
-
if (created[0]?.env) {
|
|
965
|
-
// Map using the template-defined envVar name
|
|
966
|
-
const connStr =
|
|
967
|
-
created[0].env.DATABASE_URL ?? Object.values(created[0].env)[0];
|
|
968
|
-
if (connStr) resourceEnvVars[r.envVar] = connStr;
|
|
969
|
-
}
|
|
970
|
-
tui.success(`Created database: ${overrideName}`);
|
|
971
|
-
} catch (err: unknown) {
|
|
972
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
973
|
-
if (!interactive) {
|
|
974
|
-
throw new RemoteImportConfigError({
|
|
975
|
-
message: `Failed to create database "${overrideName}": ${msg}`,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
tui.error(`Failed to create database "${overrideName}": ${msg}`);
|
|
979
|
-
// Fall through to interactive prompt below
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
// Interactive fallback (no --env or --env failed)
|
|
984
|
-
if (!resourceEnvVars[r.envVar] && interactive) {
|
|
985
|
-
const prompt = createPrompt();
|
|
986
|
-
let existingDbs: Awaited<ReturnType<typeof listResources>> | undefined;
|
|
987
|
-
try {
|
|
988
|
-
existingDbs = await tui.spinner({
|
|
989
|
-
message: 'Fetching existing databases',
|
|
990
|
-
clearOnSuccess: true,
|
|
991
|
-
callback: () => listResources(catalystClient, orgId, region),
|
|
992
|
-
});
|
|
993
|
-
} catch {
|
|
994
|
-
// Ignore — just won't show existing options
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
let dbCreated = false;
|
|
998
|
-
while (!dbCreated) {
|
|
999
|
-
const action = await prompt.select({
|
|
1000
|
-
message: `${r.description || r.envVar} requires a database`,
|
|
1001
|
-
options: [
|
|
1002
|
-
{ value: 'skip', label: 'Skip — set up later' },
|
|
1003
|
-
{ value: 'create', label: 'Create a new database' },
|
|
1004
|
-
...(existingDbs?.db ?? []).map((db) => ({
|
|
1005
|
-
value: `existing:${db.name}`,
|
|
1006
|
-
label: `Use existing: ${tui.tuiColors.primary(db.name)}`,
|
|
1007
|
-
})),
|
|
1008
|
-
],
|
|
1009
|
-
});
|
|
1010
|
-
|
|
1011
|
-
if (action === 'skip') break;
|
|
1012
|
-
|
|
1013
|
-
if (action === 'create') {
|
|
1014
|
-
const dbName = await prompt.text({
|
|
1015
|
-
message: 'Database name',
|
|
1016
|
-
hint: 'Lowercase letters, digits, underscores only',
|
|
1017
|
-
initial: r.defaultName,
|
|
1018
|
-
validate: (value: string) => {
|
|
1019
|
-
const trimmed = value.trim();
|
|
1020
|
-
if (trimmed === '') return 'Name is required';
|
|
1021
|
-
const result = validateDatabaseName(trimmed);
|
|
1022
|
-
return result.valid ? true : result.error!;
|
|
1023
|
-
},
|
|
1024
|
-
});
|
|
1025
|
-
try {
|
|
1026
|
-
const created = await tui.spinner({
|
|
1027
|
-
message: `Creating database "${dbName}"`,
|
|
1028
|
-
clearOnSuccess: true,
|
|
1029
|
-
callback: () =>
|
|
1030
|
-
createResources(catalystClient, orgId, region, [
|
|
1031
|
-
{ type: 'db', name: dbName.trim(), description: r.description },
|
|
1032
|
-
]),
|
|
1033
|
-
});
|
|
1034
|
-
if (created[0]?.env) {
|
|
1035
|
-
const connStr =
|
|
1036
|
-
created[0].env.DATABASE_URL ?? Object.values(created[0].env)[0];
|
|
1037
|
-
if (connStr) resourceEnvVars[r.envVar] = connStr;
|
|
1038
|
-
}
|
|
1039
|
-
tui.success(`Created database: ${dbName}`);
|
|
1040
|
-
dbCreated = true;
|
|
1041
|
-
} catch (err: unknown) {
|
|
1042
|
-
tui.error(
|
|
1043
|
-
`Failed to create database: ${err instanceof Error ? err.message : String(err)}`
|
|
1044
|
-
);
|
|
1045
|
-
// Loop back to prompt
|
|
1046
|
-
}
|
|
1047
|
-
} else if (action.startsWith('existing:')) {
|
|
1048
|
-
const selectedName = action.slice('existing:'.length);
|
|
1049
|
-
const selectedDb = existingDbs?.db.find((d) => d.name === selectedName);
|
|
1050
|
-
if (selectedDb?.env) {
|
|
1051
|
-
const connStr =
|
|
1052
|
-
selectedDb.env.DATABASE_URL ?? Object.values(selectedDb.env)[0];
|
|
1053
|
-
if (connStr) resourceEnvVars[r.envVar] = connStr;
|
|
1054
|
-
}
|
|
1055
|
-
dbCreated = true;
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
if (!resourceEnvVars[r.envVar] && !interactive) {
|
|
1061
|
-
throw new RemoteImportConfigError({
|
|
1062
|
-
message: `Missing required database for ${r.envVar}. Pass --env ${r.envVar}:<db-name> to provision.`,
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
// ── Queue Resources ──
|
|
1068
|
-
const queueClient = await getGlobalCatalystAPIClient(
|
|
1069
|
-
logger,
|
|
1070
|
-
auth,
|
|
1071
|
-
config?.name,
|
|
1072
|
-
undefined,
|
|
1073
|
-
config
|
|
1074
|
-
);
|
|
1075
|
-
const queueOrgOpts = orgId ? { orgId } : undefined;
|
|
1076
|
-
|
|
1077
|
-
for (const r of templateResources.filter((resource) => resource.type === 'queue')) {
|
|
1078
|
-
if (!r.queueType) {
|
|
1079
|
-
logger.debug(
|
|
1080
|
-
'[remote-import] Queue resource %s missing queueType, skipping',
|
|
1081
|
-
r.envVar
|
|
1082
|
-
);
|
|
1083
|
-
continue;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
const overrideName = envOverrides.get(r.envVar);
|
|
1087
|
-
|
|
1088
|
-
if (overrideName) {
|
|
1089
|
-
// Non-interactive path: create queue with given name
|
|
1090
|
-
try {
|
|
1091
|
-
const queue = await tui.spinner({
|
|
1092
|
-
message: `Creating ${r.queueType} queue "${overrideName}"`,
|
|
1093
|
-
clearOnSuccess: true,
|
|
1094
|
-
callback: () =>
|
|
1095
|
-
createQueue(
|
|
1096
|
-
queueClient,
|
|
1097
|
-
{
|
|
1098
|
-
name: overrideName,
|
|
1099
|
-
queue_type: r.queueType!,
|
|
1100
|
-
description: r.description,
|
|
1101
|
-
},
|
|
1102
|
-
queueOrgOpts
|
|
1103
|
-
),
|
|
1104
|
-
});
|
|
1105
|
-
resourceEnvVars[r.envVar] = queue.name;
|
|
1106
|
-
tui.success(`Created queue: ${queue.name}`);
|
|
1107
|
-
} catch (err: unknown) {
|
|
1108
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
1109
|
-
if (!interactive) {
|
|
1110
|
-
throw new RemoteImportConfigError({
|
|
1111
|
-
message: `Failed to create queue "${overrideName}": ${msg}`,
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
tui.error(`Failed to create queue "${overrideName}": ${msg}`);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
// Interactive fallback
|
|
1119
|
-
if (!resourceEnvVars[r.envVar] && interactive) {
|
|
1120
|
-
const prompt = createPrompt();
|
|
1121
|
-
let existingQueues: Awaited<ReturnType<typeof listQueues>> | undefined;
|
|
1122
|
-
try {
|
|
1123
|
-
existingQueues = await tui.spinner({
|
|
1124
|
-
message: 'Fetching existing queues',
|
|
1125
|
-
clearOnSuccess: true,
|
|
1126
|
-
callback: () => listQueues(queueClient, {}, queueOrgOpts),
|
|
1127
|
-
});
|
|
1128
|
-
} catch {
|
|
1129
|
-
// Ignore
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
let queueCreated = false;
|
|
1133
|
-
while (!queueCreated) {
|
|
1134
|
-
const action = await prompt.select({
|
|
1135
|
-
message: `${r.description || r.envVar} requires a ${r.queueType} queue`,
|
|
1136
|
-
options: [
|
|
1137
|
-
{ value: 'skip', label: 'Skip — set up later' },
|
|
1138
|
-
{ value: 'create', label: `Create a new ${r.queueType} queue` },
|
|
1139
|
-
...(existingQueues?.queues ?? []).map((q) => ({
|
|
1140
|
-
value: `existing:${q.name}`,
|
|
1141
|
-
label: `Use existing: ${tui.tuiColors.primary(q.name)}`,
|
|
1142
|
-
})),
|
|
1143
|
-
],
|
|
1144
|
-
});
|
|
1145
|
-
|
|
1146
|
-
if (action === 'skip') break;
|
|
1147
|
-
|
|
1148
|
-
if (action === 'create') {
|
|
1149
|
-
const queueName = await prompt.text({
|
|
1150
|
-
message: 'Queue name',
|
|
1151
|
-
hint: 'Optional — auto-generated if empty',
|
|
1152
|
-
initial: r.defaultName,
|
|
1153
|
-
});
|
|
1154
|
-
try {
|
|
1155
|
-
const queue = await tui.spinner({
|
|
1156
|
-
message: `Creating ${r.queueType} queue "${queueName || '(auto)'}"`,
|
|
1157
|
-
clearOnSuccess: true,
|
|
1158
|
-
callback: () =>
|
|
1159
|
-
createQueue(
|
|
1160
|
-
queueClient,
|
|
1161
|
-
{
|
|
1162
|
-
name: queueName.trim() || undefined,
|
|
1163
|
-
queue_type: r.queueType!,
|
|
1164
|
-
description: r.description,
|
|
1165
|
-
},
|
|
1166
|
-
queueOrgOpts
|
|
1167
|
-
),
|
|
1168
|
-
});
|
|
1169
|
-
resourceEnvVars[r.envVar] = queue.name;
|
|
1170
|
-
tui.success(`Created queue: ${queue.name}`);
|
|
1171
|
-
queueCreated = true;
|
|
1172
|
-
} catch (err: unknown) {
|
|
1173
|
-
tui.error(
|
|
1174
|
-
`Failed to create queue: ${err instanceof Error ? err.message : String(err)}`
|
|
1175
|
-
);
|
|
1176
|
-
}
|
|
1177
|
-
} else if (action.startsWith('existing:')) {
|
|
1178
|
-
const selectedName = action.slice('existing:'.length);
|
|
1179
|
-
resourceEnvVars[r.envVar] = selectedName;
|
|
1180
|
-
queueCreated = true;
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
if (!resourceEnvVars[r.envVar] && !interactive) {
|
|
1186
|
-
throw new RemoteImportConfigError({
|
|
1187
|
-
message: `Missing required queue for ${r.envVar}. Pass --env ${r.envVar}:<queue-name> to provision.`,
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
// ── Plain Env Vars ──
|
|
1193
|
-
for (const e of templateEnvVars) {
|
|
1194
|
-
if (envOverrides.has(e.key)) {
|
|
1195
|
-
resourceEnvVars[e.key] = envOverrides.get(e.key)!;
|
|
1196
|
-
} else if (e.required) {
|
|
1197
|
-
if (interactive) {
|
|
1198
|
-
const prompt = createPrompt();
|
|
1199
|
-
const val = await prompt.text({
|
|
1200
|
-
message: `Enter value for ${e.key}${e.description ? ` (${e.description})` : ''}`,
|
|
1201
|
-
});
|
|
1202
|
-
if (val.trim()) {
|
|
1203
|
-
resourceEnvVars[e.key] = val.trim();
|
|
1204
|
-
}
|
|
1205
|
-
} else {
|
|
1206
|
-
throw new RemoteImportConfigError({
|
|
1207
|
-
message: `Missing required env var ${e.key}. Pass --env ${e.key}:<value> to set it.`,
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
// Write all collected env vars to .env
|
|
1214
|
-
if (Object.keys(resourceEnvVars).length > 0) {
|
|
1215
|
-
await addResourceEnvVars(sourceDir, resourceEnvVars);
|
|
1216
|
-
tui.success(
|
|
1217
|
-
`Configured ${Object.keys(resourceEnvVars).length} environment variable(s)`
|
|
1218
|
-
);
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
// Write agentuity.json and .env to sourceDir so git commit includes them
|
|
1223
|
-
await createProjectConfig(sourceDir, {
|
|
1224
|
-
projectId: projectInfo.id,
|
|
1225
|
-
orgId: projectInfo.orgId,
|
|
1226
|
-
sdkKey: projectInfo.sdkKey,
|
|
1227
|
-
region: projectInfo.region,
|
|
1228
|
-
template,
|
|
1229
|
-
});
|
|
1230
|
-
tui.success('Created agentuity.json');
|
|
1231
|
-
|
|
1232
|
-
// Ensure .env is gitignored before any git operations (prevents secret leak)
|
|
1233
|
-
const gitignorePath = join(sourceDir, '.gitignore');
|
|
1234
|
-
const gitignoreFile = Bun.file(gitignorePath);
|
|
1235
|
-
if (await gitignoreFile.exists()) {
|
|
1236
|
-
const gitignoreContent = await gitignoreFile.text();
|
|
1237
|
-
const lines = gitignoreContent.split('\n').map((l) => l.trim());
|
|
1238
|
-
if (!lines.includes('.env')) {
|
|
1239
|
-
await Bun.write(gitignorePath, `${gitignoreContent.trimEnd()}\n.env\n`);
|
|
1240
|
-
}
|
|
1241
|
-
} else {
|
|
1242
|
-
await Bun.write(gitignorePath, '.env\n.env.*\n');
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
// Update package.json name to match the project name
|
|
1246
|
-
const pkgJsonPath = join(sourceDir, 'package.json');
|
|
1247
|
-
if (await Bun.file(pkgJsonPath).exists()) {
|
|
1248
|
-
try {
|
|
1249
|
-
const pkgRaw = await Bun.file(pkgJsonPath).text();
|
|
1250
|
-
const pkg = JSON.parse(pkgRaw);
|
|
1251
|
-
pkg.name = projectDirName;
|
|
1252
|
-
await Bun.write(pkgJsonPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
1253
|
-
logger.debug('[remote-import] Updated package.json name to %s', projectDirName);
|
|
1254
|
-
} catch (err) {
|
|
1255
|
-
logger.debug('[remote-import] Could not update package.json name: %o', err);
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
// Fetch GitHub App bot identity for commit authorship
|
|
1260
|
-
let botAuthor: { name: string; email: string } | undefined;
|
|
1261
|
-
try {
|
|
1262
|
-
botAuthor = await getGithubBotIdentity(apiClient);
|
|
1263
|
-
} catch {
|
|
1264
|
-
logger.debug('[remote-import] Could not fetch bot identity, using fallback');
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
// 5. Git init + push (if --repo flag provided) — in sourceDir, not CWD
|
|
1268
|
-
if (repo) {
|
|
1269
|
-
// Create the repo (we already verified it doesn't exist in preflight)
|
|
1270
|
-
const repoUrl = await createGithubRepoForImport(apiClient, repo, logger);
|
|
1271
|
-
|
|
1272
|
-
// Initialize git repo in sourceDir (handles init + first commit)
|
|
1273
|
-
await initGitRepo(sourceDir, {
|
|
1274
|
-
projectName: projectDirName,
|
|
1275
|
-
source: `github.com/${parsed.owner}/${parsed.repo}`,
|
|
1276
|
-
author: botAuthor,
|
|
1277
|
-
});
|
|
1278
|
-
|
|
1279
|
-
// Push to remote from sourceDir
|
|
1280
|
-
await pushToRepo(sourceDir, repoUrl, apiClient, logger);
|
|
1281
|
-
tui.success(`GitHub repo: ${repoUrl}`);
|
|
1282
|
-
|
|
1283
|
-
// Link the repo to the Agentuity project (auto-deploy + preview disabled until first deploy completes)
|
|
1284
|
-
try {
|
|
1285
|
-
const { owner: linkOwner, name: linkName } = parseRepoTarget(repo);
|
|
1286
|
-
const pushedBranch = (await getDefaultBranch()) || 'main';
|
|
1287
|
-
await linkProjectToRepo(apiClient, {
|
|
1288
|
-
projectId: projectInfo.id,
|
|
1289
|
-
repoFullName: `${linkOwner}/${linkName}`,
|
|
1290
|
-
branch: pushedBranch,
|
|
1291
|
-
autoDeploy: false,
|
|
1292
|
-
previewDeploy: false,
|
|
1293
|
-
directory: parsed.directory,
|
|
1294
|
-
});
|
|
1295
|
-
tui.success('Linked repo to project');
|
|
1296
|
-
} catch (err) {
|
|
1297
|
-
logger.debug('[remote-import] Failed to link repo to project: %o', err);
|
|
1298
|
-
tui.warning(
|
|
1299
|
-
'Could not link repo to project — you can link manually with `agentuity link`'
|
|
1300
|
-
);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
// 6. Copy extracted content into project folder (already validated in preflight)
|
|
1305
|
-
await tui.spinner({
|
|
1306
|
-
message: 'Copying project files...',
|
|
1307
|
-
clearOnSuccess: true,
|
|
1308
|
-
callback: async () => {
|
|
1309
|
-
mkdirSync(dest, { recursive: true });
|
|
1310
|
-
const entries = readdirSync(sourceDir);
|
|
1311
|
-
for (const entry of entries) {
|
|
1312
|
-
cpSync(join(sourceDir, entry), join(dest, entry), {
|
|
1313
|
-
recursive: true,
|
|
1314
|
-
});
|
|
1315
|
-
}
|
|
1316
|
-
},
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
|
-
// Reset git remote to clean URL (pushToRepo may have embedded a token)
|
|
1320
|
-
if (repo) {
|
|
1321
|
-
const { owner, name: repoName } = parseRepoTarget(repo);
|
|
1322
|
-
const cleanUrl = `https://github.com/${owner}/${repoName}.git`;
|
|
1323
|
-
Bun.spawnSync(['git', 'remote', 'set-url', 'origin', cleanUrl], {
|
|
1324
|
-
cwd: dest,
|
|
1325
|
-
stdout: 'pipe',
|
|
1326
|
-
stderr: 'pipe',
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
tui.success(`Project created in ./${projectDirName}`);
|
|
1331
|
-
|
|
1332
|
-
// 7. Deploy (if --deploy flag)
|
|
1333
|
-
if (deploy) {
|
|
1334
|
-
await runDeploy(dest, logger);
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
tui.success('Remote import completed successfully!');
|
|
1338
|
-
} finally {
|
|
1339
|
-
// Clean up temp directory
|
|
1340
|
-
if (tempDir) {
|
|
1341
|
-
try {
|
|
1342
|
-
rmSync(tempDir, { recursive: true, force: true });
|
|
1343
|
-
logger.debug('[remote-import] Cleaned up temp dir: %s', tempDir);
|
|
1344
|
-
} catch {
|
|
1345
|
-
// Ignore cleanup errors
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
}
|