refactor(todos): remove internal file-based todo system (#635)
Some checks failed
CI / pr-title (push) Has been cancelled
CI / test (push) Has been cancelled
Release PR / release-pr (push) Has been cancelled
Release PR / publish-cli (push) Has been cancelled

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Trevin Chow
2026-04-21 18:16:13 -07:00
committed by GitHub
parent 19bbb60e90
commit accbd2adcf
27 changed files with 760 additions and 606 deletions

View File

@@ -82,7 +82,42 @@ describe("convertClaudeToPi", () => {
expect(parsedPrompt.body).toContain("ask_user_question")
expect(parsedPrompt.body).toContain("/workflows-work")
expect(parsedPrompt.body).toContain("/todo-resolve")
expect(parsedPrompt.body).toContain("file-based todos (todos/ + /skill:ce-todo-create)")
expect(parsedPrompt.body).toContain("the platform's task-tracking primitive")
})
test("transforms current Claude Code Task* task-tracking primitives to platform-generic text", () => {
const plugin: ClaudePlugin = {
root: "/tmp/plugin",
manifest: { name: "fixture", version: "1.0.0" },
agents: [],
commands: [
{
name: "workflows:work",
description: "Work with task tracking",
body: [
"Plan tasks with TaskCreate and update their state with TaskUpdate.",
"Inspect the list with TaskList. Fetch details with TaskGet.",
"Stop long-running tasks with TaskStop and read output with TaskOutput.",
].join("\n"),
sourcePath: "/tmp/plugin/commands/work.md",
},
],
skills: [],
hooks: undefined,
mcpServers: undefined,
}
const bundle = convertClaudeToPi(plugin, {
agentMode: "subagent",
inferTemperature: false,
permissions: "none",
})
const parsedPrompt = parseFrontmatter(bundle.prompts[0].content)
for (const token of ["TaskCreate", "TaskUpdate", "TaskList", "TaskGet", "TaskStop", "TaskOutput"]) {
expect(parsedPrompt.body).not.toContain(token)
}
expect(parsedPrompt.body).toContain("the platform's task-tracking primitive")
})
test("transforms namespaced Task agent calls using final segment", () => {