@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.
Files changed (302) hide show
  1. package/CHANGELOG.md +0 -113
  2. package/LICENSE +4 -198
  3. package/README.md +0 -18
  4. package/client.d.mts +48 -17
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +48 -17
  7. package/client.d.ts.map +1 -1
  8. package/client.js +48 -15
  9. package/client.js.map +1 -1
  10. package/client.mjs +48 -15
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +0 -10
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +0 -10
  17. package/internal/parse.mjs.map +1 -1
  18. package/internal/request-options.d.mts +0 -2
  19. package/internal/request-options.d.mts.map +1 -1
  20. package/internal/request-options.d.ts +0 -2
  21. package/internal/request-options.d.ts.map +1 -1
  22. package/internal/request-options.js.map +1 -1
  23. package/internal/request-options.mjs.map +1 -1
  24. package/internal/tslib.js +6 -6
  25. package/internal/types.d.mts +6 -8
  26. package/internal/types.d.mts.map +1 -1
  27. package/internal/types.d.ts +6 -8
  28. package/internal/types.d.ts.map +1 -1
  29. package/internal/uploads.js +1 -1
  30. package/internal/uploads.js.map +1 -1
  31. package/internal/uploads.mjs +1 -1
  32. package/internal/uploads.mjs.map +1 -1
  33. package/internal/utils/log.js +1 -1
  34. package/internal/utils/log.js.map +1 -1
  35. package/internal/utils/log.mjs +1 -1
  36. package/internal/utils/log.mjs.map +1 -1
  37. package/internal/utils/path.d.mts.map +1 -1
  38. package/internal/utils/path.d.ts.map +1 -1
  39. package/internal/utils/path.js +5 -26
  40. package/internal/utils/path.js.map +1 -1
  41. package/internal/utils/path.mjs +5 -26
  42. package/internal/utils/path.mjs.map +1 -1
  43. package/package.json +3 -13
  44. package/resources/app-info.d.mts +31 -0
  45. package/resources/app-info.d.mts.map +1 -0
  46. package/resources/app-info.d.ts +31 -0
  47. package/resources/app-info.d.ts.map +1 -0
  48. package/resources/app-info.js +15 -0
  49. package/resources/app-info.js.map +1 -0
  50. package/resources/app-info.mjs +11 -0
  51. package/resources/app-info.mjs.map +1 -0
  52. package/resources/app-initialize.d.mts +14 -0
  53. package/resources/app-initialize.d.mts.map +1 -0
  54. package/resources/app-initialize.d.ts +14 -0
  55. package/resources/app-initialize.d.ts.map +1 -0
  56. package/resources/app-initialize.js +15 -0
  57. package/resources/app-initialize.js.map +1 -0
  58. package/resources/app-initialize.mjs +11 -0
  59. package/resources/app-initialize.mjs.map +1 -0
  60. package/resources/config-get.d.mts +236 -0
  61. package/resources/config-get.d.mts.map +1 -0
  62. package/resources/config-get.d.ts +236 -0
  63. package/resources/config-get.d.ts.map +1 -0
  64. package/resources/config-get.js +15 -0
  65. package/resources/config-get.js.map +1 -0
  66. package/resources/config-get.mjs +11 -0
  67. package/resources/config-get.mjs.map +1 -0
  68. package/resources/event.d.mts +27 -81
  69. package/resources/event.d.mts.map +1 -1
  70. package/resources/event.d.ts +27 -81
  71. package/resources/event.d.ts.map +1 -1
  72. package/resources/event.js +1 -1
  73. package/resources/event.js.map +1 -1
  74. package/resources/event.mjs +1 -1
  75. package/resources/event.mjs.map +1 -1
  76. package/resources/file-search.d.mts +17 -0
  77. package/resources/file-search.d.mts.map +1 -0
  78. package/resources/file-search.d.ts +17 -0
  79. package/resources/file-search.d.ts.map +1 -0
  80. package/resources/file-search.js +15 -0
  81. package/resources/file-search.js.map +1 -0
  82. package/resources/file-search.mjs +11 -0
  83. package/resources/file-search.mjs.map +1 -0
  84. package/resources/index.d.mts +16 -6
  85. package/resources/index.d.mts.map +1 -1
  86. package/resources/index.d.ts +16 -6
  87. package/resources/index.d.ts.map +1 -1
  88. package/resources/index.js +33 -13
  89. package/resources/index.js.map +1 -1
  90. package/resources/index.mjs +16 -6
  91. package/resources/index.mjs.map +1 -1
  92. package/resources/installation-info.d.mts +17 -0
  93. package/resources/installation-info.d.mts.map +1 -0
  94. package/resources/installation-info.d.ts +17 -0
  95. package/resources/installation-info.d.ts.map +1 -0
  96. package/resources/installation-info.js +15 -0
  97. package/resources/installation-info.js.map +1 -0
  98. package/resources/installation-info.mjs +11 -0
  99. package/resources/installation-info.mjs.map +1 -0
  100. package/resources/path-get.d.mts +19 -0
  101. package/resources/path-get.d.mts.map +1 -0
  102. package/resources/path-get.d.ts +19 -0
  103. package/resources/path-get.d.ts.map +1 -0
  104. package/resources/path-get.js +15 -0
  105. package/resources/path-get.js.map +1 -0
  106. package/resources/path-get.mjs +11 -0
  107. package/resources/path-get.mjs.map +1 -0
  108. package/resources/provider-list.d.mts +58 -0
  109. package/resources/provider-list.d.mts.map +1 -0
  110. package/resources/provider-list.d.ts +58 -0
  111. package/resources/provider-list.d.ts.map +1 -0
  112. package/resources/provider-list.js +15 -0
  113. package/resources/provider-list.js.map +1 -0
  114. package/resources/provider-list.mjs +11 -0
  115. package/resources/provider-list.mjs.map +1 -0
  116. package/resources/session-abort.d.mts +17 -0
  117. package/resources/session-abort.d.mts.map +1 -0
  118. package/resources/session-abort.d.ts +17 -0
  119. package/resources/session-abort.d.ts.map +1 -0
  120. package/resources/session-abort.js +15 -0
  121. package/resources/session-abort.js.map +1 -0
  122. package/resources/session-abort.mjs +11 -0
  123. package/resources/session-abort.mjs.map +1 -0
  124. package/resources/session-chat.d.mts +160 -0
  125. package/resources/session-chat.d.mts.map +1 -0
  126. package/resources/session-chat.d.ts +160 -0
  127. package/resources/session-chat.d.ts.map +1 -0
  128. package/resources/session-chat.js +15 -0
  129. package/resources/session-chat.js.map +1 -0
  130. package/resources/session-chat.mjs +11 -0
  131. package/resources/session-chat.mjs.map +1 -0
  132. package/resources/session-create.d.mts +30 -0
  133. package/resources/session-create.d.mts.map +1 -0
  134. package/resources/session-create.d.ts +30 -0
  135. package/resources/session-create.d.ts.map +1 -0
  136. package/resources/session-create.js +15 -0
  137. package/resources/session-create.js.map +1 -0
  138. package/resources/session-create.mjs +11 -0
  139. package/resources/session-create.mjs.map +1 -0
  140. package/resources/session-initialize.d.mts +19 -0
  141. package/resources/session-initialize.d.mts.map +1 -0
  142. package/resources/session-initialize.d.ts +19 -0
  143. package/resources/session-initialize.d.ts.map +1 -0
  144. package/resources/session-initialize.js +15 -0
  145. package/resources/session-initialize.js.map +1 -0
  146. package/resources/session-initialize.mjs +11 -0
  147. package/resources/session-initialize.mjs.map +1 -0
  148. package/resources/session-list.d.mts +15 -0
  149. package/resources/session-list.d.mts.map +1 -0
  150. package/resources/session-list.d.ts +15 -0
  151. package/resources/session-list.d.ts.map +1 -0
  152. package/resources/session-list.js +15 -0
  153. package/resources/session-list.js.map +1 -0
  154. package/resources/session-list.mjs +11 -0
  155. package/resources/session-list.mjs.map +1 -0
  156. package/resources/session-messages.d.mts +18 -0
  157. package/resources/session-messages.d.mts.map +1 -0
  158. package/resources/session-messages.d.ts +18 -0
  159. package/resources/session-messages.d.ts.map +1 -0
  160. package/resources/session-messages.js +15 -0
  161. package/resources/session-messages.js.map +1 -0
  162. package/resources/session-messages.mjs +11 -0
  163. package/resources/session-messages.mjs.map +1 -0
  164. package/resources/session-share.d.mts +17 -0
  165. package/resources/session-share.d.mts.map +1 -0
  166. package/resources/session-share.d.ts +17 -0
  167. package/resources/session-share.d.ts.map +1 -0
  168. package/resources/session-share.js +15 -0
  169. package/resources/session-share.js.map +1 -0
  170. package/resources/session-share.mjs +11 -0
  171. package/resources/session-share.mjs.map +1 -0
  172. package/resources/session-summarize.d.mts +19 -0
  173. package/resources/session-summarize.d.mts.map +1 -0
  174. package/resources/session-summarize.d.ts +19 -0
  175. package/resources/session-summarize.d.ts.map +1 -0
  176. package/resources/session-summarize.js +15 -0
  177. package/resources/session-summarize.js.map +1 -0
  178. package/resources/session-summarize.mjs +11 -0
  179. package/resources/session-summarize.mjs.map +1 -0
  180. package/resources/session-unshare.d.mts +17 -0
  181. package/resources/session-unshare.d.mts.map +1 -0
  182. package/resources/session-unshare.d.ts +17 -0
  183. package/resources/session-unshare.d.ts.map +1 -0
  184. package/resources/session-unshare.js +15 -0
  185. package/resources/session-unshare.js.map +1 -0
  186. package/resources/session-unshare.mjs +11 -0
  187. package/resources/session-unshare.mjs.map +1 -0
  188. package/src/client.ts +118 -96
  189. package/src/internal/parse.ts +0 -14
  190. package/src/internal/request-options.ts +0 -2
  191. package/src/internal/types.ts +6 -9
  192. package/src/internal/uploads.ts +1 -1
  193. package/src/internal/utils/log.ts +1 -1
  194. package/src/internal/utils/path.ts +7 -32
  195. package/src/resources/app-info.ts +46 -0
  196. package/src/resources/app-initialize.ts +20 -0
  197. package/src/resources/config-get.ts +294 -0
  198. package/src/resources/event.ts +37 -115
  199. package/src/resources/file-search.ts +27 -0
  200. package/src/resources/index.ts +33 -44
  201. package/src/resources/installation-info.ts +24 -0
  202. package/src/resources/path-get.ts +28 -0
  203. package/src/resources/provider-list.ts +80 -0
  204. package/src/resources/session-abort.ts +27 -0
  205. package/src/resources/session-chat.ts +250 -0
  206. package/src/resources/session-create.ts +44 -0
  207. package/src/resources/session-initialize.ts +34 -0
  208. package/src/resources/session-list.ts +21 -0
  209. package/src/resources/session-messages.ts +31 -0
  210. package/src/resources/session-share.ts +23 -0
  211. package/src/resources/session-summarize.ts +34 -0
  212. package/src/resources/session-unshare.ts +26 -0
  213. package/src/version.ts +1 -1
  214. package/version.d.mts +1 -1
  215. package/version.d.mts.map +1 -1
  216. package/version.d.ts +1 -1
  217. package/version.d.ts.map +1 -1
  218. package/version.js +1 -1
  219. package/version.js.map +1 -1
  220. package/version.mjs +1 -1
  221. package/version.mjs.map +1 -1
  222. package/core/streaming.d.mts +0 -31
  223. package/core/streaming.d.mts.map +0 -1
  224. package/core/streaming.d.ts +0 -31
  225. package/core/streaming.d.ts.map +0 -1
  226. package/core/streaming.js +0 -257
  227. package/core/streaming.js.map +0 -1
  228. package/core/streaming.mjs +0 -252
  229. package/core/streaming.mjs.map +0 -1
  230. package/internal/decoders/line.d.mts +0 -17
  231. package/internal/decoders/line.d.mts.map +0 -1
  232. package/internal/decoders/line.d.ts +0 -17
  233. package/internal/decoders/line.d.ts.map +0 -1
  234. package/internal/decoders/line.js +0 -113
  235. package/internal/decoders/line.js.map +0 -1
  236. package/internal/decoders/line.mjs +0 -108
  237. package/internal/decoders/line.mjs.map +0 -1
  238. package/resources/app.d.mts +0 -37
  239. package/resources/app.d.mts.map +0 -1
  240. package/resources/app.d.ts +0 -37
  241. package/resources/app.d.ts.map +0 -1
  242. package/resources/app.js +0 -21
  243. package/resources/app.js.map +0 -1
  244. package/resources/app.mjs +0 -17
  245. package/resources/app.mjs.map +0 -1
  246. package/resources/config.d.mts +0 -318
  247. package/resources/config.d.mts.map +0 -1
  248. package/resources/config.d.ts +0 -318
  249. package/resources/config.d.ts.map +0 -1
  250. package/resources/config.js +0 -21
  251. package/resources/config.js.map +0 -1
  252. package/resources/config.mjs +0 -17
  253. package/resources/config.mjs.map +0 -1
  254. package/resources/file.d.mts +0 -33
  255. package/resources/file.d.mts.map +0 -1
  256. package/resources/file.d.ts +0 -33
  257. package/resources/file.d.ts.map +0 -1
  258. package/resources/file.js +0 -21
  259. package/resources/file.js.map +0 -1
  260. package/resources/file.mjs +0 -17
  261. package/resources/file.mjs.map +0 -1
  262. package/resources/find.d.mts +0 -60
  263. package/resources/find.d.mts.map +0 -1
  264. package/resources/find.d.ts +0 -60
  265. package/resources/find.d.ts.map +0 -1
  266. package/resources/find.js +0 -27
  267. package/resources/find.js.map +0 -1
  268. package/resources/find.mjs +0 -23
  269. package/resources/find.mjs.map +0 -1
  270. package/resources/session.d.mts +0 -215
  271. package/resources/session.d.mts.map +0 -1
  272. package/resources/session.d.ts +0 -215
  273. package/resources/session.d.ts.map +0 -1
  274. package/resources/session.js +0 -70
  275. package/resources/session.js.map +0 -1
  276. package/resources/session.mjs +0 -66
  277. package/resources/session.mjs.map +0 -1
  278. package/resources/shared.d.mts +0 -20
  279. package/resources/shared.d.mts.map +0 -1
  280. package/resources/shared.d.ts +0 -20
  281. package/resources/shared.d.ts.map +0 -1
  282. package/resources/shared.js +0 -4
  283. package/resources/shared.js.map +0 -1
  284. package/resources/shared.mjs +0 -3
  285. package/resources/shared.mjs.map +0 -1
  286. package/src/core/streaming.ts +0 -301
  287. package/src/internal/decoders/line.ts +0 -135
  288. package/src/resources/app.ts +0 -57
  289. package/src/resources/config.ts +0 -409
  290. package/src/resources/file.ts +0 -53
  291. package/src/resources/find.ts +0 -95
  292. package/src/resources/session.ts +0 -369
  293. package/src/resources/shared.ts +0 -27
  294. package/src/streaming.ts +0 -2
  295. package/streaming.d.mts +0 -2
  296. package/streaming.d.mts.map +0 -1
  297. package/streaming.d.ts +0 -2
  298. package/streaming.d.ts.map +0 -1
  299. package/streaming.js +0 -6
  300. package/streaming.js.map +0 -1
  301. package/streaming.mjs +0 -2
  302. 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,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;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG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AM,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,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,SA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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"}
@@ -1,17 +1,35 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
- import * as SessionAPI from "./session.mjs";
3
- import * as Shared from "./shared.mjs";
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<Stream<EventListResponse>>;
10
+ list(options?: RequestOptions): APIPromise<EventListResponse>;
12
11
  }
13
- export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessageRemoved | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
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: SessionAPI.Message;
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: SessionAPI.MessagePart;
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: SessionAPI.Session;
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?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError;
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
  }