@opencode-ai/sdk 1.14.32 → 1.14.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/types.gen.d.ts +46 -46
- package/package.json +1 -1
|
@@ -28,6 +28,12 @@ export type EventProjectUpdated = {
|
|
|
28
28
|
type: "project.updated";
|
|
29
29
|
properties: Project;
|
|
30
30
|
};
|
|
31
|
+
export type EventServerInstanceDisposed = {
|
|
32
|
+
type: "server.instance.disposed";
|
|
33
|
+
properties: {
|
|
34
|
+
directory: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
31
37
|
export type EventServerConnected = {
|
|
32
38
|
type: "server.connected";
|
|
33
39
|
properties: {
|
|
@@ -40,10 +46,17 @@ export type EventGlobalDisposed = {
|
|
|
40
46
|
[key: string]: unknown;
|
|
41
47
|
};
|
|
42
48
|
};
|
|
43
|
-
export type
|
|
44
|
-
type: "
|
|
49
|
+
export type EventFileEdited = {
|
|
50
|
+
type: "file.edited";
|
|
45
51
|
properties: {
|
|
46
|
-
|
|
52
|
+
file: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export type EventFileWatcherUpdated = {
|
|
56
|
+
type: "file.watcher.updated";
|
|
57
|
+
properties: {
|
|
58
|
+
file: string;
|
|
59
|
+
event: "add" | "change" | "unlink";
|
|
47
60
|
};
|
|
48
61
|
};
|
|
49
62
|
export type EventLspClientDiagnostics = {
|
|
@@ -182,47 +195,6 @@ export type EventInstallationUpdateAvailable = {
|
|
|
182
195
|
version: string;
|
|
183
196
|
};
|
|
184
197
|
};
|
|
185
|
-
export type EventWorkspaceReady = {
|
|
186
|
-
type: "workspace.ready";
|
|
187
|
-
properties: {
|
|
188
|
-
name: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
export type EventWorkspaceFailed = {
|
|
192
|
-
type: "workspace.failed";
|
|
193
|
-
properties: {
|
|
194
|
-
message: string;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
export type EventWorkspaceRestore = {
|
|
198
|
-
type: "workspace.restore";
|
|
199
|
-
properties: {
|
|
200
|
-
workspaceID: string;
|
|
201
|
-
sessionID: string;
|
|
202
|
-
total: number;
|
|
203
|
-
step: number;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
export type EventWorkspaceStatus = {
|
|
207
|
-
type: "workspace.status";
|
|
208
|
-
properties: {
|
|
209
|
-
workspaceID: string;
|
|
210
|
-
status: "connected" | "connecting" | "disconnected" | "error";
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
export type EventFileEdited = {
|
|
214
|
-
type: "file.edited";
|
|
215
|
-
properties: {
|
|
216
|
-
file: string;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
export type EventFileWatcherUpdated = {
|
|
220
|
-
type: "file.watcher.updated";
|
|
221
|
-
properties: {
|
|
222
|
-
file: string;
|
|
223
|
-
event: "add" | "change" | "unlink";
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
198
|
export type QuestionOption = {
|
|
227
199
|
/**
|
|
228
200
|
* Display text (1-5 words, concise)
|
|
@@ -401,6 +373,34 @@ export type EventVcsBranchUpdated = {
|
|
|
401
373
|
branch?: string;
|
|
402
374
|
};
|
|
403
375
|
};
|
|
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
404
|
export type EventWorktreeReady = {
|
|
405
405
|
type: "worktree.ready";
|
|
406
406
|
properties: {
|
|
@@ -952,7 +952,7 @@ export type GlobalEvent = {
|
|
|
952
952
|
directory: string;
|
|
953
953
|
project?: string;
|
|
954
954
|
workspace?: string;
|
|
955
|
-
payload: EventProjectUpdated | EventServerConnected | EventGlobalDisposed |
|
|
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;
|
|
956
956
|
};
|
|
957
957
|
/**
|
|
958
958
|
* Log level
|
|
@@ -1756,7 +1756,7 @@ export type File = {
|
|
|
1756
1756
|
removed: number;
|
|
1757
1757
|
status: "added" | "deleted" | "modified";
|
|
1758
1758
|
};
|
|
1759
|
-
export type Event = EventProjectUpdated | EventServerConnected | EventGlobalDisposed |
|
|
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;
|
|
1760
1760
|
export type McpStatusConnected = {
|
|
1761
1761
|
status: "connected";
|
|
1762
1762
|
};
|