@roll-agent/protocol 0.10.0 → 0.11.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.
package/dist/index.d.ts CHANGED
@@ -135,6 +135,7 @@ export declare const REQUIRED_RUNTIME_SERVER_REQUEST_METHODS_BY_VERSION: {
135
135
  export declare function getRuntimeProtocolCapabilities(version: RuntimeProtocolVersion): RuntimeProtocolCapabilities;
136
136
  export declare function isRuntimeServerRequestMethodRequired(version: RuntimeProtocolVersion, method: RuntimeServerRequestMethod): boolean;
137
137
  export declare const RUNTIME_METHODS: {
138
+ readonly reasoningTextSubscribe: "reasoning.text.subscribe";
138
139
  readonly operationResultGet: "operation.result.get";
139
140
  readonly initialize: "initialize";
140
141
  readonly clientCapabilitiesSet: "client.capabilities.set";
@@ -5332,9 +5333,9 @@ export declare const runtimeEventV11Schema: z.ZodDiscriminatedUnion<[z.ZodReadon
5332
5333
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
5333
5334
  text: z.ZodString;
5334
5335
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5335
- type: z.ZodLiteral<"reasoning.summary.delta">;
5336
5336
  reasoningId: z.ZodString;
5337
5337
  delta: z.ZodString;
5338
+ type: z.ZodLiteral<"reasoning.summary.delta">;
5338
5339
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5339
5340
  type: z.ZodLiteral<"tool.started">;
5340
5341
  toolCallId: z.ZodString;
@@ -5489,9 +5490,9 @@ export declare const runtimeEphemeralEventV13Schema: z.ZodDiscriminatedUnion<[z.
5489
5490
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
5490
5491
  delta: z.ZodString;
5491
5492
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5492
- type: z.ZodLiteral<"reasoning.summary.delta">;
5493
5493
  reasoningId: z.ZodString;
5494
5494
  delta: z.ZodString;
5495
+ type: z.ZodLiteral<"reasoning.summary.delta">;
5495
5496
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5496
5497
  type: z.ZodLiteral<"tool.started">;
5497
5498
  toolCallId: z.ZodString;
@@ -5524,9 +5525,9 @@ export declare const runtimeEventV12Schema: z.ZodDiscriminatedUnion<[z.ZodReadon
5524
5525
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
5525
5526
  text: z.ZodString;
5526
5527
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5527
- type: z.ZodLiteral<"reasoning.summary.delta">;
5528
5528
  reasoningId: z.ZodString;
5529
5529
  delta: z.ZodString;
5530
+ type: z.ZodLiteral<"reasoning.summary.delta">;
5530
5531
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5531
5532
  type: z.ZodLiteral<"tool.started">;
5532
5533
  toolCallId: z.ZodString;
@@ -5620,9 +5621,9 @@ export declare const runtimeEventV13Schema: z.ZodDiscriminatedUnion<[z.ZodReadon
5620
5621
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
5621
5622
  text: z.ZodString;
5622
5623
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5623
- type: z.ZodLiteral<"reasoning.summary.delta">;
5624
5624
  reasoningId: z.ZodString;
5625
5625
  delta: z.ZodString;
5626
+ type: z.ZodLiteral<"reasoning.summary.delta">;
5626
5627
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5627
5628
  type: z.ZodLiteral<"tool.started">;
5628
5629
  toolCallId: z.ZodString;
@@ -5923,9 +5924,9 @@ export declare const runtimeEventV15Schema: z.ZodUnion<readonly [z.ZodDiscrimina
5923
5924
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
5924
5925
  delta: z.ZodString;
5925
5926
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5926
- type: z.ZodLiteral<"reasoning.summary.delta">;
5927
5927
  reasoningId: z.ZodString;
5928
5928
  delta: z.ZodString;
5929
+ type: z.ZodLiteral<"reasoning.summary.delta">;
5929
5930
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5930
5931
  type: z.ZodLiteral<"tool.started">;
5931
5932
  toolCallId: z.ZodString;
@@ -6048,6 +6049,38 @@ export declare const runtimeDurableEventV16Schema: z.ZodDiscriminatedUnion<[z.Zo
6048
6049
  requiredItemCount: z.ZodNumber;
6049
6050
  }, z.core.$strict>>>;
6050
6051
  }, z.core.$strict>>], "type">;
6052
+ export declare const runtimeEphemeralEventV16Schema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
6053
+ type: z.ZodLiteral<"message.started">;
6054
+ streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6055
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6056
+ type: z.ZodLiteral<"message.delta">;
6057
+ streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6058
+ delta: z.ZodString;
6059
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6060
+ reasoningId: z.ZodString;
6061
+ delta: z.ZodString;
6062
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6063
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6064
+ type: z.ZodLiteral<"tool.started">;
6065
+ toolCallId: z.ZodString;
6066
+ agentName: z.ZodString;
6067
+ toolName: z.ZodString;
6068
+ input: z.ZodJSONSchema;
6069
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6070
+ type: z.ZodLiteral<"tool.output">;
6071
+ toolCallId: z.ZodString;
6072
+ agentName: z.ZodString;
6073
+ toolName: z.ZodString;
6074
+ stream: z.ZodEnum<{
6075
+ stdout: "stdout";
6076
+ stderr: "stderr";
6077
+ }>;
6078
+ delta: z.ZodString;
6079
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6080
+ reasoningId: z.ZodString;
6081
+ delta: z.ZodString;
6082
+ type: z.ZodLiteral<"reasoning.text.delta">;
6083
+ }, z.core.$strict>>], "type">;
6051
6084
  export declare const runtimeEventV16Schema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
6052
6085
  type: z.ZodLiteral<"turn.started">;
6053
6086
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -6151,9 +6184,9 @@ export declare const runtimeEventV16Schema: z.ZodUnion<readonly [z.ZodDiscrimina
6151
6184
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6152
6185
  delta: z.ZodString;
6153
6186
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6154
- type: z.ZodLiteral<"reasoning.summary.delta">;
6155
6187
  reasoningId: z.ZodString;
6156
6188
  delta: z.ZodString;
6189
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6157
6190
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6158
6191
  type: z.ZodLiteral<"tool.started">;
6159
6192
  toolCallId: z.ZodString;
@@ -6170,6 +6203,10 @@ export declare const runtimeEventV16Schema: z.ZodUnion<readonly [z.ZodDiscrimina
6170
6203
  stderr: "stderr";
6171
6204
  }>;
6172
6205
  delta: z.ZodString;
6206
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6207
+ reasoningId: z.ZodString;
6208
+ delta: z.ZodString;
6209
+ type: z.ZodLiteral<"reasoning.text.delta">;
6173
6210
  }, z.core.$strict>>], "type">]>;
6174
6211
  /** Latest Runtime Protocol event payloads. */
6175
6212
  export declare const runtimeEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
@@ -6275,9 +6312,9 @@ export declare const runtimeEventSchema: z.ZodUnion<readonly [z.ZodDiscriminated
6275
6312
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6276
6313
  delta: z.ZodString;
6277
6314
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6278
- type: z.ZodLiteral<"reasoning.summary.delta">;
6279
6315
  reasoningId: z.ZodString;
6280
6316
  delta: z.ZodString;
6317
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6281
6318
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6282
6319
  type: z.ZodLiteral<"tool.started">;
6283
6320
  toolCallId: z.ZodString;
@@ -6294,6 +6331,10 @@ export declare const runtimeEventSchema: z.ZodUnion<readonly [z.ZodDiscriminated
6294
6331
  stderr: "stderr";
6295
6332
  }>;
6296
6333
  delta: z.ZodString;
6334
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6335
+ reasoningId: z.ZodString;
6336
+ delta: z.ZodString;
6337
+ type: z.ZodLiteral<"reasoning.text.delta">;
6297
6338
  }, z.core.$strict>>], "type">]>;
