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.
- package/CHANGELOG.md +47 -0
- package/README.md +230 -281
- package/README.ru.md +382 -0
- package/README.zh.md +229 -279
- package/docs/auto-continue-workflow.archify.json +3 -3
- package/docs/auto-continue-workflow.en.archify.json +3 -3
- package/docs/auto-continue-workflow.en.html +1 -1
- package/docs/auto-continue-workflow.html +1 -1
- package/docs/auto-continue-workflow.ru.svg +530 -0
- package/docs/banner-ru-dark.svg +38 -0
- package/docs/banner-ru.svg +38 -0
- package/docs/demo-ru-static.svg +115 -0
- package/docs/demo-ru.svg +147 -0
- package/docs/releases/v0.18.0.md +58 -0
- package/docs/releases/v0.19.0.md +62 -0
- package/docs/social-preview.png +0 -0
- package/docs/social-preview.svg +30 -1
- package/lib/client.js +347 -100
- package/lib/client.js.map +3 -3
- package/lib/index.js +790 -49
- package/lib/types/client/auto-continue-icon.d.ts +7 -0
- package/lib/types/client/bridge.d.ts +2 -0
- package/lib/types/client/composer-toggle.d.ts +2 -0
- package/lib/types/client/locales.d.ts +19 -0
- package/lib/types/client/settings-card.d.ts +8 -0
- package/lib/types/host/connectivity.d.ts +4 -0
- package/lib/types/host/engine.d.ts +97 -5
- package/lib/types/index.d.ts +64 -0
- package/lib/types/shared/core.d.ts +54 -1
- package/locale/ru.json +6 -0
- package/package.json +6 -4
- package/scripts/build-docs-assets.mjs +126 -0
- package/src/client/auto-continue-icon.tsx +6 -27
- package/src/client/bridge.ts +26 -6
- package/src/client/composer-toggle.tsx +22 -11
- package/src/client/index.ts +5 -1
- package/src/client/locales.ts +241 -38
- package/src/client/settings-card.tsx +31 -4
- package/src/client/settings-notifications.ts +3 -2
- package/src/client/styles.ts +17 -19
- package/src/host/connectivity.ts +54 -0
- package/src/host/engine.ts +852 -40
- package/src/host/settings-migration.ts +1 -1
- package/src/index.ts +26 -1
- package/src/shared/core.ts +94 -3
|
@@ -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>
|
package/docs/demo-ru.svg
ADDED
|
@@ -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,58 @@
|
|
|
1
|
+
Network outages no longer burn through the retry budget, the autonomous loop can be capped, and restarts can now hand interrupted subagent work back to its parent
|
|
2
|
+
|
|
3
|
+
## Offline hold
|
|
4
|
+
|
|
5
|
+
Requested in [#81](https://github.com/HsiangNianian/dsh-auto-continue/issues/81). Previously a dropped connection used up every retry in a few minutes, and nothing continued once the network came back
|
|
6
|
+
|
|
7
|
+
- Before retrying a network failure (`TRANSPORT`, `TIMEOUT`, DNS or connection errors), the host checks it is online: a non-loopback interface plus one resolvable public name, DNS only, no requests
|
|
8
|
+
- While offline the retry waits and re-checks every `offlineCheckMs` (15s) without using up **Max consecutive**, then continues through the normal grace period and cooldown
|
|
9
|
+
- Server errors (5xx, 429) are not held. A message from you, a new turn, a pause or switching the session off cancels the hold
|
|
10
|
+
- With `HTTP(S)_PROXY` / `ALL_PROXY` set, only interfaces are checked, so a proxy-only network is never mistaken for offline
|
|
11
|
+
- On by default (`pauseWhenOffline`); turn it off in **Retry strategy** to keep the old behavior
|
|
12
|
+
|
|
13
|
+
## Autonomous loop round limit
|
|
14
|
+
|
|
15
|
+
Also from [#81](https://github.com/HsiangNianian/dsh-auto-continue/issues/81)
|
|
16
|
+
|
|
17
|
+
- `loopMaxIterations` caps autonomous rounds per session; `0` (the default) means no limit
|
|
18
|
+
- When reached, the loop stops and reports it once: a log line, plus a browser notification when notifications are on
|
|
19
|
+
- Sending a message yourself or turning the loop back on starts the count over
|
|
20
|
+
|
|
21
|
+
## Child sessions and goals after a restart
|
|
22
|
+
|
|
23
|
+
Requested in [#77](https://github.com/HsiangNianian/dsh-auto-continue/issues/77) and contributed in [#80](https://github.com/HsiangNianian/dsh-auto-continue/pull/80). All three switches are off by default
|
|
24
|
+
|
|
25
|
+
- **Wake child sessions after restart** (`resumeInterruptedChildren`): when the startup scan finds subagent or team-member sessions a restart cut off, their root session gets one message listing them, so the parent decides what to continue. Children are still never resumed directly, parents you stopped yourself are never woken, and only interruptions inside the scan window (`freshMs`) count
|
|
26
|
+
- **Re-arm goals disarmed by a restart** (`resumeGoals`): after an auto-continue send, re-arm an `active` goal the host disarmed, so its continuation rounds run again. This authorizes on your behalf, hence opt-in
|
|
27
|
+
- **Resume paused goals** (`resumePausedGoals`): also resume goals you paused by hand; needs `resumeGoals`
|
|
28
|
+
|
|
29
|
+
## Plugin message source
|
|
30
|
+
|
|
31
|
+
From [#79](https://github.com/HsiangNianian/dsh-auto-continue/pull/79): **Send continue messages with plugin source** (`usePluginSource`, off by default) marks continue prompts as `plugin:dsh-client-auto-continue` instead of `user`. Echo matching accepts both
|
|
32
|
+
|
|
33
|
+
## Upgrade
|
|
34
|
+
|
|
35
|
+
Let current work finish, stop DSH, then update the profile you use
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.18.0
|
|
39
|
+
dsh web
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
|
|
43
|
+
|
|
44
|
+
- Reload open browser tabs after restarting so the settings page shows the new fields
|
|
45
|
+
- Existing settings, session modes and pauses stay in place. The offline hold is the only new behavior that is on by default
|
|
46
|
+
|
|
47
|
+
## Validation
|
|
48
|
+
|
|
49
|
+
- Typecheck, build, 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` and `0.2.1-rc.2`
|
|
50
|
+
- DSH `0.2.2-rc.1` (latest): settings, profile compatibility, client settings services, startup scan and a real process restart recovering an unopened JSONL session with its original model
|
|
51
|
+
- The goal integration was checked against the `dsh-goal` 0.2.2-rc.1 `GoalView` / `resume(agent, { id, revision })` contract
|
|
52
|
+
- New offline / loop-cap suite fakes DNS and network interfaces; the existing recovery suites were also run with DNS forced to fail to confirm none depend on the real network
|
|
53
|
+
|
|
54
|
+
Runtime tests use controlled agent events and a deterministic model fixture, with no calls to an external model provider
|
|
55
|
+
|
|
56
|
+
Thanks @xiuchuan666, @loyalchiiina and @fu050409
|
|
57
|
+
|
|
58
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.17.4...v0.18.0
|
|
@@ -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
|
package/docs/social-preview.png
CHANGED
|
Binary file
|
package/docs/social-preview.svg
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="640"
|
|
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>
|