mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 18:54:21 +01:00
wip: more snapshot stuff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
configured_endpoints: 26
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-1efc45c35b58e88b0550fbb0c7a204ef66522742f87c9e29c76a18b120c0d945.yml
|
||||
openapi_spec_hash: 5e15d85e4704624f9b13bae1c71aa416
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-5748199af356c3243a46a466e73b5d0bab7eaa0c56895e1d0f903d637f61d0bb.yml
|
||||
openapi_spec_hash: c04f6b6be54b05d9b1283c24e870163b
|
||||
config_hash: 1ae82c93499b9f0b9ba828b8919f9cb3
|
||||
|
||||
@@ -147,7 +147,7 @@ export namespace Config {
|
||||
|
||||
npm?: string;
|
||||
|
||||
options?: { [key: string]: unknown };
|
||||
options?: Provider.Options;
|
||||
}
|
||||
|
||||
export namespace Provider {
|
||||
@@ -190,6 +190,14 @@ export namespace Config {
|
||||
output: number;
|
||||
}
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
apiKey?: string;
|
||||
|
||||
baseURL?: string;
|
||||
|
||||
[k: string]: unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ export type EventListResponse =
|
||||
| EventListResponse.EventMessageUpdated
|
||||
| EventListResponse.EventMessageRemoved
|
||||
| EventListResponse.EventMessagePartUpdated
|
||||
| EventListResponse.EventMessagePartRemoved
|
||||
| EventListResponse.EventStorageWrite
|
||||
| EventListResponse.EventSessionUpdated
|
||||
| EventListResponse.EventSessionDeleted
|
||||
@@ -135,6 +136,20 @@ export namespace EventListResponse {
|
||||
}
|
||||
}
|
||||
|
||||
export interface EventMessagePartRemoved {
|
||||
properties: EventMessagePartRemoved.Properties;
|
||||
|
||||
type: 'message.part.removed';
|
||||
}
|
||||
|
||||
export namespace EventMessagePartRemoved {
|
||||
export interface Properties {
|
||||
messageID: string;
|
||||
|
||||
partID: string;
|
||||
}
|
||||
}
|
||||
|
||||
export interface EventStorageWrite {
|
||||
properties: EventStorageWrite.Properties;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user