@opencode-ai/sdk 0.0.0-dev-202605022319 → 0.0.0-dev-202605030028

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.
@@ -34,31 +34,6 @@ export type EventServerInstanceDisposed = {
34
34
  directory: string;
35
35
  };
36
36
  };
37
- export type EventServerConnected = {
38
- type: "server.connected";
39
- properties: {
40
- [key: string]: unknown;
41
- };
42
- };
43
- export type EventGlobalDisposed = {
44
- type: "global.disposed";
45
- properties: {
46
- [key: string]: unknown;
47
- };
48
- };
49
- export type EventFileEdited = {
50
- type: "file.edited";
51
- properties: {
52
- file: string;
53
- };
54
- };
55
- export type EventFileWatcherUpdated = {
56
- type: "file.watcher.updated";
57
- properties: {
58
- file: string;
59
- event: "add" | "change" | "unlink";
60
- };
61
- };
62
37
  export type EventLspClientDiagnostics = {
63
38
  type: "lsp.client.diagnostics";
64
39
  properties: {
@@ -195,6 +170,47 @@ export type EventInstallationUpdateAvailable = {
195
170
  version: string;
196
171
  };
197
172
  };
173
+ export type EventWorkspaceReady = {
174
+ type: "workspace.ready";
175
+ properties: {
176
+ name: string;
177
+ };
178
+ };
179
+ export type EventWorkspaceFailed = {
180
+ type: "workspace.failed";
181
+ properties: {
182
+ message: string;
183
+ };
184
+ };
185
+ export type EventWorkspaceRestore = {
186
+ type: "workspace.restore";
187
+ properties: {
188
+ workspaceID: string;
189
+ sessionID: string;
190
+ total: number;
191
+ step: number;
192
+ };
193
+ };
194
+ export type EventWorkspaceStatus = {
195
+ type: "workspace.status";
196
+ properties: {
197
+ workspaceID: string;
198
+ status: "connected" | "connecting" | "disconnected" | "error";
199
+ };
200
+ };
201
+ export type EventFileEdited = {
202
+ type: "file.edited";
203
+ properties: {
204
+ file: string;
205
+ };
206
+ };
207
+ export type EventFileWatcherUpdated = {
208
+ type: "file.watcher.updated";
209
+ properties: {
210
+ file: string;
211
+ event: "add" | "change" | "unlink";
212
+ };
213
+ };
198
214
  export type QuestionOption = {
199
215
  /**
200
216
  * Display text (1-5 words, concise)
@@ -373,34 +389,6 @@ export type EventVcsBranchUpdated = {
373
389
  branch?: string;
374
390
  };
375
391
  };
376
- export type EventWorkspaceReady = {
377
- type: "workspace.ready";
378
- properties: {
379
- name: string;
380
- };
381
- };
382
- export type EventWorkspaceFailed = {
383
- type: "workspace.failed";
384
- properties: {
385
- message: string;
386
- };
387
- };
388
- export type EventWorkspaceRestore = {
389
- type: "workspace.restore";
390
- properties: {
391
- workspaceID: string;
392
- sessionID: string;
393
- total: number;
394
- step: number;
395
- };
396
- };
397
- export type EventWorkspaceStatus = {
398
- type: "workspace.status";
399
- properties: {
400
- workspaceID: string;
401
- status: "connected" | "connecting" | "disconnected" | "error";
402
- };
403
- };
404
392
  export type EventWorktreeReady = {
405
393
  type: "worktree.ready";
406
394
  properties: {
@@ -837,6 +825,18 @@ export type EventSessionDeleted = {
837
825
  info: Session;
838
826
  };
839
827
  };
828
+ export type EventServerConnected = {
829
+ type: "server.connected";
830
+ properties: {
831
+ [key: string]: unknown;
832
+ };
833
+ };
834
+ export type EventGlobalDisposed = {
835
+ type: "global.disposed";
836
+ properties: {
837
+ [key: string]: unknown;
838
+ };
839
+ };
840
840
  export type SyncEventMessageUpdated = {
841
841
  type: "sync";
842
842
  name: "message.updated.1";
@@ -952,7 +952,7 @@ export type GlobalEvent = {
952
952
  directory: string;
953
953
  project?: string;
954
954
  workspace?: string;
955
- payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
955
+ payload: EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventServerConnected | EventGlobalDisposed | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
956
956
  };
957
957
  /**
958
958
  * Log level
@@ -1337,6 +1337,9 @@ export type Config = {
1337
1337
  enabled: boolean;
1338
1338
  };
1339
1339
  };
1340
+ /**
1341
+ * Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides.
1342
+ */
1340
1343
  formatter?: boolean | {
1341
1344
  [key: string]: {
1342
1345
  disabled?: boolean;
@@ -1347,6 +1350,9 @@ export type Config = {
1347
1350
  extensions?: Array<string>;
1348
1351
  };
1349
1352
  };
1353
+ /**
1354
+ * Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides.
1355
+ */
1350
1356
  lsp?: boolean | {
1351
1357
  [key: string]: {
1352
1358
  disabled: true;
@@ -1756,7 +1762,7 @@ export type File = {
1756
1762
  removed: number;
1757
1763
  status: "added" | "deleted" | "modified";
1758
1764
  };
1759
- export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
1765
+ export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventServerConnected | EventGlobalDisposed;
1760
1766
  export type McpStatusConnected = {
1761
1767
  status: "connected";
1762
1768
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "0.0.0-dev-202605022319",
4
+ "version": "0.0.0-dev-202605030028",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {