@arvo-tools/agentic 1.2.16 → 2.0.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 (48) hide show
  1. package/dist/Agent/AgentDefaults.d.ts +4 -1
  2. package/dist/Agent/AgentDefaults.d.ts.map +1 -1
  3. package/dist/Agent/AgentDefaults.js +110 -73
  4. package/dist/Agent/AgentDefaults.js.map +1 -1
  5. package/dist/Agent/agentLoop.d.ts +19 -17
  6. package/dist/Agent/agentLoop.d.ts.map +1 -1
  7. package/dist/Agent/agentLoop.js +239 -120
  8. package/dist/Agent/agentLoop.js.map +1 -1
  9. package/dist/Agent/index.d.ts +91 -39
  10. package/dist/Agent/index.d.ts.map +1 -1
  11. package/dist/Agent/index.js +218 -146
  12. package/dist/Agent/index.js.map +1 -1
  13. package/dist/Agent/schema.d.ts +326 -22
  14. package/dist/Agent/schema.d.ts.map +1 -1
  15. package/dist/Agent/schema.js +23 -1
  16. package/dist/Agent/schema.js.map +1 -1
  17. package/dist/Agent/stream/schema.d.ts +39 -39
  18. package/dist/Agent/types.d.ts +170 -79
  19. package/dist/Agent/types.d.ts.map +1 -1
  20. package/dist/Agent/utils.d.ts +6 -0
  21. package/dist/Agent/utils.d.ts.map +1 -1
  22. package/dist/Agent/utils.js +10 -1
  23. package/dist/Agent/utils.js.map +1 -1
  24. package/dist/AgentTool/index.d.ts +2 -3
  25. package/dist/AgentTool/index.d.ts.map +1 -1
  26. package/dist/AgentTool/index.js +11 -7
  27. package/dist/AgentTool/index.js.map +1 -1
  28. package/dist/AgentTool/types.d.ts +27 -9
  29. package/dist/AgentTool/types.d.ts.map +1 -1
  30. package/dist/Integrations/MCPClient.d.ts +2 -2
  31. package/dist/Integrations/MCPClient.js +2 -2
  32. package/dist/Integrations/anthropic/index.d.ts.map +1 -1
  33. package/dist/Integrations/anthropic/index.js +3 -3
  34. package/dist/Integrations/anthropic/index.js.map +1 -1
  35. package/dist/Integrations/openai/index.d.ts.map +1 -1
  36. package/dist/Integrations/openai/index.js +3 -3
  37. package/dist/Integrations/openai/index.js.map +1 -1
  38. package/dist/Integrations/types.d.ts +89 -15
  39. package/dist/Integrations/types.d.ts.map +1 -1
  40. package/dist/Integrations/types.js +47 -0
  41. package/dist/Integrations/types.js.map +1 -1
  42. package/dist/SimplePermissionManager/contract.d.ts +4 -4
  43. package/dist/SimplePermissionManager/index.d.ts +12 -12
  44. package/dist/index.d.ts +3 -3
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +2 -1
  47. package/dist/index.js.map +1 -1
  48. package/package.json +8 -8
@@ -208,12 +208,12 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
208
208
  name: z.ZodString;
209
209
  originalName: z.ZodString;
210
210
  }, "strip", z.ZodTypeAny, {
211
- kind: string;
212
211
  name: string;
212
+ kind: string;
213
213
  originalName: string;
214
214
  }, {
215
- kind: string;
216
215
  name: string;
216
+ kind: string;
217
217
  originalName: string;
218
218
  }>;
