@auto-engineer/narrative 0.16.0 → 0.17.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 (87) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +15 -0
  3. package/dist/src/getNarratives.js +1 -1
  4. package/dist/src/getNarratives.js.map +1 -1
  5. package/dist/src/id/addAutoIds.d.ts.map +1 -1
  6. package/dist/src/id/addAutoIds.js +15 -0
  7. package/dist/src/id/addAutoIds.js.map +1 -1
  8. package/dist/src/id/hasAllIds.d.ts.map +1 -1
  9. package/dist/src/id/hasAllIds.js +6 -1
  10. package/dist/src/id/hasAllIds.js.map +1 -1
  11. package/dist/src/index.d.ts +5 -2
  12. package/dist/src/index.d.ts.map +1 -1
  13. package/dist/src/index.js +1 -1
  14. package/dist/src/index.js.map +1 -1
  15. package/dist/src/loader/runtime-cjs.d.ts.map +1 -1
  16. package/dist/src/loader/runtime-cjs.js +3 -2
  17. package/dist/src/loader/runtime-cjs.js.map +1 -1
  18. package/dist/src/schema.d.ts +301 -143
  19. package/dist/src/schema.d.ts.map +1 -1
  20. package/dist/src/schema.js +26 -0
  21. package/dist/src/schema.js.map +1 -1
  22. package/dist/src/transformers/model-to-narrative/cross-module-imports.d.ts +6 -0
  23. package/dist/src/transformers/model-to-narrative/cross-module-imports.d.ts.map +1 -0
  24. package/dist/src/transformers/model-to-narrative/cross-module-imports.js +63 -0
  25. package/dist/src/transformers/model-to-narrative/cross-module-imports.js.map +1 -0
  26. package/dist/src/transformers/model-to-narrative/generators/flow.d.ts +1 -4
  27. package/dist/src/transformers/model-to-narrative/generators/flow.d.ts.map +1 -1
  28. package/dist/src/transformers/model-to-narrative/generators/flow.js.map +1 -1
  29. package/dist/src/transformers/model-to-narrative/generators/module-code.d.ts +9 -0
  30. package/dist/src/transformers/model-to-narrative/generators/module-code.d.ts.map +1 -0
  31. package/dist/src/transformers/model-to-narrative/generators/module-code.js +102 -0
  32. package/dist/src/transformers/model-to-narrative/generators/module-code.js.map +1 -0
  33. package/dist/src/transformers/model-to-narrative/index.d.ts +6 -4
  34. package/dist/src/transformers/model-to-narrative/index.d.ts.map +1 -1
  35. package/dist/src/transformers/model-to-narrative/index.js +10 -6
  36. package/dist/src/transformers/model-to-narrative/index.js.map +1 -1
  37. package/dist/src/transformers/model-to-narrative/ordering.d.ts +10 -0
  38. package/dist/src/transformers/model-to-narrative/ordering.d.ts.map +1 -0
  39. package/dist/src/transformers/model-to-narrative/ordering.js +37 -0
  40. package/dist/src/transformers/model-to-narrative/ordering.js.map +1 -0
  41. package/dist/src/transformers/model-to-narrative/spec-traversal.d.ts +3 -0
  42. package/dist/src/transformers/model-to-narrative/spec-traversal.d.ts.map +1 -0
  43. package/dist/src/transformers/model-to-narrative/spec-traversal.js +54 -0
  44. package/dist/src/transformers/model-to-narrative/spec-traversal.js.map +1 -0
  45. package/dist/src/transformers/model-to-narrative/types.d.ts +12 -0
  46. package/dist/src/transformers/model-to-narrative/types.d.ts.map +1 -0
  47. package/dist/src/transformers/model-to-narrative/types.js +2 -0
  48. package/dist/src/transformers/model-to-narrative/types.js.map +1 -0
  49. package/dist/src/transformers/model-to-narrative/validate-modules.d.ts +8 -0
  50. package/dist/src/transformers/model-to-narrative/validate-modules.d.ts.map +1 -0
  51. package/dist/src/transformers/model-to-narrative/validate-modules.js +121 -0
  52. package/dist/src/transformers/model-to-narrative/validate-modules.js.map +1 -0
  53. package/dist/src/transformers/narrative-to-model/assemble.d.ts.map +1 -1
  54. package/dist/src/transformers/narrative-to-model/assemble.js +5 -1
  55. package/dist/src/transformers/narrative-to-model/assemble.js.map +1 -1
  56. package/dist/src/transformers/narrative-to-model/derive-modules.d.ts +3 -0
  57. package/dist/src/transformers/narrative-to-model/derive-modules.d.ts.map +1 -0
  58. package/dist/src/transformers/narrative-to-model/derive-modules.js +29 -0
  59. package/dist/src/transformers/narrative-to-model/derive-modules.js.map +1 -0
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +4 -4
  62. package/src/getNarratives.specs.ts +214 -1
  63. package/src/getNarratives.ts +1 -1
  64. package/src/id/addAutoIds.specs.ts +180 -0
  65. package/src/id/addAutoIds.ts +16 -1
  66. package/src/id/hasAllIds.specs.ts +87 -0
  67. package/src/id/hasAllIds.ts +10 -2
  68. package/src/index.ts +7 -0
  69. package/src/loader/runtime-cjs.ts +3 -2
  70. package/src/model-to-narrative.specs.ts +467 -17
  71. package/src/schema.ts +28 -0
  72. package/src/transformers/model-to-narrative/cross-module-imports.specs.ts +450 -0
  73. package/src/transformers/model-to-narrative/cross-module-imports.ts +83 -0
  74. package/src/transformers/model-to-narrative/generators/flow.ts +11 -10
  75. package/src/transformers/model-to-narrative/generators/module-code.ts +186 -0
  76. package/src/transformers/model-to-narrative/index.ts +19 -7
  77. package/src/transformers/model-to-narrative/modules.specs.ts +625 -0
  78. package/src/transformers/model-to-narrative/ordering.specs.ts +104 -0
  79. package/src/transformers/model-to-narrative/ordering.ts +46 -0
  80. package/src/transformers/model-to-narrative/spec-traversal.specs.ts +418 -0
  81. package/src/transformers/model-to-narrative/spec-traversal.ts +63 -0
  82. package/src/transformers/model-to-narrative/types.ts +13 -0
  83. package/src/transformers/model-to-narrative/validate-modules.ts +159 -0
  84. package/src/transformers/narrative-to-model/assemble.ts +7 -2
  85. package/src/transformers/narrative-to-model/derive-modules.specs.ts +121 -0
  86. package/src/transformers/narrative-to-model/derive-modules.ts +36 -0
  87. package/tsconfig.test.json +2 -1
