@jingyi0605/codingns4dsh 0.2.1-rc.8 → 0.2.2-beta.1

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 (103) hide show
  1. package/README.en.md +5 -5
  2. package/README.md +6 -6
  3. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
  4. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -1
  5. package/data/build/dist/bootstrap/index.d.ts +1 -1
  6. package/data/build/dist/bootstrap/index.d.ts.map +1 -1
  7. package/data/build/dist/client/bundle.js +513 -715
  8. package/data/build/dist/client/bundle.js.map +1 -1
  9. package/data/build/dist/client/client.command-token.js +1 -2
  10. package/data/build/dist/client/client.delegate-command.js +4 -8
  11. package/data/build/dist/client/client.delegate-command.js.map +1 -1
  12. package/data/build/dist/client/client.editor-engine.js +266 -198
  13. package/data/build/dist/client/client.editor-engine.js.map +1 -1
  14. package/data/build/dist/client/client.magpie-model-tag.js +25 -50
  15. package/data/build/dist/client/client.magpie-model-tag.js.map +1 -1
  16. package/data/build/dist/client/client.rolldown-runtime.js +2 -3
  17. package/data/build/dist/client/client.xterm-engine.js +3 -6
  18. package/data/build/dist/client/client.xterm-engine.js.map +1 -1
  19. package/data/build/dist/client/features/file-management.d.ts.map +1 -1
  20. package/data/build/dist/client/features/file-management.js +6 -0
  21. package/data/build/dist/client/features/file-management.js.map +1 -1
  22. package/data/build/dist/client/features/plugin-update.d.ts.map +1 -1
  23. package/data/build/dist/client/features/plugin-update.js +6 -0
  24. package/data/build/dist/client/features/plugin-update.js.map +1 -1
  25. package/data/build/dist/client/features/session-translation.d.ts.map +1 -1
  26. package/data/build/dist/client/features/session-translation.js +6 -0
  27. package/data/build/dist/client/features/session-translation.js.map +1 -1
  28. package/data/build/dist/client/features/terminal-enhancement.d.ts.map +1 -1
  29. package/data/build/dist/client/features/terminal-enhancement.js +6 -0
  30. package/data/build/dist/client/features/terminal-enhancement.js.map +1 -1
  31. package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -1
  32. package/data/build/dist/client/features/workspace-session-enhancement.js +6 -0
  33. package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -1
  34. package/data/build/dist/client/git-management.d.ts.map +1 -1
  35. package/data/build/dist/client/git-management.js +6 -0
  36. package/data/build/dist/client/git-management.js.map +1 -1
  37. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +3 -1
  38. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
  39. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +1 -1
  40. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -1
  41. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +36 -4
  42. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -1
  43. package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
  44. package/data/build/dist/dsh-capabilities/matrix.js +4 -5
  45. package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
  46. package/data/build/dist/dsh-capabilities/routes.js +6 -13
  47. package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
  48. package/data/build/dist/features/index.d.ts +1 -1
  49. package/data/build/dist/features/index.d.ts.map +1 -1
  50. package/data/build/dist/features/registry.js +19 -0
  51. package/data/build/dist/features/registry.js.map +1 -1
  52. package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts +11 -0
  53. package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts.map +1 -0
  54. package/data/build/dist/host/cli-adapters/dsh-model-catalog.js +34 -0
  55. package/data/build/dist/host/cli-adapters/dsh-model-catalog.js.map +1 -0
  56. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
  57. package/data/build/dist/host/cli-adapters/feature.js +3 -1
  58. package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
  59. package/data/build/dist/host/features/file-management.d.ts.map +1 -1
  60. package/data/build/dist/host/features/file-management.js +6 -0
  61. package/data/build/dist/host/features/file-management.js.map +1 -1
  62. package/data/build/dist/host/features/git-management.d.ts.map +1 -1
  63. package/data/build/dist/host/features/git-management.js +6 -0
  64. package/data/build/dist/host/features/git-management.js.map +1 -1
  65. package/data/build/dist/host/features/host-status.d.ts +8 -0
  66. package/data/build/dist/host/features/host-status.d.ts.map +1 -1
  67. package/data/build/dist/host/features/host-status.js +14 -0
  68. package/data/build/dist/host/features/host-status.js.map +1 -1
  69. package/data/build/dist/host/features/plugin-update.d.ts.map +1 -1
  70. package/data/build/dist/host/features/plugin-update.js +6 -0
  71. package/data/build/dist/host/features/plugin-update.js.map +1 -1
  72. package/data/build/dist/host/features/session-prompt-translation.js +1 -1
  73. package/data/build/dist/host/features/session-prompt-translation.js.map +1 -1
  74. package/data/build/dist/host/features/session-title-optimization.d.ts.map +1 -1
  75. package/data/build/dist/host/features/session-title-optimization.js +6 -0
  76. package/data/build/dist/host/features/session-title-optimization.js.map +1 -1
  77. package/data/build/dist/host/features/session-translation.d.ts.map +1 -1
  78. package/data/build/dist/host/features/session-translation.js +6 -0
  79. package/data/build/dist/host/features/session-translation.js.map +1 -1
  80. package/data/build/dist/host/features/types.d.ts +3 -0
  81. package/data/build/dist/host/features/types.d.ts.map +1 -1
  82. package/data/build/dist/host/index.d.ts.map +1 -1
  83. package/data/build/dist/host/index.js +10 -1
  84. package/data/build/dist/host/index.js.map +1 -1
  85. package/data/build/dist/host/session-handle-eviction.d.ts +2 -0
  86. package/data/build/dist/host/session-handle-eviction.d.ts.map +1 -1
  87. package/data/build/dist/host/session-handle-eviction.js +21 -6
  88. package/data/build/dist/host/session-handle-eviction.js.map +1 -1
  89. package/data/build/dist/shared/contracts/errors.d.ts +2 -2
  90. package/data/build/dist/shared/contracts/errors.d.ts.map +1 -1
  91. package/data/build/dist/shared/contracts/feature.d.ts +14 -0
  92. package/data/build/dist/shared/contracts/feature.d.ts.map +1 -1
  93. package/data/build/dist/shared/contracts/host-status.d.ts +18 -0
  94. package/data/build/dist/shared/contracts/host-status.d.ts.map +1 -1
  95. package/data/build/dist/shared/contracts/version.d.ts +4 -4
  96. package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
  97. package/data/build/dist/shared/contracts/version.js +3 -3
  98. package/data/build/dist/shared/contracts/version.js.map +1 -1
  99. package/package.json +35 -35
  100. package/profile/README.md +2 -2
  101. package/profile/package.json +3 -3
  102. package/profile/version.json +3 -3
  103. package/version.json +3 -3
