@integrity-labs/agt-cli 0.28.577 → 0.28.579
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-E3KBX3UW.js → chunk-RC5YRTZU.js} +84 -3
- package/dist/chunk-RC5YRTZU.js.map +1 -0
- package/dist/{chunk-FOMHYTFV.js → chunk-Y3ILQRLM.js} +27 -8
- package/dist/chunk-Y3ILQRLM.js.map +1 -0
- package/dist/{claude-pair-runtime-4C5YXND6.js → claude-pair-runtime-44HJ5UBR.js} +2 -2
- package/dist/lib/manager-worker.js +10 -10
- package/dist/{persistent-session-2ESCLFCK.js → persistent-session-TLF2BQRN.js} +6 -2
- package/dist/{responsiveness-probe-YCUDUCAS.js → responsiveness-probe-XEE6AST5.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-E3KBX3UW.js.map +0 -1
- package/dist/chunk-FOMHYTFV.js.map +0 -1
- /package/dist/{claude-pair-runtime-4C5YXND6.js.map → claude-pair-runtime-44HJ5UBR.js.map} +0 -0
- /package/dist/{persistent-session-2ESCLFCK.js.map → persistent-session-TLF2BQRN.js.map} +0 -0
- /package/dist/{responsiveness-probe-YCUDUCAS.js.map → responsiveness-probe-XEE6AST5.js.map} +0 -0
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveConnectivityProbe,
|
|
47
47
|
worseConnectivityOutcome,
|
|
48
48
|
wrapScheduledTaskPrompt
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RC5YRTZU.js";
|
|
50
50
|
import {
|
|
51
51
|
parsePsRows
|
|
52
52
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -198,9 +198,9 @@ function validateRenderedMcpConfig(config) {
|
|
|
198
198
|
}
|
|
199
199
|
const rules = REQUIRED_ENV_RULES_BY_SERVER[serverKey];
|
|
200
200
|
if (rules) {
|
|
201
|
-
const
|
|
201
|
+
const env2 = entry.env ?? {};
|
|
202
202
|
for (const rule of rules) {
|
|
203
|
-
const value =
|
|
203
|
+
const value = env2[rule.key];
|
|
204
204
|
if (typeof value !== "string" || value.length === 0) {
|
|
205
205
|
errors.push({
|
|
206
206
|
kind: "missing_required_env",
|
|
@@ -218,6 +218,18 @@ function validateRenderedMcpConfig(config) {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
+
const env = entry.env ?? {};
|
|
222
|
+
const agentId = env["AGT_AGENT_ID"];
|
|
223
|
+
if (typeof agentId === "string" && PLACEHOLDER_RE.test(agentId)) {
|
|
224
|
+
const already = errors.some((e) => e.server === serverKey && e.kind === "unexpanded_placeholder");
|
|
225
|
+
if (!already) {
|
|
226
|
+
errors.push({
|
|
227
|
+
kind: "unexpanded_placeholder",
|
|
228
|
+
server: serverKey,
|
|
229
|
+
message: "env.AGT_AGENT_ID contains an unexpanded ${...} placeholder; it must be concrete on every server (ENG-8800: a late substitution reads the pane env, which can carry a neighbouring agent's id)"
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
221
233
|
}
|
|
222
234
|
return errors.length === 0 ? { ok: true } : { ok: false, errors };
|
|
223
235
|
}
|
|
@@ -5959,7 +5971,7 @@ function exchangeFailureKind(err) {
|
|
|
5959
5971
|
}
|
|
5960
5972
|
|
|
5961
5973
|
// src/lib/api-client.ts
|
|
5962
|
-
var agtCliVersion = true ? "0.28.
|
|
5974
|
+
var agtCliVersion = true ? "0.28.579" : "dev";
|
|
5963
5975
|
var lastConfigHash = null;
|
|
5964
5976
|
function setConfigHash(hash) {
|
|
5965
5977
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8270,7 +8282,9 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
|
|
|
8270
8282
|
message: `MCP '${serverKey}' auth unresolved: ${cfg.unresolved.join(", ")}`
|
|
8271
8283
|
};
|
|
8272
8284
|
}
|
|
8273
|
-
return probeMcpHttp(
|
|
8285
|
+
return probeMcpHttp(
|
|
8286
|
+
target.toolName ? { ...cfg, connectivityTest: { tool: target.toolName, ...target.toolArgs ? { args: target.toolArgs } : {} } } : cfg
|
|
8287
|
+
);
|
|
8274
8288
|
},
|
|
8275
8289
|
// ENG-7405: local-STDIO MCP probe. Spawns the toolkit's bundled server with
|
|
8276
8290
|
// the agent's env (the exact command/args/env from `.mcp.json`), handshakes,
|
|
@@ -9202,9 +9216,14 @@ async function executeConnectivityProbe(target, deps = {}) {
|
|
|
9202
9216
|
serverKey: target.mcpServerKey ?? target.definitionId,
|
|
9203
9217
|
definitionId: target.definitionId,
|
|
9204
9218
|
inlineServerEntry: target.inlineServerEntry,
|
|
9205
|
-
...rowFacts
|
|
9219
|
+
...rowFacts,
|
|
9220
|
+
// ENG-7077: the toolkit's prescribed read-only tool, when it declares
|
|
9221
|
+
// one. Mirrors the mcp_stdio branch below — these two legs had drifted,
|
|
9222
|
+
// and only the stdio one could earn `live_call`.
|
|
9223
|
+
toolName: descriptor.probeTool ?? null,
|
|
9224
|
+
toolArgs: descriptor.probeArgs ?? null
|
|
9206
9225
|
});
|
|
9207
|
-
return withEvidence(outcome, "handshake");
|
|
9226
|
+
return withEvidence(outcome, descriptor.probeTool ? "live_call" : "handshake");
|
|
9208
9227
|
}
|
|
9209
9228
|
case "mcp_stdio": {
|
|
9210
9229
|
if (!deps.mcpStdioProbe) return null;
|
|
@@ -9328,4 +9347,4 @@ export {
|
|
|
9328
9347
|
managerInstallSystemUnitCommand,
|
|
9329
9348
|
managerUninstallSystemUnitCommand
|
|
9330
9349
|
};
|
|
9331
|
-
//# sourceMappingURL=chunk-
|
|
9350
|
+
//# sourceMappingURL=chunk-Y3ILQRLM.js.map
|