Kevin Turcios
f43ee06859
refactor: restructure codebase for locality and faster CLI startup
...
Move files closer to their consumers:
- function_context.py merged into code_context_extractor.py
- FunctionOptimizer base class to languages/function_optimizer.py
- test_runner, instrument_codeflash_capture, parse_line_profile to languages/python/
- oauth_handler.py to cli_cmds/
Split cmd_init.py (1993 lines) into focused modules:
- init_config.py: config types, validation, writing, shared UI
- init_auth.py: API key management + GitHub app installation
- github_workflow.py: GitHub Actions workflow generation
- cmd_init.py: init orchestrator + Python setup (639 lines)
Defer heavy imports (cmd_init, posthog, sentry) from module-level to
usage sites, reducing CLI startup from ~600ms to ~250ms. Replace
set_defaults(func=) with direct args.command dispatch in main().
2026-03-07 08:21:27 -05:00
KRRT7
64a18c9870
refactor: use helper file for async decorator instrumentation
...
Replace inline code injection with a helper file approach that writes
decorator implementations to a separate codeflash_async_wrapper.py file.
This removes the codeflash package import dependency from instrumented
source files while keeping line numbers stable (only 1 import + 1
decorator line added, same as before).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 08:17:08 +00:00
KRRT7
325ec7d741
refactor: inline async decorators to remove codeflash import dependency
...
Instead of injecting `from codeflash.code_utils.codeflash_wrap_decorator import ...`
into instrumented source files, inject the decorator function definitions directly.
This removes the hard dependency on the codeflash package being importable at runtime
in the target environment, matching the pattern already used for sync instrumentation.
2026-02-18 06:30:16 +00:00
misrasaurabh1
198487bf81
format and lint all
2026-01-29 01:39:48 -08:00
Kevin Turcios
2e34d83c52
remove test_framework from pyproject.toml ( #955 )
...
* follow up
* remove requirement
* Delete uv.lock
* refresh uv-lock
* first pass
* cleanup test_framework here
* cleanup
* code_review
* cleanup tests
* fix for E2E
* fix tests dir missing
* one more cleanup
* cancel-in-progress
* Revert "cancel-in-progress"
This reverts commit f4bb9079cb .
* not needed here
* lower threshold and cleanup comments
* debug
* temp
* debug
Revert "debug"
This reverts commit fc3655149486c8b980e245e97b8304232086f08d.
fix(discover): Fix pytest discovery for futurehouse structure
Revert "fix(discover): Fix pytest discovery for futurehouse structure"
This reverts commit 40c48882b7413f5876af0e2e08d8f17a65bab091.
Reapply "debug"
This reverts commit c8297e57fbdca2462a8ca1199657748b8bc225e9.
Revert "not needed here"
This reverts commit dd2c5cdf76 .
Revert "lower threshold and cleanup comments"
This reverts commit 0e2f57e292 .
Reapply "lower threshold and cleanup comments"
This reverts commit e3b24f4a2967551eca8a19f96bf6647b23acdbbc.
Reapply "not needed here"
This reverts commit aec32103c931ff6d57dfa0d012113c2cec5d37a7.
Revert "Reapply "debug""
This reverts commit 77ab9f34f858a17fb29764c544769a0eb72ce7f0.
Reapply "fix(discover): Fix pytest discovery for futurehouse structure"
This reverts commit 506b94ab4fe17a7c8e0d458253812758cced3f22.
feat(futurehouse): Make futurehouse structure pytest compatible
* Revert "debug"
This reverts commit 271c5a37ec .
* Revert "temp"
This reverts commit b363acda1c .
* Revert "debug"
This reverts commit ac29b6beb3 .
* just for now
2025-12-09 02:53:08 -08:00
Kevin Turcios
ef69713b24
refactor how async decorators are applied at source site ( #897 )
...
* 5%
* better reporting for throughput
* first pass
* improve reporting for async optimizations
* remove some deduplication
* simplify usage
* refactor add_async_decorator_to_function
* doesn't even work
* fix mypy complants
* handle libcst exception
* fix type checking
* revert config
2025-11-17 20:19:56 +00:00
Kevin Turcios
fe90acf977
no windows for now
2025-09-30 01:12:12 +00:00
Kevin Turcios
fa705e1b5e
first pass
2025-09-26 13:53:15 -07:00