everything-dev 1.51.7 → 1.53.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 (101) hide show
  1. package/dist/api-contract.cjs +66 -16
  2. package/dist/api-contract.cjs.map +1 -1
  3. package/dist/api-contract.mjs +65 -17
  4. package/dist/api-contract.mjs.map +1 -1
  5. package/dist/app.cjs +1 -1
  6. package/dist/app.cjs.map +1 -1
  7. package/dist/app.mjs +1 -1
  8. package/dist/app.mjs.map +1 -1
  9. package/dist/cli/infra.cjs +0 -67
  10. package/dist/cli/infra.cjs.map +1 -1
  11. package/dist/cli/infra.mjs +1 -65
  12. package/dist/cli/infra.mjs.map +1 -1
  13. package/dist/cli/init.cjs +76 -52
  14. package/dist/cli/init.cjs.map +1 -1
  15. package/dist/cli/init.d.cts +15 -7
  16. package/dist/cli/init.d.cts.map +1 -1
  17. package/dist/cli/init.d.mts +15 -7
  18. package/dist/cli/init.d.mts.map +1 -1
  19. package/dist/cli/init.mjs +70 -47
  20. package/dist/cli/init.mjs.map +1 -1
  21. package/dist/cli/sync.cjs +34 -5
  22. package/dist/cli/sync.cjs.map +1 -1
  23. package/dist/cli/sync.mjs +35 -6
  24. package/dist/cli/sync.mjs.map +1 -1
  25. package/dist/cli/upgrade.cjs +151 -93
  26. package/dist/cli/upgrade.cjs.map +1 -1
  27. package/dist/cli/upgrade.mjs +138 -80
  28. package/dist/cli/upgrade.mjs.map +1 -1
  29. package/dist/cli/utils/helpers.cjs +25 -0
  30. package/dist/cli/utils/helpers.cjs.map +1 -0
  31. package/dist/cli/utils/helpers.mjs +23 -0
  32. package/dist/cli/utils/helpers.mjs.map +1 -0
  33. package/dist/cli.cjs +84 -72
  34. package/dist/cli.cjs.map +1 -1
  35. package/dist/cli.mjs +84 -72
  36. package/dist/cli.mjs.map +1 -1
  37. package/dist/code-artifacts.cjs +1 -1
  38. package/dist/code-artifacts.mjs +1 -1
  39. package/dist/config.cjs +47 -5
  40. package/dist/config.cjs.map +1 -1
  41. package/dist/config.d.cts +1 -1
  42. package/dist/config.d.cts.map +1 -1
  43. package/dist/config.d.mts +1 -1
  44. package/dist/config.d.mts.map +1 -1
  45. package/dist/config.mjs +47 -5
  46. package/dist/config.mjs.map +1 -1
  47. package/dist/contract.cjs +9 -4
  48. package/dist/contract.cjs.map +1 -1
  49. package/dist/contract.d.cts +42 -24
  50. package/dist/contract.d.cts.map +1 -1
  51. package/dist/contract.d.mts +42 -24
  52. package/dist/contract.d.mts.map +1 -1
  53. package/dist/contract.meta.cjs +2 -1
  54. package/dist/contract.meta.cjs.map +1 -1
  55. package/dist/contract.meta.d.cts +3 -0
  56. package/dist/contract.meta.d.mts +3 -0
  57. package/dist/contract.meta.mjs +2 -1
  58. package/dist/contract.meta.mjs.map +1 -1
  59. package/dist/contract.mjs +9 -4
  60. package/dist/contract.mjs.map +1 -1
  61. package/dist/dag.cjs +177 -0
  62. package/dist/dag.cjs.map +1 -0
  63. package/dist/dag.d.cts +24 -0
  64. package/dist/dag.d.cts.map +1 -0
  65. package/dist/dag.d.mts +24 -0
  66. package/dist/dag.d.mts.map +1 -0
  67. package/dist/dag.mjs +168 -0
  68. package/dist/dag.mjs.map +1 -0
  69. package/dist/index.cjs +2 -0
  70. package/dist/index.d.cts +2 -2
  71. package/dist/index.d.mts +2 -2
  72. package/dist/index.mjs +2 -2
  73. package/dist/infra/planner.cjs +1 -1
  74. package/dist/infra/planner.mjs +1 -1
  75. package/dist/merge.cjs +1 -1
  76. package/dist/merge.cjs.map +1 -1
  77. package/dist/merge.mjs +1 -1
  78. package/dist/merge.mjs.map +1 -1
  79. package/dist/near-cli.cjs +1 -1
  80. package/dist/near-cli.mjs +1 -1
  81. package/dist/orchestrator.cjs +1 -1
  82. package/dist/orchestrator.cjs.map +1 -1
  83. package/dist/orchestrator.mjs +1 -1
  84. package/dist/orchestrator.mjs.map +1 -1
  85. package/dist/plugin.cjs +28 -30
  86. package/dist/plugin.cjs.map +1 -1
  87. package/dist/plugin.d.cts +67 -11
  88. package/dist/plugin.d.cts.map +1 -1
  89. package/dist/plugin.d.mts +67 -11
  90. package/dist/plugin.d.mts.map +1 -1
  91. package/dist/plugin.mjs +30 -32
  92. package/dist/plugin.mjs.map +1 -1
  93. package/dist/types.cjs +52 -9
  94. package/dist/types.cjs.map +1 -1
  95. package/dist/types.d.cts +131 -3
  96. package/dist/types.d.cts.map +1 -1
  97. package/dist/types.d.mts +131 -3
  98. package/dist/types.d.mts.map +1 -1
  99. package/dist/types.mjs +51 -10
  100. package/dist/types.mjs.map +1 -1
  101. package/package.json +8 -3
