@defai.digital/automatosx 12.5.1 → 12.5.2

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 CHANGED
@@ -12,7 +12,7 @@
12
12
  [![Ubuntu](https://img.shields.io/badge/Ubuntu-24.04-blue.svg)](https://ubuntu.com)
13
13
  [![License](https://img.shields.io/badge/license-Apache--2.0-yellow.svg)](LICENSE)
14
14
 
15
- **Status**: ✅ **Production Ready** | v12.5.1 | MCP Hybrid Framing & Multi-Protocol Support
15
+ **Status**: ✅ **Production Ready** | v12.5.2 | 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
 
package/dist/index.js CHANGED
@@ -9431,7 +9431,7 @@ var PRECOMPILED_CONFIG = {
9431
9431
  "enableFreeTierPrioritization": true,
9432
9432
  "enableWorkloadAwareRouting": true
9433
9433
  },
9434
- "version": "12.5.1"
9434
+ "version": "12.5.2"
9435
9435
  };
9436
9436
 
9437
9437
  // src/core/config/schemas.ts
@@ -31821,7 +31821,12 @@ async function resolveResourceTemplate(uri, variables, profileLoader, workspaceM
31821
31821
  profile.role ? `**Role:** ${profile.role}` : "",
31822
31822
  profile.abilities?.length ? `**Abilities:** ${profile.abilities.join(", ")}` : "",
31823
31823
  "",
31824
- profile.systemPrompt || "No system prompt defined."
31824
+ profile.systemPrompt || "No system prompt defined.",
31825
+ "",
31826
+ "## Profile JSON",
31827
+ "```json",
31828
+ JSON.stringify(profile, null, 2),
31829
+ "```"
31825
31830
  ].filter(Boolean).join("\n");
31826
31831
  return {
31827
31832
  uri: `agent/${agent}`,
@@ -31829,8 +31834,7 @@ async function resolveResourceTemplate(uri, variables, profileLoader, workspaceM
31829
31834
  description: `AutomatosX agent profile for ${agent}`,
31830
31835
  mimeType: "text/markdown",
31831
31836
  contents: [
31832
- { type: "text", text: summary },
31833
- { type: "application/json", json: profile }
31837
+ { type: "text", text: summary }
31834
31838
  ]
31835
31839
  };
31836
31840
  }
@@ -31848,8 +31852,7 @@ async function resolveResourceTemplate(uri, variables, profileLoader, workspaceM
31848
31852
  description: `Workspace ${isPrd ? "PRD" : "tmp"} file`,
31849
31853
  mimeType: "text/markdown",
31850
31854
  contents: [
31851
- { type: "text", text: content },
31852
- { type: "application/json", json: { path: path7, content, workspace: isPrd ? "PRD" : "tmp" } }
31855
+ { type: "text", text: content }
31853
31856
  ]
31854
31857
  };
31855
31858
  }
@@ -32495,8 +32498,10 @@ v12.5.1: Agent auto-selection - if agent is omitted, system automatically select
32495
32498
  const profile = await this.profileLoader.loadProfile(agent);
32496
32499
  const content = [
32497
32500
  { type: "text", text: `System prompt for ${agent}:
32498
- ${profile.systemPrompt || "No system prompt defined."}` },
32499
- { type: "application/json", json: profile }
32501
+ ${profile.systemPrompt || "No system prompt defined."}
32502
+
32503
+ Profile:
32504
+ ${JSON.stringify(profile, null, 2)}` }
32500
32505
  ];
32501
32506
  return { jsonrpc: "2.0", id, result: { prompt: { name, description: "Agent context", arguments: [{ name: "agent", required: true }] }, content } };
32502
32507
  } catch (error) {
@@ -32513,8 +32518,10 @@ ${profile.systemPrompt || "No system prompt defined."}` },
32513
32518
  { type: "text", text: `AutomatosX MCP status:
32514
32519
  Version: ${summary.version}
32515
32520
  Providers: ${summary.providerCount}
32516
- Streaming: ${summary.streamingNotifications}` },
32517
- { type: "application/json", json: summary }
32521
+ Streaming: ${summary.streamingNotifications}
32522
+
32523
+ Details:
32524
+ ${JSON.stringify(summary, null, 2)}` }
32518
32525
  ];
32519
32526
  return { jsonrpc: "2.0", id, result: { prompt: { name, description: "AutomatosX status" }, content } };
32520
32527
  }
@@ -32539,11 +32546,15 @@ Streaming: ${summary.streamingNotifications}` },
32539
32546
  profile.role ? `**Role:** ${profile.role}` : "",
32540
32547
  profile.abilities?.length ? `**Abilities:** ${profile.abilities.join(", ")}` : "",
32541
32548
  "",
32542
- profile.systemPrompt || "No system prompt defined."
32549
+ profile.systemPrompt || "No system prompt defined.",
32550
+ "",
32551
+ "## Profile JSON",
32552
+ "```json",
32553
+ JSON.stringify(profile, null, 2),
32554
+ "```"
32543
32555
  ].filter(Boolean).join("\n");
