dsh-client-auto-continue 0.18.0 → 0.20.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 (43) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +230 -310
  3. package/README.ru.md +382 -0
  4. package/README.zh.md +229 -308
  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.19.0.md +62 -0
  15. package/docs/releases/v0.20.0.md +46 -0
  16. package/docs/social-preview.png +0 -0
  17. package/docs/social-preview.svg +30 -1
  18. package/lib/client.js +297 -99
  19. package/lib/client.js.map +3 -3
  20. package/lib/index.js +496 -43
  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 +5 -0
  25. package/lib/types/client/settings-card.d.ts +1 -0
  26. package/lib/types/host/engine.d.ts +88 -4
  27. package/lib/types/index.d.ts +8 -0
  28. package/lib/types/shared/core.d.ts +21 -1
  29. package/locale/ru.json +6 -0
  30. package/package.json +5 -3
  31. package/scripts/build-docs-assets.mjs +126 -0
  32. package/src/client/auto-continue-icon.tsx +6 -27
  33. package/src/client/bridge.ts +26 -6
  34. package/src/client/composer-toggle.tsx +22 -11
  35. package/src/client/index.ts +5 -1
  36. package/src/client/locales.ts +215 -40
  37. package/src/client/settings-card.tsx +8 -2
  38. package/src/client/settings-notifications.ts +3 -2
  39. package/src/client/styles.ts +17 -19
  40. package/src/host/engine.ts +571 -41
  41. package/src/host/settings-migration.ts +1 -1
  42. package/src/index.ts +23 -1
  43. package/src/shared/core.ts +32 -2
