everything-dev 1.47.3 → 1.49.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/_virtual/_rolldown/runtime.cjs +2 -0
- package/dist/_virtual/_rolldown/runtime.mjs +32 -0
- package/dist/cli/db-doctor.cjs +131 -0
- package/dist/cli/db-doctor.cjs.map +1 -0
- package/dist/cli/db-doctor.mjs +130 -0
- package/dist/cli/db-doctor.mjs.map +1 -0
- package/dist/cli/db-repair.cjs +115 -0
- package/dist/cli/db-repair.cjs.map +1 -0
- package/dist/cli/db-repair.mjs +114 -0
- package/dist/cli/db-repair.mjs.map +1 -0
- package/dist/cli/db-studio.cjs +6 -0
- package/dist/cli/db-studio.cjs.map +1 -1
- package/dist/cli/db-studio.mjs +6 -0
- package/dist/cli/db-studio.mjs.map +1 -1
- package/dist/cli/init.cjs +4 -0
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts.map +1 -1
- package/dist/cli/init.d.mts.map +1 -1
- package/dist/cli/init.mjs +4 -0
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/sync.cjs +10 -1
- package/dist/cli/sync.cjs.map +1 -1
- package/dist/cli/sync.mjs +10 -1
- package/dist/cli/sync.mjs.map +1 -1
- package/dist/cli.cjs +46 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +46 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/contract.cjs +46 -1
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +92 -8
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +92 -8
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.meta.cjs +20 -0
- package/dist/contract.meta.cjs.map +1 -1
- package/dist/contract.meta.d.cts +26 -0
- package/dist/contract.meta.d.mts +26 -0
- package/dist/contract.meta.mjs +20 -0
- package/dist/contract.meta.mjs.map +1 -1
- package/dist/contract.mjs +43 -2
- package/dist/contract.mjs.map +1 -1
- package/dist/db.cjs +74 -0
- package/dist/db.cjs.map +1 -0
- package/dist/db.d.cts +23 -0
- package/dist/db.d.cts.map +1 -0
- package/dist/db.d.mts +23 -0
- package/dist/db.d.mts.map +1 -0
- package/dist/db.mjs +66 -0
- package/dist/db.mjs.map +1 -0
- package/dist/index.cjs +4 -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 +93 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +43 -4
- package/dist/plugin.d.mts +43 -4
- package/dist/plugin.mjs +93 -0
- package/dist/plugin.mjs.map +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.mts +2 -2
- package/package.json +7 -2
package/dist/contract.d.cts
CHANGED
|
@@ -258,8 +258,8 @@ declare const PluginPublishResultSchema: z.ZodObject<{
|
|
|
258
258
|
declare const WorkspaceDeployResultSchema: z.ZodObject<{
|
|
259
259
|
key: z.ZodString;
|
|
260
260
|
kind: z.ZodEnum<{
|
|
261
|
-
plugin: "plugin";
|
|
262
261
|
app: "app";
|
|
262
|
+
plugin: "plugin";
|
|
263
263
|
}>;
|
|
264
264
|
success: z.ZodBoolean;
|
|
265
265
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -297,8 +297,8 @@ declare const PublishResultSchema: z.ZodObject<{
|
|
|
297
297
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
298
|
key: z.ZodString;
|
|
299
299
|
kind: z.ZodEnum<{
|
|
300
|
-
plugin: "plugin";
|
|
301
300
|
app: "app";
|
|
301
|
+
plugin: "plugin";
|
|
302
302
|
}>;
|
|
303
303
|
success: z.ZodBoolean;
|
|
304
304
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -341,8 +341,8 @@ declare const DeployResultSchema: z.ZodObject<{
|
|
|
341
341
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
342
342
|
key: z.ZodString;
|
|
343
343
|
kind: z.ZodEnum<{
|
|
344
|
-
plugin: "plugin";
|
|
345
344
|
app: "app";
|
|
345
|
+
plugin: "plugin";
|
|
346
346
|
}>;
|
|
347
347
|
success: z.ZodBoolean;
|
|
348
348
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -505,8 +505,8 @@ declare const StatusResultSchema: z.ZodObject<{
|
|
|
505
505
|
}, z.core.$strip>;
|
|
506
506
|
declare const TypesGenOptionsSchema: z.ZodObject<{
|
|
507
507
|
env: z.ZodOptional<z.ZodEnum<{
|
|
508
|
-
production: "production";
|
|
509
508
|
development: "development";
|
|
509
|
+
production: "production";
|
|
510
510
|
}>>;
|
|
511
511
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
512
512
|
}, z.core.$strip>;
|
|
@@ -544,6 +544,47 @@ declare const DbStudioResultSchema: z.ZodObject<{
|
|
|
544
544
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
545
545
|
error: z.ZodOptional<z.ZodString>;
|
|
546
546
|
}, z.core.$strip>;
|
|
547
|
+
declare const DbDoctorOptionsSchema: z.ZodObject<{
|
|
548
|
+
plugin: z.ZodString;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
declare const DbDoctorResultSchema: z.ZodObject<{
|
|
551
|
+
status: z.ZodEnum<{
|
|
552
|
+
success: "success";
|
|
553
|
+
error: "error";
|
|
554
|
+
}>;
|
|
555
|
+
plugin: z.ZodString;
|
|
556
|
+
slug: z.ZodString;
|
|
557
|
+
journalTable: z.ZodString;
|
|
558
|
+
journalSchema: z.ZodString;
|
|
559
|
+
diagnosis: z.ZodString;
|
|
560
|
+
localMigrationCount: z.ZodNumber;
|
|
561
|
+
appliedHashCount: z.ZodNumber;
|
|
562
|
+
expectedTables: z.ZodArray<z.ZodString>;
|
|
563
|
+
missingTables: z.ZodArray<z.ZodString>;
|
|
564
|
+
legacyCount: z.ZodNumber;
|
|
565
|
+
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
566
|
+
dbSecret: z.ZodOptional<z.ZodString>;
|
|
567
|
+
dbUrl: z.ZodOptional<z.ZodString>;
|
|
568
|
+
error: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
declare const DbRepairOptionsSchema: z.ZodObject<{
|
|
571
|
+
plugin: z.ZodString;
|
|
572
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
573
|
+
"history-reset": "history-reset";
|
|
574
|
+
recreate: "recreate";
|
|
575
|
+
}>>;
|
|
576
|
+
yes: z.ZodOptional<z.ZodBoolean>;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
declare const DbRepairResultSchema: z.ZodObject<{
|
|
579
|
+
status: z.ZodEnum<{
|
|
580
|
+
error: "error";
|
|
581
|
+
repaired: "repaired";
|
|
582
|
+
refused: "refused";
|
|
583
|
+
}>;
|
|
584
|
+
message: z.ZodString;
|
|
585
|
+
diagnosis: z.ZodAny;
|
|
586
|
+
error: z.ZodOptional<z.ZodString>;
|
|
587
|
+
}, z.core.$strip>;
|
|
547
588
|
declare const bosContract: {
|
|
548
589
|
dev: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
549
590
|
host: z.ZodDefault<z.ZodEnum<{
|
|
@@ -814,8 +855,8 @@ declare const bosContract: {
|
|
|
814
855
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
815
856
|
key: z.ZodString;
|
|
816
857
|
kind: z.ZodEnum<{
|
|
817
|
-
plugin: "plugin";
|
|
818
858
|
app: "app";
|
|
859
|
+
plugin: "plugin";
|
|
819
860
|
}>;
|
|
820
861
|
success: z.ZodBoolean;
|
|
821
862
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -857,8 +898,8 @@ declare const bosContract: {
|
|
|
857
898
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
858
899
|
key: z.ZodString;
|
|
859
900
|
kind: z.ZodEnum<{
|
|
860
|
-
plugin: "plugin";
|
|
861
901
|
app: "app";
|
|
902
|
+
plugin: "plugin";
|
|
862
903
|
}>;
|
|
863
904
|
success: z.ZodBoolean;
|
|
864
905
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -1001,8 +1042,8 @@ declare const bosContract: {
|
|
|
1001
1042
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1002
1043
|
typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1003
1044
|
env: z.ZodOptional<z.ZodEnum<{
|
|
1004
|
-
production: "production";
|
|
1005
1045
|
development: "development";
|
|
1046
|
+
production: "production";
|
|
1006
1047
|
}>>;
|
|
1007
1048
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
1008
1049
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1038,6 +1079,45 @@ declare const bosContract: {
|
|
|
1038
1079
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
1039
1080
|
error: z.ZodOptional<z.ZodString>;
|
|
1040
1081
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1082
|
+
dbDoctor: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1083
|
+
plugin: z.ZodString;
|
|
1084
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1085
|
+
status: z.ZodEnum<{
|
|
1086
|
+
success: "success";
|
|
1087
|
+
error: "error";
|
|
1088
|
+
}>;
|
|
1089
|
+
plugin: z.ZodString;
|
|
1090
|
+
slug: z.ZodString;
|
|
1091
|
+
journalTable: z.ZodString;
|
|
1092
|
+
journalSchema: z.ZodString;
|
|
1093
|
+
diagnosis: z.ZodString;
|
|
1094
|
+
localMigrationCount: z.ZodNumber;
|
|
1095
|
+
appliedHashCount: z.ZodNumber;
|
|
1096
|
+
expectedTables: z.ZodArray<z.ZodString>;
|
|
1097
|
+
missingTables: z.ZodArray<z.ZodString>;
|
|
1098
|
+
legacyCount: z.ZodNumber;
|
|
1099
|
+
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
1100
|
+
dbSecret: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
dbUrl: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1104
|
+
dbRepair: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1105
|
+
plugin: z.ZodString;
|
|
1106
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
1107
|
+
"history-reset": "history-reset";
|
|
1108
|
+
recreate: "recreate";
|
|
1109
|
+
}>>;
|
|
1110
|
+
yes: z.ZodOptional<z.ZodBoolean>;
|
|
1111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1112
|
+
status: z.ZodEnum<{
|
|
1113
|
+
error: "error";
|
|
1114
|
+
repaired: "repaired";
|
|
1115
|
+
refused: "refused";
|
|
1116
|
+
}>;
|
|
1117
|
+
message: z.ZodString;
|
|
1118
|
+
diagnosis: z.ZodAny;
|
|
1119
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1041
1121
|
};
|
|
1042
1122
|
type DevOptions = z.infer<typeof DevOptionsSchema>;
|
|
1043
1123
|
type DevResult = z.infer<typeof DevResultSchema>;
|
|
@@ -1072,7 +1152,11 @@ type TypesGenOptions = z.infer<typeof TypesGenOptionsSchema>;
|
|
|
1072
1152
|
type TypesGenResult = z.infer<typeof TypesGenResultSchema>;
|
|
1073
1153
|
type DbStudioOptions = z.infer<typeof DbStudioOptionsSchema>;
|
|
1074
1154
|
type DbStudioResult = z.infer<typeof DbStudioResultSchema>;
|
|
1155
|
+
type DbDoctorOptions = z.infer<typeof DbDoctorOptionsSchema>;
|
|
1156
|
+
type DbDoctorResult = z.infer<typeof DbDoctorResultSchema>;
|
|
1157
|
+
type DbRepairOptions = z.infer<typeof DbRepairOptionsSchema>;
|
|
1158
|
+
type DbRepairResult = z.infer<typeof DbRepairResultSchema>;
|
|
1075
1159
|
type RuntimeOverrideTarget = z.infer<typeof RuntimeOverrideTargetSchema>;
|
|
1076
1160
|
//#endregion
|
|
1077
|
-
export { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbStudioOptions, DbStudioOptionsSchema, DbStudioResult, DbStudioResultSchema, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResult, PublishResultSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, WorkspaceDeployResult, WorkspaceDeployResultSchema, bosContract };
|
|
1161
|
+
export { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbDoctorOptions, DbDoctorOptionsSchema, DbDoctorResult, DbDoctorResultSchema, DbRepairOptions, DbRepairOptionsSchema, DbRepairResult, DbRepairResultSchema, DbStudioOptions, DbStudioOptionsSchema, DbStudioResult, DbStudioResultSchema, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResult, PublishResultSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, WorkspaceDeployResult, WorkspaceDeployResultSchema, bosContract };
|
|
1078
1162
|
//# sourceMappingURL=contract.d.cts.map
|
package/dist/contract.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.cts","names":[],"sources":["../src/contract.ts"],"mappings":";;;;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cAKjB,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAYhB,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOf,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAQlB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,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Aa,qBAAA;AAAA,KACjC,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAC5B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,KAC/B,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAC9B,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA"}
|
package/dist/contract.d.mts
CHANGED
|
@@ -258,8 +258,8 @@ declare const PluginPublishResultSchema: z.ZodObject<{
|
|
|
258
258
|
declare const WorkspaceDeployResultSchema: z.ZodObject<{
|
|
259
259
|
key: z.ZodString;
|
|
260
260
|
kind: z.ZodEnum<{
|
|
261
|
-
plugin: "plugin";
|
|
262
261
|
app: "app";
|
|
262
|
+
plugin: "plugin";
|
|
263
263
|
}>;
|
|
264
264
|
success: z.ZodBoolean;
|
|
265
265
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -297,8 +297,8 @@ declare const PublishResultSchema: z.ZodObject<{
|
|
|
297
297
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
298
|
key: z.ZodString;
|
|
299
299
|
kind: z.ZodEnum<{
|
|
300
|
-
plugin: "plugin";
|
|
301
300
|
app: "app";
|
|
301
|
+
plugin: "plugin";
|
|
302
302
|
}>;
|
|
303
303
|
success: z.ZodBoolean;
|
|
304
304
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -341,8 +341,8 @@ declare const DeployResultSchema: z.ZodObject<{
|
|
|
341
341
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
342
342
|
key: z.ZodString;
|
|
343
343
|
kind: z.ZodEnum<{
|
|
344
|
-
plugin: "plugin";
|
|
345
344
|
app: "app";
|
|
345
|
+
plugin: "plugin";
|
|
346
346
|
}>;
|
|
347
347
|
success: z.ZodBoolean;
|
|
348
348
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -505,8 +505,8 @@ declare const StatusResultSchema: z.ZodObject<{
|
|
|
505
505
|
}, z.core.$strip>;
|
|
506
506
|
declare const TypesGenOptionsSchema: z.ZodObject<{
|
|
507
507
|
env: z.ZodOptional<z.ZodEnum<{
|
|
508
|
-
production: "production";
|
|
509
508
|
development: "development";
|
|
509
|
+
production: "production";
|
|
510
510
|
}>>;
|
|
511
511
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
512
512
|
}, z.core.$strip>;
|
|
@@ -544,6 +544,47 @@ declare const DbStudioResultSchema: z.ZodObject<{
|
|
|
544
544
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
545
545
|
error: z.ZodOptional<z.ZodString>;
|
|
546
546
|
}, z.core.$strip>;
|
|
547
|
+
declare const DbDoctorOptionsSchema: z.ZodObject<{
|
|
548
|
+
plugin: z.ZodString;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
declare const DbDoctorResultSchema: z.ZodObject<{
|
|
551
|
+
status: z.ZodEnum<{
|
|
552
|
+
success: "success";
|
|
553
|
+
error: "error";
|
|
554
|
+
}>;
|
|
555
|
+
plugin: z.ZodString;
|
|
556
|
+
slug: z.ZodString;
|
|
557
|
+
journalTable: z.ZodString;
|
|
558
|
+
journalSchema: z.ZodString;
|
|
559
|
+
diagnosis: z.ZodString;
|
|
560
|
+
localMigrationCount: z.ZodNumber;
|
|
561
|
+
appliedHashCount: z.ZodNumber;
|
|
562
|
+
expectedTables: z.ZodArray<z.ZodString>;
|
|
563
|
+
missingTables: z.ZodArray<z.ZodString>;
|
|
564
|
+
legacyCount: z.ZodNumber;
|
|
565
|
+
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
566
|
+
dbSecret: z.ZodOptional<z.ZodString>;
|
|
567
|
+
dbUrl: z.ZodOptional<z.ZodString>;
|
|
568
|
+
error: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
declare const DbRepairOptionsSchema: z.ZodObject<{
|
|
571
|
+
plugin: z.ZodString;
|
|
572
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
573
|
+
"history-reset": "history-reset";
|
|
574
|
+
recreate: "recreate";
|
|
575
|
+
}>>;
|
|
576
|
+
yes: z.ZodOptional<z.ZodBoolean>;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
declare const DbRepairResultSchema: z.ZodObject<{
|
|
579
|
+
status: z.ZodEnum<{
|
|
580
|
+
error: "error";
|
|
581
|
+
repaired: "repaired";
|
|
582
|
+
refused: "refused";
|
|
583
|
+
}>;
|
|
584
|
+
message: z.ZodString;
|
|
585
|
+
diagnosis: z.ZodAny;
|
|
586
|
+
error: z.ZodOptional<z.ZodString>;
|
|
587
|
+
}, z.core.$strip>;
|
|
547
588
|
declare const bosContract: {
|
|
548
589
|
dev: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
549
590
|
host: z.ZodDefault<z.ZodEnum<{
|
|
@@ -814,8 +855,8 @@ declare const bosContract: {
|
|
|
814
855
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
815
856
|
key: z.ZodString;
|
|
816
857
|
kind: z.ZodEnum<{
|
|
817
|
-
plugin: "plugin";
|
|
818
858
|
app: "app";
|
|
859
|
+
plugin: "plugin";
|
|
819
860
|
}>;
|
|
820
861
|
success: z.ZodBoolean;
|
|
821
862
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -857,8 +898,8 @@ declare const bosContract: {
|
|
|
857
898
|
deployResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
858
899
|
key: z.ZodString;
|
|
859
900
|
kind: z.ZodEnum<{
|
|
860
|
-
plugin: "plugin";
|
|
861
901
|
app: "app";
|
|
902
|
+
plugin: "plugin";
|
|
862
903
|
}>;
|
|
863
904
|
success: z.ZodBoolean;
|
|
864
905
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -1001,8 +1042,8 @@ declare const bosContract: {
|
|
|
1001
1042
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1002
1043
|
typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1003
1044
|
env: z.ZodOptional<z.ZodEnum<{
|
|
1004
|
-
production: "production";
|
|
1005
1045
|
development: "development";
|
|
1046
|
+
production: "production";
|
|
1006
1047
|
}>>;
|
|
1007
1048
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
1008
1049
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1038,6 +1079,45 @@ declare const bosContract: {
|
|
|
1038
1079
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
1039
1080
|
error: z.ZodOptional<z.ZodString>;
|
|
1040
1081
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1082
|
+
dbDoctor: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1083
|
+
plugin: z.ZodString;
|
|
1084
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1085
|
+
status: z.ZodEnum<{
|
|
1086
|
+
success: "success";
|
|
1087
|
+
error: "error";
|
|
1088
|
+
}>;
|
|
1089
|
+
plugin: z.ZodString;
|
|
1090
|
+
slug: z.ZodString;
|
|
1091
|
+
journalTable: z.ZodString;
|
|
1092
|
+
journalSchema: z.ZodString;
|
|
1093
|
+
diagnosis: z.ZodString;
|
|
1094
|
+
localMigrationCount: z.ZodNumber;
|
|
1095
|
+
appliedHashCount: z.ZodNumber;
|
|
1096
|
+
expectedTables: z.ZodArray<z.ZodString>;
|
|
1097
|
+
missingTables: z.ZodArray<z.ZodString>;
|
|
1098
|
+
legacyCount: z.ZodNumber;
|
|
1099
|
+
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
1100
|
+
dbSecret: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
dbUrl: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1104
|
+
dbRepair: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1105
|
+
plugin: z.ZodString;
|
|
1106
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
1107
|
+
"history-reset": "history-reset";
|
|
1108
|
+
recreate: "recreate";
|
|
1109
|
+
}>>;
|
|
1110
|
+
yes: z.ZodOptional<z.ZodBoolean>;
|
|
1111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1112
|
+
status: z.ZodEnum<{
|
|
1113
|
+
error: "error";
|
|
1114
|
+
repaired: "repaired";
|
|
1115
|
+
refused: "refused";
|
|
1116
|
+
}>;
|
|
1117
|
+
message: z.ZodString;
|
|
1118
|
+
diagnosis: z.ZodAny;
|
|
1119
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1041
1121
|
};
|
|
1042
1122
|
type DevOptions = z.infer<typeof DevOptionsSchema>;
|
|
1043
1123
|
type DevResult = z.infer<typeof DevResultSchema>;
|
|
@@ -1072,7 +1152,11 @@ type TypesGenOptions = z.infer<typeof TypesGenOptionsSchema>;
|
|
|
1072
1152
|
type TypesGenResult = z.infer<typeof TypesGenResultSchema>;
|
|
1073
1153
|
type DbStudioOptions = z.infer<typeof DbStudioOptionsSchema>;
|
|
1074
1154
|
type DbStudioResult = z.infer<typeof DbStudioResultSchema>;
|
|
1155
|
+
type DbDoctorOptions = z.infer<typeof DbDoctorOptionsSchema>;
|
|
1156
|
+
type DbDoctorResult = z.infer<typeof DbDoctorResultSchema>;
|
|
1157
|
+
type DbRepairOptions = z.infer<typeof DbRepairOptionsSchema>;
|
|
1158
|
+
type DbRepairResult = z.infer<typeof DbRepairResultSchema>;
|
|
1075
1159
|
type RuntimeOverrideTarget = z.infer<typeof RuntimeOverrideTargetSchema>;
|
|
1076
1160
|
//#endregion
|
|
1077
|
-
export { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbStudioOptions, DbStudioOptionsSchema, DbStudioResult, DbStudioResultSchema, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResult, PublishResultSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, WorkspaceDeployResult, WorkspaceDeployResultSchema, bosContract };
|
|
1161
|
+
export { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbDoctorOptions, DbDoctorOptionsSchema, DbDoctorResult, DbDoctorResultSchema, DbRepairOptions, DbRepairOptionsSchema, DbRepairResult, DbRepairResultSchema, DbStudioOptions, DbStudioOptionsSchema, DbStudioResult, DbStudioResultSchema, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResult, PublishResultSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, WorkspaceDeployResult, WorkspaceDeployResultSchema, bosContract };
|
|
1078
1162
|
//# sourceMappingURL=contract.d.mts.map
|
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,CAAA,CAAE,KAAA,QAAa,2BAAA"}
|
package/dist/contract.meta.cjs
CHANGED
|
@@ -151,6 +151,26 @@ const cliCommandMeta = {
|
|
|
151
151
|
description: "Plugin key: api, auth, or a plugin name (default: api)"
|
|
152
152
|
} }
|
|
153
153
|
},
|
|
154
|
+
dbDoctor: {
|
|
155
|
+
commandPath: ["db", "doctor"],
|
|
156
|
+
summary: "Diagnose migration health for a plugin's database",
|
|
157
|
+
fields: { plugin: {
|
|
158
|
+
positional: true,
|
|
159
|
+
description: "Plugin key: api, auth, or a plugin name"
|
|
160
|
+
} }
|
|
161
|
+
},
|
|
162
|
+
dbRepair: {
|
|
163
|
+
commandPath: ["db", "repair"],
|
|
164
|
+
summary: "Reset migration history and reapply migrations for a plugin",
|
|
165
|
+
fields: {
|
|
166
|
+
plugin: {
|
|
167
|
+
positional: true,
|
|
168
|
+
description: "Plugin key: api, auth, or a plugin name"
|
|
169
|
+
},
|
|
170
|
+
mode: { description: "Repair mode: history-reset (default) or recreate (not yet supported)" },
|
|
171
|
+
yes: { description: "Skip confirmation prompt" }
|
|
172
|
+
}
|
|
173
|
+
},
|
|
154
174
|
status: {
|
|
155
175
|
commandPath: ["status"],
|
|
156
176
|
summary: "Show project health, versions, and update availability",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.meta.cjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n fields: {\n remotePlugins: {\n description:\n \"Comma-separated plugin IDs to force remote (e.g. --remote-plugins auth,registry)\",\n },\n },\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n fields: {\n full: { description: \"Print the fully resolved configuration\" },\n },\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: {\n positional: true,\n description: \"Plugin source (local:path, bos://account/domain, or URL)\",\n },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n fields: {\n deploy: { description: \"Build and deploy all workspaces before publish\" },\n dryRun: { description: \"Preview what would be published without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n env: { description: \"Environment: production or staging\" },\n network: { description: \"NEAR network: mainnet or testnet\" },\n },\n },\n deploy: {\n commandPath: [\"deploy\"],\n summary: \"Publish config and trigger Railway redeploy\",\n interactive: false,\n fields: {\n env: { description: \"Environment: production or staging\" },\n build: { description: \"Build and deploy workspaces before publish (default: true)\" },\n dryRun: { description: \"Preview what would be deployed without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n service: { description: \"Override Railway service name from config\" },\n },\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project by extending a deployed app or template\",\n interactive: true,\n fields: {\n domain: {\n positional: true,\n description: \"New project domain (e.g. myapp.everything.dev)\",\n },\n extends: {\n description: \"Parent to extend from (e.g. bos://account/gateway or account/gateway)\",\n },\n account: { description: \"New project NEAR account (auto-derived from extends)\" },\n directory: { description: \"Target directory (auto-derived from domain)\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n plugins: {\n description: \"Comma-separated plugin keys to include (requires --overrides=plugins)\",\n },\n overrides: {\n description: \"Comma-separated sections to customize locally: ui,api,host,plugins\",\n },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n sync: {\n commandPath: [\"sync\"],\n summary: \"Sync template files from parent project\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing files\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n upgrade: {\n commandPath: [\"upgrade\"],\n summary: \"Upgrade framework packages and sync template files\",\n interactive: true,\n fields: {\n dryRun: { description: \"Preview changes without writing\" },\n noInstall: { description: \"Skip bun install\" },\n noSync: { description: \"Only upgrade packages, skip template sync\" },\n },\n },\n typesGen: {\n commandPath: [\"types\", \"gen\"],\n summary: \"Generate type definitions from configured API and plugin contracts\",\n interactive: false,\n fields: {\n env: { description: \"Environment: development (default) or production\" },\n dryRun: { description: \"Preview what would be fetched without writing files\" },\n },\n },\n dbStudio: {\n commandPath: [\"db\", \"studio\"],\n summary: \"Open Drizzle Studio for a plugin's database\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name (default: api)\",\n },\n },\n },\n status: {\n commandPath: [\"status\"],\n summary: \"Show project health, versions, and update availability\",\n interactive: false,\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";;;AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,eAAe,EACb,aACE,oFACH,EACF;EAC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d;CACF"}
|
|
1
|
+
{"version":3,"file":"contract.meta.cjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n fields: {\n remotePlugins: {\n description:\n \"Comma-separated plugin IDs to force remote (e.g. --remote-plugins auth,registry)\",\n },\n },\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n fields: {\n full: { description: \"Print the fully resolved configuration\" },\n },\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: {\n positional: true,\n description: \"Plugin source (local:path, bos://account/domain, or URL)\",\n },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n fields: {\n deploy: { description: \"Build and deploy all workspaces before publish\" },\n dryRun: { description: \"Preview what would be published without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n env: { description: \"Environment: production or staging\" },\n network: { description: \"NEAR network: mainnet or testnet\" },\n },\n },\n deploy: {\n commandPath: [\"deploy\"],\n summary: \"Publish config and trigger Railway redeploy\",\n interactive: false,\n fields: {\n env: { description: \"Environment: production or staging\" },\n build: { description: \"Build and deploy workspaces before publish (default: true)\" },\n dryRun: { description: \"Preview what would be deployed without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n service: { description: \"Override Railway service name from config\" },\n },\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project by extending a deployed app or template\",\n interactive: true,\n fields: {\n domain: {\n positional: true,\n description: \"New project domain (e.g. myapp.everything.dev)\",\n },\n extends: {\n description: \"Parent to extend from (e.g. bos://account/gateway or account/gateway)\",\n },\n account: { description: \"New project NEAR account (auto-derived from extends)\" },\n directory: { description: \"Target directory (auto-derived from domain)\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n plugins: {\n description: \"Comma-separated plugin keys to include (requires --overrides=plugins)\",\n },\n overrides: {\n description: \"Comma-separated sections to customize locally: ui,api,host,plugins\",\n },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n sync: {\n commandPath: [\"sync\"],\n summary: \"Sync template files from parent project\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing files\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n upgrade: {\n commandPath: [\"upgrade\"],\n summary: \"Upgrade framework packages and sync template files\",\n interactive: true,\n fields: {\n dryRun: { description: \"Preview changes without writing\" },\n noInstall: { description: \"Skip bun install\" },\n noSync: { description: \"Only upgrade packages, skip template sync\" },\n },\n },\n typesGen: {\n commandPath: [\"types\", \"gen\"],\n summary: \"Generate type definitions from configured API and plugin contracts\",\n interactive: false,\n fields: {\n env: { description: \"Environment: development (default) or production\" },\n dryRun: { description: \"Preview what would be fetched without writing files\" },\n },\n },\n dbStudio: {\n commandPath: [\"db\", \"studio\"],\n summary: \"Open Drizzle Studio for a plugin's database\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name (default: api)\",\n },\n },\n },\n dbDoctor: {\n commandPath: [\"db\", \"doctor\"],\n summary: \"Diagnose migration health for a plugin's database\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name\",\n },\n },\n },\n dbRepair: {\n commandPath: [\"db\", \"repair\"],\n summary: \"Reset migration history and reapply migrations for a plugin\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name\",\n },\n mode: {\n description: \"Repair mode: history-reset (default) or recreate (not yet supported)\",\n },\n yes: {\n description: \"Skip confirmation prompt\",\n },\n },\n },\n status: {\n commandPath: [\"status\"],\n summary: \"Show project health, versions, and update availability\",\n interactive: false,\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";;;AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,eAAe,EACb,aACE,oFACH,EACF;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,UAAU;GAAE,YAAY;GAAM,aAAa;GAAgC,EAC5E;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,MAAM,EAAE,aAAa,0CAA0C,EAChE;EACF;CACD,WAAW;EACT,aAAa,CAAC,UAAU,MAAM;EAC9B,SAAS;EACT,aAAa;EACb,QAAQ;GACN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C;GACnE,SAAS,EACP,aAAa,yEACd;GACD,WAAW,EACT,aAAa,sEACd;GACD,eAAe,EAAE,aAAa,gCAAgC;GAC9D,WAAW,EAAE,aAAa,oBAAoB;GAC/C;EACF;CACD,MAAM;EACJ,aAAa,CAAC,OAAO;EACrB,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ,EAAE,aAAa,yCAAyC;GAChE,WAAW,EAAE,aAAa,oBAAoB;GAC/C;EACF;CACD,SAAS;EACP,aAAa,CAAC,UAAU;EACxB,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ,EAAE,aAAa,mCAAmC;GAC1D,WAAW,EAAE,aAAa,oBAAoB;GAC9C,QAAQ,EAAE,aAAa,6CAA6C;GACrE;EACF;CACD,UAAU;EACR,aAAa,CAAC,SAAS,MAAM;EAC7B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,KAAK,EAAE,aAAa,oDAAoD;GACxE,QAAQ,EAAE,aAAa,uDAAuD;GAC/E;EACF;CACD,UAAU;EACR,aAAa,CAAC,MAAM,SAAS;EAC7B,SAAS;EACT,QAAQ,EACN,QAAQ;GACN,YAAY;GACZ,aAAa;GACd,EACF;EACF;CACD,UAAU;EACR,aAAa,CAAC,MAAM,SAAS;EAC7B,SAAS;EACT,QAAQ,EACN,QAAQ;GACN,YAAY;GACZ,aAAa;GACd,EACF;EACF;CACD,UAAU;EACR,aAAa,CAAC,MAAM,SAAS;EAC7B,SAAS;EACT,QAAQ;GACN,QAAQ;IACN,YAAY;IACZ,aAAa;IACd;GACD,MAAM,EACJ,aAAa,wEACd;GACD,KAAK,EACH,aAAa,4BACd;GACF;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACF"}
|
package/dist/contract.meta.d.cts
CHANGED
|
@@ -235,6 +235,32 @@ declare const cliCommandMeta: {
|
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
|
+
readonly dbDoctor: {
|
|
239
|
+
readonly commandPath: ["db", "doctor"];
|
|
240
|
+
readonly summary: "Diagnose migration health for a plugin's database";
|
|
241
|
+
readonly fields: {
|
|
242
|
+
readonly plugin: {
|
|
243
|
+
readonly positional: true;
|
|
244
|
+
readonly description: "Plugin key: api, auth, or a plugin name";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
readonly dbRepair: {
|
|
249
|
+
readonly commandPath: ["db", "repair"];
|
|
250
|
+
readonly summary: "Reset migration history and reapply migrations for a plugin";
|
|
251
|
+
readonly fields: {
|
|
252
|
+
readonly plugin: {
|
|
253
|
+
readonly positional: true;
|
|
254
|
+
readonly description: "Plugin key: api, auth, or a plugin name";
|
|
255
|
+
};
|
|
256
|
+
readonly mode: {
|
|
257
|
+
readonly description: "Repair mode: history-reset (default) or recreate (not yet supported)";
|
|
258
|
+
};
|
|
259
|
+
readonly yes: {
|
|
260
|
+
readonly description: "Skip confirmation prompt";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
238
264
|
readonly status: {
|
|
239
265
|
readonly commandPath: ["status"];
|
|
240
266
|
readonly summary: "Show project health, versions, and update availability";
|
package/dist/contract.meta.d.mts
CHANGED
|
@@ -235,6 +235,32 @@ declare const cliCommandMeta: {
|
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
|
+
readonly dbDoctor: {
|
|
239
|
+
readonly commandPath: ["db", "doctor"];
|
|
240
|
+
readonly summary: "Diagnose migration health for a plugin's database";
|
|
241
|
+
readonly fields: {
|
|
242
|
+
readonly plugin: {
|
|
243
|
+
readonly positional: true;
|
|
244
|
+
readonly description: "Plugin key: api, auth, or a plugin name";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
readonly dbRepair: {
|
|
249
|
+
readonly commandPath: ["db", "repair"];
|
|
250
|
+
readonly summary: "Reset migration history and reapply migrations for a plugin";
|
|
251
|
+
readonly fields: {
|
|
252
|
+
readonly plugin: {
|
|
253
|
+
readonly positional: true;
|
|
254
|
+
readonly description: "Plugin key: api, auth, or a plugin name";
|
|
255
|
+
};
|
|
256
|
+
readonly mode: {
|
|
257
|
+
readonly description: "Repair mode: history-reset (default) or recreate (not yet supported)";
|
|
258
|
+
};
|
|
259
|
+
readonly yes: {
|
|
260
|
+
readonly description: "Skip confirmation prompt";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
238
264
|
readonly status: {
|
|
239
265
|
readonly commandPath: ["status"];
|
|
240
266
|
readonly summary: "Show project health, versions, and update availability";
|
package/dist/contract.meta.mjs
CHANGED
|
@@ -149,6 +149,26 @@ const cliCommandMeta = {
|
|
|
149
149
|
description: "Plugin key: api, auth, or a plugin name (default: api)"
|
|
150
150
|
} }
|
|
151
151
|
},
|
|
152
|
+
dbDoctor: {
|
|
153
|
+
commandPath: ["db", "doctor"],
|
|
154
|
+
summary: "Diagnose migration health for a plugin's database",
|
|
155
|
+
fields: { plugin: {
|
|
156
|
+
positional: true,
|
|
157
|
+
description: "Plugin key: api, auth, or a plugin name"
|
|
158
|
+
} }
|
|
159
|
+
},
|
|
160
|
+
dbRepair: {
|
|
161
|
+
commandPath: ["db", "repair"],
|
|
162
|
+
summary: "Reset migration history and reapply migrations for a plugin",
|
|
163
|
+
fields: {
|
|
164
|
+
plugin: {
|
|
165
|
+
positional: true,
|
|
166
|
+
description: "Plugin key: api, auth, or a plugin name"
|
|
167
|
+
},
|
|
168
|
+
mode: { description: "Repair mode: history-reset (default) or recreate (not yet supported)" },
|
|
169
|
+
yes: { description: "Skip confirmation prompt" }
|
|
170
|
+
}
|
|
171
|
+
},
|
|
152
172
|
status: {
|
|
153
173
|
commandPath: ["status"],
|
|
154
174
|
summary: "Show project health, versions, and update availability",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.meta.mjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n fields: {\n remotePlugins: {\n description:\n \"Comma-separated plugin IDs to force remote (e.g. --remote-plugins auth,registry)\",\n },\n },\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n fields: {\n full: { description: \"Print the fully resolved configuration\" },\n },\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: {\n positional: true,\n description: \"Plugin source (local:path, bos://account/domain, or URL)\",\n },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n fields: {\n deploy: { description: \"Build and deploy all workspaces before publish\" },\n dryRun: { description: \"Preview what would be published without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n env: { description: \"Environment: production or staging\" },\n network: { description: \"NEAR network: mainnet or testnet\" },\n },\n },\n deploy: {\n commandPath: [\"deploy\"],\n summary: \"Publish config and trigger Railway redeploy\",\n interactive: false,\n fields: {\n env: { description: \"Environment: production or staging\" },\n build: { description: \"Build and deploy workspaces before publish (default: true)\" },\n dryRun: { description: \"Preview what would be deployed without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n service: { description: \"Override Railway service name from config\" },\n },\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project by extending a deployed app or template\",\n interactive: true,\n fields: {\n domain: {\n positional: true,\n description: \"New project domain (e.g. myapp.everything.dev)\",\n },\n extends: {\n description: \"Parent to extend from (e.g. bos://account/gateway or account/gateway)\",\n },\n account: { description: \"New project NEAR account (auto-derived from extends)\" },\n directory: { description: \"Target directory (auto-derived from domain)\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n plugins: {\n description: \"Comma-separated plugin keys to include (requires --overrides=plugins)\",\n },\n overrides: {\n description: \"Comma-separated sections to customize locally: ui,api,host,plugins\",\n },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n sync: {\n commandPath: [\"sync\"],\n summary: \"Sync template files from parent project\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing files\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n upgrade: {\n commandPath: [\"upgrade\"],\n summary: \"Upgrade framework packages and sync template files\",\n interactive: true,\n fields: {\n dryRun: { description: \"Preview changes without writing\" },\n noInstall: { description: \"Skip bun install\" },\n noSync: { description: \"Only upgrade packages, skip template sync\" },\n },\n },\n typesGen: {\n commandPath: [\"types\", \"gen\"],\n summary: \"Generate type definitions from configured API and plugin contracts\",\n interactive: false,\n fields: {\n env: { description: \"Environment: development (default) or production\" },\n dryRun: { description: \"Preview what would be fetched without writing files\" },\n },\n },\n dbStudio: {\n commandPath: [\"db\", \"studio\"],\n summary: \"Open Drizzle Studio for a plugin's database\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name (default: api)\",\n },\n },\n },\n status: {\n commandPath: [\"status\"],\n summary: \"Show project health, versions, and update availability\",\n interactive: false,\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,eAAe,EACb,aACE,oFACH,EACF;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,UAAU;GAAE,YAAY;GAAM,aAAa;GAAgC,EAC5E;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,MAAM,EAAE,aAAa,0CAA0C,EAChE;EACF;CACD,WAAW;EACT,aAAa,CAAC,UAAU,MAAM;EAC9B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ;IACN,YAAY;IACZ,aAAa;IACd;GACD,IAAI,EAAE,aAAa,gBAAgB;GACnC,YAAY,EAAE,aAAa,2BAA2B;GACvD;EACF;CACD,cAAc;EACZ,aAAa,CAAC,UAAU,SAAS;EACjC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAAE;EACjE;CACD,YAAY;EACV,aAAa,CAAC,UAAU,OAAO;EAC/B,SAAS;EACT,aAAa;EACd;CACD,eAAe;EACb,aAAa,CAAC,UAAU,UAAU;EAClC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAAE;EACjE;CACD,SAAS;EACP,aAAa,CAAC,UAAU;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U;EACR,aAAa,CAAC,SAAS,MAAM;EAC7B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,KAAK,EAAE,aAAa,oDAAoD;GACxE,QAAQ,EAAE,aAAa,uDAAuD;GAC/E;EACF;CACD,UAAU;EACR,aAAa,CAAC,MAAM,SAAS;EAC7B,SAAS;EACT,QAAQ,EACN,QAAQ;GACN,YAAY;GACZ,aAAa;GACd,EACF;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACF"}
|
|
1
|
+
{"version":3,"file":"contract.meta.mjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n fields: {\n remotePlugins: {\n description:\n \"Comma-separated plugin IDs to force remote (e.g. --remote-plugins auth,registry)\",\n },\n },\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n fields: {\n full: { description: \"Print the fully resolved configuration\" },\n },\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: {\n positional: true,\n description: \"Plugin source (local:path, bos://account/domain, or URL)\",\n },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n fields: {\n deploy: { description: \"Build and deploy all workspaces before publish\" },\n dryRun: { description: \"Preview what would be published without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n env: { description: \"Environment: production or staging\" },\n network: { description: \"NEAR network: mainnet or testnet\" },\n },\n },\n deploy: {\n commandPath: [\"deploy\"],\n summary: \"Publish config and trigger Railway redeploy\",\n interactive: false,\n fields: {\n env: { description: \"Environment: production or staging\" },\n build: { description: \"Build and deploy workspaces before publish (default: true)\" },\n dryRun: { description: \"Preview what would be deployed without writing\" },\n verbose: { description: \"Show full build output instead of clean summary\" },\n service: { description: \"Override Railway service name from config\" },\n },\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project by extending a deployed app or template\",\n interactive: true,\n fields: {\n domain: {\n positional: true,\n description: \"New project domain (e.g. myapp.everything.dev)\",\n },\n extends: {\n description: \"Parent to extend from (e.g. bos://account/gateway or account/gateway)\",\n },\n account: { description: \"New project NEAR account (auto-derived from extends)\" },\n directory: { description: \"Target directory (auto-derived from domain)\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n plugins: {\n description: \"Comma-separated plugin keys to include (requires --overrides=plugins)\",\n },\n overrides: {\n description: \"Comma-separated sections to customize locally: ui,api,host,plugins\",\n },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n sync: {\n commandPath: [\"sync\"],\n summary: \"Sync template files from parent project\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing files\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n upgrade: {\n commandPath: [\"upgrade\"],\n summary: \"Upgrade framework packages and sync template files\",\n interactive: true,\n fields: {\n dryRun: { description: \"Preview changes without writing\" },\n noInstall: { description: \"Skip bun install\" },\n noSync: { description: \"Only upgrade packages, skip template sync\" },\n },\n },\n typesGen: {\n commandPath: [\"types\", \"gen\"],\n summary: \"Generate type definitions from configured API and plugin contracts\",\n interactive: false,\n fields: {\n env: { description: \"Environment: development (default) or production\" },\n dryRun: { description: \"Preview what would be fetched without writing files\" },\n },\n },\n dbStudio: {\n commandPath: [\"db\", \"studio\"],\n summary: \"Open Drizzle Studio for a plugin's database\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name (default: api)\",\n },\n },\n },\n dbDoctor: {\n commandPath: [\"db\", \"doctor\"],\n summary: \"Diagnose migration health for a plugin's database\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name\",\n },\n },\n },\n dbRepair: {\n commandPath: [\"db\", \"repair\"],\n summary: \"Reset migration history and reapply migrations for a plugin\",\n fields: {\n plugin: {\n positional: true,\n description: \"Plugin key: api, auth, or a plugin name\",\n },\n mode: {\n description: \"Repair mode: history-reset (default) or recreate (not yet supported)\",\n },\n yes: {\n description: \"Skip confirmation prompt\",\n },\n },\n },\n status: {\n commandPath: [\"status\"],\n summary: \"Show project health, versions, and update availability\",\n interactive: false,\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,eAAe,EACb,aACE,oFACH,EACF;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF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