The open source coding agent.
TypeScript
chore: generate
opencode-agent[bot]17b290088485
diff --git a/packages/opencode/test/question/question.test.ts b/packages/opencode/test/question/question.test.tsindex 8ee361e57c5..7c101ce2856 100644--- a/packages/opencode/test/question/question.test.ts+++ b/packages/opencode/test/question/question.test.ts@@ -6,11 +6,8 @@ import { tmpdir } from "../fixture/fixture"import { SessionID } from "../../src/session/schema"import { AppRuntime } from "../../src/effect/app-runtime"-const ask = (input: {- sessionID: SessionID- questions: Question.Info[]- tool?: { messageID: any; callID: string }-}) => AppRuntime.runPromise(Question.Service.use((svc) => svc.ask(input)))+const ask = (input: { sessionID: SessionID; questions: Question.Info[]; tool?: { messageID: any; callID: string } }) =>+ AppRuntime.runPromise(Question.Service.use((svc) => svc.ask(input)))const list = () => AppRuntime.runPromise(Question.Service.use((svc) => svc.list()))diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.tsindex f2b32a15937..4aab9f4395f 100644--- a/packages/sdk/js/src/v2/gen/types.gen.ts+++ b/packages/sdk/js/src/v2/gen/types.gen.ts@@ -387,6 +387,29 @@ 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"@@ -423,29 +446,6 @@ 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: {@@ -998,10 +998,10 @@ export type Event =| EventQuestionAsked| EventQuestionReplied| EventQuestionRejected+ | EventTodoUpdated| EventSessionStatus| EventSessionIdle| EventSessionCompacted- | EventTodoUpdated| EventWorktreeReady| EventWorktreeFailed| EventPtyCreateddiff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.jsonindex 5e5058fdebc..e8d6e6a087c 100644--- a/packages/sdk/openapi.json+++ b/packages/sdk/openapi.json@@ -8139,6 +8139,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"]+ },"SessionStatus": {"anyOf": [{@@ -8245,50 +8289,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"]- },"Event.worktree.ready": {"type": "object","properties": {@@ -9949,6 +9949,9 @@{"$ref": "#/components/schemas/Event.question.rejected"},+ {+ "$ref": "#/components/schemas/Event.todo.updated"+ },{"$ref": "#/components/schemas/Event.session.status"},@@ -9958,9 +9961,6 @@{"$ref": "#/components/schemas/Event.session.compacted"},- {- "$ref": "#/components/schemas/Event.todo.updated"- },{"$ref": "#/components/schemas/Event.worktree.ready"},