@integrity-labs/agt-cli 0.28.865 → 0.28.866

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/assets/review/SWEEP.md +169 -0
  2. package/dist/bin/agt.js +5 -5
  3. package/dist/{chunk-RVXI7GZO.js → chunk-52JZN5RZ.js} +4 -4
  4. package/dist/{chunk-PXDYKP5O.js → chunk-AFOW32B6.js} +2 -2
  5. package/dist/{chunk-JG3EAFZO.js → chunk-ULLOPIPI.js} +24 -3
  6. package/dist/{chunk-JG3EAFZO.js.map → chunk-ULLOPIPI.js.map} +1 -1
  7. package/dist/{claude-pair-runtime-OWOZ2ZQ7.js → claude-pair-runtime-ZPCSW7EP.js} +2 -2
  8. package/dist/lib/manager-worker.js +28 -23
  9. package/dist/lib/manager-worker.js.map +1 -1
  10. package/dist/mcp/direct-chat-channel.js +23 -2
  11. package/dist/mcp/index.js +23 -2
  12. package/dist/mcp/origami.js +23 -2
  13. package/dist/mcp/slack-channel.js +23 -2
  14. package/dist/mcp/telegram-channel.js +23 -2
  15. package/dist/{persistent-session-GSXFKCVO.js → persistent-session-NKC4H6CA.js} +3 -3
  16. package/dist/{responsiveness-probe-GOM3ZYW3.js → responsiveness-probe-E76NS3BE.js} +3 -3
  17. package/dist/{session-auth-dead-ID4L35CN.js → session-auth-dead-WSBNUP5I.js} +2 -2
  18. package/package.json +2 -2
  19. /package/dist/{chunk-RVXI7GZO.js.map → chunk-52JZN5RZ.js.map} +0 -0
  20. /package/dist/{chunk-PXDYKP5O.js.map → chunk-AFOW32B6.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-OWOZ2ZQ7.js.map → claude-pair-runtime-ZPCSW7EP.js.map} +0 -0
  22. /package/dist/{persistent-session-GSXFKCVO.js.map → persistent-session-NKC4H6CA.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-GOM3ZYW3.js.map → responsiveness-probe-E76NS3BE.js.map} +0 -0
  24. /package/dist/{session-auth-dead-ID4L35CN.js.map → session-auth-dead-WSBNUP5I.js.map} +0 -0
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
100
100
  return { ok: true };
101
101
  } catch {
102
102
  }
103
- const { resolveClaudeBinary } = await import("./persistent-session-GSXFKCVO.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-NKC4H6CA.js");
104
104
  const claudeBin = resolveClaudeBinary();
105
105
  const pairEnv = {
106
106
  ...process.env,
@@ -373,4 +373,4 @@ export {
373
373
  startClaudePair,
374
374
  submitClaudePairCode
375
375
  };
376
- //# sourceMappingURL=claude-pair-runtime-OWOZ2ZQ7.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-ZPCSW7EP.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-RVXI7GZO.js";
66
+ } from "../chunk-52JZN5RZ.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -129,7 +129,7 @@ import {
129
129
  takeZombieDetection,
130
130
  toOpencodeModel,
131
131
  writeEgressAllowlist
132
- } from "../chunk-PXDYKP5O.js";
132
+ } from "../chunk-AFOW32B6.js";
133
133
  import {
134
134
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
135
135
  AnchorSessionClient,
@@ -224,7 +224,7 @@ import {
224
224
  subagentActivityAgeSeconds,
225
225
  sumTranscriptUsageInWindow,
226
226
  transcriptActivityAgeSeconds
227
- } from "../chunk-JG3EAFZO.js";
227
+ } from "../chunk-ULLOPIPI.js";
228
228
  import {
229
229
  reapOrphanChannelMcps
230
230
  } from "../chunk-XWVM4KPK.js";
@@ -2290,8 +2290,10 @@ var ASSET_FILES = [
2290
2290
  [AUTH_FILENAME, 420]
2291
2291
  ];
2292
2292
  var REVIEW_ASSET_DIRNAME = "review";