package/dist/plugin.d.cts CHANGED
@@ -61,8 +61,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
61
61
  interactive: z.ZodOptional<z.ZodBoolean>;
62
62
  }, z.core.$strip>, z.ZodObject<{
63
63
  status: z.ZodEnum<{
64
- started: "started";
65
64
  error: "error";
65
+ started: "started";
66
66
  }>;
67
67
  description: z.ZodString;
68
68
  processes: z.ZodArray<z.ZodString>;
@@ -146,9 +146,11 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
146
146
  strictVersion: z.ZodOptional<z.ZodBoolean>;
147
147
  shareScope: z.ZodOptional<z.ZodString>;
148
148
  }, z.core.$strip>>>;
149
+ connectSrc: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
150
  version: z.ZodOptional<z.ZodString>;
150
151
  app: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
151
152
  plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
153
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
154
  }, z.core.$strip>]>>>;
153
155
  app: z.ZodObject<{
154
156
  host: z.ZodObject<{
@@ -187,6 +189,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
187
189
  strictVersion: z.ZodOptional<z.ZodBoolean>;
188
190
  shareScope: z.ZodOptional<z.ZodString>;
189
191
  }, z.core.$strip>>>;
192
+ connectSrc: z.ZodOptional<z.ZodArray<z.ZodString>>;
193
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
194
  }, z.core.$strip>;
191
195
  auth: z.ZodOptional<z.ZodObject<{
192
196
  extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -210,6 +214,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
210
214
  strictVersion: z.ZodOptional<z.ZodBoolean>;
211
215
  shareScope: z.ZodOptional<z.ZodString>;
212
216
  }, z.core.$strip>>>;
217
+ connectSrc: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
218
  }, z.core.$strip>>;
214
219
  }, z.core.$strip>;
215
220
  }, z.core.$strip>]>>;
@@ -387,10 +392,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
387
392
  source: z.ZodOptional<z.ZodString>;
388
393
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
389
394
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
390
- host: "host";
395
+ plugins: "plugins";
391
396
  ui: "ui";
392
397
  api: "api";
393
- plugins: "plugins";
398
+ host: "host";
394
399
  }>>>;
395
400
  noInteractive: z.ZodDefault<z.ZodBoolean>;
396
401
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -406,10 +411,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
406
411
  extends: z.ZodString;
407
412
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
413
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
409
- host: "host";
414
+ plugins: "plugins";
410
415
  ui: "ui";
411
416
  api: "api";
412
- plugins: "plugins";
417
+ host: "host";
413
418
  }>>>;
414
419
  filesCopied: z.ZodNumber;