@@ -1,4 +1,74 @@
1
1
  import { z } from 'zod';
2
+ export declare const MessageRefSchema: z.ZodObject<{
3
+ kind: z.ZodEnum<["command", "event", "state"]>;
4
+ name: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ kind: "command" | "event" | "state";
7
+ name: string;
8
+ }, {
9
+ kind: "command" | "event" | "state";
10
+ name: string;
11
+ }>;
12
+ export declare const ModuleSchema: z.ZodObject<{
13
+ id: z.ZodString;
14
+ sourceFile: z.ZodString;
15
+ isDerived: z.ZodBoolean;
16
+ contains: z.ZodObject<{
17
+ narrativeIds: z.ZodArray<z.ZodString, "many">;
18
+ }, "strip", z.ZodTypeAny, {
19
+ narrativeIds: string[];
20
+ }, {
21
+ narrativeIds: string[];
22
+ }>;
23
+ declares: z.ZodObject<{
24
+ messages: z.ZodArray<z.ZodObject<{
25
+ kind: z.ZodEnum<["command", "event", "state"]>;
26
+ name: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ kind: "command" | "event" | "state";
29
+ name: string;
30
+ }, {
31
+ kind: "command" | "event" | "state";
32
+ name: string;
33
+ }>, "many">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ messages: {
36
+ kind: "command" | "event" | "state";
37
+ name: string;
38
+ }[];
39
+ }, {
40
+ messages: {
41
+ kind: "command" | "event" | "state";
42
+ name: string;
43
+ }[];
44
+ }>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: string;
47
+ sourceFile: string;
48
+ isDerived: boolean;
49
+ contains: {
50
+ narrativeIds: string[];
51
+ };
52
+ declares: {
53
+ messages: {
54
+ kind: "command" | "event" | "state";
55
+ name: string;
56
+ }[];
57
+ };
58
+ }, {
59
+ id: string;
60
+ sourceFile: string;
61
+ isDerived: boolean;
62
+ contains: {
63
+ narrativeIds: string[];
64
+ };
65
+ declares: {
66
+ messages: {
67
+ kind: "command" | "event" | "state";
68
+ name: string;
69
+ }[];
70
+ };
71
+ }>;
2
72
  declare const IntegrationSchema: z.ZodObject<{
3
73
  name: z.ZodString;
4
74
  description: z.ZodOptional<z.ZodString>;
@@ -2218,8 +2288,8 @@ declare const CommandSliceSchema: z.ZodObject<{
2218
2288
  }[] | undefined;
2219
2289
  };
2220
2290
  stream?: string | undefined;
2221
- description?: string | undefined;
2222
2291
  id?: string | undefined;
2292
+ description?: string | undefined;
2223
2293
  via?: string[] | undefined;
2224
2294
  additionalInstructions?: string | undefined;
2225
2295
  request?: string | undefined;
@@ -2314,8 +2384,8 @@ declare const CommandSliceSchema: z.ZodObject<{
2314
2384
  }[] | undefined;
2315
2385
  };
2316
2386
  stream?: string | undefined;
2317
- description?: string | undefined;
2318
2387
  id?: string | undefined;
2388
+ description?: string | undefined;
2319
2389
  via?: string[] | undefined;
2320
2390
  additionalInstructions?: string | undefined;
2321
2391
  request?: string | undefined;
@@ -2828,8 +2898,8 @@ declare const QuerySliceSchema: z.ZodObject<{
2828
2898
  }[] | undefined;
2829
2899
  };
2830
2900
  stream?: string | undefined;
2831
- description?: string | undefined;
2832
2901
  id?: string | undefined;
2902
+ description?: string | undefined;
2833
2903
  via?: string[] | undefined;
2834
2904
  additionalInstructions?: string | undefined;
2835
2905
  request?: string | undefined;
@@ -2898,8 +2968,8 @@ declare const QuerySliceSchema: z.ZodObject<{
2898
2968
  }[] | undefined;
2899
2969
  };
2900
2970
  stream?: string | undefined;
2901
- description?: string | undefined;
2902
2971
  id?: string | undefined;
2972
+ description?: string | undefined;
2903
2973
  via?: string[] | undefined;
2904
2974
  additionalInstructions?: string | undefined;
2905
2975
  request?: string | undefined;
@@ -3873,8 +3943,8 @@ declare const ReactSliceSchema: z.ZodObject<{
3873
3943
  description?: string | undefined;
3874
3944
  };
3875
3945
  stream?: string | undefined;
3876
- description?: string | undefined;
3877
3946
  id?: string | undefined;
3947
+ description?: string | undefined;
3878
3948
  via?: string[] | undefined;
3879
3949
  additionalInstructions?: string | undefined;
3880
3950
  }, {
@@ -3993,8 +4063,8 @@ declare const ReactSliceSchema: z.ZodObject<{
3993
4063
  description?: string | undefined;
3994
4064
  };
3995
4065
  stream?: string | undefined;
3996
- description?: string | undefined;
3997
4066
  id?: string | undefined;
4067
+ description?: string | undefined;
3998
4068
  via?: string[] | undefined;
3999
4069
  additionalInstructions?: string | undefined;
4000
4070
  }>;
@@ -4021,8 +4091,8 @@ declare const ExperienceSliceSchema: z.ZodObject<{
4021
4091
  specs: ClientSpecNode[];
4022
4092
  };
4023
4093
  stream?: string | undefined;
4024
- description?: string | undefined;
4025
4094
  id?: string | undefined;
4095
+ description?: string | undefined;
4026
4096
  via?: string[] | undefined;
4027
4097
  additionalInstructions?: string | undefined;
4028
4098
  }, {
@@ -4032,8 +4102,8 @@ declare const ExperienceSliceSchema: z.ZodObject<{
4032
4102
  specs?: ClientSpecNode[] | undefined;
4033
4103
  };
4034
4104
  stream?: string | undefined;
4035
- description?: string | undefined;
4036
4105
  id?: string | undefined;
4106
+ description?: string | undefined;
4037
4107
  via?: string[] | undefined;
4038
4108
  additionalInstructions?: string | undefined;
4039
4109
  }>;
@@ -4803,8 +4873,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4803
4873
  }[] | undefined;
4804
4874
  };
4805
4875
  stream?: string | undefined;
4806
- description?: string | undefined;
4807
4876
  id?: string | undefined;