219
219
  usage: z.ZodObject<{
@@ -229,8 +229,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
229
229
  executionunits: z.ZodNumber;
230
230
  }, "strip", z.ZodTypeAny, {
231
231
  tool: {
232
- kind: string;
233
232
  name: string;
233
+ kind: string;
234
234
  originalName: string;
235
235
  };
236
236
  usage: {
@@ -240,8 +240,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
240
240
  executionunits: number;
241
241
  }, {
242
242
  tool: {
243
- kind: string;
244
243
  name: string;
244
+ kind: string;
245
245
  originalName: string;
246
246
  };
247
247
  usage: {
@@ -254,8 +254,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
254
254
  type: "agent.tool.request";
255
255
  data: {
256
256
  tool: {
257
- kind: string;
258
257
  name: string;
258
+ kind: string;
259
259
  originalName: string;
260
260
  };
261
261
  usage: {
@@ -268,8 +268,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
268
268
  type: "agent.tool.request";
269
269
  data: {
270
270
  tool: {
271
- kind: string;
272
271
  name: string;
272
+ kind: string;
273
273
  originalName: string;
274
274
  };
275
275
  usage: {
@@ -294,39 +294,39 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
294
294
  }>;
295
295
  executionunits: z.ZodNumber;
296
296
  }, "strip", z.ZodTypeAny, {
297
+ content: string;
297
298
  usage: {
298
299
  prompt: number;
299
300
  completion: number;
300
301
  };
301
302
  executionunits: number;
302
- content: string;
303
303
  }, {
304
+ content: string;
304
305
  usage: {
305
306
  prompt: number;
306
307
  completion: number;
307
308
  };
308
309
  executionunits: number;
309
- content: string;
310
310
  }>;
311
311
  }, "strip", z.ZodTypeAny, {
312
312
  type: "agent.output.finalization";
313
313
  data: {
314
+ content: string;
314
315
  usage: {
315
316
  prompt: number;
316
317
  completion: number;
317
318
  };
318
319
  executionunits: number;
319
- content: string;
320
320
  };
321
321
  }, {
322
322
  type: "agent.output.finalization";
323
323
  data: {
324
+ content: string;
324
325
  usage: {
325
326
  prompt: number;
326
327
  completion: number;
327
328
  };
328
329
  executionunits: number;
329
- content: string;
330
330
  };
331
331
  }>, z.ZodObject<{
332
332
  type: z.ZodLiteral<"agent.output">;
@@ -344,39 +344,39 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
344
344
  }>;
345
345
  executionunits: z.ZodNumber;
346
346
  }, "strip", z.ZodTypeAny, {
347
+ content: string;
347
348
  usage: {
348
349
  prompt: number;
349
350
  completion: number;
350
351
  };
351
352
  executionunits: number;
352
- content: string;
353
353
  }, {
354
+ content: string;
354
355
  usage: {
355
356
  prompt: number;
356
357
  completion: number;
357
358
  };
358
359
  executionunits: number;
359
- content: string;
360
360
  }>;
361
361
  }, "strip", z.ZodTypeAny, {
362
362
  type: "agent.output";
363
363
  data: {
364
+ content: string;
364
365
  usage: {
365
366
  prompt: number;
366
367
  completion: number;
367
368
  };
368
369
  executionunits: number;
369
- content: string;
370
370
  };
371
371
  }, {
372
372
  type: "agent.output";
373
373
  data: {
374
+ content: string;
374
375
  usage: {
375
376
  prompt: number;
376
377
  completion: number;
377
378
  };
378
379
  executionunits: number;
379
- content: string;
380
380
  };
381
381
  }>, z.ZodObject<{
382
382
  type: z.ZodLiteral<"agent.tool.request.delegation">;
@@ -706,6 +706,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
706
706
  };
707
707
  }>;
708
708
  }, "strip", z.ZodTypeAny, {
709
+ toolUseId: string;
710
+ input: string;
709
711
  comment: string;
710
712
  meta: {
711
713
  error: string | null;
@@ -719,9 +721,9 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
719
721
  };
720
722
  };
721
723
  toolname: string;
724
+ }, {
722
725
  toolUseId: string;
723
726
  input: string;
724
- }, {
725
727
  comment: string;
726
728
  meta: {
727
729
  error: string | null;
@@ -735,12 +737,12 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
735
737
  };
736
738
  };
737
739
  toolname: string;
738
- toolUseId: string;
739
- input: string;
740
740
  }>;
741
741
  }, "strip", z.ZodTypeAny, {
742
742
  type: "agent.llm.delta.tool";
743
743
  data: {
744
+ toolUseId: string;
745
+ input: string;
744
746
  comment: string;
745
747
  meta: {
746
748
  error: string | null;
@@ -754,12 +756,12 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
754
756
  };
755
757
  };
756
758
  toolname: string;
757
- toolUseId: string;
758
- input: string;
759
759
  };
760
760
  }, {
761
761
  type: "agent.llm.delta.tool";
762
762
  data: {
763
+ toolUseId: string;
764
+ input: string;
763
765
  comment: string;
764
766
  meta: {
765
767
  error: string | null;
@@ -773,8 +775,6 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
773
775
  };
774
776
  };
775
777
  toolname: string;
776
- toolUseId: string;
777
- input: string;
778
778
  };
779
779
  }>, z.ZodObject<{
780
780
  type: z.ZodLiteral<"agent.tool.permission.blocked">;
@@ -784,12 +784,12 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
784
784
  kind: z.ZodString;
785
785
  originalName: z.ZodString;
786
786
  }, "strip", z.ZodTypeAny, {
787
- kind: string;
788
787
  name: string;
788
+ kind: string;
789
789
  originalName: string;
790
790
  }, {
791
- kind: string;
792
791
  name: string;
792
+ kind: string;
793
793
  originalName: string;
794
794
  }>, "many">;
