Kevin Turcios
eceac13fc3
Merge remote-tracking branch 'origin/main' into omni-java
...
# Conflicts:
# .claude/rules/architecture.md
# .claude/rules/code-style.md
# .github/workflows/claude.yml
# .github/workflows/duplicate-code-detector.yml
# codeflash/api/aiservice.py
# codeflash/cli_cmds/console.py
# codeflash/cli_cmds/logging_config.py
# codeflash/code_utils/deduplicate_code.py
# codeflash/discovery/discover_unit_tests.py
# codeflash/languages/base.py
# codeflash/languages/code_replacer.py
# codeflash/languages/javascript/mocha_runner.py
# codeflash/languages/javascript/support.py
# codeflash/languages/python/support.py
# codeflash/optimization/function_optimizer.py
# codeflash/verification/parse_test_output.py
# codeflash/verification/verification_utils.py
# codeflash/verification/verifier.py
# packages/codeflash/package-lock.json
# packages/codeflash/package.json
# tests/languages/javascript/test_support_dispatch.py
# tests/test_codeflash_capture.py
# tests/test_languages/test_javascript_test_runner.py
# tests/test_multi_file_code_replacement.py
2026-03-04 01:52:32 -05:00
Kevin Turcios
19bd6e4bad
test: sync test files from main (safe, main-only changes)
...
34 test files updated with main's refactored tests for new language
support protocol, JS/TS improvements, and code context extraction.
2026-03-02 15:25:50 -05:00
Kevin Turcios
04a94f2b03
test: update tests for refactored language support
...
- Update discover_functions calls to new (source, file_path) signature
- Use language-specific FunctionOptimizer subclasses in tests
- Add explicit utf-8 encoding to read_text()/write_text() for Windows
- Fix pytest fixture in TestTsJestSkipsConversion (was __init__)
- Update nonexistent file tests for source-based discover_functions
- Remove unused imports
2026-03-02 06:09:06 -05:00
Kevin Turcios
f747b66252
missed there
2026-02-23 05:52:43 -05:00
Kevin Turcios
a96918766f
refactor: replace jedi_definition with definition_type on FunctionSource
...
Store only the type string instead of the full Jedi Name object,
removing the need for arbitrary_types_allowed and the runtime
dependency on jedi in the model layer.
2026-02-10 04:57:10 -05:00
Kevin Turcios
0170ccb361
update assertions
2026-01-29 05:33:16 -05:00
misrasaurabh1
198487bf81
format and lint all
2026-01-29 01:39:48 -08:00
ali
4b41ab73bf
fix: unit tests
2025-09-25 04:10:25 +03:00
ali
5981d75b3e
use markdown context for the testgen
2025-09-25 03:31:05 +03:00
Alvin Ryanputra
e9d6bd12a8
cleaned up comments and removed unused old file
2025-03-11 16:15:07 -07:00
Alvin Ryanputra
302e919941
Modified testgen context to be a codestring instead of markdown
2025-03-10 16:15:34 -07:00
Alvin Ryanputra
7d33b948b0
Merge branch 'refs/heads/main' into testgen-context-improvement
...
# Conflicts:
# codeflash/context/code_context_extractor.py
# tests/test_get_read_writable_code.py
2025-03-05 16:50:10 -08:00
Alvin Ryanputra
17a42a218c
Implemented testgen context retrieval. Context retrieved is the union of read-writable code and read-only code. Did some refactors to remove code_to_optimize_with_helpers, and updated tests.
2025-03-05 16:40:23 -08:00
Kevin Turcios
d28031f174
ruff check .
2025-02-28 19:21:22 -08:00
Alvin Ryanputra
8e8258a99f
shifted PR to new repo. refactors optimizer code into a FunctionOptimizer class
2025-02-13 16:10:53 +08:00
Alvin Ryanputra
c41f710f5f
Modified code replacer to work file by file. now compatible with new code context extractor.
2025-01-08 14:56:53 -08:00
Alvin Ryanputra
645029b324
Improved belongs_to logic by using jedi's .parent()
2024-12-26 11:30:29 -08:00
Alvin Ryanputra
cbf4a3bfa7
fixed bug where functions in list comprehensions in methods were not being discovered.
2024-12-23 15:27:03 -08:00
RD
695911583a
Removing Returns dependency.
2024-12-16 15:33:48 -08:00
Saurabh Misra
3758d5aa45
fix function discovery when function is called within a list comprehension
2024-12-06 19:34:40 -08:00
Saurabh Misra
9172c6b9d4
WIP changes
2024-10-29 16:39:47 -07:00
Saurabh Misra
d455cdee1a
Ruff reformat and fix all the python files
...
Set minimum libcst version to be 1.0.1
move the stub files to dev dependencies
2024-10-25 15:45:44 -07:00
Saurabh Misra
d8f72da903
fix the tests
2024-10-23 18:55:24 -07:00
Kevin Turcios
87bfc79f39
ruff's
...
ruff format
ruff run
2024-10-12 19:43:48 -05:00
Saurabh Misra
757bd74efc
The method to optimize should be at the end of the code snippet
2024-07-19 18:14:35 -07:00
Saurabh Misra
5f68cbdca3
Recursive methods are duplicated in the code context
2024-07-18 18:57:23 -07:00
Saurabh Misra
d28396b52d
Fix the actual bug
2024-07-06 15:26:13 -07:00
Saurabh Misra
0b63da2e2a
Remove the Source dataclass
2024-07-06 12:45:11 -07:00
RD
dd1e7dd399
Fixing terminology, adding an example for function, class and module naming terminology.
2024-07-05 21:06:30 -07:00
Saurabh Misra
78bf917aa1
Introduce a new dataclass FunctionSource to allow for more attributes and prevent future bugs
2024-07-05 19:58:33 -07:00
RD
812c3ce720
Adding test for future decorator helper fix
2024-06-24 13:53:05 -07:00
RD
a4552dfb41
Revert "Adding test for future decorator helper fix"
...
This reverts commit e106b203fe .
2024-06-24 13:44:16 -07:00
RD
e106b203fe
Adding test for future decorator helper fix
2024-06-24 13:40:36 -07:00
RD
a55eeb417a
Fixing latest helper method dupe issues
2024-06-09 05:30:06 -07:00
Saurabh Misra
85c354dd93
Fix bugs, fix tests, discover new bugs...
2024-05-31 21:32:08 -07:00
Saurabh Misra
eb17cb876f
Fix the final bug finally
2024-05-19 00:36:15 -04:00
Saurabh Misra
131333ebc5
Rename the term "dependent_function" to "helper_function"
2024-05-18 22:00:23 -04:00
Saurabh Misra
328035464f
Fix the dependent function qualified name,
...
simplify
2024-05-18 21:15:42 -04:00
Saurabh Misra
41438f7dbf
repro the failure
2024-05-18 19:41:51 -04:00
Saurabh Misra
cf88e2b7d0
Make cli and django all RUFF and TUFF
2024-04-17 19:41:00 -07:00
renaud
933dc626b5
Fixing schema of dependent "functions" coming from type annotations
2024-02-29 19:09:50 -08:00
renaud
7431d3a983
Type clean-up.
2024-02-06 00:50:27 -08:00
renaud
2a57ea3a29
Gathering of data needed to create multi-file PR with optimized dependent functions in their original modules.
2024-02-05 07:23:14 -08:00
Saurabh Misra
66020b789a
Fix Recursive functions using themselves as a functional dependency. They should not anymore.
2024-01-31 14:53:34 -08:00
afik.cohen
677a299f6e
Move aiservice to django/aiservice
2024-01-02 16:55:24 -08:00
afik.cohen
bc50e0d8cb
Move codeflash python code base to cli/
2023-12-29 18:37:49 -08:00