@linnlabs/linnkit 0.35.0 → 0.35.1

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 (44) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cli.cjs +10 -2
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +10 -2
  5. package/dist/cli.js.map +1 -1
  6. package/dist/contracts/agentSpec.d.cts +30 -30
  7. package/dist/contracts/agentSpec.d.ts +30 -30
  8. package/dist/contracts/audit.d.cts +32 -32
  9. package/dist/contracts/audit.d.ts +32 -32
  10. package/dist/contracts/contextPolicy.d.cts +36 -36
  11. package/dist/contracts/contextPolicy.d.ts +36 -36
  12. package/dist/contracts/events.d.cts +1113 -1113
  13. package/dist/contracts/events.d.ts +1113 -1113
  14. package/dist/contracts/execution.d.cts +8 -8
  15. package/dist/contracts/execution.d.ts +8 -8
  16. package/dist/contracts/messages.d.cts +1178 -1178
  17. package/dist/contracts/messages.d.ts +1178 -1178
  18. package/dist/contracts/provider-continuation.d.cts +28 -28
  19. package/dist/contracts/provider-continuation.d.ts +28 -28
  20. package/dist/contracts/sse.d.cts +897 -897
  21. package/dist/contracts/sse.d.ts +897 -897
  22. package/dist/contracts/sub-run-trace-payload.d.cts +26 -26
  23. package/dist/contracts/sub-run-trace-payload.d.ts +26 -26
  24. package/dist/contracts/token-accounting.d.cts +38 -38
  25. package/dist/contracts/token-accounting.d.ts +38 -38
  26. package/dist/index.cjs +10 -2
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.js +10 -2
  29. package/dist/index.js.map +1 -1
  30. package/dist/quickstart.cjs +10 -2
  31. package/dist/quickstart.cjs.map +1 -1
  32. package/dist/quickstart.js +10 -2
  33. package/dist/quickstart.js.map +1 -1
  34. package/dist/runtime-kernel/events/agentEvents.d.cts +172 -172
  35. package/dist/runtime-kernel/events/agentEvents.d.ts +172 -172
  36. package/dist/runtime-kernel.cjs +10 -2
  37. package/dist/runtime-kernel.cjs.map +1 -1
  38. package/dist/runtime-kernel.js +10 -2
  39. package/dist/runtime-kernel.js.map +1 -1
  40. package/dist/testkit.cjs +10 -2
  41. package/dist/testkit.cjs.map +1 -1
  42. package/dist/testkit.js +10 -2
  43. package/dist/testkit.js.map +1 -1
  44. package/package.json +1 -1
@@ -27,10 +27,10 @@ declare const AgentSpecAuditConfig: z.ZodObject<{
27
27
  redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
28
28
  pii: z.ZodOptional<z.ZodBoolean>;
29
29
  }, "strip", z.ZodTypeAny, {
30
- redactionLevel?: "none" | "strict" | "standard" | undefined;
30
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
31
31
  pii?: boolean | undefined;
32
32
  }, {
33
- redactionLevel?: "none" | "strict" | "standard" | undefined;
33
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
34
34
  pii?: boolean | undefined;
35
35
  }>;
36
36
  type AgentSpecAuditConfig = z.infer<typeof AgentSpecAuditConfig>;
