Skip to content

Commit 17b2900

Browse files
chore: generate
1 parent 003010b commit 17b2900

3 files changed

Lines changed: 73 additions & 76 deletions

File tree

packages/opencode/test/question/question.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ import { tmpdir } from "../fixture/fixture"
66
import { SessionID } from "../../src/session/schema"
77
import { AppRuntime } from "../../src/effect/app-runtime"
88

9-
const ask = (input: {
10-
sessionID: SessionID
11-
questions: Question.Info[]
12-
tool?: { messageID: any; callID: string }
13-
}) => AppRuntime.runPromise(Question.Service.use((svc) => svc.ask(input)))
9+
const ask = (input: { sessionID: SessionID; questions: Question.Info[]; tool?: { messageID: any; callID: string } }) =>
10+
AppRuntime.runPromise(Question.Service.use((svc) => svc.ask(input)))
1411

1512
const list = () => AppRuntime.runPromise(Question.Service.use((svc) => svc.list()))
1613

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,29 @@ export type EventQuestionRejected = {
387387
}
388388
}
389389

390+
export type Todo = {
391+
/**
392+
* Brief description of the task
393+
*/
394+
content: string
395+
/**
396+
* Current status of the task: pending, in_progress, completed, cancelled
397+
*/
398+
status: string
399+
/**
400+
* Priority level of the task: high, medium, low
401+
*/
402+
priority: string
403+
}
404+
405+
export type EventTodoUpdated = {
406+
type: "todo.updated"
407+
properties: {
408+
sessionID: string
409+
todos: Array<Todo>
410+
}
411+
}
412+
390413
export type SessionStatus =
391414
| {
392415
type: "idle"
@@ -423,29 +446,6 @@ export type EventSessionCompacted = {
423446
}
424447
}
425448

426-
export type Todo = {
427-
/**
428-
* Brief description of the task
429-
*/
430-
content: string
431-
/**
432-
* Current status of the task: pending, in_progress, completed, cancelled
433-
*/
434-
status: string
435-
/**
436-
* Priority level of the task: high, medium, low
437-
*/
438-
priority: string
439-
}
440-
441-
export type EventTodoUpdated = {
442-
type: "todo.updated"
443-
properties: {
444-
sessionID: string
445-
todos: Array<Todo>
446-
}
447-
}
448-
449449
export type EventWorktreeReady = {
450450
type: "worktree.ready"
451451
properties: {
@@ -998,10 +998,10 @@ export type Event =
998998
| EventQuestionAsked
999999
| EventQuestionReplied
10001000
| EventQuestionRejected
1001+
| EventTodoUpdated
10011002
| EventSessionStatus
10021003
| EventSessionIdle
10031004
| EventSessionCompacted
1004-
| EventTodoUpdated
10051005
| EventWorktreeReady
10061006
| EventWorktreeFailed
10071007
| EventPtyCreated

packages/sdk/openapi.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8139,6 +8139,50 @@
81398139
},
81408140
"required": ["type", "properties"]
81418141
},
8142+
"Todo": {
8143+
"type": "object",
8144+
"properties": {
8145+
"content": {
8146+
"description": "Brief description of the task",
8147+
"type": "string"
8148+
},
8149+
"status": {
8150+
"description": "Current status of the task: pending, in_progress, completed, cancelled",
8151+
"type": "string"
8152+
},
8153+
"priority": {
8154+
"description": "Priority level of the task: high, medium, low",
8155+
"type": "string"
8156+
}
8157+
},
8158+
"required": ["content", "status", "priority"]
8159+
},
8160+
"Event.todo.updated": {
8161+
"type": "object",
8162+
"properties": {
8163+
"type": {
8164+
"type": "string",
8165+
"const": "todo.updated"
8166+
},
8167+
"properties": {
8168+
"type": "object",
8169+
"properties": {
8170+
"sessionID": {
8171+
"type": "string",
8172+
"pattern": "^ses.*"
8173+
},
8174+
"todos": {
8175+
"type": "array",
8176+
"items": {
8177+
"$ref": "#/components/schemas/Todo"
8178+
}
8179+
}
8180+
},
8181+
"required": ["sessionID", "todos"]
8182+
}
8183+
},
8184+
"required": ["type", "properties"]
8185+
},
81428186
"SessionStatus": {
81438187
"anyOf": [
81448188
{
@@ -8245,50 +8289,6 @@
82458289
},
82468290
"required": ["type", "properties"]
82478291
},
8248-
"Todo": {
8249-
"type": "object",
8250-
"properties": {
8251-
"content": {
8252-
"description": "Brief description of the task",
8253-
"type": "string"
8254-
},
8255-
"status": {
8256-
"description": "Current status of the task: pending, in_progress, completed, cancelled",
8257-
"type": "string"
8258-
},
8259-
"priority": {
8260-
"description": "Priority level of the task: high, medium, low",
8261-
"type": "string"
8262-
}
8263-
},
8264-
"required": ["content", "status", "priority"]
8265-
},
8266-
"Event.todo.updated": {
8267-
"type": "object",
8268-
"properties": {
8269-
"type": {
8270-
"type": "string",
8271-
"const": "todo.updated"
8272-
},
8273-
"properties": {
8274-
"type": "object",
8275-
"properties": {
8276-
"sessionID": {
8277-
"type": "string",
8278-
"pattern": "^ses.*"
8279-
},
8280-
"todos": {
8281-
"type": "array",
8282-
"items": {
8283-
"$ref": "#/components/schemas/Todo"
8284-
}
8285-
}
8286-
},
8287-
"required": ["sessionID", "todos"]
8288-
}
8289-
},
8290-
"required": ["type", "properties"]
8291-
},
82928292
"Event.worktree.ready": {
82938293
"type": "object",
82948294
"properties": {
@@ -9949,6 +9949,9 @@
99499949
{
99509950
"$ref": "#/components/schemas/Event.question.rejected"
99519951
},
9952+
{
9953+
"$ref": "#/components/schemas/Event.todo.updated"
9954+
},
99529955
{
99539956
"$ref": "#/components/schemas/Event.session.status"
99549957
},
@@ -9958,9 +9961,6 @@
99589961
{
99599962
"$ref": "#/components/schemas/Event.session.compacted"
99609963
},
9961-
{
9962-
"$ref": "#/components/schemas/Event.todo.updated"
9963-
},
99649964
{
99659965
"$ref": "#/components/schemas/Event.worktree.ready"
99669966
},

0 commit comments

Comments
 (0)