@xiaoso/dsh-tool-plus 0.1.0-beta.6 → 0.1.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.en.md CHANGED
@@ -2,13 +2,17 @@
2
2
 
3
3
  [简体中文](./README.md) | English
4
4
 
5
- Essential tools enhancement for DeepSeek Harness: persistent bash, structured read, multi-mode edit, atomic write, full-text search, and direct image reading — one plugin covers it all. Ported from the [Oh My Pi](https://github.com/can1357/oh-my-pi) core; once installed it automatically takes over the official bash / pwsh / file / search tools, with optional `ast_grep` / `ast_edit` structural search and rewrite.
5
+ [![npm version](https://img.shields.io/npm/v/@xiaoso/dsh-tool-plus?logo=npm)](https://www.npmjs.com/package/@xiaoso/dsh-tool-plus)
6
+ [![License: MIT](https://img.shields.io/github/license/xiaoso456/dsh-tool-plus)](LICENSE)
7
+ [![Node](https://img.shields.io/badge/node-%3E%3D22.19%20%7C%20%3E%3D24-339933?logo=nodedotjs)](https://nodejs.org)
8
+ [![Platform](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-lightgrey)]()
6
9
 
7
- > Currently in early beta — behavior and configuration may change at any time.
10
+ Essential tools enhancement for DeepSeek Harness: persistent bash, structured read, multi-mode edit, atomic write, full-text search, and direct image reading — one plugin covers it all. Ported from the [Oh My Pi](https://github.com/can1357/oh-my-pi) core; once installed it automatically takes over the official bash / pwsh / file / search tools, with optional `ast_grep` / `ast_edit` structural search and rewrite.
8
11
 
9
12
  ## Features
10
13
 
11
14
  - **bash**: persistent shell; `cd` and `export` keep state across calls; verbose logs (git/npm/cargo…) are condensed automatically; overlong output keeps only head and tail, with the full content written to disk for later retrieval; long-running commands are moved to the background automatically; optionally intercepts `cat`, `grep`, `find`, and `sed -i` to steer you toward the dedicated tools
15
+ - **Safe delete**: `rm` moves files to the system trash by default instead of deleting permanently, so accidental deletes are recoverable; use `command rm` for a real delete
12
16
  - **read**: precise line-range reading (supports `:N-M`, `:raw`, and multiple ranges); large code files return a structural summary by default, with details expanded on demand; zip/tar archives, SQLite, notebooks, and PDFs read directly; PNG / JPEG / WebP / GIF images read directly, oversized ones scaled down automatically; can fetch web content (including images embedded in the page); SPA sites (content rendered dynamically by JS, e.g. excalidraw.com) are automatically fetched via local browser rendering
13
17
  - **write**: atomic writes that return a diff of the changes; supports patch-style writing, and can write directly into zip/tar archive members and SQLite data
14
18
  - **edit**: `replace` by default, with patch / hashline / apply-patch formats also supported; multi-hunk edits, uniqueness validation, fuzzy matching tolerant of whitespace differences
@@ -30,12 +34,12 @@ Install **both** the plugin and the presets:
30
34
  ### Install from npm (recommended)
31
35
 
32
36
  ```sh
33
- dsh plugin --profile web add @xiaoso/dsh-tool-plus@beta
37
+ dsh plugin --profile web add @xiaoso/dsh-tool-plus
34
38
  ```
35
39
 
36
40
  ### Install from GitHub
37
41
 
38
- Track the latest development build (the project has no formal release yet — every install is a test build):
42
+ Track the latest development build:
39
43
 
40
44
  ```sh
41
45
  dsh plugin --profile web add github:xiaoso456/dsh-tool-plus
@@ -52,7 +56,7 @@ dsh plugin --profile web add link:<path to this repo>
52
56
  **Option 1 · Install with the npx script**
53
57
 
54
58
  ```sh
55
- npx @xiaoso/dsh-tool-plus-presets@beta
59
+ npx @xiaoso/dsh-tool-plus-presets
56
60
  ```
57
61
 
58
62
  **Option 2 · Have an AI session configure the presets** (no dependency on the package above) — paste the following into an AI session that can edit files on your machine:
package/README.md CHANGED
@@ -2,13 +2,17 @@
2
2
 
3
3
  简体中文 | [English](./README.en.md)
4
4
 
5
- DeepSeek Harness 基础工具增强:持久 bash、结构化 read、多模式 edit、原子 write、全文搜索、图像直读,一个插件全覆盖。基于 [Oh My Pi](https://github.com/can1357/oh-my-pi) 内核移植,安装后自动接管官方 bash / pwsh / 文件 / 搜索工具,另有可选的 `ast_grep` / `ast_edit` 结构化搜索与重写。
5
+ [![npm version](https://img.shields.io/npm/v/@xiaoso/dsh-tool-plus?logo=npm)](https://www.npmjs.com/package/@xiaoso/dsh-tool-plus)
6
+ [![License: MIT](https://img.shields.io/github/license/xiaoso456/dsh-tool-plus)](LICENSE)
7
+ [![Node](https://img.shields.io/badge/node-%3E%3D22.19%20%7C%20%3E%3D24-339933?logo=nodedotjs)](https://nodejs.org)
8
+ [![Platform](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-lightgrey)]()
6
9
 
7
- > 当前为早期测试版(beta),行为与配置可能随时调整。
10
+ DeepSeek Harness 基础工具增强:持久 bash、结构化 read、多模式 edit、原子 write、全文搜索、图像直读,一个插件全覆盖。基于 [Oh My Pi](https://github.com/can1357/oh-my-pi) 内核移植,安装后自动接管官方 bash / pwsh / 文件 / 搜索工具,另有可选的 `ast_grep` / `ast_edit` 结构化搜索与重写。
8
11
 
9
12
  ## 功能特性
10
13
 
11
14
  - **bash**:持久 shell,`cd`、`export` 跨调用保持状态;冗长日志(git/npm/cargo…)自动压缩;超长输出只保留头尾,完整内容落盘可回读;长命令自动转后台;可选拦截 `cat`、`grep`、`find`、`sed -i`,引导改用专用工具
15
+ - **安全删除**:`rm` 默认把文件移入系统回收站而非永久删除,误删可恢复;需要真删时用 `command rm`
12
16
  - **read**:按行区间精准读取(支持 `:N-M`、`:raw`、多区间);大代码文件默认返回结构摘要,细节按需展开;zip/tar 归档、SQLite、notebook、PDF 直接读;PNG / JPEG / WebP / GIF 图片直读,超大图自动缩放;可抓取网页内容(含网页内图片);SPA 站点(内容由 JS 动态渲染,如 excalidraw.com)自动改用本机浏览器渲染后抓取
13
17
  - **write**:原子写入,返回修改 diff;支持补丁式写入,可直接写 zip/tar 归档成员与 SQLite 数据
14
18
  - **edit**:replace 默认,另支持 patch / hashline / apply-patch 三种补丁格式;多段编辑、唯一性校验、空白差异模糊匹配
@@ -30,12 +34,12 @@ DeepSeek Harness 基础工具增强:持久 bash、结构化 read、多模式 e
30
34
  ### 从 npm 安装(推荐)
31
35
 
32
36
  ```sh
33
- dsh plugin --profile web add @xiaoso/dsh-tool-plus@beta
37
+ dsh plugin --profile web add @xiaoso/dsh-tool-plus
34
38
  ```
35
39
 
36
40
  ### 从 GitHub 安装
37
41
 
38
- 跟踪最新开发版(本项目现阶段没有正式发布,一切安装均为测试构建):
42
+ 跟踪最新开发版:
39
43
 
40
44
  ```sh
41
45
  dsh plugin --profile web add github:xiaoso456/dsh-tool-plus
@@ -52,7 +56,7 @@ dsh plugin --profile web add link:<本仓库路径>
52
56
  **方法一 · 使用 npx 脚本安装**
53
57
 
54
58
  ```sh
55
- npx @xiaoso/dsh-tool-plus-presets@beta
59
+ npx @xiaoso/dsh-tool-plus-presets
56
60
  ```
57
61
 
58
62
  **方法二 · 使用大模型配置预设**(不依赖上面的包)——把下面这段发给一个能改你电脑上文件的 AI 会话: