@chatcode/chatcode-cli 3.0.5-rc.6 → 3.0.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 (33) hide show
  1. package/lib/{command-errors-DGyKMxEq.js → command-errors-CnbcOM1a.js} +12 -12
  2. package/lib/{command-trees-Bh2WKUZ3.js → command-trees-CU7BxVJo.js} +2 -2
  3. package/lib/{component-identity-B7wyM-aN.js → component-identity-kZK1_hFy.js} +3 -3
  4. package/lib/{extension-events-JX8c4mnR.js → extension-events-hLxwPvpg.js} +20 -20
  5. package/lib/{host-access-ClndygbX.js → host-access-kT-u85k_.js} +1 -1
  6. package/lib/{keymap-nfqAZoFE.js → keymap-DS1M8sDo.js} +2 -2
  7. package/lib/{plugin-C9yd07Wb.js → plugin-d65VulBk.js} +583 -532
  8. package/lib/{scenes-C5_xUR61.js → scenes-DG6T8t-A.js} +3 -3
  9. package/lib/{settings-sections-CRhTUEBm.js → settings-sections-2SuE0biI.js} +3 -3
  10. package/lib/{statusBarSettings-ChS8Z4Jf.js → statusBarSettings-B2MEAwnI.js} +3 -3
  11. package/lib/{themes-bFi516uK.js → themes-DUO7kGW-.js} +12 -12
  12. package/lib/tui-compat-command-trees.js +1 -1
  13. package/lib/tui-compat-extensions.js +3 -3
  14. package/lib/tui-compat-plugin-host.js +5 -5
  15. package/lib/tui-compat-scenes.js +1 -1
  16. package/lib/tui-compat-settings-sections.js +1 -1
  17. package/lib/tui-compat-working-activity.js +1 -1
  18. package/lib/tui-compat-workspaces.js +1 -1
  19. package/lib/tui-compat.js +5 -5
  20. package/lib/{workspaces-ous4jIwo.js → workspaces-CLOkL_yE.js} +2 -2
  21. package/package.json +22 -22
  22. package/runtime/manifest.json +2 -2
  23. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +38 -38
  24. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/index.d.ts +2 -2
  25. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/linux-lock.d.ts +1 -1
  26. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/windows-lock.d.ts +1 -1
  27. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  28. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  29. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  30. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +77 -10
  31. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/error-diagnostic.d.ts +15 -0
  32. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocol-adapter.d.ts +1 -1
  33. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/transport.d.ts +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-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";
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-B2MEAwnI.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-DS1M8sDo.js";
4
+ import { c as withHostRootCapability } from "./host-access-kT-u85k_.js";
5
+ import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-CLOkL_yE.js";
6
+ import { n as getHostCommandTrees } from "./command-trees-CU7BxVJo.js";
7
+ import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-2SuE0biI.js";
8
+ import { n as getHostSceneRuntime } from "./scenes-DG6T8t-A.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-hLxwPvpg.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-CnbcOM1a.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-DUO7kGW-.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.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sideQuestion.js
1201
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_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.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/recap.js
1271
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_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.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/log.js
1384
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_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.25_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.28_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.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/sessionColors.js
1538
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_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.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/deepseekPricing.js
1579
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_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.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/i18n.js
1598
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_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`).
@@ -3495,6 +3495,10 @@ const dict = {
3495
3495
  zh: "↓{{n}}",
3496
3496
  en: "↓{{n}}"
3497
3497
  },
3498
+ "sugg-enter-directory": {
3499
+ zh: "Enter/Tab 进入目录 · Esc 关闭",
3500
+ en: "Enter/Tab: open directory · Esc: close"
3501
+ },
3498
3502
  "sugg-scan-complete": {
3499
3503
  zh: "请选择文件",
3500
3504
  en: "Please select a file"
@@ -6564,7 +6568,7 @@ function resolveStartupLang(dir = PREFS_DIR$6, env = process.env) {
6564
6568
  return readLangPref(dir) ?? "zh";
6565
6569
  }
6566
6570
  //#endregion
6567
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
6571
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
6568
6572
  /**
6569
6573
  * Local slash commands for the dsh-tui TUI. Claude Code's command system is
6570
6574
  * deeply wired into its engine; dsh-tui ships a small built-in set with the
@@ -7038,7 +7042,7 @@ function matchingCompletionToken(candidate, prefix) {
7038
7042
  return candidate.aliases?.find((alias) => alias.toLowerCase().startsWith(prefix));
7039
7043
  }
7040
7044
  //#endregion
7041
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
7045
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
7042
7046
  /**
7043
7047
  * Launcher contract for `dsh-tui --resume`: the TUI writes the chosen session
7044
7048
  * id to `<CHATCODE_CLI_HOME>/tui/resume.txt`, and the launcher feeds it back as
@@ -7205,7 +7209,7 @@ function forgetAgentViewSession(sessionId) {
7205
7209
  } catch {}
7206
7210
  }
7207
7211
  //#endregion
7208
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
7212
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
7209
7213
  /**
7210
7214
  * One searchable local tag per persisted session.
7211
7215
  *
@@ -7355,7 +7359,7 @@ function forgetSessionTag(sessionId, dir = DATA_DIR) {
7355
7359
  return setSessionTag(sessionId, void 0, dir).ok;
7356
7360
  }
7357
7361
  //#endregion
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
7362
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/liveSession.js
7359
7363
  /**
7360
7364
  * Live Session compatibility facade.
7361
7365
  *
@@ -7517,7 +7521,7 @@ function liveSessionCreateOptions(request) {
7517
7521
  };
7518
7522
  }
7519
7523
  //#endregion
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
7524
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionLog.js
7521
7525
  /**
7522
7526
  * Legacy third-party session-event types the TUI vouches for as ephemeral
7523
7527
  * UI frames — safe for the strict read path to accept and skip. Exported
@@ -8209,7 +8213,7 @@ function appendSessionTitle(sessionId, title) {
8209
8213
  }
8210
8214
  }
8211
8215
  //#endregion
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
8216
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionEvent.js
8213
8217
  /** Narrow an unknown/session event to the retired durable chunk envelope. */
8214
8218
  function legacyAssistantChunkOf(event) {
8215
8219
  if (event === null || typeof event !== "object") return void 0;
@@ -8223,7 +8227,7 @@ function legacyAssistantChunkOf(event) {
8223
8227
  return event;
8224
8228
  }
8225
8229
  //#endregion
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
8230
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compaction.js
8227
8231
  /**
8228
8232
  * Recognize both the current checkpoint source and the legacy plugin marker.
8229
8233
  * Harness session format v4 migrated `plugin/compact` to the dedicated
@@ -8234,7 +8238,14 @@ function isCompactionCheckpointSource(source) {
8234
8238
  return source.kind === "compact-checkpoint" || source.kind === "plugin" && source.plugin === "compact";
8235
8239
  }
8236
8240
  //#endregion
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
8241
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/error-diagnostic.js
8242
+ /** Redact provider diagnostics before transcript, notification, and history rendering. */
8243
+ /** Remove credential fields and endpoint URLs before applying the display limit. */
8244
+ function redactErrorDiagnostic(value) {
8245
+ return cleanRenderText(cleanRenderText(value, Infinity).replace(/\bhttps?:\/\/[^\s<>"'`\\]+/giu, "[REDACTED]").replace(/\b(Bearer|Basic)\s+[a-z0-9._~+\/-]+=*/giu, "$1 [REDACTED]").replace(/((?:["']?(?:[\w-]*api[ _-]?key|authorization|[\w-]*token|password|secret|base[ _-]?url)["']?)\s*[:=]\s*)(?:(?:Bearer|Basic)\s+)?(?:\[REDACTED\]|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[^\s,;}\]]+)/giu, "$1[REDACTED]").replace(/\bsk-[a-z0-9_-]+/giu, "[REDACTED]"), 4096);
8246
+ }
8247
+ //#endregion
8248
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessionTree.js
8238
8249
  const TREE_FILTERS = [
8239
8250
  "default",
8240
8251
  "no-tools",
@@ -8609,7 +8620,7 @@ function extractEntries(sessionId, events) {
8609
8620
  time: event.time
8610
8621
  });
8611
8622
  } else if (reason.kind !== "completed") {
8612
- const detail = reason.kind === "error" ? reason.error.message : "";
8623
+ const detail = reason.kind === "error" ? redactErrorDiagnostic(reason.error.message) : "";
8613
8624
  push({
8614
8625
  seq: event.seq,
8615
8626
  kind: "notice",
@@ -10390,7 +10401,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10390
10401
  module.exports = subset;
10391
10402
  }));
10392
10403
  //#endregion
10393
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
10404
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
10394
10405
  var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
10395
10406
  const internalRe = require_re();
10396
10407
  const constants = require_constants$1();
@@ -10483,7 +10494,7 @@ function cmdEscapeArgument(arg, doubleEscapeMetaChars = false) {
10483
10494
  return out;
10484
10495
  }
10485
10496
  //#endregion
10486
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
10497
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
10487
10498
  const PACKAGE_NAME = "@chatcode/cco-tui";
10488
10499
  const DEFAULT_REGISTRY = "https://registry.npmjs.org";
10489
10500
  const GITHUB_REPO = "ccch1mneyyy/dsh-TUI";
@@ -11834,7 +11845,7 @@ async function restartTui(sessionId, options = {}) {
11834
11845
  });
11835
11846
  }
11836
11847
  //#endregion
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
11848
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/header.js
11838
11849
  /** A finite number, or undefined for anything else (NaN and ±Infinity included). */