2293
- var SKILL_FILENAME = "SKILL.md";
2294
- var REVIEW_SKILL_ID = "pr-review";
2293
+ var SKILL_ASSETS = [
2294
+ ["SKILL.md", "pr-review"],
2295
+ ["SWEEP.md", "pr-review-sweep"]
2296
+ ];
2295
2297
  function resolveBundledReviewAssetDir() {
2296
2298
  const moduleDir = dirname5(fileURLToPath(import.meta.url));
2297
2299
  const candidates = [
@@ -2329,17 +2331,20 @@ function provisionReviewPoster(codeName, sourceDir = resolveBundledReviewAssetDi
2329
2331
  }
2330
2332
  }
2331
2333
  function provisionReviewSkill(codeName, sourceDir = resolveBundledReviewAssetDir()) {
2332
- const src = join8(sourceDir, SKILL_FILENAME);
2333
- if (!existsSync2(src)) {
2334
- throw new Error(`[review-poster] bundled asset missing: ${src}`);
2335
- }
2336
2334
  const adapter = getFramework("claude-code");
2337
2335
  if (!adapter.installSkillFiles) {
2338
2336
  throw new Error("[review-poster] claude-code adapter exposes no installSkillFiles");
2339
2337
  }
2340
- adapter.installSkillFiles(codeName, REVIEW_SKILL_ID, [
2341
- { relativePath: SKILL_FILENAME, content: readFileSync8(src, "utf-8") }
2342
- ]);
2338
+ const bodies = SKILL_ASSETS.map(([sourceFile, skillId]) => {
2339
+ const src = join8(sourceDir, sourceFile);
2340
+ if (!existsSync2(src)) {
2341
+ throw new Error(`[review-poster] bundled asset missing: ${src}`);
2342
+ }
2343
+ return { skillId, content: readFileSync8(src, "utf-8") };
2344
+ });
2345
+ for (const { skillId, content } of bodies) {
2346
+ adapter.installSkillFiles(codeName, skillId, [{ relativePath: "SKILL.md", content }]);
2347
+ }
2343
2348
  }
2344
2349
 
2345
2350
  // src/lib/id-keyed-migration.ts
@@ -13005,7 +13010,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
13005
13010
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
13006
13011
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
13007
13012
  async function channelInboundActivityAgeSecondsFor(codeName) {
13008
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-GOM3ZYW3.js");
13013
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-E76NS3BE.js");
13009
13014
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
13010
13015
  if (newest === null) return null;
13011
13016
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -13673,7 +13678,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13673
13678
  var lastVersionCheckAt = 0;
13674
13679
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13675
13680
  var lastResponsivenessProbeAt = 0;
13676
- var agtCliVersion = true ? "0.28.865" : "dev";
13681
+ var agtCliVersion = true ? "0.28.866" : "dev";
13677
13682
  function resolveBrewPath(execFileSync2) {
13678
13683
  try {
13679
13684
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -15263,7 +15268,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
15263
15268
  if (codeNames.length === 0) return;
15264
15269
  void (async () => {
15265
15270
  try {
15266
- const { collectDiagnostics } = await import("../persistent-session-GSXFKCVO.js");
15271
+ const { collectDiagnostics } = await import("../persistent-session-NKC4H6CA.js");
15267
15272
  await api.post("/host/heartbeat", {
15268
15273
  host_id: hostId,
15269
15274
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -15405,7 +15410,7 @@ async function pollCycleInner() {
15405
15410
  }
15406
15411
  try {
15407
15412
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
15408
- const { collectDiagnostics } = await import("../persistent-session-GSXFKCVO.js");
15413
+ const { collectDiagnostics } = await import("../persistent-session-NKC4H6CA.js");
15409
15414
  const diagCodeNames = [...agentState.persistentSessionAgents];
15410
15415
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
15411
15416
  let tailscaleHostname;
@@ -15574,7 +15579,7 @@ async function pollCycleInner() {
15574
15579
  collectPanelessActivityProbes,
15575
15580
  getResponsivenessIntervalMs,
15576
15581
  occupancyQualificationClassifications
15577
- } = await import("../responsiveness-probe-GOM3ZYW3.js");
15582
+ } = await import("../responsiveness-probe-E76NS3BE.js");
15578
15583
  const probeIntervalMs = getResponsivenessIntervalMs();
15579
15584
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
15580
15585
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -15691,7 +15696,7 @@ async function pollCycleInner() {
15691
15696
  collectResponsivenessProbes,
15692
15697
  livePendingInboundOldestAgeSeconds,
15693
15698
  parkPendingInbound
15694
- } = await import("../responsiveness-probe-GOM3ZYW3.js");
15699
+ } = await import("../responsiveness-probe-E76NS3BE.js");
15695
15700
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
15696
15701
  const wedgeNow = /* @__PURE__ */ new Date();
15697
15702
  const liveAgents = agentState.persistentSessionAgents;
@@ -15847,7 +15852,7 @@ async function pollCycleInner() {
15847
15852
  }
15848
15853
  try {
15849
15854
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
15850
- const { probeSessionAuth } = await import("../session-auth-dead-ID4L35CN.js");
15855
+ const { probeSessionAuth } = await import("../session-auth-dead-WSBNUP5I.js");
15851
15856
  const observations = [];
15852
15857
  const pendingCacheCommits = [];
15853
15858
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -20092,7 +20097,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20092
20097
  try {
20093
20098
  const freshId = rotateSessionForWedge(codeName);
20094
20099
  consecutiveWedgeCycles.delete(codeName);
20095
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-GOM3ZYW3.js");
20100
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-E76NS3BE.js");
20096
20101
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
20097
20102
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
20098
20103
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -20130,7 +20135,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20130
20135
  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}`));
20131
20136
  void (async () => {
20132
20137
  try {
20133
- const { collectDiagnostics } = await import("../persistent-session-GSXFKCVO.js");
20138
+ const { collectDiagnostics } = await import("../persistent-session-NKC4H6CA.js");
20134
20139
  await api.post("/host/heartbeat", {
20135
20140
  host_id: hostId,
20136
20141
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20176,7 +20181,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
20176
20181
  }
20177
20182
  try {
20178
20183
  const hostId = await getHostId();
20179
- const { collectDiagnostics } = await import("../persistent-session-GSXFKCVO.js");
20184
+ const { collectDiagnostics } = await import("../persistent-session-NKC4H6CA.js");
20180
20185
  await api.post("/host/heartbeat", {
20181
20186
  host_id: hostId,
20182
20187
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20812,7 +20817,7 @@ async function processClaudePairSessions(agents) {
20812
20817
  killPairSession,
20813
20818
  pairTmuxSession,
20814
20819
  finalizeClaudePairOnboarding
20815
- } = await import("../claude-pair-runtime-OWOZ2ZQ7.js");
20820
+ } = await import("../claude-pair-runtime-ZPCSW7EP.js");
20816
20821
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
20817
20822
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
20818
20823
  const killed = await killPairSession(pairTmuxSession(pairId));