@deepseek-ai/dsh-tool-pwsh-persistent 0.1.2-alpha.5 → 0.1.3-alpha.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 +2 -2
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/package.json +20 -20
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
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:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: a23bd1ca677d00edd83d9f07f8520d12ce2b8e6c
|
|
6
|
+
README.zh.md: 1eb2ae252c2baeca7dc6cb5dfdaca18e10abd93b
|
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ This section explains the design decisions behind the tool and points at the cod
|
|
|
72
72
|
|
|
73
73
|
### Design philosophy
|
|
74
74
|
|
|
75
|
-
- **A deliberate twin of `dsh-tool-bash-persistent`.** The session registry, polling loop, and reset contract mirror the persistent bash tool by design ([pwsh persistent PTY Agent Note](../../../.agents/notes/
|
|
75
|
+
- **A deliberate twin of `dsh-tool-bash-persistent`.** The session registry, polling loop, and reset contract mirror the persistent bash tool by design ([pwsh persistent PTY Agent Note](../../../.agents/notes/archived/architecture/2026-08-11-pwsh-persistent-pty.md)).
|
|
76
76
|
- **Prompt-function readiness.** The tool installs its own `prompt` function that prints a BEL-terminated OSC marker plus a printable prompt; the OSC marker carries the last exit code and the printable prompt settles every command, so a model redefinition of `prompt` degrades readiness to the silence tier.
|
|
77
77
|
- **PSReadLine echo stripped by anchoring.** PowerShell renders submitted input back into the stream; the marker-anchored extraction and a wrapper-source strip remove the echo, and a wrapper that wraps across the terminal width may leave a partial echo in partial-output results.
|
|
78
78
|
- **Reset, never repair.** Any uncertain state — an explicit `exit`, a timeout, a send failure, an abort — closes the shell and starts the next call fresh.
|
|
@@ -100,7 +100,7 @@ Read these pages when the package-level contract is not enough. They move from t
|
|
|
100
100
|
- [terminal package map](../../terminal/README.md) — the persistent PTY capability family.
|
|
101
101
|
- [terminal seam](../../terminal/terminal/README.md) — the `ctx.terminals` service behind the tool.
|
|
102
102
|
- [terminal-bash backend](../../terminal/terminal-bash/README.md) — the default backend, configured with `shellDialect: pwsh`.
|
|
103
|
-
- [pwsh persistent PTY Agent Note](../../../.agents/notes/
|
|
103
|
+
- [pwsh persistent PTY Agent Note](../../../.agents/notes/archived/architecture/2026-08-11-pwsh-persistent-pty.md) — the pwsh-side session design and its rationale.
|
|
104
104
|
- [Persistent PTY sessions Agent Note](../../../.agents/notes/implemented/feature/2026-07-16-persistent-pty-sessions.md) — the owner-scoped session design and its rationale.
|
|
105
105
|
- [Generated tool catalog](../../../docs/tool-catalog.md#deepseek-aidsh-tool-pwsh-persistent) — the exact `pwsh` argument schema.
|
|
106
106
|
- [Generated configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-tool-pwsh-persistent) — every accepted config field and its source declaration.
|
package/README.zh.md
CHANGED
|
@@ -72,7 +72,7 @@ kind: "package-reference"
|
|
|
72
72
|
|
|
73
73
|
### 设计理念
|
|
74
74
|
|
|
75
|
-
- **`dsh-tool-bash-persistent` 的刻意孪生。** 会话注册表、轮询循环与重置约定按设计镜像持久 bash 工具([pwsh 持久 PTY Agent Note](../../../.agents/notes/
|
|
75
|
+
- **`dsh-tool-bash-persistent` 的刻意孪生。** 会话注册表、轮询循环与重置约定按设计镜像持久 bash 工具([pwsh 持久 PTY Agent Note](../../../.agents/notes/archived/architecture/2026-08-11-pwsh-persistent-pty.md))。
|
|
76
76
|
- **prompt 函数就绪。** 工具安装自己的 `prompt` 函数,打印 BEL 结尾的 OSC 标记加可打印提示词;OSC 标记携带最后的退出码,可打印提示词让每条命令都能结算,因此模型重定义 `prompt` 会把就绪降级到静默层级。
|
|
77
77
|
- **PSReadLine 回显靠锚定剥离。** PowerShell 会把提交的输入渲染回流中;标记锚定提取与包装源码剥离移除回显,而跨终端宽度换行的包装可能在部分输出结果中留下部分回显。
|
|
78
78
|
- **重置,而非修复。** 任何不确定状态——显式 `exit`、超时、发送失败、中止——都会关闭 shell 并让下一次调用从全新状态开始。
|
|
@@ -100,7 +100,7 @@ kind: "package-reference"
|
|
|
100
100
|
- [terminal 包映射](../../terminal/README.zh.md)——持久 PTY 能力家族。
|
|
101
101
|
- [terminal seam](../../terminal/terminal/README.zh.md)——工具背后的 `ctx.terminals` 服务。
|
|
102
102
|
- [terminal-bash 后端](../../terminal/terminal-bash/README.zh.md)——默认后端,配置 `shellDialect: pwsh`。
|
|
103
|
-
- [pwsh 持久 PTY Agent Note](../../../.agents/notes/
|
|
103
|
+
- [pwsh 持久 PTY Agent Note](../../../.agents/notes/archived/architecture/2026-08-11-pwsh-persistent-pty.md)——pwsh 侧会话设计及其理由。
|
|
104
104
|
- [持久 PTY 会话 Agent Note](../../../.agents/notes/implemented/feature/2026-07-16-persistent-pty-sessions.zh.md)——按所有者会话的设计及其理由。
|
|
105
105
|
- [生成的工具目录](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-pwsh-persistent)——`pwsh` 参数 schema 的确切内容。
|
|
106
106
|
- [生成的配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-tool-pwsh-persistent)——每个受支持配置字段及其源声明。
|
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.
|
|
4
|
+
"version": "0.1.3-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
30
|
-
"@deepseek-ai/dsh-terminal": "^0.1.
|
|
31
|
-
"@deepseek-ai/
|
|
32
|
-
"@deepseek-ai/dsh-tools": "^0.1.
|
|
33
|
-
"@deepseek-ai/
|
|
29
|
+
"@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
|
|
30
|
+
"@deepseek-ai/dsh-terminal": "^0.1.3-alpha.2",
|
|
31
|
+
"@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
|
|
32
|
+
"@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
|
|
33
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
40
40
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
41
|
-
"@deepseek-ai/dsh-
|
|
42
|
-
"@deepseek-ai/dsh-
|
|
43
|
-
"@deepseek-ai/dsh-terminal": "^0.1.
|
|
44
|
-
"@deepseek-ai/dsh-terminal
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-sandbox-policy": "^0.1.
|
|
48
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
54
|
-
"@deepseek-ai/
|
|
41
|
+
"@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-pwsh-local": "^0.1.3-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-terminal-bash": "^0.1.3-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-terminal": "^0.1.3-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-sandbox": "^0.1.3-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.1.3-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.3-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-subprocess-local": "^0.1.3-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
|
|
52
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
53
|
+
"@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-tools": "^0.1.3-alpha.2"
|
|
55
55
|
}
|
|
56
56
|
}
|