@@ -8,7 +8,7 @@ window.__ModuleLoader__.load({
8
8
  let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
9
9
  _deepseek_ai_dsh_client_ui_primitives = require_rolldown_runtime.__toESM(_deepseek_ai_dsh_client_ui_primitives, 1);
10
10
  let react = require("react");
11
- //#region src/shared/provider-icon-resources.ts
11
+ // src/shared/provider-icon-resources.ts
12
12
  /** Client 与 Host 共用固定资源目录;避开 Desktop 将 /assets 固定映射到应用安装目录的路径。 */
13
13
  const PROVIDER_ICON_PATH = "/api/codingns/provider-icons/";
14
14
  const PROVIDER_ICON_FILES = {
@@ -34,8 +34,7 @@ window.__ModuleLoader__.load({
34
34
  antigravity: "antigravity.svg",
35
35
  doubao: "doubao.png"
36
36
  };
37
- //#endregion
38
- //#region src/client/locales/debug.ts
37
+ // src/client/locales/debug.ts
39
38
  /**
40
39
  * debug 域词典片段。
41
40
  *
@@ -198,8 +197,7 @@ window.__ModuleLoader__.load({
198
197
  "feature.debug.label": "工作区调试",
199
198
  "feature.debug.description": "启动终端并检查服务"
200
199
  };
201
- //#endregion
202
- //#region src/client/locales/fileWorkspace.ts
200
+ // src/client/locales/fileWorkspace.ts
203
201
  /**
204
202
  * fileWorkspace 域词典片段。
205
203
  *
@@ -352,8 +350,7 @@ window.__ModuleLoader__.load({
352
350
  "pwaPrompt.dismiss": "以后再说",
353
351
  "pwaPrompt.iosHint": "点击「分享」→「添加到主屏幕」即可安装。"
354
352
  };
355
- //#endregion
356
- //#region src/client/locales/git.ts
353
+ // src/client/locales/git.ts
357
354
  /**
358
355
  * git 域词典片段。
359
356
  *
@@ -604,8 +601,7 @@ window.__ModuleLoader__.load({
604
601
  "git.unknownTime": "未知时间",
605
602
  "git.dateLabel": "{month}月{day}日"
606
603
  };
607
- //#endregion
608
- //#region src/client/locales/panels.ts
604
+ // src/client/locales/panels.ts
609
605
  /**
610
606
  * panels 域词典片段。
611
607
  *
@@ -832,8 +828,7 @@ window.__ModuleLoader__.load({
832
828
  "translation.adapter.cursor": "Cursor",
833
829
  "translation.adapter.kiro": "Kiro"
834
830
  };
835
- //#endregion
836
- //#region src/client/locales/peerHost.ts
831
+ // src/client/locales/peerHost.ts
837
832
  /**
838
833
  * peerHost 域词典片段。
839
834
  *
@@ -1002,8 +997,7 @@ window.__ModuleLoader__.load({
1002
997
  "peerHost.stateActive": "preboot shim 已接管页面 Transport;本次页面的原生 Connection 将继续复用同一实例。",
1003
998
  "peerHost.statePending": "preboot shim 已随 CodingNS 安装;启用 PeerHost 后立即生效,原生工作区会直接读取聚合 Transport。"
1004
999
  };
1005
- //#endregion
1006
- //#region src/client/locales/peerHostWorkspace.ts
1000
+ // src/client/locales/peerHostWorkspace.ts
1007
1001
  /**
1008
1002
  * peerHostWorkspace 域词典片段。
1009
1003
  *
@@ -1102,8 +1096,7 @@ window.__ModuleLoader__.load({
1102
1096
  "peerHostWorkspace.hintNotReady": "“{host}”当前状态为“{status}”,请先在管理面板完成连接。",
1103
1097
  "peerHostWorkspace.manageHosts": "管理其他 DSH Host"
1104
1098
  };
1105
- //#endregion
1106
- //#region src/client/locales/terminalAuth.ts
1099
+ // src/client/locales/terminalAuth.ts
1107
1100
  /**
1108
1101
  * terminalAuth 域词典片段。
1109
1102
  *
@@ -1256,8 +1249,7 @@ window.__ModuleLoader__.load({
1256
1249
  "loginProtection.errorTimeoutRange": "会话超时时间必须是 60 到 604800 秒",
1257
1250
  "loginProtection.errorScopesRequired": "至少选择一个应用范围"
1258
1251
  };
1259
- //#endregion
1260
- //#region src/client/locales/usage.ts
1252
+ // src/client/locales/usage.ts
1261
1253
  /**
1262
1254
  * usage 域词典片段。
1263
1255
  *
@@ -1690,8 +1682,7 @@ window.__ModuleLoader__.load({
1690
1682
  "usage.magpieRequestsTitle": "Magpie 请求",
1691
1683
  "usage.magpieRequestsClose": "关闭"
1692
1684
  };
1693
- //#endregion
1694
- //#region src/client/locales/subagentCollapsed.ts
1685
+ // src/client/locales/subagentCollapsed.ts
1695
1686
  /**
1696
1687
  * subagentCollapsed 域词典片段。
1697
1688
  *
@@ -1786,8 +1777,7 @@ window.__ModuleLoader__.load({
1786
1777
  "subagentCollapsed.open.sidebar": "Open in sidebar",
1787
1778
  "subagentCollapsed.open.sidebar.aria": "Open {label} in sidebar"
1788
1779
  };
1789
- //#endregion
1790
- //#region src/shared/quick-apps-bootstrap-locale.ts
1780
+ // src/shared/quick-apps-bootstrap-locale.ts
1791
1781
  /** Shared by the client dictionary and the isolated credential landing page. */
1792
1782
  const quickAppBootstrapEn = {
1793
1783
  "quickApps.opening": "Opening application…",
@@ -1797,8 +1787,7 @@ window.__ModuleLoader__.load({
1797
1787
  "quickApps.opening": "正在打开应用…",
1798
1788
  "quickApps.bootstrapFailed": "无法建立应用访问,请从快捷应用重新打开并检查浏览器 Cookie 设置。"
1799
1789
  };
1800
- //#endregion
1801
- //#region src/client/locales/quickApps.ts
1790
+ // src/client/locales/quickApps.ts
1802
1791
  const en$5 = {
1803
1792
  "quickApps.storagePreview": "App data is saved in this browser. IndexedDB and URLs starting with / are not supported in this view.",
1804
1793
  "quickApps.storageFailed": "App data could not be saved in this browser: {message}",
@@ -2065,8 +2054,7 @@ window.__ModuleLoader__.load({
2065
2054
  "quickApps.status.missing-workspace": "原工作区不可用。",
2066
2055
  "quickApps.status.missing-file": "入口文件或应用目录不存在或无法访问。"
2067
2056
  };
2068
- //#endregion
2069
- //#region src/client/locales/cliManagement.ts
2057
+ // src/client/locales/cliManagement.ts
2070
2058
  const en$4 = {
2071
2059
  "cli.team.label": "Team eligibility",
2072
2060
  "cli.team.leadAndMember": "Collaborator and Lead",
@@ -2221,8 +2209,7 @@ window.__ModuleLoader__.load({
2221
2209
  "cli.manage.retryStatus": "重新查询状态",
2222
2210
  "cli.manage.reviewAgain": "查看新的操作"
2223
2211
  };
2224
- //#endregion
2225
- //#region src/client/locales/magpie.ts
2212
+ // src/client/locales/magpie.ts
2226
2213
  /** Copy for the optional Magpie usage dashboard. */
2227
2214
  const en$3 = {
2228
2215
  "feature.magpieManagement.label": "Magpie management and usage",
@@ -2938,8 +2925,7 @@ window.__ModuleLoader__.load({
2938
2925
  "magpie.install.customReset": "恢复自动检测",
2939
2926
  "magpie.install.disabledNote": "检测到可用的 Magpie CLI 前,Magpie 管理保持关闭。"
2940
2927
  };
2941
- //#endregion
2942
- //#region src/client/locales/pluginUpdate.ts
2928
+ // src/client/locales/pluginUpdate.ts
2943
2929
  const en$2 = {
2944
2930
  "update.localeTag": "en-US",
2945
2931
  "update.newVersionBadge": "New",
@@ -3070,8 +3056,7 @@ window.__ModuleLoader__.load({
3070
3056
  "update.package.rolled-back": "DSH 已恢复配置文件",
3071
3057
  "update.package.unknown": "未知;请检查 DSH 原生插件页面"
3072
3058
  };
3073
- //#endregion
3074
- //#region src/client/locales/credentials.ts
3059
+ // src/client/locales/credentials.ts
3075
3060
  const en$1 = {
3076
3061
  "feature.credentials.label": "Credential management",
3077
3062
  "feature.credentials.description": "Store usernames, passwords, API keys, and other confidential values on the Host. Selected fields reach external Agent processes only through environment variables.",
@@ -3164,8 +3149,7 @@ window.__ModuleLoader__.load({
3164
3149
  "credentials.commandDescription": "向当前外部 Agent 会话插入 Host 管理的凭据引用。",
3165
3150
  "credentials.commandUnavailable": "无法插入此凭据引用。"
3166
3151
  };
3167
- //#endregion
3168
- //#region src/client/locale.ts
3152
+ // src/client/locale.ts
3169
3153
  /** Codingns4DSH 自有词典命名空间。词典缺少的语言由 DSH 自动回退到英文。 */
3170
3154
  const CODINGNS_LOCALE_NS = "codingns";
3171
3155
  const CORE_EN = {
@@ -4208,8 +4192,7 @@ window.__ModuleLoader__.load({
4208
4192
  const adapterId = provider.slice(13);
4209
4193
  return adapterId === "" ? void 0 : adapterId;
4210
4194
  }
4211
- //#endregion
4212
- //#region src/client/provider-icons.ts
4195
+ // src/client/provider-icons.ts
4213
4196
  /** 未绑定和未知 Agent 使用中性灰,绝不冒充任一已知品牌色。 */
4214
4197
  const PROVIDER_NEUTRAL_COLOR = "#71717a";
4215
4198
  /**
@@ -4511,12 +4494,10 @@ window.__ModuleLoader__.load({
4511
4494
  if (/^(1|true|yes|on|info|debug)$/u.test(normalized)) return "info";
4512
4495
  return "off";
4513
4496
  }
4514
- //#endregion
4515
- //#region src/shared/contracts/transport.ts
4497
+ // src/shared/contracts/transport.ts
4516
4498
  /** Codingns4DSH Host RPC 的固定逻辑通道。 */
4517
4499
  const CODINGNS_RPC_CHANNEL = "/codingns";
4518
- //#endregion
4519
- //#region src/shared/contracts/peer-host.ts
4500
+ // src/shared/contracts/peer-host.ts
4520
4501
  /**
4521
4502
  * 工作区标签配色的取值范围。
4522
4503
  *
@@ -4622,8 +4603,7 @@ window.__ModuleLoader__.load({
4622
4603
  this.name = "ResourceScopeStaleError";
4623
4604
  }
4624
4605
  };
4625
- //#endregion
4626
- //#region src/client/cli-catalog.ts
4606
+ // src/client/cli-catalog.ts
4627
4607
  /** 设置页和选择器使用同一状态文案,检测中或失败都不能显示成未安装。 */
4628
4608
  function adapterDetectionLabel(adapter) {
4629
4609
  if (adapter.detectionState === "pending" || adapter.detectionState === "running") return "cli.detecting";
@@ -4708,8 +4688,7 @@ window.__ModuleLoader__.load({
4708
4688
  const message = errorMessage(error);
4709
4689
  return /^未知 CLI RPC: cli\/catalog\/refresh$/u.test(message) ? t("cli.redetectHostUnsupported") : message;
4710
4690
  }
4711
- //#endregion
4712
- //#region src/client/adapter-catalog-watch.ts
4691
+ // src/client/adapter-catalog-watch.ts
4713
4692
  const loads = /* @__PURE__ */ new WeakMap();
4714
4693
  const listeners = /* @__PURE__ */ new WeakMap();
4715
4694
  /** 手动检测完成后,让已挂载的选择器和模型目录一起更新。 */
@@ -4802,8 +4781,7 @@ window.__ModuleLoader__.load({
4802
4781
  remove();
4803
4782
  };
4804
4783
  }
4805
- //#endregion
4806
- //#region src/client/model-catalog-cache.ts
4784
+ // src/client/model-catalog-cache.ts
4807
4785
  /**
4808
4786
  * Client 侧模型目录缓存。
4809
4787
  *
@@ -4976,8 +4954,7 @@ window.__ModuleLoader__.load({
4976
4954
  }
4977
4955
  return cache;
4978
4956
  }
4979
- //#endregion
4980
- //#region src/dsh-capabilities/client/primitives-adapter.ts
4957
+ // src/dsh-capabilities/client/primitives-adapter.ts
4981
4958
  /** Older primitive packages may lack Markdown delegation. Do not fail the whole footer. */
4982
4959
  function hasNativeMarkdown(source = _deepseek_ai_dsh_client_ui_primitives) {
4983
4960
  const value = source;
@@ -5171,8 +5148,7 @@ window.__ModuleLoader__.load({
5171
5148
  ranked.sort((left, right) => Number(right.prefix) - Number(left.prefix) || right.score - left.score || left.index - right.index);
5172
5149
  return ranked.map((match) => match.item);
5173
5150
  }
5174
- //#endregion
5175
- //#region src/client/magpie-model-tag.ts
5151
+ // src/client/magpie-model-tag.ts
5176
5152
  const MAGPIE_MODEL_TAG_ATTRIBUTE = "data-codingns-magpie-model-tag";
5177
5153
  /**
5178
5154
  * Magpie 模型来源标签使用的喜鹊图标。
@@ -5250,7 +5226,6 @@ window.__ModuleLoader__.load({
5250
5226
  tag.append(logo);
5251
5227
  return tag;
5252
5228
  }
5253
- //#endregion
5254
5229
  Object.defineProperty(exports, "CODINGNS_RPC_CHANNEL", {
5255
5230
  enumerable: true,
5256
5231
  get: function() {