6298
6339
  /** Runtime Protocol 1.1/1.0 event envelope. Keep this schema frozen. */
6299
6340
  export declare const runtimeEventEnvelopeV11Schema: z.ZodReadonly<z.ZodObject<{
@@ -6311,9 +6352,9 @@ export declare const runtimeEventEnvelopeV11Schema: z.ZodReadonly<z.ZodObject<{
6311
6352
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6312
6353
  text: z.ZodString;
6313
6354
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6314
- type: z.ZodLiteral<"reasoning.summary.delta">;
6315
6355
  reasoningId: z.ZodString;
6316
6356
  delta: z.ZodString;
6357
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6317
6358
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6318
6359
  type: z.ZodLiteral<"tool.started">;
6319
6360
  toolCallId: z.ZodString;
@@ -6418,9 +6459,9 @@ export declare const runtimeEventEnvelopeV12Schema: z.ZodReadonly<z.ZodObject<{
6418
6459
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6419
6460
  text: z.ZodString;
6420
6461
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6421
- type: z.ZodLiteral<"reasoning.summary.delta">;
6422
6462
  reasoningId: z.ZodString;
6423
6463
  delta: z.ZodString;
6464
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6424
6465
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6425
6466
  type: z.ZodLiteral<"tool.started">;
6426
6467
  toolCallId: z.ZodString;
@@ -6595,9 +6636,9 @@ export declare const runtimeEphemeralEventEnvelopeV13Schema: z.ZodReadonly<z.Zod
6595
6636
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6596
6637
  delta: z.ZodString;
6597
6638
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6598
- type: z.ZodLiteral<"reasoning.summary.delta">;
6599
6639
  reasoningId: z.ZodString;
6600
6640
  delta: z.ZodString;
6641
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6601
6642
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6602
6643
  type: z.ZodLiteral<"tool.started">;
6603
6644
  toolCallId: z.ZodString;
@@ -6710,9 +6751,9 @@ export declare const runtimeEventEnvelopeV13Schema: z.ZodDiscriminatedUnion<[z.Z
6710
6751
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6711
6752
  delta: z.ZodString;
6712
6753
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6713
- type: z.ZodLiteral<"reasoning.summary.delta">;
6714
6754
  reasoningId: z.ZodString;
6715
6755
  delta: z.ZodString;
6756
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6716
6757
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6717
6758
  type: z.ZodLiteral<"tool.started">;
6718
6759
  toolCallId: z.ZodString;
@@ -6826,9 +6867,9 @@ export declare const runtimeEphemeralEventEnvelopeV14Schema: z.ZodReadonly<z.Zod
6826
6867
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6827
6868
  delta: z.ZodString;
6828
6869
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6829
- type: z.ZodLiteral<"reasoning.summary.delta">;
6830
6870
  reasoningId: z.ZodString;
6831
6871
  delta: z.ZodString;
6872
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6832
6873
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6833
6874
  type: z.ZodLiteral<"tool.started">;
6834
6875
  toolCallId: z.ZodString;
@@ -6941,9 +6982,9 @@ export declare const runtimeEventEnvelopeV14Schema: z.ZodDiscriminatedUnion<[z.Z
6941
6982
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
6942
6983
  delta: z.ZodString;
6943
6984
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6944
- type: z.ZodLiteral<"reasoning.summary.delta">;
6945
6985
  reasoningId: z.ZodString;
6946
6986
  delta: z.ZodString;
6987
+ type: z.ZodLiteral<"reasoning.summary.delta">;
6947
6988
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6948
6989
  type: z.ZodLiteral<"tool.started">;
6949
6990
  toolCallId: z.ZodString;
@@ -7077,9 +7118,9 @@ export declare const runtimeEphemeralEventEnvelopeV15Schema: z.ZodReadonly<z.Zod
7077
7118
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7078
7119
  delta: z.ZodString;
7079
7120
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7080
- type: z.ZodLiteral<"reasoning.summary.delta">;
7081
7121
  reasoningId: z.ZodString;
7082
7122
  delta: z.ZodString;
7123
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7083
7124
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7084
7125
  type: z.ZodLiteral<"tool.started">;
7085
7126
  toolCallId: z.ZodString;
@@ -7212,9 +7253,9 @@ export declare const runtimeEventEnvelopeV15Schema: z.ZodDiscriminatedUnion<[z.Z
7212
7253
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7213
7254
  delta: z.ZodString;
7214
7255
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7215
- type: z.ZodLiteral<"reasoning.summary.delta">;
7216
7256
  reasoningId: z.ZodString;
7217
7257
  delta: z.ZodString;
7258
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7218
7259
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7219
7260
  type: z.ZodLiteral<"tool.started">;
7220
7261
  toolCallId: z.ZodString;
@@ -7357,9 +7398,9 @@ export declare const runtimeEphemeralEventEnvelopeV16Schema: z.ZodReadonly<z.Zod
7357
7398
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7358
7399
  delta: z.ZodString;
7359
7400
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7360
- type: z.ZodLiteral<"reasoning.summary.delta">;
7361
7401
  reasoningId: z.ZodString;
7362
7402
  delta: z.ZodString;
7403
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7363
7404
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7364
7405
  type: z.ZodLiteral<"tool.started">;
7365
7406
  toolCallId: z.ZodString;
@@ -7376,6 +7417,10 @@ export declare const runtimeEphemeralEventEnvelopeV16Schema: z.ZodReadonly<z.Zod
7376
7417
  stderr: "stderr";
7377
7418
  }>;
7378
7419
  delta: z.ZodString;
7420
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7421
+ reasoningId: z.ZodString;
7422
+ delta: z.ZodString;
7423
+ type: z.ZodLiteral<"reasoning.text.delta">;
7379
7424
  }, z.core.$strict>>], "type">;
7380
7425
  runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId", "out">;
7381
7426
  sequence: z.ZodNumber;
@@ -7500,9 +7545,9 @@ export declare const runtimeEventEnvelopeV16Schema: z.ZodDiscriminatedUnion<[z.Z
7500
7545
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7501
7546
  delta: z.ZodString;
7502
7547
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7503
- type: z.ZodLiteral<"reasoning.summary.delta">;
7504
7548
  reasoningId: z.ZodString;
7505
7549
  delta: z.ZodString;
7550
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7506
7551
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7507
7552
  type: z.ZodLiteral<"tool.started">;
7508
7553
  toolCallId: z.ZodString;
@@ -7519,6 +7564,10 @@ export declare const runtimeEventEnvelopeV16Schema: z.ZodDiscriminatedUnion<[z.Z
7519
7564
  stderr: "stderr";
7520
7565
  }>;
7521
7566
  delta: z.ZodString;
7567
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7568
+ reasoningId: z.ZodString;
7569
+ delta: z.ZodString;
7570
+ type: z.ZodLiteral<"reasoning.text.delta">;
7522
7571
  }, z.core.$strict>>], "type">;
7523
7572
  runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId", "out">;
7524
7573
  sequence: z.ZodNumber;
@@ -7643,9 +7692,9 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
7643
7692
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7644
7693
  delta: z.ZodString;
7645
7694
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7646
- type: z.ZodLiteral<"reasoning.summary.delta">;
7647
7695
  reasoningId: z.ZodString;
7648
7696
  delta: z.ZodString;
7697
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7649
7698
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7650
7699
  type: z.ZodLiteral<"tool.started">;
7651
7700
  toolCallId: z.ZodString;
@@ -7662,6 +7711,10 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
7662
7711
  stderr: "stderr";
7663
7712
  }>;
7664
7713
  delta: z.ZodString;
7714
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7715
+ reasoningId: z.ZodString;
7716
+ delta: z.ZodString;
7717
+ type: z.ZodLiteral<"reasoning.text.delta">;
7665
7718
  }, z.core.$strict>>], "type">;