415
420
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -422,6 +427,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
422
427
  sync: import("@orpc/contract").ContractProcedure<z.ZodObject<{
423
428
  dryRun: z.ZodDefault<z.ZodBoolean>;
424
429
  noInstall: z.ZodDefault<z.ZodBoolean>;
430
+ json: z.ZodDefault<z.ZodBoolean>;
425
431
  }, z.core.$strip>, z.ZodObject<{
426
432
  status: z.ZodEnum<{
427
433
  error: "error";
@@ -431,12 +437,16 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
431
437
  updated: z.ZodArray<z.ZodString>;
432
438
  skipped: z.ZodArray<z.ZodString>;
433
439
  added: z.ZodArray<z.ZodString>;
440
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
441
+ backupDir: z.ZodOptional<z.ZodString>;
434
442
  error: z.ZodOptional<z.ZodString>;
435
443
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
436
444
  upgrade: import("@orpc/contract").ContractProcedure<z.ZodObject<{
437
445
  dryRun: z.ZodDefault<z.ZodBoolean>;
438
446
  noInstall: z.ZodDefault<z.ZodBoolean>;
439
447
  noSync: z.ZodDefault<z.ZodBoolean>;
448
+ json: z.ZodDefault<z.ZodBoolean>;
449
+ migrationsOnly: z.ZodDefault<z.ZodBoolean>;
440
450
  }, z.core.$strip>, z.ZodObject<{
441
451
  status: z.ZodEnum<{
442
452
  error: "error";
@@ -457,6 +467,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
457
467
  updated: z.ZodArray<z.ZodString>;
458
468
  skipped: z.ZodArray<z.ZodString>;
459
469
  added: z.ZodArray<z.ZodString>;
470
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
471
+ backupDir: z.ZodOptional<z.ZodString>;
460
472
  error: z.ZodOptional<z.ZodString>;
461
473
  }, z.core.$strip>>;
462
474
  migrated: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -495,10 +507,11 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
495
507
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
496
508
  typesGen: import("@orpc/contract").ContractProcedure<z.ZodObject<{
497
509
  env: z.ZodOptional<z.ZodEnum<{
498
- production: "production";
499
510
  development: "development";
511
+ production: "production";
500
512
  }>>;
501
513
  dryRun: z.ZodDefault<z.ZodBoolean>;
514
+ remotePlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
502
515
  }, z.core.$strip>, z.ZodObject<{
503
516
  status: z.ZodEnum<{
504
517
  success: "success";
@@ -508,10 +521,6 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
508
521
  fetched: z.ZodArray<z.ZodString>;
509
522
  skipped: z.ZodArray<z.ZodString>;
510
523
  failed: z.ZodArray<z.ZodString>;
511
- source: z.ZodOptional<z.ZodEnum<{
512
- local: "local";
513
- remote: "remote";
514
- }>>;
515
524
  error: z.ZodOptional<z.ZodString>;
516
525
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
517
526
  dbStudio: import("@orpc/contract").ContractProcedure<z.ZodObject<{
@@ -663,6 +672,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
663
672
  strictVersion?: boolean | undefined;
664
673
  shareScope?: string | undefined;
665
674
  }> | undefined;
675
+ connectSrc?: string[] | undefined;
676
+ dependsOn?: string[] | undefined;
666
677
  };
667
678
  auth?: {
668
679
  extends?: string | {
@@ -686,6 +697,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
686
697
  strictVersion?: boolean | undefined;
687
698
  shareScope?: string | undefined;
688
699
  }> | undefined;
700
+ connectSrc?: string[] | undefined;
689
701
  } | undefined;
690
702
  };
691
703
  extends?: string | {
@@ -728,13 +740,15 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
728
740
  strictVersion?: boolean | undefined;
729
741
  shareScope?: string | undefined;
730
742
  }> | undefined;
743
+ connectSrc?: string[] | undefined;
731
744
  version?: string | undefined;
732
745
  app?: Record<string, unknown> | undefined;
733
746
  plugins?: Record<string, unknown> | undefined;
747
+ dependsOn?: string[] | undefined;
734
748
  }> | undefined;
735
749
  } | null;
736
750
  runtimeConfig: {
737
- env: "production" | "staging" | "development";
751
+ env: "development" | "production" | "staging";
738
752
  account: string;
739
753
  networkId: "testnet" | "mainnet";
740
754
  host: {
@@ -758,6 +772,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
758
772
  port?: number | undefined;
759
773
  ssrUrl?: string | undefined;
760
774
  ssrIntegrity?: string | undefined;
775
+ dependsOn?: string[] | undefined;
761
776
  };
762
777
  api: {
763
778
  name: string;
@@ -778,6 +793,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
778
793
  strictVersion?: boolean | undefined;
779
794
  shareScope?: string | undefined;
780
795
  }> | undefined;
796
+ dependsOn?: string[] | undefined;
781
797
  };
782
798
  domain?: string | undefined;
783
799
  title?: string | undefined;
@@ -803,6 +819,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
803
819
  strictVersion?: boolean | undefined;
804
820
  shareScope?: string | undefined;
805
821
  }> | undefined;
822
+ dependsOn?: string[] | undefined;
806
823
  } | undefined;
807
824
  plugins?: Record<string, {
808
825
  name: string;
@@ -824,6 +841,43 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
824
841
  strictVersion?: boolean | undefined;
825
842
  shareScope?: string | undefined;
826
843
  }> | undefined;
