@treeseed/sdk 0.10.23 → 0.10.25

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 (49) hide show
  1. package/dist/index.d.ts +12 -2
  2. package/dist/index.js +42 -1
  3. package/dist/market-client.d.ts +23 -0
  4. package/dist/market-client.js +30 -0
  5. package/dist/operations/providers/default.js +103 -10
  6. package/dist/operations/repository-operations.d.ts +6 -1
  7. package/dist/operations/repository-operations.js +44 -0
  8. package/dist/operations/services/bootstrap-runner.d.ts +5 -1
  9. package/dist/operations/services/bootstrap-runner.js +34 -5
  10. package/dist/operations/services/config-runtime.d.ts +25 -9
  11. package/dist/operations/services/config-runtime.js +60 -12
  12. package/dist/operations/services/deploy.js +6 -1
  13. package/dist/operations/services/hub-launch.js +1 -0
  14. package/dist/operations/services/hub-provider-launch.d.ts +11 -1
  15. package/dist/operations/services/hub-provider-launch.js +81 -8
  16. package/dist/operations/services/project-host-operations.d.ts +153 -0
  17. package/dist/operations/services/project-host-operations.js +365 -0
  18. package/dist/operations/services/project-platform.d.ts +207 -177
  19. package/dist/operations/services/project-platform.js +96 -29
  20. package/dist/operations/services/railway-deploy.d.ts +33 -1
  21. package/dist/operations/services/railway-deploy.js +153 -44
  22. package/dist/operations/services/release-candidate.js +8 -2
  23. package/dist/operations/services/template-host-bindings.d.ts +68 -0
  24. package/dist/operations/services/template-host-bindings.js +400 -0
  25. package/dist/operations/services/template-registry.d.ts +22 -2
  26. package/dist/operations/services/template-registry.js +93 -6
  27. package/dist/operations/services/template-secret-sync.d.ts +97 -0
  28. package/dist/operations/services/template-secret-sync.js +292 -0
  29. package/dist/platform/contracts.d.ts +1 -0
  30. package/dist/platform/deploy-config.js +8 -1
  31. package/dist/platform/deploy-runtime.js +1 -0
  32. package/dist/platform/environment.d.ts +3 -0
  33. package/dist/project-workflow.d.ts +7 -1
  34. package/dist/reconcile/engine.d.ts +2 -0
  35. package/dist/reconcile/engine.js +58 -3
  36. package/dist/scripts/scaffold-site.js +3 -2
  37. package/dist/scripts/test-scaffold.js +2 -1
  38. package/dist/sdk-types.d.ts +87 -0
  39. package/dist/sdk-types.js +29 -0
  40. package/dist/template-catalog.js +3 -1
  41. package/dist/template-launch-requirements.d.ts +118 -0
  42. package/dist/template-launch-requirements.js +759 -0
  43. package/dist/template-launch-ui.d.ts +85 -0
  44. package/dist/template-launch-ui.js +189 -0
  45. package/dist/timing.d.ts +20 -0
  46. package/dist/timing.js +73 -0
  47. package/dist/treeseed/template-catalog/catalog.fixture.json +477 -0
  48. package/package.json +13 -1
  49. package/templates/github/deploy-web.workflow.yml +4 -0
@@ -1,3 +1,4 @@
1
+ import { type TreeseedTimingEntry } from '../../timing.ts';
1
2
  import { type ControlPlaneReporter } from '../../control-plane.ts';
2
3
  import type { TreeseedRunnableBootstrapSystem } from '../../reconcile/index.ts';
3
4
  import { type TreeseedBootstrapExecution, type TreeseedBootstrapWriter } from './bootstrap-runner.ts';
@@ -59,6 +60,7 @@ export declare function provisionProjectPlatform(options: ProjectPlatformActionO
59
60
  plans: import("../../reconcile/contracts.ts").TreeseedReconcilePlan[];
60
61
  results: import("../../reconcile/contracts.ts").TreeseedReconcileResult[];
61
62
  state: import("../../reconcile/contracts.ts").TreeseedReconcileStateRecord;
63
+ timings: TreeseedTimingEntry[];
62
64
  };