11839
11850
  function finiteNumber(value) {
11840
11851
  return typeof value === "number" && Number.isFinite(value) ? value : void 0;
@@ -11908,7 +11919,7 @@ function classify(header) {
11908
11919
  return { kind: "root" };
11909
11920
  }
11910
11921
  //#endregion
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
11922
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/frames.js
11912
11923
  /**
11913
11924
  * Bounded reads over the JSONL backend's concatenated-Zstandard session logs.
11914
11925
  *
@@ -12154,7 +12165,7 @@ function decodeTail(window) {
12154
12165
  return decodeFrames(window.buffer, window.whole ? walkFrames(window.buffer) : resyncFrames(window.buffer));
12155
12166
  }
12156
12167
  //#endregion
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
12168
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/digest.js
12158
12169
  /**
12159
12170
  * What a bounded read can learn about a session log.
12160
12171
  *
@@ -12637,7 +12648,7 @@ function previewSession(path, limit) {
12637
12648
  return entries.slice(-limit);
12638
12649
  }
12639
12650
  //#endregion
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
12651
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/artifact.js
12641
12652
  /** Read-only artifact lookup for session summaries and previews. */
12642
12653
  /** Highest published compressed generation; temporary migration files are ignored. */
12643
12654
  function inDirectory(directory) {
@@ -12690,7 +12701,7 @@ function findSessionArtifact(sessionId, target) {
12690
12701
  }
12691
12702
  }
12692
12703
  //#endregion
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
12704
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/store.js
12694
12705
  /**
12695
12706
  * The session index — a local cache keyed by the backend's own change token.
12696
12707
  *
@@ -12854,7 +12865,7 @@ function noteBranch(sessionId, branch) {
12854
12865
  writeIndex(index);
12855
12866
  }
12856
12867
  //#endregion
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
12868
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/list.js
12858
12869
  /**
12859
12870
  * Building the session list.
12860
12871
  *
@@ -13135,7 +13146,7 @@ async function locateSession(source, sessionId, signal) {
13135
13146
  return match === void 0 ? void 0 : locate$1(source, match.raw, sessionId);
13136
13147
  }
13137
13148
  //#endregion
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
13149
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/agent-view.js
13139
13150
  /**
13140
13151
  * Agent view (CC `claude agents`) derivation helpers — pure functions over
13141
13152
  * session events that the channel folds into {@link AgentViewRow}s. Kept in
@@ -13365,7 +13376,7 @@ function featureOn(config, name) {
13365
13376
  return config.mode !== "minimal";
13366
13377
  }
13367
13378
  //#endregion
13368
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
13379
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
13369
13380
  /**
13370
13381
  * Persisted working-activity indicator preference, mirroring the pi
13371
13382
  * working-activity extension's `~/.pi/agent/working-activity.json`
@@ -13434,11 +13445,7 @@ function writeActivityFrames(name, dir = PREFS_DIR$5) {
13434
13445
  }
13435
13446
  }
13436
13447
  //#endregion
13437
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
13438
- const pathSeparators = /[\\/]/;
13439
- function isPathLikeQuery(query) {
13440
- return query.startsWith(".") || query.startsWith("~") || query.startsWith("/") || /^[A-Za-z]:[\\/]/.test(query) || pathSeparators.test(query);
13441
- }
13448
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
13442
13449
  function substringMatchScore(query, candidate) {
13443
13450
  const needle = query.toLocaleLowerCase();
13444
13451
  const haystack = candidate.toLocaleLowerCase();
@@ -13457,7 +13464,7 @@ function rankFileCandidates(candidates, query, topK) {
13457
13464
  return topK === void 0 ? ranked : ranked.slice(0, Math.max(0, topK));
13458
13465
  }
13459
13466
  //#endregion
13460
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
13467
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
13461
13468
  /**
13462
13469
  * Persisted reasoning-effort preference (`~/.chatcode-cli/tui/effort.json`). Set via
13463
13470
  * `/effort` (slider or `/effort <id>`; `/effort status` reports the current
@@ -13499,7 +13506,7 @@ function writeEffortPref(effort, dir = PREFS_DIR$4) {
13499
13506
  }
13500
13507
  }
13501
13508
  //#endregion
13502
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
13509
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
13503
13510
  /**
13504
13511
  * Persisted model-route preference (`/model` picker choice), kept at
13505
13512
  * `~/.chatcode-cli/model.json` (`provider` + `model` keys) so CLI and Web share it
@@ -13582,7 +13589,7 @@ function writeModelPref(provider, model, dir = PREFS_DIR$3) {
13582
13589
  }
13583
13590
  }
13584
13591
  //#endregion
13585
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
13592
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
13586
13593
  /**
13587
13594
  * Model route resolution (issue #67). The `(provider, model)` pair is a
13588
13595
  * single value: every source either supplies the WHOLE route or is skipped,
@@ -13817,7 +13824,7 @@ function orderModelProviders(providers) {
13817
13824
  return [...providers].sort((left, right) => rank(left.id) - rank(right.id));
13818
13825
  }
13819
13826
  //#endregion
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
13827
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelSettings.js
13821
13828
  /** Custom-model forms over the same settings and credential services used by Web. */
13822
13829
  function record(value) {
13823
13830
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -14019,7 +14026,7 @@ function createCustomModelSettingsStore(path, host) {
14019
14026
  };
14020
14027
  }
14021
14028
  //#endregion
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
14029
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelTest.js
14023
14030
  /** Direct, one-shot generation used by `/model-config` before a model is registered. */
14024
14031
  function requestEndpoint(baseURL, api) {
14025
14032
  const url = new URL(baseURL);
@@ -14108,7 +14115,7 @@ async function testCustomModelConnection(request, fetchImpl = fetch) {
14108
14115
  }
14109
14116
  }
14110
14117
  //#endregion
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
14118
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/catalogDefaults.js
14112
14119
  /** Read display defaults from the host adapter's own installed pi-ai catalog. */
14113
14120
  const catalogs = /* @__PURE__ */ new Map();
14114
14121
  async function installedCatalog(anchor) {
@@ -14155,7 +14162,7 @@ async function catalogProviderDefaults(provider, model, anchor = import.meta.url
14155
14162
  };
14156
14163
  }
14157
14164
  //#endregion
14158
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
14165
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
14159
14166
  /**
14160
14167
  * Persisted agent-preset preference (`/preset` picker choice), kept at
14161
14168
  * `~/.chatcode-cli/tui/agent-preset.json` (`preset` key) so the choice survives
@@ -14214,7 +14221,7 @@ function migratePresetPref(requested, resolved, dir = PREFS_DIR$2) {
14214
14221
  return requested === void 0 || resolved === void 0 || requested === resolved ? true : writePresetPref(resolved, dir);
14215
14222
  }
14216
14223
  //#endregion
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
14224
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/persistedSession.js
14218
14225
  /** Undefined means the service exposes neither supported read API. */
14219
14226
  async function readPersistedSession(persistence, id) {
14220
14227
  if (persistence === null || typeof persistence !== "object") return void 0;
@@ -14234,7 +14241,7 @@ async function readPersistedSession(persistence, id) {
14234
14241
  if (typeof reader.load === "function") return reader.load(id);
14235
14242
  }
14236
14243
  //#endregion
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
14244
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-resolution.js
14238
14245
  /**
14239
14246
  * Agent-preset resolution across upstream prerelease lines.
14240
14247
  *
@@ -14272,7 +14279,7 @@ async function resolveCompatiblePreset(presets, requested) {
14272
14279
  return presets.resolve(requested);
14273
14280
  }
14274
14281
  //#endregion
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
14282
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/presets.js
14276
14283
  /**
14277
14284
  * Agent-presets roster integration (issue #8): compose each session's
14278
14285
  * model-facing world (tools, prompt sections, projections) from one preset
@@ -14422,7 +14429,7 @@ function serviceForAgent(ctx, agent, key) {
14422
14429
  return ctx.get(key);
14423
14430
  }
14424
14431
  //#endregion
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
14432
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagent-control.js
14426
14433
  /**
14427
14434
  * Interrupt a child visible to the current parent without disposing its session.
14428
14435
  * One-shot local agents use their cancellation method; continuable agents use
@@ -14462,7 +14469,7 @@ function interruptSubagent(ctx, parent, id) {
14462
14469
  }
14463
14470
  }
14464
14471
  //#endregion
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
14472
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-management.js
14466
14473
  const failureReason = (error) => error instanceof Error ? error.message : String(error);
14467
14474
  /** Read a roster-resolved composition without bypassing preset ownership. */
14468
14475
  async function readPresetComposition(presets, presetId) {
@@ -14519,7 +14526,7 @@ async function removePresetComposition(presets, presetId) {
14519
14526
  }
14520
14527
  }
14521
14528
  //#endregion
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
14529
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/session-organization.js
14523
14530
  /** Adapter-only readers for optional Harness session-organization services. */
14524
14531
  const STAT_KEYS = [
14525
14532
  "turns",
@@ -14580,7 +14587,7 @@ function presetCompositionRows(content, limit = 80) {
14580
14587
  };
14581
14588
  }
14582
14589
  //#endregion
14583
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
14590
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
14584
14591
  /**
14585
14592
  * Debug logger for the ported Ink core. Writes to stderr only when
14586
14593
  * `CHATCODE_CLI_TUI_DEBUG` (or its legacy alias) is set, so normal runs stay quiet.
@@ -14610,7 +14617,7 @@ function logMouseDebug(message, fields) {
14610
14617
  } catch {}
14611
14618
  }
14612
14619
  //#endregion
14613
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
14620
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
14614
14621
  /**
14615
14622
  * `@` file-mention parsing (issue #15).
14616
14623
  *
@@ -14731,18 +14738,23 @@ function extractMentions(text) {
14731
14738
  * the `#` — the typed line range survives acceptance.
14732
14739
  */
14733
14740
  function mentionAtCaret(value, cursor) {
14741
+ let quotedStart = value.lastIndexOf("@\"", cursor - 1);
14742
+ while (quotedStart >= 0) {
14743
+ if (isBoundary(value[quotedStart - 1]) && cursor >= quotedStart + 2) {
14744
+ const close = value.indexOf("\"", quotedStart + 2);
14745
+ if (close === -1 || cursor <= close) return {
14746
+ start: quotedStart,
14747
+ end: close === -1 ? value.length : close + 1,
14748
+ query: value.slice(quotedStart + 2, cursor)
14749
+ };
14750
+ }
14751
+ if (quotedStart === 0) break;
14752
+ quotedStart = value.lastIndexOf("@\"", quotedStart - 1);
14753
+ }
14734
14754
  let start = cursor;
14735
14755
  while (start > 0 && !isBoundary(value[start - 1])) start--;
14736
14756
  if (value[start] !== "@") return void 0;
14737
- if (value[start + 1] === "\"") {
14738
- const close = value.indexOf("\"", start + 2);
14739
- if (close !== -1 && cursor > close) return void 0;
14740
- return {
14741
- start,
14742
- end: close === -1 ? value.length : close + 1,
14743
- query: value.slice(start + 2, cursor)
14744
- };
14745
- }
14757
+ if (value[start + 1] === "\"") return void 0;
14746
14758
  let end = cursor;
14747
14759
  while (end < value.length && !isBoundary(value[end])) end++;
14748
14760
  const queryEnd = Math.min(cursor, end);
@@ -14756,7 +14768,7 @@ function mentionAtCaret(value, cursor) {
14756
14768
  };
14757
14769
  }
14758
14770
  //#endregion
14759
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
14771
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
14760
14772
  /** Format only the files in the authoritative loaded-context projection. */
14761
14773
  function loadedFileLines(files, copy) {
14762
14774
  if (files === void 0) return [copy.unavailable];
@@ -14871,7 +14883,7 @@ function codeRatioLines(report, copy, maxAuthors = 20) {
14871
14883
  return lines;
14872
14884
  }
14873
14885
  //#endregion
14874
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
14886
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
14875
14887
  /**
14876
14888
  * Cordis-free theme catalog shared by future pickers, commands and hosts.
14877
14889
  *
@@ -14952,7 +14964,7 @@ function listThemeCatalog(host) {
14952
14964
  return Object.freeze(entries);
14953
14965
  }
14954
14966
  //#endregion
14955
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
14967
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
14956
14968
  /**
14957
14969
  * Configurable Shift+Tab session modes (the `modes` dsh-tui plugin config):
14958
14970
  * each mode is a named bundle of optional DSH plane switches — plan mode
@@ -15016,7 +15028,7 @@ function modeDisplayName(spec) {
15016
15028
  return spec.id;
15017
15029
  }
15018
15030
  //#endregion
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
15031
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagents.js
15020
15032
  /** Unified subagent activity domain model used by the adapter and every view. */
15021
15033
  const MAX_OUTPUT_EVENTS = 160;
15022
15034
  const MAX_OUTPUT_LINES = 160;
@@ -15394,7 +15406,7 @@ function formatJobDuration(job, now = Date.now()) {
15394
15406
  return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart(2, "0")}m`;
15395
15407
  }
15396
15408
  //#endregion
15397
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
15409
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
15398
15410
  /**
15399
15411
  * Minimal mode: one process-wide flag gating decorative UI (header splash,
15400
15412
  * emoji status glyphs and non-tool text colors). Footer field choices remain
@@ -15414,7 +15426,7 @@ function setMinimalMode(enabled) {
15414
15426
  minimal = enabled;
15415
15427
  }
15416
15428
  //#endregion
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
15429
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspace.js
15418
15430
  function registryOf(ctx) {
15419
15431
  const registry = ctx.get("workspaceRegistry");
15420
15432
  if (registry === void 0 || typeof registry.pinSession !== "function" || typeof registry.unpinSession !== "function") return void 0;
@@ -15489,7 +15501,7 @@ async function unarchiveWorkspaceSession(ctx, id) {
15489
15501
  return true;
15490
15502
  }
15491
15503
  //#endregion
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
15504
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/contract.js
15493
15505
  /**
15494
15506
  * Upstream compatibility contract.
15495
15507
  *
@@ -15918,7 +15930,7 @@ function pluginsInfoLines(args, deps) {
15918
15930
  return lines;
15919
15931
  }
15920
15932
  //#endregion
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
15933
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/mcp-status.js
15922
15934
  /** Loader and tool-registry projection used by the TUI's `/mcp` report. */
15923
15935
  const MCP_CLIENT_PACKAGE = "@deepseek-ai/dsh-mcp-client";
15924
15936
  const FIBER_ACTIVE = 2;
@@ -15987,7 +15999,7 @@ function collectMcpServerStatus(schemas, entries, discovered = []) {
15987
15999
  }));
15988
16000
  }
15989
16001
  //#endregion
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
16002
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/asset-config.js
15991
16003
  /** Read user and current-workspace configuration for local status commands. */
15992
16004
  function object(value) {
15993
16005
  return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
@@ -16085,7 +16097,7 @@ function hookHandlers(groups) {
16085
16097
  });
16086
16098
  }
16087
16099
  //#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
16100
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/format.js
16089
16101
  /**
16090
16102
  * Number, token-count, and duration formatters shared by the status line
16091
16103
  * and message rows.
@@ -16148,7 +16160,7 @@ function formatDuration$4(durationMs, options = {}) {
16148
16160
  return parts.join(" ");
16149
16161
  }
16150
16162
  //#endregion
16151
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
16163
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
16152
16164
  /**
16153
16165
  * Return the current context occupancy. The latest request is authoritative:
16154
16166
  * its uncached input and cache read/write tokens are all part of that request's
@@ -16532,7 +16544,7 @@ function prepareMemoryTargetFile(requested, candidates, cwd, dshHome) {
16532
16544
  }
16533
16545
  }
16534
16546
  //#endregion
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
16547
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/channel.js
16536
16548
  /** Return the step left open by a tree fork cut within one turn. */
16537
16549
  function openStepAtForkCut(events, turn) {
16538
16550
  for (let i = events.length - 1; i >= 0; i--) {
@@ -22414,15 +22426,17 @@ ${output}
22414
22426
  nextRowId += 1;
22415
22427
  break;
22416
22428
  }
22417
- const detail = reason.kind === "error" ? cleanRenderText(reason.error.message, NOTICE_CELLS) : "";
22418
- const failureText = t("turn-failed", { detail: detail ? ` · ${detail}` : "" });
22429
+ const detail = reason.kind === "error" ? redactErrorDiagnostic(reason.error.message) : "";
22430
+ const diagnostic = [reason.kind === "error" && reason.error.status !== void 0 ? `HTTP ${reason.error.status}` : "", detail].filter(Boolean).join(" · ");
22431
+ const failureText = t("turn-failed", { detail: diagnostic ? ` · ${diagnostic}` : "" });
22419
22432
  state.rows.push({
22420
22433
  id: nextRowId,
22421
22434
  kind: "notice",
22422
- text: failureText
22435
+ text: failureText,
22436
+ noticeTone: "error"
22423
22437
  });
22424
22438
  nextRowId += 1;
22425
- state.notify(failureText, {
22439
+ state.notify(cleanRenderText(failureText, NOTICE_CELLS), {
22426
22440
  color: "error",
22427
22441
  timeoutMs: 8e3
22428
22442
  });
@@ -22900,51 +22914,63 @@ function usageOutputTokens(usage) {
22900
22914
  const value = usage.outputTokens;
22901
22915
  return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : void 0;
22902
22916
  }
22903
- async function listPathCandidates(fs, cwd, query, signal, topK) {
22917
+ /** Absolute path shared by completion and submitted references. */
22918
+ function fileMentionPath(cwd, path) {
22919
+ if (path === "~") return homeDir();
22920
+ if (path.startsWith("~/") || path.startsWith("~\\")) return join(homeDir(), path.slice(2));
22921
+ return isAbsolute(path) || /^[A-Za-z]:[\\/]/.test(path) ? path : join(cwd, path);
22922
+ }
22923
+ async function listPathCandidates(fs, cwd, scan, query, signal, topK) {
22904
22924
  const normalized = query.replaceAll("\\", "/");
22905
22925
  const slash = normalized.lastIndexOf("/");
22906
22926
  const bareDir = slash < 0 && (normalized === "." || normalized === ".." || normalized === "~");
22907
22927
  const directoryPart = slash < 0 ? bareDir ? `${normalized}/` : "" : normalized.slice(0, slash + 1);
22908
- const nameQuery = slash < 0 || bareDir ? "" : normalized.slice(slash + 1);
22909
- const expanded = directoryPart === "~/" ? `${homeDir()}/` : directoryPart.startsWith("/") || /^[A-Za-z]:\//.test(directoryPart) ? directoryPart : join(cwd, directoryPart || ".");
22910
- try {
22911
- if (signal?.aborted) return [];
22912
- const target = await fs.resolve(expanded);
22913
- return rankFileCandidates((await fs.listDir(target)).slice().sort((a, b) => a.name.localeCompare(b.name)).filter((entry) => entry.type === "file" || entry.type === "directory").map((entry) => {
22914
- const path = `${directoryPart}${entry.name}${entry.type === "directory" ? "/" : ""}`;
22915
- return {
22916
- id: path,
22917
- path,
22918
- displayPath: path,
22919
- name: entry.name,
22920
- kind: entry.type,
22921
- score: 0
22922
- };
22923
- }), nameQuery, topK);
22924
- } catch {
22925
- return [];
22928
+ const nameQuery = bareDir ? "" : normalized.slice(slash + 1);
22929
+ const expanded = fileMentionPath(cwd, directoryPart || ".");
22930
+ if (signal?.aborted) return [];
22931
+ let listing = scan.get(expanded);
22932
+ if (listing === void 0) {
22933
+ listing = Promise.resolve().then(async () => {
22934
+ try {
22935
+ const target = await fs.resolve(expanded);
22936
+ return (await fs.listDir(target)).filter((entry) => entry.type === "file" || entry.type === "directory").map((entry) => {
22937
+ const path = `${entry.name}${entry.type === "directory" ? "/" : ""}`;
22938
+ return {
22939
+ id: path,
22940
+ path,
22941
+ displayPath: path,
22942
+ name: entry.name,
22943
+ kind: entry.type,
22944
+ score: 0
22945
+ };
22946
+ });
22947
+ } catch {
22948
+ scan.delete(expanded);
22949
+ return [];
22950
+ }
22951
+ });
22952
+ scan.set(expanded, listing);
22926
22953
  }
22954
+ const candidates = await listing;
22955
+ if (signal?.aborted) return [];
22956
+ return rankFileCandidates(candidates, nameQuery, topK).map((candidate) => {
22957
+ const path = `${directoryPart}${candidate.path}`;
22958
+ return {
22959
+ ...candidate,
22960
+ id: path,
22961
+ path,
22962
+ displayPath: path
22963
+ };
22964
+ });
22927
22965
  }
22928
- /** Progressive flush cadence for the `@` workspace walk. The first batch stays
22929
- * small so the overlay paints almost immediately; later batches coalesce so a
22930
- * huge tree does not re-rank once per directory. The time floor keeps progress
22931
- * flowing when each `listDir` is slow (provider-managed workspaces), where
22932
- * entry counts alone would starve the user of any visible reaction. */
22966
+ /** Batch cadence for the legacy recursive `listFiles` enumeration. */
22933
22967
  const FILE_SCAN_FIRST_FLUSH = 32;
22934
22968
  const FILE_SCAN_FLUSH_EVERY = 200;
22935
22969
  const FILE_SCAN_FLUSH_MS = 50;
22936
22970
  /**
22937
- * Round-robin workspace walk that yields newly discovered candidates in
22938
- * batches instead of one final array, so a caller can show partial results
22939
- * while the tree is still being read.
22940
- *
22941
- * No file/directory budget: every reachable, non-skipped entry is offered —
22942
- * `@` completion has no built-in file-count cap. Round-robin still applies
22943
- * (each directory yields ONE non-skipped entry per visit before it re-queues),
22944
- * so a large early sibling (e.g. `generated/` with 120 files) cannot starve
22945
- * `src/`; the traversal simply continues until the queue drains (`visited`
22946
- * keeps symlink cycles from looping). This is the regression contract pinned
22947
- * by scripts/verify-file-completion.mjs.
22971
+ * Recursive listing for the legacy `listFiles` API. The round-robin walk keeps
22972
+ * generated siblings from starving source directories; visited targets exclude
22973
+ * cycles. Interactive completion uses a single directory listing instead.
22948
22974
  */
22949
22975
  async function* walkWorkspaceCandidates(fs, root, signal) {
22950
22976
  const SKIP = new Set([
@@ -23030,106 +23056,18 @@ async function listFilesDeepCandidates(fs, root, signal) {
23030
23056
  return out.sort((a, b) => a.path.localeCompare(b.path));
23031
23057
  }
23032
23058
  function createFileScanState() {
23033
- let settleDone = () => {};
23034
- const settle = new Promise((resolve) => {
23035
- settleDone = resolve;
23036
- });
23037
- return {
23038
- cwd: "",
23039
- collected: [],
23040
- done: false,
23041
- started: false,
23042
- listeners: /* @__PURE__ */ new Set(),
23043
- settle,
23044
- settleDone
23045
- };
23046
- }
23047
- /** Ensure a walk is running for `cwd`, publishing each batch to the listeners. */
23048
- function ensureWorkspaceScan(scan, fs, cwd) {
23049
- if (scan.cwd !== cwd) {
23050
- scan.cwd = cwd;
23051
- scan.collected = [];
23052
- scan.done = false;
23053
- scan.started = false;
23054
- }
23055
- if (scan.started) return;
23056
- scan.started = true;
23057
- const superseded = scan.settleDone;
23058
- let settleDone = () => {};
23059
- scan.settle = new Promise((resolve) => {
23060
- settleDone = resolve;
23061
- });
23062
- scan.settleDone = settleDone;
23063
- superseded();
23064
- const publish = () => {
23065
- for (const listener of [...scan.listeners]) listener();
23066
- };
23067
- (async () => {
23068
- try {
23069
- for await (const batch of walkWorkspaceCandidates(fs, cwd)) {
23070
- if (scan.cwd !== cwd) return;
23071
- scan.collected.push(...batch);
23072
- publish();
23073
- }
23074
- if (scan.cwd !== cwd) return;
23075
- scan.done = true;
23076
- if (scan.collected.length === 0) scan.started = false;
23077
- } catch {
23078
- if (scan.cwd === cwd) scan.done = true;
23079
- } finally {
23080
- if (scan.cwd === cwd) {
23081
- settleDone();
23082
- publish();
23083
- }
23084
- }
23085
- })();
23059
+ return /* @__PURE__ */ new Map();
23086
23060
  }
23087
- /** Resolves only on abort (never, without a signal), so racing it against the
23088
- * walk keeps a caller waiting for the walk unless its request went stale. */
23089
- function untilAborted(signal) {
23090
- if (!signal) return new Promise(() => {});
23091
- if (signal.aborted) return Promise.resolve();
23092
- return new Promise((resolve) => {
23093
- signal.addEventListener("abort", () => {
23094
- resolve();
23095
- }, { once: true });
23096
- });
23097
- }
23098
- /**
23099
- * One `@` completion query against the shared walk. `onBatch` fires with the
23100
- * ranked candidates known so far — immediately, then on every new batch — so
23101
- * the overlay reacts in milliseconds on a tree the size of a real repository;
23102
- * the returned promise resolves to the final ranked set once the walk settles.
23103
- */
23061
+ /** Read and filter one directory. Child directories are read only after navigation. */
23104
23062
  async function queryFileCandidates(fs, cwd, scan, query, options) {
23105
- if (!fs || options?.signal?.aborted) return [];
23106
- const emit = (candidates, done) => {
23107
- options?.onBatch?.({
23108
- candidates,
23109
- done
23110
- });
23111
- };
23112
- if (isPathLikeQuery(query)) {
23113
- const candidates = await listPathCandidates(fs, cwd, query, options?.signal, options?.topK);
23114
- emit(candidates, true);
23115
- return candidates;
23116
- }
23117
- ensureWorkspaceScan(scan, fs, cwd);
23118
- const rank = () => rankFileCandidates(scan.collected, query, options?.topK);
23119
- const listener = () => {
23120
- if (options?.signal?.aborted) return;
23121
- if (!scan.done && scan.collected.length === 0) return;
23122
- emit(rank(), scan.done);
23123
- };
23124
- scan.listeners.add(listener);
23125
- try {
23126
- listener();
23127
- if (!scan.done) await Promise.race([scan.settle, untilAborted(options?.signal)]);
23128
- if (options?.signal?.aborted) return [];
23129
- return rank();
23130
- } finally {
23131
- scan.listeners.delete(listener);
23132
- }
23063
+ if (options?.signal?.aborted) return [];
23064
+ const candidates = fs === void 0 ? [] : await listPathCandidates(fs, cwd, scan, query, options?.signal, options?.topK);
23065
+ if (options?.signal?.aborted) return [];
23066
+ options?.onBatch?.({
23067
+ candidates,
23068
+ done: true
23069
+ });
23070
+ return candidates;
23133
23071
  }
23134
23072
  /** One attached file's contribution is capped so an absent-minded `@` of a
23135
23073
  * huge file cannot blow the context window (CC caps @-attachments too). */
@@ -23154,6 +23092,26 @@ const MENTION_IMAGE_MEDIA_TYPES = {
23154
23092
  ".webp": "image/webp",
23155
23093
  ".gif": "image/gif"
23156
23094
  };
23095
+ /** Document formats passed to file tools rather than decoded as UTF-8. */
23096
+ const MENTION_BINARY_DOCUMENT_EXTENSIONS = new Set([
23097
+ ".pdf",
23098
+ ".doc",
23099
+ ".docx",
23100
+ ".docm",
23101
+ ".ppt",
23102
+ ".pptx",
23103
+ ".pptm",
23104
+ ".xls",
23105
+ ".xlsx",
23106
+ ".xlsm",
23107
+ ".xlsb",
23108
+ ".odt",
23109
+ ".ods",
23110
+ ".odp"
23111
+ ]);
23112
+ function binaryMentionText(shownPath, displayPath) {
23113
+ return `<attached-file path="${shownPath}" format="binary">\nThis file exists at ${displayPath}. Its binary contents are not included here; use the appropriate file tools to read it.\n</attached-file>`;
23114
+ }
23157
23115
  function mentionImageMediaType(path) {
23158
23116
  return MENTION_IMAGE_MEDIA_TYPES[extname(path).toLowerCase()];
23159
23117
  }
@@ -23172,13 +23130,46 @@ async function tryResolveMention(fs, absolute) {
23172
23130
  return;
23173
23131
  }
23174
23132
  }
23133
+ /** Prefer exact names; unquoted references may end before adjacent prose. */
23134
+ async function resolveSubmittedMention(fs, cwd, text, token) {
23135
+ const candidates = [token];
23136
+ if (text[token.start + 1] !== "\"") {
23137
+ const raw = token.literal ?? token.path;
23138
+ const lastSeparator = Math.max(raw.lastIndexOf("/"), raw.lastIndexOf("\\"));
23139
+ const boundaries = [...raw.matchAll(/[,。!?、;:,;!?))\]}]|\.[A-Za-z][A-Za-z0-9]*(?:#L\d+(?:-\d+)?)?(?=\p{Script=Han})/gu)];
23140
+ for (const match of boundaries.reverse()) {
23141
+ const end = match.index + (match[0].startsWith(".") ? match[0].length : 0);
23142
+ if (end <= lastSeparator) continue;
23143
+ const prefix = extractMentions(`@${raw.slice(0, end)}`)[0];
23144
+ if (prefix !== void 0) candidates.push(prefix);
23145
+ }
23146
+ }
23147
+ for (const mention of candidates) {
23148
+ const resolved = await tryResolveMention(fs, fileMentionPath(cwd, mention.path));
23149
+ if (resolved !== void 0) return {
23150
+ ...resolved,
23151
+ mention,
23152
+ literalFallback: false
23153
+ };
23154
+ if (mention.literal !== void 0) {
23155
+ const literal = await tryResolveMention(fs, fileMentionPath(cwd, mention.literal));
23156
+ if (literal !== void 0) return {
23157
+ ...literal,
23158
+ mention,
23159
+ literalFallback: true
23160
+ };
23161
+ }
23162
+ }
23163
+ }
23175
23164
  /**
23176
23165
  * Expand a submitted text's `@` mentions (issue #15) into model-facing
23177
23166
  * attachment blocks: supported image files become durable image blocks,
23178
23167
  * other files contribute capped text, and directories contribute a shallow
23179
- * listing. Reads always go through the active fs service, so provider-owned
23180
- * workspaces keep their routing semantics. The typed text stays first and
23181
- * verbatim. Best-effort failures degrade to `missing`, never a failed send.
23168
+ * listing. Unquoted references can end before adjacent prose when the exact
23169
+ * filename is absent; quoted paths remain exact. Reads always go through the
23170
+ * active fs service, so provider-owned workspaces keep their routing semantics.
23171
+ * The typed text stays first and verbatim. Best-effort failures degrade to
23172
+ * `missing`, never a failed send.
23182
23173
  */
23183
23174
  async function expandMentions(fs, cwd, text, attachments, stagedImages) {
23184
23175
  const blocks = [{
@@ -23191,21 +23182,16 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
23191
23182
  let budget = MENTION_MAX_TOTAL_CHARS;
23192
23183
  let imageCount = 0;
23193
23184
  let imageBytes = 0;
23194
- if (fs !== void 0) for (const mention of mentions) {
23195
- const display = mention.literal ?? mention.path;
23196
- const imageMediaType = mentionImageMediaType(mention.path);
23197
- if (budget <= 0 && imageMediaType === void 0) break;
23198
- let resolved = await tryResolveMention(fs, isAbsolute(mention.path) ? mention.path : join(cwd, mention.path));
23199
- let literalFallback = false;
23200
- if (resolved === void 0 && mention.literal !== void 0) {
23201
- resolved = await tryResolveMention(fs, isAbsolute(mention.literal) ? mention.literal : join(cwd, mention.literal));
23202
- literalFallback = resolved !== void 0;
23203
- }
23185
+ if (fs !== void 0) for (const token of mentions) {
23186
+ if (budget <= 0 && mentionImageMediaType(token.path) === void 0) break;
23187
+ const resolved = await resolveSubmittedMention(fs, cwd, text, token);
23204
23188
  if (resolved === void 0) {
23205
- missing.push(display);
23189
+ missing.push(token.literal ?? token.path);
23206
23190
  continue;
23207
23191
  }
23208
- const { target, info } = resolved;
23192
+ const { target, info, mention, literalFallback } = resolved;
23193
+ const display = mention.literal ?? mention.path;
23194
+ const imageMediaType = mentionImageMediaType(mention.path);
23209
23195
  const shownPath = literalFallback ? display : mention.path;
23210
23196
  const imageType = literalFallback && mention.literal !== void 0 ? mentionImageMediaType(mention.literal) : imageMediaType;
23211
23197
  if (info?.type === "file") {
@@ -23238,6 +23224,25 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
23238
23224
  }
23239
23225
  continue;
23240
23226
  }
23227
+ if (MENTION_BINARY_DOCUMENT_EXTENSIONS.has(extname(shownPath).toLowerCase()) && fs.readByteRange !== void 0) {
23228
+ const reference = binaryMentionText(shownPath, target.displayPath);
23229
+ if (reference.length > budget) break;
23230
+ try {
23231
+ await fs.readByteRange(target, {
23232
+ offset: 0,
23233
+ length: 1
23234
+ });
23235
+ budget -= reference.length;
23236
+ blocks.push({
23237
+ type: "text",
23238
+ text: reference
23239
+ });
23240
+ attached.push(display);
23241
+ } catch {
23242
+ missing.push(display);
23243
+ }
23244
+ continue;
23245
+ }
23241
23246
  try {
23242
23247
  const cap = Math.min(MENTION_MAX_FILE_CHARS, budget);
23243
23248
  const content = await fs.readText(target);
@@ -23265,7 +23270,7 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
23265
23270
  attached.push(display);
23266
23271
  } catch (error) {
23267
23272
  if (typeof error === "object" && error !== null && "code" in error && error.code === "FS_NOT_TEXT") {
23268
- const reference = `<attached-file path="${shownPath}" format="binary">\nThis file exists at ${target.displayPath}. Its binary contents are not included here; use the appropriate file tools to read it.\n</attached-file>`;
23273
+ const reference = binaryMentionText(shownPath, target.displayPath);
23269
23274
  if (reference.length > budget) break;
23270
23275
  budget -= reference.length;
23271
23276
  blocks.push({
@@ -23319,7 +23324,7 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
23319
23324
  };
23320
23325
  }
23321
23326
  //#endregion
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
23327
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/childStderr.js
23323
23328
  /**
23324
23329
  * Child-process stderr guard (issue #17).
23325
23330
  *
@@ -23488,7 +23493,7 @@ function createChildStderrReporter(notify, options = {}) {
23488
23493
  };
23489
23494
  }
23490
23495
  //#endregion
23491
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/startupTrace.js
23496
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/startupTrace.js
23492
23497
  /** Opt-in startup timings; labels never contain paths, Session identities, or credentials. */
23493
23498
  /**
23494
23499
  * Measure one initialization operation without changing its result or failure.
@@ -23507,7 +23512,7 @@ async function traceTuiStartup(phase, operation) {
23507
23512
  }
23508
23513
  }
23509
23514
  //#endregion
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
23515
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions.js
23511
23516
  /**
23512
23517
  * Ask-user-question store — the UI-side half of the DSH user-interaction
23513
23518
  * seam (`ctx.userQuestions`). The harness's model-facing
@@ -23747,7 +23752,7 @@ var QuestionStore = class {
23747
23752
  }
23748
23753
  };
23749
23754
  //#endregion
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
23755
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerGuard.js
23751
23756
  /**
23752
23757
  * Question-provider seat guard (issue #98 security follow-up).
23753
23758
  *
@@ -23859,7 +23864,7 @@ function incumbentQuestionProviderId(service) {
23859
23864
  } catch {}
23860
23865
  }
23861
23866
  //#endregion
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
23867
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions-answerer.js
23863
23868
  /**
23864
23869
  * User-question answerer compatibility.
23865
23870
  *
@@ -23918,7 +23923,7 @@ function prepareQuestionAnswerer(ctx, service, answerer) {
23918
23923
  }
23919
23924
  }
23920
23925
  //#endregion
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
23926
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/approvals.js
23922
23927
  /**
23923
23928
  * Approval store — the UI-side answerer half of the DSH approval seam
23924
23929
  * (`ctx.approval`). The harness's permission layer asks
@@ -24312,7 +24317,7 @@ var ApprovalStore = class {
24312
24317
  }
24313
24318
  };
24314
24319
  //#endregion
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
24320
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/promptDebug.js
24316
24321
  /**
24317
24322
  * On-demand capture of every final AgentLoop request context observed for a
24318
24323
  * live session.
@@ -24458,7 +24463,7 @@ function registerPromptDebug(ctx) {
24458
24463
  }));
24459
24464
  }
24460
24465
  //#endregion
24461
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
24466
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
24462
24467
  /**
24463
24468
  * One-time local migrations (`~/.chatcode-cli/tui/migrations.json`), keyed by stable
24464
24469
  * migration id → ISO timestamp. Named keys (not a bare flag) so later
@@ -24549,7 +24554,7 @@ async function commitFullscreenFactoryMigration(plan, options) {
24549
24554
  } catch {}
24550
24555
  }
24551
24556
  //#endregion
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
24557
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/retired-packaged-presets.js
24553
24558
  const OWNER = "@chatcode/cco-tui";
24554
24559
  const MARKER = ".dsh-tui-managed.json";
24555
24560
  const RETIRED_PACKAGED_PRESETS = ["liangshen"];
@@ -24591,7 +24596,7 @@ function cleanupRetiredPackagedPresets(options = {}) {
24591
24596
  return results;
24592
24597
  }
24593
24598
  //#endregion
24594
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
24599
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
24595
24600
  /** The browser's default view: this project, conversations only. */
24596
24601
  const DEFAULT_FILTERS = {
24597
24602
  query: "",
@@ -24925,7 +24930,7 @@ function windowEnd(rows, top, budget) {
24925
24930
  return at;
24926
24931
  }
24927
24932
  //#endregion
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
24933
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/resume.js
24929
24934
  /** Resolve launch-time resume flags against persisted conversations. */
24930
24935
  /**
24931
24936
  * Select the latest conversation in the exact launch directory for bare flags.
@@ -24945,7 +24950,7 @@ async function resolveStartupSessionId(source, argv, cwd) {
24945
24950
  return latest.id;
24946
24951
  }
24947
24952
  //#endregion
24948
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
24953
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
24949
24954
  /** Resolve a fresh session's working directory without widening it to a Git ancestor. */
24950
24955
  /**
24951
24956
  * Explicit configuration wins; otherwise keep the invoking directory, even
@@ -24958,7 +24963,7 @@ function resolveSessionCwd(configured, start = process.cwd()) {
24958
24963
  return resolve(start, configured ?? "");
24959
24964
  }
24960
24965
  //#endregion
24961
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
24966
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
24962
24967
  /**
24963
24968
  * Open URLs, files and folders with the platform's default handler, fully
24964
24969
  * detached from the TUI process (fire-and-forget: no stdio pipes, no wait,
@@ -25119,7 +25124,7 @@ function revealInFileManager(filePath) {
25119
25124
  if (existsSync(dir)) openExternal(dir);
25120
25125
  }
25121
25126
  //#endregion
25122
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
25127
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
25123
25128
  /** ChatCode API request capability. Credentials stay in the host adapter. */
25124
25129
  const CHATCODE_API_BASE_URL = "https://chatcode.chinaunicom.cn";
25125
25130
  /** CVP(天梯)平台基础 URL,承载 modules/notification 等公开/独立鉴权模块接口。 */
@@ -25127,7 +25132,7 @@ const CVP_CHATCODE_API_URL = `${CHATCODE_API_BASE_URL}/cvp`;
25127
25132
  /** Each mounted TUI receives its own host-authorized request function. */
25128
25133
  const ChatCodeApiContext = (0, import_react.createContext)(void 0);
25129
25134
  //#endregion
25130
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
25135
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
25131
25136
  const RELEASE_NOTE_PATH = join(DATA_DIR, "release-notes.json");
25132
25137
  const RELEASE_NOTE_ENDPOINT = `${CHATCODE_API_BASE_URL}/chatcode/api/v1/cli/version/release-note`;
25133
25138
  function acknowledgedVersion() {
@@ -25223,7 +25228,7 @@ var ReleaseNotesStore = class {
25223
25228
  }
25224
25229
  };
25225
25230
  //#endregion
25226
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
25231
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
25227
25232
  const MAIN_CLI_PACKAGES = new Set(["@chatcode/chatcode-cli", "@chatcode/chatcode-cli-test"]);
25228
25233
  const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u;
25229
25234
  const PRODUCT_VERSION_ENV = "CHATCODE_CLI_PRODUCT_VERSION";
@@ -25263,7 +25268,7 @@ function resolveProductVersion(options = {}) {
25263
25268
  /** Product version shown by the TUI, shared with `cco --version` and Web. */
25264
25269
  const PRODUCT_VERSION = resolveProductVersion();
25265
25270
  //#endregion
25266
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
25271
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
25267
25272
  const MAX_CAPTURE_BYTES = 64 * 1024;
25268
25273
  function appendBounded(chunks, chunk, total) {
25269
25274
  if (total.value >= MAX_CAPTURE_BYTES) return;
@@ -25333,7 +25338,7 @@ function execFileNoThrow(file, args = [], options) {
25333
25338
  });
25334
25339
  }
25335
25340
  //#endregion
25336
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
25341
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
25337
25342
  const REPORT_TIMEOUT_MS = 2e3;
25338
25343
  const RELEASE_TIMEOUT_MS = 500;
25339
25344
  const RETRY_DELAYS_MS = [
@@ -25721,7 +25726,7 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((expo
25721
25726
  })();
25722
25727
  }));
25723
25728
  //#endregion
25724
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
25729
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
25725
25730
  var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
25726
25731
  if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
25727
25732
  else module.exports = require_react_jsx_runtime_development();
@@ -25778,7 +25783,7 @@ function writeThemePref(name, dir = PREFS_DIR) {
25778
25783
  }
25779
25784
  }
25780
25785
  //#endregion
25781
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
25786
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
25782
25787
  const EMPTY_THEME_SNAPSHOT = Object.freeze([]);
25783
25788
  const subscribeNoThemes = (_listener) => () => {};
25784
25789
  /**
@@ -25806,7 +25811,7 @@ function useRuntimeThemeSnapshot(themeHost) {
25806
25811
  return import_react.useSyncExternalStore(subscribeThemes, getThemeSnapshot, getThemeSnapshot);
25807
25812
  }
25808
25813
  //#endregion
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
25814
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event.js
25810
25815
  /**
25811
25816
  * Base class for events with immediate-propagation control.
25812
25817
  *
@@ -25830,7 +25835,7 @@ var Event = class {
25830
25835
  }
25831
25836
  };
25832
25837
  //#endregion
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
25838
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/emitter.js
25834
25839
  /**
25835
25840
  * Node-compatible event emitter that is aware of the `Event` class, so
25836
25841
  * `emit` respects `stopImmediatePropagation()` on dispatched events.
@@ -25863,7 +25868,7 @@ var EventEmitter$1 = class extends EventEmitter {
25863
25868
  }
25864
25869
  };
25865
25870
  //#endregion
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
25871
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/StdinContext.js
25867
25872
  /**
25868
25873
  * `StdinContext` is a React context, which exposes input stream.
25869
25874
  */
@@ -25877,14 +25882,14 @@ const StdinContext = (0, import_react.createContext)({
25877
25882
  });
25878
25883
  StdinContext.displayName = "InternalStdinContext";
25879
25884
  //#endregion
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
25885
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-stdin.js
25881
25886
  /**
25882
25887
  * React hook exposing the stdin stream and raw-mode helpers from `StdinContext`.
25883
25888
  * @returns the `StdinContext` value.
25884
25889
  */
25885
25890
  const useStdin = () => (0, import_react.useContext)(StdinContext);
25886
25891
  //#endregion
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
25892
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/ansi.js
25888
25893
  /**
25889
25894
  * ANSI Control Characters and Escape Sequence Introducers
25890
25895
  *
@@ -25958,7 +25963,7 @@ function isEscFinal(byte) {
25958
25963
  return byte >= 48 && byte <= 126;
25959
25964
  }
25960
25965
  //#endregion
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
25966
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/csi.js
25962
25967
  /**
25963
25968
  * CSI (Control Sequence Introducer) Types
25964
25969
  *
@@ -26281,7 +26286,7 @@ const ENABLE_WIN32_INPUT_MODE = csi("?9001h");
26281
26286
  */
26282
26287
  const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
26283
26288
  //#endregion
26284
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
26289
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
26285
26290
  /**
26286
26291
  * Minimal terminal-environment shim for the ported Ink core. The original
26287
26292
  * module computed a richer `env` object from the Claude Code app context; the
@@ -26290,7 +26295,7 @@ const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
26290
26295
  */
26291
26296
  const env$1 = { terminal: (process.env.TERM_PROGRAM ?? process.env.TERM ?? "unknown").toLowerCase() };
26292
26297
  //#endregion
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
26298
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/osc.js
26294
26299
  /**
26295
26300
  * OSC (Operating System Command) Types and Parser
26296
26301
  */
@@ -26686,7 +26691,7 @@ function supportsTabStatus() {
26686
26691
  return process.env.USER_TYPE === "ant";
26687
26692
  }
26688
26693
  //#endregion
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
26694
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-querier.js
26690
26695
  /**
26691
26696
  * Query the terminal and await responses without timeouts.
26692
26697
  *
@@ -26761,6 +26766,10 @@ var TerminalQuerier = class {
26761
26766
  * before it — concurrent batches from independent callers stay isolated.
26762
26767
  */
26763
26768
  queue = [];
26769
+ /** Whether a reply may begin with a fragmented ESC on stdin. */
26770
+ get awaitingResponse() {
26771
+ return this.queue.length > 0;
26772
+ }
26764
26773
  /**
26765
26774
  * Set by dispose(). Post-dispose send()/flush() must not touch the
26766
26775
  * terminal: they would re-enable raw mode (holdRawMode) and emit query
@@ -26872,7 +26881,7 @@ var TerminalQuerier = class {
26872
26881
  }
26873
26882
  };
26874
26883
  //#endregion
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
26884
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemeProvider.js
26876
26885
  /**
26877
26886
  * Theme provider with terminal-background auto-detection. With no explicit
26878
26887
  * `theme` prop, no CHATCODE_CLI_TUI_THEME override and no persisted choice
@@ -27071,7 +27080,7 @@ function useTheme() {
27071
27080
  return [theme, setTheme];
27072
27081
  }
27073
27082
  //#endregion
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
27083
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settingsEditor.js
27075
27084
  /**
27076
27085
  * React-free form model behind the `/settings` screen (issue #165), mirroring
27077
27086
  * the web front door's card-form.ts semantics: a section stages what the user
@@ -27321,7 +27330,7 @@ var SettingsForm = class {
27321
27330
  }
27322
27331
  };
27323
27332
  //#endregion
27324
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
27333
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
27325
27334
  /**
27326
27335
  * `/reload` planning — the pi-style soft reload: re-read the TUI's persisted
27327
27336
  * preference files (`~/.chatcode-cli/tui/{theme,lang,agent-preset,model,
@@ -28170,7 +28179,7 @@ var SignalExit = class extends SignalExitBase {
28170
28179
  const process$2 = globalThis.process;
28171
28180
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
28172
28181
  //#endregion
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
28182
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/enums.js
28174
28183
  /**
28175
28184
  * Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
28176
28185
  * Kept as `const` objects (not TS enums) per repo convention.
@@ -28302,7 +28311,7 @@ const Wrap = {
28302
28311
  WrapReverse: 2
28303
28312
  };
28304
28313
  //#endregion
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
28314
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/index.js
28306
28315
  /**
28307
28316
  * Pure-TypeScript port of yoga-layout (Meta's flexbox engine).
28308
28317
  *
@@ -30753,7 +30762,7 @@ Object.defineProperties(createChalk.prototype, {
30753
30762
  const chalk = createChalk();
30754
30763
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
30755
30764
  //#endregion
30756
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
30765
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
30757
30766
  /**
30758
30767
  * xterm.js (VS Code, Cursor, code-server, Coder) has supported truecolor
30759
30768
  * since 2017, but code-server/Coder containers often don't set
@@ -30884,7 +30893,7 @@ function applyColor(text, color) {
30884
30893
  return colorize(text, color, "foreground");
30885
30894
  }
30886
30895
  //#endregion
30887
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
30896
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
30888
30897
  /**
30889
30898
  * Environment truthiness check for the ported Ink core. Accepts the common
30890
30899
  * shell truthy spellings (`1`, `true`, `yes`, `on`).
@@ -30902,7 +30911,7 @@ function isEnvTruthy(value) {
30902
30911
  ].includes(value.toLowerCase());
30903
30912
  }
30904
30913
  //#endregion
30905
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
30914
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
30906
30915
  /**
30907
30916
  * Whether mouse click handling is disabled for the ported Ink core. dsh-tui
30908
30917
  * reads its own env flag (`CHATCODE_CLI_TUI_DISABLE_MOUSE`); the original module
@@ -30913,7 +30922,7 @@ function isMouseClicksDisabled() {
30913
30922
  return isEnvTruthy(readTuiEnv("DISABLE_MOUSE"));
30914
30923
  }
30915
30924
  //#endregion
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
30925
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/input-suppression.js
30917
30926
  /**
30918
30927
  * Input suppression window for terminal handoffs (issue #123): when stdin is
30919
30928
  * handed to an external TUI (full-screen editor) and back, the tty can
@@ -30940,7 +30949,7 @@ function isInputSuppressed() {
30940
30949
  return Date.now() < suppressedUntil;
30941
30950
  }
30942
30951
  //#endregion
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
30952
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/tokenize.js
30944
30953
  /**
30945
30954
  * Input Tokenizer - Escape sequence boundary detection
30946
30955
  *
@@ -31138,7 +31147,7 @@ function tokenize$2(input, initialState, initialBuffer, flush, x10Mouse, splitIn
31138
31147
  };
31139
31148
  }
31140
31149
  //#endregion
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
31150
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/parse-keypress.js
31142
31151
  /**
31143
31152
  * Keyboard input parser - converts terminal input to key events
31144
31153
  *
@@ -31156,6 +31165,8 @@ const SGR_MOUSE_PREFIX_RE = /^\[<\d+(?:;\d*){0,2}$/;
31156
31165
  const SGR_MOUSE_TAIL_RE = /^\[<\d+;\d+;\d+[Mm]$/;
31157
31166
  const SGR_MOUSE_TAIL_PREFIX_RE = /^\[<\d+;\d+;\d+[Mm]/;
31158
31167
  const MOUSE_TAIL_HOLD_GRACE_MS = 1e3;
31168
+ const PROTOCOL_HOLD_GRACE_MS = 1e3;
31169
+ const MAX_PROTOCOL_LENGTH = 4096;
31159
31170
  const WIN32_CS_ALT = 3;
31160
31171
  const WIN32_CS_CTRL = 12;
31161
31172
  const WIN32_CS_SHIFT = 16;
@@ -31563,7 +31574,8 @@ function parseReassembledWin32Protocol(sequence) {
31563
31574
  if (mouse) return mouse;
31564
31575
  if (SGR_MOUSE_RE.test(sequence) || sequence.length === 6 && sequence.startsWith("\x1B[M")) return parseKeypress(sequence);
31565
31576
  const key = parseKeypress(sequence);
31566
- if (key.name && FN_KEY_RE.test(sequence)) return key;
31577
+ if (sequence === "\x1B[I" || sequence === "\x1B[O") return key;
31578
+ if (key.name && (FN_KEY_RE.test(sequence) || CSI_U_RE.test(sequence) || MODIFY_OTHER_KEYS_RE.test(sequence))) return key;
31567
31579
  return null;
31568
31580
  }
31569
31581
  function feedWin32Protocol(state, key) {
@@ -31572,19 +31584,38 @@ function feedWin32Protocol(state, key) {
31572
31584
  if (ch !== "\x1B") return [key];
31573
31585
  state.held.push(key);
31574
31586
  state.sequence = ch;
31587
+ state.startedAt = Date.now();
31575
31588
  return [];
31576
31589
  }
31577
31590
  if (ch === void 0) {
31578
- const held = state.held;
31591
+ const held = state.sequence === "\x1B" ? state.held : [];
31579
31592
  state.held = [];
31580
31593
  state.sequence = "";
31581
31594
  return [...held, ...feedWin32Protocol(state, key)];
31582
31595
  }
31596
+ const isString = state.sequence.startsWith("\x1B]") || state.sequence.startsWith("\x1BP") || state.sequence.startsWith("\x1B_");
31597
+ if (ch === "\x1B" && !isString) {
31598
+ state.held = [];
31599
+ state.sequence = "";
31600
+ return feedWin32Protocol(state, key);
31601
+ }
31583
31602
  state.held.push(key);
31584
31603
  state.sequence += ch;
31585
31604
  const sequence = state.sequence;
31586
31605
  if (sequence === "\x1B" || sequence === "\x1B[" || sequence === "\x1BO") return [];
31587
- if (!sequence.startsWith("\x1B[") && !sequence.startsWith("\x1BO") || sequence.length > 64) {
31606
+ if (isString || sequence === "\x1B]" || sequence === "\x1BP" || sequence === "\x1B_") {
31607
+ if (sequence.length <= MAX_PROTOCOL_LENGTH && !sequence.endsWith("\x07") && !sequence.endsWith("\x1B\\")) return [];
31608
+ state.held = [];
31609
+ state.sequence = "";
31610
+ const parsed = parseReassembledWin32Protocol(sequence);
31611
+ return parsed ? [parsed] : [];
31612
+ }
31613
+ if (sequence.length > 64) {
31614
+ state.held = [];
31615
+ state.sequence = "";
31616
+ return [];
31617
+ }
31618
+ if (!sequence.startsWith("\x1B[") && !sequence.startsWith("\x1BO")) {
31588
31619
  const held = state.held;
31589
31620
  state.held = [];
31590
31621
  state.sequence = "";
@@ -31592,20 +31623,18 @@ function feedWin32Protocol(state, key) {
31592
31623
  }
31593
31624
  if (sequence.startsWith("\x1B[M")) {
31594
31625
  if (sequence.length < 6) return [];
31595
- const held = state.held;
31596
31626
  state.held = [];
31597
31627
  state.sequence = "";
31598
31628
  const parsed = sequence.length === 6 ? parseReassembledWin32Protocol(sequence) : null;
31599
- return parsed ? [parsed] : held;
31629
+ return parsed ? [parsed] : [];
31600
31630
  }
31601
31631
  const code = ch.charCodeAt(0);
31602
31632
  if (code >= 32 && code <= 63) return [];
31603
31633
  if (code >= 64 && code <= 126) {
31604
- const held = state.held;
31605
31634
  state.held = [];
31606
31635
  state.sequence = "";
31607
31636
  const parsed = parseReassembledWin32Protocol(sequence);
31608
- return parsed ? [parsed] : held;
31637
+ return parsed ? [parsed] : [];
31609
31638
  }
31610
31639
  const held = state.held;
31611
31640
  state.held = [];
@@ -31637,16 +31666,28 @@ function inputToString(input) {
31637
31666
  * events, and terminal responses, maintaining paste-mode state.
31638
31667
  * @param prevState - the state returned by the previous call, or INITIAL_STATE.
31639
31668
  * @param input - the input chunk; null flushes the tokenizer's pending input.
31669
+ * @param options - protect a lone reply ESC while the terminal owes a response.
31640
31670
  * @returns the parsed inputs plus the state to pass to the next call.
31641
31671
  */
31642
- function parseMultipleKeypresses(prevState, input = "") {
31672
+ function parseMultipleKeypresses(prevState, input = "", options) {
31643
31673
  const isFlush = input === null;
31644
31674
  const inputString = isFlush ? "" : inputToString(input);
31645
31675
  const tokenizer = prevState._tokenizer ?? createTokenizer({
31646
31676
  x10Mouse: true,
31647
31677
  splitInputControls: true
31648
31678
  });
31649
- const tokens = isFlush ? tokenizer.flush() : tokenizer.feed(inputString);
31679
+ const buffered = tokenizer.buffer();
31680
+ let protocolStartedAt = prevState.protocolStartedAt;
31681
+ const structured = prevState.mode !== "IN_PASTE" && !buffered.startsWith("\x1B[<") && (/^\x1b(?:\[|O|\]|P|_)/.test(buffered) || buffered === "\x1B" && options?.awaitingResponse === true);
31682
+ let expiredEscape = [];
31683
+ if (structured && (buffered.length > MAX_PROTOCOL_LENGTH || Date.now() - (protocolStartedAt ?? Date.now()) >= PROTOCOL_HOLD_GRACE_MS)) {
31684
+ if (buffered === "\x1B") expiredEscape = tokenizer.flush();
31685
+ else tokenizer.reset();
31686
+ protocolStartedAt = void 0;
31687
+ }
31688
+ const tokens = [...expiredEscape, ...isFlush ? structured ? [] : tokenizer.flush() : tokenizer.feed(inputString)];
31689
+ if (!tokenizer.buffer()) protocolStartedAt = void 0;
31690
+ else protocolStartedAt ??= Date.now();
31650
31691
  const keys = [];
31651
31692
  let inPaste = prevState.mode === "IN_PASTE";
31652
31693
  let pasteBuffer = prevState.pasteBuffer;
@@ -31664,6 +31705,11 @@ function parseMultipleKeypresses(prevState, input = "") {
31664
31705
  held: [],
31665
31706
  sequence: ""
31666
31707
  };
31708
+ if (win32Protocol.held.length > 0 && Date.now() - (win32Protocol.startedAt ?? 0) >= PROTOCOL_HOLD_GRACE_MS) {
31709
+ if (win32Protocol.sequence === "\x1B") keys.push(...win32Protocol.held);
31710
+ win32Protocol.held = [];
31711
+ win32Protocol.sequence = "";
31712
+ }
31667
31713
  let mouseTailHold = prevState.mouseTailHold;
31668
31714
  let mouseTailHoldAt = prevState.mouseTailHoldAt;
31669
31715
  if (mouseTailHold !== void 0 && Date.now() - (mouseTailHoldAt ?? 0) > MOUSE_TAIL_HOLD_GRACE_MS) {
@@ -31720,7 +31766,8 @@ function parseMultipleKeypresses(prevState, input = "") {
31720
31766
  } else {
31721
31767
  mouseTailHold = void 0;
31722
31768
  mouseTailHoldAt = void 0;
31723
- keys.push(parseKeypress(token.value));
31769
+ const key = parseKeypress(token.value);
31770
+ if (key.name || !/^\x1b(?:\[|O|\]|P|_)/.test(token.value) || token.value === "\x1B[I" || token.value === "\x1B[O") keys.push(key);
31724
31771
  }
31725
31772
  }
31726
31773
  }
@@ -31779,15 +31826,10 @@ function parseMultipleKeypresses(prevState, input = "") {
31779
31826
  win32Paste.held = [];
31780
31827
  win32Paste.matched = 0;
31781
31828
  } else if (isFlush && win32Paste.held.length > 0) {
31782
- keys.push(...win32Paste.held);
31829
+ for (const key of win32Paste.held) keys.push(...feedWin32Protocol(win32Protocol, key));
31783
31830
  win32Paste.held = [];
31784
31831
  win32Paste.matched = 0;
31785
31832
  }
31786
- if (isFlush && win32Protocol.held.length > 0) {
31787
- if (!(win32Protocol.sequence.startsWith("\x1B[<") || win32Protocol.sequence.startsWith("\x1B[M"))) keys.push(...win32Protocol.held);
31788
- win32Protocol.held = [];
31789
- win32Protocol.sequence = "";
31790
- }
31791
31833
  return [keys, {
31792
31834
  mode: inPaste ? "IN_PASTE" : "NORMAL",
31793
31835
  incomplete: tokenizer.buffer() || (win32Paste.held.length > 0 || win32Paste.active || win32Protocol.held.length > 0 || mouseTailHold !== void 0 ? "\x1B" : ""),
@@ -31798,7 +31840,8 @@ function parseMultipleKeypresses(prevState, input = "") {
31798
31840
  win32Protocol,
31799
31841
  mouseTailHold,
31800
31842
  mouseTailHoldAt,
31801
- _tokenizer: tokenizer
31843
+ _tokenizer: tokenizer,
31844
+ protocolStartedAt
31802
31845
  }];
31803
31846
  }
31804
31847
  const keyName = {
@@ -32213,7 +32256,7 @@ function createWheelKey(s, name, col, row, button) {
32213
32256
  };
32214
32257
  }
32215
32258
  //#endregion
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
32259
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/input-event.js
32217
32260
  function parseKey(keypress) {
32218
32261
  const key = {
32219
32262
  upArrow: keypress.name === "up",
@@ -32298,7 +32341,7 @@ var InputEvent = class extends Event {
32298
32341
  }
32299
32342
  };
32300
32343
  //#endregion
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
32344
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-focus-event.js
32302
32345
  /**
32303
32346
  * Event fired when the terminal window gains or loses focus.
32304
32347
  *
@@ -32317,7 +32360,7 @@ var TerminalFocusEvent = class extends Event {
32317
32360
  }
32318
32361
  };
32319
32362
  //#endregion
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
32363
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/node-cache.js
32321
32364
  /** Layout bounds cached per rendered node, used for blitting and clearing. */
32322
32365
  const nodeCache = /* @__PURE__ */ new WeakMap();
32323
32366
  /** Rects of removed children that need clearing on next render */
@@ -32355,7 +32398,7 @@ function consumeAbsoluteRemovedFlag() {
32355
32398
  return had;
32356
32399
  }
32357
32400
  //#endregion
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
32401
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-event.js
32359
32402
  /**
32360
32403
  * Base class for all terminal events with DOM-style propagation.
32361
32404
  *
@@ -32484,7 +32527,7 @@ var TerminalEvent = class extends Event {
32484
32527
  _prepareForTarget(_target) {}
32485
32528
  };
32486
32529
  //#endregion
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
32530
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/pointer-event.js
32488
32531
  /**
32489
32532
  * Base class for pointer-derived terminal events (click, wheel, hover).
32490
32533
  *
@@ -32545,7 +32588,7 @@ var PointerEvent = class extends TerminalEvent {
32545
32588
  }
32546
32589
  };
32547
32590
  //#endregion
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
32591
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/drag-event.js
32549
32592
  /**
32550
32593
  * Component-level drag event (DOM HTML5 drag semantics subset).
32551
32594
  *
@@ -48653,7 +48696,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
48653
48696
  }, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
48654
48697
  }));
48655
48698
  //#endregion
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
48699
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/node.js
48657
48700
  var import_react_reconciler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
48658
48701
  if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
48659
48702
  else module.exports = require_react_reconciler_development();
@@ -48729,7 +48772,7 @@ const LayoutMeasureMode = {
48729
48772
  AtMost: "at-most"
48730
48773
  };
48731
48774
  //#endregion
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
48775
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/yoga.js
48733
48776
  const EDGE_MAP = {
48734
48777
  all: Edge.All,
48735
48778
  horizontal: Edge.Horizontal,
@@ -48956,7 +48999,7 @@ function createYogaLayoutNode() {
48956
48999
  return new YogaLayoutNode(YOGA_INSTANCE.Node.create());
48957
49000
  }
48958
49001
  //#endregion
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
49002
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/engine.js
48960
49003
  /**
48961
49004
  * Create a new layout node backed by the Yoga adapter.
48962
49005
  * @returns an empty layout node with no children, styles, or measure function.
@@ -48965,7 +49008,7 @@ function createLayoutNode() {
48965
49008
  return createYogaLayoutNode();
48966
49009
  }
48967
49010
  //#endregion
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
49011
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/line-width-cache.js
48969
49012
  const cache = /* @__PURE__ */ new Map();
48970
49013
  const MAX_CACHE_SIZE = 4096;
48971
49014
  const MAX_CACHE_CHARS = 1e5;
@@ -49001,7 +49044,7 @@ function lineWidth(line) {
49001
49044
  return width;
49002
49045
  }
49003
49046
  //#endregion
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
49047
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-text.js
49005
49048
  /**
49006
49049
  * Measure wrapped text dimensions in a single pass.
49007
49050
  * @param text - the text to measure.
@@ -49032,7 +49075,7 @@ function measureText(text, maxWidth) {
49032
49075
  };
49033
49076
  }
49034
49077
  //#endregion
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
49078
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/squash-text-nodes.js
49036
49079
  /**
49037
49080
  * Squash text nodes into styled segments, propagating styles down through the tree.
49038
49081
  * This allows structured styling without relying on ANSI string transforms.
@@ -49080,7 +49123,7 @@ function squashTextNodes(node) {
49080
49123
  return text;
49081
49124
  }
49082
49125
  //#endregion
49083
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
49126
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
49084
49127
  const DEFAULT_TAB_INTERVAL = 8;
49085
49128
  /**
49086
49129
  * Expand tab characters to spaces at fixed column intervals, preserving
@@ -49530,7 +49573,7 @@ function tokenize$1(str, endChar = Number.POSITIVE_INFINITY) {
49530
49573
  return ret;
49531
49574
  }
49532
49575
  //#endregion
49533
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
49576
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
49534
49577
  function isEndCode(code) {
49535
49578
  return code.code === code.endCode;
49536
49579
  }
@@ -50147,7 +50190,7 @@ function wrapAnsi$1(string, columns, options) {
50147
50190
  return normalizeText(String(string)).replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs$1(line), columns, options)).join("\n");
50148
50191
  }
50149
50192
  //#endregion
50150
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
50193
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
50151
50194
  const wrapAnsiBun = typeof Bun !== "undefined" && typeof Bun.wrapAnsi === "function" ? Bun.wrapAnsi : null;
50152
50195
  const SLOT_MIN_LENGTH = 2048;
50153
50196
  let slot = null;
@@ -50194,7 +50237,7 @@ function wrapAnsiNpmIncremental(input, columns, options) {
50194
50237
  */
50195
50238
  const wrapAnsi = wrapAnsiBun ?? wrapAnsiNpmIncremental;
50196
50239
  //#endregion
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
50240
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrap-text.js
50198
50241
  const ELLIPSIS = "…";
50199
50242
  const WRAP_CACHE_MAX_ENTRIES = 2048;
50200
50243
  const WRAP_CACHE_MAX_CHARS = 2e6;
@@ -50258,7 +50301,7 @@ function wrapText$1(text, maxWidth, wrapType) {
50258
50301
  return text;
50259
50302
  }
50260
50303
  //#endregion
50261
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
50304
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
50262
50305
  /**
50263
50306
  * Create an element node of the given kind, allocating its yoga layout node
50264
50307
  * unless the kind renders without layout (`ink-virtual-text`, `ink-link`,
@@ -50578,7 +50621,7 @@ function findOwnerChainAtRow(root, y) {
50578
50621
  }
50579
50622
  }
50580
50623
  //#endregion
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
50624
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event-handlers.js
50582
50625
  /**
50583
50626
  * Reverse lookup: event type string → handler prop names.
50584
50627
  * Used by the dispatcher for O(1) handler lookup per node.
@@ -50632,7 +50675,7 @@ const EVENT_HANDLER_PROPS = new Set([
50632
50675
  "onWheel"
50633
50676
  ]);
50634
50677
  //#endregion
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
50678
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/dispatcher.js
50636
50679
  function getHandler(node, eventType, capture) {
50637
50680
  const handlers = node._eventHandlers;
50638
50681
  if (!handlers) return void 0;
@@ -50800,7 +50843,7 @@ var Dispatcher = class {
50800
50843
  }
50801
50844
  };
50802
50845
  //#endregion
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
50846
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/focus-event.js
50804
50847
  /**
50805
50848
  * Focus event for component focus changes.
50806
50849
  *
@@ -50825,7 +50868,7 @@ var FocusEvent = class extends TerminalEvent {
50825
50868
  }
50826
50869
  };
50827
50870
  //#endregion
50828
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
50871
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
50829
50872
  const MAX_FOCUS_STACK = 32;
50830
50873
  /**
50831
50874
  * DOM-like focus manager for the Ink terminal UI.
@@ -50981,7 +51024,7 @@ function getFocusManager(node) {
50981
51024
  return getRootNode(node).focusManager;
50982
51025
  }
50983
51026
  //#endregion
50984
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
51027
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
50985
51028
  const applyPositionStyles = (node, style) => {
50986
51029
  if ("position" in style) node.setPositionType(style.position === "absolute" ? LayoutPositionType.Absolute : LayoutPositionType.Relative);
50987
51030
  if ("top" in style) applyPositionEdge(node, "top", style.top);
@@ -51116,7 +51159,7 @@ const styles = (node, style = {}, resolvedStyle) => {
51116
51159
  applyGapStyles(node, style);
51117
51160
  };
51118
51161
  //#endregion
51119
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
51162
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
51120
51163
  if (process.env.NODE_ENV === "development") try {
51121
51164
  import("./devtools-la_KkjCS.js");
51122
51165
  } catch (error) {
@@ -51436,7 +51479,7 @@ const reconciler = (0, import_react_reconciler.default)({
51436
51479
  });
51437
51480
  dispatcher.discreteUpdates = reconciler.discreteUpdates.bind(reconciler);
51438
51481
  //#endregion
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
51482
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/geometry.js
51440
51483
  /**
51441
51484
  * Compute the smallest rectangle containing both input rectangles.
51442
51485
  * @param a - the first rectangle.
@@ -51468,7 +51511,7 @@ function clamp(value, min, max) {
51468
51511
  return value;
51469
51512
  }
51470
51513
  //#endregion
51471
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
51514
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
51472
51515
  /**
51473
51516
  * Log a warning when a value is present but not an integer.
51474
51517
  * @param value - the value to check; undefined is skipped silently.
@@ -51480,7 +51523,7 @@ function ifNotInteger(value, name) {
51480
51523
  logForDebugging(`${name} should be an integer, got ${value}`, { level: "warn" });
51481
51524
  }
51482
51525
  //#endregion
51483
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
51526
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
51484
51527
  /**
51485
51528
  * Pool of character strings shared across all screens.
51486
51529
  * With a shared pool, interned char IDs are valid across screens, so
@@ -52549,7 +52592,7 @@ function markNoSelectRegion(screen, x, y, width, height) {
52549
52592
  }
52550
52593
  }
52551
52594
  //#endregion
52552
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
52595
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
52553
52596
  /**
52554
52597
  * Text selection state for fullscreen mode.
52555
52598
  *
@@ -53515,7 +53558,7 @@ function applySelectionOverlay(screen, selection, stylePool) {
53515
53558
  }
53516
53559
  }
53517
53560
  //#endregion
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
53561
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/dec.js
53519
53562
  /**
53520
53563
  * DEC (Digital Equipment Corporation) Private Mode Sequences
53521
53564
  *
@@ -53581,7 +53624,7 @@ const ENABLE_MOUSE_TRACKING = decset(DEC.MOUSE_NORMAL) + decset(DEC.MOUSE_BUTTON
53581
53624
  /** Disable all mouse tracking modes enabled by ENABLE_MOUSE_TRACKING. */
53582
53625
  const DISABLE_MOUSE_TRACKING = decreset(DEC.MOUSE_SGR) + decreset(DEC.MOUSE_ANY) + decreset(DEC.MOUSE_BUTTON) + decreset(DEC.MOUSE_NORMAL);
53583
53626
  //#endregion
53584
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
53627
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
53585
53628
  /**
53586
53629
  * True when running inside a JetBrains IDE terminal (JediTerm). The IDE
53587
53630
  * injects `TERMINAL_EMULATOR=JetBrains-JediTerm` into the pty environment of
@@ -53823,7 +53866,7 @@ function writeDiffToTerminal(terminal, diff, skipSyncMarkers = false) {
53823
53866
  terminal.stdout.write(buffer);
53824
53867
  }
53825
53868
  //#endregion
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
53869
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-focus-state.js
53827
53870
  let focusState = "unknown";
53828
53871
  const resolvers = /* @__PURE__ */ new Set();
53829
53872
  const subscribers = /* @__PURE__ */ new Set();
@@ -53867,7 +53910,7 @@ function subscribeTerminalFocus(cb) {
53867
53910
  };
53868
53911
  }
53869
53912
  //#endregion
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
53913
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AppContext.js
53871
53914
  /**
53872
53915
  * `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
53873
53916
  */
@@ -53912,13 +53955,13 @@ var require_react_compiler_runtime_development = /* @__PURE__ */ __commonJSMin((
53912
53955
  })();
53913
53956
  }));
53914
53957
  //#endregion
53915
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
53958
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
53916
53959
  var import_compiler_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
53917
53960
  if (process.env.NODE_ENV === "production") module.exports = require_react_compiler_runtime_production();
53918
53961
  else module.exports = require_react_compiler_runtime_development();
53919
53962
  })))();
