@integrity-labs/agt-cli 0.28.1240 → 0.28.1242

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 +6 -6
  2. package/dist/{chunk-ZRAP5UUT.js → chunk-6TCXHVTP.js} +2 -2
  3. package/dist/{chunk-4ZDAVIMX.js → chunk-CEGRVIOK.js} +3 -3
  4. package/dist/{chunk-YZJO2JC7.js → chunk-DZYHXUIG.js} +2 -2
  5. package/dist/{chunk-WKNCW2AL.js → chunk-EJWFVHMV.js} +5 -5
  6. package/dist/{chunk-VKJ2GXC6.js → chunk-JPRHN524.js} +4 -1
  7. package/dist/{chunk-VKJ2GXC6.js.map → chunk-JPRHN524.js.map} +1 -1
  8. package/dist/{claude-code-updater-F7UFE2WX.js → claude-code-updater-IDCCFG5Q.js} +3 -3
  9. package/dist/{claude-pair-runtime-2KESDT3W.js → claude-pair-runtime-OHUHLGN2.js} +3 -3
  10. package/dist/lib/manager-worker.js +30 -21
  11. package/dist/lib/manager-worker.js.map +1 -1
  12. package/dist/{persistent-session-X34IE2LC.js → persistent-session-VWDKTU3A.js} +4 -4
  13. package/dist/{responsiveness-probe-DRA6WD2Y.js → responsiveness-probe-T2DI3OK3.js} +4 -4
  14. package/dist/{session-auth-dead-MIQZUWLO.js → session-auth-dead-QRZG5AI7.js} +3 -3
  15. package/package.json +1 -1
  16. /package/dist/{chunk-ZRAP5UUT.js.map → chunk-6TCXHVTP.js.map} +0 -0
  17. /package/dist/{chunk-4ZDAVIMX.js.map → chunk-CEGRVIOK.js.map} +0 -0
  18. /package/dist/{chunk-YZJO2JC7.js.map → chunk-DZYHXUIG.js.map} +0 -0
  19. /package/dist/{chunk-WKNCW2AL.js.map → chunk-EJWFVHMV.js.map} +0 -0
  20. /package/dist/{claude-code-updater-F7UFE2WX.js.map → claude-code-updater-IDCCFG5Q.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-2KESDT3W.js.map → claude-pair-runtime-OHUHLGN2.js.map} +0 -0
  22. /package/dist/{persistent-session-X34IE2LC.js.map → persistent-session-VWDKTU3A.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-DRA6WD2Y.js.map → responsiveness-probe-T2DI3OK3.js.map} +0 -0
  24. /package/dist/{session-auth-dead-MIQZUWLO.js.map → session-auth-dead-QRZG5AI7.js.map} +0 -0
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-YZJO2JC7.js";
16
+ } from "./chunk-DZYHXUIG.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-VKJ2GXC6.js";
18
+ import "./chunk-JPRHN524.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-F7UFE2WX.js.map
37
+ //# sourceMappingURL=claude-code-updater-IDCCFG5Q.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-VKJ2GXC6.js";
11
+ } from "./chunk-JPRHN524.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-X34IE2LC.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-VWDKTU3A.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-2KESDT3W.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-OHUHLGN2.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-WKNCW2AL.js";
88
+ } from "../chunk-EJWFVHMV.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-YZJO2JC7.js";
102
+ } from "../chunk-DZYHXUIG.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -195,7 +195,7 @@ import {
195
195
  webFetchBaselineValue,
196
196
  webFetchRestartNeeded,
197
197
  writeEgressAllowlist
