diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 08085a08d..321db5f5c 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ "name": "beads", "source": "./claude-plugin", "description": "AI-supervised issue tracker for coding workflows", - "version": "0.57.0" + "version": "0.58.0" } ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bfc8e7f4..94f314d23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,73 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.58.0] - 2026-03-02 + ### Added -- **Persistent memory** — `bd remember`, `bd memories`, `bd recall`, `bd forget` for agent knowledge that survives sessions and account rotations. Backed by the k/v store. Memories auto-inject at `bd prime` time. +- **Persistent agent memory** — `bd remember`, `bd memories`, `bd recall`, `bd forget` for knowledge that survives sessions and account rotations. Backed by the k/v store, auto-injected at `bd prime` time. +- **`bd purge`** — delete closed ephemeral beads (wisps) to reclaim storage ([GH#1692](https://github.com/steveyegge/beads/issues/1692)) +- **`bd mol last-activity`** — show the most recent activity timestamp for any molecule ([GH#1456](https://github.com/steveyegge/beads/issues/1456)) +- **`bd show --current`** — show the active issue without specifying an ID ([GH#2184](https://github.com/steveyegge/beads/issues/2184)) +- **`bd doctor validate`** — Dolt-native conflict detection for data integrity checks ([GH#2249](https://github.com/steveyegge/beads/issues/2249)) +- **`bd init --backend`** — explicit backend selection with SQLite deprecation notice +- **`--stdin` flag** — alias for `--body-file -` on `bd create` and `bd update` +- **`bd preflight --check`** — aligned with CI checks for pre-push validation ([GH#2230](https://github.com/steveyegge/beads/issues/2230)) +- **gofmt + golangci-lint pre-commit hook** — automatic code quality enforcement ([GH#2179](https://github.com/steveyegge/beads/issues/2179)) +- **JSONL-to-Dolt migration script** — standalone bash script for pre-0.50 users ([GH#2276](https://github.com/steveyegge/beads/issues/2276)) +- **`bd doctor --fix`** — bridge pending hook migrations into automated repair +- **`bd create-form --parent`** — create sub-issues with label inheritance + +### Fixed + +- **Dolt CPU spikes** — batch IN-clause queries in `dependencies.go` and `computeBlockedIDs` to prevent runaway CPU usage on large databases ([GH#2294](https://github.com/steveyegge/beads/issues/2294)) +- **Dolt joinIter hangs** — avoid hanging queries in `GetReadyWork` blocker computation +- **Stealth mode backup push** — `no-git-ops` config now correctly prevents backup git push ([GH#2290](https://github.com/steveyegge/beads/issues/2290)) +- **Stale DB connection crash** — retry stale connection and preserve temp file in `bd edit` ([GH#2267](https://github.com/steveyegge/beads/issues/2267)) +- **OSC escape leaks** — prevent escape sequence pollution when third-party hook runners (lefthook, husky) call `bd hooks run` directly ([GH#1303](https://github.com/steveyegge/beads/issues/1303)) +- **`validateIssueIDPrefix`** — now checks `allowed_prefixes` config, unblocking convoy creation with multi-prefix databases ([GH#1179](https://github.com/steveyegge/beads/issues/1179)) +- **Molecule steps in `bd ready`** — remove stale SQLite-era filtering that hid mol steps ([GH#1359](https://github.com/steveyegge/beads/issues/1359)) +- **`bd blocked` children** — include children of blocked parents in output ([GH#1495](https://github.com/steveyegge/beads/issues/1495)) +- **Same-type blocking validation** — enforce that dependencies match allowed type pairs +- **Cross-prefix dependency routing** — `bd dep add/rm/blocks/tree` now routes by prefix ([GH#2285](https://github.com/steveyegge/beads/pull/2285)) +- **Cross-prefix dep existence check** — skip target existence check for cross-prefix dependencies +- **Wisps table recreation** — recreate `dolt_ignore`'d wisps tables on schema fast-path ([GH#2271](https://github.com/steveyegge/beads/issues/2271)) +- **Missing wisps table** — gracefully handle in epic/blocked queries ([GH#2271](https://github.com/steveyegge/beads/issues/2271)) +- **Wisp dependency scanning** — scan `wisp_dependencies` in `getChildrenOfIssues` and `getChildrenWithParents` +- **Cascade-delete wisp children** — delete blocked step children during wisp GC +- **Batch wisp deletes** — reduce Dolt commit pressure in `DeleteIssues` +- **Dolt push/pull hint** — show helpful message when remote not found ([GH#2118](https://github.com/steveyegge/beads/issues/2118)) +- **Git-protocol remote fallback** — use CLI fallback for all git-protocol remotes, not just SSH ([GH#2268](https://github.com/steveyegge/beads/issues/2268)) +- **`dolt_data_dir` persistence** — strip absolute paths from `metadata.json` on save ([GH#2251](https://github.com/steveyegge/beads/issues/2251)) +- **Dolt config port** — consult `config.yaml` for `dolt.port` in `DefaultConfig` ([GH#2073](https://github.com/steveyegge/beads/issues/2073)) +- **Missing `dolt_database`** — detect and repair in `metadata.json` ([GH#2160](https://github.com/steveyegge/beads/issues/2160)) +- **Dolt remote guards** — guard remote subcommands against store init bypass ([GH#2224](https://github.com/steveyegge/beads/issues/2224)) +- **`bd search` performance** — avoid `LIKE %%` full-table scans +- **Worktree DB discovery** — skip own `.beads/` in separate-DB discovery ([GH#2190](https://github.com/steveyegge/beads/issues/2190)) +- **Contributor routing** — detect fork workflow, apply routing to list and ready +- **Pre-commit Go version mismatch** — detect before golangci-lint panics +- **Viper defaults** — skip in `getRoutingConfigValue` to unblock DB fallback +- **`bd mol wisp create`** — default to root-only unless formula sets `pour=true` +- **Bare repo init** — skip `AGENTS.md` generation in bare repositories +- **`last_import_time` refresh** — prevent false staleness after write commands ([GH#2255](https://github.com/steveyegge/beads/issues/2255)) +- **Hook marker detection** — validate marker count and order; recognize marker-managed hooks ([GH#2244](https://github.com/steveyegge/beads/issues/2244), [GH#2242](https://github.com/steveyegge/beads/issues/2242)) +- **Gitignore template** — add missing dolt runtime files ([GH#2256](https://github.com/steveyegge/beads/issues/2256)) +- **Pre-0.56 Dolt database upgrade** — graceful recovery path ([GH#2137](https://github.com/steveyegge/beads/issues/2137)) +- **Remotesapi port check** — skip when no federation peers configured ([GH#2273](https://github.com/steveyegge/beads/issues/2273)) +- **Doctor subsystem** — fix panics, masked errors, missing `rows.Err()`, federation port, hardcoded paths; add 3 new tests +- **N+1 query patterns** — replace with batch queries in `deep.go` and `migration_validation.go` +- **`IsBlocked` reporting** — align blocker reporting with blocked-cache semantics ([GH#1524](https://github.com/steveyegge/beads/issues/1524)) + +### Removed + +- **Beads Classic SQLite backend** — the SQLite storage layer and all migration infrastructure have been removed. Dolt is the only backend. ([GH#87493ce](https://github.com/steveyegge/beads/commit/87493ce9)) +- **`go-sqlite3` dependency** — no more CGO requirement; tests use Dolt testcontainers +- **Deprecated commands** — removed dead SQLite-era code and legacy scripts + +### Documentation + +- Updated stale references to JSONL and SQLite architecture +- Hook migration preview/apply workflow documentation ## [0.57.0] - 2026-03-01 diff --git a/claude-plugin/.claude-plugin/plugin.json b/claude-plugin/.claude-plugin/plugin.json index c491a3dce..991902bfb 100644 --- a/claude-plugin/.claude-plugin/plugin.json +++ b/claude-plugin/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "beads", "description": "AI-supervised issue tracker for coding workflows. Manage tasks, discover work, and maintain context with simple CLI commands.", - "version": "0.57.0", + "version": "0.58.0", "author": { "name": "Steve Yegge", "url": "https://github.com/steveyegge" diff --git a/cmd/bd/info.go b/cmd/bd/info.go index 5900c7922..5a2a16158 100644 --- a/cmd/bd/info.go +++ b/cmd/bd/info.go @@ -209,6 +209,34 @@ type VersionChange struct { // versionChanges contains agent-actionable changes for recent versions var versionChanges = []VersionChange{ + { + Version: "0.58.0", + Date: "2026-03-02", + Changes: []string{ + "NEW: bd purge — delete closed ephemeral beads to reclaim storage", + "NEW: bd mol last-activity — show most recent molecule activity timestamp", + "NEW: bd show --current — show active issue without specifying ID", + "NEW: bd doctor validate — Dolt-native conflict detection", + "NEW: bd init --backend — explicit backend selection with SQLite deprecation", + "NEW: --stdin flag for bd create/update (alias for --body-file -)", + "NEW: bd preflight --check aligned with CI checks", + "NEW: JSONL-to-Dolt migration script for pre-0.50 users", + "NEW: bd create-form --parent for sub-issue creation with label inheritance", + "NEW: Persistent agent memory (bd remember/memories/recall/forget)", + "FIX: Dolt CPU spikes — batch IN-clause queries in dependencies", + "FIX: Dolt joinIter hangs in GetReadyWork blocker computation", + "FIX: Stealth mode (no-git-ops) now correctly prevents backup git push", + "FIX: Stale DB connection crash in bd edit", + "FIX: OSC escape leaks from third-party hook runners (lefthook, husky)", + "FIX: validateIssueIDPrefix now checks allowed_prefixes (unblocks convoys)", + "FIX: Molecule steps now appear in bd ready", + "FIX: Cross-prefix dependency routing and validation", + "FIX: Wisps table recreation on schema fast-path", + "FIX: bd search avoids LIKE %% full-table scans", + "REMOVED: SQLite backend and go-sqlite3 dependency (Dolt only)", + "REMOVED: Deprecated commands and legacy SQLite-era scripts", + }, + }, { Version: "0.57.0", Date: "2026-03-01", diff --git a/cmd/bd/version.go b/cmd/bd/version.go index ce26a1ff7..f9bd52949 100644 --- a/cmd/bd/version.go +++ b/cmd/bd/version.go @@ -12,7 +12,7 @@ import ( var ( // Version is the current version of bd (overridden by ldflags at build time) - Version = "0.57.0" + Version = "0.58.0" // Build can be set via ldflags at compile time Build = "dev" // Commit and branch the git revision the binary was built from (optional ldflag) diff --git a/default.nix b/default.nix index c3e53804c..c63e86c1d 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,7 @@ { pkgs, self }: pkgs.buildGoModule { pname = "beads"; - version = "0.57.0"; + version = "0.58.0"; src = self; @@ -9,7 +9,7 @@ pkgs.buildGoModule { subPackages = [ "cmd/bd" ]; doCheck = false; # Go module dependencies hash - if build fails with hash mismatch, update with the "got:" value - vendorHash = "sha256-uf6ET13OImaGk22I9MJ/wJvX8F0bXaEkf726De/80PY="; + vendorHash = "sha256-OL6QGf4xSMpEbmU+41pFdO0Rrs3H162T3pdiW9UfWR0="; # Relax go.mod version for Nix: nixpkgs Go may lag behind the latest # patch release, and GOTOOLCHAIN=auto can't download in the Nix sandbox. diff --git a/integrations/beads-mcp/pyproject.toml b/integrations/beads-mcp/pyproject.toml index 57b7565fd..166c574cb 100644 --- a/integrations/beads-mcp/pyproject.toml +++ b/integrations/beads-mcp/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "beads-mcp" -version = "0.57.0" +version = "0.58.0" description = "MCP server for beads issue tracker." readme = "README.md" requires-python = ">=3.10" diff --git a/integrations/beads-mcp/src/beads_mcp/__init__.py b/integrations/beads-mcp/src/beads_mcp/__init__.py index 72321ece0..744a57b16 100644 --- a/integrations/beads-mcp/src/beads_mcp/__init__.py +++ b/integrations/beads-mcp/src/beads_mcp/__init__.py @@ -4,4 +4,4 @@ This package provides an MCP (Model Context Protocol) server that exposes beads (bd) issue tracker functionality to MCP Clients. """ -__version__ = "0.57.0" +__version__ = "0.58.0" diff --git a/npm-package/package.json b/npm-package/package.json index d02ae4f27..3dd65d125 100644 --- a/npm-package/package.json +++ b/npm-package/package.json @@ -1,6 +1,6 @@ { "name": "@beads/bd", - "version": "0.57.0", + "version": "0.58.0", "description": "Beads issue tracker - lightweight memory system for coding agents with native binary support", "main": "bin/bd.js", "bin": {