@chatcode/chatcode-cli 3.0.5-rc.3 → 3.0.5-rc.5

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 (34) hide show
  1. package/README.md +2 -0
  2. package/README.zh.md +2 -0
  3. package/lib/{command-errors-ChiY9aSU.js → command-errors-DGyKMxEq.js} +12 -12
  4. package/lib/{command-trees-D1yNnMLf.js → command-trees-Bh2WKUZ3.js} +2 -2
  5. package/lib/{component-identity-BXmlpdls.js → component-identity-B7wyM-aN.js} +3 -3
  6. package/lib/{extension-events-BBvUPMbs.js → extension-events-JX8c4mnR.js} +20 -20
  7. package/lib/{host-access-DCtUmgis.js → host-access-ClndygbX.js} +1 -1
  8. package/lib/{keymap-CeRpxc9c.js → keymap-nfqAZoFE.js} +2 -2
  9. package/lib/{plugin-DQAJoZvM.js → plugin-C9yd07Wb.js} +753 -630
  10. package/lib/{scenes-NsR-REtH.js → scenes-C5_xUR61.js} +3 -3
  11. package/lib/{settings-sections-DgB-eDtZ.js → settings-sections-CRhTUEBm.js} +3 -3
  12. package/lib/{statusBarSettings-5yzdiOv1.js → statusBarSettings-ChS8Z4Jf.js} +3 -3
  13. package/lib/{themes-DpFOCFEc.js → themes-bFi516uK.js} +12 -12
  14. package/lib/tui-compat-command-trees.js +1 -1
  15. package/lib/tui-compat-extensions.js +3 -3
  16. package/lib/tui-compat-plugin-host.js +5 -5
  17. package/lib/tui-compat-scenes.js +1 -1
  18. package/lib/tui-compat-settings-sections.js +1 -1
  19. package/lib/tui-compat-working-activity.js +1 -1
  20. package/lib/tui-compat-workspaces.js +1 -1
  21. package/lib/tui-compat.js +5 -5
  22. package/lib/{workspaces-CVtLIC34.js → workspaces-ous4jIwo.js} +2 -2
  23. package/package.json +27 -27
  24. package/runtime/manifest.json +1 -1
  25. package/runtime/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +19 -19
  26. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +86 -2
  27. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +19 -19
  28. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +19 -19
  29. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.d.ts +31 -0
  30. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +81 -0
  31. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +20 -2
  32. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  33. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  34. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
@@ -1,14 +1,14 @@
1
1
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./rolldown-runtime-2rV9d50f.js";
2
- import { _ as settingsValue, a as formatContextUsage, c as normalizePageMargin, d as normalizeToolBackground, f as parsePageMarginSpec, h as displaySettingsScope, i as applyPageMargin, l as normalizeScrollGutter, m as subscribePageMargin, n as createStatusBarSchema, o as getPageMarginSetting, p as resolvePageMargin, s as isPageMarginMode, t as STATUS_BAR_FIELDS, u as normalizeStatusBar } from "./statusBarSettings-5yzdiOv1.js";
3
- import { a as draftComboConflict, d as setKeymapOverrides, f as isMod, h as modLabel, l as parseComboDraft, m as isPlainReturnInput, n as actionMatches, o as effectiveComboString, p as isPlainReturn, t as SHORTCUT_ACTIONS } from "./keymap-CeRpxc9c.js";
4
- import { c as withHostRootCapability } from "./host-access-DCtUmgis.js";
5
- import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-CVtLIC34.js";
6
- import { n as getHostCommandTrees } from "./command-trees-D1yNnMLf.js";
7
- import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-DgB-eDtZ.js";
8
- import { n as getHostSceneRuntime } from "./scenes-NsR-REtH.js";
9
- import { A as tuiEnvName, C as LEGACY_DATA_DIR, D as homeDir, E as detectLegacyEnv, J as parseManifest, M as loadSpecData, O as readTuiEnv, S as DATA_DIR, T as RENAMED_ENV, Y as projectManifest, _ as stripAnsi$1, a as normalizeCancelDecision, b as isWide, c as installDecisionGuard, d as capCells, f as cleanRenderText, g as getGraphemeSegmenter, h as stringWidth$1, i as dispatchTuiNotification, k as resolveChatCodeCliHome, m as flattenInline, p as cleanScalarText, r as dispatchTuiDecision, v as eastAsianWidth, w as PRE_DSH_TUI_DATA_DIR, x as readGrantStore, y as isFullWidth } from "./extension-events-BBvUPMbs.js";
10
- import { A as validatePlugin, D as buildHostDescriptor, O as negotiate, _ as getHostMessageObserver, a as commandOwner, k as createContractIndex, n as hasCommandErrorCode, r as mapCommandError, w as EFFECT_LEDGER_FILE } from "./command-errors-ChiY9aSU.js";
11
- import { D as getHostStatusStore, E as TuiStatusStore, M as getHostDialogStore, S as getHostShortcuts, a as listCustomThemes, b as getHostRenderers, c as THEME_NAMES, d as getTheme, f as isLightThemeActive, g as setAutoThemeBase, h as setActiveThemeName, i as isSafeThemeName, j as TuiDialogStore, l as getActiveTheme, m as registerCustomThemeResolver, n as getHostThemes, o as resolveCustomTheme, p as isThemeAvailable, r as buildTheme, s as AUTO_THEME_NAME, u as getAutoThemeBase, v as getHostToastStore } from "./themes-DpFOCFEc.js";
2
+ import { _ as settingsValue, a as formatContextUsage, c as normalizePageMargin, d as normalizeToolBackground, f as parsePageMarginSpec, h as displaySettingsScope, i as applyPageMargin, l as normalizeScrollGutter, m as subscribePageMargin, n as createStatusBarSchema, o as getPageMarginSetting, p as resolvePageMargin, s as isPageMarginMode, t as STATUS_BAR_FIELDS, u as normalizeStatusBar } from "./statusBarSettings-ChS8Z4Jf.js";
3
+ import { a as draftComboConflict, d as setKeymapOverrides, f as isMod, h as modLabel, l as parseComboDraft, m as isPlainReturnInput, n as actionMatches, o as effectiveComboString, p as isPlainReturn, t as SHORTCUT_ACTIONS } from "./keymap-nfqAZoFE.js";
4
+ import { c as withHostRootCapability } from "./host-access-ClndygbX.js";
5
+ import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-ous4jIwo.js";
6
+ import { n as getHostCommandTrees } from "./command-trees-Bh2WKUZ3.js";
7
+ import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-CRhTUEBm.js";
8
+ import { n as getHostSceneRuntime } from "./scenes-C5_xUR61.js";
9
+ import { A as tuiEnvName, C as LEGACY_DATA_DIR, D as homeDir, E as detectLegacyEnv, J as parseManifest, M as loadSpecData, O as readTuiEnv, S as DATA_DIR, T as RENAMED_ENV, Y as projectManifest, _ as stripAnsi$1, a as normalizeCancelDecision, b as isWide, c as installDecisionGuard, d as capCells, f as cleanRenderText, g as getGraphemeSegmenter, h as stringWidth$1, i as dispatchTuiNotification, k as resolveChatCodeCliHome, m as flattenInline, p as cleanScalarText, r as dispatchTuiDecision, v as eastAsianWidth, w as PRE_DSH_TUI_DATA_DIR, x as readGrantStore, y as isFullWidth } from "./extension-events-JX8c4mnR.js";
10
+ import { A as validatePlugin, D as buildHostDescriptor, O as negotiate, _ as getHostMessageObserver, a as commandOwner, k as createContractIndex, n as hasCommandErrorCode, r as mapCommandError, w as EFFECT_LEDGER_FILE } from "./command-errors-DGyKMxEq.js";
11
+ import { D as getHostStatusStore, E as TuiStatusStore, M as getHostDialogStore, S as getHostShortcuts, a as listCustomThemes, b as getHostRenderers, c as THEME_NAMES, d as getTheme, f as isLightThemeActive, g as setAutoThemeBase, h as setActiveThemeName, i as isSafeThemeName, j as TuiDialogStore, l as getActiveTheme, m as registerCustomThemeResolver, n as getHostThemes, o as resolveCustomTheme, p as isThemeAvailable, r as buildTheme, s as AUTO_THEME_NAME, u as getAutoThemeBase, v as getHostToastStore } from "./themes-bFi516uK.js";
12
12
  import { a as resolvePreset, i as isPresetName, n as FRAME_PRESETS, o as ActivityTracker, r as PRESET_NAMES, t as DEFAULT_PRESET } from "./frames-B89znn_0.js";
13
13
  import { n as require_has_flag, t as require_supports_color } from "./supports-color-CcW-FGjr.js";
14
14
  import { createRequire, findPackageJSON } from "node:module";
@@ -1198,7 +1198,7 @@ var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1198
1198
  else module.exports = require_react_development();
1199
1199
  }));
1200
1200
  //#endregion
1201
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sideQuestion.js
1201
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sideQuestion.js
1202
1202
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
1203
1203
  /**
1204
1204
  * Side Question (`/btw`) — CC's btw.tsx/sideQuestion.ts semantics on the
@@ -1268,7 +1268,7 @@ async function runSideQuestion(params) {
1268
1268
  return { answer };
1269
1269
  }
1270
1270
  //#endregion
1271
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/recap.js
1271
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/recap.js
1272
1272
  /**
1273
1273
  * Session recap (`/recap`, pi-recap semantics): a single TOOL-LESS LLM
1274
1274
  * call that summarizes the session's RECENT activity into one line and
@@ -1381,7 +1381,7 @@ function parseRecapResponse(raw) {
1381
1381
  return { summary: raw.trim() };
1382
1382
  }
1383
1383
  //#endregion
1384
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/log.js
1384
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/log.js
1385
1385
  /**
1386
1386
  * Error logger for the ported Ink core. Always writes to stderr (an Ink
1387
1387
  * renderer failure must never pass silently).
@@ -1392,7 +1392,7 @@ function logError(error) {
1392
1392
  process.stderr.write(`[ChatCode CLI TUI] ${text}\n`);
1393
1393
  }
1394
1394
  //#endregion
1395
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/update-overflow-guard.js
1395
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/update-overflow-guard.js
1396
1396
  /**
1397
1397
  * Self-healing guard for React's nested-update overflow — Minified React
1398
1398
  * error #185 ("Maximum update depth exceeded").
@@ -1535,7 +1535,7 @@ function installNestedUpdateOverflowProcessGuard() {
1535
1535
  });
1536
1536
  }
1537
1537
  //#endregion
1538
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/sessionColors.js
1538
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/sessionColors.js
1539
1539
  /**
1540
1540
  * Session accent colors for `/color` (CC's /color semantics): a small
1541
1541
  * named palette that overrides the prompt-input border (and its session
@@ -1576,7 +1576,7 @@ function sessionColorHex(name) {
1576
1576
  return isValidSessionColor(name) ? SESSION_COLORS[name] : void 0;
1577
1577
  }
1578
1578
  //#endregion
1579
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/deepseekPricing.js
1579
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/deepseekPricing.js
1580
1580
  /**
1581
1581
  * 是否处于高峰计费时段:北京时间周一至周五 9:00-12:00、14:00-18:00。
1582
1582
  * 北京时间为 UTC+8 固定偏移(无夏令时),用 UTC 时刻加偏移换算。
@@ -1595,7 +1595,7 @@ Object.freeze({
1595
1595
  cacheWrite: 0
1596
1596
  });
1597
1597
  //#endregion
1598
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/i18n.js
1598
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/i18n.js
1599
1599
  /**
1600
1600
  * dsh-tui localization — UI strings for Chinese (`zh`, the default) and
1601
1601
  * English (`en`).
@@ -1734,8 +1734,8 @@ const dict = {
1734
1734
  en: "No MCP servers configured."
1735
1735
  },
1736
1736
  "mcp-insert-hint": {
1737
- zh: "在当前 profile 补丁层(默认 ~/.chatcode-cli/profiles/cli/cordis.patch.yml)insert 一行即可,例:",
1738
- en: "Insert one line in the active profile patch layer (default: ~/.chatcode-cli/profiles/cli/cordis.patch.yml), e.g.:"
1737
+ zh: "在用户目录的 .mcp.json 或当前项目的 .mcp.json 中配置,重启 CLI 后加载。例如:",
1738
+ en: "Configure .mcp.json in the user home or current project, then restart the CLI. Example:"
1739
1739
  },
1740
1740
  "mcp-readme-hint": {
1741
1741
  zh: "详见仓库 README 的 MCP 章节。",
@@ -1749,6 +1749,14 @@ const dict = {
1749
1749
  zh: "{{server}}(已配置,正在连接并同步工具)",
1750
1750
  en: "{{server}} (configured; connecting and syncing tools)"
1751
1751
  },
1752
+ "mcp-server-configured": {
1753
+ zh: "{{server}}(已发现配置,尚无已加载的工具;配置修改后请重启)",
1754
+ en: "{{server}} (configuration found; no loaded tools observed; restart after changes)"
1755
+ },
1756
+ "mcp-config-source": {
1757
+ zh: "{{server}} 配置来源:{{configPath}}",
1758
+ en: "{{server}} configuration source: {{configPath}}"
1759
+ },
1752
1760
  "mcp-server-unavailable": {
1753
1761
  zh: "{{server}}(已配置,当前无可用工具;连接失败或正在重连)",
1754
1762
  en: "{{server}} (configured; no tools available, connection failed or is reconnecting)"
@@ -1924,9 +1932,9 @@ const dict = {
1924
1932
  zh: "运行中的子代理:",
1925
1933
  en: "Running subagents:"
1926
1934
  },
1927
- "agents-configured-heading": {
1928
- zh: "已配置的 Agent:",
1929
- en: "Configured agents:"
1935
+ "agents-configured-source": {
1936
+ zh: "已配置的 Agent(来源:{{configPath}}):",
1937
+ en: "Configured agents (from: {{configPath}}):"
1930
1938
  },
1931
1939
  "subagent-tools": {
1932
1940
  zh: "工具",
@@ -2860,12 +2868,16 @@ const dict = {
2860
2868
  en: "Exit plan mode, back to normal execution"
2861
2869
  },
2862
2870
  "hooks-mounted": {
2863
- zh: "Hooks 已加载(来源:{{configPath}})",
2864
- en: "Hooks loaded (from: {{configPath}})"
2871
+ zh: "Hooks 配置(来源:{{configPath}};修改后重启加载)",
2872
+ en: "Hooks configuration (from: {{configPath}}; restart after changes)"
2865
2873
  },
2866
2874
  "hooks-mounted-empty": {
2867
- zh: "Hooks 插件已挂载,但 {{configPath}} 中未配置任何 hook。",
2868
- en: "Hooks plugin mounted, but no hooks configured in {{configPath}}."
2875
+ zh: "用户与当前项目未配置 hook。已检查:{{configPath}}",
2876
+ en: "No hooks configured for the user or current project. Checked: {{configPath}}"
2877
+ },
2878
+ "hooks-config-invalid": {
2879
+ zh: "Hooks 配置读取或解析失败:{{configPath}}",
2880
+ en: "Could not read or parse hooks configuration: {{configPath}}"
2869
2881
  },
2870
2882
  "hooks-event": {
2871
2883
  zh: " 事件 {{event}}({{count}} 个 hook)",
@@ -6552,7 +6564,7 @@ function resolveStartupLang(dir = PREFS_DIR$6, env = process.env) {
6552
6564
  return readLangPref(dir) ?? "zh";
6553
6565
  }
6554
6566
  //#endregion
6555
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
6567
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
6556
6568
  /**
6557
6569
  * Local slash commands for the dsh-tui TUI. Claude Code's command system is
6558
6570
  * deeply wired into its engine; dsh-tui ships a small built-in set with the
@@ -7026,7 +7038,7 @@ function matchingCompletionToken(candidate, prefix) {
7026
7038
  return candidate.aliases?.find((alias) => alias.toLowerCase().startsWith(prefix));
7027
7039
  }
7028
7040
  //#endregion
7029
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
7041
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
7030
7042
  /**
7031
7043
  * Launcher contract for `dsh-tui --resume`: the TUI writes the chosen session
7032
7044
  * id to `<CHATCODE_CLI_HOME>/tui/resume.txt`, and the launcher feeds it back as
@@ -7193,7 +7205,7 @@ function forgetAgentViewSession(sessionId) {
7193
7205
  } catch {}
7194
7206
  }
7195
7207
  //#endregion
7196
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
7208
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
7197
7209
  /**
7198
7210
  * One searchable local tag per persisted session.
7199
7211
  *
@@ -7343,7 +7355,7 @@ function forgetSessionTag(sessionId, dir = DATA_DIR) {
7343
7355
  return setSessionTag(sessionId, void 0, dir).ok;
7344
7356
  }
7345
7357
  //#endregion
7346
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/liveSession.js
7358
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/liveSession.js
7347
7359
  /**
7348
7360
  * Live Session compatibility facade.
7349
7361
  *
@@ -7505,7 +7517,7 @@ function liveSessionCreateOptions(request) {
7505
7517
  };
7506
7518
  }
7507
7519
  //#endregion
7508
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionLog.js
7520
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionLog.js
7509
7521
  /**
7510
7522
  * Legacy third-party session-event types the TUI vouches for as ephemeral
7511
7523
  * UI frames — safe for the strict read path to accept and skip. Exported
@@ -8197,7 +8209,7 @@ function appendSessionTitle(sessionId, title) {
8197
8209
  }
8198
8210
  }
8199
8211
  //#endregion
8200
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionEvent.js
8212
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionEvent.js
8201
8213
  /** Narrow an unknown/session event to the retired durable chunk envelope. */
