@integrity-labs/agt-cli 0.28.288 → 0.28.290
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 +7 -4
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-6J467SLS.js → chunk-QOEYIFPD.js} +11 -8
- package/dist/{chunk-6J467SLS.js.map → chunk-QOEYIFPD.js.map} +1 -1
- package/dist/lib/manager-worker.js +12 -6
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/remote-oauth-proxy.js +116 -40
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
requireHost,
|
|
39
39
|
safeWriteJsonAtomic,
|
|
40
40
|
setConfigHash
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-QOEYIFPD.js";
|
|
42
42
|
import {
|
|
43
43
|
getProjectDir as getProjectDir2,
|
|
44
44
|
getReadyTasks,
|
|
@@ -6621,7 +6621,9 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
|
|
|
6621
6621
|
definitionId: i.definition_id,
|
|
6622
6622
|
sourceType,
|
|
6623
6623
|
authType: i.auth_type,
|
|
6624
|
-
connectivityTest: i.connectivity_test ?? null
|
|
6624
|
+
connectivityTest: i.connectivity_test ?? null,
|
|
6625
|
+
// ENG-7543: target this connection's own .mcp.json server.
|
|
6626
|
+
connectionKey: i.connection_key ?? null
|
|
6625
6627
|
}),
|
|
6626
6628
|
// ENG-6242: forward the prescribed connectivity-test tool to the executor.
|
|
6627
6629
|
connectivity_test: i.connectivity_test ?? null
|
|
@@ -6895,7 +6897,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
6895
6897
|
var lastVersionCheckAt = 0;
|
|
6896
6898
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6897
6899
|
var lastResponsivenessProbeAt = 0;
|
|
6898
|
-
var agtCliVersion = true ? "0.28.
|
|
6900
|
+
var agtCliVersion = true ? "0.28.290" : "dev";
|
|
6899
6901
|
function resolveBrewPath(execFileSync2) {
|
|
6900
6902
|
try {
|
|
6901
6903
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -9618,7 +9620,7 @@ async function processAgent(agent, agentStates) {
|
|
|
9618
9620
|
expectedServerIds.add(serverId);
|
|
9619
9621
|
managedToolkitIdByAgentAndServerId.set(
|
|
9620
9622
|
managedToolkitMapKey(agent.agent_id, serverId),
|
|
9621
|
-
tk.toolkit_id
|
|
9623
|
+
{ toolkitId: tk.toolkit_id, connectionKey: tk.connection_key ?? "default" }
|
|
9622
9624
|
);
|
|
9623
9625
|
const mcpUrl = tk.mcp_url;
|
|
9624
9626
|
const mcpHeaders = tk.mcp_headers;
|
|
@@ -10120,19 +10122,23 @@ async function processAgent(agent, agentStates) {
|
|
|
10120
10122
|
// depend on the API call succeeding. Errors are caught inside
|
|
10121
10123
|
// the .then/.catch chain and logged.
|
|
10122
10124
|
onGiveUp: (codeName, serverKey) => {
|
|
10123
|
-
const
|
|
10125
|
+
const mapping = managedToolkitIdByAgentAndServerId.get(
|
|
10124
10126
|
managedToolkitMapKey(agent.agent_id, serverKey)
|
|
10125
10127
|
);
|
|
10126
|
-
if (!
|
|
10128
|
+
if (!mapping) {
|
|
10127
10129
|
log(
|
|
10128
10130
|
`[mcp-presence-reaper] give-up on '${codeName}:${serverKey}' \u2014 not a managed toolkit (no toolkit_id mapping), skipping integration-health API call`
|
|
10129
10131
|
);
|
|
10130
10132
|
return;
|
|
10131
10133
|
}
|
|
10134
|
+
const { toolkitId, connectionKey } = mapping;
|
|
10132
10135
|
const agentId = agent.agent_id;
|
|
10133
10136
|
api.post("/host/integration-health", {
|
|
10134
10137
|
agent_id: agentId,
|
|
10135
10138
|
toolkit_id: toolkitId,
|
|
10139
|
+
// ENG-7543: scope the mark-unhealthy to the specific connection whose
|
|
10140
|
+
// MCP server gave up, so a dead 2nd mailbox doesn't disable the first.
|
|
10141
|
+
connection_key: connectionKey,
|
|
10136
10142
|
action: "mark_unhealthy",
|
|
10137
10143
|
reason: `mcp-presence-reaper cap (${3} consecutive failed restart cycles) tripped on '${serverKey}'`
|
|
10138
10144
|
}).then((res) => {
|