@integrity-labs/agt-cli 0.28.1275 → 0.28.1276

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 (33) hide show
  1. package/dist/{api-client-5S4JHNCY.js → api-client-LXSFEHBG.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-7PIMV2ID.js → chunk-2JILRR4Y.js} +51 -8
  4. package/dist/{chunk-7PIMV2ID.js.map → chunk-2JILRR4Y.js.map} +1 -1
  5. package/dist/{chunk-4UXZAUEY.js → chunk-C3NM6OTP.js} +2 -2
  6. package/dist/{chunk-BSVQWPBC.js → chunk-HISRTLZ3.js} +3 -3
  7. package/dist/{chunk-7D6EMIHG.js → chunk-IDLNB6GR.js} +3 -3
  8. package/dist/{chunk-GRWU34ID.js → chunk-IEXBHI4X.js} +2 -2
  9. package/dist/{chunk-V2BS3IN3.js → chunk-ZQVYTNLA.js} +52 -1
  10. package/dist/{chunk-V2BS3IN3.js.map → chunk-ZQVYTNLA.js.map} +1 -1
  11. package/dist/{claude-code-updater-EC3JMSNJ.js → claude-code-updater-GADHFGSY.js} +3 -3
  12. package/dist/{claude-pair-runtime-NPBFKJSQ.js → claude-pair-runtime-TUWLJ7TS.js} +3 -3
  13. package/dist/lib/manager-worker.js +22 -21
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +51 -0
  16. package/dist/mcp/index.js +282 -10
  17. package/dist/mcp/origami.js +51 -0
  18. package/dist/mcp/slack-channel.js +51 -0
  19. package/dist/mcp/telegram-channel.js +51 -0
  20. package/dist/{persistent-session-EJUOBWXJ.js → persistent-session-VII4LBJ2.js} +4 -4
  21. package/dist/{responsiveness-probe-GBYZCGXX.js → responsiveness-probe-GX3TEW2E.js} +4 -4
  22. package/dist/{session-auth-dead-4U6NDCWN.js → session-auth-dead-7NXTFGDV.js} +3 -3
  23. package/package.json +1 -1
  24. /package/dist/{api-client-5S4JHNCY.js.map → api-client-LXSFEHBG.js.map} +0 -0
  25. /package/dist/{chunk-4UXZAUEY.js.map → chunk-C3NM6OTP.js.map} +0 -0
  26. /package/dist/{chunk-BSVQWPBC.js.map → chunk-HISRTLZ3.js.map} +0 -0
  27. /package/dist/{chunk-7D6EMIHG.js.map → chunk-IDLNB6GR.js.map} +0 -0
  28. /package/dist/{chunk-GRWU34ID.js.map → chunk-IEXBHI4X.js.map} +0 -0
  29. /package/dist/{claude-code-updater-EC3JMSNJ.js.map → claude-code-updater-GADHFGSY.js.map} +0 -0
  30. /package/dist/{claude-pair-runtime-NPBFKJSQ.js.map → claude-pair-runtime-TUWLJ7TS.js.map} +0 -0
  31. /package/dist/{persistent-session-EJUOBWXJ.js.map → persistent-session-VII4LBJ2.js.map} +0 -0
  32. /package/dist/{responsiveness-probe-GBYZCGXX.js.map → responsiveness-probe-GX3TEW2E.js.map} +0 -0
  33. /package/dist/{session-auth-dead-4U6NDCWN.js.map → session-auth-dead-7NXTFGDV.js.map} +0 -0
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-4UXZAUEY.js";
16
+ } from "./chunk-C3NM6OTP.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-V2BS3IN3.js";
18
+ import "./chunk-ZQVYTNLA.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-EC3JMSNJ.js.map
37
+ //# sourceMappingURL=claude-code-updater-GADHFGSY.js.map
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  redactPaneFrame,
12
12
  sanitizeTerminalFrame
13
- } from "./chunk-V2BS3IN3.js";
13
+ } from "./chunk-ZQVYTNLA.js";
14
14
  import {
15
15
  CLAUDE_CONFIG_DIR_ENV,
16
16
  claudeConfigDirFor,
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
323
323
  return { ok: true };
324
324
  } catch {
325
325
  }
326
- const { resolveClaudeBinary } = await import("./persistent-session-EJUOBWXJ.js");
326
+ const { resolveClaudeBinary } = await import("./persistent-session-VII4LBJ2.js");
327
327
  const claudeBin = resolveClaudeBinary();
328
328
  const pairEnv = {
329
329
  ...process.env,
@@ -838,4 +838,4 @@ export {
838
838
  startClaudePair,
839
839
  submitClaudePairCode
840
840
  };
841
- //# sourceMappingURL=claude-pair-runtime-NPBFKJSQ.js.map
841
+ //# sourceMappingURL=claude-pair-runtime-TUWLJ7TS.js.map
@@ -70,7 +70,7 @@ import {
70
70
  tripClass,
71
71
  writeEtcEnvironment,
72
72
  writeProfileDScript
73
- } from "../chunk-7PIMV2ID.js";
73
+ } from "../chunk-2JILRR4Y.js";
74
74
  import {
75
75
  ApiError,
76
76
  adoptHostKeyInProcess,
@@ -88,7 +88,7 @@ import {
88
88
  probeHostKey,
89
89
  requireHost,
90
90
  setConfigHash
91
- } from "../chunk-BSVQWPBC.js";
91
+ } from "../chunk-HISRTLZ3.js";
92
92
  import {
93
93
  BLOCKED_ON_PROMPT_DECISION,
94
94
  CHANNEL_SECRET_ENV_KEYS,
@@ -179,7 +179,7 @@ import {
179
179
  webFetchBaselineValue,
180
180
  webFetchRestartNeeded,
181
181
  writeEgressAllowlist
182
- } from "../chunk-7D6EMIHG.js";
182
+ } from "../chunk-IDLNB6GR.js";
183
183
  import {
184
184
  isAgentIdle,
185
185
  isStaleForToday,
@@ -190,7 +190,7 @@ import {
190
190
  subagentActivityAgeSeconds,
191
191
  subagentTranscriptDir,
192
192
  transcriptActivityAgeSeconds
193
- } from "../chunk-GRWU34ID.js";
193
+ } from "../chunk-IEXBHI4X.js";
194
194
  import {
195
195
  classifyUnanswerablePane,
196
196
  focusedConfirmDialogBlock,
@@ -216,7 +216,7 @@ import {
216
216
  runSafeCleanup,
217
217
  tightestDiskStat,
218
218
  withPackageCacheLock
219
- } from "../chunk-4UXZAUEY.js";
219
+ } from "../chunk-C3NM6OTP.js";
220
220
  import {
221
221
  parsePsRows,
222
222
  reapOrphanChannelMcps
@@ -345,7 +345,7 @@ import {
345
345
  stabiliseResetInstant,
346
346
  sumTranscriptUsageInWindow,
347
347
  summarizeTranscriptActivity
348
- } from "../chunk-V2BS3IN3.js";
348
+ } from "../chunk-ZQVYTNLA.js";
349
349
  import {
350
350
  CLAUDE_CONFIG_DIR_ENV,
351
351
  claudeConfigDirFor,
@@ -15143,7 +15143,7 @@ function createFileMigrationReportIO(codeName, log2) {
15143
15143
  };
15144
15144
  }
