{"_id":"@cogitator-ai/deploy","_rev":"7-f6831650b279134070ba50efb9be6b94","name":"@cogitator-ai/deploy","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.0":{"name":"@cogitator-ai/deploy","version":"0.1.0","license":"MIT","_id":"@cogitator-ai/deploy@0.1.0","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"dist":{"shasum":"3fa23dc3c51fbe4a70b49ed49f060a266ea34aec","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.0.tgz","fileCount":46,"integrity":"sha512-yHIOULaSBsktuLHnrqRzyvUWIW4uskI4ThKUqSRi7FHmYPCNRonGsPiORIrmwzQL6VR2k2dgann6icQNP8v/Hg==","signatures":[{"sig":"MEUCIQDVH1889xZwJ0hLlxww9rX+EkQcN5PszzhsBQv0DUQX+wIgKgoxaM64lelO+zLDoKVdvm49dI4fXcxY4xdJsmMK+NQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54948},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"243709dd1accfec8bc428ec661e8b4d774d94e23","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"repository":{"url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","type":"git","directory":"packages/deploy"},"_npmVersion":"10.9.0","description":"One-command deployment for Cogitator agents","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@cogitator-ai/types":"workspace:*","@cogitator-ai/config":"workspace:*"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.3.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/deploy_0.1.0_1771596055708_0.513562779484602","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cogitator-ai/deploy","version":"0.1.1","license":"MIT","_id":"@cogitator-ai/deploy@0.1.1","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"dist":{"shasum":"3f87caefc44baa59cbc2c34083a8387e666823cd","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.1.tgz","fileCount":46,"integrity":"sha512-KkawpkhkPGFnPK4Cr0WbWg0ok3SRwvSqVljjSc1m6rGlkr1fhG2hdQ6T/xVvxiWqA/S9rnJdOtMOKmDOm7qvPw==","signatures":[{"sig":"MEUCIQDsq9VTn157krsYCmvtV3KPdnXIxf/9hb84BqpdrgU/qAIgHmOFKxfAuQwc3MXSD9o0RpGg5z0Mg18QCzg0pPrTypU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55113},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a6b9adee17ab69490d006ebca129a24d50e90b0f","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"repository":{"url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","type":"git","directory":"packages/deploy"},"_npmVersion":"10.9.0","description":"One-command deployment for Cogitator agents","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@cogitator-ai/types":"workspace:*","@cogitator-ai/config":"workspace:*"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.3.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/deploy_0.1.1_1771596815563_0.8108038392257695","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@cogitator-ai/deploy","version":"0.1.2","license":"MIT","_id":"@cogitator-ai/deploy@0.1.2","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"dist":{"shasum":"6c9d0ad314ca8d8d5cfff792bd579522f58d8686","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.2.tgz","fileCount":46,"integrity":"sha512-WEzvl2D8XkQTx5JbMxM9tMTAh6pmEwk/NG1gMjmIcHnhH/q5BNvkD1G8ZVLg+IRKFX8ORbPqQE7/hU07TAN/qQ==","signatures":[{"sig":"MEUCIH4Q2MZbLoWdtAlOwljufywSFhNIEa8/oF11y2ekncIqAiEA3sRInxHIZE4+D3sKksLSxAKDh9pYqspiJURUcKCNrFk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59101},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"bf33fb6c53d7ee981b711787fb7f69b52c2f5513","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"repository":{"url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","type":"git","directory":"packages/deploy"},"_npmVersion":"10.9.0","description":"One-command deployment for Cogitator agents","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@cogitator-ai/types":"workspace:*","@cogitator-ai/config":"workspace:*"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.3.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/deploy_0.1.2_1771975628172_0.8684679923642702","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@cogitator-ai/deploy","version":"0.1.3","license":"MIT","_id":"@cogitator-ai/deploy@0.1.3","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"dist":{"shasum":"8d7ec20aabdaade27d29af6b9c6b9b990e57f857","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.3.tgz","fileCount":46,"integrity":"sha512-udJYf0oJUO2ULcEHflskoRg9oM1wyGsmOoQpz4LooEwtRJ/EjJf/QFoNoL7E5MG5WNni5Ty0fcyvocTG6M+BVw==","signatures":[{"sig":"MEUCIQDTjQGZJuBnFKG4RpPpIpIwcAw9zzFS1hXbQsXax1hSPgIgakJf5ryBQTHNJ+3BDJMNmmPp2d2Bdz7SOplT+jDILM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59101},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f508be4a1a30c7bd136f0fa8b2e6cee5521416ab","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"repository":{"url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","type":"git","directory":"packages/deploy"},"_npmVersion":"10.9.0","description":"One-command deployment for Cogitator agents","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@cogitator-ai/types":"workspace:*","@cogitator-ai/config":"workspace:*"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.3.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/deploy_0.1.3_1772035521112_0.035137100305375535","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@cogitator-ai/deploy","version":"0.1.6","license":"MIT","_id":"@cogitator-ai/deploy@0.1.6","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"dist":{"shasum":"466a2ec47725fec45ff3420ae14aeded0176a71c","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.6.tgz","fileCount":46,"integrity":"sha512-US6MYl80Pi401PDqO+INcUmnxgoerM8S74oKFZYH0o2s7AWRLfOSwZJEZ3Tdv7zN6z3hl3rYCtD4GUqVVxw6rA==","signatures":[{"sig":"MEYCIQDhNBy/SUWXcDB0GtDnxp+xRoNSOhh8s9omEFPHhLyUJQIhANjMsXoDvg8ASC5s7dgYndDdd/yFbxEAzMZXf6jcM8+t","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59121},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"33b6a8cb29bfdd7d2255acfa240b2df5d558354e","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"repository":{"url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","type":"git","directory":"packages/deploy"},"_npmVersion":"10.9.0","description":"One-command deployment for Cogitator agents","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@cogitator-ai/types":"workspace:*","@cogitator-ai/config":"workspace:*"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.3.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/deploy_0.1.6_1778881329359_0.2574820168776253","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@cogitator-ai/deploy","version":"0.1.8","license":"MIT","_id":"@cogitator-ai/deploy@0.1.8","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"dist":{"shasum":"8a38270f52e318faf23c862b183864dea21b15e4","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.8.tgz","fileCount":47,"integrity":"sha512-3AofxwoG6GvZfghRj8d+wHkXSBfbbaZ28xkB2E9xT7aDvAhd48APk4wVv5a7BUy6hs+G+I4AQy2Ha9+NgIpzsw==","signatures":[{"sig":"MEQCIDbU08kNc8vW0cDVrsvIm5iWZDBzw3Q9vkaZKhJLr8lMAiBoJF3Xl84m+nPmvRcIu+oB21ZTjfApJLgTHWKQ2oAbZA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60802},"main":"./dist/index.js","type":"module","_from":"file:cogitator-ai-deploy-0.1.8.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"_resolved":"/private/var/folders/20/4d95hdvj45j337gtqpbx3v1m0000gn/T/9b1346edd9170278f29fe4e9a3657cca/cogitator-ai-deploy-0.1.8.tgz","_integrity":"sha512-3AofxwoG6GvZfghRj8d+wHkXSBfbbaZ28xkB2E9xT7aDvAhd48APk4wVv5a7BUy6hs+G+I4AQy2Ha9+NgIpzsw==","repository":{"url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","type":"git","directory":"packages/deploy"},"_npmVersion":"10.9.0","description":"One-command deployment for Cogitator agents","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@cogitator-ai/types":"0.22.2","@cogitator-ai/config":"0.5.5"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","typescript":"^5.3.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/deploy_0.1.8_1778882252849_0.9990823673427056","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@cogitator-ai/deploy","version":"0.1.9","description":"One-command deployment for Cogitator agents","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@cogitator-ai/types":"0.22.3","@cogitator-ai/config":"0.5.6"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.3.0","vitest":"^4.0.18"},"engines":{"node":">=20.0.0"},"repository":{"type":"git","url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","directory":"packages/deploy"},"publishConfig":{"access":"public","registry":"https://npm.pkg.github.com"},"license":"MIT","scripts":{"build":"tsc","dev":"tsc --watch","clean":"rm -rf dist","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest"},"_id":"@cogitator-ai/deploy@0.1.9","bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","_integrity":"sha512-tP9tbMbhutZimraekpttZyz2XQINLycuEfhjq+usaVOwO9o+ADQG3TL1LzVYSlM2VH4LAdjy9YZoPqYo7toyXA==","_resolved":"/private/var/folders/20/4d95hdvj45j337gtqpbx3v1m0000gn/T/6d5dc019ed170df2b4e568316d9726e5/cogitator-ai-deploy-0.1.9.tgz","_from":"file:cogitator-ai-deploy-0.1.9.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-tP9tbMbhutZimraekpttZyz2XQINLycuEfhjq+usaVOwO9o+ADQG3TL1LzVYSlM2VH4LAdjy9YZoPqYo7toyXA==","shasum":"f881fe247e05a326955eedb0c7401c39ff6e97af","tarball":"https://registry.npmjs.org/@cogitator-ai/deploy/-/deploy-0.1.9.tgz","fileCount":47,"unpackedSize":60802,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBkOqv4AbA20GFwggAB2sAqIQ9ojpNcTreDnJCuwZtiPAiEArmEPnlyzG7fc+LlnaK5Dl0eb6RbOOycCxQAGWyQ5Ag0="}]},"_npmUser":{"name":"el1fe","email":"piuro.pavel@gmail.com"},"directories":{},"maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deploy_0.1.9_1785059661795_0.11281892576239438"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-20T14:00:55.621Z","modified":"2026-07-26T09:54:22.246Z","0.1.0":"2026-02-20T14:00:55.839Z","0.1.1":"2026-02-20T14:13:35.722Z","0.1.2":"2026-02-24T23:27:08.372Z","0.1.3":"2026-02-25T16:05:21.334Z","0.1.6":"2026-05-15T21:42:09.545Z","0.1.8":"2026-05-15T21:57:33.014Z","0.1.9":"2026-07-26T09:54:21.958Z"},"bugs":{"url":"https://github.com/cogitator-ai/Cogitator-AI/issues"},"license":"MIT","homepage":"https://github.com/cogitator-ai/Cogitator-AI#readme","repository":{"type":"git","url":"git+https://github.com/cogitator-ai/Cogitator-AI.git","directory":"packages/deploy"},"description":"One-command deployment for Cogitator agents","maintainers":[{"name":"el1fe","email":"piuro.pavel@gmail.com"}],"readme":"# @cogitator-ai/deploy\n\nOne-command deployment engine for Cogitator agents. Supports Docker and Fly.io targets with auto-detection of project configuration.\n\n## Installation\n\n```bash\npnpm add @cogitator-ai/deploy\n```\n\n## Quick Start\n\n### Via CLI\n\n```bash\n# Deploy to Docker (default)\ncogitator deploy\n\n# Deploy to Fly.io\ncogitator deploy --target fly\n\n# Dry run — see what would happen\ncogitator deploy --dry-run\n\n# Check status\ncogitator deploy status\n\n# Tear down\ncogitator deploy destroy\n```\n\n### Programmatic API\n\n```typescript\nimport { Deployer } from '@cogitator-ai/deploy';\n\nconst deployer = new Deployer();\n\n// Plan deployment (preflight checks, no execution)\nconst plan = await deployer.plan({\n  projectDir: process.cwd(),\n  target: 'docker',\n  noPush: true,\n});\n\n// Execute deployment\nconst result = await deployer.deploy({\n  projectDir: process.cwd(),\n  target: 'fly',\n});\n\nconsole.log(result.url); // https://my-app.fly.dev\n```\n\n## Configuration\n\nAdd a `deploy` section to `cogitator.yml`:\n\n```yaml\ndeploy:\n  target: fly\n  port: 3000\n  region: iad\n  instances: 2\n  registry: ghcr.io/myorg/myapp\n  services:\n    redis: true\n    postgres: true\n  secrets:\n    - OPENAI_API_KEY\n    - DATABASE_URL\n```\n\n## Auto-Detection\n\nThe deploy engine automatically detects:\n\n| What             | Source                        | Example                            |\n| ---------------- | ----------------------------- | ---------------------------------- |\n| Server adapter   | `package.json` dependencies   | `@cogitator-ai/express` → Express  |\n| Services         | `cogitator.yml` memory config | `adapter: redis` → Redis service   |\n| Required secrets | LLM provider configs          | `openai` → `OPENAI_API_KEY`        |\n| Ollama Cloud     | Model suffix or API key       | `:cloud` suffix → `OLLAMA_API_KEY` |\n\n## Deploy Targets\n\n### Docker\n\nGenerates a multi-stage `Dockerfile` and optional `docker-compose.prod.yml`:\n\n```bash\ncogitator deploy --target docker           # Build only\ncogitator deploy --target docker --push    # Build + push to registry\n```\n\n### Fly.io\n\nGenerates `fly.toml` and deploys via `flyctl`:\n\n```bash\ncogitator deploy --target fly --region iad\n```\n\nRequires `flyctl` installed and authenticated.\n\n## Architecture\n\n```\nProjectAnalyzer  →  ArtifactGenerator  →  DeployProvider  →  Result\n(detect config)     (Dockerfile, etc.)     (docker/fly)       (url, status)\n```\n\n- **ProjectAnalyzer** — reads `package.json` and `cogitator.yml` to detect server, services, secrets\n- **ArtifactGenerator** — generates Dockerfile, docker-compose, fly.toml from templates\n- **DeployProvider** — executes preflight checks, builds, deploys (Docker or Fly.io)\n- **Deployer** — orchestrator that ties it all together\n\n## See Also\n\n- [Deployment Guide](../../docs/DEPLOY.md) — full documentation with CI/CD examples\n- [CLI Reference](../cli/README.md) — all CLI commands\n","readmeFilename":"README.md"}