summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-05-02 04:03:59 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-05-02 04:03:59 +0000
commitbecf57ee6a704e62d7075630852e9c17dfbb110a (patch)
tree6f813f4f6958592e48e66e5f1c8231dab6595e3c /packages/sdk/js/src
parentf33aec1139afa5e9741cc19e9f2d1b60558d4861 (diff)
downloadopencode-becf57ee6a704e62d7075630852e9c17dfbb110a.tar.gz
opencode-becf57ee6a704e62d7075630852e9c17dfbb110a.zip
chore: generate
Diffstat (limited to 'packages/sdk/js/src')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts128
1 files changed, 64 insertions, 64 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index b925ec609..e46f8e04f 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -33,13 +33,6 @@ export type EventProjectUpdated = {
properties: Project
}
-export type EventServerInstanceDisposed = {
- type: "server.instance.disposed"
- properties: {
- directory: string
- }
-}
-
export type EventServerConnected = {
type: "server.connected"
properties: {
@@ -54,18 +47,10 @@ export type EventGlobalDisposed = {
}
}
-export type EventFileEdited = {
- type: "file.edited"
- properties: {
- file: string
- }
-}
-
-export type EventFileWatcherUpdated = {
- type: "file.watcher.updated"
+export type EventServerInstanceDisposed = {
+ type: "server.instance.disposed"
properties: {
- file: string
- event: "add" | "change" | "unlink"
+ directory: string
}
}
@@ -230,6 +215,53 @@ export type EventInstallationUpdateAvailable = {
}
}
+export type EventWorkspaceReady = {
+ type: "workspace.ready"
+ properties: {
+ name: string
+ }
+}
+
+export type EventWorkspaceFailed = {
+ type: "workspace.failed"
+ properties: {
+ message: string
+ }
+}
+
+export type EventWorkspaceRestore = {
+ type: "workspace.restore"
+ properties: {
+ workspaceID: string
+ sessionID: string
+ total: number
+ step: number
+ }
+}
+
+export type EventWorkspaceStatus = {
+ type: "workspace.status"
+ properties: {
+ workspaceID: string
+ status: "connected" | "connecting" | "disconnected" | "error"
+ }
+}
+
+export type EventFileEdited = {
+ type: "file.edited"
+ properties: {
+ file: string
+ }
+}
+
+export type EventFileWatcherUpdated = {
+ type: "file.watcher.updated"
+ properties: {
+ file: string
+ event: "add" | "change" | "unlink"
+ }
+}
+
export type QuestionOption = {
/**
* Display text (1-5 words, concise)
@@ -452,38 +484,6 @@ export type EventVcsBranchUpdated = {
}
}
-export type EventWorkspaceReady = {
- type: "workspace.ready"
- properties: {
- name: string
- }
-}
-
-export type EventWorkspaceFailed = {
- type: "workspace.failed"
- properties: {
- message: string
- }
-}
-
-export type EventWorkspaceRestore = {
- type: "workspace.restore"
- properties: {
- workspaceID: string
- sessionID: string
- total: number
- step: number
- }
-}
-
-export type EventWorkspaceStatus = {
- type: "workspace.status"
- properties: {
- workspaceID: string
- status: "connected" | "connecting" | "disconnected" | "error"
- }
-}
-
export type EventWorktreeReady = {
type: "worktree.ready"
properties: {
@@ -1112,11 +1112,9 @@ export type GlobalEvent = {
workspace?: string
payload:
| EventProjectUpdated
- | EventServerInstanceDisposed
| EventServerConnected
| EventGlobalDisposed
- | EventFileEdited
- | EventFileWatcherUpdated
+ | EventServerInstanceDisposed
| EventLspClientDiagnostics
| EventLspUpdated
| EventMessagePartDelta
@@ -1126,6 +1124,12 @@ export type GlobalEvent = {
| EventSessionError
| EventInstallationUpdated
| EventInstallationUpdateAvailable
+ | EventWorkspaceReady
+ | EventWorkspaceFailed
+ | EventWorkspaceRestore
+ | EventWorkspaceStatus
+ | EventFileEdited
+ | EventFileWatcherUpdated
| EventQuestionAsked
| EventQuestionReplied
| EventQuestionRejected
@@ -1141,10 +1145,6 @@ export type GlobalEvent = {
| EventMcpBrowserOpenFailed
| EventCommandExecuted
| EventVcsBranchUpdated
- | EventWorkspaceReady
- | EventWorkspaceFailed
- | EventWorkspaceRestore
- | EventWorkspaceStatus
| EventWorktreeReady
| EventWorktreeFailed
| EventPtyCreated
@@ -2055,11 +2055,9 @@ export type File = {
export type Event =
| EventProjectUpdated
- | EventServerInstanceDisposed
| EventServerConnected
| EventGlobalDisposed
- | EventFileEdited
- | EventFileWatcherUpdated
+ | EventServerInstanceDisposed
| EventLspClientDiagnostics
| EventLspUpdated
| EventMessagePartDelta
@@ -2069,6 +2067,12 @@ export type Event =
| EventSessionError
| EventInstallationUpdated
| EventInstallationUpdateAvailable
+ | EventWorkspaceReady
+ | EventWorkspaceFailed
+ | EventWorkspaceRestore
+ | EventWorkspaceStatus
+ | EventFileEdited
+ | EventFileWatcherUpdated
| EventQuestionAsked
| EventQuestionReplied
| EventQuestionRejected
@@ -2084,10 +2088,6 @@ export type Event =
| EventMcpBrowserOpenFailed
| EventCommandExecuted
| EventVcsBranchUpdated
- | EventWorkspaceReady
- | EventWorkspaceFailed
- | EventWorkspaceRestore
- | EventWorkspaceStatus
| EventWorktreeReady
| EventWorktreeFailed
| EventPtyCreated