844
+ connectSrc?: string[] | undefined;
845
+ ui?: {
846
+ name: string;
847
+ url: string;
848
+ entry: string;
849
+ source: "local" | "remote";
850
+ localPath?: string | undefined;
851
+ port?: number | undefined;
852
+ integrity?: string | undefined;
853
+ } | undefined;
854
+ routes?: string[] | undefined;
855
+ dependsOn?: string[] | undefined;
856
+ }> | undefined;
857
+ nodes?: Record<string, {
858
+ key: string;
859
+ kind: "ui" | "api" | "auth" | "plugin";
860
+ name: string;
861
+ url: string;
862
+ entry: string;
863
+ source: "local" | "remote";
864
+ dependsOn?: string[] | undefined;
865
+ extendsRef?: string | undefined;
866
+ localPath?: string | undefined;
867
+ port?: number | undefined;
868
+ proxy?: string | undefined;
869
+ variables?: Record<string, JsonValue> | undefined;
870
+ secrets?: string[] | undefined;
871
+ integrity?: string | undefined;
872
+ shared?: Record<string, {
873
+ version: string;
874
+ requiredVersion?: string | undefined;
875
+ singleton?: boolean | undefined;
876
+ eager?: boolean | undefined;
877
+ strictVersion?: boolean | undefined;
878
+ shareScope?: string | undefined;
879
+ }> | undefined;
880
+ connectSrc?: string[] | undefined;
827
881
  ui?: {
828
882
  name: string;
829
883
  url: string;
@@ -834,6 +888,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
834
888
  integrity?: string | undefined;
835
889
  } | undefined;
836
890
  routes?: string[] | undefined;
891
+ sourceOrigin?: "config" | "manifest" | undefined;
892
+ singletonKey?: string | undefined;
837
893
  }> | undefined;
838
894
  } | null;
839
895
  configDir: string;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;UAoGiB;EACf,cAAc;EACd,UAAU,YAAY;EACtB,eAAe;;UAGA;EACf;EACA;EACA;EACA;EACA;IAAW;IAAe;IAAa;IAAc;;EACrD;;KAGU;EACV;EACA;EACA;EACA;;cAGW,cAAY;iBAKT,sBAAsB;EAAmB,UAAU;;iBA2I7C,yBACpB,mBACA,mBACA,SAAS,cACR,QAAQ"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;UAmGiB;EACf,cAAc;EACd,UAAU,YAAY;EACtB,eAAe;;UAGA;EACf;EACA;EACA;EACA;EACA;IAAW;IAAe;IAAa;IAAc;;EACrD;;KAGU;EACV;EACA;EACA;EACA;;cAGW,cAAY;iBAKT,sBAAsB;EAAmB,UAAU;;iBA2I7C,yBACpB,mBACA,mBACA,SAAS,cACR,QAAQ"}
package/dist/plugin.d.mts CHANGED
@@ -61,8 +61,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
61
61
  interactive: z.ZodOptional<z.ZodBoolean>;
62
62
  }, z.core.$strip>, z.ZodObject<{
63
63
  status: z.ZodEnum<{
64
- started: "started";
65
64
  error: "error";
65
+ started: "started";
66
66
  }>;
67
67
  description: z.ZodString;
68
68
  processes: z.ZodArray<z.ZodString>;
@@ -146,9 +146,11 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
146
146
  strictVersion: z.ZodOptional<z.ZodBoolean>;
147
147
  shareScope: z.ZodOptional<z.ZodString>;
148
148
  }, z.core.$strip>>>;
149
+ connectSrc: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
150
  version: z.ZodOptional<z.ZodString>;
150
151
  app: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
151
152
  plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
153
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
154
  }, z.core.$strip>]>>>;
153
155
  app: z.ZodObject<{
154
156
  host: z.ZodObject<{
@@ -187,6 +189,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
187
189
  strictVersion: z.ZodOptional<z.ZodBoolean>;
188
190
  shareScope: z.ZodOptional<z.ZodString>;
189
191
  }, z.core.$strip>>>;
192
+ connectSrc: z.ZodOptional<z.ZodArray<z.ZodString>>;
193
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
194
  }, z.core.$strip>;
191
195
  auth: z.ZodOptional<z.ZodObject<{
192
196
  extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -210,6 +214,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
210
214
  strictVersion: z.ZodOptional<z.ZodBoolean>;
211
215
  shareScope: z.ZodOptional<z.ZodString>;
212
216
  }, z.core.$strip>>>;
217
+ connectSrc: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
218
  }, z.core.$strip>>;
214
219
  }, z.core.$strip>;
215
220
  }, z.core.$strip>]>>;
@@ -387,10 +392,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
387
392
  source: z.ZodOptional<z.ZodString>;
388
393
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
389
394
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
390
- host: "host";
395
+ plugins: "plugins";
391
396
  ui: "ui";
392
397
  api: "api";
393
- plugins: "plugins";
398
+ host: "host";
394
399
  }>>>;
395
400
  noInteractive: z.ZodDefault<z.ZodBoolean>;
396
401
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -406,10 +411,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
406
411
  extends: z.ZodString;
407
412
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
413
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
409
- host: "host";
414
+ plugins: "plugins";
410
415
  ui: "ui";
411
416
  api: "api";
412
- plugins: "plugins";
417
+ host: "host";
413
418
  }>>>;
