@opencode-ai/sdk 1.14.30 → 1.14.31
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 +30 -30
- package/package.json +1 -1
|
@@ -373,6 +373,34 @@ export type EventVcsBranchUpdated = {
|
|
|
373
373
|
branch?: string;
|
|
374
374
|
};
|
|
375
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
|
+
};
|
|
376
404
|
export type EventWorktreeReady = {
|
|
377
405
|
type: "worktree.ready";
|
|
378
406
|
properties: {
|
|
@@ -420,34 +448,6 @@ export type EventPtyDeleted = {
|
|
|
420
448
|
id: string;
|
|
421
449
|
};
|
|
422
450
|
};
|
|
423
|
-
export type EventWorkspaceReady = {
|
|
424
|
-
type: "workspace.ready";
|
|
425
|
-
properties: {
|
|
426
|
-
name: string;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
export type EventWorkspaceFailed = {
|
|
430
|
-
type: "workspace.failed";
|
|
431
|
-
properties: {
|
|
432
|
-
message: string;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
export type EventWorkspaceRestore = {
|
|
436
|
-
type: "workspace.restore";
|
|
437
|
-
properties: {
|
|
438
|
-
workspaceID: string;
|
|
439
|
-
sessionID: string;
|
|
440
|
-
total: number;
|
|
441
|
-
step: number;
|
|
442
|
-
};
|
|
443
|
-
};
|
|
444
|
-
export type EventWorkspaceStatus = {
|
|
445
|
-
type: "workspace.status";
|
|
446
|
-
properties: {
|
|
447
|
-
workspaceID: string;
|
|
448
|
-
status: "connected" | "connecting" | "disconnected" | "error";
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
451
|
export type OutputFormatText = {
|
|
452
452
|
type: "text";
|
|
453
453
|
};
|
|
@@ -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 |
|
|
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 | 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 |
|
|
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
|
};
|