@linnlabs/linnkit 0.42.0 → 0.43.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 +20 -0
- package/dist/cli.cjs +12 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +12 -1
- package/dist/cli.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +5 -5
- package/dist/contracts/agentSpec.d.ts +5 -5
- package/dist/contracts/audit.d.cts +10 -10
- package/dist/contracts/audit.d.ts +10 -10
- package/dist/contracts/contextPolicy.d.cts +14 -14
- package/dist/contracts/contextPolicy.d.ts +14 -14
- package/dist/contracts/events.d.cts +117 -117
- package/dist/contracts/events.d.ts +117 -117
- package/dist/contracts/execution.d.cts +2 -2
- package/dist/contracts/execution.d.ts +2 -2
- package/dist/contracts/llm-retry.d.cts +2 -2
- package/dist/contracts/llm-retry.d.ts +2 -2
- package/dist/contracts/messages.d.cts +32 -32
- package/dist/contracts/messages.d.ts +32 -32
- package/dist/contracts/sse.d.cts +97 -97
- package/dist/contracts/sse.d.ts +97 -97
- package/dist/contracts/sub-run-trace-payload.d.cts +8 -8
- package/dist/contracts/sub-run-trace-payload.d.ts +8 -8
- package/dist/contracts/token-accounting.d.cts +12 -12
- package/dist/contracts/token-accounting.d.ts +12 -12
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +12 -1
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +12 -1
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +2 -2
- package/dist/runtime-kernel/events/agentEvents.d.ts +2 -2
- package/dist/runtime-kernel/graph-engine/engine.d.cts +1 -0
- package/dist/runtime-kernel/graph-engine/engine.d.ts +1 -0
- package/dist/runtime-kernel.cjs +12 -1
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +12 -1
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +12 -1
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +12 -1
- package/dist/testkit.js.map +1 -1
- package/docs/integration/tool-development-guide.md +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## [0.43.0] - 2026-11-12
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- `GraphExecutor.resumeSession` now finishes the tool batch that an
|
|
20
|
+
interactive (`requireUser`) tool interrupted before returning to the model.
|
|
21
|
+
Previously a resume always went to `llm`, so calls queued after the
|
|
22
|
+
interactive tool in the same batch never ran. The batch was left with calls
|
|
23
|
+
that had no results, context building dropped the whole group — including
|
|
24
|
+
the user's answer — and the model asked the same question again.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Without `nodeId`, `resumeSession` starts at `tool` when the waiting
|
|
29
|
+
checkpoint still has pending tool calls, and at `llm` otherwise. Passing a
|
|
30
|
+
`nodeId` other than `tool` while calls are pending now throws. Hosts that
|
|
31
|
+
passed `nodeId: 'llm'` should drop it.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
15
35
|
## [0.42.0] - 2026-11-11
|
|
16
36
|
|
|
17
37
|
### Breaking
|
package/dist/cli.cjs
CHANGED
|
@@ -3105,6 +3105,16 @@ function mergeResumeSessionLocal(persistedLocal, localPatch) {
|
|
|
3105
3105
|
}
|
|
3106
3106
|
};
|
|
3107
3107
|
}
|
|
3108
|
+
function resolveResumeNodeId(local, requested) {
|
|
3109
|
+
const pending = local?.pendingToolCalls;
|
|
3110
|
+
if (!Array.isArray(pending) || pending.length === 0) return requested ?? "llm";
|
|
3111
|
+
if (requested !== void 0 && requested !== "tool") {
|
|
3112
|
+
throw new Error(
|
|
3113
|
+
`Graph resume must first run ${pending.length} pending tool call(s) from the interrupted batch: requested node=${requested}`
|
|
3114
|
+
);
|
|
3115
|
+
}
|
|
3116
|
+
return "tool";
|
|
3117
|
+
}
|
|
3108
3118
|
var GraphExecutor = class {
|
|
3109
3119
|
constructor(checkpointer, config = {}) {
|
|
3110
3120
|
this.checkpointer = checkpointer;
|
|
@@ -3217,13 +3227,14 @@ var GraphExecutor = class {
|
|
|
3217
3227
|
);
|
|
3218
3228
|
}
|
|
3219
3229
|
const resumedLocal = mergeResumeSessionLocal(current.local, input.localPatch);
|
|
3230
|
+
const nodeId = resolveResumeNodeId(resumedLocal, input.nodeId);
|
|
3220
3231
|
if (this.executionCheckpointPort && current.local?.executorLocal) {
|
|
3221
3232
|
resumedLocal.executorLocal = { ...current.local.executorLocal };
|
|
3222
3233
|
}
|
|
3223
3234
|
this.ephemeralLocals.set(checkpointKey, resumedLocal);
|
|
3224
3235
|
await this.commitCheckpoint(checkpointKey, {
|
|
3225
3236
|
...current,
|
|
3226
|
-
nodeId
|
|
3237
|
+
nodeId,
|
|
3227
3238
|
...this.executionCheckpointPort ? { executionStatus: "ready" } : {},
|
|
3228
3239
|
revision: currentRevision + 1,
|
|
3229
3240
|
local: sanitizeCheckpointLocal(resumedLocal)
|