dsh-sidecard-ask 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ # dsh-sidecard-ask — bundle patch.
2
+ #
3
+ # Inserts the plugin's single Host row. The row `id` is what the Plugins page
4
+ # and `plugins.row.config` key on, so keep it stable.
5
+ #
6
+ # Everything under `config` is the *defaults layer*: the client settings page
7
+ # persists the user's own overrides to
8
+ # `<DSH_HOME>/sidecard-ask/config.json`, and that persisted layer wins over
9
+ # this one. Removing the file (or pressing「重置为默认」in the settings page)
10
+ # restores exactly what is written here.
11
+ - insert:
12
+ - id: sidecard-ask
13
+ name: dsh-sidecard-ask
14
+ config:
15
+ # selection = 选中即浮出按钮;shortcut = 只用快捷键唤起;both = 两者都要
16
+ trigger: selection
17
+ # main = 在主对话里提问;side = 在独立侧边卡片里提问
18
+ defaultCarrier: side
19
+ # auto | native-rightbar | better-sidebar | flow
20
+ sideSurface: auto
21
+ # 单次追问最多带走的选中字符数,超出部分截断并标注
22
+ maxChars: 4000
23
+ # 唤起追问框的快捷键(当 trigger 允许快捷键时生效)
24
+ shortcut: Alt+Q
25
+ # auto | chat | task | chat+task
26
+ captureZones: auto
27
+ # 选区落在无法归类的区域时,是否仍然浮出按钮
28
+ showInUnclassified: true
29
+ # 少于该字符数的选区不触发
30
+ minChars: 2
31
+ # 侧边卡片作答的并发上限
32
+ maxConcurrentAsks: 3
33
+ # readonly = 侧边作答者只带只读工具;inherit = 继承父代理的工具
34
+ sideTools: readonly
35
+ # 侧边作答的超时(毫秒)
36
+ sideTimeoutMs: 180000
37
+ # 子代理 provider 名称;auto = 自动挑选已注册的 provider
38
+ sideProvider: auto
package/icon.svg ADDED
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Selection Ask">
2
+ <rect x="6" y="10" width="34" height="24" rx="5" fill="none" stroke="#4c8dff" stroke-width="3.2"/>
3
+ <path d="M13 22h20M13 28h12" stroke="#4c8dff" stroke-width="3.2" stroke-linecap="round"/>
4
+ <path d="M36 30v6H20" stroke="#4c8dff" stroke-width="3.2" stroke-linecap="round" fill="none"/>
5
+ <rect x="30" y="34" width="28" height="20" rx="6" fill="none" stroke="#8fa8c8" stroke-width="3.2"/>
6
+ <path d="M38 44h12" stroke="#8fa8c8" stroke-width="3.2" stroke-linecap="round"/>
7
+ <circle cx="52" cy="18" r="7" fill="#4c8dff"/>
8
+ <path d="M49.5 18h5M52 15.5v5" stroke="#fff" stroke-width="2.4" stroke-linecap="round"/>
9
+ </svg>