4877
+ description?: string | undefined;
4808
4878
  via?: string[] | undefined;
4809
4879
  additionalInstructions?: string | undefined;
4810
4880
  request?: string | undefined;
@@ -4899,8 +4969,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4899
4969
  }[] | undefined;
4900
4970
  };
4901
4971
  stream?: string | undefined;
4902
- description?: string | undefined;
4903
4972
  id?: string | undefined;
4973
+ description?: string | undefined;
4904
4974
  via?: string[] | undefined;
4905
4975
  additionalInstructions?: string | undefined;
4906
4976
  request?: string | undefined;
@@ -5412,8 +5482,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5412
5482
  }[] | undefined;
5413
5483
  };
5414
5484
  stream?: string | undefined;
5415
- description?: string | undefined;
5416
5485
  id?: string | undefined;
5486
+ description?: string | undefined;
5417
5487
  via?: string[] | undefined;
5418
5488
  additionalInstructions?: string | undefined;
5419
5489
  request?: string | undefined;
@@ -5482,8 +5552,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5482
5552
  }[] | undefined;
5483
5553
  };
5484
5554
  stream?: string | undefined;
5485
- description?: string | undefined;
5486
5555
  id?: string | undefined;
5556
+ description?: string | undefined;
5487
5557
  via?: string[] | undefined;
5488
5558
  additionalInstructions?: string | undefined;
5489
5559
  request?: string | undefined;
@@ -6456,8 +6526,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6456
6526
  description?: string | undefined;
6457
6527
  };
6458
6528
  stream?: string | undefined;
6459
- description?: string | undefined;
6460
6529
  id?: string | undefined;
6530
+ description?: string | undefined;
6461
6531
  via?: string[] | undefined;
6462
6532
  additionalInstructions?: string | undefined;
6463
6533
  }, {
@@ -6576,8 +6646,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6576
6646
  description?: string | undefined;
6577
6647
  };
6578
6648
  stream?: string | undefined;
6579
- description?: string | undefined;
6580
6649
  id?: string | undefined;
6650
+ description?: string | undefined;
6581
6651
  via?: string[] | undefined;
6582
6652
  additionalInstructions?: string | undefined;
6583
6653
  }>, z.ZodObject<{
@@ -6603,8 +6673,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6603
6673
  specs: ClientSpecNode[];
6604
6674
  };
6605
6675
  stream?: string | undefined;
6606
- description?: string | undefined;
6607
6676
  id?: string | undefined;
6677
+ description?: string | undefined;
6608
6678
  via?: string[] | undefined;
6609
6679
  additionalInstructions?: string | undefined;
6610
6680
  }, {
@@ -6614,8 +6684,8 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6614
6684
  specs?: ClientSpecNode[] | undefined;
6615
6685
  };
6616
6686
  stream?: string | undefined;
6617
- description?: string | undefined;
6618
6687
  id?: string | undefined;
6688
+ description?: string | undefined;
6619
6689
  via?: string[] | undefined;
6620
6690
  additionalInstructions?: string | undefined;
6621
6691
  }>]>;
@@ -7389,8 +7459,8 @@ declare const NarrativeSchema: z.ZodObject<{
7389
7459
  }[] | undefined;
7390
7460
  };
7391
7461
  stream?: string | undefined;
7392
- description?: string | undefined;
7393
7462
  id?: string | undefined;
7463
+ description?: string | undefined;
7394
7464
  via?: string[] | undefined;
7395
7465
  additionalInstructions?: string | undefined;
7396
7466
  request?: string | undefined;
@@ -7485,8 +7555,8 @@ declare const NarrativeSchema: z.ZodObject<{
7485
7555
  }[] | undefined;
7486
7556
  };
7487
7557
  stream?: string | undefined;
7488
- description?: string | undefined;
7489
7558
  id?: string | undefined;
7559
+ description?: string | undefined;
7490
7560
  via?: string[] | undefined;
7491
7561
  additionalInstructions?: string | undefined;
7492
7562
  request?: string | undefined;
@@ -7998,8 +8068,8 @@ declare const NarrativeSchema: z.ZodObject<{
7998
8068
  }[] | undefined;
7999
8069
  };
8000
8070
  stream?: string | undefined;
8001
- description?: string | undefined;
8002
8071
  id?: string | undefined;
8072
+ description?: string | undefined;
8003
8073
  via?: string[] | undefined;
8004
8074
  additionalInstructions?: string | undefined;
8005
8075
  request?: string | undefined;
@@ -8068,8 +8138,8 @@ declare const NarrativeSchema: z.ZodObject<{
8068
8138
  }[] | undefined;
8069
8139
  };
8070
8140
  stream?: string | undefined;
8071
- description?: string | undefined;
8072
8141
  id?: string | undefined;
8142
+ description?: string | undefined;
8073
8143
  via?: string[] | undefined;
8074
8144
  additionalInstructions?: string | undefined;
8075
8145
  request?: string | undefined;
@@ -9042,8 +9112,8 @@ declare const NarrativeSchema: z.ZodObject<{
9042
9112
  description?: string | undefined;
9043
9113
  };
9044
9114
  stream?: string | undefined;
9045
- description?: string | undefined;
9046
9115
  id?: string | undefined;
9116
+ description?: string | undefined;
9047
9117
  via?: string[] | undefined;
9048
9118
  additionalInstructions?: string | undefined;
9049
9119
  }, {
@@ -9162,8 +9232,8 @@ declare const NarrativeSchema: z.ZodObject<{
9162
9232
  description?: string | undefined;
9163
9233
  };
9164
9234
  stream?: string | undefined;
9165
- description?: string | undefined;
9166
9235
  id?: string | undefined;
9236
+ description?: string | undefined;
9167
9237
  via?: string[] | undefined;
9168
9238
  additionalInstructions?: string | undefined;
9169
9239
  }>, z.ZodObject<{
@@ -9189,8 +9259,8 @@ declare const NarrativeSchema: z.ZodObject<{
9189
9259
  specs: ClientSpecNode[];
9190
9260
  };
9191
9261
  stream?: string | undefined;
9192
- description?: string | undefined;
9193
9262
  id?: string | undefined;
9263
+ description?: string | undefined;
9194
9264
  via?: string[] | undefined;
9195
9265
  additionalInstructions?: string | undefined;
9196
9266
  }, {
@@ -9200,8 +9270,8 @@ declare const NarrativeSchema: z.ZodObject<{
9200
9270
  specs?: ClientSpecNode[] | undefined;
9201
9271
  };
9202
9272
  stream?: string | undefined;
9203
- description?: string | undefined;
9204
9273
  id?: string | undefined;
9274
+ description?: string | undefined;
9205
9275
  via?: string[] | undefined;
9206
9276
  additionalInstructions?: string | undefined;
9207
9277
  }>]>, "many">;
