dsh-sidecard-ask 1.7.2 → 1.8.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.
Files changed (7) hide show
  1. package/CHANGELOG.md +599 -479
  2. package/README.md +797 -709
  3. package/client.js +5936 -4674
  4. package/index.js +1644 -1558
  5. package/locale/en.json +45 -15
  6. package/locale/zh.json +45 -15
  7. package/package.json +66 -66
package/locale/en.json CHANGED
@@ -1,15 +1,45 @@
1
- {
2
- "triggerLabel": "Ask about selection",
3
- "triggerHint": "Ask AI about this text",
4
- "askTitle": "Ask about the selection",
5
- "carrier": "Answer in",
6
- "carrierMain": "Main chat",
7
- "carrierSide": "Side card",
8
- "answerTitle": "Follow-up",
9
- "copy": "Copy",
10
- "close": "Close",
11
- "followUp": "Follow up",
12
- "retry": "Retry",
13
- "settingsTitle": "Selection Ask",
14
- "settingsDesc": "Select text in chat or tasks and ask about it in place."
15
- }
1
+ {
2
+ "triggerLabel": "Ask about selection",
3
+ "triggerHint": "Ask AI about this text",
4
+ "askTitle": "Ask about the selection",
5
+ "carrier": "Answer in",
6
+ "carrierMain": "Main chat",
7
+ "carrierSide": "Side card",
8
+ "answerTitle": "Follow-up",
9
+ "copy": "Copy",
10
+ "close": "Close",
11
+ "followUp": "Follow up",
12
+ "retry": "Retry",
13
+ "settingsTitle": "Selection Ask",
14
+ "settingsDesc": "Select text in chat or tasks and ask about it in place.",
15
+ "setAnswerStyle": "Answer style",
16
+ "setAnswerStyleHint": "Controls how much detail the answer carries; it never changes \"answer in the question’s language\"",
17
+ "setAnswerStyleConcise": "Concise (smallest complete answer)",
18
+ "setAnswerStyleStandard": "Standard (default)",
19
+ "setAnswerStyleDetailed": "Detailed (expand and give the basis)",
20
+ "setCustomPersona": "Custom instruction",
21
+ "setCustomPersonaHint": "Appended after the style directive and sent with every question; at most {n} characters",
22
+ "setCustomPersonaPlaceholder": "e.g. cite verifiable sources; do not use tables",
23
+ "locate": "Show source",
24
+ "locateHint": "Jump back to the passage on the page and highlight it",
25
+ "locateNotFound": "The source text changed or is not in the current view",
26
+ "locateUnsupported": "This environment cannot locate text (no page text nodes reachable)",
27
+ "exportMd": "Export .md",
28
+ "exportAllMd": "Export all .md",
29
+ "exportEmpty": "Nothing to export",
30
+ "exportFailed": "Export failed: the browser refused the download",
31
+ "insertToComposer": "Insert into composer",
32
+ "insertReplace": "Replace the passage",
33
+ "insertHint": "Put this rewrite into the main-chat composer (sent messages stay untouched)",
34
+ "insertDone": "Inserted into the composer — press Enter to send",
35
+ "insertStale": "The composer changed; the insert did not apply — try again",
36
+ "insertNoComposer": "No writable composer found",
37
+ "insertFailed": "Insert failed — copy the answer manually",
38
+ "versionsLabel": "Versions",
39
+ "versionN": "v{n}",
40
+ "versionLatest": "Back to latest",
41
+ "versionViewing": "Viewing an older version (read-only)",
42
+ "suggestionsLabel": "Suggested follow-ups",
43
+ "setFollowUps": "Suggest follow-ups at the end",
44
+ "setFollowUpsHint": "The model ends each answer with a <followups> block of 2–3 next questions, rendered as clickable chips (no extra request)"
45
+ }
package/locale/zh.json CHANGED
@@ -1,15 +1,45 @@
1
- {
2
- "triggerLabel": "追问选中内容",
3
- "triggerHint": "点击用 AI 追问这段文字",
4
- "askTitle": "追问选中内容",
5
- "carrier": "作答位置",
6
- "carrierMain": "主对话",
7
- "carrierSide": "侧边卡片",
8
- "answerTitle": "追问",
9
- "copy": "复制",
10
- "close": "关闭",
11
- "followUp": "继续追问",
12
- "retry": "重试",
13
- "settingsTitle": "划词追问",
14
- "settingsDesc": "选中聊天或任务里的文本,就地追问。"
15
- }
1
+ {
2
+ "triggerLabel": "追问选中内容",
3
+ "triggerHint": "点击用 AI 追问这段文字",
4
+ "askTitle": "追问选中内容",
5
+ "carrier": "作答位置",
6
+ "carrierMain": "主对话",
7
+ "carrierSide": "侧边卡片",
8
+ "answerTitle": "追问",
9
+ "copy": "复制",
10
+ "close": "关闭",
11
+ "followUp": "继续追问",
12
+ "retry": "重试",
13
+ "settingsTitle": "划词追问",
14
+ "settingsDesc": "选中聊天或任务里的文本,就地追问。",
15
+ "setAnswerStyle": "回答风格",
16
+ "setAnswerStyleHint": "控制答案的详略与展开程度;不会改变“用提问的语言作答”这条规则",
17
+ "setAnswerStyleConcise": "精简(只给最小完整答案)",
18
+ "setAnswerStyleStandard": "标准(默认)",
19
+ "setAnswerStyleDetailed": "详细(必要时展开并给出依据)",
20
+ "setCustomPersona": "自定义指令",
21
+ "setCustomPersonaHint": "追加在风格档位之后,随每次提问一起发送;≤{n} 字",
22
+ "setCustomPersonaPlaceholder": "例如:尽量给出可验证的来源;不要用表格",
23
+ "locate": "查看原文",
24
+ "locateHint": "回到页面里这段原文的位置并高亮",
25
+ "locateNotFound": "原文已变化或不在当前视图",
26
+ "locateUnsupported": "当前环境不支持定位(拿不到页面文本节点)",
27
+ "exportMd": "导出 .md",
28
+ "exportAllMd": "导出全部 .md",
29
+ "exportEmpty": "没有可导出的内容",
30
+ "exportFailed": "导出失败:浏览器不允许下载",
31
+ "insertToComposer": "插入到输入框",
32
+ "insertReplace": "替换原文",
33
+ "insertHint": "把这条改写结果放进主对话输入框(不改动已发送的消息)",
34
+ "insertDone": "已插入到输入框,请按 Enter 发送",
35
+ "insertStale": "输入框内容已变化,插入未生效,请重试",
36
+ "insertNoComposer": "找不到可写入的输入框",
37
+ "insertFailed": "插入失败,请手动复制",
38
+ "versionsLabel": "历史版本",
39
+ "versionN": "第 {n} 版",
40
+ "versionLatest": "返回最新",
41
+ "versionViewing": "正在查看历史版本(只读)",
42
+ "suggestionsLabel": "建议追问",
43
+ "setFollowUps": "答案末尾给出建议追问",
44
+ "setFollowUpsHint": "开启后模型会用 <followups> 块在答案末尾给出 2–3 个可点的下一步问题,点一下即追问(不额外发请求)"
45
+ }
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
- {
2
- "name": "dsh-sidecard-ask",
3
- "version": "1.7.2",
4
- "description": "DSH 划词追问(侧边卡片作答):在聊天区与任务区选中文本就地追问,答案由独立子代理在侧边卡片里流式呈现,也可选择落回主对话。",
5
- "type": "module",
6
- "main": "index.js",
7
- "exports": {
8
- ".": "./index.js",
9
- "./client": "./client.js",
10
- "./package.json": "./package.json",
11
- "./locale/*.json": "./locale/*.json"
12
- },
13
- "files": [
14
- "index.js",
15
- "client.js",
16
- "cordis.patch.yml",
17
- "locale/*.json",
18
- "icon.svg",
19
- "README.md",
20
- "CHANGELOG.md",
21
- "LICENSE"
22
- ],
23
- "engines": {
24
- "node": ">=20"
25
- },
26
- "license": "MIT",
27
- "keywords": [
28
- "dsh",
29
- "dsh-plugin",
30
- "deepseek-harness",
31
- "selection",
32
- "划词",
33
- "选中追问",
34
- "ask",
35
- "side-card",
36
- "侧边卡片"
37
- ],
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/HERO476/dsh-sidecard-ask.git"
41
- },
42
- "homepage": "https://github.com/HERO476/dsh-sidecard-ask#readme",
43
- "bugs": {
44
- "url": "https://github.com/HERO476/dsh-sidecard-ask/issues"
45
- },
46
- "icon": "./icon.svg",
47
- "meta": {
48
- "title": "侧边卡片追问",
49
- "description": "选中聊天或任务里的文本就地追问;答案由独立子代理在侧边卡片里流式呈现(也可落回主对话)。"
50
- },
51
- "dsh": {
52
- "manifestVersion": 1,
53
- "bundle": {
54
- "patch": "./cordis.patch.yml"
55
- },
56
- "client": {
57
- "platform": "web",
58
- "immediately": true,
59
- "inject": [
60
- "@deepseek-ai/dsh-client-locale",
61
- "@deepseek-ai/dsh-client-ui-slots",
62
- "@deepseek-ai/dsh-client-ui-conversation"
63
- ]
64
- }
65
- }
66
- }
1
+ {
2
+ "name": "dsh-sidecard-ask",
3
+ "version": "1.8.1",
4
+ "description": "DSH 划词追问(侧边卡片作答):在聊天区与任务区选中文本就地追问,答案由独立子代理在侧边卡片里流式呈现,也可选择落回主对话。",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "exports": {
8
+ ".": "./index.js",
9
+ "./client": "./client.js",
10
+ "./package.json": "./package.json",
11
+ "./locale/*.json": "./locale/*.json"
12
+ },
13
+ "files": [
14
+ "index.js",
15
+ "client.js",
16
+ "cordis.patch.yml",
17
+ "locale/*.json",
18
+ "icon.svg",
19
+ "README.md",
20
+ "CHANGELOG.md",
21
+ "LICENSE"
22
+ ],
23
+ "engines": {
24
+ "node": ">=20"
25
+ },
26
+ "license": "MIT",
27
+ "keywords": [
28
+ "dsh",
29
+ "dsh-plugin",
30
+ "deepseek-harness",
31
+ "selection",
32
+ "划词",
33
+ "选中追问",
34
+ "ask",
35
+ "side-card",
36
+ "侧边卡片"
37
+ ],
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/HERO476/dsh-sidecard-ask.git"
41
+ },
42
+ "homepage": "https://github.com/HERO476/dsh-sidecard-ask#readme",
43
+ "bugs": {
44
+ "url": "https://github.com/HERO476/dsh-sidecard-ask/issues"
45
+ },
46
+ "icon": "./icon.svg",
47
+ "meta": {
48
+ "title": "侧边卡片追问",
49
+ "description": "选中聊天或任务里的文本就地追问;答案由独立子代理在侧边卡片里流式呈现(也可落回主对话)。"
50
+ },
51
+ "dsh": {
52
+ "manifestVersion": 1,
53
+ "bundle": {
54
+ "patch": "./cordis.patch.yml"
55
+ },
56
+ "client": {
57
+ "platform": "web",
58
+ "immediately": true,
59
+ "inject": [
60
+ "@deepseek-ai/dsh-client-locale",
61
+ "@deepseek-ai/dsh-client-ui-slots",
62
+ "@deepseek-ai/dsh-client-ui-conversation"
63
+ ]
64
+ }
65
+ }
66
+ }