@linnlabs/linnkit 0.37.4 → 0.38.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 +38 -0
- package/dist/cli.cjs +347 -179
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +347 -179
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +55 -11
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +55 -11
- package/dist/context-manager.js.map +1 -1
- package/dist/contracts/audit.d.cts +6 -6
- package/dist/contracts/audit.d.ts +6 -6
- package/dist/contracts/events.d.cts +532 -50
- package/dist/contracts/events.d.ts +532 -50
- package/dist/contracts/llm-retry.d.cts +47 -0
- package/dist/contracts/llm-retry.d.ts +47 -0
- package/dist/contracts/messages.d.cts +2 -2
- package/dist/contracts/messages.d.ts +2 -2
- package/dist/contracts/runtime-error.d.cts +26 -0
- package/dist/contracts/runtime-error.d.ts +26 -0
- package/dist/contracts/sse.d.cts +571 -55
- package/dist/contracts/sse.d.ts +571 -55
- package/dist/contracts/sub-run-trace-payload.d.cts +102 -6
- package/dist/contracts/sub-run-trace-payload.d.ts +102 -6
- package/dist/contracts/token-accounting.d.cts +18 -18
- package/dist/contracts/token-accounting.d.ts +18 -18
- package/dist/contracts.cjs +65 -10
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +4 -2
- package/dist/contracts.d.ts +4 -2
- package/dist/contracts.js +62 -11
- package/dist/contracts.js.map +1 -1
- package/dist/index.cjs +506 -286
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +506 -286
- package/dist/index.js.map +1 -1
- package/dist/ports/canonical-inference.d.cts +3 -0
- package/dist/ports/canonical-inference.d.ts +3 -0
- package/dist/ports/llm-call.d.cts +4 -0
- package/dist/ports/llm-call.d.ts +4 -0
- package/dist/quickstart.cjs +347 -179
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +347 -179
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/child-run-trace/subrunTrace.types.d.cts +8 -0
- package/dist/runtime-kernel/child-run-trace/subrunTrace.types.d.ts +8 -0
- package/dist/runtime-kernel/events/agentEvents.d.cts +85 -4
- package/dist/runtime-kernel/events/agentEvents.d.ts +85 -4
- package/dist/runtime-kernel/events/eventGovernance.d.cts +1 -1
- package/dist/runtime-kernel/events/eventGovernance.d.ts +1 -1
- package/dist/runtime-kernel/events.cjs +55 -11
- package/dist/runtime-kernel/events.cjs.map +1 -1
- package/dist/runtime-kernel/events.js +55 -11
- package/dist/runtime-kernel/events.js.map +1 -1
- package/dist/runtime-kernel/llm/request-builder.d.cts +2 -0
- package/dist/runtime-kernel/llm/request-builder.d.ts +2 -0
- package/dist/runtime-kernel.cjs +468 -271
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +468 -271
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/shared/errorClassifier.d.cts +5 -0
- package/dist/shared/errorClassifier.d.ts +5 -0
- package/dist/testkit.cjs +466 -269
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +466 -269
- package/dist/testkit.js.map +1 -1
- package/docs/integration/llm-provider.md +24 -0
- package/docs/integration/realtime.md +29 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.38.0] - 2026-10-14
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Optional `maxRetriesByCategory` sub-budgets for transport, model-output, rate-limit
|
|
22
|
+
and other retryable failures, with optional canonical failure `retry_category` supplied
|
|
23
|
+
by the Host failure owner rather than inferred from provider-specific codes. All remain bounded by the existing same-model retry
|
|
24
|
+
ceiling and total upstream-attempt budget; SDK retries stay disabled.
|
|
25
|
+
- Durable `llm_retry` lifecycle facts with one invocation identity, category counters,
|
|
26
|
+
timing and terminal state. Runtime/SSE events, UI governance, optional final-error
|
|
27
|
+
linkage and child retry/error trace payloads share formal browser-safe contracts.
|
|
28
|
+
Request observations persist through the existing ordered writer during backoff,
|
|
29
|
+
independently of uncommitted LLM output and checkpoint state.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- Ordinary transport failures now use the existing exponential rate-limit backoff,
|
|
34
|
+
capped at 60 seconds locally while retaining longer explicit wait suggestions.
|
|
35
|
+
Empty responses are classified as model-output failures (`llm.empty_response`).
|
|
36
|
+
- Cancelling a retry wait aborts immediately, clears its timer and records cancellation.
|
|
37
|
+
Retry success/exhaustion does not replace the authoritative Agent run lifecycle.
|
|
38
|
+
|
|
39
|
+
### Integration
|
|
40
|
+
|
|
41
|
+
- Hosts must handle the additive `llm_retry` Runtime/SSE type and child trace kinds
|
|
42
|
+
`llm_retry` / `error`. Rendering, localization and run-resume controls remain Host
|
|
43
|
+
responsibilities. This minor release is based on 0.37.5 and contains no unrelated
|
|
44
|
+
unreleased runtime boundary changes.
|
|
45
|
+
|
|
46
|
+
## [0.37.5] - 2026-10-13
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- Honor the Host's configured retry delay as the minimum wait for ordinary retryable
|
|
51
|
+
LLM failures. A classifier's shorter default suggestion no longer overrides it;
|
|
52
|
+
longer error-suggested delays remain intact. Rate-limit backoff, attempt budgets,
|
|
53
|
+
cancellation and non-retryable failure handling are unchanged.
|
|
54
|
+
|
|
17
55
|
## [0.37.4] - 2026-10-09
|
|
18
56
|
|
|
19
57
|
### Fixed
|