@defai.digital/ax-cli 3.5.4 → 3.6.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 (162) hide show
  1. package/.ax-cli/checkpoints/2025-11-20/checkpoint-11e9e0ba-c39d-4fd2-aa77-bc818811c921.json +69 -0
  2. package/.ax-cli/checkpoints/2025-11-20/checkpoint-2b260b98-b418-4c7c-9694-e2b94967e662.json +24 -0
  3. package/.ax-cli/checkpoints/2025-11-20/checkpoint-7e03601e-e8ab-4cd7-9841-a74b66adf78f.json +69 -0
  4. package/.ax-cli/checkpoints/2025-11-20/checkpoint-7f9c6562-771f-4fd0-adcf-9e7e9ac34ae8.json +44 -0
  5. package/.ax-cli/checkpoints/2025-11-20/checkpoint-e1ebe666-4c3a-4367-ba5c-27fe512a9c70.json +24 -0
  6. package/.ax-cli/checkpoints/2025-11-21/checkpoint-15743e7d-430c-4d76-b6fc-955d7a5c250c.json +44 -0
  7. package/.ax-cli/checkpoints/2025-11-21/checkpoint-25cf7679-0b3f-4988-83d7-704548fbba91.json +69 -0
  8. package/.ax-cli/checkpoints/2025-11-21/checkpoint-54aedbac-6db0-464e-8ebb-dbb3979e6dca.json +24 -0
  9. package/.ax-cli/checkpoints/2025-11-21/checkpoint-7658aed8-fe5d-4222-903f-1a7c63717ea7.json +24 -0
  10. package/.ax-cli/checkpoints/2025-11-21/checkpoint-c9c13497-40dc-4294-a327-6a5fc854eaa1.json +69 -0
  11. package/.ax-cli/memory.json +15 -8
  12. package/README.md +423 -82
  13. package/ax.config.json +333 -0
  14. package/config-defaults/messages.yaml +75 -0
  15. package/config-defaults/models.yaml +66 -0
  16. package/config-defaults/prompts.yaml +156 -0
  17. package/config-defaults/settings.yaml +86 -0
  18. package/dist/agent/chat-history-manager.d.ts +56 -0
  19. package/dist/agent/chat-history-manager.js +150 -0
  20. package/dist/agent/chat-history-manager.js.map +1 -0
  21. package/dist/agent/llm-agent.js +1 -1
  22. package/dist/agent/llm-agent.js.map +1 -1
  23. package/dist/agent/tool-manager.d.ts +39 -0
  24. package/dist/agent/tool-manager.js +76 -0
  25. package/dist/agent/tool-manager.js.map +1 -0
  26. package/dist/analyzers/code-smells/detectors/data-clumps-detector.js +7 -9
  27. package/dist/analyzers/code-smells/detectors/data-clumps-detector.js.map +1 -1
  28. package/dist/analyzers/code-smells/detectors/dead-code-detector.js +1 -1
  29. package/dist/analyzers/code-smells/detectors/dead-code-detector.js.map +1 -1
  30. package/dist/analyzers/code-smells/detectors/duplicate-code-detector.js +22 -10
  31. package/dist/analyzers/code-smells/detectors/duplicate-code-detector.js.map +1 -1
  32. package/dist/analyzers/code-smells/detectors/feature-envy-detector.js +1 -1
  33. package/dist/analyzers/code-smells/detectors/feature-envy-detector.js.map +1 -1
  34. package/dist/analyzers/code-smells/detectors/inappropriate-intimacy-detector.js +1 -1
  35. package/dist/analyzers/code-smells/detectors/inappropriate-intimacy-detector.js.map +1 -1
  36. package/dist/analyzers/code-smells/detectors/large-class-detector.js +4 -1
  37. package/dist/analyzers/code-smells/detectors/large-class-detector.js.map +1 -1
  38. package/dist/analyzers/code-smells/detectors/long-method-detector.js +4 -1
  39. package/dist/analyzers/code-smells/detectors/long-method-detector.js.map +1 -1
  40. package/dist/analyzers/code-smells/detectors/long-parameter-list-detector.js +4 -1
  41. package/dist/analyzers/code-smells/detectors/long-parameter-list-detector.js.map +1 -1
  42. package/dist/analyzers/code-smells/detectors/magic-numbers-detector.js +4 -5
  43. package/dist/analyzers/code-smells/detectors/magic-numbers-detector.js.map +1 -1
  44. package/dist/analyzers/code-smells/detectors/nested-conditionals-detector.js +4 -1
  45. package/dist/analyzers/code-smells/detectors/nested-conditionals-detector.js.map +1 -1
  46. package/dist/commands/memory.js +1 -1
  47. package/dist/commands/memory.js.map +1 -1
  48. package/dist/commands/setup.js +19 -6
  49. package/dist/commands/setup.js.map +1 -1
  50. package/dist/index.js +7 -0
  51. package/dist/index.js.bak +664 -0
  52. package/dist/index.js.map +1 -1
  53. package/dist/llm/client.d.ts +1 -0
  54. package/dist/llm/client.js +44 -0
  55. package/dist/llm/client.js.map +1 -1
  56. package/dist/mcp/health.js +4 -2
  57. package/dist/mcp/health.js.map +1 -1
  58. package/dist/mcp/ssrf-protection.d.ts +86 -0
  59. package/dist/mcp/ssrf-protection.js +313 -0
  60. package/dist/mcp/ssrf-protection.js.map +1 -0
  61. package/dist/mcp/validation.d.ts +4 -0
  62. package/dist/mcp/validation.js +122 -11
  63. package/dist/mcp/validation.js.map +1 -1
  64. package/dist/schemas/settings-schemas.d.ts +53 -0
  65. package/dist/schemas/settings-schemas.js +47 -0
  66. package/dist/schemas/settings-schemas.js.map +1 -1
  67. package/dist/tools/bash.d.ts +3 -2
  68. package/dist/tools/bash.js +31 -2
  69. package/dist/tools/bash.js.map +1 -1
  70. package/dist/tools/search.d.ts +1 -1
  71. package/dist/tools/search.js +121 -128
  72. package/dist/tools/search.js.map +1 -1
  73. package/dist/tools/text-editor.js +52 -15
  74. package/dist/tools/text-editor.js.map +1 -1
  75. package/dist/tools/web-search/index.d.ts +0 -2
  76. package/dist/tools/web-search/index.js +0 -2
  77. package/dist/tools/web-search/index.js.map +1 -1
  78. package/dist/tools/web-search/router.d.ts +0 -2
  79. package/dist/tools/web-search/router.js +2 -37
  80. package/dist/tools/web-search/router.js.map +1 -1
  81. package/dist/tools/web-search/web-search-tool.js +2 -12
  82. package/dist/tools/web-search/web-search-tool.js.map +1 -1
  83. package/dist/ui/components/chat-history.js +1 -1
  84. package/dist/ui/components/chat-history.js.map +1 -1
  85. package/dist/ui/components/chat-input.d.ts +4 -1
  86. package/dist/ui/components/chat-input.js +133 -52
  87. package/dist/ui/components/chat-input.js.map +1 -1
  88. package/dist/ui/components/chat-interface.js +5 -4
  89. package/dist/ui/components/chat-interface.js.map +1 -1
  90. package/dist/ui/components/confirmation-dialog.js +1 -1
  91. package/dist/ui/components/confirmation-dialog.js.map +1 -1
  92. package/dist/ui/components/keyboard-hints.js +2 -0
  93. package/dist/ui/components/keyboard-hints.js.map +1 -1
  94. package/dist/ui/components/status-bar.js +3 -13
  95. package/dist/ui/components/status-bar.js.map +1 -1
  96. package/dist/ui/components/welcome-panel.js +4 -0
  97. package/dist/ui/components/welcome-panel.js.map +1 -1
  98. package/dist/ui/hooks/use-chat-reducer.d.ts +61 -0
  99. package/dist/ui/hooks/use-chat-reducer.js +118 -0
  100. package/dist/ui/hooks/use-chat-reducer.js.map +1 -0
  101. package/dist/ui/hooks/use-enhanced-input.d.ts +44 -0
  102. package/dist/ui/hooks/use-enhanced-input.js +364 -0
  103. package/dist/ui/hooks/use-enhanced-input.js.map +1 -0
  104. package/dist/ui/hooks/use-input-handler.d.ts +48 -0
  105. package/dist/ui/hooks/use-input-handler.js +1446 -0
  106. package/dist/ui/hooks/use-input-handler.js.map +1 -0
  107. package/dist/utils/audit-logger.d.ts +205 -0
  108. package/dist/utils/audit-logger.js +269 -0
  109. package/dist/utils/audit-logger.js.map +1 -0
  110. package/dist/utils/command-security.d.ts +85 -0
  111. package/dist/utils/command-security.js +200 -0
  112. package/dist/utils/command-security.js.map +1 -0
  113. package/dist/utils/config-loader.js +3 -3
  114. package/dist/utils/config-loader.js.map +1 -1
  115. package/dist/utils/encryption.d.ts +78 -0
  116. package/dist/utils/encryption.js +216 -0
  117. package/dist/utils/encryption.js.map +1 -0
  118. package/dist/utils/error-sanitizer.d.ts +119 -0
  119. package/dist/utils/error-sanitizer.js +253 -0
  120. package/dist/utils/error-sanitizer.js.map +1 -0
  121. package/dist/utils/input-sanitizer.d.ts +210 -0
  122. package/dist/utils/input-sanitizer.js +362 -0
  123. package/dist/utils/input-sanitizer.js.map +1 -0
  124. package/dist/utils/json-utils.d.ts +13 -0
  125. package/dist/utils/json-utils.js +55 -1
  126. package/dist/utils/json-utils.js.map +1 -1
  127. package/dist/utils/paste-collapse.d.ts +46 -0
  128. package/dist/utils/paste-collapse.js +77 -0
  129. package/dist/utils/paste-collapse.js.map +1 -0
  130. package/dist/utils/paste-utils.d.ts +99 -0
  131. package/dist/utils/paste-utils.js +239 -0
  132. package/dist/utils/paste-utils.js.map +1 -0
  133. package/dist/utils/path-security.d.ts +90 -0
  134. package/dist/utils/path-security.js +328 -0
  135. package/dist/utils/path-security.js.map +1 -0
  136. package/dist/utils/process-pool.d.ts +105 -0
  137. package/dist/utils/process-pool.js +326 -0
  138. package/dist/utils/process-pool.js.map +1 -0
  139. package/dist/utils/rate-limiter.d.ts +221 -0
  140. package/dist/utils/rate-limiter.js +317 -0
  141. package/dist/utils/rate-limiter.js.map +1 -0
  142. package/dist/utils/settings-manager.js +99 -6
  143. package/dist/utils/settings-manager.js.map +1 -1
  144. package/dist/utils/streaming-analyzer.js +9 -21
  145. package/dist/utils/streaming-analyzer.js.map +1 -1
  146. package/package.json +3 -7
  147. package/packages/schemas/dist/index.d.ts +14 -0
  148. package/packages/schemas/dist/index.d.ts.map +1 -0
  149. package/packages/schemas/dist/index.js +19 -0
  150. package/packages/schemas/dist/index.js.map +1 -0
  151. package/packages/schemas/dist/public/core/brand-types.d.ts +308 -0
  152. package/packages/schemas/dist/public/core/brand-types.d.ts.map +1 -0
  153. package/packages/schemas/dist/public/core/brand-types.js +243 -0
  154. package/packages/schemas/dist/public/core/brand-types.js.map +1 -0
  155. package/packages/schemas/dist/public/core/enums.d.ts +227 -0
  156. package/packages/schemas/dist/public/core/enums.d.ts.map +1 -0
  157. package/packages/schemas/dist/public/core/enums.js +222 -0
  158. package/packages/schemas/dist/public/core/enums.js.map +1 -0
  159. package/packages/schemas/dist/public/core/id-types.d.ts +286 -0
  160. package/packages/schemas/dist/public/core/id-types.d.ts.map +1 -0
  161. package/packages/schemas/dist/public/core/id-types.js +136 -0
  162. package/packages/schemas/dist/public/core/id-types.js.map +1 -0
package/ax.config.json ADDED
@@ -0,0 +1,333 @@
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
+ }
@@ -0,0 +1,75 @@
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"
@@ -0,0 +1,66 @@
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
@@ -0,0 +1,156 @@
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."