@integrity-labs/agt-cli 0.28.543 → 0.28.545

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.
@@ -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-MH5URKMO.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-FM5746XM.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-34ZO2AFF.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-R3R5OWDM.js.map
@@ -53,7 +53,7 @@ import {
53
53
  safeWriteJsonAtomic,
54
54
  setConfigHash,
55
55
  tripClass
56
- } from "../chunk-VGOV5SSL.js";
56
+ } from "../chunk-6CHFBMJM.js";
57
57
  import {
58
58
  getProjectDir as getProjectDir2,
59
59
  getReadyTasks,
@@ -181,7 +181,7 @@ import {
181
181
  toOpencodeModel,
182
182
  transcriptActivityAgeSeconds,
183
183
  writeEgressAllowlist
184
- } from "../chunk-QDCKLUU7.js";
184
+ } from "../chunk-QPSEQLSI.js";
185
185
  import {
186
186
  reapOrphanChannelMcps
187
187
  } from "../chunk-XWVM4KPK.js";
@@ -5663,6 +5663,20 @@ async function deliverScheduledTaskOutput(agentCodeName, agentId, rawTarget, bod
5663
5663
  }
5664
5664
 
5665
5665
  // src/lib/manager/scheduler/kanban-route.ts
5666
+ var MAX_DELIVERY_CHARS = 3500;
5667
+ var truncationMarker = (dropped) => `
5668
+
5669
+ \u2026[truncated \u2014 ${dropped} more characters. The full result is on the card.]`;
5670
+ function truncateForDelivery(output) {
5671
+ if (output.length <= MAX_DELIVERY_CHARS) return output;
5672
+ let keep = MAX_DELIVERY_CHARS - truncationMarker(output.length - MAX_DELIVERY_CHARS).length;
5673
+ for (let i = 0; i < 5; i++) {
5674
+ const next = MAX_DELIVERY_CHARS - truncationMarker(output.length - keep).length;
5675
+ if (next === keep) break;
5676
+ keep = next;
5677
+ }
5678
+ return output.slice(0, keep) + truncationMarker(output.length - keep);
5679
+ }
5666
5680
  async function deliverScheduledCardResult(codeName, agentId, cardId, completedBy = "self") {
5667
5681
  const seen = { taskRef: null };
5668
5682
  const result = await runScheduledCardDelivery(codeName, agentId, cardId, completedBy, seen);
@@ -5682,6 +5696,10 @@ async function runScheduledCardDelivery(codeName, agentId, cardId, completedBy,
5682
5696
  item_id: cardId
5683
5697
  });
5684
5698
  card = resp.item;
5699
+ const lenOrMissing = (value) => value == null ? "missing" : String(value.length);
5700
+ log(
5701
+ `[scheduled-kanban] delivery: card ${cardId} on '${codeName}' fetched result_len=${lenOrMissing(card?.result)} deliverable_len=${lenOrMissing(card?.deliverable)} title_len=${lenOrMissing(card?.title)}`
5702
+ );
5685
5703
  } catch (err) {
5686
5704
  if (err instanceof ApiError && err.status >= 400 && err.status < 500) {
5687
5705
  log(`[scheduled-kanban] delivery: card ${cardId} on '${codeName}' fetch returned ${err.status} (${err.message}) \u2014 treating as terminal, not retrying`);
@@ -6018,7 +6036,7 @@ async function processClaudeTaskResult(codeName, agentId, templateId, rawOutput,
6018
6036
  codeName,
6019
6037
  agentId,
6020
6038
  delivery.to,
6021
- output.slice(0, 4e3),
6039
+ truncateForDelivery(output),
6022
6040
  delivery.taskId
6023
6041
  );
6024
6042
  }
@@ -10437,7 +10455,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
10437
10455
  var lastVersionCheckAt = 0;
10438
10456
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
10439
10457
  var lastResponsivenessProbeAt = 0;
10440
- var agtCliVersion = true ? "0.28.543" : "dev";
10458
+ var agtCliVersion = true ? "0.28.545" : "dev";
10441
10459
  function resolveBrewPath(execFileSync2) {
10442
10460
  try {
10443
10461
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -11741,7 +11759,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
11741
11759
  if (codeNames.length === 0) return;
11742
11760
  void (async () => {
11743
11761
  try {
11744
- const { collectDiagnostics } = await import("../persistent-session-MH5URKMO.js");
11762
+ const { collectDiagnostics } = await import("../persistent-session-FM5746XM.js");
11745
11763
  await api.post("/host/heartbeat", {
11746
11764
  host_id: hostId,
11747
11765
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor)
@@ -11849,7 +11867,7 @@ async function pollCycle() {
11849
11867
  }
11850
11868
  try {
11851
11869
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
11852
- const { collectDiagnostics } = await import("../persistent-session-MH5URKMO.js");
11870
+ const { collectDiagnostics } = await import("../persistent-session-FM5746XM.js");
11853
11871
  const diagCodeNames = [...agentState.persistentSessionAgents];
11854
11872
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor) : void 0;
11855
11873
  let tailscaleHostname;
@@ -11972,7 +11990,7 @@ async function pollCycle() {
11972
11990
  collectPanelessActivityProbes,
11973
11991
  getResponsivenessIntervalMs,
11974
11992
  occupancyQualificationClassifications
11975
- } = await import("../responsiveness-probe-NVP34464.js");
11993
+ } = await import("../responsiveness-probe-WZMDBY3T.js");
11976
11994
  const probeIntervalMs = getResponsivenessIntervalMs();
11977
11995
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
11978
11996
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -12063,7 +12081,7 @@ async function pollCycle() {
12063
12081
  collectResponsivenessProbes,
12064
12082
  livePendingInboundOldestAgeSeconds,
12065
12083
  parkPendingInbound
12066
- } = await import("../responsiveness-probe-NVP34464.js");
12084
+ } = await import("../responsiveness-probe-WZMDBY3T.js");
12067
12085
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
12068
12086
  const wedgeNow = /* @__PURE__ */ new Date();
12069
12087
  const liveAgents = agentState.persistentSessionAgents;
@@ -15593,7 +15611,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
15593
15611
  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}`));
15594
15612
  void (async () => {
15595
15613
  try {
15596
- const { collectDiagnostics } = await import("../persistent-session-MH5URKMO.js");
15614
+ const { collectDiagnostics } = await import("../persistent-session-FM5746XM.js");
15597
15615
  await api.post("/host/heartbeat", {
15598
15616
  host_id: hostId,
15599
15617
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -15643,7 +15661,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
15643
15661
  }
15644
15662
  try {
15645
15663
  const hostId = await getHostId();
15646
- const { collectDiagnostics } = await import("../persistent-session-MH5URKMO.js");
15664
+ const { collectDiagnostics } = await import("../persistent-session-FM5746XM.js");
15647
15665
  await api.post("/host/heartbeat", {
15648
15666
  host_id: hostId,
15649
15667
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -16167,7 +16185,7 @@ async function processClaudePairSessions(agents) {
16167
16185
  killPairSession,
16168
16186
  pairTmuxSession,
16169
16187
  finalizeClaudePairOnboarding
16170
- } = await import("../claude-pair-runtime-34ZO2AFF.js");
16188
+ } = await import("../claude-pair-runtime-R3R5OWDM.js");
16171
16189
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
16172
16190
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
16173
16191
  const killed = await killPairSession(pairTmuxSession(pairId));