@chatcode/chatcode-cli 3.0.4-rc.2 → 3.0.4-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.
Files changed (39) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +2 -0
  3. package/README.zh.md +2 -0
  4. package/lib/{command-errors-CScdshCl.js → command-errors-BJ_ZWzUU.js} +12 -12
  5. package/lib/{command-trees-Dc17MYfV.js → command-trees-C9b7-bci.js} +2 -2
  6. package/lib/{component-identity-DFJD_d-P.js → component-identity-Jb1DYjke.js} +3 -3
  7. package/lib/{extension-events-qXmhzmHo.js → extension-events-DKX4LXOd.js} +20 -20
  8. package/lib/{host-access-B0CRAwsX.js → host-access-CMg6rsWt.js} +1 -1
  9. package/lib/{keymap-CIoVICBI.js → keymap-CrC4pSNH.js} +2 -2
  10. package/lib/{plugin-BKQsL2xn.js → plugin-CmyMCGfb.js} +350 -339
  11. package/lib/{scenes-BRf-zMpF.js → scenes-Cil9RnwU.js} +3 -3
  12. package/lib/{settings-sections-4gMhveN_.js → settings-sections-jVCqXwdH.js} +3 -3
  13. package/lib/{statusBarSettings-CnmdSHkO.js → statusBarSettings-DNoBH3Cq.js} +3 -3
  14. package/lib/{themes-Ce97Zsri.js → themes-BdgeY3It.js} +12 -12
  15. package/lib/tui-compat-command-trees.js +1 -1
  16. package/lib/tui-compat-extensions.js +3 -3
  17. package/lib/tui-compat-plugin-host.js +5 -5
  18. package/lib/tui-compat-scenes.js +1 -1
  19. package/lib/tui-compat-settings-sections.js +1 -1
  20. package/lib/tui-compat-working-activity.js +1 -1
  21. package/lib/tui-compat-workspaces.js +1 -1
  22. package/lib/tui-compat.js +5 -5
  23. package/lib/{workspaces-1xrm-e3V.js → workspaces-DOatJRYr.js} +2 -2
  24. package/package.json +31 -31
  25. package/runtime/manifest.json +2 -2
  26. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +2 -1
  27. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +167 -44
  28. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/index.d.ts +14 -6
  29. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/linux-lock.d.ts +18 -0
  30. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/windows-lock.d.ts +7 -0
  31. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  32. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  33. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -3
  34. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/adapter.d.ts +1 -1
  35. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
  36. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
  37. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
  38. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +1 -1
  39. package/scripts/launch.mjs +8 -0
package/README.i18n.yaml CHANGED
@@ -9,8 +9,8 @@
9
9
  en: 5a02ff3726f7fe5d
10
10
  zh: 7c87f54334bf6048
11
11
  /chatcode-chatcode-cli/app-arguments:
12
- en: 591d23e87484c54c
13
- zh: fb932880cc5b3823
12
+ en: 57439d3d02b1c963
13
+ zh: 5f86d52b4790a834
14
14
  /chatcode-chatcode-cli/profiles:
15
15
  en: 36405fc361505950
16
16
  zh: f6d1a6c77032276d
package/README.md CHANGED
@@ -30,6 +30,8 @@ The invoking directory is the default workspace root. The `web`, `headless`, `sd
30
30
 
31
31
  ## App arguments
32
32
 
33
+ The installed launcher enables Node's module compile cache before loading the application. Later launches can reuse compiled modules; the first launch still builds the cache. `NODE_COMPILE_CACHE` selects its directory and `NODE_DISABLE_COMPILE_CACHE=1` disables it. An unavailable cache does not block startup or write into the installation. Startup rejects an enabled TUI whose dependencies did not activate; it preserves the original failure instead of waiting indefinitely. Do not delete persistent `session.lock` files: their POSIX kernel locks release on process exit, and the file alone does not indicate ownership.
34
+
33
35
  The launcher parses only its own flags and hands everything after them to the booted profile, where any injected app plugin may parse the shared immutable snapshot ([`dsh-cmdline`](../../packages/boot/cmdline/README.md)). The first token the launcher does not recognize starts the app's arguments:
34
36
 
35
37
  ```sh
