@@ -1,21 +0,0 @@
1-# Agent Task: Resolve JSCPD Clones
2-
3-Your goal is to eliminate all code duplication reported by `jscpd` in the `src/` directory.
4-
5-## Instructions:
6-1. Run `bun run jscpd` to identify code clones.
7-2. Pick **one** duplication issue reported by the tool.
8-3. Refactor the code to eliminate the clone. This might involve:
9- - Extracting shared logic into a common utility function.
10- - Using loops or higher-order functions.
11- - Abstracting classes or types.
12-4. Run `bun run knip && bun run typecheck && bun run format && bun run lint && bun test` to ensure your changes did not break the project.
13-5. If the tests or checks fail, fix them before moving on.
14-6. Re-run `bun run jscpd`.
15-7. Repeat steps 2-6 until `bun run jscpd` reports 0 clones.
16-8. When 0 clones are reported, state "All jscpd clones resolved." and finish the loop.
17-
18-**Important rules**:
19-- Keep your refactoring clean and targeted. Do not rewrite large chunks of unaffected code.
20-- Ensure you do not leave dead code behind.
21-- Respect existing project style and architecture.