@deepseek-ai/dsh-tool-pwsh-persistent 0.1.7-alpha.2 → 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 CHANGED
@@ -1,6 +1,79 @@
1
- # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
- # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
- # after editing either side, bring the other along and re-record with:
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-pwsh-persistent/README.md
5
- README.md: cd78f224f9f85899cca1f578fd0316c6f4caab2f
6
- README.zh.md: 53b0b4cdd69ac94556f16621ccd3d9ca205cc6f4
5
+ /:
6
+ en: 07c1a52a0f913391
7
+ zh: a0c8579b535a1782
8
+ /deepseek-ai-dsh-tool-pwsh-persistent:
9
+ en: dc39535d57c8fdfc
10
+ zh: 953529db098cbda5
11
+ /deepseek-ai-dsh-tool-pwsh-persistent/summary:
12
+ en: a0afc99c0526930b
13
+ zh: abce5685799601d2
14
+ /deepseek-ai-dsh-tool-pwsh-persistent/table-of-contents:
15
+ en: d152484eb41ac6b4
16
+ zh: 09388d293f9be9cb
17
+ /deepseek-ai-dsh-tool-pwsh-persistent/use-this-package:
18
+ en: 9739e1cfe935d4a5
19
+ zh: a2380d889e67b184
20
+ /deepseek-ai-dsh-tool-pwsh-persistent/use-this-package/when-to-choose-it:
21
+ en: bf8a28b21acb1dbd
22
+ zh: 452afa796b0ae38e
23
+ /deepseek-ai-dsh-tool-pwsh-persistent/use-this-package/minimal-configuration:
24
+ en: 6faae7346983f822
25
+ zh: c9b267634d4adffa
26
+ /deepseek-ai-dsh-tool-pwsh-persistent/use-this-package/what-the-agent-can-rely-on:
27
+ en: 9f4c22b06f940caf
28
+ zh: 61f755cec7ff5b76
29
+ /deepseek-ai-dsh-tool-pwsh-persistent/use-this-package/what-can-go-wrong:
30
+ en: 70bf2e1e8d8ccbf6
31
+ zh: 6c78d8c85113adf7
32
+ /deepseek-ai-dsh-tool-pwsh-persistent/understand-the-implementation:
33
+ en: 8d94a7381bca3fa9
34
+ zh: f4bd2866fff6fa8d
35
+ /deepseek-ai-dsh-tool-pwsh-persistent/understand-the-implementation/design-philosophy:
36
+ en: b8544c7025ef7f9e
37
+ zh: 573b0ec492dde975
38
+ /deepseek-ai-dsh-tool-pwsh-persistent/understand-the-implementation/source-map:
39
+ en: bb2d17f1385fb11d
40
+ zh: 8e103837238ccda2
41
+ /deepseek-ai-dsh-tool-pwsh-persistent/understand-the-implementation/command-flow:
42
+ en: 52f69b3256d2d2c2
43
+ zh: 34ce45e101760793
44
+ /deepseek-ai-dsh-tool-pwsh-persistent/further-exploration:
45
+ en: e836ecbf7370bc76
46
+ zh: 84fed68318df81ff
47
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience:
48
+ en: 215e7ba838619b7b
49
+ zh: a311da3843709f90
50
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-schema:
51
+ en: e4c7376d4f29dbd5
52
+ zh: 6b7a9eaf69c9ea53
53
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-schema/what-the-model-sees:
54
+ en: 9948cd040d944ea8
55
+ zh: 07504b24c196dfd0
56
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-schema/token-effect:
57
+ en: 120147c962cbb894
58
+ zh: 8952abc085cf3812
59
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-schema/kv-cache-effect:
60
+ en: 7d9323583a83cb95
61
+ zh: cc5daa6bce8450f8
62
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-results:
63
+ en: beaabb79f229692a
64
+ zh: 8573891441963be4
65
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-results/what-the-model-sees:
66
+ en: bc99957e721951de
67
+ zh: e384874a0f2f63e8
68
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-results/token-effect:
69
+ en: 5dea04ce6a30ad48
70
+ zh: c2434253dc517d3d
71
+ /deepseek-ai-dsh-tool-pwsh-persistent/model-experience/tool-results/kv-cache-effect:
72
+ en: ba6a48888c3361e5
73
+ zh: 3a8f648053555dc9
74
+ /deepseek-ai-dsh-tool-pwsh-persistent/known-limitations-and-deferred-work:
75
+ en: e2f1a18c599a82ba
76
+ zh: 1f00c387a4bb85a8
77
+ /deepseek-ai-dsh-tool-pwsh-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
@@ -74,7 +75,7 @@ const POLL_INTERVAL_MS = 25;
74
75
  const DEFAULT_DESCRIPTION = "Run commands in a persistent PowerShell shell. State, including the current directory and exported environment variables, persists across calls for this agent.";
