neurastream 0.3.25 → 0.3.26
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/queue/lib.ts +2 -2
- package/src/core/rollover.ts +5 -0
package/package.json
CHANGED
package/src/core/queue/lib.ts
CHANGED
|
@@ -1253,8 +1253,8 @@ export function openWaits(p: Plan, plans: Plan[], rank: Map<string, number>): nu
|
|
|
1253
1253
|
// result, or queue-check fails the plan; entries without a date or dated before it are grandfathered.
|
|
1254
1254
|
export const DONE_CLAIM_SINCE = "2026-11-01";
|
|
1255
1255
|
|
|
1256
|
-
// "Done check"
|
|
1257
|
-
const DONE_WORD_SRC = String.raw`(?:done(
|
|
1256
|
+
// "Done check" (also "Done-check", "Done line", "Done command") names the plan section, not a claim.
|
|
1257
|
+
const DONE_WORD_SRC = String.raw`(?:done(?![\s-]+(?:check|line|command)\b)|completed?|nothing left|finished)`;
|
|
1258
1258
|
const NOT_DONE = /\b(?:not|never)\s+(?:done|completed?|finished)\b/i;
|
|
1259
1259
|
// A reviewer's PLAN/CODE REVIEW entry critiques a plan; it claims no phase done.
|
|
1260
1260
|
const REVIEW_ENTRY = /\b(?:PLAN|CODE) REVIEW:/;
|
package/src/core/rollover.ts
CHANGED
|
@@ -99,6 +99,10 @@ export function withUnanswered(resume: string, messages: readonly OwnerMessage[]
|
|
|
99
99
|
return un.length === 0 ? resume : `${unansweredPrompt(un)}\n\n${resume}`;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
/** Fixed line above every handoff note: the note is old memory, the system prompt and live banner are current. */
|
|
103
|
+
export const HANDOFF_PRECEDENCE =
|
|
104
|
+
"Where this note contradicts the system prompt or the live per-prompt banner (tier, push rules, limits), the system prompt wins.";
|
|
105
|
+
|
|
102
106
|
/**
|
|
103
107
|
* The first user message of the new session: header, Main's note, generated state, owner message.
|
|
104
108
|
* Every `(from: \`cmd\`)` in the note is listed under "## Numbers to re-run" right after it — re-run
|
|
@@ -112,6 +116,7 @@ export function buildHandoff(p: HandoffInput): string {
|
|
|
112
116
|
`${HANDOFF_PREFIX} ${p.previousSessionFile}. Its full history stays there; this session continues from the handoff below.`,
|
|
113
117
|
"",
|
|
114
118
|
"## Main's handoff note (verbatim)",
|
|
119
|
+
HANDOFF_PRECEDENCE,
|
|
115
120
|
note,
|
|
116
121
|
...(numbers.length > 0
|
|
117
122
|
? ["", "## Numbers to re-run", "re-run these before repeating any number", ...numbers.map((c) => `- \`${c}\``)]
|