[ve] Déjà Code rules, utility extractions & test coverage#7974
Merged
paullewis merged 1 commit intobreadboard-ai:mainfrom Feb 23, 2026
Merged
[ve] Déjà Code rules, utility extractions & test coverage#7974paullewis merged 1 commit intobreadboard-ai:mainfrom
paullewis merged 1 commit intobreadboard-ai:mainfrom
Conversation
📊 Coverage Report
🌟 More lines covered than before. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Introduces the Déjà Code pattern — detecting repeated multi-statement code and
paving it with shared utilities + ESLint rules. Also adds unit tests for the
previously untested
app-screen.tsprogress engine and fixes two typos.Why
Two independent 20-line blocks in
create-chiclets.tsandcreate-truncated-value.tsimplemented identical LLM content summarizationlogic, and
layout-graph.tshad an inlinegroupBythat duplicated a commonpattern. Extracting these into shared utilities with enforcing ESLint rules
prevents the patterns from drifting back. The
app-screen.tsmodule powers allprogress bars but had zero direct unit tests.
Changes
Déjà Code infrastructure
.agent/README.md— new agent practices index.agent/deja-code.md— Déjà Code concept docs.agent/workflows/deja-code.md— slash-command workflow.agent/rules/breadboard.md— updated memory ruleseslint.config.js— register two newdeja-code-*rulesUtility extractions + ESLint rules
src/utils/summarize-llm-content.ts[NEW] — extracted LLM contentsummarization
eslint-rules/deja-code-prefer-summarize-llm-content.js[NEW] — enforcesusage
src/utils/group-by.ts[NEW] — extracted genericgroupByeslint-rules/deja-code-prefer-group-by.js[NEW] — enforces usagecreate-chiclets.ts,create-truncated-value.ts— refactored to usesummarizeLLMContentValuelayout-graph.ts— refactored to usegroupByTests
tests/utils/summarize-llm-content.test.ts[NEW] — tests for theextraction
tests/utils/group-by.test.ts[NEW] — tests forgroupBytests/sca/utils/app-screen.test.ts[NEW] — 20 tests forcreateAppScreen,setScreenDuration,tickScreenProgressBug fixes
decode-error.ts— "volate" → "violate" (user-facing error copy)serialization.ts— "Serilialized" → "Serialized" (internal types)Testing
node --test dist/tsc/tests/sca/utils/app-screen.test.js— 20/20 passnode --test dist/tsc/tests/utils/group-by.test.js— verifygroupBytestspass
node --test dist/tsc/tests/utils/summarize-llm-content.test.js— verifysummarize tests pass
npx eslintto verify new rules flag inline patterns