everything-dev 1.51.6 → 1.52.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 (99) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +0 -2
  2. package/dist/api-contract.cjs +61 -16
  3. package/dist/api-contract.cjs.map +1 -1
  4. package/dist/api-contract.mjs +60 -17
  5. package/dist/api-contract.mjs.map +1 -1
  6. package/dist/app.cjs +1 -1
  7. package/dist/app.cjs.map +1 -1
  8. package/dist/app.mjs +1 -1
  9. package/dist/app.mjs.map +1 -1
  10. package/dist/cli/db-doctor.cjs +1 -1
  11. package/dist/cli/db-doctor.cjs.map +1 -1
  12. package/dist/cli/db-doctor.mjs +1 -1
  13. package/dist/cli/db-repair.cjs +1 -1
  14. package/dist/cli/db-repair.cjs.map +1 -1
  15. package/dist/cli/db-repair.mjs +1 -1
  16. package/dist/cli/init.cjs +76 -52
  17. package/dist/cli/init.cjs.map +1 -1
  18. package/dist/cli/init.d.cts +15 -7
  19. package/dist/cli/init.d.cts.map +1 -1
  20. package/dist/cli/init.d.mts +15 -7
  21. package/dist/cli/init.d.mts.map +1 -1
  22. package/dist/cli/init.mjs +70 -47
  23. package/dist/cli/init.mjs.map +1 -1
  24. package/dist/cli/sync.cjs +34 -5
  25. package/dist/cli/sync.cjs.map +1 -1
  26. package/dist/cli/sync.mjs +35 -6
  27. package/dist/cli/sync.mjs.map +1 -1
  28. package/dist/cli/upgrade.cjs +151 -93
  29. package/dist/cli/upgrade.cjs.map +1 -1
  30. package/dist/cli/upgrade.mjs +138 -80
  31. package/dist/cli/upgrade.mjs.map +1 -1
  32. package/dist/cli/utils/helpers.cjs +25 -0
  33. package/dist/cli/utils/helpers.cjs.map +1 -0
  34. package/dist/cli/utils/helpers.mjs +23 -0
  35. package/dist/cli/utils/helpers.mjs.map +1 -0
  36. package/dist/cli.cjs +84 -72
  37. package/dist/cli.cjs.map +1 -1
  38. package/dist/cli.mjs +84 -72
  39. package/dist/cli.mjs.map +1 -1
  40. package/dist/code-artifacts.cjs +1 -1
  41. package/dist/code-artifacts.mjs +1 -1
  42. package/dist/config.cjs +44 -4
  43. package/dist/config.cjs.map +1 -1
  44. package/dist/config.d.cts +1 -1
  45. package/dist/config.d.cts.map +1 -1
  46. package/dist/config.d.mts +1 -1
  47. package/dist/config.d.mts.map +1 -1
  48. package/dist/config.mjs +44 -4
  49. package/dist/config.mjs.map +1 -1
  50. package/dist/contract.cjs +9 -4
  51. package/dist/contract.cjs.map +1 -1
  52. package/dist/contract.d.cts +23 -13
  53. package/dist/contract.d.cts.map +1 -1
  54. package/dist/contract.d.mts +23 -13
  55. package/dist/contract.d.mts.map +1 -1
  56. package/dist/contract.meta.cjs +2 -1
  57. package/dist/contract.meta.cjs.map +1 -1
  58. package/dist/contract.meta.d.cts +3 -0
  59. package/dist/contract.meta.d.mts +3 -0
  60. package/dist/contract.meta.mjs +2 -1
  61. package/dist/contract.meta.mjs.map +1 -1
  62. package/dist/contract.mjs +9 -4
  63. package/dist/contract.mjs.map +1 -1
  64. package/dist/dag.cjs +176 -0
  65. package/dist/dag.cjs.map +1 -0
  66. package/dist/dag.d.cts +24 -0
  67. package/dist/dag.d.cts.map +1 -0
  68. package/dist/dag.d.mts +24 -0
  69. package/dist/dag.d.mts.map +1 -0
  70. package/dist/dag.mjs +167 -0
  71. package/dist/dag.mjs.map +1 -0
  72. package/dist/index.cjs +2 -0
  73. package/dist/index.d.cts +2 -2
  74. package/dist/index.d.mts +2 -2
  75. package/dist/index.mjs +2 -2
  76. package/dist/infra/planner.cjs +1 -1
  77. package/dist/infra/planner.mjs +1 -1
  78. package/dist/infra/preflight.cjs +1 -1
  79. package/dist/infra/preflight.cjs.map +1 -1
  80. package/dist/infra/preflight.mjs +1 -1
  81. package/dist/infra/preflight.mjs.map +1 -1
  82. package/dist/near-cli.cjs +1 -1
  83. package/dist/near-cli.mjs +1 -1
  84. package/dist/plugin.cjs +27 -18
  85. package/dist/plugin.cjs.map +1 -1
  86. package/dist/plugin.d.cts +52 -6
  87. package/dist/plugin.d.mts +52 -6
  88. package/dist/plugin.mjs +28 -19
  89. package/dist/plugin.mjs.map +1 -1
  90. package/dist/types.cjs +41 -6
  91. package/dist/types.cjs.map +1 -1
  92. package/dist/types.d.cts +116 -1
  93. package/dist/types.d.cts.map +1 -1
  94. package/dist/types.d.mts +116 -1
  95. package/dist/types.d.mts.map +1 -1
  96. package/dist/types.mjs +40 -7
  97. package/dist/types.mjs.map +1 -1
  98. package/package.json +8 -2
  99. package/dist/_virtual/_rolldown/runtime.mjs +0 -32
