@integrity-labs/agt-cli 0.28.1219 → 0.28.1221

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 (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-F5R622EX.js → chunk-QGBIF6QK.js} +3 -3
  3. package/dist/{chunk-MJXBNSJY.js → chunk-R7UGBRUR.js} +12 -1
  4. package/dist/{chunk-MJXBNSJY.js.map → chunk-R7UGBRUR.js.map} +1 -1
  5. package/dist/{chunk-QGMGROLF.js → chunk-U5CKO3OD.js} +5 -5
  6. package/dist/{chunk-QI5C2VCI.js → chunk-WXJXO5TE.js} +2 -2
  7. package/dist/{chunk-HAQXH2J4.js → chunk-YR5PKAAL.js} +2 -2
  8. package/dist/{claude-code-updater-XZTIAQQ3.js → claude-code-updater-FWBF4JTA.js} +3 -3
  9. package/dist/{claude-pair-runtime-N7TZVTF7.js → claude-pair-runtime-6BSR5RTE.js} +3 -3
  10. package/dist/lib/manager-worker.js +26 -20
  11. package/dist/lib/manager-worker.js.map +1 -1
  12. package/dist/mcp/direct-chat-channel.js +11 -0
  13. package/dist/mcp/index.js +208 -25
  14. package/dist/mcp/origami.js +11 -0
  15. package/dist/mcp/slack-channel.js +11 -0
  16. package/dist/mcp/telegram-channel.js +11 -0
  17. package/dist/{persistent-session-NQMAJQF2.js → persistent-session-YMVE4OG5.js} +4 -4
  18. package/dist/{responsiveness-probe-JGMZCQCI.js → responsiveness-probe-DD7LCTAS.js} +4 -4
  19. package/dist/{session-auth-dead-DPMMX7QL.js → session-auth-dead-QZOUWP4O.js} +3 -3
  20. package/package.json +1 -1
  21. /package/dist/{chunk-F5R622EX.js.map → chunk-QGBIF6QK.js.map} +0 -0
  22. /package/dist/{chunk-QGMGROLF.js.map → chunk-U5CKO3OD.js.map} +0 -0
  23. /package/dist/{chunk-QI5C2VCI.js.map → chunk-WXJXO5TE.js.map} +0 -0
  24. /package/dist/{chunk-HAQXH2J4.js.map → chunk-YR5PKAAL.js.map} +0 -0
  25. /package/dist/{claude-code-updater-XZTIAQQ3.js.map → claude-code-updater-FWBF4JTA.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-N7TZVTF7.js.map → claude-pair-runtime-6BSR5RTE.js.map} +0 -0
  27. /package/dist/{persistent-session-NQMAJQF2.js.map → persistent-session-YMVE4OG5.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-JGMZCQCI.js.map → responsiveness-probe-DD7LCTAS.js.map} +0 -0
  29. /package/dist/{session-auth-dead-DPMMX7QL.js.map → session-auth-dead-QZOUWP4O.js.map} +0 -0
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-F5R622EX.js";
19
+ } from "./chunk-QGBIF6QK.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-HAQXH2J4.js";
23
+ } from "./chunk-YR5PKAAL.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  isConsumerTermsDialogVisible,
@@ -93,7 +93,7 @@ import {
93
93
  scanConfigForLiteralSecrets,
94
94
  worseConnectivityOutcome,
95
95
  wrapScheduledTaskPrompt
96
- } from "./chunk-MJXBNSJY.js";
96
+ } from "./chunk-R7UGBRUR.js";
97
97
  import {
98
98
  claudeJsonPathFor,
99
99
  effectiveClaudeJsonPath,
@@ -8084,7 +8084,7 @@ function exchangeFailureKind(err) {
8084
8084
  }
8085
8085
 
8086
8086
  // src/lib/api-client.ts
8087
- var agtCliVersion = true ? "0.28.1219" : "dev";
8087
+ var agtCliVersion = true ? "0.28.1221" : "dev";
8088
8088
  var lastConfigHash = null;
8089
8089
  function setConfigHash(hash) {
8090
8090
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13724,4 +13724,4 @@ export {
13724
13724
  managerInstallSystemUnitCommand,
13725
13725
  managerUninstallSystemUnitCommand
13726
13726
  };
13727
- //# sourceMappingURL=chunk-QGMGROLF.js.map
13727
+ //# sourceMappingURL=chunk-U5CKO3OD.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-MJXBNSJY.js";
7
+ } from "./chunk-R7UGBRUR.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-QI5C2VCI.js.map
725
+ //# sourceMappingURL=chunk-WXJXO5TE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-MJXBNSJY.js";
3
+ } from "./chunk-R7UGBRUR.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -240,4 +240,4 @@ export {
240
240
  peekPreviousSession,
