@opencode-ai/sdk 0.0.0-snapshot-kmdr-debug-202512091356 → 0.0.0-snapshot-terminal-title-animation-202512151259
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/v2/gen/sdk.gen.d.ts +24 -1
- package/dist/v2/gen/sdk.gen.js +39 -0
- package/dist/v2/gen/types.gen.d.ts +228 -21
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiToastShow, FileListResponses, FilePartInput, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalEventResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, PathGetResponses, PermissionRespondErrors, PermissionRespondResponses, ProjectCurrentResponses, ProjectListResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses } from "./types.gen.js";
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiToastShow, FileListResponses, FilePartInput, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalDisposeResponses, GlobalEventResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, PathGetResponses, PermissionRespondErrors, PermissionRespondResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -32,6 +32,12 @@ export declare class Global extends HeyApiClient {
|
|
|
32
32
|
* Subscribe to global events from the OpenCode system using server-sent events.
|
|
33
33
|
*/
|
|
34
34
|
event<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<GlobalEventResponses, unknown>>;
|
|
35
|
+
/**
|
|
36
|
+
* Dispose instance
|
|
37
|
+
*
|
|
38
|
+
* Clean up and dispose all OpenCode instances, releasing all resources.
|
|
39
|
+
*/
|
|
40
|
+
dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
35
41
|
}
|
|
36
42
|
export declare class Project extends HeyApiClient {
|
|
37
43
|
/**
|
|
@@ -50,6 +56,20 @@ export declare class Project extends HeyApiClient {
|
|
|
50
56
|
current<ThrowOnError extends boolean = false>(parameters?: {
|
|
51
57
|
directory?: string;
|
|
52
58
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
|
|
59
|
+
/**
|
|
60
|
+
* Update project
|
|
61
|
+
*
|
|
62
|
+
* Update project properties such as name, icon and color.
|
|
63
|
+
*/
|
|
64
|
+
update<ThrowOnError extends boolean = false>(parameters: {
|
|
65
|
+
projectID: string;
|
|
66
|
+
directory?: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
icon?: {
|
|
69
|
+
url?: string;
|
|
70
|
+
color?: string;
|
|
71
|
+
};
|
|
72
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
|
|
53
73
|
}
|
|
54
74
|
export declare class Pty extends HeyApiClient {
|
|
55
75
|
/**
|
|
@@ -248,6 +268,9 @@ export declare class Session extends HeyApiClient {
|
|
|
248
268
|
sessionID: string;
|
|
249
269
|
directory?: string;
|
|
250
270
|
title?: string;
|
|
271
|
+
time?: {
|
|
272
|
+
archived?: number;
|
|
273
|
+
};
|
|
251
274
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUpdateResponses, SessionUpdateErrors, ThrowOnError, "fields">;
|
|
252
275
|
/**
|
|
253
276
|
* Get session children
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -33,6 +33,17 @@ export class Global extends HeyApiClient {
|
|
|
33
33
|
...options,
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Dispose instance
|
|
38
|
+
*
|
|
39
|
+
* Clean up and dispose all OpenCode instances, releasing all resources.
|
|
40
|
+
*/
|
|
41
|
+
dispose(options) {
|
|
42
|
+
return (options?.client ?? this.client).post({
|
|
43
|
+
url: "/global/dispose",
|
|
44
|
+
...options,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
36
47
|
}
|
|
37
48
|
export class Project extends HeyApiClient {
|
|
38
49
|
/**
|
|
@@ -61,6 +72,33 @@ export class Project extends HeyApiClient {
|
|
|
61
72
|
...params,
|
|
62
73
|
});
|
|
63
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Update project
|
|
77
|
+
*
|
|
78
|
+
* Update project properties such as name, icon and color.
|
|
79
|
+
*/
|
|
80
|
+
update(parameters, options) {
|
|
81
|
+
const params = buildClientParams([parameters], [
|
|
82
|
+
{
|
|
83
|
+
args: [
|
|
84
|
+
{ in: "path", key: "projectID" },
|
|
85
|
+
{ in: "query", key: "directory" },
|
|
86
|
+
{ in: "body", key: "name" },
|
|
87
|
+
{ in: "body", key: "icon" },
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
]);
|
|
91
|
+
return (options?.client ?? this.client).patch({
|
|
92
|
+
url: "/project/{projectID}",
|
|
93
|
+
...options,
|
|
94
|
+
...params,
|
|
95
|
+
headers: {
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
...options?.headers,
|
|
98
|
+
...params.headers,
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
64
102
|
}
|
|
65
103
|
export class Pty extends HeyApiClient {
|
|
66
104
|
/**
|
|
@@ -432,6 +470,7 @@ export class Session extends HeyApiClient {
|
|
|
432
470
|
{ in: "path", key: "sessionID" },
|
|
433
471
|
{ in: "query", key: "directory" },
|
|
434
472
|
{ in: "body", key: "title" },
|
|
473
|
+
{ in: "body", key: "time" },
|
|
435
474
|
],
|
|
436
475
|
},
|
|
437
476
|
]);
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type EventServerInstanceDisposed = {
|
|
5
|
-
type: "server.instance.disposed";
|
|
6
|
-
properties: {
|
|
7
|
-
directory: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
export type EventInstallationUpdated = {
|
|
11
5
|
type: "installation.updated";
|
|
12
6
|
properties: {
|
|
@@ -19,6 +13,31 @@ export type EventInstallationUpdateAvailable = {
|
|
|
19
13
|
version: string;
|
|
20
14
|
};
|
|
21
15
|
};
|
|
16
|
+
export type Project = {
|
|
17
|
+
id: string;
|
|
18
|
+
worktree: string;
|
|
19
|
+
vcs?: "git";
|
|
20
|
+
name?: string;
|
|
21
|
+
icon?: {
|
|
22
|
+
url?: string;
|
|
23
|
+
color?: string;
|
|
24
|
+
};
|
|
25
|
+
time: {
|
|
26
|
+
created: number;
|
|
27
|
+
updated: number;
|
|
28
|
+
initialized?: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type EventProjectUpdated = {
|
|
32
|
+
type: "project.updated";
|
|
33
|
+
properties: Project;
|
|
34
|
+
};
|
|
35
|
+
export type EventServerInstanceDisposed = {
|
|
36
|
+
type: "server.instance.disposed";
|
|
37
|
+
properties: {
|
|
38
|
+
directory: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
22
41
|
export type EventLspClientDiagnostics = {
|
|
23
42
|
type: "lsp.client.diagnostics";
|
|
24
43
|
properties: {
|
|
@@ -485,6 +504,7 @@ export type Session = {
|
|
|
485
504
|
created: number;
|
|
486
505
|
updated: number;
|
|
487
506
|
compacting?: number;
|
|
507
|
+
archived?: number;
|
|
488
508
|
};
|
|
489
509
|
revert?: {
|
|
490
510
|
messageID: string;
|
|
@@ -602,21 +622,17 @@ export type EventServerConnected = {
|
|
|
602
622
|
[key: string]: unknown;
|
|
603
623
|
};
|
|
604
624
|
};
|
|
605
|
-
export type
|
|
625
|
+
export type EventGlobalDisposed = {
|
|
626
|
+
type: "global.disposed";
|
|
627
|
+
properties: {
|
|
628
|
+
[key: string]: unknown;
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected | EventGlobalDisposed;
|
|
606
632
|
export type GlobalEvent = {
|
|
607
633
|
directory: string;
|
|
608
634
|
payload: Event;
|
|
609
635
|
};
|
|
610
|
-
export type Project = {
|
|
611
|
-
id: string;
|
|
612
|
-
worktree: string;
|
|
613
|
-
vcsDir?: string;
|
|
614
|
-
vcs?: "git";
|
|
615
|
-
time: {
|
|
616
|
-
created: number;
|
|
617
|
-
initialized?: number;
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
636
|
export type BadRequestError = {
|
|
621
637
|
data: unknown;
|
|
622
638
|
errors: Array<{
|
|
@@ -778,10 +794,6 @@ export type KeybindsConfig = {
|
|
|
778
794
|
* Clear input field
|
|
779
795
|
*/
|
|
780
796
|
input_clear?: string;
|
|
781
|
-
/**
|
|
782
|
-
* Forward delete
|
|
783
|
-
*/
|
|
784
|
-
input_forward_delete?: string;
|
|
785
797
|
/**
|
|
786
798
|
* Paste from clipboard
|
|
787
799
|
*/
|
|
@@ -794,6 +806,138 @@ export type KeybindsConfig = {
|
|
|
794
806
|
* Insert newline in input
|
|
795
807
|
*/
|
|
796
808
|
input_newline?: string;
|
|
809
|
+
/**
|
|
810
|
+
* Move cursor left in input
|
|
811
|
+
*/
|
|
812
|
+
input_move_left?: string;
|
|
813
|
+
/**
|
|
814
|
+
* Move cursor right in input
|
|
815
|
+
*/
|
|
816
|
+
input_move_right?: string;
|
|
817
|
+
/**
|
|
818
|
+
* Move cursor up in input
|
|
819
|
+
*/
|
|
820
|
+
input_move_up?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Move cursor down in input
|
|
823
|
+
*/
|
|
824
|
+
input_move_down?: string;
|
|
825
|
+
/**
|
|
826
|
+
* Select left in input
|
|
827
|
+
*/
|
|
828
|
+
input_select_left?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Select right in input
|
|
831
|
+
*/
|
|
832
|
+
input_select_right?: string;
|
|
833
|
+
/**
|
|
834
|
+
* Select up in input
|
|
835
|
+
*/
|
|
836
|
+
input_select_up?: string;
|
|
837
|
+
/**
|
|
838
|
+
* Select down in input
|
|
839
|
+
*/
|
|
840
|
+
input_select_down?: string;
|
|
841
|
+
/**
|
|
842
|
+
* Move to start of line in input
|
|
843
|
+
*/
|
|
844
|
+
input_line_home?: string;
|
|
845
|
+
/**
|
|
846
|
+
* Move to end of line in input
|
|
847
|
+
*/
|
|
848
|
+
input_line_end?: string;
|
|
849
|
+
/**
|
|
850
|
+
* Select to start of line in input
|
|
851
|
+
*/
|
|
852
|
+
input_select_line_home?: string;
|
|
853
|
+
/**
|
|
854
|
+
* Select to end of line in input
|
|
855
|
+
*/
|
|
856
|
+
input_select_line_end?: string;
|
|
857
|
+
/**
|
|
858
|
+
* Move to start of visual line in input
|
|
859
|
+
*/
|
|
860
|
+
input_visual_line_home?: string;
|
|
861
|
+
/**
|
|
862
|
+
* Move to end of visual line in input
|
|
863
|
+
*/
|
|
864
|
+
input_visual_line_end?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Select to start of visual line in input
|
|
867
|
+
*/
|
|
868
|
+
input_select_visual_line_home?: string;
|
|
869
|
+
/**
|
|
870
|
+
* Select to end of visual line in input
|
|
871
|
+
*/
|
|
872
|
+
input_select_visual_line_end?: string;
|
|
873
|
+
/**
|
|
874
|
+
* Move to start of buffer in input
|
|
875
|
+
*/
|
|
876
|
+
input_buffer_home?: string;
|
|
877
|
+
/**
|
|
878
|
+
* Move to end of buffer in input
|
|
879
|
+
*/
|
|
880
|
+
input_buffer_end?: string;
|
|
881
|
+
/**
|
|
882
|
+
* Select to start of buffer in input
|
|
883
|
+
*/
|
|
884
|
+
input_select_buffer_home?: string;
|
|
885
|
+
/**
|
|
886
|
+
* Select to end of buffer in input
|
|
887
|
+
*/
|
|
888
|
+
input_select_buffer_end?: string;
|
|
889
|
+
/**
|
|
890
|
+
* Delete line in input
|
|
891
|
+
*/
|
|
892
|
+
input_delete_line?: string;
|
|
893
|
+
/**
|
|
894
|
+
* Delete to end of line in input
|
|
895
|
+
*/
|
|
896
|
+
input_delete_to_line_end?: string;
|
|
897
|
+
/**
|
|
898
|
+
* Delete to start of line in input
|
|
899
|
+
*/
|
|
900
|
+
input_delete_to_line_start?: string;
|
|
901
|
+
/**
|
|
902
|
+
* Backspace in input
|
|
903
|
+
*/
|
|
904
|
+
input_backspace?: string;
|
|
905
|
+
/**
|
|
906
|
+
* Delete character in input
|
|
907
|
+
*/
|
|
908
|
+
input_delete?: string;
|
|
909
|
+
/**
|
|
910
|
+
* Undo in input
|
|
911
|
+
*/
|
|
912
|
+
input_undo?: string;
|
|
913
|
+
/**
|
|
914
|
+
* Redo in input
|
|
915
|
+
*/
|
|
916
|
+
input_redo?: string;
|
|
917
|
+
/**
|
|
918
|
+
* Move word forward in input
|
|
919
|
+
*/
|
|
920
|
+
input_word_forward?: string;
|
|
921
|
+
/**
|
|
922
|
+
* Move word backward in input
|
|
923
|
+
*/
|
|
924
|
+
input_word_backward?: string;
|
|
925
|
+
/**
|
|
926
|
+
* Select word forward in input
|
|
927
|
+
*/
|
|
928
|
+
input_select_word_forward?: string;
|
|
929
|
+
/**
|
|
930
|
+
* Select word backward in input
|
|
931
|
+
*/
|
|
932
|
+
input_select_word_backward?: string;
|
|
933
|
+
/**
|
|
934
|
+
* Delete word forward in input
|
|
935
|
+
*/
|
|
936
|
+
input_delete_word_forward?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Delete word backward in input
|
|
939
|
+
*/
|
|
940
|
+
input_delete_word_backward?: string;
|
|
797
941
|
/**
|
|
798
942
|
* Previous history item
|
|
799
943
|
*/
|
|
@@ -868,11 +1012,15 @@ export type ProviderConfig = {
|
|
|
868
1012
|
[key: string]: {
|
|
869
1013
|
id?: string;
|
|
870
1014
|
name?: string;
|
|
1015
|
+
family?: string;
|
|
871
1016
|
release_date?: string;
|
|
872
1017
|
attachment?: boolean;
|
|
873
1018
|
reasoning?: boolean;
|
|
874
1019
|
temperature?: boolean;
|
|
875
1020
|
tool_call?: boolean;
|
|
1021
|
+
interleaved?: true | {
|
|
1022
|
+
field: "reasoning_content" | "reasoning_details";
|
|
1023
|
+
};
|
|
876
1024
|
cost?: {
|
|
877
1025
|
input: number;
|
|
878
1026
|
output: number;
|
|
@@ -1199,6 +1347,7 @@ export type ToolListItem = {
|
|
|
1199
1347
|
};
|
|
1200
1348
|
export type ToolList = Array<ToolListItem>;
|
|
1201
1349
|
export type Path = {
|
|
1350
|
+
home: string;
|
|
1202
1351
|
state: string;
|
|
1203
1352
|
config: string;
|
|
1204
1353
|
worktree: string;
|
|
@@ -1263,6 +1412,7 @@ export type Model = {
|
|
|
1263
1412
|
npm: string;
|
|
1264
1413
|
};
|
|
1265
1414
|
name: string;
|
|
1415
|
+
family?: string;
|
|
1266
1416
|
capabilities: {
|
|
1267
1417
|
temperature: boolean;
|
|
1268
1418
|
reasoning: boolean;
|
|
@@ -1282,6 +1432,9 @@ export type Model = {
|
|
|
1282
1432
|
video: boolean;
|
|
1283
1433
|
pdf: boolean;
|
|
1284
1434
|
};
|
|
1435
|
+
interleaved: boolean | {
|
|
1436
|
+
field: "reasoning_content" | "reasoning_details";
|
|
1437
|
+
};
|
|
1285
1438
|
};
|
|
1286
1439
|
cost: {
|
|
1287
1440
|
input: number;
|
|
@@ -1464,6 +1617,19 @@ export type GlobalEventResponses = {
|
|
|
1464
1617
|
200: GlobalEvent;
|
|
1465
1618
|
};
|
|
1466
1619
|
export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
|
|
1620
|
+
export type GlobalDisposeData = {
|
|
1621
|
+
body?: never;
|
|
1622
|
+
path?: never;
|
|
1623
|
+
query?: never;
|
|
1624
|
+
url: "/global/dispose";
|
|
1625
|
+
};
|
|
1626
|
+
export type GlobalDisposeResponses = {
|
|
1627
|
+
/**
|
|
1628
|
+
* Global disposed
|
|
1629
|
+
*/
|
|
1630
|
+
200: boolean;
|
|
1631
|
+
};
|
|
1632
|
+
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
|
|
1467
1633
|
export type ProjectListData = {
|
|
1468
1634
|
body?: never;
|
|
1469
1635
|
path?: never;
|
|
@@ -1494,6 +1660,40 @@ export type ProjectCurrentResponses = {
|
|
|
1494
1660
|
200: Project;
|
|
1495
1661
|
};
|
|
1496
1662
|
export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
|
|
1663
|
+
export type ProjectUpdateData = {
|
|
1664
|
+
body?: {
|
|
1665
|
+
name?: string;
|
|
1666
|
+
icon?: {
|
|
1667
|
+
url?: string;
|
|
1668
|
+
color?: string;
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
path: {
|
|
1672
|
+
projectID: string;
|
|
1673
|
+
};
|
|
1674
|
+
query?: {
|
|
1675
|
+
directory?: string;
|
|
1676
|
+
};
|
|
1677
|
+
url: "/project/{projectID}";
|
|
1678
|
+
};
|
|
1679
|
+
export type ProjectUpdateErrors = {
|
|
1680
|
+
/**
|
|
1681
|
+
* Bad request
|
|
1682
|
+
*/
|
|
1683
|
+
400: BadRequestError;
|
|
1684
|
+
/**
|
|
1685
|
+
* Not found
|
|
1686
|
+
*/
|
|
1687
|
+
404: NotFoundError;
|
|
1688
|
+
};
|
|
1689
|
+
export type ProjectUpdateError = ProjectUpdateErrors[keyof ProjectUpdateErrors];
|
|
1690
|
+
export type ProjectUpdateResponses = {
|
|
1691
|
+
/**
|
|
1692
|
+
* Updated project information
|
|
1693
|
+
*/
|
|
1694
|
+
200: Project;
|
|
1695
|
+
};
|
|
1696
|
+
export type ProjectUpdateResponse = ProjectUpdateResponses[keyof ProjectUpdateResponses];
|
|
1497
1697
|
export type PtyListData = {
|
|
1498
1698
|
body?: never;
|
|
1499
1699
|
path?: never;
|
|
@@ -1892,6 +2092,9 @@ export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
|
|
|
1892
2092
|
export type SessionUpdateData = {
|
|
1893
2093
|
body?: {
|
|
1894
2094
|
title?: string;
|
|
2095
|
+
time?: {
|
|
2096
|
+
archived?: number;
|
|
2097
|
+
};
|
|
1895
2098
|
};
|
|
1896
2099
|
path: {
|
|
1897
2100
|
sessionID: string;
|
|
@@ -2572,11 +2775,15 @@ export type ProviderListResponses = {
|
|
|
2572
2775
|
[key: string]: {
|
|
2573
2776
|
id: string;
|
|
2574
2777
|
name: string;
|
|
2778
|
+
family?: string;
|
|
2575
2779
|
release_date: string;
|
|
2576
2780
|
attachment: boolean;
|
|
2577
2781
|
reasoning: boolean;
|
|
2578
2782
|
temperature: boolean;
|
|
2579
2783
|
tool_call: boolean;
|
|
2784
|
+
interleaved?: true | {
|
|
2785
|
+
field: "reasoning_content" | "reasoning_details";
|
|
2786
|
+
};
|
|
2580
2787
|
cost?: {
|
|
2581
2788
|
input: number;
|
|
2582
2789
|
output: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/sdk",
|
|
4
|
-
"version": "0.0.0-snapshot-
|
|
4
|
+
"version": "0.0.0-snapshot-terminal-title-animation-202512151259",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsgo --noEmit",
|