dsh-client-auto-continue 0.13.0 → 0.14.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.
- package/README.md +29 -22
- package/README.zh.md +29 -22
- package/docs/banner-dark.svg +38 -1
- package/docs/banner-zh-dark.svg +38 -1
- package/docs/banner-zh.svg +38 -1
- package/docs/banner.svg +38 -1
- package/docs/demo-static.svg +115 -0
- package/docs/demo-zh-static.svg +115 -0
- package/docs/demo-zh.svg +147 -1
- package/docs/demo.svg +147 -1
- package/docs/screenshots/01-settings-section.png +0 -0
- package/docs/screenshots/01-settings-section.zh.png +0 -0
- package/docs/screenshots/02-settings-card.png +0 -0
- package/docs/screenshots/02-settings-card.zh.png +0 -0
- package/docs/screenshots/07-card-panels.png +0 -0
- package/docs/screenshots/07-card-panels.zh.png +0 -0
- package/docs/screenshots/08-composer-toggle.png +0 -0
- package/docs/screenshots/08-composer-toggle.zh.png +0 -0
- package/docs/screenshots/README.md +26 -27
- package/lib/client.js +363 -1110
- package/lib/client.js.map +3 -3
- package/lib/types/client/locales.d.ts +25 -15
- package/lib/types/client/settings-card.d.ts +12 -7
- package/lib/types/client/settings-form.d.ts +2 -2
- package/lib/types/client/settings-notifications.d.ts +8 -0
- package/package.json +2 -2
- package/src/client/index.ts +1 -1
- package/src/client/locales.ts +62 -42
- package/src/client/settings-card.tsx +124 -645
- package/src/client/settings-form.ts +15 -9
- package/src/client/settings-notifications.ts +42 -0
- package/src/client/styles.ts +110 -382
|
@@ -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="zh" aria-labelledby="title description">
|
|
2
|
+
<title id="title">自动继续:中断恢复演示</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(212px, 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 s</text>
|
|
47
|
+
<text class="status countdown count-2" x="898" y="287">等待重试 · 2 s</text>
|
|
48
|
+
<text class="status countdown count-1" x="898" y="287">等待重试 · 1 s</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="796" 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(176 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 12H150" 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 12H150" 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 12H150" 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 12H150" 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-zh.svg
CHANGED
|
@@ -1 +1,147 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="660" viewBox="0 0 960 660" role="img" lang="zh" aria-labelledby="title description">
|
|
2
|
+
<title id="title">自动继续:中断恢复演示</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(212px, 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 s</text>
|
|
79
|
+
<text class="status countdown count-2" x="898" y="287">等待重试 · 2 s</text>
|
|
80
|
+
<text class="status countdown count-1" x="898" y="287">等待重试 · 1 s</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="796" 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(176 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 12H150" 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 12H150" 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 12H150" 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 12H150" 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>
|
package/docs/demo.svg
CHANGED
|
@@ -1 +1,147 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="660" viewBox="0 0 960 660" role="img" lang="en" aria-labelledby="title description">
|
|
2
|
+
<title id="title">Auto-continue: interruption recovery demo</title>
|
|
3
|
+
<desc id="description">Illustrated example: a network error interrupts the assistant. After a 3-second grace period, the plugin sends Continue and the assistant resumes work. The auto-continue switch beside the composer stays on. Reduced motion shows the complete sequence as a still image.</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">Auto-continue</text>
|
|
60
|
+
<text class="annotation" x="920" y="42" fill="#b9bec8" font-size="14" text-anchor="end" letter-spacing=".7">RECOVERY DEMO</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">Refactor this function.</text>
|
|
65
|
+
<text class="body compact" x="426" y="132" fill="#f4f4f5">Refactor this function.</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">I’ll separate validation from the update.</text>
|
|
68
|
+
<text class="body compact" x="40" y="231" fill="#c4c7ce">Refactoring the function…</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">Network interrupted</text>
|
|
77
|
+
<g fill="#d7d9de" font-size="20" text-anchor="end">
|
|
78
|
+
<text class="status countdown count-3" x="898" y="287">Waiting to retry · 3 s</text>
|
|
79
|
+
<text class="status countdown count-2" x="898" y="287">Waiting to retry · 2 s</text>
|
|
80
|
+
<text class="status countdown count-1" x="898" y="287">Waiting to retry · 1 s</text>
|
|
81
|
+
<text class="status state-result" x="898" y="287">Resumed</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">Sent automatically</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">Continue</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">Picking up where I left off.</text>
|
|
94
|
+
<text class="body compact" x="40" y="451" fill="#f4f4f5">Picking up where I left off.</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">Message the agent…</text>
|
|
99
|
+
<text class="body compact" x="61" y="516" fill="#b5b5bd">Send a message…</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">Auto-continue</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">Working</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">Working</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">Waiting</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">Waiting</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">Continue</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">Continue</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">Resumed</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">Resumed</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">Illustrated example · Default 3-second grace period</text>
|
|
146
|
+
<text class="footnote compact" x="40" y="642" fill="#a1a4ad" font-size="24">Example · 3-second grace</text>
|
|
147
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
# Configuration and composer screenshots
|
|
2
2
|
|
|
3
|
-
Captured on 2026-10-06
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
with no user sessions or API keys.
|
|
3
|
+
Captured on 2026-10-06 with **DSH 0.2.1-alpha.1** and **plugin 0.14.0**,
|
|
4
|
+
using Chromium and DSH's dark theme.
|
|
5
|
+
The capture uses an isolated `DSH_HOME` with no API keys or user conversations.
|
|
7
6
|
|
|
8
7
|
| View | English | Chinese | Viewport |
|
|
9
8
|
| --- | --- | --- | --- |
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
| Native composer switch | [08-composer-toggle.png](08-composer-toggle.png) | [08-composer-toggle.zh.png](08-composer-toggle.zh.png) | 1440 × 900, cropped to the
|
|
9
|
+
| General category and the inline GitHub invitation | [01-settings-section.png](01-settings-section.png) | [01-settings-section.zh.png](01-settings-section.zh.png) | 1440 × 1100 |
|
|
10
|
+
| Retry strategy category | [02-settings-card.png](02-settings-card.png) | [02-settings-card.zh.png](02-settings-card.zh.png) | 1440 × 1400 |
|
|
11
|
+
| Status and logs, Save / Discard controls | [07-card-panels.png](07-card-panels.png) | [07-card-panels.zh.png](07-card-panels.zh.png) | 1440 × 1100 |
|
|
12
|
+
| Native composer switch | [08-composer-toggle.png](08-composer-toggle.png) | [08-composer-toggle.zh.png](08-composer-toggle.zh.png) | 1440 × 900, cropped to the composer |
|
|
14
13
|
|
|
15
|
-
To refresh
|
|
16
|
-
an empty DSH home and install the released plugin:
|
|
14
|
+
To refresh, build the checked-out code and install it in an empty DSH profile:
|
|
17
15
|
|
|
18
16
|
```bash
|
|
17
|
+
npm run build
|
|
19
18
|
capture_home="$(mktemp -d)"
|
|
20
|
-
DSH_HOME="$capture_home" dsh plugin --profile web add
|
|
19
|
+
DSH_HOME="$capture_home" dsh plugin --profile web add "file:$PWD"
|
|
21
20
|
DSH_HOME="$capture_home" dsh web --no-open
|
|
22
21
|
```
|
|
23
22
|
|
|
24
|
-
Open the authenticated URL printed by DSH without including
|
|
25
|
-
screenshot. Dismiss onboarding, select the dark theme, and
|
|
26
|
-
|
|
23
|
+
Open the authenticated URL printed by DSH without including its token in any
|
|
24
|
+
screenshot. Dismiss onboarding, select the dark theme, and open **Plugins →
|
|
25
|
+
dsh-client-auto-continue** from the sidebar. Capture **General**, **Retry strategy**,
|
|
26
|
+
and **Status and logs**. The repository invitation should stay beside the plugin
|
|
27
|
+
introduction on one continuous charcoal background, with their vertical centers aligned. There is no collapsed card or
|
|
28
|
+
prototype selector in the finished UI.
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
before repeating the captures. Use device scale factor 1 and the viewports
|
|
33
|
-
above; keep the UI content unchanged.
|
|
30
|
+
For the composer view, open a new session without sending a message and crop to
|
|
31
|
+
the message input and controls. Use a fresh browser context with an English or
|
|
32
|
+
Chinese locale (or change **Settings → General → Language**) and repeat the captures.
|
|
33
|
+
Use device scale factor 1. Do not fabricate activity for the statistics panel.
|
|
34
34
|
|
|
35
|
-
Before capture, verify
|
|
36
|
-
|
|
37
|
-
it
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
light theme and at a narrow viewport (393 × 852).
|
|
35
|
+
Before capture, verify the composer switch updates another open tab and persists
|
|
36
|
+
after reload. Changing its visibility in **General** must remain staged until
|
|
37
|
+
Save; hiding it must not change `paused`. Restore both overrides to inherited
|
|
38
|
+
values. Verify that navigation preserves drafts, errors in hidden categories are
|
|
39
|
+
marked, and read-only settings cannot be edited. Also check light theme and a
|
|
40
|
+
393 × 852 viewport: the repository entry condenses and stays beside the introduction.
|