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