@@ -9299,8 +9369,8 @@ declare const NarrativeSchema: z.ZodObject<{
9299
9369
  }[] | undefined;
9300
9370
  };
9301
9371
  stream?: string | undefined;
9302
- description?: string | undefined;
9303
9372
  id?: string | undefined;
9373
+ description?: string | undefined;
9304
9374
  via?: string[] | undefined;
9305
9375
  additionalInstructions?: string | undefined;
9306
9376
  request?: string | undefined;
@@ -9369,8 +9439,8 @@ declare const NarrativeSchema: z.ZodObject<{
9369
9439
  }[] | undefined;
9370
9440
  };
9371
9441
  stream?: string | undefined;
9372
- description?: string | undefined;
9373
9442
  id?: string | undefined;
9443
+ description?: string | undefined;
9374
9444
  via?: string[] | undefined;
9375
9445
  additionalInstructions?: string | undefined;
9376
9446
  request?: string | undefined;
@@ -9490,8 +9560,8 @@ declare const NarrativeSchema: z.ZodObject<{
9490
9560
  description?: string | undefined;
9491
9561
  };
9492
9562
  stream?: string | undefined;
9493
- description?: string | undefined;
9494
9563
  id?: string | undefined;
9564
+ description?: string | undefined;
9495
9565
  via?: string[] | undefined;
9496
9566
  additionalInstructions?: string | undefined;
9497
9567
  } | {
@@ -9501,14 +9571,14 @@ declare const NarrativeSchema: z.ZodObject<{
9501
9571
  specs: ClientSpecNode[];
9502
9572
  };
9503
9573
  stream?: string | undefined;
9504
- description?: string | undefined;
9505
9574
  id?: string | undefined;
9575
+ description?: string | undefined;
9506
9576
  via?: string[] | undefined;
9507
9577
  additionalInstructions?: string | undefined;
9508
9578
  })[];
9509
- description?: string | undefined;
9510
9579
  id?: string | undefined;
9511
9580
  sourceFile?: string | undefined;
9581
+ description?: string | undefined;
9512
9582
  }, {
9513
9583
  name: string;
9514
9584
  slices: ({
@@ -9602,8 +9672,8 @@ declare const NarrativeSchema: z.ZodObject<{
9602
9672
  }[] | undefined;
9603
9673
  };
9604
9674
  stream?: string | undefined;
9605
- description?: string | undefined;
9606
9675
  id?: string | undefined;
9676
+ description?: string | undefined;
9607
9677
  via?: string[] | undefined;
9608
9678
  additionalInstructions?: string | undefined;
9609
9679
  request?: string | undefined;
@@ -9672,8 +9742,8 @@ declare const NarrativeSchema: z.ZodObject<{
9672
9742
  }[] | undefined;
9673
9743
  };
9674
9744
  stream?: string | undefined;
9675
- description?: string | undefined;
9676
9745
  id?: string | undefined;
9746
+ description?: string | undefined;
9677
9747
  via?: string[] | undefined;
9678
9748
  additionalInstructions?: string | undefined;
9679
9749
  request?: string | undefined;
@@ -9793,8 +9863,8 @@ declare const NarrativeSchema: z.ZodObject<{
9793
9863
  description?: string | undefined;
9794
9864
  };
9795
9865
  stream?: string | undefined;
9796
- description?: string | undefined;
9797
9866
  id?: string | undefined;
9867
+ description?: string | undefined;
9798
9868
  via?: string[] | undefined;
9799
9869
  additionalInstructions?: string | undefined;
9800
9870
  } | {
@@ -9804,14 +9874,14 @@ declare const NarrativeSchema: z.ZodObject<{
9804
9874
  specs?: ClientSpecNode[] | undefined;
9805
9875
  };
9806
9876
  stream?: string | undefined;
9807
- description?: string | undefined;
9808
9877
  id?: string | undefined;
9878
+ description?: string | undefined;
9809
9879
  via?: string[] | undefined;
9810
9880
  additionalInstructions?: string | undefined;
9811
9881
  })[];
9812
- description?: string | undefined;
9813
9882
  id?: string | undefined;
9814
9883
  sourceFile?: string | undefined;
9884
+ description?: string | undefined;
9815
9885
  }>;
9816
9886
  export declare const NarrativeNamesSchema: z.ZodObject<{
9817
9887
  variant: z.ZodLiteral<"narrative-names">;
@@ -9821,26 +9891,26 @@ export declare const NarrativeNamesSchema: z.ZodObject<{
9821
9891
  description: z.ZodOptional<z.ZodString>;
9822
9892
  }, "strip", z.ZodTypeAny, {
9823
9893
  name: string;
9824
- description?: string | undefined;
9825
9894
  id?: string | undefined;
9895
+ description?: string | undefined;
9826
9896
  }, {
9827
9897
  name: string;
9828
- description?: string | undefined;
9829
9898
  id?: string | undefined;
9899
+ description?: string | undefined;
9830
9900
  }>, "many">;
9831
9901
  }, "strip", z.ZodTypeAny, {
9832
9902
  variant: "narrative-names";
9833
9903
  narratives: {
9834
9904
  name: string;
9835
- description?: string | undefined;
9836
9905
  id?: string | undefined;
9906
+ description?: string | undefined;
9837
9907
  }[];
9838
9908
  }, {
9839
9909
  variant: "narrative-names";
9840
9910
  narratives: {
9841
9911
  name: string;
9842
- description?: string | undefined;
9843
9912
  id?: string | undefined;
9913
+ description?: string | undefined;
9844
9914
  }[];
9845
9915
  }>;