63
65
  verification: {
64
66
  target: import("../../reconcile/contracts.ts").TreeseedReconcileTarget;
@@ -76,6 +78,7 @@ export declare function provisionProjectPlatform(options: ProjectPlatformActionO
76
78
  verification: import("../../reconcile/contracts.ts").TreeseedUnitVerificationResult | null;
77
79
  }[];
78
80
  };
81
+ timings: TreeseedTimingEntry[];
79
82
  railway: {
80
83
  services: any[];
81
84
  schedules: any[];
@@ -94,50 +97,6 @@ export declare function deployProjectPlatform(options: ProjectPlatformActionOpti
94
97
  ok: true;
95
98
  target: any;
96
99
  checks: {
97
- r2: {
98
- ok: boolean;
99
- skipped: boolean;
100
- reason: string;
101
- objectKey?: undefined;
102
- } | {
103
- ok: boolean;
104
- objectKey: string;
105
- skipped?: undefined;
106
- reason?: undefined;
107
- };
108
- queue: {
109
- ok: boolean;
110
- skipped: boolean;
111
- reason: string;
112
- messageId?: undefined;
113
- detail?: undefined;
114
- attempts?: undefined;
115
- } | {
116
- ok: boolean;
117
- skipped: boolean;
118
- reason: string;
119
- messageId: string;
120
- detail: string;
121
- attempts?: undefined;
122
- } | {
123
- ok: boolean;
124
- reason: string;
125
- skipped?: undefined;
126
- messageId?: undefined;
127
- detail?: undefined;
128
- attempts?: undefined;
129
- } | {
130
- ok: boolean;
131
- messageId: string;
132
- attempts: number;
133
- skipped?: undefined;
134
- reason?: undefined;
135
- detail?: undefined;
136
- } | {
137
- ok: boolean;
138
- skipped: boolean;
139
- reason: string;
140
- };
141
100
  pages: {
142
101
  ok: boolean;
143
102
  status: number | null;
@@ -189,6 +148,54 @@ export declare function deployProjectPlatform(options: ProjectPlatformActionOpti
189
148
  skipped: boolean;
190
149
  reason: string;
191
150
  };
151
+ r2: {
152
+ ok: boolean;
153
+ skipped: boolean;
154
+ reason: string;
155
+ objectKey?: undefined;
156
+ } | {
157
+ ok: boolean;
158
+ objectKey: string;
159
+ skipped?: undefined;
160
+ reason?: undefined;
161
+ } | {
162
+ ok: boolean;
163
+ skipped: boolean;
164
+ reason: string;
165
+ };
166
+ queue: {
167
+ ok: boolean;
168
+ skipped: boolean;
169
+ reason: string;
170
+ messageId?: undefined;
171
+ detail?: undefined;
172
+ attempts?: undefined;
173
+ } | {
174
+ ok: boolean;
175
+ skipped: boolean;
176
+ reason: string;
177
+ messageId: string;
178
+ detail: string;
179
+ attempts?: undefined;
180
+ } | {
181
+ ok: boolean;
182
+ reason: string;
183
+ skipped?: undefined;
184
+ messageId?: undefined;
185
+ detail?: undefined;
186
+ attempts?: undefined;
187
+ } | {
188
+ ok: boolean;
189
+ messageId: string;
190
+ attempts: number;
191
+ skipped?: undefined;
192
+ reason?: undefined;
193
+ detail?: undefined;
194
+ } | {
195
+ ok: boolean;
196
+ skipped: boolean;
197
+ reason: string;
198
+ };
192
199
  scaleProbe: {
193
200
  ok: boolean;
194
201
  mocked: boolean;
@@ -241,6 +248,7 @@ export declare function deployProjectPlatform(options: ProjectPlatformActionOpti
241
248
  };
242
249
  };
243
250
  };
251
+ timings: TreeseedTimingEntry[];
244
252
  };
245
253
  hostingRepair: {
246
254
  ok: boolean;
@@ -264,6 +272,7 @@ export declare function deployProjectPlatform(options: ProjectPlatformActionOpti
264
272
  command: string;
265
273
  cwd: any;
266
274
  publicBaseUrl: any;
275
+ timings: TreeseedTimingEntry[];
267
276
  runtimeConfiguration?: undefined;
268
277
  } | {
269
278
  service: any;
@@ -271,6 +280,7 @@ export declare function deployProjectPlatform(options: ProjectPlatformActionOpti
271
280
  command: string;
272
281
  cwd: any;
273
282
  publicBaseUrl: any;
283
+ timings: TreeseedTimingEntry[];
274
284
  runtimeConfiguration: {
275
285
  updated: boolean;
276
286
  healthcheckPath: string | null;
@@ -285,10 +295,12 @@ export declare function deployProjectPlatform(options: ProjectPlatformActionOpti
285
295
  } | null;
286
296
  } | null;
287
297
  } | undefined)[];
298
+ timings: TreeseedTimingEntry[];
288
299
  }>;
289
- export declare function resolveRailwayServiceDeployDependencies({ includeDataDependency, previousRailwayDeployNodeId, }: {
300
+ export declare function resolveRailwayServiceDeployDependencies({ includeDataDependency, previousRailwayDeployNodeId, sequentialRailwayDeploys, }: {
290
301
  includeDataDependency: boolean;
291
302
  previousRailwayDeployNodeId?: string | null;
303
+ sequentialRailwayDeploys?: boolean;
292
304
  }): string[];
293
305
  export declare function publishProjectContent(options: ProjectPlatformActionOptions): Promise<{
294
306
  ok: boolean;
@@ -303,50 +315,6 @@ export declare function monitorProjectPlatform(options: ProjectPlatformActionOpt
303
315
  ok: true;
304
316
  target: any;
305
317
  checks: {
306
- r2: {
307
- ok: boolean;
308
- skipped: boolean;
309
- reason: string;
310
- objectKey?: undefined;
311
- } | {
312
- ok: boolean;
313
- objectKey: string;
314
- skipped?: undefined;
315
- reason?: undefined;
316
- };
317
- queue: {
318
- ok: boolean;
319
- skipped: boolean;
320
- reason: string;
321
- messageId?: undefined;
322
- detail?: undefined;
323
- attempts?: undefined;
324
- } | {
325
- ok: boolean;
326
- skipped: boolean;
327
- reason: string;
328
- messageId: string;
329
- detail: string;
330
- attempts?: undefined;
331
- } | {
332
- ok: boolean;
333
- reason: string;
334
- skipped?: undefined;
335
- messageId?: undefined;
336
- detail?: undefined;
337
- attempts?: undefined;
338
- } | {
339
- ok: boolean;
340
- messageId: string;
341
- attempts: number;
342
- skipped?: undefined;
343
- reason?: undefined;
344
- detail?: undefined;
345
- } | {
346
- ok: boolean;
347
- skipped: boolean;
348
- reason: string;
349
- };
350
318
  pages: {
351
319
  ok: boolean;
352
320
  status: number | null;
@@ -398,6 +366,54 @@ export declare function monitorProjectPlatform(options: ProjectPlatformActionOpt
398
366
  skipped: boolean;
399
367
  reason: string;
400
368
  };
369
+ r2: {
370
+ ok: boolean;
371
+ skipped: boolean;
372
+ reason: string;
373
+ objectKey?: undefined;
374
+ } | {
375
+ ok: boolean;
376
+ objectKey: string;
377
+ skipped?: undefined;
378
+ reason?: undefined;
379
+ } | {
380
+ ok: boolean;
381
+ skipped: boolean;
382
+ reason: string;
383
+ };
384
+ queue: {
385
+ ok: boolean;
386
+ skipped: boolean;
387
+ reason: string;
388
+ messageId?: undefined;
389
+ detail?: undefined;
390
+ attempts?: undefined;
391
+ } | {
392
+ ok: boolean;
393
+ skipped: boolean;
394
+ reason: string;
395
+ messageId: string;
396
+ detail: string;
397
+ attempts?: undefined;
398
+ } | {
399
+ ok: boolean;
400
+ reason: string;
401
+ skipped?: undefined;
402
+ messageId?: undefined;
403
+ detail?: undefined;
404
+ attempts?: undefined;
405
+ } | {
406
+ ok: boolean;
407
+ messageId: string;
408
+ attempts: number;
409
+ skipped?: undefined;
410
+ reason?: undefined;
411
+ detail?: undefined;
412
+ } | {
413
+ ok: boolean;
414
+ skipped: boolean;
415
+ reason: string;
416
+ };
401
417
  scaleProbe: {
402
418
  ok: boolean;
403
419
  mocked: boolean;
@@ -450,6 +466,7 @@ export declare function monitorProjectPlatform(options: ProjectPlatformActionOpt
450
466
  };
451
467
  };
452
468
  };
469
+ timings: TreeseedTimingEntry[];
453
470
  }>;
454
471
  export declare function syncControlPlaneState(options: ProjectPlatformActionOptions): Promise<void>;
455
472
  export declare function runProjectPlatformAction(action: ProjectPlatformAction, options: ProjectPlatformActionOptions): Promise<{
@@ -464,50 +481,6 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
464
481
  ok: true;
465
482
  target: any;
466
483
  checks: {
467
- r2: {
468
- ok: boolean;
469
- skipped: boolean;
470
- reason: string;
471
- objectKey?: undefined;
472
- } | {
473
- ok: boolean;
474
- objectKey: string;
475
- skipped?: undefined;
476
- reason?: undefined;
477
- };
478
- queue: {
479
- ok: boolean;
480
- skipped: boolean;
481
- reason: string;
482
- messageId?: undefined;
483
- detail?: undefined;
484
- attempts?: undefined;
485
- } | {
486
- ok: boolean;
487
- skipped: boolean;
488
- reason: string;
489
- messageId: string;
490
- detail: string;
491
- attempts?: undefined;
492
- } | {
493
- ok: boolean;
494
- reason: string;
495
- skipped?: undefined;
496
- messageId?: undefined;
497
- detail?: undefined;
498
- attempts?: undefined;
499
- } | {
500
- ok: boolean;
501
- messageId: string;
502
- attempts: number;
503
- skipped?: undefined;
504
- reason?: undefined;
505
- detail?: undefined;
506
- } | {
507
- ok: boolean;
508
- skipped: boolean;
509
- reason: string;
510
- };
511
484
  pages: {
512
485
  ok: boolean;
513
486
  status: number | null;
@@ -559,6 +532,54 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
559
532
  skipped: boolean;
560
533
  reason: string;
561
534
  };
535
+ r2: {
536
+ ok: boolean;
537
+ skipped: boolean;
538
+ reason: string;
539
+ objectKey?: undefined;
540
+ } | {
541
+ ok: boolean;
542
+ objectKey: string;
543
+ skipped?: undefined;
544
+ reason?: undefined;
545
+ } | {
546
+ ok: boolean;
547
+ skipped: boolean;
548
+ reason: string;
549
+ };
550
+ queue: {
551
+ ok: boolean;
552
+ skipped: boolean;
553
+ reason: string;
554
+ messageId?: undefined;
555
+ detail?: undefined;
556
+ attempts?: undefined;
557
+ } | {
558
+ ok: boolean;
559
+ skipped: boolean;
560
+ reason: string;
561
+ messageId: string;
562
+ detail: string;
563
+ attempts?: undefined;
564
+ } | {
565
+ ok: boolean;
566
+ reason: string;
567
+ skipped?: undefined;
568
+ messageId?: undefined;
569
+ detail?: undefined;
570
+ attempts?: undefined;
571
+ } | {
572
+ ok: boolean;
573
+ messageId: string;
574
+ attempts: number;
575
+ skipped?: undefined;
576
+ reason?: undefined;
577
+ detail?: undefined;
578
+ } | {
579
+ ok: boolean;
580
+ skipped: boolean;
581
+ reason: string;
582
+ };
562
583
  scaleProbe: {
563
584
  ok: boolean;
564
585
  mocked: boolean;
@@ -611,6 +632,7 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
611
632
  };
612
633
  };
613
634
  };
635
+ timings: TreeseedTimingEntry[];
614
636
  } | {
615
637
  ok: boolean;
616
638
  scope: ProjectPlatformScope;
@@ -618,50 +640,6 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
618
640
  ok: true;
619
641
  target: any;
620
642
  checks: {
621
- r2: {
622
- ok: boolean;
623
- skipped: boolean;
624
- reason: string;
625
- objectKey?: undefined;
626
- } | {
627
- ok: boolean;
628
- objectKey: string;
629
- skipped?: undefined;
630
- reason?: undefined;
631
- };
632
- queue: {
633
- ok: boolean;
634
- skipped: boolean;
635
- reason: string;
636
- messageId?: undefined;
637
- detail?: undefined;
638
- attempts?: undefined;
639
- } | {
640
- ok: boolean;
641
- skipped: boolean;
642
- reason: string;
643
- messageId: string;
644
- detail: string;
645
- attempts?: undefined;
646
- } | {
647
- ok: boolean;
648
- reason: string;
649
- skipped?: undefined;
650
- messageId?: undefined;
651
- detail?: undefined;
652
- attempts?: undefined;
653
- } | {
654
- ok: boolean;
655
- messageId: string;
656
- attempts: number;
657
- skipped?: undefined;
658
- reason?: undefined;
659
- detail?: undefined;
660
- } | {
661
- ok: boolean;
662
- skipped: boolean;
663
- reason: string;
664
- };
665
643
  pages: {
666
644
  ok: boolean;
667
645
  status: number | null;
@@ -713,6 +691,54 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
713
691
  skipped: boolean;
714
692
  reason: string;
715
693
  };
694
+ r2: {
695
+ ok: boolean;
696
+ skipped: boolean;
697
+ reason: string;
698
+ objectKey?: undefined;
699
+ } | {
700
+ ok: boolean;
701
+ objectKey: string;
702
+ skipped?: undefined;
703
+ reason?: undefined;
704
+ } | {
705
+ ok: boolean;
706
+ skipped: boolean;
707
+ reason: string;
708
+ };
709
+ queue: {
710
+ ok: boolean;
711
+ skipped: boolean;
712
+ reason: string;
713
+ messageId?: undefined;
714
+ detail?: undefined;
715
+ attempts?: undefined;
716
+ } | {
717
+ ok: boolean;
718
+ skipped: boolean;
719
+ reason: string;
720
+ messageId: string;
721
+ detail: string;
722
+ attempts?: undefined;
723
+ } | {
724
+ ok: boolean;
725
+ reason: string;
726
+ skipped?: undefined;
727
+ messageId?: undefined;
728
+ detail?: undefined;
729
+ attempts?: undefined;
730
+ } | {
731
+ ok: boolean;
732
+ messageId: string;
733
+ attempts: number;
734
+ skipped?: undefined;
735
+ reason?: undefined;
736
+ detail?: undefined;
737
+ } | {
738
+ ok: boolean;
739
+ skipped: boolean;
740
+ reason: string;
741
+ };
716
742
  scaleProbe: {
717
743
  ok: boolean;
718
744
  mocked: boolean;
@@ -765,6 +791,7 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
765
791
  };
766
792
  };
767
793
  };
794
+ timings: TreeseedTimingEntry[];
768
795
  };
769
796
  hostingRepair: {
770
797
  ok: boolean;
@@ -788,6 +815,7 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
788
815
  command: string;
789
816
  cwd: any;
790
817
  publicBaseUrl: any;
818
+ timings: TreeseedTimingEntry[];
791
819
  runtimeConfiguration?: undefined;
792
820
  } | {
793
821
  service: any;
@@ -795,6 +823,7 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
795
823
  command: string;
796
824
  cwd: any;
797
825
  publicBaseUrl: any;
826
+ timings: TreeseedTimingEntry[];
798
827
  runtimeConfiguration: {
799
828
  updated: boolean;
800
829
  healthcheckPath: string | null;
@@ -809,5 +838,6 @@ export declare function runProjectPlatformAction(action: ProjectPlatformAction,
809
838
  } | null;
810
839
  } | null;
811
840
  } | undefined)[];
841
+ timings: TreeseedTimingEntry[];
812
842
  }>;
813
843
  export {};