mirror of
https://github.com/volcengine/OpenViking.git
synced 2026-09-30 01:08:26 +08:00
* fix(openclaw-plugin): enforce token budget and reduce context bloat (#730) (#796) * test(openclaw-plugin): add vitest test infrastructure for #730 * fix(openclaw-plugin): raise recallScoreThreshold default from 0.01 to 0.15 (#730) * fix(openclaw-plugin): narrow isLeafLikeMemory boost to level-2 only (#730) * fix(openclaw-plugin): prefer abstract over full content fetch in memory injection (#730) * feat(openclaw-plugin): add recallMaxContentChars and recallPreferAbstract config (#730) * feat(openclaw-plugin): enforce tokenBudget in injection with decrement loop (#730) * fix(openclaw-plugin): update recallScoreThreshold placeholder to match new default (#730) * fix(openclaw-plugin): deduplicate content resolution and document budget behavior (#730) Extract resolveMemoryContent() helper to eliminate duplicate content-resolution logic between buildMemoryLines and buildMemoryLinesWithBudget. Add JSDoc and inline comment documenting intentional first-line budget overshoot (spec §6.2). Tighten test assertion from <=120 to <=106 tokens. * fix(openclaw-plugin): use truthy fallback for empty abstract strings (#730) Change nullish coalescing (??) to truthy fallback (||) in resolveMemoryContent() so empty-string abstracts fall back to item.uri instead of producing empty content lines. * docs: add openclaw context engine refactor design Co-authored-by: Mijamind <mijamind@163.com> Co-authored-by: GPT-5.4 <noreply@openai.com> * add afterTurn refactor in design_doc * add afterTurn compact in design_doc --------- Co-authored-by: chethanuk <chethanuk@outlook.com> Co-authored-by: GPT-5.4 <noreply@openai.com> Co-authored-by: wlff123 <wulf234@163.com> Co-authored-by: xuwengui <huangxun375@gmail.com>
9 lines
140 B
TypeScript
9 lines
140 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
},
|
|
});
|