@deepseek-ai/dsh-client-ui-directory-picker-native 0.1.5-rc.2 → 0.1.6-alpha.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.
- package/README.i18n.yaml +2 -2
- package/README.md +2 -2
- package/README.zh.md +12 -12
- package/package.json +4 -4
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/client/ui-directory-picker-native/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 4d35b30e093f06e939d0831a1ea45c050c43bf03
|
|
6
|
+
README.zh.md: 98bdf1b15eea5de9dee2f0a7dab583f0f124b504
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
|
|
10
10
|
## Summary
|
|
11
11
|
|
|
12
|
-
This package provides the native directory-picking surface for the Web GUI: when a workspace flow asks for a directory, a renderless browser occupant opens the operating system's own chooser on the machine running the Host and reports the single outcome — a picked path, a cancellation, or a failure. It fills the two directory-flow slots declared by `ui-workspace`, composing the client side of the native picking interaction in one cordis.yml row. Choose it when the browser runs on the same machine as the Host; in-process and remote-browser deployments need the [`-browse`](../ui-directory-picker-browse/README.md) surface instead.
|
|
12
|
+
This package provides the native directory-picking surface for the Web GUI: when a workspace flow asks for a directory, a renderless browser occupant opens the operating system's own chooser on the machine running the Host and reports the single outcome — a picked path, a cancellation, or a failure. It fills the two directory-flow slots declared by `ui-workspace`, composing the client side of the native picking interaction in one `cordis.yml` row. Choose it when the browser runs on the same machine as the Host; in-process and remote-browser deployments need the [`-browse`](../ui-directory-picker-browse/README.md) surface instead.
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ This package provides the native directory-picking surface for the Web GUI: when
|
|
|
25
25
|
<a id="use-this-package"></a>
|
|
26
26
|
## Use this package
|
|
27
27
|
|
|
28
|
-
Mount this plugin alongside `ui-workspace` and the host backend [`dsh-host-directory-picker-native`](../../host/directory-picker-native/README.md); one cordis.yml row then composes the whole native picking interaction. When a workspace add or picker flow opens a directory request, the user sees the operating system's folder dialog; the picked path is adopted by the workspace flow, and cancelling closes the dialog.
|
|
28
|
+
Mount this plugin alongside `ui-workspace` and the host backend [`dsh-host-directory-picker-native`](../../host/directory-picker-native/README.md); one `cordis.yml` row then composes the whole native picking interaction. When a workspace add or picker flow opens a directory request, the user sees the operating system's folder dialog; the picked path is adopted by the workspace flow, and cancelling closes the dialog.
|
|
29
29
|
|
|
30
30
|
### When to choose it
|
|
31
31
|
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "
|
|
2
|
+
description: "原生目录选择表面:驱动 Host 操作系统选择器的浏览器半部,用于工作区目录流程;供选择拾取交互的用户与维护者阅读。"
|
|
3
3
|
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
本包提供 Web GUI
|
|
12
|
+
本包提供 Web GUI 的原生目录拾取表面:当工作区流程请求一个目录时,一个无渲染的浏览器填充会在运行 Host 的机器上打开操作系统自带的选择器,并回报唯一结果——拾取的路径、取消或失败。它填充 `ui-workspace` 声明的两个目录流程 slot,用一行 `cordis.yml` 组合出原生拾取交互的客户端一侧。当浏览器与 Host 运行在同一台机器上时选择它;进程内与远程浏览器部署则需要 [`-browse`](../ui-directory-picker-browse/README.zh.md) 表面。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -25,11 +25,11 @@ kind: "package-reference"
|
|
|
25
25
|
<a id="use-this-package"></a>
|
|
26
26
|
## 使用本包
|
|
27
27
|
|
|
28
|
-
与 `ui-workspace`
|
|
28
|
+
与 `ui-workspace` 及 Host 后端 [`dsh-host-directory-picker-native`](../../host/directory-picker-native/README.zh.md) 一起挂载本插件;一行 `cordis.yml` 随即组合出完整的原生拾取交互。当工作区添加或选择器流程发起目录请求时,用户看到操作系统的文件夹对话框;拾取的路径被工作区流程采纳,取消则关闭对话框。
|
|
29
29
|
|
|
30
30
|
### 何时选择
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
当浏览器与 Host 运行在同一台机器上、操作系统对话框可以在那里打开时,选择此表面。当浏览器为远程或进程内、没有本地选择器时,选择 [`-browse`](../ui-directory-picker-browse/README.zh.md) 表面。两个表面填充相同的 slot,因此切换只是组合改动,而非代码改动。
|
|
33
33
|
|
|
34
34
|
-----
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ kind: "package-reference"
|
|
|
39
39
|
<details>
|
|
40
40
|
<summary>实现细节——点击展开</summary>
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
两个 slot 注册经嵌套的 `ctx.slots.inject()` 调用作为一个事务性 effect 安装,因为任一声明条目都可能晚些激活或替换其声明。填充在每个上升沿 `open` 时只武装一次,因此重渲染永远不会再拉起一个选择器;结算结果挂在 ref 上,让答复到达持有方最新的处理器。HMR(热模块替换)导致填充被替换时,卸载会整体丢弃结算:wire 没有按请求中止的机制,因此 Host 侧选择器会一直存活到被答复,而它的答复无处落地。node 半部是一个空 `apply`,让插件留在 Host 名单上。
|
|
43
43
|
|
|
44
44
|
</details>
|
|
45
45
|
|
|
@@ -48,12 +48,12 @@ kind: "package-reference"
|
|
|
48
48
|
<a id="further-exploration"></a>
|
|
49
49
|
## 进一步探索
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
当拾取面不够用时阅读以下页面。它们从浏览器半部进入 Host 后端与它所填充的 slot。
|
|
52
52
|
|
|
53
53
|
- [dsh-host-directory-picker-native](../../host/directory-picker-native/README.zh.md)——本表面驱动的操作系统选择器后端。
|
|
54
|
-
- [ui-workspace](../ui-workspace/README.zh.md)
|
|
54
|
+
- [ui-workspace](../ui-workspace/README.zh.md)——声明目录流程 slot 并拥有拾取对话。
|
|
55
55
|
- [ui-directory-picker-browse](../ui-directory-picker-browse/README.zh.md)——面向远程与进程内部署的应用内浏览替代方案。
|
|
56
|
-
- [Web 客户端架构](../../../.agents/notes/implemented/architecture/2026-07-19-gui-web-client-architecture.zh.md)
|
|
56
|
+
- [Web 客户端架构](../../../.agents/notes/implemented/architecture/2026-07-19-gui-web-client-architecture.zh.md)——浏览器插件行如何加载并注册 slot。
|
|
57
57
|
|
|
58
58
|
-----
|
|
59
59
|
|
|
@@ -64,7 +64,7 @@ kind: "package-reference"
|
|
|
64
64
|
|
|
65
65
|
#### KV Cache 影响
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
无;本包既不组装也不发送提供方请求。
|
|
68
68
|
|
|
69
69
|
## 已知限制与延期工作
|
|
70
70
|
|
|
@@ -73,8 +73,8 @@ kind: "package-reference"
|
|
|
73
73
|
|
|
74
74
|
这些限制界定了原生选择器的适用时机。它们是当前包约束,不是通用选择器对比或任务积压。
|
|
75
75
|
|
|
76
|
-
-
|
|
77
|
-
-
|
|
76
|
+
- **无法取消已打开的选择器**——wire 没有按请求中止的机制,因此已显示在 Host 上的选择器无法从浏览器关闭;被丢弃的结算会被忽略。
|
|
77
|
+
- **仅限本地 Host 承载**——操作系统对话框在运行 Host 的机器上打开,因此进程内与远程浏览器部署需要 `-browse` 组合。平台失败经由持有方的可重试文件夹对话框呈现。
|
|
78
78
|
|
|
79
79
|
<a id="dev-note"></a>
|
|
80
80
|
### 开发备注
|
|
@@ -86,4 +86,4 @@ kind: "package-reference"
|
|
|
86
86
|
|
|
87
87
|
</details>
|
|
88
88
|
|
|
89
|
-
**运行时不变式:**
|
|
89
|
+
**运行时不变式:** 不发布伴生入口。插件将一个无渲染 flow occupant 作为一个事务性 effect 注册到两个 workspace hole;HMR 安全性规范证明该 effect 的释放行为,并且插件在各次 pick 之间不保留状态。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-directory-picker-native",
|
|
3
3
|
"description": "Native directory-picker surface: the renderless workspace directory-flow occupant driving the host's OS chooser",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@types/react": "~18.3.1",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-dom": "^18.2.0",
|
|
46
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.
|
|
47
|
-
"@deepseek-ai/
|
|
48
|
-
"@deepseek-ai/
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.1",
|
|
47
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.1.6-alpha.1"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"lib/index.js",
|