53920
53963
  //#endregion
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
53964
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/geometry-trace.js
53922
53965
  /**
53923
53966
  * Geometry forensics — per-frame scroll-geometry trace (issues #421/#433).
53924
53967
  *
@@ -53998,7 +54041,7 @@ function endGeometryFrame(durationMs) {
53998
54041
  };
53999
54042
  }
54000
54043
  //#endregion
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
54044
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalFocusContext.js
54002
54045
  const TerminalFocusContext = (0, import_react.createContext)({
54003
54046
  isTerminalFocused: true,
54004
54047
  terminalFocusState: "unknown"
@@ -54033,7 +54076,7 @@ function TerminalFocusProvider(t0) {
54033
54076
  return t2;
54034
54077
  }
54035
54078
  //#endregion
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
54079
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-focus.js
54037
54080
  /**
54038
54081
  * Hook to check if the terminal has focus.
54039
54082
  *
@@ -54048,7 +54091,7 @@ function useTerminalFocus() {
54048
54091
  return isTerminalFocused;
54049
54092
  }
54050
54093
  //#endregion
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
54094
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ClockContext.js
54052
54095
  function createClock(tickIntervalMs) {
54053
54096
  const subscribers = /* @__PURE__ */ new Map();
54054
54097
  let interval = null;