7666
7719
  runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId", "out">;
7667
7720
  sequence: z.ZodNumber;
@@ -7777,9 +7830,9 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
7777
7830
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7778
7831
  delta: z.ZodString;
7779
7832
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7780
- type: z.ZodLiteral<"reasoning.summary.delta">;
7781
7833
  reasoningId: z.ZodString;
7782
7834
  delta: z.ZodString;
7835
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7783
7836
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7784
7837
  type: z.ZodLiteral<"tool.started">;
7785
7838
  toolCallId: z.ZodString;
@@ -7891,9 +7944,9 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
7891
7944
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
7892
7945
  delta: z.ZodString;
7893
7946
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7894
- type: z.ZodLiteral<"reasoning.summary.delta">;
7895
7947
  reasoningId: z.ZodString;
7896
7948
  delta: z.ZodString;
7949
+ type: z.ZodLiteral<"reasoning.summary.delta">;
7897
7950
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
7898
7951
  type: z.ZodLiteral<"tool.started">;
7899
7952
  toolCallId: z.ZodString;
@@ -8005,9 +8058,9 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
8005
8058
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
8006
8059
  delta: z.ZodString;
8007
8060
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
8008
- type: z.ZodLiteral<"reasoning.summary.delta">;
8009
8061
  reasoningId: z.ZodString;
8010
8062
  delta: z.ZodString;
8063
+ type: z.ZodLiteral<"reasoning.summary.delta">;
8011
8064
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
8012
8065
  type: z.ZodLiteral<"tool.started">;
8013
8066
  toolCallId: z.ZodString;
@@ -8046,9 +8099,9 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
8046
8099
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
8047
8100
  text: z.ZodString;
8048
8101
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
8049
- type: z.ZodLiteral<"reasoning.summary.delta">;
8050
8102
  reasoningId: z.ZodString;
8051
8103
  delta: z.ZodString;
8104
+ type: z.ZodLiteral<"reasoning.summary.delta">;
8052
8105
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
8053
8106
  type: z.ZodLiteral<"tool.started">;
8054
8107
  toolCallId: z.ZodString;
@@ -8148,9 +8201,9 @@ export declare const runtimeEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodDiscr
8148
8201
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
8149
8202
  text: z.ZodString;
8150
8203
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
8151
- type: z.ZodLiteral<"reasoning.summary.delta">;
8152
8204
  reasoningId: z.ZodString;
8153
8205
  delta: z.ZodString;
8206
+ type: z.ZodLiteral<"reasoning.summary.delta">;
8154
8207
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
8155
8208
  type: z.ZodLiteral<"tool.started">;
8156
8209
  toolCallId: z.ZodString;
@@ -12109,6 +12162,12 @@ export declare const runtimeMethodSchemasV15: {
12109
12162
  };
