@integrity-labs/agt-cli 0.28.648 → 0.28.650

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.
@@ -16,7 +16,7 @@ import {
16
16
  rotateDailySession,
17
17
  sessionFileExists,
18
18
  todayLocalIso
19
- } from "./chunk-WP6LYCRS.js";
19
+ } from "./chunk-ZAZKEL4Y.js";
20
20
  import {
21
21
  reapOrphanChannelMcps
22
22
  } from "./chunk-XWVM4KPK.js";
@@ -2445,6 +2445,15 @@ function isMcpServersDialogVisible(screen) {
2445
2445
  if (!block) return false;
2446
2446
  return block.some((l) => MCP_DIALOG_OPTIONS.some((label) => optionRowDigit(l, label) !== null));
2447
2447
  }
2448
+ var MCP_CHECKBOX_HEADER = /new MCP servers? found in this project/i;
2449
+ var MCP_CHECKED_ROW = /^[^\S\n]*(?:❯[^\S\n]*)?\[[✓x]\][^\S\n]*\S/iu;
2450
+ var MCP_CHECKBOX_BLOCK_LINES = 20;
2451
+ function isMcpCheckboxDialogVisible(screen) {
2452
+ const block = focusedModalBlock(screen, MCP_CHECKBOX_BLOCK_LINES);
2453
+ if (!block) return false;
2454
+ if (!block.some((l) => MCP_CHECKBOX_HEADER.test(l))) return false;
2455
+ return block.some((l) => MCP_CHECKED_ROW.test(l));
2456
+ }
2448
2457
  function usageLimitModalBlock(screen) {
2449
2458
  const lines = screen.split("\n");
2450
2459
  let footer = -1;
@@ -2541,7 +2550,7 @@ function sweepDialogs(screen) {
2541
2550
  logMessage: "Auto-accepted dev channels"
2542
2551
  };
2543
2552
  }
2544
- if (isMcpServersDialogVisible(screen)) {
2553
+ if (isMcpServersDialogVisible(screen) || isMcpCheckboxDialogVisible(screen)) {
2545
2554
  return {
2546
2555
  kind: "mcp-servers",
2547
2556
  keys: ["Enter"],
@@ -4313,4 +4322,4 @@ export {
4313
4322
  stopAllSessionsAndWait,
4314
4323
  getProjectDir
4315
4324
  };
4316
- //# sourceMappingURL=chunk-UTNGCJLO.js.map
4325
+ //# sourceMappingURL=chunk-CSLG2XMX.js.map