@integrity-labs/agt-cli 0.19.5 → 0.19.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
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
success,
|
|
51
51
|
table,
|
|
52
52
|
warn
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-IJZ2IDTV.js";
|
|
54
54
|
|
|
55
55
|
// src/bin/agt.ts
|
|
56
56
|
import { join as join10 } from "path";
|
|
@@ -3734,7 +3734,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3734
3734
|
import { existsSync as existsSync5, realpathSync } from "fs";
|
|
3735
3735
|
import chalk17 from "chalk";
|
|
3736
3736
|
import ora15 from "ora";
|
|
3737
|
-
var cliVersion = true ? "0.19.
|
|
3737
|
+
var cliVersion = true ? "0.19.7" : "dev";
|
|
3738
3738
|
async function fetchLatestVersion() {
|
|
3739
3739
|
const host2 = getHost();
|
|
3740
3740
|
if (!host2) return null;
|
|
@@ -4192,7 +4192,7 @@ function handleError(err) {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
|
|
4194
4194
|
// src/bin/agt.ts
|
|
4195
|
-
var cliVersion2 = true ? "0.19.
|
|
4195
|
+
var cliVersion2 = true ? "0.19.7" : "dev";
|
|
4196
4196
|
var program = new Command();
|
|
4197
4197
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
4198
4198
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveChannels,
|
|
23
23
|
resolveDmTarget,
|
|
24
24
|
wrapScheduledTaskPrompt
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-IJZ2IDTV.js";
|
|
26
26
|
import {
|
|
27
27
|
findTaskByTemplate,
|
|
28
28
|
getProjectDir,
|
|
@@ -1630,7 +1630,7 @@ function clearAgentCaches(agentId, codeName) {
|
|
|
1630
1630
|
var cachedFrameworkVersion = null;
|
|
1631
1631
|
var lastVersionCheckAt = 0;
|
|
1632
1632
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
1633
|
-
var agtCliVersion = true ? "0.19.
|
|
1633
|
+
var agtCliVersion = true ? "0.19.7" : "dev";
|
|
1634
1634
|
function resolveBrewPath(execFileSync2) {
|
|
1635
1635
|
try {
|
|
1636
1636
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/mcp/index.js
CHANGED
|
@@ -22206,37 +22206,32 @@ function priorityLabel(priority) {
|
|
|
22206
22206
|
return priority === 1 ? "HIGH" : priority === 3 ? "LOW" : "MED";
|
|
22207
22207
|
}
|
|
22208
22208
|
async function discoverApiTools() {
|
|
22209
|
-
if (!
|
|
22210
|
-
const path = `/${encodeURIComponent(AGT_AGENT_CODE_NAME)}/mcp`;
|
|
22211
|
-
const body = { jsonrpc: "2.0", id: 1, method: "tools/list" };
|
|
22209
|
+
if (!AGT_AGENT_ID) return [];
|
|
22212
22210
|
try {
|
|
22213
|
-
const res = await apiPost(
|
|
22211
|
+
const res = await apiPost(
|
|
22212
|
+
"/host/mcp/tools/list",
|
|
22213
|
+
{ agent_id: AGT_AGENT_ID }
|
|
22214
|
+
);
|
|
22214
22215
|
if (res.error) {
|
|
22215
|
-
console.error(`augmented-mcp: tools/list returned error
|
|
22216
|
+
console.error(`augmented-mcp: tools/list returned error: ${res.error}`);
|
|
22216
22217
|
return [];
|
|
22217
22218
|
}
|
|
22218
|
-
return res.
|
|
22219
|
+
return res.tools ?? [];
|
|
22219
22220
|
} catch (err) {
|
|
22220
22221
|
console.error(`augmented-mcp: tools/list failed: ${err.message}`);
|
|
22221
22222
|
return [];
|
|
22222
22223
|
}
|
|
22223
22224
|
}
|
|
22224
22225
|
async function forwardToolCall(toolName, args) {
|
|
22225
|
-
if (!
|
|
22226
|
-
throw new Error("Cannot forward tool call:
|
|
22227
|
-
}
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
|
|
22234
|
-
};
|
|
22235
|
-
const res = await apiPost(path, body);
|
|
22236
|
-
if (res.error) {
|
|
22237
|
-
throw new Error(`API tool ${toolName} returned ${res.error.code}: ${res.error.message}`);
|
|
22238
|
-
}
|
|
22239
|
-
return res.result;
|
|
22226
|
+
if (!AGT_AGENT_ID) {
|
|
22227
|
+
throw new Error("Cannot forward tool call: AGT_AGENT_ID is not set");
|
|
22228
|
+
}
|
|
22229
|
+
return apiPost("/host/mcp/tools/call", {
|
|
22230
|
+
agent_id: AGT_AGENT_ID,
|
|
22231
|
+
name: toolName,
|
|
22232
|
+
arguments: args,
|
|
22233
|
+
run_id: AGT_RUN_ID ?? null
|
|
22234
|
+
});
|
|
22240
22235
|
}
|
|
22241
22236
|
async function registerForwardedApiTools() {
|
|
22242
22237
|
const apiTools = await discoverApiTools();
|
package/package.json
CHANGED
|
File without changes
|