Commit graph

98 commits

Author SHA1 Message Date
misrasaurabh1
3f95ff604a feat: eliminate codeflash.toml — auto-detect Java config from build files
Java projects no longer need a standalone config file. Codeflash reads
config from pom.xml <properties> or gradle.properties, and auto-detects
source/test roots from build tool conventions.

Changes:
- Add parse_java_project_config() to read codeflash.* properties from
  pom.xml and gradle.properties
- Add multi-module Maven scanning: parses each module's pom.xml for
  <sourceDirectory> and <testSourceDirectory>, picks module with most
  Java files as source root, identifies test modules by name
- Route Java projects through build-file detection in config_parser.py
  before falling back to pyproject.toml
- Detect Java language from pom.xml/build.gradle presence (no config needed)
- Fix project_root for multi-module projects (was resolving to sub-module)
- Fix JFR parser / separators (JVM uses com/example, normalized to com.example)
- Fix graceful timeout (SIGTERM before SIGKILL for JFR dump + shutdown hooks)
- Remove isRecording() check from TracingTransformer (was preventing class
  instrumentation for classes loaded during serialization)
- Delete all codeflash.toml files from fixtures and code_to_optimize
- Add 33 config detection tests
- Update docs for zero-config Java setup

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 19:11:06 -07:00
misrasaurabh1
d12e631ce9 add some initial java docs 2026-03-19 00:44:29 -07:00
Mohamed Ashraf
fa9d32f1c4 Merge branch 'main' into omni-java
Resolve 7 merge conflicts from main's modular refactoring + JS improvements:

- aiservice.py: combine multi-language metadata (omni-java) with main's structure
- cmd_init.py: adopt main's modular split (init_config, init_auth, github_workflow) + add Java import
- code_replacer.py: main's clean early-return style + omni-java's non-Python single-block fallback
- version.py, test_support_dispatch.py, test_javascript_test_runner.py: take main's versions
- uv.lock: regenerated

Port Java into main's modular structure:
- Fix init_java.py lazy imports to point to new modules (init_config, init_auth, github_workflow)
- Add Java workflow support to github_workflow.py (detection, template, customization)
- Fix broken Java imports (function_optimizer, line_profiler) after main's module moves

Add safety tests for merge-critical functions:
- test_add_language_metadata.py: 10 tests covering per-language payload correctness
- test_code_replacer_matching.py: 8 tests covering fallback chain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 00:15:19 +00:00
Sarthak Agarwal
6b644faf25 update docs and sidebar index 2026-03-05 01:59:56 +05:30
Kevin Turcios
08dad4e6a4 chore: sync docs, rules, and workflows from main 2026-03-02 22:48:28 -05:00
Sarthak Agarwal
eaf6ad5860
Update FRICTIONLESS_SETUP_PLAN.md 2026-03-02 22:23:15 +05:30
Sarthak Agarwal
dfb951b945
Update JS_PROMPT_PARITY_RECOMMENDATIONS.md 2026-03-02 22:22:51 +05:30
Sarthak Agarwal
be031ce205 docs: update JS/TS docs with package manager instructions, monorepo guide, and troubleshooting
- Fix javascript-installation.mdx: remove references to nonexistent
  codeflash.config.js, use package.json config, fix supported framework
  list (only Jest/Vitest), add Python CLI requirement note
- Add package manager-specific commands (npm/yarn/pnpm/bun) throughout
- Add monorepo setup guide with workspace examples
- Add auto-detection table explaining what codeflash init detects
- Add troubleshooting for common issues (exports, framework detection,
  timeouts, TypeScript, monorepo)
