@opencode-ai/sdk 0.1.0-alpha.14 → 0.1.0-alpha.2
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/CHANGELOG.md +0 -113
- package/LICENSE +4 -198
- package/README.md +0 -18
- package/client.d.mts +48 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +48 -17
- package/client.d.ts.map +1 -1
- package/client.js +48 -15
- package/client.js.map +1 -1
- package/client.mjs +48 -15
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -10
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -10
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +0 -2
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -2
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +6 -6
- package/internal/types.d.mts +6 -8
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -8
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +5 -26
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +5 -26
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +3 -13
- package/resources/app-info.d.mts +31 -0
- package/resources/app-info.d.mts.map +1 -0
- package/resources/app-info.d.ts +31 -0
- package/resources/app-info.d.ts.map +1 -0
- package/resources/app-info.js +15 -0
- package/resources/app-info.js.map +1 -0
- package/resources/app-info.mjs +11 -0
- package/resources/app-info.mjs.map +1 -0
- package/resources/app-initialize.d.mts +14 -0
- package/resources/app-initialize.d.mts.map +1 -0
- package/resources/app-initialize.d.ts +14 -0
- package/resources/app-initialize.d.ts.map +1 -0
- package/resources/app-initialize.js +15 -0
- package/resources/app-initialize.js.map +1 -0
- package/resources/app-initialize.mjs +11 -0
- package/resources/app-initialize.mjs.map +1 -0
- package/resources/config-get.d.mts +236 -0
- package/resources/config-get.d.mts.map +1 -0
- package/resources/config-get.d.ts +236 -0
- package/resources/config-get.d.ts.map +1 -0
- package/resources/config-get.js +15 -0
- package/resources/config-get.js.map +1 -0
- package/resources/config-get.mjs +11 -0
- package/resources/config-get.mjs.map +1 -0
- package/resources/event.d.mts +27 -81
- package/resources/event.d.mts.map +1 -1
- package/resources/event.d.ts +27 -81
- package/resources/event.d.ts.map +1 -1
- package/resources/event.js +1 -1
- package/resources/event.js.map +1 -1
- package/resources/event.mjs +1 -1
- package/resources/event.mjs.map +1 -1
- package/resources/file-search.d.mts +17 -0
- package/resources/file-search.d.mts.map +1 -0
- package/resources/file-search.d.ts +17 -0
- package/resources/file-search.d.ts.map +1 -0
- package/resources/file-search.js +15 -0
- package/resources/file-search.js.map +1 -0
- package/resources/file-search.mjs +11 -0
- package/resources/file-search.mjs.map +1 -0
- package/resources/index.d.mts +16 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +16 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +33 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +16 -6
- package/resources/index.mjs.map +1 -1
- package/resources/installation-info.d.mts +17 -0
- package/resources/installation-info.d.mts.map +1 -0
- package/resources/installation-info.d.ts +17 -0
- package/resources/installation-info.d.ts.map +1 -0
- package/resources/installation-info.js +15 -0
- package/resources/installation-info.js.map +1 -0
- package/resources/installation-info.mjs +11 -0
- package/resources/installation-info.mjs.map +1 -0
- package/resources/path-get.d.mts +19 -0
- package/resources/path-get.d.mts.map +1 -0
- package/resources/path-get.d.ts +19 -0
- package/resources/path-get.d.ts.map +1 -0
- package/resources/path-get.js +15 -0
- package/resources/path-get.js.map +1 -0
- package/resources/path-get.mjs +11 -0
- package/resources/path-get.mjs.map +1 -0
- package/resources/provider-list.d.mts +58 -0
- package/resources/provider-list.d.mts.map +1 -0
- package/resources/provider-list.d.ts +58 -0
- package/resources/provider-list.d.ts.map +1 -0
- package/resources/provider-list.js +15 -0
- package/resources/provider-list.js.map +1 -0
- package/resources/provider-list.mjs +11 -0
- package/resources/provider-list.mjs.map +1 -0
- package/resources/session-abort.d.mts +17 -0
- package/resources/session-abort.d.mts.map +1 -0
- package/resources/session-abort.d.ts +17 -0
- package/resources/session-abort.d.ts.map +1 -0
- package/resources/session-abort.js +15 -0
- package/resources/session-abort.js.map +1 -0
- package/resources/session-abort.mjs +11 -0
- package/resources/session-abort.mjs.map +1 -0
- package/resources/session-chat.d.mts +160 -0
- package/resources/session-chat.d.mts.map +1 -0
- package/resources/session-chat.d.ts +160 -0
- package/resources/session-chat.d.ts.map +1 -0
- package/resources/session-chat.js +15 -0
- package/resources/session-chat.js.map +1 -0
- package/resources/session-chat.mjs +11 -0
- package/resources/session-chat.mjs.map +1 -0
- package/resources/session-create.d.mts +30 -0
- package/resources/session-create.d.mts.map +1 -0
- package/resources/session-create.d.ts +30 -0
- package/resources/session-create.d.ts.map +1 -0
- package/resources/session-create.js +15 -0
- package/resources/session-create.js.map +1 -0
- package/resources/session-create.mjs +11 -0
- package/resources/session-create.mjs.map +1 -0
- package/resources/session-initialize.d.mts +19 -0
- package/resources/session-initialize.d.mts.map +1 -0
- package/resources/session-initialize.d.ts +19 -0
- package/resources/session-initialize.d.ts.map +1 -0
- package/resources/session-initialize.js +15 -0
- package/resources/session-initialize.js.map +1 -0
- package/resources/session-initialize.mjs +11 -0
- package/resources/session-initialize.mjs.map +1 -0
- package/resources/session-list.d.mts +15 -0
- package/resources/session-list.d.mts.map +1 -0
- package/resources/session-list.d.ts +15 -0
- package/resources/session-list.d.ts.map +1 -0
- package/resources/session-list.js +15 -0
- package/resources/session-list.js.map +1 -0
- package/resources/session-list.mjs +11 -0
- package/resources/session-list.mjs.map +1 -0
- package/resources/session-messages.d.mts +18 -0
- package/resources/session-messages.d.mts.map +1 -0
- package/resources/session-messages.d.ts +18 -0
- package/resources/session-messages.d.ts.map +1 -0
- package/resources/session-messages.js +15 -0
- package/resources/session-messages.js.map +1 -0
- package/resources/session-messages.mjs +11 -0
- package/resources/session-messages.mjs.map +1 -0
- package/resources/session-share.d.mts +17 -0
- package/resources/session-share.d.mts.map +1 -0
- package/resources/session-share.d.ts +17 -0
- package/resources/session-share.d.ts.map +1 -0
- package/resources/session-share.js +15 -0
- package/resources/session-share.js.map +1 -0
- package/resources/session-share.mjs +11 -0
- package/resources/session-share.mjs.map +1 -0
- package/resources/session-summarize.d.mts +19 -0
- package/resources/session-summarize.d.mts.map +1 -0
- package/resources/session-summarize.d.ts +19 -0
- package/resources/session-summarize.d.ts.map +1 -0
- package/resources/session-summarize.js +15 -0
- package/resources/session-summarize.js.map +1 -0
- package/resources/session-summarize.mjs +11 -0
- package/resources/session-summarize.mjs.map +1 -0
- package/resources/session-unshare.d.mts +17 -0
- package/resources/session-unshare.d.mts.map +1 -0
- package/resources/session-unshare.d.ts +17 -0
- package/resources/session-unshare.d.ts.map +1 -0
- package/resources/session-unshare.js +15 -0
- package/resources/session-unshare.js.map +1 -0
- package/resources/session-unshare.mjs +11 -0
- package/resources/session-unshare.mjs.map +1 -0
- package/src/client.ts +118 -96
- package/src/internal/parse.ts +0 -14
- package/src/internal/request-options.ts +0 -2
- package/src/internal/types.ts +6 -9
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +7 -32
- package/src/resources/app-info.ts +46 -0
- package/src/resources/app-initialize.ts +20 -0
- package/src/resources/config-get.ts +294 -0
- package/src/resources/event.ts +37 -115
- package/src/resources/file-search.ts +27 -0
- package/src/resources/index.ts +33 -44
- package/src/resources/installation-info.ts +24 -0
- package/src/resources/path-get.ts +28 -0
- package/src/resources/provider-list.ts +80 -0
- package/src/resources/session-abort.ts +27 -0
- package/src/resources/session-chat.ts +250 -0
- package/src/resources/session-create.ts +44 -0
- package/src/resources/session-initialize.ts +34 -0
- package/src/resources/session-list.ts +21 -0
- package/src/resources/session-messages.ts +31 -0
- package/src/resources/session-share.ts +23 -0
- package/src/resources/session-summarize.ts +34 -0
- package/src/resources/session-unshare.ts +26 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/core/streaming.d.mts +0 -31
- package/core/streaming.d.mts.map +0 -1
- package/core/streaming.d.ts +0 -31
- package/core/streaming.d.ts.map +0 -1
- package/core/streaming.js +0 -257
- package/core/streaming.js.map +0 -1
- package/core/streaming.mjs +0 -252
- package/core/streaming.mjs.map +0 -1
- package/internal/decoders/line.d.mts +0 -17
- package/internal/decoders/line.d.mts.map +0 -1
- package/internal/decoders/line.d.ts +0 -17
- package/internal/decoders/line.d.ts.map +0 -1
- package/internal/decoders/line.js +0 -113
- package/internal/decoders/line.js.map +0 -1
- package/internal/decoders/line.mjs +0 -108
- package/internal/decoders/line.mjs.map +0 -1
- package/resources/app.d.mts +0 -37
- package/resources/app.d.mts.map +0 -1
- package/resources/app.d.ts +0 -37
- package/resources/app.d.ts.map +0 -1
- package/resources/app.js +0 -21
- package/resources/app.js.map +0 -1
- package/resources/app.mjs +0 -17
- package/resources/app.mjs.map +0 -1
- package/resources/config.d.mts +0 -318
- package/resources/config.d.mts.map +0 -1
- package/resources/config.d.ts +0 -318
- package/resources/config.d.ts.map +0 -1
- package/resources/config.js +0 -21
- package/resources/config.js.map +0 -1
- package/resources/config.mjs +0 -17
- package/resources/config.mjs.map +0 -1
- package/resources/file.d.mts +0 -33
- package/resources/file.d.mts.map +0 -1
- package/resources/file.d.ts +0 -33
- package/resources/file.d.ts.map +0 -1
- package/resources/file.js +0 -21
- package/resources/file.js.map +0 -1
- package/resources/file.mjs +0 -17
- package/resources/file.mjs.map +0 -1
- package/resources/find.d.mts +0 -60
- package/resources/find.d.mts.map +0 -1
- package/resources/find.d.ts +0 -60
- package/resources/find.d.ts.map +0 -1
- package/resources/find.js +0 -27
- package/resources/find.js.map +0 -1
- package/resources/find.mjs +0 -23
- package/resources/find.mjs.map +0 -1
- package/resources/session.d.mts +0 -215
- package/resources/session.d.mts.map +0 -1
- package/resources/session.d.ts +0 -215
- package/resources/session.d.ts.map +0 -1
- package/resources/session.js +0 -70
- package/resources/session.js.map +0 -1
- package/resources/session.mjs +0 -66
- package/resources/session.mjs.map +0 -1
- package/resources/shared.d.mts +0 -20
- package/resources/shared.d.mts.map +0 -1
- package/resources/shared.d.ts +0 -20
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -4
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -3
- package/resources/shared.mjs.map +0 -1
- package/src/core/streaming.ts +0 -301
- package/src/internal/decoders/line.ts +0 -135
- package/src/resources/app.ts +0 -57
- package/src/resources/config.ts +0 -409
- package/src/resources/file.ts +0 -53
- package/src/resources/find.ts +0 -95
- package/src/resources/session.ts +0 -369
- package/src/resources/shared.ts +0 -27
- package/src/streaming.ts +0 -2
- package/streaming.d.mts +0 -2
- package/streaming.d.mts.map +0 -1
- package/streaming.d.ts +0 -2
- package/streaming.d.ts.map +0 -1
- package/streaming.js +0 -6
- package/streaming.js.map +0 -1
- package/streaming.mjs +0 -2
- package/streaming.mjs.map +0 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class ConfigGet extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get config info
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: RequestOptions): APIPromise<ConfigGetRetrieveResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface ConfigGetRetrieveResponse {
|
|
11
|
+
/**
|
|
12
|
+
* JSON schema reference for configuration validation
|
|
13
|
+
*/
|
|
14
|
+
$schema?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Share newly created sessions automatically
|
|
17
|
+
*/
|
|
18
|
+
autoshare?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Automatically update to the latest version
|
|
21
|
+
*/
|
|
22
|
+
autoupdate?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Disable providers that are loaded automatically
|
|
25
|
+
*/
|
|
26
|
+
disabled_providers?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Custom keybind configurations
|
|
29
|
+
*/
|
|
30
|
+
keybinds?: ConfigGetRetrieveResponse.Keybinds;
|
|
31
|
+
/**
|
|
32
|
+
* MCP (Model Context Protocol) server configurations
|
|
33
|
+
*/
|
|
34
|
+
mcp?: {
|
|
35
|
+
[key: string]: ConfigGetRetrieveResponse.ConfigMcpLocal | ConfigGetRetrieveResponse.ConfigMcpRemote;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
39
|
+
*/
|
|
40
|
+
model?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Custom provider configurations and model overrides
|
|
43
|
+
*/
|
|
44
|
+
provider?: {
|
|
45
|
+
[key: string]: ConfigGetRetrieveResponse.Provider;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Theme name to use for the interface
|
|
49
|
+
*/
|
|
50
|
+
theme?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace ConfigGetRetrieveResponse {
|
|
53
|
+
/**
|
|
54
|
+
* Custom keybind configurations
|
|
55
|
+
*/
|
|
56
|
+
interface Keybinds {
|
|
57
|
+
/**
|
|
58
|
+
* Exit the application
|
|
59
|
+
*/
|
|
60
|
+
app_exit?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Open external editor
|
|
63
|
+
*/
|
|
64
|
+
editor_open?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Show help dialog
|
|
67
|
+
*/
|
|
68
|
+
help?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Navigate to next history item
|
|
71
|
+
*/
|
|
72
|
+
history_next?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Navigate to previous history item
|
|
75
|
+
*/
|
|
76
|
+
history_previous?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Clear input field
|
|
79
|
+
*/
|
|
80
|
+
input_clear?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Insert newline in input
|
|
83
|
+
*/
|
|
84
|
+
input_newline?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Paste from clipboard
|
|
87
|
+
*/
|
|
88
|
+
input_paste?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Submit input
|
|
91
|
+
*/
|
|
92
|
+
input_submit?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Leader key for keybind combinations
|
|
95
|
+
*/
|
|
96
|
+
leader?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Navigate to first message
|
|
99
|
+
*/
|
|
100
|
+
messages_first?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Scroll messages down by half page
|
|
103
|
+
*/
|
|
104
|
+
messages_half_page_down?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Scroll messages up by half page
|
|
107
|
+
*/
|
|
108
|
+
messages_half_page_up?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Navigate to last message
|
|
111
|
+
*/
|
|
112
|
+
messages_last?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Navigate to next message
|
|
115
|
+
*/
|
|
116
|
+
messages_next?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Scroll messages down by one page
|
|
119
|
+
*/
|
|
120
|
+
messages_page_down?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Scroll messages up by one page
|
|
123
|
+
*/
|
|
124
|
+
messages_page_up?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Navigate to previous message
|
|
127
|
+
*/
|
|
128
|
+
messages_previous?: string;
|
|
129
|
+
/**
|
|
130
|
+
* List available models
|
|
131
|
+
*/
|
|
132
|
+
model_list?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Initialize project configuration
|
|
135
|
+
*/
|
|
136
|
+
project_init?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Toggle compact mode for session
|
|
139
|
+
*/
|
|
140
|
+
session_compact?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Interrupt current session
|
|
143
|
+
*/
|
|
144
|
+
session_interrupt?: string;
|
|
145
|
+
/**
|
|
146
|
+
* List all sessions
|
|
147
|
+
*/
|
|
148
|
+
session_list?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Create a new session
|
|
151
|
+
*/
|
|
152
|
+
session_new?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Share current session
|
|
155
|
+
*/
|
|
156
|
+
session_share?: string;
|
|
157
|
+
/**
|
|
158
|
+
* List available themes
|
|
159
|
+
*/
|
|
160
|
+
theme_list?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Show tool details
|
|
163
|
+
*/
|
|
164
|
+
tool_details?: string;
|
|
165
|
+
}
|
|
166
|
+
interface ConfigMcpLocal {
|
|
167
|
+
/**
|
|
168
|
+
* Command and arguments to run the MCP server
|
|
169
|
+
*/
|
|
170
|
+
command: Array<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Type of MCP server connection
|
|
173
|
+
*/
|
|
174
|
+
type: 'local';
|
|
175
|
+
/**
|
|
176
|
+
* Environment variables to set when running the MCP server
|
|
177
|
+
*/
|
|
178
|
+
environment?: {
|
|
179
|
+
[key: string]: string;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
interface ConfigMcpRemote {
|
|
183
|
+
/**
|
|
184
|
+
* Type of MCP server connection
|
|
185
|
+
*/
|
|
186
|
+
type: 'remote';
|
|
187
|
+
/**
|
|
188
|
+
* URL of the remote MCP server
|
|
189
|
+
*/
|
|
190
|
+
url: string;
|
|
191
|
+
}
|
|
192
|
+
interface Provider {
|
|
193
|
+
models: {
|
|
194
|
+
[key: string]: Provider.Models;
|
|
195
|
+
};
|
|
196
|
+
id?: string;
|
|
197
|
+
api?: string;
|
|
198
|
+
env?: Array<string>;
|
|
199
|
+
name?: string;
|
|
200
|
+
npm?: string;
|
|
201
|
+
options?: {
|
|
202
|
+
[key: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
namespace Provider {
|
|
206
|
+
interface Models {
|
|
207
|
+
id?: string;
|
|
208
|
+
attachment?: boolean;
|
|
209
|
+
cost?: Models.Cost;
|
|
210
|
+
limit?: Models.Limit;
|
|
211
|
+
name?: string;
|
|
212
|
+
options?: {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
reasoning?: boolean;
|
|
216
|
+
temperature?: boolean;
|
|
217
|
+
tool_call?: boolean;
|
|
218
|
+
}
|
|
219
|
+
namespace Models {
|
|
220
|
+
interface Cost {
|
|
221
|
+
input: number;
|
|
222
|
+
output: number;
|
|
223
|
+
cache_read?: number;
|
|
224
|
+
cache_write?: number;
|
|
225
|
+
}
|
|
226
|
+
interface Limit {
|
|
227
|
+
context: number;
|
|
228
|
+
output: number;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export declare namespace ConfigGet {
|
|
234
|
+
export { type ConfigGetRetrieveResponse as ConfigGetRetrieveResponse };
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=config-get.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-get.d.mts","sourceRoot":"","sources":["../src/resources/config-get.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EA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ACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class ConfigGet extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get config info
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: RequestOptions): APIPromise<ConfigGetRetrieveResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface ConfigGetRetrieveResponse {
|
|
11
|
+
/**
|
|
12
|
+
* JSON schema reference for configuration validation
|
|
13
|
+
*/
|
|
14
|
+
$schema?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Share newly created sessions automatically
|
|
17
|
+
*/
|
|
18
|
+
autoshare?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Automatically update to the latest version
|
|
21
|
+
*/
|
|
22
|
+
autoupdate?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Disable providers that are loaded automatically
|
|
25
|
+
*/
|
|
26
|
+
disabled_providers?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Custom keybind configurations
|
|
29
|
+
*/
|
|
30
|
+
keybinds?: ConfigGetRetrieveResponse.Keybinds;
|
|
31
|
+
/**
|
|
32
|
+
* MCP (Model Context Protocol) server configurations
|
|
33
|
+
*/
|
|
34
|
+
mcp?: {
|
|
35
|
+
[key: string]: ConfigGetRetrieveResponse.ConfigMcpLocal | ConfigGetRetrieveResponse.ConfigMcpRemote;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
39
|
+
*/
|
|
40
|
+
model?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Custom provider configurations and model overrides
|
|
43
|
+
*/
|
|
44
|
+
provider?: {
|
|
45
|
+
[key: string]: ConfigGetRetrieveResponse.Provider;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Theme name to use for the interface
|
|
49
|
+
*/
|
|
50
|
+
theme?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace ConfigGetRetrieveResponse {
|
|
53
|
+
/**
|
|
54
|
+
* Custom keybind configurations
|
|
55
|
+
*/
|
|
56
|
+
interface Keybinds {
|
|
57
|
+
/**
|
|
58
|
+
* Exit the application
|
|
59
|
+
*/
|
|
60
|
+
app_exit?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Open external editor
|
|
63
|
+
*/
|
|
64
|
+
editor_open?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Show help dialog
|
|
67
|
+
*/
|
|
68
|
+
help?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Navigate to next history item
|
|
71
|
+
*/
|
|
72
|
+
history_next?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Navigate to previous history item
|
|
75
|
+
*/
|
|
76
|
+
history_previous?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Clear input field
|
|
79
|
+
*/
|
|
80
|
+
input_clear?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Insert newline in input
|
|
83
|
+
*/
|
|
84
|
+
input_newline?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Paste from clipboard
|
|
87
|
+
*/
|
|
88
|
+
input_paste?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Submit input
|
|
91
|
+
*/
|
|
92
|
+
input_submit?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Leader key for keybind combinations
|
|
95
|
+
*/
|
|
96
|
+
leader?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Navigate to first message
|
|
99
|
+
*/
|
|
100
|
+
messages_first?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Scroll messages down by half page
|
|
103
|
+
*/
|
|
104
|
+
messages_half_page_down?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Scroll messages up by half page
|
|
107
|
+
*/
|
|
108
|
+
messages_half_page_up?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Navigate to last message
|
|
111
|
+
*/
|
|
112
|
+
messages_last?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Navigate to next message
|
|
115
|
+
*/
|
|
116
|
+
messages_next?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Scroll messages down by one page
|
|
119
|
+
*/
|
|
120
|
+
messages_page_down?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Scroll messages up by one page
|
|
123
|
+
*/
|
|
124
|
+
messages_page_up?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Navigate to previous message
|
|
127
|
+
*/
|
|
128
|
+
messages_previous?: string;
|
|
129
|
+
/**
|
|
130
|
+
* List available models
|
|
131
|
+
*/
|
|
132
|
+
model_list?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Initialize project configuration
|
|
135
|
+
*/
|
|
136
|
+
project_init?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Toggle compact mode for session
|
|
139
|
+
*/
|
|
140
|
+
session_compact?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Interrupt current session
|
|
143
|
+
*/
|
|
144
|
+
session_interrupt?: string;
|
|
145
|
+
/**
|
|
146
|
+
* List all sessions
|
|
147
|
+
*/
|
|
148
|
+
session_list?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Create a new session
|
|
151
|
+
*/
|
|
152
|
+
session_new?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Share current session
|
|
155
|
+
*/
|
|
156
|
+
session_share?: string;
|
|
157
|
+
/**
|
|
158
|
+
* List available themes
|
|
159
|
+
*/
|
|
160
|
+
theme_list?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Show tool details
|
|
163
|
+
*/
|
|
164
|
+
tool_details?: string;
|
|
165
|
+
}
|
|
166
|
+
interface ConfigMcpLocal {
|
|
167
|
+
/**
|
|
168
|
+
* Command and arguments to run the MCP server
|
|
169
|
+
*/
|
|
170
|
+
command: Array<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Type of MCP server connection
|
|
173
|
+
*/
|
|
174
|
+
type: 'local';
|
|
175
|
+
/**
|
|
176
|
+
* Environment variables to set when running the MCP server
|
|
177
|
+
*/
|
|
178
|
+
environment?: {
|
|
179
|
+
[key: string]: string;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
interface ConfigMcpRemote {
|
|
183
|
+
/**
|
|
184
|
+
* Type of MCP server connection
|
|
185
|
+
*/
|
|
186
|
+
type: 'remote';
|
|
187
|
+
/**
|
|
188
|
+
* URL of the remote MCP server
|
|
189
|
+
*/
|
|
190
|
+
url: string;
|
|
191
|
+
}
|
|
192
|
+
interface Provider {
|
|
193
|
+
models: {
|
|
194
|
+
[key: string]: Provider.Models;
|
|
195
|
+
};
|
|
196
|
+
id?: string;
|
|
197
|
+
api?: string;
|
|
198
|
+
env?: Array<string>;
|
|
199
|
+
name?: string;
|
|
200
|
+
npm?: string;
|
|
201
|
+
options?: {
|
|
202
|
+
[key: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
namespace Provider {
|
|
206
|
+
interface Models {
|
|
207
|
+
id?: string;
|
|
208
|
+
attachment?: boolean;
|
|
209
|
+
cost?: Models.Cost;
|
|
210
|
+
limit?: Models.Limit;
|
|
211
|
+
name?: string;
|
|
212
|
+
options?: {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
reasoning?: boolean;
|
|
216
|
+
temperature?: boolean;
|
|
217
|
+
tool_call?: boolean;
|
|
218
|
+
}
|
|
219
|
+
namespace Models {
|
|
220
|
+
interface Cost {
|
|
221
|
+
input: number;
|
|
222
|
+
output: number;
|
|
223
|
+
cache_read?: number;
|
|
224
|
+
cache_write?: number;
|
|
225
|
+
}
|
|
226
|
+
interface Limit {
|
|
227
|
+
context: number;
|
|
228
|
+
output: number;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export declare namespace ConfigGet {
|
|
234
|
+
export { type ConfigGetRetrieveResponse as ConfigGetRetrieveResponse };
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=config-get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-get.d.ts","sourceRoot":"","sources":["../src/resources/config-get.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG1E;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,QAAQ,CAAC;IAE9C;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC,cAAc,GAAG,yBAAyB,CAAC,eAAe,CAAC;KACrG,CAAC;IAEF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC,QAAQ,CAAA;KAAE,CAAC;IAEjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;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AAO,CAAC;SACrB;QAED,UAAiB,MAAM,CAAC;YACtB,UAAiB,IAAI;gBACnB,KAAK,EAAE,MAAM,CAAC;gBAEd,MAAM,EAAE,MAAM,CAAC;gBAEf,UAAU,CAAC,EAAE,MAAM,CAAC;gBAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB;YAED,UAAiB,KAAK;gBACpB,OAAO,EAAE,MAAM,CAAC;gBAEhB,MAAM,EAAE,MAAM,CAAC;aAChB;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ConfigGet = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class ConfigGet extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get config info
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options) {
|
|
11
|
+
return this._client.post('/config_get', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ConfigGet = ConfigGet;
|
|
15
|
+
//# sourceMappingURL=config-get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-get.js","sourceRoot":"","sources":["../src/resources/config-get.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAPD,8BAOC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class ConfigGet extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get config info
|
|
6
|
+
*/
|
|
7
|
+
retrieve(options) {
|
|
8
|
+
return this._client.post('/config_get', options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=config-get.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-get.mjs","sourceRoot":"","sources":["../src/resources/config-get.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
|
package/resources/event.d.mts
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as SessionChatAPI from "./session-chat.mjs";
|
|
3
|
+
import * as SessionCreateAPI from "./session-create.mjs";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
-
import { Stream } from "../core/streaming.mjs";
|
|
6
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
6
|
export declare class Event extends APIResource {
|
|
8
7
|
/**
|
|
9
8
|
* Get events
|
|
10
9
|
*/
|
|
11
|
-
list(options?: RequestOptions): APIPromise<
|
|
10
|
+
list(options?: RequestOptions): APIPromise<EventListResponse>;
|
|
12
11
|
}
|
|
13
|
-
export type EventListResponse = EventListResponse.
|
|
12
|
+
export type EventListResponse = EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionError;
|
|
14
13
|
export declare namespace EventListResponse {
|
|
14
|
+
interface EventStorageWrite {
|
|
15
|
+
properties: EventStorageWrite.Properties;
|
|
16
|
+
type: 'storage.write';
|
|
17
|
+
}
|
|
18
|
+
namespace EventStorageWrite {
|
|
19
|
+
interface Properties {
|
|
20
|
+
key: string;
|
|
21
|
+
content?: unknown;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
interface EventInstallationUpdated {
|
|
25
|
+
properties: EventInstallationUpdated.Properties;
|
|
26
|
+
type: 'installation.updated';
|
|
27
|
+
}
|
|
28
|
+
namespace EventInstallationUpdated {
|
|
29
|
+
interface Properties {
|
|
30
|
+
version: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
15
33
|
interface EventLspClientDiagnostics {
|
|
16
34
|
properties: EventLspClientDiagnostics.Properties;
|
|
17
35
|
type: 'lsp.client.diagnostics';
|
|
@@ -42,51 +60,13 @@ export declare namespace EventListResponse {
|
|
|
42
60
|
}
|
|
43
61
|
}
|
|
44
62
|
}
|
|
45
|
-
interface EventFileEdited {
|
|
46
|
-
properties: EventFileEdited.Properties;
|
|
47
|
-
type: 'file.edited';
|
|
48
|
-
}
|
|
49
|
-
namespace EventFileEdited {
|
|
50
|
-
interface Properties {
|
|
51
|
-
file: string;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
interface EventStorageWrite {
|
|
55
|
-
properties: EventStorageWrite.Properties;
|
|
56
|
-
type: 'storage.write';
|
|
57
|
-
}
|
|
58
|
-
namespace EventStorageWrite {
|
|
59
|
-
interface Properties {
|
|
60
|
-
key: string;
|
|
61
|
-
content?: unknown;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
interface EventInstallationUpdated {
|
|
65
|
-
properties: EventInstallationUpdated.Properties;
|
|
66
|
-
type: 'installation.updated';
|
|
67
|
-
}
|
|
68
|
-
namespace EventInstallationUpdated {
|
|
69
|
-
interface Properties {
|
|
70
|
-
version: string;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
63
|
interface EventMessageUpdated {
|
|
74
64
|
properties: EventMessageUpdated.Properties;
|
|
75
65
|
type: 'message.updated';
|
|
76
66
|
}
|
|
77
67
|
namespace EventMessageUpdated {
|
|
78
68
|
interface Properties {
|
|
79
|
-
info:
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
interface EventMessageRemoved {
|
|
83
|
-
properties: EventMessageRemoved.Properties;
|
|
84
|
-
type: 'message.removed';
|
|
85
|
-
}
|
|
86
|
-
namespace EventMessageRemoved {
|
|
87
|
-
interface Properties {
|
|
88
|
-
messageID: string;
|
|
89
|
-
sessionID: string;
|
|
69
|
+
info: SessionChatAPI.MessageInfo;
|
|
90
70
|
}
|
|
91
71
|
}
|
|
92
72
|
interface EventMessagePartUpdated {
|
|
@@ -96,7 +76,7 @@ export declare namespace EventListResponse {
|
|
|
96
76
|
namespace EventMessagePartUpdated {
|
|
97
77
|
interface Properties {
|
|
98
78
|
messageID: string;
|
|
99
|
-
part:
|
|
79
|
+
part: SessionChatAPI.MessagePart;
|
|
100
80
|
sessionID: string;
|
|
101
81
|
}
|
|
102
82
|
}
|
|
@@ -106,25 +86,7 @@ export declare namespace EventListResponse {
|
|
|
106
86
|
}
|
|
107
87
|
namespace EventSessionUpdated {
|
|
108
88
|
interface Properties {
|
|
109
|
-
info:
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
interface EventSessionDeleted {
|
|
113
|
-
properties: EventSessionDeleted.Properties;
|
|
114
|
-
type: 'session.deleted';
|
|
115
|
-
}
|
|
116
|
-
namespace EventSessionDeleted {
|
|
117
|
-
interface Properties {
|
|
118
|
-
info: SessionAPI.Session;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
interface EventSessionIdle {
|
|
122
|
-
properties: EventSessionIdle.Properties;
|
|
123
|
-
type: 'session.idle';
|
|
124
|
-
}
|
|
125
|
-
namespace EventSessionIdle {
|
|
126
|
-
interface Properties {
|
|
127
|
-
sessionID: string;
|
|
89
|
+
info: SessionCreateAPI.SessionInfo;
|
|
128
90
|
}
|
|
129
91
|
}
|
|
130
92
|
interface EventSessionError {
|
|
@@ -133,23 +95,7 @@ export declare namespace EventListResponse {
|
|
|
133
95
|
}
|
|
134
96
|
namespace EventSessionError {
|
|
135
97
|
interface Properties {
|
|
136
|
-
error?:
|
|
137
|
-
}
|
|
138
|
-
namespace Properties {
|
|
139
|
-
interface MessageOutputLengthError {
|
|
140
|
-
data: unknown;
|
|
141
|
-
name: 'MessageOutputLengthError';
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
interface EventFileWatcherUpdated {
|
|
146
|
-
properties: EventFileWatcherUpdated.Properties;
|
|
147
|
-
type: 'file.watcher.updated';
|
|
148
|
-
}
|
|
149
|
-
namespace EventFileWatcherUpdated {
|
|
150
|
-
interface Properties {
|
|
151
|
-
event: 'rename' | 'change';
|
|
152
|
-
file: string;
|
|
98
|
+
error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
|
|
153
99
|
}
|
|
154
100
|
}
|
|
155
101
|
}
|