* fix(mcp): detect Dolt-backed projects in workspace discovery (GH#2997)
The MCP `context()` tool reported "Database: Not found" for embedded Dolt
projects because `_find_beads_db()` and `_find_beads_db_in_tree()` only
globbed for `*.db` files. Embedded Dolt projects keep their data under
`.beads/embeddeddolt/` and declare the backend in `.beads/metadata.json`
— there is no `*.db` file to find.
Adds `_has_beads_project_files()` mirroring Go's `hasBeadsProjectFiles`
(metadata.json, config.yaml, dolt/, embeddeddolt/, or non-backup *.db).
Both Python discovery functions (and `.beads/redirect` validation) now
use this check, so SQLite, embedded Dolt, and server Dolt projects are
all recognized.
`context()` now reports the project root and backend when no SQLite db
is present, instead of the misleading "Not found".
* fix: delegate _find_beads_project to _find_beads_db_in_tree for redirect support
Addresses review item #2: _find_beads_project duplicated the upward
directory walk but skipped .beads/redirect handling. Now delegates to
_find_beads_db_in_tree, inheriting redirect, symlink, and all backend
detection for free.
Amp-Thread-ID: https://ampcode.com/threads/T-019d84e2-3a96-7263-a399-c3b2cc0ba6bb
Co-authored-by: Amp <amp@ampcode.com>
---------
Co-authored-by: Amp <amp@ampcode.com>
Thanks @GGPrompts — clean fix, good reasoning. The `str` approach is clearly right here given `IssueStatus` and `IssueType` already made the same call. Added a CHANGELOG entry before merging.
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>
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>
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>
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>
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>
Add category-aware custom statuses that control behavior in bd ready
and bd list. New config format: bd config set status.custom
"in_review:active,qa_testing:wip,archived:done,on_hold:frozen".
Backward compatible with old flat format. New bd statuses command
lists all statuses with --json support.
Also fix TestKillStaleServersPreservesOtherRepoServers to clear
BEADS_DOLT_AUTO_START env var, since the new IsAutoStartDisabled guard
in killStaleServersForDir short-circuits when set.
PR: #2665
Co-Authored-By: Harry Miller <harry-miller-trimble@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Thread issue_type through ReadyWorkParams model, CLI client, tools,
and MCP server layers. The CLI already supported --type but MCP wasn't
exposing it.
Co-Authored-By: Stuart Parmenter <stuartparmenter@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Stats model was changed to nested summary/recent_activity in #1392
but test_bd_client.py was missed. Update fixture and assertions.
Co-Authored-By: Stuart Parmenter <stuartparmenter@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove BEADS_NO_DAEMON env var from cli_fast_test.go, doctor tests,
and dolt e2e test. Remove daemon.log/pid/lock from .gitignore. Clean
up daemon terminology in MCP tools.py (comments, BEADS_USE_DAEMON
env var, prefer_daemon parameter).
Co-Authored-By: Dave Tashner <davetashner@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove all BEADS_NO_DAEMON env var handling from test files (dead code
since daemon removal in v0.50.0), delete stopRepoDaemon() and daemon
file guards from test setup, remove no-daemon config key from tests,
and update daemon→server wording in docs and comments.
37 files changed, -193 lines net.
Co-Authored-By: davetashner <davetashner@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove daemon/RPC subsystem and Gas Town detection heuristics from beads.
The daemon functionality has been superseded by Gas Town's deacon/daemon system.
Removed:
- IsDaemonManaged/IsDaemonManagedFor and Gas Town detection functions
- GasTownPort constant and GT_ROOT-based server directory resolution
- Daemon PID file checks in IsRunning, reclaimPort, KillStaleServers
- Daemon guard in Stop/StopWithForce
- Gas Town bypass in forkIdleMonitor and RunIdleMonitor
- Python bd_daemon_client.py RPC client and test_daemon_health_check.py
- Python test_multi_repo.py daemon integration test
- Daemon socket preference in create_bd_client
- Daemon client cleanup tracking in MCP server
- Daemon-related gitignore patterns and doctor fix ordering
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Add a new MCP `claim` tool as the atomic start-work operation (CLI equivalent: `bd update <id> --claim`). Keep `update` for semantic updates. Update MCP-facing docs/examples to use `claim` for start-work. Add focused tests for client/tool/server claim paths.
Co-Authored-By: Valeriy Pavlovich <iqdoctor@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
bd list/ready/blocked --json returns raw dependency records (issue_id,
depends_on_id, type) but the Issue Pydantic model expects enriched
LinkedIssue objects (id, title, status, etc.). This caused validation
errors whenever issues had dependencies.
Detect raw records by checking for depends_on_id key, replace with
empty lists, and preserve counts in dependency_count/dependent_count.
Fixes#1750
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
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