⚠️ 已迁移 / Moved:本仓库已并入 strzhao/ai-todo monorepo 的apps/cli。后续开发、issue、发布均在主仓进行;npm 包ai-todo-cli照常发布(发布源已切换到主仓cli-v*tag + OIDC trusted publishing)。本仓库已归档为只读。
CLI tool for AI agents to interact with ai-todo.
All commands are dynamically discovered from the server. All output is JSON.
npm install -g ai-todo-cliai-todo loginFor headless environments:
ai-todo login --token <jwt>ai-todo tasks:list
ai-todo tasks:list --filter today
ai-todo tasks:create --title "Review PR" --priority 1
ai-todo tasks:complete --id <task-id>
ai-todo tasks:delete --id <task-id>
ai-todo tasks:add-log --id <task-id> --content "Done with phase 1"
ai-todo spaces:listRun ai-todo --help to see all available commands (fetched from server).
This package is published to npm via GitHub Actions when a tag like v0.1.3 is pushed.
npm version patch
git push origin main --follow-tagsThe workflow will verify that the Git tag matches package.json before publishing.
This CLI is designed for AI agent integration. Key features:
- All output is structured JSON
- Exit codes: 0 = success, 1 = error, 2 = auth required
- Commands are dynamically loaded from
/api/manifest - No interactive prompts — all input via flags
MIT