fucked up list: append-only, robust loading, law 34; hardcopy protocol
This commit is contained in:
@@ -25,7 +25,17 @@ export async function assemble(input: {
|
||||
if (law) blocks.push({ source: "base-prompt", text: law })
|
||||
|
||||
// THE FUCKED UP LIST — the only list in the system. Read every time, by everyone.
|
||||
const theList = await readFile(join(import.meta.dir, "../../../THE-FUCKED-UP-LIST.md"), "utf8").catch(() => "")
|
||||
// Append-only: lines get added, never changed or removed.
|
||||
const listCandidates = [
|
||||
join(import.meta.dir, "../../../THE-FUCKED-UP-LIST.md"),
|
||||
join(process.cwd(), "THE-FUCKED-UP-LIST.md"),
|
||||
"/Users/will/Development/neuron-technologies/runs/v0-neuron/THE-FUCKED-UP-LIST.md",
|
||||
]
|
||||
let theList = ""
|
||||
for (const p of listCandidates) {
|
||||
theList = await readFile(p, "utf8").catch(() => "")
|
||||
if (theList) break
|
||||
}
|
||||
if (theList) blocks.push({ source: "base-prompt", origin: "THE-FUCKED-UP-LIST.md", text: theList })
|
||||
|
||||
const rules = await readFile(join(import.meta.dir, "session", "prompt", "THE-RULES.md"), "utf8").catch(() => "")
|
||||
|
||||
Reference in New Issue
Block a user