32544
32556
  const contents = [
32545
- { type: "text", text: summary },
32546
- { type: "application/json", json: profile }
32557
+ { type: "text", text: summary }
32547
32558
  ];
32548
32559
  return { jsonrpc: "2.0", id, result: { uri, mimeType: "text/markdown", contents } };
32549
32560
  } catch (error) {
@@ -32586,15 +32597,8 @@ Streaming: ${summary.streamingNotifications}` },
32586
32597
  }
32587
32598
  /** Create MCP tool response wrapper */
32588
32599
  createToolResponse(id, result, isError = false) {
32589
- let content;
32590
- if (typeof result === "string") {
32591
- content = [{ type: "text", text: result }];
32592
- } else {
32593
- content = [
32594
- { type: "application/json", json: result },
32595
- { type: "text", text: JSON.stringify(result, null, 2) }
32596
- ];
32597
- }
32600
+ const text = typeof result === "string" ? result : JSON.stringify(result, null, 2);
32601
+ const content = [{ type: "text", text }];
32598
32602
  const response = { content, ...isError && { isError } };
32599
32603
  return { jsonrpc: "2.0", id, result: response };
32600
32604
  }
package/dist/mcp/index.js CHANGED
@@ -8727,7 +8727,7 @@ var PRECOMPILED_CONFIG = {
8727
8727
  "enableFreeTierPrioritization": true,
8728
8728
  "enableWorkloadAwareRouting": true
8729
8729
  },
8730
- "version": "12.5.1"
8730
+ "version": "12.5.2"
8731
8731
  };
8732
8732
 
8733
8733
  // src/core/config/schemas.ts
@@ -26163,7 +26163,12 @@ async function resolveResourceTemplate(uri, variables, profileLoader, workspaceM
26163
26163
  profile.role ? `**Role:** ${profile.role}` : "",
26164
26164
  profile.abilities?.length ? `**Abilities:** ${profile.abilities.join(", ")}` : "",
26165
26165
  "",
26166
- profile.systemPrompt || "No system prompt defined."
26166
+ profile.systemPrompt || "No system prompt defined.",
26167
+ "",
26168
+ "## Profile JSON",
26169
+ "```json",
26170
+ JSON.stringify(profile, null, 2),
26171
+ "```"
26167
26172
  ].filter(Boolean).join("\n");
26168
26173
  return {
26169
26174
  uri: `agent/${agent}`,
@@ -26171,8 +26176,7 @@ async function resolveResourceTemplate(uri, variables, profileLoader, workspaceM
26171
26176
  description: `AutomatosX agent profile for ${agent}`,
26172
26177
  mimeType: "text/markdown",
26173
26178
  contents: [
26174
- { type: "text", text: summary },
26175
- { type: "application/json", json: profile }
26179
+ { type: "text", text: summary }
26176
26180
  ]
26177
26181
  };
26178
26182
  }
