hzl-cli 1.18.5 → 1.18.6

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 (2) hide show
  1. package/README.md +16 -15
  2. package/package.json +1 -1
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzl-cli",
3
- "version": "1.18.5",
3
+ "version": "1.18.6",
4
4
  "description": "CLI for HZL - External task ledger for coding agents and OpenClaw.",
5
5
  "type": "module",
6
6
  "bin": {