Commit Graph

8 Commits

Author SHA1 Message Date
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
Jonah Schulte f94474159b refactor: consolidate to src/bmm, delete src/modules/bmm (Option A)
Migrates all valuable content from src/modules/bmm → src/bmm and removes the
duplicate directory structure. This resolves the two-directory confusion that
caused the accidental 3-solutioning deletion.

**Content Migrated:**
-  Improved pattern files (agent-completion, security-checklist, tdd, verification, README)
  - More comprehensive content (225, 340, 184, 198 lines vs 187, 122, 93, 143)
  - Last updated Jan 27 (newer than src/bmm versions)
-  Better multi-agent-review agent counts (2/4/6 instead of 1/2/3)
  - micro: 2 agents (security + code_quality)
  - standard: 4 agents (+ architecture + testing)
  - complex: 6 agents (+ performance + domain_expert)

**Deletions:**
-  src/modules/bmm/ (66 files) - All workflows were outdated or renamed
  - batch-super-dev → batch-stories (renamed Jan 28)
  - story-pipeline → story-dev-only (renamed Jan 28)
  - super-dev-pipeline → story-full-pipeline (renamed Jan 28)

**Path Updates:**
- tools/cli/installers/lib/core/dependency-resolver.js (code + tests)
- tools/cli/lib/yaml-xml-builder.js (comment)
- tools/build-docs.js (doc URLs)
- test/unit/core/dependency-resolver*.test.js (test fixtures)
- resources/skills/bmad-guide.md (workflow references)

**Result:**
- Single canonical location: src/bmm (183 files)
- No more sync confusion
- Best content from both directories preserved
- 350/352 tests passing (2 advanced edge cases to fix later)
2026-01-28 10:55:03 -05:00
Jonah Schulte 359aa3a74f fix: resolve all test failures (56 → 0)
**Dependency Resolver Fixes:**
- Handle bmadDir being src directory itself (test scenario)
- Handle bmadDir being parent of src (production scenario)
- Add modules/bmm path resolution
- Add templates/ categorization (was missing)
- Add brain-tech CSV data categorization

**Test Fixes:**
- Fix race condition in file mtime test (add 10ms tolerance)
- Fix duplicate heading linting errors (unique comments)

**Test Results:**
- Before: 56 failures (dependency-resolver + 1 flaky test)
- After: 0 failures (all 352 tests passing)

All quality gates now pass:
 test:schemas (52 agent schema validations)
 test:install (installation component tests)
 test:unit (352 unit tests)
 validate:schemas (agent schema validation)
 lint (0 errors)
 lint:md (0 errors)
 format:check (all files formatted)
2026-01-25 23:38:33 -05:00
Brian Madison 6f8f0871cf Project Cleanup of Agents Menus, BMB module removal to other repo 2026-01-19 02:04:14 -06:00
Brian Madison 577c1aa218 remove modules moved to new repos and update installer to support the remote module isntallation and updates. this is a temporary imlemtation machanism 2026-01-15 22:20:56 -06:00
Brian Madison 8642553bd7 we only need one yaml lib 2025-12-13 18:35:07 +08:00
Brian Madison 63ef5b7bc6 installer fixes 2025-10-26 19:38:38 -05:00
Brian Madison 0a6a3f3015 feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00