795
795
  usage: z.ZodObject<{
@@ -805,8 +805,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
805
805
  executionunits: z.ZodNumber;
806
806
  }, "strip", z.ZodTypeAny, {
807
807
  tools: {
808
- kind: string;
809
808
  name: string;
809
+ kind: string;
810
810
  originalName: string;
811
811
  }[];
812
812
  usage: {
@@ -816,8 +816,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
816
816
  executionunits: number;
817
817
  }, {
818
818
  tools: {
819
- kind: string;
820
819
  name: string;
820
+ kind: string;
821
821
  originalName: string;
822
822
  }[];
823
823
  usage: {
@@ -830,8 +830,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
830
830
  type: "agent.tool.permission.blocked";
831
831
  data: {
832
832
  tools: {
833
- kind: string;
834
833
  name: string;
834
+ kind: string;
835
835
  originalName: string;
836
836
  }[];
837
837
  usage: {
@@ -844,8 +844,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
844
844
  type: "agent.tool.permission.blocked";
845
845
  data: {
846
846
  tools: {
847
- kind: string;
848
847
  name: string;
848
+ kind: string;
849
849
  originalName: string;
850
850
  }[];
851
851
  usage: {
@@ -862,12 +862,12 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
862
862
  kind: z.ZodString;
863
863
  originalName: z.ZodString;
864
864
  }, "strip", z.ZodTypeAny, {
865
- kind: string;
866
865
  name: string;
866
+ kind: string;
867
867
  originalName: string;
868
868
  }, {
869
- kind: string;
870
869
  name: string;
870
+ kind: string;
871
871
  originalName: string;
872
872
  }>, "many">;
873
873
  usage: z.ZodObject<{
@@ -883,8 +883,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
883
883
  executionunits: z.ZodNumber;
884
884
  }, "strip", z.ZodTypeAny, {
885
885
  tools: {
886
- kind: string;
887
886
  name: string;
887
+ kind: string;
888
888
  originalName: string;
889
889
  }[];
890
890
  usage: {
@@ -894,8 +894,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
894
894
  executionunits: number;
895
895
  }, {
896
896
  tools: {
897
- kind: string;
898
897
  name: string;
898
+ kind: string;
899
899
  originalName: string;
900
900
  }[];
901
901
  usage: {
@@ -908,8 +908,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
908
908
  type: "agent.tool.permission.denied";
909
909
  data: {
910
910
  tools: {
911
- kind: string;
912
911
  name: string;
912
+ kind: string;
913
913
  originalName: string;
914
914
  }[];
915
915
  usage: {
@@ -922,8 +922,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
922
922
  type: "agent.tool.permission.denied";
923
923
  data: {
924
924
  tools: {
925
- kind: string;
926
925
  name: string;
926
+ kind: string;
927
927
  originalName: string;
928
928
  }[];
929
929
  usage: {
@@ -940,12 +940,12 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
940
940
  kind: z.ZodString;
941
941
  originalName: z.ZodString;
942
942
  }, "strip", z.ZodTypeAny, {
943
- kind: string;
944
943
  name: string;
944
+ kind: string;
945
945
  originalName: string;
946
946
  }, {
947
- kind: string;
948
947
  name: string;
948
+ kind: string;
949
949
  originalName: string;
950
950
  }>, "many">;
951
951
  usage: z.ZodObject<{
@@ -961,8 +961,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
961
961
  executionunits: z.ZodNumber;
962
962
  }, "strip", z.ZodTypeAny, {
963
963
  tools: {
964
- kind: string;
965
964
  name: string;
965
+ kind: string;
966
966
  originalName: string;
967
967
  }[];
968
968
  usage: {
@@ -972,8 +972,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
972
972
  executionunits: number;
973
973
  }, {
974
974
  tools: {
975
- kind: string;
976
975
  name: string;
976
+ kind: string;
977
977
  originalName: string;
978
978
  }[];
979
979
  usage: {
@@ -986,8 +986,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
986
986
  type: "agent.tool.permission.requested";
987
987
  data: {
988
988
  tools: {
989
- kind: string;
990
989
  name: string;
990
+ kind: string;
991
991
  originalName: string;
992
992
  }[];
993
993
  usage: {
@@ -1000,8 +1000,8 @@ export declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.
1000
1000
  type: "agent.tool.permission.requested";
1001
1001
  data: {
1002
1002
  tools: {
1003
- kind: string;
1004
1003
  name: string;
1004
+ kind: string;
1005
1005
  originalName: string;
1006
1006
  }[];
1007
1007
  usage: {