fix(experimental): hairline band borders and one engine-event list

The band's bordered boxes and buttons draw the theme's 0.5px hairline, as
the elevation gate requires; KNOWN_EVENTS is built from ENGINE_EVENTS
instead of repeating the list.
This commit is contained in:
Tianyi Cui committed 2026-10-03 05:47:53 +08:00
1 parent 77fcdf46d2
commit 56f2f48669
2 files changed
+3 -22

No files matched your search

@@ -29,26 +29,7 @@ export const ENGINE_EVENTS: ReadonlySet<string> = new Set([
* fails at load rather than registering a hook that never runs.
*/
export const KNOWN_EVENTS: ReadonlySet<string> = new Set([
// tools
'tool.call', 'tool.check', 'tool.describe',
// prompts and what the model reads
'prompt.submit', 'prompt.fill', 'prompt.suggest', 'prompt.edit', 'prompt.compose', 'prompt.section',
'prompt.context', 'prompt.attachment', 'skill.prompt', 'attribution.text',
// commands and configuration
'command.run', 'command.describe', 'config.set', 'config.describe',
// turns
'turn.start', 'turn.step', 'turn.complete',
// session
'session.start', 'session.end', 'session.compact', 'session.receive', 'session.send', 'session.append',
'session.attach', 'session.detach', 'session.measure',
// subagents
'agent.offer', 'agent.spawn',
// interface
'ui.render', 'ui.resolve', 'ui.press', 'ui.input', 'ui.select', 'ui.focus', 'ui.scroll', 'ui.close', 'ui.message',
// other mods
'plugin.register', 'engine.create',
// telemetry
'telemetry.log', 'telemetry.mark',
...ENGINE_EVENTS,
// mods API calls
'ui.log', 'ui.toast', 'ui.status', 'ui.notice', 'ui.invalidate', 'ui.open', 'ui.panes', 'ui.blit', 'ui.ask', 'ui.copy',
'command.register', 'command.list',
@@ -28,7 +28,7 @@
}
.box[data-border] {
border: 1px solid var(--dsw-alias-border-l2, currentColor);
border: 0.5px solid var(--dsw-alias-border-l2);
border-radius: 6px;
}
@@ -76,7 +76,7 @@
gap: 4px;
margin: 0 2px;
padding: 1px 8px;
border: 1px solid var(--dsw-alias-border-l2, currentColor);
border: 0.5px solid var(--dsw-alias-border-l2);
border-radius: 6px;
background: transparent;
color: inherit;