@myagentroam/protocol 0.10.29 → 0.10.31

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.
package/dist/index.d.ts CHANGED
@@ -11098,18 +11098,38 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11098
11098
  payload: z.ZodObject<{
11099
11099
  phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
11100
11100
  summary: z.ZodNullable<z.ZodString>;
11101
+ mode: z.ZodOptional<z.ZodEnum<["BACKGROUND", "BLOCKING"]>>;
11102
+ stage: z.ZodOptional<z.ZodEnum<["GENERATING", "READY", "WAITING"]>>;
11103
+ anchorItemId: z.ZodOptional<z.ZodString>;
11104
+ retainedContext: z.ZodOptional<z.ZodBoolean>;
11105
+ code: z.ZodOptional<z.ZodString>;
11101
11106
  }, "strip", z.ZodTypeAny, {
11102
11107
  phase: "COMPLETED" | "STARTED";
11103
11108
  summary: string | null;
11109
+ code?: string | undefined;
11110
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
11111
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
11112
+ anchorItemId?: string | undefined;
11113
+ retainedContext?: boolean | undefined;
11104
11114
  }, {
11105
11115
  phase: "COMPLETED" | "STARTED";
11106
11116
  summary: string | null;
11117
+ code?: string | undefined;
11118
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
11119
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
11120
+ anchorItemId?: string | undefined;
11121
+ retainedContext?: boolean | undefined;
11107
11122
  }>;
