@integrity-labs/agt-cli 0.28.1301 → 0.28.1303

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 (39) hide show
  1. package/dist/{api-client-GU2U5HSM.js → api-client-CJ4NVRKA.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-LXFCVKHS.js → chunk-745ZIDXQ.js} +2 -2
  4. package/dist/{chunk-2IGE3OML.js → chunk-APFF5NOG.js} +5 -5
  5. package/dist/{chunk-XVGLZ3BT.js → chunk-ECNGHRRK.js} +2 -2
  6. package/dist/{chunk-FPJRE3WT.js → chunk-Q3VZR3R2.js} +3 -3
  7. package/dist/chunk-Q3VZR3R2.js.map +1 -0
  8. package/dist/{chunk-TIKMCV7Q.js → chunk-RRG7FZUK.js} +3 -3
  9. package/dist/{chunk-FQOXKQXI.js → chunk-TNV4IBIG.js} +3 -3
  10. package/dist/{claude-code-updater-DLCZAKW3.js → claude-code-updater-BGGO6PGT.js} +3 -3
  11. package/dist/{claude-pair-runtime-43E2YV2S.js → claude-pair-runtime-RWCMYJCI.js} +3 -3
  12. package/dist/lib/manager-worker.js +21 -21
  13. package/dist/mcp/augmented-admin.js +17951 -2858
  14. package/dist/mcp/augmented-help-kb.js +18225 -3132
  15. package/dist/mcp/augmented-support.js +18225 -3132
  16. package/dist/mcp/direct-chat-channel.js +4568 -1895
  17. package/dist/mcp/index.js +25083 -9990
  18. package/dist/mcp/origami.js +3940 -8166
  19. package/dist/mcp/slack-channel.js +4506 -1833
  20. package/dist/mcp/teams-channel.js +3919 -1246
  21. package/dist/mcp/telegram-channel.js +4484 -1811
  22. package/dist/mcp/whatsapp-channel.js +5263 -2590
  23. package/dist/mcp/xero.js +20274 -5181
  24. package/dist/{persistent-session-RGMMUKVK.js → persistent-session-YSU2FH7E.js} +4 -4
  25. package/dist/{responsiveness-probe-I7HNQGP4.js → responsiveness-probe-TFICV44H.js} +4 -4
  26. package/dist/{session-auth-dead-JVDVNJR3.js → session-auth-dead-DZQ726GB.js} +3 -3
  27. package/package.json +1 -1
  28. package/dist/chunk-FPJRE3WT.js.map +0 -1
  29. /package/dist/{api-client-GU2U5HSM.js.map → api-client-CJ4NVRKA.js.map} +0 -0
  30. /package/dist/{chunk-LXFCVKHS.js.map → chunk-745ZIDXQ.js.map} +0 -0
  31. /package/dist/{chunk-2IGE3OML.js.map → chunk-APFF5NOG.js.map} +0 -0
  32. /package/dist/{chunk-XVGLZ3BT.js.map → chunk-ECNGHRRK.js.map} +0 -0
  33. /package/dist/{chunk-TIKMCV7Q.js.map → chunk-RRG7FZUK.js.map} +0 -0
  34. /package/dist/{chunk-FQOXKQXI.js.map → chunk-TNV4IBIG.js.map} +0 -0
  35. /package/dist/{claude-code-updater-DLCZAKW3.js.map → claude-code-updater-BGGO6PGT.js.map} +0 -0
  36. /package/dist/{claude-pair-runtime-43E2YV2S.js.map → claude-pair-runtime-RWCMYJCI.js.map} +0 -0
  37. /package/dist/{persistent-session-RGMMUKVK.js.map → persistent-session-YSU2FH7E.js.map} +0 -0
  38. /package/dist/{responsiveness-probe-I7HNQGP4.js.map → responsiveness-probe-TFICV44H.js.map} +0 -0
  39. /package/dist/{session-auth-dead-JVDVNJR3.js.map → session-auth-dead-DZQ726GB.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-FPJRE3WT.js";
3
+ } from "./chunk-Q3VZR3R2.js";
4
4
 