@@ -54145,7 +54188,7 @@ function _temp() {
54145
54188
  return createClock(16);
54146
54189
  }
54147
54190
  //#endregion
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
54191
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/CursorDeclarationContext.js
54149
54192
  /**
54150
54193
  * React context that provides the cursor-declaration setter to descendants.
54151
54194
  */
@@ -54185,7 +54228,7 @@ var require_escape_string_regexp = /* @__PURE__ */ __commonJSMin(((exports, modu
54185
54228
  };
54186
54229
  }));
54187
54230
  //#endregion
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
54231
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Box.js
54189
54232
  var import_stack_utils = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
54190
54233
  const escapeStringRegexp = require_escape_string_regexp();
54191
54234
  const cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
@@ -54553,7 +54596,7 @@ function Box(t0) {
54553
54596
  return t4;
54554
54597
  }
54555
54598
  //#endregion
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
54599
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Text.js
54557
54600
  const memoizedStylesForWrap = {
54558
54601
  wrap: {
54559
54602
  flexGrow: 0,
@@ -54705,7 +54748,7 @@ function Text(t0) {
54705
54748
  return t16;
54706
54749
  }
54707
54750
  //#endregion
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
54751
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ErrorOverview.js
54709
54752
  const cleanupPath = (path) => {
54710
54753
  return path?.replace(`file://${process.cwd()}/`, "");
54711
54754
  };
@@ -54810,10 +54853,10 @@ function ErrorOverview({ error }) {
54810
54853
  });
54811
54854
  }
