@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
@@ -173,6 +173,7 @@ declare const AgentSpecWorkingMemoryPolicy: z.ZodObject<{
173
173
  /** @deprecated Use maxRecentToolRuns. Kept as a compatibility alias for older AgentSpec configs. */
174
174
  maxRecentToolInteractions: z.ZodOptional<z.ZodNumber>;
175
175
  minToolInteractionsToKeep: z.ZodOptional<z.ZodNumber>;
176
+ /** 配对距离只计非同批结果消息;相邻结果为 1,不能跨 user_input 或后续 assistant。 */
176
177
  toolPairingSearchRange: z.ZodOptional<z.ZodNumber>;
177
178
  }, "strip", z.ZodTypeAny, {
178
179
  maxRecentToolRuns?: number | undefined;
@@ -664,6 +665,7 @@ declare const AgentSpecContextPolicy: z.ZodObject<{
664
665
  /** @deprecated Use maxRecentToolRuns. Kept as a compatibility alias for older AgentSpec configs. */
665
666
  maxRecentToolInteractions: z.ZodOptional<z.ZodNumber>;
666
667
  minToolInteractionsToKeep: z.ZodOptional<z.ZodNumber>;
668
+ /** 配对距离只计非同批结果消息;相邻结果为 1,不能跨 user_input 或后续 assistant。 */
667
669
  toolPairingSearchRange: z.ZodOptional<z.ZodNumber>;
668
670
  }, "strip", z.ZodTypeAny, {
669
671
  maxRecentToolRuns?: number | undefined;
@@ -173,6 +173,7 @@ declare const AgentSpecWorkingMemoryPolicy: z.ZodObject<{
173
173
  /** @deprecated Use maxRecentToolRuns. Kept as a compatibility alias for older AgentSpec configs. */
174
174
  maxRecentToolInteractions: z.ZodOptional<z.ZodNumber>;
175
175
  minToolInteractionsToKeep: z.ZodOptional<z.ZodNumber>;
176
+ /** 配对距离只计非同批结果消息;相邻结果为 1,不能跨 user_input 或后续 assistant。 */
176
177
  toolPairingSearchRange: z.ZodOptional<z.ZodNumber>;
177
178
  }, "strip", z.ZodTypeAny, {
178
179
  maxRecentToolRuns?: number | undefined;
@@ -664,6 +665,7 @@ declare const AgentSpecContextPolicy: z.ZodObject<{
664
665
  /** @deprecated Use maxRecentToolRuns. Kept as a compatibility alias for older AgentSpec configs. */
665
666
  maxRecentToolInteractions: z.ZodOptional<z.ZodNumber>;
666
667
  minToolInteractionsToKeep: z.ZodOptional<z.ZodNumber>;
668
+ /** 配对距离只计非同批结果消息;相邻结果为 1,不能跨 user_input 或后续 assistant。 */
667
669
  toolPairingSearchRange: z.ZodOptional<z.ZodNumber>;
668
670
  }, "strip", z.ZodTypeAny, {
669
671
  maxRecentToolRuns?: number | undefined;
@@ -2706,8 +2706,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2706
2706
  turn_id: string;
2707
2707
  op: "truncate_after" | "replace" | "redo" | "branch";
2708
2708
  metadata?: Record<string, SerializableJsonValue> | undefined;
2709
- version?: 1 | undefined;
2710
2709
  reason?: string | undefined;
2710
+ version?: 1 | undefined;
2711
2711
  run_id?: string | undefined;
2712
2712
  parent_run_id?: string | undefined;
2713
2713
  lane?: "foreground" | "auxiliary" | "child" | undefined;
@@ -3004,8 +3004,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3004
3004
  id: string;
3005
3005
  type: "run_execution_metrics";
3006
3006
  timestamp: number;
3007
- version: 1;
3008
3007
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
3008
+ version: 1;
3009
3009
  conversation_id: string;
3010
3010
  turn_id: string;
3011
3011
  duration_ms: number;
@@ -5292,8 +5292,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5292
5292
  turn_id: string;
5293
5293
  op: "truncate_after" | "replace" | "redo" | "branch";
5294
5294
  metadata?: Record<string, SerializableJsonValue> | undefined;
5295
- version?: 1 | undefined;
5296
5295
  reason?: string | undefined;
5296
+ version?: 1 | undefined;
5297
5297
  run_id?: string | undefined;
5298
5298
  parent_run_id?: string | undefined;
5299
5299
  lane?: "foreground" | "auxiliary" | "child" | undefined;
@@ -5590,8 +5590,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5590
5590
  id: string;
5591
5591
  type: "run_execution_metrics";
5592
5592
  timestamp: number;
5593
- version: 1;
5594
5593
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
5594
+ version: 1;
5595
5595
  conversation_id: string;
5596
5596
  turn_id: string;
5597
5597
  duration_ms: number;
@@ -6164,8 +6164,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6164
6164
  id: string;
6165
6165
  type: "run_execution_metrics";
6166
6166
  timestamp: number;
6167
- version: 1;
6168
6167
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
6168
+ version: 1;
6169
6169
  conversation_id: string;
6170
6170
  turn_id: string;
6171
6171
  duration_ms: number;
@@ -6767,8 +6767,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6767
6767
  id: string;
6768
6768
  type: "run_execution_metrics";
6769
6769
  timestamp: number;
6770
- version: 1;
6771
6770
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
6771
+ version: 1;
6772
6772
  conversation_id: string;
6773
6773
  turn_id: string;
6774
6774
  duration_ms: number;
@@ -7307,8 +7307,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7307
7307
  id: string;
7308
7308
  type: "run_execution_metrics";
7309
7309
  timestamp: number;
7310
- version: 1;
7311
7310
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
7311
+ version: 1;
7312
7312
  conversation_id: string;
7313
7313
  turn_id: string;
7314
7314
  duration_ms: number;
@@ -2706,8 +2706,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2706
2706
  turn_id: string;
2707
2707
  op: "truncate_after" | "replace" | "redo" | "branch";
2708
2708
  metadata?: Record<string, SerializableJsonValue> | undefined;
2709
- version?: 1 | undefined;
2710
2709
  reason?: string | undefined;
2710
+ version?: 1 | undefined;
2711
2711
  run_id?: string | undefined;
2712
2712
  parent_run_id?: string | undefined;
2713
2713
  lane?: "foreground" | "auxiliary" | "child" | undefined;
@@ -3004,8 +3004,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3004
3004
  id: string;
3005
3005
  type: "run_execution_metrics";
3006
3006
  timestamp: number;
3007
- version: 1;
3008
3007
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
3008
+ version: 1;
3009
3009
  conversation_id: string;
3010
3010
  turn_id: string;
3011
3011
  duration_ms: number;
@@ -5292,8 +5292,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5292
5292
  turn_id: string;
5293
5293
  op: "truncate_after" | "replace" | "redo" | "branch";
5294
5294
  metadata?: Record<string, SerializableJsonValue> | undefined;
5295
- version?: 1 | undefined;
5296
5295
  reason?: string | undefined;
5296
+ version?: 1 | undefined;
5297
5297
  run_id?: string | undefined;
5298
5298
  parent_run_id?: string | undefined;
5299
5299
  lane?: "foreground" | "auxiliary" | "child" | undefined;
@@ -5590,8 +5590,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5590
5590
  id: string;
5591
5591
  type: "run_execution_metrics";
5592
5592
  timestamp: number;
5593
- version: 1;
5594
5593
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
5594
+ version: 1;
5595
5595
  conversation_id: string;
5596
5596
  turn_id: string;
5597
5597
  duration_ms: number;
@@ -6164,8 +6164,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6164
6164
  id: string;
6165
6165
  type: "run_execution_metrics";
6166
6166
  timestamp: number;
6167
- version: 1;
6168
6167
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
6168
+ version: 1;
6169
6169
  conversation_id: string;
6170
6170
  turn_id: string;
6171
6171
  duration_ms: number;
@@ -6767,8 +6767,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6767
6767
  id: string;
6768
6768
  type: "run_execution_metrics";
6769
6769
  timestamp: number;
6770
- version: 1;
6771
6770
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
6771
+ version: 1;
6772
6772
  conversation_id: string;
6773
6773
  turn_id: string;
6774
6774
  duration_ms: number;
@@ -7307,8 +7307,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7307
7307
  id: string;
7308
7308
  type: "run_execution_metrics";
7309
7309
  timestamp: number;
7310
- version: 1;
7311
7310
  outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
7311
+ version: 1;
7312
7312
  conversation_id: string;
7313
7313
  turn_id: string;
7314
7314
  duration_ms: number;
@@ -538,6 +538,7 @@ var AgentSpecWorkingMemoryPolicy = zod.z.object({
538
538
  /** @deprecated Use maxRecentToolRuns. Kept as a compatibility alias for older AgentSpec configs. */
539
539
  maxRecentToolInteractions: zod.z.number().int().nonnegative().optional(),
540
540
  minToolInteractionsToKeep: zod.z.number().int().nonnegative().optional(),
541
+ /** 配对距离只计非同批结果消息;相邻结果为 1,不能跨 user_input 或后续 assistant。 */
541
542
  toolPairingSearchRange: zod.z.number().int().positive().optional()
542
543
  });
543
544
  var AgentSpecTokenEstimationPolicy = zod.z.object({