Skip to content

Commit 12cded7

Browse files
Merge branch 'multi-language' of github.com:codeflash-ai/codeflash into multi-language
2 parents 742f4aa + bcdb0ef commit 12cded7

67 files changed

Lines changed: 3730 additions & 6683 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/mypy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ jobs:
2222

2323
- name: Install uv
2424
uses: astral-sh/setup-uv@v6
25-
with:
26-
version: "0.5.30"
2725

2826
- name: sync uv
2927
run: |
28+
uv venv --seed
3029
uv sync
3130
3231

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,3 +261,7 @@ WARP.MD
261261
tessl.json
262262
**/node_modules/**
263263
/dist-nuitka/main.dist/*
264+
packages/codeflash/.npmrc
265+
266+
# Tessl auto-generates AGENTS.md on install; ignore to avoid cluttering git status
267+
AGENTS.md

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ else:
8888
- Commit message body should be concise (1-2 sentences max)
8989
- PR titles should also use conventional format
9090

91+
<!-- Section below is auto-generated by `tessl install` - do not edit manually -->
92+
9193
# Agent Rules <!-- tessl-managed -->
9294

9395
@.tessl/RULES.md follow the [instructions](.tessl/RULES.md)
96+
97+
@AGENTS.md

code_to_optimize_js/codeflash.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

code_to_optimize_js/package-lock.json

Lines changed: 325 additions & 312 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_to_optimize_js/package.json

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,14 @@
44
"description": "Sample JavaScript project for codeflash optimization testing",
55
"main": "index.js",
66
"scripts": {
7-
"test": "jest",
8-
"test:coverage": "jest --coverage"
7+
"test": "jest"
98
},
109
"codeflash": {
1110
"moduleRoot": ".",
12-
"testsRoot": "tests",
13-
"language": "javascript",
14-
"formatterCmds": [
15-
"npx prettier --write $file"
16-
]
11+
"testsRoot": "tests"
1712
},
18-
"keywords": [
19-
"codeflash",
20-
"optimization",
21-
"testing"
22-
],
23-
"author": "CodeFlash Inc.",
24-
"license": "BSL 1.1",
2513
"devDependencies": {
26-
"@codeflash/jest-runtime": "file:../packages/jest-runtime",
14+
"codeflash": "file:../packages/codeflash",
2715
"jest": "^29.7.0",
2816
"jest-junit": "^16.0.0"
2917
},
@@ -32,10 +20,6 @@
3220
"testMatch": [
3321
"**/tests/**/*.test.js"
3422
],
35-
"collectCoverageFrom": [
36-
"*.js",
37-
"!jest.config.js"
38-
],
3923
"reporters": [
4024
"default",
4125
[
@@ -50,6 +34,6 @@
5034
},
5135
"dependencies": {
5236
"@msgpack/msgpack": "^3.1.3",
53-
"better-sqlite3": "^12.6.0"
37+
"better-sqlite3": "^12.6.2"
5438
}
5539
}

code_to_optimize_js/tests/e2e-behavior-comparison.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ const fs = require('fs');
1616
const path = require('path');
1717
const { execSync, spawn } = require('child_process');
1818

19-
// Import our modules directly for the comparison phase
20-
const { serialize, deserialize, getSerializerType } = require('../codeflash-serializer');
21-
const { comparator } = require('../codeflash-comparator');
19+
// Import our modules from npm package
20+
const { serialize, deserialize, getSerializerType, comparator } = require('codeflash');
2221

2322
// Test output directory
2423
const TEST_OUTPUT_DIR = '/tmp/codeflash_e2e_test';

code_to_optimize_js/tests/e2e-comparison-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
const fs = require('fs');
1212
const path = require('path');
1313

14-
// Import our modules
15-
const { serialize } = require('../codeflash-serializer');
16-
const { readTestResults, compareResults } = require('../codeflash-compare-results');
14+
// Import our modules from npm package
15+
const { serialize, readTestResults, compareResults } = require('codeflash');
1716

1817
// Try to load better-sqlite3
1918
let Database;

code_to_optimize_js/tests/integration-behavior-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ const fs = require('fs');
1515
const path = require('path');
1616
const { execSync } = require('child_process');
1717

18-
// Import our modules
19-
const { serialize, deserialize, getSerializerType } = require('../codeflash-serializer');
20-
const { comparator } = require('../codeflash-comparator');
18+
// Import our modules from npm package
19+
const { serialize, deserialize, getSerializerType, comparator } = require('codeflash');
2120

2221
// Test configuration
2322
const TEST_DIR = '/tmp/codeflash_integration_test';

code_to_optimize_js/tests/looping-test/looped-perf.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
* and timing data is aggregated across runs for stability checking.
77
*/
88

9-
const path = require('path');
10-
11-
// Load the codeflash helper from the project root
12-
const codeflash = require(path.join(__dirname, '..', '..', 'codeflash-jest-helper.js'));
9+
// Load the codeflash helper from npm package
10+
const codeflash = require('codeflash');
1311

1412
// Simple function to test
1513
function fibonacci(n) {

0 commit comments

Comments
 (0)