54812
54855
  //#endregion
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
54856
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalSizeContext.js
54814
54857
  const TerminalSizeContext = (0, import_react.createContext)(null);
54815
54858
  //#endregion
54816
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
54859
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
54817
54860
  /**
54818
54861
  * React context providing a raw terminal write function. Null until a
54819
54862
  * TerminalWriteProvider is mounted.
@@ -54824,7 +54867,7 @@ const TerminalWriteContext = (0, import_react.createContext)(null);
54824
54867
  */
54825
54868
  const TerminalWriteProvider = TerminalWriteContext.Provider;
54826
54869
  //#endregion
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
54870
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/App.js
54828
54871
  const SUPPORTS_SUSPEND = process.platform !== "win32";
54829
54872
  const STDIN_RESUME_GAP_MS = 5e3;
54830
54873
  const MULTI_CLICK_TIMEOUT_MS = 500;
@@ -55049,7 +55092,7 @@ var App = class extends import_react.PureComponent {
55049
55092
  this.processInput(null);
55050
55093
  };
55051
55094
  processInput = (input) => {
55052
- const [keys, newState] = parseMultipleKeypresses(this.keyParseState, input);
55095
+ const [keys, newState] = parseMultipleKeypresses(this.keyParseState, input, { awaitingResponse: this.querier.awaitingResponse });
55053
55096
  const hadCandidate = this.keyParseState.mouseTailHold !== void 0 || this.keyParseState.incomplete.startsWith("\x1B[<");
55054
55097
  const hasCandidate = newState.mouseTailHold !== void 0 || newState.incomplete.startsWith("\x1B[<");
55055
55098
  if (!hadCandidate && hasCandidate) this.props.onProtocolCandidateChange?.(true);
@@ -55350,7 +55393,7 @@ function handleMouseEvent(app, m) {
55350
55393
  }
55351
55394
  }
55352
55395
  //#endregion
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
55396
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/keyboard-event.js
55354
55397
  /**
55355
55398
  * Keyboard event dispatched through the DOM tree via capture/bubble.
55356
55399
  *
@@ -55410,7 +55453,7 @@ function keyFromParsed(parsed) {
55410
55453
  return name || seq;
55411
55454
  }
55412
55455
  //#endregion
55413
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
55456
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
55414
55457
  /**
55415
55458
  * Create an empty frame with a zero-size screen, the given viewport, and a
55416
55459
  * visible cursor at the origin.
@@ -55436,7 +55479,7 @@ function emptyFrame(rows, columns, stylePool, charPool, hyperlinkPool) {
55436
55479
  };
55437
55480
  }
55438
55481
  //#endregion
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
55482
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/click-event.js
55440
55483
  /**
55441
55484
  * Mouse click event. Fired on left-button release without drag, only when
55442
55485
  * mouse tracking is enabled (i.e. inside <AlternateScreen>).
@@ -55467,7 +55510,7 @@ var ClickEvent = class extends PointerEvent {
55467
55510
  }
55468
55511
  };
55469
55512
  //#endregion
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
55513
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/context-menu-event.js
55471
55514
  /**
55472
55515
  * Mouse context-menu event. Fired on right-button press (SGR button 2,
55473
55516
  * low bits of the raw button byte), mirroring the DOM `contextmenu` event
@@ -55491,7 +55534,7 @@ var ContextMenuEvent = class extends PointerEvent {
55491
55534
  }
55492
55535
  };
55493
55536
  //#endregion
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
55537
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/wheel-event.js
55495
55538
  /**
55496
55539
  * Mouse wheel event dispatched to the ScrollBox under the pointer.
55497
55540
  *
@@ -55527,7 +55570,7 @@ function indentString(string, count = 1, options = {}) {
55527
55570
  return string.replace(regex, indent.repeat(count));
55528
55571
  }
55529
55572
  //#endregion
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
55573
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/get-max-width.js
55531
55574
  /**
55532
55575
  * Returns the yoga node's content width (computed width minus padding and
55533
55576
  * border).
@@ -55632,7 +55675,7 @@ var cli_boxes_default = {
55632
55675
  }
55633
55676
  };
55634
55677
  //#endregion
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
55678
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-border.js
55636
55679
  /** Built-in border styles beyond those provided by cli-boxes. */
55637
55680
  const CUSTOM_BORDER_STYLES = { dashed: {
55638
55681
  top: "╌",
@@ -55722,7 +55765,7 @@ const renderBorder = (x, y, node, output) => {
55722
55765
  }
55723
55766
  };
55724
55767
  //#endregion
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
55768
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/widest-line.js
55726
55769
  /**
55727
55770
  * Get the display width of the widest line in a string.
55728
55771
  * @param string - the text to measure, possibly containing newlines.
@@ -55741,7 +55784,7 @@ function widestLine(string) {
55741
55784
  return maxWidth;
55742
55785
  }
55743
55786
  //#endregion
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
55787
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-node-to-output.js
55745
55788
  function isXtermJsHost() {
55746
55789
  return process.env.TERM_PROGRAM === "vscode" || isXtermJs();
55747
55790
  }
@@ -56557,7 +56600,7 @@ function dropSubtreeCache(node) {
56557
56600
  for (const child of node.childNodes) if (child.nodeName !== "#text") dropSubtreeCache(child);
56558
56601
  }
56559
56602
  //#endregion
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
56603
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hit-test.js
56561
56604
  /**
56562
56605
  * Find the deepest DOM element whose rendered rect contains (col, row).
56563
56606
  *
@@ -56947,7 +56990,7 @@ function dispatchHover(root, col, row, hovered) {
56947
56990
  }
56948
56991
  }
56949
56992
  //#endregion
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
56993
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/flush-tick.js
56951
56994
  /**
56952
56995
  * Monotonic terminal-flush counter for the ported Ink core.
56953
56996
  *
@@ -56980,7 +57023,7 @@ function getTerminalFlushTick() {
56980
57023
  return flushTick;
56981
57024
  }
56982
57025
  //#endregion
56983
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
57026
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
56984
57027
  /**
56985
57028
  * Live Ink instances keyed by their output stream, so consecutive render()
56986
57029
  * calls reuse the instance for a stream instead of creating a new one.
@@ -56989,7 +57032,7 @@ function getTerminalFlushTick() {
56989
57032
  */
56990
57033
  const instances = /* @__PURE__ */ new Map();
56991
57034
  //#endregion
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
57035
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/log-update.js
56993
57036
  const CARRIAGE_RETURN = { type: "carriageReturn" };
56994
57037
  const NEWLINE = {
56995
57038
  type: "stdout",
@@ -57626,7 +57669,7 @@ var VirtualScreen = class {
57626
57669
  }
57627
57670
  };
57628
57671
  //#endregion
57629
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
57672
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
57630
57673
  /**
57631
57674
  * Optimize a diff by applying all optimization rules in a single pass.
57632
57675
  * This reduces the number of patches that need to be written to the terminal.
@@ -57691,7 +57734,7 @@ function optimize(diff) {
57691
57734
  return result;
57692
57735
  }
57693
57736
  //#endregion
57694
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
57737
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
57695
57738
  var import_bidi = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
57696
57739
  (function(global, factory) {
57697
57740
  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());
@@ -58467,7 +58510,7 @@ function hasRTLCharacters(text) {
58467
58510
  return /[\u0590-\u05FF\uFB1D-\uFB4F\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF\u0780-\u07BF\u0700-\u074F]/u.test(text);
58468
58511
  }
58469
58512
  //#endregion
58470
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
58513
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
58471
58514
  /**
58472
58515
  * charCache bounds. The entry-count cap alone was not enough: a streaming
58473
58516
  * line produces a NEW cache key on every frame, and each entry's cost is
@@ -59137,7 +59180,7 @@ function writeLineToScreen(screen, line, x, y, screenWidth, stylePool, charCache
59137
59180
  return offsetX;
59138
59181
  }
59139
59182
  //#endregion
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
59183
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-to-screen.js
59141
59184
  const timing = {
59142
59185
  reconcile: 0,
59143
59186
  yoga: 0,
@@ -59231,7 +59274,7 @@ function applyPositionedHighlight(screen, stylePool, positions, rowOffset, curre
59231
59274
  return true;
59232
59275
  }
59233
59276
  //#endregion
59234
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
59277
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
59235
59278
  /**
59236
59279
  * Create the renderer function for a root DOM node. The returned renderer
59237
59280
  * reuses an Output across frames so its character cache persists.
@@ -59306,7 +59349,7 @@ function createRenderer(node, stylePool) {
59306
59349
  };
59307
59350
  }
59308
59351
  //#endregion
59309
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
59352
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
59310
59353
  /**
59311
59354
  * Highlight all visible occurrences of `query` in the screen buffer by
59312
59355
  * inverting cell styles (SGR 7). Post-render, same damage-tracking machinery
@@ -59368,7 +59411,7 @@ function applySearchHighlight(screen, query, stylePool) {
59368
59411
  return applied;
59369
59412
  }
59370
59413
  //#endregion
59371
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
59414
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
59372
59415
  const ALT_SCREEN_ANCHOR_CURSOR = Object.freeze({
59373
59416
  x: 0,
59374
59417
  y: 0,
@@ -60921,7 +60964,7 @@ const CONSOLE_STDERR_METHODS = [
60921
60964
  "trace"
60922
60965
  ];
60923
60966
  //#endregion
60924
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
60967
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
60925
60968
  /**
60926
60969
  * Mount a component and render the output.
60927
60970
  * @param node - the React element to render.
@@ -61004,7 +61047,7 @@ const getInstance = (stdout, createInstance) => {
61004
61047
  return instance;
61005
61048
  };
61006
61049
  //#endregion
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
61050
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedBox.js
61008
61051
  /** Resolves a color value that may be a theme key to a raw Color. */
61009
61052
  function resolveColor$1(color, theme) {
61010
61053
  if (!color) return void 0;
@@ -61029,7 +61072,7 @@ function ThemedBox({ borderColor, borderTopColor, borderBottomColor, borderLeftC
61029
61072
  });
61030
61073
  }
61031
61074
  //#endregion
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
61075
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedText.js
61033
61076
  /**
61034
61077
  * Colors uncolored ThemedText in the subtree. Precedence: explicit `color` >
61035
61078
  * this > dimColor (in the Claude Code visual language, where message rows
@@ -61065,7 +61108,7 @@ function ThemedText({ color, backgroundColor, dimColor = false, bold = false, it
61065
61108
  });
61066
61109
  }
61067
61110
  //#endregion
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
61111
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Spacer.js
61069
61112
  /**
61070
61113
  * A flexible space that expands along the major axis of its containing layout.
61071
61114
  * It's useful as a shortcut for filling all the available spaces between elements.
@@ -61080,7 +61123,7 @@ function Spacer() {
61080
61123
  return t0;
61081
61124
  }
61082
61125
  //#endregion
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
61126
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Newline.js
61084
61127
  /**
61085
61128
  * Adds one or more newline (\n) characters. Must be used within <Text> components.
61086
61129
  */
@@ -61103,7 +61146,7 @@ function Newline(t0) {
61103
61146
  return t3;
61104
61147
  }
61105
61148
  //#endregion
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
61149
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/NoSelect.js
61107
61150
  /**
61108
61151
  * Marks its contents as non-selectable in fullscreen text selection.
61109
61152
  * Cells inside this box are skipped by both the selection highlight and
@@ -61154,7 +61197,7 @@ function NoSelect(t0) {
61154
61197
  return t2;
61155
61198
  }
61156
61199
  //#endregion
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
61200
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AlternateScreen.js
61158
61201
  /**
61159
61202
  * Run children in the terminal's alternate screen buffer, constrained to
61160
61203
  * the viewport height. While mounted:
@@ -61229,7 +61272,7 @@ function AlternateScreen(t0) {
61229
61272
  return t5;
61230
61273
  }
61231
61274
  //#endregion
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
61275
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ScrollBox.js
61233
61276
  /**
61234
61277
  * A Box with `overflow: scroll` and an imperative scroll API.
61235
61278
  *
@@ -61407,7 +61450,7 @@ function ScrollBox({ children, ref, stickyScroll, ...style }) {
61407
61450
  });
61408
61451
  }
61409
61452
  //#endregion
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
61453
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-input.js
61411
61454
  /**
61412
61455
  * Keep an event listener stable while always dispatching to the latest render's
61413
61456
  * callback. Keeping this hook local is important for packaged installs: a
@@ -61473,7 +61516,7 @@ const useInput = (inputHandler, options = {}) => {
61473
61516
  }, [internal_eventEmitter, handleData]);
61474
61517
  };
61475
61518
  //#endregion
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
61519
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-selection.js
61477
61520
  /**
61478
61521
  * Access to text selection operations on the Ink instance (fullscreen only).
61479
61522
  * Returns no-op functions when fullscreen mode is disabled.
@@ -61513,7 +61556,7 @@ function useSelection() {
61513
61556
  }, [ink]);
61514
61557
  }
61515
61558
  //#endregion
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
61559
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-copy-on-select.js
61517
61560
  /**
61518
61561
  * Copy-on-select: when a drag finishes (or a double/triple click, or a
61519
61562
  * shift+arrow extension, lands a selection), copy the selected text to the
@@ -61553,14 +61596,14 @@ function useCopyOnSelect(onCopied) {
61553
61596
  ]);
61554
61597
  }
61555
61598
  //#endregion
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
61599
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-app.js
61557
61600
  /**
61558
61601
  * React hook exposing the manual app-exit function from `AppContext`.
61559
61602
  * @returns the `AppContext` value, whose `exit` function unmounts the app.
61560
61603
  */
61561
61604
  const useApp = () => (0, import_react.useContext)(AppContext);
61562
61605
  //#endregion
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
61606
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-viewport.js
61564
61607
  /**
61565
61608
  * Hook to detect if a component is within the terminal viewport.
61566
61609
  *
@@ -61614,7 +61657,7 @@ function useTerminalViewport() {
61614
61657
  return [setElement, entryRef.current];
61615
61658
  }
61616
61659
  //#endregion
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
61660
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-animation-frame.js
61618
61661
  /**
61619
61662
  * Hook for synchronized animations that pause when offscreen.
61620
61663
  *
@@ -61663,7 +61706,7 @@ function useAnimationFrame(intervalMs = 16) {
61663
61706
  return [viewportRef, time];
61664
61707
  }
61665
61708
  //#endregion
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
61709
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-size.js
61667
61710
  /** Terminal dimensions from the Ink app shell (from Claude Code).
61668
61711
  * @returns the current terminal dimensions.
61669
61712
  */
@@ -61673,7 +61716,7 @@ function useTerminalSize() {
61673
61716
  return size;
61674
61717
  }
61675
61718
  //#endregion
61676
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
61719
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
61677
61720
  const BLINK_INTERVAL_MS = 600;
61678
61721
  /**
61679
61722
  * Hook for synchronized blinking animations that pause when offscreen
@@ -61690,7 +61733,7 @@ function useBlink(enabled, intervalMs = BLINK_INTERVAL_MS) {
61690
61733
  return [ref, Math.floor(time / intervalMs) % 2 === 0];
61691
61734
  }
61692
61735
  //#endregion
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
61736
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/supports-hyperlinks.js
61694
61737
  var import_supports_hyperlinks = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
61695
61738
  const supportsColor = require_supports_color();
61696
61739
  const hasFlag = require_has_flag();
@@ -61787,7 +61830,7 @@ function supportsHyperlinks(options) {
61787
61830
  return false;
61788
61831
  }
61789
61832
  //#endregion
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
61833
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Link.js
61791
61834
  function Link(t0) {
61792
61835
  const $ = (0, import_compiler_runtime.c)(5);
61793
61836
  const { children, url, fallback } = t0;
@@ -61815,7 +61858,7 @@ function Link(t0) {
61815
61858
  return t2;
61816
61859
  }
61817
61860
  //#endregion
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
61861
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/esc.js
61819
61862
  /**
61820
61863
  * ESC Sequence Parser
61821
61864
  *
@@ -61871,7 +61914,7 @@ function parseEsc(chars) {
61871
61914
  };
61872
61915
  }
61873
61916
  //#endregion
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
61917
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/types.js
61875
61918
  /**
61876
61919
  * ANSI Parser - Semantic Types
61877
61920
  *
@@ -61899,7 +61942,7 @@ function defaultStyle() {
61899
61942
  };
61900
61943
  }
61901
61944
  //#endregion
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
61945
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/sgr.js
61903
61946
  /**
61904
61947
  * SGR (Select Graphic Rendition) Parser
61905
61948
  *
@@ -62207,7 +62250,7 @@ function applySGR(paramStr, style) {
62207
62250
  return s;
62208
62251
  }
62209
62252
  //#endregion
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
62253
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/parser.js
62211
62254
  /**
62212
62255
  * ANSI Parser - Semantic Action Generator
62213
62256
  *
@@ -62584,7 +62627,7 @@ var Parser = class {
62584
62627
  }
62585
62628
  };
62586
62629
  //#endregion
62587
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
62630
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
62588
62631
  /**
62589
62632
  * Component that parses ANSI escape codes and renders them using Text components.
62590
62633
  *
@@ -62835,7 +62878,7 @@ function StyledText(t0) {
62835
62878
  return t1;
62836
62879
  }
62837
62880
  //#endregion
62838
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
62881
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
62839
62882
  var ui_exports = /* @__PURE__ */ __exportAll({
62840
62883
  AlternateScreen: () => AlternateScreen,
62841
62884
  Ansi: () => Ansi,
@@ -62859,7 +62902,7 @@ var ui_exports = /* @__PURE__ */ __exportAll({
62859
62902
  useTheme: () => useTheme
62860
62903
  });
62861
62904
  //#endregion
62862
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
62905
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
62863
62906
  /** 嵌套安全的 inset(若未来出现嵌套 PageMargin 会累加)。 */
62864
62907
  const PageInsetContext = import_react.createContext({
62865
62908
  x: 0,
@@ -62913,7 +62956,7 @@ function PageMargin({ children }) {
62913
62956
  });
62914
62957
  }
62915
62958
  //#endregion
62916
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
62959
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
62917
62960
  /**
62918
62961
  * UI glyph constants used across the TUI: prompt markers, status badges,
62919
62962
  * direction arrows, media controls, reasoning-effort indicators, and
@@ -62940,7 +62983,7 @@ const THINKING_SPINNER_FRAMES = [
62940
62983
  "⠏"
62941
62984
  ];
62942
62985
  //#endregion
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
62986
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerWizard.js
62944
62987
  /**
62945
62988
  * `/provider` wizard — interactively adds, edits, or deletes an LLM
62946
62989
  * provider route at runtime.
@@ -63666,7 +63709,7 @@ function buildProfile(input) {
63666
63709
  return profile;
63667
63710
  }
63668
63711
  //#endregion
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
63712
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/modelConfigWizard.js
63670
63713
  /** `/model-config`: platform catalogs and shared provider configuration. */
63671
63714
  const CUSTOM_MODEL_PROTOCOLS = [
63672
63715
  "openai-completions",
@@ -64548,7 +64591,7 @@ function parseCapacity(value) {
64548
64591
  return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : void 0;
64549
64592
  }
64550
64593
  //#endregion
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
64594
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-declared-cursor.js
64552
64595
  /**
64553
64596
  * Declares where the terminal cursor should be parked after each frame.
64554
64597
  *
@@ -64597,7 +64640,7 @@ function useDeclaredCursor(options) {
64597
64640
  return setNode;
64598
64641
  }
64599
64642
  //#endregion
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
64643
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-element.js
64601
64644
  /**
64602
64645
  * Measure the rendered dimensions of a Box element.
64603
64646
  * @param node - the DOM element to measure.
@@ -64608,7 +64651,7 @@ const measureElement = (node) => ({
64608
64651
  height: node.yogaNode?.getComputedHeight() ?? 0
64609
64652
  });
64610
64653
  //#endregion
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
64654
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Divider.js
64612
64655
  const MAX_APPLIED_MEASUREMENTS = 8;
64613
64656
  /**
64614
64657
  * A horizontal divider line, optionally with a title in the middle
@@ -66336,7 +66379,7 @@ f.parseInline;
66336
66379
  O.parse;
66337
66380
  T.lex;
66338
66381
  //#endregion
66339
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
66382
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
66340
66383
  /** highlight.js token classes -> theme syntax tokens. `default` catches
66341
66384
  * every unmapped class so cli-highlight's own yellow never leaks through
66342
66385
  * (issue #250, P2-6). */
@@ -66402,7 +66445,7 @@ function buildSyntaxTheme(theme) {
66402
66445
  return out;
66403
66446
  }
66404
66447
  //#endregion
66405
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
66448
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
66406
66449
  /** OSC 8 hyperlink start sequence: `ESC ] 8 ; ;`, followed by the URL. */
66407
66450
  const OSC8_START = "\x1B]8;;";
66408
66451
  /** Schemes a rendered hyperlink may point at. Anything else degrades to
@@ -66444,7 +66487,7 @@ function createHyperlink(url, content, options) {
66444
66487
  return `${OSC8_START}${safeUrl}${(options?.style ?? ((text) => chalk.blue(text)))(displayText)}${OSC8_START}`;
66445
66488
  }
66446
66489
  //#endregion
66447
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
66490
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
66448
66491
  /**
66449
66492
  * Clickable file targets: turning path-like text in AI output into
66450
66493
  * clickable targets, and resolving those targets back to absolute paths at
@@ -66586,7 +66629,7 @@ function linkifyFilePaths(text, wrap) {
66586
66629
  });
66587
66630
  }
66588
66631
  //#endregion
66589
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
66632
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
66590
66633
  /**
66591
66634
  * Markdown-to-ANSI renderer over marked's token stream.
66592
66635
  *
@@ -66901,7 +66944,7 @@ function padAligned(content, displayWidth, targetWidth, align) {
66901
66944
  return content + " ".repeat(extra);
66902
66945
  }
66903
66946
  //#endregion
66904
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
66947
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
66905
66948
  let cliHighlightPromise;
66906
66949
  async function loadCliHighlight() {
66907
66950
  try {
@@ -66924,7 +66967,7 @@ function getCliHighlightPromise() {
66924
66967
  return cliHighlightPromise;
66925
66968
  }
66926
66969
  //#endregion
66927
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
66970
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
66928
66971
  /** Accounts for parent indentation and terminal resize races (from Claude Code). */
66929
66972
  const SAFETY_MARGIN = 4;
66930
66973
  /** Minimum column width to prevent degenerate layouts */
@@ -67111,7 +67154,7 @@ function MarkdownTable({ token, highlight, forceWidth }) {
67111
67154
  return (0, import_jsx_runtime.jsx)(Text, { children: tableLines.join("\n") });
67112
67155
  }
67113
67156
  //#endregion
67114
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
67157
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
67115
67158
  const TOKEN_CACHE_CAPACITY = 200;
67116
67159
  const TOKEN_CACHE_CHAR_BUDGET = 2e5;
67117
67160
  const TOKEN_CACHE_MAX_SOURCE_LENGTH = 2e4;
@@ -67220,7 +67263,7 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true }) {
67220
67263
  */
67221
67264
  const Markdown = import_react.memo(MarkdownImpl, (prev, next) => prev.children === next.children && prev.dimColor === next.dimColor && prev.cacheTokens === next.cacheTokens);
67222
67265
  //#endregion
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
67266
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/PlanReviewPanel.js
67224
67267
  /**
67225
67268
  * The plan-review panel — Claude Code style exit-plan-mode decision card
67226
67269
  * for the DSH user-interaction seam. plan-mode's `exit_plan_mode` tool asks
@@ -67542,7 +67585,7 @@ function PlanReviewPanel({ question, onAnswer, onCancel }) {
67542
67585
  });
67543
67586
  }
67544
67587
  //#endregion
67545
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
67588
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
67546
67589
  /**
67547
67590
  * 焦点居中的列表窗口:长列表只渲染焦点附近的一段,保证焦点行始终可见。
67548
67591
  * 瞬态面板走 OverlayAbove 零高度浮层后,超高部分会被 overflow 裁掉且焦点
@@ -67594,7 +67637,7 @@ function listWindow(heights, focusIndex, maxRows, gap = 0) {
67594
67637
  }
67595
67638
  }
67596
67639
  //#endregion
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
67640
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/AskUserQuestionPanel.js
67598
67641
  /**
67599
67642
  * The questionnaire panel — Claude Code style ask-user-question UI for the
67600
67643
  * DSH user-interaction seam. One question per panel (progress header, header
@@ -68188,7 +68231,7 @@ function AskUserQuestionPanel({ question, position, total, answered, initialDraf
68188
68231
  });
68189
68232
  }
68190
68233
  //#endregion
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
68234
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/approvals/ApprovalPanel.js
68192
68235
  /**
68193
68236
  * The approval panel — Claude Code style permission prompt for the DSH
68194
68237
  * approval seam (`ctx.approval`). One ask per panel: a permission-colored
@@ -68313,7 +68356,7 @@ function ApprovalPanel({ approval, background = false, onDecide }) {
68313
68356
  });
68314
68357
  }
68315
68358
  //#endregion
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
68359
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Pane.js
68317
68360
  /**
68318
68361
  * A pane — a region below the prompt bounded by a colored top line with a
68319
68362
  * one-row gap above and horizontal padding, mirroring Claude Code's
@@ -68335,7 +68378,7 @@ function Pane({ children, color }) {
68335
68378
  });
68336
68379
  }
68337
68380
  //#endregion
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
68381
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ListItem.js
68339
68382
  /**
68340
68383
  * A list item for selection UIs, mirroring Claude Code's
68341
68384
  * design-system/ListItem.tsx: `❯` pointer for the focused row, `✓`
@@ -68432,7 +68475,7 @@ function flattenDeep(node) {
68432
68475
  return node;
68433
68476
  }
68434
68477
  //#endregion
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
68478
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/HintLine.js
68436
68479
  /**
68437
68480
  * Localized shortcut-hint line: renders a `t('hint-*')` string, with the
68438
68481
  * `**primary shortcut**` segment (the main action's key, wrapped in `**` in
@@ -68449,7 +68492,7 @@ function HintLine({ text }) {
68449
68492
  }, index) : part) });
68450
68493
  }
68451
68494
  //#endregion
68452
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
68495
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
68453
68496
  /**
68454
68497
  * The managed plugin dialog (`ctx.tuiDialogs`) — one panel rendering the
68455
68498
  * store's current snapshot in the chat chrome (the slot approval/question
@@ -68709,7 +68752,7 @@ function InputDialog({ dialog, onDecide, onCancel }) {
68709
68752
  });
68710
68753
  }
68711
68754
  //#endregion
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
68755
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-search-highlight.js
68713
68756
  /**
68714
68757
  * Set the search highlight query on the Ink instance. Non-empty → all
68715
68758
  * visible occurrences are inverted on the next frame (SGR 7, screen-buffer
@@ -68741,7 +68784,7 @@ function useSearchHighlight() {
68741
68784
  }, [ink]);
68742
68785
  }
68743
68786
  //#endregion
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
68787
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-title.js
68745
68788
  /**
68746
68789
  * Declaratively set the terminal tab/window title.
68747
68790
  *
@@ -68764,7 +68807,7 @@ function useTerminalTitle(title) {
68764
68807
  }, [title, writeRaw]);
68765
68808
  }
68766
68809
  //#endregion
68767
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
68810
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
68768
68811
  /**
68769
68812
  * Session browser formatting.
68770
68813
  *
@@ -69013,7 +69056,7 @@ function projectName(cwd) {
69013
69056
  return normalized.split("/").filter(Boolean).at(-1) ?? normalized;
69014
69057
  }
69015
69058
  //#endregion
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
69059
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/UserPromptMessage.js
69017
69060
  /** User prompt row in the legacy CLI treatment: a full-width gray strip. */
69018
69061
  function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
69019
69062
  const { columns } = useTerminalSize();
@@ -69039,7 +69082,7 @@ function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
69039
69082
  });
69040
69083
  }
