@fuzdev/fuz_app 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.
Files changed (63) hide show
  1. package/dist/actions/action_bridge.d.ts +8 -8
  2. package/dist/actions/action_bridge.d.ts.map +1 -1
  3. package/dist/actions/action_bridge.js +5 -5
  4. package/dist/actions/action_codegen.d.ts +18 -1
  5. package/dist/actions/action_codegen.d.ts.map +1 -1
  6. package/dist/actions/action_codegen.js +49 -6
  7. package/dist/actions/action_event.d.ts +60 -0
  8. package/dist/actions/action_event.d.ts.map +1 -0
  9. package/dist/actions/action_event.js +361 -0
  10. package/dist/actions/action_event_data.d.ts +639 -0
  11. package/dist/actions/action_event_data.d.ts.map +1 -0
  12. package/dist/actions/action_event_data.js +29 -0
  13. package/dist/actions/action_event_helpers.d.ts +73 -0
  14. package/dist/actions/action_event_helpers.d.ts.map +1 -0
  15. package/dist/actions/action_event_helpers.js +96 -0
  16. package/dist/actions/action_event_types.d.ts +31 -0
  17. package/dist/actions/action_event_types.d.ts.map +1 -0
  18. package/dist/actions/action_event_types.js +38 -0
  19. package/dist/actions/action_peer.d.ts +30 -0
  20. package/dist/actions/action_peer.d.ts.map +1 -0
  21. package/dist/actions/action_peer.js +146 -0
  22. package/dist/actions/action_rpc.d.ts.map +1 -1
  23. package/dist/actions/action_rpc.js +6 -2
  24. package/dist/actions/action_spec.d.ts +1 -1
  25. package/dist/actions/action_spec.js +1 -1
  26. package/dist/actions/request_tracker.svelte.d.ts +69 -0
  27. package/dist/actions/request_tracker.svelte.d.ts.map +1 -0
  28. package/dist/actions/request_tracker.svelte.js +161 -0
  29. package/dist/actions/rpc_client.d.ts +43 -0
  30. package/dist/actions/rpc_client.d.ts.map +1 -0
  31. package/dist/actions/rpc_client.js +151 -0
  32. package/dist/actions/transports.d.ts +47 -0
  33. package/dist/actions/transports.d.ts.map +1 -0
  34. package/dist/actions/transports.js +108 -0
  35. package/dist/actions/transports_http.d.ts +16 -0
  36. package/dist/actions/transports_http.d.ts.map +1 -0
  37. package/dist/actions/transports_http.js +81 -0
  38. package/dist/actions/transports_ws.d.ts +26 -0
  39. package/dist/actions/transports_ws.d.ts.map +1 -0
  40. package/dist/actions/transports_ws.js +94 -0
  41. package/dist/actions/transports_ws_backend.d.ts +42 -0
  42. package/dist/actions/transports_ws_backend.d.ts.map +1 -0
  43. package/dist/actions/transports_ws_backend.js +133 -0
  44. package/dist/http/jsonrpc.d.ts +22 -97
  45. package/dist/http/jsonrpc.d.ts.map +1 -1
  46. package/dist/http/jsonrpc.js +11 -24
  47. package/dist/http/jsonrpc_errors.d.ts +2 -0
  48. package/dist/http/jsonrpc_errors.d.ts.map +1 -1
  49. package/dist/http/jsonrpc_errors.js +2 -0
  50. package/dist/http/surface.d.ts +3 -3
  51. package/dist/http/surface.d.ts.map +1 -1
  52. package/dist/realtime/sse.d.ts +5 -3
  53. package/dist/realtime/sse.d.ts.map +1 -1
  54. package/dist/realtime/sse_auth_guard.d.ts +2 -2
  55. package/dist/realtime/sse_auth_guard.d.ts.map +1 -1
  56. package/dist/server/app_server.d.ts +2 -2
  57. package/dist/server/app_server.d.ts.map +1 -1
  58. package/dist/testing/stubs.d.ts +2 -2
  59. package/dist/testing/stubs.d.ts.map +1 -1
  60. package/dist/uuid.d.ts +12 -0
  61. package/dist/uuid.d.ts.map +1 -0
  62. package/dist/uuid.js +9 -0
  63. package/package.json +1 -1
