neurastream 0.3.16 → 0.3.17
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 +5 -4
package/package.json
CHANGED
package/src/core/guards.ts
CHANGED
|
@@ -2292,12 +2292,13 @@ function codeReviewProblem(file: string, after: string, ids: string[]): string |
|
|
|
2292
2292
|
export function plannerBody(text: string): string {
|
|
2293
2293
|
const body = q.outsideProgress(text).split("\n");
|
|
2294
2294
|
let section = "";
|
|
2295
|
+
// Dropped lines are removed, not blanked: adding or deleting a Main-only line must not change the body.
|
|
2295
2296
|
return body
|
|
2296
|
-
.
|
|
2297
|
+
.flatMap((l) => {
|
|
2297
2298
|
if (l.startsWith("## ")) section = l;
|
|
2298
|
-
if (/^## +Done check\b/i.test(section)) return
|
|
2299
|
-
if (/^## +Phases\b/i.test(section) && /^- \[[ x]\]/.test(l))
|
|
2300
|
-
return
|
|
2299
|
+
if (/^## +Done check\b/i.test(section) || MAIN_ONLY_LINE.test(l)) return [];
|
|
2300
|
+
if (/^## +Phases\b/i.test(section) && /^- \[[ x]\]/.test(l)) return [l.replace(/`verify:[^`]*`/g, "`verify:`")];
|
|
2301
|
+
return [l];
|
|
2301
2302
|
})
|
|
2302
2303
|
.join("\n");
|
|
2303
2304
|
}
|