├── .nvmrc
├── favicon.png
├── vitest-setup.js
├── .aidigestignore
├── src
├── tests
│ ├── hello-world
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ ├── derived
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ ├── each
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ ├── effect
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ ├── snippets
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ ├── counter
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ ├── inspect
│ │ ├── prompt.md
│ │ ├── Reference.svelte
│ │ └── test.ts
│ ├── props
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
│ └── derived-by
│ │ ├── Reference.svelte
│ │ ├── prompt.md
│ │ └── test.ts
├── utils
│ ├── prompt.ts
│ ├── code-cleaner.ts
│ ├── ensure-dirs.ts
│ ├── retry-wrapper.ts
│ ├── humaneval.ts
│ ├── model-validator.ts
│ ├── code-cleaner.test.ts
│ ├── retry-wrapper.test.ts
│ ├── humaneval.spec.ts
│ ├── test-runner.ts
│ ├── file.ts
│ └── test-manager.ts
└── llms
│ ├── google.ts
│ ├── anthropic.ts
│ ├── ollama.ts
│ ├── openai.ts
│ ├── index.ts
│ ├── zai.ts
│ ├── moonshot.ts
│ └── openrouter.ts
├── .prettierrc
├── .prettierignore
├── vite.config.js
├── .gitignore
├── tsconfig.json
├── .github
└── workflows
│ ├── test-build.yml
│ └── build-static.yml
├── package.json
├── .env.example
├── CLAUDE.md
├── merge-v1.ts
├── verify.ts
├── merge.ts
├── README.md
├── benchmarks
└── v1
│ └── v1-benchmark-results-2025-05-25T20-01-22.048Z.json
└── index.ts
/.nvmrc:
--------------------------------------------------------------------------------
1 | 24
--------------------------------------------------------------------------------
/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/khromov/svelte-bench/HEAD/favicon.png
--------------------------------------------------------------------------------
/vitest-setup.js:
--------------------------------------------------------------------------------
1 | // console.log("Ran vitest-setup.js");
2 | import "@testing-library/jest-dom/vitest";
3 |
--------------------------------------------------------------------------------
/.aidigestignore:
--------------------------------------------------------------------------------
1 | benchmarks
2 | .github
3 | tmp
4 | context
5 | src/tests/derived*
6 | src/tests/each
7 | src/tests/effect
8 | src/tests/hello-world
9 | src/tests/inspect
10 | src/tests/snippets
--------------------------------------------------------------------------------
/src/tests/hello-world/Reference.svelte:
--------------------------------------------------------------------------------
1 |
Number: {number}
14 |Doubled: {doubled}
15 | 16 |Number: {number}
18 |Doubled: {doubled}
19 | 20 |Number: {number}
23 |Doubled: {doubled}
24 | 25 |Number: {number}
23 |Doubled: {doubled}
24 | 25 |Current text: "{text}"
22 |Character count: {text.length}
23 |Current text: "{text}"
34 |Character count: {charCount}
35 |Count: {countValue}
15 | 16 | 17 | {#if showDetails} 18 |Name is {name}
20 |Count is {countValue}
21 |ShowDetails is {showDetails}
22 |Words: {textStats.wordCount}
29 |Characters: {textStats.charCount}
30 |31 | Status: {textStats.isLongText ? "Long text" : "Short text"} 32 |
33 |Words: 0
32 |Characters: 0
33 |Status: Short text
34 |Count: 0
26 | 27 | 28 |Name is World
30 |Count is 0
31 |ShowDetails is true
32 |