dsh-client-auto-continue 0.17.4 → 0.19.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +230 -281
  3. package/README.ru.md +382 -0
  4. package/README.zh.md +229 -279
  5. package/docs/auto-continue-workflow.archify.json +3 -3
  6. package/docs/auto-continue-workflow.en.archify.json +3 -3
  7. package/docs/auto-continue-workflow.en.html +1 -1
  8. package/docs/auto-continue-workflow.html +1 -1
  9. package/docs/auto-continue-workflow.ru.svg +530 -0
  10. package/docs/banner-ru-dark.svg +38 -0
  11. package/docs/banner-ru.svg +38 -0
  12. package/docs/demo-ru-static.svg +115 -0
  13. package/docs/demo-ru.svg +147 -0
  14. package/docs/releases/v0.18.0.md +58 -0
  15. package/docs/releases/v0.19.0.md +62 -0
  16. package/docs/social-preview.png +0 -0
  17. package/docs/social-preview.svg +30 -1
  18. package/lib/client.js +347 -100
  19. package/lib/client.js.map +3 -3
  20. package/lib/index.js +790 -49
  21. package/lib/types/client/auto-continue-icon.d.ts +7 -0
  22. package/lib/types/client/bridge.d.ts +2 -0
  23. package/lib/types/client/composer-toggle.d.ts +2 -0
  24. package/lib/types/client/locales.d.ts +19 -0
  25. package/lib/types/client/settings-card.d.ts +8 -0
  26. package/lib/types/host/connectivity.d.ts +4 -0
  27. package/lib/types/host/engine.d.ts +97 -5
  28. package/lib/types/index.d.ts +64 -0
  29. package/lib/types/shared/core.d.ts +54 -1
  30. package/locale/ru.json +6 -0
  31. package/package.json +6 -4
  32. package/scripts/build-docs-assets.mjs +126 -0
  33. package/src/client/auto-continue-icon.tsx +6 -27
  34. package/src/client/bridge.ts +26 -6
  35. package/src/client/composer-toggle.tsx +22 -11
  36. package/src/client/index.ts +5 -1
  37. package/src/client/locales.ts +241 -38
  38. package/src/client/settings-card.tsx +31 -4
  39. package/src/client/settings-notifications.ts +3 -2
  40. package/src/client/styles.ts +17 -19
  41. package/src/host/connectivity.ts +54 -0
  42. package/src/host/engine.ts +852 -40
  43. package/src/host/settings-migration.ts +1 -1
  44. package/src/index.ts +26 -1
  45. package/src/shared/core.ts +94 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.19.0](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.19.0) — 2026-11-13
