@linnlabs/linnkit 0.45.0 → 0.47.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/cli.cjs +65 -243
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +65 -243
  5. package/dist/cli.js.map +1 -1
  6. package/dist/context-manager.cjs +7 -6
  7. package/dist/context-manager.cjs.map +1 -1
  8. package/dist/context-manager.js +7 -6
  9. package/dist/context-manager.js.map +1 -1
  10. package/dist/index.cjs +75 -253
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.js +75 -253
  13. package/dist/index.js.map +1 -1
  14. package/dist/ports/llm-call.d.cts +2 -16
  15. package/dist/ports/llm-call.d.ts +2 -16
  16. package/dist/quickstart.cjs +65 -243
  17. package/dist/quickstart.cjs.map +1 -1
  18. package/dist/quickstart.js +65 -243
  19. package/dist/quickstart.js.map +1 -1
  20. package/dist/runtime-kernel/graph-engine/executor.d.cts +0 -2
  21. package/dist/runtime-kernel/graph-engine/executor.d.ts +0 -2
  22. package/dist/runtime-kernel/graph-engine/types.d.cts +1 -4
  23. package/dist/runtime-kernel/graph-engine/types.d.ts +1 -4
  24. package/dist/runtime-kernel/llm/definitions/llmFallbackObserver.d.cts +1 -2
  25. package/dist/runtime-kernel/llm/definitions/llmFallbackObserver.d.ts +1 -2
  26. package/dist/runtime-kernel/llm/modelCatalog.d.cts +2 -3
  27. package/dist/runtime-kernel/llm/modelCatalog.d.ts +2 -3
  28. package/dist/runtime-kernel.cjs +75 -253
  29. package/dist/runtime-kernel.cjs.map +1 -1
  30. package/dist/runtime-kernel.js +75 -253
  31. package/dist/runtime-kernel.js.map +1 -1
  32. package/dist/testkit.cjs +83 -261
  33. package/dist/testkit.cjs.map +1 -1
  34. package/dist/testkit.js +83 -261
  35. package/dist/testkit.js.map +1 -1
  36. package/docs/integration/agent-registration-guide.md +1 -1
  37. package/docs/integration/context-engineering.md +5 -5
  38. package/docs/integration/llm-provider.md +1 -1
  39. package/docs/integration/tool-development-guide.md +4 -2
  40. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -12,6 +12,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
 
13
13
  ---
14
14
 
15
+ ## [Unreleased]
16
+
17
+ ---
18
+
19
+ ## [0.47.0] - 2026-11-26
20
+
21
+ ### Removed
22
+
23
+ - Cloud quota fallback. `GraphAgentExecutorDependencies.cloudQuotaFallbackModelId`,
24
+ `LlmCallOptions.cloud_quota_fallback_model_id`,
25
+ `LlmFallbackObserver.onCloudQuotaFallbackApplied`, the `'cloud-quota'`
26
+ `ModelFallbackPolicy`, `ErrorClassifier.isCloudQuotaError` and the run model
27
+ lock (`ExecutorLocalState.runLockedModelId`) are gone. The quota detection
28
+ matched one host's Chinese error wording and keyed off its billing mode, which
29
+ does not belong in a general framework; a service that wants to fall back to
30
+ another model on quota errors should do it server-side. Checkpoints saved by
31
+ 0.46.0 and earlier that carry `runLockedModelId` still load; the field is
32
+ dropped and the run continues with the requested model.
33
+ - The two quota message patterns in `ErrorClassifier` ("已达上限", "免费期已结束").
34
+ Such errors are now classified by the generic rules.
35
+ - `ToolExecutionContext.activeModelId`, added in 0.46.0. Without the run model
36
+ lock it always equalled `modelId`; decide tool result delivery from `modelId`.
37
+ - `ModelCatalogEntry.billing_mode`. Linnkit no longer reads billing modes.
38
+
39
+ ### Changed
40
+
41
+ - A model with `enable_client_retry: false` is never retried by the client, even
42
+ when the call passes `retry_policy: 'client'`. This replaces the hard
43
+ "no client retry for cloud billing" rule: hosts mark models whose every request
44
+ is billed (or retried server-side) with `enable_client_retry: false`.
45
+
46
+ ---
47
+
48
+ ## [0.46.0] - 2026-11-26
49
+
50
+ ### Added
51
+
52
+ - `ToolExecutionContext.activeModelId`: the model that will receive this tool
53
+ result, set by ToolNode before each tool runs. It equals `modelId` until a
54
+ cloud quota fallback locks the run to the fallback model, and then names the
55
+ fallback model. Hosts deciding whether a tool result may carry images should
56
+ read it instead of `modelId`; otherwise a text-only fallback model gets an
57
+ image and the next LLM call fails input preflight. It is a runtime-reserved
58
+ key, so Host tool-context patches cannot set it.
59
+
60
+ ### Removed
61
+
62
+ - `ExecutorLocalState.lastSuccessfulLlmModelId` and its `ExecutorLocalPatch`
63
+ key. The LLM stage still wrote it, but nothing has read it since 0.42.0.
64
+ Checkpoints saved by 0.45.0 and earlier that carry the field still load; the
65
+ value is dropped on load.
66
+
67
+ ### Documentation
68
+
69
+ - Tool development guide §7.4 now spells out why the Host must decide about
70
+ returning images before the tool runs: once an image reaches history, every
71
+ later LLM call on a route without image input fails preflight.
72
+
73
+ ---
74
+
15
75
  ## [0.45.0] - 2026-11-21
16
76
 
17
77
  ### Added