[INFRA-009] Chat command parsing #171

Closed
opened 2026-02-01 07:25:05 +00:00 by jason.woltje · 0 comments
Owner

Summary

Implement command parsing layer for chat integration. Shared across Discord, Mattermost, Slack.

Command Grammar

Actions

Action Args Description
fix Start job for issue
status Get job status
cancel Cancel running job
retry Retry failed job
verbose Enable verbose logging
quiet - Reduce notifications
help - Show help

Issue Reference Formats

Tasks

  • Create apps/api/src/bridge/parser/command-parser.service.ts
  • Implement tokenizer
  • Implement action dispatch
  • Handle error responses
  • Add unit tests for parsing

Files to Create

  • apps/api/src/bridge/parser/command-parser.service.ts
  • apps/api/src/bridge/parser/command.interface.ts
  • apps/api/src/bridge/parser/command-parser.spec.ts

Acceptance Criteria

  • All command formats are parsed correctly
  • Invalid commands return helpful error messages
  • Issue references are resolved
## Summary Implement command parsing layer for chat integration. Shared across Discord, Mattermost, Slack. ## Command Grammar - @mosaic <action> [args...] ## Actions | Action | Args | Description | |--------|------|-------------| | fix | <issue-ref> | Start job for issue | | status | <job-id> | Get job status | | cancel | <job-id> | Cancel running job | | retry | <job-id> | Retry failed job | | verbose | <job-id> | Enable verbose logging | | quiet | - | Reduce notifications | | help | - | Show help | ## Issue Reference Formats - #42 - Current repo issue - owner/repo#42 - Cross-repo issue - https://git.example.com/owner/repo/issues/42 - Full URL ## Tasks - [ ] Create apps/api/src/bridge/parser/command-parser.service.ts - [ ] Implement tokenizer - [ ] Implement action dispatch - [ ] Handle error responses - [ ] Add unit tests for parsing ## Files to Create - apps/api/src/bridge/parser/command-parser.service.ts - apps/api/src/bridge/parser/command.interface.ts - apps/api/src/bridge/parser/command-parser.spec.ts ## Acceptance Criteria - All command formats are parsed correctly - Invalid commands return helpful error messages - Issue references are resolved ## Related - Epic: #162 - Depends on: #170 (Discord module)
jason.woltje added this to the M4.2-Infrastructure (0.0.4) milestone 2026-02-01 07:25:05 +00:00
jason.woltje added the apiapiphase-3p1 labels 2026-02-01 07:25:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#171