@integrity-labs/agt-cli 0.28.1083 → 0.28.1085

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 (24) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-ELRALWJ7.js → chunk-36PNRFZD.js} +168 -27
  3. package/dist/chunk-36PNRFZD.js.map +1 -0
  4. package/dist/{chunk-44254DEU.js → chunk-672WJ7K3.js} +2 -2
  5. package/dist/{chunk-BIR5WVM4.js → chunk-QJHOJMYV.js} +4 -4
  6. package/dist/{claude-pair-runtime-U6LVU5CI.js → claude-pair-runtime-P5RI3SNT.js} +2 -2
  7. package/dist/lib/manager-worker.js +25 -17
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +135 -1
  10. package/dist/mcp/index.js +135 -1
  11. package/dist/mcp/origami.js +135 -1
  12. package/dist/mcp/slack-channel.js +135 -1
  13. package/dist/mcp/telegram-channel.js +135 -1
  14. package/dist/{persistent-session-UHSU52GZ.js → persistent-session-V2TJ6HPL.js} +3 -3
  15. package/dist/{responsiveness-probe-PKMKC2VS.js → responsiveness-probe-2JSH5Y3H.js} +3 -3
  16. package/dist/{session-auth-dead-KOZOXQOP.js → session-auth-dead-WUMWF4GK.js} +2 -2
  17. package/package.json +1 -1
  18. package/dist/chunk-ELRALWJ7.js.map +0 -1
  19. /package/dist/{chunk-44254DEU.js.map → chunk-672WJ7K3.js.map} +0 -0
  20. /package/dist/{chunk-BIR5WVM4.js.map → chunk-QJHOJMYV.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-U6LVU5CI.js.map → claude-pair-runtime-P5RI3SNT.js.map} +0 -0
  22. /package/dist/{persistent-session-UHSU52GZ.js.map → persistent-session-V2TJ6HPL.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-PKMKC2VS.js.map → responsiveness-probe-2JSH5Y3H.js.map} +0 -0
  24. /package/dist/{session-auth-dead-KOZOXQOP.js.map → session-auth-dead-WUMWF4GK.js.map} +0 -0
@@ -24,7 +24,7 @@ import {
24
24
  rotateDailySession,
25
25
  sessionFileExists,
26
26
  todayLocalIso
27
- } from "./chunk-ELRALWJ7.js";
27
+ } from "./chunk-36PNRFZD.js";
28
28
  import {
29
29
  classifyUnanswerablePane,
30
30
  findUsageLimitResetHint,
@@ -6113,4 +6113,4 @@ export {
6113
6113
  stopAllSessionsAndWait,
6114
6114
  getProjectDir
6115
6115
  };
6116
- //# sourceMappingURL=chunk-44254DEU.js.map
6116
+ //# sourceMappingURL=chunk-672WJ7K3.js.map
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-44254DEU.js";
19
+ } from "./chunk-672WJ7K3.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -79,7 +79,7 @@ import {
79
79
  sessionTranscriptDir,
80
80
  worseConnectivityOutcome,
81
81
  wrapScheduledTaskPrompt
