@xiaoso/dsh-tool-plus 0.1.2-rc.1 → 0.1.3
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
|
@@ -41,17 +41,6 @@ Install **both** the plugin and the presets:
|
|
|
41
41
|
dsh plugin --profile web add @xiaoso/dsh-tool-plus
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
### Choosing a version
|
|
45
|
-
|
|
46
|
-
The plugin version maps one-to-one to the dsh version — pick the install command that matches your dsh:
|
|
47
|
-
|
|
48
|
-
| Plugin version (dist-tag) | Matching dsh version | Install command |
|
|
49
|
-
| --- | --- | --- |
|
|
50
|
-
| 0.1.2-rc.1 (`next`) | dsh v0.1.2-rc.1 (`next`) | `dsh plugin --profile web add @xiaoso/dsh-tool-plus@next` |
|
|
51
|
-
| 0.1.2 (`latest`) | dsh v0.1.1-rc.2 | `dsh plugin --profile web add @xiaoso/dsh-tool-plus` |
|
|
52
|
-
|
|
53
|
-
The plugin's `next` version number stays in lockstep with dsh's `next` (currently both 0.1.2-rc.1); installing without a tag gets the `latest` stable release.
|
|
54
|
-
|
|
55
44
|
### Install from GitHub
|
|
56
45
|
|
|
57
46
|
Track the latest development build:
|
|
@@ -121,7 +110,7 @@ Works out of the box, no configuration needed. Common tweaks: background thresho
|
|
|
121
110
|
- **dsh CLI**: installed globally, `npm i -g @deepseek-ai/dsh`
|
|
122
111
|
- **Node.js** ≥ 22.19 or ≥ 24
|
|
123
112
|
- **Git Bash** (recommended): serves as the bash execution environment on Windows
|
|
124
|
-
-
|
|
113
|
+
- Targets DeepSeek Harness `dsh` v0.1.2-rc.1 (pre-release; interfaces may change)
|
|
125
114
|
|
|
126
115
|
## Notes
|
|
127
116
|
|
package/README.md
CHANGED
|
@@ -41,17 +41,6 @@ DeepSeek Harness 基础工具增强:持久 bash、结构化 read、多模式 e
|
|
|
41
41
|
dsh plugin --profile web add @xiaoso/dsh-tool-plus
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
### 版本选择
|
|
45
|
-
|
|
46
|
-
插件版本与 dsh 版本一一对应,按你的 dsh 版本选择安装:
|
|
47
|
-
|
|
48
|
-
| 插件版本(dist-tag) | 对应 dsh 版本 | 安装命令 |
|
|
49
|
-
| --- | --- | --- |
|
|
50
|
-
| 0.1.2-rc.1(`next`) | dsh v0.1.2-rc.1(`next`) | `dsh plugin --profile web add @xiaoso/dsh-tool-plus@next` |
|
|
51
|
-
| 0.1.2(`latest`) | dsh v0.1.1-rc.2 | `dsh plugin --profile web add @xiaoso/dsh-tool-plus` |
|
|
52
|
-
|
|
53
|
-
插件与 dsh 的 `next` 版本号保持一致(当前均为 0.1.2-rc.1);不带 tag 安装的是 `latest` 稳定版。
|
|
54
|
-
|
|
55
44
|
### 从 GitHub 安装
|
|
56
45
|
|
|
57
46
|
跟踪最新开发版:
|
|
@@ -117,7 +106,7 @@ npx @xiaoso/dsh-tool-plus-presets
|
|
|
117
106
|
- **dsh CLI**:需全局安装,`npm i -g @deepseek-ai/dsh`
|
|
118
107
|
- **Node.js** ≥ 22.19 或 ≥ 24
|
|
119
108
|
- **Git Bash**(推荐):Windows 上作为 bash 执行环境
|
|
120
|
-
-
|
|
109
|
+
- 适用于 DeepSeek Harness `dsh` v0.1.2-rc.1(pre-release,接口可能变动)
|
|
121
110
|
|
|
122
111
|
## 注意事项
|
|
123
112
|
|
package/lib/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ __installBunShim();
|
|
|
3
3
|
import { n as fs_promises_shim_exports, t as exists } from "./fs-promises-shim-Bx0fpxuk.mjs";
|
|
4
4
|
import { i as setRuntimeLogger, n as systemChromiumCandidatesForTest, r as runtimeLogger } from "./launch-DwpE70Pv.mjs";
|
|
5
5
|
import { $ as peekFile, A as formatAge, C as error, F as $envpos, I as $flag, M as formatCount, P as $env, Q as isProbablyBinary, S as debug, T as warn, U as getAutoQaDbPath, V as VERSION, X as getRemoteDir, Y as getPuppeteerDir, b as isEnotdir, c as combineSignals, d as $which, j as formatBytes$1, k as installBunShim, l as exec, p as readImageMetadata, q as getInstallId, tt as untilAborted, u as render, v as hasFsCode, y as isEnoent } from "./src-D_e1qMwi.mjs";
|
|
6
|
-
import { C as truncateToWidth$1, S as replaceTabs, _ as formatCodeFrameLine, a as fetchBinary, b as LRUCache, c as getParallelExtractContent, d as convertFileWithMarkit, f as Settings, g as capParseErrors, h as OMP_DEFAULTS, i as convertWithMarkit, l as ensureTool, m as settings, o as extractWithParallel, p as isSettingsInitialized, s as findParallelApiKey, u as CONVERTIBLE_EXTENSIONS, v as formatParseErrors, x as padding, y as shortenPath } from "./utils-
|
|
6
|
+
import { C as truncateToWidth$1, S as replaceTabs, _ as formatCodeFrameLine, a as fetchBinary, b as LRUCache, c as getParallelExtractContent, d as convertFileWithMarkit, f as Settings, g as capParseErrors, h as OMP_DEFAULTS, i as convertWithMarkit, l as ensureTool, m as settings, o as extractWithParallel, p as isSettingsInitialized, s as findParallelApiKey, u as CONVERTIBLE_EXTENSIONS, v as formatParseErrors, x as padding, y as shortenPath } from "./utils-DEUxgLCs.mjs";
|
|
7
7
|
import { t as sanitizeText } from "./sanitize-text-CfcXzw5X.mjs";
|
|
8
8
|
import { n as isRecord$2 } from "./type-guards-B9VVjRDK.mjs";
|
|
9
9
|
import { n as ToolError, r as throwIfAborted, t as ToolAbortError } from "./tool-errors-DoyxivAR.mjs";
|
|
@@ -2763,6 +2763,7 @@ function startBashJob(options) {
|
|
|
2763
2763
|
timeoutMs: timeoutMs ?? null,
|
|
2764
2764
|
wallTimeMs,
|
|
2765
2765
|
...result.workingDir !== void 0 ? { workingDir: result.workingDir } : {},
|
|
2766
|
+
...result.minimized !== void 0 ? { minimized: result.minimized } : {},
|
|
2766
2767
|
output: {
|
|
2767
2768
|
text,
|
|
2768
2769
|
truncated: result.truncated,
|
|
@@ -14857,7 +14858,7 @@ let specialHandlersPromise;
|
|
|
14857
14858
|
* requires a special handler, so we keep them out of the cold-startup graph.
|
|
14858
14859
|
*/
|
|
14859
14860
|
function loadSpecialHandlers() {
|
|
14860
|
-
specialHandlersPromise ??= import("./scrapers-
|
|
14861
|
+
specialHandlersPromise ??= import("./scrapers-BJ1YemnI.mjs").then((m) => m.specialHandlers);
|
|
14861
14862
|
return specialHandlersPromise;
|
|
14862
14863
|
}
|
|
14863
14864
|
/**
|
|
@@ -26335,7 +26336,8 @@ function apply(ctx, config = {}) {
|
|
|
26335
26336
|
snapshotEnabled: cfg.snapshotEnabled,
|
|
26336
26337
|
rmSafe: cfg.rmSafe,
|
|
26337
26338
|
nonInteractiveEnv: cfg.nonInteractiveEnv,
|
|
26338
|
-
artifactPath: allocateSpillFile()
|
|
26339
|
+
artifactPath: allocateSpillFile(),
|
|
26340
|
+
onMinimizedSave: (text) => saveOriginalText(text)
|
|
26339
26341
|
});
|
|
26340
26342
|
if (result.cancelled && exec.signal.aborted) throw abortError();
|
|
26341
26343
|
if (result.workingDir !== void 0) state.cwd = result.workingDir;
|
|
@@ -26393,7 +26395,8 @@ function apply(ctx, config = {}) {
|
|
|
26393
26395
|
snapshotEnabled: cfg.snapshotEnabled,
|
|
26394
26396
|
rmSafe: cfg.rmSafe,
|
|
26395
26397
|
nonInteractiveEnv: cfg.nonInteractiveEnv,
|
|
26396
|
-
artifactPath: allocateSpillFile()
|
|
26398
|
+
artifactPath: allocateSpillFile(),
|
|
26399
|
+
onMinimizedSave: (text) => saveOriginalText(text)
|
|
26397
26400
|
});
|
|
26398
26401
|
const wallTimeMs = performance.now() - startedAt;
|
|
26399
26402
|
if (result.cancelled && exec.signal.aborted) throw abortError();
|
|
@@ -3,7 +3,7 @@ __installBunShim();
|
|
|
3
3
|
import { n as fs_promises_shim_exports } from "./fs-promises-shim-Bx0fpxuk.mjs";
|
|
4
4
|
import { B as USER_AGENT, G as getDocsRsCacheDir, N as formatNumber, P as $env, T as warn, c as combineSignals, j as formatBytes, l as exec, s as Snowflake, x as parseFrontmatter, y as isEnoent } from "./src-D_e1qMwi.mjs";
|
|
5
5
|
import { V as tryParseJson } from "./utils-fnV2zzp3.mjs";
|
|
6
|
-
import { a as fetchBinary, c as getParallelExtractContent, i as convertWithMarkit, l as ensureTool, m as settings, n as asRecord, o as extractWithParallel, r as asString, s as findParallelApiKey, t as asNumber } from "./utils-
|
|
6
|
+
import { a as fetchBinary, c as getParallelExtractContent, i as convertWithMarkit, l as ensureTool, m as settings, n as asRecord, o as extractWithParallel, r as asString, s as findParallelApiKey, t as asNumber } from "./utils-DEUxgLCs.mjs";
|
|
7
7
|
import { n as isRecord } from "./type-guards-B9VVjRDK.mjs";
|
|
8
8
|
import { r as throwIfAborted, t as ToolAbortError } from "./tool-errors-DoyxivAR.mjs";
|
|
9
9
|
import { c as getLocalizedText, d as looksLikeHtml, i as decodeHtmlEntities, l as htmlToBasicMarkdown, o as formatIsoDate, r as buildResult, s as formatMediaDuration, u as loadPage } from "./types-BUO0JXO-.mjs";
|
|
@@ -7202,7 +7202,7 @@ const settings = {
|
|
|
7202
7202
|
};
|
|
7203
7203
|
//#endregion
|
|
7204
7204
|
//#region package.json
|
|
7205
|
-
var version = "0.1.
|
|
7205
|
+
var version = "0.1.3";
|
|
7206
7206
|
/** `.tmp` files older than this are treated as orphaned writes and swept. */
|
|
7207
7207
|
const TMP_ORPHAN_MAX_AGE_MS = 3e5;
|
|
7208
7208
|
function markitConversionCacheKey(bytes, extension) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiaoso/dsh-tool-plus",
|
|
3
3
|
"description": "Oh My Pi bash runtime ported as a deepseek-harness tool plugin: persistent shell session, output minimizer, managed background jobs, command interception",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"deepseek-harness",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public",
|
|
33
|
-
"tag": "
|
|
33
|
+
"tag": "latest"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": "^22.19.0 || >=24.0.0"
|
package/presets/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiaoso/dsh-tool-plus-presets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Agent-preset installer for dsh-tool-plus: installs the standard / PTC enhanced preset templates into a DeepSeek Harness home.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"type": "module",
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public",
|
|
28
|
-
"tag": "
|
|
28
|
+
"tag": "latest"
|
|
29
29
|
},
|
|
30
30
|
"bin": {
|
|
31
31
|
"dsh-tool-plus-presets": "./install-presets.mjs"
|