@defai.digital/ax-cli 0.0.34 → 0.1.1

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.
Files changed (74) hide show
  1. package/README.md +742 -269
  2. package/dist/constants.d.ts +50 -0
  3. package/dist/constants.js +59 -0
  4. package/dist/constants.js.map +1 -0
  5. package/dist/mcp/client.d.ts +3 -8
  6. package/dist/mcp/client.js +17 -9
  7. package/dist/mcp/client.js.map +1 -1
  8. package/dist/schemas/index.d.ts +229 -37
  9. package/dist/schemas/settings-schemas.d.ts +179 -0
  10. package/dist/schemas/settings-schemas.js +52 -0
  11. package/dist/schemas/settings-schemas.js.map +1 -0
  12. package/dist/schemas/tool-schemas.d.ts +241 -0
  13. package/dist/schemas/tool-schemas.js +79 -0
  14. package/dist/schemas/tool-schemas.js.map +1 -0
  15. package/dist/utils/error-handler.d.ts +43 -0
  16. package/dist/utils/error-handler.js +70 -0
  17. package/dist/utils/error-handler.js.map +1 -0
  18. package/dist/utils/settings-manager.d.ts +2 -18
  19. package/dist/utils/settings-manager.js +17 -4
  20. package/dist/utils/settings-manager.js.map +1 -1
  21. package/dist/utils/token-counter.d.ts +3 -1
  22. package/dist/utils/token-counter.js +26 -6
  23. package/dist/utils/token-counter.js.map +1 -1
  24. package/package.json +23 -5
  25. package/vitest.config.ts +20 -0
  26. package/.automatosx/agents/aerospace-scientist.yaml +0 -159
  27. package/.automatosx/agents/architecture.yaml +0 -244
  28. package/.automatosx/agents/backend.yaml +0 -172
  29. package/.automatosx/agents/ceo.yaml +0 -105
  30. package/.automatosx/agents/creative-marketer.yaml +0 -173
  31. package/.automatosx/agents/cto.yaml +0 -118
  32. package/.automatosx/agents/data-scientist.yaml +0 -200
  33. package/.automatosx/agents/data.yaml +0 -106
  34. package/.automatosx/agents/design.yaml +0 -115
  35. package/.automatosx/agents/devops.yaml +0 -124
  36. package/.automatosx/agents/frontend.yaml +0 -171
  37. package/.automatosx/agents/fullstack.yaml +0 -172
  38. package/.automatosx/agents/mobile.yaml +0 -185
  39. package/.automatosx/agents/product.yaml +0 -103
  40. package/.automatosx/agents/quality.yaml +0 -93
  41. package/.automatosx/agents/quantum-engineer.yaml +0 -167
  42. package/.automatosx/agents/researcher.yaml +0 -122
  43. package/.automatosx/agents/security.yaml +0 -115
  44. package/.automatosx/agents/standard.yaml +0 -214
  45. package/.automatosx/agents/writer.yaml +0 -122
  46. package/.automatosx/feature-flags.json +0 -13
  47. package/.automatosx/memory/memory.db +0 -0
  48. package/.automatosx/providers/README.md +0 -117
  49. package/.automatosx/providers/grok-zai.yaml.template +0 -61
  50. package/.automatosx/providers/grok.yaml.template +0 -71
  51. package/.automatosx/status/backend-1763517593334-85037.json +0 -9
  52. package/.automatosx/status/quality-1763516867087-82043.json +0 -9
  53. package/.automatosx/status/quality-1763516976722-84817.json +0 -9
  54. package/.automatosx/status/security-1763517871950-87357.json +0 -9
  55. package/.automatosx/teams/business.yaml +0 -56
  56. package/.automatosx/teams/core.yaml +0 -60
  57. package/.automatosx/teams/design.yaml +0 -58
  58. package/.automatosx/teams/engineering.yaml +0 -69
  59. package/.automatosx/teams/research.yaml +0 -56
  60. package/.automatosx/templates/analyst.yaml +0 -60
  61. package/.automatosx/templates/assistant.yaml +0 -48
  62. package/.automatosx/templates/basic-agent.yaml +0 -28
  63. package/.automatosx/templates/code-reviewer.yaml +0 -52
  64. package/.automatosx/templates/debugger.yaml +0 -63
  65. package/.automatosx/templates/designer.yaml +0 -69
  66. package/.automatosx/templates/developer.yaml +0 -60
  67. package/.automatosx/templates/fullstack-developer.yaml +0 -395
  68. package/.automatosx/templates/qa-specialist.yaml +0 -71
  69. package/.claude/mcp/automatosx.json +0 -244
  70. package/.claude/settings.local.json +0 -34
  71. package/.grok/settings.json +0 -37
  72. package/automatosx/PRD/README.md +0 -9
  73. package/automatosx/tmp/README.md +0 -10
  74. package/automatosx.config.json +0 -333
