dsh-client-auto-continue 0.14.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 +7 -2
- package/README.zh.md +7 -2
- 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/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,12 @@
|
|
|
35
35
|
|
|
36
36
|
Automatic recovery for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), in the Web UI and desktop app. When a recoverable failure interrupts a session, the plugin sends your configured continuation prompt through DSH. The engine runs **inside the host process**, so it keeps watching while browser tabs are closed; all tabs share that engine. Recovery is enabled by default. Continuing after successful turns is a separate, **opt-in autonomous loop**.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
<p align="center">
|
|
39
|
+
<picture>
|
|
40
|
+
<source media="(prefers-reduced-motion: reduce)" srcset="docs/demo-static.svg">
|
|
41
|
+
<img src="docs/demo.svg" alt="Recovery demo: a network interruption, a 3-second wait, an automatic Continue message, and resumed work." width="720">
|
|
42
|
+
</picture>
|
|
43
|
+
</p>
|
|
39
44
|
|
|
40
45
|
**Smart recovery** (all configurable):
|
|
41
46
|
|
|
@@ -91,7 +96,7 @@ DSH plugins install into a **profile** (`dsh web` → `web` profile). The comman
|
|
|
91
96
|
|
|
92
97
|
| DSH runtime | Plugin version | Configuration entry point |
|
|
93
98
|
| --- | --- | --- |
|
|
94
|
-
| **0.2.1-alpha.1** | **0.14.
|
|
99
|
+
| **0.2.1-alpha.1** | **0.14.1 verified** | **Plugins → dsh-client-auto-continue** |
|
|
95
100
|
| **0.2.0-rc.1** | **0.12.1 or newer** | **Plugins → dsh-client-auto-continue** |
|
|
96
101
|
| **0.1.7-rc.2** | **0.11.9 or newer** | Same Plugins page |
|
|
97
102
|
| Older hosts with the legacy settings API | Legacy UI retained | **Settings → Plugins → Plugin configuration** |
|
package/README.zh.md
CHANGED
|
@@ -35,7 +35,12 @@
|
|
|
35
35
|
|
|
36
36
|
为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的 Web 界面和桌面应用提供自动恢复。会话因可恢复错误中断时,插件通过 DSH 发送你配置的继续提示。引擎运行在**宿主进程**中,浏览器标签页关闭后仍会工作,多个标签页共享同一个引擎。默认开启中断恢复;成功回合后也继续工作的**自主循环需要手动开启**。
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
<p align="center">
|
|
39
|
+
<picture>
|
|
40
|
+
<source media="(prefers-reduced-motion: reduce)" srcset="docs/demo-zh-static.svg">
|
|
41
|
+
<img src="docs/demo-zh.svg" alt="自动恢复示意:网络中断后等待 3 秒,自动发送继续,助手恢复工作。" width="720">
|
|
42
|
+
</picture>
|
|
43
|
+
</p>
|
|
39
44
|
|
|
40
45
|
**智能恢复**(全部可配置):
|
|
41
46
|
|
|
@@ -91,7 +96,7 @@ DSH 插件安装进 **profile**(`dsh web` 对应 `web` profile)。下面的命
|
|
|
91
96
|
|
|
92
97
|
| DSH 内核 | 插件版本 | 配置入口 |
|
|
93
98
|
| --- | --- | --- |
|
|
94
|
-
| **0.2.1-alpha.1** | **已验证 0.14.
|
|
99
|
+
| **0.2.1-alpha.1** | **已验证 0.14.1** | **插件 → dsh-client-auto-continue** |
|
|
95
100
|
| **0.2.0-rc.1** | **0.12.1 或更新版本** | **插件 → dsh-client-auto-continue** |
|
|
96
101
|
| **0.1.7-rc.2** | **0.11.9 或更新版本** | 同上,从主侧栏的插件页进入 |
|
|
97
102
|
| 使用旧设置 API 的宿主 | 保留旧版设置界面兼容 | **设置 → 插件 → 插件配置** |
|
package/docs/banner-dark.svg
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="en" aria-labelledby="title description">
|
|
2
|
+
<title id="title">dsh-auto-continue</title>
|
|
3
|
+
<desc id="description">A DeepSeek Harness plugin by HsiangNianian. Recover interrupted sessions, at your own pace.</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">Recover interrupted sessions, at your own pace.</text>
|
|
29
|
+
<text class="tagline compact" x="188" y="163" fill="#b9bec8">Interrupted? Keep going.</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>
|
package/docs/banner-zh-dark.svg
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="zh" aria-labelledby="title description">
|
|
2
|
+
<title id="title">dsh-auto-continue</title>
|
|
3
|
+
<desc id="description">HsiangNianian 的 DeepSeek Harness 插件。恢复意外中断的会话,按你的节奏继续。</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>
|
package/docs/banner-zh.svg
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="zh" aria-labelledby="title description">
|
|
2
|
+
<title id="title">dsh-auto-continue</title>
|
|
3
|
+
<desc id="description">HsiangNianian 的 DeepSeek Harness 插件。恢复意外中断的会话,按你的节奏继续。</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>
|
package/docs/banner.svg
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="en" aria-labelledby="title description">
|
|
2
|
+
<title id="title">dsh-auto-continue</title>
|
|
3
|
+
<desc id="description">A DeepSeek Harness plugin by HsiangNianian. Recover interrupted sessions, at your own pace.</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">Recover interrupted sessions, at your own pace.</text>
|
|
29
|
+
<text class="tagline compact" x="188" y="163" fill="#545961">Interrupted? Keep going.</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="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, .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">Auto-continue</text>
|
|
28
|
+
<text class="annotation" x="920" y="42" fill="#b9bec8" font-size="14" text-anchor="end" letter-spacing=".7">RECOVERY DEMO</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">Refactor this function.</text>
|
|
33
|
+
<text class="body compact" x="426" y="132" fill="#f4f4f5">Refactor this function.</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">I’ll separate validation from the update.</text>
|
|
36
|
+
<text class="body compact" x="40" y="231" fill="#c4c7ce">Refactoring the function…</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">Network interrupted</text>
|
|
45
|
+
<g fill="#d7d9de" font-size="20" text-anchor="end">
|
|
46
|
+
<text class="status countdown count-3" x="898" y="287">Waiting to retry · 3 s</text>
|
|
47
|
+
<text class="status countdown count-2" x="898" y="287">Waiting to retry · 2 s</text>
|
|
48
|
+
<text class="status countdown count-1" x="898" y="287">Waiting to retry · 1 s</text>
|
|
49
|
+
<text class="status state-result" x="898" y="287">Resumed</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">Sent automatically</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">Continue</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">Picking up where I left off.</text>
|
|
62
|
+
<text class="body compact" x="40" y="451" fill="#f4f4f5">Picking up where I left off.</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">Message the agent…</text>
|
|
67
|
+
<text class="body compact" x="61" y="516" fill="#b5b5bd">Send a message…</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">Auto-continue</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">Working</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">Working</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">Waiting</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">Waiting</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">Continue</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">Continue</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">Resumed</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">Resumed</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">Illustrated example · Default 3-second grace period</text>
|
|
114
|
+
<text class="footnote compact" x="40" y="642" fill="#a1a4ad" font-size="24">Example · 3-second grace</text>
|
|
115
|
+
</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="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>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-client-auto-continue",
|
|
3
3
|
"description": "DSH Web UI plugin: automatically sends a localized continue prompt when a request is interrupted by network errors or other non-human causes",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|