@integrity-labs/agt-cli 0.28.1235 → 0.28.1237

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.
Files changed (30) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-VGZ2SKEW.js → chunk-6UWT4OVX.js} +3 -3
  3. package/dist/{chunk-GAQFCMBK.js → chunk-CWO5BDXI.js} +2 -2
  4. package/dist/{chunk-WAWLHUCT.js → chunk-IMNBAJ76.js} +2 -2
  5. package/dist/{chunk-ASJCTFLB.js → chunk-MRG3MIJH.js} +5 -5
  6. package/dist/chunk-MRG3MIJH.js.map +1 -0
  7. package/dist/{chunk-I57M57XZ.js → chunk-UBEPEAMN.js} +21 -3
  8. package/dist/{chunk-I57M57XZ.js.map → chunk-UBEPEAMN.js.map} +1 -1
  9. package/dist/{claude-code-updater-GXYP3Y6O.js → claude-code-updater-DD6TTIGM.js} +3 -3
  10. package/dist/{claude-pair-runtime-GEFCVMJA.js → claude-pair-runtime-YLHZQYW6.js} +3 -3
  11. package/dist/lib/manager-worker.js +37 -21
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/mcp/direct-chat-channel.js +20 -2
  14. package/dist/mcp/index.js +20 -2
  15. package/dist/mcp/origami.js +20 -2
  16. package/dist/mcp/slack-channel.js +20 -2
  17. package/dist/mcp/telegram-channel.js +20 -2
  18. package/dist/{persistent-session-VEE36NTM.js → persistent-session-2XBZ3AV3.js} +4 -4
  19. package/dist/{responsiveness-probe-ZPBEQOK5.js → responsiveness-probe-XEQL4LXY.js} +4 -4
  20. package/dist/{session-auth-dead-HOVWVHBB.js → session-auth-dead-UKCQ3SSK.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-ASJCTFLB.js.map +0 -1
  23. /package/dist/{chunk-VGZ2SKEW.js.map → chunk-6UWT4OVX.js.map} +0 -0
  24. /package/dist/{chunk-GAQFCMBK.js.map → chunk-CWO5BDXI.js.map} +0 -0
  25. /package/dist/{chunk-WAWLHUCT.js.map → chunk-IMNBAJ76.js.map} +0 -0
  26. /package/dist/{claude-code-updater-GXYP3Y6O.js.map → claude-code-updater-DD6TTIGM.js.map} +0 -0
  27. /package/dist/{claude-pair-runtime-GEFCVMJA.js.map → claude-pair-runtime-YLHZQYW6.js.map} +0 -0
  28. /package/dist/{persistent-session-VEE36NTM.js.map → persistent-session-2XBZ3AV3.js.map} +0 -0
  29. /package/dist/{responsiveness-probe-ZPBEQOK5.js.map → responsiveness-probe-XEQL4LXY.js.map} +0 -0
  30. /package/dist/{session-auth-dead-HOVWVHBB.js.map → session-auth-dead-UKCQ3SSK.js.map} +0 -0
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-GAQFCMBK.js";
16
+ } from "./chunk-CWO5BDXI.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-I57M57XZ.js";
18
+ import "./chunk-UBEPEAMN.js";
19
19
  import "./chunk-AIUIMEUS.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -34,4 +34,4 @@ export {
34
34
  readsAsNativeInstall,
35
35
  shouldRunClaudeCodeUpdater
36
36
  };
37
- //# sourceMappingURL=claude-code-updater-GXYP3Y6O.js.map
37
+ //# sourceMappingURL=claude-code-updater-DD6TTIGM.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-I57M57XZ.js";
11
+ } from "./chunk-UBEPEAMN.js";
12
12
  import {
13
13
  CLAUDE_CONFIG_DIR_ENV,
14
14
  claudeConfigDirFor,
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
321
321
  return { ok: true };
322
322
  } catch {
323
323
  }
324
- const { resolveClaudeBinary } = await import("./persistent-session-VEE36NTM.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-2XBZ3AV3.js");
325
325
  const claudeBin = resolveClaudeBinary();
326
326
  const pairEnv = {
327
327
  ...process.env,
@@ -836,4 +836,4 @@ export {
836
836
  startClaudePair,
837
837
  submitClaudePairCode
838
838
  };
839
- //# sourceMappingURL=claude-pair-runtime-GEFCVMJA.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-YLHZQYW6.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-ASJCTFLB.js";
88
+ } from "../chunk-MRG3MIJH.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -99,7 +99,7 @@ import {
99
99
  runSafeCleanup,
100
100
  tightestDiskStat,
101
101
  withPackageCacheLock
102
- } from "../chunk-GAQFCMBK.js";
102
+ } from "../chunk-CWO5BDXI.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -167,6 +167,7 @@ import {
167
167
  readPaneLogTail,
168
168
  readProvisionedOpencodeModel,
169
169
  reloadEgressSidecar,
170
+ requiresRemoteMcpToolGate,
170
171
  resetRestartCount,
171
172
  resolveClaudeBinary,