@@ -1,34 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(find:*)",
5
- "Bash(grep:*)",
6
- "Bash(git add:*)",
7
- "Bash(git commit:*)",
8
- "Bash(git push:*)",
9
- "Bash(bun add:*)",
10
- "Bash(npm install:*)",
11
- "Bash(cat:*)",
12
- "Bash(npm run typecheck:*)",
13
- "Bash(npx tsc:*)",
14
- "Bash(git rm:*)",
15
- "Bash(ax list:*)",
16
- "Bash(ax run queenie \"Analyze the ax-cli codebase for bugs, errors, type issues, and potential runtime problems. Focus on TypeScript errors, unused variables, potential null/undefined issues, and any logic bugs. Provide a comprehensive report of all issues found.\")",
17
- "Bash(ax run:*)",
18
- "Bash(npm run build:*)",
19
- "Bash(timeout 5 npm run dev:*)",
20
- "Bash(npm run dev:*)",
21
- "Bash(npm run dev:node:*)",
22
- "Bash(node test-logo.js:*)",
23
- "Bash(ax-cli:*)",
24
- "Bash(node -e:*)",
25
- "Bash(xargs cat:*)",
26
- "Bash(timeout 3 npm run dev:*)",
27
- "Bash(npm run lint:*)",
28
- "Bash(npm whoami:*)",
29
- "Bash(npm publish:*)"
30
- ],
31
- "deny": [],
32
- "ask": []
33
- }
34
- }
@@ -1,37 +0,0 @@
1
- {
2
- "_comment": "Grok Provider Configuration",
3
- "_instructions": [
4
- "1. Set your API key as an environment variable: export GROK_API_KEY='your-api-key'",
5
- "2. Enable the Grok provider in 'automatosx.config.json' by setting 'enabled' to true.",
6
- "3. To use an alternative provider, copy the configuration from the '_examples' section below.",
7
- "4. Verify your setup by running: ax providers list"
8
- ],
9
-
10
- "baseURL": "https://api.x.ai/v1",
11
- "model": "grok-3-fast",
12
- "apiKey": "${GROK_API_KEY}",
13
-
14
- "_examples": {
15
- "z_ai_glm_alternative": {
16
- "_comment": "Z.AI GLM 4.6 (Code-Optimized Alternative)",
17
- "baseURL": "https://api.z.ai/api/coding/paas/v4",
18
- "model": "glm-4.6",
19
- "apiKey": "${GROK_API_KEY}"
20
- }
21
- },
22
-
23
- "_troubleshooting": {
24
- "authentication_error": {
25
- "issue": "401 Unauthorized or API key validation failed.",
26
- "solution": "Ensure your GROK_API_KEY environment variable is set correctly. You can get your key from https://console.x.ai/api-keys."
27
- },
28
- "provider_not_found": {
29
- "issue": "Grok provider not found or not enabled.",
30
- "solution": "In 'automatosx.config.json', find the 'grok' provider entry and make sure 'enabled' is set to true."
31
- },
32
- "model_not_found": {
33
- "issue": "The specified model is not available.",
34
- "solution": "Check the 'model' field in this file. For X.AI, it should be 'grok-3-fast'. For other providers, refer to their documentation."
35
- }
36
- }
37
- }
@@ -1,9 +0,0 @@
1
- # Product Requirements Documents
2
-
3
- This directory contains:
4
- - Architecture designs
5
- - Feature specifications
6
- - Technical requirements
7
- - Planning documents
8
-
9
- Created by AutomatosX for organized project documentation.
@@ -1,10 +0,0 @@
1
- # Temporary Files
2
-
3
- This directory contains:
4
- - Draft code
5
- - Test outputs
6
- - Temporary analysis
7
- - Intermediate work
8
-
9
- Files here may be auto-cleaned periodically.
10
- Created by AutomatosX for organized scratch work.
@@ -1,333 +0,0 @@
1
- {
2
- "providers": {
3
- "claude-code": {
4
- "enabled": true,
5
- "priority": 3,
6
- "timeout": 2700000,
7
- "command": "claude",
8
- "healthCheck": {
9
- "enabled": true,
10
- "interval": 300000,
11
- "timeout": 5000
12
- },
13
- "circuitBreaker": {
14
- "enabled": true,
15
- "failureThreshold": 3,
16
- "recoveryTimeout": 60000
17
- },
18
- "processManagement": {
19
- "gracefulShutdownTimeout": 5000,
20
- "forceKillDelay": 1000
21
- },
22
- "versionDetection": {
23
- "timeout": 5000,
24
- "forceKillDelay": 1000,
25
- "cacheEnabled": true
26
- },
27
- "limitTracking": {
28
- "enabled": true,
29
- "window": "weekly",
30
- "resetHourUtc": 0
31
- }
32
- },
33
- "gemini-cli": {
34
- "enabled": true,
35
- "priority": 2,
36
- "timeout": 2700000,
37
- "command": "gemini",
38
- "healthCheck": {
39
- "enabled": true,
40
- "interval": 300000,
41
- "timeout": 5000
42
- },
43
- "circuitBreaker": {
44
- "enabled": true,
45
- "failureThreshold": 3,
46
- "recoveryTimeout": 60000
47
- },
48
- "processManagement": {
49
- "gracefulShutdownTimeout": 5000,
50
- "forceKillDelay": 1000
51
- },
52
- "versionDetection": {
53
- "timeout": 5000,
54
- "forceKillDelay": 1000,
55
- "cacheEnabled": true
56
- },
57
- "limitTracking": {
58
- "enabled": true,
59
- "window": "daily",
60
- "resetHourUtc": 0
61
- }
62
- },
63
- "openai": {
64
- "enabled": true,
65
- "priority": 1,
66
- "timeout": 2700000,
67
- "command": "codex",
68
- "healthCheck": {
69
- "enabled": true,
70
- "interval": 300000,
71
- "timeout": 5000
72
- },
73
- "circuitBreaker": {
74
- "enabled": true,
75
- "failureThreshold": 3,
76
- "recoveryTimeout": 60000
77
- },
78
- "processManagement": {
79
- "gracefulShutdownTimeout": 5000,
80
- "forceKillDelay": 1000
81
- },
82
- "versionDetection": {
83
- "timeout": 5000,
84
- "forceKillDelay": 1000,
85
- "cacheEnabled": true
86
- },
87
- "limitTracking": {
88
- "enabled": true,
89
- "window": "daily",
90
- "resetHourUtc": 0
91
- }
92
- },
93
- "grok": {
94
- "enabled": true,
95
- "priority": 4,
96
- "timeout": 2700000,
97
- "command": "grok",
98
- "healthCheck": {
99
- "enabled": true,
100
- "interval": 300000,
101
- "timeout": 5000
102
- },
103
- "circuitBreaker": {
104
- "enabled": true,
105
- "failureThreshold": 3,
106
- "recoveryTimeout": 60000
107
- },
108
- "processManagement": {
109
- "gracefulShutdownTimeout": 5000,
110
- "forceKillDelay": 1000
111
- },
112
- "versionDetection": {
113
- "timeout": 5000,
114
- "forceKillDelay": 1000,
115
- "cacheEnabled": true
116
- },
117
- "limitTracking": {
118
- "enabled": true,
119
- "window": "daily",
120
- "resetHourUtc": 0
121
- }
122
- }
123
- },
124
- "execution": {
125
- "defaultTimeout": 2700000,
126
- "concurrency": {
127
- "maxConcurrentAgents": 4,
128
- "autoDetect": false,
129
- "cpuMultiplier": 1,
130
- "minConcurrency": 2,
131
- "maxConcurrency": 16
132
- },
133
- "retry": {
134
- "maxAttempts": 3,
135
- "initialDelay": 1000,
136
- "maxDelay": 10000,
137
- "backoffFactor": 2,
138
- "retryableErrors": [
139
- "ECONNREFUSED",
140
- "ETIMEDOUT",
141
- "ENOTFOUND",
142
- "rate_limit",
143
- "overloaded",
144
- "timeout"
145
- ]
146
- },
147
- "provider": {
148
- "maxWaitMs": 60000,
149
- "fallbackDelay": 5000
150
- },
151
- "stages": {
152
- "enabled": true,
153
- "defaultTimeout": 1800000,
154
- "checkpointPath": ".automatosx/checkpoints",
155
- "autoSaveCheckpoint": true,
156
- "cleanupAfterDays": 7,
157
- "retry": {
158
- "defaultMaxRetries": 1,
159
- "defaultRetryDelay": 2000
160
- },
161
- "prompts": {
162
- "timeout": 600000,
163
- "autoConfirm": false,
164
- "locale": "en"
165
- },
166
- "progress": {
167
- "updateInterval": 2000,
168
- "syntheticProgress": true
169
- }
170
- }
171
- },
172
- "orchestration": {
173
- "session": {
174
- "maxSessions": 100,
175
- "maxMetadataSize": 10240,
176
- "saveDebounce": 1000,
177
- "cleanupAfterDays": 7,
178
- "maxUuidAttempts": 100,
179
- "persistPath": ".automatosx/sessions"
180
- },
181
- "delegation": {
182
- "maxDepth": 2,
183
- "timeout": 2700000,
184
- "enableCycleDetection": true
185
- }
186
- },
187
- "memory": {
188
- "maxEntries": 10000,
189
- "persistPath": ".automatosx/memory",
190
- "autoCleanup": true,
191
- "cleanupDays": 30,
192
- "busyTimeout": 5000,
193
- "search": {
194
- "defaultLimit": 10,
195
- "maxLimit": 100,
196
- "timeout": 5000
197
- }
198
- },
199
- "abilities": {
200
- "basePath": ".automatosx/abilities",
201
- "fallbackPath": "examples/abilities",
202
- "cache": {
203
- "enabled": true,
204
- "maxEntries": 50,
205
- "ttl": 600000,
206
- "maxSize": 5242880,
207
- "cleanupInterval": 120000
208
- },
209
- "limits": {
210
- "maxFileSize": 524288
211
- }
212
- },
213
- "workspace": {
214
- "prdPath": "automatosx/PRD",
215
- "tmpPath": "automatosx/tmp",
216
- "autoCleanupTmp": true,
217
- "tmpCleanupDays": 7
218
- },
219
- "logging": {
220
- "level": "info",
221
- "path": ".automatosx/logs",
222
- "console": true,
223
- "retention": {
224
- "maxSizeBytes": 104857600,
225
- "maxAgeDays": 30,
226
- "compress": true
227
- }
228
- },
229
- "performance": {
230
- "profileCache": {
231
- "enabled": true,
232
- "maxEntries": 20,
233
- "ttl": 600000,
234
- "cleanupInterval": 120000
235
- },
236
- "teamCache": {
237
- "enabled": true,
238
- "maxEntries": 10,
239
- "ttl": 600000,
240
- "cleanupInterval": 120000
241
- },
242
- "providerCache": {
243
- "enabled": true,
244
- "maxEntries": 100,
245
- "ttl": 600000,
246
- "cleanupInterval": 120000
247
- },
248
- "adaptiveCache": {
249
- "maxEntries": 1000,
250
- "baseTTL": 300000,
251
- "minTTL": 60000,
252
- "maxTTL": 3600000,
253
- "adaptiveMultiplier": 2,
254
- "lowFreqDivisor": 2,
255
- "frequencyThreshold": 5,
256
- "cleanupInterval": 60000
257
- },
258
- "responseCache": {
259
- "enabled": false,
260
- "ttl": 86400,
261
- "maxSize": 1000,
262
- "maxMemorySize": 100,
263
- "dbPath": ".automatosx/cache/responses.db"
264
- },
265
- "rateLimit": {
266
- "enabled": false,
267
- "requestsPerMinute": 60,
268
- "burstSize": 10
269
- }
270
- },
271
- "advanced": {
272
- "embedding": {
273
- "timeout": 30000,
274
- "retryDelay": 1000,
275
- "dimensions": 1536,
276
- "maxRetries": 3
277
- },
278
- "security": {
279
- "enablePathValidation": true,
280
- "allowedExtensions": [
281
- ".ts",
282
- ".js",
283
- ".tsx",
284
- ".jsx",
285
- ".py",
286
- ".go",
287
- ".rs",
288
- ".java",
289
- ".yaml",
290
- ".yml",
291
- ".json",
292
- ".toml",
293
- ".md",
294
- ".txt",
295
- ".csv"
296
- ]
297
- },
298
- "development": {
299
- "mockProviders": false,
300
- "profileMode": false
301
- }
302
- },
303
- "integration": {
304
- "vscode": {
305
- "enabled": false,
306
- "apiPort": 3000,
307
- "autoStart": true,
308
- "outputPanel": true,
309
- "notifications": true
310
- }
311
- },
312
- "cli": {
313
- "run": {
314
- "defaultMemory": true,
315
- "defaultSaveMemory": true,
316
- "defaultFormat": "text",
317
- "defaultVerbose": false
318
- },
319
- "session": {
320
- "defaultShowAgents": true
321
- },
322
- "memory": {
323
- "defaultLimit": 10
324
- }
325
- },
326
- "router": {
327
- "healthCheckInterval": 60000,
328
- "providerCooldownMs": 30000,
329
- "enableFreeTierPrioritization": true,
330
- "enableWorkloadAwareRouting": true
331
- },
332
- "version": "9.0.0"
333
- }