proagents 1.6.16 → 1.6.18
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/.claude/settings.local.json +169 -0
- package/COMMANDS.md +595 -0
- package/README.md +22 -64
- package/bin/proagents.js +0 -2
- package/lib/commands/init.js +4 -174
- package/package.json +2 -7
- package/.proagents/ai-models/README.md +0 -141
- package/.proagents/ai-models/cost-management.md +0 -362
- package/.proagents/ai-models/fallbacks.md +0 -342
- package/.proagents/ai-models/model-config.md +0 -318
- package/.proagents/ai-models/task-routing.md +0 -503
- package/.proagents/ai-training/README.md +0 -155
- package/.proagents/ai-training/continuous-learning.md +0 -413
- package/.proagents/ai-training/domain-knowledge.md +0 -378
- package/.proagents/ai-training/pattern-learning.md +0 -455
- package/.proagents/ai-training/training-data.md +0 -337
- package/.proagents/ai-training/user-preferences.md +0 -346
- package/.proagents/approval-workflows/README.md +0 -146
- package/.proagents/approval-workflows/approval-config.md +0 -332
- package/.proagents/approval-workflows/approval-stages.md +0 -503
- package/.proagents/approval-workflows/emergency-bypass.md +0 -351
- package/.proagents/approval-workflows/examples.md +0 -859
- package/.proagents/approval-workflows/notifications.md +0 -320
- package/.proagents/compliance/README.md +0 -206
- package/.proagents/compliance/access-control.md +0 -310
- package/.proagents/compliance/audit-logging.md +0 -444
- package/.proagents/compliance/compliance-frameworks.md +0 -429
- package/.proagents/compliance/reports.md +0 -491
- package/.proagents/compliance/retention-policies.md +0 -454
- package/.proagents/config-versioning/README.md +0 -120
- package/.proagents/config-versioning/changelog.md +0 -300
- package/.proagents/config-versioning/rollback.md +0 -283
- package/.proagents/config-versioning/versioning.md +0 -330
- package/.proagents/contract-testing/README.md +0 -223
- package/.proagents/contract-testing/contract-testing.md +0 -614
- package/.proagents/contract-testing/pact-integration.md +0 -507
- package/.proagents/contract-testing/schema-validation.md +0 -565
- package/.proagents/dependency-management/README.md +0 -140
- package/.proagents/dependency-management/automation.md +0 -363
- package/.proagents/dependency-management/compatibility.md +0 -319
- package/.proagents/dependency-management/security-scanning.md +0 -413
- package/.proagents/dependency-management/update-policies.md +0 -374
- package/.proagents/disaster-recovery/README.md +0 -247
- package/.proagents/disaster-recovery/automation.md +0 -366
- package/.proagents/disaster-recovery/backup-recovery.md +0 -571
- package/.proagents/disaster-recovery/incident-response.md +0 -565
- package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
- package/.proagents/disaster-recovery/runbooks.md +0 -603
- package/.proagents/disaster-recovery/scenarios.md +0 -892
- package/.proagents/disaster-recovery/testing.md +0 -438
- package/.proagents/environments/README.md +0 -244
- package/.proagents/environments/configuration.md +0 -437
- package/.proagents/environments/promotion.md +0 -434
- package/.proagents/environments/setup.md +0 -420
- package/.proagents/examples/README.md +0 -55
- package/.proagents/examples/backend-nodejs/README.md +0 -188
- package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
- package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
- package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
- package/.proagents/examples/fullstack-nextjs/README.md +0 -155
- package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
- package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
- package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
- package/.proagents/examples/mobile-react-native/README.md +0 -171
- package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
- package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
- package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
- package/.proagents/examples/web-frontend-react/README.md +0 -125
- package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
- package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
- package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
- package/.proagents/existing-projects/README.md +0 -65
- package/.proagents/existing-projects/challenges.md +0 -861
- package/.proagents/existing-projects/coexistence-mode.md +0 -483
- package/.proagents/existing-projects/compatibility-assessment.md +0 -541
- package/.proagents/existing-projects/gradual-adoption.md +0 -515
- package/.proagents/existing-projects/migration-strategies.md +0 -788
- package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
- package/.proagents/existing-projects/team-onboarding.md +0 -617
- package/.proagents/existing-projects/technical-debt-handling.md +0 -644
- package/.proagents/feature-flags/README.md +0 -263
- package/.proagents/feature-flags/ab-testing.md +0 -413
- package/.proagents/feature-flags/configuration.md +0 -420
- package/.proagents/feature-flags/kill-switches.md +0 -444
- package/.proagents/feature-flags/rollout-strategies.md +0 -392
- package/.proagents/history.log +0 -12
- package/.proagents/i18n/README.md +0 -133
- package/.proagents/i18n/extraction.md +0 -433
- package/.proagents/i18n/tms-integration.md +0 -332
- package/.proagents/i18n/translation-workflow.md +0 -413
- package/.proagents/i18n/validation.md +0 -355
- package/.proagents/logging/README.md +0 -276
- package/.proagents/logging/aggregation.md +0 -475
- package/.proagents/logging/log-levels.md +0 -376
- package/.proagents/logging/sensitive-data.md +0 -423
- package/.proagents/logging/structured-logging.md +0 -406
- package/.proagents/metrics/README.md +0 -69
- package/.proagents/metrics/code-quality-kpis.md +0 -461
- package/.proagents/metrics/deployment-metrics.md +0 -517
- package/.proagents/metrics/developer-productivity.md +0 -368
- package/.proagents/metrics/learning-effectiveness.md +0 -478
- package/.proagents/migrations/README.md +0 -77
- package/.proagents/migrations/from-claude-projects.md +0 -313
- package/.proagents/migrations/from-cursor-rules.md +0 -345
- package/.proagents/migrations/from-custom-workflows.md +0 -410
- package/.proagents/monitoring/README.md +0 -308
- package/.proagents/monitoring/alerting.md +0 -449
- package/.proagents/monitoring/dashboards.md +0 -454
- package/.proagents/monitoring/health-checks.md +0 -436
- package/.proagents/monitoring/metrics.md +0 -434
- package/.proagents/multi-project/README.md +0 -170
- package/.proagents/multi-project/coordinated-deploy.md +0 -510
- package/.proagents/multi-project/cross-project-deps.md +0 -395
- package/.proagents/multi-project/unified-changelog.md +0 -477
- package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
- package/.proagents/multi-project/workspace-config.md +0 -408
- package/.proagents/notifications/README.md +0 -151
- package/.proagents/notifications/channels.md +0 -457
- package/.proagents/notifications/preferences.md +0 -415
- package/.proagents/notifications/routing.md +0 -449
- package/.proagents/notifications/scheduling.md +0 -425
- package/.proagents/notifications/templates.md +0 -446
- package/.proagents/offline-mode/README.md +0 -145
- package/.proagents/offline-mode/caching.md +0 -344
- package/.proagents/offline-mode/offline-operations.md +0 -312
- package/.proagents/offline-mode/queue-specifications.md +0 -679
- package/.proagents/offline-mode/sync.md +0 -475
- package/.proagents/parallel-features/README.md +0 -85
- package/.proagents/parallel-features/conflict-detection.md +0 -226
- package/.proagents/parallel-features/dependency-management.md +0 -392
- package/.proagents/parallel-features/merge-coordination.md +0 -506
- package/.proagents/parallel-features/tracking-system.md +0 -416
- package/.proagents/performance/README.md +0 -59
- package/.proagents/performance/bundle-analysis.md +0 -375
- package/.proagents/performance/load-testing.md +0 -563
- package/.proagents/performance/runtime-metrics.md +0 -489
- package/.proagents/performance/web-vitals.md +0 -425
- package/.proagents/plugins/README.md +0 -139
- package/.proagents/plugins/creating-plugins.md +0 -504
- package/.proagents/plugins/plugin-api.md +0 -467
- package/.proagents/plugins/plugin-registry.md +0 -276
- package/.proagents/reporting/README.md +0 -158
- package/.proagents/reporting/dashboards.md +0 -366
- package/.proagents/reporting/exports.md +0 -524
- package/.proagents/reporting/quality-metrics.md +0 -385
- package/.proagents/reporting/templates/README.md +0 -56
- package/.proagents/reporting/templates/dashboard-config.json +0 -187
- package/.proagents/reporting/templates/metrics-queries.md +0 -427
- package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
- package/.proagents/reporting/templates/widgets.md +0 -451
- package/.proagents/reporting/velocity-metrics.md +0 -340
- package/.proagents/reverse-engineering/README.md +0 -151
- package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
- package/.proagents/reverse-engineering/code-analysis.md +0 -377
- package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
- package/.proagents/reverse-engineering/diagram-generation.md +0 -586
- package/.proagents/reverse-engineering/documentation-generation.md +0 -468
- package/.proagents/reverse-engineering/pattern-detection.md +0 -569
- package/.proagents/reverse-engineering/quality-assessment.md +0 -733
- package/.proagents/secrets/README.md +0 -278
- package/.proagents/secrets/access-control.md +0 -443
- package/.proagents/secrets/rotation.md +0 -403
- package/.proagents/secrets/scanning.md +0 -487
- package/.proagents/secrets/storage.md +0 -394
- package/.proagents/webhooks/README.md +0 -126
- package/.proagents/webhooks/endpoints.md +0 -298
- package/.proagents/webhooks/events.md +0 -316
- package/.proagents/webhooks/payloads.md +0 -325
- package/.proagents/webhooks/reliability.md +0 -363
- package/.proagents/webhooks/security.md +0 -380
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
# Environment Configuration
|
|
2
|
-
|
|
3
|
-
Managing configuration across different environments.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Configuration Hierarchy
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
┌─────────────────────────────────────────┐
|
|
11
|
-
│ Default Config │ (lowest priority)
|
|
12
|
-
├─────────────────────────────────────────┤
|
|
13
|
-
│ Environment Config │
|
|
14
|
-
├─────────────────────────────────────────┤
|
|
15
|
-
│ Secret Manager │
|
|
16
|
-
├─────────────────────────────────────────┤
|
|
17
|
-
│ Environment Variables │ (highest priority)
|
|
18
|
-
└─────────────────────────────────────────┘
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Configuration Files
|
|
24
|
-
|
|
25
|
-
### File Structure
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
/config/
|
|
29
|
-
├── default.yaml # Base configuration
|
|
30
|
-
├── development.yaml # Development overrides
|
|
31
|
-
├── staging.yaml # Staging overrides
|
|
32
|
-
├── production.yaml # Production overrides
|
|
33
|
-
└── local.yaml # Local overrides (gitignored)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Default Configuration
|
|
37
|
-
|
|
38
|
-
```yaml
|
|
39
|
-
# config/default.yaml
|
|
40
|
-
app:
|
|
41
|
-
name: "MyApp"
|
|
42
|
-
version: "${npm_package_version}"
|
|
43
|
-
port: 3000
|
|
44
|
-
|
|
45
|
-
api:
|
|
46
|
-
timeout: 30000
|
|
47
|
-
retries: 3
|
|
48
|
-
retry_delay: 1000
|
|
49
|
-
|
|
50
|
-
database:
|
|
51
|
-
pool:
|
|
52
|
-
min: 2
|
|
53
|
-
max: 10
|
|
54
|
-
timeout: 5000
|
|
55
|
-
|
|
56
|
-
cache:
|
|
57
|
-
ttl: 3600
|
|
58
|
-
prefix: "app:"
|
|
59
|
-
|
|
60
|
-
logging:
|
|
61
|
-
level: "info"
|
|
62
|
-
format: "json"
|
|
63
|
-
|
|
64
|
-
features:
|
|
65
|
-
rate_limiting: true
|
|
66
|
-
caching: true
|
|
67
|
-
compression: true
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Environment-Specific Overrides
|
|
71
|
-
|
|
72
|
-
```yaml
|
|
73
|
-
# config/development.yaml
|
|
74
|
-
app:
|
|
75
|
-
port: 3001
|
|
76
|
-
|
|
77
|
-
database:
|
|
78
|
-
pool:
|
|
79
|
-
max: 5
|
|
80
|
-
|
|
81
|
-
logging:
|
|
82
|
-
level: "debug"
|
|
83
|
-
format: "pretty"
|
|
84
|
-
|
|
85
|
-
features:
|
|
86
|
-
mock_external_services: true
|
|
87
|
-
debug_endpoints: true
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
```yaml
|
|
91
|
-
# config/production.yaml
|
|
92
|
-
app:
|
|
93
|
-
port: 8080
|
|
94
|
-
|
|
95
|
-
database:
|
|
96
|
-
pool:
|
|
97
|
-
min: 5
|
|
98
|
-
max: 50
|
|
99
|
-
|
|
100
|
-
cache:
|
|
101
|
-
ttl: 7200
|
|
102
|
-
|
|
103
|
-
features:
|
|
104
|
-
rate_limiting: true
|
|
105
|
-
strict_ssl: true
|
|
106
|
-
hsts: true
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Environment Variables
|
|
112
|
-
|
|
113
|
-
### Variable Naming Convention
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
# Application settings
|
|
117
|
-
APP_NAME=MyApp
|
|
118
|
-
APP_PORT=3000
|
|
119
|
-
APP_ENV=production
|
|
120
|
-
|
|
121
|
-
# Database
|
|
122
|
-
DB_HOST=localhost
|
|
123
|
-
DB_PORT=5432
|
|
124
|
-
DB_NAME=myapp
|
|
125
|
-
DB_USER=appuser
|
|
126
|
-
DB_PASSWORD=secret
|
|
127
|
-
|
|
128
|
-
# External services
|
|
129
|
-
REDIS_URL=redis://localhost:6379
|
|
130
|
-
STRIPE_API_KEY=sk_live_xxx
|
|
131
|
-
SENDGRID_API_KEY=SG.xxx
|
|
132
|
-
|
|
133
|
-
# Feature flags
|
|
134
|
-
FEATURE_NEW_UI=true
|
|
135
|
-
FEATURE_BETA_API=false
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
### Environment Variable Loading
|
|
139
|
-
|
|
140
|
-
```yaml
|
|
141
|
-
# proagents.config.yaml
|
|
142
|
-
configuration:
|
|
143
|
-
env_loading:
|
|
144
|
-
# Load order
|
|
145
|
-
order:
|
|
146
|
-
- ".env" # Base env file
|
|
147
|
-
- ".env.${NODE_ENV}" # Environment-specific
|
|
148
|
-
- ".env.local" # Local overrides (gitignored)
|
|
149
|
-
|
|
150
|
-
# Variable expansion
|
|
151
|
-
expand_variables: true
|
|
152
|
-
|
|
153
|
-
# Required variables
|
|
154
|
-
required:
|
|
155
|
-
- "DATABASE_URL"
|
|
156
|
-
- "JWT_SECRET"
|
|
157
|
-
- "APP_ENV"
|
|
158
|
-
|
|
159
|
-
# Validation
|
|
160
|
-
validate:
|
|
161
|
-
APP_PORT:
|
|
162
|
-
type: "number"
|
|
163
|
-
min: 1024
|
|
164
|
-
max: 65535
|
|
165
|
-
|
|
166
|
-
APP_ENV:
|
|
167
|
-
enum: ["development", "staging", "production"]
|
|
168
|
-
|
|
169
|
-
LOG_LEVEL:
|
|
170
|
-
enum: ["debug", "info", "warn", "error"]
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
## Secret Management Integration
|
|
176
|
-
|
|
177
|
-
### AWS Secrets Manager
|
|
178
|
-
|
|
179
|
-
```yaml
|
|
180
|
-
configuration:
|
|
181
|
-
secrets:
|
|
182
|
-
provider: "aws-secrets-manager"
|
|
183
|
-
|
|
184
|
-
# Secret mappings
|
|
185
|
-
mappings:
|
|
186
|
-
DATABASE_URL: "myapp/${env}/database/url"
|
|
187
|
-
JWT_SECRET: "myapp/${env}/auth/jwt-secret"
|
|
188
|
-
STRIPE_KEY: "myapp/${env}/payments/stripe-key"
|
|
189
|
-
|
|
190
|
-
# Caching
|
|
191
|
-
cache:
|
|
192
|
-
enabled: true
|
|
193
|
-
ttl: 300 # 5 minutes
|
|
194
|
-
|
|
195
|
-
# Auto-refresh
|
|
196
|
-
refresh:
|
|
197
|
-
enabled: true
|
|
198
|
-
interval: 3600 # 1 hour
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### HashiCorp Vault
|
|
202
|
-
|
|
203
|
-
```yaml
|
|
204
|
-
configuration:
|
|
205
|
-
secrets:
|
|
206
|
-
provider: "vault"
|
|
207
|
-
address: "https://vault.company.com"
|
|
208
|
-
auth_method: "kubernetes"
|
|
209
|
-
|
|
210
|
-
mappings:
|
|
211
|
-
DATABASE_URL: "secret/data/myapp/${env}/database"
|
|
212
|
-
API_KEYS: "secret/data/myapp/${env}/api-keys"
|
|
213
|
-
|
|
214
|
-
# Dynamic secrets
|
|
215
|
-
dynamic:
|
|
216
|
-
database:
|
|
217
|
-
role: "myapp-${env}"
|
|
218
|
-
ttl: "1h"
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Environment-Specific Secrets
|
|
222
|
-
|
|
223
|
-
```yaml
|
|
224
|
-
configuration:
|
|
225
|
-
secrets:
|
|
226
|
-
environments:
|
|
227
|
-
development:
|
|
228
|
-
prefix: "dev/"
|
|
229
|
-
allow_local_override: true
|
|
230
|
-
|
|
231
|
-
staging:
|
|
232
|
-
prefix: "staging/"
|
|
233
|
-
allow_local_override: false
|
|
234
|
-
|
|
235
|
-
production:
|
|
236
|
-
prefix: "prod/"
|
|
237
|
-
allow_local_override: false
|
|
238
|
-
require_approval: true
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
---
|
|
242
|
-
|
|
243
|
-
## Configuration Validation
|
|
244
|
-
|
|
245
|
-
### Schema Definition
|
|
246
|
-
|
|
247
|
-
```yaml
|
|
248
|
-
# config/schema.yaml
|
|
249
|
-
$schema: "http://json-schema.org/draft-07/schema#"
|
|
250
|
-
type: object
|
|
251
|
-
required:
|
|
252
|
-
- app
|
|
253
|
-
- database
|
|
254
|
-
|
|
255
|
-
properties:
|
|
256
|
-
app:
|
|
257
|
-
type: object
|
|
258
|
-
required: [name, port]
|
|
259
|
-
properties:
|
|
260
|
-
name:
|
|
261
|
-
type: string
|
|
262
|
-
minLength: 1
|
|
263
|
-
port:
|
|
264
|
-
type: integer
|
|
265
|
-
minimum: 1024
|
|
266
|
-
maximum: 65535
|
|
267
|
-
|
|
268
|
-
database:
|
|
269
|
-
type: object
|
|
270
|
-
required: [pool]
|
|
271
|
-
properties:
|
|
272
|
-
pool:
|
|
273
|
-
type: object
|
|
274
|
-
properties:
|
|
275
|
-
min:
|
|
276
|
-
type: integer
|
|
277
|
-
minimum: 1
|
|
278
|
-
max:
|
|
279
|
-
type: integer
|
|
280
|
-
minimum: 1
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Validation Commands
|
|
284
|
-
|
|
285
|
-
```bash
|
|
286
|
-
# Validate configuration
|
|
287
|
-
proagents config validate
|
|
288
|
-
|
|
289
|
-
# Validate specific environment
|
|
290
|
-
proagents config validate --env production
|
|
291
|
-
|
|
292
|
-
# Show resolved configuration
|
|
293
|
-
proagents config show --env staging
|
|
294
|
-
|
|
295
|
-
# Check for sensitive values
|
|
296
|
-
proagents config audit
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
---
|
|
300
|
-
|
|
301
|
-
## Configuration Access Patterns
|
|
302
|
-
|
|
303
|
-
### Application Code
|
|
304
|
-
|
|
305
|
-
```typescript
|
|
306
|
-
// config/index.ts
|
|
307
|
-
import { loadConfig } from '@proagents/config';
|
|
308
|
-
|
|
309
|
-
const config = loadConfig({
|
|
310
|
-
env: process.env.NODE_ENV,
|
|
311
|
-
secretsProvider: 'aws-secrets-manager',
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
export default config;
|
|
315
|
-
|
|
316
|
-
// Usage
|
|
317
|
-
import config from './config';
|
|
318
|
-
|
|
319
|
-
const dbConnection = createConnection({
|
|
320
|
-
host: config.get('database.host'),
|
|
321
|
-
port: config.get('database.port'),
|
|
322
|
-
username: config.get('database.user'),
|
|
323
|
-
password: config.getSecret('database.password'),
|
|
324
|
-
});
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Type-Safe Configuration
|
|
328
|
-
|
|
329
|
-
```typescript
|
|
330
|
-
// config/types.ts
|
|
331
|
-
interface AppConfig {
|
|
332
|
-
app: {
|
|
333
|
-
name: string;
|
|
334
|
-
port: number;
|
|
335
|
-
env: 'development' | 'staging' | 'production';
|
|
336
|
-
};
|
|
337
|
-
database: {
|
|
338
|
-
host: string;
|
|
339
|
-
port: number;
|
|
340
|
-
name: string;
|
|
341
|
-
pool: {
|
|
342
|
-
min: number;
|
|
343
|
-
max: number;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
features: {
|
|
347
|
-
rateLimiting: boolean;
|
|
348
|
-
caching: boolean;
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
// config/index.ts
|
|
353
|
-
const config = loadConfig<AppConfig>({ ... });
|
|
354
|
-
|
|
355
|
-
// Type-safe access
|
|
356
|
-
config.app.port; // number
|
|
357
|
-
config.features.rateLimiting; // boolean
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
---
|
|
361
|
-
|
|
362
|
-
## Configuration Changes
|
|
363
|
-
|
|
364
|
-
### Change Tracking
|
|
365
|
-
|
|
366
|
-
```yaml
|
|
367
|
-
configuration:
|
|
368
|
-
versioning:
|
|
369
|
-
enabled: true
|
|
370
|
-
|
|
371
|
-
# Track all changes
|
|
372
|
-
track:
|
|
373
|
-
- config_changes
|
|
374
|
-
- secret_rotations
|
|
375
|
-
- env_var_updates
|
|
376
|
-
|
|
377
|
-
# Audit log
|
|
378
|
-
audit:
|
|
379
|
-
destination: "cloudwatch"
|
|
380
|
-
retention: "2 years"
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
### Safe Configuration Updates
|
|
384
|
-
|
|
385
|
-
```bash
|
|
386
|
-
# Preview configuration change
|
|
387
|
-
proagents config set app.port 8080 --dry-run
|
|
388
|
-
|
|
389
|
-
# Apply with approval
|
|
390
|
-
proagents config set app.port 8080 --require-approval
|
|
391
|
-
|
|
392
|
-
# Rollback configuration
|
|
393
|
-
proagents config rollback --to v1.2.3
|
|
394
|
-
|
|
395
|
-
# View change history
|
|
396
|
-
proagents config history --last 10
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
---
|
|
400
|
-
|
|
401
|
-
## Commands
|
|
402
|
-
|
|
403
|
-
```bash
|
|
404
|
-
# Show configuration
|
|
405
|
-
proagents config show
|
|
406
|
-
proagents config show --env production
|
|
407
|
-
|
|
408
|
-
# Get specific value
|
|
409
|
-
proagents config get database.pool.max
|
|
410
|
-
|
|
411
|
-
# Set configuration
|
|
412
|
-
proagents config set logging.level debug
|
|
413
|
-
|
|
414
|
-
# Compare environments
|
|
415
|
-
proagents config diff staging production
|
|
416
|
-
|
|
417
|
-
# Export configuration
|
|
418
|
-
proagents config export --env staging > staging-config.yaml
|
|
419
|
-
|
|
420
|
-
# Import configuration
|
|
421
|
-
proagents config import staging-config.yaml --env staging
|
|
422
|
-
|
|
423
|
-
# Validate all configs
|
|
424
|
-
proagents config validate --all
|
|
425
|
-
```
|
|
426
|
-
|
|
427
|
-
---
|
|
428
|
-
|
|
429
|
-
## Best Practices
|
|
430
|
-
|
|
431
|
-
1. **Never Commit Secrets**: Use secret managers for sensitive data
|
|
432
|
-
2. **Environment Parity**: Keep configs similar across environments
|
|
433
|
-
3. **Validate Early**: Fail fast on invalid configuration
|
|
434
|
-
4. **Type Safety**: Use typed configuration access
|
|
435
|
-
5. **Audit Changes**: Track all configuration modifications
|
|
436
|
-
6. **Document Differences**: Explain why environments differ
|
|
437
|
-
7. **Default Sensibly**: Provide safe defaults for all values
|