Bifrost/tests/cultlib-root.mjs
Heimdall a6037ab10b Resolve CultLib from VOIDBOT_CULTLIB_ROOT in tests and two tools; test formerly indexed stores
Four Node test files and agent-transport/governance-threads hardcoded ../CultLib.
They now take $VOIDBOT_CULTLIB_ROOT, else the sibling, like the other tools
(tests share tests/cultlib-root.mjs). The mouth test passes the resolved root on
to the mouth tool as CULTLIB_ROOT, which the tool still reads.

shared-value-stores.test.mjs writes and reopens each store that once declared
indexes: with rows sharing the former index values.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 04:58:30 +00:00

5 lines
342 B
JavaScript

import { resolve } from "node:path";
// The CultLib checkout the tests load at run time, as the tools resolve it:
// $VOIDBOT_CULTLIB_ROOT, else the sibling ../CultLib. Its dist/ is gitignored; build it there first.
export const cultLibRoot = resolve(process.env.VOIDBOT_CULTLIB_ROOT || resolve(import.meta.dirname, "..", "..", "CultLib"));