@opencode-ai/sdk 0.0.0-snapshot-pnpm-202511302105 → 0.0.0-snapshot-kmdr-debug-202512052155
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/sdk.gen.d.ts +28 -1
- package/dist/gen/sdk.gen.js +65 -0
- package/dist/gen/types.gen.d.ts +392 -107
- package/package.json +1 -1
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from "./client/index.js";
|
|
2
|
-
import type { GlobalEventData, GlobalEventResponses, ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, InstanceDisposeData, InstanceDisposeResponses, PathGetData, PathGetResponses, VcsGetData, VcsGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionStatusData, SessionStatusResponses, SessionStatusErrors, SessionDeleteData, SessionDeleteResponses, SessionDeleteErrors, SessionGetData, SessionGetResponses, SessionGetErrors, SessionUpdateData, SessionUpdateResponses, SessionUpdateErrors, SessionChildrenData, SessionChildrenResponses, SessionChildrenErrors, SessionTodoData, SessionTodoResponses, SessionTodoErrors, SessionInitData, SessionInitResponses, SessionInitErrors, SessionForkData, SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionAbortErrors, SessionUnshareData, SessionUnshareResponses, SessionUnshareErrors, SessionShareData, SessionShareResponses, SessionShareErrors, SessionDiffData, SessionDiffResponses, SessionDiffErrors, SessionSummarizeData, SessionSummarizeResponses, SessionSummarizeErrors, SessionMessagesData, SessionMessagesResponses, SessionMessagesErrors, SessionPromptData, SessionPromptResponses, SessionPromptErrors, SessionMessageData, SessionMessageResponses, SessionMessageErrors, SessionPromptAsyncData, SessionPromptAsyncResponses, SessionPromptAsyncErrors, SessionCommandData, SessionCommandResponses, SessionCommandErrors, SessionShellData, SessionShellResponses, SessionShellErrors, SessionRevertData, SessionRevertResponses, SessionRevertErrors, SessionUnrevertData, SessionUnrevertResponses, SessionUnrevertErrors, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, ProviderListData, ProviderListResponses, ProviderAuthData, ProviderAuthResponses, ProviderOauthAuthorizeData, ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ProviderOauthCallbackData, ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppLogErrors, AppAgentsData, AppAgentsResponses, McpStatusData, McpStatusResponses, McpAddData, McpAddResponses, McpAddErrors, LspStatusData, LspStatusResponses, FormatterStatusData, FormatterStatusResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiAppendPromptErrors, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiExecuteCommandErrors, TuiShowToastData, TuiShowToastResponses, TuiPublishData, TuiPublishResponses, TuiPublishErrors, TuiControlNextData, TuiControlNextResponses, TuiControlResponseData, TuiControlResponseResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
2
|
+
import type { GlobalEventData, GlobalEventResponses, ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, PtyListData, PtyListResponses, PtyCreateData, PtyCreateResponses, PtyCreateErrors, PtyRemoveData, PtyRemoveResponses, PtyRemoveErrors, PtyGetData, PtyGetResponses, PtyGetErrors, PtyUpdateData, PtyUpdateResponses, PtyUpdateErrors, PtyConnectData, PtyConnectResponses, PtyConnectErrors, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, InstanceDisposeData, InstanceDisposeResponses, PathGetData, PathGetResponses, VcsGetData, VcsGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionStatusData, SessionStatusResponses, SessionStatusErrors, SessionDeleteData, SessionDeleteResponses, SessionDeleteErrors, SessionGetData, SessionGetResponses, SessionGetErrors, SessionUpdateData, SessionUpdateResponses, SessionUpdateErrors, SessionChildrenData, SessionChildrenResponses, SessionChildrenErrors, SessionTodoData, SessionTodoResponses, SessionTodoErrors, SessionInitData, SessionInitResponses, SessionInitErrors, SessionForkData, SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionAbortErrors, SessionUnshareData, SessionUnshareResponses, SessionUnshareErrors, SessionShareData, SessionShareResponses, SessionShareErrors, SessionDiffData, SessionDiffResponses, SessionDiffErrors, SessionSummarizeData, SessionSummarizeResponses, SessionSummarizeErrors, SessionMessagesData, SessionMessagesResponses, SessionMessagesErrors, SessionPromptData, SessionPromptResponses, SessionPromptErrors, SessionMessageData, SessionMessageResponses, SessionMessageErrors, SessionPromptAsyncData, SessionPromptAsyncResponses, SessionPromptAsyncErrors, SessionCommandData, SessionCommandResponses, SessionCommandErrors, SessionShellData, SessionShellResponses, SessionShellErrors, SessionRevertData, SessionRevertResponses, SessionRevertErrors, SessionUnrevertData, SessionUnrevertResponses, SessionUnrevertErrors, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, ProviderListData, ProviderListResponses, ProviderAuthData, ProviderAuthResponses, ProviderOauthAuthorizeData, ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ProviderOauthCallbackData, ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppLogErrors, AppAgentsData, AppAgentsResponses, McpStatusData, McpStatusResponses, McpAddData, McpAddResponses, McpAddErrors, LspStatusData, LspStatusResponses, FormatterStatusData, FormatterStatusResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiAppendPromptErrors, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiExecuteCommandErrors, TuiShowToastData, TuiShowToastResponses, TuiPublishData, TuiPublishResponses, TuiPublishErrors, TuiControlNextData, TuiControlNextResponses, TuiControlResponseData, TuiControlResponseResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -35,6 +35,32 @@ declare class Project extends _HeyApiClient {
|
|
|
35
35
|
*/
|
|
36
36
|
current<ThrowOnError extends boolean = false>(options?: Options<ProjectCurrentData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
|
|
37
37
|
}
|
|
38
|
+
declare class Pty extends _HeyApiClient {
|
|
39
|
+
/**
|
|
40
|
+
* List all PTY sessions
|
|
41
|
+
*/
|
|
42
|
+
list<ThrowOnError extends boolean = false>(options?: Options<PtyListData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyListResponses, unknown, ThrowOnError, "fields">;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new PTY session
|
|
45
|
+
*/
|
|
46
|
+
create<ThrowOnError extends boolean = false>(options?: Options<PtyCreateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyCreateResponses, PtyCreateErrors, ThrowOnError, "fields">;
|
|
47
|
+
/**
|
|
48
|
+
* Remove a PTY session
|
|
49
|
+
*/
|
|
50
|
+
remove<ThrowOnError extends boolean = false>(options: Options<PtyRemoveData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyRemoveResponses, PtyRemoveErrors, ThrowOnError, "fields">;
|
|
51
|
+
/**
|
|
52
|
+
* Get PTY session info
|
|
53
|
+
*/
|
|
54
|
+
get<ThrowOnError extends boolean = false>(options: Options<PtyGetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyGetResponses, PtyGetErrors, ThrowOnError, "fields">;
|
|
55
|
+
/**
|
|
56
|
+
* Update PTY session
|
|
57
|
+
*/
|
|
58
|
+
update<ThrowOnError extends boolean = false>(options: Options<PtyUpdateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyUpdateResponses, PtyUpdateErrors, ThrowOnError, "fields">;
|
|
59
|
+
/**
|
|
60
|
+
* Connect to a PTY session
|
|
61
|
+
*/
|
|
62
|
+
connect<ThrowOnError extends boolean = false>(options: Options<PtyConnectData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyConnectResponses, PtyConnectErrors, ThrowOnError, "fields">;
|
|
63
|
+
}
|
|
38
64
|
declare class Config extends _HeyApiClient {
|
|
39
65
|
/**
|
|
40
66
|
* Get config info
|
|
@@ -330,6 +356,7 @@ export declare class OpencodeClient extends _HeyApiClient {
|
|
|
330
356
|
postSessionIdPermissionsPermissionId<ThrowOnError extends boolean = false>(options: Options<PostSessionIdPermissionsPermissionIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, ThrowOnError, "fields">;
|
|
331
357
|
global: Global;
|
|
332
358
|
project: Project;
|
|
359
|
+
pty: Pty;
|
|
333
360
|
config: Config;
|
|
334
361
|
tool: Tool;
|
|
335
362
|
instance: Instance;
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -39,6 +39,70 @@ class Project extends _HeyApiClient {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
class Pty extends _HeyApiClient {
|
|
43
|
+
/**
|
|
44
|
+
* List all PTY sessions
|
|
45
|
+
*/
|
|
46
|
+
list(options) {
|
|
47
|
+
return (options?.client ?? this._client).get({
|
|
48
|
+
url: "/pty",
|
|
49
|
+
...options,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Create a new PTY session
|
|
54
|
+
*/
|
|
55
|
+
create(options) {
|
|
56
|
+
return (options?.client ?? this._client).post({
|
|
57
|
+
url: "/pty",
|
|
58
|
+
...options,
|
|
59
|
+
headers: {
|
|
60
|
+
"Content-Type": "application/json",
|
|
61
|
+
...options?.headers,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Remove a PTY session
|
|
67
|
+
*/
|
|
68
|
+
remove(options) {
|
|
69
|
+
return (options.client ?? this._client).delete({
|
|
70
|
+
url: "/pty/{id}",
|
|
71
|
+
...options,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get PTY session info
|
|
76
|
+
*/
|
|
77
|
+
get(options) {
|
|
78
|
+
return (options.client ?? this._client).get({
|
|
79
|
+
url: "/pty/{id}",
|
|
80
|
+
...options,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Update PTY session
|
|
85
|
+
*/
|
|
86
|
+
update(options) {
|
|
87
|
+
return (options.client ?? this._client).put({
|
|
88
|
+
url: "/pty/{id}",
|
|
89
|
+
...options,
|
|
90
|
+
headers: {
|
|
91
|
+
"Content-Type": "application/json",
|
|
92
|
+
...options.headers,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Connect to a PTY session
|
|
98
|
+
*/
|
|
99
|
+
connect(options) {
|
|
100
|
+
return (options.client ?? this._client).get({
|
|
101
|
+
url: "/pty/{id}/connect",
|
|
102
|
+
...options,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
42
106
|
class Config extends _HeyApiClient {
|
|
43
107
|
/**
|
|
44
108
|
* Get config info
|
|
@@ -737,6 +801,7 @@ export class OpencodeClient extends _HeyApiClient {
|
|
|
737
801
|
}
|
|
738
802
|
global = new Global({ client: this._client });
|
|
739
803
|
project = new Project({ client: this._client });
|
|
804
|
+
pty = new Pty({ client: this._client });
|
|
740
805
|
config = new Config({ client: this._client });
|
|
741
806
|
tool = new Tool({ client: this._client });
|
|
742
807
|
instance = new Instance({ client: this._client });
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export type EventServerInstanceDisposed = {
|
|
2
|
+
type: "server.instance.disposed";
|
|
3
|
+
properties: {
|
|
4
|
+
directory: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
1
7
|
export type EventInstallationUpdated = {
|
|
2
8
|
type: "installation.updated";
|
|
3
9
|
properties: {
|
|
@@ -553,13 +559,47 @@ export type EventTuiToastShow = {
|
|
|
553
559
|
duration?: number;
|
|
554
560
|
};
|
|
555
561
|
};
|
|
562
|
+
export type Pty = {
|
|
563
|
+
id: string;
|
|
564
|
+
title: string;
|
|
565
|
+
command: string;
|
|
566
|
+
args: Array<string>;
|
|
567
|
+
cwd: string;
|
|
568
|
+
status: "running" | "exited";
|
|
569
|
+
pid: number;
|
|
570
|
+
};
|
|
571
|
+
export type EventPtyCreated = {
|
|
572
|
+
type: "pty.created";
|
|
573
|
+
properties: {
|
|
574
|
+
info: Pty;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
export type EventPtyUpdated = {
|
|
578
|
+
type: "pty.updated";
|
|
579
|
+
properties: {
|
|
580
|
+
info: Pty;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
export type EventPtyExited = {
|
|
584
|
+
type: "pty.exited";
|
|
585
|
+
properties: {
|
|
586
|
+
id: string;
|
|
587
|
+
exitCode: number;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
export type EventPtyDeleted = {
|
|
591
|
+
type: "pty.deleted";
|
|
592
|
+
properties: {
|
|
593
|
+
id: string;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
556
596
|
export type EventServerConnected = {
|
|
557
597
|
type: "server.connected";
|
|
558
598
|
properties: {
|
|
559
599
|
[key: string]: unknown;
|
|
560
600
|
};
|
|
561
601
|
};
|
|
562
|
-
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventServerConnected;
|
|
602
|
+
export type Event = EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | 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;
|
|
563
603
|
export type GlobalEvent = {
|
|
564
604
|
directory: string;
|
|
565
605
|
payload: Event;
|
|
@@ -574,6 +614,19 @@ export type Project = {
|
|
|
574
614
|
initialized?: number;
|
|
575
615
|
};
|
|
576
616
|
};
|
|
617
|
+
export type BadRequestError = {
|
|
618
|
+
data: unknown;
|
|
619
|
+
errors: Array<{
|
|
620
|
+
[key: string]: unknown;
|
|
621
|
+
}>;
|
|
622
|
+
success: false;
|
|
623
|
+
};
|
|
624
|
+
export type NotFoundError = {
|
|
625
|
+
name: "NotFoundError";
|
|
626
|
+
data: {
|
|
627
|
+
message: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
577
630
|
/**
|
|
578
631
|
* Custom keybind configurations
|
|
579
632
|
*/
|
|
@@ -598,6 +651,14 @@ export type KeybindsConfig = {
|
|
|
598
651
|
* Toggle sidebar
|
|
599
652
|
*/
|
|
600
653
|
sidebar_toggle?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Toggle session scrollbar
|
|
656
|
+
*/
|
|
657
|
+
scrollbar_toggle?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Toggle username visibility
|
|
660
|
+
*/
|
|
661
|
+
username_toggle?: string;
|
|
601
662
|
/**
|
|
602
663
|
* View status
|
|
603
664
|
*/
|
|
@@ -658,6 +719,10 @@ export type KeybindsConfig = {
|
|
|
658
719
|
* Navigate to last message
|
|
659
720
|
*/
|
|
660
721
|
messages_last?: string;
|
|
722
|
+
/**
|
|
723
|
+
* Navigate to last user message
|
|
724
|
+
*/
|
|
725
|
+
messages_last_user?: string;
|
|
661
726
|
/**
|
|
662
727
|
* Copy message
|
|
663
728
|
*/
|
|
@@ -674,6 +739,10 @@ export type KeybindsConfig = {
|
|
|
674
739
|
* Toggle code block concealment in messages
|
|
675
740
|
*/
|
|
676
741
|
messages_toggle_conceal?: string;
|
|
742
|
+
/**
|
|
743
|
+
* Toggle tool details visibility
|
|
744
|
+
*/
|
|
745
|
+
tool_details?: string;
|
|
677
746
|
/**
|
|
678
747
|
* List available models
|
|
679
748
|
*/
|
|
@@ -761,6 +830,10 @@ export type AgentConfig = {
|
|
|
761
830
|
* Hex color code for the agent (e.g., #FF5733)
|
|
762
831
|
*/
|
|
763
832
|
color?: string;
|
|
833
|
+
/**
|
|
834
|
+
* Maximum number of agentic iterations before forcing text-only response
|
|
835
|
+
*/
|
|
836
|
+
maxSteps?: number;
|
|
764
837
|
permission?: {
|
|
765
838
|
edit?: "ask" | "allow" | "deny";
|
|
766
839
|
bash?: ("ask" | "allow" | "deny") | {
|
|
@@ -772,7 +845,7 @@ export type AgentConfig = {
|
|
|
772
845
|
};
|
|
773
846
|
[key: string]: unknown | string | number | {
|
|
774
847
|
[key: string]: boolean;
|
|
775
|
-
} | boolean | ("subagent" | "primary" | "all") | {
|
|
848
|
+
} | boolean | ("subagent" | "primary" | "all") | number | {
|
|
776
849
|
edit?: "ask" | "allow" | "deny";
|
|
777
850
|
bash?: ("ask" | "allow" | "deny") | {
|
|
778
851
|
[key: string]: "ask" | "allow" | "deny";
|
|
@@ -782,6 +855,74 @@ export type AgentConfig = {
|
|
|
782
855
|
external_directory?: "ask" | "allow" | "deny";
|
|
783
856
|
} | undefined;
|
|
784
857
|
};
|
|
858
|
+
export type ProviderConfig = {
|
|
859
|
+
api?: string;
|
|
860
|
+
name?: string;
|
|
861
|
+
env?: Array<string>;
|
|
862
|
+
id?: string;
|
|
863
|
+
npm?: string;
|
|
864
|
+
models?: {
|
|
865
|
+
[key: string]: {
|
|
866
|
+
id?: string;
|
|
867
|
+
name?: string;
|
|
868
|
+
release_date?: string;
|
|
869
|
+
attachment?: boolean;
|
|
870
|
+
reasoning?: boolean;
|
|
871
|
+
temperature?: boolean;
|
|
872
|
+
tool_call?: boolean;
|
|
873
|
+
cost?: {
|
|
874
|
+
input: number;
|
|
875
|
+
output: number;
|
|
876
|
+
cache_read?: number;
|
|
877
|
+
cache_write?: number;
|
|
878
|
+
context_over_200k?: {
|
|
879
|
+
input: number;
|
|
880
|
+
output: number;
|
|
881
|
+
cache_read?: number;
|
|
882
|
+
cache_write?: number;
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
limit?: {
|
|
886
|
+
context: number;
|
|
887
|
+
output: number;
|
|
888
|
+
};
|
|
889
|
+
modalities?: {
|
|
890
|
+
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
891
|
+
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
892
|
+
};
|
|
893
|
+
experimental?: boolean;
|
|
894
|
+
status?: "alpha" | "beta" | "deprecated";
|
|
895
|
+
options?: {
|
|
896
|
+
[key: string]: unknown;
|
|
897
|
+
};
|
|
898
|
+
headers?: {
|
|
899
|
+
[key: string]: string;
|
|
900
|
+
};
|
|
901
|
+
provider?: {
|
|
902
|
+
npm: string;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
whitelist?: Array<string>;
|
|
907
|
+
blacklist?: Array<string>;
|
|
908
|
+
options?: {
|
|
909
|
+
apiKey?: string;
|
|
910
|
+
baseURL?: string;
|
|
911
|
+
/**
|
|
912
|
+
* GitHub Enterprise URL for copilot authentication
|
|
913
|
+
*/
|
|
914
|
+
enterpriseUrl?: string;
|
|
915
|
+
/**
|
|
916
|
+
* Enable promptCacheKey for this provider (default false)
|
|
917
|
+
*/
|
|
918
|
+
setCacheKey?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
|
|
921
|
+
*/
|
|
922
|
+
timeout?: number | false;
|
|
923
|
+
[key: string]: unknown | string | boolean | (number | false) | undefined;
|
|
924
|
+
};
|
|
925
|
+
};
|
|
785
926
|
export type McpLocalConfig = {
|
|
786
927
|
/**
|
|
787
928
|
* Type of MCP server connection
|
|
@@ -937,74 +1078,7 @@ export type Config = {
|
|
|
937
1078
|
* Custom provider configurations and model overrides
|
|
938
1079
|
*/
|
|
939
1080
|
provider?: {
|
|
940
|
-
[key: string]:
|
|
941
|
-
api?: string;
|
|
942
|
-
name?: string;
|
|
943
|
-
env?: Array<string>;
|
|
944
|
-
id?: string;
|
|
945
|
-
npm?: string;
|
|
946
|
-
models?: {
|
|
947
|
-
[key: string]: {
|
|
948
|
-
id?: string;
|
|
949
|
-
name?: string;
|
|
950
|
-
release_date?: string;
|
|
951
|
-
attachment?: boolean;
|
|
952
|
-
reasoning?: boolean;
|
|
953
|
-
temperature?: boolean;
|
|
954
|
-
tool_call?: boolean;
|
|
955
|
-
cost?: {
|
|
956
|
-
input: number;
|
|
957
|
-
output: number;
|
|
958
|
-
cache_read?: number;
|
|
959
|
-
cache_write?: number;
|
|
960
|
-
context_over_200k?: {
|
|
961
|
-
input: number;
|
|
962
|
-
output: number;
|
|
963
|
-
cache_read?: number;
|
|
964
|
-
cache_write?: number;
|
|
965
|
-
};
|
|
966
|
-
};
|
|
967
|
-
limit?: {
|
|
968
|
-
context: number;
|
|
969
|
-
output: number;
|
|
970
|
-
};
|
|
971
|
-
modalities?: {
|
|
972
|
-
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
973
|
-
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
974
|
-
};
|
|
975
|
-
experimental?: boolean;
|
|
976
|
-
status?: "alpha" | "beta" | "deprecated";
|
|
977
|
-
options?: {
|
|
978
|
-
[key: string]: unknown;
|
|
979
|
-
};
|
|
980
|
-
headers?: {
|
|
981
|
-
[key: string]: string;
|
|
982
|
-
};
|
|
983
|
-
provider?: {
|
|
984
|
-
npm: string;
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
whitelist?: Array<string>;
|
|
989
|
-
blacklist?: Array<string>;
|
|
990
|
-
options?: {
|
|
991
|
-
apiKey?: string;
|
|
992
|
-
baseURL?: string;
|
|
993
|
-
/**
|
|
994
|
-
* GitHub Enterprise URL for copilot authentication
|
|
995
|
-
*/
|
|
996
|
-
enterpriseUrl?: string;
|
|
997
|
-
/**
|
|
998
|
-
* Enable promptCacheKey for this provider (default false)
|
|
999
|
-
*/
|
|
1000
|
-
setCacheKey?: boolean;
|
|
1001
|
-
/**
|
|
1002
|
-
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
|
|
1003
|
-
*/
|
|
1004
|
-
timeout?: number | false;
|
|
1005
|
-
[key: string]: unknown | string | boolean | (number | false) | undefined;
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1081
|
+
[key: string]: ProviderConfig;
|
|
1008
1082
|
};
|
|
1009
1083
|
/**
|
|
1010
1084
|
* MCP (Model Context Protocol) server configurations
|
|
@@ -1086,15 +1160,16 @@ export type Config = {
|
|
|
1086
1160
|
* Enable the batch tool
|
|
1087
1161
|
*/
|
|
1088
1162
|
batch_tool?: boolean;
|
|
1163
|
+
/**
|
|
1164
|
+
* Enable OpenTelemetry spans for AI SDK calls (using the 'experimental_telemetry' flag)
|
|
1165
|
+
*/
|
|
1166
|
+
openTelemetry?: boolean;
|
|
1167
|
+
/**
|
|
1168
|
+
* Tools that should only be available to primary agents.
|
|
1169
|
+
*/
|
|
1170
|
+
primary_tools?: Array<string>;
|
|
1089
1171
|
};
|
|
1090
1172
|
};
|
|
1091
|
-
export type BadRequestError = {
|
|
1092
|
-
data: unknown;
|
|
1093
|
-
errors: Array<{
|
|
1094
|
-
[key: string]: unknown;
|
|
1095
|
-
}>;
|
|
1096
|
-
success: false;
|
|
1097
|
-
};
|
|
1098
1173
|
export type ToolIds = Array<string>;
|
|
1099
1174
|
export type ToolListItem = {
|
|
1100
1175
|
id: string;
|
|
@@ -1111,12 +1186,6 @@ export type Path = {
|
|
|
1111
1186
|
export type VcsInfo = {
|
|
1112
1187
|
branch: string;
|
|
1113
1188
|
};
|
|
1114
|
-
export type NotFoundError = {
|
|
1115
|
-
name: "NotFoundError";
|
|
1116
|
-
data: {
|
|
1117
|
-
message: string;
|
|
1118
|
-
};
|
|
1119
|
-
};
|
|
1120
1189
|
export type TextPartInput = {
|
|
1121
1190
|
id?: string;
|
|
1122
1191
|
type: "text";
|
|
@@ -1166,50 +1235,70 @@ export type Command = {
|
|
|
1166
1235
|
};
|
|
1167
1236
|
export type Model = {
|
|
1168
1237
|
id: string;
|
|
1238
|
+
providerID: string;
|
|
1239
|
+
api: {
|
|
1240
|
+
id: string;
|
|
1241
|
+
url: string;
|
|
1242
|
+
npm: string;
|
|
1243
|
+
};
|
|
1169
1244
|
name: string;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1245
|
+
capabilities: {
|
|
1246
|
+
temperature: boolean;
|
|
1247
|
+
reasoning: boolean;
|
|
1248
|
+
attachment: boolean;
|
|
1249
|
+
toolcall: boolean;
|
|
1250
|
+
input: {
|
|
1251
|
+
text: boolean;
|
|
1252
|
+
audio: boolean;
|
|
1253
|
+
image: boolean;
|
|
1254
|
+
video: boolean;
|
|
1255
|
+
pdf: boolean;
|
|
1256
|
+
};
|
|
1257
|
+
output: {
|
|
1258
|
+
text: boolean;
|
|
1259
|
+
audio: boolean;
|
|
1260
|
+
image: boolean;
|
|
1261
|
+
video: boolean;
|
|
1262
|
+
pdf: boolean;
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1175
1265
|
cost: {
|
|
1176
1266
|
input: number;
|
|
1177
1267
|
output: number;
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1268
|
+
cache: {
|
|
1269
|
+
read: number;
|
|
1270
|
+
write: number;
|
|
1271
|
+
};
|
|
1272
|
+
experimentalOver200K?: {
|
|
1181
1273
|
input: number;
|
|
1182
1274
|
output: number;
|
|
1183
|
-
|
|
1184
|
-
|
|
1275
|
+
cache: {
|
|
1276
|
+
read: number;
|
|
1277
|
+
write: number;
|
|
1278
|
+
};
|
|
1185
1279
|
};
|
|
1186
1280
|
};
|
|
1187
1281
|
limit: {
|
|
1188
1282
|
context: number;
|
|
1189
1283
|
output: number;
|
|
1190
1284
|
};
|
|
1191
|
-
|
|
1192
|
-
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
1193
|
-
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
1194
|
-
};
|
|
1195
|
-
experimental?: boolean;
|
|
1196
|
-
status?: "alpha" | "beta" | "deprecated";
|
|
1285
|
+
status: "alpha" | "beta" | "deprecated" | "active";
|
|
1197
1286
|
options: {
|
|
1198
1287
|
[key: string]: unknown;
|
|
1199
1288
|
};
|
|
1200
|
-
headers
|
|
1289
|
+
headers: {
|
|
1201
1290
|
[key: string]: string;
|
|
1202
1291
|
};
|
|
1203
|
-
provider?: {
|
|
1204
|
-
npm: string;
|
|
1205
|
-
};
|
|
1206
1292
|
};
|
|
1207
1293
|
export type Provider = {
|
|
1208
|
-
|
|
1294
|
+
id: string;
|
|
1209
1295
|
name: string;
|
|
1296
|
+
source: "env" | "config" | "custom" | "api";
|
|
1210
1297
|
env: Array<string>;
|
|
1211
|
-
|
|
1212
|
-
|
|
1298
|
+
key?: string;
|
|
1299
|
+
options: {
|
|
1300
|
+
[key: string]: unknown;
|
|
1301
|
+
};
|
|
1213
1302
|
models: {
|
|
1214
1303
|
[key: string]: Model;
|
|
1215
1304
|
};
|
|
@@ -1293,6 +1382,7 @@ export type Agent = {
|
|
|
1293
1382
|
options: {
|
|
1294
1383
|
[key: string]: unknown;
|
|
1295
1384
|
};
|
|
1385
|
+
maxSteps?: number;
|
|
1296
1386
|
};
|
|
1297
1387
|
export type McpStatusConnected = {
|
|
1298
1388
|
status: "connected";
|
|
@@ -1376,6 +1466,153 @@ export type ProjectCurrentResponses = {
|
|
|
1376
1466
|
200: Project;
|
|
1377
1467
|
};
|
|
1378
1468
|
export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
|
|
1469
|
+
export type PtyListData = {
|
|
1470
|
+
body?: never;
|
|
1471
|
+
path?: never;
|
|
1472
|
+
query?: {
|
|
1473
|
+
directory?: string;
|
|
1474
|
+
};
|
|
1475
|
+
url: "/pty";
|
|
1476
|
+
};
|
|
1477
|
+
export type PtyListResponses = {
|
|
1478
|
+
/**
|
|
1479
|
+
* List of sessions
|
|
1480
|
+
*/
|
|
1481
|
+
200: Array<Pty>;
|
|
1482
|
+
};
|
|
1483
|
+
export type PtyListResponse = PtyListResponses[keyof PtyListResponses];
|
|
1484
|
+
export type PtyCreateData = {
|
|
1485
|
+
body?: {
|
|
1486
|
+
command?: string;
|
|
1487
|
+
args?: Array<string>;
|
|
1488
|
+
cwd?: string;
|
|
1489
|
+
title?: string;
|
|
1490
|
+
env?: {
|
|
1491
|
+
[key: string]: string;
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
path?: never;
|
|
1495
|
+
query?: {
|
|
1496
|
+
directory?: string;
|
|
1497
|
+
};
|
|
1498
|
+
url: "/pty";
|
|
1499
|
+
};
|
|
1500
|
+
export type PtyCreateErrors = {
|
|
1501
|
+
/**
|
|
1502
|
+
* Bad request
|
|
1503
|
+
*/
|
|
1504
|
+
400: BadRequestError;
|
|
1505
|
+
};
|
|
1506
|
+
export type PtyCreateError = PtyCreateErrors[keyof PtyCreateErrors];
|
|
1507
|
+
export type PtyCreateResponses = {
|
|
1508
|
+
/**
|
|
1509
|
+
* Created session
|
|
1510
|
+
*/
|
|
1511
|
+
200: Pty;
|
|
1512
|
+
};
|
|
1513
|
+
export type PtyCreateResponse = PtyCreateResponses[keyof PtyCreateResponses];
|
|
1514
|
+
export type PtyRemoveData = {
|
|
1515
|
+
body?: never;
|
|
1516
|
+
path: {
|
|
1517
|
+
id: string;
|
|
1518
|
+
};
|
|
1519
|
+
query?: {
|
|
1520
|
+
directory?: string;
|
|
1521
|
+
};
|
|
1522
|
+
url: "/pty/{id}";
|
|
1523
|
+
};
|
|
1524
|
+
export type PtyRemoveErrors = {
|
|
1525
|
+
/**
|
|
1526
|
+
* Not found
|
|
1527
|
+
*/
|
|
1528
|
+
404: NotFoundError;
|
|
1529
|
+
};
|
|
1530
|
+
export type PtyRemoveError = PtyRemoveErrors[keyof PtyRemoveErrors];
|
|
1531
|
+
export type PtyRemoveResponses = {
|
|
1532
|
+
/**
|
|
1533
|
+
* Session removed
|
|
1534
|
+
*/
|
|
1535
|
+
200: boolean;
|
|
1536
|
+
};
|
|
1537
|
+
export type PtyRemoveResponse = PtyRemoveResponses[keyof PtyRemoveResponses];
|
|
1538
|
+
export type PtyGetData = {
|
|
1539
|
+
body?: never;
|
|
1540
|
+
path: {
|
|
1541
|
+
id: string;
|
|
1542
|
+
};
|
|
1543
|
+
query?: {
|
|
1544
|
+
directory?: string;
|
|
1545
|
+
};
|
|
1546
|
+
url: "/pty/{id}";
|
|
1547
|
+
};
|
|
1548
|
+
export type PtyGetErrors = {
|
|
1549
|
+
/**
|
|
1550
|
+
* Not found
|
|
1551
|
+
*/
|
|
1552
|
+
404: NotFoundError;
|
|
1553
|
+
};
|
|
1554
|
+
export type PtyGetError = PtyGetErrors[keyof PtyGetErrors];
|
|
1555
|
+
export type PtyGetResponses = {
|
|
1556
|
+
/**
|
|
1557
|
+
* Session info
|
|
1558
|
+
*/
|
|
1559
|
+
200: Pty;
|
|
1560
|
+
};
|
|
1561
|
+
export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses];
|
|
1562
|
+
export type PtyUpdateData = {
|
|
1563
|
+
body?: {
|
|
1564
|
+
title?: string;
|
|
1565
|
+
size?: {
|
|
1566
|
+
rows: number;
|
|
1567
|
+
cols: number;
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
path: {
|
|
1571
|
+
id: string;
|
|
1572
|
+
};
|
|
1573
|
+
query?: {
|
|
1574
|
+
directory?: string;
|
|
1575
|
+
};
|
|
1576
|
+
url: "/pty/{id}";
|
|
1577
|
+
};
|
|
1578
|
+
export type PtyUpdateErrors = {
|
|
1579
|
+
/**
|
|
1580
|
+
* Bad request
|
|
1581
|
+
*/
|
|
1582
|
+
400: BadRequestError;
|
|
1583
|
+
};
|
|
1584
|
+
export type PtyUpdateError = PtyUpdateErrors[keyof PtyUpdateErrors];
|
|
1585
|
+
export type PtyUpdateResponses = {
|
|
1586
|
+
/**
|
|
1587
|
+
* Updated session
|
|
1588
|
+
*/
|
|
1589
|
+
200: Pty;
|
|
1590
|
+
};
|
|
1591
|
+
export type PtyUpdateResponse = PtyUpdateResponses[keyof PtyUpdateResponses];
|
|
1592
|
+
export type PtyConnectData = {
|
|
1593
|
+
body?: never;
|
|
1594
|
+
path: {
|
|
1595
|
+
id: string;
|
|
1596
|
+
};
|
|
1597
|
+
query?: {
|
|
1598
|
+
directory?: string;
|
|
1599
|
+
};
|
|
1600
|
+
url: "/pty/{id}/connect";
|
|
1601
|
+
};
|
|
1602
|
+
export type PtyConnectErrors = {
|
|
1603
|
+
/**
|
|
1604
|
+
* Not found
|
|
1605
|
+
*/
|
|
1606
|
+
404: NotFoundError;
|
|
1607
|
+
};
|
|
1608
|
+
export type PtyConnectError = PtyConnectErrors[keyof PtyConnectErrors];
|
|
1609
|
+
export type PtyConnectResponses = {
|
|
1610
|
+
/**
|
|
1611
|
+
* Connected session
|
|
1612
|
+
*/
|
|
1613
|
+
200: boolean;
|
|
1614
|
+
};
|
|
1615
|
+
export type PtyConnectResponse = PtyConnectResponses[keyof PtyConnectResponses];
|
|
1379
1616
|
export type ConfigGetData = {
|
|
1380
1617
|
body?: never;
|
|
1381
1618
|
path?: never;
|
|
@@ -2297,7 +2534,55 @@ export type ProviderListResponses = {
|
|
|
2297
2534
|
* List of providers
|
|
2298
2535
|
*/
|
|
2299
2536
|
200: {
|
|
2300
|
-
all: Array<
|
|
2537
|
+
all: Array<{
|
|
2538
|
+
api?: string;
|
|
2539
|
+
name: string;
|
|
2540
|
+
env: Array<string>;
|
|
2541
|
+
id: string;
|
|
2542
|
+
npm?: string;
|
|
2543
|
+
models: {
|
|
2544
|
+
[key: string]: {
|
|
2545
|
+
id: string;
|
|
2546
|
+
name: string;
|
|
2547
|
+
release_date: string;
|
|
2548
|
+
attachment: boolean;
|
|
2549
|
+
reasoning: boolean;
|
|
2550
|
+
temperature: boolean;
|
|
2551
|
+
tool_call: boolean;
|
|
2552
|
+
cost?: {
|
|
2553
|
+
input: number;
|
|
2554
|
+
output: number;
|
|
2555
|
+
cache_read?: number;
|
|
2556
|
+
cache_write?: number;
|
|
2557
|
+
context_over_200k?: {
|
|
2558
|
+
input: number;
|
|
2559
|
+
output: number;
|
|
2560
|
+
cache_read?: number;
|
|
2561
|
+
cache_write?: number;
|
|
2562
|
+
};
|
|
2563
|
+
};
|
|
2564
|
+
limit: {
|
|
2565
|
+
context: number;
|
|
2566
|
+
output: number;
|
|
2567
|
+
};
|
|
2568
|
+
modalities?: {
|
|
2569
|
+
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
2570
|
+
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
2571
|
+
};
|
|
2572
|
+
experimental?: boolean;
|
|
2573
|
+
status?: "alpha" | "beta" | "deprecated";
|
|
2574
|
+
options: {
|
|
2575
|
+
[key: string]: unknown;
|
|
2576
|
+
};
|
|
2577
|
+
headers?: {
|
|
2578
|
+
[key: string]: string;
|
|
2579
|
+
};
|
|
2580
|
+
provider?: {
|
|
2581
|
+
npm: string;
|
|
2582
|
+
};
|
|
2583
|
+
};
|
|
2584
|
+
};
|
|
2585
|
+
}>;
|
|
2301
2586
|
default: {
|
|
2302
2587
|
[key: string]: string;
|
|
2303
2588
|
};
|
package/package.json
CHANGED