everything-dev 1.51.7 → 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.
- package/dist/api-contract.cjs +61 -16
- package/dist/api-contract.cjs.map +1 -1
- package/dist/api-contract.mjs +60 -17
- package/dist/api-contract.mjs.map +1 -1
- package/dist/app.cjs +1 -1
- package/dist/app.cjs.map +1 -1
- package/dist/app.mjs +1 -1
- package/dist/app.mjs.map +1 -1
- package/dist/cli/init.cjs +76 -52
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts +15 -7
- package/dist/cli/init.d.cts.map +1 -1
- package/dist/cli/init.d.mts +15 -7
- package/dist/cli/init.d.mts.map +1 -1
- package/dist/cli/init.mjs +70 -47
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/sync.cjs +34 -5
- package/dist/cli/sync.cjs.map +1 -1
- package/dist/cli/sync.mjs +35 -6
- package/dist/cli/sync.mjs.map +1 -1
- package/dist/cli/upgrade.cjs +151 -93
- package/dist/cli/upgrade.cjs.map +1 -1
- package/dist/cli/upgrade.mjs +138 -80
- package/dist/cli/upgrade.mjs.map +1 -1
- package/dist/cli/utils/helpers.cjs +25 -0
- package/dist/cli/utils/helpers.cjs.map +1 -0
- package/dist/cli/utils/helpers.mjs +23 -0
- package/dist/cli/utils/helpers.mjs.map +1 -0
- package/dist/cli.cjs +84 -72
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +84 -72
- package/dist/cli.mjs.map +1 -1
- package/dist/code-artifacts.cjs +1 -1
- package/dist/code-artifacts.mjs +1 -1
- package/dist/config.cjs +44 -4
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +44 -4
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +9 -4
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +34 -24
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +34 -24
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.meta.cjs +2 -1
- package/dist/contract.meta.cjs.map +1 -1
- package/dist/contract.meta.d.cts +3 -0
- package/dist/contract.meta.d.mts +3 -0
- package/dist/contract.meta.mjs +2 -1
- package/dist/contract.meta.mjs.map +1 -1
- package/dist/contract.mjs +9 -4
- package/dist/contract.mjs.map +1 -1
- package/dist/dag.cjs +176 -0
- package/dist/dag.cjs.map +1 -0
- package/dist/dag.d.cts +24 -0
- package/dist/dag.d.cts.map +1 -0
- package/dist/dag.d.mts +24 -0
- package/dist/dag.d.mts.map +1 -0
- package/dist/dag.mjs +167 -0
- package/dist/dag.mjs.map +1 -0
- 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/infra/planner.cjs +1 -1
- package/dist/infra/planner.mjs +1 -1
- package/dist/near-cli.cjs +1 -1
- package/dist/near-cli.mjs +1 -1
- package/dist/plugin.cjs +27 -18
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +57 -11
- package/dist/plugin.d.mts +57 -11
- package/dist/plugin.mjs +28 -19
- package/dist/plugin.mjs.map +1 -1
- package/dist/types.cjs +41 -6
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +118 -3
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +118 -3
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +40 -7
- package/dist/types.mjs.map +1 -1
- package/package.json +6 -1
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>;
|
|
@@ -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<{
|
|
@@ -387,10 +388,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
|
|
|
387
388
|
source: z.ZodOptional<z.ZodString>;
|
|
388
389
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
389
390
|
overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
390
|
-
|
|
391
|
+
plugins: "plugins";
|
|
391
392
|
ui: "ui";
|
|
392
393
|
api: "api";
|
|
393
|
-
|
|
394
|
+
host: "host";
|
|
394
395
|
}>>>;
|
|
395
396
|
noInteractive: z.ZodDefault<z.ZodBoolean>;
|
|
396
397
|
noInstall: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -406,10 +407,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
|
|
|
406
407
|
extends: z.ZodString;
|
|
407
408
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
408
409
|
overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
409
|
-
|
|
410
|
+
plugins: "plugins";
|
|
410
411
|
ui: "ui";
|
|
411
412
|
api: "api";
|
|
412
|
-
|
|
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>>;
|
|
@@ -495,10 +503,11 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
|
|
|
495
503
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
496
504
|
typesGen: import("@orpc/contract").ContractProcedure<z.ZodObject<{
|
|
497
505
|
env: z.ZodOptional<z.ZodEnum<{
|
|
498
|
-
production: "production";
|
|
499
506
|
development: "development";
|
|
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,10 +736,11 @@ 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: {
|
|
737
|
-
env: "
|
|
743
|
+
env: "development" | "production" | "staging";
|
|
738
744
|
account: string;
|
|
739
745
|
networkId: "testnet" | "mainnet";
|
|
740
746
|
host: {
|
|
@@ -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
|
@@ -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>;
|
|
@@ -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<{
|
|
@@ -387,10 +388,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
|
|
|
387
388
|
source: z.ZodOptional<z.ZodString>;
|
|
388
389
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
389
390
|
overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
390
|
-
|
|
391
|
+
plugins: "plugins";
|
|
391
392
|
ui: "ui";
|
|
392
393
|
api: "api";
|
|
393
|
-
|
|
394
|
+
host: "host";
|
|
394
395
|
}>>>;
|
|
395
396
|
noInteractive: z.ZodDefault<z.ZodBoolean>;
|
|
396
397
|
noInstall: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -406,10 +407,10 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
|
|
|
406
407
|
extends: z.ZodString;
|
|
407
408
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
408
409
|
overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
409
|
-
|
|
410
|
+
plugins: "plugins";
|
|
410
411
|
ui: "ui";
|
|
411
412
|
api: "api";
|
|
412
|
-
|
|
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>>;
|
|
@@ -495,10 +503,11 @@ declare const _default: import("every-plugin").LoadedPluginWithBinding<{
|
|
|
495
503
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
496
504
|
typesGen: import("@orpc/contract").ContractProcedure<z.ZodObject<{
|
|
497
505
|
env: z.ZodOptional<z.ZodEnum<{
|
|
498
|
-
production: "production";
|
|
499
506
|
development: "development";
|
|
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,10 +736,11 @@ 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: {
|
|
737
|
-
env: "
|
|
743
|
+
env: "development" | "production" | "staging";
|
|
738
744
|
account: string;
|
|
739
745
|
networkId: "testnet" | "mainnet";
|
|
740
746
|
host: {
|
|
@@ -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
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
else
|
|
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")
|
|
1159
|
-
|
|
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 {
|