Skip to content

refactor: extract tool definitions into modular structure (BL-041)#53

Merged
tryweb merged 5 commits intomainfrom
feat/bl-041-tool-registration-modularization
Mar 31, 2026
Merged

refactor: extract tool definitions into modular structure (BL-041)#53
tryweb merged 5 commits intomainfrom
feat/bl-041-tool-registration-modularization

Conversation

@tryweb
Copy link
Copy Markdown
Owner

@tryweb tryweb commented Mar 31, 2026

Summary

  • Extract 26 tool definitions from src/index.ts (1626 lines) into modular files
  • Created src/tools/ directory with memory.ts, feedback.ts, episodic.ts
  • Reduced src/index.ts to ~620 lines
  • All tests pass

Changes

  • Split tools by domain: memory (19), feedback (4), episodic (5)
  • Added src/tools/index.ts for re-exports
  • Updated imports in src/index.ts

Verification

  • TypeScript compilation: ✅ passed
  • Docker tests: ✅ passed
  • Plugin loads correctly: ✅ verified

Backlog Status

  • docs/backlog.md: BL-041 status updated to done
  • docs/roadmap.md: BL-041 checkbox marked done

tryweb added 5 commits March 31, 2026 16:01
- Split 26 tools from src/index.ts into src/tools/ modules
- Created memory.ts (20 tools), feedback.ts (4 tools), episodic.ts (5 tools)
- Added index.ts re-exports for backward compatibility
- Removed ~1000 lines from index.ts (1626 → 620 lines)
- Updated imports and tool wiring in index.ts
- Verified TypeScript compilation and tests pass
@tryweb tryweb merged commit ca59169 into main Mar 31, 2026
9 checks passed
@tryweb tryweb deleted the feat/bl-041-tool-registration-modularization branch March 31, 2026 09:31
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.

1 participant