8202
8214
  function legacyAssistantChunkOf(event) {
8203
8215
  if (event === null || typeof event !== "object") return void 0;
@@ -8211,7 +8223,7 @@ function legacyAssistantChunkOf(event) {
8211
8223
  return event;
8212
8224
  }
8213
8225
  //#endregion
8214
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compaction.js
8226
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compaction.js
8215
8227
  /**
8216
8228
  * Recognize both the current checkpoint source and the legacy plugin marker.
8217
8229
  * Harness session format v4 migrated `plugin/compact` to the dedicated
@@ -8222,7 +8234,7 @@ function isCompactionCheckpointSource(source) {
8222
8234
  return source.kind === "compact-checkpoint" || source.kind === "plugin" && source.plugin === "compact";
8223
8235
  }
8224
8236
  //#endregion
8225
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessionTree.js
8237
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessionTree.js
8226
8238
  const TREE_FILTERS = [
8227
8239
  "default",
8228
8240
  "no-tools",
@@ -10378,7 +10390,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10378
10390
  module.exports = subset;
10379
10391
  }));
10380
10392
  //#endregion
10381
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
10393
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
10382
10394
  var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
10383
10395
  const internalRe = require_re();
10384
10396
  const constants = require_constants$1();
@@ -10471,7 +10483,7 @@ function cmdEscapeArgument(arg, doubleEscapeMetaChars = false) {
10471
10483
  return out;
10472
10484
  }
10473
10485
  //#endregion
10474
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
10486
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
10475
10487
  const PACKAGE_NAME = "@chatcode/cco-tui";
10476
10488
  const DEFAULT_REGISTRY = "https://registry.npmjs.org";
10477
10489
  const GITHUB_REPO = "ccch1mneyyy/dsh-TUI";
@@ -11822,7 +11834,7 @@ async function restartTui(sessionId, options = {}) {
11822
11834
  });
11823
11835
  }
11824
11836
  //#endregion
11825
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/header.js
11837
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/header.js
11826
11838
  /** A finite number, or undefined for anything else (NaN and ±Infinity included). */
11827
11839
  function finiteNumber(value) {
11828
11840
  return typeof value === "number" && Number.isFinite(value) ? value : void 0;
@@ -11896,7 +11908,7 @@ function classify(header) {
11896
11908
  return { kind: "root" };
11897
11909
  }
11898
11910
  //#endregion
11899
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/frames.js
11911
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/frames.js
11900
11912
  /**
11901
11913
  * Bounded reads over the JSONL backend's concatenated-Zstandard session logs.
11902
11914
  *
@@ -12142,7 +12154,7 @@ function decodeTail(window) {
12142
12154
  return decodeFrames(window.buffer, window.whole ? walkFrames(window.buffer) : resyncFrames(window.buffer));
12143
12155
  }
12144
12156
  //#endregion
12145
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/digest.js
12157
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/digest.js
12146
12158
  /**
12147
12159
  * What a bounded read can learn about a session log.
12148
12160
  *
@@ -12625,7 +12637,7 @@ function previewSession(path, limit) {
12625
12637
  return entries.slice(-limit);
12626
12638
  }
12627
12639
  //#endregion
12628
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/artifact.js
12640
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/artifact.js
12629
12641
  /** Read-only artifact lookup for session summaries and previews. */
12630
12642
  /** Highest published compressed generation; temporary migration files are ignored. */
12631
12643
  function inDirectory(directory) {
@@ -12678,7 +12690,7 @@ function findSessionArtifact(sessionId, target) {
12678
12690
  }
12679
12691
  }
12680
12692
  //#endregion
12681
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/store.js
12693
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/store.js
12682
12694
  /**
12683
12695
  * The session index — a local cache keyed by the backend's own change token.
12684
12696
  *
@@ -12842,7 +12854,7 @@ function noteBranch(sessionId, branch) {
12842
12854
  writeIndex(index);
12843
12855
  }
12844
12856
  //#endregion
12845
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/list.js
12857
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/list.js
12846
12858
  /**
12847
12859
  * Building the session list.
12848
12860
  *
@@ -13123,7 +13135,7 @@ async function locateSession(source, sessionId, signal) {
13123
13135
  return match === void 0 ? void 0 : locate$1(source, match.raw, sessionId);
13124
13136
  }
13125
13137
  //#endregion
13126
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/agent-view.js
13138
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/agent-view.js
13127
13139
  /**
13128
13140
  * Agent view (CC `claude agents`) derivation helpers — pure functions over
13129
13141
  * session events that the channel folds into {@link AgentViewRow}s. Kept in
@@ -13353,7 +13365,7 @@ function featureOn(config, name) {
13353
13365
  return config.mode !== "minimal";
13354
13366
  }
13355
13367
  //#endregion
13356
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
13368
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
13357
13369
  /**
13358
13370
  * Persisted working-activity indicator preference, mirroring the pi
13359
13371
  * working-activity extension's `~/.pi/agent/working-activity.json`
@@ -13422,7 +13434,7 @@ function writeActivityFrames(name, dir = PREFS_DIR$5) {
13422
13434
  }
13423
13435
  }
13424
13436
  //#endregion
13425
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
13437
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
13426
13438
  const pathSeparators = /[\\/]/;
13427
13439
  function isPathLikeQuery(query) {
13428
13440
  return query.startsWith(".") || query.startsWith("~") || query.startsWith("/") || /^[A-Za-z]:[\\/]/.test(query) || pathSeparators.test(query);
@@ -13445,7 +13457,7 @@ function rankFileCandidates(candidates, query, topK) {
13445
13457
  return topK === void 0 ? ranked : ranked.slice(0, Math.max(0, topK));
13446
13458
  }
13447
13459
  //#endregion
13448
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
13460
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
13449
13461
  /**
13450
13462
  * Persisted reasoning-effort preference (`~/.chatcode-cli/tui/effort.json`). Set via
13451
13463
  * `/effort` (slider or `/effort <id>`; `/effort status` reports the current
@@ -13487,7 +13499,7 @@ function writeEffortPref(effort, dir = PREFS_DIR$4) {
13487
13499
  }
13488
13500
  }
13489
13501
  //#endregion
13490
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
13502
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
13491
13503
  /**
13492
13504
  * Persisted model-route preference (`/model` picker choice), kept at
13493
13505
  * `~/.chatcode-cli/model.json` (`provider` + `model` keys) so CLI and Web share it
@@ -13570,7 +13582,7 @@ function writeModelPref(provider, model, dir = PREFS_DIR$3) {
13570
13582
  }
13571
13583
  }
13572
13584
  //#endregion
13573
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
13585
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
13574
13586
  /**
13575
13587
  * Model route resolution (issue #67). The `(provider, model)` pair is a
13576
13588
  * single value: every source either supplies the WHOLE route or is skipped,
@@ -13805,7 +13817,7 @@ function orderModelProviders(providers) {
13805
13817
  return [...providers].sort((left, right) => rank(left.id) - rank(right.id));
13806
13818
  }
13807
13819
  //#endregion
13808
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelSettings.js
13820
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelSettings.js
13809
13821
  /** Custom-model forms over the same settings and credential services used by Web. */
13810
13822
  function record(value) {
13811
13823
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -14007,7 +14019,7 @@ function createCustomModelSettingsStore(path, host) {
14007
14019
  };
14008
14020
  }
14009
14021
  //#endregion
14010
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelTest.js
14022
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelTest.js
14011
14023
  /** Direct, one-shot generation used by `/model-config` before a model is registered. */
14012
14024
  function requestEndpoint(baseURL, api) {
14013
14025
  const url = new URL(baseURL);
@@ -14096,7 +14108,7 @@ async function testCustomModelConnection(request, fetchImpl = fetch) {
14096
14108
  }
14097
14109
  }
14098
14110
  //#endregion
14099
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/catalogDefaults.js
14111
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/catalogDefaults.js
14100
14112
  /** Read display defaults from the host adapter's own installed pi-ai catalog. */
14101
14113
  const catalogs = /* @__PURE__ */ new Map();
14102
14114
  async function installedCatalog(anchor) {
@@ -14143,7 +14155,7 @@ async function catalogProviderDefaults(provider, model, anchor = import.meta.url
14143
14155
  };
14144
14156
  }
14145
14157
  //#endregion
14146
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
14158
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
14147
14159
  /**
14148
14160
  * Persisted agent-preset preference (`/preset` picker choice), kept at
14149
14161
  * `~/.chatcode-cli/tui/agent-preset.json` (`preset` key) so the choice survives
@@ -14202,7 +14214,7 @@ function migratePresetPref(requested, resolved, dir = PREFS_DIR$2) {
14202
14214
  return requested === void 0 || resolved === void 0 || requested === resolved ? true : writePresetPref(resolved, dir);
14203
14215
  }
14204
14216
  //#endregion
14205
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/persistedSession.js
14217
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/persistedSession.js
14206
14218
  /** Undefined means the service exposes neither supported read API. */
14207
14219
  async function readPersistedSession(persistence, id) {
14208
14220
  if (persistence === null || typeof persistence !== "object") return void 0;
@@ -14222,7 +14234,7 @@ async function readPersistedSession(persistence, id) {
14222
14234
  if (typeof reader.load === "function") return reader.load(id);
14223
14235
  }
14224
14236
  //#endregion
14225
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-resolution.js
14237
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-resolution.js
14226
14238
  /**
14227
14239
  * Agent-preset resolution across upstream prerelease lines.
14228
14240
  *
@@ -14260,7 +14272,7 @@ async function resolveCompatiblePreset(presets, requested) {
14260
14272
  return presets.resolve(requested);
14261
14273
  }
14262
14274
  //#endregion
14263
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/presets.js
14275
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/presets.js
14264
14276
  /**
14265
14277
  * Agent-presets roster integration (issue #8): compose each session's
14266
14278
  * model-facing world (tools, prompt sections, projections) from one preset
@@ -14410,7 +14422,7 @@ function serviceForAgent(ctx, agent, key) {
14410
14422
  return ctx.get(key);
14411
14423
  }
14412
14424
  //#endregion
14413
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagent-control.js
14425
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagent-control.js
14414
14426
  /**
14415
14427
  * Interrupt a child visible to the current parent without disposing its session.
14416
14428
  * One-shot local agents use their cancellation method; continuable agents use
@@ -14450,7 +14462,7 @@ function interruptSubagent(ctx, parent, id) {
14450
14462
  }
14451
14463
  }
14452
14464
  //#endregion
14453
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-management.js
14465
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-management.js
14454
14466
  const failureReason = (error) => error instanceof Error ? error.message : String(error);
14455
14467
  /** Read a roster-resolved composition without bypassing preset ownership. */
14456
14468
  async function readPresetComposition(presets, presetId) {
@@ -14507,7 +14519,7 @@ async function removePresetComposition(presets, presetId) {
14507
14519
  }
14508
14520
  }
14509
14521
  //#endregion
14510
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/session-organization.js
14522
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/session-organization.js
14511
14523
  /** Adapter-only readers for optional Harness session-organization services. */
14512
14524
  const STAT_KEYS = [
14513
14525
  "turns",
@@ -14568,7 +14580,7 @@ function presetCompositionRows(content, limit = 80) {
14568
14580
  };
14569
14581
  }
14570
14582
  //#endregion
14571
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
14583
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
14572
14584
  /**
14573
14585
  * Debug logger for the ported Ink core. Writes to stderr only when
14574
14586
  * `CHATCODE_CLI_TUI_DEBUG` (or its legacy alias) is set, so normal runs stay quiet.
@@ -14598,7 +14610,7 @@ function logMouseDebug(message, fields) {
14598
14610
  } catch {}
14599
14611
  }
14600
14612
  //#endregion
14601
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
14613
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
14602
14614
  /**
14603
14615
  * `@` file-mention parsing (issue #15).
14604
14616
  *
@@ -14744,7 +14756,7 @@ function mentionAtCaret(value, cursor) {
14744
14756
  };
14745
14757
  }
14746
14758
  //#endregion
14747
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
14759
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
14748
14760
  /** Format only the files in the authoritative loaded-context projection. */
14749
14761
  function loadedFileLines(files, copy) {
14750
14762
  if (files === void 0) return [copy.unavailable];
@@ -14859,7 +14871,7 @@ function codeRatioLines(report, copy, maxAuthors = 20) {
14859
14871
  return lines;
14860
14872
  }
14861
14873
  //#endregion
14862
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
14874
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
14863
14875
  /**
14864
14876
  * Cordis-free theme catalog shared by future pickers, commands and hosts.
14865
14877
  *
@@ -14940,7 +14952,7 @@ function listThemeCatalog(host) {
14940
14952
  return Object.freeze(entries);
14941
14953
  }
14942
14954
  //#endregion
14943
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
14955
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
14944
14956
  /**
14945
14957
  * Configurable Shift+Tab session modes (the `modes` dsh-tui plugin config):
14946
14958
  * each mode is a named bundle of optional DSH plane switches — plan mode
@@ -15004,7 +15016,7 @@ function modeDisplayName(spec) {
15004
15016
  return spec.id;
15005
15017
  }
15006
15018
  //#endregion
15007
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagents.js
15019
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagents.js
15008
15020
  /** Unified subagent activity domain model used by the adapter and every view. */
15009
15021
  const MAX_OUTPUT_EVENTS = 160;
15010
15022
  const MAX_OUTPUT_LINES = 160;
@@ -15382,7 +15394,7 @@ function formatJobDuration(job, now = Date.now()) {
15382
15394
  return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart(2, "0")}m`;
15383
15395
  }
15384
15396
  //#endregion
15385
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
15397
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
15386
15398
  /**
15387
15399
  * Minimal mode: one process-wide flag gating decorative UI (header splash,
15388
15400
  * emoji status glyphs and non-tool text colors). Footer field choices remain
@@ -15402,7 +15414,7 @@ function setMinimalMode(enabled) {
15402
15414
  minimal = enabled;
15403
15415
  }
15404
15416
  //#endregion
15405
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspace.js
15417
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspace.js
15406
15418
  function registryOf(ctx) {
15407
15419
  const registry = ctx.get("workspaceRegistry");
15408
15420
  if (registry === void 0 || typeof registry.pinSession !== "function" || typeof registry.unpinSession !== "function") return void 0;
@@ -15477,7 +15489,7 @@ async function unarchiveWorkspaceSession(ctx, id) {
15477
15489
  return true;
15478
15490
  }
15479
15491
  //#endregion
15480
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/contract.js
15492
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/contract.js
15481
15493
  /**
15482
15494
  * Upstream compatibility contract.
15483
15495
  *
@@ -15906,7 +15918,7 @@ function pluginsInfoLines(args, deps) {
15906
15918
  return lines;
15907
15919
  }
15908
15920
  //#endregion
15909
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/mcp-status.js
15921
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/mcp-status.js
15910
15922
  /** Loader and tool-registry projection used by the TUI's `/mcp` report. */
15911
15923
  const MCP_CLIENT_PACKAGE = "@deepseek-ai/dsh-mcp-client";
15912
15924
  const FIBER_ACTIVE = 2;
@@ -15931,9 +15943,14 @@ function configuredState(entry) {
15931
15943
  * pending. Treating an empty tool registry as "not configured" makes `/mcp`
15932
15944
  * lie during that window.
15933
15945
  */
15934
- function collectMcpServerStatus(schemas, entries) {
15946
+ function collectMcpServerStatus(schemas, entries, discovered = []) {
15935
15947
  const statuses = /* @__PURE__ */ new Map();
15936
- for (const entry of entries) {
15948
+ const declaredEntries = [...entries];
15949
+ const disabled = new Set(declaredEntries.filter((entry) => entry.disabled === true).map((entry) => configuredServer({
15950
+ ...entry,
15951
+ disabled: false
15952
+ })));
15953
+ for (const entry of declaredEntries) {
15937
15954
  const server = configuredServer(entry);
15938
15955
  if (server === void 0 || statuses.has(server)) continue;
15939
15956
  statuses.set(server, {
@@ -15941,6 +15958,17 @@ function collectMcpServerStatus(schemas, entries) {
15941
15958
  state: configuredState(entry)
15942
15959
  });
15943
15960
  }
15961
+ for (const server of discovered) {
15962
+ if (disabled.has(server.name)) continue;
15963
+ const status = statuses.get(server.name) ?? {
15964
+ tools: [],
15965
+ state: "configured"
15966
+ };
15967
+ statuses.set(server.name, {
15968
+ ...status,
15969
+ sourcePath: server.sourcePath
15970
+ });
15971
+ }
15944
15972
  for (const schema of schemas) {
15945
15973
  const match = schema.name.match(/^mcp__([A-Za-z0-9_-]+)__(.+)$/);
15946
15974
  if (match === null) continue;
@@ -15959,7 +15987,105 @@ function collectMcpServerStatus(schemas, entries) {
15959
15987
  }));
15960
15988
  }
15961
15989
  //#endregion
15962
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/format.js
15990
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/asset-config.js
15991
+ /** Read user and current-workspace configuration for local status commands. */
15992
+ function object(value) {
15993
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
15994
+ }
15995
+ function read(path, scope) {
15996
+ try {
15997
+ const value = object(JSON.parse(readFileSync(path, "utf8")));
15998
+ return {
15999
+ path,
16000
+ scope,
16001
+ value: value ?? {},
16002
+ invalid: value === void 0
16003
+ };
16004
+ } catch (error) {
16005
+ return {
16006
+ path,
16007
+ scope,
16008
+ value: {},
16009
+ invalid: error.code !== "ENOENT"
16010
+ };
16011
+ }
16012
+ }
16013
+ /** Match the asset plugin's source ordering; project MCP names override user names. */
16014
+ function readAssetConfiguration(home, project, userHome = homedir()) {
16015
+ const projectConfig = join(project, ".chatcode-cli");
16016
+ const settings = [
16017
+ read(join(home, "settings.json"), "user"),
16018
+ read(join(projectConfig, "settings.json"), "project"),
16019
+ read(join(projectConfig, "settings.local.json"), "project-local")
16020
+ ];
16021
+ const seenFiles = /* @__PURE__ */ new Set();
16022
+ const hooks = [
16023
+ settings[0],
16024
+ read(join(home, "hooks", "settings.json"), "user"),
16025
+ settings[1],
16026
+ settings[2],
16027
+ read(join(projectConfig, "hooks", "settings.json"), "project")
16028
+ ].filter((source) => {
16029
+ const key = resolve(source.path);
16030
+ if (seenFiles.has(key)) return false;
16031
+ seenFiles.add(key);
16032
+ return true;
16033
+ });
16034
+ const projectMcp = [];
16035
+ let current = resolve(project);
16036
+ for (;;) {
16037
+ projectMcp.push(read(join(current, ".mcp.json"), "project"));
16038
+ const parent = dirname(current);
16039
+ if (parent === current) break;
16040
+ current = parent;
16041
+ }
16042
+ const sources = [
16043
+ projectMcp[0],
16044
+ settings[2],
16045
+ settings[1],
16046
+ read(join(projectConfig, ".mcp.json"), "project"),
16047
+ ...projectMcp.slice(1),
16048
+ read(join(userHome, ".chatcode-cli.json"), "user"),
16049
+ read(join(home, ".mcp.json"), "user"),
16050
+ settings[0]
16051
+ ];
16052
+ const names = /* @__PURE__ */ new Set();
16053
+ const mcp = [];
16054
+ for (const source of sources) for (const [name, config] of Object.entries(object(source.value.mcpServers) ?? {})) {
16055
+ if (names.has(name)) continue;
16056
+ names.add(name);
16057
+ if (object(config)?.disabled !== true) mcp.push({
16058
+ name,
16059
+ sourcePath: source.path
16060
+ });
16061
+ }
16062
+ return {
16063
+ hooks,
16064
+ mcp
16065
+ };
16066
+ }
16067
+ /** Narrow a file's hooks map without assuming external JSON is well formed. */
16068
+ function hookEvents(source) {
16069
+ return object(source.value.hooks) ?? {};
16070
+ }
16071
+ /** Runnable/configured handlers from one external event value, for display only. */
16072
+ function hookHandlers(groups) {
16073
+ if (!Array.isArray(groups)) return [];
16074
+ return groups.flatMap((value) => {
16075
+ const group = object(value);
16076
+ if (!Array.isArray(group?.hooks)) return [];
16077
+ return group.hooks.flatMap((value) => {
16078
+ const hook = object(value);
16079
+ if (!hook) return [];
16080
+ return [{
16081
+ matcher: typeof group.matcher === "string" ? group.matcher : "*",
16082
+ command: typeof hook.command === "string" ? hook.command : "(no command)"
16083
+ }];
16084
+ });
16085
+ });
16086
+ }
16087
+ //#endregion
16088
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/format.js
15963
16089
  /**
15964
16090
  * Number, token-count, and duration formatters shared by the status line
15965
16091
  * and message rows.
@@ -16022,7 +16148,7 @@ function formatDuration$4(durationMs, options = {}) {
16022
16148
  return parts.join(" ");
16023
16149
  }
16024
16150
  //#endregion
16025
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
16151
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
16026
16152
  /**
16027
16153
  * Return the current context occupancy. The latest request is authoritative:
16028
16154
  * its uncached input and cache read/write tokens are all part of that request's
@@ -16406,7 +16532,7 @@ function prepareMemoryTargetFile(requested, candidates, cwd, dshHome) {
16406
16532
  }
16407
16533
  }
16408
16534
  //#endregion
16409
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/channel.js
16535
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/channel.js
16410
16536
  /** Return the step left open by a tree fork cut within one turn. */
16411
16537
  function openStepAtForkCut(events, turn) {
16412
16538
  for (let i = events.length - 1; i >= 0; i--) {
@@ -21013,18 +21139,23 @@ function createChannel(ctx, initialAgent, options) {
21013
21139
  state.emit();
21014
21140
  },
21015
21141
  mcpStatus() {
21016
- const servers = collectMcpServerStatus(ctx.get("tools")?.schemas() ?? [], ctx.get("loader")?.entries() ?? []);
21142
+ const schemas = ctx.get("tools")?.schemas() ?? [];
21143
+ const loader = ctx.get("loader");
21144
+ const sources = readAssetConfiguration(resolveChatCodeCliHome(), state.cwd);
21145
+ const servers = collectMcpServerStatus(schemas, loader?.entries() ?? [], sources.mcp);
21017
21146
  if (servers.length === 0) return [
21018
21147
  t("mcp-none-configured"),
21019
21148
  t("mcp-insert-hint"),
21020
- " - insert:",
21021
- " - id: mcp-context7",
21022
- " name: '@deepseek-ai/dsh-mcp-client'",
21023
- " config: { transport: stdio, serverName: context7, command: npx, args: [\"-y\", \"@upstash/context7-mcp\"] }",
21149
+ " { \"mcpServers\": { \"context7\": { \"command\": \"npx\",",
21150
+ " \"args\": [\"-y\", \"@upstash/context7-mcp\"] } } }",
21024
21151
  t("mcp-readme-hint")
21025
21152
  ];
21026
21153
  const lines = [];
21027
21154
  for (const server of servers) {
21155
+ if (server.sourcePath) lines.push(t("mcp-config-source", {
21156
+ server: server.server,
21157
+ configPath: server.sourcePath
21158
+ }));
21028
21159
  if (server.state === "connected") {
21029
21160
  lines.push(t("mcp-server-tools", {
21030
21161
  server: server.server,
@@ -21033,41 +21164,34 @@ function createChannel(ctx, initialAgent, options) {
21033
21164
  }));
21034
21165
  continue;
21035
21166
  }
21036
- if (server.state === "connecting") lines.push(t("mcp-server-connecting", { server: server.server }));
21167
+ if (server.state === "configured") lines.push(t("mcp-server-configured", { server: server.server }));
21168
+ else if (server.state === "connecting") lines.push(t("mcp-server-connecting", { server: server.server }));
21037
21169
  else if (server.state === "failed") lines.push(t("mcp-server-failed", { server: server.server }));
21038
21170
  else lines.push(t("mcp-server-unavailable", { server: server.server }));
21039
21171
  }
21040
21172
  return lines;
21041
21173
  },
21042
21174
  hooksStatus() {
21043
- const settingsPath = join(resolveChatCodeCliHome(), "settings.json");
21044
- let settings = null;
21045
- try {
21046
- settings = JSON.parse(readFileSync(settingsPath, "utf8"));
21047
- } catch {
21048
- settings = null;
21049
- }
21050
- const hooks = settings?.hooks;
21051
- if (!hooks || Object.keys(hooks).length === 0) return [t("hooks-mounted-empty", { configPath: settingsPath })];
21052
- const events = Object.keys(hooks);
21053
- const lines = [t("hooks-mounted", { configPath: settingsPath })];
21054
- for (const event of events) {
21055
- const groups = hooks[event] ?? [];
21056
- let count = 0;
21057
- for (const group of groups) count += group.hooks.length;
21058
- lines.push(t("hooks-event", {
21059
- event,
21060
- count
21061
- }));
21062
- for (const group of groups) {
21063
- const matcher = group.matcher || "*";
21064
- for (const hook of group.hooks) lines.push(t("hooks-hook", {
21065
- matcher,
21066
- command: hook.command ?? "(no command)"
21175
+ const sources = readAssetConfiguration(resolveChatCodeCliHome(), state.cwd).hooks;
21176
+ const lines = [];
21177
+ for (const source of sources) {
21178
+ if (source.invalid) {
21179
+ lines.push(t("hooks-config-invalid", { configPath: source.path }));
21180
+ continue;
21181
+ }
21182
+ const events = Object.entries(hookEvents(source));
21183
+ if (events.length === 0) continue;
21184
+ lines.push(t("hooks-mounted", { configPath: source.path }));
21185
+ for (const [event, groups] of events) {
21186
+ const handlers = hookHandlers(groups);
21187
+ lines.push(t("hooks-event", {
21188
+ event,
21189
+ count: handlers.length
21067
21190
  }));
21191
+ for (const hook of handlers) lines.push(t("hooks-hook", hook));
21068
21192
  }
21069
21193
  }
21070
- return lines;
21194
+ return lines.length > 0 ? lines : [t("hooks-mounted-empty", { configPath: sources.map((source) => source.path).join(", ") })];
21071
21195
  },
21072
21196
  exportSession(format = "jsonl") {
21073
21197
  const events = snapshotLiveSessionEvents(agent.session);
@@ -21208,47 +21332,49 @@ function createChannel(ctx, initialAgent, options) {
21208
21332
  }
21209
21333
  }
21210
21334
  } catch {}
21211
- const agentsDir = join(resolveChatCodeCliHome(), "agents");
21212
- const configuredAgents = [];
21213
- try {
21214
- const entries = readdirSync(agentsDir);
21215
- for (const entry of entries) {
21216
- const fullPath = join(agentsDir, entry);
21217
- if (entry.endsWith(".md")) {
21218
- const fm = readFileSync(fullPath, "utf8").match(/^---\n([\s\S]*?)\n---/);
21219
- if (fm) {
21220
- const nameMatch = fm[1].match(/^name:\s*(.+)$/m);
21221
- const descMatch = fm[1].match(/^description:\s*(.+)$/m);
21222
- if (nameMatch) configuredAgents.push({
21223
- name: nameMatch[1].trim(),
21224
- description: descMatch ? descMatch[1].trim() : ""
21335
+ const dshHome = resolveChatCodeCliHome();
21336
+ for (const agentsDir of new Set([join(dshHome, "agents"), join(state.cwd, ".chatcode-cli", "agents")])) {
21337
+ const configuredAgents = [];
21338
+ try {
21339
+ const entries = readdirSync(agentsDir);
21340
+ for (const entry of entries) {
21341
+ const fullPath = join(agentsDir, entry);
21342
+ if (entry.endsWith(".md")) {
21343
+ const fm = readFileSync(fullPath, "utf8").match(/^---\n([\s\S]*?)\n---/);
21344
+ if (fm) {
21345
+ const nameMatch = fm[1].match(/^name:\s*(.+)$/m);
21346
+ const descMatch = fm[1].match(/^description:\s*(.+)$/m);
21347
+ if (nameMatch) configuredAgents.push({
21348
+ name: nameMatch[1].trim(),
21349
+ description: descMatch ? descMatch[1].trim() : ""
21350
+ });
21351
+ }
21352
+ } else if (entry === ".agent-config.yaml" || entry.endsWith(".agent-config.yaml")) {
21353
+ const text = readFileSync(fullPath, "utf8");
21354
+ const idMatches = text.matchAll(/^- id:\s*(.+)$/gm);
21355
+ const nameMatches = text.matchAll(/^\s+name:\s*"?(.+?)"?\s*$/gm);
21356
+ const descMatches = text.matchAll(/^\s+description:\s*"?(.+?)"?\s*$/gm);
21357
+ const ids = [...idMatches].map((m) => m[1].trim());
21358
+ const names = [...nameMatches].map((m) => m[1].trim());
21359
+ const descs = [...descMatches].map((m) => m[1].trim());
21360
+ for (let i = 0; i < ids.length; i++) configuredAgents.push({
21361
+ name: names[i] ?? ids[i],
21362
+ description: descs[i] ?? ""
21225
21363
  });
21226
21364
  }
21227
- } else if (entry === ".agent-config.yaml" || entry.endsWith(".agent-config.yaml")) {
21228
- const text = readFileSync(fullPath, "utf8");
21229
- const idMatches = text.matchAll(/^- id:\s*(.+)$/gm);
21230
- const nameMatches = text.matchAll(/^\s+name:\s*"?(.+?)"?\s*$/gm);
21231
- const descMatches = text.matchAll(/^\s+description:\s*"?(.+?)"?\s*$/gm);
21232
- const ids = [...idMatches].map((m) => m[1].trim());
21233
- const names = [...nameMatches].map((m) => m[1].trim());
21234
- const descs = [...descMatches].map((m) => m[1].trim());
21235
- for (let i = 0; i < ids.length; i++) configuredAgents.push({
21236
- name: names[i] ?? ids[i],
21237
- description: descs[i] ?? ""
21238
- });
21239
21365
  }
21240
- }
21241
- } catch {}
21242
- if (configuredAgents.length > 0) {
21243
- if (lines.length > 0) lines.push("");
21244
- lines.push(t("agents-configured-heading"));
21245
- for (const agent of configuredAgents) {
21246
- const desc = agent.description ? ` — ${agent.description}` : "";
21247
- lines.push(t("agents-preset-row", {
21248
- id: agent.name,
21249
- name: agent.name,
21250
- desc
21251
- }));
21366
+ } catch {}
21367
+ if (configuredAgents.length > 0) {
21368
+ if (lines.length > 0) lines.push("");
21369
+ lines.push(t("agents-configured-source", { configPath: agentsDir }));
21370
+ for (const agent of configuredAgents) {
21371
+ const desc = agent.description ? ` — ${agent.description}` : "";
21372
+ lines.push(t("agents-preset-row", {
21373
+ id: agent.name,
21374
+ name: agent.name,
21375
+ desc
21376
+ }));
21377
+ }
21252
21378
  }
21253
21379
  }
21254
21380
  const subagents = ctx.get("subagents");
@@ -23193,7 +23319,7 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
23193
23319
  };
23194
23320
  }
23195
23321
  //#endregion
23196
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/childStderr.js
23322
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/childStderr.js
23197
23323
  /**
23198
23324
  * Child-process stderr guard (issue #17).
23199
23325
  *
@@ -23362,7 +23488,7 @@ function createChildStderrReporter(notify, options = {}) {
23362
23488
  };
23363
23489
  }
23364
23490
  //#endregion
23365
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/startupTrace.js
23491
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/startupTrace.js
23366
23492
  /** Opt-in startup timings; labels never contain paths, Session identities, or credentials. */
23367
23493
  /**
23368
23494
  * Measure one initialization operation without changing its result or failure.
@@ -23381,7 +23507,7 @@ async function traceTuiStartup(phase, operation) {
23381
23507
  }
23382
23508
  }
23383
23509
  //#endregion
23384
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions.js
23510
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions.js
23385
23511
  /**
23386
23512
  * Ask-user-question store — the UI-side half of the DSH user-interaction
23387
23513
  * seam (`ctx.userQuestions`). The harness's model-facing
@@ -23621,7 +23747,7 @@ var QuestionStore = class {
23621
23747
  }
23622
23748
  };
23623
23749
  //#endregion
23624
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerGuard.js
23750
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerGuard.js
23625
23751
  /**
23626
23752
  * Question-provider seat guard (issue #98 security follow-up).
23627
23753
  *
@@ -23733,7 +23859,7 @@ function incumbentQuestionProviderId(service) {
23733
23859
  } catch {}
23734
23860
  }
23735
23861
  //#endregion
23736
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions-answerer.js
23862
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions-answerer.js
23737
23863
  /**
23738
23864
  * User-question answerer compatibility.
23739
23865
  *
@@ -23792,7 +23918,7 @@ function prepareQuestionAnswerer(ctx, service, answerer) {
23792
23918
  }
23793
23919
  }
23794
23920
  //#endregion
23795
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/approvals.js
23921
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/approvals.js
23796
23922
  /**
23797
23923
  * Approval store — the UI-side answerer half of the DSH approval seam
23798
23924
  * (`ctx.approval`). The harness's permission layer asks
@@ -24186,7 +24312,7 @@ var ApprovalStore = class {
24186
24312
  }
24187
24313
  };
24188
24314
  //#endregion
24189
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/promptDebug.js
24315
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/promptDebug.js
24190
24316
  /**
24191
24317
  * On-demand capture of every final AgentLoop request context observed for a
24192
24318
  * live session.
@@ -24332,7 +24458,7 @@ function registerPromptDebug(ctx) {
24332
24458
  }));
24333
24459
  }
24334
24460
  //#endregion
24335
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
24461
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
24336
24462
  /**
24337
24463
  * One-time local migrations (`~/.chatcode-cli/tui/migrations.json`), keyed by stable
24338
24464
  * migration id → ISO timestamp. Named keys (not a bare flag) so later
@@ -24423,7 +24549,7 @@ async function commitFullscreenFactoryMigration(plan, options) {
24423
24549
  } catch {}
24424
24550
  }
24425
24551
  //#endregion
24426
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/retired-packaged-presets.js
24552
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/retired-packaged-presets.js
24427
24553
  const OWNER = "@chatcode/cco-tui";
24428
24554
  const MARKER = ".dsh-tui-managed.json";
24429
24555
  const RETIRED_PACKAGED_PRESETS = ["liangshen"];
@@ -24465,7 +24591,7 @@ function cleanupRetiredPackagedPresets(options = {}) {
24465
24591
  return results;
24466
24592
  }
24467
24593
  //#endregion
24468
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
24594
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
24469
24595
  /** The browser's default view: this project, conversations only. */
24470
24596
  const DEFAULT_FILTERS = {
24471
24597
  query: "",
@@ -24799,7 +24925,7 @@ function windowEnd(rows, top, budget) {
24799
24925
  return at;
24800
24926
  }
24801
24927
  //#endregion
24802
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/resume.js
24928
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/resume.js
24803
24929
  /** Resolve launch-time resume flags against persisted conversations. */
24804
24930
  /**
24805
24931
  * Select the latest conversation in the exact launch directory for bare flags.
@@ -24819,7 +24945,7 @@ async function resolveStartupSessionId(source, argv, cwd) {
24819
24945
  return latest.id;
24820
24946
  }
24821
24947
  //#endregion
24822
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
24948
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
24823
24949
  /** Resolve a fresh session's working directory without widening it to a Git ancestor. */
24824
24950
  /**
24825
24951
  * Explicit configuration wins; otherwise keep the invoking directory, even
@@ -24832,7 +24958,7 @@ function resolveSessionCwd(configured, start = process.cwd()) {
24832
24958
  return resolve(start, configured ?? "");
24833
24959
  }
24834
24960
  //#endregion
24835
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
24961
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
24836
24962
  /**
24837
24963
  * Open URLs, files and folders with the platform's default handler, fully
24838
24964
  * detached from the TUI process (fire-and-forget: no stdio pipes, no wait,
@@ -24993,7 +25119,7 @@ function revealInFileManager(filePath) {
24993
25119
  if (existsSync(dir)) openExternal(dir);
24994
25120
  }
24995
25121
  //#endregion
24996
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
25122
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
24997
25123
  /** ChatCode API request capability. Credentials stay in the host adapter. */
24998
25124
  const CHATCODE_API_BASE_URL = "https://chatcode.chinaunicom.cn";
24999
25125
  /** CVP(天梯)平台基础 URL,承载 modules/notification 等公开/独立鉴权模块接口。 */
@@ -25001,7 +25127,7 @@ const CVP_CHATCODE_API_URL = `${CHATCODE_API_BASE_URL}/cvp`;
25001
25127
  /** Each mounted TUI receives its own host-authorized request function. */
25002
25128
  const ChatCodeApiContext = (0, import_react.createContext)(void 0);
25003
25129
  //#endregion
25004
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
25130
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
25005
25131
  const RELEASE_NOTE_PATH = join(DATA_DIR, "release-notes.json");
25006
25132
  const RELEASE_NOTE_ENDPOINT = `${CHATCODE_API_BASE_URL}/chatcode/api/v1/cli/version/release-note`;
25007
25133
  function acknowledgedVersion() {
@@ -25097,7 +25223,7 @@ var ReleaseNotesStore = class {
25097
25223
  }
25098
25224
  };
25099
25225
  //#endregion
25100
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
25226
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
25101
25227
  const MAIN_CLI_PACKAGES = new Set(["@chatcode/chatcode-cli", "@chatcode/chatcode-cli-test"]);
25102
25228
  const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u;
25103
25229
  const PRODUCT_VERSION_ENV = "CHATCODE_CLI_PRODUCT_VERSION";
@@ -25137,7 +25263,7 @@ function resolveProductVersion(options = {}) {
25137
25263
  /** Product version shown by the TUI, shared with `cco --version` and Web. */
25138
25264
  const PRODUCT_VERSION = resolveProductVersion();
25139
25265
  //#endregion
25140
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
25266
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
25141
25267
  const MAX_CAPTURE_BYTES = 64 * 1024;
25142
25268
  function appendBounded(chunks, chunk, total) {
25143
25269
  if (total.value >= MAX_CAPTURE_BYTES) return;
@@ -25207,7 +25333,7 @@ function execFileNoThrow(file, args = [], options) {
25207
25333
  });
25208
25334
  }
25209
25335
  //#endregion
25210
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
25336
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
25211
25337
  const REPORT_TIMEOUT_MS = 2e3;
25212
25338
  const RELEASE_TIMEOUT_MS = 500;
25213
25339
  const RETRY_DELAYS_MS = [
@@ -25595,7 +25721,7 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((expo
25595
25721
  })();
25596
25722
  }));
25597
25723
  //#endregion
25598
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
25724
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
25599
25725
  var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
25600
25726
  if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
25601
25727
  else module.exports = require_react_jsx_runtime_development();
@@ -25652,7 +25778,7 @@ function writeThemePref(name, dir = PREFS_DIR) {
25652
25778
  }
25653
25779
  }
25654
25780
  //#endregion
25655
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
25781
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
25656
25782
  const EMPTY_THEME_SNAPSHOT = Object.freeze([]);
25657
25783
  const subscribeNoThemes = (_listener) => () => {};
25658
25784
  /**
@@ -25680,7 +25806,7 @@ function useRuntimeThemeSnapshot(themeHost) {
25680
25806
  return import_react.useSyncExternalStore(subscribeThemes, getThemeSnapshot, getThemeSnapshot);
25681
25807
  }
25682
25808
  //#endregion
25683
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event.js
25809
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event.js
25684
25810
  /**
25685
25811
  * Base class for events with immediate-propagation control.
25686
25812
  *
@@ -25704,7 +25830,7 @@ var Event = class {
25704
25830
  }
25705
25831
  };
25706
25832
  //#endregion
25707
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/emitter.js
25833
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/emitter.js
25708
25834
  /**
25709
25835
  * Node-compatible event emitter that is aware of the `Event` class, so
25710
25836
  * `emit` respects `stopImmediatePropagation()` on dispatched events.
@@ -25737,7 +25863,7 @@ var EventEmitter$1 = class extends EventEmitter {
25737
25863
  }
25738
25864
  };
25739
25865
  //#endregion
25740
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/StdinContext.js
25866
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/StdinContext.js
25741
25867
  /**
25742
25868
  * `StdinContext` is a React context, which exposes input stream.
25743
25869
  */
@@ -25751,14 +25877,14 @@ const StdinContext = (0, import_react.createContext)({
25751
25877
  });
25752
25878
  StdinContext.displayName = "InternalStdinContext";
25753
25879
  //#endregion
25754
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-stdin.js
25880
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-stdin.js
25755
25881
  /**
25756
25882
  * React hook exposing the stdin stream and raw-mode helpers from `StdinContext`.
25757
25883
  * @returns the `StdinContext` value.
25758
25884
  */
25759
25885
  const useStdin = () => (0, import_react.useContext)(StdinContext);
25760
25886
  //#endregion
25761
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/ansi.js
25887
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/ansi.js
25762
25888
  /**
25763
25889
  * ANSI Control Characters and Escape Sequence Introducers
25764
25890
  *
@@ -25832,7 +25958,7 @@ function isEscFinal(byte) {
25832
25958
  return byte >= 48 && byte <= 126;
25833
25959
  }
25834
25960
  //#endregion
25835
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/csi.js
25961
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/csi.js
25836
25962
  /**
25837
25963
  * CSI (Control Sequence Introducer) Types
25838
25964
  *
@@ -26155,7 +26281,7 @@ const ENABLE_WIN32_INPUT_MODE = csi("?9001h");
26155
26281
  */
26156
26282
  const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
26157
26283
  //#endregion
26158
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
26284
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
26159
26285
  /**
26160
26286
  * Minimal terminal-environment shim for the ported Ink core. The original
26161
26287
  * module computed a richer `env` object from the Claude Code app context; the
@@ -26164,7 +26290,7 @@ const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
26164
26290
  */
26165
26291
  const env$1 = { terminal: (process.env.TERM_PROGRAM ?? process.env.TERM ?? "unknown").toLowerCase() };
26166
26292
  //#endregion
26167
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/osc.js
26293
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/osc.js
26168
26294
  /**
26169
26295
  * OSC (Operating System Command) Types and Parser
26170
26296
  */
@@ -26560,7 +26686,7 @@ function supportsTabStatus() {
26560
26686
  return process.env.USER_TYPE === "ant";
26561
26687
  }
26562
26688
  //#endregion
26563
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-querier.js
26689
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-querier.js
26564
26690
  /**
26565
26691
  * Query the terminal and await responses without timeouts.
26566
26692
  *
@@ -26746,7 +26872,7 @@ var TerminalQuerier = class {
26746
26872
  }
26747
26873
  };
26748
26874
  //#endregion
26749
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemeProvider.js
26875
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemeProvider.js
26750
26876
  /**
26751
26877
  * Theme provider with terminal-background auto-detection. With no explicit
26752
26878
  * `theme` prop, no CHATCODE_CLI_TUI_THEME override and no persisted choice
@@ -26945,7 +27071,7 @@ function useTheme() {
26945
27071
  return [theme, setTheme];
26946
27072
  }
26947
27073
  //#endregion
26948
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settingsEditor.js
27074
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settingsEditor.js
26949
27075
  /**
26950
27076
  * React-free form model behind the `/settings` screen (issue #165), mirroring
26951
27077
  * the web front door's card-form.ts semantics: a section stages what the user
@@ -27195,7 +27321,7 @@ var SettingsForm = class {
27195
27321
  }
27196
27322
  };
27197
27323
  //#endregion
27198
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
27324
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
27199
27325
  /**
27200
27326
  * `/reload` planning — the pi-style soft reload: re-read the TUI's persisted
27201
27327
  * preference files (`~/.chatcode-cli/tui/{theme,lang,agent-preset,model,
@@ -28044,7 +28170,7 @@ var SignalExit = class extends SignalExitBase {
28044
28170
  const process$2 = globalThis.process;
28045
28171
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
28046
28172
  //#endregion
28047
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/enums.js
28173
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/enums.js
28048
28174
  /**
28049
28175
  * Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
28050
28176
  * Kept as `const` objects (not TS enums) per repo convention.
@@ -28176,7 +28302,7 @@ const Wrap = {
28176
28302
  WrapReverse: 2
28177
28303
  };
28178
28304
  //#endregion
28179
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/index.js
28305
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/index.js
28180
28306
  /**
28181
28307
  * Pure-TypeScript port of yoga-layout (Meta's flexbox engine).
28182
28308
  *
@@ -30627,7 +30753,7 @@ Object.defineProperties(createChalk.prototype, {
30627
30753
  const chalk = createChalk();
30628
30754
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
30629
30755
  //#endregion
30630
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
30756
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
30631
30757
  /**
30632
30758
  * xterm.js (VS Code, Cursor, code-server, Coder) has supported truecolor
30633
30759
  * since 2017, but code-server/Coder containers often don't set
@@ -30758,7 +30884,7 @@ function applyColor(text, color) {
30758
30884
  return colorize(text, color, "foreground");
30759
30885
  }
30760
30886
  //#endregion
30761
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
30887
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
30762
30888
  /**
30763
30889
  * Environment truthiness check for the ported Ink core. Accepts the common
30764
30890
  * shell truthy spellings (`1`, `true`, `yes`, `on`).
@@ -30776,7 +30902,7 @@ function isEnvTruthy(value) {
30776
30902
  ].includes(value.toLowerCase());
30777
30903
  }
30778
30904
  //#endregion
30779
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
30905
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
30780
30906
  /**
30781
30907
  * Whether mouse click handling is disabled for the ported Ink core. dsh-tui
30782
30908
  * reads its own env flag (`CHATCODE_CLI_TUI_DISABLE_MOUSE`); the original module
@@ -30787,7 +30913,7 @@ function isMouseClicksDisabled() {
30787
30913
  return isEnvTruthy(readTuiEnv("DISABLE_MOUSE"));
30788
30914
  }
30789
30915
  //#endregion
30790
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/input-suppression.js
30916
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/input-suppression.js
30791
30917
  /**
30792
30918
  * Input suppression window for terminal handoffs (issue #123): when stdin is
30793
30919
  * handed to an external TUI (full-screen editor) and back, the tty can
@@ -30814,7 +30940,7 @@ function isInputSuppressed() {
30814
30940
  return Date.now() < suppressedUntil;
30815
30941
  }
30816
30942
  //#endregion
30817
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/tokenize.js
30943
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/tokenize.js
30818
30944
  /**
30819
30945
  * Input Tokenizer - Escape sequence boundary detection
30820
30946
  *
@@ -31012,7 +31138,7 @@ function tokenize$2(input, initialState, initialBuffer, flush, x10Mouse, splitIn
31012
31138
  };
31013
31139
  }
31014
31140
  //#endregion
31015
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/parse-keypress.js
31141
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/parse-keypress.js
31016
31142
  /**
31017
31143
  * Keyboard input parser - converts terminal input to key events
31018
31144
  *
@@ -32087,7 +32213,7 @@ function createWheelKey(s, name, col, row, button) {
32087
32213
  };
32088
32214
  }
32089
32215
  //#endregion
32090
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/input-event.js
32216
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/input-event.js
32091
32217
  function parseKey(keypress) {
32092
32218
  const key = {
32093
32219
  upArrow: keypress.name === "up",
@@ -32172,7 +32298,7 @@ var InputEvent = class extends Event {
32172
32298
  }
32173
32299
  };
32174
32300
  //#endregion
32175
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-focus-event.js
32301
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-focus-event.js
32176
32302
  /**
32177
32303
  * Event fired when the terminal window gains or loses focus.
32178
32304
  *
@@ -32191,7 +32317,7 @@ var TerminalFocusEvent = class extends Event {
32191
32317
  }
32192
32318
  };
32193
32319
  //#endregion
32194
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/node-cache.js
32320
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/node-cache.js
32195
32321
  /** Layout bounds cached per rendered node, used for blitting and clearing. */
32196
32322
  const nodeCache = /* @__PURE__ */ new WeakMap();
32197
32323
  /** Rects of removed children that need clearing on next render */
@@ -32229,7 +32355,7 @@ function consumeAbsoluteRemovedFlag() {
32229
32355
  return had;
32230
32356
  }
32231
32357
  //#endregion
32232
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-event.js
32358
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-event.js
32233
32359
  /**
32234
32360
  * Base class for all terminal events with DOM-style propagation.
32235
32361
  *
@@ -32358,7 +32484,7 @@ var TerminalEvent = class extends Event {
32358
32484
  _prepareForTarget(_target) {}
32359
32485
  };
32360
32486
  //#endregion
32361
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/pointer-event.js
32487
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/pointer-event.js
32362
32488
  /**
32363
32489
  * Base class for pointer-derived terminal events (click, wheel, hover).
32364
32490
  *
@@ -32419,7 +32545,7 @@ var PointerEvent = class extends TerminalEvent {
32419
32545
  }
32420
32546
  };
32421
32547
  //#endregion
32422
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/drag-event.js
32548
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/drag-event.js
32423
32549
  /**
32424
32550
  * Component-level drag event (DOM HTML5 drag semantics subset).
32425
32551
  *
@@ -48527,7 +48653,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
48527
48653
  }, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
48528
48654
  }));
48529
48655
  //#endregion
48530
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/node.js
48656
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/node.js
48531
48657
  var import_react_reconciler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
48532
48658
  if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
48533
48659
  else module.exports = require_react_reconciler_development();
@@ -48603,7 +48729,7 @@ const LayoutMeasureMode = {
48603
48729
  AtMost: "at-most"
48604
48730
  };
48605
48731
  //#endregion
48606
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/yoga.js
48732
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/yoga.js
48607
48733
  const EDGE_MAP = {
48608
48734
  all: Edge.All,
48609
48735
  horizontal: Edge.Horizontal,
@@ -48830,7 +48956,7 @@ function createYogaLayoutNode() {
48830
48956
  return new YogaLayoutNode(YOGA_INSTANCE.Node.create());
48831
48957
  }
48832
48958
  //#endregion
48833
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/engine.js
48959
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/engine.js
48834
48960
  /**
48835
48961
  * Create a new layout node backed by the Yoga adapter.
48836
48962
  * @returns an empty layout node with no children, styles, or measure function.
@@ -48839,7 +48965,7 @@ function createLayoutNode() {
48839
48965
  return createYogaLayoutNode();
48840
48966
  }
48841
48967
  //#endregion
48842
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/line-width-cache.js
48968
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/line-width-cache.js
48843
48969
  const cache = /* @__PURE__ */ new Map();
48844
48970
  const MAX_CACHE_SIZE = 4096;
48845
48971
  const MAX_CACHE_CHARS = 1e5;
@@ -48875,7 +49001,7 @@ function lineWidth(line) {
48875
49001
  return width;
48876
49002
  }
48877
49003
  //#endregion
48878
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-text.js
49004
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-text.js
48879
49005
  /**
48880
49006
  * Measure wrapped text dimensions in a single pass.
48881
49007
  * @param text - the text to measure.
@@ -48906,7 +49032,7 @@ function measureText(text, maxWidth) {
48906
49032
  };
48907
49033
  }
48908
49034
  //#endregion
48909
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/squash-text-nodes.js
49035
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/squash-text-nodes.js
48910
49036
  /**
48911
49037
  * Squash text nodes into styled segments, propagating styles down through the tree.
48912
49038
  * This allows structured styling without relying on ANSI string transforms.
@@ -48954,7 +49080,7 @@ function squashTextNodes(node) {
48954
49080
  return text;
48955
49081
  }
48956
49082
  //#endregion
48957
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
49083
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
48958
49084
  const DEFAULT_TAB_INTERVAL = 8;
48959
49085
  /**
48960
49086
  * Expand tab characters to spaces at fixed column intervals, preserving
@@ -49404,7 +49530,7 @@ function tokenize$1(str, endChar = Number.POSITIVE_INFINITY) {
49404
49530
  return ret;
49405
49531
  }
49406
49532
  //#endregion
49407
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
49533
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
49408
49534
  function isEndCode(code) {
49409
49535
  return code.code === code.endCode;
49410
49536
  }
@@ -50021,7 +50147,7 @@ function wrapAnsi$1(string, columns, options) {
50021
50147
  return normalizeText(String(string)).replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs$1(line), columns, options)).join("\n");
50022
50148
  }
50023
50149
  //#endregion
50024
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
50150
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
50025
50151
  const wrapAnsiBun = typeof Bun !== "undefined" && typeof Bun.wrapAnsi === "function" ? Bun.wrapAnsi : null;
50026
50152
  const SLOT_MIN_LENGTH = 2048;
50027
50153
  let slot = null;
@@ -50068,7 +50194,7 @@ function wrapAnsiNpmIncremental(input, columns, options) {
50068
50194
  */
50069
50195
  const wrapAnsi = wrapAnsiBun ?? wrapAnsiNpmIncremental;
50070
50196
  //#endregion
50071
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrap-text.js
50197
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrap-text.js
50072
50198
  const ELLIPSIS = "…";
50073
50199
  const WRAP_CACHE_MAX_ENTRIES = 2048;
50074
50200
  const WRAP_CACHE_MAX_CHARS = 2e6;
@@ -50132,7 +50258,7 @@ function wrapText$1(text, maxWidth, wrapType) {
50132
50258
  return text;
50133
50259
  }
50134
50260
  //#endregion
50135
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
50261
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
50136
50262
  /**
50137
50263
  * Create an element node of the given kind, allocating its yoga layout node
50138
50264
  * unless the kind renders without layout (`ink-virtual-text`, `ink-link`,
@@ -50452,7 +50578,7 @@ function findOwnerChainAtRow(root, y) {
50452
50578
  }
50453
50579
  }
50454
50580
  //#endregion
50455
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event-handlers.js
50581
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event-handlers.js
50456
50582
  /**
50457
50583
  * Reverse lookup: event type string → handler prop names.
50458
50584
  * Used by the dispatcher for O(1) handler lookup per node.
@@ -50506,7 +50632,7 @@ const EVENT_HANDLER_PROPS = new Set([
50506
50632
  "onWheel"
50507
50633
  ]);
50508
50634
  //#endregion
50509
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/dispatcher.js
50635
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/dispatcher.js
50510
50636
  function getHandler(node, eventType, capture) {
50511
50637
  const handlers = node._eventHandlers;
50512
50638
  if (!handlers) return void 0;
@@ -50674,7 +50800,7 @@ var Dispatcher = class {
50674
50800
  }
50675
50801
  };
50676
50802
  //#endregion
50677
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/focus-event.js
50803
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/focus-event.js
50678
50804
  /**
50679
50805
  * Focus event for component focus changes.
50680
50806
  *
@@ -50699,7 +50825,7 @@ var FocusEvent = class extends TerminalEvent {
50699
50825
  }
50700
50826
  };
50701
50827
  //#endregion
50702
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
50828
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
50703
50829
  const MAX_FOCUS_STACK = 32;
50704
50830
  /**
50705
50831
  * DOM-like focus manager for the Ink terminal UI.
@@ -50855,7 +50981,7 @@ function getFocusManager(node) {
50855
50981
  return getRootNode(node).focusManager;
50856
50982
  }
50857
50983
  //#endregion
50858
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
50984
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
50859
50985
  const applyPositionStyles = (node, style) => {
50860
50986
  if ("position" in style) node.setPositionType(style.position === "absolute" ? LayoutPositionType.Absolute : LayoutPositionType.Relative);
50861
50987
  if ("top" in style) applyPositionEdge(node, "top", style.top);
@@ -50990,7 +51116,7 @@ const styles = (node, style = {}, resolvedStyle) => {
50990
51116
  applyGapStyles(node, style);
50991
51117
  };
50992
51118
  //#endregion
50993
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
51119
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
50994
51120
  if (process.env.NODE_ENV === "development") try {
50995
51121
  import("./devtools-la_KkjCS.js");
50996
51122
  } catch (error) {
@@ -51310,7 +51436,7 @@ const reconciler = (0, import_react_reconciler.default)({
51310
51436
  });
51311
51437
  dispatcher.discreteUpdates = reconciler.discreteUpdates.bind(reconciler);
51312
51438
  //#endregion
51313
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/geometry.js
51439
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/geometry.js
51314
51440
  /**
51315
51441
  * Compute the smallest rectangle containing both input rectangles.
51316
51442
  * @param a - the first rectangle.
@@ -51342,7 +51468,7 @@ function clamp(value, min, max) {
51342
51468
  return value;
51343
51469
  }
51344
51470
  //#endregion
51345
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
51471
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
51346
51472
  /**
51347
51473
  * Log a warning when a value is present but not an integer.
51348
51474
  * @param value - the value to check; undefined is skipped silently.
@@ -51354,7 +51480,7 @@ function ifNotInteger(value, name) {
51354
51480
  logForDebugging(`${name} should be an integer, got ${value}`, { level: "warn" });
51355
51481
  }
51356
51482
  //#endregion
51357
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
51483
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
51358
51484
  /**
51359
51485
  * Pool of character strings shared across all screens.
51360
51486
  * With a shared pool, interned char IDs are valid across screens, so
@@ -52423,7 +52549,7 @@ function markNoSelectRegion(screen, x, y, width, height) {
52423
52549
  }
52424
52550
  }
52425
52551
  //#endregion
52426
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
52552
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
52427
52553
  /**
52428
52554
  * Text selection state for fullscreen mode.
52429
52555
  *
@@ -53389,7 +53515,7 @@ function applySelectionOverlay(screen, selection, stylePool) {
53389
53515
  }
53390
53516
  }
53391
53517
  //#endregion
53392
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/dec.js
53518
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/dec.js
53393
53519
  /**
53394
53520
  * DEC (Digital Equipment Corporation) Private Mode Sequences
53395
53521
  *
@@ -53455,7 +53581,7 @@ const ENABLE_MOUSE_TRACKING = decset(DEC.MOUSE_NORMAL) + decset(DEC.MOUSE_BUTTON
53455
53581
  /** Disable all mouse tracking modes enabled by ENABLE_MOUSE_TRACKING. */
53456
53582
  const DISABLE_MOUSE_TRACKING = decreset(DEC.MOUSE_SGR) + decreset(DEC.MOUSE_ANY) + decreset(DEC.MOUSE_BUTTON) + decreset(DEC.MOUSE_NORMAL);
53457
53583
  //#endregion
53458
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
53584
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
53459
53585
  /**
53460
53586
  * True when running inside a JetBrains IDE terminal (JediTerm). The IDE
53461
53587
  * injects `TERMINAL_EMULATOR=JetBrains-JediTerm` into the pty environment of
@@ -53697,7 +53823,7 @@ function writeDiffToTerminal(terminal, diff, skipSyncMarkers = false) {
53697
53823
  terminal.stdout.write(buffer);
53698
53824
  }
53699
53825
  //#endregion
53700
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-focus-state.js
53826
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-focus-state.js
53701
53827
  let focusState = "unknown";
53702
53828
  const resolvers = /* @__PURE__ */ new Set();
53703
53829
  const subscribers = /* @__PURE__ */ new Set();
@@ -53741,7 +53867,7 @@ function subscribeTerminalFocus(cb) {
53741
53867
  };
53742
53868
  }
53743
53869
  //#endregion
53744
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AppContext.js
53870
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AppContext.js
53745
53871
  /**
53746
53872
  * `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
53747
53873
  */
@@ -53786,13 +53912,13 @@ var require_react_compiler_runtime_development = /* @__PURE__ */ __commonJSMin((
53786
53912
  })();
53787
53913
  }));
53788
53914
  //#endregion
53789
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
53915
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
53790
53916
  var import_compiler_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
53791
53917
  if (process.env.NODE_ENV === "production") module.exports = require_react_compiler_runtime_production();
53792
53918
  else module.exports = require_react_compiler_runtime_development();
53793
53919
  })))();