198
- } from "../chunk-4ZDAVIMX.js";
198
+ } from "../chunk-CEGRVIOK.js";
199
199
  import {
200
200
  isAgentIdle,
201
201
  isStaleForToday,
@@ -206,7 +206,7 @@ import {
206
206
  subagentActivityAgeSeconds,
207
207
  subagentTranscriptDir,
208
208
  transcriptActivityAgeSeconds
209
- } from "../chunk-ZRAP5UUT.js";
209
+ } from "../chunk-6TCXHVTP.js";
210
210
  import {
211
211
  classifyUnanswerablePane,
212
212
  focusedConfirmDialogBlock,
@@ -337,7 +337,7 @@ import {
337
337
  stabiliseResetInstant,
338
338
  sumTranscriptUsageInWindow,
339
339
  summarizeTranscriptActivity
340
- } from "../chunk-VKJ2GXC6.js";
340
+ } from "../chunk-JPRHN524.js";
341
341
  import {
342
342
  CLAUDE_CONFIG_DIR_ENV,
343
343
  claudeConfigDirFor,
@@ -8896,7 +8896,7 @@ function withScheduleLinkFooter(opts) {
8896
8896
  warnedNullConsoleUrl = true;
8897
8897
  try {
8898
8898
  opts.log(
8899
- "[schedule-link] AGT_CONSOLE_URL unset and NEXT_PUBLIC_APP_URL unset \u2014 schedule-edit deep-link footer disabled. Run `agt setup` again or export AGT_CONSOLE_URL (e.g. https://app.augmented.team) to restore it."
8899
+ "[schedule-link] AGT_CONSOLE_URL unset and NEXT_PUBLIC_APP_URL unset \u2014 schedule-edit deep-link footer disabled. Run `agt setup` again or export AGT_CONSOLE_URL (e.g. https://app.ninjafy.com) to restore it."
8900
8900
  );
8901
8901
  } catch {
8902
8902
  }
@@ -13545,6 +13545,7 @@ function resolveTelegramIngestParamsFromEnv(env, ctx) {
13545
13545
  allowedChats: parseTelegramAllowedChatsEnv(env),
13546
13546
  peerConfig: buildTelegramPeerClassifierConfigFromEnv(env),
13547
13547
  senderPolicy: buildTelegramSenderPolicyFromEnv(env, ctx),
13548
+ privateChatsOnly: env["TELEGRAM_PRIVATE_CHATS_ONLY"] === "1",
13548
13549
  ackReaction,
13549
13550
  ...skipReaction ? { skipReaction } : {}
13550
13551
  };
@@ -13607,7 +13608,10 @@ async function dispatchTelegramInbound(update, ctx) {
13607
13608
  // `deps.senderPolicy` is undefined, which the gate treats as `all`, so the
13608
13609
  // registry's claim that both runtimes supply this leaf was false on this
13609
13610
  // path. eng-9665-opencode-sender-policy.test.ts fails if it is removed.
13610
- senderPolicy: ctx.senderPolicy
13611
+ senderPolicy: ctx.senderPolicy,
13612
+ // ENG-12000: without this the gate's chat-kind axis is off, so group traffic
13613
+ // was admitted with private-only on. eng-12000 test fails if it is removed.
13614
+ privateChatsOnly: ctx.privateChatsOnly
13611
13615
  });
13612
13616
  if (!decision.admit) {
13613
13617
  ctx.log(`[telegram-ingest:${ctx.codeName}] dropped chat=${redactId(chatId)} reason=${decision.reason}`);
@@ -13715,6 +13719,7 @@ function startTelegramIngest(config2) {
13715
13719
  allowedChats: config2.allowedChats,
13716
13720
  peerConfig: config2.peerConfig,
13717
13721
  senderPolicy: config2.senderPolicy,
13722
+ privateChatsOnly: config2.privateChatsOnly,
13718
13723
  self: config2.self,
13719
13724
  inject: config2.inject,
13720
13725
  sendReply,
@@ -13806,6 +13811,9 @@ function fingerprint2(params) {
13806
13811
  // changes only the ids, so hashing the mode alone would miss exactly the
13807
13812
  // case `3ff390e32af6` describes.
13808
13813
  senderPolicy: params.senderPolicy,
13814
+ // ENG-12000: toggling private-only in the console must restart a live
13815
+ // loop, or the old chat-kind gate keeps running until something else does.
13816
+ privateChatsOnly: params.privateChatsOnly,
13809
13817
  ackReaction: params.ackReaction ?? null,
13810
13818
  skipReaction: params.skipReaction ?? null
13811
13819
  })
@@ -13912,6 +13920,7 @@ async function ensureOpencodeTelegramIngest(opts) {
13912
13920
  allowedChats: params.allowedChats,
13913
13921
  peerConfig: params.peerConfig,
13914
13922
  senderPolicy: params.senderPolicy,
13923
+ privateChatsOnly: params.privateChatsOnly,
13915
13924
  self,
13916
13925
  inject: (msg) => injectOpencodeMessage(codeName, msg, { awaitReply: true }),
13917
13926
  log: log2,
@@ -15862,7 +15871,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15862
15871
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15863
15872
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15864
15873
  async function channelInboundActivityAgeSecondsFor(codeName) {
15865
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-DRA6WD2Y.js");
15874
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-T2DI3OK3.js");
15866
15875
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15867
15876
  if (newest === null) return null;
15868
15877
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16677,7 +16686,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16677
16686
  var lastVersionCheckAt = 0;
16678
16687
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16679
16688
  var lastResponsivenessProbeAt = 0;
16680
- var agtCliVersion = true ? "0.28.1240" : "dev";
16689
+ var agtCliVersion = true ? "0.28.1242" : "dev";
16681
16690
  function resolveBrewPath(execFileSync3) {
16682
16691
  try {
16683
16692
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18674,7 +18683,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18674
18683
  if (codeNames.length === 0) return;
18675
18684
  void (async () => {
18676
18685
  try {
18677
- const { collectDiagnostics } = await import("../persistent-session-X34IE2LC.js");
18686
+ const { collectDiagnostics } = await import("../persistent-session-VWDKTU3A.js");
18678
18687
  await api.post("/host/heartbeat", {
18679
18688
  host_id: hostId,
18680
18689
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18817,7 +18826,7 @@ async function pollCycleInner() {
18817
18826
  }
18818
18827
  try {
18819
18828
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18820
- const { collectDiagnostics } = await import("../persistent-session-X34IE2LC.js");
18829
+ const { collectDiagnostics } = await import("../persistent-session-VWDKTU3A.js");
18821
18830
  const diagCodeNames = [...agentState.persistentSessionAgents];
18822
18831
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18823
18832
  let tailscaleHostname;
@@ -19082,7 +19091,7 @@ async function pollCycleInner() {
19082
19091
  }
19083
19092
  try {
19084
19093
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
19085
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-F7UFE2WX.js");
19094
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-IDCCFG5Q.js");
19086
19095
  const securityFloor = currentSecurityFloor();
19087
19096
  claudeUpdaterInFlight = true;
19088
19097
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -19117,7 +19126,7 @@ async function pollCycleInner() {
19117
19126
  collectPanelessActivityProbes,
19118
19127
  getResponsivenessIntervalMs,
19119
19128
  occupancyQualificationClassifications
19120
- } = await import("../responsiveness-probe-DRA6WD2Y.js");
19129
+ } = await import("../responsiveness-probe-T2DI3OK3.js");
19121
19130
  const probeIntervalMs = getResponsivenessIntervalMs();
19122
19131
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
19123
19132
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -19234,7 +19243,7 @@ async function pollCycleInner() {
19234
19243
  collectResponsivenessProbes,
19235
19244
  livePendingInboundOldestAgeSeconds,
19236
19245
  parkPendingInbound
19237
- } = await import("../responsiveness-probe-DRA6WD2Y.js");
19246
+ } = await import("../responsiveness-probe-T2DI3OK3.js");
19238
19247
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
19239
19248
  const wedgeNow = /* @__PURE__ */ new Date();
19240
19249
  const liveAgents = agentState.persistentSessionAgents;
@@ -19520,7 +19529,7 @@ async function pollCycleInner() {
19520
19529
  }
19521
19530
  }
19522
19531
  );
19523
- const { parkPendingInbound } = await import("../responsiveness-probe-DRA6WD2Y.js");
19532
+ const { parkPendingInbound } = await import("../responsiveness-probe-T2DI3OK3.js");
19524
19533
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19525
19534
  paneFatalStreak.delete(codeName);
19526
19535
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19551,7 +19560,7 @@ async function pollCycleInner() {
19551
19560
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19552
19561
  bindSourceEscalations
19553
19562
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19554
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-X34IE2LC.js");
19563
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-VWDKTU3A.js");
19555
19564
  const mountConfig = resolveTranscriptMountConfig();
19556
19565
  const liveAgents = agentState.persistentSessionAgents;
19557
19566
  for (const tracked of [
@@ -19716,7 +19725,7 @@ async function pollCycleInner() {
19716
19725
  }
19717
19726
  try {
19718
19727
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19719
- const { probeSessionAuth } = await import("../session-auth-dead-MIQZUWLO.js");
19728
+ const { probeSessionAuth } = await import("../session-auth-dead-QRZG5AI7.js");
19720
19729
  const observations = [];
19721
19730
  const pendingCacheCommits = [];
19722
19731
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24470,7 +24479,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24470
24479
  try {
24471
24480
  const freshId = rotateSessionForWedge(codeName);
24472
24481
  consecutiveWedgeCycles.delete(codeName);
24473
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-DRA6WD2Y.js");
24482
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-T2DI3OK3.js");
24474
24483
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24475
24484
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24476
24485
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24513,7 +24522,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24513
24522
  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}`));
24514
24523
  void (async () => {
24515
24524
  try {
24516
- const { collectDiagnostics } = await import("../persistent-session-X34IE2LC.js");
24525
+ const { collectDiagnostics } = await import("../persistent-session-VWDKTU3A.js");
24517
24526
  await api.post("/host/heartbeat", {
24518
24527
  host_id: hostId,
24519
24528
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24564,7 +24573,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24564
24573
  }
24565
24574
  try {
24566
24575
  const hostId = await getHostId();
24567
- const { collectDiagnostics } = await import("../persistent-session-X34IE2LC.js");
24576
+ const { collectDiagnostics } = await import("../persistent-session-VWDKTU3A.js");
24568
24577
  await api.post("/host/heartbeat", {
24569
24578
  host_id: hostId,
24570
24579
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25266,7 +25275,7 @@ async function processClaudePairSessions(agents) {
25266
25275
  snapshotPairConfig,
25267
25276
  // ENG-11659: result -> report body + the manager.log line that records it.
25268
25277
  planPairStartReport
25269
- } = await import("../claude-pair-runtime-2KESDT3W.js");
25278
+ } = await import("../claude-pair-runtime-OHUHLGN2.js");
25270
25279
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25271
25280
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25272
25281
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);