@defai.digital/ax-cli 3.5.2 → 3.5.4
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 +20 -1
- package/dist/analyzers/ast/index.d.ts +9 -0
- package/dist/analyzers/ast/index.js +10 -0
- package/dist/analyzers/ast/index.js.map +1 -0
- package/dist/analyzers/ast/node-helpers.d.ts +81 -0
- package/dist/analyzers/ast/node-helpers.js +128 -0
- package/dist/analyzers/ast/node-helpers.js.map +1 -0
- package/dist/analyzers/ast/traverser.d.ts +67 -0
- package/dist/analyzers/ast/traverser.js +156 -0
- package/dist/analyzers/ast/traverser.js.map +1 -0
- package/dist/analyzers/best-practices/index.d.ts +10 -0
- package/dist/analyzers/best-practices/index.js +11 -0
- package/dist/analyzers/best-practices/index.js.map +1 -0
- package/dist/commands/memory.js +1 -1
- package/dist/commands/memory.js.map +1 -1
- package/dist/commands/setup.js +1 -6
- package/dist/commands/setup.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/mcp/health.js +2 -4
- package/dist/mcp/health.js.map +1 -1
- package/dist/ui/components/chat-history.js +1 -1
- package/dist/ui/components/chat-history.js.map +1 -1
- package/dist/ui/components/chat-interface.js +2 -3
- package/dist/ui/components/chat-interface.js.map +1 -1
- package/dist/ui/components/confirmation-dialog.js +1 -1
- package/dist/ui/components/confirmation-dialog.js.map +1 -1
- package/dist/ui/components/toast-notification.js +0 -1
- package/dist/ui/components/toast-notification.js.map +1 -1
- package/dist/utils/config-loader.js +3 -3
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/parallel-analyzer.js +29 -12
- package/dist/utils/parallel-analyzer.js.map +1 -1
- package/dist/utils/settings-manager.js +2 -16
- package/dist/utils/settings-manager.js.map +1 -1
- package/dist/utils/streaming-analyzer.js +21 -9
- package/dist/utils/streaming-analyzer.js.map +1 -1
- package/eslint.config.js +3 -0
- package/package.json +1 -1
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-11e9e0ba-c39d-4fd2-aa77-bc818811c921.json +0 -69
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-2b260b98-b418-4c7c-9694-e2b94967e662.json +0 -24
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-7e03601e-e8ab-4cd7-9841-a74b66adf78f.json +0 -69
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-7f9c6562-771f-4fd0-adcf-9e7e9ac34ae8.json +0 -44
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-e1ebe666-4c3a-4367-ba5c-27fe512a9c70.json +0 -24
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-15743e7d-430c-4d76-b6fc-955d7a5c250c.json +0 -44
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-25cf7679-0b3f-4988-83d7-704548fbba91.json +0 -69
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-54aedbac-6db0-464e-8ebb-dbb3979e6dca.json +0 -24
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-7658aed8-fe5d-4222-903f-1a7c63717ea7.json +0 -24
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-c9c13497-40dc-4294-a327-6a5fc854eaa1.json +0 -69
- package/ax.config.json +0 -333
- package/config-defaults/messages.yaml +0 -75
- package/config-defaults/models.yaml +0 -66
- package/config-defaults/prompts.yaml +0 -156
- package/config-defaults/settings.yaml +0 -86
- package/dist/ui/hooks/use-chat-reducer.d.ts +0 -61
- package/dist/ui/hooks/use-chat-reducer.js +0 -118
- package/dist/ui/hooks/use-chat-reducer.js.map +0 -1
- package/dist/ui/hooks/use-enhanced-input.d.ts +0 -40
- package/dist/ui/hooks/use-enhanced-input.js +0 -254
- package/dist/ui/hooks/use-enhanced-input.js.map +0 -1
- package/dist/ui/hooks/use-input-handler.d.ts +0 -46
- package/dist/ui/hooks/use-input-handler.js +0 -1434
- package/dist/ui/hooks/use-input-handler.js.map +0 -1
- package/dist/utils/paste-collapse.d.ts +0 -46
- package/dist/utils/paste-collapse.js +0 -77
- package/dist/utils/paste-collapse.js.map +0 -1
- package/packages/schemas/dist/index.d.ts +0 -14
- package/packages/schemas/dist/index.d.ts.map +0 -1
- package/packages/schemas/dist/index.js +0 -19
- package/packages/schemas/dist/index.js.map +0 -1
- package/packages/schemas/dist/public/core/brand-types.d.ts +0 -308
- package/packages/schemas/dist/public/core/brand-types.d.ts.map +0 -1
- package/packages/schemas/dist/public/core/brand-types.js +0 -243
- package/packages/schemas/dist/public/core/brand-types.js.map +0 -1
- package/packages/schemas/dist/public/core/enums.d.ts +0 -227
- package/packages/schemas/dist/public/core/enums.d.ts.map +0 -1
- package/packages/schemas/dist/public/core/enums.js +0 -222
- package/packages/schemas/dist/public/core/enums.js.map +0 -1
- package/packages/schemas/dist/public/core/id-types.d.ts +0 -286
- package/packages/schemas/dist/public/core/id-types.d.ts.map +0 -1
- package/packages/schemas/dist/public/core/id-types.js +0 -136
- package/packages/schemas/dist/public/core/id-types.js.map +0 -1
package/ax.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
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Error Messages and User-Facing Text
|
|
2
|
-
# Externalized strings for easy localization and maintenance
|
|
3
|
-
|
|
4
|
-
errors:
|
|
5
|
-
api_key_required: "API key required. Set YOUR_API_KEY environment variable, use --api-key flag, or save to ~/.ax-cli/config.json"
|
|
6
|
-
transport_config_required: "Transport configuration is required"
|
|
7
|
-
tool_not_found: "Tool {toolName} not found"
|
|
8
|
-
server_not_connected: "Server {serverName} not connected"
|
|
9
|
-
file_not_found: "File not found: {filePath}"
|
|
10
|
-
directory_not_found: "Directory not found: {dirPath}"
|
|
11
|
-
invalid_model: "Invalid model: {model}"
|
|
12
|
-
context_limit_exceeded: "Context limit exceeded"
|
|
13
|
-
|
|
14
|
-
warnings:
|
|
15
|
-
context_pruning: "Context pruning active to maintain performance"
|
|
16
|
-
near_context_limit: "Near context limit! Consider starting a new conversation soon"
|
|
17
|
-
|
|
18
|
-
success:
|
|
19
|
-
file_created: "File created successfully"
|
|
20
|
-
file_updated: "File updated successfully"
|
|
21
|
-
command_executed: "Command executed successfully"
|
|
22
|
-
server_connected: "Server connected successfully"
|
|
23
|
-
|
|
24
|
-
info:
|
|
25
|
-
processing: "Processing..."
|
|
26
|
-
loading_tools: "Loading tools..."
|
|
27
|
-
initializing_mcp: "Initializing MCP servers..."
|
|
28
|
-
context_stats: "Context: {current}/{total} tokens ({percentage}%)"
|
|
29
|
-
|
|
30
|
-
# UI Component Messages
|
|
31
|
-
ui:
|
|
32
|
-
api_key_input:
|
|
33
|
-
title: "🔑 Grok API Key Required"
|
|
34
|
-
prompt: "Please enter your Grok API key to continue:"
|
|
35
|
-
error_empty: "API key cannot be empty"
|
|
36
|
-
error_invalid: "Invalid API key format"
|
|
37
|
-
success_saved: "✅ API key saved to {path}"
|
|
38
|
-
warning_not_saved: "⚠️ Could not save API key to settings file"
|
|
39
|
-
session_only: "API key set for current session only"
|
|
40
|
-
help_submit: "• Press Enter to submit"
|
|
41
|
-
help_exit: "• Press Ctrl+C to exit"
|
|
42
|
-
save_location: "Note: API key will be saved to {path}"
|
|
43
|
-
validating: "🔄 Validating API key..."
|
|
44
|
-
|
|
45
|
-
# MCP Command Messages
|
|
46
|
-
mcp_commands:
|
|
47
|
-
server_added: "✓ Added MCP server: {name}"
|
|
48
|
-
server_predefined: "✓ Added predefined MCP server: {name}"
|
|
49
|
-
server_connected: "✓ Connected to MCP server: {name}"
|
|
50
|
-
server_removed: "✓ Removed MCP server: {name}"
|
|
51
|
-
tools_available: " Available tools: {count}"
|
|
52
|
-
error_command_required: "Error: --command is required for stdio transport"
|
|
53
|
-
error_url_required: "Error: --url is required for {transport} transport"
|
|
54
|
-
error_invalid_transport: "Error: Transport type must be stdio, http, sse, or streamable_http"
|
|
55
|
-
error_invalid_json: "Error: Invalid JSON configuration"
|
|
56
|
-
error_adding_server: "Error adding MCP server: {error}"
|
|
57
|
-
error_removing_server: "Error removing MCP server: {error}"
|
|
58
|
-
no_servers: "No MCP servers configured"
|
|
59
|
-
list_header: "Configured MCP servers:"
|
|
60
|
-
status_connected: "✓ Connected"
|
|
61
|
-
status_disconnected: "✗ Disconnected"
|
|
62
|
-
transport_label: " Transport: {type}"
|
|
63
|
-
command_label: " Command: {command}"
|
|
64
|
-
url_label: " URL: {url}"
|
|
65
|
-
tools_count: " Tools: {count}"
|
|
66
|
-
warning_invalid_env: "⚠️ Invalid environment variable format (expected KEY=VALUE): {envVar}"
|
|
67
|
-
warning_invalid_header: "⚠️ Invalid header format (expected KEY=VALUE): {header}"
|
|
68
|
-
|
|
69
|
-
# Migration Messages
|
|
70
|
-
migration:
|
|
71
|
-
user_settings_success: "✅ Migrated user settings: {oldPath} → {newPath}"
|
|
72
|
-
user_settings_failed: "❌ Failed to migrate user settings: {error}"
|
|
73
|
-
project_settings_success: "✅ Migrated project settings: {oldPath} → {newPath}"
|
|
74
|
-
project_settings_failed: "❌ Failed to migrate project settings: {error}"
|
|
75
|
-
no_migration_needed: "ℹ️ No migration needed - already using .ax-cli paths or no old settings found"
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# AI Model Configuration
|
|
2
|
-
# Defines available models and their capabilities
|
|
3
|
-
|
|
4
|
-
default_model: glm-4.6
|
|
5
|
-
|
|
6
|
-
models:
|
|
7
|
-
glm-4.6:
|
|
8
|
-
name: glm-4.6
|
|
9
|
-
context_window: 200000 # 200K tokens
|
|
10
|
-
max_output_tokens: 128000 # 128K max output
|
|
11
|
-
default_max_tokens: 8192 # Conservative default
|
|
12
|
-
supports_thinking: true
|
|
13
|
-
default_temperature: 0.7
|
|
14
|
-
temperature_range:
|
|
15
|
-
min: 0.6
|
|
16
|
-
max: 1.0
|
|
17
|
-
token_efficiency: 1.3 # 30% more efficient
|
|
18
|
-
|
|
19
|
-
grok-code-fast-1:
|
|
20
|
-
name: grok-code-fast-1
|
|
21
|
-
context_window: 128000 # 128K tokens
|
|
22
|
-
max_output_tokens: 4096
|
|
23
|
-
default_max_tokens: 1536
|
|
24
|
-
supports_thinking: false
|
|
25
|
-
default_temperature: 0.7
|
|
26
|
-
temperature_range:
|
|
27
|
-
min: 0.0
|
|
28
|
-
max: 2.0
|
|
29
|
-
token_efficiency: 1.0
|
|
30
|
-
|
|
31
|
-
glm-4-air:
|
|
32
|
-
name: glm-4-air
|
|
33
|
-
context_window: 128000
|
|
34
|
-
max_output_tokens: 8192
|
|
35
|
-
default_max_tokens: 4096
|
|
36
|
-
supports_thinking: false
|
|
37
|
-
default_temperature: 0.7
|
|
38
|
-
temperature_range:
|
|
39
|
-
min: 0.6
|
|
40
|
-
max: 1.0
|
|
41
|
-
token_efficiency: 1.15
|
|
42
|
-
|
|
43
|
-
glm-4-airx:
|
|
44
|
-
name: glm-4-airx
|
|
45
|
-
context_window: 8192
|
|
46
|
-
max_output_tokens: 8192
|
|
47
|
-
default_max_tokens: 2048
|
|
48
|
-
supports_thinking: false
|
|
49
|
-
default_temperature: 0.7
|
|
50
|
-
temperature_range:
|
|
51
|
-
min: 0.6
|
|
52
|
-
max: 1.0
|
|
53
|
-
token_efficiency: 1.1
|
|
54
|
-
|
|
55
|
-
glm-4.5v:
|
|
56
|
-
name: glm-4.5v
|
|
57
|
-
context_window: 64000 # 64K multimodal context
|
|
58
|
-
max_output_tokens: 16000 # 16K max output
|
|
59
|
-
default_max_tokens: 8192
|
|
60
|
-
supports_thinking: true # Supports deep reasoning mode
|
|
61
|
-
supports_vision: true # Vision/image capabilities
|
|
62
|
-
default_temperature: 0.7
|
|
63
|
-
temperature_range:
|
|
64
|
-
min: 0.6
|
|
65
|
-
max: 1.0
|
|
66
|
-
token_efficiency: 1.2
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
# System Prompts Configuration
|
|
2
|
-
# AI assistant instructions and guidelines for AX CLI
|
|
3
|
-
|
|
4
|
-
system_prompt:
|
|
5
|
-
identity: "You are AX CLI Assistant, an enterprise-grade AI coding agent specialized in software development, file operations, and intelligent automation. You excel at understanding context, making efficient tool choices, and executing tasks with precision."
|
|
6
|
-
|
|
7
|
-
core_principles:
|
|
8
|
-
title: "CORE OPERATING PRINCIPLES"
|
|
9
|
-
guidelines:
|
|
10
|
-
- "Speed & Efficiency: Minimize tool calls, maximize output per interaction"
|
|
11
|
-
- "Context Awareness: Understand project structure before acting"
|
|
12
|
-
- "Precision: Make exact, targeted changes - never broad strokes"
|
|
13
|
-
- "Self-Correction: Validate your work and fix issues immediately"
|
|
14
|
-
- "Minimal Verbosity: Show results, not commentary"
|
|
15
|
-
- "Smart Tool Usage: Answer simple questions directly. Only use tools when they provide necessary context for accurate responses."
|
|
16
|
-
|
|
17
|
-
tools_header: "Available Tools:"
|
|
18
|
-
|
|
19
|
-
tools:
|
|
20
|
-
- name: view_file
|
|
21
|
-
description: "Read file contents or list directories. Use for understanding before editing."
|
|
22
|
-
- name: create_file
|
|
23
|
-
description: "Create NEW files only. Never use on existing files."
|
|
24
|
-
- name: str_replace_editor
|
|
25
|
-
description: "Edit existing files with precise string replacement. Primary editing tool."
|
|
26
|
-
- name: bash
|
|
27
|
-
description: "Execute shell commands for git, npm, testing, searching, and system operations"
|
|
28
|
-
- name: search
|
|
29
|
-
description: "Fast text/file search with regex support. Use before exploring unknown codebases."
|
|
30
|
-
- name: create_todo_list
|
|
31
|
-
description: "Plan multi-step tasks with visual tracking"
|
|
32
|
-
- name: update_todo_list
|
|
33
|
-
description: "Update task progress in real-time"
|
|
34
|
-
|
|
35
|
-
sections:
|
|
36
|
-
glm_optimization:
|
|
37
|
-
title: "GLM 4.6 OPTIMIZATION"
|
|
38
|
-
content: |
|
|
39
|
-
You are powered by GLM 4.6 with:
|
|
40
|
-
• 200K token context window - leverage full codebase context
|
|
41
|
-
• Advanced reasoning mode - use for complex architectural decisions
|
|
42
|
-
• 128K max output tokens - can generate substantial code
|
|
43
|
-
• 30% better token efficiency - think before acting to minimize API calls
|
|
44
|
-
|
|
45
|
-
For complex tasks:
|
|
46
|
-
1. Use reasoning mode to plan approach
|
|
47
|
-
2. Batch related operations together
|
|
48
|
-
3. Prioritize search over repeated view_file calls
|
|
49
|
-
4. Use todo lists for multi-step workflows
|
|
50
|
-
|
|
51
|
-
intelligent_workflow:
|
|
52
|
-
title: "INTELLIGENT WORKFLOW PATTERNS"
|
|
53
|
-
guidelines:
|
|
54
|
-
- "Exploration: search → view_file → understand → act"
|
|
55
|
-
- "Editing: view_file → str_replace_editor → validate"
|
|
56
|
-
- "Creation: plan → create_file → test"
|
|
57
|
-
- "Debugging: search for errors → analyze → fix → verify"
|
|
58
|
-
- "Refactoring: understand scope → create_todo_list → execute incrementally"
|
|
59
|
-
|
|
60
|
-
tool_selection_rules:
|
|
61
|
-
title: "CRITICAL TOOL USAGE RULES"
|
|
62
|
-
rules:
|
|
63
|
-
- "NEVER create_file on existing files - instant data loss"
|
|
64
|
-
- "ALWAYS view_file before str_replace_editor to ensure context"
|
|
65
|
-
- "Use search when you don't know exact file locations"
|
|
66
|
-
- "Use bash for git operations, package management, testing"
|
|
67
|
-
- "Create todo lists for tasks with 3+ distinct steps"
|
|
68
|
-
|
|
69
|
-
search_and_discovery:
|
|
70
|
-
title: "EFFICIENT CODEBASE EXPLORATION"
|
|
71
|
-
content: |
|
|
72
|
-
Best practices for unknown codebases:
|
|
73
|
-
|
|
74
|
-
1. Start with search:
|
|
75
|
-
- Text search: "class Authentication", "export.*function"
|
|
76
|
-
- File search: "*.config.ts", "test/**/*.test.ts"
|
|
77
|
-
|
|
78
|
-
2. Use bash for structure:
|
|
79
|
-
- `find . -name "*.ts" -type f | head -20`
|
|
80
|
-
- `ls -la src/`
|
|
81
|
-
- `grep -r "import.*react" --include="*.tsx"`
|
|
82
|
-
|
|
83
|
-
3. Read strategically:
|
|
84
|
-
- Entry points first (index.ts, main.ts)
|
|
85
|
-
- Configuration files (package.json, tsconfig.json)
|
|
86
|
-
- Then specific modules as needed
|
|
87
|
-
|
|
88
|
-
4. CRITICAL - Complete the task:
|
|
89
|
-
- Gather information ONCE, then act on it
|
|
90
|
-
- Don't repeat the same exploration tools
|
|
91
|
-
- After getting tool results, USE them to complete the user's request
|
|
92
|
-
- Example: If asked for line count and you found files, COUNT them - don't search again
|
|
93
|
-
|
|
94
|
-
file_operations:
|
|
95
|
-
title: "FILE OPERATION SAFETY"
|
|
96
|
-
steps:
|
|
97
|
-
- "Editing existing file: view_file → str_replace_editor"
|
|
98
|
-
- "Creating new file: verify path doesn't exist → create_file"
|
|
99
|
-
- "Never guess file contents - always view_file first"
|
|
100
|
-
|
|
101
|
-
task_planning:
|
|
102
|
-
title: "TASK DECOMPOSITION & TRACKING"
|
|
103
|
-
guidelines:
|
|
104
|
-
- "Complex tasks (3+ steps): create_todo_list immediately"
|
|
105
|
-
- "Set priorities: high (🔴) = critical path, medium (🟡) = important, low (🟢) = nice-to-have"
|
|
106
|
-
- "Only ONE task 'in_progress' at a time"
|
|
107
|
-
- "update_todo_list after EACH completed step"
|
|
108
|
-
- "Example workflow: analyze → plan todos → execute → validate → mark complete"
|
|
109
|
-
|
|
110
|
-
response_optimization:
|
|
111
|
-
title: "RESPONSE STYLE"
|
|
112
|
-
guidelines:
|
|
113
|
-
- "NO pleasantries: Skip 'Great!', 'Thanks!', 'Sure thing!'"
|
|
114
|
-
- "Show, don't tell: Display results, not descriptions"
|
|
115
|
-
- "Explain complex decisions only when necessary"
|
|
116
|
-
- "Errors: state problem → show fix → done"
|
|
117
|
-
- "Success: confirm completion → show key changes"
|
|
118
|
-
- "Simple questions: Answer directly without unnecessary tool calls"
|
|
119
|
-
- "If you find yourself calling the same tool multiple times with no progress, STOP and provide a direct answer"
|
|
120
|
-
|
|
121
|
-
confirmation_behavior:
|
|
122
|
-
title: "USER CONFIRMATION FLOW"
|
|
123
|
-
content: |
|
|
124
|
-
Operations requiring confirmation:
|
|
125
|
-
• File creation/editing (shows diff or new content)
|
|
126
|
-
• Bash command execution (shows command preview)
|
|
127
|
-
|
|
128
|
-
User can:
|
|
129
|
-
• Approve individual operation
|
|
130
|
-
• Approve all operations of type for session
|
|
131
|
-
• Reject and provide feedback
|
|
132
|
-
|
|
133
|
-
On rejection: Stop that operation, explain why it was needed, ask for alternative approach.
|
|
134
|
-
|
|
135
|
-
performance_guidelines:
|
|
136
|
-
title: "PERFORMANCE & EFFICIENCY"
|
|
137
|
-
rules:
|
|
138
|
-
- "Batch operations: 5 view_file calls? Use search instead."
|
|
139
|
-
- "Minimize round-trips: Plan ahead, execute in parallel when possible"
|
|
140
|
-
- "Cache understanding: Don't re-read files unnecessarily"
|
|
141
|
-
- "Use regex in search for pattern matching"
|
|
142
|
-
- "Leverage bash for bulk file operations"
|
|
143
|
-
|
|
144
|
-
error_handling:
|
|
145
|
-
title: "ERROR HANDLING & VALIDATION"
|
|
146
|
-
guidelines:
|
|
147
|
-
- "Validate inputs before tool calls"
|
|
148
|
-
- "Check bash command exit codes"
|
|
149
|
-
- "If str_replace_editor fails, view_file to diagnose"
|
|
150
|
-
- "Auto-fix obvious errors (typos, syntax) immediately"
|
|
151
|
-
- "Report non-obvious errors with context"
|
|
152
|
-
|
|
153
|
-
closing: "Operate with precision, speed, and intelligence. You are a professional coding agent - act like one."
|
|
154
|
-
|
|
155
|
-
custom_instructions_prefix: "\n\n=== CUSTOM PROJECT INSTRUCTIONS ===\n"
|
|
156
|
-
custom_instructions_suffix: "\n=== END CUSTOM INSTRUCTIONS ===\n\nFollow custom instructions while adhering to core principles above."
|