mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Replace the full-innerHTML render loop with a static shell plus per-region updates, so composer drafts, fold state, focus, and scroll survive streaming turns. Fold session events into one trace graph consumed by Chat, Trajectory, Waterfall, and the shared inspector drawer, with live ACP updates patched into a keyed live-turn region. Align the visual system with a tokenized design spec: a 4px spacing base with fixed control/row height steps, foreground-derived text tiers and borders (color-mix), neutral interaction overlays, tiered motion durations with a reduced-motion collapse, hover-revealed scrollbars, and drawer-aware layout elasticity. Localize trajectory role chips and row previews. The renderer entry (app.ts) joins the coverage exclude list as a self-executing DOM bootstrap: jsdom lifecycle specs exercise its behavior, and extractable logic lives in covered modules (trace-graph.ts, renderer-content.ts).
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
export {}
|
|
|
|
declare global {
|
|
interface Window {
|
|
dshDesktop: {
|
|
runtime: {
|
|
start(): Promise<unknown>
|
|
stop(): Promise<unknown>
|
|
restart(): Promise<unknown>
|
|
status(): Promise<unknown>
|
|
onStatus(callback: (payload: unknown) => void): () => void
|
|
onStderr(callback: (payload: unknown) => void): () => void
|
|
}
|
|
sessions: {
|
|
list(): Promise<unknown>
|
|
create(): Promise<unknown>
|
|
load(sessionId: string): Promise<unknown>
|
|
prompt(sessionId: string, text: string): Promise<unknown>
|
|
cancel(sessionId: string): Promise<unknown>
|
|
reveal(sessionId: string): Promise<unknown>
|
|
onUpdate(callback: (payload: unknown) => void): () => void
|
|
}
|
|
trace: {
|
|
read(sessionId: string): Promise<unknown>
|
|
}
|
|
feedback: {
|
|
list(sessionId: string, targetId?: string): Promise<unknown>
|
|
add(entry: Record<string, unknown>): Promise<unknown>
|
|
}
|
|
dev: {
|
|
status(): Promise<unknown>
|
|
}
|
|
}
|
|
}
|
|
}
|