Skip to content

refactor(adf): split bundler into manifest.ts and merger.ts#18

Merged
SmartBrandStrategies merged 1 commit intomainfrom
refactor/split-bundler
Mar 3, 2026
Merged

refactor(adf): split bundler into manifest.ts and merger.ts#18
SmartBrandStrategies merged 1 commit intomainfrom
refactor/split-bundler

Conversation

@SmartBrandStrategies
Copy link
Copy Markdown
Contributor

Summary

Closes #8.

  • Extract manifest parsing, trigger resolution, and module routing into manifest.ts (~175 LOC)
  • Extract pure document merge logic and token estimation into merger.ts (~85 LOC)
  • Slim bundler.ts to thin orchestration shell (~125 LOC, down from 413)
  • Re-export parseManifest and resolveModules from bundler for backward compatibility
  • All existing bundler.test.ts tests pass unchanged (imports via re-exports)
  • 18 new focused unit tests for manifest.test.ts and merger.test.ts

Test plan

  • pnpm run build — TypeScript compiles clean
  • pnpm run test — 233 tests pass (215 existing + 18 new)
  • Pre-commit LOC ceilings pass (bundler_loc: 125/500)
  • No external API changes — @stackbilt/adf exports unchanged

🤖 Generated with Claude Code

Extract manifest parsing + trigger resolution into manifest.ts and pure
merge logic + token estimation into merger.ts. bundler.ts remains as a
thin orchestration shell with re-exports for backward compatibility.

All 233 tests pass (215 existing unchanged + 18 new focused tests).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SmartBrandStrategies SmartBrandStrategies merged commit c4e37a5 into main Mar 3, 2026
4 checks passed
@SmartBrandStrategies SmartBrandStrategies deleted the refactor/split-bundler branch March 3, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(adf): split bundler orchestration from pure merge logic

2 participants