53794
53920
  //#endregion
53795
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/geometry-trace.js
53921
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/geometry-trace.js
53796
53922
  /**
53797
53923
  * Geometry forensics — per-frame scroll-geometry trace (issues #421/#433).
53798
53924
  *
@@ -53872,7 +53998,7 @@ function endGeometryFrame(durationMs) {
53872
53998
  };
53873
53999
  }
53874
54000
  //#endregion
53875
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalFocusContext.js
54001
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalFocusContext.js
53876
54002
  const TerminalFocusContext = (0, import_react.createContext)({
53877
54003
  isTerminalFocused: true,
53878
54004
  terminalFocusState: "unknown"
@@ -53907,7 +54033,7 @@ function TerminalFocusProvider(t0) {
53907
54033
  return t2;
53908
54034
  }
53909
54035
  //#endregion
53910
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-focus.js
54036
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-focus.js
53911
54037
  /**
53912
54038
  * Hook to check if the terminal has focus.
53913
54039
  *
@@ -53922,7 +54048,7 @@ function useTerminalFocus() {
53922
54048
  return isTerminalFocused;
53923
54049
  }
53924
54050
  //#endregion
53925
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ClockContext.js
54051
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ClockContext.js
53926
54052
  function createClock(tickIntervalMs) {
53927
54053
  const subscribers = /* @__PURE__ */ new Map();
