hzl-cli 1.9.0 → 1.9.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.
package/README.md CHANGED
@@ -1,31 +1,47 @@
1
1
  # HZL (Hazel)
2
2
 
3
- **A shared task ledger for OpenClaw and poly-agent workflows.**
3
+ **External task ledger for coding agents and OpenClaw.**
4
4
 
5
- OpenClaw is great at doing work: running tools, coordinating sub-agents, and maintaining memory.
6
- What it (and most agent tools) do not give you is a durable, shared backlog that survives:
5
+ Claude Code has [Tasks](https://x.com/trq212/status/2014480496013803643). If you use Claude Code for short, self-contained work, that's probably enough.
7
6
 
8
- - session boundaries
9
- - crashes/reboots
10
- - switching between different agent runtimes (Claude Code, Codex, Gemini, etc.)
7
+ HZL is for when work outlives a single session: days-long projects, switching between Claude Code and Codex, OpenClaw juggling parallel workstreams.
11
8
 
12
- HZL fills that gap: a lightweight, local-first task tracker that any agent can read/write.
9
+ **Coding agents (Claude Code, Codex, Gemini)**
13
10
 
14
- Using OpenClaw? Start here: [OpenClaw integration](#openclaw-integration)
11
+ You're working across several projects over days or weeks. You switch between agents. Each has its own task tracking (or none).
12
+
13
+ HZL is the shared ledger underneath. Claim a task in Claude Code, pick it up in Codex tomorrow. One source of truth across tools and sessions.
14
+
15
+ **OpenClaw**
16
+
17
+ OpenClaw has tools for user memory—context, preferences, past chats. It doesn't have a tool for tracking task execution state: workstreams, dependencies, checkpoints.
18
+
19
+ That all lives in-context today. It burns space. It fragments when chats compact.
20
+
21
+ HZL fills that gap. Say you ask OpenClaw to plan a family vacation—flights, hotels, activities, reservations. That's multiple tasks with dependencies (can't book hotels until you know the dates). Instead of tracking all of it in the chat, OpenClaw creates tasks in HZL:
22
+
23
+ ```bash
24
+ hzl task list --project family-vacation --available --json
25
+ → "Book hotel" is now ready (depends on "Finalize dates" which completed)
26
+ ```
27
+
28
+ OpenClaw queries HZL, sees what's unblocked, and picks up the next task—without reconstructing state from a compacted chat. If you ever run multiple OpenClaw instances, they coordinate through the same ledger.
29
+
30
+ **Local-first with built-in cloud sync**
15
31
 
16
- Not using OpenClaw? Jump to: [Using HZL with Claude Code, Codex, Gemini CLI, or any coding agent](#using-hzl-with-claude-code-codex-gemini-cli-or-any-coding-agent)
32
+ Fast reads and writes to local SQLite. Enable sync to [Turso](https://turso.tech) with one command (`hzl init --sync-url ...`) for automatic backup and multi-device access.
17
33
 
18
- HZL provides:
34
+ **Also**
35
+
36
+ - Leases: time-limited claims that expire, so callers can find and reclaim stuck work
37
+ - Checkpoints: save progress notes so work can resume after interruption
38
+ - Event history: full audit trail of what happened
39
+
40
+ Using OpenClaw? Start here: [OpenClaw integration](#openclaw-integration)
19
41
 
20
- - Projects and tasks
21
- - Dependencies (`B` waits for `A`)
22
- - Checkpoints (progress snapshots you can resume from)
23
- - Leases (time-limited claims for multi-agent coordination)
24
- - Event history (audit trail)
25
- - Cloud Sync (multi-device/multi-agent synchronization with Turso)
26
- - A CLI + JSON output that agents can script against
42
+ Using Claude Code, Codex, or Gemini? See: [Using HZL with coding agents](#using-hzl-with-claude-code-codex-gemini-cli-or-any-coding-agent)
27
43
 
28
- Data is stored in SQLite. Default location: `$XDG_DATA_HOME/hzl/data.db` (fallback `~/.local/share/hzl/data.db`); Windows: `%LOCALAPPDATA%\\hzl\\data.db`.
44
+ Data is stored in SQLite. Default location: `$XDG_DATA_HOME/hzl/` (fallback `~/.local/share/hzl/`); Windows: `%LOCALAPPDATA%\\hzl\\`. Contains `events.db` (source of truth) and `cache.db` (projections).
29
45
 
30
46
  ---
31
47
 
@@ -62,7 +78,7 @@ flowchart LR
62
78
 
63
79
  OpenClaw coordinates the work. HZL is the shared, durable task board that OpenClaw and its sub-agents can use across sessions.
64
80
 
65
- ### 2) Any poly-agent system (no OpenClaw required)
81
+ ### 2) Any multi-agent system (no OpenClaw required)
66
82
 
67
83
  ```mermaid
68
84
  flowchart LR
@@ -222,7 +238,7 @@ flowchart TD
222
238
 
223
239
  ## Patterns
224
240
 
225
- ### Pattern: Poly-agent backlog (recommended)
241
+ ### Pattern: Multi-agent backlog (recommended)
226
242
 
227
243
  Conventions that help:
228
244
 
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ export function createProgram() {
24
24
  const program = new Command();
25
25
  program
26
26
  .name('hzl')
27
- .description('A shared task ledger for OpenClaw and poly-agent workflows.')
27
+ .description('External task ledger for coding agents and OpenClaw.')
28
28
  .version(pkg.version)
29
29
  .option('--db <path>', 'Path to database file')
30
30
  .option('--json', 'Output in JSON format', false);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,iDAAiD;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,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AC,UAAU,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC5C,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACzC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAChD,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACxC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAC1C,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAC1C,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACxC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,OAAiB,OAAO,CAAC,IAAI;IACrD,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;IAChC,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,GACX,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hzl-cli",
3
- "version": "1.9.0",
4
- "description": "CLI for HZL - A shared task ledger for OpenClaw and poly-agent workflows.",
3
+ "version": "1.9.1",
4
+ "description": "CLI for HZL - External task ledger for coding agents and OpenClaw.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "hzl": "dist/cli.js"
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "libsql": "^0.5.0",
40
40
  "commander": "^14.0.0",
41
- "hzl-core": "^1.9.0",
41
+ "hzl-core": "^1.9.1",
42
42
  "hzl-web": "^1.7.6",
43
43
  "zod": "^3.23.8"
44
44
  },