@deepseek-ai/dsh-client-ui-settings-general 0.2.1-alpha.1 → 0.2.1-alpha.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/README.i18n.yaml CHANGED
@@ -21,8 +21,8 @@
21
21
  en: 8b8a7c6287bb303b
22
22
  zh: 19535112531aedd5
23
23
  /deepseek-ai-dsh-client-ui-settings-general/use-this-package/opening-the-configuration-file:
24
- en: ca2b4f5ccfbe2705
25
- zh: bd1dc1d9879d0f0e
24
+ en: 597df68b5913e8d7
25
+ zh: bc9114f3e877679a
26
26
  /deepseek-ai-dsh-client-ui-settings-general/use-this-package/onboarding-steps:
27
27
  en: 27f0f6ec55f00228
28
28
  zh: 69b47ff1efd81c17
@@ -36,8 +36,8 @@
36
36
  en: e37fb7df883ea356
37
37
  zh: c972524e56c6d6c2
38
38
  /deepseek-ai-dsh-client-ui-settings-general/understand-the-implementation/document-availability:
39
- en: 474168eef3339de0
40
- zh: 254ea21415082dae
39
+ en: ff1aec9eb1a87a79
40
+ zh: eb91ab8bef59742d
41
41
  /deepseek-ai-dsh-client-ui-settings-general/understand-the-implementation/host-half:
42
42
  en: 5d722d055516f905
43
43
  zh: e7a236f0ff84f7ff
package/README.md CHANGED
@@ -47,7 +47,7 @@ The General section holds the built-in Coding Tools and Current version rows alo
47
47
 
48
48
  ### Opening the configuration file
49
49
 
50
- On a loopback browser, the shell renders **Open configuration file** only when the Host confirms that a provider-owned local document can be prepared. The action opens that document in the native text editor (bypassing the browser file association on macOS). Remote browsers never register the action and never issue the privileged settings read.
50
+ On a loopback browser, the shell renders **Open configuration file** only when the Host confirms that a provider-owned local document can be prepared. The action opens that document in the native text editor (bypassing the browser file association on macOS). Remote browsers never register this native-open action, including on configured public deployments; their preferences persist through the Host settings service.
51
51
 
52
52
  ### Onboarding steps
53
53
 
@@ -75,7 +75,7 @@ The shell is an explicit recovery consumer, so it injects Connection directly ra
75
75
 
76
76
  ### Document availability
77
77
 
78
- On a loopback page, the Client loads the provider's `hasDocument` capability through `settings/describe` and renders **Open configuration file** only when the Host confirms that a provider-owned local document can be prepared. The action calls the pathless, browser-authenticated `settings/openSettingsDocument` Remote; the Host resolves the provider path again, materializes an absent document, and hands it to a native text editor (`open -t` on macOS, bypassing a browser file association; the desktop file association on Linux and Windows; Windows association after `wslpath -w` translation on WSL). Open failures keep the action available and render a localized error. Reopening the dialog or reconnecting refreshes availability after a transient read failure or Host topology change. Non-loopback pages retain the Client policy that withholds this native action and its settings read.
78
+ On a loopback page, the Client loads the provider's `hasDocument` capability through `settings/describe` and renders **Open configuration file** only when the Host confirms that a provider-owned local document can be prepared. The action calls the pathless, browser-authenticated `settings/openSettingsDocument` Remote; the Host resolves the provider path again, materializes an absent document, and hands it to a native text editor (`open -t` on macOS, bypassing a browser file association; the desktop file association on Linux and Windows; Windows association after `wslpath -w` translation on WSL). Open failures keep the action available and render a localized error. Reopening the dialog or reconnecting refreshes availability after a transient read failure or Host topology change. Non-loopback pages withhold this native action through the Client policy.
79
79
 
80
80
  ### Host half
81
81
 
package/README.zh.md CHANGED
@@ -47,7 +47,7 @@ Web 与桌面端的通用设置底部显示当前发布版本,使用构建注
47
47
 
48
48
  ### 打开配置文件
49
49
 
50
- 在回环浏览器上,只有当宿主确认可准备好一份由提供方持有的本地文档时,外壳才渲染**打开配置文件**。该操作会在原生文本编辑器中打开该文档(macOS 上绕过浏览器文件关联)。远程浏览器从不注册该操作,也从不发起这项特权设置读取。
50
+ 在回环浏览器上,只有当宿主确认可准备好一份由提供方持有的本地文档时,外壳才渲染**打开配置文件**。该操作会在原生文本编辑器中打开该文档(macOS 上绕过浏览器文件关联)。远程浏览器从不注册这项原生打开操作,配置了公共 URL 的部署也不例外;它们的偏好通过 Host settings 服务持久化。
51
51
 
52
52
  ### 引导步骤
53
53
 
@@ -75,7 +75,7 @@ Web 与桌面端的通用设置底部显示当前发布版本,使用构建注
75
75
 
76
76
  ### 文档可用性
77
77
 
