tianshu-mcp 0.2.0 → 0.3.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.
Files changed (58) hide show
  1. package/CHANGELOG.en.md +455 -342
  2. package/CHANGELOG.md +403 -308
  3. package/README.en.md +337 -318
  4. package/README.md +338 -320
  5. package/dist/agents/adapter.d.ts +7 -0
  6. package/dist/agents/builtin.js +50 -14
  7. package/dist/agents/codex/adapter.d.ts +9 -0
  8. package/dist/agents/codex/adapter.js +74 -0
  9. package/dist/agents/codex/cdp.d.ts +127 -0
  10. package/dist/agents/codex/cdp.js +352 -0
  11. package/dist/agents/codex/dialog.d.ts +17 -0
  12. package/dist/agents/codex/dialog.js +297 -0
  13. package/dist/agents/codex/discovery.d.ts +56 -0
  14. package/dist/agents/codex/discovery.js +219 -0
  15. package/dist/agents/codex/fixplan.d.ts +27 -0
  16. package/dist/agents/codex/fixplan.js +88 -0
  17. package/dist/agents/codex/input.d.ts +39 -0
  18. package/dist/agents/codex/input.js +60 -0
  19. package/dist/agents/codex/instance.d.ts +48 -0
  20. package/dist/agents/codex/instance.js +199 -0
  21. package/dist/agents/codex/launcher.d.ts +32 -0
  22. package/dist/agents/codex/launcher.js +109 -0
  23. package/dist/agents/codex/liveness.d.ts +27 -0
  24. package/dist/agents/codex/liveness.js +45 -0
  25. package/dist/agents/codex/model.d.ts +33 -0
  26. package/dist/agents/codex/model.js +66 -0
  27. package/dist/agents/codex/project.d.ts +16 -0
  28. package/dist/agents/codex/project.js +21 -0
  29. package/dist/agents/codex/registry.d.ts +37 -0
  30. package/dist/agents/codex/registry.js +116 -0
  31. package/dist/agents/codex/run.d.ts +30 -0
  32. package/dist/agents/codex/run.js +559 -0
  33. package/dist/agents/codex/selectors.d.ts +46 -0
  34. package/dist/agents/codex/selectors.js +246 -0
  35. package/dist/agents/codex/verify.d.ts +17 -0
  36. package/dist/agents/codex/verify.js +42 -0
  37. package/dist/agents/registry.js +35 -0
  38. package/dist/agents/traework/cdp/client.d.ts +8 -0
  39. package/dist/agents/traework/cdp/client.js +10 -1
  40. package/dist/agents/traework/run.js +2 -0
  41. package/dist/agents/zcode/run.js +2 -0
  42. package/dist/config/schema.d.ts +220 -13
  43. package/dist/config/schema.js +46 -4
  44. package/dist/loop/fix-loop.js +37 -2
  45. package/dist/mcp/context.js +40 -13
  46. package/dist/mcp/handlers.js +15 -0
  47. package/dist/tasks/task-manager.d.ts +8 -2
  48. package/dist/tasks/task-manager.js +3 -0
  49. package/dist/tasks/task.d.ts +8 -2
  50. package/dist/util/path.js +1 -0
  51. package/dist/version.generated.d.ts +1 -1
  52. package/dist/version.generated.js +1 -1
  53. package/package.json +85 -82
  54. package/scripts/gitee-release.mjs +110 -0
  55. package/scripts/probe-codex.mjs +280 -0
  56. package/scripts/release-body.mjs +142 -0
  57. package/skills/tianshu-mcp/SKILL.md +43 -35
  58. package/skills/tianshu-mcp/usage-examples.md +108 -24
