@integrity-labs/agt-cli 0.28.1215 → 0.28.1216

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 (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-KZZZUC5N.js → chunk-B5ZQQ7Z2.js} +5 -1
  3. package/dist/chunk-B5ZQQ7Z2.js.map +1 -0
  4. package/dist/{chunk-BPXFPKJ4.js → chunk-KZMARLWR.js} +5 -5
  5. package/dist/{chunk-Y2PSZAJQ.js → chunk-QCQYDXYP.js} +3 -3
  6. package/dist/{chunk-K4Y3PMWM.js → chunk-QHO44YUB.js} +2 -2
  7. package/dist/{chunk-HZ4EL7WU.js → chunk-U63NF4FC.js} +2 -2
  8. package/dist/{claude-code-updater-PBEYKZ34.js → claude-code-updater-FTIWTIDK.js} +3 -3
  9. package/dist/{claude-pair-runtime-5RPDOVKD.js → claude-pair-runtime-M3QT5MWP.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/direct-chat-channel.js +4 -0
  12. package/dist/mcp/index.js +37 -5
  13. package/dist/mcp/origami.js +4 -0
  14. package/dist/mcp/slack-channel.js +4 -0
  15. package/dist/mcp/telegram-channel.js +4 -0
  16. package/dist/{persistent-session-NCDYGOAP.js → persistent-session-WEQTZT4Z.js} +4 -4
  17. package/dist/{responsiveness-probe-6BYTKCOJ.js → responsiveness-probe-LMBZ5JOK.js} +4 -4
  18. package/dist/{session-auth-dead-SO5JH3MQ.js → session-auth-dead-NRVMU7CE.js} +3 -3
  19. package/package.json +1 -1
  20. package/dist/chunk-KZZZUC5N.js.map +0 -1
  21. /package/dist/{chunk-BPXFPKJ4.js.map → chunk-KZMARLWR.js.map} +0 -0
  22. /package/dist/{chunk-Y2PSZAJQ.js.map → chunk-QCQYDXYP.js.map} +0 -0
  23. /package/dist/{chunk-K4Y3PMWM.js.map → chunk-QHO44YUB.js.map} +0 -0
  24. /package/dist/{chunk-HZ4EL7WU.js.map → chunk-U63NF4FC.js.map} +0 -0
  25. /package/dist/{claude-code-updater-PBEYKZ34.js.map → claude-code-updater-FTIWTIDK.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-5RPDOVKD.js.map → claude-pair-runtime-M3QT5MWP.js.map} +0 -0
  27. /package/dist/{persistent-session-NCDYGOAP.js.map → persistent-session-WEQTZT4Z.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-6BYTKCOJ.js.map → responsiveness-probe-LMBZ5JOK.js.map} +0 -0
  29. /package/dist/{session-auth-dead-SO5JH3MQ.js.map → session-auth-dead-NRVMU7CE.js.map} +0 -0
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-Y2PSZAJQ.js";
19
+ } from "./chunk-QCQYDXYP.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-HZ4EL7WU.js";
23
+ } from "./chunk-U63NF4FC.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  isConsumerTermsDialogVisible,
@@ -92,7 +92,7 @@ import {
92
92
  scanConfigForLiteralSecrets,
93
93
  worseConnectivityOutcome,
94
94
  wrapScheduledTaskPrompt
95
- } from "./chunk-KZZZUC5N.js";
95
+ } from "./chunk-B5ZQQ7Z2.js";
96
96
  import {
97
97
  claudeJsonPathFor,
98
98
  effectiveClaudeJsonPath,
@@ -8083,7 +8083,7 @@ function exchangeFailureKind(err) {
8083
8083
  }
8084
8084
 
8085
8085
  // src/lib/api-client.ts
8086
- var agtCliVersion = true ? "0.28.1215" : "dev";
8086
+ var agtCliVersion = true ? "0.28.1216" : "dev";
8087
8087
  var lastConfigHash = null;
8088
8088
  function setConfigHash(hash) {
8089
8089
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13684,4 +13684,4 @@ export {
13684
13684
  managerInstallSystemUnitCommand,
13685
13685
  managerUninstallSystemUnitCommand
13686
13686
  };
13687
- //# sourceMappingURL=chunk-BPXFPKJ4.js.map
13687
+ //# sourceMappingURL=chunk-KZMARLWR.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-HZ4EL7WU.js";
7
+ } from "./chunk-U63NF4FC.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-KZZZUC5N.js";
54
+ } from "./chunk-B5ZQQ7Z2.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6173,4 +6173,4 @@ export {
6173
6173
  stopAllSessionsAndWait,