53928
54054
  let interval = null;
@@ -54019,7 +54145,7 @@ function _temp() {
54019
54145
  return createClock(16);
54020
54146
  }
54021
54147
  //#endregion
54022
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/CursorDeclarationContext.js
54148
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/CursorDeclarationContext.js
54023
54149
  /**
54024
54150
  * React context that provides the cursor-declaration setter to descendants.
54025
54151
  */
@@ -54059,7 +54185,7 @@ var require_escape_string_regexp = /* @__PURE__ */ __commonJSMin(((exports, modu
54059
54185
  };
54060
54186
  }));
54061
54187
  //#endregion
54062
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Box.js
54188
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Box.js
54063
54189
  var import_stack_utils = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
54064
54190
  const escapeStringRegexp = require_escape_string_regexp();
54065
54191
  const cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
@@ -54427,7 +54553,7 @@ function Box(t0) {
54427
54553
  return t4;
54428
54554
  }
54429
54555
  //#endregion
54430
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Text.js
54556
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Text.js
54431
54557
  const memoizedStylesForWrap = {
54432
54558
  wrap: {
54433
54559
  flexGrow: 0,
@@ -54579,7 +54705,7 @@ function Text(t0) {
54579
54705
  return t16;
54580
54706
  }
54581
54707
  //#endregion
54582
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ErrorOverview.js
54708
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ErrorOverview.js
54583
54709
  const cleanupPath = (path) => {
54584
54710
  return path?.replace(`file://${process.cwd()}/`, "");
54585
54711
  };
@@ -54684,10 +54810,10 @@ function ErrorOverview({ error }) {
54684
54810
  });
54685
54811
  }
54686
54812
  //#endregion
54687
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalSizeContext.js
54813
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalSizeContext.js
54688
54814
  const TerminalSizeContext = (0, import_react.createContext)(null);
54689
54815
  //#endregion
54690
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
54816
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
54691
54817
  /**
54692
54818
  * React context providing a raw terminal write function. Null until a
54693
54819
  * TerminalWriteProvider is mounted.
@@ -54698,7 +54824,7 @@ const TerminalWriteContext = (0, import_react.createContext)(null);
54698
54824
  */
54699
54825
  const TerminalWriteProvider = TerminalWriteContext.Provider;
54700
54826
  //#endregion
54701
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/App.js
54827
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/App.js
54702
54828
  const SUPPORTS_SUSPEND = process.platform !== "win32";
54703
54829
  const STDIN_RESUME_GAP_MS = 5e3;
54704
54830
  const MULTI_CLICK_TIMEOUT_MS = 500;
@@ -55224,7 +55350,7 @@ function handleMouseEvent(app, m) {
55224
55350
  }
55225
55351
  }
55226
55352
  //#endregion
55227
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/keyboard-event.js
55353
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/keyboard-event.js
55228
55354
  /**
55229
55355
  * Keyboard event dispatched through the DOM tree via capture/bubble.
55230
55356
  *
@@ -55284,7 +55410,7 @@ function keyFromParsed(parsed) {
55284
55410
  return name || seq;
55285
55411
  }
55286
55412
  //#endregion
55287
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
55413
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
55288
55414
  /**
55289
55415
  * Create an empty frame with a zero-size screen, the given viewport, and a
55290
55416
  * visible cursor at the origin.
@@ -55310,7 +55436,7 @@ function emptyFrame(rows, columns, stylePool, charPool, hyperlinkPool) {
55310
55436
  };
55311
55437
  }
55312
55438
  //#endregion
55313
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/click-event.js
55439
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/click-event.js
55314
55440
  /**
55315
55441
  * Mouse click event. Fired on left-button release without drag, only when
55316
55442
  * mouse tracking is enabled (i.e. inside <AlternateScreen>).
@@ -55341,7 +55467,7 @@ var ClickEvent = class extends PointerEvent {
55341
55467
  }
55342
55468
  };
55343
55469
  //#endregion
55344
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/context-menu-event.js
55470
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/context-menu-event.js
55345
55471
  /**
55346
55472
  * Mouse context-menu event. Fired on right-button press (SGR button 2,
55347
55473
  * low bits of the raw button byte), mirroring the DOM `contextmenu` event
@@ -55365,7 +55491,7 @@ var ContextMenuEvent = class extends PointerEvent {
55365
55491
  }
55366
55492
  };
55367
55493
  //#endregion
55368
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/wheel-event.js
55494
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/wheel-event.js
55369
55495
  /**
55370
55496
  * Mouse wheel event dispatched to the ScrollBox under the pointer.
55371
55497
  *
@@ -55401,7 +55527,7 @@ function indentString(string, count = 1, options = {}) {
55401
55527
  return string.replace(regex, indent.repeat(count));
55402
55528
  }
55403
55529
  //#endregion
55404
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/get-max-width.js
55530
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/get-max-width.js
55405
55531
  /**
55406
55532
  * Returns the yoga node's content width (computed width minus padding and
55407
55533
  * border).
@@ -55506,7 +55632,7 @@ var cli_boxes_default = {
55506
55632
  }
55507
55633
  };
55508
55634
  //#endregion
55509
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-border.js
55635
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-border.js
55510
55636
  /** Built-in border styles beyond those provided by cli-boxes. */
