@integrity-labs/agt-cli 0.28.1220 → 0.28.1222

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 (28) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-YR5PKAAL.js → chunk-3QWPLCMX.js} +2 -2
  3. package/dist/{chunk-QGBIF6QK.js → chunk-4ZVBHY5Q.js} +3 -3
  4. package/dist/{chunk-WXJXO5TE.js → chunk-C6VRK3J2.js} +2 -2
  5. package/dist/{chunk-QAQIUHMS.js → chunk-IB2KIEVB.js} +5 -5
  6. package/dist/{chunk-R7UGBRUR.js → chunk-LBEB7SZN.js} +4 -1
  7. package/dist/{chunk-R7UGBRUR.js.map → chunk-LBEB7SZN.js.map} +1 -1
  8. package/dist/{claude-code-updater-FWBF4JTA.js → claude-code-updater-F7A6PTT6.js} +3 -3
  9. package/dist/{claude-pair-runtime-6BSR5RTE.js → claude-pair-runtime-QKW3I3CB.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/direct-chat-channel.js +3 -0
  12. package/dist/mcp/index.js +39 -8
  13. package/dist/mcp/origami.js +3 -0
  14. package/dist/mcp/slack-channel.js +3 -0
  15. package/dist/mcp/telegram-channel.js +3 -0
  16. package/dist/{persistent-session-YMVE4OG5.js → persistent-session-NRSFC2WX.js} +4 -4
  17. package/dist/{responsiveness-probe-DD7LCTAS.js → responsiveness-probe-354D22GE.js} +4 -4
  18. package/dist/{session-auth-dead-QZOUWP4O.js → session-auth-dead-GQGLYVIG.js} +3 -3
  19. package/package.json +1 -1
  20. /package/dist/{chunk-YR5PKAAL.js.map → chunk-3QWPLCMX.js.map} +0 -0
  21. /package/dist/{chunk-QGBIF6QK.js.map → chunk-4ZVBHY5Q.js.map} +0 -0
  22. /package/dist/{chunk-WXJXO5TE.js.map → chunk-C6VRK3J2.js.map} +0 -0
  23. /package/dist/{chunk-QAQIUHMS.js.map → chunk-IB2KIEVB.js.map} +0 -0
  24. /package/dist/{claude-code-updater-FWBF4JTA.js.map → claude-code-updater-F7A6PTT6.js.map} +0 -0
  25. /package/dist/{claude-pair-runtime-6BSR5RTE.js.map → claude-pair-runtime-QKW3I3CB.js.map} +0 -0
  26. /package/dist/{persistent-session-YMVE4OG5.js.map → persistent-session-NRSFC2WX.js.map} +0 -0
  27. /package/dist/{responsiveness-probe-DD7LCTAS.js.map → responsiveness-probe-354D22GE.js.map} +0 -0
  28. /package/dist/{session-auth-dead-QZOUWP4O.js.map → session-auth-dead-GQGLYVIG.js.map} +0 -0
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-WXJXO5TE.js";
16
+ } from "./chunk-C6VRK3J2.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-R7UGBRUR.js";
18
+ import "./chunk-LBEB7SZN.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-FWBF4JTA.js.map
37
+ //# sourceMappingURL=claude-code-updater-F7A6PTT6.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-R7UGBRUR.js";
11
+ } from "./chunk-LBEB7SZN.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-YMVE4OG5.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-NRSFC2WX.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-6BSR5RTE.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-QKW3I3CB.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-QAQIUHMS.js";
88
+ } from "../chunk-IB2KIEVB.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-WXJXO5TE.js";
102
+ } from "../chunk-C6VRK3J2.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -192,7 +192,7 @@ import {
192
192
  webFetchBaselineValue,
193
193
  webFetchRestartNeeded,
194
194
  writeEgressAllowlist
