diff --git a/scripts/scorer.sh b/scripts/scorer.sh index 0aded2b9..2f80f073 100755 --- a/scripts/scorer.sh +++ b/scripts/scorer.sh @@ -63,8 +63,9 @@ if [[ ! -d "$prompt_root" ]]; then fi entries_tmp="$(mktemp)" -trap 'rm -f "$entries_tmp" "$queue_tmp"' EXIT +trap 'rm -f "$entries_tmp" "$queue_tmp" "$report_entries_tmp"' EXIT queue_tmp="" +report_entries_tmp="" if [[ -n "$queue" && -f "$queue" ]]; then jq -r '.pending[]?.name' "$queue" | while IFS= read -r name; do @@ -120,11 +121,13 @@ if [[ "$update_queue" == true ]]; then "$ROOT/scripts/lib/queue-state.sh" init --queue "$queue" --prompts-dir "$prompt_root" >/dev/null jq '.' "$queue" >"$queue_tmp" fi - jq --argjson entries "$(printf '%s\n' "$report" | jq '.entries')" ' + report_entries_tmp="$(mktemp)" + printf '%s\n' "$report" | jq '.entries' >"$report_entries_tmp" + jq --slurpfile entries "$report_entries_tmp" ' .pending = ( .pending | map(. as $p - | ([$entries[]? | select(.name == $p.name)] | .[0]) as $s + | ([$entries[0][]? | select(.name == $p.name)] | .[0]) as $s | if $s then $p + { score: $s.score, diff --git a/src/agentdecompile_recovery/source_parity_synthesize.py b/src/agentdecompile_recovery/source_parity_synthesize.py index 482ce25e..aa782977 100755 --- a/src/agentdecompile_recovery/source_parity_synthesize.py +++ b/src/agentdecompile_recovery/source_parity_synthesize.py @@ -24,7 +24,6 @@ from typing import Any, Iterable from .package_verify import build_shim, compile_with_msvc -from .state import now ROOT = Path.cwd() DEFAULT_VC_ROOT: Path | None = None