@openagentpack/sdk 0.3.2 → 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,4 +1,4 @@
1
- import { P as ProviderSessionEvent, an as SessionEvent } from './session-event-mzuENtyH.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.2",
3
+ "version": "0.4.0",
4
4
  "description": "OpenAgentPack SDK (Node-compatible runtime)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -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";
@@ -107,12 +107,12 @@ declare const PlannedActionSchema: z.ZodObject<{
107
107
  }, z.core.$strip>;
108
108
  previousAddress: z.ZodOptional<z.ZodObject<{
109
109
  type: z.ZodEnum<{
110
+ agent: "agent";
110
111
  file: "file";
111
112
  memory_store: "memory_store";
112
113
  environment: "environment";
113
114
  vault: "vault";
114
115
  skill: "skill";
115
- agent: "agent";
116
116
  template: "template";
117
117
  deployment: "deployment";
118
118
  identity: "identity";
@@ -138,12 +138,12 @@ declare const PlannedActionSchema: z.ZodObject<{
138
138
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
139
  dependencies: z.ZodArray<z.ZodObject<{
140
140
  type: z.ZodEnum<{
141
+ agent: "agent";
141
142
  file: "file";
142
143
  memory_store: "memory_store";
143
144
  environment: "environment";
144
145
  vault: "vault";
145
146
  skill: "skill";
146
- agent: "agent";
147
147
  template: "template";
148
148
  deployment: "deployment";
149
149
  identity: "identity";
@@ -155,8 +155,8 @@ declare const PlannedActionSchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  type PlannedAction = z.infer<typeof PlannedActionSchema>;
157
157
  declare const AgentReadinessStatusSchema: z.ZodEnum<{
158
- error: "error";
159
158
  ready: "ready";
159
+ error: "error";
160
160
  missing: "missing";
161
161
  creating: "creating";
162
162
  updating: "updating";
@@ -203,8 +203,8 @@ declare const AgentDefinitionSchema: z.ZodObject<{
203
203
  type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
204
204
  declare const AgentReadinessSchema: z.ZodObject<{
205
205
  status: z.ZodEnum<{
206
- error: "error";
207
206
  ready: "ready";
207
+ error: "error";
208
208
  missing: "missing";
209
209
  creating: "creating";
210
210
  updating: "updating";
@@ -227,12 +227,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
227
227
  message: z.ZodString;
228
228
  resource: z.ZodOptional<z.ZodObject<{
229
229
  type: z.ZodEnum<{
230
+ agent: "agent";
230
231
  file: "file";
231
232
  memory_store: "memory_store";
232
233
  environment: "environment";
233
234
  vault: "vault";
234
235
  skill: "skill";
235
- agent: "agent";
236
236
  template: "template";
237
237
  deployment: "deployment";
238
238
  identity: "identity";
@@ -244,12 +244,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
244
244
  }, z.core.$strip>>;
245
245
  missing: z.ZodArray<z.ZodObject<{
246
246
  type: z.ZodEnum<{
247
+ agent: "agent";
247
248
  file: "file";
248
249
  memory_store: "memory_store";
249
250
  environment: "environment";
250
251
  vault: "vault";
251
252
  skill: "skill";
252
- agent: "agent";
253
253
  template: "template";
254
254
  deployment: "deployment";
255
255
  identity: "identity";
@@ -267,12 +267,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
267
267
  }>;
268
268
  address: z.ZodObject<{
269
269
  type: z.ZodEnum<{
270
+ agent: "agent";
270
271
  file: "file";
271
272
  memory_store: "memory_store";
272
273
  environment: "environment";
273
274
  vault: "vault";
274
275
  skill: "skill";
275
- agent: "agent";
276
276
  template: "template";
277
277
  deployment: "deployment";
278
278
  identity: "identity";
@@ -283,12 +283,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
283
283
  }, z.core.$strip>;
284
284
  previousAddress: z.ZodOptional<z.ZodObject<{
285
285
  type: z.ZodEnum<{
286
+ agent: "agent";
286
287
  file: "file";
287
288
  memory_store: "memory_store";
288
289
  environment: "environment";
289
290
  vault: "vault";
290
291
  skill: "skill";
291
- agent: "agent";
292
292
  template: "template";
293
293
  deployment: "deployment";
294
294
  identity: "identity";
@@ -314,12 +314,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
314
314
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
315
315
  dependencies: z.ZodArray<z.ZodObject<{
316
316
  type: z.ZodEnum<{
317
+ agent: "agent";
317
318
  file: "file";
318
319
  memory_store: "memory_store";
319
320
  environment: "environment";
320
321
  vault: "vault";
321
322
  skill: "skill";
322
- agent: "agent";
323
323
  template: "template";
324
324
  deployment: "deployment";
325
325
  identity: "identity";
@@ -353,8 +353,8 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
353
353
  }, z.core.$strip>;
354
354
  readiness: z.ZodObject<{
355
355
  status: z.ZodEnum<{
356
- error: "error";
357
356
  ready: "ready";
357
+ error: "error";
358
358
  missing: "missing";
359
359
  creating: "creating";
360
360
  updating: "updating";
@@ -377,12 +377,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
377
377
  message: z.ZodString;
378
378
  resource: z.ZodOptional<z.ZodObject<{
379
379
  type: z.ZodEnum<{
380
+ agent: "agent";
380
381
  file: "file";
381
382
  memory_store: "memory_store";
382
383
  environment: "environment";
383
384
  vault: "vault";
384
385
  skill: "skill";
385
- agent: "agent";
386
386
  template: "template";
387
387
  deployment: "deployment";
388
388
  identity: "identity";
@@ -394,12 +394,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
394
394
  }, z.core.$strip>>;
395
395
  missing: z.ZodArray<z.ZodObject<{
396
396
  type: z.ZodEnum<{
397
+ agent: "agent";
397
398
  file: "file";
398
399
  memory_store: "memory_store";
399
400
  environment: "environment";
400
401
  vault: "vault";
401
402
  skill: "skill";
402
- agent: "agent";
403
403
  template: "template";
404
404
  deployment: "deployment";
405
405
  identity: "identity";
@@ -417,12 +417,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
417
417
  }>;
418
418
  address: z.ZodObject<{
419
419
  type: z.ZodEnum<{
420
+ agent: "agent";
420
421
  file: "file";
421
422
  memory_store: "memory_store";
422
423
  environment: "environment";
423
424
  vault: "vault";
424
425
  skill: "skill";
425
- agent: "agent";
426
426
  template: "template";
427
427
  deployment: "deployment";
428
428
  identity: "identity";
@@ -433,12 +433,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
433
433
  }, z.core.$strip>;
434
434
  previousAddress: z.ZodOptional<z.ZodObject<{
435
435
  type: z.ZodEnum<{
436
+ agent: "agent";
436
437
  file: "file";
437
438
  memory_store: "memory_store";
438
439
  environment: "environment";
439
440
  vault: "vault";
440
441
  skill: "skill";
441
- agent: "agent";
442
442
  template: "template";
443
443
  deployment: "deployment";
444
444
  identity: "identity";
@@ -464,12 +464,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
464
464
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
465
465
  dependencies: z.ZodArray<z.ZodObject<{
466
466
  type: z.ZodEnum<{
467
+ agent: "agent";
467
468
  file: "file";
468
469
  memory_store: "memory_store";
469
470
  environment: "environment";
470
471
  vault: "vault";
471
472
  skill: "skill";
472
- agent: "agent";
473
473
  template: "template";
474
474
  deployment: "deployment";
475
475
  identity: "identity";
@@ -570,19 +570,19 @@ declare const CloudVaultSchema: z.ZodObject<{
570
570
  }, z.core.$strip>;
571
571
  type CloudVault = z.infer<typeof CloudVaultSchema>;
572
572
  declare const SessionEventTypeSchema: z.ZodEnum<{
573
+ status: "status";
573
574
  error: "error";
574
575
  message: "message";
575
576
  unknown: "unknown";
576
- status: "status";
577
577
  thinking: "thinking";
578
578
  tool_use: "tool_use";
579
579
  tool_result: "tool_result";
580
580
  }>;
581
581
  type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
582
582
  declare const AgentSyncStatusSchema: z.ZodEnum<{
583
+ failed: "failed";
583
584
  completed: "completed";
584
585
  blocked: "blocked";
585
- failed: "failed";
586
586
  }>;
587
587
  type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
588
588
  declare const AgentSyncResultSchema: z.ZodObject<{
@@ -595,12 +595,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
595
595
  }>;
596
596
  address: z.ZodObject<{
597
597
  type: z.ZodEnum<{
598
+ agent: "agent";
598
599
  file: "file";
599
600
  memory_store: "memory_store";
600
601
  environment: "environment";
601
602
  vault: "vault";
602
603
  skill: "skill";
603
- agent: "agent";
604
604
  template: "template";
605
605
  deployment: "deployment";
606
606
  identity: "identity";
@@ -611,12 +611,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
611
611
  }, z.core.$strip>;
612
612
  previousAddress: z.ZodOptional<z.ZodObject<{
613
613
  type: z.ZodEnum<{
614
+ agent: "agent";
614
615
  file: "file";
615
616
  memory_store: "memory_store";
616
617
  environment: "environment";
617
618
  vault: "vault";
618
619
  skill: "skill";
619
- agent: "agent";
620
620
  template: "template";
621
621
  deployment: "deployment";
622
622
  identity: "identity";
@@ -642,12 +642,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
642
642
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
643
  dependencies: z.ZodArray<z.ZodObject<{
644
644
  type: z.ZodEnum<{
645
+ agent: "agent";
645
646
  file: "file";
646
647
  memory_store: "memory_store";
647
648
  environment: "environment";
648
649
  vault: "vault";
649
650
  skill: "skill";
650
- agent: "agent";
651
651
  template: "template";
652
652
  deployment: "deployment";
653
653
  identity: "identity";
@@ -658,8 +658,8 @@ declare const AgentSyncResultSchema: z.ZodObject<{
658
658
  }, z.core.$strip>>;
659
659
  }, z.core.$strip>;
660
660
  status: z.ZodEnum<{
661
- success: "success";
662
661
  failed: "failed";
662
+ success: "success";
663
663
  skipped: "skipped";
664
664
  }>;
665
665
  error: z.ZodOptional<z.ZodString>;
@@ -669,9 +669,9 @@ declare const AgentSyncRunSchema: z.ZodObject<{
669
669
  agentId: z.ZodString;
670
670
  provider: z.ZodOptional<z.ZodString>;
671
671
  status: z.ZodEnum<{
672
+ failed: "failed";
672
673
  completed: "completed";
673
674
  blocked: "blocked";
674
- failed: "failed";
675
675
  }>;
676
676
  actions: z.ZodArray<z.ZodObject<{
677
677
  action: z.ZodEnum<{
@@ -682,12 +682,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
682
682
  }>;
683
683
  address: z.ZodObject<{
684
684
  type: z.ZodEnum<{
685
+ agent: "agent";
685
686
  file: "file";
686
687
  memory_store: "memory_store";
687
688
  environment: "environment";
688
689
  vault: "vault";
689
690
  skill: "skill";
690
- agent: "agent";
691
691
  template: "template";
692
692
  deployment: "deployment";
693
693
  identity: "identity";
@@ -698,12 +698,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
698
698
  }, z.core.$strip>;
699
699
  previousAddress: z.ZodOptional<z.ZodObject<{
700
700
  type: z.ZodEnum<{
701
+ agent: "agent";
701
702
  file: "file";
702
703
  memory_store: "memory_store";
703
704
  environment: "environment";
704
705
  vault: "vault";
705
706
  skill: "skill";
706
- agent: "agent";
707
707
  template: "template";
708
708
  deployment: "deployment";
709
709
  identity: "identity";
@@ -729,12 +729,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
729
729
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
730
730
  dependencies: z.ZodArray<z.ZodObject<{
731
731
  type: z.ZodEnum<{
732
+ agent: "agent";
732
733
  file: "file";
733
734
  memory_store: "memory_store";
734
735
  environment: "environment";
735
736
  vault: "vault";
736
737
  skill: "skill";
737
- agent: "agent";
738
738
  template: "template";
739
739
  deployment: "deployment";
740
740
  identity: "identity";
@@ -754,12 +754,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
754
754
  message: z.ZodString;
755
755
  resource: z.ZodOptional<z.ZodObject<{
756
756
  type: z.ZodEnum<{
757
+ agent: "agent";
757
758
  file: "file";
758
759
  memory_store: "memory_store";
759
760
  environment: "environment";
760
761
  vault: "vault";
761
762
  skill: "skill";
762
- agent: "agent";
763
763
  template: "template";
764
764
  deployment: "deployment";
765
765
  identity: "identity";
@@ -778,12 +778,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
778
778
  }>;
779
779
  address: z.ZodObject<{
780
780
  type: z.ZodEnum<{
781
+ agent: "agent";
781
782
  file: "file";
782
783
  memory_store: "memory_store";
783
784
  environment: "environment";
784
785
  vault: "vault";
785
786
  skill: "skill";
786
- agent: "agent";
787
787
  template: "template";
788
788
  deployment: "deployment";
789
789
  identity: "identity";
@@ -794,12 +794,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
794
794
  }, z.core.$strip>;
795
795
  previousAddress: z.ZodOptional<z.ZodObject<{
796
796
  type: z.ZodEnum<{
797
+ agent: "agent";
797
798
  file: "file";
798
799
  memory_store: "memory_store";
799
800
  environment: "environment";
800
801
  vault: "vault";
801
802
  skill: "skill";
802
- agent: "agent";
803
803
  template: "template";
804
804
  deployment: "deployment";
805
805
  identity: "identity";
@@ -825,12 +825,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
825
825
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
826
826
  dependencies: z.ZodArray<z.ZodObject<{
827
827
  type: z.ZodEnum<{
828
+ agent: "agent";
828
829
  file: "file";
829
830
  memory_store: "memory_store";
830
831
  environment: "environment";
831
832
  vault: "vault";
832
833
  skill: "skill";
833
- agent: "agent";
834
834
  template: "template";
835
835
  deployment: "deployment";
836
836
  identity: "identity";
@@ -850,12 +850,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
850
850
  }>;
851
851
  address: z.ZodObject<{
852
852
  type: z.ZodEnum<{
853
+ agent: "agent";
853
854
  file: "file";
854
855
  memory_store: "memory_store";
855
856
  environment: "environment";
856
857
  vault: "vault";
857
858
  skill: "skill";
858
- agent: "agent";
859
859
  template: "template";
860
860
  deployment: "deployment";
861
861
  identity: "identity";
@@ -866,12 +866,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
866
866
  }, z.core.$strip>;
867
867
  previousAddress: z.ZodOptional<z.ZodObject<{
868
868
  type: z.ZodEnum<{
869
+ agent: "agent";
869
870
  file: "file";
870
871
  memory_store: "memory_store";
871
872
  environment: "environment";
872
873
  vault: "vault";
873
874
  skill: "skill";
874
- agent: "agent";
875
875
  template: "template";
876
876
  deployment: "deployment";
877
877
  identity: "identity";
@@ -897,12 +897,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
897
897
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
898
898
  dependencies: z.ZodArray<z.ZodObject<{
899
899
  type: z.ZodEnum<{
900
+ agent: "agent";
900
901
  file: "file";
901
902
  memory_store: "memory_store";
902
903
  environment: "environment";
903
904
  vault: "vault";
904
905
  skill: "skill";
905
- agent: "agent";
906
906
  template: "template";
907
907
  deployment: "deployment";
908
908
  identity: "identity";
@@ -913,8 +913,8 @@ declare const AgentSyncRunSchema: z.ZodObject<{
913
913
  }, z.core.$strip>>;
914
914
  }, z.core.$strip>;
915
915
  status: z.ZodEnum<{
916
- success: "success";
917
916
  failed: "failed";
917
+ success: "success";
918
918
  skipped: "skipped";
919
919
  }>;
920
920
  error: z.ZodOptional<z.ZodString>;