5
5
  // src/lib/config.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1301" : "dev";
106
+ var agtCliVersion = true ? "0.28.1303" : "dev";
107
107
  var lastConfigHash = null;
108
108
  function setConfigHash(hash) {
109
109
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -468,4 +468,4 @@ export {
468
468
  api,
469
469
  getHostId
470
470
  };
471
- //# sourceMappingURL=chunk-TIKMCV7Q.js.map
471
+ //# sourceMappingURL=chunk-RRG7FZUK.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-XVGLZ3BT.js";
7
+ } from "./chunk-ECNGHRRK.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -54,7 +54,7 @@ import {
54
54
  remoteMcpConnectionEnvInfix,
55
55
  remoteMcpConnectionLabel,
56
56
  remoteMcpConnectionScopedEnvVar
57
- } from "./chunk-FPJRE3WT.js";
57
+ } from "./chunk-Q3VZR3R2.js";
58
58
  import {
59
59
  CLAUDE_CONFIG_DIR_ENV,
60
60
  approveApiKeyInClaudeConfig,
@@ -6586,4 +6586,4 @@ export {
6586
6586
  stopAllSessionsAndWait,
6587
6587
  getProjectDir
6588
6588
  };
6589
- //# sourceMappingURL=chunk-FQOXKQXI.js.map
6589
+ //# sourceMappingURL=chunk-TNV4IBIG.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-LXFCVKHS.js";
16
+ } from "./chunk-745ZIDXQ.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-FPJRE3WT.js";
18
+ import "./chunk-Q3VZR3R2.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-DLCZAKW3.js.map
37
+ //# sourceMappingURL=claude-code-updater-BGGO6PGT.js.map
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  redactPaneFrame,
12
12
  sanitizeTerminalFrame
13
- } from "./chunk-FPJRE3WT.js";
13
+ } from "./chunk-Q3VZR3R2.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-RGMMUKVK.js");
326
+ const { resolveClaudeBinary } = await import("./persistent-session-YSU2FH7E.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-43E2YV2S.js.map
841
+ //# sourceMappingURL=claude-pair-runtime-RWCMYJCI.js.map
@@ -70,7 +70,7 @@ import {
70
70
  tripClass,
71
71
  writeEtcEnvironment,
72
72
  writeProfileDScript
73
- } from "../chunk-2IGE3OML.js";
73
+ } from "../chunk-APFF5NOG.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-TIKMCV7Q.js";
91
+ } from "../chunk-RRG7FZUK.js";
92
92
  import {
93
93
  BLOCKED_ON_PROMPT_DECISION,
94
94
  CHANNEL_SECRET_ENV_KEYS,
@@ -183,7 +183,7 @@ import {
183
183
  webFetchBaselineValue,
184
184
  webFetchRestartNeeded,
185
185
  writeEgressAllowlist
186
- } from "../chunk-FQOXKQXI.js";
186
+ } from "../chunk-TNV4IBIG.js";
187
187
  import {
188
188
  isAgentIdle,
189
189
  isStaleForToday,
@@ -195,7 +195,7 @@ import {
195
195
  subagentActivityAgeSeconds,
196
196
  subagentTranscriptDir,
197
197
  transcriptActivityAgeSeconds
198
- } from "../chunk-XVGLZ3BT.js";
198
+ } from "../chunk-ECNGHRRK.js";
199
199
  import {
200
200
  classifyUnanswerablePane,
201
201
  focusedConfirmDialogBlock,
@@ -221,7 +221,7 @@ import {
221
221
  runSafeCleanup,
222
222
  tightestDiskStat,
223
223
  withPackageCacheLock
224
- } from "../chunk-LXFCVKHS.js";
224
+ } from "../chunk-745ZIDXQ.js";
225
225
  import {
226
226
  parsePsRows,
227
227
  reapOrphanChannelMcps
@@ -350,7 +350,7 @@ import {
350
350
  stabiliseResetInstant,
351
351
  sumTranscriptUsageInWindow,
352
352
  summarizeTranscriptActivity
353
- } from "../chunk-FPJRE3WT.js";
353
+ } from "../chunk-Q3VZR3R2.js";
354
354
  import {
355
355
  CLAUDE_CONFIG_DIR_ENV,
356
356
  claudeConfigDirFor,
@@ -15774,7 +15774,7 @@ function createFileMigrationReportIO(codeName, log2) {
15774
15774
  };
15775
15775
  }
