diff --git a/.storkit/work/1_backlog/414_story_loc_command_filters_out_known_huge_files.md b/.storkit/work/1_backlog/414_story_loc_command_filters_out_known_huge_files.md deleted file mode 100644 index c58d1621..00000000 --- a/.storkit/work/1_backlog/414_story_loc_command_filters_out_known_huge_files.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -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 diff --git a/.storkit/work/5_done/413_refactor_split_slack_rs_into_focused_modules.md b/.storkit/work/5_done/413_refactor_split_slack_rs_into_focused_modules.md new file mode 100644 index 00000000..2fec643a --- /dev/null +++ b/.storkit/work/5_done/413_refactor_split_slack_rs_into_focused_modules.md @@ -0,0 +1,29 @@ +--- +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