@linnlabs/linnkit 0.34.0 → 0.35.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/CHANGELOG.md +9 -0
- package/dist/cli.cjs +1 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +1 -0
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +1 -0
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.cts +5 -0
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.ts +5 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +1 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +1 -0
- package/dist/runtime-kernel.cjs +9 -4
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +9 -4
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +9 -4
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +9 -4
- package/dist/testkit.js.map +1 -1
- package/docs/integration/child-runs.md +8 -0
- package/package.json +1 -1
|
@@ -126,10 +126,18 @@ Linnkit 只定义 child-run 原语和端口,不替 Host 选择全局实例。H
|
|
|
126
126
|
此模式的异常向 Host 传播且不清理 checkpoint,由 Host 将 attempt 结算为暂停或明确终止。
|
|
127
127
|
未配置 persistence 的现有嵌入调用仍使用短生命周期内存图。
|
|
128
128
|
|
|
129
|
+
Host 可在 admission 前保存 `initialInput: { turnId, request }`,再传给首次 invoke。
|
|
130
|
+
该输入拥有原始 query、模型、预算、工具集及 Host 扩展的冻结内容;框架只补充唯一 child
|
|
131
|
+
user-input fact 的 `currentUserEventId`,不以当前默认配置覆盖它。query / promptKey 必须与
|
|
132
|
+
本次调用相符。继续只读取 checkpoint 中的原 request;不重新读取 initialInput。
|
|
133
|
+
|
|
129
134
|
Host 必须先保存父 tool call 到稳定 child identity 的映射、冻结 child Agent 定义,并复用
|
|
130
135
|
原 child lifecycle / EventStore writer。仅注入持久 checkpoint 而每次注册新 child 不算恢复。
|
|
131
136
|
同步 child 的待审批限制仍然存在;需要产品交互的工作交给 foreground run。
|
|
132
137
|
|
|
138
|
+
Host 激活原 child 时向 `resumePausedRun` 传入本次父 execution 的 `parentSignal`;
|
|
139
|
+
旧父 signal 不能继续控制新 child attempt,新的父暂停或取消仍必须传递到 child。
|
|
140
|
+
|
|
133
141
|
- 单测:父 agent 工具内 `invokeChildRun` → 父 run 的 `cost().childrenTotal.llmCost > 0`
|
|
134
142
|
- 集成测:child run 内部调用工具时,`model.select` / `tool.allow` audit envelope 的 `scope.conversationId` 与注册 child run 的 conversationId 一致,`scope.runId` 是 child runId。
|
|
135
143
|
- 单测:child run 的 `abortSignal` 在调用前或执行中触发时,即使 provider 抛普通 Error,`invokeChildRun` 仍 resolve 出 `cancelled:true`,而不是 reject 或写成 failed。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linnlabs/linnkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
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",
|