- Add yarn/pnpm CI examples to GitHub Actions page with monorepo tip

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 22:10:47 +05:30
Sarthak Agarwal
3a092a28ba [WIP] Docs to JS/TS 2026-02-19 23:41:47 +05:30
misrasaurabh1
06353ea13f e2e working java 2026-01-30 10:52:45 -08:00
Aseem Saxena
d020da8294
Merge branch 'main' into jit-docs 2026-01-29 12:06:54 -08:00
Sarthak Agarwal
bcdb0ef39d
Merge branch 'main' into multi-language 2026-01-27 22:53:40 +05:30
Aseem Saxena
2dcfba6949
Merge branch 'main' into jit-docs 2026-01-26 21:16:06 -08:00
misrasaurabh1
fb320f2748 clean up docs 2026-01-26 19:09:33 -08:00
aseembits93
8c66acb450 reordering sections 2026-01-26 17:33:58 -08:00
aseembits93
ec3eed6b8a ready to review 2026-01-26 16:54:04 -08:00
aseembits93
754eb6cc5e improve gantt chart 2026-01-26 16:49:41 -08:00
aseembits93
3ab8fbbd81 almost ready 2026-01-26 16:37:23 -08:00
aseembits93
7b9d09af49 mintlify icon 2026-01-26 16:07:40 -08:00
aseembits93
2a73955861 start cleaning up 2026-01-26 15:52:15 -08:00
aseembits93
15f4b6dd0e typos 2026-01-23 18:47:08 -08:00
aseembits93
eb9b3dff1a add examples 2026-01-23 18:32:05 -08:00
aseembits93
85344f5fd4 keep editing 2026-01-22 17:26:25 -08:00
aseembits93
9fe6ef797a todo write more about the flags in torch/tensorflow and jax 2026-01-22 17:20:52 -08:00
aseembits93
454f20d6fc first draft, need to refine 2026-01-22 16:39:30 -08:00
Sarthak Agarwal
e823d06ad3
Merge branch 'main' into multi-language 2026-01-21 21:52:10 +05:30
Mohamed Ashraf
130c84afc6 docs: enhance VSCode extension documentation with new images and configuration steps
- Added images for various features including CodeLens hints, optimization tab, and completed optimizations.
- Updated configuration steps to include a visual guide for selecting project configuration.
2026-01-20 13:31:45 +02:00
Sarthak Agarwal
2f1c9feb68 doc_changes_init 2026-01-20 04:20:02 +05:30
Mohamed Ashraf
9871ce23af break down cli-reference docs to multiple pages 2026-01-16 15:20:07 +02:00
Mohamed Ashraf
03d4dcced8 update naming for CLI Reference to be Codeflash CLI 2026-01-16 15:10:09 +02:00
Mohamed Ashraf
e55a19154e add vsc extension docs 2026-01-16 14:35:24 +02:00
Mohamed Ashraf
6f84d0e32a update cli references order 2026-01-13 04:28:36 +02:00
Mohamed Ashraf
bd6b22d0b4 adding cli references page and update the left bar order 2026-01-13 04:28:24 +02:00
Mohamed Ashraf
d32e18ce5d Enhance documentation with improved formatting and additional details on configuration options, async function support, and Codeflash setup process. Update keywords for better searchability and add visual placeholders for clarity. 2026-01-13 04:28:12 +02:00
misrasaurabh1
d49ad8f6cd add image and language update 2025-12-22 17:46:47 -08:00
Sarthak Agarwal
3da7e33a1f
Update vscode.mdx 2025-11-14 19:08:57 -08:00
Sarthak Agarwal
7fae3b5639 Add VSC extension page 2025-11-12 19:48:58 -08:00
Saurabh Misra
3a0f3720b2 quick language fix
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-11-11 18:55:53 -08:00
Saurabh Misra
b28f5ab3de quick language fix
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-11-11 18:37:34 -08:00
Saurabh Misra
f2d2bd3555 fix the installation flow
Some checks are pending
CodeFlash / Optimize new Python code (pull_request) Waiting to run
E2E - Async / async-optimization (pull_request) Waiting to run
E2E - Bubble Sort Benchmark / benchmark-bubble-sort-optimization (pull_request) Waiting to run
E2E - Bubble Sort Pytest (No Git) / bubble-sort-optimization-pytest-no-git (pull_request) Waiting to run
E2E - Bubble Sort Unittest / bubble-sort-optimization-unittest (pull_request) Waiting to run
Coverage E2E / end-to-end-test-coverage (pull_request) Waiting to run
E2E - Futurehouse Structure / futurehouse-structure (pull_request) Waiting to run
E2E - Init Optimization / init-optimization (pull_request) Waiting to run
E2E - Topological Sort (Worktree) / topological-sort-worktree-optimization (pull_request) Waiting to run
E2E - Tracer Replay / tracer-replay (pull_request) Waiting to run
PR Labeler / label-workflow-changes (pull_request) Waiting to run
Mypy Type Checking for CLI / type-check-cli (pull_request) Waiting to run
/ Run pr agent on every pull request, respond to user comments (pull_request) Waiting to run
Lint / Run pre-commit hooks (pull_request) Waiting to run
unit-tests / unit-tests (3.11) (pull_request) Waiting to run
unit-tests / unit-tests (3.10) (pull_request) Waiting to run
unit-tests / unit-tests (3.12) (pull_request) Waiting to run
unit-tests / unit-tests (3.13) (pull_request) Waiting to run
unit-tests / unit-tests (3.14) (pull_request) Waiting to run
unit-tests / unit-tests (3.9) (pull_request) Waiting to run
windows-unit-tests / windows-unit-tests (pull_request) Waiting to run
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-11-11 18:33:41 -08:00
Sarthak Agarwal
334daa8b19 Change Dashboard link from Docs 2025-11-05 12:16:49 -08:00
Saurabh Misra
c03a1a4cfc better way to use posthog
Some checks are pending
CodeFlash / Optimize new Python code (pull_request) Waiting to run
E2E - Async / async-optimization (pull_request) Waiting to run
E2E - Bubble Sort Benchmark / benchmark-bubble-sort-optimization (pull_request) Waiting to run
E2E - Bubble Sort Pytest (No Git) / bubble-sort-optimization-pytest-no-git (pull_request) Waiting to run
E2E - Bubble Sort Unittest / bubble-sort-optimization-unittest (pull_request) Waiting to run
Coverage E2E / end-to-end-test-coverage (pull_request) Waiting to run
E2E - Futurehouse Structure / futurehouse-structure (pull_request) Waiting to run
E2E - Init Optimization / init-optimization (pull_request) Waiting to run
E2E - Topological Sort (Worktree) / topological-sort-worktree-optimization (pull_request) Waiting to run
E2E - Tracer Replay / tracer-replay (pull_request) Waiting to run
PR Labeler / label-workflow-changes (pull_request) Waiting to run
Mypy Type Checking for CLI / type-check-cli (pull_request) Waiting to run
/ Run pr agent on every pull request, respond to user comments (pull_request) Waiting to run
Lint / Run pre-commit hooks (pull_request) Waiting to run
unit-tests / unit-tests (3.10) (pull_request) Waiting to run
unit-tests / unit-tests (3.11) (pull_request) Waiting to run
unit-tests / unit-tests (3.12) (pull_request) Waiting to run
unit-tests / unit-tests (3.13) (pull_request) Waiting to run
unit-tests / unit-tests (3.14) (pull_request) Waiting to run
unit-tests / unit-tests (3.9) (pull_request) Waiting to run
windows-unit-tests / windows-unit-tests (pull_request) Waiting to run
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-10-24 16:25:31 -07:00
Saurabh Misra
eefe759015 add docs website js scripts
Some checks are pending
CodeFlash / Optimize new Python code (pull_request) Waiting to run
E2E - Async / async-optimization (pull_request) Waiting to run
E2E - Bubble Sort Benchmark / benchmark-bubble-sort-optimization (pull_request) Waiting to run
E2E - Bubble Sort Pytest (No Git) / bubble-sort-optimization-pytest-no-git (pull_request) Waiting to run
E2E - Bubble Sort Unittest / bubble-sort-optimization-unittest (pull_request) Waiting to run
Coverage E2E / end-to-end-test-coverage (pull_request) Waiting to run
E2E - Futurehouse Structure / futurehouse-structure (pull_request) Waiting to run
E2E - Init Optimization / init-optimization (pull_request) Waiting to run
E2E - Topological Sort (Worktree) / topological-sort-worktree-optimization (pull_request) Waiting to run
E2E - Tracer Replay / tracer-replay (pull_request) Waiting to run
PR Labeler / label-workflow-changes (pull_request) Waiting to run
Mypy Type Checking for CLI / type-check-cli (pull_request) Waiting to run
/ Run pr agent on every pull request, respond to user comments (pull_request) Waiting to run
Lint / Run pre-commit hooks (pull_request) Waiting to run
unit-tests / unit-tests (3.11) (pull_request) Waiting to run
unit-tests / unit-tests (3.12) (pull_request) Waiting to run
unit-tests / unit-tests (3.10) (pull_request) Waiting to run
unit-tests / unit-tests (3.13) (pull_request) Waiting to run
unit-tests / unit-tests (3.14) (pull_request) Waiting to run
unit-tests / unit-tests (3.9) (pull_request) Waiting to run
windows-unit-tests / windows-unit-tests (pull_request) Waiting to run
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-10-24 15:21:07 -07:00
Saurabh Misra
9c8fe2d7db revert the init selection arrow to default.
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-10-09 12:30:18 -07:00
HeshamHM28
15b842f0b6 resolve some comments
Some checks failed
CodeFlash / Optimize new Python code (pull_request) Failing after 2s
E2E - Bubble Sort Benchmark / benchmark-bubble-sort-optimization (pull_request) Failing after 2s
E2E - Bubble Sort Pytest (No Git) / bubble-sort-optimization-pytest-no-git (pull_request) Failing after 2s
E2E - Bubble Sort Unittest / bubble-sort-optimization-unittest (pull_request) Failing after 2s
Coverage E2E / end-to-end-test-coverage (pull_request) Failing after 2s
E2E - Futurehouse Structure / futurehouse-structure (pull_request) Failing after 2s
E2E - Init Optimization / init-optimization (pull_request) Failing after 2s
E2E - Topological Sort / topological-sort-optimization (pull_request) Failing after 2s
E2E - Tracer Replay / tracer-replay (pull_request) Failing after 2s
PR Labeler / label-workflow-changes (pull_request) Failing after 1s
Mypy Type Checking for CLI / type-check-cli (pull_request) Failing after 1s
/ Run pr agent on every pull request, respond to user comments (pull_request) Failing after 1s
Lint / Run pre-commit hooks (pull_request) Failing after 6s
unit-tests / unit-tests (3.10) (pull_request) Failing after 2s
unit-tests / unit-tests (3.11) (pull_request) Failing after 2s
unit-tests / unit-tests (3.12) (pull_request) Failing after 2s
unit-tests / unit-tests (3.13) (pull_request) Failing after 2s
unit-tests / unit-tests (3.9) (pull_request) Failing after 1s
2025-08-21 18:23:25 +03:00
HeshamHM28
48004c2693 fix editor image 2025-08-20 23:44:04 +03:00
HeshamHM28
099cd00fbc
Merge branch 'main' into chore/add-staging/docs 2025-08-20 23:40:20 +03:00
HeshamHM28
bd1de124c4 add images 2025-08-20 23:36:13 +03:00
Saurabh Misra
c47f28c3c4 updates
Some checks failed
CodeFlash / Optimize new Python code (pull_request) Failing after 2s
E2E - Bubble Sort Benchmark / benchmark-bubble-sort-optimization (pull_request) Failing after 1s
E2E - Bubble Sort Pytest (No Git) / bubble-sort-optimization-pytest-no-git (pull_request) Failing after 2s
E2E - Bubble Sort Unittest / bubble-sort-optimization-unittest (pull_request) Failing after 2s
Coverage E2E / end-to-end-test-coverage (pull_request) Failing after 2s
E2E - Futurehouse Structure / futurehouse-structure (pull_request) Failing after 1s
E2E - Init Optimization / init-optimization (pull_request) Failing after 2s
E2E - Topological Sort / topological-sort-optimization (pull_request) Failing after 1s
E2E - Tracer Replay / tracer-replay (pull_request) Failing after 2s
PR Labeler / label-workflow-changes (pull_request) Failing after 1s
Mypy Type Checking for CLI / type-check-cli (pull_request) Failing after 2s
/ Run pr agent on every pull request, respond to user comments (pull_request) Failing after 1s
Lint / Run pre-commit hooks (pull_request) Failing after 6s
unit-tests / unit-tests (3.10) (pull_request) Failing after 2s
unit-tests / unit-tests (3.11) (pull_request) Failing after 1s
unit-tests / unit-tests (3.12) (pull_request) Failing after 2s
unit-tests / unit-tests (3.13) (pull_request) Failing after 2s
unit-tests / unit-tests (3.9) (pull_request) Failing after 2s
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-08-20 12:04:14 -07:00
Saurabh Misra
78daf09097 Fix typo
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-08-19 22:40:39 -07:00