harb/tools/push3-transpiler
openhands 34b016a190 fix: Body extraction stops at first shallow closing brace (#809)
Replace the }` heuristic in inject.sh with a brace-depth counter:
start at depth=1 after the opening {, increment on {, decrement on },
stop when depth reaches 0. This correctly handles nested if/else blocks,
loops, and structs that close at 4-space indent inside calculateParams.

Also emit a non-zero exit with a descriptive message if EOF is reached
without finding the matching closing brace.

Add test_inject_extraction.sh covering simple bodies, nested if/else,
multi-level nesting, and the EOF-without-match error case.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 00:21:06 +00:00
..
src fix: mutate.test.ts: pre-existing \isValid > stack underflow\ failure (#810) 2026-03-15 23:49:55 +00:00
inject.sh fix: Body extraction stops at first shallow closing brace (#809) 2026-03-16 00:21:06 +00:00
optimizer_seed.push3 fix: Push3 optimizer: dyadic rational input interface (8 slots) + 4-output redesign (#548) 2026-03-11 15:23:36 +00:00
optimizer_v3.push3 fix: Push3 optimizer: dyadic rational input interface (8 slots) + 4-output redesign (#548) 2026-03-11 15:23:36 +00:00
package-lock.json feat: Push3 → Solidity transpiler + OptimizerV3 port 2026-02-23 14:47:38 +00:00
package.json fix: Body extraction stops at first shallow closing brace (#809) 2026-03-16 00:21:06 +00:00
test_inject_extraction.sh fix: Body extraction stops at first shallow closing brace (#809) 2026-03-16 00:21:06 +00:00
tsconfig.json feat: Push3 → Solidity transpiler + OptimizerV3 port 2026-02-23 14:47:38 +00:00