everything-dev 1.41.0 → 1.42.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 (55) hide show
  1. package/dist/cli/db-studio.cjs +123 -0
  2. package/dist/cli/db-studio.cjs.map +1 -0
  3. package/dist/cli/db-studio.mjs +119 -0
  4. package/dist/cli/db-studio.mjs.map +1 -0
  5. package/dist/cli/init.cjs +1 -1
  6. package/dist/cli/init.cjs.map +1 -1
  7. package/dist/cli/init.mjs +1 -1
  8. package/dist/cli/init.mjs.map +1 -1
  9. package/dist/cli/upgrade.cjs +1 -0
  10. package/dist/cli/upgrade.cjs.map +1 -1
  11. package/dist/cli/upgrade.mjs +1 -0
  12. package/dist/cli/upgrade.mjs.map +1 -1
  13. package/dist/cli.cjs +28 -0
  14. package/dist/cli.cjs.map +1 -1
  15. package/dist/cli.mjs +28 -0
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/config.cjs +2 -0
  18. package/dist/config.cjs.map +1 -1
  19. package/dist/config.d.cts.map +1 -1
  20. package/dist/config.d.mts.map +1 -1
  21. package/dist/config.mjs +2 -0
  22. package/dist/config.mjs.map +1 -1
  23. package/dist/contract.cjs +18 -1
  24. package/dist/contract.cjs.map +1 -1
  25. package/dist/contract.d.cts +49 -10
  26. package/dist/contract.d.cts.map +1 -1
  27. package/dist/contract.d.mts +49 -10
  28. package/dist/contract.d.mts.map +1 -1
  29. package/dist/contract.meta.cjs +8 -0
  30. package/dist/contract.meta.cjs.map +1 -1
  31. package/dist/contract.meta.d.cts +10 -0
  32. package/dist/contract.meta.d.mts +10 -0
  33. package/dist/contract.meta.mjs +8 -0
  34. package/dist/contract.meta.mjs.map +1 -1
  35. package/dist/contract.mjs +17 -2
  36. package/dist/contract.mjs.map +1 -1
  37. package/dist/index.cjs +2 -0
  38. package/dist/index.d.cts +2 -2
  39. package/dist/index.d.mts +2 -2
  40. package/dist/index.mjs +2 -2
  41. package/dist/plugin.cjs +40 -0
  42. package/dist/plugin.cjs.map +1 -1
  43. package/dist/plugin.d.cts +25 -5
  44. package/dist/plugin.d.mts +25 -5
  45. package/dist/plugin.mjs +40 -0
  46. package/dist/plugin.mjs.map +1 -1
  47. package/dist/types.cjs +2 -0
  48. package/dist/types.cjs.map +1 -1
  49. package/dist/types.d.cts +5 -2
  50. package/dist/types.d.cts.map +1 -1
  51. package/dist/types.d.mts +5 -2
  52. package/dist/types.d.mts.map +1 -1
  53. package/dist/types.mjs +2 -0
  54. package/dist/types.mjs.map +1 -1
  55. package/package.json +2 -2
package/dist/plugin.d.mts CHANGED
@@ -67,8 +67,8 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
67
67
  interactive: z.ZodOptional<z.ZodBoolean>;
68
68
  }, z.core.$strip>, z.ZodObject<{
69
69
  status: z.ZodEnum<{
70
- started: "started";
71
70
  error: "error";
71
+ started: "started";
72
72
  }>;
73
73
  description: z.ZodString;
74
74
  processes: z.ZodArray<z.ZodString>;
@@ -392,8 +392,8 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
392
392
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
393
393
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
394
394
  plugins: "plugins";
395
- host: "host";
396
395
  ui: "ui";
396
+ host: "host";
397
397
  api: "api";
398
398
  }>>>;
399
399
  noInteractive: z.ZodDefault<z.ZodBoolean>;
@@ -411,8 +411,8 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
411
411
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
412
412
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
413
413
  plugins: "plugins";
414
- host: "host";
415
414
  ui: "ui";
415
+ host: "host";
416
416
  api: "api";
417
417
  }>>>;
418
418
  filesCopied: z.ZodNumber;
