feat(gateway): CommandRegistryService + CommandExecutorService (P8-010) #178

Merged
jason.woltje merged 1 commits from feat/p8-010-command-registry into main 2026-03-16 02:10:32 +00:00
Owner

Summary

  • Adds CommandRegistryService with onModuleInit registering 12 core commands (model, thinking, new, clear, compact, retry, rename, history, export, preferences, status, help)
  • Adds CommandExecutorService routing command:execute socket events to per-command handlers
  • Adds CommandsModule exporting both services
  • Wires ChatGateway: emits commands:manifest on connection, handles command:execute and emits command:result
  • Updates AppModule and ChatModule to import CommandsModule
  • Unit tests for CommandRegistryService (6 tests)

Closes #163

Test plan

  • pnpm typecheck — 32/32 tasks passed
  • pnpm lint — 18/18 tasks passed
  • pnpm format:check — all files pass Prettier
  • pnpm test — 41/41 tests passed (6 new CommandRegistryService tests)
  • Pre-push hook enforced all gates

🤖 Generated with Claude Code

Fixes #163

## Summary - Adds CommandRegistryService with onModuleInit registering 12 core commands (model, thinking, new, clear, compact, retry, rename, history, export, preferences, status, help) - Adds CommandExecutorService routing command:execute socket events to per-command handlers - Adds CommandsModule exporting both services - Wires ChatGateway: emits commands:manifest on connection, handles command:execute and emits command:result - Updates AppModule and ChatModule to import CommandsModule - Unit tests for CommandRegistryService (6 tests) Closes #163 ## Test plan - [x] pnpm typecheck — 32/32 tasks passed - [x] pnpm lint — 18/18 tasks passed - [x] pnpm format:check — all files pass Prettier - [x] pnpm test — 41/41 tests passed (6 new CommandRegistryService tests) - [x] Pre-push hook enforced all gates 🤖 Generated with Claude Code Fixes #163
jason.woltje added 1 commit 2026-03-16 02:10:22 +00:00
feat(gateway): CommandRegistryService + CommandExecutorService (P8-010)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
e0f3983e0f
Adds gateway-side command registry system:
- CommandRegistryService with onModuleInit registering 12 core commands
- CommandExecutorService routing command:execute socket events
- CommandsModule exporting both services
- ChatGateway wired: emits commands:manifest on connect, handles command:execute
- AppModule and ChatModule updated to import CommandsModule
- Unit tests for CommandRegistryService (6 tests, all passing)

Closes #163

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje merged commit a4bb563779 into main 2026-03-16 02:10:32 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#178