The open source coding agent.
TypeScript
chore: generate
opencode-agent[bot]2e340d976f1d
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.tsindex ab070778743..7ca6ea05c85 100644--- a/packages/sdk/js/src/v2/gen/types.gen.ts+++ b/packages/sdk/js/src/v2/gen/types.gen.ts@@ -316,6 +316,29 @@ export type EventCommandExecuted = {}}+export type EventWorkspaceReady = {+ type: "workspace.ready"+ properties: {+ name: string+ }+}++export type EventWorkspaceFailed = {+ type: "workspace.failed"+ properties: {+ message: string+ }+}++export type EventWorkspaceStatus = {+ type: "workspace.status"+ properties: {+ workspaceID: string+ status: "connected" | "connecting" | "disconnected" | "error"+ error?: string+ }+}+export type QuestionOption = {/*** Display text (1-5 words, concise)@@ -387,29 +410,6 @@ export type EventQuestionRejected = {}}-export type Todo = {- /**- * Brief description of the task- */- content: string- /**- * Current status of the task: pending, in_progress, completed, cancelled- */- status: string- /**- * Priority level of the task: high, medium, low- */- priority: string-}--export type EventTodoUpdated = {- type: "todo.updated"- properties: {- sessionID: string- todos: Array<Todo>- }-}-export type SessionStatus =| {type: "idle"@@ -446,6 +446,29 @@ export type EventSessionCompacted = {}}+export type Todo = {+ /**+ * Brief description of the task+ */+ content: string+ /**+ * Current status of the task: pending, in_progress, completed, cancelled+ */+ status: string+ /**+ * Priority level of the task: high, medium, low+ */+ priority: string+}++export type EventTodoUpdated = {+ type: "todo.updated"+ properties: {+ sessionID: string+ todos: Array<Todo>+ }+}+export type EventWorktreeReady = {type: "worktree.ready"properties: {@@ -500,29 +523,6 @@ export type EventPtyDeleted = {}}-export type EventWorkspaceReady = {- type: "workspace.ready"- properties: {- name: string- }-}--export type EventWorkspaceFailed = {- type: "workspace.failed"- properties: {- message: string- }-}--export type EventWorkspaceStatus = {- type: "workspace.status"- properties: {- workspaceID: string- status: "connected" | "connecting" | "disconnected" | "error"- error?: string- }-}-export type OutputFormatText = {type: "text"}@@ -995,22 +995,22 @@ export type Event =| EventMcpToolsChanged| EventMcpBrowserOpenFailed| EventCommandExecuted+ | EventWorkspaceReady+ | EventWorkspaceFailed+ | EventWorkspaceStatus| EventQuestionAsked| EventQuestionReplied| EventQuestionRejected- | EventTodoUpdated| EventSessionStatus| EventSessionIdle| EventSessionCompacted+ | EventTodoUpdated| EventWorktreeReady| EventWorktreeFailed| EventPtyCreated| EventPtyUpdated| EventPtyExited| EventPtyDeleted- | EventWorkspaceReady- | EventWorkspaceFailed- | EventWorkspaceStatus| EventMessageUpdated| EventMessageRemoved| EventMessagePartUpdateddiff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.jsonindex 71b17966e3a..7bc6392b948 100644--- a/packages/sdk/openapi.json+++ b/packages/sdk/openapi.json@@ -7986,6 +7986,71 @@},"required": ["type", "properties"]},+ "Event.workspace.ready": {+ "type": "object",+ "properties": {+ "type": {+ "type": "string",+ "const": "workspace.ready"+ },+ "properties": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ }+ },+ "required": ["name"]+ }+ },+ "required": ["type", "properties"]+ },+ "Event.workspace.failed": {+ "type": "object",+ "properties": {+ "type": {+ "type": "string",+ "const": "workspace.failed"+ },+ "properties": {+ "type": "object",+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": ["message"]+ }+ },+ "required": ["type", "properties"]+ },+ "Event.workspace.status": {+ "type": "object",+ "properties": {+ "type": {+ "type": "string",+ "const": "workspace.status"+ },+ "properties": {+ "type": "object",+ "properties": {+ "workspaceID": {+ "type": "string",+ "pattern": "^wrk.*"+ },+ "status": {+ "type": "string",+ "enum": ["connected", "connecting", "disconnected", "error"]+ },+ "error": {+ "type": "string"+ }+ },+ "required": ["workspaceID", "status"]+ }+ },+ "required": ["type", "properties"]+ },"QuestionOption": {"type": "object","properties": {@@ -8136,50 +8201,6 @@},"required": ["type", "properties"]},- "Todo": {- "type": "object",- "properties": {- "content": {- "description": "Brief description of the task",- "type": "string"- },- "status": {- "description": "Current status of the task: pending, in_progress, completed, cancelled",- "type": "string"- },- "priority": {- "description": "Priority level of the task: high, medium, low",- "type": "string"- }- },- "required": ["content", "status", "priority"]- },- "Event.todo.updated": {- "type": "object",- "properties": {- "type": {- "type": "string",- "const": "todo.updated"- },- "properties": {- "type": "object",- "properties": {- "sessionID": {- "type": "string",- "pattern": "^ses.*"- },- "todos": {- "type": "array",- "items": {- "$ref": "#/components/schemas/Todo"- }- }- },- "required": ["sessionID", "todos"]- }- },- "required": ["type", "properties"]- },"SessionStatus": {"anyOf": [{@@ -8286,6 +8307,50 @@},"required": ["type", "properties"]},+ "Todo": {+ "type": "object",+ "properties": {+ "content": {+ "description": "Brief description of the task",+ "type": "string"+ },+ "status": {+ "description": "Current status of the task: pending, in_progress, completed, cancelled",+ "type": "string"+ },+ "priority": {+ "description": "Priority level of the task: high, medium, low",+ "type": "string"+ }+ },+ "required": ["content", "status", "priority"]+ },+ "Event.todo.updated": {+ "type": "object",+ "properties": {+ "type": {+ "type": "string",+ "const": "todo.updated"+ },+ "properties": {+ "type": "object",+ "properties": {+ "sessionID": {+ "type": "string",+ "pattern": "^ses.*"+ },+ "todos": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/Todo"+ }+ }+ },+ "required": ["sessionID", "todos"]+ }+ },+ "required": ["type", "properties"]+ },"Event.worktree.ready": {"type": "object","properties": {@@ -8440,71 +8505,6 @@},"required": ["type", "properties"]},- "Event.workspace.ready": {- "type": "object",- "properties": {- "type": {- "type": "string",- "const": "workspace.ready"- },- "properties": {- "type": "object",- "properties": {- "name": {- "type": "string"- }- },- "required": ["name"]- }- },- "required": ["type", "properties"]- },- "Event.workspace.failed": {- "type": "object",- "properties": {- "type": {- "type": "string",- "const": "workspace.failed"- },- "properties": {- "type": "object",- "properties": {- "message": {- "type": "string"- }- },- "required": ["message"]- }- },- "required": ["type", "properties"]- },- "Event.workspace.status": {- "type": "object",- "properties": {- "type": {- "type": "string",- "const": "workspace.status"- },- "properties": {- "type": "object",- "properties": {- "workspaceID": {- "type": "string",- "pattern": "^wrk.*"- },- "status": {- "type": "string",- "enum": ["connected", "connecting", "disconnected", "error"]- },- "error": {- "type": "string"- }- },- "required": ["workspaceID", "status"]- }- },- "required": ["type", "properties"]- },"OutputFormatText": {"type": "object","properties": {@@ -9937,6 +9937,15 @@{"$ref": "#/components/schemas/Event.command.executed"},+ {+ "$ref": "#/components/schemas/Event.workspace.ready"+ },+ {+ "$ref": "#/components/schemas/Event.workspace.failed"+ },+ {+ "$ref": "#/components/schemas/Event.workspace.status"+ },{"$ref": "#/components/schemas/Event.question.asked"},@@ -9946,9 +9955,6 @@{"$ref": "#/components/schemas/Event.question.rejected"},- {- "$ref": "#/components/schemas/Event.todo.updated"- },{"$ref": "#/components/schemas/Event.session.status"},@@ -9958,6 +9964,9 @@{"$ref": "#/components/schemas/Event.session.compacted"},+ {+ "$ref": "#/components/schemas/Event.todo.updated"+ },{"$ref": "#/components/schemas/Event.worktree.ready"},@@ -9976,15 +9985,6 @@{"$ref": "#/components/schemas/Event.pty.deleted"},- {- "$ref": "#/components/schemas/Event.workspace.ready"- },- {- "$ref": "#/components/schemas/Event.workspace.failed"- },- {- "$ref": "#/components/schemas/Event.workspace.status"- },{"$ref": "#/components/schemas/Event.message.updated"},