Steve Yegge
1bdf6e0fbe
bd sync: 2025-11-01 12:24:02
2025-11-01 12:24:02 -07:00
Steve Yegge
94f2dc1198
WIP: Extract daemon runtime into internal/daemonrunner
...
- Created config.go with Config struct
- Created daemon.go with Daemon struct and Start/Stop methods
- Created logger.go for logging setup
- Created process.go for lock/PID management
- Created fingerprint.go for database validation
- Created flock_unix.go/flock_windows.go for platform-specific locking
- Created git.go for git operations
Still TODO:
- Implement runGlobalDaemon, startRPCServer, runSyncLoop
- Create sync.go, rpc.go, jsonl.go, validation.go
- Update cmd/bd/daemon.go to use daemonrunner
Part of bd-5f26
2025-11-01 11:47:41 -07:00
Steve Yegge
95560dc6e8
Add refactoring issues for sqlite.go and daemon.go
2025-11-01 11:41:29 -07:00
Steve Yegge
48469585b4
Close bd-2530 and bd-373c
2025-11-01 11:16:25 -07:00
Steve Yegge
d163b797e0
bd sync: 2025-11-01 11:07:43
2025-11-01 11:07:43 -07:00
Steve Yegge
fc2213dfe4
Auto-sync beads database
2025-10-31 23:46:56 -07:00
Steve Yegge
5d64c09237
bd sync: 2025-10-31 23:04:08
2025-10-31 23:04:08 -07:00
Steve Yegge
cc7918daf4
Implement bd stale command (bd-c01f, closes #184 )
...
- Add bd stale command to find abandoned/forgotten issues
- Support --days (default 30), --status, --limit, --json flags
- Implement GetStaleIssues in SQLite and Memory storage
- Add full RPC/daemon support
- Comprehensive test suite (6 tests, all passing)
- Update AGENTS.md documentation
Resolves GitHub issue #184
Amp-Thread-ID: https://ampcode.com/threads/T-f021ddb8-54e3-41bf-ba7a-071749663c1d
Co-authored-by: Amp <amp@ampcode.com >
2025-10-31 23:03:56 -07:00
Steve Yegge
645af0b72d
bd daemon sync: 2025-10-31 22:58:01
2025-10-31 22:58:01 -07:00
Steve Yegge
acb731a4ec
bd sync: 2025-10-31 22:39:53
2025-10-31 22:39:53 -07:00
Steve Yegge
c2d3ad2d63
Update issues
2025-10-31 22:08:32 -07:00
Steve Yegge
fbd3997a0e
bd sync: 2025-10-31 22:08:18
2025-10-31 22:08:32 -07:00
Steve Yegge
31a936a4b4
bd sync: 2025-10-31 22:01:19
2025-10-31 22:01:45 -07:00
Steve Yegge
520af76234
Add comprehensive tests for create.go functionality
...
- Add 10 test cases covering basic creation, descriptions, design/acceptance
- Test labels, dependencies, discovered-from, explicit IDs, assignees
- Test all issue types and multiple dependencies
- All tests passing
- Maintains 27.6% coverage in cmd/bd
Amp-Thread-ID: https://ampcode.com/threads/T-2925a09a-b56d-4a2e-b79f-2d467c76feb2
Co-authored-by: Amp <amp@ampcode.com >
2025-10-31 21:51:54 -07:00
Steve Yegge
816e7d5bfc
bd sync: 2025-10-31 21:33:25
2025-10-31 21:33:25 -07:00
Steve Yegge
58609b2611
Update JSONL with closed issues
2025-10-31 21:27:33 -07:00
Steve Yegge
0b852f52d9
Remove obsolete renumber and stale commands, fix test
...
- Remove renumber.go: Hash IDs eliminated need for ID compaction
- Remove stale.go: Executor/heartbeat tables were never implemented
- Fix TestListCommand: duplicate dependency constraint violation
- Update comments removing references to removed commands
Amp-Thread-ID: https://ampcode.com/threads/T-3dcd8681-c7d3-4fe1-9750-b38279b56cdb
Co-authored-by: Amp <amp@ampcode.com >
2025-10-31 21:27:33 -07:00
Steve Yegge
56cf62c538
bd sync: 2025-10-31 21:26:59
2025-10-31 21:26:59 -07:00
Steve Yegge
b138704179
bd sync: 2025-10-31 21:18:50
2025-10-31 21:18:50 -07:00
Steve Yegge
2e21398982
bd sync: 2025-10-31 21:16:53
2025-10-31 21:16:53 -07:00
Steve Yegge
da48cdd841
bd sync: 2025-10-31 21:08:14
2025-10-31 21:08:14 -07:00
Steve Yegge
537b646968
bd sync: 2025-10-31 20:41:33
2025-10-31 20:41:34 -07:00
Steve Yegge
dedf3c5f3a
bd sync: 2025-10-31 20:36:51
2025-10-31 20:36:51 -07:00
Steve Yegge
fbc95bcf11
bd sync: 2025-10-31 20:35:20
2025-10-31 20:35:20 -07:00
Steve Yegge
c840ba50bc
Add comprehensive tests for show.go commands (bd-12c2)
...
Added test coverage for show, update, close, and edit commands in
cmd/bd/show_test.go:
- TestShowCommand (6 subtests): single/multiple issues, JSON output,
dependencies, labels, compaction
- TestUpdateCommand (11 subtests): status, priority, title, assignee,
description, design, notes, acceptance criteria, multiple fields/issues
- TestCloseCommand (4 subtests): single/multiple issues, JSON output,
with/without reason
- TestEditCommand (1 subtest): argument validation
Key improvements:
- Properly sets global store variable to avoid "no issue found" errors
- Uses direct mode (BEADS_NO_DAEMON=1) for test isolation
- Follows existing test patterns from init_test.go and list_test.go
- All 22 test cases passing
Total cmd/bd coverage improved to 39.6%
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-31 20:29:17 -07:00
Steve Yegge
d8ff53a662
Merge remote changes
2025-10-31 20:28:58 -07:00
Steve Yegge
4fd1e20091
bd sync: 2025-10-31 20:28:38
2025-10-31 20:28:38 -07:00
Steve Yegge
b2d66b54e0
bd sync: 2025-10-31 20:21:25
2025-10-31 20:21:25 -07:00
Steve Yegge
8415639a32
bd sync: 2025-10-31 20:18:15
2025-10-31 20:18:15 -07:00
Steve Yegge
c460d00861
bd sync: 2025-10-31 20:15:58
2025-10-31 20:15:58 -07:00
Steve Yegge
7d73082d7e
Fix duplicate pollution: filter closed issues from detection
...
- Closed issues no longer appear in duplicate scans
- Prevents infinite reappearance of merged duplicates
- Deleted 29 low-value closed issues to shrink DB
- Closes bd-c577
Amp-Thread-ID: https://ampcode.com/threads/T-51165824-9559-4696-919f-2c40459d5ef9
Co-authored-by: Amp <amp@ampcode.com >
2025-10-31 19:51:44 -07:00
Steve Yegge
76069a09dc
Improve cmd/bd test coverage from 21% to 23.1% (bd-27ea)
...
Added comprehensive tests for:
- validate.go (parseChecks, validation results, orphaned deps, duplicates, git conflicts)
- restore.go (readIssueFromJSONL, git helpers)
- sync.go (git helpers, JSONL counting)
Progress: 21.0% → 23.1% (+2.1%)
Target: 40% (multi-session effort)
Amp-Thread-ID: https://ampcode.com/threads/T-540ebf64-e14f-4541-b098-586d2b07dc3e
Co-authored-by: Amp <amp@ampcode.com >
2025-10-31 19:44:43 -07:00
Steve Yegge
a753ce1e50
bd sync: 2025-10-31 19:39:20
2025-10-31 19:39:20 -07:00
Steve Yegge
b7252c1a16
bd sync: 2025-10-31 19:38:14
2025-10-31 19:38:14 -07:00
Steve Yegge
75a118b47c
bd sync: 2025-10-31 19:21:40
2025-10-31 19:21:40 -07:00
Steve Yegge
45504dde91
bd sync: 2025-10-31 19:10:08
2025-10-31 19:10:08 -07:00
Steve Yegge
4fbff148f0
bd sync: 2025-10-31 18:27:27
2025-10-31 18:27:27 -07:00
Steve Yegge
19c1c1570d
bd sync: 2025-10-31 18:05:57
2025-10-31 18:06:05 -07:00
Steve Yegge
5b342ff827
bd sync: apply rename detection from import
2025-10-31 17:56:47 -07:00
Steve Yegge
c2f7019786
bd sync: 2025-10-31 17:56:46
2025-10-31 17:56:47 -07:00
Steve Yegge
ddc04eb6f9
bd sync: 2025-10-31 17:54:26
2025-10-31 17:54:26 -07:00
Steve Yegge
48fdb3ee9c
bd sync: 2025-10-31 17:54:06
2025-10-31 17:54:06 -07:00
Steve Yegge
cbd0bf0b53
bd sync: 2025-10-31 17:54:01
2025-10-31 17:54:01 -07:00
Steve Yegge
29f77b2220
bd sync: 2025-10-31 17:53:48
2025-10-31 17:53:49 -07:00
Steve Yegge
a60ae8d2de
bd sync: 2025-10-31 17:51:09
2025-10-31 17:51:09 -07:00
Steve Yegge
dd959d09cd
bd sync: 2025-10-31 17:47:46
2025-10-31 17:47:46 -07:00
Steve Yegge
7eb315bbe0
bd sync: 2025-10-31 17:41:02
2025-10-31 17:41:04 -07:00
Steve Yegge
d5483574fd
Rebuild DB from JSONL after corruption cleanup
...
- Database had 72 duplicate issues from incomplete migration
- Sequential IDs (no content_hash) mixed with hash IDs
- Removed corrupt DB, rebuilt from JSONL (source of truth)
- 225 → 153 issues (duplicates eliminated)
- Updated config.json version to 0.20.1
2025-10-31 17:15:55 -07:00
Steve Yegge
a1b1b5b559
bd sync: 2025-10-31 17:15:49
2025-10-31 17:15:49 -07:00
Steve Yegge
33565f10db
bd sync: 2025-10-31 15:12:13
2025-10-31 15:12:13 -07:00