Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
feat(openclaw-plugin):context engine refactor design & enforce token budget and reduce context bloat (#891)
Mingjian Que3b5b9a42c0ce
diff --git a/docs/design/openclaw-context-engine-refactor.md b/docs/design/openclaw-context-engine-refactor.mdnew file mode 100644index 000000000..cbdec7ab0--- /dev/null+++ b/docs/design/openclaw-context-engine-refactor.md@@ -0,0 +1,670 @@+# OpenClaw Plugin 升级为真正上下文引擎的设计方案++## 1. 背景与目标++当前 `examples/openclaw-plugin` 已经具备 OpenViking 记忆写入、自动召回和工具式记忆操作能力,但整体仍然是“记忆插件 + 一个很薄的 context-engine 外壳”,而不是由 context-engine 生命周期统一负责上下文管理的真正上下文引擎。++现状特征:++- 自动召回主路径仍挂在 `before_prompt_build`+- 自动写入主路径仍挂在 `afterTurn`+- `assemble()` 目前基本没有承担上下文组装职责+- `compact()` 仍然委托 legacy engine,OpenViking 只参与记忆提取++这会带来 4 类问题:++1. OpenViking 统一以 context engine 的方式注册,但继续保留并使用原有 hook 链路。这里的 hook 能力并不等同于“必须注册成独立 memory plugin 并占据 `kind=memory` slot 才能使用”的能力。当前问题不是要去掉 hook,而是要把 hook 与 context engine 生命周期之间的职责分工、调用优先级和数据流转规则明确收口。+2. 自动召回结果目前以 `prependContext` 文本块直接注入,模型只能看到结果内容,看不到检索动作本身。这使自动召回与显式 `memory_recall` 工具在模型视角下不一致,模型也无法基于当前 recall 的 query 和结果边界判断是否需要继续检索。+3. 当前 compact 仍由 legacy engine 主导,OpenViking 只是在 compact 过程中附带参与记忆提取,尚未成为这条链路的正式主控方。因此,原始上下文的无损落盘、compact summary 生成、长期记忆提取、后续历史回放与来源追溯还没有被收口为一条统一的数据链路。+4. 后续如果要支持 skill memory、tool memory 和 session history expand,这些能力都需要跨越“原始 turn 写入、上下文组装、compact、历史回放、来源追溯”多个阶段流转。当前插件里还缺少统一的引擎状态和稳定的数据模型来记录这些对象及其引用关系,后续扩展容易分散在多个局部逻辑中,难以形成一致的数据链路。++## 2. 设计原则++后续实现统一遵循以下原则。++### 2.1 职责分层++OpenViking 统一注册为 context engine,但继续保留原有 hook 链路。后续需要明确的是二者的职责边界:hook 继续承接兼容路径和局部增强能力;完整的上下文组装、compact、历史回放和主生命周期协同由 context engine 统一编排。++### 2.2 复用 OpenViking 原生能力++优先复用 OpenViking 已有的 `Session -> Commit -> Archive -> Memory Extract` 体系,不在插件层额外创造第二套上下文生命周期,也不新增独立数据库。实现上尽量沿用以下能力完成闭环:++- `session.add_message`+- `session.commit`+- session archive / summary+- memory extract pipeline+- VikingFS 中已有的 user/agent/session 存储分层++### 2.3 无损优先++每轮参与推理的原始上下文必须先保存,再考虑抽取和压缩。compact 压缩的是“模型接下来看到的工作上下文”,不是 OpenViking 中已经无损保存的原始 turn / session 数据;压缩结果也不能替代原始消息本体。++### 2.4 可追溯、可展开++原始数据是后续追溯、重新抽取和历史展开的事实基座。无论长期记忆、compact summary 还是后续 expand,都必须保留到原始 turn/session 的稳定引用。++### 2.5 分阶段落地++先把插件升级成真正的 context-engine 闭环,再引入 skill/tool memory 等增强能力。Phase 1 完成后,插件就应当已经具备“真正上下文引擎”的最小定义。+++本文档作为后续开发执行规范,聚焦 OpenClaw 插件升级为真正上下文引擎时的目标架构、数据模型和落地步骤,并优先按各个 hook 的实施职责组织说明。++参考资料:+- [OpenViking Session 管理文档](/Users/quemingjian/Source/OpenViking/docs/en/concepts/08-session.md)++---++## 3. 按 Hook 的当前实现与实施清单++当前相关实现主要分布于:++- [examples/openclaw-plugin/index.ts](/Users/quemingjian/Source/OpenViking/examples/openclaw-plugin/index.ts)+- [examples/openclaw-plugin/context-engine.ts](/Users/quemingjian/Source/OpenViking/examples/openclaw-plugin/context-engine.ts)+- [examples/openclaw-plugin/client.ts](/Users/quemingjian/Source/OpenViking/examples/openclaw-plugin/client.ts)++## 3.1 `before_prompt_build`: 兼容 fallback 与迁移约束++### 当前实现++当前 `before_prompt_build` 会执行搜索,并把 recall 结果拼接为 `<relevant-memories>` 文本块注入。++### 职责++在 Phase 1 期间保留 fallback recall,保证旧环境仍可工作;一旦 `assemble()` 成为主链路,这个 hook 只保留兼容职责,不再承担默认实现。++### 实施清单++1. 保留当前 recall fallback 作为兼容与降级路径,保证旧环境继续可用;后续新增的自动召回能力、上下文编排能力和注入形态演进统一落在 `assemble()`,不再继续扩展 `before_prompt_build` 主逻辑。+2. 延续现有“宽检索、窄注入”的有界策略,不允许回退到无上限全文拼接。+3. 保持并行检索 `viking://user/memories` 与 `viking://agent/memories` 的做法,并在本地完成去重、筛选、排序和预算裁剪。+4. 保持 `level === 2` 作为最终可注入 detail memory 的判断标准,不把 L0/L1 直接当作最终注入正文。+5. 保持 `recallScoreThreshold`、`recallMaxContentChars`、`recallPreferAbstract`、`recallTokenBudget` 这些配置约束继续生效。+6. 后续迁移到 `assemble()` 时,迁移的是并行检索、去重、`level === 2` 过滤、score threshold、query-aware ranking、摘要优先、单条截断、总 token budget 这些规则本身;迁移完成后,`before_prompt_build` 只保留一个最小 fallback,而不再作为默认主入口。++### 不在此 hook 做的事情++- 不负责主路径上下文组装+- 不承接 compact 结果回放+- 不新增新的状态写入逻辑++## 3.2 `afterTurn`: 无损写入主链路++### 当前实现++当前 `afterTurn` 会提取本轮增量 user/assistant 文本,创建临时 OpenViking session,并调用 `/extract`。++### 职责+afterTurn 在新架构中承担两件事:+1. **无损写入**:将本轮消息写入 OpenViking session。+2. **Compact 评估与触发**:判断是否需要调用 `session.commit()` 归档消息和提取记忆。+两个职责顺序执行:先写入,再评估。评估结果可能导致同步或异步的 compact 调用,但不影响写入的完成。++重构逻辑:+管理一个OV的Session状态数组,每个Session对应一个OV的Session状态和信息:(下面涉及到的session都是指OV内部定义的session)+0. Compact状态检查,检查Session数组的状态:+ - 如果数组中没有本次会话期望的sessionId 则新建OV session;+ - 如果数组中有本次会话期望的session, 检查session状态:+ - 如果在Compact状态,则新建会话;+ - 如果在非Compact状态,则复用这个session;+1. 入口检查:autoCapture 未启用 → 直接返回(复用原逻辑)+2. 解析身份:调用 resolveAgentId(sessionId) 获取当前 agentId,生成复合 bufferKey = sessionId:agentId+3. 切片新消息:用 prePromptMessageCount 从完整 messages 中切出本轮新增部分(复用原逻辑)+4. 提取文本:extractNewTurnTexts 提取 user/assistant 角色的纯文本,无新文本 → 返回(复用原逻辑)+5. 捕获判断:getCaptureDecision 判断文本是否值得捕获(长度、模式匹配等),不值得 → 返回(复用原逻辑)+6. 累积到 buffer:按 bufferKey 查找或创建 SessionBuffer,更新 totalChars 和 messageCount++Compact 评估与触发:+7. 按优先级从高到低逐条判断(命中第一个即触发,不继续往下):+ - 预算阈值:estimatedTokens >= budget × 0.75? → 异步后台 compact+ - 新增 token 积累:tokensAdded >= 30,000? → 异步后台 compact+ - 轮次积累:turns >= 20? → 异步后台 compact+ - 最长间隔:interval >= 30min 且 turns >= 1? → 异步后台 compact+ - 无条件满足 → 不触发+8. 触发后执行 compact 提交:+ - 调用 `session.commit(wait=false)` 提交 OpenViking session+ - 异步:commit 在后台执行,afterTurn 立即返回,更新 session中 CompactState, 下一轮 Compact状态检查 中确认完成++兜底 flush:进程退出时(service.stop() / SIGTERM / SIGINT),遍历所有 buffer 执行 commitAndReset,确保未提交的累积内容不丢失++#### Compact触发条件与保护机制+**触发条件**++| 条件 | 场景 | 阈值 | 执行方式 |+|---|---|---|---|+| 预算阈值 | 上下文达到预警线 | `estimatedTokens >= budget × 0.75` | 异步后台 |+| 新增 token 积累 | 大量新内容(大文件、长工具输出等) | `tokensAdded >= 30,000` | 异步后台 |+| 轮次积累 | 短对话多轮,token 阈值不触发 | `turns >= 20` | 异步后台 |+| 最长间隔 | 长时间未 compact | `interval >= 30min` 且 turns >= 1 | 异步后台 |++典型场景:+- **预算阈值**:上下文达到 96k(128k × 0.75),还有余量但该开始压缩了。后台异步执行 commit,不阻塞当前轮返回。这是最常见的触发路径。+- **新增 token 积累**:总上下文才 60k,远没到阈值,但本轮用户粘贴了一个大文件(35k tokens)。虽然总量不紧张,但大量原始内容堆积不压缩会持续占用空间。对应 lossless-claw 的"叶子触发",但阈值更高(30k vs 20k),因为 `session.commit()` 是全量归档的重操作。+- **轮次积累**:用户在做代码审查,每轮只问一个短问题(300-500 tokens),20 轮下来才 8k tokens,token 阈值不会触发。但 20 轮的对话已经有足够的信息量值得做一次摘要和记忆提取。+- **最长间隔**:用户上午聊了 5 轮后去开会,下午回来继续。距离上次 compact 已超过 30 分钟,触发一次整理。要求至少有 1 轮新内容,避免空 commit。++**保护机制**+| 机制 | 场景 | 说明 |+|---|---|---|+| 并发互斥 | 上一轮的异步 compact 还在跑,本轮又触发了条件 | 同一 session 同时只允许一个 compact,避免重复提交 |+| 异常退出 | 进程退出时(service.stop() / SIGTERM / SIGINT),遍历所有 session 执行 commit,确保未提交的累积内容不丢失 |++## 3.3 `assemble`: 自动召回与上下文组装主链路++### 当前实现++当前 `assemble()` 基本直接回传原始 messages,不承担上下文编排职责。++### 职责++`assemble()` 是真正的上下文组装入口,负责把 profile、长期记忆、recent raw turns、compact summary 统一编排成最终返回给 OpenClaw 的 messages。++### 输入++- 当前 OpenClaw sessionId+- 当前 messages+- token budget++### 输出++- 注入后的 `messages`+- `estimatedTokens`+- 必要时的 `systemPromptAddition`++### 实施清单++1. 读取 stable profile,包括 `profile.md` 和稳定偏好类高质量记忆。+2. 从最近 `assembleRecallWindow` 条 user turns 构造 recall query,并做轻量 skip 判断,跳过问候、无内容、纯短句。+3. 并行检索 `viking://user/memories` 与 `viking://agent/memories`。+4. 复用当前 fallback recall 的本地约束:去重、`level === 2` 过滤、score threshold、query-aware ranking、摘要优先、单条截断、总 token budget。+5. 读取 session context,包括最近 raw turns 和最近 compact summary / archive overview。+6. 把 recalled memories、raw turns、compact summary 混合编排为最终注入消息。+7. 统一计算 token,并在超预算时优先裁剪 recalled memories 和旧 summary,而不是裁剪最新 raw turns。++### 自动召回的注入形态++自动召回结果不再用:++```text+<relevant-memories> ... </relevant-memories>+```++而改为注入为合成消息,形态类似:++```text+assistant: [tool_call] memory_recall_auto({"query":"..."})+tool: [tool_result] {"memories":[...], "source":"openviking-auto-recall"}+```++### 补充职责++- 读取 compact summary,而不是只靠长期记忆支撑历史连续性+- 将最近未 compact 的 raw turns 与历史 summary 混合组装+- 为后续 `memory_expand` 提供 summary 到 raw session 的桥梁++## 3.4 `compact`: 正式 commit 边界++### 当前实现++当前 `compact()` 仍调用 legacy context engine 的 compact,OpenViking 只是在其过程中附带参与记忆提取。++### 职责++`compact()` 负责触发 OpenViking `session.commit()`,把 session 写入、归档、summary 生成和长期记忆提取统一收口到一个正式同步点。++### 实施清单++1. 调用 OpenViking `session.commit()`。+2. 触发当前 session 消息归档。+3. 读取并记录最新 session summary / archive summary。+4. 触发长期记忆提取,并记录本次抽取出的 memory URI。+5. 落 `CompactCheckpoint`,保存本次 compact 的时间、来源 turn 范围和 summary 引用。+6. 返回新的工作上下文,至少包含最近 `recentRawTurnCount` 条 raw turns、最新 compact summary、必要的 pending tasks / active instructions。+7. 保证 compact 失败时可回退,不破坏原始 session 数据。++### 与当前实现的差异++- 不再依赖 legacy compact+- 自动记忆提取从 `afterTurn` 主路径迁移到 `compact` 主路径+- `compact()` 成为 OpenViking 与 OpenClaw session 边界的正式同步点++---++## 4. 终态架构++### 4.1 总体数据流++```text+OpenClaw turn+ │+ ├─ afterTurn+ │ └─ 将本轮真实上下文写入 OpenViking session(无损保存)+ │+ ├─ assemble+ │ ├─ 读取 profile / stable memories+ │ ├─ 按 query 检索 user/agent memories+ │ ├─ 读取最近 raw turns + compact summaries+ │ └─ 组装成新的 messages 返回给 OpenClaw+ │+ └─ compact+ ├─ 调用 OpenViking session.commit()+ ├─ 归档旧消息并生成 session summary+ ├─ 提取长期记忆+ └─ 返回压缩后的工作上下文+```++### 4.2 存储分层++本方案不引入新的顶层存储系统,直接复用 OpenViking:++- `viking://session/{user_space}/{session_id}`:保存完整对话 turn、工具调用、上下文使用记录、compact history+- `viking://user/.../memories`:用户画像、偏好、实体、事件等长期记忆+- `viking://agent/.../memories`:cases、patterns 等 agent 记忆+- `viking://agent/.../skills`:后续 skill memory Phase 3 的锚点++### 4.3 关键设计决策++1. 不引入插件侧独立 SQLite / DAG。+2. 不再把自动召回主结果作为纯文本 prompt prepend。+3. 自动 recall 的默认注入形态改为“模拟工具调用结果消息”。+4. compact 的正式语义改为 OpenViking `session.commit()`,而不是 legacy compact + 附带提取。+5. `memory_store` 仍保留,但只是“显式强制写入”的辅助手段,不再承担主数据链路。++---++## 5. 核心数据结构++为了让实现可执行,插件内部需要统一最小数据结构。++### 5.1 TurnEnvelope++每个进入 OpenViking session 的 turn 都按统一结构落盘。++```ts+type TurnEnvelope = {+ turn_id: string;+ session_id: string;+ sequence: number;+ timestamp: string;+ role: "user" | "assistant" | "system" | "tool";+ parts: Array<+ | { type: "text"; text: string }+ | { type: "tool_call"; tool_name: string; arguments: unknown }+ | { type: "tool_result"; tool_name: string; result: unknown }+ | { type: "context_ref"; uri: string; abstract?: string }+ | { type: "meta"; key: string; value: unknown }+ >;+ used_context_uris: string[];+ used_skills: Array<{+ uri: string;+ input?: string;+ output?: string;+ success?: boolean;+ }>;+ tool_calls: Array<{+ tool_name: string;+ arguments: unknown;+ status?: "success" | "error";+ }>;+ tool_results: Array<{+ tool_name: string;+ result: unknown;+ status?: "success" | "error";+ }>;+ compaction_marker?: {+ source: "raw" | "post_compact";+ compact_checkpoint_id?: string;+ };+};+```++约束:++- `parts` 必须能完整表示本轮输入给模型和模型产出的关键上下文+- `used_context_uris` 记录本轮真正注入的外部上下文 URI+- `used_skills` 和 `tool_calls/tool_results` 用于后续 patterns/cases 抽取与可追溯分析+- 当前无法拿到的字段可以先留空,但字段定义必须稳定++### 5.2 AssembledContextPacket++`assemble()` 内部统一生成如下结构,再转换成 OpenClaw `messages`:++```ts+type AssembledContextPacket = {+ profile_blocks: string[];+ recalled_memories: Array<{+ query: string;+ uri: string;+ abstract?: string;+ score?: number;+ }>;+ compact_summaries: Array<{+ session_uri: string;+ abstract?: string;+ overview?: string;+ }>;+ recent_raw_turns: TurnEnvelope[];+ injected_messages: Array<Record<string, unknown>>;+ estimated_tokens: number;+};+```++### 5.3 CompactCheckpoint++每次 compact 后记录一个 checkpoint,用于之后的可展开与调试:++```ts+type CompactCheckpoint = {+ checkpoint_id: string;+ session_id: string;+ committed_at: string;+ archive_index: number;+ source_turn_range: {+ start_sequence: number;+ end_sequence: number;+ };+ summary_uri?: string;+ extracted_memory_uris: string[];+};+```++---++## 6. 工具设计++## 6.1 保留工具++保留以下工具,并继续由插件注册:++- `memory_recall`+- `memory_store`+- `memory_forget`++其中:++- `memory_recall`:显式检索长期记忆+- `memory_store`:用户明确要求“记住这件事”时强制写入+- `memory_forget`:删除或撤销错误记忆++## 6.2 新增工具 `memory_expand`++Phase 2 新增:++```ts+memory_expand({+ summaryOrMemoryUri: string,+ query?: string,+ limit?: number+})+```++返回:++- 关联的 session/archive URI+- 命中的原始 turn 摘要+- 可进一步 read 的原始上下文 URI 列表++作用:++- 从 compact summary 回到原始对话片段+- 从 memory 抽象回到创建它的原始 turn+- 补足 summary 到原始上下文之间的回钻能力++## 6.3 自动与显式工具的关系++- 自动 recall 由 `assemble()` 触发+- 显式 recall 由模型主动调用 `memory_recall`+- 自动 recall 的注入形态与显式 recall 保持一致,降低模型学习成本++---++## 7. 配置与兼容策略++### 7.1 保持兼容的配置项++以下现有配置保持保留:++- `mode`+- `configPath`+- `port`+- `baseUrl`+- `apiKey`+- `agentId`+- `timeoutMs`+- `autoRecall`+- `autoCapture`+- `recallLimit`+- `recallScoreThreshold`+- `recallMaxContentChars`+- `recallPreferAbstract`+- `recallTokenBudget`++### 7.2 新增配置项++新增最小集合:++```ts+type ContextEngineRefactorConfig = {+ recentRawTurnCount?: number;+ assembleRecallWindow?: number;+ compactCommitThreshold?: number;+ memoryExpandMaxResults?: number;+};+```++建议默认值:++- `recentRawTurnCount = 8`+- `assembleRecallWindow = 5`+- `compactCommitThreshold = 0.75`+- `memoryExpandMaxResults = 6`++### 7.3 协同与兼容策略++Phase 1 期间采用双轨兼容:++1. 如果 OpenClaw 支持完整 context-engine 生命周期:+ - 由 `assemble()` / `compact()` 承担完整上下文生命周期+ - 原有 hook 继续保留,用于兼容与局部协同+2. 如果环境缺少完整能力:+ - 退化到现有 `before_prompt_build` recall 方案++默认目标不是移除 hook,而是让 hook 与 context engine 的职责边界和调用优先级稳定下来,避免重复实现和相互覆盖。++### 7.4 弃用项++以下实现被标记为 deprecated:++- `afterTurn` 中临时 session + `/extract` 的主逻辑+- `tryLegacyCompact()` 依赖 legacy context engine++说明:++- `before_prompt_build` hook 本身不废弃;被弃用的是把完整自动 recall 主链路长期放在该 hook 中的做法。+- 原有 hook 体系继续保留,但其职责应收敛到兼容路径和局部增强,而不是继续承接完整上下文生命周期。++---++## 8. 分阶段实施方案++## Phase 1: 让插件成为真正 context-engine++### 目标++完成“写入、组装、compact”三条主链路收口。++### 必做项++1. `afterTurn` 改为持久化 `TurnEnvelope`+2. `assemble()` 接管自动 recall 和上下文组装+3. 自动 recall 注入形态改为合成工具消息+4. `compact()` 改为调用 OpenViking `session.commit()`+5. 保留原有 hook 链路,并明确它与 context engine 生命周期之间的边界、优先级和协同方式++### Phase 1 验收标准++- 在具备完整 context-engine 生命周期的环境中,不依赖 `before_prompt_build` 也能完成自动 recall+- 不依赖临时 extract 也能正常积累上下文+- 不依赖 legacy compact 也能完成 compact 与后续连续对话++## Phase 2: 可追溯与可展开++### 目标++让压缩历史真正可回钻。++### 必做项++1. 为 compact 结果落 `CompactCheckpoint`+2. 读取 session summary / archive overview 参与 `assemble`+3. 新增 `memory_expand`+4. 建立 memory -> source turn / session 的追溯关系++### Phase 2 验收标准++- 新 session 中可以回答依赖 compact 前历史的问题+- 模型在需要时可以通过 `memory_expand` 找回原始细节++## Phase 3: 高级增强能力++这一阶段不阻塞 context-engine 升级成功。++范围包括:++- skill memory 注入+- tool memory 注入+- `ov ls viking://` 目录预注入+- 更细粒度的 recall intent analyzer+- summary 质量治理与更复杂的层级压缩策略++---++## 9. 需要修改的接口与模块++### 9.1 插件侧++- [examples/openclaw-plugin/context-engine.ts](/Users/quemingjian/Source/OpenViking/examples/openclaw-plugin/context-engine.ts)+ - 重写 `assemble()`+ - 重写 `afterTurn()`+ - 重写 `compact()`+- [examples/openclaw-plugin/index.ts](/Users/quemingjian/Source/OpenViking/examples/openclaw-plugin/index.ts)+ - 将 `before_prompt_build` recall 降级为 fallback+ - 新增 `memory_expand`+ - 迁移自动 recall 辅助逻辑到 context-engine 内部+- [examples/openclaw-plugin/client.ts](/Users/quemingjian/Source/OpenViking/examples/openclaw-plugin/client.ts)+ - 补充 session commit / summary / archive 相关读写接口++### 9.2 OpenViking 服务端++插件实现默认复用现有 session API,但以下能力若现有返回不够用,需要补充:++1. 读取 session latest summary / archive overview 的便捷接口+2. 从 memory 反查 source session / source turn 的元数据+3. compact checkpoint 的持久化查询接口++原则:++- 能复用已有 `session` / `content` / `fs` API 就不新增新协议+- 若新增 API,必须围绕 “summary read / source trace / expand support” 三类能力展开++---++## 10. 测试方案++## 10.1 单元测试++新增或补齐以下测试:++- `TurnEnvelope` 构造与字段完整性+- recall query window 拼接与 skip 策略+- 自动 recall 注入消息格式+- token budget 裁剪+- 新增配置项解析+- `memory_expand` 参数校验与结果格式++## 10.2 集成测试++覆盖以下场景:++1. 多轮对话后 `afterTurn` 成功无损写入 session+2. 触发 compact 后 session 完成 commit、archive、memory extract+3. 新会话中 `assemble()` 能召回 compact 前历史+4. `memory_store` 显式提交与自动管线不冲突+5. 本地模式和远程模式均可工作+6. 多 agent 场景下 `agentId` 隔离不破坏++## 10.3 回归测试++必须验证:++- 自动注入内容不会再次被 capture+- OpenViking 服务不可用时,context-engine 优雅降级+- recall 注入不会导致明显上下文膨胀回归+- 旧配置文件仍能启动插件++---++## 11. 验收场景++以下场景全部成立,才算升级成功。++### 场景 1:长期对话连续性++一个长对话触发 compact 后,后续会话仍能回答:++- “我们上周关于项目 X 做过什么决定?”+- “之前你给我的数据库优化建议里,哪条是针对慢查询的?”++### 场景 2:显式记忆与自动记忆共存++用户说“记住我偏好深色主题”,插件通过 `memory_store` 立即写入;之后普通对话中的重要决策,在 compact 时通过自动管线进入长期记忆。++### 场景 3:压缩历史可回钻++模型先依据 compact summary 回答,再在需要时通过 `memory_expand` 找回原始 turn 细节,而不是只能依赖抽象 memory。++### 场景 4:引擎而非 hook 主导++禁用 `before_prompt_build` 主 recall 路径后,context-engine 仍能正常工作。++---++## 12. 明确不做的事情++本设计不包含以下内容:++- 在插件内自建新的独立持久化数据库+- 在 Phase 1 中同时上线 skill memory / tool memory 全能力+- 修改 OpenClaw 内核的 session reset 语义++---++## 13. 开发执行建议++建议按以下顺序开发:++1. 先实现 `afterTurn` 的 `TurnEnvelope` 持久化+2. 再实现 `assemble()` 的 recall 注入与 session summary 读取+3. 然后切换 `compact()` 到 OpenViking `session.commit()`+4. 最后补 `memory_expand` 与追溯元数据++原因:++- 先有稳定写入,后续 recall 和 expand 才有可靠数据源+- 先让 `assemble()` 成为主链路,再移除 hook 才安全+- `compact()` 最后切换,便于逐步回归验证++---++## 14. 默认决策++为避免后续开发再次出现未收敛讨论,本文固定以下默认决策:++1. 文本自动 recall 的默认注入方式为“模拟工具调用结果”,不是 prompt prepend。+2. 自动长期记忆提取的正式触发边界为 `compact()`,不是每轮 `afterTurn`。+3. `afterTurn` 的第一职责是无损保存,不是立即抽取。+4. OpenViking Session 是主存储基座,不新增插件侧独立数据库。+5. skill memory / tool memory 不进入 Phase 1 验收范围。++以上决策除非后续出现明确阻塞,否则实现阶段不再重新讨论。diff --git a/examples/openclaw-plugin/__tests__/context-bloat-730.test.ts b/examples/openclaw-plugin/__tests__/context-bloat-730.test.tsnew file mode 100644index 000000000..f5f25ffaf--- /dev/null+++ b/examples/openclaw-plugin/__tests__/context-bloat-730.test.ts@@ -0,0 +1,194 @@+import { describe, it, expect, vi } from "vitest";+import type { FindResultItem } from "../client.js";+import { postProcessMemories, pickMemoriesForInjection } from "../memory-ranking.js";+import { memoryOpenVikingConfigSchema } from "../config.js";++/** Helper: create a mock FindResultItem */+function mockMemory(overrides: Partial<FindResultItem> & { uri: string }): FindResultItem {+ return {+ level: 2,+ score: 0.5,+ category: "memory",+ ...overrides,+ };+}++describe("context-bloat #730 — placeholder", () => {+ it("mockMemory helper returns expected shape", () => {+ const m = mockMemory({ uri: "mem://test/1" });+ expect(m.uri).toBe("mem://test/1");+ expect(m.level).toBe(2);+ });+});++describe("Slice A: recallScoreThreshold default", () => {+ it("should filter memories below 0.15 threshold with default config", () => {+ const cfg = memoryOpenVikingConfigSchema.parse({});++ const memories = [+ mockMemory({ uri: "viking://user/memories/1", score: 0.05 }),+ mockMemory({ uri: "viking://user/memories/2", score: 0.10 }),+ mockMemory({ uri: "viking://user/memories/3", score: 0.20 }),+ mockMemory({ uri: "viking://user/memories/4", score: 0.50 }),+ ];++ const result = postProcessMemories(memories, {+ limit: 10,+ scoreThreshold: cfg.recallScoreThreshold,+ });++ // Only scores >= 0.15 should pass+ expect(result).toHaveLength(2);+ expect(result.map((m) => m.uri)).toEqual([+ "viking://user/memories/4",+ "viking://user/memories/3",+ ]);+ });++ it("should respect explicit recallScoreThreshold: 0.01 for backward compat", () => {+ const cfg = memoryOpenVikingConfigSchema.parse({ recallScoreThreshold: 0.01 });+ expect(cfg.recallScoreThreshold).toBe(0.01);+ });+});++describe("Slice B: prefer abstract over full content fetch", () => {+ it("should use abstract when available instead of calling read()", async () => {+ const { buildMemoryLines } = await import("../index.js");++ const mockRead = vi.fn().mockResolvedValue("Full long content from read()");++ const memories: FindResultItem[] = [+ mockMemory({+ uri: "viking://user/memories/1",+ abstract: "Short abstract text",+ level: 2,+ score: 0.8,+ }),+ mockMemory({+ uri: "viking://user/memories/2",+ abstract: "",+ level: 2,+ score: 0.7,+ }),+ ];++ const lines = await buildMemoryLines(memories, mockRead, {+ recallPreferAbstract: true,+ recallMaxContentChars: 500,+ });++ // Item 1 has abstract — read() should NOT be called for it+ // Item 2 has empty abstract — read() SHOULD be called+ expect(mockRead).toHaveBeenCalledTimes(1);+ expect(mockRead).toHaveBeenCalledWith("viking://user/memories/2");+ expect(lines[0]).toContain("Short abstract text");+ });+});++describe("Slice D: recallMaxContentChars truncation", () => {+ it("should truncate content exceeding recallMaxContentChars", async () => {+ const { buildMemoryLines } = await import("../index.js");++ const longContent = "A".repeat(2000);+ const mockRead = vi.fn().mockResolvedValue(longContent);++ const memories: FindResultItem[] = [+ mockMemory({+ uri: "viking://user/memories/1",+ abstract: "",+ level: 2,+ score: 0.8,+ }),+ ];++ const lines = await buildMemoryLines(memories, mockRead, {+ recallPreferAbstract: false,+ recallMaxContentChars: 500,+ });++ // Content should be truncated to 500 chars + "..."+ const contentPart = lines[0]!.replace("- [memory] ", "");+ expect(contentPart.length).toBeLessThanOrEqual(503); // 500 + "..."+ expect(contentPart.endsWith("...")).toBe(true);+ });++ it("should have recallMaxContentChars and recallPreferAbstract in parsed config", () => {+ const cfg = memoryOpenVikingConfigSchema.parse({});+ expect(cfg.recallMaxContentChars).toBe(500);+ expect(cfg.recallPreferAbstract).toBe(true);+ });+});++describe("Slice E: tokenBudget enforcement", () => {+ it("should stop injecting when token budget is exhausted", async () => {+ const { buildMemoryLinesWithBudget } = await import("../index.js");++ // Each memory ~200 chars -> ~50 tokens per line (200 chars + "- [memory] " prefix)+ const memories: FindResultItem[] = Array.from({ length: 10 }, (_, i) =>+ mockMemory({+ uri: `viking://user/memories/${i}`,+ abstract: "A".repeat(200),+ level: 2,+ score: 0.8 - i * 0.01,+ }),+ );++ const mockRead = vi.fn().mockResolvedValue("should not be called");++ const { lines, estimatedTokens } = await buildMemoryLinesWithBudget(+ memories,+ mockRead,+ {+ recallPreferAbstract: true,+ recallMaxContentChars: 500,+ recallTokenBudget: 100,+ },+ );++ // Budget = 100 tokens. Each line ~53 tokens ((200 + 13 prefix chars) / 4).+ // First line is always included even if it exceeds the budget (spec §6.2),+ // so we expect at most 2 lines (~106 tokens).+ expect(lines.length).toBeLessThanOrEqual(2);+ expect(lines.length).toBeGreaterThan(0);+ expect(estimatedTokens).toBeLessThanOrEqual(106);+ });++ it("should estimate tokens as ceil(chars/4)", async () => {+ const { estimateTokenCount } = await import("../index.js");+ expect(estimateTokenCount("")).toBe(0);+ expect(estimateTokenCount("abcd")).toBe(1);+ expect(estimateTokenCount("abcde")).toBe(2);+ expect(estimateTokenCount("A".repeat(100))).toBe(25);+ });++ it("should have recallTokenBudget in parsed config with default 2000", () => {+ const cfg = memoryOpenVikingConfigSchema.parse({});+ expect(cfg.recallTokenBudget).toBe(2000);+ });+});++describe("Slice C: isLeafLikeMemory narrowing", () => {+ it("should NOT boost .md URI items that are not level 2", () => {+ const mdButNotLeaf = mockMemory({+ uri: "viking://user/resources/notes.md",+ level: 1,+ score: 0.30,+ abstract: "Some notes file",+ });+ const actualLeaf = mockMemory({+ uri: "viking://user/memories/real-memory",+ level: 2,+ score: 0.30,+ abstract: "Actual leaf memory",+ });++ const result = pickMemoriesForInjection(+ [mdButNotLeaf, actualLeaf],+ 2,+ "test query",+ );++ // The level-2 item should rank higher (gets boost), .md non-leaf should not+ expect(result[0]!.uri).toBe("viking://user/memories/real-memory");+ });+});diff --git a/examples/openclaw-plugin/config.ts b/examples/openclaw-plugin/config.tsindex c7a465613..90100593f 100644--- a/examples/openclaw-plugin/config.ts+++ b/examples/openclaw-plugin/config.ts@@ -20,6 +20,9 @@ export type MemoryOpenVikingConfig = {autoRecall?: boolean;recallLimit?: number;recallScoreThreshold?: number;+ recallMaxContentChars?: number;+ recallPreferAbstract?: boolean;+ recallTokenBudget?: number;ingestReplyAssist?: boolean;ingestReplyAssistMinSpeakerTurns?: number;ingestReplyAssistMinChars?: number;@@ -32,7 +35,10 @@ const DEFAULT_TIMEOUT_MS = 15000;const DEFAULT_CAPTURE_MODE = "semantic";const DEFAULT_CAPTURE_MAX_LENGTH = 24000;const DEFAULT_RECALL_LIMIT = 6;-const DEFAULT_RECALL_SCORE_THRESHOLD = 0.01;+const DEFAULT_RECALL_SCORE_THRESHOLD = 0.15;+const DEFAULT_RECALL_MAX_CONTENT_CHARS = 500;+const DEFAULT_RECALL_PREFER_ABSTRACT = true;+const DEFAULT_RECALL_TOKEN_BUDGET = 2000;const DEFAULT_INGEST_REPLY_ASSIST = true;const DEFAULT_INGEST_REPLY_ASSIST_MIN_SPEAKER_TURNS = 2;const DEFAULT_INGEST_REPLY_ASSIST_MIN_CHARS = 120;@@ -109,6 +115,9 @@ export const memoryOpenVikingConfigSchema = {"autoRecall","recallLimit","recallScoreThreshold",+ "recallMaxContentChars",+ "recallPreferAbstract",+ "recallTokenBudget","ingestReplyAssist","ingestReplyAssistMinSpeakerTurns","ingestReplyAssistMinChars",@@ -163,6 +172,15 @@ export const memoryOpenVikingConfigSchema = {1,Math.max(0, toNumber(cfg.recallScoreThreshold, DEFAULT_RECALL_SCORE_THRESHOLD)),),+ recallMaxContentChars: Math.max(+ 50,+ Math.min(10000, Math.floor(toNumber(cfg.recallMaxContentChars, DEFAULT_RECALL_MAX_CONTENT_CHARS))),+ ),+ recallPreferAbstract: cfg.recallPreferAbstract !== false,+ recallTokenBudget: Math.max(+ 100,+ Math.min(50000, Math.floor(toNumber(cfg.recallTokenBudget, DEFAULT_RECALL_TOKEN_BUDGET))),+ ),ingestReplyAssist: cfg.ingestReplyAssist !== false,ingestReplyAssistMinSpeakerTurns: Math.max(1,@@ -257,6 +275,23 @@ export const memoryOpenVikingConfigSchema = {placeholder: String(DEFAULT_RECALL_SCORE_THRESHOLD),advanced: true,},+ recallMaxContentChars: {+ label: "Recall Max Content Chars",+ placeholder: String(DEFAULT_RECALL_MAX_CONTENT_CHARS),+ advanced: true,+ help: "Maximum characters per memory content in auto-recall injection. Content exceeding this is truncated.",+ },+ recallPreferAbstract: {+ label: "Recall Prefer Abstract",+ advanced: true,+ help: "Use memory abstract instead of fetching full content when abstract is available. Reduces token usage.",+ },+ recallTokenBudget: {+ label: "Recall Token Budget",+ placeholder: String(DEFAULT_RECALL_TOKEN_BUDGET),+ advanced: true,+ help: "Maximum estimated tokens for auto-recall memory injection. Injection stops when budget is exhausted.",+ },ingestReplyAssist: {label: "Ingest Reply Assist",help: "When transcript-like memory ingestion is detected, add a lightweight reply instruction to reduce NO_REPLY.",diff --git a/examples/openclaw-plugin/index.ts b/examples/openclaw-plugin/index.tsindex 4e11dba97..d30a95b5f 100644--- a/examples/openclaw-plugin/index.ts+++ b/examples/openclaw-plugin/index.ts@@ -495,23 +495,19 @@ const contextEnginePlugin = {const memories = pickMemoriesForInjection(processed, cfg.recallLimit, queryText);if (memories.length > 0) {- const memoryLines = await Promise.all(- memories.map(async (item: FindResultItem) => {- if (item.level === 2) {- try {- const content = await client.read(item.uri);- if (content && typeof content === "string" && content.trim()) {- return `- [${item.category ?? "memory"}] ${content.trim()}`;- }- } catch {- // fallback to abstract- }- }- return `- [${item.category ?? "memory"}] ${item.abstract ?? item.uri}`;- }),+ const { lines: memoryLines, estimatedTokens } = await buildMemoryLinesWithBudget(+ memories,+ (uri) => client.read(uri),+ {+ recallPreferAbstract: cfg.recallPreferAbstract,+ recallMaxContentChars: cfg.recallMaxContentChars,+ recallTokenBudget: cfg.recallTokenBudget,+ },);const memoryContext = memoryLines.join("\n");- api.logger.info(`openviking: injecting ${memories.length} memories into context`);+ api.logger.info(+ `openviking: injecting ${memoryLines.length} memories (~${estimatedTokens} tokens, budget=${cfg.recallTokenBudget})`,+ );api.logger.info(`openviking: inject-detail ${toJsonLog({ count: memories.length, memories: summarizeInjectionMemories(memories) })}`,);@@ -716,4 +712,102 @@ const contextEnginePlugin = {},};+/** Estimate token count using chars/4 heuristic (adequate for budget enforcement). */+export function estimateTokenCount(text: string): number {+ if (!text) return 0;+ return Math.ceil(text.length / 4);+}++export type BuildMemoryLinesOptions = {+ recallPreferAbstract: boolean;+ recallMaxContentChars: number;+};++async function resolveMemoryContent(+ item: FindResultItem,+ readFn: (uri: string) => Promise<string>,+ options: BuildMemoryLinesOptions,+): Promise<string> {+ let content: string;++ if (options.recallPreferAbstract && item.abstract?.trim()) {+ content = item.abstract.trim();+ } else if (item.level === 2) {+ try {+ const fullContent = await readFn(item.uri);+ content =+ fullContent && typeof fullContent === "string" && fullContent.trim()+ ? fullContent.trim()+ : (item.abstract?.trim() || item.uri);+ } catch {+ content = item.abstract?.trim() || item.uri;+ }+ } else {+ content = item.abstract?.trim() || item.uri;+ }++ if (content.length > options.recallMaxContentChars) {+ content = content.slice(0, options.recallMaxContentChars) + "...";+ }++ return content;+}++export async function buildMemoryLines(+ memories: FindResultItem[],+ readFn: (uri: string) => Promise<string>,+ options: BuildMemoryLinesOptions,+): Promise<string[]> {+ const lines: string[] = [];+ for (const item of memories) {+ const content = await resolveMemoryContent(item, readFn, options);+ lines.push(`- [${item.category ?? "memory"}] ${content}`);+ }+ return lines;+}++export type BuildMemoryLinesWithBudgetOptions = BuildMemoryLinesOptions & {+ recallTokenBudget: number;+};++/**+ * Build memory lines with a token budget constraint.+ *+ * The first memory is always included even if its token count exceeds the+ * remaining budget. This is intentional (spec Section 6.2): with+ * `recallMaxContentChars=500`, a single line is at most ~128 tokens — well+ * within the 2000-token default budget — so overshoot is bounded and+ * guarantees at least one memory is surfaced.+ */+export async function buildMemoryLinesWithBudget(+ memories: FindResultItem[],+ readFn: (uri: string) => Promise<string>,+ options: BuildMemoryLinesWithBudgetOptions,+): Promise<{ lines: string[]; estimatedTokens: number }> {+ let budgetRemaining = options.recallTokenBudget;+ const lines: string[] = [];+ let totalTokens = 0;++ for (const item of memories) {+ if (budgetRemaining <= 0) {+ break;+ }++ const content = await resolveMemoryContent(item, readFn, options);+ const line = `- [${item.category ?? "memory"}] ${content}`;+ const lineTokens = estimateTokenCount(line);++ // First line is always included even if it exceeds the budget (spec §6.2).+ if (lineTokens > budgetRemaining && lines.length > 0) {+ break;+ }++ lines.push(line);+ totalTokens += lineTokens;+ budgetRemaining -= lineTokens;+ }++ return { lines, estimatedTokens: totalTokens };+}+export default contextEnginePlugin;diff --git a/examples/openclaw-plugin/memory-ranking.ts b/examples/openclaw-plugin/memory-ranking.tsindex 4b1530992..3e7b615df 100644--- a/examples/openclaw-plugin/memory-ranking.ts+++ b/examples/openclaw-plugin/memory-ranking.ts@@ -142,7 +142,7 @@ function isEventMemory(item: FindResultItem): boolean {}function isLeafLikeMemory(item: FindResultItem): boolean {- return item.level === 2 || item.uri.endsWith(".md");+ return item.level === 2;}const PREFERENCE_QUERY_RE = /prefer|preference|favorite|favourite|like|偏好|喜欢|爱好|更倾向/i;diff --git a/examples/openclaw-plugin/openclaw.plugin.json b/examples/openclaw-plugin/openclaw.plugin.jsonindex ce8ee78b6..1edf6c683 100644--- a/examples/openclaw-plugin/openclaw.plugin.json+++ b/examples/openclaw-plugin/openclaw.plugin.json@@ -70,9 +70,26 @@},"recallScoreThreshold": {"label": "Recall Score Threshold",- "placeholder": "0.01",+ "placeholder": "0.15","advanced": true},+ "recallMaxContentChars": {+ "label": "Recall Max Content Chars",+ "placeholder": "500",+ "advanced": true,+ "help": "Maximum characters per memory content in auto-recall injection"+ },+ "recallPreferAbstract": {+ "label": "Recall Prefer Abstract",+ "advanced": true,+ "help": "Use memory abstract instead of fetching full content when available"+ },+ "recallTokenBudget": {+ "label": "Recall Token Budget",+ "placeholder": "2000",+ "advanced": true,+ "help": "Maximum estimated tokens for auto-recall memory injection"+ },"ingestReplyAssist": {"label": "Ingest Reply Assist","help": "When transcript-like memory ingestion is detected, add a lightweight reply instruction to reduce NO_REPLY.",@@ -137,6 +154,15 @@"recallScoreThreshold": {"type": "number"},+ "recallMaxContentChars": {+ "type": "number"+ },+ "recallPreferAbstract": {+ "type": "boolean"+ },+ "recallTokenBudget": {+ "type": "number"+ },"ingestReplyAssist": {"type": "boolean"},diff --git a/examples/openclaw-plugin/package-lock.json b/examples/openclaw-plugin/package-lock.jsonindex 624797df3..556103a5b 100644--- a/examples/openclaw-plugin/package-lock.json+++ b/examples/openclaw-plugin/package-lock.json@@ -11,15 +11,389 @@"@sinclair/typebox": "0.34.48"},"devDependencies": {- "@types/node": "^25.3.5"+ "@types/node": "^25.3.5",+ "vitest": "^4.1.0"}},+ "node_modules/@emnapi/core": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.1.tgz",+ "integrity": "sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/wasi-threads": "1.2.0",+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/runtime": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz",+ "integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/wasi-threads": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",+ "integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@napi-rs/wasm-runtime": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",+ "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.7.1",+ "@emnapi/runtime": "^1.7.1",+ "@tybys/wasm-util": "^0.10.1"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/Brooooooklyn"+ }+ },+ "node_modules/@oxc-project/types": {+ "version": "0.120.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.120.0.tgz",+ "integrity": "sha512-k1YNu55DuvAip/MGE1FTsIuU3FUCn6v/ujG9V7Nq5Df/kX2CWb13hhwD0lmJGMGqE+bE1MXvv9SZVnMzEXlWcg==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/Boshen"+ }+ },+ "node_modules/@rolldown/binding-android-arm64": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.10.tgz",+ "integrity": "sha512-jOHxwXhxmFKuXztiu1ORieJeTbx5vrTkcOkkkn2d35726+iwhrY1w/+nYY/AGgF12thg33qC3R1LMBF5tHTZHg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-arm64": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.10.tgz",+ "integrity": "sha512-gED05Teg/vtTZbIJBc4VNMAxAFDUPkuO/rAIyyxZjTj1a1/s6z5TII/5yMGZ0uLRCifEtwUQn8OlYzuYc0m70w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-x64": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.10.tgz",+ "integrity": "sha512-rI15NcM1mA48lqrIxVkHfAqcyFLcQwyXWThy+BQ5+mkKKPvSO26ir+ZDp36AgYoYVkqvMcdS8zOE6SeBsR9e8A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-freebsd-x64": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.10.tgz",+ "integrity": "sha512-XZRXHdTa+4ME1MuDVp021+doQ+z6Ei4CCFmNc5/sKbqb8YmkiJdj8QKlV3rCI0AJtAeSB5n0WGPuJWNL9p/L2w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.10.tgz",+ "integrity": "sha512-R0SQMRluISSLzFE20sPWYHVmJdDQnRyc/FzSCN72BqQmh2SOZUFG+N3/vBZpR4C6WpEUVYJLrYUXaj43sJsNLA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-gnu": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.10.tgz",+ "integrity": "sha512-Y1reMrV/o+cwpduYhJuOE3OMKx32RMYCidf14y+HssARRmhDuWXJ4yVguDg2R/8SyyGNo+auzz64LnPK9Hq6jg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-musl": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.10.tgz",+ "integrity": "sha512-vELN+HNb2IzuzSBUOD4NHmP9yrGwl1DVM29wlQvx1OLSclL0NgVWnVDKl/8tEks79EFek/kebQKnNJkIAA4W2g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-ppc64-gnu": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.10.tgz",+ "integrity": "sha512-ZqrufYTgzxbHwpqOjzSsb0UV/aV2TFIY5rP8HdsiPTv/CuAgCRjM6s9cYFwQ4CNH+hf9Y4erHW1GjZuZ7WoI7w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-s390x-gnu": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.10.tgz",+ "integrity": "sha512-gSlmVS1FZJSRicA6IyjoRoKAFK7IIHBs7xJuHRSmjImqk3mPPWbR7RhbnfH2G6bcmMEllCt2vQ/7u9e6bBnByg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-gnu": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.10.tgz",+ "integrity": "sha512-eOCKUpluKgfObT2pHjztnaWEIbUabWzk3qPZ5PuacuPmr4+JtQG4k2vGTY0H15edaTnicgU428XW/IH6AimcQw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-musl": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.10.tgz",+ "integrity": "sha512-Xdf2jQbfQowJnLcgYfD/m0Uu0Qj5OdxKallD78/IPPfzaiaI4KRAwZzHcKQ4ig1gtg1SuzC7jovNiM2TzQsBXA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-openharmony-arm64": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.10.tgz",+ "integrity": "sha512-o1hYe8hLi1EY6jgPFyxQgQ1wcycX+qz8eEbVmot2hFkgUzPxy9+kF0u0NIQBeDq+Mko47AkaFFaChcvZa9UX9Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-wasm32-wasi": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.10.tgz",+ "integrity": "sha512-Ugv9o7qYJudqQO5Y5y2N2SOo6S4WiqiNOpuQyoPInnhVzCY+wi/GHltcLHypG9DEUYMB0iTB/huJrpadiAcNcA==",+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@napi-rs/wasm-runtime": "^1.1.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@rolldown/binding-win32-arm64-msvc": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.10.tgz",+ "integrity": "sha512-7UODQb4fQUNT/vmgDZBl3XOBAIOutP5R3O/rkxg0aLfEGQ4opbCgU5vOw/scPe4xOqBwL9fw7/RP1vAMZ6QlAQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-x64-msvc": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.10.tgz",+ "integrity": "sha512-PYxKHMVHOb5NJuDL53vBUl1VwUjymDcYI6rzpIni0C9+9mTiJedvUxSk7/RPp7OOAm3v+EjgMu9bIy3N6b408w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.10.tgz",+ "integrity": "sha512-UkVDEFk1w3mveXeKgaTuYfKWtPbvgck1dT8TUG3bnccrH0XtLTuAyfCoks4Q/M5ZGToSVJTIQYCzy2g/atAOeg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@sinclair/typebox": {"version": "0.34.48","resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.48.tgz","integrity": "sha512-kKJTNuK3AQOrgjjotVxMrCn1sUJwM76wMszfq1kdU4uYVJjvEWuFQ6HgvLt4Xz3fSmZlTOxJ/Ie13KnIcWQXFA==","license": "MIT"},+ "node_modules/@standard-schema/spec": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tybys/wasm-util": {+ "version": "0.10.1",+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",+ "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@types/chai": {+ "version": "5.2.3",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/deep-eql": "*",+ "assertion-error": "^2.0.1"+ }+ },+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/node": {"version": "25.3.5","resolved": "https://registry.npmmirror.com/@types/node/-/node-25.3.5.tgz",@@ -30,12 +404,873 @@"undici-types": "~7.18.0"}},+ "node_modules/@vitest/expect": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.0.tgz",+ "integrity": "sha512-EIxG7k4wlWweuCLG9Y5InKFwpMEOyrMb6ZJ1ihYu02LVj/bzUwn2VMU+13PinsjRW75XnITeFrQBMH5+dLvCDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@standard-schema/spec": "^1.1.0",+ "@types/chai": "^5.2.2",+ "@vitest/spy": "4.1.0",+ "@vitest/utils": "4.1.0",+ "chai": "^6.2.2",+ "tinyrainbow": "^3.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.0.tgz",+ "integrity": "sha512-evxREh+Hork43+Y4IOhTo+h5lGmVRyjqI739Rz4RlUPqwrkFFDF6EMvOOYjTx4E8Tl6gyCLRL8Mu7Ry12a13Tw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "4.1.0",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.21"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.0.tgz",+ "integrity": "sha512-3RZLZlh88Ib0J7NQTRATfc/3ZPOnSUn2uDBUoGNn5T36+bALixmzphN26OUD3LRXWkJu4H0s5vvUeqBiw+kS0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^3.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.0.tgz",+ "integrity": "sha512-Duvx2OzQ7d6OjchL+trw+aSrb9idh7pnNfxrklo14p3zmNL4qPCDeIJAK+eBKYjkIwG96Bc6vYuxhqDXQOWpoQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "4.1.0",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.0.tgz",+ "integrity": "sha512-0Vy9euT1kgsnj1CHttwi9i9o+4rRLEaPRSOJ5gyv579GJkNpgJK+B4HSv/rAWixx2wdAFci1X4CEPjiu2bXIMg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "4.1.0",+ "@vitest/utils": "4.1.0",+ "magic-string": "^0.30.21",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.0.tgz",+ "integrity": "sha512-pz77k+PgNpyMDv2FV6qmk5ZVau6c3R8HC8v342T2xlFxQKTrSeYw9waIJG8KgV9fFwAtTu4ceRzMivPTH6wSxw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.0.tgz",+ "integrity": "sha512-XfPXT6a8TZY3dcGY8EdwsBulFCIw+BeeX0RZn2x/BtiY/75YGh8FeWGG8QISN/WhaqSrE2OrlDgtF8q5uhOTmw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "4.1.0",+ "convert-source-map": "^2.0.0",+ "tinyrainbow": "^3.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/chai": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",+ "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz",+ "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/expect-type": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/lightningcss": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.32.0",+ "lightningcss-darwin-arm64": "1.32.0",+ "lightningcss-darwin-x64": "1.32.0",+ "lightningcss-freebsd-x64": "1.32.0",+ "lightningcss-linux-arm-gnueabihf": "1.32.0",+ "lightningcss-linux-arm64-gnu": "1.32.0",+ "lightningcss-linux-arm64-musl": "1.32.0",+ "lightningcss-linux-x64-gnu": "1.32.0",+ "lightningcss-linux-x64-musl": "1.32.0",+ "lightningcss-win32-arm64-msvc": "1.32.0",+ "lightningcss-win32-x64-msvc": "1.32.0"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/obug": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz",+ "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/sxzz",+ "https://opencollective.com/debug"+ ],+ "license": "MIT"+ },+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.8",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/rolldown": {+ "version": "1.0.0-rc.10",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.10.tgz",+ "integrity": "sha512-q7j6vvarRFmKpgJUT8HCAUljkgzEp4LAhPlJUvQhA5LA1SUL36s5QCysMutErzL3EbNOZOkoziSx9iZC4FddKA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@oxc-project/types": "=0.120.0",+ "@rolldown/pluginutils": "1.0.0-rc.10"+ },+ "bin": {+ "rolldown": "bin/cli.mjs"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "optionalDependencies": {+ "@rolldown/binding-android-arm64": "1.0.0-rc.10",+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.10",+ "@rolldown/binding-darwin-x64": "1.0.0-rc.10",+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.10",+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.10",+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.10",+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.10",+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.10",+ "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.10",+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.10",+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.10",+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.10",+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.10",+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.10",+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.10"+ }+ },+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.0.0.tgz",+ "integrity": "sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.4.tgz",+ "integrity": "sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.15",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz",+ "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,+ "license": "0BSD",+ "optional": true+ },"node_modules/undici-types": {"version": "7.18.2","resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-7.18.2.tgz","integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==","dev": true,"license": "MIT"+ },+ "node_modules/vite": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.1.tgz",+ "integrity": "sha512-wt+Z2qIhfFt85uiyRt5LPU4oVEJBXj8hZNWKeqFG4gRG/0RaRGJ7njQCwzFVjO+v4+Ipmf5CY7VdmZRAYYBPHw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lightningcss": "^1.32.0",+ "picomatch": "^4.0.3",+ "postcss": "^8.5.8",+ "rolldown": "1.0.0-rc.10",+ "tinyglobby": "^0.2.15"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^20.19.0 || >=22.12.0",+ "@vitejs/devtools": "^0.1.0",+ "esbuild": "^0.27.0",+ "jiti": ">=1.21.0",+ "less": "^4.0.0",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "@vitejs/devtools": {+ "optional": true+ },+ "esbuild": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vitest": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.0.tgz",+ "integrity": "sha512-YbDrMF9jM2Lqc++2530UourxZHmkKLxrs4+mYhEwqWS97WJ7wOYEkcr+QfRgJ3PW9wz3odRijLZjHEaRLTNbqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/expect": "4.1.0",+ "@vitest/mocker": "4.1.0",+ "@vitest/pretty-format": "4.1.0",+ "@vitest/runner": "4.1.0",+ "@vitest/snapshot": "4.1.0",+ "@vitest/spy": "4.1.0",+ "@vitest/utils": "4.1.0",+ "es-module-lexer": "^2.0.0",+ "expect-type": "^1.3.0",+ "magic-string": "^0.30.21",+ "obug": "^2.1.1",+ "pathe": "^2.0.3",+ "picomatch": "^4.0.3",+ "std-env": "^4.0.0-rc.1",+ "tinybench": "^2.9.0",+ "tinyexec": "^1.0.2",+ "tinyglobby": "^0.2.15",+ "tinyrainbow": "^3.0.3",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^20.0.0 || ^22.0.0 || >=24.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@opentelemetry/api": "^1.9.0",+ "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",+ "@vitest/browser-playwright": "4.1.0",+ "@vitest/browser-preview": "4.1.0",+ "@vitest/browser-webdriverio": "4.1.0",+ "@vitest/ui": "4.1.0",+ "happy-dom": "*",+ "jsdom": "*",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0-0"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@opentelemetry/api": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser-playwright": {+ "optional": true+ },+ "@vitest/browser-preview": {+ "optional": true+ },+ "@vitest/browser-webdriverio": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ },+ "vite": {+ "optional": false+ }+ }+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }}}}diff --git a/examples/openclaw-plugin/package.json b/examples/openclaw-plugin/package.jsonindex 60bb946a3..46c093a55 100644--- a/examples/openclaw-plugin/package.json+++ b/examples/openclaw-plugin/package.json@@ -3,6 +3,10 @@"version": "2026.2.6-3","description": "OpenClaw OpenViking-backed long-term memory plugin (install to ~/.openclaw/extensions)","type": "module",+ "scripts": {+ "test": "vitest run",+ "test:watch": "vitest"+ },"dependencies": {"@sinclair/typebox": "0.34.48"},@@ -12,6 +16,7 @@]},"devDependencies": {- "@types/node": "^25.3.5"+ "@types/node": "^25.3.5",+ "vitest": "^4.1.0"}}diff --git a/examples/openclaw-plugin/vitest.config.ts b/examples/openclaw-plugin/vitest.config.tsnew file mode 100644index 000000000..3f824fb95--- /dev/null+++ b/examples/openclaw-plugin/vitest.config.ts@@ -0,0 +1,8 @@+import { defineConfig } from "vitest/config";++export default defineConfig({+ test: {+ globals: true,+ environment: "node",+ },+});