Commit Graph

31 Commits

Author SHA1 Message Date
QQ 6ed202f029 feat: rename settings section to Better Chat and make approval shortcuts configurable
The settings section is now 'Better Chat' in both dictionaries.

Approval key bindings are configurable in that section and persisted under dsh.better-chat.v1: click a keycap and press the new combination. Allow-type actions stay on Enter and reject on Esc; modifiers are free. Always-allow can be cleared, and a restore-defaults button resets everything. Invalid base keys, modifier-less always-allow and conflicts are rejected with inline copy.

The approval routing and the key hint read the live bindings, and saving dispatches better-chat:bindings-changed so the card hint rebuilds without a restart. Adds bindings tests and extends the approval/key-hint tests; version 0.4.2.
2026-11-12 22:20:29 +08:00
QQ a4844006a6 feat: show approval key hints and add Ctrl/Cmd+Enter always-allow
Option A from the preview: the action row shows Enter <allow label> / Ctrl+Enter <always label> / Esc <reject label>. Labels come from the card's real buttons, the hint is pointer-transparent and aria-hidden, disappears when the card is answered and is rebuilt after React re-renders.

Ctrl+Enter (Cmd+Enter on Apple platforms) clicks the always-allow button, only when the card has one; the official card ignores modified keys, so the chord is handled even while focus is inside the card. Typing in an input still suppresses everything.

Adds tests/chat/key-hint.test.ts and extends the approval-key decisions; version 0.4.1.
2026-11-12 22:12:07 +08:00
QQ f50d36874d docs: note the hoisted pnpm install flag for Windows builds 2026-11-12 21:55:26 +08:00
QQ 1b3bb75a0f feat: merge dsh-better-display reading view into dsh-better-chat
One package, one Web client artifact (id dsh-better-chat) now ships both the reader view and the chat enhancements (approval Enter/Esc, permission UI, plugin-store update button).

- vendor dsh-better-display 0.3.12 sources, docs, skills and tests; host entry is src/host.ts, client entry src/client/index.tsx -> reader-plugin.tsx
- switch the build to tsdown with the dshx 0.9.7 client bundle adapter vendored under tools/; target platform table pinned to dsh-v0.2.2-rc.2
- keep Safari -webkit-backdrop-filter in the built reader CSS
- port chat tests to vitest (tests/chat); re-baseline the upstream reader suite on the merged layout
- bump to 0.4.0 and document the merge, provenance and toolchain
2026-11-12 21:54:14 +08:00
QQ e3b27d98f8 Merge pull request 'fix: 不再覆盖已有会话权限' (#1) from fix/permission-no-overwrite into main 2026-11-12 21:03:28 +08:00
newbie f2f11528bd fix: stop overwriting existing session permissions 2026-11-12 18:52:16 +08:00
QQ 40acdd2b5c Import tests/store-update.test.mjs 2026-11-12 12:12:40 +08:00
QQ 9143a74b18 Import scripts/build-client.mjs 2026-11-12 12:12:33 +08:00
QQ 6ced231bf4 Import package.json 2026-11-12 12:12:28 +08:00
QQ b63619a8af Import lib/client.js 2026-11-12 12:12:25 +08:00
QQ cd947360c9 Import client.js 2026-11-12 12:12:18 +08:00
QQ 0a48ac4fc4 Import README.md 2026-11-12 12:12:13 +08:00
QQ f079c6ca71 Import tests/client-loader.test.mjs 2026-11-12 10:47:01 +08:00
QQ 636738377a Import scripts/build-client.mjs 2026-11-12 10:46:58 +08:00
QQ 2a7a068358 Import package.json 2026-11-12 10:46:55 +08:00
QQ 48119e7918 Import lib/client.js 2026-11-12 10:46:51 +08:00
QQ 499e0500d4 Import tests/permission-policy.test.mjs 2026-11-11 23:39:03 +08:00
QQ 7fc3e56fe2 Import package.json 2026-11-11 23:38:56 +08:00
QQ 573c6c39d3 Import client.js 2026-11-11 23:38:45 +08:00
QQ 43586e3eea Import README.md 2026-11-11 23:38:41 +08:00
QQ 30ca465644 Import tests/approval-keys.test.mjs 2026-11-11 22:52:40 +08:00
QQ 3e125c6653 Import package.json 2026-11-11 22:52:35 +08:00
QQ 044fc7d782 Import index.js 2026-11-11 22:52:30 +08:00
QQ 070c48b9a1 Import cordis.patch.yml 2026-11-11 22:52:25 +08:00
QQ 13564116ef Import client.js 2026-11-11 22:52:20 +08:00
QQ 86045af5bf Import README.md 2026-11-11 22:52:16 +08:00
QQ b866e397f2 Import package.json 2026-11-11 22:29:36 +08:00
QQ 59f919f3d5 Import index.js 2026-11-11 22:29:32 +08:00
QQ fe33b3044b Import README.md 2026-11-11 22:29:29 +08:00
QQ f7778e144f Import .gitignore 2026-11-11 22:29:25 +08:00
QQ c910a08497 Initial commit 2026-11-11 22:29:20 +08:00