dsh-windows-parallel-mcp 0.11.0-rc.2 → 0.11.0
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/CHANGELOG.de.md +35 -0
- package/CHANGELOG.es.md +35 -0
- package/CHANGELOG.fr.md +35 -0
- package/CHANGELOG.it.md +35 -0
- package/CHANGELOG.ja.md +35 -0
- package/CHANGELOG.ko.md +35 -0
- package/CHANGELOG.md +35 -0
- package/CHANGELOG.pt.md +35 -0
- package/CHANGELOG.ru.md +35 -0
- package/CHANGELOG.zh.md +35 -0
- package/README.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.pt.md +1 -1
- package/README.ru.md +1 -1
- package/README.zh.md +1 -1
- package/docs/refusals.md +7 -2
- package/dsh.plugin.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/schema/tools.json +18 -10
package/CHANGELOG.de.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.es.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.fr.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.it.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.ja.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.md
CHANGED
|
@@ -15,7 +15,40 @@ one is a promise to anyone installing it.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
21
25
|
|
|
26
|
+
## 0.11.0 — 2026-11-29
|
|
27
|
+
|
|
28
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
29
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
30
|
+
kill that left the wedge half-cleaned):
|
|
31
|
+
|
|
32
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
33
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
34
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
35
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
36
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
37
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
38
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
39
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
40
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
41
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
42
|
+
decision table (host ownership).
|
|
43
|
+
|
|
44
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
45
|
+
fires where pre-0.11.0 would have looped forever.
|
|
46
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
47
|
+
|
|
48
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
49
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
50
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
51
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
52
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
53
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
54
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
55
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
56
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
22
57
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
23
58
|
|
|
24
59
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.pt.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.ru.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -18,7 +18,40 @@ one is a promise to anyone installing it.
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
24
28
|
|
|
29
|
+
## 0.11.0 — 2026-11-29
|
|
30
|
+
|
|
31
|
+
**State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
|
|
32
|
+
`0.11.0-rc.1..rc.3` line, closing defect G3 (a restart counter nobody read) and G7 (a timeout
|
|
33
|
+
kill that left the wedge half-cleaned):
|
|
34
|
+
|
|
35
|
+
- `WorkerClient` takes `maxRestarts` (default 3); past the budget the host refuses to spawn
|
|
36
|
+
another worker and the call comes back `worker_wedged` -- a real refusal code in the
|
|
37
|
+
three-source vocabulary (19 codes now), not a generic `action_failed`. `action=status`
|
|
38
|
+
echoes `restarts=N/max`, so the attempt number is visible before anything wedges.
|
|
39
|
+
- The timeout kill now arms the abort latch BEFORE `kill()` (a half-stuck loop still unwinds
|
|
40
|
+
the cursor it holds) and ties the latch file's lifetime to the process -- no orphaned
|
|
41
|
+
`takeover-abort.*` for a recycled pid to trip over. The deliberate plug-pull is recorded
|
|
42
|
+
in the audit as `event=worker_killed` with pid, action, deadline and remaining budget.
|
|
43
|
+
- `abortLatchPath` is single-sourced in `lib/engine.js`; `scripts/check-refusals.mjs` scans
|
|
44
|
+
the host half as an emitter, and `test/refusals-test.ps1` pins the code OUTSIDE the
|
|
45
|
+
decision table (host ownership).
|
|
46
|
+
|
|
47
|
+
No breaking changes: `worker_wedged` is purely additive to the contract, and the wedge only
|
|
48
|
+
fires where pre-0.11.0 would have looped forever.
|
|
49
|
+
## 0.11.0-rc.3 — 2026-11-29 (prerelease)
|
|
50
|
+
|
|
51
|
+
**`worker_wedged` is now a first-class refusal code, not just an error the host throws.**
|
|
52
|
+
It joins the three-source vocabulary (19 codes): `src/schema/tools.json` declares it on every
|
|
53
|
+
worker-reachable tool with a summary that names the next step (read the stderr tail, do not
|
|
54
|
+
retry), `docs/refusals.md` carries its row -- the first code owned by the HOST half, since the
|
|
55
|
+
engine cannot report its own absence -- and `scripts/check-refusals.mjs` now scans
|
|
56
|
+
`lib/engine.js` alongside the PowerShell files so a host-emitted code can no longer drift out
|
|
57
|
+
of the table. `test/refusals-test.ps1` gained the structural arm that pins the OTHER direction:
|
|
58
|
+
the decision table must NOT claim the code (an engine-side branch for it cannot exist); the
|
|
59
|
+
behavioural cap is driven for real in `test/worker-smoke.mjs` section 7.
|
|
25
60
|
## 0.11.0-rc.2 — 2026-11-29 (prerelease)
|
|
26
61
|
|
|
27
62
|
**A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
|
package/README.de.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> Ein DSH-Plugin, mit dem ein Agent **seine eigenen** Windows-Fenster steuert — standardmäßig still, auf Anfrage sichtbar. Wenn ein Fenster Windows-Nachrichten akzeptiert, wird der Fokus nie entzogen. Wenn nur UI Automation es erreicht, gibt es einen einzigen begrenzten Fokus-Blitz, der automatisch rückgängig gemacht wird. Wenn Sie den Takeover-Modus ausdrücklich anfordern, bewegt sich der Cursor zum Aktionspunkt und wird immer wiederhergestellt; ein HUD bietet drei Möglichkeiten zum Abbruch. Überall anders wird mit Code und Grund abgelehnt.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.es.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> Un plugin DSH que permite a un agente controlar **sus propias** ventanas de Windows — silencioso por defecto, visible cuando se pide. Cuando una ventana acepta mensajes de Windows, el foco nunca se pierde. Cuando solo UI Automation puede alcanzarla, el foco sufre un único destello acotado que se revierte automáticamente. Cuando pides explícitamente el modo takeover, el cursor se mueve al punto de acción y siempre se restaura, con un HUD que ofrece tres formas de interrumpir. En cualquier otro caso, rechaza con un código y una razón.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.fr.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> Un plugin DSH qui laisse un agent piloter **ses propres** fenêtres Windows — discrètement par défaut, visiblement sur demande. Quand une fenêtre accepte un message Windows, le focus n'est jamais volé. Quand seule l'UI Automation peut l'atteindre, le focus connaît un seul flash borné, automatiquement réversible. Quand vous demandez explicitement le mode takeover, le curseur se déplace vers le point d'action et est toujours restauré, avec un HUD offrant trois façons d'interrompre. Partout ailleurs, le plugin refuse avec un code et une raison.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.it.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> Un plugin DSH che consente a un agente di pilotare **le proprie** finestre Windows — silenzioso per impostazione predefinita, visibile su richiesta. Quando una finestra accetta un messaggio Windows, il focus non viene mai sottratto. Quando solo UI Automation può raggiungerla, il focus subisce un solo lampo limitato e viene ripristinato automaticamente. Quando richiedi esplicitamente la modalità takeover, il cursore si sposta sul punto di azione e viene sempre ripristinato, con un HUD che offre tre modi per interrompere. In tutti gli altri casi rifiuta con un codice e una ragione.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.ja.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> エージェントが**自分の** Windows ウィンドウを操作するための DSH プラグインです。既定では静默、要求があれば可視化します。ウィンドウがウィンドウメッセージを受け付ける場合、フォーカスは一切奪われません。UI Automation 経由でしか届かない場合、フォーカスは一度だけ有界なフラッシュで移り自動で戻ります。明示的にテイクオーバーを要求した場合、カーソルは操作点へ移動し常に復元され、HUD が三つの中断手段を提供します。それ以外はコードと理由を添えて拒否します。
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.ko.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> 에이전트가 **자신의** Windows 창을 조작하도록 하는 DSH 플러그인입니다. 기본은 조용히, 요청 시에는 눈에 보이게 동작합니다. 창이 창 메시지를 받으면 포커스를 전혀 빼앗지 않고, UI Automation으로만 도달 가능하면 포커스가 한 번의 제한된 플래시로 이동한 뒤 자동 복구됩니다. 테이크오버를 명시적으로 요청하면 커서가 동작 지점으로 이동해 항상 복원되며 HUD가 세 가지 중단 수단을 제공합니다. 그 밖의 경우에는 코드와 이유를 붙여 거부합니다.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-windows-parallel-mcp
|
|
2
2
|
|
|
3
3
|
**English** · [中文](README.zh.md) · [日本語](README.ja.md) · [한국어](README.ko.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Italiano](README.it.md) · [Español](README.es.md) · [Português](README.pt.md) · [Русский](README.ru.md)
|
|
4
|
-
> **Current release: 0.11.0
|
|
4
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
5
5
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
6
6
|
|
|
7
7
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.pt.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> Um plugin DSH que permite a um agente controlar **as suas próprias** janelas Windows — silencioso por padrão, visível sob demanda. Quando uma janela aceita mensagens do Windows, o foco nunca é roubado. Quando apenas a Automação de UI a alcança, o foco sofre um único lampejo limitado, revertido automaticamente. Quando você solicita explicitamente o modo takeover, o cursor move-se para o ponto de ação e é sempre restaurado, com um HUD que oferece três formas de interrupção. Em todos os outros casos, recusa com um código e um motivo.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.ru.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> Плагин DSH, позволяющий агенту управлять **своими** окнами Windows — по умолчанию тихо, по запросу видимо. Когда окно принимает сообщения Windows, фокус никогда не перехватывается. Когда доступен только UI Automation, фокус претерпевает одну ограниченную вспышку и автоматически возвращается. При явном запросе режима takeover курсор перемещается в точку действия и всегда восстанавливается, а HUD предлагает три способа прерывания. Во всех остальных случаях действие отклоняется с кодом и причиной.
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/README.zh.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> 一个让代理驱动**自己**的 Windows 窗口的 DSH 插件——默认静默,按需可见。窗口接受窗口消息时完全不夺焦点;只有 UI Automation 可达时,焦点仅发生一次有界闪烁并自动还原;显式请求接管档时,光标移动到目标点并始终还原,HUD 提供三种中断方式。其他情况一律拒绝,并给出代码与原因。
|
|
6
6
|
|
|
7
7
|
> **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
|
|
8
|
-
> **Current release: 0.11.0
|
|
8
|
+
> **Current release: 0.11.0** — this document describes the contract as of that version. What
|
|
9
9
|
> changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
|
|
10
10
|
|
|
11
11
|
A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
|
package/docs/refusals.md
CHANGED
|
@@ -20,7 +20,7 @@ R2′ 把「拒绝」当成本产品的**正常结果**(`engine.ps1` 首段注
|
|
|
20
20
|
| 层 | 出处 | 数量 | 语义 |
|
|
21
21
|
|---|---|---|---|
|
|
22
22
|
| 决定层 | `src/engine/decide.ps1` 的 `$WpmRefusals` | 10 | 动作**在执行之前**被合法否决,目标本身没被碰过 |
|
|
23
|
-
| 运行时失败层 | `src/engine/engine.ps1`
|
|
23
|
+
| 运行时失败层 | `src/engine/engine.ps1` 执行/回还段;0.11.0 起增补 `lib/engine.js`(宿主 JS 半的 worker 生命周期拒绝) | 9 | 决定说「能做」,做的过程中通道炸了、回还没成、**被所有者/宿主中断**,调用里引用的上一代产物**已经不存在了**,或 **worker 本身已被宿主放弃重启** |
|
|
24
24
|
|
|
25
25
|
混在一起会让人以为「10 个码都是设计好的分支」,实际 `action_failed` 与 `restore_failed` 是**兜底**:
|
|
26
26
|
它们出现就意味着引擎的判断与实际能力不一致,属于需要调查的信号,不该被当成正常分支来轮询。
|
|
@@ -42,7 +42,11 @@ R2′ 把「拒绝」当成本产品的**正常结果**(`engine.ps1` 首段注
|
|
|
42
42
|
| `takeover_unavailable` | `decide.ps1`(`facts.takeoverRequested && !facts.hudReady`);宿主侧 `lib/index.js` 在 `takeoverAllowed=false` 时直接拒,零 worker 请求 | 要求接管档,但**接管面不存在**:HUD 没起来,或设置里 `takeoverAllowed` 关着 | 在设置里打开 `takeoverAllowed`;HUD 是**硬前置**,不是装饰。不想接管就**去掉 `takeover:true`** 走静默档——本码存在的意义正是「绝不静默降级」 | **REAL** — `test/plugin-test.mjs`(宿主闸:默认关 + `takeover:true` ⇒ 该码且工作进程 0 请求);`test/takeover-test.ps1` 决策臂 |
|
|
43
43
|
| `keyinject_unavailable` | `decide.ps1`(注入不在接管档内/`keyInjectAllowed` 关/目标不是前台且抬不起来);`engine.ps1`(发送瞬间前台已变) | 要求键盘注入,但注入会打到**别的窗口**或没被授权。依据是实测:`SendInput` 只写前台(`scripts/probe-sendinput-unicode.ps1` arm B:文本落在前台窗 B,而不是调用方以为的 A) | 先自己把目标切到前台(或用 `focus` 动作把它抬上来),或关掉 `keyInput` 用静默档;不允许「盲注入」 | **REAL** — `test/keyinject-test.ps1` K1(非前台拒绝,注入零次)、K5(双闸独立);判定层两条用例 |
|
|
44
44
|
|
|
45
|
-
## 运行时失败层(
|
|
45
|
+
## 运行时失败层(9 码,含 `invalid_argument` 与 `worker_wedged` 两道宿主闸)
|
|
46
|
+
|
|
47
|
+
其中 `worker_wedged` 由宿主 JS 半(`lib/engine.js`)发出,其余出处见表;宿主既然替引擎
|
|
48
|
+
决定「不再重启」,这个码的所有权就在宿主,`scripts/check-refusals.mjs` 把 `lib/engine.js`
|
|
49
|
+
一并纳入扫描正是为此(0.11.0)。
|
|
46
50
|
|
|
47
51
|
| 码 | 触发条件 | 语义 | 下一步动作 | 实测状态 |
|
|
48
52
|
|---|---|---|---|---|
|
|
@@ -54,6 +58,7 @@ R2′ 把「拒绝」当成本产品的**正常结果**(`engine.ps1` 首段注
|
|
|
54
58
|
| `policy_denied` | `lib/index.js`(前 worker 闸)、`decide.ps1`(引擎侧二道) | 这个动作声明的最低档(`tools.json#requiresTier`)高于 `policy` 设置允许的天花板。十一个动作对一个旋钮:新增能力不需要新增开关 | 唯一正确的下一步是**改设置**(readonly < quiet < balanced < full),而不是重试同一个调用;结果里已写出需要哪一档、当前允许到哪一档。拒绝时零 worker 请求、不弹 HUD | **REAL** — `policy-ceiling-readonly`(readonly 天花板 + quiet 需求)与 `policy-ceiling-takeover`(两个 launch 开关都满足、仍因天花板不足被拒 ⇒ 证明两条轴真的正交)|
|
|
55
59
|
| `user_active` | `decide.ps1`(仅对需要 takeover 档的动作) | 主人**正在用电脑**:`GetLastInputInfo` 测到的间隔小于 `policyIdleMs`(默认 3000ms)。与上游 Windows-MCP 的有意差异:上游即使你在用也会弹一个 10 秒倒计时对话框;我们不弹——弹框本身就是第二次打扰,而不是同意 | 等空闲后重试(或先 `action=status` 看 `lastHumanInputAgeMs`);确实需要在有人时用,就显式传 `forceUserActive:true`,它会进审计日志并标 `forced` | **REAL** — `test/refusals-test.ps1` 的 `user-active-takeover`(决策表:age=100 / idle=3000);引擎侧实测见 `test/takeover-test.ps1`(长文本中途中断臂) |
|
|
56
60
|
| `invalid_argument` | `lib/index.js`(`refuseOutOfRange`,前 worker)、`engine.ps1`(`Invoke-WpmAction` / `Invoke-WpmDesktopAction` 边界块,与宿主平行二道) | 0.9.0 参数契约:数字参数越出本表声明的区间(或该取整处来了小数)。0.9.0 之前是**静默改写**——`maxElements:0` 变 1、`maxWidth:-5` 变「不限」、`label:2.7` 变 3,调用方拿着被改过的值行动却毫不知情 | 按声明区间重发(`snapshot.maxElements∈[1,5000]`、`screenshot.maxWidth∈[0,7680]`、`launch.waitMs∈[0,30000]`、`takeoverMaxMs∈[500,60000]`、`label` 为 ≥1 整数);不要原样重试 | **REAL** — `test/refusals-test.ps1` 的 `snapshot-max-elements-out-of-range` / `screenshot-max-width-negative` / `launch-wait-ms-over-max` 三例;宿主侧断言见 `test/plugin-test.mjs`(refuseOutOfRange 臂) |
|
|
61
|
+
| `worker_wedged` | `lib/engine.js`(`start()` 的 `maxRestarts` 闸,0.11.0 G3)——**唯一由宿主 JS 半发出的码**,引擎半不可能报它(引擎正是那个已经不在了的东西) | worker 已死到重启预算(默认 3 次)的上限,宿主拒绝再 spawn 新进程;本次调用**什么都没执行**。0.11.0 之前计数器存在但无人读:卡死的 worker 无限重生,每次调用都重新付满超时,调用方看不出这是第几次 | **停止重试,去读日志**:插件日志里的 worker stderr tail(`stderrTail` 末尾几行)会指出反复杀死 worker 的原因——通常是某个让 UIA 挂死的靶窗或破损的安装。`action=status` 的 `restarts=N/max` 字段可在未彻底卡死前就看到预算消耗 | **REAL** — `test/worker-smoke.mjs` §7 用故意自杀的 worker 真实驱动到上限(第 4 次拒绝 `worker_wedged`);`test/plugin-test.mjs` 钉住工具层映射;`test/refusals-test.ps1` 钉住该码**不在**决策表里(宿主所有权) |
|
|
57
62
|
|
|
58
63
|
## 三个诚实的缺口(写在文档里,而不是留白)
|
|
59
64
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-windows-parallel-mcp",
|
|
3
|
-
"version": "0.11.0
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "One tool, eleven actions: drive a Windows window quietly by default, read the target as a numbered element frame, and since 0.7.0 start a whitelisted program, touch the clipboard, and change one named window. Prefers window messages (zero foreground change); falls back to UI Automation with a bounded, self-reversing focus flash (measured net return 15-95 ms); offers an opt-in takeover tier (policy:'full' AND takeoverAllowed) where the cursor moves to the action point and is always restored, with a mandatory three-phase HUD and three interruption paths; adds snapshot/screenshot/preview, where labels address the UIA element itself and image coordinates are converted by the engine; reads a write back (effect=readback-verified only when the field's own value matches a prediction built from the control's measurements) with caretPosition, disabled/focus reporting and a BitBlt capture path named as captureBackend; and gates everything through one ceiling (policy) plus a per-program launch whitelist, an idle check that refuses instead of interrupting, and an append-only JSONL audit log. Since 0.8.0 the same engine also answers as an MCP server over stdio (bin: wpm-mcp), with the tool list generated from the same contract file.",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.drscrewdriver/dsh-windows-parallel-mcp",
|
|
4
4
|
"title": "Windows Parallel",
|
|
5
5
|
"description": "Drive a Windows window over MCP stdio: quiet by default, one policy ceiling, coded refusals.",
|
|
6
|
-
"version": "0.11.0
|
|
6
|
+
"version": "0.11.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/drscrewdriver/dsh-windows-parallel-mcp",
|
|
9
9
|
"source": "github"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
16
16
|
"identifier": "dsh-windows-parallel-mcp",
|
|
17
|
-
"version": "0.11.0
|
|
17
|
+
"version": "0.11.0",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|
package/src/schema/tools.json
CHANGED
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
{ "code": "app_launch_denied", "layer": "decision", "summary": "action=launch was refused before any worker request because appLaunchAllowed is off or the target is not on the appLaunchAllow whitelist. The next step is the owner's decision, not a retry: add the EXACT name to the whitelist (no wildcard exists, and an empty list means nothing may launch even with the gate on). Both switches must be set -- a takeover permission is not a launch permission" },
|
|
80
80
|
{ "code": "policy_denied", "layer": "decision", "summary": "the action's declared tier is above what the `policy` setting allows, so it was refused before the worker was reached. The next step is named: raise `policy`, do not retry the same call. A refusal here is the setting doing its job, not a failure of the target" },
|
|
81
81
|
{ "code": "user_active", "layer": "decision", "summary": "the last PHYSICAL input is younger than policyIdleMs and the action needs the takeover tier, so the owner is at the keyboard and was NOT interrupted. Unlike the upstream design this product does not pop a countdown dialog at someone who is typing: a dialog is a second disturbance dressed as consent. The next step is to wait for idle, or to pass forceUserActive:true explicitly (which is recorded in the audit log as forced)" },
|
|
82
|
-
{ "code": "invalid_argument", "layer": "runtime", "summary": "0.9.0: a numeric argument arrived outside the bounds this file declares (or a fraction where an integer is required), so the call is refused naming the sent value instead of being silently clamped or rounded. Pre-0.9.0 this was the G1/G2 shape: maxElements:0 became 1, maxWidth:-5 became 'no limit', label:2.7 became 3. The next step is re-sending inside the stated range, not retrying the same call", "uncoveredReason": "covered by three engine cases above (snapshot-max-elements-out-of-range, screenshot-max-width-negative, launch-wait-ms-over-max); declared here for tools whose out-of-bounds field the harness cannot smuggle past their own required args" }
|
|
82
|
+
{ "code": "invalid_argument", "layer": "runtime", "summary": "0.9.0: a numeric argument arrived outside the bounds this file declares (or a fraction where an integer is required), so the call is refused naming the sent value instead of being silently clamped or rounded. Pre-0.9.0 this was the G1/G2 shape: maxElements:0 became 1, maxWidth:-5 became 'no limit', label:2.7 became 3. The next step is re-sending inside the stated range, not retrying the same call", "uncoveredReason": "covered by three engine cases above (snapshot-max-elements-out-of-range, screenshot-max-width-negative, launch-wait-ms-over-max); declared here for tools whose out-of-bounds field the harness cannot smuggle past their own required args" },
|
|
83
|
+
{ "code": "worker_wedged", "layer": "runtime", "summary": "0.11.0: the worker died as many times as the restart budget (maxRestarts, default 3) allows, so the HOST refuses to spawn another one until a human reads the log; no action was attempted. Emitted only from lib/engine.js -- the engine cannot report its own absence. Pre-0.11.0 this was the G3 shape: the counter existed but nobody read it, so a wedging worker respawned forever and every call silently paid the full timeout again. The next step is reading the worker stderr tail, not retrying", "uncoveredReason": "covered for real by test/worker-smoke.mjs section 7 (a deliberately-dying worker driven past the cap) and by the tool-layer mapping arm in test/plugin-test.mjs; it is not an engine.ps1 case because the code fires precisely when the engine is gone -- test/refusals-test.ps1 asserts the decision layer must NOT claim it" }
|
|
83
84
|
],
|
|
84
85
|
"tools": [
|
|
85
86
|
{
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"required": ["hwnd", "x", "y"],
|
|
121
122
|
"additionalProperties": false
|
|
122
123
|
},
|
|
123
|
-
"refusals": ["no_hwnd", "paused", "elevated_target", "unreachable", "uia_tree_empty", "uia_probe_failed", "terminal_no_door", "stale_ref", "action_failed", "restore_failed", "takeover_unavailable", "keyinject_unavailable", "takeover_aborted", "policy_denied", "user_active", "invalid_argument"]
|
|
124
|
+
"refusals": ["no_hwnd", "paused", "elevated_target", "unreachable", "uia_tree_empty", "uia_probe_failed", "terminal_no_door", "stale_ref", "action_failed", "restore_failed", "takeover_unavailable", "keyinject_unavailable", "takeover_aborted", "policy_denied", "user_active", "invalid_argument", "worker_wedged"]
|
|
124
125
|
},
|
|
125
126
|
{
|
|
126
127
|
"name": "wpm_type",
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
"additionalProperties": false
|
|
148
149
|
},
|
|
149
150
|
"notes_0_6_0": "0.6.0 adds readback + caretPosition and changes nothing in this refusals list: disabled targets, focus movement and a mismatching readback are reported in detail/effect, not as new codes -- they are states of the target, not errors in the call.",
|
|
150
|
-
"refusals": ["no_hwnd", "paused", "elevated_target", "unreachable", "uia_tree_empty", "uia_probe_failed", "terminal_no_door", "action_failed", "restore_failed", "takeover_unavailable", "keyinject_unavailable", "takeover_aborted", "policy_denied", "user_active", "invalid_argument"]
|
|
151
|
+
"refusals": ["no_hwnd", "paused", "elevated_target", "unreachable", "uia_tree_empty", "uia_probe_failed", "terminal_no_door", "action_failed", "restore_failed", "takeover_unavailable", "keyinject_unavailable", "takeover_aborted", "policy_denied", "user_active", "invalid_argument", "worker_wedged"]
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
154
|
"name": "wpm_focus",
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
"required": ["hwnd", "elementName"],
|
|
170
171
|
"additionalProperties": false
|
|
171
172
|
},
|
|
172
|
-
"refusals": ["no_hwnd", "paused", "elevated_target", "unreachable", "uia_tree_empty", "uia_probe_failed", "terminal_no_door", "action_failed", "restore_failed", "takeover_unavailable", "takeover_aborted", "policy_denied", "user_active", "invalid_argument"]
|
|
173
|
+
"refusals": ["no_hwnd", "paused", "elevated_target", "unreachable", "uia_tree_empty", "uia_probe_failed", "terminal_no_door", "action_failed", "restore_failed", "takeover_unavailable", "takeover_aborted", "policy_denied", "user_active", "invalid_argument", "worker_wedged"]
|
|
173
174
|
},
|
|
174
175
|
{
|
|
175
176
|
"name": "wpm_status",
|
|
@@ -204,7 +205,7 @@
|
|
|
204
205
|
"required": ["hwnd"],
|
|
205
206
|
"additionalProperties": false
|
|
206
207
|
},
|
|
207
|
-
"refusals": ["no_hwnd", "paused", "uia_probe_failed", "stale_ref", "policy_denied", "invalid_argument"]
|
|
208
|
+
"refusals": ["no_hwnd", "paused", "uia_probe_failed", "stale_ref", "policy_denied", "invalid_argument", "worker_wedged"]
|
|
208
209
|
},
|
|
209
210
|
{
|
|
210
211
|
"name": "wpm_screenshot",
|
|
@@ -222,7 +223,7 @@
|
|
|
222
223
|
"required": [],
|
|
223
224
|
"additionalProperties": false
|
|
224
225
|
},
|
|
225
|
-
"refusals": ["no_hwnd", "paused", "policy_denied", "invalid_argument"]
|
|
226
|
+
"refusals": ["no_hwnd", "paused", "policy_denied", "invalid_argument", "worker_wedged"]
|
|
226
227
|
},
|
|
227
228
|
{
|
|
228
229
|
"name": "wpm_preview",
|
|
@@ -240,7 +241,7 @@
|
|
|
240
241
|
"required": ["hwnd", "x", "y"],
|
|
241
242
|
"additionalProperties": false
|
|
242
243
|
},
|
|
243
|
-
"refusals": ["no_hwnd", "paused", "unreachable", "policy_denied"]
|
|
244
|
+
"refusals": ["no_hwnd", "paused", "unreachable", "policy_denied", "worker_wedged"]
|
|
244
245
|
},
|
|
245
246
|
{
|
|
246
247
|
"name": "wpm_launch",
|
|
@@ -258,7 +259,7 @@
|
|
|
258
259
|
"required": ["target"],
|
|
259
260
|
"additionalProperties": false
|
|
260
261
|
},
|
|
261
|
-
"refusals": ["paused", "app_launch_denied", "policy_denied", "action_failed", "invalid_argument"]
|
|
262
|
+
"refusals": ["paused", "app_launch_denied", "policy_denied", "action_failed", "invalid_argument", "worker_wedged"]
|
|
262
263
|
},
|
|
263
264
|
{
|
|
264
265
|
"name": "wpm_clipboard",
|
|
@@ -278,7 +279,7 @@
|
|
|
278
279
|
"required": ["op"],
|
|
279
280
|
"additionalProperties": false
|
|
280
281
|
},
|
|
281
|
-
"refusals": ["paused", "policy_denied", "action_failed", "stale_ref"]
|
|
282
|
+
"refusals": ["paused", "policy_denied", "action_failed", "stale_ref", "worker_wedged"]
|
|
282
283
|
},
|
|
283
284
|
{
|
|
284
285
|
"name": "wpm_window",
|
|
@@ -299,7 +300,7 @@
|
|
|
299
300
|
"required": ["hwnd", "op"],
|
|
300
301
|
"additionalProperties": false
|
|
301
302
|
},
|
|
302
|
-
"refusals": ["paused", "no_hwnd", "policy_denied", "action_failed"]
|
|
303
|
+
"refusals": ["paused", "no_hwnd", "policy_denied", "action_failed", "worker_wedged"]
|
|
303
304
|
}
|
|
304
305
|
],
|
|
305
306
|
"refusalCases": [
|
|
@@ -554,6 +555,13 @@
|
|
|
554
555
|
"gate": { "policy": "full", "launchAllowed": true, "allowList": ["write-only-probe"] },
|
|
555
556
|
"expect": "invalid_argument",
|
|
556
557
|
"note": "waitMs above 30000 is refused before the gate runs, so nothing starts: a 16-minute silent wait was the old behavior (clamp to 30000), and both alternatives -- honoring 999999 or hiding the clamp -- misreport what the plugin will do."
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"id": "worker-wedged-restart-cap",
|
|
561
|
+
"mode": "none",
|
|
562
|
+
"tool": "wpm_click",
|
|
563
|
+
"expect": "worker_wedged",
|
|
564
|
+
"note": "host-emitted: fires from lib/engine.js when the restart budget is spent, a state no engine.ps1 invocation can construct (the engine is the thing that is gone). Real coverage is test/worker-smoke.mjs section 7 -- a deliberately-dying worker driven past the cap -- plus the tool-layer mapping arm in test/plugin-test.mjs and the structural arm in test/refusals-test.ps1 that pins the code OUTSIDE the decision table."
|
|
557
565
|
}
|
|
558
566
|
]
|
|
559
567
|
}
|