refactor: remove todo tool (#35989)
This commit is contained in:
parent
d4155f2906
commit
7feefb697f
250 changed files with 237 additions and 4755 deletions
|
|
@ -31,7 +31,6 @@ import { Skill } from "./skill.js"
|
|||
import { SessionCompactionEvent } from "./session-compaction-event.js"
|
||||
import { SessionEvent } from "./session-event.js"
|
||||
import { SessionStatusEvent } from "./session-status-event.js"
|
||||
import { SessionTodo } from "./session-todo.js"
|
||||
import { SessionV1 } from "./session-v1.js"
|
||||
import { TuiEvent } from "./tui-event.js"
|
||||
import { VcsEvent } from "./vcs-event.js"
|
||||
|
|
@ -73,7 +72,6 @@ const featureDefinitions = Event.inventory(
|
|||
export const ServerDefinitions = Event.inventory(
|
||||
...foundationDefinitions,
|
||||
...featureDefinitions,
|
||||
...SessionTodo.Event.Definitions,
|
||||
// Current events the TUI consumes from the public stream.
|
||||
...SessionStatusEvent.Definitions,
|
||||
...TuiEvent.Definitions,
|
||||
|
|
@ -97,7 +95,6 @@ export const Definitions = Event.inventory(
|
|||
...sessionV1LiveDefinitions,
|
||||
...InstallationEvent.Definitions,
|
||||
...featureDefinitions,
|
||||
...SessionTodo.Event.Definitions,
|
||||
...LspEvent.Definitions,
|
||||
...PermissionV1.Event.Definitions,
|
||||
...TuiEvent.Definitions,
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
export * as SessionTodo from "./session-todo.js"
|
||||
|
||||
import { Schema } from "effect"
|
||||
import { ephemeral, inventory } from "./event.js"
|
||||
import { SessionID } from "./session-id.js"
|
||||
|
||||
export const Info = Schema.Struct({
|
||||
content: Schema.String.annotate({ description: "Brief description of the task" }),
|
||||
status: Schema.String.annotate({
|
||||
description: "Current status of the task: pending, in_progress, completed, cancelled",
|
||||
}),
|
||||
priority: Schema.String.annotate({
|
||||
description: "Priority level of the task: high, medium, low",
|
||||
}),
|
||||
}).annotate({ identifier: "Todo" })
|
||||
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
||||
|
||||
const Updated = ephemeral({
|
||||
type: "todo.updated",
|
||||
schema: {
|
||||
sessionID: SessionID,
|
||||
todos: Schema.Array(Info),
|
||||
},
|
||||
})
|
||||
export const Event = { Updated, Definitions: inventory(Updated) }
|
||||
Loading…
Add table
Add a link
Reference in a new issue