@deepseek-ai/dsh-tool-bash-persistent 0.1.7-rc.1 → 0.1.7-rc.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 +78 -5
- package/lib/index.js +2 -1
- package/package.json +20 -18
package/README.i18n.yaml
CHANGED
|
@@ -1,6 +1,79 @@
|
|
|
1
|
-
# Bilingual-pair consistency record (docs/i18n/README.md):
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/shell/tool-bash-persistent/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: 1516a333e77ca54a
|
|
7
|
+
zh: 53ef80da9cefd884
|
|
8
|
+
/deepseek-ai-dsh-tool-bash-persistent:
|
|
9
|
+
en: 7182dce9573ad218
|
|
10
|
+
zh: 2a103f9a62465adb
|
|
11
|
+
/deepseek-ai-dsh-tool-bash-persistent/summary:
|
|
12
|
+
en: c69d0b2f4043b9af
|
|
13
|
+
zh: 03a50ce77e9dd092
|
|
14
|
+
/deepseek-ai-dsh-tool-bash-persistent/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/deepseek-ai-dsh-tool-bash-persistent/use-this-package:
|
|
18
|
+
en: ddec7cc1004498f8
|
|
19
|
+
zh: cd0cba22e570d1e9
|
|
20
|
+
/deepseek-ai-dsh-tool-bash-persistent/use-this-package/when-to-choose-it:
|
|
21
|
+
en: cabfbfebb53d909a
|
|
22
|
+
zh: 9e403f87f211cc4a
|
|
23
|
+
/deepseek-ai-dsh-tool-bash-persistent/use-this-package/minimal-configuration:
|
|
24
|
+
en: 83cb0aeb3b41f700
|
|
25
|
+
zh: cb1316b70eb98a09
|
|
26
|
+
/deepseek-ai-dsh-tool-bash-persistent/use-this-package/what-the-agent-can-rely-on:
|
|
27
|
+
en: b398f124ea7b77b0
|
|
28
|
+
zh: 50855e601e6c1b88
|
|
29
|
+
/deepseek-ai-dsh-tool-bash-persistent/use-this-package/what-can-go-wrong:
|
|
30
|
+
en: 2713550ebdb02f69
|
|
31
|
+
zh: 52ed398dc541d1fc
|
|
32
|
+
/deepseek-ai-dsh-tool-bash-persistent/understand-the-implementation:
|
|
33
|
+
en: 8d94a7381bca3fa9
|
|
34
|
+
zh: f4bd2866fff6fa8d
|
|
35
|
+
/deepseek-ai-dsh-tool-bash-persistent/understand-the-implementation/design-philosophy:
|
|
36
|
+
en: 61c39f52982612e3
|
|
37
|
+
zh: 92bc7e3c8d13a211
|
|
38
|
+
/deepseek-ai-dsh-tool-bash-persistent/understand-the-implementation/source-map:
|
|
39
|
+
en: 8dc5a2fb04ac01a2
|
|
40
|
+
zh: ad7822d2f49fafce
|
|
41
|
+
/deepseek-ai-dsh-tool-bash-persistent/understand-the-implementation/command-flow:
|
|
42
|
+
en: 3b7bf7c20b266c31
|
|
43
|
+
zh: 85a325ef65fa7ac7
|
|
44
|
+
/deepseek-ai-dsh-tool-bash-persistent/further-exploration:
|
|
45
|
+
en: 3a700d3333442a0c
|
|
46
|
+
zh: 67fb851aaf297d27
|
|
47
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience:
|
|
48
|
+
en: 215e7ba838619b7b
|
|
49
|
+
zh: a311da3843709f90
|
|
50
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-schema:
|
|
51
|
+
en: e4c7376d4f29dbd5
|
|
52
|
+
zh: 6b7a9eaf69c9ea53
|
|
53
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-schema/what-the-model-sees:
|
|
54
|
+
en: b3bac26e0866aec6
|
|
55
|
+
zh: 8ee63c4c128ea2b4
|
|
56
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-schema/token-effect:
|
|
57
|
+
en: feee7dec91ae7329
|
|
58
|
+
zh: b62338fa72ad3b87
|
|
59
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-schema/kv-cache-effect:
|
|
60
|
+
en: 7d9323583a83cb95
|
|
61
|
+
zh: cc5daa6bce8450f8
|
|
62
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-results:
|
|
63
|
+
en: beaabb79f229692a
|
|
64
|
+
zh: 8573891441963be4
|
|
65
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-results/what-the-model-sees:
|
|
66
|
+
en: 7c197e9bb86cc044
|
|
67
|
+
zh: d8ffe918aab08250
|
|
68
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-results/token-effect:
|
|
69
|
+
en: 5dea04ce6a30ad48
|
|
70
|
+
zh: c2434253dc517d3d
|
|
71
|
+
/deepseek-ai-dsh-tool-bash-persistent/model-experience/tool-results/kv-cache-effect:
|
|
72
|
+
en: ba6a48888c3361e5
|
|
73
|
+
zh: 3a8f648053555dc9
|
|
74
|
+
/deepseek-ai-dsh-tool-bash-persistent/known-limitations-and-deferred-work:
|
|
75
|
+
en: dc5a908f2b2da040
|
|
76
|
+
zh: 3afceaabcf324771
|
|
77
|
+
/deepseek-ai-dsh-tool-bash-persistent/known-limitations-and-deferred-work/dev-note:
|
|
78
|
+
en: e67f633dc6fe7773
|
|
79
|
+
zh: 3bb0c20c93f16f98
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
|
+
import { truncateWithoutSplittingSurrogatePair } from "@deepseek-ai/dsh-output-retention";
|
|
3
4
|
import { deadline, timeoutOf } from "@deepseek-ai/dsh-timeout";
|
|
4
5
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
5
6
|
//#region lib/types/index.js
|
|
@@ -75,7 +76,7 @@ const POLL_INTERVAL_MS = 25;
|
|
|
75
76
|
const DEFAULT_DESCRIPTION = "Run commands in a persistent bash shell. State, including the current directory and exported environment variables, persists across calls for this agent.";
|
|
76
77
|
function maybeTruncate(content, maxOutputChars, incomplete = false) {
|
|
77
78
|
if (content.length <= maxOutputChars && !incomplete) return content;
|
|
78
|
-
return content.length <= maxOutputChars ? content + TRUNCATED_MESSAGE : content
|
|
79
|
+
return content.length <= maxOutputChars ? content + TRUNCATED_MESSAGE : truncateWithoutSplittingSurrogatePair(content, maxOutputChars) + TRUNCATED_MESSAGE;
|
|
79
80
|
}
|
|
80
81
|
function markers() {
|
|
81
82
|
const nonce = randomUUID();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-tool-bash-persistent",
|
|
3
3
|
"description": "Model-facing owner-scoped persistent Bash tool backed by the Harness PTY service",
|
|
4
|
-
"version": "0.1.7-rc.
|
|
4
|
+
"version": "0.1.7-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@deepseek-ai/dsh-agent": "0.1.7-rc.
|
|
30
|
-
"@deepseek-ai/dsh-
|
|
31
|
-
"@deepseek-ai/dsh-
|
|
32
|
-
"@deepseek-ai/dsh-
|
|
29
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
30
|
+
"@deepseek-ai/dsh-output-retention": "0.1.7-rc.2",
|
|
31
|
+
"@deepseek-ai/dsh-terminal": "0.1.7-rc.2",
|
|
32
|
+
"@deepseek-ai/dsh-timeout": "0.1.7-rc.2",
|
|
33
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
33
34
|
"@deepseek-ai/cordis": "~4.0.4"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
@@ -38,19 +39,20 @@
|
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@deepseek-ai/cordis-plugin-include": "~1.0.9",
|
|
40
41
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
41
|
-
"@deepseek-ai/dsh-agent": "0.1.7-rc.
|
|
42
|
-
"@deepseek-ai/dsh-llm": "0.1.7-rc.
|
|
43
|
-
"@deepseek-ai/dsh-
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-terminal
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-sandbox
|
|
48
|
-
"@deepseek-ai/dsh-
|
|
49
|
-
"@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
42
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-rc.2",
|
|
43
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
44
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
45
|
+
"@deepseek-ai/dsh-output-retention": "0.1.7-rc.2",
|
|
46
|
+
"@deepseek-ai/dsh-terminal": "0.1.7-rc.2",
|
|
47
|
+
"@deepseek-ai/dsh-terminal-bash": "0.1.7-rc.2",
|
|
48
|
+
"@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
|
|
49
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.2",
|
|
50
|
+
"@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-timeout": "0.1.7-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
52
55
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
53
|
-
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.
|
|
54
|
-
"@deepseek-ai/dsh-tools": "0.1.7-rc.1"
|
|
56
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.2"
|
|
55
57
|
}
|
|
56
58
|
}
|