414
419
  filesCopied: z.ZodNumber;
415
420
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -422,6 +427,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
422
427
  sync: import("@orpc/contract").ContractProcedure<z.ZodObject<{
423
428
  dryRun: z.ZodDefault<z.ZodBoolean>;
424
429
  noInstall: z.ZodDefault<z.ZodBoolean>;
430
+ json: z.ZodDefault<z.ZodBoolean>;
425
431
  }, z.core.$strip>, z.ZodObject<{
426
432
  status: z.ZodEnum<{
427
433
  error: "error";
@@ -431,12 +437,16 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
431
437
  updated: z.ZodArray<z.ZodString>;
432
438
  skipped: z.ZodArray<z.ZodString>;
433
439
  added: z.ZodArray<z.ZodString>;
440
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
441
+ backupDir: z.ZodOptional<z.ZodString>;
434
442
  error: z.ZodOptional<z.ZodString>;
435
443
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
436
444
  upgrade: import("@orpc/contract").ContractProcedure<z.ZodObject<{
437
445
  dryRun: z.ZodDefault<z.ZodBoolean>;
438
446
  noInstall: z.ZodDefault<z.ZodBoolean>;
439
447
  noSync: z.ZodDefault<z.ZodBoolean>;
448
+ json: z.ZodDefault<z.ZodBoolean>;
449
+ migrationsOnly: z.ZodDefault<z.ZodBoolean>;
440
450
  }, z.core.$strip>, z.ZodObject<{
441
451
  status: z.ZodEnum<{
442
452
  error: "error";
@@ -457,6 +467,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
457
467
  updated: z.ZodArray<z.ZodString>;
458
468
  skipped: z.ZodArray<z.ZodString>;
459
469
  added: z.ZodArray<z.ZodString>;
470
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
471
+ backupDir: z.ZodOptional<z.ZodString>;
460
472
  error: z.ZodOptional<z.ZodString>;
461
473
  }, z.core.$strip>>;
462
474
  migrated: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -495,10 +507,11 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
495
507
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
496
508
  typesGen: import("@orpc/contract").ContractProcedure<z.ZodObject<{
497
509
  env: z.ZodOptional<z.ZodEnum<{
498
- production: "production";
499
510
  development: "development";
511
+ production: "production";
500
512
  }>>;
501
513
  dryRun: z.ZodDefault<z.ZodBoolean>;
514
+ remotePlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
502
515
  }, z.core.$strip>, z.ZodObject<{
503
516
  status: z.ZodEnum<{
504
517
  success: "success";
@@ -508,10 +521,6 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
508
521
  fetched: z.ZodArray<z.ZodString>;
509
522
  skipped: z.ZodArray<z.ZodString>;
510
523
  failed: z.ZodArray<z.ZodString>;
511
- source: z.ZodOptional<z.ZodEnum<{
512
- local: "local";
513
- remote: "remote";
514
- }>>;
515
524
  error: z.ZodOptional<z.ZodString>;
516
525
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
517
526
  dbStudio: import("@orpc/contract").ContractProcedure<z.ZodObject<{
@@ -663,6 +672,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
663
672
  strictVersion?: boolean | undefined;
664
673
  shareScope?: string | undefined;
665
674
  }> | undefined;
675
+ connectSrc?: string[] | undefined;
676
+ dependsOn?: string[] | undefined;
666
677
  };
667
678
  auth?: {
668
679
  extends?: string | {
@@ -686,6 +697,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
686
697
  strictVersion?: boolean | undefined;
687
698
  shareScope?: string | undefined;
688
699
  }> | undefined;
700
+ connectSrc?: string[] | undefined;
689
701
  } | undefined;
690
702
  };
691
703
  extends?: string | {
@@ -728,13 +740,15 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
728
740
  strictVersion?: boolean | undefined;
729
741
  shareScope?: string | undefined;
730
742
  }> | undefined;
743
+ connectSrc?: string[] | undefined;
731
744
  version?: string | undefined;
732
745
  app?: Record<string, unknown> | undefined;
733
746
  plugins?: Record<string, unknown> | undefined;
747
+ dependsOn?: string[] | undefined;
734
748
  }> | undefined;
735
749
  } | null;
736
750
  runtimeConfig: {
737
- env: "production" | "staging" | "development";
751
+ env: "development" | "production" | "staging";
738
752
  account: string;
739
753
  networkId: "testnet" | "mainnet";
740
754
  host: {
@@ -758,6 +772,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
758
772
  port?: number | undefined;
759
773
  ssrUrl?: string | undefined;
760
774
  ssrIntegrity?: string | undefined;
775
+ dependsOn?: string[] | undefined;
761
776
  };
762
777
  api: {
763
778
  name: string;
@@ -778,6 +793,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
778
793
  strictVersion?: boolean | undefined;
779
794
  shareScope?: string | undefined;
780
795
  }> | undefined;
796
+ dependsOn?: string[] | undefined;
781
797
  };
782
798
  domain?: string | undefined;
783
799
  title?: string | undefined;
@@ -803,6 +819,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
803
819
  strictVersion?: boolean | undefined;
804
820
  shareScope?: string | undefined;
805
821
  }> | undefined;
