diff options
| author | Dax Raad <[email protected]> | 2025-07-24 17:34:15 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-24 17:38:11 -0400 |
| commit | 284c01018ed73a7509b6226399e51c2f6f54a58d (patch) | |
| tree | d2a485655675383ce639e6dc40f2e6b1f9359d43 /packages/sdk/src/resources/session.ts | |
| parent | 22c9e2942b987c7d51d08d8db4910c1d57f6fd7e (diff) | |
| download | opencode-284c01018ed73a7509b6226399e51c2f6f54a58d.tar.gz opencode-284c01018ed73a7509b6226399e51c2f6f54a58d.zip | |
wip: more snapshot stuff
Diffstat (limited to 'packages/sdk/src/resources/session.ts')
| -rw-r--r-- | packages/sdk/src/resources/session.ts | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/packages/sdk/src/resources/session.ts b/packages/sdk/src/resources/session.ts index bb761033a..322c9e9ae 100644 --- a/packages/sdk/src/resources/session.ts +++ b/packages/sdk/src/resources/session.ts @@ -102,6 +102,8 @@ export interface AssistantMessage { cost: number; + mode: string; + modelID: string; path: AssistantMessage.Path; @@ -217,7 +219,30 @@ export interface FileSource { export type Message = UserMessage | AssistantMessage; -export type Part = TextPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart; +export type Part = + | TextPart + | FilePart + | ToolPart + | StepStartPart + | StepFinishPart + | SnapshotPart + | Part.PatchPart; + +export namespace Part { + export interface PatchPart { + id: string; + + files: Array<string>; + + hash: string; + + messageID: string; + + sessionID: string; + + type: 'patch'; + } +} export interface Session { id: string; |
