chapterhouse 0.8.0 → 0.8.1
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/dist/copilot/agents.js +1 -1
- package/dist/copilot/system-message.js +1 -0
- package/dist/copilot/tools.js +11 -1
- package/dist/copilot/tools.wiki.test.js +27 -0
- package/dist/copilot/turn-event-log-env.test.js +11 -15
- package/dist/daemon.js +10 -0
- package/dist/memory/eot.js +30 -8
- package/dist/memory/eot.test.js +220 -6
- package/dist/memory/migration.test.js +10 -2
- package/dist/paths.js +31 -11
- package/dist/store/db.js +68 -0
- package/dist/store/db.test.js +47 -1
- package/dist/test/helpers/reset-singletons.js +8 -0
- package/dist/test/helpers/reset-singletons.test.js +37 -0
- package/dist/test/setup-env.js +8 -1
- package/dist/wiki/consolidation.test.js +3 -0
- package/dist/wiki/fs.js +22 -13
- package/dist/wiki/index-manager.js +82 -23
- package/dist/wiki/index-manager.test.js +129 -1
- package/dist/wiki/log-manager.js +8 -5
- package/dist/wiki/log-manager.test.js +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import assert from "node:assert/strict";
|
|
|
2
2
|
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import test from "node:test";
|
|
5
|
+
import { resetSingletons } from "../test/helpers/reset-singletons.js";
|
|
5
6
|
const repoRoot = process.cwd();
|
|
6
7
|
const sandboxRoot = join(repoRoot, ".test-work", `wiki-log-${process.pid}`);
|
|
7
8
|
const wikiDir = join(sandboxRoot, ".chapterhouse", "wiki");
|
|
@@ -18,9 +19,12 @@ function resetSandbox() {
|
|
|
18
19
|
rmSync(sandboxRoot, { recursive: true, force: true });
|
|
19
20
|
}
|
|
20
21
|
test.beforeEach(() => {
|
|
22
|
+
process.env.CHAPTERHOUSE_HOME = sandboxRoot;
|
|
21
23
|
resetSandbox();
|
|
24
|
+
resetSingletons();
|
|
22
25
|
});
|
|
23
26
|
test.after(() => {
|
|
27
|
+
resetSingletons();
|
|
24
28
|
rmSync(sandboxRoot, { recursive: true, force: true });
|
|
25
29
|
});
|
|
26
30
|
test("appendLog writes action entries to pages/_meta/log.md with the resolved agent name", async () => {
|
package/package.json
CHANGED