@linnlabs/linnkit 0.37.3 → 0.37.5

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 (43) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cli.cjs +2 -1
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +2 -1
  5. package/dist/cli.js.map +1 -1
  6. package/dist/context-manager/profiles/agent/context/config.d.cts +2 -2
  7. package/dist/context-manager/profiles/agent/context/config.d.ts +2 -2
  8. package/dist/context-manager.cjs +36 -24
  9. package/dist/context-manager.cjs.map +1 -1
  10. package/dist/context-manager.js +36 -24
  11. package/dist/context-manager.js.map +1 -1
  12. package/dist/contracts/contextPolicy.d.cts +2 -0
  13. package/dist/contracts/contextPolicy.d.ts +2 -0
  14. package/dist/contracts/events.d.cts +7 -7
  15. package/dist/contracts/events.d.ts +7 -7
  16. package/dist/contracts.cjs +1 -0
  17. package/dist/contracts.cjs.map +1 -1
  18. package/dist/contracts.js +1 -0
  19. package/dist/contracts.js.map +1 -1
  20. package/dist/index.cjs +2 -1
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.js +2 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/quickstart.cjs +2 -1
  25. package/dist/quickstart.cjs.map +1 -1
  26. package/dist/quickstart.js +2 -1
  27. package/dist/quickstart.js.map +1 -1
  28. package/dist/runtime-kernel/events.cjs +1 -0
  29. package/dist/runtime-kernel/events.cjs.map +1 -1
  30. package/dist/runtime-kernel/events.js +1 -0
  31. package/dist/runtime-kernel/events.js.map +1 -1
  32. package/dist/runtime-kernel.cjs +2 -1
  33. package/dist/runtime-kernel.cjs.map +1 -1
  34. package/dist/runtime-kernel.js +2 -1
  35. package/dist/runtime-kernel.js.map +1 -1
  36. package/dist/testkit.cjs +2 -1
  37. package/dist/testkit.cjs.map +1 -1
  38. package/dist/testkit.js +2 -1
  39. package/dist/testkit.js.map +1 -1
  40. package/docs/integration/context-engineering.md +7 -1
  41. package/docs/integration/llm-provider.md +5 -0
  42. package/docs/integration/tool-history.md +23 -0
  43. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -14,6 +14,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.37.5] - 2026-10-13
18
+
19
+ ### Fixed
20
+
21
+ - Honor the Host's configured retry delay as the minimum wait for ordinary retryable
22
+ LLM failures. A classifier's shorter default suggestion no longer overrides it;
23
+ longer error-suggested delays remain intact. Rate-limit backoff, attempt budgets,
24
+ cancellation and non-retryable failure handling are unchanged.
25
+
26
+ ## [0.37.4] - 2026-10-09
27
+
28
+ ### Fixed
29
+
30
+ - Preserve complete assistant tool batches in the next canonical model request, including
31
+ batches larger than ten calls. Successful and failed results remain paired by call ID,
32
+ with their original observation text and message order intact.
33
+ - Count only non-batch messages toward `workingMemory.toolPairingSearchRange`; sibling
34
+ results no longer consume the pairing window. The default remains `10`. A new user
35
+ input or assistant message closes the previous batch regardless of that window.
36
+ - Require one result per unique call ID. Missing results, duplicate declarations or
37
+ outputs, and conflicting explicit tool names cannot form a complete replay or
38
+ compaction group. Low-level messages may still omit the optional result tool name.
39
+ Protected batches remain atomic when over budget, leaving capacity admission and
40
+ automatic compaction responsible for resolving the excess.
41
+
17
42
  ## [0.37.3] - 2026-09-12
18
43
 
19
44
  ### Fixed
package/dist/cli.cjs CHANGED
@@ -478,6 +478,7 @@ var AgentSpecWorkingMemoryPolicy = zod.z.object({
478
478
  /** @deprecated Use maxRecentToolRuns. Kept as a compatibility alias for older AgentSpec configs. */
479
479
  maxRecentToolInteractions: zod.z.number().int().nonnegative().optional(),
480
480
  minToolInteractionsToKeep: zod.z.number().int().nonnegative().optional(),
481
+ /** 配对距离只计非同批结果消息;相邻结果为 1,不能跨 user_input 或后续 assistant。 */
481
482
  toolPairingSearchRange: zod.z.number().int().positive().optional()
482
483
  });
483
484
  var AgentSpecTokenEstimationPolicy = zod.z.object({
@@ -2430,7 +2431,7 @@ var ErrorClassifier = class {
2430
2431
  if (classification.category === "rate_limit" /* RATE_LIMIT */) {
2431
2432
  return Math.min(baseDelay * Math.pow(2, attemptNumber), maxDelay);
2432
2433
  }
2433
- return classification.suggestedDelay || baseDelay;
2434
+ return Math.max(baseDelay, classification.suggestedDelay ?? 0);
2434
2435
  }
2435
2436
  static isCloudQuotaError(error) {
2436
2437
  const msg = (error.message || "").toLowerCase();