75
76
  function maybeTruncate(content, maxOutputChars, incomplete = false) {
76
77
  if (content.length <= maxOutputChars && !incomplete) return content;
77
- return content.length <= maxOutputChars ? content + TRUNCATED_MESSAGE : content.slice(0, maxOutputChars) + TRUNCATED_MESSAGE;
78
+ return content.length <= maxOutputChars ? content + TRUNCATED_MESSAGE : truncateWithoutSplittingSurrogatePair(content, maxOutputChars) + TRUNCATED_MESSAGE;
78
79
  }
79
80
  function markers() {
80
81
  const nonce = randomUUID();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-pwsh-persistent",
3
3
  "description": "Model-facing owner-scoped persistent PowerShell tool backed by the Harness PTY service",
4
- "version": "0.1.7-alpha.2",
4
+ "version": "0.1.7-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -26,32 +26,34 @@
26
26
  ],
27
27
  "license": "MIT",
28
28
  "peerDependencies": {
29
- "@deepseek-ai/dsh-terminal": "0.1.7-alpha.2",
30
- "@deepseek-ai/dsh-agent": "0.1.7-alpha.2",
31
- "@deepseek-ai/dsh-timeout": "0.1.7-alpha.2",
32
- "@deepseek-ai/dsh-tools": "0.1.7-alpha.2",
33
- "@deepseek-ai/cordis": "~4.0.4"
29
+ "@deepseek-ai/dsh-timeout": "0.1.7-rc.2",
30
+ "@deepseek-ai/dsh-terminal": "0.1.7-rc.2",
31
+ "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
32
+ "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
33
+ "@deepseek-ai/cordis": "~4.0.4",
34
+ "@deepseek-ai/dsh-output-retention": "0.1.7-rc.2"
34
35
  },
35
36
  "dependencies": {
36
37
  "@deepseek-ai/schemastery": "~3.18.4"
37
38
  },
38
39
  "devDependencies": {
39
40
  "@deepseek-ai/cordis-plugin-loader": "~1.0.5",
40
- "@deepseek-ai/dsh-agent": "0.1.7-alpha.2",
41
- "@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-alpha.2",
42
- "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
41
+ "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
42
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-rc.2",
43
+ "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
43
44
  "@deepseek-ai/cordis-plugin-include": "~1.0.9",
44
- "@deepseek-ai/dsh-terminal": "0.1.7-alpha.2",
45
- "@deepseek-ai/dsh-terminal-bash": "0.1.7-alpha.2",
46
- "@deepseek-ai/dsh-pwsh-local": "0.1.7-alpha.2",
47
- "@deepseek-ai/dsh-sandbox": "0.1.7-alpha.2",
48
- "@deepseek-ai/dsh-sandbox-policy": "0.1.7-alpha.2",
49
- "@deepseek-ai/dsh-session": "0.1.7-alpha.2",
50
- "@deepseek-ai/dsh-session-projection": "0.1.7-alpha.2",
51
- "@deepseek-ai/dsh-system-prompt": "0.1.7-alpha.2",
52
- "@deepseek-ai/dsh-timeout": "0.1.7-alpha.2",
53
- "@deepseek-ai/dsh-tools": "0.1.7-alpha.2",
54
- "@deepseek-ai/dsh-subprocess-local": "0.1.7-alpha.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-pwsh-local": "0.1.7-rc.2",
49
+ "@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
50
+ "@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.2",
51
+ "@deepseek-ai/dsh-session": "0.1.7-rc.2",
52
+ "@deepseek-ai/dsh-session-projection": "0.1.7-rc.2",
53
+ "@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.2",
54
+ "@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
55
+ "@deepseek-ai/dsh-timeout": "0.1.7-rc.2",
56
+ "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
55
57
  "@deepseek-ai/cordis": "~4.0.4"
56
58
  }
57
59
  }