package/README.zh.md CHANGED
@@ -30,6 +30,8 @@
30
30
 
31
31
  ## 应用参数
32
32
 
33
+ 发布版启动器在加载应用前启用 Node 模块编译缓存,后续启动可复用编译结果,首次启动仍需生成缓存。`NODE_COMPILE_CACHE` 指定缓存目录,`NODE_DISABLE_COMPILE_CACHE=1` 可关闭缓存。缓存不可用不会阻止启动,也不会写入安装目录。启用的 TUI 若因依赖未激活而不可用,启动会保留原始错误并终止,不再无限等待。不要删除常驻的 `session.lock` 文件:它使用的 POSIX 内核锁会在进程退出时释放,仅凭文件存在无法判断是否仍被持有。
34
+
33
35
  启动器只解析自身的 flag,并将其后的所有内容交给已启动的 profile;注入该 profile 的任意应用插件都可以解析这份共享的不可变快照([`dsh-cmdline`](../../packages/boot/cmdline/README.zh.md))。启动器无法识别的第一个 token 标志着应用参数的开始:
34
36
 
35
37
  ```sh
@@ -1,12 +1,12 @@
1
- import { a as compositionRoot, i as bindCallerEffect, o as concreteService, r as assertCallerContext, t as activationContext } from "./host-access-B0CRAwsX.js";
2
- import { a as declaresPermission, d as normalizePermissionScope, i as declaresObserverScope, m as scopeCovers, n as componentIdentityOf, o as requireComponentIdentity, p as rawScopeCovers, s as requiresContract, u as INTERCEPT_PERMISSIONS } from "./component-identity-DFJD_d-P.js";
3
- import { B as createAdmissionCatalog, G as validateSetInput, H as validateDeleteOutput, K as validateSetOutput, L as TUI_DECISION_EVENT_NAMES, M as loadSpecData, N as registryEntries, P as verifyContractProfiles, S as DATA_DIR, U as validateGetInput, V as validateDeleteInput, W as validateGetOutput, X as defineProtocolDeclaration, Y as projectManifest, j as digestFile, p as cleanScalarText, q as validateMessageEvent, x as readGrantStore } from "./extension-events-qXmhzmHo.js";
1
+ import { a as compositionRoot, i as bindCallerEffect, o as concreteService, r as assertCallerContext, t as activationContext } from "./host-access-CMg6rsWt.js";
2
+ import { a as declaresPermission, d as normalizePermissionScope, i as declaresObserverScope, m as scopeCovers, n as componentIdentityOf, o as requireComponentIdentity, p as rawScopeCovers, s as requiresContract, u as INTERCEPT_PERMISSIONS } from "./component-identity-Jb1DYjke.js";
3
+ import { B as createAdmissionCatalog, G as validateSetInput, H as validateDeleteOutput, K as validateSetOutput, L as TUI_DECISION_EVENT_NAMES, M as loadSpecData, N as registryEntries, P as verifyContractProfiles, S as DATA_DIR, U as validateGetInput, V as validateDeleteInput, W as validateGetOutput, X as defineProtocolDeclaration, Y as projectManifest, j as digestFile, p as cleanScalarText, q as validateMessageEvent, x as readGrantStore } from "./extension-events-DKX4LXOd.js";
4
4
  import { appendFileSync, mkdirSync, readFileSync } from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { dirname, join } from "node:path";
7
7
  import { Service } from "@deepseek-ai/cordis";
8
8
  import { withFileLock, writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
9
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/validate.js
9
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/validate.js
10
10
  /** Semantic validation layered on the official manifest parser/projection. */
11
11
  const coordinateKey$1 = (coordinate) => `${coordinate.apiVersion}#${coordinate.kind}`;
12
12
  const groupOf = (apiVersion) => apiVersion.split("/")[0] ?? "";
@@ -124,7 +124,7 @@ function validateHost(index, host) {
124
124
  }
