@beads/bd 0.21.6 → 0.21.8

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/bin/CHANGELOG.md CHANGED
@@ -7,6 +7,89 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - **Parent Resurrection** (bd-58c0): Automatic resurrection of deleted parent issues from JSONL history
13
+ - Prevents import failures when parent issues have been deleted
14
+ - Creates tombstone placeholders for missing hierarchical parents
15
+ - Best-effort dependency resurrection from JSONL
16
+
17
+ ### Changed
18
+
19
+ - **Error Messages**: Improved error messages for missing parent issues
20
+ - Old: `"parent issue X does not exist"`
21
+ - New: `"parent issue X does not exist and could not be resurrected from JSONL history"`
22
+ - **Breaking**: Scripts parsing exact error messages may need updates
23
+
24
+ ### Fixed
25
+
26
+ - **JSONL Resurrection Logic**: Fixed to use LAST occurrence instead of FIRST (append-only semantics)
27
+
28
+ ## [0.21.7] - 2025-11-04
29
+
30
+ ### Fixed
31
+
32
+ - **Memory Database Connection Pool** (bd-b121): Fixed `:memory:` database handling to use single shared connection
33
+ - Prevents "no such table" errors when using in-memory databases
34
+ - Ensures connection pool reuses the same in-memory instance
35
+ - Critical fix for event-driven daemon mode tests
36
+
37
+ - **Test Suite Stability**: Fixed event-driven test flakiness
38
+ - Added `waitFor` helper for event-driven testing
39
+ - Improved timing-dependent test reliability
40
+
41
+ ## [0.21.6] - 2025-11-04
42
+
43
+ ### Added
44
+
45
+ - **npm Package** (bd-febc): Created `@beads/bd` npm package for Node.js/Claude Code for Web integration
46
+ - Native binary downloads from GitHub releases
47
+ - Integration tests and release documentation
48
+ - Postinstall script for platform-specific binary installation
49
+
50
+ - **Template Support** (bd-164b): Issue creation from markdown templates
51
+ - Create multiple issues from a single file
52
+ - Structured format for bulk issue creation
53
+
54
+ - **`bd comment` Alias** (bd-d3f0): Convenient shorthand for `bd comments add`
55
+
56
+ ### Changed
57
+
58
+ - **Base36 Issue IDs** (GH #213): Switched from hex to Base36 encoding for shorter, more readable IDs
59
+ - Reduces ID length while maintaining uniqueness
60
+ - More human-friendly format
61
+
62
+ ### Fixed
63
+
64
+ - **SQLite URI Handling** (bd-c54b): Fixed `file://` URI scheme to prevent query params in filename
65
+ - Prevents database corruption from malformed URIs
66
+ - Fixed `:memory:` database connection strings
67
+
68
+ - **`bd init --no-db` Behavior** (GH #210): Now correctly creates `metadata.json` and `config.yaml`
69
+ - Previously failed to set `no-db: true` flag
70
+ - Improved metadata-only initialization workflow
71
+
72
+ - **Symlink Path Resolution**: Fixed `findDatabaseInTree` to properly resolve symlinks
73
+ - **Epic Hierarchy Display**: Fixed `bd show` command to correctly display epic child relationships
74
+ - **CI Stability**: Fixed performance thresholds, test eligibility, and lint errors
75
+
76
+ ### Dependencies
77
+
78
+ - Bumped `github.com/anthropics/anthropic-sdk-go` from 1.14.0 to 1.16.0
79
+ - Bumped `fastmcp` from 2.13.0.1 to 2.13.0.2
80
+
81
+ ## [0.21.5] - 2025-11-02
82
+
83
+ ### Fixed
84
+
85
+ - **Critical Double JSON Encoding Bug** (bd-1048, bd-4ec8): Fixed widespread bug in daemon RPC calls where `ResolveID` responses were incorrectly converted using `string(resp.Data)` instead of `json.Unmarshal`. This caused IDs to become double-quoted (`"\"bd-1048\""`) and database lookups to fail. Affected commands:
86
+ - `bd show` - nil pointer dereference and 3 instances of double encoding
87
+ - `bd dep add/remove/tree` - 5 instances
88
+ - `bd label add/remove/list` - 3 instances
89
+ - `bd reopen` - 1 instance
90
+
91
+ All 12 instances fixed with proper JSON unmarshaling.
92
+
10
93
  ## [0.21.4] - 2025-11-02
11
94
 
12
95
  ### Added
package/bin/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Go Version](https://img.shields.io/github/go-mod/go-version/steveyegge/beads)](https://go.dev/)
4
4
  [![Release](https://img.shields.io/github/v/release/steveyegge/beads)](https://github.com/steveyegge/beads/releases)
5
+ [![npm version](https://img.shields.io/npm/v/@beads/bd)](https://www.npmjs.com/package/@beads/bd)
5
6
  [![CI](https://img.shields.io/github/actions/workflow/status/steveyegge/beads/ci.yml?branch=main&label=tests)](https://github.com/steveyegge/beads/actions/workflows/ci.yml)
6
7
  [![Go Report Card](https://goreportcard.com/badge/github.com/steveyegge/beads)](https://goreportcard.com/report/github.com/steveyegge/beads)
7
8
  [![License](https://img.shields.io/github/license/steveyegge/beads)](LICENSE)
@@ -68,6 +69,11 @@ Agents report that they enjoy working with Beads, and they will use it spontaneo
68
69
 
69
70
  ## Installation
70
71
 
72
+ **npm (Node.js environments, Claude Code for Web):**
73
+ ```bash
74
+ npm install -g @beads/bd
75
+ ```
76
+
71
77
  **Quick install (all platforms):**
72
78
  ```bash
73
79
  curl -fsSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
@@ -83,6 +89,8 @@ brew install bd
83
89
 
84
90
  **IDE Integration:** See [INSTALLING.md](INSTALLING.md) for Claude Code plugin and MCP server setup.
85
91
 
92
+ **Claude Code for Web:** See [npm-package/CLAUDE_CODE_WEB.md](npm-package/CLAUDE_CODE_WEB.md) for SessionStart hook setup.
93
+
86
94
  ## Quick Start
87
95
 
88
96
  ### For Humans
@@ -342,12 +350,21 @@ bd create "Task" -l "backend,urgent" --assignee alice
342
350
  # Get JSON output for programmatic use
343
351
  bd create "Fix bug" -d "Description" --json
344
352
 
353
+ # Create from templates (built-in: epic, bug, feature)
354
+ bd create --from-template epic "Q4 Platform Improvements"
355
+ bd create --from-template bug "Auth token validation fails"
356
+ bd create --from-template feature "Add OAuth support"
357
+
358
+ # Override template defaults
359
+ bd create --from-template bug "Critical issue" -p 0 # Override priority
360
+
345
361
  # Create multiple issues from a markdown file
346
362
  bd create -f feature-plan.md
347
363
  ```
348
364
 
349
365
  Options:
350
366
  - `-f, --file` - Create multiple issues from markdown file
367
+ - `--from-template` - Use template (epic, bug, feature, or custom)
351
368
  - `-d, --description` - Issue description
352
369
  - `-p, --priority` - Priority (0-4, 0=highest, default=2)
353
370
  - `-t, --type` - Type (bug|feature|task|epic|chore, default=task)
@@ -356,6 +373,8 @@ Options:
356
373
  - `--id` - Explicit issue ID (e.g., `worker1-100` for ID space partitioning)
357
374
  - `--json` - Output in JSON format
358
375
 
376
+ See `bd template list` for available templates and `bd help template` for managing custom templates.
377
+
359
378
  ### Viewing Issues
360
379
 
361
380
  ```bash
@@ -409,10 +428,12 @@ bd dep cycles
409
428
  - **blocks**: Hard blocker (default) - issue cannot start until blocker is resolved
410
429
  - **related**: Soft relationship - issues are connected but not blocking
411
430
  - **parent-child**: Hierarchical relationship (child depends on parent)
412
- - **discovered-from**: Issue discovered during work on another issue
431
+ - **discovered-from**: Issue discovered during work on another issue (automatically inherits parent's `source_repo`)
413
432
 
414
433
  Only `blocks` dependencies affect ready work detection.
415
434
 
435
+ > **Note:** Issues created with `discovered-from` dependencies automatically inherit the parent's `source_repo` field, ensuring discovered work stays in the same repository as the parent task.
436
+
416
437
  ### Finding Work
417
438
 
418
439
  ```bash
package/bin/bd CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beads/bd",
3
- "version": "0.21.6",
3
+ "version": "0.21.8",
4
4
  "description": "Beads issue tracker - lightweight memory system for coding agents with native binary support",
5
5
  "main": "bin/bd.js",
6
6
  "bin": {
File without changes