@opencode-ai/sdk 0.0.0-opentui-202510222250 → 0.0.0-opentui-202510232124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/types.gen.d.ts +36 -10
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -516,11 +516,21 @@ export type Path = {
|
|
|
516
516
|
worktree: string;
|
|
517
517
|
directory: string;
|
|
518
518
|
};
|
|
519
|
+
export type FileDiff = {
|
|
520
|
+
file: string;
|
|
521
|
+
before: string;
|
|
522
|
+
after: string;
|
|
523
|
+
additions: number;
|
|
524
|
+
deletions: number;
|
|
525
|
+
};
|
|
519
526
|
export type Session = {
|
|
520
527
|
id: string;
|
|
521
528
|
projectID: string;
|
|
522
529
|
directory: string;
|
|
523
530
|
parentID?: string;
|
|
531
|
+
summary?: {
|
|
532
|
+
diffs: Array<FileDiff>;
|
|
533
|
+
};
|
|
524
534
|
share?: {
|
|
525
535
|
url: string;
|
|
526
536
|
};
|
|
@@ -562,13 +572,6 @@ export type Todo = {
|
|
|
562
572
|
*/
|
|
563
573
|
id: string;
|
|
564
574
|
};
|
|
565
|
-
export type FileDiff = {
|
|
566
|
-
file: string;
|
|
567
|
-
before: string;
|
|
568
|
-
after: string;
|
|
569
|
-
additions: number;
|
|
570
|
-
deletions: number;
|
|
571
|
-
};
|
|
572
575
|
export type UserMessage = {
|
|
573
576
|
id: string;
|
|
574
577
|
sessionID: string;
|
|
@@ -606,6 +609,18 @@ export type MessageAbortedError = {
|
|
|
606
609
|
message: string;
|
|
607
610
|
};
|
|
608
611
|
};
|
|
612
|
+
export type ApiError = {
|
|
613
|
+
name: "APIError";
|
|
614
|
+
data: {
|
|
615
|
+
message: string;
|
|
616
|
+
statusCode?: number;
|
|
617
|
+
isRetryable: boolean;
|
|
618
|
+
responseHeaders?: {
|
|
619
|
+
[key: string]: string;
|
|
620
|
+
};
|
|
621
|
+
responseBody?: string;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
609
624
|
export type AssistantMessage = {
|
|
610
625
|
id: string;
|
|
611
626
|
sessionID: string;
|
|
@@ -614,7 +629,7 @@ export type AssistantMessage = {
|
|
|
614
629
|
created: number;
|
|
615
630
|
completed?: number;
|
|
616
631
|
};
|
|
617
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError;
|
|
632
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
618
633
|
system: Array<string>;
|
|
619
634
|
finish?: string;
|
|
620
635
|
parentID: string;
|
|
@@ -821,7 +836,18 @@ export type AgentPart = {
|
|
|
821
836
|
end: number;
|
|
822
837
|
};
|
|
823
838
|
};
|
|
824
|
-
export type
|
|
839
|
+
export type RetryPart = {
|
|
840
|
+
id: string;
|
|
841
|
+
sessionID: string;
|
|
842
|
+
messageID: string;
|
|
843
|
+
type: "retry";
|
|
844
|
+
attempt: number;
|
|
845
|
+
error: ApiError;
|
|
846
|
+
time: {
|
|
847
|
+
created: number;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
export type Part = TextPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart;
|
|
825
851
|
export type TextPartInput = {
|
|
826
852
|
id?: string;
|
|
827
853
|
type: "text";
|
|
@@ -1144,7 +1170,7 @@ export type EventSessionError = {
|
|
|
1144
1170
|
type: "session.error";
|
|
1145
1171
|
properties: {
|
|
1146
1172
|
sessionID?: string;
|
|
1147
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError;
|
|
1173
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
1148
1174
|
};
|
|
1149
1175
|
};
|
|
1150
1176
|
export type EventServerConnected = {
|
package/package.json
CHANGED