Files
beads/cmd/bd
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
..
2025-10-27 20:08:50 -07:00
2025-10-31 22:39:53 -07:00
2025-10-25 18:13:49 -07:00
2025-10-31 22:38:39 -07:00
2025-10-31 22:39:53 -07:00
2025-10-27 20:08:50 -07:00
2025-10-27 20:08:50 -07:00
2025-10-31 22:39:53 -07:00
2025-10-31 22:39:53 -07:00
2025-10-27 20:08:50 -07:00
2025-11-01 23:49:55 -07:00