dsh-minimal-ptc 0.4.0 → 0.4.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
@@ -1,14 +1,15 @@
1
1
  # dsh-minimal-ptc
2
2
 
3
3
  > Minimal prompt x full PTC capabilities — a cleaner coding agent.
4
- > Installing gives you a new agent mode: **Minimal PTC**, with Git Bash kept alive on Windows so the bash tool matches the RL training distribution.
4
+ > Installing gives you a new agent mode: **Minimal PTC**, with Git Bash and persistent PowerShell on Windows, aligned with `dsh-v0.1.1-rc.1`.
5
5
 
6
6
  ## Highlights
7
7
 
8
8
  - **RL-aligned**: the whole system prompt is one sentence — `You are a helpful software engineer assistant.` — close to the compact instruction distribution used during RL fine-tuning, without long-prompt format bias or context noise.
9
9
  - **Complete toolset**: inherits the full PTC toolset — Code Mode SDK multi-step orchestration, files and search, Shell, Skills, plan mode, goals, subagents, and workflows.
10
10
  - **We / Let's reasoning**: the Code Mode SDK packs thinking and doing into one TypeScript program, orchestrating multi-step operations before executing them once. This matches the high-scoring Minimal trajectory in DeepSeek's official Project2 V4.1b runs (99/96), where reasoning is dominated by `we` / `let's` instead of the standard-like `let me` / `I` blocks seen at 91/92.
11
- - **Git Bash on Windows**: ships a preset-local Git Bash executor (GIT_BASH -> Program Files\Git -> LOCALAPPDATA\Git -> PATH). The bash tool is no longer disabled on Windows; pwsh remains available as a fallback.
11
+ - **Git Bash on Windows**: ships a preset-local Git Bash executor (GIT_BASH -> Program Files\Git -> LOCALAPPDATA\Git -> PATH). The bash tool is no longer disabled on Windows.
12
+ - **Persistent PowerShell on Windows**: mirrors the `dsh-v0.1.1-rc.1` minimal preset; `pwsh` runs as a persistent PTY session, so cwd, variables, and functions survive across calls.
12
13
 
13
14
  ## Installation
14
15
 
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-minimal-ptc
2
2
 
3
3
  > 极简提示词 × PTC 全能力 —— 一个更"干净"的编码 Agent。
4
- > 安装即获得新的 Agent 模式:**极简 PTC 模式**;Windows 自动启用 Git Bash,bash 工具与 RL 训练分布对齐。
4
+ > 安装即获得新的 Agent 模式:**极简 PTC 模式**;Windows 自动启用 Git Bash 与持久 PowerShell(对齐 dsh-v0.1.1-rc.1)。
5
5
 
6
6
  ## 卖点
7
7
 
@@ -14,7 +14,8 @@
14
14
  多步操作先编排、再一次执行。这与 DeepSeek 官方跑分环境(Project2 V4.1b)中
15
15
  Minimal 高分轨迹一致:99/96 的两跑以 `we` / `let's` 为主,而不是
16
16
  Standard/PTC 常见的 `let me` / `I` 长块。
17
- - **Windows 保持 bash**:预设内置 Git Bash executor(自动探测 GIT_BASH → Program Files\Git → LOCALAPPDATA\Git → PATH),`bash` 工具不再在 Windows 上被禁用;pwsh 仍保留为备用。
17
+ - **Windows 保持 bash**:预设内置 Git Bash executor(自动探测 GIT_BASH → Program Files\Git → LOCALAPPDATA\Git → PATH),`bash` 工具不再在 Windows 上被禁用。
18
+ - **Windows 持久 PowerShell**:对齐 `dsh-v0.1.1-rc.1` 的 minimal 预设,`pwsh` 使用持久 PTY 会话,cwd、变量、函数跨调用保留。
18
19
 
19
20
  ## 安装
20
21
 
package/lib/index.js CHANGED
@@ -16,7 +16,7 @@ import { fileURLToPath } from 'node:url'
16
16
 
