perf: narrow memory core test imports · openclaw/openclaw@1616510
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,11 +2,11 @@ import type { OpenClawConfig } from "openclaw/plugin-sdk/memory-core";
|
2 | 2 | import { describe, expect, it } from "vitest"; |
3 | 3 | import { |
4 | 4 | buildMemoryFlushPlan, |
5 | | -buildPromptSection, |
6 | 5 | DEFAULT_MEMORY_FLUSH_FORCE_TRANSCRIPT_BYTES, |
7 | 6 | DEFAULT_MEMORY_FLUSH_PROMPT, |
8 | 7 | DEFAULT_MEMORY_FLUSH_SOFT_TOKENS, |
9 | | -} from "./index.js"; |
| 8 | +} from "./src/flush-plan.js"; |
| 9 | +import { buildPromptSection } from "./src/prompt-section.js"; |
10 | 10 | |
11 | 11 | describe("buildPromptSection", () => { |
12 | 12 | it("returns empty when no memory tools are available", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。