refactor: remove todo tool (#35989)
This commit is contained in:
parent
d4155f2906
commit
7feefb697f
250 changed files with 237 additions and 4755 deletions
|
|
@ -16,7 +16,6 @@ import { Money } from "../src/money.js"
|
|||
import { Skill } from "../src/skill.js"
|
||||
import { Shell } from "../src/shell.js"
|
||||
import { PersistedRevert } from "../src/session-revert.js"
|
||||
import { SessionTodo } from "../src/session-todo.js"
|
||||
import { optional } from "../src/schema.js"
|
||||
|
||||
describe("contract hygiene", () => {
|
||||
|
|
@ -61,15 +60,6 @@ describe("contract hygiene", () => {
|
|||
).toThrow()
|
||||
})
|
||||
|
||||
test("todo status and priority preserve arbitrary strings", () => {
|
||||
const decode = Schema.decodeUnknownSync(SessionTodo.Info)
|
||||
expect(decode({ content: "ship", status: "waiting", priority: "urgent" })).toEqual({
|
||||
content: "ship",
|
||||
status: "waiting",
|
||||
priority: "urgent",
|
||||
})
|
||||
})
|
||||
|
||||
test("current ID constructors expose create", () => {
|
||||
expect(Question.ID.create()).toStartWith("que_")
|
||||
expect(Pty.ID.create()).toStartWith("pty_")
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ import { Plugin } from "../src/plugin.js"
|
|||
import { SessionEvent } from "../src/session-event.js"
|
||||
import { SessionID } from "../src/session-id.js"
|
||||
import { SessionMessage } from "../src/session-message.js"
|
||||
import { SessionTodo } from "../src/session-todo.js"
|
||||
import { SessionV1 } from "../src/session-v1.js"
|
||||
import { WorkspaceEvent } from "../src/workspace-event.js"
|
||||
|
||||
|
|
@ -64,7 +63,6 @@ describe("public event manifest", () => {
|
|||
expect(Workspace.Event).toBe(WorkspaceEvent)
|
||||
expect(Workspace.Event.Definitions).toBe(WorkspaceEvent.Definitions)
|
||||
expect(EventManifest.Latest.get("session.step.ended")).toBe(SessionEvent.Step.Ended)
|
||||
expect(EventManifest.Latest.get("todo.updated")).toBe(SessionTodo.Event.Updated)
|
||||
expect(EventManifest.Latest.get("agent.updated")).toBe(Agent.Event.Updated)
|
||||
expect(EventManifest.Latest.get("project.updated")).toBe(Project.Event.Updated)
|
||||
expect(Agent.Event.Definitions).toEqual([Agent.Event.Updated])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue