@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.
- package/README.md +742 -269
- package/dist/constants.d.ts +50 -0
- package/dist/constants.js +59 -0
- package/dist/constants.js.map +1 -0
- package/dist/mcp/client.d.ts +3 -8
- package/dist/mcp/client.js +17 -9
- package/dist/mcp/client.js.map +1 -1
- package/dist/schemas/index.d.ts +229 -37
- package/dist/schemas/settings-schemas.d.ts +179 -0
- package/dist/schemas/settings-schemas.js +52 -0
- package/dist/schemas/settings-schemas.js.map +1 -0
- package/dist/schemas/tool-schemas.d.ts +241 -0
- package/dist/schemas/tool-schemas.js +79 -0
- package/dist/schemas/tool-schemas.js.map +1 -0
- package/dist/utils/error-handler.d.ts +43 -0
- package/dist/utils/error-handler.js +70 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/settings-manager.d.ts +2 -18
- package/dist/utils/settings-manager.js +17 -4
- package/dist/utils/settings-manager.js.map +1 -1
- package/dist/utils/token-counter.d.ts +3 -1
- package/dist/utils/token-counter.js +26 -6
- package/dist/utils/token-counter.js.map +1 -1
- package/package.json +23 -5
- package/vitest.config.ts +20 -0
- package/.automatosx/agents/aerospace-scientist.yaml +0 -159
- package/.automatosx/agents/architecture.yaml +0 -244
- package/.automatosx/agents/backend.yaml +0 -172
- package/.automatosx/agents/ceo.yaml +0 -105
- package/.automatosx/agents/creative-marketer.yaml +0 -173
- package/.automatosx/agents/cto.yaml +0 -118
- package/.automatosx/agents/data-scientist.yaml +0 -200
- package/.automatosx/agents/data.yaml +0 -106
- package/.automatosx/agents/design.yaml +0 -115
- package/.automatosx/agents/devops.yaml +0 -124
- package/.automatosx/agents/frontend.yaml +0 -171
- package/.automatosx/agents/fullstack.yaml +0 -172
- package/.automatosx/agents/mobile.yaml +0 -185
- package/.automatosx/agents/product.yaml +0 -103
- package/.automatosx/agents/quality.yaml +0 -93
- package/.automatosx/agents/quantum-engineer.yaml +0 -167
- package/.automatosx/agents/researcher.yaml +0 -122
- package/.automatosx/agents/security.yaml +0 -115
- package/.automatosx/agents/standard.yaml +0 -214
- package/.automatosx/agents/writer.yaml +0 -122
- package/.automatosx/feature-flags.json +0 -13
- package/.automatosx/memory/memory.db +0 -0
- package/.automatosx/providers/README.md +0 -117
- package/.automatosx/providers/grok-zai.yaml.template +0 -61
- package/.automatosx/providers/grok.yaml.template +0 -71
- package/.automatosx/status/backend-1763517593334-85037.json +0 -9
- package/.automatosx/status/quality-1763516867087-82043.json +0 -9
- package/.automatosx/status/quality-1763516976722-84817.json +0 -9
- package/.automatosx/status/security-1763517871950-87357.json +0 -9
- package/.automatosx/teams/business.yaml +0 -56
- package/.automatosx/teams/core.yaml +0 -60
- package/.automatosx/teams/design.yaml +0 -58
- package/.automatosx/teams/engineering.yaml +0 -69
- package/.automatosx/teams/research.yaml +0 -56
- package/.automatosx/templates/analyst.yaml +0 -60
- package/.automatosx/templates/assistant.yaml +0 -48
- package/.automatosx/templates/basic-agent.yaml +0 -28
- package/.automatosx/templates/code-reviewer.yaml +0 -52
- package/.automatosx/templates/debugger.yaml +0 -63
- package/.automatosx/templates/designer.yaml +0 -69
- package/.automatosx/templates/developer.yaml +0 -60
- package/.automatosx/templates/fullstack-developer.yaml +0 -395
- package/.automatosx/templates/qa-specialist.yaml +0 -71
- package/.claude/mcp/automatosx.json +0 -244
- package/.claude/settings.local.json +0 -34
- package/.grok/settings.json +0 -37
- package/automatosx/PRD/README.md +0 -9
- package/automatosx/tmp/README.md +0 -10
- 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
|
-
}
|
package/.grok/settings.json
DELETED
|
@@ -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
|
-
}
|
package/automatosx/PRD/README.md
DELETED
package/automatosx/tmp/README.md
DELETED
package/automatosx.config.json
DELETED
|
@@ -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
|
-
}
|