12110
12163
  };
12111
12164
  export declare const runtimeMethodSchemasV16: {
12165
+ readonly "reasoning.text.subscribe": {
12166
+ readonly params: z.ZodReadonly<z.ZodObject<{}, z.core.$strict>>;
12167
+ readonly result: z.ZodReadonly<z.ZodObject<{
12168
+ subscribed: z.ZodBoolean;
12169
+ }, z.core.$strict>>;
12170
+ };
12112
12171
  readonly "approval.preview": {
12113
12172
  readonly params: z.ZodReadonly<z.ZodObject<{
12114
12173
  turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
@@ -13128,6 +13187,12 @@ export declare const runtimeMethodSchemasV16: {
13128
13187
  };
13129
13188
  };
13130
13189
  export declare const runtimeMethodSchemas: {
13190
+ readonly "reasoning.text.subscribe": {
13191
+ readonly params: z.ZodReadonly<z.ZodObject<{}, z.core.$strict>>;
13192
+ readonly result: z.ZodReadonly<z.ZodObject<{
13193
+ subscribed: z.ZodBoolean;
13194
+ }, z.core.$strict>>;
13195
+ };
13131
13196
  readonly "approval.preview": {
13132
13197
  readonly params: z.ZodReadonly<z.ZodObject<{
13133
13198
  turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
@@ -14395,6 +14460,12 @@ export interface RuntimeProtocolRegistry {
14395
14460
  export declare const RUNTIME_PROTOCOL_REGISTRY: {
14396
14461
  readonly "1.6": {
14397
14462
  readonly methods: {
14463
+ readonly "reasoning.text.subscribe": {
14464
+ readonly params: z.ZodReadonly<z.ZodObject<{}, z.core.$strict>>;
14465
+ readonly result: z.ZodReadonly<z.ZodObject<{
14466
+ subscribed: z.ZodBoolean;
14467
+ }, z.core.$strict>>;
14468
+ };
14398
14469
  readonly "approval.preview": {
14399
14470
  readonly params: z.ZodReadonly<z.ZodObject<{
14400
14471
  turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
@@ -15628,9 +15699,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
15628
15699
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
15629
15700
  delta: z.ZodString;
15630
15701
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
15631
- type: z.ZodLiteral<"reasoning.summary.delta">;
15632
15702
  reasoningId: z.ZodString;
15633
15703
  delta: z.ZodString;
15704
+ type: z.ZodLiteral<"reasoning.summary.delta">;
15634
15705
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
15635
15706
  type: z.ZodLiteral<"tool.started">;
15636
15707
  toolCallId: z.ZodString;
@@ -15647,6 +15718,10 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
15647
15718
  stderr: "stderr";
15648
15719
  }>;
15649
15720
  delta: z.ZodString;
15721
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
15722
+ reasoningId: z.ZodString;
15723
+ delta: z.ZodString;
15724
+ type: z.ZodLiteral<"reasoning.text.delta">;
15650
15725
  }, z.core.$strict>>], "type">;
15651
15726
  runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId", "out">;
15652
15727
  sequence: z.ZodNumber;
@@ -16873,9 +16948,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
16873
16948
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
16874
16949
  delta: z.ZodString;
16875
16950
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
16876
- type: z.ZodLiteral<"reasoning.summary.delta">;
16877
16951
  reasoningId: z.ZodString;
16878
16952
  delta: z.ZodString;
16953
+ type: z.ZodLiteral<"reasoning.summary.delta">;
16879
16954
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
16880
16955
  type: z.ZodLiteral<"tool.started">;
16881
16956
  toolCallId: z.ZodString;
@@ -17999,9 +18074,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
17999
18074
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
18000
18075
  delta: z.ZodString;
18001
18076
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
18002
- type: z.ZodLiteral<"reasoning.summary.delta">;
18003
18077
  reasoningId: z.ZodString;
18004
18078
  delta: z.ZodString;
18079
+ type: z.ZodLiteral<"reasoning.summary.delta">;
18005
18080
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
18006
18081
  type: z.ZodLiteral<"tool.started">;
18007
18082
  toolCallId: z.ZodString;
@@ -19005,9 +19080,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
19005
19080
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
19006
19081
  delta: z.ZodString;
19007
19082
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
19008
- type: z.ZodLiteral<"reasoning.summary.delta">;
19009
19083
  reasoningId: z.ZodString;
19010
19084
  delta: z.ZodString;
19085
+ type: z.ZodLiteral<"reasoning.summary.delta">;
19011
19086
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
19012
19087
  type: z.ZodLiteral<"tool.started">;
19013
19088
  toolCallId: z.ZodString;
@@ -19645,9 +19720,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
19645
19720
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
19646
19721
  text: z.ZodString;
19647
19722
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
19648
- type: z.ZodLiteral<"reasoning.summary.delta">;
19649
19723
  reasoningId: z.ZodString;
19650
19724
  delta: z.ZodString;
19725
+ type: z.ZodLiteral<"reasoning.summary.delta">;
19651
19726
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
19652
19727
  type: z.ZodLiteral<"tool.started">;
19653
19728
  toolCallId: z.ZodString;
@@ -20129,9 +20204,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
20129
20204
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
20130
20205
  text: z.ZodString;
20131
20206
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
20132
- type: z.ZodLiteral<"reasoning.summary.delta">;
20133
20207
  reasoningId: z.ZodString;
20134
20208
  delta: z.ZodString;
20209
+ type: z.ZodLiteral<"reasoning.summary.delta">;
20135
20210
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
20136
20211
  type: z.ZodLiteral<"tool.started">;
20137
20212
  toolCallId: z.ZodString;
@@ -20590,9 +20665,9 @@ export declare const RUNTIME_PROTOCOL_REGISTRY: {
20590
20665
  streamId: z.core.$ZodBranded<z.ZodString, "StreamId", "out">;
20591
20666
  text: z.ZodString;
20592
20667
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
20593
- type: z.ZodLiteral<"reasoning.summary.delta">;
20594
20668
  reasoningId: z.ZodString;
20595
20669
  delta: z.ZodString;
20670
+ type: z.ZodLiteral<"reasoning.summary.delta">;
20596
20671
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
20597
20672
  type: z.ZodLiteral<"tool.started">;
20598
20673
  toolCallId: z.ZodString;
package/dist/index.js CHANGED
@@ -172,6 +172,7 @@ export function isRuntimeServerRequestMethodRequired(version, method) {
172
172
  return getRuntimeProtocolCapabilities(version).requiredServerRequestMethods.some((requiredMethod) => requiredMethod === method);
173
173
  }
174
174
  export const RUNTIME_METHODS = {
175
+ reasoningTextSubscribe: "reasoning.text.subscribe",
175
176
  operationResultGet: "operation.result.get",
176
177
  initialize: "initialize",
177
178
  clientCapabilitiesSet: "client.capabilities.set",
@@ -1479,13 +1480,12 @@ const messageCompletedEventSchema = z
1479
1480
  .object({ type: z.literal("message.completed"), streamId: streamIdSchema, text: z.string() })
1480
1481
  .strict()
1481
1482
  .readonly();
1483
+ const reasoningDeltaFields = { reasoningId: z.string().min(1), delta: z.string() };
1482
1484
  const reasoningSummaryDeltaEventSchema = z
1483
- .object({
1484
- type: z.literal("reasoning.summary.delta"),
1485
- reasoningId: z.string().min(1),
1486
- delta: z.string(),
1487
- })
1488
- .strict()
1485
+ .strictObject({ type: z.literal("reasoning.summary.delta"), ...reasoningDeltaFields })
1486
+ .readonly();
1487
+ const reasoningTextDeltaEventSchema = z
1488
+ .strictObject({ type: z.literal("reasoning.text.delta"), ...reasoningDeltaFields })
1489
1489
  .readonly();
1490
1490
  const toolStartedEventSchema = z
1491
1491
  .object({
@@ -1620,9 +1620,13 @@ export const runtimeDurableEventV16Schema = z.discriminatedUnion("type", [
1620
1620
  ...runtimeDurableEventV15Schema.options,
1621
1621
  contextRecoveryChangedEventSchema,
1622
1622
  ]);
1623
+ export const runtimeEphemeralEventV16Schema = z.discriminatedUnion("type", [
1624
+ ...runtimeEphemeralEventV13Schema.options,
1625
+ reasoningTextDeltaEventSchema,
1626
+ ]);
1623
1627
  export const runtimeEventV16Schema = z.union([
1624
1628
  runtimeDurableEventV16Schema,
1625
- runtimeEphemeralEventV13Schema,
1629
+ runtimeEphemeralEventV16Schema,
1626
1630
  ]);
1627
1631
  /** Latest Runtime Protocol event payloads. */
1628
1632
  export const runtimeEventSchema = runtimeEventV16Schema;
@@ -1759,7 +1763,7 @@ export const runtimeEphemeralEventEnvelopeV16Schema = z
1759
1763
  protocolVersion: z.literal("1.6"),
1760
1764
  ...runtimeEventEnvelopeFields,
1761
1765
  durability: z.literal("ephemeral"),
1762
- event: runtimeEphemeralEventV13Schema,
1766
+ event: runtimeEphemeralEventV16Schema,
1763
1767
  })
1764
1768
  .strict()
1765
1769
  .superRefine(validateRuntimeEventCapabilities)
@@ -1961,6 +1965,10 @@ export const runtimeMethodSchemasV15 = {
1961
1965
  };
1962
1966
  export const runtimeMethodSchemasV16 = {
1963
1967
  ...runtimeMethodSchemasV15,
1968
+ [RUNTIME_METHODS.reasoningTextSubscribe]: {
1969
+ params: z.object({}).strict().readonly(),
1970
+ result: z.object({ subscribed: z.boolean() }).strict().readonly(),
1971
+ },
1964
1972
  [RUNTIME_METHODS.approvalPreview]: {
1965
1973
  params: approvalPreviewParamsSchema,
1966
1974
  result: approvalPreviewResultSchema,
@@ -744,6 +744,29 @@
744
744
  "delta"
745
745
  ],
746
746
  "additionalProperties": false
747
+ },
748
+ {
749
+ "readOnly": true,
750
+ "type": "object",
751
+ "properties": {
752
+ "type": {
753
+ "type": "string",
754
+ "const": "reasoning.text.delta"
755
+ },
756
+ "reasoningId": {
757
+ "type": "string",
758
+ "minLength": 1
759
+ },
760
+ "delta": {
761
+ "type": "string"
762
+ }
763
+ },
764
+ "required": [
765
+ "type",
766
+ "reasoningId",
767
+ "delta"
768
+ ],
769
+ "additionalProperties": false
747
770
  }
748
771
  ]
749
772
  }
@@ -5483,6 +5506,25 @@
5483
5506
  ],
5484
5507
  "additionalProperties": false
5485
5508
  },
5509
+ "reasoningTextSubscribeParams": {
5510
+ "readOnly": true,
5511
+ "type": "object",
5512
+ "properties": {},
5513
+ "additionalProperties": false
5514
+ },
5515
+ "reasoningTextSubscribeResult": {
5516
+ "readOnly": true,
5517
+ "type": "object",
5518
+ "properties": {
5519
+ "subscribed": {
5520
+ "type": "boolean"
5521
+ }
5522
+ },
5523
+ "required": [
5524
+ "subscribed"
5525
+ ],
5526
+ "additionalProperties": false
5527
+ },
5486
5528
  "approvalPreviewParams": {
5487
5529
  "readOnly": true,
5488
5530
  "type": "object",
@@ -6602,6 +6644,30 @@
6602
6644
  ],
6603
6645
  "additionalProperties": false
6604
6646
  },
6647
+ "reasoningTextSubscribeRequest": {
6648
+ "type": "object",
6649
+ "properties": {
6650
+ "jsonrpc": {
6651
+ "const": "2.0"
6652
+ },
6653
+ "id": {
6654
+ "$ref": "#/$defs/jsonRpcId"
6655
+ },
6656
+ "method": {
6657
+ "const": "reasoning.text.subscribe"
6658
+ },
6659
+ "params": {
6660
+ "$ref": "#/$defs/reasoningTextSubscribeParams"
6661
+ }
6662
+ },
6663
+ "required": [
6664
+ "jsonrpc",
6665
+ "id",
6666
+ "method",
6667
+ "params"
6668
+ ],
6669
+ "additionalProperties": false
6670
+ },
6605
6671
  "approvalPreviewRequest": {
6606
6672
  "type": "object",
6607
6673
  "properties": {
@@ -6736,6 +6802,9 @@
6736
6802
  {
6737
6803
  "$ref": "#/$defs/operationResultGetRequest"
6738
6804
  },
6805
+ {
6806
+ "$ref": "#/$defs/reasoningTextSubscribeRequest"
6807
+ },
6739
6808
  {
6740
6809
  "$ref": "#/$defs/approvalPreviewRequest"
6741
6810
  }
@@ -6862,6 +6931,9 @@
6862
6931
  {
6863
6932
  "$ref": "#/$defs/operationResultGetResult"
6864
6933
  },
6934
+ {
6935
+ "$ref": "#/$defs/reasoningTextSubscribeResult"
6936
+ },
6865
6937
  {
6866
6938
  "$ref": "#/$defs/approvalPreviewResult"
6867
6939
  },
@@ -7147,6 +7219,17 @@
7147
7219
  "$ref": "#/$defs/operationResultGetRequest"
7148
7220
  }
7149
7221
  },
7222
+ "reasoning.text.subscribe": {
7223
+ "params": {
7224
+ "$ref": "#/$defs/reasoningTextSubscribeParams"
7225
+ },
7226
+ "result": {
7227
+ "$ref": "#/$defs/reasoningTextSubscribeResult"
7228
+ },
7229
+ "request": {
7230
+ "$ref": "#/$defs/reasoningTextSubscribeRequest"
7231
+ }
7232
+ },
7150
7233
  "approval.preview": {
7151
7234
  "params": {
7152
7235
  "$ref": "#/$defs/approvalPreviewParams"
@@ -744,6 +744,29 @@
744
744
  "delta"
745
745
  ],
746
746
  "additionalProperties": false
747
+ },
748
+ {
749
+ "readOnly": true,
750
+ "type": "object",
751
+ "properties": {
752
+ "type": {
753
+ "type": "string",
754
+ "const": "reasoning.text.delta"
755
+ },
756
+ "reasoningId": {
757
+ "type": "string",
758
+ "minLength": 1
759
+ },
760
+ "delta": {
761
+ "type": "string"
762
+ }
763
+ },
764
+ "required": [
765
+ "type",
766
+ "reasoningId",
767
+ "delta"
768
+ ],
769
+ "additionalProperties": false
747
770
  }
748
771
  ]
749
772
  }
@@ -5483,6 +5506,25 @@
5483
5506
  ],
5484
5507
  "additionalProperties": false
5485
5508
  },
5509
+ "reasoningTextSubscribeParams": {
5510
+ "readOnly": true,
5511
+ "type": "object",
5512
+ "properties": {},
5513
+ "additionalProperties": false
5514
+ },
5515
+ "reasoningTextSubscribeResult": {
5516
+ "readOnly": true,
5517
+ "type": "object",
5518
+ "properties": {
5519
+ "subscribed": {
5520
+ "type": "boolean"
5521
+ }
5522
+ },
5523
+ "required": [
5524
+ "subscribed"
5525
+ ],
5526
+ "additionalProperties": false
5527
+ },
5486
5528
  "approvalPreviewParams": {
5487
5529
  "readOnly": true,
5488
5530
  "type": "object",
@@ -6602,6 +6644,30 @@
6602
6644
  ],
6603
6645
  "additionalProperties": false
6604
6646
  },
