@linnlabs/linnkit 0.37.2 → 0.37.3

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.
@@ -71,6 +71,16 @@ UI 历史应由 `events` 派生为可重建 read model。read model 可以与事
71
71
  写入。`drain` 只等待已安排的事务,不能把 staged facts 当成已持久化。客户端以持久运行
72
72
  状态确认完成,不把尚未提交的实时进度当作恢复凭据。
73
73
 
74
+ Graph working history 是 checkpoint 中的 durable 事实视图,不是实时事件 journal。
75
+ LLM、工具与取消结算在合并原历史和新事实时统一复用 `shouldPersistRuntimeEvent`:
76
+ 流式 thought delta、answer chunk/reset 和 tool_process 仍完整发布到 sink / NodeResult,
77
+ 但不进入后续 working history。已有合法 checkpoint 也在正常历史合并时执行同一投影;
78
+ 不需要 Host 修改数据库或按版本猜测字段。完整 thought、error/control、审批与工具终态
79
+ 等 durable 事实仍保留,不能拿 `shouldEnterAgentContext` 替代此资格;Provider prompt
80
+ 继续由 Context 的更窄规则投影,reasoning 回放来自 canonical assistant replay parts。
81
+ 这样 checkpoint 随语义事实增长,而不是随 Provider 分片数量增长。恢复/取消仍只依赖
82
+ 原请求、预算、pending call、执行意图、结果和 owner 凭据,不依赖实时分片。
83
+
74
84
  Graph 在节点调用前保存进度,每个工具 call 前保存执行意图、结束后保存结果与下一位置。
75
85
  `continueSession` 只挂载新的临时能力,保留原请求、历史、模型和累计预算;不创建用户输入,
76
86
  也不从 `user` 重启。`yielded` checkpoint 只返回已完成状态,不能重跑最终节点。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linnlabs/linnkit",
3
- "version": "0.37.2",
3
+ "version": "0.37.3",
4
4
  "type": "module",
5
5
  "description": "A fine-grained context engineering framework for Agent applications — control every token sent to the model, with clear run lifecycle, audit records, and testable protocol boundaries.",
6
6
  "license": "MIT",
@@ -109,7 +109,7 @@
109
109
  "vitest": "^4.1.11"
110
110
  },
111
111
  "linnkit": {
112
- "phase": "development (0.37.2 — filtered answer chunk continuity)",
112
+ "phase": "development (0.37.3 — durable working history)",
113
113
  "sourceOfTruth": "CHANGELOG.md",
114
114
  "notes": [
115
115
  "子入口 ./runtime-kernel/events 是 browser-safe slim seam:仅暴露 events governance 纯函数,禁止扩展任何 Node-only 依赖(如 node:async_hooks / crypto / fs)",