55511
55637
  const CUSTOM_BORDER_STYLES = { dashed: {
55512
55638
  top: "╌",
@@ -55596,7 +55722,7 @@ const renderBorder = (x, y, node, output) => {
55596
55722
  }
55597
55723
  };
55598
55724
  //#endregion
55599
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/widest-line.js
55725
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/widest-line.js
55600
55726
  /**
55601
55727
  * Get the display width of the widest line in a string.
55602
55728
  * @param string - the text to measure, possibly containing newlines.
@@ -55615,7 +55741,7 @@ function widestLine(string) {
55615
55741
  return maxWidth;
55616
55742
  }
55617
55743
  //#endregion
55618
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-node-to-output.js
55744
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-node-to-output.js
55619
55745
  function isXtermJsHost() {
55620
55746
  return process.env.TERM_PROGRAM === "vscode" || isXtermJs();
55621
55747
  }
@@ -56431,7 +56557,7 @@ function dropSubtreeCache(node) {
56431
56557
  for (const child of node.childNodes) if (child.nodeName !== "#text") dropSubtreeCache(child);
56432
56558
  }
56433
56559
  //#endregion
56434
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hit-test.js
56560
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hit-test.js
56435
56561
  /**
56436
56562
  * Find the deepest DOM element whose rendered rect contains (col, row).
56437
56563
  *
@@ -56821,7 +56947,7 @@ function dispatchHover(root, col, row, hovered) {
56821
56947
  }
56822
56948
  }
56823
56949
  //#endregion
56824
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/flush-tick.js
56950
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/flush-tick.js
56825
56951
  /**
56826
56952
  * Monotonic terminal-flush counter for the ported Ink core.
56827
56953
  *
@@ -56854,7 +56980,7 @@ function getTerminalFlushTick() {
56854
56980
  return flushTick;
56855
56981
  }
56856
56982
  //#endregion
56857
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
56983
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
56858
56984
  /**
56859
56985
  * Live Ink instances keyed by their output stream, so consecutive render()
56860
56986
  * calls reuse the instance for a stream instead of creating a new one.
@@ -56863,7 +56989,7 @@ function getTerminalFlushTick() {
56863
56989
  */
56864
56990
  const instances = /* @__PURE__ */ new Map();
56865
56991
  //#endregion
56866
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/log-update.js
56992
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/log-update.js
56867
56993
  const CARRIAGE_RETURN = { type: "carriageReturn" };
56868
56994
  const NEWLINE = {
56869
56995
  type: "stdout",
@@ -57500,7 +57626,7 @@ var VirtualScreen = class {
57500
57626
  }
57501
57627
  };
57502
57628
  //#endregion
57503
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
57629
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
57504
57630
  /**
57505
57631
  * Optimize a diff by applying all optimization rules in a single pass.
57506
57632
  * This reduces the number of patches that need to be written to the terminal.
@@ -57565,7 +57691,7 @@ function optimize(diff) {
57565
57691
  return result;
57566
57692
  }
57567
57693
  //#endregion
57568
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
57694
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
57569
57695
  var import_bidi = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
57570
57696
  (function(global, factory) {
57571
57697
  typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.bidi_js = factory());
@@ -58341,7 +58467,7 @@ function hasRTLCharacters(text) {
58341
58467
  return /[\u0590-\u05FF\uFB1D-\uFB4F\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF\u0780-\u07BF\u0700-\u074F]/u.test(text);
58342
58468
  }
58343
58469
  //#endregion
58344
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
58470
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
58345
58471
  /**
58346
58472
  * charCache bounds. The entry-count cap alone was not enough: a streaming
58347
58473
  * line produces a NEW cache key on every frame, and each entry's cost is
@@ -59011,7 +59137,7 @@ function writeLineToScreen(screen, line, x, y, screenWidth, stylePool, charCache
59011
59137
  return offsetX;
59012
59138
  }
59013
59139
  //#endregion
59014
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-to-screen.js
59140
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-to-screen.js
59015
59141
  const timing = {
59016
59142
  reconcile: 0,
59017
59143
  yoga: 0,
@@ -59105,7 +59231,7 @@ function applyPositionedHighlight(screen, stylePool, positions, rowOffset, curre
59105
59231
  return true;
59106
59232
  }
59107
59233
  //#endregion
59108
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
59234
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
59109
59235
  /**
59110
59236
  * Create the renderer function for a root DOM node. The returned renderer
59111
59237
  * reuses an Output across frames so its character cache persists.
@@ -59180,7 +59306,7 @@ function createRenderer(node, stylePool) {
59180
59306
  };
59181
59307
  }
59182
59308
  //#endregion
59183
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
59309
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
59184
59310
  /**
59185
59311
  * Highlight all visible occurrences of `query` in the screen buffer by
59186
59312
  * inverting cell styles (SGR 7). Post-render, same damage-tracking machinery
@@ -59242,7 +59368,7 @@ function applySearchHighlight(screen, query, stylePool) {
59242
59368
  return applied;
59243
59369
  }
59244
59370
  //#endregion
59245
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
59371
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
59246
59372
  const ALT_SCREEN_ANCHOR_CURSOR = Object.freeze({
59247
59373
  x: 0,
59248
59374
  y: 0,
@@ -60795,7 +60921,7 @@ const CONSOLE_STDERR_METHODS = [
60795
60921
  "trace"
60796
60922
  ];
60797
60923
  //#endregion
60798
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
60924
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
60799
60925
  /**
60800
60926
  * Mount a component and render the output.
60801
60927
  * @param node - the React element to render.
@@ -60878,7 +61004,7 @@ const getInstance = (stdout, createInstance) => {
60878
61004
  return instance;
60879
61005
  };
60880
61006
  //#endregion
60881
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedBox.js
61007
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedBox.js
60882
61008
  /** Resolves a color value that may be a theme key to a raw Color. */
60883
61009
  function resolveColor$1(color, theme) {
60884
61010
  if (!color) return void 0;
@@ -60903,7 +61029,7 @@ function ThemedBox({ borderColor, borderTopColor, borderBottomColor, borderLeftC
60903
61029
  });
60904
61030
  }
60905
61031
  //#endregion
60906
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedText.js
61032
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedText.js
60907
61033
  /**
60908
61034
  * Colors uncolored ThemedText in the subtree. Precedence: explicit `color` >
60909
61035
  * this > dimColor (in the Claude Code visual language, where message rows
@@ -60939,7 +61065,7 @@ function ThemedText({ color, backgroundColor, dimColor = false, bold = false, it
60939
61065
  });
60940
61066
  }
60941
61067
  //#endregion
60942
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Spacer.js
61068
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Spacer.js
60943
61069
  /**
60944
61070
  * A flexible space that expands along the major axis of its containing layout.
60945
61071
  * It's useful as a shortcut for filling all the available spaces between elements.
@@ -60954,7 +61080,7 @@ function Spacer() {
60954
61080
  return t0;
60955
61081
  }
60956
61082
  //#endregion
60957
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Newline.js
61083
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Newline.js
60958
61084
  /**
60959
61085
  * Adds one or more newline (\n) characters. Must be used within <Text> components.
60960
61086
  */
@@ -60977,7 +61103,7 @@ function Newline(t0) {
60977
61103
  return t3;
60978
61104
  }
60979
61105
  //#endregion
60980
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/NoSelect.js
61106
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/NoSelect.js
60981
61107
  /**
60982
61108
  * Marks its contents as non-selectable in fullscreen text selection.
60983
61109
  * Cells inside this box are skipped by both the selection highlight and
@@ -61028,7 +61154,7 @@ function NoSelect(t0) {
61028
61154
  return t2;
61029
61155
  }
61030
61156
  //#endregion
61031
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AlternateScreen.js
61157
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AlternateScreen.js
61032
61158
  /**
61033
61159
  * Run children in the terminal's alternate screen buffer, constrained to
61034
61160
  * the viewport height. While mounted:
@@ -61103,7 +61229,7 @@ function AlternateScreen(t0) {
61103
61229
  return t5;
61104
61230
  }
61105
61231
  //#endregion
61106
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ScrollBox.js
61232
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ScrollBox.js
61107
61233
  /**
61108
61234
  * A Box with `overflow: scroll` and an imperative scroll API.
61109
61235
  *
@@ -61281,7 +61407,7 @@ function ScrollBox({ children, ref, stickyScroll, ...style }) {
61281
61407
  });
61282
61408
  }
61283
61409
  //#endregion
61284
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-input.js
61410
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-input.js
61285
61411
  /**
61286
61412
  * Keep an event listener stable while always dispatching to the latest render's
61287
61413
  * callback. Keeping this hook local is important for packaged installs: a
@@ -61347,7 +61473,7 @@ const useInput = (inputHandler, options = {}) => {
61347
61473
  }, [internal_eventEmitter, handleData]);
61348
61474
  };
61349
61475
  //#endregion
61350
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-selection.js
61476
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-selection.js
61351
61477
  /**
61352
61478
  * Access to text selection operations on the Ink instance (fullscreen only).
61353
61479
  * Returns no-op functions when fullscreen mode is disabled.
@@ -61387,7 +61513,7 @@ function useSelection() {
61387
61513
  }, [ink]);
61388
61514
  }
61389
61515
  //#endregion
61390
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-copy-on-select.js
61516
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-copy-on-select.js
61391
61517
  /**
61392
61518
  * Copy-on-select: when a drag finishes (or a double/triple click, or a
61393
61519
  * shift+arrow extension, lands a selection), copy the selected text to the
@@ -61427,14 +61553,14 @@ function useCopyOnSelect(onCopied) {
61427
61553
  ]);
61428
61554
  }
61429
61555
  //#endregion
61430
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-app.js
61556
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-app.js
61431
61557
  /**
61432
61558
  * React hook exposing the manual app-exit function from `AppContext`.
61433
61559
  * @returns the `AppContext` value, whose `exit` function unmounts the app.
61434
61560
  */
61435
61561
  const useApp = () => (0, import_react.useContext)(AppContext);
61436
61562
  //#endregion
61437
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-viewport.js
61563
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-viewport.js
61438
61564
  /**
61439
61565
  * Hook to detect if a component is within the terminal viewport.
61440
61566
  *
@@ -61488,7 +61614,7 @@ function useTerminalViewport() {
61488
61614
  return [setElement, entryRef.current];
61489
61615
  }
61490
61616
  //#endregion
61491
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-animation-frame.js
61617
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-animation-frame.js
61492
61618
  /**
61493
61619
  * Hook for synchronized animations that pause when offscreen.
61494
61620
  *
@@ -61537,7 +61663,7 @@ function useAnimationFrame(intervalMs = 16) {
61537
61663
  return [viewportRef, time];
61538
61664
  }
61539
61665
  //#endregion
61540
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-size.js
61666
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-size.js
61541
61667
  /** Terminal dimensions from the Ink app shell (from Claude Code).
61542
61668
  * @returns the current terminal dimensions.
61543
61669
  */
@@ -61547,7 +61673,7 @@ function useTerminalSize() {
61547
61673
  return size;
61548
61674
  }
61549
61675
  //#endregion
61550
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
61676
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
61551
61677
  const BLINK_INTERVAL_MS = 600;
61552
61678
  /**
61553
61679
  * Hook for synchronized blinking animations that pause when offscreen
@@ -61564,7 +61690,7 @@ function useBlink(enabled, intervalMs = BLINK_INTERVAL_MS) {
61564
61690
  return [ref, Math.floor(time / intervalMs) % 2 === 0];
61565
61691
  }
61566
61692
  //#endregion
61567
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/supports-hyperlinks.js
61693
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/supports-hyperlinks.js
61568
61694
  var import_supports_hyperlinks = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
61569
61695
  const supportsColor = require_supports_color();
61570
61696
  const hasFlag = require_has_flag();
@@ -61661,7 +61787,7 @@ function supportsHyperlinks(options) {
61661
61787
  return false;
61662
61788
  }
61663
61789
  //#endregion
61664
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Link.js
61790
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Link.js
61665
61791
  function Link(t0) {
61666
61792
  const $ = (0, import_compiler_runtime.c)(5);
61667
61793
  const { children, url, fallback } = t0;
@@ -61689,7 +61815,7 @@ function Link(t0) {
61689
61815
  return t2;
61690
61816
  }
61691
61817
  //#endregion
61692
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/esc.js
61818
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/esc.js
61693
61819
  /**
61694
61820
  * ESC Sequence Parser
61695
61821
  *
@@ -61745,7 +61871,7 @@ function parseEsc(chars) {
61745
61871
  };
61746
61872
  }
61747
61873
  //#endregion
61748
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/types.js
61874
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/types.js
61749
61875
  /**
61750
61876
  * ANSI Parser - Semantic Types
61751
61877
  *
@@ -61773,7 +61899,7 @@ function defaultStyle() {
61773
61899
  };
61774
61900
  }
61775
61901
  //#endregion
61776
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/sgr.js
61902
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/sgr.js
61777
61903
  /**
61778
61904
  * SGR (Select Graphic Rendition) Parser
61779
61905
  *
@@ -62081,7 +62207,7 @@ function applySGR(paramStr, style) {
62081
62207
  return s;
62082
62208
  }
62083
62209
  //#endregion
62084
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/parser.js
62210
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/parser.js
62085
62211
  /**
62086
62212
  * ANSI Parser - Semantic Action Generator
62087
62213
  *
@@ -62458,7 +62584,7 @@ var Parser = class {
62458
62584
  }
62459
62585
  };
62460
62586
  //#endregion
62461
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
62587
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
62462
62588
  /**
62463
62589
  * Component that parses ANSI escape codes and renders them using Text components.
62464
62590
  *
@@ -62709,7 +62835,7 @@ function StyledText(t0) {
62709
62835
  return t1;
62710
62836
  }
62711
62837
  //#endregion
62712
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
62838
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
62713
62839
  var ui_exports = /* @__PURE__ */ __exportAll({
62714
62840
  AlternateScreen: () => AlternateScreen,
62715
62841
  Ansi: () => Ansi,
@@ -62733,7 +62859,7 @@ var ui_exports = /* @__PURE__ */ __exportAll({
62733
62859
  useTheme: () => useTheme
62734
62860
  });
62735
62861
  //#endregion
62736
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
62862
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
62737
62863
  /** 嵌套安全的 inset(若未来出现嵌套 PageMargin 会累加)。 */
62738
62864
  const PageInsetContext = import_react.createContext({
62739
62865
  x: 0,
@@ -62787,7 +62913,7 @@ function PageMargin({ children }) {
62787
62913
  });
62788
62914
  }
62789
62915
  //#endregion
62790
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
62916
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
62791
62917
  /**
62792
62918
  * UI glyph constants used across the TUI: prompt markers, status badges,
62793
62919
  * direction arrows, media controls, reasoning-effort indicators, and
@@ -62814,7 +62940,7 @@ const THINKING_SPINNER_FRAMES = [
62814
62940
  "⠏"
62815
62941
  ];
62816
62942
  //#endregion
62817
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerWizard.js
62943
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerWizard.js
62818
62944
  /**
62819
62945
  * `/provider` wizard — interactively adds, edits, or deletes an LLM
62820
62946
  * provider route at runtime.
@@ -63540,7 +63666,7 @@ function buildProfile(input) {
63540
63666
  return profile;
63541
63667
  }
63542
63668
  //#endregion
63543
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/modelConfigWizard.js
63669
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/modelConfigWizard.js
63544
63670
  /** `/model-config`: platform catalogs and shared provider configuration. */
63545
63671
  const CUSTOM_MODEL_PROTOCOLS = [
63546
63672
  "openai-completions",
@@ -64422,7 +64548,7 @@ function parseCapacity(value) {
64422
64548
  return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : void 0;
64423
64549
  }
64424
64550
  //#endregion
64425
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-declared-cursor.js
64551
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-declared-cursor.js
64426
64552
  /**
64427
64553
  * Declares where the terminal cursor should be parked after each frame.
64428
64554
  *
@@ -64471,7 +64597,7 @@ function useDeclaredCursor(options) {
64471
64597
  return setNode;
64472
64598
  }
64473
64599
  //#endregion
64474
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-element.js
64600
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-element.js
64475
64601
  /**
64476
64602
  * Measure the rendered dimensions of a Box element.
64477
64603
  * @param node - the DOM element to measure.
@@ -64482,7 +64608,7 @@ const measureElement = (node) => ({
64482
64608
  height: node.yogaNode?.getComputedHeight() ?? 0
64483
64609
  });
64484
64610
  //#endregion
64485
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Divider.js
64611
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Divider.js
64486
64612
  const MAX_APPLIED_MEASUREMENTS = 8;
64487
64613
  /**
64488
64614
  * A horizontal divider line, optionally with a title in the middle
@@ -66210,7 +66336,7 @@ f.parseInline;
66210
66336
  O.parse;
66211
66337
  T.lex;
66212
66338
  //#endregion
66213
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
66339
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
66214
66340
  /** highlight.js token classes -> theme syntax tokens. `default` catches
66215
66341
  * every unmapped class so cli-highlight's own yellow never leaks through
66216
66342
  * (issue #250, P2-6). */
@@ -66276,7 +66402,7 @@ function buildSyntaxTheme(theme) {
66276
66402
  return out;
66277
66403
  }
66278
66404
  //#endregion
66279
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
66405
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
66280
66406
  /** OSC 8 hyperlink start sequence: `ESC ] 8 ; ;`, followed by the URL. */
66281
66407
  const OSC8_START = "\x1B]8;;";
66282
66408
  /** Schemes a rendered hyperlink may point at. Anything else degrades to
@@ -66318,7 +66444,7 @@ function createHyperlink(url, content, options) {
66318
66444
  return `${OSC8_START}${safeUrl}${(options?.style ?? ((text) => chalk.blue(text)))(displayText)}${OSC8_START}`;
66319
66445
  }
66320
66446
  //#endregion
66321
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
66447
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
66322
66448
  /**
66323
66449
  * Clickable file targets: turning path-like text in AI output into
66324
66450
  * clickable targets, and resolving those targets back to absolute paths at
@@ -66460,7 +66586,7 @@ function linkifyFilePaths(text, wrap) {
66460
66586
  });
66461
66587
  }
66462
66588
  //#endregion
66463
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
66589
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
66464
66590
  /**
66465
66591
  * Markdown-to-ANSI renderer over marked's token stream.
66466
66592
  *
@@ -66775,7 +66901,7 @@ function padAligned(content, displayWidth, targetWidth, align) {
66775
66901
  return content + " ".repeat(extra);
66776
66902
  }
66777
66903
  //#endregion
66778
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
66904
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
66779
66905
  let cliHighlightPromise;
66780
66906
  async function loadCliHighlight() {
66781
66907
  try {
@@ -66798,7 +66924,7 @@ function getCliHighlightPromise() {
66798
66924
  return cliHighlightPromise;
66799
66925
  }
66800
66926
  //#endregion
66801
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
66927
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
66802
66928
  /** Accounts for parent indentation and terminal resize races (from Claude Code). */
66803
66929
  const SAFETY_MARGIN = 4;
66804
66930
  /** Minimum column width to prevent degenerate layouts */
@@ -66985,7 +67111,7 @@ function MarkdownTable({ token, highlight, forceWidth }) {
66985
67111
  return (0, import_jsx_runtime.jsx)(Text, { children: tableLines.join("\n") });
66986
67112
  }
66987
67113
  //#endregion
66988
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
67114
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
66989
67115
  const TOKEN_CACHE_CAPACITY = 200;
66990
67116
  const TOKEN_CACHE_CHAR_BUDGET = 2e5;
66991
67117
  const TOKEN_CACHE_MAX_SOURCE_LENGTH = 2e4;
@@ -67094,7 +67220,7 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true }) {
67094
67220
  */
67095
67221
  const Markdown = import_react.memo(MarkdownImpl, (prev, next) => prev.children === next.children && prev.dimColor === next.dimColor && prev.cacheTokens === next.cacheTokens);
67096
67222
  //#endregion
67097
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/PlanReviewPanel.js
67223
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/PlanReviewPanel.js
67098
67224
  /**
67099
67225
  * The plan-review panel — Claude Code style exit-plan-mode decision card
67100
67226
  * for the DSH user-interaction seam. plan-mode's `exit_plan_mode` tool asks
@@ -67416,7 +67542,7 @@ function PlanReviewPanel({ question, onAnswer, onCancel }) {
67416
67542
  });
67417
67543
  }
67418
67544
  //#endregion
67419
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
67545
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
67420
67546
  /**
67421
67547
  * 焦点居中的列表窗口:长列表只渲染焦点附近的一段,保证焦点行始终可见。
67422
67548
  * 瞬态面板走 OverlayAbove 零高度浮层后,超高部分会被 overflow 裁掉且焦点
@@ -67468,7 +67594,7 @@ function listWindow(heights, focusIndex, maxRows, gap = 0) {
67468
67594
  }
67469
67595
  }
67470
67596
  //#endregion
67471
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/AskUserQuestionPanel.js
67597
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/AskUserQuestionPanel.js
67472
67598
  /**
67473
67599
  * The questionnaire panel — Claude Code style ask-user-question UI for the
67474
67600
  * DSH user-interaction seam. One question per panel (progress header, header
@@ -68062,7 +68188,7 @@ function AskUserQuestionPanel({ question, position, total, answered, initialDraf
68062
68188
  });
68063
68189
  }
68064
68190
  //#endregion
68065
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/approvals/ApprovalPanel.js
68191
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/approvals/ApprovalPanel.js
68066
68192
  /**
68067
68193
  * The approval panel — Claude Code style permission prompt for the DSH
68068
68194
  * approval seam (`ctx.approval`). One ask per panel: a permission-colored
@@ -68187,7 +68313,7 @@ function ApprovalPanel({ approval, background = false, onDecide }) {
68187
68313
  });
68188
68314
  }
68189
68315
  //#endregion
68190
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Pane.js
68316
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Pane.js
68191
68317
  /**
68192
68318
  * A pane — a region below the prompt bounded by a colored top line with a
68193
68319
  * one-row gap above and horizontal padding, mirroring Claude Code's
@@ -68209,7 +68335,7 @@ function Pane({ children, color }) {
68209
68335
  });
68210
68336
  }
68211
68337
  //#endregion
68212
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ListItem.js
68338
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ListItem.js
68213
68339
  /**
68214
68340
  * A list item for selection UIs, mirroring Claude Code's
68215
68341
  * design-system/ListItem.tsx: `❯` pointer for the focused row, `✓`
@@ -68306,7 +68432,7 @@ function flattenDeep(node) {
68306
68432
  return node;
68307
68433
  }
68308
68434
  //#endregion
68309
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/HintLine.js
68435
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/HintLine.js
68310
68436
  /**
68311
68437
  * Localized shortcut-hint line: renders a `t('hint-*')` string, with the
68312
68438
  * `**primary shortcut**` segment (the main action's key, wrapped in `**` in
@@ -68323,7 +68449,7 @@ function HintLine({ text }) {
68323
68449
  }, index) : part) });
68324
68450
  }
68325
68451
  //#endregion
68326
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
68452
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
68327
68453
  /**
68328
68454
  * The managed plugin dialog (`ctx.tuiDialogs`) — one panel rendering the
68329
68455
  * store's current snapshot in the chat chrome (the slot approval/question
@@ -68583,7 +68709,7 @@ function InputDialog({ dialog, onDecide, onCancel }) {
68583
68709
  });
68584
68710
  }
68585
68711
  //#endregion
68586
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-search-highlight.js
68712
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-search-highlight.js
68587
68713
  /**
68588
68714
  * Set the search highlight query on the Ink instance. Non-empty → all
68589
68715
  * visible occurrences are inverted on the next frame (SGR 7, screen-buffer
@@ -68615,7 +68741,7 @@ function useSearchHighlight() {
68615
68741
  }, [ink]);
68616
68742
  }
68617
68743
  //#endregion
68618
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-title.js
68744
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-title.js
68619
68745
  /**
68620
68746
  * Declaratively set the terminal tab/window title.
68621
68747
  *
@@ -68638,7 +68764,7 @@ function useTerminalTitle(title) {
68638
68764
  }, [title, writeRaw]);
68639
68765
  }
68640
68766
  //#endregion
68641
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
68767
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
68642
68768
  /**
68643
68769
  * Session browser formatting.
68644
68770
  *
@@ -68887,223 +69013,13 @@ function projectName(cwd) {
68887
69013
  return normalized.split("/").filter(Boolean).at(-1) ?? normalized;
68888
69014
  }
68889
69015
  //#endregion
68890
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
68891
- /**
68892
- * Tooltip hover system — the terminal equivalent of the HTML `title`
68893
- * attribute. Attach {@link useTooltip} props to any Box whose visible text
68894
- * may be truncated (tool-call header paths, wrapped prompts, status-line
68895
- * fields); after a ~600ms dwell the full content pops up in a floating card
68896
- * anchored at the pointer, and disappears the moment the pointer leaves.
68897
- *
68898
- * Attach it ONLY when the text is actually hidden: a float that repeats
68899
- * content already visible next to the pointer is noise, not detail (the
68900
- * tool-call header gates on folded/clipped content for this reason).
68901
- *
68902
- * Hover events only exist in fullscreen (alternate screen + mouse
68903
- * tracking); inline mode never fires the handlers, so the store can only
68904
- * be written from a live fullscreen tree.
68905
- */
68906
- /** Default dwell before the tooltip appears (GUI `title` convention). */
68907
- const DEFAULT_TOOLTIP_DELAY_MS = 600;
68908
- let state = null;
68909
- let invalidationGeneration = 0;
68910
- const listeners$1 = /* @__PURE__ */ new Set();
68911
- function notify() {
68912
- for (const listener of listeners$1) listener();
68913
- }
68914
- /** Subscribe to tooltip show/hide; returns an unsubscribe function. */
68915
- function subscribeTooltip(listener) {
68916
- listeners$1.add(listener);
68917
- return () => {
68918
- listeners$1.delete(listener);
68919
- };
68920
- }
68921
- /** Stable snapshot for useSyncExternalStore (identity kept until changed). */
68922
- function getTooltipSnapshot() {
68923
- return state;
68924
- }
68925
- function showTooltip(owner, col, row, content) {
68926
- state = {
68927
- owner,
68928
- anchorCol: col,
68929
- anchorRow: row,
68930
- content
68931
- };
68932
- notify();
68933
- }
68934
- function hideTooltip(owner) {
68935
- if (state !== null && state.owner === owner) {
68936
- state = null;
68937
- notify();
68938
- }
68939
- }
68940
- /** Hide shown content and invalidate every pending dwell timer. */
68941
- function clearTooltip() {
68942
- invalidationGeneration++;
68943
- if (state !== null) {
68944
- state = null;
68945
- notify();
68946
- }
68947
- }
68948
- /**
68949
- * Hover props that pop a tooltip with the full content after a dwell.
68950
- *
68951
- * The pointer position (screen col/row) is taken from the PointerEvent the
68952
- * renderer hands to `onMouseEnter` — the runtime always passes one even
68953
- * though the prop type is `() => void`, which is why the handler's parameter
68954
- * is optional (a `() => void` prop accepts a function with only optional
68955
- * parameters).
68956
- */
68957
- function useTooltip(content, opts) {
68958
- const ownerRef = import_react.useRef(null);
68959
- if (ownerRef.current === null) ownerRef.current = { timer: null };
68960
- const owner = ownerRef.current;
68961
- const contentRef = import_react.useRef(content);
68962
- contentRef.current = content;
68963
- const delayMs = opts?.delayMs ?? DEFAULT_TOOLTIP_DELAY_MS;
68964
- import_react.useEffect(() => () => {
68965
- if (owner.timer !== null) clearTimeout(owner.timer);
68966
- hideTooltip(owner);
68967
- }, [owner]);
68968
- return import_react.useMemo(() => ({
68969
- onMouseEnter: (event) => {
68970
- const col = event?.col ?? 0;
68971
- const row = event?.row ?? 0;
68972
- if (owner.timer !== null) clearTimeout(owner.timer);
68973
- const generationAtEnter = invalidationGeneration;
68974
- owner.timer = setTimeout(() => {
68975
- owner.timer = null;
68976
- if (generationAtEnter !== invalidationGeneration) return;
68977
- const resolved = typeof contentRef.current === "function" ? contentRef.current() : contentRef.current;
68978
- if (resolved === "") return;
68979
- showTooltip(owner, col, row, resolved);
68980
- }, delayMs);
68981
- },
68982
- onMouseLeave: () => {
68983
- if (owner.timer !== null) {
68984
- clearTimeout(owner.timer);
68985
- owner.timer = null;
68986
- }
68987
- hideTooltip(owner);
68988
- }
68989
- }), [owner, delayMs]);
68990
- }
68991
- /**
68992
- * Convenience wrapper for list rows built from data (a component boundary
68993
- * makes the hook call legal per item). Renders a plain Box carrying the
68994
- * hover props around `children`.
68995
- */
68996
- function TooltipTarget({ content, children }) {
68997
- return (0, import_jsx_runtime.jsx)(ThemedBox, {
68998
- ...useTooltip(content),
68999
- children
69000
- });
69001
- }
69002
- /**
69003
- * The singleton floating layer: subscribes to the tooltip store and renders
69004
- * the rounded card above the anchor row (below it when there is no room),
69005
- * horizontally clamped inside the terminal. Mount once, LAST in the tree so
69006
- * it paints over everything else. Terminal resize hides the tooltip — its
69007
- * anchor is screen geometry that just went stale.
69008
- */
69009
- function TooltipLayer({ invalidationKey, subscribeInvalidation } = {}) {
69010
- const { columns, rows } = useTerminalSize();
69011
- const terminalFocused = useTerminalFocus();
69012
- const tooltip = import_react.useSyncExternalStore(subscribeTooltip, getTooltipSnapshot);
69013
- import_react.useEffect(() => {
69014
- clearTooltip();
69015
- }, [invalidationKey]);
69016
- import_react.useEffect(() => {
69017
- if (!terminalFocused) clearTooltip();
69018
- }, [terminalFocused]);
69019
- import_react.useEffect(() => {
69020
- if (subscribeInvalidation === void 0) return;
69021
- return subscribeInvalidation(clearTooltip);
69022
- }, [subscribeInvalidation]);
69023
- const prevSize = import_react.useRef({
69024
- columns,
69025
- rows
69026
- });
69027
- import_react.useEffect(() => {
69028
- if (prevSize.current.columns !== columns || prevSize.current.rows !== rows) {
69029
- prevSize.current = {
69030
- columns,
69031
- rows
69032
- };
69033
- clearTooltip();
69034
- }
69035
- }, [columns, rows]);
69036
- if (tooltip === null) return null;
69037
- if (columns < 3 || rows < 3) return null;
69038
- const maxWidth = Math.max(3, columns - 4);
69039
- let lines = wrapTooltipContent(tooltip.content, maxWidth - 2);
69040
- const maxLines = Math.max(1, rows - 2);
69041
- if (lines.length > maxLines) lines = lines.slice(0, maxLines);
69042
- const width = Math.min(maxWidth - 2, Math.max(1, ...lines.map(stringWidth$1))) + 2;
69043
- const height = lines.length + 2;
69044
- const inset = import_react.useContext(PageInsetContext);
69045
- const topAbove = tooltip.anchorRow - height;
69046
- const top = Math.max(inset.y, Math.min(topAbove >= 0 ? topAbove : tooltip.anchorRow + 1, inset.y + Math.max(0, rows - height)));
69047
- return (0, import_jsx_runtime.jsx)(ThemedBox, {
69048
- position: "absolute",
69049
- left: Math.max(inset.x, Math.min(tooltip.anchorCol, inset.x + Math.max(0, columns - width))),
69050
- top,
69051
- width,
69052
- height,
69053
- flexDirection: "column",
69054
- flexShrink: 0,
69055
- borderStyle: "round",
69056
- borderColor: "permission",
69057
- backgroundColor: "toolCardBackground",
69058
- children: lines.map((line, index) => (0, import_jsx_runtime.jsx)(ThemedText, {
69059
- wrap: "truncate-end",
69060
- children: line === "" ? " " : line
69061
- }, index))
69062
- });
69063
- }
69064
- /**
69065
- * Wrap tooltip content to display width, breaking only BETWEEN grapheme
69066
- * clusters (ZWJ emoji, combining sequences and CJK wide cells stay whole).
69067
- * Newlines in the input are honoured. Mirrors PromptInput.wrapToWidth's
69068
- * break rule so the tooltip shows exactly the text the input would wrap.
69069
- */
69070
- function wrapTooltipContent(text, width) {
69071
- const rows = [];
69072
- if (width <= 0) return rows;
69073
- text = stripAnsi$1(text).replace(/\t/gu, " ").replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu, "");
69074
- const segmenter = getGraphemeSegmenter();
69075
- for (const line of text.split("\n")) {
69076
- if (line === "") {
69077
- rows.push("");
69078
- continue;
69079
- }
69080
- let current = "";
69081
- let used = 0;
69082
- for (const { segment } of segmenter.segment(line)) {
69083
- const w = stringWidth$1(segment);
69084
- if (used + w > width && current !== "") {
69085
- rows.push(current);
69086
- current = segment;
69087
- used = w;
69088
- } else {
69089
- current += segment;
69090
- used += w;
69091
- }
69092
- }
69093
- rows.push(current);
69094
- }
69095
- return rows;
69096
- }
69097
- //#endregion
69098
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/UserPromptMessage.js
69016
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/UserPromptMessage.js
69099
69017
  /** User prompt row in the legacy CLI treatment: a full-width gray strip. */
69100
69018
  function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
69101
69019
  const { columns } = useTerminalSize();
69102
69020
  const prefixWidth = stringWidth$1(`❯ `);
69103
69021
  const lines = wrapWidth(text, Math.max(1, columns - prefixWidth - 3));
69104
69022
  const continuationIndent = " ".repeat(prefixWidth);
69105
- const promptTooltip = useTooltip(text);
69106
- const tooltipActive = lines.length > 1;
69107
69023
  return (0, import_jsx_runtime.jsx)(ThemedBox, {
69108
69024
  flexDirection: "column",
69109
69025
  marginTop: addMargin ? 1 : 0,
@@ -69111,7 +69027,6 @@ function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
69111
69027
  backgroundColor: isSelected ? "messageActionsBackground" : "userMessageBackground",
69112
69028
  paddingRight: 1,
69113
69029
  onClick,
69114
- ...tooltipActive ? promptTooltip : {},
69115
69030
  children: lines.map((line, index) => (0, import_jsx_runtime.jsxs)(ThemedText, {
69116
69031
  color: "text",
69117
69032
  bold: true,
@@ -69124,7 +69039,7 @@ function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
69124
69039
  });
69125
69040
  }
69126
69041
  //#endregion
69127
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantTextMessage.js
69042
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantTextMessage.js
69128
69043
  /**
69129
69044
  * Assistant text message: bullet + markdown body (mirroring Claude Code's default branch).
69130
69045
  *
@@ -69157,7 +69072,7 @@ function AssistantTextMessage({ text, addMargin, isSelected = false, isExpanded
69157
69072
  });
69158
69073
  }
69159
69074
  //#endregion
69160
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
69075
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
69161
69076
  /**
69162
69077
  * Renders markdown during streaming by splitting at the last top-level block
69163
69078
  * boundary: everything before is stable (memoized, never re-parsed), only the
@@ -69347,7 +69262,7 @@ function StreamingMarkdown({ children, dimColor = false }) {
69347
69262
  });
69348
69263
  }
69349
69264
  //#endregion
69350
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/spinnerUtils.js
69265
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/spinnerUtils.js
69351
69266
  /**
69352
69267
  * Spinner 动画的通用工具集:平台相关的帧字符选择、RGB 颜色插值、
69353
69268
  * HSL 色相转 RGB,以及 `rgb(...)` 颜色字符串的解析与记忆化。
@@ -69427,7 +69342,7 @@ function parseRGB(colorStr) {
69427
69342
  return parsed;
69428
69343
  }
69429
69344
  //#endregion
69430
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
69345
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
69431
69346
  /** Header blue-white ladder: brand → ice → pale → soft ice flash.
69432
69347
  * FLASH stays visibly blue (never pure white) — the highlight reads as a
69433
69348
  * mist-brightened crest, not a white strobe. */
@@ -69443,7 +69358,7 @@ const ICE = {
69443
69358
  b: 255
69444
69359
  };
69445
69360
  //#endregion
69446
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantThinkingMessage.js
69361
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantThinkingMessage.js
69447
69362
  /** Preview body rows — a FIXED row count (kimicode-style constant-height
69448
69363
  * ticker). Ink's truncate slices the whole string across newlines as one
69449
69364
  * logical line, so a single joined Text collapses to 1-2 rows whenever
@@ -69556,7 +69471,7 @@ function AssistantThinkingMessage({ thinking, textFull, addMargin, verbose, stre
69556
69471
  });
69557
69472
  }
69558
69473
  //#endregion
69559
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
69474
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
69560
69475
  const CATEGORY_BY_TOOL = {
69561
69476
  bash: "exec",
69562
69477
  powershell: "exec",
@@ -70137,7 +70052,7 @@ var ArrayDiff = class extends Diff {
70137
70052
  };
70138
70053
  new ArrayDiff();
70139
70054
  //#endregion
70140
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
70055
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
70141
70056
  const ANSI16 = {
70142
70057
  30: "rgb(0,0,0)",
70143
70058
  31: "rgb(128,0,0)",
@@ -70222,7 +70137,7 @@ function syntaxThemeSignature(theme) {
70222
70137
  return Object.values(SYNTAX_CLASS_TO_TOKEN).map((key) => palette[key] ?? "").join("|");
70223
70138
  }
70224
70139
  //#endregion
70225
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
70140
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
70226
70141
  /**
70227
70142
  * Smooth streaming reveal — decouples "text the provider has delivered" from
70228
70143
  * "text the screen is showing" (the oh-my-pi `display.smoothStreaming` idea,
@@ -70468,7 +70383,7 @@ function revealLinesOf(key, total, options) {
70468
70383
  return Math.min(existing.revealed, total);
70469
70384
  }
70470
70385
  //#endregion
70471
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
70386
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
70472
70387
  /** Replace tabs so width math and alignment hold (pi convention). */
70473
70388
  const expandTabs = (text) => text.replaceAll(" ", " ");
70474
70389
  /**
@@ -70777,7 +70692,7 @@ function SplitDiffView({ diffs, width, maxRows, verbose, toolBackground = "none"
70777
70692
  });
70778
70693
  }
70779
70694
  //#endregion
70780
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
70695
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
70781
70696
  /** Async nested Text renderer. Lexes the complete payload before splitting. */
70782
70697
  function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, dimColor }) {
70783
70698
  const [highlighter, setHighlighter] = import_react.useState(null);
@@ -70821,7 +70736,215 @@ function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, d
70821
70736
  }, index)) });
