Add Learning, move tool folders under .plan2code, and the Loop, Snake and console changes

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-13 23:29:12 -08:00
1 parent de8a05b958
commit bb5bd5986d
87 files changed
+9163 -256

No files matched your search

+5 -1
View File
@@ -469,6 +469,10 @@ test("cleanup finds old sessions and strays in both folders, and keeps every pro
// UI Prototype drafts are swept by age by the skill's own script, never offered here.
backdate(put(path.join(plan2code, "prototypes", "my-app-0123456789ab", "invoices", "invoices-round-1.html"), "x"));
backdate(path.join(plan2code, "prototypes"));
// Learning's waiting items and pause are swept by the core's own 30-day rule, never offered here.
backdate(put(path.join(plan2code, "learning", "my-app-0123456789ab", "pause.json"), "{}"));
backdate(path.join(plan2code, "learning", "my-app-0123456789ab"));
backdate(path.join(plan2code, "learning"));
// In use right now: a held lock and a temp between its write and rename.
const live = [put(path.join(consoleDir, "workspaces.json.lock"), ""), put(path.join(plan2code, "models.json.123.tmp"))];
kept.push(...live);
@@ -485,7 +489,7 @@ test("cleanup finds old sessions and strays in both folders, and keeps every pro
"session:20250801-101010-aaaaaa",
]);
assert.equal(items.some((i) => i.id === "root:handoffs"), false, "the handoffs folder is never a stray");
for (const id of ["root:app", "root:app.json", "root:agents.json", "root:prototypes"]) assert.equal(items.some((i) => i.id === id), false, `${id} is never a stray`);
for (const id of ["root:app", "root:app.json", "root:agents.json", "root:prototypes", "root:learning"]) assert.equal(items.some((i) => i.id === id), false, `${id} is never a stray`);
assert.equal(STRAY_GRACE_MS, 60 * 60 * 1000);
assert.equal(items.find((i) => i.id === "console:p1.json").bytes, 5);
assert.equal(items.find((i) => i.id === "root:console-dev").kind, "folder");