neurastream 0.3.17 → 0.3.18
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.
- package/package.json +1 -1
- package/src/core/guards.ts +3 -3
package/package.json
CHANGED
package/src/core/guards.ts
CHANGED
|
@@ -221,10 +221,10 @@ function writePlanReviews(reviews: Record<string, PlanReview>, code: Record<stri
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/** The progress entry that records a review — PLAN for the spawn gate, CODE for the phase tick gate (P6); only a subagent's edit can carry one. The verdict is the match, never a substring. The time may carry a zone word (
|
|
225
|
-
const REVIEW_LINE = /^- (?:\d{4}-\d{2}-\d{2}
|
|
224
|
+
/** The progress entry that records a review — PLAN for the spawn gate, CODE for the phase tick gate (P6); only a subagent's edit can carry one. The verdict is the match, never a substring. The time may carry a `~` and a zone word (`~23:35 CET`); the author segment may carry a note (`Rev (re-verify): `) because the recorded name comes from the spawn, never from the line. */
|
|
225
|
+
const REVIEW_LINE = /^- (?:\d{4}-\d{2}-\d{2} ~?\d{2}:\d{2}(?: [A-Z]{2,5})? [^:\n]+?: )?(PLAN|CODE) REVIEW: (PASS|FAIL)\b/;
|
|
226
226
|
/** Any entry that opens like a review line; one that REVIEW_LINE does not match is restored, not recorded. */
|
|
227
|
-
const REVIEW_LOOKALIKE = /^- (?:\d{4}-\d{2}-\d{2}
|
|
227
|
+
const REVIEW_LOOKALIKE = /^- (?:\d{4}-\d{2}-\d{2} ~?\d{2}:\d{2}(?: [A-Z]{2,5})? [^:\n]+?: )?(PLAN|CODE) REVIEW\b/;
|
|
228
228
|
|
|
229
229
|
/** Who launches an agent: Main's launch may use a plan review's exemption, a sub's never may (plan 20261028_1600 P4i). */
|
|
230
230
|
export type Spawner = "main" | "sub";
|