chore: generate
This commit is contained in:
@@ -6,11 +6,8 @@ import { tmpdir } from "../fixture/fixture"
|
|||||||
import { SessionID } from "../../src/session/schema"
|
import { SessionID } from "../../src/session/schema"
|
||||||
import { AppRuntime } from "../../src/effect/app-runtime"
|
import { AppRuntime } from "../../src/effect/app-runtime"
|
||||||
|
|
||||||
const ask = (input: {
|
const ask = (input: { sessionID: SessionID; questions: Question.Info[]; tool?: { messageID: any; callID: string } }) =>
|
||||||
sessionID: SessionID
|
AppRuntime.runPromise(Question.Service.use((svc) => svc.ask(input)))
|
||||||
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()))
|
const list = () => AppRuntime.runPromise(Question.Service.use((svc) => svc.list()))
|
||||||
|
|
||||||
|
|||||||
@@ -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 =
|
export type SessionStatus =
|
||||||
| {
|
| {
|
||||||
type: "idle"
|
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 = {
|
export type EventWorktreeReady = {
|
||||||
type: "worktree.ready"
|
type: "worktree.ready"
|
||||||
properties: {
|
properties: {
|
||||||
@@ -998,10 +998,10 @@ export type Event =
|
|||||||
| EventQuestionAsked
|
| EventQuestionAsked
|
||||||
| EventQuestionReplied
|
| EventQuestionReplied
|
||||||
| EventQuestionRejected
|
| EventQuestionRejected
|
||||||
|
| EventTodoUpdated
|
||||||
| EventSessionStatus
|
| EventSessionStatus
|
||||||
| EventSessionIdle
|
| EventSessionIdle
|
||||||
| EventSessionCompacted
|
| EventSessionCompacted
|
||||||
| EventTodoUpdated
|
|
||||||
| EventWorktreeReady
|
| EventWorktreeReady
|
||||||
| EventWorktreeFailed
|
| EventWorktreeFailed
|
||||||
| EventPtyCreated
|
| EventPtyCreated
|
||||||
|
|||||||
+47
-47
@@ -8139,6 +8139,50 @@
|
|||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"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": {
|
"SessionStatus": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
@@ -8245,50 +8289,6 @@
|
|||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"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": {
|
"Event.worktree.ready": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -9949,6 +9949,9 @@
|
|||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.question.rejected"
|
"$ref": "#/components/schemas/Event.question.rejected"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.todo.updated"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.session.status"
|
"$ref": "#/components/schemas/Event.session.status"
|
||||||
},
|
},
|
||||||
@@ -9958,9 +9961,6 @@
|
|||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.session.compacted"
|
"$ref": "#/components/schemas/Event.session.compacted"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.todo.updated"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.worktree.ready"
|
"$ref": "#/components/schemas/Event.worktree.ready"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user