82
- } from "./chunk-ELRALWJ7.js";
82
+ } from "./chunk-36PNRFZD.js";
83
83
  import {
84
84
  classifyUnanswerablePane,
85
85
  isConsumerTermsDialogVisible,
@@ -7122,7 +7122,7 @@ function exchangeFailureKind(err) {
7122
7122
  }
7123
7123
 
7124
7124
  // src/lib/api-client.ts
7125
- var agtCliVersion = true ? "0.28.1083" : "dev";
7125
+ var agtCliVersion = true ? "0.28.1085" : "dev";
7126
7126
  var lastConfigHash = null;
7127
7127
  function setConfigHash(hash) {
7128
7128
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12095,4 +12095,4 @@ export {
12095
12095
  managerInstallSystemUnitCommand,
12096
12096
  managerUninstallSystemUnitCommand
12097
12097
  };
12098
- //# sourceMappingURL=chunk-BIR5WVM4.js.map
12098
+ //# sourceMappingURL=chunk-QJHOJMYV.js.map
@@ -266,7 +266,7 @@ async function spawnPairSession(session) {
266
266
  return { ok: true };
267
267
  } catch {
268
268
  }
269
- const { resolveClaudeBinary } = await import("./persistent-session-UHSU52GZ.js");
269
+ const { resolveClaudeBinary } = await import("./persistent-session-V2TJ6HPL.js");
270
270
  const claudeBin = resolveClaudeBinary();
271
271
  const pairEnv = {
272
272
  ...process.env,
@@ -734,4 +734,4 @@ export {
734
734
  startClaudePair,
735
735
  submitClaudePairCode
736
736
  };
737
- //# sourceMappingURL=claude-pair-runtime-U6LVU5CI.js.map
737
+ //# sourceMappingURL=claude-pair-runtime-P5RI3SNT.js.map
@@ -67,7 +67,7 @@ import {
67
67
  safeWriteJsonAtomic,
68
68
  setConfigHash,
69
69
  tripClass
70
- } from "../chunk-BIR5WVM4.js";
70
+ } from "../chunk-QJHOJMYV.js";
71
71
  import {
72
72
  getProjectDir as getProjectDir2,
73
73
  getReadyTasks,
@@ -154,7 +154,7 @@ import {
154
154
  webFetchBaselineValue,
155
155
  webFetchRestartNeeded,
156
156
  writeEgressAllowlist
157
- } from "../chunk-44254DEU.js";
157
+ } from "../chunk-672WJ7K3.js";
158
158
  import {
159
159
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
160
160
  AnchorSessionClient,
@@ -254,6 +254,7 @@ import {
254
254
  resolveAgentTimezone,
255
255
  resolveAvatarEnvUrl,
256
256
  resolveChannels,
257
+ resolveCrossTeamPeerIntraOrg,
257
258
  resolveDmTarget,
258
259
  scrubPreservingIdentifiers,
259
260
  senderPolicyIsEnforcedOn,
@@ -263,7 +264,7 @@ import {
263
264
  subagentActivityAgeSeconds,
264
265
  sumTranscriptUsageInWindow,
265
266
  transcriptActivityAgeSeconds
266
- } from "../chunk-ELRALWJ7.js";
267
+ } from "../chunk-36PNRFZD.js";
267
268
  import {
268
269
  classifyUnanswerablePane,
269
270
  paneRemedy
@@ -14141,7 +14142,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
14141
14142
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
14142
14143
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
14143
14144
  async function channelInboundActivityAgeSecondsFor(codeName) {
14144
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-PKMKC2VS.js");
14145
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-2JSH5Y3H.js");
14145
14146
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
14146
14147
  if (newest === null) return null;
14147
14148
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -14899,7 +14900,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
14899
14900
  var lastVersionCheckAt = 0;
14900
14901
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
14901
14902
  var lastResponsivenessProbeAt = 0;
14902
- var agtCliVersion = true ? "0.28.1083" : "dev";
14903
+ var agtCliVersion = true ? "0.28.1085" : "dev";
14903
14904
  function resolveBrewPath(execFileSync3) {
14904
14905
  try {
14905
14906
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -16516,7 +16517,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
16516
16517
  if (codeNames.length === 0) return;
16517
16518
  void (async () => {
16518
16519
  try {
16519
- const { collectDiagnostics } = await import("../persistent-session-UHSU52GZ.js");
16520
+ const { collectDiagnostics } = await import("../persistent-session-V2TJ6HPL.js");
16520
16521
  await api.post("/host/heartbeat", {
16521
16522
  host_id: hostId,
16522
16523
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -16658,7 +16659,7 @@ async function pollCycleInner() {
16658
16659
  }
16659
16660
  try {
16660
16661
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
16661
- const { collectDiagnostics } = await import("../persistent-session-UHSU52GZ.js");
16662
+ const { collectDiagnostics } = await import("../persistent-session-V2TJ6HPL.js");
16662
16663
  const diagCodeNames = [...agentState.persistentSessionAgents];
16663
16664
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor) : void 0;
16664
16665
  let tailscaleHostname;
@@ -16866,7 +16867,7 @@ async function pollCycleInner() {
16866
16867
  collectPanelessActivityProbes,
16867
16868
  getResponsivenessIntervalMs,
16868
16869
  occupancyQualificationClassifications
16869
- } = await import("../responsiveness-probe-PKMKC2VS.js");
16870
+ } = await import("../responsiveness-probe-2JSH5Y3H.js");
16870
16871
  const probeIntervalMs = getResponsivenessIntervalMs();
16871
16872
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
16872
16873
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -16983,7 +16984,7 @@ async function pollCycleInner() {
16983
16984
  collectResponsivenessProbes,
16984
16985
  livePendingInboundOldestAgeSeconds,
16985
16986
  parkPendingInbound
16986
- } = await import("../responsiveness-probe-PKMKC2VS.js");
16987
+ } = await import("../responsiveness-probe-2JSH5Y3H.js");
16987
16988
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
16988
16989
  const wedgeNow = /* @__PURE__ */ new Date();
16989
16990
  const liveAgents = agentState.persistentSessionAgents;
@@ -17269,7 +17270,7 @@ async function pollCycleInner() {
17269
17270
  }
17270
17271
  }
17271
17272
  );
17272
- const { parkPendingInbound } = await import("../responsiveness-probe-PKMKC2VS.js");
17273
+ const { parkPendingInbound } = await import("../responsiveness-probe-2JSH5Y3H.js");
17273
17274
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
17274
17275
  paneFatalStreak.delete(codeName);
17275
17276
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -17300,7 +17301,7 @@ async function pollCycleInner() {
17300
17301
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
17301
17302
  bindSourceEscalations
17302
17303
  } = await import("../transcript-mount-health-OHE6IVJV.js");
17303
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-UHSU52GZ.js");
17304
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-V2TJ6HPL.js");
17304
17305
  const mountConfig = resolveTranscriptMountConfig();
17305
17306
  const liveAgents = agentState.persistentSessionAgents;
17306
17307
  for (const tracked of [
@@ -17465,7 +17466,7 @@ async function pollCycleInner() {
17465
17466
  }
17466
17467
  try {
17467
17468
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
17468
- const { probeSessionAuth } = await import("../session-auth-dead-KOZOXQOP.js");
17469
+ const { probeSessionAuth } = await import("../session-auth-dead-WUMWF4GK.js");
17469
17470
  const observations = [];
17470
17471
  const pendingCacheCommits = [];
17471
17472
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -18962,7 +18963,14 @@ async function processAgent(agent, agentStates, managedToolkits) {
18962
18963
  teamPeerBotIds: crossTeamData.team_peer_bot_ids ?? [],
18963
18964
  teamPeerSlackUserIds: crossTeamData.team_peer_slack_user_ids ?? [],
18964
18965
  crossTeamGrants: crossTeamData.cross_team_grants?.inbound ?? [],
18965
- crossTeamPeerIntraOrg: crossTeamData.organization?.cross_team_peer_intra_org ?? "unrestricted"
18966
+ // ENG-11353: the API always sends an explicit value, so this
18967
+ // only fires on a payload that predates it or omits the org
18968
+ // block — and it must agree with what the API would have
18969
+ // sent, which is why it is the shared constant and not a
18970
+ // literal `'unrestricted'` as it was.
18971
+ crossTeamPeerIntraOrg: resolveCrossTeamPeerIntraOrg(
18972
+ crossTeamData.organization?.cross_team_peer_intra_org
18973
+ )
18966
18974
  } : void 0;
18967
18975
  const peersForHash = channelId === "telegram" ? extractCharterTelegramPeers(refreshData.charter?.raw_content ?? "", gateContext) : channelId === "slack" ? extractCharterSlackPeers(refreshData.charter?.raw_content ?? "", gateContext) : null;
18968
18976
  const slackTeamPeerUserIds = channelId === "slack" && Array.isArray(crossTeamData.team_peer_slack_user_ids) ? crossTeamData.team_peer_slack_user_ids : void 0;
@@ -22030,7 +22038,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
22030
22038
  try {
22031
22039
  const freshId = rotateSessionForWedge(codeName);
22032
22040
  consecutiveWedgeCycles.delete(codeName);
22033
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-PKMKC2VS.js");
22041
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-2JSH5Y3H.js");
22034
22042
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
22035
22043
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
22036
22044
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -22073,7 +22081,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
22073
22081
  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}`));
22074
22082
  void (async () => {
22075
22083
  try {
22076
- const { collectDiagnostics } = await import("../persistent-session-UHSU52GZ.js");
22084
+ const { collectDiagnostics } = await import("../persistent-session-V2TJ6HPL.js");
22077
22085
  await api.post("/host/heartbeat", {
22078
22086
  host_id: hostId,
22079
22087
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -22124,7 +22132,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
22124
22132
  }
22125
22133
  try {
22126
22134
  const hostId = await getHostId();
22127
- const { collectDiagnostics } = await import("../persistent-session-UHSU52GZ.js");
22135
+ const { collectDiagnostics } = await import("../persistent-session-V2TJ6HPL.js");
22128
22136
  await api.post("/host/heartbeat", {
22129
22137
  host_id: hostId,
22130
22138
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -22796,7 +22804,7 @@ async function processClaudePairSessions(agents) {
22796
22804
  // cannot take it for itself — by the time it runs, the write it is looking
22797
22805
  // for may already have happened.
22798
22806
  snapshotPairConfig
22799
- } = await import("../claude-pair-runtime-U6LVU5CI.js");
22807
+ } = await import("../claude-pair-runtime-P5RI3SNT.js");
22800
22808
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
22801
22809
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
22802
22810
  const killed = await killPairSession(pairTmuxSession(pairId));