822
+ dependsOn?: string[] | undefined;
806
823
  } | undefined;
807
824
  plugins?: Record<string, {
808
825
  name: string;
@@ -824,6 +841,43 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
824
841
  strictVersion?: boolean | undefined;
825
842
  shareScope?: string | undefined;
826
843
  }> | undefined;
844
+ connectSrc?: string[] | undefined;
845
+ ui?: {
846
+ name: string;
847
+ url: string;
848
+ entry: string;
849
+ source: "local" | "remote";
850
+ localPath?: string | undefined;
851
+ port?: number | undefined;
852
+ integrity?: string | undefined;
853
+ } | undefined;
854
+ routes?: string[] | undefined;
855
+ dependsOn?: string[] | undefined;
856
+ }> | undefined;
857
+ nodes?: Record<string, {
858
+ key: string;
859
+ kind: "ui" | "api" | "auth" | "plugin";
860
+ name: string;
861
+ url: string;
862
+ entry: string;
863
+ source: "local" | "remote";
864
+ dependsOn?: string[] | undefined;
865
+ extendsRef?: string | undefined;
866
+ localPath?: string | undefined;
867
+ port?: number | undefined;
868
+ proxy?: string | undefined;
869
+ variables?: Record<string, JsonValue> | undefined;
870
+ secrets?: string[] | undefined;
871
+ integrity?: string | undefined;
872
+ shared?: Record<string, {
873
+ version: string;
874
+ requiredVersion?: string | undefined;
875
+ singleton?: boolean | undefined;
876
+ eager?: boolean | undefined;
877
+ strictVersion?: boolean | undefined;
878
+ shareScope?: string | undefined;
879
+ }> | undefined;
880
+ connectSrc?: string[] | undefined;
827
881
  ui?: {
828
882
  name: string;
829
883
  url: string;
@@ -834,6 +888,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
834
888
  integrity?: string | undefined;
835
889
  } | undefined;
836
890
  routes?: string[] | undefined;
891
+ sourceOrigin?: "config" | "manifest" | undefined;
892
+ singletonKey?: string | undefined;
837
893
  }> | undefined;
838
894
  } | null;
839
895
  configDir: string;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;UAoGiB;EACf,cAAc;EACd,UAAU,YAAY;EACtB,eAAe;;UAGA;EACf;EACA;EACA;EACA;EACA;IAAW;IAAe;IAAa;IAAc;;EACrD;;KAGU;EACV;EACA;EACA;EACA;;cAGW,cAAY;iBAKT,sBAAsB;EAAmB,UAAU;;iBA2I7C,yBACpB,mBACA,mBACA,SAAS,cACR,QAAQ"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;UAmGiB;EACf,cAAc;EACd,UAAU,YAAY;EACtB,eAAe;;UAGA;EACf;EACA;EACA;EACA;EACA;IAAW;IAAe;IAAa;IAAc;;EACrD;;KAGU;EACV;EACA;EACA;EACA;;cAGW,cAAY;iBAKT,sBAAsB;EAAmB,UAAU;;iBA2I7C,yBACpB,mBACA,mBACA,SAAS,cACR,QAAQ"}
package/dist/plugin.mjs CHANGED
@@ -12,7 +12,7 @@ import { syncResolvedSharedDeps } from "./shared-deps.mjs";
12
12
  import { run } from "./utils/run.mjs";
13
13
  import { colors } from "./utils/theme.mjs";
14
14
  import { buildEveryPluginQuietly, buildEverythingDevQuietly, buildWorkspaceTargets, fileExists, getPluginRef, readJsonFile, selectWorkspaceTargets } from "./build.mjs";
15
- import { ensureEnvFile, loadProjectEnv, materializeInfraPlan, syncGeneratedInfra, writeGeneratedInfra } from "./cli/infra.mjs";
15
+ import { ensureEnvFile, loadProjectEnv, syncGeneratedInfra, writeGeneratedInfra } from "./cli/infra.mjs";
16
16
  import { saveBosConfig } from "./utils/save-config.mjs";
17
17
  import { buildInitPatterns, buildPluginRouteExclusions, copyFilteredFiles, detectGitRemoteUrl, fetchParentConfig, generateDatabaseMigrations, personalizeAgentsMd, personalizeConfig, removeInitLockfile, resolveSourceDir, runBunInstall, runTypesGen, scaffoldMinimalProject, stripOrphanedWorkspacesFromLockfile, writeInitSnapshot } from "./cli/init.mjs";