@@ -497,8 +497,8 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
497
497
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
498
498
  typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
499
499
  env: z.ZodOptional<z.ZodEnum<{
500
- production: "production";
501
500
  development: "development";
501
+ production: "production";
502
502
  }>>;
503
503
  dryRun: z.ZodDefault<z.ZodBoolean>;
504
504
  }, z.core.$strip>, z.ZodObject<{
@@ -516,6 +516,24 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
516
516
  }>>;
517
517
  error: z.ZodOptional<z.ZodString>;
518
518
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
519
+ dbStudio: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
520
+ plugin: z.ZodDefault<z.ZodString>;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ status: z.ZodEnum<{
523
+ success: "success";
524
+ error: "error";
525
+ }>;
526
+ plugin: z.ZodString;
527
+ source: z.ZodEnum<{
528
+ local: "local";
529
+ remote: "remote";
530
+ }>;
531
+ section: z.ZodString;
532
+ databaseSecret: z.ZodOptional<z.ZodString>;
533
+ databaseUrl: z.ZodOptional<z.ZodString>;
534
+ workspaceDir: z.ZodOptional<z.ZodString>;
535
+ error: z.ZodOptional<z.ZodString>;
536
+ }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
519
537
  }, z.ZodObject<{
520
538
  configPath: z.ZodOptional<z.ZodString>;
521
539
  }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, undefined, {
@@ -647,7 +665,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
647
665
  }> | undefined;
648
666
  } | null;
649
667
  runtimeConfig: {
650
- env: "production" | "staging" | "development";
668
+ env: "development" | "production" | "staging";
651
669
  account: string;
652
670
  networkId: "testnet" | "mainnet";
653
671
  host: {
@@ -702,6 +720,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
702
720
  entry: string;
703
721
  source: "local" | "remote";
704
722
  integrity?: string | undefined;
723
+ extendsRef?: string | undefined;
705
724
  localPath?: string | undefined;
706
725
  port?: number | undefined;
707
726
  proxy?: string | undefined;
@@ -727,6 +746,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
727
746
  url: string;
728
747
  entry: string;
729
748
  source: "local" | "remote";
749
+ extendsRef?: string | undefined;
730
750
  localPath?: string | undefined;
731
751
  port?: number | undefined;
732
752
  proxy?: string | undefined;
package/dist/plugin.mjs CHANGED
@@ -1306,6 +1306,46 @@ var plugin_default = createPlugin({
1306
1306
  };
1307
1307
  }
1308
1308
  }),
1309
+ dbStudio: builder.dbStudio.handler(async ({ input }) => {
1310
+ try {
1311
+ const configPath = findConfigPath();
1312
+ if (!configPath) return {
1313
+ status: "error",
1314
+ plugin: input.plugin,
1315
+ source: "remote",
1316
+ section: "",
1317
+ error: "No bos.config.json found in current directory"
1318
+ };
1319
+ const projectDir = resolve(dirname(configPath));
1320
+ const refreshed = await loadResolvedConfig({ cwd: projectDir });
1321
+ if (!refreshed) return {
1322
+ status: "error",
1323
+ plugin: input.plugin,
1324
+ source: "remote",
1325
+ section: "",
1326
+ error: "Failed to load bos.config.json"
1327
+ };
1328
+ const { resolvePluginDbInfo } = await import("./cli/db-studio.mjs");
1329
+ const info = resolvePluginDbInfo(input.plugin, refreshed.runtime, projectDir);
1330
+ return {
1331
+ status: "success",
1332
+ plugin: info.key,
1333
+ source: info.source,
1334
+ section: info.section,
1335
+ databaseSecret: info.databaseSecret,
1336
+ databaseUrl: info.databaseUrl,
1337
+ workspaceDir: info.workspaceDir
1338
+ };
1339
+ } catch (error) {
1340
+ return {
1341
+ status: "error",
1342
+ plugin: input.plugin,
1343
+ source: "remote",
1344
+ section: "",
1345
+ error: error instanceof Error ? error.message : "Unknown error"
1346
+ };
1347
+ }
1348
+ }),
1309
1349
  status: builder.status.handler(async () => {
1310
1350
  try {
1311
1351
  const configPath = findConfigPath();