@deepseek-ai/dsh-api-workspace-files 0.1.5-rc.1 → 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 +1 -1
- package/README.zh.md +2 -2
- package/package.json +12 -12
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/api/workspace-files/README.md
|
|
5
5
|
README.md: f0f9cb1532fa65954415e10a5e248b775cdff83a
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 8a510fa5a599037364095e221e7ecf6a8c7bb94a
|
package/README.zh.md
CHANGED
|
@@ -78,7 +78,7 @@ kind: "package-reference"
|
|
|
78
78
|
|
|
79
79
|
`session/<sessionId>/<path>` 地址携带授权 Session,以及相对或绝对路径;前导斜杠保留,例如 `dsh-resource://file/session/s//etc/hosts`。Host 原样接收路径,负责解析与权限检查;Client 不需要 Session `cwd`。`absolute/<path>` 仍可解析,但没有授权 Session,以 `workspace-file/unknown-workspace` 失败,不借用当前或 Tab Session。不支持的地址以 `workspace-file/unsupported-address` 失败。语法由 [workspace-path](../../util/workspace-path/README.zh.md) 定义;Resource 泛型层只认地址和 `signal`。
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
提供方等到 Host 的 `ready` 帧后才发首次 `stat`,读取期间将变更排队,随后将跟随者绑定到 `stat.absolutePath`。排队与实时变更都按该 Host 返回路径匹配。新的写入版本更新元数据并保留最近的字节大小;重复版本被忽略。消失通知会重新 stat 文件。stat 失败后仍跟随地址,后续写入可使其恢复;首次成功绑定路径前,Session 内任何写入都可触发重试。帧是 `RemoteResult` 值,编程异常不被捕获。
|
|
82
82
|
|
|
83
83
|
每个 Session 的所有被跟随文件共用一条受监督的 `changes` 流。跟随者按反斜杠归一为斜杠的绝对路径匹配。载体掉线由 Gateway 监督器重连;Host 结束或终态失败的流会结束其跟随者,最后的元数据仍可读取,直到重新打开。最后一个跟随者离开时释放流,后继流等待该释放完成,插件拆除等待所有在途关闭。提供者声明 `ResourceProtocolMap.file`;文本预览声明其 Sidebar 行号导航参数。
|
|
84
84
|
|
|
@@ -114,7 +114,7 @@ Typert 生成 `./typert` 与 `./remote` 暴露的 Host 与 Client Remote 产物
|
|
|
114
114
|
<a id="further-exploration"></a>
|
|
115
115
|
## 进一步探索
|
|
116
116
|
|
|
117
|
-
- [文件系统能力](../../fs/fs/README.zh.md)——本服务经由读取的 `ctx.fs`
|
|
117
|
+
- [文件系统能力](../../fs/fs/README.zh.md)——本服务经由读取的 `ctx.fs` 约定,含 `fs/observed` 与 `readByteRange`。
|
|
118
118
|
- [沙箱策略](../../sandbox/sandbox-policy/README.zh.md)——Session 工作区根的来源。
|
|
119
119
|
- [Remote 装配](../../api/remotes/README.zh.md)——Client 包如何触达 `workspaceFiles` 命名空间。
|
|
120
120
|
- [Client 资源](../../client/resources/README.zh.md)——资源模型、`useResource`、pin 与提供者生命周期。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-api-workspace-files",
|
|
3
3
|
"description": "Workspace file service and Client resource provider: bounded reads, directory listing, and live metadata over the workspaceFiles Remote namespace",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"zod": "^4.4.3",
|
|
52
|
-
"@deepseek-ai/
|
|
53
|
-
"@deepseek-ai/dsh-deque": "^0.1.
|
|
54
|
-
"@deepseek-ai/
|
|
52
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.6-alpha.1",
|
|
53
|
+
"@deepseek-ai/dsh-deque": "^0.1.6-alpha.1",
|
|
54
|
+
"@deepseek-ai/schemastery": "^3.18.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
61
|
-
"@deepseek-ai/dsh-
|
|
62
|
-
"@deepseek-ai/dsh-client-
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-sandbox-policy": "^0.1.
|
|
66
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
67
|
-
"@deepseek-ai/dsh-util-workspace-path": "^0.1.
|
|
68
|
-
"@deepseek-ai/dsh-session-persistence": "^0.1.
|
|
61
|
+
"@deepseek-ai/dsh-api-gateway": "^0.1.6-alpha.1",
|
|
62
|
+
"@deepseek-ai/dsh-client-resources": "^0.1.6-alpha.1",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.1",
|
|
64
|
+
"@deepseek-ai/dsh-fs": "^0.1.6-alpha.1",
|
|
65
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.1.6-alpha.1",
|
|
66
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
|
|
67
|
+
"@deepseek-ai/dsh-util-workspace-path": "^0.1.6-alpha.1",
|
|
68
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.6-alpha.1"
|
|
69
69
|
},
|
|
70
70
|
"files": [
|
|
71
71
|
"lib/index.js",
|