rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:tespio/dsh-a11y
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Accessibility layer for the DeepSeek Harness Web UI. This is v1: the
announcement coordinator, keyboard navigation, and an Accessibility settings
page. The v2 author kit (ctx.a11y, <LiveRegion>, useFocusTrap,
useRovingTabIndex, auditSubtree) is deliberately not part of this build.
The plugin adds coverage; it does not replace the shipped chat UI.
npm: dsh-a11y@0.1.0
This package publishes as dsh-a11y on npm. When the build started, the bare
name was unclaimed, but the brief's "no accessibility plugin exists" premise was
already stale:
@oh-my-dsh/dsh-accessibility
(published 0.1.0-beta.3, repo omdsh-dev/dsh-accessibility) is a
present-day companion with a Settings → Accessibility diagnostic, a
screen-reader guide, and an experimental Accessible View reading tab. Its
published line targets DSH 0.1.1-rc.2/0.1.2-rc.1; the repo's migration
candidate targets 0.2.0-rc.2. Its own README states that it "cannot safely
replace focus traps, composite-widget keyboard behavior, landmarks, or
live-region policy from outside the owning components."dsh-a11y-scan runs
axe-core over local HTML, build output, or URLs. It is a content scanner, not
a UI live-announcement layer.dsh-a11y targets the installed DSH 0.2.2-rc.1 and fills the specific gap
the other two leave: a coordinated announcement layer for tool lifecycle,
approvals, and questions, plus skip/latest navigation and the announcement
settings. It overlaps the diagnostic/settings surface only partially.
From npm:
dsh plugin --profile web add dsh-a11y
The latest npm release is 0.1.0.
Or install this checkout as a profile bundle:
# plugin_manager -> install_bundle -> <absolute path to this directory>
If you previously installed a local development copy, remove it before installing the npm package; both register the same slot ids.
The bundle has a no-op Host half (index.js) and a browser half
(client.js, declared by package.json's dsh.client). It installs as a normal
profile bundle; no app.asar edits are involved.
Verified against the shipped @deepseek-ai/dsh-client-ui-chat 0.2.2-rc.1
bundle, lib/client.js:
| Moment | Host component | Live-region markup | Text |
|---|---|---|---|
| Turn start | RunningStatus |
span.visuallyHidden[role=status][aria-live=polite][aria-atomic=true] |
chat.deepDiving ("Deep diving") |
| Turn end | TurnProcessNodeView |
span.visuallyHidden[role=status][aria-live=polite][aria-atomic=true] |
message.turnProcess.worked / message.stopped / message.turnProcess.failed |
| Retry countdown | ModelRetryItem |
span[role=status] (implicit polite) |
message.retry.status |
| Terminal turn error | TurnErrorItem |
div[role=status] (implicit polite) |
message.turnError / message.taskStopped + failure text |
| Token cap | TurnMaxTokensItem |
div[role=status] (implicit polite) |
message.maxTokens |
Tool rows also render visually-hidden row.running / row.failed text, but
those spans are not live regions; adding/removing them does not announce on
its own. That is part of the gap this plugin fills.
dsh-a11y never emits turn start or turn end announcements. Its only live
regions are the new pair in shell.overlay (polite + assertive). Turn start,
turn end, retry, terminal turn errors, and token-cap notices stay owned by the
host regions above. This was a deliberate "stay silent" choice, not blind
muting: the host's two role="status" regions are visible in the installed
chat component and their copy was verified from both the installed package and
the extracted app bundle.
If the host later removes those regions, this plugin becomes the only coverage for tool activity, approvals, and questions, but turn start/end would need a follow-up.
Source: Client state only.
useChat(snapshot => snapshot.legacy.runningCalls),
announced when a call reaches phase === 'start' (preparing calls stay
silent).useChat(snapshot => snapshot.legacy.nodes),
correlated by callId with the running call. Failure is isError: true;
the detailed summary comes from error.reason / error.code / the first
text block, truncated to 96 characters.useSessionStatus(...).pendingInteraction with
kind === 'approval'; assertive. The tool name and request reason are
included.kind === 'question' or kind === 'plan-review'; assertive.Streaming assistant tokens are never announced. Announcements are triggered by state transitions, not by render counts or token deltas.
Announcements follow the Chat transcript target. In the Trajectory view the Chat target may not be materialized, so tool transitions can be unavailable there; the host's own turn boundary regions have the same dependency. This is a known v1 limitation.
Fast tools are merged in the queue: a still-queued start is replaced by its finish, so a 50 ms tool is spoken once, not twice. The announcement speed setting controls the gap between queued messages (250 / 700 / 1400 ms). The queue is capped at 30 items, and identical consecutive text is alternated with a zero-width space so screen readers do not suppress a repeat.
History paging does not replay old tools: the coordinator primes a sequence
watermark on mount and only treats newer tool-result nodes as live. A tool
that was already running when the session opened still gets its finish
announced.
nav; the jump button sits
in a "Conversation navigation" nav; the settings page is a labelled
section.h2 ("Turn 3: completed") in conversation.chat.turnTail. It is visually
hidden, tabIndex=-1, and is the focus target used by the skip link. The
latest turn's heading carries id="dsh-a11y-turn-latest".conversation.composer.dock
focuses the most recent visible turn heading.:focus-visible outline to every control.The host settings panel already uses its useModalLayer primitive for the
dialog focus trap and focus restore; the plugin does not add a second trap
inside it. Only the approval takeover needed a focus move and restore, which the
coordinator supplies.
Known limitation: the plugin cannot own the transcript container. The host offers no additive slot at the start of the transcript, so the skip target and per-turn headings live at turn boundaries (turn tails). Per-turn headings are therefore navigable in the heading list but describe a turn from its end. Fixing that properly needs a host change (see "Host findings").
The Accessibility page is its own settings.section (id: accessibility,
order 30) with:
theme.setFontSize('text', px)
so it is the same preference as Appearance → Text size.Preferences other than text size are stored in localStorage under
dsh-a11y.settings.v1. They are browser-local, normalized on read, and applied
through data-dsh-a11y-focus / data-dsh-a11y-motion on the document root.
There is no Host Config in v1, so nothing is written to the profile patch.
Motion override:
prefers-reduced-motion media
queries untouched.All styles use --dsw-alias-* color tokens. The only other values are spacing,
type sizes, and radius fallbacks.
Installed with plugin_manager install_bundle into the current profile;
application: applied, no warnings. Live client registration was confirmed by
cordis_inspect_query:
settings.section → occupant accessibility, order 30, active.conversation.composer.dock → occupant a11y-coordinator, order 2, active.shell.overlay → occupants a11y-skip-link and a11y-announcer, active.conversation.chat.turnTail → occupant a11y-turn-heading, order 1000,
active.Not verified in this environment: no browser-control or screen-reader automation was available, so the rendered settings page, Narrator/NVDA speech, zoom, and axe results remain manual. Automated tests cover the formatter, queue merging, settings normalization, and locale parity:
node test/run.mjs
# or, in a shell that expands globs:
node test/*.mjs
These are host-level gaps observed while building this plugin. They are not fixed by global CSS or DOM hacks here. They are tracked in issue #1.
shell.overlay, which is after the main
content in DOM order; the first-Tab focus is implemented with a capture
handler.conversation.chat.turnHead/turn-start list slot (or a
transcript-start anchor slot) would make this correct.ApprovalPanel renders a warning strip and buttons inside the composer
takeover but does not focus it; dsh-a11y supplies the announcement and
focus move. A role="region"/aria-labelledby and focus move in the host
would remove the need for both.row.running / row.failed are visually
hidden but not live regions. The host could own a single polite tool
announcer; until then this plugin does.role="status". The
question text itself is not announced when the card appears. The composer
autofocuses its input, which mitigates but does not cover a pending card
that appears while focus is elsewhere.role="status" is used for several unrelated notices (retry, turn
error, token cap) without an explicit aria-live; behavior depends on the
screen reader. A consistent polite/assertive policy would help.<main> around the active panel would give screen readers a reliable
landmark.The author kit remains the next step:
ctx.a11y provided by this package, with announce(), <LiveRegion>,
useFocusTrap, useRovingTabIndex, and auditSubtree(ref).ctx.provide() is available to a Client half, so ctx.a11y is feasible. The
kit must audit only the caller's own subtree, never a foreign plugin's DOM.
| File | Purpose |
|---|---|
index.js |
Host half, no-op in v1. |
client.js |
Browser half: dictionaries, bus, coordinator, skip link, turn headings, settings page. |
cordis.patch.yml |
Inserts the dsh-a11y Host row. |
locale/en.json, locale/zh.json |
Plugin Manager metadata and the same strings as the runtime dictionaries. |
icon.svg |
Bundle icon. |
test/*.mjs |
Formatter, queue merging, normalization, locale parity. |
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。