From 8ac8cdba881564132ca8df9810f16a60c83b30e8 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 27 Mar 2026 15:14:08 +0000 Subject: [PATCH] storkit: create 414_story_loc_command_filters_out_known_huge_files --- ...tor_split_slack_rs_into_focused_modules.md | 29 ------------------- ...oc_command_filters_out_known_huge_files.md | 19 ++++++++++++ 2 files changed, 19 insertions(+), 29 deletions(-) delete mode 100644 .storkit/work/1_backlog/413_refactor_split_slack_rs_into_focused_modules.md create mode 100644 .storkit/work/1_backlog/414_story_loc_command_filters_out_known_huge_files.md diff --git a/.storkit/work/1_backlog/413_refactor_split_slack_rs_into_focused_modules.md b/.storkit/work/1_backlog/413_refactor_split_slack_rs_into_focused_modules.md deleted file mode 100644 index 2fec643a..00000000 --- a/.storkit/work/1_backlog/413_refactor_split_slack_rs_into_focused_modules.md +++ /dev/null @@ -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 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 new file mode 100644 index 00000000..c58d1621 --- /dev/null +++ b/.storkit/work/1_backlog/414_story_loc_command_filters_out_known_huge_files.md @@ -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