@integrity-labs/agt-cli 0.27.139 → 0.27.141
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.
|
@@ -12,12 +12,13 @@ import {
|
|
|
12
12
|
getHostId,
|
|
13
13
|
getIntegration,
|
|
14
14
|
provision,
|
|
15
|
+
provisionAutoKanbanProgressHook,
|
|
15
16
|
provisionIsolationHook,
|
|
16
17
|
provisionOrientHook,
|
|
17
18
|
provisionStopHook,
|
|
18
19
|
requireHost,
|
|
19
20
|
safeWriteJsonAtomic
|
|
20
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-BEB6BF3E.js";
|
|
21
22
|
import {
|
|
22
23
|
getProjectDir as getProjectDir2,
|
|
23
24
|
getReadyTasks,
|
|
@@ -1138,7 +1139,12 @@ async function executeConnectivityProbe(target, deps = {}) {
|
|
|
1138
1139
|
const descriptor = resolveConnectivityProbe({
|
|
1139
1140
|
definitionId: target.definitionId,
|
|
1140
1141
|
sourceType: target.sourceType,
|
|
1141
|
-
authType: target.authType
|
|
1142
|
+
authType: target.authType,
|
|
1143
|
+
// ENG-6242: carry the toolkit's connectivity_test override so a managed
|
|
1144
|
+
// descriptor surfaces `probeTool`/`probeArgs` (the prescribed read-only tool)
|
|
1145
|
+
// — without this the hourly probe auto-picked a different tool than the Test
|
|
1146
|
+
// path, the false-RED that flagged every managed Linear install "unreachable".
|
|
1147
|
+
connectivityTest: target.connectivityTest ?? null
|
|
1142
1148
|
});
|
|
1143
1149
|
if (!descriptor.readOnly) {
|
|
1144
1150
|
throw new Error(`Refusing non-read-only probe for ${target.definitionId}`);
|
|
@@ -1165,7 +1171,13 @@ async function executeConnectivityProbe(target, deps = {}) {
|
|
|
1165
1171
|
if (deps.composioToolCallProbe) {
|
|
1166
1172
|
const toolCall = await deps.composioToolCallProbe({
|
|
1167
1173
|
serverKey: target.mcpServerKey ?? target.definitionId,
|
|
1168
|
-
definitionId: target.definitionId
|
|
1174
|
+
definitionId: target.definitionId,
|
|
1175
|
+
// ENG-6242: thread the prescribed tool through to the live tool-call
|
|
1176
|
+
// leg. resolveConnectivityProbe only sets these for managed toolkits
|
|
1177
|
+
// with a stored override; the probe re-validates read-only and falls
|
|
1178
|
+
// back to auto-pick on drift, so a missing/invalid override is safe.
|
|
1179
|
+
toolName: descriptor.probeTool ?? null,
|
|
1180
|
+
toolArgs: descriptor.probeArgs ?? null
|
|
1169
1181
|
});
|
|
1170
1182
|
if (toolCall) outcomes.push(toolCall);
|
|
1171
1183
|
}
|
|
@@ -1219,7 +1231,8 @@ async function runConnectivityProbes(integrations, options = {}) {
|
|
|
1219
1231
|
authType: integ.auth_type ?? null,
|
|
1220
1232
|
credentials: integ.credentials ?? {},
|
|
1221
1233
|
cliBinary: integ.cli_binary,
|
|
1222
|
-
mcpServerKey: integ.mcp_server_key
|
|
1234
|
+
mcpServerKey: integ.mcp_server_key,
|
|
1235
|
+
connectivityTest: integ.connectivity_test ?? null
|
|
1223
1236
|
};
|
|
1224
1237
|
let outcome;
|
|
1225
1238
|
try {
|
|
@@ -4525,7 +4538,12 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
|
|
|
4525
4538
|
const cfg = readMcpHttpServerConfig(projectDir, target.serverKey, probeEnv);
|
|
4526
4539
|
if (!cfg) return null;
|
|
4527
4540
|
if (cfg.unresolved.length > 0) return null;
|
|
4528
|
-
return probeComposioMcpToolCall({
|
|
4541
|
+
return probeComposioMcpToolCall({
|
|
4542
|
+
url: cfg.url,
|
|
4543
|
+
headers: cfg.headers,
|
|
4544
|
+
toolName: target.toolName,
|
|
4545
|
+
toolArgs: target.toolArgs
|
|
4546
|
+
});
|
|
4529
4547
|
}
|
|
4530
4548
|
};
|
|
4531
4549
|
const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
|
|
@@ -4544,7 +4562,9 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
|
|
|
4544
4562
|
// (definition_id === toolkit_id, sanitised: non-alnum → '_', lowercased —
|
|
4545
4563
|
// e.g. 'composio_outlook'). The executor looks this up in .mcp.json; an
|
|
4546
4564
|
// unresolvable key degrades to transient_error, never a false 'down'.
|
|
4547
|
-
mcp_server_key: i.source_type === "managed" || i.source_type === "mcp_server" ? i.definition_id.replace(/[^a-z0-9]/gi, "_").toLowerCase() : void 0
|
|
4565
|
+
mcp_server_key: i.source_type === "managed" || i.source_type === "mcp_server" ? i.definition_id.replace(/[^a-z0-9]/gi, "_").toLowerCase() : void 0,
|
|
4566
|
+
// ENG-6242: forward the prescribed connectivity-test tool to the executor.
|
|
4567
|
+
connectivity_test: i.connectivity_test ?? null
|
|
4548
4568
|
})),
|
|
4549
4569
|
{ probeDeps, intervalMs: intervalSec * 1e3 }
|
|
4550
4570
|
);
|
|
@@ -4738,7 +4758,7 @@ var cachedMaintenanceWindow = null;
|
|
|
4738
4758
|
var lastVersionCheckAt = 0;
|
|
4739
4759
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
4740
4760
|
var lastResponsivenessProbeAt = 0;
|
|
4741
|
-
var agtCliVersion = true ? "0.27.
|
|
4761
|
+
var agtCliVersion = true ? "0.27.141" : "dev";
|
|
4742
4762
|
function resolveBrewPath(execFileSync4) {
|
|
4743
4763
|
try {
|
|
4744
4764
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -9050,6 +9070,11 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash3("sha256").
|
|
|
9050
9070
|
} catch (err) {
|
|
9051
9071
|
log(`[persistent-session] Failed to provision orient hook for '${codeName}': ${err.message}`);
|
|
9052
9072
|
}
|
|
9073
|
+
try {
|
|
9074
|
+
provisionAutoKanbanProgressHook(codeName);
|
|
9075
|
+
} catch (err) {
|
|
9076
|
+
log(`[persistent-session] Failed to provision auto-progress hook for '${codeName}': ${err.message}`);
|
|
9077
|
+
}
|
|
9053
9078
|
const sessionRunResult = await startRun({
|
|
9054
9079
|
agent_id: agent.agent_id,
|
|
9055
9080
|
source_type: "system",
|