@chatcode/chatcode-cli 3.0.5-rc.1 → 3.0.5-rc.3
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/lib/{command-errors-CsRCh0gk.js → command-errors-ChiY9aSU.js} +12 -12
- package/lib/{command-trees-CD_43rxX.js → command-trees-D1yNnMLf.js} +2 -2
- package/lib/{component-identity-DGA2-TeB.js → component-identity-BXmlpdls.js} +3 -3
- package/lib/{extension-events-D0BjYRqT.js → extension-events-BBvUPMbs.js} +20 -20
- package/lib/{host-access-DLJjuR07.js → host-access-DCtUmgis.js} +1 -1
- package/lib/{keymap-C4cs2IBN.js → keymap-CeRpxc9c.js} +2 -2
- package/lib/{plugin-CGtTByud.js → plugin-DQAJoZvM.js} +416 -359
- package/lib/{scenes-CbAGK5Uy.js → scenes-NsR-REtH.js} +3 -3
- package/lib/{settings-sections-DYKDa04e.js → settings-sections-DgB-eDtZ.js} +3 -3
- package/lib/{statusBarSettings-T1m8xad4.js → statusBarSettings-5yzdiOv1.js} +3 -3
- package/lib/{themes-BY2ui1Dv.js → themes-DpFOCFEc.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-D5VKbESy.js → workspaces-CVtLIC34.js} +2 -2
- package/package.json +29 -29
- package/runtime/manifest.json +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +169 -11
- package/runtime/node_modules/@deepseek-ai/dsh-agent-instructions/lib/types/files.d.ts +25 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-instructions/lib/types/rules.d.ts +25 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +5 -2
- 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 -1
- package/runtime/node_modules/@deepseek-ai/dsh-skill-filesystem/lib/index.js +33 -9
|
@@ -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-5yzdiOv1.js";
|
|
3
|
+
import { a as draftComboConflict, d as setKeymapOverrides, f as isMod, h as modLabel, l as parseComboDraft, m as isPlainReturnInput, n as actionMatches, o as effectiveComboString, p as isPlainReturn, t as SHORTCUT_ACTIONS } from "./keymap-CeRpxc9c.js";
|
|
4
|
+
import { c as withHostRootCapability } from "./host-access-DCtUmgis.js";
|
|
5
|
+
import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-CVtLIC34.js";
|
|
6
|
+
import { n as getHostCommandTrees } from "./command-trees-D1yNnMLf.js";
|
|
7
|
+
import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-DgB-eDtZ.js";
|
|
8
|
+
import { n as getHostSceneRuntime } from "./scenes-NsR-REtH.js";
|
|
9
|
+
import { A as tuiEnvName, C as LEGACY_DATA_DIR, D as homeDir, E as detectLegacyEnv, J as parseManifest, M as loadSpecData, O as readTuiEnv, S as DATA_DIR, T as RENAMED_ENV, Y as projectManifest, _ as stripAnsi$1, a as normalizeCancelDecision, b as isWide, c as installDecisionGuard, d as capCells, f as cleanRenderText, g as getGraphemeSegmenter, h as stringWidth$1, i as dispatchTuiNotification, k as resolveChatCodeCliHome, m as flattenInline, p as cleanScalarText, r as dispatchTuiDecision, v as eastAsianWidth, w as PRE_DSH_TUI_DATA_DIR, x as readGrantStore, y as isFullWidth } from "./extension-events-BBvUPMbs.js";
|
|
10
|
+
import { A as validatePlugin, D as buildHostDescriptor, O as negotiate, _ as getHostMessageObserver, a as commandOwner, k as createContractIndex, n as hasCommandErrorCode, r as mapCommandError, w as EFFECT_LEDGER_FILE } from "./command-errors-ChiY9aSU.js";
|
|
11
|
+
import { D as getHostStatusStore, E as TuiStatusStore, M as getHostDialogStore, S as getHostShortcuts, a as listCustomThemes, b as getHostRenderers, c as THEME_NAMES, d as getTheme, f as isLightThemeActive, g as setAutoThemeBase, h as setActiveThemeName, i as isSafeThemeName, j as TuiDialogStore, l as getActiveTheme, m as registerCustomThemeResolver, n as getHostThemes, o as resolveCustomTheme, p as isThemeAvailable, r as buildTheme, s as AUTO_THEME_NAME, u as getAutoThemeBase, v as getHostToastStore } from "./themes-DpFOCFEc.js";
|
|
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.23_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.23_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.23_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.23_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.23_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.23_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.23_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`).
|
|
@@ -5234,6 +5234,14 @@ const dict = {
|
|
|
5234
5234
|
zh: "返回",
|
|
5235
5235
|
en: "back"
|
|
5236
5236
|
},
|
|
5237
|
+
"subagent-interrupt-requested": {
|
|
5238
|
+
zh: "已请求中断,等待任务结束;Esc 可返回。",
|
|
5239
|
+
en: "Interrupt requested; waiting for the task to stop. Esc returns."
|
|
5240
|
+
},
|
|
5241
|
+
"subagent-interrupt-unavailable": {
|
|
5242
|
+
zh: "当前子代理无法中断;Esc 可返回。",
|
|
5243
|
+
en: "This subagent cannot be interrupted. Esc returns."
|
|
5244
|
+
},
|
|
5237
5245
|
"subagent-empty-hint": {
|
|
5238
5246
|
zh: "让主代理发起 Task 后,子代理会出现在这里",
|
|
5239
5247
|
en: "Subagents appear here once the main agent starts Task delegations"
|
|
@@ -6544,7 +6552,7 @@ function resolveStartupLang(dir = PREFS_DIR$6, env = process.env) {
|
|
|
6544
6552
|
return readLangPref(dir) ?? "zh";
|
|
6545
6553
|
}
|
|
6546
6554
|
//#endregion
|
|
6547
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
6555
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
|
|
6548
6556
|
/**
|
|
6549
6557
|
* Local slash commands for the dsh-tui TUI. Claude Code's command system is
|
|
6550
6558
|
* deeply wired into its engine; dsh-tui ships a small built-in set with the
|
|
@@ -7018,7 +7026,7 @@ function matchingCompletionToken(candidate, prefix) {
|
|
|
7018
7026
|
return candidate.aliases?.find((alias) => alias.toLowerCase().startsWith(prefix));
|
|
7019
7027
|
}
|
|
7020
7028
|
//#endregion
|
|
7021
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7029
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
|
|
7022
7030
|
/**
|
|
7023
7031
|
* Launcher contract for `dsh-tui --resume`: the TUI writes the chosen session
|
|
7024
7032
|
* id to `<CHATCODE_CLI_HOME>/tui/resume.txt`, and the launcher feeds it back as
|
|
@@ -7185,7 +7193,7 @@ function forgetAgentViewSession(sessionId) {
|
|
|
7185
7193
|
} catch {}
|
|
7186
7194
|
}
|
|
7187
7195
|
//#endregion
|
|
7188
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7196
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
|
|
7189
7197
|
/**
|
|
7190
7198
|
* One searchable local tag per persisted session.
|
|
7191
7199
|
*
|
|
@@ -7335,7 +7343,7 @@ function forgetSessionTag(sessionId, dir = DATA_DIR) {
|
|
|
7335
7343
|
return setSessionTag(sessionId, void 0, dir).ok;
|
|
7336
7344
|
}
|
|
7337
7345
|
//#endregion
|
|
7338
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7346
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/liveSession.js
|
|
7339
7347
|
/**
|
|
7340
7348
|
* Live Session compatibility facade.
|
|
7341
7349
|
*
|
|
@@ -7497,7 +7505,7 @@ function liveSessionCreateOptions(request) {
|
|
|
7497
7505
|
};
|
|
7498
7506
|
}
|
|
7499
7507
|
//#endregion
|
|
7500
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7508
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionLog.js
|
|
7501
7509
|
/**
|
|
7502
7510
|
* Legacy third-party session-event types the TUI vouches for as ephemeral
|
|
7503
7511
|
* UI frames — safe for the strict read path to accept and skip. Exported
|
|
@@ -8189,7 +8197,7 @@ function appendSessionTitle(sessionId, title) {
|
|
|
8189
8197
|
}
|
|
8190
8198
|
}
|
|
8191
8199
|
//#endregion
|
|
8192
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8200
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionEvent.js
|
|
8193
8201
|
/** Narrow an unknown/session event to the retired durable chunk envelope. */
|
|
8194
8202
|
function legacyAssistantChunkOf(event) {
|
|
8195
8203
|
if (event === null || typeof event !== "object") return void 0;
|
|
@@ -8203,7 +8211,7 @@ function legacyAssistantChunkOf(event) {
|
|
|
8203
8211
|
return event;
|
|
8204
8212
|
}
|
|
8205
8213
|
//#endregion
|
|
8206
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8214
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compaction.js
|
|
8207
8215
|
/**
|
|
8208
8216
|
* Recognize both the current checkpoint source and the legacy plugin marker.
|
|
8209
8217
|
* Harness session format v4 migrated `plugin/compact` to the dedicated
|
|
@@ -8214,7 +8222,7 @@ function isCompactionCheckpointSource(source) {
|
|
|
8214
8222
|
return source.kind === "compact-checkpoint" || source.kind === "plugin" && source.plugin === "compact";
|
|
8215
8223
|
}
|
|
8216
8224
|
//#endregion
|
|
8217
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8225
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessionTree.js
|
|
8218
8226
|
const TREE_FILTERS = [
|
|
8219
8227
|
"default",
|
|
8220
8228
|
"no-tools",
|
|
@@ -10370,7 +10378,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10370
10378
|
module.exports = subset;
|
|
10371
10379
|
}));
|
|
10372
10380
|
//#endregion
|
|
10373
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
10381
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
|
|
10374
10382
|
var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10375
10383
|
const internalRe = require_re();
|
|
10376
10384
|
const constants = require_constants$1();
|
|
@@ -10463,7 +10471,7 @@ function cmdEscapeArgument(arg, doubleEscapeMetaChars = false) {
|
|
|
10463
10471
|
return out;
|
|
10464
10472
|
}
|
|
10465
10473
|
//#endregion
|
|
10466
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
10474
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
|
|
10467
10475
|
const PACKAGE_NAME = "@chatcode/cco-tui";
|
|
10468
10476
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
10469
10477
|
const GITHUB_REPO = "ccch1mneyyy/dsh-TUI";
|
|
@@ -11814,7 +11822,7 @@ async function restartTui(sessionId, options = {}) {
|
|
|
11814
11822
|
});
|
|
11815
11823
|
}
|
|
11816
11824
|
//#endregion
|
|
11817
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
11825
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/header.js
|
|
11818
11826
|
/** A finite number, or undefined for anything else (NaN and ±Infinity included). */
|
|
11819
11827
|
function finiteNumber(value) {
|
|
11820
11828
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
@@ -11888,7 +11896,7 @@ function classify(header) {
|
|
|
11888
11896
|
return { kind: "root" };
|
|
11889
11897
|
}
|
|
11890
11898
|
//#endregion
|
|
11891
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
11899
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/frames.js
|
|
11892
11900
|
/**
|
|
11893
11901
|
* Bounded reads over the JSONL backend's concatenated-Zstandard session logs.
|
|
11894
11902
|
*
|
|
@@ -12134,7 +12142,7 @@ function decodeTail(window) {
|
|
|
12134
12142
|
return decodeFrames(window.buffer, window.whole ? walkFrames(window.buffer) : resyncFrames(window.buffer));
|
|
12135
12143
|
}
|
|
12136
12144
|
//#endregion
|
|
12137
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12145
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/digest.js
|
|
12138
12146
|
/**
|
|
12139
12147
|
* What a bounded read can learn about a session log.
|
|
12140
12148
|
*
|
|
@@ -12617,7 +12625,7 @@ function previewSession(path, limit) {
|
|
|
12617
12625
|
return entries.slice(-limit);
|
|
12618
12626
|
}
|
|
12619
12627
|
//#endregion
|
|
12620
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12628
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/artifact.js
|
|
12621
12629
|
/** Read-only artifact lookup for session summaries and previews. */
|
|
12622
12630
|
/** Highest published compressed generation; temporary migration files are ignored. */
|
|
12623
12631
|
function inDirectory(directory) {
|
|
@@ -12670,7 +12678,7 @@ function findSessionArtifact(sessionId, target) {
|
|
|
12670
12678
|
}
|
|
12671
12679
|
}
|
|
12672
12680
|
//#endregion
|
|
12673
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12681
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/store.js
|
|
12674
12682
|
/**
|
|
12675
12683
|
* The session index — a local cache keyed by the backend's own change token.
|
|
12676
12684
|
*
|
|
@@ -12834,7 +12842,7 @@ function noteBranch(sessionId, branch) {
|
|
|
12834
12842
|
writeIndex(index);
|
|
12835
12843
|
}
|
|
12836
12844
|
//#endregion
|
|
12837
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12845
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/list.js
|
|
12838
12846
|
/**
|
|
12839
12847
|
* Building the session list.
|
|
12840
12848
|
*
|
|
@@ -13115,7 +13123,7 @@ async function locateSession(source, sessionId, signal) {
|
|
|
13115
13123
|
return match === void 0 ? void 0 : locate$1(source, match.raw, sessionId);
|
|
13116
13124
|
}
|
|
13117
13125
|
//#endregion
|
|
13118
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13126
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/agent-view.js
|
|
13119
13127
|
/**
|
|
13120
13128
|
* Agent view (CC `claude agents`) derivation helpers — pure functions over
|
|
13121
13129
|
* session events that the channel folds into {@link AgentViewRow}s. Kept in
|
|
@@ -13345,7 +13353,7 @@ function featureOn(config, name) {
|
|
|
13345
13353
|
return config.mode !== "minimal";
|
|
13346
13354
|
}
|
|
13347
13355
|
//#endregion
|
|
13348
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13356
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
|
|
13349
13357
|
/**
|
|
13350
13358
|
* Persisted working-activity indicator preference, mirroring the pi
|
|
13351
13359
|
* working-activity extension's `~/.pi/agent/working-activity.json`
|
|
@@ -13414,7 +13422,7 @@ function writeActivityFrames(name, dir = PREFS_DIR$5) {
|
|
|
13414
13422
|
}
|
|
13415
13423
|
}
|
|
13416
13424
|
//#endregion
|
|
13417
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13425
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
|
|
13418
13426
|
const pathSeparators = /[\\/]/;
|
|
13419
13427
|
function isPathLikeQuery(query) {
|
|
13420
13428
|
return query.startsWith(".") || query.startsWith("~") || query.startsWith("/") || /^[A-Za-z]:[\\/]/.test(query) || pathSeparators.test(query);
|
|
@@ -13437,7 +13445,7 @@ function rankFileCandidates(candidates, query, topK) {
|
|
|
13437
13445
|
return topK === void 0 ? ranked : ranked.slice(0, Math.max(0, topK));
|
|
13438
13446
|
}
|
|
13439
13447
|
//#endregion
|
|
13440
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13448
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
|
|
13441
13449
|
/**
|
|
13442
13450
|
* Persisted reasoning-effort preference (`~/.chatcode-cli/tui/effort.json`). Set via
|
|
13443
13451
|
* `/effort` (slider or `/effort <id>`; `/effort status` reports the current
|
|
@@ -13479,7 +13487,7 @@ function writeEffortPref(effort, dir = PREFS_DIR$4) {
|
|
|
13479
13487
|
}
|
|
13480
13488
|
}
|
|
13481
13489
|
//#endregion
|
|
13482
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13490
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
|
|
13483
13491
|
/**
|
|
13484
13492
|
* Persisted model-route preference (`/model` picker choice), kept at
|
|
13485
13493
|
* `~/.chatcode-cli/model.json` (`provider` + `model` keys) so CLI and Web share it
|
|
@@ -13562,7 +13570,7 @@ function writeModelPref(provider, model, dir = PREFS_DIR$3) {
|
|
|
13562
13570
|
}
|
|
13563
13571
|
}
|
|
13564
13572
|
//#endregion
|
|
13565
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13573
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
|
|
13566
13574
|
/**
|
|
13567
13575
|
* Model route resolution (issue #67). The `(provider, model)` pair is a
|
|
13568
13576
|
* single value: every source either supplies the WHOLE route or is skipped,
|
|
@@ -13797,7 +13805,7 @@ function orderModelProviders(providers) {
|
|
|
13797
13805
|
return [...providers].sort((left, right) => rank(left.id) - rank(right.id));
|
|
13798
13806
|
}
|
|
13799
13807
|
//#endregion
|
|
13800
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13808
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelSettings.js
|
|
13801
13809
|
/** Custom-model forms over the same settings and credential services used by Web. */
|
|
13802
13810
|
function record(value) {
|
|
13803
13811
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -13999,7 +14007,7 @@ function createCustomModelSettingsStore(path, host) {
|
|
|
13999
14007
|
};
|
|
14000
14008
|
}
|
|
14001
14009
|
//#endregion
|
|
14002
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14010
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelTest.js
|
|
14003
14011
|
/** Direct, one-shot generation used by `/model-config` before a model is registered. */
|
|
14004
14012
|
function requestEndpoint(baseURL, api) {
|
|
14005
14013
|
const url = new URL(baseURL);
|
|
@@ -14088,7 +14096,7 @@ async function testCustomModelConnection(request, fetchImpl = fetch) {
|
|
|
14088
14096
|
}
|
|
14089
14097
|
}
|
|
14090
14098
|
//#endregion
|
|
14091
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14099
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/catalogDefaults.js
|
|
14092
14100
|
/** Read display defaults from the host adapter's own installed pi-ai catalog. */
|
|
14093
14101
|
const catalogs = /* @__PURE__ */ new Map();
|
|
14094
14102
|
async function installedCatalog(anchor) {
|
|
@@ -14135,7 +14143,7 @@ async function catalogProviderDefaults(provider, model, anchor = import.meta.url
|
|
|
14135
14143
|
};
|
|
14136
14144
|
}
|
|
14137
14145
|
//#endregion
|
|
14138
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14146
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
|
|
14139
14147
|
/**
|
|
14140
14148
|
* Persisted agent-preset preference (`/preset` picker choice), kept at
|
|
14141
14149
|
* `~/.chatcode-cli/tui/agent-preset.json` (`preset` key) so the choice survives
|
|
@@ -14194,7 +14202,7 @@ function migratePresetPref(requested, resolved, dir = PREFS_DIR$2) {
|
|
|
14194
14202
|
return requested === void 0 || resolved === void 0 || requested === resolved ? true : writePresetPref(resolved, dir);
|
|
14195
14203
|
}
|
|
14196
14204
|
//#endregion
|
|
14197
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14205
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/persistedSession.js
|
|
14198
14206
|
/** Undefined means the service exposes neither supported read API. */
|
|
14199
14207
|
async function readPersistedSession(persistence, id) {
|
|
14200
14208
|
if (persistence === null || typeof persistence !== "object") return void 0;
|
|
@@ -14214,7 +14222,7 @@ async function readPersistedSession(persistence, id) {
|
|
|
14214
14222
|
if (typeof reader.load === "function") return reader.load(id);
|
|
14215
14223
|
}
|
|
14216
14224
|
//#endregion
|
|
14217
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14225
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-resolution.js
|
|
14218
14226
|
/**
|
|
14219
14227
|
* Agent-preset resolution across upstream prerelease lines.
|
|
14220
14228
|
*
|
|
@@ -14252,7 +14260,7 @@ async function resolveCompatiblePreset(presets, requested) {
|
|
|
14252
14260
|
return presets.resolve(requested);
|
|
14253
14261
|
}
|
|
14254
14262
|
//#endregion
|
|
14255
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14263
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/presets.js
|
|
14256
14264
|
/**
|
|
14257
14265
|
* Agent-presets roster integration (issue #8): compose each session's
|
|
14258
14266
|
* model-facing world (tools, prompt sections, projections) from one preset
|
|
@@ -14402,7 +14410,47 @@ function serviceForAgent(ctx, agent, key) {
|
|
|
14402
14410
|
return ctx.get(key);
|
|
14403
14411
|
}
|
|
14404
14412
|
//#endregion
|
|
14405
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14413
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagent-control.js
|
|
14414
|
+
/**
|
|
14415
|
+
* Interrupt a child visible to the current parent without disposing its session.
|
|
14416
|
+
* One-shot local agents use their cancellation method; continuable agents use
|
|
14417
|
+
* the runtime so its queued work remains parked. Service lookup failures are
|
|
14418
|
+
* contained here because this function runs inside a terminal input callback.
|
|
14419
|
+
* @returns Whether the Host accepted an interruption request; settlement is asynchronous.
|
|
14420
|
+
*/
|
|
14421
|
+
function interruptSubagent(ctx, parent, id) {
|
|
14422
|
+
try {
|
|
14423
|
+
const agents = serviceForAgent(ctx, parent, "agents");
|
|
14424
|
+
const target = agents?.get(SessionId(id));
|
|
14425
|
+
if (target === void 0) return false;
|
|
14426
|
+
let ancestor = target.session.header.parentSession;
|
|
14427
|
+
const seen = new Set([String(target.id)]);
|
|
14428
|
+
while (ancestor !== void 0 && ancestor !== parent.session.id) {
|
|
14429
|
+
if (seen.has(String(ancestor))) return false;
|
|
14430
|
+
seen.add(String(ancestor));
|
|
14431
|
+
ancestor = agents?.get(ancestor)?.session.header.parentSession;
|
|
14432
|
+
}
|
|
14433
|
+
if (ancestor !== parent.session.id) return false;
|
|
14434
|
+
if (!snapshotLiveSessionEvents(target.session).some((event) => {
|
|
14435
|
+
const record = event;
|
|
14436
|
+
return record.type === "subagent/descriptor" && record.data.mode === "continuable";
|
|
14437
|
+
})) {
|
|
14438
|
+
target.cancel({ kind: "user" });
|
|
14439
|
+
return true;
|
|
14440
|
+
}
|
|
14441
|
+
const runtime = serviceForAgent(ctx, parent, "subagents");
|
|
14442
|
+
if (runtime === void 0) return false;
|
|
14443
|
+
runtime.interrupt(SessionId(id), {
|
|
14444
|
+
kind: "ancestor",
|
|
14445
|
+
agent: parent
|
|
14446
|
+
});
|
|
14447
|
+
return true;
|
|
14448
|
+
} catch {
|
|
14449
|
+
return false;
|
|
14450
|
+
}
|
|
14451
|
+
}
|
|
14452
|
+
//#endregion
|
|
14453
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-management.js
|
|
14406
14454
|
const failureReason = (error) => error instanceof Error ? error.message : String(error);
|
|
14407
14455
|
/** Read a roster-resolved composition without bypassing preset ownership. */
|
|
14408
14456
|
async function readPresetComposition(presets, presetId) {
|
|
@@ -14459,7 +14507,7 @@ async function removePresetComposition(presets, presetId) {
|
|
|
14459
14507
|
}
|
|
14460
14508
|
}
|
|
14461
14509
|
//#endregion
|
|
14462
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14510
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/session-organization.js
|
|
14463
14511
|
/** Adapter-only readers for optional Harness session-organization services. */
|
|
14464
14512
|
const STAT_KEYS = [
|
|
14465
14513
|
"turns",
|
|
@@ -14520,7 +14568,7 @@ function presetCompositionRows(content, limit = 80) {
|
|
|
14520
14568
|
};
|
|
14521
14569
|
}
|
|
14522
14570
|
//#endregion
|
|
14523
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14571
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
|
|
14524
14572
|
/**
|
|
14525
14573
|
* Debug logger for the ported Ink core. Writes to stderr only when
|
|
14526
14574
|
* `CHATCODE_CLI_TUI_DEBUG` (or its legacy alias) is set, so normal runs stay quiet.
|
|
@@ -14550,7 +14598,7 @@ function logMouseDebug(message, fields) {
|
|
|
14550
14598
|
} catch {}
|
|
14551
14599
|
}
|
|
14552
14600
|
//#endregion
|
|
14553
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14601
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
|
|
14554
14602
|
/**
|
|
14555
14603
|
* `@` file-mention parsing (issue #15).
|
|
14556
14604
|
*
|
|
@@ -14696,7 +14744,7 @@ function mentionAtCaret(value, cursor) {
|
|
|
14696
14744
|
};
|
|
14697
14745
|
}
|
|
14698
14746
|
//#endregion
|
|
14699
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14747
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
|
|
14700
14748
|
/** Format only the files in the authoritative loaded-context projection. */
|
|
14701
14749
|
function loadedFileLines(files, copy) {
|
|
14702
14750
|
if (files === void 0) return [copy.unavailable];
|
|
@@ -14811,7 +14859,7 @@ function codeRatioLines(report, copy, maxAuthors = 20) {
|
|
|
14811
14859
|
return lines;
|
|
14812
14860
|
}
|
|
14813
14861
|
//#endregion
|
|
14814
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14862
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
|
|
14815
14863
|
/**
|
|
14816
14864
|
* Cordis-free theme catalog shared by future pickers, commands and hosts.
|
|
14817
14865
|
*
|
|
@@ -14892,7 +14940,7 @@ function listThemeCatalog(host) {
|
|
|
14892
14940
|
return Object.freeze(entries);
|
|
14893
14941
|
}
|
|
14894
14942
|
//#endregion
|
|
14895
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14943
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
|
|
14896
14944
|
/**
|
|
14897
14945
|
* Configurable Shift+Tab session modes (the `modes` dsh-tui plugin config):
|
|
14898
14946
|
* each mode is a named bundle of optional DSH plane switches — plan mode
|
|
@@ -14956,7 +15004,7 @@ function modeDisplayName(spec) {
|
|
|
14956
15004
|
return spec.id;
|
|
14957
15005
|
}
|
|
14958
15006
|
//#endregion
|
|
14959
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15007
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagents.js
|
|
14960
15008
|
/** Unified subagent activity domain model used by the adapter and every view. */
|
|
14961
15009
|
const MAX_OUTPUT_EVENTS = 160;
|
|
14962
15010
|
const MAX_OUTPUT_LINES = 160;
|
|
@@ -15334,7 +15382,7 @@ function formatJobDuration(job, now = Date.now()) {
|
|
|
15334
15382
|
return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart(2, "0")}m`;
|
|
15335
15383
|
}
|
|
15336
15384
|
//#endregion
|
|
15337
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15385
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
|
|
15338
15386
|
/**
|
|
15339
15387
|
* Minimal mode: one process-wide flag gating decorative UI (header splash,
|
|
15340
15388
|
* emoji status glyphs and non-tool text colors). Footer field choices remain
|
|
@@ -15354,7 +15402,7 @@ function setMinimalMode(enabled) {
|
|
|
15354
15402
|
minimal = enabled;
|
|
15355
15403
|
}
|
|
15356
15404
|
//#endregion
|
|
15357
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15405
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspace.js
|
|
15358
15406
|
function registryOf(ctx) {
|
|
15359
15407
|
const registry = ctx.get("workspaceRegistry");
|
|
15360
15408
|
if (registry === void 0 || typeof registry.pinSession !== "function" || typeof registry.unpinSession !== "function") return void 0;
|
|
@@ -15429,7 +15477,7 @@ async function unarchiveWorkspaceSession(ctx, id) {
|
|
|
15429
15477
|
return true;
|
|
15430
15478
|
}
|
|
15431
15479
|
//#endregion
|
|
15432
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15480
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/contract.js
|
|
15433
15481
|
/**
|
|
15434
15482
|
* Upstream compatibility contract.
|
|
15435
15483
|
*
|
|
@@ -15858,7 +15906,7 @@ function pluginsInfoLines(args, deps) {
|
|
|
15858
15906
|
return lines;
|
|
15859
15907
|
}
|
|
15860
15908
|
//#endregion
|
|
15861
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15909
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/mcp-status.js
|
|
15862
15910
|
/** Loader and tool-registry projection used by the TUI's `/mcp` report. */
|
|
15863
15911
|
const MCP_CLIENT_PACKAGE = "@deepseek-ai/dsh-mcp-client";
|
|
15864
15912
|
const FIBER_ACTIVE = 2;
|
|
@@ -15911,7 +15959,7 @@ function collectMcpServerStatus(schemas, entries) {
|
|
|
15911
15959
|
}));
|
|
15912
15960
|
}
|
|
15913
15961
|
//#endregion
|
|
15914
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15962
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/format.js
|
|
15915
15963
|
/**
|
|
15916
15964
|
* Number, token-count, and duration formatters shared by the status line
|
|
15917
15965
|
* and message rows.
|
|
@@ -15974,7 +16022,7 @@ function formatDuration$4(durationMs, options = {}) {
|
|
|
15974
16022
|
return parts.join(" ");
|
|
15975
16023
|
}
|
|
15976
16024
|
//#endregion
|
|
15977
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16025
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
|
|
15978
16026
|
/**
|
|
15979
16027
|
* Return the current context occupancy. The latest request is authoritative:
|
|
15980
16028
|
* its uncached input and cache read/write tokens are all part of that request's
|
|
@@ -16358,7 +16406,7 @@ function prepareMemoryTargetFile(requested, candidates, cwd, dshHome) {
|
|
|
16358
16406
|
}
|
|
16359
16407
|
}
|
|
16360
16408
|
//#endregion
|
|
16361
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16409
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/channel.js
|
|
16362
16410
|
/** Return the step left open by a tree fork cut within one turn. */
|
|
16363
16411
|
function openStepAtForkCut(events, turn) {
|
|
16364
16412
|
for (let i = events.length - 1; i >= 0; i--) {
|
|
@@ -17014,21 +17062,9 @@ function createChannel(ctx, initialAgent, options) {
|
|
|
17014
17062
|
notifyAgentView();
|
|
17015
17063
|
});
|
|
17016
17064
|
const subagentControl = { interrupt(agentId) {
|
|
17017
|
-
const
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
try {
|
|
17021
|
-
runtime.interrupt(target, {
|
|
17022
|
-
kind: "ancestor",
|
|
17023
|
-
agent
|
|
17024
|
-
});
|
|
17025
|
-
subagentStore.onCancelled(agentId, "interrupted");
|
|
17026
|
-
syncSubagentsNow();
|
|
17027
|
-
state.emit();
|
|
17028
|
-
return true;
|
|
17029
|
-
} catch {
|
|
17030
|
-
return false;
|
|
17031
|
-
}
|
|
17065
|
+
const child = subagentStore.get(agentId);
|
|
17066
|
+
if (child === void 0 || child.status !== "running" && child.status !== "starting") return false;
|
|
17067
|
+
return interruptSubagent(ctx, agent, child.sessionId ?? agentId);
|
|
17032
17068
|
} };
|
|
17033
17069
|
const fallbackGrantStore = readGrantStore();
|
|
17034
17070
|
const currentGrantStore = () => ctx.get("tuiPluginHost")?.grants ?? fallbackGrantStore;
|
|
@@ -23101,8 +23137,17 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
|
|
|
23101
23137
|
text: `${header}\n${body}${truncated ? "\n[… truncated]" : ""}\n</attached-file>`
|
|
23102
23138
|
});
|
|
23103
23139
|
attached.push(display);
|
|
23104
|
-
} catch {
|
|
23105
|
-
|
|
23140
|
+
} catch (error) {
|
|
23141
|
+
if (typeof error === "object" && error !== null && "code" in error && error.code === "FS_NOT_TEXT") {
|
|
23142
|
+
const reference = `<attached-file path="${shownPath}" format="binary">\nThis file exists at ${target.displayPath}. Its binary contents are not included here; use the appropriate file tools to read it.\n</attached-file>`;
|
|
23143
|
+
if (reference.length > budget) break;
|
|
23144
|
+
budget -= reference.length;
|
|
23145
|
+
blocks.push({
|
|
23146
|
+
type: "text",
|
|
23147
|
+
text: reference
|
|
23148
|
+
});
|
|
23149
|
+
attached.push(display);
|
|
23150
|
+
} else missing.push(display);
|
|
23106
23151
|
}
|
|
23107
23152
|
continue;
|
|
23108
23153
|
}
|
|
@@ -23148,7 +23193,7 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
|
|
|
23148
23193
|
};
|
|
23149
23194
|
}
|
|
23150
23195
|
//#endregion
|
|
23151
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23196
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/childStderr.js
|
|
23152
23197
|
/**
|
|
23153
23198
|
* Child-process stderr guard (issue #17).
|
|
23154
23199
|
*
|
|
@@ -23317,7 +23362,7 @@ function createChildStderrReporter(notify, options = {}) {
|
|
|
23317
23362
|
};
|
|
23318
23363
|
}
|
|
23319
23364
|
//#endregion
|
|
23320
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23365
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/startupTrace.js
|
|
23321
23366
|
/** Opt-in startup timings; labels never contain paths, Session identities, or credentials. */
|
|
23322
23367
|
/**
|
|
23323
23368
|
* Measure one initialization operation without changing its result or failure.
|
|
@@ -23336,7 +23381,7 @@ async function traceTuiStartup(phase, operation) {
|
|
|
23336
23381
|
}
|
|
23337
23382
|
}
|
|
23338
23383
|
//#endregion
|
|
23339
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23384
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions.js
|
|
23340
23385
|
/**
|
|
23341
23386
|
* Ask-user-question store — the UI-side half of the DSH user-interaction
|
|
23342
23387
|
* seam (`ctx.userQuestions`). The harness's model-facing
|
|
@@ -23576,7 +23621,7 @@ var QuestionStore = class {
|
|
|
23576
23621
|
}
|
|
23577
23622
|
};
|
|
23578
23623
|
//#endregion
|
|
23579
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23624
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerGuard.js
|
|
23580
23625
|
/**
|
|
23581
23626
|
* Question-provider seat guard (issue #98 security follow-up).
|
|
23582
23627
|
*
|
|
@@ -23688,7 +23733,7 @@ function incumbentQuestionProviderId(service) {
|
|
|
23688
23733
|
} catch {}
|
|
23689
23734
|
}
|
|
23690
23735
|
//#endregion
|
|
23691
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23736
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions-answerer.js
|
|
23692
23737
|
/**
|
|
23693
23738
|
* User-question answerer compatibility.
|
|
23694
23739
|
*
|
|
@@ -23747,7 +23792,7 @@ function prepareQuestionAnswerer(ctx, service, answerer) {
|
|
|
23747
23792
|
}
|
|
23748
23793
|
}
|
|
23749
23794
|
//#endregion
|
|
23750
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23795
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/approvals.js
|
|
23751
23796
|
/**
|
|
23752
23797
|
* Approval store — the UI-side answerer half of the DSH approval seam
|
|
23753
23798
|
* (`ctx.approval`). The harness's permission layer asks
|
|
@@ -24141,7 +24186,7 @@ var ApprovalStore = class {
|
|
|
24141
24186
|
}
|
|
24142
24187
|
};
|
|
24143
24188
|
//#endregion
|
|
24144
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24189
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/promptDebug.js
|
|
24145
24190
|
/**
|
|
24146
24191
|
* On-demand capture of every final AgentLoop request context observed for a
|
|
24147
24192
|
* live session.
|
|
@@ -24287,7 +24332,7 @@ function registerPromptDebug(ctx) {
|
|
|
24287
24332
|
}));
|
|
24288
24333
|
}
|
|
24289
24334
|
//#endregion
|
|
24290
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24335
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
|
|
24291
24336
|
/**
|
|
24292
24337
|
* One-time local migrations (`~/.chatcode-cli/tui/migrations.json`), keyed by stable
|
|
24293
24338
|
* migration id → ISO timestamp. Named keys (not a bare flag) so later
|
|
@@ -24378,7 +24423,7 @@ async function commitFullscreenFactoryMigration(plan, options) {
|
|
|
24378
24423
|
} catch {}
|
|
24379
24424
|
}
|
|
24380
24425
|
//#endregion
|
|
24381
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24426
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/retired-packaged-presets.js
|
|
24382
24427
|
const OWNER = "@chatcode/cco-tui";
|
|
24383
24428
|
const MARKER = ".dsh-tui-managed.json";
|
|
24384
24429
|
const RETIRED_PACKAGED_PRESETS = ["liangshen"];
|
|
@@ -24420,7 +24465,7 @@ function cleanupRetiredPackagedPresets(options = {}) {
|
|
|
24420
24465
|
return results;
|
|
24421
24466
|
}
|
|
24422
24467
|
//#endregion
|
|
24423
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24468
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
|
|
24424
24469
|
/** The browser's default view: this project, conversations only. */
|
|
24425
24470
|
const DEFAULT_FILTERS = {
|
|
24426
24471
|
query: "",
|
|
@@ -24754,7 +24799,7 @@ function windowEnd(rows, top, budget) {
|
|
|
24754
24799
|
return at;
|
|
24755
24800
|
}
|
|
24756
24801
|
//#endregion
|
|
24757
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24802
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/resume.js
|
|
24758
24803
|
/** Resolve launch-time resume flags against persisted conversations. */
|
|
24759
24804
|
/**
|
|
24760
24805
|
* Select the latest conversation in the exact launch directory for bare flags.
|
|
@@ -24774,7 +24819,7 @@ async function resolveStartupSessionId(source, argv, cwd) {
|
|
|
24774
24819
|
return latest.id;
|
|
24775
24820
|
}
|
|
24776
24821
|
//#endregion
|
|
24777
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24822
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
|
|
24778
24823
|
/** Resolve a fresh session's working directory without widening it to a Git ancestor. */
|
|
24779
24824
|
/**
|
|
24780
24825
|
* Explicit configuration wins; otherwise keep the invoking directory, even
|
|
@@ -24787,7 +24832,7 @@ function resolveSessionCwd(configured, start = process.cwd()) {
|
|
|
24787
24832
|
return resolve(start, configured ?? "");
|
|
24788
24833
|
}
|
|
24789
24834
|
//#endregion
|
|
24790
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24835
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
|
|
24791
24836
|
/**
|
|
24792
24837
|
* Open URLs, files and folders with the platform's default handler, fully
|
|
24793
24838
|
* detached from the TUI process (fire-and-forget: no stdio pipes, no wait,
|
|
@@ -24948,7 +24993,7 @@ function revealInFileManager(filePath) {
|
|
|
24948
24993
|
if (existsSync(dir)) openExternal(dir);
|
|
24949
24994
|
}
|
|
24950
24995
|
//#endregion
|
|
24951
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24996
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
|
|
24952
24997
|
/** ChatCode API request capability. Credentials stay in the host adapter. */
|
|
24953
24998
|
const CHATCODE_API_BASE_URL = "https://chatcode.chinaunicom.cn";
|
|
24954
24999
|
/** CVP(天梯)平台基础 URL,承载 modules/notification 等公开/独立鉴权模块接口。 */
|
|
@@ -24956,7 +25001,7 @@ const CVP_CHATCODE_API_URL = `${CHATCODE_API_BASE_URL}/cvp`;
|
|
|
24956
25001
|
/** Each mounted TUI receives its own host-authorized request function. */
|
|
24957
25002
|
const ChatCodeApiContext = (0, import_react.createContext)(void 0);
|
|
24958
25003
|
//#endregion
|
|
24959
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25004
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
|
|
24960
25005
|
const RELEASE_NOTE_PATH = join(DATA_DIR, "release-notes.json");
|
|
24961
25006
|
const RELEASE_NOTE_ENDPOINT = `${CHATCODE_API_BASE_URL}/chatcode/api/v1/cli/version/release-note`;
|
|
24962
25007
|
function acknowledgedVersion() {
|
|
@@ -25052,7 +25097,7 @@ var ReleaseNotesStore = class {
|
|
|
25052
25097
|
}
|
|
25053
25098
|
};
|
|
25054
25099
|
//#endregion
|
|
25055
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25100
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
|
|
25056
25101
|
const MAIN_CLI_PACKAGES = new Set(["@chatcode/chatcode-cli", "@chatcode/chatcode-cli-test"]);
|
|
25057
25102
|
const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u;
|
|
25058
25103
|
const PRODUCT_VERSION_ENV = "CHATCODE_CLI_PRODUCT_VERSION";
|
|
@@ -25092,7 +25137,7 @@ function resolveProductVersion(options = {}) {
|
|
|
25092
25137
|
/** Product version shown by the TUI, shared with `cco --version` and Web. */
|
|
25093
25138
|
const PRODUCT_VERSION = resolveProductVersion();
|
|
25094
25139
|
//#endregion
|
|
25095
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25140
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
|
|
25096
25141
|
const MAX_CAPTURE_BYTES = 64 * 1024;
|
|
25097
25142
|
function appendBounded(chunks, chunk, total) {
|
|
25098
25143
|
if (total.value >= MAX_CAPTURE_BYTES) return;
|
|
@@ -25162,7 +25207,7 @@ function execFileNoThrow(file, args = [], options) {
|
|
|
25162
25207
|
});
|
|
25163
25208
|
}
|
|
25164
25209
|
//#endregion
|
|
25165
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25210
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
|
|
25166
25211
|
const REPORT_TIMEOUT_MS = 2e3;
|
|
25167
25212
|
const RELEASE_TIMEOUT_MS = 500;
|
|
25168
25213
|
const RETRY_DELAYS_MS = [
|
|
@@ -25550,7 +25595,7 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((expo
|
|
|
25550
25595
|
})();
|
|
25551
25596
|
}));
|
|
25552
25597
|
//#endregion
|
|
25553
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25598
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
|
|
25554
25599
|
var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25555
25600
|
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
25556
25601
|
else module.exports = require_react_jsx_runtime_development();
|
|
@@ -25607,7 +25652,7 @@ function writeThemePref(name, dir = PREFS_DIR) {
|
|
|
25607
25652
|
}
|
|
25608
25653
|
}
|
|
25609
25654
|
//#endregion
|
|
25610
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25655
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
|
|
25611
25656
|
const EMPTY_THEME_SNAPSHOT = Object.freeze([]);
|
|
25612
25657
|
const subscribeNoThemes = (_listener) => () => {};
|
|
25613
25658
|
/**
|
|
@@ -25635,7 +25680,7 @@ function useRuntimeThemeSnapshot(themeHost) {
|
|
|
25635
25680
|
return import_react.useSyncExternalStore(subscribeThemes, getThemeSnapshot, getThemeSnapshot);
|
|
25636
25681
|
}
|
|
25637
25682
|
//#endregion
|
|
25638
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25683
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event.js
|
|
25639
25684
|
/**
|
|
25640
25685
|
* Base class for events with immediate-propagation control.
|
|
25641
25686
|
*
|
|
@@ -25659,7 +25704,7 @@ var Event = class {
|
|
|
25659
25704
|
}
|
|
25660
25705
|
};
|
|
25661
25706
|
//#endregion
|
|
25662
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25707
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/emitter.js
|
|
25663
25708
|
/**
|
|
25664
25709
|
* Node-compatible event emitter that is aware of the `Event` class, so
|
|
25665
25710
|
* `emit` respects `stopImmediatePropagation()` on dispatched events.
|
|
@@ -25692,7 +25737,7 @@ var EventEmitter$1 = class extends EventEmitter {
|
|
|
25692
25737
|
}
|
|
25693
25738
|
};
|
|
25694
25739
|
//#endregion
|
|
25695
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25740
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/StdinContext.js
|
|
25696
25741
|
/**
|
|
25697
25742
|
* `StdinContext` is a React context, which exposes input stream.
|
|
25698
25743
|
*/
|
|
@@ -25706,14 +25751,14 @@ const StdinContext = (0, import_react.createContext)({
|
|
|
25706
25751
|
});
|
|
25707
25752
|
StdinContext.displayName = "InternalStdinContext";
|
|
25708
25753
|
//#endregion
|
|
25709
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25754
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-stdin.js
|
|
25710
25755
|
/**
|
|
25711
25756
|
* React hook exposing the stdin stream and raw-mode helpers from `StdinContext`.
|
|
25712
25757
|
* @returns the `StdinContext` value.
|
|
25713
25758
|
*/
|
|
25714
25759
|
const useStdin = () => (0, import_react.useContext)(StdinContext);
|
|
25715
25760
|
//#endregion
|
|
25716
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25761
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/ansi.js
|
|
25717
25762
|
/**
|
|
25718
25763
|
* ANSI Control Characters and Escape Sequence Introducers
|
|
25719
25764
|
*
|
|
@@ -25787,7 +25832,7 @@ function isEscFinal(byte) {
|
|
|
25787
25832
|
return byte >= 48 && byte <= 126;
|
|
25788
25833
|
}
|
|
25789
25834
|
//#endregion
|
|
25790
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25835
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/csi.js
|
|
25791
25836
|
/**
|
|
25792
25837
|
* CSI (Control Sequence Introducer) Types
|
|
25793
25838
|
*
|
|
@@ -26110,7 +26155,7 @@ const ENABLE_WIN32_INPUT_MODE = csi("?9001h");
|
|
|
26110
26155
|
*/
|
|
26111
26156
|
const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
|
|
26112
26157
|
//#endregion
|
|
26113
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26158
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
|
|
26114
26159
|
/**
|
|
26115
26160
|
* Minimal terminal-environment shim for the ported Ink core. The original
|
|
26116
26161
|
* module computed a richer `env` object from the Claude Code app context; the
|
|
@@ -26119,7 +26164,7 @@ const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
|
|
|
26119
26164
|
*/
|
|
26120
26165
|
const env$1 = { terminal: (process.env.TERM_PROGRAM ?? process.env.TERM ?? "unknown").toLowerCase() };
|
|
26121
26166
|
//#endregion
|
|
26122
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26167
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/osc.js
|
|
26123
26168
|
/**
|
|
26124
26169
|
* OSC (Operating System Command) Types and Parser
|
|
26125
26170
|
*/
|
|
@@ -26515,7 +26560,7 @@ function supportsTabStatus() {
|
|
|
26515
26560
|
return process.env.USER_TYPE === "ant";
|
|
26516
26561
|
}
|
|
26517
26562
|
//#endregion
|
|
26518
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26563
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-querier.js
|
|
26519
26564
|
/**
|
|
26520
26565
|
* Query the terminal and await responses without timeouts.
|
|
26521
26566
|
*
|
|
@@ -26701,7 +26746,7 @@ var TerminalQuerier = class {
|
|
|
26701
26746
|
}
|
|
26702
26747
|
};
|
|
26703
26748
|
//#endregion
|
|
26704
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26749
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemeProvider.js
|
|
26705
26750
|
/**
|
|
26706
26751
|
* Theme provider with terminal-background auto-detection. With no explicit
|
|
26707
26752
|
* `theme` prop, no CHATCODE_CLI_TUI_THEME override and no persisted choice
|
|
@@ -26900,7 +26945,7 @@ function useTheme() {
|
|
|
26900
26945
|
return [theme, setTheme];
|
|
26901
26946
|
}
|
|
26902
26947
|
//#endregion
|
|
26903
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26948
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settingsEditor.js
|
|
26904
26949
|
/**
|
|
26905
26950
|
* React-free form model behind the `/settings` screen (issue #165), mirroring
|
|
26906
26951
|
* the web front door's card-form.ts semantics: a section stages what the user
|
|
@@ -27150,7 +27195,7 @@ var SettingsForm = class {
|
|
|
27150
27195
|
}
|
|
27151
27196
|
};
|
|
27152
27197
|
//#endregion
|
|
27153
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27198
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
|
|
27154
27199
|
/**
|
|
27155
27200
|
* `/reload` planning — the pi-style soft reload: re-read the TUI's persisted
|
|
27156
27201
|
* preference files (`~/.chatcode-cli/tui/{theme,lang,agent-preset,model,
|
|
@@ -27999,7 +28044,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
27999
28044
|
const process$2 = globalThis.process;
|
|
28000
28045
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
28001
28046
|
//#endregion
|
|
28002
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
28047
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/enums.js
|
|
28003
28048
|
/**
|
|
28004
28049
|
* Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
|
|
28005
28050
|
* Kept as `const` objects (not TS enums) per repo convention.
|
|
@@ -28131,7 +28176,7 @@ const Wrap = {
|
|
|
28131
28176
|
WrapReverse: 2
|
|
28132
28177
|
};
|
|
28133
28178
|
//#endregion
|
|
28134
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
28179
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/index.js
|
|
28135
28180
|
/**
|
|
28136
28181
|
* Pure-TypeScript port of yoga-layout (Meta's flexbox engine).
|
|
28137
28182
|
*
|
|
@@ -30582,7 +30627,7 @@ Object.defineProperties(createChalk.prototype, {
|
|
|
30582
30627
|
const chalk = createChalk();
|
|
30583
30628
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
30584
30629
|
//#endregion
|
|
30585
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30630
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
|
|
30586
30631
|
/**
|
|
30587
30632
|
* xterm.js (VS Code, Cursor, code-server, Coder) has supported truecolor
|
|
30588
30633
|
* since 2017, but code-server/Coder containers often don't set
|
|
@@ -30713,7 +30758,7 @@ function applyColor(text, color) {
|
|
|
30713
30758
|
return colorize(text, color, "foreground");
|
|
30714
30759
|
}
|
|
30715
30760
|
//#endregion
|
|
30716
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30761
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
|
|
30717
30762
|
/**
|
|
30718
30763
|
* Environment truthiness check for the ported Ink core. Accepts the common
|
|
30719
30764
|
* shell truthy spellings (`1`, `true`, `yes`, `on`).
|
|
@@ -30731,7 +30776,7 @@ function isEnvTruthy(value) {
|
|
|
30731
30776
|
].includes(value.toLowerCase());
|
|
30732
30777
|
}
|
|
30733
30778
|
//#endregion
|
|
30734
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30779
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
|
|
30735
30780
|
/**
|
|
30736
30781
|
* Whether mouse click handling is disabled for the ported Ink core. dsh-tui
|
|
30737
30782
|
* reads its own env flag (`CHATCODE_CLI_TUI_DISABLE_MOUSE`); the original module
|
|
@@ -30742,7 +30787,7 @@ function isMouseClicksDisabled() {
|
|
|
30742
30787
|
return isEnvTruthy(readTuiEnv("DISABLE_MOUSE"));
|
|
30743
30788
|
}
|
|
30744
30789
|
//#endregion
|
|
30745
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30790
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/input-suppression.js
|
|
30746
30791
|
/**
|
|
30747
30792
|
* Input suppression window for terminal handoffs (issue #123): when stdin is
|
|
30748
30793
|
* handed to an external TUI (full-screen editor) and back, the tty can
|
|
@@ -30769,7 +30814,7 @@ function isInputSuppressed() {
|
|
|
30769
30814
|
return Date.now() < suppressedUntil;
|
|
30770
30815
|
}
|
|
30771
30816
|
//#endregion
|
|
30772
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30817
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/tokenize.js
|
|
30773
30818
|
/**
|
|
30774
30819
|
* Input Tokenizer - Escape sequence boundary detection
|
|
30775
30820
|
*
|
|
@@ -30967,7 +31012,7 @@ function tokenize$2(input, initialState, initialBuffer, flush, x10Mouse, splitIn
|
|
|
30967
31012
|
};
|
|
30968
31013
|
}
|
|
30969
31014
|
//#endregion
|
|
30970
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31015
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/parse-keypress.js
|
|
30971
31016
|
/**
|
|
30972
31017
|
* Keyboard input parser - converts terminal input to key events
|
|
30973
31018
|
*
|
|
@@ -32042,7 +32087,7 @@ function createWheelKey(s, name, col, row, button) {
|
|
|
32042
32087
|
};
|
|
32043
32088
|
}
|
|
32044
32089
|
//#endregion
|
|
32045
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32090
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/input-event.js
|
|
32046
32091
|
function parseKey(keypress) {
|
|
32047
32092
|
const key = {
|
|
32048
32093
|
upArrow: keypress.name === "up",
|
|
@@ -32127,7 +32172,7 @@ var InputEvent = class extends Event {
|
|
|
32127
32172
|
}
|
|
32128
32173
|
};
|
|
32129
32174
|
//#endregion
|
|
32130
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32175
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-focus-event.js
|
|
32131
32176
|
/**
|
|
32132
32177
|
* Event fired when the terminal window gains or loses focus.
|
|
32133
32178
|
*
|
|
@@ -32146,7 +32191,7 @@ var TerminalFocusEvent = class extends Event {
|
|
|
32146
32191
|
}
|
|
32147
32192
|
};
|
|
32148
32193
|
//#endregion
|
|
32149
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32194
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/node-cache.js
|
|
32150
32195
|
/** Layout bounds cached per rendered node, used for blitting and clearing. */
|
|
32151
32196
|
const nodeCache = /* @__PURE__ */ new WeakMap();
|
|
32152
32197
|
/** Rects of removed children that need clearing on next render */
|
|
@@ -32184,7 +32229,7 @@ function consumeAbsoluteRemovedFlag() {
|
|
|
32184
32229
|
return had;
|
|
32185
32230
|
}
|
|
32186
32231
|
//#endregion
|
|
32187
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32232
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-event.js
|
|
32188
32233
|
/**
|
|
32189
32234
|
* Base class for all terminal events with DOM-style propagation.
|
|
32190
32235
|
*
|
|
@@ -32313,7 +32358,7 @@ var TerminalEvent = class extends Event {
|
|
|
32313
32358
|
_prepareForTarget(_target) {}
|
|
32314
32359
|
};
|
|
32315
32360
|
//#endregion
|
|
32316
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32361
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/pointer-event.js
|
|
32317
32362
|
/**
|
|
32318
32363
|
* Base class for pointer-derived terminal events (click, wheel, hover).
|
|
32319
32364
|
*
|
|
@@ -32374,7 +32419,7 @@ var PointerEvent = class extends TerminalEvent {
|
|
|
32374
32419
|
}
|
|
32375
32420
|
};
|
|
32376
32421
|
//#endregion
|
|
32377
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32422
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/drag-event.js
|
|
32378
32423
|
/**
|
|
32379
32424
|
* Component-level drag event (DOM HTML5 drag semantics subset).
|
|
32380
32425
|
*
|
|
@@ -48482,7 +48527,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
48482
48527
|
}, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
|
|
48483
48528
|
}));
|
|
48484
48529
|
//#endregion
|
|
48485
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48530
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/node.js
|
|
48486
48531
|
var import_react_reconciler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
48487
48532
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
|
|
48488
48533
|
else module.exports = require_react_reconciler_development();
|
|
@@ -48558,7 +48603,7 @@ const LayoutMeasureMode = {
|
|
|
48558
48603
|
AtMost: "at-most"
|
|
48559
48604
|
};
|
|
48560
48605
|
//#endregion
|
|
48561
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48606
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/yoga.js
|
|
48562
48607
|
const EDGE_MAP = {
|
|
48563
48608
|
all: Edge.All,
|
|
48564
48609
|
horizontal: Edge.Horizontal,
|
|
@@ -48785,7 +48830,7 @@ function createYogaLayoutNode() {
|
|
|
48785
48830
|
return new YogaLayoutNode(YOGA_INSTANCE.Node.create());
|
|
48786
48831
|
}
|
|
48787
48832
|
//#endregion
|
|
48788
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48833
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/engine.js
|
|
48789
48834
|
/**
|
|
48790
48835
|
* Create a new layout node backed by the Yoga adapter.
|
|
48791
48836
|
* @returns an empty layout node with no children, styles, or measure function.
|
|
@@ -48794,7 +48839,7 @@ function createLayoutNode() {
|
|
|
48794
48839
|
return createYogaLayoutNode();
|
|
48795
48840
|
}
|
|
48796
48841
|
//#endregion
|
|
48797
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48842
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/line-width-cache.js
|
|
48798
48843
|
const cache = /* @__PURE__ */ new Map();
|
|
48799
48844
|
const MAX_CACHE_SIZE = 4096;
|
|
48800
48845
|
const MAX_CACHE_CHARS = 1e5;
|
|
@@ -48830,7 +48875,7 @@ function lineWidth(line) {
|
|
|
48830
48875
|
return width;
|
|
48831
48876
|
}
|
|
48832
48877
|
//#endregion
|
|
48833
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48878
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-text.js
|
|
48834
48879
|
/**
|
|
48835
48880
|
* Measure wrapped text dimensions in a single pass.
|
|
48836
48881
|
* @param text - the text to measure.
|
|
@@ -48861,7 +48906,7 @@ function measureText(text, maxWidth) {
|
|
|
48861
48906
|
};
|
|
48862
48907
|
}
|
|
48863
48908
|
//#endregion
|
|
48864
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48909
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/squash-text-nodes.js
|
|
48865
48910
|
/**
|
|
48866
48911
|
* Squash text nodes into styled segments, propagating styles down through the tree.
|
|
48867
48912
|
* This allows structured styling without relying on ANSI string transforms.
|
|
@@ -48909,7 +48954,7 @@ function squashTextNodes(node) {
|
|
|
48909
48954
|
return text;
|
|
48910
48955
|
}
|
|
48911
48956
|
//#endregion
|
|
48912
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48957
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
|
|
48913
48958
|
const DEFAULT_TAB_INTERVAL = 8;
|
|
48914
48959
|
/**
|
|
48915
48960
|
* Expand tab characters to spaces at fixed column intervals, preserving
|
|
@@ -49359,7 +49404,7 @@ function tokenize$1(str, endChar = Number.POSITIVE_INFINITY) {
|
|
|
49359
49404
|
return ret;
|
|
49360
49405
|
}
|
|
49361
49406
|
//#endregion
|
|
49362
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49407
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
|
|
49363
49408
|
function isEndCode(code) {
|
|
49364
49409
|
return code.code === code.endCode;
|
|
49365
49410
|
}
|
|
@@ -49976,7 +50021,7 @@ function wrapAnsi$1(string, columns, options) {
|
|
|
49976
50021
|
return normalizeText(String(string)).replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs$1(line), columns, options)).join("\n");
|
|
49977
50022
|
}
|
|
49978
50023
|
//#endregion
|
|
49979
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50024
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
|
|
49980
50025
|
const wrapAnsiBun = typeof Bun !== "undefined" && typeof Bun.wrapAnsi === "function" ? Bun.wrapAnsi : null;
|
|
49981
50026
|
const SLOT_MIN_LENGTH = 2048;
|
|
49982
50027
|
let slot = null;
|
|
@@ -50023,7 +50068,7 @@ function wrapAnsiNpmIncremental(input, columns, options) {
|
|
|
50023
50068
|
*/
|
|
50024
50069
|
const wrapAnsi = wrapAnsiBun ?? wrapAnsiNpmIncremental;
|
|
50025
50070
|
//#endregion
|
|
50026
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50071
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrap-text.js
|
|
50027
50072
|
const ELLIPSIS = "…";
|
|
50028
50073
|
const WRAP_CACHE_MAX_ENTRIES = 2048;
|
|
50029
50074
|
const WRAP_CACHE_MAX_CHARS = 2e6;
|
|
@@ -50087,7 +50132,7 @@ function wrapText$1(text, maxWidth, wrapType) {
|
|
|
50087
50132
|
return text;
|
|
50088
50133
|
}
|
|
50089
50134
|
//#endregion
|
|
50090
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50135
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
|
|
50091
50136
|
/**
|
|
50092
50137
|
* Create an element node of the given kind, allocating its yoga layout node
|
|
50093
50138
|
* unless the kind renders without layout (`ink-virtual-text`, `ink-link`,
|
|
@@ -50407,7 +50452,7 @@ function findOwnerChainAtRow(root, y) {
|
|
|
50407
50452
|
}
|
|
50408
50453
|
}
|
|
50409
50454
|
//#endregion
|
|
50410
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50455
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event-handlers.js
|
|
50411
50456
|
/**
|
|
50412
50457
|
* Reverse lookup: event type string → handler prop names.
|
|
50413
50458
|
* Used by the dispatcher for O(1) handler lookup per node.
|
|
@@ -50461,7 +50506,7 @@ const EVENT_HANDLER_PROPS = new Set([
|
|
|
50461
50506
|
"onWheel"
|
|
50462
50507
|
]);
|
|
50463
50508
|
//#endregion
|
|
50464
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50509
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/dispatcher.js
|
|
50465
50510
|
function getHandler(node, eventType, capture) {
|
|
50466
50511
|
const handlers = node._eventHandlers;
|
|
50467
50512
|
if (!handlers) return void 0;
|
|
@@ -50629,7 +50674,7 @@ var Dispatcher = class {
|
|
|
50629
50674
|
}
|
|
50630
50675
|
};
|
|
50631
50676
|
//#endregion
|
|
50632
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50677
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/focus-event.js
|
|
50633
50678
|
/**
|
|
50634
50679
|
* Focus event for component focus changes.
|
|
50635
50680
|
*
|
|
@@ -50654,7 +50699,7 @@ var FocusEvent = class extends TerminalEvent {
|
|
|
50654
50699
|
}
|
|
50655
50700
|
};
|
|
50656
50701
|
//#endregion
|
|
50657
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50702
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
|
|
50658
50703
|
const MAX_FOCUS_STACK = 32;
|
|
50659
50704
|
/**
|
|
50660
50705
|
* DOM-like focus manager for the Ink terminal UI.
|
|
@@ -50810,7 +50855,7 @@ function getFocusManager(node) {
|
|
|
50810
50855
|
return getRootNode(node).focusManager;
|
|
50811
50856
|
}
|
|
50812
50857
|
//#endregion
|
|
50813
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50858
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
|
|
50814
50859
|
const applyPositionStyles = (node, style) => {
|
|
50815
50860
|
if ("position" in style) node.setPositionType(style.position === "absolute" ? LayoutPositionType.Absolute : LayoutPositionType.Relative);
|
|
50816
50861
|
if ("top" in style) applyPositionEdge(node, "top", style.top);
|
|
@@ -50945,7 +50990,7 @@ const styles = (node, style = {}, resolvedStyle) => {
|
|
|
50945
50990
|
applyGapStyles(node, style);
|
|
50946
50991
|
};
|
|
50947
50992
|
//#endregion
|
|
50948
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50993
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
|
|
50949
50994
|
if (process.env.NODE_ENV === "development") try {
|
|
50950
50995
|
import("./devtools-la_KkjCS.js");
|
|
50951
50996
|
} catch (error) {
|
|
@@ -51265,7 +51310,7 @@ const reconciler = (0, import_react_reconciler.default)({
|
|
|
51265
51310
|
});
|
|
51266
51311
|
dispatcher.discreteUpdates = reconciler.discreteUpdates.bind(reconciler);
|
|
51267
51312
|
//#endregion
|
|
51268
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51313
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/geometry.js
|
|
51269
51314
|
/**
|
|
51270
51315
|
* Compute the smallest rectangle containing both input rectangles.
|
|
51271
51316
|
* @param a - the first rectangle.
|
|
@@ -51297,7 +51342,7 @@ function clamp(value, min, max) {
|
|
|
51297
51342
|
return value;
|
|
51298
51343
|
}
|
|
51299
51344
|
//#endregion
|
|
51300
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51345
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
|
|
51301
51346
|
/**
|
|
51302
51347
|
* Log a warning when a value is present but not an integer.
|
|
51303
51348
|
* @param value - the value to check; undefined is skipped silently.
|
|
@@ -51309,7 +51354,7 @@ function ifNotInteger(value, name) {
|
|
|
51309
51354
|
logForDebugging(`${name} should be an integer, got ${value}`, { level: "warn" });
|
|
51310
51355
|
}
|
|
51311
51356
|
//#endregion
|
|
51312
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51357
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
|
|
51313
51358
|
/**
|
|
51314
51359
|
* Pool of character strings shared across all screens.
|
|
51315
51360
|
* With a shared pool, interned char IDs are valid across screens, so
|
|
@@ -52378,7 +52423,7 @@ function markNoSelectRegion(screen, x, y, width, height) {
|
|
|
52378
52423
|
}
|
|
52379
52424
|
}
|
|
52380
52425
|
//#endregion
|
|
52381
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
52426
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
|
|
52382
52427
|
/**
|
|
52383
52428
|
* Text selection state for fullscreen mode.
|
|
52384
52429
|
*
|
|
@@ -53344,7 +53389,7 @@ function applySelectionOverlay(screen, selection, stylePool) {
|
|
|
53344
53389
|
}
|
|
53345
53390
|
}
|
|
53346
53391
|
//#endregion
|
|
53347
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53392
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/dec.js
|
|
53348
53393
|
/**
|
|
53349
53394
|
* DEC (Digital Equipment Corporation) Private Mode Sequences
|
|
53350
53395
|
*
|
|
@@ -53410,7 +53455,7 @@ const ENABLE_MOUSE_TRACKING = decset(DEC.MOUSE_NORMAL) + decset(DEC.MOUSE_BUTTON
|
|
|
53410
53455
|
/** Disable all mouse tracking modes enabled by ENABLE_MOUSE_TRACKING. */
|
|
53411
53456
|
const DISABLE_MOUSE_TRACKING = decreset(DEC.MOUSE_SGR) + decreset(DEC.MOUSE_ANY) + decreset(DEC.MOUSE_BUTTON) + decreset(DEC.MOUSE_NORMAL);
|
|
53412
53457
|
//#endregion
|
|
53413
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53458
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
|
|
53414
53459
|
/**
|
|
53415
53460
|
* True when running inside a JetBrains IDE terminal (JediTerm). The IDE
|
|
53416
53461
|
* injects `TERMINAL_EMULATOR=JetBrains-JediTerm` into the pty environment of
|
|
@@ -53652,7 +53697,7 @@ function writeDiffToTerminal(terminal, diff, skipSyncMarkers = false) {
|
|
|
53652
53697
|
terminal.stdout.write(buffer);
|
|
53653
53698
|
}
|
|
53654
53699
|
//#endregion
|
|
53655
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53700
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-focus-state.js
|
|
53656
53701
|
let focusState = "unknown";
|
|
53657
53702
|
const resolvers = /* @__PURE__ */ new Set();
|
|
53658
53703
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -53696,7 +53741,7 @@ function subscribeTerminalFocus(cb) {
|
|
|
53696
53741
|
};
|
|
53697
53742
|
}
|
|
53698
53743
|
//#endregion
|
|
53699
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53744
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AppContext.js
|
|
53700
53745
|
/**
|
|
53701
53746
|
* `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
|
|
53702
53747
|
*/
|
|
@@ -53741,13 +53786,13 @@ var require_react_compiler_runtime_development = /* @__PURE__ */ __commonJSMin((
|
|
|
53741
53786
|
})();
|
|
53742
53787
|
}));
|
|
53743
53788
|
//#endregion
|
|
53744
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53789
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
|
|
53745
53790
|
var import_compiler_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
53746
53791
|
if (process.env.NODE_ENV === "production") module.exports = require_react_compiler_runtime_production();
|
|
53747
53792
|
else module.exports = require_react_compiler_runtime_development();
|
|
53748
53793
|
})))();
|
|
53749
53794
|
//#endregion
|
|
53750
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53795
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/geometry-trace.js
|
|
53751
53796
|
/**
|
|
53752
53797
|
* Geometry forensics — per-frame scroll-geometry trace (issues #421/#433).
|
|
53753
53798
|
*
|
|
@@ -53827,7 +53872,7 @@ function endGeometryFrame(durationMs) {
|
|
|
53827
53872
|
};
|
|
53828
53873
|
}
|
|
53829
53874
|
//#endregion
|
|
53830
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53875
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalFocusContext.js
|
|
53831
53876
|
const TerminalFocusContext = (0, import_react.createContext)({
|
|
53832
53877
|
isTerminalFocused: true,
|
|
53833
53878
|
terminalFocusState: "unknown"
|
|
@@ -53862,7 +53907,7 @@ function TerminalFocusProvider(t0) {
|
|
|
53862
53907
|
return t2;
|
|
53863
53908
|
}
|
|
53864
53909
|
//#endregion
|
|
53865
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53910
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-focus.js
|
|
53866
53911
|
/**
|
|
53867
53912
|
* Hook to check if the terminal has focus.
|
|
53868
53913
|
*
|
|
@@ -53877,7 +53922,7 @@ function useTerminalFocus() {
|
|
|
53877
53922
|
return isTerminalFocused;
|
|
53878
53923
|
}
|
|
53879
53924
|
//#endregion
|
|
53880
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53925
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ClockContext.js
|
|
53881
53926
|
function createClock(tickIntervalMs) {
|
|
53882
53927
|
const subscribers = /* @__PURE__ */ new Map();
|
|
53883
53928
|
let interval = null;
|
|
@@ -53974,7 +54019,7 @@ function _temp() {
|
|
|
53974
54019
|
return createClock(16);
|
|
53975
54020
|
}
|
|
53976
54021
|
//#endregion
|
|
53977
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54022
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/CursorDeclarationContext.js
|
|
53978
54023
|
/**
|
|
53979
54024
|
* React context that provides the cursor-declaration setter to descendants.
|
|
53980
54025
|
*/
|
|
@@ -54014,7 +54059,7 @@ var require_escape_string_regexp = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
54014
54059
|
};
|
|
54015
54060
|
}));
|
|
54016
54061
|
//#endregion
|
|
54017
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54062
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Box.js
|
|
54018
54063
|
var import_stack_utils = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54019
54064
|
const escapeStringRegexp = require_escape_string_regexp();
|
|
54020
54065
|
const cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
|
|
@@ -54382,7 +54427,7 @@ function Box(t0) {
|
|
|
54382
54427
|
return t4;
|
|
54383
54428
|
}
|
|
54384
54429
|
//#endregion
|
|
54385
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54430
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Text.js
|
|
54386
54431
|
const memoizedStylesForWrap = {
|
|
54387
54432
|
wrap: {
|
|
54388
54433
|
flexGrow: 0,
|
|
@@ -54534,7 +54579,7 @@ function Text(t0) {
|
|
|
54534
54579
|
return t16;
|
|
54535
54580
|
}
|
|
54536
54581
|
//#endregion
|
|
54537
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54582
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ErrorOverview.js
|
|
54538
54583
|
const cleanupPath = (path) => {
|
|
54539
54584
|
return path?.replace(`file://${process.cwd()}/`, "");
|
|
54540
54585
|
};
|
|
@@ -54639,10 +54684,10 @@ function ErrorOverview({ error }) {
|
|
|
54639
54684
|
});
|
|
54640
54685
|
}
|
|
54641
54686
|
//#endregion
|
|
54642
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54687
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalSizeContext.js
|
|
54643
54688
|
const TerminalSizeContext = (0, import_react.createContext)(null);
|
|
54644
54689
|
//#endregion
|
|
54645
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54690
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
|
|
54646
54691
|
/**
|
|
54647
54692
|
* React context providing a raw terminal write function. Null until a
|
|
54648
54693
|
* TerminalWriteProvider is mounted.
|
|
@@ -54653,7 +54698,7 @@ const TerminalWriteContext = (0, import_react.createContext)(null);
|
|
|
54653
54698
|
*/
|
|
54654
54699
|
const TerminalWriteProvider = TerminalWriteContext.Provider;
|
|
54655
54700
|
//#endregion
|
|
54656
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54701
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/App.js
|
|
54657
54702
|
const SUPPORTS_SUSPEND = process.platform !== "win32";
|
|
54658
54703
|
const STDIN_RESUME_GAP_MS = 5e3;
|
|
54659
54704
|
const MULTI_CLICK_TIMEOUT_MS = 500;
|
|
@@ -55179,7 +55224,7 @@ function handleMouseEvent(app, m) {
|
|
|
55179
55224
|
}
|
|
55180
55225
|
}
|
|
55181
55226
|
//#endregion
|
|
55182
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55227
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/keyboard-event.js
|
|
55183
55228
|
/**
|
|
55184
55229
|
* Keyboard event dispatched through the DOM tree via capture/bubble.
|
|
55185
55230
|
*
|
|
@@ -55239,7 +55284,7 @@ function keyFromParsed(parsed) {
|
|
|
55239
55284
|
return name || seq;
|
|
55240
55285
|
}
|
|
55241
55286
|
//#endregion
|
|
55242
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55287
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
|
|
55243
55288
|
/**
|
|
55244
55289
|
* Create an empty frame with a zero-size screen, the given viewport, and a
|
|
55245
55290
|
* visible cursor at the origin.
|
|
@@ -55265,7 +55310,7 @@ function emptyFrame(rows, columns, stylePool, charPool, hyperlinkPool) {
|
|
|
55265
55310
|
};
|
|
55266
55311
|
}
|
|
55267
55312
|
//#endregion
|
|
55268
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55313
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/click-event.js
|
|
55269
55314
|
/**
|
|
55270
55315
|
* Mouse click event. Fired on left-button release without drag, only when
|
|
55271
55316
|
* mouse tracking is enabled (i.e. inside <AlternateScreen>).
|
|
@@ -55296,7 +55341,7 @@ var ClickEvent = class extends PointerEvent {
|
|
|
55296
55341
|
}
|
|
55297
55342
|
};
|
|
55298
55343
|
//#endregion
|
|
55299
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55344
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/context-menu-event.js
|
|
55300
55345
|
/**
|
|
55301
55346
|
* Mouse context-menu event. Fired on right-button press (SGR button 2,
|
|
55302
55347
|
* low bits of the raw button byte), mirroring the DOM `contextmenu` event
|
|
@@ -55320,7 +55365,7 @@ var ContextMenuEvent = class extends PointerEvent {
|
|
|
55320
55365
|
}
|
|
55321
55366
|
};
|
|
55322
55367
|
//#endregion
|
|
55323
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55368
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/wheel-event.js
|
|
55324
55369
|
/**
|
|
55325
55370
|
* Mouse wheel event dispatched to the ScrollBox under the pointer.
|
|
55326
55371
|
*
|
|
@@ -55356,7 +55401,7 @@ function indentString(string, count = 1, options = {}) {
|
|
|
55356
55401
|
return string.replace(regex, indent.repeat(count));
|
|
55357
55402
|
}
|
|
55358
55403
|
//#endregion
|
|
55359
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55404
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/get-max-width.js
|
|
55360
55405
|
/**
|
|
55361
55406
|
* Returns the yoga node's content width (computed width minus padding and
|
|
55362
55407
|
* border).
|
|
@@ -55461,7 +55506,7 @@ var cli_boxes_default = {
|
|
|
55461
55506
|
}
|
|
55462
55507
|
};
|
|
55463
55508
|
//#endregion
|
|
55464
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55509
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-border.js
|
|
55465
55510
|
/** Built-in border styles beyond those provided by cli-boxes. */
|
|
55466
55511
|
const CUSTOM_BORDER_STYLES = { dashed: {
|
|
55467
55512
|
top: "╌",
|
|
@@ -55551,7 +55596,7 @@ const renderBorder = (x, y, node, output) => {
|
|
|
55551
55596
|
}
|
|
55552
55597
|
};
|
|
55553
55598
|
//#endregion
|
|
55554
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55599
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/widest-line.js
|
|
55555
55600
|
/**
|
|
55556
55601
|
* Get the display width of the widest line in a string.
|
|
55557
55602
|
* @param string - the text to measure, possibly containing newlines.
|
|
@@ -55570,7 +55615,7 @@ function widestLine(string) {
|
|
|
55570
55615
|
return maxWidth;
|
|
55571
55616
|
}
|
|
55572
55617
|
//#endregion
|
|
55573
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55618
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-node-to-output.js
|
|
55574
55619
|
function isXtermJsHost() {
|
|
55575
55620
|
return process.env.TERM_PROGRAM === "vscode" || isXtermJs();
|
|
55576
55621
|
}
|
|
@@ -56386,7 +56431,7 @@ function dropSubtreeCache(node) {
|
|
|
56386
56431
|
for (const child of node.childNodes) if (child.nodeName !== "#text") dropSubtreeCache(child);
|
|
56387
56432
|
}
|
|
56388
56433
|
//#endregion
|
|
56389
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56434
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hit-test.js
|
|
56390
56435
|
/**
|
|
56391
56436
|
* Find the deepest DOM element whose rendered rect contains (col, row).
|
|
56392
56437
|
*
|
|
@@ -56776,7 +56821,7 @@ function dispatchHover(root, col, row, hovered) {
|
|
|
56776
56821
|
}
|
|
56777
56822
|
}
|
|
56778
56823
|
//#endregion
|
|
56779
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56824
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/flush-tick.js
|
|
56780
56825
|
/**
|
|
56781
56826
|
* Monotonic terminal-flush counter for the ported Ink core.
|
|
56782
56827
|
*
|
|
@@ -56809,7 +56854,7 @@ function getTerminalFlushTick() {
|
|
|
56809
56854
|
return flushTick;
|
|
56810
56855
|
}
|
|
56811
56856
|
//#endregion
|
|
56812
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56857
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
|
|
56813
56858
|
/**
|
|
56814
56859
|
* Live Ink instances keyed by their output stream, so consecutive render()
|
|
56815
56860
|
* calls reuse the instance for a stream instead of creating a new one.
|
|
@@ -56818,7 +56863,7 @@ function getTerminalFlushTick() {
|
|
|
56818
56863
|
*/
|
|
56819
56864
|
const instances = /* @__PURE__ */ new Map();
|
|
56820
56865
|
//#endregion
|
|
56821
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56866
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/log-update.js
|
|
56822
56867
|
const CARRIAGE_RETURN = { type: "carriageReturn" };
|
|
56823
56868
|
const NEWLINE = {
|
|
56824
56869
|
type: "stdout",
|
|
@@ -57455,7 +57500,7 @@ var VirtualScreen = class {
|
|
|
57455
57500
|
}
|
|
57456
57501
|
};
|
|
57457
57502
|
//#endregion
|
|
57458
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57503
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
|
|
57459
57504
|
/**
|
|
57460
57505
|
* Optimize a diff by applying all optimization rules in a single pass.
|
|
57461
57506
|
* This reduces the number of patches that need to be written to the terminal.
|
|
@@ -57520,7 +57565,7 @@ function optimize(diff) {
|
|
|
57520
57565
|
return result;
|
|
57521
57566
|
}
|
|
57522
57567
|
//#endregion
|
|
57523
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57568
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
|
|
57524
57569
|
var import_bidi = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57525
57570
|
(function(global, factory) {
|
|
57526
57571
|
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());
|
|
@@ -58296,7 +58341,7 @@ function hasRTLCharacters(text) {
|
|
|
58296
58341
|
return /[\u0590-\u05FF\uFB1D-\uFB4F\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF\u0780-\u07BF\u0700-\u074F]/u.test(text);
|
|
58297
58342
|
}
|
|
58298
58343
|
//#endregion
|
|
58299
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
58344
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
|
|
58300
58345
|
/**
|
|
58301
58346
|
* charCache bounds. The entry-count cap alone was not enough: a streaming
|
|
58302
58347
|
* line produces a NEW cache key on every frame, and each entry's cost is
|
|
@@ -58966,7 +59011,7 @@ function writeLineToScreen(screen, line, x, y, screenWidth, stylePool, charCache
|
|
|
58966
59011
|
return offsetX;
|
|
58967
59012
|
}
|
|
58968
59013
|
//#endregion
|
|
58969
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59014
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-to-screen.js
|
|
58970
59015
|
const timing = {
|
|
58971
59016
|
reconcile: 0,
|
|
58972
59017
|
yoga: 0,
|
|
@@ -59060,7 +59105,7 @@ function applyPositionedHighlight(screen, stylePool, positions, rowOffset, curre
|
|
|
59060
59105
|
return true;
|
|
59061
59106
|
}
|
|
59062
59107
|
//#endregion
|
|
59063
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59108
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
|
|
59064
59109
|
/**
|
|
59065
59110
|
* Create the renderer function for a root DOM node. The returned renderer
|
|
59066
59111
|
* reuses an Output across frames so its character cache persists.
|
|
@@ -59135,7 +59180,7 @@ function createRenderer(node, stylePool) {
|
|
|
59135
59180
|
};
|
|
59136
59181
|
}
|
|
59137
59182
|
//#endregion
|
|
59138
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59183
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
|
|
59139
59184
|
/**
|
|
59140
59185
|
* Highlight all visible occurrences of `query` in the screen buffer by
|
|
59141
59186
|
* inverting cell styles (SGR 7). Post-render, same damage-tracking machinery
|
|
@@ -59197,7 +59242,7 @@ function applySearchHighlight(screen, query, stylePool) {
|
|
|
59197
59242
|
return applied;
|
|
59198
59243
|
}
|
|
59199
59244
|
//#endregion
|
|
59200
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59245
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
|
|
59201
59246
|
const ALT_SCREEN_ANCHOR_CURSOR = Object.freeze({
|
|
59202
59247
|
x: 0,
|
|
59203
59248
|
y: 0,
|
|
@@ -60750,7 +60795,7 @@ const CONSOLE_STDERR_METHODS = [
|
|
|
60750
60795
|
"trace"
|
|
60751
60796
|
];
|
|
60752
60797
|
//#endregion
|
|
60753
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60798
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
|
|
60754
60799
|
/**
|
|
60755
60800
|
* Mount a component and render the output.
|
|
60756
60801
|
* @param node - the React element to render.
|
|
@@ -60833,7 +60878,7 @@ const getInstance = (stdout, createInstance) => {
|
|
|
60833
60878
|
return instance;
|
|
60834
60879
|
};
|
|
60835
60880
|
//#endregion
|
|
60836
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60881
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedBox.js
|
|
60837
60882
|
/** Resolves a color value that may be a theme key to a raw Color. */
|
|
60838
60883
|
function resolveColor$1(color, theme) {
|
|
60839
60884
|
if (!color) return void 0;
|
|
@@ -60858,7 +60903,7 @@ function ThemedBox({ borderColor, borderTopColor, borderBottomColor, borderLeftC
|
|
|
60858
60903
|
});
|
|
60859
60904
|
}
|
|
60860
60905
|
//#endregion
|
|
60861
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60906
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedText.js
|
|
60862
60907
|
/**
|
|
60863
60908
|
* Colors uncolored ThemedText in the subtree. Precedence: explicit `color` >
|
|
60864
60909
|
* this > dimColor (in the Claude Code visual language, where message rows
|
|
@@ -60894,7 +60939,7 @@ function ThemedText({ color, backgroundColor, dimColor = false, bold = false, it
|
|
|
60894
60939
|
});
|
|
60895
60940
|
}
|
|
60896
60941
|
//#endregion
|
|
60897
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60942
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Spacer.js
|
|
60898
60943
|
/**
|
|
60899
60944
|
* A flexible space that expands along the major axis of its containing layout.
|
|
60900
60945
|
* It's useful as a shortcut for filling all the available spaces between elements.
|
|
@@ -60909,7 +60954,7 @@ function Spacer() {
|
|
|
60909
60954
|
return t0;
|
|
60910
60955
|
}
|
|
60911
60956
|
//#endregion
|
|
60912
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60957
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Newline.js
|
|
60913
60958
|
/**
|
|
60914
60959
|
* Adds one or more newline (\n) characters. Must be used within <Text> components.
|
|
60915
60960
|
*/
|
|
@@ -60932,7 +60977,7 @@ function Newline(t0) {
|
|
|
60932
60977
|
return t3;
|
|
60933
60978
|
}
|
|
60934
60979
|
//#endregion
|
|
60935
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
60980
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/NoSelect.js
|
|
60936
60981
|
/**
|
|
60937
60982
|
* Marks its contents as non-selectable in fullscreen text selection.
|
|
60938
60983
|
* Cells inside this box are skipped by both the selection highlight and
|
|
@@ -60983,7 +61028,7 @@ function NoSelect(t0) {
|
|
|
60983
61028
|
return t2;
|
|
60984
61029
|
}
|
|
60985
61030
|
//#endregion
|
|
60986
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61031
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AlternateScreen.js
|
|
60987
61032
|
/**
|
|
60988
61033
|
* Run children in the terminal's alternate screen buffer, constrained to
|
|
60989
61034
|
* the viewport height. While mounted:
|
|
@@ -61058,7 +61103,7 @@ function AlternateScreen(t0) {
|
|
|
61058
61103
|
return t5;
|
|
61059
61104
|
}
|
|
61060
61105
|
//#endregion
|
|
61061
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61106
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ScrollBox.js
|
|
61062
61107
|
/**
|
|
61063
61108
|
* A Box with `overflow: scroll` and an imperative scroll API.
|
|
61064
61109
|
*
|
|
@@ -61236,7 +61281,7 @@ function ScrollBox({ children, ref, stickyScroll, ...style }) {
|
|
|
61236
61281
|
});
|
|
61237
61282
|
}
|
|
61238
61283
|
//#endregion
|
|
61239
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61284
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-input.js
|
|
61240
61285
|
/**
|
|
61241
61286
|
* Keep an event listener stable while always dispatching to the latest render's
|
|
61242
61287
|
* callback. Keeping this hook local is important for packaged installs: a
|
|
@@ -61302,7 +61347,7 @@ const useInput = (inputHandler, options = {}) => {
|
|
|
61302
61347
|
}, [internal_eventEmitter, handleData]);
|
|
61303
61348
|
};
|
|
61304
61349
|
//#endregion
|
|
61305
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61350
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-selection.js
|
|
61306
61351
|
/**
|
|
61307
61352
|
* Access to text selection operations on the Ink instance (fullscreen only).
|
|
61308
61353
|
* Returns no-op functions when fullscreen mode is disabled.
|
|
@@ -61342,7 +61387,7 @@ function useSelection() {
|
|
|
61342
61387
|
}, [ink]);
|
|
61343
61388
|
}
|
|
61344
61389
|
//#endregion
|
|
61345
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61390
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-copy-on-select.js
|
|
61346
61391
|
/**
|
|
61347
61392
|
* Copy-on-select: when a drag finishes (or a double/triple click, or a
|
|
61348
61393
|
* shift+arrow extension, lands a selection), copy the selected text to the
|
|
@@ -61382,14 +61427,14 @@ function useCopyOnSelect(onCopied) {
|
|
|
61382
61427
|
]);
|
|
61383
61428
|
}
|
|
61384
61429
|
//#endregion
|
|
61385
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61430
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-app.js
|
|
61386
61431
|
/**
|
|
61387
61432
|
* React hook exposing the manual app-exit function from `AppContext`.
|
|
61388
61433
|
* @returns the `AppContext` value, whose `exit` function unmounts the app.
|
|
61389
61434
|
*/
|
|
61390
61435
|
const useApp = () => (0, import_react.useContext)(AppContext);
|
|
61391
61436
|
//#endregion
|
|
61392
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61437
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-viewport.js
|
|
61393
61438
|
/**
|
|
61394
61439
|
* Hook to detect if a component is within the terminal viewport.
|
|
61395
61440
|
*
|
|
@@ -61443,7 +61488,7 @@ function useTerminalViewport() {
|
|
|
61443
61488
|
return [setElement, entryRef.current];
|
|
61444
61489
|
}
|
|
61445
61490
|
//#endregion
|
|
61446
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61491
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-animation-frame.js
|
|
61447
61492
|
/**
|
|
61448
61493
|
* Hook for synchronized animations that pause when offscreen.
|
|
61449
61494
|
*
|
|
@@ -61492,7 +61537,7 @@ function useAnimationFrame(intervalMs = 16) {
|
|
|
61492
61537
|
return [viewportRef, time];
|
|
61493
61538
|
}
|
|
61494
61539
|
//#endregion
|
|
61495
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61540
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-size.js
|
|
61496
61541
|
/** Terminal dimensions from the Ink app shell (from Claude Code).
|
|
61497
61542
|
* @returns the current terminal dimensions.
|
|
61498
61543
|
*/
|
|
@@ -61502,7 +61547,7 @@ function useTerminalSize() {
|
|
|
61502
61547
|
return size;
|
|
61503
61548
|
}
|
|
61504
61549
|
//#endregion
|
|
61505
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61550
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
|
|
61506
61551
|
const BLINK_INTERVAL_MS = 600;
|
|
61507
61552
|
/**
|
|
61508
61553
|
* Hook for synchronized blinking animations that pause when offscreen
|
|
@@ -61519,7 +61564,7 @@ function useBlink(enabled, intervalMs = BLINK_INTERVAL_MS) {
|
|
|
61519
61564
|
return [ref, Math.floor(time / intervalMs) % 2 === 0];
|
|
61520
61565
|
}
|
|
61521
61566
|
//#endregion
|
|
61522
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61567
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/supports-hyperlinks.js
|
|
61523
61568
|
var import_supports_hyperlinks = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
61524
61569
|
const supportsColor = require_supports_color();
|
|
61525
61570
|
const hasFlag = require_has_flag();
|
|
@@ -61616,7 +61661,7 @@ function supportsHyperlinks(options) {
|
|
|
61616
61661
|
return false;
|
|
61617
61662
|
}
|
|
61618
61663
|
//#endregion
|
|
61619
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61664
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Link.js
|
|
61620
61665
|
function Link(t0) {
|
|
61621
61666
|
const $ = (0, import_compiler_runtime.c)(5);
|
|
61622
61667
|
const { children, url, fallback } = t0;
|
|
@@ -61644,7 +61689,7 @@ function Link(t0) {
|
|
|
61644
61689
|
return t2;
|
|
61645
61690
|
}
|
|
61646
61691
|
//#endregion
|
|
61647
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61692
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/esc.js
|
|
61648
61693
|
/**
|
|
61649
61694
|
* ESC Sequence Parser
|
|
61650
61695
|
*
|
|
@@ -61700,7 +61745,7 @@ function parseEsc(chars) {
|
|
|
61700
61745
|
};
|
|
61701
61746
|
}
|
|
61702
61747
|
//#endregion
|
|
61703
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61748
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/types.js
|
|
61704
61749
|
/**
|
|
61705
61750
|
* ANSI Parser - Semantic Types
|
|
61706
61751
|
*
|
|
@@ -61728,7 +61773,7 @@ function defaultStyle() {
|
|
|
61728
61773
|
};
|
|
61729
61774
|
}
|
|
61730
61775
|
//#endregion
|
|
61731
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61776
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/sgr.js
|
|
61732
61777
|
/**
|
|
61733
61778
|
* SGR (Select Graphic Rendition) Parser
|
|
61734
61779
|
*
|
|
@@ -62036,7 +62081,7 @@ function applySGR(paramStr, style) {
|
|
|
62036
62081
|
return s;
|
|
62037
62082
|
}
|
|
62038
62083
|
//#endregion
|
|
62039
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62084
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/parser.js
|
|
62040
62085
|
/**
|
|
62041
62086
|
* ANSI Parser - Semantic Action Generator
|
|
62042
62087
|
*
|
|
@@ -62413,7 +62458,7 @@ var Parser = class {
|
|
|
62413
62458
|
}
|
|
62414
62459
|
};
|
|
62415
62460
|
//#endregion
|
|
62416
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62461
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
|
|
62417
62462
|
/**
|
|
62418
62463
|
* Component that parses ANSI escape codes and renders them using Text components.
|
|
62419
62464
|
*
|
|
@@ -62664,7 +62709,7 @@ function StyledText(t0) {
|
|
|
62664
62709
|
return t1;
|
|
62665
62710
|
}
|
|
62666
62711
|
//#endregion
|
|
62667
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62712
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
|
|
62668
62713
|
var ui_exports = /* @__PURE__ */ __exportAll({
|
|
62669
62714
|
AlternateScreen: () => AlternateScreen,
|
|
62670
62715
|
Ansi: () => Ansi,
|
|
@@ -62688,7 +62733,7 @@ var ui_exports = /* @__PURE__ */ __exportAll({
|
|
|
62688
62733
|
useTheme: () => useTheme
|
|
62689
62734
|
});
|
|
62690
62735
|
//#endregion
|
|
62691
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62736
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
|
|
62692
62737
|
/** 嵌套安全的 inset(若未来出现嵌套 PageMargin 会累加)。 */
|
|
62693
62738
|
const PageInsetContext = import_react.createContext({
|
|
62694
62739
|
x: 0,
|
|
@@ -62742,7 +62787,7 @@ function PageMargin({ children }) {
|
|
|
62742
62787
|
});
|
|
62743
62788
|
}
|
|
62744
62789
|
//#endregion
|
|
62745
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62790
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
|
|
62746
62791
|
/**
|
|
62747
62792
|
* UI glyph constants used across the TUI: prompt markers, status badges,
|
|
62748
62793
|
* direction arrows, media controls, reasoning-effort indicators, and
|
|
@@ -62769,7 +62814,7 @@ const THINKING_SPINNER_FRAMES = [
|
|
|
62769
62814
|
"⠏"
|
|
62770
62815
|
];
|
|
62771
62816
|
//#endregion
|
|
62772
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62817
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerWizard.js
|
|
62773
62818
|
/**
|
|
62774
62819
|
* `/provider` wizard — interactively adds, edits, or deletes an LLM
|
|
62775
62820
|
* provider route at runtime.
|
|
@@ -63495,7 +63540,7 @@ function buildProfile(input) {
|
|
|
63495
63540
|
return profile;
|
|
63496
63541
|
}
|
|
63497
63542
|
//#endregion
|
|
63498
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63543
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/modelConfigWizard.js
|
|
63499
63544
|
/** `/model-config`: platform catalogs and shared provider configuration. */
|
|
63500
63545
|
const CUSTOM_MODEL_PROTOCOLS = [
|
|
63501
63546
|
"openai-completions",
|
|
@@ -64377,7 +64422,7 @@ function parseCapacity(value) {
|
|
|
64377
64422
|
return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : void 0;
|
|
64378
64423
|
}
|
|
64379
64424
|
//#endregion
|
|
64380
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64425
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-declared-cursor.js
|
|
64381
64426
|
/**
|
|
64382
64427
|
* Declares where the terminal cursor should be parked after each frame.
|
|
64383
64428
|
*
|
|
@@ -64426,7 +64471,7 @@ function useDeclaredCursor(options) {
|
|
|
64426
64471
|
return setNode;
|
|
64427
64472
|
}
|
|
64428
64473
|
//#endregion
|
|
64429
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64474
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-element.js
|
|
64430
64475
|
/**
|
|
64431
64476
|
* Measure the rendered dimensions of a Box element.
|
|
64432
64477
|
* @param node - the DOM element to measure.
|
|
@@ -64437,7 +64482,7 @@ const measureElement = (node) => ({
|
|
|
64437
64482
|
height: node.yogaNode?.getComputedHeight() ?? 0
|
|
64438
64483
|
});
|
|
64439
64484
|
//#endregion
|
|
64440
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64485
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Divider.js
|
|
64441
64486
|
const MAX_APPLIED_MEASUREMENTS = 8;
|
|
64442
64487
|
/**
|
|
64443
64488
|
* A horizontal divider line, optionally with a title in the middle
|
|
@@ -66165,7 +66210,7 @@ f.parseInline;
|
|
|
66165
66210
|
O.parse;
|
|
66166
66211
|
T.lex;
|
|
66167
66212
|
//#endregion
|
|
66168
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66213
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
|
|
66169
66214
|
/** highlight.js token classes -> theme syntax tokens. `default` catches
|
|
66170
66215
|
* every unmapped class so cli-highlight's own yellow never leaks through
|
|
66171
66216
|
* (issue #250, P2-6). */
|
|
@@ -66231,7 +66276,7 @@ function buildSyntaxTheme(theme) {
|
|
|
66231
66276
|
return out;
|
|
66232
66277
|
}
|
|
66233
66278
|
//#endregion
|
|
66234
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66279
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
|
|
66235
66280
|
/** OSC 8 hyperlink start sequence: `ESC ] 8 ; ;`, followed by the URL. */
|
|
66236
66281
|
const OSC8_START = "\x1B]8;;";
|
|
66237
66282
|
/** Schemes a rendered hyperlink may point at. Anything else degrades to
|
|
@@ -66273,7 +66318,7 @@ function createHyperlink(url, content, options) {
|
|
|
66273
66318
|
return `${OSC8_START}${safeUrl}${(options?.style ?? ((text) => chalk.blue(text)))(displayText)}${OSC8_START}`;
|
|
66274
66319
|
}
|
|
66275
66320
|
//#endregion
|
|
66276
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66321
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
|
|
66277
66322
|
/**
|
|
66278
66323
|
* Clickable file targets: turning path-like text in AI output into
|
|
66279
66324
|
* clickable targets, and resolving those targets back to absolute paths at
|
|
@@ -66415,7 +66460,7 @@ function linkifyFilePaths(text, wrap) {
|
|
|
66415
66460
|
});
|
|
66416
66461
|
}
|
|
66417
66462
|
//#endregion
|
|
66418
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66463
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
|
|
66419
66464
|
/**
|
|
66420
66465
|
* Markdown-to-ANSI renderer over marked's token stream.
|
|
66421
66466
|
*
|
|
@@ -66730,7 +66775,7 @@ function padAligned(content, displayWidth, targetWidth, align) {
|
|
|
66730
66775
|
return content + " ".repeat(extra);
|
|
66731
66776
|
}
|
|
66732
66777
|
//#endregion
|
|
66733
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66778
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
|
|
66734
66779
|
let cliHighlightPromise;
|
|
66735
66780
|
async function loadCliHighlight() {
|
|
66736
66781
|
try {
|
|
@@ -66753,7 +66798,7 @@ function getCliHighlightPromise() {
|
|
|
66753
66798
|
return cliHighlightPromise;
|
|
66754
66799
|
}
|
|
66755
66800
|
//#endregion
|
|
66756
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66801
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
|
|
66757
66802
|
/** Accounts for parent indentation and terminal resize races (from Claude Code). */
|
|
66758
66803
|
const SAFETY_MARGIN = 4;
|
|
66759
66804
|
/** Minimum column width to prevent degenerate layouts */
|
|
@@ -66940,7 +66985,7 @@ function MarkdownTable({ token, highlight, forceWidth }) {
|
|
|
66940
66985
|
return (0, import_jsx_runtime.jsx)(Text, { children: tableLines.join("\n") });
|
|
66941
66986
|
}
|
|
66942
66987
|
//#endregion
|
|
66943
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66988
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
|
|
66944
66989
|
const TOKEN_CACHE_CAPACITY = 200;
|
|
66945
66990
|
const TOKEN_CACHE_CHAR_BUDGET = 2e5;
|
|
66946
66991
|
const TOKEN_CACHE_MAX_SOURCE_LENGTH = 2e4;
|
|
@@ -67049,7 +67094,7 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true }) {
|
|
|
67049
67094
|
*/
|
|
67050
67095
|
const Markdown = import_react.memo(MarkdownImpl, (prev, next) => prev.children === next.children && prev.dimColor === next.dimColor && prev.cacheTokens === next.cacheTokens);
|
|
67051
67096
|
//#endregion
|
|
67052
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67097
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/PlanReviewPanel.js
|
|
67053
67098
|
/**
|
|
67054
67099
|
* The plan-review panel — Claude Code style exit-plan-mode decision card
|
|
67055
67100
|
* for the DSH user-interaction seam. plan-mode's `exit_plan_mode` tool asks
|
|
@@ -67371,7 +67416,7 @@ function PlanReviewPanel({ question, onAnswer, onCancel }) {
|
|
|
67371
67416
|
});
|
|
67372
67417
|
}
|
|
67373
67418
|
//#endregion
|
|
67374
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67419
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
|
|
67375
67420
|
/**
|
|
67376
67421
|
* 焦点居中的列表窗口:长列表只渲染焦点附近的一段,保证焦点行始终可见。
|
|
67377
67422
|
* 瞬态面板走 OverlayAbove 零高度浮层后,超高部分会被 overflow 裁掉且焦点
|
|
@@ -67423,7 +67468,7 @@ function listWindow(heights, focusIndex, maxRows, gap = 0) {
|
|
|
67423
67468
|
}
|
|
67424
67469
|
}
|
|
67425
67470
|
//#endregion
|
|
67426
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67471
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/AskUserQuestionPanel.js
|
|
67427
67472
|
/**
|
|
67428
67473
|
* The questionnaire panel — Claude Code style ask-user-question UI for the
|
|
67429
67474
|
* DSH user-interaction seam. One question per panel (progress header, header
|
|
@@ -68017,7 +68062,7 @@ function AskUserQuestionPanel({ question, position, total, answered, initialDraf
|
|
|
68017
68062
|
});
|
|
68018
68063
|
}
|
|
68019
68064
|
//#endregion
|
|
68020
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68065
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/approvals/ApprovalPanel.js
|
|
68021
68066
|
/**
|
|
68022
68067
|
* The approval panel — Claude Code style permission prompt for the DSH
|
|
68023
68068
|
* approval seam (`ctx.approval`). One ask per panel: a permission-colored
|
|
@@ -68142,7 +68187,7 @@ function ApprovalPanel({ approval, background = false, onDecide }) {
|
|
|
68142
68187
|
});
|
|
68143
68188
|
}
|
|
68144
68189
|
//#endregion
|
|
68145
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68190
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Pane.js
|
|
68146
68191
|
/**
|
|
68147
68192
|
* A pane — a region below the prompt bounded by a colored top line with a
|
|
68148
68193
|
* one-row gap above and horizontal padding, mirroring Claude Code's
|
|
@@ -68164,7 +68209,7 @@ function Pane({ children, color }) {
|
|
|
68164
68209
|
});
|
|
68165
68210
|
}
|
|
68166
68211
|
//#endregion
|
|
68167
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68212
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ListItem.js
|
|
68168
68213
|
/**
|
|
68169
68214
|
* A list item for selection UIs, mirroring Claude Code's
|
|
68170
68215
|
* design-system/ListItem.tsx: `❯` pointer for the focused row, `✓`
|
|
@@ -68261,7 +68306,7 @@ function flattenDeep(node) {
|
|
|
68261
68306
|
return node;
|
|
68262
68307
|
}
|
|
68263
68308
|
//#endregion
|
|
68264
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68309
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/HintLine.js
|
|
68265
68310
|
/**
|
|
68266
68311
|
* Localized shortcut-hint line: renders a `t('hint-*')` string, with the
|
|
68267
68312
|
* `**primary shortcut**` segment (the main action's key, wrapped in `**` in
|
|
@@ -68278,7 +68323,7 @@ function HintLine({ text }) {
|
|
|
68278
68323
|
}, index) : part) });
|
|
68279
68324
|
}
|
|
68280
68325
|
//#endregion
|
|
68281
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68326
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
|
|
68282
68327
|
/**
|
|
68283
68328
|
* The managed plugin dialog (`ctx.tuiDialogs`) — one panel rendering the
|
|
68284
68329
|
* store's current snapshot in the chat chrome (the slot approval/question
|
|
@@ -68538,7 +68583,7 @@ function InputDialog({ dialog, onDecide, onCancel }) {
|
|
|
68538
68583
|
});
|
|
68539
68584
|
}
|
|
68540
68585
|
//#endregion
|
|
68541
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68586
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-search-highlight.js
|
|
68542
68587
|
/**
|
|
68543
68588
|
* Set the search highlight query on the Ink instance. Non-empty → all
|
|
68544
68589
|
* visible occurrences are inverted on the next frame (SGR 7, screen-buffer
|
|
@@ -68570,7 +68615,7 @@ function useSearchHighlight() {
|
|
|
68570
68615
|
}, [ink]);
|
|
68571
68616
|
}
|
|
68572
68617
|
//#endregion
|
|
68573
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68618
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-title.js
|
|
68574
68619
|
/**
|
|
68575
68620
|
* Declaratively set the terminal tab/window title.
|
|
68576
68621
|
*
|
|
@@ -68593,7 +68638,7 @@ function useTerminalTitle(title) {
|
|
|
68593
68638
|
}, [title, writeRaw]);
|
|
68594
68639
|
}
|
|
68595
68640
|
//#endregion
|
|
68596
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68641
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
|
|
68597
68642
|
/**
|
|
68598
68643
|
* Session browser formatting.
|
|
68599
68644
|
*
|
|
@@ -68842,7 +68887,7 @@ function projectName(cwd) {
|
|
|
68842
68887
|
return normalized.split("/").filter(Boolean).at(-1) ?? normalized;
|
|
68843
68888
|
}
|
|
68844
68889
|
//#endregion
|
|
68845
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68890
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
|
|
68846
68891
|
/**
|
|
68847
68892
|
* Tooltip hover system — the terminal equivalent of the HTML `title`
|
|
68848
68893
|
* attribute. Attach {@link useTooltip} props to any Box whose visible text
|
|
@@ -69050,7 +69095,7 @@ function wrapTooltipContent(text, width) {
|
|
|
69050
69095
|
return rows;
|
|
69051
69096
|
}
|
|
69052
69097
|
//#endregion
|
|
69053
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69098
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/UserPromptMessage.js
|
|
69054
69099
|
/** User prompt row in the legacy CLI treatment: a full-width gray strip. */
|
|
69055
69100
|
function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
|
|
69056
69101
|
const { columns } = useTerminalSize();
|
|
@@ -69079,7 +69124,7 @@ function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
|
|
|
69079
69124
|
});
|
|
69080
69125
|
}
|
|
69081
69126
|
//#endregion
|
|
69082
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69127
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantTextMessage.js
|
|
69083
69128
|
/**
|
|
69084
69129
|
* Assistant text message: bullet + markdown body (mirroring Claude Code's default branch).
|
|
69085
69130
|
*
|
|
@@ -69112,7 +69157,7 @@ function AssistantTextMessage({ text, addMargin, isSelected = false, isExpanded
|
|
|
69112
69157
|
});
|
|
69113
69158
|
}
|
|
69114
69159
|
//#endregion
|
|
69115
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69160
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
|
|
69116
69161
|
/**
|
|
69117
69162
|
* Renders markdown during streaming by splitting at the last top-level block
|
|
69118
69163
|
* boundary: everything before is stable (memoized, never re-parsed), only the
|
|
@@ -69302,7 +69347,7 @@ function StreamingMarkdown({ children, dimColor = false }) {
|
|
|
69302
69347
|
});
|
|
69303
69348
|
}
|
|
69304
69349
|
//#endregion
|
|
69305
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69350
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/spinnerUtils.js
|
|
69306
69351
|
/**
|
|
69307
69352
|
* Spinner 动画的通用工具集:平台相关的帧字符选择、RGB 颜色插值、
|
|
69308
69353
|
* HSL 色相转 RGB,以及 `rgb(...)` 颜色字符串的解析与记忆化。
|
|
@@ -69382,7 +69427,7 @@ function parseRGB(colorStr) {
|
|
|
69382
69427
|
return parsed;
|
|
69383
69428
|
}
|
|
69384
69429
|
//#endregion
|
|
69385
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69430
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
|
|
69386
69431
|
/** Header blue-white ladder: brand → ice → pale → soft ice flash.
|
|
69387
69432
|
* FLASH stays visibly blue (never pure white) — the highlight reads as a
|
|
69388
69433
|
* mist-brightened crest, not a white strobe. */
|
|
@@ -69398,7 +69443,7 @@ const ICE = {
|
|
|
69398
69443
|
b: 255
|
|
69399
69444
|
};
|
|
69400
69445
|
//#endregion
|
|
69401
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69446
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantThinkingMessage.js
|
|
69402
69447
|
/** Preview body rows — a FIXED row count (kimicode-style constant-height
|
|
69403
69448
|
* ticker). Ink's truncate slices the whole string across newlines as one
|
|
69404
69449
|
* logical line, so a single joined Text collapses to 1-2 rows whenever
|
|
@@ -69511,7 +69556,7 @@ function AssistantThinkingMessage({ thinking, textFull, addMargin, verbose, stre
|
|
|
69511
69556
|
});
|
|
69512
69557
|
}
|
|
69513
69558
|
//#endregion
|
|
69514
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69559
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
|
|
69515
69560
|
const CATEGORY_BY_TOOL = {
|
|
69516
69561
|
bash: "exec",
|
|
69517
69562
|
powershell: "exec",
|
|
@@ -70092,7 +70137,7 @@ var ArrayDiff = class extends Diff {
|
|
|
70092
70137
|
};
|
|
70093
70138
|
new ArrayDiff();
|
|
70094
70139
|
//#endregion
|
|
70095
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70140
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
|
|
70096
70141
|
const ANSI16 = {
|
|
70097
70142
|
30: "rgb(0,0,0)",
|
|
70098
70143
|
31: "rgb(128,0,0)",
|
|
@@ -70177,7 +70222,7 @@ function syntaxThemeSignature(theme) {
|
|
|
70177
70222
|
return Object.values(SYNTAX_CLASS_TO_TOKEN).map((key) => palette[key] ?? "").join("|");
|
|
70178
70223
|
}
|
|
70179
70224
|
//#endregion
|
|
70180
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70225
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
|
|
70181
70226
|
/**
|
|
70182
70227
|
* Smooth streaming reveal — decouples "text the provider has delivered" from
|
|
70183
70228
|
* "text the screen is showing" (the oh-my-pi `display.smoothStreaming` idea,
|
|
@@ -70423,7 +70468,7 @@ function revealLinesOf(key, total, options) {
|
|
|
70423
70468
|
return Math.min(existing.revealed, total);
|
|
70424
70469
|
}
|
|
70425
70470
|
//#endregion
|
|
70426
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70471
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
|
|
70427
70472
|
/** Replace tabs so width math and alignment hold (pi convention). */
|
|
70428
70473
|
const expandTabs = (text) => text.replaceAll(" ", " ");
|
|
70429
70474
|
/**
|
|
@@ -70732,7 +70777,7 @@ function SplitDiffView({ diffs, width, maxRows, verbose, toolBackground = "none"
|
|
|
70732
70777
|
});
|
|
70733
70778
|
}
|
|
70734
70779
|
//#endregion
|
|
70735
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70780
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
|
|
70736
70781
|
/** Async nested Text renderer. Lexes the complete payload before splitting. */
|
|
70737
70782
|
function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, dimColor }) {
|
|
70738
70783
|
const [highlighter, setHighlighter] = import_react.useState(null);
|
|
@@ -70776,7 +70821,7 @@ function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, d
|
|
|
70776
70821
|
}, index)) });
|
|
70777
70822
|
}
|
|
70778
70823
|
//#endregion
|
|
70779
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70824
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/format.js
|
|
70780
70825
|
/**
|
|
70781
70826
|
* Trajectory formatting — durations, clocks, badges and heat.
|
|
70782
70827
|
*
|
|
@@ -70978,7 +71023,7 @@ function ledgerLayout(columns) {
|
|
|
70978
71023
|
};
|
|
70979
71024
|
}
|
|
70980
71025
|
//#endregion
|
|
70981
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71026
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
|
|
70982
71027
|
/**
|
|
70983
71028
|
* Reveal-frame wakeup as a React hook — bumps once per advancing ~30fps
|
|
70984
71029
|
* scheduler tick so consumers re-run their render-phase cursor reads
|
|
@@ -71008,7 +71053,7 @@ function useRevealVersion(enabled = true) {
|
|
|
71008
71053
|
return version;
|
|
71009
71054
|
}
|
|
71010
71055
|
//#endregion
|
|
71011
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71056
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantToolUseMessage.js
|
|
71012
71057
|
/** Tool display names: DSH emits lowercase tool ids (`bash`); Claude Code
|
|
71013
71058
|
* shows capitalized names (`Bash`). Map the common ones, fall back to the
|
|
71014
71059
|
* id with its first letter uppercased. */
|
|
@@ -71544,7 +71589,7 @@ function AssistantToolUseMessage({ tool, addMargin, verbose, isSelected = false,
|
|
|
71544
71589
|
});
|
|
71545
71590
|
}
|
|
71546
71591
|
//#endregion
|
|
71547
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71592
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/SubagentMessage.js
|
|
71548
71593
|
/** The waterfall window is a Kimi Code style constant-height region. */
|
|
71549
71594
|
const WATERFALL_ROWS = 3;
|
|
71550
71595
|
/** Card left padding + the `│ ` gutter prefix. */
|
|
@@ -71752,7 +71797,7 @@ function SubagentMessage({ subagent, addMargin, activityFrames, onClick }) {
|
|
|
71752
71797
|
});
|
|
71753
71798
|
}
|
|
71754
71799
|
//#endregion
|
|
71755
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71800
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/JobCard.js
|
|
71756
71801
|
/** Card left padding + the `│ ` gutter prefix. */
|
|
71757
71802
|
const WATERFALL_GUTTER = 4;
|
|
71758
71803
|
/** Static status marker — deliberately NOT the animated activity-indicator
|
|
@@ -71905,7 +71950,7 @@ function JobCard({ job, addMargin, onClick }) {
|
|
|
71905
71950
|
});
|
|
71906
71951
|
}
|
|
71907
71952
|
//#endregion
|
|
71908
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71953
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
|
|
71909
71954
|
/**
|
|
71910
71955
|
* The dim "interrupted" row shown when the user stops a turn, mirroring
|
|
71911
71956
|
* Claude Code's `InterruptedByUser.tsx`.
|
|
@@ -71920,7 +71965,7 @@ function InterruptedByUser() {
|
|
|
71920
71965
|
})] });
|
|
71921
71966
|
}
|
|
71922
71967
|
//#endregion
|
|
71923
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71968
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
|
|
71924
71969
|
/**
|
|
71925
71970
|
* 当月 AI 代码生成占比统计(移植自 chatcode-cli 的同名服务)。
|
|
71926
71971
|
*
|
|
@@ -72088,7 +72133,7 @@ function computeAiRatioPercent(records) {
|
|
|
72088
72133
|
return clampPercent(aiAdoptedTotal / addedTotal * 100);
|
|
72089
72134
|
}
|
|
72090
72135
|
//#endregion
|
|
72091
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72136
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
|
|
72092
72137
|
/**
|
|
72093
72138
|
* 「AI代码生成占比」数据源 Hook(移植自 chatcode-cli 的同名 Hook)。
|
|
72094
72139
|
*
|
|
@@ -72152,7 +72197,7 @@ function useAiRatio(enabled = true) {
|
|
|
72152
72197
|
};
|
|
72153
72198
|
}
|
|
72154
72199
|
//#endregion
|
|
72155
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72200
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
|
|
72156
72201
|
/**
|
|
72157
72202
|
* 「通知」数据源 Hook(移植自 chatcode-cli 的 LogoV2/FooterInfo 通知行)。
|
|
72158
72203
|
*
|
|
@@ -72189,7 +72234,7 @@ function useNotification() {
|
|
|
72189
72234
|
return { message };
|
|
72190
72235
|
}
|
|
72191
72236
|
//#endregion
|
|
72192
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72237
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
|
|
72193
72238
|
/**
|
|
72194
72239
|
* Slice a string to at most `maxWidth` terminal cells, walking by code
|
|
72195
72240
|
* point so CJK wide characters never split mid-glyph. Assumes no ANSI in
|
|
@@ -72207,7 +72252,7 @@ function truncateToWidth(text, maxWidth) {
|
|
|
72207
72252
|
return out;
|
|
72208
72253
|
}
|
|
72209
72254
|
//#endregion
|
|
72210
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72255
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
|
|
72211
72256
|
/** Main ChatCode CLI package version shown in the startup information panel. */
|
|
72212
72257
|
const VERSION = PRODUCT_VERSION;
|
|
72213
72258
|
const PRODUCT_LABEL = "chatcode-cli";
|
|
@@ -72478,7 +72523,7 @@ function LogoV2({ model, effort, cwd, whale = true, aiRatio, drift }) {
|
|
|
72478
72523
|
});
|
|
72479
72524
|
}
|
|
72480
72525
|
//#endregion
|
|
72481
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72526
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/MessageMetadata.js
|
|
72482
72527
|
/**
|
|
72483
72528
|
* Transcript-mode metadata row: `HH:MM · model`, right-aligned above the
|
|
72484
72529
|
* assistant text, mirroring Claude Code's MessageTimestamp + MessageModel,
|
|
@@ -72500,7 +72545,7 @@ function MessageMetadata({ timestamp, model }) {
|
|
|
72500
72545
|
});
|
|
72501
72546
|
}
|
|
72502
72547
|
//#endregion
|
|
72503
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72548
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
|
|
72504
72549
|
/**
|
|
72505
72550
|
* Strip the `⏵` self-narration line from assistant text. The
|
|
72506
72551
|
* dsh-working-activity narrate contract puts exactly one `⏵` line at the
|
|
@@ -72616,7 +72661,7 @@ function ellipsize(line, maxWidth) {
|
|
|
72616
72661
|
return `${out}…`;
|
|
72617
72662
|
}
|
|
72618
72663
|
//#endregion
|
|
72619
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72664
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
|
|
72620
72665
|
/**
|
|
72621
72666
|
* Transcript rows rendered in the Claude Code visual language: user prompts
|
|
72622
72667
|
* on a grey bubble with a `❯` pointer, assistant text with a `●` bullet and
|
|
@@ -73429,7 +73474,7 @@ function LogoHeader({ model, effort, cwd, whale = true, skipIntro = false }) {
|
|
|
73429
73474
|
});
|
|
73430
73475
|
}
|
|
73431
73476
|
//#endregion
|
|
73432
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73477
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
|
|
73433
73478
|
/** ▴ / ▾ (U+25B4 / U+25BE — the small triangles; CP437-safe on ConHost too). */
|
|
73434
73479
|
const CHEVRON_UP = " ▴";
|
|
73435
73480
|
const CHEVRON_DOWN = " ▾";
|
|
@@ -73623,7 +73668,7 @@ function TimelineRail({ handle, turns, activeId, upId, downId, terminalWidth, ho
|
|
|
73623
73668
|
}) });
|
|
73624
73669
|
}
|
|
73625
73670
|
//#endregion
|
|
73626
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73671
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
|
|
73627
73672
|
/** Thumb glyph across the 2-col gutter: solid, clearly positional —
|
|
73628
73673
|
* deliberately distinct from the timeline's ━━ active tick. */
|
|
73629
73674
|
const THUMB = "██";
|
|
@@ -73739,7 +73784,7 @@ function ScrollbarGutter({ handle, terminalWidth }) {
|
|
|
73739
73784
|
}) });
|
|
73740
73785
|
}
|
|
73741
73786
|
//#endregion
|
|
73742
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73787
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
|
|
73743
73788
|
/**
|
|
73744
73789
|
* 瞬态面板的浮层容器:absolute 定位 + bottom:'100%' 把面板底边钉在锚点
|
|
73745
73790
|
* (父元素)顶边,向上覆盖转录尾部行,自身**不占布局高度**。
|
|
@@ -73772,7 +73817,7 @@ function OverlayAbove({ children, maxHeight }) {
|
|
|
73772
73817
|
});
|
|
73773
73818
|
}
|
|
73774
73819
|
//#endregion
|
|
73775
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73820
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
|
|
73776
73821
|
/**
|
|
73777
73822
|
* Trajectory motion — five verbs, one shared clock, one hard rule.
|
|
73778
73823
|
*
|
|
@@ -73897,7 +73942,7 @@ function alert(tick, startTick) {
|
|
|
73897
73942
|
return Math.floor(age / 2) % 2 === 0 ? 1 : 0;
|
|
73898
73943
|
}
|
|
73899
73944
|
//#endregion
|
|
73900
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73945
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
|
|
73901
73946
|
/** 三幕时间轴(ms):扫光全长、字样启动(波至中段)、字样渐亮、渐隐起止。边框扫光与输入行字样徽标共用。 */
|
|
73902
73947
|
const IGNITION_TIMELINE = {
|
|
73903
73948
|
sweepMs: 1e3,
|
|
@@ -74045,7 +74090,7 @@ function ignitionLineColors(options) {
|
|
|
74045
74090
|
return colors;
|
|
74046
74091
|
}
|
|
74047
74092
|
//#endregion
|
|
74048
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74093
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
|
|
74049
74094
|
/**
|
|
74050
74095
|
* EffortChargeGlyph — 输入提示前缀 `❯ ` 的最高档强调与充能。
|
|
74051
74096
|
*
|
|
@@ -74101,7 +74146,7 @@ function EffortChargeGlyph({ effort, levels, working }) {
|
|
|
74101
74146
|
});
|
|
74102
74147
|
}
|
|
74103
74148
|
//#endregion
|
|
74104
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74149
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
|
|
74105
74150
|
/**
|
|
74106
74151
|
* EffortInputBorder — 输入框层上的三幕点焰叠加(对齐 Codex 的完整
|
|
74107
74152
|
* 语义:光扫过、档位字样浮现、整体渐隐)。
|
|
@@ -74236,7 +74281,7 @@ function EffortInputBorder({ effort, levels, columns, onLight, idleColor, topRig
|
|
|
74236
74281
|
});
|
|
74237
74282
|
}
|
|
74238
74283
|
//#endregion
|
|
74239
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74284
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
|
|
74240
74285
|
/**
|
|
74241
74286
|
* EffortTierBadge — 输入行尾的档位字样徽标:三幕点焰的第二幕载体
|
|
74242
74287
|
* (与 EffortInputBorder 的双框扫光同一时间轴、同一触发),切到最高
|
|
@@ -74319,7 +74364,7 @@ function EffortTierBadge({ effort, levels, onLight, columns, leadingColumns }) {
|
|
|
74319
74364
|
});
|
|
74320
74365
|
}
|
|
74321
74366
|
//#endregion
|
|
74322
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74367
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
|
|
74323
74368
|
/**
|
|
74324
74369
|
* Cross-platform clipboard access for Ctrl+V paste. The TUI runs in raw
|
|
74325
74370
|
* mode, so the terminal never performs its own paste for Ctrl+V — the key
|
|
@@ -74848,7 +74893,7 @@ function formatClipboardInsert(content) {
|
|
|
74848
74893
|
return content.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
74849
74894
|
}
|
|
74850
74895
|
//#endregion
|
|
74851
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74896
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/droppedFile.js
|
|
74852
74897
|
/**
|
|
74853
74898
|
* Terminal drag-and-drop normalization.
|
|
74854
74899
|
*
|
|
@@ -74907,7 +74952,7 @@ function droppedImageMention(raw, baseDir) {
|
|
|
74907
74952
|
return formatImageReference(path);
|
|
74908
74953
|
}
|
|
74909
74954
|
//#endregion
|
|
74910
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74955
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
|
|
74911
74956
|
/**
|
|
74912
74957
|
* External editor round-trip for the prompt input (issue #123): Ctrl+G dumps
|
|
74913
74958
|
* the current draft into a temp file, hands the terminal to `$VISUAL` /
|
|
@@ -75185,7 +75230,7 @@ async function editInExternalEditor(draft) {
|
|
|
75185
75230
|
}
|
|
75186
75231
|
}
|
|
75187
75232
|
//#endregion
|
|
75188
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75233
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
|
|
75189
75234
|
let editorNode = null;
|
|
75190
75235
|
const listeners = /* @__PURE__ */ new Set();
|
|
75191
75236
|
/** Publish (or withdraw, with null) the fullscreen editor subtree. */
|
|
@@ -75269,7 +75314,7 @@ function EditorButton({ label, hint, onClick, primary, accent }) {
|
|
|
75269
75314
|
});
|
|
75270
75315
|
}
|
|
75271
75316
|
//#endregion
|
|
75272
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75317
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
|
|
75273
75318
|
const HISTORY_DIR = DATA_DIR;
|
|
75274
75319
|
const HISTORY_FILE = join(HISTORY_DIR, "history.jsonl");
|
|
75275
75320
|
const HISTORY_LOCK = `${HISTORY_FILE}.lock`;
|
|
@@ -75403,7 +75448,7 @@ function historyEntryId(entry, index = 0) {
|
|
|
75403
75448
|
return createHash("sha1").update(`${entry.text}\0${entry.ts}\0${index}`).digest("hex").slice(0, 12);
|
|
75404
75449
|
}
|
|
75405
75450
|
//#endregion
|
|
75406
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75451
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
|
|
75407
75452
|
/**
|
|
75408
75453
|
* `/` 命令菜单与 `@` 文件菜单共用的圆角卡片外壳(与输入框 EffortInputBorder
|
|
75409
75454
|
* 同款 ╭╮╰╯ 视觉语言):
|
|
@@ -75535,7 +75580,7 @@ function splitQueryMatch(name, query) {
|
|
|
75535
75580
|
return startsWith(0) ?? (lastSpace >= 0 ? startsWith(lastSpace + 1) : null) ?? startsWith(name.lastIndexOf("/") + 1);
|
|
75536
75581
|
}
|
|
75537
75582
|
//#endregion
|
|
75538
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75583
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
|
|
75539
75584
|
/**
|
|
75540
75585
|
* The slash-command suggestion overlay, mirroring Claude Code's
|
|
75541
75586
|
* `PromptInputFooterSuggestions.tsx` (command layout only) wrapped in the
|
|
@@ -75615,7 +75660,7 @@ function CommandSuggestions({ commands, selectedIndex, columns, query = "", acce
|
|
|
75615
75660
|
});
|
|
75616
75661
|
}
|
|
75617
75662
|
//#endregion
|
|
75618
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75663
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
|
|
75619
75664
|
/**
|
|
75620
75665
|
* The `@` file-completion overlay in CC's suggestion style, wrapped in the
|
|
75621
75666
|
* shared rounded `SuggestionCard` (与 `/` 命令菜单同一视觉语言):
|
|
@@ -75711,7 +75756,7 @@ function FileSuggestions({ files, selectedIndex, columns, query = "", maxVisible
|
|
|
75711
75756
|
});
|
|
75712
75757
|
}
|
|
75713
75758
|
//#endregion
|
|
75714
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75759
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
|
|
75715
75760
|
/**
|
|
75716
75761
|
* The `?` help menu, mirroring Claude Code's `PromptInputHelpMenu.tsx`
|
|
75717
75762
|
* (three-column shortcut layout, trimmed to the keys dsh-tui actually binds).
|
|
@@ -75902,7 +75947,7 @@ function HelpCommandRow({ command, onPick }) {
|
|
|
75902
75947
|
});
|
|
75903
75948
|
}
|
|
75904
75949
|
//#endregion
|
|
75905
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75950
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
|
|
75906
75951
|
const HISTORY_LIMIT = 50;
|
|
75907
75952
|
/**
|
|
75908
75953
|
* Paste fold (CC-style collapse with a visible preview, no black box):
|
|
@@ -78322,7 +78367,7 @@ function wordSelectionAt(text, offset, lo, hi) {
|
|
|
78322
78367
|
};
|
|
78323
78368
|
}
|
|
78324
78369
|
//#endregion
|
|
78325
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78370
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
|
|
78326
78371
|
/** Maximum todo rows shown before the overflow line. */
|
|
78327
78372
|
const MAX_TODOS = 8;
|
|
78328
78373
|
const PHASE_LABEL = {
|
|
@@ -78566,7 +78611,7 @@ function GoalTodoPanel({ channel, collapsed = false, onToggle }) {
|
|
|
78566
78611
|
});
|
|
78567
78612
|
}
|
|
78568
78613
|
//#endregion
|
|
78569
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78614
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
|
|
78570
78615
|
/**
|
|
78571
78616
|
* Auto-recap row (`dsh-tui.recapOnOpen` setting): a quiet, dim recap shown
|
|
78572
78617
|
* at the bottom of the transcript after an automatic summary on session
|
|
@@ -78646,7 +78691,7 @@ function summarizeLoadedContext(context) {
|
|
|
78646
78691
|
return parts.join(" · ");
|
|
78647
78692
|
}
|
|
78648
78693
|
//#endregion
|
|
78649
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78694
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
|
|
78650
78695
|
/** One named entry (section or dynamic context) with its full text. */
|
|
78651
78696
|
function Entry({ entry }) {
|
|
78652
78697
|
return (0, import_jsx_runtime.jsxs)(ThemedBox, {
|
|
@@ -78783,7 +78828,7 @@ function LoadedContextPanel({ context, open, onToggle }) {
|
|
|
78783
78828
|
});
|
|
78784
78829
|
}
|
|
78785
78830
|
//#endregion
|
|
78786
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78831
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
|
|
78787
78832
|
/**
|
|
78788
78833
|
* Terminal-safe construction cycle derived from the supplied China Unicom
|
|
78789
78834
|
* knot mark. Every frame is one display cell, unlike emoji on mixed terminals.
|
|
@@ -78815,7 +78860,7 @@ function UnicomKnotSpinner({ time }) {
|
|
|
78815
78860
|
});
|
|
78816
78861
|
}
|
|
78817
78862
|
//#endregion
|
|
78818
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78863
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
|
|
78819
78864
|
/**
|
|
78820
78865
|
* Context-pressure percentage (0–100) from the last usage snapshot, or
|
|
78821
78866
|
* undefined when unknown — shared by the spinner-line and status-line
|
|
@@ -78887,7 +78932,7 @@ function ActivityLine({ activity, activityFrames, warnPct, warnDanger, suffix })
|
|
|
78887
78932
|
});
|
|
78888
78933
|
}
|
|
78889
78934
|
//#endregion
|
|
78890
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78935
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/guards.js
|
|
78891
78936
|
/**
|
|
78892
78937
|
* Structural guards for the session events the trajectory projection reads.
|
|
78893
78938
|
*
|
|
@@ -79111,7 +79156,7 @@ function readTodos(data) {
|
|
|
79111
79156
|
};
|
|
79112
79157
|
}
|
|
79113
79158
|
//#endregion
|
|
79114
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79159
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/types.js
|
|
79115
79160
|
/**
|
|
79116
79161
|
* Trajectory projection — the data contract shared by the adapter-side fold
|
|
79117
79162
|
* and the UI-side scene (issue #80 evolution).
|
|
@@ -79178,7 +79223,7 @@ function previewText(raw, limit) {
|
|
|
79178
79223
|
return `${flat.slice(0, limit)}…`;
|
|
79179
79224
|
}
|
|
79180
79225
|
//#endregion
|
|
79181
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79226
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/projection.js
|
|
79182
79227
|
/**
|
|
79183
79228
|
* Trajectory projection — folding the session event log into ledger nodes.
|
|
79184
79229
|
*
|
|
@@ -79757,7 +79802,7 @@ function extendTrajectory(previous, events) {
|
|
|
79757
79802
|
};
|
|
79758
79803
|
}
|
|
79759
79804
|
//#endregion
|
|
79760
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79805
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/aggregate.js
|
|
79761
79806
|
/**
|
|
79762
79807
|
* Trajectory aggregate — the hotspot view's data and the session totals.
|
|
79763
79808
|
*
|
|
@@ -79978,7 +80023,7 @@ function modelTiming(timing) {
|
|
|
79978
80023
|
};
|
|
79979
80024
|
}
|
|
79980
80025
|
//#endregion
|
|
79981
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80026
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/inspect.js
|
|
79982
80027
|
/**
|
|
79983
80028
|
* Inspector detail — full content, resolved on demand.
|
|
79984
80029
|
*
|
|
@@ -80138,7 +80183,7 @@ function inspectNode(node, events) {
|
|
|
80138
80183
|
};
|
|
80139
80184
|
}
|
|
80140
80185
|
//#endregion
|
|
80141
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80186
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/wave.js
|
|
80142
80187
|
/**
|
|
80143
80188
|
* Wave band projection — the whole session compressed onto one row of glyphs.
|
|
80144
80189
|
*
|
|
@@ -80311,7 +80356,7 @@ function columnOfIndex(band, ledgerIndex) {
|
|
|
80311
80356
|
return 0;
|
|
80312
80357
|
}
|
|
80313
80358
|
//#endregion
|
|
80314
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80359
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/MiniWake.js
|
|
80315
80360
|
/**
|
|
80316
80361
|
* The mini wake — the whole session as a dozen glyphs in the status line.
|
|
80317
80362
|
*
|
|
@@ -80414,7 +80459,7 @@ function toHex$1(colour) {
|
|
|
80414
80459
|
return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
|
|
80415
80460
|
}
|
|
80416
80461
|
//#endregion
|
|
80417
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80462
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
|
|
80418
80463
|
/**
|
|
80419
80464
|
* Status-line metric renderers, ported from two pi extensions:
|
|
80420
80465
|
* - `pi-nano-context`: segmented context progress bar (morandi pastel
|
|
@@ -80690,7 +80735,7 @@ function tpsStats(samples, nowMs) {
|
|
|
80690
80735
|
};
|
|
80691
80736
|
}
|
|
80692
80737
|
//#endregion
|
|
80693
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80738
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
|
|
80694
80739
|
/** Free-segment colors, mirroring StatusMetrics' dark-theme defaults. */
|
|
80695
80740
|
const FREE_FILL = "#E8E8E8";
|
|
80696
80741
|
const FREE_TEXT = "#4A4A4A";
|
|
@@ -80757,7 +80802,7 @@ function ContextBarView({ segments, usedTokens, contextWindow, width, colors, on
|
|
|
80757
80802
|
});
|
|
80758
80803
|
}
|
|
80759
80804
|
//#endregion
|
|
80760
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80805
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
|
|
80761
80806
|
/**
|
|
80762
80807
|
* ChatCode 今日总 Token 消耗量查询(移植自 chatcode-cli 的 chatCodeTokenTrend)。
|
|
80763
80808
|
*
|
|
@@ -80832,7 +80877,7 @@ async function fetchTodayTotalTokens(post, signal) {
|
|
|
80832
80877
|
}
|
|
80833
80878
|
}
|
|
80834
80879
|
//#endregion
|
|
80835
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80880
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
|
|
80836
80881
|
/**
|
|
80837
80882
|
* 「今日总Token消耗」数据源 Hook(移植自 chatcode-cli 的 useTokenDashboard)。
|
|
80838
80883
|
*
|
|
@@ -80864,7 +80909,7 @@ function useTodayTotalTokens(enabled = true) {
|
|
|
80864
80909
|
return { totalTokens };
|
|
80865
80910
|
}
|
|
80866
80911
|
//#endregion
|
|
80867
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80912
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
|
|
80868
80913
|
const BAR_WIDTH = 14;
|
|
80869
80914
|
/** Yuanjing-compatible percentage label centered inside a fixed-width bar. */
|
|
80870
80915
|
function LabeledBar({ ratio, percent }) {
|
|
@@ -80948,7 +80993,7 @@ function TokenDashboard({ todayTokens, usedTokens, contextWindow, compact = fals
|
|
|
80948
80993
|
});
|
|
80949
80994
|
}
|
|
80950
80995
|
//#endregion
|
|
80951
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80996
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
|
|
80952
80997
|
/** Stable fallback for stubbed channels: verify/repro harnesses render the
|
|
80953
80998
|
* real Chat with partial channel literals that predate the jobs field. */
|
|
80954
80999
|
const NO_BACKGROUND_JOBS = [];
|
|
@@ -81806,7 +81851,7 @@ const fallbackSymbols = {
|
|
|
81806
81851
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
81807
81852
|
Object.entries(specialMainSymbols);
|
|
81808
81853
|
//#endregion
|
|
81809
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81854
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Byline.js
|
|
81810
81855
|
/**
|
|
81811
81856
|
* Joins children with a middot separator (" · ") for inline metadata display
|
|
81812
81857
|
* (in the Claude Code visual language). Automatically filters out
|
|
@@ -81822,7 +81867,7 @@ function Byline({ children }) {
|
|
|
81822
81867
|
}), child] }, (0, import_react.isValidElement)(child) ? child.key ?? index : index)) });
|
|
81823
81868
|
}
|
|
81824
81869
|
//#endregion
|
|
81825
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81870
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/GlimmerMessage.js
|
|
81826
81871
|
const ERROR_RED$1 = {
|
|
81827
81872
|
r: 171,
|
|
81828
81873
|
g: 43,
|
|
@@ -81912,7 +81957,7 @@ function GlimmerMessage({ message, mode, messageColor, glimmerIndex, flashOpacit
|
|
|
81912
81957
|
})] });
|
|
81913
81958
|
}
|
|
81914
81959
|
//#endregion
|
|
81915
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81960
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerGlyph.js
|
|
81916
81961
|
const DEFAULT_CHARACTERS = getDefaultCharacters();
|
|
81917
81962
|
const SPINNER_FRAMES$1 = [...DEFAULT_CHARACTERS, ...[...DEFAULT_CHARACTERS].reverse()];
|
|
81918
81963
|
const REDUCED_MOTION_DOT = "●";
|
|
@@ -81973,7 +82018,7 @@ function SpinnerGlyph({ frame, messageColor, stalledIntensity = 0, reducedMotion
|
|
|
81973
82018
|
});
|
|
81974
82019
|
}
|
|
81975
82020
|
//#endregion
|
|
81976
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82021
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/useStalledAnimation.js
|
|
81977
82022
|
/**
|
|
81978
82023
|
* Tracks the transition to red when tokens stop flowing (mirroring Claude Code's `Spinner/useStalledAnimation.ts`). Driven by the parent's animation
|
|
81979
82024
|
* clock time instead of independent intervals, so it slows down when the
|
|
@@ -82030,7 +82075,7 @@ function useStalledAnimation(time, currentResponseLength, hasActiveTools = false
|
|
|
82030
82075
|
};
|
|
82031
82076
|
}
|
|
82032
82077
|
//#endregion
|
|
82033
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82078
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerAnimationRow.js
|
|
82034
82079
|
const SEP_WIDTH = stringWidth$1(" · ");
|
|
82035
82080
|
const THINKING_BARE_WIDTH = stringWidth$1("thinking");
|
|
82036
82081
|
const SHOW_TOKENS_AFTER_MS = 3e4;
|
|
@@ -82197,7 +82242,7 @@ function SpinnerModeGlyph({ mode }) {
|
|
|
82197
82242
|
}
|
|
82198
82243
|
}
|
|
82199
82244
|
//#endregion
|
|
82200
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82245
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
|
|
82201
82246
|
/**
|
|
82202
82247
|
* The working spinner block shown between the transcript and the prompt
|
|
82203
82248
|
* input while a turn is in flight. Mirrors Claude Code's `Spinner.tsx`
|
|
@@ -82267,7 +82312,7 @@ function useThinkingStatus(isThinking) {
|
|
|
82267
82312
|
return thinkingStatus;
|
|
82268
82313
|
}
|
|
82269
82314
|
//#endregion
|
|
82270
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82315
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
|
|
82271
82316
|
/**
|
|
82272
82317
|
* Model picker in the CC ModelPicker style: a permission-colored Pane with
|
|
82273
82318
|
* the rows as Select entries (❯ focus pointer, ✓ on the active row,
|
|
@@ -82327,7 +82372,7 @@ function ModelPicker(props) {
|
|
|
82327
82372
|
});
|
|
82328
82373
|
}
|
|
82329
82374
|
//#endregion
|
|
82330
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82375
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
|
|
82331
82376
|
/**
|
|
82332
82377
|
* Error boundary for plugin scenes (dsh-tui-scenes). A scene component is
|
|
82333
82378
|
* third-party code rendered inside Chat's tree: without a boundary a render
|
|
@@ -82353,7 +82398,7 @@ var PluginSceneBoundary = class extends import_react.Component {
|
|
|
82353
82398
|
}
|
|
82354
82399
|
};
|
|
82355
82400
|
//#endregion
|
|
82356
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82401
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/LoadingState.js
|
|
82357
82402
|
const SPINNER_FRAMES = [...getDefaultCharacters(), ...[...getDefaultCharacters()].reverse()];
|
|
82358
82403
|
/**
|
|
82359
82404
|
* A spinner with a loading message for async operations, mirroring Claude Code's design-system/LoadingState.tsx (using the small animated glyph).
|
|
@@ -82384,7 +82429,7 @@ function LoadingState({ message, bold = false, dimColor = false, subtitle }) {
|
|
|
82384
82429
|
});
|
|
82385
82430
|
}
|
|
82386
82431
|
//#endregion
|
|
82387
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82432
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
|
|
82388
82433
|
/** 来源桶 → 本地化标签(未知桶原样显示,SkillSource 对自定义桶开放)。 */
|
|
82389
82434
|
function sourceLabel(source) {
|
|
82390
82435
|
switch (source) {
|
|
@@ -82462,7 +82507,7 @@ function SkillsPickerLoading() {
|
|
|
82462
82507
|
});
|
|
82463
82508
|
}
|
|
82464
82509
|
//#endregion
|
|
82465
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82510
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
|
|
82466
82511
|
/**
|
|
82467
82512
|
* Window a single-line query around the caret so the visible slice fits
|
|
82468
82513
|
* `avail` display cells (CJK display width, code-point safe — `[...s]`
|
|
@@ -82600,7 +82645,7 @@ function SearchBox({ query, placeholder = "Search…", isFocused, isTerminalFocu
|
|
|
82600
82645
|
});
|
|
82601
82646
|
}
|
|
82602
82647
|
//#endregion
|
|
82603
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82648
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionListRow.js
|
|
82604
82649
|
/**
|
|
82605
82650
|
* One session in the browser's list: a title line and a metadata line.
|
|
82606
82651
|
*
|
|
@@ -82681,7 +82726,7 @@ function SessionListRow({ session, width, depth, focused, pinned, now, onClick,
|
|
|
82681
82726
|
});
|
|
82682
82727
|
}
|
|
82683
82728
|
//#endregion
|
|
82684
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82729
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionPreview.js
|
|
82685
82730
|
/** Role marker and colour for a preview entry. */
|
|
82686
82731
|
const ROLE = {
|
|
82687
82732
|
user: {
|
|
@@ -82772,7 +82817,7 @@ function SessionPreview({ session, entries, loading, width, height, home, now })
|
|
|
82772
82817
|
});
|
|
82773
82818
|
}
|
|
82774
82819
|
//#endregion
|
|
82775
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82820
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/WorkspaceListRow.js
|
|
82776
82821
|
/** One two-line working-directory choice in the /resume browser. */
|
|
82777
82822
|
function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width, focused, selected, home, now, onClick }) {
|
|
82778
82823
|
const [hovered, setHovered] = (0, import_react.useState)(false);
|
|
@@ -82817,7 +82862,7 @@ function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width,
|
|
|
82817
82862
|
});
|
|
82818
82863
|
}
|
|
82819
82864
|
//#endregion
|
|
82820
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82865
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
|
|
82821
82866
|
/**
|
|
82822
82867
|
* Pinned sessions for the `/resume` browser, kept at
|
|
82823
82868
|
* `~/.chatcode-cli/tui/session-pins.json` (a JSON array of session ids) so the pins
|
|
@@ -82966,7 +83011,7 @@ function setSessionPinned(id, pinned, dir = DATA_DIR) {
|
|
|
82966
83011
|
}
|
|
82967
83012
|
}
|
|
82968
83013
|
//#endregion
|
|
82969
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
83014
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
|
|
82970
83015
|
/**
|
|
82971
83016
|
* Rows the layout cannot do without: the header, the four-row scope/search
|
|
82972
83017
|
* card, the notice slot, and the hints. Everything else yields before these.
|
|
@@ -83821,7 +83866,7 @@ function SessionBrowser({ channel, home, sameProject, onClose }) {
|
|
|
83821
83866
|
if (actionPendingRef.current) return;
|
|
83822
83867
|
setLevel("sessions");
|
|
83823
83868
|
setFocusId(row.session.id);
|
|
83824
|
-
|
|
83869
|
+
openOrRestore(row.session);
|
|
83825
83870
|
} : void 0,
|
|
83826
83871
|
onTogglePin: mode === "list" && menu === void 0 && !actionPendingRef.current ? () => {
|
|
83827
83872
|
setFocusId(row.session.id);
|
|
@@ -83966,7 +84011,7 @@ function SessionBrowser({ channel, home, sameProject, onClose }) {
|
|
|
83966
84011
|
});
|
|
83967
84012
|
}
|
|
83968
84013
|
//#endregion
|
|
83969
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
84014
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
|
|
83970
84015
|
/** Local HH:MM (or MM/DD HH:MM when older than this year). */
|
|
83971
84016
|
function formatTime(at, now) {
|
|
83972
84017
|
const date = new Date(at);
|
|
@@ -84722,7 +84767,7 @@ function PreviewPane({ entry, meta, width, height, liveSessionId, now, compact }
|
|
|
84722
84767
|
});
|
|
84723
84768
|
}
|
|
84724
84769
|
//#endregion
|
|
84725
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
84770
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
|
|
84726
84771
|
/** Pick the provider-owned translation for the active language. */
|
|
84727
84772
|
function pick(text, descriptions) {
|
|
84728
84773
|
return descriptions?.[getLang()] ?? text;
|
|
@@ -85547,7 +85592,7 @@ function Settings({ channel, onClose, initialGroup }) {
|
|
|
85547
85592
|
});
|
|
85548
85593
|
}
|
|
85549
85594
|
//#endregion
|
|
85550
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85595
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
|
|
85551
85596
|
const WINDOW$1 = 8;
|
|
85552
85597
|
/** `/workspace` target picker contributed by local and optional providers. */
|
|
85553
85598
|
function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
|
|
@@ -85585,7 +85630,7 @@ function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
|
|
|
85585
85630
|
});
|
|
85586
85631
|
}
|
|
85587
85632
|
//#endregion
|
|
85588
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85633
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
|
|
85589
85634
|
/**
|
|
85590
85635
|
* A single-choice select list in the CC CustomSelect style (ported visual:
|
|
85591
85636
|
* ListItem rows with ❯ focus pointer, ✓ selected checkmark, descriptions,
|
|
@@ -85612,7 +85657,7 @@ function Select({ options, focusIndex, selectedValue, visibleOptionCount = 5, on
|
|
|
85612
85657
|
});
|
|
85613
85658
|
}
|
|
85614
85659
|
//#endregion
|
|
85615
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85660
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
|
|
85616
85661
|
/**
|
|
85617
85662
|
* Bare `/workspace` action menu: the built-in subcommands (resume / rename /
|
|
85618
85663
|
* open) plus any dynamically registered workspace extensions. Enter runs the
|
|
@@ -85653,7 +85698,7 @@ function WorkspaceMenuPicker({ options, focusIndex, onPick }) {
|
|
|
85653
85698
|
});
|
|
85654
85699
|
}
|
|
85655
85700
|
//#endregion
|
|
85656
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85701
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
|
|
85657
85702
|
const WINDOW = 8;
|
|
85658
85703
|
/** Generic nested choice surface returned by a workspace provider command. */
|
|
85659
85704
|
function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input = null, onPick }) {
|
|
@@ -85711,7 +85756,7 @@ function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input =
|
|
|
85711
85756
|
});
|
|
85712
85757
|
}
|
|
85713
85758
|
//#endregion
|
|
85714
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85759
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
|
|
85715
85760
|
/**
|
|
85716
85761
|
* Working-activity indicator picker in the CC ModelPicker style (ported
|
|
85717
85762
|
* from the pi extension's `/activity` interactive select): a
|
|
@@ -85753,7 +85798,7 @@ function ActivityPicker({ focusIndex, currentPreset, onPick }) {
|
|
|
85753
85798
|
});
|
|
85754
85799
|
}
|
|
85755
85800
|
//#endregion
|
|
85756
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85801
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
|
|
85757
85802
|
/**
|
|
85758
85803
|
* Session accent color picker (bare `/color`): a permission-colored Pane
|
|
85759
85804
|
* listing the whole palette with a colored swatch per row, `❯` focus
|
|
@@ -85797,7 +85842,7 @@ function ColorPicker({ focusIndex, currentColor, onPick }) {
|
|
|
85797
85842
|
});
|
|
85798
85843
|
}
|
|
85799
85844
|
//#endregion
|
|
85800
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85845
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
|
|
85801
85846
|
/**
|
|
85802
85847
|
* Reasoning-effort slider (`/effort`): a rheostat row of the live route's
|
|
85803
85848
|
* adapter-owned levels in adapter order, ←/→ moving focus (each move applies
|
|
@@ -85856,7 +85901,7 @@ function EffortSlider({ options, focusIndex, currentId, onPick }) {
|
|
|
85856
85901
|
});
|
|
85857
85902
|
}
|
|
85858
85903
|
//#endregion
|
|
85859
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85904
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
|
|
85860
85905
|
/**
|
|
85861
85906
|
* Agent-preset picker (issue #8) in the CC ModelPicker style — same chrome
|
|
85862
85907
|
* as the ActivityPicker: a permission-colored Pane listing every roster
|
|
@@ -85900,7 +85945,7 @@ function PresetPicker({ presets, focusIndex, currentPreset, onPick }) {
|
|
|
85900
85945
|
});
|
|
85901
85946
|
}
|
|
85902
85947
|
//#endregion
|
|
85903
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85948
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
|
|
85904
85949
|
/**
|
|
85905
85950
|
* `/permission` sandbox-preset picker. The command itself is registered by
|
|
85906
85951
|
* the harness side (dsh-sandbox-policy / dsh-base permission-presets row);
|
|
@@ -85947,7 +85992,7 @@ function PermissionsPicker({ options, focusIndex, currentValue, cwd, onPick }) {
|
|
|
85947
85992
|
});
|
|
85948
85993
|
}
|
|
85949
85994
|
//#endregion
|
|
85950
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85995
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
|
|
85951
85996
|
/**
|
|
85952
85997
|
* `/plan` on/off picker. The command itself is registered by dsh-plan-mode
|
|
85953
85998
|
* on the harness side; bare `/plan` opens this picker (with the current
|
|
@@ -85992,7 +86037,7 @@ function PlanPicker({ focusIndex, currentOn, onPick }) {
|
|
|
85992
86037
|
});
|
|
85993
86038
|
}
|
|
85994
86039
|
//#endregion
|
|
85995
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86040
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
|
|
85996
86041
|
/**
|
|
85997
86042
|
* `/lang` en/zh picker: bare `/lang` opens this picker (the current language
|
|
85998
86043
|
* marked) and Enter applies the choice through the same path as `/lang <id>`.
|
|
@@ -86031,7 +86076,7 @@ function LangPicker({ focusIndex, currentLang, onPick }) {
|
|
|
86031
86076
|
});
|
|
86032
86077
|
}
|
|
86033
86078
|
//#endregion
|
|
86034
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86079
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
|
|
86035
86080
|
/** One double-block swatch character per preview key, in a row. */
|
|
86036
86081
|
const SWATCH = "██";
|
|
86037
86082
|
/** Theme keys previewed in the picker, chosen for visual contrast. */
|
|
@@ -86117,7 +86162,7 @@ function ThemePicker({ focusIndex, currentTheme, themeHost, onPick }) {
|
|
|
86117
86162
|
});
|
|
86118
86163
|
}
|
|
86119
86164
|
//#endregion
|
|
86120
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86165
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
|
|
86121
86166
|
/**
|
|
86122
86167
|
* The `/thinking` display dialog: a permission-colored Pane with a bold
|
|
86123
86168
|
* title, the Shown/Hidden select, and the Enter/Esc hint line.
|
|
@@ -86166,7 +86211,7 @@ function ThinkingToggle({ currentValue, focusIndex, onPick }) {
|
|
|
86166
86211
|
});
|
|
86167
86212
|
}
|
|
86168
86213
|
//#endregion
|
|
86169
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86214
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
|
|
86170
86215
|
/**
|
|
86171
86216
|
* The ctrl+r history search dialog, in the shape of Claude Code's
|
|
86172
86217
|
* HistorySearchDialog/FuzzyPicker: a permission-colored Pane with a bold
|
|
@@ -86229,7 +86274,7 @@ function formatRelativeAge(ts) {
|
|
|
86229
86274
|
return t("time-days-ago", { n: Math.floor(elapsed / 864e5) });
|
|
86230
86275
|
}
|
|
86231
86276
|
//#endregion
|
|
86232
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86277
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
|
|
86233
86278
|
/**
|
|
86234
86279
|
* Double-Esc rewind picker (CC's "Double-tap esc to rewind the code and/or
|
|
86235
86280
|
* conversation to a previous point in time"): lists the user's past messages
|
|
@@ -86366,7 +86411,7 @@ function preview(text) {
|
|
|
86366
86411
|
return flat.length <= 80 ? flat : `${flat.slice(0, 80)}…`;
|
|
86367
86412
|
}
|
|
86368
86413
|
//#endregion
|
|
86369
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86414
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
|
|
86370
86415
|
/**
|
|
86371
86416
|
* /btw side-question panel (CC's btw.tsx, inline-pane form like the local
|
|
86372
86417
|
* pickers): title line with the question, a scrollable answer body (error /
|
|
@@ -86450,7 +86495,7 @@ function BtwPanel({ question, answer, error, streaming, onClose, onCopy }) {
|
|
|
86450
86495
|
});
|
|
86451
86496
|
}
|
|
86452
86497
|
//#endregion
|
|
86453
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86498
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
|
|
86454
86499
|
function ReleaseNotesPanel({ release, onClose }) {
|
|
86455
86500
|
const scrollRef = import_react.useRef(null);
|
|
86456
86501
|
const { rows } = useTerminalSize();
|
|
@@ -86495,7 +86540,7 @@ function ReleaseNotesPanel({ release, onClose }) {
|
|
|
86495
86540
|
});
|
|
86496
86541
|
}
|
|
86497
86542
|
//#endregion
|
|
86498
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86543
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
|
|
86499
86544
|
/**
|
|
86500
86545
|
* `/recap` panel (pi-recap semantics), in the picker/dialog visual
|
|
86501
86546
|
* language: a permission-colored Pane with a title bar (会话回顾), a
|
|
@@ -86616,7 +86661,7 @@ function RecapPanel({ summary, title, error, streaming, titleApplied, onClose, o
|
|
|
86616
86661
|
});
|
|
86617
86662
|
}
|
|
86618
86663
|
//#endregion
|
|
86619
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86664
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
|
|
86620
86665
|
/**
|
|
86621
86666
|
* 精简 Tips 池 —— 启动首屏轮换(LogoV2)与 `/tips` 命令面板共用。
|
|
86622
86667
|
*
|
|
@@ -87330,7 +87375,7 @@ const TIPS = [
|
|
|
87330
87375
|
}
|
|
87331
87376
|
];
|
|
87332
87377
|
//#endregion
|
|
87333
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87378
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
|
|
87334
87379
|
const GROUP_ORDER = [
|
|
87335
87380
|
"keys",
|
|
87336
87381
|
"commands",
|
|
@@ -87409,7 +87454,7 @@ function TipsPanel({ onClose }) {
|
|
|
87409
87454
|
});
|
|
87410
87455
|
}
|
|
87411
87456
|
//#endregion
|
|
87412
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87457
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
|
|
87413
87458
|
function formatDuration$1(ms) {
|
|
87414
87459
|
const seconds = Math.floor(ms / 1e3);
|
|
87415
87460
|
return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${seconds % 60}s`;
|
|
@@ -87464,7 +87509,7 @@ function SubagentCard({ subagent, focused, onClick }) {
|
|
|
87464
87509
|
});
|
|
87465
87510
|
}
|
|
87466
87511
|
//#endregion
|
|
87467
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87512
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
|
|
87468
87513
|
/** 可点击 ✕ 退出按钮:整屏/浮层场景的鼠标退出通道(Esc 等价)。 */
|
|
87469
87514
|
function ExitButton({ onClick }) {
|
|
87470
87515
|
const [hovered, setHovered] = import_react.useState(false);
|
|
@@ -87612,7 +87657,7 @@ function SubagentDashboard({ subagents, onClose, onSelect }) {
|
|
|
87612
87657
|
});
|
|
87613
87658
|
}
|
|
87614
87659
|
//#endregion
|
|
87615
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87660
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
|
|
87616
87661
|
function statusInfo(status) {
|
|
87617
87662
|
const minimal = isMinimalMode();
|
|
87618
87663
|
switch (status) {
|
|
@@ -87900,7 +87945,7 @@ function JobsPanel({ jobs, onClose, onKill }) {
|
|
|
87900
87945
|
});
|
|
87901
87946
|
}
|
|
87902
87947
|
//#endregion
|
|
87903
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87948
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
|
|
87904
87949
|
function formatDuration(ms) {
|
|
87905
87950
|
if (ms < 1e3) return `${ms}ms`;
|
|
87906
87951
|
if (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;
|
|
@@ -88034,11 +88079,19 @@ function SubagentDetailScene({ subagent, onBack, onInterrupt }) {
|
|
|
88034
88079
|
const scrollRef = import_react.useRef(null);
|
|
88035
88080
|
const { rows, columns } = useTerminalSize();
|
|
88036
88081
|
const [page, setPage] = import_react.useState("summary");
|
|
88082
|
+
const [interruptNotice, setInterruptNotice] = import_react.useState();
|
|
88037
88083
|
const isRunning = subagent.status === "running" || subagent.status === "starting";
|
|
88038
88084
|
const elapsed = subagent.completedAt ? subagent.completedAt - subagent.startedAt : Date.now() - subagent.startedAt;
|
|
88039
88085
|
const info = statusGlyph(subagent.status);
|
|
88040
88086
|
const totalTokens = subagent.tokens?.total ?? ((subagent.tokens?.input ?? 0) + (subagent.tokens?.output ?? 0) || 0);
|
|
88041
88087
|
const pageIndex = PAGES.indexOf(page);
|
|
88088
|
+
const interrupt = () => {
|
|
88089
|
+
try {
|
|
88090
|
+
setInterruptNotice(onInterrupt?.(subagent.agentId) === false ? "unavailable" : "requested");
|
|
88091
|
+
} catch {
|
|
88092
|
+
setInterruptNotice("unavailable");
|
|
88093
|
+
}
|
|
88094
|
+
};
|
|
88042
88095
|
const turnPage = (delta) => {
|
|
88043
88096
|
setPage(PAGES[(pageIndex + delta + PAGES.length) % PAGES.length]);
|
|
88044
88097
|
scrollRef.current?.scrollTo?.(0);
|
|
@@ -88080,7 +88133,7 @@ function SubagentDetailScene({ subagent, onBack, onInterrupt }) {
|
|
|
88080
88133
|
}
|
|
88081
88134
|
if (input.toLowerCase() === "x" && isRunning && onInterrupt) {
|
|
88082
88135
|
event.stopImmediatePropagation();
|
|
88083
|
-
|
|
88136
|
+
interrupt();
|
|
88084
88137
|
return;
|
|
88085
88138
|
}
|
|
88086
88139
|
if (isPlainReturnInput(input, key)) {
|
|
@@ -88277,6 +88330,10 @@ function SubagentDetailScene({ subagent, onBack, onInterrupt }) {
|
|
|
88277
88330
|
color: "subtle",
|
|
88278
88331
|
title: ""
|
|
88279
88332
|
}),
|
|
88333
|
+
isRunning && interruptNotice && (0, import_jsx_runtime.jsx)(ThemedText, {
|
|
88334
|
+
color: "warning",
|
|
88335
|
+
children: t(interruptNotice === "requested" ? "subagent-interrupt-requested" : "subagent-interrupt-unavailable")
|
|
88336
|
+
}),
|
|
88280
88337
|
(0, import_jsx_runtime.jsxs)(ThemedBox, {
|
|
88281
88338
|
marginTop: 0,
|
|
88282
88339
|
flexDirection: "row",
|
|
@@ -88289,7 +88346,7 @@ function SubagentDetailScene({ subagent, onBack, onInterrupt }) {
|
|
|
88289
88346
|
dimColor: true,
|
|
88290
88347
|
children: " · "
|
|
88291
88348
|
}), (0, import_jsx_runtime.jsx)(ThemedBox, {
|
|
88292
|
-
onClick:
|
|
88349
|
+
onClick: interrupt,
|
|
88293
88350
|
children: (0, import_jsx_runtime.jsx)(ThemedText, {
|
|
88294
88351
|
dimColor: true,
|
|
88295
88352
|
bold: true,
|
|
@@ -88358,7 +88415,7 @@ function FileActionsPanel({ path, isDir, focusIndex, onPick }) {
|
|
|
88358
88415
|
});
|
|
88359
88416
|
}
|
|
88360
88417
|
//#endregion
|
|
88361
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88418
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
|
|
88362
88419
|
function oneLine(text, max = 70) {
|
|
88363
88420
|
const compact = text.replace(/\s+/gu, " ").trim();
|
|
88364
88421
|
return compact.length > max ? `${compact.slice(0, max - 1)}…` : compact;
|
|
@@ -88450,7 +88507,7 @@ function DiffLoading() {
|
|
|
88450
88507
|
});
|
|
88451
88508
|
}
|
|
88452
88509
|
//#endregion
|
|
88453
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88510
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
|
|
88454
88511
|
/** `/copy` argument is a one-based reply age; omission selects the latest. */
|
|
88455
88512
|
function parseCopyIndex(raw, count) {
|
|
88456
88513
|
const value = raw.trim();
|
|
@@ -88503,7 +88560,7 @@ function gitDiffLines(report, labels) {
|
|
|
88503
88560
|
];
|
|
88504
88561
|
}
|
|
88505
88562
|
//#endregion
|
|
88506
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88563
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
|
|
88507
88564
|
/** Compact duration suitable for a terminal report row. */
|
|
88508
88565
|
function formatStatsDuration(ms) {
|
|
88509
88566
|
if (ms < 1e3) return `${Math.round(ms)} ms`;
|
|
@@ -88549,7 +88606,7 @@ function parsePresetManagement(input) {
|
|
|
88549
88606
|
return { kind: "invalid" };
|
|
88550
88607
|
}
|
|
88551
88608
|
//#endregion
|
|
88552
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88609
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
|
|
88553
88610
|
const ALIASES = {
|
|
88554
88611
|
map: "inspect",
|
|
88555
88612
|
fixit: "repair",
|
|
@@ -88604,7 +88661,7 @@ function buildWorkflowCommand(name, rawInput = "") {
|
|
|
88604
88661
|
};
|
|
88605
88662
|
}
|
|
88606
88663
|
//#endregion
|
|
88607
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88664
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
|
|
88608
88665
|
const EXTERNAL_SCHEME = /^https?:\/\//i;
|
|
88609
88666
|
/**
|
|
88610
88667
|
* Classify a clicked link target. Mirrors the previous handleOpenTarget
|
|
@@ -88629,7 +88686,7 @@ function classifyOpenTarget(url) {
|
|
|
88629
88686
|
return { kind: "rejected" };
|
|
88630
88687
|
}
|
|
88631
88688
|
//#endregion
|
|
88632
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88689
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
|
|
88633
88690
|
/**
|
|
88634
88691
|
* Subscribe to an external store's version counter at DEFAULT lane.
|
|
88635
88692
|
*
|
|
@@ -88678,7 +88735,7 @@ function useExternalVersion(subscribe, getVersion, enabled = true) {
|
|
|
88678
88735
|
return version;
|
|
88679
88736
|
}
|
|
88680
88737
|
//#endregion
|
|
88681
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88738
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/WaveBand.js
|
|
88682
88739
|
/**
|
|
88683
88740
|
* The wake — the whole session drawn as one row of glyphs.
|
|
88684
88741
|
*
|
|
@@ -88815,7 +88872,7 @@ function toHex(colour) {
|
|
|
88815
88872
|
return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
|
|
88816
88873
|
}
|
|
88817
88874
|
//#endregion
|
|
88818
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88875
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Ledger.js
|
|
88819
88876
|
/**
|
|
88820
88877
|
* The ledger — one line per event, columns aligned across every row.
|
|
88821
88878
|
*
|
|
@@ -89061,7 +89118,7 @@ function Ledger({ rows, start, height, cursor, width, tick, arrivalTick, arrival
|
|
|
89061
89118
|
});
|
|
89062
89119
|
}
|
|
89063
89120
|
//#endregion
|
|
89064
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89121
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Inspector.js
|
|
89065
89122
|
/**
|
|
89066
89123
|
* The inspector — full detail for the focused row, in a fixed-height slot.
|
|
89067
89124
|
*
|
|
@@ -89167,7 +89224,7 @@ function Inspector({ node, detail, height, width, expanded, scroll }) {
|
|
|
89167
89224
|
});
|
|
89168
89225
|
}
|
|
89169
89226
|
//#endregion
|
|
89170
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89227
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/HotspotView.js
|
|
89171
89228
|
/**
|
|
89172
89229
|
* The hotspot view — the session ranked by cost instead of ordered by time.
|
|
89173
89230
|
*
|
|
@@ -89330,7 +89387,7 @@ function HotspotView({ agg, sort, width, height, cursor, tick, switchTick, onRow
|
|
|
89330
89387
|
});
|
|
89331
89388
|
}
|
|
89332
89389
|
//#endregion
|
|
89333
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89390
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
|
|
89334
89391
|
/**
|
|
89335
89392
|
* Trajectory query — whole-session structured filtering.
|
|
89336
89393
|
*
|
|
@@ -89526,7 +89583,7 @@ function applyQuery(nodes, query) {
|
|
|
89526
89583
|
};
|
|
89527
89584
|
}
|
|
89528
89585
|
//#endregion
|
|
89529
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89586
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
|
|
89530
89587
|
/**
|
|
89531
89588
|
* The trajectory scene — the session's own screen.
|
|
89532
89589
|
*
|
|
@@ -90014,7 +90071,7 @@ function TrajectoryScene({ channel, build, onClose }) {
|
|
|
90014
90071
|
});
|
|
90015
90072
|
}
|
|
90016
90073
|
//#endregion
|
|
90017
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90074
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
|
|
90018
90075
|
/** Build the non-empty pages shown by the loaded-context inspector. */
|
|
90019
90076
|
function contextPages(context) {
|
|
90020
90077
|
const pages = [];
|
|
@@ -90198,7 +90255,7 @@ function LoadedContextScene({ context, onClose }) {
|
|
|
90198
90255
|
});
|
|
90199
90256
|
}
|
|
90200
90257
|
//#endregion
|
|
90201
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90258
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
|
|
90202
90259
|
/** Rows the layout cannot do without: header, model/cwd line, dispatch
|
|
90203
90260
|
* input, hints. */
|
|
90204
90261
|
const MANDATORY_LINES = 4;
|
|
@@ -90807,7 +90864,7 @@ function AgentView({ channel, home, approval, onApprove, returnSessionId, onClos
|
|
|
90807
90864
|
});
|
|
90808
90865
|
}
|
|
90809
90866
|
//#endregion
|
|
90810
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90867
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
|
|
90811
90868
|
/**
|
|
90812
90869
|
* Persisted "the user has seen the trajectory" flag, at
|
|
90813
90870
|
* `~/.chatcode-cli/tui/trajectory.json`.
|
|
@@ -90867,7 +90924,7 @@ function writeTrajectorySeen(dir = DATA_DIR) {
|
|
|
90867
90924
|
}
|
|
90868
90925
|
}
|
|
90869
90926
|
//#endregion
|
|
90870
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90927
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
|
|
90871
90928
|
const NO_OVERLAY = { kind: "none" };
|
|
90872
90929
|
/**
|
|
90873
90930
|
* One-step wrap-around cursor move — the single source of the wrapping rule
|
|
@@ -90977,7 +91034,7 @@ function dialogOverlayVisible(overlay, gates) {
|
|
|
90977
91034
|
}
|
|
90978
91035
|
}
|
|
90979
91036
|
//#endregion
|
|
90980
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
91037
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
|
|
90981
91038
|
const LOGOUT_EXIT_DELAY_MS = 200;
|
|
90982
91039
|
/** Shared empty snapshot for hosts whose channel has no event log. */
|
|
90983
91040
|
const NO_EVENTS = [];
|
|
@@ -94802,7 +94859,7 @@ function ModelPickerLoading() {
|
|
|
94802
94859
|
});
|
|
94803
94860
|
}
|
|
94804
94861
|
//#endregion
|
|
94805
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
94862
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
|
|
94806
94863
|
const MAIN_CLI_PACKAGE = "@chatcode/chatcode-cli";
|
|
94807
94864
|
function asError(value) {
|
|
94808
94865
|
return value instanceof Error ? value : new Error(String(value));
|
|
@@ -94958,7 +95015,7 @@ function launchWebFrontend(cwd, options = {}) {
|
|
|
94958
95015
|
}
|
|
94959
95016
|
}
|
|
94960
95017
|
//#endregion
|
|
94961
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95018
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/inject-channel.js
|
|
94962
95019
|
/**
|
|
94963
95020
|
* External injection channel — lets an out-of-process editor integration
|
|
94964
95021
|
* (e.g. the `dsh.nvim` Neovim plugin) push text into the running TUI's
|
|
@@ -95153,7 +95210,7 @@ function openInjectChannel(sessionId, cwd, handlers, onError) {
|
|
|
95153
95210
|
};
|
|
95154
95211
|
}
|
|
95155
95212
|
//#endregion
|
|
95156
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95213
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-auth.js
|
|
95157
95214
|
const CHATCODE_CLI_OAUTH_TOKEN = "CHATCODE_CLI_OAUTH_TOKEN";
|
|
95158
95215
|
const DEFAULT_SERVICE_WAIT_MS = 75e3;
|
|
95159
95216
|
function authService(ctx) {
|
|
@@ -95327,7 +95384,7 @@ async function requireChatCodeStartupLogin(ctx, options) {
|
|
|
95327
95384
|
return "ready";
|
|
95328
95385
|
}
|
|
95329
95386
|
//#endregion
|
|
95330
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95387
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-api.js
|
|
95331
95388
|
/** Bind authenticated statistics requests to one TUI lifetime. */
|
|
95332
95389
|
function createChatCodeAuthorizedPost(ctx) {
|
|
95333
95390
|
const lifetime = new AbortController();
|
|
@@ -95366,7 +95423,7 @@ function createChatCodeAuthorizedPost(ctx) {
|
|
|
95366
95423
|
};
|
|
95367
95424
|
}
|
|
95368
95425
|
//#endregion
|
|
95369
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95426
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.23_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin.js
|
|
95370
95427
|
/**
|
|
95371
95428
|
* Interactive TUI front door for ChatCode CLI agents.
|
|
95372
95429
|
*
|