refactor(gui): source SessionProjectionMap from the interface package's pure-type outlet
Swap the client runtime's parallel-construction placeholder for import type from @deepseek-ai/dsh-session-projection/types — the zero-import outlet, never the package root, whose dsh-agent → dsh-session chain would drag the host Context.sessions merge into the client program. One type table end to end (host provider, wire block, client cell, React hook); the spec's test key now declare-merges the real module. Adds the workspace dep and the tsconfig project reference.
This commit is contained in:
@@ -15,9 +15,9 @@ import { SessionsService } from '../src/client/sessions/service.ts'
|
||||
import { FakeApiClient, ok } from './fake-api.ts'
|
||||
import { entries, plainTurn } from './event-script.ts'
|
||||
|
||||
// Test-domain key merged into the (placeholder) projection map: a whole-value
|
||||
// marker list, the smallest last-wins shape.
|
||||
declare module '../src/client/sessions/projection-cell.ts' {
|
||||
// Test-domain key merged into the projection map (the interface package's
|
||||
// pure-type outlet): a whole-value marker list, the smallest last-wins shape.
|
||||
declare module '@deepseek-ai/dsh-session-projection/types' {
|
||||
interface SessionProjectionMap {
|
||||
'test/marks': { marks: string[] }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user