package/dist/plugin.d.cts CHANGED
@@ -149,6 +149,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
149
149
  version: z.ZodOptional<z.ZodString>;
150
150
  app: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
151
151
  plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
152
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
153
  }, z.core.$strip>]>>>;
153
154
  app: z.ZodObject<{
154
155
  host: z.ZodObject<{
@@ -389,8 +390,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
389
390
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
390
391
  plugins: "plugins";
391
392
  ui: "ui";
392
- host: "host";
393
393
  api: "api";
394
+ host: "host";
394
395
  }>>>;
395
396
  noInteractive: z.ZodDefault<z.ZodBoolean>;
396
397
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -408,8 +409,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
408
409
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
409
410
  plugins: "plugins";
410
411
  ui: "ui";
411
- host: "host";
412
412
  api: "api";
413
+ host: "host";
413
414
  }>>>;
414
415
  filesCopied: z.ZodNumber;
415
416
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -422,6 +423,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
422
423
  sync: import("@orpc/contract").ContractProcedure<z.ZodObject<{
423
424
  dryRun: z.ZodDefault<z.ZodBoolean>;
424
425
  noInstall: z.ZodDefault<z.ZodBoolean>;
426
+ json: z.ZodDefault<z.ZodBoolean>;
425
427
  }, z.core.$strip>, z.ZodObject<{
426
428
  status: z.ZodEnum<{
427
429
  error: "error";
@@ -431,12 +433,16 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
431
433
  updated: z.ZodArray<z.ZodString>;
432
434
  skipped: z.ZodArray<z.ZodString>;
433
435
  added: z.ZodArray<z.ZodString>;
436
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
437
+ backupDir: z.ZodOptional<z.ZodString>;
434
438
  error: z.ZodOptional<z.ZodString>;
435
439
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
436
440
  upgrade: import("@orpc/contract").ContractProcedure<z.ZodObject<{
437
441
  dryRun: z.ZodDefault<z.ZodBoolean>;
438
442
  noInstall: z.ZodDefault<z.ZodBoolean>;
439
443
  noSync: z.ZodDefault<z.ZodBoolean>;
444
+ json: z.ZodDefault<z.ZodBoolean>;
445
+ migrationsOnly: z.ZodDefault<z.ZodBoolean>;
440
446
  }, z.core.$strip>, z.ZodObject<{
441
447
  status: z.ZodEnum<{
442
448
  error: "error";
@@ -457,6 +463,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
457
463
  updated: z.ZodArray<z.ZodString>;
458
464
  skipped: z.ZodArray<z.ZodString>;
459
465
  added: z.ZodArray<z.ZodString>;
466
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
467
+ backupDir: z.ZodOptional<z.ZodString>;
460
468
  error: z.ZodOptional<z.ZodString>;
461
469
  }, z.core.$strip>>;
462
470
  migrated: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -499,6 +507,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
499
507
  production: "production";
500
508
  }>>;
501
509
  dryRun: z.ZodDefault<z.ZodBoolean>;
510
+ remotePlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
502
511
  }, z.core.$strip>, z.ZodObject<{
503
512
  status: z.ZodEnum<{
504
513
  success: "success";
@@ -508,10 +517,6 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
508
517
  fetched: z.ZodArray<z.ZodString>;
509
518
  skipped: z.ZodArray<z.ZodString>;
510
519
  failed: z.ZodArray<z.ZodString>;
511
- source: z.ZodOptional<z.ZodEnum<{
512
- local: "local";
513
- remote: "remote";
514
- }>>;
515
520
  error: z.ZodOptional<z.ZodString>;
516
521
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
517
522
  dbStudio: import("@orpc/contract").ContractProcedure<z.ZodObject<{
@@ -731,6 +736,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
731
736
  version?: string | undefined;
732
737
  app?: Record<string, unknown> | undefined;
733
738
  plugins?: Record<string, unknown> | undefined;
739
+ dependsOn?: string[] | undefined;
734
740
  }> | undefined;
735
741
  } | null;
736
742
  runtimeConfig: {
@@ -758,6 +764,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
758
764
  port?: number | undefined;
759
765
  ssrUrl?: string | undefined;
760
766
  ssrIntegrity?: string | undefined;
767
+ dependsOn?: string[] | undefined;
761
768
  };
762
769
  api: {
763
770
  name: string;
@@ -778,6 +785,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
778
785
  strictVersion?: boolean | undefined;
779
786
  shareScope?: string | undefined;
780
787
  }> | undefined;
788
+ dependsOn?: string[] | undefined;
781
789
  };
782
790
  domain?: string | undefined;
783
791
  title?: string | undefined;
@@ -803,6 +811,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
803
811
  strictVersion?: boolean | undefined;
804
812
  shareScope?: string | undefined;
805
813
  }> | undefined;