9846
9916
  export declare const SliceNamesSchema: z.ZodObject<{
@@ -9857,34 +9927,34 @@ export declare const SliceNamesSchema: z.ZodObject<{
9857
9927
  }, "strip", z.ZodTypeAny, {
9858
9928
  type: "command" | "query" | "react";
9859
9929
  name: string;
9860
- description?: string | undefined;
9861
9930
  id?: string | undefined;
9931
+ description?: string | undefined;
9862
9932
  }, {
9863
9933
  type: "command" | "query" | "react";
9864
9934
  name: string;
9865
- description?: string | undefined;
9866
9935
  id?: string | undefined;
9936
+ description?: string | undefined;
9867
9937
  }>, "many">;
9868
9938
  }, "strip", z.ZodTypeAny, {
9869
9939
  name: string;
9870
9940
  slices: {
9871
9941
  type: "command" | "query" | "react";
9872
9942
  name: string;
9873
- description?: string | undefined;
9874
9943
  id?: string | undefined;
9944
+ description?: string | undefined;
9875
9945
  }[];
9876
- description?: string | undefined;
9877
9946
  id?: string | undefined;
9947
+ description?: string | undefined;
9878
9948
  }, {
9879
9949
  name: string;
9880
9950
  slices: {
9881
9951
  type: "command" | "query" | "react";
9882
9952
  name: string;
9883
- description?: string | undefined;
9884
9953
  id?: string | undefined;
9954
+ description?: string | undefined;
9885
9955
  }[];
9886
- description?: string | undefined;
9887
9956
  id?: string | undefined;
9957
+ description?: string | undefined;
9888
9958
  }>, "many">;
9889
9959
  }, "strip", z.ZodTypeAny, {
9890
9960
  variant: "slice-names";
@@ -9893,11 +9963,11 @@ export declare const SliceNamesSchema: z.ZodObject<{
9893
9963
  slices: {
9894
9964
  type: "command" | "query" | "react";
9895
9965
  name: string;
9896
- description?: string | undefined;
9897
9966
  id?: string | undefined;
9967
+ description?: string | undefined;
9898
9968
  }[];
9899
- description?: string | undefined;
9900
9969
  id?: string | undefined;
9970
+ description?: string | undefined;
9901
9971
  }[];
9902
9972
  }, {
9903
9973
  variant: "slice-names";
@@ -9906,11 +9976,11 @@ export declare const SliceNamesSchema: z.ZodObject<{
9906
9976
  slices: {
9907
9977
  type: "command" | "query" | "react";
9908
9978
  name: string;
9909
- description?: string | undefined;
9910
9979
  id?: string | undefined;
9980
+ description?: string | undefined;
9911
9981
  }[];
9912
- description?: string | undefined;
9913
9982
  id?: string | undefined;
9983
+ description?: string | undefined;
9914
9984
  }[];
9915
9985
  }>;
9916
9986
  export declare const ClientServerNamesSchema: z.ZodObject<{
@@ -9941,8 +10011,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
9941
10011
  }, "strip", z.ZodTypeAny, {
9942
10012
  type: "command" | "query" | "react";
9943
10013
  name: string;
9944
- description?: string | undefined;
9945
10014
  id?: string | undefined;
10015
+ description?: string | undefined;
9946
10016
  client?: {
9947
10017
  description: string;
9948
10018
  } | undefined;
@@ -9952,8 +10022,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
9952
10022
  }, {
9953
10023
  type: "command" | "query" | "react";
9954
10024
  name: string;
9955
- description?: string | undefined;
9956
10025
  id?: string | undefined;
10026
+ description?: string | undefined;
9957
10027
  client?: {
9958
10028
  description: string;
9959
10029
  } | undefined;
@@ -9966,8 +10036,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
9966
10036
  slices: {
9967
10037
  type: "command" | "query" | "react";
9968
10038
  name: string;
9969
- description?: string | undefined;
9970
10039
  id?: string | undefined;
10040
+ description?: string | undefined;
9971
10041
  client?: {
9972
10042
  description: string;
9973
10043
  } | undefined;
@@ -9975,15 +10045,15 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
9975
10045
  description: string;
9976
10046
  } | undefined;
9977
10047
  }[];
9978
- description?: string | undefined;
9979
10048
  id?: string | undefined;
10049
+ description?: string | undefined;
9980
10050
  }, {
9981
10051
  name: string;
9982
10052
  slices: {
9983
10053
  type: "command" | "query" | "react";
9984
10054
  name: string;
9985
- description?: string | undefined;
9986
10055
  id?: string | undefined;
10056
+ description?: string | undefined;
9987
10057
  client?: {
9988
10058
  description: string;
9989
10059
  } | undefined;
@@ -9991,8 +10061,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
9991
10061
  description: string;
9992
10062
  } | undefined;
9993
10063
  }[];
9994
- description?: string | undefined;
9995
10064
  id?: string | undefined;
10065
+ description?: string | undefined;
9996
10066
  }>, "many">;
9997
10067
  }, "strip", z.ZodTypeAny, {
9998
10068
  variant: "client-server-names";
@@ -10001,8 +10071,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
10001
10071
  slices: {
10002
10072
  type: "command" | "query" | "react";
10003
10073
  name: string;
10004
- description?: string | undefined;
10005
10074
  id?: string | undefined;
10075
+ description?: string | undefined;
10006
10076
  client?: {
10007
10077
  description: string;
10008
10078
  } | undefined;
@@ -10010,8 +10080,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
10010
10080
  description: string;
10011
10081
  } | undefined;
10012
10082
  }[];
10013
- description?: string | undefined;
10014
10083
  id?: string | undefined;
10084
+ description?: string | undefined;
10015
10085
  }[];
10016
10086
  }, {
10017
10087
  variant: "client-server-names";
@@ -10020,8 +10090,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
10020
10090
  slices: {
10021
10091
  type: "command" | "query" | "react";
10022
10092
  name: string;
10023
- description?: string | undefined;
10024
10093
  id?: string | undefined;
10094
+ description?: string | undefined;
10025
10095
  client?: {
10026
10096
  description: string;
10027
10097
  } | undefined;
@@ -10029,8 +10099,8 @@ export declare const ClientServerNamesSchema: z.ZodObject<{
10029
10099
  description: string;
10030
10100
  } | undefined;
10031
10101
  }[];
10032
- description?: string | undefined;
10033
10102
  id?: string | undefined;
10103
+ description?: string | undefined;
10034
10104
  }[];
10035
10105
  }>;
10036
10106
  export declare const modelSchema: z.ZodObject<{
@@ -10805,8 +10875,8 @@ export declare const modelSchema: z.ZodObject<{
10805
10875
  }[] | undefined;
10806
10876
  };
10807
10877
  stream?: string | undefined;
10808
- description?: string | undefined;
10809
10878
  id?: string | undefined;
10879
+ description?: string | undefined;
10810
10880
  via?: string[] | undefined;
10811
10881
  additionalInstructions?: string | undefined;
10812
10882
  request?: string | undefined;
@@ -10901,8 +10971,8 @@ export declare const modelSchema: z.ZodObject<{
10901
10971
  }[] | undefined;
10902
10972
  };
10903
10973
  stream?: string | undefined;