15145
15145
  var managerHostPost = async (path, body) => {
15146
- const { api: api2, ApiError: ApiError3 } = await import("../api-client-5S4JHNCY.js");
15146
+ const { api: api2, ApiError: ApiError3 } = await import("../api-client-LXSFEHBG.js");
15147
15147
  try {
15148
15148
  const json = await api2.post(path, body);
15149
15149
  return { status: 200, json };
@@ -17194,7 +17194,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
17194
17194
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
17195
17195
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
17196
17196
  async function channelInboundActivityAgeSecondsFor(codeName) {
17197
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-GBYZCGXX.js");
17197
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-GX3TEW2E.js");
17198
17198
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
17199
17199
  if (newest === null) return null;
17200
17200
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -18075,7 +18075,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
18075
18075
  var lastVersionCheckAt = 0;
18076
18076
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
18077
18077
  var lastResponsivenessProbeAt = 0;
18078
- var agtCliVersion = true ? "0.28.1275" : "dev";
18078
+ var agtCliVersion = true ? "0.28.1276" : "dev";
18079
18079
  function resolveBrewPath(execFileSync5) {
18080
18080
  try {
18081
18081
  const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -20084,7 +20084,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
20084
20084
  if (codeNames.length === 0) return;
20085
20085
  void (async () => {
20086
20086
  try {
20087
- const { collectDiagnostics } = await import("../persistent-session-EJUOBWXJ.js");
20087
+ const { collectDiagnostics } = await import("../persistent-session-VII4LBJ2.js");
20088
20088
  await api.post("/host/heartbeat", {
20089
20089
  host_id: hostId,
20090
20090
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -20227,7 +20227,7 @@ async function pollCycleInner() {
20227
20227
  }
20228
20228
  try {
20229
20229
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
20230
- const { collectDiagnostics } = await import("../persistent-session-EJUOBWXJ.js");
20230
+ const { collectDiagnostics } = await import("../persistent-session-VII4LBJ2.js");
20231
20231
  const diagCodeNames = [...agentState.persistentSessionAgents];
20232
20232
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
20233
20233
  let tailscaleHostname;
@@ -20443,6 +20443,7 @@ async function pollCycleInner() {
20443
20443
  }
20444
20444
  hostFlagStore().applyNotifyDispatchByAgent(hbResp?.notify_dispatch_by_agent);
20445
20445
  hostFlagStore().applyBooleanFlagsByAgent(hbResp?.feature_flags_by_agent, hbResp?.feature_flags_by_agent_evaluated);
20446
+ hostFlagStore().applyToolCatalogVersion(hbResp?.tool_catalog_version);
20446
20447
  recordScratchHoldsFromHeartbeat({
20447
20448
  holdsDir: SCRATCH_HOLDS_DIR(),
20448
20449
  evaluatedAgentIds: hbResp?.feature_flags_by_agent_evaluated,
@@ -20498,7 +20499,7 @@ async function pollCycleInner() {
20498
20499
  }
20499
20500
  try {
20500
20501
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
20501
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-EC3JMSNJ.js");
20502
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-GADHFGSY.js");
20502
20503
  const securityFloor = currentSecurityFloor();
20503
20504
  claudeUpdaterInFlight = true;
20504
20505
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -20533,7 +20534,7 @@ async function pollCycleInner() {
20533
20534
  collectPanelessActivityProbes,
20534
20535
  getResponsivenessIntervalMs,
20535
20536
  occupancyQualificationClassifications
20536
- } = await import("../responsiveness-probe-GBYZCGXX.js");
20537
+ } = await import("../responsiveness-probe-GX3TEW2E.js");
20537
20538
  const probeIntervalMs = getResponsivenessIntervalMs();
20538
20539
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
20539
20540
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -20650,7 +20651,7 @@ async function pollCycleInner() {
20650
20651
  collectResponsivenessProbes,
20651
20652
  livePendingInboundOldestAgeSeconds,
20652
20653
  parkPendingInbound
20653
- } = await import("../responsiveness-probe-GBYZCGXX.js");
20654
+ } = await import("../responsiveness-probe-GX3TEW2E.js");
20654
20655
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
20655
20656
  const wedgeNow = /* @__PURE__ */ new Date();
20656
20657
  const liveAgents = agentState.persistentSessionAgents;
@@ -20936,7 +20937,7 @@ async function pollCycleInner() {
20936
20937
  }
20937
20938
  }
20938
20939
  );
20939
- const { parkPendingInbound } = await import("../responsiveness-probe-GBYZCGXX.js");
20940
+ const { parkPendingInbound } = await import("../responsiveness-probe-GX3TEW2E.js");
20940
20941
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
20941
20942
  paneFatalStreak.delete(codeName);
20942
20943
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -20967,7 +20968,7 @@ async function pollCycleInner() {
20967
20968
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
20968
20969
  bindSourceEscalations
20969
20970
  } = await import("../transcript-mount-health-OHE6IVJV.js");
20970
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-EJUOBWXJ.js");
20971
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-VII4LBJ2.js");
20971
20972
  const mountConfig = resolveTranscriptMountConfig();
20972
20973
  const liveAgents = agentState.persistentSessionAgents;
20973
20974
  for (const tracked of [
@@ -21132,7 +21133,7 @@ async function pollCycleInner() {
21132
21133
  }
21133
21134
  try {
21134
21135
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
21135
- const { probeSessionAuth } = await import("../session-auth-dead-4U6NDCWN.js");
21136
+ const { probeSessionAuth } = await import("../session-auth-dead-7NXTFGDV.js");
21136
21137
  const observations = [];
21137
21138
  const pendingCacheCommits = [];
21138
21139
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -26200,7 +26201,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
26200
26201
  if (!refreshData) return;
26201
26202
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
26202
26203
  const hostId = await getHostId();
26203
- const parkForRestart = await import("../responsiveness-probe-GBYZCGXX.js").then(
26204
+ const parkForRestart = await import("../responsiveness-probe-GX3TEW2E.js").then(
26204
26205
  (m) => m.parkPendingInbound,
26205
26206
  (err) => err
26206
26207
  );
@@ -26277,7 +26278,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
26277
26278
  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}`));
26278
26279
  void (async () => {
26279
26280
  try {
26280
- const { collectDiagnostics } = await import("../persistent-session-EJUOBWXJ.js");
26281
+ const { collectDiagnostics } = await import("../persistent-session-VII4LBJ2.js");
26281
26282
  await api.post("/host/heartbeat", {
26282
26283
  host_id: hostId,
26283
26284
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -26330,7 +26331,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
26330
26331
  }
26331
26332
  try {
26332
26333
  const hostId = await getHostId();
26333
- const { collectDiagnostics } = await import("../persistent-session-EJUOBWXJ.js");
26334
+ const { collectDiagnostics } = await import("../persistent-session-VII4LBJ2.js");
26334
26335
  await api.post("/host/heartbeat", {
26335
26336
  host_id: hostId,
26336
26337
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -27057,7 +27058,7 @@ async function processClaudePairSessions(agents) {
27057
27058
  snapshotPairConfig,
27058
27059
  // ENG-11659: result -> report body + the manager.log line that records it.
27059
27060
  planPairStartReport
27060
- } = await import("../claude-pair-runtime-NPBFKJSQ.js");
27061
+ } = await import("../claude-pair-runtime-TUWLJ7TS.js");
27061
27062
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
27062
27063
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
27063
27064
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);