fix: type check
This commit is contained in:
@@ -31,8 +31,9 @@ beforeEach(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const toolResult = (seq: number, callId: string, name: string, args = '{"command":"make build","description":"Build"}'): ToolResultNode => ({
|
const toolResult = (seq: number, callId: string, name: string, args = '{"command":"make build","description":"Build"}'): ToolResultNode => ({
|
||||||
kind: 'tool-result', seq, callId,
|
kind: 'tool-result', seq, time: seq * 1_000, callId,
|
||||||
call: { name, argsRaw: args },
|
call: { name, argsRaw: args },
|
||||||
|
callTime: seq * 1_000 - 500,
|
||||||
content: [], isError: false, callView: null, resultView: null,
|
content: [], isError: false, callView: null, resultView: null,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,27 @@ beforeEach(() => {
|
|||||||
|
|
||||||
/** Minimal conversation snapshot slice the skeleton reads. */
|
/** Minimal conversation snapshot slice the skeleton reads. */
|
||||||
interface FakeSnapshot {
|
interface FakeSnapshot {
|
||||||
nodes: readonly { kind: string; callId?: string; call?: { name: string; argsRaw: string } | null; content?: readonly { type: string; text?: string }[]; isError?: boolean }[]
|
nodes: readonly {
|
||||||
runningCalls: readonly { callId: string; name: string; argsRaw: string }[]
|
kind: string
|
||||||
|
seq?: number
|
||||||
|
time?: number
|
||||||
|
callId?: string
|
||||||
|
call?: { name: string; argsRaw: string } | null
|
||||||
|
callTime?: number | null
|
||||||
|
content?: readonly { type: string; text?: string }[]
|
||||||
|
isError?: boolean
|
||||||
|
callView?: null
|
||||||
|
resultView?: null
|
||||||
|
}[]
|
||||||
|
runningCalls: readonly {
|
||||||
|
callId: string
|
||||||
|
name: string
|
||||||
|
argsRaw: string
|
||||||
|
turn?: number
|
||||||
|
step?: number
|
||||||
|
time?: number
|
||||||
|
callView?: null
|
||||||
|
}[]
|
||||||
running: boolean
|
running: boolean
|
||||||
removed: boolean
|
removed: boolean
|
||||||
promptError: { op: 'send' | 'stop'; error: { message: string; code: string } } | null
|
promptError: { op: 'send' | 'stop'; error: { message: string; code: string } } | null
|
||||||
|
|||||||
Reference in New Issue
Block a user