Function
toolCommit
(
part: ToolPart,
next: Pick<SessionCommit, "text" | "phase" | "toolState"> & { toolError?: string },
)
Source from the content-addressed store, hash-verified
| 620 | } |
| 621 | |
| 622 | function toolCommit( |
| 623 | part: ToolPart, |
| 624 | next: Pick<SessionCommit, "text" | "phase" | "toolState"> & { toolError?: string }, |
| 625 | ): SessionCommit { |
| 626 | return { |
| 627 | kind: "tool", |
| 628 | source: "tool", |
| 629 | messageID: part.messageID, |
| 630 | partID: part.id, |
| 631 | tool: part.tool, |
| 632 | part, |
| 633 | ...next, |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | function shellPartID(callID: string): string { |
| 638 | return `shell:${callID}` |
Tested by
no test coverage detected