@juicesharp/rpiv-pi 2.14.1 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -225,6 +225,9 @@ export const planAuthoredRisks = (state: RunView, channel: string): Map<string,
|
|
|
225
225
|
return out;
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
+
/** `scripts/Makefile:18` — the `/` keeps `HTTP:80` out. Evidence-only: the shared regex also feeds the citation floor. */
|
|
229
|
+
const EXTENSIONLESS_FILE_LINE_RE = /(?<!\w)(?:\.?\/|\w[\w.-]*\/)+\w[\w.-]*:\d+/;
|
|
230
|
+
|
|
228
231
|
/**
|
|
229
232
|
* A mechanics-pass ruling's evidence duty: when the plan AUTHORED a
|
|
230
233
|
* `claim_type: "mechanics"` risk for the ruling's id, a `pass` ruling MUST
|
|
@@ -243,7 +246,8 @@ export const evidenceCitesFileLine = (r: RiskRuling, authored?: RiskRecord): boo
|
|
|
243
246
|
// A deferred claim may concern code the plan has not written yet, so its
|
|
244
247
|
// procedure + owner are the duty instead.
|
|
245
248
|
if (authored?.claim_type !== "mechanics" || authored.disposition === "verify-at-implement") return true;
|
|
246
|
-
|
|
249
|
+
if (typeof r.evidence !== "string") return false;
|
|
250
|
+
return r.evidence.match(FILE_LINE_CITATION_RE) !== null || EXTENSIONLESS_FILE_LINE_RE.test(r.evidence);
|
|
247
251
|
};
|
|
248
252
|
|
|
249
253
|
/**
|
|
@@ -49,7 +49,7 @@ const EXTENSIONLESS_FILENAME_RE =
|
|
|
49
49
|
* with a `:12-30` range appended — carries a line range the bare form rejects).
|
|
50
50
|
* Extensionless recognition is allowlist-only (never "any `/`-bearing token"):
|
|
51
51
|
* prose like `and/or` must not read as a declared write. The extension is
|
|
52
|
-
* bounded to 1–5 chars starting with a letter
|
|
52
|
+
* bounded to 1–5 chars starting with a letter, tighter than FILE_LINE_CITATION_RE,
|
|
53
53
|
* so a dotted IDENTIFIER (`deps.finalize` — an observed false coverage
|
|
54
54
|
* finding) never reads as a file. */
|
|
55
55
|
const isPathLike = (s: string): boolean => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-pi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "A skill-based development workflow for Pi Agent. 30 contract-carrying skills (discover → research → design → plan → implement → validate → code-review → commit, and more), the 15 named subagents they dispatch, and four built-in /wf workflows that chain them end to end in detached parallel runs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@juicesharp/rpiv-config": "^2.
|
|
55
|
+
"@juicesharp/rpiv-config": "^2.15.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@earendil-works/pi-ai": "*",
|