@deftai/directive-content 0.55.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/skills/deft/SKILL.md +6 -0
- package/.agents/skills/deft-directive-article-review/SKILL.md +11 -0
- package/.agents/skills/deft-directive-build/SKILL.md +10 -0
- package/.agents/skills/deft-directive-cost/SKILL.md +12 -0
- package/.agents/skills/deft-directive-debug/SKILL.md +13 -0
- package/.agents/skills/deft-directive-gh-arch/SKILL.md +11 -0
- package/.agents/skills/deft-directive-gh-slice/SKILL.md +10 -0
- package/.agents/skills/deft-directive-glossary/SKILL.md +10 -0
- package/.agents/skills/deft-directive-interview/SKILL.md +9 -0
- package/.agents/skills/deft-directive-pre-pr/SKILL.md +9 -0
- package/.agents/skills/deft-directive-refinement/SKILL.md +10 -0
- package/.agents/skills/deft-directive-release/SKILL.md +12 -0
- package/.agents/skills/deft-directive-review-cycle/SKILL.md +10 -0
- package/.agents/skills/deft-directive-setup/SKILL.md +10 -0
- package/.agents/skills/deft-directive-swarm/SKILL.md +10 -0
- package/.agents/skills/deft-directive-sync/SKILL.md +9 -0
- package/.agents/skills/deft-directive-triage/SKILL.md +9 -0
- package/.agents/skills/deft-directive-write-skill/SKILL.md +9 -0
- package/LICENSE.md +22 -0
- package/QUICK-START.md +167 -0
- package/UPGRADING.md +517 -0
- package/coding/build-output.md +28 -0
- package/coding/coding.md +235 -0
- package/coding/debugging.md +110 -0
- package/coding/holzmann.md +96 -0
- package/coding/hygiene.md +127 -0
- package/coding/security.md +158 -0
- package/coding/testing.md +162 -0
- package/coding/toolchain.md +44 -0
- package/commands.md +300 -0
- package/context/context.md +57 -0
- package/context/deterministic-split.md +67 -0
- package/context/examples.md +26 -0
- package/context/fractal-summaries.md +69 -0
- package/context/long-horizon.md +46 -0
- package/context/spec-deltas.md +177 -0
- package/context/tool-design.md +34 -0
- package/context/working-memory.md +62 -0
- package/contracts/boundary-maps.md +65 -0
- package/contracts/deterministic-questions.md +59 -0
- package/contracts/hierarchy.md +77 -0
- package/conventions/content-manifest.json +399 -0
- package/conventions/machine-generated-banner.md +130 -0
- package/conventions/references.md +120 -0
- package/conventions/rule-ownership.json +382 -0
- package/conventions/task-caching.md +43 -0
- package/conventions/vbrief-filenames.md +70 -0
- package/deployments/README.md +37 -0
- package/deployments/agentuity/README.md +138 -0
- package/deployments/agentuity/via-cli.md +380 -0
- package/deployments/agentuity/via-cloud.md +425 -0
- package/deployments/agentuity/via-github-actions.md +664 -0
- package/deployments/agentuity/via-gravity-network.md +606 -0
- package/deployments/agentuity/via-vpc.md +607 -0
- package/deployments/aws/README.md +38 -0
- package/deployments/aws/via-app-runner.md +612 -0
- package/deployments/aws/via-ecs-fargate.md +561 -0
- package/deployments/aws/via-elastic-beanstalk.md +628 -0
- package/deployments/aws/via-lambda.md +649 -0
- package/deployments/azure/README.md +37 -0
- package/deployments/azure/via-aks.md +390 -0
- package/deployments/azure/via-app-service.md +564 -0
- package/deployments/azure/via-container-apps.md +599 -0
- package/deployments/azure/via-functions.md +552 -0
- package/deployments/cloud-gov/README.md +63 -0
- package/deployments/cloud-gov/agents/compliance-docs.md +154 -0
- package/deployments/cloud-gov/agents.md +39 -0
- package/deployments/cloud-gov/cicd.md +64 -0
- package/deployments/cloud-gov/deployment.md +150 -0
- package/deployments/cloud-gov/logging.md +43 -0
- package/deployments/cloud-gov/manifest.md +121 -0
- package/deployments/cloud-gov/overview.md +58 -0
- package/deployments/cloud-gov/security.md +46 -0
- package/deployments/cloud-gov/services.md +72 -0
- package/deployments/cloud-gov/upstream/README.md +18 -0
- package/deployments/cloudflare/README.md +33 -0
- package/deployments/cloudflare/via-dashboard.md +83 -0
- package/deployments/cloudflare/via-git.md +90 -0
- package/deployments/cloudflare/via-github-actions.md +185 -0
- package/deployments/cloudflare/via-terraform.md +157 -0
- package/deployments/cloudflare/via-wrangler.md +165 -0
- package/deployments/fly-io/README.md +37 -0
- package/deployments/fly-io/via-dockerfile.md +648 -0
- package/deployments/fly-io/via-flyctl.md +653 -0
- package/deployments/fly-io/via-github-actions.md +695 -0
- package/deployments/fly-io/via-multi-region.md +598 -0
- package/deployments/google/README.md +34 -0
- package/deployments/google/via-app-engine.md +42 -0
- package/deployments/google/via-cloud-functions.md +23 -0
- package/deployments/google/via-cloud-run.md +330 -0
- package/deployments/google/via-gke.md +23 -0
- package/deployments/netlify/README.md +99 -0
- package/deployments/netlify/via-cli.md +17 -0
- package/deployments/netlify/via-functions.md +19 -0
- package/deployments/netlify/via-git.md +25 -0
- package/deployments/vercel/README.md +90 -0
- package/deployments/vercel/via-api.md +16 -0
- package/deployments/vercel/via-cli.md +17 -0
- package/deployments/vercel/via-git.md +24 -0
- package/docs/BROWNFIELD.md +179 -0
- package/docs/getting-started.md +137 -0
- package/docs/good-agents-md.md +137 -0
- package/events/README.md +89 -0
- package/events/event-record.schema.json +26 -0
- package/events/registry.json +166 -0
- package/events/registry.schema.json +71 -0
- package/glossary.md +145 -0
- package/incidents/README.md +81 -0
- package/incidents/_template.md +38 -0
- package/interfaces/cli.md +104 -0
- package/interfaces/rest.md +212 -0
- package/interfaces/tui.md +242 -0
- package/interfaces/web.md +123 -0
- package/languages/6502-DASM.md +132 -0
- package/languages/c.md +235 -0
- package/languages/commands.md +23 -0
- package/languages/cpp.md +132 -0
- package/languages/csharp.md +259 -0
- package/languages/dart.md +183 -0
- package/languages/delphi.md +218 -0
- package/languages/elixir.md +208 -0
- package/languages/go.md +78 -0
- package/languages/java.md +278 -0
- package/languages/javascript.md +163 -0
- package/languages/julia.md +175 -0
- package/languages/kotlin.md +193 -0
- package/languages/markdown.md +168 -0
- package/languages/mermaid.md +146 -0
- package/languages/officejs.md +392 -0
- package/languages/python.md +209 -0
- package/languages/r.md +163 -0
- package/languages/rust.md +216 -0
- package/languages/sql.md +216 -0
- package/languages/swift.md +153 -0
- package/languages/typescript.md +132 -0
- package/languages/vba.md +279 -0
- package/languages/vhdl.md +180 -0
- package/languages/visual-basic.md +151 -0
- package/languages/zig.md +196 -0
- package/meta/SOUL.md +27 -0
- package/meta/code-field.md +44 -0
- package/meta/morals.md +40 -0
- package/meta/philosophy.md +39 -0
- package/meta/project.md +49 -0
- package/meta/ralph.md +223 -0
- package/meta/security.md +80 -0
- package/meta/versioning.md +326 -0
- package/package.json +22 -0
- package/packs/lessons/lessons-pack-0.1.json +553 -0
- package/packs/patterns/patterns-pack-0.1.json +57 -0
- package/packs/rules/rules-pack-0.1.json +4767 -0
- package/packs/skills/skills-pack-0.1.json +262 -0
- package/packs/strategies/strategies-pack-0.1.json +167 -0
- package/packs/swarm-spec/swarm-spec-pack-0.1.json +17 -0
- package/patterns/executor-layer-credentials.md +227 -0
- package/patterns/llm-app.md +156 -0
- package/patterns/multi-agent.md +278 -0
- package/patterns/prompt-assembly-layer-ordering.md +154 -0
- package/patterns/role-as-overlay.md +179 -0
- package/platforms/2600.md +137 -0
- package/platforms/unity.md +329 -0
- package/references/composer-skill-porting.md +152 -0
- package/references/cost-models.md +163 -0
- package/references/ip-risk.md +246 -0
- package/references/plain-english-ux.md +275 -0
- package/resilience/context-pruning.md +67 -0
- package/resilience/continue-here.md +62 -0
- package/scm/changelog.md +276 -0
- package/scm/git.md +139 -0
- package/scm/github.md +265 -0
- package/secrets/.gitkeep +0 -0
- package/skills/deft-build/SKILL.md +20 -0
- package/skills/deft-directive-article-review/SKILL.md +156 -0
- package/skills/deft-directive-build/SKILL.md +302 -0
- package/skills/deft-directive-cost/SKILL.md +201 -0
- package/skills/deft-directive-debug/SKILL.md +140 -0
- package/skills/deft-directive-decompose/SKILL.md +96 -0
- package/skills/deft-directive-gh-arch/SKILL.md +160 -0
- package/skills/deft-directive-gh-slice/SKILL.md +199 -0
- package/skills/deft-directive-glossary/SKILL.md +118 -0
- package/skills/deft-directive-interview/SKILL.md +528 -0
- package/skills/deft-directive-pre-pr/SKILL.md +131 -0
- package/skills/deft-directive-probe/SKILL.md +127 -0
- package/skills/deft-directive-refinement/SKILL.md +403 -0
- package/skills/deft-directive-release/SKILL.md +266 -0
- package/skills/deft-directive-review-cycle/SKILL.md +401 -0
- package/skills/deft-directive-setup/SKILL.md +717 -0
- package/skills/deft-directive-swarm/SKILL.md +989 -0
- package/skills/deft-directive-sync/SKILL.md +288 -0
- package/skills/deft-directive-triage/SKILL.md +137 -0
- package/skills/deft-directive-write-skill/SKILL.md +169 -0
- package/skills/deft-interview/SKILL.md +16 -0
- package/skills/deft-pre-pr/SKILL.md +16 -0
- package/skills/deft-review-cycle/SKILL.md +16 -0
- package/skills/deft-roadmap-refresh/SKILL.md +16 -0
- package/skills/deft-setup/SKILL.md +20 -0
- package/skills/deft-swarm/SKILL.md +16 -0
- package/skills/deft-sync/SKILL.md +16 -0
- package/strategies/README.md +83 -0
- package/strategies/artifact-guards.md +85 -0
- package/strategies/bdd.md +115 -0
- package/strategies/brownfield.md +7 -0
- package/strategies/discuss.md +129 -0
- package/strategies/emit-hints.md +69 -0
- package/strategies/enterprise.md +193 -0
- package/strategies/interview.md +551 -0
- package/strategies/map.md +179 -0
- package/strategies/probe.md +151 -0
- package/strategies/rapid.md +155 -0
- package/strategies/research.md +155 -0
- package/strategies/roadmap.md +9 -0
- package/strategies/speckit.md +437 -0
- package/strategies/v0-20-contract.md +134 -0
- package/strategies/yolo.md +169 -0
- package/swarm/swarm.md +300 -0
- package/templates/COST-ESTIMATE.md +114 -0
- package/templates/PULL_REQUEST_TEMPLATE.md +35 -0
- package/templates/agent-prompt-preamble.md +409 -0
- package/templates/agents-entry.md +211 -0
- package/templates/agents-entry.placeholders.md +75 -0
- package/templates/embed.go +20 -0
- package/templates/embed_test.go +36 -0
- package/templates/make-spec-example.md +9 -0
- package/templates/make-spec.md +246 -0
- package/templates/project.md.template +52 -0
- package/templates/specification.md +1 -0
- package/templates/swarm-greptile-poller-prompt.md +556 -0
- package/templates/user.md.template +31 -0
- package/tools/RWLDL.md +80 -0
- package/tools/greptile.md +141 -0
- package/tools/installer.md +23 -0
- package/tools/taskfile-migration.md +32 -0
- package/tools/taskfile.md +185 -0
- package/tools/telemetry.md +285 -0
- package/vbrief/schemas/cache-meta.schema.json +137 -0
- package/vbrief/schemas/candidates.schema.json +130 -0
- package/vbrief/schemas/codebase-map.schema.json +213 -0
- package/vbrief/schemas/lessons-pack.schema.json +134 -0
- package/vbrief/schemas/patterns-pack.schema.json +84 -0
- package/vbrief/schemas/rules-pack.schema.json +105 -0
- package/vbrief/schemas/skills-pack.schema.json +94 -0
- package/vbrief/schemas/slices.schema.json +87 -0
- package/vbrief/schemas/strategies-pack.schema.json +89 -0
- package/vbrief/schemas/swarm-spec-pack.schema.json +84 -0
- package/vbrief/schemas/vbrief-core.schema.json +1022 -0
- package/vbrief/vbrief.md +684 -0
- package/verification/integration.md +76 -0
- package/verification/plan-checking.md +85 -0
- package/verification/uat.md +60 -0
- package/verification/verification.md +117 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
# Deploy via Agentuity Managed Cloud
|
|
2
|
+
|
|
3
|
+
The simplest deployment path — let Agentuity handle all infrastructure while you focus on building agents. Global edge network with automatic scaling and zero configuration.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Agentuity Managed Cloud provides:
|
|
8
|
+
- **Global Edge Network**: Deploy to 30+ regions worldwide
|
|
9
|
+
- **Sub-100ms Cold Starts**: Fast agent initialization
|
|
10
|
+
- **Automatic Scaling**: Scale from zero to demand
|
|
11
|
+
- **Managed Infrastructure**: SSL, DNS, load balancing handled automatically
|
|
12
|
+
- **Built-in Services**: Storage, databases, queues without setup
|
|
13
|
+
|
|
14
|
+
## Prerequisites
|
|
15
|
+
|
|
16
|
+
- Agentuity CLI installed
|
|
17
|
+
- Agentuity account (free tier available)
|
|
18
|
+
- Agent project ready to deploy
|
|
19
|
+
|
|
20
|
+
## Quick Deploy
|
|
21
|
+
|
|
22
|
+
### 1. Login to Agentuity
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Authenticate with Agentuity Cloud
|
|
26
|
+
agentuity auth login
|
|
27
|
+
|
|
28
|
+
# This opens browser for OAuth
|
|
29
|
+
# Or use API key: agentuity auth login --api-key YOUR_KEY
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Deploy Your Agent
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# From your project directory
|
|
36
|
+
agentuity deploy
|
|
37
|
+
|
|
38
|
+
# That's it! Your agent is now live.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 3. Get Your URLs
|
|
42
|
+
|
|
43
|
+
After deployment, you'll receive:
|
|
44
|
+
- **Agent Endpoint**: `https://your-agent.agentuity.run`
|
|
45
|
+
- **API Documentation**: `https://your-agent.agentuity.run/docs`
|
|
46
|
+
- **Console Dashboard**: `https://console.agentuity.com/projects/your-agent`
|
|
47
|
+
|
|
48
|
+
## Features
|
|
49
|
+
|
|
50
|
+
### Automatic SSL & DNS
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# SSL certificates provisioned automatically
|
|
54
|
+
# Custom domains supported:
|
|
55
|
+
agentuity domain add myagent.com
|
|
56
|
+
|
|
57
|
+
# DNS automatically configured
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Global Distribution
|
|
61
|
+
|
|
62
|
+
Your agent is automatically deployed to the edge locations closest to your users:
|
|
63
|
+
- North America (6 locations)
|
|
64
|
+
- Europe (8 locations)
|
|
65
|
+
- Asia Pacific (12 locations)
|
|
66
|
+
- South America (2 locations)
|
|
67
|
+
- Middle East (2 locations)
|
|
68
|
+
|
|
69
|
+
### Auto-Scaling
|
|
70
|
+
|
|
71
|
+
- **Scale to Zero**: No cost when idle
|
|
72
|
+
- **Instant Scale Up**: Handle traffic spikes automatically
|
|
73
|
+
- **Horizontal Scaling**: Multiple instances deployed automatically
|
|
74
|
+
- **Vertical Scaling**: Resources adjusted based on demand
|
|
75
|
+
|
|
76
|
+
## Built-In Services
|
|
77
|
+
|
|
78
|
+
### Storage Services
|
|
79
|
+
|
|
80
|
+
All available without configuration:
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
// Key-Value Storage
|
|
84
|
+
import { kv } from '@agentuity/runtime';
|
|
85
|
+
|
|
86
|
+
await kv.set('user:123', { name: 'Alice' });
|
|
87
|
+
const user = await kv.get('user:123');
|
|
88
|
+
|
|
89
|
+
// Vector Storage
|
|
90
|
+
import { vector } from '@agentuity/runtime';
|
|
91
|
+
|
|
92
|
+
await vector.index('documents').add({
|
|
93
|
+
id: '1',
|
|
94
|
+
content: 'AI agents on Agentuity',
|
|
95
|
+
embedding: embeddings
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// Object Storage (S3-compatible)
|
|
99
|
+
import { storage } from '@agentuity/runtime';
|
|
100
|
+
|
|
101
|
+
await storage.put('avatars/user123.png', imageBuffer);
|
|
102
|
+
const url = await storage.getPublicUrl('avatars/user123.png');
|
|
103
|
+
|
|
104
|
+
// Postgres Database
|
|
105
|
+
import { db } from '@agentuity/runtime';
|
|
106
|
+
|
|
107
|
+
const users = await db.query('SELECT * FROM users WHERE active = true');
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### AI Gateway
|
|
111
|
+
|
|
112
|
+
Unified access to all major LLM providers:
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
import { ai } from '@agentuity/runtime';
|
|
116
|
+
|
|
117
|
+
// Single API key for all providers
|
|
118
|
+
const response = await ai.chat({
|
|
119
|
+
model: 'openai:gpt-4', // or 'anthropic:claude-3', etc.
|
|
120
|
+
messages: [{ role: 'user', content: 'Hello!' }]
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// Automatic failover between providers
|
|
124
|
+
// Consolidated billing
|
|
125
|
+
// Usage tracking per agent
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Sandboxes
|
|
129
|
+
|
|
130
|
+
Secure code execution environments:
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import { sandbox } from '@agentuity/runtime';
|
|
134
|
+
|
|
135
|
+
// Create, execute, destroy - fully managed
|
|
136
|
+
const result = await sandbox.execute({
|
|
137
|
+
code: userCode,
|
|
138
|
+
language: 'python',
|
|
139
|
+
timeout: 30000
|
|
140
|
+
});
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Monitoring & Observability
|
|
144
|
+
|
|
145
|
+
### Console Dashboard
|
|
146
|
+
|
|
147
|
+
Access at `console.agentuity.com`:
|
|
148
|
+
- Real-time agent status
|
|
149
|
+
- Request/response logs
|
|
150
|
+
- Performance metrics
|
|
151
|
+
- Cost per request
|
|
152
|
+
- Error tracking
|
|
153
|
+
|
|
154
|
+
### OpenTelemetry Integration
|
|
155
|
+
|
|
156
|
+
Automatic tracing built-in:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# View traces
|
|
160
|
+
agentuity traces --agent chat --tail 20
|
|
161
|
+
|
|
162
|
+
# Export to your observability platform
|
|
163
|
+
# Supports: Datadog, New Relic, Honeycomb, etc.
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Logs
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Stream live logs
|
|
170
|
+
agentuity logs --follow
|
|
171
|
+
|
|
172
|
+
# Filter by severity
|
|
173
|
+
agentuity logs --level error
|
|
174
|
+
|
|
175
|
+
# Search logs
|
|
176
|
+
agentuity logs --search "API timeout"
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Cost Management
|
|
180
|
+
|
|
181
|
+
### Free Tier
|
|
182
|
+
|
|
183
|
+
- 1M requests/month
|
|
184
|
+
- 100GB storage
|
|
185
|
+
- 10GB transfer
|
|
186
|
+
- All features included
|
|
187
|
+
|
|
188
|
+
### Pricing
|
|
189
|
+
|
|
190
|
+
- **Requests**: $0.10 per 1M requests
|
|
191
|
+
- **Compute**: $0.00002 per second
|
|
192
|
+
- **Storage**: $0.15 per GB/month
|
|
193
|
+
- **Transfer**: $0.10 per GB
|
|
194
|
+
|
|
195
|
+
### Cost Tracking
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# View current month costs
|
|
199
|
+
agentuity billing current
|
|
200
|
+
|
|
201
|
+
# Cost per agent
|
|
202
|
+
agentuity billing by-agent
|
|
203
|
+
|
|
204
|
+
# Set budget alerts
|
|
205
|
+
agentuity billing alert --threshold 100
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Deployment Configuration
|
|
209
|
+
|
|
210
|
+
### Environment Variables
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# Set via CLI
|
|
214
|
+
agentuity env set OPENAI_API_KEY=sk-...
|
|
215
|
+
agentuity env set DATABASE_URL=postgresql://...
|
|
216
|
+
|
|
217
|
+
# Or via agentuity.yaml
|
|
218
|
+
env:
|
|
219
|
+
- OPENAI_API_KEY
|
|
220
|
+
- DATABASE_URL
|
|
221
|
+
secrets:
|
|
222
|
+
- name: API_KEY
|
|
223
|
+
value: ${API_KEY} # References external secret
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Scaling Configuration
|
|
227
|
+
|
|
228
|
+
```yaml
|
|
229
|
+
# agentuity.yaml
|
|
230
|
+
scaling:
|
|
231
|
+
min_instances: 0
|
|
232
|
+
max_instances: 10
|
|
233
|
+
target_cpu: 70
|
|
234
|
+
target_memory: 80
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Regions
|
|
238
|
+
|
|
239
|
+
```yaml
|
|
240
|
+
# Deploy to specific regions
|
|
241
|
+
regions:
|
|
242
|
+
- us-east-1
|
|
243
|
+
- eu-west-1
|
|
244
|
+
- ap-southeast-1
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
## Advanced Features
|
|
248
|
+
|
|
249
|
+
### Preview Deployments
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Deploy preview from branch
|
|
253
|
+
agentuity deploy --preview
|
|
254
|
+
|
|
255
|
+
# Automatic preview URL
|
|
256
|
+
# https://pr-123-your-agent.agentuity.run
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Canary Deployments
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
# Deploy with traffic splitting
|
|
263
|
+
agentuity deploy --canary 10
|
|
264
|
+
|
|
265
|
+
# 10% traffic to new version
|
|
266
|
+
# Automatic rollback if errors spike
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Production Evaluations
|
|
270
|
+
|
|
271
|
+
```typescript
|
|
272
|
+
// Evals run on live traffic automatically
|
|
273
|
+
import { eval } from '@agentuity/runtime';
|
|
274
|
+
|
|
275
|
+
agent.registerEval({
|
|
276
|
+
name: 'response_quality',
|
|
277
|
+
fn: async (input, output) => {
|
|
278
|
+
return output.response.length > 10 ? 1.0 : 0.0;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## GitHub Integration
|
|
284
|
+
|
|
285
|
+
### Auto-Deploy on Push
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
# Connect GitHub repository
|
|
289
|
+
agentuity github connect owner/repo
|
|
290
|
+
|
|
291
|
+
# Auto-deploy on push to main
|
|
292
|
+
# Preview deployments for PRs
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Manual GitHub Actions
|
|
296
|
+
|
|
297
|
+
See `via-github-actions.md` for full CI/CD setup.
|
|
298
|
+
|
|
299
|
+
## Rollbacks & Version Management
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
# List deployments
|
|
303
|
+
agentuity deployments list
|
|
304
|
+
|
|
305
|
+
# Rollback to previous
|
|
306
|
+
agentuity rollback
|
|
307
|
+
|
|
308
|
+
# Rollback to specific version
|
|
309
|
+
agentuity rollback v1.2.3
|
|
310
|
+
|
|
311
|
+
# Instant rollback (< 1 second)
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## Security
|
|
315
|
+
|
|
316
|
+
### Authentication
|
|
317
|
+
|
|
318
|
+
- **API Keys**: Automatic generation and rotation
|
|
319
|
+
- **OAuth 2.0**: Built-in OAuth provider
|
|
320
|
+
- **CORS**: Configured per environment
|
|
321
|
+
- **Rate Limiting**: Automatic DDoS protection
|
|
322
|
+
|
|
323
|
+
### Secrets Management
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
# Store secrets securely
|
|
327
|
+
agentuity secret create API_KEY
|
|
328
|
+
|
|
329
|
+
# Reference in code
|
|
330
|
+
const key = process.env.API_KEY;
|
|
331
|
+
|
|
332
|
+
# Automatic encryption at rest
|
|
333
|
+
# Rotation without downtime
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Compliance
|
|
337
|
+
|
|
338
|
+
- SOC 2 Type II certified
|
|
339
|
+
- GDPR compliant
|
|
340
|
+
- HIPAA eligible
|
|
341
|
+
- ISO 27001
|
|
342
|
+
|
|
343
|
+
## Best Practices
|
|
344
|
+
|
|
345
|
+
1. **Use Environment Variables**: Never hardcode secrets
|
|
346
|
+
2. **Enable Auto-Scaling**: Set `min_instances: 0` for cost savings
|
|
347
|
+
3. **Monitor Costs**: Set up billing alerts early
|
|
348
|
+
4. **Test with Previews**: Use preview deployments before production
|
|
349
|
+
5. **Tag Deployments**: Use Git tags for version tracking
|
|
350
|
+
|
|
351
|
+
## Troubleshooting
|
|
352
|
+
|
|
353
|
+
### Deployment Fails
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
# Check deployment status
|
|
357
|
+
agentuity deploy status
|
|
358
|
+
|
|
359
|
+
# View deployment logs
|
|
360
|
+
agentuity logs --deployment latest
|
|
361
|
+
|
|
362
|
+
# Validate before deploy
|
|
363
|
+
agentuity deploy --dry-run
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Agent Not Responding
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
# Check agent health
|
|
370
|
+
agentuity agent health chat
|
|
371
|
+
|
|
372
|
+
# Restart agent
|
|
373
|
+
agentuity agent restart chat
|
|
374
|
+
|
|
375
|
+
# Scale up manually
|
|
376
|
+
agentuity scale chat --instances 3
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### High Costs
|
|
380
|
+
|
|
381
|
+
```bash
|
|
382
|
+
# Analyze usage
|
|
383
|
+
agentuity billing breakdown
|
|
384
|
+
|
|
385
|
+
# Optimize:
|
|
386
|
+
# - Reduce min_instances to 0
|
|
387
|
+
# - Add caching
|
|
388
|
+
# - Implement rate limiting
|
|
389
|
+
# - Use cheaper AI models
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
## Migration from Other Platforms
|
|
393
|
+
|
|
394
|
+
### From AWS Lambda
|
|
395
|
+
|
|
396
|
+
- Replace Lambda handler with Agentuity agent
|
|
397
|
+
- Environment variables migrate 1:1
|
|
398
|
+
- Triggers map to Agentuity integrations
|
|
399
|
+
|
|
400
|
+
### From Vercel/Netlify
|
|
401
|
+
|
|
402
|
+
- Keep React frontend deployment
|
|
403
|
+
- Move API routes to Agentuity agents
|
|
404
|
+
- Better for long-running agent workloads
|
|
405
|
+
|
|
406
|
+
### From Heroku
|
|
407
|
+
|
|
408
|
+
- `Procfile` → `agentuity.yaml`
|
|
409
|
+
- Add-ons → Agentuity built-in services
|
|
410
|
+
- Dyno sizing → auto-scaling config
|
|
411
|
+
|
|
412
|
+
## Next Steps
|
|
413
|
+
|
|
414
|
+
- **Add Integrations**: Email, SMS, webhooks, cron jobs
|
|
415
|
+
- **Multi-Agent**: Coordinate multiple agents
|
|
416
|
+
- **Custom Domain**: Point your domain to Agentuity
|
|
417
|
+
- **VPC Deployment**: See `via-vpc.md` for private cloud
|
|
418
|
+
- **CI/CD**: Automate with `via-github-actions.md`
|
|
419
|
+
|
|
420
|
+
## References
|
|
421
|
+
|
|
422
|
+
- [Cloud Console](https://console.agentuity.com)
|
|
423
|
+
- [Cloud Documentation](https://agentuity.dev/Cloud)
|
|
424
|
+
- [Pricing](https://agentuity.com/pricing)
|
|
425
|
+
- [Status Page](https://status.agentuity.com)
|