@integrity-labs/agt-cli 0.28.890 → 0.28.892

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 (26) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-FHJLOWU2.js → chunk-FZ6KIIYX.js} +86 -22
  3. package/dist/chunk-FZ6KIIYX.js.map +1 -0
  4. package/dist/{chunk-WGMIKXTX.js → chunk-SUVQ2KSP.js} +4 -4
  5. package/dist/{chunk-AQM4A5JF.js → chunk-WMJBXN6N.js} +2 -2
  6. package/dist/{claude-pair-runtime-XSOXRHGZ.js → claude-pair-runtime-RTD7ZCVS.js} +2 -2
  7. package/dist/lib/manager-worker.js +14 -39
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +85 -21
  10. package/dist/mcp/index.js +1316 -1237
  11. package/dist/mcp/origami.js +85 -21
  12. package/dist/mcp/slack-channel.js +85 -21
  13. package/dist/mcp/telegram-channel.js +85 -21
  14. package/dist/{persistent-session-DVG5WKZZ.js → persistent-session-ARKZDYMX.js} +3 -3
  15. package/dist/{responsiveness-probe-PPI3AFQG.js → responsiveness-probe-X2WXPIUI.js} +3 -3
  16. package/dist/{session-auth-dead-L7TAICNC.js → session-auth-dead-BLEV4AUJ.js} +2 -2
  17. package/package.json +2 -2
  18. package/dist/assets/review/SKILL.md +0 -223
  19. package/dist/assets/review/SWEEP.md +0 -169
  20. package/dist/chunk-FHJLOWU2.js.map +0 -1
  21. /package/dist/{chunk-WGMIKXTX.js.map → chunk-SUVQ2KSP.js.map} +0 -0
  22. /package/dist/{chunk-AQM4A5JF.js.map → chunk-WMJBXN6N.js.map} +0 -0
  23. /package/dist/{claude-pair-runtime-XSOXRHGZ.js.map → claude-pair-runtime-RTD7ZCVS.js.map} +0 -0
  24. /package/dist/{persistent-session-DVG5WKZZ.js.map → persistent-session-ARKZDYMX.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-PPI3AFQG.js.map → responsiveness-probe-X2WXPIUI.js.map} +0 -0
  26. /package/dist/{session-auth-dead-L7TAICNC.js.map → session-auth-dead-BLEV4AUJ.js.map} +0 -0
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvIntegrations,
17
17
  shellQuote,
18
18
  summarizeUnanswerablePane
19
- } from "./chunk-AQM4A5JF.js";
19
+ } from "./chunk-WMJBXN6N.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -76,7 +76,7 @@ import {
76
76
  sessionTranscriptDir,
77
77
  worseConnectivityOutcome,
78
78
  wrapScheduledTaskPrompt
79
- } from "./chunk-FHJLOWU2.js";
79
+ } from "./chunk-FZ6KIIYX.js";
80
80
  import {
81
81
  parsePsRows
82
82
  } from "./chunk-XWVM4KPK.js";
@@ -6841,7 +6841,7 @@ function exchangeFailureKind(err) {
6841
6841
  }
6842
6842
 
6843
6843
  // src/lib/api-client.ts
6844
- var agtCliVersion = true ? "0.28.890" : "dev";
6844
+ var agtCliVersion = true ? "0.28.892" : "dev";
6845
6845
  var lastConfigHash = null;
6846
6846
  function setConfigHash(hash) {
6847
6847
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11451,4 +11451,4 @@ export {
11451
11451
  managerInstallSystemUnitCommand,
11452
11452
  managerUninstallSystemUnitCommand
11453
11453
  };
11454
- //# sourceMappingURL=chunk-WGMIKXTX.js.map
11454
+ //# sourceMappingURL=chunk-SUVQ2KSP.js.map
@@ -19,7 +19,7 @@ import {
19
19
  rotateDailySession,
20
20
  sessionFileExists,
21
21
  todayLocalIso
22
- } from "./chunk-FHJLOWU2.js";
22
+ } from "./chunk-FZ6KIIYX.js";
23
23
  import {
24
24
  reapOrphanChannelMcps
25
25
  } from "./chunk-XWVM4KPK.js";
@@ -5730,4 +5730,4 @@ export {
5730
5730
  stopAllSessionsAndWait,
5731
5731
  getProjectDir
5732
5732
  };
5733
- //# sourceMappingURL=chunk-AQM4A5JF.js.map
5733
+ //# sourceMappingURL=chunk-WMJBXN6N.js.map
@@ -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-DVG5WKZZ.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-ARKZDYMX.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-XSOXRHGZ.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-RTD7ZCVS.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-WGMIKXTX.js";
66
+ } from "../chunk-SUVQ2KSP.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -136,7 +136,7 @@ import {
136
136
  takeZombieDetection,
137
137
  toOpencodeModel,
138
138
  writeEgressAllowlist
139
- } from "../chunk-AQM4A5JF.js";
139
+ } from "../chunk-WMJBXN6N.js";
140
140
  import {
141
141
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
142
142
  AnchorSessionClient,
@@ -231,7 +231,7 @@ import {
231
231
  subagentActivityAgeSeconds,
232
232
  sumTranscriptUsageInWindow,
233
233
  transcriptActivityAgeSeconds
234
- } from "../chunk-FHJLOWU2.js";
234
+ } from "../chunk-FZ6KIIYX.js";
235
235
  import {
236
236
  reapOrphanChannelMcps
237
237
  } from "../chunk-XWVM4KPK.js";
@@ -2297,10 +2297,6 @@ var ASSET_FILES = [
2297
2297
  [AUTH_FILENAME, 420]
2298
2298
  ];
2299
2299
  var REVIEW_ASSET_DIRNAME = "review";