70822
70737
  }
70823
70738
  //#endregion
70824
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/format.js
70739
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
70740
+ /**
70741
+ * Tooltip hover system — the terminal equivalent of the HTML `title`
70742
+ * attribute. Attach {@link useTooltip} props to any Box whose visible text
70743
+ * may be truncated (tool-call header paths, wrapped prompts, status-line
70744
+ * fields); after a ~600ms dwell the full content pops up in a floating card
70745
+ * anchored at the pointer, and disappears the moment the pointer leaves.
70746
+ *
70747
+ * Attach it ONLY when the text is actually hidden: a float that repeats
70748
+ * content already visible next to the pointer is noise, not detail (the
70749
+ * tool-call header gates on folded/clipped content for this reason).
70750
+ *
70751
+ * Hover events only exist in fullscreen (alternate screen + mouse
70752
+ * tracking); inline mode never fires the handlers, so the store can only
70753
+ * be written from a live fullscreen tree.
70754
+ */
70755
+ /** Default dwell before the tooltip appears (GUI `title` convention). */
70756
+ const DEFAULT_TOOLTIP_DELAY_MS = 600;
70757
+ let state = null;
70758
+ let invalidationGeneration = 0;
70759
+ const listeners$1 = /* @__PURE__ */ new Set();
70760
+ function notify() {
70761
+ for (const listener of listeners$1) listener();
70762
+ }
70763
+ /** Subscribe to tooltip show/hide; returns an unsubscribe function. */
70764
+ function subscribeTooltip(listener) {
70765
+ listeners$1.add(listener);
70766
+ return () => {
70767
+ listeners$1.delete(listener);
70768
+ };
70769
+ }
70770
+ /** Stable snapshot for useSyncExternalStore (identity kept until changed). */
70771
+ function getTooltipSnapshot() {
70772
+ return state;
70773
+ }
70774
+ function showTooltip(owner, col, row, content) {
70775
+ state = {
70776
+ owner,
70777
+ anchorCol: col,
70778
+ anchorRow: row,
70779
+ content
70780
+ };
70781
+ notify();
70782
+ }
70783
+ function hideTooltip(owner) {
70784
+ if (state !== null && state.owner === owner) {
70785
+ state = null;
70786
+ notify();
70787
+ }
70788
+ }
70789
+ /** Hide shown content and invalidate every pending dwell timer. */
70790
+ function clearTooltip() {
70791
+ invalidationGeneration++;
70792
+ if (state !== null) {
70793
+ state = null;
70794
+ notify();
70795
+ }
70796
+ }
70797
+ /**
70798
+ * Hover props that pop a tooltip with the full content after a dwell.
70799
+ *
70800
+ * The pointer position (screen col/row) is taken from the PointerEvent the
70801
+ * renderer hands to `onMouseEnter` — the runtime always passes one even
70802
+ * though the prop type is `() => void`, which is why the handler's parameter
70803
+ * is optional (a `() => void` prop accepts a function with only optional
70804
+ * parameters).
70805
+ */
70806
+ function useTooltip(content, opts) {
70807
+ const ownerRef = import_react.useRef(null);
70808
+ if (ownerRef.current === null) ownerRef.current = { timer: null };
70809
+ const owner = ownerRef.current;
70810
+ const contentRef = import_react.useRef(content);
70811
+ contentRef.current = content;
70812
+ const delayMs = opts?.delayMs ?? DEFAULT_TOOLTIP_DELAY_MS;
70813
+ import_react.useEffect(() => () => {
70814
+ if (owner.timer !== null) clearTimeout(owner.timer);
70815
+ hideTooltip(owner);
70816
+ }, [owner]);
70817
+ return import_react.useMemo(() => ({
70818
+ onMouseEnter: (event) => {
70819
+ const col = event?.col ?? 0;
70820
+ const row = event?.row ?? 0;
70821
+ if (owner.timer !== null) clearTimeout(owner.timer);
70822
+ const generationAtEnter = invalidationGeneration;
70823
+ owner.timer = setTimeout(() => {
70824
+ owner.timer = null;
70825
+ if (generationAtEnter !== invalidationGeneration) return;
70826
+ const resolved = typeof contentRef.current === "function" ? contentRef.current() : contentRef.current;
70827
+ if (resolved === "") return;
70828
+ showTooltip(owner, col, row, resolved);
70829
+ }, delayMs);
70830
+ },
70831
+ onMouseLeave: () => {
70832
+ if (owner.timer !== null) {
70833
+ clearTimeout(owner.timer);
70834
+ owner.timer = null;
70835
+ }
70836
+ hideTooltip(owner);
70837
+ }
70838
+ }), [owner, delayMs]);
70839
+ }
70840
+ /**
70841
+ * Convenience wrapper for list rows built from data (a component boundary
70842
+ * makes the hook call legal per item). Renders a plain Box carrying the
70843
+ * hover props around `children`.
70844
+ */
70845
+ function TooltipTarget({ content, children }) {
70846
+ return (0, import_jsx_runtime.jsx)(ThemedBox, {
70847
+ ...useTooltip(content),
70848
+ children
70849
+ });
70850
+ }
70851
+ /**
70852
+ * The singleton floating layer: subscribes to the tooltip store and renders
70853
+ * the rounded card above the anchor row (below it when there is no room),
70854
+ * horizontally clamped inside the terminal. Mount once, LAST in the tree so
70855
+ * it paints over everything else. Terminal resize hides the tooltip — its
70856
+ * anchor is screen geometry that just went stale.
70857
+ */
70858
+ function TooltipLayer({ invalidationKey, subscribeInvalidation } = {}) {
70859
+ const { columns, rows } = useTerminalSize();
70860
+ const terminalFocused = useTerminalFocus();
70861
+ const tooltip = import_react.useSyncExternalStore(subscribeTooltip, getTooltipSnapshot);
70862
+ import_react.useEffect(() => {
70863
+ clearTooltip();
70864
+ }, [invalidationKey]);
70865
+ import_react.useEffect(() => {
70866
+ if (!terminalFocused) clearTooltip();
70867
+ }, [terminalFocused]);
70868
+ import_react.useEffect(() => {
70869
+ if (subscribeInvalidation === void 0) return;
70870
+ return subscribeInvalidation(clearTooltip);
70871
+ }, [subscribeInvalidation]);
70872
+ const prevSize = import_react.useRef({
70873
+ columns,
70874
+ rows
70875
+ });
70876
+ import_react.useEffect(() => {
70877
+ if (prevSize.current.columns !== columns || prevSize.current.rows !== rows) {
70878
+ prevSize.current = {
70879
+ columns,
70880
+ rows
70881
+ };
70882
+ clearTooltip();
70883
+ }
70884
+ }, [columns, rows]);
70885
+ if (tooltip === null) return null;
70886
+ if (columns < 3 || rows < 3) return null;
70887
+ const maxWidth = Math.max(3, columns - 4);
70888
+ let lines = wrapTooltipContent(tooltip.content, maxWidth - 2);
70889
+ const maxLines = Math.max(1, rows - 2);
70890
+ if (lines.length > maxLines) lines = lines.slice(0, maxLines);
70891
+ const width = Math.min(maxWidth - 2, Math.max(1, ...lines.map(stringWidth$1))) + 2;
70892
+ const height = lines.length + 2;
70893
+ const inset = import_react.useContext(PageInsetContext);
70894
+ const topAbove = tooltip.anchorRow - height;
70895
+ const top = Math.max(inset.y, Math.min(topAbove >= 0 ? topAbove : tooltip.anchorRow + 1, inset.y + Math.max(0, rows - height)));
70896
+ return (0, import_jsx_runtime.jsx)(ThemedBox, {
70897
+ position: "absolute",
70898
+ left: Math.max(inset.x, Math.min(tooltip.anchorCol, inset.x + Math.max(0, columns - width))),
70899
+ top,
70900
+ width,
70901
+ height,
70902
+ flexDirection: "column",
70903
+ flexShrink: 0,
70904
+ borderStyle: "round",
70905
+ borderColor: "permission",
70906
+ backgroundColor: "toolCardBackground",
70907
+ children: lines.map((line, index) => (0, import_jsx_runtime.jsx)(ThemedText, {
70908
+ wrap: "truncate-end",
70909
+ children: line === "" ? " " : line
70910
+ }, index))
70911
+ });
70912
+ }
70913
+ /**
70914
+ * Wrap tooltip content to display width, breaking only BETWEEN grapheme
70915
+ * clusters (ZWJ emoji, combining sequences and CJK wide cells stay whole).
70916
+ * Newlines in the input are honoured. Mirrors PromptInput.wrapToWidth's
70917
+ * break rule so the tooltip shows exactly the text the input would wrap.
70918
+ */
70919
+ function wrapTooltipContent(text, width) {
70920
+ const rows = [];
70921
+ if (width <= 0) return rows;
70922
+ text = stripAnsi$1(text).replace(/\t/gu, " ").replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu, "");
70923
+ const segmenter = getGraphemeSegmenter();
70924
+ for (const line of text.split("\n")) {
70925
+ if (line === "") {
70926
+ rows.push("");
70927
+ continue;
70928
+ }
70929
+ let current = "";
70930
+ let used = 0;
70931
+ for (const { segment } of segmenter.segment(line)) {
70932
+ const w = stringWidth$1(segment);
70933
+ if (used + w > width && current !== "") {
70934
+ rows.push(current);
70935
+ current = segment;
70936
+ used = w;
70937
+ } else {
70938
+ current += segment;
70939
+ used += w;
70940
+ }
70941
+ }
70942
+ rows.push(current);
70943
+ }
70944
+ return rows;
70945
+ }
70946
+ //#endregion
70947
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/format.js
70825
70948
  /**
70826
70949
  * Trajectory formatting — durations, clocks, badges and heat.
70827
70950
  *
@@ -71023,7 +71146,7 @@ function ledgerLayout(columns) {
71023
71146
  };
71024
71147
  }
71025
71148
  //#endregion
71026
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
71149
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
71027
71150
  /**
71028
71151
  * Reveal-frame wakeup as a React hook — bumps once per advancing ~30fps
71029
71152
  * scheduler tick so consumers re-run their render-phase cursor reads
@@ -71053,7 +71176,7 @@ function useRevealVersion(enabled = true) {
71053
71176
  return version;
71054
71177
  }
71055
71178
  //#endregion
71056
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantToolUseMessage.js
71179
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantToolUseMessage.js
71057
71180
  /** Tool display names: DSH emits lowercase tool ids (`bash`); Claude Code
71058
71181
  * shows capitalized names (`Bash`). Map the common ones, fall back to the
71059
71182
  * id with its first letter uppercased. */
