@integrity-labs/agt-cli 0.28.169 → 0.28.170
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 +4 -4
- package/dist/{chunk-VTRZ643P.js → chunk-25T4GQTU.js} +2 -2
- package/dist/{chunk-UOL4Z6CG.js → chunk-VZP5CIVP.js} +36 -1
- package/dist/{chunk-UOL4Z6CG.js.map → chunk-VZP5CIVP.js.map} +1 -1
- package/dist/{chunk-3DFA7PRA.js → chunk-ZLEYBDHR.js} +3 -3
- package/dist/{claude-pair-runtime-2FELNLHJ.js → claude-pair-runtime-SEFGHAXC.js} +2 -2
- package/dist/lib/manager-worker.js +18 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-KRYOZ7JM.js → persistent-session-2QNOLKCT.js} +3 -3
- package/dist/{responsiveness-probe-GVDKYPLT.js → responsiveness-probe-4JPUYWPB.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-VTRZ643P.js.map → chunk-25T4GQTU.js.map} +0 -0
- /package/dist/{chunk-3DFA7PRA.js.map → chunk-ZLEYBDHR.js.map} +0 -0
- /package/dist/{claude-pair-runtime-2FELNLHJ.js.map → claude-pair-runtime-SEFGHAXC.js.map} +0 -0
- /package/dist/{persistent-session-KRYOZ7JM.js.map → persistent-session-2QNOLKCT.js.map} +0 -0
- /package/dist/{responsiveness-probe-GVDKYPLT.js.map → responsiveness-probe-4JPUYWPB.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-ZLEYBDHR.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEFAULT_FRAMEWORK,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
renderTemplate,
|
|
66
66
|
resolveChannels,
|
|
67
67
|
serializeManifestForSlackCli
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-VZP5CIVP.js";
|
|
69
69
|
|
|
70
70
|
// src/bin/agt.ts
|
|
71
71
|
import { join as join22 } from "path";
|
|
@@ -4778,7 +4778,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4778
4778
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4779
4779
|
import chalk18 from "chalk";
|
|
4780
4780
|
import ora16 from "ora";
|
|
4781
|
-
var cliVersion = true ? "0.28.
|
|
4781
|
+
var cliVersion = true ? "0.28.170" : "dev";
|
|
4782
4782
|
async function fetchLatestVersion() {
|
|
4783
4783
|
const host2 = getHost();
|
|
4784
4784
|
if (!host2) return null;
|
|
@@ -5792,7 +5792,7 @@ function handleError(err) {
|
|
|
5792
5792
|
}
|
|
5793
5793
|
|
|
5794
5794
|
// src/bin/agt.ts
|
|
5795
|
-
var cliVersion2 = true ? "0.28.
|
|
5795
|
+
var cliVersion2 = true ? "0.28.170" : "dev";
|
|
5796
5796
|
var program = new Command();
|
|
5797
5797
|
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");
|
|
5798
5798
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatMissingVar,
|
|
4
4
|
isClaudeFastMode,
|
|
5
5
|
probeMcpEnvSubstitution
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VZP5CIVP.js";
|
|
7
7
|
import {
|
|
8
8
|
reapOrphanChannelMcps
|
|
9
9
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1588,4 +1588,4 @@ export {
|
|
|
1588
1588
|
stopAllSessionsAndWait,
|
|
1589
1589
|
getProjectDir
|
|
1590
1590
|
};
|
|
1591
|
-
//# sourceMappingURL=chunk-
|
|
1591
|
+
//# sourceMappingURL=chunk-25T4GQTU.js.map
|
|
@@ -4754,6 +4754,41 @@ async function probeMcpHttp(config, fetchImpl = fetch) {
|
|
|
4754
4754
|
}
|
|
4755
4755
|
const result = rpc["result"];
|
|
4756
4756
|
const toolCount = Array.isArray(result?.tools) ? result.tools.length : void 0;
|
|
4757
|
+
const testTool = config.connectivityTest?.tool;
|
|
4758
|
+
if (testTool) {
|
|
4759
|
+
const rawArgs = config.connectivityTest?.args;
|
|
4760
|
+
const toolArgs = rawArgs && !Array.isArray(rawArgs) ? rawArgs : {};
|
|
4761
|
+
const callRes = await fetchImpl(config.url, {
|
|
4762
|
+
method: "POST",
|
|
4763
|
+
headers: sessionHeaders,
|
|
4764
|
+
body: JSON.stringify({
|
|
4765
|
+
jsonrpc: "2.0",
|
|
4766
|
+
id: 3,
|
|
4767
|
+
method: "tools/call",
|
|
4768
|
+
params: { name: testTool, arguments: toolArgs }
|
|
4769
|
+
}),
|
|
4770
|
+
signal: AbortSignal.timeout(timeoutMs)
|
|
4771
|
+
});
|
|
4772
|
+
if (!callRes.ok)
|
|
4773
|
+
return httpStatusOutcome(callRes.status, `tools/call ${testTool}`);
|
|
4774
|
+
const callRpc = await parseRpc(callRes, 3);
|
|
4775
|
+
if (!callRpc) {
|
|
4776
|
+
return { status: "down", message: `MCP tools/call ${testTool} returned a non-JSON-RPC response \u2014 not an MCP server` };
|
|
4777
|
+
}
|
|
4778
|
+
if ("error" in callRpc) {
|
|
4779
|
+
const err = callRpc["error"];
|
|
4780
|
+
return { status: "down", message: `MCP tools/call ${testTool} error: ${err?.message ?? "unknown"}` };
|
|
4781
|
+
}
|
|
4782
|
+
const callResult = callRpc["result"];
|
|
4783
|
+
if (callResult?.isError === true) {
|
|
4784
|
+
return { status: "down", message: `MCP tool ${testTool} returned an error result` };
|
|
4785
|
+
}
|
|
4786
|
+
return {
|
|
4787
|
+
status: "ok",
|
|
4788
|
+
message: `${testTool} succeeded`,
|
|
4789
|
+
details: { ...toolCount !== void 0 ? { toolCount } : {}, testTool }
|
|
4790
|
+
};
|
|
4791
|
+
}
|
|
4757
4792
|
return {
|
|
4758
4793
|
status: "ok",
|
|
4759
4794
|
message: toolCount !== void 0 ? `${toolCount} tools` : "reachable",
|
|
@@ -6529,4 +6564,4 @@ export {
|
|
|
6529
6564
|
parseEnvIntegrations,
|
|
6530
6565
|
probeMcpEnvSubstitution
|
|
6531
6566
|
};
|
|
6532
|
-
//# sourceMappingURL=chunk-
|
|
6567
|
+
//# sourceMappingURL=chunk-VZP5CIVP.js.map
|