2300
- var SKILL_ASSETS = [
2301
- ["SKILL.md", "pr-review"],
2302
- ["SWEEP.md", "pr-review-sweep"]
2303
- ];
2304
2300
  function resolveBundledReviewAssetDir() {
2305
2301
  const moduleDir = dirname5(fileURLToPath(import.meta.url));
2306
2302
  const candidates = [
@@ -2337,22 +2333,6 @@ function provisionReviewPoster(codeName, sourceDir = resolveBundledReviewAssetDi
2337
2333
  chmodSync(dest, mode);
2338
2334
  }
2339
2335
  }
2340
- function provisionReviewSkill(codeName, sourceDir = resolveBundledReviewAssetDir()) {
2341
- const adapter = getFramework("claude-code");
2342
- if (!adapter.installSkillFiles) {
2343
- throw new Error("[review-poster] claude-code adapter exposes no installSkillFiles");
2344
- }
2345
- const bodies = SKILL_ASSETS.map(([sourceFile, skillId]) => {
2346
- const src = join8(sourceDir, sourceFile);
2347
- if (!existsSync2(src)) {
2348
- throw new Error(`[review-poster] bundled asset missing: ${src}`);
2349
- }
2350
- return { skillId, content: readFileSync8(src, "utf-8") };
2351
- });
2352
- for (const { skillId, content } of bodies) {
2353
- adapter.installSkillFiles(codeName, skillId, [{ relativePath: "SKILL.md", content }]);
2354
- }
2355
- }
2356
2336
 
2357
2337
  // src/lib/id-keyed-migration.ts
2358
2338
  import { existsSync as existsSync3, lstatSync, readlinkSync, renameSync as renameSync2 } from "fs";
@@ -13023,7 +13003,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
13023
13003
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
13024
13004
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
13025
13005
  async function channelInboundActivityAgeSecondsFor(codeName) {
13026
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-PPI3AFQG.js");
13006
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-X2WXPIUI.js");
13027
13007
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
13028
13008
  if (newest === null) return null;
13029
13009
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -13691,7 +13671,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13691
13671
  var lastVersionCheckAt = 0;
13692
13672
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13693
13673
  var lastResponsivenessProbeAt = 0;
13694
- var agtCliVersion = true ? "0.28.890" : "dev";
13674
+ var agtCliVersion = true ? "0.28.892" : "dev";
13695
13675
  function resolveBrewPath(execFileSync2) {
13696
13676
  try {
13697
13677
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -15281,7 +15261,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
15281
15261
  if (codeNames.length === 0) return;
15282
15262
  void (async () => {
15283
15263
  try {
15284
- const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
15264
+ const { collectDiagnostics } = await import("../persistent-session-ARKZDYMX.js");
15285
15265
  await api.post("/host/heartbeat", {
15286
15266
  host_id: hostId,
15287
15267
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -15423,7 +15403,7 @@ async function pollCycleInner() {
15423
15403
  }
15424
15404
  try {
15425
15405
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
15426
- const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
15406
+ const { collectDiagnostics } = await import("../persistent-session-ARKZDYMX.js");
15427
15407
  const diagCodeNames = [...agentState.persistentSessionAgents];
15428
15408
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
15429
15409
  let tailscaleHostname;
@@ -15592,7 +15572,7 @@ async function pollCycleInner() {
15592
15572
  collectPanelessActivityProbes,
15593
15573
  getResponsivenessIntervalMs,
15594
15574
  occupancyQualificationClassifications
15595
- } = await import("../responsiveness-probe-PPI3AFQG.js");
15575
+ } = await import("../responsiveness-probe-X2WXPIUI.js");
15596
15576
  const probeIntervalMs = getResponsivenessIntervalMs();
15597
15577
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
15598
15578
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -15709,7 +15689,7 @@ async function pollCycleInner() {
15709
15689
  collectResponsivenessProbes,
15710
15690
  livePendingInboundOldestAgeSeconds,
15711
15691
  parkPendingInbound
15712
- } = await import("../responsiveness-probe-PPI3AFQG.js");
15692
+ } = await import("../responsiveness-probe-X2WXPIUI.js");
15713
15693
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
15714
15694
  const wedgeNow = /* @__PURE__ */ new Date();
15715
15695
  const liveAgents = agentState.persistentSessionAgents;
@@ -15865,7 +15845,7 @@ async function pollCycleInner() {
15865
15845
  }
15866
15846
  try {
15867
15847
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
15868
- const { probeSessionAuth } = await import("../session-auth-dead-L7TAICNC.js");
15848
+ const { probeSessionAuth } = await import("../session-auth-dead-BLEV4AUJ.js");
15869
15849
  const observations = [];
15870
15850
  const pendingCacheCommits = [];
15871
15851
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -19578,11 +19558,6 @@ async function ensurePersistentSessionUnchecked(agent, tasks, boardItems, refres
19578
19558
  } catch (err) {
19579
19559
  log(`[persistent-session] Failed to provision review poster for '${codeName}': ${err.message}`);
19580
19560
  }
19581
- try {
19582
- provisionReviewSkill(codeName);
19583
- } catch (err) {
19584
- log(`[persistent-session] Failed to provision review skill for '${codeName}': ${err.message}`);
19585
- }
19586
19561
  if (!isSessionHealthy(codeName)) {
19587
19562
  if (agentState.persistentSessionAgents.has(codeName)) {
19588
19563
  const ctx = getLastFailureContext(codeName);
@@ -20128,7 +20103,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20128
20103
  try {
20129
20104
  const freshId = rotateSessionForWedge(codeName);
20130
20105
  consecutiveWedgeCycles.delete(codeName);
20131
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-PPI3AFQG.js");
20106
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-X2WXPIUI.js");
20132
20107
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
20133
20108
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
20134
20109
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -20171,7 +20146,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20171
20146
  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}`));
20172
20147
  void (async () => {
20173
20148
  try {
20174
- const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
20149
+ const { collectDiagnostics } = await import("../persistent-session-ARKZDYMX.js");
20175
20150
  await api.post("/host/heartbeat", {
20176
20151
  host_id: hostId,
20177
20152
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20222,7 +20197,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
20222
20197
  }
20223
20198
  try {
20224
20199
  const hostId = await getHostId();
20225
- const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
20200
+ const { collectDiagnostics } = await import("../persistent-session-ARKZDYMX.js");
20226
20201
  await api.post("/host/heartbeat", {
20227
20202
  host_id: hostId,
20228
20203
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20864,7 +20839,7 @@ async function processClaudePairSessions(agents) {
20864
20839
  killPairSession,
20865
20840
  pairTmuxSession,
20866
20841
  finalizeClaudePairOnboarding
20867
- } = await import("../claude-pair-runtime-XSOXRHGZ.js");
20842
+ } = await import("../claude-pair-runtime-RTD7ZCVS.js");
20868
20843
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
20869
20844
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
20870
20845
  const killed = await killPairSession(pairTmuxSession(pairId));