reqlanOverviewIdeasFilesCode filesClustersFoldersAttributesGraphPrint

Printable idea sheet

refactor_native_planner

reqlan rq/extension/mutation/refactor_native_planner.rq:3

Katz 0.108

Move and delete edit plans are pure text in the parse crate.
The host supplies source text, destination text, and extra file texts.
It applies the returned edits and reindexes.
The planner does not read the disk, the index, or a Langium document.
refactor_symbol_move refactor_symbol_delete

implementation
mod.rs, planner.rs, idea-refactor-plan.ts, idea-extract-flow.ts
plan
goal
Native move and delete planners replace the Langium edit planners.

constraints
- Pure text. The host passes file texts.
- Edit shape matches the former Langium plans.
- Prompt, apply, and reindex stay in the extension host.

steps
1. Implement plan_idea_delete and plan_idea_move in reqlan-parse.
2. Expose them through napi and the analytical wrapper.
3. Call them from idea-extract-flow.ts.
4. Cover the former idea-refactor cases in Rust tests.
status
done
tests
plan.rs:delete_plan_removes_declaration_and_bracket_references, plan.rs:delete_plan_removes_matching_comment_references, plan.rs:move_plan_cuts_from_source_and_inserts_into_destination, plan.rs:move_plan_rewrites_qualified_comment_paths_for_the_moved_idea, plan.rs:move_plan_removes_unused_source_imports_and_copies_them_to_destination, plan.rs:move_plan_adds_a_sibling_import_on_the_destination, plan.rs:move_content_plan_leaves_a_source_stub_that_imports_the_moved_idea, idea-refactor-plan.test.ts:returns grouped edits that remove the declaration and a bracket reference, idea-refactor-plan.test.ts:inserts the idea into the destination and rewrites a qualified comment path

Interactive page: refactor_native_planner