@todoforai/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +79 -0
  2. package/dist/todoai.js +45163 -0
  3. package/package.json +34 -0
package/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # todoai CLI
2
+
3
+ CLI for [TODOforAI](https://todofor.ai) — create, watch, and inspect AI-powered todos.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ bun install -g @todoforai/cli
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ ```bash
14
+ todoai --set-default-api-url http://localhost:4000 # or https://api.todofor.ai
15
+ todoai --set-default-api-key <your-api-key>
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ### Create a todo from a prompt
21
+
22
+ ```bash
23
+ todoai "Fix the login bug"
24
+ todoai -n "Quick task" # non-interactive (run and exit)
25
+ echo "content" | todoai # pipe from stdin
26
+ todoai --path /my/project "Fix bug" # explicit workspace
27
+ ```
28
+
29
+ ### Start from a registry template
30
+
31
+ ```bash
32
+ todoai --template alternativeto-listing # interactive input prompts
33
+ todoai --template f5bot-monitoring-setup --input "monitoring_details=My Brand" # with inputs
34
+ todoai --template f5bot-monitoring-setup --no-watch --json # create only
35
+ ```
36
+
37
+ When inputs are missing, the CLI prompts interactively (unless `-n`).
38
+
39
+ ### Inspect a todo (read-only)
40
+
41
+ ```bash
42
+ todoai --inspect <todo-id>
43
+ ```
44
+
45
+ Prints the full chat log: messages, tool calls (type, status, path/cmd), results, and errors. No logo, no interactive mode.
46
+
47
+ ### Resume / continue
48
+
49
+ ```bash
50
+ todoai -c # continue most recent todo
51
+ todoai --resume <todo-id> # resume specific todo
52
+ ```
53
+
54
+ ## All Options
55
+
56
+ ```
57
+ --path <dir> Workspace path (default: cwd)
58
+ --project <id> Project ID
59
+ --agent, -a <name> Agent name (partial match)
60
+ --api-url <url> API URL
61
+ --api-key <key> API key
62
+ --template, -t <id> Start from a registry template
63
+ --input <key=value> Template input (repeatable)
64
+ --inspect, -i <todo-id> Print full chat log (read-only)
65
+ --resume, -r [todo-id] Resume existing todo
66
+ --continue, -c Continue most recent todo
67
+ --non-interactive, -n Run to completion and exit
68
+ --dangerously-skip-permissions Auto-approve all blocks (CI/benchmarks)
69
+ --no-watch Create todo and exit
70
+ --json Output as JSON
71
+ --safe Validate API key upfront
72
+ --debug, -d Debug output
73
+ --show-config Show config
74
+ --set-defaults Interactive defaults setup
75
+ --set-default-api-url Set default API URL
76
+ --set-default-api-key Set default API key
77
+ --reset-config Reset config file
78
+ --help, -h Show this help
79
+ ```