refactor: restructure into herdr/herdr-composer, rename ovis-composer -> herdr-composer, migrate stored data

Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
FactorandOvis Fast committed 2026-11-19 12:52:42 +01:00
1 parent 6beecaac83
commit 74c1dfaeb8
27 files changed
+253 -97

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
import test from "node:test";
import assert from "node:assert/strict";
import { decide, gateAfter, onRestart, shouldDrain, shouldStartCountdown, drain } from "../mod/ovis-composer/delivery.js";
import { decide, gateAfter, onRestart, shouldDrain, shouldStartCountdown, drain } from "../herdr/herdr-composer/mods/herdr-composer/delivery.js";
test("decide idle/done -> send", () => {
assert.equal(decide("idle").kind, "send");
@@ -56,7 +56,7 @@ test("onRestart: countdown -> held without left, sending -> uncertain", () => {
});
test("drain sends an entry whose countdown ran out", async () => {
const { createState, reduce } = await import("../mod/ovis-composer/state.js");
const { createState, reduce } = await import("../herdr/herdr-composer/mods/herdr-composer/state.js");
let s = reduce(createState(), { type: "queue", agent: "t2", item: { id: "1", text: "a", createdAt: 1 } });
s = reduce(s, { type: "countdown_start", agent: "t2", id: "1" });
const calls = [];
@@ -106,7 +106,7 @@ test("shouldStartCountdown tolerates a non-array queue", () => {
assert.equal(shouldStartCountdown(sc({ queue: null })), false);
});
import { queueBlocksDirectSend } from "../mod/ovis-composer/delivery.js";
import { queueBlocksDirectSend } from "../herdr/herdr-composer/mods/herdr-composer/delivery.js";
test("queueBlocksDirectSend: a message that waits (queued or counting down) goes first", () => {
assert.equal(queueBlocksDirectSend([{ state: "queued" }]), true);