@opencode-ai/sdk 0.1.0-alpha.20 → 0.1.0-alpha.21

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 (66) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +4 -198
  3. package/client.d.mts +14 -11
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +14 -11
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +2 -2
  12. package/resources/app.d.mts +2 -5
  13. package/resources/app.d.mts.map +1 -1
  14. package/resources/app.d.ts +2 -5
  15. package/resources/app.d.ts.map +1 -1
  16. package/resources/config.d.mts +64 -17
  17. package/resources/config.d.mts.map +1 -1
  18. package/resources/config.d.ts +64 -17
  19. package/resources/config.d.ts.map +1 -1
  20. package/resources/config.js.map +1 -1
  21. package/resources/config.mjs.map +1 -1
  22. package/resources/event.d.mts +58 -39
  23. package/resources/event.d.mts.map +1 -1
  24. package/resources/event.d.ts +58 -39
  25. package/resources/event.d.ts.map +1 -1
  26. package/resources/find.d.mts +29 -27
  27. package/resources/find.d.mts.map +1 -1
  28. package/resources/find.d.ts +29 -27
  29. package/resources/find.d.ts.map +1 -1
  30. package/resources/index.d.mts +5 -4
  31. package/resources/index.d.mts.map +1 -1
  32. package/resources/index.d.ts +5 -4
  33. package/resources/index.d.ts.map +1 -1
  34. package/resources/index.js +3 -1
  35. package/resources/index.js.map +1 -1
  36. package/resources/index.mjs +1 -0
  37. package/resources/index.mjs.map +1 -1
  38. package/resources/session.d.mts +91 -6
  39. package/resources/session.d.mts.map +1 -1
  40. package/resources/session.d.ts +91 -6
  41. package/resources/session.d.ts.map +1 -1
  42. package/resources/session.js +12 -0
  43. package/resources/session.js.map +1 -1
  44. package/resources/session.mjs +12 -0
  45. package/resources/session.mjs.map +1 -1
  46. package/resources/tui.d.mts +22 -0
  47. package/resources/tui.d.mts.map +1 -0
  48. package/resources/tui.d.ts +22 -0
  49. package/resources/tui.d.ts.map +1 -0
  50. package/resources/tui.js +21 -0
  51. package/resources/tui.js.map +1 -0
  52. package/resources/tui.mjs +17 -0
  53. package/resources/tui.mjs.map +1 -0
  54. package/src/client.ts +27 -9
  55. package/src/resources/app.ts +2 -6
  56. package/src/resources/config.ts +78 -17
  57. package/src/resources/event.ts +81 -53
  58. package/src/resources/find.ts +39 -38
  59. package/src/resources/index.ts +13 -3
  60. package/src/resources/session.ts +155 -7
  61. package/src/resources/tui.ts +37 -0
  62. package/src/version.ts +1 -1
  63. package/version.d.mts +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -24,7 +24,6 @@ import {
24
24
  AppModesResponse,
25
25
  AppProvidersResponse,
26
26
  AppResource,
27
- LogLevel,
28
27
  Mode,
29
28
  Model,
30
29
  Provider,
@@ -33,7 +32,6 @@ import {
33
32
  Config,
34
33
  ConfigResource,
35
34
  KeybindsConfig,
36
- LayoutConfig,
37
35
  McpLocalConfig,
38
36
  McpRemoteConfig,
39
37
  ModeConfig,
@@ -48,12 +46,15 @@ import {
48
46
  FindSymbolsResponse,
49
47
  FindTextParams,
50
48
  FindTextResponse,
51
- Match,
52
49
  Symbol,
53
50
  } from './resources/find';
54
51
  import {
55
52
  AssistantMessage,
56
53
  FilePart,
54
+ FilePartInput,
55
+ FilePartSource,
56
+ FilePartSourceText,
57
+ FileSource,
57
58
  Message,
58
59
  Part,
59
60
  Session,
@@ -65,12 +66,15 @@ import {
65
66
  SessionListResponse,
66
67
  SessionMessagesResponse,
67
68
  SessionResource,
69
+ SessionRevertParams,
68
70
  SessionSummarizeParams,
69
71
  SessionSummarizeResponse,
70
72
  SnapshotPart,
71
73
  StepFinishPart,
72
74
  StepStartPart,
75
+ SymbolSource,
73
76
  TextPart,
77
+ TextPartInput,
74
78
  ToolPart,
75
79
  ToolStateCompleted,
76
80
  ToolStateError,
@@ -78,12 +82,13 @@ import {
78
82
  ToolStateRunning,
79
83
  UserMessage,
80
84
  } from './resources/session';
85
+ import { Tui, TuiAppendPromptParams, TuiAppendPromptResponse, TuiOpenHelpResponse } from './resources/tui';
81
86
  import { type Fetch } from './internal/builtin-types';
82
87
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
83
88
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
84
89
  import { readEnv } from './internal/utils/env';
85
90
  import {
86
- type LogLevel as ClientLogLevel,
91
+ type LogLevel,
87
92
  type Logger,
88
93
  formatRequestDetails,
89
94
  loggerFor,
@@ -151,7 +156,7 @@ export interface ClientOptions {
151
156
  *
152
157
  * Defaults to process.env['OPENCODE_LOG'] or 'warn' if it isn't set.
153
158
  */
154
- logLevel?: ClientLogLevel | undefined;
159
+ logLevel?: LogLevel | undefined;
155
160
 
156
161
  /**
157
162
  * Set the logger.
@@ -169,7 +174,7 @@ export class Opencode {
169
174
  maxRetries: number;
170
175
  timeout: number;
171
176
  logger: Logger | undefined;
172
- logLevel: ClientLogLevel | undefined;
177
+ logLevel: LogLevel | undefined;
173
178
  fetchOptions: MergedRequestInit | undefined;
174
179
 
175
180
  private fetch: Fetch;
@@ -754,6 +759,7 @@ export class Opencode {
754
759
  file: API.FileResource = new API.FileResource(this);
755
760
  config: API.ConfigResource = new API.ConfigResource(this);
756
761
  session: API.SessionResource = new API.SessionResource(this);
762
+ tui: API.Tui = new API.Tui(this);
757
763
  }
758
764
  Opencode.Event = Event;
759
765
  Opencode.AppResource = AppResource;
@@ -761,6 +767,7 @@ Opencode.Find = Find;
761
767
  Opencode.FileResource = FileResource;
762
768
  Opencode.ConfigResource = ConfigResource;
763
769
  Opencode.SessionResource = SessionResource;
770
+ Opencode.Tui = Tui;
764
771
  export declare namespace Opencode {
765
772
  export type RequestOptions = Opts.RequestOptions;
766
773
 
@@ -769,7 +776,6 @@ export declare namespace Opencode {
769
776
  export {
770
777
  AppResource as AppResource,
771
778
  type App as App,
772
- type LogLevel as LogLevel,
773
779
  type Mode as Mode,
774
780
  type Model as Model,
775
781
  type Provider as Provider,
@@ -782,7 +788,6 @@ export declare namespace Opencode {
782
788
 
783
789
  export {
784
790
  Find as Find,
785
- type Match as Match,
786
791
  type Symbol as Symbol,
787
792
  type FindFilesResponse as FindFilesResponse,
788
793
  type FindSymbolsResponse as FindSymbolsResponse,
@@ -804,7 +809,6 @@ export declare namespace Opencode {
804
809
  ConfigResource as ConfigResource,
805
810
  type Config as Config,
806
811
  type KeybindsConfig as KeybindsConfig,
807
- type LayoutConfig as LayoutConfig,
808
812
  type McpLocalConfig as McpLocalConfig,
809
813
  type McpRemoteConfig as McpRemoteConfig,
810
814
  type ModeConfig as ModeConfig,
@@ -814,13 +818,19 @@ export declare namespace Opencode {
814
818
  SessionResource as SessionResource,
815
819
  type AssistantMessage as AssistantMessage,
816
820
  type FilePart as FilePart,
821
+ type FilePartInput as FilePartInput,
822
+ type FilePartSource as FilePartSource,
823
+ type FilePartSourceText as FilePartSourceText,
824
+ type FileSource as FileSource,
817
825
  type Message as Message,
818
826
  type Part as Part,
819
827
  type Session as Session,
820
828
  type SnapshotPart as SnapshotPart,
821
829
  type StepFinishPart as StepFinishPart,
822
830
  type StepStartPart as StepStartPart,
831
+ type SymbolSource as SymbolSource,
823
832
  type TextPart as TextPart,
833
+ type TextPartInput as TextPartInput,
824
834
  type ToolPart as ToolPart,
825
835
  type ToolStateCompleted as ToolStateCompleted,
826
836
  type ToolStateError as ToolStateError,
@@ -835,9 +845,17 @@ export declare namespace Opencode {
835
845
  type SessionSummarizeResponse as SessionSummarizeResponse,
836
846
  type SessionChatParams as SessionChatParams,
837
847
  type SessionInitParams as SessionInitParams,
848
+ type SessionRevertParams as SessionRevertParams,
838
849
  type SessionSummarizeParams as SessionSummarizeParams,
839
850
  };
840
851
 
852
+ export {
853
+ Tui as Tui,
854
+ type TuiAppendPromptResponse as TuiAppendPromptResponse,
855
+ type TuiOpenHelpResponse as TuiOpenHelpResponse,
856
+ type TuiAppendPromptParams as TuiAppendPromptParams,
857
+ };
858
+
841
859
  export type MessageAbortedError = API.MessageAbortedError;
842
860
  export type ProviderAuthError = API.ProviderAuthError;
843
861
  export type UnknownError = API.UnknownError;
@@ -69,11 +69,6 @@ export namespace App {
69
69
  }
70
70
  }
71
71
 
72
- /**
73
- * Log level
74
- */
75
- export type LogLevel = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR';
76
-
77
72
  export interface Mode {
78
73
  name: string;
79
74
 
@@ -82,6 +77,8 @@ export interface Mode {
82
77
  model?: Mode.Model;
83
78
 
84
79
  prompt?: string;
80
+
81
+ temperature?: number;
85
82
  }
86
83
 
87
84
  export namespace Mode {
@@ -183,7 +180,6 @@ export interface AppLogParams {
183
180
  export declare namespace AppResource {
184
181
  export {
185
182
  type App as App,
186
- type LogLevel as LogLevel,
187
183
  type Mode as Mode,
188
184
  type Model as Model,
189
185
  type Provider as Provider,
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as ConfigAPI from './config';
5
- import * as AppAPI from './app';
6
5
  import { APIPromise } from '../core/api-promise';
7
6
  import { RequestOptions } from '../internal/request-options';
8
7
 
@@ -21,6 +20,11 @@ export interface Config {
21
20
  */
22
21
  $schema?: string;
23
22
 
23
+ /**
24
+ * Modes configuration, see https://opencode.ai/docs/modes
25
+ */
26
+ agent?: Config.Agent;
27
+
24
28
  /**
25
29
  * @deprecated Use 'share' field instead. Share newly created sessions
26
30
  * automatically
@@ -50,14 +54,9 @@ export interface Config {
50
54
  keybinds?: KeybindsConfig;
51
55
 
52
56
  /**
53
- * Layout to use for the TUI
57
+ * @deprecated Always uses stretch layout.
54
58
  */
55
- layout?: LayoutConfig;
56
-
57
- /**
58
- * Minimum log level to write to log files
59
- */
60
- log_level?: AppAPI.LogLevel;
59
+ layout?: 'auto' | 'stretch';
61
60
 
62
61
  /**
63
62
  * MCP (Model Context Protocol) server configurations
@@ -80,10 +79,16 @@ export interface Config {
80
79
  provider?: { [key: string]: Config.Provider };
81
80
 
82
81
  /**
83
- * Control sharing behavior: 'auto' enables automatic sharing, 'disabled' disables
84
- * all sharing
82
+ * Control sharing behavior:'manual' allows manual sharing via commands, 'auto'
83
+ * enables automatic sharing, 'disabled' disables all sharing
85
84
  */
86
- share?: 'auto' | 'disabled';
85
+ share?: 'manual' | 'auto' | 'disabled';
86
+
87
+ /**
88
+ * Small model to use for tasks like summarization and title generation in the
89
+ * format of provider/model
90
+ */
91
+ small_model?: string;
87
92
 
88
93
  /**
89
94
  * Theme name to use for the interface
@@ -97,6 +102,33 @@ export interface Config {
97
102
  }
98
103
 
99
104
  export namespace Config {
105
+ /**
106
+ * Modes configuration, see https://opencode.ai/docs/modes
107
+ */
108
+ export interface Agent {
109
+ general?: Agent.General;
110
+
111
+ [k: string]: Agent.AgentConfig | undefined;
112
+ }
113
+
114
+ export namespace Agent {
115
+ export interface General extends ConfigAPI.ModeConfig {
116
+ description: string;
117
+ }
118
+
119
+ export interface AgentConfig extends ConfigAPI.ModeConfig {
120
+ description: string;
121
+ }
122
+ }
123
+
124
+ export interface AgentConfig extends ConfigAPI.ModeConfig {
125
+ description: string;
126
+ }
127
+
128
+ export interface AgentConfig extends ConfigAPI.ModeConfig {
129
+ description: string;
130
+ }
131
+
100
132
  export interface Experimental {
101
133
  hook?: Experimental.Hook;
102
134
  }
@@ -147,7 +179,7 @@ export namespace Config {
147
179
 
148
180
  npm?: string;
149
181
 
150
- options?: { [key: string]: unknown };
182
+ options?: Provider.Options;
151
183
  }
152
184
 
153
185
  export namespace Provider {
@@ -190,6 +222,14 @@ export namespace Config {
190
222
  output: number;
191
223
  }
192
224
  }
225
+
226
+ export interface Options {
227
+ apiKey?: string;
228
+
229
+ baseURL?: string;
230
+
231
+ [k: string]: unknown;
232
+ }
193
233
  }
194
234
  }
195
235
 
@@ -305,10 +345,20 @@ export interface KeybindsConfig {
305
345
  messages_previous: string;
306
346
 
307
347
  /**
308
- * Revert message
348
+ * Redo message
349
+ */
350
+ messages_redo: string;
351
+
352
+ /**
353
+ * @deprecated use messages_undo. Revert message
309
354
  */
310
355
  messages_revert: string;
311
356
 
357
+ /**
358
+ * Undo message
359
+ */
360
+ messages_undo: string;
361
+
312
362
  /**
313
363
  * List available models
314
364
  */
@@ -355,10 +405,15 @@ export interface KeybindsConfig {
355
405
  session_unshare: string;
356
406
 
357
407
  /**
358
- * Switch mode
408
+ * Next mode
359
409
  */
360
410
  switch_mode: string;
361
411
 
412
+ /**
413
+ * Previous Mode
414
+ */
415
+ switch_mode_reverse: string;
416
+
362
417
  /**
363
418
  * List available themes
364
419
  */
@@ -370,8 +425,6 @@ export interface KeybindsConfig {
370
425
  tool_details: string;
371
426
  }
372
427
 
373
- export type LayoutConfig = 'auto' | 'stretch';
374
-
375
428
  export interface McpLocalConfig {
376
429
  /**
377
430
  * Command and arguments to run the MCP server
@@ -409,13 +462,22 @@ export interface McpRemoteConfig {
409
462
  * Enable or disable the MCP server on startup
410
463
  */
411
464
  enabled?: boolean;
465
+
466
+ /**
467
+ * Headers to send with the request
468
+ */
469
+ headers?: { [key: string]: string };
412
470
  }
413
471
 
414
472
  export interface ModeConfig {
473
+ disable?: boolean;
474
+
415
475
  model?: string;
416
476
 
417
477
  prompt?: string;
418
478
 
479
+ temperature?: number;
480
+
419
481
  tools?: { [key: string]: boolean };
420
482
  }
421
483
 
@@ -423,7 +485,6 @@ export declare namespace ConfigResource {
423
485
  export {
424
486
  type Config as Config,
425
487
  type KeybindsConfig as KeybindsConfig,
426
- type LayoutConfig as LayoutConfig,
427
488
  type McpLocalConfig as McpLocalConfig,
428
489
  type McpRemoteConfig as McpRemoteConfig,
429
490
  type ModeConfig as ModeConfig,
@@ -17,82 +17,46 @@ export class Event extends APIResource {
17
17
  }
18
18
 
19
19
  export type EventListResponse =
20
- | EventListResponse.EventLspClientDiagnostics
21
- | EventListResponse.EventPermissionUpdated
22
- | EventListResponse.EventFileEdited
23
20
  | EventListResponse.EventInstallationUpdated
21
+ | EventListResponse.EventLspClientDiagnostics
24
22
  | EventListResponse.EventMessageUpdated
25
23
  | EventListResponse.EventMessageRemoved
26
24
  | EventListResponse.EventMessagePartUpdated
25
+ | EventListResponse.EventMessagePartRemoved
27
26
  | EventListResponse.EventStorageWrite
27
+ | EventListResponse.EventPermissionUpdated
28
+ | EventListResponse.EventFileEdited
28
29
  | EventListResponse.EventSessionUpdated
29
30
  | EventListResponse.EventSessionDeleted
30
31
  | EventListResponse.EventSessionIdle
31
32
  | EventListResponse.EventSessionError
32
- | EventListResponse.EventFileWatcherUpdated;
33
+ | EventListResponse.EventFileWatcherUpdated
34
+ | EventListResponse.EventIdeInstalled;
33
35
 
34
36
  export namespace EventListResponse {
35
- export interface EventLspClientDiagnostics {
36
- properties: EventLspClientDiagnostics.Properties;
37
-
38
- type: 'lsp.client.diagnostics';
39
- }
40
-
41
- export namespace EventLspClientDiagnostics {
42
- export interface Properties {
43
- path: string;
44
-
45
- serverID: string;
46
- }
47
- }
48
-
49
- export interface EventPermissionUpdated {
50
- properties: EventPermissionUpdated.Properties;
37
+ export interface EventInstallationUpdated {
38
+ properties: EventInstallationUpdated.Properties;
51
39
 
52
- type: 'permission.updated';
40
+ type: 'installation.updated';
53
41
  }
54
42
 
55
- export namespace EventPermissionUpdated {
43
+ export namespace EventInstallationUpdated {
56
44
  export interface Properties {
57
- id: string;
58
-
59
- metadata: { [key: string]: unknown };
60
-
61
- sessionID: string;
62
-
63
- time: Properties.Time;
64
-
65
- title: string;
66
- }
67
-
68
- export namespace Properties {
69
- export interface Time {
70
- created: number;
71
- }
45
+ version: string;
72
46
  }
73
47
  }
74
48
 
75
- export interface EventFileEdited {
76
- properties: EventFileEdited.Properties;
49
+ export interface EventLspClientDiagnostics {
50
+ properties: EventLspClientDiagnostics.Properties;
77
51
 
78
- type: 'file.edited';
52
+ type: 'lsp.client.diagnostics';
79
53
  }
80
54
 
81
- export namespace EventFileEdited {
55
+ export namespace EventLspClientDiagnostics {
82
56
  export interface Properties {
83
- file: string;
84
- }
85
- }
86
-
87
- export interface EventInstallationUpdated {
88
- properties: EventInstallationUpdated.Properties;
89
-
90
- type: 'installation.updated';
91
- }
57
+ path: string;
92
58
 
93
- export namespace EventInstallationUpdated {
94
- export interface Properties {
95
- version: string;
59
+ serverID: string;
96
60
  }
97
61
  }
98
62
 
@@ -134,6 +98,20 @@ export namespace EventListResponse {
134
98
  }
135
99
  }
136
100
 
101
+ export interface EventMessagePartRemoved {
102
+ properties: EventMessagePartRemoved.Properties;
103
+
104
+ type: 'message.part.removed';
105
+ }
106
+
107
+ export namespace EventMessagePartRemoved {
108
+ export interface Properties {
109
+ messageID: string;
110
+
111
+ partID: string;
112
+ }
113
+ }
114
+
137
115
  export interface EventStorageWrite {
138
116
  properties: EventStorageWrite.Properties;
139
117
 
@@ -148,6 +126,44 @@ export namespace EventListResponse {
148
126
  }
149
127
  }
150
128
 
129
+ export interface EventPermissionUpdated {
130
+ properties: EventPermissionUpdated.Properties;
131
+
132
+ type: 'permission.updated';
133
+ }
134
+
135
+ export namespace EventPermissionUpdated {
136
+ export interface Properties {
137
+ id: string;
138
+
139
+ metadata: { [key: string]: unknown };
140
+
141
+ sessionID: string;
142
+
143
+ time: Properties.Time;
144
+
145
+ title: string;
146
+ }
147
+
148
+ export namespace Properties {
149
+ export interface Time {
150
+ created: number;
151
+ }
152
+ }
153
+ }
154
+
155
+ export interface EventFileEdited {
156
+ properties: EventFileEdited.Properties;
157
+
158
+ type: 'file.edited';
159
+ }
160
+
161
+ export namespace EventFileEdited {
162
+ export interface Properties {
163
+ file: string;
164
+ }
165
+ }
166
+
151
167
  export interface EventSessionUpdated {
152
168
  properties: EventSessionUpdated.Properties;
153
169
 
@@ -223,6 +239,18 @@ export namespace EventListResponse {
223
239
  file: string;
224
240
  }
225
241
  }
242
+
243
+ export interface EventIdeInstalled {
244
+ properties: EventIdeInstalled.Properties;
245
+
246
+ type: 'ide.installed';
247
+ }
248
+
249
+ export namespace EventIdeInstalled {
250
+ export interface Properties {
251
+ ide: string;
252
+ }
253
+ }
226
254
  }
227
255
 
228
256
  export declare namespace Event {
@@ -27,42 +27,6 @@ export class Find extends APIResource {
27
27
  }
28
28
  }
29
29
 
30
- export interface Match {
31
- absolute_offset: number;
32
-
33
- line_number: number;
34
-
35
- lines: Match.Lines;
36
-
37
- path: Match.Path;
38
-
39
- submatches: Array<Match.Submatch>;
40
- }
41
-
42
- export namespace Match {
43
- export interface Lines {
44
- text: string;
45
- }
46
-
47
- export interface Path {
48
- text: string;
49
- }
50
-
51
- export interface Submatch {
52
- end: number;
53
-
54
- match: Submatch.Match;
55
-
56
- start: number;
57
- }
58
-
59
- export namespace Submatch {
60
- export interface Match {
61
- text: string;
62
- }
63
- }
64
- }
65
-
66
30
  export interface Symbol {
67
31
  kind: number;
68
32
 
@@ -105,7 +69,45 @@ export type FindFilesResponse = Array<string>;
105
69
 
106
70
  export type FindSymbolsResponse = Array<Symbol>;
107
71
 
108
- export type FindTextResponse = Array<Match>;
72
+ export type FindTextResponse = Array<FindTextResponse.FindTextResponseItem>;
73
+
74
+ export namespace FindTextResponse {
75
+ export interface FindTextResponseItem {
76
+ absolute_offset: number;
77
+
78
+ line_number: number;
79
+
80
+ lines: FindTextResponseItem.Lines;
81
+
82
+ path: FindTextResponseItem.Path;
83
+
84
+ submatches: Array<FindTextResponseItem.Submatch>;
85
+ }
86
+
87
+ export namespace FindTextResponseItem {
88
+ export interface Lines {
89
+ text: string;
90
+ }
91
+
92
+ export interface Path {
93
+ text: string;
94
+ }
95
+
96
+ export interface Submatch {
97
+ end: number;
98
+
99
+ match: Submatch.Match;
100
+
101
+ start: number;
102
+ }
103
+
104
+ export namespace Submatch {
105
+ export interface Match {
106
+ text: string;
107
+ }
108
+ }
109
+ }
110
+ }
109
111
 
110
112
  export interface FindFilesParams {
111
113
  query: string;
@@ -121,7 +123,6 @@ export interface FindTextParams {
121
123
 
122
124
  export declare namespace Find {
123
125
  export {
124
- type Match as Match,
125
126
  type Symbol as Symbol,
126
127
  type FindFilesResponse as FindFilesResponse,
127
128
  type FindSymbolsResponse as FindSymbolsResponse,
@@ -4,7 +4,6 @@ export * from './shared';
4
4
  export {
5
5
  AppResource,
6
6
  type App,
7
- type LogLevel,
8
7
  type Mode,
9
8
  type Model,
10
9
  type Provider,
@@ -18,7 +17,6 @@ export {
18
17
  ConfigResource,
19
18
  type Config,
20
19
  type KeybindsConfig,
21
- type LayoutConfig,
22
20
  type McpLocalConfig,
23
21
  type McpRemoteConfig,
24
22
  type ModeConfig,
@@ -33,7 +31,6 @@ export {
33
31
  } from './file';
34
32
  export {
35
33
  Find,
36
- type Match,
37
34
  type Symbol,
38
35
  type FindFilesResponse,
39
36
  type FindSymbolsResponse,
@@ -46,13 +43,19 @@ export {
46
43
  SessionResource,
47
44
  type AssistantMessage,
48
45
  type FilePart,
46
+ type FilePartInput,
47
+ type FilePartSource,
48
+ type FilePartSourceText,
49
+ type FileSource,
49
50
  type Message,
50
51
  type Part,
51
52
  type Session,
52
53
  type SnapshotPart,
53
54
  type StepFinishPart,
54
55
  type StepStartPart,
56
+ type SymbolSource,
55
57
  type TextPart,
58
+ type TextPartInput,
56
59
  type ToolPart,
57
60
  type ToolStateCompleted,
58
61
  type ToolStateError,
@@ -67,5 +70,12 @@ export {
67
70
  type SessionSummarizeResponse,
68
71
  type SessionChatParams,
69
72
  type SessionInitParams,
73
+ type SessionRevertParams,
70
74
  type SessionSummarizeParams,
71
75
  } from './session';
76
+ export {
77
+ Tui,
78
+ type TuiAppendPromptResponse,
79
+ type TuiOpenHelpResponse,
80
+ type TuiAppendPromptParams,
81
+ } from './tui';