69041
69084
  //#endregion
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
69085
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantTextMessage.js
69043
69086
  /**
69044
69087
  * Assistant text message: bullet + markdown body (mirroring Claude Code's default branch).
69045
69088
  *
@@ -69072,7 +69115,7 @@ function AssistantTextMessage({ text, addMargin, isSelected = false, isExpanded
69072
69115
  });
69073
69116
  }
69074
69117
  //#endregion
69075
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
69118
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
69076
69119
  /**
69077
69120
  * Renders markdown during streaming by splitting at the last top-level block
69078
69121
  * boundary: everything before is stable (memoized, never re-parsed), only the
@@ -69262,7 +69305,7 @@ function StreamingMarkdown({ children, dimColor = false }) {
69262
69305
  });
69263
69306
  }
69264
69307
  //#endregion
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
69308
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/spinnerUtils.js
69266
69309
  /**
69267
69310
  * Spinner 动画的通用工具集:平台相关的帧字符选择、RGB 颜色插值、
69268
69311
  * HSL 色相转 RGB,以及 `rgb(...)` 颜色字符串的解析与记忆化。
@@ -69342,7 +69385,7 @@ function parseRGB(colorStr) {
69342
69385
  return parsed;
69343
69386
  }
69344
69387
  //#endregion
69345
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
69388
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
69346
69389
  /** Header blue-white ladder: brand → ice → pale → soft ice flash.
69347
69390
  * FLASH stays visibly blue (never pure white) — the highlight reads as a
69348
69391
  * mist-brightened crest, not a white strobe. */
@@ -69358,7 +69401,7 @@ const ICE = {
69358
69401
  b: 255
69359
69402
  };
69360
69403
  //#endregion
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
69404
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantThinkingMessage.js
69362
69405
  /** Preview body rows — a FIXED row count (kimicode-style constant-height
69363
69406
  * ticker). Ink's truncate slices the whole string across newlines as one
69364
69407
  * logical line, so a single joined Text collapses to 1-2 rows whenever
@@ -69471,7 +69514,7 @@ function AssistantThinkingMessage({ thinking, textFull, addMargin, verbose, stre
69471
69514
  });
69472
69515
  }
69473
69516
  //#endregion
69474
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
69517
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
69475
69518
  const CATEGORY_BY_TOOL = {
69476
69519
  bash: "exec",
69477
69520
  powershell: "exec",
@@ -70052,7 +70095,7 @@ var ArrayDiff = class extends Diff {
70052
70095
  };
70053
70096
  new ArrayDiff();
70054
70097
  //#endregion
70055
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
70098
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
70056
70099
  const ANSI16 = {
70057
70100
  30: "rgb(0,0,0)",
70058
70101
  31: "rgb(128,0,0)",
@@ -70137,7 +70180,7 @@ function syntaxThemeSignature(theme) {
70137
70180
  return Object.values(SYNTAX_CLASS_TO_TOKEN).map((key) => palette[key] ?? "").join("|");
70138
70181
  }
70139
70182
  //#endregion
70140
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
70183
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
70141
70184
  /**
70142
70185
  * Smooth streaming reveal — decouples "text the provider has delivered" from
70143
70186
  * "text the screen is showing" (the oh-my-pi `display.smoothStreaming` idea,
@@ -70383,7 +70426,7 @@ function revealLinesOf(key, total, options) {
70383
70426
  return Math.min(existing.revealed, total);
70384
70427
  }
70385
70428
  //#endregion
70386
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
70429
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
70387
70430
  /** Replace tabs so width math and alignment hold (pi convention). */
70388
70431
  const expandTabs = (text) => text.replaceAll(" ", " ");
70389
70432
  /**
@@ -70692,7 +70735,7 @@ function SplitDiffView({ diffs, width, maxRows, verbose, toolBackground = "none"
70692
70735
  });
70693
70736
  }
70694
70737
  //#endregion
70695
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
70738
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
70696
70739
  /** Async nested Text renderer. Lexes the complete payload before splitting. */
70697
70740
  function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, dimColor }) {
70698
70741
  const [highlighter, setHighlighter] = import_react.useState(null);
@@ -70736,7 +70779,7 @@ function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, d
70736
70779
  }, index)) });
70737
70780
  }
70738
70781
  //#endregion
70739
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
70782
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
70740
70783
  /**
70741
70784
  * Tooltip hover system — the terminal equivalent of the HTML `title`
70742
70785
  * attribute. Attach {@link useTooltip} props to any Box whose visible text
@@ -70944,7 +70987,7 @@ function wrapTooltipContent(text, width) {
70944
70987
  return rows;
70945
70988
  }
70946
70989
  //#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
70990
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/format.js
70948
70991
  /**
70949
70992
  * Trajectory formatting — durations, clocks, badges and heat.
70950
70993
  *
@@ -71146,7 +71189,7 @@ function ledgerLayout(columns) {
71146
71189
  };
71147
71190
  }
71148
71191
  //#endregion
71149
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
71192
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
71150
71193
  /**
71151
71194
  * Reveal-frame wakeup as a React hook — bumps once per advancing ~30fps
71152
71195
  * scheduler tick so consumers re-run their render-phase cursor reads
@@ -71176,7 +71219,7 @@ function useRevealVersion(enabled = true) {
71176
71219
  return version;
71177
71220
  }
71178
71221
  //#endregion
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
71222
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantToolUseMessage.js
71180
71223
  /** Tool display names: DSH emits lowercase tool ids (`bash`); Claude Code
71181
71224
  * shows capitalized names (`Bash`). Map the common ones, fall back to the
71182
71225
  * id with its first letter uppercased. */
@@ -71712,7 +71755,7 @@ function AssistantToolUseMessage({ tool, addMargin, verbose, isSelected = false,
71712
71755
  });
71713
71756
  }
71714
71757
  //#endregion
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
71758
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/SubagentMessage.js
71716
71759
  /** The waterfall window is a Kimi Code style constant-height region. */
71717
71760
  const WATERFALL_ROWS = 3;
71718
71761
  /** Card left padding + the `│ ` gutter prefix. */
@@ -71920,7 +71963,7 @@ function SubagentMessage({ subagent, addMargin, activityFrames, onClick }) {
71920
71963
  });
71921
71964
  }
71922
71965
  //#endregion
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
71966
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/JobCard.js
71924
71967
  /** Card left padding + the `│ ` gutter prefix. */
71925
71968
  const WATERFALL_GUTTER = 4;
71926
71969
  /** Static status marker — deliberately NOT the animated activity-indicator
@@ -72073,7 +72116,7 @@ function JobCard({ job, addMargin, onClick }) {
72073
72116
  });
72074
72117
  }
72075
72118
  //#endregion
72076
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
72119
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
72077
72120
  /**
72078
72121
  * The dim "interrupted" row shown when the user stops a turn, mirroring
72079
72122
  * Claude Code's `InterruptedByUser.tsx`.
@@ -72088,7 +72131,7 @@ function InterruptedByUser() {
72088
72131
  })] });
72089
72132
  }
72090
72133
  //#endregion
72091
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
72134
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
72092
72135
  /**
72093
72136
  * 当月 AI 代码生成占比统计(移植自 chatcode-cli 的同名服务)。
72094
72137
  *
@@ -72256,7 +72299,7 @@ function computeAiRatioPercent(records) {
72256
72299
  return clampPercent(aiAdoptedTotal / addedTotal * 100);
72257
72300
  }
72258
72301
  //#endregion
72259
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
72302
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
72260
72303
  /**
72261
72304
  * 「AI代码生成占比」数据源 Hook(移植自 chatcode-cli 的同名 Hook)。
72262
72305
  *
@@ -72320,7 +72363,7 @@ function useAiRatio(enabled = true) {
72320
72363
  };
72321
72364
  }
72322
72365
  //#endregion
72323
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
72366
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
72324
72367
  /**
72325
72368
  * 「通知」数据源 Hook(移植自 chatcode-cli 的 LogoV2/FooterInfo 通知行)。
72326
72369
  *
@@ -72357,7 +72400,7 @@ function useNotification() {
72357
72400
  return { message };
72358
72401
  }
72359
72402
  //#endregion
72360
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
72403
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
72361
72404
  /**
72362
72405
  * Slice a string to at most `maxWidth` terminal cells, walking by code
72363
72406
  * point so CJK wide characters never split mid-glyph. Assumes no ANSI in
@@ -72375,7 +72418,7 @@ function truncateToWidth(text, maxWidth) {
72375
72418
  return out;
72376
72419
  }
72377
72420
  //#endregion
72378
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
72421
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
72379
72422
  /** Main ChatCode CLI package version shown in the startup information panel. */
72380
72423
  const VERSION = PRODUCT_VERSION;
72381
72424
  const PRODUCT_LABEL = "chatcode-cli";
@@ -72646,7 +72689,7 @@ function LogoV2({ model, effort, cwd, whale = true, aiRatio, drift }) {
72646
72689
  });
72647
72690
  }
72648
72691
  //#endregion
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
72692
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/MessageMetadata.js
72650
72693
  /**
72651
72694
  * Transcript-mode metadata row: `HH:MM · model`, right-aligned above the
72652
72695
  * assistant text, mirroring Claude Code's MessageTimestamp + MessageModel,
@@ -72668,7 +72711,7 @@ function MessageMetadata({ timestamp, model }) {
72668
72711
  });
72669
72712
  }
72670
72713
  //#endregion
72671
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
72714
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
72672
72715
  /**
72673
72716
  * Strip the `⏵` self-narration line from assistant text. The
72674
72717
  * dsh-working-activity narrate contract puts exactly one `⏵` line at the
@@ -72784,7 +72827,7 @@ function ellipsize(line, maxWidth) {
72784
72827
  return `${out}…`;
72785
72828
  }
72786
72829
  //#endregion
72787
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
72830
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
72788
72831
  /**
72789
72832
  * Transcript rows rendered in the Claude Code visual language: user prompts
72790
72833
  * on a grey bubble with a `❯` pointer, assistant text with a `●` bullet and
@@ -72855,7 +72898,7 @@ function revealDisplayLen(row, enabled) {
72855
72898
  const signatureScratch = [];
72856
72899
  function signatureParts(row, columns, expanded, expandedRows, streamViewToggledRows, thinkingVisible, thinkingFold, diffLayout, foldTerminalCommand, model, failureHintRowId, failureHint, displayTextLen) {
72857
72900
  signatureScratch.length = 0;
72858
- signatureScratch.push(columns, row.kind, displayTextLen);
72901
+ signatureScratch.push(columns, row.kind, displayTextLen, row.noticeTone ?? "");
72859
72902
  switch (row.kind) {
72860
72903
  case "assistant":
72861
72904
  signatureScratch.push(row.streaming === true, expanded, expandedRows.has(row.id), expanded ? model : "");
@@ -73300,6 +73343,7 @@ function MessageList({ rows, expanded, expandedRows, selectedId, onToggleRow, st
73300
73343
  return (0, import_jsx_runtime.jsx)(MemoRow, {
73301
73344
  rowId: row.id,
73302
73345
  kind: row.kind,
73346
+ noticeTone: row.noticeTone,
73303
73347
  text: displayText,
73304
73348
  textFull: row.kind === "reasoning" ? row.text : void 0,
73305
73349
  executionTarget: row.executionTarget,
@@ -73363,7 +73407,7 @@ function ClickableDivider({ title, onClick }) {
73363
73407
  children: (0, import_jsx_runtime.jsx)(Divider, { title })
73364
73408
  });
73365
73409
  }
73366
- function TranscriptRow({ rowId, kind, text, textFull, executionTarget, streaming, durationMs, time, addMargin, isSelected, isExpanded, expanded, model, diffLayout, smoothStreaming, fresh, revealVersion, thinkingFold, toolBackground, foldTerminalCommand, activityFrames, background, toolCallId, toolName, toolArgsText, toolArgsFull, toolStatus, toolResultText, toolResultFull, toolErrorText, toolFootnote, toolCallView, toolResultView, toolStartedAt, toolDurationMs, subagent, job, onToggleRow, onToggleStreamView, streamViewToggled, onOpenSubagent, onOpenJobs, onOpenFile, setRowRef }) {
73410
+ function TranscriptRow({ rowId, kind, noticeTone, text, textFull, executionTarget, streaming, durationMs, time, addMargin, isSelected, isExpanded, expanded, model, diffLayout, smoothStreaming, fresh, revealVersion, thinkingFold, toolBackground, foldTerminalCommand, activityFrames, background, toolCallId, toolName, toolArgsText, toolArgsFull, toolStatus, toolResultText, toolResultFull, toolErrorText, toolFootnote, toolCallView, toolResultView, toolStartedAt, toolDurationMs, subagent, job, onToggleRow, onToggleStreamView, streamViewToggled, onOpenSubagent, onOpenJobs, onOpenFile, setRowRef }) {
73367
73411
  const ref = import_react.useCallback((el) => {
73368
73412
  setRowRef(rowId, el);
73369
73413
  }, [setRowRef, rowId]);
@@ -73483,7 +73527,11 @@ function TranscriptRow({ rowId, kind, text, textFull, executionTarget, streaming
73483
73527
  case "notice": return (0, import_jsx_runtime.jsx)(ThemedBox, {
73484
73528
  marginTop: 1,
73485
73529
  ref,
73486
- children: (0, import_jsx_runtime.jsx)(Divider, { title: ` ${text} ` })
73530
+ children: noticeTone === "error" ? (0, import_jsx_runtime.jsx)(ThemedText, {
73531
+ color: "error",
73532
+ wrap: "wrap",
73533
+ children: text
73534
+ }) : (0, import_jsx_runtime.jsx)(Divider, { title: ` ${text} ` })
73487
73535
  });
73488
73536
  case "interrupt": return (0, import_jsx_runtime.jsx)(ThemedBox, {
73489
73537
  marginTop: 1,
@@ -73597,7 +73645,7 @@ function LogoHeader({ model, effort, cwd, whale = true, skipIntro = false }) {
73597
73645
  });
73598
73646
  }
73599
73647
  //#endregion
73600
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
73648
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
73601
73649
  /** ▴ / ▾ (U+25B4 / U+25BE — the small triangles; CP437-safe on ConHost too). */
