@defai.digital/automatosx 12.4.1 → 12.5.0
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 +53 -1
- package/dist/index.js +1673 -36
- package/dist/mcp/index.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://ubuntu.com)
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
|
|
15
|
-
**Status**: ✅ **Production Ready** | v12.
|
|
15
|
+
**Status**: ✅ **Production Ready** | v12.5.0 | MCP Hybrid Framing & Multi-Protocol Support
|
|
16
16
|
|
|
17
17
|
> 🎯 **What AutomatosX Does**: Adds 20+ specialized agents, persistent memory, workflow automation, and 80% cost savings to Claude Code/Codex - **without changing how you work**.
|
|
18
18
|
|
|
@@ -312,6 +312,58 @@ steps:
|
|
|
312
312
|
|
|
313
313
|
**AutomatosX executes everything automatically**, with optimal provider routing.
|
|
314
314
|
|
|
315
|
+
### 6. Autonomous Bug Fixing (v12.4.0+)
|
|
316
|
+
|
|
317
|
+
**Automatically detect and fix common bugs in your codebase:**
|
|
318
|
+
|
|
319
|
+
```bash
|
|
320
|
+
# Scan and fix timer leaks, missing destroy(), and resource issues
|
|
321
|
+
ax bugfix
|
|
322
|
+
|
|
323
|
+
# Dry-run mode (preview fixes without applying)
|
|
324
|
+
ax bugfix --dry-run
|
|
325
|
+
|
|
326
|
+
# Focus on specific directory
|
|
327
|
+
ax bugfix --scope src/core/
|
|
328
|
+
|
|
329
|
+
# Fix specific bug types only
|
|
330
|
+
ax bugfix --types timer_leak,missing_destroy
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
**What AutomatosX detects and fixes**:
|
|
334
|
+
- **Timer Leaks**: `setInterval`/`setTimeout` without cleanup
|
|
335
|
+
- **Missing Destroy**: EventEmitters without `destroy()` method
|
|
336
|
+
- **Promise Timeout Leaks**: Timeouts not cleared in error paths
|
|
337
|
+
- **Event Leaks**: Event listeners without cleanup
|
|
338
|
+
|
|
339
|
+
**Safe by default**:
|
|
340
|
+
- Creates backups before any changes
|
|
341
|
+
- Runs TypeScript typecheck after each fix
|
|
342
|
+
- Runs tests to verify fixes don't break functionality
|
|
343
|
+
- Automatic rollback if verification fails
|
|
344
|
+
|
|
345
|
+
**Example output**:
|
|
346
|
+
```
|
|
347
|
+
[ax bugfix] Scanning src/ for bugs...
|
|
348
|
+
[ax bugfix] Found 18 potential issues:
|
|
349
|
+
- 12 timer_leak (setInterval without .unref())
|
|
350
|
+
- 4 missing_destroy (EventEmitter subclass)
|
|
351
|
+
- 2 promise_timeout_leak
|
|
352
|
+
|
|
353
|
+
[ax bugfix] Fixing timer_leak in src/core/worker-pool.ts:447
|
|
354
|
+
- Replaced setInterval with createSafeInterval
|
|
355
|
+
- Verification: TypeScript ✓ Tests ✓
|
|
356
|
+
|
|
357
|
+
[ax bugfix] Complete: 15/18 bugs fixed, 3 require manual review
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**MCP Integration** - Use bugfix via Quality agent from Claude Code:
|
|
361
|
+
```
|
|
362
|
+
# Via Quality agent (recommended - full context and orchestration)
|
|
363
|
+
run_agent({ agent: "quality", task: "scan src/ for code health issues" })
|
|
364
|
+
run_agent({ agent: "quality", task: "run bugfix workflow with dry-run" })
|
|
365
|
+
```
|
|
366
|
+
|
|
315
367
|
---
|
|
316
368
|
|
|
317
369
|
## 💰 Cost Comparison (Real Numbers)
|