@@ -0,0 +1,38 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="ru" aria-labelledby="title description">
2
+ <title id="title">dsh-auto-continue</title>
3
+ <desc id="description">Плагин DeepSeek Harness от HsiangNianian. Возвращает прерванные сессии к работе в вашем темпе.</desc>
4
+ <style>
5
+ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
6
+ .wordmark { font-size: 46px; font-weight: 650; letter-spacing: -1.5px; }
7
+ .tagline { font-size: 24px; }
8
+ .compact { display: none; }
9
+ @media (max-width: 520px) {
10
+ .eyebrow { font-size: 23px; letter-spacing: 0; }
11
+ .wordmark { font-size: 49px; }
12
+ .tagline { font-size: 32px; }
13
+ .credit { font-size: 25px; }
14
+ .full { display: none; }
15
+ .compact { display: inline; }
16
+ }
17
+ </style>
18
+ <rect width="960" height="260" rx="18" fill="#141414"/>
19
+ <rect x="40" y="48" width="112" height="112" rx="28" fill="#23262c"/>
20
+ <g transform="translate(57 64) scale(1.25)">
21
+ <path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round"/>
22
+ <path d="M49 6v12H37" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
23
+ <path d="M27 22l16 10-16 10Z" fill="#f4f4f5" stroke="#f4f4f5" stroke-width="2" stroke-linejoin="round"/>
24
+ </g>
25
+ <g fill="#f4f4f5">
26
+ <text class="eyebrow" x="188" y="61" fill="#b9bec8" font-size="15" letter-spacing="1.6">DEEPSEEK HARNESS PLUGIN</text>
27
+ <text class="wordmark" x="185" y="118">dsh-auto-continue</text>
28
+ <text class="tagline full" x="188" y="163" fill="#b9bec8">Возвращает прерванные сессии к работе.</text>
29
+ <text class="tagline compact" x="188" y="163" fill="#b9bec8">Прервалось? Продолжаем.</text>
30
+ </g>
31
+ <path d="M40 200H920" stroke="#37393e"/>
32
+ <text class="credit" x="40" y="236" fill="#b9bec8" font-size="16">by HsiangNianian</text>
33
+ <!-- A broken thread joining back into one line. -->
34
+ <g fill="none" stroke="#b9bec8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
35
+ <path d="M700 230h44m12 0h3m12 0h3m12 0h126"/>
36
+ <path d="m902 224 10 6-10 6"/>
37
+ </g>
38
+ </svg>
@@ -0,0 +1,38 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="ru" aria-labelledby="title description">
2
+ <title id="title">dsh-auto-continue</title>
3
+ <desc id="description">Плагин DeepSeek Harness от HsiangNianian. Возвращает прерванные сессии к работе в вашем темпе.</desc>
4
+ <style>
5
+ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
6
+ .wordmark { font-size: 46px; font-weight: 650; letter-spacing: -1.5px; }
7
+ .tagline { font-size: 24px; }
8
+ .compact { display: none; }
9
+ @media (max-width: 520px) {
10
+ .eyebrow { font-size: 23px; letter-spacing: 0; }
11
+ .wordmark { font-size: 49px; }
12
+ .tagline { font-size: 32px; }
13
+ .credit { font-size: 25px; }
14
+ .full { display: none; }
15
+ .compact { display: inline; }
16
+ }
17
+ </style>
18
+ <rect width="960" height="260" rx="18" fill="#f4f4f5"/>
19
+ <rect x="40" y="48" width="112" height="112" rx="28" fill="#e4e4e7"/>
20
+ <g transform="translate(57 64) scale(1.25)">
21
+ <path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#24262b" stroke-width="5" stroke-linecap="round"/>
22
+ <path d="M49 6v12H37" fill="none" stroke="#24262b" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
23
+ <path d="M27 22l16 10-16 10Z" fill="#24262b" stroke="#24262b" stroke-width="2" stroke-linejoin="round"/>
24
+ </g>
25
+ <g fill="#24262b">
26
+ <text class="eyebrow" x="188" y="61" fill="#545961" font-size="15" letter-spacing="1.6">DEEPSEEK HARNESS PLUGIN</text>
27
+ <text class="wordmark" x="185" y="118">dsh-auto-continue</text>
28
+ <text class="tagline full" x="188" y="163" fill="#545961">Возвращает прерванные сессии к работе.</text>
29
+ <text class="tagline compact" x="188" y="163" fill="#545961">Прервалось? Продолжаем.</text>
30
+ </g>
31
+ <path d="M40 200H920" stroke="#d4d4d8"/>
32
+ <text class="credit" x="40" y="236" fill="#545961" font-size="16">by HsiangNianian</text>
33
+ <!-- A broken thread joining back into one line. -->
34
+ <g fill="none" stroke="#545961" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
35
+ <path d="M700 230h44m12 0h3m12 0h3m12 0h126"/>
36
+ <path d="m902 224 10 6-10 6"/>
37
+ </g>
38
+ </svg>
@@ -0,0 +1,115 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="660" viewBox="0 0 960 660" role="img" lang="ru" aria-labelledby="title description">
2
+ <title id="title">Auto-continue: пример восстановления после сбоя</title>
3
+ <desc id="description">Иллюстрация: сетевая ошибка прерывает ассистента. После паузы в 3 секунды плагин отправляет «Продолжай», и ассистент продолжает работу. Переключатель авто-продолжения рядом с полем ввода остаётся включённым. При ограничении анимации показывается вся последовательность одним кадром.</desc>
4
+ <style>
5
+ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
6
+ .body { font-size: 24px; }
7
+ .compact, .countdown { display: none; }
8
+ .step-active { opacity: 0; }
9
+ .step-4 { opacity: 1; }
10
+ @media (max-width: 520px) {
11
+ .full { display: none; }
12
+ .compact { display: inline; }
13
+ .body { font-size: 34px; }
14
+ .heading { font-size: 28px; }
15
+ .role, .annotation, .status, .toggle-label { font-size: 26px; }
16
+ .step-label { font-size: 29px; transform: translateX(-32px); }
17
+ .step-number { display: none; }
18
+ .footnote { font-size: 24px; }
19
+ .composer-switch { transform: translate(276px, 532px); }
20
+ }
21
+ </style>
22
+ <rect width="960" height="660" rx="18" fill="#141414"/>
23
+ <path d="M18 0H942Q960 0 960 18V68H0V18Q0 0 18 0Z" fill="#23262c"/>
24
+ <g transform="translate(28 18) scale(.5)"><path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round"/>
25
+ <path d="M49 6v12H37" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
26
+ <path d="M27 22l16 10-16 10Z" fill="#f4f4f5" stroke="#f4f4f5" stroke-width="2" stroke-linejoin="round"/></g>
27
+ <text class="heading" x="74" y="42" fill="#f4f4f5" font-size="20" font-weight="600">Авто-продолжение</text>
28
+ <text class="annotation" x="920" y="42" fill="#b9bec8" font-size="14" text-anchor="end" letter-spacing=".7">ДЕМО ВОССТАНОВЛЕНИЯ</text>
29
+
30
+ <!-- A simplified conversation, not a recording of a live DSH session. -->
31
+ <rect x="402" y="96" width="518" height="56" rx="16" fill="#2b2b2b"/>
32
+ <text class="body full" x="426" y="132" fill="#f4f4f5">Отрефакторь эту функцию.</text>
33
+ <text class="body compact" x="426" y="132" fill="#f4f4f5">Отрефакторь эту функцию.</text>
34
+ <text class="role" x="40" y="196" fill="#f4f4f5" font-size="17" font-weight="600">DSH</text>
35
+ <text class="body full" x="40" y="231" fill="#c4c7ce">Отделю проверку от обновления.</text>
36
+ <text class="body compact" x="40" y="231" fill="#c4c7ce">Рефакторю функцию…</text>
37
+
38
+ <g class="notice">
39
+ <rect x="40" y="254" width="880" height="52" rx="9" fill="#23262c"/>
40
+ <g fill="none" stroke="#d0bd96" stroke-width="1.8" stroke-linecap="round">
41
+ <circle cx="62" cy="280" r="8"/>
42
+ <path d="M62 275v5m0 4v.2"/>
43
+ </g>
44
+ <text class="status" x="83" y="287" fill="#d0bd96" font-size="21">Сеть прервалась</text>
45
+ <g fill="#d7d9de" font-size="20" text-anchor="end">
46
+ <text class="status countdown count-3" x="898" y="287">Повтор через 3 с</text>
47
+ <text class="status countdown count-2" x="898" y="287">Повтор через 2 с</text>
48
+ <text class="status countdown count-1" x="898" y="287">Повтор через 1 с</text>
49
+ <text class="status state-result" x="898" y="287">Продолжено</text>
50
+ </g>
51
+ <path class="progress" d="M84 305H904" pathLength="100" fill="none" stroke="#b9a987" stroke-width="2"/>
52
+ </g>
53
+
54
+ <g class="auto-message">
55
+ <text class="annotation" x="710" y="360" fill="#b9bec8" font-size="18" text-anchor="end">Отправлено автоматически</text>
56
+ <rect x="732" y="326" width="188" height="54" rx="16" fill="#2b2b2b"/>
57
+ <text class="body" x="756" y="361" fill="#f4f4f5">Продолжай</text>
58
+ </g>
59
+ <g class="resumed-message">
60
+ <text class="role" x="40" y="418" fill="#f4f4f5" font-size="17" font-weight="600">DSH</text>
61
+ <text class="body full" x="40" y="451" fill="#f4f4f5">Продолжаю с того же места.</text>
62
+ <text class="body compact" x="40" y="451" fill="#f4f4f5">Продолжаю с того же места.</text>
63
+ </g>
64
+
65
+ <rect x="40" y="482" width="880" height="86" rx="20" fill="#2b2b2b"/>
66
+ <text class="full" x="61" y="514" fill="#b5b5bd" font-size="21">Сообщение агенту…</text>
67
+ <text class="body compact" x="61" y="516" fill="#b5b5bd">Сообщение…</text>
68
+ <path d="M62 537v14m-7-7h14" fill="none" stroke="#c4c7ce" stroke-width="1.8" stroke-linecap="round"/>
69
+ <text class="toggle-label" x="92" y="551" fill="#d7d9de" font-size="18">Авто</text>
70
+ <g class="composer-switch" transform="translate(230 532)">
71
+ <rect width="44" height="24" rx="12" fill="#f4f4f5"/>
72
+ <circle cx="32" cy="12" r="9" fill="#141414"/>
73
+ </g>
74
+ <circle cx="888" cy="540" r="16" fill="#44464c"/>
75
+ <path d="M888 547v-14m-5 5 5-5 5 5" fill="none" stroke="#e4e4e7" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
76
+
77
+ <g><g transform="translate(40 602)">
78
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">01</text>
79
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Работа</text>
80
+ <g class="step-active step-1">
81
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">01</text>
82
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Работа</text>
83
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
84
+ </g>
85
+ </g>
86
+ <g transform="translate(272 602)">
87
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">02</text>
88
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Ожидание</text>
89
+ <g class="step-active step-2">
90
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">02</text>
91
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Ожидание</text>
92
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
93
+ </g>
94
+ </g>
95
+ <g transform="translate(504 602)">
96
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">03</text>
97
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Отправка</text>
98
+ <g class="step-active step-3">
99
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">03</text>
100
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Отправка</text>
101
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
102
+ </g>
103
+ </g>
104
+ <g transform="translate(736 602)">
105
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">04</text>
106
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Продолжено</text>
107
+ <g class="step-active step-4">
108
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">04</text>
109
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Продолжено</text>
110
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
111
+ </g>
112
+ </g></g>
113
+ <text class="footnote full" x="40" y="642" fill="#a1a4ad" font-size="14">Иллюстрация · пауза по умолчанию 3 секунды</text>
114
+ <text class="footnote compact" x="40" y="642" fill="#a1a4ad" font-size="24">Пример · пауза 3 с</text>
115
+ </svg>
@@ -0,0 +1,147 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="660" viewBox="0 0 960 660" role="img" lang="ru" aria-labelledby="title description">
2
+ <title id="title">Auto-continue: пример восстановления после сбоя</title>
3
+ <desc id="description">Иллюстрация: сетевая ошибка прерывает ассистента. После паузы в 3 секунды плагин отправляет «Продолжай», и ассистент продолжает работу. Переключатель авто-продолжения рядом с полем ввода остаётся включённым. При ограничении анимации показывается вся последовательность одним кадром.</desc>
4
+ <style>
5
+ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
6
+ .body { font-size: 24px; }
7
+ .compact { display: none; }
8
+ /* One 12-second cycle: work 0–2s, wait 2–5s, send 5–6.5s, resume 6.5–12s. */
9
+ .notice { animation: notice 12s linear infinite; }
10
+ .auto-message { animation: sent 12s ease-out infinite; }
11
+ .resumed-message { animation: resumed 12s ease-out infinite; }
12
+ .countdown, .step-active, .state-result { opacity: 0; animation: 12s linear infinite; }
13
+ .count-3 { animation-name: count3; }
14
+ .count-2 { animation-name: count2; }
15
+ .count-1 { animation-name: count1; }
16
+ .state-result { animation-name: result; }
17
+ .progress { stroke-dasharray: 100; stroke-dashoffset: 0; animation: progress 12s linear infinite; }
18
+ .step-1 { animation-name: step1; }
19
+ .step-2 { animation-name: step2; }
20
+ .step-3 { animation-name: step3; }
21
+ .step-4 { animation-name: step4; }
22
+ @keyframes notice { 0%, 16% { opacity: 0; } 17%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
23
+ @keyframes sent { 0%, 41.66% { opacity: 0; transform: translateY(5px); } 44%, 96% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(0); } }
24
+ @keyframes resumed { 0%, 54.16% { opacity: 0; transform: translateY(5px); } 57%, 96% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(0); } }
25
+ @keyframes count3 { 0%, 16.66% { opacity: 0; } 16.67%, 24.99% { opacity: 1; } 25%, 100% { opacity: 0; } }
26
+ @keyframes count2 { 0%, 24.99% { opacity: 0; } 25%, 33.32% { opacity: 1; } 33.33%, 100% { opacity: 0; } }
27
+ @keyframes count1 { 0%, 33.32% { opacity: 0; } 33.33%, 41.66% { opacity: 1; } 41.67%, 100% { opacity: 0; } }
28
+ @keyframes result { 0%, 54.16% { opacity: 0; } 54.17%, 100% { opacity: 1; } }
29
+ @keyframes progress { 0%, 16.67% { stroke-dashoffset: 100; } 41.67%, 100% { stroke-dashoffset: 0; } }
30
+ @keyframes step1 { 0%, 16.66% { opacity: 1; } 16.67%, 100% { opacity: 0; } }
31
+ @keyframes step2 { 0%, 16.66% { opacity: 0; } 16.67%, 41.66% { opacity: 1; } 41.67%, 100% { opacity: 0; } }
32
+ @keyframes step3 { 0%, 41.66% { opacity: 0; } 41.67%, 54.16% { opacity: 1; } 54.17%, 100% { opacity: 0; } }
33
+ @keyframes step4 { 0%, 54.16% { opacity: 0; } 54.17%, 100% { opacity: 1; } }
34
+ @media (max-width: 520px) {
35
+ .full { display: none; }
36
+ .compact { display: inline; }
37
+ .body { font-size: 34px; }
38
+ .heading { font-size: 28px; }
39
+ .role, .annotation, .status, .toggle-label { font-size: 26px; }
40
+ .step-label { font-size: 29px; }
41
+ .step-number { display: none; }
42
+ .step-label { transform: translateX(-32px); }
43
+ .footnote { font-size: 24px; }
44
+ .composer-switch { transform: translate(276px, 532px); }
45
+ }
46
+ @media (prefers-reduced-motion: reduce) {
47
+ .notice, .auto-message, .resumed-message, .state-result { animation: none; opacity: 1; transform: none; }
48
+ .countdown { display: none; }
49
+ .progress { animation: none; stroke-dashoffset: 0; }
50
+ .step-active { animation: none; opacity: 0; }
51
+ .step-4 { opacity: 1; }
52
+ }
53
+ </style>
54
+ <rect width="960" height="660" rx="18" fill="#141414"/>
55
+ <path d="M18 0H942Q960 0 960 18V68H0V18Q0 0 18 0Z" fill="#23262c"/>
56
+ <g transform="translate(28 18) scale(.5)"><path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round"/>
57
+ <path d="M49 6v12H37" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
58
+ <path d="M27 22l16 10-16 10Z" fill="#f4f4f5" stroke="#f4f4f5" stroke-width="2" stroke-linejoin="round"/></g>
59
+ <text class="heading" x="74" y="42" fill="#f4f4f5" font-size="20" font-weight="600">Авто-продолжение</text>
60
+ <text class="annotation" x="920" y="42" fill="#b9bec8" font-size="14" text-anchor="end" letter-spacing=".7">ДЕМО ВОССТАНОВЛЕНИЯ</text>
61
+
62
+ <!-- A simplified conversation, not a recording of a live DSH session. -->
63
+ <rect x="402" y="96" width="518" height="56" rx="16" fill="#2b2b2b"/>
64
+ <text class="body full" x="426" y="132" fill="#f4f4f5">Отрефакторь эту функцию.</text>
65
+ <text class="body compact" x="426" y="132" fill="#f4f4f5">Отрефакторь эту функцию.</text>
66
+ <text class="role" x="40" y="196" fill="#f4f4f5" font-size="17" font-weight="600">DSH</text>
67
+ <text class="body full" x="40" y="231" fill="#c4c7ce">Отделю проверку от обновления.</text>
68
+ <text class="body compact" x="40" y="231" fill="#c4c7ce">Рефакторю функцию…</text>
69
+
70
+ <g class="notice">
71
+ <rect x="40" y="254" width="880" height="52" rx="9" fill="#23262c"/>
72
+ <g fill="none" stroke="#d0bd96" stroke-width="1.8" stroke-linecap="round">
73
+ <circle cx="62" cy="280" r="8"/>
74
+ <path d="M62 275v5m0 4v.2"/>
75
+ </g>
76
+ <text class="status" x="83" y="287" fill="#d0bd96" font-size="21">Сеть прервалась</text>
77
+ <g fill="#d7d9de" font-size="20" text-anchor="end">
78
+ <text class="status countdown count-3" x="898" y="287">Повтор через 3 с</text>
79
+ <text class="status countdown count-2" x="898" y="287">Повтор через 2 с</text>
80
+ <text class="status countdown count-1" x="898" y="287">Повтор через 1 с</text>
81
+ <text class="status state-result" x="898" y="287">Продолжено</text>
82
+ </g>
83
+ <path class="progress" d="M84 305H904" pathLength="100" fill="none" stroke="#b9a987" stroke-width="2"/>
84
+ </g>
85
+
86
+ <g class="auto-message">
87
+ <text class="annotation" x="710" y="360" fill="#b9bec8" font-size="18" text-anchor="end">Отправлено автоматически</text>
88
+ <rect x="732" y="326" width="188" height="54" rx="16" fill="#2b2b2b"/>
89
+ <text class="body" x="756" y="361" fill="#f4f4f5">Продолжай</text>
90
+ </g>
91
+ <g class="resumed-message">
92
+ <text class="role" x="40" y="418" fill="#f4f4f5" font-size="17" font-weight="600">DSH</text>
93
+ <text class="body full" x="40" y="451" fill="#f4f4f5">Продолжаю с того же места.</text>
94
+ <text class="body compact" x="40" y="451" fill="#f4f4f5">Продолжаю с того же места.</text>
95
+ </g>
96
+
97
+ <rect x="40" y="482" width="880" height="86" rx="20" fill="#2b2b2b"/>
98
+ <text class="full" x="61" y="514" fill="#b5b5bd" font-size="21">Сообщение агенту…</text>
99
+ <text class="body compact" x="61" y="516" fill="#b5b5bd">Сообщение…</text>
100
+ <path d="M62 537v14m-7-7h14" fill="none" stroke="#c4c7ce" stroke-width="1.8" stroke-linecap="round"/>
101
+ <text class="toggle-label" x="92" y="551" fill="#d7d9de" font-size="18">Авто</text>
102
+ <g class="composer-switch" transform="translate(230 532)">
103
+ <rect width="44" height="24" rx="12" fill="#f4f4f5"/>
104
+ <circle cx="32" cy="12" r="9" fill="#141414"/>
105
+ </g>
106
+ <circle cx="888" cy="540" r="16" fill="#44464c"/>
107
+ <path d="M888 547v-14m-5 5 5-5 5 5" fill="none" stroke="#e4e4e7" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
108
+
109
+ <g><g transform="translate(40 602)">
110
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">01</text>
111
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Работа</text>
112
+ <g class="step-active step-1">
113
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">01</text>
114
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Работа</text>
115
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
116
+ </g>
117
+ </g>
118
+ <g transform="translate(272 602)">
119
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">02</text>
120
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Ожидание</text>
121
+ <g class="step-active step-2">
122
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">02</text>
123
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Ожидание</text>
124
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
125
+ </g>
126
+ </g>
127
+ <g transform="translate(504 602)">
128
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">03</text>
129
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Отправка</text>
130
+ <g class="step-active step-3">
131
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">03</text>
132
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Отправка</text>
133
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
134
+ </g>
135
+ </g>
136
+ <g transform="translate(736 602)">
137
+ <text x="0" y="0" fill="#9a9da5" font-size="16" class="step-number">04</text>
138
+ <text x="32" y="0" fill="#9a9da5" font-size="20" class="step-label">Продолжено</text>
139
+ <g class="step-active step-4">
140
+ <text x="0" y="0" fill="#f4f4f5" font-size="16" class="step-number">04</text>
141
+ <text x="32" y="0" fill="#f4f4f5" font-size="20" class="step-label">Продолжено</text>
142
+ <path d="M0 12H142" stroke="#f4f4f5" stroke-width="2"/>
143
+ </g>
144
+ </g></g>
145
+ <text class="footnote full" x="40" y="642" fill="#a1a4ad" font-size="14">Иллюстрация · пауза по умолчанию 3 секунды</text>
146
+ <text class="footnote compact" x="40" y="642" fill="#a1a4ad" font-size="24">Пример · пауза 3 с</text>
147
+ </svg>
@@ -0,0 +1,62 @@
1
+ Restart recovery works again on DSH 0.2.2, the composer switch no longer flickers off while it reconnects, the plugin speaks Russian, and subagents can now be resumed (opt-in)
2
+
3
+ ## Restart recovery on DSH 0.2.2
4
+
5
+ Fixed in [#87](https://github.com/HsiangNianian/dsh-auto-continue/pull/87). If you restarted DSH 0.2.2 while a conversation was mid-turn, it just sat there afterwards, with nothing in the log saying why
6
+
7
+ 0.2.2 waits for agents to shut down cleanly, so the interrupted turn now gets written to disk as "aborted by the host" instead of being left open. The startup scan read that as you pressing stop and skipped it. It now treats a host shutdown the same way it already did for child-session hand-off, so these conversations continue again after a restart
8
+
9
+ A stop you made yourself is still never resumed
10
+
11
+ ## Composer switch
12
+
13
+ Reported in [#86](https://github.com/HsiangNianian/dsh-auto-continue/issues/86)
14
+
15
+ - The switch used to flip to off for a few seconds whenever the plugin's status connection dropped, for example when the host rebuilt its engine or the machine woke from sleep. It now keeps showing your setting, dimmed, until the connection is back, and reconnects in about half a second instead of three
16
+ - The host keeps the status connection alive with a small heartbeat, so proxies and security software are less likely to cut it while idle
17
+ - For a subagent, the button shows the mode it inherits from its main conversation
18
+ - The control is much smaller: one round ∞ button to turn it on or off, plus a small arrow for the mode menu. The mode name moved into the menu and the tooltip. The ∞ also replaces the borrowed refresh icon, which looked like "start over"
19
+
20
+ ## Russian
21
+
22
+ Contributed in [#84](https://github.com/HsiangNianian/dsh-auto-continue/pull/84). With a `ru` or `ru-*` locale, the settings page, composer menu, notifications and the built-in continue, guard and loop texts are in Russian. If you use the default texts, the model now gets `Продолжай` instead of `Continue`
23
+
24
+ ## Subagent recovery (opt-in)
25
+
26
+ Also from [#84](https://github.com/HsiangNianian/dsh-auto-continue/pull/84). **Resume subagent sessions** (`resumeSubagentSessions`, off by default) resumes a failed, cut-off or silent subagent while it is still loaded, using the main conversation's mode and its own retry budget
27
+
28
+ - Pausing or turning off the main conversation also stops its subagents
29
+ - Subagents still never run the autonomous loop, are never restarted by the loop guard, and aren't picked up by the startup scan
30
+ - It's off by default because DSH 0.2.2 usually closes a background subagent the moment it fails and tells the parent instead, so in most setups there's nothing left to resume. Turn it on if your subagents stay loaded, for example team members with work still running
31
+ - This doesn't replace **Wake child sessions after restart** from 0.18.0. The two work independently
32
+
33
+ ## Docs
34
+
35
+ - The README is reorganized so install, session modes and settings come first, with settings grouped into tables
36
+ - New Russian README (`README.ru.md`), alongside English and Chinese
37
+ - Russian banner, demo and workflow map
38
+
39
+ ## Upgrade
40
+
41
+ Let current work finish, stop DSH, then update the profile you use
42
+
43
+ ```bash
44
+ dsh plugin --profile web add dsh-client-auto-continue@0.19.0
45
+ dsh web
46
+ ```
47
+
48
+ Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
49
+
50
+ - Reload open browser tabs after restarting so the new composer control loads
51
+ - Existing settings, session modes and pauses stay as they were. The only new setting is off by default
52
+
53
+ ## Validation
54
+
55
+ - Typecheck, build (committed `lib/` reproduces byte for byte), the full regression suite and the DSH runtime compatibility tests for `0.1.7`, `0.2.0`, `0.2.0-rc.2`, `0.2.1`, `0.2.1-rc.2` and `0.2.2-rc.1`
56
+ - Real process restart against DSH `0.2.1-rc.2` and `0.2.2-rc.1`, both after SIGKILL and after a clean shutdown. The clean-shutdown case fails on 0.18.0 and passes now
57
+ - Composer tests cover keeping the last known state during a disconnect and refusing to save until the connection is back
58
+ - Subagent recovery is covered with simulated hosts: inherited modes, parent pause and Off, nested lineage, fork lineage, and the off-by-default path
59
+
60
+ Thanks @palxex for tracking down the 0.2.2 regression, @kesha4 for subagent recovery and the Russian translation, and @simon333888 for the very detailed composer report
61
+
62
+ **Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.18.0...v0.19.0
@@ -0,0 +1,46 @@
1
+ Failed subagents can now actually be resumed: the plugin brings the child back from its saved session instead of finding it already gone
2
+
3
+ ## Cold resume for failed subagents
4
+
5
+ Contributed by @kesha4 in [#90](https://github.com/HsiangNianian/dsh-auto-continue/pull/90). This only applies with **Resume subagent sessions** (`resumeSubagentSessions`) turned on, which is still off by default
6
+
7
+ In 0.19.0 that setting rarely did anything: DSH closes a background subagent the moment one of its turns fails, so by the time the plugin wanted to send "continue", there was no subagent left to send it to
8
+
9
+ Now, when the child is already closed, the plugin asks DSH's subagent service to reopen it from its saved session and gives the continue message to the child itself
10
+
11
+ - The child uses its own cooldown and retry limit, the same as a live resume
12
+ - The main conversation is not woken up for this
13
+ - **Resume now** in a notification also works for a closed child
14
+
15
+ If DSH can't reopen the child (no saved session, the main conversation isn't loaded, or an older DSH without the service), the plugin tells the main conversation instead, with one short message per child at most every five minutes
16
+
17
+ - If the main conversation isn't loaded, the message waits until it is
18
+ - If the main conversation is busy recovering itself, the plugin stays quiet, since any new message would cancel that recovery. DSH already tells it which child failed
19
+
20
+ The hand-off goes in like any other continue message. It follows **Send continue messages with plugin source** and doesn't count as you typing, so it never resets the main conversation's retry or loop counters
21
+
22
+ ## Upgrade
23
+
24
+ Let current work finish, stop DSH, then update the profile you use
25
+
26
+ ```bash
27
+ dsh plugin --profile web add dsh-client-auto-continue@0.20.0
28
+ dsh web
29
+ ```
30
+
31
+ Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
32
+
33
+ - Reload open browser tabs after restarting
34
+ - No setting changed. If **Resume subagent sessions** is off, nothing behaves differently
35
+
36
+ ## Validation
37
+
38
+ - Typecheck, build (committed `lib/` reproduces byte for byte), the full regression suite and the DSH runtime compatibility tests for `0.1.7`, `0.2.0`, `0.2.0-rc.2`, `0.2.1`, `0.2.1-rc.2` and `0.2.2-rc.1`
39
+ - Simulated hosts cover a successful cold resume, falling back to the hand-off when resume fails, no duplicate requests while one is in flight, Resume now on a closed child, waiting for an unloaded main conversation, staying quiet while it recovers, and the hand-off's message source
40
+ - @kesha4 checked it on a real host with the network cut: the failed child was reopened from its saved session, got the continue message, and eventually finished its task
41
+
42
+ The cold resume uses DSH's subagent control interface (`subagents.prompt`), which isn't a documented plugin API yet. The plugin checks it's there before calling it, and any error falls back to the hand-off
43
+
44
+ Thanks @kesha4 for building and live-testing this
45
+
46
+ **Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.19.0...v0.20.0
Binary file
@@ -1 +1,30 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="1280" height="640" font-family="system-ui, -apple-system, 'Segoe UI', sans-serif" viewBox="0 0 1280 640"><defs><linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop offset="0%" stop-color="#0b1220"/><stop offset="55%" stop-color="#0c2336"/><stop offset="100%" stop-color="#101a30"/></linearGradient><linearGradient id="glow" x1="0" x2="1" y1="0" y2="0"><stop offset="0%" stop-color="#38bdf8" stop-opacity=".16"/><stop offset="100%" stop-color="#818cf8" stop-opacity=".16"/></linearGradient><linearGradient id="bar" x1="0" x2="1" y1="0" y2="0"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient><linearGradient id="chip" x1="0" x2="0" y1="0" y2="1"><stop offset="0%" stop-color="#f8fafc"/><stop offset="100%" stop-color="#e2e8f0"/></linearGradient></defs><rect width="1280" height="640" fill="url(#bg)"/><rect width="1280" height="300" x="0" y="0" fill="url(#glow)"/><rect width="250" height="180" x="88" y="120" fill="url(#chip)" rx="40"/><text x="213" y="226" fill="#0f172a" font-size="64" font-weight="800" text-anchor="middle">Continue</text><text x="400" y="200" fill="#f8fafc" font-size="76" font-weight="800">dsh-auto-continue</text><text x="402" y="258" fill="#94a3b8" font-size="32">DSH Web UI plugin — auto-continue interrupted requests</text><text x="402" y="316" fill="#7dd3fc" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="24">turn/end · error | interrupted | max-tokens → prompt(&quot;Continue&quot;)</text><rect width="250" height="56" x="402" y="368" fill="#1e293b" stroke="#334155" rx="28"/><text x="527" y="403" fill="#e2e8f0" font-size="22" text-anchor="middle">auto-resume on failure</text><rect width="264" height="56" x="668" y="368" fill="#1e293b" stroke="#334155" rx="28"/><text x="800" y="403" fill="#e2e8f0" font-size="22" text-anchor="middle">GUI-configurable settings</text><rect width="240" height="56" x="948" y="368" fill="#1e293b" stroke="#334155" rx="28"/><text x="1068" y="403" fill="#e2e8f0" font-size="22" text-anchor="middle">dsh plugin add</text><text x="402" y="500" fill="#64748b" font-size="26">github.com/HsiangNianian/dsh-auto-continue</text><rect width="1280" height="12" x="0" y="628" fill="url(#bar)"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1280" height="640" viewBox="0 0 1280 640" role="img" lang="en" aria-labelledby="title">
2
+ <title id="title">dsh-auto-continue: recover interrupted DeepSeek Harness sessions</title>
3
+ <style>
4
+ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
5
+ </style>
6
+ <rect width="1280" height="640" fill="#141414"/>
7
+ <rect x="96" y="128" width="168" height="168" rx="42" fill="#23262c"/>
8
+ <g transform="translate(120 150) scale(1.9)">
9
+ <path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round"/>
10
+ <path d="M49 6v12H37" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
11
+ <path d="M27 22l16 10-16 10Z" fill="#f4f4f5" stroke="#f4f4f5" stroke-width="2" stroke-linejoin="round"/>
12
+ </g>
13
+ <text x="320" y="160" fill="#b9bec8" font-size="22" letter-spacing="2.4">DEEPSEEK HARNESS PLUGIN</text>
14
+ <text x="316" y="240" fill="#f4f4f5" font-size="74" font-weight="650" letter-spacing="-2">dsh-auto-continue</text>
15
+ <text x="320" y="300" fill="#b9bec8" font-size="32">Recover interrupted sessions, at your own pace.</text>
16
+ <g font-size="22" fill="#f4f4f5">
17
+ <rect x="320" y="356" width="214" height="50" rx="25" fill="none" stroke="#37393e" stroke-width="2"/>
18
+ <text x="427" y="389" text-anchor="middle">Error recovery</text>
19
+ <rect x="550" y="356" width="214" height="50" rx="25" fill="none" stroke="#37393e" stroke-width="2"/>
20
+ <text x="657" y="389" text-anchor="middle">Startup scan</text>
21
+ <rect x="780" y="356" width="250" height="50" rx="25" fill="none" stroke="#37393e" stroke-width="2"/>
22
+ <text x="905" y="389" text-anchor="middle">Autonomous loop</text>
23
+ </g>
24
+ <path d="M96 520H1184" stroke="#37393e" stroke-width="2"/>
25
+ <text x="96" y="572" fill="#b9bec8" font-size="24">github.com/HsiangNianian/dsh-auto-continue</text>
26
+ <g fill="none" stroke="#b9bec8" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
27
+ <path d="M884 564h60m16 0h4m16 0h4m16 0h168"/>
28
+ <path d="m1172 556 12 8-12 8"/>
29
+ </g>
30
+ </svg>