BMAD-METHOD/tools
Jonah Schulte 0810646ed6 fix: update dependency resolver for new src/bmm structure (fixes 2 failing tests)
Fixed all path resolution logic in dependency-resolver.js to handle the new
directory structure where bmm is directly under src/ instead of src/modules/.

**Bugs Fixed:**
1. Line 341: Strip leading slash after removing {project-root} prefix
   - `{project-root}/bmad/` became `/bmad/` which failed `startsWith('bmad/')` check

2. Lines 358, 378, 385: Use bmm/ directly instead of modules/bmm/ for explicit deps
   - Updated both direct paths and glob patterns

3. Lines 537, 549, 565: Update resolveCommandToPath for @task/@agent/@bmad refs
   - Task search now checks src/bmm/tasks/ not src/modules/bmm/tasks/
   - Agent search now checks src/bmm/agents/ not src/modules/bmm/agents/
   - Direct bmad/ paths now resolve to src/bmm/ not src/modules/bmm/

**Test Results:**
- Before: 350/352 passing (2 failing)
- After: 352/352 passing (100% )

Tests fixed:
- "should resolve bmad/bmm/tasks/task.md (module path)"
- "should resolve bmad-path for module files"
2026-01-28 11:12:06 -05:00
..
cli fix: update dependency resolver for new src/bmm structure (fixes 2 failing tests) 2026-01-28 11:12:06 -05:00
docs docs: radical reduction of documentation scope for v6 beta (#1406) 2026-01-25 14:00:26 -06:00
flattener feat: add documentation website with Docusaurus build pipeline (#1177) 2025-12-23 23:01:36 +08:00
lib feat: add documentation website with Docusaurus build pipeline (#1177) 2025-12-23 23:01:36 +08:00
maintainer feat: add Raven's Verdict PR review tool (#1054) 2025-12-07 14:13:33 -06:00
schema Project Cleanup of Agents Menus, BMB module removal to other repo 2026-01-19 02:04:14 -06:00
bmad-npx-wrapper.js fix: preserve user's cwd when running via npx 2025-10-29 09:31:38 -05:00
build-docs.js refactor: consolidate to src/bmm, delete src/modules/bmm (Option A) 2026-01-28 10:55:03 -05:00
fix-doc-links.js Add link auditor, reorganize documentation, and README update (#1277) 2026-01-10 02:55:33 +08:00
format-workflow-md.js check alignment 2025-10-22 12:36:39 -05:00
migrate-custom-module-paths.js _cfg -> _config 2025-12-13 19:41:09 +08:00
platform-codes.yaml docs: radical reduction of documentation scope for v6 beta (#1406) 2026-01-25 14:00:26 -06:00
validate-agent-schema.js we only need one yaml lib 2025-12-13 18:35:07 +08:00
validate-doc-links.js docs: radical reduction of documentation scope for v6 beta (#1406) 2026-01-25 14:00:26 -06:00
validate-svg-changes.sh Project Cleanup of Agents Menus, BMB module removal to other repo 2026-01-19 02:04:14 -06:00