10904
- description?: string | undefined;
10905
10974
  id?: string | undefined;
10975
+ description?: string | undefined;
10906
10976
  via?: string[] | undefined;
10907
10977
  additionalInstructions?: string | undefined;
10908
10978
  request?: string | undefined;
@@ -11414,8 +11484,8 @@ export declare const modelSchema: z.ZodObject<{
11414
11484
  }[] | undefined;
11415
11485
  };
11416
11486
  stream?: string | undefined;
11417
- description?: string | undefined;
11418
11487
  id?: string | undefined;
11488
+ description?: string | undefined;
11419
11489
  via?: string[] | undefined;
11420
11490
  additionalInstructions?: string | undefined;
11421
11491
  request?: string | undefined;
@@ -11484,8 +11554,8 @@ export declare const modelSchema: z.ZodObject<{
11484
11554
  }[] | undefined;
11485
11555
  };
11486
11556
  stream?: string | undefined;
11487
- description?: string | undefined;
11488
11557
  id?: string | undefined;
11558
+ description?: string | undefined;
11489
11559
  via?: string[] | undefined;
11490
11560
  additionalInstructions?: string | undefined;
11491
11561
  request?: string | undefined;
@@ -12458,8 +12528,8 @@ export declare const modelSchema: z.ZodObject<{
12458
12528
  description?: string | undefined;
12459
12529
  };
12460
12530
  stream?: string | undefined;
12461
- description?: string | undefined;
12462
12531
  id?: string | undefined;
12532
+ description?: string | undefined;
12463
12533
  via?: string[] | undefined;
12464
12534
  additionalInstructions?: string | undefined;
12465
12535
  }, {
@@ -12578,8 +12648,8 @@ export declare const modelSchema: z.ZodObject<{
12578
12648
  description?: string | undefined;
12579
12649
  };
12580
12650
  stream?: string | undefined;
12581
- description?: string | undefined;
12582
12651
  id?: string | undefined;
12652
+ description?: string | undefined;
12583
12653
  via?: string[] | undefined;
12584
12654
  additionalInstructions?: string | undefined;
12585
12655
  }>, z.ZodObject<{
@@ -12605,8 +12675,8 @@ export declare const modelSchema: z.ZodObject<{
12605
12675
  specs: ClientSpecNode[];
12606
12676
  };
12607
12677
  stream?: string | undefined;
12608
- description?: string | undefined;
12609
12678
  id?: string | undefined;
12679
+ description?: string | undefined;
12610
12680
  via?: string[] | undefined;
12611
12681
  additionalInstructions?: string | undefined;
12612
12682
  }, {
@@ -12616,8 +12686,8 @@ export declare const modelSchema: z.ZodObject<{
12616
12686
  specs?: ClientSpecNode[] | undefined;
12617
12687
  };
12618
12688
  stream?: string | undefined;
12619
- description?: string | undefined;
12620
12689
  id?: string | undefined;
12690
+ description?: string | undefined;
12621
12691
  via?: string[] | undefined;
12622
12692
  additionalInstructions?: string | undefined;
12623
12693
  }>]>, "many">;
@@ -12715,8 +12785,8 @@ export declare const modelSchema: z.ZodObject<{
12715
12785
  }[] | undefined;
12716
12786
  };
12717
12787
  stream?: string | undefined;
12718
- description?: string | undefined;
12719
12788
  id?: string | undefined;
12789
+ description?: string | undefined;
12720
12790
  via?: string[] | undefined;
12721
12791
  additionalInstructions?: string | undefined;
12722
12792
  request?: string | undefined;
@@ -12785,8 +12855,8 @@ export declare const modelSchema: z.ZodObject<{
12785
12855
  }[] | undefined;
12786
12856
  };
12787
12857
  stream?: string | undefined;
12788
- description?: string | undefined;
12789
12858
  id?: string | undefined;
12859
+ description?: string | undefined;
12790
12860
  via?: string[] | undefined;
12791
12861
  additionalInstructions?: string | undefined;
12792
12862
  request?: string | undefined;
@@ -12906,8 +12976,8 @@ export declare const modelSchema: z.ZodObject<{
12906
12976
  description?: string | undefined;
12907
12977
  };
12908
12978
  stream?: string | undefined;
12909
- description?: string | undefined;
12910
12979
  id?: string | undefined;
12980
+ description?: string | undefined;
12911
12981
  via?: string[] | undefined;
12912
12982
  additionalInstructions?: string | undefined;
12913
12983
  } | {
@@ -12917,14 +12987,14 @@ export declare const modelSchema: z.ZodObject<{
12917
12987
  specs: ClientSpecNode[];
12918
12988
  };
12919
12989
  stream?: string | undefined;
12920
- description?: string | undefined;
12921
12990
  id?: string | undefined;
12991
+ description?: string | undefined;
12922
12992
  via?: string[] | undefined;
12923
12993
  additionalInstructions?: string | undefined;
12924
12994
  })[];
12925
- description?: string | undefined;
12926
12995
  id?: string | undefined;
12927
12996
  sourceFile?: string | undefined;
12997
+ description?: string | undefined;
12928
12998
  }, {
12929
12999
  name: string;
12930
13000
  slices: ({
@@ -13018,8 +13088,8 @@ export declare const modelSchema: z.ZodObject<{
13018
13088
  }[] | undefined;
13019
13089
  };
13020
13090
  stream?: string | undefined;
13021
- description?: string | undefined;
13022
13091
  id?: string | undefined;
13092
+ description?: string | undefined;
13023
13093
  via?: string[] | undefined;
13024
13094
  additionalInstructions?: string | undefined;
13025
13095
  request?: string | undefined;
@@ -13088,8 +13158,8 @@ export declare const modelSchema: z.ZodObject<{
13088
13158
  }[] | undefined;
13089
13159
  };
13090
13160
  stream?: string | undefined;
13091
- description?: string | undefined;
13092
13161
  id?: string | undefined;
13162
+ description?: string | undefined;
13093
13163
  via?: string[] | undefined;
13094
13164
  additionalInstructions?: string | undefined;
13095
13165
  request?: string | undefined;
@@ -13209,8 +13279,8 @@ export declare const modelSchema: z.ZodObject<{
13209
13279
  description?: string | undefined;
13210
13280
  };
13211
13281
  stream?: string | undefined;
13212
- description?: string | undefined;
13213
13282
  id?: string | undefined;
13283
+ description?: string | undefined;
13214
13284
  via?: string[] | undefined;
13215
13285
  additionalInstructions?: string | undefined;
13216
13286
  } | {
@@ -13220,14 +13290,14 @@ export declare const modelSchema: z.ZodObject<{
13220
13290
  specs?: ClientSpecNode[] | undefined;
13221
13291
  };
13222
13292
  stream?: string | undefined;
13223
- description?: string | undefined;
13224
13293
  id?: string | undefined;
13294
+ description?: string | undefined;
13225
13295
  via?: string[] | undefined;
13226
13296
  additionalInstructions?: string | undefined;
13227
13297
  })[];
