@chatcode/chatcode-cli 3.0.2-rc.2 → 3.0.2-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.i18n.yaml +4 -4
  2. package/README.md +7 -1
  3. package/README.zh.md +7 -1
  4. package/lib/bin.js +11 -67
  5. package/lib/{command-errors-CIYn1nnW.js → command-errors-uo0j5Wi8.js} +12 -12
  6. package/lib/{command-trees-8o99Bws7.js → command-trees-D4SZ2sGk.js} +2 -2
  7. package/lib/{component-identity-CnmIKHEF.js → component-identity-C02l24iT.js} +3 -3
  8. package/lib/{dist-DxjlHHph.js → dist-w_sIm4VD.js} +203 -197
  9. package/lib/{dump-config-BSTrhTT_.js → dump-config-CauO75nE.js} +1 -1
  10. package/lib/dump-config-CijLv_kn.js +2 -0
  11. package/lib/{dump-config-schema-Cz4A13GB.js → dump-config-schema-CObLWWaW.js} +2 -2
  12. package/lib/{extension-events-DciGPKJa.js → extension-events-D6DbIdnG.js} +20 -20
  13. package/lib/{home-migration-DLaSvmfn.js → home-migration-BjDmRwBB.js} +23 -4
  14. package/lib/{host-access-CmD27uhQ.js → host-access-BdqThvw7.js} +1 -1
  15. package/lib/{keymap-CFChEJ2W.js → keymap-DFoC50J1.js} +2 -2
  16. package/lib/{plugin-jvd9PCVt.js → plugin-B37GhsdI.js} +458 -495
  17. package/lib/{plugin-DYHtreEd.js → plugin-Cn-hyYY8.js} +1 -1
  18. package/lib/{profile-boot-Blq7uqhx.js → profile-boot-SJGbpLgN.js} +13 -1
  19. package/lib/profile-boot.js +1 -1
  20. package/lib/{scenes-ai_8sHDs.js → scenes-Dk6DYkO9.js} +3 -3
  21. package/lib/{settings-sections-QQ1-2lhL.js → settings-sections-D4Ozrymr.js} +3 -3
  22. package/lib/startup-diagnostics-C_hRCp-q.js +91 -0
  23. package/lib/{themes-DTzG_9I_.js → themes-DDI83rNa.js} +12 -12
  24. package/lib/tui-compat-command-trees.js +1 -1
  25. package/lib/tui-compat-extensions.js +3 -3
  26. package/lib/tui-compat-plugin-host.js +5 -5
  27. package/lib/tui-compat-scenes.js +1 -1
  28. package/lib/tui-compat-settings-sections.js +1 -1
  29. package/lib/tui-compat-working-activity.js +1 -1
  30. package/lib/tui-compat-workspaces.js +1 -1
  31. package/lib/tui-compat.js +5 -5
  32. package/lib/{tuiDisplayPrefs-BCHRRcfe.js → tuiDisplayPrefs-CJ9aBVkB.js} +1 -1
  33. package/lib/types/home-migration.d.ts +8 -0
  34. package/lib/types/startup-diagnostics.d.ts +13 -0
  35. package/lib/{workspaces-CznCgVHv.js → workspaces-Dt_J35P0.js} +2 -2
  36. package/package.json +25 -25
  37. package/runtime/manifest.json +1 -1
  38. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  39. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  40. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  41. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -8
  42. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/HeaderAction.d.ts +1 -1
  43. package/runtime/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +2 -1
  44. package/runtime/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +2 -1
  45. package/runtime/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +2 -1
  46. package/lib/dump-config-DBW7YLx-.js +0 -2
@@ -1,4 +1,4 @@
1
- import { a as chatCodeProfilePatchFiles, f as prepareProfile, i as PROFILE_ROOT_FILENAME, s as homePatchPath } from "./profile-boot-Blq7uqhx.js";
1
+ import { a as chatCodeProfilePatchFiles, f as prepareProfile, i as PROFILE_ROOT_FILENAME, s as homePatchPath } from "./profile-boot-SJGbpLgN.js";
2
2
  import { existsSync } from "node:fs";
