@defai.digital/automatosx 5.6.21 → 5.6.22
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 +1 -1
- package/dist/index.js +24 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ AutomatosX is a CLI-first orchestration tool that transforms stateless AI assist
|
|
|
13
13
|
[](https://www.microsoft.com/windows)
|
|
14
14
|
[](https://ubuntu.com)
|
|
15
15
|
|
|
16
|
-
**Status**: ✅ Production Ready · **v5.6.
|
|
16
|
+
**Status**: ✅ Production Ready · **v5.6.22** · October 2025 · 24 Specialized Agents · 100% Resource Leak Free · Production Stability
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
package/dist/index.js
CHANGED
|
@@ -13501,6 +13501,8 @@ function createMemoryClearHandler(deps) {
|
|
|
13501
13501
|
|
|
13502
13502
|
// src/mcp/server.ts
|
|
13503
13503
|
var McpServer = class {
|
|
13504
|
+
// Use 'any' for heterogeneous tool handlers to avoid unsafe type casts
|
|
13505
|
+
// Runtime validation via validateToolInput provides type safety
|
|
13504
13506
|
tools = /* @__PURE__ */ new Map();
|
|
13505
13507
|
toolSchemas = [];
|
|
13506
13508
|
initialized = false;
|
|
@@ -13607,6 +13609,22 @@ var McpServer = class {
|
|
|
13607
13609
|
});
|
|
13608
13610
|
logger.info("[MCP Server] Services initialized successfully");
|
|
13609
13611
|
}
|
|
13612
|
+
/**
|
|
13613
|
+
* Cleanup resources before shutdown
|
|
13614
|
+
*/
|
|
13615
|
+
async cleanup() {
|
|
13616
|
+
logger.info("[MCP Server] Performing cleanup...");
|
|
13617
|
+
try {
|
|
13618
|
+
if (this.memoryManager) {
|
|
13619
|
+
await this.memoryManager.close();
|
|
13620
|
+
}
|
|
13621
|
+
logger.info("[MCP Server] Cleanup completed");
|
|
13622
|
+
} catch (error) {
|
|
13623
|
+
logger.error("[MCP Server] Cleanup failed", {
|
|
13624
|
+
error: error instanceof Error ? error.message : String(error)
|
|
13625
|
+
});
|
|
13626
|
+
}
|
|
13627
|
+
}
|
|
13610
13628
|
/**
|
|
13611
13629
|
* Register Phase 1 tools
|
|
13612
13630
|
*/
|
|
@@ -14259,16 +14277,19 @@ ${json}`;
|
|
|
14259
14277
|
}
|
|
14260
14278
|
}
|
|
14261
14279
|
});
|
|
14262
|
-
process.stdin.on("end", () => {
|
|
14280
|
+
process.stdin.on("end", async () => {
|
|
14263
14281
|
logger.info("[MCP Server] Server stopped (stdin closed)");
|
|
14282
|
+
await this.cleanup();
|
|
14264
14283
|
process.exit(0);
|
|
14265
14284
|
});
|
|
14266
|
-
process.on("SIGINT", () => {
|
|
14285
|
+
process.on("SIGINT", async () => {
|
|
14267
14286
|
logger.info("[MCP Server] Received SIGINT, shutting down...");
|
|
14287
|
+
await this.cleanup();
|
|
14268
14288
|
process.exit(0);
|
|
14269
14289
|
});
|
|
14270
|
-
process.on("SIGTERM", () => {
|
|
14290
|
+
process.on("SIGTERM", async () => {
|
|
14271
14291
|
logger.info("[MCP Server] Received SIGTERM, shutting down...");
|
|
14292
|
+
await this.cleanup();
|
|
14272
14293
|
process.exit(0);
|
|
14273
14294
|
});
|
|
14274
14295
|
logger.info("[MCP Server] Server started successfully (Content-Length framing)");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defai.digital/automatosx",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.22",
|
|
4
4
|
"description": "AI Agent Orchestration Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@iarna/toml": "^2.2.5",
|
|
73
|
+
"async-mutex": "^0.5.0",
|
|
73
74
|
"better-sqlite3": "^12.4.1",
|
|
74
75
|
"boxen": "^8.0.1",
|
|
75
76
|
"chalk": "^5.6.2",
|