@xiangyixie/dsh-superagent 0.22.0 → 0.22.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/CHANGELOG.md CHANGED
@@ -8,6 +8,10 @@ along with the next code release. A doc-only version leaves `lib/` and `bin/`
8
8
  byte-identical to the version before it, and the pinned install line in the
9
9
  README is updated to the version being released.
10
10
 
11
+ ## 0.22.1 — 2026-11-17
12
+
13
+ - 问答卡的回答按钮不再转发空的 `type`,避免宿主按钮在表单里退化成提交按钮。
14
+
11
15
  ## 0.22.0 — 2026-11-17
12
16
 
13
17
  - 面板按宿主设计重做:思考与工具行进改用宿主 24px 过程行(DisclosureRow/TextShimmer),
package/lib/client.js CHANGED
@@ -1425,13 +1425,19 @@ window.__ModuleLoader__.load({
1425
1425
  item.reason ? h('div', { className: 'dsa-attention-desc' }, item.reason) : null,
1426
1426
  h('div', { className: 'dsa-answer-row' },
1427
1427
  field,
1428
- h(Button ?? 'button', {
1429
- variant: Button ? 'primary' : undefined,
1430
- size: Button ? 'sm' : undefined,
1431
- type: Button ? undefined : 'button',
1432
- disabled: !draft.trim(),
1433
- onClick: submit,
1434
- }, '回答'))),
1428
+ Button
1429
+ ? h(Button, {
1430
+ variant: 'primary',
1431
+ size: 'sm',
1432
+ disabled: !draft.trim(),
1433
+ onClick: submit,
1434
+ }, '回答')
1435
+ : h('button', {
1436
+ type: 'button',
1437
+ className: 'dsa-chip',
1438
+ disabled: !draft.trim(),
1439
+ onClick: submit,
1440
+ }, '回答'))),
1435
1441
  options.length > 0
1436
1442
  ? h('div', { className: 'dsa-attention-footer' },
1437
1443
  h('div', { className: 'dsa-attention-options' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiangyixie/dsh-superagent",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "长周期自主执行插件:一个目标拆成可并行的子任务,交付一份合并报告,重启后仍可继续。",
5
5
  "author": "Admire (LittleChenLiya)",
6
6
  "type": "module",