3
3
  import { loadOptionalPatches, loadOverlayPatches, renderConfigDump } from "@deepseek-ai/dsh-app-boot";
4
4
  import { join, resolve } from "node:path";
@@ -0,0 +1,2 @@
1
+ import { n as runDumpConfig } from "./dump-config-CauO75nE.js";
2
+ export { runDumpConfig };
@@ -1,5 +1,5 @@
1
- import { f as prepareProfile, r as INSTALL_ANCHOR } from "./profile-boot-Blq7uqhx.js";
2
- import { t as collectConfigDumpLayers } from "./dump-config-BSTrhTT_.js";
1
+ import { f as prepareProfile, r as INSTALL_ANCHOR } from "./profile-boot-SJGbpLgN.js";
2
+ import { t as collectConfigDumpLayers } from "./dump-config-CauO75nE.js";
3
3
  import { generateConfigSchema } from "@deepseek-ai/dsh-app-boot";
4
4
  //#region lib/types/dump-config-schema.js
5
5
  /**
@@ -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-CmD27uhQ.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-CnmIKHEF.js";
2
+ import { a as compositionRoot, i as bindCallerEffect } from "./host-access-BdqThvw7.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-C02l24iT.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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_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.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/plugin-spec/registry.js
1831
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/paths.js
2046
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/grants.js
2148
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/intl.js
3023
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/stringWidth.js
3034
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sanitize.js
3256
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_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.12_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.9_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.12_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_*`
@@ -68,9 +68,28 @@ function resolveHomeMigrationRoots(env = process.env) {
68
68
  tuiDestination: join(destination, "tui")
69
69
  };
70
70
  }
71
- /** Find legacy trees with durable entries that are still absent from the canonical home. */
72
- async function detectPendingHomeMigrations(roots) {
73
- return (await Promise.all([planHomeMigration(roots.source, roots.destination), planHomeMigration(roots.tuiSource, roots.tuiDestination)])).filter((plan) => plan.entries.some((entry) => entry.action === "copy-file" || entry.action === "create-directory"));
71
+ /**
72
+ * Probe the legacy roots for a startup reminder without descending or reading file contents.
73
+ * A positive result reports legacy data, not a claim that it still needs copying;
74
+ * the explicit migration command owns destination comparison and fingerprinting.
75
+ * @param roots - legacy directories and their canonical destinations.
76
+ * @returns whether either distinct, readable legacy root contains a durable entry.
77
+ */
78
+ async function hasLegacyHomeData(roots) {
79
+ for (const [source, destination] of [[roots.source, roots.destination], [roots.tuiSource, roots.tuiDestination]]) {
80
+ if (resolve(source) === resolve(destination)) continue;
81
+ try {
82
+ if (await pathKind(source) !== "directory") continue;
83
+ if ((await readdir(source, { withFileTypes: true })).some((child) => {
84
+ const kind = child.isDirectory() ? "directory" : child.isFile() ? "file" : "other";
85
+ return kind !== "other" && !isTransientMigrationPath(child.name, kind);
86
+ })) return true;
87
+ } catch (error) {
88
+ const code = error.code;
89
+ if (code !== "ENOENT" && code !== "ENOTDIR" && code !== "EACCES" && code !== "EPERM") throw error;
90
+ }
91
+ }
92
+ return false;
74
93
  }
75
94
  function createPlanId(plan) {
76
95
  return createHash("sha256").update(JSON.stringify(plan)).digest("hex").slice(0, 24);
@@ -304,4 +323,4 @@ function formatHomeMigrationPlan(plan) {
304
323
  ].join("\n");
305
324
  }
306
325
  //#endregion
307
- export { applyHomeMigration, detectPendingHomeMigrations, formatHomeMigrationPlan, planHomeMigration, resolveHomeMigrationRoots };
326
+ export { applyHomeMigration, formatHomeMigrationPlan, hasLegacyHomeData, planHomeMigration, resolveHomeMigrationRoots };
@@ -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.9_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.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/modifiers.js
1
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.9_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/keymap.js
42
+ //#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.12_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.