Commit graph

151 commits

Author SHA1 Message Date
matt wilkie
1b2dd2cb56 Release 1.0.3 2026-04-24 16:15:11 -07:00
emma
a3f834b31f release: beads v1.0.2 — npm provenance URL fix
Executed-By: beads/crew/emma
2026-04-15 13:42:06 -07:00
emma
4c52b9f4ae release: beads v1.0.1
Executed-By: beads/crew/emma
2026-04-15 12:44:44 -07:00
matt wilkie
4fe05a3bec
Use getting started docs as bugs to fix (#3034)
* fix: narrow cross-version smoke CI triggers and warn on high skip rate

Remove push-to-main and PR triggers from cross-version smoke test
workflow — 30-45 min runtime is too costly for every push. Keep tag
pushes (releases/RCs) and manual dispatch.

Add a visible warning when >80% of tested versions are skipped, printed
to stderr and GitHub step summary. Prevents silent "all passed" when
nearly nothing actually ran.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: add .buildflags for consistent ICU build configuration

Amp-Thread-ID: https://ampcode.com/threads/T-019d5c3f-42eb-7794-8d59-524bbf77bdf8
Co-authored-by: Amp <amp@ampcode.com>

* Add analysis of getting-started docs: necessity vs. fixable errors

Analyzes ~3,200 lines of getting-started documentation across 9 files.
Finds ~50% of the content compensates for tool-level UX gaps that should
be fixed rather than documented. Categorizes every section as genuinely
necessary, useful reference, workaround for fixable issue, or redundant.
Includes specific recommendations for both tool fixes and doc consolidation.

Requested by @csells.

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* Streamline getting-started docs: reduce noise, fix user-facing paths

QUICKSTART.md:
- Change all ./bd to bd (reflects installed binary, not local build)
- Replace go-build install section with brew/npm + link to INSTALLING.md
- Remove Notion sync, database maintenance, and migration sections
  (these are advanced topics, not quickstart material)
- Add "Database maintenance" link to Next Steps

README.md:
- Consolidate installation from ~30 lines to ~8 lines
- Remove CGO/build-from-source details (belong in INSTALLING.md)
- Add links to INSTALLING.md sections for all install methods

INSTALLING.md:
- Demote go install/source to "Contributors / Go developers" in matrix
- Move Build Dependencies section after platform installs, retitle to
  "Build Dependencies (Contributors Only)" with skip-if-prebuilt note
- Add cross-reference to TROUBLESHOOTING.md in troubleshooting section

Net effect: -91 lines, clearer separation between user and contributor
paths, less noise in the first-time experience.

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* fix: detect permission errors in bd init with platform-specific guidance

On Windows, Controlled Folder Access can block bd init from creating
.beads/ with no useful error. Now detects os.IsPermission and prints
specific guidance for Windows (CFA whitelist instructions) and Unix
(ls -la / chmod suggestions) instead of a generic failure message.

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* fix: add circuit breaker cleanup to bd doctor --fix

Stale circuit breaker files in /tmp/beads-circuit/ can block all bd
operations. Previously users had to manually rm these files. Now
bd doctor detects stale breaker files as a fixable check, and
bd doctor --fix clears them automatically via CleanStaleCircuitBreakerFiles.

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* feat: warn about multiple bd binaries in PATH

bd version now scans PATH for duplicate bd executables and warns when
more than one is found. This catches the common case where go install
and Homebrew binaries coexist, causing version confusion. Symlinks
are resolved to avoid false positives.

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* fix: show holding process PID in database lock errors

When the Dolt database is locked, the error message now tries to
identify the holding process by scanning /proc for bd/dolt processes.
On Linux, users see e.g. "Process 12345 (bd/dolt) may be holding
the lock." Gracefully degrades to the previous message on platforms
without /proc (macOS, Windows, FreeBSD).

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* fix: only flag circuit breaker files as stale after TTL expires

CheckCircuitBreaker() was counting any open/half-open breaker as stale
regardless of age. This could reset a legitimately active breaker
during a real outage. Now uses the same 5-minute staleness threshold
as CleanStaleCircuitBreakerFiles() — only breakers older than 5 minutes
(from TrippedAt or LastFailure) are flagged for cleanup.

https://claude.ai/code/session_01Fak22deVmDX3KRBKVptJBL

* fix: correct broken doc anchors in README installation links

The "go install" and "from source" links pointed to nonexistent anchors
in INSTALLING.md. Found during review checklist testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: suppress gosec G304 false positive in circuit breaker check

Path comes from filepath.Glob with a controlled pattern, matching
the same nolint pattern used in internal/storage/dolt/circuit.go.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Amp <amp@ampcode.com>
2026-04-05 16:09:58 -07:00
beads/crew/emma
db5b05a72f release: beads v1.0.0
Stable release. Embedded Dolt default on all platforms, critical
reliability fixes (concurrent panic, spaces in path, schema migration),
22 community PRs merged, tracker hardening across all backends.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 21:35:30 -07:00
beads/crew/emma
884cc1171e fix(release): revert all non-Linux targets to CGO_ENABLED=0, bump v0.63.3
Only Linux amd64/arm64 can cross-compile with CGO on the CI runner.
macOS needs CoreFoundation/Security frameworks, Windows needs mingw
with framework support, and Android/FreeBSD lack sysroot headers.
These platforms use server mode; embedded Dolt is Linux-only for now.
Removes zig setup (no longer needed — Linux arm64 uses system gcc).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 08:58:25 -07:00
beads/crew/emma
0cac11fbb6 fix(release): add CGO build constraints for embeddeddolt, bump to v0.63.2
Gate embeddeddolt package on //go:build cgo with stub files for !cgo.
Android and freebsd targets use CGO_ENABLED=0 since zig lacks sysroot
headers for these platforms. Server mode still works on all targets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 16:57:50 -07:00
beads/crew/emma
2321038ed5 fix(release): disable CGO for android/freebsd builds, bump to v0.63.1
Zig lacks sysroot headers for android and freebsd targets, causing
stdlib.h not found errors. Revert these two targets to CGO_ENABLED=0
(they do not need embedded Dolt). Remove unused zig wrappers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 15:56:55 -07:00
beads/crew/emma
d1f4784d3b release: v0.63.0 — embedded Dolt default, multi-project sync, graph create
Embedded Dolt is now the default storage backend. Adds multi-project/team
sync for Linear/Jira/ADO, Notion and GitLab sync, bd create --graph,
simplified backup system, and 18 bug fixes from 18 contributors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 15:15:17 -07:00
beads/crew/emma
1402021b8b chore: bump version to 0.62.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:50:38 -07:00
beads/crew/emma
3ac028bff3 chore: bump version to 0.61.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 19:06:14 -07:00
beads/crew/emma
91df6ef6d3 chore: bump version to 0.60.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 20:53:41 -07:00
beads/crew/emma
018d18e013 chore: bump version to 0.59.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-03-05 16:00:25 -08:00
beads/crew/emma
ae14933db6 chore: bump version to 0.58.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 22:27:12 -08:00
beads/crew/emma
063faed44d chore: bump version to 0.57.0 on main
The v0.57.0 release was tagged and published from a polecat branch but
the version bump commit was never merged back to main. This lands the
version files, CHANGELOG, and info.go versionChanges on main.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-03-01 15:36:30 -08:00
beads/crew/emma
48bfaaad38 fix(release): remove verify-cgo hook from CGO_ENABLED=0 builds
v0.56.0 release failed because verify-cgo.sh was added to darwin and
freebsd builds which intentionally use CGO_ENABLED=0. Bump to v0.56.1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-22 19:34:50 -08:00
beads/crew/emma
c14fc2be07 chore: bump version to 0.56.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-22 19:08:36 -08:00
elinor
c4010c1977 feat: remove CGO build-tag bifurcation for dolt commands
Delete 6 CGO/nocgo stub files and remove //go:build cgo tags from
dolt.go and bootstrap.go. Beads now always operates in server mode
(dolt sql-server subprocess). Embedded mode references removed from
CLI help text and config commands.

Part of epic: Remove embedded Dolt mode (server-only operation).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 15:37:31 -08:00
Steve Yegge
3682c9a492
Merge pull request #1882 from marcodelpin/fix/early-cgo-detection
fix: early CGO detection with clear error for non-CGO binaries
2026-02-21 13:14:44 -08:00
beads/crew/emma
21f49ddb1a chore: Bump version to 0.55.4
Disable CGO for FreeBSD cross-compilation (zig sysroot lacks stdlib.h).
Add PreToolUse hook to block gh run watch across all crew sessions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-20 11:38:31 -08:00
beads/crew/emma
bfe5241609 chore: Bump version to 0.55.3
Disable CGO for macOS cross-compilation targets. Zig sysroot lacks
macOS frameworks (CoreFoundation, Security) and libresolv. Darwin builds
use gms_pure_go + netgo tags for pure-Go operation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-20 09:39:29 -08:00
beads/crew/emma
af1a77884d chore: Bump version to 0.55.2
Fix release CI: strip -lresolv entirely from zig cross-compilation
wrappers instead of replacing with -lresolv.9 (zig sysroot has neither).
macOS builds use netgo tag so libresolv is not needed.

Also add GitHub API rate limit warnings to release formula, release.sh,
and emma private memory to prevent burning 5000/hr quota during CI wait.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-20 09:00:55 -08:00
Marco Del Pin
95234e9a4c fix: early CGO detection with clear error for non-CGO binaries
Since v0.51.0, the embedded Dolt backend requires CGO. Pre-built
binaries may ship without CGO, causing confusing "no beads database
found" errors instead of explaining the real issue.

Changes:
- Add cgo_check_cgo.go / cgo_check_nocgo.go build-tag pair that
  exposes cgoAvailable() at compile time
- Add early CGO check in PersistentPreRun (after noDbCommands) that
  exits with a clear, actionable error message pointing users to
  Homebrew, GitHub releases, or CGO_ENABLED=1 source builds
- Show CGO status in `bd version` output and JSON response so users
  can quickly diagnose binary issues

Commands that don't need a database (version, help, doctor, init, etc.)
continue to work without CGO.

Complements #1870 (release pipeline verification) with defense-in-depth
at the binary level.

Fixes #1856
2026-02-20 06:48:05 +01:00
beads/crew/emma
e3b9e86c4a chore: Bump version to 0.55.1
Fix release workflow YAML broken by heredoc in zig wrapper step,
fix marketplace.json version missed in v0.55.0, run gofmt on 8 files,
fix unused parameter and dead code lint in config.go.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-19 21:30:49 -08:00
beads/crew/emma
d0c11d521f chore: Bump version to 0.55.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-19 21:05:28 -08:00
beads/crew/emma
49f8d2e9e2 chore: Bump version to 0.54.1
Retag as v0.54.1 because v0.54.0 tag was poisoned by repeated
delete/recreate cycles and GitHub Actions no longer triggers workflows
for it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-19 21:01:14 -08:00
beads/crew/emma
5fd25249af chore: Bump version to 0.54.0
Fix goreleaser zig cross-compilation race with --parallelism 1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-18 21:46:26 -08:00
beads/crew/emma
bd4d365879 chore: Bump version to 0.53.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-18 20:17:59 -08:00
beads/crew/emma
ea22fd5937 chore: Bump version to 0.52.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-16 16:06:17 -08:00
emma
6a81082f9f release: v0.51.0 — Dolt-native cleanup
Major release completing the Dolt-native migration:
- 8-phase refactor removing SQLite, JSONL sync, merge engine, tombstones, daemon stubs
- Pruned ~3,000+ lines of dead code across storage factory, type aliases, doctor checks
- Bug fixes for batch deletes, test races, worktree config corruption
- CASCADE deletes cut deletion queries by 60%
- 10+ docs updated from SQLite to Dolt, deprecated docs removed
- Community contributions: 8 merged PRs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-16 10:38:36 -08:00
beads/crew/emma
bd25acbcb1 chore: Bump version to 0.50.3
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-14 18:30:09 -08:00
beads/crew/emma
9c402efe5f chore: bump version to 0.50.2
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-14 15:33:44 -08:00
mayor
553f9c8ffc chore: bump version to 0.50.1
Also fixes ruff target-version in pyproject.toml (was clobbered to
"0.50.0" by version bump script, restored to "py310").

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:24:48 -08:00
mayor
349a57e5fa chore: bump version to 0.50.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:08:19 -08:00
mayor
a081806f7c Revert "release: bump version to v0.50.0 with CHANGELOG"
This reverts commit c30611d569.
2026-02-14 13:37:09 -08:00
mayor
c30611d569 release: bump version to v0.50.0 with CHANGELOG
Dolt Transition Complete. SQLite backend deleted, JSONL sync layer removed,
daemon/RPC subsystem eliminated. Over 30,000 lines of legacy code removed.
Dolt is now the sole storage backend.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 13:30:50 -08:00
elinor
b136996b90 refactor: delete daemon/RPC layer and internal/rpc/ package (-19,663 lines)
Phase 2 of Dolt transition (woho.2): Remove the entire daemon/RPC layer
now that all commands use direct storage access.

- Delete internal/rpc/ directory (40 files, ~11K lines)
- Delete daemon_deprecated.go stub layer
- Delete compact_rpc.go (daemon-only compact via RPC)
- Delete daemon-specific test files (delete_rpc_test.go, direct_mode_test.go,
  dual_mode_test.go, list_watch_test.go)
- Clean up remaining daemon references in ~25 source files:
  - Remove daemon RPC branches from update, create, template, markdown,
    gate_discover, mol_stale, mol_current, import, query, version, prime
  - Remove rpc.Client parameter from show_thread functions
  - Simplify info.go to always show "direct" mode
  - Simplify sync_import.go to always use inline import
  - Remove daemon status checks from staleness, migrate_dolt, rename_prefix
  - Remove unused fallbackToDirectMode function
  - Remove stale daemon comments from sync.go
- Add daemon_compat.go with --no-daemon flag (backward compat for hooks)
  and utility functions (boolToFlag, truncateString, formatUptime, progressBar)
- Fix test files: remove daemonClient cleanup blocks, update findRepliesTo/
  findReplies call signatures, remove RPC test functions
- go vet ./... passes clean

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 12:10:24 -08:00
beads/crew/emma
c064f2aa99 release: v0.49.6
Patch release to restore embedded Dolt mode that was incorrectly
removed from Beads in v0.49.5 (was only supposed to be removed
from Gas Town).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-07 22:01:18 -08:00
beads/crew/emma
bcf54c5cf3 release: v0.49.5
Security fixes, 40+ bug fixes, 6 new features, CI improvements.
See CHANGELOG.md for complete details.

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-07 20:28:20 -08:00
beads/crew/lizzy
2bb827facb style: run gofmt across entire codebase (bd-nmk12)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 19:35:20 -08:00
beads/crew/emma
3032c622d2 release: v0.49.4
Label pattern/regex filtering, spec_id field, wisp types, Dolt migration
runner, JSONL locking, merge driver field preservation, atomic claim,
Windows Dolt build, and numerous stability fixes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-05 10:23:08 -08:00
mayor
754192f4a0 chore: Bump version to 0.49.3 2026-01-31 20:35:55 -08:00
beads/crew/emma
188be0dcb6 chore: Bump version to 0.49.2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-01-31 00:50:53 -08:00
beads/crew/emma
9bbcee38d0 chore: Bump version to 0.49.1
Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-01-25 21:01:51 -08:00
beads/crew/emma
9381190462 chore: Bump version to 0.49.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 23:42:07 -08:00
emma
88a6438c80 chore(release): bump version to 0.48.0
Release highlights:
- VersionedStorage interface for pluggable backends
- bd types command and enhancement type alias
- bd close -m flag (git commit convention)
- RepoContext API for centralized git operations
- Dolt backend improvements (WIP)
- Many bug fixes for doctor, sync, hooks, worktrees

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 04:36:41 -08:00
Peter Chanthamynavong
0a48519561
feat(context): centralize RepoContext API for git operations (#1102)
Centralizes repository context resolution via RepoContext API, fixing bugs where git commands run in the wrong repo when BEADS_DIR points elsewhere or in worktree scenarios.
2026-01-15 07:55:08 -08:00
beads/crew/emma
159114563b chore(release): v0.47.2
- Dolt backend (experimental)
- bd show --children flag
- NixOS support improvements
- Fix redirect + sync-branch incompatibility
- Fix doctor project-level settings detection
- Fix contributor routing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 21:57:28 -08:00
beads/crew/emma
279192c5fb chore: Bump version to 0.47.1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 03:21:12 -08:00
beads/crew/emma
f459ec2913 chore: Bump version to 0.47.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:25:32 -08:00