125
125
  }
126
126
  //#endregion
127
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/negotiate.js
127
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/negotiate.js
128
128
  /** Five-state admission decision using dsh-std projection and ProtocolCatalog. */
129
129
  const coordinateKey = (ref) => `${ref.apiVersion}#${ref.kind}`;
130
130
  function negotiate(index, manifest, host, grants = []) {
@@ -197,7 +197,7 @@ function negotiate(index, manifest, host, grants = []) {
197
197
  } : { decision: "compatible" };
198
198
  }
199
199
  //#endregion
200
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/schema-check.js
200
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/schema-check.js
201
201
  /**
202
202
  * 零依赖 JSON Schema 校验器——上游 `conformance/tests/run.js` 的 check()
203
203
  * 的保真 TS 移植。刻意只实现 vendored schemas 用到的子集:本地 $ref、
@@ -301,7 +301,7 @@ function check(value, schema, rootSchema = schema, where = "$") {
301
301
  }
302
302
  }
303
303
  //#endregion
304
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/host-descriptor.js
304
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/host-descriptor.js
305
305
  /** Build the current ChatCode CLI TUI Host Descriptor from the pinned admission profile. */
306
306
  const HOST_SUPPORTED_CONTRACTS = Object.freeze([
307
307
  {
@@ -453,7 +453,7 @@ function buildHostDescriptor(options) {
453
453
  });
454
454
  }
455
455
  //#endregion
456
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/effect-ledger.js
456
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/effect-ledger.js
457
457
  /**
458
458
  * Effect ledger (C-060): an append-only JSONL journal of plugin-visible
459
459
  * effects at `~/.chatcode-cli/tui/effect-ledger.jsonl`, mounted by the
@@ -645,7 +645,7 @@ function resumeSequence(file) {
645
645
  return max + 1;
646
646
  }
647
647
  //#endregion
648
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin-storage.js
648
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin-storage.js
649
649
  /**
650
650
  * storage.local contract surface (C-040, `storage.dsh/v1alpha1#LocalStorage`):
651
651
  * per-plugin private persistence, mounted by the dsh-tui-plugin-host row as
@@ -986,7 +986,7 @@ var TuiPluginStorageRuntime = class extends Service {
986
986
  }
987
987
  };
988
988
  //#endregion
989
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/message-observer.js
989
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/message-observer.js
990
990
  /**
991
991
  * messages.observe contract surface (C-042,
992
992
  * `messages.dsh/v1alpha1#MessageObserver`): the host event broker, mounted
@@ -1494,7 +1494,7 @@ function observerStateFor(runtime) {
1494
1494
  return state;
1495
1495
  }
1496
1496
  //#endregion
1497
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-attribution.js
1497
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-attribution.js
1498
1498
  /**
1499
1499
  * Command ownership attribution — the data source for the C-041 invoke
1500
1500
  * checkpoint's per-owner grant decision.
@@ -1572,7 +1572,7 @@ function commandOwner(ctx, definition) {
1572
1572
  return ownerMaps.get(key)?.get(handler);
1573
1573
  }
1574
1574
  //#endregion
1575
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-errors.js
1575
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-errors.js
1576
1576
  /**
1577
1577
  * commands contract error-code alignment (C-041,
1578
1578
  * `commands.dsh/v1alpha1#Command`): the official `dsh-commands` runtime
@@ -1,6 +1,6 @@
1
- import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-B0CRAwsX.js";
1
+ import { a as compositionRoot, i as bindCallerEffect, n as activationFiber, o as concreteService, s as requirePluginCaller } from "./host-access-CMg6rsWt.js";
2
2
  import { Service } from "@deepseek-ai/cordis";
3
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-trees.js
3
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/command-trees.js
4
4
  /** Provider-neutral subcommand completion registry for terminal front doors. */
5
5
  const name = "dsh-tui-command-trees";
6
6
  /** Small host-only registry; command execution remains owned by dsh-commands. */
@@ -1,6 +1,6 @@
1
- import { i as bindCallerEffect, n as activationFiber } from "./host-access-B0CRAwsX.js";
1
+ import { i as bindCallerEffect, n as activationFiber } from "./host-access-CMg6rsWt.js";
2
2
  import { randomUUID } from "node:crypto";
3
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/permission-scope.js
3
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/permission-scope.js
4
4
  /** Permission scope normalization shared by admission and runtime checks. */
5
5
  const STORAGE_PERMISSIONS = new Set(["storage.local.read", "storage.local.write"]);
6
6
  const INTERCEPT_PERMISSIONS = new Set([
@@ -76,7 +76,7 @@ function rawScopeCovers(permission, declared, actual, componentId) {
76
76
  return normalizedDeclared !== void 0 && normalizedActual !== void 0 && permissionScopeCovers(permission, normalizedDeclared, normalizedActual);
77
77
  }
78
78
  //#endregion
79
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/component-identity.js
79
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/component-identity.js
80
80
  /** Verified Component identity bound to one Cordis activation owner. */
81
81
  var ComponentIdentityError = class extends Error {
82
82
  code;
@@ -1,12 +1,12 @@
1
1
  import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-2rV9d50f.js";
2
- import { a as compositionRoot, i as bindCallerEffect } from "./host-access-B0CRAwsX.js";
3
- import { c as requiresDecisionEvents, d as normalizePermissionScope, f as permissionScopeCovers, l as INTERCEPT_EVENT_SCOPE_BY_PERMISSION, n as componentIdentityOf } from "./component-identity-DFJD_d-P.js";
2
+ import { a as compositionRoot, i as bindCallerEffect } from "./host-access-CMg6rsWt.js";
3
+ import { c as requiresDecisionEvents, d as normalizePermissionScope, f as permissionScopeCovers, l as INTERCEPT_EVENT_SCOPE_BY_PERMISSION, n as componentIdentityOf } from "./component-identity-Jb1DYjke.js";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { homedir } from "node:os";
7
7
  import { dirname, join, resolve } from "node:path";
8
8
  import { createHash } from "node:crypto";
9
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/core/lib/index.js
9
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/core/lib/index.js
10
10
  function protocolKey(reference) {
11
11
  return `${reference.apiVersion}\0${reference.kind}`;
12
12
  }
@@ -408,7 +408,7 @@ function comparePrerelease(left, right) {
408
408
  return 0;
409
409
  }
410
410
  //#endregion
411
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/manifest/lib/index.js
411
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/manifest/lib/index.js
412
412
  const COMPONENT_API_VERSION = "manifest.dsh/internal/v1alpha1";
413
413
  const COMMUNITY_PERMISSION_API_VERSION = "community.dsh/v1alpha1";
414
414
  const COMMUNITY_PERMISSION_KIND = "Permission";
@@ -1012,7 +1012,7 @@ function canonical(value) {
1012
1012
  return JSON.stringify(value) ?? "null";
1013
1013
  }
1014
1014
  //#endregion
1015
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js
1015
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js
1016
1016
  /** Reusable RPC-shaped protocol definition. Domain packages opt into these semantics explicitly. */
1017
1017
  function defineCapabilityProtocol(options) {
1018
1018
  const definition = {
@@ -1068,7 +1068,7 @@ function isConnectionPolicy(value) {
1068
1068
  return typeof value === "object" && value !== null && typeof value.endpointByParticipant === "object" && value.endpointByParticipant !== null;
1069
1069
  }
1070
1070
  //#endregion
1071
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/presentation/lib/callback.js
1071
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/presentation/lib/callback.js
1072
1072
  const EXTERNAL_REDIRECT_KIND = "ExternalRedirect";
1073
1073
  const emptySpec$3 = (value) => {
1074
1074
  if (value !== void 0) throw new TypeError("ExternalRedirect does not accept spec in v1alpha1");
@@ -1084,7 +1084,7 @@ Object.freeze({
1084
1084
  kind: EXTERNAL_REDIRECT_KIND
1085
1085
  });
1086
1086
  //#endregion
1087
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/presentation/lib/index.js
1087
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/presentation/lib/index.js
1088
1088
  const API_VERSION$3 = "presentation.dsh/v1alpha1";
1089
1089
  const OPEN_EXTERNAL_KIND = "OpenExternal";
1090
1090
  const COPY_TEXT_KIND = "CopyText";
@@ -1261,7 +1261,7 @@ function deepFreeze(value) {
1261
1261
  return value;
1262
1262
  }
1263
1263
  //#endregion
1264
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/command/lib/index.js
1264
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/command/lib/index.js
1265
1265
  const API_VERSION$2 = "commands.dsh/v1alpha1";
1266
1266
  const KIND$2 = "Command";
1267
1267
  const RUNTIME_KIND = "CommandRuntime";
@@ -1455,7 +1455,7 @@ function exact(value, allowed, label) {
1455
1455
  if (unknown.length > 0) throw new TypeError(`${label} contains unknown field ${JSON.stringify(unknown[0])}`);
1456
1456
  }
1457
1457
  //#endregion
1458
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/messages/lib/index.js
1458
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/messages/lib/index.js
1459
1459
  const API_VERSION$1 = "messages.dsh/v1alpha1";
1460
1460
  const KIND$1 = "MessageObserver";
1461
1461
  const EVENT_TYPE = "messages.observe";
@@ -1588,7 +1588,7 @@ function record(value) {
1588
1588
  return typeof value === "object" && value !== null && !Array.isArray(value);
1589
1589
  }
1590
1590
  //#endregion
1591
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/storage/lib/index.js
1591
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/node_modules/@dsh-std/storage/lib/index.js
1592
1592
  const API_VERSION = "storage.dsh/v1alpha1";
1593
1593
  const KIND = "LocalStorage";
1594
1594
  const protocol = Object.freeze({
@@ -1687,7 +1687,7 @@ function key(value, label) {
1687
1687
  if (typeof value !== "string" || value.length === 0) throw new TypeError(`${label} must be a non-empty string`);
1688
1688
  }
1689
1689
  //#endregion
1690
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/dsh-ecosystem-spec/protocols/tui-channel.js
1690
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/dsh-ecosystem-spec/protocols/tui-channel.js
1691
1691
  const TUI_CHANNEL = Object.freeze({
1692
1692
  apiVersion: "tui.dsh/v1alpha1",
1693
1693
  kind: "Channel"
@@ -1759,7 +1759,7 @@ function nonEmpty(value, label) {
1759
1759
  if (typeof value !== "string" || value.trim() === "") throw new TypeError(`${label} must be a non-empty string`);
1760
1760
  }
1761
1761
  //#endregion
1762
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/tui-extension.js
1762
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/tui-extension.js
1763
1763
  /** ChatCode CLI TUI private protocol registration on the shared dsh-std catalog. */
1764
1764
  const TUI_EXTENSION_API_VERSION = "tui.dsh/v1alpha1";
1765
1765
  const DECISION_EVENTS_COORDINATE = Object.freeze({
@@ -1828,7 +1828,7 @@ function createAdmissionCatalog() {
1828
1828
  };
1829
1829
  }
1830
1830
  //#endregion
1831
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/registry.js
1831
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/registry.js
1832
1832
  /** Load and verify the pinned ChatCode CLI TUI admission profile. */
1833
1833
  const REGISTRY_FILE = join("registry", "registry-0.15.json");
1834
1834
  const EXPECTED_PROFILE_VERSION = "tui-admission/0.15";
@@ -2043,7 +2043,7 @@ function verifyContractProfiles(data) {
2043
2043
  return failures;
2044
2044
  }
2045
2045
  //#endregion
2046
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/paths.js
2046
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/paths.js
2047
2047
  const CHATCODE_CLI_HOME_ENV = "CHATCODE_CLI_HOME";
2048
2048
  const LEGACY_DSH_HOME_ENV = "DSH_HOME";
2049
2049
  const CHATCODE_CLI_TUI_ENV_PREFIX = "CHATCODE_CLI_TUI_";
@@ -2145,7 +2145,7 @@ function detectLegacyEnv(env = process.env) {
2145
2145
  return Object.keys(RENAMED_ENV).filter((name) => env[name] !== void 0);
2146
2146
  }
2147
2147
  //#endregion
2148
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/grants.js
2148
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/grants.js
2149
2149
  /** Live, scoped plugin grant evaluation. */
2150
2150
  const EXTENSION_GRANTS_FILE = "extension-grants.json";
2151
2151
  function parseRule(value) {
@@ -3020,7 +3020,7 @@ function stripAnsi(string) {
3020
3020
  return string.replace(regex, "");
3021
3021
  }
3022
3022
  //#endregion
3023
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/intl.js
3023
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/intl.js
3024
3024
  let graphemeSegmenter;
3025
3025
  /**
3026
3026
  * Memoized `Intl.Segmenter` with grapheme granularity, used by the ported Ink
@@ -3031,7 +3031,7 @@ function getGraphemeSegmenter() {
3031
3031
  return graphemeSegmenter ??= new Intl.Segmenter("en", { granularity: "grapheme" });
3032
3032
  }
3033
3033
  //#endregion
3034
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/stringWidth.js
3034
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/stringWidth.js
3035
3035
  const EMOJI_REGEX = (0, import_emoji_regex.default)();
3036
3036
  /**
3037
3037
  * Fallback JavaScript implementation of stringWidth when Bun.stringWidth is not available.
@@ -3253,7 +3253,7 @@ const BUN_STRING_WIDTH_OPTS = { ambiguousIsNarrow: true };
3253
3253
  */
3254
3254
  const stringWidth = bunStringWidth ? (str) => bunStringWidth(str, BUN_STRING_WIDTH_OPTS) : stringWidthJavaScript;
3255
3255
  //#endregion
3256
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sanitize.js
3256
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sanitize.js
3257
3257
  /**
3258
3258
  * The render-path sanitization contract for plugin-supplied text — the
3259
3259
  * single implementation behind every managed-UI seam (dialogs, status line,
@@ -3312,7 +3312,7 @@ function flattenInline(value) {
3312
3312
  return value.replace(/[\x00-\x1f\x7f-\x9f]/g, " ");
3313
3313
  }
3314
3314
  //#endregion
3315
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/decision-guard.js
3315
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/decision-guard.js
3316
3316
  /**
3317
3317
  * RFC 0005 D-7 enforcement: subscribing to an intercept-class (decision)
3318
3318
  * event requires an explicit host-side grant — default deny.
@@ -3564,7 +3564,7 @@ function installDecisionGuard(ctx, grants) {
3564
3564
  });
3565
3565
  }
3566
3566
  //#endregion
3567
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/extension-events.js
3567
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/extension-events.js
3568
3568
  /**
3569
3569
  * Decision-point events the TUI fires on the cordis bus so plugins can
3570
3570
  * intercept, cancel, or customize interactive flows — the `session_before_*`
@@ -1,6 +1,6 @@
1
1
  import { Context, Fiber } from "@deepseek-ai/cordis";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/host-access.js
3
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/host-access.js
4
4
  /**
5
5
  * Recover the concrete Cordis service for host-only adapters.
6
6
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/modifiers.js
1
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/modifiers.js
2
2
  /**
3
3
  * Cross-platform modifier-key helpers. Windows/Linux muscle memory uses
4
4
  * Ctrl+<key>; on macOS the same action maps to Cmd+<key>. Terminals deliver
@@ -39,7 +39,7 @@ function isPlainReturnInput(input, key) {
39
39
  return /^[\r\n]+$/u.test(input) && !key.ctrl && !key.meta && !key.shift && !key.super;
40
40
  }
41
41
  //#endregion
42
- //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.19_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/keymap.js
42
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.20_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/keymap.js
43
43
  /**
44
44
  * Built-in keyboard-shortcut keymap: the shared combo grammar, the action
45
45
  * registry, and the live override cache behind `/settings` customization.