814
+ dependsOn?: string[] | undefined;
806
815
  } | undefined;
807
816
  plugins?: Record<string, {
808
817
  name: string;
@@ -834,6 +843,43 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
834
843
  integrity?: string | undefined;
835
844
  } | undefined;
836
845
  routes?: string[] | undefined;
846
+ dependsOn?: string[] | undefined;
847
+ }> | undefined;
848
+ nodes?: Record<string, {
849
+ key: string;
850
+ kind: "ui" | "api" | "auth" | "plugin";
851
+ name: string;
852
+ url: string;
853
+ entry: string;
854
+ source: "local" | "remote";
855
+ dependsOn?: string[] | undefined;
856
+ extendsRef?: string | undefined;
857
+ localPath?: string | undefined;
858
+ port?: number | undefined;
859
+ proxy?: string | undefined;
860
+ variables?: Record<string, JsonValue> | undefined;
861
+ secrets?: string[] | undefined;
862
+ integrity?: string | undefined;
863
+ shared?: Record<string, {
864
+ version: string;
865
+ requiredVersion?: string | undefined;
866
+ singleton?: boolean | undefined;
867
+ eager?: boolean | undefined;
868
+ strictVersion?: boolean | undefined;
869
+ shareScope?: string | undefined;
870
+ }> | undefined;
871
+ ui?: {
872
+ name: string;
873
+ url: string;
874
+ entry: string;
875
+ source: "local" | "remote";
876
+ localPath?: string | undefined;
877
+ port?: number | undefined;
878
+ integrity?: string | undefined;
879
+ } | undefined;
880
+ routes?: string[] | undefined;
881
+ sourceOrigin?: "config" | "manifest" | undefined;
882
+ singletonKey?: string | undefined;
837
883
  }> | undefined;
838
884
  } | null;
839
885
  configDir: string;
package/dist/plugin.d.mts CHANGED
@@ -149,6 +149,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
149
149
  version: z.ZodOptional<z.ZodString>;