@@ -71589,7 +71712,7 @@ function AssistantToolUseMessage({ tool, addMargin, verbose, isSelected = false,
71589
71712
  });
71590
71713
  }
71591
71714
  //#endregion
71592
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/SubagentMessage.js
71715
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/SubagentMessage.js
71593
71716
  /** The waterfall window is a Kimi Code style constant-height region. */
71594
71717
  const WATERFALL_ROWS = 3;
71595
71718
  /** Card left padding + the `│ ` gutter prefix. */
@@ -71797,7 +71920,7 @@ function SubagentMessage({ subagent, addMargin, activityFrames, onClick }) {
71797
71920
  });
71798
71921
  }
71799
71922
  //#endregion
71800
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/JobCard.js
71923
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/JobCard.js
71801
71924
  /** Card left padding + the `│ ` gutter prefix. */
71802
71925
  const WATERFALL_GUTTER = 4;
71803
71926
  /** Static status marker — deliberately NOT the animated activity-indicator
@@ -71950,7 +72073,7 @@ function JobCard({ job, addMargin, onClick }) {
71950
72073
  });
71951
72074
  }
71952
72075
  //#endregion
71953
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
72076
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
71954
72077
  /**
71955
72078
  * The dim "interrupted" row shown when the user stops a turn, mirroring
71956
72079
  * Claude Code's `InterruptedByUser.tsx`.
@@ -71965,7 +72088,7 @@ function InterruptedByUser() {
71965
72088
  })] });
71966
72089
  }
71967
72090
  //#endregion
71968
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
72091
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
71969
72092
  /**
71970
72093
  * 当月 AI 代码生成占比统计(移植自 chatcode-cli 的同名服务)。
71971
72094
  *
@@ -72133,7 +72256,7 @@ function computeAiRatioPercent(records) {
72133
72256
  return clampPercent(aiAdoptedTotal / addedTotal * 100);
72134
72257
  }
72135
72258
  //#endregion
72136
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
72259
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
72137
72260
  /**
72138
72261
  * 「AI代码生成占比」数据源 Hook(移植自 chatcode-cli 的同名 Hook)。
72139
72262
  *
@@ -72197,7 +72320,7 @@ function useAiRatio(enabled = true) {
72197
72320
  };
72198
72321
  }
72199
72322
  //#endregion
72200
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
72323
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
72201
72324
  /**
72202
72325
  * 「通知」数据源 Hook(移植自 chatcode-cli 的 LogoV2/FooterInfo 通知行)。
72203
72326
  *
@@ -72234,7 +72357,7 @@ function useNotification() {
72234
72357
  return { message };
72235
72358
  }
72236
72359
  //#endregion
72237
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
72360
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
72238
72361
  /**
72239
72362
  * Slice a string to at most `maxWidth` terminal cells, walking by code
72240
72363
  * point so CJK wide characters never split mid-glyph. Assumes no ANSI in
@@ -72252,7 +72375,7 @@ function truncateToWidth(text, maxWidth) {
72252
72375
  return out;
72253
72376
  }
72254
72377
  //#endregion
72255
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
72378
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
72256
72379
  /** Main ChatCode CLI package version shown in the startup information panel. */
72257
72380
  const VERSION = PRODUCT_VERSION;
72258
72381
  const PRODUCT_LABEL = "chatcode-cli";
@@ -72523,7 +72646,7 @@ function LogoV2({ model, effort, cwd, whale = true, aiRatio, drift }) {
72523
72646
  });
72524
72647
  }
72525
72648
  //#endregion
72526
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/MessageMetadata.js
72649
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/MessageMetadata.js
72527
72650
  /**
72528
72651
  * Transcript-mode metadata row: `HH:MM · model`, right-aligned above the
72529
72652
  * assistant text, mirroring Claude Code's MessageTimestamp + MessageModel,
@@ -72545,7 +72668,7 @@ function MessageMetadata({ timestamp, model }) {
72545
72668
  });
72546
72669
  }
72547
72670
  //#endregion
72548
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
72671
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
72549
72672
  /**
72550
72673
  * Strip the `⏵` self-narration line from assistant text. The
72551
72674
  * dsh-working-activity narrate contract puts exactly one `⏵` line at the
@@ -72661,7 +72784,7 @@ function ellipsize(line, maxWidth) {
72661
72784
  return `${out}…`;
72662
72785
  }
72663
72786
  //#endregion
72664
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
72787
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
72665
72788
  /**
72666
72789
  * Transcript rows rendered in the Claude Code visual language: user prompts
72667
72790
  * on a grey bubble with a `❯` pointer, assistant text with a `●` bullet and
@@ -73474,7 +73597,7 @@ function LogoHeader({ model, effort, cwd, whale = true, skipIntro = false }) {
73474
73597
  });
73475
73598
  }
73476
73599
  //#endregion
73477
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
73600
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
73478
73601
  /** ▴ / ▾ (U+25B4 / U+25BE — the small triangles; CP437-safe on ConHost too). */
73479
73602
  const CHEVRON_UP = " ▴";
73480
73603
  const CHEVRON_DOWN = " ▾";
@@ -73668,7 +73791,7 @@ function TimelineRail({ handle, turns, activeId, upId, downId, terminalWidth, ho
73668
73791
  }) });
73669
73792
  }
73670
73793
  //#endregion
73671
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
73794
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
73672
73795
  /** Thumb glyph across the 2-col gutter: solid, clearly positional —
73673
73796
  * deliberately distinct from the timeline's ━━ active tick. */
73674
73797
  const THUMB = "██";
@@ -73784,7 +73907,7 @@ function ScrollbarGutter({ handle, terminalWidth }) {
73784
73907
  }) });
73785
73908
  }
73786
73909
  //#endregion
73787
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
73910
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
73788
73911
  /**
73789
73912
  * 瞬态面板的浮层容器:absolute 定位 + bottom:'100%' 把面板底边钉在锚点
73790
73913
  * (父元素)顶边,向上覆盖转录尾部行,自身**不占布局高度**。
@@ -73817,7 +73940,7 @@ function OverlayAbove({ children, maxHeight }) {
73817
73940
  });
73818
73941
  }
73819
73942
  //#endregion
73820
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
73943
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
73821
73944
  /**
73822
73945
  * Trajectory motion — five verbs, one shared clock, one hard rule.
73823
73946
  *
@@ -73942,7 +74065,7 @@ function alert(tick, startTick) {
73942
74065
  return Math.floor(age / 2) % 2 === 0 ? 1 : 0;
73943
74066
  }
73944
74067
  //#endregion
73945
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
74068
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
73946
74069
  /** 三幕时间轴(ms):扫光全长、字样启动(波至中段)、字样渐亮、渐隐起止。边框扫光与输入行字样徽标共用。 */
73947
74070
  const IGNITION_TIMELINE = {
73948
74071
  sweepMs: 1e3,
@@ -74090,7 +74213,7 @@ function ignitionLineColors(options) {
74090
74213
  return colors;
74091
74214
  }
74092
74215
  //#endregion
74093
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
74216
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
74094
74217
  /**
74095
74218
  * EffortChargeGlyph — 输入提示前缀 `❯ ` 的最高档强调与充能。
74096
74219
  *
@@ -74146,7 +74269,7 @@ function EffortChargeGlyph({ effort, levels, working }) {
74146
74269
  });
74147
74270
  }
74148
74271
  //#endregion
74149
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
74272
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
74150
74273
  /**
74151
74274
  * EffortInputBorder — 输入框层上的三幕点焰叠加(对齐 Codex 的完整
74152
74275
  * 语义:光扫过、档位字样浮现、整体渐隐)。
@@ -74281,7 +74404,7 @@ function EffortInputBorder({ effort, levels, columns, onLight, idleColor, topRig
74281
74404
  });
74282
74405
  }
74283
74406
  //#endregion
74284
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
74407
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
74285
74408
  /**
74286
74409
  * EffortTierBadge — 输入行尾的档位字样徽标:三幕点焰的第二幕载体
74287
74410
  * (与 EffortInputBorder 的双框扫光同一时间轴、同一触发),切到最高
@@ -74364,7 +74487,7 @@ function EffortTierBadge({ effort, levels, onLight, columns, leadingColumns }) {
74364
74487
  });
74365
74488
  }
74366
74489
  //#endregion
74367
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
74490
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
74368
74491
  /**
74369
74492
  * Cross-platform clipboard access for Ctrl+V paste. The TUI runs in raw
74370
74493
  * mode, so the terminal never performs its own paste for Ctrl+V — the key
@@ -74893,7 +75016,7 @@ function formatClipboardInsert(content) {
74893
75016
  return content.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
74894
75017
  }
74895
75018
  //#endregion
74896
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/droppedFile.js
75019
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/droppedFile.js
74897
75020
  /**
74898
75021
  * Terminal drag-and-drop normalization.
74899
75022
  *
@@ -74952,7 +75075,7 @@ function droppedImageMention(raw, baseDir) {
74952
75075
  return formatImageReference(path);
74953
75076
  }
74954
75077
  //#endregion
74955
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
75078
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
74956
75079
  /**
74957
75080
  * External editor round-trip for the prompt input (issue #123): Ctrl+G dumps
74958
75081
  * the current draft into a temp file, hands the terminal to `$VISUAL` /
@@ -75230,7 +75353,7 @@ async function editInExternalEditor(draft) {
75230
75353
  }
75231
75354
  }
75232
75355
  //#endregion
75233
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
75356
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
75234
75357
  let editorNode = null;
75235
75358
  const listeners = /* @__PURE__ */ new Set();
75236
75359
  /** Publish (or withdraw, with null) the fullscreen editor subtree. */
@@ -75314,7 +75437,7 @@ function EditorButton({ label, hint, onClick, primary, accent }) {
75314
75437
  });
75315
75438
  }
75316
75439
  //#endregion
75317
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
75440
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
75318
75441
  const HISTORY_DIR = DATA_DIR;
75319
75442
  const HISTORY_FILE = join(HISTORY_DIR, "history.jsonl");
75320
75443
  const HISTORY_LOCK = `${HISTORY_FILE}.lock`;
@@ -75448,7 +75571,7 @@ function historyEntryId(entry, index = 0) {
75448
75571
  return createHash("sha1").update(`${entry.text}\0${entry.ts}\0${index}`).digest("hex").slice(0, 12);
75449
75572
  }
75450
75573
  //#endregion
75451
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
75574
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
75452
75575
  /**
75453
75576
  * `/` 命令菜单与 `@` 文件菜单共用的圆角卡片外壳(与输入框 EffortInputBorder
75454
75577
  * 同款 ╭╮╰╯ 视觉语言):
@@ -75580,7 +75703,7 @@ function splitQueryMatch(name, query) {
75580
75703
  return startsWith(0) ?? (lastSpace >= 0 ? startsWith(lastSpace + 1) : null) ?? startsWith(name.lastIndexOf("/") + 1);
75581
75704
  }
75582
75705
  //#endregion
75583
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
75706
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
75584
75707
  /**
75585
75708
  * The slash-command suggestion overlay, mirroring Claude Code's
75586
75709
  * `PromptInputFooterSuggestions.tsx` (command layout only) wrapped in the
@@ -75660,7 +75783,7 @@ function CommandSuggestions({ commands, selectedIndex, columns, query = "", acce
75660
75783
  });
75661
75784
  }
75662
75785
  //#endregion
75663
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
75786
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
75664
75787
  /**
75665
75788
  * The `@` file-completion overlay in CC's suggestion style, wrapped in the
75666
75789
  * shared rounded `SuggestionCard` (与 `/` 命令菜单同一视觉语言):
@@ -75756,7 +75879,7 @@ function FileSuggestions({ files, selectedIndex, columns, query = "", maxVisible
75756
75879
  });
75757
75880
  }
75758
75881
  //#endregion
75759
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
75882
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
75760
75883
  /**
75761
75884
  * The `?` help menu, mirroring Claude Code's `PromptInputHelpMenu.tsx`
75762
75885
  * (three-column shortcut layout, trimmed to the keys dsh-tui actually binds).
@@ -75947,7 +76070,7 @@ function HelpCommandRow({ command, onPick }) {
75947
76070
  });
75948
76071
  }
75949
76072
  //#endregion
75950
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
76073
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
75951
76074
  const HISTORY_LIMIT = 50;
75952
76075
  /**
75953
76076
  * Paste fold (CC-style collapse with a visible preview, no black box):
@@ -78367,7 +78490,7 @@ function wordSelectionAt(text, offset, lo, hi) {
78367
78490
  };
78368
78491
  }
78369
78492
  //#endregion
78370
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
78493
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
78371
78494
  /** Maximum todo rows shown before the overflow line. */
78372
78495
  const MAX_TODOS = 8;
78373
78496
  const PHASE_LABEL = {
@@ -78611,7 +78734,7 @@ function GoalTodoPanel({ channel, collapsed = false, onToggle }) {
78611
78734
  });
78612
78735
  }
78613
78736
  //#endregion
78614
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
78737
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
78615
78738
  /**
78616
78739
  * Auto-recap row (`dsh-tui.recapOnOpen` setting): a quiet, dim recap shown
78617
78740
  * at the bottom of the transcript after an automatic summary on session
@@ -78691,7 +78814,7 @@ function summarizeLoadedContext(context) {
78691
78814
  return parts.join(" · ");
78692
78815
  }
78693
78816
  //#endregion
78694
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
78817
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
78695
78818
  /** One named entry (section or dynamic context) with its full text. */
78696
78819
  function Entry({ entry }) {
78697
78820
  return (0, import_jsx_runtime.jsxs)(ThemedBox, {
@@ -78828,7 +78951,7 @@ function LoadedContextPanel({ context, open, onToggle }) {
78828
78951
  });
78829
78952
  }
78830
78953
  //#endregion
78831
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
78954
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
78832
78955
  /**
78833
78956
  * Terminal-safe construction cycle derived from the supplied China Unicom
78834
78957
  * knot mark. Every frame is one display cell, unlike emoji on mixed terminals.
@@ -78860,7 +78983,7 @@ function UnicomKnotSpinner({ time }) {
78860
78983
  });
78861
78984
  }
78862
78985
  //#endregion
78863
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
78986
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
78864
78987
  /**
78865
78988
  * Context-pressure percentage (0–100) from the last usage snapshot, or
78866
78989
  * undefined when unknown — shared by the spinner-line and status-line
@@ -78932,7 +79055,7 @@ function ActivityLine({ activity, activityFrames, warnPct, warnDanger, suffix })
78932
79055
  });
78933
79056
  }
78934
79057
  //#endregion
78935
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/guards.js
79058
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/guards.js
78936
79059
  /**
78937
79060
  * Structural guards for the session events the trajectory projection reads.
78938
79061
  *
@@ -79156,7 +79279,7 @@ function readTodos(data) {
79156
79279
  };
79157
79280
  }
79158
79281
  //#endregion
79159
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/types.js
79282
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/types.js
79160
79283
  /**
79161
79284
  * Trajectory projection — the data contract shared by the adapter-side fold
79162
79285
  * and the UI-side scene (issue #80 evolution).
@@ -79223,7 +79346,7 @@ function previewText(raw, limit) {
79223
79346
  return `${flat.slice(0, limit)}…`;
79224
79347
  }
79225
79348
  //#endregion
79226
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/projection.js
79349
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/projection.js
79227
79350
  /**
79228
79351
  * Trajectory projection — folding the session event log into ledger nodes.
79229
79352
  *
@@ -79802,7 +79925,7 @@ function extendTrajectory(previous, events) {
79802
79925
  };
79803
79926
  }
79804
79927
  //#endregion
79805
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/aggregate.js
79928
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/aggregate.js
79806
79929
  /**
79807
79930
  * Trajectory aggregate — the hotspot view's data and the session totals.
79808
79931
  *
@@ -80023,7 +80146,7 @@ function modelTiming(timing) {
80023
80146
  };
80024
80147
  }
80025
80148
  //#endregion
80026
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/inspect.js
80149
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/inspect.js
80027
80150
  /**
80028
80151
  * Inspector detail — full content, resolved on demand.
80029
80152
  *
@@ -80183,7 +80306,7 @@ function inspectNode(node, events) {
80183
80306
  };
80184
80307
  }
80185
80308
  //#endregion
80186
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/wave.js
80309
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/wave.js
80187
80310
  /**
80188
80311
  * Wave band projection — the whole session compressed onto one row of glyphs.
80189
80312
  *
@@ -80356,7 +80479,7 @@ function columnOfIndex(band, ledgerIndex) {
80356
80479
  return 0;
80357
80480
  }
80358
80481
  //#endregion
80359
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/MiniWake.js
80482
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/MiniWake.js
80360
80483
  /**
80361
80484
  * The mini wake — the whole session as a dozen glyphs in the status line.
80362
80485
  *
@@ -80459,7 +80582,7 @@ function toHex$1(colour) {
80459
80582
  return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
80460
80583
  }
80461
80584
  //#endregion
80462
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
80585
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
80463
80586
  /**
80464
80587
  * Status-line metric renderers, ported from two pi extensions:
80465
80588
  * - `pi-nano-context`: segmented context progress bar (morandi pastel
@@ -80735,7 +80858,7 @@ function tpsStats(samples, nowMs) {
80735
80858
  };
80736
80859
  }
80737
80860
  //#endregion
80738
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
80861
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
80739
80862
  /** Free-segment colors, mirroring StatusMetrics' dark-theme defaults. */
80740
80863
  const FREE_FILL = "#E8E8E8";
80741
80864
  const FREE_TEXT = "#4A4A4A";
@@ -80802,7 +80925,7 @@ function ContextBarView({ segments, usedTokens, contextWindow, width, colors, on
80802
80925
  });
80803
80926
  }
80804
80927
  //#endregion
80805
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
80928
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
80806
80929
  /**
80807
80930
  * ChatCode 今日总 Token 消耗量查询(移植自 chatcode-cli 的 chatCodeTokenTrend)。
80808
80931
  *
@@ -80877,7 +81000,7 @@ async function fetchTodayTotalTokens(post, signal) {
80877
81000
  }
80878
81001
  }
80879
81002
  //#endregion
80880
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
81003
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
80881
81004
  /**
80882
81005
  * 「今日总Token消耗」数据源 Hook(移植自 chatcode-cli 的 useTokenDashboard)。
80883
81006
  *
@@ -80909,7 +81032,7 @@ function useTodayTotalTokens(enabled = true) {
80909
81032
  return { totalTokens };
80910
81033
  }
80911
81034
  //#endregion
80912
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
81035
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
80913
81036
  const BAR_WIDTH = 14;
80914
81037
  /** Yuanjing-compatible percentage label centered inside a fixed-width bar. */
80915
81038
  function LabeledBar({ ratio, percent }) {
@@ -80993,7 +81116,7 @@ function TokenDashboard({ todayTokens, usedTokens, contextWindow, compact = fals
80993
81116
  });
80994
81117
  }
80995
81118
  //#endregion
80996
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
81119
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
80997
81120
  /** Stable fallback for stubbed channels: verify/repro harnesses render the
80998
81121
  * real Chat with partial channel literals that predate the jobs field. */
80999
81122
  const NO_BACKGROUND_JOBS = [];
@@ -81851,7 +81974,7 @@ const fallbackSymbols = {
81851
81974
  const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
81852
81975
  Object.entries(specialMainSymbols);
81853
81976
  //#endregion
81854
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Byline.js
81977
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Byline.js
81855
81978
  /**
81856
81979
  * Joins children with a middot separator (" · ") for inline metadata display
81857
81980
  * (in the Claude Code visual language). Automatically filters out
@@ -81867,7 +81990,7 @@ function Byline({ children }) {
81867
81990
  }), child] }, (0, import_react.isValidElement)(child) ? child.key ?? index : index)) });
81868
81991
  }
81869
81992
  //#endregion
81870
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/GlimmerMessage.js
81993
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/GlimmerMessage.js
81871
81994
  const ERROR_RED$1 = {
81872
81995
  r: 171,
81873
81996
  g: 43,
@@ -81957,7 +82080,7 @@ function GlimmerMessage({ message, mode, messageColor, glimmerIndex, flashOpacit
81957
82080
  })] });
81958
82081
  }
81959
82082
  //#endregion
81960
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerGlyph.js
82083
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerGlyph.js
81961
82084
  const DEFAULT_CHARACTERS = getDefaultCharacters();
81962
82085
  const SPINNER_FRAMES$1 = [...DEFAULT_CHARACTERS, ...[...DEFAULT_CHARACTERS].reverse()];
81963
82086
  const REDUCED_MOTION_DOT = "●";
@@ -82018,7 +82141,7 @@ function SpinnerGlyph({ frame, messageColor, stalledIntensity = 0, reducedMotion
82018
82141
  });
82019
82142
  }
82020
82143
  //#endregion
82021
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/useStalledAnimation.js
82144
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/useStalledAnimation.js
82022
82145
  /**
82023
82146
  * Tracks the transition to red when tokens stop flowing (mirroring Claude Code's `Spinner/useStalledAnimation.ts`). Driven by the parent's animation
82024
82147
  * clock time instead of independent intervals, so it slows down when the
@@ -82075,7 +82198,7 @@ function useStalledAnimation(time, currentResponseLength, hasActiveTools = false
82075
82198
  };
82076
82199
  }
82077
82200
  //#endregion
82078
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerAnimationRow.js
82201
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerAnimationRow.js
82079
82202
  const SEP_WIDTH = stringWidth$1(" · ");
82080
82203
  const THINKING_BARE_WIDTH = stringWidth$1("thinking");
82081
82204
  const SHOW_TOKENS_AFTER_MS = 3e4;
@@ -82242,7 +82365,7 @@ function SpinnerModeGlyph({ mode }) {
82242
82365
  }
82243
82366
  }
82244
82367
  //#endregion
82245
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
82368
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
82246
82369
  /**
82247
82370
  * The working spinner block shown between the transcript and the prompt
82248
82371
  * input while a turn is in flight. Mirrors Claude Code's `Spinner.tsx`
@@ -82312,7 +82435,7 @@ function useThinkingStatus(isThinking) {
82312
82435
  return thinkingStatus;
82313
82436
  }
82314
82437
  //#endregion
82315
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
82438
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
82316
82439
  /**
82317
82440
  * Model picker in the CC ModelPicker style: a permission-colored Pane with
82318
82441
  * the rows as Select entries (❯ focus pointer, ✓ on the active row,
@@ -82372,7 +82495,7 @@ function ModelPicker(props) {
82372
82495
  });
82373
82496
  }
82374
82497
  //#endregion
82375
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
82498
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
82376
82499
  /**
82377
82500
  * Error boundary for plugin scenes (dsh-tui-scenes). A scene component is
82378
82501
  * third-party code rendered inside Chat's tree: without a boundary a render
@@ -82398,7 +82521,7 @@ var PluginSceneBoundary = class extends import_react.Component {
82398
82521
  }
82399
82522
  };
82400
82523
  //#endregion
82401
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/LoadingState.js
82524
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/LoadingState.js
82402
82525
  const SPINNER_FRAMES = [...getDefaultCharacters(), ...[...getDefaultCharacters()].reverse()];
82403
82526
  /**
82404
82527
  * A spinner with a loading message for async operations, mirroring Claude Code's design-system/LoadingState.tsx (using the small animated glyph).
@@ -82429,7 +82552,7 @@ function LoadingState({ message, bold = false, dimColor = false, subtitle }) {
82429
82552
  });
82430
82553
  }
82431
82554
  //#endregion
82432
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
82555
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
82433
82556
  /** 来源桶 → 本地化标签(未知桶原样显示,SkillSource 对自定义桶开放)。 */
82434
82557
  function sourceLabel(source) {
82435
82558
  switch (source) {
@@ -82507,7 +82630,7 @@ function SkillsPickerLoading() {
82507
82630
  });
82508
82631
  }
82509
82632
  //#endregion
82510
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
82633
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
82511
82634
  /**
82512
82635
  * Window a single-line query around the caret so the visible slice fits
82513
82636
  * `avail` display cells (CJK display width, code-point safe — `[...s]`
@@ -82645,7 +82768,7 @@ function SearchBox({ query, placeholder = "Search…", isFocused, isTerminalFocu
82645
82768
  });
82646
82769
  }
82647
82770
  //#endregion
82648
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionListRow.js
82771
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionListRow.js
82649
82772
  /**
82650
82773
  * One session in the browser's list: a title line and a metadata line.
82651
82774
  *
@@ -82726,7 +82849,7 @@ function SessionListRow({ session, width, depth, focused, pinned, now, onClick,
82726
82849
  });
82727
82850
  }
82728
82851
  //#endregion
82729
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionPreview.js
82852
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionPreview.js
82730
82853
  /** Role marker and colour for a preview entry. */
82731
82854
  const ROLE = {
82732
82855
  user: {
@@ -82817,7 +82940,7 @@ function SessionPreview({ session, entries, loading, width, height, home, now })
82817
82940
  });
82818
82941
  }