78
- 在 loopback 页面上,Client 通过 `settings/describe` 加载提供方的 `hasDocument` 能力,且只有在 Host 确认可准备好一份由提供方持有的本地文档时才渲染**打开配置文件**操作。该操作调用无路径参数且经浏览器认证的 `settings/openSettingsDocument` Remote;Host 会再次解析提供方路径、在文档缺失时将其创建出来,并交给原生文本编辑器(macOS 上使用 `open -t`,绕过浏览器文件关联;Linux 和 Windows 上使用桌面文件关联;WSL 上经 `wslpath -w` 转换后使用 Windows 文件关联)。打开失败时该操作仍可使用,并渲染本地化错误。临时读取失败或 Host 拓扑变化后,重新打开对话框或重新连接会刷新可用性。非 loopback 页面保留 Client 策略,不提供该原生操作及其 settings 读取。
78
+ 在 loopback 页面上,Client 通过 `settings/describe` 加载提供方的 `hasDocument` 能力,且只有在 Host 确认可准备好一份由提供方持有的本地文档时才渲染**打开配置文件**操作。该操作调用无路径参数且经浏览器认证的 `settings/openSettingsDocument` Remote;Host 会再次解析提供方路径、在文档缺失时将其创建出来,并交给原生文本编辑器(macOS 上使用 `open -t`,绕过浏览器文件关联;Linux 和 Windows 上使用桌面文件关联;WSL 上经 `wslpath -w` 转换后使用 Windows 文件关联)。打开失败时该操作仍可使用,并渲染本地化错误。临时读取失败或 Host 拓扑变化后,重新打开对话框或重新连接会刷新可用性。非 loopback 页面通过 Client 策略拦下该原生操作。
79
79
 
80
80
  ### 宿主端
81
81
 
package/lib/client.js CHANGED
@@ -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.1-alpha.1" })
663
+ children: t("general.currentVersion", { version: "0.2.1-alpha.3" })
664
664
  });
665
665
  }
666
666
  //#endregion
package/locale/en.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "meta": {
3
+ "title": "ui-settings-general"
4
+ }
5
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "通用设置与欢迎提示",
4
+ "description": "提供通用设置、设置窗口文案和首次使用提示。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-ui-settings-general",
3
3
  "description": "Settings ownerless-copy and product onboarding plugin: the General section, shell trigger/header chrome content, settings dictionaries, and the versioned welcome notice",
4
- "version": "0.2.1-alpha.1",
4
+ "version": "0.2.1-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -26,7 +26,8 @@
26
26
  "types": "./lib/types/types.d.ts"
27
27
  },
28
28
  "./src/*": "./src/*",
29
- "./package.json": "./package.json"
29
+ "./package.json": "./package.json",
30
+ "./locale/*.json": "./locale/*.json"
30
31
  },
31
32
  "dsh": {
32
33
  "client": {
@@ -43,34 +44,33 @@
43
44
  },
44
45
  "license": "MIT",
45
46
  "dependencies": {
46
- "@deepseek-ai/schemastery": "~3.18.5-alpha.1"
47
+ "@deepseek-ai/schemastery": "~3.18.5-alpha.2"
47
48
  },
48
49
  "peerDependencies": {
49
- "@deepseek-ai/cordis": "~4.0.5-alpha.1"
50
+ "@deepseek-ai/cordis": "~4.0.5-alpha.2"
50
51
  },
51
52
  "devDependencies": {
52
- "@types/react": "~18.3.1",
53
- "@types/react-dom": "~18.3.0",
53
+ "@deepseek-ai/cordis": "~4.0.5-alpha.2",
54
+ "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.3",
55
+ "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.3",
56
+ "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.3",
57
+ "@deepseek-ai/dsh-client-store": "0.2.1-alpha.3",
58
+ "@deepseek-ai/dsh-client-test-runtime": "0.2.1-alpha.3",
59
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.3",
60
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.3",
61
+ "@deepseek-ai/dsh-client-ui-session": "0.2.1-alpha.3",
62
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.3",
63
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-alpha.3",
64
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.3",
65
+ "@deepseek-ai/dsh-remote-mock": "0.2.1-alpha.3",
54
66
  "clsx": "^2.0.0",
55
67
  "react": "^18.2.0",
68
+ "@deepseek-ai/dsh-settings": "0.2.1-alpha.3",
56
69
  "react-dom": "^18.2.0",
57
- "@deepseek-ai/cordis": "~4.0.5-alpha.1",
58
- "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.1",
59
- "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.1",
60
- "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.1",
61
- "@deepseek-ai/dsh-client-store": "0.2.1-alpha.1",
62
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-alpha.1",
63
- "@deepseek-ai/dsh-client-test-runtime": "0.2.1-alpha.1",
64
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.1",
65
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.1",
66
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.1",
67
- "@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-alpha.1",
68
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.1",
69
- "@deepseek-ai/dsh-remote-mock": "0.2.1-alpha.1",
70
- "@deepseek-ai/dsh-client-shortcuts": "0.2.1-alpha.1",
71
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.1"
70
+ "@deepseek-ai/dsh-client-shortcuts": "0.2.1-alpha.3"
72
71
  },
73
72
  "files": [
73
+ "locale/*.json",
74
74
  "lib/index.js",
75
75
  "lib/client.js",
76
76
  "lib/types/**/*.d.ts"