13228
- description?: string | undefined;
13229
13298
  id?: string | undefined;
13230
13299
  sourceFile?: string | undefined;
13300
+ description?: string | undefined;
13231
13301
  }>, "many">;
13232
13302
  messages: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13233
13303
  name: z.ZodString;
@@ -13423,7 +13493,111 @@ export declare const modelSchema: z.ZodObject<{
13423
13493
  name: string;
13424
13494
  description?: string | undefined;
13425
13495
  }>, "many">>;
13496
+ modules: z.ZodArray<z.ZodObject<{
13497
+ id: z.ZodString;
13498
+ sourceFile: z.ZodString;
13499
+ isDerived: z.ZodBoolean;
13500
+ contains: z.ZodObject<{
13501
+ narrativeIds: z.ZodArray<z.ZodString, "many">;
13502
+ }, "strip", z.ZodTypeAny, {
13503
+ narrativeIds: string[];
13504
+ }, {
13505
+ narrativeIds: string[];
13506
+ }>;
13507
+ declares: z.ZodObject<{
13508
+ messages: z.ZodArray<z.ZodObject<{
13509
+ kind: z.ZodEnum<["command", "event", "state"]>;
13510
+ name: z.ZodString;
13511
+ }, "strip", z.ZodTypeAny, {
13512
+ kind: "command" | "event" | "state";
13513
+ name: string;
13514
+ }, {
13515
+ kind: "command" | "event" | "state";
13516
+ name: string;
13517
+ }>, "many">;
13518
+ }, "strip", z.ZodTypeAny, {
13519
+ messages: {
13520
+ kind: "command" | "event" | "state";
13521
+ name: string;
13522
+ }[];
13523
+ }, {
13524
+ messages: {
13525
+ kind: "command" | "event" | "state";
13526
+ name: string;
13527
+ }[];
13528
+ }>;
13529
+ }, "strip", z.ZodTypeAny, {
13530
+ id: string;
13531
+ sourceFile: string;
13532
+ isDerived: boolean;
13533
+ contains: {
13534
+ narrativeIds: string[];
13535
+ };
13536
+ declares: {
13537
+ messages: {
13538
+ kind: "command" | "event" | "state";
13539
+ name: string;
13540
+ }[];
13541
+ };
13542
+ }, {
13543
+ id: string;
13544
+ sourceFile: string;
13545
+ isDerived: boolean;
13546
+ contains: {
13547
+ narrativeIds: string[];
13548
+ };
13549
+ declares: {
13550
+ messages: {
13551
+ kind: "command" | "event" | "state";
13552
+ name: string;
13553
+ }[];
13554
+ };
13555
+ }>, "many">;
13426
13556
  }, "strip", z.ZodTypeAny, {
13557
+ messages: ({
13558
+ type: "command";
13559
+ name: string;
13560
+ fields: {
13561
+ type: string;
13562
+ name: string;
13563
+ required: boolean;
13564
+ description?: string | undefined;
13565
+ defaultValue?: unknown;
13566
+ }[];
13567
+ description?: string | undefined;
13568
+ metadata?: {
13569
+ version: number;
13570
+ } | undefined;
13571
+ } | {
13572
+ type: "event";
13573
+ source: "internal" | "external";
13574
+ name: string;
13575
+ fields: {
13576
+ type: string;
13577
+ name: string;
13578
+ required: boolean;
13579
+ description?: string | undefined;
13580
+ defaultValue?: unknown;
13581
+ }[];
13582
+ description?: string | undefined;
13583
+ metadata?: {
13584
+ version: number;
13585
+ } | undefined;
13586
+ } | {
13587
+ type: "state";
13588
+ name: string;
13589
+ fields: {
13590
+ type: string;
13591
+ name: string;
13592
+ required: boolean;
13593
+ description?: string | undefined;
13594
+ defaultValue?: unknown;
13595
+ }[];
13596
+ description?: string | undefined;
13597
+ metadata?: {
13598
+ version: number;
13599
+ } | undefined;
13600
+ })[];
13427
13601
  variant: "specs";
13428
13602
  narratives: {
13429
13603
  name: string;
@@ -13518,8 +13692,8 @@ export declare const modelSchema: z.ZodObject<{
13518
13692
  }[] | undefined;
13519
13693
  };
13520
13694
  stream?: string | undefined;
13521
- description?: string | undefined;
13522
13695
  id?: string | undefined;
13696
+ description?: string | undefined;
13523
13697
  via?: string[] | undefined;
13524
13698
  additionalInstructions?: string | undefined;
13525
13699
  request?: string | undefined;
@@ -13588,8 +13762,8 @@ export declare const modelSchema: z.ZodObject<{
13588
13762
  }[] | undefined;
13589
13763
  };
13590
13764
  stream?: string | undefined;
13591
- description?: string | undefined;
13592
13765
  id?: string | undefined;
13766
+ description?: string | undefined;
13593
13767
  via?: string[] | undefined;
13594
13768
  additionalInstructions?: string | undefined;
13595
13769
  request?: string | undefined;
@@ -13709,8 +13883,8 @@ export declare const modelSchema: z.ZodObject<{
13709
13883
  description?: string | undefined;
13710
13884
  };
13711
13885
  stream?: string | undefined;
13712
- description?: string | undefined;
13713
13886
  id?: string | undefined;
13887
+ description?: string | undefined;
13714
13888
  via?: string[] | undefined;
13715
13889
  additionalInstructions?: string | undefined;
13716
13890
  } | {
@@ -13720,43 +13894,63 @@ export declare const modelSchema: z.ZodObject<{
13720
13894
  specs: ClientSpecNode[];
13721
13895
  };
13722
13896
  stream?: string | undefined;
13723
- description?: string | undefined;
13724
13897
  id?: string | undefined;
13898
+ description?: string | undefined;
13725
13899
  via?: string[] | undefined;
13726
13900
  additionalInstructions?: string | undefined;
13727
13901
  })[];
13728
- description?: string | undefined;
13729
13902
  id?: string | undefined;
13730
13903
  sourceFile?: string | undefined;
13904
+ description?: string | undefined;
13905
+ }[];
13906
+ modules: {
13907
+ id: string;
13908
+ sourceFile: string;
13909
+ isDerived: boolean;
13910
+ contains: {
13911
+ narrativeIds: string[];
13912
+ };
13913
+ declares: {
13914
+ messages: {
13915
+ kind: "command" | "event" | "state";
13916
+ name: string;
13917
+ }[];
13918
+ };
13731
13919
  }[];
13920
+ integrations?: {
13921
+ source: string;
13922
+ name: string;
13923
+ description?: string | undefined;
13924
+ }[] | undefined;
13925
+ }, {
13732
13926
  messages: ({
13733
13927
  type: "command";
13734
13928
  name: string;
13735
13929
  fields: {
13736
13930
  type: string;
13737
13931
  name: string;
13738
- required: boolean;
13739
13932
  description?: string | undefined;
13933
+ required?: boolean | undefined;
13740
13934
  defaultValue?: unknown;
13741
13935
  }[];
13742
13936
  description?: string | undefined;
13743
13937
  metadata?: {
13744
- version: number;
13938
+ version?: number | undefined;
13745
13939
  } | undefined;
13746
13940
  } | {
13747
13941
  type: "event";
13748
- source: "internal" | "external";
13749
13942
  name: string;
13750
13943
  fields: {
13751
13944
  type: string;
13752
13945
  name: string;
13753
- required: boolean;
13754
13946
  description?: string | undefined;
13947
+ required?: boolean | undefined;
13755
13948
  defaultValue?: unknown;
13756
13949
  }[];
13950
+ source?: "internal" | "external" | undefined;
13757
13951
  description?: string | undefined;
13758
13952
  metadata?: {
13759
- version: number;
13953
+ version?: number | undefined;
13760
13954
  } | undefined;
13761
13955
  } | {
13762
13956
  type: "state";
@@ -13764,21 +13958,15 @@ export declare const modelSchema: z.ZodObject<{
13764
13958
  fields: {
13765
13959
  type: string;
13766
13960
  name: string;
13767
- required: boolean;
13768
13961
  description?: string | undefined;
13962
+ required?: boolean | undefined;
13769
13963
  defaultValue?: unknown;
13770
13964
  }[];
13771
13965
  description?: string | undefined;
13772
13966
  metadata?: {
13773
- version: number;
13967
+ version?: number | undefined;
13774
13968
  } | undefined;
13775
13969
  })[];
13776
- integrations?: {
13777
- source: string;
13778
- name: string;
13779
- description?: string | undefined;
13780
- }[] | undefined;
13781
- }, {
13782
13970
  variant: "specs";
13783
13971
  narratives: {
13784
13972
  name: string;
@@ -13873,8 +14061,8 @@ export declare const modelSchema: z.ZodObject<{
13873
14061
  }[] | undefined;
13874
14062
  };
13875
14063
  stream?: string | undefined;
13876
- description?: string | undefined;
13877
14064
  id?: string | undefined;
14065
+ description?: string | undefined;
13878
14066
  via?: string[] | undefined;
13879
14067
  additionalInstructions?: string | undefined;
13880
14068
  request?: string | undefined;
@@ -13943,8 +14131,8 @@ export declare const modelSchema: z.ZodObject<{
13943
14131
  }[] | undefined;
13944
14132
  };
13945
14133
  stream?: string | undefined;
13946
- description?: string | undefined;
13947
14134
  id?: string | undefined;
14135
+ description?: string | undefined;
13948
14136
  via?: string[] | undefined;
13949
14137
  additionalInstructions?: string | undefined;
13950
14138
  request?: string | undefined;
@@ -14064,8 +14252,8 @@ export declare const modelSchema: z.ZodObject<{
14064
14252
  description?: string | undefined;
14065
14253
  };
14066
14254
  stream?: string | undefined;
14067
- description?: string | undefined;
14068
14255
  id?: string | undefined;
14256
+ description?: string | undefined;
14069
14257
  via?: string[] | undefined;
14070
14258
  additionalInstructions?: string | undefined;
14071
14259
  } | {
@@ -14075,59 +14263,29 @@ export declare const modelSchema: z.ZodObject<{
14075
14263
  specs?: ClientSpecNode[] | undefined;
14076
14264
  };
14077
14265
  stream?: string | undefined;
14078
- description?: string | undefined;
14079
14266
  id?: string | undefined;
14267
+ description?: string | undefined;
14080
14268
  via?: string[] | undefined;
14081
14269
  additionalInstructions?: string | undefined;
14082
14270
  })[];
14083
- description?: string | undefined;
14084
14271
  id?: string | undefined;
14085
14272
  sourceFile?: string | undefined;
14086
- }[];
14087
- messages: ({
14088
- type: "command";
14089
- name: string;
14090
- fields: {
14091
- type: string;
14092
- name: string;
14093
- description?: string | undefined;
14094
- required?: boolean | undefined;
14095
- defaultValue?: unknown;
14096
- }[];
14097
- description?: string | undefined;
14098
- metadata?: {
14099
- version?: number | undefined;
14100
- } | undefined;
14101
- } | {
14102
- type: "event";
14103
- name: string;
14104
- fields: {
14105
- type: string;
14106
- name: string;
14107
- description?: string | undefined;
14108
- required?: boolean | undefined;
14109
- defaultValue?: unknown;
14110
- }[];
14111
- source?: "internal" | "external" | undefined;
14112
- description?: string | undefined;
14113
- metadata?: {
14114
- version?: number | undefined;
14115
- } | undefined;
14116
- } | {
14117
- type: "state";
14118
- name: string;
14119
- fields: {
14120
- type: string;
14121
- name: string;
14122
- description?: string | undefined;
14123
- required?: boolean | undefined;
14124
- defaultValue?: unknown;
14125
- }[];
14126
14273
  description?: string | undefined;
14127
- metadata?: {
14128
- version?: number | undefined;
14129
- } | undefined;
14130
- })[];
14274
+ }[];
14275
+ modules: {
14276
+ id: string;
14277
+ sourceFile: string;
14278
+ isDerived: boolean;
14279
+ contains: {
14280
+ narrativeIds: string[];
14281
+ };
14282
+ declares: {
14283
+ messages: {
14284
+ kind: "command" | "event" | "state";
14285
+ name: string;
14286
+ }[];
14287
+ };
14288
+ }[];
14131
14289
  integrations?: {
14132
14290
  source: string;
14133
14291
  name: string;