dsh-question-timeout-protection 0.0.0-stage → 0.1.2
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/COPYRIGHT +10 -0
- package/LICENSE +201 -0
- package/README.md +268 -2
- package/README_en-US.md +269 -0
- package/cordis.patch.yml +4 -0
- package/dist/client.js +2149 -0
- package/dist/index.d.mts +76 -0
- package/dist/index.mjs +1095 -0
- package/package.json +99 -4
- package/src/translation/.example_zh-CN.ini +43 -0
- package/src/translation/en-US.ini +43 -0
- package/src/translation/zh-CN.ini +43 -0
package/package.json
CHANGED
|
@@ -1,6 +1,101 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-question-timeout-protection",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "dsh提问超时保护插件: 一旦模型提问超时,将你的回答草稿保留在UI或上下文中,而不是直接丢弃。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": "JularDepick",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/JularDepick/dsh-question-timeout-protection.git"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=20",
|
|
14
|
+
"dsh": ">=0.2.1-rc.1 <=0.2.2-rc.2"
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.mts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"default": "./dist/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./client": {
|
|
24
|
+
"default": "./dist/client.js"
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"COPYRIGHT",
|
|
34
|
+
"cordis.patch.yml",
|
|
35
|
+
"src/translation/*.ini",
|
|
36
|
+
"src/translation/.example_zh-CN.ini",
|
|
37
|
+
"README*"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsdown",
|
|
41
|
+
"dev": "tsdown --watch",
|
|
42
|
+
"pack:release": "node scripts/check-translation.mjs && tsdown && pnpm pack --ignore-scripts && node scripts/pack-release.mjs --strict",
|
|
43
|
+
"prepare": "node scripts/check-translation.mjs && tsdown",
|
|
44
|
+
"prepack": "node scripts/check-translation.mjs && tsdown",
|
|
45
|
+
"postpack": "node scripts/pack-release.mjs",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"check:translation": "node scripts/check-translation.mjs"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@deepseek-ai/schemastery": "^3.19.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@deepseek-ai/cordis": "~4.0.5 || ~4.1.0",
|
|
54
|
+
"@deepseek-ai/dsh-agent": ">=0.2.1-rc.1 <=0.2.2-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-tools": ">=0.2.1-rc.1 <=0.2.2-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-user-questions": ">=0.2.1-rc.1 <=0.2.2-rc.2"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
60
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-rc.2",
|
|
71
|
+
"@types/node": "^26.2.0",
|
|
72
|
+
"@types/react": "^18.3.31",
|
|
73
|
+
"react": "^18.2.0",
|
|
74
|
+
"tsdown": "^0.22.14",
|
|
75
|
+
"typescript": "^5.9.0"
|
|
76
|
+
},
|
|
77
|
+
"dsh": {
|
|
78
|
+
"bundle": {
|
|
79
|
+
"patch": "./cordis.patch.yml"
|
|
80
|
+
},
|
|
81
|
+
"client": {
|
|
82
|
+
"platform": "web",
|
|
83
|
+
"inject": [
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
86
|
+
"@deepseek-ai/dsh-client-locale"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"homepage": "https://github.com/JularDepick/dsh-question-timeout-protection#readme",
|
|
91
|
+
"bugs": {
|
|
92
|
+
"url": "https://github.com/JularDepick/dsh-question-timeout-protection/issues"
|
|
93
|
+
},
|
|
94
|
+
"keywords": [
|
|
95
|
+
"dsh",
|
|
96
|
+
"dsh-plugin",
|
|
97
|
+
"question",
|
|
98
|
+
"timeout",
|
|
99
|
+
"countdown"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[meta]
|
|
2
|
+
for=v0.1.2
|
|
3
|
+
lang=zh-CN
|
|
4
|
+
name=简体中文
|
|
5
|
+
endtime=2026-11-12 18:50:00+08:00
|
|
6
|
+
|
|
7
|
+
[translation]
|
|
8
|
+
settings.settingsSummary=提问超时保护
|
|
9
|
+
settings.fallbackSection=超时兜底
|
|
10
|
+
settings.fallbackNote=提问超时后如何处理已经输入的内容
|
|
11
|
+
settings.injectLabel=注入到上下文
|
|
12
|
+
settings.injectDesc=超时前把草稿快照交给服务端, 到期时随工具结果按题带回模型上下文, 由模型自行决定是否重新提问
|
|
13
|
+
settings.fixedSection=固定特性
|
|
14
|
+
settings.fixedNote=随插件启用状态生效, 不可单独关闭
|
|
15
|
+
settings.fixedKeepLabel=界面保留草稿
|
|
16
|
+
settings.fixedKeepDesc=超时后把已选选项与已输入内容记入提问气泡, 可在气泡里只读查看
|
|
17
|
+
settings.cardEnhancementsLabel=卡片增强
|
|
18
|
+
settings.cardEnhancementsDesc=右上角倒计时与警示闪烁, 单选选项的方形标号填充底色, 提问标识气泡; 只影响界面装饰
|
|
19
|
+
settings.infiniteWaitLabel=无限等待
|
|
20
|
+
settings.infiniteWaitDesc=倒计时右侧新增「无限等待」按钮, 点击后本次问答倒计时暂停, 直到用户提交
|
|
21
|
+
settings.draftFallbackLabel=超时草稿兜底
|
|
22
|
+
settings.draftFallbackDesc=超时后按上面的兜底范围处理已输入的内容
|
|
23
|
+
settings.rejected=保存被拒绝, 已重新读取宿主配置
|
|
24
|
+
settings.loading=正在读取配置
|
|
25
|
+
settings.unavailable=当前部署未暴露该配置
|
|
26
|
+
countdown.remaining={seconds}秒后超时
|
|
27
|
+
countdown.paused=已暂停
|
|
28
|
+
countdown.unavailable=无法无限等待
|
|
29
|
+
control.takeTime=慢慢回答
|
|
30
|
+
control.infiniteWait=无限等待
|
|
31
|
+
control.autoInfiniteLabel=问答自动无限等待
|
|
32
|
+
control.autoInfiniteOn=开
|
|
33
|
+
control.autoInfiniteOff=关
|
|
34
|
+
control.autoInfiniteTitle=开启后每次提问都自动进入无限等待, 关闭后回到插件的计时行为
|
|
35
|
+
bubble.draftLabel=提问·超时草稿
|
|
36
|
+
draft.selected=已选: {items}
|
|
37
|
+
draft.custom=补充: {text}
|
|
38
|
+
draft.deliveryFailed=草稿无法送达
|
|
39
|
+
draft.tooLarge=草稿过长, 未送达
|
|
40
|
+
draftPanel.title=超时草稿
|
|
41
|
+
draftPanel.note=这一轮提问已超时结束, 不能继续回答; 以下只是超时时的草稿内容
|
|
42
|
+
draftPanel.empty=超时那一刻没有已选选项或已输入内容
|
|
43
|
+
draftPanel.unanswered=未作答
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[meta]
|
|
2
|
+
for=v0.1.2
|
|
3
|
+
lang=en-US
|
|
4
|
+
name=English (US)
|
|
5
|
+
endtime=2026-11-12 19:20:00+08:00
|
|
6
|
+
|
|
7
|
+
[translation]
|
|
8
|
+
settings.settingsSummary=Question timeout protection
|
|
9
|
+
settings.fallbackSection=Timeout fallback
|
|
10
|
+
settings.fallbackNote=What happens to the content the user already typed once the wait expires
|
|
11
|
+
settings.injectLabel=Inject into context
|
|
12
|
+
settings.injectDesc=The draft snapshot is sent to the server before the timeout; on expiry it comes back with the tool result per question and enters the model context, so the model can decide whether to ask again
|
|
13
|
+
settings.fixedSection=Fixed features
|
|
14
|
+
settings.fixedNote=Follows the plugin's enabled state and cannot be turned off separately
|
|
15
|
+
settings.fixedKeepLabel=Keep the draft in the UI
|
|
16
|
+
settings.fixedKeepDesc=At timeout, records the selected options and typed text into the question bubble, where they can be viewed read-only
|
|
17
|
+
settings.cardEnhancementsLabel=Card enhancements
|
|
18
|
+
settings.cardEnhancementsDesc=Top-right countdown with warning flash, a background fill on the square marker of the selected single-choice option, and the question bubble; affects decoration only
|
|
19
|
+
settings.infiniteWaitLabel=Wait indefinitely
|
|
20
|
+
settings.infiniteWaitDesc=Adds a "Wait indefinitely" button next to the countdown; clicking it pauses the countdown of this question until the user submits
|
|
21
|
+
settings.draftFallbackLabel=Draft fallback at timeout
|
|
22
|
+
settings.draftFallbackDesc=Handles what was typed once the wait expires, per the fallback above
|
|
23
|
+
settings.rejected=The save was rejected, so the host configuration was re-read
|
|
24
|
+
settings.loading=Reading the configuration
|
|
25
|
+
settings.unavailable=This deployment does not expose the setting
|
|
26
|
+
countdown.remaining=Timeout in {seconds}s
|
|
27
|
+
countdown.paused=Paused
|
|
28
|
+
countdown.unavailable=Cannot wait indefinitely
|
|
29
|
+
control.takeTime=Take time
|
|
30
|
+
control.infiniteWait=Wait indefinitely
|
|
31
|
+
control.autoInfiniteLabel=Auto wait indefinitely
|
|
32
|
+
control.autoInfiniteOn=On
|
|
33
|
+
control.autoInfiniteOff=Off
|
|
34
|
+
control.autoInfiniteTitle=When on, every question enters indefinite wait automatically; when off, the plugin countdown applies
|
|
35
|
+
bubble.draftLabel=Question · timed-out draft
|
|
36
|
+
draft.selected=Selected: {items}
|
|
37
|
+
draft.custom=Additional: {text}
|
|
38
|
+
draft.deliveryFailed=Draft cannot be delivered
|
|
39
|
+
draft.tooLarge=Draft too large; not delivered
|
|
40
|
+
draftPanel.title=Timed-out draft
|
|
41
|
+
draftPanel.note=This round of questions timed out and can no longer be answered; the content below is only the draft as it stood at the timeout
|
|
42
|
+
draftPanel.empty=No option was selected and no text had been entered at the timeout
|
|
43
|
+
draftPanel.unanswered=Not answered
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[meta]
|
|
2
|
+
for=v0.1.2
|
|
3
|
+
lang=zh-CN
|
|
4
|
+
name=简体中文
|
|
5
|
+
endtime=2026-11-12 18:50:00+08:00
|
|
6
|
+
|
|
7
|
+
[translation]
|
|
8
|
+
settings.settingsSummary=提问超时保护
|
|
9
|
+
settings.fallbackSection=超时兜底
|
|
10
|
+
settings.fallbackNote=提问超时后如何处理已经输入的内容
|
|
11
|
+
settings.injectLabel=注入到上下文
|
|
12
|
+
settings.injectDesc=超时前把草稿快照交给服务端, 到期时随工具结果按题带回模型上下文, 由模型自行决定是否重新提问
|
|
13
|
+
settings.fixedSection=固定特性
|
|
14
|
+
settings.fixedNote=随插件启用状态生效, 不可单独关闭
|
|
15
|
+
settings.fixedKeepLabel=界面保留草稿
|
|
16
|
+
settings.fixedKeepDesc=超时后把已选选项与已输入内容记入提问气泡, 可在气泡里只读查看
|
|
17
|
+
settings.cardEnhancementsLabel=卡片增强
|
|
18
|
+
settings.cardEnhancementsDesc=右上角倒计时与警示闪烁, 单选选项的方形标号填充底色, 提问标识气泡; 只影响界面装饰
|
|
19
|
+
settings.infiniteWaitLabel=无限等待
|
|
20
|
+
settings.infiniteWaitDesc=倒计时右侧新增「无限等待」按钮, 点击后本次问答倒计时暂停, 直到用户提交
|
|
21
|
+
settings.draftFallbackLabel=超时草稿兜底
|
|
22
|
+
settings.draftFallbackDesc=超时后按上面的兜底范围处理已输入的内容
|
|
23
|
+
settings.rejected=保存被拒绝, 已重新读取宿主配置
|
|
24
|
+
settings.loading=正在读取配置
|
|
25
|
+
settings.unavailable=当前部署未暴露该配置
|
|
26
|
+
countdown.remaining={seconds}秒后超时
|
|
27
|
+
countdown.paused=已暂停
|
|
28
|
+
countdown.unavailable=无法无限等待
|
|
29
|
+
control.takeTime=慢慢回答
|
|
30
|
+
control.infiniteWait=无限等待
|
|
31
|
+
control.autoInfiniteLabel=问答自动无限等待
|
|
32
|
+
control.autoInfiniteOn=开
|
|
33
|
+
control.autoInfiniteOff=关
|
|
34
|
+
control.autoInfiniteTitle=开启后每次提问都自动进入无限等待, 关闭后回到插件的计时行为
|
|
35
|
+
bubble.draftLabel=提问·超时草稿
|
|
36
|
+
draft.selected=已选: {items}
|
|
37
|
+
draft.custom=补充: {text}
|
|
38
|
+
draft.deliveryFailed=草稿无法送达
|
|
39
|
+
draft.tooLarge=草稿过长, 未送达
|
|
40
|
+
draftPanel.title=超时草稿
|
|
41
|
+
draftPanel.note=这一轮提问已超时结束, 不能继续回答; 以下只是超时时的草稿内容
|
|
42
|
+
draftPanel.empty=超时那一刻没有已选选项或已输入内容
|
|
43
|
+
draftPanel.unanswered=未作答
|