150
150
  app: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
151
151
  plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
152
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
153
  }, z.core.$strip>]>>>;
153
154
  app: z.ZodObject<{
154
155
  host: z.ZodObject<{
@@ -389,8 +390,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
389
390
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
390
391
  plugins: "plugins";
391
392
  ui: "ui";
392
- host: "host";
393
393
  api: "api";
394
+ host: "host";
394
395
  }>>>;
395
396
  noInteractive: z.ZodDefault<z.ZodBoolean>;
396
397
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -408,8 +409,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
408
409
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
409
410
  plugins: "plugins";
410
411
  ui: "ui";
411
- host: "host";
412
412
  api: "api";
413
+ host: "host";
413
414
  }>>>;
414
415
  filesCopied: z.ZodNumber;
415
416
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -422,6 +423,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
422
423
  sync: import("@orpc/contract").ContractProcedure<z.ZodObject<{
423
424
  dryRun: z.ZodDefault<z.ZodBoolean>;
424
425
  noInstall: z.ZodDefault<z.ZodBoolean>;
426
+ json: z.ZodDefault<z.ZodBoolean>;
425
427
  }, z.core.$strip>, z.ZodObject<{
426
428
  status: z.ZodEnum<{
427
429
  error: "error";
@@ -431,12 +433,16 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
431
433
  updated: z.ZodArray<z.ZodString>;
432
434
  skipped: z.ZodArray<z.ZodString>;
433
435
  added: z.ZodArray<z.ZodString>;
436
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
437
+ backupDir: z.ZodOptional<z.ZodString>;
434
438
  error: z.ZodOptional<z.ZodString>;
435
439
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
436
440
  upgrade: import("@orpc/contract").ContractProcedure<z.ZodObject<{
437
441
  dryRun: z.ZodDefault<z.ZodBoolean>;
438
442
  noInstall: z.ZodDefault<z.ZodBoolean>;
439
443
  noSync: z.ZodDefault<z.ZodBoolean>;
444
+ json: z.ZodDefault<z.ZodBoolean>;
445
+ migrationsOnly: z.ZodDefault<z.ZodBoolean>;
440
446
  }, z.core.$strip>, z.ZodObject<{
441
447
  status: z.ZodEnum<{
442
448
  error: "error";
@@ -457,6 +463,8 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
457
463
  updated: z.ZodArray<z.ZodString>;
458
464
  skipped: z.ZodArray<z.ZodString>;
459
465
  added: z.ZodArray<z.ZodString>;
466
+ conflicted: z.ZodDefault<z.ZodArray<z.ZodString>>;
467
+ backupDir: z.ZodOptional<z.ZodString>;
460
468
  error: z.ZodOptional<z.ZodString>;
461
469
  }, z.core.$strip>>;
462
470
  migrated: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -499,6 +507,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
499
507
  production: "production";
500
508
  }>>;
501
509
  dryRun: z.ZodDefault<z.ZodBoolean>;
510
+ remotePlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
502
511
  }, z.core.$strip>, z.ZodObject<{
503
512
  status: z.ZodEnum<{
504
513
  success: "success";
@@ -508,10 +517,6 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
508
517
  fetched: z.ZodArray<z.ZodString>;
509
518
  skipped: z.ZodArray<z.ZodString>;
510
519
  failed: z.ZodArray<z.ZodString>;
511
- source: z.ZodOptional<z.ZodEnum<{
512
- local: "local";
513
- remote: "remote";
514
- }>>;
515
520
  error: z.ZodOptional<z.ZodString>;
516
521
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
517
522
  dbStudio: import("@orpc/contract").ContractProcedure<z.ZodObject<{
@@ -731,6 +736,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
731
736
  version?: string | undefined;
732
737
  app?: Record<string, unknown> | undefined;
733
738
  plugins?: Record<string, unknown> | undefined;
739
+ dependsOn?: string[] | undefined;
734
740
  }> | undefined;
735
741
  } | null;
736
742
  runtimeConfig: {
@@ -758,6 +764,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
758
764
  port?: number | undefined;
759
765
  ssrUrl?: string | undefined;
760
766
  ssrIntegrity?: string | undefined;
767
+ dependsOn?: string[] | undefined;
761
768
  };
762
769
  api: {
763
770
  name: string;
@@ -778,6 +785,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
778
785
  strictVersion?: boolean | undefined;
779
786
  shareScope?: string | undefined;
780
787
  }> | undefined;
788
+ dependsOn?: string[] | undefined;
781
789
  };
782
790
  domain?: string | undefined;
783
791
  title?: string | undefined;
@@ -803,6 +811,7 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
803
811
  strictVersion?: boolean | undefined;
804
812
  shareScope?: string | undefined;
805
813
  }> | undefined;
