deepseek-harness/apps/web/tests
Tianyi Cui bb3dc50a4b feat(web): shiki syntax highlighting for code surfaces
One highlighter for the client: a synchronous fine-grained shiki core
(JS regex engine, no WASM) in ui-primitives with an explicit grammar
allowlist (typescript, shellscript, json — aliases resolve, unknown
languages take a geometry-identical plain arm). The shared CodeBlock
component owns both arms; markdown fences, the run_code expanded
program body (typescript), and the details panel Input (json) all
route through it. Token colors live in a new ui-theme shiki.css sheet
as --shiki-* custom properties (light/dark blocks), wired through the
shell's base.css chain — tokens-only styling holds; shiki's generated
span tree is the sanctioned innerHTML path (static output, no user
HTML). jsdom specs pin token spans, aliases, both fallbacks, and the
fence route; the built-bundle snapshot asserts the highlighted program
under the code row.
2026-07-26 09:52:37 +08:00
..
snapshots feat(tools): live dispatch lifecycle + native-contract parallel sub-calls in Code Mode 2026-07-26 06:02:36 +08:00
code-mode-fixture.snapshot.ts feat(web): shiki syntax highlighting for code surfaces 2026-07-26 09:52:37 +08:00
code-mode-round.e2e.ts feat(web): render Code Mode sub-calls as native rows nested under the run_code row 2026-07-26 04:02:38 +08:00
replay-round-trip.e2e.ts test(web): harden replay scaffold lifecycle 2026-07-26 00:33:46 +08:00
scaffold.ts feat(web): render Code Mode sub-calls as native rows nested under the run_code row 2026-07-26 04:02:38 +08:00
seeded-history.e2e.ts Merge remote-tracking branch 'origin/master' into web-e2e-lane 2026-07-25 18:19:22 +08:00
session-title.snapshot.ts test(web): stabilize workspace snapshots 2026-07-25 17:46:05 +08:00
smoke-real.e2e.ts feat(tools): run_code description param + native-parity dispatch logging + web code-mode seam 2026-07-26 02:43:34 +08:00
support.ts refactor(web): collapse the shell boot into the AppWebEntry class 2026-07-25 10:23:40 +08:00
workspace-flow.snapshot.ts test(web): stabilize workspace snapshots 2026-07-25 17:46:05 +08:00