15776
15776
  var managerHostPost = async (path, body) => {
15777
- const { api: api2, ApiError: ApiError3 } = await import("../api-client-GU2U5HSM.js");
15777
+ const { api: api2, ApiError: ApiError3 } = await import("../api-client-CJ4NVRKA.js");
15778
15778
  try {
15779
15779
  const json = await api2.post(path, body);
15780
15780
  return { status: 200, json };
@@ -17863,7 +17863,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
17863
17863
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
17864
17864
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
17865
17865
  async function channelInboundActivityAgeSecondsFor(codeName) {
17866
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-I7HNQGP4.js");
17866
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-TFICV44H.js");
17867
17867
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
17868
17868
  if (newest === null) return null;
17869
17869
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -18759,7 +18759,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
18759
18759
  var lastVersionCheckAt = 0;
18760
18760
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
18761
18761
  var lastResponsivenessProbeAt = 0;
18762
- var agtCliVersion = true ? "0.28.1301" : "dev";
18762
+ var agtCliVersion = true ? "0.28.1303" : "dev";
18763
18763
  function resolveBrewPath(execFileSync5) {
18764
18764
  try {
18765
18765
  const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -20885,7 +20885,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
20885
20885
  if (codeNames.length === 0) return;
20886
20886
  void (async () => {
20887
20887
  try {
20888
- const { collectDiagnostics } = await import("../persistent-session-RGMMUKVK.js");
20888
+ const { collectDiagnostics } = await import("../persistent-session-YSU2FH7E.js");
20889
20889
  await api.post("/host/heartbeat", {
20890
20890
  host_id: hostId,
20891
20891
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -21028,7 +21028,7 @@ async function pollCycleInner() {
21028
21028
  }
21029
21029
  try {
21030
21030
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
21031
- const { collectDiagnostics } = await import("../persistent-session-RGMMUKVK.js");
21031
+ const { collectDiagnostics } = await import("../persistent-session-YSU2FH7E.js");
21032
21032
  const recordedSinceHeartbeat = new Set(spawnOutcomesSinceHeartbeat.drain());
21033
21033
  const diagCodeNames = heartbeatDiagnosticsCodeNames(agentState.persistentSessionAgents, recordedSinceHeartbeat);
21034
21034
  const heartbeatSpawnOutcomeFor = spawnOutcomeIfRecorded(spawnOutcomeForDiagnostics, recordedSinceHeartbeat);
@@ -21329,7 +21329,7 @@ async function pollCycleInner() {
21329
21329
  }
21330
21330
  try {
21331
21331
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
21332
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-DLCZAKW3.js");
21332
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-BGGO6PGT.js");
21333
21333
  const securityFloor = currentSecurityFloor();
21334
21334
  claudeUpdaterInFlight = true;
21335
21335
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -21364,7 +21364,7 @@ async function pollCycleInner() {
21364
21364
  collectPanelessActivityProbes,
21365
21365
  getResponsivenessIntervalMs,
21366
21366
  occupancyQualificationClassifications
21367
- } = await import("../responsiveness-probe-I7HNQGP4.js");
21367
+ } = await import("../responsiveness-probe-TFICV44H.js");
21368
21368
  const probeIntervalMs = getResponsivenessIntervalMs();
21369
21369
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
21370
21370
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -21481,7 +21481,7 @@ async function pollCycleInner() {
21481
21481
  collectResponsivenessProbes,
21482
21482
  livePendingInboundOldestAgeSeconds,
21483
21483
  parkPendingInbound
21484
- } = await import("../responsiveness-probe-I7HNQGP4.js");
21484
+ } = await import("../responsiveness-probe-TFICV44H.js");
21485
21485
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
21486
21486
  const wedgeNow = /* @__PURE__ */ new Date();
21487
21487
  const liveAgents = agentState.persistentSessionAgents;
@@ -21767,7 +21767,7 @@ async function pollCycleInner() {
21767
21767
  }
21768
21768
  }
21769
21769
  );
21770
- const { parkPendingInbound } = await import("../responsiveness-probe-I7HNQGP4.js");
21770
+ const { parkPendingInbound } = await import("../responsiveness-probe-TFICV44H.js");
21771
21771
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
21772
21772
  paneFatalStreak.delete(codeName);
21773
21773
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -21798,7 +21798,7 @@ async function pollCycleInner() {
21798
21798
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
21799
21799
  bindSourceEscalations
21800
21800
  } = await import("../transcript-mount-health-OHE6IVJV.js");
21801
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-RGMMUKVK.js");
21801
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-YSU2FH7E.js");
21802
21802
  const mountConfig = resolveTranscriptMountConfig();
21803
21803
  const liveAgents = agentState.persistentSessionAgents;
21804
21804
  for (const tracked of [
@@ -21963,7 +21963,7 @@ async function pollCycleInner() {
21963
21963
  }
21964
21964
  try {
21965
21965
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
21966
- const { probeSessionAuth } = await import("../session-auth-dead-JVDVNJR3.js");
21966
+ const { probeSessionAuth } = await import("../session-auth-dead-DZQ726GB.js");
21967
21967
  const observations = [];
21968
21968
  const pendingCacheCommits = [];
21969
21969
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -27095,7 +27095,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
27095
27095
  if (!refreshData) return;
27096
27096
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
27097
27097
  const hostId = await getHostId();
27098
- const parkForRestart = await import("../responsiveness-probe-I7HNQGP4.js").then(
27098
+ const parkForRestart = await import("../responsiveness-probe-TFICV44H.js").then(
27099
27099
  (m) => m.parkPendingInbound,
27100
27100
  (err) => err
27101
27101
  );
@@ -27172,7 +27172,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
27172
27172
  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}`));
27173
27173
  void (async () => {
27174
27174
  try {
27175
- const { collectDiagnostics } = await import("../persistent-session-RGMMUKVK.js");
27175
+ const { collectDiagnostics } = await import("../persistent-session-YSU2FH7E.js");
27176
27176
  await api.post("/host/heartbeat", {
27177
27177
  host_id: hostId,
27178
27178
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -27225,7 +27225,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
27225
27225
  }
27226
27226
  try {
27227
27227
  const hostId = await getHostId();
27228
- const { collectDiagnostics } = await import("../persistent-session-RGMMUKVK.js");
27228
+ const { collectDiagnostics } = await import("../persistent-session-YSU2FH7E.js");
27229
27229
  await api.post("/host/heartbeat", {
27230
27230
  host_id: hostId,
27231
27231
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -28104,7 +28104,7 @@ async function processClaudePairSessions(agents) {
28104
28104
  snapshotPairConfig,
28105
28105
  // ENG-11659: result -> report body + the manager.log line that records it.
28106
28106
  planPairStartReport
28107
- } = await import("../claude-pair-runtime-43E2YV2S.js");
28107
+ } = await import("../claude-pair-runtime-RWCMYJCI.js");
28108
28108
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
28109
28109
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
28110
28110
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);