73602
73650
  const CHEVRON_UP = " ▴";
73603
73651
  const CHEVRON_DOWN = " ▾";
@@ -73791,7 +73839,7 @@ function TimelineRail({ handle, turns, activeId, upId, downId, terminalWidth, ho
73791
73839
  }) });
73792
73840
  }
73793
73841
  //#endregion
73794
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
73842
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
73795
73843
  /** Thumb glyph across the 2-col gutter: solid, clearly positional —
73796
73844
  * deliberately distinct from the timeline's ━━ active tick. */
73797
73845
  const THUMB = "██";
@@ -73907,7 +73955,7 @@ function ScrollbarGutter({ handle, terminalWidth }) {
73907
73955
  }) });
73908
73956
  }
73909
73957
  //#endregion
73910
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
73958
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
73911
73959
  /**
73912
73960
  * 瞬态面板的浮层容器:absolute 定位 + bottom:'100%' 把面板底边钉在锚点
73913
73961
  * (父元素)顶边,向上覆盖转录尾部行,自身**不占布局高度**。
@@ -73940,7 +73988,7 @@ function OverlayAbove({ children, maxHeight }) {
73940
73988
  });
73941
73989
  }
73942
73990
  //#endregion
73943
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
73991
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
73944
73992
  /**
73945
73993
  * Trajectory motion — five verbs, one shared clock, one hard rule.
73946
73994
  *
@@ -74065,7 +74113,7 @@ function alert(tick, startTick) {
74065
74113
  return Math.floor(age / 2) % 2 === 0 ? 1 : 0;
74066
74114
  }
74067
74115
  //#endregion
74068
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
74116
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
74069
74117
  /** 三幕时间轴(ms):扫光全长、字样启动(波至中段)、字样渐亮、渐隐起止。边框扫光与输入行字样徽标共用。 */
74070
74118
  const IGNITION_TIMELINE = {
74071
74119
  sweepMs: 1e3,
@@ -74213,7 +74261,7 @@ function ignitionLineColors(options) {
74213
74261
  return colors;
74214
74262
  }
74215
74263
  //#endregion
74216
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
74264
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
74217
74265
  /**
74218
74266
  * EffortChargeGlyph — 输入提示前缀 `❯ ` 的最高档强调与充能。
74219
74267
  *
@@ -74269,7 +74317,7 @@ function EffortChargeGlyph({ effort, levels, working }) {
74269
74317
  });
74270
74318
  }
74271
74319
  //#endregion
74272
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
74320
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
74273
74321
  /**
74274
74322
  * EffortInputBorder — 输入框层上的三幕点焰叠加(对齐 Codex 的完整
74275
74323
  * 语义:光扫过、档位字样浮现、整体渐隐)。
@@ -74404,7 +74452,7 @@ function EffortInputBorder({ effort, levels, columns, onLight, idleColor, topRig
74404
74452
  });
74405
74453
  }
74406
74454
  //#endregion
74407
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
74455
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
74408
74456
  /**
74409
74457
  * EffortTierBadge — 输入行尾的档位字样徽标:三幕点焰的第二幕载体
74410
74458
  * (与 EffortInputBorder 的双框扫光同一时间轴、同一触发),切到最高
@@ -74487,7 +74535,7 @@ function EffortTierBadge({ effort, levels, onLight, columns, leadingColumns }) {
74487
74535
  });
74488
74536
  }
74489
74537
  //#endregion
74490
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
74538
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
74491
74539
  /**
74492
74540
  * Cross-platform clipboard access for Ctrl+V paste. The TUI runs in raw
74493
74541
  * mode, so the terminal never performs its own paste for Ctrl+V — the key
@@ -75016,7 +75064,7 @@ function formatClipboardInsert(content) {
75016
75064
  return content.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
75017
75065
  }
75018
75066
  //#endregion
75019
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/droppedFile.js
75067
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/droppedFile.js
75020
75068
  /**
75021
75069
  * Terminal drag-and-drop normalization.
75022
75070
  *
@@ -75075,7 +75123,7 @@ function droppedImageMention(raw, baseDir) {
75075
75123
  return formatImageReference(path);
75076
75124
  }
75077
75125
  //#endregion
75078
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
75126
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
75079
75127
  /**
75080
75128
  * External editor round-trip for the prompt input (issue #123): Ctrl+G dumps
75081
75129
  * the current draft into a temp file, hands the terminal to `$VISUAL` /
@@ -75353,7 +75401,7 @@ async function editInExternalEditor(draft) {
75353
75401
  }
75354
75402
  }
75355
75403
  //#endregion
75356
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
75404
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
75357
75405
  let editorNode = null;
75358
75406
  const listeners = /* @__PURE__ */ new Set();
75359
75407
  /** Publish (or withdraw, with null) the fullscreen editor subtree. */
@@ -75437,7 +75485,7 @@ function EditorButton({ label, hint, onClick, primary, accent }) {
75437
75485
  });
75438
75486
  }
75439
75487
  //#endregion
75440
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
75488
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
75441
75489
  const HISTORY_DIR = DATA_DIR;
75442
75490
  const HISTORY_FILE = join(HISTORY_DIR, "history.jsonl");
75443
75491
  const HISTORY_LOCK = `${HISTORY_FILE}.lock`;
@@ -75571,7 +75619,7 @@ function historyEntryId(entry, index = 0) {
75571
75619
  return createHash("sha1").update(`${entry.text}\0${entry.ts}\0${index}`).digest("hex").slice(0, 12);
75572
75620
  }
75573
75621
  //#endregion
75574
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
75622
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
75575
75623
  /**
75576
75624
  * `/` 命令菜单与 `@` 文件菜单共用的圆角卡片外壳(与输入框 EffortInputBorder
75577
75625
  * 同款 ╭╮╰╯ 视觉语言):
@@ -75703,7 +75751,7 @@ function splitQueryMatch(name, query) {
75703
75751
  return startsWith(0) ?? (lastSpace >= 0 ? startsWith(lastSpace + 1) : null) ?? startsWith(name.lastIndexOf("/") + 1);
75704
75752
  }
75705
75753
  //#endregion
75706
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
75754
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
75707
75755
  /**
75708
75756
  * The slash-command suggestion overlay, mirroring Claude Code's
75709
75757
  * `PromptInputFooterSuggestions.tsx` (command layout only) wrapped in the
@@ -75783,7 +75831,7 @@ function CommandSuggestions({ commands, selectedIndex, columns, query = "", acce
75783
75831
  });
75784
75832
  }
75785
75833
  //#endregion
75786
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
75834
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
75787
75835
  /**
75788
75836
  * The `@` file-completion overlay in CC's suggestion style, wrapped in the
75789
75837
  * shared rounded `SuggestionCard` (与 `/` 命令菜单同一视觉语言):
@@ -75866,7 +75914,7 @@ function FileSuggestions({ files, selectedIndex, columns, query = "", maxVisible
75866
75914
  title: `${t("sugg-files-title")} · ${t("sugg-count", { n: files.length })}`,
75867
75915
  columns,
75868
75916
  accent,
75869
- footer: t(loading ? "sugg-scanning-select" : "sugg-scan-complete"),
75917
+ footer: t(loading ? "sugg-scanning-select" : files[safeIndex]?.kind === "directory" ? "sugg-enter-directory" : "sugg-scan-complete"),
75870
75918
  onRowPick: !loading && onPick ? (index) => onPick(startIndex + index) : void 0,
75871
75919
  onWheelStep: loading ? void 0 : onWheelStep,
75872
75920
  rows: visible.map((file) => (0, import_jsx_runtime.jsx)(FileSuggestionRow, {
@@ -75879,7 +75927,7 @@ function FileSuggestions({ files, selectedIndex, columns, query = "", maxVisible
75879
75927
  });
75880
75928
  }
75881
75929
  //#endregion
75882
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
75930
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
75883
75931
  /**
75884
75932
  * The `?` help menu, mirroring Claude Code's `PromptInputHelpMenu.tsx`
75885
75933
  * (three-column shortcut layout, trimmed to the keys dsh-tui actually binds).
@@ -76070,7 +76118,7 @@ function HelpCommandRow({ command, onPick }) {
76070
76118
  });
76071
76119
  }
76072
76120
  //#endregion
76073
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
76121
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
76074
76122
  const HISTORY_LIMIT = 50;
76075
76123
  /**
76076
76124
  * Paste fold (CC-style collapse with a visible preview, no black box):
@@ -76635,10 +76683,13 @@ function PromptInput({ channel, helpOpen, onToggleHelp, onRunCommand, selectionA
76635
76683
  const acceptFile = (candidate) => {
76636
76684
  if (!mention) return;
76637
76685
  const file = candidate.path;
76638
- const body = /\s/.test(file) ? `@"${file}"` : `@${file}`;
76686
+ const quoted = /\s/.test(file);
76687
+ const body = quoted ? `@"${file}"` : `@${file}`;
76639
76688
  const suffix = mention.pathEnd === void 0 ? "" : value.slice(mention.pathEnd, mention.end);
76640
76689
  const insert = candidate.kind === "directory" ? `${body}${suffix}` : `${body}${suffix} `;
76641
- setInput(value.slice(0, mention.start) + insert + value.slice(mention.end), mention.start + insert.length);
76690
+ const next = value.slice(0, mention.start) + insert + value.slice(mention.end);
76691
+ const offset = candidate.kind === "directory" ? body.length - (quoted ? 1 : 0) : insert.length;
76692
+ setInput(next, mention.start + offset);
76642
76693
  setFileSelected(0);
76643
76694
  };
76644
76695
  const submitText = (text, notice) => {
@@ -78490,7 +78541,7 @@ function wordSelectionAt(text, offset, lo, hi) {
78490
78541
  };
78491
78542
  }
78492
78543
  //#endregion
78493
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
78544
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
78494
78545
  /** Maximum todo rows shown before the overflow line. */
78495
78546
  const MAX_TODOS = 8;
78496
78547
  const PHASE_LABEL = {
@@ -78734,7 +78785,7 @@ function GoalTodoPanel({ channel, collapsed = false, onToggle }) {
78734
78785
  });
78735
78786
  }
78736
78787
  //#endregion
78737
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
78788
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
78738
78789
  /**
78739
78790
  * Auto-recap row (`dsh-tui.recapOnOpen` setting): a quiet, dim recap shown
78740
78791
  * at the bottom of the transcript after an automatic summary on session
@@ -78814,7 +78865,7 @@ function summarizeLoadedContext(context) {
78814
78865
  return parts.join(" · ");
78815
78866
  }
78816
78867
  //#endregion
78817
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
78868
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
78818
78869
  /** One named entry (section or dynamic context) with its full text. */
78819
78870
  function Entry({ entry }) {
78820
78871
  return (0, import_jsx_runtime.jsxs)(ThemedBox, {
@@ -78951,7 +79002,7 @@ function LoadedContextPanel({ context, open, onToggle }) {
78951
79002
  });
78952
79003
  }
78953
79004
  //#endregion
78954
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
79005
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
78955
79006
  /**
78956
79007
  * Terminal-safe construction cycle derived from the supplied China Unicom
78957
79008
  * knot mark. Every frame is one display cell, unlike emoji on mixed terminals.
@@ -78983,7 +79034,7 @@ function UnicomKnotSpinner({ time }) {
78983
79034
  });
78984
79035
  }
78985
79036
  //#endregion
78986
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
79037
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
78987
79038
  /**
78988
79039
  * Context-pressure percentage (0–100) from the last usage snapshot, or
78989
79040
  * undefined when unknown — shared by the spinner-line and status-line
@@ -79055,7 +79106,7 @@ function ActivityLine({ activity, activityFrames, warnPct, warnDanger, suffix })
79055
79106
  });
79056
79107
  }
79057
79108
  //#endregion
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
79109
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/guards.js
79059
79110
  /**
79060
79111
  * Structural guards for the session events the trajectory projection reads.
79061
79112
  *
@@ -79279,7 +79330,7 @@ function readTodos(data) {
79279
79330
  };
79280
79331
  }
79281
79332
  //#endregion
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
79333
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/types.js
79283
79334
  /**
79284
79335
  * Trajectory projection — the data contract shared by the adapter-side fold
79285
79336
  * and the UI-side scene (issue #80 evolution).
@@ -79346,7 +79397,7 @@ function previewText(raw, limit) {
79346
79397
  return `${flat.slice(0, limit)}…`;
79347
79398
  }
79348
79399
  //#endregion
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
79400
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/projection.js
79350
79401
  /**
79351
79402
  * Trajectory projection — folding the session event log into ledger nodes.
79352
79403
  *
@@ -79925,7 +79976,7 @@ function extendTrajectory(previous, events) {
79925
79976
  };
79926
79977
  }
79927
79978
  //#endregion
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
79979
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/aggregate.js
79929
79980
  /**
79930
79981
  * Trajectory aggregate — the hotspot view's data and the session totals.
79931
79982
  *
@@ -80146,7 +80197,7 @@ function modelTiming(timing) {
80146
80197
  };
80147
80198
  }
80148
80199
  //#endregion
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
80200
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/inspect.js
80150
80201
  /**
80151
80202
  * Inspector detail — full content, resolved on demand.
80152
80203
  *
@@ -80306,7 +80357,7 @@ function inspectNode(node, events) {
80306
80357
  };
80307
80358
  }
80308
80359
  //#endregion
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
80360
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/wave.js
80310
80361
  /**
80311
80362
  * Wave band projection — the whole session compressed onto one row of glyphs.
80312
80363
  *
@@ -80479,7 +80530,7 @@ function columnOfIndex(band, ledgerIndex) {
80479
80530
  return 0;
80480
80531
  }
80481
80532
  //#endregion
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
80533
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/MiniWake.js
80483
80534
  /**
80484
80535
  * The mini wake — the whole session as a dozen glyphs in the status line.
80485
80536
  *
@@ -80582,7 +80633,7 @@ function toHex$1(colour) {
80582
80633
  return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
80583
80634
  }
80584
80635
  //#endregion
80585
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
80636
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
80586
80637
  /**
80587
80638
  * Status-line metric renderers, ported from two pi extensions:
80588
80639
  * - `pi-nano-context`: segmented context progress bar (morandi pastel
@@ -80858,7 +80909,7 @@ function tpsStats(samples, nowMs) {
80858
80909
  };
80859
80910
  }
80860
80911
  //#endregion
80861
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
80912
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
80862
80913
  /** Free-segment colors, mirroring StatusMetrics' dark-theme defaults. */
80863
80914
  const FREE_FILL = "#E8E8E8";
80864
80915
  const FREE_TEXT = "#4A4A4A";
@@ -80925,7 +80976,7 @@ function ContextBarView({ segments, usedTokens, contextWindow, width, colors, on
80925
80976
  });
80926
80977
  }
80927
80978
  //#endregion
80928
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
80979
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
80929
80980
  /**
80930
80981
  * ChatCode 今日总 Token 消耗量查询(移植自 chatcode-cli 的 chatCodeTokenTrend)。
80931
80982
  *
@@ -81000,7 +81051,7 @@ async function fetchTodayTotalTokens(post, signal) {
81000
81051
  }
81001
81052
  }
81002
81053
  //#endregion
81003
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
81054
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
81004
81055
  /**
81005
81056
  * 「今日总Token消耗」数据源 Hook(移植自 chatcode-cli 的 useTokenDashboard)。
81006
81057
  *
@@ -81032,7 +81083,7 @@ function useTodayTotalTokens(enabled = true) {
81032
81083
  return { totalTokens };
81033
81084
  }
81034
81085
  //#endregion
81035
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
81086
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
81036
81087
  const BAR_WIDTH = 14;
81037
81088
  /** Yuanjing-compatible percentage label centered inside a fixed-width bar. */
81038
81089
  function LabeledBar({ ratio, percent }) {
@@ -81116,7 +81167,7 @@ function TokenDashboard({ todayTokens, usedTokens, contextWindow, compact = fals
81116
81167
  });
81117
81168
  }
81118
81169
  //#endregion
81119
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
81170
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
81120
81171
  /** Stable fallback for stubbed channels: verify/repro harnesses render the
81121
81172
  * real Chat with partial channel literals that predate the jobs field. */
81122
81173
  const NO_BACKGROUND_JOBS = [];
@@ -81974,7 +82025,7 @@ const fallbackSymbols = {
81974
82025
  const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
81975
82026
  Object.entries(specialMainSymbols);
81976
82027
  //#endregion
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
82028
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Byline.js
81978
82029
  /**
81979
82030
  * Joins children with a middot separator (" · ") for inline metadata display
81980
82031
  * (in the Claude Code visual language). Automatically filters out
@@ -81990,7 +82041,7 @@ function Byline({ children }) {
81990
82041
  }), child] }, (0, import_react.isValidElement)(child) ? child.key ?? index : index)) });
81991
82042
  }
81992
82043
  //#endregion
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
82044
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/GlimmerMessage.js
81994
82045
  const ERROR_RED$1 = {
81995
82046
  r: 171,
81996
82047
  g: 43,
@@ -82080,7 +82131,7 @@ function GlimmerMessage({ message, mode, messageColor, glimmerIndex, flashOpacit
82080
82131
  })] });
82081
82132
  }
82082
82133
  //#endregion
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
82134
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerGlyph.js
82084
82135
  const DEFAULT_CHARACTERS = getDefaultCharacters();
82085
82136
  const SPINNER_FRAMES$1 = [...DEFAULT_CHARACTERS, ...[...DEFAULT_CHARACTERS].reverse()];
82086
82137
  const REDUCED_MOTION_DOT = "●";
@@ -82141,7 +82192,7 @@ function SpinnerGlyph({ frame, messageColor, stalledIntensity = 0, reducedMotion
82141
82192
  });
82142
82193
  }
82143
82194
  //#endregion
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
82195
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/useStalledAnimation.js
82145
82196
  /**
82146
82197
  * Tracks the transition to red when tokens stop flowing (mirroring Claude Code's `Spinner/useStalledAnimation.ts`). Driven by the parent's animation
82147
82198
  * clock time instead of independent intervals, so it slows down when the
@@ -82198,7 +82249,7 @@ function useStalledAnimation(time, currentResponseLength, hasActiveTools = false
82198
82249
  };
82199
82250
  }
82200
82251
  //#endregion
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
82252
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerAnimationRow.js
82202
82253
  const SEP_WIDTH = stringWidth$1(" · ");
82203
82254
  const THINKING_BARE_WIDTH = stringWidth$1("thinking");
82204
82255
  const SHOW_TOKENS_AFTER_MS = 3e4;
@@ -82365,7 +82416,7 @@ function SpinnerModeGlyph({ mode }) {
82365
82416
  }
82366
82417
  }
82367
82418
  //#endregion
82368
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
82419
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
82369
82420
  /**
82370
82421
  * The working spinner block shown between the transcript and the prompt
82371
82422
  * input while a turn is in flight. Mirrors Claude Code's `Spinner.tsx`
@@ -82435,7 +82486,7 @@ function useThinkingStatus(isThinking) {
82435
82486
  return thinkingStatus;
82436
82487
  }
82437
82488
  //#endregion
82438
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
82489
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
82439
82490
  /**
82440
82491
  * Model picker in the CC ModelPicker style: a permission-colored Pane with
82441
82492
  * the rows as Select entries (❯ focus pointer, ✓ on the active row,
@@ -82495,7 +82546,7 @@ function ModelPicker(props) {
82495
82546
  });
82496
82547
  }
82497
82548
  //#endregion
82498
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
82549
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
82499
82550
  /**
82500
82551
  * Error boundary for plugin scenes (dsh-tui-scenes). A scene component is
82501
82552
  * third-party code rendered inside Chat's tree: without a boundary a render
@@ -82521,7 +82572,7 @@ var PluginSceneBoundary = class extends import_react.Component {
82521
82572
  }
82522
82573
  };
82523
82574
  //#endregion
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
82575
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/LoadingState.js
82525
82576
  const SPINNER_FRAMES = [...getDefaultCharacters(), ...[...getDefaultCharacters()].reverse()];
82526
82577
  /**
82527
82578
  * A spinner with a loading message for async operations, mirroring Claude Code's design-system/LoadingState.tsx (using the small animated glyph).
@@ -82552,7 +82603,7 @@ function LoadingState({ message, bold = false, dimColor = false, subtitle }) {
82552
82603
  });
82553
82604
  }
82554
82605
  //#endregion
82555
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
82606
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
82556
82607
  /** 来源桶 → 本地化标签(未知桶原样显示,SkillSource 对自定义桶开放)。 */
82557
82608
  function sourceLabel(source) {
82558
82609
  switch (source) {
@@ -82630,7 +82681,7 @@ function SkillsPickerLoading() {
82630
82681
  });
82631
82682
  }
82632
82683
  //#endregion
82633
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
82684
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
82634
82685
  /**
82635
82686
  * Window a single-line query around the caret so the visible slice fits
82636
82687
  * `avail` display cells (CJK display width, code-point safe — `[...s]`
@@ -82768,7 +82819,7 @@ function SearchBox({ query, placeholder = "Search…", isFocused, isTerminalFocu
82768
82819
  });
82769
82820
  }
82770
82821
  //#endregion
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
82822
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionListRow.js
82772
82823
  /**
82773
82824
  * One session in the browser's list: a title line and a metadata line.
82774
82825
  *
@@ -82849,7 +82900,7 @@ function SessionListRow({ session, width, depth, focused, pinned, now, onClick,
82849
82900
  });
82850
82901
  }
82851
82902
  //#endregion
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
82903
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionPreview.js
82853
82904
  /** Role marker and colour for a preview entry. */
82854
82905
  const ROLE = {
82855
82906
  user: {
@@ -82940,7 +82991,7 @@ function SessionPreview({ session, entries, loading, width, height, home, now })
82940
82991
  });
82941
82992
  }