172
173
  resolveContainerMemory,
@@ -194,7 +195,7 @@ import {
194
195
  webFetchBaselineValue,
195
196
  webFetchRestartNeeded,
196
197
  writeEgressAllowlist
197
- } from "../chunk-VGZ2SKEW.js";
198
+ } from "../chunk-6UWT4OVX.js";
198
199
  import {
199
200
  isAgentIdle,
200
201
  isStaleForToday,
@@ -205,7 +206,7 @@ import {
205
206
  subagentActivityAgeSeconds,
206
207
  subagentTranscriptDir,
207
208
  transcriptActivityAgeSeconds
208
- } from "../chunk-WAWLHUCT.js";
209
+ } from "../chunk-IMNBAJ76.js";
209
210
  import {
210
211
  classifyUnanswerablePane,
211
212
  focusedConfirmDialogBlock,
@@ -336,7 +337,7 @@ import {
336
337
  stabiliseResetInstant,
337
338
  sumTranscriptUsageInWindow,
338
339
  summarizeTranscriptActivity
339
- } from "../chunk-I57M57XZ.js";
340
+ } from "../chunk-UBEPEAMN.js";
340
341
  import {
341
342
  CLAUDE_CONFIG_DIR_ENV,
342
343
  claudeConfigDirFor,
@@ -15861,7 +15862,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15861
15862
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15862
15863
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15863
15864
  async function channelInboundActivityAgeSecondsFor(codeName) {
15864
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ZPBEQOK5.js");
15865
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-XEQL4LXY.js");
15865
15866
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15866
15867
  if (newest === null) return null;
15867
15868
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16364,6 +16365,15 @@ var PROMPT_BIND_PROBE_ATTEMPTS = 6;
16364
16365
  function integrationRenderPending(integrations, knownHash) {
16365
16366
  return integrations.length > 0 && computeIntegrationsHash(integrations) !== knownHash;
16366
16367
  }
16368
+ function gateTierTableWithheld(integrations) {
16369
+ return integrations.some(
16370
+ (i) => requiresRemoteMcpToolGate(i.definition_id, i.remoteMcp) && i.toolTiers == null
16371
+ );
16372
+ }
16373
+ function integrationHashDecision(rotationHandled, integrations, intHash) {
16374
+ if (gateTierTableWithheld(integrations)) return { kind: "forget" };
16375
+ return rotationHandled ? { kind: "record", hash: intHash } : { kind: "keep" };
16376
+ }
16367
16377
  async function runAgentSessionToolBindProbes(agent, integrations, projectDir, opts) {
16368
16378
  if (integrations.length === 0) return true;
16369
16379
  const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
@@ -16667,7 +16677,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16667
16677
  var lastVersionCheckAt = 0;
16668
16678
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16669
16679
  var lastResponsivenessProbeAt = 0;
16670
- var agtCliVersion = true ? "0.28.1235" : "dev";
16680
+ var agtCliVersion = true ? "0.28.1237" : "dev";
16671
16681
  function resolveBrewPath(execFileSync3) {
16672
16682
  try {
16673
16683
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18664,7 +18674,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18664
18674
  if (codeNames.length === 0) return;
18665
18675
  void (async () => {
18666
18676
  try {
18667
- const { collectDiagnostics } = await import("../persistent-session-VEE36NTM.js");
18677
+ const { collectDiagnostics } = await import("../persistent-session-2XBZ3AV3.js");
18668
18678
  await api.post("/host/heartbeat", {
18669
18679
  host_id: hostId,
18670
18680
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18807,7 +18817,7 @@ async function pollCycleInner() {
18807
18817
  }
18808
18818
  try {
18809
18819
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18810
- const { collectDiagnostics } = await import("../persistent-session-VEE36NTM.js");
18820
+ const { collectDiagnostics } = await import("../persistent-session-2XBZ3AV3.js");
18811
18821
  const diagCodeNames = [...agentState.persistentSessionAgents];
18812
18822
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18813
18823
  let tailscaleHostname;
@@ -19072,7 +19082,7 @@ async function pollCycleInner() {
19072
19082
  }
19073
19083
  try {
19074
19084
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
19075
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-GXYP3Y6O.js");
19085
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-DD6TTIGM.js");
19076
19086
  const securityFloor = currentSecurityFloor();
19077
19087
  claudeUpdaterInFlight = true;
19078
19088
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -19107,7 +19117,7 @@ async function pollCycleInner() {
19107
19117
  collectPanelessActivityProbes,
19108
19118
  getResponsivenessIntervalMs,
19109
19119
  occupancyQualificationClassifications
19110
- } = await import("../responsiveness-probe-ZPBEQOK5.js");
19120
+ } = await import("../responsiveness-probe-XEQL4LXY.js");
19111
19121
  const probeIntervalMs = getResponsivenessIntervalMs();
19112
19122
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
19113
19123
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -19224,7 +19234,7 @@ async function pollCycleInner() {
19224
19234
  collectResponsivenessProbes,
19225
19235
  livePendingInboundOldestAgeSeconds,
19226
19236
  parkPendingInbound
19227
- } = await import("../responsiveness-probe-ZPBEQOK5.js");
19237
+ } = await import("../responsiveness-probe-XEQL4LXY.js");
19228
19238
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
19229
19239
  const wedgeNow = /* @__PURE__ */ new Date();
19230
19240
  const liveAgents = agentState.persistentSessionAgents;
@@ -19510,7 +19520,7 @@ async function pollCycleInner() {
19510
19520
  }
19511
19521
  }
19512
19522
  );
19513
- const { parkPendingInbound } = await import("../responsiveness-probe-ZPBEQOK5.js");
19523
+ const { parkPendingInbound } = await import("../responsiveness-probe-XEQL4LXY.js");
19514
19524
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19515
19525
  paneFatalStreak.delete(codeName);
19516
19526
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19541,7 +19551,7 @@ async function pollCycleInner() {
19541
19551
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19542
19552
  bindSourceEscalations
19543
19553
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19544
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-VEE36NTM.js");
19554
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-2XBZ3AV3.js");
19545
19555
  const mountConfig = resolveTranscriptMountConfig();
19546
19556
  const liveAgents = agentState.persistentSessionAgents;
19547
19557
  for (const tracked of [
@@ -19706,7 +19716,7 @@ async function pollCycleInner() {
19706
19716
  }
19707
19717
  try {
19708
19718
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19709
- const { probeSessionAuth } = await import("../session-auth-dead-HOVWVHBB.js");
19719
+ const { probeSessionAuth } = await import("../session-auth-dead-UKCQ3SSK.js");
19710
19720
  const observations = [];
19711
19721
  const pendingCacheCommits = [];
19712
19722
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -22179,8 +22189,12 @@ async function processAgent(agent, agentStates, managedToolkits) {
22179
22189
  log(`[hot-reload] Failed to compute / reap affected MCP servers for '${agent.code_name}': ${err.message} \u2014 will retry next tick`);
22180
22190
  }
22181
22191
  }
22182
- if (rotationHandled) {
22183
- agentState.knownIntegrationHashes.set(agent.agent_id, intHash);
22192
+ const hashDecision = integrationHashDecision(rotationHandled, integrations, intHash);
22193
+ if (hashDecision.kind === "record") {
22194
+ agentState.knownIntegrationHashes.set(agent.agent_id, hashDecision.hash);
22195
+ } else if (hashDecision.kind === "forget") {
22196
+ agentState.knownIntegrationHashes.delete(agent.agent_id);
22197
+ log(`[hot-reload] '${agent.code_name}': a tool-gated remote MCP was withheld (no tier table this tick); forgetting the integrations hash, so the next tick re-renders it`);
22184
22198
  }
22185
22199
  }
22186
22200
  }
@@ -24456,7 +24470,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24456
24470
  try {
24457
24471
  const freshId = rotateSessionForWedge(codeName);
24458
24472
  consecutiveWedgeCycles.delete(codeName);
24459
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-ZPBEQOK5.js");
24473
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-XEQL4LXY.js");
24460
24474
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24461
24475
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24462
24476
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24499,7 +24513,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24499
24513
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
24500
24514
  void (async () => {
24501
24515
  try {
24502
- const { collectDiagnostics } = await import("../persistent-session-VEE36NTM.js");
24516
+ const { collectDiagnostics } = await import("../persistent-session-2XBZ3AV3.js");
24503
24517
  await api.post("/host/heartbeat", {
24504
24518
  host_id: hostId,
24505
24519
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24550,7 +24564,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24550
24564
  }
24551
24565
  try {
24552
24566
  const hostId = await getHostId();
24553
- const { collectDiagnostics } = await import("../persistent-session-VEE36NTM.js");
24567
+ const { collectDiagnostics } = await import("../persistent-session-2XBZ3AV3.js");
24554
24568
  await api.post("/host/heartbeat", {
24555
24569
  host_id: hostId,
24556
24570
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25252,7 +25266,7 @@ async function processClaudePairSessions(agents) {
25252
25266
  snapshotPairConfig,
25253
25267
  // ENG-11659: result -> report body + the manager.log line that records it.
25254
25268
  planPairStartReport
25255
- } = await import("../claude-pair-runtime-GEFCVMJA.js");
25269
+ } = await import("../claude-pair-runtime-YLHZQYW6.js");
25256
25270
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25257
25271
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25258
25272
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -26729,9 +26743,11 @@ export {
26729
26743
  fetchManagedToolkits,
26730
26744
  forgetChannelSyncState,
26731
26745
  forgetRealtimeRebindState,
26746
+ gateTierTableWithheld,
26732
26747
  hasRevokedResiduals,
26733
26748
  holdRealtimeRebindInFlight,
26734
26749
  inboundHoldMinutes,
26750
+ integrationHashDecision,
26735
26751
  integrationRenderPending,
26736
26752
  isOlderSemverTuple,
26737
26753
  isPrereleaseVersion,