@@ -0,0 +1,639 @@
1
+ /**
2
+ * Action event data types — discriminated union for state machine data.
3
+ *
4
+ * 39-variant discriminated union across 3 action kinds (request_response,
5
+ * remote_notification, local_call). Each variant narrows the data shape
6
+ * by kind, phase, and step.
7
+ *
8
+ * @module
9
+ */
10
+ import { z } from 'zod';
11
+ import { JsonrpcRequest, JsonrpcResponseOrError, JsonrpcNotification, JsonrpcErrorObject } from '../http/jsonrpc.js';
12
+ import { ActionExecutor } from './action_event_types.js';
13
+ export declare const ActionEventData: z.ZodObject<{
14
+ kind: z.ZodEnum<{
15
+ request_response: "request_response";
16
+ remote_notification: "remote_notification";
17
+ local_call: "local_call";
18
+ }>;
19
+ phase: z.ZodEnum<{
20
+ send_request: "send_request";
21
+ receive_request: "receive_request";
22
+ send_response: "send_response";
23
+ receive_response: "receive_response";
24
+ send_error: "send_error";
25
+ receive_error: "receive_error";
26
+ send: "send";
27
+ receive: "receive";
28
+ execute: "execute";
29
+ }>;
30
+ step: z.ZodEnum<{
31
+ initial: "initial";
32
+ parsed: "parsed";
33
+ handling: "handling";
34
+ handled: "handled";
35
+ failed: "failed";
36
+ }>;
37
+ method: z.ZodString;
38
+ executor: z.ZodEnum<{
39
+ frontend: "frontend";
40
+ backend: "backend";
41
+ }>;
42
+ input: z.ZodNullable<z.ZodUnknown>;
43
+ output: z.ZodNullable<z.ZodUnknown>;
44
+ error: z.ZodNullable<z.ZodObject<{
45
+ code: z.ZodUnion<readonly [z.ZodLiteral<-32700>, z.ZodLiteral<-32600>, z.ZodLiteral<-32601>, z.ZodLiteral<-32602>, z.ZodLiteral<-32603>, z.core.$ZodBranded<z.ZodNumber, "JsonrpcServerErrorCode", "out">]>;
46
+ message: z.ZodString;
47
+ data: z.ZodOptional<z.ZodUnknown>;
48
+ }, z.core.$loose>>;
49
+ progress: z.ZodNullable<z.ZodUnknown>;
50
+ request: z.ZodNullable<z.ZodObject<{
51
+ jsonrpc: z.ZodLiteral<"2.0">;
52
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
53
+ method: z.ZodString;
54
+ params: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
55
+ }, z.core.$loose>>;
56
+ response: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
57
+ jsonrpc: z.ZodLiteral<"2.0">;
58
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
59
+ result: z.ZodObject<{}, z.core.$loose>;
60
+ }, z.core.$loose>, z.ZodObject<{
61
+ jsonrpc: z.ZodLiteral<"2.0">;
62
+ id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
63
+ error: z.ZodObject<{
64
+ code: z.ZodUnion<readonly [z.ZodLiteral<-32700>, z.ZodLiteral<-32600>, z.ZodLiteral<-32601>, z.ZodLiteral<-32602>, z.ZodLiteral<-32603>, z.core.$ZodBranded<z.ZodNumber, "JsonrpcServerErrorCode", "out">]>;
65
+ message: z.ZodString;
66
+ data: z.ZodOptional<z.ZodUnknown>;
67
+ }, z.core.$loose>;
68
+ }, z.core.$loose>]>>;
69
+ notification: z.ZodNullable<z.ZodObject<{
70
+ jsonrpc: z.ZodLiteral<"2.0">;
71
+ method: z.ZodString;
72
+ params: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
73
+ }, z.core.$loose>>;
74
+ }, z.core.$strict>;
75
+ export type ActionEventData = z.infer<typeof ActionEventData>;
76
+ export type ActionEventRequestResponseData<TMethod extends string = string, TInput = unknown, TOutput = unknown> = {
77
+ kind: 'request_response';
78
+ phase: 'send_request';
79
+ step: 'initial';
80
+ method: TMethod;
81
+ executor: ActionExecutor;
82
+ input: unknown;
83
+ output: null;
84
+ error: null;
85
+ progress: null;
86
+ request: null;
87
+ response: null;
88
+ notification: null;
89
+ } | {
90
+ kind: 'request_response';
91
+ phase: 'send_request';
92
+ step: 'parsed';
93
+ method: TMethod;
94
+ executor: ActionExecutor;
95
+ input: TInput;
96
+ output: null;
97
+ error: null;
98
+ progress: null;
99
+ request: null;
100
+ response: null;
101
+ notification: null;
102
+ } | {
103
+ kind: 'request_response';
104
+ phase: 'send_request';
105
+ step: 'handling';
106
+ method: TMethod;
107
+ executor: ActionExecutor;
108
+ input: TInput;
109
+ output: null;
110
+ error: null;
111
+ progress: unknown;
112
+ request: JsonrpcRequest;
113
+ response: null;
114
+ notification: null;
115
+ } | {
116
+ kind: 'request_response';
117
+ phase: 'send_request';
118
+ step: 'handled';
119
+ method: TMethod;
120
+ executor: ActionExecutor;
121
+ input: TInput;
122
+ output: null;
123
+ error: null;
124
+ progress: unknown;
125
+ request: JsonrpcRequest;
126
+ response: null;
127
+ notification: null;
128
+ } | {
129
+ kind: 'request_response';
130
+ phase: 'send_request';
131
+ step: 'failed';
132
+ method: TMethod;
133
+ executor: ActionExecutor;
134
+ input: unknown;
135
+ output: null;
136
+ error: JsonrpcErrorObject;
137
+ progress: unknown;
138
+ request: JsonrpcRequest | null;
139
+ response: null;
140
+ notification: null;
141
+ } | {
142
+ kind: 'request_response';
143
+ phase: 'receive_request';
144
+ step: 'initial';
145
+ method: TMethod;
146
+ executor: ActionExecutor;
147
+ input: unknown;
148
+ output: null;
149
+ error: null;
150
+ progress: null;
151
+ request: JsonrpcRequest;
152
+ response: null;
153
+ notification: null;
154
+ } | {
155
+ kind: 'request_response';
156
+ phase: 'receive_request';
157
+ step: 'parsed';
158
+ method: TMethod;
159
+ executor: ActionExecutor;
160
+ input: TInput;
161
+ output: null;
162
+ error: null;
163
+ progress: null;
164
+ request: JsonrpcRequest;
165
+ response: null;
166
+ notification: null;
167
+ } | {
168
+ kind: 'request_response';
169
+ phase: 'receive_request';
170
+ step: 'handling';
171
+ method: TMethod;
172
+ executor: ActionExecutor;
173
+ input: TInput;
174
+ output: null;
175
+ error: null;
176
+ progress: unknown;
177
+ request: JsonrpcRequest;
178
+ response: null;
179
+ notification: null;
180
+ } | {
181
+ kind: 'request_response';
182
+ phase: 'receive_request';
183
+ step: 'handled';
184
+ method: TMethod;
185
+ executor: ActionExecutor;
186
+ input: TInput;
187
+ output: TOutput;
188
+ error: null;
189
+ progress: unknown;
190
+ request: JsonrpcRequest;
191
+ response: null;
192
+ notification: null;
193
+ } | {
194
+ kind: 'request_response';
195
+ phase: 'receive_request';
196
+ step: 'failed';
197
+ method: TMethod;
198
+ executor: ActionExecutor;
199
+ input: unknown;
200
+ output: null;
201
+ error: JsonrpcErrorObject;
202
+ progress: unknown;
203
+ request: JsonrpcRequest;
204
+ response: null;
205
+ notification: null;
206
+ } | {
207
+ kind: 'request_response';
208
+ phase: 'send_response';
209
+ step: 'initial';
210
+ method: TMethod;
211
+ executor: ActionExecutor;
212
+ input: TInput;
213
+ output: TOutput;
214
+ error: null;
215
+ progress: null;
216
+ request: JsonrpcRequest;
217
+ response: JsonrpcResponseOrError;
218
+ notification: null;
219
+ } | {
220
+ kind: 'request_response';
221
+ phase: 'send_response';
222
+ step: 'parsed';
223
+ method: TMethod;
224
+ executor: ActionExecutor;
225
+ input: TInput;
226
+ output: TOutput;
227
+ error: null;
228
+ progress: null;
229
+ request: JsonrpcRequest;
230
+ response: JsonrpcResponseOrError;
231
+ notification: null;
232
+ } | {
233
+ kind: 'request_response';
234
+ phase: 'send_response';
235
+ step: 'handling';
236
+ method: TMethod;
237
+ executor: ActionExecutor;
238
+ input: TInput;
239
+ output: TOutput;
240
+ error: null;
241
+ progress: unknown;
242
+ request: JsonrpcRequest;
243
+ response: JsonrpcResponseOrError;
244
+ notification: null;
245
+ } | {
246
+ kind: 'request_response';
247
+ phase: 'send_response';
248
+ step: 'handled';
249
+ method: TMethod;
250
+ executor: ActionExecutor;
251
+ input: TInput;
252
+ output: TOutput;
253
+ error: null;
254
+ progress: unknown;
255
+ request: JsonrpcRequest;
256
+ response: JsonrpcResponseOrError;
257
+ notification: null;
258
+ } | {
259
+ kind: 'request_response';
260
+ phase: 'send_response';
261
+ step: 'failed';
262
+ method: TMethod;
263
+ executor: ActionExecutor;
264
+ input: TInput;
265
+ output: TOutput | null;
266
+ error: JsonrpcErrorObject;
267
+ progress: unknown;
268
+ request: JsonrpcRequest;
269
+ response: JsonrpcResponseOrError;
270
+ notification: null;
271
+ } | {
272
+ kind: 'request_response';
273
+ phase: 'receive_response';
274
+ step: 'initial';
275
+ method: TMethod;
276
+ executor: ActionExecutor;
277
+ input: TInput;
278
+ output: unknown;
279
+ error: null;
280
+ progress: null;
281
+ request: JsonrpcRequest;
282
+ response: JsonrpcResponseOrError;
283
+ notification: null;
284
+ } | {
285
+ kind: 'request_response';
286
+ phase: 'receive_response';
287
+ step: 'parsed';
288
+ method: TMethod;
289
+ executor: ActionExecutor;
290
+ input: TInput;
291
+ output: TOutput;
292
+ error: null;
293
+ progress: null;
294
+ request: JsonrpcRequest;
295
+ response: JsonrpcResponseOrError;
296
+ notification: null;
297
+ } | {
298
+ kind: 'request_response';
299
+ phase: 'receive_response';
300
+ step: 'handling';
301
+ method: TMethod;
302
+ executor: ActionExecutor;
303
+ input: TInput;
304
+ output: TOutput;
305
+ error: null;
306
+ progress: unknown;
307
+ request: JsonrpcRequest;
308
+ response: JsonrpcResponseOrError;
309
+ notification: null;
310
+ } | {
311
+ kind: 'request_response';
312
+ phase: 'receive_response';
313
+ step: 'handled';
314
+ method: TMethod;
315
+ executor: ActionExecutor;
316
+ input: TInput;
317
+ output: TOutput;
318
+ error: null;
319
+ progress: unknown;
320
+ request: JsonrpcRequest;
321
+ response: JsonrpcResponseOrError;
322
+ notification: null;
323
+ } | {
324
+ kind: 'request_response';
325
+ phase: 'receive_response';
326
+ step: 'failed';
327
+ method: TMethod;
328
+ executor: ActionExecutor;
329
+ input: TInput;
330
+ output: TOutput | null;
331
+ error: JsonrpcErrorObject;
332
+ progress: unknown;
333
+ request: JsonrpcRequest;
334
+ response: JsonrpcResponseOrError;
335
+ notification: null;
336
+ } | {
337
+ kind: 'request_response';
338
+ phase: 'send_error';
339
+ step: 'initial';
340
+ method: TMethod;
341
+ executor: ActionExecutor;
342
+ input: unknown;
343
+ output: null;
344
+ error: JsonrpcErrorObject;
345
+ progress: null;
346
+ request: JsonrpcRequest | null;
347
+ response: null;
348
+ notification: null;
349
+ } | {
350
+ kind: 'request_response';
351
+ phase: 'send_error';
352
+ step: 'parsed';
353
+ method: TMethod;
354
+ executor: ActionExecutor;
355
+ input: TInput;
356
+ output: null;
357
+ error: JsonrpcErrorObject;
358
+ progress: null;
359
+ request: JsonrpcRequest | null;
360
+ response: null;
361
+ notification: null;
362
+ } | {
363
+ kind: 'request_response';
364
+ phase: 'send_error';
365
+ step: 'handling';
366
+ method: TMethod;
367
+ executor: ActionExecutor;
368
+ input: TInput;
369
+ output: null;
370
+ error: JsonrpcErrorObject;
371
+ progress: unknown;
372
+ request: JsonrpcRequest | null;
373
+ response: null;
374
+ notification: null;
375
+ } | {
376
+ kind: 'request_response';
377
+ phase: 'send_error';
378
+ step: 'handled';
379
+ method: TMethod;
380
+ executor: ActionExecutor;
381
+ input: TInput;
382
+ output: null;
383
+ error: JsonrpcErrorObject;
384
+ progress: unknown;
385
+ request: JsonrpcRequest | null;
386
+ response: null;
387
+ notification: null;
388
+ } | {
389
+ kind: 'request_response';
390
+ phase: 'receive_error';
391
+ step: 'initial';
392
+ method: TMethod;
393
+ executor: ActionExecutor;
394
+ input: TInput;
395
+ output: null;
396
+ error: JsonrpcErrorObject;
397
+ progress: null;
398
+ request: JsonrpcRequest;
399
+ response: JsonrpcResponseOrError;
400
+ notification: null;
401
+ } | {
402
+ kind: 'request_response';
403
+ phase: 'receive_error';
404
+ step: 'parsed';
405
+ method: TMethod;
406
+ executor: ActionExecutor;
407
+ input: TInput;
408
+ output: null;
409
+ error: JsonrpcErrorObject;
410
+ progress: null;
411
+ request: JsonrpcRequest;
412
+ response: JsonrpcResponseOrError;
413
+ notification: null;
414
+ } | {
415
+ kind: 'request_response';
416
+ phase: 'receive_error';
417
+ step: 'handling';
418
+ method: TMethod;
419
+ executor: ActionExecutor;
420
+ input: TInput;
421
+ output: null;
422
+ error: JsonrpcErrorObject;
423
+ progress: unknown;
424
+ request: JsonrpcRequest;
425
+ response: JsonrpcResponseOrError;
426
+ notification: null;
427
+ } | {
428
+ kind: 'request_response';
429
+ phase: 'receive_error';
430
+ step: 'handled';
431
+ method: TMethod;
432
+ executor: ActionExecutor;
433
+ input: TInput;
434
+ output: null;
435
+ error: JsonrpcErrorObject;
436
+ progress: unknown;
437
+ request: JsonrpcRequest;
438
+ response: JsonrpcResponseOrError;
439
+ notification: null;
440
+ };
441
+ export type ActionEventRemoteNotificationData<TMethod extends string = string, TInput = unknown> = {
442
+ kind: 'remote_notification';
443
+ phase: 'send';
444
+ step: 'initial';
445
+ method: TMethod;
446
+ executor: ActionExecutor;
447
+ input: unknown;
448
+ output: null;
449
+ error: null;
450
+ progress: null;
451
+ request: null;
452
+ response: null;
453
+ notification: null;
454
+ } | {
455
+ kind: 'remote_notification';
456
+ phase: 'send';
457
+ step: 'parsed';
458
+ method: TMethod;
459
+ executor: ActionExecutor;
460
+ input: TInput;
461
+ output: null;
462
+ error: null;
463
+ progress: null;
464
+ request: null;
465
+ response: null;
466
+ notification: null;
467
+ } | {
468
+ kind: 'remote_notification';
469
+ phase: 'send';
470
+ step: 'handling';
471
+ method: TMethod;
472
+ executor: ActionExecutor;
473
+ input: TInput;
474
+ output: null;
475
+ error: null;
476
+ progress: unknown;
477
+ request: null;
478
+ response: null;
479
+ notification: JsonrpcNotification;
480
+ } | {
481
+ kind: 'remote_notification';
482
+ phase: 'send';
483
+ step: 'handled';
484
+ method: TMethod;
485
+ executor: ActionExecutor;
486
+ input: TInput;
487
+ output: null;
488
+ error: null;
489
+ progress: unknown;
490
+ request: null;
491
+ response: null;
492
+ notification: JsonrpcNotification;
493
+ } | {
494
+ kind: 'remote_notification';
495
+ phase: 'send';
496
+ step: 'failed';
497
+ method: TMethod;
498
+ executor: ActionExecutor;
499
+ input: unknown;
500
+ output: null;
501
+ error: JsonrpcErrorObject;
502
+ progress: unknown;
503
+ request: null;
504
+ response: null;
505
+ notification: JsonrpcNotification | null;
506
+ } | {
507
+ kind: 'remote_notification';
508
+ phase: 'receive';
509
+ step: 'initial';
510
+ method: TMethod;
511
+ executor: ActionExecutor;
512
+ input: unknown;
513
+ output: null;
514
+ error: null;
515
+ progress: null;
516
+ request: null;
517
+ response: null;
518
+ notification: JsonrpcNotification;
519
+ } | {
520
+ kind: 'remote_notification';
521
+ phase: 'receive';
522
+ step: 'parsed';
523
+ method: TMethod;
524
+ executor: ActionExecutor;
525
+ input: TInput;
526
+ output: null;
527
+ error: null;
528
+ progress: null;
529
+ request: null;
530
+ response: null;
531
+ notification: JsonrpcNotification;
532
+ } | {
533
+ kind: 'remote_notification';
534
+ phase: 'receive';
535
+ step: 'handling';
536
+ method: TMethod;
537
+ executor: ActionExecutor;
538
+ input: TInput;
539
+ output: null;
540
+ error: null;
541
+ progress: unknown;
542
+ request: null;
543
+ response: null;
544
+ notification: JsonrpcNotification;
545
+ } | {
546
+ kind: 'remote_notification';
547
+ phase: 'receive';
548
+ step: 'handled';
549
+ method: TMethod;
550
+ executor: ActionExecutor;
551
+ input: TInput;
552
+ output: null;
553
+ error: null;
554
+ progress: unknown;
555
+ request: null;
556
+ response: null;
557
+ notification: JsonrpcNotification;
558
+ } | {
559
+ kind: 'remote_notification';
560
+ phase: 'receive';
561
+ step: 'failed';
562
+ method: TMethod;
563
+ executor: ActionExecutor;
564
+ input: unknown;
565
+ output: null;
566
+ error: JsonrpcErrorObject;
567
+ progress: unknown;
568
+ request: null;
569
+ response: null;
570
+ notification: JsonrpcNotification;
571
+ };
572
+ export type ActionEventLocalCallData<TMethod extends string = string, TInput = unknown, TOutput = unknown> = {
573
+ kind: 'local_call';
574
+ phase: 'execute';
575
+ step: 'initial';
576
+ method: TMethod;
577
+ executor: ActionExecutor;
578
+ input: unknown;
579
+ output: null;
580
+ error: null;
581
+ progress: null;
582
+ request: null;
583
+ response: null;
584
+ notification: null;
585
+ } | {
586
+ kind: 'local_call';
587
+ phase: 'execute';
588
+ step: 'parsed';
589
+ method: TMethod;
590
+ executor: ActionExecutor;
591
+ input: TInput;
592
+ output: null;
593
+ error: null;
594
+ progress: null;
595
+ request: null;
596
+ response: null;
597
+ notification: null;
598
+ } | {
599
+ kind: 'local_call';
600
+ phase: 'execute';
601
+ step: 'handling';
602
+ method: TMethod;
603
+ executor: ActionExecutor;
604
+ input: TInput;
605
+ output: null;
606
+ error: null;
607
+ progress: unknown;
608
+ request: null;
609
+ response: null;
610
+ notification: null;
611
+ } | {
612
+ kind: 'local_call';
613
+ phase: 'execute';
614
+ step: 'handled';
615
+ method: TMethod;
616
+ executor: ActionExecutor;
617
+ input: TInput;
618
+ output: TOutput;
619
+ error: null;
620
+ progress: unknown;
621
+ request: null;
622
+ response: null;
623
+ notification: null;
624
+ } | {
625
+ kind: 'local_call';
626
+ phase: 'execute';
627
+ step: 'failed';
628
+ method: TMethod;
629
+ executor: ActionExecutor;
630
+ input: unknown;
631
+ output: null;
632
+ error: JsonrpcErrorObject;
633
+ progress: unknown;
634
+ request: null;
635
+ response: null;
636
+ notification: null;
637
+ };
638
+ export type ActionEventDataUnion<TMethod extends string = string, TInput = unknown, TOutput = unknown> = ActionEventRequestResponseData<TMethod, TInput, TOutput> | ActionEventRemoteNotificationData<TMethod, TInput> | ActionEventLocalCallData<TMethod, TInput, TOutput>;
639
+ //# sourceMappingURL=action_event_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action_event_data.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/action_event_data.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EACN,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAC,cAAc,EAAkB,MAAM,yBAAyB,CAAC;AAGxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAc1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG9D,MAAM,MAAM,8BAA8B,CACzC,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,IAEf;IACA,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,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ACnB,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,IAAI,CAAC;IACd,QAAQ,EAAE,IAAI,CAAC;IACf,YAAY,EAAE,IAAI,CAAC;CAClB,CAAC;AAGL,MAAM,MAAM,oBAAoB,CAC/B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,IAEf,8BAA8B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,GACxD,iCAAiC,CAAC,OAAO,EAAE,MAAM,CAAC,GAClD,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Action event data types — discriminated union for state machine data.
3
+ *
4
+ * 39-variant discriminated union across 3 action kinds (request_response,
5
+ * remote_notification, local_call). Each variant narrows the data shape
6
+ * by kind, phase, and step.
7
+ *
8
+ * @module
9
+ */
10
+ import { z } from 'zod';
11
+ import { ActionEventPhase, ActionKind } from './action_spec.js';
12
+ import { JsonrpcRequest, JsonrpcResponseOrError, JsonrpcNotification, JsonrpcErrorObject, } from '../http/jsonrpc.js';
13
+ import { ActionExecutor, ActionEventStep } from './action_event_types.js';
14
+ // Base schema for all action event data
15
+ export const ActionEventData = z.strictObject({
16
+ kind: ActionKind,
17
+ phase: ActionEventPhase,
18
+ step: ActionEventStep,
19
+ method: z.string(),
20
+ executor: ActionExecutor,
21
+ input: z.unknown().nullable(),
22
+ output: z.unknown().nullable(),
23
+ error: JsonrpcErrorObject.nullable(),
24
+ progress: z.unknown().nullable(),
25
+ // Fields for specific kinds - always present but may be null
26
+ request: JsonrpcRequest.nullable(),
27
+ response: JsonrpcResponseOrError.nullable(),
28
+ notification: JsonrpcNotification.nullable(),
29
+ });