82942
82993
  //#endregion
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
82994
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/WorkspaceListRow.js
82944
82995
  /** One two-line working-directory choice in the /resume browser. */
82945
82996
  function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width, focused, selected, home, now, onClick }) {
82946
82997
  const [hovered, setHovered] = (0, import_react.useState)(false);
@@ -82985,7 +83036,7 @@ function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width,
82985
83036
  });
82986
83037
  }
82987
83038
  //#endregion
82988
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
83039
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
82989
83040
  /**
82990
83041
  * Pinned sessions for the `/resume` browser, kept at
82991
83042
  * `~/.chatcode-cli/tui/session-pins.json` (a JSON array of session ids) so the pins
@@ -83134,7 +83185,7 @@ function setSessionPinned(id, pinned, dir = DATA_DIR) {
83134
83185
  }
83135
83186
  }
83136
83187
  //#endregion
83137
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
83188
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
83138
83189
  /**
83139
83190
  * Rows the layout cannot do without: the header, the four-row scope/search
83140
83191
  * card, the notice slot, and the hints. Everything else yields before these.
@@ -84134,7 +84185,7 @@ function SessionBrowser({ channel, home, sameProject, onClose }) {
84134
84185
  });
84135
84186
  }
84136
84187
  //#endregion
84137
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
84188
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
84138
84189
  /** Local HH:MM (or MM/DD HH:MM when older than this year). */
84139
84190
  function formatTime(at, now) {
84140
84191
  const date = new Date(at);
@@ -84890,7 +84941,7 @@ function PreviewPane({ entry, meta, width, height, liveSessionId, now, compact }
84890
84941
  });
84891
84942
  }
84892
84943
  //#endregion
84893
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
84944
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
84894
84945
  /** Pick the provider-owned translation for the active language. */
84895
84946
  function pick(text, descriptions) {
84896
84947
  return descriptions?.[getLang()] ?? text;
@@ -85715,7 +85766,7 @@ function Settings({ channel, onClose, initialGroup }) {
85715
85766
  });
85716
85767
  }
85717
85768
  //#endregion
85718
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
85769
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
85719
85770
  const WINDOW$1 = 8;
85720
85771
  /** `/workspace` target picker contributed by local and optional providers. */
85721
85772
  function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
@@ -85753,7 +85804,7 @@ function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
85753
85804
  });
85754
85805
  }
85755
85806
  //#endregion
85756
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
85807
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
85757
85808
  /**
85758
85809
  * A single-choice select list in the CC CustomSelect style (ported visual:
85759
85810
  * ListItem rows with ❯ focus pointer, ✓ selected checkmark, descriptions,
@@ -85780,7 +85831,7 @@ function Select({ options, focusIndex, selectedValue, visibleOptionCount = 5, on
85780
85831
  });
85781
85832
  }
85782
85833
  //#endregion
85783
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
85834
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
85784
85835
  /**
85785
85836
  * Bare `/workspace` action menu: the built-in subcommands (resume / rename /
85786
85837
  * open) plus any dynamically registered workspace extensions. Enter runs the
@@ -85821,7 +85872,7 @@ function WorkspaceMenuPicker({ options, focusIndex, onPick }) {
85821
85872
  });
85822
85873
  }
85823
85874
  //#endregion
85824
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
85875
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
85825
85876
  const WINDOW = 8;
85826
85877
  /** Generic nested choice surface returned by a workspace provider command. */
85827
85878
  function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input = null, onPick }) {
@@ -85879,7 +85930,7 @@ function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input =
85879
85930
  });
85880
85931
  }
85881
85932
  //#endregion
85882
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
85933
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
85883
85934
  /**
85884
85935
  * Working-activity indicator picker in the CC ModelPicker style (ported
85885
85936
  * from the pi extension's `/activity` interactive select): a
@@ -85921,7 +85972,7 @@ function ActivityPicker({ focusIndex, currentPreset, onPick }) {
85921
85972
  });
85922
85973
  }
85923
85974
  //#endregion
85924
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
85975
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
85925
85976
  /**
85926
85977
  * Session accent color picker (bare `/color`): a permission-colored Pane
85927
85978
  * listing the whole palette with a colored swatch per row, `❯` focus
@@ -85965,7 +86016,7 @@ function ColorPicker({ focusIndex, currentColor, onPick }) {
85965
86016
  });
85966
86017
  }
85967
86018
  //#endregion
85968
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
86019
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
85969
86020
  /**
85970
86021
  * Reasoning-effort slider (`/effort`): a rheostat row of the live route's
85971
86022
  * adapter-owned levels in adapter order, ←/→ moving focus (each move applies
@@ -86024,7 +86075,7 @@ function EffortSlider({ options, focusIndex, currentId, onPick }) {
86024
86075
  });
86025
86076
  }
86026
86077
  //#endregion
86027
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
86078
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
86028
86079
  /**
86029
86080
  * Agent-preset picker (issue #8) in the CC ModelPicker style — same chrome
86030
86081
  * as the ActivityPicker: a permission-colored Pane listing every roster
@@ -86068,7 +86119,7 @@ function PresetPicker({ presets, focusIndex, currentPreset, onPick }) {
86068
86119
  });
86069
86120
  }
86070
86121
  //#endregion
86071
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
86122
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
86072
86123
  /**
86073
86124
  * `/permission` sandbox-preset picker. The command itself is registered by
86074
86125
  * the harness side (dsh-sandbox-policy / dsh-base permission-presets row);
@@ -86115,7 +86166,7 @@ function PermissionsPicker({ options, focusIndex, currentValue, cwd, onPick }) {
86115
86166
  });
86116
86167
  }
86117
86168
  //#endregion
86118
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
86169
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
86119
86170
  /**
86120
86171
  * `/plan` on/off picker. The command itself is registered by dsh-plan-mode
86121
86172
  * on the harness side; bare `/plan` opens this picker (with the current
@@ -86160,7 +86211,7 @@ function PlanPicker({ focusIndex, currentOn, onPick }) {
86160
86211
  });
86161
86212
  }
86162
86213
  //#endregion
86163
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
86214
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
86164
86215
  /**
86165
86216
  * `/lang` en/zh picker: bare `/lang` opens this picker (the current language
86166
86217
  * marked) and Enter applies the choice through the same path as `/lang <id>`.
@@ -86199,7 +86250,7 @@ function LangPicker({ focusIndex, currentLang, onPick }) {
86199
86250
  });
86200
86251
  }
86201
86252
  //#endregion
86202
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
86253
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
86203
86254
  /** One double-block swatch character per preview key, in a row. */
86204
86255
  const SWATCH = "██";
86205
86256
  /** Theme keys previewed in the picker, chosen for visual contrast. */
@@ -86285,7 +86336,7 @@ function ThemePicker({ focusIndex, currentTheme, themeHost, onPick }) {
86285
86336
  });
86286
86337
  }
86287
86338
  //#endregion
86288
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
86339
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
86289
86340
  /**
86290
86341
  * The `/thinking` display dialog: a permission-colored Pane with a bold
86291
86342
  * title, the Shown/Hidden select, and the Enter/Esc hint line.
@@ -86334,7 +86385,7 @@ function ThinkingToggle({ currentValue, focusIndex, onPick }) {
86334
86385
  });
86335
86386
  }
86336
86387
  //#endregion
86337
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
86388
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
86338
86389
  /**
86339
86390
  * The ctrl+r history search dialog, in the shape of Claude Code's
86340
86391
  * HistorySearchDialog/FuzzyPicker: a permission-colored Pane with a bold
@@ -86397,7 +86448,7 @@ function formatRelativeAge(ts) {
86397
86448
  return t("time-days-ago", { n: Math.floor(elapsed / 864e5) });
86398
86449
  }
86399
86450
  //#endregion
86400
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
86451
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
86401
86452
  /**
86402
86453
  * Double-Esc rewind picker (CC's "Double-tap esc to rewind the code and/or
86403
86454
  * conversation to a previous point in time"): lists the user's past messages
@@ -86534,7 +86585,7 @@ function preview(text) {
86534
86585
  return flat.length <= 80 ? flat : `${flat.slice(0, 80)}…`;
86535
86586
  }
86536
86587
  //#endregion
86537
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
86588
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
86538
86589
  /**
86539
86590
  * /btw side-question panel (CC's btw.tsx, inline-pane form like the local
86540
86591
  * pickers): title line with the question, a scrollable answer body (error /
@@ -86618,7 +86669,7 @@ function BtwPanel({ question, answer, error, streaming, onClose, onCopy }) {
86618
86669
  });
86619
86670
  }
86620
86671
  //#endregion
86621
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
86672
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
86622
86673
  function ReleaseNotesPanel({ release, onClose }) {
86623
86674
  const scrollRef = import_react.useRef(null);
86624
86675
  const { rows } = useTerminalSize();
@@ -86663,7 +86714,7 @@ function ReleaseNotesPanel({ release, onClose }) {
86663
86714
  });
86664
86715
  }
86665
86716
  //#endregion
86666
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
86717
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
86667
86718
  /**
86668
86719
  * `/recap` panel (pi-recap semantics), in the picker/dialog visual
86669
86720
  * language: a permission-colored Pane with a title bar (会话回顾), a
@@ -86784,7 +86835,7 @@ function RecapPanel({ summary, title, error, streaming, titleApplied, onClose, o
86784
86835
  });
86785
86836
  }
86786
86837
  //#endregion
86787
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
86838
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
86788
86839
  /**
86789
86840
  * 精简 Tips 池 —— 启动首屏轮换(LogoV2)与 `/tips` 命令面板共用。
86790
86841
  *
@@ -87498,7 +87549,7 @@ const TIPS = [
87498
87549
  }
87499
87550
  ];
87500
87551
  //#endregion
87501
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
87552
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
87502
87553
  const GROUP_ORDER = [
87503
87554
  "keys",
87504
87555
  "commands",
@@ -87577,7 +87628,7 @@ function TipsPanel({ onClose }) {
87577
87628
  });
87578
87629
  }
87579
87630
  //#endregion
87580
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
87631
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
87581
87632
  function formatDuration$1(ms) {
87582
87633
  const seconds = Math.floor(ms / 1e3);
87583
87634
  return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${seconds % 60}s`;
@@ -87632,7 +87683,7 @@ function SubagentCard({ subagent, focused, onClick }) {
87632
87683
  });
87633
87684
  }
87634
87685
  //#endregion
87635
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
87686
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
87636
87687
  /** 可点击 ✕ 退出按钮:整屏/浮层场景的鼠标退出通道(Esc 等价)。 */
87637
87688
  function ExitButton({ onClick }) {
87638
87689
  const [hovered, setHovered] = import_react.useState(false);
@@ -87780,7 +87831,7 @@ function SubagentDashboard({ subagents, onClose, onSelect }) {
87780
87831
  });
87781
87832
  }
87782
87833
  //#endregion
87783
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
87834
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
87784
87835
  function statusInfo(status) {
87785
87836
  const minimal = isMinimalMode();
87786
87837
  switch (status) {
@@ -88068,7 +88119,7 @@ function JobsPanel({ jobs, onClose, onKill }) {
88068
88119
  });
88069
88120
  }
88070
88121
  //#endregion
88071
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
88122
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
88072
88123
  function formatDuration(ms) {
88073
88124
  if (ms < 1e3) return `${ms}ms`;
88074
88125
  if (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;
@@ -88538,7 +88589,7 @@ function FileActionsPanel({ path, isDir, focusIndex, onPick }) {
88538
88589
  });
88539
88590
  }
88540
88591
  //#endregion
88541
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
88592
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
88542
88593
  function oneLine(text, max = 70) {
88543
88594
  const compact = text.replace(/\s+/gu, " ").trim();
88544
88595
  return compact.length > max ? `${compact.slice(0, max - 1)}…` : compact;
@@ -88630,7 +88681,7 @@ function DiffLoading() {
88630
88681
  });
88631
88682
  }
88632
88683
  //#endregion
88633
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
88684
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
88634
88685
  /** `/copy` argument is a one-based reply age; omission selects the latest. */
88635
88686
  function parseCopyIndex(raw, count) {
88636
88687
  const value = raw.trim();
@@ -88683,7 +88734,7 @@ function gitDiffLines(report, labels) {
88683
88734
  ];
88684
88735
  }
88685
88736
  //#endregion
88686
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
88737
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
88687
88738
  /** Compact duration suitable for a terminal report row. */
88688
88739
  function formatStatsDuration(ms) {
88689
88740
  if (ms < 1e3) return `${Math.round(ms)} ms`;
@@ -88729,7 +88780,7 @@ function parsePresetManagement(input) {
88729
88780
  return { kind: "invalid" };
88730
88781
  }
88731
88782
  //#endregion
88732
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
88783
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
88733
88784
  const ALIASES = {
88734
88785
  map: "inspect",
88735
88786
  fixit: "repair",
@@ -88784,7 +88835,7 @@ function buildWorkflowCommand(name, rawInput = "") {
88784
88835
  };
88785
88836
  }
88786
88837
  //#endregion
88787
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
88838
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
88788
88839
  const EXTERNAL_SCHEME = /^https?:\/\//i;
88789
88840
  /**
88790
88841
  * Classify a clicked link target. Mirrors the previous handleOpenTarget
@@ -88809,7 +88860,7 @@ function classifyOpenTarget(url) {
88809
88860
  return { kind: "rejected" };
88810
88861
  }
88811
88862
  //#endregion
88812
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
88863
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
88813
88864
  /**
88814
88865
  * Subscribe to an external store's version counter at DEFAULT lane.
88815
88866
  *
@@ -88858,7 +88909,7 @@ function useExternalVersion(subscribe, getVersion, enabled = true) {
88858
88909
  return version;
88859
88910
  }
88860
88911
  //#endregion
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
88912
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/WaveBand.js
88862
88913
  /**
88863
88914
  * The wake — the whole session drawn as one row of glyphs.
88864
88915
  *
@@ -88995,7 +89046,7 @@ function toHex(colour) {
88995
89046
  return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
88996
89047
  }
88997
89048
  //#endregion
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
89049
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Ledger.js
88999
89050
  /**
89000
89051
  * The ledger — one line per event, columns aligned across every row.
89001
89052
  *
@@ -89241,7 +89292,7 @@ function Ledger({ rows, start, height, cursor, width, tick, arrivalTick, arrival
89241
89292
  });
89242
89293
  }
89243
89294
  //#endregion
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
89295
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Inspector.js
89245
89296
  /**
89246
89297
  * The inspector — full detail for the focused row, in a fixed-height slot.
89247
89298
  *
@@ -89347,7 +89398,7 @@ function Inspector({ node, detail, height, width, expanded, scroll }) {
89347
89398
  });
89348
89399
  }
89349
89400
  //#endregion
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
89401
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/HotspotView.js
89351
89402
  /**
89352
89403
  * The hotspot view — the session ranked by cost instead of ordered by time.
89353
89404
  *
@@ -89510,7 +89561,7 @@ function HotspotView({ agg, sort, width, height, cursor, tick, switchTick, onRow
89510
89561
  });
89511
89562
  }
89512
89563
  //#endregion
89513
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
89564
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
89514
89565
  /**
89515
89566
  * Trajectory query — whole-session structured filtering.
89516
89567
  *
@@ -89706,7 +89757,7 @@ function applyQuery(nodes, query) {
89706
89757
  };
89707
89758
  }
89708
89759
  //#endregion
89709
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
89760
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
89710
89761
  /**
89711
89762
  * The trajectory scene — the session's own screen.
89712
89763
  *
@@ -90194,7 +90245,7 @@ function TrajectoryScene({ channel, build, onClose }) {
90194
90245
  });
90195
90246
  }
90196
90247
  //#endregion
90197
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
90248
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
90198
90249
  /** Build the non-empty pages shown by the loaded-context inspector. */
90199
90250
  function contextPages(context) {
90200
90251
  const pages = [];
@@ -90378,7 +90429,7 @@ function LoadedContextScene({ context, onClose }) {
90378
90429
  });
90379
90430
  }
90380
90431
  //#endregion
90381
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
90432
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
90382
90433
  /** Rows the layout cannot do without: header, model/cwd line, dispatch
90383
90434
  * input, hints. */
90384
90435
  const MANDATORY_LINES = 4;
@@ -90987,7 +91038,7 @@ function AgentView({ channel, home, approval, onApprove, returnSessionId, onClos
90987
91038
  });
90988
91039
  }
90989
91040
  //#endregion
90990
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
91041
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
90991
91042
  /**
90992
91043
  * Persisted "the user has seen the trajectory" flag, at
90993
91044
  * `~/.chatcode-cli/tui/trajectory.json`.
@@ -91047,7 +91098,7 @@ function writeTrajectorySeen(dir = DATA_DIR) {
91047
91098
  }
91048
91099
  }
91049
91100
  //#endregion
91050
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
91101
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
91051
91102
  const NO_OVERLAY = { kind: "none" };
91052
91103
  /**
91053
91104
  * One-step wrap-around cursor move — the single source of the wrapping rule
@@ -91157,7 +91208,7 @@ function dialogOverlayVisible(overlay, gates) {
91157
91208
  }
91158
91209
  }
91159
91210
  //#endregion
91160
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
91211
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
91161
91212
  const LOGOUT_EXIT_DELAY_MS = 200;
91162
91213
  /** Shared empty snapshot for hosts whose channel has no event log. */
91163
91214
  const NO_EVENTS = [];
@@ -94982,7 +95033,7 @@ function ModelPickerLoading() {
94982
95033
  });
94983
95034
  }
94984
95035
  //#endregion
94985
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.25_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
95036
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
94986
95037
  const MAIN_CLI_PACKAGE = "@chatcode/chatcode-cli";
94987
95038
  function asError(value) {
94988
95039
  return value instanceof Error ? value : new Error(String(value));
@@ -95138,7 +95189,7 @@ function launchWebFrontend(cwd, options = {}) {
95138
95189
  }
95139
95190
  }
95140
95191
  //#endregion
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
95192
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/inject-channel.js
95142
95193
  /**
95143
95194
  * External injection channel — lets an out-of-process editor integration
95144
95195
  * (e.g. the `dsh.nvim` Neovim plugin) push text into the running TUI's
@@ -95333,7 +95384,7 @@ function openInjectChannel(sessionId, cwd, handlers, onError) {
95333
95384
  };
95334
95385
  }
95335
95386
  //#endregion
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
95387
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-auth.js
95337
95388
  const CHATCODE_CLI_OAUTH_TOKEN = "CHATCODE_CLI_OAUTH_TOKEN";
95338
95389
  const DEFAULT_SERVICE_WAIT_MS = 75e3;
95339
95390
  function authService(ctx) {
@@ -95507,7 +95558,7 @@ async function requireChatCodeStartupLogin(ctx, options) {
95507
95558
  return "ready";
95508
95559
  }
95509
95560
  //#endregion
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
95561
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-api.js
95511
95562
  /** Bind authenticated statistics requests to one TUI lifetime. */
95512
95563
  function createChatCodeAuthorizedPost(ctx) {
95513
95564
  const lifetime = new AbortController();
@@ -95546,7 +95597,7 @@ function createChatCodeAuthorizedPost(ctx) {
95546
95597
  };
95547
95598
  }
95548
95599
  //#endregion
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
95600
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.28_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin.js
95550
95601
  /**
95551
95602
  * Interactive TUI front door for ChatCode CLI agents.
95552
95603
  *