storkit: create 414_story_loc_command_filters_out_known_huge_files

This commit is contained in:
dave
2026-03-27 15:14:08 +00:00
parent c046edebda
commit 8ac8cdba88
2 changed files with 19 additions and 29 deletions
@@ -1,29 +0,0 @@
---
name: "Split slack.rs into focused modules"
---
# Refactor 413: Split slack.rs into focused modules
## Current State
- TBD
## Desired State
Refactor the monolithic server/src/chat/transport/slack.rs (1902 lines) into a slack/ directory with focused modules, mirroring the whatsapp/ module structure from story 409.
## Acceptance Criteria
- [ ] slack.rs is replaced by a slack/ directory with mod.rs re-exporting all public types
- [ ] meta.rs contains SlackTransport struct, ChatTransport trait impl, and Slack API request/response types
- [ ] commands.rs contains incoming message dispatch, permission logic, and slash command handling
- [ ] format.rs contains markdown_to_slack() conversion
- [ ] history.rs contains load_slack_history(), save_slack_history(), and SlackHistoryDump
- [ ] verify.rs contains verify_slack_signature(), sha256(), and constant_time_eq()
- [ ] mod.rs contains Slack event types, webhook handlers, and SlackWebhookContext
- [ ] All existing tests are preserved and pass in their respective modules
- [ ] No public API changes — all existing imports from other crates continue to work
## Out of Scope
- TBD
@@ -0,0 +1,19 @@
---
name: "loc command filters out known-huge files"
---
# Story 414: loc command filters out known-huge files
## User Story
As a ..., I want ..., so that ...
## Acceptance Criteria
- [ ] loc command excludes lockfiles and generated files (e.g. package-lock.json, Cargo.lock, frontend/package-lock.json) from results
- [ ] Exclusion list is defined as a constant, easy to extend
- [ ] Excluded files do not count toward line totals
## Out of Scope
- TBD