18
18
  import { getStatus } from "./cli/status.mjs";
@@ -25,7 +25,7 @@ import { preflightLocalInfra } from "./infra/preflight.mjs";
25
25
  import { addFunctionCallAccessKey, deleteAccessKeys, ensureNearCli, listPublishKeys } from "./near-cli.mjs";
26
26
  import { extractPublishedUrl, publishToFastKv } from "./publish.mjs";
27
27
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
28
- import { basename, dirname, join, resolve } from "node:path";
28
+ import { basename, dirname, join, relative, resolve } from "node:path";
29
29
  import { Effect } from "effect";
30
30
  import { EventEmitter } from "node:events";
31
31
  import process from "node:process";
@@ -390,7 +390,7 @@ var plugin_default = createPlugin({
390
390
  timings: devTimings
391
391
  };
392
392
  suppressWarnings();
393
- const developmentRuntime = buildRuntimeConfig(deps.bosConfig, {
393
+ const developmentRuntime = await buildRuntimeConfig(deps.bosConfig, {
394
394
  uiSource,
395
395
  apiSource,
396
396
  authSource,
@@ -431,18 +431,7 @@ var plugin_default = createPlugin({
431
431
  ssr,
432
432
  proxy
433
433
  });
434
- materializeInfraPlan(deps.configDir, plan.envGenerated, plan.composeModel.databases.map((d) => ({
435
- serviceName: `postgres-${d.slug.replace(/_/g, "-")}`,
436
- containerName: d.containerName,
437
- port: d.port,
438
- volumeName: d.volumeName,
439
- databaseName: d.dbName
440
- })), plan.composeModel.redis.map((r) => ({
441
- serviceName: `redis-${r.slug.replace(/_/g, "-")}`,
442
- containerName: r.containerName,
443
- port: r.port,
444
- volumeName: r.volumeName
445
- })), plan.runtimeConfig.account, plan.resolvedPorts.host);
434
+ writeGeneratedInfra(deps.configDir, plan.runtimeConfig);
446
435
  ensureEnvFile(deps.configDir);
447
436
  loadProjectEnv(deps.configDir);
448
437
  const packages = [...plan.serviceDescriptors.keys()];
@@ -513,7 +502,7 @@ var plugin_default = createPlugin({
513
502
  const isStaging = bosEnv === "staging";
514
503
  const runtimePlugins = await buildRuntimePluginsForConfig(config, deps.configDir, "production");
515
504
  suppressWarnings();
516
- const runtimeConfig = buildRuntimeConfig(config, {
505
+ const runtimeConfig = await buildRuntimeConfig(config, {
517
506
  uiSource: "remote",
518
507
  apiSource: "remote",
519
508
  authSource: "remote",
@@ -628,7 +617,7 @@ var plugin_default = createPlugin({
628
617
  skipped: []
629
618
  };
630
619
  suppressWarnings();
631
- const runtimeConfig = buildRuntimeConfig(deps.bosConfig, {
620
+ const runtimeConfig = await buildRuntimeConfig(deps.bosConfig, {
632
621
  uiSource: deps.bosConfig.app.ui?.development ? "local" : "remote",
633
622
  apiSource: deps.bosConfig.app.api?.development ? "local" : "remote",
634
623
  authSource: deps.bosConfig.app.auth?.development ? "local" : "remote",
@@ -1110,7 +1099,8 @@ var plugin_default = createPlugin({
1110
1099
  const projectDir = resolve(dirname(configPath));
1111
1100
  const refreshed = await loadResolvedConfig({
1112
1101
  cwd: projectDir,
1113
- env: input.env ?? (process.env.NODE_ENV === "production" ? "production" : "development")
1102
+ env: input.env ?? (process.env.NODE_ENV === "production" ? "production" : "development"),
1103
+ remotePlugins: input.remotePlugins
1114
1104
  });
1115
1105
  if (!refreshed) return {
1116
1106
  status: "error",
@@ -1125,23 +1115,29 @@ var plugin_default = createPlugin({
1125
1115
  const fetched = [];
1126
1116
  const skipped = [];
1127
1117
  const hasLocalApiWorkspace = existsSync(join(projectDir, "api", "src"));
1128
- if (refreshed.runtime.api.source !== "local") fetched.push(`api (${refreshed.runtime.api.url})`);
1129
- else skipped.push("api (local)");
1130
- if (refreshed.runtime.auth) if (refreshed.runtime.auth.source !== "local") fetched.push(`auth (${refreshed.runtime.auth.url})`);
1131
- else skipped.push("auth (local)");
1132
- for (const [key, plugin] of pluginEntries) if (plugin.url && plugin.source !== "local") fetched.push(`${key} (${plugin.url})`);
1133
- else if (plugin.localPath) skipped.push(`${key} (local)`);
1134
- else skipped.push(`${key} (no URL resolved)`);
1118
+ if (refreshed.runtime.api.source !== "local") fetched.push(`api remote (${refreshed.runtime.api.url})`);
1119
+ else {
1120
+ const path = refreshed.runtime.api.localPath ? ` (${relative(projectDir, refreshed.runtime.api.localPath)})` : "";
1121
+ skipped.push(`api local${path}`);
1122
+ }
1123
+ if (refreshed.runtime.auth) if (refreshed.runtime.auth.source !== "local") fetched.push(`auth remote (${refreshed.runtime.auth.url})`);
1124
+ else {
1125
+ const path = refreshed.runtime.auth.localPath ? ` (${relative(projectDir, refreshed.runtime.auth.localPath)})` : "";
1126
+ skipped.push(`auth local${path}`);
1127
+ }
1128
+ for (const [key, plugin] of pluginEntries) if (plugin.url && plugin.source !== "local") fetched.push(`${key} remote (${plugin.url})`);
1129
+ else if (plugin.localPath) skipped.push(`${key} local (${relative(projectDir, plugin.localPath)})`);
1130
+ else skipped.push(`${key} no URL resolved`);
1135
1131
  const generated = ["ui/src/lib/api-types.gen.ts", "ui/src/lib/auth-types.gen.ts"];
1136
1132
  if (hasLocalApiWorkspace) generated.push("api/src/lib/plugins-types.gen.ts", "api/src/lib/auth-types.gen.ts");
1137
1133
  if (existsSync(join(projectDir, "host", "src"))) generated.push("host/src/lib/auth-types.gen.ts");
1134
+ for (const [key, _plugin] of pluginEntries) if (existsSync(join(projectDir, "plugins", key, "src", "lib", "plugins-client.gen.ts"))) generated.push(`plugins/${key}/src/lib/plugins-client.gen.ts`);
1138
1135
  return {
1139
1136
  status: "success",
1140
1137
  generated,
1141
1138
  fetched,
1142
1139
  skipped,
1143
- failed: [],
1144
- source: refreshed.runtime.api.source
1140
+ failed: []
1145
1141
  };
1146
1142
  }
1147
1143
  const artifacts = await generateCodeArtifacts(projectDir, refreshed.config, { runtimeConfig: refreshed.runtime });
@@ -1150,13 +1146,16 @@ var plugin_default = createPlugin({
1150
1146
  if (hasLocalApiWorkspace) generated.push("api/src/lib/plugins-types.gen.ts", "api/src/lib/auth-types.gen.ts");
1151
1147
  if (refreshed.runtime.auth && (refreshed.runtime.auth.source !== "local" || refreshed.runtime.auth.localPath)) generated.push("ui/src/lib/auth-types.gen.ts");
1152
1148
  if (existsSync(join(projectDir, "host", "src"))) generated.push("host/src/lib/auth-types.gen.ts");
1149
+ for (const [key, _plugin] of Object.entries(refreshed.runtime.plugins ?? {})) if (existsSync(join(projectDir, "plugins", key, "src", "lib", "plugins-client.gen.ts"))) generated.push(`plugins/${key}/src/lib/plugins-client.gen.ts`);
1153
1150
  const contractStatus = artifacts?.contractStatus ?? [];
1154
1151
  const fetched = [];
1155
1152
  const skipped = [];
1156
1153
  const failed = [];
1157
- for (const entry of contractStatus) if (entry.source === "remote") fetched.push(entry.url ? `${entry.key} (${entry.url})` : entry.key);
1158
- else if (entry.source === "local") skipped.push(`${entry.key} (local)`);
1159
- else if (entry.source === "skipped") skipped.push(`${entry.key} (no URL resolved)`);
1154
+ for (const entry of contractStatus) if (entry.source === "remote") fetched.push(entry.url ? `${entry.key} remote (${entry.url})` : entry.key);
1155
+ else if (entry.source === "local") {
1156
+ const path = entry.localPath ? ` (${relative(projectDir, entry.localPath)})` : "";
1157
+ skipped.push(`${entry.key} local${path}`);
1158
+ } else if (entry.source === "skipped") skipped.push(`${entry.key} no URL resolved`);
1160
1159
  else if (entry.source === "failed") {
1161
1160
  const detail = entry.error ? `: ${entry.error}` : "";
1162
1161
  failed.push(`${entry.key}${detail}`);
@@ -1166,8 +1165,7 @@ var plugin_default = createPlugin({
1166
1165
  generated,
1167
1166
  fetched,
1168
1167
  skipped,
1169
- failed,
1170
- source: refreshed.runtime.api.source
1168
+ failed
1171
1169
  };
1172
1170
  } catch (error) {
1173
1171
  return {