@deepseek-ai/dsh-client-ui-open-in-app 0.1.5-rc.2 → 0.1.6-alpha.2
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 +6 -6
- 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/client/ui-open-in-app/README.md
|
|
5
5
|
README.md: d242d5a84dffbf0895485f7c79eafd5e332fe446
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: e954b7c71e8c4dbd1b19a041aafb7fe154631fbb
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
本包提供 open-in-app 功能的浏览器表面:会话头部的一个分体按钮,主按钮在记住的应用中打开当前会话的 workspace 目录(会话摘要的 `cwd
|
|
12
|
+
本包提供 open-in-app 功能的浏览器表面:会话头部的一个分体按钮,主按钮在记住的应用中打开当前会话的 workspace 目录(会话摘要的 `cwd`),下拉箭头列出主机探测到已安装的全部 catalog 应用。可用性、图标与启动均来自 [`dsh-host-open-in-app`](../../host/open-in-app/README.zh.md) 的主机路由;两个包应一起挂载。没有 workspace 目录的会话、或没装任何可命名应用的主机,完全不渲染按钮。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ kind: "package-reference"
|
|
|
25
25
|
<a id="use-this-package"></a>
|
|
26
26
|
## 使用本包
|
|
27
27
|
|
|
28
|
-
把本插件与 [`dsh-host-open-in-app`](../../host/open-in-app/README.zh.md) 并排挂进 Web 组合;这对包用两行 cordis.yml
|
|
28
|
+
把本插件与 [`dsh-host-open-in-app`](../../host/open-in-app/README.zh.md) 并排挂进 Web 组合;这对包用两行 cordis.yml 组成完整功能,本行不接受任何配置。只要主机探测到至少一个已安装的 catalog 应用且会话有已知的 workspace 目录,会话头部就会出现 "Open In..." 分体按钮。
|
|
29
29
|
|
|
30
30
|
### 预期行为
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ kind: "package-reference"
|
|
|
39
39
|
<details>
|
|
40
40
|
<summary>实现内幕——点击展开</summary>
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
插件通过标准 slot/inject 机制把分体按钮注册到 `conversation.session.header.utilities`,并以一个 effect 注册 `open-in-app` 词典。一个页面生命周期的 controller([`src/client/controller.ts`](src/client/controller.ts))拥有每页一次的可用性读取、持久化选择的 snapshot store 与启动 POST;组件经 inject 的 `hooks` 隔间接收两个 store,因此所有会话头部共享同一份事实。路由路径与 wire 载荷类型从主机包的浏览器安全子路径 `@deepseek-ai/dsh-host-open-in-app/shared` 内联。飞行中的启动由 ref 守卫——启动期间的重复点击与菜单选择被整体忽略(否则会持久化一个该手势从未打开的选择)——busy/error 视觉由围绕 `launch` promise 的定时器驱动。节点半边是一个空 `apply`,让插件出现在主机侧的插件名册上。
|
|
43
43
|
|
|
44
44
|
</details>
|
|
45
45
|
|
|
@@ -59,9 +59,9 @@ kind: "package-reference"
|
|
|
59
59
|
|
|
60
60
|
无。分体按钮是浏览器 chrome;这里没有任何东西进入模型请求。
|
|
61
61
|
|
|
62
|
-
#### KV
|
|
62
|
+
#### KV Cache 影响
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
无;本包从不组装或发送提供方请求。
|
|
65
65
|
|
|
66
66
|
## 已知限制与延后工作
|
|
67
67
|
|
|
@@ -80,4 +80,4 @@ kind: "package-reference"
|
|
|
80
80
|
|
|
81
81
|
</details>
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
**运行时不变式:** 不发布伴生入口。插件注册一个词典 effect 和一个 header slot 条目,HMR 安全性 spec 证明二者都会在资源释放时撤销;可用性与选择存储在控制器的快照存储中,不存在可能与之分歧的第二份副本。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-open-in-app",
|
|
3
3
|
"description": "Web Session-header \"Open In...\" split button opening the session workspace directory in a locally installed application",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"@types/react": "~18.3.1",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
52
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-client-store": "^0.1.
|
|
55
|
-
"@deepseek-ai/dsh-client-test-runtime": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-session": "^0.1.
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.
|
|
61
|
-
"@deepseek-ai/dsh-host-open-in-app": "^0.1.
|
|
62
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
52
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.6-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-client-store": "^0.1.6-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-client-test-runtime": "^0.1.6-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.6-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.6-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-host-open-in-app": "^0.1.6-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"bundle": "tsdown",
|