241
241
  readDailySessionPin
242
242
  };
243
- //# sourceMappingURL=chunk-HAQXH2J4.js.map
243
+ //# sourceMappingURL=chunk-YR5PKAAL.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-QI5C2VCI.js";
16
+ } from "./chunk-WXJXO5TE.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-MJXBNSJY.js";
18
+ import "./chunk-R7UGBRUR.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-XZTIAQQ3.js.map
37
+ //# sourceMappingURL=claude-code-updater-FWBF4JTA.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-MJXBNSJY.js";
11
+ } from "./chunk-R7UGBRUR.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-NQMAJQF2.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-YMVE4OG5.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-N7TZVTF7.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-6BSR5RTE.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-QGMGROLF.js";
88
+ } from "../chunk-U5CKO3OD.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-QI5C2VCI.js";
102
+ } from "../chunk-WXJXO5TE.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -192,7 +192,7 @@ import {
192
192
  webFetchBaselineValue,
193
193
  webFetchRestartNeeded,
194
194
  writeEgressAllowlist
195
- } from "../chunk-F5R622EX.js";
195
+ } from "../chunk-QGBIF6QK.js";
196
196
  import {
197
197
  isAgentIdle,
198
198
  isStaleForToday,
@@ -202,7 +202,7 @@ import {
202
202
  sessionTranscriptDir,
203
203
  subagentActivityAgeSeconds,
204
204
  transcriptActivityAgeSeconds
205
- } from "../chunk-HAQXH2J4.js";
205
+ } from "../chunk-YR5PKAAL.js";
206
206
  import {
207
207
  classifyUnanswerablePane,
208
208
  focusedConfirmDialogBlock,
@@ -330,7 +330,7 @@ import {
330
330
  stabiliseResetInstant,
331
331
  sumTranscriptUsageInWindow,
332
332
  summarizeTranscriptActivity
333
- } from "../chunk-MJXBNSJY.js";
333
+ } from "../chunk-R7UGBRUR.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -2398,6 +2398,9 @@ var FORWARDED_TOOLS_REPORT_FILENAME = "forwarded-tools.json";
2398
2398
  function forwardedToolsReportPath(agentDir) {
2399
2399
  return join6(agentDir, FORWARDED_TOOLS_REPORT_FILENAME);
2400
2400
  }
