@agentuity/cli 0.0.50 → 0.0.52
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 +17 -4
- package/README.md +26 -8
- package/dist/api.js +68 -0
- package/dist/api.js.map +1 -0
- package/dist/auth.js +225 -0
- package/dist/auth.js.map +1 -0
- package/dist/banner.js +35 -0
- package/dist/banner.js.map +1 -0
- package/dist/cli-logger.js +72 -0
- package/dist/cli-logger.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +822 -0
- package/dist/cli.js.map +1 -0
- package/dist/cmd/{capabilities → ai/capabilities}/index.d.ts +1 -1
- package/dist/cmd/ai/capabilities/index.d.ts.map +1 -0
- package/dist/cmd/ai/capabilities/index.js +10 -0
- package/dist/cmd/ai/capabilities/index.js.map +1 -0
- package/dist/cmd/{capabilities → ai/capabilities}/show.d.ts +1 -1
- package/dist/cmd/ai/capabilities/show.d.ts.map +1 -0
- package/dist/cmd/ai/capabilities/show.js +221 -0
- package/dist/cmd/ai/capabilities/show.js.map +1 -0
- package/dist/cmd/ai/index.d.ts.map +1 -0
- package/dist/cmd/ai/index.js +11 -0
- package/dist/cmd/ai/index.js.map +1 -0
- package/dist/cmd/ai/prompt/index.d.ts +4 -0
- package/dist/cmd/ai/prompt/index.d.ts.map +1 -0
- package/dist/cmd/ai/prompt/index.js +10 -0
- package/dist/cmd/ai/prompt/index.js.map +1 -0
- package/dist/cmd/ai/prompt/llm.d.ts +3 -0
- package/dist/cmd/ai/prompt/llm.d.ts.map +1 -0
- package/dist/cmd/ai/prompt/llm.js +365 -0
- package/dist/cmd/ai/prompt/llm.js.map +1 -0
- package/dist/cmd/ai/schema/index.d.ts +4 -0
- package/dist/cmd/ai/schema/index.d.ts.map +1 -0
- package/dist/cmd/ai/schema/index.js +10 -0
- package/dist/cmd/ai/schema/index.js.map +1 -0
- package/dist/cmd/ai/schema/show.d.ts +3 -0
- package/dist/cmd/ai/schema/show.d.ts.map +1 -0
- package/dist/cmd/ai/schema/show.js +23 -0
- package/dist/cmd/ai/schema/show.js.map +1 -0
- package/dist/cmd/auth/api.js +85 -0
- package/dist/cmd/auth/api.js.map +1 -0
- package/dist/cmd/auth/index.js +13 -0
- package/dist/cmd/auth/index.js.map +1 -0
- package/dist/cmd/auth/login.js +84 -0
- package/dist/cmd/auth/login.js.map +1 -0
- package/dist/cmd/auth/logout.js +17 -0
- package/dist/cmd/auth/logout.js.map +1 -0
- package/dist/cmd/auth/signup.js +55 -0
- package/dist/cmd/auth/signup.js.map +1 -0
- package/dist/cmd/auth/ssh/add.js +239 -0
- package/dist/cmd/auth/ssh/add.js.map +1 -0
- package/dist/cmd/auth/ssh/api.js +53 -0
- package/dist/cmd/auth/ssh/api.js.map +1 -0
- package/dist/cmd/auth/ssh/delete.js +126 -0
- package/dist/cmd/auth/ssh/delete.js.map +1 -0
- package/dist/cmd/auth/ssh/index.js +11 -0
- package/dist/cmd/auth/ssh/index.js.map +1 -0
- package/dist/cmd/auth/ssh/list.js +70 -0
- package/dist/cmd/auth/ssh/list.js.map +1 -0
- package/dist/cmd/auth/whoami.js +68 -0
- package/dist/cmd/auth/whoami.js.map +1 -0
- package/dist/cmd/build/ast.d.ts.map +1 -0
- package/dist/cmd/build/ast.js +608 -0
- package/dist/cmd/build/ast.js.map +1 -0
- package/dist/cmd/{bundle → build}/ast.test.d.ts.map +1 -1
- package/dist/cmd/build/ast.test.js +389 -0
- package/dist/cmd/build/ast.test.js.map +1 -0
- package/dist/cmd/build/bundler.d.ts.map +1 -0
- package/dist/cmd/build/bundler.js +304 -0
- package/dist/cmd/build/bundler.js.map +1 -0
- package/dist/cmd/build/file.d.ts.map +1 -0
- package/dist/cmd/build/file.js +10 -0
- package/dist/cmd/build/file.js.map +1 -0
- package/dist/cmd/build/fix-duplicate-exports.d.ts.map +1 -0
- package/dist/cmd/build/fix-duplicate-exports.js +167 -0
- package/dist/cmd/build/fix-duplicate-exports.js.map +1 -0
- package/dist/cmd/build/fix-duplicate-exports.test.d.ts.map +1 -0
- package/dist/cmd/build/fix-duplicate-exports.test.js +300 -0
- package/dist/cmd/build/fix-duplicate-exports.test.js.map +1 -0
- package/dist/cmd/build/index.d.ts.map +1 -0
- package/dist/cmd/build/index.js +79 -0
- package/dist/cmd/build/index.js.map +1 -0
- package/dist/cmd/build/patch/_util.d.ts.map +1 -0
- package/dist/cmd/build/patch/_util.js +42 -0
- package/dist/cmd/build/patch/_util.js.map +1 -0
- package/dist/cmd/build/patch/aisdk.d.ts.map +1 -0
- package/dist/cmd/build/patch/aisdk.js +65 -0
- package/dist/cmd/build/patch/aisdk.js.map +1 -0
- package/dist/cmd/build/patch/index.d.ts.map +1 -0
- package/dist/cmd/build/patch/index.js +97 -0
- package/dist/cmd/build/patch/index.js.map +1 -0
- package/dist/cmd/build/patch/llm.d.ts.map +1 -0
- package/dist/cmd/build/patch/llm.js +18 -0
- package/dist/cmd/build/patch/llm.js.map +1 -0
- package/dist/cmd/build/plugin.d.ts.map +1 -0
- package/dist/cmd/build/plugin.js +556 -0
- package/dist/cmd/build/plugin.js.map +1 -0
- package/dist/cmd/cloud/agents/index.d.ts +3 -0
- package/dist/cmd/cloud/agents/index.d.ts.map +1 -0
- package/dist/cmd/cloud/agents/index.js +133 -0
- package/dist/cmd/cloud/agents/index.js.map +1 -0
- package/dist/cmd/cloud/deploy.js +341 -0
- package/dist/cmd/cloud/deploy.js.map +1 -0
- package/dist/cmd/cloud/deployment/index.js +20 -0
- package/dist/cmd/cloud/deployment/index.js.map +1 -0
- package/dist/cmd/cloud/deployment/list.js +89 -0
- package/dist/cmd/cloud/deployment/list.js.map +1 -0
- package/dist/cmd/cloud/deployment/remove.js +60 -0
- package/dist/cmd/cloud/deployment/remove.js.map +1 -0
- package/dist/cmd/cloud/deployment/rollback.js +80 -0
- package/dist/cmd/cloud/deployment/rollback.js.map +1 -0
- package/dist/cmd/cloud/deployment/show.js +106 -0
- package/dist/cmd/cloud/deployment/show.js.map +1 -0
- package/dist/cmd/cloud/deployment/undeploy.js +45 -0
- package/dist/cmd/cloud/deployment/undeploy.js.map +1 -0
- package/dist/cmd/cloud/deployment/utils.js +10 -0
- package/dist/cmd/cloud/deployment/utils.js.map +1 -0
- package/dist/cmd/cloud/domain.js +77 -0
- package/dist/cmd/cloud/domain.js.map +1 -0
- package/dist/cmd/cloud/env/delete.d.ts +2 -0
- package/dist/cmd/cloud/env/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/env/delete.js +50 -0
- package/dist/cmd/cloud/env/delete.js.map +1 -0
- package/dist/cmd/cloud/env/get.d.ts +2 -0
- package/dist/cmd/cloud/env/get.d.ts.map +1 -0
- package/dist/cmd/cloud/env/get.js +65 -0
- package/dist/cmd/cloud/env/get.js.map +1 -0
- package/dist/cmd/cloud/env/import.d.ts +2 -0
- package/dist/cmd/cloud/env/import.d.ts.map +1 -0
- package/dist/cmd/cloud/env/import.js +113 -0
- package/dist/cmd/cloud/env/import.js.map +1 -0
- package/dist/cmd/cloud/env/index.d.ts +3 -0
- package/dist/cmd/cloud/env/index.d.ts.map +1 -0
- package/dist/cmd/cloud/env/index.js +24 -0
- package/dist/cmd/cloud/env/index.js.map +1 -0
- package/dist/cmd/cloud/env/list.d.ts +2 -0
- package/dist/cmd/cloud/env/list.d.ts.map +1 -0
- package/dist/cmd/cloud/env/list.js +58 -0
- package/dist/cmd/cloud/env/list.js.map +1 -0
- package/dist/cmd/cloud/env/pull.d.ts +2 -0
- package/dist/cmd/cloud/env/pull.d.ts.map +1 -0
- package/dist/cmd/cloud/env/pull.js +81 -0
- package/dist/cmd/cloud/env/pull.js.map +1 -0
- package/dist/cmd/cloud/env/push.d.ts +2 -0
- package/dist/cmd/cloud/env/push.d.ts.map +1 -0
- package/dist/cmd/cloud/env/push.js +61 -0
- package/dist/cmd/cloud/env/push.js.map +1 -0
- package/dist/cmd/cloud/env/set.d.ts +2 -0
- package/dist/cmd/cloud/env/set.d.ts.map +1 -0
- package/dist/cmd/cloud/env/set.js +73 -0
- package/dist/cmd/cloud/env/set.js.map +1 -0
- package/dist/cmd/cloud/index.d.ts.map +1 -1
- package/dist/cmd/cloud/index.js +31 -0
- package/dist/cmd/cloud/index.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/create-namespace.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/create-namespace.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/create-namespace.js +41 -0
- package/dist/cmd/cloud/keyvalue/create-namespace.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/delete-namespace.js +64 -0
- package/dist/cmd/cloud/keyvalue/delete-namespace.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/delete.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/delete.js +47 -0
- package/dist/cmd/cloud/keyvalue/delete.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/get.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/get.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/get.js +65 -0
- package/dist/cmd/cloud/keyvalue/get.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/index.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/index.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/index.js +32 -0
- package/dist/cmd/cloud/keyvalue/index.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/keys.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/keys.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/keys.js +50 -0
- package/dist/cmd/cloud/keyvalue/keys.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/list-namespaces.js +37 -0
- package/dist/cmd/cloud/keyvalue/list-namespaces.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/repl.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/repl.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/repl.js +277 -0
- package/dist/cmd/cloud/keyvalue/repl.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/search.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/search.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/search.js +72 -0
- package/dist/cmd/cloud/keyvalue/search.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/set.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/set.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/set.js +59 -0
- package/dist/cmd/cloud/keyvalue/set.js.map +1 -0
- package/dist/cmd/cloud/keyvalue/stats.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/stats.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/stats.js +82 -0
- package/dist/cmd/cloud/keyvalue/stats.js.map +1 -0
- package/dist/cmd/{kv → cloud/keyvalue}/util.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/util.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/util.js +19 -0
- package/dist/cmd/cloud/keyvalue/util.js.map +1 -0
- package/dist/cmd/cloud/objectstore/delete-bucket.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/delete-bucket.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/delete-bucket.js +66 -0
- package/dist/cmd/cloud/objectstore/delete-bucket.js.map +1 -0
- package/dist/cmd/cloud/objectstore/delete.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/delete.js +56 -0
- package/dist/cmd/cloud/objectstore/delete.js.map +1 -0
- package/dist/cmd/cloud/objectstore/get.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/get.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/get.js +64 -0
- package/dist/cmd/cloud/objectstore/get.js.map +1 -0
- package/dist/cmd/cloud/objectstore/index.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/index.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/index.js +28 -0
- package/dist/cmd/cloud/objectstore/index.js.map +1 -0
- package/dist/cmd/cloud/objectstore/list-buckets.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/list-buckets.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/list-buckets.js +37 -0
- package/dist/cmd/cloud/objectstore/list-buckets.js.map +1 -0
- package/dist/cmd/cloud/objectstore/list-keys.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/list-keys.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/list-keys.js +52 -0
- package/dist/cmd/cloud/objectstore/list-keys.js.map +1 -0
- package/dist/cmd/cloud/objectstore/put.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/put.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/put.js +57 -0
- package/dist/cmd/cloud/objectstore/put.js.map +1 -0
- package/dist/cmd/cloud/objectstore/repl.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/repl.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/repl.js +219 -0
- package/dist/cmd/cloud/objectstore/repl.js.map +1 -0
- package/dist/cmd/cloud/objectstore/url.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/url.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/url.js +55 -0
- package/dist/cmd/cloud/objectstore/url.js.map +1 -0
- package/dist/cmd/{objectstore → cloud/objectstore}/util.d.ts +1 -1
- package/dist/cmd/cloud/objectstore/util.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/util.js +18 -0
- package/dist/cmd/cloud/objectstore/util.js.map +1 -0
- package/dist/cmd/cloud/resource/add.js +70 -0
- package/dist/cmd/cloud/resource/add.js.map +1 -0
- package/dist/cmd/cloud/resource/delete.js +126 -0
- package/dist/cmd/cloud/resource/delete.js.map +1 -0
- package/dist/cmd/cloud/resource/index.js +12 -0
- package/dist/cmd/cloud/resource/index.js.map +1 -0
- package/dist/cmd/cloud/resource/list.js +89 -0
- package/dist/cmd/cloud/resource/list.js.map +1 -0
- package/dist/cmd/cloud/scp/download.js +72 -0
- package/dist/cmd/cloud/scp/download.js.map +1 -0
- package/dist/cmd/cloud/scp/index.js +10 -0
- package/dist/cmd/cloud/scp/index.js.map +1 -0
- package/dist/cmd/cloud/scp/upload.js +75 -0
- package/dist/cmd/cloud/scp/upload.js.map +1 -0
- package/dist/cmd/cloud/secret/delete.d.ts +2 -0
- package/dist/cmd/cloud/secret/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/delete.js +50 -0
- package/dist/cmd/cloud/secret/delete.js.map +1 -0
- package/dist/cmd/cloud/secret/get.d.ts +2 -0
- package/dist/cmd/cloud/secret/get.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/get.js +69 -0
- package/dist/cmd/cloud/secret/get.js.map +1 -0
- package/dist/cmd/cloud/secret/import.d.ts +2 -0
- package/dist/cmd/cloud/secret/import.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/import.js +88 -0
- package/dist/cmd/cloud/secret/import.js.map +1 -0
- package/dist/cmd/cloud/secret/index.d.ts +3 -0
- package/dist/cmd/cloud/secret/index.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/index.js +24 -0
- package/dist/cmd/cloud/secret/index.js.map +1 -0
- package/dist/cmd/cloud/secret/list.d.ts +2 -0
- package/dist/cmd/cloud/secret/list.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/list.js +58 -0
- package/dist/cmd/cloud/secret/list.js.map +1 -0
- package/dist/cmd/cloud/secret/pull.d.ts +2 -0
- package/dist/cmd/cloud/secret/pull.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/pull.js +81 -0
- package/dist/cmd/cloud/secret/pull.js.map +1 -0
- package/dist/cmd/cloud/secret/push.d.ts +2 -0
- package/dist/cmd/cloud/secret/push.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/push.js +61 -0
- package/dist/cmd/cloud/secret/push.js.map +1 -0
- package/dist/cmd/cloud/secret/set.d.ts +2 -0
- package/dist/cmd/cloud/secret/set.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/set.js +57 -0
- package/dist/cmd/cloud/secret/set.js.map +1 -0
- package/dist/cmd/cloud/session/get.d.ts.map +1 -1
- package/dist/cmd/cloud/session/get.js +155 -0
- package/dist/cmd/cloud/session/get.js.map +1 -0
- package/dist/cmd/cloud/session/index.js +11 -0
- package/dist/cmd/cloud/session/index.js.map +1 -0
- package/dist/cmd/cloud/session/list.js +132 -0
- package/dist/cmd/cloud/session/list.js.map +1 -0
- package/dist/cmd/cloud/session/logs.js +56 -0
- package/dist/cmd/cloud/session/logs.js.map +1 -0
- package/dist/cmd/cloud/ssh.js +67 -0
- package/dist/cmd/cloud/ssh.js.map +1 -0
- package/dist/cmd/dev/agents.js +103 -0
- package/dist/cmd/dev/agents.js.map +1 -0
- package/dist/cmd/dev/api.js +26 -0
- package/dist/cmd/dev/api.js.map +1 -0
- package/dist/cmd/dev/download.js +77 -0
- package/dist/cmd/dev/download.js.map +1 -0
- package/dist/cmd/dev/index.js +745 -0
- package/dist/cmd/dev/index.js.map +1 -0
- package/dist/cmd/dev/sync.js +229 -0
- package/dist/cmd/dev/sync.js.map +1 -0
- package/dist/cmd/dev/templates.js +75 -0
- package/dist/cmd/dev/templates.js.map +1 -0
- package/dist/cmd/index.js +49 -0
- package/dist/cmd/index.js.map +1 -0
- package/dist/cmd/profile/create.js +89 -0
- package/dist/cmd/profile/create.js.map +1 -0
- package/dist/cmd/profile/delete.js +63 -0
- package/dist/cmd/profile/delete.js.map +1 -0
- package/dist/cmd/profile/index.d.ts.map +1 -1
- package/dist/cmd/profile/index.js +14 -0
- package/dist/cmd/profile/index.js.map +1 -0
- package/dist/cmd/profile/list.js +28 -0
- package/dist/cmd/profile/list.js.map +1 -0
- package/dist/cmd/profile/show.js +68 -0
- package/dist/cmd/profile/show.js.map +1 -0
- package/dist/cmd/profile/use.js +37 -0
- package/dist/cmd/profile/use.js.map +1 -0
- package/dist/cmd/project/create.js +92 -0
- package/dist/cmd/project/create.js.map +1 -0
- package/dist/cmd/project/delete.js +117 -0
- package/dist/cmd/project/delete.js.map +1 -0
- package/dist/cmd/project/download.js +217 -0
- package/dist/cmd/project/download.js.map +1 -0
- package/dist/cmd/project/index.js +12 -0
- package/dist/cmd/project/index.js.map +1 -0
- package/dist/cmd/project/list.js +51 -0
- package/dist/cmd/project/list.js.map +1 -0
- package/dist/cmd/project/show.js +54 -0
- package/dist/cmd/project/show.js.map +1 -0
- package/dist/cmd/project/template-flow.js +315 -0
- package/dist/cmd/project/template-flow.js.map +1 -0
- package/dist/cmd/project/templates.js +31 -0
- package/dist/cmd/project/templates.js.map +1 -0
- package/dist/cmd/repl/index.js +444 -0
- package/dist/cmd/repl/index.js.map +1 -0
- package/dist/cmd/version/index.js +29 -0
- package/dist/cmd/version/index.js.map +1 -0
- package/dist/command-prefix.js +37 -0
- package/dist/command-prefix.js.map +1 -0
- package/dist/config.js +536 -0
- package/dist/config.js.map +1 -0
- package/dist/crypto/box.js +382 -0
- package/dist/crypto/box.js.map +1 -0
- package/dist/crypto/box.test.js +317 -0
- package/dist/crypto/box.test.js.map +1 -0
- package/dist/download.js +64 -0
- package/dist/download.js.map +1 -0
- package/dist/env-util.js +219 -0
- package/dist/env-util.js.map +1 -0
- package/dist/env-util.test.js +146 -0
- package/dist/env-util.test.js.map +1 -0
- package/dist/errors.js +177 -0
- package/dist/errors.js.map +1 -0
- package/dist/explain.js +90 -0
- package/dist/explain.js.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/json.js +29 -0
- package/dist/json.js.map +1 -0
- package/dist/legacy-check.js +104 -0
- package/dist/legacy-check.js.map +1 -0
- package/dist/output.js +207 -0
- package/dist/output.js.map +1 -0
- package/dist/repl.js +1176 -0
- package/dist/repl.js.map +1 -0
- package/dist/runtime.js +19 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schema-generator.js +289 -0
- package/dist/schema-generator.js.map +1 -0
- package/dist/schema-parser.js +145 -0
- package/dist/schema-parser.js.map +1 -0
- package/dist/sound.js +44 -0
- package/dist/sound.js.map +1 -0
- package/dist/steps.js +293 -0
- package/dist/steps.js.map +1 -0
- package/dist/terminal.js +130 -0
- package/dist/terminal.js.map +1 -0
- package/dist/tui.js +1124 -0
- package/dist/tui.js.map +1 -0
- package/dist/types.js +163 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/detectSubagent.js +25 -0
- package/dist/utils/detectSubagent.js.map +1 -0
- package/dist/utils/format.js +21 -0
- package/dist/utils/format.js.map +1 -0
- package/dist/utils/zip.js +33 -0
- package/dist/utils/zip.js.map +1 -0
- package/dist/version.js +24 -0
- package/dist/version.js.map +1 -0
- package/package.json +6 -6
- package/src/banner.ts +1 -1
- package/src/cli.ts +7 -2
- package/src/cmd/{capabilities → ai/capabilities}/index.ts +2 -2
- package/src/cmd/{capabilities → ai/capabilities}/show.ts +6 -6
- package/src/cmd/ai/index.ts +11 -0
- package/src/cmd/{prompt → ai/prompt}/index.ts +2 -2
- package/src/cmd/{prompt → ai/prompt}/llm.ts +6 -6
- package/src/cmd/{schema → ai/schema}/index.ts +2 -2
- package/src/cmd/{schema → ai/schema}/show.ts +3 -3
- package/src/cmd/build/index.ts +83 -0
- package/src/cmd/{bundle → build}/plugin.ts +2 -1
- package/src/cmd/{agents → cloud/agents}/index.ts +4 -3
- package/src/cmd/cloud/deploy.ts +1 -1
- package/src/cmd/{env → cloud/env}/delete.ts +4 -4
- package/src/cmd/{env → cloud/env}/get.ts +5 -5
- package/src/cmd/{env → cloud/env}/import.ts +4 -4
- package/src/cmd/{env → cloud/env}/index.ts +2 -1
- package/src/cmd/{env → cloud/env}/list.ts +4 -4
- package/src/cmd/{env → cloud/env}/pull.ts +4 -4
- package/src/cmd/{env → cloud/env}/push.ts +4 -4
- package/src/cmd/{env → cloud/env}/set.ts +4 -4
- package/src/cmd/cloud/index.ts +10 -0
- package/src/cmd/{kv → cloud/keyvalue}/create-namespace.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/delete-namespace.ts +4 -4
- package/src/cmd/{kv → cloud/keyvalue}/delete.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/get.ts +4 -4
- package/src/cmd/{kv → cloud/keyvalue}/index.ts +2 -1
- package/src/cmd/{kv → cloud/keyvalue}/keys.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/list-namespaces.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/repl.ts +6 -6
- package/src/cmd/{kv → cloud/keyvalue}/search.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/set.ts +4 -4
- package/src/cmd/{kv → cloud/keyvalue}/stats.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/util.ts +4 -4
- package/src/cmd/{objectstore → cloud/objectstore}/delete-bucket.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/delete.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/get.ts +4 -4
- package/src/cmd/{objectstore → cloud/objectstore}/index.ts +2 -1
- package/src/cmd/{objectstore → cloud/objectstore}/list-buckets.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/list-keys.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/put.ts +4 -4
- package/src/cmd/{objectstore → cloud/objectstore}/repl.ts +6 -6
- package/src/cmd/{objectstore → cloud/objectstore}/url.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/util.ts +3 -3
- package/src/cmd/{secret → cloud/secret}/delete.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/get.ts +5 -5
- package/src/cmd/{secret → cloud/secret}/import.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/index.ts +2 -1
- package/src/cmd/{secret → cloud/secret}/list.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/pull.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/push.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/set.ts +4 -4
- package/src/cmd/cloud/session/get.ts +20 -14
- package/src/cmd/cloud/session/list.ts +1 -1
- package/src/cmd/dev/index.ts +3 -3
- package/src/cmd/profile/index.ts +1 -0
- package/src/cmd/project/create.ts +1 -1
- package/src/cmd/project/index.ts +1 -1
- package/dist/cmd/agents/index.d.ts.map +0 -1
- package/dist/cmd/bundle/ast.d.ts.map +0 -1
- package/dist/cmd/bundle/bundler.d.ts.map +0 -1
- package/dist/cmd/bundle/file.d.ts.map +0 -1
- package/dist/cmd/bundle/fix-duplicate-exports.d.ts.map +0 -1
- package/dist/cmd/bundle/fix-duplicate-exports.test.d.ts.map +0 -1
- package/dist/cmd/bundle/index.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/_util.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/aisdk.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/index.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/llm.d.ts.map +0 -1
- package/dist/cmd/bundle/plugin.d.ts.map +0 -1
- package/dist/cmd/capabilities/index.d.ts.map +0 -1
- package/dist/cmd/capabilities/show.d.ts.map +0 -1
- package/dist/cmd/env/delete.d.ts +0 -2
- package/dist/cmd/env/delete.d.ts.map +0 -1
- package/dist/cmd/env/get.d.ts +0 -2
- package/dist/cmd/env/get.d.ts.map +0 -1
- package/dist/cmd/env/import.d.ts +0 -2
- package/dist/cmd/env/import.d.ts.map +0 -1
- package/dist/cmd/env/index.d.ts +0 -2
- package/dist/cmd/env/index.d.ts.map +0 -1
- package/dist/cmd/env/list.d.ts +0 -2
- package/dist/cmd/env/list.d.ts.map +0 -1
- package/dist/cmd/env/pull.d.ts +0 -2
- package/dist/cmd/env/pull.d.ts.map +0 -1
- package/dist/cmd/env/push.d.ts +0 -2
- package/dist/cmd/env/push.d.ts.map +0 -1
- package/dist/cmd/env/set.d.ts +0 -2
- package/dist/cmd/env/set.d.ts.map +0 -1
- package/dist/cmd/kv/create-namespace.d.ts +0 -3
- package/dist/cmd/kv/create-namespace.d.ts.map +0 -1
- package/dist/cmd/kv/delete-namespace.d.ts +0 -3
- package/dist/cmd/kv/delete-namespace.d.ts.map +0 -1
- package/dist/cmd/kv/delete.d.ts +0 -3
- package/dist/cmd/kv/delete.d.ts.map +0 -1
- package/dist/cmd/kv/get.d.ts +0 -3
- package/dist/cmd/kv/get.d.ts.map +0 -1
- package/dist/cmd/kv/index.d.ts +0 -2
- package/dist/cmd/kv/index.d.ts.map +0 -1
- package/dist/cmd/kv/keys.d.ts +0 -3
- package/dist/cmd/kv/keys.d.ts.map +0 -1
- package/dist/cmd/kv/list-namespaces.d.ts +0 -3
- package/dist/cmd/kv/list-namespaces.d.ts.map +0 -1
- package/dist/cmd/kv/repl.d.ts +0 -3
- package/dist/cmd/kv/repl.d.ts.map +0 -1
- package/dist/cmd/kv/search.d.ts +0 -3
- package/dist/cmd/kv/search.d.ts.map +0 -1
- package/dist/cmd/kv/set.d.ts +0 -3
- package/dist/cmd/kv/set.d.ts.map +0 -1
- package/dist/cmd/kv/stats.d.ts +0 -3
- package/dist/cmd/kv/stats.d.ts.map +0 -1
- package/dist/cmd/kv/util.d.ts.map +0 -1
- package/dist/cmd/objectstore/delete-bucket.d.ts +0 -3
- package/dist/cmd/objectstore/delete-bucket.d.ts.map +0 -1
- package/dist/cmd/objectstore/delete.d.ts +0 -3
- package/dist/cmd/objectstore/delete.d.ts.map +0 -1
- package/dist/cmd/objectstore/get.d.ts +0 -3
- package/dist/cmd/objectstore/get.d.ts.map +0 -1
- package/dist/cmd/objectstore/index.d.ts +0 -2
- package/dist/cmd/objectstore/index.d.ts.map +0 -1
- package/dist/cmd/objectstore/list-buckets.d.ts +0 -3
- package/dist/cmd/objectstore/list-buckets.d.ts.map +0 -1
- package/dist/cmd/objectstore/list-keys.d.ts +0 -3
- package/dist/cmd/objectstore/list-keys.d.ts.map +0 -1
- package/dist/cmd/objectstore/put.d.ts +0 -3
- package/dist/cmd/objectstore/put.d.ts.map +0 -1
- package/dist/cmd/objectstore/repl.d.ts +0 -3
- package/dist/cmd/objectstore/repl.d.ts.map +0 -1
- package/dist/cmd/objectstore/url.d.ts +0 -3
- package/dist/cmd/objectstore/url.d.ts.map +0 -1
- package/dist/cmd/objectstore/util.d.ts.map +0 -1
- package/dist/cmd/prompt/index.d.ts +0 -4
- package/dist/cmd/prompt/index.d.ts.map +0 -1
- package/dist/cmd/prompt/llm.d.ts +0 -3
- package/dist/cmd/prompt/llm.d.ts.map +0 -1
- package/dist/cmd/schema/index.d.ts +0 -4
- package/dist/cmd/schema/index.d.ts.map +0 -1
- package/dist/cmd/schema/show.d.ts +0 -3
- package/dist/cmd/schema/show.d.ts.map +0 -1
- package/dist/cmd/secret/delete.d.ts +0 -2
- package/dist/cmd/secret/delete.d.ts.map +0 -1
- package/dist/cmd/secret/get.d.ts +0 -2
- package/dist/cmd/secret/get.d.ts.map +0 -1
- package/dist/cmd/secret/import.d.ts +0 -2
- package/dist/cmd/secret/import.d.ts.map +0 -1
- package/dist/cmd/secret/index.d.ts +0 -2
- package/dist/cmd/secret/index.d.ts.map +0 -1
- package/dist/cmd/secret/list.d.ts +0 -2
- package/dist/cmd/secret/list.d.ts.map +0 -1
- package/dist/cmd/secret/pull.d.ts +0 -2
- package/dist/cmd/secret/pull.d.ts.map +0 -1
- package/dist/cmd/secret/push.d.ts +0 -2
- package/dist/cmd/secret/push.d.ts.map +0 -1
- package/dist/cmd/secret/set.d.ts +0 -2
- package/dist/cmd/secret/set.d.ts.map +0 -1
- package/src/cmd/bundle/index.ts +0 -58
- /package/dist/cmd/{agents → ai}/index.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/ast.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/ast.test.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/bundler.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/file.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/fix-duplicate-exports.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/fix-duplicate-exports.test.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/index.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/_util.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/aisdk.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/index.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/llm.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/plugin.d.ts +0 -0
- /package/src/cmd/{bundle → build}/ast.test.ts +0 -0
- /package/src/cmd/{bundle → build}/ast.ts +0 -0
- /package/src/cmd/{bundle → build}/bundler.ts +0 -0
- /package/src/cmd/{bundle → build}/file.ts +0 -0
- /package/src/cmd/{bundle → build}/fix-duplicate-exports.test.ts +0 -0
- /package/src/cmd/{bundle → build}/fix-duplicate-exports.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/_util.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/aisdk.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/index.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/llm.ts +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createCommand } from '../../types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { bundle } from './bundler';
|
|
4
|
+
import * as tui from '../../tui';
|
|
5
|
+
import { getCommand } from '../../command-prefix';
|
|
6
|
+
|
|
7
|
+
const BuildResponseSchema = z.object({
|
|
8
|
+
success: z.boolean().describe('Whether the build succeeded'),
|
|
9
|
+
bundlePath: z.string().describe('Path to the build directory'),
|
|
10
|
+
projectName: z.string().describe('Project name'),
|
|
11
|
+
dev: z.boolean().describe('Whether dev mode was enabled'),
|
|
12
|
+
size: z.number().optional().describe('Build size in bytes'),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export const command = createCommand({
|
|
16
|
+
name: 'build',
|
|
17
|
+
description: 'Build Agentuity application for deployment',
|
|
18
|
+
tags: ['read-only', 'slow', 'requires-project'],
|
|
19
|
+
aliases: ['bundle'],
|
|
20
|
+
optional: { project: true },
|
|
21
|
+
idempotent: false,
|
|
22
|
+
examples: [getCommand('build'), getCommand('build --dev'), getCommand('bundle')],
|
|
23
|
+
schema: {
|
|
24
|
+
options: z.object({
|
|
25
|
+
dev: z.boolean().optional().describe('Enable development mode'),
|
|
26
|
+
}),
|
|
27
|
+
response: BuildResponseSchema,
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
async handler(ctx) {
|
|
31
|
+
const { opts, projectDir, project } = ctx;
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
tui.info(`Bundling project at: ${projectDir}`);
|
|
35
|
+
|
|
36
|
+
// Generate agent registry FIRST (so types exist for typecheck)
|
|
37
|
+
tui.info('Generating agent registry...');
|
|
38
|
+
await bundle({
|
|
39
|
+
rootDir: projectDir,
|
|
40
|
+
dev: opts.dev || false,
|
|
41
|
+
project,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// Run TypeScript type checking after registry generation (skip in dev mode)
|
|
45
|
+
if (!opts.dev) {
|
|
46
|
+
try {
|
|
47
|
+
tui.info('Running type check...');
|
|
48
|
+
const { resolve } = await import('node:path');
|
|
49
|
+
const absoluteProjectDir = resolve(projectDir);
|
|
50
|
+
const result = await Bun.$`bunx tsc --noEmit --skipLibCheck`.cwd(absoluteProjectDir).nothrow();
|
|
51
|
+
|
|
52
|
+
if (result.exitCode === 0) {
|
|
53
|
+
tui.success('Type check passed');
|
|
54
|
+
} else {
|
|
55
|
+
tui.error('Type check failed:\n');
|
|
56
|
+
console.error(result.stderr.toString());
|
|
57
|
+
tui.fatal('Fix type errors before building');
|
|
58
|
+
}
|
|
59
|
+
} catch (error) {
|
|
60
|
+
// If tsc fails to run, show error and fail
|
|
61
|
+
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
62
|
+
tui.error(`Type check failed to run: ${errorMsg}`);
|
|
63
|
+
tui.fatal('Unable to run TypeScript type checking. Ensure TypeScript is installed.');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
tui.success('Bundle complete');
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
success: true,
|
|
71
|
+
bundlePath: `${projectDir}/.agentuity`,
|
|
72
|
+
projectName: project?.projectId || 'unknown',
|
|
73
|
+
dev: opts.dev || false,
|
|
74
|
+
};
|
|
75
|
+
} catch (error) {
|
|
76
|
+
if (error instanceof Error) {
|
|
77
|
+
tui.fatal(`Bundle failed: ${error.message}`);
|
|
78
|
+
} else {
|
|
79
|
+
tui.fatal('Bundle failed');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
});
|
|
@@ -151,7 +151,8 @@ function generateAgentRegistry(srcDir: string, agentInfo: Array<Record<string, s
|
|
|
151
151
|
}
|
|
152
152
|
const agentTypes = agentTypeLines.join('\n');
|
|
153
153
|
|
|
154
|
-
const generatedContent =
|
|
154
|
+
const generatedContent = `/// <reference types="hono" />
|
|
155
|
+
// Auto-generated by Agentuity - do not edit manually
|
|
155
156
|
${imports}${evalsImportsStr}
|
|
156
157
|
import type { AgentRunner, Logger } from '@agentuity/runtime';
|
|
157
158
|
import type { KeyValueStorage, ObjectStorage, StreamStorage, VectorStorage } from '@agentuity/core';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { APIResponseSchema } from '@agentuity/server';
|
|
5
5
|
import { Table } from 'console-table-printer';
|
|
6
|
-
import { abbreviate, abbreviateDescription } from '
|
|
6
|
+
import { abbreviate, abbreviateDescription } from '../../../utils/format';
|
|
7
7
|
|
|
8
8
|
const AgentSchema = z.object({
|
|
9
9
|
id: z.string(),
|
|
@@ -145,3 +145,4 @@ export const command = createCommand({
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
});
|
|
148
|
+
export default command;
|
package/src/cmd/cloud/deploy.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { createSubcommand } from '../../types';
|
|
|
6
6
|
import * as tui from '../../tui';
|
|
7
7
|
import { saveProjectDir } from '../../config';
|
|
8
8
|
import { runSteps, stepSuccess, stepSkipped, stepError, Step, ProgressCallback } from '../../steps';
|
|
9
|
-
import { bundle } from '../
|
|
9
|
+
import { bundle } from '../build/bundler';
|
|
10
10
|
import { loadBuildMetadata } from '../../config';
|
|
11
11
|
import {
|
|
12
12
|
projectEnvUpdate,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvDelete } from '@agentuity/server';
|
|
5
5
|
import {
|
|
6
6
|
findExistingEnvFile,
|
|
7
7
|
readEnvFile,
|
|
8
8
|
writeEnvFile,
|
|
9
9
|
filterAgentuitySdkKeys,
|
|
10
|
-
} from '
|
|
11
|
-
import { getCommand } from '
|
|
10
|
+
} from '../../../env-util';
|
|
11
|
+
import { getCommand } from '../../../command-prefix';
|
|
12
12
|
|
|
13
13
|
const EnvDeleteResponseSchema = z.object({
|
|
14
14
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectGet } from '@agentuity/server';
|
|
5
|
-
import { maskSecret } from '
|
|
6
|
-
import { getCommand } from '
|
|
7
|
-
import { ErrorCode } from '
|
|
5
|
+
import { maskSecret } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
|
+
import { ErrorCode } from '../../../errors';
|
|
8
8
|
|
|
9
9
|
const EnvGetResponseSchema = z.object({
|
|
10
10
|
key: z.string().describe('Environment variable key name'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvUpdate } from '@agentuity/server';
|
|
5
5
|
import {
|
|
6
6
|
findEnvFile,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
mergeEnvVars,
|
|
11
11
|
splitEnvAndSecrets,
|
|
12
12
|
looksLikeSecret,
|
|
13
|
-
} from '
|
|
14
|
-
import { getCommand } from '
|
|
13
|
+
} from '../../../env-util';
|
|
14
|
+
import { getCommand } from '../../../command-prefix';
|
|
15
15
|
|
|
16
16
|
const EnvImportResponseSchema = z.object({
|
|
17
17
|
success: z.boolean().describe('Whether import succeeded'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCommand } from '
|
|
1
|
+
import { createCommand } from '../../../types';
|
|
2
2
|
import { pullSubcommand } from './pull';
|
|
3
3
|
import { pushSubcommand } from './push';
|
|
4
4
|
import { setSubcommand } from './set';
|
|
@@ -21,3 +21,4 @@ export const command = createCommand({
|
|
|
21
21
|
importSubcommand,
|
|
22
22
|
],
|
|
23
23
|
});
|
|
24
|
+
export default command;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectGet } from '@agentuity/server';
|
|
5
|
-
import { maskSecret } from '
|
|
6
|
-
import { getCommand } from '
|
|
5
|
+
import { maskSecret } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const EnvListResponseSchema = z.record(
|
|
9
9
|
z.string(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { createSubcommand } from '
|
|
4
|
-
import * as tui from '
|
|
3
|
+
import { createSubcommand } from '../../../types';
|
|
4
|
+
import * as tui from '../../../tui';
|
|
5
5
|
import { projectGet } from '@agentuity/server';
|
|
6
6
|
import {
|
|
7
7
|
findEnvFile,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
readEnvFile,
|
|
10
10
|
writeEnvFile,
|
|
11
11
|
mergeEnvVars,
|
|
12
|
-
} from '
|
|
13
|
-
import { getCommand } from '
|
|
12
|
+
} from '../../../env-util';
|
|
13
|
+
import { getCommand } from '../../../command-prefix';
|
|
14
14
|
|
|
15
15
|
const EnvPullResponseSchema = z.object({
|
|
16
16
|
success: z.boolean().describe('Whether pull succeeded'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvUpdate } from '@agentuity/server';
|
|
5
|
-
import { findExistingEnvFile, readEnvFile, filterAgentuitySdkKeys } from '
|
|
6
|
-
import { getCommand } from '
|
|
5
|
+
import { findExistingEnvFile, readEnvFile, filterAgentuitySdkKeys } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const EnvPushResponseSchema = z.object({
|
|
9
9
|
success: z.boolean().describe('Whether push succeeded'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvUpdate } from '@agentuity/server';
|
|
5
5
|
import {
|
|
6
6
|
findEnvFile,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
writeEnvFile,
|
|
9
9
|
filterAgentuitySdkKeys,
|
|
10
10
|
looksLikeSecret,
|
|
11
|
-
} from '
|
|
12
|
-
import { getCommand } from '
|
|
11
|
+
} from '../../../env-util';
|
|
12
|
+
import { getCommand } from '../../../command-prefix';
|
|
13
13
|
|
|
14
14
|
const EnvSetResponseSchema = z.object({
|
|
15
15
|
success: z.boolean().describe('Whether the operation succeeded'),
|
package/src/cmd/cloud/index.ts
CHANGED
|
@@ -5,12 +5,22 @@ import { sessionCommand } from './session';
|
|
|
5
5
|
import { sshSubcommand } from './ssh';
|
|
6
6
|
import { scpSubcommand } from './scp';
|
|
7
7
|
import { deploymentCommand } from './deployment';
|
|
8
|
+
import keyvalueCommand from './keyvalue';
|
|
9
|
+
import agentsCommand from './agents';
|
|
10
|
+
import objectstoreCommand from './objectstore';
|
|
11
|
+
import envCommand from './env';
|
|
12
|
+
import secretCommand from './secret';
|
|
8
13
|
|
|
9
14
|
export const command = createCommand({
|
|
10
15
|
name: 'cloud',
|
|
11
16
|
description: 'Cloud related commands',
|
|
12
17
|
tags: ['slow', 'requires-auth'],
|
|
13
18
|
subcommands: [
|
|
19
|
+
keyvalueCommand,
|
|
20
|
+
agentsCommand,
|
|
21
|
+
objectstoreCommand,
|
|
22
|
+
envCommand,
|
|
23
|
+
secretCommand,
|
|
14
24
|
deploySubcommand,
|
|
15
25
|
resourceSubcommand,
|
|
16
26
|
sessionCommand,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
export const createNamespaceSubcommand = createCommand({
|
|
8
8
|
name: 'create-namespace',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import { ErrorCode } from '
|
|
4
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import { ErrorCode } from '../../../errors';
|
|
4
|
+
import * as tui from '../../../tui';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
export const deleteNamespaceSubcommand = createCommand({
|
|
9
9
|
name: 'delete-namespace',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVDeleteResponseSchema = z.object({
|
|
8
8
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { tryParseJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { tryParseJSON } from '../../../json';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const KVGetResponseSchema = z.object({
|
|
9
9
|
exists: z.boolean().describe('Whether the key exists'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCommand } from '
|
|
1
|
+
import { createCommand } from '../../../types';
|
|
2
2
|
import { createNamespaceSubcommand } from './create-namespace';
|
|
3
3
|
import { deleteSubcommand } from './delete';
|
|
4
4
|
import { deleteNamespaceSubcommand } from './delete-namespace';
|
|
@@ -29,3 +29,4 @@ export const command = createCommand({
|
|
|
29
29
|
],
|
|
30
30
|
requires: { auth: true, project: true },
|
|
31
31
|
});
|
|
32
|
+
export default command;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVKeysResponseSchema = z.object({
|
|
8
8
|
namespace: z.string().describe('Namespace name'),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const NamespaceListResponseSchema = z.array(z.string().describe('Namespace name'));
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import { createRepl, type ReplCommand } from '
|
|
4
|
-
import { showBanner } from '
|
|
5
|
-
import * as tui from '
|
|
6
|
-
import { isPossiblyJSON, tryParseJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import { createRepl, type ReplCommand } from '../../../repl';
|
|
4
|
+
import { showBanner } from '../../../banner';
|
|
5
|
+
import * as tui from '../../../tui';
|
|
6
|
+
import { isPossiblyJSON, tryParseJSON } from '../../../json';
|
|
7
7
|
import { createStorageAdapter } from './util';
|
|
8
|
-
import { getCommand } from '
|
|
8
|
+
import { getCommand } from '../../../command-prefix';
|
|
9
9
|
|
|
10
10
|
export const replSubcommand = createCommand({
|
|
11
11
|
name: 'repl',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVSearchResponseSchema = z.object({
|
|
8
8
|
namespace: z.string().describe('Namespace name'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { isPossiblyJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { isPossiblyJSON } from '../../../json';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const KVSetResponseSchema = z.object({
|
|
9
9
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVStatsResponseSchema = z.union([
|
|
8
8
|
z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { KeyValueStorageService, Logger } from '@agentuity/core';
|
|
2
2
|
import { createServerFetchAdapter } from '@agentuity/server';
|
|
3
|
-
import { loadProjectSDKKey } from '
|
|
4
|
-
import { ErrorCode } from '
|
|
5
|
-
import type { Config } from '
|
|
6
|
-
import * as tui from '
|
|
3
|
+
import { loadProjectSDKKey } from '../../../config';
|
|
4
|
+
import { ErrorCode } from '../../../errors';
|
|
5
|
+
import type { Config } from '../../../types';
|
|
6
|
+
import * as tui from '../../../tui';
|
|
7
7
|
|
|
8
8
|
export async function createStorageAdapter(ctx: {
|
|
9
9
|
logger: Logger;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
export const deleteBucketSubcommand = createCommand({
|
|
8
8
|
name: 'delete-bucket',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const ObjectStoreDeleteResponseSchema = z.object({
|
|
8
8
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { tryParseJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { tryParseJSON } from '../../../json';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const ObjectGetResponseSchema = z.object({
|
|
9
9
|
exists: z.boolean().describe('Whether the object exists'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCommand } from '
|
|
1
|
+
import { createCommand } from '../../../types';
|
|
2
2
|
import { deleteSubcommand } from './delete';
|
|
3
3
|
import { deleteBucketSubcommand } from './delete-bucket';
|
|
4
4
|
import { getSubcommand } from './get';
|
|
@@ -25,3 +25,4 @@ export const command = createCommand({
|
|
|
25
25
|
],
|
|
26
26
|
requires: { auth: true, project: true },
|
|
27
27
|
});
|
|
28
|
+
export default command;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const BucketListResponseSchema = z.array(
|
|
8
8
|
z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
export const listKeysSubcommand = createCommand({
|
|
8
8
|
name: 'list-keys',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { isPossiblyJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { isPossiblyJSON } from '../../../json';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const ObjectStorePutResponseSchema = z.object({
|
|
9
9
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import { createRepl, type ReplCommand } from '
|
|
4
|
-
import { showBanner } from '
|
|
5
|
-
import * as tui from '
|
|
6
|
-
import { isPossiblyJSON, tryParseJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import { createRepl, type ReplCommand } from '../../../repl';
|
|
4
|
+
import { showBanner } from '../../../banner';
|
|
5
|
+
import * as tui from '../../../tui';
|
|
6
|
+
import { isPossiblyJSON, tryParseJSON } from '../../../json';
|
|
7
7
|
import { createStorageAdapter } from './util';
|
|
8
|
-
import { getCommand } from '
|
|
8
|
+
import { getCommand } from '../../../command-prefix';
|
|
9
9
|
|
|
10
10
|
export const replSubcommand = createCommand({
|
|
11
11
|
name: 'repl',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const ObjectStoreURLResponseSchema = z.object({
|
|
8
8
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Logger, ObjectStorageService } from '@agentuity/core';
|
|
2
2
|
import { createServerFetchAdapter } from '@agentuity/server';
|
|
3
|
-
import { loadProjectSDKKey } from '
|
|
4
|
-
import type { Config } from '
|
|
5
|
-
import * as tui from '
|
|
3
|
+
import { loadProjectSDKKey } from '../../../config';
|
|
4
|
+
import type { Config } from '../../../types';
|
|
5
|
+
import * as tui from '../../../tui';
|
|
6
6
|
|
|
7
7
|
export async function createStorageAdapter(ctx: {
|
|
8
8
|
logger: Logger;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvDelete } from '@agentuity/server';
|
|
5
|
-
import { findEnvFile, readEnvFile, writeEnvFile, filterAgentuitySdkKeys } from '
|
|
6
|
-
import { getCommand } from '
|
|
5
|
+
import { findEnvFile, readEnvFile, writeEnvFile, filterAgentuitySdkKeys } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const SecretDeleteResponseSchema = z.object({
|
|
9
9
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectGet } from '@agentuity/server';
|
|
5
|
-
import { maskSecret } from '
|
|
6
|
-
import { getCommand } from '
|
|
7
|
-
import { ErrorCode } from '
|
|
5
|
+
import { maskSecret } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
|
+
import { ErrorCode } from '../../../errors';
|
|
8
8
|
|
|
9
9
|
const SecretGetResponseSchema = z.object({
|
|
10
10
|
key: z.string().describe('Secret key name'),
|