Commit Graph

41 Commits

Author SHA1 Message Date
QQ 9c0ee58021 Merge pull request 'release: v1.0.3' (#4) from release/1.0.3 into main 2026-11-14 17:58:44 +08:00
QQ fa18351a16 release: v1.0.3 2026-11-14 17:58:11 +08:00
QQ 36785ffa08 Merge pull request 'chore(types): green typecheck' (#3) from chore/typecheck-green into main 2026-11-14 17:55:59 +08:00
QQ f57a74cd8b chore(types): make npm run typecheck green
- settings-slots: the locale namespace key still said 'better-display' while
  the settings section registers 'better-chat', so slot registration failed
  overload resolution.
- bindings: DEFAULT_BINDINGS.always is nullable, and spreading it produced an
  optional key. Hoist a non-null DEFAULT_ALWAYS for the fallbacks.
- host-modules.d.ts declares the host-only client packages the plugin imports
  for their declaration merging; host-augment.d.ts supplies the structural
  faces for the remote/sessions services and the connection/reset event they
  used to contribute.
2026-11-14 17:55:25 +08:00
QQ f87055b75b Merge pull request 'fix: host plugin activates on a clean profile (v1.0.2)' (#2) from fix/host-activation-inject into main 2026-11-14 17:28:28 +08:00
QQ 7774d6fc28 fix: mount auto-review listeners through ctx.inject so the host activates on a clean profile (v1.0.2)
Cordis throws when a service is read before it is declared in inject:
'cannot get property "permissionPresets" without inject'. apply() probed
ctx.permissionPresets first, so a profile without permissionPresets/agents
died during activation and its else-branch ctx.inject fallback was dead code.
The plugin now always wires the listeners through a scoped ctx.inject, which
also re-mounts them when the auto-review services appear later.
2026-11-14 17:21:52 +08:00
QQ 5c80061f08 feat: default new blank sessions to auto-review (v1.0.1) 2026-11-13 10:04:55 +08:00
QQ 010a3d4e8b release: v1.0.0 — first usable release 2026-11-12 23:06:00 +08:00
QQ eeac9d7e2a feat: remove the generative-mcpapps skill detection block
The skill status/install section is gone, together with its client probe, the host /better-display/skill-status route, the skill scanning implementation, the bundled skills/generative-mcpapps pack, its copy strings and tests. Reader still renders mcp-app fences the model emits; it just no longer detects or guides installing that skill.

Version 0.4.4.
2026-11-12 22:40:35 +08:00
QQ 3168c2a341 fix: give the merged settings its own locale namespace and section id
The merged plugin reused dsh-better-display's settings.section id and locale namespace (better-display). While the standalone display plugin is still installed, both registrations collide and the later one wins, so the settings title flips between Better Display and Better Chat depending on load order.

Use better-chat for both the section id and the locale namespace; the standalone plugin can no longer overwrite the merged section. README now states the standalone plugin must be removed while updating. Version 0.4.3.
2026-11-12 22:26:40 +08:00
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