Range-format the generated shipment quote function in
/workspace/parcelpilot/src/checkout.ts with ParcelPilot’s local LSP facade.
The approved selection is zero-based lines 44 through 65, inclusive (the
function between the generated-code sentinels). Every byte before and after
that selection is protected and must remain unchanged, as must program
behavior.
Use parcel-lsp and the contract in /workspace/parcelpilot/LSP_FACADE.md.
Confirm that range formatting is supported, open the document as TypeScript,
request exactly the approved range, and apply the returned response unchanged
only if it contains edits. Do not use full-document formatting, invoke
Prettier directly, or rewrite the selection by hand. Finish by requesting LSP
diagnostics. Keep the range response and diagnostics at
/workspace/parcelpilot/.lsp/range-response.json and
/workspace/parcelpilot/.lsp/diagnostics.json.
Create /workspace/parcelpilot/FORMAT_RESULT.md with the filename, number of
applied edits, approved line range and numbering convention, formatter reported
by the facade, diagnostic count, and one of these statuses: FORMATTED,
ALREADY FORMATTED, or NOT SUPPORTED. For this checkout, deliver canonical
generated code with zero diagnostics; if range support is absent, stop and
report NOT SUPPORTED rather than falling back to whole-file formatting.