@vibetasks/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 +233 -0
  2. package/dist/vibetasks.js +1126 -0
  3. package/package.json +62 -0
package/README.md ADDED
@@ -0,0 +1,233 @@
1
+ # VibeTasks CLI
2
+
3
+ > Lightning-fast task management from your terminal. Auto-detects projects, tracks AI vs human tasks, and integrates seamlessly with Claude Code, Cursor, and all AI coding tools.
4
+
5
+ ## ✨ Features
6
+
7
+ - 🚀 **Auto-Project Detection** - Automatically tags tasks with your current project from git
8
+ - 🤖 **AI-Aware** - Tracks whether tasks are created by AI or humans
9
+ - ⚡ **Status Flow** - Simple todo → vibing → done workflow
10
+ - 🎯 **Energy Levels** - Tag tasks by energy required (low/medium/high)
11
+ - 📊 **Rich Filtering** - Filter by project, status, creator, and more
12
+ - 🔄 **Real-time Sync** - Syncs with VibeTasks web and mobile apps
13
+ - 🔐 **Secure** - Tokens stored in system keychain
14
+
15
+ ## 📦 Installation
16
+
17
+ ```bash
18
+ npm install -g @vibetasks/cli
19
+ ```
20
+
21
+ ## 🚀 Quick Start
22
+
23
+ ```bash
24
+ # Login to VibeTasks
25
+ vibetasks login
26
+
27
+ # Initialize project (auto-detects from git)
28
+ vibetasks init
29
+
30
+ # Add a task (auto-tagged with current project!)
31
+ vibetasks add "Fix the login bug" --priority high
32
+
33
+ # List tasks
34
+ vibetasks list
35
+
36
+ # Filter by project
37
+ vibetasks list --project myproject
38
+
39
+ # Update task status
40
+ vibetasks update abc123 --status vibing
41
+
42
+ # Mark complete
43
+ vibetasks done abc123
44
+ ```
45
+
46
+ ## 🤖 AI Integration
47
+
48
+ VibeTasks CLI is designed to work seamlessly with AI coding assistants.
49
+
50
+ ### How It Works
51
+
52
+ When you (AI) create tasks via the CLI:
53
+
54
+ 1. **Auto-Project Detection**: CLI detects your current directory and extracts the project name from git
55
+ 2. **AI Detection**: CLI checks environment variables to detect if running in Claude Code
56
+ 3. **Auto-Tagging**: Tasks are automatically tagged with the current project
57
+ 4. **Status Setting**: AI-created tasks start with status "vibing" (actively working on it)
58
+
59
+ ```bash
60
+ # AI is working in ~/Projects/vibetasks
61
+ vibetasks add "Fix CLI commands stalling"
62
+
63
+ # What happens automatically:
64
+ # ✓ project_tag: "vibetasks" (from git)
65
+ # ✓ created_by: "ai" (from CLAUDE_CODE_SESSION)
66
+ # ✓ status: "vibing" (AI tasks start vibing)
67
+ ```
68
+
69
+ ### Multi-Project Workflow
70
+
71
+ ```bash
72
+ # Morning: Working on VibeTasks
73
+ cd ~/Projects/vibetasks
74
+ vibetasks add "Fix login bug"
75
+ # → Tagged: "vibetasks"
76
+
77
+ # Afternoon: Switch to PayTrack
78
+ cd ~/Projects/paytrack-app
79
+ vibetasks add "Add invoice export"
80
+ # → Tagged: "paytrack-app"
81
+
82
+ # View tasks by project
83
+ vibetasks list --project vibetasks
84
+ vibetasks list --project paytrack-app
85
+ ```
86
+
87
+ ## 📖 Commands
88
+
89
+ ### `vibetasks login`
90
+ Authenticate with VibeTasks using browser or terminal.
91
+
92
+ **Options:**
93
+ - `--browser` - Browser-based login (recommended)
94
+
95
+ ### `vibetasks init`
96
+ Initialize VibeTasks for current project. Auto-detects project name from git.
97
+
98
+ **Options:**
99
+ - `--name <name>` - Manually specify project name
100
+
101
+ ### `vibetasks add <title>`
102
+ Create a new task. Auto-tags with current project and detects if created by AI.
103
+
104
+ **Options:**
105
+ - `-n, --notes <notes>` - Task notes (markdown supported)
106
+ - `-d, --due <date>` - Due date ("today", "tomorrow", "+3d", "2026-01-15")
107
+ - `-p, --priority <level>` - Priority: low, medium, high
108
+ - `-e, --energy <level>` - Energy required: low, medium, high
109
+ - `--project <name>` - Override auto-detected project
110
+ - `-t, --tags <tags...>` - Tags (space-separated)
111
+
112
+ **Examples:**
113
+ ```bash
114
+ vibetasks add "Fix bug" --priority high --energy high
115
+ vibetasks add "Reply to emails" --energy low
116
+ vibetasks add "Personal task" --project personal
117
+ ```
118
+
119
+ ### `vibetasks list [filter]`
120
+ List tasks with powerful filtering.
121
+
122
+ **Filters:** `all`, `today`, `upcoming`, `completed`
123
+
124
+ **Options:**
125
+ - `-l, --limit <number>` - Max tasks to show (default: 50)
126
+ - `--project <name>` - Filter by project tag
127
+ - `--created-by <source>` - Filter by creator (ai or human)
128
+ - `--status <status>` - Filter by status (todo, vibing, done)
129
+
130
+ **Examples:**
131
+ ```bash
132
+ vibetasks list --project taskflow
133
+ vibetasks list --created-by ai
134
+ vibetasks list --status vibing
135
+ vibetasks list --project taskflow --created-by ai
136
+ ```
137
+
138
+ ### `vibetasks update <id>`
139
+ Update a task's properties.
140
+
141
+ **Options:**
142
+ - `-t, --title <title>` - New title
143
+ - `-n, --notes <notes>` - New notes
144
+ - `-s, --status <status>` - New status (todo, vibing, done)
145
+ - `-p, --priority <level>` - New priority
146
+ - `-e, --energy <level>` - New energy level
147
+ - `-d, --due <date>` - New due date
148
+ - `--project <name>` - New project tag
149
+ - `-c, --context <notes>` - Update context notes
150
+
151
+ **Examples:**
152
+ ```bash
153
+ vibetasks update abc123 --status vibing
154
+ vibetasks update abc123 --context "Blocked: waiting for API key"
155
+ ```
156
+
157
+ ### `vibetasks done <id>`
158
+ Mark a task as complete.
159
+
160
+ ### `vibetasks search <query>`
161
+ Search tasks by title.
162
+
163
+ ### `vibetasks delete <id>`
164
+ Delete a task.
165
+
166
+ **Options:**
167
+ - `-f, --force` - Skip confirmation
168
+
169
+ ### `vibetasks config [key] [value]`
170
+ View or set configuration.
171
+
172
+ ## 📊 Status Flow
173
+
174
+ VibeTasks uses a simple 3-state workflow:
175
+
176
+ - **📋 todo** - Ready to start when you have energy
177
+ - **⚡ vibing** - Currently working on it (limit to 1-3 for best focus)
178
+ - **✓ done** - Task completed
179
+
180
+ ## 🎯 Energy Levels
181
+
182
+ Tag tasks by energy required to match your current state:
183
+
184
+ - **🔋 low** - Reply to emails, review docs, small fixes
185
+ - **⚡ medium** - Regular coding tasks, debugging
186
+ - **🔥 high** - Architecture work, complex algorithms
187
+
188
+ **Example:**
189
+ ```bash
190
+ # Morning (high energy)
191
+ vibetasks list --energy high --status todo
192
+
193
+ # Evening (low energy)
194
+ vibetasks list --energy low --status todo
195
+ ```
196
+
197
+ ## 🎣 Git Hooks
198
+
199
+ Auto-update tasks from commit messages:
200
+
201
+ ```bash
202
+ # Install hook
203
+ cd /your/project
204
+ vibetasks hooks install
205
+
206
+ # Link commits to tasks
207
+ git commit -m "feat: Add login [TASK-abc123]"
208
+
209
+ # Auto-complete tasks
210
+ git commit -m "feat: Complete auth [TASK-abc123] [COMPLETE]"
211
+ ```
212
+
213
+ ## 🔧 Development
214
+
215
+ ```bash
216
+ git clone https://github.com/vyassathya/vibetasks.git
217
+ cd vibetasks/packages/cli
218
+ npm install
219
+ npm run build
220
+ ```
221
+
222
+ ## 📝 License
223
+
224
+ MIT © [Vyas](https://github.com/vyassathya)
225
+
226
+ ## 🔗 Links
227
+
228
+ - [GitHub Repository](https://github.com/vyassathya/vibetasks)
229
+ - [Report Issues](https://github.com/vyassathya/vibetasks/issues)
230
+
231
+ ---
232
+
233
+ **Made with ❤️ for developers who want simple, powerful task management that works with AI**