@jidekaixin2dian/dsh-file-actions 0.1.21 → 0.1.23
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/CHANGELOG.md +65 -0
- package/README.en.md +8 -8
- package/README.md +8 -8
- package/lib/client.js +599 -416
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.23 — 2026-11-17
|
|
4
|
+
|
|
5
|
+
### 中文
|
|
6
|
+
|
|
7
|
+
- 菜单会话独立管理取消与关闭,替换菜单时结束旧操作,旧菜单的取消不会干扰新菜单。
|
|
8
|
+
- 应用关联与预览缓存各自管理失效和释放;卸载后丢弃迟到结果,避免重新激活旧界面或缓存工作。
|
|
9
|
+
- 明确引用候选、已核实文件目标与读取结果,拆分预览视图和测试夹具,保留现有菜单交互与零构建安装方式。
|
|
10
|
+
|
|
11
|
+
### English
|
|
12
|
+
|
|
13
|
+
- Give each menu session its own cancellation and close lifecycle. Replacing a menu ends its previous operation without letting an old cancellation affect the new menu.
|
|
14
|
+
- Give application and preview caches explicit invalidation and disposal ownership; discard late results after unload so old UI or cache work cannot resume.
|
|
15
|
+
- Make reference candidates, verified file targets and read results explicit, and separate preview views and test fixtures while preserving menu interactions and installation without a build step.
|
|
16
|
+
|
|
17
|
+
## 0.1.22 — 2026-11-15
|
|
18
|
+
|
|
19
|
+
- 深路径查找(散文里写成 `docs/x.md`,文件却在更深的目录)不再越界:目录列举与
|
|
20
|
+
文件探测共用同一份 48 次调用、900ms 预算,上一层的子目录数量不会再被放大成整盘
|
|
21
|
+
扫描。
|
|
22
|
+
- 同一次查找只在整层扫描完整时才采信:预算用尽、目录列举失败或宿主报错都判为
|
|
23
|
+
「查找未完成,请重试」,既不打开可能错误的同名文件,也不把一次临时故障缓存成
|
|
24
|
+
5 分钟的「找不到」。
|
|
25
|
+
- 关闭菜单、切换会话或卸载插件会中止正在进行的查找,`AbortSignal` 一路传到宿主的
|
|
26
|
+
文件 I/O,排队中的路径不再继续 `stat`。
|
|
27
|
+
- 聊天里单独的 `预算.xlsx`、`slides.pptx`、`book.epub`、`setup.msix` 这类文件名重新
|
|
28
|
+
可识别:识别与分类共用同一份扩展名清单,不再各维护一套。
|
|
29
|
+
- POSIX 路径中的反斜杠是合法文件名字符,不再被当成目录分隔符把
|
|
30
|
+
`/tmp/repo\secret.txt` 认成工作区内的文件;`~/repo/a.txt` 也不再去掉开头的 `~`。
|
|
31
|
+
- 指定应用打开后的 1.8 秒提示改用当前菜单的会话与代际判断,不再引用作用域外的变量,
|
|
32
|
+
在定时器里抛 `ReferenceError`。
|
|
33
|
+
- 提示条的对比度底色在每次显示时重取(菜单已关闭时仍然可读),连续提示只保留最后一帧
|
|
34
|
+
动画;卸载会清掉提示条、玻璃效果标记和待触发的定时器,卸载之后才返回的动作也不会再
|
|
35
|
+
画出一条新的提示条。
|
|
36
|
+
- 大图预览打开后按 Tab 焦点留在对话框内,不再跑到浏览器界面并顺带关掉整个菜单;
|
|
37
|
+
指针打开菜单后第一次按 ↑ 直接选到最后一行。
|
|
38
|
+
- 开发文档中的宿主 pin 与 CI 覆盖范围更新为默认 rc.5,并覆盖
|
|
39
|
+
rc.2/rc.3/rc.4/0.2.2-alpha.3/0.2.2-rc.1。
|
|
40
|
+
- The nested-path lookup that resolves a prose reference like `docs/x.md` can no longer
|
|
41
|
+
run past its budget: directory expansion and file probes share one 48-call, 900 ms
|
|
42
|
+
budget, so one wide directory level is not multiplied into a full-tree scan.
|
|
43
|
+
- A lookup result is trusted only after a level was scanned completely. An exhausted
|
|
44
|
+
budget, a failed directory listing or a Host error now report "Search stopped early;
|
|
45
|
+
try again" instead of opening a possibly wrong same-named file, and a transient
|
|
46
|
+
failure is no longer cached as a five-minute miss.
|
|
47
|
+
- Closing the menu, switching sessions or unloading the plugin aborts the running
|
|
48
|
+
lookup; the `AbortSignal` reaches the Host file I/O, so queued paths stop issuing
|
|
49
|
+
`stat` calls.
|
|
50
|
+
- Bare filenames such as `预算.xlsx`, `slides.pptx`, `book.epub` or `setup.msix` are
|
|
51
|
+
recognised in chat text again: detection and classification now share one extension
|
|
52
|
+
inventory instead of keeping two lists.
|
|
53
|
+
- A backslash in a POSIX path is a legal filename character, so `/tmp/repo\secret.txt`
|
|
54
|
+
is no longer treated as workspace content; a `~/repo/a.txt` reference keeps its `~`.
|
|
55
|
+
- The 1.8 s hint after opening a specific application now asks the current menu whether
|
|
56
|
+
it is still live instead of referencing an out-of-scope variable and throwing a
|
|
57
|
+
`ReferenceError` inside the timer.
|
|
58
|
+
- The toast re-reads its contrast floor on every show (it stays readable after the menu
|
|
59
|
+
closed) and keeps a single fade-in frame; unloading removes the toast, the glass
|
|
60
|
+
marker and pending timers, and an action that settles after unload can no longer
|
|
61
|
+
paint a new toast.
|
|
62
|
+
- Tab keeps focus inside the full-size image dialog instead of leaving for the browser
|
|
63
|
+
chrome and closing the whole menu, and the first ArrowUp on a pointer-opened menu
|
|
64
|
+
selects the last row.
|
|
65
|
+
- The development notes now pin rc.5 as the default Host and list the CI coverage
|
|
66
|
+
(rc.2/rc.3/rc.4/rc.5/0.2.2-alpha.3/0.2.2-rc.1).
|
|
67
|
+
|
|
3
68
|
## 0.1.21 — 2026-11-10
|
|
4
69
|
|
|
5
70
|
- 菜单、子菜单与提示条接入壁纸插件的玻璃效果:只在它的浮层玻璃门
|
package/README.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Copy code with its source. Keep working from delivered files.**
|
|
4
4
|
|
|
5
|
-
[中文](README.md) · [npm · 0.1.
|
|
5
|
+
[中文](README.md) · [npm · 0.1.23](https://www.npmjs.com/package/@jidekaixin2dian/dsh-file-actions/v/0.1.23) · [Marketplace](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-file-actions/) · [Download](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) · [Changelog](CHANGELOG.md)
|
|
6
6
|
|
|
7
7
|
File Actions adds file and link actions to DeepSeek Harness (DSH) conversations. Right-click a code reference, delivery card or image to continue from what the agent has shown you.
|
|
8
8
|
|
|
@@ -43,25 +43,25 @@ Requires **DSH >=0.2.1-rc.2 and Node >=24**. CI verifies DSH rc.2 / rc.3 / rc.4
|
|
|
43
43
|
|
|
44
44
|
Search for **dsh-file-actions** in the marketplace and verify author **jidekaixin2dian**. Existing users can check updates under installed plugins. Catalog and registry mirrors may take time to refresh.
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Desktop users install, update and remove plugins through the in-app marketplace, restarting when prompted. Web/CLI users can stop the corresponding session and run this command for the `web` profile; repeat it to update:
|
|
47
47
|
|
|
48
48
|
```powershell
|
|
49
|
-
dsh plugin --profile
|
|
49
|
+
dsh plugin --profile web add @jidekaixin2dian/dsh-file-actions --registry=https://registry.npmjs.org
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Restart the corresponding session. Downloadable archives are available in [Releases](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest). A plain `npm install` does not register the plugin with DSH.
|
|
53
53
|
|
|
54
54
|
<details>
|
|
55
|
-
<summary>Alternative installation and removal</summary>
|
|
55
|
+
<summary>Alternative Web/CLI installation and removal</summary>
|
|
56
56
|
|
|
57
57
|
```powershell
|
|
58
|
-
dsh plugin --profile
|
|
58
|
+
dsh plugin --profile web add https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest/download/dsh-file-actions.tgz
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Remove, then
|
|
61
|
+
Remove, then restart the corresponding session:
|
|
62
62
|
|
|
63
63
|
```powershell
|
|
64
|
-
dsh plugin --profile
|
|
64
|
+
dsh plugin --profile web remove @jidekaixin2dian/dsh-file-actions
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
</details>
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**代码引用连同来源一起带走,交付文件右键就能接着用。**
|
|
4
4
|
|
|
5
|
-
[English](README.en.md) · [npm · 0.1.
|
|
5
|
+
[English](README.en.md) · [npm · 0.1.23](https://www.npmjs.com/package/@jidekaixin2dian/dsh-file-actions/v/0.1.23) · [插件市场](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-file-actions/) · [下载](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) · [更新记录](CHANGELOG.md)
|
|
6
6
|
|
|
7
7
|
File Actions 为 DeepSeek Harness(DSH)里的文件引用提供右键菜单。从代码行号、交付卡片或图片进入,直接查看上下文、选择应用、预览、定位和复制。
|
|
8
8
|
|
|
@@ -43,27 +43,27 @@ File Actions 为 DeepSeek Harness(DSH)里的文件引用提供右键菜单
|
|
|
43
43
|
|
|
44
44
|
在插件市场搜索 **dsh-file-actions**,确认作者为 **jidekaixin2dian** 后安装;已有用户在「已安装」中检查更新。市场数据与 npm 镜像可能有同步延迟。
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Desktop 用户在应用内插件市场安装、更新或卸载,按提示重启。Web/CLI 用户停止对应会话后,可对 `web` profile 执行以下命令;重复执行即可更新:
|
|
47
47
|
|
|
48
48
|
```powershell
|
|
49
|
-
dsh plugin --profile
|
|
49
|
+
dsh plugin --profile web add @jidekaixin2dian/dsh-file-actions --registry=https://registry.npmjs.org
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
重新启动对应会话生效。离线包可从 [Release](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) 下载;普通 `npm install` 不会把插件注册进 DSH。
|
|
53
53
|
|
|
54
54
|
<details>
|
|
55
|
-
<summary
|
|
55
|
+
<summary>其他 Web/CLI 安装方式与卸载</summary>
|
|
56
56
|
|
|
57
57
|
GitHub Release 安装:
|
|
58
58
|
|
|
59
59
|
```powershell
|
|
60
|
-
dsh plugin --profile
|
|
60
|
+
dsh plugin --profile web add https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest/download/dsh-file-actions.tgz
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
卸载后重新启动对应会话:
|
|
64
64
|
|
|
65
65
|
```powershell
|
|
66
|
-
dsh plugin --profile
|
|
66
|
+
dsh plugin --profile web remove @jidekaixin2dian/dsh-file-actions
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
</details>
|