6174
6174
  getProjectDir
6175
6175
  };
6176
- //# sourceMappingURL=chunk-Y2PSZAJQ.js.map
6176
+ //# sourceMappingURL=chunk-QCQYDXYP.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-KZZZUC5N.js";
7
+ } from "./chunk-B5ZQQ7Z2.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-K4Y3PMWM.js.map
725
+ //# sourceMappingURL=chunk-QHO44YUB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-KZZZUC5N.js";
3
+ } from "./chunk-B5ZQQ7Z2.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -240,4 +240,4 @@ export {
240
240
  peekPreviousSession,
241
241
  readDailySessionPin
242
242
  };
243
- //# sourceMappingURL=chunk-HZ4EL7WU.js.map
243
+ //# sourceMappingURL=chunk-U63NF4FC.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-K4Y3PMWM.js";
16
+ } from "./chunk-QHO44YUB.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-KZZZUC5N.js";
18
+ import "./chunk-B5ZQQ7Z2.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-PBEYKZ34.js.map
37
+ //# sourceMappingURL=claude-code-updater-FTIWTIDK.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-KZZZUC5N.js";
11
+ } from "./chunk-B5ZQQ7Z2.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-NCDYGOAP.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-WEQTZT4Z.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-5RPDOVKD.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-M3QT5MWP.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-BPXFPKJ4.js";
88
+ } from "../chunk-KZMARLWR.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-K4Y3PMWM.js";
102
+ } from "../chunk-QHO44YUB.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-Y2PSZAJQ.js";
195
+ } from "../chunk-QCQYDXYP.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-HZ4EL7WU.js";
205
+ } from "../chunk-U63NF4FC.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-KZZZUC5N.js";
333
+ } from "../chunk-B5ZQQ7Z2.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -15650,7 +15650,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15650
15650
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15651
15651
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15652
15652
  async function channelInboundActivityAgeSecondsFor(codeName) {
15653
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-6BYTKCOJ.js");
15653
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-LMBZ5JOK.js");
15654
15654
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15655
15655
  if (newest === null) return null;
15656
15656
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16447,7 +16447,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16447
16447
  var lastVersionCheckAt = 0;
16448
16448
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16449
16449
  var lastResponsivenessProbeAt = 0;
16450
- var agtCliVersion = true ? "0.28.1215" : "dev";
16450
+ var agtCliVersion = true ? "0.28.1216" : "dev";
16451
16451
  function resolveBrewPath(execFileSync3) {
16452
16452
  try {
16453
16453
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18351,7 +18351,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18351
18351
  if (codeNames.length === 0) return;
18352
18352
  void (async () => {
18353
18353
  try {
18354
- const { collectDiagnostics } = await import("../persistent-session-NCDYGOAP.js");
18354
+ const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
18355
18355
  await api.post("/host/heartbeat", {
18356
18356
  host_id: hostId,
18357
18357
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18494,7 +18494,7 @@ async function pollCycleInner() {
18494
18494
  }
18495
18495
  try {
18496
18496
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18497
- const { collectDiagnostics } = await import("../persistent-session-NCDYGOAP.js");
18497
+ const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
18498
18498
  const diagCodeNames = [...agentState.persistentSessionAgents];
18499
18499
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18500
18500
  let tailscaleHostname;
@@ -18752,7 +18752,7 @@ async function pollCycleInner() {
18752
18752
  }
18753
18753
  try {
18754
18754
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18755
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-PBEYKZ34.js");
18755
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-FTIWTIDK.js");
18756
18756
  const securityFloor = currentSecurityFloor();
18757
18757
  claudeUpdaterInFlight = true;
18758
18758
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18787,7 +18787,7 @@ async function pollCycleInner() {
18787
18787
  collectPanelessActivityProbes,
18788
18788
  getResponsivenessIntervalMs,
18789
18789
  occupancyQualificationClassifications
18790
- } = await import("../responsiveness-probe-6BYTKCOJ.js");
18790
+ } = await import("../responsiveness-probe-LMBZ5JOK.js");
18791
18791
  const probeIntervalMs = getResponsivenessIntervalMs();
18792
18792
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18793
18793
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18904,7 +18904,7 @@ async function pollCycleInner() {
18904
18904
  collectResponsivenessProbes,
18905
18905
  livePendingInboundOldestAgeSeconds,
18906
18906
  parkPendingInbound
18907
- } = await import("../responsiveness-probe-6BYTKCOJ.js");
18907
+ } = await import("../responsiveness-probe-LMBZ5JOK.js");
18908
18908
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18909
18909
  const wedgeNow = /* @__PURE__ */ new Date();
18910
18910
  const liveAgents = agentState.persistentSessionAgents;
@@ -19190,7 +19190,7 @@ async function pollCycleInner() {
19190
19190
  }
19191
19191
  }
19192
19192
  );
19193
- const { parkPendingInbound } = await import("../responsiveness-probe-6BYTKCOJ.js");
19193
+ const { parkPendingInbound } = await import("../responsiveness-probe-LMBZ5JOK.js");
19194
19194
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19195
19195
  paneFatalStreak.delete(codeName);
19196
19196
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19221,7 +19221,7 @@ async function pollCycleInner() {
19221
19221
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19222
19222
  bindSourceEscalations
19223
19223
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19224
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NCDYGOAP.js");
19224
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-WEQTZT4Z.js");
19225
19225
  const mountConfig = resolveTranscriptMountConfig();
19226
19226
  const liveAgents = agentState.persistentSessionAgents;
19227
19227
  for (const tracked of [
@@ -19386,7 +19386,7 @@ async function pollCycleInner() {
19386
19386
  }
19387
19387
  try {
19388
19388
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19389
- const { probeSessionAuth } = await import("../session-auth-dead-SO5JH3MQ.js");
19389
+ const { probeSessionAuth } = await import("../session-auth-dead-NRVMU7CE.js");
19390
19390
  const observations = [];
19391
19391
  const pendingCacheCommits = [];
19392
19392
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24116,7 +24116,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24116
24116
  try {
24117
24117
  const freshId = rotateSessionForWedge(codeName);
24118
24118
  consecutiveWedgeCycles.delete(codeName);
24119
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-6BYTKCOJ.js");
24119
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-LMBZ5JOK.js");
24120
24120
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24121
24121
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24122
24122
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24159,7 +24159,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24159
24159
  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}`));
24160
24160
  void (async () => {
24161
24161
  try {
24162
- const { collectDiagnostics } = await import("../persistent-session-NCDYGOAP.js");
24162
+ const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
24163
24163
  await api.post("/host/heartbeat", {
24164
24164
  host_id: hostId,
24165
24165
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24210,7 +24210,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24210
24210
  }
24211
24211
  try {
24212
24212
  const hostId = await getHostId();
24213
- const { collectDiagnostics } = await import("../persistent-session-NCDYGOAP.js");
24213
+ const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
24214
24214
  await api.post("/host/heartbeat", {
24215
24215
  host_id: hostId,
24216
24216
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24912,7 +24912,7 @@ async function processClaudePairSessions(agents) {
24912
24912
  snapshotPairConfig,
24913
24913
  // ENG-11659: result -> report body + the manager.log line that records it.
24914
24914
  planPairStartReport
24915
- } = await import("../claude-pair-runtime-5RPDOVKD.js");
24915
+ } = await import("../claude-pair-runtime-M3QT5MWP.js");
24916
24916
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24917
24917
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24918
24918
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -43626,6 +43626,10 @@ var WAITING_KINDS = [
43626
43626
  ];
43627
43627
  var WAITING_KIND_SET = new Set(WAITING_KINDS);
43628
43628
 
43629
+ // ../core/dist/kanban/manager-agent-wait.js
43630
+ var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
43631
+ var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
43632
+
43629
43633
  // ../core/dist/alerts/age.js
43630
43634
  var MINUTE_MS = 6e4;
43631
43635
  var HOUR_MS = 60 * MINUTE_MS;
package/dist/mcp/index.js CHANGED
@@ -29306,6 +29306,13 @@ function frameCardText(text, author, token, nextToken = newFrameToken) {
29306
29306
  ].join("\n");
29307
29307
  }
29308
29308
 
29309
+ // ../core/dist/kanban/manager-agent-wait.js
29310
+ var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
29311
+ var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
29312
+ function managerAgentDecisionHint(managerCodeName) {
29313
+ return `You report to a manager agent, @${managerCodeName}. If this is a scope, design or engineering decision, park it on them instead: kanban_move with waiting_kind="agent" and waiting_on_agent="${managerCodeName}". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}. The card is parked as you asked.`;
29314
+ }
29315
+
29309
29316
  // ../core/dist/directory/reports-to.js
29310
29317
  var MAX_REPORTS_TO_HOPS = 8;
29311
29318
  function describeReportsToOutcome(resolved) {
@@ -48197,6 +48204,12 @@ function owedReplyLines(item, frameToken = newFrameToken()) {
48197
48204
  if (!message) return [];
48198
48205
  return frameCardText(message, item.owed_reply_from_label, frameToken).split("\n").map((l) => ` ${l}`);
48199
48206
  }
48207
+ function blockedDetailsLines(item, frameToken = newFrameToken()) {
48208
+ if (!isBlockedOnMe(item)) return [];
48209
+ const details = (item.waiting_details ?? "").trim();
48210
+ if (!details) return [];
48211
+ return frameCardText(details, item.blocked_agent_label, frameToken).split("\n").map((l) => ` ${l}`);
48212
+ }
48200
48213
  function groupKanbanByStatus(items) {
48201
48214
  const groups = {};
48202
48215
  for (const item of items) {
@@ -48333,6 +48346,7 @@ ${OWED_REPLY_UNAVAILABLE_NOTE}` : empty;
48333
48346
  lines.push(BLOCKED_ON_ME_SECTION_NOTE);
48334
48347
  for (const item of blockedOnMe) {
48335
48348
  lines.push(renderKanbanItemLine(item, nowMs, ` [blocking ${item.blocked_agent_label}]`));
48349
+ lines.push(...blockedDetailsLines(item));
48336
48350
  }
48337
48351
  }
48338
48352
  if (owedByMe.length) {
@@ -48608,7 +48622,8 @@ function agentWaitingKindRejection(kind) {
48608
48622
  return `Error: waiting_on_agent cannot be used with waiting_kind="${kind ?? "unset"}". Use waiting_kind="agent" when a teammate agent is what is blocking you, or drop waiting_on_agent.`;
48609
48623
  }
48610
48624
  function personWaitingKindRejection(kind) {
48611
- return `Error: waiting_on_person cannot be used with waiting_kind="${kind ?? "unset"}". A "${kind}" wait is parked on a system or is unclassified, so there is no one to notify. Name a person on a "human" decision, or on a "pr-review"/"pr-merged" wait (the reviewer or whoever has to tap merge), or drop waiting_on_person. If a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent.`;
48625
+ return `Error: waiting_on_person cannot be used with waiting_kind="${kind ?? "unset"}". A "${kind}" wait is parked on a system or is unclassified, so there is no one to notify. Name a person on a "human" decision, or on a "pr-review"/"pr-merged" wait (the reviewer or whoever has to tap merge), or drop waiting_on_person. If a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent. ` + // ENG-11927: and a decision for your manager agent is an agent wait too.
48626
+ MANAGER_AGENT_WAIT_GUIDANCE;
48612
48627
  }
48613
48628
 
48614
48629
  // src/kanban-waiting-context-build.ts
@@ -48662,6 +48677,18 @@ function approvalRedirectNotice(data, match = {}) {
48662
48677
  return typeof e?.approval_request_id === "string" ? ` This card is already waiting on approval ${e.approval_request_id}; it stays parked on that approval.` : "";
48663
48678
  }).filter((m) => m.length > 0).join("");
48664
48679
  }
48680
+ function managerAgentHintNotice(data, match = {}) {
48681
+ const entries = data?.manager_agent_hints;
48682
+ if (!Array.isArray(entries) || entries.length === 0) return "";
48683
+ const relevant = entries.filter((e) => match.id === void 0 || e?.id === void 0 || e.id === match.id);
48684
+ for (const e of relevant) {
48685
+ if (typeof e?.manager_code_name === "string" && e.manager_code_name.trim()) {
48686
+ return ` ${managerAgentDecisionHint(e.manager_code_name.trim())}`;
48687
+ }
48688
+ if (typeof e?.message === "string" && e.message.trim()) return ` ${e.message.trim()}`;
48689
+ }
48690
+ return "";
48691
+ }
48665
48692
  function noticeCloseNotice(data) {
48666
48693
  const entries = data?.notice_close_warnings;
48667
48694
  if (!Array.isArray(entries) || entries.length === 0) return "";
@@ -50204,7 +50231,10 @@ server.tool(
50204
50231
  }
50205
50232
  );
50206
50233
  var kanbanMoveStatuses = AGT_KANBAN_WAITING_ENABLED ? ["backlog", "todo", "in_progress", "waiting", "done", "failed"] : ["backlog", "todo", "in_progress", "done", "failed"];
50207
- var kanbanMoveDescription = AGT_KANBAN_WAITING_ENABLED ? `Move a kanban item to a different status column. Use status="failed" for a task attempted but not completable. Use status="waiting" when you have COMPLETED your part and cannot proceed until one specific external action happens (a person approves/answers/decides, or a dependency like a PR merge or deploy completes). status="waiting" REQUIRES waiting_kind - classify the wait as "pr-review", "pr-merged", "human", "agent", "external", or "other" (the catch-all when none fit). For a PR wait ("pr-review"/"pr-merged") set waiting_repo ("owner/repo") and waiting_pr (the number) INSTEAD of waiting_on - the card then links straight to the PR and can auto-resume when it lands. For "human"/"external"/"other" set waiting_on to a one-line ask ("Answer my 5 scoping questions") AND put the full context the person needs to decide - the actual questions, options, links - in waiting_details, so they can answer from the card without opening a ticket. For "human" ALSO set waiting_on_person to that person's person_id (uuid, from directory_lookup \u2014 preferred) or their Slack user id, so the card lands in their "Awaiting you" queue and they are notified instead of your ask sitting unseen. When a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent (its code_name) - that notifies the agent and shows the card on its board as something it is holding up. Do NOT use waiting to offload hard work, and do NOT confuse it with a failure. (matches the hosted kanban_move enum).` : 'Move a kanban item to a different status column. Use status="failed" to mark a task that was attempted but could not complete (matches the hosted kanban_move enum).';
50234
+ var kanbanMoveDescription = AGT_KANBAN_WAITING_ENABLED ? `Move a kanban item to a different status column. Use status="failed" for a task attempted but not completable. Use status="waiting" when you have COMPLETED your part and cannot proceed until one specific external action happens (a person approves/answers/decides, or a dependency like a PR merge or deploy completes). status="waiting" REQUIRES waiting_kind - classify the wait as "pr-review", "pr-merged", "human", "agent", "external", or "other" (the catch-all when none fit). For a PR wait ("pr-review"/"pr-merged") set waiting_repo ("owner/repo") and waiting_pr (the number) INSTEAD of waiting_on - the card then links straight to the PR and can auto-resume when it lands. For "human"/"external"/"other" set waiting_on to a one-line ask ("Answer my 5 scoping questions") AND put the full context the person needs to decide - the actual questions, options, links - in waiting_details, so they can answer from the card without opening a ticket. For "human" ALSO set waiting_on_person to that person's person_id (uuid, from directory_lookup \u2014 preferred) or their Slack user id, so the card lands in their "Awaiting you" queue and they are notified instead of your ask sitting unseen. When a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent (its code_name) - that notifies the agent and shows the card on its board as something it is holding up. ` + // ENG-11927: without this, agents with a manager agent parked design and
50235
+ // scope questions on a human, because "a person must decide" was the only
50236
+ // sentence that fit.
50237
+ MANAGER_AGENT_WAIT_GUIDANCE + " Do NOT use waiting to offload hard work, and do NOT confuse it with a failure. (matches the hosted kanban_move enum)." : 'Move a kanban item to a different status column. Use status="failed" to mark a task that was attempted but could not complete (matches the hosted kanban_move enum).';
50208
50238
  var kanbanMoveStatusDescribe = AGT_KANBAN_WAITING_ENABLED ? 'Target status. "waiting" parks the card until one external action happens; it REQUIRES waiting_kind - use "pr-review"/"pr-merged" with waiting_repo + waiting_pr, "agent" with waiting_on_agent (a teammate agent is blocking you), or "human"/"external"/"other" with a concrete waiting_on. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.' : 'Target status. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.';
50209
50239
  server.tool(
50210
50240
  "kanban_move",
@@ -50219,10 +50249,10 @@ server.tool(
50219
50249
  'Only with status="waiting", for a NON-PR wait: a ONE-LINE headline of what you are parked on, phrased as an instruction ("Approve the budget", "Answer my 5 scoping questions"). Keep it short - it is the card headline. Put the FULL context the person needs to decide in waiting_details, not here. For a PR wait use waiting_kind/waiting_repo/waiting_pr instead.'
50220
50250
  ),
50221
50251
  waiting_details: external_exports.string().optional().describe(
50222
- `Only with status="waiting" on a "human"/"external"/"other" wait: the FULL context the person needs to make the decision, inline - the actual questions, the options, the specifics, any links. Put everything here so they can answer from the card alone; NEVER just point at a ticket ("see ENG-1234"). waiting_on stays the one-line headline; this is the body. Shown in full in the card's Respond panel; the card preview and chat notifications may show a truncated preview (kept within their limits).`
50252
+ `Only with status="waiting" on a "human"/"agent"/"external"/"other" wait: the FULL context the person (or, on an "agent" wait, the agent you park on - it reads this in its blocking notice and its board) needs to make the decision, inline - the actual questions, the options, the specifics, any links. Put everything here so they can answer from the card alone; NEVER just point at a ticket ("see ENG-1234"). waiting_on stays the one-line headline; this is the body. Shown in full in the card's Respond panel; the card preview and chat notifications may show a truncated preview (kept within their limits).`
50223
50253
  ),
50224
50254
  waiting_kind: external_exports.enum(["pr-review", "pr-merged", "human", "external", "other", "agent"]).optional().describe(
50225
- 'REQUIRED with status="waiting": classify what you are waiting on. "pr-review" = a pull request awaiting review, "pr-merged" = a reviewed PR awaiting merge (both require waiting_repo + waiting_pr and let the card link to the PR and auto-resume). "human" = a specific person must decide/answer, "external" = a non-PR system/process must complete (a deploy, CI, a third party); for those two put a one-line ask in waiting_on and the full decision context in waiting_details. "agent" = another AGENT has to act before you can continue - set waiting_on_agent to its code_name, which notifies it and puts the card on its board as something it is holding up. "other" = none of the above / unsure - the generic catch-all, same waiting_on + waiting_details. Always pick the most specific kind that fits; fall back to "other" rather than leaving it unset - but note "other" and "external" mean THERE IS NOBODY TO NOTIFY, so never use them when a person ("human") or a teammate agent ("agent") is what is actually blocking you.'
50255
+ 'REQUIRED with status="waiting": classify what you are waiting on. "pr-review" = a pull request awaiting review, "pr-merged" = a reviewed PR awaiting merge (both require waiting_repo + waiting_pr and let the card link to the PR and auto-resume). "human" = a specific person must decide/answer (if you report to a manager AGENT, a scope/design/engineering decision is an "agent" wait on it instead; "human" is for approvals, credentials, customer contact, merges, deploys, access and spend), "external" = a non-PR system/process must complete (a deploy, CI, a third party); for those two put a one-line ask in waiting_on and the full decision context in waiting_details. "agent" = another AGENT has to act before you can continue - set waiting_on_agent to its code_name, which notifies it and puts the card on its board as something it is holding up. "other" = none of the above / unsure - the generic catch-all, same waiting_on + waiting_details. Always pick the most specific kind that fits; fall back to "other" rather than leaving it unset - but note "other" and "external" mean THERE IS NOBODY TO NOTIFY, so never use them when a person ("human") or a teammate agent ("agent") is what is actually blocking you.'
50226
50256
  ),
50227
50257
  waiting_repo: external_exports.string().optional().describe(
50228
50258
  'Only with a pr-* waiting_kind: the "owner/repo" the pull request lives in (e.g. "Integrity-Labs/augmented").'
@@ -50329,7 +50359,9 @@ server.tool(
50329
50359
  label,
50330
50360
  // CS-2178: say so when the server kept the card on its pending approval
50331
50361
  // instead of the human wait asked for, or the agent re-asks on the card.
50332
- () => `Moved "${label}" \u2192 ${params.status}.${approvalRedirectNotice(data, { id: params.id })}`
50362
+ // ENG-11927: and say who the manager agent is when a human park should
50363
+ // probably have gone to it.
50364
+ () => `Moved "${label}" \u2192 ${params.status}.${approvalRedirectNotice(data, { id: params.id })}` + managerAgentHintNotice(data, { id: params.id })
50333
50365
  );
50334
50366
  return {
50335
50367
  content: [{ type: "text", text: outcome.text }],
@@ -43132,6 +43132,10 @@ var WAITING_KINDS = [
43132
43132
  ];
43133
43133
  var WAITING_KIND_SET = new Set(WAITING_KINDS);
43134
43134
 
43135
+ // ../core/dist/kanban/manager-agent-wait.js
43136
+ var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
43137
+ var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
43138
+
43135
43139
  // ../core/dist/alerts/age.js
43136
43140
  var MINUTE_MS = 6e4;
43137
43141
  var HOUR_MS = 60 * MINUTE_MS;
@@ -37981,6 +37981,10 @@ var WAITING_KINDS = [
37981
37981
  ];
37982
37982
  var WAITING_KIND_SET = new Set(WAITING_KINDS);
37983
37983
 
37984
+ // ../core/dist/kanban/manager-agent-wait.js
37985
+ var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
37986
+ var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
37987
+
37984
37988
  // ../core/dist/alerts/index.js
37985
37989
  init_snooze();
37986
37990
 
@@ -38172,6 +38172,10 @@ var WAITING_KINDS = [
38172
38172
  ];
38173
38173
  var WAITING_KIND_SET = new Set(WAITING_KINDS);
38174
38174
 
38175
+ // ../core/dist/kanban/manager-agent-wait.js
38176
+ var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
38177
+ var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
38178
+
38175
38179
  // ../core/dist/alerts/index.js
38176
38180
  init_snooze();
38177
38181
 
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-Y2PSZAJQ.js";
72
- import "./chunk-HZ4EL7WU.js";
71
+ } from "./chunk-QCQYDXYP.js";
72
+ import "./chunk-U63NF4FC.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-KZZZUC5N.js";
76
+ import "./chunk-B5ZQQ7Z2.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-NCDYGOAP.js.map
150
+ //# sourceMappingURL=persistent-session-WEQTZT4Z.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-Y2PSZAJQ.js";
4
- import "./chunk-HZ4EL7WU.js";
3
+ } from "./chunk-QCQYDXYP.js";
4
+ import "./chunk-U63NF4FC.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-KZZZUC5N.js";
8
+ import "./chunk-B5ZQQ7Z2.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-6BYTKCOJ.js.map
807
+ //# sourceMappingURL=responsiveness-probe-LMBZ5JOK.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-HZ4EL7WU.js";
4
- import "./chunk-KZZZUC5N.js";
3
+ } from "./chunk-U63NF4FC.js";
4
+ import "./chunk-B5ZQQ7Z2.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-SO5JH3MQ.js.map
208
+ //# sourceMappingURL=session-auth-dead-NRVMU7CE.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1215",
3
+ "version": "0.28.1216",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {