Datasets:
Add 10000 GitHub Trending pr_diff environments (part 81)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/open-telemetry__opentelemetry-proto-643/tests/test.sh +25 -0
- tasks/open-telemetry__opentelemetry-proto-643/tests/verifier.py +737 -0
- tasks/open-telemetry__opentelemetry-proto-644/environment/Dockerfile +37 -0
- tasks/open-telemetry__opentelemetry-proto-644/instruction.md +11 -0
- tasks/open-telemetry__opentelemetry-proto-644/solution/patch.diff +207 -0
- tasks/open-telemetry__opentelemetry-proto-644/solution/solve.sh +6 -0
- tasks/open-telemetry__opentelemetry-proto-644/task.toml +68 -0
- tasks/open-telemetry__opentelemetry-proto-644/tests/capture.py +96 -0
- tasks/open-telemetry__opentelemetry-proto-644/tests/instruction.md +11 -0
- tasks/open-telemetry__opentelemetry-proto-644/tests/oracle.patch +207 -0
- tasks/open-telemetry__opentelemetry-proto-644/tests/test.sh +25 -0
- tasks/open-telemetry__opentelemetry-proto-644/tests/verifier.py +737 -0
- tasks/open-telemetry__opentelemetry-proto-649/environment/Dockerfile +37 -0
- tasks/open-telemetry__opentelemetry-proto-649/instruction.md +14 -0
- tasks/open-telemetry__opentelemetry-proto-649/solution/patch.diff +141 -0
- tasks/open-telemetry__opentelemetry-proto-649/solution/solve.sh +6 -0
- tasks/open-telemetry__opentelemetry-proto-649/task.toml +68 -0
- tasks/open-telemetry__opentelemetry-proto-649/tests/capture.py +96 -0
- tasks/open-telemetry__opentelemetry-proto-649/tests/instruction.md +14 -0
- tasks/open-telemetry__opentelemetry-proto-649/tests/oracle.patch +141 -0
- tasks/open-telemetry__opentelemetry-proto-649/tests/test.sh +25 -0
- tasks/open-telemetry__opentelemetry-proto-649/tests/verifier.py +737 -0
- tasks/open-telemetry__opentelemetry-proto-650/environment/Dockerfile +37 -0
- tasks/open-telemetry__opentelemetry-proto-650/instruction.md +11 -0
- tasks/open-telemetry__opentelemetry-proto-650/solution/patch.diff +186 -0
- tasks/open-telemetry__opentelemetry-proto-650/solution/solve.sh +6 -0
- tasks/open-telemetry__opentelemetry-proto-650/task.toml +69 -0
- tasks/open-telemetry__opentelemetry-proto-650/tests/capture.py +96 -0
- tasks/open-telemetry__opentelemetry-proto-650/tests/instruction.md +11 -0
- tasks/open-telemetry__opentelemetry-proto-650/tests/oracle.patch +186 -0
- tasks/open-telemetry__opentelemetry-proto-650/tests/test.sh +25 -0
- tasks/open-telemetry__opentelemetry-proto-650/tests/verifier.py +737 -0
- tasks/open-telemetry__opentelemetry-proto-653/environment/Dockerfile +37 -0
- tasks/open-telemetry__opentelemetry-proto-653/instruction.md +15 -0
- tasks/open-telemetry__opentelemetry-proto-653/solution/patch.diff +27 -0
- tasks/open-telemetry__opentelemetry-proto-653/solution/solve.sh +6 -0
- tasks/open-telemetry__opentelemetry-proto-653/task.toml +68 -0
- tasks/open-telemetry__opentelemetry-proto-653/tests/capture.py +96 -0
- tasks/open-telemetry__opentelemetry-proto-653/tests/instruction.md +15 -0
- tasks/open-telemetry__opentelemetry-proto-653/tests/oracle.patch +27 -0
- tasks/open-telemetry__opentelemetry-proto-653/tests/test.sh +25 -0
- tasks/open-telemetry__opentelemetry-proto-653/tests/verifier.py +737 -0
- tasks/open-telemetry__opentelemetry-proto-658/environment/Dockerfile +37 -0
- tasks/open-telemetry__opentelemetry-proto-658/instruction.md +129 -0
- tasks/open-telemetry__opentelemetry-proto-658/solution/patch.diff +1467 -0
- tasks/open-telemetry__opentelemetry-proto-658/solution/solve.sh +6 -0
- tasks/open-telemetry__opentelemetry-proto-658/task.toml +69 -0
- tasks/open-telemetry__opentelemetry-proto-658/tests/capture.py +96 -0
- tasks/open-telemetry__opentelemetry-proto-658/tests/instruction.md +129 -0
- tasks/open-telemetry__opentelemetry-proto-658/tests/oracle.patch +1467 -0
tasks/open-telemetry__opentelemetry-proto-643/tests/test.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
mkdir -p /logs/verifier
|
| 6 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json /logs/verifier/reward-details.json
|
| 7 |
+
CAPTURE_DIR="$(mktemp -d)" || exit 1
|
| 8 |
+
trap 'rm -rf -- "$CAPTURE_DIR"' EXIT
|
| 9 |
+
if ! python3 -I "$SCRIPT_DIR/capture.py" /workspace 3ee8e6aab7b5fcf2d183f40be55c0723dcc88ce8 > "$CAPTURE_DIR/predicted.patch"; then
|
| 10 |
+
echo "0.0" > /logs/verifier/reward.txt
|
| 11 |
+
printf '%s' '{"final_reward": 0.0, "evaluation_status": "graded", "eval_trustworthy": false, "capture_status": "error"}' > /logs/verifier/reward-details.json
|
| 12 |
+
exit 0
|
| 13 |
+
fi
|
| 14 |
+
rm -f /logs/verifier/predicted.patch
|
| 15 |
+
cp -- "$CAPTURE_DIR/predicted.patch" /logs/verifier/predicted.patch
|
| 16 |
+
: 'START_VERIFY_OUTPUT'
|
| 17 |
+
if ! python3 -I "$SCRIPT_DIR/verifier.py" \
|
| 18 |
+
"$SCRIPT_DIR/oracle.patch" \
|
| 19 |
+
"$CAPTURE_DIR/predicted.patch" \
|
| 20 |
+
"$SCRIPT_DIR/instruction.md"; then
|
| 21 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json
|
| 22 |
+
printf '%s' '{"final_reward": null, "reward": null, "evaluation_status": "ungraded", "eval_trustworthy": false, "verifier_status": "error"}' > /logs/verifier/reward-details.json
|
| 23 |
+
fi
|
| 24 |
+
: 'END_VERIFY_OUTPUT'
|
| 25 |
+
exit 0
|
tasks/open-telemetry__opentel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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_diff tasks (6-component reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. Generation emits
|
| 5 |
+
its source as ``tests/verifier.py``. Harbor delivers it at verify time,
|
| 6 |
+
and ``tests/test.sh`` invokes it with the oracle, predicted patch and instruction.
|
| 7 |
+
|
| 8 |
+
Reward = weighted sum of 6 components (5 deterministic + 1 required LLM):
|
| 9 |
+
|
| 10 |
+
format_valid (0 or 1) — predicted parses as a unified diff (guard)
|
| 11 |
+
size_sanity ([0, 1]) — min(oracle_loc, pred_loc) / max(...)
|
| 12 |
+
catches "rampage through the codebase"
|
| 13 |
+
file_targeting ([0, 1]) — F1 over changed-file sets (NOT Jaccard —
|
| 14 |
+
symmetric penalty over-punishes extras)
|
| 15 |
+
region_overlap ([0, 1]) — predicted hunks overlap oracle hunks
|
| 16 |
+
(strongest spatial-localization signal)
|
| 17 |
+
similarity ([0, 1]) — SequenceMatcher ratio over +/- lines only
|
| 18 |
+
(no free credit for context lines)
|
| 19 |
+
llm_judge ([0, 1] or null) — an LLM rates "does this address the issue?"
|
| 20 |
+
Anthropic Haiku by default; any OpenAI-
|
| 21 |
+
compatible server via ``R2E_JUDGE_ENDPOINT``.
|
| 22 |
+
null when the judge is unavailable
|
| 23 |
+
(no key or model, network, unreadable
|
| 24 |
+
reply) → ungraded, no reward file; a
|
| 25 |
+
reply without a valid score (refusal,
|
| 26 |
+
content filter, empty, no "score") → a
|
| 27 |
+
graded 0
|
| 28 |
+
|
| 29 |
+
Default weights: 0.00 / 0.08 / 0.12 / 0.20 / 0.10 / 0.50 (retuned from
|
| 30 |
+
the original 0.05 / 0.05 / 0.10 / 0.20 / 0.20 / 0.40 after a 23-task
|
| 31 |
+
pilot — see the comment block above ``_DEFAULT_WEIGHTS`` below).
|
| 32 |
+
Override per-task via ``task.toml.metadata`` or per-run via env vars
|
| 33 |
+
``R2E_W_FORMAT`` / ``R2E_W_SIZE`` / ``R2E_W_FILE`` / ``R2E_W_REGION`` /
|
| 34 |
+
``R2E_W_SIM`` / ``R2E_W_JUDGE`` (pass via harbor ``--ve`` so they
|
| 35 |
+
reach the verifier container).
|
| 36 |
+
|
| 37 |
+
Judge routing, also via ``--ve``: ``R2E_JUDGE_MODEL`` picks the model
|
| 38 |
+
(default Haiku); ``R2E_JUDGE_ENDPOINT`` points at an OpenAI-compatible
|
| 39 |
+
server (vLLM, Ollama, a gateway) and switches the request to
|
| 40 |
+
``<endpoint>/chat/completions`` with a bearer token from
|
| 41 |
+
``R2E_JUDGE_API_KEY`` — or a placeholder when unset, since self-hosted
|
| 42 |
+
servers ignore it. ``ANTHROPIC_API_KEY`` is only read on the default
|
| 43 |
+
route and is never sent to a custom endpoint.
|
| 44 |
+
|
| 45 |
+
Final reward is clipped to [0, 1] and additionally clamped to ≤ 0.40
|
| 46 |
+
when ``size_sanity < 0.10`` (catastrophic-size hard cap — stops a
|
| 47 |
+
charitable judge from inflating scores on wildly wrong-sized patches).
|
| 48 |
+
|
| 49 |
+
Outputs (mirrors `_pr_runtime_verifier.py` after #75):
|
| 50 |
+
/logs/verifier/reward.txt — single float (Harbor reads this);
|
| 51 |
+
graded runs only
|
| 52 |
+
/logs/verifier/reward-details.json — full component breakdown + status
|
| 53 |
+
(structured diagnostics; Harbor's `reward.json` schema is flat-numeric-
|
| 54 |
+
only, so the breakdown goes to the `reward-details.json` sidecar which
|
| 55 |
+
Harbor renders under Verifier Logs → Rewards)
|
| 56 |
+
|
| 57 |
+
Pure stdlib — uses only ``difflib``, ``json``, ``os``, ``re``,
|
| 58 |
+
``urllib``, ``sys``. The same module is imported by the unit tests
|
| 59 |
+
under ``tests/test_pr_diff_verifier.py`` so the in-container behavior
|
| 60 |
+
stays in lockstep with what we test.
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
from __future__ import annotations
|
| 64 |
+
|
| 65 |
+
import argparse
|
| 66 |
+
import difflib
|
| 67 |
+
import json
|
| 68 |
+
import math
|
| 69 |
+
import os
|
| 70 |
+
import re
|
| 71 |
+
import sys
|
| 72 |
+
import urllib.error
|
| 73 |
+
import urllib.request
|
| 74 |
+
|
| 75 |
+
# ---------------------------------------------------------------------------
|
| 76 |
+
# Parsing helpers (shared by multiple components)
|
| 77 |
+
# ---------------------------------------------------------------------------
|
| 78 |
+
|
| 79 |
+
_DIFF_HEADER_RE = re.compile(r"^diff --git a/(\S+) b/(\S+)$")
|
| 80 |
+
_HUNK_HEADER_RE = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@")
|
| 81 |
+
_FILE_MARKER_RE = re.compile(r"^(?:---|\+\+\+) ")
|
| 82 |
+
_INDEX_RE = re.compile(r"^index ")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def file_paths(diff: str) -> set[str]:
|
| 86 |
+
"""Return the set of ``b/<path>`` paths touched by a unified diff."""
|
| 87 |
+
paths: set[str] = set()
|
| 88 |
+
for line in diff.splitlines():
|
| 89 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 90 |
+
if m:
|
| 91 |
+
paths.add(m.group(2))
|
| 92 |
+
return paths
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def hunk_ranges(diff: str) -> dict[str, list[tuple[int, int]]]:
|
| 96 |
+
"""For each touched file, return list of (start_line, end_line) ranges
|
| 97 |
+
on the **post-change** side (the ``+`` numbers in ``@@ -X +Y @@``).
|
| 98 |
+
"""
|
| 99 |
+
out: dict[str, list[tuple[int, int]]] = {}
|
| 100 |
+
current_file: str | None = None
|
| 101 |
+
for line in diff.splitlines():
|
| 102 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 103 |
+
if m:
|
| 104 |
+
current_file = m.group(2)
|
| 105 |
+
out.setdefault(current_file, [])
|
| 106 |
+
continue
|
| 107 |
+
m = _HUNK_HEADER_RE.match(line)
|
| 108 |
+
if m and current_file is not None:
|
| 109 |
+
new_start = int(m.group(3))
|
| 110 |
+
new_count = int(m.group(4) or "1")
|
| 111 |
+
end = new_start + max(new_count - 1, 0)
|
| 112 |
+
out[current_file].append((new_start, end))
|
| 113 |
+
return out
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def _normalize_changes_only(diff: str) -> list[str]:
|
| 117 |
+
"""Return the +/- lines (the actual changes) for similarity scoring.
|
| 118 |
+
|
| 119 |
+
Drops:
|
| 120 |
+
- ``diff --git`` / ``index abc..def`` metadata
|
| 121 |
+
- ``@@ ... @@`` hunk markers (volatile line numbers)
|
| 122 |
+
- context lines (no +/- prefix) — these are unchanged code, scoring
|
| 123 |
+
them inflates similarity for trivial patches
|
| 124 |
+
Keeps file-marker lines (``--- a/foo`` / ``+++ b/foo``) so file identity
|
| 125 |
+
stays in the comparison; normalizes off the tab+timestamp suffix git
|
| 126 |
+
sometimes appends.
|
| 127 |
+
"""
|
| 128 |
+
out: list[str] = []
|
| 129 |
+
for line in diff.splitlines():
|
| 130 |
+
if _DIFF_HEADER_RE.match(line) or _INDEX_RE.match(line):
|
| 131 |
+
continue
|
| 132 |
+
if _HUNK_HEADER_RE.match(line):
|
| 133 |
+
continue
|
| 134 |
+
if _FILE_MARKER_RE.match(line):
|
| 135 |
+
out.append(line.split("\t")[0].strip())
|
| 136 |
+
continue
|
| 137 |
+
# +/- lines (actual changes)
|
| 138 |
+
if line.startswith("+") or line.startswith("-"):
|
| 139 |
+
out.append(line)
|
| 140 |
+
return out
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
# ---------------------------------------------------------------------------
|
| 144 |
+
# Reward components
|
| 145 |
+
# ---------------------------------------------------------------------------
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def format_valid(predicted: str) -> float:
|
| 149 |
+
"""1.0 if the predicted text looks like a unified diff; else 0.0.
|
| 150 |
+
|
| 151 |
+
Requires both a ``diff --git`` header and at least one real +/- line
|
| 152 |
+
(not the ``---`` / ``+++`` file-marker lines).
|
| 153 |
+
"""
|
| 154 |
+
if not predicted.strip():
|
| 155 |
+
return 0.0
|
| 156 |
+
has_header = False
|
| 157 |
+
has_change = False
|
| 158 |
+
for line in predicted.splitlines():
|
| 159 |
+
if _DIFF_HEADER_RE.match(line):
|
| 160 |
+
has_header = True
|
| 161 |
+
elif (line.startswith("+") or line.startswith("-")) and not line.startswith(
|
| 162 |
+
("+++ ", "--- ")
|
| 163 |
+
):
|
| 164 |
+
has_change = True
|
| 165 |
+
if has_header and has_change:
|
| 166 |
+
return 1.0
|
| 167 |
+
return 0.0
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def file_targeting(oracle: str, predicted: str) -> float:
|
| 171 |
+
"""F1 over the changed-file sets.
|
| 172 |
+
|
| 173 |
+
Why F1 instead of Jaccard:
|
| 174 |
+
- Missing an oracle file (FN) is a *big* failure.
|
| 175 |
+
- Touching one unrelated extra file (FP) is a small one.
|
| 176 |
+
- Jaccard punishes both equally, which over-penalizes the agent
|
| 177 |
+
for any extra exploration.
|
| 178 |
+
- F1 weights TP twice, giving partial credit when the agent finds
|
| 179 |
+
most-but-not-all of the oracle files even with some noise.
|
| 180 |
+
|
| 181 |
+
Returns 1.0 if both sides touch zero files (degenerate).
|
| 182 |
+
"""
|
| 183 |
+
o = file_paths(oracle)
|
| 184 |
+
p = file_paths(predicted)
|
| 185 |
+
if not o and not p:
|
| 186 |
+
return 1.0
|
| 187 |
+
tp = len(o & p)
|
| 188 |
+
fn = len(o - p)
|
| 189 |
+
fp = len(p - o)
|
| 190 |
+
if tp == 0:
|
| 191 |
+
return 0.0
|
| 192 |
+
# F1 = 2·TP / (2·TP + FN + FP)
|
| 193 |
+
return (2 * tp) / (2 * tp + fn + fp)
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def _count_loc_changes(diff: str) -> int:
|
| 197 |
+
"""Number of real +/- lines (excluding file-marker lines)."""
|
| 198 |
+
n = 0
|
| 199 |
+
for line in diff.splitlines():
|
| 200 |
+
if (line.startswith("+") or line.startswith("-")) and not line.startswith(("+++ ", "--- ")):
|
| 201 |
+
n += 1
|
| 202 |
+
return n
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def size_sanity(oracle: str, predicted: str) -> float:
|
| 206 |
+
"""Penalize predicted patches that are wildly larger / smaller than the oracle.
|
| 207 |
+
|
| 208 |
+
Returns ``min(oracle_loc, predicted_loc) / max(oracle_loc, predicted_loc)``.
|
| 209 |
+
Both empty → 1.0 (degenerate but well-defined). One empty → 0.0.
|
| 210 |
+
|
| 211 |
+
This is the "don't rampage through the codebase" guard — a 200-line
|
| 212 |
+
diff for a 3-line oracle scores ~0.015 here even if every other
|
| 213 |
+
component looks OK.
|
| 214 |
+
"""
|
| 215 |
+
o_loc = _count_loc_changes(oracle)
|
| 216 |
+
p_loc = _count_loc_changes(predicted)
|
| 217 |
+
if o_loc == 0 and p_loc == 0:
|
| 218 |
+
return 1.0
|
| 219 |
+
if o_loc == 0 or p_loc == 0:
|
| 220 |
+
return 0.0
|
| 221 |
+
return min(o_loc, p_loc) / max(o_loc, p_loc)
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def region_overlap(oracle: str, predicted: str, *, slack_lines: int = 5) -> float:
|
| 225 |
+
"""For each oracle hunk, did the predicted diff edit a line within
|
| 226 |
+
``slack_lines`` of that hunk in the same file?
|
| 227 |
+
|
| 228 |
+
Returns the fraction of oracle hunks that have at least one matching
|
| 229 |
+
predicted hunk. ``slack_lines`` tolerates slight line-number drift
|
| 230 |
+
when git diff renders the predicted hunk at a different offset.
|
| 231 |
+
"""
|
| 232 |
+
o_ranges = hunk_ranges(oracle)
|
| 233 |
+
p_ranges = hunk_ranges(predicted)
|
| 234 |
+
total = sum(len(v) for v in o_ranges.values())
|
| 235 |
+
if total == 0:
|
| 236 |
+
return 1.0 # oracle has no hunks (degenerate)
|
| 237 |
+
matched = 0
|
| 238 |
+
for fname, ranges in o_ranges.items():
|
| 239 |
+
p_in_file = p_ranges.get(fname, [])
|
| 240 |
+
for o_start, o_end in ranges:
|
| 241 |
+
for p_start, p_end in p_in_file:
|
| 242 |
+
# Interval overlap with slack — max(starts) <= min(ends) + slack
|
| 243 |
+
if max(o_start, p_start) <= min(o_end, p_end) + slack_lines:
|
| 244 |
+
matched += 1
|
| 245 |
+
break
|
| 246 |
+
return matched / total
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
def similarity(oracle: str, predicted: str) -> float:
|
| 250 |
+
"""SequenceMatcher ratio over +/- lines only.
|
| 251 |
+
|
| 252 |
+
No free credit for context lines — fixes the v0.8.1 inflation where a
|
| 253 |
+
one-line fix scored ~0.7 just because the 3 context lines on either
|
| 254 |
+
side were "matched".
|
| 255 |
+
"""
|
| 256 |
+
if not predicted.strip():
|
| 257 |
+
return 0.0
|
| 258 |
+
o = _normalize_changes_only(oracle)
|
| 259 |
+
p = _normalize_changes_only(predicted)
|
| 260 |
+
if not o:
|
| 261 |
+
return 0.0
|
| 262 |
+
# Exact matching is quadratic-or-worse on repeated lines: 200 x 2,000
|
| 263 |
+
# identical changed lines take ~2 s, 500 x 5,000 take ~35 s, which can
|
| 264 |
+
# run the verifier past Harbor's timeout. Above this many line pairs,
|
| 265 |
+
# fall back to difflib's popular-element heuristic, which stays fast.
|
| 266 |
+
exact = len(o) * len(p) <= _SIMILARITY_EXACT_PAIRS
|
| 267 |
+
return difflib.SequenceMatcher(a=o, b=p, autojunk=not exact).ratio()
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
_SIMILARITY_EXACT_PAIRS = 400_000
|
| 271 |
+
|
| 272 |
+
# A predicted patch over 10x the oracle's changed lines is already a
|
| 273 |
+
# catastrophic size mismatch (size_sanity < 0.10). Past this floor such a
|
| 274 |
+
# patch is a graded 0 instead of being scored, so one huge file can't slow
|
| 275 |
+
# the verifier past its timeout and turn a failing episode into a dropped,
|
| 276 |
+
# ungraded one. The byte cap stops it from being read at all.
|
| 277 |
+
_MAX_PREDICTED_FACTOR = 10
|
| 278 |
+
_MAX_PREDICTED_FLOOR_LOC = 1_000
|
| 279 |
+
_MAX_PREDICTED_BYTES = 16 * 1024 * 1024
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
def predicted_too_large(oracle: str, predicted: str) -> bool:
|
| 283 |
+
"""Whether the predicted patch is too large to score (a graded 0)."""
|
| 284 |
+
limit = max(_MAX_PREDICTED_FACTOR * _count_loc_changes(oracle), _MAX_PREDICTED_FLOOR_LOC)
|
| 285 |
+
return _count_loc_changes(predicted) > limit
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
# LLM-as-judge (Anthropic Messages API, stdlib urllib)
|
| 290 |
+
# ---------------------------------------------------------------------------
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
_JUDGE_PROMPT = (
|
| 294 |
+
"You are scoring a code-fix patch on whether it logically addresses the "
|
| 295 |
+
"described issue. Output a single JSON object: "
|
| 296 |
+
'{{"score": <float in [0,1]>, "reasoning": "<<=30 words"}}.\n\n'
|
| 297 |
+
"DO NOT use the oracle to grade. Score on:\n"
|
| 298 |
+
" - Does the predicted diff touch code regions that could plausibly fix the issue?\n"
|
| 299 |
+
" - Is the change direction consistent with what the issue describes?\n"
|
| 300 |
+
" - Is it a real attempt (not boilerplate, not no-op)?\n\n"
|
| 301 |
+
"Issue:\n{instruction}\n\n"
|
| 302 |
+
"Oracle (reference fix for comparison only — don't grade on similarity to it):\n"
|
| 303 |
+
"{oracle}\n\n"
|
| 304 |
+
"Predicted:\n{predicted}\n\n"
|
| 305 |
+
"Return ONLY the JSON object."
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
_DEFAULT_JUDGE_MODEL = "claude-haiku-4-5-20251001"
|
| 310 |
+
_ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages"
|
| 311 |
+
# Bearer token for a self-hosted judge when R2E_JUDGE_API_KEY is unset. vLLM /
|
| 312 |
+
# Ollama ignore it; the OpenAI wire format still wants one. Same value llm.py uses.
|
| 313 |
+
_PLACEHOLDER_API_KEY = "EMPTY"
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def llm_judge(
|
| 317 |
+
*,
|
| 318 |
+
instruction: str,
|
| 319 |
+
oracle: str,
|
| 320 |
+
predicted: str,
|
| 321 |
+
api_key: str,
|
| 322 |
+
model: str = _DEFAULT_JUDGE_MODEL,
|
| 323 |
+
timeout: int = 60,
|
| 324 |
+
endpoint: str | None = None,
|
| 325 |
+
) -> tuple[float | None, str]:
|
| 326 |
+
"""Return ``(score, status)``.
|
| 327 |
+
|
| 328 |
+
``score`` is a float in [0, 1] on success, ``None`` on failure.
|
| 329 |
+
``status`` is a short string: ``"ok"`` / ``"no_api_key"`` /
|
| 330 |
+
``"no_judge_model"`` / ``"empty_predicted"`` / ``"network"`` /
|
| 331 |
+
``"parse"`` / ``"output_limit"`` / ``"missing_score"`` / ``"invalid_score"``.
|
| 332 |
+
``output_limit`` means the judge exhausted its configured token budget
|
| 333 |
+
(ungraded, even if a partial answer contains a score). ``parse`` means
|
| 334 |
+
the provider's body isn't JSON or has the wrong shape (ungraded); a reply
|
| 335 |
+
with no usable text (refusal, content filter, empty) or no valid score is
|
| 336 |
+
``missing_score`` / ``invalid_score`` (a graded 0). A missing score never
|
| 337 |
+
increases the other weights.
|
| 338 |
+
|
| 339 |
+
``endpoint`` — base URL of an OpenAI-compatible server. When set, the
|
| 340 |
+
request goes to ``<endpoint>/chat/completions`` with ``api_key`` as a
|
| 341 |
+
bearer token, at temperature 0, and ``model`` must be given explicitly;
|
| 342 |
+
otherwise it goes to Anthropic's Messages API unchanged.
|
| 343 |
+
"""
|
| 344 |
+
if not api_key:
|
| 345 |
+
return None, "no_api_key"
|
| 346 |
+
if endpoint and not model:
|
| 347 |
+
return None, "no_judge_model"
|
| 348 |
+
if not predicted.strip():
|
| 349 |
+
return 0.0, "empty_predicted"
|
| 350 |
+
|
| 351 |
+
# Truncate hard so we don't blow up the prompt for big diffs
|
| 352 |
+
prompt = _JUDGE_PROMPT.format(
|
| 353 |
+
instruction=instruction[:4000],
|
| 354 |
+
oracle=oracle[:4000],
|
| 355 |
+
predicted=predicted[:4000],
|
| 356 |
+
)
|
| 357 |
+
payload: dict = {
|
| 358 |
+
"model": model,
|
| 359 |
+
"max_tokens": 200,
|
| 360 |
+
"messages": [{"role": "user", "content": prompt}],
|
| 361 |
+
}
|
| 362 |
+
if endpoint:
|
| 363 |
+
# Small self-hosted models are noisy judges at their default sampling
|
| 364 |
+
# temperature (same input scoring 0.0 one call and 1.0 the next); pin
|
| 365 |
+
# them to greedy. The Anthropic route keeps its defaults — the weights
|
| 366 |
+
# were calibrated against them.
|
| 367 |
+
payload["temperature"] = 0
|
| 368 |
+
url = endpoint.rstrip("/") + "/chat/completions"
|
| 369 |
+
headers = {
|
| 370 |
+
"authorization": f"Bearer {api_key}",
|
| 371 |
+
"content-type": "application/json",
|
| 372 |
+
}
|
| 373 |
+
else:
|
| 374 |
+
url = _ANTHROPIC_MESSAGES_URL
|
| 375 |
+
headers = {
|
| 376 |
+
"x-api-key": api_key,
|
| 377 |
+
"anthropic-version": "2023-06-01",
|
| 378 |
+
"content-type": "application/json",
|
| 379 |
+
}
|
| 380 |
+
body = json.dumps(payload).encode("utf-8")
|
| 381 |
+
req = urllib.request.Request(url, data=body, headers=headers, method="POST")
|
| 382 |
+
try:
|
| 383 |
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
| 384 |
+
raw = resp.read().decode("utf-8")
|
| 385 |
+
except (urllib.error.URLError, urllib.error.HTTPError, TimeoutError, OSError):
|
| 386 |
+
return None, "network"
|
| 387 |
+
|
| 388 |
+
try:
|
| 389 |
+
response = json.loads(raw)
|
| 390 |
+
except json.JSONDecodeError:
|
| 391 |
+
return None, "parse"
|
| 392 |
+
# Provider-reported truncation is a grader capacity failure, not evidence
|
| 393 |
+
# that the submitted patch is wrong. Reasoning models can spend the entire
|
| 394 |
+
# output budget before producing visible text. Never grade a partial score.
|
| 395 |
+
if isinstance(response, dict):
|
| 396 |
+
choices = response.get("choices")
|
| 397 |
+
if endpoint:
|
| 398 |
+
if (
|
| 399 |
+
isinstance(choices, list)
|
| 400 |
+
and choices
|
| 401 |
+
and isinstance(choices[0], dict)
|
| 402 |
+
and choices[0].get("finish_reason") == "length"
|
| 403 |
+
):
|
| 404 |
+
return None, "output_limit"
|
| 405 |
+
elif response.get("stop_reason") in {"max_tokens", "model_context_window_exceeded"}:
|
| 406 |
+
return None, "output_limit"
|
| 407 |
+
text = _judge_text(response, openai_compatible=bool(endpoint))
|
| 408 |
+
if text is None:
|
| 409 |
+
return None, "parse"
|
| 410 |
+
|
| 411 |
+
# Pull the first JSON object out of the model's response
|
| 412 |
+
m = re.search(r"\{[^{}]*\"score\"[^{}]*\}", text, re.DOTALL)
|
| 413 |
+
if not m:
|
| 414 |
+
return None, "missing_score"
|
| 415 |
+
try:
|
| 416 |
+
obj = json.loads(m.group(0))
|
| 417 |
+
score = obj.get("score")
|
| 418 |
+
except (json.JSONDecodeError, ValueError, TypeError):
|
| 419 |
+
return None, "missing_score"
|
| 420 |
+
if type(score) not in (int, float) or not 0 <= score <= 1 or not math.isfinite(score):
|
| 421 |
+
return None, "invalid_score"
|
| 422 |
+
return float(score), "ok"
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
def _judge_text(payload: object, *, openai_compatible: bool) -> str | None:
|
| 426 |
+
"""The judge's answer text, ``""`` when it gave none, ``None`` for a wrong shape.
|
| 427 |
+
|
| 428 |
+
A refusal or a content filter is a well-formed reply with no usable text.
|
| 429 |
+
The agent's patch is in the prompt, so it can provoke one: that is ``""``,
|
| 430 |
+
which grades 0, not ``None``, which leaves the run ungraded.
|
| 431 |
+
|
| 432 |
+
Anthropic: a refusal is HTTP 200 with ``stop_reason: "refusal"`` and
|
| 433 |
+
``content`` empty or holding partial text to discard. OpenAI-compatible:
|
| 434 |
+
``message.content`` is null with a ``refusal`` string or
|
| 435 |
+
``finish_reason: "content_filter"``.
|
| 436 |
+
"""
|
| 437 |
+
if not isinstance(payload, dict):
|
| 438 |
+
return None
|
| 439 |
+
if openai_compatible:
|
| 440 |
+
choices = payload.get("choices")
|
| 441 |
+
if not isinstance(choices, list) or not choices or not isinstance(choices[0], dict):
|
| 442 |
+
return None
|
| 443 |
+
message = choices[0].get("message")
|
| 444 |
+
if not isinstance(message, dict):
|
| 445 |
+
return None
|
| 446 |
+
if message.get("refusal") or choices[0].get("finish_reason") == "content_filter":
|
| 447 |
+
return ""
|
| 448 |
+
content = message.get("content")
|
| 449 |
+
if content is None:
|
| 450 |
+
return ""
|
| 451 |
+
if isinstance(content, str):
|
| 452 |
+
return content
|
| 453 |
+
if isinstance(content, list): # content parts
|
| 454 |
+
return "".join(
|
| 455 |
+
part.get("text", "")
|
| 456 |
+
for part in content
|
| 457 |
+
if isinstance(part, dict) and isinstance(part.get("text", ""), str)
|
| 458 |
+
)
|
| 459 |
+
return None
|
| 460 |
+
content = payload.get("content")
|
| 461 |
+
if not isinstance(content, list):
|
| 462 |
+
return None
|
| 463 |
+
if payload.get("stop_reason") == "refusal":
|
| 464 |
+
return ""
|
| 465 |
+
return "".join(
|
| 466 |
+
block["text"]
|
| 467 |
+
for block in content
|
| 468 |
+
if isinstance(block, dict)
|
| 469 |
+
and block.get("type", "text") == "text"
|
| 470 |
+
and isinstance(block.get("text"), str)
|
| 471 |
+
)
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
# ---------------------------------------------------------------------------
|
| 475 |
+
# Combination
|
| 476 |
+
# ---------------------------------------------------------------------------
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
# Judge replies the agent can provoke: its patch text is part of the judge
|
| 480 |
+
# prompt, so it can steer the answer away from a valid score. These are a
|
| 481 |
+
# graded 0. An unreadable provider envelope (`parse`), missing configuration,
|
| 482 |
+
# a disabled judge, transport errors and an exhausted judge output budget leave
|
| 483 |
+
# the evaluation ungraded. Truncation alone cannot establish an incorrect patch.
|
| 484 |
+
_JUDGE_GRADED_ZERO = frozenset({"missing_score", "invalid_score"})
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def evaluation_status(judge_score: float | None, judge_status: str) -> str:
|
| 488 |
+
"""`graded` when the judge scored or the agent can have caused its failure."""
|
| 489 |
+
if judge_score is not None or judge_status in _JUDGE_GRADED_ZERO:
|
| 490 |
+
return "graded"
|
| 491 |
+
return "ungraded"
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
def combine(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 495 |
+
"""Combine declared components, requiring a positively weighted judge.
|
| 496 |
+
|
| 497 |
+
Without a judge score the result is 0. ``main`` records it as a graded 0
|
| 498 |
+
when the agent can have caused the judge failure, and otherwise writes no
|
| 499 |
+
reward file, so Harbor reports the trial as VERIFIER_FAILED.
|
| 500 |
+
"""
|
| 501 |
+
if weights.get("llm_judge", 0) <= 0 or components.get("llm_judge") is None:
|
| 502 |
+
return 0.0
|
| 503 |
+
if any(w > 0 and components.get(k) is None for k, w in weights.items()):
|
| 504 |
+
return 0.0
|
| 505 |
+
return _weighted_mean(components, weights)
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
def _weighted_mean(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 509 |
+
available = [(k, w) for k, w in weights.items() if w > 0 and components.get(k) is not None]
|
| 510 |
+
if not available:
|
| 511 |
+
return 0.0
|
| 512 |
+
# Relative weights need not sum to one. Scale first so large finite
|
| 513 |
+
# overrides cannot overflow the numerator or denominator into NaN.
|
| 514 |
+
scale = max(w for _, w in available)
|
| 515 |
+
normalized = [(k, w / scale) for k, w in available]
|
| 516 |
+
return sum(w * components[k] for k, w in normalized) / sum(w for _, w in normalized)
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
# ---------------------------------------------------------------------------
|
| 520 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 521 |
+
# ---------------------------------------------------------------------------
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
# Weights retuned after a 23-task pilot. Rationale (LLM-as-reward-engineer
|
| 525 |
+
# analysis grounded in per-task component data):
|
| 526 |
+
#
|
| 527 |
+
# - format_valid → 0.00: was 1.0 across ALL 21 evaluated tasks. Zero
|
| 528 |
+
# discriminative signal — its 0.05 weight was pure dead weight.
|
| 529 |
+
# - similarity → 0.10: Pearson ~0.85 correlation with region_overlap.
|
| 530 |
+
# Carrying both at 0.20 double-counts positional accuracy and
|
| 531 |
+
# additionally penalizes legitimate alternative implementations.
|
| 532 |
+
# - llm_judge → 0.50: only component capturing semantic correctness
|
| 533 |
+
# independent of textual form; diverges informatively from
|
| 534 |
+
# similarity on cases like tokenizers (judge=0.72, sim=0.08).
|
| 535 |
+
# - region_overlap stays 0.20: strongest spatial-localization signal.
|
| 536 |
+
# - file_targeting → 0.12: leading indicator, less correlated with the
|
| 537 |
+
# rest than region/similarity are with each other.
|
| 538 |
+
# - size_sanity → 0.08: useful outlier detector for catastrophic
|
| 539 |
+
# over/under-generation (prettier=0.01, serde=0.08).
|
| 540 |
+
#
|
| 541 |
+
# Total: 0.00 + 0.08 + 0.12 + 0.20 + 0.10 + 0.50 = 1.00.
|
| 542 |
+
_DEFAULT_WEIGHTS = {
|
| 543 |
+
"format_valid": 0.00,
|
| 544 |
+
"size_sanity": 0.08,
|
| 545 |
+
"file_targeting": 0.12,
|
| 546 |
+
"region_overlap": 0.20,
|
| 547 |
+
"similarity": 0.10,
|
| 548 |
+
"llm_judge": 0.50,
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
# Hard cap: when size_sanity < this threshold, clamp final reward to
|
| 552 |
+
# ≤ CATASTROPHIC_SIZE_CAP. Prevents a charitable judge from inflating
|
| 553 |
+
# the score on patches that are wildly the wrong size (catastrophic
|
| 554 |
+
# over- or under-generation).
|
| 555 |
+
_CATASTROPHIC_SIZE_THRESHOLD = 0.10
|
| 556 |
+
_CATASTROPHIC_SIZE_CAP = 0.40
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
def _read_weights_from_env() -> dict[str, float]:
|
| 560 |
+
"""Override defaults via R2E_W_* env vars (set in container by harbor)."""
|
| 561 |
+
overrides = {
|
| 562 |
+
"format_valid": os.environ.get("R2E_W_FORMAT"),
|
| 563 |
+
"size_sanity": os.environ.get("R2E_W_SIZE"),
|
| 564 |
+
"file_targeting": os.environ.get("R2E_W_FILE"),
|
| 565 |
+
"region_overlap": os.environ.get("R2E_W_REGION"),
|
| 566 |
+
"similarity": os.environ.get("R2E_W_SIM"),
|
| 567 |
+
"llm_judge": os.environ.get("R2E_W_JUDGE"),
|
| 568 |
+
}
|
| 569 |
+
out = dict(_DEFAULT_WEIGHTS)
|
| 570 |
+
for k, v in overrides.items():
|
| 571 |
+
if v is None:
|
| 572 |
+
continue
|
| 573 |
+
try:
|
| 574 |
+
value = float(v)
|
| 575 |
+
if math.isfinite(value) and value >= 0:
|
| 576 |
+
out[k] = value
|
| 577 |
+
except (TypeError, ValueError):
|
| 578 |
+
continue
|
| 579 |
+
return out
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
def _judge_config_from_env() -> tuple[str, str, str | None]:
|
| 583 |
+
"""``(api_key, model, endpoint)`` for the judge, from the verifier env.
|
| 584 |
+
|
| 585 |
+
With ``R2E_JUDGE_ENDPOINT`` set, the key comes from ``R2E_JUDGE_API_KEY``
|
| 586 |
+
(placeholder when unset) and ``ANTHROPIC_API_KEY`` is never forwarded to
|
| 587 |
+
the custom server. ``R2E_JUDGE_MODEL`` has no default on that route (a
|
| 588 |
+
self-hosted server won't have Haiku): when unset, ``model`` comes back
|
| 589 |
+
as ``""`` and ``llm_judge`` reports ``no_judge_model`` instead of
|
| 590 |
+
calling out. Without an endpoint the default Anthropic route is
|
| 591 |
+
unchanged.
|
| 592 |
+
"""
|
| 593 |
+
endpoint = os.environ.get("R2E_JUDGE_ENDPOINT", "").strip() or None
|
| 594 |
+
model = os.environ.get("R2E_JUDGE_MODEL", "").strip()
|
| 595 |
+
if endpoint:
|
| 596 |
+
api_key = os.environ.get("R2E_JUDGE_API_KEY", "").strip() or _PLACEHOLDER_API_KEY
|
| 597 |
+
return api_key, model, endpoint
|
| 598 |
+
return os.environ.get("ANTHROPIC_API_KEY", "").strip(), model or _DEFAULT_JUDGE_MODEL, None
|
| 599 |
+
|
| 600 |
+
|
| 601 |
+
def main(argv: list[str] | None = None) -> int:
|
| 602 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 603 |
+
parser.add_argument("oracle")
|
| 604 |
+
parser.add_argument("predicted")
|
| 605 |
+
parser.add_argument("instruction")
|
| 606 |
+
parser.add_argument("--out-dir", default="/logs/verifier")
|
| 607 |
+
args = parser.parse_args(argv)
|
| 608 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 609 |
+
# This run is the only authority on the reward: an earlier or planted
|
| 610 |
+
# reward file must not stand if this evaluation ends up ungraded.
|
| 611 |
+
for name in ("reward.txt", "reward.json"):
|
| 612 |
+
try:
|
| 613 |
+
os.unlink(os.path.join(args.out_dir, name))
|
| 614 |
+
except FileNotFoundError:
|
| 615 |
+
pass
|
| 616 |
+
oracle = _read_or_empty(args.oracle)
|
| 617 |
+
try:
|
| 618 |
+
oversized = os.path.getsize(args.predicted) > _MAX_PREDICTED_BYTES
|
| 619 |
+
except OSError:
|
| 620 |
+
oversized = False
|
| 621 |
+
predicted = "" if oversized else _read_or_empty(args.predicted)
|
| 622 |
+
if oversized or predicted_too_large(oracle, predicted):
|
| 623 |
+
breakdown = {
|
| 624 |
+
"final_reward": 0.0,
|
| 625 |
+
"evaluation_status": "graded",
|
| 626 |
+
"eval_trustworthy": False,
|
| 627 |
+
"predicted_status": "predicted_too_large",
|
| 628 |
+
}
|
| 629 |
+
_write_outputs(args.out_dir, 0.0, breakdown)
|
| 630 |
+
return 0
|
| 631 |
+
instruction = _read_or_empty(args.instruction)
|
| 632 |
+
api_key, judge_model, judge_endpoint = _judge_config_from_env()
|
| 633 |
+
|
| 634 |
+
fv = format_valid(predicted)
|
| 635 |
+
ss = size_sanity(oracle, predicted)
|
| 636 |
+
ft = file_targeting(oracle, predicted)
|
| 637 |
+
ro = region_overlap(oracle, predicted)
|
| 638 |
+
sim = similarity(oracle, predicted)
|
| 639 |
+
weights = _read_weights_from_env()
|
| 640 |
+
if weights["llm_judge"] <= 0:
|
| 641 |
+
judge_score, judge_status = None, "disabled"
|
| 642 |
+
else:
|
| 643 |
+
judge_score, judge_status = llm_judge(
|
| 644 |
+
instruction=instruction,
|
| 645 |
+
oracle=oracle,
|
| 646 |
+
predicted=predicted,
|
| 647 |
+
api_key=api_key,
|
| 648 |
+
model=judge_model,
|
| 649 |
+
endpoint=judge_endpoint,
|
| 650 |
+
)
|
| 651 |
+
|
| 652 |
+
components: dict[str, float | None] = {
|
| 653 |
+
"format_valid": fv,
|
| 654 |
+
"size_sanity": ss,
|
| 655 |
+
"file_targeting": ft,
|
| 656 |
+
"region_overlap": ro,
|
| 657 |
+
"similarity": sim,
|
| 658 |
+
"llm_judge": judge_score,
|
| 659 |
+
}
|
| 660 |
+
final = combine(components, weights)
|
| 661 |
+
final = max(0.0, min(1.0, final))
|
| 662 |
+
|
| 663 |
+
# Hard cap on catastrophic size mismatches. Without this, a charitable
|
| 664 |
+
# judge can inflate the reward on patches that are dramatically the
|
| 665 |
+
# wrong size (prettier scored 0.23 with size_sanity=0.011 — the judge
|
| 666 |
+
# was lenient at 0.25 despite the patch being a near-no-op vs a
|
| 667 |
+
# 500-line oracle). The cap kicks in only at the extremes.
|
| 668 |
+
if ss < _CATASTROPHIC_SIZE_THRESHOLD:
|
| 669 |
+
final = min(final, _CATASTROPHIC_SIZE_CAP)
|
| 670 |
+
|
| 671 |
+
status = evaluation_status(judge_score, judge_status)
|
| 672 |
+
breakdown = {
|
| 673 |
+
# No reward exists for an ungraded evaluation: null, not a placeholder 0.
|
| 674 |
+
"final_reward": round(final, 6) if status == "graded" else None,
|
| 675 |
+
"evaluation_status": status,
|
| 676 |
+
"eval_trustworthy": judge_score is not None,
|
| 677 |
+
"diagnostic_similarity": round(
|
| 678 |
+
_weighted_mean(components, {k: w for k, w in weights.items() if k != "llm_judge"}),
|
| 679 |
+
6,
|
| 680 |
+
),
|
| 681 |
+
"components": {k: (None if v is None else round(v, 6)) for k, v in components.items()},
|
| 682 |
+
"weights": {k: round(v, 6) for k, v in weights.items()},
|
| 683 |
+
"judge_model": judge_model if judge_status == "ok" else None,
|
| 684 |
+
"judge_endpoint": judge_endpoint,
|
| 685 |
+
"judge_status": judge_status,
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
_write_outputs(args.out_dir, final, breakdown)
|
| 689 |
+
return 0
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
def _write_outputs(out_dir: str, final: float, breakdown: dict) -> None:
|
| 693 |
+
# An ungraded evaluation writes no reward file. Harbor then raises
|
| 694 |
+
# RewardFileNotFoundError: the trial is VERIFIER_FAILED, reward_valid is
|
| 695 |
+
# false, and RL consumers (OpenEnv harbor_env -> TRL) drop the rollout
|
| 696 |
+
# instead of training on a 0. Harbor's job mean and pass@k still count the
|
| 697 |
+
# trial as 0, so evaluation stays fail-closed.
|
| 698 |
+
if breakdown["evaluation_status"] == "graded":
|
| 699 |
+
with open(os.path.join(out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 700 |
+
f.write(f"{final:.6f}\n")
|
| 701 |
+
# Harbor's `reward.json` must be a flat map of floats/ints (spec, see
|
| 702 |
+
# <https://harborframework.com/docs/tasks>); our breakdown carries nested
|
| 703 |
+
# dicts, judge strings, and status strings, so it goes to the sidecar the
|
| 704 |
+
# Harbor UI renders under Verifier Logs → Rewards. Mirrors #75 (Neubig)
|
| 705 |
+
# for `_pr_runtime_verifier.py`.
|
| 706 |
+
with open(os.path.join(out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 707 |
+
json.dump(breakdown, f, indent=2)
|
| 708 |
+
|
| 709 |
+
# Also print to stdout so harbor's log captures the breakdown
|
| 710 |
+
print(json.dumps(breakdown, indent=2))
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
def _read_or_empty(path: str) -> str:
|
| 714 |
+
try:
|
| 715 |
+
with open(path, encoding="utf-8") as f:
|
| 716 |
+
return f.read()
|
| 717 |
+
except (OSError, UnicodeDecodeError):
|
| 718 |
+
return ""
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
if __name__ == "__main__":
|
| 722 |
+
sys.exit(main())
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
__all__ = [
|
| 726 |
+
"combine",
|
| 727 |
+
"file_paths",
|
| 728 |
+
"file_targeting",
|
| 729 |
+
"format_valid",
|
| 730 |
+
"hunk_ranges",
|
| 731 |
+
"llm_judge",
|
| 732 |
+
"main",
|
| 733 |
+
"predicted_too_large",
|
| 734 |
+
"region_overlap",
|
| 735 |
+
"similarity",
|
| 736 |
+
"size_sanity",
|
| 737 |
+
]
|
tasks/open-telemetry__opentelemetry-proto-644/environment/Dockerfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_diff — 6-component reward env.
|
| 2 |
+
# Agent-agnostic: the agent (claude-code / openhands / codex / etc.)
|
| 3 |
+
# installs itself at run time via its harbor adapter. We only ship
|
| 4 |
+
# the source repo — the oracle + verifier arrive at verify time via
|
| 5 |
+
# tests/, never baked into the agent's image.
|
| 6 |
+
FROM python:3.12-slim
|
| 7 |
+
ARG GITHUB_TOKEN=
|
| 8 |
+
RUN apt-get update \
|
| 9 |
+
&& apt-get install -y --no-install-recommends git ca-certificates curl \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
RUN git config --global --add safe.directory /workspace \
|
| 12 |
+
&& git config --global init.defaultBranch main \
|
| 13 |
+
&& git config --global advice.detachedHead false
|
| 14 |
+
RUN if [ -n "$GITHUB_TOKEN" ]; then \
|
| 15 |
+
git clone --filter=blob:none https://x-access-token:"${GITHUB_TOKEN}"@github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 16 |
+
else \
|
| 17 |
+
git clone --filter=blob:none https://github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 18 |
+
fi \
|
| 19 |
+
&& git -C /workspace remote set-url origin https://github.com/open-telemetry/opentelemetry-proto.git
|
| 20 |
+
WORKDIR /workspace
|
| 21 |
+
RUN git fetch --depth 1 origin 42319f8b5bf330f7c3dd4a097384f9f6d5467450 2>/dev/null \
|
| 22 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 23 |
+
RUN git reset --hard 42319f8b5bf330f7c3dd4a097384f9f6d5467450 \
|
| 24 |
+
&& git clean -fdx -e .venv -e venv -e __pycache__
|
| 25 |
+
RUN git checkout -q -B base 42319f8b5bf330f7c3dd4a097384f9f6d5467450 \
|
| 26 |
+
&& git remote remove origin 2>/dev/null || true
|
| 27 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 28 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 29 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 30 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 31 |
+
&& git gc --prune=now 2>/dev/null || true
|
| 32 |
+
RUN P="$(git rev-parse --git-dir)/objects/pack"; if ls "$P"/*.promisor >/dev/null 2>&1; then \
|
| 33 |
+
git rev-list --objects --all --missing=allow-promisor > "$P/../scrub.list" \
|
| 34 |
+
&& K=$(git pack-objects -q --missing=allow-promisor "$P/scrub" < "$P/../scrub.list") \
|
| 35 |
+
&& rm -f "$P/../scrub.list" "$P"/pack-* "$P"/multi-pack-index* \
|
| 36 |
+
&& touch "$P/scrub-$K.promisor" && git prune --expire=now; \
|
| 37 |
+
fi
|
tasks/open-telemetry__opentelemetry-proto-644/instruction.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** profiles: Move lookup tables to ProfilesData
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
Implements
|
| 8 |
+
|
| 9 |
+
## Task
|
| 10 |
+
|
| 11 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `42319f8b5bf3`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-644/solution/patch.diff
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/opentelemetry/proto/profiles/v1development/profiles.proto b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 2 |
+
index a9e6f6f..28777aa 100644
|
| 3 |
+
--- a/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 4 |
+
+++ b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 5 |
+
@@ -102,11 +102,36 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
|
| 6 |
+
// as well.
|
| 7 |
+
message ProfilesData {
|
| 8 |
+
// An array of ResourceProfiles.
|
| 9 |
+
- // For data coming from a single resource this array will typically contain
|
| 10 |
+
- // one element. Intermediary nodes that receive data from multiple origins
|
| 11 |
+
- // typically batch the data before forwarding further and in that case this
|
| 12 |
+
- // array will contain multiple elements.
|
| 13 |
+
+ // For data coming from an SDK profiler, this array will typically contain one
|
| 14 |
+
+ // element. Host-level profilers will usually create one ResourceProfile per
|
| 15 |
+
+ // container, as well as one additional ResourceProfile grouping all samples
|
| 16 |
+
+ // from non-containerized processes.
|
| 17 |
+
+ // Other resource groupings are possible as well and clarified via
|
| 18 |
+
+ // Resource.attributes and semantic conventions.
|
| 19 |
+
repeated ResourceProfiles resource_profiles = 1;
|
| 20 |
+
+
|
| 21 |
+
+ // Mappings from address ranges to the image/binary/library mapped
|
| 22 |
+
+ // into that address range referenced by locations via Location.mapping_index.
|
| 23 |
+
+ repeated Mapping mapping_table = 2;
|
| 24 |
+
+
|
| 25 |
+
+ // Locations referenced by samples via Profile.location_indices.
|
| 26 |
+
+ repeated Location location_table = 3;
|
| 27 |
+
+
|
| 28 |
+
+ // Functions referenced by locations via Line.function_index.
|
| 29 |
+
+ repeated Function function_table = 4;
|
| 30 |
+
+
|
| 31 |
+
+ // Links referenced by samples via Sample.link_index.
|
| 32 |
+
+ repeated Link link_table = 5;
|
| 33 |
+
+
|
| 34 |
+
+ // A common table for strings referenced by various messages.
|
| 35 |
+
+ // string_table[0] must always be "".
|
| 36 |
+
+ repeated string string_table = 6;
|
| 37 |
+
+
|
| 38 |
+
+ // A common table for attributes referenced by various messages.
|
| 39 |
+
+ repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 7;
|
| 40 |
+
+
|
| 41 |
+
+ // Represents a mapping between Attribute Keys and Units.
|
| 42 |
+
+ repeated AttributeUnit attribute_units = 8;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
@@ -180,7 +205,6 @@ message ScopeProfiles {
|
| 47 |
+
// for ease of understanding data migration, it is not intended that pprof:Profile and
|
| 48 |
+
// OpenTelemetry:Profile encoding be wire compatible.
|
| 49 |
+
message Profile {
|
| 50 |
+
-
|
| 51 |
+
// A description of the samples associated with each Sample.value.
|
| 52 |
+
// For a cpu profile this might be:
|
| 53 |
+
// [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
|
| 54 |
+
@@ -192,62 +216,44 @@ message Profile {
|
| 55 |
+
repeated ValueType sample_type = 1;
|
| 56 |
+
// The set of samples recorded in this profile.
|
| 57 |
+
repeated Sample sample = 2;
|
| 58 |
+
- // Mapping from address ranges to the image/binary/library mapped
|
| 59 |
+
- // into that address range. mapping[0] will be the main binary.
|
| 60 |
+
- // If multiple binaries contribute to the Profile and no main
|
| 61 |
+
- // binary can be identified, mapping[0] has no special meaning.
|
| 62 |
+
- repeated Mapping mapping_table = 3;
|
| 63 |
+
- // Locations referenced by samples via location_indices.
|
| 64 |
+
- repeated Location location_table = 4;
|
| 65 |
+
- // Array of locations referenced by samples.
|
| 66 |
+
- repeated int32 location_indices = 5;
|
| 67 |
+
- // Functions referenced by locations.
|
| 68 |
+
- repeated Function function_table = 6;
|
| 69 |
+
- // Lookup table for attributes.
|
| 70 |
+
- repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 7;
|
| 71 |
+
- // Represents a mapping between Attribute Keys and Units.
|
| 72 |
+
- repeated AttributeUnit attribute_units = 8;
|
| 73 |
+
- // Lookup table for links.
|
| 74 |
+
- repeated Link link_table = 9;
|
| 75 |
+
- // A common table for strings referenced by various messages.
|
| 76 |
+
- // string_table[0] must always be "".
|
| 77 |
+
- repeated string string_table = 10;
|
| 78 |
+
|
| 79 |
+
- // The following fields 9-14 are informational, do not affect
|
| 80 |
+
+ // References to locations in ProfilesData.location_table.
|
| 81 |
+
+ repeated int32 location_indices = 3;
|
| 82 |
+
+
|
| 83 |
+
+ // The following fields 4-14 are informational, do not affect
|
| 84 |
+
// interpretation of results.
|
| 85 |
+
|
| 86 |
+
// Time of collection (UTC) represented as nanoseconds past the epoch.
|
| 87 |
+
- int64 time_nanos = 11;
|
| 88 |
+
+ int64 time_nanos = 4;
|
| 89 |
+
// Duration of the profile, if a duration makes sense.
|
| 90 |
+
- int64 duration_nanos = 12;
|
| 91 |
+
+ int64 duration_nanos = 5;
|
| 92 |
+
// The kind of events between sampled occurrences.
|
| 93 |
+
// e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
|
| 94 |
+
- ValueType period_type = 13;
|
| 95 |
+
+ ValueType period_type = 6;
|
| 96 |
+
// The number of events between sampled occurrences.
|
| 97 |
+
- int64 period = 14;
|
| 98 |
+
+ int64 period = 7;
|
| 99 |
+
// Free-form text associated with the profile. The text is displayed as is
|
| 100 |
+
// to the user by the tools that read profiles (e.g. by pprof). This field
|
| 101 |
+
// should not be used to store any machine-readable information, it is only
|
| 102 |
+
// for human-friendly content. The profile must stay functional if this field
|
| 103 |
+
// is cleaned.
|
| 104 |
+
- repeated int32 comment_strindices = 15; // Indices into string table.
|
| 105 |
+
+ repeated int32 comment_strindices = 8; // Indices into ProfilesData.string_table.
|
| 106 |
+
// Index into the sample_type array to the default sample type.
|
| 107 |
+
- int32 default_sample_type_index = 16;
|
| 108 |
+
-
|
| 109 |
+
+ int32 default_sample_type_index = 9;
|
| 110 |
+
|
| 111 |
+
// A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
|
| 112 |
+
// all zeroes is considered invalid.
|
| 113 |
+
//
|
| 114 |
+
// This field is required.
|
| 115 |
+
- bytes profile_id = 17;
|
| 116 |
+
+ bytes profile_id = 10;
|
| 117 |
+
|
| 118 |
+
// dropped_attributes_count is the number of attributes that were discarded. Attributes
|
| 119 |
+
// can be discarded because their keys are too long or because there are too many
|
| 120 |
+
// attributes. If this value is 0, then no attributes were dropped.
|
| 121 |
+
- uint32 dropped_attributes_count = 19;
|
| 122 |
+
+ uint32 dropped_attributes_count = 11;
|
| 123 |
+
|
| 124 |
+
// Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
|
| 125 |
+
- string original_payload_format = 20;
|
| 126 |
+
+ string original_payload_format = 12;
|
| 127 |
+
|
| 128 |
+
// Original payload can be stored in this field. This can be useful for users who want to get the original payload.
|
| 129 |
+
// Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
|
| 130 |
+
@@ -255,7 +261,7 @@ message Profile {
|
| 131 |
+
// If the original payload is in pprof format, it SHOULD not be included in this field.
|
| 132 |
+
// The field is optional, however if it is present then equivalent converted data should be populated in other fields
|
| 133 |
+
// of this message as far as is practicable.
|
| 134 |
+
- bytes original_payload = 21;
|
| 135 |
+
+ bytes original_payload = 13;
|
| 136 |
+
|
| 137 |
+
// References to attributes in attribute_table. [optional]
|
| 138 |
+
// It is a collection of key/value pairs. Note, global attributes
|
| 139 |
+
@@ -270,7 +276,7 @@ message Profile {
|
| 140 |
+
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
|
| 141 |
+
// Attribute keys MUST be unique (it is not allowed to have more than one
|
| 142 |
+
// attribute with the same key).
|
| 143 |
+
- repeated int32 attribute_indices = 22;
|
| 144 |
+
+ repeated int32 attribute_indices = 14;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
// Represents a mapping between Attribute Keys and Units.
|
| 148 |
+
@@ -362,8 +368,8 @@ enum AggregationTemporality {
|
| 149 |
+
|
| 150 |
+
// ValueType describes the type and units of a value, with an optional aggregation temporality.
|
| 151 |
+
message ValueType {
|
| 152 |
+
- int32 type_strindex = 1; // Index into string table.
|
| 153 |
+
- int32 unit_strindex = 2; // Index into string table.
|
| 154 |
+
+ int32 type_strindex = 1; // Index into ProfilesData.string_table.
|
| 155 |
+
+ int32 unit_strindex = 2; // Index into ProfilesData.string_table.
|
| 156 |
+
|
| 157 |
+
AggregationTemporality aggregation_temporality = 3;
|
| 158 |
+
}
|
| 159 |
+
@@ -385,10 +391,10 @@ message Sample {
|
| 160 |
+
// result has a list of values that is the element-wise sum of the
|
| 161 |
+
// lists of the originals.
|
| 162 |
+
repeated int64 value = 3;
|
| 163 |
+
- // References to attributes in Profile.attribute_table. [optional]
|
| 164 |
+
+ // References to attributes in ProfilesData.attribute_table. [optional]
|
| 165 |
+
repeated int32 attribute_indices = 4;
|
| 166 |
+
|
| 167 |
+
- // Reference to link in Profile.link_table. [optional]
|
| 168 |
+
+ // Reference to link in ProfilesData.link_table. [optional]
|
| 169 |
+
optional int32 link_index = 5;
|
| 170 |
+
|
| 171 |
+
// Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
|
| 172 |
+
@@ -408,8 +414,8 @@ message Mapping {
|
| 173 |
+
// The object this entry is loaded from. This can be a filename on
|
| 174 |
+
// disk for the main binary and shared libraries, or virtual
|
| 175 |
+
// abstractions like "[vdso]".
|
| 176 |
+
- int32 filename_strindex = 4; // Index into string table
|
| 177 |
+
- // References to attributes in Profile.attribute_table. [optional]
|
| 178 |
+
+ int32 filename_strindex = 4; // Index into ProfilesData.string_table.
|
| 179 |
+
+ // References to attributes in ProfilesData.attribute_table. [optional]
|
| 180 |
+
repeated int32 attribute_indices = 5;
|
| 181 |
+
// The following fields indicate the resolution of symbolic info.
|
| 182 |
+
bool has_functions = 6;
|
| 183 |
+
@@ -420,7 +426,7 @@ message Mapping {
|
| 184 |
+
|
| 185 |
+
// Describes function and line table debug information.
|
| 186 |
+
message Location {
|
| 187 |
+
- // Reference to mapping in Profile.mapping_table.
|
| 188 |
+
+ // Reference to mapping in ProfilesData.mapping_table.
|
| 189 |
+
// It can be unset if the mapping is unknown or not applicable for
|
| 190 |
+
// this profile type.
|
| 191 |
+
optional int32 mapping_index = 1;
|
| 192 |
+
@@ -445,13 +451,13 @@ message Location {
|
| 193 |
+
// profile changes.
|
| 194 |
+
bool is_folded = 4;
|
| 195 |
+
|
| 196 |
+
- // References to attributes in Profile.attribute_table. [optional]
|
| 197 |
+
+ // References to attributes in ProfilesData.attribute_table. [optional]
|
| 198 |
+
repeated int32 attribute_indices = 5;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
// Details a specific line in a source code, linked to a function.
|
| 202 |
+
message Line {
|
| 203 |
+
- // Reference to function in Profile.function_table.
|
| 204 |
+
+ // Reference to function in ProfilesData.function_table.
|
| 205 |
+
int32 function_index = 1;
|
| 206 |
+
// Line number in source code. 0 means unset.
|
| 207 |
+
int64 line = 2;
|
tasks/open-telemetry__opentelemetry-proto-644/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
tasks/open-telemetry__opentelemetry-proto-644/task.toml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "trending/open-telemetry__opentelemetry-proto-644"
|
| 5 |
+
description = "profiles: Move lookup tables to ProfilesData"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "large"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"opentelemetry-proto",
|
| 12 |
+
"pr_diff",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "pr_diff"
|
| 17 |
+
pipeline_version = "0.3.0"
|
| 18 |
+
repo = "open-telemetry/opentelemetry-proto"
|
| 19 |
+
ref = "42319f8b5bf330f7c3dd4a097384f9f6d5467450"
|
| 20 |
+
reference = "https://github.com/open-telemetry/opentelemetry-proto/pull/644"
|
| 21 |
+
source_access = "auto"
|
| 22 |
+
built_at = "2026-11-16T16:09:42.240430+00:00"
|
| 23 |
+
reward_kinds = [
|
| 24 |
+
"diff_similarity",
|
| 25 |
+
]
|
| 26 |
+
spec_version = "0.2.0"
|
| 27 |
+
content_hash = "sha256:9d55340ae31e16ce5d260323002aabd0a1d7c279530855241aff6825aeeb2e4e"
|
| 28 |
+
|
| 29 |
+
[metadata.repo2env.pr_diff]
|
| 30 |
+
pr_merged_at = "2025-04-24T13:14:49Z"
|
| 31 |
+
diff_format = "unified"
|
| 32 |
+
context_files = [
|
| 33 |
+
"opentelemetry/proto/profiles/v1development/profiles.proto",
|
| 34 |
+
]
|
| 35 |
+
bootstrap_image = "python:3.12-slim"
|
| 36 |
+
|
| 37 |
+
[metadata.repo2env.reward_calibration]
|
| 38 |
+
baseline_reward = 0.0
|
| 39 |
+
loc_changed = 100
|
| 40 |
+
difficulty = "large"
|
| 41 |
+
|
| 42 |
+
[metadata.repo2env.evaluation]
|
| 43 |
+
schema_version = "1"
|
| 44 |
+
status = "unverified"
|
| 45 |
+
stage = "generation"
|
| 46 |
+
reason_codes = [
|
| 47 |
+
"validation_not_run",
|
| 48 |
+
]
|
| 49 |
+
detail = "Generated task; validation has not been established."
|
| 50 |
+
provenance = "unknown"
|
| 51 |
+
evidence = []
|
| 52 |
+
|
| 53 |
+
[metadata.repo2env.reproducibility]
|
| 54 |
+
mode = "inline_dockerfile"
|
| 55 |
+
image_ref = "python:3.12-slim"
|
| 56 |
+
image_tag = "python:3.12-slim"
|
| 57 |
+
image_visibility = "public"
|
| 58 |
+
pushed_at = "2026-11-16T16:20:02.018540+00:00"
|
| 59 |
+
pushed_by = "scalingX"
|
| 60 |
+
inline_recipe_sha256 = "sha256:25255d0f0901d5ef4b6c61f4a3a23df3f802b82fd9144e646370e72bdf6d6629"
|
| 61 |
+
inline_recipe_lines = 37
|
| 62 |
+
inline_recipe_source = "user_dockerfile"
|
| 63 |
+
|
| 64 |
+
[agent]
|
| 65 |
+
timeout_sec = 1800.0
|
| 66 |
+
|
| 67 |
+
[verifier]
|
| 68 |
+
timeout_sec = 300.0
|
tasks/open-telemetry__opentelemetry-proto-644/tests/capture.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Standalone PR-diff capture without executing workspace Git configuration.
|
| 2 |
+
|
| 3 |
+
The emitted task uses a regular clone with a pinned base commit. Only its
|
| 4 |
+
object store is read: refs, index, config, hooks and replacement refs are not
|
| 5 |
+
used. This is a configuration boundary, not a sandbox for a malicious process
|
| 6 |
+
that can modify the verifier, binaries or object store while capture runs.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import argparse
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
+
import re
|
| 15 |
+
import shutil
|
| 16 |
+
import subprocess
|
| 17 |
+
import sys
|
| 18 |
+
import tempfile
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def capture(workspace: Path, base_commit: str) -> bytes:
|
| 23 |
+
"""Capture tracked and new files through a fresh private Git index."""
|
| 24 |
+
if not re.fullmatch(r"[a-fA-F0-9]{40}", base_commit):
|
| 25 |
+
raise ValueError("Expected the task's pinned SHA-1 base commit")
|
| 26 |
+
objects = workspace.resolve() / ".git" / "objects"
|
| 27 |
+
if not objects.is_dir():
|
| 28 |
+
raise ValueError("The task's cloned Git object store is missing")
|
| 29 |
+
git = shutil.which("git", path=os.defpath)
|
| 30 |
+
if git is None:
|
| 31 |
+
raise FileNotFoundError("System git is unavailable")
|
| 32 |
+
with tempfile.TemporaryDirectory(prefix="r2e-diff-") as temporary:
|
| 33 |
+
private = Path(temporary)
|
| 34 |
+
# Do not forward GIT_CONFIG_PARAMETERS/COUNT, external diff programs,
|
| 35 |
+
# system/global includes, user attributes, templates or credential env.
|
| 36 |
+
env = {
|
| 37 |
+
"PATH": os.defpath,
|
| 38 |
+
"HOME": temporary,
|
| 39 |
+
"XDG_CONFIG_HOME": temporary,
|
| 40 |
+
"GIT_CONFIG_NOSYSTEM": "1",
|
| 41 |
+
"GIT_CONFIG_GLOBAL": os.devnull,
|
| 42 |
+
"GIT_ATTR_NOSYSTEM": "1",
|
| 43 |
+
"GIT_NO_REPLACE_OBJECTS": "1",
|
| 44 |
+
"GIT_NO_LAZY_FETCH": "1",
|
| 45 |
+
"GIT_TERMINAL_PROMPT": "0",
|
| 46 |
+
"LC_ALL": "C",
|
| 47 |
+
}
|
| 48 |
+
subprocess.run(
|
| 49 |
+
[git, "init", "--quiet", "--template=", str(private / "repository")],
|
| 50 |
+
env=env,
|
| 51 |
+
cwd=private,
|
| 52 |
+
check=True,
|
| 53 |
+
capture_output=True,
|
| 54 |
+
timeout=60,
|
| 55 |
+
)
|
| 56 |
+
env["GIT_ALTERNATE_OBJECT_DIRECTORIES"] = json.dumps(str(objects), ensure_ascii=False)
|
| 57 |
+
command = [
|
| 58 |
+
git,
|
| 59 |
+
f"--git-dir={private / 'repository/.git'}",
|
| 60 |
+
f"--work-tree={workspace.resolve()}",
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
def run(*args: str) -> bytes:
|
| 64 |
+
return subprocess.run(
|
| 65 |
+
[*command, *args],
|
| 66 |
+
env=env,
|
| 67 |
+
cwd=workspace,
|
| 68 |
+
check=True,
|
| 69 |
+
capture_output=True,
|
| 70 |
+
timeout=60,
|
| 71 |
+
).stdout
|
| 72 |
+
|
| 73 |
+
run("read-tree", f"{base_commit}^{{tree}}")
|
| 74 |
+
# All filter drivers are undefined in the private configuration. The
|
| 75 |
+
# workspace's clean filters, fsmonitor and hooks cannot be invoked.
|
| 76 |
+
run("add", "--all", "--", ".")
|
| 77 |
+
return run("diff", "--cached", "--no-ext-diff", "--no-textconv", base_commit, "--")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def main(argv: list[str] | None = None) -> int:
|
| 81 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 82 |
+
parser.add_argument("workspace", type=Path)
|
| 83 |
+
parser.add_argument("base_commit")
|
| 84 |
+
args = parser.parse_args(argv)
|
| 85 |
+
try:
|
| 86 |
+
patch = capture(args.workspace, args.base_commit)
|
| 87 |
+
except (OSError, ValueError, subprocess.SubprocessError) as exc:
|
| 88 |
+
# Do not echo child stderr: it may contain workspace-controlled data.
|
| 89 |
+
sys.stderr.write(f"PR-diff capture failed ({type(exc).__name__})\n")
|
| 90 |
+
return 1
|
| 91 |
+
sys.stdout.buffer.write(patch)
|
| 92 |
+
return 0
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
if __name__ == "__main__":
|
| 96 |
+
sys.exit(main())
|
tasks/open-telemetry__opentelemetry-proto-644/tests/instruction.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** profiles: Move lookup tables to ProfilesData
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
Implements
|
| 8 |
+
|
| 9 |
+
## Task
|
| 10 |
+
|
| 11 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `42319f8b5bf3`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-644/tests/oracle.patch
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/opentelemetry/proto/profiles/v1development/profiles.proto b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 2 |
+
index a9e6f6f..28777aa 100644
|
| 3 |
+
--- a/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 4 |
+
+++ b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 5 |
+
@@ -102,11 +102,36 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
|
| 6 |
+
// as well.
|
| 7 |
+
message ProfilesData {
|
| 8 |
+
// An array of ResourceProfiles.
|
| 9 |
+
- // For data coming from a single resource this array will typically contain
|
| 10 |
+
- // one element. Intermediary nodes that receive data from multiple origins
|
| 11 |
+
- // typically batch the data before forwarding further and in that case this
|
| 12 |
+
- // array will contain multiple elements.
|
| 13 |
+
+ // For data coming from an SDK profiler, this array will typically contain one
|
| 14 |
+
+ // element. Host-level profilers will usually create one ResourceProfile per
|
| 15 |
+
+ // container, as well as one additional ResourceProfile grouping all samples
|
| 16 |
+
+ // from non-containerized processes.
|
| 17 |
+
+ // Other resource groupings are possible as well and clarified via
|
| 18 |
+
+ // Resource.attributes and semantic conventions.
|
| 19 |
+
repeated ResourceProfiles resource_profiles = 1;
|
| 20 |
+
+
|
| 21 |
+
+ // Mappings from address ranges to the image/binary/library mapped
|
| 22 |
+
+ // into that address range referenced by locations via Location.mapping_index.
|
| 23 |
+
+ repeated Mapping mapping_table = 2;
|
| 24 |
+
+
|
| 25 |
+
+ // Locations referenced by samples via Profile.location_indices.
|
| 26 |
+
+ repeated Location location_table = 3;
|
| 27 |
+
+
|
| 28 |
+
+ // Functions referenced by locations via Line.function_index.
|
| 29 |
+
+ repeated Function function_table = 4;
|
| 30 |
+
+
|
| 31 |
+
+ // Links referenced by samples via Sample.link_index.
|
| 32 |
+
+ repeated Link link_table = 5;
|
| 33 |
+
+
|
| 34 |
+
+ // A common table for strings referenced by various messages.
|
| 35 |
+
+ // string_table[0] must always be "".
|
| 36 |
+
+ repeated string string_table = 6;
|
| 37 |
+
+
|
| 38 |
+
+ // A common table for attributes referenced by various messages.
|
| 39 |
+
+ repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 7;
|
| 40 |
+
+
|
| 41 |
+
+ // Represents a mapping between Attribute Keys and Units.
|
| 42 |
+
+ repeated AttributeUnit attribute_units = 8;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
@@ -180,7 +205,6 @@ message ScopeProfiles {
|
| 47 |
+
// for ease of understanding data migration, it is not intended that pprof:Profile and
|
| 48 |
+
// OpenTelemetry:Profile encoding be wire compatible.
|
| 49 |
+
message Profile {
|
| 50 |
+
-
|
| 51 |
+
// A description of the samples associated with each Sample.value.
|
| 52 |
+
// For a cpu profile this might be:
|
| 53 |
+
// [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
|
| 54 |
+
@@ -192,62 +216,44 @@ message Profile {
|
| 55 |
+
repeated ValueType sample_type = 1;
|
| 56 |
+
// The set of samples recorded in this profile.
|
| 57 |
+
repeated Sample sample = 2;
|
| 58 |
+
- // Mapping from address ranges to the image/binary/library mapped
|
| 59 |
+
- // into that address range. mapping[0] will be the main binary.
|
| 60 |
+
- // If multiple binaries contribute to the Profile and no main
|
| 61 |
+
- // binary can be identified, mapping[0] has no special meaning.
|
| 62 |
+
- repeated Mapping mapping_table = 3;
|
| 63 |
+
- // Locations referenced by samples via location_indices.
|
| 64 |
+
- repeated Location location_table = 4;
|
| 65 |
+
- // Array of locations referenced by samples.
|
| 66 |
+
- repeated int32 location_indices = 5;
|
| 67 |
+
- // Functions referenced by locations.
|
| 68 |
+
- repeated Function function_table = 6;
|
| 69 |
+
- // Lookup table for attributes.
|
| 70 |
+
- repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 7;
|
| 71 |
+
- // Represents a mapping between Attribute Keys and Units.
|
| 72 |
+
- repeated AttributeUnit attribute_units = 8;
|
| 73 |
+
- // Lookup table for links.
|
| 74 |
+
- repeated Link link_table = 9;
|
| 75 |
+
- // A common table for strings referenced by various messages.
|
| 76 |
+
- // string_table[0] must always be "".
|
| 77 |
+
- repeated string string_table = 10;
|
| 78 |
+
|
| 79 |
+
- // The following fields 9-14 are informational, do not affect
|
| 80 |
+
+ // References to locations in ProfilesData.location_table.
|
| 81 |
+
+ repeated int32 location_indices = 3;
|
| 82 |
+
+
|
| 83 |
+
+ // The following fields 4-14 are informational, do not affect
|
| 84 |
+
// interpretation of results.
|
| 85 |
+
|
| 86 |
+
// Time of collection (UTC) represented as nanoseconds past the epoch.
|
| 87 |
+
- int64 time_nanos = 11;
|
| 88 |
+
+ int64 time_nanos = 4;
|
| 89 |
+
// Duration of the profile, if a duration makes sense.
|
| 90 |
+
- int64 duration_nanos = 12;
|
| 91 |
+
+ int64 duration_nanos = 5;
|
| 92 |
+
// The kind of events between sampled occurrences.
|
| 93 |
+
// e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
|
| 94 |
+
- ValueType period_type = 13;
|
| 95 |
+
+ ValueType period_type = 6;
|
| 96 |
+
// The number of events between sampled occurrences.
|
| 97 |
+
- int64 period = 14;
|
| 98 |
+
+ int64 period = 7;
|
| 99 |
+
// Free-form text associated with the profile. The text is displayed as is
|
| 100 |
+
// to the user by the tools that read profiles (e.g. by pprof). This field
|
| 101 |
+
// should not be used to store any machine-readable information, it is only
|
| 102 |
+
// for human-friendly content. The profile must stay functional if this field
|
| 103 |
+
// is cleaned.
|
| 104 |
+
- repeated int32 comment_strindices = 15; // Indices into string table.
|
| 105 |
+
+ repeated int32 comment_strindices = 8; // Indices into ProfilesData.string_table.
|
| 106 |
+
// Index into the sample_type array to the default sample type.
|
| 107 |
+
- int32 default_sample_type_index = 16;
|
| 108 |
+
-
|
| 109 |
+
+ int32 default_sample_type_index = 9;
|
| 110 |
+
|
| 111 |
+
// A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
|
| 112 |
+
// all zeroes is considered invalid.
|
| 113 |
+
//
|
| 114 |
+
// This field is required.
|
| 115 |
+
- bytes profile_id = 17;
|
| 116 |
+
+ bytes profile_id = 10;
|
| 117 |
+
|
| 118 |
+
// dropped_attributes_count is the number of attributes that were discarded. Attributes
|
| 119 |
+
// can be discarded because their keys are too long or because there are too many
|
| 120 |
+
// attributes. If this value is 0, then no attributes were dropped.
|
| 121 |
+
- uint32 dropped_attributes_count = 19;
|
| 122 |
+
+ uint32 dropped_attributes_count = 11;
|
| 123 |
+
|
| 124 |
+
// Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
|
| 125 |
+
- string original_payload_format = 20;
|
| 126 |
+
+ string original_payload_format = 12;
|
| 127 |
+
|
| 128 |
+
// Original payload can be stored in this field. This can be useful for users who want to get the original payload.
|
| 129 |
+
// Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
|
| 130 |
+
@@ -255,7 +261,7 @@ message Profile {
|
| 131 |
+
// If the original payload is in pprof format, it SHOULD not be included in this field.
|
| 132 |
+
// The field is optional, however if it is present then equivalent converted data should be populated in other fields
|
| 133 |
+
// of this message as far as is practicable.
|
| 134 |
+
- bytes original_payload = 21;
|
| 135 |
+
+ bytes original_payload = 13;
|
| 136 |
+
|
| 137 |
+
// References to attributes in attribute_table. [optional]
|
| 138 |
+
// It is a collection of key/value pairs. Note, global attributes
|
| 139 |
+
@@ -270,7 +276,7 @@ message Profile {
|
| 140 |
+
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
|
| 141 |
+
// Attribute keys MUST be unique (it is not allowed to have more than one
|
| 142 |
+
// attribute with the same key).
|
| 143 |
+
- repeated int32 attribute_indices = 22;
|
| 144 |
+
+ repeated int32 attribute_indices = 14;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
// Represents a mapping between Attribute Keys and Units.
|
| 148 |
+
@@ -362,8 +368,8 @@ enum AggregationTemporality {
|
| 149 |
+
|
| 150 |
+
// ValueType describes the type and units of a value, with an optional aggregation temporality.
|
| 151 |
+
message ValueType {
|
| 152 |
+
- int32 type_strindex = 1; // Index into string table.
|
| 153 |
+
- int32 unit_strindex = 2; // Index into string table.
|
| 154 |
+
+ int32 type_strindex = 1; // Index into ProfilesData.string_table.
|
| 155 |
+
+ int32 unit_strindex = 2; // Index into ProfilesData.string_table.
|
| 156 |
+
|
| 157 |
+
AggregationTemporality aggregation_temporality = 3;
|
| 158 |
+
}
|
| 159 |
+
@@ -385,10 +391,10 @@ message Sample {
|
| 160 |
+
// result has a list of values that is the element-wise sum of the
|
| 161 |
+
// lists of the originals.
|
| 162 |
+
repeated int64 value = 3;
|
| 163 |
+
- // References to attributes in Profile.attribute_table. [optional]
|
| 164 |
+
+ // References to attributes in ProfilesData.attribute_table. [optional]
|
| 165 |
+
repeated int32 attribute_indices = 4;
|
| 166 |
+
|
| 167 |
+
- // Reference to link in Profile.link_table. [optional]
|
| 168 |
+
+ // Reference to link in ProfilesData.link_table. [optional]
|
| 169 |
+
optional int32 link_index = 5;
|
| 170 |
+
|
| 171 |
+
// Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
|
| 172 |
+
@@ -408,8 +414,8 @@ message Mapping {
|
| 173 |
+
// The object this entry is loaded from. This can be a filename on
|
| 174 |
+
// disk for the main binary and shared libraries, or virtual
|
| 175 |
+
// abstractions like "[vdso]".
|
| 176 |
+
- int32 filename_strindex = 4; // Index into string table
|
| 177 |
+
- // References to attributes in Profile.attribute_table. [optional]
|
| 178 |
+
+ int32 filename_strindex = 4; // Index into ProfilesData.string_table.
|
| 179 |
+
+ // References to attributes in ProfilesData.attribute_table. [optional]
|
| 180 |
+
repeated int32 attribute_indices = 5;
|
| 181 |
+
// The following fields indicate the resolution of symbolic info.
|
| 182 |
+
bool has_functions = 6;
|
| 183 |
+
@@ -420,7 +426,7 @@ message Mapping {
|
| 184 |
+
|
| 185 |
+
// Describes function and line table debug information.
|
| 186 |
+
message Location {
|
| 187 |
+
- // Reference to mapping in Profile.mapping_table.
|
| 188 |
+
+ // Reference to mapping in ProfilesData.mapping_table.
|
| 189 |
+
// It can be unset if the mapping is unknown or not applicable for
|
| 190 |
+
// this profile type.
|
| 191 |
+
optional int32 mapping_index = 1;
|
| 192 |
+
@@ -445,13 +451,13 @@ message Location {
|
| 193 |
+
// profile changes.
|
| 194 |
+
bool is_folded = 4;
|
| 195 |
+
|
| 196 |
+
- // References to attributes in Profile.attribute_table. [optional]
|
| 197 |
+
+ // References to attributes in ProfilesData.attribute_table. [optional]
|
| 198 |
+
repeated int32 attribute_indices = 5;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
// Details a specific line in a source code, linked to a function.
|
| 202 |
+
message Line {
|
| 203 |
+
- // Reference to function in Profile.function_table.
|
| 204 |
+
+ // Reference to function in ProfilesData.function_table.
|
| 205 |
+
int32 function_index = 1;
|
| 206 |
+
// Line number in source code. 0 means unset.
|
| 207 |
+
int64 line = 2;
|
tasks/open-telemetry__opentelemetry-proto-644/tests/test.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
mkdir -p /logs/verifier
|
| 6 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json /logs/verifier/reward-details.json
|
| 7 |
+
CAPTURE_DIR="$(mktemp -d)" || exit 1
|
| 8 |
+
trap 'rm -rf -- "$CAPTURE_DIR"' EXIT
|
| 9 |
+
if ! python3 -I "$SCRIPT_DIR/capture.py" /workspace 42319f8b5bf330f7c3dd4a097384f9f6d5467450 > "$CAPTURE_DIR/predicted.patch"; then
|
| 10 |
+
echo "0.0" > /logs/verifier/reward.txt
|
| 11 |
+
printf '%s' '{"final_reward": 0.0, "evaluation_status": "graded", "eval_trustworthy": false, "capture_status": "error"}' > /logs/verifier/reward-details.json
|
| 12 |
+
exit 0
|
| 13 |
+
fi
|
| 14 |
+
rm -f /logs/verifier/predicted.patch
|
| 15 |
+
cp -- "$CAPTURE_DIR/predicted.patch" /logs/verifier/predicted.patch
|
| 16 |
+
: 'START_VERIFY_OUTPUT'
|
| 17 |
+
if ! python3 -I "$SCRIPT_DIR/verifier.py" \
|
| 18 |
+
"$SCRIPT_DIR/oracle.patch" \
|
| 19 |
+
"$CAPTURE_DIR/predicted.patch" \
|
| 20 |
+
"$SCRIPT_DIR/instruction.md"; then
|
| 21 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json
|
| 22 |
+
printf '%s' '{"final_reward": null, "reward": null, "evaluation_status": "ungraded", "eval_trustworthy": false, "verifier_status": "error"}' > /logs/verifier/reward-details.json
|
| 23 |
+
fi
|
| 24 |
+
: 'END_VERIFY_OUTPUT'
|
| 25 |
+
exit 0
|
tasks/open-telemetry__opentelemetry-proto-644/tests/verifier.py
ADDED
|
@@ -0,0 +1,737 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_diff tasks (6-component reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. Generation emits
|
| 5 |
+
its source as ``tests/verifier.py``. Harbor delivers it at verify time,
|
| 6 |
+
and ``tests/test.sh`` invokes it with the oracle, predicted patch and instruction.
|
| 7 |
+
|
| 8 |
+
Reward = weighted sum of 6 components (5 deterministic + 1 required LLM):
|
| 9 |
+
|
| 10 |
+
format_valid (0 or 1) — predicted parses as a unified diff (guard)
|
| 11 |
+
size_sanity ([0, 1]) — min(oracle_loc, pred_loc) / max(...)
|
| 12 |
+
catches "rampage through the codebase"
|
| 13 |
+
file_targeting ([0, 1]) — F1 over changed-file sets (NOT Jaccard —
|
| 14 |
+
symmetric penalty over-punishes extras)
|
| 15 |
+
region_overlap ([0, 1]) — predicted hunks overlap oracle hunks
|
| 16 |
+
(strongest spatial-localization signal)
|
| 17 |
+
similarity ([0, 1]) — SequenceMatcher ratio over +/- lines only
|
| 18 |
+
(no free credit for context lines)
|
| 19 |
+
llm_judge ([0, 1] or null) — an LLM rates "does this address the issue?"
|
| 20 |
+
Anthropic Haiku by default; any OpenAI-
|
| 21 |
+
compatible server via ``R2E_JUDGE_ENDPOINT``.
|
| 22 |
+
null when the judge is unavailable
|
| 23 |
+
(no key or model, network, unreadable
|
| 24 |
+
reply) → ungraded, no reward file; a
|
| 25 |
+
reply without a valid score (refusal,
|
| 26 |
+
content filter, empty, no "score") → a
|
| 27 |
+
graded 0
|
| 28 |
+
|
| 29 |
+
Default weights: 0.00 / 0.08 / 0.12 / 0.20 / 0.10 / 0.50 (retuned from
|
| 30 |
+
the original 0.05 / 0.05 / 0.10 / 0.20 / 0.20 / 0.40 after a 23-task
|
| 31 |
+
pilot — see the comment block above ``_DEFAULT_WEIGHTS`` below).
|
| 32 |
+
Override per-task via ``task.toml.metadata`` or per-run via env vars
|
| 33 |
+
``R2E_W_FORMAT`` / ``R2E_W_SIZE`` / ``R2E_W_FILE`` / ``R2E_W_REGION`` /
|
| 34 |
+
``R2E_W_SIM`` / ``R2E_W_JUDGE`` (pass via harbor ``--ve`` so they
|
| 35 |
+
reach the verifier container).
|
| 36 |
+
|
| 37 |
+
Judge routing, also via ``--ve``: ``R2E_JUDGE_MODEL`` picks the model
|
| 38 |
+
(default Haiku); ``R2E_JUDGE_ENDPOINT`` points at an OpenAI-compatible
|
| 39 |
+
server (vLLM, Ollama, a gateway) and switches the request to
|
| 40 |
+
``<endpoint>/chat/completions`` with a bearer token from
|
| 41 |
+
``R2E_JUDGE_API_KEY`` — or a placeholder when unset, since self-hosted
|
| 42 |
+
servers ignore it. ``ANTHROPIC_API_KEY`` is only read on the default
|
| 43 |
+
route and is never sent to a custom endpoint.
|
| 44 |
+
|
| 45 |
+
Final reward is clipped to [0, 1] and additionally clamped to ≤ 0.40
|
| 46 |
+
when ``size_sanity < 0.10`` (catastrophic-size hard cap — stops a
|
| 47 |
+
charitable judge from inflating scores on wildly wrong-sized patches).
|
| 48 |
+
|
| 49 |
+
Outputs (mirrors `_pr_runtime_verifier.py` after #75):
|
| 50 |
+
/logs/verifier/reward.txt — single float (Harbor reads this);
|
| 51 |
+
graded runs only
|
| 52 |
+
/logs/verifier/reward-details.json — full component breakdown + status
|
| 53 |
+
(structured diagnostics; Harbor's `reward.json` schema is flat-numeric-
|
| 54 |
+
only, so the breakdown goes to the `reward-details.json` sidecar which
|
| 55 |
+
Harbor renders under Verifier Logs → Rewards)
|
| 56 |
+
|
| 57 |
+
Pure stdlib — uses only ``difflib``, ``json``, ``os``, ``re``,
|
| 58 |
+
``urllib``, ``sys``. The same module is imported by the unit tests
|
| 59 |
+
under ``tests/test_pr_diff_verifier.py`` so the in-container behavior
|
| 60 |
+
stays in lockstep with what we test.
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
from __future__ import annotations
|
| 64 |
+
|
| 65 |
+
import argparse
|
| 66 |
+
import difflib
|
| 67 |
+
import json
|
| 68 |
+
import math
|
| 69 |
+
import os
|
| 70 |
+
import re
|
| 71 |
+
import sys
|
| 72 |
+
import urllib.error
|
| 73 |
+
import urllib.request
|
| 74 |
+
|
| 75 |
+
# ---------------------------------------------------------------------------
|
| 76 |
+
# Parsing helpers (shared by multiple components)
|
| 77 |
+
# ---------------------------------------------------------------------------
|
| 78 |
+
|
| 79 |
+
_DIFF_HEADER_RE = re.compile(r"^diff --git a/(\S+) b/(\S+)$")
|
| 80 |
+
_HUNK_HEADER_RE = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@")
|
| 81 |
+
_FILE_MARKER_RE = re.compile(r"^(?:---|\+\+\+) ")
|
| 82 |
+
_INDEX_RE = re.compile(r"^index ")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def file_paths(diff: str) -> set[str]:
|
| 86 |
+
"""Return the set of ``b/<path>`` paths touched by a unified diff."""
|
| 87 |
+
paths: set[str] = set()
|
| 88 |
+
for line in diff.splitlines():
|
| 89 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 90 |
+
if m:
|
| 91 |
+
paths.add(m.group(2))
|
| 92 |
+
return paths
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def hunk_ranges(diff: str) -> dict[str, list[tuple[int, int]]]:
|
| 96 |
+
"""For each touched file, return list of (start_line, end_line) ranges
|
| 97 |
+
on the **post-change** side (the ``+`` numbers in ``@@ -X +Y @@``).
|
| 98 |
+
"""
|
| 99 |
+
out: dict[str, list[tuple[int, int]]] = {}
|
| 100 |
+
current_file: str | None = None
|
| 101 |
+
for line in diff.splitlines():
|
| 102 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 103 |
+
if m:
|
| 104 |
+
current_file = m.group(2)
|
| 105 |
+
out.setdefault(current_file, [])
|
| 106 |
+
continue
|
| 107 |
+
m = _HUNK_HEADER_RE.match(line)
|
| 108 |
+
if m and current_file is not None:
|
| 109 |
+
new_start = int(m.group(3))
|
| 110 |
+
new_count = int(m.group(4) or "1")
|
| 111 |
+
end = new_start + max(new_count - 1, 0)
|
| 112 |
+
out[current_file].append((new_start, end))
|
| 113 |
+
return out
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def _normalize_changes_only(diff: str) -> list[str]:
|
| 117 |
+
"""Return the +/- lines (the actual changes) for similarity scoring.
|
| 118 |
+
|
| 119 |
+
Drops:
|
| 120 |
+
- ``diff --git`` / ``index abc..def`` metadata
|
| 121 |
+
- ``@@ ... @@`` hunk markers (volatile line numbers)
|
| 122 |
+
- context lines (no +/- prefix) — these are unchanged code, scoring
|
| 123 |
+
them inflates similarity for trivial patches
|
| 124 |
+
Keeps file-marker lines (``--- a/foo`` / ``+++ b/foo``) so file identity
|
| 125 |
+
stays in the comparison; normalizes off the tab+timestamp suffix git
|
| 126 |
+
sometimes appends.
|
| 127 |
+
"""
|
| 128 |
+
out: list[str] = []
|
| 129 |
+
for line in diff.splitlines():
|
| 130 |
+
if _DIFF_HEADER_RE.match(line) or _INDEX_RE.match(line):
|
| 131 |
+
continue
|
| 132 |
+
if _HUNK_HEADER_RE.match(line):
|
| 133 |
+
continue
|
| 134 |
+
if _FILE_MARKER_RE.match(line):
|
| 135 |
+
out.append(line.split("\t")[0].strip())
|
| 136 |
+
continue
|
| 137 |
+
# +/- lines (actual changes)
|
| 138 |
+
if line.startswith("+") or line.startswith("-"):
|
| 139 |
+
out.append(line)
|
| 140 |
+
return out
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
# ---------------------------------------------------------------------------
|
| 144 |
+
# Reward components
|
| 145 |
+
# ---------------------------------------------------------------------------
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def format_valid(predicted: str) -> float:
|
| 149 |
+
"""1.0 if the predicted text looks like a unified diff; else 0.0.
|
| 150 |
+
|
| 151 |
+
Requires both a ``diff --git`` header and at least one real +/- line
|
| 152 |
+
(not the ``---`` / ``+++`` file-marker lines).
|
| 153 |
+
"""
|
| 154 |
+
if not predicted.strip():
|
| 155 |
+
return 0.0
|
| 156 |
+
has_header = False
|
| 157 |
+
has_change = False
|
| 158 |
+
for line in predicted.splitlines():
|
| 159 |
+
if _DIFF_HEADER_RE.match(line):
|
| 160 |
+
has_header = True
|
| 161 |
+
elif (line.startswith("+") or line.startswith("-")) and not line.startswith(
|
| 162 |
+
("+++ ", "--- ")
|
| 163 |
+
):
|
| 164 |
+
has_change = True
|
| 165 |
+
if has_header and has_change:
|
| 166 |
+
return 1.0
|
| 167 |
+
return 0.0
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def file_targeting(oracle: str, predicted: str) -> float:
|
| 171 |
+
"""F1 over the changed-file sets.
|
| 172 |
+
|
| 173 |
+
Why F1 instead of Jaccard:
|
| 174 |
+
- Missing an oracle file (FN) is a *big* failure.
|
| 175 |
+
- Touching one unrelated extra file (FP) is a small one.
|
| 176 |
+
- Jaccard punishes both equally, which over-penalizes the agent
|
| 177 |
+
for any extra exploration.
|
| 178 |
+
- F1 weights TP twice, giving partial credit when the agent finds
|
| 179 |
+
most-but-not-all of the oracle files even with some noise.
|
| 180 |
+
|
| 181 |
+
Returns 1.0 if both sides touch zero files (degenerate).
|
| 182 |
+
"""
|
| 183 |
+
o = file_paths(oracle)
|
| 184 |
+
p = file_paths(predicted)
|
| 185 |
+
if not o and not p:
|
| 186 |
+
return 1.0
|
| 187 |
+
tp = len(o & p)
|
| 188 |
+
fn = len(o - p)
|
| 189 |
+
fp = len(p - o)
|
| 190 |
+
if tp == 0:
|
| 191 |
+
return 0.0
|
| 192 |
+
# F1 = 2·TP / (2·TP + FN + FP)
|
| 193 |
+
return (2 * tp) / (2 * tp + fn + fp)
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def _count_loc_changes(diff: str) -> int:
|
| 197 |
+
"""Number of real +/- lines (excluding file-marker lines)."""
|
| 198 |
+
n = 0
|
| 199 |
+
for line in diff.splitlines():
|
| 200 |
+
if (line.startswith("+") or line.startswith("-")) and not line.startswith(("+++ ", "--- ")):
|
| 201 |
+
n += 1
|
| 202 |
+
return n
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def size_sanity(oracle: str, predicted: str) -> float:
|
| 206 |
+
"""Penalize predicted patches that are wildly larger / smaller than the oracle.
|
| 207 |
+
|
| 208 |
+
Returns ``min(oracle_loc, predicted_loc) / max(oracle_loc, predicted_loc)``.
|
| 209 |
+
Both empty → 1.0 (degenerate but well-defined). One empty → 0.0.
|
| 210 |
+
|
| 211 |
+
This is the "don't rampage through the codebase" guard — a 200-line
|
| 212 |
+
diff for a 3-line oracle scores ~0.015 here even if every other
|
| 213 |
+
component looks OK.
|
| 214 |
+
"""
|
| 215 |
+
o_loc = _count_loc_changes(oracle)
|
| 216 |
+
p_loc = _count_loc_changes(predicted)
|
| 217 |
+
if o_loc == 0 and p_loc == 0:
|
| 218 |
+
return 1.0
|
| 219 |
+
if o_loc == 0 or p_loc == 0:
|
| 220 |
+
return 0.0
|
| 221 |
+
return min(o_loc, p_loc) / max(o_loc, p_loc)
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def region_overlap(oracle: str, predicted: str, *, slack_lines: int = 5) -> float:
|
| 225 |
+
"""For each oracle hunk, did the predicted diff edit a line within
|
| 226 |
+
``slack_lines`` of that hunk in the same file?
|
| 227 |
+
|
| 228 |
+
Returns the fraction of oracle hunks that have at least one matching
|
| 229 |
+
predicted hunk. ``slack_lines`` tolerates slight line-number drift
|
| 230 |
+
when git diff renders the predicted hunk at a different offset.
|
| 231 |
+
"""
|
| 232 |
+
o_ranges = hunk_ranges(oracle)
|
| 233 |
+
p_ranges = hunk_ranges(predicted)
|
| 234 |
+
total = sum(len(v) for v in o_ranges.values())
|
| 235 |
+
if total == 0:
|
| 236 |
+
return 1.0 # oracle has no hunks (degenerate)
|
| 237 |
+
matched = 0
|
| 238 |
+
for fname, ranges in o_ranges.items():
|
| 239 |
+
p_in_file = p_ranges.get(fname, [])
|
| 240 |
+
for o_start, o_end in ranges:
|
| 241 |
+
for p_start, p_end in p_in_file:
|
| 242 |
+
# Interval overlap with slack — max(starts) <= min(ends) + slack
|
| 243 |
+
if max(o_start, p_start) <= min(o_end, p_end) + slack_lines:
|
| 244 |
+
matched += 1
|
| 245 |
+
break
|
| 246 |
+
return matched / total
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
def similarity(oracle: str, predicted: str) -> float:
|
| 250 |
+
"""SequenceMatcher ratio over +/- lines only.
|
| 251 |
+
|
| 252 |
+
No free credit for context lines — fixes the v0.8.1 inflation where a
|
| 253 |
+
one-line fix scored ~0.7 just because the 3 context lines on either
|
| 254 |
+
side were "matched".
|
| 255 |
+
"""
|
| 256 |
+
if not predicted.strip():
|
| 257 |
+
return 0.0
|
| 258 |
+
o = _normalize_changes_only(oracle)
|
| 259 |
+
p = _normalize_changes_only(predicted)
|
| 260 |
+
if not o:
|
| 261 |
+
return 0.0
|
| 262 |
+
# Exact matching is quadratic-or-worse on repeated lines: 200 x 2,000
|
| 263 |
+
# identical changed lines take ~2 s, 500 x 5,000 take ~35 s, which can
|
| 264 |
+
# run the verifier past Harbor's timeout. Above this many line pairs,
|
| 265 |
+
# fall back to difflib's popular-element heuristic, which stays fast.
|
| 266 |
+
exact = len(o) * len(p) <= _SIMILARITY_EXACT_PAIRS
|
| 267 |
+
return difflib.SequenceMatcher(a=o, b=p, autojunk=not exact).ratio()
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
_SIMILARITY_EXACT_PAIRS = 400_000
|
| 271 |
+
|
| 272 |
+
# A predicted patch over 10x the oracle's changed lines is already a
|
| 273 |
+
# catastrophic size mismatch (size_sanity < 0.10). Past this floor such a
|
| 274 |
+
# patch is a graded 0 instead of being scored, so one huge file can't slow
|
| 275 |
+
# the verifier past its timeout and turn a failing episode into a dropped,
|
| 276 |
+
# ungraded one. The byte cap stops it from being read at all.
|
| 277 |
+
_MAX_PREDICTED_FACTOR = 10
|
| 278 |
+
_MAX_PREDICTED_FLOOR_LOC = 1_000
|
| 279 |
+
_MAX_PREDICTED_BYTES = 16 * 1024 * 1024
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
def predicted_too_large(oracle: str, predicted: str) -> bool:
|
| 283 |
+
"""Whether the predicted patch is too large to score (a graded 0)."""
|
| 284 |
+
limit = max(_MAX_PREDICTED_FACTOR * _count_loc_changes(oracle), _MAX_PREDICTED_FLOOR_LOC)
|
| 285 |
+
return _count_loc_changes(predicted) > limit
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
# LLM-as-judge (Anthropic Messages API, stdlib urllib)
|
| 290 |
+
# ---------------------------------------------------------------------------
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
_JUDGE_PROMPT = (
|
| 294 |
+
"You are scoring a code-fix patch on whether it logically addresses the "
|
| 295 |
+
"described issue. Output a single JSON object: "
|
| 296 |
+
'{{"score": <float in [0,1]>, "reasoning": "<<=30 words"}}.\n\n'
|
| 297 |
+
"DO NOT use the oracle to grade. Score on:\n"
|
| 298 |
+
" - Does the predicted diff touch code regions that could plausibly fix the issue?\n"
|
| 299 |
+
" - Is the change direction consistent with what the issue describes?\n"
|
| 300 |
+
" - Is it a real attempt (not boilerplate, not no-op)?\n\n"
|
| 301 |
+
"Issue:\n{instruction}\n\n"
|
| 302 |
+
"Oracle (reference fix for comparison only — don't grade on similarity to it):\n"
|
| 303 |
+
"{oracle}\n\n"
|
| 304 |
+
"Predicted:\n{predicted}\n\n"
|
| 305 |
+
"Return ONLY the JSON object."
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
_DEFAULT_JUDGE_MODEL = "claude-haiku-4-5-20251001"
|
| 310 |
+
_ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages"
|
| 311 |
+
# Bearer token for a self-hosted judge when R2E_JUDGE_API_KEY is unset. vLLM /
|
| 312 |
+
# Ollama ignore it; the OpenAI wire format still wants one. Same value llm.py uses.
|
| 313 |
+
_PLACEHOLDER_API_KEY = "EMPTY"
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def llm_judge(
|
| 317 |
+
*,
|
| 318 |
+
instruction: str,
|
| 319 |
+
oracle: str,
|
| 320 |
+
predicted: str,
|
| 321 |
+
api_key: str,
|
| 322 |
+
model: str = _DEFAULT_JUDGE_MODEL,
|
| 323 |
+
timeout: int = 60,
|
| 324 |
+
endpoint: str | None = None,
|
| 325 |
+
) -> tuple[float | None, str]:
|
| 326 |
+
"""Return ``(score, status)``.
|
| 327 |
+
|
| 328 |
+
``score`` is a float in [0, 1] on success, ``None`` on failure.
|
| 329 |
+
``status`` is a short string: ``"ok"`` / ``"no_api_key"`` /
|
| 330 |
+
``"no_judge_model"`` / ``"empty_predicted"`` / ``"network"`` /
|
| 331 |
+
``"parse"`` / ``"output_limit"`` / ``"missing_score"`` / ``"invalid_score"``.
|
| 332 |
+
``output_limit`` means the judge exhausted its configured token budget
|
| 333 |
+
(ungraded, even if a partial answer contains a score). ``parse`` means
|
| 334 |
+
the provider's body isn't JSON or has the wrong shape (ungraded); a reply
|
| 335 |
+
with no usable text (refusal, content filter, empty) or no valid score is
|
| 336 |
+
``missing_score`` / ``invalid_score`` (a graded 0). A missing score never
|
| 337 |
+
increases the other weights.
|
| 338 |
+
|
| 339 |
+
``endpoint`` — base URL of an OpenAI-compatible server. When set, the
|
| 340 |
+
request goes to ``<endpoint>/chat/completions`` with ``api_key`` as a
|
| 341 |
+
bearer token, at temperature 0, and ``model`` must be given explicitly;
|
| 342 |
+
otherwise it goes to Anthropic's Messages API unchanged.
|
| 343 |
+
"""
|
| 344 |
+
if not api_key:
|
| 345 |
+
return None, "no_api_key"
|
| 346 |
+
if endpoint and not model:
|
| 347 |
+
return None, "no_judge_model"
|
| 348 |
+
if not predicted.strip():
|
| 349 |
+
return 0.0, "empty_predicted"
|
| 350 |
+
|
| 351 |
+
# Truncate hard so we don't blow up the prompt for big diffs
|
| 352 |
+
prompt = _JUDGE_PROMPT.format(
|
| 353 |
+
instruction=instruction[:4000],
|
| 354 |
+
oracle=oracle[:4000],
|
| 355 |
+
predicted=predicted[:4000],
|
| 356 |
+
)
|
| 357 |
+
payload: dict = {
|
| 358 |
+
"model": model,
|
| 359 |
+
"max_tokens": 200,
|
| 360 |
+
"messages": [{"role": "user", "content": prompt}],
|
| 361 |
+
}
|
| 362 |
+
if endpoint:
|
| 363 |
+
# Small self-hosted models are noisy judges at their default sampling
|
| 364 |
+
# temperature (same input scoring 0.0 one call and 1.0 the next); pin
|
| 365 |
+
# them to greedy. The Anthropic route keeps its defaults — the weights
|
| 366 |
+
# were calibrated against them.
|
| 367 |
+
payload["temperature"] = 0
|
| 368 |
+
url = endpoint.rstrip("/") + "/chat/completions"
|
| 369 |
+
headers = {
|
| 370 |
+
"authorization": f"Bearer {api_key}",
|
| 371 |
+
"content-type": "application/json",
|
| 372 |
+
}
|
| 373 |
+
else:
|
| 374 |
+
url = _ANTHROPIC_MESSAGES_URL
|
| 375 |
+
headers = {
|
| 376 |
+
"x-api-key": api_key,
|
| 377 |
+
"anthropic-version": "2023-06-01",
|
| 378 |
+
"content-type": "application/json",
|
| 379 |
+
}
|
| 380 |
+
body = json.dumps(payload).encode("utf-8")
|
| 381 |
+
req = urllib.request.Request(url, data=body, headers=headers, method="POST")
|
| 382 |
+
try:
|
| 383 |
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
| 384 |
+
raw = resp.read().decode("utf-8")
|
| 385 |
+
except (urllib.error.URLError, urllib.error.HTTPError, TimeoutError, OSError):
|
| 386 |
+
return None, "network"
|
| 387 |
+
|
| 388 |
+
try:
|
| 389 |
+
response = json.loads(raw)
|
| 390 |
+
except json.JSONDecodeError:
|
| 391 |
+
return None, "parse"
|
| 392 |
+
# Provider-reported truncation is a grader capacity failure, not evidence
|
| 393 |
+
# that the submitted patch is wrong. Reasoning models can spend the entire
|
| 394 |
+
# output budget before producing visible text. Never grade a partial score.
|
| 395 |
+
if isinstance(response, dict):
|
| 396 |
+
choices = response.get("choices")
|
| 397 |
+
if endpoint:
|
| 398 |
+
if (
|
| 399 |
+
isinstance(choices, list)
|
| 400 |
+
and choices
|
| 401 |
+
and isinstance(choices[0], dict)
|
| 402 |
+
and choices[0].get("finish_reason") == "length"
|
| 403 |
+
):
|
| 404 |
+
return None, "output_limit"
|
| 405 |
+
elif response.get("stop_reason") in {"max_tokens", "model_context_window_exceeded"}:
|
| 406 |
+
return None, "output_limit"
|
| 407 |
+
text = _judge_text(response, openai_compatible=bool(endpoint))
|
| 408 |
+
if text is None:
|
| 409 |
+
return None, "parse"
|
| 410 |
+
|
| 411 |
+
# Pull the first JSON object out of the model's response
|
| 412 |
+
m = re.search(r"\{[^{}]*\"score\"[^{}]*\}", text, re.DOTALL)
|
| 413 |
+
if not m:
|
| 414 |
+
return None, "missing_score"
|
| 415 |
+
try:
|
| 416 |
+
obj = json.loads(m.group(0))
|
| 417 |
+
score = obj.get("score")
|
| 418 |
+
except (json.JSONDecodeError, ValueError, TypeError):
|
| 419 |
+
return None, "missing_score"
|
| 420 |
+
if type(score) not in (int, float) or not 0 <= score <= 1 or not math.isfinite(score):
|
| 421 |
+
return None, "invalid_score"
|
| 422 |
+
return float(score), "ok"
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
def _judge_text(payload: object, *, openai_compatible: bool) -> str | None:
|
| 426 |
+
"""The judge's answer text, ``""`` when it gave none, ``None`` for a wrong shape.
|
| 427 |
+
|
| 428 |
+
A refusal or a content filter is a well-formed reply with no usable text.
|
| 429 |
+
The agent's patch is in the prompt, so it can provoke one: that is ``""``,
|
| 430 |
+
which grades 0, not ``None``, which leaves the run ungraded.
|
| 431 |
+
|
| 432 |
+
Anthropic: a refusal is HTTP 200 with ``stop_reason: "refusal"`` and
|
| 433 |
+
``content`` empty or holding partial text to discard. OpenAI-compatible:
|
| 434 |
+
``message.content`` is null with a ``refusal`` string or
|
| 435 |
+
``finish_reason: "content_filter"``.
|
| 436 |
+
"""
|
| 437 |
+
if not isinstance(payload, dict):
|
| 438 |
+
return None
|
| 439 |
+
if openai_compatible:
|
| 440 |
+
choices = payload.get("choices")
|
| 441 |
+
if not isinstance(choices, list) or not choices or not isinstance(choices[0], dict):
|
| 442 |
+
return None
|
| 443 |
+
message = choices[0].get("message")
|
| 444 |
+
if not isinstance(message, dict):
|
| 445 |
+
return None
|
| 446 |
+
if message.get("refusal") or choices[0].get("finish_reason") == "content_filter":
|
| 447 |
+
return ""
|
| 448 |
+
content = message.get("content")
|
| 449 |
+
if content is None:
|
| 450 |
+
return ""
|
| 451 |
+
if isinstance(content, str):
|
| 452 |
+
return content
|
| 453 |
+
if isinstance(content, list): # content parts
|
| 454 |
+
return "".join(
|
| 455 |
+
part.get("text", "")
|
| 456 |
+
for part in content
|
| 457 |
+
if isinstance(part, dict) and isinstance(part.get("text", ""), str)
|
| 458 |
+
)
|
| 459 |
+
return None
|
| 460 |
+
content = payload.get("content")
|
| 461 |
+
if not isinstance(content, list):
|
| 462 |
+
return None
|
| 463 |
+
if payload.get("stop_reason") == "refusal":
|
| 464 |
+
return ""
|
| 465 |
+
return "".join(
|
| 466 |
+
block["text"]
|
| 467 |
+
for block in content
|
| 468 |
+
if isinstance(block, dict)
|
| 469 |
+
and block.get("type", "text") == "text"
|
| 470 |
+
and isinstance(block.get("text"), str)
|
| 471 |
+
)
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
# ---------------------------------------------------------------------------
|
| 475 |
+
# Combination
|
| 476 |
+
# ---------------------------------------------------------------------------
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
# Judge replies the agent can provoke: its patch text is part of the judge
|
| 480 |
+
# prompt, so it can steer the answer away from a valid score. These are a
|
| 481 |
+
# graded 0. An unreadable provider envelope (`parse`), missing configuration,
|
| 482 |
+
# a disabled judge, transport errors and an exhausted judge output budget leave
|
| 483 |
+
# the evaluation ungraded. Truncation alone cannot establish an incorrect patch.
|
| 484 |
+
_JUDGE_GRADED_ZERO = frozenset({"missing_score", "invalid_score"})
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def evaluation_status(judge_score: float | None, judge_status: str) -> str:
|
| 488 |
+
"""`graded` when the judge scored or the agent can have caused its failure."""
|
| 489 |
+
if judge_score is not None or judge_status in _JUDGE_GRADED_ZERO:
|
| 490 |
+
return "graded"
|
| 491 |
+
return "ungraded"
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
def combine(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 495 |
+
"""Combine declared components, requiring a positively weighted judge.
|
| 496 |
+
|
| 497 |
+
Without a judge score the result is 0. ``main`` records it as a graded 0
|
| 498 |
+
when the agent can have caused the judge failure, and otherwise writes no
|
| 499 |
+
reward file, so Harbor reports the trial as VERIFIER_FAILED.
|
| 500 |
+
"""
|
| 501 |
+
if weights.get("llm_judge", 0) <= 0 or components.get("llm_judge") is None:
|
| 502 |
+
return 0.0
|
| 503 |
+
if any(w > 0 and components.get(k) is None for k, w in weights.items()):
|
| 504 |
+
return 0.0
|
| 505 |
+
return _weighted_mean(components, weights)
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
def _weighted_mean(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 509 |
+
available = [(k, w) for k, w in weights.items() if w > 0 and components.get(k) is not None]
|
| 510 |
+
if not available:
|
| 511 |
+
return 0.0
|
| 512 |
+
# Relative weights need not sum to one. Scale first so large finite
|
| 513 |
+
# overrides cannot overflow the numerator or denominator into NaN.
|
| 514 |
+
scale = max(w for _, w in available)
|
| 515 |
+
normalized = [(k, w / scale) for k, w in available]
|
| 516 |
+
return sum(w * components[k] for k, w in normalized) / sum(w for _, w in normalized)
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
# ---------------------------------------------------------------------------
|
| 520 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 521 |
+
# ---------------------------------------------------------------------------
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
# Weights retuned after a 23-task pilot. Rationale (LLM-as-reward-engineer
|
| 525 |
+
# analysis grounded in per-task component data):
|
| 526 |
+
#
|
| 527 |
+
# - format_valid → 0.00: was 1.0 across ALL 21 evaluated tasks. Zero
|
| 528 |
+
# discriminative signal — its 0.05 weight was pure dead weight.
|
| 529 |
+
# - similarity → 0.10: Pearson ~0.85 correlation with region_overlap.
|
| 530 |
+
# Carrying both at 0.20 double-counts positional accuracy and
|
| 531 |
+
# additionally penalizes legitimate alternative implementations.
|
| 532 |
+
# - llm_judge → 0.50: only component capturing semantic correctness
|
| 533 |
+
# independent of textual form; diverges informatively from
|
| 534 |
+
# similarity on cases like tokenizers (judge=0.72, sim=0.08).
|
| 535 |
+
# - region_overlap stays 0.20: strongest spatial-localization signal.
|
| 536 |
+
# - file_targeting → 0.12: leading indicator, less correlated with the
|
| 537 |
+
# rest than region/similarity are with each other.
|
| 538 |
+
# - size_sanity → 0.08: useful outlier detector for catastrophic
|
| 539 |
+
# over/under-generation (prettier=0.01, serde=0.08).
|
| 540 |
+
#
|
| 541 |
+
# Total: 0.00 + 0.08 + 0.12 + 0.20 + 0.10 + 0.50 = 1.00.
|
| 542 |
+
_DEFAULT_WEIGHTS = {
|
| 543 |
+
"format_valid": 0.00,
|
| 544 |
+
"size_sanity": 0.08,
|
| 545 |
+
"file_targeting": 0.12,
|
| 546 |
+
"region_overlap": 0.20,
|
| 547 |
+
"similarity": 0.10,
|
| 548 |
+
"llm_judge": 0.50,
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
# Hard cap: when size_sanity < this threshold, clamp final reward to
|
| 552 |
+
# ≤ CATASTROPHIC_SIZE_CAP. Prevents a charitable judge from inflating
|
| 553 |
+
# the score on patches that are wildly the wrong size (catastrophic
|
| 554 |
+
# over- or under-generation).
|
| 555 |
+
_CATASTROPHIC_SIZE_THRESHOLD = 0.10
|
| 556 |
+
_CATASTROPHIC_SIZE_CAP = 0.40
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
def _read_weights_from_env() -> dict[str, float]:
|
| 560 |
+
"""Override defaults via R2E_W_* env vars (set in container by harbor)."""
|
| 561 |
+
overrides = {
|
| 562 |
+
"format_valid": os.environ.get("R2E_W_FORMAT"),
|
| 563 |
+
"size_sanity": os.environ.get("R2E_W_SIZE"),
|
| 564 |
+
"file_targeting": os.environ.get("R2E_W_FILE"),
|
| 565 |
+
"region_overlap": os.environ.get("R2E_W_REGION"),
|
| 566 |
+
"similarity": os.environ.get("R2E_W_SIM"),
|
| 567 |
+
"llm_judge": os.environ.get("R2E_W_JUDGE"),
|
| 568 |
+
}
|
| 569 |
+
out = dict(_DEFAULT_WEIGHTS)
|
| 570 |
+
for k, v in overrides.items():
|
| 571 |
+
if v is None:
|
| 572 |
+
continue
|
| 573 |
+
try:
|
| 574 |
+
value = float(v)
|
| 575 |
+
if math.isfinite(value) and value >= 0:
|
| 576 |
+
out[k] = value
|
| 577 |
+
except (TypeError, ValueError):
|
| 578 |
+
continue
|
| 579 |
+
return out
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
def _judge_config_from_env() -> tuple[str, str, str | None]:
|
| 583 |
+
"""``(api_key, model, endpoint)`` for the judge, from the verifier env.
|
| 584 |
+
|
| 585 |
+
With ``R2E_JUDGE_ENDPOINT`` set, the key comes from ``R2E_JUDGE_API_KEY``
|
| 586 |
+
(placeholder when unset) and ``ANTHROPIC_API_KEY`` is never forwarded to
|
| 587 |
+
the custom server. ``R2E_JUDGE_MODEL`` has no default on that route (a
|
| 588 |
+
self-hosted server won't have Haiku): when unset, ``model`` comes back
|
| 589 |
+
as ``""`` and ``llm_judge`` reports ``no_judge_model`` instead of
|
| 590 |
+
calling out. Without an endpoint the default Anthropic route is
|
| 591 |
+
unchanged.
|
| 592 |
+
"""
|
| 593 |
+
endpoint = os.environ.get("R2E_JUDGE_ENDPOINT", "").strip() or None
|
| 594 |
+
model = os.environ.get("R2E_JUDGE_MODEL", "").strip()
|
| 595 |
+
if endpoint:
|
| 596 |
+
api_key = os.environ.get("R2E_JUDGE_API_KEY", "").strip() or _PLACEHOLDER_API_KEY
|
| 597 |
+
return api_key, model, endpoint
|
| 598 |
+
return os.environ.get("ANTHROPIC_API_KEY", "").strip(), model or _DEFAULT_JUDGE_MODEL, None
|
| 599 |
+
|
| 600 |
+
|
| 601 |
+
def main(argv: list[str] | None = None) -> int:
|
| 602 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 603 |
+
parser.add_argument("oracle")
|
| 604 |
+
parser.add_argument("predicted")
|
| 605 |
+
parser.add_argument("instruction")
|
| 606 |
+
parser.add_argument("--out-dir", default="/logs/verifier")
|
| 607 |
+
args = parser.parse_args(argv)
|
| 608 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 609 |
+
# This run is the only authority on the reward: an earlier or planted
|
| 610 |
+
# reward file must not stand if this evaluation ends up ungraded.
|
| 611 |
+
for name in ("reward.txt", "reward.json"):
|
| 612 |
+
try:
|
| 613 |
+
os.unlink(os.path.join(args.out_dir, name))
|
| 614 |
+
except FileNotFoundError:
|
| 615 |
+
pass
|
| 616 |
+
oracle = _read_or_empty(args.oracle)
|
| 617 |
+
try:
|
| 618 |
+
oversized = os.path.getsize(args.predicted) > _MAX_PREDICTED_BYTES
|
| 619 |
+
except OSError:
|
| 620 |
+
oversized = False
|
| 621 |
+
predicted = "" if oversized else _read_or_empty(args.predicted)
|
| 622 |
+
if oversized or predicted_too_large(oracle, predicted):
|
| 623 |
+
breakdown = {
|
| 624 |
+
"final_reward": 0.0,
|
| 625 |
+
"evaluation_status": "graded",
|
| 626 |
+
"eval_trustworthy": False,
|
| 627 |
+
"predicted_status": "predicted_too_large",
|
| 628 |
+
}
|
| 629 |
+
_write_outputs(args.out_dir, 0.0, breakdown)
|
| 630 |
+
return 0
|
| 631 |
+
instruction = _read_or_empty(args.instruction)
|
| 632 |
+
api_key, judge_model, judge_endpoint = _judge_config_from_env()
|
| 633 |
+
|
| 634 |
+
fv = format_valid(predicted)
|
| 635 |
+
ss = size_sanity(oracle, predicted)
|
| 636 |
+
ft = file_targeting(oracle, predicted)
|
| 637 |
+
ro = region_overlap(oracle, predicted)
|
| 638 |
+
sim = similarity(oracle, predicted)
|
| 639 |
+
weights = _read_weights_from_env()
|
| 640 |
+
if weights["llm_judge"] <= 0:
|
| 641 |
+
judge_score, judge_status = None, "disabled"
|
| 642 |
+
else:
|
| 643 |
+
judge_score, judge_status = llm_judge(
|
| 644 |
+
instruction=instruction,
|
| 645 |
+
oracle=oracle,
|
| 646 |
+
predicted=predicted,
|
| 647 |
+
api_key=api_key,
|
| 648 |
+
model=judge_model,
|
| 649 |
+
endpoint=judge_endpoint,
|
| 650 |
+
)
|
| 651 |
+
|
| 652 |
+
components: dict[str, float | None] = {
|
| 653 |
+
"format_valid": fv,
|
| 654 |
+
"size_sanity": ss,
|
| 655 |
+
"file_targeting": ft,
|
| 656 |
+
"region_overlap": ro,
|
| 657 |
+
"similarity": sim,
|
| 658 |
+
"llm_judge": judge_score,
|
| 659 |
+
}
|
| 660 |
+
final = combine(components, weights)
|
| 661 |
+
final = max(0.0, min(1.0, final))
|
| 662 |
+
|
| 663 |
+
# Hard cap on catastrophic size mismatches. Without this, a charitable
|
| 664 |
+
# judge can inflate the reward on patches that are dramatically the
|
| 665 |
+
# wrong size (prettier scored 0.23 with size_sanity=0.011 — the judge
|
| 666 |
+
# was lenient at 0.25 despite the patch being a near-no-op vs a
|
| 667 |
+
# 500-line oracle). The cap kicks in only at the extremes.
|
| 668 |
+
if ss < _CATASTROPHIC_SIZE_THRESHOLD:
|
| 669 |
+
final = min(final, _CATASTROPHIC_SIZE_CAP)
|
| 670 |
+
|
| 671 |
+
status = evaluation_status(judge_score, judge_status)
|
| 672 |
+
breakdown = {
|
| 673 |
+
# No reward exists for an ungraded evaluation: null, not a placeholder 0.
|
| 674 |
+
"final_reward": round(final, 6) if status == "graded" else None,
|
| 675 |
+
"evaluation_status": status,
|
| 676 |
+
"eval_trustworthy": judge_score is not None,
|
| 677 |
+
"diagnostic_similarity": round(
|
| 678 |
+
_weighted_mean(components, {k: w for k, w in weights.items() if k != "llm_judge"}),
|
| 679 |
+
6,
|
| 680 |
+
),
|
| 681 |
+
"components": {k: (None if v is None else round(v, 6)) for k, v in components.items()},
|
| 682 |
+
"weights": {k: round(v, 6) for k, v in weights.items()},
|
| 683 |
+
"judge_model": judge_model if judge_status == "ok" else None,
|
| 684 |
+
"judge_endpoint": judge_endpoint,
|
| 685 |
+
"judge_status": judge_status,
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
_write_outputs(args.out_dir, final, breakdown)
|
| 689 |
+
return 0
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
def _write_outputs(out_dir: str, final: float, breakdown: dict) -> None:
|
| 693 |
+
# An ungraded evaluation writes no reward file. Harbor then raises
|
| 694 |
+
# RewardFileNotFoundError: the trial is VERIFIER_FAILED, reward_valid is
|
| 695 |
+
# false, and RL consumers (OpenEnv harbor_env -> TRL) drop the rollout
|
| 696 |
+
# instead of training on a 0. Harbor's job mean and pass@k still count the
|
| 697 |
+
# trial as 0, so evaluation stays fail-closed.
|
| 698 |
+
if breakdown["evaluation_status"] == "graded":
|
| 699 |
+
with open(os.path.join(out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 700 |
+
f.write(f"{final:.6f}\n")
|
| 701 |
+
# Harbor's `reward.json` must be a flat map of floats/ints (spec, see
|
| 702 |
+
# <https://harborframework.com/docs/tasks>); our breakdown carries nested
|
| 703 |
+
# dicts, judge strings, and status strings, so it goes to the sidecar the
|
| 704 |
+
# Harbor UI renders under Verifier Logs → Rewards. Mirrors #75 (Neubig)
|
| 705 |
+
# for `_pr_runtime_verifier.py`.
|
| 706 |
+
with open(os.path.join(out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 707 |
+
json.dump(breakdown, f, indent=2)
|
| 708 |
+
|
| 709 |
+
# Also print to stdout so harbor's log captures the breakdown
|
| 710 |
+
print(json.dumps(breakdown, indent=2))
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
def _read_or_empty(path: str) -> str:
|
| 714 |
+
try:
|
| 715 |
+
with open(path, encoding="utf-8") as f:
|
| 716 |
+
return f.read()
|
| 717 |
+
except (OSError, UnicodeDecodeError):
|
| 718 |
+
return ""
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
if __name__ == "__main__":
|
| 722 |
+
sys.exit(main())
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
__all__ = [
|
| 726 |
+
"combine",
|
| 727 |
+
"file_paths",
|
| 728 |
+
"file_targeting",
|
| 729 |
+
"format_valid",
|
| 730 |
+
"hunk_ranges",
|
| 731 |
+
"llm_judge",
|
| 732 |
+
"main",
|
| 733 |
+
"predicted_too_large",
|
| 734 |
+
"region_overlap",
|
| 735 |
+
"similarity",
|
| 736 |
+
"size_sanity",
|
| 737 |
+
]
|
tasks/open-telemetry__opentelemetry-proto-649/environment/Dockerfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_diff — 6-component reward env.
|
| 2 |
+
# Agent-agnostic: the agent (claude-code / openhands / codex / etc.)
|
| 3 |
+
# installs itself at run time via its harbor adapter. We only ship
|
| 4 |
+
# the source repo — the oracle + verifier arrive at verify time via
|
| 5 |
+
# tests/, never baked into the agent's image.
|
| 6 |
+
FROM python:3.12-slim
|
| 7 |
+
ARG GITHUB_TOKEN=
|
| 8 |
+
RUN apt-get update \
|
| 9 |
+
&& apt-get install -y --no-install-recommends git ca-certificates curl \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
RUN git config --global --add safe.directory /workspace \
|
| 12 |
+
&& git config --global init.defaultBranch main \
|
| 13 |
+
&& git config --global advice.detachedHead false
|
| 14 |
+
RUN if [ -n "$GITHUB_TOKEN" ]; then \
|
| 15 |
+
git clone --filter=blob:none https://x-access-token:"${GITHUB_TOKEN}"@github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 16 |
+
else \
|
| 17 |
+
git clone --filter=blob:none https://github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 18 |
+
fi \
|
| 19 |
+
&& git -C /workspace remote set-url origin https://github.com/open-telemetry/opentelemetry-proto.git
|
| 20 |
+
WORKDIR /workspace
|
| 21 |
+
RUN git fetch --depth 1 origin f9b6977c94d84da4dbd02c5ea5b607bcab4a52a5 2>/dev/null \
|
| 22 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 23 |
+
RUN git reset --hard f9b6977c94d84da4dbd02c5ea5b607bcab4a52a5 \
|
| 24 |
+
&& git clean -fdx -e .venv -e venv -e __pycache__
|
| 25 |
+
RUN git checkout -q -B base f9b6977c94d84da4dbd02c5ea5b607bcab4a52a5 \
|
| 26 |
+
&& git remote remove origin 2>/dev/null || true
|
| 27 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 28 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 29 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 30 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 31 |
+
&& git gc --prune=now 2>/dev/null || true
|
| 32 |
+
RUN P="$(git rev-parse --git-dir)/objects/pack"; if ls "$P"/*.promisor >/dev/null 2>&1; then \
|
| 33 |
+
git rev-list --objects --all --missing=allow-promisor > "$P/../scrub.list" \
|
| 34 |
+
&& K=$(git pack-objects -q --missing=allow-promisor "$P/scrub" < "$P/../scrub.list") \
|
| 35 |
+
&& rm -f "$P/../scrub.list" "$P"/pack-* "$P"/multi-pack-index* \
|
| 36 |
+
&& touch "$P/scrub-$K.promisor" && git prune --expire=now; \
|
| 37 |
+
fi
|
tasks/open-telemetry__opentelemetry-proto-649/instruction.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** profiles: use single Profile.sample_type and clarify use of timestamps
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
Implements
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
FYI: @open-telemetry/profiling-approvers
|
| 11 |
+
|
| 12 |
+
## Task
|
| 13 |
+
|
| 14 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `f9b6977c94d8`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-649/solution/patch.diff
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/opentelemetry/proto/profiles/v1development/profiles.proto b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 2 |
+
index 775129b..59fd609 100644
|
| 3 |
+
--- a/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 4 |
+
+++ b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 5 |
+
@@ -182,6 +182,10 @@ message ScopeProfiles {
|
| 6 |
+
// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
|
| 7 |
+
// This schema_url applies to all profiles in the "profiles" field.
|
| 8 |
+
string schema_url = 3;
|
| 9 |
+
+
|
| 10 |
+
+ // The preferred type and unit of Samples in at least one Profile.
|
| 11 |
+
+ // See Profile.sample_type for possible values.
|
| 12 |
+
+ ValueType default_sample_type = 4;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
// Profile is a common stacktrace profile format.
|
| 16 |
+
@@ -214,15 +218,12 @@ message ScopeProfiles {
|
| 17 |
+
// for ease of understanding data migration, it is not intended that pprof:Profile and
|
| 18 |
+
// OpenTelemetry:Profile encoding be wire compatible.
|
| 19 |
+
message Profile {
|
| 20 |
+
- // A description of the samples associated with each Sample.value.
|
| 21 |
+
- // For a cpu profile this might be:
|
| 22 |
+
- // [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
|
| 23 |
+
+ // The type and unit of all Sample.values in this profile.
|
| 24 |
+
+ // For a cpu or off-cpu profile this might be:
|
| 25 |
+
+ // ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
|
| 26 |
+
// For a heap profile, this might be:
|
| 27 |
+
- // [["allocations","count"], ["space","bytes"]],
|
| 28 |
+
- // If one of the values represents the number of events represented
|
| 29 |
+
- // by the sample, by convention it should be at index 0 and use
|
| 30 |
+
- // sample_type.unit == "count".
|
| 31 |
+
- repeated ValueType sample_type = 1;
|
| 32 |
+
+ // ["allocated_objects","count"] or ["allocated_space","bytes"],
|
| 33 |
+
+ ValueType sample_type = 1;
|
| 34 |
+
// The set of samples recorded in this profile.
|
| 35 |
+
repeated Sample sample = 2;
|
| 36 |
+
|
| 37 |
+
@@ -247,8 +248,6 @@ message Profile {
|
| 38 |
+
// for human-friendly content. The profile must stay functional if this field
|
| 39 |
+
// is cleaned.
|
| 40 |
+
repeated int32 comment_strindices = 8; // Indices into ProfilesDictionary.string_table.
|
| 41 |
+
- // Index into the sample_type array to the default sample type.
|
| 42 |
+
- int32 default_sample_type_index = 9;
|
| 43 |
+
|
| 44 |
+
// A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
|
| 45 |
+
// all zeroes is considered invalid. It may be used for deduplication and signal
|
| 46 |
+
@@ -256,15 +255,15 @@ message Profile {
|
| 47 |
+
// in this field as not equal, even if they represented the same object at an earlier
|
| 48 |
+
// time.
|
| 49 |
+
// This field is optional; an ID may be assigned to an ID-less profile in a later step.
|
| 50 |
+
- bytes profile_id = 10;
|
| 51 |
+
+ bytes profile_id = 9;
|
| 52 |
+
|
| 53 |
+
// dropped_attributes_count is the number of attributes that were discarded. Attributes
|
| 54 |
+
// can be discarded because their keys are too long or because there are too many
|
| 55 |
+
// attributes. If this value is 0, then no attributes were dropped.
|
| 56 |
+
- uint32 dropped_attributes_count = 11;
|
| 57 |
+
+ uint32 dropped_attributes_count = 10;
|
| 58 |
+
|
| 59 |
+
// Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
|
| 60 |
+
- string original_payload_format = 12;
|
| 61 |
+
+ string original_payload_format = 11;
|
| 62 |
+
|
| 63 |
+
// Original payload can be stored in this field. This can be useful for users who want to get the original payload.
|
| 64 |
+
// Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
|
| 65 |
+
@@ -272,7 +271,7 @@ message Profile {
|
| 66 |
+
// If the original payload is in pprof format, it SHOULD not be included in this field.
|
| 67 |
+
// The field is optional, however if it is present then equivalent converted data should be populated in other fields
|
| 68 |
+
// of this message as far as is practicable.
|
| 69 |
+
- bytes original_payload = 13;
|
| 70 |
+
+ bytes original_payload = 12;
|
| 71 |
+
|
| 72 |
+
// References to attributes in attribute_table. [optional]
|
| 73 |
+
// It is a collection of key/value pairs. Note, global attributes
|
| 74 |
+
@@ -287,7 +286,7 @@ message Profile {
|
| 75 |
+
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
|
| 76 |
+
// Attribute keys MUST be unique (it is not allowed to have more than one
|
| 77 |
+
// attribute with the same key).
|
| 78 |
+
- repeated int32 attribute_indices = 14;
|
| 79 |
+
+ repeated int32 attribute_indices = 13;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
// Represents a mapping between Attribute Keys and Units.
|
| 83 |
+
@@ -385,23 +384,36 @@ message ValueType {
|
| 84 |
+
AggregationTemporality aggregation_temporality = 3;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
-// Each Sample records values encountered in some program
|
| 88 |
+
-// context. The program context is typically a stack trace, perhaps
|
| 89 |
+
-// augmented with auxiliary information like the thread-id, some
|
| 90 |
+
-// indicator of a higher level request being handled etc.
|
| 91 |
+
+// Each Sample records values encountered in some program context. The program
|
| 92 |
+
+// context is typically a stack trace, perhaps augmented with auxiliary
|
| 93 |
+
+// information like the thread-id, some indicator of a higher level request
|
| 94 |
+
+// being handled etc.
|
| 95 |
+
+//
|
| 96 |
+
+// A Sample MUST have have at least one values or timestamps_unix_nano entry. If
|
| 97 |
+
+// both fields are populated, they MUST contain the same number of elements, and
|
| 98 |
+
+// the elements at the same index MUST refer to the same event.
|
| 99 |
+
+//
|
| 100 |
+
+// Examples of different ways of representing a sample with the total value of 10:
|
| 101 |
+
+//
|
| 102 |
+
+// Report of a stacktrace at 10 timestamps (consumers must assume the value is 1 for each point):
|
| 103 |
+
+// values: []
|
| 104 |
+
+// timestamps_unix_nano: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
| 105 |
+
+//
|
| 106 |
+
+// Report of a stacktrace with an aggregated value without timestamps:
|
| 107 |
+
+// values: [10]
|
| 108 |
+
+// timestamps_unix_nano: []
|
| 109 |
+
+//
|
| 110 |
+
+// Report of a stacktrace at 4 timestamps where each point records a specific value:
|
| 111 |
+
+// values: [2, 2, 3, 3]
|
| 112 |
+
+// timestamps_unix_nano: [1, 2, 3, 4]
|
| 113 |
+
message Sample {
|
| 114 |
+
// locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices.
|
| 115 |
+
int32 locations_start_index = 1;
|
| 116 |
+
// locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices.
|
| 117 |
+
// Supersedes location_index.
|
| 118 |
+
int32 locations_length = 2;
|
| 119 |
+
- // The type and unit of each value is defined by the corresponding
|
| 120 |
+
- // entry in Profile.sample_type. All samples must have the same
|
| 121 |
+
- // number of values, the same as the length of Profile.sample_type.
|
| 122 |
+
- // When aggregating multiple samples into a single sample, the
|
| 123 |
+
- // result has a list of values that is the element-wise sum of the
|
| 124 |
+
- // lists of the originals.
|
| 125 |
+
- repeated int64 value = 3;
|
| 126 |
+
+ // The type and unit of each value is defined by Profile.sample_type.
|
| 127 |
+
+ repeated int64 values = 3;
|
| 128 |
+
// References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 129 |
+
repeated int32 attribute_indices = 4;
|
| 130 |
+
|
| 131 |
+
@@ -409,8 +421,8 @@ message Sample {
|
| 132 |
+
// It can be unset / set to 0 if no link exists, as link_table[0] is always a 'null' default value.
|
| 133 |
+
int32 link_index = 5;
|
| 134 |
+
|
| 135 |
+
- // Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
|
| 136 |
+
- // to fall within the Profile's time range. [optional]
|
| 137 |
+
+ // Timestamps associated with Sample represented in nanoseconds. These
|
| 138 |
+
+ // timestamps should fall within the Profile's time range.
|
| 139 |
+
repeated uint64 timestamps_unix_nano = 6;
|
| 140 |
+
}
|
| 141 |
+
|
tasks/open-telemetry__opentelemetry-proto-649/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
tasks/open-telemetry__opentelemetry-proto-649/task.toml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "trending/open-telemetry__opentelemetry-proto-649"
|
| 5 |
+
description = "profiles: use single Profile.sample_type and clarify use of timestamps"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "medium"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"opentelemetry-proto",
|
| 12 |
+
"pr_diff",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "pr_diff"
|
| 17 |
+
pipeline_version = "0.3.0"
|
| 18 |
+
repo = "open-telemetry/opentelemetry-proto"
|
| 19 |
+
ref = "f9b6977c94d84da4dbd02c5ea5b607bcab4a52a5"
|
| 20 |
+
reference = "https://github.com/open-telemetry/opentelemetry-proto/pull/649"
|
| 21 |
+
source_access = "auto"
|
| 22 |
+
built_at = "2026-11-16T16:09:42.239043+00:00"
|
| 23 |
+
reward_kinds = [
|
| 24 |
+
"diff_similarity",
|
| 25 |
+
]
|
| 26 |
+
spec_version = "0.2.0"
|
| 27 |
+
content_hash = "sha256:cb593a8e828bcded0ea76412ef3aff33986d748f11cde76f569e11e708ba4009"
|
| 28 |
+
|
| 29 |
+
[metadata.repo2env.pr_diff]
|
| 30 |
+
pr_merged_at = "2025-07-02T16:55:19Z"
|
| 31 |
+
diff_format = "unified"
|
| 32 |
+
context_files = [
|
| 33 |
+
"opentelemetry/proto/profiles/v1development/profiles.proto",
|
| 34 |
+
]
|
| 35 |
+
bootstrap_image = "python:3.12-slim"
|
| 36 |
+
|
| 37 |
+
[metadata.repo2env.reward_calibration]
|
| 38 |
+
baseline_reward = 0.0
|
| 39 |
+
loc_changed = 68
|
| 40 |
+
difficulty = "medium"
|
| 41 |
+
|
| 42 |
+
[metadata.repo2env.evaluation]
|
| 43 |
+
schema_version = "1"
|
| 44 |
+
status = "unverified"
|
| 45 |
+
stage = "generation"
|
| 46 |
+
reason_codes = [
|
| 47 |
+
"validation_not_run",
|
| 48 |
+
]
|
| 49 |
+
detail = "Generated task; validation has not been established."
|
| 50 |
+
provenance = "unknown"
|
| 51 |
+
evidence = []
|
| 52 |
+
|
| 53 |
+
[metadata.repo2env.reproducibility]
|
| 54 |
+
mode = "inline_dockerfile"
|
| 55 |
+
image_ref = "python:3.12-slim"
|
| 56 |
+
image_tag = "python:3.12-slim"
|
| 57 |
+
image_visibility = "public"
|
| 58 |
+
pushed_at = "2026-11-16T16:20:02.019083+00:00"
|
| 59 |
+
pushed_by = "scalingX"
|
| 60 |
+
inline_recipe_sha256 = "sha256:c2bee0848a6e027cbb2459f82b65ba9cef02b96654aee7a5653fb2d69bed4fdc"
|
| 61 |
+
inline_recipe_lines = 37
|
| 62 |
+
inline_recipe_source = "user_dockerfile"
|
| 63 |
+
|
| 64 |
+
[agent]
|
| 65 |
+
timeout_sec = 1800.0
|
| 66 |
+
|
| 67 |
+
[verifier]
|
| 68 |
+
timeout_sec = 300.0
|
tasks/open-telemetry__opentelemetry-proto-649/tests/capture.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Standalone PR-diff capture without executing workspace Git configuration.
|
| 2 |
+
|
| 3 |
+
The emitted task uses a regular clone with a pinned base commit. Only its
|
| 4 |
+
object store is read: refs, index, config, hooks and replacement refs are not
|
| 5 |
+
used. This is a configuration boundary, not a sandbox for a malicious process
|
| 6 |
+
that can modify the verifier, binaries or object store while capture runs.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import argparse
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
+
import re
|
| 15 |
+
import shutil
|
| 16 |
+
import subprocess
|
| 17 |
+
import sys
|
| 18 |
+
import tempfile
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def capture(workspace: Path, base_commit: str) -> bytes:
|
| 23 |
+
"""Capture tracked and new files through a fresh private Git index."""
|
| 24 |
+
if not re.fullmatch(r"[a-fA-F0-9]{40}", base_commit):
|
| 25 |
+
raise ValueError("Expected the task's pinned SHA-1 base commit")
|
| 26 |
+
objects = workspace.resolve() / ".git" / "objects"
|
| 27 |
+
if not objects.is_dir():
|
| 28 |
+
raise ValueError("The task's cloned Git object store is missing")
|
| 29 |
+
git = shutil.which("git", path=os.defpath)
|
| 30 |
+
if git is None:
|
| 31 |
+
raise FileNotFoundError("System git is unavailable")
|
| 32 |
+
with tempfile.TemporaryDirectory(prefix="r2e-diff-") as temporary:
|
| 33 |
+
private = Path(temporary)
|
| 34 |
+
# Do not forward GIT_CONFIG_PARAMETERS/COUNT, external diff programs,
|
| 35 |
+
# system/global includes, user attributes, templates or credential env.
|
| 36 |
+
env = {
|
| 37 |
+
"PATH": os.defpath,
|
| 38 |
+
"HOME": temporary,
|
| 39 |
+
"XDG_CONFIG_HOME": temporary,
|
| 40 |
+
"GIT_CONFIG_NOSYSTEM": "1",
|
| 41 |
+
"GIT_CONFIG_GLOBAL": os.devnull,
|
| 42 |
+
"GIT_ATTR_NOSYSTEM": "1",
|
| 43 |
+
"GIT_NO_REPLACE_OBJECTS": "1",
|
| 44 |
+
"GIT_NO_LAZY_FETCH": "1",
|
| 45 |
+
"GIT_TERMINAL_PROMPT": "0",
|
| 46 |
+
"LC_ALL": "C",
|
| 47 |
+
}
|
| 48 |
+
subprocess.run(
|
| 49 |
+
[git, "init", "--quiet", "--template=", str(private / "repository")],
|
| 50 |
+
env=env,
|
| 51 |
+
cwd=private,
|
| 52 |
+
check=True,
|
| 53 |
+
capture_output=True,
|
| 54 |
+
timeout=60,
|
| 55 |
+
)
|
| 56 |
+
env["GIT_ALTERNATE_OBJECT_DIRECTORIES"] = json.dumps(str(objects), ensure_ascii=False)
|
| 57 |
+
command = [
|
| 58 |
+
git,
|
| 59 |
+
f"--git-dir={private / 'repository/.git'}",
|
| 60 |
+
f"--work-tree={workspace.resolve()}",
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
def run(*args: str) -> bytes:
|
| 64 |
+
return subprocess.run(
|
| 65 |
+
[*command, *args],
|
| 66 |
+
env=env,
|
| 67 |
+
cwd=workspace,
|
| 68 |
+
check=True,
|
| 69 |
+
capture_output=True,
|
| 70 |
+
timeout=60,
|
| 71 |
+
).stdout
|
| 72 |
+
|
| 73 |
+
run("read-tree", f"{base_commit}^{{tree}}")
|
| 74 |
+
# All filter drivers are undefined in the private configuration. The
|
| 75 |
+
# workspace's clean filters, fsmonitor and hooks cannot be invoked.
|
| 76 |
+
run("add", "--all", "--", ".")
|
| 77 |
+
return run("diff", "--cached", "--no-ext-diff", "--no-textconv", base_commit, "--")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def main(argv: list[str] | None = None) -> int:
|
| 81 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 82 |
+
parser.add_argument("workspace", type=Path)
|
| 83 |
+
parser.add_argument("base_commit")
|
| 84 |
+
args = parser.parse_args(argv)
|
| 85 |
+
try:
|
| 86 |
+
patch = capture(args.workspace, args.base_commit)
|
| 87 |
+
except (OSError, ValueError, subprocess.SubprocessError) as exc:
|
| 88 |
+
# Do not echo child stderr: it may contain workspace-controlled data.
|
| 89 |
+
sys.stderr.write(f"PR-diff capture failed ({type(exc).__name__})\n")
|
| 90 |
+
return 1
|
| 91 |
+
sys.stdout.buffer.write(patch)
|
| 92 |
+
return 0
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
if __name__ == "__main__":
|
| 96 |
+
sys.exit(main())
|
tasks/open-telemetry__opentelemetry-proto-649/tests/instruction.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** profiles: use single Profile.sample_type and clarify use of timestamps
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
Implements
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
FYI: @open-telemetry/profiling-approvers
|
| 11 |
+
|
| 12 |
+
## Task
|
| 13 |
+
|
| 14 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `f9b6977c94d8`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-649/tests/oracle.patch
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/opentelemetry/proto/profiles/v1development/profiles.proto b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 2 |
+
index 775129b..59fd609 100644
|
| 3 |
+
--- a/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 4 |
+
+++ b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 5 |
+
@@ -182,6 +182,10 @@ message ScopeProfiles {
|
| 6 |
+
// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
|
| 7 |
+
// This schema_url applies to all profiles in the "profiles" field.
|
| 8 |
+
string schema_url = 3;
|
| 9 |
+
+
|
| 10 |
+
+ // The preferred type and unit of Samples in at least one Profile.
|
| 11 |
+
+ // See Profile.sample_type for possible values.
|
| 12 |
+
+ ValueType default_sample_type = 4;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
// Profile is a common stacktrace profile format.
|
| 16 |
+
@@ -214,15 +218,12 @@ message ScopeProfiles {
|
| 17 |
+
// for ease of understanding data migration, it is not intended that pprof:Profile and
|
| 18 |
+
// OpenTelemetry:Profile encoding be wire compatible.
|
| 19 |
+
message Profile {
|
| 20 |
+
- // A description of the samples associated with each Sample.value.
|
| 21 |
+
- // For a cpu profile this might be:
|
| 22 |
+
- // [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
|
| 23 |
+
+ // The type and unit of all Sample.values in this profile.
|
| 24 |
+
+ // For a cpu or off-cpu profile this might be:
|
| 25 |
+
+ // ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
|
| 26 |
+
// For a heap profile, this might be:
|
| 27 |
+
- // [["allocations","count"], ["space","bytes"]],
|
| 28 |
+
- // If one of the values represents the number of events represented
|
| 29 |
+
- // by the sample, by convention it should be at index 0 and use
|
| 30 |
+
- // sample_type.unit == "count".
|
| 31 |
+
- repeated ValueType sample_type = 1;
|
| 32 |
+
+ // ["allocated_objects","count"] or ["allocated_space","bytes"],
|
| 33 |
+
+ ValueType sample_type = 1;
|
| 34 |
+
// The set of samples recorded in this profile.
|
| 35 |
+
repeated Sample sample = 2;
|
| 36 |
+
|
| 37 |
+
@@ -247,8 +248,6 @@ message Profile {
|
| 38 |
+
// for human-friendly content. The profile must stay functional if this field
|
| 39 |
+
// is cleaned.
|
| 40 |
+
repeated int32 comment_strindices = 8; // Indices into ProfilesDictionary.string_table.
|
| 41 |
+
- // Index into the sample_type array to the default sample type.
|
| 42 |
+
- int32 default_sample_type_index = 9;
|
| 43 |
+
|
| 44 |
+
// A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
|
| 45 |
+
// all zeroes is considered invalid. It may be used for deduplication and signal
|
| 46 |
+
@@ -256,15 +255,15 @@ message Profile {
|
| 47 |
+
// in this field as not equal, even if they represented the same object at an earlier
|
| 48 |
+
// time.
|
| 49 |
+
// This field is optional; an ID may be assigned to an ID-less profile in a later step.
|
| 50 |
+
- bytes profile_id = 10;
|
| 51 |
+
+ bytes profile_id = 9;
|
| 52 |
+
|
| 53 |
+
// dropped_attributes_count is the number of attributes that were discarded. Attributes
|
| 54 |
+
// can be discarded because their keys are too long or because there are too many
|
| 55 |
+
// attributes. If this value is 0, then no attributes were dropped.
|
| 56 |
+
- uint32 dropped_attributes_count = 11;
|
| 57 |
+
+ uint32 dropped_attributes_count = 10;
|
| 58 |
+
|
| 59 |
+
// Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
|
| 60 |
+
- string original_payload_format = 12;
|
| 61 |
+
+ string original_payload_format = 11;
|
| 62 |
+
|
| 63 |
+
// Original payload can be stored in this field. This can be useful for users who want to get the original payload.
|
| 64 |
+
// Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
|
| 65 |
+
@@ -272,7 +271,7 @@ message Profile {
|
| 66 |
+
// If the original payload is in pprof format, it SHOULD not be included in this field.
|
| 67 |
+
// The field is optional, however if it is present then equivalent converted data should be populated in other fields
|
| 68 |
+
// of this message as far as is practicable.
|
| 69 |
+
- bytes original_payload = 13;
|
| 70 |
+
+ bytes original_payload = 12;
|
| 71 |
+
|
| 72 |
+
// References to attributes in attribute_table. [optional]
|
| 73 |
+
// It is a collection of key/value pairs. Note, global attributes
|
| 74 |
+
@@ -287,7 +286,7 @@ message Profile {
|
| 75 |
+
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
|
| 76 |
+
// Attribute keys MUST be unique (it is not allowed to have more than one
|
| 77 |
+
// attribute with the same key).
|
| 78 |
+
- repeated int32 attribute_indices = 14;
|
| 79 |
+
+ repeated int32 attribute_indices = 13;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
// Represents a mapping between Attribute Keys and Units.
|
| 83 |
+
@@ -385,23 +384,36 @@ message ValueType {
|
| 84 |
+
AggregationTemporality aggregation_temporality = 3;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
-// Each Sample records values encountered in some program
|
| 88 |
+
-// context. The program context is typically a stack trace, perhaps
|
| 89 |
+
-// augmented with auxiliary information like the thread-id, some
|
| 90 |
+
-// indicator of a higher level request being handled etc.
|
| 91 |
+
+// Each Sample records values encountered in some program context. The program
|
| 92 |
+
+// context is typically a stack trace, perhaps augmented with auxiliary
|
| 93 |
+
+// information like the thread-id, some indicator of a higher level request
|
| 94 |
+
+// being handled etc.
|
| 95 |
+
+//
|
| 96 |
+
+// A Sample MUST have have at least one values or timestamps_unix_nano entry. If
|
| 97 |
+
+// both fields are populated, they MUST contain the same number of elements, and
|
| 98 |
+
+// the elements at the same index MUST refer to the same event.
|
| 99 |
+
+//
|
| 100 |
+
+// Examples of different ways of representing a sample with the total value of 10:
|
| 101 |
+
+//
|
| 102 |
+
+// Report of a stacktrace at 10 timestamps (consumers must assume the value is 1 for each point):
|
| 103 |
+
+// values: []
|
| 104 |
+
+// timestamps_unix_nano: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
| 105 |
+
+//
|
| 106 |
+
+// Report of a stacktrace with an aggregated value without timestamps:
|
| 107 |
+
+// values: [10]
|
| 108 |
+
+// timestamps_unix_nano: []
|
| 109 |
+
+//
|
| 110 |
+
+// Report of a stacktrace at 4 timestamps where each point records a specific value:
|
| 111 |
+
+// values: [2, 2, 3, 3]
|
| 112 |
+
+// timestamps_unix_nano: [1, 2, 3, 4]
|
| 113 |
+
message Sample {
|
| 114 |
+
// locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices.
|
| 115 |
+
int32 locations_start_index = 1;
|
| 116 |
+
// locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices.
|
| 117 |
+
// Supersedes location_index.
|
| 118 |
+
int32 locations_length = 2;
|
| 119 |
+
- // The type and unit of each value is defined by the corresponding
|
| 120 |
+
- // entry in Profile.sample_type. All samples must have the same
|
| 121 |
+
- // number of values, the same as the length of Profile.sample_type.
|
| 122 |
+
- // When aggregating multiple samples into a single sample, the
|
| 123 |
+
- // result has a list of values that is the element-wise sum of the
|
| 124 |
+
- // lists of the originals.
|
| 125 |
+
- repeated int64 value = 3;
|
| 126 |
+
+ // The type and unit of each value is defined by Profile.sample_type.
|
| 127 |
+
+ repeated int64 values = 3;
|
| 128 |
+
// References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 129 |
+
repeated int32 attribute_indices = 4;
|
| 130 |
+
|
| 131 |
+
@@ -409,8 +421,8 @@ message Sample {
|
| 132 |
+
// It can be unset / set to 0 if no link exists, as link_table[0] is always a 'null' default value.
|
| 133 |
+
int32 link_index = 5;
|
| 134 |
+
|
| 135 |
+
- // Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
|
| 136 |
+
- // to fall within the Profile's time range. [optional]
|
| 137 |
+
+ // Timestamps associated with Sample represented in nanoseconds. These
|
| 138 |
+
+ // timestamps should fall within the Profile's time range.
|
| 139 |
+
repeated uint64 timestamps_unix_nano = 6;
|
| 140 |
+
}
|
| 141 |
+
|
tasks/open-telemetry__opentelemetry-proto-649/tests/test.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
mkdir -p /logs/verifier
|
| 6 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json /logs/verifier/reward-details.json
|
| 7 |
+
CAPTURE_DIR="$(mktemp -d)" || exit 1
|
| 8 |
+
trap 'rm -rf -- "$CAPTURE_DIR"' EXIT
|
| 9 |
+
if ! python3 -I "$SCRIPT_DIR/capture.py" /workspace f9b6977c94d84da4dbd02c5ea5b607bcab4a52a5 > "$CAPTURE_DIR/predicted.patch"; then
|
| 10 |
+
echo "0.0" > /logs/verifier/reward.txt
|
| 11 |
+
printf '%s' '{"final_reward": 0.0, "evaluation_status": "graded", "eval_trustworthy": false, "capture_status": "error"}' > /logs/verifier/reward-details.json
|
| 12 |
+
exit 0
|
| 13 |
+
fi
|
| 14 |
+
rm -f /logs/verifier/predicted.patch
|
| 15 |
+
cp -- "$CAPTURE_DIR/predicted.patch" /logs/verifier/predicted.patch
|
| 16 |
+
: 'START_VERIFY_OUTPUT'
|
| 17 |
+
if ! python3 -I "$SCRIPT_DIR/verifier.py" \
|
| 18 |
+
"$SCRIPT_DIR/oracle.patch" \
|
| 19 |
+
"$CAPTURE_DIR/predicted.patch" \
|
| 20 |
+
"$SCRIPT_DIR/instruction.md"; then
|
| 21 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json
|
| 22 |
+
printf '%s' '{"final_reward": null, "reward": null, "evaluation_status": "ungraded", "eval_trustworthy": false, "verifier_status": "error"}' > /logs/verifier/reward-details.json
|
| 23 |
+
fi
|
| 24 |
+
: 'END_VERIFY_OUTPUT'
|
| 25 |
+
exit 0
|
tasks/open-telemetry__opentelemetry-proto-649/tests/verifier.py
ADDED
|
@@ -0,0 +1,737 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
| 1 |
+
"""In-container verifier for pr_diff tasks (6-component reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. Generation emits
|
| 5 |
+
its source as ``tests/verifier.py``. Harbor delivers it at verify time,
|
| 6 |
+
and ``tests/test.sh`` invokes it with the oracle, predicted patch and instruction.
|
| 7 |
+
|
| 8 |
+
Reward = weighted sum of 6 components (5 deterministic + 1 required LLM):
|
| 9 |
+
|
| 10 |
+
format_valid (0 or 1) — predicted parses as a unified diff (guard)
|
| 11 |
+
size_sanity ([0, 1]) — min(oracle_loc, pred_loc) / max(...)
|
| 12 |
+
catches "rampage through the codebase"
|
| 13 |
+
file_targeting ([0, 1]) — F1 over changed-file sets (NOT Jaccard —
|
| 14 |
+
symmetric penalty over-punishes extras)
|
| 15 |
+
region_overlap ([0, 1]) — predicted hunks overlap oracle hunks
|
| 16 |
+
(strongest spatial-localization signal)
|
| 17 |
+
similarity ([0, 1]) — SequenceMatcher ratio over +/- lines only
|
| 18 |
+
(no free credit for context lines)
|
| 19 |
+
llm_judge ([0, 1] or null) — an LLM rates "does this address the issue?"
|
| 20 |
+
Anthropic Haiku by default; any OpenAI-
|
| 21 |
+
compatible server via ``R2E_JUDGE_ENDPOINT``.
|
| 22 |
+
null when the judge is unavailable
|
| 23 |
+
(no key or model, network, unreadable
|
| 24 |
+
reply) → ungraded, no reward file; a
|
| 25 |
+
reply without a valid score (refusal,
|
| 26 |
+
content filter, empty, no "score") → a
|
| 27 |
+
graded 0
|
| 28 |
+
|
| 29 |
+
Default weights: 0.00 / 0.08 / 0.12 / 0.20 / 0.10 / 0.50 (retuned from
|
| 30 |
+
the original 0.05 / 0.05 / 0.10 / 0.20 / 0.20 / 0.40 after a 23-task
|
| 31 |
+
pilot — see the comment block above ``_DEFAULT_WEIGHTS`` below).
|
| 32 |
+
Override per-task via ``task.toml.metadata`` or per-run via env vars
|
| 33 |
+
``R2E_W_FORMAT`` / ``R2E_W_SIZE`` / ``R2E_W_FILE`` / ``R2E_W_REGION`` /
|
| 34 |
+
``R2E_W_SIM`` / ``R2E_W_JUDGE`` (pass via harbor ``--ve`` so they
|
| 35 |
+
reach the verifier container).
|
| 36 |
+
|
| 37 |
+
Judge routing, also via ``--ve``: ``R2E_JUDGE_MODEL`` picks the model
|
| 38 |
+
(default Haiku); ``R2E_JUDGE_ENDPOINT`` points at an OpenAI-compatible
|
| 39 |
+
server (vLLM, Ollama, a gateway) and switches the request to
|
| 40 |
+
``<endpoint>/chat/completions`` with a bearer token from
|
| 41 |
+
``R2E_JUDGE_API_KEY`` — or a placeholder when unset, since self-hosted
|
| 42 |
+
servers ignore it. ``ANTHROPIC_API_KEY`` is only read on the default
|
| 43 |
+
route and is never sent to a custom endpoint.
|
| 44 |
+
|
| 45 |
+
Final reward is clipped to [0, 1] and additionally clamped to ≤ 0.40
|
| 46 |
+
when ``size_sanity < 0.10`` (catastrophic-size hard cap — stops a
|
| 47 |
+
charitable judge from inflating scores on wildly wrong-sized patches).
|
| 48 |
+
|
| 49 |
+
Outputs (mirrors `_pr_runtime_verifier.py` after #75):
|
| 50 |
+
/logs/verifier/reward.txt — single float (Harbor reads this);
|
| 51 |
+
graded runs only
|
| 52 |
+
/logs/verifier/reward-details.json — full component breakdown + status
|
| 53 |
+
(structured diagnostics; Harbor's `reward.json` schema is flat-numeric-
|
| 54 |
+
only, so the breakdown goes to the `reward-details.json` sidecar which
|
| 55 |
+
Harbor renders under Verifier Logs → Rewards)
|
| 56 |
+
|
| 57 |
+
Pure stdlib — uses only ``difflib``, ``json``, ``os``, ``re``,
|
| 58 |
+
``urllib``, ``sys``. The same module is imported by the unit tests
|
| 59 |
+
under ``tests/test_pr_diff_verifier.py`` so the in-container behavior
|
| 60 |
+
stays in lockstep with what we test.
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
from __future__ import annotations
|
| 64 |
+
|
| 65 |
+
import argparse
|
| 66 |
+
import difflib
|
| 67 |
+
import json
|
| 68 |
+
import math
|
| 69 |
+
import os
|
| 70 |
+
import re
|
| 71 |
+
import sys
|
| 72 |
+
import urllib.error
|
| 73 |
+
import urllib.request
|
| 74 |
+
|
| 75 |
+
# ---------------------------------------------------------------------------
|
| 76 |
+
# Parsing helpers (shared by multiple components)
|
| 77 |
+
# ---------------------------------------------------------------------------
|
| 78 |
+
|
| 79 |
+
_DIFF_HEADER_RE = re.compile(r"^diff --git a/(\S+) b/(\S+)$")
|
| 80 |
+
_HUNK_HEADER_RE = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@")
|
| 81 |
+
_FILE_MARKER_RE = re.compile(r"^(?:---|\+\+\+) ")
|
| 82 |
+
_INDEX_RE = re.compile(r"^index ")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def file_paths(diff: str) -> set[str]:
|
| 86 |
+
"""Return the set of ``b/<path>`` paths touched by a unified diff."""
|
| 87 |
+
paths: set[str] = set()
|
| 88 |
+
for line in diff.splitlines():
|
| 89 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 90 |
+
if m:
|
| 91 |
+
paths.add(m.group(2))
|
| 92 |
+
return paths
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def hunk_ranges(diff: str) -> dict[str, list[tuple[int, int]]]:
|
| 96 |
+
"""For each touched file, return list of (start_line, end_line) ranges
|
| 97 |
+
on the **post-change** side (the ``+`` numbers in ``@@ -X +Y @@``).
|
| 98 |
+
"""
|
| 99 |
+
out: dict[str, list[tuple[int, int]]] = {}
|
| 100 |
+
current_file: str | None = None
|
| 101 |
+
for line in diff.splitlines():
|
| 102 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 103 |
+
if m:
|
| 104 |
+
current_file = m.group(2)
|
| 105 |
+
out.setdefault(current_file, [])
|
| 106 |
+
continue
|
| 107 |
+
m = _HUNK_HEADER_RE.match(line)
|
| 108 |
+
if m and current_file is not None:
|
| 109 |
+
new_start = int(m.group(3))
|
| 110 |
+
new_count = int(m.group(4) or "1")
|
| 111 |
+
end = new_start + max(new_count - 1, 0)
|
| 112 |
+
out[current_file].append((new_start, end))
|
| 113 |
+
return out
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def _normalize_changes_only(diff: str) -> list[str]:
|
| 117 |
+
"""Return the +/- lines (the actual changes) for similarity scoring.
|
| 118 |
+
|
| 119 |
+
Drops:
|
| 120 |
+
- ``diff --git`` / ``index abc..def`` metadata
|
| 121 |
+
- ``@@ ... @@`` hunk markers (volatile line numbers)
|
| 122 |
+
- context lines (no +/- prefix) — these are unchanged code, scoring
|
| 123 |
+
them inflates similarity for trivial patches
|
| 124 |
+
Keeps file-marker lines (``--- a/foo`` / ``+++ b/foo``) so file identity
|
| 125 |
+
stays in the comparison; normalizes off the tab+timestamp suffix git
|
| 126 |
+
sometimes appends.
|
| 127 |
+
"""
|
| 128 |
+
out: list[str] = []
|
| 129 |
+
for line in diff.splitlines():
|
| 130 |
+
if _DIFF_HEADER_RE.match(line) or _INDEX_RE.match(line):
|
| 131 |
+
continue
|
| 132 |
+
if _HUNK_HEADER_RE.match(line):
|
| 133 |
+
continue
|
| 134 |
+
if _FILE_MARKER_RE.match(line):
|
| 135 |
+
out.append(line.split("\t")[0].strip())
|
| 136 |
+
continue
|
| 137 |
+
# +/- lines (actual changes)
|
| 138 |
+
if line.startswith("+") or line.startswith("-"):
|
| 139 |
+
out.append(line)
|
| 140 |
+
return out
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
# ---------------------------------------------------------------------------
|
| 144 |
+
# Reward components
|
| 145 |
+
# ---------------------------------------------------------------------------
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def format_valid(predicted: str) -> float:
|
| 149 |
+
"""1.0 if the predicted text looks like a unified diff; else 0.0.
|
| 150 |
+
|
| 151 |
+
Requires both a ``diff --git`` header and at least one real +/- line
|
| 152 |
+
(not the ``---`` / ``+++`` file-marker lines).
|
| 153 |
+
"""
|
| 154 |
+
if not predicted.strip():
|
| 155 |
+
return 0.0
|
| 156 |
+
has_header = False
|
| 157 |
+
has_change = False
|
| 158 |
+
for line in predicted.splitlines():
|
| 159 |
+
if _DIFF_HEADER_RE.match(line):
|
| 160 |
+
has_header = True
|
| 161 |
+
elif (line.startswith("+") or line.startswith("-")) and not line.startswith(
|
| 162 |
+
("+++ ", "--- ")
|
| 163 |
+
):
|
| 164 |
+
has_change = True
|
| 165 |
+
if has_header and has_change:
|
| 166 |
+
return 1.0
|
| 167 |
+
return 0.0
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def file_targeting(oracle: str, predicted: str) -> float:
|
| 171 |
+
"""F1 over the changed-file sets.
|
| 172 |
+
|
| 173 |
+
Why F1 instead of Jaccard:
|
| 174 |
+
- Missing an oracle file (FN) is a *big* failure.
|
| 175 |
+
- Touching one unrelated extra file (FP) is a small one.
|
| 176 |
+
- Jaccard punishes both equally, which over-penalizes the agent
|
| 177 |
+
for any extra exploration.
|
| 178 |
+
- F1 weights TP twice, giving partial credit when the agent finds
|
| 179 |
+
most-but-not-all of the oracle files even with some noise.
|
| 180 |
+
|
| 181 |
+
Returns 1.0 if both sides touch zero files (degenerate).
|
| 182 |
+
"""
|
| 183 |
+
o = file_paths(oracle)
|
| 184 |
+
p = file_paths(predicted)
|
| 185 |
+
if not o and not p:
|
| 186 |
+
return 1.0
|
| 187 |
+
tp = len(o & p)
|
| 188 |
+
fn = len(o - p)
|
| 189 |
+
fp = len(p - o)
|
| 190 |
+
if tp == 0:
|
| 191 |
+
return 0.0
|
| 192 |
+
# F1 = 2·TP / (2·TP + FN + FP)
|
| 193 |
+
return (2 * tp) / (2 * tp + fn + fp)
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def _count_loc_changes(diff: str) -> int:
|
| 197 |
+
"""Number of real +/- lines (excluding file-marker lines)."""
|
| 198 |
+
n = 0
|
| 199 |
+
for line in diff.splitlines():
|
| 200 |
+
if (line.startswith("+") or line.startswith("-")) and not line.startswith(("+++ ", "--- ")):
|
| 201 |
+
n += 1
|
| 202 |
+
return n
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def size_sanity(oracle: str, predicted: str) -> float:
|
| 206 |
+
"""Penalize predicted patches that are wildly larger / smaller than the oracle.
|
| 207 |
+
|
| 208 |
+
Returns ``min(oracle_loc, predicted_loc) / max(oracle_loc, predicted_loc)``.
|
| 209 |
+
Both empty → 1.0 (degenerate but well-defined). One empty → 0.0.
|
| 210 |
+
|
| 211 |
+
This is the "don't rampage through the codebase" guard — a 200-line
|
| 212 |
+
diff for a 3-line oracle scores ~0.015 here even if every other
|
| 213 |
+
component looks OK.
|
| 214 |
+
"""
|
| 215 |
+
o_loc = _count_loc_changes(oracle)
|
| 216 |
+
p_loc = _count_loc_changes(predicted)
|
| 217 |
+
if o_loc == 0 and p_loc == 0:
|
| 218 |
+
return 1.0
|
| 219 |
+
if o_loc == 0 or p_loc == 0:
|
| 220 |
+
return 0.0
|
| 221 |
+
return min(o_loc, p_loc) / max(o_loc, p_loc)
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def region_overlap(oracle: str, predicted: str, *, slack_lines: int = 5) -> float:
|
| 225 |
+
"""For each oracle hunk, did the predicted diff edit a line within
|
| 226 |
+
``slack_lines`` of that hunk in the same file?
|
| 227 |
+
|
| 228 |
+
Returns the fraction of oracle hunks that have at least one matching
|
| 229 |
+
predicted hunk. ``slack_lines`` tolerates slight line-number drift
|
| 230 |
+
when git diff renders the predicted hunk at a different offset.
|
| 231 |
+
"""
|
| 232 |
+
o_ranges = hunk_ranges(oracle)
|
| 233 |
+
p_ranges = hunk_ranges(predicted)
|
| 234 |
+
total = sum(len(v) for v in o_ranges.values())
|
| 235 |
+
if total == 0:
|
| 236 |
+
return 1.0 # oracle has no hunks (degenerate)
|
| 237 |
+
matched = 0
|
| 238 |
+
for fname, ranges in o_ranges.items():
|
| 239 |
+
p_in_file = p_ranges.get(fname, [])
|
| 240 |
+
for o_start, o_end in ranges:
|
| 241 |
+
for p_start, p_end in p_in_file:
|
| 242 |
+
# Interval overlap with slack — max(starts) <= min(ends) + slack
|
| 243 |
+
if max(o_start, p_start) <= min(o_end, p_end) + slack_lines:
|
| 244 |
+
matched += 1
|
| 245 |
+
break
|
| 246 |
+
return matched / total
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
def similarity(oracle: str, predicted: str) -> float:
|
| 250 |
+
"""SequenceMatcher ratio over +/- lines only.
|
| 251 |
+
|
| 252 |
+
No free credit for context lines — fixes the v0.8.1 inflation where a
|
| 253 |
+
one-line fix scored ~0.7 just because the 3 context lines on either
|
| 254 |
+
side were "matched".
|
| 255 |
+
"""
|
| 256 |
+
if not predicted.strip():
|
| 257 |
+
return 0.0
|
| 258 |
+
o = _normalize_changes_only(oracle)
|
| 259 |
+
p = _normalize_changes_only(predicted)
|
| 260 |
+
if not o:
|
| 261 |
+
return 0.0
|
| 262 |
+
# Exact matching is quadratic-or-worse on repeated lines: 200 x 2,000
|
| 263 |
+
# identical changed lines take ~2 s, 500 x 5,000 take ~35 s, which can
|
| 264 |
+
# run the verifier past Harbor's timeout. Above this many line pairs,
|
| 265 |
+
# fall back to difflib's popular-element heuristic, which stays fast.
|
| 266 |
+
exact = len(o) * len(p) <= _SIMILARITY_EXACT_PAIRS
|
| 267 |
+
return difflib.SequenceMatcher(a=o, b=p, autojunk=not exact).ratio()
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
_SIMILARITY_EXACT_PAIRS = 400_000
|
| 271 |
+
|
| 272 |
+
# A predicted patch over 10x the oracle's changed lines is already a
|
| 273 |
+
# catastrophic size mismatch (size_sanity < 0.10). Past this floor such a
|
| 274 |
+
# patch is a graded 0 instead of being scored, so one huge file can't slow
|
| 275 |
+
# the verifier past its timeout and turn a failing episode into a dropped,
|
| 276 |
+
# ungraded one. The byte cap stops it from being read at all.
|
| 277 |
+
_MAX_PREDICTED_FACTOR = 10
|
| 278 |
+
_MAX_PREDICTED_FLOOR_LOC = 1_000
|
| 279 |
+
_MAX_PREDICTED_BYTES = 16 * 1024 * 1024
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
def predicted_too_large(oracle: str, predicted: str) -> bool:
|
| 283 |
+
"""Whether the predicted patch is too large to score (a graded 0)."""
|
| 284 |
+
limit = max(_MAX_PREDICTED_FACTOR * _count_loc_changes(oracle), _MAX_PREDICTED_FLOOR_LOC)
|
| 285 |
+
return _count_loc_changes(predicted) > limit
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
# LLM-as-judge (Anthropic Messages API, stdlib urllib)
|
| 290 |
+
# ---------------------------------------------------------------------------
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
_JUDGE_PROMPT = (
|
| 294 |
+
"You are scoring a code-fix patch on whether it logically addresses the "
|
| 295 |
+
"described issue. Output a single JSON object: "
|
| 296 |
+
'{{"score": <float in [0,1]>, "reasoning": "<<=30 words"}}.\n\n'
|
| 297 |
+
"DO NOT use the oracle to grade. Score on:\n"
|
| 298 |
+
" - Does the predicted diff touch code regions that could plausibly fix the issue?\n"
|
| 299 |
+
" - Is the change direction consistent with what the issue describes?\n"
|
| 300 |
+
" - Is it a real attempt (not boilerplate, not no-op)?\n\n"
|
| 301 |
+
"Issue:\n{instruction}\n\n"
|
| 302 |
+
"Oracle (reference fix for comparison only — don't grade on similarity to it):\n"
|
| 303 |
+
"{oracle}\n\n"
|
| 304 |
+
"Predicted:\n{predicted}\n\n"
|
| 305 |
+
"Return ONLY the JSON object."
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
_DEFAULT_JUDGE_MODEL = "claude-haiku-4-5-20251001"
|
| 310 |
+
_ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages"
|
| 311 |
+
# Bearer token for a self-hosted judge when R2E_JUDGE_API_KEY is unset. vLLM /
|
| 312 |
+
# Ollama ignore it; the OpenAI wire format still wants one. Same value llm.py uses.
|
| 313 |
+
_PLACEHOLDER_API_KEY = "EMPTY"
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def llm_judge(
|
| 317 |
+
*,
|
| 318 |
+
instruction: str,
|
| 319 |
+
oracle: str,
|
| 320 |
+
predicted: str,
|
| 321 |
+
api_key: str,
|
| 322 |
+
model: str = _DEFAULT_JUDGE_MODEL,
|
| 323 |
+
timeout: int = 60,
|
| 324 |
+
endpoint: str | None = None,
|
| 325 |
+
) -> tuple[float | None, str]:
|
| 326 |
+
"""Return ``(score, status)``.
|
| 327 |
+
|
| 328 |
+
``score`` is a float in [0, 1] on success, ``None`` on failure.
|
| 329 |
+
``status`` is a short string: ``"ok"`` / ``"no_api_key"`` /
|
| 330 |
+
``"no_judge_model"`` / ``"empty_predicted"`` / ``"network"`` /
|
| 331 |
+
``"parse"`` / ``"output_limit"`` / ``"missing_score"`` / ``"invalid_score"``.
|
| 332 |
+
``output_limit`` means the judge exhausted its configured token budget
|
| 333 |
+
(ungraded, even if a partial answer contains a score). ``parse`` means
|
| 334 |
+
the provider's body isn't JSON or has the wrong shape (ungraded); a reply
|
| 335 |
+
with no usable text (refusal, content filter, empty) or no valid score is
|
| 336 |
+
``missing_score`` / ``invalid_score`` (a graded 0). A missing score never
|
| 337 |
+
increases the other weights.
|
| 338 |
+
|
| 339 |
+
``endpoint`` — base URL of an OpenAI-compatible server. When set, the
|
| 340 |
+
request goes to ``<endpoint>/chat/completions`` with ``api_key`` as a
|
| 341 |
+
bearer token, at temperature 0, and ``model`` must be given explicitly;
|
| 342 |
+
otherwise it goes to Anthropic's Messages API unchanged.
|
| 343 |
+
"""
|
| 344 |
+
if not api_key:
|
| 345 |
+
return None, "no_api_key"
|
| 346 |
+
if endpoint and not model:
|
| 347 |
+
return None, "no_judge_model"
|
| 348 |
+
if not predicted.strip():
|
| 349 |
+
return 0.0, "empty_predicted"
|
| 350 |
+
|
| 351 |
+
# Truncate hard so we don't blow up the prompt for big diffs
|
| 352 |
+
prompt = _JUDGE_PROMPT.format(
|
| 353 |
+
instruction=instruction[:4000],
|
| 354 |
+
oracle=oracle[:4000],
|
| 355 |
+
predicted=predicted[:4000],
|
| 356 |
+
)
|
| 357 |
+
payload: dict = {
|
| 358 |
+
"model": model,
|
| 359 |
+
"max_tokens": 200,
|
| 360 |
+
"messages": [{"role": "user", "content": prompt}],
|
| 361 |
+
}
|
| 362 |
+
if endpoint:
|
| 363 |
+
# Small self-hosted models are noisy judges at their default sampling
|
| 364 |
+
# temperature (same input scoring 0.0 one call and 1.0 the next); pin
|
| 365 |
+
# them to greedy. The Anthropic route keeps its defaults — the weights
|
| 366 |
+
# were calibrated against them.
|
| 367 |
+
payload["temperature"] = 0
|
| 368 |
+
url = endpoint.rstrip("/") + "/chat/completions"
|
| 369 |
+
headers = {
|
| 370 |
+
"authorization": f"Bearer {api_key}",
|
| 371 |
+
"content-type": "application/json",
|
| 372 |
+
}
|
| 373 |
+
else:
|
| 374 |
+
url = _ANTHROPIC_MESSAGES_URL
|
| 375 |
+
headers = {
|
| 376 |
+
"x-api-key": api_key,
|
| 377 |
+
"anthropic-version": "2023-06-01",
|
| 378 |
+
"content-type": "application/json",
|
| 379 |
+
}
|
| 380 |
+
body = json.dumps(payload).encode("utf-8")
|
| 381 |
+
req = urllib.request.Request(url, data=body, headers=headers, method="POST")
|
| 382 |
+
try:
|
| 383 |
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
| 384 |
+
raw = resp.read().decode("utf-8")
|
| 385 |
+
except (urllib.error.URLError, urllib.error.HTTPError, TimeoutError, OSError):
|
| 386 |
+
return None, "network"
|
| 387 |
+
|
| 388 |
+
try:
|
| 389 |
+
response = json.loads(raw)
|
| 390 |
+
except json.JSONDecodeError:
|
| 391 |
+
return None, "parse"
|
| 392 |
+
# Provider-reported truncation is a grader capacity failure, not evidence
|
| 393 |
+
# that the submitted patch is wrong. Reasoning models can spend the entire
|
| 394 |
+
# output budget before producing visible text. Never grade a partial score.
|
| 395 |
+
if isinstance(response, dict):
|
| 396 |
+
choices = response.get("choices")
|
| 397 |
+
if endpoint:
|
| 398 |
+
if (
|
| 399 |
+
isinstance(choices, list)
|
| 400 |
+
and choices
|
| 401 |
+
and isinstance(choices[0], dict)
|
| 402 |
+
and choices[0].get("finish_reason") == "length"
|
| 403 |
+
):
|
| 404 |
+
return None, "output_limit"
|
| 405 |
+
elif response.get("stop_reason") in {"max_tokens", "model_context_window_exceeded"}:
|
| 406 |
+
return None, "output_limit"
|
| 407 |
+
text = _judge_text(response, openai_compatible=bool(endpoint))
|
| 408 |
+
if text is None:
|
| 409 |
+
return None, "parse"
|
| 410 |
+
|
| 411 |
+
# Pull the first JSON object out of the model's response
|
| 412 |
+
m = re.search(r"\{[^{}]*\"score\"[^{}]*\}", text, re.DOTALL)
|
| 413 |
+
if not m:
|
| 414 |
+
return None, "missing_score"
|
| 415 |
+
try:
|
| 416 |
+
obj = json.loads(m.group(0))
|
| 417 |
+
score = obj.get("score")
|
| 418 |
+
except (json.JSONDecodeError, ValueError, TypeError):
|
| 419 |
+
return None, "missing_score"
|
| 420 |
+
if type(score) not in (int, float) or not 0 <= score <= 1 or not math.isfinite(score):
|
| 421 |
+
return None, "invalid_score"
|
| 422 |
+
return float(score), "ok"
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
def _judge_text(payload: object, *, openai_compatible: bool) -> str | None:
|
| 426 |
+
"""The judge's answer text, ``""`` when it gave none, ``None`` for a wrong shape.
|
| 427 |
+
|
| 428 |
+
A refusal or a content filter is a well-formed reply with no usable text.
|
| 429 |
+
The agent's patch is in the prompt, so it can provoke one: that is ``""``,
|
| 430 |
+
which grades 0, not ``None``, which leaves the run ungraded.
|
| 431 |
+
|
| 432 |
+
Anthropic: a refusal is HTTP 200 with ``stop_reason: "refusal"`` and
|
| 433 |
+
``content`` empty or holding partial text to discard. OpenAI-compatible:
|
| 434 |
+
``message.content`` is null with a ``refusal`` string or
|
| 435 |
+
``finish_reason: "content_filter"``.
|
| 436 |
+
"""
|
| 437 |
+
if not isinstance(payload, dict):
|
| 438 |
+
return None
|
| 439 |
+
if openai_compatible:
|
| 440 |
+
choices = payload.get("choices")
|
| 441 |
+
if not isinstance(choices, list) or not choices or not isinstance(choices[0], dict):
|
| 442 |
+
return None
|
| 443 |
+
message = choices[0].get("message")
|
| 444 |
+
if not isinstance(message, dict):
|
| 445 |
+
return None
|
| 446 |
+
if message.get("refusal") or choices[0].get("finish_reason") == "content_filter":
|
| 447 |
+
return ""
|
| 448 |
+
content = message.get("content")
|
| 449 |
+
if content is None:
|
| 450 |
+
return ""
|
| 451 |
+
if isinstance(content, str):
|
| 452 |
+
return content
|
| 453 |
+
if isinstance(content, list): # content parts
|
| 454 |
+
return "".join(
|
| 455 |
+
part.get("text", "")
|
| 456 |
+
for part in content
|
| 457 |
+
if isinstance(part, dict) and isinstance(part.get("text", ""), str)
|
| 458 |
+
)
|
| 459 |
+
return None
|
| 460 |
+
content = payload.get("content")
|
| 461 |
+
if not isinstance(content, list):
|
| 462 |
+
return None
|
| 463 |
+
if payload.get("stop_reason") == "refusal":
|
| 464 |
+
return ""
|
| 465 |
+
return "".join(
|
| 466 |
+
block["text"]
|
| 467 |
+
for block in content
|
| 468 |
+
if isinstance(block, dict)
|
| 469 |
+
and block.get("type", "text") == "text"
|
| 470 |
+
and isinstance(block.get("text"), str)
|
| 471 |
+
)
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
# ---------------------------------------------------------------------------
|
| 475 |
+
# Combination
|
| 476 |
+
# ---------------------------------------------------------------------------
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
# Judge replies the agent can provoke: its patch text is part of the judge
|
| 480 |
+
# prompt, so it can steer the answer away from a valid score. These are a
|
| 481 |
+
# graded 0. An unreadable provider envelope (`parse`), missing configuration,
|
| 482 |
+
# a disabled judge, transport errors and an exhausted judge output budget leave
|
| 483 |
+
# the evaluation ungraded. Truncation alone cannot establish an incorrect patch.
|
| 484 |
+
_JUDGE_GRADED_ZERO = frozenset({"missing_score", "invalid_score"})
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def evaluation_status(judge_score: float | None, judge_status: str) -> str:
|
| 488 |
+
"""`graded` when the judge scored or the agent can have caused its failure."""
|
| 489 |
+
if judge_score is not None or judge_status in _JUDGE_GRADED_ZERO:
|
| 490 |
+
return "graded"
|
| 491 |
+
return "ungraded"
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
def combine(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 495 |
+
"""Combine declared components, requiring a positively weighted judge.
|
| 496 |
+
|
| 497 |
+
Without a judge score the result is 0. ``main`` records it as a graded 0
|
| 498 |
+
when the agent can have caused the judge failure, and otherwise writes no
|
| 499 |
+
reward file, so Harbor reports the trial as VERIFIER_FAILED.
|
| 500 |
+
"""
|
| 501 |
+
if weights.get("llm_judge", 0) <= 0 or components.get("llm_judge") is None:
|
| 502 |
+
return 0.0
|
| 503 |
+
if any(w > 0 and components.get(k) is None for k, w in weights.items()):
|
| 504 |
+
return 0.0
|
| 505 |
+
return _weighted_mean(components, weights)
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
def _weighted_mean(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 509 |
+
available = [(k, w) for k, w in weights.items() if w > 0 and components.get(k) is not None]
|
| 510 |
+
if not available:
|
| 511 |
+
return 0.0
|
| 512 |
+
# Relative weights need not sum to one. Scale first so large finite
|
| 513 |
+
# overrides cannot overflow the numerator or denominator into NaN.
|
| 514 |
+
scale = max(w for _, w in available)
|
| 515 |
+
normalized = [(k, w / scale) for k, w in available]
|
| 516 |
+
return sum(w * components[k] for k, w in normalized) / sum(w for _, w in normalized)
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
# ---------------------------------------------------------------------------
|
| 520 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 521 |
+
# ---------------------------------------------------------------------------
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
# Weights retuned after a 23-task pilot. Rationale (LLM-as-reward-engineer
|
| 525 |
+
# analysis grounded in per-task component data):
|
| 526 |
+
#
|
| 527 |
+
# - format_valid → 0.00: was 1.0 across ALL 21 evaluated tasks. Zero
|
| 528 |
+
# discriminative signal — its 0.05 weight was pure dead weight.
|
| 529 |
+
# - similarity → 0.10: Pearson ~0.85 correlation with region_overlap.
|
| 530 |
+
# Carrying both at 0.20 double-counts positional accuracy and
|
| 531 |
+
# additionally penalizes legitimate alternative implementations.
|
| 532 |
+
# - llm_judge → 0.50: only component capturing semantic correctness
|
| 533 |
+
# independent of textual form; diverges informatively from
|
| 534 |
+
# similarity on cases like tokenizers (judge=0.72, sim=0.08).
|
| 535 |
+
# - region_overlap stays 0.20: strongest spatial-localization signal.
|
| 536 |
+
# - file_targeting → 0.12: leading indicator, less correlated with the
|
| 537 |
+
# rest than region/similarity are with each other.
|
| 538 |
+
# - size_sanity → 0.08: useful outlier detector for catastrophic
|
| 539 |
+
# over/under-generation (prettier=0.01, serde=0.08).
|
| 540 |
+
#
|
| 541 |
+
# Total: 0.00 + 0.08 + 0.12 + 0.20 + 0.10 + 0.50 = 1.00.
|
| 542 |
+
_DEFAULT_WEIGHTS = {
|
| 543 |
+
"format_valid": 0.00,
|
| 544 |
+
"size_sanity": 0.08,
|
| 545 |
+
"file_targeting": 0.12,
|
| 546 |
+
"region_overlap": 0.20,
|
| 547 |
+
"similarity": 0.10,
|
| 548 |
+
"llm_judge": 0.50,
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
# Hard cap: when size_sanity < this threshold, clamp final reward to
|
| 552 |
+
# ≤ CATASTROPHIC_SIZE_CAP. Prevents a charitable judge from inflating
|
| 553 |
+
# the score on patches that are wildly the wrong size (catastrophic
|
| 554 |
+
# over- or under-generation).
|
| 555 |
+
_CATASTROPHIC_SIZE_THRESHOLD = 0.10
|
| 556 |
+
_CATASTROPHIC_SIZE_CAP = 0.40
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
def _read_weights_from_env() -> dict[str, float]:
|
| 560 |
+
"""Override defaults via R2E_W_* env vars (set in container by harbor)."""
|
| 561 |
+
overrides = {
|
| 562 |
+
"format_valid": os.environ.get("R2E_W_FORMAT"),
|
| 563 |
+
"size_sanity": os.environ.get("R2E_W_SIZE"),
|
| 564 |
+
"file_targeting": os.environ.get("R2E_W_FILE"),
|
| 565 |
+
"region_overlap": os.environ.get("R2E_W_REGION"),
|
| 566 |
+
"similarity": os.environ.get("R2E_W_SIM"),
|
| 567 |
+
"llm_judge": os.environ.get("R2E_W_JUDGE"),
|
| 568 |
+
}
|
| 569 |
+
out = dict(_DEFAULT_WEIGHTS)
|
| 570 |
+
for k, v in overrides.items():
|
| 571 |
+
if v is None:
|
| 572 |
+
continue
|
| 573 |
+
try:
|
| 574 |
+
value = float(v)
|
| 575 |
+
if math.isfinite(value) and value >= 0:
|
| 576 |
+
out[k] = value
|
| 577 |
+
except (TypeError, ValueError):
|
| 578 |
+
continue
|
| 579 |
+
return out
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
def _judge_config_from_env() -> tuple[str, str, str | None]:
|
| 583 |
+
"""``(api_key, model, endpoint)`` for the judge, from the verifier env.
|
| 584 |
+
|
| 585 |
+
With ``R2E_JUDGE_ENDPOINT`` set, the key comes from ``R2E_JUDGE_API_KEY``
|
| 586 |
+
(placeholder when unset) and ``ANTHROPIC_API_KEY`` is never forwarded to
|
| 587 |
+
the custom server. ``R2E_JUDGE_MODEL`` has no default on that route (a
|
| 588 |
+
self-hosted server won't have Haiku): when unset, ``model`` comes back
|
| 589 |
+
as ``""`` and ``llm_judge`` reports ``no_judge_model`` instead of
|
| 590 |
+
calling out. Without an endpoint the default Anthropic route is
|
| 591 |
+
unchanged.
|
| 592 |
+
"""
|
| 593 |
+
endpoint = os.environ.get("R2E_JUDGE_ENDPOINT", "").strip() or None
|
| 594 |
+
model = os.environ.get("R2E_JUDGE_MODEL", "").strip()
|
| 595 |
+
if endpoint:
|
| 596 |
+
api_key = os.environ.get("R2E_JUDGE_API_KEY", "").strip() or _PLACEHOLDER_API_KEY
|
| 597 |
+
return api_key, model, endpoint
|
| 598 |
+
return os.environ.get("ANTHROPIC_API_KEY", "").strip(), model or _DEFAULT_JUDGE_MODEL, None
|
| 599 |
+
|
| 600 |
+
|
| 601 |
+
def main(argv: list[str] | None = None) -> int:
|
| 602 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 603 |
+
parser.add_argument("oracle")
|
| 604 |
+
parser.add_argument("predicted")
|
| 605 |
+
parser.add_argument("instruction")
|
| 606 |
+
parser.add_argument("--out-dir", default="/logs/verifier")
|
| 607 |
+
args = parser.parse_args(argv)
|
| 608 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 609 |
+
# This run is the only authority on the reward: an earlier or planted
|
| 610 |
+
# reward file must not stand if this evaluation ends up ungraded.
|
| 611 |
+
for name in ("reward.txt", "reward.json"):
|
| 612 |
+
try:
|
| 613 |
+
os.unlink(os.path.join(args.out_dir, name))
|
| 614 |
+
except FileNotFoundError:
|
| 615 |
+
pass
|
| 616 |
+
oracle = _read_or_empty(args.oracle)
|
| 617 |
+
try:
|
| 618 |
+
oversized = os.path.getsize(args.predicted) > _MAX_PREDICTED_BYTES
|
| 619 |
+
except OSError:
|
| 620 |
+
oversized = False
|
| 621 |
+
predicted = "" if oversized else _read_or_empty(args.predicted)
|
| 622 |
+
if oversized or predicted_too_large(oracle, predicted):
|
| 623 |
+
breakdown = {
|
| 624 |
+
"final_reward": 0.0,
|
| 625 |
+
"evaluation_status": "graded",
|
| 626 |
+
"eval_trustworthy": False,
|
| 627 |
+
"predicted_status": "predicted_too_large",
|
| 628 |
+
}
|
| 629 |
+
_write_outputs(args.out_dir, 0.0, breakdown)
|
| 630 |
+
return 0
|
| 631 |
+
instruction = _read_or_empty(args.instruction)
|
| 632 |
+
api_key, judge_model, judge_endpoint = _judge_config_from_env()
|
| 633 |
+
|
| 634 |
+
fv = format_valid(predicted)
|
| 635 |
+
ss = size_sanity(oracle, predicted)
|
| 636 |
+
ft = file_targeting(oracle, predicted)
|
| 637 |
+
ro = region_overlap(oracle, predicted)
|
| 638 |
+
sim = similarity(oracle, predicted)
|
| 639 |
+
weights = _read_weights_from_env()
|
| 640 |
+
if weights["llm_judge"] <= 0:
|
| 641 |
+
judge_score, judge_status = None, "disabled"
|
| 642 |
+
else:
|
| 643 |
+
judge_score, judge_status = llm_judge(
|
| 644 |
+
instruction=instruction,
|
| 645 |
+
oracle=oracle,
|
| 646 |
+
predicted=predicted,
|
| 647 |
+
api_key=api_key,
|
| 648 |
+
model=judge_model,
|
| 649 |
+
endpoint=judge_endpoint,
|
| 650 |
+
)
|
| 651 |
+
|
| 652 |
+
components: dict[str, float | None] = {
|
| 653 |
+
"format_valid": fv,
|
| 654 |
+
"size_sanity": ss,
|
| 655 |
+
"file_targeting": ft,
|
| 656 |
+
"region_overlap": ro,
|
| 657 |
+
"similarity": sim,
|
| 658 |
+
"llm_judge": judge_score,
|
| 659 |
+
}
|
| 660 |
+
final = combine(components, weights)
|
| 661 |
+
final = max(0.0, min(1.0, final))
|
| 662 |
+
|
| 663 |
+
# Hard cap on catastrophic size mismatches. Without this, a charitable
|
| 664 |
+
# judge can inflate the reward on patches that are dramatically the
|
| 665 |
+
# wrong size (prettier scored 0.23 with size_sanity=0.011 — the judge
|
| 666 |
+
# was lenient at 0.25 despite the patch being a near-no-op vs a
|
| 667 |
+
# 500-line oracle). The cap kicks in only at the extremes.
|
| 668 |
+
if ss < _CATASTROPHIC_SIZE_THRESHOLD:
|
| 669 |
+
final = min(final, _CATASTROPHIC_SIZE_CAP)
|
| 670 |
+
|
| 671 |
+
status = evaluation_status(judge_score, judge_status)
|
| 672 |
+
breakdown = {
|
| 673 |
+
# No reward exists for an ungraded evaluation: null, not a placeholder 0.
|
| 674 |
+
"final_reward": round(final, 6) if status == "graded" else None,
|
| 675 |
+
"evaluation_status": status,
|
| 676 |
+
"eval_trustworthy": judge_score is not None,
|
| 677 |
+
"diagnostic_similarity": round(
|
| 678 |
+
_weighted_mean(components, {k: w for k, w in weights.items() if k != "llm_judge"}),
|
| 679 |
+
6,
|
| 680 |
+
),
|
| 681 |
+
"components": {k: (None if v is None else round(v, 6)) for k, v in components.items()},
|
| 682 |
+
"weights": {k: round(v, 6) for k, v in weights.items()},
|
| 683 |
+
"judge_model": judge_model if judge_status == "ok" else None,
|
| 684 |
+
"judge_endpoint": judge_endpoint,
|
| 685 |
+
"judge_status": judge_status,
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
_write_outputs(args.out_dir, final, breakdown)
|
| 689 |
+
return 0
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
def _write_outputs(out_dir: str, final: float, breakdown: dict) -> None:
|
| 693 |
+
# An ungraded evaluation writes no reward file. Harbor then raises
|
| 694 |
+
# RewardFileNotFoundError: the trial is VERIFIER_FAILED, reward_valid is
|
| 695 |
+
# false, and RL consumers (OpenEnv harbor_env -> TRL) drop the rollout
|
| 696 |
+
# instead of training on a 0. Harbor's job mean and pass@k still count the
|
| 697 |
+
# trial as 0, so evaluation stays fail-closed.
|
| 698 |
+
if breakdown["evaluation_status"] == "graded":
|
| 699 |
+
with open(os.path.join(out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 700 |
+
f.write(f"{final:.6f}\n")
|
| 701 |
+
# Harbor's `reward.json` must be a flat map of floats/ints (spec, see
|
| 702 |
+
# <https://harborframework.com/docs/tasks>); our breakdown carries nested
|
| 703 |
+
# dicts, judge strings, and status strings, so it goes to the sidecar the
|
| 704 |
+
# Harbor UI renders under Verifier Logs → Rewards. Mirrors #75 (Neubig)
|
| 705 |
+
# for `_pr_runtime_verifier.py`.
|
| 706 |
+
with open(os.path.join(out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 707 |
+
json.dump(breakdown, f, indent=2)
|
| 708 |
+
|
| 709 |
+
# Also print to stdout so harbor's log captures the breakdown
|
| 710 |
+
print(json.dumps(breakdown, indent=2))
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
def _read_or_empty(path: str) -> str:
|
| 714 |
+
try:
|
| 715 |
+
with open(path, encoding="utf-8") as f:
|
| 716 |
+
return f.read()
|
| 717 |
+
except (OSError, UnicodeDecodeError):
|
| 718 |
+
return ""
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
if __name__ == "__main__":
|
| 722 |
+
sys.exit(main())
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
__all__ = [
|
| 726 |
+
"combine",
|
| 727 |
+
"file_paths",
|
| 728 |
+
"file_targeting",
|
| 729 |
+
"format_valid",
|
| 730 |
+
"hunk_ranges",
|
| 731 |
+
"llm_judge",
|
| 732 |
+
"main",
|
| 733 |
+
"predicted_too_large",
|
| 734 |
+
"region_overlap",
|
| 735 |
+
"similarity",
|
| 736 |
+
"size_sanity",
|
| 737 |
+
]
|
tasks/open-telemetry__opentelemetry-proto-650/environment/Dockerfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_diff — 6-component reward env.
|
| 2 |
+
# Agent-agnostic: the agent (claude-code / openhands / codex / etc.)
|
| 3 |
+
# installs itself at run time via its harbor adapter. We only ship
|
| 4 |
+
# the source repo — the oracle + verifier arrive at verify time via
|
| 5 |
+
# tests/, never baked into the agent's image.
|
| 6 |
+
FROM python:3.12-slim
|
| 7 |
+
ARG GITHUB_TOKEN=
|
| 8 |
+
RUN apt-get update \
|
| 9 |
+
&& apt-get install -y --no-install-recommends git ca-certificates curl \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
RUN git config --global --add safe.directory /workspace \
|
| 12 |
+
&& git config --global init.defaultBranch main \
|
| 13 |
+
&& git config --global advice.detachedHead false
|
| 14 |
+
RUN if [ -n "$GITHUB_TOKEN" ]; then \
|
| 15 |
+
git clone --filter=blob:none https://x-access-token:"${GITHUB_TOKEN}"@github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 16 |
+
else \
|
| 17 |
+
git clone --filter=blob:none https://github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 18 |
+
fi \
|
| 19 |
+
&& git -C /workspace remote set-url origin https://github.com/open-telemetry/opentelemetry-proto.git
|
| 20 |
+
WORKDIR /workspace
|
| 21 |
+
RUN git fetch --depth 1 origin c7b5bd3f8741d432a89c02052c4d6d1a99790c51 2>/dev/null \
|
| 22 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 23 |
+
RUN git reset --hard c7b5bd3f8741d432a89c02052c4d6d1a99790c51 \
|
| 24 |
+
&& git clean -fdx -e .venv -e venv -e __pycache__
|
| 25 |
+
RUN git checkout -q -B base c7b5bd3f8741d432a89c02052c4d6d1a99790c51 \
|
| 26 |
+
&& git remote remove origin 2>/dev/null || true
|
| 27 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 28 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 29 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 30 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 31 |
+
&& git gc --prune=now 2>/dev/null || true
|
| 32 |
+
RUN P="$(git rev-parse --git-dir)/objects/pack"; if ls "$P"/*.promisor >/dev/null 2>&1; then \
|
| 33 |
+
git rev-list --objects --all --missing=allow-promisor > "$P/../scrub.list" \
|
| 34 |
+
&& K=$(git pack-objects -q --missing=allow-promisor "$P/scrub" < "$P/../scrub.list") \
|
| 35 |
+
&& rm -f "$P/../scrub.list" "$P"/pack-* "$P"/multi-pack-index* \
|
| 36 |
+
&& touch "$P/scrub-$K.promisor" && git prune --expire=now; \
|
| 37 |
+
fi
|
tasks/open-telemetry__opentelemetry-proto-650/instruction.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Move the profiles lookup tables into a new Dictionary message
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
As discussed in
|
| 8 |
+
|
| 9 |
+
## Task
|
| 10 |
+
|
| 11 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `c7b5bd3f8741`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-650/solution/patch.diff
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto b/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto
|
| 2 |
+
index 64c3608..81bb210 100644
|
| 3 |
+
--- a/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto
|
| 4 |
+
+++ b/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto
|
| 5 |
+
@@ -37,6 +37,9 @@ message ExportProfilesServiceRequest {
|
| 6 |
+
// data from multiple origins typically batch the data before forwarding further and
|
| 7 |
+
// in that case this array will contain multiple elements.
|
| 8 |
+
repeated opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
|
| 9 |
+
+
|
| 10 |
+
+ // The reference table containing all data shared by profiles across the message being sent.
|
| 11 |
+
+ opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
message ExportProfilesServiceResponse {
|
| 15 |
+
diff --git a/opentelemetry/proto/profiles/v1development/profiles.proto b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 16 |
+
index 28777aa..ff03815 100644
|
| 17 |
+
--- a/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 18 |
+
+++ b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 19 |
+
@@ -43,15 +43,15 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
|
| 20 |
+
|
| 21 |
+
// Relationships Diagram
|
| 22 |
+
//
|
| 23 |
+
-// ┌──────────────────┐ LEGEND
|
| 24 |
+
-// │ ProfilesData │
|
| 25 |
+
-// └──────────────────┘ ─────▶ embedded
|
| 26 |
+
-// │
|
| 27 |
+
-// │ 1-n ─────▷ referenced by index
|
| 28 |
+
-// ▼
|
| 29 |
+
-// ┌──────────────────┐
|
| 30 |
+
-// │ ResourceProfiles │
|
| 31 |
+
-// └──────────────────┘
|
| 32 |
+
+// ┌──────────────────┐ LEGEND
|
| 33 |
+
+// │ ProfilesData │ ─────┐
|
| 34 |
+
+// └──────────────────┘ │ ─────▶ embedded
|
| 35 |
+
+// │ │
|
| 36 |
+
+// │ 1-n │ ─────▷ referenced by index
|
| 37 |
+
+// ▼ ▼
|
| 38 |
+
+// ┌──────────────────┐ ┌────────────────────┐
|
| 39 |
+
+// │ ResourceProfiles │ │ ProfilesDictionary │
|
| 40 |
+
+// └──────────────────┘ └────────────────────┘
|
| 41 |
+
// │
|
| 42 |
+
// │ 1-n
|
| 43 |
+
// ▼
|
| 44 |
+
@@ -90,6 +90,33 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
|
| 45 |
+
// └──────────────────┘
|
| 46 |
+
//
|
| 47 |
+
|
| 48 |
+
+// ProfilesDictionary represents the profiles data shared across the
|
| 49 |
+
+// entire message being sent.
|
| 50 |
+
+message ProfilesDictionary {
|
| 51 |
+
+ // Mappings from address ranges to the image/binary/library mapped
|
| 52 |
+
+ // into that address range referenced by locations via Location.mapping_index.
|
| 53 |
+
+ repeated Mapping mapping_table = 1;
|
| 54 |
+
+
|
| 55 |
+
+ // Locations referenced by samples via Profile.location_indices.
|
| 56 |
+
+ repeated Location location_table = 2;
|
| 57 |
+
+
|
| 58 |
+
+ // Functions referenced by locations via Line.function_index.
|
| 59 |
+
+ repeated Function function_table = 3;
|
| 60 |
+
+
|
| 61 |
+
+ // Links referenced by samples via Sample.link_index.
|
| 62 |
+
+ repeated Link link_table = 4;
|
| 63 |
+
+
|
| 64 |
+
+ // A common table for strings referenced by various messages.
|
| 65 |
+
+ // string_table[0] must always be "".
|
| 66 |
+
+ repeated string string_table = 5;
|
| 67 |
+
+
|
| 68 |
+
+ // A common table for attributes referenced by various messages.
|
| 69 |
+
+ repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 6;
|
| 70 |
+
+
|
| 71 |
+
+ // Represents a mapping between Attribute Keys and Units.
|
| 72 |
+
+ repeated AttributeUnit attribute_units = 7;
|
| 73 |
+
+}
|
| 74 |
+
+
|
| 75 |
+
// ProfilesData represents the profiles data that can be stored in persistent storage,
|
| 76 |
+
// OR can be embedded by other protocols that transfer OTLP profiles data but do not
|
| 77 |
+
// implement the OTLP protocol.
|
| 78 |
+
@@ -110,28 +137,8 @@ message ProfilesData {
|
| 79 |
+
// Resource.attributes and semantic conventions.
|
| 80 |
+
repeated ResourceProfiles resource_profiles = 1;
|
| 81 |
+
|
| 82 |
+
- // Mappings from address ranges to the image/binary/library mapped
|
| 83 |
+
- // into that address range referenced by locations via Location.mapping_index.
|
| 84 |
+
- repeated Mapping mapping_table = 2;
|
| 85 |
+
-
|
| 86 |
+
- // Locations referenced by samples via Profile.location_indices.
|
| 87 |
+
- repeated Location location_table = 3;
|
| 88 |
+
-
|
| 89 |
+
- // Functions referenced by locations via Line.function_index.
|
| 90 |
+
- repeated Function function_table = 4;
|
| 91 |
+
-
|
| 92 |
+
- // Links referenced by samples via Sample.link_index.
|
| 93 |
+
- repeated Link link_table = 5;
|
| 94 |
+
-
|
| 95 |
+
- // A common table for strings referenced by various messages.
|
| 96 |
+
- // string_table[0] must always be "".
|
| 97 |
+
- repeated string string_table = 6;
|
| 98 |
+
-
|
| 99 |
+
- // A common table for attributes referenced by various messages.
|
| 100 |
+
- repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 7;
|
| 101 |
+
-
|
| 102 |
+
- // Represents a mapping between Attribute Keys and Units.
|
| 103 |
+
- repeated AttributeUnit attribute_units = 8;
|
| 104 |
+
+ // One instance of ProfilesDictionary
|
| 105 |
+
+ ProfilesDictionary dictionary = 2;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
@@ -217,7 +224,7 @@ message Profile {
|
| 110 |
+
// The set of samples recorded in this profile.
|
| 111 |
+
repeated Sample sample = 2;
|
| 112 |
+
|
| 113 |
+
- // References to locations in ProfilesData.location_table.
|
| 114 |
+
+ // References to locations in ProfilesDictionary.location_table.
|
| 115 |
+
repeated int32 location_indices = 3;
|
| 116 |
+
|
| 117 |
+
// The following fields 4-14 are informational, do not affect
|
| 118 |
+
@@ -237,7 +244,7 @@ message Profile {
|
| 119 |
+
// should not be used to store any machine-readable information, it is only
|
| 120 |
+
// for human-friendly content. The profile must stay functional if this field
|
| 121 |
+
// is cleaned.
|
| 122 |
+
- repeated int32 comment_strindices = 8; // Indices into ProfilesData.string_table.
|
| 123 |
+
+ repeated int32 comment_strindices = 8; // Indices into ProfilesDictionary.string_table.
|
| 124 |
+
// Index into the sample_type array to the default sample type.
|
| 125 |
+
int32 default_sample_type_index = 9;
|
| 126 |
+
|
| 127 |
+
@@ -368,8 +375,8 @@ enum AggregationTemporality {
|
| 128 |
+
|
| 129 |
+
// ValueType describes the type and units of a value, with an optional aggregation temporality.
|
| 130 |
+
message ValueType {
|
| 131 |
+
- int32 type_strindex = 1; // Index into ProfilesData.string_table.
|
| 132 |
+
- int32 unit_strindex = 2; // Index into ProfilesData.string_table.
|
| 133 |
+
+ int32 type_strindex = 1; // Index into ProfilesDictionary.string_table.
|
| 134 |
+
+ int32 unit_strindex = 2; // Index into ProfilesDictionary.string_table.
|
| 135 |
+
|
| 136 |
+
AggregationTemporality aggregation_temporality = 3;
|
| 137 |
+
}
|
| 138 |
+
@@ -391,10 +398,10 @@ message Sample {
|
| 139 |
+
// result has a list of values that is the element-wise sum of the
|
| 140 |
+
// lists of the originals.
|
| 141 |
+
repeated int64 value = 3;
|
| 142 |
+
- // References to attributes in ProfilesData.attribute_table. [optional]
|
| 143 |
+
+ // References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 144 |
+
repeated int32 attribute_indices = 4;
|
| 145 |
+
|
| 146 |
+
- // Reference to link in ProfilesData.link_table. [optional]
|
| 147 |
+
+ // Reference to link in ProfilesDictionary.link_table. [optional]
|
| 148 |
+
optional int32 link_index = 5;
|
| 149 |
+
|
| 150 |
+
// Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
|
| 151 |
+
@@ -414,8 +421,8 @@ message Mapping {
|
| 152 |
+
// The object this entry is loaded from. This can be a filename on
|
| 153 |
+
// disk for the main binary and shared libraries, or virtual
|
| 154 |
+
// abstractions like "[vdso]".
|
| 155 |
+
- int32 filename_strindex = 4; // Index into ProfilesData.string_table.
|
| 156 |
+
- // References to attributes in ProfilesData.attribute_table. [optional]
|
| 157 |
+
+ int32 filename_strindex = 4; // Index into ProfilesDictionary.string_table.
|
| 158 |
+
+ // References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 159 |
+
repeated int32 attribute_indices = 5;
|
| 160 |
+
// The following fields indicate the resolution of symbolic info.
|
| 161 |
+
bool has_functions = 6;
|
| 162 |
+
@@ -426,7 +433,7 @@ message Mapping {
|
| 163 |
+
|
| 164 |
+
// Describes function and line table debug information.
|
| 165 |
+
message Location {
|
| 166 |
+
- // Reference to mapping in ProfilesData.mapping_table.
|
| 167 |
+
+ // Reference to mapping in ProfilesDictionary.mapping_table.
|
| 168 |
+
// It can be unset if the mapping is unknown or not applicable for
|
| 169 |
+
// this profile type.
|
| 170 |
+
optional int32 mapping_index = 1;
|
| 171 |
+
@@ -451,13 +458,13 @@ message Location {
|
| 172 |
+
// profile changes.
|
| 173 |
+
bool is_folded = 4;
|
| 174 |
+
|
| 175 |
+
- // References to attributes in ProfilesData.attribute_table. [optional]
|
| 176 |
+
+ // References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 177 |
+
repeated int32 attribute_indices = 5;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
// Details a specific line in a source code, linked to a function.
|
| 181 |
+
message Line {
|
| 182 |
+
- // Reference to function in ProfilesData.function_table.
|
| 183 |
+
+ // Reference to function in ProfilesDictionary.function_table.
|
| 184 |
+
int32 function_index = 1;
|
| 185 |
+
// Line number in source code. 0 means unset.
|
| 186 |
+
int64 line = 2;
|
tasks/open-telemetry__opentelemetry-proto-650/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
tasks/open-telemetry__opentelemetry-proto-650/task.toml
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "trending/open-telemetry__opentelemetry-proto-650"
|
| 5 |
+
description = "Move the profiles lookup tables into a new Dictionary message"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "large"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"opentelemetry-proto",
|
| 12 |
+
"pr_diff",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "pr_diff"
|
| 17 |
+
pipeline_version = "0.3.0"
|
| 18 |
+
repo = "open-telemetry/opentelemetry-proto"
|
| 19 |
+
ref = "c7b5bd3f8741d432a89c02052c4d6d1a99790c51"
|
| 20 |
+
reference = "https://github.com/open-telemetry/opentelemetry-proto/pull/650"
|
| 21 |
+
source_access = "auto"
|
| 22 |
+
built_at = "2026-11-16T16:09:42.237592+00:00"
|
| 23 |
+
reward_kinds = [
|
| 24 |
+
"diff_similarity",
|
| 25 |
+
]
|
| 26 |
+
spec_version = "0.2.0"
|
| 27 |
+
content_hash = "sha256:545a78afa6b2cf67518b6b5b43123b70b53bc07d3bdd1beb00dd29a83da2756e"
|
| 28 |
+
|
| 29 |
+
[metadata.repo2env.pr_diff]
|
| 30 |
+
pr_merged_at = "2025-05-15T15:40:05Z"
|
| 31 |
+
diff_format = "unified"
|
| 32 |
+
context_files = [
|
| 33 |
+
"opentelemetry/proto/collector/profiles/v1development/profiles_service.proto",
|
| 34 |
+
"opentelemetry/proto/profiles/v1development/profiles.proto",
|
| 35 |
+
]
|
| 36 |
+
bootstrap_image = "python:3.12-slim"
|
| 37 |
+
|
| 38 |
+
[metadata.repo2env.reward_calibration]
|
| 39 |
+
baseline_reward = 0.0
|
| 40 |
+
loc_changed = 94
|
| 41 |
+
difficulty = "large"
|
| 42 |
+
|
| 43 |
+
[metadata.repo2env.evaluation]
|
| 44 |
+
schema_version = "1"
|
| 45 |
+
status = "unverified"
|
| 46 |
+
stage = "generation"
|
| 47 |
+
reason_codes = [
|
| 48 |
+
"validation_not_run",
|
| 49 |
+
]
|
| 50 |
+
detail = "Generated task; validation has not been established."
|
| 51 |
+
provenance = "unknown"
|
| 52 |
+
evidence = []
|
| 53 |
+
|
| 54 |
+
[metadata.repo2env.reproducibility]
|
| 55 |
+
mode = "inline_dockerfile"
|
| 56 |
+
image_ref = "python:3.12-slim"
|
| 57 |
+
image_tag = "python:3.12-slim"
|
| 58 |
+
image_visibility = "public"
|
| 59 |
+
pushed_at = "2026-11-16T16:20:02.019618+00:00"
|
| 60 |
+
pushed_by = "scalingX"
|
| 61 |
+
inline_recipe_sha256 = "sha256:70a139d2d9b53e784db87be8c96683e9b9b6c464c6f9c10fe1384812e7ab9d6f"
|
| 62 |
+
inline_recipe_lines = 37
|
| 63 |
+
inline_recipe_source = "user_dockerfile"
|
| 64 |
+
|
| 65 |
+
[agent]
|
| 66 |
+
timeout_sec = 1800.0
|
| 67 |
+
|
| 68 |
+
[verifier]
|
| 69 |
+
timeout_sec = 300.0
|
tasks/open-telemetry__opentelemetry-proto-650/tests/capture.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Standalone PR-diff capture without executing workspace Git configuration.
|
| 2 |
+
|
| 3 |
+
The emitted task uses a regular clone with a pinned base commit. Only its
|
| 4 |
+
object store is read: refs, index, config, hooks and replacement refs are not
|
| 5 |
+
used. This is a configuration boundary, not a sandbox for a malicious process
|
| 6 |
+
that can modify the verifier, binaries or object store while capture runs.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import argparse
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
+
import re
|
| 15 |
+
import shutil
|
| 16 |
+
import subprocess
|
| 17 |
+
import sys
|
| 18 |
+
import tempfile
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def capture(workspace: Path, base_commit: str) -> bytes:
|
| 23 |
+
"""Capture tracked and new files through a fresh private Git index."""
|
| 24 |
+
if not re.fullmatch(r"[a-fA-F0-9]{40}", base_commit):
|
| 25 |
+
raise ValueError("Expected the task's pinned SHA-1 base commit")
|
| 26 |
+
objects = workspace.resolve() / ".git" / "objects"
|
| 27 |
+
if not objects.is_dir():
|
| 28 |
+
raise ValueError("The task's cloned Git object store is missing")
|
| 29 |
+
git = shutil.which("git", path=os.defpath)
|
| 30 |
+
if git is None:
|
| 31 |
+
raise FileNotFoundError("System git is unavailable")
|
| 32 |
+
with tempfile.TemporaryDirectory(prefix="r2e-diff-") as temporary:
|
| 33 |
+
private = Path(temporary)
|
| 34 |
+
# Do not forward GIT_CONFIG_PARAMETERS/COUNT, external diff programs,
|
| 35 |
+
# system/global includes, user attributes, templates or credential env.
|
| 36 |
+
env = {
|
| 37 |
+
"PATH": os.defpath,
|
| 38 |
+
"HOME": temporary,
|
| 39 |
+
"XDG_CONFIG_HOME": temporary,
|
| 40 |
+
"GIT_CONFIG_NOSYSTEM": "1",
|
| 41 |
+
"GIT_CONFIG_GLOBAL": os.devnull,
|
| 42 |
+
"GIT_ATTR_NOSYSTEM": "1",
|
| 43 |
+
"GIT_NO_REPLACE_OBJECTS": "1",
|
| 44 |
+
"GIT_NO_LAZY_FETCH": "1",
|
| 45 |
+
"GIT_TERMINAL_PROMPT": "0",
|
| 46 |
+
"LC_ALL": "C",
|
| 47 |
+
}
|
| 48 |
+
subprocess.run(
|
| 49 |
+
[git, "init", "--quiet", "--template=", str(private / "repository")],
|
| 50 |
+
env=env,
|
| 51 |
+
cwd=private,
|
| 52 |
+
check=True,
|
| 53 |
+
capture_output=True,
|
| 54 |
+
timeout=60,
|
| 55 |
+
)
|
| 56 |
+
env["GIT_ALTERNATE_OBJECT_DIRECTORIES"] = json.dumps(str(objects), ensure_ascii=False)
|
| 57 |
+
command = [
|
| 58 |
+
git,
|
| 59 |
+
f"--git-dir={private / 'repository/.git'}",
|
| 60 |
+
f"--work-tree={workspace.resolve()}",
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
def run(*args: str) -> bytes:
|
| 64 |
+
return subprocess.run(
|
| 65 |
+
[*command, *args],
|
| 66 |
+
env=env,
|
| 67 |
+
cwd=workspace,
|
| 68 |
+
check=True,
|
| 69 |
+
capture_output=True,
|
| 70 |
+
timeout=60,
|
| 71 |
+
).stdout
|
| 72 |
+
|
| 73 |
+
run("read-tree", f"{base_commit}^{{tree}}")
|
| 74 |
+
# All filter drivers are undefined in the private configuration. The
|
| 75 |
+
# workspace's clean filters, fsmonitor and hooks cannot be invoked.
|
| 76 |
+
run("add", "--all", "--", ".")
|
| 77 |
+
return run("diff", "--cached", "--no-ext-diff", "--no-textconv", base_commit, "--")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def main(argv: list[str] | None = None) -> int:
|
| 81 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 82 |
+
parser.add_argument("workspace", type=Path)
|
| 83 |
+
parser.add_argument("base_commit")
|
| 84 |
+
args = parser.parse_args(argv)
|
| 85 |
+
try:
|
| 86 |
+
patch = capture(args.workspace, args.base_commit)
|
| 87 |
+
except (OSError, ValueError, subprocess.SubprocessError) as exc:
|
| 88 |
+
# Do not echo child stderr: it may contain workspace-controlled data.
|
| 89 |
+
sys.stderr.write(f"PR-diff capture failed ({type(exc).__name__})\n")
|
| 90 |
+
return 1
|
| 91 |
+
sys.stdout.buffer.write(patch)
|
| 92 |
+
return 0
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
if __name__ == "__main__":
|
| 96 |
+
sys.exit(main())
|
tasks/open-telemetry__opentelemetry-proto-650/tests/instruction.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Move the profiles lookup tables into a new Dictionary message
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
As discussed in
|
| 8 |
+
|
| 9 |
+
## Task
|
| 10 |
+
|
| 11 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `c7b5bd3f8741`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-650/tests/oracle.patch
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto b/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto
|
| 2 |
+
index 64c3608..81bb210 100644
|
| 3 |
+
--- a/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto
|
| 4 |
+
+++ b/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto
|
| 5 |
+
@@ -37,6 +37,9 @@ message ExportProfilesServiceRequest {
|
| 6 |
+
// data from multiple origins typically batch the data before forwarding further and
|
| 7 |
+
// in that case this array will contain multiple elements.
|
| 8 |
+
repeated opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
|
| 9 |
+
+
|
| 10 |
+
+ // The reference table containing all data shared by profiles across the message being sent.
|
| 11 |
+
+ opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
message ExportProfilesServiceResponse {
|
| 15 |
+
diff --git a/opentelemetry/proto/profiles/v1development/profiles.proto b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 16 |
+
index 28777aa..ff03815 100644
|
| 17 |
+
--- a/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 18 |
+
+++ b/opentelemetry/proto/profiles/v1development/profiles.proto
|
| 19 |
+
@@ -43,15 +43,15 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
|
| 20 |
+
|
| 21 |
+
// Relationships Diagram
|
| 22 |
+
//
|
| 23 |
+
-// ┌──────────────────┐ LEGEND
|
| 24 |
+
-// │ ProfilesData │
|
| 25 |
+
-// └──────────────────┘ ─────▶ embedded
|
| 26 |
+
-// │
|
| 27 |
+
-// │ 1-n ─────▷ referenced by index
|
| 28 |
+
-// ▼
|
| 29 |
+
-// ┌──────────────────┐
|
| 30 |
+
-// │ ResourceProfiles │
|
| 31 |
+
-// └──────────────────┘
|
| 32 |
+
+// ┌──────────────────┐ LEGEND
|
| 33 |
+
+// │ ProfilesData │ ─────┐
|
| 34 |
+
+// └──────────────────┘ │ ─────▶ embedded
|
| 35 |
+
+// │ │
|
| 36 |
+
+// │ 1-n │ ─────▷ referenced by index
|
| 37 |
+
+// ▼ ▼
|
| 38 |
+
+// ┌──────────────────┐ ┌────────────────────┐
|
| 39 |
+
+// │ ResourceProfiles │ │ ProfilesDictionary │
|
| 40 |
+
+// └──────────────────┘ └────────────────────┘
|
| 41 |
+
// │
|
| 42 |
+
// │ 1-n
|
| 43 |
+
// ▼
|
| 44 |
+
@@ -90,6 +90,33 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
|
| 45 |
+
// └──────────────────┘
|
| 46 |
+
//
|
| 47 |
+
|
| 48 |
+
+// ProfilesDictionary represents the profiles data shared across the
|
| 49 |
+
+// entire message being sent.
|
| 50 |
+
+message ProfilesDictionary {
|
| 51 |
+
+ // Mappings from address ranges to the image/binary/library mapped
|
| 52 |
+
+ // into that address range referenced by locations via Location.mapping_index.
|
| 53 |
+
+ repeated Mapping mapping_table = 1;
|
| 54 |
+
+
|
| 55 |
+
+ // Locations referenced by samples via Profile.location_indices.
|
| 56 |
+
+ repeated Location location_table = 2;
|
| 57 |
+
+
|
| 58 |
+
+ // Functions referenced by locations via Line.function_index.
|
| 59 |
+
+ repeated Function function_table = 3;
|
| 60 |
+
+
|
| 61 |
+
+ // Links referenced by samples via Sample.link_index.
|
| 62 |
+
+ repeated Link link_table = 4;
|
| 63 |
+
+
|
| 64 |
+
+ // A common table for strings referenced by various messages.
|
| 65 |
+
+ // string_table[0] must always be "".
|
| 66 |
+
+ repeated string string_table = 5;
|
| 67 |
+
+
|
| 68 |
+
+ // A common table for attributes referenced by various messages.
|
| 69 |
+
+ repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 6;
|
| 70 |
+
+
|
| 71 |
+
+ // Represents a mapping between Attribute Keys and Units.
|
| 72 |
+
+ repeated AttributeUnit attribute_units = 7;
|
| 73 |
+
+}
|
| 74 |
+
+
|
| 75 |
+
// ProfilesData represents the profiles data that can be stored in persistent storage,
|
| 76 |
+
// OR can be embedded by other protocols that transfer OTLP profiles data but do not
|
| 77 |
+
// implement the OTLP protocol.
|
| 78 |
+
@@ -110,28 +137,8 @@ message ProfilesData {
|
| 79 |
+
// Resource.attributes and semantic conventions.
|
| 80 |
+
repeated ResourceProfiles resource_profiles = 1;
|
| 81 |
+
|
| 82 |
+
- // Mappings from address ranges to the image/binary/library mapped
|
| 83 |
+
- // into that address range referenced by locations via Location.mapping_index.
|
| 84 |
+
- repeated Mapping mapping_table = 2;
|
| 85 |
+
-
|
| 86 |
+
- // Locations referenced by samples via Profile.location_indices.
|
| 87 |
+
- repeated Location location_table = 3;
|
| 88 |
+
-
|
| 89 |
+
- // Functions referenced by locations via Line.function_index.
|
| 90 |
+
- repeated Function function_table = 4;
|
| 91 |
+
-
|
| 92 |
+
- // Links referenced by samples via Sample.link_index.
|
| 93 |
+
- repeated Link link_table = 5;
|
| 94 |
+
-
|
| 95 |
+
- // A common table for strings referenced by various messages.
|
| 96 |
+
- // string_table[0] must always be "".
|
| 97 |
+
- repeated string string_table = 6;
|
| 98 |
+
-
|
| 99 |
+
- // A common table for attributes referenced by various messages.
|
| 100 |
+
- repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 7;
|
| 101 |
+
-
|
| 102 |
+
- // Represents a mapping between Attribute Keys and Units.
|
| 103 |
+
- repeated AttributeUnit attribute_units = 8;
|
| 104 |
+
+ // One instance of ProfilesDictionary
|
| 105 |
+
+ ProfilesDictionary dictionary = 2;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
@@ -217,7 +224,7 @@ message Profile {
|
| 110 |
+
// The set of samples recorded in this profile.
|
| 111 |
+
repeated Sample sample = 2;
|
| 112 |
+
|
| 113 |
+
- // References to locations in ProfilesData.location_table.
|
| 114 |
+
+ // References to locations in ProfilesDictionary.location_table.
|
| 115 |
+
repeated int32 location_indices = 3;
|
| 116 |
+
|
| 117 |
+
// The following fields 4-14 are informational, do not affect
|
| 118 |
+
@@ -237,7 +244,7 @@ message Profile {
|
| 119 |
+
// should not be used to store any machine-readable information, it is only
|
| 120 |
+
// for human-friendly content. The profile must stay functional if this field
|
| 121 |
+
// is cleaned.
|
| 122 |
+
- repeated int32 comment_strindices = 8; // Indices into ProfilesData.string_table.
|
| 123 |
+
+ repeated int32 comment_strindices = 8; // Indices into ProfilesDictionary.string_table.
|
| 124 |
+
// Index into the sample_type array to the default sample type.
|
| 125 |
+
int32 default_sample_type_index = 9;
|
| 126 |
+
|
| 127 |
+
@@ -368,8 +375,8 @@ enum AggregationTemporality {
|
| 128 |
+
|
| 129 |
+
// ValueType describes the type and units of a value, with an optional aggregation temporality.
|
| 130 |
+
message ValueType {
|
| 131 |
+
- int32 type_strindex = 1; // Index into ProfilesData.string_table.
|
| 132 |
+
- int32 unit_strindex = 2; // Index into ProfilesData.string_table.
|
| 133 |
+
+ int32 type_strindex = 1; // Index into ProfilesDictionary.string_table.
|
| 134 |
+
+ int32 unit_strindex = 2; // Index into ProfilesDictionary.string_table.
|
| 135 |
+
|
| 136 |
+
AggregationTemporality aggregation_temporality = 3;
|
| 137 |
+
}
|
| 138 |
+
@@ -391,10 +398,10 @@ message Sample {
|
| 139 |
+
// result has a list of values that is the element-wise sum of the
|
| 140 |
+
// lists of the originals.
|
| 141 |
+
repeated int64 value = 3;
|
| 142 |
+
- // References to attributes in ProfilesData.attribute_table. [optional]
|
| 143 |
+
+ // References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 144 |
+
repeated int32 attribute_indices = 4;
|
| 145 |
+
|
| 146 |
+
- // Reference to link in ProfilesData.link_table. [optional]
|
| 147 |
+
+ // Reference to link in ProfilesDictionary.link_table. [optional]
|
| 148 |
+
optional int32 link_index = 5;
|
| 149 |
+
|
| 150 |
+
// Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
|
| 151 |
+
@@ -414,8 +421,8 @@ message Mapping {
|
| 152 |
+
// The object this entry is loaded from. This can be a filename on
|
| 153 |
+
// disk for the main binary and shared libraries, or virtual
|
| 154 |
+
// abstractions like "[vdso]".
|
| 155 |
+
- int32 filename_strindex = 4; // Index into ProfilesData.string_table.
|
| 156 |
+
- // References to attributes in ProfilesData.attribute_table. [optional]
|
| 157 |
+
+ int32 filename_strindex = 4; // Index into ProfilesDictionary.string_table.
|
| 158 |
+
+ // References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 159 |
+
repeated int32 attribute_indices = 5;
|
| 160 |
+
// The following fields indicate the resolution of symbolic info.
|
| 161 |
+
bool has_functions = 6;
|
| 162 |
+
@@ -426,7 +433,7 @@ message Mapping {
|
| 163 |
+
|
| 164 |
+
// Describes function and line table debug information.
|
| 165 |
+
message Location {
|
| 166 |
+
- // Reference to mapping in ProfilesData.mapping_table.
|
| 167 |
+
+ // Reference to mapping in ProfilesDictionary.mapping_table.
|
| 168 |
+
// It can be unset if the mapping is unknown or not applicable for
|
| 169 |
+
// this profile type.
|
| 170 |
+
optional int32 mapping_index = 1;
|
| 171 |
+
@@ -451,13 +458,13 @@ message Location {
|
| 172 |
+
// profile changes.
|
| 173 |
+
bool is_folded = 4;
|
| 174 |
+
|
| 175 |
+
- // References to attributes in ProfilesData.attribute_table. [optional]
|
| 176 |
+
+ // References to attributes in ProfilesDictionary.attribute_table. [optional]
|
| 177 |
+
repeated int32 attribute_indices = 5;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
// Details a specific line in a source code, linked to a function.
|
| 181 |
+
message Line {
|
| 182 |
+
- // Reference to function in ProfilesData.function_table.
|
| 183 |
+
+ // Reference to function in ProfilesDictionary.function_table.
|
| 184 |
+
int32 function_index = 1;
|
| 185 |
+
// Line number in source code. 0 means unset.
|
| 186 |
+
int64 line = 2;
|
tasks/open-telemetry__opentelemetry-proto-650/tests/test.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
mkdir -p /logs/verifier
|
| 6 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json /logs/verifier/reward-details.json
|
| 7 |
+
CAPTURE_DIR="$(mktemp -d)" || exit 1
|
| 8 |
+
trap 'rm -rf -- "$CAPTURE_DIR"' EXIT
|
| 9 |
+
if ! python3 -I "$SCRIPT_DIR/capture.py" /workspace c7b5bd3f8741d432a89c02052c4d6d1a99790c51 > "$CAPTURE_DIR/predicted.patch"; then
|
| 10 |
+
echo "0.0" > /logs/verifier/reward.txt
|
| 11 |
+
printf '%s' '{"final_reward": 0.0, "evaluation_status": "graded", "eval_trustworthy": false, "capture_status": "error"}' > /logs/verifier/reward-details.json
|
| 12 |
+
exit 0
|
| 13 |
+
fi
|
| 14 |
+
rm -f /logs/verifier/predicted.patch
|
| 15 |
+
cp -- "$CAPTURE_DIR/predicted.patch" /logs/verifier/predicted.patch
|
| 16 |
+
: 'START_VERIFY_OUTPUT'
|
| 17 |
+
if ! python3 -I "$SCRIPT_DIR/verifier.py" \
|
| 18 |
+
"$SCRIPT_DIR/oracle.patch" \
|
| 19 |
+
"$CAPTURE_DIR/predicted.patch" \
|
| 20 |
+
"$SCRIPT_DIR/instruction.md"; then
|
| 21 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json
|
| 22 |
+
printf '%s' '{"final_reward": null, "reward": null, "evaluation_status": "ungraded", "eval_trustworthy": false, "verifier_status": "error"}' > /logs/verifier/reward-details.json
|
| 23 |
+
fi
|
| 24 |
+
: 'END_VERIFY_OUTPUT'
|
| 25 |
+
exit 0
|
tasks/open-telemetry__opentelemetry-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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_diff tasks (6-component reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. Generation emits
|
| 5 |
+
its source as ``tests/verifier.py``. Harbor delivers it at verify time,
|
| 6 |
+
and ``tests/test.sh`` invokes it with the oracle, predicted patch and instruction.
|
| 7 |
+
|
| 8 |
+
Reward = weighted sum of 6 components (5 deterministic + 1 required LLM):
|
| 9 |
+
|
| 10 |
+
format_valid (0 or 1) — predicted parses as a unified diff (guard)
|
| 11 |
+
size_sanity ([0, 1]) — min(oracle_loc, pred_loc) / max(...)
|
| 12 |
+
catches "rampage through the codebase"
|
| 13 |
+
file_targeting ([0, 1]) — F1 over changed-file sets (NOT Jaccard —
|
| 14 |
+
symmetric penalty over-punishes extras)
|
| 15 |
+
region_overlap ([0, 1]) — predicted hunks overlap oracle hunks
|
| 16 |
+
(strongest spatial-localization signal)
|
| 17 |
+
similarity ([0, 1]) — SequenceMatcher ratio over +/- lines only
|
| 18 |
+
(no free credit for context lines)
|
| 19 |
+
llm_judge ([0, 1] or null) — an LLM rates "does this address the issue?"
|
| 20 |
+
Anthropic Haiku by default; any OpenAI-
|
| 21 |
+
compatible server via ``R2E_JUDGE_ENDPOINT``.
|
| 22 |
+
null when the judge is unavailable
|
| 23 |
+
(no key or model, network, unreadable
|
| 24 |
+
reply) → ungraded, no reward file; a
|
| 25 |
+
reply without a valid score (refusal,
|
| 26 |
+
content filter, empty, no "score") → a
|
| 27 |
+
graded 0
|
| 28 |
+
|
| 29 |
+
Default weights: 0.00 / 0.08 / 0.12 / 0.20 / 0.10 / 0.50 (retuned from
|
| 30 |
+
the original 0.05 / 0.05 / 0.10 / 0.20 / 0.20 / 0.40 after a 23-task
|
| 31 |
+
pilot — see the comment block above ``_DEFAULT_WEIGHTS`` below).
|
| 32 |
+
Override per-task via ``task.toml.metadata`` or per-run via env vars
|
| 33 |
+
``R2E_W_FORMAT`` / ``R2E_W_SIZE`` / ``R2E_W_FILE`` / ``R2E_W_REGION`` /
|
| 34 |
+
``R2E_W_SIM`` / ``R2E_W_JUDGE`` (pass via harbor ``--ve`` so they
|
| 35 |
+
reach the verifier container).
|
| 36 |
+
|
| 37 |
+
Judge routing, also via ``--ve``: ``R2E_JUDGE_MODEL`` picks the model
|
| 38 |
+
(default Haiku); ``R2E_JUDGE_ENDPOINT`` points at an OpenAI-compatible
|
| 39 |
+
server (vLLM, Ollama, a gateway) and switches the request to
|
| 40 |
+
``<endpoint>/chat/completions`` with a bearer token from
|
| 41 |
+
``R2E_JUDGE_API_KEY`` — or a placeholder when unset, since self-hosted
|
| 42 |
+
servers ignore it. ``ANTHROPIC_API_KEY`` is only read on the default
|
| 43 |
+
route and is never sent to a custom endpoint.
|
| 44 |
+
|
| 45 |
+
Final reward is clipped to [0, 1] and additionally clamped to ≤ 0.40
|
| 46 |
+
when ``size_sanity < 0.10`` (catastrophic-size hard cap — stops a
|
| 47 |
+
charitable judge from inflating scores on wildly wrong-sized patches).
|
| 48 |
+
|
| 49 |
+
Outputs (mirrors `_pr_runtime_verifier.py` after #75):
|
| 50 |
+
/logs/verifier/reward.txt — single float (Harbor reads this);
|
| 51 |
+
graded runs only
|
| 52 |
+
/logs/verifier/reward-details.json — full component breakdown + status
|
| 53 |
+
(structured diagnostics; Harbor's `reward.json` schema is flat-numeric-
|
| 54 |
+
only, so the breakdown goes to the `reward-details.json` sidecar which
|
| 55 |
+
Harbor renders under Verifier Logs → Rewards)
|
| 56 |
+
|
| 57 |
+
Pure stdlib — uses only ``difflib``, ``json``, ``os``, ``re``,
|
| 58 |
+
``urllib``, ``sys``. The same module is imported by the unit tests
|
| 59 |
+
under ``tests/test_pr_diff_verifier.py`` so the in-container behavior
|
| 60 |
+
stays in lockstep with what we test.
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
from __future__ import annotations
|
| 64 |
+
|
| 65 |
+
import argparse
|
| 66 |
+
import difflib
|
| 67 |
+
import json
|
| 68 |
+
import math
|
| 69 |
+
import os
|
| 70 |
+
import re
|
| 71 |
+
import sys
|
| 72 |
+
import urllib.error
|
| 73 |
+
import urllib.request
|
| 74 |
+
|
| 75 |
+
# ---------------------------------------------------------------------------
|
| 76 |
+
# Parsing helpers (shared by multiple components)
|
| 77 |
+
# ---------------------------------------------------------------------------
|
| 78 |
+
|
| 79 |
+
_DIFF_HEADER_RE = re.compile(r"^diff --git a/(\S+) b/(\S+)$")
|
| 80 |
+
_HUNK_HEADER_RE = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@")
|
| 81 |
+
_FILE_MARKER_RE = re.compile(r"^(?:---|\+\+\+) ")
|
| 82 |
+
_INDEX_RE = re.compile(r"^index ")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def file_paths(diff: str) -> set[str]:
|
| 86 |
+
"""Return the set of ``b/<path>`` paths touched by a unified diff."""
|
| 87 |
+
paths: set[str] = set()
|
| 88 |
+
for line in diff.splitlines():
|
| 89 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 90 |
+
if m:
|
| 91 |
+
paths.add(m.group(2))
|
| 92 |
+
return paths
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def hunk_ranges(diff: str) -> dict[str, list[tuple[int, int]]]:
|
| 96 |
+
"""For each touched file, return list of (start_line, end_line) ranges
|
| 97 |
+
on the **post-change** side (the ``+`` numbers in ``@@ -X +Y @@``).
|
| 98 |
+
"""
|
| 99 |
+
out: dict[str, list[tuple[int, int]]] = {}
|
| 100 |
+
current_file: str | None = None
|
| 101 |
+
for line in diff.splitlines():
|
| 102 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 103 |
+
if m:
|
| 104 |
+
current_file = m.group(2)
|
| 105 |
+
out.setdefault(current_file, [])
|
| 106 |
+
continue
|
| 107 |
+
m = _HUNK_HEADER_RE.match(line)
|
| 108 |
+
if m and current_file is not None:
|
| 109 |
+
new_start = int(m.group(3))
|
| 110 |
+
new_count = int(m.group(4) or "1")
|
| 111 |
+
end = new_start + max(new_count - 1, 0)
|
| 112 |
+
out[current_file].append((new_start, end))
|
| 113 |
+
return out
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def _normalize_changes_only(diff: str) -> list[str]:
|
| 117 |
+
"""Return the +/- lines (the actual changes) for similarity scoring.
|
| 118 |
+
|
| 119 |
+
Drops:
|
| 120 |
+
- ``diff --git`` / ``index abc..def`` metadata
|
| 121 |
+
- ``@@ ... @@`` hunk markers (volatile line numbers)
|
| 122 |
+
- context lines (no +/- prefix) — these are unchanged code, scoring
|
| 123 |
+
them inflates similarity for trivial patches
|
| 124 |
+
Keeps file-marker lines (``--- a/foo`` / ``+++ b/foo``) so file identity
|
| 125 |
+
stays in the comparison; normalizes off the tab+timestamp suffix git
|
| 126 |
+
sometimes appends.
|
| 127 |
+
"""
|
| 128 |
+
out: list[str] = []
|
| 129 |
+
for line in diff.splitlines():
|
| 130 |
+
if _DIFF_HEADER_RE.match(line) or _INDEX_RE.match(line):
|
| 131 |
+
continue
|
| 132 |
+
if _HUNK_HEADER_RE.match(line):
|
| 133 |
+
continue
|
| 134 |
+
if _FILE_MARKER_RE.match(line):
|
| 135 |
+
out.append(line.split("\t")[0].strip())
|
| 136 |
+
continue
|
| 137 |
+
# +/- lines (actual changes)
|
| 138 |
+
if line.startswith("+") or line.startswith("-"):
|
| 139 |
+
out.append(line)
|
| 140 |
+
return out
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
# ---------------------------------------------------------------------------
|
| 144 |
+
# Reward components
|
| 145 |
+
# ---------------------------------------------------------------------------
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def format_valid(predicted: str) -> float:
|
| 149 |
+
"""1.0 if the predicted text looks like a unified diff; else 0.0.
|
| 150 |
+
|
| 151 |
+
Requires both a ``diff --git`` header and at least one real +/- line
|
| 152 |
+
(not the ``---`` / ``+++`` file-marker lines).
|
| 153 |
+
"""
|
| 154 |
+
if not predicted.strip():
|
| 155 |
+
return 0.0
|
| 156 |
+
has_header = False
|
| 157 |
+
has_change = False
|
| 158 |
+
for line in predicted.splitlines():
|
| 159 |
+
if _DIFF_HEADER_RE.match(line):
|
| 160 |
+
has_header = True
|
| 161 |
+
elif (line.startswith("+") or line.startswith("-")) and not line.startswith(
|
| 162 |
+
("+++ ", "--- ")
|
| 163 |
+
):
|
| 164 |
+
has_change = True
|
| 165 |
+
if has_header and has_change:
|
| 166 |
+
return 1.0
|
| 167 |
+
return 0.0
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def file_targeting(oracle: str, predicted: str) -> float:
|
| 171 |
+
"""F1 over the changed-file sets.
|
| 172 |
+
|
| 173 |
+
Why F1 instead of Jaccard:
|
| 174 |
+
- Missing an oracle file (FN) is a *big* failure.
|
| 175 |
+
- Touching one unrelated extra file (FP) is a small one.
|
| 176 |
+
- Jaccard punishes both equally, which over-penalizes the agent
|
| 177 |
+
for any extra exploration.
|
| 178 |
+
- F1 weights TP twice, giving partial credit when the agent finds
|
| 179 |
+
most-but-not-all of the oracle files even with some noise.
|
| 180 |
+
|
| 181 |
+
Returns 1.0 if both sides touch zero files (degenerate).
|
| 182 |
+
"""
|
| 183 |
+
o = file_paths(oracle)
|
| 184 |
+
p = file_paths(predicted)
|
| 185 |
+
if not o and not p:
|
| 186 |
+
return 1.0
|
| 187 |
+
tp = len(o & p)
|
| 188 |
+
fn = len(o - p)
|
| 189 |
+
fp = len(p - o)
|
| 190 |
+
if tp == 0:
|
| 191 |
+
return 0.0
|
| 192 |
+
# F1 = 2·TP / (2·TP + FN + FP)
|
| 193 |
+
return (2 * tp) / (2 * tp + fn + fp)
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def _count_loc_changes(diff: str) -> int:
|
| 197 |
+
"""Number of real +/- lines (excluding file-marker lines)."""
|
| 198 |
+
n = 0
|
| 199 |
+
for line in diff.splitlines():
|
| 200 |
+
if (line.startswith("+") or line.startswith("-")) and not line.startswith(("+++ ", "--- ")):
|
| 201 |
+
n += 1
|
| 202 |
+
return n
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def size_sanity(oracle: str, predicted: str) -> float:
|
| 206 |
+
"""Penalize predicted patches that are wildly larger / smaller than the oracle.
|
| 207 |
+
|
| 208 |
+
Returns ``min(oracle_loc, predicted_loc) / max(oracle_loc, predicted_loc)``.
|
| 209 |
+
Both empty → 1.0 (degenerate but well-defined). One empty → 0.0.
|
| 210 |
+
|
| 211 |
+
This is the "don't rampage through the codebase" guard — a 200-line
|
| 212 |
+
diff for a 3-line oracle scores ~0.015 here even if every other
|
| 213 |
+
component looks OK.
|
| 214 |
+
"""
|
| 215 |
+
o_loc = _count_loc_changes(oracle)
|
| 216 |
+
p_loc = _count_loc_changes(predicted)
|
| 217 |
+
if o_loc == 0 and p_loc == 0:
|
| 218 |
+
return 1.0
|
| 219 |
+
if o_loc == 0 or p_loc == 0:
|
| 220 |
+
return 0.0
|
| 221 |
+
return min(o_loc, p_loc) / max(o_loc, p_loc)
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def region_overlap(oracle: str, predicted: str, *, slack_lines: int = 5) -> float:
|
| 225 |
+
"""For each oracle hunk, did the predicted diff edit a line within
|
| 226 |
+
``slack_lines`` of that hunk in the same file?
|
| 227 |
+
|
| 228 |
+
Returns the fraction of oracle hunks that have at least one matching
|
| 229 |
+
predicted hunk. ``slack_lines`` tolerates slight line-number drift
|
| 230 |
+
when git diff renders the predicted hunk at a different offset.
|
| 231 |
+
"""
|
| 232 |
+
o_ranges = hunk_ranges(oracle)
|
| 233 |
+
p_ranges = hunk_ranges(predicted)
|
| 234 |
+
total = sum(len(v) for v in o_ranges.values())
|
| 235 |
+
if total == 0:
|
| 236 |
+
return 1.0 # oracle has no hunks (degenerate)
|
| 237 |
+
matched = 0
|
| 238 |
+
for fname, ranges in o_ranges.items():
|
| 239 |
+
p_in_file = p_ranges.get(fname, [])
|
| 240 |
+
for o_start, o_end in ranges:
|
| 241 |
+
for p_start, p_end in p_in_file:
|
| 242 |
+
# Interval overlap with slack — max(starts) <= min(ends) + slack
|
| 243 |
+
if max(o_start, p_start) <= min(o_end, p_end) + slack_lines:
|
| 244 |
+
matched += 1
|
| 245 |
+
break
|
| 246 |
+
return matched / total
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
def similarity(oracle: str, predicted: str) -> float:
|
| 250 |
+
"""SequenceMatcher ratio over +/- lines only.
|
| 251 |
+
|
| 252 |
+
No free credit for context lines — fixes the v0.8.1 inflation where a
|
| 253 |
+
one-line fix scored ~0.7 just because the 3 context lines on either
|
| 254 |
+
side were "matched".
|
| 255 |
+
"""
|
| 256 |
+
if not predicted.strip():
|
| 257 |
+
return 0.0
|
| 258 |
+
o = _normalize_changes_only(oracle)
|
| 259 |
+
p = _normalize_changes_only(predicted)
|
| 260 |
+
if not o:
|
| 261 |
+
return 0.0
|
| 262 |
+
# Exact matching is quadratic-or-worse on repeated lines: 200 x 2,000
|
| 263 |
+
# identical changed lines take ~2 s, 500 x 5,000 take ~35 s, which can
|
| 264 |
+
# run the verifier past Harbor's timeout. Above this many line pairs,
|
| 265 |
+
# fall back to difflib's popular-element heuristic, which stays fast.
|
| 266 |
+
exact = len(o) * len(p) <= _SIMILARITY_EXACT_PAIRS
|
| 267 |
+
return difflib.SequenceMatcher(a=o, b=p, autojunk=not exact).ratio()
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
_SIMILARITY_EXACT_PAIRS = 400_000
|
| 271 |
+
|
| 272 |
+
# A predicted patch over 10x the oracle's changed lines is already a
|
| 273 |
+
# catastrophic size mismatch (size_sanity < 0.10). Past this floor such a
|
| 274 |
+
# patch is a graded 0 instead of being scored, so one huge file can't slow
|
| 275 |
+
# the verifier past its timeout and turn a failing episode into a dropped,
|
| 276 |
+
# ungraded one. The byte cap stops it from being read at all.
|
| 277 |
+
_MAX_PREDICTED_FACTOR = 10
|
| 278 |
+
_MAX_PREDICTED_FLOOR_LOC = 1_000
|
| 279 |
+
_MAX_PREDICTED_BYTES = 16 * 1024 * 1024
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
def predicted_too_large(oracle: str, predicted: str) -> bool:
|
| 283 |
+
"""Whether the predicted patch is too large to score (a graded 0)."""
|
| 284 |
+
limit = max(_MAX_PREDICTED_FACTOR * _count_loc_changes(oracle), _MAX_PREDICTED_FLOOR_LOC)
|
| 285 |
+
return _count_loc_changes(predicted) > limit
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
# LLM-as-judge (Anthropic Messages API, stdlib urllib)
|
| 290 |
+
# ---------------------------------------------------------------------------
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
_JUDGE_PROMPT = (
|
| 294 |
+
"You are scoring a code-fix patch on whether it logically addresses the "
|
| 295 |
+
"described issue. Output a single JSON object: "
|
| 296 |
+
'{{"score": <float in [0,1]>, "reasoning": "<<=30 words"}}.\n\n'
|
| 297 |
+
"DO NOT use the oracle to grade. Score on:\n"
|
| 298 |
+
" - Does the predicted diff touch code regions that could plausibly fix the issue?\n"
|
| 299 |
+
" - Is the change direction consistent with what the issue describes?\n"
|
| 300 |
+
" - Is it a real attempt (not boilerplate, not no-op)?\n\n"
|
| 301 |
+
"Issue:\n{instruction}\n\n"
|
| 302 |
+
"Oracle (reference fix for comparison only — don't grade on similarity to it):\n"
|
| 303 |
+
"{oracle}\n\n"
|
| 304 |
+
"Predicted:\n{predicted}\n\n"
|
| 305 |
+
"Return ONLY the JSON object."
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
_DEFAULT_JUDGE_MODEL = "claude-haiku-4-5-20251001"
|
| 310 |
+
_ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages"
|
| 311 |
+
# Bearer token for a self-hosted judge when R2E_JUDGE_API_KEY is unset. vLLM /
|
| 312 |
+
# Ollama ignore it; the OpenAI wire format still wants one. Same value llm.py uses.
|
| 313 |
+
_PLACEHOLDER_API_KEY = "EMPTY"
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def llm_judge(
|
| 317 |
+
*,
|
| 318 |
+
instruction: str,
|
| 319 |
+
oracle: str,
|
| 320 |
+
predicted: str,
|
| 321 |
+
api_key: str,
|
| 322 |
+
model: str = _DEFAULT_JUDGE_MODEL,
|
| 323 |
+
timeout: int = 60,
|
| 324 |
+
endpoint: str | None = None,
|
| 325 |
+
) -> tuple[float | None, str]:
|
| 326 |
+
"""Return ``(score, status)``.
|
| 327 |
+
|
| 328 |
+
``score`` is a float in [0, 1] on success, ``None`` on failure.
|
| 329 |
+
``status`` is a short string: ``"ok"`` / ``"no_api_key"`` /
|
| 330 |
+
``"no_judge_model"`` / ``"empty_predicted"`` / ``"network"`` /
|
| 331 |
+
``"parse"`` / ``"output_limit"`` / ``"missing_score"`` / ``"invalid_score"``.
|
| 332 |
+
``output_limit`` means the judge exhausted its configured token budget
|
| 333 |
+
(ungraded, even if a partial answer contains a score). ``parse`` means
|
| 334 |
+
the provider's body isn't JSON or has the wrong shape (ungraded); a reply
|
| 335 |
+
with no usable text (refusal, content filter, empty) or no valid score is
|
| 336 |
+
``missing_score`` / ``invalid_score`` (a graded 0). A missing score never
|
| 337 |
+
increases the other weights.
|
| 338 |
+
|
| 339 |
+
``endpoint`` — base URL of an OpenAI-compatible server. When set, the
|
| 340 |
+
request goes to ``<endpoint>/chat/completions`` with ``api_key`` as a
|
| 341 |
+
bearer token, at temperature 0, and ``model`` must be given explicitly;
|
| 342 |
+
otherwise it goes to Anthropic's Messages API unchanged.
|
| 343 |
+
"""
|
| 344 |
+
if not api_key:
|
| 345 |
+
return None, "no_api_key"
|
| 346 |
+
if endpoint and not model:
|
| 347 |
+
return None, "no_judge_model"
|
| 348 |
+
if not predicted.strip():
|
| 349 |
+
return 0.0, "empty_predicted"
|
| 350 |
+
|
| 351 |
+
# Truncate hard so we don't blow up the prompt for big diffs
|
| 352 |
+
prompt = _JUDGE_PROMPT.format(
|
| 353 |
+
instruction=instruction[:4000],
|
| 354 |
+
oracle=oracle[:4000],
|
| 355 |
+
predicted=predicted[:4000],
|
| 356 |
+
)
|
| 357 |
+
payload: dict = {
|
| 358 |
+
"model": model,
|
| 359 |
+
"max_tokens": 200,
|
| 360 |
+
"messages": [{"role": "user", "content": prompt}],
|
| 361 |
+
}
|
| 362 |
+
if endpoint:
|
| 363 |
+
# Small self-hosted models are noisy judges at their default sampling
|
| 364 |
+
# temperature (same input scoring 0.0 one call and 1.0 the next); pin
|
| 365 |
+
# them to greedy. The Anthropic route keeps its defaults — the weights
|
| 366 |
+
# were calibrated against them.
|
| 367 |
+
payload["temperature"] = 0
|
| 368 |
+
url = endpoint.rstrip("/") + "/chat/completions"
|
| 369 |
+
headers = {
|
| 370 |
+
"authorization": f"Bearer {api_key}",
|
| 371 |
+
"content-type": "application/json",
|
| 372 |
+
}
|
| 373 |
+
else:
|
| 374 |
+
url = _ANTHROPIC_MESSAGES_URL
|
| 375 |
+
headers = {
|
| 376 |
+
"x-api-key": api_key,
|
| 377 |
+
"anthropic-version": "2023-06-01",
|
| 378 |
+
"content-type": "application/json",
|
| 379 |
+
}
|
| 380 |
+
body = json.dumps(payload).encode("utf-8")
|
| 381 |
+
req = urllib.request.Request(url, data=body, headers=headers, method="POST")
|
| 382 |
+
try:
|
| 383 |
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
| 384 |
+
raw = resp.read().decode("utf-8")
|
| 385 |
+
except (urllib.error.URLError, urllib.error.HTTPError, TimeoutError, OSError):
|
| 386 |
+
return None, "network"
|
| 387 |
+
|
| 388 |
+
try:
|
| 389 |
+
response = json.loads(raw)
|
| 390 |
+
except json.JSONDecodeError:
|
| 391 |
+
return None, "parse"
|
| 392 |
+
# Provider-reported truncation is a grader capacity failure, not evidence
|
| 393 |
+
# that the submitted patch is wrong. Reasoning models can spend the entire
|
| 394 |
+
# output budget before producing visible text. Never grade a partial score.
|
| 395 |
+
if isinstance(response, dict):
|
| 396 |
+
choices = response.get("choices")
|
| 397 |
+
if endpoint:
|
| 398 |
+
if (
|
| 399 |
+
isinstance(choices, list)
|
| 400 |
+
and choices
|
| 401 |
+
and isinstance(choices[0], dict)
|
| 402 |
+
and choices[0].get("finish_reason") == "length"
|
| 403 |
+
):
|
| 404 |
+
return None, "output_limit"
|
| 405 |
+
elif response.get("stop_reason") in {"max_tokens", "model_context_window_exceeded"}:
|
| 406 |
+
return None, "output_limit"
|
| 407 |
+
text = _judge_text(response, openai_compatible=bool(endpoint))
|
| 408 |
+
if text is None:
|
| 409 |
+
return None, "parse"
|
| 410 |
+
|
| 411 |
+
# Pull the first JSON object out of the model's response
|
| 412 |
+
m = re.search(r"\{[^{}]*\"score\"[^{}]*\}", text, re.DOTALL)
|
| 413 |
+
if not m:
|
| 414 |
+
return None, "missing_score"
|
| 415 |
+
try:
|
| 416 |
+
obj = json.loads(m.group(0))
|
| 417 |
+
score = obj.get("score")
|
| 418 |
+
except (json.JSONDecodeError, ValueError, TypeError):
|
| 419 |
+
return None, "missing_score"
|
| 420 |
+
if type(score) not in (int, float) or not 0 <= score <= 1 or not math.isfinite(score):
|
| 421 |
+
return None, "invalid_score"
|
| 422 |
+
return float(score), "ok"
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
def _judge_text(payload: object, *, openai_compatible: bool) -> str | None:
|
| 426 |
+
"""The judge's answer text, ``""`` when it gave none, ``None`` for a wrong shape.
|
| 427 |
+
|
| 428 |
+
A refusal or a content filter is a well-formed reply with no usable text.
|
| 429 |
+
The agent's patch is in the prompt, so it can provoke one: that is ``""``,
|
| 430 |
+
which grades 0, not ``None``, which leaves the run ungraded.
|
| 431 |
+
|
| 432 |
+
Anthropic: a refusal is HTTP 200 with ``stop_reason: "refusal"`` and
|
| 433 |
+
``content`` empty or holding partial text to discard. OpenAI-compatible:
|
| 434 |
+
``message.content`` is null with a ``refusal`` string or
|
| 435 |
+
``finish_reason: "content_filter"``.
|
| 436 |
+
"""
|
| 437 |
+
if not isinstance(payload, dict):
|
| 438 |
+
return None
|
| 439 |
+
if openai_compatible:
|
| 440 |
+
choices = payload.get("choices")
|
| 441 |
+
if not isinstance(choices, list) or not choices or not isinstance(choices[0], dict):
|
| 442 |
+
return None
|
| 443 |
+
message = choices[0].get("message")
|
| 444 |
+
if not isinstance(message, dict):
|
| 445 |
+
return None
|
| 446 |
+
if message.get("refusal") or choices[0].get("finish_reason") == "content_filter":
|
| 447 |
+
return ""
|
| 448 |
+
content = message.get("content")
|
| 449 |
+
if content is None:
|
| 450 |
+
return ""
|
| 451 |
+
if isinstance(content, str):
|
| 452 |
+
return content
|
| 453 |
+
if isinstance(content, list): # content parts
|
| 454 |
+
return "".join(
|
| 455 |
+
part.get("text", "")
|
| 456 |
+
for part in content
|
| 457 |
+
if isinstance(part, dict) and isinstance(part.get("text", ""), str)
|
| 458 |
+
)
|
| 459 |
+
return None
|
| 460 |
+
content = payload.get("content")
|
| 461 |
+
if not isinstance(content, list):
|
| 462 |
+
return None
|
| 463 |
+
if payload.get("stop_reason") == "refusal":
|
| 464 |
+
return ""
|
| 465 |
+
return "".join(
|
| 466 |
+
block["text"]
|
| 467 |
+
for block in content
|
| 468 |
+
if isinstance(block, dict)
|
| 469 |
+
and block.get("type", "text") == "text"
|
| 470 |
+
and isinstance(block.get("text"), str)
|
| 471 |
+
)
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
# ---------------------------------------------------------------------------
|
| 475 |
+
# Combination
|
| 476 |
+
# ---------------------------------------------------------------------------
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
# Judge replies the agent can provoke: its patch text is part of the judge
|
| 480 |
+
# prompt, so it can steer the answer away from a valid score. These are a
|
| 481 |
+
# graded 0. An unreadable provider envelope (`parse`), missing configuration,
|
| 482 |
+
# a disabled judge, transport errors and an exhausted judge output budget leave
|
| 483 |
+
# the evaluation ungraded. Truncation alone cannot establish an incorrect patch.
|
| 484 |
+
_JUDGE_GRADED_ZERO = frozenset({"missing_score", "invalid_score"})
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def evaluation_status(judge_score: float | None, judge_status: str) -> str:
|
| 488 |
+
"""`graded` when the judge scored or the agent can have caused its failure."""
|
| 489 |
+
if judge_score is not None or judge_status in _JUDGE_GRADED_ZERO:
|
| 490 |
+
return "graded"
|
| 491 |
+
return "ungraded"
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
def combine(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 495 |
+
"""Combine declared components, requiring a positively weighted judge.
|
| 496 |
+
|
| 497 |
+
Without a judge score the result is 0. ``main`` records it as a graded 0
|
| 498 |
+
when the agent can have caused the judge failure, and otherwise writes no
|
| 499 |
+
reward file, so Harbor reports the trial as VERIFIER_FAILED.
|
| 500 |
+
"""
|
| 501 |
+
if weights.get("llm_judge", 0) <= 0 or components.get("llm_judge") is None:
|
| 502 |
+
return 0.0
|
| 503 |
+
if any(w > 0 and components.get(k) is None for k, w in weights.items()):
|
| 504 |
+
return 0.0
|
| 505 |
+
return _weighted_mean(components, weights)
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
def _weighted_mean(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 509 |
+
available = [(k, w) for k, w in weights.items() if w > 0 and components.get(k) is not None]
|
| 510 |
+
if not available:
|
| 511 |
+
return 0.0
|
| 512 |
+
# Relative weights need not sum to one. Scale first so large finite
|
| 513 |
+
# overrides cannot overflow the numerator or denominator into NaN.
|
| 514 |
+
scale = max(w for _, w in available)
|
| 515 |
+
normalized = [(k, w / scale) for k, w in available]
|
| 516 |
+
return sum(w * components[k] for k, w in normalized) / sum(w for _, w in normalized)
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
# ---------------------------------------------------------------------------
|
| 520 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 521 |
+
# ---------------------------------------------------------------------------
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
# Weights retuned after a 23-task pilot. Rationale (LLM-as-reward-engineer
|
| 525 |
+
# analysis grounded in per-task component data):
|
| 526 |
+
#
|
| 527 |
+
# - format_valid → 0.00: was 1.0 across ALL 21 evaluated tasks. Zero
|
| 528 |
+
# discriminative signal — its 0.05 weight was pure dead weight.
|
| 529 |
+
# - similarity → 0.10: Pearson ~0.85 correlation with region_overlap.
|
| 530 |
+
# Carrying both at 0.20 double-counts positional accuracy and
|
| 531 |
+
# additionally penalizes legitimate alternative implementations.
|
| 532 |
+
# - llm_judge → 0.50: only component capturing semantic correctness
|
| 533 |
+
# independent of textual form; diverges informatively from
|
| 534 |
+
# similarity on cases like tokenizers (judge=0.72, sim=0.08).
|
| 535 |
+
# - region_overlap stays 0.20: strongest spatial-localization signal.
|
| 536 |
+
# - file_targeting → 0.12: leading indicator, less correlated with the
|
| 537 |
+
# rest than region/similarity are with each other.
|
| 538 |
+
# - size_sanity → 0.08: useful outlier detector for catastrophic
|
| 539 |
+
# over/under-generation (prettier=0.01, serde=0.08).
|
| 540 |
+
#
|
| 541 |
+
# Total: 0.00 + 0.08 + 0.12 + 0.20 + 0.10 + 0.50 = 1.00.
|
| 542 |
+
_DEFAULT_WEIGHTS = {
|
| 543 |
+
"format_valid": 0.00,
|
| 544 |
+
"size_sanity": 0.08,
|
| 545 |
+
"file_targeting": 0.12,
|
| 546 |
+
"region_overlap": 0.20,
|
| 547 |
+
"similarity": 0.10,
|
| 548 |
+
"llm_judge": 0.50,
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
# Hard cap: when size_sanity < this threshold, clamp final reward to
|
| 552 |
+
# ≤ CATASTROPHIC_SIZE_CAP. Prevents a charitable judge from inflating
|
| 553 |
+
# the score on patches that are wildly the wrong size (catastrophic
|
| 554 |
+
# over- or under-generation).
|
| 555 |
+
_CATASTROPHIC_SIZE_THRESHOLD = 0.10
|
| 556 |
+
_CATASTROPHIC_SIZE_CAP = 0.40
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
def _read_weights_from_env() -> dict[str, float]:
|
| 560 |
+
"""Override defaults via R2E_W_* env vars (set in container by harbor)."""
|
| 561 |
+
overrides = {
|
| 562 |
+
"format_valid": os.environ.get("R2E_W_FORMAT"),
|
| 563 |
+
"size_sanity": os.environ.get("R2E_W_SIZE"),
|
| 564 |
+
"file_targeting": os.environ.get("R2E_W_FILE"),
|
| 565 |
+
"region_overlap": os.environ.get("R2E_W_REGION"),
|
| 566 |
+
"similarity": os.environ.get("R2E_W_SIM"),
|
| 567 |
+
"llm_judge": os.environ.get("R2E_W_JUDGE"),
|
| 568 |
+
}
|
| 569 |
+
out = dict(_DEFAULT_WEIGHTS)
|
| 570 |
+
for k, v in overrides.items():
|
| 571 |
+
if v is None:
|
| 572 |
+
continue
|
| 573 |
+
try:
|
| 574 |
+
value = float(v)
|
| 575 |
+
if math.isfinite(value) and value >= 0:
|
| 576 |
+
out[k] = value
|
| 577 |
+
except (TypeError, ValueError):
|
| 578 |
+
continue
|
| 579 |
+
return out
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
def _judge_config_from_env() -> tuple[str, str, str | None]:
|
| 583 |
+
"""``(api_key, model, endpoint)`` for the judge, from the verifier env.
|
| 584 |
+
|
| 585 |
+
With ``R2E_JUDGE_ENDPOINT`` set, the key comes from ``R2E_JUDGE_API_KEY``
|
| 586 |
+
(placeholder when unset) and ``ANTHROPIC_API_KEY`` is never forwarded to
|
| 587 |
+
the custom server. ``R2E_JUDGE_MODEL`` has no default on that route (a
|
| 588 |
+
self-hosted server won't have Haiku): when unset, ``model`` comes back
|
| 589 |
+
as ``""`` and ``llm_judge`` reports ``no_judge_model`` instead of
|
| 590 |
+
calling out. Without an endpoint the default Anthropic route is
|
| 591 |
+
unchanged.
|
| 592 |
+
"""
|
| 593 |
+
endpoint = os.environ.get("R2E_JUDGE_ENDPOINT", "").strip() or None
|
| 594 |
+
model = os.environ.get("R2E_JUDGE_MODEL", "").strip()
|
| 595 |
+
if endpoint:
|
| 596 |
+
api_key = os.environ.get("R2E_JUDGE_API_KEY", "").strip() or _PLACEHOLDER_API_KEY
|
| 597 |
+
return api_key, model, endpoint
|
| 598 |
+
return os.environ.get("ANTHROPIC_API_KEY", "").strip(), model or _DEFAULT_JUDGE_MODEL, None
|
| 599 |
+
|
| 600 |
+
|
| 601 |
+
def main(argv: list[str] | None = None) -> int:
|
| 602 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 603 |
+
parser.add_argument("oracle")
|
| 604 |
+
parser.add_argument("predicted")
|
| 605 |
+
parser.add_argument("instruction")
|
| 606 |
+
parser.add_argument("--out-dir", default="/logs/verifier")
|
| 607 |
+
args = parser.parse_args(argv)
|
| 608 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 609 |
+
# This run is the only authority on the reward: an earlier or planted
|
| 610 |
+
# reward file must not stand if this evaluation ends up ungraded.
|
| 611 |
+
for name in ("reward.txt", "reward.json"):
|
| 612 |
+
try:
|
| 613 |
+
os.unlink(os.path.join(args.out_dir, name))
|
| 614 |
+
except FileNotFoundError:
|
| 615 |
+
pass
|
| 616 |
+
oracle = _read_or_empty(args.oracle)
|
| 617 |
+
try:
|
| 618 |
+
oversized = os.path.getsize(args.predicted) > _MAX_PREDICTED_BYTES
|
| 619 |
+
except OSError:
|
| 620 |
+
oversized = False
|
| 621 |
+
predicted = "" if oversized else _read_or_empty(args.predicted)
|
| 622 |
+
if oversized or predicted_too_large(oracle, predicted):
|
| 623 |
+
breakdown = {
|
| 624 |
+
"final_reward": 0.0,
|
| 625 |
+
"evaluation_status": "graded",
|
| 626 |
+
"eval_trustworthy": False,
|
| 627 |
+
"predicted_status": "predicted_too_large",
|
| 628 |
+
}
|
| 629 |
+
_write_outputs(args.out_dir, 0.0, breakdown)
|
| 630 |
+
return 0
|
| 631 |
+
instruction = _read_or_empty(args.instruction)
|
| 632 |
+
api_key, judge_model, judge_endpoint = _judge_config_from_env()
|
| 633 |
+
|
| 634 |
+
fv = format_valid(predicted)
|
| 635 |
+
ss = size_sanity(oracle, predicted)
|
| 636 |
+
ft = file_targeting(oracle, predicted)
|
| 637 |
+
ro = region_overlap(oracle, predicted)
|
| 638 |
+
sim = similarity(oracle, predicted)
|
| 639 |
+
weights = _read_weights_from_env()
|
| 640 |
+
if weights["llm_judge"] <= 0:
|
| 641 |
+
judge_score, judge_status = None, "disabled"
|
| 642 |
+
else:
|
| 643 |
+
judge_score, judge_status = llm_judge(
|
| 644 |
+
instruction=instruction,
|
| 645 |
+
oracle=oracle,
|
| 646 |
+
predicted=predicted,
|
| 647 |
+
api_key=api_key,
|
| 648 |
+
model=judge_model,
|
| 649 |
+
endpoint=judge_endpoint,
|
| 650 |
+
)
|
| 651 |
+
|
| 652 |
+
components: dict[str, float | None] = {
|
| 653 |
+
"format_valid": fv,
|
| 654 |
+
"size_sanity": ss,
|
| 655 |
+
"file_targeting": ft,
|
| 656 |
+
"region_overlap": ro,
|
| 657 |
+
"similarity": sim,
|
| 658 |
+
"llm_judge": judge_score,
|
| 659 |
+
}
|
| 660 |
+
final = combine(components, weights)
|
| 661 |
+
final = max(0.0, min(1.0, final))
|
| 662 |
+
|
| 663 |
+
# Hard cap on catastrophic size mismatches. Without this, a charitable
|
| 664 |
+
# judge can inflate the reward on patches that are dramatically the
|
| 665 |
+
# wrong size (prettier scored 0.23 with size_sanity=0.011 — the judge
|
| 666 |
+
# was lenient at 0.25 despite the patch being a near-no-op vs a
|
| 667 |
+
# 500-line oracle). The cap kicks in only at the extremes.
|
| 668 |
+
if ss < _CATASTROPHIC_SIZE_THRESHOLD:
|
| 669 |
+
final = min(final, _CATASTROPHIC_SIZE_CAP)
|
| 670 |
+
|
| 671 |
+
status = evaluation_status(judge_score, judge_status)
|
| 672 |
+
breakdown = {
|
| 673 |
+
# No reward exists for an ungraded evaluation: null, not a placeholder 0.
|
| 674 |
+
"final_reward": round(final, 6) if status == "graded" else None,
|
| 675 |
+
"evaluation_status": status,
|
| 676 |
+
"eval_trustworthy": judge_score is not None,
|
| 677 |
+
"diagnostic_similarity": round(
|
| 678 |
+
_weighted_mean(components, {k: w for k, w in weights.items() if k != "llm_judge"}),
|
| 679 |
+
6,
|
| 680 |
+
),
|
| 681 |
+
"components": {k: (None if v is None else round(v, 6)) for k, v in components.items()},
|
| 682 |
+
"weights": {k: round(v, 6) for k, v in weights.items()},
|
| 683 |
+
"judge_model": judge_model if judge_status == "ok" else None,
|
| 684 |
+
"judge_endpoint": judge_endpoint,
|
| 685 |
+
"judge_status": judge_status,
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
_write_outputs(args.out_dir, final, breakdown)
|
| 689 |
+
return 0
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
def _write_outputs(out_dir: str, final: float, breakdown: dict) -> None:
|
| 693 |
+
# An ungraded evaluation writes no reward file. Harbor then raises
|
| 694 |
+
# RewardFileNotFoundError: the trial is VERIFIER_FAILED, reward_valid is
|
| 695 |
+
# false, and RL consumers (OpenEnv harbor_env -> TRL) drop the rollout
|
| 696 |
+
# instead of training on a 0. Harbor's job mean and pass@k still count the
|
| 697 |
+
# trial as 0, so evaluation stays fail-closed.
|
| 698 |
+
if breakdown["evaluation_status"] == "graded":
|
| 699 |
+
with open(os.path.join(out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 700 |
+
f.write(f"{final:.6f}\n")
|
| 701 |
+
# Harbor's `reward.json` must be a flat map of floats/ints (spec, see
|
| 702 |
+
# <https://harborframework.com/docs/tasks>); our breakdown carries nested
|
| 703 |
+
# dicts, judge strings, and status strings, so it goes to the sidecar the
|
| 704 |
+
# Harbor UI renders under Verifier Logs → Rewards. Mirrors #75 (Neubig)
|
| 705 |
+
# for `_pr_runtime_verifier.py`.
|
| 706 |
+
with open(os.path.join(out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 707 |
+
json.dump(breakdown, f, indent=2)
|
| 708 |
+
|
| 709 |
+
# Also print to stdout so harbor's log captures the breakdown
|
| 710 |
+
print(json.dumps(breakdown, indent=2))
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
def _read_or_empty(path: str) -> str:
|
| 714 |
+
try:
|
| 715 |
+
with open(path, encoding="utf-8") as f:
|
| 716 |
+
return f.read()
|
| 717 |
+
except (OSError, UnicodeDecodeError):
|
| 718 |
+
return ""
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
if __name__ == "__main__":
|
| 722 |
+
sys.exit(main())
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
__all__ = [
|
| 726 |
+
"combine",
|
| 727 |
+
"file_paths",
|
| 728 |
+
"file_targeting",
|
| 729 |
+
"format_valid",
|
| 730 |
+
"hunk_ranges",
|
| 731 |
+
"llm_judge",
|
| 732 |
+
"main",
|
| 733 |
+
"predicted_too_large",
|
| 734 |
+
"region_overlap",
|
| 735 |
+
"similarity",
|
| 736 |
+
"size_sanity",
|
| 737 |
+
]
|
tasks/open-telemetry__opentelemetry-proto-653/environment/Dockerfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_diff — 6-component reward env.
|
| 2 |
+
# Agent-agnostic: the agent (claude-code / openhands / codex / etc.)
|
| 3 |
+
# installs itself at run time via its harbor adapter. We only ship
|
| 4 |
+
# the source repo — the oracle + verifier arrive at verify time via
|
| 5 |
+
# tests/, never baked into the agent's image.
|
| 6 |
+
FROM python:3.12-slim
|
| 7 |
+
ARG GITHUB_TOKEN=
|
| 8 |
+
RUN apt-get update \
|
| 9 |
+
&& apt-get install -y --no-install-recommends git ca-certificates curl \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
RUN git config --global --add safe.directory /workspace \
|
| 12 |
+
&& git config --global init.defaultBranch main \
|
| 13 |
+
&& git config --global advice.detachedHead false
|
| 14 |
+
RUN if [ -n "$GITHUB_TOKEN" ]; then \
|
| 15 |
+
git clone --filter=blob:none https://x-access-token:"${GITHUB_TOKEN}"@github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 16 |
+
else \
|
| 17 |
+
git clone --filter=blob:none https://github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 18 |
+
fi \
|
| 19 |
+
&& git -C /workspace remote set-url origin https://github.com/open-telemetry/opentelemetry-proto.git
|
| 20 |
+
WORKDIR /workspace
|
| 21 |
+
RUN git fetch --depth 1 origin be5d58470429d0255ffdd49491f0815a3a63d6ef 2>/dev/null \
|
| 22 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 23 |
+
RUN git reset --hard be5d58470429d0255ffdd49491f0815a3a63d6ef \
|
| 24 |
+
&& git clean -fdx -e .venv -e venv -e __pycache__
|
| 25 |
+
RUN git checkout -q -B base be5d58470429d0255ffdd49491f0815a3a63d6ef \
|
| 26 |
+
&& git remote remove origin 2>/dev/null || true
|
| 27 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 28 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 29 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 30 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 31 |
+
&& git gc --prune=now 2>/dev/null || true
|
| 32 |
+
RUN P="$(git rev-parse --git-dir)/objects/pack"; if ls "$P"/*.promisor >/dev/null 2>&1; then \
|
| 33 |
+
git rev-list --objects --all --missing=allow-promisor > "$P/../scrub.list" \
|
| 34 |
+
&& K=$(git pack-objects -q --missing=allow-promisor "$P/scrub" < "$P/../scrub.list") \
|
| 35 |
+
&& rm -f "$P/../scrub.list" "$P"/pack-* "$P"/multi-pack-index* \
|
| 36 |
+
&& touch "$P/scrub-$K.promisor" && git prune --expire=now; \
|
| 37 |
+
fi
|
tasks/open-telemetry__opentelemetry-proto-653/instruction.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Add Renovate configuration
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
Related to https://scorecard.dev/viewer/?uri=github.com/open-telemetry/opentelemetry-proto
|
| 8 |
+
|
| 9 |
+
Currently this repo doesn't have either renovate or dependabot configured.
|
| 10 |
+
|
| 11 |
+
After this is merged I will enable Renovate on the repo.
|
| 12 |
+
|
| 13 |
+
## Task
|
| 14 |
+
|
| 15 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `be5d58470429`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-653/solution/patch.diff
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/.github/renovate.json5 b/.github/renovate.json5
|
| 2 |
+
new file mode 100644
|
| 3 |
+
index 0000000..246c457
|
| 4 |
+
--- /dev/null
|
| 5 |
+
+++ b/.github/renovate.json5
|
| 6 |
+
@@ -0,0 +1,21 @@
|
| 7 |
+
+{
|
| 8 |
+
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
| 9 |
+
+ "extends": [
|
| 10 |
+
+ "config:best-practices",
|
| 11 |
+
+ "helpers:pinGitHubActionDigestsToSemver"
|
| 12 |
+
+ ],
|
| 13 |
+
+ "packageRules": [
|
| 14 |
+
+ {
|
| 15 |
+
+ "groupName": "all patch versions",
|
| 16 |
+
+ "matchUpdateTypes": ["patch"],
|
| 17 |
+
+ "schedule": ["before 8am every weekday"]
|
| 18 |
+
+ },
|
| 19 |
+
+ {
|
| 20 |
+
+ "matchUpdateTypes": ["minor", "major"],
|
| 21 |
+
+ "schedule": ["before 8am on Monday"]
|
| 22 |
+
+ }
|
| 23 |
+
+ ],
|
| 24 |
+
+ "labels": [
|
| 25 |
+
+ "dependencies"
|
| 26 |
+
+ ]
|
| 27 |
+
+}
|
tasks/open-telemetry__opentelemetry-proto-653/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
tasks/open-telemetry__opentelemetry-proto-653/task.toml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "trending/open-telemetry__opentelemetry-proto-653"
|
| 5 |
+
description = "Add Renovate configuration"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "medium"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"opentelemetry-proto",
|
| 12 |
+
"pr_diff",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "pr_diff"
|
| 17 |
+
pipeline_version = "0.3.0"
|
| 18 |
+
repo = "open-telemetry/opentelemetry-proto"
|
| 19 |
+
ref = "be5d58470429d0255ffdd49491f0815a3a63d6ef"
|
| 20 |
+
reference = "https://github.com/open-telemetry/opentelemetry-proto/pull/653"
|
| 21 |
+
source_access = "auto"
|
| 22 |
+
built_at = "2026-11-16T16:09:42.236244+00:00"
|
| 23 |
+
reward_kinds = [
|
| 24 |
+
"diff_similarity",
|
| 25 |
+
]
|
| 26 |
+
spec_version = "0.2.0"
|
| 27 |
+
content_hash = "sha256:4415a9a0ab5b91d25cd428641ca07fbb0104f9f46403938e86197e058117ebf1"
|
| 28 |
+
|
| 29 |
+
[metadata.repo2env.pr_diff]
|
| 30 |
+
pr_merged_at = "2025-05-13T20:04:37Z"
|
| 31 |
+
diff_format = "unified"
|
| 32 |
+
context_files = [
|
| 33 |
+
".github/renovate.json5",
|
| 34 |
+
]
|
| 35 |
+
bootstrap_image = "python:3.12-slim"
|
| 36 |
+
|
| 37 |
+
[metadata.repo2env.reward_calibration]
|
| 38 |
+
baseline_reward = 0.0
|
| 39 |
+
loc_changed = 21
|
| 40 |
+
difficulty = "medium"
|
| 41 |
+
|
| 42 |
+
[metadata.repo2env.evaluation]
|
| 43 |
+
schema_version = "1"
|
| 44 |
+
status = "unverified"
|
| 45 |
+
stage = "generation"
|
| 46 |
+
reason_codes = [
|
| 47 |
+
"validation_not_run",
|
| 48 |
+
]
|
| 49 |
+
detail = "Generated task; validation has not been established."
|
| 50 |
+
provenance = "unknown"
|
| 51 |
+
evidence = []
|
| 52 |
+
|
| 53 |
+
[metadata.repo2env.reproducibility]
|
| 54 |
+
mode = "inline_dockerfile"
|
| 55 |
+
image_ref = "python:3.12-slim"
|
| 56 |
+
image_tag = "python:3.12-slim"
|
| 57 |
+
image_visibility = "public"
|
| 58 |
+
pushed_at = "2026-11-16T16:20:02.020099+00:00"
|
| 59 |
+
pushed_by = "scalingX"
|
| 60 |
+
inline_recipe_sha256 = "sha256:3c8cdb7c84560658ef67bab6cf610301e107385465f575e86bf5527364101a67"
|
| 61 |
+
inline_recipe_lines = 37
|
| 62 |
+
inline_recipe_source = "user_dockerfile"
|
| 63 |
+
|
| 64 |
+
[agent]
|
| 65 |
+
timeout_sec = 1800.0
|
| 66 |
+
|
| 67 |
+
[verifier]
|
| 68 |
+
timeout_sec = 300.0
|
tasks/open-telemetry__opentelemetry-proto-653/tests/capture.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Standalone PR-diff capture without executing workspace Git configuration.
|
| 2 |
+
|
| 3 |
+
The emitted task uses a regular clone with a pinned base commit. Only its
|
| 4 |
+
object store is read: refs, index, config, hooks and replacement refs are not
|
| 5 |
+
used. This is a configuration boundary, not a sandbox for a malicious process
|
| 6 |
+
that can modify the verifier, binaries or object store while capture runs.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import argparse
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
+
import re
|
| 15 |
+
import shutil
|
| 16 |
+
import subprocess
|
| 17 |
+
import sys
|
| 18 |
+
import tempfile
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def capture(workspace: Path, base_commit: str) -> bytes:
|
| 23 |
+
"""Capture tracked and new files through a fresh private Git index."""
|
| 24 |
+
if not re.fullmatch(r"[a-fA-F0-9]{40}", base_commit):
|
| 25 |
+
raise ValueError("Expected the task's pinned SHA-1 base commit")
|
| 26 |
+
objects = workspace.resolve() / ".git" / "objects"
|
| 27 |
+
if not objects.is_dir():
|
| 28 |
+
raise ValueError("The task's cloned Git object store is missing")
|
| 29 |
+
git = shutil.which("git", path=os.defpath)
|
| 30 |
+
if git is None:
|
| 31 |
+
raise FileNotFoundError("System git is unavailable")
|
| 32 |
+
with tempfile.TemporaryDirectory(prefix="r2e-diff-") as temporary:
|
| 33 |
+
private = Path(temporary)
|
| 34 |
+
# Do not forward GIT_CONFIG_PARAMETERS/COUNT, external diff programs,
|
| 35 |
+
# system/global includes, user attributes, templates or credential env.
|
| 36 |
+
env = {
|
| 37 |
+
"PATH": os.defpath,
|
| 38 |
+
"HOME": temporary,
|
| 39 |
+
"XDG_CONFIG_HOME": temporary,
|
| 40 |
+
"GIT_CONFIG_NOSYSTEM": "1",
|
| 41 |
+
"GIT_CONFIG_GLOBAL": os.devnull,
|
| 42 |
+
"GIT_ATTR_NOSYSTEM": "1",
|
| 43 |
+
"GIT_NO_REPLACE_OBJECTS": "1",
|
| 44 |
+
"GIT_NO_LAZY_FETCH": "1",
|
| 45 |
+
"GIT_TERMINAL_PROMPT": "0",
|
| 46 |
+
"LC_ALL": "C",
|
| 47 |
+
}
|
| 48 |
+
subprocess.run(
|
| 49 |
+
[git, "init", "--quiet", "--template=", str(private / "repository")],
|
| 50 |
+
env=env,
|
| 51 |
+
cwd=private,
|
| 52 |
+
check=True,
|
| 53 |
+
capture_output=True,
|
| 54 |
+
timeout=60,
|
| 55 |
+
)
|
| 56 |
+
env["GIT_ALTERNATE_OBJECT_DIRECTORIES"] = json.dumps(str(objects), ensure_ascii=False)
|
| 57 |
+
command = [
|
| 58 |
+
git,
|
| 59 |
+
f"--git-dir={private / 'repository/.git'}",
|
| 60 |
+
f"--work-tree={workspace.resolve()}",
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
def run(*args: str) -> bytes:
|
| 64 |
+
return subprocess.run(
|
| 65 |
+
[*command, *args],
|
| 66 |
+
env=env,
|
| 67 |
+
cwd=workspace,
|
| 68 |
+
check=True,
|
| 69 |
+
capture_output=True,
|
| 70 |
+
timeout=60,
|
| 71 |
+
).stdout
|
| 72 |
+
|
| 73 |
+
run("read-tree", f"{base_commit}^{{tree}}")
|
| 74 |
+
# All filter drivers are undefined in the private configuration. The
|
| 75 |
+
# workspace's clean filters, fsmonitor and hooks cannot be invoked.
|
| 76 |
+
run("add", "--all", "--", ".")
|
| 77 |
+
return run("diff", "--cached", "--no-ext-diff", "--no-textconv", base_commit, "--")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def main(argv: list[str] | None = None) -> int:
|
| 81 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 82 |
+
parser.add_argument("workspace", type=Path)
|
| 83 |
+
parser.add_argument("base_commit")
|
| 84 |
+
args = parser.parse_args(argv)
|
| 85 |
+
try:
|
| 86 |
+
patch = capture(args.workspace, args.base_commit)
|
| 87 |
+
except (OSError, ValueError, subprocess.SubprocessError) as exc:
|
| 88 |
+
# Do not echo child stderr: it may contain workspace-controlled data.
|
| 89 |
+
sys.stderr.write(f"PR-diff capture failed ({type(exc).__name__})\n")
|
| 90 |
+
return 1
|
| 91 |
+
sys.stdout.buffer.write(patch)
|
| 92 |
+
return 0
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
if __name__ == "__main__":
|
| 96 |
+
sys.exit(main())
|
tasks/open-telemetry__opentelemetry-proto-653/tests/instruction.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Add Renovate configuration
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
Related to https://scorecard.dev/viewer/?uri=github.com/open-telemetry/opentelemetry-proto
|
| 8 |
+
|
| 9 |
+
Currently this repo doesn't have either renovate or dependabot configured.
|
| 10 |
+
|
| 11 |
+
After this is merged I will enable Renovate on the repo.
|
| 12 |
+
|
| 13 |
+
## Task
|
| 14 |
+
|
| 15 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `be5d58470429`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-653/tests/oracle.patch
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/.github/renovate.json5 b/.github/renovate.json5
|
| 2 |
+
new file mode 100644
|
| 3 |
+
index 0000000..246c457
|
| 4 |
+
--- /dev/null
|
| 5 |
+
+++ b/.github/renovate.json5
|
| 6 |
+
@@ -0,0 +1,21 @@
|
| 7 |
+
+{
|
| 8 |
+
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
| 9 |
+
+ "extends": [
|
| 10 |
+
+ "config:best-practices",
|
| 11 |
+
+ "helpers:pinGitHubActionDigestsToSemver"
|
| 12 |
+
+ ],
|
| 13 |
+
+ "packageRules": [
|
| 14 |
+
+ {
|
| 15 |
+
+ "groupName": "all patch versions",
|
| 16 |
+
+ "matchUpdateTypes": ["patch"],
|
| 17 |
+
+ "schedule": ["before 8am every weekday"]
|
| 18 |
+
+ },
|
| 19 |
+
+ {
|
| 20 |
+
+ "matchUpdateTypes": ["minor", "major"],
|
| 21 |
+
+ "schedule": ["before 8am on Monday"]
|
| 22 |
+
+ }
|
| 23 |
+
+ ],
|
| 24 |
+
+ "labels": [
|
| 25 |
+
+ "dependencies"
|
| 26 |
+
+ ]
|
| 27 |
+
+}
|
tasks/open-telemetry__opentelemetry-proto-653/tests/test.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
mkdir -p /logs/verifier
|
| 6 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json /logs/verifier/reward-details.json
|
| 7 |
+
CAPTURE_DIR="$(mktemp -d)" || exit 1
|
| 8 |
+
trap 'rm -rf -- "$CAPTURE_DIR"' EXIT
|
| 9 |
+
if ! python3 -I "$SCRIPT_DIR/capture.py" /workspace be5d58470429d0255ffdd49491f0815a3a63d6ef > "$CAPTURE_DIR/predicted.patch"; then
|
| 10 |
+
echo "0.0" > /logs/verifier/reward.txt
|
| 11 |
+
printf '%s' '{"final_reward": 0.0, "evaluation_status": "graded", "eval_trustworthy": false, "capture_status": "error"}' > /logs/verifier/reward-details.json
|
| 12 |
+
exit 0
|
| 13 |
+
fi
|
| 14 |
+
rm -f /logs/verifier/predicted.patch
|
| 15 |
+
cp -- "$CAPTURE_DIR/predicted.patch" /logs/verifier/predicted.patch
|
| 16 |
+
: 'START_VERIFY_OUTPUT'
|
| 17 |
+
if ! python3 -I "$SCRIPT_DIR/verifier.py" \
|
| 18 |
+
"$SCRIPT_DIR/oracle.patch" \
|
| 19 |
+
"$CAPTURE_DIR/predicted.patch" \
|
| 20 |
+
"$SCRIPT_DIR/instruction.md"; then
|
| 21 |
+
rm -f /logs/verifier/reward.txt /logs/verifier/reward.json
|
| 22 |
+
printf '%s' '{"final_reward": null, "reward": null, "evaluation_status": "ungraded", "eval_trustworthy": false, "verifier_status": "error"}' > /logs/verifier/reward-details.json
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_diff tasks (6-component reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. Generation emits
|
| 5 |
+
its source as ``tests/verifier.py``. Harbor delivers it at verify time,
|
| 6 |
+
and ``tests/test.sh`` invokes it with the oracle, predicted patch and instruction.
|
| 7 |
+
|
| 8 |
+
Reward = weighted sum of 6 components (5 deterministic + 1 required LLM):
|
| 9 |
+
|
| 10 |
+
format_valid (0 or 1) — predicted parses as a unified diff (guard)
|
| 11 |
+
size_sanity ([0, 1]) — min(oracle_loc, pred_loc) / max(...)
|
| 12 |
+
catches "rampage through the codebase"
|
| 13 |
+
file_targeting ([0, 1]) — F1 over changed-file sets (NOT Jaccard —
|
| 14 |
+
symmetric penalty over-punishes extras)
|
| 15 |
+
region_overlap ([0, 1]) — predicted hunks overlap oracle hunks
|
| 16 |
+
(strongest spatial-localization signal)
|
| 17 |
+
similarity ([0, 1]) — SequenceMatcher ratio over +/- lines only
|
| 18 |
+
(no free credit for context lines)
|
| 19 |
+
llm_judge ([0, 1] or null) — an LLM rates "does this address the issue?"
|
| 20 |
+
Anthropic Haiku by default; any OpenAI-
|
| 21 |
+
compatible server via ``R2E_JUDGE_ENDPOINT``.
|
| 22 |
+
null when the judge is unavailable
|
| 23 |
+
(no key or model, network, unreadable
|
| 24 |
+
reply) → ungraded, no reward file; a
|
| 25 |
+
reply without a valid score (refusal,
|
| 26 |
+
content filter, empty, no "score") → a
|
| 27 |
+
graded 0
|
| 28 |
+
|
| 29 |
+
Default weights: 0.00 / 0.08 / 0.12 / 0.20 / 0.10 / 0.50 (retuned from
|
| 30 |
+
the original 0.05 / 0.05 / 0.10 / 0.20 / 0.20 / 0.40 after a 23-task
|
| 31 |
+
pilot — see the comment block above ``_DEFAULT_WEIGHTS`` below).
|
| 32 |
+
Override per-task via ``task.toml.metadata`` or per-run via env vars
|
| 33 |
+
``R2E_W_FORMAT`` / ``R2E_W_SIZE`` / ``R2E_W_FILE`` / ``R2E_W_REGION`` /
|
| 34 |
+
``R2E_W_SIM`` / ``R2E_W_JUDGE`` (pass via harbor ``--ve`` so they
|
| 35 |
+
reach the verifier container).
|
| 36 |
+
|
| 37 |
+
Judge routing, also via ``--ve``: ``R2E_JUDGE_MODEL`` picks the model
|
| 38 |
+
(default Haiku); ``R2E_JUDGE_ENDPOINT`` points at an OpenAI-compatible
|
| 39 |
+
server (vLLM, Ollama, a gateway) and switches the request to
|
| 40 |
+
``<endpoint>/chat/completions`` with a bearer token from
|
| 41 |
+
``R2E_JUDGE_API_KEY`` — or a placeholder when unset, since self-hosted
|
| 42 |
+
servers ignore it. ``ANTHROPIC_API_KEY`` is only read on the default
|
| 43 |
+
route and is never sent to a custom endpoint.
|
| 44 |
+
|
| 45 |
+
Final reward is clipped to [0, 1] and additionally clamped to ≤ 0.40
|
| 46 |
+
when ``size_sanity < 0.10`` (catastrophic-size hard cap — stops a
|
| 47 |
+
charitable judge from inflating scores on wildly wrong-sized patches).
|
| 48 |
+
|
| 49 |
+
Outputs (mirrors `_pr_runtime_verifier.py` after #75):
|
| 50 |
+
/logs/verifier/reward.txt — single float (Harbor reads this);
|
| 51 |
+
graded runs only
|
| 52 |
+
/logs/verifier/reward-details.json — full component breakdown + status
|
| 53 |
+
(structured diagnostics; Harbor's `reward.json` schema is flat-numeric-
|
| 54 |
+
only, so the breakdown goes to the `reward-details.json` sidecar which
|
| 55 |
+
Harbor renders under Verifier Logs → Rewards)
|
| 56 |
+
|
| 57 |
+
Pure stdlib — uses only ``difflib``, ``json``, ``os``, ``re``,
|
| 58 |
+
``urllib``, ``sys``. The same module is imported by the unit tests
|
| 59 |
+
under ``tests/test_pr_diff_verifier.py`` so the in-container behavior
|
| 60 |
+
stays in lockstep with what we test.
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
from __future__ import annotations
|
| 64 |
+
|
| 65 |
+
import argparse
|
| 66 |
+
import difflib
|
| 67 |
+
import json
|
| 68 |
+
import math
|
| 69 |
+
import os
|
| 70 |
+
import re
|
| 71 |
+
import sys
|
| 72 |
+
import urllib.error
|
| 73 |
+
import urllib.request
|
| 74 |
+
|
| 75 |
+
# ---------------------------------------------------------------------------
|
| 76 |
+
# Parsing helpers (shared by multiple components)
|
| 77 |
+
# ---------------------------------------------------------------------------
|
| 78 |
+
|
| 79 |
+
_DIFF_HEADER_RE = re.compile(r"^diff --git a/(\S+) b/(\S+)$")
|
| 80 |
+
_HUNK_HEADER_RE = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@")
|
| 81 |
+
_FILE_MARKER_RE = re.compile(r"^(?:---|\+\+\+) ")
|
| 82 |
+
_INDEX_RE = re.compile(r"^index ")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def file_paths(diff: str) -> set[str]:
|
| 86 |
+
"""Return the set of ``b/<path>`` paths touched by a unified diff."""
|
| 87 |
+
paths: set[str] = set()
|
| 88 |
+
for line in diff.splitlines():
|
| 89 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 90 |
+
if m:
|
| 91 |
+
paths.add(m.group(2))
|
| 92 |
+
return paths
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def hunk_ranges(diff: str) -> dict[str, list[tuple[int, int]]]:
|
| 96 |
+
"""For each touched file, return list of (start_line, end_line) ranges
|
| 97 |
+
on the **post-change** side (the ``+`` numbers in ``@@ -X +Y @@``).
|
| 98 |
+
"""
|
| 99 |
+
out: dict[str, list[tuple[int, int]]] = {}
|
| 100 |
+
current_file: str | None = None
|
| 101 |
+
for line in diff.splitlines():
|
| 102 |
+
m = _DIFF_HEADER_RE.match(line)
|
| 103 |
+
if m:
|
| 104 |
+
current_file = m.group(2)
|
| 105 |
+
out.setdefault(current_file, [])
|
| 106 |
+
continue
|
| 107 |
+
m = _HUNK_HEADER_RE.match(line)
|
| 108 |
+
if m and current_file is not None:
|
| 109 |
+
new_start = int(m.group(3))
|
| 110 |
+
new_count = int(m.group(4) or "1")
|
| 111 |
+
end = new_start + max(new_count - 1, 0)
|
| 112 |
+
out[current_file].append((new_start, end))
|
| 113 |
+
return out
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def _normalize_changes_only(diff: str) -> list[str]:
|
| 117 |
+
"""Return the +/- lines (the actual changes) for similarity scoring.
|
| 118 |
+
|
| 119 |
+
Drops:
|
| 120 |
+
- ``diff --git`` / ``index abc..def`` metadata
|
| 121 |
+
- ``@@ ... @@`` hunk markers (volatile line numbers)
|
| 122 |
+
- context lines (no +/- prefix) — these are unchanged code, scoring
|
| 123 |
+
them inflates similarity for trivial patches
|
| 124 |
+
Keeps file-marker lines (``--- a/foo`` / ``+++ b/foo``) so file identity
|
| 125 |
+
stays in the comparison; normalizes off the tab+timestamp suffix git
|
| 126 |
+
sometimes appends.
|
| 127 |
+
"""
|
| 128 |
+
out: list[str] = []
|
| 129 |
+
for line in diff.splitlines():
|
| 130 |
+
if _DIFF_HEADER_RE.match(line) or _INDEX_RE.match(line):
|
| 131 |
+
continue
|
| 132 |
+
if _HUNK_HEADER_RE.match(line):
|
| 133 |
+
continue
|
| 134 |
+
if _FILE_MARKER_RE.match(line):
|
| 135 |
+
out.append(line.split("\t")[0].strip())
|
| 136 |
+
continue
|
| 137 |
+
# +/- lines (actual changes)
|
| 138 |
+
if line.startswith("+") or line.startswith("-"):
|
| 139 |
+
out.append(line)
|
| 140 |
+
return out
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
# ---------------------------------------------------------------------------
|
| 144 |
+
# Reward components
|
| 145 |
+
# ---------------------------------------------------------------------------
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def format_valid(predicted: str) -> float:
|
| 149 |
+
"""1.0 if the predicted text looks like a unified diff; else 0.0.
|
| 150 |
+
|
| 151 |
+
Requires both a ``diff --git`` header and at least one real +/- line
|
| 152 |
+
(not the ``---`` / ``+++`` file-marker lines).
|
| 153 |
+
"""
|
| 154 |
+
if not predicted.strip():
|
| 155 |
+
return 0.0
|
| 156 |
+
has_header = False
|
| 157 |
+
has_change = False
|
| 158 |
+
for line in predicted.splitlines():
|
| 159 |
+
if _DIFF_HEADER_RE.match(line):
|
| 160 |
+
has_header = True
|
| 161 |
+
elif (line.startswith("+") or line.startswith("-")) and not line.startswith(
|
| 162 |
+
("+++ ", "--- ")
|
| 163 |
+
):
|
| 164 |
+
has_change = True
|
| 165 |
+
if has_header and has_change:
|
| 166 |
+
return 1.0
|
| 167 |
+
return 0.0
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def file_targeting(oracle: str, predicted: str) -> float:
|
| 171 |
+
"""F1 over the changed-file sets.
|
| 172 |
+
|
| 173 |
+
Why F1 instead of Jaccard:
|
| 174 |
+
- Missing an oracle file (FN) is a *big* failure.
|
| 175 |
+
- Touching one unrelated extra file (FP) is a small one.
|
| 176 |
+
- Jaccard punishes both equally, which over-penalizes the agent
|
| 177 |
+
for any extra exploration.
|
| 178 |
+
- F1 weights TP twice, giving partial credit when the agent finds
|
| 179 |
+
most-but-not-all of the oracle files even with some noise.
|
| 180 |
+
|
| 181 |
+
Returns 1.0 if both sides touch zero files (degenerate).
|
| 182 |
+
"""
|
| 183 |
+
o = file_paths(oracle)
|
| 184 |
+
p = file_paths(predicted)
|
| 185 |
+
if not o and not p:
|
| 186 |
+
return 1.0
|
| 187 |
+
tp = len(o & p)
|
| 188 |
+
fn = len(o - p)
|
| 189 |
+
fp = len(p - o)
|
| 190 |
+
if tp == 0:
|
| 191 |
+
return 0.0
|
| 192 |
+
# F1 = 2·TP / (2·TP + FN + FP)
|
| 193 |
+
return (2 * tp) / (2 * tp + fn + fp)
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def _count_loc_changes(diff: str) -> int:
|
| 197 |
+
"""Number of real +/- lines (excluding file-marker lines)."""
|
| 198 |
+
n = 0
|
| 199 |
+
for line in diff.splitlines():
|
| 200 |
+
if (line.startswith("+") or line.startswith("-")) and not line.startswith(("+++ ", "--- ")):
|
| 201 |
+
n += 1
|
| 202 |
+
return n
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def size_sanity(oracle: str, predicted: str) -> float:
|
| 206 |
+
"""Penalize predicted patches that are wildly larger / smaller than the oracle.
|
| 207 |
+
|
| 208 |
+
Returns ``min(oracle_loc, predicted_loc) / max(oracle_loc, predicted_loc)``.
|
| 209 |
+
Both empty → 1.0 (degenerate but well-defined). One empty → 0.0.
|
| 210 |
+
|
| 211 |
+
This is the "don't rampage through the codebase" guard — a 200-line
|
| 212 |
+
diff for a 3-line oracle scores ~0.015 here even if every other
|
| 213 |
+
component looks OK.
|
| 214 |
+
"""
|
| 215 |
+
o_loc = _count_loc_changes(oracle)
|
| 216 |
+
p_loc = _count_loc_changes(predicted)
|
| 217 |
+
if o_loc == 0 and p_loc == 0:
|
| 218 |
+
return 1.0
|
| 219 |
+
if o_loc == 0 or p_loc == 0:
|
| 220 |
+
return 0.0
|
| 221 |
+
return min(o_loc, p_loc) / max(o_loc, p_loc)
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def region_overlap(oracle: str, predicted: str, *, slack_lines: int = 5) -> float:
|
| 225 |
+
"""For each oracle hunk, did the predicted diff edit a line within
|
| 226 |
+
``slack_lines`` of that hunk in the same file?
|
| 227 |
+
|
| 228 |
+
Returns the fraction of oracle hunks that have at least one matching
|
| 229 |
+
predicted hunk. ``slack_lines`` tolerates slight line-number drift
|
| 230 |
+
when git diff renders the predicted hunk at a different offset.
|
| 231 |
+
"""
|
| 232 |
+
o_ranges = hunk_ranges(oracle)
|
| 233 |
+
p_ranges = hunk_ranges(predicted)
|
| 234 |
+
total = sum(len(v) for v in o_ranges.values())
|
| 235 |
+
if total == 0:
|
| 236 |
+
return 1.0 # oracle has no hunks (degenerate)
|
| 237 |
+
matched = 0
|
| 238 |
+
for fname, ranges in o_ranges.items():
|
| 239 |
+
p_in_file = p_ranges.get(fname, [])
|
| 240 |
+
for o_start, o_end in ranges:
|
| 241 |
+
for p_start, p_end in p_in_file:
|
| 242 |
+
# Interval overlap with slack — max(starts) <= min(ends) + slack
|
| 243 |
+
if max(o_start, p_start) <= min(o_end, p_end) + slack_lines:
|
| 244 |
+
matched += 1
|
| 245 |
+
break
|
| 246 |
+
return matched / total
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
def similarity(oracle: str, predicted: str) -> float:
|
| 250 |
+
"""SequenceMatcher ratio over +/- lines only.
|
| 251 |
+
|
| 252 |
+
No free credit for context lines — fixes the v0.8.1 inflation where a
|
| 253 |
+
one-line fix scored ~0.7 just because the 3 context lines on either
|
| 254 |
+
side were "matched".
|
| 255 |
+
"""
|
| 256 |
+
if not predicted.strip():
|
| 257 |
+
return 0.0
|
| 258 |
+
o = _normalize_changes_only(oracle)
|
| 259 |
+
p = _normalize_changes_only(predicted)
|
| 260 |
+
if not o:
|
| 261 |
+
return 0.0
|
| 262 |
+
# Exact matching is quadratic-or-worse on repeated lines: 200 x 2,000
|
| 263 |
+
# identical changed lines take ~2 s, 500 x 5,000 take ~35 s, which can
|
| 264 |
+
# run the verifier past Harbor's timeout. Above this many line pairs,
|
| 265 |
+
# fall back to difflib's popular-element heuristic, which stays fast.
|
| 266 |
+
exact = len(o) * len(p) <= _SIMILARITY_EXACT_PAIRS
|
| 267 |
+
return difflib.SequenceMatcher(a=o, b=p, autojunk=not exact).ratio()
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
_SIMILARITY_EXACT_PAIRS = 400_000
|
| 271 |
+
|
| 272 |
+
# A predicted patch over 10x the oracle's changed lines is already a
|
| 273 |
+
# catastrophic size mismatch (size_sanity < 0.10). Past this floor such a
|
| 274 |
+
# patch is a graded 0 instead of being scored, so one huge file can't slow
|
| 275 |
+
# the verifier past its timeout and turn a failing episode into a dropped,
|
| 276 |
+
# ungraded one. The byte cap stops it from being read at all.
|
| 277 |
+
_MAX_PREDICTED_FACTOR = 10
|
| 278 |
+
_MAX_PREDICTED_FLOOR_LOC = 1_000
|
| 279 |
+
_MAX_PREDICTED_BYTES = 16 * 1024 * 1024
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
def predicted_too_large(oracle: str, predicted: str) -> bool:
|
| 283 |
+
"""Whether the predicted patch is too large to score (a graded 0)."""
|
| 284 |
+
limit = max(_MAX_PREDICTED_FACTOR * _count_loc_changes(oracle), _MAX_PREDICTED_FLOOR_LOC)
|
| 285 |
+
return _count_loc_changes(predicted) > limit
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
# LLM-as-judge (Anthropic Messages API, stdlib urllib)
|
| 290 |
+
# ---------------------------------------------------------------------------
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
_JUDGE_PROMPT = (
|
| 294 |
+
"You are scoring a code-fix patch on whether it logically addresses the "
|
| 295 |
+
"described issue. Output a single JSON object: "
|
| 296 |
+
'{{"score": <float in [0,1]>, "reasoning": "<<=30 words"}}.\n\n'
|
| 297 |
+
"DO NOT use the oracle to grade. Score on:\n"
|
| 298 |
+
" - Does the predicted diff touch code regions that could plausibly fix the issue?\n"
|
| 299 |
+
" - Is the change direction consistent with what the issue describes?\n"
|
| 300 |
+
" - Is it a real attempt (not boilerplate, not no-op)?\n\n"
|
| 301 |
+
"Issue:\n{instruction}\n\n"
|
| 302 |
+
"Oracle (reference fix for comparison only — don't grade on similarity to it):\n"
|
| 303 |
+
"{oracle}\n\n"
|
| 304 |
+
"Predicted:\n{predicted}\n\n"
|
| 305 |
+
"Return ONLY the JSON object."
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
_DEFAULT_JUDGE_MODEL = "claude-haiku-4-5-20251001"
|
| 310 |
+
_ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages"
|
| 311 |
+
# Bearer token for a self-hosted judge when R2E_JUDGE_API_KEY is unset. vLLM /
|
| 312 |
+
# Ollama ignore it; the OpenAI wire format still wants one. Same value llm.py uses.
|
| 313 |
+
_PLACEHOLDER_API_KEY = "EMPTY"
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def llm_judge(
|
| 317 |
+
*,
|
| 318 |
+
instruction: str,
|
| 319 |
+
oracle: str,
|
| 320 |
+
predicted: str,
|
| 321 |
+
api_key: str,
|
| 322 |
+
model: str = _DEFAULT_JUDGE_MODEL,
|
| 323 |
+
timeout: int = 60,
|
| 324 |
+
endpoint: str | None = None,
|
| 325 |
+
) -> tuple[float | None, str]:
|
| 326 |
+
"""Return ``(score, status)``.
|
| 327 |
+
|
| 328 |
+
``score`` is a float in [0, 1] on success, ``None`` on failure.
|
| 329 |
+
``status`` is a short string: ``"ok"`` / ``"no_api_key"`` /
|
| 330 |
+
``"no_judge_model"`` / ``"empty_predicted"`` / ``"network"`` /
|
| 331 |
+
``"parse"`` / ``"output_limit"`` / ``"missing_score"`` / ``"invalid_score"``.
|
| 332 |
+
``output_limit`` means the judge exhausted its configured token budget
|
| 333 |
+
(ungraded, even if a partial answer contains a score). ``parse`` means
|
| 334 |
+
the provider's body isn't JSON or has the wrong shape (ungraded); a reply
|
| 335 |
+
with no usable text (refusal, content filter, empty) or no valid score is
|
| 336 |
+
``missing_score`` / ``invalid_score`` (a graded 0). A missing score never
|
| 337 |
+
increases the other weights.
|
| 338 |
+
|
| 339 |
+
``endpoint`` — base URL of an OpenAI-compatible server. When set, the
|
| 340 |
+
request goes to ``<endpoint>/chat/completions`` with ``api_key`` as a
|
| 341 |
+
bearer token, at temperature 0, and ``model`` must be given explicitly;
|
| 342 |
+
otherwise it goes to Anthropic's Messages API unchanged.
|
| 343 |
+
"""
|
| 344 |
+
if not api_key:
|
| 345 |
+
return None, "no_api_key"
|
| 346 |
+
if endpoint and not model:
|
| 347 |
+
return None, "no_judge_model"
|
| 348 |
+
if not predicted.strip():
|
| 349 |
+
return 0.0, "empty_predicted"
|
| 350 |
+
|
| 351 |
+
# Truncate hard so we don't blow up the prompt for big diffs
|
| 352 |
+
prompt = _JUDGE_PROMPT.format(
|
| 353 |
+
instruction=instruction[:4000],
|
| 354 |
+
oracle=oracle[:4000],
|
| 355 |
+
predicted=predicted[:4000],
|
| 356 |
+
)
|
| 357 |
+
payload: dict = {
|
| 358 |
+
"model": model,
|
| 359 |
+
"max_tokens": 200,
|
| 360 |
+
"messages": [{"role": "user", "content": prompt}],
|
| 361 |
+
}
|
| 362 |
+
if endpoint:
|
| 363 |
+
# Small self-hosted models are noisy judges at their default sampling
|
| 364 |
+
# temperature (same input scoring 0.0 one call and 1.0 the next); pin
|
| 365 |
+
# them to greedy. The Anthropic route keeps its defaults — the weights
|
| 366 |
+
# were calibrated against them.
|
| 367 |
+
payload["temperature"] = 0
|
| 368 |
+
url = endpoint.rstrip("/") + "/chat/completions"
|
| 369 |
+
headers = {
|
| 370 |
+
"authorization": f"Bearer {api_key}",
|
| 371 |
+
"content-type": "application/json",
|
| 372 |
+
}
|
| 373 |
+
else:
|
| 374 |
+
url = _ANTHROPIC_MESSAGES_URL
|
| 375 |
+
headers = {
|
| 376 |
+
"x-api-key": api_key,
|
| 377 |
+
"anthropic-version": "2023-06-01",
|
| 378 |
+
"content-type": "application/json",
|
| 379 |
+
}
|
| 380 |
+
body = json.dumps(payload).encode("utf-8")
|
| 381 |
+
req = urllib.request.Request(url, data=body, headers=headers, method="POST")
|
| 382 |
+
try:
|
| 383 |
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
| 384 |
+
raw = resp.read().decode("utf-8")
|
| 385 |
+
except (urllib.error.URLError, urllib.error.HTTPError, TimeoutError, OSError):
|
| 386 |
+
return None, "network"
|
| 387 |
+
|
| 388 |
+
try:
|
| 389 |
+
response = json.loads(raw)
|
| 390 |
+
except json.JSONDecodeError:
|
| 391 |
+
return None, "parse"
|
| 392 |
+
# Provider-reported truncation is a grader capacity failure, not evidence
|
| 393 |
+
# that the submitted patch is wrong. Reasoning models can spend the entire
|
| 394 |
+
# output budget before producing visible text. Never grade a partial score.
|
| 395 |
+
if isinstance(response, dict):
|
| 396 |
+
choices = response.get("choices")
|
| 397 |
+
if endpoint:
|
| 398 |
+
if (
|
| 399 |
+
isinstance(choices, list)
|
| 400 |
+
and choices
|
| 401 |
+
and isinstance(choices[0], dict)
|
| 402 |
+
and choices[0].get("finish_reason") == "length"
|
| 403 |
+
):
|
| 404 |
+
return None, "output_limit"
|
| 405 |
+
elif response.get("stop_reason") in {"max_tokens", "model_context_window_exceeded"}:
|
| 406 |
+
return None, "output_limit"
|
| 407 |
+
text = _judge_text(response, openai_compatible=bool(endpoint))
|
| 408 |
+
if text is None:
|
| 409 |
+
return None, "parse"
|
| 410 |
+
|
| 411 |
+
# Pull the first JSON object out of the model's response
|
| 412 |
+
m = re.search(r"\{[^{}]*\"score\"[^{}]*\}", text, re.DOTALL)
|
| 413 |
+
if not m:
|
| 414 |
+
return None, "missing_score"
|
| 415 |
+
try:
|
| 416 |
+
obj = json.loads(m.group(0))
|
| 417 |
+
score = obj.get("score")
|
| 418 |
+
except (json.JSONDecodeError, ValueError, TypeError):
|
| 419 |
+
return None, "missing_score"
|
| 420 |
+
if type(score) not in (int, float) or not 0 <= score <= 1 or not math.isfinite(score):
|
| 421 |
+
return None, "invalid_score"
|
| 422 |
+
return float(score), "ok"
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
def _judge_text(payload: object, *, openai_compatible: bool) -> str | None:
|
| 426 |
+
"""The judge's answer text, ``""`` when it gave none, ``None`` for a wrong shape.
|
| 427 |
+
|
| 428 |
+
A refusal or a content filter is a well-formed reply with no usable text.
|
| 429 |
+
The agent's patch is in the prompt, so it can provoke one: that is ``""``,
|
| 430 |
+
which grades 0, not ``None``, which leaves the run ungraded.
|
| 431 |
+
|
| 432 |
+
Anthropic: a refusal is HTTP 200 with ``stop_reason: "refusal"`` and
|
| 433 |
+
``content`` empty or holding partial text to discard. OpenAI-compatible:
|
| 434 |
+
``message.content`` is null with a ``refusal`` string or
|
| 435 |
+
``finish_reason: "content_filter"``.
|
| 436 |
+
"""
|
| 437 |
+
if not isinstance(payload, dict):
|
| 438 |
+
return None
|
| 439 |
+
if openai_compatible:
|
| 440 |
+
choices = payload.get("choices")
|
| 441 |
+
if not isinstance(choices, list) or not choices or not isinstance(choices[0], dict):
|
| 442 |
+
return None
|
| 443 |
+
message = choices[0].get("message")
|
| 444 |
+
if not isinstance(message, dict):
|
| 445 |
+
return None
|
| 446 |
+
if message.get("refusal") or choices[0].get("finish_reason") == "content_filter":
|
| 447 |
+
return ""
|
| 448 |
+
content = message.get("content")
|
| 449 |
+
if content is None:
|
| 450 |
+
return ""
|
| 451 |
+
if isinstance(content, str):
|
| 452 |
+
return content
|
| 453 |
+
if isinstance(content, list): # content parts
|
| 454 |
+
return "".join(
|
| 455 |
+
part.get("text", "")
|
| 456 |
+
for part in content
|
| 457 |
+
if isinstance(part, dict) and isinstance(part.get("text", ""), str)
|
| 458 |
+
)
|
| 459 |
+
return None
|
| 460 |
+
content = payload.get("content")
|
| 461 |
+
if not isinstance(content, list):
|
| 462 |
+
return None
|
| 463 |
+
if payload.get("stop_reason") == "refusal":
|
| 464 |
+
return ""
|
| 465 |
+
return "".join(
|
| 466 |
+
block["text"]
|
| 467 |
+
for block in content
|
| 468 |
+
if isinstance(block, dict)
|
| 469 |
+
and block.get("type", "text") == "text"
|
| 470 |
+
and isinstance(block.get("text"), str)
|
| 471 |
+
)
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
# ---------------------------------------------------------------------------
|
| 475 |
+
# Combination
|
| 476 |
+
# ---------------------------------------------------------------------------
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
# Judge replies the agent can provoke: its patch text is part of the judge
|
| 480 |
+
# prompt, so it can steer the answer away from a valid score. These are a
|
| 481 |
+
# graded 0. An unreadable provider envelope (`parse`), missing configuration,
|
| 482 |
+
# a disabled judge, transport errors and an exhausted judge output budget leave
|
| 483 |
+
# the evaluation ungraded. Truncation alone cannot establish an incorrect patch.
|
| 484 |
+
_JUDGE_GRADED_ZERO = frozenset({"missing_score", "invalid_score"})
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def evaluation_status(judge_score: float | None, judge_status: str) -> str:
|
| 488 |
+
"""`graded` when the judge scored or the agent can have caused its failure."""
|
| 489 |
+
if judge_score is not None or judge_status in _JUDGE_GRADED_ZERO:
|
| 490 |
+
return "graded"
|
| 491 |
+
return "ungraded"
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
def combine(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 495 |
+
"""Combine declared components, requiring a positively weighted judge.
|
| 496 |
+
|
| 497 |
+
Without a judge score the result is 0. ``main`` records it as a graded 0
|
| 498 |
+
when the agent can have caused the judge failure, and otherwise writes no
|
| 499 |
+
reward file, so Harbor reports the trial as VERIFIER_FAILED.
|
| 500 |
+
"""
|
| 501 |
+
if weights.get("llm_judge", 0) <= 0 or components.get("llm_judge") is None:
|
| 502 |
+
return 0.0
|
| 503 |
+
if any(w > 0 and components.get(k) is None for k, w in weights.items()):
|
| 504 |
+
return 0.0
|
| 505 |
+
return _weighted_mean(components, weights)
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
def _weighted_mean(components: dict[str, float | None], weights: dict[str, float]) -> float:
|
| 509 |
+
available = [(k, w) for k, w in weights.items() if w > 0 and components.get(k) is not None]
|
| 510 |
+
if not available:
|
| 511 |
+
return 0.0
|
| 512 |
+
# Relative weights need not sum to one. Scale first so large finite
|
| 513 |
+
# overrides cannot overflow the numerator or denominator into NaN.
|
| 514 |
+
scale = max(w for _, w in available)
|
| 515 |
+
normalized = [(k, w / scale) for k, w in available]
|
| 516 |
+
return sum(w * components[k] for k, w in normalized) / sum(w for _, w in normalized)
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
# ---------------------------------------------------------------------------
|
| 520 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 521 |
+
# ---------------------------------------------------------------------------
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
# Weights retuned after a 23-task pilot. Rationale (LLM-as-reward-engineer
|
| 525 |
+
# analysis grounded in per-task component data):
|
| 526 |
+
#
|
| 527 |
+
# - format_valid → 0.00: was 1.0 across ALL 21 evaluated tasks. Zero
|
| 528 |
+
# discriminative signal — its 0.05 weight was pure dead weight.
|
| 529 |
+
# - similarity → 0.10: Pearson ~0.85 correlation with region_overlap.
|
| 530 |
+
# Carrying both at 0.20 double-counts positional accuracy and
|
| 531 |
+
# additionally penalizes legitimate alternative implementations.
|
| 532 |
+
# - llm_judge → 0.50: only component capturing semantic correctness
|
| 533 |
+
# independent of textual form; diverges informatively from
|
| 534 |
+
# similarity on cases like tokenizers (judge=0.72, sim=0.08).
|
| 535 |
+
# - region_overlap stays 0.20: strongest spatial-localization signal.
|
| 536 |
+
# - file_targeting → 0.12: leading indicator, less correlated with the
|
| 537 |
+
# rest than region/similarity are with each other.
|
| 538 |
+
# - size_sanity → 0.08: useful outlier detector for catastrophic
|
| 539 |
+
# over/under-generation (prettier=0.01, serde=0.08).
|
| 540 |
+
#
|
| 541 |
+
# Total: 0.00 + 0.08 + 0.12 + 0.20 + 0.10 + 0.50 = 1.00.
|
| 542 |
+
_DEFAULT_WEIGHTS = {
|
| 543 |
+
"format_valid": 0.00,
|
| 544 |
+
"size_sanity": 0.08,
|
| 545 |
+
"file_targeting": 0.12,
|
| 546 |
+
"region_overlap": 0.20,
|
| 547 |
+
"similarity": 0.10,
|
| 548 |
+
"llm_judge": 0.50,
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
# Hard cap: when size_sanity < this threshold, clamp final reward to
|
| 552 |
+
# ≤ CATASTROPHIC_SIZE_CAP. Prevents a charitable judge from inflating
|
| 553 |
+
# the score on patches that are wildly the wrong size (catastrophic
|
| 554 |
+
# over- or under-generation).
|
| 555 |
+
_CATASTROPHIC_SIZE_THRESHOLD = 0.10
|
| 556 |
+
_CATASTROPHIC_SIZE_CAP = 0.40
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
def _read_weights_from_env() -> dict[str, float]:
|
| 560 |
+
"""Override defaults via R2E_W_* env vars (set in container by harbor)."""
|
| 561 |
+
overrides = {
|
| 562 |
+
"format_valid": os.environ.get("R2E_W_FORMAT"),
|
| 563 |
+
"size_sanity": os.environ.get("R2E_W_SIZE"),
|
| 564 |
+
"file_targeting": os.environ.get("R2E_W_FILE"),
|
| 565 |
+
"region_overlap": os.environ.get("R2E_W_REGION"),
|
| 566 |
+
"similarity": os.environ.get("R2E_W_SIM"),
|
| 567 |
+
"llm_judge": os.environ.get("R2E_W_JUDGE"),
|
| 568 |
+
}
|
| 569 |
+
out = dict(_DEFAULT_WEIGHTS)
|
| 570 |
+
for k, v in overrides.items():
|
| 571 |
+
if v is None:
|
| 572 |
+
continue
|
| 573 |
+
try:
|
| 574 |
+
value = float(v)
|
| 575 |
+
if math.isfinite(value) and value >= 0:
|
| 576 |
+
out[k] = value
|
| 577 |
+
except (TypeError, ValueError):
|
| 578 |
+
continue
|
| 579 |
+
return out
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
def _judge_config_from_env() -> tuple[str, str, str | None]:
|
| 583 |
+
"""``(api_key, model, endpoint)`` for the judge, from the verifier env.
|
| 584 |
+
|
| 585 |
+
With ``R2E_JUDGE_ENDPOINT`` set, the key comes from ``R2E_JUDGE_API_KEY``
|
| 586 |
+
(placeholder when unset) and ``ANTHROPIC_API_KEY`` is never forwarded to
|
| 587 |
+
the custom server. ``R2E_JUDGE_MODEL`` has no default on that route (a
|
| 588 |
+
self-hosted server won't have Haiku): when unset, ``model`` comes back
|
| 589 |
+
as ``""`` and ``llm_judge`` reports ``no_judge_model`` instead of
|
| 590 |
+
calling out. Without an endpoint the default Anthropic route is
|
| 591 |
+
unchanged.
|
| 592 |
+
"""
|
| 593 |
+
endpoint = os.environ.get("R2E_JUDGE_ENDPOINT", "").strip() or None
|
| 594 |
+
model = os.environ.get("R2E_JUDGE_MODEL", "").strip()
|
| 595 |
+
if endpoint:
|
| 596 |
+
api_key = os.environ.get("R2E_JUDGE_API_KEY", "").strip() or _PLACEHOLDER_API_KEY
|
| 597 |
+
return api_key, model, endpoint
|
| 598 |
+
return os.environ.get("ANTHROPIC_API_KEY", "").strip(), model or _DEFAULT_JUDGE_MODEL, None
|
| 599 |
+
|
| 600 |
+
|
| 601 |
+
def main(argv: list[str] | None = None) -> int:
|
| 602 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 603 |
+
parser.add_argument("oracle")
|
| 604 |
+
parser.add_argument("predicted")
|
| 605 |
+
parser.add_argument("instruction")
|
| 606 |
+
parser.add_argument("--out-dir", default="/logs/verifier")
|
| 607 |
+
args = parser.parse_args(argv)
|
| 608 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 609 |
+
# This run is the only authority on the reward: an earlier or planted
|
| 610 |
+
# reward file must not stand if this evaluation ends up ungraded.
|
| 611 |
+
for name in ("reward.txt", "reward.json"):
|
| 612 |
+
try:
|
| 613 |
+
os.unlink(os.path.join(args.out_dir, name))
|
| 614 |
+
except FileNotFoundError:
|
| 615 |
+
pass
|
| 616 |
+
oracle = _read_or_empty(args.oracle)
|
| 617 |
+
try:
|
| 618 |
+
oversized = os.path.getsize(args.predicted) > _MAX_PREDICTED_BYTES
|
| 619 |
+
except OSError:
|
| 620 |
+
oversized = False
|
| 621 |
+
predicted = "" if oversized else _read_or_empty(args.predicted)
|
| 622 |
+
if oversized or predicted_too_large(oracle, predicted):
|
| 623 |
+
breakdown = {
|
| 624 |
+
"final_reward": 0.0,
|
| 625 |
+
"evaluation_status": "graded",
|
| 626 |
+
"eval_trustworthy": False,
|
| 627 |
+
"predicted_status": "predicted_too_large",
|
| 628 |
+
}
|
| 629 |
+
_write_outputs(args.out_dir, 0.0, breakdown)
|
| 630 |
+
return 0
|
| 631 |
+
instruction = _read_or_empty(args.instruction)
|
| 632 |
+
api_key, judge_model, judge_endpoint = _judge_config_from_env()
|
| 633 |
+
|
| 634 |
+
fv = format_valid(predicted)
|
| 635 |
+
ss = size_sanity(oracle, predicted)
|
| 636 |
+
ft = file_targeting(oracle, predicted)
|
| 637 |
+
ro = region_overlap(oracle, predicted)
|
| 638 |
+
sim = similarity(oracle, predicted)
|
| 639 |
+
weights = _read_weights_from_env()
|
| 640 |
+
if weights["llm_judge"] <= 0:
|
| 641 |
+
judge_score, judge_status = None, "disabled"
|
| 642 |
+
else:
|
| 643 |
+
judge_score, judge_status = llm_judge(
|
| 644 |
+
instruction=instruction,
|
| 645 |
+
oracle=oracle,
|
| 646 |
+
predicted=predicted,
|
| 647 |
+
api_key=api_key,
|
| 648 |
+
model=judge_model,
|
| 649 |
+
endpoint=judge_endpoint,
|
| 650 |
+
)
|
| 651 |
+
|
| 652 |
+
components: dict[str, float | None] = {
|
| 653 |
+
"format_valid": fv,
|
| 654 |
+
"size_sanity": ss,
|
| 655 |
+
"file_targeting": ft,
|
| 656 |
+
"region_overlap": ro,
|
| 657 |
+
"similarity": sim,
|
| 658 |
+
"llm_judge": judge_score,
|
| 659 |
+
}
|
| 660 |
+
final = combine(components, weights)
|
| 661 |
+
final = max(0.0, min(1.0, final))
|
| 662 |
+
|
| 663 |
+
# Hard cap on catastrophic size mismatches. Without this, a charitable
|
| 664 |
+
# judge can inflate the reward on patches that are dramatically the
|
| 665 |
+
# wrong size (prettier scored 0.23 with size_sanity=0.011 — the judge
|
| 666 |
+
# was lenient at 0.25 despite the patch being a near-no-op vs a
|
| 667 |
+
# 500-line oracle). The cap kicks in only at the extremes.
|
| 668 |
+
if ss < _CATASTROPHIC_SIZE_THRESHOLD:
|
| 669 |
+
final = min(final, _CATASTROPHIC_SIZE_CAP)
|
| 670 |
+
|
| 671 |
+
status = evaluation_status(judge_score, judge_status)
|
| 672 |
+
breakdown = {
|
| 673 |
+
# No reward exists for an ungraded evaluation: null, not a placeholder 0.
|
| 674 |
+
"final_reward": round(final, 6) if status == "graded" else None,
|
| 675 |
+
"evaluation_status": status,
|
| 676 |
+
"eval_trustworthy": judge_score is not None,
|
| 677 |
+
"diagnostic_similarity": round(
|
| 678 |
+
_weighted_mean(components, {k: w for k, w in weights.items() if k != "llm_judge"}),
|
| 679 |
+
6,
|
| 680 |
+
),
|
| 681 |
+
"components": {k: (None if v is None else round(v, 6)) for k, v in components.items()},
|
| 682 |
+
"weights": {k: round(v, 6) for k, v in weights.items()},
|
| 683 |
+
"judge_model": judge_model if judge_status == "ok" else None,
|
| 684 |
+
"judge_endpoint": judge_endpoint,
|
| 685 |
+
"judge_status": judge_status,
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
_write_outputs(args.out_dir, final, breakdown)
|
| 689 |
+
return 0
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
def _write_outputs(out_dir: str, final: float, breakdown: dict) -> None:
|
| 693 |
+
# An ungraded evaluation writes no reward file. Harbor then raises
|
| 694 |
+
# RewardFileNotFoundError: the trial is VERIFIER_FAILED, reward_valid is
|
| 695 |
+
# false, and RL consumers (OpenEnv harbor_env -> TRL) drop the rollout
|
| 696 |
+
# instead of training on a 0. Harbor's job mean and pass@k still count the
|
| 697 |
+
# trial as 0, so evaluation stays fail-closed.
|
| 698 |
+
if breakdown["evaluation_status"] == "graded":
|
| 699 |
+
with open(os.path.join(out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 700 |
+
f.write(f"{final:.6f}\n")
|
| 701 |
+
# Harbor's `reward.json` must be a flat map of floats/ints (spec, see
|
| 702 |
+
# <https://harborframework.com/docs/tasks>); our breakdown carries nested
|
| 703 |
+
# dicts, judge strings, and status strings, so it goes to the sidecar the
|
| 704 |
+
# Harbor UI renders under Verifier Logs → Rewards. Mirrors #75 (Neubig)
|
| 705 |
+
# for `_pr_runtime_verifier.py`.
|
| 706 |
+
with open(os.path.join(out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 707 |
+
json.dump(breakdown, f, indent=2)
|
| 708 |
+
|
| 709 |
+
# Also print to stdout so harbor's log captures the breakdown
|
| 710 |
+
print(json.dumps(breakdown, indent=2))
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
def _read_or_empty(path: str) -> str:
|
| 714 |
+
try:
|
| 715 |
+
with open(path, encoding="utf-8") as f:
|
| 716 |
+
return f.read()
|
| 717 |
+
except (OSError, UnicodeDecodeError):
|
| 718 |
+
return ""
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
if __name__ == "__main__":
|
| 722 |
+
sys.exit(main())
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
__all__ = [
|
| 726 |
+
"combine",
|
| 727 |
+
"file_paths",
|
| 728 |
+
"file_targeting",
|
| 729 |
+
"format_valid",
|
| 730 |
+
"hunk_ranges",
|
| 731 |
+
"llm_judge",
|
| 732 |
+
"main",
|
| 733 |
+
"predicted_too_large",
|
| 734 |
+
"region_overlap",
|
| 735 |
+
"similarity",
|
| 736 |
+
"size_sanity",
|
| 737 |
+
]
|
tasks/open-telemetry__opentelemetry-proto-658/environment/Dockerfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_diff — 6-component reward env.
|
| 2 |
+
# Agent-agnostic: the agent (claude-code / openhands / codex / etc.)
|
| 3 |
+
# installs itself at run time via its harbor adapter. We only ship
|
| 4 |
+
# the source repo — the oracle + verifier arrive at verify time via
|
| 5 |
+
# tests/, never baked into the agent's image.
|
| 6 |
+
FROM python:3.12-slim
|
| 7 |
+
ARG GITHUB_TOKEN=
|
| 8 |
+
RUN apt-get update \
|
| 9 |
+
&& apt-get install -y --no-install-recommends git ca-certificates curl \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
RUN git config --global --add safe.directory /workspace \
|
| 12 |
+
&& git config --global init.defaultBranch main \
|
| 13 |
+
&& git config --global advice.detachedHead false
|
| 14 |
+
RUN if [ -n "$GITHUB_TOKEN" ]; then \
|
| 15 |
+
git clone --filter=blob:none https://x-access-token:"${GITHUB_TOKEN}"@github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 16 |
+
else \
|
| 17 |
+
git clone --filter=blob:none https://github.com/open-telemetry/opentelemetry-proto.git /workspace; \
|
| 18 |
+
fi \
|
| 19 |
+
&& git -C /workspace remote set-url origin https://github.com/open-telemetry/opentelemetry-proto.git
|
| 20 |
+
WORKDIR /workspace
|
| 21 |
+
RUN git fetch --depth 1 origin 8654ab7a5a43ca25fe8046e59dcd6935c3f76de0 2>/dev/null \
|
| 22 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 23 |
+
RUN git reset --hard 8654ab7a5a43ca25fe8046e59dcd6935c3f76de0 \
|
| 24 |
+
&& git clean -fdx -e .venv -e venv -e __pycache__
|
| 25 |
+
RUN git checkout -q -B base 8654ab7a5a43ca25fe8046e59dcd6935c3f76de0 \
|
| 26 |
+
&& git remote remove origin 2>/dev/null || true
|
| 27 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 28 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 29 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 30 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 31 |
+
&& git gc --prune=now 2>/dev/null || true
|
| 32 |
+
RUN P="$(git rev-parse --git-dir)/objects/pack"; if ls "$P"/*.promisor >/dev/null 2>&1; then \
|
| 33 |
+
git rev-list --objects --all --missing=allow-promisor > "$P/../scrub.list" \
|
| 34 |
+
&& K=$(git pack-objects -q --missing=allow-promisor "$P/scrub" < "$P/../scrub.list") \
|
| 35 |
+
&& rm -f "$P/../scrub.list" "$P"/pack-* "$P"/multi-pack-index* \
|
| 36 |
+
&& touch "$P/scrub-$K.promisor" && git prune --expire=now; \
|
| 37 |
+
fi
|
tasks/open-telemetry__opentelemetry-proto-658/instruction.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** chore(deps): update dependency markdown-link-check to v3.13.7
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
This PR contains the following updates:
|
| 8 |
+
|
| 9 |
+
| Package | Change | Age | Adoption | Passing | Confidence |
|
| 10 |
+
|---|---|---|---|---|---|
|
| 11 |
+
| [markdown-link-check](https://redirect.github.com/tcort/markdown-link-check) | [`3.10.3` -> `3.13.7`](https://renovatebot.com/diffs/npm/markdown-link-check/3.10.3/3.13.7) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
### Release Notes
|
| 16 |
+
|
| 17 |
+
<details>
|
| 18 |
+
<summary>tcort/markdown-link-check (markdown-link-check)</summary>
|
| 19 |
+
|
| 20 |
+
### [`v3.13.7`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3137)
|
| 21 |
+
|
| 22 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.6...v3.13.7)
|
| 23 |
+
|
| 24 |
+
- Do not override reporter option if not defined in config file (issue ) by [@​smainil](https://redirect.github.com/smainil) in
|
| 25 |
+
- chore(deps-dev): bump eslint from 9.14.0 to 9.20.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 26 |
+
- chore(deps-dev): bump [@​eslint/js](https://redirect.github.com/eslint/js) from 9.14.0 to 9.20.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 27 |
+
- chore(deps-dev): bump express from 4.21.1 to 4.21.2 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 28 |
+
- chore(deps): bump proxy-agent from 6.4.0 to 6.5.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 29 |
+
- chore(deps): bump chalk from 5.3.0 to 5.4.1 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 30 |
+
- chore(deps-dev): bump globals from 15.12.0 to 15.14.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 31 |
+
- chore(deps-dev): bump [@​eslint/js](https://redirect.github.com/eslint/js) from 9.20.0 to 9.21.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 32 |
+
- chore(deps-dev): bump mocha from 10.8.2 to 11.1.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 33 |
+
- chore(deps): bump commander from 12.1.0 to 13.1.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 34 |
+
- chore(deps-dev): bump eslint from 9.20.0 to 9.21.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 35 |
+
- chore(deps-dev): bump globals from 15.14.0 to 16.0.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 36 |
+
- chore(deps-dev): bump [@​eslint/js](https://redirect.github.com/eslint/js) from 9.21.0 to 9.22.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 37 |
+
- chore(deps-dev): bump eslint from 9.21.0 to 9.22.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 38 |
+
|
| 39 |
+
### [`v3.13.6`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3136)
|
| 40 |
+
|
| 41 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.5...v3.13.6)
|
| 42 |
+
|
| 43 |
+
- fix: move script back to its original location
|
| 44 |
+
|
| 45 |
+
### [`v3.13.5`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3135)
|
| 46 |
+
|
| 47 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.4...v3.13.5)
|
| 48 |
+
|
| 49 |
+
- fix: MODULE_NOT_FOUND error
|
| 50 |
+
|
| 51 |
+
### [`v3.13.4`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3134)
|
| 52 |
+
|
| 53 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.3...v3.13.4)
|
| 54 |
+
|
| 55 |
+
- fix: MODULE_NOT_FOUND error
|
| 56 |
+
|
| 57 |
+
### [`v3.13.3`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3133)
|
| 58 |
+
|
| 59 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.2...v3.13.3)
|
| 60 |
+
|
| 61 |
+
- fix: MODULE_NOT_FOUND error
|
| 62 |
+
|
| 63 |
+
### [`v3.13.2`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3132)
|
| 64 |
+
|
| 65 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.1...v3.13.2)
|
| 66 |
+
|
| 67 |
+
- fix: MODULE_NOT_FOUND error
|
| 68 |
+
|
| 69 |
+
### [`v3.13.1`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3131)
|
| 70 |
+
|
| 71 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.0...v3.13.1)
|
| 72 |
+
|
| 73 |
+
- fix: MODULE_NOT_FOUND error
|
| 74 |
+
|
| 75 |
+
### [`v3.13.0`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3130)
|
| 76 |
+
|
| 77 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.12.2...v3.13.0)
|
| 78 |
+
|
| 79 |
+
- feat: anchor link checks support HTML tags like `<a name="foo"></a>` [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 80 |
+
- �� add support for additional test reporters [@​dudeofawesome](https://redirect.github.com/dudeofawesome)
|
| 81 |
+
- feat: support iterate link check over directories in CLI [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 82 |
+
- Update hook names [@​henrygerardmoore](https://redirect.github.com/henrygerardmoore)
|
| 83 |
+
- chore(deps): remove lodash [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 84 |
+
- fix: add used `@eslint/js` to dev dependencies in package.json [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 85 |
+
- fix: remove not used const url [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 86 |
+
- feat: add support for unicode characters in anchor links [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 87 |
+
- docs(readme): explain named regex groups in replacementPatterns [@​AndreyNautilus](https://redirect.github.com/AndreyNautilus)
|
| 88 |
+
- ci: bump nodejs [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 89 |
+
- update dependencies
|
| 90 |
+
|
| 91 |
+
### [`v3.12.2`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3122)
|
| 92 |
+
|
| 93 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.12.1...v3.12.2)
|
| 94 |
+
|
| 95 |
+
- fix status badge in README by [@​dklimpel](https://redirect.github.com/dklimpel) in
|
| 96 |
+
- enable skipped tests for hash links by [@​dklimpel](https://redirect.github.com/dklimpel) in
|
| 97 |
+
- chore: Upgrade to ESLint 9 by [@​nschonni](https://redirect.github.com/nschonni) in
|
| 98 |
+
- Check GitHub markdown section links by [@​rkitover](https://redirect.github.com/rkitover) in
|
| 99 |
+
- docs: add example for GitLab pipeline by [@​dklimpel](https://redirect.github.com/dklimpel) in
|
| 100 |
+
- ci: Use matrix for cross-OS testing by [@​nschonni](https://redirect.github.com/nschonni) in
|
| 101 |
+
|
| 102 |
+
### [`v3.12.1`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3121)
|
| 103 |
+
|
| 104 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.12.0...v3.12.1)
|
| 105 |
+
|
| 106 |
+
- fix: fix crash [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 107 |
+
- Set `ipv4first` for tests in CI [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 108 |
+
- Bump node for release [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 109 |
+
|
| 110 |
+
### [`v3.12.0`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3120)
|
| 111 |
+
|
| 112 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.11.2...v3.12.0)
|
| 113 |
+
|
| 114 |
+
- feat: add basic ignore subpaths argument [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 115 |
+
- feat: add global option to replacementPatterns [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 116 |
+
- refactor: replace url.parse with new URL [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 117 |
+
- docs: update readme to be clearer for projectBaseUrl opt [@​nwcm](https://redirect.github.com/nwcm)
|
| 118 |
+
- feat: Add support to load md files via proxy [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 119 |
+
- chore: upgrade dependencies
|
| 120 |
+
|
| 121 |
+
### [`v3.11.2`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3112)
|
| 122 |
+
|
| 123 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.11.1...v3.11.2)
|
| 124 |
+
|
| 125 |
+
- chore(deps-dev): bump eslint from 8.38.0 to 8.39.0 ([@​dependabot
|
| 126 |
+
|
| 127 |
+
## Task
|
| 128 |
+
|
| 129 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `8654ab7a5a43`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-658/solution/patch.diff
ADDED
|
@@ -0,0 +1,1467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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"markdown-link-check": "3.10.3",
|
| 10 |
+
+ "markdown-link-check": "3.13.7",
|
| 11 |
+
"markdownlint-cli": "0.31.0"
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
- "node_modules/ansi-styles": {
|
| 15 |
+
- "version": "4.3.0",
|
| 16 |
+
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 17 |
+
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 18 |
+
+ "node_modules/@oozcitak/dom": {
|
| 19 |
+
+ "version": "1.15.10",
|
| 20 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.10.tgz",
|
| 21 |
+
+ "integrity": "sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==",
|
| 22 |
+
"dev": true,
|
| 23 |
+
"dependencies": {
|
| 24 |
+
- "color-convert": "^2.0.1"
|
| 25 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 26 |
+
+ "@oozcitak/url": "1.0.4",
|
| 27 |
+
+ "@oozcitak/util": "8.3.8"
|
| 28 |
+
},
|
| 29 |
+
"engines": {
|
| 30 |
+
- "node": ">=8"
|
| 31 |
+
+ "node": ">=8.0"
|
| 32 |
+
+ }
|
| 33 |
+
+ },
|
| 34 |
+
+ "node_modules/@oozcitak/infra": {
|
| 35 |
+
+ "version": "1.0.8",
|
| 36 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
|
| 37 |
+
+ "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
|
| 38 |
+
+ "dev": true,
|
| 39 |
+
+ "dependencies": {
|
| 40 |
+
+ "@oozcitak/util": "8.3.8"
|
| 41 |
+
},
|
| 42 |
+
- "funding": {
|
| 43 |
+
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 44 |
+
+ "engines": {
|
| 45 |
+
+ "node": ">=6.0"
|
| 46 |
+
+ }
|
| 47 |
+
+ },
|
| 48 |
+
+ "node_modules/@oozcitak/url": {
|
| 49 |
+
+ "version": "1.0.4",
|
| 50 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
|
| 51 |
+
+ "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
|
| 52 |
+
+ "dev": true,
|
| 53 |
+
+ "dependencies": {
|
| 54 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 55 |
+
+ "@oozcitak/util": "8.3.8"
|
| 56 |
+
+ },
|
| 57 |
+
+ "engines": {
|
| 58 |
+
+ "node": ">=8.0"
|
| 59 |
+
+ }
|
| 60 |
+
+ },
|
| 61 |
+
+ "node_modules/@oozcitak/util": {
|
| 62 |
+
+ "version": "8.3.8",
|
| 63 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
|
| 64 |
+
+ "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==",
|
| 65 |
+
+ "dev": true,
|
| 66 |
+
+ "engines": {
|
| 67 |
+
+ "node": ">=8.0"
|
| 68 |
+
+ }
|
| 69 |
+
+ },
|
| 70 |
+
+ "node_modules/@tootallnate/quickjs-emscripten": {
|
| 71 |
+
+ "version": "0.23.0",
|
| 72 |
+
+ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
|
| 73 |
+
+ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
|
| 74 |
+
+ "dev": true
|
| 75 |
+
+ },
|
| 76 |
+
+ "node_modules/agent-base": {
|
| 77 |
+
+ "version": "7.1.3",
|
| 78 |
+
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
|
| 79 |
+
+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
|
| 80 |
+
+ "dev": true,
|
| 81 |
+
+ "engines": {
|
| 82 |
+
+ "node": ">= 14"
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
"node_modules/argparse": {
|
| 86 |
+
@@ -30,10 +78,22 @@
|
| 87 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 88 |
+
"dev": true
|
| 89 |
+
},
|
| 90 |
+
+ "node_modules/ast-types": {
|
| 91 |
+
+ "version": "0.13.4",
|
| 92 |
+
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
|
| 93 |
+
+ "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
|
| 94 |
+
+ "dev": true,
|
| 95 |
+
+ "dependencies": {
|
| 96 |
+
+ "tslib": "^2.0.1"
|
| 97 |
+
+ },
|
| 98 |
+
+ "engines": {
|
| 99 |
+
+ "node": ">=4"
|
| 100 |
+
+ }
|
| 101 |
+
+ },
|
| 102 |
+
"node_modules/async": {
|
| 103 |
+
- "version": "3.2.4",
|
| 104 |
+
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz",
|
| 105 |
+
- "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==",
|
| 106 |
+
+ "version": "3.2.6",
|
| 107 |
+
+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
|
| 108 |
+
+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
|
| 109 |
+
"dev": true
|
| 110 |
+
},
|
| 111 |
+
"node_modules/balanced-match": {
|
| 112 |
+
@@ -42,6 +102,15 @@
|
| 113 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 114 |
+
"dev": true
|
| 115 |
+
},
|
| 116 |
+
+ "node_modules/basic-ftp": {
|
| 117 |
+
+ "version": "5.0.5",
|
| 118 |
+
+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
|
| 119 |
+
+ "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
|
| 120 |
+
+ "dev": true,
|
| 121 |
+
+ "engines": {
|
| 122 |
+
+ "node": ">=10.0.0"
|
| 123 |
+
+ }
|
| 124 |
+
+ },
|
| 125 |
+
"node_modules/boolbase": {
|
| 126 |
+
"version": "1.0.0",
|
| 127 |
+
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
| 128 |
+
@@ -59,16 +128,12 @@
|
| 129 |
+
}
|
| 130 |
+
},
|
| 131 |
+
"node_modules/chalk": {
|
| 132 |
+
- "version": "4.1.2",
|
| 133 |
+
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 134 |
+
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 135 |
+
+ "version": "5.4.1",
|
| 136 |
+
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
|
| 137 |
+
+ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
|
| 138 |
+
"dev": true,
|
| 139 |
+
- "dependencies": {
|
| 140 |
+
- "ansi-styles": "^4.1.0",
|
| 141 |
+
- "supports-color": "^7.1.0"
|
| 142 |
+
- },
|
| 143 |
+
"engines": {
|
| 144 |
+
- "node": ">=10"
|
| 145 |
+
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
|
| 146 |
+
},
|
| 147 |
+
"funding": {
|
| 148 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 149 |
+
@@ -112,31 +177,13 @@
|
| 150 |
+
"url": "https://github.com/sponsors/fb55"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
- "node_modules/color-convert": {
|
| 154 |
+
- "version": "2.0.1",
|
| 155 |
+
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 156 |
+
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 157 |
+
- "dev": true,
|
| 158 |
+
- "dependencies": {
|
| 159 |
+
- "color-name": "~1.1.4"
|
| 160 |
+
- },
|
| 161 |
+
- "engines": {
|
| 162 |
+
- "node": ">=7.0.0"
|
| 163 |
+
- }
|
| 164 |
+
- },
|
| 165 |
+
- "node_modules/color-name": {
|
| 166 |
+
- "version": "1.1.4",
|
| 167 |
+
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 168 |
+
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 169 |
+
- "dev": true
|
| 170 |
+
- },
|
| 171 |
+
"node_modules/commander": {
|
| 172 |
+
- "version": "6.2.1",
|
| 173 |
+
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
|
| 174 |
+
- "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
|
| 175 |
+
+ "version": "13.1.0",
|
| 176 |
+
+ "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
| 177 |
+
+ "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
|
| 178 |
+
"dev": true,
|
| 179 |
+
"engines": {
|
| 180 |
+
- "node": ">= 6"
|
| 181 |
+
+ "node": ">=18"
|
| 182 |
+
}
|
| 183 |
+
},
|
| 184 |
+
"node_modules/concat-map": {
|
| 185 |
+
@@ -173,13 +220,30 @@
|
| 186 |
+
"url": "https://github.com/sponsors/fb55"
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
+ "node_modules/data-uri-to-buffer": {
|
| 190 |
+
+ "version": "6.0.2",
|
| 191 |
+
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
|
| 192 |
+
+ "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
|
| 193 |
+
+ "dev": true,
|
| 194 |
+
+ "engines": {
|
| 195 |
+
+ "node": ">= 14"
|
| 196 |
+
+ }
|
| 197 |
+
+ },
|
| 198 |
+
"node_modules/debug": {
|
| 199 |
+
- "version": "3.2.7",
|
| 200 |
+
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
| 201 |
+
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
|
| 202 |
+
+ "version": "4.4.1",
|
| 203 |
+
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
|
| 204 |
+
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
|
| 205 |
+
"dev": true,
|
| 206 |
+
"dependencies": {
|
| 207 |
+
- "ms": "^2.1.1"
|
| 208 |
+
+ "ms": "^2.1.3"
|
| 209 |
+
+ },
|
| 210 |
+
+ "engines": {
|
| 211 |
+
+ "node": ">=6.0"
|
| 212 |
+
+ },
|
| 213 |
+
+ "peerDependenciesMeta": {
|
| 214 |
+
+ "supports-color": {
|
| 215 |
+
+ "optional": true
|
| 216 |
+
+ }
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
"node_modules/deep-extend": {
|
| 220 |
+
@@ -191,6 +255,20 @@
|
| 221 |
+
"node": ">=4.0.0"
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
+ "node_modules/degenerator": {
|
| 225 |
+
+ "version": "5.0.1",
|
| 226 |
+
+ "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
|
| 227 |
+
+ "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
|
| 228 |
+
+ "dev": true,
|
| 229 |
+
+ "dependencies": {
|
| 230 |
+
+ "ast-types": "^0.13.4",
|
| 231 |
+
+ "escodegen": "^2.1.0",
|
| 232 |
+
+ "esprima": "^4.0.1"
|
| 233 |
+
+ },
|
| 234 |
+
+ "engines": {
|
| 235 |
+
+ "node": ">= 14"
|
| 236 |
+
+ }
|
| 237 |
+
+ },
|
| 238 |
+
"node_modules/dom-serializer": {
|
| 239 |
+
"version": "2.0.0",
|
| 240 |
+
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
|
| 241 |
+
@@ -258,6 +336,58 @@
|
| 242 |
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
| 243 |
+
}
|
| 244 |
+
},
|
| 245 |
+
+ "node_modules/escodegen": {
|
| 246 |
+
+ "version": "2.1.0",
|
| 247 |
+
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
|
| 248 |
+
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
|
| 249 |
+
+ "dev": true,
|
| 250 |
+
+ "dependencies": {
|
| 251 |
+
+ "esprima": "^4.0.1",
|
| 252 |
+
+ "estraverse": "^5.2.0",
|
| 253 |
+
+ "esutils": "^2.0.2"
|
| 254 |
+
+ },
|
| 255 |
+
+ "bin": {
|
| 256 |
+
+ "escodegen": "bin/escodegen.js",
|
| 257 |
+
+ "esgenerate": "bin/esgenerate.js"
|
| 258 |
+
+ },
|
| 259 |
+
+ "engines": {
|
| 260 |
+
+ "node": ">=6.0"
|
| 261 |
+
+ },
|
| 262 |
+
+ "optionalDependencies": {
|
| 263 |
+
+ "source-map": "~0.6.1"
|
| 264 |
+
+ }
|
| 265 |
+
+ },
|
| 266 |
+
+ "node_modules/esprima": {
|
| 267 |
+
+ "version": "4.0.1",
|
| 268 |
+
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
| 269 |
+
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
| 270 |
+
+ "dev": true,
|
| 271 |
+
+ "bin": {
|
| 272 |
+
+ "esparse": "bin/esparse.js",
|
| 273 |
+
+ "esvalidate": "bin/esvalidate.js"
|
| 274 |
+
+ },
|
| 275 |
+
+ "engines": {
|
| 276 |
+
+ "node": ">=4"
|
| 277 |
+
+ }
|
| 278 |
+
+ },
|
| 279 |
+
+ "node_modules/estraverse": {
|
| 280 |
+
+ "version": "5.3.0",
|
| 281 |
+
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 282 |
+
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 283 |
+
+ "dev": true,
|
| 284 |
+
+ "engines": {
|
| 285 |
+
+ "node": ">=4.0"
|
| 286 |
+
+ }
|
| 287 |
+
+ },
|
| 288 |
+
+ "node_modules/esutils": {
|
| 289 |
+
+ "version": "2.0.3",
|
| 290 |
+
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 291 |
+
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 292 |
+
+ "dev": true,
|
| 293 |
+
+ "engines": {
|
| 294 |
+
+ "node": ">=0.10.0"
|
| 295 |
+
+ }
|
| 296 |
+
+ },
|
| 297 |
+
"node_modules/fs.realpath": {
|
| 298 |
+
"version": "1.0.0",
|
| 299 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 300 |
+
@@ -276,6 +406,20 @@
|
| 301 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 302 |
+
}
|
| 303 |
+
},
|
| 304 |
+
+ "node_modules/get-uri": {
|
| 305 |
+
+ "version": "6.0.4",
|
| 306 |
+
+ "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz",
|
| 307 |
+
+ "integrity": "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==",
|
| 308 |
+
+ "dev": true,
|
| 309 |
+
+ "dependencies": {
|
| 310 |
+
+ "basic-ftp": "^5.0.2",
|
| 311 |
+
+ "data-uri-to-buffer": "^6.0.2",
|
| 312 |
+
+ "debug": "^4.3.4"
|
| 313 |
+
+ },
|
| 314 |
+
+ "engines": {
|
| 315 |
+
+ "node": ">= 14"
|
| 316 |
+
+ }
|
| 317 |
+
+ },
|
| 318 |
+
"node_modules/glob": {
|
| 319 |
+
"version": "7.2.3",
|
| 320 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
| 321 |
+
@@ -308,15 +452,6 @@
|
| 322 |
+
"node": "*"
|
| 323 |
+
}
|
| 324 |
+
},
|
| 325 |
+
- "node_modules/has-flag": {
|
| 326 |
+
- "version": "4.0.0",
|
| 327 |
+
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 328 |
+
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 329 |
+
- "dev": true,
|
| 330 |
+
- "engines": {
|
| 331 |
+
- "node": ">=8"
|
| 332 |
+
- }
|
| 333 |
+
- },
|
| 334 |
+
"node_modules/html-link-extractor": {
|
| 335 |
+
"version": "1.0.5",
|
| 336 |
+
"resolved": "https://registry.npmjs.org/html-link-extractor/-/html-link-extractor-1.0.5.tgz",
|
| 337 |
+
@@ -345,6 +480,32 @@
|
| 338 |
+
"entities": "^4.4.0"
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
+ "node_modules/http-proxy-agent": {
|
| 342 |
+
+ "version": "7.0.2",
|
| 343 |
+
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
| 344 |
+
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
| 345 |
+
+ "dev": true,
|
| 346 |
+
+ "dependencies": {
|
| 347 |
+
+ "agent-base": "^7.1.0",
|
| 348 |
+
+ "debug": "^4.3.4"
|
| 349 |
+
+ },
|
| 350 |
+
+ "engines": {
|
| 351 |
+
+ "node": ">= 14"
|
| 352 |
+
+ }
|
| 353 |
+
+ },
|
| 354 |
+
+ "node_modules/https-proxy-agent": {
|
| 355 |
+
+ "version": "7.0.6",
|
| 356 |
+
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
|
| 357 |
+
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
|
| 358 |
+
+ "dev": true,
|
| 359 |
+
+ "dependencies": {
|
| 360 |
+
+ "agent-base": "^7.1.2",
|
| 361 |
+
+ "debug": "4"
|
| 362 |
+
+ },
|
| 363 |
+
+ "engines": {
|
| 364 |
+
+ "node": ">= 14"
|
| 365 |
+
+ }
|
| 366 |
+
+ },
|
| 367 |
+
"node_modules/iconv-lite": {
|
| 368 |
+
"version": "0.6.3",
|
| 369 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
| 370 |
+
@@ -391,6 +552,19 @@
|
| 371 |
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
+ "node_modules/ip-address": {
|
| 375 |
+
+ "version": "9.0.5",
|
| 376 |
+
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
|
| 377 |
+
+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
|
| 378 |
+
+ "dev": true,
|
| 379 |
+
+ "dependencies": {
|
| 380 |
+
+ "jsbn": "1.1.0",
|
| 381 |
+
+ "sprintf-js": "^1.1.3"
|
| 382 |
+
+ },
|
| 383 |
+
+ "engines": {
|
| 384 |
+
+ "node": ">= 12"
|
| 385 |
+
+ }
|
| 386 |
+
+ },
|
| 387 |
+
"node_modules/is-absolute-url": {
|
| 388 |
+
"version": "4.0.1",
|
| 389 |
+
"resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz",
|
| 390 |
+
@@ -418,18 +592,6 @@
|
| 391 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 392 |
+
}
|
| 393 |
+
},
|
| 394 |
+
- "node_modules/isemail": {
|
| 395 |
+
- "version": "3.2.0",
|
| 396 |
+
- "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz",
|
| 397 |
+
- "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==",
|
| 398 |
+
- "dev": true,
|
| 399 |
+
- "dependencies": {
|
| 400 |
+
- "punycode": "2.x.x"
|
| 401 |
+
- },
|
| 402 |
+
- "engines": {
|
| 403 |
+
- "node": ">=4.0.0"
|
| 404 |
+
- }
|
| 405 |
+
- },
|
| 406 |
+
"node_modules/js-yaml": {
|
| 407 |
+
"version": "4.1.0",
|
| 408 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
| 409 |
+
@@ -442,6 +604,12 @@
|
| 410 |
+
"js-yaml": "bin/js-yaml.js"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
+ "node_modules/jsbn": {
|
| 414 |
+
+ "version": "1.1.0",
|
| 415 |
+
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
| 416 |
+
+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
|
| 417 |
+
+ "dev": true
|
| 418 |
+
+ },
|
| 419 |
+
"node_modules/jsonc-parser": {
|
| 420 |
+
"version": "3.0.0",
|
| 421 |
+
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",
|
| 422 |
+
@@ -449,15 +617,16 @@
|
| 423 |
+
"dev": true
|
| 424 |
+
},
|
| 425 |
+
"node_modules/link-check": {
|
| 426 |
+
- "version": "5.2.0",
|
| 427 |
+
- "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.2.0.tgz",
|
| 428 |
+
- "integrity": "sha512-xRbhYLaGDw7eRDTibTAcl6fXtmUQ13vkezQiTqshHHdGueQeumgxxmQMIOmJYsh2p8BF08t8thhDQ++EAOOq3w==",
|
| 429 |
+
+ "version": "5.4.0",
|
| 430 |
+
+ "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.4.0.tgz",
|
| 431 |
+
+ "integrity": "sha512-0Pf4xBVUnwJdbDgpBlhHNmWDtbVjHTpIFs+JaBuIsC9PKRxjv4KMGCO2Gc8lkVnqMf9B/yaNY+9zmMlO5MyToQ==",
|
| 432 |
+
"dev": true,
|
| 433 |
+
"dependencies": {
|
| 434 |
+
"is-relative-url": "^4.0.0",
|
| 435 |
+
- "isemail": "^3.2.0",
|
| 436 |
+
"ms": "^2.1.3",
|
| 437 |
+
- "needle": "^3.1.0"
|
| 438 |
+
+ "needle": "^3.3.1",
|
| 439 |
+
+ "node-email-verifier": "^2.0.0",
|
| 440 |
+
+ "proxy-agent": "^6.4.0"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
"node_modules/linkify-it": {
|
| 444 |
+
@@ -469,11 +638,14 @@
|
| 445 |
+
"uc.micro": "^1.0.1"
|
| 446 |
+
}
|
| 447 |
+
},
|
| 448 |
+
- "node_modules/lodash": {
|
| 449 |
+
- "version": "4.17.21",
|
| 450 |
+
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 451 |
+
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
| 452 |
+
- "dev": true
|
| 453 |
+
+ "node_modules/lru-cache": {
|
| 454 |
+
+ "version": "7.18.3",
|
| 455 |
+
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
| 456 |
+
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
| 457 |
+
+ "dev": true,
|
| 458 |
+
+ "engines": {
|
| 459 |
+
+ "node": ">=12"
|
| 460 |
+
+ }
|
| 461 |
+
},
|
| 462 |
+
"node_modules/markdown-it": {
|
| 463 |
+
"version": "12.3.2",
|
| 464 |
+
@@ -501,32 +673,33 @@
|
| 465 |
+
}
|
| 466 |
+
},
|
| 467 |
+
"node_modules/markdown-link-check": {
|
| 468 |
+
- "version": "3.10.3",
|
| 469 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.10.3.tgz",
|
| 470 |
+
- "integrity": "sha512-uGdJiZOy1CVWlRe7CyBSJ0Gz80Xm4vt++xjX9sNFjB7qcAxLinaMmzFQ5xOwERaXC9mK770BhnqnsyJT1gTr9w==",
|
| 471 |
+
+ "version": "3.13.7",
|
| 472 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.13.7.tgz",
|
| 473 |
+
+ "integrity": "sha512-Btn3HU8s2Uyh1ZfzmyZEkp64zp2+RAjwfQt1u4swq2Xa6w37OW0T2inQZrkSNVxDSa2jSN2YYhw/JkAp5jF1PQ==",
|
| 474 |
+
"dev": true,
|
| 475 |
+
"dependencies": {
|
| 476 |
+
- "async": "^3.2.4",
|
| 477 |
+
- "chalk": "^4.1.2",
|
| 478 |
+
- "commander": "^6.2.0",
|
| 479 |
+
- "link-check": "^5.2.0",
|
| 480 |
+
- "lodash": "^4.17.21",
|
| 481 |
+
- "markdown-link-extractor": "^3.1.0",
|
| 482 |
+
- "needle": "^3.1.0",
|
| 483 |
+
- "progress": "^2.0.3"
|
| 484 |
+
+ "async": "^3.2.6",
|
| 485 |
+
+ "chalk": "^5.3.0",
|
| 486 |
+
+ "commander": "^13.1.0",
|
| 487 |
+
+ "link-check": "^5.4.0",
|
| 488 |
+
+ "markdown-link-extractor": "^4.0.2",
|
| 489 |
+
+ "needle": "^3.3.1",
|
| 490 |
+
+ "progress": "^2.0.3",
|
| 491 |
+
+ "proxy-agent": "^6.4.0",
|
| 492 |
+
+ "xmlbuilder2": "^3.1.1"
|
| 493 |
+
},
|
| 494 |
+
"bin": {
|
| 495 |
+
"markdown-link-check": "markdown-link-check"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"node_modules/markdown-link-extractor": {
|
| 499 |
+
- "version": "3.1.0",
|
| 500 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-3.1.0.tgz",
|
| 501 |
+
- "integrity": "sha512-r0NEbP1dsM+IqB62Ru9TXLP/HDaTdBNIeylYXumuBi6Xv4ufjE1/g3TnslYL8VNqNcGAGbMptQFHrrdfoZ/Sug==",
|
| 502 |
+
+ "version": "4.0.2",
|
| 503 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-4.0.2.tgz",
|
| 504 |
+
+ "integrity": "sha512-5cUOu4Vwx1wenJgxaudsJ8xwLUMN7747yDJX3V/L7+gi3e4MsCm7w5nbrDQQy8nEfnl4r5NV3pDXMAjhGXYXAw==",
|
| 505 |
+
"dev": true,
|
| 506 |
+
"dependencies": {
|
| 507 |
+
"html-link-extractor": "^1.0.5",
|
| 508 |
+
- "marked": "^4.1.0"
|
| 509 |
+
+ "marked": "^12.0.1"
|
| 510 |
+
}
|
| 511 |
+
},
|
| 512 |
+
"node_modules/markdownlint": {
|
| 513 |
+
@@ -581,15 +754,15 @@
|
| 514 |
+
"dev": true
|
| 515 |
+
},
|
| 516 |
+
"node_modules/marked": {
|
| 517 |
+
- "version": "4.3.0",
|
| 518 |
+
- "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz",
|
| 519 |
+
- "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==",
|
| 520 |
+
+ "version": "12.0.2",
|
| 521 |
+
+ "resolved": "https://registry.npmjs.org/marked/-/marked-12.0.2.tgz",
|
| 522 |
+
+ "integrity": "sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==",
|
| 523 |
+
"dev": true,
|
| 524 |
+
"bin": {
|
| 525 |
+
"marked": "bin/marked.js"
|
| 526 |
+
},
|
| 527 |
+
"engines": {
|
| 528 |
+
- "node": ">= 12"
|
| 529 |
+
+ "node": ">= 18"
|
| 530 |
+
}
|
| 531 |
+
},
|
| 532 |
+
"node_modules/mdurl": {
|
| 533 |
+
@@ -626,12 +799,11 @@
|
| 534 |
+
"dev": true
|
| 535 |
+
},
|
| 536 |
+
"node_modules/needle": {
|
| 537 |
+
- "version": "3.2.0",
|
| 538 |
+
- "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz",
|
| 539 |
+
- "integrity": "sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==",
|
| 540 |
+
+ "version": "3.3.1",
|
| 541 |
+
+ "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz",
|
| 542 |
+
+ "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==",
|
| 543 |
+
"dev": true,
|
| 544 |
+
"dependencies": {
|
| 545 |
+
- "debug": "^3.2.6",
|
| 546 |
+
"iconv-lite": "^0.6.3",
|
| 547 |
+
"sax": "^1.2.4"
|
| 548 |
+
},
|
| 549 |
+
@@ -642,6 +814,28 @@
|
| 550 |
+
"node": ">= 4.4.x"
|
| 551 |
+
}
|
| 552 |
+
},
|
| 553 |
+
+ "node_modules/netmask": {
|
| 554 |
+
+ "version": "2.0.2",
|
| 555 |
+
+ "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
|
| 556 |
+
+ "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==",
|
| 557 |
+
+ "dev": true,
|
| 558 |
+
+ "engines": {
|
| 559 |
+
+ "node": ">= 0.4.0"
|
| 560 |
+
+ }
|
| 561 |
+
+ },
|
| 562 |
+
+ "node_modules/node-email-verifier": {
|
| 563 |
+
+ "version": "2.0.0",
|
| 564 |
+
+ "resolved": "https://registry.npmjs.org/node-email-verifier/-/node-email-verifier-2.0.0.tgz",
|
| 565 |
+
+ "integrity": "sha512-AHcppjOH2KT0mxakrxFMOMjV/gOVMRpYvnJUkNfgF9oJ3INdVmqcMFJ5TlM8elpTPwt6A7bSp1IMnnWcxGom/Q==",
|
| 566 |
+
+ "dev": true,
|
| 567 |
+
+ "dependencies": {
|
| 568 |
+
+ "ms": "^2.1.3",
|
| 569 |
+
+ "validator": "^13.11.0"
|
| 570 |
+
+ },
|
| 571 |
+
+ "engines": {
|
| 572 |
+
+ "node": ">=16.0.0"
|
| 573 |
+
+ }
|
| 574 |
+
+ },
|
| 575 |
+
"node_modules/nth-check": {
|
| 576 |
+
"version": "2.1.1",
|
| 577 |
+
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
|
| 578 |
+
@@ -663,6 +857,38 @@
|
| 579 |
+
"wrappy": "1"
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
+ "node_modules/pac-proxy-agent": {
|
| 583 |
+
+ "version": "7.2.0",
|
| 584 |
+
+ "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz",
|
| 585 |
+
+ "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
|
| 586 |
+
+ "dev": true,
|
| 587 |
+
+ "dependencies": {
|
| 588 |
+
+ "@tootallnate/quickjs-emscripten": "^0.23.0",
|
| 589 |
+
+ "agent-base": "^7.1.2",
|
| 590 |
+
+ "debug": "^4.3.4",
|
| 591 |
+
+ "get-uri": "^6.0.1",
|
| 592 |
+
+ "http-proxy-agent": "^7.0.0",
|
| 593 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 594 |
+
+ "pac-resolver": "^7.0.1",
|
| 595 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 596 |
+
+ },
|
| 597 |
+
+ "engines": {
|
| 598 |
+
+ "node": ">= 14"
|
| 599 |
+
+ }
|
| 600 |
+
+ },
|
| 601 |
+
+ "node_modules/pac-resolver": {
|
| 602 |
+
+ "version": "7.0.1",
|
| 603 |
+
+ "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
|
| 604 |
+
+ "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
|
| 605 |
+
+ "dev": true,
|
| 606 |
+
+ "dependencies": {
|
| 607 |
+
+ "degenerator": "^5.0.0",
|
| 608 |
+
+ "netmask": "^2.0.2"
|
| 609 |
+
+ },
|
| 610 |
+
+ "engines": {
|
| 611 |
+
+ "node": ">= 14"
|
| 612 |
+
+ }
|
| 613 |
+
+ },
|
| 614 |
+
"node_modules/parse5": {
|
| 615 |
+
"version": "7.1.2",
|
| 616 |
+
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
|
| 617 |
+
@@ -706,15 +932,31 @@
|
| 618 |
+
"node": ">=0.4.0"
|
| 619 |
+
}
|
| 620 |
+
},
|
| 621 |
+
- "node_modules/punycode": {
|
| 622 |
+
- "version": "2.3.0",
|
| 623 |
+
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
|
| 624 |
+
- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
|
| 625 |
+
+ "node_modules/proxy-agent": {
|
| 626 |
+
+ "version": "6.5.0",
|
| 627 |
+
+ "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
|
| 628 |
+
+ "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==",
|
| 629 |
+
"dev": true,
|
| 630 |
+
+ "dependencies": {
|
| 631 |
+
+ "agent-base": "^7.1.2",
|
| 632 |
+
+ "debug": "^4.3.4",
|
| 633 |
+
+ "http-proxy-agent": "^7.0.1",
|
| 634 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 635 |
+
+ "lru-cache": "^7.14.1",
|
| 636 |
+
+ "pac-proxy-agent": "^7.1.0",
|
| 637 |
+
+ "proxy-from-env": "^1.1.0",
|
| 638 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 639 |
+
+ },
|
| 640 |
+
"engines": {
|
| 641 |
+
- "node": ">=6"
|
| 642 |
+
+ "node": ">= 14"
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
+ "node_modules/proxy-from-env": {
|
| 646 |
+
+ "version": "1.1.0",
|
| 647 |
+
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 648 |
+
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 649 |
+
+ "dev": true
|
| 650 |
+
+ },
|
| 651 |
+
"node_modules/run-con": {
|
| 652 |
+
"version": "1.2.12",
|
| 653 |
+
"resolved": "https://registry.npmjs.org/run-con/-/run-con-1.2.12.tgz",
|
| 654 |
+
@@ -737,9 +979,63 @@
|
| 655 |
+
"dev": true
|
| 656 |
+
},
|
| 657 |
+
"node_modules/sax": {
|
| 658 |
+
- "version": "1.2.4",
|
| 659 |
+
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
| 660 |
+
- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
|
| 661 |
+
+ "version": "1.4.1",
|
| 662 |
+
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
|
| 663 |
+
+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
|
| 664 |
+
+ "dev": true
|
| 665 |
+
+ },
|
| 666 |
+
+ "node_modules/smart-buffer": {
|
| 667 |
+
+ "version": "4.2.0",
|
| 668 |
+
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
| 669 |
+
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
|
| 670 |
+
+ "dev": true,
|
| 671 |
+
+ "engines": {
|
| 672 |
+
+ "node": ">= 6.0.0",
|
| 673 |
+
+ "npm": ">= 3.0.0"
|
| 674 |
+
+ }
|
| 675 |
+
+ },
|
| 676 |
+
+ "node_modules/socks": {
|
| 677 |
+
+ "version": "2.8.4",
|
| 678 |
+
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz",
|
| 679 |
+
+ "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==",
|
| 680 |
+
+ "dev": true,
|
| 681 |
+
+ "dependencies": {
|
| 682 |
+
+ "ip-address": "^9.0.5",
|
| 683 |
+
+ "smart-buffer": "^4.2.0"
|
| 684 |
+
+ },
|
| 685 |
+
+ "engines": {
|
| 686 |
+
+ "node": ">= 10.0.0",
|
| 687 |
+
+ "npm": ">= 3.0.0"
|
| 688 |
+
+ }
|
| 689 |
+
+ },
|
| 690 |
+
+ "node_modules/socks-proxy-agent": {
|
| 691 |
+
+ "version": "8.0.5",
|
| 692 |
+
+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz",
|
| 693 |
+
+ "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==",
|
| 694 |
+
+ "dev": true,
|
| 695 |
+
+ "dependencies": {
|
| 696 |
+
+ "agent-base": "^7.1.2",
|
| 697 |
+
+ "debug": "^4.3.4",
|
| 698 |
+
+ "socks": "^2.8.3"
|
| 699 |
+
+ },
|
| 700 |
+
+ "engines": {
|
| 701 |
+
+ "node": ">= 14"
|
| 702 |
+
+ }
|
| 703 |
+
+ },
|
| 704 |
+
+ "node_modules/source-map": {
|
| 705 |
+
+ "version": "0.6.1",
|
| 706 |
+
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
| 707 |
+
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
| 708 |
+
+ "dev": true,
|
| 709 |
+
+ "optional": true,
|
| 710 |
+
+ "engines": {
|
| 711 |
+
+ "node": ">=0.10.0"
|
| 712 |
+
+ }
|
| 713 |
+
+ },
|
| 714 |
+
+ "node_modules/sprintf-js": {
|
| 715 |
+
+ "version": "1.1.3",
|
| 716 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
|
| 717 |
+
+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
|
| 718 |
+
"dev": true
|
| 719 |
+
},
|
| 720 |
+
"node_modules/strip-json-comments": {
|
| 721 |
+
@@ -754,17 +1050,11 @@
|
| 722 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 723 |
+
}
|
| 724 |
+
},
|
| 725 |
+
- "node_modules/supports-color": {
|
| 726 |
+
- "version": "7.2.0",
|
| 727 |
+
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 728 |
+
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 729 |
+
- "dev": true,
|
| 730 |
+
- "dependencies": {
|
| 731 |
+
- "has-flag": "^4.0.0"
|
| 732 |
+
- },
|
| 733 |
+
- "engines": {
|
| 734 |
+
- "node": ">=8"
|
| 735 |
+
- }
|
| 736 |
+
+ "node_modules/tslib": {
|
| 737 |
+
+ "version": "2.8.1",
|
| 738 |
+
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 739 |
+
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 740 |
+
+ "dev": true
|
| 741 |
+
},
|
| 742 |
+
"node_modules/uc.micro": {
|
| 743 |
+
"version": "1.0.6",
|
| 744 |
+
@@ -772,33 +1062,133 @@
|
| 745 |
+
"integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==",
|
| 746 |
+
"dev": true
|
| 747 |
+
},
|
| 748 |
+
+ "node_modules/validator": {
|
| 749 |
+
+ "version": "13.15.0",
|
| 750 |
+
+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz",
|
| 751 |
+
+ "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==",
|
| 752 |
+
+ "dev": true,
|
| 753 |
+
+ "engines": {
|
| 754 |
+
+ "node": ">= 0.10"
|
| 755 |
+
+ }
|
| 756 |
+
+ },
|
| 757 |
+
"node_modules/wrappy": {
|
| 758 |
+
"version": "1.0.2",
|
| 759 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 760 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 761 |
+
"dev": true
|
| 762 |
+
+ },
|
| 763 |
+
+ "node_modules/xmlbuilder2": {
|
| 764 |
+
+ "version": "3.1.1",
|
| 765 |
+
+ "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-3.1.1.tgz",
|
| 766 |
+
+ "integrity": "sha512-WCSfbfZnQDdLQLiMdGUQpMxxckeQ4oZNMNhLVkcekTu7xhD4tuUDyAPoY8CwXvBYE6LwBHd6QW2WZXlOWr1vCw==",
|
| 767 |
+
+ "dev": true,
|
| 768 |
+
+ "dependencies": {
|
| 769 |
+
+ "@oozcitak/dom": "1.15.10",
|
| 770 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 771 |
+
+ "@oozcitak/util": "8.3.8",
|
| 772 |
+
+ "js-yaml": "3.14.1"
|
| 773 |
+
+ },
|
| 774 |
+
+ "engines": {
|
| 775 |
+
+ "node": ">=12.0"
|
| 776 |
+
+ }
|
| 777 |
+
+ },
|
| 778 |
+
+ "node_modules/xmlbuilder2/node_modules/argparse": {
|
| 779 |
+
+ "version": "1.0.10",
|
| 780 |
+
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
| 781 |
+
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
| 782 |
+
+ "dev": true,
|
| 783 |
+
+ "dependencies": {
|
| 784 |
+
+ "sprintf-js": "~1.0.2"
|
| 785 |
+
+ }
|
| 786 |
+
+ },
|
| 787 |
+
+ "node_modules/xmlbuilder2/node_modules/js-yaml": {
|
| 788 |
+
+ "version": "3.14.1",
|
| 789 |
+
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
| 790 |
+
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
| 791 |
+
+ "dev": true,
|
| 792 |
+
+ "dependencies": {
|
| 793 |
+
+ "argparse": "^1.0.7",
|
| 794 |
+
+ "esprima": "^4.0.0"
|
| 795 |
+
+ },
|
| 796 |
+
+ "bin": {
|
| 797 |
+
+ "js-yaml": "bin/js-yaml.js"
|
| 798 |
+
+ }
|
| 799 |
+
+ },
|
| 800 |
+
+ "node_modules/xmlbuilder2/node_modules/sprintf-js": {
|
| 801 |
+
+ "version": "1.0.3",
|
| 802 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
| 803 |
+
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
|
| 804 |
+
+ "dev": true
|
| 805 |
+
}
|
| 806 |
+
},
|
| 807 |
+
"dependencies": {
|
| 808 |
+
- "ansi-styles": {
|
| 809 |
+
- "version": "4.3.0",
|
| 810 |
+
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 811 |
+
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 812 |
+
+ "@oozcitak/dom": {
|
| 813 |
+
+ "version": "1.15.10",
|
| 814 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.10.tgz",
|
| 815 |
+
+ "integrity": "sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==",
|
| 816 |
+
"dev": true,
|
| 817 |
+
"requires": {
|
| 818 |
+
- "color-convert": "^2.0.1"
|
| 819 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 820 |
+
+ "@oozcitak/url": "1.0.4",
|
| 821 |
+
+ "@oozcitak/util": "8.3.8"
|
| 822 |
+
}
|
| 823 |
+
},
|
| 824 |
+
+ "@oozcitak/infra": {
|
| 825 |
+
+ "version": "1.0.8",
|
| 826 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
|
| 827 |
+
+ "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
|
| 828 |
+
+ "dev": true,
|
| 829 |
+
+ "requires": {
|
| 830 |
+
+ "@oozcitak/util": "8.3.8"
|
| 831 |
+
+ }
|
| 832 |
+
+ },
|
| 833 |
+
+ "@oozcitak/url": {
|
| 834 |
+
+ "version": "1.0.4",
|
| 835 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
|
| 836 |
+
+ "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
|
| 837 |
+
+ "dev": true,
|
| 838 |
+
+ "requires": {
|
| 839 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 840 |
+
+ "@oozcitak/util": "8.3.8"
|
| 841 |
+
+ }
|
| 842 |
+
+ },
|
| 843 |
+
+ "@oozcitak/util": {
|
| 844 |
+
+ "version": "8.3.8",
|
| 845 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
|
| 846 |
+
+ "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==",
|
| 847 |
+
+ "dev": true
|
| 848 |
+
+ },
|
| 849 |
+
+ "@tootallnate/quickjs-emscripten": {
|
| 850 |
+
+ "version": "0.23.0",
|
| 851 |
+
+ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
|
| 852 |
+
+ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
|
| 853 |
+
+ "dev": true
|
| 854 |
+
+ },
|
| 855 |
+
+ "agent-base": {
|
| 856 |
+
+ "version": "7.1.3",
|
| 857 |
+
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
|
| 858 |
+
+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
|
| 859 |
+
+ "dev": true
|
| 860 |
+
+ },
|
| 861 |
+
"argparse": {
|
| 862 |
+
"version": "2.0.1",
|
| 863 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 864 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 865 |
+
"dev": true
|
| 866 |
+
},
|
| 867 |
+
+ "ast-types": {
|
| 868 |
+
+ "version": "0.13.4",
|
| 869 |
+
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
|
| 870 |
+
+ "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
|
| 871 |
+
+ "dev": true,
|
| 872 |
+
+ "requires": {
|
| 873 |
+
+ "tslib": "^2.0.1"
|
| 874 |
+
+ }
|
| 875 |
+
+ },
|
| 876 |
+
"async": {
|
| 877 |
+
- "version": "3.2.4",
|
| 878 |
+
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz",
|
| 879 |
+
- "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==",
|
| 880 |
+
+ "version": "3.2.6",
|
| 881 |
+
+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
|
| 882 |
+
+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
|
| 883 |
+
"dev": true
|
| 884 |
+
},
|
| 885 |
+
"balanced-match": {
|
| 886 |
+
@@ -807,6 +1197,12 @@
|
| 887 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 888 |
+
"dev": true
|
| 889 |
+
},
|
| 890 |
+
+ "basic-ftp": {
|
| 891 |
+
+ "version": "5.0.5",
|
| 892 |
+
+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
|
| 893 |
+
+ "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
|
| 894 |
+
+ "dev": true
|
| 895 |
+
+ },
|
| 896 |
+
"boolbase": {
|
| 897 |
+
"version": "1.0.0",
|
| 898 |
+
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
| 899 |
+
@@ -824,14 +1220,10 @@
|
| 900 |
+
}
|
| 901 |
+
},
|
| 902 |
+
"chalk": {
|
| 903 |
+
- "version": "4.1.2",
|
| 904 |
+
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 905 |
+
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 906 |
+
- "dev": true,
|
| 907 |
+
- "requires": {
|
| 908 |
+
- "ansi-styles": "^4.1.0",
|
| 909 |
+
- "supports-color": "^7.1.0"
|
| 910 |
+
- }
|
| 911 |
+
+ "version": "5.4.1",
|
| 912 |
+
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
|
| 913 |
+
+ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
|
| 914 |
+
+ "dev": true
|
| 915 |
+
},
|
| 916 |
+
"cheerio": {
|
| 917 |
+
"version": "1.0.0-rc.12",
|
| 918 |
+
@@ -862,25 +1254,10 @@
|
| 919 |
+
"domutils": "^3.0.1"
|
| 920 |
+
}
|
| 921 |
+
},
|
| 922 |
+
- "color-convert": {
|
| 923 |
+
- "version": "2.0.1",
|
| 924 |
+
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 925 |
+
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 926 |
+
- "dev": true,
|
| 927 |
+
- "requires": {
|
| 928 |
+
- "color-name": "~1.1.4"
|
| 929 |
+
- }
|
| 930 |
+
- },
|
| 931 |
+
- "color-name": {
|
| 932 |
+
- "version": "1.1.4",
|
| 933 |
+
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 934 |
+
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 935 |
+
- "dev": true
|
| 936 |
+
- },
|
| 937 |
+
"commander": {
|
| 938 |
+
- "version": "6.2.1",
|
| 939 |
+
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
|
| 940 |
+
- "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
|
| 941 |
+
+ "version": "13.1.0",
|
| 942 |
+
+ "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
| 943 |
+
+ "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
|
| 944 |
+
"dev": true
|
| 945 |
+
},
|
| 946 |
+
"concat-map": {
|
| 947 |
+
@@ -908,13 +1285,19 @@
|
| 948 |
+
"integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==",
|
| 949 |
+
"dev": true
|
| 950 |
+
},
|
| 951 |
+
+ "data-uri-to-buffer": {
|
| 952 |
+
+ "version": "6.0.2",
|
| 953 |
+
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
|
| 954 |
+
+ "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
|
| 955 |
+
+ "dev": true
|
| 956 |
+
+ },
|
| 957 |
+
"debug": {
|
| 958 |
+
- "version": "3.2.7",
|
| 959 |
+
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
| 960 |
+
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
|
| 961 |
+
+ "version": "4.4.1",
|
| 962 |
+
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
|
| 963 |
+
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
|
| 964 |
+
"dev": true,
|
| 965 |
+
"requires": {
|
| 966 |
+
- "ms": "^2.1.1"
|
| 967 |
+
+ "ms": "^2.1.3"
|
| 968 |
+
}
|
| 969 |
+
},
|
| 970 |
+
"deep-extend": {
|
| 971 |
+
@@ -923,6 +1306,17 @@
|
| 972 |
+
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
|
| 973 |
+
"dev": true
|
| 974 |
+
},
|
| 975 |
+
+ "degenerator": {
|
| 976 |
+
+ "version": "5.0.1",
|
| 977 |
+
+ "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
|
| 978 |
+
+ "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
|
| 979 |
+
+ "dev": true,
|
| 980 |
+
+ "requires": {
|
| 981 |
+
+ "ast-types": "^0.13.4",
|
| 982 |
+
+ "escodegen": "^2.1.0",
|
| 983 |
+
+ "esprima": "^4.0.1"
|
| 984 |
+
+ }
|
| 985 |
+
+ },
|
| 986 |
+
"dom-serializer": {
|
| 987 |
+
"version": "2.0.0",
|
| 988 |
+
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
|
| 989 |
+
@@ -966,6 +1360,36 @@
|
| 990 |
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
| 991 |
+
"dev": true
|
| 992 |
+
},
|
| 993 |
+
+ "escodegen": {
|
| 994 |
+
+ "version": "2.1.0",
|
| 995 |
+
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
|
| 996 |
+
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
|
| 997 |
+
+ "dev": true,
|
| 998 |
+
+ "requires": {
|
| 999 |
+
+ "esprima": "^4.0.1",
|
| 1000 |
+
+ "estraverse": "^5.2.0",
|
| 1001 |
+
+ "esutils": "^2.0.2",
|
| 1002 |
+
+ "source-map": "~0.6.1"
|
| 1003 |
+
+ }
|
| 1004 |
+
+ },
|
| 1005 |
+
+ "esprima": {
|
| 1006 |
+
+ "version": "4.0.1",
|
| 1007 |
+
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
| 1008 |
+
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
| 1009 |
+
+ "dev": true
|
| 1010 |
+
+ },
|
| 1011 |
+
+ "estraverse": {
|
| 1012 |
+
+ "version": "5.3.0",
|
| 1013 |
+
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 1014 |
+
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 1015 |
+
+ "dev": true
|
| 1016 |
+
+ },
|
| 1017 |
+
+ "esutils": {
|
| 1018 |
+
+ "version": "2.0.3",
|
| 1019 |
+
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 1020 |
+
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 1021 |
+
+ "dev": true
|
| 1022 |
+
+ },
|
| 1023 |
+
"fs.realpath": {
|
| 1024 |
+
"version": "1.0.0",
|
| 1025 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 1026 |
+
@@ -978,6 +1402,17 @@
|
| 1027 |
+
"integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==",
|
| 1028 |
+
"dev": true
|
| 1029 |
+
},
|
| 1030 |
+
+ "get-uri": {
|
| 1031 |
+
+ "version": "6.0.4",
|
| 1032 |
+
+ "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz",
|
| 1033 |
+
+ "integrity": "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==",
|
| 1034 |
+
+ "dev": true,
|
| 1035 |
+
+ "requires": {
|
| 1036 |
+
+ "basic-ftp": "^5.0.2",
|
| 1037 |
+
+ "data-uri-to-buffer": "^6.0.2",
|
| 1038 |
+
+ "debug": "^4.3.4"
|
| 1039 |
+
+ }
|
| 1040 |
+
+ },
|
| 1041 |
+
"glob": {
|
| 1042 |
+
"version": "7.2.3",
|
| 1043 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
| 1044 |
+
@@ -1003,12 +1438,6 @@
|
| 1045 |
+
}
|
| 1046 |
+
}
|
| 1047 |
+
},
|
| 1048 |
+
- "has-flag": {
|
| 1049 |
+
- "version": "4.0.0",
|
| 1050 |
+
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 1051 |
+
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 1052 |
+
- "dev": true
|
| 1053 |
+
- },
|
| 1054 |
+
"html-link-extractor": {
|
| 1055 |
+
"version": "1.0.5",
|
| 1056 |
+
"resolved": "https://registry.npmjs.org/html-link-extractor/-/html-link-extractor-1.0.5.tgz",
|
| 1057 |
+
@@ -1030,6 +1459,26 @@
|
| 1058 |
+
"entities": "^4.4.0"
|
| 1059 |
+
}
|
| 1060 |
+
},
|
| 1061 |
+
+ "http-proxy-agent": {
|
| 1062 |
+
+ "version": "7.0.2",
|
| 1063 |
+
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
| 1064 |
+
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
| 1065 |
+
+ "dev": true,
|
| 1066 |
+
+ "requires": {
|
| 1067 |
+
+ "agent-base": "^7.1.0",
|
| 1068 |
+
+ "debug": "^4.3.4"
|
| 1069 |
+
+ }
|
| 1070 |
+
+ },
|
| 1071 |
+
+ "https-proxy-agent": {
|
| 1072 |
+
+ "version": "7.0.6",
|
| 1073 |
+
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
|
| 1074 |
+
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
|
| 1075 |
+
+ "dev": true,
|
| 1076 |
+
+ "requires": {
|
| 1077 |
+
+ "agent-base": "^7.1.2",
|
| 1078 |
+
+ "debug": "4"
|
| 1079 |
+
+ }
|
| 1080 |
+
+ },
|
| 1081 |
+
"iconv-lite": {
|
| 1082 |
+
"version": "0.6.3",
|
| 1083 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
| 1084 |
+
@@ -1067,6 +1516,16 @@
|
| 1085 |
+
"integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==",
|
| 1086 |
+
"dev": true
|
| 1087 |
+
},
|
| 1088 |
+
+ "ip-address": {
|
| 1089 |
+
+ "version": "9.0.5",
|
| 1090 |
+
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
|
| 1091 |
+
+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
|
| 1092 |
+
+ "dev": true,
|
| 1093 |
+
+ "requires": {
|
| 1094 |
+
+ "jsbn": "1.1.0",
|
| 1095 |
+
+ "sprintf-js": "^1.1.3"
|
| 1096 |
+
+ }
|
| 1097 |
+
+ },
|
| 1098 |
+
"is-absolute-url": {
|
| 1099 |
+
"version": "4.0.1",
|
| 1100 |
+
"resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz",
|
| 1101 |
+
@@ -1082,15 +1541,6 @@
|
| 1102 |
+
"is-absolute-url": "^4.0.1"
|
| 1103 |
+
}
|
| 1104 |
+
},
|
| 1105 |
+
- "isemail": {
|
| 1106 |
+
- "version": "3.2.0",
|
| 1107 |
+
- "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz",
|
| 1108 |
+
- "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==",
|
| 1109 |
+
- "dev": true,
|
| 1110 |
+
- "requires": {
|
| 1111 |
+
- "punycode": "2.x.x"
|
| 1112 |
+
- }
|
| 1113 |
+
- },
|
| 1114 |
+
"js-yaml": {
|
| 1115 |
+
"version": "4.1.0",
|
| 1116 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
| 1117 |
+
@@ -1100,6 +1550,12 @@
|
| 1118 |
+
"argparse": "^2.0.1"
|
| 1119 |
+
}
|
| 1120 |
+
},
|
| 1121 |
+
+ "jsbn": {
|
| 1122 |
+
+ "version": "1.1.0",
|
| 1123 |
+
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
| 1124 |
+
+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
|
| 1125 |
+
+ "dev": true
|
| 1126 |
+
+ },
|
| 1127 |
+
"jsonc-parser": {
|
| 1128 |
+
"version": "3.0.0",
|
| 1129 |
+
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",
|
| 1130 |
+
@@ -1107,15 +1563,16 @@
|
| 1131 |
+
"dev": true
|
| 1132 |
+
},
|
| 1133 |
+
"link-check": {
|
| 1134 |
+
- "version": "5.2.0",
|
| 1135 |
+
- "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.2.0.tgz",
|
| 1136 |
+
- "integrity": "sha512-xRbhYLaGDw7eRDTibTAcl6fXtmUQ13vkezQiTqshHHdGueQeumgxxmQMIOmJYsh2p8BF08t8thhDQ++EAOOq3w==",
|
| 1137 |
+
+ "version": "5.4.0",
|
| 1138 |
+
+ "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.4.0.tgz",
|
| 1139 |
+
+ "integrity": "sha512-0Pf4xBVUnwJdbDgpBlhHNmWDtbVjHTpIFs+JaBuIsC9PKRxjv4KMGCO2Gc8lkVnqMf9B/yaNY+9zmMlO5MyToQ==",
|
| 1140 |
+
"dev": true,
|
| 1141 |
+
"requires": {
|
| 1142 |
+
"is-relative-url": "^4.0.0",
|
| 1143 |
+
- "isemail": "^3.2.0",
|
| 1144 |
+
"ms": "^2.1.3",
|
| 1145 |
+
- "needle": "^3.1.0"
|
| 1146 |
+
+ "needle": "^3.3.1",
|
| 1147 |
+
+ "node-email-verifier": "^2.0.0",
|
| 1148 |
+
+ "proxy-agent": "^6.4.0"
|
| 1149 |
+
}
|
| 1150 |
+
},
|
| 1151 |
+
"linkify-it": {
|
| 1152 |
+
@@ -1127,10 +1584,10 @@
|
| 1153 |
+
"uc.micro": "^1.0.1"
|
| 1154 |
+
}
|
| 1155 |
+
},
|
| 1156 |
+
- "lodash": {
|
| 1157 |
+
- "version": "4.17.21",
|
| 1158 |
+
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 1159 |
+
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
| 1160 |
+
+ "lru-cache": {
|
| 1161 |
+
+ "version": "7.18.3",
|
| 1162 |
+
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
| 1163 |
+
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
| 1164 |
+
"dev": true
|
| 1165 |
+
},
|
| 1166 |
+
"markdown-it": {
|
| 1167 |
+
@@ -1155,29 +1612,30 @@
|
| 1168 |
+
}
|
| 1169 |
+
},
|
| 1170 |
+
"markdown-link-check": {
|
| 1171 |
+
- "version": "3.10.3",
|
| 1172 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.10.3.tgz",
|
| 1173 |
+
- "integrity": "sha512-uGdJiZOy1CVWlRe7CyBSJ0Gz80Xm4vt++xjX9sNFjB7qcAxLinaMmzFQ5xOwERaXC9mK770BhnqnsyJT1gTr9w==",
|
| 1174 |
+
+ "version": "3.13.7",
|
| 1175 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.13.7.tgz",
|
| 1176 |
+
+ "integrity": "sha512-Btn3HU8s2Uyh1ZfzmyZEkp64zp2+RAjwfQt1u4swq2Xa6w37OW0T2inQZrkSNVxDSa2jSN2YYhw/JkAp5jF1PQ==",
|
| 1177 |
+
"dev": true,
|
| 1178 |
+
"requires": {
|
| 1179 |
+
- "async": "^3.2.4",
|
| 1180 |
+
- "chalk": "^4.1.2",
|
| 1181 |
+
- "commander": "^6.2.0",
|
| 1182 |
+
- "link-check": "^5.2.0",
|
| 1183 |
+
- "lodash": "^4.17.21",
|
| 1184 |
+
- "markdown-link-extractor": "^3.1.0",
|
| 1185 |
+
- "needle": "^3.1.0",
|
| 1186 |
+
- "progress": "^2.0.3"
|
| 1187 |
+
+ "async": "^3.2.6",
|
| 1188 |
+
+ "chalk": "^5.3.0",
|
| 1189 |
+
+ "commander": "^13.1.0",
|
| 1190 |
+
+ "link-check": "^5.4.0",
|
| 1191 |
+
+ "markdown-link-extractor": "^4.0.2",
|
| 1192 |
+
+ "needle": "^3.3.1",
|
| 1193 |
+
+ "progress": "^2.0.3",
|
| 1194 |
+
+ "proxy-agent": "^6.4.0",
|
| 1195 |
+
+ "xmlbuilder2": "^3.1.1"
|
| 1196 |
+
}
|
| 1197 |
+
},
|
| 1198 |
+
"markdown-link-extractor": {
|
| 1199 |
+
- "version": "3.1.0",
|
| 1200 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-3.1.0.tgz",
|
| 1201 |
+
- "integrity": "sha512-r0NEbP1dsM+IqB62Ru9TXLP/HDaTdBNIeylYXumuBi6Xv4ufjE1/g3TnslYL8VNqNcGAGbMptQFHrrdfoZ/Sug==",
|
| 1202 |
+
+ "version": "4.0.2",
|
| 1203 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-4.0.2.tgz",
|
| 1204 |
+
+ "integrity": "sha512-5cUOu4Vwx1wenJgxaudsJ8xwLUMN7747yDJX3V/L7+gi3e4MsCm7w5nbrDQQy8nEfnl4r5NV3pDXMAjhGXYXAw==",
|
| 1205 |
+
"dev": true,
|
| 1206 |
+
"requires": {
|
| 1207 |
+
"html-link-extractor": "^1.0.5",
|
| 1208 |
+
- "marked": "^4.1.0"
|
| 1209 |
+
+ "marked": "^12.0.1"
|
| 1210 |
+
}
|
| 1211 |
+
},
|
| 1212 |
+
"markdownlint": {
|
| 1213 |
+
@@ -1222,9 +1680,9 @@
|
| 1214 |
+
"dev": true
|
| 1215 |
+
},
|
| 1216 |
+
"marked": {
|
| 1217 |
+
- "version": "4.3.0",
|
| 1218 |
+
- "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz",
|
| 1219 |
+
- "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==",
|
| 1220 |
+
+ "version": "12.0.2",
|
| 1221 |
+
+ "resolved": "https://registry.npmjs.org/marked/-/marked-12.0.2.tgz",
|
| 1222 |
+
+ "integrity": "sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==",
|
| 1223 |
+
"dev": true
|
| 1224 |
+
},
|
| 1225 |
+
"mdurl": {
|
| 1226 |
+
@@ -1255,16 +1713,31 @@
|
| 1227 |
+
"dev": true
|
| 1228 |
+
},
|
| 1229 |
+
"needle": {
|
| 1230 |
+
- "version": "3.2.0",
|
| 1231 |
+
- "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz",
|
| 1232 |
+
- "integrity": "sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==",
|
| 1233 |
+
+ "version": "3.3.1",
|
| 1234 |
+
+ "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz",
|
| 1235 |
+
+ "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==",
|
| 1236 |
+
"dev": true,
|
| 1237 |
+
"requires": {
|
| 1238 |
+
- "debug": "^3.2.6",
|
| 1239 |
+
"iconv-lite": "^0.6.3",
|
| 1240 |
+
"sax": "^1.2.4"
|
| 1241 |
+
}
|
| 1242 |
+
},
|
| 1243 |
+
+ "netmask": {
|
| 1244 |
+
+ "version": "2.0.2",
|
| 1245 |
+
+ "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
|
| 1246 |
+
+ "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==",
|
| 1247 |
+
+ "dev": true
|
| 1248 |
+
+ },
|
| 1249 |
+
+ "node-email-verifier": {
|
| 1250 |
+
+ "version": "2.0.0",
|
| 1251 |
+
+ "resolved": "https://registry.npmjs.org/node-email-verifier/-/node-email-verifier-2.0.0.tgz",
|
| 1252 |
+
+ "integrity": "sha512-AHcppjOH2KT0mxakrxFMOMjV/gOVMRpYvnJUkNfgF9oJ3INdVmqcMFJ5TlM8elpTPwt6A7bSp1IMnnWcxGom/Q==",
|
| 1253 |
+
+ "dev": true,
|
| 1254 |
+
+ "requires": {
|
| 1255 |
+
+ "ms": "^2.1.3",
|
| 1256 |
+
+ "validator": "^13.11.0"
|
| 1257 |
+
+ }
|
| 1258 |
+
+ },
|
| 1259 |
+
"nth-check": {
|
| 1260 |
+
"version": "2.1.1",
|
| 1261 |
+
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
|
| 1262 |
+
@@ -1283,6 +1756,32 @@
|
| 1263 |
+
"wrappy": "1"
|
| 1264 |
+
}
|
| 1265 |
+
},
|
| 1266 |
+
+ "pac-proxy-agent": {
|
| 1267 |
+
+ "version": "7.2.0",
|
| 1268 |
+
+ "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz",
|
| 1269 |
+
+ "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
|
| 1270 |
+
+ "dev": true,
|
| 1271 |
+
+ "requires": {
|
| 1272 |
+
+ "@tootallnate/quickjs-emscripten": "^0.23.0",
|
| 1273 |
+
+ "agent-base": "^7.1.2",
|
| 1274 |
+
+ "debug": "^4.3.4",
|
| 1275 |
+
+ "get-uri": "^6.0.1",
|
| 1276 |
+
+ "http-proxy-agent": "^7.0.0",
|
| 1277 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 1278 |
+
+ "pac-resolver": "^7.0.1",
|
| 1279 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 1280 |
+
+ }
|
| 1281 |
+
+ },
|
| 1282 |
+
+ "pac-resolver": {
|
| 1283 |
+
+ "version": "7.0.1",
|
| 1284 |
+
+ "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
|
| 1285 |
+
+ "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
|
| 1286 |
+
+ "dev": true,
|
| 1287 |
+
+ "requires": {
|
| 1288 |
+
+ "degenerator": "^5.0.0",
|
| 1289 |
+
+ "netmask": "^2.0.2"
|
| 1290 |
+
+ }
|
| 1291 |
+
+ },
|
| 1292 |
+
"parse5": {
|
| 1293 |
+
"version": "7.1.2",
|
| 1294 |
+
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
|
| 1295 |
+
@@ -1314,10 +1813,26 @@
|
| 1296 |
+
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
|
| 1297 |
+
"dev": true
|
| 1298 |
+
},
|
| 1299 |
+
- "punycode": {
|
| 1300 |
+
- "version": "2.3.0",
|
| 1301 |
+
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
|
| 1302 |
+
- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
|
| 1303 |
+
+ "proxy-agent": {
|
| 1304 |
+
+ "version": "6.5.0",
|
| 1305 |
+
+ "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
|
| 1306 |
+
+ "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==",
|
| 1307 |
+
+ "dev": true,
|
| 1308 |
+
+ "requires": {
|
| 1309 |
+
+ "agent-base": "^7.1.2",
|
| 1310 |
+
+ "debug": "^4.3.4",
|
| 1311 |
+
+ "http-proxy-agent": "^7.0.1",
|
| 1312 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 1313 |
+
+ "lru-cache": "^7.14.1",
|
| 1314 |
+
+ "pac-proxy-agent": "^7.1.0",
|
| 1315 |
+
+ "proxy-from-env": "^1.1.0",
|
| 1316 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 1317 |
+
+ }
|
| 1318 |
+
+ },
|
| 1319 |
+
+ "proxy-from-env": {
|
| 1320 |
+
+ "version": "1.1.0",
|
| 1321 |
+
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 1322 |
+
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 1323 |
+
"dev": true
|
| 1324 |
+
},
|
| 1325 |
+
"run-con": {
|
| 1326 |
+
@@ -1339,9 +1854,49 @@
|
| 1327 |
+
"dev": true
|
| 1328 |
+
},
|
| 1329 |
+
"sax": {
|
| 1330 |
+
- "version": "1.2.4",
|
| 1331 |
+
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
| 1332 |
+
- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
|
| 1333 |
+
+ "version": "1.4.1",
|
| 1334 |
+
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
|
| 1335 |
+
+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
|
| 1336 |
+
+ "dev": true
|
| 1337 |
+
+ },
|
| 1338 |
+
+ "smart-buffer": {
|
| 1339 |
+
+ "version": "4.2.0",
|
| 1340 |
+
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
| 1341 |
+
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
|
| 1342 |
+
+ "dev": true
|
| 1343 |
+
+ },
|
| 1344 |
+
+ "socks": {
|
| 1345 |
+
+ "version": "2.8.4",
|
| 1346 |
+
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz",
|
| 1347 |
+
+ "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==",
|
| 1348 |
+
+ "dev": true,
|
| 1349 |
+
+ "requires": {
|
| 1350 |
+
+ "ip-address": "^9.0.5",
|
| 1351 |
+
+ "smart-buffer": "^4.2.0"
|
| 1352 |
+
+ }
|
| 1353 |
+
+ },
|
| 1354 |
+
+ "socks-proxy-agent": {
|
| 1355 |
+
+ "version": "8.0.5",
|
| 1356 |
+
+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz",
|
| 1357 |
+
+ "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==",
|
| 1358 |
+
+ "dev": true,
|
| 1359 |
+
+ "requires": {
|
| 1360 |
+
+ "agent-base": "^7.1.2",
|
| 1361 |
+
+ "debug": "^4.3.4",
|
| 1362 |
+
+ "socks": "^2.8.3"
|
| 1363 |
+
+ }
|
| 1364 |
+
+ },
|
| 1365 |
+
+ "source-map": {
|
| 1366 |
+
+ "version": "0.6.1",
|
| 1367 |
+
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
| 1368 |
+
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
| 1369 |
+
+ "dev": true,
|
| 1370 |
+
+ "optional": true
|
| 1371 |
+
+ },
|
| 1372 |
+
+ "sprintf-js": {
|
| 1373 |
+
+ "version": "1.1.3",
|
| 1374 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
|
| 1375 |
+
+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
|
| 1376 |
+
"dev": true
|
| 1377 |
+
},
|
| 1378 |
+
"strip-json-comments": {
|
| 1379 |
+
@@ -1350,14 +1905,11 @@
|
| 1380 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 1381 |
+
"dev": true
|
| 1382 |
+
},
|
| 1383 |
+
- "supports-color": {
|
| 1384 |
+
- "version": "7.2.0",
|
| 1385 |
+
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 1386 |
+
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 1387 |
+
- "dev": true,
|
| 1388 |
+
- "requires": {
|
| 1389 |
+
- "has-flag": "^4.0.0"
|
| 1390 |
+
- }
|
| 1391 |
+
+ "tslib": {
|
| 1392 |
+
+ "version": "2.8.1",
|
| 1393 |
+
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 1394 |
+
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 1395 |
+
+ "dev": true
|
| 1396 |
+
},
|
| 1397 |
+
"uc.micro": {
|
| 1398 |
+
"version": "1.0.6",
|
| 1399 |
+
@@ -1365,11 +1917,56 @@
|
| 1400 |
+
"integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==",
|
| 1401 |
+
"dev": true
|
| 1402 |
+
},
|
| 1403 |
+
+ "validator": {
|
| 1404 |
+
+ "version": "13.15.0",
|
| 1405 |
+
+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz",
|
| 1406 |
+
+ "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==",
|
| 1407 |
+
+ "dev": true
|
| 1408 |
+
+ },
|
| 1409 |
+
"wrappy": {
|
| 1410 |
+
"version": "1.0.2",
|
| 1411 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 1412 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 1413 |
+
"dev": true
|
| 1414 |
+
+ },
|
| 1415 |
+
+ "xmlbuilder2": {
|
| 1416 |
+
+ "version": "3.1.1",
|
| 1417 |
+
+ "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-3.1.1.tgz",
|
| 1418 |
+
+ "integrity": "sha512-WCSfbfZnQDdLQLiMdGUQpMxxckeQ4oZNMNhLVkcekTu7xhD4tuUDyAPoY8CwXvBYE6LwBHd6QW2WZXlOWr1vCw==",
|
| 1419 |
+
+ "dev": true,
|
| 1420 |
+
+ "requires": {
|
| 1421 |
+
+ "@oozcitak/dom": "1.15.10",
|
| 1422 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 1423 |
+
+ "@oozcitak/util": "8.3.8",
|
| 1424 |
+
+ "js-yaml": "3.14.1"
|
| 1425 |
+
+ },
|
| 1426 |
+
+ "dependencies": {
|
| 1427 |
+
+ "argparse": {
|
| 1428 |
+
+ "version": "1.0.10",
|
| 1429 |
+
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
| 1430 |
+
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
| 1431 |
+
+ "dev": true,
|
| 1432 |
+
+ "requires": {
|
| 1433 |
+
+ "sprintf-js": "~1.0.2"
|
| 1434 |
+
+ }
|
| 1435 |
+
+ },
|
| 1436 |
+
+ "js-yaml": {
|
| 1437 |
+
+ "version": "3.14.1",
|
| 1438 |
+
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
| 1439 |
+
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
| 1440 |
+
+ "dev": true,
|
| 1441 |
+
+ "requires": {
|
| 1442 |
+
+ "argparse": "^1.0.7",
|
| 1443 |
+
+ "esprima": "^4.0.0"
|
| 1444 |
+
+ }
|
| 1445 |
+
+ },
|
| 1446 |
+
+ "sprintf-js": {
|
| 1447 |
+
+ "version": "1.0.3",
|
| 1448 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
| 1449 |
+
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
|
| 1450 |
+
+ "dev": true
|
| 1451 |
+
+ }
|
| 1452 |
+
+ }
|
| 1453 |
+
}
|
| 1454 |
+
}
|
| 1455 |
+
}
|
| 1456 |
+
diff --git a/package.json b/package.json
|
| 1457 |
+
index a590a3f..cc75953 100644
|
| 1458 |
+
--- a/package.json
|
| 1459 |
+
+++ b/package.json
|
| 1460 |
+
@@ -1,6 +1,6 @@
|
| 1461 |
+
{
|
| 1462 |
+
"devDependencies": {
|
| 1463 |
+
- "markdown-link-check": "3.10.3",
|
| 1464 |
+
+ "markdown-link-check": "3.13.7",
|
| 1465 |
+
"markdownlint-cli": "0.31.0"
|
| 1466 |
+
}
|
| 1467 |
+
}
|
tasks/open-telemetry__opentelemetry-proto-658/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
tasks/open-telemetry__opentelemetry-proto-658/task.toml
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "trending/open-telemetry__opentelemetry-proto-658"
|
| 5 |
+
description = "chore(deps): update dependency markdown-link-check to v3.13.7"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "large"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"opentelemetry-proto",
|
| 12 |
+
"pr_diff",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "pr_diff"
|
| 17 |
+
pipeline_version = "0.3.0"
|
| 18 |
+
repo = "open-telemetry/opentelemetry-proto"
|
| 19 |
+
ref = "8654ab7a5a43ca25fe8046e59dcd6935c3f76de0"
|
| 20 |
+
reference = "https://github.com/open-telemetry/opentelemetry-proto/pull/658"
|
| 21 |
+
source_access = "auto"
|
| 22 |
+
built_at = "2026-11-16T16:09:42.232863+00:00"
|
| 23 |
+
reward_kinds = [
|
| 24 |
+
"diff_similarity",
|
| 25 |
+
]
|
| 26 |
+
spec_version = "0.2.0"
|
| 27 |
+
content_hash = "sha256:a2cd9097f8b33e5f4ad67b9498f0838e2974c28bb7b305c7b03662356c82250d"
|
| 28 |
+
|
| 29 |
+
[metadata.repo2env.pr_diff]
|
| 30 |
+
pr_merged_at = "2025-05-21T16:05:04Z"
|
| 31 |
+
diff_format = "unified"
|
| 32 |
+
context_files = [
|
| 33 |
+
"package-lock.json",
|
| 34 |
+
"package.json",
|
| 35 |
+
]
|
| 36 |
+
bootstrap_image = "python:3.12-slim"
|
| 37 |
+
|
| 38 |
+
[metadata.repo2env.reward_calibration]
|
| 39 |
+
baseline_reward = 0.0
|
| 40 |
+
loc_changed = 1035
|
| 41 |
+
difficulty = "large"
|
| 42 |
+
|
| 43 |
+
[metadata.repo2env.evaluation]
|
| 44 |
+
schema_version = "1"
|
| 45 |
+
status = "unverified"
|
| 46 |
+
stage = "generation"
|
| 47 |
+
reason_codes = [
|
| 48 |
+
"validation_not_run",
|
| 49 |
+
]
|
| 50 |
+
detail = "Generated task; validation has not been established."
|
| 51 |
+
provenance = "unknown"
|
| 52 |
+
evidence = []
|
| 53 |
+
|
| 54 |
+
[metadata.repo2env.reproducibility]
|
| 55 |
+
mode = "inline_dockerfile"
|
| 56 |
+
image_ref = "python:3.12-slim"
|
| 57 |
+
image_tag = "python:3.12-slim"
|
| 58 |
+
image_visibility = "public"
|
| 59 |
+
pushed_at = "2026-11-16T16:20:02.020555+00:00"
|
| 60 |
+
pushed_by = "scalingX"
|
| 61 |
+
inline_recipe_sha256 = "sha256:752b9ecfd7ce2b9ec655ea0f738ac04dc8107aef761f78d7985811f99a333df1"
|
| 62 |
+
inline_recipe_lines = 37
|
| 63 |
+
inline_recipe_source = "user_dockerfile"
|
| 64 |
+
|
| 65 |
+
[agent]
|
| 66 |
+
timeout_sec = 1800.0
|
| 67 |
+
|
| 68 |
+
[verifier]
|
| 69 |
+
timeout_sec = 300.0
|
tasks/open-telemetry__opentelemetry-proto-658/tests/capture.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Standalone PR-diff capture without executing workspace Git configuration.
|
| 2 |
+
|
| 3 |
+
The emitted task uses a regular clone with a pinned base commit. Only its
|
| 4 |
+
object store is read: refs, index, config, hooks and replacement refs are not
|
| 5 |
+
used. This is a configuration boundary, not a sandbox for a malicious process
|
| 6 |
+
that can modify the verifier, binaries or object store while capture runs.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import argparse
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
+
import re
|
| 15 |
+
import shutil
|
| 16 |
+
import subprocess
|
| 17 |
+
import sys
|
| 18 |
+
import tempfile
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def capture(workspace: Path, base_commit: str) -> bytes:
|
| 23 |
+
"""Capture tracked and new files through a fresh private Git index."""
|
| 24 |
+
if not re.fullmatch(r"[a-fA-F0-9]{40}", base_commit):
|
| 25 |
+
raise ValueError("Expected the task's pinned SHA-1 base commit")
|
| 26 |
+
objects = workspace.resolve() / ".git" / "objects"
|
| 27 |
+
if not objects.is_dir():
|
| 28 |
+
raise ValueError("The task's cloned Git object store is missing")
|
| 29 |
+
git = shutil.which("git", path=os.defpath)
|
| 30 |
+
if git is None:
|
| 31 |
+
raise FileNotFoundError("System git is unavailable")
|
| 32 |
+
with tempfile.TemporaryDirectory(prefix="r2e-diff-") as temporary:
|
| 33 |
+
private = Path(temporary)
|
| 34 |
+
# Do not forward GIT_CONFIG_PARAMETERS/COUNT, external diff programs,
|
| 35 |
+
# system/global includes, user attributes, templates or credential env.
|
| 36 |
+
env = {
|
| 37 |
+
"PATH": os.defpath,
|
| 38 |
+
"HOME": temporary,
|
| 39 |
+
"XDG_CONFIG_HOME": temporary,
|
| 40 |
+
"GIT_CONFIG_NOSYSTEM": "1",
|
| 41 |
+
"GIT_CONFIG_GLOBAL": os.devnull,
|
| 42 |
+
"GIT_ATTR_NOSYSTEM": "1",
|
| 43 |
+
"GIT_NO_REPLACE_OBJECTS": "1",
|
| 44 |
+
"GIT_NO_LAZY_FETCH": "1",
|
| 45 |
+
"GIT_TERMINAL_PROMPT": "0",
|
| 46 |
+
"LC_ALL": "C",
|
| 47 |
+
}
|
| 48 |
+
subprocess.run(
|
| 49 |
+
[git, "init", "--quiet", "--template=", str(private / "repository")],
|
| 50 |
+
env=env,
|
| 51 |
+
cwd=private,
|
| 52 |
+
check=True,
|
| 53 |
+
capture_output=True,
|
| 54 |
+
timeout=60,
|
| 55 |
+
)
|
| 56 |
+
env["GIT_ALTERNATE_OBJECT_DIRECTORIES"] = json.dumps(str(objects), ensure_ascii=False)
|
| 57 |
+
command = [
|
| 58 |
+
git,
|
| 59 |
+
f"--git-dir={private / 'repository/.git'}",
|
| 60 |
+
f"--work-tree={workspace.resolve()}",
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
def run(*args: str) -> bytes:
|
| 64 |
+
return subprocess.run(
|
| 65 |
+
[*command, *args],
|
| 66 |
+
env=env,
|
| 67 |
+
cwd=workspace,
|
| 68 |
+
check=True,
|
| 69 |
+
capture_output=True,
|
| 70 |
+
timeout=60,
|
| 71 |
+
).stdout
|
| 72 |
+
|
| 73 |
+
run("read-tree", f"{base_commit}^{{tree}}")
|
| 74 |
+
# All filter drivers are undefined in the private configuration. The
|
| 75 |
+
# workspace's clean filters, fsmonitor and hooks cannot be invoked.
|
| 76 |
+
run("add", "--all", "--", ".")
|
| 77 |
+
return run("diff", "--cached", "--no-ext-diff", "--no-textconv", base_commit, "--")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def main(argv: list[str] | None = None) -> int:
|
| 81 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 82 |
+
parser.add_argument("workspace", type=Path)
|
| 83 |
+
parser.add_argument("base_commit")
|
| 84 |
+
args = parser.parse_args(argv)
|
| 85 |
+
try:
|
| 86 |
+
patch = capture(args.workspace, args.base_commit)
|
| 87 |
+
except (OSError, ValueError, subprocess.SubprocessError) as exc:
|
| 88 |
+
# Do not echo child stderr: it may contain workspace-controlled data.
|
| 89 |
+
sys.stderr.write(f"PR-diff capture failed ({type(exc).__name__})\n")
|
| 90 |
+
return 1
|
| 91 |
+
sys.stdout.buffer.write(patch)
|
| 92 |
+
return 0
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
if __name__ == "__main__":
|
| 96 |
+
sys.exit(main())
|
tasks/open-telemetry__opentelemetry-proto-658/tests/instruction.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** chore(deps): update dependency markdown-link-check to v3.13.7
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
This PR contains the following updates:
|
| 8 |
+
|
| 9 |
+
| Package | Change | Age | Adoption | Passing | Confidence |
|
| 10 |
+
|---|---|---|---|---|---|
|
| 11 |
+
| [markdown-link-check](https://redirect.github.com/tcort/markdown-link-check) | [`3.10.3` -> `3.13.7`](https://renovatebot.com/diffs/npm/markdown-link-check/3.10.3/3.13.7) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
### Release Notes
|
| 16 |
+
|
| 17 |
+
<details>
|
| 18 |
+
<summary>tcort/markdown-link-check (markdown-link-check)</summary>
|
| 19 |
+
|
| 20 |
+
### [`v3.13.7`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3137)
|
| 21 |
+
|
| 22 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.6...v3.13.7)
|
| 23 |
+
|
| 24 |
+
- Do not override reporter option if not defined in config file (issue ) by [@​smainil](https://redirect.github.com/smainil) in
|
| 25 |
+
- chore(deps-dev): bump eslint from 9.14.0 to 9.20.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 26 |
+
- chore(deps-dev): bump [@​eslint/js](https://redirect.github.com/eslint/js) from 9.14.0 to 9.20.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 27 |
+
- chore(deps-dev): bump express from 4.21.1 to 4.21.2 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 28 |
+
- chore(deps): bump proxy-agent from 6.4.0 to 6.5.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 29 |
+
- chore(deps): bump chalk from 5.3.0 to 5.4.1 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 30 |
+
- chore(deps-dev): bump globals from 15.12.0 to 15.14.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 31 |
+
- chore(deps-dev): bump [@​eslint/js](https://redirect.github.com/eslint/js) from 9.20.0 to 9.21.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 32 |
+
- chore(deps-dev): bump mocha from 10.8.2 to 11.1.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 33 |
+
- chore(deps): bump commander from 12.1.0 to 13.1.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 34 |
+
- chore(deps-dev): bump eslint from 9.20.0 to 9.21.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 35 |
+
- chore(deps-dev): bump globals from 15.14.0 to 16.0.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 36 |
+
- chore(deps-dev): bump [@​eslint/js](https://redirect.github.com/eslint/js) from 9.21.0 to 9.22.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 37 |
+
- chore(deps-dev): bump eslint from 9.21.0 to 9.22.0 by [@​dependabot](https://redirect.github.com/dependabot) in
|
| 38 |
+
|
| 39 |
+
### [`v3.13.6`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3136)
|
| 40 |
+
|
| 41 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.5...v3.13.6)
|
| 42 |
+
|
| 43 |
+
- fix: move script back to its original location
|
| 44 |
+
|
| 45 |
+
### [`v3.13.5`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3135)
|
| 46 |
+
|
| 47 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.4...v3.13.5)
|
| 48 |
+
|
| 49 |
+
- fix: MODULE_NOT_FOUND error
|
| 50 |
+
|
| 51 |
+
### [`v3.13.4`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3134)
|
| 52 |
+
|
| 53 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.3...v3.13.4)
|
| 54 |
+
|
| 55 |
+
- fix: MODULE_NOT_FOUND error
|
| 56 |
+
|
| 57 |
+
### [`v3.13.3`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3133)
|
| 58 |
+
|
| 59 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.2...v3.13.3)
|
| 60 |
+
|
| 61 |
+
- fix: MODULE_NOT_FOUND error
|
| 62 |
+
|
| 63 |
+
### [`v3.13.2`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3132)
|
| 64 |
+
|
| 65 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.1...v3.13.2)
|
| 66 |
+
|
| 67 |
+
- fix: MODULE_NOT_FOUND error
|
| 68 |
+
|
| 69 |
+
### [`v3.13.1`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3131)
|
| 70 |
+
|
| 71 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.13.0...v3.13.1)
|
| 72 |
+
|
| 73 |
+
- fix: MODULE_NOT_FOUND error
|
| 74 |
+
|
| 75 |
+
### [`v3.13.0`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3130)
|
| 76 |
+
|
| 77 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.12.2...v3.13.0)
|
| 78 |
+
|
| 79 |
+
- feat: anchor link checks support HTML tags like `<a name="foo"></a>` [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 80 |
+
- �� add support for additional test reporters [@​dudeofawesome](https://redirect.github.com/dudeofawesome)
|
| 81 |
+
- feat: support iterate link check over directories in CLI [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 82 |
+
- Update hook names [@​henrygerardmoore](https://redirect.github.com/henrygerardmoore)
|
| 83 |
+
- chore(deps): remove lodash [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 84 |
+
- fix: add used `@eslint/js` to dev dependencies in package.json [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 85 |
+
- fix: remove not used const url [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 86 |
+
- feat: add support for unicode characters in anchor links [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 87 |
+
- docs(readme): explain named regex groups in replacementPatterns [@​AndreyNautilus](https://redirect.github.com/AndreyNautilus)
|
| 88 |
+
- ci: bump nodejs [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 89 |
+
- update dependencies
|
| 90 |
+
|
| 91 |
+
### [`v3.12.2`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3122)
|
| 92 |
+
|
| 93 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.12.1...v3.12.2)
|
| 94 |
+
|
| 95 |
+
- fix status badge in README by [@​dklimpel](https://redirect.github.com/dklimpel) in
|
| 96 |
+
- enable skipped tests for hash links by [@​dklimpel](https://redirect.github.com/dklimpel) in
|
| 97 |
+
- chore: Upgrade to ESLint 9 by [@​nschonni](https://redirect.github.com/nschonni) in
|
| 98 |
+
- Check GitHub markdown section links by [@​rkitover](https://redirect.github.com/rkitover) in
|
| 99 |
+
- docs: add example for GitLab pipeline by [@​dklimpel](https://redirect.github.com/dklimpel) in
|
| 100 |
+
- ci: Use matrix for cross-OS testing by [@​nschonni](https://redirect.github.com/nschonni) in
|
| 101 |
+
|
| 102 |
+
### [`v3.12.1`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3121)
|
| 103 |
+
|
| 104 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.12.0...v3.12.1)
|
| 105 |
+
|
| 106 |
+
- fix: fix crash [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 107 |
+
- Set `ipv4first` for tests in CI [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 108 |
+
- Bump node for release [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 109 |
+
|
| 110 |
+
### [`v3.12.0`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3120)
|
| 111 |
+
|
| 112 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.11.2...v3.12.0)
|
| 113 |
+
|
| 114 |
+
- feat: add basic ignore subpaths argument [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 115 |
+
- feat: add global option to replacementPatterns [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 116 |
+
- refactor: replace url.parse with new URL [@​CanadaHonk](https://redirect.github.com/CanadaHonk)
|
| 117 |
+
- docs: update readme to be clearer for projectBaseUrl opt [@​nwcm](https://redirect.github.com/nwcm)
|
| 118 |
+
- feat: Add support to load md files via proxy [@​dklimpel](https://redirect.github.com/dklimpel)
|
| 119 |
+
- chore: upgrade dependencies
|
| 120 |
+
|
| 121 |
+
### [`v3.11.2`](https://redirect.github.com/tcort/markdown-link-check/blob/HEAD/CHANGELOG.md#Version-3112)
|
| 122 |
+
|
| 123 |
+
[Compare Source](https://redirect.github.com/tcort/markdown-link-check/compare/v3.11.1...v3.11.2)
|
| 124 |
+
|
| 125 |
+
- chore(deps-dev): bump eslint from 8.38.0 to 8.39.0 ([@​dependabot
|
| 126 |
+
|
| 127 |
+
## Task
|
| 128 |
+
|
| 129 |
+
Modify the repository so that the issue described above is resolved. The repository is checked out at base commit `8654ab7a5a43`. Edit files in place; the verifier captures your changes via `git diff` and scores them against an oracle patch using SWE-RL-style diff-similarity reward.
|
tasks/open-telemetry__opentelemetry-proto-658/tests/oracle.patch
ADDED
|
@@ -0,0 +1,1467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/package-lock.json b/package-lock.json
|
| 2 |
+
index 331c5bc..268ba0e 100644
|
| 3 |
+
--- a/package-lock.json
|
| 4 |
+
+++ b/package-lock.json
|
| 5 |
+
@@ -5,23 +5,71 @@
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"devDependencies": {
|
| 9 |
+
- "markdown-link-check": "3.10.3",
|
| 10 |
+
+ "markdown-link-check": "3.13.7",
|
| 11 |
+
"markdownlint-cli": "0.31.0"
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
- "node_modules/ansi-styles": {
|
| 15 |
+
- "version": "4.3.0",
|
| 16 |
+
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 17 |
+
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 18 |
+
+ "node_modules/@oozcitak/dom": {
|
| 19 |
+
+ "version": "1.15.10",
|
| 20 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.10.tgz",
|
| 21 |
+
+ "integrity": "sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==",
|
| 22 |
+
"dev": true,
|
| 23 |
+
"dependencies": {
|
| 24 |
+
- "color-convert": "^2.0.1"
|
| 25 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 26 |
+
+ "@oozcitak/url": "1.0.4",
|
| 27 |
+
+ "@oozcitak/util": "8.3.8"
|
| 28 |
+
},
|
| 29 |
+
"engines": {
|
| 30 |
+
- "node": ">=8"
|
| 31 |
+
+ "node": ">=8.0"
|
| 32 |
+
+ }
|
| 33 |
+
+ },
|
| 34 |
+
+ "node_modules/@oozcitak/infra": {
|
| 35 |
+
+ "version": "1.0.8",
|
| 36 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
|
| 37 |
+
+ "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
|
| 38 |
+
+ "dev": true,
|
| 39 |
+
+ "dependencies": {
|
| 40 |
+
+ "@oozcitak/util": "8.3.8"
|
| 41 |
+
},
|
| 42 |
+
- "funding": {
|
| 43 |
+
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 44 |
+
+ "engines": {
|
| 45 |
+
+ "node": ">=6.0"
|
| 46 |
+
+ }
|
| 47 |
+
+ },
|
| 48 |
+
+ "node_modules/@oozcitak/url": {
|
| 49 |
+
+ "version": "1.0.4",
|
| 50 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
|
| 51 |
+
+ "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
|
| 52 |
+
+ "dev": true,
|
| 53 |
+
+ "dependencies": {
|
| 54 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 55 |
+
+ "@oozcitak/util": "8.3.8"
|
| 56 |
+
+ },
|
| 57 |
+
+ "engines": {
|
| 58 |
+
+ "node": ">=8.0"
|
| 59 |
+
+ }
|
| 60 |
+
+ },
|
| 61 |
+
+ "node_modules/@oozcitak/util": {
|
| 62 |
+
+ "version": "8.3.8",
|
| 63 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
|
| 64 |
+
+ "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==",
|
| 65 |
+
+ "dev": true,
|
| 66 |
+
+ "engines": {
|
| 67 |
+
+ "node": ">=8.0"
|
| 68 |
+
+ }
|
| 69 |
+
+ },
|
| 70 |
+
+ "node_modules/@tootallnate/quickjs-emscripten": {
|
| 71 |
+
+ "version": "0.23.0",
|
| 72 |
+
+ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
|
| 73 |
+
+ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
|
| 74 |
+
+ "dev": true
|
| 75 |
+
+ },
|
| 76 |
+
+ "node_modules/agent-base": {
|
| 77 |
+
+ "version": "7.1.3",
|
| 78 |
+
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
|
| 79 |
+
+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
|
| 80 |
+
+ "dev": true,
|
| 81 |
+
+ "engines": {
|
| 82 |
+
+ "node": ">= 14"
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
"node_modules/argparse": {
|
| 86 |
+
@@ -30,10 +78,22 @@
|
| 87 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 88 |
+
"dev": true
|
| 89 |
+
},
|
| 90 |
+
+ "node_modules/ast-types": {
|
| 91 |
+
+ "version": "0.13.4",
|
| 92 |
+
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
|
| 93 |
+
+ "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
|
| 94 |
+
+ "dev": true,
|
| 95 |
+
+ "dependencies": {
|
| 96 |
+
+ "tslib": "^2.0.1"
|
| 97 |
+
+ },
|
| 98 |
+
+ "engines": {
|
| 99 |
+
+ "node": ">=4"
|
| 100 |
+
+ }
|
| 101 |
+
+ },
|
| 102 |
+
"node_modules/async": {
|
| 103 |
+
- "version": "3.2.4",
|
| 104 |
+
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz",
|
| 105 |
+
- "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==",
|
| 106 |
+
+ "version": "3.2.6",
|
| 107 |
+
+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
|
| 108 |
+
+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
|
| 109 |
+
"dev": true
|
| 110 |
+
},
|
| 111 |
+
"node_modules/balanced-match": {
|
| 112 |
+
@@ -42,6 +102,15 @@
|
| 113 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 114 |
+
"dev": true
|
| 115 |
+
},
|
| 116 |
+
+ "node_modules/basic-ftp": {
|
| 117 |
+
+ "version": "5.0.5",
|
| 118 |
+
+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
|
| 119 |
+
+ "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
|
| 120 |
+
+ "dev": true,
|
| 121 |
+
+ "engines": {
|
| 122 |
+
+ "node": ">=10.0.0"
|
| 123 |
+
+ }
|
| 124 |
+
+ },
|
| 125 |
+
"node_modules/boolbase": {
|
| 126 |
+
"version": "1.0.0",
|
| 127 |
+
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
| 128 |
+
@@ -59,16 +128,12 @@
|
| 129 |
+
}
|
| 130 |
+
},
|
| 131 |
+
"node_modules/chalk": {
|
| 132 |
+
- "version": "4.1.2",
|
| 133 |
+
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 134 |
+
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 135 |
+
+ "version": "5.4.1",
|
| 136 |
+
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
|
| 137 |
+
+ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
|
| 138 |
+
"dev": true,
|
| 139 |
+
- "dependencies": {
|
| 140 |
+
- "ansi-styles": "^4.1.0",
|
| 141 |
+
- "supports-color": "^7.1.0"
|
| 142 |
+
- },
|
| 143 |
+
"engines": {
|
| 144 |
+
- "node": ">=10"
|
| 145 |
+
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
|
| 146 |
+
},
|
| 147 |
+
"funding": {
|
| 148 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 149 |
+
@@ -112,31 +177,13 @@
|
| 150 |
+
"url": "https://github.com/sponsors/fb55"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
- "node_modules/color-convert": {
|
| 154 |
+
- "version": "2.0.1",
|
| 155 |
+
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 156 |
+
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 157 |
+
- "dev": true,
|
| 158 |
+
- "dependencies": {
|
| 159 |
+
- "color-name": "~1.1.4"
|
| 160 |
+
- },
|
| 161 |
+
- "engines": {
|
| 162 |
+
- "node": ">=7.0.0"
|
| 163 |
+
- }
|
| 164 |
+
- },
|
| 165 |
+
- "node_modules/color-name": {
|
| 166 |
+
- "version": "1.1.4",
|
| 167 |
+
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 168 |
+
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 169 |
+
- "dev": true
|
| 170 |
+
- },
|
| 171 |
+
"node_modules/commander": {
|
| 172 |
+
- "version": "6.2.1",
|
| 173 |
+
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
|
| 174 |
+
- "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
|
| 175 |
+
+ "version": "13.1.0",
|
| 176 |
+
+ "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
| 177 |
+
+ "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
|
| 178 |
+
"dev": true,
|
| 179 |
+
"engines": {
|
| 180 |
+
- "node": ">= 6"
|
| 181 |
+
+ "node": ">=18"
|
| 182 |
+
}
|
| 183 |
+
},
|
| 184 |
+
"node_modules/concat-map": {
|
| 185 |
+
@@ -173,13 +220,30 @@
|
| 186 |
+
"url": "https://github.com/sponsors/fb55"
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
+ "node_modules/data-uri-to-buffer": {
|
| 190 |
+
+ "version": "6.0.2",
|
| 191 |
+
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
|
| 192 |
+
+ "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
|
| 193 |
+
+ "dev": true,
|
| 194 |
+
+ "engines": {
|
| 195 |
+
+ "node": ">= 14"
|
| 196 |
+
+ }
|
| 197 |
+
+ },
|
| 198 |
+
"node_modules/debug": {
|
| 199 |
+
- "version": "3.2.7",
|
| 200 |
+
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
| 201 |
+
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
|
| 202 |
+
+ "version": "4.4.1",
|
| 203 |
+
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
|
| 204 |
+
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
|
| 205 |
+
"dev": true,
|
| 206 |
+
"dependencies": {
|
| 207 |
+
- "ms": "^2.1.1"
|
| 208 |
+
+ "ms": "^2.1.3"
|
| 209 |
+
+ },
|
| 210 |
+
+ "engines": {
|
| 211 |
+
+ "node": ">=6.0"
|
| 212 |
+
+ },
|
| 213 |
+
+ "peerDependenciesMeta": {
|
| 214 |
+
+ "supports-color": {
|
| 215 |
+
+ "optional": true
|
| 216 |
+
+ }
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
"node_modules/deep-extend": {
|
| 220 |
+
@@ -191,6 +255,20 @@
|
| 221 |
+
"node": ">=4.0.0"
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
+ "node_modules/degenerator": {
|
| 225 |
+
+ "version": "5.0.1",
|
| 226 |
+
+ "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
|
| 227 |
+
+ "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
|
| 228 |
+
+ "dev": true,
|
| 229 |
+
+ "dependencies": {
|
| 230 |
+
+ "ast-types": "^0.13.4",
|
| 231 |
+
+ "escodegen": "^2.1.0",
|
| 232 |
+
+ "esprima": "^4.0.1"
|
| 233 |
+
+ },
|
| 234 |
+
+ "engines": {
|
| 235 |
+
+ "node": ">= 14"
|
| 236 |
+
+ }
|
| 237 |
+
+ },
|
| 238 |
+
"node_modules/dom-serializer": {
|
| 239 |
+
"version": "2.0.0",
|
| 240 |
+
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
|
| 241 |
+
@@ -258,6 +336,58 @@
|
| 242 |
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
| 243 |
+
}
|
| 244 |
+
},
|
| 245 |
+
+ "node_modules/escodegen": {
|
| 246 |
+
+ "version": "2.1.0",
|
| 247 |
+
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
|
| 248 |
+
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
|
| 249 |
+
+ "dev": true,
|
| 250 |
+
+ "dependencies": {
|
| 251 |
+
+ "esprima": "^4.0.1",
|
| 252 |
+
+ "estraverse": "^5.2.0",
|
| 253 |
+
+ "esutils": "^2.0.2"
|
| 254 |
+
+ },
|
| 255 |
+
+ "bin": {
|
| 256 |
+
+ "escodegen": "bin/escodegen.js",
|
| 257 |
+
+ "esgenerate": "bin/esgenerate.js"
|
| 258 |
+
+ },
|
| 259 |
+
+ "engines": {
|
| 260 |
+
+ "node": ">=6.0"
|
| 261 |
+
+ },
|
| 262 |
+
+ "optionalDependencies": {
|
| 263 |
+
+ "source-map": "~0.6.1"
|
| 264 |
+
+ }
|
| 265 |
+
+ },
|
| 266 |
+
+ "node_modules/esprima": {
|
| 267 |
+
+ "version": "4.0.1",
|
| 268 |
+
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
| 269 |
+
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
| 270 |
+
+ "dev": true,
|
| 271 |
+
+ "bin": {
|
| 272 |
+
+ "esparse": "bin/esparse.js",
|
| 273 |
+
+ "esvalidate": "bin/esvalidate.js"
|
| 274 |
+
+ },
|
| 275 |
+
+ "engines": {
|
| 276 |
+
+ "node": ">=4"
|
| 277 |
+
+ }
|
| 278 |
+
+ },
|
| 279 |
+
+ "node_modules/estraverse": {
|
| 280 |
+
+ "version": "5.3.0",
|
| 281 |
+
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 282 |
+
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 283 |
+
+ "dev": true,
|
| 284 |
+
+ "engines": {
|
| 285 |
+
+ "node": ">=4.0"
|
| 286 |
+
+ }
|
| 287 |
+
+ },
|
| 288 |
+
+ "node_modules/esutils": {
|
| 289 |
+
+ "version": "2.0.3",
|
| 290 |
+
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 291 |
+
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 292 |
+
+ "dev": true,
|
| 293 |
+
+ "engines": {
|
| 294 |
+
+ "node": ">=0.10.0"
|
| 295 |
+
+ }
|
| 296 |
+
+ },
|
| 297 |
+
"node_modules/fs.realpath": {
|
| 298 |
+
"version": "1.0.0",
|
| 299 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 300 |
+
@@ -276,6 +406,20 @@
|
| 301 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 302 |
+
}
|
| 303 |
+
},
|
| 304 |
+
+ "node_modules/get-uri": {
|
| 305 |
+
+ "version": "6.0.4",
|
| 306 |
+
+ "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz",
|
| 307 |
+
+ "integrity": "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==",
|
| 308 |
+
+ "dev": true,
|
| 309 |
+
+ "dependencies": {
|
| 310 |
+
+ "basic-ftp": "^5.0.2",
|
| 311 |
+
+ "data-uri-to-buffer": "^6.0.2",
|
| 312 |
+
+ "debug": "^4.3.4"
|
| 313 |
+
+ },
|
| 314 |
+
+ "engines": {
|
| 315 |
+
+ "node": ">= 14"
|
| 316 |
+
+ }
|
| 317 |
+
+ },
|
| 318 |
+
"node_modules/glob": {
|
| 319 |
+
"version": "7.2.3",
|
| 320 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
| 321 |
+
@@ -308,15 +452,6 @@
|
| 322 |
+
"node": "*"
|
| 323 |
+
}
|
| 324 |
+
},
|
| 325 |
+
- "node_modules/has-flag": {
|
| 326 |
+
- "version": "4.0.0",
|
| 327 |
+
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 328 |
+
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 329 |
+
- "dev": true,
|
| 330 |
+
- "engines": {
|
| 331 |
+
- "node": ">=8"
|
| 332 |
+
- }
|
| 333 |
+
- },
|
| 334 |
+
"node_modules/html-link-extractor": {
|
| 335 |
+
"version": "1.0.5",
|
| 336 |
+
"resolved": "https://registry.npmjs.org/html-link-extractor/-/html-link-extractor-1.0.5.tgz",
|
| 337 |
+
@@ -345,6 +480,32 @@
|
| 338 |
+
"entities": "^4.4.0"
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
+ "node_modules/http-proxy-agent": {
|
| 342 |
+
+ "version": "7.0.2",
|
| 343 |
+
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
| 344 |
+
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
| 345 |
+
+ "dev": true,
|
| 346 |
+
+ "dependencies": {
|
| 347 |
+
+ "agent-base": "^7.1.0",
|
| 348 |
+
+ "debug": "^4.3.4"
|
| 349 |
+
+ },
|
| 350 |
+
+ "engines": {
|
| 351 |
+
+ "node": ">= 14"
|
| 352 |
+
+ }
|
| 353 |
+
+ },
|
| 354 |
+
+ "node_modules/https-proxy-agent": {
|
| 355 |
+
+ "version": "7.0.6",
|
| 356 |
+
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
|
| 357 |
+
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
|
| 358 |
+
+ "dev": true,
|
| 359 |
+
+ "dependencies": {
|
| 360 |
+
+ "agent-base": "^7.1.2",
|
| 361 |
+
+ "debug": "4"
|
| 362 |
+
+ },
|
| 363 |
+
+ "engines": {
|
| 364 |
+
+ "node": ">= 14"
|
| 365 |
+
+ }
|
| 366 |
+
+ },
|
| 367 |
+
"node_modules/iconv-lite": {
|
| 368 |
+
"version": "0.6.3",
|
| 369 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
| 370 |
+
@@ -391,6 +552,19 @@
|
| 371 |
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
+ "node_modules/ip-address": {
|
| 375 |
+
+ "version": "9.0.5",
|
| 376 |
+
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
|
| 377 |
+
+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
|
| 378 |
+
+ "dev": true,
|
| 379 |
+
+ "dependencies": {
|
| 380 |
+
+ "jsbn": "1.1.0",
|
| 381 |
+
+ "sprintf-js": "^1.1.3"
|
| 382 |
+
+ },
|
| 383 |
+
+ "engines": {
|
| 384 |
+
+ "node": ">= 12"
|
| 385 |
+
+ }
|
| 386 |
+
+ },
|
| 387 |
+
"node_modules/is-absolute-url": {
|
| 388 |
+
"version": "4.0.1",
|
| 389 |
+
"resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz",
|
| 390 |
+
@@ -418,18 +592,6 @@
|
| 391 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 392 |
+
}
|
| 393 |
+
},
|
| 394 |
+
- "node_modules/isemail": {
|
| 395 |
+
- "version": "3.2.0",
|
| 396 |
+
- "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz",
|
| 397 |
+
- "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==",
|
| 398 |
+
- "dev": true,
|
| 399 |
+
- "dependencies": {
|
| 400 |
+
- "punycode": "2.x.x"
|
| 401 |
+
- },
|
| 402 |
+
- "engines": {
|
| 403 |
+
- "node": ">=4.0.0"
|
| 404 |
+
- }
|
| 405 |
+
- },
|
| 406 |
+
"node_modules/js-yaml": {
|
| 407 |
+
"version": "4.1.0",
|
| 408 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
| 409 |
+
@@ -442,6 +604,12 @@
|
| 410 |
+
"js-yaml": "bin/js-yaml.js"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
+ "node_modules/jsbn": {
|
| 414 |
+
+ "version": "1.1.0",
|
| 415 |
+
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
| 416 |
+
+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
|
| 417 |
+
+ "dev": true
|
| 418 |
+
+ },
|
| 419 |
+
"node_modules/jsonc-parser": {
|
| 420 |
+
"version": "3.0.0",
|
| 421 |
+
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",
|
| 422 |
+
@@ -449,15 +617,16 @@
|
| 423 |
+
"dev": true
|
| 424 |
+
},
|
| 425 |
+
"node_modules/link-check": {
|
| 426 |
+
- "version": "5.2.0",
|
| 427 |
+
- "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.2.0.tgz",
|
| 428 |
+
- "integrity": "sha512-xRbhYLaGDw7eRDTibTAcl6fXtmUQ13vkezQiTqshHHdGueQeumgxxmQMIOmJYsh2p8BF08t8thhDQ++EAOOq3w==",
|
| 429 |
+
+ "version": "5.4.0",
|
| 430 |
+
+ "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.4.0.tgz",
|
| 431 |
+
+ "integrity": "sha512-0Pf4xBVUnwJdbDgpBlhHNmWDtbVjHTpIFs+JaBuIsC9PKRxjv4KMGCO2Gc8lkVnqMf9B/yaNY+9zmMlO5MyToQ==",
|
| 432 |
+
"dev": true,
|
| 433 |
+
"dependencies": {
|
| 434 |
+
"is-relative-url": "^4.0.0",
|
| 435 |
+
- "isemail": "^3.2.0",
|
| 436 |
+
"ms": "^2.1.3",
|
| 437 |
+
- "needle": "^3.1.0"
|
| 438 |
+
+ "needle": "^3.3.1",
|
| 439 |
+
+ "node-email-verifier": "^2.0.0",
|
| 440 |
+
+ "proxy-agent": "^6.4.0"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
"node_modules/linkify-it": {
|
| 444 |
+
@@ -469,11 +638,14 @@
|
| 445 |
+
"uc.micro": "^1.0.1"
|
| 446 |
+
}
|
| 447 |
+
},
|
| 448 |
+
- "node_modules/lodash": {
|
| 449 |
+
- "version": "4.17.21",
|
| 450 |
+
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 451 |
+
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
| 452 |
+
- "dev": true
|
| 453 |
+
+ "node_modules/lru-cache": {
|
| 454 |
+
+ "version": "7.18.3",
|
| 455 |
+
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
| 456 |
+
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
| 457 |
+
+ "dev": true,
|
| 458 |
+
+ "engines": {
|
| 459 |
+
+ "node": ">=12"
|
| 460 |
+
+ }
|
| 461 |
+
},
|
| 462 |
+
"node_modules/markdown-it": {
|
| 463 |
+
"version": "12.3.2",
|
| 464 |
+
@@ -501,32 +673,33 @@
|
| 465 |
+
}
|
| 466 |
+
},
|
| 467 |
+
"node_modules/markdown-link-check": {
|
| 468 |
+
- "version": "3.10.3",
|
| 469 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.10.3.tgz",
|
| 470 |
+
- "integrity": "sha512-uGdJiZOy1CVWlRe7CyBSJ0Gz80Xm4vt++xjX9sNFjB7qcAxLinaMmzFQ5xOwERaXC9mK770BhnqnsyJT1gTr9w==",
|
| 471 |
+
+ "version": "3.13.7",
|
| 472 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.13.7.tgz",
|
| 473 |
+
+ "integrity": "sha512-Btn3HU8s2Uyh1ZfzmyZEkp64zp2+RAjwfQt1u4swq2Xa6w37OW0T2inQZrkSNVxDSa2jSN2YYhw/JkAp5jF1PQ==",
|
| 474 |
+
"dev": true,
|
| 475 |
+
"dependencies": {
|
| 476 |
+
- "async": "^3.2.4",
|
| 477 |
+
- "chalk": "^4.1.2",
|
| 478 |
+
- "commander": "^6.2.0",
|
| 479 |
+
- "link-check": "^5.2.0",
|
| 480 |
+
- "lodash": "^4.17.21",
|
| 481 |
+
- "markdown-link-extractor": "^3.1.0",
|
| 482 |
+
- "needle": "^3.1.0",
|
| 483 |
+
- "progress": "^2.0.3"
|
| 484 |
+
+ "async": "^3.2.6",
|
| 485 |
+
+ "chalk": "^5.3.0",
|
| 486 |
+
+ "commander": "^13.1.0",
|
| 487 |
+
+ "link-check": "^5.4.0",
|
| 488 |
+
+ "markdown-link-extractor": "^4.0.2",
|
| 489 |
+
+ "needle": "^3.3.1",
|
| 490 |
+
+ "progress": "^2.0.3",
|
| 491 |
+
+ "proxy-agent": "^6.4.0",
|
| 492 |
+
+ "xmlbuilder2": "^3.1.1"
|
| 493 |
+
},
|
| 494 |
+
"bin": {
|
| 495 |
+
"markdown-link-check": "markdown-link-check"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"node_modules/markdown-link-extractor": {
|
| 499 |
+
- "version": "3.1.0",
|
| 500 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-3.1.0.tgz",
|
| 501 |
+
- "integrity": "sha512-r0NEbP1dsM+IqB62Ru9TXLP/HDaTdBNIeylYXumuBi6Xv4ufjE1/g3TnslYL8VNqNcGAGbMptQFHrrdfoZ/Sug==",
|
| 502 |
+
+ "version": "4.0.2",
|
| 503 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-4.0.2.tgz",
|
| 504 |
+
+ "integrity": "sha512-5cUOu4Vwx1wenJgxaudsJ8xwLUMN7747yDJX3V/L7+gi3e4MsCm7w5nbrDQQy8nEfnl4r5NV3pDXMAjhGXYXAw==",
|
| 505 |
+
"dev": true,
|
| 506 |
+
"dependencies": {
|
| 507 |
+
"html-link-extractor": "^1.0.5",
|
| 508 |
+
- "marked": "^4.1.0"
|
| 509 |
+
+ "marked": "^12.0.1"
|
| 510 |
+
}
|
| 511 |
+
},
|
| 512 |
+
"node_modules/markdownlint": {
|
| 513 |
+
@@ -581,15 +754,15 @@
|
| 514 |
+
"dev": true
|
| 515 |
+
},
|
| 516 |
+
"node_modules/marked": {
|
| 517 |
+
- "version": "4.3.0",
|
| 518 |
+
- "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz",
|
| 519 |
+
- "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==",
|
| 520 |
+
+ "version": "12.0.2",
|
| 521 |
+
+ "resolved": "https://registry.npmjs.org/marked/-/marked-12.0.2.tgz",
|
| 522 |
+
+ "integrity": "sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==",
|
| 523 |
+
"dev": true,
|
| 524 |
+
"bin": {
|
| 525 |
+
"marked": "bin/marked.js"
|
| 526 |
+
},
|
| 527 |
+
"engines": {
|
| 528 |
+
- "node": ">= 12"
|
| 529 |
+
+ "node": ">= 18"
|
| 530 |
+
}
|
| 531 |
+
},
|
| 532 |
+
"node_modules/mdurl": {
|
| 533 |
+
@@ -626,12 +799,11 @@
|
| 534 |
+
"dev": true
|
| 535 |
+
},
|
| 536 |
+
"node_modules/needle": {
|
| 537 |
+
- "version": "3.2.0",
|
| 538 |
+
- "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz",
|
| 539 |
+
- "integrity": "sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==",
|
| 540 |
+
+ "version": "3.3.1",
|
| 541 |
+
+ "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz",
|
| 542 |
+
+ "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==",
|
| 543 |
+
"dev": true,
|
| 544 |
+
"dependencies": {
|
| 545 |
+
- "debug": "^3.2.6",
|
| 546 |
+
"iconv-lite": "^0.6.3",
|
| 547 |
+
"sax": "^1.2.4"
|
| 548 |
+
},
|
| 549 |
+
@@ -642,6 +814,28 @@
|
| 550 |
+
"node": ">= 4.4.x"
|
| 551 |
+
}
|
| 552 |
+
},
|
| 553 |
+
+ "node_modules/netmask": {
|
| 554 |
+
+ "version": "2.0.2",
|
| 555 |
+
+ "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
|
| 556 |
+
+ "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==",
|
| 557 |
+
+ "dev": true,
|
| 558 |
+
+ "engines": {
|
| 559 |
+
+ "node": ">= 0.4.0"
|
| 560 |
+
+ }
|
| 561 |
+
+ },
|
| 562 |
+
+ "node_modules/node-email-verifier": {
|
| 563 |
+
+ "version": "2.0.0",
|
| 564 |
+
+ "resolved": "https://registry.npmjs.org/node-email-verifier/-/node-email-verifier-2.0.0.tgz",
|
| 565 |
+
+ "integrity": "sha512-AHcppjOH2KT0mxakrxFMOMjV/gOVMRpYvnJUkNfgF9oJ3INdVmqcMFJ5TlM8elpTPwt6A7bSp1IMnnWcxGom/Q==",
|
| 566 |
+
+ "dev": true,
|
| 567 |
+
+ "dependencies": {
|
| 568 |
+
+ "ms": "^2.1.3",
|
| 569 |
+
+ "validator": "^13.11.0"
|
| 570 |
+
+ },
|
| 571 |
+
+ "engines": {
|
| 572 |
+
+ "node": ">=16.0.0"
|
| 573 |
+
+ }
|
| 574 |
+
+ },
|
| 575 |
+
"node_modules/nth-check": {
|
| 576 |
+
"version": "2.1.1",
|
| 577 |
+
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
|
| 578 |
+
@@ -663,6 +857,38 @@
|
| 579 |
+
"wrappy": "1"
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
+ "node_modules/pac-proxy-agent": {
|
| 583 |
+
+ "version": "7.2.0",
|
| 584 |
+
+ "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz",
|
| 585 |
+
+ "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
|
| 586 |
+
+ "dev": true,
|
| 587 |
+
+ "dependencies": {
|
| 588 |
+
+ "@tootallnate/quickjs-emscripten": "^0.23.0",
|
| 589 |
+
+ "agent-base": "^7.1.2",
|
| 590 |
+
+ "debug": "^4.3.4",
|
| 591 |
+
+ "get-uri": "^6.0.1",
|
| 592 |
+
+ "http-proxy-agent": "^7.0.0",
|
| 593 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 594 |
+
+ "pac-resolver": "^7.0.1",
|
| 595 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 596 |
+
+ },
|
| 597 |
+
+ "engines": {
|
| 598 |
+
+ "node": ">= 14"
|
| 599 |
+
+ }
|
| 600 |
+
+ },
|
| 601 |
+
+ "node_modules/pac-resolver": {
|
| 602 |
+
+ "version": "7.0.1",
|
| 603 |
+
+ "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
|
| 604 |
+
+ "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
|
| 605 |
+
+ "dev": true,
|
| 606 |
+
+ "dependencies": {
|
| 607 |
+
+ "degenerator": "^5.0.0",
|
| 608 |
+
+ "netmask": "^2.0.2"
|
| 609 |
+
+ },
|
| 610 |
+
+ "engines": {
|
| 611 |
+
+ "node": ">= 14"
|
| 612 |
+
+ }
|
| 613 |
+
+ },
|
| 614 |
+
"node_modules/parse5": {
|
| 615 |
+
"version": "7.1.2",
|
| 616 |
+
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
|
| 617 |
+
@@ -706,15 +932,31 @@
|
| 618 |
+
"node": ">=0.4.0"
|
| 619 |
+
}
|
| 620 |
+
},
|
| 621 |
+
- "node_modules/punycode": {
|
| 622 |
+
- "version": "2.3.0",
|
| 623 |
+
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
|
| 624 |
+
- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
|
| 625 |
+
+ "node_modules/proxy-agent": {
|
| 626 |
+
+ "version": "6.5.0",
|
| 627 |
+
+ "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
|
| 628 |
+
+ "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==",
|
| 629 |
+
"dev": true,
|
| 630 |
+
+ "dependencies": {
|
| 631 |
+
+ "agent-base": "^7.1.2",
|
| 632 |
+
+ "debug": "^4.3.4",
|
| 633 |
+
+ "http-proxy-agent": "^7.0.1",
|
| 634 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 635 |
+
+ "lru-cache": "^7.14.1",
|
| 636 |
+
+ "pac-proxy-agent": "^7.1.0",
|
| 637 |
+
+ "proxy-from-env": "^1.1.0",
|
| 638 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 639 |
+
+ },
|
| 640 |
+
"engines": {
|
| 641 |
+
- "node": ">=6"
|
| 642 |
+
+ "node": ">= 14"
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
+ "node_modules/proxy-from-env": {
|
| 646 |
+
+ "version": "1.1.0",
|
| 647 |
+
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 648 |
+
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 649 |
+
+ "dev": true
|
| 650 |
+
+ },
|
| 651 |
+
"node_modules/run-con": {
|
| 652 |
+
"version": "1.2.12",
|
| 653 |
+
"resolved": "https://registry.npmjs.org/run-con/-/run-con-1.2.12.tgz",
|
| 654 |
+
@@ -737,9 +979,63 @@
|
| 655 |
+
"dev": true
|
| 656 |
+
},
|
| 657 |
+
"node_modules/sax": {
|
| 658 |
+
- "version": "1.2.4",
|
| 659 |
+
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
| 660 |
+
- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
|
| 661 |
+
+ "version": "1.4.1",
|
| 662 |
+
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
|
| 663 |
+
+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
|
| 664 |
+
+ "dev": true
|
| 665 |
+
+ },
|
| 666 |
+
+ "node_modules/smart-buffer": {
|
| 667 |
+
+ "version": "4.2.0",
|
| 668 |
+
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
| 669 |
+
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
|
| 670 |
+
+ "dev": true,
|
| 671 |
+
+ "engines": {
|
| 672 |
+
+ "node": ">= 6.0.0",
|
| 673 |
+
+ "npm": ">= 3.0.0"
|
| 674 |
+
+ }
|
| 675 |
+
+ },
|
| 676 |
+
+ "node_modules/socks": {
|
| 677 |
+
+ "version": "2.8.4",
|
| 678 |
+
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz",
|
| 679 |
+
+ "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==",
|
| 680 |
+
+ "dev": true,
|
| 681 |
+
+ "dependencies": {
|
| 682 |
+
+ "ip-address": "^9.0.5",
|
| 683 |
+
+ "smart-buffer": "^4.2.0"
|
| 684 |
+
+ },
|
| 685 |
+
+ "engines": {
|
| 686 |
+
+ "node": ">= 10.0.0",
|
| 687 |
+
+ "npm": ">= 3.0.0"
|
| 688 |
+
+ }
|
| 689 |
+
+ },
|
| 690 |
+
+ "node_modules/socks-proxy-agent": {
|
| 691 |
+
+ "version": "8.0.5",
|
| 692 |
+
+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz",
|
| 693 |
+
+ "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==",
|
| 694 |
+
+ "dev": true,
|
| 695 |
+
+ "dependencies": {
|
| 696 |
+
+ "agent-base": "^7.1.2",
|
| 697 |
+
+ "debug": "^4.3.4",
|
| 698 |
+
+ "socks": "^2.8.3"
|
| 699 |
+
+ },
|
| 700 |
+
+ "engines": {
|
| 701 |
+
+ "node": ">= 14"
|
| 702 |
+
+ }
|
| 703 |
+
+ },
|
| 704 |
+
+ "node_modules/source-map": {
|
| 705 |
+
+ "version": "0.6.1",
|
| 706 |
+
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
| 707 |
+
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
| 708 |
+
+ "dev": true,
|
| 709 |
+
+ "optional": true,
|
| 710 |
+
+ "engines": {
|
| 711 |
+
+ "node": ">=0.10.0"
|
| 712 |
+
+ }
|
| 713 |
+
+ },
|
| 714 |
+
+ "node_modules/sprintf-js": {
|
| 715 |
+
+ "version": "1.1.3",
|
| 716 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
|
| 717 |
+
+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
|
| 718 |
+
"dev": true
|
| 719 |
+
},
|
| 720 |
+
"node_modules/strip-json-comments": {
|
| 721 |
+
@@ -754,17 +1050,11 @@
|
| 722 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 723 |
+
}
|
| 724 |
+
},
|
| 725 |
+
- "node_modules/supports-color": {
|
| 726 |
+
- "version": "7.2.0",
|
| 727 |
+
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 728 |
+
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 729 |
+
- "dev": true,
|
| 730 |
+
- "dependencies": {
|
| 731 |
+
- "has-flag": "^4.0.0"
|
| 732 |
+
- },
|
| 733 |
+
- "engines": {
|
| 734 |
+
- "node": ">=8"
|
| 735 |
+
- }
|
| 736 |
+
+ "node_modules/tslib": {
|
| 737 |
+
+ "version": "2.8.1",
|
| 738 |
+
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 739 |
+
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 740 |
+
+ "dev": true
|
| 741 |
+
},
|
| 742 |
+
"node_modules/uc.micro": {
|
| 743 |
+
"version": "1.0.6",
|
| 744 |
+
@@ -772,33 +1062,133 @@
|
| 745 |
+
"integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==",
|
| 746 |
+
"dev": true
|
| 747 |
+
},
|
| 748 |
+
+ "node_modules/validator": {
|
| 749 |
+
+ "version": "13.15.0",
|
| 750 |
+
+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz",
|
| 751 |
+
+ "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==",
|
| 752 |
+
+ "dev": true,
|
| 753 |
+
+ "engines": {
|
| 754 |
+
+ "node": ">= 0.10"
|
| 755 |
+
+ }
|
| 756 |
+
+ },
|
| 757 |
+
"node_modules/wrappy": {
|
| 758 |
+
"version": "1.0.2",
|
| 759 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 760 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 761 |
+
"dev": true
|
| 762 |
+
+ },
|
| 763 |
+
+ "node_modules/xmlbuilder2": {
|
| 764 |
+
+ "version": "3.1.1",
|
| 765 |
+
+ "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-3.1.1.tgz",
|
| 766 |
+
+ "integrity": "sha512-WCSfbfZnQDdLQLiMdGUQpMxxckeQ4oZNMNhLVkcekTu7xhD4tuUDyAPoY8CwXvBYE6LwBHd6QW2WZXlOWr1vCw==",
|
| 767 |
+
+ "dev": true,
|
| 768 |
+
+ "dependencies": {
|
| 769 |
+
+ "@oozcitak/dom": "1.15.10",
|
| 770 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 771 |
+
+ "@oozcitak/util": "8.3.8",
|
| 772 |
+
+ "js-yaml": "3.14.1"
|
| 773 |
+
+ },
|
| 774 |
+
+ "engines": {
|
| 775 |
+
+ "node": ">=12.0"
|
| 776 |
+
+ }
|
| 777 |
+
+ },
|
| 778 |
+
+ "node_modules/xmlbuilder2/node_modules/argparse": {
|
| 779 |
+
+ "version": "1.0.10",
|
| 780 |
+
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
| 781 |
+
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
| 782 |
+
+ "dev": true,
|
| 783 |
+
+ "dependencies": {
|
| 784 |
+
+ "sprintf-js": "~1.0.2"
|
| 785 |
+
+ }
|
| 786 |
+
+ },
|
| 787 |
+
+ "node_modules/xmlbuilder2/node_modules/js-yaml": {
|
| 788 |
+
+ "version": "3.14.1",
|
| 789 |
+
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
| 790 |
+
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
| 791 |
+
+ "dev": true,
|
| 792 |
+
+ "dependencies": {
|
| 793 |
+
+ "argparse": "^1.0.7",
|
| 794 |
+
+ "esprima": "^4.0.0"
|
| 795 |
+
+ },
|
| 796 |
+
+ "bin": {
|
| 797 |
+
+ "js-yaml": "bin/js-yaml.js"
|
| 798 |
+
+ }
|
| 799 |
+
+ },
|
| 800 |
+
+ "node_modules/xmlbuilder2/node_modules/sprintf-js": {
|
| 801 |
+
+ "version": "1.0.3",
|
| 802 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
| 803 |
+
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
|
| 804 |
+
+ "dev": true
|
| 805 |
+
}
|
| 806 |
+
},
|
| 807 |
+
"dependencies": {
|
| 808 |
+
- "ansi-styles": {
|
| 809 |
+
- "version": "4.3.0",
|
| 810 |
+
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 811 |
+
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 812 |
+
+ "@oozcitak/dom": {
|
| 813 |
+
+ "version": "1.15.10",
|
| 814 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.10.tgz",
|
| 815 |
+
+ "integrity": "sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==",
|
| 816 |
+
"dev": true,
|
| 817 |
+
"requires": {
|
| 818 |
+
- "color-convert": "^2.0.1"
|
| 819 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 820 |
+
+ "@oozcitak/url": "1.0.4",
|
| 821 |
+
+ "@oozcitak/util": "8.3.8"
|
| 822 |
+
}
|
| 823 |
+
},
|
| 824 |
+
+ "@oozcitak/infra": {
|
| 825 |
+
+ "version": "1.0.8",
|
| 826 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
|
| 827 |
+
+ "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
|
| 828 |
+
+ "dev": true,
|
| 829 |
+
+ "requires": {
|
| 830 |
+
+ "@oozcitak/util": "8.3.8"
|
| 831 |
+
+ }
|
| 832 |
+
+ },
|
| 833 |
+
+ "@oozcitak/url": {
|
| 834 |
+
+ "version": "1.0.4",
|
| 835 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
|
| 836 |
+
+ "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
|
| 837 |
+
+ "dev": true,
|
| 838 |
+
+ "requires": {
|
| 839 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 840 |
+
+ "@oozcitak/util": "8.3.8"
|
| 841 |
+
+ }
|
| 842 |
+
+ },
|
| 843 |
+
+ "@oozcitak/util": {
|
| 844 |
+
+ "version": "8.3.8",
|
| 845 |
+
+ "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
|
| 846 |
+
+ "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==",
|
| 847 |
+
+ "dev": true
|
| 848 |
+
+ },
|
| 849 |
+
+ "@tootallnate/quickjs-emscripten": {
|
| 850 |
+
+ "version": "0.23.0",
|
| 851 |
+
+ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
|
| 852 |
+
+ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
|
| 853 |
+
+ "dev": true
|
| 854 |
+
+ },
|
| 855 |
+
+ "agent-base": {
|
| 856 |
+
+ "version": "7.1.3",
|
| 857 |
+
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
|
| 858 |
+
+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
|
| 859 |
+
+ "dev": true
|
| 860 |
+
+ },
|
| 861 |
+
"argparse": {
|
| 862 |
+
"version": "2.0.1",
|
| 863 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 864 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 865 |
+
"dev": true
|
| 866 |
+
},
|
| 867 |
+
+ "ast-types": {
|
| 868 |
+
+ "version": "0.13.4",
|
| 869 |
+
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
|
| 870 |
+
+ "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
|
| 871 |
+
+ "dev": true,
|
| 872 |
+
+ "requires": {
|
| 873 |
+
+ "tslib": "^2.0.1"
|
| 874 |
+
+ }
|
| 875 |
+
+ },
|
| 876 |
+
"async": {
|
| 877 |
+
- "version": "3.2.4",
|
| 878 |
+
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz",
|
| 879 |
+
- "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==",
|
| 880 |
+
+ "version": "3.2.6",
|
| 881 |
+
+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
|
| 882 |
+
+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
|
| 883 |
+
"dev": true
|
| 884 |
+
},
|
| 885 |
+
"balanced-match": {
|
| 886 |
+
@@ -807,6 +1197,12 @@
|
| 887 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 888 |
+
"dev": true
|
| 889 |
+
},
|
| 890 |
+
+ "basic-ftp": {
|
| 891 |
+
+ "version": "5.0.5",
|
| 892 |
+
+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
|
| 893 |
+
+ "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
|
| 894 |
+
+ "dev": true
|
| 895 |
+
+ },
|
| 896 |
+
"boolbase": {
|
| 897 |
+
"version": "1.0.0",
|
| 898 |
+
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
| 899 |
+
@@ -824,14 +1220,10 @@
|
| 900 |
+
}
|
| 901 |
+
},
|
| 902 |
+
"chalk": {
|
| 903 |
+
- "version": "4.1.2",
|
| 904 |
+
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 905 |
+
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 906 |
+
- "dev": true,
|
| 907 |
+
- "requires": {
|
| 908 |
+
- "ansi-styles": "^4.1.0",
|
| 909 |
+
- "supports-color": "^7.1.0"
|
| 910 |
+
- }
|
| 911 |
+
+ "version": "5.4.1",
|
| 912 |
+
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
|
| 913 |
+
+ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
|
| 914 |
+
+ "dev": true
|
| 915 |
+
},
|
| 916 |
+
"cheerio": {
|
| 917 |
+
"version": "1.0.0-rc.12",
|
| 918 |
+
@@ -862,25 +1254,10 @@
|
| 919 |
+
"domutils": "^3.0.1"
|
| 920 |
+
}
|
| 921 |
+
},
|
| 922 |
+
- "color-convert": {
|
| 923 |
+
- "version": "2.0.1",
|
| 924 |
+
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 925 |
+
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 926 |
+
- "dev": true,
|
| 927 |
+
- "requires": {
|
| 928 |
+
- "color-name": "~1.1.4"
|
| 929 |
+
- }
|
| 930 |
+
- },
|
| 931 |
+
- "color-name": {
|
| 932 |
+
- "version": "1.1.4",
|
| 933 |
+
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 934 |
+
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 935 |
+
- "dev": true
|
| 936 |
+
- },
|
| 937 |
+
"commander": {
|
| 938 |
+
- "version": "6.2.1",
|
| 939 |
+
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
|
| 940 |
+
- "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
|
| 941 |
+
+ "version": "13.1.0",
|
| 942 |
+
+ "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
| 943 |
+
+ "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
|
| 944 |
+
"dev": true
|
| 945 |
+
},
|
| 946 |
+
"concat-map": {
|
| 947 |
+
@@ -908,13 +1285,19 @@
|
| 948 |
+
"integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==",
|
| 949 |
+
"dev": true
|
| 950 |
+
},
|
| 951 |
+
+ "data-uri-to-buffer": {
|
| 952 |
+
+ "version": "6.0.2",
|
| 953 |
+
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
|
| 954 |
+
+ "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
|
| 955 |
+
+ "dev": true
|
| 956 |
+
+ },
|
| 957 |
+
"debug": {
|
| 958 |
+
- "version": "3.2.7",
|
| 959 |
+
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
|
| 960 |
+
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
|
| 961 |
+
+ "version": "4.4.1",
|
| 962 |
+
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
|
| 963 |
+
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
|
| 964 |
+
"dev": true,
|
| 965 |
+
"requires": {
|
| 966 |
+
- "ms": "^2.1.1"
|
| 967 |
+
+ "ms": "^2.1.3"
|
| 968 |
+
}
|
| 969 |
+
},
|
| 970 |
+
"deep-extend": {
|
| 971 |
+
@@ -923,6 +1306,17 @@
|
| 972 |
+
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
|
| 973 |
+
"dev": true
|
| 974 |
+
},
|
| 975 |
+
+ "degenerator": {
|
| 976 |
+
+ "version": "5.0.1",
|
| 977 |
+
+ "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
|
| 978 |
+
+ "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
|
| 979 |
+
+ "dev": true,
|
| 980 |
+
+ "requires": {
|
| 981 |
+
+ "ast-types": "^0.13.4",
|
| 982 |
+
+ "escodegen": "^2.1.0",
|
| 983 |
+
+ "esprima": "^4.0.1"
|
| 984 |
+
+ }
|
| 985 |
+
+ },
|
| 986 |
+
"dom-serializer": {
|
| 987 |
+
"version": "2.0.0",
|
| 988 |
+
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
|
| 989 |
+
@@ -966,6 +1360,36 @@
|
| 990 |
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
| 991 |
+
"dev": true
|
| 992 |
+
},
|
| 993 |
+
+ "escodegen": {
|
| 994 |
+
+ "version": "2.1.0",
|
| 995 |
+
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
|
| 996 |
+
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
|
| 997 |
+
+ "dev": true,
|
| 998 |
+
+ "requires": {
|
| 999 |
+
+ "esprima": "^4.0.1",
|
| 1000 |
+
+ "estraverse": "^5.2.0",
|
| 1001 |
+
+ "esutils": "^2.0.2",
|
| 1002 |
+
+ "source-map": "~0.6.1"
|
| 1003 |
+
+ }
|
| 1004 |
+
+ },
|
| 1005 |
+
+ "esprima": {
|
| 1006 |
+
+ "version": "4.0.1",
|
| 1007 |
+
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
| 1008 |
+
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
| 1009 |
+
+ "dev": true
|
| 1010 |
+
+ },
|
| 1011 |
+
+ "estraverse": {
|
| 1012 |
+
+ "version": "5.3.0",
|
| 1013 |
+
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 1014 |
+
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 1015 |
+
+ "dev": true
|
| 1016 |
+
+ },
|
| 1017 |
+
+ "esutils": {
|
| 1018 |
+
+ "version": "2.0.3",
|
| 1019 |
+
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 1020 |
+
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 1021 |
+
+ "dev": true
|
| 1022 |
+
+ },
|
| 1023 |
+
"fs.realpath": {
|
| 1024 |
+
"version": "1.0.0",
|
| 1025 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 1026 |
+
@@ -978,6 +1402,17 @@
|
| 1027 |
+
"integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==",
|
| 1028 |
+
"dev": true
|
| 1029 |
+
},
|
| 1030 |
+
+ "get-uri": {
|
| 1031 |
+
+ "version": "6.0.4",
|
| 1032 |
+
+ "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz",
|
| 1033 |
+
+ "integrity": "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==",
|
| 1034 |
+
+ "dev": true,
|
| 1035 |
+
+ "requires": {
|
| 1036 |
+
+ "basic-ftp": "^5.0.2",
|
| 1037 |
+
+ "data-uri-to-buffer": "^6.0.2",
|
| 1038 |
+
+ "debug": "^4.3.4"
|
| 1039 |
+
+ }
|
| 1040 |
+
+ },
|
| 1041 |
+
"glob": {
|
| 1042 |
+
"version": "7.2.3",
|
| 1043 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
| 1044 |
+
@@ -1003,12 +1438,6 @@
|
| 1045 |
+
}
|
| 1046 |
+
}
|
| 1047 |
+
},
|
| 1048 |
+
- "has-flag": {
|
| 1049 |
+
- "version": "4.0.0",
|
| 1050 |
+
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 1051 |
+
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 1052 |
+
- "dev": true
|
| 1053 |
+
- },
|
| 1054 |
+
"html-link-extractor": {
|
| 1055 |
+
"version": "1.0.5",
|
| 1056 |
+
"resolved": "https://registry.npmjs.org/html-link-extractor/-/html-link-extractor-1.0.5.tgz",
|
| 1057 |
+
@@ -1030,6 +1459,26 @@
|
| 1058 |
+
"entities": "^4.4.0"
|
| 1059 |
+
}
|
| 1060 |
+
},
|
| 1061 |
+
+ "http-proxy-agent": {
|
| 1062 |
+
+ "version": "7.0.2",
|
| 1063 |
+
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
| 1064 |
+
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
| 1065 |
+
+ "dev": true,
|
| 1066 |
+
+ "requires": {
|
| 1067 |
+
+ "agent-base": "^7.1.0",
|
| 1068 |
+
+ "debug": "^4.3.4"
|
| 1069 |
+
+ }
|
| 1070 |
+
+ },
|
| 1071 |
+
+ "https-proxy-agent": {
|
| 1072 |
+
+ "version": "7.0.6",
|
| 1073 |
+
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
|
| 1074 |
+
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
|
| 1075 |
+
+ "dev": true,
|
| 1076 |
+
+ "requires": {
|
| 1077 |
+
+ "agent-base": "^7.1.2",
|
| 1078 |
+
+ "debug": "4"
|
| 1079 |
+
+ }
|
| 1080 |
+
+ },
|
| 1081 |
+
"iconv-lite": {
|
| 1082 |
+
"version": "0.6.3",
|
| 1083 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
| 1084 |
+
@@ -1067,6 +1516,16 @@
|
| 1085 |
+
"integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==",
|
| 1086 |
+
"dev": true
|
| 1087 |
+
},
|
| 1088 |
+
+ "ip-address": {
|
| 1089 |
+
+ "version": "9.0.5",
|
| 1090 |
+
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
|
| 1091 |
+
+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
|
| 1092 |
+
+ "dev": true,
|
| 1093 |
+
+ "requires": {
|
| 1094 |
+
+ "jsbn": "1.1.0",
|
| 1095 |
+
+ "sprintf-js": "^1.1.3"
|
| 1096 |
+
+ }
|
| 1097 |
+
+ },
|
| 1098 |
+
"is-absolute-url": {
|
| 1099 |
+
"version": "4.0.1",
|
| 1100 |
+
"resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz",
|
| 1101 |
+
@@ -1082,15 +1541,6 @@
|
| 1102 |
+
"is-absolute-url": "^4.0.1"
|
| 1103 |
+
}
|
| 1104 |
+
},
|
| 1105 |
+
- "isemail": {
|
| 1106 |
+
- "version": "3.2.0",
|
| 1107 |
+
- "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz",
|
| 1108 |
+
- "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==",
|
| 1109 |
+
- "dev": true,
|
| 1110 |
+
- "requires": {
|
| 1111 |
+
- "punycode": "2.x.x"
|
| 1112 |
+
- }
|
| 1113 |
+
- },
|
| 1114 |
+
"js-yaml": {
|
| 1115 |
+
"version": "4.1.0",
|
| 1116 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
| 1117 |
+
@@ -1100,6 +1550,12 @@
|
| 1118 |
+
"argparse": "^2.0.1"
|
| 1119 |
+
}
|
| 1120 |
+
},
|
| 1121 |
+
+ "jsbn": {
|
| 1122 |
+
+ "version": "1.1.0",
|
| 1123 |
+
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
| 1124 |
+
+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
|
| 1125 |
+
+ "dev": true
|
| 1126 |
+
+ },
|
| 1127 |
+
"jsonc-parser": {
|
| 1128 |
+
"version": "3.0.0",
|
| 1129 |
+
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",
|
| 1130 |
+
@@ -1107,15 +1563,16 @@
|
| 1131 |
+
"dev": true
|
| 1132 |
+
},
|
| 1133 |
+
"link-check": {
|
| 1134 |
+
- "version": "5.2.0",
|
| 1135 |
+
- "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.2.0.tgz",
|
| 1136 |
+
- "integrity": "sha512-xRbhYLaGDw7eRDTibTAcl6fXtmUQ13vkezQiTqshHHdGueQeumgxxmQMIOmJYsh2p8BF08t8thhDQ++EAOOq3w==",
|
| 1137 |
+
+ "version": "5.4.0",
|
| 1138 |
+
+ "resolved": "https://registry.npmjs.org/link-check/-/link-check-5.4.0.tgz",
|
| 1139 |
+
+ "integrity": "sha512-0Pf4xBVUnwJdbDgpBlhHNmWDtbVjHTpIFs+JaBuIsC9PKRxjv4KMGCO2Gc8lkVnqMf9B/yaNY+9zmMlO5MyToQ==",
|
| 1140 |
+
"dev": true,
|
| 1141 |
+
"requires": {
|
| 1142 |
+
"is-relative-url": "^4.0.0",
|
| 1143 |
+
- "isemail": "^3.2.0",
|
| 1144 |
+
"ms": "^2.1.3",
|
| 1145 |
+
- "needle": "^3.1.0"
|
| 1146 |
+
+ "needle": "^3.3.1",
|
| 1147 |
+
+ "node-email-verifier": "^2.0.0",
|
| 1148 |
+
+ "proxy-agent": "^6.4.0"
|
| 1149 |
+
}
|
| 1150 |
+
},
|
| 1151 |
+
"linkify-it": {
|
| 1152 |
+
@@ -1127,10 +1584,10 @@
|
| 1153 |
+
"uc.micro": "^1.0.1"
|
| 1154 |
+
}
|
| 1155 |
+
},
|
| 1156 |
+
- "lodash": {
|
| 1157 |
+
- "version": "4.17.21",
|
| 1158 |
+
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 1159 |
+
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
| 1160 |
+
+ "lru-cache": {
|
| 1161 |
+
+ "version": "7.18.3",
|
| 1162 |
+
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
| 1163 |
+
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
| 1164 |
+
"dev": true
|
| 1165 |
+
},
|
| 1166 |
+
"markdown-it": {
|
| 1167 |
+
@@ -1155,29 +1612,30 @@
|
| 1168 |
+
}
|
| 1169 |
+
},
|
| 1170 |
+
"markdown-link-check": {
|
| 1171 |
+
- "version": "3.10.3",
|
| 1172 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.10.3.tgz",
|
| 1173 |
+
- "integrity": "sha512-uGdJiZOy1CVWlRe7CyBSJ0Gz80Xm4vt++xjX9sNFjB7qcAxLinaMmzFQ5xOwERaXC9mK770BhnqnsyJT1gTr9w==",
|
| 1174 |
+
+ "version": "3.13.7",
|
| 1175 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-check/-/markdown-link-check-3.13.7.tgz",
|
| 1176 |
+
+ "integrity": "sha512-Btn3HU8s2Uyh1ZfzmyZEkp64zp2+RAjwfQt1u4swq2Xa6w37OW0T2inQZrkSNVxDSa2jSN2YYhw/JkAp5jF1PQ==",
|
| 1177 |
+
"dev": true,
|
| 1178 |
+
"requires": {
|
| 1179 |
+
- "async": "^3.2.4",
|
| 1180 |
+
- "chalk": "^4.1.2",
|
| 1181 |
+
- "commander": "^6.2.0",
|
| 1182 |
+
- "link-check": "^5.2.0",
|
| 1183 |
+
- "lodash": "^4.17.21",
|
| 1184 |
+
- "markdown-link-extractor": "^3.1.0",
|
| 1185 |
+
- "needle": "^3.1.0",
|
| 1186 |
+
- "progress": "^2.0.3"
|
| 1187 |
+
+ "async": "^3.2.6",
|
| 1188 |
+
+ "chalk": "^5.3.0",
|
| 1189 |
+
+ "commander": "^13.1.0",
|
| 1190 |
+
+ "link-check": "^5.4.0",
|
| 1191 |
+
+ "markdown-link-extractor": "^4.0.2",
|
| 1192 |
+
+ "needle": "^3.3.1",
|
| 1193 |
+
+ "progress": "^2.0.3",
|
| 1194 |
+
+ "proxy-agent": "^6.4.0",
|
| 1195 |
+
+ "xmlbuilder2": "^3.1.1"
|
| 1196 |
+
}
|
| 1197 |
+
},
|
| 1198 |
+
"markdown-link-extractor": {
|
| 1199 |
+
- "version": "3.1.0",
|
| 1200 |
+
- "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-3.1.0.tgz",
|
| 1201 |
+
- "integrity": "sha512-r0NEbP1dsM+IqB62Ru9TXLP/HDaTdBNIeylYXumuBi6Xv4ufjE1/g3TnslYL8VNqNcGAGbMptQFHrrdfoZ/Sug==",
|
| 1202 |
+
+ "version": "4.0.2",
|
| 1203 |
+
+ "resolved": "https://registry.npmjs.org/markdown-link-extractor/-/markdown-link-extractor-4.0.2.tgz",
|
| 1204 |
+
+ "integrity": "sha512-5cUOu4Vwx1wenJgxaudsJ8xwLUMN7747yDJX3V/L7+gi3e4MsCm7w5nbrDQQy8nEfnl4r5NV3pDXMAjhGXYXAw==",
|
| 1205 |
+
"dev": true,
|
| 1206 |
+
"requires": {
|
| 1207 |
+
"html-link-extractor": "^1.0.5",
|
| 1208 |
+
- "marked": "^4.1.0"
|
| 1209 |
+
+ "marked": "^12.0.1"
|
| 1210 |
+
}
|
| 1211 |
+
},
|
| 1212 |
+
"markdownlint": {
|
| 1213 |
+
@@ -1222,9 +1680,9 @@
|
| 1214 |
+
"dev": true
|
| 1215 |
+
},
|
| 1216 |
+
"marked": {
|
| 1217 |
+
- "version": "4.3.0",
|
| 1218 |
+
- "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz",
|
| 1219 |
+
- "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==",
|
| 1220 |
+
+ "version": "12.0.2",
|
| 1221 |
+
+ "resolved": "https://registry.npmjs.org/marked/-/marked-12.0.2.tgz",
|
| 1222 |
+
+ "integrity": "sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==",
|
| 1223 |
+
"dev": true
|
| 1224 |
+
},
|
| 1225 |
+
"mdurl": {
|
| 1226 |
+
@@ -1255,16 +1713,31 @@
|
| 1227 |
+
"dev": true
|
| 1228 |
+
},
|
| 1229 |
+
"needle": {
|
| 1230 |
+
- "version": "3.2.0",
|
| 1231 |
+
- "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz",
|
| 1232 |
+
- "integrity": "sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==",
|
| 1233 |
+
+ "version": "3.3.1",
|
| 1234 |
+
+ "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz",
|
| 1235 |
+
+ "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==",
|
| 1236 |
+
"dev": true,
|
| 1237 |
+
"requires": {
|
| 1238 |
+
- "debug": "^3.2.6",
|
| 1239 |
+
"iconv-lite": "^0.6.3",
|
| 1240 |
+
"sax": "^1.2.4"
|
| 1241 |
+
}
|
| 1242 |
+
},
|
| 1243 |
+
+ "netmask": {
|
| 1244 |
+
+ "version": "2.0.2",
|
| 1245 |
+
+ "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
|
| 1246 |
+
+ "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==",
|
| 1247 |
+
+ "dev": true
|
| 1248 |
+
+ },
|
| 1249 |
+
+ "node-email-verifier": {
|
| 1250 |
+
+ "version": "2.0.0",
|
| 1251 |
+
+ "resolved": "https://registry.npmjs.org/node-email-verifier/-/node-email-verifier-2.0.0.tgz",
|
| 1252 |
+
+ "integrity": "sha512-AHcppjOH2KT0mxakrxFMOMjV/gOVMRpYvnJUkNfgF9oJ3INdVmqcMFJ5TlM8elpTPwt6A7bSp1IMnnWcxGom/Q==",
|
| 1253 |
+
+ "dev": true,
|
| 1254 |
+
+ "requires": {
|
| 1255 |
+
+ "ms": "^2.1.3",
|
| 1256 |
+
+ "validator": "^13.11.0"
|
| 1257 |
+
+ }
|
| 1258 |
+
+ },
|
| 1259 |
+
"nth-check": {
|
| 1260 |
+
"version": "2.1.1",
|
| 1261 |
+
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
|
| 1262 |
+
@@ -1283,6 +1756,32 @@
|
| 1263 |
+
"wrappy": "1"
|
| 1264 |
+
}
|
| 1265 |
+
},
|
| 1266 |
+
+ "pac-proxy-agent": {
|
| 1267 |
+
+ "version": "7.2.0",
|
| 1268 |
+
+ "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz",
|
| 1269 |
+
+ "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
|
| 1270 |
+
+ "dev": true,
|
| 1271 |
+
+ "requires": {
|
| 1272 |
+
+ "@tootallnate/quickjs-emscripten": "^0.23.0",
|
| 1273 |
+
+ "agent-base": "^7.1.2",
|
| 1274 |
+
+ "debug": "^4.3.4",
|
| 1275 |
+
+ "get-uri": "^6.0.1",
|
| 1276 |
+
+ "http-proxy-agent": "^7.0.0",
|
| 1277 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 1278 |
+
+ "pac-resolver": "^7.0.1",
|
| 1279 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 1280 |
+
+ }
|
| 1281 |
+
+ },
|
| 1282 |
+
+ "pac-resolver": {
|
| 1283 |
+
+ "version": "7.0.1",
|
| 1284 |
+
+ "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
|
| 1285 |
+
+ "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
|
| 1286 |
+
+ "dev": true,
|
| 1287 |
+
+ "requires": {
|
| 1288 |
+
+ "degenerator": "^5.0.0",
|
| 1289 |
+
+ "netmask": "^2.0.2"
|
| 1290 |
+
+ }
|
| 1291 |
+
+ },
|
| 1292 |
+
"parse5": {
|
| 1293 |
+
"version": "7.1.2",
|
| 1294 |
+
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
|
| 1295 |
+
@@ -1314,10 +1813,26 @@
|
| 1296 |
+
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
|
| 1297 |
+
"dev": true
|
| 1298 |
+
},
|
| 1299 |
+
- "punycode": {
|
| 1300 |
+
- "version": "2.3.0",
|
| 1301 |
+
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
|
| 1302 |
+
- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
|
| 1303 |
+
+ "proxy-agent": {
|
| 1304 |
+
+ "version": "6.5.0",
|
| 1305 |
+
+ "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
|
| 1306 |
+
+ "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==",
|
| 1307 |
+
+ "dev": true,
|
| 1308 |
+
+ "requires": {
|
| 1309 |
+
+ "agent-base": "^7.1.2",
|
| 1310 |
+
+ "debug": "^4.3.4",
|
| 1311 |
+
+ "http-proxy-agent": "^7.0.1",
|
| 1312 |
+
+ "https-proxy-agent": "^7.0.6",
|
| 1313 |
+
+ "lru-cache": "^7.14.1",
|
| 1314 |
+
+ "pac-proxy-agent": "^7.1.0",
|
| 1315 |
+
+ "proxy-from-env": "^1.1.0",
|
| 1316 |
+
+ "socks-proxy-agent": "^8.0.5"
|
| 1317 |
+
+ }
|
| 1318 |
+
+ },
|
| 1319 |
+
+ "proxy-from-env": {
|
| 1320 |
+
+ "version": "1.1.0",
|
| 1321 |
+
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 1322 |
+
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 1323 |
+
"dev": true
|
| 1324 |
+
},
|
| 1325 |
+
"run-con": {
|
| 1326 |
+
@@ -1339,9 +1854,49 @@
|
| 1327 |
+
"dev": true
|
| 1328 |
+
},
|
| 1329 |
+
"sax": {
|
| 1330 |
+
- "version": "1.2.4",
|
| 1331 |
+
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
| 1332 |
+
- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
|
| 1333 |
+
+ "version": "1.4.1",
|
| 1334 |
+
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
|
| 1335 |
+
+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
|
| 1336 |
+
+ "dev": true
|
| 1337 |
+
+ },
|
| 1338 |
+
+ "smart-buffer": {
|
| 1339 |
+
+ "version": "4.2.0",
|
| 1340 |
+
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
| 1341 |
+
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
|
| 1342 |
+
+ "dev": true
|
| 1343 |
+
+ },
|
| 1344 |
+
+ "socks": {
|
| 1345 |
+
+ "version": "2.8.4",
|
| 1346 |
+
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz",
|
| 1347 |
+
+ "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==",
|
| 1348 |
+
+ "dev": true,
|
| 1349 |
+
+ "requires": {
|
| 1350 |
+
+ "ip-address": "^9.0.5",
|
| 1351 |
+
+ "smart-buffer": "^4.2.0"
|
| 1352 |
+
+ }
|
| 1353 |
+
+ },
|
| 1354 |
+
+ "socks-proxy-agent": {
|
| 1355 |
+
+ "version": "8.0.5",
|
| 1356 |
+
+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz",
|
| 1357 |
+
+ "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==",
|
| 1358 |
+
+ "dev": true,
|
| 1359 |
+
+ "requires": {
|
| 1360 |
+
+ "agent-base": "^7.1.2",
|
| 1361 |
+
+ "debug": "^4.3.4",
|
| 1362 |
+
+ "socks": "^2.8.3"
|
| 1363 |
+
+ }
|
| 1364 |
+
+ },
|
| 1365 |
+
+ "source-map": {
|
| 1366 |
+
+ "version": "0.6.1",
|
| 1367 |
+
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
| 1368 |
+
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
| 1369 |
+
+ "dev": true,
|
| 1370 |
+
+ "optional": true
|
| 1371 |
+
+ },
|
| 1372 |
+
+ "sprintf-js": {
|
| 1373 |
+
+ "version": "1.1.3",
|
| 1374 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
|
| 1375 |
+
+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
|
| 1376 |
+
"dev": true
|
| 1377 |
+
},
|
| 1378 |
+
"strip-json-comments": {
|
| 1379 |
+
@@ -1350,14 +1905,11 @@
|
| 1380 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 1381 |
+
"dev": true
|
| 1382 |
+
},
|
| 1383 |
+
- "supports-color": {
|
| 1384 |
+
- "version": "7.2.0",
|
| 1385 |
+
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 1386 |
+
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 1387 |
+
- "dev": true,
|
| 1388 |
+
- "requires": {
|
| 1389 |
+
- "has-flag": "^4.0.0"
|
| 1390 |
+
- }
|
| 1391 |
+
+ "tslib": {
|
| 1392 |
+
+ "version": "2.8.1",
|
| 1393 |
+
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 1394 |
+
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 1395 |
+
+ "dev": true
|
| 1396 |
+
},
|
| 1397 |
+
"uc.micro": {
|
| 1398 |
+
"version": "1.0.6",
|
| 1399 |
+
@@ -1365,11 +1917,56 @@
|
| 1400 |
+
"integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==",
|
| 1401 |
+
"dev": true
|
| 1402 |
+
},
|
| 1403 |
+
+ "validator": {
|
| 1404 |
+
+ "version": "13.15.0",
|
| 1405 |
+
+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz",
|
| 1406 |
+
+ "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==",
|
| 1407 |
+
+ "dev": true
|
| 1408 |
+
+ },
|
| 1409 |
+
"wrappy": {
|
| 1410 |
+
"version": "1.0.2",
|
| 1411 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 1412 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 1413 |
+
"dev": true
|
| 1414 |
+
+ },
|
| 1415 |
+
+ "xmlbuilder2": {
|
| 1416 |
+
+ "version": "3.1.1",
|
| 1417 |
+
+ "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-3.1.1.tgz",
|
| 1418 |
+
+ "integrity": "sha512-WCSfbfZnQDdLQLiMdGUQpMxxckeQ4oZNMNhLVkcekTu7xhD4tuUDyAPoY8CwXvBYE6LwBHd6QW2WZXlOWr1vCw==",
|
| 1419 |
+
+ "dev": true,
|
| 1420 |
+
+ "requires": {
|
| 1421 |
+
+ "@oozcitak/dom": "1.15.10",
|
| 1422 |
+
+ "@oozcitak/infra": "1.0.8",
|
| 1423 |
+
+ "@oozcitak/util": "8.3.8",
|
| 1424 |
+
+ "js-yaml": "3.14.1"
|
| 1425 |
+
+ },
|
| 1426 |
+
+ "dependencies": {
|
| 1427 |
+
+ "argparse": {
|
| 1428 |
+
+ "version": "1.0.10",
|
| 1429 |
+
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
| 1430 |
+
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
| 1431 |
+
+ "dev": true,
|
| 1432 |
+
+ "requires": {
|
| 1433 |
+
+ "sprintf-js": "~1.0.2"
|
| 1434 |
+
+ }
|
| 1435 |
+
+ },
|
| 1436 |
+
+ "js-yaml": {
|
| 1437 |
+
+ "version": "3.14.1",
|
| 1438 |
+
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
| 1439 |
+
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
| 1440 |
+
+ "dev": true,
|
| 1441 |
+
+ "requires": {
|
| 1442 |
+
+ "argparse": "^1.0.7",
|
| 1443 |
+
+ "esprima": "^4.0.0"
|
| 1444 |
+
+ }
|
| 1445 |
+
+ },
|
| 1446 |
+
+ "sprintf-js": {
|
| 1447 |
+
+ "version": "1.0.3",
|
| 1448 |
+
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
| 1449 |
+
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
|
| 1450 |
+
+ "dev": true
|
| 1451 |
+
+ }
|
| 1452 |
+
+ }
|
| 1453 |
+
}
|
| 1454 |
+
}
|
| 1455 |
+
}
|
| 1456 |
+
diff --git a/package.json b/package.json
|
| 1457 |
+
index a590a3f..cc75953 100644
|
| 1458 |
+
--- a/package.json
|
| 1459 |
+
+++ b/package.json
|
| 1460 |
+
@@ -1,6 +1,6 @@
|
| 1461 |
+
{
|
| 1462 |
+
"devDependencies": {
|
| 1463 |
+
- "markdown-link-check": "3.10.3",
|
| 1464 |
+
+ "markdown-link-check": "3.13.7",
|
| 1465 |
+
"markdownlint-cli": "0.31.0"
|
| 1466 |
+
}
|
| 1467 |
+
}
|