package/CHANGELOG.en.md CHANGED
@@ -1,342 +1,455 @@
1
- # Changelog
2
-
3
- All notable changes to `tianshu-mcp` are documented here. The format follows
4
- [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to
5
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
7
- Chinese version: [CHANGELOG.md](CHANGELOG.md)
8
-
9
- ---
10
-
11
- ## [Unreleased]
12
-
13
- ### Planned
14
-
15
- - More external AI-Agent adapters (a new agent = one profile + an optional adapter file).
16
- - TraeWork executable discovery and native-dialog driving on macOS (currently fail-closed).
17
- - Optional project-level skill seeding (by default nothing is written into target repos).
18
-
19
- ---
20
-
21
- ## [0.2.0] — 2026-09-11
22
-
23
- ### Added
24
-
25
- - Dedicated `zcode-gui` Electron CDP adapter with data-driven Windows/macOS discovery, dynamic ports, product/process checks, and a global serial lock.
26
- - Exact ZCode project binding, guarded native folder pickers, `provider/model`, Full Access read-back, and idempotent sending.
27
- - Paused `needs_user` state and approval-gated `continue_task` for original-session answers and environment rechecks after instance, login, or permission handling.
28
- - Multi-signal liveness, progress events, UI preservation, default auto-verification, and two same-session repair rounds. Repair plans stay in MCP task storage.
29
- - `scripts/probe-zcode.mjs`, fake-CDP/state/path/model tests, and bilingual documentation.
30
-
31
- ### Safety and compatibility
32
-
33
- - GUI profiles support an explicit `adapter`; legacy `driver="gui"` profiles retain TraeWork behavior.
34
- - The built-in ZCode profile remains `research` until both real platform loops pass.
35
- - No private `app-server`, credential access, automatic user-instance termination, or fixed screen coordinates.
36
-
37
- ### Fixed and verified
38
-
39
- - Fixed ZCode read-back for dynamic model labels, transient renderer load/reload, delayed new-session registration, and stale session-ID contamination.
40
- - `AskUserQuestion` continuation now selects and submits an exact accessible option in the original session; zero or ambiguous matches fail closed.
41
- - Windows 10 x64 passed three hardware loops: real file development, same-session repair after a controlled failure, and `continue_task` after a model question. macOS hardware evidence remains pending.
42
-
43
- ---
44
-
45
- ## [0.1.10] — 2026-09-10
46
-
47
- ### Fixed
48
-
49
- - **Fixed stdio log pollution (issue #1)**: the unified logger previously sent only ERROR to
50
- `console.error` while INFO/WARN/DEBUG went to `console.log`, sharing stdout with MCP JSON-RPC
51
- messages and breaking handshakes or tool calls in strict stdio clients. All levels passing the
52
- threshold now go to stderr, leaving stdout for valid MCP messages only.
53
- - Log file appending, timestamps, level tags and the `<data dir>/logs/server.log` path are unchanged;
54
- a startup failure is still reported on stderr.
55
-
56
- ### Added
57
-
58
- - New `scripts/check-stdio.mjs` strict stdio smoke: a real child process validates the complete
59
- stdout/stderr byte stream, allowing only newline-delimited, schema-valid MCP JSON-RPC messages on
60
- stdout; empty lines, non-JSON lines, parser errors, or trailing fragments at exit fail the run.
61
- It covers six scenarios: first start, second start with matching skills, `--no-skill-install`,
62
- a corrupt `config.json`, logs during a stub task, and clean EOF shutdown.
63
- - New `npm run check:stdio` and `npm run check:stdio:src` scripts.
64
-
65
- ### Tests
66
-
67
- - New `test/unit/log.test.ts`: real-child-process checks for the four log levels' channels, default
68
- INFO filtering, threshold-filtered file logging, and UTF-8 content (4/6 failed before the fix; see
69
- `docs/m2-evidence/issue1-old-impl-log-test-failure.txt`).
70
- - CI's three-platform matrix now includes Node 24; the build step runs the strict stdio check instead
71
- of an EOF-exit-only smoke.
72
- - CI `pack-check` and Release install the freshly built tarball into a clean consumer directory, read
73
- the installed bin dynamically, and reuse the same strict stdio check; Release adds `lint` and the
74
- installed-package protocol gate, failing before a draft is created.
75
- - ESLint enables `no-console` (allowing `error` only) for `src/**/*.ts` to prevent new direct stdout writes.
76
-
77
- ---
78
-
79
- ## [0.1.9] — 2026-09-09
80
-
81
- ### Fixed
82
-
83
- - Fixed premature TraeWork completion while the model was still thinking but the DOM stayed unchanged for about 36 seconds.
84
- The stop button and loading task tail are now authoritative running signals and override completion marks; stable rounds now
85
- start an idle timer, which defaults to ten minutes before returning `idle`.
86
- - Fixed permanently pending `Runtime.evaluate` calls after a CDP WebSocket disconnect. Close/error rejects all pending requests,
87
- each CDP command has a 15-second default timeout, and task cancellation is observed within about one second.
88
- - Only `completion_mark` / `ask_user` release an instance launched by this module. Idle, timeout, cancellation, and CDP loss retain
89
- it, with `agentEndReason` / `keptInstance` exposed in task metadata.
90
- - Fixed a shutdown race where an orchestrator still collecting its baseline could remain `queued` and be mislabeled as a user
91
- cancellation. User cancellation is now determined only from structured cancellation intent.
92
-
93
- ### Added
94
-
95
- - Polling emits a progress event visible through `query_task` every 30 seconds by default.
96
- - Added `gui.idleTimeoutMs`, `gui.cdpSendTimeoutMs`, `gui.progressIntervalMs`, and five overrideable liveness selectors.
97
-
98
- ### Testing
99
-
100
- - Added liveness truth-table, CDP timeout/disconnect convergence, selector-expression, and fake-CDP instance-retention regressions.
101
- - Windows/macOS/Linux × Node 20/22 and tarball gates remain covered.
102
-
103
- ---
104
-
105
- ## [0.1.8] — 2026-09-08
106
-
107
- ### Fixed
108
-
109
- - **Atomic-write concurrency defect** (the real cause of intermittent CI failures): the temp filename in
110
- `writeJsonAtomic`/`writeTextAtomic` was `<target>.<pid>.tmp`, so concurrent writes to the same target in one
111
- process shared one temp file - the first to finish renames it away and the next throws `ENOENT`; on Windows a
112
- concurrent rename can also throw `EPERM`. Symptom: `rework_task` intermittently returned an `undefined` meta
113
- (hit on CI windows/Node 20). Fixed by a random temp suffix plus backoff-retry on transient rename errors.
114
-
115
- ### Testing
116
-
117
- - New `test/unit/atomic-write.test.ts` (3 cases: concurrent JSON/text writes all succeed, no leftover temp files).
118
-
119
- ---
120
-
121
- ## [0.1.7] — 2026-09-08
122
-
123
- ### Fixed
124
-
125
- - **Project-folder binding still failed** (v0.1.6 did not fully resolve it; field report: the native dialog
126
- appeared but the edit box was empty and confirm was clicked anyway):
127
- - **Root cause**: the MCP passes a `normPath()`-normalized path (lowercase drive + forward slashes, e.g.
128
- `d:/Trae项目/AI游戏/象棋`), which the **native Windows picker rejects** — measured: read-back matched, yet the dialog
129
- stayed open after confirm. Fix: convert via the new `toNativeWindowsPath()` to `D:\a\b`.
130
- - `WM_GETTEXT` **read-back verification** after writing; on mismatch re-locate and retry (up to 3 times);
131
- if it still mismatches, **never click confirm** and fail loudly.
132
- - The hwnd detected after the footer click is **passed into the write script**; after clicking, success
133
- requires that hwnd to be gone.
134
- - **Auto-close stale dialogs** (left over from a previous failure) before binding.
135
- - Confirm button now also requires its rect to be in the lower half of the dialog.
136
- - The dialog script's full trace (HWND/READBACK) is written to the task log.
137
-
138
- ### Testing
139
-
140
- - Total tests **172 → 181** (unit incl. path normalization and atomic-write concurrency; integration incl. stale-dialog cleanup).
141
- - Machine-verified: a new Chinese project `D:\Trae项目\AI游戏\象棋` (absent from the dropdown)
142
- passed end-to-end through the native dialog; `五子棋` and the ASCII project `ts-bind-test` regressed green.
143
-
144
- ---
145
-
146
- ## [0.1.6] — 2026-09-08
147
-
148
- ### Fixed
149
-
150
- - **Project-folder binding got stuck / reported "waiting for native dialog timed out"** (field report; the adapter was not broken):
151
- - `clickDropdownFooter` used to trust `element.click()`'s return value, but the native popup may never
152
- appear → it now **confirms the dialog actually appeared**, otherwise it logs a dropdown DOM snapshot and fails loudly.
153
- - Dialog detection polled from Node every 800 ms while PowerShell cold start is ~4.5–6 s, so a 15 s budget
154
- allowed only ~2 probes → now it polls **inside a single PowerShell call** (400 ms interval) with a 30 s budget.
155
- - **CJK paths were corrupted** (measured: `D:\Trae项目\ts-bind-test` became `D:Traes-bind-test`):
156
- SendKeys/clipboard are mangled by the console code page → the path is now written via Win32
157
- **`WM_SETTEXT`**, which is fully reliable for CJK.
158
- - **The confirm click hit a file-list row**: `AutomationId="1"` is not unique (rows also use 0/1/2…) →
159
- now located by **AutomationId=1 AND ControlType=Pane**, then clicked by bounding rect.
160
- - PowerShell output was garbled for Chinese → the script now emits **ASCII-only** and Node maps it back
161
- via `localizeDialogMessage()`.
162
-
163
- ### Added
164
-
165
- - **Non-Work binding fallback**: when binding fails in Code/Design, the driver **falls back to Work once**,
166
- switches back to the target mode, and re-verifies the project is still bound; only if both attempts fail
167
- does it report an error including the reason from each mode.
168
- - Machine-verified: for a project **absent from the dropdown** (`D:\Trae项目\ts-bind-test`),
169
- `run_task(agentId=traework, mode=Code)` passed end-to-end — native dialog wrote the path → confirm clicked →
170
- project entered TraeWork's list (`solo-lite.local-project-folders` 22→23) → task sent → auto-verification `succeeded`.
171
-
172
- ### Changed
173
-
174
- - `docs/traework-cdp.md` / `.en.md`: 7 new pitfall entries; added the "dropdown entries ≠ project map" fact and the fallback note.
175
-
176
- ### Testing
177
-
178
- - Total tests **167 → 172** (new dialog message-mapping/platform-branch unit tests + Code→Work fallback integration test).
179
-
180
- ---
181
-
182
- ## [0.1.5] — 2026-09-08
183
-
184
- ### Added
185
-
186
- - **TraeWork panel mode switching**: `run_task` gained a `mode` parameter supporting `Work` / `Code` / `Design`.
187
- - Resolution order: explicit `mode` parameter > task-text detection > keep `Work`.
188
- - Text detection handles mixed Chinese/English phrasing ("switch to Code mode", "use design mode", "工作模式", "代码模式", "设计模式", …).
189
- - New `gui.modeSwitch` profile switch (default `true`).
190
- - New pure functions `detectModeFromText` / `resolveMode` (unit-tested).
191
- - **Dedicated SVG assets**: `assets/tianshu-mcp-icon.svg` (app icon), `assets/tianshu-mcp-banner.svg` (wide banner).
192
- - New `scripts/probe-traework.mjs mode <Work|Code|Design>` subcommand (real-machine diagnostics/verification).
193
- - New bilingual release notes `docs/release-v0.1.5.md` / `.en.md`.
194
-
195
- ### Changed
196
-
197
- - **TraeWork execution order**: measurement showed the three modes **each keep an independent project binding** —
198
- switching modes replaces the input bar's project with whatever that mode last used.
199
- Order is now: ensure instance → wait for UI → new session → switch to target mode → bind project inside that mode → switch model → send.
200
- - After binding, both mode and project are re-verified; any mismatch **fails loudly** (never silently develops in the wrong mode).
201
- - meta block now exposes `model` / `mode` for Tianshu to read back.
202
- - `package.json`: `license` changed from `MIT` to `Apache-2.0` (matching the repository `LICENSE` file);
203
- added `repository` / `homepage` / `bugs`; `files` now includes `assets`.
204
- - README.md / README.en.md fully rewritten: stack badges, SVG banner (above the icon), language isolation
205
- (the Chinese README references Chinese docs only; the English README references English docs only).
206
-
207
- ### Fixed
208
-
209
- - **Rework feedback race** (pre-existing; intermittent under load): the terminal snapshot is written first, so a caller's
210
- immediate `rework_task(feedback)` could be erased by the previous run's `delete meta.reworkFeedback`, leaving the rework
211
- round without feedback. Now the feedback is consumed and cleared atomically when `startTask` begins.
212
- Added regression test `test/integration/rework-feedback-race.test.ts`.
213
- - **`projectBasename` cross-platform**: it used `path.basename` (which does not split backslashes on POSIX), failing
214
- Linux/macOS CI; now it splits explicitly on both `\` and `/`.
215
-
216
- ### Testing
217
-
218
- - Total tests **153 → 167** (14 new mode-related cases).
219
- - Real-machine end-to-end: `mode=Work` / `mode=Code` / `mode=Design` all completed
220
- "switch mode → bind project → send → create file → auto-verification passed".
221
-
222
- ---
223
-
224
- ## [0.1.4] — 2026-09-08
225
-
226
- ### Added
227
-
228
- - TraeWork GUI driver over CDP: `traework` moved from `unsupported` to `driver=gui` / `status=ready`.
229
- - Capabilities: launch/reuse instance → new session → bind project folder (dropdown first, restricted computer-use
230
- native dialog as fallback) → optional model selection → read-back-verified send → poll to completion →
231
- auto-verify → repair-plan file + same-session rework on failure.
232
- - Safety: reuse the user's instance by default, never kill a process tree, verify the command line before terminating;
233
- computer-use is limited to TraeWork's folder picker.
234
- - `AgentAdapter` gained an optional `run()` execution surface; the orchestrator branches on `adapter.run`
235
- (CLI agents still use spawn).
236
- - Profile gained `driver` (`spawn` / `gui`) and a `gui` section; `run_task` gained a `model` parameter.
237
- - New `src/agents/traework/**` (CDP client, selector table, launcher, session/input/model/reply modules, restricted computer-use).
238
- - On verification failure a repair-plan file `rework-<taskId>-r<N>.md` is generated (task dir + project `.tianshu-mcp`)
239
- and its filename is referenced in the rework message.
240
-
241
- ### Changed
242
-
243
- - `docs/adapter-matrix.md` T1 conclusion corrected from `unsupported` to "integrated (driver=gui)".
244
- - formatter now passes cancel-source fields (`abortSource`, …) through to `query_task`'s meta block.
245
-
246
- ### Fixed
247
-
248
- - Unified timeout terminal state: normal timeouts now also land `failed(timeout)` plus exactly one `timeout_killed` event, in fixed order.
249
- - Stabilized the `shutdown` test polling.
250
-
251
- ### Testing
252
-
253
- - Total tests **72 → 153** (new TraeWork unit/integration cases).
254
- - Real-machine end-to-end: `run_task(agentId=traework, model=GLM-5.3, autoVerify=true)` drove TraeWork to create a file and passed acceptance.
255
-
256
- ---
257
-
258
- ## [0.1.3] — 2026-09-08
259
-
260
- ### Fixed
261
-
262
- - **S1** No-reason cancel was mis-recorded as `interrupted`: added independent `cancelRequestedAt` / `abortSource` fields;
263
- cancel intent no longer depends on the optional `reason` (5 regression tests).
264
- - **S2** Unified timeout terminal state (shared with 0.1.4).
265
- - **S3** Tracked pre-dirty net-diff attribution: pre-existing dirty files are excluded by content hash when unchanged;
266
- unchanged staged/unstaged files are no longer reported as agent changes (4 regressions).
267
- - **S4** `verify_task(taskId)` persists real-task metadata (`reportRound` / `verificationSource` /
268
- `latestVerificationVerdict`, keeping `agentId`); single-source MCP version (`sync-version` injection).
269
- - **S5** `projects.json` official Zod schema + last-known-good for `config`/`profiles`/`projects` + content-sha256
270
- hot-reload invalidation (fixed corrupt JSON being treated as missing and reset).
271
-
272
- ### Changed
273
-
274
- - **S6** CI/Release `npm ci` retry corrected (stop on success / 3 attempts / attempt counter);
275
- Vitest v3 upgrade (0 audit vulnerabilities); plain-text status markers (emoji scan test).
276
-
277
- ### Testing
278
-
279
- - Total tests **53 → 72**.
280
-
281
- ---
282
-
283
- ## [0.1.2] — 2026-09-08
284
-
285
- ### Changed
286
-
287
- - Build no longer ships source maps (no `.map`, tarball ≈ 69.9 KB).
288
-
289
- ### Testing
290
-
291
- - Total tests **53**.
292
-
293
- ---
294
-
295
- ## [0.1.1] — 2026-09-07
296
-
297
- ### Added
298
-
299
- - **Release after the R1–R5 fixes**:
300
- - **R1** Cancel/interrupt state persistence (`cancel_requested → cancelled`, `cancelReason`/`finishedAt`/`errorType`
301
- persisted, restart-recoverable, idempotent, bounded shutdown).
302
- - **R2** Call-level `taskTimeoutMs` precedence fix + cross-platform process-tree termination
303
- (POSIX process-group SIGTERM→SIGKILL, Windows `taskkill /T /F`).
304
- - **R3** Git baseline participates in diff (boundary at `baseline.head`; agent commits do not lose changes;
305
- dirty-worktree hash attribution).
306
- - **R4** Verification tool parameters and report-round semantics (`round=0` valid, manual verify does not overwrite
307
- reports, `extraChecks` append + `checksMode=replace`, `optional` does not affect verdict, `baselineRef` validated).
308
- - **R5** Removed hardcoded agent paths (`{LOCALAPPDATA}` placeholders + platform-standard candidates);
309
- mtime hot reload for `config`/`profile`/`projects`.
310
- - **R6** Cross-platform CI matrix (Windows/macOS/Linux × Node 20/22) and Release version consistency
311
- (tag/input = `package.json` = tarball), plus tarball content checks.
312
- - **R7** npm published `tianshu-mcp@0.1.1` + `npx -y` raise with 8 tools connected.
313
- - **R8** Bilingual docs synced (including 4 English topic docs).
314
-
315
- ---
316
-
317
- ## [0.1.0] — 2026-09-07
318
-
319
- ### Added
320
-
321
- - First usable release: **M1 core engine + stub-agent end-to-end**.
322
- - 8 MCP tools: `run_task` / `query_task` / `list_tasks` / `get_task_report` / `cancel_task` / `verify_task` /
323
- `rework_task` / `get_profiles`.
324
- - `TaskManager` state machine / per-project serial queue / global concurrency gate / cancel (kill tree) / event-stream persistence.
325
- - Acceptance engine: git baseline & diff, default check-set derivation, command runner, code analysis,
326
- `report.md` / `report.json`.
327
- - fix-loop auto rework + `needs_attention`; skill self-install.
328
- - Stub-agent 3 playbooks (good / fix-on-first / never) integration tests + protocol tests — **53/53 green**.
329
-
330
- ---
331
-
332
- [Unreleased]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.9...HEAD
333
- [0.1.9]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.8...v0.1.9
334
- [0.1.8]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.7...v0.1.8
335
- [0.1.7]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.6...v0.1.7
336
- [0.1.6]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.5...v0.1.6
337
- [0.1.5]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.4...v0.1.5
338
- [0.1.4]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.3...v0.1.4
339
- [0.1.3]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.2...v0.1.3
340
- [0.1.2]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.1...v0.1.2
341
- [0.1.1]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.0...v0.1.1
342
- [0.1.0]: https://github.com/lanlan0811/tianshu-mcp/releases/tag/v0.1.0
1
+ # Changelog
2
+
3
+ All notable changes to `tianshu-mcp` are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ Chinese version: [CHANGELOG.md](CHANGELOG.md)
8
+
9
+ ---
10
+
11
+ ## [Unreleased]
12
+
13
+ ### Planned
14
+
15
+ - More external AI-Agent adapters (a new agent = one profile + an optional adapter file).
16
+ - TraeWork executable discovery and native-dialog driving on macOS (currently fail-closed).
17
+ - Optional project-level skill seeding (by default nothing is written into target repos).
18
+ - macOS hardware verification for the Codex GUI adapter (built-in status remains `research`).
19
+
20
+ ---
21
+
22
+ ## [0.3.1] — 2026-09-12
23
+
24
+ Post-v0.3.0 housekeeping for docs and release automation: **no source-level behavior changes**.
25
+ The focus is a full rewrite of the self-installed skill docs plus GitHub/Gitee release-body
26
+ composition and link fixes.
27
+
28
+ ### Changed
29
+
30
+ - **Skill docs (`skills/tianshu-mcp/`) fully rewritten to match the actual v0.3.0 tool surface**:
31
+ - Corrected the `codex` description from "headless CLI" to the ChatGPT desktop GUI adapter
32
+ (MSIX + COM activation + CDP); documents the required `model`, optional `reasoningLevel` /
33
+ `planDoc` / `designSystem`, and that `mode` is not supported;
34
+ - Documented the `run_task` `context` parameter and the send-time validation of path references
35
+ inside task/context; corrected the `autoFixRounds` default precedence
36
+ (call argument > codex 5 / zcode 2 > server default 0);
37
+ - Added usage for `list_tasks`, `query_task(tailLines)`, `get_task_report(round)` and
38
+ `verify_task` (`extraChecks` / `checksMode` / `baselineRef`) plus the four-level acceptance
39
+ command precedence;
40
+ - Documented the four `needs_user` kinds and meta fields such as `needsUserKind` /
41
+ `pendingQuestion` / `errorType` / `reportRound` / `verificationSource`;
42
+ - Added `continue_task` to the approval list; replaced emoji status markers with plain text
43
+ (PASS / warning) in the usage examples.
44
+ - **Release automation fixes (exposed by the v0.3.0 tag)**:
45
+ - The release body is now composed bilingually from `docs/release-v<version>.md` and `.en.md`,
46
+ with in-document relative links rewritten to tag-absolute links; a missing doc fails the
47
+ workflow loudly instead of producing a shell-only body;
48
+ - `Full Changelog` resolves the previous tag via `git describe` into a `compare/<prev>...<tag>`
49
+ link instead of degrading to a commits link;
50
+ - The body's `CI` link resolves the CI run for the same SHA instead of pointing at the Release run;
51
+ - Gitee releases are automated in `release.yml`: `scripts/gitee-release.mjs` idempotently
52
+ creates/updates the mirrored release (requires the `GITEE_TOKEN` secret; skipped loudly when unset).
53
+ - `.gitignore` now ignores npm pack artifacts and local temporary verification directories.
54
+ - Added the missing `[0.1.10]` / `[0.2.0]` / `[0.3.0]` / `[0.3.1]` compare links at the bottom of
55
+ this file and its Chinese counterpart.
56
+
57
+ ---
58
+
59
+ ## [0.3.0] — 2026-09-12
60
+
61
+ The Codex desktop app now runs through a **GUI driver**: a new `codex-gui` adapter uses MSIX COM activation
62
+ plus CDP to drive the ChatGPT desktop app through the full loop (locate install → launch GUI → bind/create
63
+ project → pick model and reasoning level → send instructions → run detection → verify → auto-repair).
64
+
65
+ ### BREAKING CHANGES
66
+
67
+ - **`agentId=codex` now executes via the desktop GUI instead of the headless CLI**: a new `driver=gui` +
68
+ `adapter=codex-gui` + `activation=msix-com`, with the previous **`codex exec` headless path removed**.
69
+ After upgrading, `run_task(agentId="codex")` launches and drives the Codex desktop window rather than a
70
+ headless child process. To keep headless execution, add a separate `driver=spawn` profile
71
+ (`argsTemplate: ["exec", "<prompt:arg>", "--skip-git-repo-check", "--sandbox", "workspace-write"]`) as
72
+ documented in `docs/agent-profiles.en.md`.
73
+ - This path requires the Codex desktop app (MSIX store package) to be installed; CLI-only environments are
74
+ no longer directly supported.
75
+
76
+ ### Added
77
+
78
+ - `codex-gui` adapter (`src/agents/codex/**`): Appx-first install discovery (scan fallback taking the newest
79
+ version), MSIX COM activation with a dedicated `user-data-dir` and dynamic debug port, plus CDP attach and
80
+ target convergence (excluding the overlay secondary window).
81
+ - Task parameters: `reasoningLevel` (low/medium/high, bilingual), `planDoc`, `designSystem`.
82
+ - Model and reasoning level: models are `menuitemradio` candidates while **reasoning strength is a slider**
83
+ (0–4: 轻度/中/高/极高/极高), set precisely with arrow keys and read back for verification; level
84
+ comparison is exact to avoid matching "高" against "极高".
85
+ - **Automatic project registration**: a target directory not yet registered on the Codex side is written
86
+ directly into Codex project state (idempotent, backup-before-write, atomic write, only while the
87
+ MCP-managed instance is stopped), so it takes the stable bound-project path instead of the brittle native
88
+ folder dialog; on failure it falls back to UI creation.
89
+ - Verification and repair: reuses the existing AcceptanceEngine (defaults derived from `package.json`, with
90
+ weak-verification labelling); on failure the MCP generates an in-project
91
+ `.zcode/plans/codex-fix-r<N>.md` (one per round, never overwritten) and cites it in the repair instruction,
92
+ up to 5 rounds by default (`defaultAutoFixRounds`).
93
+ - Run detection: the stop button is the authoritative running signal, and text stability counts as completion
94
+ evidence only after it; without a running signal it fails open to `idle_timeout` while keeping the instance
95
+ (never a false completion).
96
+ - `scripts/probe-codex.mjs` hardware diagnostic script; 67 Codex unit tests plus integration coverage of the
97
+ verify-fail → generated plan → repair-pass loop.
98
+ - Docs: `docs/codex-gui-cdp.en.md`, `docs/codex-windows-smoke.en.md` (including the round-2 real business task
99
+ acceptance) and their Chinese counterparts.
100
+
101
+ ### Changed
102
+
103
+ - `GuiProfile` gains `activation` / `userDataDir` / `appxPackageName` / `permissionMode` / `fixPlanDir`;
104
+ existing `spawn` profiles are unaffected.
105
+ - `ExecutableDiscovery` gains `appxPackageName` / `installRelativeExe` / `scanRoots` / `scanPattern`.
106
+
107
+ ### Fixed (exposed by hardware testing)
108
+
109
+ - The model trigger mis-matched the sibling permission chip (4 chips share `aria-haspopup`; only the model chip
110
+ lacks `aria-label`).
111
+ - Reasoning strength was clicked like a menu item and could never be set (it is actually a slider).
112
+ - Menus/popovers only open on **trusted** mouse events (DOM `.click()` is ignored).
113
+ - A transient empty model read during toolbar re-render after binding was treated as a "model mismatch".
114
+ - Model/reasoning trigger selectors now exclude the top menu bar and the mode switcher.
115
+ - Cold-start readiness budget widened to 150s (registration stops the instance first; cold start measured ~85s).
116
+ - CI: fixed a `normalizeDir` assertion that depended on the host platform, which failed on ubuntu/macos.
117
+ - Fixed integration tests polluting real Codex project state by not injecting `ensureRegistered`.
118
+
119
+ ### Verification
120
+
121
+ - Windows 10 x64 hardware: full loop for a registered project, and the verify-fail → generated plan →
122
+ repair-pass loop; an unregistered project completed the full loop after automatic registration.
123
+ - Real business task: drove Codex to build a "Fruit Ninja" mini-game in HTML+CSS+JS (`GPT-5.6 Sol` with
124
+ reasoning strength "高"); the artifacts passed acceptance and were verified playable in a headless browser
125
+ (score rises, lives decrement, Game Over and restart work, no JS exceptions).
126
+ - macOS unverified: the built-in Codex GUI status is `research` and is excluded from readiness.
127
+
128
+ ---
129
+
130
+ ## [0.2.0] — 2026-09-11
131
+
132
+ ### Added
133
+
134
+ - Dedicated `zcode-gui` Electron CDP adapter with data-driven Windows/macOS discovery, dynamic ports, product/process checks, and a global serial lock.
135
+ - Exact ZCode project binding, guarded native folder pickers, `provider/model`, Full Access read-back, and idempotent sending.
136
+ - Paused `needs_user` state and approval-gated `continue_task` for original-session answers and environment rechecks after instance, login, or permission handling.
137
+ - Multi-signal liveness, progress events, UI preservation, default auto-verification, and two same-session repair rounds. Repair plans stay in MCP task storage.
138
+ - `scripts/probe-zcode.mjs`, fake-CDP/state/path/model tests, and bilingual documentation.
139
+
140
+ ### Safety and compatibility
141
+
142
+ - GUI profiles support an explicit `adapter`; legacy `driver="gui"` profiles retain TraeWork behavior.
143
+ - The built-in ZCode profile remains `research` until both real platform loops pass.
144
+ - No private `app-server`, credential access, automatic user-instance termination, or fixed screen coordinates.
145
+
146
+ ### Fixed and verified
147
+
148
+ - Fixed ZCode read-back for dynamic model labels, transient renderer load/reload, delayed new-session registration, and stale session-ID contamination.
149
+ - `AskUserQuestion` continuation now selects and submits an exact accessible option in the original session; zero or ambiguous matches fail closed.
150
+ - Windows 10 x64 passed three hardware loops: real file development, same-session repair after a controlled failure, and `continue_task` after a model question. macOS hardware evidence remains pending.
151
+
152
+ ---
153
+
154
+ ## [0.1.10] — 2026-09-10
155
+
156
+ ### Fixed
157
+
158
+ - **Fixed stdio log pollution (issue #1)**: the unified logger previously sent only ERROR to
159
+ `console.error` while INFO/WARN/DEBUG went to `console.log`, sharing stdout with MCP JSON-RPC
160
+ messages and breaking handshakes or tool calls in strict stdio clients. All levels passing the
161
+ threshold now go to stderr, leaving stdout for valid MCP messages only.
162
+ - Log file appending, timestamps, level tags and the `<data dir>/logs/server.log` path are unchanged;
163
+ a startup failure is still reported on stderr.
164
+
165
+ ### Added
166
+
167
+ - New `scripts/check-stdio.mjs` strict stdio smoke: a real child process validates the complete
168
+ stdout/stderr byte stream, allowing only newline-delimited, schema-valid MCP JSON-RPC messages on
169
+ stdout; empty lines, non-JSON lines, parser errors, or trailing fragments at exit fail the run.
170
+ It covers six scenarios: first start, second start with matching skills, `--no-skill-install`,
171
+ a corrupt `config.json`, logs during a stub task, and clean EOF shutdown.
172
+ - New `npm run check:stdio` and `npm run check:stdio:src` scripts.
173
+
174
+ ### Tests
175
+
176
+ - New `test/unit/log.test.ts`: real-child-process checks for the four log levels' channels, default
177
+ INFO filtering, threshold-filtered file logging, and UTF-8 content (4/6 failed before the fix; see
178
+ `docs/m2-evidence/issue1-old-impl-log-test-failure.txt`).
179
+ - CI's three-platform matrix now includes Node 24; the build step runs the strict stdio check instead
180
+ of an EOF-exit-only smoke.
181
+ - CI `pack-check` and Release install the freshly built tarball into a clean consumer directory, read
182
+ the installed bin dynamically, and reuse the same strict stdio check; Release adds `lint` and the
183
+ installed-package protocol gate, failing before a draft is created.
184
+ - ESLint enables `no-console` (allowing `error` only) for `src/**/*.ts` to prevent new direct stdout writes.
185
+
186
+ ---
187
+
188
+ ## [0.1.9] — 2026-09-09
189
+
190
+ ### Fixed
191
+
192
+ - Fixed premature TraeWork completion while the model was still thinking but the DOM stayed unchanged for about 36 seconds.
193
+ The stop button and loading task tail are now authoritative running signals and override completion marks; stable rounds now
194
+ start an idle timer, which defaults to ten minutes before returning `idle`.
195
+ - Fixed permanently pending `Runtime.evaluate` calls after a CDP WebSocket disconnect. Close/error rejects all pending requests,
196
+ each CDP command has a 15-second default timeout, and task cancellation is observed within about one second.
197
+ - Only `completion_mark` / `ask_user` release an instance launched by this module. Idle, timeout, cancellation, and CDP loss retain
198
+ it, with `agentEndReason` / `keptInstance` exposed in task metadata.
199
+ - Fixed a shutdown race where an orchestrator still collecting its baseline could remain `queued` and be mislabeled as a user
200
+ cancellation. User cancellation is now determined only from structured cancellation intent.
201
+
202
+ ### Added
203
+
204
+ - Polling emits a progress event visible through `query_task` every 30 seconds by default.
205
+ - Added `gui.idleTimeoutMs`, `gui.cdpSendTimeoutMs`, `gui.progressIntervalMs`, and five overrideable liveness selectors.
206
+
207
+ ### Testing
208
+
209
+ - Added liveness truth-table, CDP timeout/disconnect convergence, selector-expression, and fake-CDP instance-retention regressions.
210
+ - Windows/macOS/Linux × Node 20/22 and tarball gates remain covered.
211
+
212
+ ---
213
+
214
+ ## [0.1.8] — 2026-09-08
215
+
216
+ ### Fixed
217
+
218
+ - **Atomic-write concurrency defect** (the real cause of intermittent CI failures): the temp filename in
219
+ `writeJsonAtomic`/`writeTextAtomic` was `<target>.<pid>.tmp`, so concurrent writes to the same target in one
220
+ process shared one temp file - the first to finish renames it away and the next throws `ENOENT`; on Windows a
221
+ concurrent rename can also throw `EPERM`. Symptom: `rework_task` intermittently returned an `undefined` meta
222
+ (hit on CI windows/Node 20). Fixed by a random temp suffix plus backoff-retry on transient rename errors.
223
+
224
+ ### Testing
225
+
226
+ - New `test/unit/atomic-write.test.ts` (3 cases: concurrent JSON/text writes all succeed, no leftover temp files).
227
+
228
+ ---
229
+
230
+ ## [0.1.7] — 2026-09-08
231
+
232
+ ### Fixed
233
+
234
+ - **Project-folder binding still failed** (v0.1.6 did not fully resolve it; field report: the native dialog
235
+ appeared but the edit box was empty and confirm was clicked anyway):
236
+ - **Root cause**: the MCP passes a `normPath()`-normalized path (lowercase drive + forward slashes, e.g.
237
+ `d:/Trae项目/AI游戏/象棋`), which the **native Windows picker rejects** — measured: read-back matched, yet the dialog
238
+ stayed open after confirm. Fix: convert via the new `toNativeWindowsPath()` to `D:\a\b`.
239
+ - `WM_GETTEXT` **read-back verification** after writing; on mismatch re-locate and retry (up to 3 times);
240
+ if it still mismatches, **never click confirm** and fail loudly.
241
+ - The hwnd detected after the footer click is **passed into the write script**; after clicking, success
242
+ requires that hwnd to be gone.
243
+ - **Auto-close stale dialogs** (left over from a previous failure) before binding.
244
+ - Confirm button now also requires its rect to be in the lower half of the dialog.
245
+ - The dialog script's full trace (HWND/READBACK) is written to the task log.
246
+
247
+ ### Testing
248
+
249
+ - Total tests **172 → 181** (unit incl. path normalization and atomic-write concurrency; integration incl. stale-dialog cleanup).
250
+ - Machine-verified: a new Chinese project `D:\Trae项目\AI游戏\象棋` (absent from the dropdown)
251
+ passed end-to-end through the native dialog; `五子棋` and the ASCII project `ts-bind-test` regressed green.
252
+
253
+ ---
254
+
255
+ ## [0.1.6] — 2026-09-08
256
+
257
+ ### Fixed
258
+
259
+ - **Project-folder binding got stuck / reported "waiting for native dialog timed out"** (field report; the adapter was not broken):
260
+ - `clickDropdownFooter` used to trust `element.click()`'s return value, but the native popup may never
261
+ appear → it now **confirms the dialog actually appeared**, otherwise it logs a dropdown DOM snapshot and fails loudly.
262
+ - Dialog detection polled from Node every 800 ms while PowerShell cold start is ~4.5–6 s, so a 15 s budget
263
+ allowed only ~2 probes → now it polls **inside a single PowerShell call** (400 ms interval) with a 30 s budget.
264
+ - **CJK paths were corrupted** (measured: `D:\Trae项目\ts-bind-test` became `D:Traes-bind-test`):
265
+ SendKeys/clipboard are mangled by the console code page → the path is now written via Win32
266
+ **`WM_SETTEXT`**, which is fully reliable for CJK.
267
+ - **The confirm click hit a file-list row**: `AutomationId="1"` is not unique (rows also use 0/1/2…) →
268
+ now located by **AutomationId=1 AND ControlType=Pane**, then clicked by bounding rect.
269
+ - PowerShell output was garbled for Chinese → the script now emits **ASCII-only** and Node maps it back
270
+ via `localizeDialogMessage()`.
271
+
272
+ ### Added
273
+
274
+ - **Non-Work binding fallback**: when binding fails in Code/Design, the driver **falls back to Work once**,
275
+ switches back to the target mode, and re-verifies the project is still bound; only if both attempts fail
276
+ does it report an error including the reason from each mode.
277
+ - Machine-verified: for a project **absent from the dropdown** (`D:\Trae项目\ts-bind-test`),
278
+ `run_task(agentId=traework, mode=Code)` passed end-to-end — native dialog wrote the path → confirm clicked →
279
+ project entered TraeWork's list (`solo-lite.local-project-folders` 22→23) → task sent → auto-verification `succeeded`.
280
+
281
+ ### Changed
282
+
283
+ - `docs/traework-cdp.md` / `.en.md`: 7 new pitfall entries; added the "dropdown entries ≠ project map" fact and the fallback note.
284
+
285
+ ### Testing
286
+
287
+ - Total tests **167 → 172** (new dialog message-mapping/platform-branch unit tests + Code→Work fallback integration test).
288
+
289
+ ---
290
+
291
+ ## [0.1.5] — 2026-09-08
292
+
293
+ ### Added
294
+
295
+ - **TraeWork panel mode switching**: `run_task` gained a `mode` parameter supporting `Work` / `Code` / `Design`.
296
+ - Resolution order: explicit `mode` parameter > task-text detection > keep `Work`.
297
+ - Text detection handles mixed Chinese/English phrasing ("switch to Code mode", "use design mode", "工作模式", "代码模式", "设计模式", …).
298
+ - New `gui.modeSwitch` profile switch (default `true`).
299
+ - New pure functions `detectModeFromText` / `resolveMode` (unit-tested).
300
+ - **Dedicated SVG assets**: `assets/tianshu-mcp-icon.svg` (app icon), `assets/tianshu-mcp-banner.svg` (wide banner).
301
+ - New `scripts/probe-traework.mjs mode <Work|Code|Design>` subcommand (real-machine diagnostics/verification).
302
+ - New bilingual release notes `docs/release-v0.1.5.md` / `.en.md`.
303
+
304
+ ### Changed
305
+
306
+ - **TraeWork execution order**: measurement showed the three modes **each keep an independent project binding** —
307
+ switching modes replaces the input bar's project with whatever that mode last used.
308
+ Order is now: ensure instance → wait for UI → new session → switch to target mode → bind project inside that mode → switch model → send.
309
+ - After binding, both mode and project are re-verified; any mismatch **fails loudly** (never silently develops in the wrong mode).
310
+ - meta block now exposes `model` / `mode` for Tianshu to read back.
311
+ - `package.json`: `license` changed from `MIT` to `Apache-2.0` (matching the repository `LICENSE` file);
312
+ added `repository` / `homepage` / `bugs`; `files` now includes `assets`.
313
+ - README.md / README.en.md fully rewritten: stack badges, SVG banner (above the icon), language isolation
314
+ (the Chinese README references Chinese docs only; the English README references English docs only).
315
+
316
+ ### Fixed
317
+
318
+ - **Rework feedback race** (pre-existing; intermittent under load): the terminal snapshot is written first, so a caller's
319
+ immediate `rework_task(feedback)` could be erased by the previous run's `delete meta.reworkFeedback`, leaving the rework
320
+ round without feedback. Now the feedback is consumed and cleared atomically when `startTask` begins.
321
+ Added regression test `test/integration/rework-feedback-race.test.ts`.
322
+ - **`projectBasename` cross-platform**: it used `path.basename` (which does not split backslashes on POSIX), failing
323
+ Linux/macOS CI; now it splits explicitly on both `\` and `/`.
324
+
325
+ ### Testing
326
+
327
+ - Total tests **153 → 167** (14 new mode-related cases).
328
+ - Real-machine end-to-end: `mode=Work` / `mode=Code` / `mode=Design` all completed
329
+ "switch mode → bind project → send → create file → auto-verification passed".
330
+
331
+ ---
332
+
333
+ ## [0.1.4] — 2026-09-08
334
+
335
+ ### Added
336
+
337
+ - TraeWork GUI driver over CDP: `traework` moved from `unsupported` to `driver=gui` / `status=ready`.
338
+ - Capabilities: launch/reuse instance → new session → bind project folder (dropdown first, restricted computer-use
339
+ native dialog as fallback) → optional model selection → read-back-verified send → poll to completion →
340
+ auto-verify → repair-plan file + same-session rework on failure.
341
+ - Safety: reuse the user's instance by default, never kill a process tree, verify the command line before terminating;
342
+ computer-use is limited to TraeWork's folder picker.
343
+ - `AgentAdapter` gained an optional `run()` execution surface; the orchestrator branches on `adapter.run`
344
+ (CLI agents still use spawn).
345
+ - Profile gained `driver` (`spawn` / `gui`) and a `gui` section; `run_task` gained a `model` parameter.
346
+ - New `src/agents/traework/**` (CDP client, selector table, launcher, session/input/model/reply modules, restricted computer-use).
347
+ - On verification failure a repair-plan file `rework-<taskId>-r<N>.md` is generated (task dir + project `.tianshu-mcp`)
348
+ and its filename is referenced in the rework message.
349
+
350
+ ### Changed
351
+
352
+ - `docs/adapter-matrix.md` T1 conclusion corrected from `unsupported` to "integrated (driver=gui)".
353
+ - formatter now passes cancel-source fields (`abortSource`, …) through to `query_task`'s meta block.
354
+
355
+ ### Fixed
356
+
357
+ - Unified timeout terminal state: normal timeouts now also land `failed(timeout)` plus exactly one `timeout_killed` event, in fixed order.
358
+ - Stabilized the `shutdown` test polling.
359
+
360
+ ### Testing
361
+
362
+ - Total tests **72 → 153** (new TraeWork unit/integration cases).
363
+ - Real-machine end-to-end: `run_task(agentId=traework, model=GLM-5.3, autoVerify=true)` drove TraeWork to create a file and passed acceptance.
364
+
365
+ ---
366
+
367
+ ## [0.1.3] — 2026-09-08
368
+
369
+ ### Fixed
370
+
371
+ - **S1** No-reason cancel was mis-recorded as `interrupted`: added independent `cancelRequestedAt` / `abortSource` fields;
372
+ cancel intent no longer depends on the optional `reason` (5 regression tests).
373
+ - **S2** Unified timeout terminal state (shared with 0.1.4).
374
+ - **S3** Tracked pre-dirty net-diff attribution: pre-existing dirty files are excluded by content hash when unchanged;
375
+ unchanged staged/unstaged files are no longer reported as agent changes (4 regressions).
376
+ - **S4** `verify_task(taskId)` persists real-task metadata (`reportRound` / `verificationSource` /
377
+ `latestVerificationVerdict`, keeping `agentId`); single-source MCP version (`sync-version` injection).
378
+ - **S5** `projects.json` official Zod schema + last-known-good for `config`/`profiles`/`projects` + content-sha256
379
+ hot-reload invalidation (fixed corrupt JSON being treated as missing and reset).
380
+
381
+ ### Changed
382
+
383
+ - **S6** CI/Release `npm ci` retry corrected (stop on success / 3 attempts / attempt counter);
384
+ Vitest v3 upgrade (0 audit vulnerabilities); plain-text status markers (emoji scan test).
385
+
386
+ ### Testing
387
+
388
+ - Total tests **53 → 72**.
389
+
390
+ ---
391
+
392
+ ## [0.1.2] — 2026-09-08
393
+
394
+ ### Changed
395
+
396
+ - Build no longer ships source maps (no `.map`, tarball ≈ 69.9 KB).
397
+
398
+ ### Testing
399
+
400
+ - Total tests **53**.
401
+
402
+ ---
403
+
404
+ ## [0.1.1] — 2026-09-07
405
+
406
+ ### Added
407
+
408
+ - **Release after the R1–R5 fixes**:
409
+ - **R1** Cancel/interrupt state persistence (`cancel_requested → cancelled`, `cancelReason`/`finishedAt`/`errorType`
410
+ persisted, restart-recoverable, idempotent, bounded shutdown).
411
+ - **R2** Call-level `taskTimeoutMs` precedence fix + cross-platform process-tree termination
412
+ (POSIX process-group SIGTERM→SIGKILL, Windows `taskkill /T /F`).
413
+ - **R3** Git baseline participates in diff (boundary at `baseline.head`; agent commits do not lose changes;
414
+ dirty-worktree hash attribution).
415
+ - **R4** Verification tool parameters and report-round semantics (`round=0` valid, manual verify does not overwrite
416
+ reports, `extraChecks` append + `checksMode=replace`, `optional` does not affect verdict, `baselineRef` validated).
417
+ - **R5** Removed hardcoded agent paths (`{LOCALAPPDATA}` placeholders + platform-standard candidates);
418
+ mtime hot reload for `config`/`profile`/`projects`.
419
+ - **R6** Cross-platform CI matrix (Windows/macOS/Linux × Node 20/22) and Release version consistency
420
+ (tag/input = `package.json` = tarball), plus tarball content checks.
421
+ - **R7** npm published `tianshu-mcp@0.1.1` + `npx -y` raise with 8 tools connected.
422
+ - **R8** Bilingual docs synced (including 4 English topic docs).
423
+
424
+ ---
425
+
426
+ ## [0.1.0] — 2026-09-07
427
+
428
+ ### Added
429
+
430
+ - First usable release: **M1 core engine + stub-agent end-to-end**.
431
+ - 8 MCP tools: `run_task` / `query_task` / `list_tasks` / `get_task_report` / `cancel_task` / `verify_task` /
432
+ `rework_task` / `get_profiles`.
433
+ - `TaskManager` state machine / per-project serial queue / global concurrency gate / cancel (kill tree) / event-stream persistence.
434
+ - Acceptance engine: git baseline & diff, default check-set derivation, command runner, code analysis,
435
+ `report.md` / `report.json`.
436
+ - fix-loop auto rework + `needs_attention`; skill self-install.
437
+ - Stub-agent 3 playbooks (good / fix-on-first / never) integration tests + protocol tests — **53/53 green**.
438
+
439
+ ---
440
+
441
+ [Unreleased]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.3.1...HEAD
442
+ [0.3.1]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.3.0...v0.3.1
443
+ [0.3.0]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.2.0...v0.3.0
444
+ [0.2.0]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.10...v0.2.0
445
+ [0.1.10]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.9...v0.1.10
446
+ [0.1.9]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.8...v0.1.9
447
+ [0.1.8]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.7...v0.1.8
448
+ [0.1.7]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.6...v0.1.7
449
+ [0.1.6]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.5...v0.1.6
450
+ [0.1.5]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.4...v0.1.5
451
+ [0.1.4]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.3...v0.1.4
452
+ [0.1.3]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.2...v0.1.3
453
+ [0.1.2]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.1...v0.1.2
454
+ [0.1.1]: https://github.com/lanlan0811/tianshu-mcp/compare/v0.1.0...v0.1.1
455
+ [0.1.0]: https://github.com/lanlan0811/tianshu-mcp/releases/tag/v0.1.0