4
+
5
+ ### Added
6
+
7
+ - Subagent sessions now get live auto-continue for failed, output-limit and silent turns when their main conversation has auto-continue enabled, controlled by the new **Resume subagent sessions** setting (`resumeSubagentSessions`, off by default). It only helps while the child is still loaded: DSH 0.2.2 closes a background subagent as soon as a turn fails and reports the failure to its parent, so most failed children are already gone by the time the grace period ends. Subagent lineage follows only `origin: 'subagent'` parents (a forked main conversation is not treated as a child), subagents still never run the autonomous loop, are never loop-guard restarted, and are not recovered by the startup scan or stored-session sweep; **Resume now** works for them when enabled, and pausing or turning off the parent cancels queued child continuations for inherited modes. ([#84](https://github.com/HsiangNianian/dsh-auto-continue/pull/84), thanks @kesha4)
8
+ - Russian (`ru` / `ru-*`) localization: the settings card, composer switch and mode menu, browser notifications, built-in continue / guard / loop texts, and the plugin's own metadata. `zh`/`zh-*` and every other locale (including English) keep their existing strings and fallbacks unchanged. With a `ru` locale and the default texts, the continue message the model receives is now Russian (`Продолжай`) instead of English. ([#84](https://github.com/HsiangNianian/dsh-auto-continue/pull/84), thanks @kesha4)
9
+
10
+ ### Fixed
11
+
12
+ - Restart recovery works again on DSH 0.2.2. A clean host shutdown now writes the cancelled turn as `aborted` with cause `disposed`, which the startup scan and the stored-session sweep read as a manual stop and skipped without logging anything. Both now treat a host-closed turn as a restart interruption, the same way the child-session hand-off already did, and a stop you made yourself still never matches ([#87](https://github.com/HsiangNianian/dsh-auto-continue/pull/87), thanks @palxex)
13
+ - The composer switch no longer flips to off for a few seconds whenever the status bridge drops (engine rebuild, sleep, an idle connection being cut). It keeps the last known setting, dimmed and read-only, until the bridge is back; the first reconnect happens after 500 ms instead of 3 s, and the host sends a `: ping` comment every 20 s ([#86](https://github.com/HsiangNianian/dsh-auto-continue/issues/86), thanks @simon333888)
14
+ - Turning **Resume subagent sessions** off no longer stops **Wake child sessions after restart** from collecting children it had already seen live
15
+
16
+ ### Changed
17
+
18
+ - The composer control is now one 28px ∞ icon switch plus a chevron-only mode menu, instead of icon, label, switch and dropdown (about 200px). The mode name moved into the menu, tooltip and accessible name, and the borrowed refresh icon is gone ([#86](https://github.com/HsiangNianian/dsh-auto-continue/issues/86))
19
+ - The READMEs are reorganized around install, usage and settings tables, with a new Russian README and Russian banner, demo and workflow map ([#89](https://github.com/HsiangNianian/dsh-auto-continue/pull/89))
20
+
21
+ ### Maintenance
22
+
23
+ - The restart runtime test takes the DSH fixture cohort and the shutdown shape (`kill` or `dispose`), and CI runs it against 0.2.1-rc.2 and 0.2.2-rc.1
24
+ - `npm run docs:assets` regenerates the banners and the social preview; the workflow map stays an [Archify](https://github.com/tt-a1i/archify) export
25
+
26
+ [Upgrade instructions and validation](docs/releases/v0.19.0.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.18.0...v0.19.0)
27
+
28
+ ## [0.18.0](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.18.0) — 2026-11-10
29
+
30
+ ### Added
31
+
32
+ - **Offline hold** (`pauseWhenOffline`, on by default; `offlineCheckMs`, default 15000): a network-error retry first checks that the host is online and, while it is not, waits and re-checks without consuming `maxConsecutive`, then resumes through the usual grace period and cooldown ([#81](https://github.com/HsiangNianian/dsh-auto-continue/issues/81), thanks @xiuchuan666)
33
+ - **Autonomous loop round limit** (`loopMaxIterations`, default 0 = unlimited): stop the loop after N rounds per session and report it once; a user message or turning the loop back on resets the count ([#81](https://github.com/HsiangNianian/dsh-auto-continue/issues/81))
34
+ - **Child-session hand-off** (`resumeInterruptedChildren`, off by default): the startup scan now judges subagent and team-member sessions that a restart interrupted (`open-turn`, `aborted{disposed|legacy}`, `interrupted`, `max-tokens`, or a retryable `error`) and sends their root session one message listing them, once per batch signature. Child sessions are still never resumed directly; parents that finished cleanly or that the user stopped by hand are skipped, and at most 8 child logs are cold-read per pass from a dedicated ledger that does not consume the main scan budget
35
+ - **Goal re-arm** (`resumeGoals`, off by default): after any auto-continue send (or a child-session wake-up), re-arm an `active` goal that the host disarmed on restart, so its continuation rounds can run again. `goals.resume` performs no human-authorization check in the service layer, so automatic use acts on the user's behalf — hence opt-in only
36
+ - **Resume paused goals** (`resumePausedGoals`, off by default): also resume goals the user paused by hand; gated behind `resumeGoals` ([#77](https://github.com/HsiangNianian/dsh-auto-continue/issues/77), [#80](https://github.com/HsiangNianian/dsh-auto-continue/pull/80), thanks @loyalchiiina)
37
+ - **Plugin message source** (`usePluginSource`, off by default): send continue prompts with `source.kind: 'plugin:dsh-client-auto-continue'` instead of `user`; echo matching accepts both, including messages queued before the switch changes ([#79](https://github.com/HsiangNianian/dsh-auto-continue/pull/79), thanks @fu050409)
38
+
39
+ ### Fixed
40
+
41
+ - Child-session hand-off ignores interruptions older than `freshMs`, so a long-finished root session is not woken for a child cut off days ago, and a woken root is restored with the model its log recorded ([#80](https://github.com/HsiangNianian/dsh-auto-continue/pull/80))
42
+
43
+ ### Maintenance
44
+
45
+ - Startup scan diagnostics report subagent / no-origin / other-origin session counts, and an unresolvable parent chain is logged once per session instead of every round
46
+ - Recovery test fixtures keep the offline hold off so they never depend on the machine's real network; the new suite fakes DNS and network interfaces
47
+
48
+ [Upgrade instructions and validation](docs/releases/v0.18.0.md) · [Full changes](https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.17.4...v0.18.0)
49
+
3
50
  ## [0.17.4](https://github.com/HsiangNianian/dsh-auto-continue/releases/tag/v0.17.4) — 2026-11-07
4
51
 
5
52
  ### Fixed