@@ -26190,8 +26194,7 @@ async function resolveResourceTemplate(uri, variables, profileLoader, workspaceM
26190
26194
  description: `Workspace ${isPrd ? "PRD" : "tmp"} file`,
26191
26195
  mimeType: "text/markdown",
26192
26196
  contents: [
26193
- { type: "text", text: content },
26194
- { type: "application/json", json: { path: path7, content, workspace: isPrd ? "PRD" : "tmp" } }
26197
+ { type: "text", text: content }
26195
26198
  ]
26196
26199
  };
26197
26200
  }
@@ -26837,8 +26840,10 @@ v12.5.1: Agent auto-selection - if agent is omitted, system automatically select
26837
26840
  const profile = await this.profileLoader.loadProfile(agent);
26838
26841
  const content = [
26839
26842
  { type: "text", text: `System prompt for ${agent}:
26840
- ${profile.systemPrompt || "No system prompt defined."}` },
26841
- { type: "application/json", json: profile }
26843
+ ${profile.systemPrompt || "No system prompt defined."}
26844
+
26845
+ Profile:
26846
+ ${JSON.stringify(profile, null, 2)}` }
26842
26847
  ];
26843
26848
  return { jsonrpc: "2.0", id, result: { prompt: { name, description: "Agent context", arguments: [{ name: "agent", required: true }] }, content } };
26844
26849
  } catch (error) {
@@ -26855,8 +26860,10 @@ ${profile.systemPrompt || "No system prompt defined."}` },
26855
26860
  { type: "text", text: `AutomatosX MCP status:
26856
26861
  Version: ${summary.version}
26857
26862
  Providers: ${summary.providerCount}
26858
- Streaming: ${summary.streamingNotifications}` },
26859
- { type: "application/json", json: summary }
26863
+ Streaming: ${summary.streamingNotifications}
26864
+
26865
+ Details:
26866
+ ${JSON.stringify(summary, null, 2)}` }
26860
26867
  ];
26861
26868
  return { jsonrpc: "2.0", id, result: { prompt: { name, description: "AutomatosX status" }, content } };
26862
26869
  }
@@ -26881,11 +26888,15 @@ Streaming: ${summary.streamingNotifications}` },
26881
26888
  profile.role ? `**Role:** ${profile.role}` : "",
26882
26889
  profile.abilities?.length ? `**Abilities:** ${profile.abilities.join(", ")}` : "",
26883
26890
  "",
26884
- profile.systemPrompt || "No system prompt defined."
26891
+ profile.systemPrompt || "No system prompt defined.",
26892
+ "",
26893
+ "## Profile JSON",
26894
+ "```json",
26895
+ JSON.stringify(profile, null, 2),
26896
+ "```"
26885
26897
  ].filter(Boolean).join("\n");
26886
26898
  const contents = [
26887
- { type: "text", text: summary },
26888
- { type: "application/json", json: profile }
26899
+ { type: "text", text: summary }
26889
26900
  ];
26890
26901
  return { jsonrpc: "2.0", id, result: { uri, mimeType: "text/markdown", contents } };
26891
26902
  } catch (error) {
@@ -26928,15 +26939,8 @@ Streaming: ${summary.streamingNotifications}` },
26928
26939
  }
26929
26940
  /** Create MCP tool response wrapper */
26930
26941
  createToolResponse(id, result, isError = false) {
26931
- let content;
26932
- if (typeof result === "string") {
26933
- content = [{ type: "text", text: result }];
26934
- } else {
26935
- content = [
26936
- { type: "application/json", json: result },
26937
- { type: "text", text: JSON.stringify(result, null, 2) }
26938
- ];
26939
- }
26942
+ const text = typeof result === "string" ? result : JSON.stringify(result, null, 2);
26943
+ const content = [{ type: "text", text }];
26940
26944
  const response = { content, ...isError && { isError } };
26941
26945
  return { jsonrpc: "2.0", id, result: response };
26942
26946
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defai.digital/automatosx",
3
- "version": "12.5.1",
3
+ "version": "12.5.2",
4
4
  "description": "Provider-agnostic AI orchestration platform with 20+ specialized agents, persistent memory, and multi-provider routing for Claude Code, Gemini CLI, Codex CLI, GLM, and Grok",
5
5
  "type": "module",
6
6
  "publishConfig": {