Commit graph

1502 commits

Author SHA1 Message Date
ali
580da4cc8e
fix unit tests 2026-01-26 19:57:38 +02:00
ali
e559b6b9b4
handle repair multi-language 2026-01-26 16:41:58 +02:00
ali
7a8661ae31
fix line profiler optimizations 2026-01-26 15:19:24 +02:00
Kevin Turcios
80be7d2dae fix: resolve type errors and linting issues
- Add language parameter to split_markdown_code and group_code for JS/TS support
- Fix callable type annotation in instrument_javascript.py
- Update testgen_javascript.py to use ChatCompletionMessageParam types
- Add None checks before parse_python_version calls
- Add missing None assertions in test files
- Apply ruff auto-fixes for formatting and unused imports
2026-01-25 01:17:44 -05:00
Kevin Turcios
549f99eb97 formatting 2026-01-25 01:04:50 -05:00
Kevin Turcios
f04ac67728 merge: resolve conflicts with main
- Accept consolidated markdown utilities from common module
- Use wrap_code_in_markdown with language parameter for language support
- Remove duplicate split_markdown_code implementation
- Add validation for python_version before parsing
2026-01-25 01:00:56 -05:00
Kevin Turcios
d091cd17fe
refactor: consolidate shared utilities (#2289)
- Consolidate shared utilities into `aiservice/common/`
- Remove profanity filtering from optimization pipeline
- Add unit tests for common module
2026-01-25 00:49:48 -05:00
Kevin Turcios
df9bef20c4
refactor: remove profanity filtering from optimization pipeline (#2288)
## Summary
- Removes `profanity_regex` and `profanity_words` from
`postprocess_constants.py`
- Removes `remove_profanity_from_explanation` from the optimization
pipeline
- Removes associated test
2026-01-24 23:46:03 -05:00
Kevin Turcios
3a304aa00f
Merge branch 'main' into multi-language 2026-01-24 17:42:16 -05:00
Kevin Turcios
7aa4da74f8
feat: improve testgen import resolution and forward reference handling (#2276)
## Summary
- Add forward reference detection and automatic fix with `from
__future__ import annotations`
- Handle aliased imports and chained calls in test instrumentation
- Fix import resolution from correct module in multi-context testgen
- Allow ellipsis in Protocol/abstract method bodies
- Add dataclass constructor notes for LLM about required/positional
arguments
- Add logging to silent exception handlers

## Test plan
- [x] Unit tests added for forward reference detection
- [x] Unit tests added for dataclass constructor notes
- [x] Unit tests added for ellipsis handling in AST
- [x] Unit tests added for chained call instrumentation
- [x] Unit tests extended for add_missing_imports

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2026-01-24 17:39:38 -05:00
Aseem Saxena
b62c9dceab api veersion 2026-01-23 08:55:05 -08:00
Kevin Turcios
f534926059
more context for asyncs (#2273)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-23 05:25:24 -05:00
Kevin Turcios
8c75f238ed
Fix async crashes (#2270)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-23 00:51:35 -05:00
Kevin Turcios
2d8da15932
Acceptance reason in explanation for async (#2207)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-22 22:28:44 -05:00
Sarthak Agarwal
b095f5d9b8
Merge branch 'main' into multi-language 2026-01-23 03:34:13 +05:30
ali
7f795cf941
remove capture perf looped 2026-01-21 21:49:42 +02:00
Sarthak Agarwal
47ecce6e4f fix refinment add language param 2026-01-21 22:09:58 +05:30
Kevin Turcios
6f6b5e47e6
replace_definition_with_import as early as possible (#2264)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-20 17:42:29 -05:00
ali
3722c3db22
multi-file context support for js/ts 2026-01-20 19:34:11 +02:00
Sarthak Agarwal
56304b5669 line_profiling_changes 2026-01-20 03:58:35 +05:30
Sarthak Agarwal
229f3c8f1a add ts verification for candidate 2026-01-19 21:44:13 +05:30
Kevin Turcios
e793993d12
Merge branch 'main' into cf-1014 2026-01-19 10:58:43 -05:00
Kevin Turcios
3a79f03f0a
fix: improve test generation parsing and validation (#2259)
## Summary
- Remove unicode quote sanitization from test code validation
- Rely on individual test validation to filter out tests with syntax
errors (including unicode characters)

## Test plan
- [x] Existing tests pass
- [x] Tests with unicode quote syntax errors are correctly filtered out
during individual validation
2026-01-19 10:23:26 -05:00
Sarthak Agarwal
de7dffbb11 add debug logs 2026-01-19 18:53:13 +05:30
Kevin Turcios
48b667062b fix: exclude loop variables from test import fallback
Make get_referenced_names_from_source scope-aware by reusing
UndefinedNameCollector, preventing invalid imports like `i` and `v`
from loop variables in AI-generated tests.
2026-01-18 04:53:34 -05:00
Kevin Turcios
53baee3994
test: add normalize_code helper and update test assertions (#2255)
## Summary
- Add `normalize_code` helper in `tests/conftest.py` for comparing code
while ignoring quote style differences
- Update test assertions to use `normalize_code()` wrapper
- Add unit tests for comprehension instrumentation cases
2026-01-18 04:03:21 -05:00
Kevin Turcios
fd16c8b889
Typeagent fixes (#2256)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-18 03:58:51 -05:00
Kevin Turcios
caf48ac5c3
fix: skip instrumentation for function calls inside comprehensions (#2254)
## Summary
- Skip instrumentation for target function calls inside list/set/dict
comprehensions and generator expressions
- Fixes NameError when AI-generated tests use comprehensions like
`[func(x) for x in items]`

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2026-01-18 03:58:14 -05:00
Kevin Turcios
b64776e284
use AsyncAzureOpenAI (#2253)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-17 22:44:12 -05:00
Aseem Saxena
14d64da083
Additional Instructions for writing tests compatible with JIT compiled code (#2204)
Plan is to have it behind a jit flag (False by default, passed from cli)
until we have tested it thoroughly.
2026-01-16 10:07:49 -08:00
misrasaurabh1
d8095c7424 Make it better and work again e2e 2026-01-16 10:03:44 -08:00
misrasaurabh1
4570e219a6 fixes and refactor 2026-01-16 00:44:11 -08:00
aseembits93
1a29879603 fix 2026-01-15 21:41:09 -08:00
misrasaurabh1
eaed8a5749 jest looper 2026-01-15 21:40:57 -08:00
misrasaurabh1
4f053eae49 First e2e working version js optimizer!! 2026-01-15 20:40:03 -08:00
misrasaurabh1
0ae49fdd87 checkpoint 2026-01-15 17:31:41 -08:00
misrasaurabh1
0f2dc957d8 checkpoint 2026-01-15 17:00:01 -08:00
misrasaurabh1
1c80984933 checkpoint 2026-01-15 15:57:46 -08:00
misrasaurabh1
6f6bceb233 checkpoint 2026-01-15 15:24:07 -08:00
aseembits93
51ef6aa86b newlines 2026-01-15 12:36:45 -08:00
Aseem Saxena
be392e7808
newline 2026-01-15 12:35:26 -08:00
aseembits93
bb7b898ee3 ready to review 2026-01-15 12:33:10 -08:00
misrasaurabh1
87e09c222a wip instrumentation and execution 2026-01-15 12:13:36 -08:00
Aseem Saxena
bb7b15b27c
Merge branch 'main' into testgen-jit 2026-01-15 11:24:27 -08:00
aseembits93
fa0689c1a6 cleaning up 2026-01-15 10:52:11 -08:00
misrasaurabh1
dc36bf5c57 wip 2026-01-14 23:58:35 -08:00
misrasaurabh1
1a63515f47 Initial js support in aiservice 2026-01-14 22:15:27 -08:00
aseembits93
9c4c7126a4 cleaning up 2026-01-14 19:01:43 -08:00
aseembits93
9d9bf41858 cleaning up 2026-01-14 18:53:04 -08:00
Kevin Turcios
69b55cd319
fix: preserve nested functions in test instrumentation (#2246)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-14 21:19:24 -05:00
Kevin Turcios
dd0354883f
Handle optional filename in response (#2245)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-14 20:49:09 -05:00
Kevin Turcios
ca62d68955
fix: prompt adjustment for testgen (#2242)
## Summary
- Preserve nested functions in test instrumentation (skip instrumenting
calls inside nested function definitions)
- Prevent LLM from embedding markdown code fences in generated tests
(updated system prompts)
- Handle optional filename in python code blocks (e.g.,
`\`\`\`python:filename.py`)

## Test plan
- [x] Unit tests added for nested function preservation
- [x] Unit test for optional filename parsing
- [ ] Manual testing with generated tests
2026-01-14 20:27:43 -05:00
Kevin Turcios
286e76a9f0
fix: Improve symbol resolution for test generation (#2241)
## Summary
- Include private symbols when resolving undefined names in generated
tests
- Resolve symbols imported by source module in generated tests  
- Add fallback for symbols referenced but not defined in source snippet
- Ensure LocalDefinitionRemover only removes top-level definitions
(preserves nested classes/functions)
- Performance optimization for `get_symbols_from_source_code` function

## Test plan
- [x] Unit tests added for all new functionality
- [ ] Manual testing with generated tests

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2026-01-14 20:16:51 -05:00
Aseem Saxena
930382731d
Merge branch 'main' into testgen-jit 2026-01-14 12:03:08 -08:00
Aseem Saxena
521900af83 bug fix and latest instrumentaiton 2026-01-13 02:04:15 +00:00
Kevin Turcios
aa544dc74a
log out trace_id for debugging (#2235)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-12 20:34:36 -05:00
Kevin Turcios
d20c49ada1
CF-991 improve exception reporting for the aiservice (#2223)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2026-01-12 20:18:00 -05:00
aseembits93
7101d9c449 no need to normalize code 2026-01-12 15:59:43 -08:00
aseembits93
c58618beb5 fix for 3.12.3 2026-01-12 15:34:36 -08:00
aseembits93
4ff64cc7e8 existing tests should be fixed now 2026-01-12 15:17:26 -08:00
aseembits93
a6032c2359 need to fix existing tests 2026-01-12 14:44:10 -08:00
aseembits93
bc6a767e41 unrelated ty check fixes 2026-01-12 12:50:56 -08:00
aseembits93
0534e3d3b5 consistent quotes 2026-01-12 12:32:35 -08:00
aseembits93
80fda18800 fix tests 2026-01-12 12:15:16 -08:00
Kevin Turcios
f2f4ea88fa
Merge branch 'main' into gpu-sync-instrumentation 2026-01-10 02:56:27 -05:00
Kevin Turcios
1e1820d27a
feat: add ty type checker to pre-k hooks (#2213)
Adds a local pre-commit hook for ty type checker since there's no
official pre-commit hook available yet (tracked in astral-sh/ty#269).
2026-01-09 22:36:53 -05:00
Aseem Saxena
c2782f3d2a handle submodule imports 2026-01-09 18:46:15 -08:00
Aseem Saxena
e5ad4efd0a double quote to single 2026-01-09 15:45:19 -08:00
Aseem Saxena
282ed2bea0 double quote to single 2026-01-09 15:42:27 -08:00
Aseem Saxena
e8cc522296 prek fix 2026-01-09 15:37:57 -08:00
Aseem Saxena
5379db9c4a
Merge branch 'main' into gpu-sync-instrumentation 2026-01-09 15:32:39 -08:00
Aseem Saxena
2348566f6b working the same as cli with more tests 2026-01-09 15:22:57 -08:00
Aseem Saxena
75bd21d0c2 working the same as cli 2026-01-09 14:48:01 -08:00
Sarthak Agarwal
7bef00afa3
delete the package causing issue (#2220)
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2026-01-10 01:05:06 +05:30
Sarthak Agarwal
50fbd275d5
add backward compatibility (#2217)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-10 00:31:11 +05:30
Kevin Turcios
93519bbcbe
Merge branch 'main' into update-prompts-mini-5 2026-01-09 01:56:37 -05:00
Kevin Turcios
8afe66c376
Merge branch 'main' into gpt-5-mini 2026-01-09 01:37:19 -05:00
Kevin Turcios
fe039a1502 fix prod crashes 2026-01-09 00:49:55 -05:00
Kevin Turcios
3c8408d73b
Merge branch 'gpt-5-mini' into update-prompts-mini-5 2026-01-09 00:35:39 -05:00
Kevin Turcios
2f7a400b73
Merge branch 'main' into gpt-5-mini 2026-01-09 00:32:11 -05:00
Sarthak Agarwal
8fbe21bffa
fix review prompt v1 (#2124)
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2026-01-09 10:56:12 +05:30
Kevin Turcios
3449bba20d gpt-5-mini
gpt-5-mini is misinterpreting the template format in execute_user_prompt.md. When it sees:

  # function to test
  {function_code}

  It's outputting a nested code block with markdown path syntax (python:unstructured/staging/label_box.py) instead of the actual function code inline. It never reaches the # unit tests section where it should generate def test_* functions.
2026-01-09 00:10:12 -05:00
Kevin Turcios
c3385c79ba double max_tokens for now 2026-01-09 00:10:12 -05:00
Kevin Turcios
f393c8ce9f refresh here 2026-01-09 00:07:16 -05:00
Kevin Turcios
084af4f34d fix: restore inline prompts in ranker.py
The previous commit deleted the .md files but didn't revert the code
that loads from them, causing FileNotFoundError on server startup.
2026-01-09 00:07:15 -05:00
Kevin Turcios
d3f785156f revert changes to prompts 2026-01-09 00:07:15 -05:00
Kevin Turcios
fe0eb264a6 readjust prompt 2026-01-09 00:07:15 -05:00
Kevin Turcios
64970afae8 strenghten prompt 2026-01-09 00:07:14 -05:00
Kevin Turcios
a906d651cd use speedups 2026-01-09 00:07:14 -05:00
Kevin Turcios
00bb9756f4 re-adjust 2026-01-09 00:07:13 -05:00
Kevin Turcios
33939c62c3 move to their own md 2026-01-09 00:07:13 -05:00
Kevin Turcios
32daebf832 update prompts 2026-01-09 00:07:13 -05:00
Kevin Turcios
4f27a23623 remove temperature 2026-01-09 00:07:13 -05:00
Kevin Turcios
99bfbd980d use the centralized config 2026-01-09 00:07:12 -05:00
Kevin Turcios
1d1ec35cc3 typed dict runtime eval 2026-01-09 00:05:30 -05:00
Kevin Turcios
13af3b09a7 prek 2026-01-09 00:05:29 -05:00
Kevin Turcios
db926e785a cleanup calculate_llm_cost 2026-01-09 00:05:29 -05:00
Kevin Turcios
2d35bac4eb use GPT-5-Mini 2026-01-09 00:05:29 -05:00
Kevin Turcios
1de222fcf2 add OpenAI_GPT_5_Mini and update pricing 2026-01-09 00:05:28 -05:00
Kevin Turcios
cf6898eacf use haiku 2026-01-08 23:29:09 -05:00
Kevin Turcios
8c8d9f2c73
Merge branch 'main' into fix/add-missing-imports-postprocessing 2026-01-08 14:39:56 -05:00
Aseem Saxena
29ec4fa6a5
Merge branch 'main' into gpu-sync-instrumentation 2026-01-07 18:38:03 -08:00
HeshamHM28
50c2a61b85 Fix: Simplify _increment_llm_cost function by removing unnecessary line breaks 2026-01-08 03:24:16 +02:00
Aseem Saxena
0777cdfecc instructions to generate jit compiled code in another PR 2026-01-07 17:23:31 -08:00
HeshamHM28
5f21f8fae0 Fix: Refactor llm_cost increment logic into a separate function 2026-01-08 03:19:22 +02:00
Aseem Saxena
5e3bdccd8d testgen instructions in another commit 2026-01-07 16:58:52 -08:00
Aseem Saxena
85b308a363 cleaning up 2026-01-07 16:44:44 -08:00
HeshamHM28
96aa1305f0 Fix: Update defaults in get_or_create_optimization_event for repository_id and current_username 2026-01-08 02:41:07 +02:00
Aseem Saxena
8700af0140
Merge branch 'main' into testgen-jit 2026-01-07 16:20:10 -08:00
Aseem Saxena
bd08e1b792 simpler jax instrumentation 2026-01-07 16:16:26 -08:00
Aseem Saxena
9fb2f72a41 instrumentation for generated tests 2026-01-07 15:13:08 -08:00
Kevin Turcios
b834e7d332
Merge branch 'main' into fix/add-missing-imports-postprocessing 2026-01-07 17:30:33 -05:00
HeshamHM28
60a3c0694c
[FEAT] Privacy Mode (#2092)
Fixes CF-690

  Pull Request Checklist

  Description

  - Description of PR:

  Privacy Mode Feature for Pro Users

This PR introduces a Privacy Mode feature that allows paid users
(Pro/Enterprise) to control how their code is stored during the
optimization review process.

  Key Changes:

  1. Privacy Mode Toggle in Sidebar
    - Added a new toggle in the dashboard sidebar for Privacy Mode
- Only available for Pro/Enterprise users (disabled with upgrade prompt
for free users)
- Persists user preference in database with localStorage fallback for
fast UI
  2. Storage Strategy Based on Privacy Setting
- Privacy Mode ON: Code is stored exclusively in GitHub branches (never
cached in database)
- Privacy Mode OFF: Code is temporarily cached in database for faster
loading, cleaned up when PR is created
  3. Database Changes
    - Added privacy_mode boolean field to users table (default: false)
    - Added staging_storage_type field to track storage method
  4. API Updates
- cf-api now checks user's privacy mode when determining storage
strategy
- StagingStorageStrategyFactory considers privacy mode alongside tier
eligibility
- Added getUserPrivacyMode, setUserPrivacyMode, and isUserPaid functions


  User Experience

  - Free users see the toggle disabled with "Upgrade to Pro" messaging
  - Tooltip explains the trade-off: privacy vs. loading speed
- Toggle state syncs between localStorage (for instant UI) and database
(for persistence)

  Storage Flow

  User Request → Check Privacy Mode
├─ Privacy ON + Paid + Valid Repo → Git Branch Storage (GitHub only)
      └─ Privacy OFF or Free → Plain Text Storage (Database cache)

---------

Co-authored-by: ali <mohammed18200118@gmail.com>
Co-authored-by: Mohamed Ashraf <ashraf@codeflash.ai>
2026-01-07 12:23:45 -08:00
Kevin Turcios
795ccab1be fix: add prompt instructions to avoid Mock objects and incorrect constructors
- Do not use Mock objects for domain classes (pickling issues)
- Use correct constructor signatures from context
- Use concrete subclasses when base class is abstract
2026-01-07 14:44:11 -05:00
codeflash-ai[bot]
207f2847c6
Optimize UndefinedNameCollector.get_undefined_names
The optimization eliminates a significant performance bottleneck by moving the computation of `set(dir(builtins))` from runtime to module load time.

**What changed:**
- Introduced a module-level constant `_BUILTIN_NAMES = frozenset(dir(builtins))` 
- Replaced the repeated `builtin_names = set(dir(builtins))` call with direct reference to `_BUILTIN_NAMES`
- Used `frozenset` instead of `set` for the constant (immutable and slightly more efficient for lookups)

**Why this is faster:**
The original code calls `dir(builtins)` and creates a new set from it on every invocation of `get_undefined_names()`. The line profiler shows this single line consumed 73.3% of the function's execution time (1.68ms out of 2.29ms total). 

Python's `dir(builtins)` returns a list of ~150 builtin names, and converting this to a set requires:
1. Calling `dir()` to introspect the builtins module
2. Iterating through the list 
3. Allocating a new set and hashing each name

Since builtin names are constant for a Python process, this work is entirely redundant. By computing it once at module import time, each call to `get_undefined_names()` saves ~21.8μs per invocation (from the line profiler: 21799.7ns per hit).

**Performance impact:**
- **184% speedup** overall (1.09ms → 383μs)
- The optimized version shows 100% of time now spent on the actual set operations (name filtering), not builtin lookup
- Test results show 1350-2450% improvement for simple cases with few names, and 22-126% improvement even for large-scale tests with 1000+ names
- The optimization is particularly effective when `get_undefined_names()` is called repeatedly (as shown by the 77 hits in the profiler and multiple test invocations)

**Test case effectiveness:**
- Most effective for tests with repeated calls to `get_undefined_names()` on the same or different collector instances
- Benefits all test patterns since the builtin check happens on every call regardless of the number of user-defined names
- Even large-scale tests with 1000+ names show 22-35% improvements because the builtin lookup overhead is eliminated
2026-01-07 19:31:38 +00:00
Kevin Turcios
68a51bfcc3 fix: remove local class redefinitions and replace with imports
Instead of just adding missing imports, now also:
1. Detects classes/functions defined locally that exist in source module
2. Removes those local redefinitions
3. Adds imports for them

This ensures tests use the real classes from the source module.
2026-01-07 14:18:34 -05:00
Kevin Turcios
86f68b6ac7 fix: add postprocessing to fix missing imports in generated tests
When the LLM generates test code, it sometimes redefines classes locally
(like Element, ChunkingOptions) but forgets to import or define others
(like PreChunk), causing NameError at runtime.

This adds a postprocessing step that:
1. Detects undefined names in the generated test code
2. Checks if those names are defined in the source module
3. Adds the missing imports automatically

This is more reliable than relying on prompt instructions which the LLM
sometimes ignores.
2026-01-07 14:12:04 -05:00
Kevin Turcios
0d13635e4f not just for claude code 2026-01-06 22:21:32 -05:00
Kevin Turcios
883038bffe reference ty 2026-01-06 22:18:04 -05:00
Kevin Turcios
b10b0295fe Update AGENTS.md 2026-01-06 22:16:20 -05:00
Kevin Turcios
ff1f302e40 Create AGENTS.md 2026-01-06 22:13:44 -05:00
Kevin Turcios
c9df33526f
Merge branch 'main' into remove-print-messages 2026-01-06 18:49:26 -05:00
Kevin Turcios
9ea1afbdbf
Merge branch 'main' into remove-print-messages 2026-01-06 18:24:22 -05:00
Aseem Saxena
7feb6a19e8
Merge branch 'main' into ranker-discourage-type 2026-01-06 15:16:20 -08:00
Kevin Turcios
7f3d204ab6
Merge branch 'main' into ranker-discourage-type 2026-01-06 17:49:50 -05:00
Kevin Turcios
977f5a4348
Merge branch 'main' into unstructured-fixes 2026-01-06 17:47:55 -05:00
mashraf-222
669a1fe028
Merge branch 'main' into disable-telemetry-flag-dev 2026-01-06 21:08:36 +02:00
Kevin Turcios
5abb597996
Merge branch 'main' into unstructured-fixes 2026-01-06 13:40:51 -05:00
Kevin Turcios
7b2922807b
Merge branch 'main' into unstructured-fixes 2026-01-06 12:08:31 -05:00
mashraf-222
d0d2fb6fc6
Merge branch 'main' into disable-telemetry-flag-dev 2026-01-06 18:01:31 +02:00
ali
6060fa6701
ensures llm generates the testgen code as is a markdown code 2026-01-06 12:57:29 +02:00
ali
997f450794
default values for candidates number 2026-01-06 03:18:00 +02:00
ali
75ee24ebbf
control num of llm calls for optimize and optimize-lp 2026-01-06 02:10:51 +02:00
mashraf-222
206469f3f6
Merge branch 'main' into disable-telemetry-flag-dev 2026-01-05 19:25:10 +02:00
Aseem Saxena
c5f859fc27 device specific tests 2026-01-02 13:30:32 -08:00
Aseem Saxena
805219691d
typo 2026-01-02 12:21:39 -08:00
Aseem Saxena
0bb3c2522c
grammar 2026-01-02 10:23:09 -08:00
Aseem Saxena
3478043dad
typo 2026-01-02 10:20:40 -08:00
Aseem Saxena
8dadc322f8
Update ranking optimization guidelines in ranker.py
avoid isinstance to type conversions
2026-01-02 10:19:27 -08:00
Sarthak Agarwal
23784bdf05 Discourage the isinstance to type conversion 2026-01-02 23:01:22 +05:30
mashraf-222
59354251aa
Merge branch 'main' into disable-telemetry-flag-dev 2026-01-02 15:14:23 +02:00
Kevin Turcios
798523bc29 Add logging.exception() to API error handlers for better debugging
Replace logger.error() and debug_log_sensitive_data() with
logging.exception() in exception handlers to ensure full stack traces
are logged to console/logs, not just to Sentry.

Affected endpoints:
- /optimize: Added exception logging
- /rank: Added logging import and exception logging
- /explanations: Added logging import and exception logging
- /workflow-gen: Changed logger.error to logger.exception
2026-01-01 17:47:12 -05:00
Kevin Turcios
2095c31195 Remove print_messages debug output from testgen
Remove the print_messages function and its usage since observability
tooling is now in place. This eliminates verbose system prompt output
during test generation in non-production environments.
2026-01-01 17:42:52 -05:00
Kevin Turcios
0c81863fff
Merge branch 'main' into unstructured-fixes 2026-01-01 13:31:05 -05:00
Kevin Turcios
0b308e4cd8
Merge branch 'main' into ty-follow-up 2026-01-01 13:29:07 -05:00
Kevin Turcios
b357f9541c fix: remove unreachable code in _handle_assign method 2026-01-01 13:07:27 -05:00
ali
2c5f031145
correct type for request in adaptive api 2026-01-01 20:01:28 +02:00
ali
13cedf8f5b
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into exp/adaptive-optimization 2026-01-01 20:00:00 +02:00
ali
8cd1ecb670
ruff format 2026-01-01 17:08:52 +02:00
Kevin Turcios
441a15f137 fix: instruct LLM to import classes instead of mocking them
Generated tests were failing isinstance() checks because LLM created
mock class definitions instead of importing real ones.

Added prompt instruction to import classes from their actual modules
when file paths are shown in the context.
2026-01-01 02:03:12 -05:00
Kevin Turcios
7943f8d782 fix: track base class dependencies in unused definition removal
Added base class dependency tracking as a secondary safeguard.
When a class inherits from another, the parent is now marked as
a dependency, preventing incorrect removal.
2026-01-01 02:02:57 -05:00
Kevin Turcios
b1819ffcae fix: preserve used classes/functions in generated tests
delete_top_def_nodes was removing helper classes even when they were
actually used in test code, causing NameError at runtime.

Now collects all names referenced in the module and protects them from
deletion. This ensures base classes and instantiated classes are kept.
2026-01-01 02:02:36 -05:00
ali
fe1b523895
adaptive optimization (working version) 2026-01-01 07:34:00 +02:00
Mohamed Ashraf
d5726b5091 Merge branch 'disable-telemetry-flag-dev' of https://github.com/codeflash-ai/codeflash-internal into disable-telemetry-flag-dev 2025-12-31 02:40:55 +02:00
Mohamed Ashraf
bf120fde40 Ruff reformatted the PostHog initialization 2025-12-31 02:39:03 +02:00
mashraf-222
9922de4684
Merge branch 'main' into disable-telemetry-flag-dev 2025-12-31 02:34:31 +02:00
Mohamed Ashraf
568b70a609 add telemetry flag to be disabled in dev 2025-12-31 02:29:06 +02:00
Aseem Saxena
4d8a597747 add rewrite endpoint 2025-12-30 14:14:51 -08:00
Aseem Saxena
83278c42ee wip 2025-12-30 14:08:44 -08:00
Kevin Turcios
c4764f58a0 one 2025-12-30 16:17:35 -05:00
Kevin Turcios
23e4a29608 a few more 2025-12-30 16:03:48 -05:00
Kevin Turcios
3f2f996ff2 fix a few more 2025-12-30 15:48:07 -05:00
Kevin Turcios
15443f39eb fix issues here 2025-12-30 15:38:54 -05:00
Kevin Turcios
fb2cd82da0 narrow type hints here 2025-12-30 15:35:56 -05:00
Kevin Turcios
5174b96050 narrow type hints here too 2025-12-30 15:27:02 -05:00
Kevin Turcios
28237eb8bb move sqlalchemy, gen_inspired_tests, and mistral 2025-12-30 15:22:39 -05:00
Kevin Turcios
59d57756f1 update test expectations 2025-12-30 15:07:13 -05:00
Kevin Turcios
78fbbd54cd formatting 2025-12-30 14:55:42 -05:00
Kevin Turcios
a2c0ef6573 Merge main into ty-setup branch 2025-12-30 14:50:29 -05:00
Aseem Saxena
7c317377f2 wip 2025-12-30 10:26:57 -08:00
Aseem Saxena
4af2814eb2 wip 2025-12-30 09:54:39 -08:00
Kevin Turcios
15c2337cc0 fix the type errors in edit_generated_tests.py 2025-12-30 03:19:42 -05:00
Kevin Turcios
434abdfc66 type the pipeline 2025-12-30 03:14:07 -05:00
Kevin Turcios
5ac8c3badd context guard 2025-12-30 03:06:34 -05:00
Kevin Turcios
2d78bceb0f missed this one 2025-12-30 02:51:38 -05:00
Kevin Turcios
de89aa3ac5 fix errors related to instrument_tests 2025-12-30 02:44:28 -05:00
Kevin Turcios
140683c03d fix errors related to BaseStatement 2025-12-30 02:32:24 -05:00
Kevin Turcios
0fdade4223 fix type hints related to ChatCompletionMessageParam 2025-12-30 02:05:02 -05:00
Kevin Turcios
045e3698a5 fix models related typing errors 2025-12-30 01:58:35 -05:00
Kevin Turcios
5b91b0e047 fix these type hints 2025-12-30 01:53:44 -05:00
Kevin Turcios
3bbc45a409 Update uv.lock 2025-12-30 01:35:02 -05:00
Kevin Turcios
858c1420b2 we don't have to read it every time 2025-12-30 01:34:41 -05:00
Kevin Turcios
1d72482777 only the formatter for now 2025-12-30 01:17:06 -05:00
Kevin Turcios
214389eae2 remove unused import 2025-12-30 01:17:05 -05:00
Kevin Turcios
664c66e7c3 run the formatter 2025-12-30 01:17:03 -05:00
Kevin Turcios
9f274a4713 add ruff to the config 2025-12-30 01:17:03 -05:00
Kevin Turcios
f4a2f5afd4 refresh lockfile 2025-12-30 01:17:03 -05:00
Kevin Turcios
2d4751a2f0 add pre-k to dependencies 2025-12-30 01:17:03 -05:00
Kevin Turcios
38f3e5c683 add ty type checker 2025-12-30 01:10:26 -05:00
Kevin Turcios
36b5ae44f1 Merge branch 'main' into test_gen_for_diversity 2025-12-29 22:49:07 -05:00
ali
fd8bb922d2
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-12-29 23:27:11 +02:00
ali
14491f63ce
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-12-29 22:33:36 +02:00
Sarthak Agarwal
f5a303dd31
removing comments 2025-12-29 22:09:44 +05:30
Sarthak Agarwal
af7f00cdae For diversity in testgen 2025-12-29 22:05:09 +05:30
Kevin Turcios
262c193365 include the model name 2025-12-26 19:22:55 -05:00
Kevin Turcios
6f45e0d0f1 make ruff and ty happy 2025-12-26 18:55:45 -05:00
Kevin Turcios
0819524858 use a config file 2025-12-26 18:33:49 -05:00
Kevin Turcios
a2ddac0b29 implement multi model optimization properly 2025-12-26 18:24:16 -05:00
Kevin Turcios
2bbce5ef53 fix call sequence 2025-12-26 16:06:29 -05:00
Kevin Turcios
e9709744aa make ty happy 2025-12-26 15:29:10 -05:00
Kevin Turcios
ac566d6ad0 lefovers 2025-12-26 15:21:46 -05:00
Kevin Turcios
a03b22bab7 make these async 2025-12-26 15:10:53 -05:00
Kevin Turcios
f247e59161 simplify here too 2025-12-26 15:02:30 -05:00
Kevin Turcios
63afac1ca8 first pass 2025-12-26 14:41:21 -05:00
Kevin Turcios
2c46242165 reduce abstraction 2025-12-26 14:15:13 -05:00
Kevin Turcios
9bd728a733 prevent race condition 2025-12-25 00:22:12 -05:00
Kevin Turcios
1f686f9fb5 bugfix 2025-12-25 00:05:29 -05:00
Kevin Turcios
f0bebecc35 ensure proper cost calculation and observability 2025-12-23 18:23:36 -05:00
Kevin Turcios
97210aefb8 remove debug 2025-12-23 14:12:35 -05:00
Kevin Turcios
0407292e56 remove n=min(data.n_candidates_lp or 6, 8), 2025-12-23 14:06:53 -05:00
Kevin Turcios
06db49251f diversity 2025-12-23 12:41:09 -05:00
Kevin Turcios
4bdb5c7bb8 remove from here 2025-12-23 00:18:08 -05:00
Kevin Turcios
b7c0040a42 simplify 2025-12-22 23:57:06 -05:00
Kevin Turcios
273edff3ab unify 2025-12-22 23:51:05 -05:00
Kevin Turcios
4a7f8a10f4 oops 2025-12-22 23:38:51 -05:00
Kevin Turcios
e938448e60 unified 2025-12-22 23:28:29 -05:00
Kevin Turcios
72e0fb037b simplify things 2025-12-22 21:41:45 -05:00
Kevin Turcios
43d3115bf3 update these 2025-12-22 21:30:21 -05:00
Kevin Turcios
49d0b496f9 Update env_specific.py 2025-12-22 21:17:24 -05:00
Kevin Turcios
d63d8ca910 use azure foundry openai endpoint 2025-12-22 21:11:28 -05:00
Kevin Turcios
3b79fd8c2d add anthropic to pyproject 2025-12-22 18:29:38 -05:00
Kevin Turcios
c97e16e12a
Merge branch 'main' into claude-azure-support 2025-12-22 18:26:12 -05:00
Kevin Turcios
2d1f388f30 use AsyncAnthropicFoundry 2025-12-22 18:25:20 -05:00
Kevin Turcios
0e23952673 create AnthropicFoundry client 2025-12-22 15:13:29 -05:00
mashraf-222
75201a95ab
feat: Add optimization usage display component to dashboard and billi… (#2028)
## Add Optimization Usage Display

### Technical Changes

- **New Component**: Created `OptimizationUsageCard` component
(`js/cf-webapp/src/components/dashboard/OptimizationUsageCard.tsx`)
  - Reusable component matching existing dashboard card styling
  - Uses shadcn/ui `Progress` component for visual progress indicator
  - Responsive design with mobile-friendly layouts
- Color-coded progress bar (green/yellow < 80%, yellow 80-95%,
orange/red ≥ 95%)

- **Server Action**: Added `getSubscriptionData` server action in
`dashboard/action.ts`
- Properly handles Prisma calls on server-side (fixes browser
PrismaClient error)
  - Fetches subscription data with lazy period reset logic

- **Dashboard Integration**: Added usage card to main dashboard page
  - Displays at top of metrics section for individual users
  - Only shows for personal accounts (hidden for organization views)
  - Integrated with existing data fetching pipeline
  
<img width="1891" height="991" alt="image"
src="https://github.com/user-attachments/assets/12c4f22b-51e7-439a-8614-644b06a423b2"
/>


- **Billing Page Integration**: Added usage card to billing page
  - Positioned above subscription card for easy visibility
  - Uses existing subscription data from page props
  
<img width="1891" height="982" alt="image"
src="https://github.com/user-attachments/assets/9c603227-750f-47be-ac10-36cfec3e4b45"
/>


### User-Facing Features

Users can now see their optimization usage in a clear, visual format:

- **Usage Metrics**: Displays formatted numbers showing "X / Y"
optimizations used
- **Remaining Count**: Shows how many optimizations are still available
- **Visual Progress Bar**: Color-coded progress indicator that changes
based on usage percentage
- **Plan Information**: Badge showing current plan type (free/pro)
- **Reset Date**: Displays when the usage period resets (if available)
- **Percentage**: Shows exact percentage of usage

The component appears on both the Dashboard and Billing pages, giving
users easy access to their usage information wherever they need it.

---------

Co-authored-by: Aseem Saxena <aseem.bits@gmail.com>
Co-authored-by: HeshamHM28 <HeshamMohamedFathy@outlook.com>
Co-authored-by: Sarthak Agarwal <sarthak.saga@gmail.com>
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2025-12-22 21:02:43 +05:30
Kevin Turcios
89cc252d35 add claude 2025-12-22 03:34:07 -05:00
Kevin Turcios
d0400c0907 formatting
formatting
2025-12-22 02:59:52 -05:00
Kevin Turcios
1febc07527 sync 2025-12-22 02:55:37 -05:00
Sarthak Agarwal
a3380a2372
Observability V1 (#2101)
closes
https://linear.app/codeflash-ai/issue/CF-909/ai-observability-see-the-history-of-a-trace-id
2025-12-20 03:54:09 +05:30
ali
00f0036187
no harm still the same 2025-12-18 02:45:43 +02:00
ali
e17eb8c815
works now 2025-12-18 02:42:18 +02:00
ali
f77f9bb1e3
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-12-18 01:45:25 +02:00
Aseem Saxena
1192df12a6
feedback loop for unmatched test results (#2059)
fixes CF-932

# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: ali <mohammed18200118@gmail.com>
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2025-12-17 08:14:32 +05:30
Aseem Saxena
962febcb7a
Merge branch 'main' into v4a-diff-patches-for-optimizer-context 2025-12-12 18:08:01 -08:00
Kevin Turcios
6cc0dbf90c Update auth_middleware.py 2025-12-12 08:51:28 -05:00
Kevin Turcios
b785f80a73 make it easier on us 2025-12-12 08:44:33 -05:00
ali
1fc49e0301
organize imports 2025-12-10 14:52:15 +02:00
ali
7832b3ca2d
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-12-10 14:51:40 +02:00
ali
ae1496de6c
don't switch to single context if a diff method is being used 2025-12-10 14:49:02 +02:00
ali
1922faf0df
refactoring 2025-12-09 23:09:50 +02:00
Aseem Saxena
8cbb2d32dd minor edit 2025-12-09 15:10:23 -05:00
Aseem Saxena
ad015aefbf first draft 2025-12-09 14:51:19 -05:00
ali
a124846724
cleanup 2025-12-09 19:16:25 +02:00
mashraf-222
d4ddff44df
Github action setup with PR for CLI user (#2009)
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2025-12-08 23:18:13 +05:30
Kevin Turcios
900a6fe3fd no unittest 2025-12-03 05:22:52 -05:00
ali
80785109e9
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-11-25 22:13:17 +02:00
ali
d551245c4c
sentry capture for diff error 2025-11-25 22:11:18 +02:00
Aseem Saxena
4e5f0cdee1 fix 2025-11-25 07:58:12 -08:00
Aseem Saxena
ce9e0f4c20 fix 2025-11-24 17:48:57 -08:00
Aseem Saxena
a22153572f todo 2025-11-24 17:03:25 -08:00