hzl-cli 1.18.5 → 1.18.7

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 +16 -15
  3. package/dist/cli.js +0 -0
  4. package/package.json +10 -10
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Trevin Chow
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 CHANGED
@@ -383,25 +383,26 @@ Built-in task tracking (if available) is fine for single-session work you'll com
383
383
  - User hasn't mentioned persistence or multi-agent needs
384
384
 
385
385
  **Structure:**
386
- - **Project** = stable container (typically one per repo or long-running initiative). Check `hzl project list` before creating.
386
+ - **Project** = stable container (one per repo). Check `hzl project list` before creating.
387
387
  - **Task** = top-level work item (often a feature). Use `--depends-on` to sequence separate tasks.
388
388
  - **Subtask** = breakdown of a task into parts (`--parent <id>`). Max 1 level of nesting.
389
389
 
390
+ **⚠️ Anti-pattern: project sprawl**
391
+ ```bash
392
+ hzl project create "query-perf" # ❌ Feature ≠ project
393
+ ```
394
+ Features are parent tasks, not projects:
395
+ ```bash
396
+ hzl task add "Query perf fixes" -P myrepo # Parent task
397
+ hzl task add "Fix N+1" --parent <parent-id> # Subtask
398
+ ```
399
+
390
400
  **Workflow:**
391
- 1. `hzl project list` to find existing, or `hzl project create <name>`
392
- 2. Add tasks. Use `--depends-on` for sequencing, `--parent` for breakdown, `--links` for context docs.
393
- 3. Claim before work, checkpoint progress, complete when done.
394
- 4. Use `--json` for scripted output.
395
-
396
- **Key commands:**
397
- - `hzl task add "<title>" -P <project> [--depends-on <id>] [--parent <id>] [--links <file>]`
398
- - `hzl task claim <id> [--author <name>] [--agent-id <id>] [--lease 30]`
399
- - `hzl task checkpoint <id> "<message>" [--progress <0-100>]`
400
- - `hzl task progress <id> <value>` (set progress without checkpoint)
401
- - `hzl task block <id> [--reason "<why>"]` (mark as blocked)
402
- - `hzl task unblock <id>` (return to in_progress)
403
- - `hzl task complete <id>`
404
- - `hzl task next --project <project>` (returns next available; never returns parent tasks)
401
+ 1. `hzl project list` **Always check first. Reuse existing repo project.**
402
+ 2. Only create a project for a NEW repo (not a feature).
403
+ 3. For multi-step work: create parent task, then subtasks with `--parent`.
404
+ 4. Claim before work, checkpoint progress, complete when done.
405
+ 5. Use `--json` for scripted output.
405
406
 
406
407
  **⚠️ DESTRUCTIVE - Never run without explicit user request:**
407
408
  - `hzl task prune` — **PERMANENTLY DELETES** old done/archived tasks. No undo.
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzl-cli",
3
- "version": "1.18.5",
3
+ "version": "1.18.7",
4
4
  "description": "CLI for HZL - External task ledger for coding agents and OpenClaw.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -56,17 +56,12 @@
56
56
  "engines": {
57
57
  "node": ">=22.14.0"
58
58
  },
59
- "scripts": {
60
- "build": "tsc -b",
61
- "test": "vitest run",
62
- "test:watch": "vitest"
63
- },
64
59
  "dependencies": {
65
60
  "libsql": "^0.5.0",
66
61
  "commander": "^14.0.0",
67
- "hzl-core": "workspace:*",
68
- "hzl-web": "workspace:*",
69
- "zod": "^3.23.8"
62
+ "zod": "^3.23.8",
63
+ "hzl-core": "1.18.7",
64
+ "hzl-web": "1.18.7"
70
65
  },
71
66
  "devDependencies": {
72
67
  "@types/better-sqlite3": "^7.6.13",
@@ -74,5 +69,10 @@
74
69
  "@vitest/coverage-v8": "^4.0.18",
75
70
  "typescript": "^5.3.0",
76
71
  "vitest": "^4.0.18"
72
+ },
73
+ "scripts": {
74
+ "build": "tsc -b",
75
+ "test": "vitest run",
76
+ "test:watch": "vitest"
77
77
  }
78
- }
78
+ }