2401
+ function stringList(value) {
2402
+ return Array.isArray(value) && value.every((n) => typeof n === "string");
2403
+ }
2401
2404
  function readForwardedToolsReport(agentDir) {
2402
2405
  let raw;
2403
2406
  try {
@@ -2429,7 +2432,10 @@ function readForwardedToolsReport(agentDir) {
2429
2432
  registered: r["registered"],
2430
2433
  skipped: r["skipped"],
2431
2434
  failed: r["failed"],
2432
- at: r["at"]
2435
+ at: r["at"],
2436
+ ...r["discovery"] === "ok" || r["discovery"] === "degraded" || r["discovery"] === "failed" ? { discovery: r["discovery"] } : {},
2437
+ ...stringList(r["degradedBrokers"]) ? { degradedBrokers: r["degradedBrokers"] } : {},
2438
+ ...stringList(r["lateRegistered"]) ? { lateRegistered: r["lateRegistered"] } : {}
2433
2439
  };
2434
2440
  }
2435
2441
 
@@ -15650,7 +15656,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15650
15656
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15651
15657
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15652
15658
  async function channelInboundActivityAgeSecondsFor(codeName) {
15653
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JGMZCQCI.js");
15659
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-DD7LCTAS.js");
15654
15660
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15655
15661
  if (newest === null) return null;
15656
15662
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16449,7 +16455,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16449
16455
  var lastVersionCheckAt = 0;
16450
16456
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16451
16457
  var lastResponsivenessProbeAt = 0;
16452
- var agtCliVersion = true ? "0.28.1219" : "dev";
16458
+ var agtCliVersion = true ? "0.28.1221" : "dev";
16453
16459
  function resolveBrewPath(execFileSync3) {
16454
16460
  try {
16455
16461
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18431,7 +18437,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18431
18437
  if (codeNames.length === 0) return;
18432
18438
  void (async () => {
18433
18439
  try {
18434
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
18440
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
18435
18441
  await api.post("/host/heartbeat", {
18436
18442
  host_id: hostId,
18437
18443
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18574,7 +18580,7 @@ async function pollCycleInner() {
18574
18580
  }
18575
18581
  try {
18576
18582
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18577
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
18583
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
18578
18584
  const diagCodeNames = [...agentState.persistentSessionAgents];
18579
18585
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18580
18586
  let tailscaleHostname;
@@ -18839,7 +18845,7 @@ async function pollCycleInner() {
18839
18845
  }
18840
18846
  try {
18841
18847
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18842
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-XZTIAQQ3.js");
18848
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-FWBF4JTA.js");
18843
18849
  const securityFloor = currentSecurityFloor();
18844
18850
  claudeUpdaterInFlight = true;
18845
18851
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18874,7 +18880,7 @@ async function pollCycleInner() {
18874
18880
  collectPanelessActivityProbes,
18875
18881
  getResponsivenessIntervalMs,
18876
18882
  occupancyQualificationClassifications
18877
- } = await import("../responsiveness-probe-JGMZCQCI.js");
18883
+ } = await import("../responsiveness-probe-DD7LCTAS.js");
18878
18884
  const probeIntervalMs = getResponsivenessIntervalMs();
18879
18885
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18880
18886
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18991,7 +18997,7 @@ async function pollCycleInner() {
18991
18997
  collectResponsivenessProbes,
18992
18998
  livePendingInboundOldestAgeSeconds,
18993
18999
  parkPendingInbound
18994
- } = await import("../responsiveness-probe-JGMZCQCI.js");
19000
+ } = await import("../responsiveness-probe-DD7LCTAS.js");
18995
19001
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18996
19002
  const wedgeNow = /* @__PURE__ */ new Date();
18997
19003
  const liveAgents = agentState.persistentSessionAgents;
@@ -19277,7 +19283,7 @@ async function pollCycleInner() {
19277
19283
  }
19278
19284
  }
19279
19285
  );
19280
- const { parkPendingInbound } = await import("../responsiveness-probe-JGMZCQCI.js");
19286
+ const { parkPendingInbound } = await import("../responsiveness-probe-DD7LCTAS.js");
19281
19287
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19282
19288
  paneFatalStreak.delete(codeName);
19283
19289
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19308,7 +19314,7 @@ async function pollCycleInner() {
19308
19314
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19309
19315
  bindSourceEscalations
19310
19316
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19311
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NQMAJQF2.js");
19317
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-YMVE4OG5.js");
19312
19318
  const mountConfig = resolveTranscriptMountConfig();
19313
19319
  const liveAgents = agentState.persistentSessionAgents;
19314
19320
  for (const tracked of [
@@ -19473,7 +19479,7 @@ async function pollCycleInner() {
19473
19479
  }
19474
19480
  try {
19475
19481
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19476
- const { probeSessionAuth } = await import("../session-auth-dead-DPMMX7QL.js");
19482
+ const { probeSessionAuth } = await import("../session-auth-dead-QZOUWP4O.js");
19477
19483
  const observations = [];
19478
19484
  const pendingCacheCommits = [];
19479
19485
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24204,7 +24210,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24204
24210
  try {
24205
24211
  const freshId = rotateSessionForWedge(codeName);
24206
24212
  consecutiveWedgeCycles.delete(codeName);
24207
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-JGMZCQCI.js");
24213
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-DD7LCTAS.js");
24208
24214
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24209
24215
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24210
24216
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24247,7 +24253,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24247
24253
  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}`));
24248
24254
  void (async () => {
24249
24255
  try {
24250
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
24256
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
24251
24257
  await api.post("/host/heartbeat", {
24252
24258
  host_id: hostId,
24253
24259
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24298,7 +24304,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24298
24304
  }
24299
24305
  try {
24300
24306
  const hostId = await getHostId();
24301
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
24307
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
24302
24308
  await api.post("/host/heartbeat", {
24303
24309
  host_id: hostId,
24304
24310
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25000,7 +25006,7 @@ async function processClaudePairSessions(agents) {
25000
25006
  snapshotPairConfig,
25001
25007
  // ENG-11659: result -> report body + the manager.log line that records it.
25002
25008
  planPairStartReport
25003
- } = await import("../claude-pair-runtime-N7TZVTF7.js");
25009
+ } = await import("../claude-pair-runtime-6BSR5RTE.js");
25004
25010
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25005
25011
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25006
25012
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);