Commit Graph

1577 Commits

Author SHA1 Message Date
Steve Yegge
2ea2a0f010 Update beads issues 2025-11-06 10:53:55 -08:00
Ben Lovell
b5e2ef4a59 Add script to automate Nix vendorHash updates (#235)
* Add script to automate Nix vendorHash updates

- Create update-nix-hash.sh to automate vendorHash calculation
- Update vendorHash (to be usedafter recent Go dependency changes)
- Script uses ed for OS agnostic in-place editing and extracts hash from nix output

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

* Fix Test Nix Flake CI job

* Revert CI change - bd outputs help by default without 'help' arg

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steve Yegge <stevey@sourcegraph.com>
2025-11-06 10:30:19 -08:00
Steve Yegge
c47f40b03e fix: Extract linux checksums properly in Homebrew workflow
Fixes #238 - The workflow was using a shell command
instead of extracting the linux checksums like it does for macOS.
Now extracts all platform hashes and uses them in the formula.
2025-11-06 10:20:12 -08:00
Steve Yegge
22b3e95c02 bd sync: 2025-11-05 23:29:07 2025-11-05 23:29:09 -08:00
Steve Yegge
138f24c3ff Merge branch 'main' of github.com:steveyegge/beads 2025-11-05 21:04:28 -08:00
Steve Yegge
584c266684 Reorganize project structure: move Go files to internal/beads, docs to docs/
Amp-Thread-ID: https://ampcode.com/threads/T-7a71671d-dd5c-4c7c-b557-fa427fceb04f
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 21:04:00 -08:00
Steve Yegge
563c12ba2f feat: Add manual trigger to Homebrew workflow for testing 2025-11-05 20:51:46 -08:00
Steve Yegge
a1c3494c43 bd sync: 2025-11-05 20:40:10 2025-11-05 20:40:10 -08:00
Steve Yegge
5a22327d67 Merge beads metadata 2025-11-05 20:39:59 -08:00
Steve Yegge
155ec6aeeb bd sync: 2025-11-05 20:39:52 2025-11-05 20:39:52 -08:00
Steve Yegge
0f4b03e262 Optimize test suite: split integration tests, add -short support
- Split slow importer integration tests into separate file
- Add t.Short() guards to 10 slow daemon tests
- Document test organization in TEST_OPTIMIZATION.md
- Fast tests now run in ~50s vs 3+ minutes
- Use 'go test -short ./...' for fast feedback

Amp-Thread-ID: https://ampcode.com/threads/T-29ae21ac-749d-43d7-bf0c-2c5f7a06ae76
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 20:39:47 -08:00
Steve Yegge
739786e949 feat: Separate Homebrew update workflow with PAT support 2025-11-05 20:38:47 -08:00
Steve Yegge
34ff0a1200 fix: Disable ARM64 builds for Linux/Windows (CGO cross-compile issues) 2025-11-05 20:25:00 -08:00
Steve Yegge
df1c74ef1e bd sync: 2025-11-05 2025-11-05 20:00:30 -08:00
Steve Yegge
e294fc0f4d docs: Add CHANGELOG entry for v0.22.0 2025-11-05 19:59:48 -08:00
Steve Yegge
433fd4ad11 chore: Bump version to 0.22.0
Updated all component versions:
- bd CLI: 0.21.9 → 0.22.0
- Plugin: 0.21.9 → 0.22.0
- MCP server: 0.21.9 → 0.22.0
- npm package: 0.21.9 → 0.22.0
- Documentation: 0.21.9 → 0.22.0

Generated by scripts/bump-version.sh
2025-11-05 19:44:24 -08:00
Steve Yegge
38489106c6 Add git cleanup step to 'land the plane' protocol
Amp-Thread-ID: https://ampcode.com/threads/T-c2d2b083-5566-4eea-9f8a-c4880a79e888
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 19:43:27 -08:00
Steve Yegge
d13a445557 Fix: Clarify bd merge uses beads-merge algorithm (vendored)
The standalone beads-merge binary is the same algorithm, not an alternative.
Both run identical code - just different packaging.
2025-11-05 19:35:02 -08:00
Steve Yegge
2d69817341 Update documentation for merge driver auto-configuration
- Add merge driver to bd init workflow in README.md
- Update AGENTS.md with auto-config details
- Document --skip-merge-driver flag
- Provide manual setup instructions
- Clarify beads-merge as alternative external tool

Completes bd-ggbc
2025-11-05 19:33:20 -08:00
Steve Yegge
a67142f714 bd sync: 2025-11-05 19:33:07 2025-11-05 19:33:07 -08:00
Steve Yegge
999ad0264d Add merge driver auto-config to bd init 2025-11-05 19:27:41 -08:00
Steve Yegge
75dcb0da1c bd sync: 2025-11-05 19:27:33 2025-11-05 19:27:33 -08:00
Steve Yegge
fceecaf329 Merge branch 'main' of github.com:steveyegge/beads
Amp-Thread-ID: https://ampcode.com/threads/T-62a3b45b-f924-4017-ba5a-b5f64a1f31cb
Co-authored-by: Amp <amp@ampcode.com>

# Conflicts:
#	.beads/beads.jsonl
2025-11-05 19:27:33 -08:00
Steve Yegge
9820e788a4 bd sync: 2025-11-05 19:27:24 2025-11-05 19:27:24 -08:00
Steve Yegge
91bad1585d bd sync: 2025-11-05 19:22:12 2025-11-05 19:22:12 -08:00
Steve Yegge
e90e485e5b Fix bd-5ots: Eliminate N+1 query in scanIssues with batch label loading 2025-11-05 19:22:03 -08:00
Steve Yegge
5fdb555cd3 bd sync: 2025-11-05 19:17:14 2025-11-05 19:17:14 -08:00
Steve Yegge
fc9aa9bdae Merge remote-tracking branch 'origin/main'
Amp-Thread-ID: https://ampcode.com/threads/T-810952b1-e2a2-4913-97cb-90b12287ff40
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 19:17:07 -08:00
Steve Yegge
52c505956f feat: Add bd merge command for git 3-way JSONL merging (bd-omx1)
- Implemented bd merge command with dual-mode operation:
  1. Git 3-way merge: bd merge <output> <base> <left> <right>
  2. Duplicate issue merge: bd merge <sources...> --into <target> (placeholder)
- Added MergeFiles wrapper to internal/merge package
- Command works without database when used as git merge driver
- Supports --debug flag for verbose output
- Exit code 0 for clean merge, 1 for conflicts
- Handles deletions intelligently (delete-modify conflicts)
- Added proper MIT license attribution for @neongreen's beads-merge code
- Tests pass for git merge functionality

This enables git merge driver setup for .beads/beads.jsonl files.
2025-11-05 19:16:50 -08:00
Steve Yegge
3ecc16e0e3 Add workflow examples: multi-phase development and multiple personas (bd-p68x)
Amp-Thread-ID: https://ampcode.com/threads/T-b0f16435-48af-40ee-be66-ba0636fdd0fb
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 19:12:58 -08:00
Steve Yegge
7b60fa0ba9 bd sync: 2025-11-05 19:12:54 2025-11-05 19:12:54 -08:00
Steve Yegge
8bf6f20387 File bd-5ots: SearchIssues N+1 query bug 2025-11-05 19:12:08 -08:00
Steve Yegge
235f4e7cfa chore: Final beads sync 2025-11-05 19:04:39 -08:00
Steve Yegge
236d4e56b6 chore: Update beads issue tracker
Amp-Thread-ID: https://ampcode.com/threads/T-b4d124a2-447e-47d1-8124-d7c5dab9a97b
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 19:04:31 -08:00
Steve Yegge
b230a2270d feat: Add bd init --contributor and --team wizards
- Implement OSS contributor workflow wizard
  - Auto-detects fork relationships (upstream remote)
  - Checks push access (SSH vs HTTPS)
  - Creates separate planning repository
  - Configures auto-routing to keep planning out of PRs

- Implement team workflow wizard
  - Detects protected main branches
  - Creates sync branch if needed
  - Configures auto-commit/auto-push
  - Supports both direct and PR-based workflows

- Add comprehensive documentation
  - examples/contributor-workflow/README.md
  - examples/team-workflow/README.md
  - Updated AGENTS.md, README.md, QUICKSTART.md
  - Updated docs/MULTI_REPO_MIGRATION.md

Closes: bd-kla1, bd-twlr, bd-6z7l
Amp-Thread-ID: https://ampcode.com/threads/T-b4d124a2-447e-47d1-8124-d7c5dab9a97b
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 19:04:14 -08:00
Steve Yegge
c20aabe263 bd sync: 2025-11-05 19:03:47 2025-11-05 19:04:14 -08:00
Steve Yegge
9297cf118e Merge remote changes 2025-11-05 18:53:14 -08:00
Steve Yegge
3a28d7e6c8 bd sync: 2025-11-05 18:53:04 2025-11-05 18:53:04 -08:00
Steve Yegge
3c6f83470c feat: Vendor beads-merge 3-way merge algorithm (bd-oif6)
- Integrated @neongreen's beads-merge into internal/merge/
- Adapted to use bd's internal/types.Issue instead of custom types
- Added comprehensive tests covering merge scenarios
- Created ATTRIBUTION.md crediting @neongreen
- All tests pass

This solves:
- Multi-workspace deletion sync (bd-hv01)
- Git JSONL merge conflicts
- Field-level intelligent merging

Original: https://github.com/neongreen/mono/tree/main/beads-merge
2025-11-05 18:53:00 -08:00
Steve Yegge
349817afc9 Add multi-repo migration guide and bd migrate-issues command
- Created comprehensive migration guide at docs/MULTI_REPO_MIGRATION.md
  - Covers OSS contributor, team, multi-phase, and persona workflows
  - Step-by-step setup instructions with examples
  - Configuration reference and troubleshooting
- Implemented bd migrate-issues command
  - Move issues between repos with filtering (status/priority/labels/type)
  - Dependency preservation with upstream/downstream/closure options
  - Dry-run mode and strict validation
  - Interactive confirmation with --yes override
- Updated README.md and AGENTS.md with migration guide links

Completes: bd-c3ei, bd-mlcz
Part of epic: bd-8rd (Migration and onboarding for multi-repo)

Amp-Thread-ID: https://ampcode.com/threads/T-c5a7a780-b05e-4cc3-a7c1-5de107821b7e
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 18:44:02 -08:00
Steve Yegge
a1583a1b24 bd sync: 2025-11-05 18:43:51 2025-11-05 18:43:51 -08:00
Steve Yegge
fa38a69fcb bd sync: 2025-11-05 18:28:45 2025-11-05 18:28:45 -08:00
Steve Yegge
5438485fb8 Fix bd-9bsx: Add sync validation to prevent infinite dirty loop
- Added dbNeedsExport() to check if DB and JSONL are in sync
- Only re-export after import if DB has changes that differ from JSONL
- Prevents unconditional re-export that caused infinite dirty state
- Added comprehensive tests for sync validation

Fixes recurring dirty state after merge conflicts that plagued users for weeks.

Amp-Thread-ID: https://ampcode.com/threads/T-f4f8c8c6-07bc-4334-9109-4626b4fd7a24
Co-authored-by: Amp <amp@ampcode.com>
2025-11-05 18:10:06 -08:00
Steve Yegge
b6fad0e618 bd sync: 2025-11-05 18:09:54 2025-11-05 18:09:54 -08:00
Steve Yegge
5854bbfef7 Sync database state to JSONL 2025-11-05 17:51:46 -08:00
Steve Yegge
4f1bbdb837 Merge branch 'main' of github.com:steveyegge/beads
# Conflicts:
#	.beads/beads.jsonl
2025-11-05 17:50:59 -08:00
Steve Yegge
4b59167683 bd sync: 2025-11-05 17:50:54 2025-11-05 17:50:54 -08:00
Steve Yegge
082f5ce6f9 Update issue timestamps 2025-11-05 17:50:36 -08:00
Steve Yegge
d1e57d4388 Merge branch 'main' of github.com:steveyegge/beads
# Conflicts:
#	.beads/beads.jsonl
2025-11-05 17:47:46 -08:00
Steve Yegge
cf76fa390c bd sync: 2025-11-05 17:47:40 2025-11-05 17:47:40 -08:00