@integrity-labs/agt-cli 0.9.3 → 0.9.5

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.
@@ -9,7 +9,7 @@ import {
9
9
  provisionStopHook,
10
10
  requireHost,
11
11
  resolveChannels
12
- } from "../chunk-LPYH2O7U.js";
12
+ } from "../chunk-2F6REM24.js";
13
13
  import {
14
14
  findTaskByTemplate,
15
15
  getProjectDir,
@@ -3599,6 +3599,32 @@ function deployMcpAssets() {
3599
3599
  }
3600
3600
  }
3601
3601
  log(`[manager] MCP assets deployed to ${targetDir}`);
3602
+ const localMcpPath = join(targetDir, "index.js");
3603
+ try {
3604
+ const agentsDir = join(homedir(), ".augmented", "agents");
3605
+ if (existsSync(agentsDir)) {
3606
+ for (const entry of readdirSync(agentsDir, { withFileTypes: true })) {
3607
+ if (!entry.isDirectory()) continue;
3608
+ for (const subdir of ["provision", "project"]) {
3609
+ const mcpJsonPath = join(agentsDir, entry.name, subdir, ".mcp.json");
3610
+ try {
3611
+ const raw = readFileSync(mcpJsonPath, "utf-8");
3612
+ if (!raw.includes("@integrity-labs/augmented-mcp")) continue;
3613
+ const mcpConfig = JSON.parse(raw);
3614
+ const augServer = mcpConfig.mcpServers?.["augmented"];
3615
+ if (!augServer) continue;
3616
+ augServer.command = "node";
3617
+ augServer.args = [localMcpPath];
3618
+ writeFileSync(mcpJsonPath, JSON.stringify(mcpConfig, null, 2));
3619
+ log(`[manager] Patched ${entry.name}/${subdir}/.mcp.json: npx \u2192 node`);
3620
+ } catch {
3621
+ }
3622
+ }
3623
+ }
3624
+ }
3625
+ } catch (err) {
3626
+ log(`[manager] Failed to patch agent .mcp.json files: ${err.message}`);
3627
+ }
3602
3628
  }
3603
3629
  async function stopManager() {
3604
3630
  await stopPolling();