17
17
  export const name = 'ptc-minimal-preset'
18
18
 
19
- const VERSION = '0.4.0'
19
+ const VERSION = '0.4.1'
20
20
  const PRESET_ID = 'ptc-minimal'
21
21
  const MARKER = '.dsh-ptc-minimal.version'
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-minimal-ptc",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Minimal prompt x full PTC tools for DeepSeek Harness - aligned with the Project2 we/let's trajectory (Minimal 99/96).",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "homepage": "https://github.com/STARDUSTLC666/dsh-minimal-ptc#readme",
51
51
  "engines": {
52
- "node": ">=18"
52
+ "node": ">=22"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "node --test"
@@ -37,7 +37,41 @@
37
37
 
38
38
  - id: tool-pwsh
39
39
  name: '@deepseek-ai/dsh-tool-pwsh'
40
+ disabled: true
41
+
42
+ # Windows persistent PowerShell PTY stack (rc.1 minimal parity). Replaces the
43
+ # one-shot pwsh row on win32; the gitbash group below keeps a stateless bash
44
+ # tool beside it. The model-facing tool name remains `pwsh`.
45
+ - id: persistent-shell
46
+ name: cordis:group
47
+ group: true
40
48
  disabled: !!js process.platform !== 'win32'
49
+ isolate:
50
+ terminals: true
51
+ config:
52
+ - id: pty
53
+ name: '@deepseek-ai/dsh-terminal'
54
+
55
+ - id: terminal-pwsh
56
+ name: '@deepseek-ai/dsh-terminal-bash'
57
+ disabled: !!js process.platform !== 'win32'
58
+ config:
59
+ shellDialect: pwsh
60
+ timeoutMs: 300000
61
+
62
+ - id: persistent-pwsh
63
+ name: '@deepseek-ai/dsh-tool-pwsh-persistent'
64
+ disabled: !!js process.platform !== 'win32'
65
+ config:
66
+ timeoutMs: 300000
67
+ description: |-
68
+ Run commands in a PowerShell shell
69
+ * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
70
+ * You don't have access to the internet via this tool.
71
+ * State is persistent across command calls and discussions with the user.
72
+ * Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
73
+ * Please avoid commands that may produce a very large amount of output.
74
+ * Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
41
75
 
42
76
  # Windows Git Bash shell stack. The preset-local executor runs every `bash`
43
77
  # call through Git for Windows bash, keeping the model-facing tool name and
@@ -191,7 +225,7 @@
191
225
  config:
192
226
  provider: codex
193
227
  toolName: subagent_codex
194
- enableRunInBackground: false
228
+ backgroundMode: one-shot
195
229
  maxDepth: provider-managed
196
230
 
197
231
  - id: tool-subagent-claude-code
@@ -200,7 +234,7 @@
200
234
  config:
201
235
  provider: claude-code
202
236
  toolName: subagent_claude_code
203
- enableRunInBackground: false
237
+ backgroundMode: one-shot
204
238
  maxDepth: provider-managed
205
239
 
206
240
  - id: workflow-worker-thread
@@ -1,2 +1,2 @@
1
1
  name: 极简 PTC 模式
2
- description: 提示词与极简模式一致(一句固定人格,无运行时上下文与附加指令),保留 PTC 模式的全部能力:Code Mode SDK 多步工具编排,以及文件、Shell、检索、Skills、计划、目标、子代理和工作流。Windows 下通过预设内置 Git Bash executor 保持 bash 工具可用,与 RL 训练动作分布对齐。
2
+ description: 提示词与极简模式一致(一句固定人格,无运行时上下文与附加指令),保留 PTC 模式的全部能力:Code Mode SDK 多步工具编排,以及文件、Shell、检索、Skills、计划、目标、子代理和工作流。Windows 上 Shell 为持久 PowerShell + Git Bash,并对齐 dsh-v0.1.1-rc.1 子代理配置。