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.
- package/dist/cli/db-studio.cjs +123 -0
- package/dist/cli/db-studio.cjs.map +1 -0
- package/dist/cli/db-studio.mjs +119 -0
- package/dist/cli/db-studio.mjs.map +1 -0
- package/dist/cli/init.cjs +1 -1
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.mjs +1 -1
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/upgrade.cjs +1 -0
- package/dist/cli/upgrade.cjs.map +1 -1
- package/dist/cli/upgrade.mjs +1 -0
- package/dist/cli/upgrade.mjs.map +1 -1
- package/dist/cli.cjs +28 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +28 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/config.cjs +2 -0
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +2 -0
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +18 -1
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +49 -10
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +49 -10
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.meta.cjs +8 -0
- package/dist/contract.meta.cjs.map +1 -1
- package/dist/contract.meta.d.cts +10 -0
- package/dist/contract.meta.d.mts +10 -0
- package/dist/contract.meta.mjs +8 -0
- package/dist/contract.meta.mjs.map +1 -1
- package/dist/contract.mjs +17 -2
- package/dist/contract.mjs.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/plugin.cjs +40 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +25 -5
- package/dist/plugin.d.mts +25 -5
- package/dist/plugin.mjs +40 -0
- package/dist/plugin.mjs.map +1 -1
- package/dist/types.cjs +2 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +5 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +5 -2
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +2 -0
- package/dist/types.mjs.map +1 -1
- 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: "
|
|
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();
|