814
+ dependsOn?: string[] | undefined;
806
815
  } | undefined;
807
816
  plugins?: Record<string, {
808
817
  name: string;
@@ -834,6 +843,43 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
834
843
  integrity?: string | undefined;
835
844
  } | undefined;
836
845
  routes?: string[] | undefined;
846
+ dependsOn?: string[] | undefined;
847
+ }> | undefined;
848
+ nodes?: Record<string, {
849
+ key: string;
850
+ kind: "ui" | "api" | "auth" | "plugin";
851
+ name: string;
852
+ url: string;
853
+ entry: string;
854
+ source: "local" | "remote";
855
+ dependsOn?: string[] | undefined;
856
+ extendsRef?: string | undefined;
857
+ localPath?: string | undefined;
858
+ port?: number | undefined;
859
+ proxy?: string | undefined;
860
+ variables?: Record<string, JsonValue> | undefined;
861
+ secrets?: string[] | undefined;
862
+ integrity?: string | undefined;
863
+ shared?: Record<string, {
864
+ version: string;
865
+ requiredVersion?: string | undefined;
866
+ singleton?: boolean | undefined;
867
+ eager?: boolean | undefined;
868
+ strictVersion?: boolean | undefined;
869
+ shareScope?: string | undefined;
870
+ }> | undefined;
871
+ ui?: {
872
+ name: string;
873
+ url: string;
874
+ entry: string;
875
+ source: "local" | "remote";
876
+ localPath?: string | undefined;
877
+ port?: number | undefined;
878
+ integrity?: string | undefined;
879
+ } | undefined;
880
+ routes?: string[] | undefined;
881
+ sourceOrigin?: "config" | "manifest" | undefined;
882
+ singletonKey?: string | undefined;
837
883
  }> | undefined;
838
884
  } | null;
839
885
  configDir: string;
