recallnest 2.2.0 → 2.3.0
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/.env +4 -0
- package/CLAUDE.md +1 -1
- package/README.md +30 -5
- package/README_CN.md +30 -5
- package/config.json +55 -0
- package/connectors/examples/email-adapter.ts +73 -0
- package/connectors/examples/logs-adapter.ts +103 -0
- package/connectors/examples/rss-adapter.ts +95 -0
- package/logs/daily-recall.error.log +0 -0
- package/logs/daily-recall.log +60 -0
- package/logs/ingest-2026-04-11.log +110 -0
- package/logs/ingest-2026-04-12.log +90 -0
- package/logs/ingest-2026-04-13.log +87 -0
- package/logs/launchagent-stderr.log +0 -0
- package/logs/launchagent-stdout.log +0 -0
- package/package.json +1 -1
- package/src/cli.ts +30 -0
- package/src/connector-types.ts +57 -0
- package/src/conversation-importer.ts +25 -1
- package/src/data-checkup.ts +31 -1
- package/src/doctor.ts +29 -0
- package/src/ingest.ts +203 -0
- package/src/mcp-server.ts +2 -2
- package/src/obsidian-connector.ts +282 -0
- package/src/session-schema.ts +2 -2
- package/src/source-heartbeat.ts +108 -0
- package/.claude-plugin/CLAUDE.md +0 -29
- package/.claude-plugin/marketplace.json +0 -18
- package/.dockerignore +0 -11
- package/.github/workflows/ci.yml +0 -28
- package/.mcp.json +0 -9
- package/CHANGELOG.md +0 -51
- package/DEMO.md +0 -94
- package/Dockerfile +0 -20
- package/EVAL.md +0 -89
- package/FAILURES.md +0 -75
- package/OPERATIONS.md +0 -59
- package/ROADMAP.md +0 -245
- package/SKILL.md +0 -250
- package/assets/dashboard.png +0 -0
- package/assets/knowledge-graph.png +0 -0
- package/assets/recallnest-workbench.png +0 -0
- package/assets/screenshots/ui-full.png +0 -0
- package/assets/screenshots/ui-overview.png +0 -0
- package/assets/screenshots/ui-search.png +0 -0
- package/assets/ui/app.js +0 -1031
- package/assets/ui/index.html +0 -224
- package/assets/ui/styles.css +0 -781
- package/assets/wechat-qr.jpg +0 -0
- package/bun.lock +0 -337
- package/daily-reflections/2026-03-05.md +0 -15
- package/daily-reflections/2026-03-06.md +0 -15
- package/daily-reflections/2026-03-07.md +0 -7
- package/daily-reflections/2026-03-08.md +0 -34
- package/daily-reflections/2026-03-09.md +0 -35
- package/daily-reflections/2026-03-10.md +0 -36
- package/daily-reflections/2026-03-11.md +0 -35
- package/daily-reflections/2026-03-12.md +0 -36
- package/daily-reflections/2026-03-13.md +0 -35
- package/daily-reflections/2026-03-14.md +0 -35
- package/daily-reflections/2026-03-15.md +0 -35
- package/daily-reflections/2026-03-16.md +0 -41
- package/daily-reflections/2026-03-17.md +0 -10
- package/daily-reflections/2026-03-18.md +0 -10
- package/daily-reflections/2026-03-19.md +0 -10
- package/daily-reflections/2026-03-20.md +0 -10
- package/daily-reflections/2026-03-21.md +0 -10
- package/daily-reflections/2026-03-22.md +0 -10
- package/daily-reflections/2026-03-23.md +0 -10
- package/daily-reflections/2026-03-24.md +0 -10
- package/daily-reflections/2026-03-25.md +0 -32
- package/daily-reflections/2026-03-26.md +0 -37
- package/daily-reflections/2026-03-27.md +0 -35
- package/daily-reflections/2026-03-28.md +0 -35
- package/daily-reflections/2026-03-29.md +0 -35
- package/daily-reflections/2026-03-30.md +0 -36
- package/daily-reflections/2026-03-31.md +0 -35
- package/daily-reflections/2026-04-01.md +0 -35
- package/daily-reflections/2026-04-02.md +0 -35
- package/daily-reflections/2026-04-03.md +0 -37
- package/daily-reflections/2026-04-04.md +0 -37
- package/daily-reflections/2026-04-05.md +0 -35
- package/daily-reflections/2026-04-06.md +0 -36
- package/daily-reflections/2026-04-07.md +0 -35
- package/daily-reflections/2026-04-08.md +0 -35
- package/daily-reflections/2026-04-12.md +0 -35
- package/data/alias-map.example.json +0 -22
- package/docs/api-reference.md +0 -1291
- package/docs/architecture.md +0 -168
- package/docs/memory-boundary-contract.md +0 -226
- package/docs/memory-categories.md +0 -119
- package/docs/pipeline-audit-ultramemory.md +0 -177
- package/docs/plans/2026-03-08-query-expansion.md +0 -270
- package/docs/plans/2026-03-16-continuity-layer.md +0 -196
- package/docs/plans/2026-04-01-recall-boost.md +0 -100
- package/docs/plans/mcp-tiering-plan.md +0 -126
- package/docs/research/recall-quality-audit-2026-03-22.md +0 -153
- package/docs/self-evolution.md +0 -198
- package/docs/superpowers/plans/2026-03-19-ingest-pipeline-upgrade.md +0 -782
- package/docs/superpowers/plans/2026-04-11-constructive-retrieval-emotion.md +0 -1195
- package/docs/superpowers/specs/2026-03-19-ingest-pipeline-upgrade-design.md +0 -77
- package/docs/superpowers/specs/2026-03-23-pull-claude-desktop-design.md +0 -95
- package/docs/superpowers/specs/2026-04-11-constructive-retrieval-emotion-design.md +0 -398
- package/eval/continuity/results-2026-03-16.md +0 -117
- package/eval/continuity/results-2026-03-19.md +0 -453
- package/eval/continuity/runbook.md +0 -110
- package/eval/continuity/seed-cases.md +0 -54
- package/eval/reports/2026-03-06-abstract-query-baseline.md +0 -96
- package/eval/reports/2026-03-06-aws-ssh-baseline.md +0 -82
- package/eval/reports/2026-03-06-baseline.md +0 -82
- package/eval/reports/query-expansion.md +0 -138
- package/glama.json +0 -6
- package/lm +0 -19
- package/plan-philosophy-upgrades.md +0 -363
- package/plan-product-upgrades.md +0 -155
- package/plan-v1.2-distributable.md +0 -105
- package/plan.md +0 -140
- package/research-memory-evolution.md +0 -440
- package/research-rl-agent-memory.md +0 -330
- package/scripts/archive-distilled-junk.ts +0 -116
- package/scripts/backfill-anchors.ts +0 -130
- package/scripts/backfill-l0l1l2.ts +0 -98
- package/scripts/blind-scan.ts +0 -588
- package/scripts/cleanup-step1-exact-dups.ts +0 -117
- package/scripts/cleanup-step2-template-dups.ts +0 -113
- package/scripts/cleanup-step3-stale-content.ts +0 -149
- package/scripts/cleanup-step4-orphan-scopes.ts +0 -131
- package/scripts/delete-distilled-junk.ts +0 -88
- package/scripts/diagnose-vector-search.ts +0 -132
- package/scripts/distill-facts.ts +0 -305
- package/scripts/health-check.ts +0 -343
- package/scripts/incremental-ingest.sh +0 -71
- package/scripts/migrate-language.ts +0 -75
- package/scripts/mlp-health-check.ts +0 -382
- package/scripts/pull-claude-desktop.ts +0 -515
- package/scripts/re-ingest-cc.sh +0 -66
- package/scripts/rebalance-memory-health.ts +0 -181
- package/scripts/run-desktop-ingest.sh +0 -11
- package/scripts/start-server.sh +0 -12
- package/scripts/verify-emotion-decay.ts +0 -148
- package/scripts/viz-dashboard.html +0 -423
- package/scripts/viz-export.ts +0 -703
- package/src/__tests__/access-tracker-novelty.test.ts +0 -228
- package/src/__tests__/activity-counter.test.ts +0 -96
- package/src/__tests__/admission-control.test.ts +0 -206
- package/src/__tests__/anchor-generator.test.ts +0 -67
- package/src/__tests__/auto-consolidation.test.ts +0 -168
- package/src/__tests__/auto-recall.test.ts +0 -131
- package/src/__tests__/babel-integration.test.ts +0 -139
- package/src/__tests__/batch-dedup.test.ts +0 -65
- package/src/__tests__/capture-engine.test.ts +0 -1144
- package/src/__tests__/capture-heuristic.test.ts +0 -171
- package/src/__tests__/cascade-forget.test.ts +0 -210
- package/src/__tests__/category-min-scores.test.ts +0 -33
- package/src/__tests__/cc8-cc1-essential-context.test.ts +0 -298
- package/src/__tests__/circuit-breaker.test.ts +0 -99
- package/src/__tests__/cluster-consolidation.test.ts +0 -712
- package/src/__tests__/confidence-metadata.test.ts +0 -125
- package/src/__tests__/confidence-tracker.test.ts +0 -249
- package/src/__tests__/conflict-advisor.test.ts +0 -206
- package/src/__tests__/conflict-escalation.test.ts +0 -149
- package/src/__tests__/conflict-lifecycle.test.ts +0 -83
- package/src/__tests__/conflict-output.test.ts +0 -85
- package/src/__tests__/conflict-store.test.ts +0 -374
- package/src/__tests__/consolidation-engine.test.ts +0 -181
- package/src/__tests__/constructive-retrieval.test.ts +0 -509
- package/src/__tests__/context-collapse-renderer.test.ts +0 -214
- package/src/__tests__/context-composer-pins.test.ts +0 -64
- package/src/__tests__/context-composer-task-selection.test.ts +0 -24
- package/src/__tests__/context-reconstructor.test.ts +0 -65
- package/src/__tests__/context-renderer.test.ts +0 -91
- package/src/__tests__/continuity-eval.test.ts +0 -275
- package/src/__tests__/continuity-schema.test.ts +0 -97
- package/src/__tests__/conversation-importer.test.ts +0 -692
- package/src/__tests__/core-recall-eval.test.ts +0 -235
- package/src/__tests__/core-summary.test.ts +0 -109
- package/src/__tests__/data-checkup.test.ts +0 -225
- package/src/__tests__/decay-exemption.test.ts +0 -84
- package/src/__tests__/dedup-actions.test.ts +0 -58
- package/src/__tests__/dedup-guard.test.ts +0 -39
- package/src/__tests__/deterministic-id.test.ts +0 -39
- package/src/__tests__/distill-lock.test.ts +0 -176
- package/src/__tests__/doctor.test.ts +0 -303
- package/src/__tests__/dream-pipeline.test.ts +0 -232
- package/src/__tests__/drill-down.test.ts +0 -108
- package/src/__tests__/embedder.test.ts +0 -122
- package/src/__tests__/emotion-decay.test.ts +0 -46
- package/src/__tests__/emotion-detector.test.ts +0 -56
- package/src/__tests__/emotion-phase1-integration.test.ts +0 -153
- package/src/__tests__/emotion-retrieval.test.ts +0 -56
- package/src/__tests__/entity-resolver.test.ts +0 -58
- package/src/__tests__/ethics-layer.test.ts +0 -476
- package/src/__tests__/event-segmenter.test.ts +0 -153
- package/src/__tests__/feature-flags-integration.test.ts +0 -54
- package/src/__tests__/frequency-tracker.test.ts +0 -113
- package/src/__tests__/graph-export.test.ts +0 -489
- package/src/__tests__/hotness-blend.test.ts +0 -76
- package/src/__tests__/ingest.test.ts +0 -360
- package/src/__tests__/interference-detector.test.ts +0 -203
- package/src/__tests__/kg-extractor.test.ts +0 -184
- package/src/__tests__/kg-store.test.ts +0 -198
- package/src/__tests__/llm-consolidation.test.ts +0 -226
- package/src/__tests__/mcp-efficiency.test.ts +0 -288
- package/src/__tests__/memory-boundaries.test.ts +0 -237
- package/src/__tests__/memory-evolution-b2-b3-e1.test.ts +0 -243
- package/src/__tests__/memory-evolution.test.ts +0 -271
- package/src/__tests__/memory-health-rebalance.test.ts +0 -144
- package/src/__tests__/memory-lint.test.ts +0 -271
- package/src/__tests__/memory-output.test.ts +0 -215
- package/src/__tests__/multi-vector.test.ts +0 -242
- package/src/__tests__/narrative-architecture.test.ts +0 -456
- package/src/__tests__/pending-review.test.ts +0 -77
- package/src/__tests__/post-retrieval-filter.test.ts +0 -178
- package/src/__tests__/ppr-traversal.test.ts +0 -256
- package/src/__tests__/prediction-engine.test.ts +0 -349
- package/src/__tests__/predictive-prospective-memory.test.ts +0 -416
- package/src/__tests__/preference-guard-smoke.test.ts +0 -211
- package/src/__tests__/preference-matcher.test.ts +0 -230
- package/src/__tests__/preference-slots.test.ts +0 -205
- package/src/__tests__/prospective-memory.test.ts +0 -283
- package/src/__tests__/query-entity-detector.test.ts +0 -171
- package/src/__tests__/query-expander-alias.test.ts +0 -89
- package/src/__tests__/query-expander.test.ts +0 -34
- package/src/__tests__/recall-governor.test.ts +0 -227
- package/src/__tests__/recall-mode.test.ts +0 -64
- package/src/__tests__/result-synthesizer.test.ts +0 -198
- package/src/__tests__/resume-context.test.ts +0 -4898
- package/src/__tests__/retrieval-trace.test.ts +0 -213
- package/src/__tests__/retriever-boundary-weight.test.ts +0 -136
- package/src/__tests__/retroactive-boost.test.ts +0 -223
- package/src/__tests__/salience-scoring.test.ts +0 -106
- package/src/__tests__/scope-inventory.test.ts +0 -200
- package/src/__tests__/scope-policy.test.ts +0 -69
- package/src/__tests__/session-checkpoint.test.ts +0 -259
- package/src/__tests__/session-distiller.test.ts +0 -611
- package/src/__tests__/session-gc.test.ts +0 -215
- package/src/__tests__/skill-engine.test.ts +0 -546
- package/src/__tests__/skill-promotion.test.ts +0 -349
- package/src/__tests__/store-scope-audit.test.ts +0 -81
- package/src/__tests__/supersede-chain.test.ts +0 -154
- package/src/__tests__/temporal-parser.test.ts +0 -241
- package/src/__tests__/temporal-validity.test.ts +0 -160
- package/src/__tests__/term-registry.test.ts +0 -121
- package/src/__tests__/tool-output-compressor.test.ts +0 -133
- package/src/__tests__/topic-tag.test.ts +0 -113
- package/src/__tests__/trusted-memory.test.ts +0 -828
- package/src/__tests__/version-manager.test.ts +0 -213
- package/src/__tests__/workflow-observation.test.ts +0 -400
- package/src/__tests__/write-verifier.test.ts +0 -122
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from "bun:test";
|
|
2
|
-
import type { DedupAction, DedupCheckResult } from "../ingest.js";
|
|
3
|
-
|
|
4
|
-
describe("DedupAction types", () => {
|
|
5
|
-
it("DedupCheckResult supports secondaryDeletes", () => {
|
|
6
|
-
const result: DedupCheckResult = {
|
|
7
|
-
action: "store",
|
|
8
|
-
reason: "unique",
|
|
9
|
-
secondaryDeletes: [
|
|
10
|
-
{ id: "abc12345", action: "delete", reason: "outdated by candidate" },
|
|
11
|
-
],
|
|
12
|
-
};
|
|
13
|
-
expect(result.secondaryDeletes).toHaveLength(1);
|
|
14
|
-
expect(result.secondaryDeletes![0].action).toBe("delete");
|
|
15
|
-
expect(result.secondaryDeletes![0].id).toBe("abc12345");
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it("DedupCheckResult without secondaryDeletes is backward-compatible", () => {
|
|
19
|
-
const result: DedupCheckResult = {
|
|
20
|
-
action: "skip",
|
|
21
|
-
reason: "hard",
|
|
22
|
-
existingText: "existing memory text",
|
|
23
|
-
};
|
|
24
|
-
expect(result.secondaryDeletes).toBeUndefined();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("DedupAction only supports delete", () => {
|
|
28
|
-
const action: DedupAction = {
|
|
29
|
-
id: "test-id",
|
|
30
|
-
action: "delete",
|
|
31
|
-
reason: "superseded by newer info",
|
|
32
|
-
};
|
|
33
|
-
expect(action.action).toBe("delete");
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
it("multiple secondary deletes are valid", () => {
|
|
37
|
-
const result: DedupCheckResult = {
|
|
38
|
-
action: "store",
|
|
39
|
-
reason: "llm-merge",
|
|
40
|
-
secondaryDeletes: [
|
|
41
|
-
{ id: "id1", action: "delete", reason: "outdated" },
|
|
42
|
-
{ id: "id2", action: "delete", reason: "duplicate of id1" },
|
|
43
|
-
],
|
|
44
|
-
};
|
|
45
|
-
expect(result.secondaryDeletes).toHaveLength(2);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it("empty secondaryDeletes array treated as no actions", () => {
|
|
49
|
-
const result: DedupCheckResult = {
|
|
50
|
-
action: "store",
|
|
51
|
-
reason: "unique",
|
|
52
|
-
secondaryDeletes: [],
|
|
53
|
-
};
|
|
54
|
-
expect(result.secondaryDeletes).toHaveLength(0);
|
|
55
|
-
// In practice, we check .length before executing
|
|
56
|
-
expect((result.secondaryDeletes?.length ?? 0) > 0).toBe(false);
|
|
57
|
-
});
|
|
58
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from "bun:test";
|
|
2
|
-
import { isTemporalOrActionContent } from "../ingest.js";
|
|
3
|
-
|
|
4
|
-
describe("Dedup guard: isTemporalOrActionContent", () => {
|
|
5
|
-
describe("date-stamped events (must NOT be deduped)", () => {
|
|
6
|
-
it("ISO date", () => expect(isTemporalOrActionContent("2026-03-25 部署了新版本")).toBe(true));
|
|
7
|
-
it("今天", () => expect(isTemporalOrActionContent("今天跑了 benchmark")).toBe(true));
|
|
8
|
-
it("昨天", () => expect(isTemporalOrActionContent("昨天讨论了架构")).toBe(true));
|
|
9
|
-
it("上次", () => expect(isTemporalOrActionContent("上次的方案不行")).toBe(true));
|
|
10
|
-
it("刚才", () => expect(isTemporalOrActionContent("刚才改了配置")).toBe(true));
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
describe("file operations (must NOT be deduped)", () => {
|
|
14
|
-
it("file path", () => expect(isTemporalOrActionContent("修改了 /Users/xxx/src/foo.ts")).toBe(true));
|
|
15
|
-
it("home path", () => expect(isTemporalOrActionContent("保存到 ~/recallnest/data/")).toBe(true));
|
|
16
|
-
it("md file", () => expect(isTemporalOrActionContent("更新了 README.md")).toBe(true));
|
|
17
|
-
it("mv command", () => expect(isTemporalOrActionContent("mv old.json new.json")).toBe(true));
|
|
18
|
-
it("归档", () => expect(isTemporalOrActionContent("把旧文件归档了")).toBe(true));
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
describe("memory instructions (must NOT be deduped)", () => {
|
|
22
|
-
it("记住", () => expect(isTemporalOrActionContent("记住不要用 rm")).toBe(true));
|
|
23
|
-
it("remember", () => expect(isTemporalOrActionContent("remember to check tests")).toBe(true));
|
|
24
|
-
it("别忘了", () => expect(isTemporalOrActionContent("别忘了跑测试")).toBe(true));
|
|
25
|
-
it("务必", () => expect(isTemporalOrActionContent("务必先备份")).toBe(true));
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
describe("feedback/corrections (must NOT be deduped)", () => {
|
|
29
|
-
it("不要再", () => expect(isTemporalOrActionContent("不要再用这个方法")).toBe(true));
|
|
30
|
-
it("stop doing", () => expect(isTemporalOrActionContent("stop doing that")).toBe(true));
|
|
31
|
-
it("don't", () => expect(isTemporalOrActionContent("don't mock the database")).toBe(true));
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
describe("generic content (CAN be deduped normally)", () => {
|
|
35
|
-
it("plain description", () => expect(isTemporalOrActionContent("RecallNest 是一个记忆服务")).toBe(false));
|
|
36
|
-
it("technical fact", () => expect(isTemporalOrActionContent("LanceDB 支持向量搜索")).toBe(false));
|
|
37
|
-
it("preference without instruction marker", () => expect(isTemporalOrActionContent("我喜欢用 dark mode")).toBe(false));
|
|
38
|
-
});
|
|
39
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "bun:test";
|
|
2
|
-
|
|
3
|
-
import { deterministicId } from "../store.js";
|
|
4
|
-
|
|
5
|
-
describe("deterministicId", () => {
|
|
6
|
-
it("same scope+text always produce the same ID", () => {
|
|
7
|
-
const id1 = deterministicId("project:test", "I prefer TypeScript");
|
|
8
|
-
const id2 = deterministicId("project:test", "I prefer TypeScript");
|
|
9
|
-
expect(id1).toBe(id2);
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it("different text produces different ID", () => {
|
|
13
|
-
const id1 = deterministicId("project:test", "I prefer TypeScript");
|
|
14
|
-
const id2 = deterministicId("project:test", "I prefer JavaScript");
|
|
15
|
-
expect(id1).not.toBe(id2);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it("different scope produces different ID", () => {
|
|
19
|
-
const id1 = deterministicId("project:alpha", "same text");
|
|
20
|
-
const id2 = deterministicId("project:beta", "same text");
|
|
21
|
-
expect(id1).not.toBe(id2);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it("returns UUID-shaped string (8-4-4-4-12)", () => {
|
|
25
|
-
const id = deterministicId("project:test", "hello world");
|
|
26
|
-
expect(id).toMatch(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it("handles empty scope gracefully", () => {
|
|
30
|
-
const id = deterministicId("", "some text");
|
|
31
|
-
expect(id).toMatch(/^[0-9a-f]{8}-/);
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
it("handles CJK text", () => {
|
|
35
|
-
const id1 = deterministicId("project:test", "我喜欢用Bun");
|
|
36
|
-
const id2 = deterministicId("project:test", "我喜欢用Bun");
|
|
37
|
-
expect(id1).toBe(id2);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, beforeEach, afterEach } from "bun:test";
|
|
2
|
-
import { existsSync, writeFileSync, mkdirSync, statSync, utimesSync } from "node:fs";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
import { tmpdir } from "node:os";
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
acquireLock,
|
|
8
|
-
releaseLock,
|
|
9
|
-
rollbackLock,
|
|
10
|
-
shouldDistill,
|
|
11
|
-
getLastDistillTime,
|
|
12
|
-
type DistillLockConfig,
|
|
13
|
-
} from "../distill-lock.js";
|
|
14
|
-
|
|
15
|
-
// ---------------------------------------------------------------------------
|
|
16
|
-
// Helpers
|
|
17
|
-
// ---------------------------------------------------------------------------
|
|
18
|
-
|
|
19
|
-
let tempDir: string;
|
|
20
|
-
let lockPath: string;
|
|
21
|
-
|
|
22
|
-
function cfg(overrides?: Partial<DistillLockConfig>): Partial<DistillLockConfig> {
|
|
23
|
-
return { lockPath, ...overrides };
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
beforeEach(() => {
|
|
27
|
-
tempDir = join(tmpdir(), `distill-lock-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
28
|
-
mkdirSync(tempDir, { recursive: true });
|
|
29
|
-
lockPath = join(tempDir, "distill.lock");
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
afterEach(() => {
|
|
33
|
-
// Clean up lock file if it exists
|
|
34
|
-
if (existsSync(lockPath)) {
|
|
35
|
-
try {
|
|
36
|
-
const { unlinkSync } = require("node:fs");
|
|
37
|
-
unlinkSync(lockPath);
|
|
38
|
-
} catch { /* ignore */ }
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// ---------------------------------------------------------------------------
|
|
43
|
-
// acquireLock
|
|
44
|
-
// ---------------------------------------------------------------------------
|
|
45
|
-
|
|
46
|
-
describe("acquireLock", () => {
|
|
47
|
-
it("creates lock file and returns true when no lock exists", () => {
|
|
48
|
-
const result = acquireLock(cfg());
|
|
49
|
-
expect(result).toBe(true);
|
|
50
|
-
expect(existsSync(lockPath)).toBe(true);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it("writes current PID into lock file", () => {
|
|
54
|
-
acquireLock(cfg());
|
|
55
|
-
const { readFileSync } = require("node:fs");
|
|
56
|
-
const content = readFileSync(lockPath, "utf-8").trim();
|
|
57
|
-
expect(content).toBe(String(process.pid));
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it("returns false when lock held by alive PID and not expired", () => {
|
|
61
|
-
// Write current process PID (which is alive)
|
|
62
|
-
writeFileSync(lockPath, String(process.pid), "utf-8");
|
|
63
|
-
|
|
64
|
-
const result = acquireLock(cfg());
|
|
65
|
-
expect(result).toBe(false);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("overwrites lock when PID is dead", () => {
|
|
69
|
-
// PID 999999 is almost certainly not running
|
|
70
|
-
writeFileSync(lockPath, "999999", "utf-8");
|
|
71
|
-
|
|
72
|
-
const result = acquireLock(cfg());
|
|
73
|
-
expect(result).toBe(true);
|
|
74
|
-
|
|
75
|
-
const { readFileSync } = require("node:fs");
|
|
76
|
-
const content = readFileSync(lockPath, "utf-8").trim();
|
|
77
|
-
expect(content).toBe(String(process.pid));
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
it("overwrites lock when mtime is expired even if PID alive", () => {
|
|
81
|
-
writeFileSync(lockPath, String(process.pid), "utf-8");
|
|
82
|
-
// Set mtime to 2 hours ago
|
|
83
|
-
const twoHoursAgo = new Date(Date.now() - 7_200_000);
|
|
84
|
-
utimesSync(lockPath, twoHoursAgo, twoHoursAgo);
|
|
85
|
-
|
|
86
|
-
const result = acquireLock(cfg({ expireMs: 3_600_000 }));
|
|
87
|
-
expect(result).toBe(true);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it("creates parent directories if missing", () => {
|
|
91
|
-
const deepPath = join(tempDir, "nested", "dir", "distill.lock");
|
|
92
|
-
const result = acquireLock(cfg({ lockPath: deepPath }));
|
|
93
|
-
expect(result).toBe(true);
|
|
94
|
-
expect(existsSync(deepPath)).toBe(true);
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// ---------------------------------------------------------------------------
|
|
99
|
-
// releaseLock
|
|
100
|
-
// ---------------------------------------------------------------------------
|
|
101
|
-
|
|
102
|
-
describe("releaseLock", () => {
|
|
103
|
-
it("deletes lock file", () => {
|
|
104
|
-
writeFileSync(lockPath, String(process.pid), "utf-8");
|
|
105
|
-
expect(existsSync(lockPath)).toBe(true);
|
|
106
|
-
|
|
107
|
-
releaseLock(cfg());
|
|
108
|
-
expect(existsSync(lockPath)).toBe(false);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it("is a no-op when lock file does not exist", () => {
|
|
112
|
-
expect(() => releaseLock(cfg())).not.toThrow();
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
// ---------------------------------------------------------------------------
|
|
117
|
-
// rollbackLock
|
|
118
|
-
// ---------------------------------------------------------------------------
|
|
119
|
-
|
|
120
|
-
describe("rollbackLock", () => {
|
|
121
|
-
it("sets lock mtime to the given previous value", () => {
|
|
122
|
-
writeFileSync(lockPath, String(process.pid), "utf-8");
|
|
123
|
-
const pastDate = new Date(Date.now() - 600_000); // 10 min ago
|
|
124
|
-
|
|
125
|
-
rollbackLock(pastDate, cfg());
|
|
126
|
-
|
|
127
|
-
const st = statSync(lockPath);
|
|
128
|
-
// Allow 1 second tolerance for filesystem granularity
|
|
129
|
-
expect(Math.abs(st.mtimeMs - pastDate.getTime())).toBeLessThan(1000);
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
it("is a no-op when lock file does not exist", () => {
|
|
133
|
-
expect(() => rollbackLock(new Date(), cfg())).not.toThrow();
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
// ---------------------------------------------------------------------------
|
|
138
|
-
// shouldDistill
|
|
139
|
-
// ---------------------------------------------------------------------------
|
|
140
|
-
|
|
141
|
-
describe("shouldDistill", () => {
|
|
142
|
-
it("returns true when checkpoint count >= minCheckpoints (default 3)", () => {
|
|
143
|
-
expect(shouldDistill(3, cfg())).toBe(true);
|
|
144
|
-
expect(shouldDistill(5, cfg())).toBe(true);
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
it("returns false when checkpoint count < minCheckpoints", () => {
|
|
148
|
-
expect(shouldDistill(0, cfg())).toBe(false);
|
|
149
|
-
expect(shouldDistill(1, cfg())).toBe(false);
|
|
150
|
-
expect(shouldDistill(2, cfg())).toBe(false);
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
it("respects custom minCheckpoints", () => {
|
|
154
|
-
expect(shouldDistill(4, cfg({ minCheckpoints: 5 }))).toBe(false);
|
|
155
|
-
expect(shouldDistill(5, cfg({ minCheckpoints: 5 }))).toBe(true);
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
// ---------------------------------------------------------------------------
|
|
160
|
-
// getLastDistillTime
|
|
161
|
-
// ---------------------------------------------------------------------------
|
|
162
|
-
|
|
163
|
-
describe("getLastDistillTime", () => {
|
|
164
|
-
it("returns lock file mtime when lock exists", () => {
|
|
165
|
-
writeFileSync(lockPath, String(process.pid), "utf-8");
|
|
166
|
-
const st = statSync(lockPath);
|
|
167
|
-
|
|
168
|
-
const result = getLastDistillTime(cfg());
|
|
169
|
-
expect(Math.abs(result - st.mtimeMs)).toBeLessThan(100);
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
it("returns 0 when lock file does not exist", () => {
|
|
173
|
-
const result = getLastDistillTime(cfg());
|
|
174
|
-
expect(result).toBe(0);
|
|
175
|
-
});
|
|
176
|
-
});
|
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "bun:test";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
assessContinuityBaseline,
|
|
5
|
-
assessScopeInventoryReport,
|
|
6
|
-
formatDoctorResults,
|
|
7
|
-
loadContinuityBaselineEntries,
|
|
8
|
-
} from "../doctor.js";
|
|
9
|
-
import type { MemoryEntry } from "../store.js";
|
|
10
|
-
|
|
11
|
-
function buildEntry(
|
|
12
|
-
id: string,
|
|
13
|
-
category: MemoryEntry["category"],
|
|
14
|
-
text: string,
|
|
15
|
-
scope: string,
|
|
16
|
-
metadata: Record<string, unknown> = {},
|
|
17
|
-
): MemoryEntry {
|
|
18
|
-
return {
|
|
19
|
-
id,
|
|
20
|
-
text,
|
|
21
|
-
vector: [],
|
|
22
|
-
category,
|
|
23
|
-
scope,
|
|
24
|
-
importance: 0.8,
|
|
25
|
-
timestamp: Date.parse("2026-03-17T00:00:00.000Z"),
|
|
26
|
-
metadata: JSON.stringify(metadata),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
describe("assessContinuityBaseline", () => {
|
|
31
|
-
it("reports full coverage when all canonical continuity seeds are present", () => {
|
|
32
|
-
const seeds = {
|
|
33
|
-
patterns: [
|
|
34
|
-
{
|
|
35
|
-
title: "Cross-window continuity handoff",
|
|
36
|
-
trigger: "When opening a fresh terminal window",
|
|
37
|
-
steps: ["Call resume_context before coding."],
|
|
38
|
-
outcome: "Fresh windows recover stable context.",
|
|
39
|
-
tools: ["resume_context"],
|
|
40
|
-
importance: 0.9,
|
|
41
|
-
source: "agent",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
cases: [
|
|
45
|
-
{
|
|
46
|
-
title: "Continuity eval checkpoint isolation",
|
|
47
|
-
problem: "Eval reads live checkpoints.",
|
|
48
|
-
solutionSteps: ["Use fixture checkpoints instead."],
|
|
49
|
-
outcome: "Continuity eval becomes deterministic.",
|
|
50
|
-
tools: ["eval:continuity"],
|
|
51
|
-
source: "agent",
|
|
52
|
-
scope: "recallnest",
|
|
53
|
-
importance: 0.85,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
memories: [
|
|
57
|
-
{
|
|
58
|
-
text: "RecallNest is the shared memory layer for Claude Code, Codex, and Gemini CLI.",
|
|
59
|
-
category: "entities",
|
|
60
|
-
scope: "recallnest",
|
|
61
|
-
source: "agent",
|
|
62
|
-
importance: 0.9,
|
|
63
|
-
canonicalKey: "entities:recallnest:shared-memory-layer",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const entries: MemoryEntry[] = [
|
|
69
|
-
buildEntry(
|
|
70
|
-
"pattern-1",
|
|
71
|
-
"patterns",
|
|
72
|
-
"Workflow pattern: Cross-window continuity handoff",
|
|
73
|
-
"memory:agent",
|
|
74
|
-
{ workflowPattern: { title: "Cross-window continuity handoff" } },
|
|
75
|
-
),
|
|
76
|
-
buildEntry(
|
|
77
|
-
"case-1",
|
|
78
|
-
"cases",
|
|
79
|
-
"Case: Continuity eval checkpoint isolation",
|
|
80
|
-
"recallnest",
|
|
81
|
-
{ caseMemory: { title: "Continuity eval checkpoint isolation" } },
|
|
82
|
-
),
|
|
83
|
-
buildEntry(
|
|
84
|
-
"memory-1",
|
|
85
|
-
"entities",
|
|
86
|
-
"RecallNest is the shared memory layer for Claude Code, Codex, and Gemini CLI.",
|
|
87
|
-
"recallnest",
|
|
88
|
-
{ canonicalKey: "entities:recallnest:shared-memory-layer" },
|
|
89
|
-
),
|
|
90
|
-
];
|
|
91
|
-
|
|
92
|
-
const assessment = assessContinuityBaseline(entries, seeds as any);
|
|
93
|
-
|
|
94
|
-
expect(assessment.found).toEqual({ patterns: 1, cases: 1, memories: 1 });
|
|
95
|
-
expect(assessment.missing).toEqual({ patterns: [], cases: [], memories: [] });
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
it("reports missing canonical seeds by category", () => {
|
|
99
|
-
const seeds = {
|
|
100
|
-
patterns: [
|
|
101
|
-
{
|
|
102
|
-
title: "Recall before repo exploration",
|
|
103
|
-
trigger: "When startup context is sparse",
|
|
104
|
-
steps: ["Run search_memory before local repo exploration."],
|
|
105
|
-
outcome: "Fresh windows recover task-specific continuity.",
|
|
106
|
-
tools: ["resume_context", "search_memory"],
|
|
107
|
-
importance: 0.9,
|
|
108
|
-
source: "agent",
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
cases: [
|
|
112
|
-
{
|
|
113
|
-
title: "RecallNest scope fallback cleanup",
|
|
114
|
-
problem: "Project continuity prefers raw transcript notes.",
|
|
115
|
-
solutionSteps: ["Prefer durable cases and patterns."],
|
|
116
|
-
outcome: "Stable project continuity becomes cleaner.",
|
|
117
|
-
tools: ["resume_context"],
|
|
118
|
-
source: "agent",
|
|
119
|
-
scope: "recallnest",
|
|
120
|
-
importance: 0.85,
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
memories: [
|
|
124
|
-
{
|
|
125
|
-
text: "RecallNest continuity revolves around three primitives.",
|
|
126
|
-
category: "entities",
|
|
127
|
-
scope: "recallnest",
|
|
128
|
-
source: "agent",
|
|
129
|
-
importance: 0.9,
|
|
130
|
-
canonicalKey: "entities:recallnest:continuity-primitives",
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const entries: MemoryEntry[] = [
|
|
136
|
-
buildEntry(
|
|
137
|
-
"pattern-1",
|
|
138
|
-
"patterns",
|
|
139
|
-
"Workflow pattern: Cross-window continuity handoff",
|
|
140
|
-
"memory:agent",
|
|
141
|
-
{ workflowPattern: { title: "Cross-window continuity handoff" } },
|
|
142
|
-
),
|
|
143
|
-
];
|
|
144
|
-
|
|
145
|
-
const assessment = assessContinuityBaseline(entries, seeds as any);
|
|
146
|
-
|
|
147
|
-
expect(assessment.found).toEqual({ patterns: 0, cases: 0, memories: 0 });
|
|
148
|
-
expect(assessment.missing.patterns).toEqual(["Recall before repo exploration"]);
|
|
149
|
-
expect(assessment.missing.cases).toEqual(["RecallNest scope fallback cleanup"]);
|
|
150
|
-
expect(assessment.missing.memories).toEqual(["entities:recallnest:continuity-primitives"]);
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
it("loads enough entries for baseline checks when the index is larger than the legacy 5000-entry window", async () => {
|
|
154
|
-
const targetEntry = buildEntry(
|
|
155
|
-
"pattern-target",
|
|
156
|
-
"patterns",
|
|
157
|
-
"Workflow pattern: RecallNest MCP transport rollout",
|
|
158
|
-
"project:recallnest",
|
|
159
|
-
{ workflowPattern: { title: "RecallNest MCP transport rollout" } },
|
|
160
|
-
);
|
|
161
|
-
const entries: MemoryEntry[] = [
|
|
162
|
-
...Array.from({ length: 5000 }, (_, index) => buildEntry(
|
|
163
|
-
`noise-${index}`,
|
|
164
|
-
"patterns",
|
|
165
|
-
`Workflow pattern: Noise ${index}`,
|
|
166
|
-
"memory:agent",
|
|
167
|
-
{ workflowPattern: { title: `Noise ${index}` } },
|
|
168
|
-
)),
|
|
169
|
-
targetEntry,
|
|
170
|
-
];
|
|
171
|
-
const listCalls: Array<[string[] | undefined, string | undefined, number | undefined, number | undefined]> = [];
|
|
172
|
-
const store = {
|
|
173
|
-
async list(scopeFilter?: string[], category?: string, limit = 20, offset = 0): Promise<MemoryEntry[]> {
|
|
174
|
-
listCalls.push([scopeFilter, category, limit, offset]);
|
|
175
|
-
return entries.slice(offset, offset + limit);
|
|
176
|
-
},
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
const loaded = await loadContinuityBaselineEntries(store as any, entries.length);
|
|
180
|
-
const assessment = assessContinuityBaseline(loaded, {
|
|
181
|
-
patterns: [
|
|
182
|
-
{
|
|
183
|
-
title: "RecallNest MCP transport rollout",
|
|
184
|
-
trigger: "When RecallNest continuity work touches MCP transport wiring under project scope",
|
|
185
|
-
steps: ["Call resume_context with project:recallnest before transport changes."],
|
|
186
|
-
outcome: "RecallNest transport changes stay project-scoped.",
|
|
187
|
-
tools: ["resume_context", "search_memory", "eval:continuity"],
|
|
188
|
-
source: "agent",
|
|
189
|
-
scope: "project:recallnest",
|
|
190
|
-
importance: 0.87,
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
cases: [],
|
|
194
|
-
memories: [],
|
|
195
|
-
} as any);
|
|
196
|
-
|
|
197
|
-
expect(listCalls).toEqual([[undefined, undefined, 5001, 0]]);
|
|
198
|
-
expect(assessment.found.patterns).toBe(1);
|
|
199
|
-
expect(assessment.missing.patterns).toEqual([]);
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
describe("assessScopeInventoryReport", () => {
|
|
204
|
-
it("reports a clean scope inventory when no unresolved anomalies remain", () => {
|
|
205
|
-
const result = assessScopeInventoryReport({
|
|
206
|
-
generatedAt: "2026-03-19T08:20:00.000Z",
|
|
207
|
-
sampleLimit: 5,
|
|
208
|
-
totalScannedCount: 42,
|
|
209
|
-
totalAnomalyCount: 0,
|
|
210
|
-
totalInvalidCount: 0,
|
|
211
|
-
totalReviewedCount: 1,
|
|
212
|
-
layers: [
|
|
213
|
-
{
|
|
214
|
-
layer: "memories",
|
|
215
|
-
scannedCount: 40,
|
|
216
|
-
anomalyCount: 0,
|
|
217
|
-
invalidCount: 0,
|
|
218
|
-
reviewedCount: 0,
|
|
219
|
-
counts: { missing: 0, empty: 0, global: 0 },
|
|
220
|
-
samples: [],
|
|
221
|
-
recommendation: "ok",
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
layer: "workflow-observations",
|
|
225
|
-
scannedCount: 2,
|
|
226
|
-
anomalyCount: 0,
|
|
227
|
-
invalidCount: 0,
|
|
228
|
-
reviewedCount: 1,
|
|
229
|
-
counts: { missing: 0, empty: 0, global: 0 },
|
|
230
|
-
samples: [],
|
|
231
|
-
recommendation: "ok",
|
|
232
|
-
},
|
|
233
|
-
],
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
expect(result).toEqual({
|
|
237
|
-
name: "Scope inventory",
|
|
238
|
-
status: "pass",
|
|
239
|
-
message: "0 unresolved anomalies across 42 records; reviewed keeps 1",
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
it("warns when scope inventory still has unresolved anomalies or invalid files", () => {
|
|
244
|
-
const result = assessScopeInventoryReport({
|
|
245
|
-
generatedAt: "2026-03-19T08:20:00.000Z",
|
|
246
|
-
sampleLimit: 5,
|
|
247
|
-
totalScannedCount: 12,
|
|
248
|
-
totalAnomalyCount: 2,
|
|
249
|
-
totalInvalidCount: 1,
|
|
250
|
-
totalReviewedCount: 0,
|
|
251
|
-
layers: [
|
|
252
|
-
{
|
|
253
|
-
layer: "pins",
|
|
254
|
-
scannedCount: 4,
|
|
255
|
-
anomalyCount: 1,
|
|
256
|
-
invalidCount: 0,
|
|
257
|
-
reviewedCount: 0,
|
|
258
|
-
counts: { missing: 0, empty: 0, global: 1 },
|
|
259
|
-
samples: [{
|
|
260
|
-
layer: "pins",
|
|
261
|
-
id: "pin-legacy-1234",
|
|
262
|
-
kind: "global",
|
|
263
|
-
scope: "global",
|
|
264
|
-
context: "pin",
|
|
265
|
-
preview: "Legacy pin",
|
|
266
|
-
recordedAt: "2026-03-19T08:00:00.000Z",
|
|
267
|
-
}],
|
|
268
|
-
recommendation: "re-pin",
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
layer: "workflow-observations",
|
|
272
|
-
scannedCount: 8,
|
|
273
|
-
anomalyCount: 1,
|
|
274
|
-
invalidCount: 1,
|
|
275
|
-
reviewedCount: 0,
|
|
276
|
-
counts: { missing: 1, empty: 0, global: 0 },
|
|
277
|
-
samples: [],
|
|
278
|
-
recommendation: "review",
|
|
279
|
-
},
|
|
280
|
-
],
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
expect(result.status).toBe("warn");
|
|
284
|
-
expect(result.name).toBe("Scope inventory");
|
|
285
|
-
expect(result.message).toContain("2 unresolved anomalies, 1 invalid file(s) across 12 records");
|
|
286
|
-
expect(result.message).toContain("pins:1");
|
|
287
|
-
expect(result.message).toContain("workflow-observations:1 invalid 1");
|
|
288
|
-
expect(result.message).toContain("sample pins:global:pin-lega");
|
|
289
|
-
expect(result.fix).toBe("bun run scope-inventory");
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
describe("formatDoctorResults", () => {
|
|
294
|
-
it("does not claim all clear when warnings are present", () => {
|
|
295
|
-
const output = formatDoctorResults([
|
|
296
|
-
{ name: "Bun runtime", status: "pass", message: "ok" },
|
|
297
|
-
{ name: "Scope inventory", status: "warn", message: "1 unresolved anomaly", fix: "bun run scope-inventory" },
|
|
298
|
-
]);
|
|
299
|
-
|
|
300
|
-
expect(output).toContain("Review the ⚠️ items above before relying on this environment as a clean baseline.");
|
|
301
|
-
expect(output).not.toContain("All clear.");
|
|
302
|
-
});
|
|
303
|
-
});
|