@@ -82,14 +82,14 @@ declare const AgentSpec: z.ZodObject<{
82
82
  maxInteractionGroups: z.ZodOptional<z.ZodNumber>;
83
83
  overflowStrategy: z.ZodOptional<z.ZodEnum<["keep-latest", "fail-fast"]>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
- strategy?: "none" | "per-pair" | "per-run" | undefined;
85
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
86
86
  retentionMode?: "drop" | "compress" | undefined;
87
87
  keepLatestToolPairs?: number | undefined;
88
88
  keepLatestRuns?: number | undefined;
89
89
  maxInteractionGroups?: number | undefined;
90
90
  overflowStrategy?: "keep-latest" | "fail-fast" | undefined;
91
91
  }, {
92
- strategy?: "none" | "per-pair" | "per-run" | undefined;
92
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
93
93
  retentionMode?: "drop" | "compress" | undefined;
94
94
  keepLatestToolPairs?: number | undefined;
95
95
  keepLatestRuns?: number | undefined;
@@ -176,7 +176,7 @@ declare const AgentSpec: z.ZodObject<{
176
176
  strategyName: string;
177
177
  }>, "many">>;
178
178
  }, "strip", z.ZodTypeAny, {
179
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
179
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
180
180
  alwaysKeepFenceKinds?: string[] | undefined;
181
181
  truncationRules?: {
182
182
  fenceKind: string;
@@ -184,7 +184,7 @@ declare const AgentSpec: z.ZodObject<{
184
184
  strategyName: string;
185
185
  }[] | undefined;
186
186
  }, {
187
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
187
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
188
188
  alwaysKeepFenceKinds?: string[] | undefined;
189
189
  truncationRules?: {
190
190
  fenceKind: string;
@@ -297,18 +297,18 @@ declare const AgentSpec: z.ZodObject<{
297
297
  }, "strip", z.ZodTypeAny, {
298
298
  kind: string;
299
299
  value?: string | number | boolean | undefined;
300
- toolName?: string | undefined;
301
300
  threshold?: number | undefined;
302
301
  moduloStep?: boolean | undefined;
302
+ toolName?: string | undefined;
303
303
  period?: number | undefined;
304
304
  minStep?: number | undefined;
305
305
  config?: Record<string, SerializableJsonValue> | undefined;
306
306
  }, {
307
307
  kind: string;
308
308
  value?: string | number | boolean | undefined;
309
- toolName?: string | undefined;
310
309
  threshold?: number | undefined;
311
310
  moduloStep?: boolean | undefined;
311
+ toolName?: string | undefined;
312
312
  period?: number | undefined;
313
313
  minStep?: number | undefined;
314
314
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -320,9 +320,9 @@ declare const AgentSpec: z.ZodObject<{
320
320
  trigger: {
321
321
  kind: string;
322
322
  value?: string | number | boolean | undefined;
323
- toolName?: string | undefined;
324
323
  threshold?: number | undefined;
325
324
  moduloStep?: boolean | undefined;
325
+ toolName?: string | undefined;
326
326
  period?: number | undefined;
327
327
  minStep?: number | undefined;
328
328
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -334,9 +334,9 @@ declare const AgentSpec: z.ZodObject<{
334
334
  trigger: {
335
335
  kind: string;
336
336
  value?: string | number | boolean | undefined;
337
- toolName?: string | undefined;
338
337
  threshold?: number | undefined;
339
338
  moduloStep?: boolean | undefined;
339
+ toolName?: string | undefined;
340
340
  period?: number | undefined;
341
341
  minStep?: number | undefined;
342
342
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -357,9 +357,9 @@ declare const AgentSpec: z.ZodObject<{
357
357
  trigger: {
358
358
  kind: string;
359
359
  value?: string | number | boolean | undefined;
360
- toolName?: string | undefined;
361
360
  threshold?: number | undefined;
362
361
  moduloStep?: boolean | undefined;
362
+ toolName?: string | undefined;
363
363
  period?: number | undefined;
364
364
  minStep?: number | undefined;
365
365
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -380,9 +380,9 @@ declare const AgentSpec: z.ZodObject<{
380
380
  trigger: {
381
381
  kind: string;
382
382
  value?: string | number | boolean | undefined;
383
- toolName?: string | undefined;
384
383
  threshold?: number | undefined;
385
384
  moduloStep?: boolean | undefined;
385
+ toolName?: string | undefined;
386
386
  period?: number | undefined;
387
387
  minStep?: number | undefined;
388
388
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -403,9 +403,9 @@ declare const AgentSpec: z.ZodObject<{
403
403
  trigger: {
404
404
  kind: string;
405
405
  value?: string | number | boolean | undefined;
406
- toolName?: string | undefined;
407
406
  threshold?: number | undefined;
408
407
  moduloStep?: boolean | undefined;
408
+ toolName?: string | undefined;
409
409
  period?: number | undefined;
410
410
  minStep?: number | undefined;
411
411
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -426,9 +426,9 @@ declare const AgentSpec: z.ZodObject<{
426
426
  trigger: {
427
427
  kind: string;
428
428
  value?: string | number | boolean | undefined;
429
- toolName?: string | undefined;
430
429
  threshold?: number | undefined;
431
430
  moduloStep?: boolean | undefined;
431
+ toolName?: string | undefined;
432
432
  period?: number | undefined;
433
433
  minStep?: number | undefined;
434
434
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -461,7 +461,7 @@ declare const AgentSpec: z.ZodObject<{
461
461
  workingMemoryBudgetPercentage?: number | undefined;
462
462
  } | undefined;
463
463
  toolHistory?: {
464
- strategy?: "none" | "per-pair" | "per-run" | undefined;
464
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
465
465
  retentionMode?: "drop" | "compress" | undefined;
466
466
  keepLatestToolPairs?: number | undefined;
467
467
  keepLatestRuns?: number | undefined;
@@ -484,7 +484,7 @@ declare const AgentSpec: z.ZodObject<{
484
484
  maxCompactionsPerRun?: number | undefined;
485
485
  } | undefined;
486
486
  mustKeep?: {
487
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
487
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
488
488
  alwaysKeepFenceKinds?: string[] | undefined;
489
489
  truncationRules?: {
490
490
  fenceKind: string;
@@ -526,9 +526,9 @@ declare const AgentSpec: z.ZodObject<{
526
526
  trigger: {
527
527
  kind: string;
528
528
  value?: string | number | boolean | undefined;
529
- toolName?: string | undefined;
530
529
  threshold?: number | undefined;
531
530
  moduloStep?: boolean | undefined;
531
+ toolName?: string | undefined;
532
532
  period?: number | undefined;
533
533
  minStep?: number | undefined;
534
534
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -551,7 +551,7 @@ declare const AgentSpec: z.ZodObject<{
551
551
  workingMemoryBudgetPercentage?: number | undefined;
552
552
  } | undefined;
553
553
  toolHistory?: {
554
- strategy?: "none" | "per-pair" | "per-run" | undefined;
554
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
555
555
  retentionMode?: "drop" | "compress" | undefined;
556
556
  keepLatestToolPairs?: number | undefined;
557
557
  keepLatestRuns?: number | undefined;
@@ -574,7 +574,7 @@ declare const AgentSpec: z.ZodObject<{
574
574
  maxCompactionsPerRun?: number | undefined;
575
575
  } | undefined;
576
576
  mustKeep?: {
577
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
577
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
578
578
  alwaysKeepFenceKinds?: string[] | undefined;
579
579
  truncationRules?: {
580
580
  fenceKind: string;
@@ -616,9 +616,9 @@ declare const AgentSpec: z.ZodObject<{
616
616
  trigger: {
617
617
  kind: string;
618
618
  value?: string | number | boolean | undefined;
619
- toolName?: string | undefined;
620
619
  threshold?: number | undefined;
621
620
  moduloStep?: boolean | undefined;
621
+ toolName?: string | undefined;
622
622
  period?: number | undefined;
623
623
  minStep?: number | undefined;
624
624
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -638,10 +638,10 @@ declare const AgentSpec: z.ZodObject<{
638
638
  redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
639
639
  pii: z.ZodOptional<z.ZodBoolean>;
640
640
  }, "strip", z.ZodTypeAny, {
641
- redactionLevel?: "none" | "strict" | "standard" | undefined;
641
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
642
642
  pii?: boolean | undefined;
643
643
  }, {
644
- redactionLevel?: "none" | "strict" | "standard" | undefined;
644
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
645
645
  pii?: boolean | undefined;
646
646
  }>>;
647
647
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -664,7 +664,7 @@ declare const AgentSpec: z.ZodObject<{
664
664
  workingMemoryBudgetPercentage?: number | undefined;
665
665
  } | undefined;
666
666
  toolHistory?: {
667
- strategy?: "none" | "per-pair" | "per-run" | undefined;
667
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
668
668
  retentionMode?: "drop" | "compress" | undefined;
669
669
  keepLatestToolPairs?: number | undefined;
670
670
  keepLatestRuns?: number | undefined;
@@ -687,7 +687,7 @@ declare const AgentSpec: z.ZodObject<{
687
687
  maxCompactionsPerRun?: number | undefined;
688
688
  } | undefined;
689
689
  mustKeep?: {
690
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
690
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
691
691
  alwaysKeepFenceKinds?: string[] | undefined;
692
692
  truncationRules?: {
693
693
  fenceKind: string;
@@ -729,9 +729,9 @@ declare const AgentSpec: z.ZodObject<{
729
729
  trigger: {
730
730
  kind: string;
731
731
  value?: string | number | boolean | undefined;
732
- toolName?: string | undefined;
733
732
  threshold?: number | undefined;
734
733
  moduloStep?: boolean | undefined;
734
+ toolName?: string | undefined;
735
735
  period?: number | undefined;
736
736
  minStep?: number | undefined;
737
737
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -751,7 +751,7 @@ declare const AgentSpec: z.ZodObject<{
751
751
  role?: string | undefined;
752
752
  description?: string | undefined;
753
753
  audit?: {
754
- redactionLevel?: "none" | "strict" | "standard" | undefined;
754
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
755
755
  pii?: boolean | undefined;
756
756
  } | undefined;
757
757
  }, {
@@ -773,7 +773,7 @@ declare const AgentSpec: z.ZodObject<{
773
773
  workingMemoryBudgetPercentage?: number | undefined;
774
774
  } | undefined;
775
775
  toolHistory?: {
776
- strategy?: "none" | "per-pair" | "per-run" | undefined;
776
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
777
777
  retentionMode?: "drop" | "compress" | undefined;
778
778
  keepLatestToolPairs?: number | undefined;
779
779
  keepLatestRuns?: number | undefined;
@@ -796,7 +796,7 @@ declare const AgentSpec: z.ZodObject<{
796
796
  maxCompactionsPerRun?: number | undefined;
797
797
  } | undefined;
798
798
  mustKeep?: {
799
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
799
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
800
800
  alwaysKeepFenceKinds?: string[] | undefined;
801
801
  truncationRules?: {
802
802
  fenceKind: string;
@@ -838,9 +838,9 @@ declare const AgentSpec: z.ZodObject<{
838
838
  trigger: {
839
839
  kind: string;
840
840
  value?: string | number | boolean | undefined;
841
- toolName?: string | undefined;
842
841
  threshold?: number | undefined;
843
842
  moduloStep?: boolean | undefined;
843
+ toolName?: string | undefined;
844
844
  period?: number | undefined;
845
845
  minStep?: number | undefined;
846
846
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -860,7 +860,7 @@ declare const AgentSpec: z.ZodObject<{
860
860
  role?: string | undefined;
861
861
  description?: string | undefined;
862
862
  audit?: {
863
- redactionLevel?: "none" | "strict" | "standard" | undefined;
863
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
864
864
  pii?: boolean | undefined;
865
865
  } | undefined;
866
866
  }>;
@@ -27,10 +27,10 @@ declare const AgentSpecAuditConfig: z.ZodObject<{
27
27
  redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
28
28
  pii: z.ZodOptional<z.ZodBoolean>;
29
29
  }, "strip", z.ZodTypeAny, {
30
- redactionLevel?: "none" | "strict" | "standard" | undefined;
30
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
31
31
  pii?: boolean | undefined;
32
32
  }, {
33
- redactionLevel?: "none" | "strict" | "standard" | undefined;
33
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
34
34
  pii?: boolean | undefined;
35
35
  }>;
36
36
  type AgentSpecAuditConfig = z.infer<typeof AgentSpecAuditConfig>;
@@ -82,14 +82,14 @@ declare const AgentSpec: z.ZodObject<{
82
82
  maxInteractionGroups: z.ZodOptional<z.ZodNumber>;
83
83
  overflowStrategy: z.ZodOptional<z.ZodEnum<["keep-latest", "fail-fast"]>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
- strategy?: "none" | "per-pair" | "per-run" | undefined;
85
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
86
86
  retentionMode?: "drop" | "compress" | undefined;
87
87
  keepLatestToolPairs?: number | undefined;
88
88
  keepLatestRuns?: number | undefined;
89
89
  maxInteractionGroups?: number | undefined;
90
90
  overflowStrategy?: "keep-latest" | "fail-fast" | undefined;
91
91
  }, {
92
- strategy?: "none" | "per-pair" | "per-run" | undefined;
92
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
93
93
  retentionMode?: "drop" | "compress" | undefined;
94
94
  keepLatestToolPairs?: number | undefined;
95
95
  keepLatestRuns?: number | undefined;
@@ -176,7 +176,7 @@ declare const AgentSpec: z.ZodObject<{
176
176
  strategyName: string;
177
177
  }>, "many">>;
178
178
  }, "strip", z.ZodTypeAny, {
179
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
179
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
180
180
  alwaysKeepFenceKinds?: string[] | undefined;
181
181
  truncationRules?: {
182
182
  fenceKind: string;
@@ -184,7 +184,7 @@ declare const AgentSpec: z.ZodObject<{
184
184
  strategyName: string;
185
185
  }[] | undefined;
186
186
  }, {
187
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
187
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
188
188
  alwaysKeepFenceKinds?: string[] | undefined;
189
189
  truncationRules?: {
190
190
  fenceKind: string;
@@ -297,18 +297,18 @@ declare const AgentSpec: z.ZodObject<{
297
297
  }, "strip", z.ZodTypeAny, {
298
298
  kind: string;
299
299
  value?: string | number | boolean | undefined;
300
- toolName?: string | undefined;
301
300
  threshold?: number | undefined;
302
301
  moduloStep?: boolean | undefined;
302
+ toolName?: string | undefined;
303
303
  period?: number | undefined;
304
304
  minStep?: number | undefined;
305
305
  config?: Record<string, SerializableJsonValue> | undefined;
306
306
  }, {
307
307
  kind: string;
308
308
  value?: string | number | boolean | undefined;
309
- toolName?: string | undefined;
310
309
  threshold?: number | undefined;
311
310
  moduloStep?: boolean | undefined;
311
+ toolName?: string | undefined;
312
312
  period?: number | undefined;
313
313
  minStep?: number | undefined;
314
314
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -320,9 +320,9 @@ declare const AgentSpec: z.ZodObject<{
320
320
  trigger: {
321
321
  kind: string;
322
322
  value?: string | number | boolean | undefined;
323
- toolName?: string | undefined;
324
323
  threshold?: number | undefined;
325
324
  moduloStep?: boolean | undefined;
325
+ toolName?: string | undefined;
326
326
  period?: number | undefined;
327
327
  minStep?: number | undefined;
328
328
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -334,9 +334,9 @@ declare const AgentSpec: z.ZodObject<{
334
334
  trigger: {
335
335
  kind: string;
336
336
  value?: string | number | boolean | undefined;
337
- toolName?: string | undefined;
338
337
  threshold?: number | undefined;
339
338
  moduloStep?: boolean | undefined;
339
+ toolName?: string | undefined;
340
340
  period?: number | undefined;
341
341
  minStep?: number | undefined;
342
342
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -357,9 +357,9 @@ declare const AgentSpec: z.ZodObject<{
357
357
  trigger: {
358
358
  kind: string;
359
359
  value?: string | number | boolean | undefined;
360
- toolName?: string | undefined;
361
360
  threshold?: number | undefined;
362
361
  moduloStep?: boolean | undefined;
362
+ toolName?: string | undefined;
363
363
  period?: number | undefined;
364
364
  minStep?: number | undefined;
365
365
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -380,9 +380,9 @@ declare const AgentSpec: z.ZodObject<{
380
380
  trigger: {
381
381
  kind: string;
382
382
  value?: string | number | boolean | undefined;
383
- toolName?: string | undefined;
384
383
  threshold?: number | undefined;
385
384
  moduloStep?: boolean | undefined;
385
+ toolName?: string | undefined;
386
386
  period?: number | undefined;
387
387
  minStep?: number | undefined;
388
388
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -403,9 +403,9 @@ declare const AgentSpec: z.ZodObject<{
403
403
  trigger: {
404
404
  kind: string;
405
405
  value?: string | number | boolean | undefined;
406
- toolName?: string | undefined;
407
406
  threshold?: number | undefined;
408
407
  moduloStep?: boolean | undefined;
408
+ toolName?: string | undefined;
409
409
  period?: number | undefined;
410
410
  minStep?: number | undefined;
411
411
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -426,9 +426,9 @@ declare const AgentSpec: z.ZodObject<{
426
426
  trigger: {
427
427
  kind: string;
428
428
  value?: string | number | boolean | undefined;
429
- toolName?: string | undefined;
430
429
  threshold?: number | undefined;
431
430
  moduloStep?: boolean | undefined;
431
+ toolName?: string | undefined;
432
432
  period?: number | undefined;
433
433
  minStep?: number | undefined;
434
434
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -461,7 +461,7 @@ declare const AgentSpec: z.ZodObject<{
461
461
  workingMemoryBudgetPercentage?: number | undefined;
462
462
  } | undefined;
463
463
  toolHistory?: {
464
- strategy?: "none" | "per-pair" | "per-run" | undefined;
464
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
465
465
  retentionMode?: "drop" | "compress" | undefined;
466
466
  keepLatestToolPairs?: number | undefined;
467
467
  keepLatestRuns?: number | undefined;
@@ -484,7 +484,7 @@ declare const AgentSpec: z.ZodObject<{
484
484
  maxCompactionsPerRun?: number | undefined;
485
485
  } | undefined;
486
486
  mustKeep?: {
487
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
487
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
488
488
  alwaysKeepFenceKinds?: string[] | undefined;
489
489
  truncationRules?: {
490
490
  fenceKind: string;
@@ -526,9 +526,9 @@ declare const AgentSpec: z.ZodObject<{
526
526
  trigger: {
527
527
  kind: string;
528
528
  value?: string | number | boolean | undefined;
529
- toolName?: string | undefined;
530
529
  threshold?: number | undefined;
531
530
  moduloStep?: boolean | undefined;
531
+ toolName?: string | undefined;
532
532
  period?: number | undefined;
533
533
  minStep?: number | undefined;
534
534
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -551,7 +551,7 @@ declare const AgentSpec: z.ZodObject<{
551
551
  workingMemoryBudgetPercentage?: number | undefined;
552
552
  } | undefined;
553
553
  toolHistory?: {
554
- strategy?: "none" | "per-pair" | "per-run" | undefined;
554
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
555
555
  retentionMode?: "drop" | "compress" | undefined;
556
556
  keepLatestToolPairs?: number | undefined;
557
557
  keepLatestRuns?: number | undefined;
@@ -574,7 +574,7 @@ declare const AgentSpec: z.ZodObject<{
574
574
  maxCompactionsPerRun?: number | undefined;
575
575
  } | undefined;
576
576
  mustKeep?: {
577
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
577
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
578
578
  alwaysKeepFenceKinds?: string[] | undefined;
579
579
  truncationRules?: {
580
580
  fenceKind: string;
@@ -616,9 +616,9 @@ declare const AgentSpec: z.ZodObject<{
616
616
  trigger: {
617
617
  kind: string;
618
618
  value?: string | number | boolean | undefined;
619
- toolName?: string | undefined;
620
619
  threshold?: number | undefined;
621
620
  moduloStep?: boolean | undefined;
621
+ toolName?: string | undefined;
622
622
  period?: number | undefined;
623
623
  minStep?: number | undefined;
624
624
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -638,10 +638,10 @@ declare const AgentSpec: z.ZodObject<{
638
638
  redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
639
639
  pii: z.ZodOptional<z.ZodBoolean>;
640
640
  }, "strip", z.ZodTypeAny, {
641
- redactionLevel?: "none" | "strict" | "standard" | undefined;
641
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
642
642
  pii?: boolean | undefined;
643
643
  }, {
644
- redactionLevel?: "none" | "strict" | "standard" | undefined;
644
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
645
645
  pii?: boolean | undefined;
646
646
  }>>;
647
647
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -664,7 +664,7 @@ declare const AgentSpec: z.ZodObject<{
664
664
  workingMemoryBudgetPercentage?: number | undefined;
665
665
  } | undefined;
666
666
  toolHistory?: {
667
- strategy?: "none" | "per-pair" | "per-run" | undefined;
667
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
668
668
  retentionMode?: "drop" | "compress" | undefined;
669
669
  keepLatestToolPairs?: number | undefined;
670
670
  keepLatestRuns?: number | undefined;
@@ -687,7 +687,7 @@ declare const AgentSpec: z.ZodObject<{
687
687
  maxCompactionsPerRun?: number | undefined;
688
688
  } | undefined;
689
689
  mustKeep?: {
690
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
690
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
691
691
  alwaysKeepFenceKinds?: string[] | undefined;
692
692
  truncationRules?: {
693
693
  fenceKind: string;
@@ -729,9 +729,9 @@ declare const AgentSpec: z.ZodObject<{
729
729
  trigger: {
730
730
  kind: string;
731
731
  value?: string | number | boolean | undefined;
732
- toolName?: string | undefined;
733
732
  threshold?: number | undefined;
734
733
  moduloStep?: boolean | undefined;
734
+ toolName?: string | undefined;
735
735
  period?: number | undefined;
736
736
  minStep?: number | undefined;
737
737
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -751,7 +751,7 @@ declare const AgentSpec: z.ZodObject<{
751
751
  role?: string | undefined;
752
752
  description?: string | undefined;
753
753
  audit?: {
754
- redactionLevel?: "none" | "strict" | "standard" | undefined;
754
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
755
755
  pii?: boolean | undefined;
756
756
  } | undefined;
757
757
  }, {
@@ -773,7 +773,7 @@ declare const AgentSpec: z.ZodObject<{
773
773
  workingMemoryBudgetPercentage?: number | undefined;
774
774
  } | undefined;
775
775
  toolHistory?: {
776
- strategy?: "none" | "per-pair" | "per-run" | undefined;
776
+ strategy?: "per-pair" | "per-run" | "none" | undefined;
777
777
  retentionMode?: "drop" | "compress" | undefined;
778
778
  keepLatestToolPairs?: number | undefined;
779
779
  keepLatestRuns?: number | undefined;
@@ -796,7 +796,7 @@ declare const AgentSpec: z.ZodObject<{
796
796
  maxCompactionsPerRun?: number | undefined;
797
797
  } | undefined;
798
798
  mustKeep?: {
799
- alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
799
+ alwaysKeepTypes?: ("tool_calls" | "system_prompt" | "history_summary" | "context_injection" | "user_input" | "context_before" | "context_after" | "document_fragment" | "task_request" | "final_answer" | "tool_code" | "task_completion" | "tool_output")[] | undefined;
800
800
  alwaysKeepFenceKinds?: string[] | undefined;
801
801
  truncationRules?: {
802
802
  fenceKind: string;
@@ -838,9 +838,9 @@ declare const AgentSpec: z.ZodObject<{
838
838
  trigger: {
839
839
  kind: string;
840
840
  value?: string | number | boolean | undefined;
841
- toolName?: string | undefined;
842
841
  threshold?: number | undefined;
843
842
  moduloStep?: boolean | undefined;
843
+ toolName?: string | undefined;
844
844
  period?: number | undefined;
845
845
  minStep?: number | undefined;
846
846
  config?: Record<string, SerializableJsonValue> | undefined;
@@ -860,7 +860,7 @@ declare const AgentSpec: z.ZodObject<{
860
860
  role?: string | undefined;
861
861
  description?: string | undefined;
862
862
  audit?: {
863
- redactionLevel?: "none" | "strict" | "standard" | undefined;
863
+ redactionLevel?: "strict" | "none" | "standard" | undefined;
864
864
  pii?: boolean | undefined;
865
865
  } | undefined;
866
866
  }>;