@integrity-labs/agt-cli 0.28.403 → 0.28.404

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.
@@ -40,11 +40,12 @@ import {
40
40
  provisionStopHook,
41
41
  reapMissingMcpSessions,
42
42
  reapStaleMcpChildren,
43
+ reconstructQuarantinedMcpServerEntry,
43
44
  requireHost,
44
45
  resolveEffectivePinRaw,
45
46
  safeWriteJsonAtomic,
46
47
  setConfigHash
47
- } from "../chunk-VASIOHUO.js";
48
+ } from "../chunk-SW3FOBHR.js";
48
49
  import {
49
50
  getProjectDir as getProjectDir2,
50
51
  getReadyTasks,
@@ -9254,7 +9255,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
9254
9255
  var lastVersionCheckAt = 0;
9255
9256
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
9256
9257
  var lastResponsivenessProbeAt = 0;
9257
- var agtCliVersion = true ? "0.28.403" : "dev";
9258
+ var agtCliVersion = true ? "0.28.404" : "dev";
9258
9259
  function resolveBrewPath(execFileSync2) {
9259
9260
  try {
9260
9261
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -12255,6 +12256,28 @@ async function processAgent(agent, agentStates) {
12255
12256
  const quarantined = await api.post("/host/agent-integrations/quarantined", { agent_id: agent.agent_id });
12256
12257
  const qRows = quarantined.integrations ?? [];
12257
12258
  if (qRows.length > 0) {
12259
+ for (const q of qRows) {
12260
+ if (q.inline_server_entry) continue;
12261
+ try {
12262
+ const entry = reconstructQuarantinedMcpServerEntry(agent, {
12263
+ id: q.id,
12264
+ definition_id: q.definition_id,
12265
+ display_name: q.definition_id,
12266
+ scope: q.scope,
12267
+ auth_type: q.auth_type,
12268
+ credentials: q.credentials,
12269
+ config: q.config ?? {},
12270
+ capabilities: [],
12271
+ ...q.remote_mcp ? { remoteMcp: q.remote_mcp } : {},
12272
+ ...q.stdio_mcp === true ? { stdioMcp: true } : {}
12273
+ });
12274
+ if (entry) q.inline_server_entry = entry;
12275
+ } catch (err) {
12276
+ log(
12277
+ `Quarantined-entry reconstruction failed for '${agent.code_name}' toolkit=${q.definition_id}: ${err.message}`
12278
+ );
12279
+ }
12280
+ }
12258
12281
  probeSet = [...probeSet, ...qRows];
12259
12282
  log(
12260
12283
  `Auto-resume: connectivity-probing ${qRows.length} quarantined integration(s) for '${agent.code_name}'`