@xiaolinstar/ai-todo-cli 0.4.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.
- package/README.md +47 -0
- package/dist/index.js +1531 -0
- package/dist/index.js.map +7 -0
- package/package.json +46 -0
- package/settings.example.json +4 -0
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @xiaolinstar/ai-todo-cli
|
|
2
|
+
|
|
3
|
+
Structured command-line interface for [ai-todo](https://github.com/xiaolinstar/ai-todo) — reminders, calendar, contacts, and Agent-friendly `--json` output.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @xiaolinstar/ai-todo-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The `ai-todo` command is available globally after install.
|
|
12
|
+
|
|
13
|
+
## Configure once
|
|
14
|
+
|
|
15
|
+
Create `~/.ai-todo/settings.json` (see `settings.example.json` in this package):
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"url": "https://wodi.games",
|
|
20
|
+
"token": "aitodo_your_personal_access_token"
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Get a Personal Access Token in the WeChat miniapp: **Mine → CLI / Agent access tokens → Create**.
|
|
25
|
+
|
|
26
|
+
Environment variables override the file (useful for CI / agents):
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
export AI_TODO_TOKEN=aitodo_xxx
|
|
30
|
+
export AI_TODO_API_URL=https://wodi.games
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
ai-todo today
|
|
37
|
+
ai-todo reminder list --json
|
|
38
|
+
ai-todo whoami
|
|
39
|
+
ai-todo version
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Run `ai-todo help` for the full command list.
|
|
43
|
+
|
|
44
|
+
## Docs
|
|
45
|
+
|
|
46
|
+
- [Agent usage guide](https://github.com/xiaolinstar/ai-todo/blob/main/docs/agent-usage.md)
|
|
47
|
+
- [CLI design](https://github.com/xiaolinstar/ai-todo/blob/main/docs/cli-design.md)
|