package/dist/plugin.mjs CHANGED
@@ -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,
@@ -513,7 +513,7 @@ var plugin_default = createPlugin({
513
513
  const isStaging = bosEnv === "staging";
514
514
  const runtimePlugins = await buildRuntimePluginsForConfig(config, deps.configDir, "production");
515
515
  suppressWarnings();
516
- const runtimeConfig = buildRuntimeConfig(config, {
516
+ const runtimeConfig = await buildRuntimeConfig(config, {
517
517
  uiSource: "remote",
518
518
  apiSource: "remote",
519
519
  authSource: "remote",
@@ -628,7 +628,7 @@ var plugin_default = createPlugin({
628
628
  skipped: []
629
629
  };
630
630
  suppressWarnings();
631
- const runtimeConfig = buildRuntimeConfig(deps.bosConfig, {
631
+ const runtimeConfig = await buildRuntimeConfig(deps.bosConfig, {
632
632
  uiSource: deps.bosConfig.app.ui?.development ? "local" : "remote",
633
633
  apiSource: deps.bosConfig.app.api?.development ? "local" : "remote",
634
634
  authSource: deps.bosConfig.app.auth?.development ? "local" : "remote",
@@ -1110,7 +1110,8 @@ var plugin_default = createPlugin({
1110
1110
  const projectDir = resolve(dirname(configPath));
1111
1111
  const refreshed = await loadResolvedConfig({
1112
1112
  cwd: projectDir,
1113
- env: input.env ?? (process.env.NODE_ENV === "production" ? "production" : "development")
1113
+ env: input.env ?? (process.env.NODE_ENV === "production" ? "production" : "development"),
1114
+ remotePlugins: input.remotePlugins
1114
1115
  });
1115
1116
  if (!refreshed) return {
1116
1117
  status: "error",
@@ -1125,23 +1126,29 @@ var plugin_default = createPlugin({
1125
1126
  const fetched = [];
1126
1127
  const skipped = [];
1127
1128
  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)`);
1129
+ if (refreshed.runtime.api.source !== "local") fetched.push(`api remote (${refreshed.runtime.api.url})`);
1130
+ else {
1131
+ const path = refreshed.runtime.api.localPath ? ` (${relative(projectDir, refreshed.runtime.api.localPath)})` : "";
1132
+ skipped.push(`api local${path}`);
1133
+ }
1134
+ if (refreshed.runtime.auth) if (refreshed.runtime.auth.source !== "local") fetched.push(`auth remote (${refreshed.runtime.auth.url})`);
1135
+ else {
1136
+ const path = refreshed.runtime.auth.localPath ? ` (${relative(projectDir, refreshed.runtime.auth.localPath)})` : "";
1137
+ skipped.push(`auth local${path}`);
1138
+ }
1139
+ for (const [key, plugin] of pluginEntries) if (plugin.url && plugin.source !== "local") fetched.push(`${key} remote (${plugin.url})`);
1140
+ else if (plugin.localPath) skipped.push(`${key} local (${relative(projectDir, plugin.localPath)})`);
1141
+ else skipped.push(`${key} no URL resolved`);
1135
1142
  const generated = ["ui/src/lib/api-types.gen.ts", "ui/src/lib/auth-types.gen.ts"];
1136
1143
  if (hasLocalApiWorkspace) generated.push("api/src/lib/plugins-types.gen.ts", "api/src/lib/auth-types.gen.ts");
1137
1144
  if (existsSync(join(projectDir, "host", "src"))) generated.push("host/src/lib/auth-types.gen.ts");
1145
+ 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
1146
  return {
1139
1147
  status: "success",
1140
1148
  generated,
1141
1149
  fetched,
1142
1150
  skipped,
1143
- failed: [],
1144
- source: refreshed.runtime.api.source
1151
+ failed: []
1145
1152
  };
1146
1153
  }
1147
1154
  const artifacts = await generateCodeArtifacts(projectDir, refreshed.config, { runtimeConfig: refreshed.runtime });
@@ -1150,13 +1157,16 @@ var plugin_default = createPlugin({
1150
1157
  if (hasLocalApiWorkspace) generated.push("api/src/lib/plugins-types.gen.ts", "api/src/lib/auth-types.gen.ts");
1151
1158
  if (refreshed.runtime.auth && (refreshed.runtime.auth.source !== "local" || refreshed.runtime.auth.localPath)) generated.push("ui/src/lib/auth-types.gen.ts");
1152
1159
  if (existsSync(join(projectDir, "host", "src"))) generated.push("host/src/lib/auth-types.gen.ts");
1160
+ 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
1161
  const contractStatus = artifacts?.contractStatus ?? [];
1154
1162
  const fetched = [];
1155
1163
  const skipped = [];
1156
1164
  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)`);
1165
+ for (const entry of contractStatus) if (entry.source === "remote") fetched.push(entry.url ? `${entry.key} remote (${entry.url})` : entry.key);
1166
+ else if (entry.source === "local") {
1167
+ const path = entry.localPath ? ` (${relative(projectDir, entry.localPath)})` : "";
1168
+ skipped.push(`${entry.key} local${path}`);
1169
+ } else if (entry.source === "skipped") skipped.push(`${entry.key} no URL resolved`);
1160
1170
  else if (entry.source === "failed") {
1161
1171
  const detail = entry.error ? `: ${entry.error}` : "";
1162
1172
  failed.push(`${entry.key}${detail}`);
@@ -1166,8 +1176,7 @@ var plugin_default = createPlugin({
1166
1176
  generated,
1167
1177
  fetched,
1168
1178
  skipped,
1169
- failed,
1170
- source: refreshed.runtime.api.source
1179
+ failed
1171
1180
  };
1172
1181
  } catch (error) {
1173
1182
  return {