195
- } from "../chunk-QGBIF6QK.js";
195
+ } from "../chunk-4ZVBHY5Q.js";
196
196
  import {
197
197
  isAgentIdle,
198
198
  isStaleForToday,
@@ -202,7 +202,7 @@ import {
202
202
  sessionTranscriptDir,
203
203
  subagentActivityAgeSeconds,
204
204
  transcriptActivityAgeSeconds
205
- } from "../chunk-YR5PKAAL.js";
205
+ } from "../chunk-3QWPLCMX.js";
206
206
  import {
207
207
  classifyUnanswerablePane,
208
208
  focusedConfirmDialogBlock,
@@ -330,7 +330,7 @@ import {
330
330
  stabiliseResetInstant,
331
331
  sumTranscriptUsageInWindow,
332
332
  summarizeTranscriptActivity
333
- } from "../chunk-R7UGBRUR.js";
333
+ } from "../chunk-LBEB7SZN.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -15656,7 +15656,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15656
15656
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15657
15657
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15658
15658
  async function channelInboundActivityAgeSecondsFor(codeName) {
15659
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-DD7LCTAS.js");
15659
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-354D22GE.js");
15660
15660
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15661
15661
  if (newest === null) return null;
15662
15662
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16455,7 +16455,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16455
16455
  var lastVersionCheckAt = 0;
16456
16456
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16457
16457
  var lastResponsivenessProbeAt = 0;
16458
- var agtCliVersion = true ? "0.28.1220" : "dev";
16458
+ var agtCliVersion = true ? "0.28.1222" : "dev";
16459
16459
  function resolveBrewPath(execFileSync3) {
16460
16460
  try {
16461
16461
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18437,7 +18437,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18437
18437
  if (codeNames.length === 0) return;
18438
18438
  void (async () => {
18439
18439
  try {
18440
- const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
18440
+ const { collectDiagnostics } = await import("../persistent-session-NRSFC2WX.js");
18441
18441
  await api.post("/host/heartbeat", {
18442
18442
  host_id: hostId,
18443
18443
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18580,7 +18580,7 @@ async function pollCycleInner() {
18580
18580
  }
18581
18581
  try {
18582
18582
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18583
- const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
18583
+ const { collectDiagnostics } = await import("../persistent-session-NRSFC2WX.js");
18584
18584
  const diagCodeNames = [...agentState.persistentSessionAgents];
18585
18585
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18586
18586
  let tailscaleHostname;
@@ -18845,7 +18845,7 @@ async function pollCycleInner() {
18845
18845
  }
18846
18846
  try {
18847
18847
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18848
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-FWBF4JTA.js");
18848
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-F7A6PTT6.js");
18849
18849
  const securityFloor = currentSecurityFloor();
18850
18850
  claudeUpdaterInFlight = true;
18851
18851
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18880,7 +18880,7 @@ async function pollCycleInner() {
18880
18880
  collectPanelessActivityProbes,
18881
18881
  getResponsivenessIntervalMs,
18882
18882
  occupancyQualificationClassifications
18883
- } = await import("../responsiveness-probe-DD7LCTAS.js");
18883
+ } = await import("../responsiveness-probe-354D22GE.js");
18884
18884
  const probeIntervalMs = getResponsivenessIntervalMs();
18885
18885
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18886
18886
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18997,7 +18997,7 @@ async function pollCycleInner() {
18997
18997
  collectResponsivenessProbes,
18998
18998
  livePendingInboundOldestAgeSeconds,
18999
18999
  parkPendingInbound
19000
- } = await import("../responsiveness-probe-DD7LCTAS.js");
19000
+ } = await import("../responsiveness-probe-354D22GE.js");
19001
19001
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
19002
19002
  const wedgeNow = /* @__PURE__ */ new Date();
19003
19003
  const liveAgents = agentState.persistentSessionAgents;
@@ -19283,7 +19283,7 @@ async function pollCycleInner() {
19283
19283
  }
19284
19284
  }
19285
19285
  );
19286
- const { parkPendingInbound } = await import("../responsiveness-probe-DD7LCTAS.js");
19286
+ const { parkPendingInbound } = await import("../responsiveness-probe-354D22GE.js");
19287
19287
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19288
19288
  paneFatalStreak.delete(codeName);
19289
19289
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19314,7 +19314,7 @@ async function pollCycleInner() {
19314
19314
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19315
19315
  bindSourceEscalations
19316
19316
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19317
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-YMVE4OG5.js");
19317
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NRSFC2WX.js");
19318
19318
  const mountConfig = resolveTranscriptMountConfig();
19319
19319
  const liveAgents = agentState.persistentSessionAgents;
19320
19320
  for (const tracked of [
@@ -19479,7 +19479,7 @@ async function pollCycleInner() {
19479
19479
  }
19480
19480
  try {
19481
19481
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19482
- const { probeSessionAuth } = await import("../session-auth-dead-QZOUWP4O.js");
19482
+ const { probeSessionAuth } = await import("../session-auth-dead-GQGLYVIG.js");
19483
19483
  const observations = [];
19484
19484
  const pendingCacheCommits = [];
19485
19485
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24210,7 +24210,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24210
24210
  try {
24211
24211
  const freshId = rotateSessionForWedge(codeName);
24212
24212
  consecutiveWedgeCycles.delete(codeName);
24213
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-DD7LCTAS.js");
24213
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-354D22GE.js");
24214
24214
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24215
24215
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24216
24216
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24253,7 +24253,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24253
24253
  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}`));
24254
24254
  void (async () => {
24255
24255
  try {
24256
- const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
24256
+ const { collectDiagnostics } = await import("../persistent-session-NRSFC2WX.js");
24257
24257
  await api.post("/host/heartbeat", {
24258
24258
  host_id: hostId,
24259
24259
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24304,7 +24304,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24304
24304
  }
24305
24305
  try {
24306
24306
  const hostId = await getHostId();
24307
- const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
24307
+ const { collectDiagnostics } = await import("../persistent-session-NRSFC2WX.js");
24308
24308
  await api.post("/host/heartbeat", {
24309
24309
  host_id: hostId,
24310
24310
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25006,7 +25006,7 @@ async function processClaudePairSessions(agents) {
25006
25006
  snapshotPairConfig,
25007
25007
  // ENG-11659: result -> report body + the manager.log line that records it.
25008
25008
  planPairStartReport
25009
- } = await import("../claude-pair-runtime-6BSR5RTE.js");
25009
+ } = await import("../claude-pair-runtime-QKW3I3CB.js");
25010
25010
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25011
25011
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25012
25012
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -43606,6 +43606,9 @@ var NO_TRANSCRIPT_ACTIVITY = Object.freeze({
43606
43606
  });
43607
43607
  var AGENT_STATUS_STALE_MS = 10 * 60 * 1e3;
43608
43608
 
43609
+ // ../core/dist/claude-code-usage/orphaned-card.js
43610
+ var ORPHANED_CARD_QUIET_MS = 30 * 60 * 1e3;
43611
+
43609
43612
  // ../core/dist/account-enforcement/marker.js
43610
43613
  var ACCOUNT_ENFORCEMENT_MARKER_FILENAME = "account-enforcement.json";
43611
43614
  var ACCOUNT_ENFORCEMENT_MARKER_VERSION = 1;
package/dist/mcp/index.js CHANGED
@@ -29274,6 +29274,9 @@ var NO_TRANSCRIPT_ACTIVITY = Object.freeze({
29274
29274
  });
29275
29275
  var AGENT_STATUS_STALE_MS = 10 * 60 * 1e3;
29276
29276
 
29277
+ // ../core/dist/claude-code-usage/orphaned-card.js
29278
+ var ORPHANED_CARD_QUIET_MS = 30 * 60 * 1e3;
29279
+
29277
29280
  // ../core/dist/kanban/state-machine.js
29278
29281
  var KANBAN_STATUSES = [
29279
29282
  "backlog",
@@ -48613,6 +48616,7 @@ function renderKanbanParkedError(target, message) {
48613
48616
  }
48614
48617
  return `Could not read ${target}'s cards: ${message}`;
48615
48618
  }
48619
+ var ORPHAN_BLIND_SPOT_WARNING = "Background subagents and shells are not visible to this check; look at the agent's pane before closing.";
48616
48620
  function parkedActParamError(params) {
48617
48621
  if (params.action === "reassign" && !params.new_owner) return "reassign needs new_owner.";
48618
48622
  if (params.action === "escalate" && !params.person_id) return "escalate needs person_id, from directory_lookup.";
@@ -48628,8 +48632,10 @@ function renderKanbanParkedAct(data, token = newFrameToken()) {
48628
48632
  escalate: "Escalated",
48629
48633
  reopen: "Reopened"
48630
48634
  };
48635
+ const released = data.action === "close" && data.from_status === "in_progress";
48631
48636
  const lines = [
48632
- `${verb[data.action ?? ""] ?? "Changed"} card ${data.id ?? ""}: ${data.from_status ?? "?"} -> ${data.status ?? "?"}.`,
48637
+ `${released ? "Released" : verb[data.action ?? ""] ?? "Changed"} card ${data.id ?? ""}: ${data.from_status ?? "?"} -> ${data.status ?? "?"}.`,
48638
+ ...released ? ["A released in-progress card cannot be reopened with this tool.", ORPHAN_BLIND_SPOT_WARNING] : [],
48633
48639
  frameCardText(`title: ${oneLine(data.title ?? "")}`, "whoever filed the card", token),
48634
48640
  data.owner_notified ? "The owning agent was told." : "The owning agent could NOT be told: tell it yourself."
48635
48641
  ];
@@ -49648,6 +49654,9 @@ function describeKanbanRespondOutcome(data) {
49648
49654
  return data.delivered === false ? `Answer added as a note on the card and it is on ${who}'s board as a reply they owe. The instant notice did not go out, so they will see it at their next board walk. It is off your plate.` : `Answer delivered to ${who} as a note on the card. It shows on their board until they answer, and their answer comes back to yours. It is off your plate.`;
49649
49655
  }
49650
49656
  if (data.ok && data.delivered !== false) {
49657
+ if (data.answered_as === "manager") {
49658
+ return "Answer delivered as their manager. Their card is un-parked and back on their board, so it is off your plate. The person it was parked on was not told; if they need to know the decision is made, tell them.";
49659
+ }
49651
49660
  return "Answer delivered. Their card is un-parked and back on their board \u2014 they will pick it up from here, so it is off your plate.";
49652
49661
  }
49653
49662
  if (data.reason === "recorded_undelivered" || data.ok && data.delivered === false) {
@@ -49661,13 +49670,31 @@ function describeKanbanRespondOutcome(data) {
49661
49670
  return data.error ?? "Could not send your answer.";
49662
49671
  }
49663
49672
  var REFUSAL_MESSAGES = {
49664
- not_found: () => 'No card is parked on you or owed a reply by you with that id. Re-read kanban_list \u2014 only cards under "You are blocking these" or "Replies you owe" can be answered here, and the id must be copied exactly.',
49673
+ not_found: () => `No card you can answer has that id. Re-read kanban_list for a card under "You are blocking these" or "Replies you owe", or, as a manager, kanban_parked for a DIRECT report's card parked on a person (ENG-11927). Copy the id exactly. A grand-report's card, or one on another team, cannot be answered here.`,
49665
49674
  self_block: () => "That card is parked on YOU by you \u2014 a self-block, almost always a mistyped code_name when it was parked. Fix it on your own card rather than answering it.",
49666
49675
  already_responded: () => "Someone already answered that card, so it has resumed. Nothing more to do.",
49667
49676
  not_actionable: (d) => `That card is no longer parked (status: ${d.status ?? "unknown"}), so there is nothing to un-park. The agent has moved on.`,
49677
+ // ENG-11927 ask 3: a manager may answer a report's card only when it is parked on a person.
49678
+ not_human_wait: (d) => d.waiting_kind === "approval" ? "That card is parked on a pending approval, and the approval decides it, not an answer here. Nothing was changed. Use approval_annotate to add your recommendation instead." : `That card is parked on "${d.waiting_kind ?? "something other than a person"}", not on a person, so a manager cannot answer it here. Nothing was changed. If it is parked on another agent, that agent answers it.`,
49668
49679
  recorded_not_unparked: () => "Your answer was recorded but the card could not be un-parked, so the agent is still blocked \u2014 tell them directly and check the card."
49669
49680
  };
49670
49681
  var HANDLED_REFUSAL_REASONS = Object.keys(REFUSAL_MESSAGES).sort();
49682
+ function describeKanbanRespondRejection(status, body) {
49683
+ if (status !== 404 && status !== 409) return null;
49684
+ if (!body) return null;
49685
+ let parsed;
49686
+ try {
49687
+ parsed = JSON.parse(body);
49688
+ } catch {
49689
+ return null;
49690
+ }
49691
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
49692
+ const data = parsed;
49693
+ if (data.ok !== false || typeof data.reason !== "string" || !HANDLED_REFUSAL_REASONS.includes(data.reason)) {
49694
+ return null;
49695
+ }
49696
+ return describeKanbanRespondOutcome(data);
49697
+ }
49671
49698
 
49672
49699
  // src/kanban-update.ts
49673
49700
  function buildKanbanUpdateItem(id, fields) {
@@ -50028,9 +50055,10 @@ async function getToken() {
50028
50055
  return AGT_TOKEN;
50029
50056
  }
50030
50057
  var ApiPostError = class extends Error {
50031
- constructor(message, status) {
50058
+ constructor(message, status, responseBody = null) {
50032
50059
  super(message);
50033
50060
  this.status = status;
50061
+ this.responseBody = responseBody;
50034
50062
  this.name = "ApiPostError";
50035
50063
  }
50036
50064
  };
@@ -50070,7 +50098,8 @@ async function apiPost(path, body, retried = false, timeoutMs = 15e3, toolName,
50070
50098
  status: res.status,
50071
50099
  body: text
50072
50100
  }),
50073
- res.status
50101
+ res.status,
50102
+ text
50074
50103
  );
50075
50104
  }
50076
50105
  try {
@@ -50978,7 +51007,7 @@ server.tool(
50978
51007
  );
50979
51008
  server.tool(
50980
51009
  "kanban_parked",
50981
- "List the cards of an agent that reports directly to you, oldest first. By default its parked cards (needs_attention and waiting); pass column for its active cards, for example to find out what a todo card sitting for hours is. Each card shows its title, column, age, why it was parked where that is recorded (origin, waiting kind, waiting-on line), and the ticket or PR reference stored on it. Read-only: it changes nothing on the board. It never returns descriptions, results or notes. References are as stored, with no live ticket or PR state, and a linked reference can be a chat thread rather than a ticket. Only the direct reports-to manager can read this, the agent must be on your own team, and a manager-only agent refuses it. Use kanban_peek for counts on any teammate. Don't know the agent's code_name? Call directory_lookup first.",
51010
+ "List the cards of an agent that reports directly to you, oldest first. By default its parked cards (needs_attention and waiting); pass column for its active cards, for example to find out what a todo card sitting for hours is. Each card shows its title, column, age, why it was parked where that is recorded (origin, waiting kind, waiting-on line), and the ticket or PR reference stored on it. Read-only: it changes nothing on the board. It never returns descriptions, results or notes. A card waiting on a person (waiting kind human) is a decision you can make: answer it in place with kanban_respond and its id (ENG-11927). References are as stored, with no live ticket or PR state, and a linked reference can be a chat thread rather than a ticket. Only the direct reports-to manager can read this, the agent must be on your own team, and a manager-only agent refuses it. Use kanban_peek for counts on any teammate. Don't know the agent's code_name? Call directory_lookup first.",
50982
51011
  {
50983
51012
  target_agent: external_exports.string().describe("The agent that reports to you: its agent code_name (kebab-case) or agent UUID."),
50984
51013
  column: external_exports.enum(["needs_attention", "waiting", "in_progress", "todo", "backlog", "active"]).optional().describe('Only this column. "active" means in_progress, todo and backlog together. Omit for needs_attention and waiting.'),
@@ -51015,7 +51044,7 @@ server.tool(
51015
51044
  );
51016
51045
  server.tool(
51017
51046
  "kanban_parked_act",
51018
- "Act on ONE parked card (needs_attention or waiting) belonging to an agent that reports directly to you. close: the card is dead. It becomes failed with your reason, nobody is told it completed, and a linked ticket is not touched. reassign: move it to another agent on your team (new_owner), keeping its column. escalate: park it on a named person (person_id from directory_lookup), who is notified; the owner keeps the card. reopen: undo your last close, reassign or escalate on this card, restoring what it replaced. Check a linked ticket or PR yourself before closing: this tool does not look it up. A reason is required, the owning agent is told, and every call is audited. Refused for in-progress, todo, backlog, done and failed cards, for cards parked on a pending approval, for any agent that does not report directly to you, and for a manager-only agent. Use kanban_parked first to get the card id.",
51047
+ `Act on ONE card belonging to an agent that reports directly to you: a parked card (needs_attention or waiting), or an ORPHANED in_progress card (its owner has been idle or killed for 30+ minutes since its last completed turn, with nothing logged or progressed on the card since), or a todo/backlog card to reassign. close: the card is dead, or (in_progress) released so its owner stops holding it. It becomes failed with your reason, nobody is told it completed, and a linked ticket is not touched. reassign: move it to another agent on your team (new_owner), keeping its column. escalate: park a parked card on a named person (person_id from directory_lookup), who is notified; the owner keeps the card. reopen: undo your last close, reassign or escalate on this card, restoring what it replaced. A released in_progress card cannot be reopened. Check a linked ticket or PR yourself before closing: this tool does not look it up. ${ORPHAN_BLIND_SPOT_WARNING} A reason is required, the owning agent is told, and every call is audited. Refused for done and failed cards, for an in_progress card whose owner may still be working it (mid-turn, blocked on a prompt, not reporting, or active in the last 30 minutes), for cards parked on a pending approval, for any agent that does not report directly to you, and for a manager-only agent. Use kanban_parked first to get the card id (column "active" lists in_progress, todo and backlog).`,
51019
51048
  {
51020
51049
  target_agent: external_exports.string().describe("The agent that reports to you and holds the card: code_name (kebab-case) or agent UUID."),
51021
51050
  card_id: external_exports.string().uuid().describe("The card id, from kanban_parked."),
@@ -51182,10 +51211,10 @@ server.tool(
51182
51211
  );
51183
51212
  server.tool(
51184
51213
  "kanban_respond",
51185
- 'Answer another agent on a card that is not yours to move. Two cases, both listed by kanban_list: (1) "You are blocking these" - a card another agent PARKED on you; it has stopped until you act, and your answer is delivered onto that card and un-parks it. (2) "Replies you owe" - a note another agent left you on a card (ENG-11483); your answer is added as a note and goes back to their board, and passing expects_reply: false ends the exchange quietly. A reply owed on one of YOUR OWN active cards stays in its status section, marked "[reply owed to @x]" - answer that the same way. Either way, do the thing asked, then send the answer here. Do NOT create a second card to carry it - it would sit beside the one it answers, joined by nothing. Only the agent the card names (the one it is parked on, or the one owing the reply) can answer it.',
51214
+ `Answer another agent on a card that is not yours to move. Two cases, both listed by kanban_list: (1) "You are blocking these" - a card another agent PARKED on you; it has stopped until you act, and your answer is delivered onto that card and un-parks it. (2) "Replies you owe" - a note another agent left you on a card (ENG-11483); your answer is added as a note and goes back to their board, and passing expects_reply: false ends the exchange quietly. A reply owed on one of YOUR OWN active cards stays in its status section, marked "[reply owed to @x]" - answer that the same way. Either way, do the thing asked, then send the answer here. Do NOT create a second card to carry it - it would sit beside the one it answers, joined by nothing. Only the agent the card names (the one it is parked on, or the one owing the reply) can answer it, with one addition (ENG-11927): a manager agent can also answer its DIRECT report's card that is parked on a PERSON (waiting_kind "human", as kanban_parked lists it), in place, so the person does not have to route a decision that is yours to make. Not a grand-report's card, not a card parked on an approval or anything other than a person.`,
51186
51215
  {
51187
51216
  card_id: external_exports.string().describe(
51188
- 'The card id, exactly as kanban_list shows it: under "You are blocking these", under "Replies you owe", or on your own card marked "[reply owed to @x]".'
51217
+ `The card id, exactly as kanban_list shows it: under "You are blocking these", under "Replies you owe", or on your own card marked "[reply owed to @x]". As a manager, the id kanban_parked shows for a direct report's card parked on a person.`
51189
51218
  ),
51190
51219
  text: external_exports.string().optional().describe(
51191
51220
  "Your answer, self-contained. This is what the blocked agent resumes on, so give it the ANSWER rather than a pointer to one - it cannot see your board, your session or your files. Required unless you are picking a choice with `value`."
@@ -51208,6 +51237,8 @@ server.tool(
51208
51237
  ...typeof params.expects_reply === "boolean" ? { expects_reply: params.expects_reply } : {}
51209
51238
  });
51210
51239
  } catch (err) {
51240
+ const refusal = err instanceof ApiPostError ? describeKanbanRespondRejection(err.status, err.responseBody) : null;
51241
+ if (refusal !== null) return { content: [{ type: "text", text: refusal }] };
51211
51242
  return {
51212
51243
  content: [{ type: "text", text: `Could not send your answer: ${err.message}` }]
51213
51244
  };
@@ -43123,6 +43123,9 @@ var NO_TRANSCRIPT_ACTIVITY = Object.freeze({
43123
43123
  });
43124
43124
  var AGENT_STATUS_STALE_MS = 10 * 60 * 1e3;
43125
43125
 
43126
+ // ../core/dist/claude-code-usage/orphaned-card.js
43127
+ var ORPHANED_CARD_QUIET_MS = 30 * 60 * 1e3;
43128
+
43126
43129
  // ../core/dist/kanban/state-machine.js
43127
43130
  var KANBAN_STATUSES = [
43128
43131
  "backlog",
@@ -37939,6 +37939,9 @@ var NO_TRANSCRIPT_ACTIVITY = Object.freeze({
37939
37939
  });
37940
37940
  var AGENT_STATUS_STALE_MS = 10 * 60 * 1e3;
37941
37941
 
37942
+ // ../core/dist/claude-code-usage/orphaned-card.js
37943
+ var ORPHANED_CARD_QUIET_MS = 30 * 60 * 1e3;
37944
+
37942
37945
  // ../core/dist/account-enforcement/marker.js
37943
37946
  var ACCOUNT_ENFORCEMENT_MARKER_FILENAME = "account-enforcement.json";
37944
37947
  var ACCOUNT_ENFORCEMENT_MARKER_VERSION = 1;
@@ -38130,6 +38130,9 @@ var NO_TRANSCRIPT_ACTIVITY = Object.freeze({
38130
38130
  });
38131
38131
  var AGENT_STATUS_STALE_MS = 10 * 60 * 1e3;
38132
38132
 
38133
+ // ../core/dist/claude-code-usage/orphaned-card.js
38134
+ var ORPHANED_CARD_QUIET_MS = 30 * 60 * 1e3;
38135
+
38133
38136
  // ../core/dist/account-enforcement/marker.js
38134
38137
  var ACCOUNT_ENFORCEMENT_MARKER_FILENAME = "account-enforcement.json";
38135
38138
  var ACCOUNT_ENFORCEMENT_MARKER_VERSION = 1;
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-QGBIF6QK.js";
72
- import "./chunk-YR5PKAAL.js";
71
+ } from "./chunk-4ZVBHY5Q.js";
72
+ import "./chunk-3QWPLCMX.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-R7UGBRUR.js";
76
+ import "./chunk-LBEB7SZN.js";
77
77
  import "./chunk-AIUIMEUS.js";
78
78
  import "./chunk-DGUM43GV.js";
79
79
  export {
@@ -147,4 +147,4 @@ export {
147
147
  writeEgressAllowlist,
148
148
  writePersistentClaudeWrapper
149
149
  };
150
- //# sourceMappingURL=persistent-session-YMVE4OG5.js.map
150
+ //# sourceMappingURL=persistent-session-NRSFC2WX.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-QGBIF6QK.js";
4
- import "./chunk-YR5PKAAL.js";
3
+ } from "./chunk-4ZVBHY5Q.js";
4
+ import "./chunk-3QWPLCMX.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-R7UGBRUR.js";
8
+ import "./chunk-LBEB7SZN.js";
9
9
  import "./chunk-AIUIMEUS.js";
10
10
  import "./chunk-DGUM43GV.js";
11
11
 
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-DD7LCTAS.js.map
807
+ //# sourceMappingURL=responsiveness-probe-354D22GE.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-YR5PKAAL.js";
4
- import "./chunk-R7UGBRUR.js";
3
+ } from "./chunk-3QWPLCMX.js";
4
+ import "./chunk-LBEB7SZN.js";
5
5
  import "./chunk-DGUM43GV.js";
6
6
 
7
7
  // src/lib/session-auth-dead.ts
@@ -205,4 +205,4 @@ export {
205
205
  decideSessionAuthState,
206
206
  probeSessionAuth
207
207
  };
208
- //# sourceMappingURL=session-auth-dead-QZOUWP4O.js.map
208
+ //# sourceMappingURL=session-auth-dead-GQGLYVIG.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1220",
3
+ "version": "0.28.1222",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {