Commit Graph

727 Commits

Author SHA1 Message Date
Steve Yegge
18bd4f9630 bd sync: 2025-11-02 15:39:07 2025-11-02 15:39:07 -08:00
Steve Yegge
9bb293e2e1 bd sync: 2025-11-02 15:37:49 2025-11-02 15:37:49 -08:00
Steve Yegge
8c5d2373bd bd sync: 2025-11-02 15:27:00 2025-11-02 15:27:01 -08:00
Steve Yegge
46ba735cfe Set issue prefix to 'bd' 2025-11-02 15:26:29 -08:00
Steve Yegge
756e4622cf bd sync: Add bd-a101 epic and 7 child issues for separate branch support 2025-11-02 15:23:20 -08:00
Steve Yegge
7ba3fd59d3 Remove separate-branch-epic.md - filed as bd-a101 epic with 7 child issues 2025-11-02 15:22:58 -08:00
Steve Yegge
c3e3aa4949 bd sync: 2025-11-02 14:49:34 2025-11-02 14:49:34 -08:00
Steve Yegge
a488b8a082 bd sync: 2025-11-02 14:38:24 2025-11-02 14:49:27 -08:00
Steve Yegge
cb179169e4 bd sync: 2025-11-02 14:36:37 2025-11-02 14:36:37 -08:00
Steve Yegge
8997fbbbc7 Merge branch 'main' of github.com:steveyegge/beads 2025-11-02 14:31:24 -08:00
Steve Yegge
0215e73780 Fix config system: rename config.json → metadata.json, fix config.yaml loading
- Renamed config.json to metadata.json to clarify purpose (database metadata)
- Fixed config.yaml/config.json conflict by making Viper explicitly load only config.yaml
- Added automatic migration from config.json to metadata.json on first read
- Fixed jsonOutput variable shadowing across 22 command files
- Updated bd init to create both metadata.json and config.yaml template
- Fixed 5 failing JSON output tests
- All tests passing

Resolves config file confusion and makes config.yaml work correctly.
Closes #178 (global flags), addresses config issues from #193

Amp-Thread-ID: https://ampcode.com/threads/T-e6ac8192-e18f-4ed7-83bc-4a5986718bb7
Co-authored-by: Amp <amp@ampcode.com>
2025-11-02 14:31:22 -08:00
Steve Yegge
b627b0c84b bd sync: 2025-11-02 14:21:09 2025-11-02 14:21:09 -08:00
Steve Yegge
c810a494c6 bd sync: 2025-11-02 14:03:00 2025-11-02 14:03:00 -08:00
Steve Yegge
10b89d66b0 bd sync: apply rename detection from import 2025-11-02 13:11:26 -08:00
Steve Yegge
d1e022d684 bd sync: 2025-11-02 13:11:24 2025-11-02 13:11:26 -08:00
Steve Yegge
233af06c85 bd sync: apply rename detection from import 2025-11-02 12:56:00 -08:00
Steve Yegge
229b92b6a8 Merge branch 'main' of github.com:steveyegge/beads 2025-11-02 12:55:59 -08:00
Steve Yegge
dfd2ad6e75 bd sync: 2025-11-02 12:55:58 2025-11-02 12:55:58 -08:00
Steve Yegge
0cfe741553 Fix config version update in migrate command
- Save updated config with current version (fixes GH #193)
- Update version field when loading existing config
- Database version now stays in sync with binary version

Amp-Thread-ID: https://ampcode.com/threads/T-dfacc972-f6c8-4bb3-8997-faa079b5d070
Co-authored-by: Amp <amp@ampcode.com>
2025-11-02 12:55:53 -08:00
Steve Yegge
2ab65d2c79 bd sync: 2025-11-02 12:40:49 2025-11-02 12:40:49 -08:00
Steve Yegge
79fa6d2fec bd sync: 2025-11-02 12:32:23 2025-11-02 12:32:29 -08:00
Steve Yegge
130b8eee28 bd sync: apply rename detection from import 2025-11-02 12:32:00 -08:00
Steve Yegge
525b6d4a78 Merge branch 'main' of github.com:steveyegge/beads 2025-11-02 12:31:59 -08:00
Steve Yegge
4387757369 bd sync: 2025-11-02 12:31:58 2025-11-02 12:31:58 -08:00
Steve Yegge
1c5dc7fc93 bd sync: 2025-11-02 11:17:39 2025-11-02 11:17:40 -08:00
Steve Yegge
f0beba354e bd sync: apply rename detection from import 2025-11-02 10:42:12 -08:00
Steve Yegge
aea486180e Merge branch 'main' of github.com:steveyegge/beads 2025-11-02 10:42:12 -08:00
Steve Yegge
f25e06fb3a bd sync: 2025-11-02 10:42:10 2025-11-02 10:42:10 -08:00
Steve Yegge
b55c62fd06 Add missing runtime import in autoimport.go 2025-11-02 10:04:13 -08:00
Steve Yegge
1036b0b700 Fix TestMetricsSnapshot/uptime flakiness on Windows
Simplify uptime calculation to always enforce minimum of 1 second,
even if time.Since returns exactly 0 (can happen on Windows with
coarse timing). This makes the test deterministic.
2025-11-02 09:56:42 -08:00
Steve Yegge
9f9b8bbdc2 Fix Windows test failures: path handling and bd binary references
- Fix TestFindDatabasePathEnvVar to expect canonicalized absolute paths
- Add getBDCommand() helper for platform-specific bd executable paths
- Update beads_hash_multiclone_test.go to use platform-specific bd paths
- Fix cleanupWALFiles linting error (removed unused error return)
2025-11-02 09:49:39 -08:00
Steve Yegge
361f46346e bd sync: 2025-11-02 09:29:37 2025-11-02 09:29:37 -08:00
Steve Yegge
9003913847 bd sync: 2025-11-02 09:29:15 2025-11-02 09:29:15 -08:00
Steve Yegge
efd68fbfb7 bd sync: 2025-11-02 09:02:35 2025-11-02 09:02:35 -08:00
Steve Yegge
09bd4d3462 Fix CI test failures (bd-1231)
- Always recompute content_hash in importer to avoid stale hashes from JSONL
- Add .gitignore to test repos to prevent database files from being tracked
- Fix daemon auto-import test to use correct RPC operation ('show' not 'get_issue')
- Set last_import_time metadata in test helper to enable staleness check
- Add filesystem settle delay after git pull in tests

Root cause: CloseIssue updates status but not content_hash, so importer
thought issues were unchanged. Always recomputing content_hash fixes this.

Amp-Thread-ID: https://ampcode.com/threads/T-63ef3a7d-8efe-472d-97ed-6ac95bd8318b
Co-authored-by: Amp <amp@ampcode.com>
2025-11-02 08:55:34 -08:00
David Laing
50a324db85 Fix #202: Add dependency_type to bd show --json output (#203)
The JSON output from bd show now includes the dependency_type field
for both dependencies and dependents, enabling programmatic
differentiation between dependency types (blocks, related,
parent-child, discovered-from).

Implementation approach:
- Added IssueWithDependencyMetadata type with embedded Issue and
  DependencyType field
- Extended GetDependenciesWithMetadata and GetDependentsWithMetadata
  to include dependency type from SQL JOIN
- Made GetDependencies and GetDependents wrap the WithMetadata
  methods for backward compatibility
- Added scanIssuesWithDependencyType helper to handle scanning with
  dependency type field
- Updated bd show --json to use WithMetadata methods

Tests added:
- TestGetDependenciesWithMetadata - basic functionality
- TestGetDependentsWithMetadata - dependent retrieval
- TestGetDependenciesWithMetadataEmpty - edge case handling
- TestGetDependenciesWithMetadataMultipleTypes - multiple types

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Happy <yesreply@happy.engineering>
2025-11-02 08:40:10 -08:00
Steve Yegge
2b086951c4 fix: Address all errcheck and misspell linter errors 2025-11-01 23:56:03 -07:00
Steve Yegge
3a5889fc12 bd sync: apply rename detection from import 2025-11-01 23:47:33 -07:00
Steve Yegge
b8c5559359 bd sync: 2025-11-01 23:47:31 2025-11-01 23:47:32 -07:00
Steve Yegge
7032d7d8ec Refactor: separate process/lock/PID concerns into process.go (bd-d33c) 2025-11-01 23:46:01 -07:00
Steve Yegge
9d23805a26 bd sync: apply rename detection from import 2025-11-01 23:37:08 -07:00
Steve Yegge
edf1fba17a bd sync: 2025-11-01 23:37:07 2025-11-01 23:37:08 -07:00
Steve Yegge
784f7bc3bf bd sync: 2025-11-01 23:34:17 2025-11-01 23:34:17 -07:00
Steve Yegge
010525607f bd sync: 2025-11-01 23:33:09 2025-11-01 23:33:09 -07:00
Steve Yegge
ac64f9b18b bd sync: 2025-11-01 23:32:03 2025-11-01 23:32:03 -07:00
Steve Yegge
1578afff24 bd sync: apply rename detection from import 2025-11-01 23:25:56 -07:00
Steve Yegge
9e7a2dfd4e Merge branch 'main' of github.com:steveyegge/beads 2025-11-01 23:25:55 -07:00
Steve Yegge
6ec5fc1273 bd sync: 2025-11-01 23:25:54 2025-11-01 23:25:54 -07:00
Steve Yegge
83f04c9662 bd sync: 2025-11-01 23:25:13 2025-11-01 23:25:13 -07:00
Steve Yegge
88fd7b2bc2 Improve git operations: use --ff-only for pull, make commit idempotent 2025-11-01 23:00:25 -07:00