dsh-edge 0.19.0 → 0.19.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 (31) hide show
  1. package/THIRD_PARTY_NOTICES.md +1991 -1741
  2. package/dist/assets/index-5SrrfWpU.js +127 -0
  3. package/dist/assets/index-BPHePDI_.css +1 -0
  4. package/dist/index.html +3 -3
  5. package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +260 -20
  6. package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +12 -7
  7. package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +9 -20
  8. package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +90 -126
  9. package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +111 -50
  10. package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +14 -1
  11. package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +3 -3
  12. package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +216 -63
  13. package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +37 -23
  14. package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +4 -4
  15. package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +1 -1
  16. package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +7 -7
  17. package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1 -1
  18. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +10 -15
  19. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +9 -4
  20. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +183 -156
  21. package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +1 -1
  22. package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +6 -6
  23. package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +304 -54
  24. package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +1257 -218
  25. package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +1 -1
  26. package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +3 -2
  27. package/package.json +93 -93
  28. package/worker/direct/index.js +945 -891
  29. package/worker/isolated/index.js +809 -755
  30. package/dist/assets/index-Cq6ljTv2.css +0 -1
  31. package/dist/assets/index-Dy0OhsZ5.js +0 -127
@@ -97,10 +97,10 @@ window.__ModuleLoader__.load({
97
97
  /**
98
98
  * Open each pending plan automatically and retain a manual opener without answering it.
99
99
  *
100
- * The automatic open waits for a mounted Sidebar seat: a review that arrives
101
- * while the Conversation is off screen mounts in the same commit as the seat,
102
- * ahead of it, and the seat binds from its own effect. Reading the bound
103
- * session through the hook opens once that binding exists.
100
+ * The automatic open waits for a Session on screen. `ctx.sidebarRight` names
101
+ * the Session before the commit that brings its Conversation back renders, so
102
+ * a review that arrived while the Conversation was off screen opens from the
103
+ * effect of the commit that mounts it.
104
104
  * @param props - Review identity, Session store, localized copy, and navigation.
105
105
  * @returns an opener for either logged or temporary plan text.
106
106
  */
@@ -1044,10 +1044,10 @@ window.__ModuleLoader__.load({
1044
1044
  const maybeEpoch = useMaybeIncarnation(binding);
1045
1045
  const version = (0, react.useSyncExternalStore)((listener) => host.subscribeFactory(name, listener), () => host.getFactoryVersion(name));
1046
1046
  const definition = host.factoryOf(name);
1047
+ const nextAncestors = (0, react.useMemo)(() => new Set(ancestors).add(name), [ancestors, name]);
1047
1048
  if (definition === void 0) return (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: fallback ?? null });
1048
1049
  if (ancestors.has(name)) throw new _deepseek_ai_dsh_client_ui_slots.SlotOwnershipError(`recursive render of factory '${name}'`);
1049
1050
  for (const localName of Object.keys(selected)) if (definition.slots?.[localName] === void 0) throw new _deepseek_ai_dsh_client_ui_slots.SlotOwnershipError(`local slot '${localName}' is not declared by factory '${name}'`);
1050
- const nextAncestors = new Set(ancestors).add(name);
1051
1051
  const scopeIdentity = definition.scope === "root" ? "root" : definition.scope === "session" ? binding.key === void 0 ? "session:absent" : `session:${sessionGenerationKeyOf(binding)}` : `session-maybe:${maybeEpoch}`;
1052
1052
  return (0, react_jsx_runtime.jsx)(FactoryErrorBoundary, {
1053
1053
  name,
@@ -660,7 +660,7 @@ window.__ModuleLoader__.load({
660
660
  function CurrentVersionRow({ t }) {
661
661
  return (0, react_jsx_runtime.jsx)("div", {
662
662
  className: CurrentVersionRow_module_css_default.row,
663
- children: t("general.currentVersion", { version: "0.2.0-rc.1" })
663
+ children: t("general.currentVersion", { version: "0.2.0-rc.2" })
664
664
  });
665
665
  }
666
666
  //#endregion
@@ -884,9 +884,9 @@ window.__ModuleLoader__.load({
884
884
  "openDocument.error": "无法打开配置文件",
885
885
  "general.nav": "通用设置",
886
886
  "general.currentVersion": "当前版本:{version}",
887
- "developerTools.title": "代码工作工具",
887
+ "developerTools.title": "显示代码工作视图",
888
888
  "developerTools.error": "保存失败,请重试",
889
- "developerTools.description": "开启后显示轨迹、本轮代码差异,新对话中的 Agent 预设切换",
889
+ "developerTools.description": "开启后,显示轨迹、本轮代码差异,可选择完整的 Agent 预设切换",
890
890
  "connection.error": "连接异常,刷新重试",
891
891
  "connection.connecting": "重新连接中",
892
892
  "connection.connected": "连接成功",
@@ -921,9 +921,9 @@ window.__ModuleLoader__.load({
921
921
  "openDocument.error": "Could not open configuration file",
922
922
  "general.nav": "General",
923
923
  "general.currentVersion": "Current version: {version}",
924
- "developerTools.title": "Coding Tools",
924
+ "developerTools.title": "Show coding view",
925
925
  "developerTools.error": "Could not save. Please try again.",
926
- "developerTools.description": "Shows trajectory, code diffs, and Agent preset switching in new chats",
926
+ "developerTools.description": "Shows trajectory, code diffs, and all Agent presets",
927
927
  "connection.error": "Disconnected",
928
928
  "connection.connecting": "Reconnecting",
929
929
  "connection.connected": "Connected",
@@ -1081,11 +1081,11 @@ window.__ModuleLoader__.load({
1081
1081
  },
1082
1082
  "web:macos": {
1083
1083
  code: "Comma",
1084
- modifiers: ["primary"]
1084
+ modifiers: ["primary", "alt"]
1085
1085
  },
1086
1086
  "web:windows": {
1087
1087
  code: "Comma",
1088
- modifiers: ["primary"]
1088
+ modifiers: ["primary", "alt"]
1089
1089
  }
1090
1090
  },
1091
1091
  regions: [
@@ -1084,7 +1084,7 @@ window.__ModuleLoader__.load({
1084
1084
  ctx.slots.inject("settings.general.item", () => ctx.slots.register({
1085
1085
  name: "settings.general.item",
1086
1086
  id: "shortcuts",
1087
- order: 20,
1087
+ order: 16,
1088
1088
  locale: "shortcuts",
1089
1089
  store,
1090
1090
  inject: injected
@@ -167,7 +167,7 @@ window.__ModuleLoader__.load({
167
167
  const SCROLLBAR_LINGER_MS = 2e3;
168
168
  /** Format complete-build metadata for the local brand badge. */
169
169
  function localBuildVersion() {
170
- return `0.2.0-rc.1-62962ee` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
170
+ return `0.2.0-rc.2-04f392c` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
171
171
  }
172
172
  /** Each panel row subscribes only to its own selection state. */
173
173
  function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
@@ -333,20 +333,15 @@ window.__ModuleLoader__.load({
333
333
  return darwinDesktop ? (0, react_jsx_runtime.jsx)("span", {
334
334
  className: clsx(SidebarRoot_module_css_default.brand, SidebarRoot_module_css_default.wide),
335
335
  children: identity
336
- }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
337
- label: t("session.new.label"),
338
- shortcutKeys: newShortcut?.keys,
339
- delayMs: 500,
340
- children: (0, react_jsx_runtime.jsx)("button", {
341
- type: "button",
342
- className: clsx(SidebarRoot_module_css_default.brand, SidebarRoot_module_css_default.wide),
343
- "aria-label": t("session.new.label"),
344
- "aria-keyshortcuts": newShortcut?.aria,
345
- onClick: () => {
346
- startSession();
347
- },
348
- children: identity
349
- })
336
+ }) : (0, react_jsx_runtime.jsx)("button", {
337
+ type: "button",
338
+ className: clsx(SidebarRoot_module_css_default.brand, SidebarRoot_module_css_default.wide),
339
+ "aria-label": t("session.new.label"),
340
+ "aria-keyshortcuts": newShortcut?.aria,
341
+ onClick: () => {
342
+ startSession();
343
+ },
344
+ children: identity
350
345
  });
351
346
  })(), !darwinDesktop && toggle]
352
347
  }),
@@ -454,7 +454,7 @@ window.__ModuleLoader__.load({
454
454
  * draw for each absolute path and what a click means: a directory toggles, a
455
455
  * file opens through the owner's `tabActions` for a `file:` viewer to claim, and
456
456
  * anything else is shown but refuses to open. The header uses the shared
457
- * PathLabel for the root, followed by reload for the expanded directories.
457
+ * PathLabel for the root, followed by reload and workspace directory actions.
458
458
  */
459
459
  /** Natural, case-insensitive name order, so `file2` precedes `file10`. */
460
460
  const byName = new Intl.Collator(void 0, {
@@ -592,7 +592,7 @@ window.__ModuleLoader__.load({
592
592
  ] });
593
593
  }
594
594
  /** The file tree's body: the workspace root and whatever the reader has opened under it. */
595
- function FilesBody({ useTabInfo, sessionId, useSessions, useStore, actions, start, refresh, setAutoRefresh, toggle, t }) {
595
+ function FilesBody({ useTabInfo, sessionId, useSessions, useStore, actions, start, refresh, setAutoRefresh, toggle, t, renderSlot }) {
596
596
  const { tab } = useTabInfo();
597
597
  (0, react.useEffect)(() => tab.actions.bindCommands({ refresh: () => {
598
598
  refresh(tab.id);
@@ -695,7 +695,8 @@ window.__ModuleLoader__.load({
695
695
  onClick: reload,
696
696
  children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, {})
697
697
  })
698
- })
698
+ }),
699
+ renderSlot("sidebar.right.tab.files.actions", { absolutePath: state.root })
699
700
  ]
700
701
  }), (0, react_jsx_runtime.jsx)("div", {
701
702
  ref: bodyRef,
@@ -1004,7 +1005,11 @@ window.__ModuleLoader__.load({
1004
1005
  key: FILES_ID,
1005
1006
  locale: NS,
1006
1007
  store,
1007
- inject
1008
+ inject,
1009
+ children: { "sidebar.right.tab.files.actions": {
1010
+ kind: "list",
1011
+ scope: "session"
1012
+ } }
1008
1013
  }, FilesBody)), "ui-sidebar-files: files tab body");
1009
1014
  ctx.effect(() => ctx.slots.inject("sidebar.right.pane.tab.title", () => ctx.slots.register({
1010
1015
  name: "sidebar.right.pane.tab.title",