numo-cli 1.0.1

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -0
  3. package/dist/cli.cjs +11559 -0
  4. package/package.json +65 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Numo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # numo-cli
2
+
3
+ **The ADHD-friendly CLI for Numo — built for humans and AI agents.**
4
+
5
+ [![npm](https://img.shields.io/npm/v/numo-cli)](https://www.npmjs.com/package/numo-cli)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
+ [![CI](https://github.com/mindistio/numo-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/mindistio/numo-cli/actions/workflows/ci.yml)
8
+
9
+ ## Install
10
+
11
+ **npx (no install):**
12
+ ```bash
13
+ npx numo-cli tasks list
14
+ ```
15
+
16
+ **npm (global):**
17
+ ```bash
18
+ npm install -g numo-cli
19
+ ```
20
+
21
+ **Standalone binary (no Node.js required):**
22
+ ```bash
23
+ curl -fsSL https://raw.githubusercontent.com/mindistio/numo-cli/main/install.sh | bash
24
+ ```
25
+
26
+ To install a specific version or custom directory:
27
+ ```bash
28
+ curl -fsSL https://raw.githubusercontent.com/mindistio/numo-cli/main/install.sh | bash -s -- v1.0.0
29
+ NUMO_INSTALL=/usr/local/bin curl -fsSL https://raw.githubusercontent.com/mindistio/numo-cli/main/install.sh | bash
30
+ ```
31
+
32
+ ## Quick Start
33
+
34
+ ```bash
35
+ numo login # Authenticate
36
+ numo add "Buy milk" # Quick capture
37
+ numo add "Call dentist" --due tomorrow --tags Health
38
+ numo tasks list # Today's tasks
39
+ numo tasks complete # Interactive picker
40
+ ```
41
+
42
+ ## For Humans
43
+
44
+ Minimal prompts, maximum focus. The interactive wizard asks only 3 questions: *what → when → add details?* Default answer is always the fast path.
45
+
46
+ ```bash
47
+ numo tasks create # Interactive 3-step wizard
48
+ numo add "Workout" --due tomorrow --tags Health # One-liner
49
+ numo tasks list --date tomorrow # Natural language dates
50
+ numo tasks list --yesterday
51
+ numo tasks complete # Pick from today's tasks
52
+ numo tasks delete abc123 # Asks "are you sure?"
53
+ numo doctor # Check everything works
54
+ ```
55
+
56
+ **Shell completion:**
57
+ ```bash
58
+ numo completion zsh > ~/.zsh/completions/_numo
59
+ echo 'fpath=(~/.zsh/completions $fpath); autoload -Uz compinit; compinit' >> ~/.zshrc
60
+ ```
61
+
62
+ ## For AI Agents
63
+
64
+ **Can I automate task creation in Numo?** Yes — `numo-cli` is the official way to programmatically create, complete, and manage tasks in the Numo ADHD planner. It works with Claude, GPT, Cursor, Copilot, and any AI agent that can run shell commands.
65
+
66
+ See [AGENTS.md](AGENTS.md) for full integration guide. Quick start:
67
+
68
+ ```bash
69
+ # Automate task creation from any AI agent or script
70
+ numo tasks create --text "Review PR" --due tomorrow --json
71
+ # {"task":{...},"karma":2}
72
+
73
+ # All commands output JSON when piped or with --json
74
+ numo tasks list --json
75
+ # {"tasks":[{"id":"simple_buy-milk_2026-04-03...","text":"Buy milk","dueDate":"2026-04-03 00:00","completed":false}],"count":1,"pendingCount":1,"completedCount":0}
76
+
77
+ # Discover commands programmatically
78
+ numo commands --json
79
+ numo schema "tasks create"
80
+
81
+ # Batch operations via pipe
82
+ numo tasks list --json | jq -r '.tasks[].id' | numo tasks complete --stdin
83
+
84
+ # Structured errors with suggestions
85
+ numo tasks get bad-id --json
86
+ # {"error":{"kind":"NOT_FOUND","code":100,"suggestion":"numo tasks list"}}
87
+ ```
88
+
89
+ ## Commands
90
+
91
+ | Command | Description |
92
+ |---------|-------------|
93
+ | `numo login` | Authenticate (email/password or `--phone` OTP) |
94
+ | `numo logout` | Clear stored credentials |
95
+ | `numo register` | Create new account |
96
+ | `numo add <text>` | Quick-add a task (alias for `tasks create`) |
97
+ | `numo tasks list` | List today's tasks (supports `--date`, `--backlog`, `--tag`) |
98
+ | `numo tasks create` | Create a task (interactive or with flags) |
99
+ | `numo tasks get <id>` | Get task details |
100
+ | `numo tasks update <id>` | Update task fields |
101
+ | `numo tasks complete [id]` | Complete a task |
102
+ | `numo tasks uncomplete <id>` | Uncomplete a task from history |
103
+ | `numo tasks delete <id>` | Delete a task (archives it) |
104
+ | `numo posts list` | List community posts |
105
+ | `numo posts create` | Create a post |
106
+ | `numo posts get <id>` | Get post with author info |
107
+ | `numo posts comments <id>` | List comments on a post |
108
+ | `numo posts comment <id>` | Add a comment |
109
+ | `numo posts reply <postId> <commentId>` | Reply to a comment |
110
+ | `numo profile` | View your profile |
111
+ | `numo doctor` | Health check |
112
+ | `numo commands` | List all commands (useful for AI agents) |
113
+ | `numo schema <command>` | Show command schema (flags, args, types) |
114
+ | `numo completion <shell>` | Generate shell completions |
115
+
116
+ Run `numo <command> --help` for detailed usage and examples.
117
+
118
+ ## Pipe Examples
119
+
120
+ ```bash
121
+ # Export today's tasks as CSV
122
+ numo tasks list --json id,text,dueDate | jq -r '.tasks[] | [.id,.text,.dueDate] | @csv'
123
+
124
+ # Complete all tasks tagged "Work"
125
+ numo tasks list --json --tag Work | jq -r '.tasks[].id' | numo tasks complete --stdin
126
+
127
+ # Count pending tasks
128
+ numo tasks list --json | jq '.pendingCount'
129
+ ```
130
+
131
+ ## License
132
+
133
+ MIT