11108
11123
  }, "strip", z.ZodTypeAny, {
11109
11124
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
11110
11125
  payload: {
11111
11126
  phase: "COMPLETED" | "STARTED";
11112
11127
  summary: string | null;
11128
+ code?: string | undefined;
11129
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
11130
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
11131
+ anchorItemId?: string | undefined;
11132
+ retainedContext?: boolean | undefined;
11113
11133
  };
11114
11134
  kind: "context_compaction";
11115
11135
  id: string;
@@ -11139,6 +11159,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11139
11159
  payload: {
11140
11160
  phase: "COMPLETED" | "STARTED";
11141
11161
  summary: string | null;
11162
+ code?: string | undefined;
11163
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
11164
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
11165
+ anchorItemId?: string | undefined;
11166
+ retainedContext?: boolean | undefined;
11142
11167
  };
11143
11168
  kind: "context_compaction";
11144
11169
  id: string;
@@ -13686,18 +13711,38 @@ export declare const conversationTurnSchema: z.ZodObject<{
13686
13711
  payload: z.ZodObject<{
13687
13712
  phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
13688
13713
  summary: z.ZodNullable<z.ZodString>;
13714
+ mode: z.ZodOptional<z.ZodEnum<["BACKGROUND", "BLOCKING"]>>;
13715
+ stage: z.ZodOptional<z.ZodEnum<["GENERATING", "READY", "WAITING"]>>;
13716
+ anchorItemId: z.ZodOptional<z.ZodString>;
13717
+ retainedContext: z.ZodOptional<z.ZodBoolean>;
13718
+ code: z.ZodOptional<z.ZodString>;
13689
13719
  }, "strip", z.ZodTypeAny, {
13690
13720
  phase: "COMPLETED" | "STARTED";
13691
13721
  summary: string | null;
13722
+ code?: string | undefined;
13723
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
13724
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
13725
+ anchorItemId?: string | undefined;
13726
+ retainedContext?: boolean | undefined;
13692
13727
  }, {
13693
13728
  phase: "COMPLETED" | "STARTED";
13694
13729
  summary: string | null;
13730
+ code?: string | undefined;
13731
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
13732
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
13733
+ anchorItemId?: string | undefined;
13734
+ retainedContext?: boolean | undefined;
13695
13735
  }>;
13696
13736
  }, "strip", z.ZodTypeAny, {
13697
13737
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
13698
13738
  payload: {
13699
13739
  phase: "COMPLETED" | "STARTED";
13700
13740
  summary: string | null;
13741
+ code?: string | undefined;
13742
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
13743
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
13744
+ anchorItemId?: string | undefined;
13745
+ retainedContext?: boolean | undefined;
13701
13746
  };
13702
13747
  kind: "context_compaction";
13703
13748
  id: string;
@@ -13727,6 +13772,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
13727
13772
  payload: {
13728
13773
  phase: "COMPLETED" | "STARTED";
13729
13774
  summary: string | null;
13775
+ code?: string | undefined;
13776
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
13777
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
13778
+ anchorItemId?: string | undefined;
13779
+ retainedContext?: boolean | undefined;
13730
13780
  };
13731
13781
  kind: "context_compaction";
13732
13782
  id: string;
@@ -14704,6 +14754,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
14704
14754
  payload: {
14705
14755
  phase: "COMPLETED" | "STARTED";
14706
14756
  summary: string | null;
14757
+ code?: string | undefined;
14758
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
14759
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
14760
+ anchorItemId?: string | undefined;
14761
+ retainedContext?: boolean | undefined;
14707
14762
  };
14708
14763
  kind: "context_compaction";
14709
14764
  id: string;
@@ -15252,6 +15307,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
15252
15307
  payload: {
15253
15308
  phase: "COMPLETED" | "STARTED";
15254
15309
  summary: string | null;
15310
+ code?: string | undefined;
15311
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
15312
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
15313
+ anchorItemId?: string | undefined;
15314
+ retainedContext?: boolean | undefined;
15255
15315
  };
15256
15316
  kind: "context_compaction";
15257
15317
  id: string;
@@ -18868,18 +18928,38 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
18868
18928
  payload: z.ZodObject<{
18869
18929
  phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
18870
18930
  summary: z.ZodNullable<z.ZodString>;
18931
+ mode: z.ZodOptional<z.ZodEnum<["BACKGROUND", "BLOCKING"]>>;
18932
+ stage: z.ZodOptional<z.ZodEnum<["GENERATING", "READY", "WAITING"]>>;
18933
+ anchorItemId: z.ZodOptional<z.ZodString>;
18934
+ retainedContext: z.ZodOptional<z.ZodBoolean>;
18935
+ code: z.ZodOptional<z.ZodString>;
18871
18936
  }, "strip", z.ZodTypeAny, {
18872
18937
  phase: "COMPLETED" | "STARTED";
18873
18938
  summary: string | null;
18939
+ code?: string | undefined;
18940
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
18941
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
18942
+ anchorItemId?: string | undefined;
18943
+ retainedContext?: boolean | undefined;
18874
18944
  }, {
18875
18945
  phase: "COMPLETED" | "STARTED";
18876
18946
  summary: string | null;
18947
+ code?: string | undefined;
18948
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
18949
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
18950
+ anchorItemId?: string | undefined;
18951
+ retainedContext?: boolean | undefined;
18877
18952
  }>;
18878
18953
  }, "strip", z.ZodTypeAny, {
18879
18954
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
18880
18955
  payload: {
18881
18956
  phase: "COMPLETED" | "STARTED";
18882
18957
  summary: string | null;
18958
+ code?: string | undefined;
18959
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
18960
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
18961
+ anchorItemId?: string | undefined;
18962
+ retainedContext?: boolean | undefined;
18883
18963
  };
18884
18964
  kind: "context_compaction";
18885
18965
  id: string;
@@ -18909,6 +18989,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
18909
18989
  payload: {
18910
18990
  phase: "COMPLETED" | "STARTED";
18911
18991
  summary: string | null;
18992
+ code?: string | undefined;
18993
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
18994
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
18995
+ anchorItemId?: string | undefined;
18996
+ retainedContext?: boolean | undefined;
18912
18997
  };
18913
18998
  kind: "context_compaction";
18914
18999
  id: string;
@@ -19886,6 +19971,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
19886
19971
  payload: {
19887
19972
  phase: "COMPLETED" | "STARTED";
19888
19973
  summary: string | null;
19974
+ code?: string | undefined;
19975
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
19976
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
19977
+ anchorItemId?: string | undefined;
19978
+ retainedContext?: boolean | undefined;
19889
19979
  };
19890
19980
  kind: "context_compaction";
19891
19981
  id: string;
@@ -20434,6 +20524,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
20434
20524
  payload: {
20435
20525
  phase: "COMPLETED" | "STARTED";
20436
20526
  summary: string | null;
20527
+ code?: string | undefined;
20528
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
20529
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
20530
+ anchorItemId?: string | undefined;
20531
+ retainedContext?: boolean | undefined;
20437
20532
  };
20438
20533
  kind: "context_compaction";
20439
20534
  id: string;
@@ -21211,6 +21306,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21211
21306
  payload: {
21212
21307
  phase: "COMPLETED" | "STARTED";
21213
21308
  summary: string | null;
21309
+ code?: string | undefined;
21310
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
21311
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
21312
+ anchorItemId?: string | undefined;
21313
+ retainedContext?: boolean | undefined;
21214
21314
  };
21215
21315
  kind: "context_compaction";
21216
21316
  id: string;
@@ -21824,6 +21924,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21824
21924
  payload: {
21825
21925
  phase: "COMPLETED" | "STARTED";
21826
21926
  summary: string | null;
21927
+ code?: string | undefined;
21928
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
21929
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
21930
+ anchorItemId?: string | undefined;
21931
+ retainedContext?: boolean | undefined;
21827
21932
  };
21828
21933
  kind: "context_compaction";
21829
21934
  id: string;
@@ -22437,6 +22542,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
22437
22542
  payload: {
22438
22543
  phase: "COMPLETED" | "STARTED";
22439
22544
  summary: string | null;
22545
+ code?: string | undefined;
22546
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
22547
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
22548
+ anchorItemId?: string | undefined;
22549
+ retainedContext?: boolean | undefined;
22440
22550
  };
22441
22551
  kind: "context_compaction";
22442
22552
  id: string;
@@ -23050,6 +23160,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
23050
23160
  payload: {
23051
23161
  phase: "COMPLETED" | "STARTED";
23052
23162
  summary: string | null;
23163
+ code?: string | undefined;
23164
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
23165
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
23166
+ anchorItemId?: string | undefined;
23167
+ retainedContext?: boolean | undefined;
23053
23168
  };
23054
23169
  kind: "context_compaction";
23055
23170
  id: string;
@@ -25472,18 +25587,38 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
25472
25587
  payload: z.ZodObject<{
25473
25588
  phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
25474
25589
  summary: z.ZodNullable<z.ZodString>;
25590
+ mode: z.ZodOptional<z.ZodEnum<["BACKGROUND", "BLOCKING"]>>;
25591
+ stage: z.ZodOptional<z.ZodEnum<["GENERATING", "READY", "WAITING"]>>;
25592
+ anchorItemId: z.ZodOptional<z.ZodString>;
25593
+ retainedContext: z.ZodOptional<z.ZodBoolean>;
25594
+ code: z.ZodOptional<z.ZodString>;
25475
25595
  }, "strip", z.ZodTypeAny, {
25476
25596
  phase: "COMPLETED" | "STARTED";
25477
25597
  summary: string | null;
25598
+ code?: string | undefined;
25599
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
25600
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
25601
+ anchorItemId?: string | undefined;
25602
+ retainedContext?: boolean | undefined;
25478
25603
  }, {
25479
25604
  phase: "COMPLETED" | "STARTED";
25480
25605
  summary: string | null;
25606
+ code?: string | undefined;
25607
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
25608
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
25609
+ anchorItemId?: string | undefined;
25610
+ retainedContext?: boolean | undefined;
25481
25611
  }>;
25482
25612
  }, "strip", z.ZodTypeAny, {
25483
25613
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
25484
25614
  payload: {
25485
25615
  phase: "COMPLETED" | "STARTED";
25486
25616
  summary: string | null;
25617
+ code?: string | undefined;
25618
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
25619
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
25620
+ anchorItemId?: string | undefined;
25621
+ retainedContext?: boolean | undefined;
25487
25622
  };
25488
25623
  kind: "context_compaction";
25489
25624
  id: string;
@@ -25513,6 +25648,11 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
25513
25648
  payload: {
25514
25649
  phase: "COMPLETED" | "STARTED";
25515
25650
  summary: string | null;
25651
+ code?: string | undefined;
25652
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
25653
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
25654
+ anchorItemId?: string | undefined;
25655
+ retainedContext?: boolean | undefined;
25516
25656
  };
25517
25657
  kind: "context_compaction";
25518
25658
  id: string;
@@ -26490,6 +26630,11 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
26490
26630
  payload: {
26491
26631
  phase: "COMPLETED" | "STARTED";
26492
26632
  summary: string | null;
26633
+ code?: string | undefined;
26634
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
26635
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
26636
+ anchorItemId?: string | undefined;
26637
+ retainedContext?: boolean | undefined;
26493
26638
  };
26494
26639
  kind: "context_compaction";
26495
26640
  id: string;
@@ -27038,6 +27183,11 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
27038
27183
  payload: {
27039
27184
  phase: "COMPLETED" | "STARTED";
27040
27185
  summary: string | null;
27186
+ code?: string | undefined;
27187
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
27188
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
27189
+ anchorItemId?: string | undefined;
27190
+ retainedContext?: boolean | undefined;
27041
27191
  };
27042
27192
  kind: "context_compaction";
27043
27193
  id: string;
@@ -27590,6 +27740,11 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
27590
27740
  payload: {
27591
27741
  phase: "COMPLETED" | "STARTED";
27592
27742
  summary: string | null;
27743
+ code?: string | undefined;
27744
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
27745
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
27746
+ anchorItemId?: string | undefined;
27747
+ retainedContext?: boolean | undefined;
27593
27748
  };
27594
27749
  kind: "context_compaction";
27595
27750
  id: string;
@@ -28141,6 +28296,11 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
28141
28296
  payload: {
28142
28297
  phase: "COMPLETED" | "STARTED";
28143
28298
  summary: string | null;
28299
+ code?: string | undefined;
28300
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
28301
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
28302
+ anchorItemId?: string | undefined;
28303
+ retainedContext?: boolean | undefined;
28144
28304
  };
28145
28305
  kind: "context_compaction";
28146
28306
  id: string;
@@ -31003,18 +31163,38 @@ export declare const conversationSegmentSchema: z.ZodObject<{
31003
31163
  payload: z.ZodObject<{
31004
31164
  phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
31005
31165
  summary: z.ZodNullable<z.ZodString>;
31166
+ mode: z.ZodOptional<z.ZodEnum<["BACKGROUND", "BLOCKING"]>>;
31167
+ stage: z.ZodOptional<z.ZodEnum<["GENERATING", "READY", "WAITING"]>>;
31168
+ anchorItemId: z.ZodOptional<z.ZodString>;
31169
+ retainedContext: z.ZodOptional<z.ZodBoolean>;
31170
+ code: z.ZodOptional<z.ZodString>;
31006
31171
  }, "strip", z.ZodTypeAny, {
31007
31172
  phase: "COMPLETED" | "STARTED";
31008
31173
  summary: string | null;
31174
+ code?: string | undefined;
31175
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
31176
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
31177
+ anchorItemId?: string | undefined;
31178
+ retainedContext?: boolean | undefined;
31009
31179
  }, {
31010
31180
  phase: "COMPLETED" | "STARTED";
31011
31181
  summary: string | null;
31182
+ code?: string | undefined;
31183
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
31184
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
31185
+ anchorItemId?: string | undefined;
31186
+ retainedContext?: boolean | undefined;
31012
31187
  }>;
31013
31188
  }, "strip", z.ZodTypeAny, {
31014
31189
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
31015
31190
  payload: {
31016
31191
  phase: "COMPLETED" | "STARTED";
31017
31192
  summary: string | null;
31193
+ code?: string | undefined;
31194
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
31195
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
31196
+ anchorItemId?: string | undefined;
31197
+ retainedContext?: boolean | undefined;
31018
31198
  };
31019
31199
  kind: "context_compaction";
31020
31200
  id: string;
@@ -31044,6 +31224,11 @@ export declare const conversationSegmentSchema: z.ZodObject<{
31044
31224
  payload: {
31045
31225
  phase: "COMPLETED" | "STARTED";
31046
31226
  summary: string | null;
31227
+ code?: string | undefined;
31228
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
31229
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
31230
+ anchorItemId?: string | undefined;
31231
+ retainedContext?: boolean | undefined;
31047
31232
  };
31048
31233
  kind: "context_compaction";
31049
31234
  id: string;
@@ -32019,6 +32204,11 @@ export declare const conversationSegmentSchema: z.ZodObject<{
32019
32204
  payload: {
32020
32205
  phase: "COMPLETED" | "STARTED";
32021
32206
  summary: string | null;
32207
+ code?: string | undefined;
32208
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
32209
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
32210
+ anchorItemId?: string | undefined;
32211
+ retainedContext?: boolean | undefined;
32022
32212
  };
32023
32213
  kind: "context_compaction";
32024
32214
  id: string;
@@ -32565,6 +32755,11 @@ export declare const conversationSegmentSchema: z.ZodObject<{
32565
32755
  payload: {
32566
32756
  phase: "COMPLETED" | "STARTED";
32567
32757
  summary: string | null;
32758
+ code?: string | undefined;
32759
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
32760
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
32761
+ anchorItemId?: string | undefined;
32762
+ retainedContext?: boolean | undefined;
32568
32763
  };
32569
32764
  kind: "context_compaction";
32570
32765
  id: string;
@@ -34686,18 +34881,38 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
34686
34881
  payload: z.ZodObject<{
34687
34882
  phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
34688
34883
  summary: z.ZodNullable<z.ZodString>;
34884
+ mode: z.ZodOptional<z.ZodEnum<["BACKGROUND", "BLOCKING"]>>;
34885
+ stage: z.ZodOptional<z.ZodEnum<["GENERATING", "READY", "WAITING"]>>;
34886
+ anchorItemId: z.ZodOptional<z.ZodString>;
34887
+ retainedContext: z.ZodOptional<z.ZodBoolean>;
34888
+ code: z.ZodOptional<z.ZodString>;
34689
34889
  }, "strip", z.ZodTypeAny, {
34690
34890
  phase: "COMPLETED" | "STARTED";
34691
34891
  summary: string | null;
34892
+ code?: string | undefined;
34893
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
34894
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
34895
+ anchorItemId?: string | undefined;
34896
+ retainedContext?: boolean | undefined;
34692
34897
  }, {
34693
34898
  phase: "COMPLETED" | "STARTED";
34694
34899
  summary: string | null;
34900
+ code?: string | undefined;
34901
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
34902
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
34903
+ anchorItemId?: string | undefined;
34904
+ retainedContext?: boolean | undefined;
34695
34905
  }>;
34696
34906
  }, "strip", z.ZodTypeAny, {
34697
34907
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
34698
34908
  payload: {
34699
34909
  phase: "COMPLETED" | "STARTED";
34700
34910
  summary: string | null;
34911
+ code?: string | undefined;
34912
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
34913
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
34914
+ anchorItemId?: string | undefined;
34915
+ retainedContext?: boolean | undefined;
34701
34916
  };
34702
34917
  kind: "context_compaction";
34703
34918
  id: string;
@@ -34727,6 +34942,11 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
34727
34942
  payload: {
34728
34943
  phase: "COMPLETED" | "STARTED";
34729
34944
  summary: string | null;
34945
+ code?: string | undefined;
34946
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
34947
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
34948
+ anchorItemId?: string | undefined;
34949
+ retainedContext?: boolean | undefined;
34730
34950
  };
34731
34951
  kind: "context_compaction";
34732
34952
  id: string;
@@ -35702,6 +35922,11 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
35702
35922
  payload: {
35703
35923
  phase: "COMPLETED" | "STARTED";
35704
35924
  summary: string | null;
35925
+ code?: string | undefined;
35926
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
35927
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
35928
+ anchorItemId?: string | undefined;
35929
+ retainedContext?: boolean | undefined;
35705
35930
  };
35706
35931
  kind: "context_compaction";
35707
35932
  id: string;
@@ -36248,6 +36473,11 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
36248
36473
  payload: {
36249
36474
  phase: "COMPLETED" | "STARTED";
36250
36475
  summary: string | null;
36476
+ code?: string | undefined;
36477
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
36478
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
36479
+ anchorItemId?: string | undefined;
36480
+ retainedContext?: boolean | undefined;
36251
36481
  };
36252
36482
  kind: "context_compaction";
36253
36483
  id: string;
@@ -36806,6 +37036,11 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
36806
37036
  payload: {
36807
37037
  phase: "COMPLETED" | "STARTED";
36808
37038
  summary: string | null;
37039
+ code?: string | undefined;
37040
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
37041
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
37042
+ anchorItemId?: string | undefined;
37043
+ retainedContext?: boolean | undefined;
36809
37044
  };
36810
37045
  kind: "context_compaction";
36811
37046
  id: string;
@@ -37361,6 +37596,11 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
37361
37596
  payload: {
37362
37597
  phase: "COMPLETED" | "STARTED";
37363
37598
  summary: string | null;
37599
+ code?: string | undefined;
37600
+ mode?: "BACKGROUND" | "BLOCKING" | undefined;
37601
+ stage?: "READY" | "GENERATING" | "WAITING" | undefined;
37602
+ anchorItemId?: string | undefined;
37603
+ retainedContext?: boolean | undefined;
37364
37604
  };
37365
37605
  kind: "context_compaction";
37366
37606
  id: string;
package/dist/index.js CHANGED
@@ -1928,7 +1928,12 @@ const contextCompactionItemSchema = conversationItemBaseSchema.extend({
1928
1928
  kind: z.literal('context_compaction'),
1929
1929
  payload: z.object({
1930
1930
  phase: z.enum(['STARTED', 'COMPLETED']),
1931
- summary: z.string().max(10000).nullable()
1931
+ summary: z.string().max(10000).nullable(),
1932
+ mode: z.enum(['BACKGROUND', 'BLOCKING']).optional(),
1933
+ stage: z.enum(['GENERATING', 'READY', 'WAITING']).optional(),
1934
+ anchorItemId: z.string().min(1).max(128).optional(),
1935
+ retainedContext: z.boolean().optional(),
1936
+ code: z.string().min(1).max(80).optional()
1932
1937
  })
1933
1938
  });
1934
1939
  const warningItemSchema = conversationItemBaseSchema.extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.10.29",
3
+ "version": "0.10.31",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",