@openagentpack/sdk 0.3.1 → 0.4.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.
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const ResourceTypeSchema: z.ZodEnum<{
4
+ agent: "agent";
4
5
  file: "file";
5
6
  memory_store: "memory_store";
6
7
  environment: "environment";
7
8
  vault: "vault";
8
9
  skill: "skill";
9
- agent: "agent";
10
10
  template: "template";
11
11
  deployment: "deployment";
12
12
  identity: "identity";
@@ -15,12 +15,12 @@ declare const ResourceTypeSchema: z.ZodEnum<{
15
15
  type ResourceType = z.infer<typeof ResourceTypeSchema>;
16
16
  declare const ResourceAddressSchema: z.ZodObject<{
17
17
  type: z.ZodEnum<{
18
+ agent: "agent";
18
19
  file: "file";
19
20
  memory_store: "memory_store";
20
21
  environment: "environment";
21
22
  vault: "vault";
22
23
  skill: "skill";
23
- agent: "agent";
24
24
  template: "template";
25
25
  deployment: "deployment";
26
26
  identity: "identity";
@@ -46,12 +46,12 @@ declare const DiagnosticSchema: z.ZodObject<{
46
46
  message: z.ZodString;
47
47
  resource: z.ZodOptional<z.ZodObject<{
48
48
  type: z.ZodEnum<{
49
+ agent: "agent";
49
50
  file: "file";
50
51
  memory_store: "memory_store";
51
52
  environment: "environment";
52
53
  vault: "vault";
53
54
  skill: "skill";
54
- agent: "agent";
55
55
  template: "template";
56
56
  deployment: "deployment";
57
57
  identity: "identity";
@@ -91,12 +91,12 @@ declare const PlannedActionSchema: z.ZodObject<{
91
91
  }>;
92
92
  address: z.ZodObject<{
93
93
  type: z.ZodEnum<{
94
+ agent: "agent";
94
95
  file: "file";
95
96
  memory_store: "memory_store";
96
97
  environment: "environment";
97
98
  vault: "vault";
98
99
  skill: "skill";
99
- agent: "agent";
100
100
  template: "template";
101
101
  deployment: "deployment";
102
102
  identity: "identity";
@@ -105,6 +105,22 @@ declare const PlannedActionSchema: z.ZodObject<{
105
105
  name: z.ZodString;
106
106
  provider: z.ZodString;
107
107
  }, z.core.$strip>;
108
+ previousAddress: z.ZodOptional<z.ZodObject<{
109
+ type: z.ZodEnum<{
110
+ agent: "agent";
111
+ file: "file";
112
+ memory_store: "memory_store";
113
+ environment: "environment";
114
+ vault: "vault";
115
+ skill: "skill";
116
+ template: "template";
117
+ deployment: "deployment";
118
+ identity: "identity";
119
+ channel: "channel";
120
+ }>;
121
+ name: z.ZodString;
122
+ provider: z.ZodString;
123
+ }, z.core.$strip>>;
108
124
  reason: z.ZodString;
109
125
  driftKind: z.ZodOptional<z.ZodEnum<{
110
126
  none: "none";
@@ -122,12 +138,12 @@ declare const PlannedActionSchema: z.ZodObject<{
122
138
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
123
139
  dependencies: z.ZodArray<z.ZodObject<{
124
140
  type: z.ZodEnum<{
141
+ agent: "agent";
125
142
  file: "file";
126
143
  memory_store: "memory_store";
127
144
  environment: "environment";
128
145
  vault: "vault";
129
146
  skill: "skill";
130
- agent: "agent";
131
147
  template: "template";
132
148
  deployment: "deployment";
133
149
  identity: "identity";
@@ -139,8 +155,8 @@ declare const PlannedActionSchema: z.ZodObject<{
139
155
  }, z.core.$strip>;
140
156
  type PlannedAction = z.infer<typeof PlannedActionSchema>;
141
157
  declare const AgentReadinessStatusSchema: z.ZodEnum<{
142
- error: "error";
143
158
  ready: "ready";
159
+ error: "error";
144
160
  missing: "missing";
145
161
  creating: "creating";
146
162
  updating: "updating";
@@ -187,8 +203,8 @@ declare const AgentDefinitionSchema: z.ZodObject<{
187
203
  type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
188
204
  declare const AgentReadinessSchema: z.ZodObject<{
189
205
  status: z.ZodEnum<{
190
- error: "error";
191
206
  ready: "ready";
207
+ error: "error";
192
208
  missing: "missing";
193
209
  creating: "creating";
194
210
  updating: "updating";
@@ -211,12 +227,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
211
227
  message: z.ZodString;
212
228
  resource: z.ZodOptional<z.ZodObject<{
213
229
  type: z.ZodEnum<{
230
+ agent: "agent";
214
231
  file: "file";
215
232
  memory_store: "memory_store";
216
233
  environment: "environment";
217
234
  vault: "vault";
218
235
  skill: "skill";
219
- agent: "agent";
220
236
  template: "template";
221
237
  deployment: "deployment";
222
238
  identity: "identity";
@@ -228,12 +244,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
228
244
  }, z.core.$strip>>;
229
245
  missing: z.ZodArray<z.ZodObject<{
230
246
  type: z.ZodEnum<{
247
+ agent: "agent";
231
248
  file: "file";
232
249
  memory_store: "memory_store";
233
250
  environment: "environment";
234
251
  vault: "vault";
235
252
  skill: "skill";
236
- agent: "agent";
237
253
  template: "template";
238
254
  deployment: "deployment";
239
255
  identity: "identity";
@@ -251,12 +267,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
251
267
  }>;
252
268
  address: z.ZodObject<{
253
269
  type: z.ZodEnum<{
270
+ agent: "agent";
254
271
  file: "file";
255
272
  memory_store: "memory_store";
256
273
  environment: "environment";
257
274
  vault: "vault";
258
275
  skill: "skill";
259
- agent: "agent";
260
276
  template: "template";
261
277
  deployment: "deployment";
262
278
  identity: "identity";
@@ -265,6 +281,22 @@ declare const AgentReadinessSchema: z.ZodObject<{
265
281
  name: z.ZodString;
266
282
  provider: z.ZodString;
267
283
  }, z.core.$strip>;
284
+ previousAddress: z.ZodOptional<z.ZodObject<{
285
+ type: z.ZodEnum<{
286
+ agent: "agent";
287
+ file: "file";
288
+ memory_store: "memory_store";
289
+ environment: "environment";
290
+ vault: "vault";
291
+ skill: "skill";
292
+ template: "template";
293
+ deployment: "deployment";
294
+ identity: "identity";
295
+ channel: "channel";
296
+ }>;
297
+ name: z.ZodString;
298
+ provider: z.ZodString;
299
+ }, z.core.$strip>>;
268
300
  reason: z.ZodString;
269
301
  driftKind: z.ZodOptional<z.ZodEnum<{
270
302
  none: "none";
@@ -282,12 +314,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
282
314
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
283
315
  dependencies: z.ZodArray<z.ZodObject<{
284
316
  type: z.ZodEnum<{
317
+ agent: "agent";
285
318
  file: "file";
286
319
  memory_store: "memory_store";
287
320
  environment: "environment";
288
321
  vault: "vault";
289
322
  skill: "skill";
290
- agent: "agent";
291
323
  template: "template";
292
324
  deployment: "deployment";
293
325
  identity: "identity";
@@ -321,8 +353,8 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
321
353
  }, z.core.$strip>;
322
354
  readiness: z.ZodObject<{
323
355
  status: z.ZodEnum<{
324
- error: "error";
325
356
  ready: "ready";
357
+ error: "error";
326
358
  missing: "missing";
327
359
  creating: "creating";
328
360
  updating: "updating";
@@ -345,12 +377,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
345
377
  message: z.ZodString;
346
378
  resource: z.ZodOptional<z.ZodObject<{
347
379
  type: z.ZodEnum<{
380
+ agent: "agent";
348
381
  file: "file";
349
382
  memory_store: "memory_store";
350
383
  environment: "environment";
351
384
  vault: "vault";
352
385
  skill: "skill";
353
- agent: "agent";
354
386
  template: "template";
355
387
  deployment: "deployment";
356
388
  identity: "identity";
@@ -362,12 +394,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
362
394
  }, z.core.$strip>>;
363
395
  missing: z.ZodArray<z.ZodObject<{
364
396
  type: z.ZodEnum<{
397
+ agent: "agent";
365
398
  file: "file";
366
399
  memory_store: "memory_store";
367
400
  environment: "environment";
368
401
  vault: "vault";
369
402
  skill: "skill";
370
- agent: "agent";
371
403
  template: "template";
372
404
  deployment: "deployment";
373
405
  identity: "identity";
@@ -385,12 +417,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
385
417
  }>;
386
418
  address: z.ZodObject<{
387
419
  type: z.ZodEnum<{
420
+ agent: "agent";
388
421
  file: "file";
389
422
  memory_store: "memory_store";
390
423
  environment: "environment";
391
424
  vault: "vault";
392
425
  skill: "skill";
393
- agent: "agent";
394
426
  template: "template";
395
427
  deployment: "deployment";
396
428
  identity: "identity";
@@ -399,6 +431,22 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
399
431
  name: z.ZodString;
400
432
  provider: z.ZodString;
401
433
  }, z.core.$strip>;
434
+ previousAddress: z.ZodOptional<z.ZodObject<{
435
+ type: z.ZodEnum<{
436
+ agent: "agent";
437
+ file: "file";
438
+ memory_store: "memory_store";
439
+ environment: "environment";
440
+ vault: "vault";
441
+ skill: "skill";
442
+ template: "template";
443
+ deployment: "deployment";
444
+ identity: "identity";
445
+ channel: "channel";
446
+ }>;
447
+ name: z.ZodString;
448
+ provider: z.ZodString;
449
+ }, z.core.$strip>>;
402
450
  reason: z.ZodString;
403
451
  driftKind: z.ZodOptional<z.ZodEnum<{
404
452
  none: "none";
@@ -416,12 +464,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
416
464
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
417
465
  dependencies: z.ZodArray<z.ZodObject<{
418
466
  type: z.ZodEnum<{
467
+ agent: "agent";
419
468
  file: "file";
420
469
  memory_store: "memory_store";
421
470
  environment: "environment";
422
471
  vault: "vault";
423
472
  skill: "skill";
424
- agent: "agent";
425
473
  template: "template";
426
474
  deployment: "deployment";
427
475
  identity: "identity";
@@ -522,19 +570,19 @@ declare const CloudVaultSchema: z.ZodObject<{
522
570
  }, z.core.$strip>;
523
571
  type CloudVault = z.infer<typeof CloudVaultSchema>;
524
572
  declare const SessionEventTypeSchema: z.ZodEnum<{
573
+ status: "status";
525
574
  error: "error";
526
575
  message: "message";
527
576
  unknown: "unknown";
528
- status: "status";
529
577
  thinking: "thinking";
530
578
  tool_use: "tool_use";
531
579
  tool_result: "tool_result";
532
580
  }>;
533
581
  type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
534
582
  declare const AgentSyncStatusSchema: z.ZodEnum<{
583
+ failed: "failed";
535
584
  completed: "completed";
536
585
  blocked: "blocked";
537
- failed: "failed";
538
586
  }>;
539
587
  type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
540
588
  declare const AgentSyncResultSchema: z.ZodObject<{
@@ -547,12 +595,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
547
595
  }>;
548
596
  address: z.ZodObject<{
549
597
  type: z.ZodEnum<{
598
+ agent: "agent";
550
599
  file: "file";
551
600
  memory_store: "memory_store";
552
601
  environment: "environment";
553
602
  vault: "vault";
554
603
  skill: "skill";
555
- agent: "agent";
556
604
  template: "template";
557
605
  deployment: "deployment";
558
606
  identity: "identity";
@@ -561,6 +609,22 @@ declare const AgentSyncResultSchema: z.ZodObject<{
561
609
  name: z.ZodString;
562
610
  provider: z.ZodString;
563
611
  }, z.core.$strip>;
612
+ previousAddress: z.ZodOptional<z.ZodObject<{
613
+ type: z.ZodEnum<{
614
+ agent: "agent";
615
+ file: "file";
616
+ memory_store: "memory_store";
617
+ environment: "environment";
618
+ vault: "vault";
619
+ skill: "skill";
620
+ template: "template";
621
+ deployment: "deployment";
622
+ identity: "identity";
623
+ channel: "channel";
624
+ }>;
625
+ name: z.ZodString;
626
+ provider: z.ZodString;
627
+ }, z.core.$strip>>;
564
628
  reason: z.ZodString;
565
629
  driftKind: z.ZodOptional<z.ZodEnum<{
566
630
  none: "none";
@@ -578,12 +642,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
578
642
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
579
643
  dependencies: z.ZodArray<z.ZodObject<{
580
644
  type: z.ZodEnum<{
645
+ agent: "agent";
581
646
  file: "file";
582
647
  memory_store: "memory_store";
583
648
  environment: "environment";
584
649
  vault: "vault";
585
650
  skill: "skill";
586
- agent: "agent";
587
651
  template: "template";
588
652
  deployment: "deployment";
589
653
  identity: "identity";
@@ -594,8 +658,8 @@ declare const AgentSyncResultSchema: z.ZodObject<{
594
658
  }, z.core.$strip>>;
595
659
  }, z.core.$strip>;
596
660
  status: z.ZodEnum<{
597
- success: "success";
598
661
  failed: "failed";
662
+ success: "success";
599
663
  skipped: "skipped";
600
664
  }>;
601
665
  error: z.ZodOptional<z.ZodString>;
@@ -605,9 +669,9 @@ declare const AgentSyncRunSchema: z.ZodObject<{
605
669
  agentId: z.ZodString;
606
670
  provider: z.ZodOptional<z.ZodString>;
607
671
  status: z.ZodEnum<{
672
+ failed: "failed";
608
673
  completed: "completed";
609
674
  blocked: "blocked";
610
- failed: "failed";
611
675
  }>;
612
676
  actions: z.ZodArray<z.ZodObject<{
613
677
  action: z.ZodEnum<{
@@ -618,12 +682,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
618
682
  }>;
619
683
  address: z.ZodObject<{
620
684
  type: z.ZodEnum<{
685
+ agent: "agent";
621
686
  file: "file";
622
687
  memory_store: "memory_store";
623
688
  environment: "environment";
624
689
  vault: "vault";
625
690
  skill: "skill";
626
- agent: "agent";
627
691
  template: "template";
628
692
  deployment: "deployment";
629
693
  identity: "identity";
@@ -632,6 +696,22 @@ declare const AgentSyncRunSchema: z.ZodObject<{
632
696
  name: z.ZodString;
633
697
  provider: z.ZodString;
634
698
  }, z.core.$strip>;
699
+ previousAddress: z.ZodOptional<z.ZodObject<{
700
+ type: z.ZodEnum<{
701
+ agent: "agent";
702
+ file: "file";
703
+ memory_store: "memory_store";
704
+ environment: "environment";
705
+ vault: "vault";
706
+ skill: "skill";
707
+ template: "template";
708
+ deployment: "deployment";
709
+ identity: "identity";
710
+ channel: "channel";
711
+ }>;
712
+ name: z.ZodString;
713
+ provider: z.ZodString;
714
+ }, z.core.$strip>>;
635
715
  reason: z.ZodString;
636
716
  driftKind: z.ZodOptional<z.ZodEnum<{
637
717
  none: "none";
@@ -649,12 +729,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
649
729
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
650
730
  dependencies: z.ZodArray<z.ZodObject<{
651
731
  type: z.ZodEnum<{
732
+ agent: "agent";
652
733
  file: "file";
653
734
  memory_store: "memory_store";
654
735
  environment: "environment";
655
736
  vault: "vault";
656
737
  skill: "skill";
657
- agent: "agent";
658
738
  template: "template";
659
739
  deployment: "deployment";
660
740
  identity: "identity";
@@ -674,12 +754,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
674
754
  message: z.ZodString;
675
755
  resource: z.ZodOptional<z.ZodObject<{
676
756
  type: z.ZodEnum<{
757
+ agent: "agent";
677
758
  file: "file";
678
759
  memory_store: "memory_store";
679
760
  environment: "environment";
680
761
  vault: "vault";
681
762
  skill: "skill";
682
- agent: "agent";
683
763
  template: "template";
684
764
  deployment: "deployment";
685
765
  identity: "identity";
@@ -698,12 +778,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
698
778
  }>;
699
779
  address: z.ZodObject<{
700
780
  type: z.ZodEnum<{
781
+ agent: "agent";
701
782
  file: "file";
702
783
  memory_store: "memory_store";
703
784
  environment: "environment";
704
785
  vault: "vault";
705
786
  skill: "skill";
706
- agent: "agent";
707
787
  template: "template";
708
788
  deployment: "deployment";
709
789
  identity: "identity";
@@ -712,6 +792,22 @@ declare const AgentSyncRunSchema: z.ZodObject<{
712
792
  name: z.ZodString;
713
793
  provider: z.ZodString;
714
794
  }, z.core.$strip>;
795
+ previousAddress: z.ZodOptional<z.ZodObject<{
796
+ type: z.ZodEnum<{
797
+ agent: "agent";
798
+ file: "file";
799
+ memory_store: "memory_store";
800
+ environment: "environment";
801
+ vault: "vault";
802
+ skill: "skill";
803
+ template: "template";
804
+ deployment: "deployment";
805
+ identity: "identity";
806
+ channel: "channel";
807
+ }>;
808
+ name: z.ZodString;
809
+ provider: z.ZodString;
810
+ }, z.core.$strip>>;
715
811
  reason: z.ZodString;
716
812
  driftKind: z.ZodOptional<z.ZodEnum<{
717
813
  none: "none";
@@ -729,12 +825,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
729
825
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
730
826
  dependencies: z.ZodArray<z.ZodObject<{
731
827
  type: z.ZodEnum<{
828
+ agent: "agent";
732
829
  file: "file";
733
830
  memory_store: "memory_store";
734
831
  environment: "environment";
735
832
  vault: "vault";
736
833
  skill: "skill";
737
- agent: "agent";
738
834
  template: "template";
739
835
  deployment: "deployment";
740
836
  identity: "identity";
@@ -754,12 +850,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
754
850
  }>;
755
851
  address: z.ZodObject<{
756
852
  type: z.ZodEnum<{
853
+ agent: "agent";
757
854
  file: "file";
758
855
  memory_store: "memory_store";
759
856
  environment: "environment";
760
857
  vault: "vault";
761
858
  skill: "skill";
762
- agent: "agent";
763
859
  template: "template";
764
860
  deployment: "deployment";
765
861
  identity: "identity";
@@ -768,6 +864,22 @@ declare const AgentSyncRunSchema: z.ZodObject<{
768
864
  name: z.ZodString;
769
865
  provider: z.ZodString;
770
866
  }, z.core.$strip>;
867
+ previousAddress: z.ZodOptional<z.ZodObject<{
868
+ type: z.ZodEnum<{
869
+ agent: "agent";
870
+ file: "file";
871
+ memory_store: "memory_store";
872
+ environment: "environment";
873
+ vault: "vault";
874
+ skill: "skill";
875
+ template: "template";
876
+ deployment: "deployment";
877
+ identity: "identity";
878
+ channel: "channel";
879
+ }>;
880
+ name: z.ZodString;
881
+ provider: z.ZodString;
882
+ }, z.core.$strip>>;
771
883
  reason: z.ZodString;
772
884
  driftKind: z.ZodOptional<z.ZodEnum<{
773
885
  none: "none";
@@ -785,12 +897,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
785
897
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
786
898
  dependencies: z.ZodArray<z.ZodObject<{
787
899
  type: z.ZodEnum<{
900
+ agent: "agent";
788
901
  file: "file";
789
902
  memory_store: "memory_store";
790
903
  environment: "environment";
791
904
  vault: "vault";
792
905
  skill: "skill";
793
- agent: "agent";
794
906
  template: "template";
795
907
  deployment: "deployment";
796
908
  identity: "identity";
@@ -801,8 +913,8 @@ declare const AgentSyncRunSchema: z.ZodObject<{
801
913
  }, z.core.$strip>>;
802
914
  }, z.core.$strip>;
803
915
  status: z.ZodEnum<{
804
- success: "success";
805
916
  failed: "failed";
917
+ success: "success";
806
918
  skipped: "skipped";
807
919
  }>;
808
920
  error: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import { P as ProviderSessionEvent, an as SessionEvent } from './session-event-CxLg_XqS.js';
1
+ import { P as ProviderSessionEvent, an as SessionEvent } from './session-event--Mxe1bnT.js';
2
2
  import 'zod';
3
3
 
4
4
  declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagentpack/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "OpenAgentPack SDK (Node-compatible runtime)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [