attio 0.0.1-experimental.20240606 → 0.0.1-experimental.20240614.1

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 (83) hide show
  1. package/lib/attio.d.ts +3 -0
  2. package/lib/attio.d.ts.map +1 -0
  3. package/lib/attio.js +10 -0
  4. package/lib/attio.js.map +1 -0
  5. package/lib/build.d.ts +0 -2
  6. package/lib/build.d.ts.map +1 -1
  7. package/lib/build.js +0 -8
  8. package/lib/build.js.map +1 -1
  9. package/lib/commands/build.d.ts +0 -1
  10. package/lib/commands/build.d.ts.map +1 -1
  11. package/lib/commands/build.js +23 -19
  12. package/lib/commands/build.js.map +1 -1
  13. package/lib/commands/dev.d.ts.map +1 -1
  14. package/lib/commands/dev.js +37 -24
  15. package/lib/commands/dev.js.map +1 -1
  16. package/lib/commands/index.d.ts +30 -0
  17. package/lib/commands/index.d.ts.map +1 -0
  18. package/lib/commands/{scaffold.js → index.js} +42 -11
  19. package/lib/commands/index.js.map +1 -0
  20. package/lib/components/Disclaimer.d.ts +3 -0
  21. package/lib/components/Disclaimer.d.ts.map +1 -0
  22. package/lib/components/Disclaimer.js +10 -0
  23. package/lib/components/Disclaimer.js.map +1 -0
  24. package/lib/components/InitialInstructions.d.ts +5 -0
  25. package/lib/components/InitialInstructions.d.ts.map +1 -0
  26. package/lib/components/InitialInstructions.js +59 -0
  27. package/lib/components/InitialInstructions.js.map +1 -0
  28. package/lib/components/Logo.d.ts +3 -0
  29. package/lib/components/Logo.d.ts.map +1 -0
  30. package/lib/components/Logo.js +11 -0
  31. package/lib/components/Logo.js.map +1 -0
  32. package/lib/components/Select.d.ts +2 -1
  33. package/lib/components/Select.d.ts.map +1 -1
  34. package/lib/components/Select.js +2 -2
  35. package/lib/components/Select.js.map +1 -1
  36. package/lib/components/{TypeScriptError.d.ts → TypeScriptErrors.d.ts} +1 -1
  37. package/lib/components/TypeScriptErrors.d.ts.map +1 -0
  38. package/lib/components/{TypeScriptError.js → TypeScriptErrors.js} +1 -1
  39. package/lib/components/TypeScriptErrors.js.map +1 -0
  40. package/lib/hooks/useFullScreen.d.ts.map +1 -1
  41. package/lib/hooks/useFullScreen.js +5 -5
  42. package/lib/hooks/useFullScreen.js.map +1 -1
  43. package/lib/machines/build-machine.d.ts +1694 -32
  44. package/lib/machines/build-machine.d.ts.map +1 -1
  45. package/lib/machines/build-machine.js +107 -53
  46. package/lib/machines/build-machine.js.map +1 -1
  47. package/lib/machines/build-orchestrator.d.ts +16 -0
  48. package/lib/machines/build-orchestrator.d.ts.map +1 -0
  49. package/lib/machines/build-orchestrator.js +2 -0
  50. package/lib/machines/build-orchestrator.js.map +1 -0
  51. package/lib/machines/dev-machine.d.ts +2002 -125
  52. package/lib/machines/dev-machine.d.ts.map +1 -1
  53. package/lib/machines/dev-machine.js +161 -177
  54. package/lib/machines/dev-machine.js.map +1 -1
  55. package/lib/machines/js-machine.d.ts +240 -0
  56. package/lib/machines/js-machine.d.ts.map +1 -0
  57. package/lib/machines/js-machine.js +166 -0
  58. package/lib/machines/js-machine.js.map +1 -0
  59. package/lib/machines/scaffold-machine.d.ts +76 -46
  60. package/lib/machines/scaffold-machine.d.ts.map +1 -1
  61. package/lib/machines/scaffold-machine.js +52 -12
  62. package/lib/machines/scaffold-machine.js.map +1 -1
  63. package/lib/machines/ts-machine.d.ts +149 -0
  64. package/lib/machines/ts-machine.d.ts.map +1 -0
  65. package/lib/machines/ts-machine.js +103 -0
  66. package/lib/machines/ts-machine.js.map +1 -0
  67. package/lib/templates/javascript/eslint.config.js +1 -1
  68. package/lib/templates/typescript/eslint.config.js +1 -1
  69. package/lib/templates/typescript/package.json +1 -1
  70. package/lib/util/upload-bundle.d.ts +61 -1
  71. package/lib/util/upload-bundle.d.ts.map +1 -1
  72. package/lib/util/upload-bundle.js +41 -46
  73. package/lib/util/upload-bundle.js.map +1 -1
  74. package/package.json +4 -3
  75. package/lib/cli.d.ts +0 -3
  76. package/lib/cli.d.ts.map +0 -1
  77. package/lib/cli.js +0 -5
  78. package/lib/cli.js.map +0 -1
  79. package/lib/commands/scaffold.d.ts +0 -10
  80. package/lib/commands/scaffold.d.ts.map +0 -1
  81. package/lib/commands/scaffold.js.map +0 -1
  82. package/lib/components/TypeScriptError.d.ts.map +0 -1
  83. package/lib/components/TypeScriptError.js.map +0 -1
@@ -1,60 +1,1722 @@
1
- import { BuildError } from "../build.js";
1
+ declare const processes: readonly ["javascript", "typescript"];
2
+ type Process = (typeof processes)[number];
2
3
  interface Context {
3
- error?: BuildError;
4
- log: Array<string>;
4
+ successful: Array<Process>;
5
+ failed: Array<Process>;
5
6
  }
6
7
  export declare const buildMachine: import("xstate").StateMachine<Context, {
7
- type: "Error";
8
- error: BuildError;
8
+ type: "JavaScript Error";
9
9
  } | {
10
- type: "Log";
11
- message: string;
10
+ type: "JavaScript Success";
12
11
  } | {
13
- type: "Success";
14
- }, {
15
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
12
+ type: "TypeScript Error";
13
+ } | {
14
+ type: "TypeScript Success";
16
15
  }, {
17
- src: "build";
18
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
19
- id: string | undefined;
16
+ javascript?: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./js-machine.js").Context, {
17
+ type: "Build Contexts Prepared";
18
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
19
+ } | {
20
+ type: "Change";
21
+ } | {
22
+ type: "Result";
23
+ contents: [string, string];
24
+ error?: undefined;
25
+ time: Date;
26
+ } | {
27
+ type: "Result";
28
+ contents?: undefined;
29
+ error: {
30
+ errors: {
31
+ text: string;
32
+ location: {
33
+ length: number;
34
+ column: number;
35
+ file: string;
36
+ line: number;
37
+ lineText: string;
38
+ namespace: string;
39
+ suggestion: string;
40
+ };
41
+ }[];
42
+ warnings: {
43
+ text: string;
44
+ location: {
45
+ length: number;
46
+ column: number;
47
+ file: string;
48
+ line: number;
49
+ lineText: string;
50
+ namespace: string;
51
+ suggestion: string;
52
+ };
53
+ }[];
54
+ };
55
+ time: Date;
56
+ } | {
57
+ type: "Log";
58
+ message: string;
59
+ }, {
60
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
61
+ write: boolean;
62
+ }>, {
63
+ type: "Build Contexts Prepared";
64
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
65
+ } | {
66
+ type: "Change";
67
+ } | {
68
+ type: "Result";
69
+ contents: [string, string];
70
+ error?: undefined;
71
+ time: Date;
72
+ } | {
73
+ type: "Result";
74
+ contents?: undefined;
75
+ error: {
76
+ errors: {
77
+ text: string;
78
+ location: {
79
+ length: number;
80
+ column: number;
81
+ file: string;
82
+ line: number;
83
+ lineText: string;
84
+ namespace: string;
85
+ suggestion: string;
86
+ };
87
+ }[];
88
+ warnings: {
89
+ text: string;
90
+ location: {
91
+ length: number;
92
+ column: number;
93
+ file: string;
94
+ line: number;
95
+ lineText: string;
96
+ namespace: string;
97
+ suggestion: string;
98
+ };
99
+ }[];
100
+ };
101
+ time: Date;
102
+ } | {
103
+ type: "Log";
104
+ message: string;
105
+ }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
106
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
107
+ write: boolean;
108
+ }>, {
109
+ type: "Build Contexts Prepared";
110
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
111
+ } | {
112
+ type: "Change";
113
+ } | {
114
+ type: "Result";
115
+ contents: [string, string];
116
+ error?: undefined;
117
+ time: Date;
118
+ } | {
119
+ type: "Result";
120
+ contents?: undefined;
121
+ error: {
122
+ errors: {
123
+ text: string;
124
+ location: {
125
+ length: number;
126
+ column: number;
127
+ file: string;
128
+ line: number;
129
+ lineText: string;
130
+ namespace: string;
131
+ suggestion: string;
132
+ };
133
+ }[];
134
+ warnings: {
135
+ text: string;
136
+ location: {
137
+ length: number;
138
+ column: number;
139
+ file: string;
140
+ line: number;
141
+ lineText: string;
142
+ namespace: string;
143
+ suggestion: string;
144
+ };
145
+ }[];
146
+ };
147
+ time: Date;
148
+ } | {
149
+ type: "Log";
150
+ message: string;
151
+ }, import("xstate").EventObject> | undefined;
152
+ }, "Preparing" | {
153
+ Watching?: "Success" | "Building" | "Errored" | undefined;
154
+ }, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject>, {
155
+ type: "Build Contexts Prepared";
156
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
157
+ } | {
158
+ type: "Change";
159
+ } | {
160
+ type: "Result";
161
+ contents: [string, string];
162
+ error?: undefined;
163
+ time: Date;
164
+ } | {
165
+ type: "Result";
166
+ contents?: undefined;
167
+ error: {
168
+ errors: {
169
+ text: string;
170
+ location: {
171
+ length: number;
172
+ column: number;
173
+ file: string;
174
+ line: number;
175
+ lineText: string;
176
+ namespace: string;
177
+ suggestion: string;
178
+ };
179
+ }[];
180
+ warnings: {
181
+ text: string;
182
+ location: {
183
+ length: number;
184
+ column: number;
185
+ file: string;
186
+ line: number;
187
+ lineText: string;
188
+ namespace: string;
189
+ suggestion: string;
190
+ };
191
+ }[];
192
+ };
193
+ time: Date;
194
+ } | {
195
+ type: "Log";
196
+ message: string;
197
+ }, import("xstate").EventObject> | undefined;
198
+ typescript?: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./ts-machine.js").Context, {
199
+ type: "Change";
200
+ } | {
201
+ type: "Result";
202
+ errors?: {
203
+ text: string;
204
+ location?: {
205
+ file: string;
206
+ line: number;
207
+ lineText: string;
208
+ character: number;
209
+ } | undefined;
210
+ }[] | undefined;
211
+ time: Date;
212
+ }, {
213
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
214
+ }, "Success" | "Errored" | "Validating", string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject>, {
215
+ type: "Change";
216
+ } | {
217
+ type: "Result";
218
+ errors?: {
219
+ text: string;
220
+ location?: {
221
+ file: string;
222
+ line: number;
223
+ lineText: string;
224
+ character: number;
225
+ } | undefined;
226
+ }[] | undefined;
227
+ time: Date;
228
+ }, import("xstate").EventObject> | undefined;
20
229
  }, import("xstate").Values<{
230
+ javascript: {
231
+ src: "javascript";
232
+ logic: import("xstate").StateMachine<import("./js-machine.js").Context, {
233
+ type: "Build Contexts Prepared";
234
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
235
+ } | {
236
+ type: "Change";
237
+ } | {
238
+ type: "Result";
239
+ contents: [string, string];
240
+ error?: undefined;
241
+ time: Date;
242
+ } | {
243
+ type: "Result";
244
+ contents?: undefined;
245
+ error: {
246
+ errors: {
247
+ text: string;
248
+ location: {
249
+ length: number;
250
+ column: number;
251
+ file: string;
252
+ line: number;
253
+ lineText: string;
254
+ namespace: string;
255
+ suggestion: string;
256
+ };
257
+ }[];
258
+ warnings: {
259
+ text: string;
260
+ location: {
261
+ length: number;
262
+ column: number;
263
+ file: string;
264
+ line: number;
265
+ lineText: string;
266
+ namespace: string;
267
+ suggestion: string;
268
+ };
269
+ }[];
270
+ };
271
+ time: Date;
272
+ } | {
273
+ type: "Log";
274
+ message: string;
275
+ }, {
276
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
277
+ write: boolean;
278
+ }>, {
279
+ type: "Build Contexts Prepared";
280
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
281
+ } | {
282
+ type: "Change";
283
+ } | {
284
+ type: "Result";
285
+ contents: [string, string];
286
+ error?: undefined;
287
+ time: Date;
288
+ } | {
289
+ type: "Result";
290
+ contents?: undefined;
291
+ error: {
292
+ errors: {
293
+ text: string;
294
+ location: {
295
+ length: number;
296
+ column: number;
297
+ file: string;
298
+ line: number;
299
+ lineText: string;
300
+ namespace: string;
301
+ suggestion: string;
302
+ };
303
+ }[];
304
+ warnings: {
305
+ text: string;
306
+ location: {
307
+ length: number;
308
+ column: number;
309
+ file: string;
310
+ line: number;
311
+ lineText: string;
312
+ namespace: string;
313
+ suggestion: string;
314
+ };
315
+ }[];
316
+ };
317
+ time: Date;
318
+ } | {
319
+ type: "Log";
320
+ message: string;
321
+ }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
322
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
323
+ write: boolean;
324
+ }>, {
325
+ type: "Build Contexts Prepared";
326
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
327
+ } | {
328
+ type: "Change";
329
+ } | {
330
+ type: "Result";
331
+ contents: [string, string];
332
+ error?: undefined;
333
+ time: Date;
334
+ } | {
335
+ type: "Result";
336
+ contents?: undefined;
337
+ error: {
338
+ errors: {
339
+ text: string;
340
+ location: {
341
+ length: number;
342
+ column: number;
343
+ file: string;
344
+ line: number;
345
+ lineText: string;
346
+ namespace: string;
347
+ suggestion: string;
348
+ };
349
+ }[];
350
+ warnings: {
351
+ text: string;
352
+ location: {
353
+ length: number;
354
+ column: number;
355
+ file: string;
356
+ line: number;
357
+ lineText: string;
358
+ namespace: string;
359
+ suggestion: string;
360
+ };
361
+ }[];
362
+ };
363
+ time: Date;
364
+ } | {
365
+ type: "Log";
366
+ message: string;
367
+ }, import("xstate").EventObject> | undefined;
368
+ }, import("xstate").Values<{
369
+ prepareBuildContext: {
370
+ src: "prepareBuildContext";
371
+ logic: import("xstate").CallbackActorLogic<{
372
+ type: "Build Contexts Prepared";
373
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
374
+ } | {
375
+ type: "Change";
376
+ } | {
377
+ type: "Result";
378
+ contents: [string, string];
379
+ error?: undefined;
380
+ time: Date;
381
+ } | {
382
+ type: "Result";
383
+ contents?: undefined;
384
+ error: {
385
+ errors: {
386
+ text: string;
387
+ location: {
388
+ length: number;
389
+ column: number;
390
+ file: string;
391
+ line: number;
392
+ lineText: string;
393
+ namespace: string;
394
+ suggestion: string;
395
+ };
396
+ }[];
397
+ warnings: {
398
+ text: string;
399
+ location: {
400
+ length: number;
401
+ column: number;
402
+ file: string;
403
+ line: number;
404
+ lineText: string;
405
+ namespace: string;
406
+ suggestion: string;
407
+ };
408
+ }[];
409
+ };
410
+ time: Date;
411
+ } | {
412
+ type: "Log";
413
+ message: string;
414
+ }, {
415
+ write: boolean;
416
+ }>;
417
+ id: string | undefined;
418
+ };
419
+ build: {
420
+ src: "build";
421
+ logic: import("xstate").CallbackActorLogic<{
422
+ type: "Build Contexts Prepared";
423
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
424
+ } | {
425
+ type: "Change";
426
+ } | {
427
+ type: "Result";
428
+ contents: [string, string];
429
+ error?: undefined;
430
+ time: Date;
431
+ } | {
432
+ type: "Result";
433
+ contents?: undefined;
434
+ error: {
435
+ errors: {
436
+ text: string;
437
+ location: {
438
+ length: number;
439
+ column: number;
440
+ file: string;
441
+ line: number;
442
+ lineText: string;
443
+ namespace: string;
444
+ suggestion: string;
445
+ };
446
+ }[];
447
+ warnings: {
448
+ text: string;
449
+ location: {
450
+ length: number;
451
+ column: number;
452
+ file: string;
453
+ line: number;
454
+ lineText: string;
455
+ namespace: string;
456
+ suggestion: string;
457
+ };
458
+ }[];
459
+ };
460
+ time: Date;
461
+ } | {
462
+ type: "Log";
463
+ message: string;
464
+ }, {
465
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
466
+ write: boolean;
467
+ }>;
468
+ id: string | undefined;
469
+ };
470
+ }>, import("xstate").Values<{
471
+ clearError: {
472
+ type: "clearError";
473
+ params: import("xstate").NonReducibleUnknown;
474
+ };
475
+ raiseErrored: {
476
+ type: "raiseErrored";
477
+ params: import("xstate").NonReducibleUnknown;
478
+ };
479
+ raiseSuccess: {
480
+ type: "raiseSuccess";
481
+ params: {
482
+ contents: [string, string];
483
+ time: Date;
484
+ };
485
+ };
486
+ setBuildContexts: {
487
+ type: "setBuildContexts";
488
+ params: {
489
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
490
+ };
491
+ };
492
+ setError: {
493
+ type: "setError";
494
+ params: {
495
+ error: {
496
+ errors: {
497
+ text: string;
498
+ location: {
499
+ length: number;
500
+ column: number;
501
+ file: string;
502
+ line: number;
503
+ lineText: string;
504
+ namespace: string;
505
+ suggestion: string;
506
+ };
507
+ }[];
508
+ warnings: {
509
+ text: string;
510
+ location: {
511
+ length: number;
512
+ column: number;
513
+ file: string;
514
+ line: number;
515
+ lineText: string;
516
+ namespace: string;
517
+ suggestion: string;
518
+ };
519
+ }[];
520
+ };
521
+ };
522
+ };
523
+ setTime: {
524
+ type: "setTime";
525
+ params: {
526
+ time: Date;
527
+ };
528
+ };
529
+ }>, {
530
+ type: "has errors";
531
+ params: {
532
+ error?: {
533
+ errors: {
534
+ text: string;
535
+ location: {
536
+ length: number;
537
+ column: number;
538
+ file: string;
539
+ line: number;
540
+ lineText: string;
541
+ namespace: string;
542
+ suggestion: string;
543
+ };
544
+ }[];
545
+ warnings: {
546
+ text: string;
547
+ location: {
548
+ length: number;
549
+ column: number;
550
+ file: string;
551
+ line: number;
552
+ lineText: string;
553
+ namespace: string;
554
+ suggestion: string;
555
+ };
556
+ }[];
557
+ } | undefined;
558
+ };
559
+ }, never, "Preparing" | {
560
+ Watching?: "Success" | "Building" | "Errored" | undefined;
561
+ }, string, {
562
+ parentRef: import("./build-orchestrator.js").JavaScriptOrchestrator;
563
+ write: boolean;
564
+ }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
565
+ type: "Build Contexts Prepared";
566
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
567
+ } | {
568
+ type: "Change";
569
+ } | {
570
+ type: "Result";
571
+ contents: [string, string];
572
+ error?: undefined;
573
+ time: Date;
574
+ } | {
575
+ type: "Result";
576
+ contents?: undefined;
577
+ error: {
578
+ errors: {
579
+ text: string;
580
+ location: {
581
+ length: number;
582
+ column: number;
583
+ file: string;
584
+ line: number;
585
+ lineText: string;
586
+ namespace: string;
587
+ suggestion: string;
588
+ };
589
+ }[];
590
+ warnings: {
591
+ text: string;
592
+ location: {
593
+ length: number;
594
+ column: number;
595
+ file: string;
596
+ line: number;
597
+ lineText: string;
598
+ namespace: string;
599
+ suggestion: string;
600
+ };
601
+ }[];
602
+ };
603
+ time: Date;
604
+ } | {
605
+ type: "Log";
606
+ message: string;
607
+ }, import("xstate").Values<{
608
+ prepareBuildContext: {
609
+ src: "prepareBuildContext";
610
+ logic: import("xstate").CallbackActorLogic<{
611
+ type: "Build Contexts Prepared";
612
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
613
+ } | {
614
+ type: "Change";
615
+ } | {
616
+ type: "Result";
617
+ contents: [string, string];
618
+ error?: undefined;
619
+ time: Date;
620
+ } | {
621
+ type: "Result";
622
+ contents?: undefined;
623
+ error: {
624
+ errors: {
625
+ text: string;
626
+ location: {
627
+ length: number;
628
+ column: number;
629
+ file: string;
630
+ line: number;
631
+ lineText: string;
632
+ namespace: string;
633
+ suggestion: string;
634
+ };
635
+ }[];
636
+ warnings: {
637
+ text: string;
638
+ location: {
639
+ length: number;
640
+ column: number;
641
+ file: string;
642
+ line: number;
643
+ lineText: string;
644
+ namespace: string;
645
+ suggestion: string;
646
+ };
647
+ }[];
648
+ };
649
+ time: Date;
650
+ } | {
651
+ type: "Log";
652
+ message: string;
653
+ }, {
654
+ write: boolean;
655
+ }>;
656
+ id: string | undefined;
657
+ };
658
+ build: {
659
+ src: "build";
660
+ logic: import("xstate").CallbackActorLogic<{
661
+ type: "Build Contexts Prepared";
662
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
663
+ } | {
664
+ type: "Change";
665
+ } | {
666
+ type: "Result";
667
+ contents: [string, string];
668
+ error?: undefined;
669
+ time: Date;
670
+ } | {
671
+ type: "Result";
672
+ contents?: undefined;
673
+ error: {
674
+ errors: {
675
+ text: string;
676
+ location: {
677
+ length: number;
678
+ column: number;
679
+ file: string;
680
+ line: number;
681
+ lineText: string;
682
+ namespace: string;
683
+ suggestion: string;
684
+ };
685
+ }[];
686
+ warnings: {
687
+ text: string;
688
+ location: {
689
+ length: number;
690
+ column: number;
691
+ file: string;
692
+ line: number;
693
+ lineText: string;
694
+ namespace: string;
695
+ suggestion: string;
696
+ };
697
+ }[];
698
+ };
699
+ time: Date;
700
+ } | {
701
+ type: "Log";
702
+ message: string;
703
+ }, {
704
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
705
+ write: boolean;
706
+ }>;
707
+ id: string | undefined;
708
+ };
709
+ }>, import("xstate").Values<{
710
+ clearError: {
711
+ type: "clearError";
712
+ params: import("xstate").NonReducibleUnknown;
713
+ };
714
+ raiseErrored: {
715
+ type: "raiseErrored";
716
+ params: import("xstate").NonReducibleUnknown;
717
+ };
718
+ raiseSuccess: {
719
+ type: "raiseSuccess";
720
+ params: {
721
+ contents: [string, string];
722
+ time: Date;
723
+ };
724
+ };
725
+ setBuildContexts: {
726
+ type: "setBuildContexts";
727
+ params: {
728
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
729
+ };
730
+ };
731
+ setError: {
732
+ type: "setError";
733
+ params: {
734
+ error: {
735
+ errors: {
736
+ text: string;
737
+ location: {
738
+ length: number;
739
+ column: number;
740
+ file: string;
741
+ line: number;
742
+ lineText: string;
743
+ namespace: string;
744
+ suggestion: string;
745
+ };
746
+ }[];
747
+ warnings: {
748
+ text: string;
749
+ location: {
750
+ length: number;
751
+ column: number;
752
+ file: string;
753
+ line: number;
754
+ lineText: string;
755
+ namespace: string;
756
+ suggestion: string;
757
+ };
758
+ }[];
759
+ };
760
+ };
761
+ };
762
+ setTime: {
763
+ type: "setTime";
764
+ params: {
765
+ time: Date;
766
+ };
767
+ };
768
+ }>, {
769
+ type: "has errors";
770
+ params: {
771
+ error?: {
772
+ errors: {
773
+ text: string;
774
+ location: {
775
+ length: number;
776
+ column: number;
777
+ file: string;
778
+ line: number;
779
+ lineText: string;
780
+ namespace: string;
781
+ suggestion: string;
782
+ };
783
+ }[];
784
+ warnings: {
785
+ text: string;
786
+ location: {
787
+ length: number;
788
+ column: number;
789
+ file: string;
790
+ line: number;
791
+ lineText: string;
792
+ namespace: string;
793
+ suggestion: string;
794
+ };
795
+ }[];
796
+ } | undefined;
797
+ };
798
+ }, never, string, import("xstate").EventObject>>;
799
+ id: "javascript";
800
+ };
801
+ typescript: {
802
+ src: "typescript";
803
+ logic: import("xstate").StateMachine<import("./ts-machine.js").Context, {
804
+ type: "Change";
805
+ } | {
806
+ type: "Result";
807
+ errors?: {
808
+ text: string;
809
+ location?: {
810
+ file: string;
811
+ line: number;
812
+ lineText: string;
813
+ character: number;
814
+ } | undefined;
815
+ }[] | undefined;
816
+ time: Date;
817
+ }, {
818
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
819
+ }, {
820
+ src: "validate";
821
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
822
+ id: string | undefined;
823
+ }, import("xstate").Values<{
824
+ clearError: {
825
+ type: "clearError";
826
+ params: import("xstate").NonReducibleUnknown;
827
+ };
828
+ raiseErrored: {
829
+ type: "raiseErrored";
830
+ params: import("xstate").NonReducibleUnknown;
831
+ };
832
+ raiseSuccess: {
833
+ type: "raiseSuccess";
834
+ params: import("xstate").NonReducibleUnknown;
835
+ };
836
+ setTime: {
837
+ type: "setTime";
838
+ params: {
839
+ time: Date;
840
+ };
841
+ };
842
+ clearTime: {
843
+ type: "clearTime";
844
+ params: import("xstate").NonReducibleUnknown;
845
+ };
846
+ setErrors: {
847
+ type: "setErrors";
848
+ params: {
849
+ errors?: {
850
+ text: string;
851
+ location?: {
852
+ file: string;
853
+ line: number;
854
+ lineText: string;
855
+ character: number;
856
+ } | undefined;
857
+ }[] | undefined;
858
+ };
859
+ };
860
+ }>, {
861
+ type: "has errors";
862
+ params: {
863
+ errors?: {
864
+ text: string;
865
+ location?: {
866
+ file: string;
867
+ line: number;
868
+ lineText: string;
869
+ character: number;
870
+ } | undefined;
871
+ }[] | undefined;
872
+ };
873
+ }, never, "Success" | "Errored" | "Validating", string, {
874
+ parentRef: import("./build-orchestrator.js").TypeScriptOrchestrator;
875
+ }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
876
+ type: "Change";
877
+ } | {
878
+ type: "Result";
879
+ errors?: {
880
+ text: string;
881
+ location?: {
882
+ file: string;
883
+ line: number;
884
+ lineText: string;
885
+ character: number;
886
+ } | undefined;
887
+ }[] | undefined;
888
+ time: Date;
889
+ }, {
890
+ src: "validate";
891
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
892
+ id: string | undefined;
893
+ }, import("xstate").Values<{
894
+ clearError: {
895
+ type: "clearError";
896
+ params: import("xstate").NonReducibleUnknown;
897
+ };
898
+ raiseErrored: {
899
+ type: "raiseErrored";
900
+ params: import("xstate").NonReducibleUnknown;
901
+ };
902
+ raiseSuccess: {
903
+ type: "raiseSuccess";
904
+ params: import("xstate").NonReducibleUnknown;
905
+ };
906
+ setTime: {
907
+ type: "setTime";
908
+ params: {
909
+ time: Date;
910
+ };
911
+ };
912
+ clearTime: {
913
+ type: "clearTime";
914
+ params: import("xstate").NonReducibleUnknown;
915
+ };
916
+ setErrors: {
917
+ type: "setErrors";
918
+ params: {
919
+ errors?: {
920
+ text: string;
921
+ location?: {
922
+ file: string;
923
+ line: number;
924
+ lineText: string;
925
+ character: number;
926
+ } | undefined;
927
+ }[] | undefined;
928
+ };
929
+ };
930
+ }>, {
931
+ type: "has errors";
932
+ params: {
933
+ errors?: {
934
+ text: string;
935
+ location?: {
936
+ file: string;
937
+ line: number;
938
+ lineText: string;
939
+ character: number;
940
+ } | undefined;
941
+ }[] | undefined;
942
+ };
943
+ }, never, string, import("xstate").EventObject>>;
944
+ id: "typescript";
945
+ };
946
+ }>, import("xstate").Values<{
21
947
  setError: {
22
948
  type: "setError";
23
949
  params: {
24
- error: BuildError;
950
+ process: Process;
25
951
  };
26
952
  };
27
- appendToLog: {
28
- type: "appendToLog";
953
+ setSuccess: {
954
+ type: "setSuccess";
29
955
  params: {
30
- message: string;
956
+ process: Process;
31
957
  };
32
958
  };
33
- }>, never, never, "Error" | "Building" | "Done", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
34
- type: "Error";
35
- error: BuildError;
959
+ }>, import("xstate").Values<{
960
+ "all done": {
961
+ type: "all done";
962
+ params: unknown;
963
+ };
964
+ "all success": {
965
+ type: "all success";
966
+ params: unknown;
967
+ };
968
+ }>, never, "Success" | "Errored" | "All Done" | {
969
+ Building?: Required<{
970
+ JavaScript?: "Building" | "Waiting" | undefined;
971
+ TypeScript?: "Validating" | "Waiting" | undefined;
972
+ }> | undefined;
973
+ }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
974
+ type: "JavaScript Error";
36
975
  } | {
37
- type: "Log";
38
- message: string;
976
+ type: "JavaScript Success";
39
977
  } | {
40
- type: "Success";
41
- }, {
42
- src: "build";
43
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
44
- id: string | undefined;
978
+ type: "TypeScript Error";
979
+ } | {
980
+ type: "TypeScript Success";
45
981
  }, import("xstate").Values<{
982
+ javascript: {
983
+ src: "javascript";
984
+ logic: import("xstate").StateMachine<import("./js-machine.js").Context, {
985
+ type: "Build Contexts Prepared";
986
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
987
+ } | {
988
+ type: "Change";
989
+ } | {
990
+ type: "Result";
991
+ contents: [string, string];
992
+ error?: undefined;
993
+ time: Date;
994
+ } | {
995
+ type: "Result";
996
+ contents?: undefined;
997
+ error: {
998
+ errors: {
999
+ text: string;
1000
+ location: {
1001
+ length: number;
1002
+ column: number;
1003
+ file: string;
1004
+ line: number;
1005
+ lineText: string;
1006
+ namespace: string;
1007
+ suggestion: string;
1008
+ };
1009
+ }[];
1010
+ warnings: {
1011
+ text: string;
1012
+ location: {
1013
+ length: number;
1014
+ column: number;
1015
+ file: string;
1016
+ line: number;
1017
+ lineText: string;
1018
+ namespace: string;
1019
+ suggestion: string;
1020
+ };
1021
+ }[];
1022
+ };
1023
+ time: Date;
1024
+ } | {
1025
+ type: "Log";
1026
+ message: string;
1027
+ }, {
1028
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
1029
+ write: boolean;
1030
+ }>, {
1031
+ type: "Build Contexts Prepared";
1032
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1033
+ } | {
1034
+ type: "Change";
1035
+ } | {
1036
+ type: "Result";
1037
+ contents: [string, string];
1038
+ error?: undefined;
1039
+ time: Date;
1040
+ } | {
1041
+ type: "Result";
1042
+ contents?: undefined;
1043
+ error: {
1044
+ errors: {
1045
+ text: string;
1046
+ location: {
1047
+ length: number;
1048
+ column: number;
1049
+ file: string;
1050
+ line: number;
1051
+ lineText: string;
1052
+ namespace: string;
1053
+ suggestion: string;
1054
+ };
1055
+ }[];
1056
+ warnings: {
1057
+ text: string;
1058
+ location: {
1059
+ length: number;
1060
+ column: number;
1061
+ file: string;
1062
+ line: number;
1063
+ lineText: string;
1064
+ namespace: string;
1065
+ suggestion: string;
1066
+ };
1067
+ }[];
1068
+ };
1069
+ time: Date;
1070
+ } | {
1071
+ type: "Log";
1072
+ message: string;
1073
+ }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
1074
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1075
+ write: boolean;
1076
+ }>, {
1077
+ type: "Build Contexts Prepared";
1078
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1079
+ } | {
1080
+ type: "Change";
1081
+ } | {
1082
+ type: "Result";
1083
+ contents: [string, string];
1084
+ error?: undefined;
1085
+ time: Date;
1086
+ } | {
1087
+ type: "Result";
1088
+ contents?: undefined;
1089
+ error: {
1090
+ errors: {
1091
+ text: string;
1092
+ location: {
1093
+ length: number;
1094
+ column: number;
1095
+ file: string;
1096
+ line: number;
1097
+ lineText: string;
1098
+ namespace: string;
1099
+ suggestion: string;
1100
+ };
1101
+ }[];
1102
+ warnings: {
1103
+ text: string;
1104
+ location: {
1105
+ length: number;
1106
+ column: number;
1107
+ file: string;
1108
+ line: number;
1109
+ lineText: string;
1110
+ namespace: string;
1111
+ suggestion: string;
1112
+ };
1113
+ }[];
1114
+ };
1115
+ time: Date;
1116
+ } | {
1117
+ type: "Log";
1118
+ message: string;
1119
+ }, import("xstate").EventObject> | undefined;
1120
+ }, import("xstate").Values<{
1121
+ prepareBuildContext: {
1122
+ src: "prepareBuildContext";
1123
+ logic: import("xstate").CallbackActorLogic<{
1124
+ type: "Build Contexts Prepared";
1125
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1126
+ } | {
1127
+ type: "Change";
1128
+ } | {
1129
+ type: "Result";
1130
+ contents: [string, string];
1131
+ error?: undefined;
1132
+ time: Date;
1133
+ } | {
1134
+ type: "Result";
1135
+ contents?: undefined;
1136
+ error: {
1137
+ errors: {
1138
+ text: string;
1139
+ location: {
1140
+ length: number;
1141
+ column: number;
1142
+ file: string;
1143
+ line: number;
1144
+ lineText: string;
1145
+ namespace: string;
1146
+ suggestion: string;
1147
+ };
1148
+ }[];
1149
+ warnings: {
1150
+ text: string;
1151
+ location: {
1152
+ length: number;
1153
+ column: number;
1154
+ file: string;
1155
+ line: number;
1156
+ lineText: string;
1157
+ namespace: string;
1158
+ suggestion: string;
1159
+ };
1160
+ }[];
1161
+ };
1162
+ time: Date;
1163
+ } | {
1164
+ type: "Log";
1165
+ message: string;
1166
+ }, {
1167
+ write: boolean;
1168
+ }>;
1169
+ id: string | undefined;
1170
+ };
1171
+ build: {
1172
+ src: "build";
1173
+ logic: import("xstate").CallbackActorLogic<{
1174
+ type: "Build Contexts Prepared";
1175
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1176
+ } | {
1177
+ type: "Change";
1178
+ } | {
1179
+ type: "Result";
1180
+ contents: [string, string];
1181
+ error?: undefined;
1182
+ time: Date;
1183
+ } | {
1184
+ type: "Result";
1185
+ contents?: undefined;
1186
+ error: {
1187
+ errors: {
1188
+ text: string;
1189
+ location: {
1190
+ length: number;
1191
+ column: number;
1192
+ file: string;
1193
+ line: number;
1194
+ lineText: string;
1195
+ namespace: string;
1196
+ suggestion: string;
1197
+ };
1198
+ }[];
1199
+ warnings: {
1200
+ text: string;
1201
+ location: {
1202
+ length: number;
1203
+ column: number;
1204
+ file: string;
1205
+ line: number;
1206
+ lineText: string;
1207
+ namespace: string;
1208
+ suggestion: string;
1209
+ };
1210
+ }[];
1211
+ };
1212
+ time: Date;
1213
+ } | {
1214
+ type: "Log";
1215
+ message: string;
1216
+ }, {
1217
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1218
+ write: boolean;
1219
+ }>;
1220
+ id: string | undefined;
1221
+ };
1222
+ }>, import("xstate").Values<{
1223
+ clearError: {
1224
+ type: "clearError";
1225
+ params: import("xstate").NonReducibleUnknown;
1226
+ };
1227
+ raiseErrored: {
1228
+ type: "raiseErrored";
1229
+ params: import("xstate").NonReducibleUnknown;
1230
+ };
1231
+ raiseSuccess: {
1232
+ type: "raiseSuccess";
1233
+ params: {
1234
+ contents: [string, string];
1235
+ time: Date;
1236
+ };
1237
+ };
1238
+ setBuildContexts: {
1239
+ type: "setBuildContexts";
1240
+ params: {
1241
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1242
+ };
1243
+ };
1244
+ setError: {
1245
+ type: "setError";
1246
+ params: {
1247
+ error: {
1248
+ errors: {
1249
+ text: string;
1250
+ location: {
1251
+ length: number;
1252
+ column: number;
1253
+ file: string;
1254
+ line: number;
1255
+ lineText: string;
1256
+ namespace: string;
1257
+ suggestion: string;
1258
+ };
1259
+ }[];
1260
+ warnings: {
1261
+ text: string;
1262
+ location: {
1263
+ length: number;
1264
+ column: number;
1265
+ file: string;
1266
+ line: number;
1267
+ lineText: string;
1268
+ namespace: string;
1269
+ suggestion: string;
1270
+ };
1271
+ }[];
1272
+ };
1273
+ };
1274
+ };
1275
+ setTime: {
1276
+ type: "setTime";
1277
+ params: {
1278
+ time: Date;
1279
+ };
1280
+ };
1281
+ }>, {
1282
+ type: "has errors";
1283
+ params: {
1284
+ error?: {
1285
+ errors: {
1286
+ text: string;
1287
+ location: {
1288
+ length: number;
1289
+ column: number;
1290
+ file: string;
1291
+ line: number;
1292
+ lineText: string;
1293
+ namespace: string;
1294
+ suggestion: string;
1295
+ };
1296
+ }[];
1297
+ warnings: {
1298
+ text: string;
1299
+ location: {
1300
+ length: number;
1301
+ column: number;
1302
+ file: string;
1303
+ line: number;
1304
+ lineText: string;
1305
+ namespace: string;
1306
+ suggestion: string;
1307
+ };
1308
+ }[];
1309
+ } | undefined;
1310
+ };
1311
+ }, never, "Preparing" | {
1312
+ Watching?: "Success" | "Building" | "Errored" | undefined;
1313
+ }, string, {
1314
+ parentRef: import("./build-orchestrator.js").JavaScriptOrchestrator;
1315
+ write: boolean;
1316
+ }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
1317
+ type: "Build Contexts Prepared";
1318
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1319
+ } | {
1320
+ type: "Change";
1321
+ } | {
1322
+ type: "Result";
1323
+ contents: [string, string];
1324
+ error?: undefined;
1325
+ time: Date;
1326
+ } | {
1327
+ type: "Result";
1328
+ contents?: undefined;
1329
+ error: {
1330
+ errors: {
1331
+ text: string;
1332
+ location: {
1333
+ length: number;
1334
+ column: number;
1335
+ file: string;
1336
+ line: number;
1337
+ lineText: string;
1338
+ namespace: string;
1339
+ suggestion: string;
1340
+ };
1341
+ }[];
1342
+ warnings: {
1343
+ text: string;
1344
+ location: {
1345
+ length: number;
1346
+ column: number;
1347
+ file: string;
1348
+ line: number;
1349
+ lineText: string;
1350
+ namespace: string;
1351
+ suggestion: string;
1352
+ };
1353
+ }[];
1354
+ };
1355
+ time: Date;
1356
+ } | {
1357
+ type: "Log";
1358
+ message: string;
1359
+ }, import("xstate").Values<{
1360
+ prepareBuildContext: {
1361
+ src: "prepareBuildContext";
1362
+ logic: import("xstate").CallbackActorLogic<{
1363
+ type: "Build Contexts Prepared";
1364
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1365
+ } | {
1366
+ type: "Change";
1367
+ } | {
1368
+ type: "Result";
1369
+ contents: [string, string];
1370
+ error?: undefined;
1371
+ time: Date;
1372
+ } | {
1373
+ type: "Result";
1374
+ contents?: undefined;
1375
+ error: {
1376
+ errors: {
1377
+ text: string;
1378
+ location: {
1379
+ length: number;
1380
+ column: number;
1381
+ file: string;
1382
+ line: number;
1383
+ lineText: string;
1384
+ namespace: string;
1385
+ suggestion: string;
1386
+ };
1387
+ }[];
1388
+ warnings: {
1389
+ text: string;
1390
+ location: {
1391
+ length: number;
1392
+ column: number;
1393
+ file: string;
1394
+ line: number;
1395
+ lineText: string;
1396
+ namespace: string;
1397
+ suggestion: string;
1398
+ };
1399
+ }[];
1400
+ };
1401
+ time: Date;
1402
+ } | {
1403
+ type: "Log";
1404
+ message: string;
1405
+ }, {
1406
+ write: boolean;
1407
+ }>;
1408
+ id: string | undefined;
1409
+ };
1410
+ build: {
1411
+ src: "build";
1412
+ logic: import("xstate").CallbackActorLogic<{
1413
+ type: "Build Contexts Prepared";
1414
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1415
+ } | {
1416
+ type: "Change";
1417
+ } | {
1418
+ type: "Result";
1419
+ contents: [string, string];
1420
+ error?: undefined;
1421
+ time: Date;
1422
+ } | {
1423
+ type: "Result";
1424
+ contents?: undefined;
1425
+ error: {
1426
+ errors: {
1427
+ text: string;
1428
+ location: {
1429
+ length: number;
1430
+ column: number;
1431
+ file: string;
1432
+ line: number;
1433
+ lineText: string;
1434
+ namespace: string;
1435
+ suggestion: string;
1436
+ };
1437
+ }[];
1438
+ warnings: {
1439
+ text: string;
1440
+ location: {
1441
+ length: number;
1442
+ column: number;
1443
+ file: string;
1444
+ line: number;
1445
+ lineText: string;
1446
+ namespace: string;
1447
+ suggestion: string;
1448
+ };
1449
+ }[];
1450
+ };
1451
+ time: Date;
1452
+ } | {
1453
+ type: "Log";
1454
+ message: string;
1455
+ }, {
1456
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1457
+ write: boolean;
1458
+ }>;
1459
+ id: string | undefined;
1460
+ };
1461
+ }>, import("xstate").Values<{
1462
+ clearError: {
1463
+ type: "clearError";
1464
+ params: import("xstate").NonReducibleUnknown;
1465
+ };
1466
+ raiseErrored: {
1467
+ type: "raiseErrored";
1468
+ params: import("xstate").NonReducibleUnknown;
1469
+ };
1470
+ raiseSuccess: {
1471
+ type: "raiseSuccess";
1472
+ params: {
1473
+ contents: [string, string];
1474
+ time: Date;
1475
+ };
1476
+ };
1477
+ setBuildContexts: {
1478
+ type: "setBuildContexts";
1479
+ params: {
1480
+ buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1481
+ };
1482
+ };
1483
+ setError: {
1484
+ type: "setError";
1485
+ params: {
1486
+ error: {
1487
+ errors: {
1488
+ text: string;
1489
+ location: {
1490
+ length: number;
1491
+ column: number;
1492
+ file: string;
1493
+ line: number;
1494
+ lineText: string;
1495
+ namespace: string;
1496
+ suggestion: string;
1497
+ };
1498
+ }[];
1499
+ warnings: {
1500
+ text: string;
1501
+ location: {
1502
+ length: number;
1503
+ column: number;
1504
+ file: string;
1505
+ line: number;
1506
+ lineText: string;
1507
+ namespace: string;
1508
+ suggestion: string;
1509
+ };
1510
+ }[];
1511
+ };
1512
+ };
1513
+ };
1514
+ setTime: {
1515
+ type: "setTime";
1516
+ params: {
1517
+ time: Date;
1518
+ };
1519
+ };
1520
+ }>, {
1521
+ type: "has errors";
1522
+ params: {
1523
+ error?: {
1524
+ errors: {
1525
+ text: string;
1526
+ location: {
1527
+ length: number;
1528
+ column: number;
1529
+ file: string;
1530
+ line: number;
1531
+ lineText: string;
1532
+ namespace: string;
1533
+ suggestion: string;
1534
+ };
1535
+ }[];
1536
+ warnings: {
1537
+ text: string;
1538
+ location: {
1539
+ length: number;
1540
+ column: number;
1541
+ file: string;
1542
+ line: number;
1543
+ lineText: string;
1544
+ namespace: string;
1545
+ suggestion: string;
1546
+ };
1547
+ }[];
1548
+ } | undefined;
1549
+ };
1550
+ }, never, string, import("xstate").EventObject>>;
1551
+ id: "javascript";
1552
+ };
1553
+ typescript: {
1554
+ src: "typescript";
1555
+ logic: import("xstate").StateMachine<import("./ts-machine.js").Context, {
1556
+ type: "Change";
1557
+ } | {
1558
+ type: "Result";
1559
+ errors?: {
1560
+ text: string;
1561
+ location?: {
1562
+ file: string;
1563
+ line: number;
1564
+ lineText: string;
1565
+ character: number;
1566
+ } | undefined;
1567
+ }[] | undefined;
1568
+ time: Date;
1569
+ }, {
1570
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
1571
+ }, {
1572
+ src: "validate";
1573
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1574
+ id: string | undefined;
1575
+ }, import("xstate").Values<{
1576
+ clearError: {
1577
+ type: "clearError";
1578
+ params: import("xstate").NonReducibleUnknown;
1579
+ };
1580
+ raiseErrored: {
1581
+ type: "raiseErrored";
1582
+ params: import("xstate").NonReducibleUnknown;
1583
+ };
1584
+ raiseSuccess: {
1585
+ type: "raiseSuccess";
1586
+ params: import("xstate").NonReducibleUnknown;
1587
+ };
1588
+ setTime: {
1589
+ type: "setTime";
1590
+ params: {
1591
+ time: Date;
1592
+ };
1593
+ };
1594
+ clearTime: {
1595
+ type: "clearTime";
1596
+ params: import("xstate").NonReducibleUnknown;
1597
+ };
1598
+ setErrors: {
1599
+ type: "setErrors";
1600
+ params: {
1601
+ errors?: {
1602
+ text: string;
1603
+ location?: {
1604
+ file: string;
1605
+ line: number;
1606
+ lineText: string;
1607
+ character: number;
1608
+ } | undefined;
1609
+ }[] | undefined;
1610
+ };
1611
+ };
1612
+ }>, {
1613
+ type: "has errors";
1614
+ params: {
1615
+ errors?: {
1616
+ text: string;
1617
+ location?: {
1618
+ file: string;
1619
+ line: number;
1620
+ lineText: string;
1621
+ character: number;
1622
+ } | undefined;
1623
+ }[] | undefined;
1624
+ };
1625
+ }, never, "Success" | "Errored" | "Validating", string, {
1626
+ parentRef: import("./build-orchestrator.js").TypeScriptOrchestrator;
1627
+ }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
1628
+ type: "Change";
1629
+ } | {
1630
+ type: "Result";
1631
+ errors?: {
1632
+ text: string;
1633
+ location?: {
1634
+ file: string;
1635
+ line: number;
1636
+ lineText: string;
1637
+ character: number;
1638
+ } | undefined;
1639
+ }[] | undefined;
1640
+ time: Date;
1641
+ }, {
1642
+ src: "validate";
1643
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1644
+ id: string | undefined;
1645
+ }, import("xstate").Values<{
1646
+ clearError: {
1647
+ type: "clearError";
1648
+ params: import("xstate").NonReducibleUnknown;
1649
+ };
1650
+ raiseErrored: {
1651
+ type: "raiseErrored";
1652
+ params: import("xstate").NonReducibleUnknown;
1653
+ };
1654
+ raiseSuccess: {
1655
+ type: "raiseSuccess";
1656
+ params: import("xstate").NonReducibleUnknown;
1657
+ };
1658
+ setTime: {
1659
+ type: "setTime";
1660
+ params: {
1661
+ time: Date;
1662
+ };
1663
+ };
1664
+ clearTime: {
1665
+ type: "clearTime";
1666
+ params: import("xstate").NonReducibleUnknown;
1667
+ };
1668
+ setErrors: {
1669
+ type: "setErrors";
1670
+ params: {
1671
+ errors?: {
1672
+ text: string;
1673
+ location?: {
1674
+ file: string;
1675
+ line: number;
1676
+ lineText: string;
1677
+ character: number;
1678
+ } | undefined;
1679
+ }[] | undefined;
1680
+ };
1681
+ };
1682
+ }>, {
1683
+ type: "has errors";
1684
+ params: {
1685
+ errors?: {
1686
+ text: string;
1687
+ location?: {
1688
+ file: string;
1689
+ line: number;
1690
+ lineText: string;
1691
+ character: number;
1692
+ } | undefined;
1693
+ }[] | undefined;
1694
+ };
1695
+ }, never, string, import("xstate").EventObject>>;
1696
+ id: "typescript";
1697
+ };
1698
+ }>, import("xstate").Values<{
46
1699
  setError: {
47
1700
  type: "setError";
48
1701
  params: {
49
- error: BuildError;
1702
+ process: Process;
50
1703
  };
51
1704
  };
52
- appendToLog: {
53
- type: "appendToLog";
1705
+ setSuccess: {
1706
+ type: "setSuccess";
54
1707
  params: {
55
- message: string;
1708
+ process: Process;
56
1709
  };
57
1710
  };
58
- }>, never, never, string, import("xstate").EventObject>>;
1711
+ }>, import("xstate").Values<{
1712
+ "all done": {
1713
+ type: "all done";
1714
+ params: unknown;
1715
+ };
1716
+ "all success": {
1717
+ type: "all success";
1718
+ params: unknown;
1719
+ };
1720
+ }>, never, string, import("xstate").EventObject>>;
59
1721
  export {};
60
1722
  //# sourceMappingURL=build-machine.d.ts.map