82819
82942
  //#endregion
82820
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/WorkspaceListRow.js
82943
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/WorkspaceListRow.js
82821
82944
  /** One two-line working-directory choice in the /resume browser. */
82822
82945
  function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width, focused, selected, home, now, onClick }) {
82823
82946
  const [hovered, setHovered] = (0, import_react.useState)(false);
@@ -82862,7 +82985,7 @@ function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width,
82862
82985
  });
82863
82986
  }
82864
82987
  //#endregion
82865
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
82988
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
82866
82989
  /**
82867
82990
  * Pinned sessions for the `/resume` browser, kept at
82868
82991
  * `~/.chatcode-cli/tui/session-pins.json` (a JSON array of session ids) so the pins
@@ -83011,7 +83134,7 @@ function setSessionPinned(id, pinned, dir = DATA_DIR) {
83011
83134
  }
83012
83135
  }
83013
83136
  //#endregion
83014
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
83137
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
83015
83138
  /**
83016
83139
  * Rows the layout cannot do without: the header, the four-row scope/search
83017
83140
  * card, the notice slot, and the hints. Everything else yields before these.
@@ -84011,7 +84134,7 @@ function SessionBrowser({ channel, home, sameProject, onClose }) {
84011
84134
  });
84012
84135
  }
84013
84136
  //#endregion
84014
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
84137
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
84015
84138
  /** Local HH:MM (or MM/DD HH:MM when older than this year). */
84016
84139
  function formatTime(at, now) {
84017
84140
  const date = new Date(at);
@@ -84767,7 +84890,7 @@ function PreviewPane({ entry, meta, width, height, liveSessionId, now, compact }
84767
84890
  });
84768
84891
  }
84769
84892
  //#endregion
84770
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
84893
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
84771
84894
  /** Pick the provider-owned translation for the active language. */
84772
84895
  function pick(text, descriptions) {
84773
84896
  return descriptions?.[getLang()] ?? text;
@@ -85592,7 +85715,7 @@ function Settings({ channel, onClose, initialGroup }) {
85592
85715
  });
85593
85716
  }
85594
85717
  //#endregion
85595
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
85718
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
85596
85719
  const WINDOW$1 = 8;
85597
85720
  /** `/workspace` target picker contributed by local and optional providers. */
85598
85721
  function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
@@ -85630,7 +85753,7 @@ function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
85630
85753
  });
85631
85754
  }
85632
85755
  //#endregion
85633
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
85756
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
85634
85757
  /**
85635
85758
  * A single-choice select list in the CC CustomSelect style (ported visual:
85636
85759
  * ListItem rows with ❯ focus pointer, ✓ selected checkmark, descriptions,
@@ -85657,7 +85780,7 @@ function Select({ options, focusIndex, selectedValue, visibleOptionCount = 5, on
85657
85780
  });
85658
85781
  }
85659
85782
  //#endregion
85660
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
85783
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
85661
85784
  /**
85662
85785
  * Bare `/workspace` action menu: the built-in subcommands (resume / rename /
85663
85786
  * open) plus any dynamically registered workspace extensions. Enter runs the
@@ -85698,7 +85821,7 @@ function WorkspaceMenuPicker({ options, focusIndex, onPick }) {
85698
85821
  });
85699
85822
  }
85700
85823
  //#endregion
85701
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
85824
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
85702
85825
  const WINDOW = 8;
85703
85826
  /** Generic nested choice surface returned by a workspace provider command. */
85704
85827
  function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input = null, onPick }) {
@@ -85756,7 +85879,7 @@ function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input =
85756
85879
  });
85757
85880
  }
85758
85881
  //#endregion
85759
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
85882
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
85760
85883
  /**
85761
85884
  * Working-activity indicator picker in the CC ModelPicker style (ported
85762
85885
  * from the pi extension's `/activity` interactive select): a
@@ -85798,7 +85921,7 @@ function ActivityPicker({ focusIndex, currentPreset, onPick }) {
85798
85921
  });
85799
85922
  }
85800
85923
  //#endregion
85801
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
85924
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
85802
85925
  /**
85803
85926
  * Session accent color picker (bare `/color`): a permission-colored Pane
85804
85927
  * listing the whole palette with a colored swatch per row, `❯` focus
@@ -85842,7 +85965,7 @@ function ColorPicker({ focusIndex, currentColor, onPick }) {
85842
85965
  });
85843
85966
  }
85844
85967
  //#endregion
85845
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
85968
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
85846
85969
  /**
85847
85970
  * Reasoning-effort slider (`/effort`): a rheostat row of the live route's
85848
85971
  * adapter-owned levels in adapter order, ←/→ moving focus (each move applies
@@ -85901,7 +86024,7 @@ function EffortSlider({ options, focusIndex, currentId, onPick }) {
85901
86024
  });
85902
86025
  }
85903
86026
  //#endregion
85904
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
86027
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
85905
86028
  /**
85906
86029
  * Agent-preset picker (issue #8) in the CC ModelPicker style — same chrome
85907
86030
  * as the ActivityPicker: a permission-colored Pane listing every roster
@@ -85945,7 +86068,7 @@ function PresetPicker({ presets, focusIndex, currentPreset, onPick }) {
85945
86068
  });
85946
86069
  }
85947
86070
  //#endregion
85948
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
86071
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
85949
86072
  /**
85950
86073
  * `/permission` sandbox-preset picker. The command itself is registered by
85951
86074
  * the harness side (dsh-sandbox-policy / dsh-base permission-presets row);
@@ -85992,7 +86115,7 @@ function PermissionsPicker({ options, focusIndex, currentValue, cwd, onPick }) {
85992
86115
  });
85993
86116
  }
85994
86117
  //#endregion
85995
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
86118
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
85996
86119
  /**
85997
86120
  * `/plan` on/off picker. The command itself is registered by dsh-plan-mode
85998
86121
  * on the harness side; bare `/plan` opens this picker (with the current
@@ -86037,7 +86160,7 @@ function PlanPicker({ focusIndex, currentOn, onPick }) {
86037
86160
  });
86038
86161
  }
86039
86162
  //#endregion
86040
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
86163
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
86041
86164
  /**
86042
86165
  * `/lang` en/zh picker: bare `/lang` opens this picker (the current language
86043
86166
  * marked) and Enter applies the choice through the same path as `/lang <id>`.
@@ -86076,7 +86199,7 @@ function LangPicker({ focusIndex, currentLang, onPick }) {
86076
86199
  });
86077
86200
  }
86078
86201
  //#endregion
86079
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
86202
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
86080
86203
  /** One double-block swatch character per preview key, in a row. */
86081
86204
  const SWATCH = "██";
86082
86205
  /** Theme keys previewed in the picker, chosen for visual contrast. */
@@ -86162,7 +86285,7 @@ function ThemePicker({ focusIndex, currentTheme, themeHost, onPick }) {
86162
86285
  });
86163
86286
  }
86164
86287
  //#endregion
86165
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
86288
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
86166
86289
  /**
86167
86290
  * The `/thinking` display dialog: a permission-colored Pane with a bold
86168
86291
  * title, the Shown/Hidden select, and the Enter/Esc hint line.
@@ -86211,7 +86334,7 @@ function ThinkingToggle({ currentValue, focusIndex, onPick }) {
86211
86334
  });
86212
86335
  }
86213
86336
  //#endregion
86214
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
86337
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
86215
86338
  /**
86216
86339
  * The ctrl+r history search dialog, in the shape of Claude Code's
86217
86340
  * HistorySearchDialog/FuzzyPicker: a permission-colored Pane with a bold
@@ -86274,7 +86397,7 @@ function formatRelativeAge(ts) {
86274
86397
  return t("time-days-ago", { n: Math.floor(elapsed / 864e5) });
86275
86398
  }
86276
86399
  //#endregion
86277
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
86400
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
86278
86401
  /**
86279
86402
  * Double-Esc rewind picker (CC's "Double-tap esc to rewind the code and/or
86280
86403
  * conversation to a previous point in time"): lists the user's past messages
@@ -86411,7 +86534,7 @@ function preview(text) {
86411
86534
  return flat.length <= 80 ? flat : `${flat.slice(0, 80)}…`;
86412
86535
  }
86413
86536
  //#endregion
86414
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
86537
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
86415
86538
  /**
86416
86539
  * /btw side-question panel (CC's btw.tsx, inline-pane form like the local
86417
86540
  * pickers): title line with the question, a scrollable answer body (error /
@@ -86495,7 +86618,7 @@ function BtwPanel({ question, answer, error, streaming, onClose, onCopy }) {
86495
86618
  });
86496
86619
  }
86497
86620
  //#endregion
86498
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
86621
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
86499
86622
  function ReleaseNotesPanel({ release, onClose }) {
86500
86623
  const scrollRef = import_react.useRef(null);
86501
86624
  const { rows } = useTerminalSize();
@@ -86540,7 +86663,7 @@ function ReleaseNotesPanel({ release, onClose }) {
86540
86663
  });
86541
86664
  }
86542
86665
  //#endregion
86543
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
86666
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
86544
86667
  /**
86545
86668
  * `/recap` panel (pi-recap semantics), in the picker/dialog visual
86546
86669
  * language: a permission-colored Pane with a title bar (会话回顾), a
@@ -86661,7 +86784,7 @@ function RecapPanel({ summary, title, error, streaming, titleApplied, onClose, o
86661
86784
  });
86662
86785
  }
86663
86786
  //#endregion
86664
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
86787
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
86665
86788
  /**
86666
86789
  * 精简 Tips 池 —— 启动首屏轮换(LogoV2)与 `/tips` 命令面板共用。
86667
86790
  *
@@ -87375,7 +87498,7 @@ const TIPS = [
87375
87498
  }
87376
87499
  ];
87377
87500
  //#endregion
87378
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
87501
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
87379
87502
  const GROUP_ORDER = [
87380
87503
  "keys",
87381
87504
  "commands",
@@ -87454,7 +87577,7 @@ function TipsPanel({ onClose }) {
87454
87577
  });
87455
87578
  }
87456
87579
  //#endregion
87457
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
87580
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
87458
87581
  function formatDuration$1(ms) {
87459
87582
  const seconds = Math.floor(ms / 1e3);
87460
87583
  return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${seconds % 60}s`;
@@ -87509,7 +87632,7 @@ function SubagentCard({ subagent, focused, onClick }) {
87509
87632
  });
87510
87633
  }
87511
87634
  //#endregion
87512
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
87635
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
87513
87636
  /** 可点击 ✕ 退出按钮:整屏/浮层场景的鼠标退出通道(Esc 等价)。 */
87514
87637
  function ExitButton({ onClick }) {
87515
87638
  const [hovered, setHovered] = import_react.useState(false);
@@ -87657,7 +87780,7 @@ function SubagentDashboard({ subagents, onClose, onSelect }) {
87657
87780
  });
87658
87781
  }
87659
87782
  //#endregion
87660
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
87783
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
87661
87784
  function statusInfo(status) {
87662
87785
  const minimal = isMinimalMode();
87663
87786
  switch (status) {
@@ -87945,7 +88068,7 @@ function JobsPanel({ jobs, onClose, onKill }) {
87945
88068
  });
87946
88069
  }
87947
88070
  //#endregion
87948
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
88071
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
87949
88072
  function formatDuration(ms) {
87950
88073
  if (ms < 1e3) return `${ms}ms`;
87951
88074
  if (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;
@@ -88415,7 +88538,7 @@ function FileActionsPanel({ path, isDir, focusIndex, onPick }) {
88415
88538
  });
88416
88539
  }
88417
88540
  //#endregion
88418
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
88541
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
88419
88542
  function oneLine(text, max = 70) {
88420
88543
  const compact = text.replace(/\s+/gu, " ").trim();
88421
88544
  return compact.length > max ? `${compact.slice(0, max - 1)}…` : compact;
@@ -88507,7 +88630,7 @@ function DiffLoading() {
88507
88630
  });
88508
88631
  }
88509
88632
  //#endregion
88510
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
88633
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
88511
88634
  /** `/copy` argument is a one-based reply age; omission selects the latest. */
88512
88635
  function parseCopyIndex(raw, count) {
88513
88636
  const value = raw.trim();
@@ -88560,7 +88683,7 @@ function gitDiffLines(report, labels) {
88560
88683
  ];
88561
88684
  }
88562
88685
  //#endregion
88563
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
88686
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
88564
88687
  /** Compact duration suitable for a terminal report row. */
88565
88688
  function formatStatsDuration(ms) {
88566
88689
  if (ms < 1e3) return `${Math.round(ms)} ms`;
@@ -88606,7 +88729,7 @@ function parsePresetManagement(input) {
88606
88729
  return { kind: "invalid" };
88607
88730
  }
88608
88731
  //#endregion
88609
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
88732
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
88610
88733
  const ALIASES = {
88611
88734
  map: "inspect",
88612
88735
  fixit: "repair",
@@ -88661,7 +88784,7 @@ function buildWorkflowCommand(name, rawInput = "") {
88661
88784
  };
88662
88785
  }
88663
88786
  //#endregion
88664
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
88787
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
88665
88788
  const EXTERNAL_SCHEME = /^https?:\/\//i;
88666
88789
  /**
88667
88790
  * Classify a clicked link target. Mirrors the previous handleOpenTarget
@@ -88686,7 +88809,7 @@ function classifyOpenTarget(url) {
88686
88809
  return { kind: "rejected" };
88687
88810
  }
88688
88811
  //#endregion
88689
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
88812
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
88690
88813
  /**
88691
88814
  * Subscribe to an external store's version counter at DEFAULT lane.
88692
88815
  *
@@ -88735,7 +88858,7 @@ function useExternalVersion(subscribe, getVersion, enabled = true) {
88735
88858
  return version;
88736
88859
  }
88737
88860
  //#endregion
88738
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/WaveBand.js
88861
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/WaveBand.js
88739
88862
  /**
88740
88863
  * The wake — the whole session drawn as one row of glyphs.
88741
88864
  *
@@ -88872,7 +88995,7 @@ function toHex(colour) {
88872
88995
  return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
88873
88996
  }
88874
88997
  //#endregion
88875
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Ledger.js
88998
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Ledger.js
88876
88999
  /**
88877
89000
  * The ledger — one line per event, columns aligned across every row.
88878
89001
  *
@@ -89118,7 +89241,7 @@ function Ledger({ rows, start, height, cursor, width, tick, arrivalTick, arrival
89118
89241
  });
89119
89242
  }
89120
89243
  //#endregion
89121
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Inspector.js
89244
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Inspector.js
89122
89245
  /**
89123
89246
  * The inspector — full detail for the focused row, in a fixed-height slot.
89124
89247
  *
@@ -89224,7 +89347,7 @@ function Inspector({ node, detail, height, width, expanded, scroll }) {
89224
89347
  });
89225
89348
  }
89226
89349
  //#endregion
89227
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/HotspotView.js
89350
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/HotspotView.js
89228
89351
  /**
89229
89352
  * The hotspot view — the session ranked by cost instead of ordered by time.
89230
89353
  *
@@ -89387,7 +89510,7 @@ function HotspotView({ agg, sort, width, height, cursor, tick, switchTick, onRow
89387
89510
  });
89388
89511
  }
89389
89512
  //#endregion
89390
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
89513
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
89391
89514
  /**
89392
89515
  * Trajectory query — whole-session structured filtering.
89393
89516
  *
@@ -89583,7 +89706,7 @@ function applyQuery(nodes, query) {
89583
89706
  };
89584
89707
  }
89585
89708
  //#endregion
89586
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
89709
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
89587
89710
  /**
89588
89711
  * The trajectory scene — the session's own screen.
89589
89712
  *
@@ -90071,7 +90194,7 @@ function TrajectoryScene({ channel, build, onClose }) {
90071
90194
  });
90072
90195
  }
90073
90196
  //#endregion
90074
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
90197
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
90075
90198
  /** Build the non-empty pages shown by the loaded-context inspector. */
90076
90199
  function contextPages(context) {
90077
90200
  const pages = [];
@@ -90255,7 +90378,7 @@ function LoadedContextScene({ context, onClose }) {
90255
90378
  });
90256
90379
  }
90257
90380
  //#endregion
90258
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
90381
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
90259
90382
  /** Rows the layout cannot do without: header, model/cwd line, dispatch
90260
90383
  * input, hints. */
90261
90384
  const MANDATORY_LINES = 4;
@@ -90864,7 +90987,7 @@ function AgentView({ channel, home, approval, onApprove, returnSessionId, onClos
90864
90987
  });
90865
90988
  }
90866
90989
  //#endregion
90867
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
90990
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
90868
90991
  /**
90869
90992
  * Persisted "the user has seen the trajectory" flag, at
90870
90993
  * `~/.chatcode-cli/tui/trajectory.json`.
@@ -90924,7 +91047,7 @@ function writeTrajectorySeen(dir = DATA_DIR) {
90924
91047
  }
90925
91048
  }
90926
91049
  //#endregion
90927
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
91050
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
90928
91051
  const NO_OVERLAY = { kind: "none" };
90929
91052
  /**
90930
91053
  * One-step wrap-around cursor move — the single source of the wrapping rule
@@ -91034,7 +91157,7 @@ function dialogOverlayVisible(overlay, gates) {
91034
91157
  }
91035
91158
  }
91036
91159
  //#endregion
91037
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
91160
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
91038
91161
  const LOGOUT_EXIT_DELAY_MS = 200;
91039
91162
  /** Shared empty snapshot for hosts whose channel has no event log. */
91040
91163
  const NO_EVENTS = [];
@@ -94859,7 +94982,7 @@ function ModelPickerLoading() {
94859
94982
  });
94860
94983
  }
94861
94984
  //#endregion
94862
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
94985
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
94863
94986
  const MAIN_CLI_PACKAGE = "@chatcode/chatcode-cli";
94864
94987
  function asError(value) {
94865
94988
  return value instanceof Error ? value : new Error(String(value));
@@ -95015,7 +95138,7 @@ function launchWebFrontend(cwd, options = {}) {
95015
95138
  }
95016
95139
  }
95017
95140
  //#endregion
95018
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/inject-channel.js
95141
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/inject-channel.js
95019
95142
  /**
95020
95143
  * External injection channel — lets an out-of-process editor integration
95021
95144
  * (e.g. the `dsh.nvim` Neovim plugin) push text into the running TUI's
@@ -95210,7 +95333,7 @@ function openInjectChannel(sessionId, cwd, handlers, onError) {
95210
95333
  };
95211
95334
  }
95212
95335
  //#endregion
95213
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-auth.js
95336
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-auth.js
95214
95337
  const CHATCODE_CLI_OAUTH_TOKEN = "CHATCODE_CLI_OAUTH_TOKEN";
95215
95338
  const DEFAULT_SERVICE_WAIT_MS = 75e3;
95216
95339
  function authService(ctx) {
@@ -95384,7 +95507,7 @@ async function requireChatCodeStartupLogin(ctx, options) {
95384
95507
  return "ready";
95385
95508
  }
95386
95509
  //#endregion
95387
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-api.js
95510
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-api.js
95388
95511
  /** Bind authenticated statistics requests to one TUI lifetime. */
95389
95512
  function createChatCodeAuthorizedPost(ctx) {
95390
95513
  const lifetime = new AbortController();
@@ -95423,7 +95546,7 @@ function createChatCodeAuthorizedPost(ctx) {
95423
95546
  };
95424
95547
  }
95425
95548
  //#endregion
95426
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin.js
95549
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin.js
95427
95550
  /**
95428
95551
  * Interactive TUI front door for ChatCode CLI agents.
95429
95552
  *