6647
+ "reasoningTextSubscribeRequest": {
6648
+ "type": "object",
6649
+ "properties": {
6650
+ "jsonrpc": {
6651
+ "const": "2.0"
6652
+ },
6653
+ "id": {
6654
+ "$ref": "#/$defs/jsonRpcId"
6655
+ },
6656
+ "method": {
6657
+ "const": "reasoning.text.subscribe"
6658
+ },
6659
+ "params": {
6660
+ "$ref": "#/$defs/reasoningTextSubscribeParams"
6661
+ }
6662
+ },
6663
+ "required": [
6664
+ "jsonrpc",
6665
+ "id",
6666
+ "method",
6667
+ "params"
6668
+ ],
6669
+ "additionalProperties": false
6670
+ },
6605
6671
  "approvalPreviewRequest": {
6606
6672
  "type": "object",
6607
6673
  "properties": {
@@ -6736,6 +6802,9 @@
6736
6802
  {
6737
6803
  "$ref": "#/$defs/operationResultGetRequest"
6738
6804
  },
6805
+ {
6806
+ "$ref": "#/$defs/reasoningTextSubscribeRequest"
6807
+ },
6739
6808
  {
6740
6809
  "$ref": "#/$defs/approvalPreviewRequest"
6741
6810
  }
@@ -6862,6 +6931,9 @@
6862
6931
  {
6863
6932
  "$ref": "#/$defs/operationResultGetResult"
6864
6933
  },
6934
+ {
6935
+ "$ref": "#/$defs/reasoningTextSubscribeResult"
6936
+ },
6865
6937
  {
6866
6938
  "$ref": "#/$defs/approvalPreviewResult"
6867
6939
  },
@@ -7147,6 +7219,17 @@
7147
7219
  "$ref": "#/$defs/operationResultGetRequest"
7148
7220
  }
7149
7221
  },
7222
+ "reasoning.text.subscribe": {
7223
+ "params": {
7224
+ "$ref": "#/$defs/reasoningTextSubscribeParams"
7225
+ },
7226
+ "result": {
7227
+ "$ref": "#/$defs/reasoningTextSubscribeResult"
7228
+ },
7229
+ "request": {
7230
+ "$ref": "#/$defs/reasoningTextSubscribeRequest"
7231
+ }
7232
+ },
7150
7233
  "approval.preview": {
7151
7234
  "params": {
7152
7235
  "$ref": "#/$defs/approvalPreviewParams"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roll-agent/protocol",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",