@chatcode/chatcode-cli 3.0.4-rc.2 → 3.0.4-rc.4
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.
- package/README.i18n.yaml +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/{command-errors-CScdshCl.js → command-errors-BJ_ZWzUU.js} +12 -12
- package/lib/{command-trees-Dc17MYfV.js → command-trees-C9b7-bci.js} +2 -2
- package/lib/{component-identity-DFJD_d-P.js → component-identity-Jb1DYjke.js} +3 -3
- package/lib/{extension-events-qXmhzmHo.js → extension-events-DKX4LXOd.js} +20 -20
- package/lib/{host-access-B0CRAwsX.js → host-access-CMg6rsWt.js} +1 -1
- package/lib/{keymap-CIoVICBI.js → keymap-CrC4pSNH.js} +2 -2
- package/lib/{plugin-BKQsL2xn.js → plugin-CmyMCGfb.js} +350 -339
- package/lib/{scenes-BRf-zMpF.js → scenes-Cil9RnwU.js} +3 -3
- package/lib/{settings-sections-4gMhveN_.js → settings-sections-jVCqXwdH.js} +3 -3
- package/lib/{statusBarSettings-CnmdSHkO.js → statusBarSettings-DNoBH3Cq.js} +3 -3
- package/lib/{themes-Ce97Zsri.js → themes-BdgeY3It.js} +12 -12
- package/lib/tui-compat-command-trees.js +1 -1
- package/lib/tui-compat-extensions.js +3 -3
- package/lib/tui-compat-plugin-host.js +5 -5
- package/lib/tui-compat-scenes.js +1 -1
- package/lib/tui-compat-settings-sections.js +1 -1
- package/lib/tui-compat-working-activity.js +1 -1
- package/lib/tui-compat-workspaces.js +1 -1
- package/lib/tui-compat.js +5 -5
- package/lib/{workspaces-1xrm-e3V.js → workspaces-DOatJRYr.js} +2 -2
- package/package.json +28 -28
- package/runtime/manifest.json +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +2 -1
- package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +271 -51
- package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/index.d.ts +19 -7
- package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/linux-lock.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/linux-native.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/windows-lock.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/package.json +4 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -3
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/adapter.d.ts +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +1 -1
- package/scripts/launch.mjs +8 -0
|
@@ -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-
|
|
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-
|
|
4
|
-
import { c as withHostRootCapability } from "./host-access-
|
|
5
|
-
import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-
|
|
6
|
-
import { n as getHostCommandTrees } from "./command-trees-
|
|
7
|
-
import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-
|
|
8
|
-
import { n as getHostSceneRuntime } from "./scenes-
|
|
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-
|
|
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-
|
|
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-
|
|
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-DNoBH3Cq.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-CrC4pSNH.js";
|
|
4
|
+
import { c as withHostRootCapability } from "./host-access-CMg6rsWt.js";
|
|
5
|
+
import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-DOatJRYr.js";
|
|
6
|
+
import { n as getHostCommandTrees } from "./command-trees-C9b7-bci.js";
|
|
7
|
+
import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-jVCqXwdH.js";
|
|
8
|
+
import { n as getHostSceneRuntime } from "./scenes-Cil9RnwU.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-DKX4LXOd.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-BJ_ZWzUU.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-BdgeY3It.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.
|
|
1201
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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.
|
|
1271
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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.
|
|
1384
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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.
|
|
1395
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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.
|
|
1538
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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.
|
|
1579
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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.
|
|
1598
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_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`).
|
|
@@ -6528,7 +6528,7 @@ function resolveStartupLang(dir = PREFS_DIR$6, env = process.env) {
|
|
|
6528
6528
|
return readLangPref(dir) ?? "zh";
|
|
6529
6529
|
}
|
|
6530
6530
|
//#endregion
|
|
6531
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
6531
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
|
|
6532
6532
|
/**
|
|
6533
6533
|
* Local slash commands for the dsh-tui TUI. Claude Code's command system is
|
|
6534
6534
|
* deeply wired into its engine; dsh-tui ships a small built-in set with the
|
|
@@ -6950,15 +6950,21 @@ function completeCommands(input, roots = LOCAL_COMMANDS, children = () => []) {
|
|
|
6950
6950
|
if (!body.split(/[\t ]+/u).every((token) => token === "" || isCommandCompletionToken(token))) return [];
|
|
6951
6951
|
const trailingSeparator = /[\t ]$/u.test(body);
|
|
6952
6952
|
const tokens = body.split(/[\t ]+/u);
|
|
6953
|
-
|
|
6953
|
+
let prefix = trailingSeparator ? "" : tokens.pop() ?? "";
|
|
6954
6954
|
if (trailingSeparator && tokens.at(-1) === "") tokens.pop();
|
|
6955
|
+
if (tokens.length === 0 && !trailingSeparator) {
|
|
6956
|
+
if (roots.find((command) => command.name.toLowerCase() === prefix.toLowerCase())?.argumentSuggestions?.length) {
|
|
6957
|
+
tokens.push(prefix);
|
|
6958
|
+
prefix = "";
|
|
6959
|
+
}
|
|
6960
|
+
}
|
|
6955
6961
|
const canonicalPath = [];
|
|
6956
6962
|
let candidates = roots;
|
|
6957
6963
|
for (const token of tokens) {
|
|
6958
6964
|
const resolved = resolveCompletionNode(candidates, token);
|
|
6959
6965
|
if (resolved === void 0) return [];
|
|
6960
6966
|
canonicalPath.push(resolved.name);
|
|
6961
|
-
candidates = children(canonicalPath);
|
|
6967
|
+
candidates = canonicalPath.length === 1 ? roots.find((root) => root.name === resolved.name)?.argumentSuggestions ?? children(canonicalPath) : children(canonicalPath);
|
|
6962
6968
|
}
|
|
6963
6969
|
const normalizedPrefix = prefix.toLowerCase();
|
|
6964
6970
|
return candidates.flatMap((candidate) => {
|
|
@@ -6986,7 +6992,7 @@ function matchingCompletionToken(candidate, prefix) {
|
|
|
6986
6992
|
return candidate.aliases?.find((alias) => alias.toLowerCase().startsWith(prefix));
|
|
6987
6993
|
}
|
|
6988
6994
|
//#endregion
|
|
6989
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
6995
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
|
|
6990
6996
|
/**
|
|
6991
6997
|
* Launcher contract for `dsh-tui --resume`: the TUI writes the chosen session
|
|
6992
6998
|
* id to `<CHATCODE_CLI_HOME>/tui/resume.txt`, and the launcher feeds it back as
|
|
@@ -7153,7 +7159,7 @@ function forgetAgentViewSession(sessionId) {
|
|
|
7153
7159
|
} catch {}
|
|
7154
7160
|
}
|
|
7155
7161
|
//#endregion
|
|
7156
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7162
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
|
|
7157
7163
|
/**
|
|
7158
7164
|
* One searchable local tag per persisted session.
|
|
7159
7165
|
*
|
|
@@ -7303,7 +7309,7 @@ function forgetSessionTag(sessionId, dir = DATA_DIR) {
|
|
|
7303
7309
|
return setSessionTag(sessionId, void 0, dir).ok;
|
|
7304
7310
|
}
|
|
7305
7311
|
//#endregion
|
|
7306
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7312
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/liveSession.js
|
|
7307
7313
|
/**
|
|
7308
7314
|
* Live Session compatibility facade.
|
|
7309
7315
|
*
|
|
@@ -7465,7 +7471,7 @@ function liveSessionCreateOptions(request) {
|
|
|
7465
7471
|
};
|
|
7466
7472
|
}
|
|
7467
7473
|
//#endregion
|
|
7468
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7474
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionLog.js
|
|
7469
7475
|
/**
|
|
7470
7476
|
* Legacy third-party session-event types the TUI vouches for as ephemeral
|
|
7471
7477
|
* UI frames — safe for the strict read path to accept and skip. Exported
|
|
@@ -8157,7 +8163,7 @@ function appendSessionTitle(sessionId, title) {
|
|
|
8157
8163
|
}
|
|
8158
8164
|
}
|
|
8159
8165
|
//#endregion
|
|
8160
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8166
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionEvent.js
|
|
8161
8167
|
/** Narrow an unknown/session event to the retired durable chunk envelope. */
|
|
8162
8168
|
function legacyAssistantChunkOf(event) {
|
|
8163
8169
|
if (event === null || typeof event !== "object") return void 0;
|
|
@@ -8171,7 +8177,7 @@ function legacyAssistantChunkOf(event) {
|
|
|
8171
8177
|
return event;
|
|
8172
8178
|
}
|
|
8173
8179
|
//#endregion
|
|
8174
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8180
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compaction.js
|
|
8175
8181
|
/**
|
|
8176
8182
|
* Recognize both the current checkpoint source and the legacy plugin marker.
|
|
8177
8183
|
* Harness session format v4 migrated `plugin/compact` to the dedicated
|
|
@@ -8182,7 +8188,7 @@ function isCompactionCheckpointSource(source) {
|
|
|
8182
8188
|
return source.kind === "compact-checkpoint" || source.kind === "plugin" && source.plugin === "compact";
|
|
8183
8189
|
}
|
|
8184
8190
|
//#endregion
|
|
8185
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8191
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessionTree.js
|
|
8186
8192
|
const TREE_FILTERS = [
|
|
8187
8193
|
"default",
|
|
8188
8194
|
"no-tools",
|
|
@@ -10338,7 +10344,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10338
10344
|
module.exports = subset;
|
|
10339
10345
|
}));
|
|
10340
10346
|
//#endregion
|
|
10341
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
10347
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
|
|
10342
10348
|
var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10343
10349
|
const internalRe = require_re();
|
|
10344
10350
|
const constants = require_constants$1();
|
|
@@ -10431,7 +10437,7 @@ function cmdEscapeArgument(arg, doubleEscapeMetaChars = false) {
|
|
|
10431
10437
|
return out;
|
|
10432
10438
|
}
|
|
10433
10439
|
//#endregion
|
|
10434
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
10440
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
|
|
10435
10441
|
const PACKAGE_NAME = "@chatcode/cco-tui";
|
|
10436
10442
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
10437
10443
|
const GITHUB_REPO = "ccch1mneyyy/dsh-TUI";
|
|
@@ -11782,7 +11788,7 @@ async function restartTui(sessionId, options = {}) {
|
|
|
11782
11788
|
});
|
|
11783
11789
|
}
|
|
11784
11790
|
//#endregion
|
|
11785
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
11791
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/header.js
|
|
11786
11792
|
/** A finite number, or undefined for anything else (NaN and ±Infinity included). */
|
|
11787
11793
|
function finiteNumber(value) {
|
|
11788
11794
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
@@ -11856,7 +11862,7 @@ function classify(header) {
|
|
|
11856
11862
|
return { kind: "root" };
|
|
11857
11863
|
}
|
|
11858
11864
|
//#endregion
|
|
11859
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
11865
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/frames.js
|
|
11860
11866
|
/**
|
|
11861
11867
|
* Bounded reads over the JSONL backend's concatenated-Zstandard session logs.
|
|
11862
11868
|
*
|
|
@@ -12102,7 +12108,7 @@ function decodeTail(window) {
|
|
|
12102
12108
|
return decodeFrames(window.buffer, window.whole ? walkFrames(window.buffer) : resyncFrames(window.buffer));
|
|
12103
12109
|
}
|
|
12104
12110
|
//#endregion
|
|
12105
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12111
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/digest.js
|
|
12106
12112
|
/**
|
|
12107
12113
|
* What a bounded read can learn about a session log.
|
|
12108
12114
|
*
|
|
@@ -12585,7 +12591,7 @@ function previewSession(path, limit) {
|
|
|
12585
12591
|
return entries.slice(-limit);
|
|
12586
12592
|
}
|
|
12587
12593
|
//#endregion
|
|
12588
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12594
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/artifact.js
|
|
12589
12595
|
/** Read-only artifact lookup for session summaries and previews. */
|
|
12590
12596
|
/** Highest published compressed generation; temporary migration files are ignored. */
|
|
12591
12597
|
function inDirectory(directory) {
|
|
@@ -12638,7 +12644,7 @@ function findSessionArtifact(sessionId, target) {
|
|
|
12638
12644
|
}
|
|
12639
12645
|
}
|
|
12640
12646
|
//#endregion
|
|
12641
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12647
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/store.js
|
|
12642
12648
|
/**
|
|
12643
12649
|
* The session index — a local cache keyed by the backend's own change token.
|
|
12644
12650
|
*
|
|
@@ -12802,7 +12808,7 @@ function noteBranch(sessionId, branch) {
|
|
|
12802
12808
|
writeIndex(index);
|
|
12803
12809
|
}
|
|
12804
12810
|
//#endregion
|
|
12805
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12811
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/list.js
|
|
12806
12812
|
/**
|
|
12807
12813
|
* Building the session list.
|
|
12808
12814
|
*
|
|
@@ -13083,7 +13089,7 @@ async function locateSession(source, sessionId, signal) {
|
|
|
13083
13089
|
return match === void 0 ? void 0 : locate$1(source, match.raw, sessionId);
|
|
13084
13090
|
}
|
|
13085
13091
|
//#endregion
|
|
13086
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13092
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/agent-view.js
|
|
13087
13093
|
/**
|
|
13088
13094
|
* Agent view (CC `claude agents`) derivation helpers — pure functions over
|
|
13089
13095
|
* session events that the channel folds into {@link AgentViewRow}s. Kept in
|
|
@@ -13313,7 +13319,7 @@ function featureOn(config, name) {
|
|
|
13313
13319
|
return config.mode !== "minimal";
|
|
13314
13320
|
}
|
|
13315
13321
|
//#endregion
|
|
13316
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13322
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
|
|
13317
13323
|
/**
|
|
13318
13324
|
* Persisted working-activity indicator preference, mirroring the pi
|
|
13319
13325
|
* working-activity extension's `~/.pi/agent/working-activity.json`
|
|
@@ -13382,7 +13388,7 @@ function writeActivityFrames(name, dir = PREFS_DIR$5) {
|
|
|
13382
13388
|
}
|
|
13383
13389
|
}
|
|
13384
13390
|
//#endregion
|
|
13385
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13391
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
|
|
13386
13392
|
const pathSeparators = /[\\/]/;
|
|
13387
13393
|
function isPathLikeQuery(query) {
|
|
13388
13394
|
return query.startsWith(".") || query.startsWith("~") || query.startsWith("/") || /^[A-Za-z]:[\\/]/.test(query) || pathSeparators.test(query);
|
|
@@ -13405,7 +13411,7 @@ function rankFileCandidates(candidates, query, topK) {
|
|
|
13405
13411
|
return topK === void 0 ? ranked : ranked.slice(0, Math.max(0, topK));
|
|
13406
13412
|
}
|
|
13407
13413
|
//#endregion
|
|
13408
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13414
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
|
|
13409
13415
|
/**
|
|
13410
13416
|
* Persisted reasoning-effort preference (`~/.chatcode-cli/tui/effort.json`). Set via
|
|
13411
13417
|
* `/effort` (slider or `/effort <id>`; `/effort status` reports the current
|
|
@@ -13447,7 +13453,7 @@ function writeEffortPref(effort, dir = PREFS_DIR$4) {
|
|
|
13447
13453
|
}
|
|
13448
13454
|
}
|
|
13449
13455
|
//#endregion
|
|
13450
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13456
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
|
|
13451
13457
|
/**
|
|
13452
13458
|
* Persisted model-route preference (`/model` picker choice), kept at
|
|
13453
13459
|
* `~/.chatcode-cli/model.json` (`provider` + `model` keys) so CLI and Web share it
|
|
@@ -13530,7 +13536,7 @@ function writeModelPref(provider, model, dir = PREFS_DIR$3) {
|
|
|
13530
13536
|
}
|
|
13531
13537
|
}
|
|
13532
13538
|
//#endregion
|
|
13533
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13539
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
|
|
13534
13540
|
/**
|
|
13535
13541
|
* Model route resolution (issue #67). The `(provider, model)` pair is a
|
|
13536
13542
|
* single value: every source either supplies the WHOLE route or is skipped,
|
|
@@ -13765,7 +13771,7 @@ function orderModelProviders(providers) {
|
|
|
13765
13771
|
return [...providers].sort((left, right) => rank(left.id) - rank(right.id));
|
|
13766
13772
|
}
|
|
13767
13773
|
//#endregion
|
|
13768
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13774
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelSettings.js
|
|
13769
13775
|
/** Custom-model forms over the same settings and credential services used by Web. */
|
|
13770
13776
|
function record(value) {
|
|
13771
13777
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -13967,7 +13973,7 @@ function createCustomModelSettingsStore(path, host) {
|
|
|
13967
13973
|
};
|
|
13968
13974
|
}
|
|
13969
13975
|
//#endregion
|
|
13970
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13976
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelTest.js
|
|
13971
13977
|
/** Direct, one-shot generation used by `/model-config` before a model is registered. */
|
|
13972
13978
|
function requestEndpoint(baseURL, api) {
|
|
13973
13979
|
const url = new URL(baseURL);
|
|
@@ -14056,7 +14062,7 @@ async function testCustomModelConnection(request, fetchImpl = fetch) {
|
|
|
14056
14062
|
}
|
|
14057
14063
|
}
|
|
14058
14064
|
//#endregion
|
|
14059
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14065
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/catalogDefaults.js
|
|
14060
14066
|
/** Read display defaults from the host adapter's own installed pi-ai catalog. */
|
|
14061
14067
|
const catalogs = /* @__PURE__ */ new Map();
|
|
14062
14068
|
async function installedCatalog(anchor) {
|
|
@@ -14103,7 +14109,7 @@ async function catalogProviderDefaults(provider, model, anchor = import.meta.url
|
|
|
14103
14109
|
};
|
|
14104
14110
|
}
|
|
14105
14111
|
//#endregion
|
|
14106
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14112
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
|
|
14107
14113
|
/**
|
|
14108
14114
|
* Persisted agent-preset preference (`/preset` picker choice), kept at
|
|
14109
14115
|
* `~/.chatcode-cli/tui/agent-preset.json` (`preset` key) so the choice survives
|
|
@@ -14162,7 +14168,7 @@ function migratePresetPref(requested, resolved, dir = PREFS_DIR$2) {
|
|
|
14162
14168
|
return requested === void 0 || resolved === void 0 || requested === resolved ? true : writePresetPref(resolved, dir);
|
|
14163
14169
|
}
|
|
14164
14170
|
//#endregion
|
|
14165
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14171
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/persistedSession.js
|
|
14166
14172
|
/** Undefined means the service exposes neither supported read API. */
|
|
14167
14173
|
async function readPersistedSession(persistence, id) {
|
|
14168
14174
|
if (persistence === null || typeof persistence !== "object") return void 0;
|
|
@@ -14182,7 +14188,7 @@ async function readPersistedSession(persistence, id) {
|
|
|
14182
14188
|
if (typeof reader.load === "function") return reader.load(id);
|
|
14183
14189
|
}
|
|
14184
14190
|
//#endregion
|
|
14185
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14191
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-resolution.js
|
|
14186
14192
|
/**
|
|
14187
14193
|
* Agent-preset resolution across upstream prerelease lines.
|
|
14188
14194
|
*
|
|
@@ -14220,7 +14226,7 @@ async function resolveCompatiblePreset(presets, requested) {
|
|
|
14220
14226
|
return presets.resolve(requested);
|
|
14221
14227
|
}
|
|
14222
14228
|
//#endregion
|
|
14223
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14229
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/presets.js
|
|
14224
14230
|
/**
|
|
14225
14231
|
* Agent-presets roster integration (issue #8): compose each session's
|
|
14226
14232
|
* model-facing world (tools, prompt sections, projections) from one preset
|
|
@@ -14370,7 +14376,7 @@ function serviceForAgent(ctx, agent, key) {
|
|
|
14370
14376
|
return ctx.get(key);
|
|
14371
14377
|
}
|
|
14372
14378
|
//#endregion
|
|
14373
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14379
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-management.js
|
|
14374
14380
|
const failureReason = (error) => error instanceof Error ? error.message : String(error);
|
|
14375
14381
|
/** Read a roster-resolved composition without bypassing preset ownership. */
|
|
14376
14382
|
async function readPresetComposition(presets, presetId) {
|
|
@@ -14427,7 +14433,7 @@ async function removePresetComposition(presets, presetId) {
|
|
|
14427
14433
|
}
|
|
14428
14434
|
}
|
|
14429
14435
|
//#endregion
|
|
14430
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14436
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/session-organization.js
|
|
14431
14437
|
/** Adapter-only readers for optional Harness session-organization services. */
|
|
14432
14438
|
const STAT_KEYS = [
|
|
14433
14439
|
"turns",
|
|
@@ -14488,7 +14494,7 @@ function presetCompositionRows(content, limit = 80) {
|
|
|
14488
14494
|
};
|
|
14489
14495
|
}
|
|
14490
14496
|
//#endregion
|
|
14491
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14497
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
|
|
14492
14498
|
/**
|
|
14493
14499
|
* Debug logger for the ported Ink core. Writes to stderr only when
|
|
14494
14500
|
* `CHATCODE_CLI_TUI_DEBUG` (or its legacy alias) is set, so normal runs stay quiet.
|
|
@@ -14518,7 +14524,7 @@ function logMouseDebug(message, fields) {
|
|
|
14518
14524
|
} catch {}
|
|
14519
14525
|
}
|
|
14520
14526
|
//#endregion
|
|
14521
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14527
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
|
|
14522
14528
|
/**
|
|
14523
14529
|
* `@` file-mention parsing (issue #15).
|
|
14524
14530
|
*
|
|
@@ -14664,7 +14670,7 @@ function mentionAtCaret(value, cursor) {
|
|
|
14664
14670
|
};
|
|
14665
14671
|
}
|
|
14666
14672
|
//#endregion
|
|
14667
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14673
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
|
|
14668
14674
|
/** Format only the files in the authoritative loaded-context projection. */
|
|
14669
14675
|
function loadedFileLines(files, copy) {
|
|
14670
14676
|
if (files === void 0) return [copy.unavailable];
|
|
@@ -14779,7 +14785,7 @@ function codeRatioLines(report, copy, maxAuthors = 20) {
|
|
|
14779
14785
|
return lines;
|
|
14780
14786
|
}
|
|
14781
14787
|
//#endregion
|
|
14782
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14788
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
|
|
14783
14789
|
/**
|
|
14784
14790
|
* Cordis-free theme catalog shared by future pickers, commands and hosts.
|
|
14785
14791
|
*
|
|
@@ -14860,7 +14866,7 @@ function listThemeCatalog(host) {
|
|
|
14860
14866
|
return Object.freeze(entries);
|
|
14861
14867
|
}
|
|
14862
14868
|
//#endregion
|
|
14863
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14869
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
|
|
14864
14870
|
/**
|
|
14865
14871
|
* Configurable Shift+Tab session modes (the `modes` dsh-tui plugin config):
|
|
14866
14872
|
* each mode is a named bundle of optional DSH plane switches — plan mode
|
|
@@ -14924,7 +14930,7 @@ function modeDisplayName(spec) {
|
|
|
14924
14930
|
return spec.id;
|
|
14925
14931
|
}
|
|
14926
14932
|
//#endregion
|
|
14927
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14933
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagents.js
|
|
14928
14934
|
/** Unified subagent activity domain model used by the adapter and every view. */
|
|
14929
14935
|
const MAX_OUTPUT_EVENTS = 160;
|
|
14930
14936
|
const MAX_OUTPUT_LINES = 160;
|
|
@@ -15302,7 +15308,7 @@ function formatJobDuration(job, now = Date.now()) {
|
|
|
15302
15308
|
return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart(2, "0")}m`;
|
|
15303
15309
|
}
|
|
15304
15310
|
//#endregion
|
|
15305
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15311
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
|
|
15306
15312
|
/**
|
|
15307
15313
|
* Minimal mode: one process-wide flag gating decorative UI (header splash,
|
|
15308
15314
|
* emoji status glyphs and non-tool text colors). Footer field choices remain
|
|
@@ -15322,7 +15328,7 @@ function setMinimalMode(enabled) {
|
|
|
15322
15328
|
minimal = enabled;
|
|
15323
15329
|
}
|
|
15324
15330
|
//#endregion
|
|
15325
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15331
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspace.js
|
|
15326
15332
|
function registryOf(ctx) {
|
|
15327
15333
|
const registry = ctx.get("workspaceRegistry");
|
|
15328
15334
|
if (registry === void 0 || typeof registry.pinSession !== "function" || typeof registry.unpinSession !== "function") return void 0;
|
|
@@ -15397,7 +15403,7 @@ async function unarchiveWorkspaceSession(ctx, id) {
|
|
|
15397
15403
|
return true;
|
|
15398
15404
|
}
|
|
15399
15405
|
//#endregion
|
|
15400
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15406
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/contract.js
|
|
15401
15407
|
/**
|
|
15402
15408
|
* Upstream compatibility contract.
|
|
15403
15409
|
*
|
|
@@ -15826,7 +15832,7 @@ function pluginsInfoLines(args, deps) {
|
|
|
15826
15832
|
return lines;
|
|
15827
15833
|
}
|
|
15828
15834
|
//#endregion
|
|
15829
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15835
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/mcp-status.js
|
|
15830
15836
|
/** Loader and tool-registry projection used by the TUI's `/mcp` report. */
|
|
15831
15837
|
const MCP_CLIENT_PACKAGE = "@deepseek-ai/dsh-mcp-client";
|
|
15832
15838
|
const FIBER_ACTIVE = 2;
|
|
@@ -15879,7 +15885,7 @@ function collectMcpServerStatus(schemas, entries) {
|
|
|
15879
15885
|
}));
|
|
15880
15886
|
}
|
|
15881
15887
|
//#endregion
|
|
15882
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15888
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/format.js
|
|
15883
15889
|
/**
|
|
15884
15890
|
* Number, token-count, and duration formatters shared by the status line
|
|
15885
15891
|
* and message rows.
|
|
@@ -15942,7 +15948,7 @@ function formatDuration$4(durationMs, options = {}) {
|
|
|
15942
15948
|
return parts.join(" ");
|
|
15943
15949
|
}
|
|
15944
15950
|
//#endregion
|
|
15945
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15951
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
|
|
15946
15952
|
/**
|
|
15947
15953
|
* Return the current context occupancy. The latest request is authoritative:
|
|
15948
15954
|
* its uncached input and cache read/write tokens are all part of that request's
|
|
@@ -16326,7 +16332,7 @@ function prepareMemoryTargetFile(requested, candidates, cwd, dshHome) {
|
|
|
16326
16332
|
}
|
|
16327
16333
|
}
|
|
16328
16334
|
//#endregion
|
|
16329
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16335
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/channel.js
|
|
16330
16336
|
/** Return the step left open by a tree fork cut within one turn. */
|
|
16331
16337
|
function openStepAtForkCut(events, turn) {
|
|
16332
16338
|
for (let i = events.length - 1; i >= 0; i--) {
|
|
@@ -21260,11 +21266,16 @@ function createChannel(ctx, initialAgent, options) {
|
|
|
21260
21266
|
if (HIDDEN_COMMAND_NAMES.has(descriptor.name)) continue;
|
|
21261
21267
|
if (merged.some((command) => command.name === descriptor.name)) continue;
|
|
21262
21268
|
const descriptions = commandTrees?.descriptions(descriptor.name);
|
|
21269
|
+
const input = descriptor.input;
|
|
21263
21270
|
merged.push({
|
|
21264
21271
|
name: descriptor.name,
|
|
21265
21272
|
description: descriptor.description,
|
|
21266
21273
|
...descriptions === void 0 ? {} : { descriptions },
|
|
21267
21274
|
tag: descriptor.input?.hint,
|
|
21275
|
+
...input?.suggestions === void 0 ? {} : { argumentSuggestions: input.suggestions.map((suggestion) => ({
|
|
21276
|
+
name: suggestion.value,
|
|
21277
|
+
description: suggestion.description
|
|
21278
|
+
})) },
|
|
21268
21279
|
external: true,
|
|
21269
21280
|
...skillCommands.has(descriptor.name) ? { skill: true } : {}
|
|
21270
21281
|
});
|
|
@@ -23016,7 +23027,7 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
|
|
|
23016
23027
|
};
|
|
23017
23028
|
}
|
|
23018
23029
|
//#endregion
|
|
23019
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23030
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/childStderr.js
|
|
23020
23031
|
/**
|
|
23021
23032
|
* Child-process stderr guard (issue #17).
|
|
23022
23033
|
*
|
|
@@ -23185,7 +23196,7 @@ function createChildStderrReporter(notify, options = {}) {
|
|
|
23185
23196
|
};
|
|
23186
23197
|
}
|
|
23187
23198
|
//#endregion
|
|
23188
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23199
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions.js
|
|
23189
23200
|
/**
|
|
23190
23201
|
* Ask-user-question store — the UI-side half of the DSH user-interaction
|
|
23191
23202
|
* seam (`ctx.userQuestions`). The harness's model-facing
|
|
@@ -23425,7 +23436,7 @@ var QuestionStore = class {
|
|
|
23425
23436
|
}
|
|
23426
23437
|
};
|
|
23427
23438
|
//#endregion
|
|
23428
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23439
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerGuard.js
|
|
23429
23440
|
/**
|
|
23430
23441
|
* Question-provider seat guard (issue #98 security follow-up).
|
|
23431
23442
|
*
|
|
@@ -23537,7 +23548,7 @@ function incumbentQuestionProviderId(service) {
|
|
|
23537
23548
|
} catch {}
|
|
23538
23549
|
}
|
|
23539
23550
|
//#endregion
|
|
23540
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23551
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions-answerer.js
|
|
23541
23552
|
/**
|
|
23542
23553
|
* User-question answerer compatibility.
|
|
23543
23554
|
*
|
|
@@ -23596,7 +23607,7 @@ function prepareQuestionAnswerer(ctx, service, answerer) {
|
|
|
23596
23607
|
}
|
|
23597
23608
|
}
|
|
23598
23609
|
//#endregion
|
|
23599
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23610
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/approvals.js
|
|
23600
23611
|
/**
|
|
23601
23612
|
* Approval store — the UI-side answerer half of the DSH approval seam
|
|
23602
23613
|
* (`ctx.approval`). The harness's permission layer asks
|
|
@@ -23990,7 +24001,7 @@ var ApprovalStore = class {
|
|
|
23990
24001
|
}
|
|
23991
24002
|
};
|
|
23992
24003
|
//#endregion
|
|
23993
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24004
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/promptDebug.js
|
|
23994
24005
|
/**
|
|
23995
24006
|
* On-demand capture of every final AgentLoop request context observed for a
|
|
23996
24007
|
* live session.
|
|
@@ -24136,7 +24147,7 @@ function registerPromptDebug(ctx) {
|
|
|
24136
24147
|
}));
|
|
24137
24148
|
}
|
|
24138
24149
|
//#endregion
|
|
24139
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24150
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
|
|
24140
24151
|
/**
|
|
24141
24152
|
* One-time local migrations (`~/.chatcode-cli/tui/migrations.json`), keyed by stable
|
|
24142
24153
|
* migration id → ISO timestamp. Named keys (not a bare flag) so later
|
|
@@ -24227,7 +24238,7 @@ async function commitFullscreenFactoryMigration(plan, options) {
|
|
|
24227
24238
|
} catch {}
|
|
24228
24239
|
}
|
|
24229
24240
|
//#endregion
|
|
24230
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24241
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/retired-packaged-presets.js
|
|
24231
24242
|
const OWNER = "@chatcode/cco-tui";
|
|
24232
24243
|
const MARKER = ".dsh-tui-managed.json";
|
|
24233
24244
|
const RETIRED_PACKAGED_PRESETS = ["liangshen"];
|
|
@@ -24269,7 +24280,7 @@ function cleanupRetiredPackagedPresets(options = {}) {
|
|
|
24269
24280
|
return results;
|
|
24270
24281
|
}
|
|
24271
24282
|
//#endregion
|
|
24272
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24283
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
|
|
24273
24284
|
/** The browser's default view: this project, conversations only. */
|
|
24274
24285
|
const DEFAULT_FILTERS = {
|
|
24275
24286
|
query: "",
|
|
@@ -24603,7 +24614,7 @@ function windowEnd(rows, top, budget) {
|
|
|
24603
24614
|
return at;
|
|
24604
24615
|
}
|
|
24605
24616
|
//#endregion
|
|
24606
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24617
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/resume.js
|
|
24607
24618
|
/** Resolve launch-time resume flags against persisted conversations. */
|
|
24608
24619
|
/**
|
|
24609
24620
|
* Select the latest conversation in the exact launch directory for bare flags.
|
|
@@ -24623,7 +24634,7 @@ async function resolveStartupSessionId(source, argv, cwd) {
|
|
|
24623
24634
|
return latest.id;
|
|
24624
24635
|
}
|
|
24625
24636
|
//#endregion
|
|
24626
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24637
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
|
|
24627
24638
|
/** Resolve a fresh session's working directory without widening it to a Git ancestor. */
|
|
24628
24639
|
/**
|
|
24629
24640
|
* Explicit configuration wins; otherwise keep the invoking directory, even
|
|
@@ -24636,7 +24647,7 @@ function resolveSessionCwd(configured, start = process.cwd()) {
|
|
|
24636
24647
|
return resolve(start, configured ?? "");
|
|
24637
24648
|
}
|
|
24638
24649
|
//#endregion
|
|
24639
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24650
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
|
|
24640
24651
|
/**
|
|
24641
24652
|
* Open URLs, files and folders with the platform's default handler, fully
|
|
24642
24653
|
* detached from the TUI process (fire-and-forget: no stdio pipes, no wait,
|
|
@@ -24797,7 +24808,7 @@ function revealInFileManager(filePath) {
|
|
|
24797
24808
|
if (existsSync(dir)) openExternal(dir);
|
|
24798
24809
|
}
|
|
24799
24810
|
//#endregion
|
|
24800
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24811
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
|
|
24801
24812
|
/** ChatCode API request capability. Credentials stay in the host adapter. */
|
|
24802
24813
|
const CHATCODE_API_BASE_URL = "https://chatcode.chinaunicom.cn";
|
|
24803
24814
|
/** CVP(天梯)平台基础 URL,承载 modules/notification 等公开/独立鉴权模块接口。 */
|
|
@@ -24805,7 +24816,7 @@ const CVP_CHATCODE_API_URL = `${CHATCODE_API_BASE_URL}/cvp`;
|
|
|
24805
24816
|
/** Each mounted TUI receives its own host-authorized request function. */
|
|
24806
24817
|
const ChatCodeApiContext = (0, import_react.createContext)(void 0);
|
|
24807
24818
|
//#endregion
|
|
24808
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24819
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
|
|
24809
24820
|
const RELEASE_NOTE_PATH = join(DATA_DIR, "release-notes.json");
|
|
24810
24821
|
const RELEASE_NOTE_ENDPOINT = `${CHATCODE_API_BASE_URL}/chatcode/api/v1/cli/version/release-note`;
|
|
24811
24822
|
function acknowledgedVersion() {
|
|
@@ -24901,7 +24912,7 @@ var ReleaseNotesStore = class {
|
|
|
24901
24912
|
}
|
|
24902
24913
|
};
|
|
24903
24914
|
//#endregion
|
|
24904
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24915
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
|
|
24905
24916
|
const MAIN_CLI_PACKAGES = new Set(["@chatcode/chatcode-cli", "@chatcode/chatcode-cli-test"]);
|
|
24906
24917
|
const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u;
|
|
24907
24918
|
const PRODUCT_VERSION_ENV = "CHATCODE_CLI_PRODUCT_VERSION";
|
|
@@ -24941,7 +24952,7 @@ function resolveProductVersion(options = {}) {
|
|
|
24941
24952
|
/** Product version shown by the TUI, shared with `cco --version` and Web. */
|
|
24942
24953
|
const PRODUCT_VERSION = resolveProductVersion();
|
|
24943
24954
|
//#endregion
|
|
24944
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24955
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
|
|
24945
24956
|
const MAX_CAPTURE_BYTES = 64 * 1024;
|
|
24946
24957
|
function appendBounded(chunks, chunk, total) {
|
|
24947
24958
|
if (total.value >= MAX_CAPTURE_BYTES) return;
|
|
@@ -25011,7 +25022,7 @@ function execFileNoThrow(file, args = [], options) {
|
|
|
25011
25022
|
});
|
|
25012
25023
|
}
|
|
25013
25024
|
//#endregion
|
|
25014
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25025
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
|
|
25015
25026
|
const REPORT_TIMEOUT_MS = 2e3;
|
|
25016
25027
|
const RELEASE_TIMEOUT_MS = 500;
|
|
25017
25028
|
const RETRY_DELAYS_MS = [
|
|
@@ -25399,7 +25410,7 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((expo
|
|
|
25399
25410
|
})();
|
|
25400
25411
|
}));
|
|
25401
25412
|
//#endregion
|
|
25402
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25413
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
|
|
25403
25414
|
var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25404
25415
|
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
25405
25416
|
else module.exports = require_react_jsx_runtime_development();
|
|
@@ -25456,7 +25467,7 @@ function writeThemePref(name, dir = PREFS_DIR) {
|
|
|
25456
25467
|
}
|
|
25457
25468
|
}
|
|
25458
25469
|
//#endregion
|
|
25459
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25470
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
|
|
25460
25471
|
const EMPTY_THEME_SNAPSHOT = Object.freeze([]);
|
|
25461
25472
|
const subscribeNoThemes = (_listener) => () => {};
|
|
25462
25473
|
/**
|
|
@@ -25484,7 +25495,7 @@ function useRuntimeThemeSnapshot(themeHost) {
|
|
|
25484
25495
|
return import_react.useSyncExternalStore(subscribeThemes, getThemeSnapshot, getThemeSnapshot);
|
|
25485
25496
|
}
|
|
25486
25497
|
//#endregion
|
|
25487
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25498
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event.js
|
|
25488
25499
|
/**
|
|
25489
25500
|
* Base class for events with immediate-propagation control.
|
|
25490
25501
|
*
|
|
@@ -25508,7 +25519,7 @@ var Event = class {
|
|
|
25508
25519
|
}
|
|
25509
25520
|
};
|
|
25510
25521
|
//#endregion
|
|
25511
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25522
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/emitter.js
|
|
25512
25523
|
/**
|
|
25513
25524
|
* Node-compatible event emitter that is aware of the `Event` class, so
|
|
25514
25525
|
* `emit` respects `stopImmediatePropagation()` on dispatched events.
|
|
@@ -25541,7 +25552,7 @@ var EventEmitter$1 = class extends EventEmitter {
|
|
|
25541
25552
|
}
|
|
25542
25553
|
};
|
|
25543
25554
|
//#endregion
|
|
25544
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25555
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/StdinContext.js
|
|
25545
25556
|
/**
|
|
25546
25557
|
* `StdinContext` is a React context, which exposes input stream.
|
|
25547
25558
|
*/
|
|
@@ -25555,14 +25566,14 @@ const StdinContext = (0, import_react.createContext)({
|
|
|
25555
25566
|
});
|
|
25556
25567
|
StdinContext.displayName = "InternalStdinContext";
|
|
25557
25568
|
//#endregion
|
|
25558
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25569
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-stdin.js
|
|
25559
25570
|
/**
|
|
25560
25571
|
* React hook exposing the stdin stream and raw-mode helpers from `StdinContext`.
|
|
25561
25572
|
* @returns the `StdinContext` value.
|
|
25562
25573
|
*/
|
|
25563
25574
|
const useStdin = () => (0, import_react.useContext)(StdinContext);
|
|
25564
25575
|
//#endregion
|
|
25565
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25576
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/ansi.js
|
|
25566
25577
|
/**
|
|
25567
25578
|
* ANSI Control Characters and Escape Sequence Introducers
|
|
25568
25579
|
*
|
|
@@ -25636,7 +25647,7 @@ function isEscFinal(byte) {
|
|
|
25636
25647
|
return byte >= 48 && byte <= 126;
|
|
25637
25648
|
}
|
|
25638
25649
|
//#endregion
|
|
25639
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25650
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/csi.js
|
|
25640
25651
|
/**
|
|
25641
25652
|
* CSI (Control Sequence Introducer) Types
|
|
25642
25653
|
*
|
|
@@ -25959,7 +25970,7 @@ const ENABLE_WIN32_INPUT_MODE = csi("?9001h");
|
|
|
25959
25970
|
*/
|
|
25960
25971
|
const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
|
|
25961
25972
|
//#endregion
|
|
25962
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25973
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
|
|
25963
25974
|
/**
|
|
25964
25975
|
* Minimal terminal-environment shim for the ported Ink core. The original
|
|
25965
25976
|
* module computed a richer `env` object from the Claude Code app context; the
|
|
@@ -25968,7 +25979,7 @@ const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
|
|
|
25968
25979
|
*/
|
|
25969
25980
|
const env$1 = { terminal: (process.env.TERM_PROGRAM ?? process.env.TERM ?? "unknown").toLowerCase() };
|
|
25970
25981
|
//#endregion
|
|
25971
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25982
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/osc.js
|
|
25972
25983
|
/**
|
|
25973
25984
|
* OSC (Operating System Command) Types and Parser
|
|
25974
25985
|
*/
|
|
@@ -26364,7 +26375,7 @@ function supportsTabStatus() {
|
|
|
26364
26375
|
return process.env.USER_TYPE === "ant";
|
|
26365
26376
|
}
|
|
26366
26377
|
//#endregion
|
|
26367
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26378
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-querier.js
|
|
26368
26379
|
/**
|
|
26369
26380
|
* Query the terminal and await responses without timeouts.
|
|
26370
26381
|
*
|
|
@@ -26550,7 +26561,7 @@ var TerminalQuerier = class {
|
|
|
26550
26561
|
}
|
|
26551
26562
|
};
|
|
26552
26563
|
//#endregion
|
|
26553
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26564
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemeProvider.js
|
|
26554
26565
|
/**
|
|
26555
26566
|
* Theme provider with terminal-background auto-detection. With no explicit
|
|
26556
26567
|
* `theme` prop, no CHATCODE_CLI_TUI_THEME override and no persisted choice
|
|
@@ -26749,7 +26760,7 @@ function useTheme() {
|
|
|
26749
26760
|
return [theme, setTheme];
|
|
26750
26761
|
}
|
|
26751
26762
|
//#endregion
|
|
26752
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26763
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settingsEditor.js
|
|
26753
26764
|
/**
|
|
26754
26765
|
* React-free form model behind the `/settings` screen (issue #165), mirroring
|
|
26755
26766
|
* the web front door's card-form.ts semantics: a section stages what the user
|
|
@@ -26999,7 +27010,7 @@ var SettingsForm = class {
|
|
|
26999
27010
|
}
|
|
27000
27011
|
};
|
|
27001
27012
|
//#endregion
|
|
27002
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27013
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
|
|
27003
27014
|
/**
|
|
27004
27015
|
* `/reload` planning — the pi-style soft reload: re-read the TUI's persisted
|
|
27005
27016
|
* preference files (`~/.chatcode-cli/tui/{theme,lang,agent-preset,model,
|
|
@@ -27848,7 +27859,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
27848
27859
|
const process$2 = globalThis.process;
|
|
27849
27860
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
27850
27861
|
//#endregion
|
|
27851
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27862
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/enums.js
|
|
27852
27863
|
/**
|
|
27853
27864
|
* Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
|
|
27854
27865
|
* Kept as `const` objects (not TS enums) per repo convention.
|
|
@@ -27980,7 +27991,7 @@ const Wrap = {
|
|
|
27980
27991
|
WrapReverse: 2
|
|
27981
27992
|
};
|
|
27982
27993
|
//#endregion
|
|
27983
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27994
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/index.js
|
|
27984
27995
|
/**
|
|
27985
27996
|
* Pure-TypeScript port of yoga-layout (Meta's flexbox engine).
|
|
27986
27997
|
*
|
|
@@ -30431,7 +30442,7 @@ Object.defineProperties(createChalk.prototype, {
|
|
|
30431
30442
|
const chalk = createChalk();
|
|
30432
30443
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
30433
30444
|
//#endregion
|
|
30434
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30445
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
|
|
30435
30446
|
/**
|
|
30436
30447
|
* xterm.js (VS Code, Cursor, code-server, Coder) has supported truecolor
|
|
30437
30448
|
* since 2017, but code-server/Coder containers often don't set
|
|
@@ -30562,7 +30573,7 @@ function applyColor(text, color) {
|
|
|
30562
30573
|
return colorize(text, color, "foreground");
|
|
30563
30574
|
}
|
|
30564
30575
|
//#endregion
|
|
30565
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30576
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
|
|
30566
30577
|
/**
|
|
30567
30578
|
* Environment truthiness check for the ported Ink core. Accepts the common
|
|
30568
30579
|
* shell truthy spellings (`1`, `true`, `yes`, `on`).
|
|
@@ -30580,7 +30591,7 @@ function isEnvTruthy(value) {
|
|
|
30580
30591
|
].includes(value.toLowerCase());
|
|
30581
30592
|
}
|
|
30582
30593
|
//#endregion
|
|
30583
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30594
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
|
|
30584
30595
|
/**
|
|
30585
30596
|
* Whether mouse click handling is disabled for the ported Ink core. dsh-tui
|
|
30586
30597
|
* reads its own env flag (`CHATCODE_CLI_TUI_DISABLE_MOUSE`); the original module
|
|
@@ -30591,7 +30602,7 @@ function isMouseClicksDisabled() {
|
|
|
30591
30602
|
return isEnvTruthy(readTuiEnv("DISABLE_MOUSE"));
|
|
30592
30603
|
}
|
|
30593
30604
|
//#endregion
|
|
30594
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30605
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/input-suppression.js
|
|
30595
30606
|
/**
|
|
30596
30607
|
* Input suppression window for terminal handoffs (issue #123): when stdin is
|
|
30597
30608
|
* handed to an external TUI (full-screen editor) and back, the tty can
|
|
@@ -30618,7 +30629,7 @@ function isInputSuppressed() {
|
|
|
30618
30629
|
return Date.now() < suppressedUntil;
|
|
30619
30630
|
}
|
|
30620
30631
|
//#endregion
|
|
30621
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30632
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/tokenize.js
|
|
30622
30633
|
/**
|
|
30623
30634
|
* Input Tokenizer - Escape sequence boundary detection
|
|
30624
30635
|
*
|
|
@@ -30816,7 +30827,7 @@ function tokenize$2(input, initialState, initialBuffer, flush, x10Mouse, splitIn
|
|
|
30816
30827
|
};
|
|
30817
30828
|
}
|
|
30818
30829
|
//#endregion
|
|
30819
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30830
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/parse-keypress.js
|
|
30820
30831
|
/**
|
|
30821
30832
|
* Keyboard input parser - converts terminal input to key events
|
|
30822
30833
|
*
|
|
@@ -31891,7 +31902,7 @@ function createWheelKey(s, name, col, row, button) {
|
|
|
31891
31902
|
};
|
|
31892
31903
|
}
|
|
31893
31904
|
//#endregion
|
|
31894
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31905
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/input-event.js
|
|
31895
31906
|
function parseKey(keypress) {
|
|
31896
31907
|
const key = {
|
|
31897
31908
|
upArrow: keypress.name === "up",
|
|
@@ -31976,7 +31987,7 @@ var InputEvent = class extends Event {
|
|
|
31976
31987
|
}
|
|
31977
31988
|
};
|
|
31978
31989
|
//#endregion
|
|
31979
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31990
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-focus-event.js
|
|
31980
31991
|
/**
|
|
31981
31992
|
* Event fired when the terminal window gains or loses focus.
|
|
31982
31993
|
*
|
|
@@ -31995,7 +32006,7 @@ var TerminalFocusEvent = class extends Event {
|
|
|
31995
32006
|
}
|
|
31996
32007
|
};
|
|
31997
32008
|
//#endregion
|
|
31998
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32009
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/node-cache.js
|
|
31999
32010
|
/** Layout bounds cached per rendered node, used for blitting and clearing. */
|
|
32000
32011
|
const nodeCache = /* @__PURE__ */ new WeakMap();
|
|
32001
32012
|
/** Rects of removed children that need clearing on next render */
|
|
@@ -32033,7 +32044,7 @@ function consumeAbsoluteRemovedFlag() {
|
|
|
32033
32044
|
return had;
|
|
32034
32045
|
}
|
|
32035
32046
|
//#endregion
|
|
32036
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32047
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-event.js
|
|
32037
32048
|
/**
|
|
32038
32049
|
* Base class for all terminal events with DOM-style propagation.
|
|
32039
32050
|
*
|
|
@@ -32162,7 +32173,7 @@ var TerminalEvent = class extends Event {
|
|
|
32162
32173
|
_prepareForTarget(_target) {}
|
|
32163
32174
|
};
|
|
32164
32175
|
//#endregion
|
|
32165
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32176
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/pointer-event.js
|
|
32166
32177
|
/**
|
|
32167
32178
|
* Base class for pointer-derived terminal events (click, wheel, hover).
|
|
32168
32179
|
*
|
|
@@ -32223,7 +32234,7 @@ var PointerEvent = class extends TerminalEvent {
|
|
|
32223
32234
|
}
|
|
32224
32235
|
};
|
|
32225
32236
|
//#endregion
|
|
32226
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32237
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/drag-event.js
|
|
32227
32238
|
/**
|
|
32228
32239
|
* Component-level drag event (DOM HTML5 drag semantics subset).
|
|
32229
32240
|
*
|
|
@@ -48331,7 +48342,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
48331
48342
|
}, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
|
|
48332
48343
|
}));
|
|
48333
48344
|
//#endregion
|
|
48334
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48345
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/node.js
|
|
48335
48346
|
var import_react_reconciler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
48336
48347
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
|
|
48337
48348
|
else module.exports = require_react_reconciler_development();
|
|
@@ -48407,7 +48418,7 @@ const LayoutMeasureMode = {
|
|
|
48407
48418
|
AtMost: "at-most"
|
|
48408
48419
|
};
|
|
48409
48420
|
//#endregion
|
|
48410
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48421
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/yoga.js
|
|
48411
48422
|
const EDGE_MAP = {
|
|
48412
48423
|
all: Edge.All,
|
|
48413
48424
|
horizontal: Edge.Horizontal,
|
|
@@ -48634,7 +48645,7 @@ function createYogaLayoutNode() {
|
|
|
48634
48645
|
return new YogaLayoutNode(YOGA_INSTANCE.Node.create());
|
|
48635
48646
|
}
|
|
48636
48647
|
//#endregion
|
|
48637
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48648
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/engine.js
|
|
48638
48649
|
/**
|
|
48639
48650
|
* Create a new layout node backed by the Yoga adapter.
|
|
48640
48651
|
* @returns an empty layout node with no children, styles, or measure function.
|
|
@@ -48643,7 +48654,7 @@ function createLayoutNode() {
|
|
|
48643
48654
|
return createYogaLayoutNode();
|
|
48644
48655
|
}
|
|
48645
48656
|
//#endregion
|
|
48646
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48657
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/line-width-cache.js
|
|
48647
48658
|
const cache = /* @__PURE__ */ new Map();
|
|
48648
48659
|
const MAX_CACHE_SIZE = 4096;
|
|
48649
48660
|
const MAX_CACHE_CHARS = 1e5;
|
|
@@ -48679,7 +48690,7 @@ function lineWidth(line) {
|
|
|
48679
48690
|
return width;
|
|
48680
48691
|
}
|
|
48681
48692
|
//#endregion
|
|
48682
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48693
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-text.js
|
|
48683
48694
|
/**
|
|
48684
48695
|
* Measure wrapped text dimensions in a single pass.
|
|
48685
48696
|
* @param text - the text to measure.
|
|
@@ -48710,7 +48721,7 @@ function measureText(text, maxWidth) {
|
|
|
48710
48721
|
};
|
|
48711
48722
|
}
|
|
48712
48723
|
//#endregion
|
|
48713
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48724
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/squash-text-nodes.js
|
|
48714
48725
|
/**
|
|
48715
48726
|
* Squash text nodes into styled segments, propagating styles down through the tree.
|
|
48716
48727
|
* This allows structured styling without relying on ANSI string transforms.
|
|
@@ -48758,7 +48769,7 @@ function squashTextNodes(node) {
|
|
|
48758
48769
|
return text;
|
|
48759
48770
|
}
|
|
48760
48771
|
//#endregion
|
|
48761
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48772
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
|
|
48762
48773
|
const DEFAULT_TAB_INTERVAL = 8;
|
|
48763
48774
|
/**
|
|
48764
48775
|
* Expand tab characters to spaces at fixed column intervals, preserving
|
|
@@ -49208,7 +49219,7 @@ function tokenize$1(str, endChar = Number.POSITIVE_INFINITY) {
|
|
|
49208
49219
|
return ret;
|
|
49209
49220
|
}
|
|
49210
49221
|
//#endregion
|
|
49211
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49222
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
|
|
49212
49223
|
function isEndCode(code) {
|
|
49213
49224
|
return code.code === code.endCode;
|
|
49214
49225
|
}
|
|
@@ -49825,7 +49836,7 @@ function wrapAnsi$1(string, columns, options) {
|
|
|
49825
49836
|
return normalizeText(String(string)).replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs$1(line), columns, options)).join("\n");
|
|
49826
49837
|
}
|
|
49827
49838
|
//#endregion
|
|
49828
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49839
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
|
|
49829
49840
|
const wrapAnsiBun = typeof Bun !== "undefined" && typeof Bun.wrapAnsi === "function" ? Bun.wrapAnsi : null;
|
|
49830
49841
|
const SLOT_MIN_LENGTH = 2048;
|
|
49831
49842
|
let slot = null;
|
|
@@ -49872,7 +49883,7 @@ function wrapAnsiNpmIncremental(input, columns, options) {
|
|
|
49872
49883
|
*/
|
|
49873
49884
|
const wrapAnsi = wrapAnsiBun ?? wrapAnsiNpmIncremental;
|
|
49874
49885
|
//#endregion
|
|
49875
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49886
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrap-text.js
|
|
49876
49887
|
const ELLIPSIS = "…";
|
|
49877
49888
|
const WRAP_CACHE_MAX_ENTRIES = 2048;
|
|
49878
49889
|
const WRAP_CACHE_MAX_CHARS = 2e6;
|
|
@@ -49936,7 +49947,7 @@ function wrapText$1(text, maxWidth, wrapType) {
|
|
|
49936
49947
|
return text;
|
|
49937
49948
|
}
|
|
49938
49949
|
//#endregion
|
|
49939
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49950
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
|
|
49940
49951
|
/**
|
|
49941
49952
|
* Create an element node of the given kind, allocating its yoga layout node
|
|
49942
49953
|
* unless the kind renders without layout (`ink-virtual-text`, `ink-link`,
|
|
@@ -50256,7 +50267,7 @@ function findOwnerChainAtRow(root, y) {
|
|
|
50256
50267
|
}
|
|
50257
50268
|
}
|
|
50258
50269
|
//#endregion
|
|
50259
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50270
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event-handlers.js
|
|
50260
50271
|
/**
|
|
50261
50272
|
* Reverse lookup: event type string → handler prop names.
|
|
50262
50273
|
* Used by the dispatcher for O(1) handler lookup per node.
|
|
@@ -50310,7 +50321,7 @@ const EVENT_HANDLER_PROPS = new Set([
|
|
|
50310
50321
|
"onWheel"
|
|
50311
50322
|
]);
|
|
50312
50323
|
//#endregion
|
|
50313
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50324
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/dispatcher.js
|
|
50314
50325
|
function getHandler(node, eventType, capture) {
|
|
50315
50326
|
const handlers = node._eventHandlers;
|
|
50316
50327
|
if (!handlers) return void 0;
|
|
@@ -50478,7 +50489,7 @@ var Dispatcher = class {
|
|
|
50478
50489
|
}
|
|
50479
50490
|
};
|
|
50480
50491
|
//#endregion
|
|
50481
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50492
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/focus-event.js
|
|
50482
50493
|
/**
|
|
50483
50494
|
* Focus event for component focus changes.
|
|
50484
50495
|
*
|
|
@@ -50503,7 +50514,7 @@ var FocusEvent = class extends TerminalEvent {
|
|
|
50503
50514
|
}
|
|
50504
50515
|
};
|
|
50505
50516
|
//#endregion
|
|
50506
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50517
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
|
|
50507
50518
|
const MAX_FOCUS_STACK = 32;
|
|
50508
50519
|
/**
|
|
50509
50520
|
* DOM-like focus manager for the Ink terminal UI.
|
|
@@ -50659,7 +50670,7 @@ function getFocusManager(node) {
|
|
|
50659
50670
|
return getRootNode(node).focusManager;
|
|
50660
50671
|
}
|
|
50661
50672
|
//#endregion
|
|
50662
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50673
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
|
|
50663
50674
|
const applyPositionStyles = (node, style) => {
|
|
50664
50675
|
if ("position" in style) node.setPositionType(style.position === "absolute" ? LayoutPositionType.Absolute : LayoutPositionType.Relative);
|
|
50665
50676
|
if ("top" in style) applyPositionEdge(node, "top", style.top);
|
|
@@ -50794,7 +50805,7 @@ const styles = (node, style = {}, resolvedStyle) => {
|
|
|
50794
50805
|
applyGapStyles(node, style);
|
|
50795
50806
|
};
|
|
50796
50807
|
//#endregion
|
|
50797
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50808
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
|
|
50798
50809
|
if (process.env.NODE_ENV === "development") try {
|
|
50799
50810
|
import("./devtools-la_KkjCS.js");
|
|
50800
50811
|
} catch (error) {
|
|
@@ -51114,7 +51125,7 @@ const reconciler = (0, import_react_reconciler.default)({
|
|
|
51114
51125
|
});
|
|
51115
51126
|
dispatcher.discreteUpdates = reconciler.discreteUpdates.bind(reconciler);
|
|
51116
51127
|
//#endregion
|
|
51117
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51128
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/geometry.js
|
|
51118
51129
|
/**
|
|
51119
51130
|
* Compute the smallest rectangle containing both input rectangles.
|
|
51120
51131
|
* @param a - the first rectangle.
|
|
@@ -51146,7 +51157,7 @@ function clamp(value, min, max) {
|
|
|
51146
51157
|
return value;
|
|
51147
51158
|
}
|
|
51148
51159
|
//#endregion
|
|
51149
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51160
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
|
|
51150
51161
|
/**
|
|
51151
51162
|
* Log a warning when a value is present but not an integer.
|
|
51152
51163
|
* @param value - the value to check; undefined is skipped silently.
|
|
@@ -51158,7 +51169,7 @@ function ifNotInteger(value, name) {
|
|
|
51158
51169
|
logForDebugging(`${name} should be an integer, got ${value}`, { level: "warn" });
|
|
51159
51170
|
}
|
|
51160
51171
|
//#endregion
|
|
51161
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51172
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
|
|
51162
51173
|
/**
|
|
51163
51174
|
* Pool of character strings shared across all screens.
|
|
51164
51175
|
* With a shared pool, interned char IDs are valid across screens, so
|
|
@@ -52227,7 +52238,7 @@ function markNoSelectRegion(screen, x, y, width, height) {
|
|
|
52227
52238
|
}
|
|
52228
52239
|
}
|
|
52229
52240
|
//#endregion
|
|
52230
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
52241
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
|
|
52231
52242
|
/**
|
|
52232
52243
|
* Text selection state for fullscreen mode.
|
|
52233
52244
|
*
|
|
@@ -53193,7 +53204,7 @@ function applySelectionOverlay(screen, selection, stylePool) {
|
|
|
53193
53204
|
}
|
|
53194
53205
|
}
|
|
53195
53206
|
//#endregion
|
|
53196
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53207
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/dec.js
|
|
53197
53208
|
/**
|
|
53198
53209
|
* DEC (Digital Equipment Corporation) Private Mode Sequences
|
|
53199
53210
|
*
|
|
@@ -53259,7 +53270,7 @@ const ENABLE_MOUSE_TRACKING = decset(DEC.MOUSE_NORMAL) + decset(DEC.MOUSE_BUTTON
|
|
|
53259
53270
|
/** Disable all mouse tracking modes enabled by ENABLE_MOUSE_TRACKING. */
|
|
53260
53271
|
const DISABLE_MOUSE_TRACKING = decreset(DEC.MOUSE_SGR) + decreset(DEC.MOUSE_ANY) + decreset(DEC.MOUSE_BUTTON) + decreset(DEC.MOUSE_NORMAL);
|
|
53261
53272
|
//#endregion
|
|
53262
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53273
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
|
|
53263
53274
|
/**
|
|
53264
53275
|
* True when running inside a JetBrains IDE terminal (JediTerm). The IDE
|
|
53265
53276
|
* injects `TERMINAL_EMULATOR=JetBrains-JediTerm` into the pty environment of
|
|
@@ -53501,7 +53512,7 @@ function writeDiffToTerminal(terminal, diff, skipSyncMarkers = false) {
|
|
|
53501
53512
|
terminal.stdout.write(buffer);
|
|
53502
53513
|
}
|
|
53503
53514
|
//#endregion
|
|
53504
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53515
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-focus-state.js
|
|
53505
53516
|
let focusState = "unknown";
|
|
53506
53517
|
const resolvers = /* @__PURE__ */ new Set();
|
|
53507
53518
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -53545,7 +53556,7 @@ function subscribeTerminalFocus(cb) {
|
|
|
53545
53556
|
};
|
|
53546
53557
|
}
|
|
53547
53558
|
//#endregion
|
|
53548
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53559
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AppContext.js
|
|
53549
53560
|
/**
|
|
53550
53561
|
* `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
|
|
53551
53562
|
*/
|
|
@@ -53590,13 +53601,13 @@ var require_react_compiler_runtime_development = /* @__PURE__ */ __commonJSMin((
|
|
|
53590
53601
|
})();
|
|
53591
53602
|
}));
|
|
53592
53603
|
//#endregion
|
|
53593
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53604
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
|
|
53594
53605
|
var import_compiler_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
53595
53606
|
if (process.env.NODE_ENV === "production") module.exports = require_react_compiler_runtime_production();
|
|
53596
53607
|
else module.exports = require_react_compiler_runtime_development();
|
|
53597
53608
|
})))();
|
|
53598
53609
|
//#endregion
|
|
53599
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53610
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/geometry-trace.js
|
|
53600
53611
|
/**
|
|
53601
53612
|
* Geometry forensics — per-frame scroll-geometry trace (issues #421/#433).
|
|
53602
53613
|
*
|
|
@@ -53676,7 +53687,7 @@ function endGeometryFrame(durationMs) {
|
|
|
53676
53687
|
};
|
|
53677
53688
|
}
|
|
53678
53689
|
//#endregion
|
|
53679
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53690
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalFocusContext.js
|
|
53680
53691
|
const TerminalFocusContext = (0, import_react.createContext)({
|
|
53681
53692
|
isTerminalFocused: true,
|
|
53682
53693
|
terminalFocusState: "unknown"
|
|
@@ -53711,7 +53722,7 @@ function TerminalFocusProvider(t0) {
|
|
|
53711
53722
|
return t2;
|
|
53712
53723
|
}
|
|
53713
53724
|
//#endregion
|
|
53714
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53725
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-focus.js
|
|
53715
53726
|
/**
|
|
53716
53727
|
* Hook to check if the terminal has focus.
|
|
53717
53728
|
*
|
|
@@ -53726,7 +53737,7 @@ function useTerminalFocus() {
|
|
|
53726
53737
|
return isTerminalFocused;
|
|
53727
53738
|
}
|
|
53728
53739
|
//#endregion
|
|
53729
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53740
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ClockContext.js
|
|
53730
53741
|
function createClock(tickIntervalMs) {
|
|
53731
53742
|
const subscribers = /* @__PURE__ */ new Map();
|
|
53732
53743
|
let interval = null;
|
|
@@ -53823,7 +53834,7 @@ function _temp() {
|
|
|
53823
53834
|
return createClock(16);
|
|
53824
53835
|
}
|
|
53825
53836
|
//#endregion
|
|
53826
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53837
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/CursorDeclarationContext.js
|
|
53827
53838
|
/**
|
|
53828
53839
|
* React context that provides the cursor-declaration setter to descendants.
|
|
53829
53840
|
*/
|
|
@@ -53863,7 +53874,7 @@ var require_escape_string_regexp = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
53863
53874
|
};
|
|
53864
53875
|
}));
|
|
53865
53876
|
//#endregion
|
|
53866
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53877
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Box.js
|
|
53867
53878
|
var import_stack_utils = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
53868
53879
|
const escapeStringRegexp = require_escape_string_regexp();
|
|
53869
53880
|
const cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
|
|
@@ -54231,7 +54242,7 @@ function Box(t0) {
|
|
|
54231
54242
|
return t4;
|
|
54232
54243
|
}
|
|
54233
54244
|
//#endregion
|
|
54234
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54245
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Text.js
|
|
54235
54246
|
const memoizedStylesForWrap = {
|
|
54236
54247
|
wrap: {
|
|
54237
54248
|
flexGrow: 0,
|
|
@@ -54383,7 +54394,7 @@ function Text(t0) {
|
|
|
54383
54394
|
return t16;
|
|
54384
54395
|
}
|
|
54385
54396
|
//#endregion
|
|
54386
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54397
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ErrorOverview.js
|
|
54387
54398
|
const cleanupPath = (path) => {
|
|
54388
54399
|
return path?.replace(`file://${process.cwd()}/`, "");
|
|
54389
54400
|
};
|
|
@@ -54488,10 +54499,10 @@ function ErrorOverview({ error }) {
|
|
|
54488
54499
|
});
|
|
54489
54500
|
}
|
|
54490
54501
|
//#endregion
|
|
54491
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54502
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalSizeContext.js
|
|
54492
54503
|
const TerminalSizeContext = (0, import_react.createContext)(null);
|
|
54493
54504
|
//#endregion
|
|
54494
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54505
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
|
|
54495
54506
|
/**
|
|
54496
54507
|
* React context providing a raw terminal write function. Null until a
|
|
54497
54508
|
* TerminalWriteProvider is mounted.
|
|
@@ -54502,7 +54513,7 @@ const TerminalWriteContext = (0, import_react.createContext)(null);
|
|
|
54502
54513
|
*/
|
|
54503
54514
|
const TerminalWriteProvider = TerminalWriteContext.Provider;
|
|
54504
54515
|
//#endregion
|
|
54505
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54516
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/App.js
|
|
54506
54517
|
const SUPPORTS_SUSPEND = process.platform !== "win32";
|
|
54507
54518
|
const STDIN_RESUME_GAP_MS = 5e3;
|
|
54508
54519
|
const MULTI_CLICK_TIMEOUT_MS = 500;
|
|
@@ -55028,7 +55039,7 @@ function handleMouseEvent(app, m) {
|
|
|
55028
55039
|
}
|
|
55029
55040
|
}
|
|
55030
55041
|
//#endregion
|
|
55031
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55042
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/keyboard-event.js
|
|
55032
55043
|
/**
|
|
55033
55044
|
* Keyboard event dispatched through the DOM tree via capture/bubble.
|
|
55034
55045
|
*
|
|
@@ -55088,7 +55099,7 @@ function keyFromParsed(parsed) {
|
|
|
55088
55099
|
return name || seq;
|
|
55089
55100
|
}
|
|
55090
55101
|
//#endregion
|
|
55091
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55102
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
|
|
55092
55103
|
/**
|
|
55093
55104
|
* Create an empty frame with a zero-size screen, the given viewport, and a
|
|
55094
55105
|
* visible cursor at the origin.
|
|
@@ -55114,7 +55125,7 @@ function emptyFrame(rows, columns, stylePool, charPool, hyperlinkPool) {
|
|
|
55114
55125
|
};
|
|
55115
55126
|
}
|
|
55116
55127
|
//#endregion
|
|
55117
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55128
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/click-event.js
|
|
55118
55129
|
/**
|
|
55119
55130
|
* Mouse click event. Fired on left-button release without drag, only when
|
|
55120
55131
|
* mouse tracking is enabled (i.e. inside <AlternateScreen>).
|
|
@@ -55145,7 +55156,7 @@ var ClickEvent = class extends PointerEvent {
|
|
|
55145
55156
|
}
|
|
55146
55157
|
};
|
|
55147
55158
|
//#endregion
|
|
55148
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55159
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/context-menu-event.js
|
|
55149
55160
|
/**
|
|
55150
55161
|
* Mouse context-menu event. Fired on right-button press (SGR button 2,
|
|
55151
55162
|
* low bits of the raw button byte), mirroring the DOM `contextmenu` event
|
|
@@ -55169,7 +55180,7 @@ var ContextMenuEvent = class extends PointerEvent {
|
|
|
55169
55180
|
}
|
|
55170
55181
|
};
|
|
55171
55182
|
//#endregion
|
|
55172
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55183
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/wheel-event.js
|
|
55173
55184
|
/**
|
|
55174
55185
|
* Mouse wheel event dispatched to the ScrollBox under the pointer.
|
|
55175
55186
|
*
|
|
@@ -55205,7 +55216,7 @@ function indentString(string, count = 1, options = {}) {
|
|
|
55205
55216
|
return string.replace(regex, indent.repeat(count));
|
|
55206
55217
|
}
|
|
55207
55218
|
//#endregion
|
|
55208
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55219
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/get-max-width.js
|
|
55209
55220
|
/**
|
|
55210
55221
|
* Returns the yoga node's content width (computed width minus padding and
|
|
55211
55222
|
* border).
|
|
@@ -55310,7 +55321,7 @@ var cli_boxes_default = {
|
|
|
55310
55321
|
}
|
|
55311
55322
|
};
|
|
55312
55323
|
//#endregion
|
|
55313
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55324
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-border.js
|
|
55314
55325
|
/** Built-in border styles beyond those provided by cli-boxes. */
|
|
55315
55326
|
const CUSTOM_BORDER_STYLES = { dashed: {
|
|
55316
55327
|
top: "╌",
|
|
@@ -55400,7 +55411,7 @@ const renderBorder = (x, y, node, output) => {
|
|
|
55400
55411
|
}
|
|
55401
55412
|
};
|
|
55402
55413
|
//#endregion
|
|
55403
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55414
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/widest-line.js
|
|
55404
55415
|
/**
|
|
55405
55416
|
* Get the display width of the widest line in a string.
|
|
55406
55417
|
* @param string - the text to measure, possibly containing newlines.
|
|
@@ -55419,7 +55430,7 @@ function widestLine(string) {
|
|
|
55419
55430
|
return maxWidth;
|
|
55420
55431
|
}
|
|
55421
55432
|
//#endregion
|
|
55422
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55433
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-node-to-output.js
|
|
55423
55434
|
function isXtermJsHost() {
|
|
55424
55435
|
return process.env.TERM_PROGRAM === "vscode" || isXtermJs();
|
|
55425
55436
|
}
|
|
@@ -56235,7 +56246,7 @@ function dropSubtreeCache(node) {
|
|
|
56235
56246
|
for (const child of node.childNodes) if (child.nodeName !== "#text") dropSubtreeCache(child);
|
|
56236
56247
|
}
|
|
56237
56248
|
//#endregion
|
|
56238
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56249
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hit-test.js
|
|
56239
56250
|
/**
|
|
56240
56251
|
* Find the deepest DOM element whose rendered rect contains (col, row).
|
|
56241
56252
|
*
|
|
@@ -56625,7 +56636,7 @@ function dispatchHover(root, col, row, hovered) {
|
|
|
56625
56636
|
}
|
|
56626
56637
|
}
|
|
56627
56638
|
//#endregion
|
|
56628
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56639
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/flush-tick.js
|
|
56629
56640
|
/**
|
|
56630
56641
|
* Monotonic terminal-flush counter for the ported Ink core.
|
|
56631
56642
|
*
|
|
@@ -56658,7 +56669,7 @@ function getTerminalFlushTick() {
|
|
|
56658
56669
|
return flushTick;
|
|
56659
56670
|
}
|
|
56660
56671
|
//#endregion
|
|
56661
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56672
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
|
|
56662
56673
|
/**
|
|
56663
56674
|
* Live Ink instances keyed by their output stream, so consecutive render()
|
|
56664
56675
|
* calls reuse the instance for a stream instead of creating a new one.
|
|
@@ -56667,7 +56678,7 @@ function getTerminalFlushTick() {
|
|
|
56667
56678
|
*/
|
|
56668
56679
|
const instances = /* @__PURE__ */ new Map();
|
|
56669
56680
|
//#endregion
|
|
56670
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56681
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/log-update.js
|
|
56671
56682
|
const CARRIAGE_RETURN = { type: "carriageReturn" };
|
|
56672
56683
|
const NEWLINE = {
|
|
56673
56684
|
type: "stdout",
|
|
@@ -57304,7 +57315,7 @@ var VirtualScreen = class {
|
|
|
57304
57315
|
}
|
|
57305
57316
|
};
|
|
57306
57317
|
//#endregion
|
|
57307
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57318
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
|
|
57308
57319
|
/**
|
|
57309
57320
|
* Optimize a diff by applying all optimization rules in a single pass.
|
|
57310
57321
|
* This reduces the number of patches that need to be written to the terminal.
|
|
@@ -57369,7 +57380,7 @@ function optimize(diff) {
|
|
|
57369
57380
|
return result;
|
|
57370
57381
|
}
|
|
57371
57382
|
//#endregion
|
|
57372
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57383
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
|
|
57373
57384
|
var import_bidi = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57374
57385
|
(function(global, factory) {
|
|
57375
57386
|
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());
|
|
@@ -58145,7 +58156,7 @@ function hasRTLCharacters(text) {
|
|
|
58145
58156
|
return /[\u0590-\u05FF\uFB1D-\uFB4F\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF\u0780-\u07BF\u0700-\u074F]/u.test(text);
|
|
58146
58157
|
}
|
|
58147
58158
|
//#endregion
|
|
58148
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
58159
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
|
|
58149
58160
|
/**
|
|
58150
58161
|
* charCache bounds. The entry-count cap alone was not enough: a streaming
|
|
58151
58162
|
* line produces a NEW cache key on every frame, and each entry's cost is
|
|
@@ -58815,7 +58826,7 @@ function writeLineToScreen(screen, line, x, y, screenWidth, stylePool, charCache
|
|
|
58815
58826
|
return offsetX;
|
|
58816
58827
|
}
|
|
58817
58828
|
//#endregion
|
|
58818
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
58829
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-to-screen.js
|
|
58819
58830
|
const timing = {
|
|
58820
58831
|
reconcile: 0,
|
|
58821
58832
|
yoga: 0,
|
|
@@ -58909,7 +58920,7 @@ function applyPositionedHighlight(screen, stylePool, positions, rowOffset, curre
|
|
|
58909
58920
|
return true;
|
|
58910
58921
|
}
|
|
58911
58922
|
//#endregion
|
|
58912
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
58923
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
|
|
58913
58924
|
/**
|
|
58914
58925
|
* Create the renderer function for a root DOM node. The returned renderer
|
|
58915
58926
|
* reuses an Output across frames so its character cache persists.
|
|
@@ -58984,7 +58995,7 @@ function createRenderer(node, stylePool) {
|
|
|
58984
58995
|
};
|
|
58985
58996
|
}
|
|
58986
58997
|
//#endregion
|
|
58987
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
58998
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
|
|
58988
58999
|
/**
|
|
58989
59000
|
* Highlight all visible occurrences of `query` in the screen buffer by
|
|
58990
59001
|
* inverting cell styles (SGR 7). Post-render, same damage-tracking machinery
|
|
@@ -59046,7 +59057,7 @@ function applySearchHighlight(screen, query, stylePool) {
|
|
|
59046
59057
|
return applied;
|
|
59047
59058
|
}
|
|
59048
59059
|
//#endregion
|
|
59049
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59060
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
|
|
59050
59061
|
const ALT_SCREEN_ANCHOR_CURSOR = Object.freeze({
|
|
59051
59062
|
x: 0,
|
|
59052
59063
|
y: 0,
|
|
@@ -60599,7 +60610,7 @@ const CONSOLE_STDERR_METHODS = [
|
|
|
60599
60610
|
"trace"
|
|
60600
60611
|
];
|
|
60601
60612
|
//#endregion
|
|
60602
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60613
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
|
|
60603
60614
|
/**
|
|
60604
60615
|
* Mount a component and render the output.
|
|
60605
60616
|
* @param node - the React element to render.
|
|
@@ -60682,7 +60693,7 @@ const getInstance = (stdout, createInstance) => {
|
|
|
60682
60693
|
return instance;
|
|
60683
60694
|
};
|
|
60684
60695
|
//#endregion
|
|
60685
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60696
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedBox.js
|
|
60686
60697
|
/** Resolves a color value that may be a theme key to a raw Color. */
|
|
60687
60698
|
function resolveColor$1(color, theme) {
|
|
60688
60699
|
if (!color) return void 0;
|
|
@@ -60707,7 +60718,7 @@ function ThemedBox({ borderColor, borderTopColor, borderBottomColor, borderLeftC
|
|
|
60707
60718
|
});
|
|
60708
60719
|
}
|
|
60709
60720
|
//#endregion
|
|
60710
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60721
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedText.js
|
|
60711
60722
|
/**
|
|
60712
60723
|
* Colors uncolored ThemedText in the subtree. Precedence: explicit `color` >
|
|
60713
60724
|
* this > dimColor (in the Claude Code visual language, where message rows
|
|
@@ -60743,7 +60754,7 @@ function ThemedText({ color, backgroundColor, dimColor = false, bold = false, it
|
|
|
60743
60754
|
});
|
|
60744
60755
|
}
|
|
60745
60756
|
//#endregion
|
|
60746
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60757
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Spacer.js
|
|
60747
60758
|
/**
|
|
60748
60759
|
* A flexible space that expands along the major axis of its containing layout.
|
|
60749
60760
|
* It's useful as a shortcut for filling all the available spaces between elements.
|
|
@@ -60758,7 +60769,7 @@ function Spacer() {
|
|
|
60758
60769
|
return t0;
|
|
60759
60770
|
}
|
|
60760
60771
|
//#endregion
|
|
60761
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60772
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Newline.js
|
|
60762
60773
|
/**
|
|
60763
60774
|
* Adds one or more newline (\n) characters. Must be used within <Text> components.
|
|
60764
60775
|
*/
|
|
@@ -60781,7 +60792,7 @@ function Newline(t0) {
|
|
|
60781
60792
|
return t3;
|
|
60782
60793
|
}
|
|
60783
60794
|
//#endregion
|
|
60784
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60795
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/NoSelect.js
|
|
60785
60796
|
/**
|
|
60786
60797
|
* Marks its contents as non-selectable in fullscreen text selection.
|
|
60787
60798
|
* Cells inside this box are skipped by both the selection highlight and
|
|
@@ -60832,7 +60843,7 @@ function NoSelect(t0) {
|
|
|
60832
60843
|
return t2;
|
|
60833
60844
|
}
|
|
60834
60845
|
//#endregion
|
|
60835
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60846
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AlternateScreen.js
|
|
60836
60847
|
/**
|
|
60837
60848
|
* Run children in the terminal's alternate screen buffer, constrained to
|
|
60838
60849
|
* the viewport height. While mounted:
|
|
@@ -60907,7 +60918,7 @@ function AlternateScreen(t0) {
|
|
|
60907
60918
|
return t5;
|
|
60908
60919
|
}
|
|
60909
60920
|
//#endregion
|
|
60910
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60921
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ScrollBox.js
|
|
60911
60922
|
/**
|
|
60912
60923
|
* A Box with `overflow: scroll` and an imperative scroll API.
|
|
60913
60924
|
*
|
|
@@ -61085,7 +61096,7 @@ function ScrollBox({ children, ref, stickyScroll, ...style }) {
|
|
|
61085
61096
|
});
|
|
61086
61097
|
}
|
|
61087
61098
|
//#endregion
|
|
61088
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61099
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-input.js
|
|
61089
61100
|
/**
|
|
61090
61101
|
* Keep an event listener stable while always dispatching to the latest render's
|
|
61091
61102
|
* callback. Keeping this hook local is important for packaged installs: a
|
|
@@ -61151,7 +61162,7 @@ const useInput = (inputHandler, options = {}) => {
|
|
|
61151
61162
|
}, [internal_eventEmitter, handleData]);
|
|
61152
61163
|
};
|
|
61153
61164
|
//#endregion
|
|
61154
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61165
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-selection.js
|
|
61155
61166
|
/**
|
|
61156
61167
|
* Access to text selection operations on the Ink instance (fullscreen only).
|
|
61157
61168
|
* Returns no-op functions when fullscreen mode is disabled.
|
|
@@ -61191,7 +61202,7 @@ function useSelection() {
|
|
|
61191
61202
|
}, [ink]);
|
|
61192
61203
|
}
|
|
61193
61204
|
//#endregion
|
|
61194
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61205
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-copy-on-select.js
|
|
61195
61206
|
/**
|
|
61196
61207
|
* Copy-on-select: when a drag finishes (or a double/triple click, or a
|
|
61197
61208
|
* shift+arrow extension, lands a selection), copy the selected text to the
|
|
@@ -61231,14 +61242,14 @@ function useCopyOnSelect(onCopied) {
|
|
|
61231
61242
|
]);
|
|
61232
61243
|
}
|
|
61233
61244
|
//#endregion
|
|
61234
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61245
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-app.js
|
|
61235
61246
|
/**
|
|
61236
61247
|
* React hook exposing the manual app-exit function from `AppContext`.
|
|
61237
61248
|
* @returns the `AppContext` value, whose `exit` function unmounts the app.
|
|
61238
61249
|
*/
|
|
61239
61250
|
const useApp = () => (0, import_react.useContext)(AppContext);
|
|
61240
61251
|
//#endregion
|
|
61241
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61252
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-viewport.js
|
|
61242
61253
|
/**
|
|
61243
61254
|
* Hook to detect if a component is within the terminal viewport.
|
|
61244
61255
|
*
|
|
@@ -61292,7 +61303,7 @@ function useTerminalViewport() {
|
|
|
61292
61303
|
return [setElement, entryRef.current];
|
|
61293
61304
|
}
|
|
61294
61305
|
//#endregion
|
|
61295
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61306
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-animation-frame.js
|
|
61296
61307
|
/**
|
|
61297
61308
|
* Hook for synchronized animations that pause when offscreen.
|
|
61298
61309
|
*
|
|
@@ -61341,7 +61352,7 @@ function useAnimationFrame(intervalMs = 16) {
|
|
|
61341
61352
|
return [viewportRef, time];
|
|
61342
61353
|
}
|
|
61343
61354
|
//#endregion
|
|
61344
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61355
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-size.js
|
|
61345
61356
|
/** Terminal dimensions from the Ink app shell (from Claude Code).
|
|
61346
61357
|
* @returns the current terminal dimensions.
|
|
61347
61358
|
*/
|
|
@@ -61351,7 +61362,7 @@ function useTerminalSize() {
|
|
|
61351
61362
|
return size;
|
|
61352
61363
|
}
|
|
61353
61364
|
//#endregion
|
|
61354
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61365
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
|
|
61355
61366
|
const BLINK_INTERVAL_MS = 600;
|
|
61356
61367
|
/**
|
|
61357
61368
|
* Hook for synchronized blinking animations that pause when offscreen
|
|
@@ -61368,7 +61379,7 @@ function useBlink(enabled, intervalMs = BLINK_INTERVAL_MS) {
|
|
|
61368
61379
|
return [ref, Math.floor(time / intervalMs) % 2 === 0];
|
|
61369
61380
|
}
|
|
61370
61381
|
//#endregion
|
|
61371
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61382
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/supports-hyperlinks.js
|
|
61372
61383
|
var import_supports_hyperlinks = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
61373
61384
|
const supportsColor = require_supports_color();
|
|
61374
61385
|
const hasFlag = require_has_flag();
|
|
@@ -61465,7 +61476,7 @@ function supportsHyperlinks(options) {
|
|
|
61465
61476
|
return false;
|
|
61466
61477
|
}
|
|
61467
61478
|
//#endregion
|
|
61468
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61479
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Link.js
|
|
61469
61480
|
function Link(t0) {
|
|
61470
61481
|
const $ = (0, import_compiler_runtime.c)(5);
|
|
61471
61482
|
const { children, url, fallback } = t0;
|
|
@@ -61493,7 +61504,7 @@ function Link(t0) {
|
|
|
61493
61504
|
return t2;
|
|
61494
61505
|
}
|
|
61495
61506
|
//#endregion
|
|
61496
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61507
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/esc.js
|
|
61497
61508
|
/**
|
|
61498
61509
|
* ESC Sequence Parser
|
|
61499
61510
|
*
|
|
@@ -61549,7 +61560,7 @@ function parseEsc(chars) {
|
|
|
61549
61560
|
};
|
|
61550
61561
|
}
|
|
61551
61562
|
//#endregion
|
|
61552
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61563
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/types.js
|
|
61553
61564
|
/**
|
|
61554
61565
|
* ANSI Parser - Semantic Types
|
|
61555
61566
|
*
|
|
@@ -61577,7 +61588,7 @@ function defaultStyle() {
|
|
|
61577
61588
|
};
|
|
61578
61589
|
}
|
|
61579
61590
|
//#endregion
|
|
61580
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61591
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/sgr.js
|
|
61581
61592
|
/**
|
|
61582
61593
|
* SGR (Select Graphic Rendition) Parser
|
|
61583
61594
|
*
|
|
@@ -61885,7 +61896,7 @@ function applySGR(paramStr, style) {
|
|
|
61885
61896
|
return s;
|
|
61886
61897
|
}
|
|
61887
61898
|
//#endregion
|
|
61888
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61899
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/parser.js
|
|
61889
61900
|
/**
|
|
61890
61901
|
* ANSI Parser - Semantic Action Generator
|
|
61891
61902
|
*
|
|
@@ -62262,7 +62273,7 @@ var Parser = class {
|
|
|
62262
62273
|
}
|
|
62263
62274
|
};
|
|
62264
62275
|
//#endregion
|
|
62265
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62276
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
|
|
62266
62277
|
/**
|
|
62267
62278
|
* Component that parses ANSI escape codes and renders them using Text components.
|
|
62268
62279
|
*
|
|
@@ -62513,7 +62524,7 @@ function StyledText(t0) {
|
|
|
62513
62524
|
return t1;
|
|
62514
62525
|
}
|
|
62515
62526
|
//#endregion
|
|
62516
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62527
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
|
|
62517
62528
|
var ui_exports = /* @__PURE__ */ __exportAll({
|
|
62518
62529
|
AlternateScreen: () => AlternateScreen,
|
|
62519
62530
|
Ansi: () => Ansi,
|
|
@@ -62537,7 +62548,7 @@ var ui_exports = /* @__PURE__ */ __exportAll({
|
|
|
62537
62548
|
useTheme: () => useTheme
|
|
62538
62549
|
});
|
|
62539
62550
|
//#endregion
|
|
62540
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62551
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
|
|
62541
62552
|
/** 嵌套安全的 inset(若未来出现嵌套 PageMargin 会累加)。 */
|
|
62542
62553
|
const PageInsetContext = import_react.createContext({
|
|
62543
62554
|
x: 0,
|
|
@@ -62591,7 +62602,7 @@ function PageMargin({ children }) {
|
|
|
62591
62602
|
});
|
|
62592
62603
|
}
|
|
62593
62604
|
//#endregion
|
|
62594
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62605
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
|
|
62595
62606
|
/**
|
|
62596
62607
|
* UI glyph constants used across the TUI: prompt markers, status badges,
|
|
62597
62608
|
* direction arrows, media controls, reasoning-effort indicators, and
|
|
@@ -62618,7 +62629,7 @@ const THINKING_SPINNER_FRAMES = [
|
|
|
62618
62629
|
"⠏"
|
|
62619
62630
|
];
|
|
62620
62631
|
//#endregion
|
|
62621
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62632
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerWizard.js
|
|
62622
62633
|
/**
|
|
62623
62634
|
* `/provider` wizard — interactively adds, edits, or deletes an LLM
|
|
62624
62635
|
* provider route at runtime.
|
|
@@ -63344,7 +63355,7 @@ function buildProfile(input) {
|
|
|
63344
63355
|
return profile;
|
|
63345
63356
|
}
|
|
63346
63357
|
//#endregion
|
|
63347
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63358
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/modelConfigWizard.js
|
|
63348
63359
|
/** `/model-config`: platform catalogs and shared provider configuration. */
|
|
63349
63360
|
const CUSTOM_MODEL_PROTOCOLS = [
|
|
63350
63361
|
"openai-completions",
|
|
@@ -64226,7 +64237,7 @@ function parseCapacity(value) {
|
|
|
64226
64237
|
return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : void 0;
|
|
64227
64238
|
}
|
|
64228
64239
|
//#endregion
|
|
64229
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64240
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-declared-cursor.js
|
|
64230
64241
|
/**
|
|
64231
64242
|
* Declares where the terminal cursor should be parked after each frame.
|
|
64232
64243
|
*
|
|
@@ -64275,7 +64286,7 @@ function useDeclaredCursor(options) {
|
|
|
64275
64286
|
return setNode;
|
|
64276
64287
|
}
|
|
64277
64288
|
//#endregion
|
|
64278
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64289
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-element.js
|
|
64279
64290
|
/**
|
|
64280
64291
|
* Measure the rendered dimensions of a Box element.
|
|
64281
64292
|
* @param node - the DOM element to measure.
|
|
@@ -64286,7 +64297,7 @@ const measureElement = (node) => ({
|
|
|
64286
64297
|
height: node.yogaNode?.getComputedHeight() ?? 0
|
|
64287
64298
|
});
|
|
64288
64299
|
//#endregion
|
|
64289
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64300
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Divider.js
|
|
64290
64301
|
const MAX_APPLIED_MEASUREMENTS = 8;
|
|
64291
64302
|
/**
|
|
64292
64303
|
* A horizontal divider line, optionally with a title in the middle
|
|
@@ -66014,7 +66025,7 @@ f.parseInline;
|
|
|
66014
66025
|
O.parse;
|
|
66015
66026
|
T.lex;
|
|
66016
66027
|
//#endregion
|
|
66017
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66028
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
|
|
66018
66029
|
/** highlight.js token classes -> theme syntax tokens. `default` catches
|
|
66019
66030
|
* every unmapped class so cli-highlight's own yellow never leaks through
|
|
66020
66031
|
* (issue #250, P2-6). */
|
|
@@ -66080,7 +66091,7 @@ function buildSyntaxTheme(theme) {
|
|
|
66080
66091
|
return out;
|
|
66081
66092
|
}
|
|
66082
66093
|
//#endregion
|
|
66083
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66094
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
|
|
66084
66095
|
/** OSC 8 hyperlink start sequence: `ESC ] 8 ; ;`, followed by the URL. */
|
|
66085
66096
|
const OSC8_START = "\x1B]8;;";
|
|
66086
66097
|
/** Schemes a rendered hyperlink may point at. Anything else degrades to
|
|
@@ -66122,7 +66133,7 @@ function createHyperlink(url, content, options) {
|
|
|
66122
66133
|
return `${OSC8_START}${safeUrl}${(options?.style ?? ((text) => chalk.blue(text)))(displayText)}${OSC8_START}`;
|
|
66123
66134
|
}
|
|
66124
66135
|
//#endregion
|
|
66125
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66136
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
|
|
66126
66137
|
/**
|
|
66127
66138
|
* Clickable file targets: turning path-like text in AI output into
|
|
66128
66139
|
* clickable targets, and resolving those targets back to absolute paths at
|
|
@@ -66264,7 +66275,7 @@ function linkifyFilePaths(text, wrap) {
|
|
|
66264
66275
|
});
|
|
66265
66276
|
}
|
|
66266
66277
|
//#endregion
|
|
66267
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66278
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
|
|
66268
66279
|
/**
|
|
66269
66280
|
* Markdown-to-ANSI renderer over marked's token stream.
|
|
66270
66281
|
*
|
|
@@ -66579,7 +66590,7 @@ function padAligned(content, displayWidth, targetWidth, align) {
|
|
|
66579
66590
|
return content + " ".repeat(extra);
|
|
66580
66591
|
}
|
|
66581
66592
|
//#endregion
|
|
66582
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66593
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
|
|
66583
66594
|
let cliHighlightPromise;
|
|
66584
66595
|
async function loadCliHighlight() {
|
|
66585
66596
|
try {
|
|
@@ -66602,7 +66613,7 @@ function getCliHighlightPromise() {
|
|
|
66602
66613
|
return cliHighlightPromise;
|
|
66603
66614
|
}
|
|
66604
66615
|
//#endregion
|
|
66605
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66616
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
|
|
66606
66617
|
/** Accounts for parent indentation and terminal resize races (from Claude Code). */
|
|
66607
66618
|
const SAFETY_MARGIN = 4;
|
|
66608
66619
|
/** Minimum column width to prevent degenerate layouts */
|
|
@@ -66789,7 +66800,7 @@ function MarkdownTable({ token, highlight, forceWidth }) {
|
|
|
66789
66800
|
return (0, import_jsx_runtime.jsx)(Text, { children: tableLines.join("\n") });
|
|
66790
66801
|
}
|
|
66791
66802
|
//#endregion
|
|
66792
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66803
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
|
|
66793
66804
|
const TOKEN_CACHE_CAPACITY = 200;
|
|
66794
66805
|
const TOKEN_CACHE_CHAR_BUDGET = 2e5;
|
|
66795
66806
|
const TOKEN_CACHE_MAX_SOURCE_LENGTH = 2e4;
|
|
@@ -66898,7 +66909,7 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true }) {
|
|
|
66898
66909
|
*/
|
|
66899
66910
|
const Markdown = import_react.memo(MarkdownImpl, (prev, next) => prev.children === next.children && prev.dimColor === next.dimColor && prev.cacheTokens === next.cacheTokens);
|
|
66900
66911
|
//#endregion
|
|
66901
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66912
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/PlanReviewPanel.js
|
|
66902
66913
|
/**
|
|
66903
66914
|
* The plan-review panel — Claude Code style exit-plan-mode decision card
|
|
66904
66915
|
* for the DSH user-interaction seam. plan-mode's `exit_plan_mode` tool asks
|
|
@@ -67220,7 +67231,7 @@ function PlanReviewPanel({ question, onAnswer, onCancel }) {
|
|
|
67220
67231
|
});
|
|
67221
67232
|
}
|
|
67222
67233
|
//#endregion
|
|
67223
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67234
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
|
|
67224
67235
|
/**
|
|
67225
67236
|
* 焦点居中的列表窗口:长列表只渲染焦点附近的一段,保证焦点行始终可见。
|
|
67226
67237
|
* 瞬态面板走 OverlayAbove 零高度浮层后,超高部分会被 overflow 裁掉且焦点
|
|
@@ -67272,7 +67283,7 @@ function listWindow(heights, focusIndex, maxRows, gap = 0) {
|
|
|
67272
67283
|
}
|
|
67273
67284
|
}
|
|
67274
67285
|
//#endregion
|
|
67275
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67286
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/AskUserQuestionPanel.js
|
|
67276
67287
|
/**
|
|
67277
67288
|
* The questionnaire panel — Claude Code style ask-user-question UI for the
|
|
67278
67289
|
* DSH user-interaction seam. One question per panel (progress header, header
|
|
@@ -67866,7 +67877,7 @@ function AskUserQuestionPanel({ question, position, total, answered, initialDraf
|
|
|
67866
67877
|
});
|
|
67867
67878
|
}
|
|
67868
67879
|
//#endregion
|
|
67869
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67880
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/approvals/ApprovalPanel.js
|
|
67870
67881
|
/**
|
|
67871
67882
|
* The approval panel — Claude Code style permission prompt for the DSH
|
|
67872
67883
|
* approval seam (`ctx.approval`). One ask per panel: a permission-colored
|
|
@@ -67991,7 +68002,7 @@ function ApprovalPanel({ approval, background = false, onDecide }) {
|
|
|
67991
68002
|
});
|
|
67992
68003
|
}
|
|
67993
68004
|
//#endregion
|
|
67994
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68005
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Pane.js
|
|
67995
68006
|
/**
|
|
67996
68007
|
* A pane — a region below the prompt bounded by a colored top line with a
|
|
67997
68008
|
* one-row gap above and horizontal padding, mirroring Claude Code's
|
|
@@ -68013,7 +68024,7 @@ function Pane({ children, color }) {
|
|
|
68013
68024
|
});
|
|
68014
68025
|
}
|
|
68015
68026
|
//#endregion
|
|
68016
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68027
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ListItem.js
|
|
68017
68028
|
/**
|
|
68018
68029
|
* A list item for selection UIs, mirroring Claude Code's
|
|
68019
68030
|
* design-system/ListItem.tsx: `❯` pointer for the focused row, `✓`
|
|
@@ -68110,7 +68121,7 @@ function flattenDeep(node) {
|
|
|
68110
68121
|
return node;
|
|
68111
68122
|
}
|
|
68112
68123
|
//#endregion
|
|
68113
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68124
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/HintLine.js
|
|
68114
68125
|
/**
|
|
68115
68126
|
* Localized shortcut-hint line: renders a `t('hint-*')` string, with the
|
|
68116
68127
|
* `**primary shortcut**` segment (the main action's key, wrapped in `**` in
|
|
@@ -68127,7 +68138,7 @@ function HintLine({ text }) {
|
|
|
68127
68138
|
}, index) : part) });
|
|
68128
68139
|
}
|
|
68129
68140
|
//#endregion
|
|
68130
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68141
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
|
|
68131
68142
|
/**
|
|
68132
68143
|
* The managed plugin dialog (`ctx.tuiDialogs`) — one panel rendering the
|
|
68133
68144
|
* store's current snapshot in the chat chrome (the slot approval/question
|
|
@@ -68387,7 +68398,7 @@ function InputDialog({ dialog, onDecide, onCancel }) {
|
|
|
68387
68398
|
});
|
|
68388
68399
|
}
|
|
68389
68400
|
//#endregion
|
|
68390
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68401
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-search-highlight.js
|
|
68391
68402
|
/**
|
|
68392
68403
|
* Set the search highlight query on the Ink instance. Non-empty → all
|
|
68393
68404
|
* visible occurrences are inverted on the next frame (SGR 7, screen-buffer
|
|
@@ -68419,7 +68430,7 @@ function useSearchHighlight() {
|
|
|
68419
68430
|
}, [ink]);
|
|
68420
68431
|
}
|
|
68421
68432
|
//#endregion
|
|
68422
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68433
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-title.js
|
|
68423
68434
|
/**
|
|
68424
68435
|
* Declaratively set the terminal tab/window title.
|
|
68425
68436
|
*
|
|
@@ -68442,7 +68453,7 @@ function useTerminalTitle(title) {
|
|
|
68442
68453
|
}, [title, writeRaw]);
|
|
68443
68454
|
}
|
|
68444
68455
|
//#endregion
|
|
68445
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68456
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
|
|
68446
68457
|
/**
|
|
68447
68458
|
* Session browser formatting.
|
|
68448
68459
|
*
|
|
@@ -68691,7 +68702,7 @@ function projectName(cwd) {
|
|
|
68691
68702
|
return normalized.split("/").filter(Boolean).at(-1) ?? normalized;
|
|
68692
68703
|
}
|
|
68693
68704
|
//#endregion
|
|
68694
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68705
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
|
|
68695
68706
|
/**
|
|
68696
68707
|
* Tooltip hover system — the terminal equivalent of the HTML `title`
|
|
68697
68708
|
* attribute. Attach {@link useTooltip} props to any Box whose visible text
|
|
@@ -68899,7 +68910,7 @@ function wrapTooltipContent(text, width) {
|
|
|
68899
68910
|
return rows;
|
|
68900
68911
|
}
|
|
68901
68912
|
//#endregion
|
|
68902
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68913
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/UserPromptMessage.js
|
|
68903
68914
|
/** User prompt row in the legacy CLI treatment: a full-width gray strip. */
|
|
68904
68915
|
function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
|
|
68905
68916
|
const { columns } = useTerminalSize();
|
|
@@ -68928,7 +68939,7 @@ function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
|
|
|
68928
68939
|
});
|
|
68929
68940
|
}
|
|
68930
68941
|
//#endregion
|
|
68931
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68942
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantTextMessage.js
|
|
68932
68943
|
/**
|
|
68933
68944
|
* Assistant text message: bullet + markdown body (mirroring Claude Code's default branch).
|
|
68934
68945
|
*
|
|
@@ -68961,7 +68972,7 @@ function AssistantTextMessage({ text, addMargin, isSelected = false, isExpanded
|
|
|
68961
68972
|
});
|
|
68962
68973
|
}
|
|
68963
68974
|
//#endregion
|
|
68964
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68975
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
|
|
68965
68976
|
/**
|
|
68966
68977
|
* Renders markdown during streaming by splitting at the last top-level block
|
|
68967
68978
|
* boundary: everything before is stable (memoized, never re-parsed), only the
|
|
@@ -69151,7 +69162,7 @@ function StreamingMarkdown({ children, dimColor = false }) {
|
|
|
69151
69162
|
});
|
|
69152
69163
|
}
|
|
69153
69164
|
//#endregion
|
|
69154
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69165
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/spinnerUtils.js
|
|
69155
69166
|
/**
|
|
69156
69167
|
* Spinner 动画的通用工具集:平台相关的帧字符选择、RGB 颜色插值、
|
|
69157
69168
|
* HSL 色相转 RGB,以及 `rgb(...)` 颜色字符串的解析与记忆化。
|
|
@@ -69231,7 +69242,7 @@ function parseRGB(colorStr) {
|
|
|
69231
69242
|
return parsed;
|
|
69232
69243
|
}
|
|
69233
69244
|
//#endregion
|
|
69234
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69245
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
|
|
69235
69246
|
/** Header blue-white ladder: brand → ice → pale → soft ice flash.
|
|
69236
69247
|
* FLASH stays visibly blue (never pure white) — the highlight reads as a
|
|
69237
69248
|
* mist-brightened crest, not a white strobe. */
|
|
@@ -69247,7 +69258,7 @@ const ICE = {
|
|
|
69247
69258
|
b: 255
|
|
69248
69259
|
};
|
|
69249
69260
|
//#endregion
|
|
69250
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69261
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantThinkingMessage.js
|
|
69251
69262
|
/** Preview body rows — a FIXED row count (kimicode-style constant-height
|
|
69252
69263
|
* ticker). Ink's truncate slices the whole string across newlines as one
|
|
69253
69264
|
* logical line, so a single joined Text collapses to 1-2 rows whenever
|
|
@@ -69360,7 +69371,7 @@ function AssistantThinkingMessage({ thinking, textFull, addMargin, verbose, stre
|
|
|
69360
69371
|
});
|
|
69361
69372
|
}
|
|
69362
69373
|
//#endregion
|
|
69363
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69374
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
|
|
69364
69375
|
const CATEGORY_BY_TOOL = {
|
|
69365
69376
|
bash: "exec",
|
|
69366
69377
|
powershell: "exec",
|
|
@@ -69941,7 +69952,7 @@ var ArrayDiff = class extends Diff {
|
|
|
69941
69952
|
};
|
|
69942
69953
|
new ArrayDiff();
|
|
69943
69954
|
//#endregion
|
|
69944
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69955
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
|
|
69945
69956
|
const ANSI16 = {
|
|
69946
69957
|
30: "rgb(0,0,0)",
|
|
69947
69958
|
31: "rgb(128,0,0)",
|
|
@@ -70026,7 +70037,7 @@ function syntaxThemeSignature(theme) {
|
|
|
70026
70037
|
return Object.values(SYNTAX_CLASS_TO_TOKEN).map((key) => palette[key] ?? "").join("|");
|
|
70027
70038
|
}
|
|
70028
70039
|
//#endregion
|
|
70029
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70040
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
|
|
70030
70041
|
/**
|
|
70031
70042
|
* Smooth streaming reveal — decouples "text the provider has delivered" from
|
|
70032
70043
|
* "text the screen is showing" (the oh-my-pi `display.smoothStreaming` idea,
|
|
@@ -70272,7 +70283,7 @@ function revealLinesOf(key, total, options) {
|
|
|
70272
70283
|
return Math.min(existing.revealed, total);
|
|
70273
70284
|
}
|
|
70274
70285
|
//#endregion
|
|
70275
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70286
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
|
|
70276
70287
|
/** Replace tabs so width math and alignment hold (pi convention). */
|
|
70277
70288
|
const expandTabs = (text) => text.replaceAll(" ", " ");
|
|
70278
70289
|
/**
|
|
@@ -70581,7 +70592,7 @@ function SplitDiffView({ diffs, width, maxRows, verbose, toolBackground = "none"
|
|
|
70581
70592
|
});
|
|
70582
70593
|
}
|
|
70583
70594
|
//#endregion
|
|
70584
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70595
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
|
|
70585
70596
|
/** Async nested Text renderer. Lexes the complete payload before splitting. */
|
|
70586
70597
|
function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, dimColor }) {
|
|
70587
70598
|
const [highlighter, setHighlighter] = import_react.useState(null);
|
|
@@ -70625,7 +70636,7 @@ function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, d
|
|
|
70625
70636
|
}, index)) });
|
|
70626
70637
|
}
|
|
70627
70638
|
//#endregion
|
|
70628
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70639
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/format.js
|
|
70629
70640
|
/**
|
|
70630
70641
|
* Trajectory formatting — durations, clocks, badges and heat.
|
|
70631
70642
|
*
|
|
@@ -70827,7 +70838,7 @@ function ledgerLayout(columns) {
|
|
|
70827
70838
|
};
|
|
70828
70839
|
}
|
|
70829
70840
|
//#endregion
|
|
70830
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70841
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
|
|
70831
70842
|
/**
|
|
70832
70843
|
* Reveal-frame wakeup as a React hook — bumps once per advancing ~30fps
|
|
70833
70844
|
* scheduler tick so consumers re-run their render-phase cursor reads
|
|
@@ -70857,7 +70868,7 @@ function useRevealVersion(enabled = true) {
|
|
|
70857
70868
|
return version;
|
|
70858
70869
|
}
|
|
70859
70870
|
//#endregion
|
|
70860
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70871
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantToolUseMessage.js
|
|
70861
70872
|
/** Tool display names: DSH emits lowercase tool ids (`bash`); Claude Code
|
|
70862
70873
|
* shows capitalized names (`Bash`). Map the common ones, fall back to the
|
|
70863
70874
|
* id with its first letter uppercased. */
|
|
@@ -71393,7 +71404,7 @@ function AssistantToolUseMessage({ tool, addMargin, verbose, isSelected = false,
|
|
|
71393
71404
|
});
|
|
71394
71405
|
}
|
|
71395
71406
|
//#endregion
|
|
71396
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71407
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/SubagentMessage.js
|
|
71397
71408
|
/** The waterfall window is a Kimi Code style constant-height region. */
|
|
71398
71409
|
const WATERFALL_ROWS = 3;
|
|
71399
71410
|
/** Card left padding + the `│ ` gutter prefix. */
|
|
@@ -71601,7 +71612,7 @@ function SubagentMessage({ subagent, addMargin, activityFrames, onClick }) {
|
|
|
71601
71612
|
});
|
|
71602
71613
|
}
|
|
71603
71614
|
//#endregion
|
|
71604
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71615
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/JobCard.js
|
|
71605
71616
|
/** Card left padding + the `│ ` gutter prefix. */
|
|
71606
71617
|
const WATERFALL_GUTTER = 4;
|
|
71607
71618
|
/** Static status marker — deliberately NOT the animated activity-indicator
|
|
@@ -71754,7 +71765,7 @@ function JobCard({ job, addMargin, onClick }) {
|
|
|
71754
71765
|
});
|
|
71755
71766
|
}
|
|
71756
71767
|
//#endregion
|
|
71757
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71768
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
|
|
71758
71769
|
/**
|
|
71759
71770
|
* The dim "interrupted" row shown when the user stops a turn, mirroring
|
|
71760
71771
|
* Claude Code's `InterruptedByUser.tsx`.
|
|
@@ -71769,7 +71780,7 @@ function InterruptedByUser() {
|
|
|
71769
71780
|
})] });
|
|
71770
71781
|
}
|
|
71771
71782
|
//#endregion
|
|
71772
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71783
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
|
|
71773
71784
|
/**
|
|
71774
71785
|
* 当月 AI 代码生成占比统计(移植自 chatcode-cli 的同名服务)。
|
|
71775
71786
|
*
|
|
@@ -71937,7 +71948,7 @@ function computeAiRatioPercent(records) {
|
|
|
71937
71948
|
return clampPercent(aiAdoptedTotal / addedTotal * 100);
|
|
71938
71949
|
}
|
|
71939
71950
|
//#endregion
|
|
71940
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71951
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
|
|
71941
71952
|
/**
|
|
71942
71953
|
* 「AI代码生成占比」数据源 Hook(移植自 chatcode-cli 的同名 Hook)。
|
|
71943
71954
|
*
|
|
@@ -72001,7 +72012,7 @@ function useAiRatio(enabled = true) {
|
|
|
72001
72012
|
};
|
|
72002
72013
|
}
|
|
72003
72014
|
//#endregion
|
|
72004
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72015
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
|
|
72005
72016
|
/**
|
|
72006
72017
|
* 「通知」数据源 Hook(移植自 chatcode-cli 的 LogoV2/FooterInfo 通知行)。
|
|
72007
72018
|
*
|
|
@@ -72038,7 +72049,7 @@ function useNotification() {
|
|
|
72038
72049
|
return { message };
|
|
72039
72050
|
}
|
|
72040
72051
|
//#endregion
|
|
72041
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72052
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
|
|
72042
72053
|
/**
|
|
72043
72054
|
* Slice a string to at most `maxWidth` terminal cells, walking by code
|
|
72044
72055
|
* point so CJK wide characters never split mid-glyph. Assumes no ANSI in
|
|
@@ -72056,7 +72067,7 @@ function truncateToWidth(text, maxWidth) {
|
|
|
72056
72067
|
return out;
|
|
72057
72068
|
}
|
|
72058
72069
|
//#endregion
|
|
72059
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72070
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
|
|
72060
72071
|
/** Main ChatCode CLI package version shown in the startup information panel. */
|
|
72061
72072
|
const VERSION = PRODUCT_VERSION;
|
|
72062
72073
|
const PRODUCT_LABEL = "chatcode-cli";
|
|
@@ -72327,7 +72338,7 @@ function LogoV2({ model, effort, cwd, whale = true, aiRatio, drift }) {
|
|
|
72327
72338
|
});
|
|
72328
72339
|
}
|
|
72329
72340
|
//#endregion
|
|
72330
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72341
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/MessageMetadata.js
|
|
72331
72342
|
/**
|
|
72332
72343
|
* Transcript-mode metadata row: `HH:MM · model`, right-aligned above the
|
|
72333
72344
|
* assistant text, mirroring Claude Code's MessageTimestamp + MessageModel,
|
|
@@ -72349,7 +72360,7 @@ function MessageMetadata({ timestamp, model }) {
|
|
|
72349
72360
|
});
|
|
72350
72361
|
}
|
|
72351
72362
|
//#endregion
|
|
72352
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72363
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
|
|
72353
72364
|
/**
|
|
72354
72365
|
* Strip the `⏵` self-narration line from assistant text. The
|
|
72355
72366
|
* dsh-working-activity narrate contract puts exactly one `⏵` line at the
|
|
@@ -72465,7 +72476,7 @@ function ellipsize(line, maxWidth) {
|
|
|
72465
72476
|
return `${out}…`;
|
|
72466
72477
|
}
|
|
72467
72478
|
//#endregion
|
|
72468
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72479
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
|
|
72469
72480
|
/**
|
|
72470
72481
|
* Transcript rows rendered in the Claude Code visual language: user prompts
|
|
72471
72482
|
* on a grey bubble with a `❯` pointer, assistant text with a `●` bullet and
|
|
@@ -73278,7 +73289,7 @@ function LogoHeader({ model, effort, cwd, whale = true, skipIntro = false }) {
|
|
|
73278
73289
|
});
|
|
73279
73290
|
}
|
|
73280
73291
|
//#endregion
|
|
73281
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73292
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
|
|
73282
73293
|
/** ▴ / ▾ (U+25B4 / U+25BE — the small triangles; CP437-safe on ConHost too). */
|
|
73283
73294
|
const CHEVRON_UP = " ▴";
|
|
73284
73295
|
const CHEVRON_DOWN = " ▾";
|
|
@@ -73472,7 +73483,7 @@ function TimelineRail({ handle, turns, activeId, upId, downId, terminalWidth, ho
|
|
|
73472
73483
|
}) });
|
|
73473
73484
|
}
|
|
73474
73485
|
//#endregion
|
|
73475
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73486
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
|
|
73476
73487
|
/** Thumb glyph across the 2-col gutter: solid, clearly positional —
|
|
73477
73488
|
* deliberately distinct from the timeline's ━━ active tick. */
|
|
73478
73489
|
const THUMB = "██";
|
|
@@ -73588,7 +73599,7 @@ function ScrollbarGutter({ handle, terminalWidth }) {
|
|
|
73588
73599
|
}) });
|
|
73589
73600
|
}
|
|
73590
73601
|
//#endregion
|
|
73591
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73602
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
|
|
73592
73603
|
/**
|
|
73593
73604
|
* 瞬态面板的浮层容器:absolute 定位 + bottom:'100%' 把面板底边钉在锚点
|
|
73594
73605
|
* (父元素)顶边,向上覆盖转录尾部行,自身**不占布局高度**。
|
|
@@ -73621,7 +73632,7 @@ function OverlayAbove({ children, maxHeight }) {
|
|
|
73621
73632
|
});
|
|
73622
73633
|
}
|
|
73623
73634
|
//#endregion
|
|
73624
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73635
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
|
|
73625
73636
|
/**
|
|
73626
73637
|
* Trajectory motion — five verbs, one shared clock, one hard rule.
|
|
73627
73638
|
*
|
|
@@ -73746,7 +73757,7 @@ function alert(tick, startTick) {
|
|
|
73746
73757
|
return Math.floor(age / 2) % 2 === 0 ? 1 : 0;
|
|
73747
73758
|
}
|
|
73748
73759
|
//#endregion
|
|
73749
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73760
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
|
|
73750
73761
|
/** 三幕时间轴(ms):扫光全长、字样启动(波至中段)、字样渐亮、渐隐起止。边框扫光与输入行字样徽标共用。 */
|
|
73751
73762
|
const IGNITION_TIMELINE = {
|
|
73752
73763
|
sweepMs: 1e3,
|
|
@@ -73894,7 +73905,7 @@ function ignitionLineColors(options) {
|
|
|
73894
73905
|
return colors;
|
|
73895
73906
|
}
|
|
73896
73907
|
//#endregion
|
|
73897
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73908
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
|
|
73898
73909
|
/**
|
|
73899
73910
|
* EffortChargeGlyph — 输入提示前缀 `❯ ` 的最高档强调与充能。
|
|
73900
73911
|
*
|
|
@@ -73950,7 +73961,7 @@ function EffortChargeGlyph({ effort, levels, working }) {
|
|
|
73950
73961
|
});
|
|
73951
73962
|
}
|
|
73952
73963
|
//#endregion
|
|
73953
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73964
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
|
|
73954
73965
|
/**
|
|
73955
73966
|
* EffortInputBorder — 输入框层上的三幕点焰叠加(对齐 Codex 的完整
|
|
73956
73967
|
* 语义:光扫过、档位字样浮现、整体渐隐)。
|
|
@@ -74085,7 +74096,7 @@ function EffortInputBorder({ effort, levels, columns, onLight, idleColor, topRig
|
|
|
74085
74096
|
});
|
|
74086
74097
|
}
|
|
74087
74098
|
//#endregion
|
|
74088
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74099
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
|
|
74089
74100
|
/**
|
|
74090
74101
|
* EffortTierBadge — 输入行尾的档位字样徽标:三幕点焰的第二幕载体
|
|
74091
74102
|
* (与 EffortInputBorder 的双框扫光同一时间轴、同一触发),切到最高
|
|
@@ -74168,7 +74179,7 @@ function EffortTierBadge({ effort, levels, onLight, columns, leadingColumns }) {
|
|
|
74168
74179
|
});
|
|
74169
74180
|
}
|
|
74170
74181
|
//#endregion
|
|
74171
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74182
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
|
|
74172
74183
|
/**
|
|
74173
74184
|
* Cross-platform clipboard access for Ctrl+V paste. The TUI runs in raw
|
|
74174
74185
|
* mode, so the terminal never performs its own paste for Ctrl+V — the key
|
|
@@ -74682,7 +74693,7 @@ function formatClipboardInsert(content) {
|
|
|
74682
74693
|
return content.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
74683
74694
|
}
|
|
74684
74695
|
//#endregion
|
|
74685
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74696
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
|
|
74686
74697
|
/**
|
|
74687
74698
|
* External editor round-trip for the prompt input (issue #123): Ctrl+G dumps
|
|
74688
74699
|
* the current draft into a temp file, hands the terminal to `$VISUAL` /
|
|
@@ -74960,7 +74971,7 @@ async function editInExternalEditor(draft) {
|
|
|
74960
74971
|
}
|
|
74961
74972
|
}
|
|
74962
74973
|
//#endregion
|
|
74963
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74974
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
|
|
74964
74975
|
let editorNode = null;
|
|
74965
74976
|
const listeners = /* @__PURE__ */ new Set();
|
|
74966
74977
|
/** Publish (or withdraw, with null) the fullscreen editor subtree. */
|
|
@@ -75036,7 +75047,7 @@ function EditorButton({ label, hint, onClick, primary, accent }) {
|
|
|
75036
75047
|
});
|
|
75037
75048
|
}
|
|
75038
75049
|
//#endregion
|
|
75039
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75050
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
|
|
75040
75051
|
const HISTORY_DIR = DATA_DIR;
|
|
75041
75052
|
const HISTORY_FILE = join(HISTORY_DIR, "history.jsonl");
|
|
75042
75053
|
const HISTORY_LOCK = `${HISTORY_FILE}.lock`;
|
|
@@ -75170,7 +75181,7 @@ function historyEntryId(entry, index = 0) {
|
|
|
75170
75181
|
return createHash("sha1").update(`${entry.text}\0${entry.ts}\0${index}`).digest("hex").slice(0, 12);
|
|
75171
75182
|
}
|
|
75172
75183
|
//#endregion
|
|
75173
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75184
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
|
|
75174
75185
|
/**
|
|
75175
75186
|
* `/` 命令菜单与 `@` 文件菜单共用的圆角卡片外壳(与输入框 EffortInputBorder
|
|
75176
75187
|
* 同款 ╭╮╰╯ 视觉语言):
|
|
@@ -75302,7 +75313,7 @@ function splitQueryMatch(name, query) {
|
|
|
75302
75313
|
return startsWith(0) ?? (lastSpace >= 0 ? startsWith(lastSpace + 1) : null) ?? startsWith(name.lastIndexOf("/") + 1);
|
|
75303
75314
|
}
|
|
75304
75315
|
//#endregion
|
|
75305
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75316
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
|
|
75306
75317
|
/**
|
|
75307
75318
|
* The slash-command suggestion overlay, mirroring Claude Code's
|
|
75308
75319
|
* `PromptInputFooterSuggestions.tsx` (command layout only) wrapped in the
|
|
@@ -75382,7 +75393,7 @@ function CommandSuggestions({ commands, selectedIndex, columns, query = "", acce
|
|
|
75382
75393
|
});
|
|
75383
75394
|
}
|
|
75384
75395
|
//#endregion
|
|
75385
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75396
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
|
|
75386
75397
|
/**
|
|
75387
75398
|
* The `@` file-completion overlay in CC's suggestion style, wrapped in the
|
|
75388
75399
|
* shared rounded `SuggestionCard` (与 `/` 命令菜单同一视觉语言):
|
|
@@ -75479,7 +75490,7 @@ function FileSuggestions({ files, selectedIndex, columns, query = "", loading, a
|
|
|
75479
75490
|
});
|
|
75480
75491
|
}
|
|
75481
75492
|
//#endregion
|
|
75482
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75493
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
|
|
75483
75494
|
/**
|
|
75484
75495
|
* The `?` help menu, mirroring Claude Code's `PromptInputHelpMenu.tsx`
|
|
75485
75496
|
* (three-column shortcut layout, trimmed to the keys dsh-tui actually binds).
|
|
@@ -75670,7 +75681,7 @@ function HelpCommandRow({ command, onPick }) {
|
|
|
75670
75681
|
});
|
|
75671
75682
|
}
|
|
75672
75683
|
//#endregion
|
|
75673
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75684
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
|
|
75674
75685
|
const HISTORY_LIMIT = 50;
|
|
75675
75686
|
/**
|
|
75676
75687
|
* Paste fold (CC-style collapse with a visible preview, no black box):
|
|
@@ -78017,7 +78028,7 @@ function wordSelectionAt(text, offset, lo, hi) {
|
|
|
78017
78028
|
};
|
|
78018
78029
|
}
|
|
78019
78030
|
//#endregion
|
|
78020
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78031
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
|
|
78021
78032
|
/** Maximum todo rows shown before the overflow line. */
|
|
78022
78033
|
const MAX_TODOS = 8;
|
|
78023
78034
|
const PHASE_LABEL = {
|
|
@@ -78263,7 +78274,7 @@ function GoalTodoPanel({ channel, collapsed = false, onToggle }) {
|
|
|
78263
78274
|
});
|
|
78264
78275
|
}
|
|
78265
78276
|
//#endregion
|
|
78266
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78277
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
|
|
78267
78278
|
/**
|
|
78268
78279
|
* Auto-recap row (`dsh-tui.recapOnOpen` setting): a quiet, dim recap shown
|
|
78269
78280
|
* at the bottom of the transcript after an automatic summary on session
|
|
@@ -78343,7 +78354,7 @@ function summarizeLoadedContext(context) {
|
|
|
78343
78354
|
return parts.join(" · ");
|
|
78344
78355
|
}
|
|
78345
78356
|
//#endregion
|
|
78346
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78357
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
|
|
78347
78358
|
/** One named entry (section or dynamic context) with its full text. */
|
|
78348
78359
|
function Entry({ entry }) {
|
|
78349
78360
|
return (0, import_jsx_runtime.jsxs)(ThemedBox, {
|
|
@@ -78480,7 +78491,7 @@ function LoadedContextPanel({ context, open, onToggle }) {
|
|
|
78480
78491
|
});
|
|
78481
78492
|
}
|
|
78482
78493
|
//#endregion
|
|
78483
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78494
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
|
|
78484
78495
|
/**
|
|
78485
78496
|
* Terminal-safe construction cycle derived from the supplied China Unicom
|
|
78486
78497
|
* knot mark. Every frame is one display cell, unlike emoji on mixed terminals.
|
|
@@ -78512,7 +78523,7 @@ function UnicomKnotSpinner({ time }) {
|
|
|
78512
78523
|
});
|
|
78513
78524
|
}
|
|
78514
78525
|
//#endregion
|
|
78515
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78526
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
|
|
78516
78527
|
/**
|
|
78517
78528
|
* Context-pressure percentage (0–100) from the last usage snapshot, or
|
|
78518
78529
|
* undefined when unknown — shared by the spinner-line and status-line
|
|
@@ -78584,7 +78595,7 @@ function ActivityLine({ activity, activityFrames, warnPct, warnDanger, suffix })
|
|
|
78584
78595
|
});
|
|
78585
78596
|
}
|
|
78586
78597
|
//#endregion
|
|
78587
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78598
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/guards.js
|
|
78588
78599
|
/**
|
|
78589
78600
|
* Structural guards for the session events the trajectory projection reads.
|
|
78590
78601
|
*
|
|
@@ -78808,7 +78819,7 @@ function readTodos(data) {
|
|
|
78808
78819
|
};
|
|
78809
78820
|
}
|
|
78810
78821
|
//#endregion
|
|
78811
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78822
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/types.js
|
|
78812
78823
|
/**
|
|
78813
78824
|
* Trajectory projection — the data contract shared by the adapter-side fold
|
|
78814
78825
|
* and the UI-side scene (issue #80 evolution).
|
|
@@ -78875,7 +78886,7 @@ function previewText(raw, limit) {
|
|
|
78875
78886
|
return `${flat.slice(0, limit)}…`;
|
|
78876
78887
|
}
|
|
78877
78888
|
//#endregion
|
|
78878
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78889
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/projection.js
|
|
78879
78890
|
/**
|
|
78880
78891
|
* Trajectory projection — folding the session event log into ledger nodes.
|
|
78881
78892
|
*
|
|
@@ -79454,7 +79465,7 @@ function extendTrajectory(previous, events) {
|
|
|
79454
79465
|
};
|
|
79455
79466
|
}
|
|
79456
79467
|
//#endregion
|
|
79457
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79468
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/aggregate.js
|
|
79458
79469
|
/**
|
|
79459
79470
|
* Trajectory aggregate — the hotspot view's data and the session totals.
|
|
79460
79471
|
*
|
|
@@ -79675,7 +79686,7 @@ function modelTiming(timing) {
|
|
|
79675
79686
|
};
|
|
79676
79687
|
}
|
|
79677
79688
|
//#endregion
|
|
79678
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79689
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/inspect.js
|
|
79679
79690
|
/**
|
|
79680
79691
|
* Inspector detail — full content, resolved on demand.
|
|
79681
79692
|
*
|
|
@@ -79835,7 +79846,7 @@ function inspectNode(node, events) {
|
|
|
79835
79846
|
};
|
|
79836
79847
|
}
|
|
79837
79848
|
//#endregion
|
|
79838
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79849
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/wave.js
|
|
79839
79850
|
/**
|
|
79840
79851
|
* Wave band projection — the whole session compressed onto one row of glyphs.
|
|
79841
79852
|
*
|
|
@@ -80008,7 +80019,7 @@ function columnOfIndex(band, ledgerIndex) {
|
|
|
80008
80019
|
return 0;
|
|
80009
80020
|
}
|
|
80010
80021
|
//#endregion
|
|
80011
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80022
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/MiniWake.js
|
|
80012
80023
|
/**
|
|
80013
80024
|
* The mini wake — the whole session as a dozen glyphs in the status line.
|
|
80014
80025
|
*
|
|
@@ -80111,7 +80122,7 @@ function toHex$1(colour) {
|
|
|
80111
80122
|
return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
|
|
80112
80123
|
}
|
|
80113
80124
|
//#endregion
|
|
80114
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80125
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
|
|
80115
80126
|
/**
|
|
80116
80127
|
* Status-line metric renderers, ported from two pi extensions:
|
|
80117
80128
|
* - `pi-nano-context`: segmented context progress bar (morandi pastel
|
|
@@ -80387,7 +80398,7 @@ function tpsStats(samples, nowMs) {
|
|
|
80387
80398
|
};
|
|
80388
80399
|
}
|
|
80389
80400
|
//#endregion
|
|
80390
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80401
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
|
|
80391
80402
|
/** Free-segment colors, mirroring StatusMetrics' dark-theme defaults. */
|
|
80392
80403
|
const FREE_FILL = "#E8E8E8";
|
|
80393
80404
|
const FREE_TEXT = "#4A4A4A";
|
|
@@ -80454,7 +80465,7 @@ function ContextBarView({ segments, usedTokens, contextWindow, width, colors, on
|
|
|
80454
80465
|
});
|
|
80455
80466
|
}
|
|
80456
80467
|
//#endregion
|
|
80457
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80468
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
|
|
80458
80469
|
/**
|
|
80459
80470
|
* ChatCode 今日总 Token 消耗量查询(移植自 chatcode-cli 的 chatCodeTokenTrend)。
|
|
80460
80471
|
*
|
|
@@ -80529,7 +80540,7 @@ async function fetchTodayTotalTokens(post, signal) {
|
|
|
80529
80540
|
}
|
|
80530
80541
|
}
|
|
80531
80542
|
//#endregion
|
|
80532
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80543
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
|
|
80533
80544
|
/**
|
|
80534
80545
|
* 「今日总Token消耗」数据源 Hook(移植自 chatcode-cli 的 useTokenDashboard)。
|
|
80535
80546
|
*
|
|
@@ -80561,7 +80572,7 @@ function useTodayTotalTokens(enabled = true) {
|
|
|
80561
80572
|
return { totalTokens };
|
|
80562
80573
|
}
|
|
80563
80574
|
//#endregion
|
|
80564
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80575
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
|
|
80565
80576
|
const BAR_WIDTH = 14;
|
|
80566
80577
|
/** Yuanjing-compatible percentage label centered inside a fixed-width bar. */
|
|
80567
80578
|
function LabeledBar({ ratio, percent }) {
|
|
@@ -80645,7 +80656,7 @@ function TokenDashboard({ todayTokens, usedTokens, contextWindow, compact = fals
|
|
|
80645
80656
|
});
|
|
80646
80657
|
}
|
|
80647
80658
|
//#endregion
|
|
80648
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80659
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
|
|
80649
80660
|
/** Stable fallback for stubbed channels: verify/repro harnesses render the
|
|
80650
80661
|
* real Chat with partial channel literals that predate the jobs field. */
|
|
80651
80662
|
const NO_BACKGROUND_JOBS = [];
|
|
@@ -81503,7 +81514,7 @@ const fallbackSymbols = {
|
|
|
81503
81514
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
81504
81515
|
Object.entries(specialMainSymbols);
|
|
81505
81516
|
//#endregion
|
|
81506
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81517
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Byline.js
|
|
81507
81518
|
/**
|
|
81508
81519
|
* Joins children with a middot separator (" · ") for inline metadata display
|
|
81509
81520
|
* (in the Claude Code visual language). Automatically filters out
|
|
@@ -81519,7 +81530,7 @@ function Byline({ children }) {
|
|
|
81519
81530
|
}), child] }, (0, import_react.isValidElement)(child) ? child.key ?? index : index)) });
|
|
81520
81531
|
}
|
|
81521
81532
|
//#endregion
|
|
81522
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81533
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/GlimmerMessage.js
|
|
81523
81534
|
const ERROR_RED$1 = {
|
|
81524
81535
|
r: 171,
|
|
81525
81536
|
g: 43,
|
|
@@ -81609,7 +81620,7 @@ function GlimmerMessage({ message, mode, messageColor, glimmerIndex, flashOpacit
|
|
|
81609
81620
|
})] });
|
|
81610
81621
|
}
|
|
81611
81622
|
//#endregion
|
|
81612
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81623
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerGlyph.js
|
|
81613
81624
|
const DEFAULT_CHARACTERS = getDefaultCharacters();
|
|
81614
81625
|
const SPINNER_FRAMES$1 = [...DEFAULT_CHARACTERS, ...[...DEFAULT_CHARACTERS].reverse()];
|
|
81615
81626
|
const REDUCED_MOTION_DOT = "●";
|
|
@@ -81670,7 +81681,7 @@ function SpinnerGlyph({ frame, messageColor, stalledIntensity = 0, reducedMotion
|
|
|
81670
81681
|
});
|
|
81671
81682
|
}
|
|
81672
81683
|
//#endregion
|
|
81673
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81684
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/useStalledAnimation.js
|
|
81674
81685
|
/**
|
|
81675
81686
|
* Tracks the transition to red when tokens stop flowing (mirroring Claude Code's `Spinner/useStalledAnimation.ts`). Driven by the parent's animation
|
|
81676
81687
|
* clock time instead of independent intervals, so it slows down when the
|
|
@@ -81727,7 +81738,7 @@ function useStalledAnimation(time, currentResponseLength, hasActiveTools = false
|
|
|
81727
81738
|
};
|
|
81728
81739
|
}
|
|
81729
81740
|
//#endregion
|
|
81730
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81741
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerAnimationRow.js
|
|
81731
81742
|
const SEP_WIDTH = stringWidth$1(" · ");
|
|
81732
81743
|
const THINKING_BARE_WIDTH = stringWidth$1("thinking");
|
|
81733
81744
|
const SHOW_TOKENS_AFTER_MS = 3e4;
|
|
@@ -81894,7 +81905,7 @@ function SpinnerModeGlyph({ mode }) {
|
|
|
81894
81905
|
}
|
|
81895
81906
|
}
|
|
81896
81907
|
//#endregion
|
|
81897
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81908
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
|
|
81898
81909
|
/**
|
|
81899
81910
|
* The working spinner block shown between the transcript and the prompt
|
|
81900
81911
|
* input while a turn is in flight. Mirrors Claude Code's `Spinner.tsx`
|
|
@@ -81964,7 +81975,7 @@ function useThinkingStatus(isThinking) {
|
|
|
81964
81975
|
return thinkingStatus;
|
|
81965
81976
|
}
|
|
81966
81977
|
//#endregion
|
|
81967
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81978
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
|
|
81968
81979
|
/**
|
|
81969
81980
|
* Model picker in the CC ModelPicker style: a permission-colored Pane with
|
|
81970
81981
|
* the rows as Select entries (❯ focus pointer, ✓ on the active row,
|
|
@@ -82024,7 +82035,7 @@ function ModelPicker(props) {
|
|
|
82024
82035
|
});
|
|
82025
82036
|
}
|
|
82026
82037
|
//#endregion
|
|
82027
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82038
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
|
|
82028
82039
|
/**
|
|
82029
82040
|
* Error boundary for plugin scenes (dsh-tui-scenes). A scene component is
|
|
82030
82041
|
* third-party code rendered inside Chat's tree: without a boundary a render
|
|
@@ -82050,7 +82061,7 @@ var PluginSceneBoundary = class extends import_react.Component {
|
|
|
82050
82061
|
}
|
|
82051
82062
|
};
|
|
82052
82063
|
//#endregion
|
|
82053
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82064
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/LoadingState.js
|
|
82054
82065
|
const SPINNER_FRAMES = [...getDefaultCharacters(), ...[...getDefaultCharacters()].reverse()];
|
|
82055
82066
|
/**
|
|
82056
82067
|
* A spinner with a loading message for async operations, mirroring Claude Code's design-system/LoadingState.tsx (using the small animated glyph).
|
|
@@ -82081,7 +82092,7 @@ function LoadingState({ message, bold = false, dimColor = false, subtitle }) {
|
|
|
82081
82092
|
});
|
|
82082
82093
|
}
|
|
82083
82094
|
//#endregion
|
|
82084
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82095
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
|
|
82085
82096
|
/** 来源桶 → 本地化标签(未知桶原样显示,SkillSource 对自定义桶开放)。 */
|
|
82086
82097
|
function sourceLabel(source) {
|
|
82087
82098
|
switch (source) {
|
|
@@ -82159,7 +82170,7 @@ function SkillsPickerLoading() {
|
|
|
82159
82170
|
});
|
|
82160
82171
|
}
|
|
82161
82172
|
//#endregion
|
|
82162
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82173
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
|
|
82163
82174
|
/**
|
|
82164
82175
|
* Window a single-line query around the caret so the visible slice fits
|
|
82165
82176
|
* `avail` display cells (CJK display width, code-point safe — `[...s]`
|
|
@@ -82297,7 +82308,7 @@ function SearchBox({ query, placeholder = "Search…", isFocused, isTerminalFocu
|
|
|
82297
82308
|
});
|
|
82298
82309
|
}
|
|
82299
82310
|
//#endregion
|
|
82300
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82311
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionListRow.js
|
|
82301
82312
|
/**
|
|
82302
82313
|
* One session in the browser's list: a title line and a metadata line.
|
|
82303
82314
|
*
|
|
@@ -82378,7 +82389,7 @@ function SessionListRow({ session, width, depth, focused, pinned, now, onClick,
|
|
|
82378
82389
|
});
|
|
82379
82390
|
}
|
|
82380
82391
|
//#endregion
|
|
82381
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82392
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionPreview.js
|
|
82382
82393
|
/** Role marker and colour for a preview entry. */
|
|
82383
82394
|
const ROLE = {
|
|
82384
82395
|
user: {
|
|
@@ -82469,7 +82480,7 @@ function SessionPreview({ session, entries, loading, width, height, home, now })
|
|
|
82469
82480
|
});
|
|
82470
82481
|
}
|
|
82471
82482
|
//#endregion
|
|
82472
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82483
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/WorkspaceListRow.js
|
|
82473
82484
|
/** One two-line working-directory choice in the /resume browser. */
|
|
82474
82485
|
function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width, focused, selected, home, now, onClick }) {
|
|
82475
82486
|
const [hovered, setHovered] = (0, import_react.useState)(false);
|
|
@@ -82514,7 +82525,7 @@ function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width,
|
|
|
82514
82525
|
});
|
|
82515
82526
|
}
|
|
82516
82527
|
//#endregion
|
|
82517
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82528
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
|
|
82518
82529
|
/**
|
|
82519
82530
|
* Pinned sessions for the `/resume` browser, kept at
|
|
82520
82531
|
* `~/.chatcode-cli/tui/session-pins.json` (a JSON array of session ids) so the pins
|
|
@@ -82663,7 +82674,7 @@ function setSessionPinned(id, pinned, dir = DATA_DIR) {
|
|
|
82663
82674
|
}
|
|
82664
82675
|
}
|
|
82665
82676
|
//#endregion
|
|
82666
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82677
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
|
|
82667
82678
|
/**
|
|
82668
82679
|
* Rows the layout cannot do without: the header, the four-row scope/search
|
|
82669
82680
|
* card, the notice slot, and the hints. Everything else yields before these.
|
|
@@ -83663,7 +83674,7 @@ function SessionBrowser({ channel, home, sameProject, onClose }) {
|
|
|
83663
83674
|
});
|
|
83664
83675
|
}
|
|
83665
83676
|
//#endregion
|
|
83666
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
83677
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
|
|
83667
83678
|
/** Local HH:MM (or MM/DD HH:MM when older than this year). */
|
|
83668
83679
|
function formatTime(at, now) {
|
|
83669
83680
|
const date = new Date(at);
|
|
@@ -84419,7 +84430,7 @@ function PreviewPane({ entry, meta, width, height, liveSessionId, now, compact }
|
|
|
84419
84430
|
});
|
|
84420
84431
|
}
|
|
84421
84432
|
//#endregion
|
|
84422
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
84433
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
|
|
84423
84434
|
/** Pick the provider-owned translation for the active language. */
|
|
84424
84435
|
function pick(text, descriptions) {
|
|
84425
84436
|
return descriptions?.[getLang()] ?? text;
|
|
@@ -85244,7 +85255,7 @@ function Settings({ channel, onClose, initialGroup }) {
|
|
|
85244
85255
|
});
|
|
85245
85256
|
}
|
|
85246
85257
|
//#endregion
|
|
85247
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85258
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
|
|
85248
85259
|
const WINDOW$1 = 8;
|
|
85249
85260
|
/** `/workspace` target picker contributed by local and optional providers. */
|
|
85250
85261
|
function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
|
|
@@ -85282,7 +85293,7 @@ function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
|
|
|
85282
85293
|
});
|
|
85283
85294
|
}
|
|
85284
85295
|
//#endregion
|
|
85285
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85296
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
|
|
85286
85297
|
/**
|
|
85287
85298
|
* A single-choice select list in the CC CustomSelect style (ported visual:
|
|
85288
85299
|
* ListItem rows with ❯ focus pointer, ✓ selected checkmark, descriptions,
|
|
@@ -85309,7 +85320,7 @@ function Select({ options, focusIndex, selectedValue, visibleOptionCount = 5, on
|
|
|
85309
85320
|
});
|
|
85310
85321
|
}
|
|
85311
85322
|
//#endregion
|
|
85312
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85323
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
|
|
85313
85324
|
/**
|
|
85314
85325
|
* Bare `/workspace` action menu: the built-in subcommands (resume / rename /
|
|
85315
85326
|
* open) plus any dynamically registered workspace extensions. Enter runs the
|
|
@@ -85350,7 +85361,7 @@ function WorkspaceMenuPicker({ options, focusIndex, onPick }) {
|
|
|
85350
85361
|
});
|
|
85351
85362
|
}
|
|
85352
85363
|
//#endregion
|
|
85353
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85364
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
|
|
85354
85365
|
const WINDOW = 8;
|
|
85355
85366
|
/** Generic nested choice surface returned by a workspace provider command. */
|
|
85356
85367
|
function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input = null, onPick }) {
|
|
@@ -85408,7 +85419,7 @@ function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input =
|
|
|
85408
85419
|
});
|
|
85409
85420
|
}
|
|
85410
85421
|
//#endregion
|
|
85411
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85422
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
|
|
85412
85423
|
/**
|
|
85413
85424
|
* Working-activity indicator picker in the CC ModelPicker style (ported
|
|
85414
85425
|
* from the pi extension's `/activity` interactive select): a
|
|
@@ -85450,7 +85461,7 @@ function ActivityPicker({ focusIndex, currentPreset, onPick }) {
|
|
|
85450
85461
|
});
|
|
85451
85462
|
}
|
|
85452
85463
|
//#endregion
|
|
85453
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85464
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
|
|
85454
85465
|
/**
|
|
85455
85466
|
* Session accent color picker (bare `/color`): a permission-colored Pane
|
|
85456
85467
|
* listing the whole palette with a colored swatch per row, `❯` focus
|
|
@@ -85494,7 +85505,7 @@ function ColorPicker({ focusIndex, currentColor, onPick }) {
|
|
|
85494
85505
|
});
|
|
85495
85506
|
}
|
|
85496
85507
|
//#endregion
|
|
85497
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85508
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
|
|
85498
85509
|
/**
|
|
85499
85510
|
* Reasoning-effort slider (`/effort`): a rheostat row of the live route's
|
|
85500
85511
|
* adapter-owned levels in adapter order, ←/→ moving focus (each move applies
|
|
@@ -85553,7 +85564,7 @@ function EffortSlider({ options, focusIndex, currentId, onPick }) {
|
|
|
85553
85564
|
});
|
|
85554
85565
|
}
|
|
85555
85566
|
//#endregion
|
|
85556
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85567
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
|
|
85557
85568
|
/**
|
|
85558
85569
|
* Agent-preset picker (issue #8) in the CC ModelPicker style — same chrome
|
|
85559
85570
|
* as the ActivityPicker: a permission-colored Pane listing every roster
|
|
@@ -85597,7 +85608,7 @@ function PresetPicker({ presets, focusIndex, currentPreset, onPick }) {
|
|
|
85597
85608
|
});
|
|
85598
85609
|
}
|
|
85599
85610
|
//#endregion
|
|
85600
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85611
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
|
|
85601
85612
|
/**
|
|
85602
85613
|
* `/permission` sandbox-preset picker. The command itself is registered by
|
|
85603
85614
|
* the harness side (dsh-sandbox-policy / dsh-base permission-presets row);
|
|
@@ -85644,7 +85655,7 @@ function PermissionsPicker({ options, focusIndex, currentValue, cwd, onPick }) {
|
|
|
85644
85655
|
});
|
|
85645
85656
|
}
|
|
85646
85657
|
//#endregion
|
|
85647
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85658
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
|
|
85648
85659
|
/**
|
|
85649
85660
|
* `/plan` on/off picker. The command itself is registered by dsh-plan-mode
|
|
85650
85661
|
* on the harness side; bare `/plan` opens this picker (with the current
|
|
@@ -85689,7 +85700,7 @@ function PlanPicker({ focusIndex, currentOn, onPick }) {
|
|
|
85689
85700
|
});
|
|
85690
85701
|
}
|
|
85691
85702
|
//#endregion
|
|
85692
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85703
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
|
|
85693
85704
|
/**
|
|
85694
85705
|
* `/lang` en/zh picker: bare `/lang` opens this picker (the current language
|
|
85695
85706
|
* marked) and Enter applies the choice through the same path as `/lang <id>`.
|
|
@@ -85728,7 +85739,7 @@ function LangPicker({ focusIndex, currentLang, onPick }) {
|
|
|
85728
85739
|
});
|
|
85729
85740
|
}
|
|
85730
85741
|
//#endregion
|
|
85731
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85742
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
|
|
85732
85743
|
/** One double-block swatch character per preview key, in a row. */
|
|
85733
85744
|
const SWATCH = "██";
|
|
85734
85745
|
/** Theme keys previewed in the picker, chosen for visual contrast. */
|
|
@@ -85814,7 +85825,7 @@ function ThemePicker({ focusIndex, currentTheme, themeHost, onPick }) {
|
|
|
85814
85825
|
});
|
|
85815
85826
|
}
|
|
85816
85827
|
//#endregion
|
|
85817
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85828
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
|
|
85818
85829
|
/**
|
|
85819
85830
|
* The `/thinking` display dialog: a permission-colored Pane with a bold
|
|
85820
85831
|
* title, the Shown/Hidden select, and the Enter/Esc hint line.
|
|
@@ -85863,7 +85874,7 @@ function ThinkingToggle({ currentValue, focusIndex, onPick }) {
|
|
|
85863
85874
|
});
|
|
85864
85875
|
}
|
|
85865
85876
|
//#endregion
|
|
85866
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85877
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
|
|
85867
85878
|
/**
|
|
85868
85879
|
* The ctrl+r history search dialog, in the shape of Claude Code's
|
|
85869
85880
|
* HistorySearchDialog/FuzzyPicker: a permission-colored Pane with a bold
|
|
@@ -85926,7 +85937,7 @@ function formatRelativeAge(ts) {
|
|
|
85926
85937
|
return t("time-days-ago", { n: Math.floor(elapsed / 864e5) });
|
|
85927
85938
|
}
|
|
85928
85939
|
//#endregion
|
|
85929
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85940
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
|
|
85930
85941
|
/**
|
|
85931
85942
|
* Double-Esc rewind picker (CC's "Double-tap esc to rewind the code and/or
|
|
85932
85943
|
* conversation to a previous point in time"): lists the user's past messages
|
|
@@ -86063,7 +86074,7 @@ function preview(text) {
|
|
|
86063
86074
|
return flat.length <= 80 ? flat : `${flat.slice(0, 80)}…`;
|
|
86064
86075
|
}
|
|
86065
86076
|
//#endregion
|
|
86066
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86077
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
|
|
86067
86078
|
/**
|
|
86068
86079
|
* /btw side-question panel (CC's btw.tsx, inline-pane form like the local
|
|
86069
86080
|
* pickers): title line with the question, a scrollable answer body (error /
|
|
@@ -86147,7 +86158,7 @@ function BtwPanel({ question, answer, error, streaming, onClose, onCopy }) {
|
|
|
86147
86158
|
});
|
|
86148
86159
|
}
|
|
86149
86160
|
//#endregion
|
|
86150
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86161
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
|
|
86151
86162
|
function ReleaseNotesPanel({ release, onClose }) {
|
|
86152
86163
|
const scrollRef = import_react.useRef(null);
|
|
86153
86164
|
const { rows } = useTerminalSize();
|
|
@@ -86192,7 +86203,7 @@ function ReleaseNotesPanel({ release, onClose }) {
|
|
|
86192
86203
|
});
|
|
86193
86204
|
}
|
|
86194
86205
|
//#endregion
|
|
86195
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86206
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
|
|
86196
86207
|
/**
|
|
86197
86208
|
* `/recap` panel (pi-recap semantics), in the picker/dialog visual
|
|
86198
86209
|
* language: a permission-colored Pane with a title bar (会话回顾), a
|
|
@@ -86313,7 +86324,7 @@ function RecapPanel({ summary, title, error, streaming, titleApplied, onClose, o
|
|
|
86313
86324
|
});
|
|
86314
86325
|
}
|
|
86315
86326
|
//#endregion
|
|
86316
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86327
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
|
|
86317
86328
|
/**
|
|
86318
86329
|
* 精简 Tips 池 —— 启动首屏轮换(LogoV2)与 `/tips` 命令面板共用。
|
|
86319
86330
|
*
|
|
@@ -87027,7 +87038,7 @@ const TIPS = [
|
|
|
87027
87038
|
}
|
|
87028
87039
|
];
|
|
87029
87040
|
//#endregion
|
|
87030
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87041
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
|
|
87031
87042
|
const GROUP_ORDER = [
|
|
87032
87043
|
"keys",
|
|
87033
87044
|
"commands",
|
|
@@ -87106,7 +87117,7 @@ function TipsPanel({ onClose }) {
|
|
|
87106
87117
|
});
|
|
87107
87118
|
}
|
|
87108
87119
|
//#endregion
|
|
87109
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87120
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
|
|
87110
87121
|
function formatDuration$1(ms) {
|
|
87111
87122
|
const seconds = Math.floor(ms / 1e3);
|
|
87112
87123
|
return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${seconds % 60}s`;
|
|
@@ -87161,7 +87172,7 @@ function SubagentCard({ subagent, focused, onClick }) {
|
|
|
87161
87172
|
});
|
|
87162
87173
|
}
|
|
87163
87174
|
//#endregion
|
|
87164
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87175
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
|
|
87165
87176
|
/** 可点击 ✕ 退出按钮:整屏/浮层场景的鼠标退出通道(Esc 等价)。 */
|
|
87166
87177
|
function ExitButton({ onClick }) {
|
|
87167
87178
|
const [hovered, setHovered] = import_react.useState(false);
|
|
@@ -87309,7 +87320,7 @@ function SubagentDashboard({ subagents, onClose, onSelect }) {
|
|
|
87309
87320
|
});
|
|
87310
87321
|
}
|
|
87311
87322
|
//#endregion
|
|
87312
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87323
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
|
|
87313
87324
|
function statusInfo(status) {
|
|
87314
87325
|
const minimal = isMinimalMode();
|
|
87315
87326
|
switch (status) {
|
|
@@ -87597,7 +87608,7 @@ function JobsPanel({ jobs, onClose, onKill }) {
|
|
|
87597
87608
|
});
|
|
87598
87609
|
}
|
|
87599
87610
|
//#endregion
|
|
87600
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87611
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
|
|
87601
87612
|
function formatDuration(ms) {
|
|
87602
87613
|
if (ms < 1e3) return `${ms}ms`;
|
|
87603
87614
|
if (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;
|
|
@@ -88055,7 +88066,7 @@ function FileActionsPanel({ path, isDir, focusIndex, onPick }) {
|
|
|
88055
88066
|
});
|
|
88056
88067
|
}
|
|
88057
88068
|
//#endregion
|
|
88058
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88069
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
|
|
88059
88070
|
function oneLine(text, max = 70) {
|
|
88060
88071
|
const compact = text.replace(/\s+/gu, " ").trim();
|
|
88061
88072
|
return compact.length > max ? `${compact.slice(0, max - 1)}…` : compact;
|
|
@@ -88147,7 +88158,7 @@ function DiffLoading() {
|
|
|
88147
88158
|
});
|
|
88148
88159
|
}
|
|
88149
88160
|
//#endregion
|
|
88150
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88161
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
|
|
88151
88162
|
/** `/copy` argument is a one-based reply age; omission selects the latest. */
|
|
88152
88163
|
function parseCopyIndex(raw, count) {
|
|
88153
88164
|
const value = raw.trim();
|
|
@@ -88200,7 +88211,7 @@ function gitDiffLines(report, labels) {
|
|
|
88200
88211
|
];
|
|
88201
88212
|
}
|
|
88202
88213
|
//#endregion
|
|
88203
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88214
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
|
|
88204
88215
|
/** Compact duration suitable for a terminal report row. */
|
|
88205
88216
|
function formatStatsDuration(ms) {
|
|
88206
88217
|
if (ms < 1e3) return `${Math.round(ms)} ms`;
|
|
@@ -88246,7 +88257,7 @@ function parsePresetManagement(input) {
|
|
|
88246
88257
|
return { kind: "invalid" };
|
|
88247
88258
|
}
|
|
88248
88259
|
//#endregion
|
|
88249
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88260
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
|
|
88250
88261
|
const ALIASES = {
|
|
88251
88262
|
map: "inspect",
|
|
88252
88263
|
fixit: "repair",
|
|
@@ -88301,7 +88312,7 @@ function buildWorkflowCommand(name, rawInput = "") {
|
|
|
88301
88312
|
};
|
|
88302
88313
|
}
|
|
88303
88314
|
//#endregion
|
|
88304
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88315
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
|
|
88305
88316
|
const EXTERNAL_SCHEME = /^https?:\/\//i;
|
|
88306
88317
|
/**
|
|
88307
88318
|
* Classify a clicked link target. Mirrors the previous handleOpenTarget
|
|
@@ -88326,7 +88337,7 @@ function classifyOpenTarget(url) {
|
|
|
88326
88337
|
return { kind: "rejected" };
|
|
88327
88338
|
}
|
|
88328
88339
|
//#endregion
|
|
88329
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88340
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
|
|
88330
88341
|
/**
|
|
88331
88342
|
* Subscribe to an external store's version counter at DEFAULT lane.
|
|
88332
88343
|
*
|
|
@@ -88375,7 +88386,7 @@ function useExternalVersion(subscribe, getVersion, enabled = true) {
|
|
|
88375
88386
|
return version;
|
|
88376
88387
|
}
|
|
88377
88388
|
//#endregion
|
|
88378
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88389
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/WaveBand.js
|
|
88379
88390
|
/**
|
|
88380
88391
|
* The wake — the whole session drawn as one row of glyphs.
|
|
88381
88392
|
*
|
|
@@ -88512,7 +88523,7 @@ function toHex(colour) {
|
|
|
88512
88523
|
return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
|
|
88513
88524
|
}
|
|
88514
88525
|
//#endregion
|
|
88515
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88526
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Ledger.js
|
|
88516
88527
|
/**
|
|
88517
88528
|
* The ledger — one line per event, columns aligned across every row.
|
|
88518
88529
|
*
|
|
@@ -88758,7 +88769,7 @@ function Ledger({ rows, start, height, cursor, width, tick, arrivalTick, arrival
|
|
|
88758
88769
|
});
|
|
88759
88770
|
}
|
|
88760
88771
|
//#endregion
|
|
88761
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88772
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Inspector.js
|
|
88762
88773
|
/**
|
|
88763
88774
|
* The inspector — full detail for the focused row, in a fixed-height slot.
|
|
88764
88775
|
*
|
|
@@ -88864,7 +88875,7 @@ function Inspector({ node, detail, height, width, expanded, scroll }) {
|
|
|
88864
88875
|
});
|
|
88865
88876
|
}
|
|
88866
88877
|
//#endregion
|
|
88867
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88878
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/HotspotView.js
|
|
88868
88879
|
/**
|
|
88869
88880
|
* The hotspot view — the session ranked by cost instead of ordered by time.
|
|
88870
88881
|
*
|
|
@@ -89027,7 +89038,7 @@ function HotspotView({ agg, sort, width, height, cursor, tick, switchTick, onRow
|
|
|
89027
89038
|
});
|
|
89028
89039
|
}
|
|
89029
89040
|
//#endregion
|
|
89030
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89041
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
|
|
89031
89042
|
/**
|
|
89032
89043
|
* Trajectory query — whole-session structured filtering.
|
|
89033
89044
|
*
|
|
@@ -89223,7 +89234,7 @@ function applyQuery(nodes, query) {
|
|
|
89223
89234
|
};
|
|
89224
89235
|
}
|
|
89225
89236
|
//#endregion
|
|
89226
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89237
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
|
|
89227
89238
|
/**
|
|
89228
89239
|
* The trajectory scene — the session's own screen.
|
|
89229
89240
|
*
|
|
@@ -89711,7 +89722,7 @@ function TrajectoryScene({ channel, build, onClose }) {
|
|
|
89711
89722
|
});
|
|
89712
89723
|
}
|
|
89713
89724
|
//#endregion
|
|
89714
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89725
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
|
|
89715
89726
|
/** Build the non-empty pages shown by the loaded-context inspector. */
|
|
89716
89727
|
function contextPages(context) {
|
|
89717
89728
|
const pages = [];
|
|
@@ -89895,7 +89906,7 @@ function LoadedContextScene({ context, onClose }) {
|
|
|
89895
89906
|
});
|
|
89896
89907
|
}
|
|
89897
89908
|
//#endregion
|
|
89898
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89909
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
|
|
89899
89910
|
/** Rows the layout cannot do without: header, model/cwd line, dispatch
|
|
89900
89911
|
* input, hints. */
|
|
89901
89912
|
const MANDATORY_LINES = 4;
|
|
@@ -90499,7 +90510,7 @@ function AgentView({ channel, home, approval, onApprove, returnSessionId, onClos
|
|
|
90499
90510
|
});
|
|
90500
90511
|
}
|
|
90501
90512
|
//#endregion
|
|
90502
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90513
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
|
|
90503
90514
|
/**
|
|
90504
90515
|
* Persisted "the user has seen the trajectory" flag, at
|
|
90505
90516
|
* `~/.chatcode-cli/tui/trajectory.json`.
|
|
@@ -90559,7 +90570,7 @@ function writeTrajectorySeen(dir = DATA_DIR) {
|
|
|
90559
90570
|
}
|
|
90560
90571
|
}
|
|
90561
90572
|
//#endregion
|
|
90562
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90573
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
|
|
90563
90574
|
const NO_OVERLAY = { kind: "none" };
|
|
90564
90575
|
/**
|
|
90565
90576
|
* One-step wrap-around cursor move — the single source of the wrapping rule
|
|
@@ -90669,7 +90680,7 @@ function dialogOverlayVisible(overlay, gates) {
|
|
|
90669
90680
|
}
|
|
90670
90681
|
}
|
|
90671
90682
|
//#endregion
|
|
90672
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90683
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
|
|
90673
90684
|
const LOGOUT_EXIT_DELAY_MS = 200;
|
|
90674
90685
|
/** Shared empty snapshot for hosts whose channel has no event log. */
|
|
90675
90686
|
const NO_EVENTS = [];
|
|
@@ -94480,7 +94491,7 @@ function ModelPickerLoading() {
|
|
|
94480
94491
|
});
|
|
94481
94492
|
}
|
|
94482
94493
|
//#endregion
|
|
94483
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
94494
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
|
|
94484
94495
|
const MAIN_CLI_PACKAGE = "@chatcode/chatcode-cli";
|
|
94485
94496
|
function asError(value) {
|
|
94486
94497
|
return value instanceof Error ? value : new Error(String(value));
|
|
@@ -94636,7 +94647,7 @@ function launchWebFrontend(cwd, options = {}) {
|
|
|
94636
94647
|
}
|
|
94637
94648
|
}
|
|
94638
94649
|
//#endregion
|
|
94639
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
94650
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/inject-channel.js
|
|
94640
94651
|
/**
|
|
94641
94652
|
* External injection channel — lets an out-of-process editor integration
|
|
94642
94653
|
* (e.g. the `dsh.nvim` Neovim plugin) push text into the running TUI's
|
|
@@ -94831,7 +94842,7 @@ function openInjectChannel(sessionId, cwd, handlers, onError) {
|
|
|
94831
94842
|
};
|
|
94832
94843
|
}
|
|
94833
94844
|
//#endregion
|
|
94834
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
94845
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-auth.js
|
|
94835
94846
|
const CHATCODE_CLI_OAUTH_TOKEN = "CHATCODE_CLI_OAUTH_TOKEN";
|
|
94836
94847
|
const DEFAULT_SERVICE_WAIT_MS = 75e3;
|
|
94837
94848
|
function authService(ctx) {
|
|
@@ -95005,7 +95016,7 @@ async function requireChatCodeStartupLogin(ctx, options) {
|
|
|
95005
95016
|
return "ready";
|
|
95006
95017
|
}
|
|
95007
95018
|
//#endregion
|
|
95008
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95019
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-api.js
|
|
95009
95020
|
/** Bind authenticated statistics requests to one TUI lifetime. */
|
|
95010
95021
|
function createChatCodeAuthorizedPost(ctx) {
|
|
95011
95022
|
const lifetime = new AbortController();
|
|
@@ -95044,7 +95055,7 @@ function createChatCodeAuthorizedPost(ctx) {
|
|
|
95044
95055
|
};
|
|
95045
95056
|
}
|
|
95046
95057
|
//#endregion
|
|
95047
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95058
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin.js
|
|
95048
95059
|
/**
|
|
95049
95060
|
* Interactive TUI front door for ChatCode CLI agents.
|
|
95050
95061
|
*
|