@integrity-labs/agt-cli 0.28.406 → 0.28.407

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.
@@ -45,7 +45,7 @@ import {
45
45
  resolveEffectivePinRaw,
46
46
  safeWriteJsonAtomic,
47
47
  setConfigHash
48
- } from "../chunk-UTFTZ4WD.js";
48
+ } from "../chunk-5YCE2JNY.js";
49
49
  import {
50
50
  getProjectDir as getProjectDir2,
51
51
  getReadyTasks,
@@ -9302,7 +9302,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
9302
9302
  var lastVersionCheckAt = 0;
9303
9303
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
9304
9304
  var lastResponsivenessProbeAt = 0;
9305
- var agtCliVersion = true ? "0.28.406" : "dev";
9305
+ var agtCliVersion = true ? "0.28.407" : "dev";
9306
9306
  function resolveBrewPath(execFileSync2) {
9307
9307
  try {
9308
9308
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -12403,6 +12403,20 @@ async function processAgent(agent, agentStates) {
12403
12403
  }
12404
12404
  let reapNote = "";
12405
12405
  let rotationHandled = true;
12406
+ const EMPTY_INTEGRATIONS_HASH = "\0empty\0";
12407
+ if (integrations.length === 0 && frameworkAdapter.writeIntegrations) {
12408
+ const prevIntHash = agentState.knownIntegrationHashes.get(agent.agent_id);
12409
+ if (prevIntHash !== EMPTY_INTEGRATIONS_HASH) {
12410
+ try {
12411
+ frameworkAdapter.writeIntegrations(agent.code_name, [], agent.agent_id);
12412
+ agentState.knownIntegrationHashes.set(agent.agent_id, EMPTY_INTEGRATIONS_HASH);
12413
+ log(`[ENG-8035] Pruned integration-derived MCP entries for '${agent.code_name}' (integrations.length=0)`);
12414
+ } catch (err) {
12415
+ rotationHandled = false;
12416
+ log(`[ENG-8035] Empty integration prune failed for '${agent.code_name}': ${err.message}`);
12417
+ }
12418
+ }
12419
+ }
12406
12420
  if (integrations.length > 0) {
12407
12421
  const intHash = computeIntegrationsHash(integrations);
12408
12422
  const prevIntHash = agentState.knownIntegrationHashes.get(agent.agent_id);