everything-dev 1.49.0 → 1.51.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/app.cjs +66 -86
- package/dist/app.cjs.map +1 -1
- package/dist/app.mjs +66 -87
- package/dist/app.mjs.map +1 -1
- package/dist/cli/db-doctor.cjs +6 -23
- package/dist/cli/db-doctor.cjs.map +1 -1
- package/dist/cli/db-doctor.mjs +7 -24
- package/dist/cli/db-doctor.mjs.map +1 -1
- package/dist/cli/db-repair.cjs +25 -20
- package/dist/cli/db-repair.cjs.map +1 -1
- package/dist/cli/db-repair.mjs +25 -20
- package/dist/cli/db-repair.mjs.map +1 -1
- package/dist/cli/db-studio.cjs +4 -2
- package/dist/cli/db-studio.cjs.map +1 -1
- package/dist/cli/db-studio.mjs +5 -3
- package/dist/cli/db-studio.mjs.map +1 -1
- package/dist/cli/framework-version.cjs +45 -9
- package/dist/cli/framework-version.cjs.map +1 -1
- package/dist/cli/framework-version.mjs +45 -10
- package/dist/cli/framework-version.mjs.map +1 -1
- package/dist/cli/infra.cjs +89 -3
- package/dist/cli/infra.cjs.map +1 -1
- package/dist/cli/infra.mjs +83 -4
- package/dist/cli/infra.mjs.map +1 -1
- package/dist/cli/init.cjs +39 -15
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts +8 -3
- package/dist/cli/init.d.cts.map +1 -1
- package/dist/cli/init.d.mts +8 -3
- package/dist/cli/init.d.mts.map +1 -1
- package/dist/cli/init.mjs +39 -16
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/parse.cjs +4 -1
- package/dist/cli/parse.cjs.map +1 -1
- package/dist/cli/parse.mjs +4 -1
- package/dist/cli/parse.mjs.map +1 -1
- package/dist/cli/status.cjs +6 -2
- package/dist/cli/status.cjs.map +1 -1
- package/dist/cli/status.mjs +7 -3
- package/dist/cli/status.mjs.map +1 -1
- package/dist/cli/sync.cjs +9 -3
- package/dist/cli/sync.cjs.map +1 -1
- package/dist/cli/sync.mjs +9 -3
- package/dist/cli/sync.mjs.map +1 -1
- package/dist/cli/upgrade.cjs +59 -5
- package/dist/cli/upgrade.cjs.map +1 -1
- package/dist/cli/upgrade.mjs +59 -5
- package/dist/cli/upgrade.mjs.map +1 -1
- package/dist/cli.cjs +73 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +74 -10
- package/dist/cli.mjs.map +1 -1
- package/dist/config.cjs +13 -5
- 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 +13 -5
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +76 -4
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +148 -3
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +148 -3
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.meta.cjs +17 -2
- package/dist/contract.meta.cjs.map +1 -1
- package/dist/contract.meta.d.cts +23 -2
- package/dist/contract.meta.d.mts +23 -2
- package/dist/contract.meta.mjs +17 -2
- package/dist/contract.meta.mjs.map +1 -1
- package/dist/contract.mjs +72 -5
- package/dist/contract.mjs.map +1 -1
- package/dist/db.cjs +32 -24
- package/dist/db.cjs.map +1 -1
- package/dist/db.d.cts +16 -9
- package/dist/db.d.cts.map +1 -1
- package/dist/db.d.mts +16 -9
- package/dist/db.d.mts.map +1 -1
- package/dist/db.mjs +32 -23
- package/dist/db.mjs.map +1 -1
- package/dist/dev-session.cjs +28 -0
- package/dist/dev-session.cjs.map +1 -1
- package/dist/dev-session.mjs +29 -1
- package/dist/dev-session.mjs.map +1 -1
- package/dist/index.cjs +5 -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 +344 -0
- package/dist/infra/planner.cjs.map +1 -0
- package/dist/infra/planner.mjs +343 -0
- package/dist/infra/planner.mjs.map +1 -0
- package/dist/infra/preflight.cjs +131 -0
- package/dist/infra/preflight.cjs.map +1 -0
- package/dist/infra/preflight.mjs +130 -0
- package/dist/infra/preflight.mjs.map +1 -0
- package/dist/infra/types.cjs +9 -0
- package/dist/infra/types.cjs.map +1 -0
- package/dist/infra/types.mjs +8 -0
- package/dist/infra/types.mjs.map +1 -0
- package/dist/near-cli.cjs +37 -0
- package/dist/near-cli.cjs.map +1 -1
- package/dist/near-cli.mjs +36 -1
- package/dist/near-cli.mjs.map +1 -1
- package/dist/orchestrator.cjs +10 -2
- package/dist/orchestrator.cjs.map +1 -1
- package/dist/orchestrator.mjs +10 -2
- package/dist/orchestrator.mjs.map +1 -1
- package/dist/plugin.cjs +161 -44
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +57 -1
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +57 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +165 -48
- package/dist/plugin.mjs.map +1 -1
- package/dist/process-registry.cjs +88 -0
- package/dist/process-registry.cjs.map +1 -0
- package/dist/process-registry.mjs +83 -0
- package/dist/process-registry.mjs.map +1 -0
- package/dist/publish.cjs +4 -0
- package/dist/publish.cjs.map +1 -1
- package/dist/publish.mjs +4 -0
- package/dist/publish.mjs.map +1 -1
- package/dist/service-descriptor.cjs +4 -0
- package/dist/service-descriptor.cjs.map +1 -1
- package/dist/service-descriptor.mjs +4 -1
- package/dist/service-descriptor.mjs.map +1 -1
- package/dist/ui/index.cjs +2 -1
- package/dist/ui/index.d.cts +2 -2
- package/dist/ui/index.d.mts +2 -2
- package/dist/ui/index.mjs +2 -2
- package/dist/ui/router.cjs +40 -0
- package/dist/ui/router.cjs.map +1 -1
- package/dist/ui/router.d.cts +6 -1
- package/dist/ui/router.d.cts.map +1 -1
- package/dist/ui/router.d.mts +6 -1
- package/dist/ui/router.d.mts.map +1 -1
- package/dist/ui/router.mjs +40 -1
- package/dist/ui/router.mjs.map +1 -1
- package/package.json +5 -2
- package/skills/api-and-auth/SKILL.md +38 -16
- package/skills/cli-reference/SKILL.md +5 -4
- package/skills/dev-workflow/SKILL.md +40 -11
- package/skills/plugin-development/SKILL.md +17 -6
package/dist/contract.d.mts
CHANGED
|
@@ -28,6 +28,10 @@ declare const DevOptionsSchema: z.ZodObject<{
|
|
|
28
28
|
proxy: z.ZodDefault<z.ZodBoolean>;
|
|
29
29
|
ssr: z.ZodDefault<z.ZodBoolean>;
|
|
30
30
|
port: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
apiPort: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
uiPort: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
authPort: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
pluginPortStart: z.ZodOptional<z.ZodNumber>;
|
|
31
35
|
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
32
36
|
}, z.core.$strip>;
|
|
33
37
|
declare const DevResultSchema: z.ZodObject<{
|
|
@@ -493,6 +497,8 @@ declare const StatusResultSchema: z.ZodObject<{
|
|
|
493
497
|
name: z.ZodString;
|
|
494
498
|
installed: z.ZodOptional<z.ZodString>;
|
|
495
499
|
latest: z.ZodOptional<z.ZodString>;
|
|
500
|
+
isLinked: z.ZodOptional<z.ZodBoolean>;
|
|
501
|
+
specifier: z.ZodOptional<z.ZodString>;
|
|
496
502
|
}, z.core.$strip>>;
|
|
497
503
|
lastSync: z.ZodOptional<z.ZodString>;
|
|
498
504
|
envFile: z.ZodEnum<{
|
|
@@ -561,7 +567,6 @@ declare const DbDoctorResultSchema: z.ZodObject<{
|
|
|
561
567
|
appliedHashCount: z.ZodNumber;
|
|
562
568
|
expectedTables: z.ZodArray<z.ZodString>;
|
|
563
569
|
missingTables: z.ZodArray<z.ZodString>;
|
|
564
|
-
legacyCount: z.ZodNumber;
|
|
565
570
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
566
571
|
dbSecret: z.ZodOptional<z.ZodString>;
|
|
567
572
|
dbUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -585,6 +590,85 @@ declare const DbRepairResultSchema: z.ZodObject<{
|
|
|
585
590
|
diagnosis: z.ZodAny;
|
|
586
591
|
error: z.ZodOptional<z.ZodString>;
|
|
587
592
|
}, z.core.$strip>;
|
|
593
|
+
declare const ProcessRoleSchema: z.ZodEnum<{
|
|
594
|
+
standalone: "standalone";
|
|
595
|
+
"workspace-parent": "workspace-parent";
|
|
596
|
+
"workspace-child": "workspace-child";
|
|
597
|
+
}>;
|
|
598
|
+
declare const PidEntrySchema: z.ZodObject<{
|
|
599
|
+
pid: z.ZodNumber;
|
|
600
|
+
configDir: z.ZodString;
|
|
601
|
+
parentPid: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
role: z.ZodEnum<{
|
|
603
|
+
standalone: "standalone";
|
|
604
|
+
"workspace-parent": "workspace-parent";
|
|
605
|
+
"workspace-child": "workspace-child";
|
|
606
|
+
}>;
|
|
607
|
+
ports: z.ZodDefault<z.ZodObject<{
|
|
608
|
+
host: z.ZodOptional<z.ZodNumber>;
|
|
609
|
+
api: z.ZodOptional<z.ZodNumber>;
|
|
610
|
+
ui: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
auth: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
}, z.core.$strip>>;
|
|
613
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
614
|
+
min: z.ZodNumber;
|
|
615
|
+
max: z.ZodNumber;
|
|
616
|
+
}, z.core.$strip>>;
|
|
617
|
+
startedAt: z.ZodNumber;
|
|
618
|
+
description: z.ZodString;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
declare const PsResultSchema: z.ZodObject<{
|
|
621
|
+
status: z.ZodEnum<{
|
|
622
|
+
error: "error";
|
|
623
|
+
ok: "ok";
|
|
624
|
+
}>;
|
|
625
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
626
|
+
pid: z.ZodNumber;
|
|
627
|
+
configDir: z.ZodString;
|
|
628
|
+
parentPid: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
role: z.ZodEnum<{
|
|
630
|
+
standalone: "standalone";
|
|
631
|
+
"workspace-parent": "workspace-parent";
|
|
632
|
+
"workspace-child": "workspace-child";
|
|
633
|
+
}>;
|
|
634
|
+
ports: z.ZodDefault<z.ZodObject<{
|
|
635
|
+
host: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
api: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
ui: z.ZodOptional<z.ZodNumber>;
|
|
638
|
+
auth: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
min: z.ZodNumber;
|
|
642
|
+
max: z.ZodNumber;
|
|
643
|
+
}, z.core.$strip>>;
|
|
644
|
+
startedAt: z.ZodNumber;
|
|
645
|
+
description: z.ZodString;
|
|
646
|
+
}, z.core.$strip>>;
|
|
647
|
+
error: z.ZodOptional<z.ZodString>;
|
|
648
|
+
}, z.core.$strip>;
|
|
649
|
+
declare const KillOptionsSchema: z.ZodObject<{
|
|
650
|
+
configDir: z.ZodOptional<z.ZodString>;
|
|
651
|
+
signal: z.ZodDefault<z.ZodEnum<{
|
|
652
|
+
SIGTERM: "SIGTERM";
|
|
653
|
+
SIGKILL: "SIGKILL";
|
|
654
|
+
}>>;
|
|
655
|
+
all: z.ZodDefault<z.ZodBoolean>;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
declare const KillResultSchema: z.ZodObject<{
|
|
658
|
+
status: z.ZodEnum<{
|
|
659
|
+
error: "error";
|
|
660
|
+
killed: "killed";
|
|
661
|
+
}>;
|
|
662
|
+
killed: z.ZodArray<z.ZodObject<{
|
|
663
|
+
pid: z.ZodNumber;
|
|
664
|
+
configDir: z.ZodString;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
667
|
+
pid: z.ZodNumber;
|
|
668
|
+
reason: z.ZodString;
|
|
669
|
+
}, z.core.$strip>>;
|
|
670
|
+
error: z.ZodOptional<z.ZodString>;
|
|
671
|
+
}, z.core.$strip>;
|
|
588
672
|
declare const bosContract: {
|
|
589
673
|
dev: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
590
674
|
host: z.ZodDefault<z.ZodEnum<{
|
|
@@ -607,6 +691,10 @@ declare const bosContract: {
|
|
|
607
691
|
proxy: z.ZodDefault<z.ZodBoolean>;
|
|
608
692
|
ssr: z.ZodDefault<z.ZodBoolean>;
|
|
609
693
|
port: z.ZodOptional<z.ZodNumber>;
|
|
694
|
+
apiPort: z.ZodOptional<z.ZodNumber>;
|
|
695
|
+
uiPort: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
authPort: z.ZodOptional<z.ZodNumber>;
|
|
697
|
+
pluginPortStart: z.ZodOptional<z.ZodNumber>;
|
|
610
698
|
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
611
699
|
}, z.core.$strip>, z.ZodObject<{
|
|
612
700
|
status: z.ZodEnum<{
|
|
@@ -1030,6 +1118,8 @@ declare const bosContract: {
|
|
|
1030
1118
|
name: z.ZodString;
|
|
1031
1119
|
installed: z.ZodOptional<z.ZodString>;
|
|
1032
1120
|
latest: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
isLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1122
|
+
specifier: z.ZodOptional<z.ZodString>;
|
|
1033
1123
|
}, z.core.$strip>>;
|
|
1034
1124
|
lastSync: z.ZodOptional<z.ZodString>;
|
|
1035
1125
|
envFile: z.ZodEnum<{
|
|
@@ -1095,7 +1185,6 @@ declare const bosContract: {
|
|
|
1095
1185
|
appliedHashCount: z.ZodNumber;
|
|
1096
1186
|
expectedTables: z.ZodArray<z.ZodString>;
|
|
1097
1187
|
missingTables: z.ZodArray<z.ZodString>;
|
|
1098
|
-
legacyCount: z.ZodNumber;
|
|
1099
1188
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
1100
1189
|
dbSecret: z.ZodOptional<z.ZodString>;
|
|
1101
1190
|
dbUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1118,6 +1207,57 @@ declare const bosContract: {
|
|
|
1118
1207
|
diagnosis: z.ZodAny;
|
|
1119
1208
|
error: z.ZodOptional<z.ZodString>;
|
|
1120
1209
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1210
|
+
ps: _$_orpc_contract0.ContractProcedure<_$_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
|
|
1211
|
+
status: z.ZodEnum<{
|
|
1212
|
+
error: "error";
|
|
1213
|
+
ok: "ok";
|
|
1214
|
+
}>;
|
|
1215
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1216
|
+
pid: z.ZodNumber;
|
|
1217
|
+
configDir: z.ZodString;
|
|
1218
|
+
parentPid: z.ZodOptional<z.ZodNumber>;
|
|
1219
|
+
role: z.ZodEnum<{
|
|
1220
|
+
standalone: "standalone";
|
|
1221
|
+
"workspace-parent": "workspace-parent";
|
|
1222
|
+
"workspace-child": "workspace-child";
|
|
1223
|
+
}>;
|
|
1224
|
+
ports: z.ZodDefault<z.ZodObject<{
|
|
1225
|
+
host: z.ZodOptional<z.ZodNumber>;
|
|
1226
|
+
api: z.ZodOptional<z.ZodNumber>;
|
|
1227
|
+
ui: z.ZodOptional<z.ZodNumber>;
|
|
1228
|
+
auth: z.ZodOptional<z.ZodNumber>;
|
|
1229
|
+
}, z.core.$strip>>;
|
|
1230
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
1231
|
+
min: z.ZodNumber;
|
|
1232
|
+
max: z.ZodNumber;
|
|
1233
|
+
}, z.core.$strip>>;
|
|
1234
|
+
startedAt: z.ZodNumber;
|
|
1235
|
+
description: z.ZodString;
|
|
1236
|
+
}, z.core.$strip>>;
|
|
1237
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1239
|
+
kill: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1240
|
+
configDir: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
signal: z.ZodDefault<z.ZodEnum<{
|
|
1242
|
+
SIGTERM: "SIGTERM";
|
|
1243
|
+
SIGKILL: "SIGKILL";
|
|
1244
|
+
}>>;
|
|
1245
|
+
all: z.ZodDefault<z.ZodBoolean>;
|
|
1246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1247
|
+
status: z.ZodEnum<{
|
|
1248
|
+
error: "error";
|
|
1249
|
+
killed: "killed";
|
|
1250
|
+
}>;
|
|
1251
|
+
killed: z.ZodArray<z.ZodObject<{
|
|
1252
|
+
pid: z.ZodNumber;
|
|
1253
|
+
configDir: z.ZodString;
|
|
1254
|
+
}, z.core.$strip>>;
|
|
1255
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
1256
|
+
pid: z.ZodNumber;
|
|
1257
|
+
reason: z.ZodString;
|
|
1258
|
+
}, z.core.$strip>>;
|
|
1259
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1260
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1121
1261
|
};
|
|
1122
1262
|
type DevOptions = z.infer<typeof DevOptionsSchema>;
|
|
1123
1263
|
type DevResult = z.infer<typeof DevResultSchema>;
|
|
@@ -1157,6 +1297,11 @@ type DbDoctorResult = z.infer<typeof DbDoctorResultSchema>;
|
|
|
1157
1297
|
type DbRepairOptions = z.infer<typeof DbRepairOptionsSchema>;
|
|
1158
1298
|
type DbRepairResult = z.infer<typeof DbRepairResultSchema>;
|
|
1159
1299
|
type RuntimeOverrideTarget = z.infer<typeof RuntimeOverrideTargetSchema>;
|
|
1300
|
+
type ProcessRole = z.infer<typeof ProcessRoleSchema>;
|
|
1301
|
+
type PidEntry = z.infer<typeof PidEntrySchema>;
|
|
1302
|
+
type PsResult = z.infer<typeof PsResultSchema>;
|
|
1303
|
+
type KillOptions = z.infer<typeof KillOptionsSchema>;
|
|
1304
|
+
type KillResult = z.infer<typeof KillResultSchema>;
|
|
1160
1305
|
//#endregion
|
|
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 };
|
|
1306
|
+
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, KillOptions, KillOptionsSchema, KillResult, KillResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PidEntry, PidEntrySchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, ProcessRole, ProcessRoleSchema, PsResult, PsResultSchema, 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 };
|
|
1162
1307
|
//# sourceMappingURL=contract.d.mts.map
|
package/dist/contract.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.mts","names":[],"sources":["../src/contract.ts"],"mappings":";;;;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cAKjB,gBAAA,EAAgB,CAAA,CAAA,SAAA
|
|
1
|
+
{"version":3,"file":"contract.d.mts","names":[],"sources":["../src/contract.ts"],"mappings":";;;;;cAIa,iBAAA,EAA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AAE,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;AAAA,KACvC,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA"}
|
package/dist/contract.meta.cjs
CHANGED
|
@@ -92,9 +92,9 @@ const cliCommandMeta = {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
keyPublish: {
|
|
95
|
-
commandPath: ["key", "
|
|
95
|
+
commandPath: ["key", "generate"],
|
|
96
96
|
summary: "Generate a publish access key",
|
|
97
|
-
interactive:
|
|
97
|
+
interactive: true
|
|
98
98
|
},
|
|
99
99
|
init: {
|
|
100
100
|
commandPath: ["init"],
|
|
@@ -175,6 +175,21 @@ const cliCommandMeta = {
|
|
|
175
175
|
commandPath: ["status"],
|
|
176
176
|
summary: "Show project health, versions, and update availability",
|
|
177
177
|
interactive: false
|
|
178
|
+
},
|
|
179
|
+
ps: {
|
|
180
|
+
commandPath: ["ps"],
|
|
181
|
+
summary: "List tracked development processes",
|
|
182
|
+
interactive: false
|
|
183
|
+
},
|
|
184
|
+
kill: {
|
|
185
|
+
commandPath: ["kill"],
|
|
186
|
+
summary: "Stop tracked development processes",
|
|
187
|
+
interactive: false,
|
|
188
|
+
fields: {
|
|
189
|
+
configDir: { description: "Kill processes owned by a config directory (defaults to cwd)" },
|
|
190
|
+
signal: { description: "Signal: SIGTERM (default) or SIGKILL" },
|
|
191
|
+
all: { description: "Kill processes across all config directories" }
|
|
192
|
+
}
|
|
178
193
|
}
|
|
179
194
|
};
|
|
180
195
|
|
|
@@ -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 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,O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,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"}
|
|
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\", \"generate\"],\n summary: \"Generate a publish access key\",\n interactive: true,\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 ps: {\n commandPath: [\"ps\"],\n summary: \"List tracked development processes\",\n interactive: false,\n },\n kill: {\n commandPath: [\"kill\"],\n summary: \"Stop tracked development processes\",\n interactive: false,\n fields: {\n configDir: { description: \"Kill processes owned by a config directory (defaults to cwd)\" },\n signal: { description: \"Signal: SIGTERM (default) or SIGKILL\" },\n all: { description: \"Kill processes across all config directories\" },\n },\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";;;AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,S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,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;CACD,IAAI;EACF,aAAa,CAAC,KAAK;EACnB,SAAS;EACT,aAAa;EACd;CACD,MAAM;EACJ,aAAa,CAAC,OAAO;EACrB,SAAS;EACT,aAAa;EACb,QAAQ;GACN,WAAW,EAAE,aAAa,gEAAgE;GAC1F,QAAQ,EAAE,aAAa,wCAAwC;GAC/D,KAAK,EAAE,aAAa,gDAAgD;GACrE;EACF;CACF"}
|
package/dist/contract.meta.d.cts
CHANGED
|
@@ -144,9 +144,9 @@ declare const cliCommandMeta: {
|
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
readonly keyPublish: {
|
|
147
|
-
readonly commandPath: ["key", "
|
|
147
|
+
readonly commandPath: ["key", "generate"];
|
|
148
148
|
readonly summary: "Generate a publish access key";
|
|
149
|
-
readonly interactive:
|
|
149
|
+
readonly interactive: true;
|
|
150
150
|
};
|
|
151
151
|
readonly init: {
|
|
152
152
|
readonly commandPath: ["init"];
|
|
@@ -266,6 +266,27 @@ declare const cliCommandMeta: {
|
|
|
266
266
|
readonly summary: "Show project health, versions, and update availability";
|
|
267
267
|
readonly interactive: false;
|
|
268
268
|
};
|
|
269
|
+
readonly ps: {
|
|
270
|
+
readonly commandPath: ["ps"];
|
|
271
|
+
readonly summary: "List tracked development processes";
|
|
272
|
+
readonly interactive: false;
|
|
273
|
+
};
|
|
274
|
+
readonly kill: {
|
|
275
|
+
readonly commandPath: ["kill"];
|
|
276
|
+
readonly summary: "Stop tracked development processes";
|
|
277
|
+
readonly interactive: false;
|
|
278
|
+
readonly fields: {
|
|
279
|
+
readonly configDir: {
|
|
280
|
+
readonly description: "Kill processes owned by a config directory (defaults to cwd)";
|
|
281
|
+
};
|
|
282
|
+
readonly signal: {
|
|
283
|
+
readonly description: "Signal: SIGTERM (default) or SIGKILL";
|
|
284
|
+
};
|
|
285
|
+
readonly all: {
|
|
286
|
+
readonly description: "Kill processes across all config directories";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
269
290
|
};
|
|
270
291
|
//#endregion
|
|
271
292
|
export { CliCommandMeta, cliCommandMeta };
|
package/dist/contract.meta.d.mts
CHANGED
|
@@ -144,9 +144,9 @@ declare const cliCommandMeta: {
|
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
readonly keyPublish: {
|
|
147
|
-
readonly commandPath: ["key", "
|
|
147
|
+
readonly commandPath: ["key", "generate"];
|
|
148
148
|
readonly summary: "Generate a publish access key";
|
|
149
|
-
readonly interactive:
|
|
149
|
+
readonly interactive: true;
|
|
150
150
|
};
|
|
151
151
|
readonly init: {
|
|
152
152
|
readonly commandPath: ["init"];
|
|
@@ -266,6 +266,27 @@ declare const cliCommandMeta: {
|
|
|
266
266
|
readonly summary: "Show project health, versions, and update availability";
|
|
267
267
|
readonly interactive: false;
|
|
268
268
|
};
|
|
269
|
+
readonly ps: {
|
|
270
|
+
readonly commandPath: ["ps"];
|
|
271
|
+
readonly summary: "List tracked development processes";
|
|
272
|
+
readonly interactive: false;
|
|
273
|
+
};
|
|
274
|
+
readonly kill: {
|
|
275
|
+
readonly commandPath: ["kill"];
|
|
276
|
+
readonly summary: "Stop tracked development processes";
|
|
277
|
+
readonly interactive: false;
|
|
278
|
+
readonly fields: {
|
|
279
|
+
readonly configDir: {
|
|
280
|
+
readonly description: "Kill processes owned by a config directory (defaults to cwd)";
|
|
281
|
+
};
|
|
282
|
+
readonly signal: {
|
|
283
|
+
readonly description: "Signal: SIGTERM (default) or SIGKILL";
|
|
284
|
+
};
|
|
285
|
+
readonly all: {
|
|
286
|
+
readonly description: "Kill processes across all config directories";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
269
290
|
};
|
|
270
291
|
//#endregion
|
|
271
292
|
export { CliCommandMeta, cliCommandMeta };
|
package/dist/contract.meta.mjs
CHANGED
|
@@ -90,9 +90,9 @@ const cliCommandMeta = {
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
keyPublish: {
|
|
93
|
-
commandPath: ["key", "
|
|
93
|
+
commandPath: ["key", "generate"],
|
|
94
94
|
summary: "Generate a publish access key",
|
|
95
|
-
interactive:
|
|
95
|
+
interactive: true
|
|
96
96
|
},
|
|
97
97
|
init: {
|
|
98
98
|
commandPath: ["init"],
|
|
@@ -173,6 +173,21 @@ const cliCommandMeta = {
|
|
|
173
173
|
commandPath: ["status"],
|
|
174
174
|
summary: "Show project health, versions, and update availability",
|
|
175
175
|
interactive: false
|
|
176
|
+
},
|
|
177
|
+
ps: {
|
|
178
|
+
commandPath: ["ps"],
|
|
179
|
+
summary: "List tracked development processes",
|
|
180
|
+
interactive: false
|
|
181
|
+
},
|
|
182
|
+
kill: {
|
|
183
|
+
commandPath: ["kill"],
|
|
184
|
+
summary: "Stop tracked development processes",
|
|
185
|
+
interactive: false,
|
|
186
|
+
fields: {
|
|
187
|
+
configDir: { description: "Kill processes owned by a config directory (defaults to cwd)" },
|
|
188
|
+
signal: { description: "Signal: SIGTERM (default) or SIGKILL" },
|
|
189
|
+
all: { description: "Kill processes across all config directories" }
|
|
190
|
+
}
|
|
176
191
|
}
|
|
177
192
|
};
|
|
178
193
|
|
|
@@ -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 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,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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rB,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"}
|
|
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\", \"generate\"],\n summary: \"Generate a publish access key\",\n interactive: true,\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 ps: {\n commandPath: [\"ps\"],\n summary: \"List tracked development processes\",\n interactive: false,\n },\n kill: {\n commandPath: [\"kill\"],\n summary: \"Stop tracked development processes\",\n interactive: false,\n fields: {\n configDir: { description: \"Kill processes owned by a config directory (defaults to cwd)\" },\n signal: { description: \"Signal: SIGTERM (default) or SIGKILL\" },\n all: { description: \"Kill processes across all config directories\" },\n },\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,2BA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
package/dist/contract.mjs
CHANGED
|
@@ -16,6 +16,10 @@ const DevOptionsSchema = z.object({
|
|
|
16
16
|
proxy: z.boolean().default(false),
|
|
17
17
|
ssr: z.boolean().default(false),
|
|
18
18
|
port: z.number().optional(),
|
|
19
|
+
apiPort: z.number().optional(),
|
|
20
|
+
uiPort: z.number().optional(),
|
|
21
|
+
authPort: z.number().optional(),
|
|
22
|
+
pluginPortStart: z.number().optional(),
|
|
19
23
|
interactive: z.boolean().optional()
|
|
20
24
|
});
|
|
21
25
|
const DevResultSchema = z.object({
|
|
@@ -157,7 +161,16 @@ const DeployResultSchema = z.object({
|
|
|
157
161
|
error: z.string().optional(),
|
|
158
162
|
deployResults: z.array(WorkspaceDeployResultSchema).optional()
|
|
159
163
|
});
|
|
160
|
-
|
|
164
|
+
function parseNearAmount(value) {
|
|
165
|
+
const match = value.replace(/[\s_,]/g, "").match(/^(\d+(?:\.\d+)?)near$/i);
|
|
166
|
+
if (!match) return NaN;
|
|
167
|
+
return Number.parseFloat(match[1]);
|
|
168
|
+
}
|
|
169
|
+
const MIN_PUBLISH_ALLOWANCE_NEAR = .3;
|
|
170
|
+
const KeyPublishOptionsSchema = z.object({ allowance: z.string().default("1NEAR").refine((val) => {
|
|
171
|
+
const amount = parseNearAmount(val);
|
|
172
|
+
return !Number.isNaN(amount) && amount >= MIN_PUBLISH_ALLOWANCE_NEAR;
|
|
173
|
+
}, { message: `Allowance must be at least ${MIN_PUBLISH_ALLOWANCE_NEAR} NEAR to cover the transaction cost` }) });
|
|
161
174
|
const KeyPublishResultSchema = z.object({
|
|
162
175
|
status: z.enum(["published", "error"]),
|
|
163
176
|
account: z.string(),
|
|
@@ -253,7 +266,9 @@ const StatusResultSchema = z.object({
|
|
|
253
266
|
packages: z.array(z.object({
|
|
254
267
|
name: z.string(),
|
|
255
268
|
installed: z.string().optional(),
|
|
256
|
-
latest: z.string().optional()
|
|
269
|
+
latest: z.string().optional(),
|
|
270
|
+
isLinked: z.boolean().optional(),
|
|
271
|
+
specifier: z.string().optional()
|
|
257
272
|
})),
|
|
258
273
|
lastSync: z.string().optional(),
|
|
259
274
|
envFile: z.enum([
|
|
@@ -300,7 +315,6 @@ const DbDoctorResultSchema = z.object({
|
|
|
300
315
|
appliedHashCount: z.number(),
|
|
301
316
|
expectedTables: z.array(z.string()),
|
|
302
317
|
missingTables: z.array(z.string()),
|
|
303
|
-
legacyCount: z.number(),
|
|
304
318
|
workspaceDir: z.string().optional(),
|
|
305
319
|
dbSecret: z.string().optional(),
|
|
306
320
|
dbUrl: z.string().optional(),
|
|
@@ -321,6 +335,51 @@ const DbRepairResultSchema = z.object({
|
|
|
321
335
|
diagnosis: z.any(),
|
|
322
336
|
error: z.string().optional()
|
|
323
337
|
});
|
|
338
|
+
const ProcessRoleSchema = z.enum([
|
|
339
|
+
"standalone",
|
|
340
|
+
"workspace-parent",
|
|
341
|
+
"workspace-child"
|
|
342
|
+
]);
|
|
343
|
+
const PidEntrySchema = z.object({
|
|
344
|
+
pid: z.number(),
|
|
345
|
+
configDir: z.string(),
|
|
346
|
+
parentPid: z.number().optional(),
|
|
347
|
+
role: ProcessRoleSchema,
|
|
348
|
+
ports: z.object({
|
|
349
|
+
host: z.number().optional(),
|
|
350
|
+
api: z.number().optional(),
|
|
351
|
+
ui: z.number().optional(),
|
|
352
|
+
auth: z.number().optional()
|
|
353
|
+
}).default({}),
|
|
354
|
+
budget: z.object({
|
|
355
|
+
min: z.number(),
|
|
356
|
+
max: z.number()
|
|
357
|
+
}).optional(),
|
|
358
|
+
startedAt: z.number(),
|
|
359
|
+
description: z.string()
|
|
360
|
+
});
|
|
361
|
+
const PsResultSchema = z.object({
|
|
362
|
+
status: z.enum(["ok", "error"]),
|
|
363
|
+
entries: z.array(PidEntrySchema),
|
|
364
|
+
error: z.string().optional()
|
|
365
|
+
});
|
|
366
|
+
const KillOptionsSchema = z.object({
|
|
367
|
+
configDir: z.string().optional(),
|
|
368
|
+
signal: z.enum(["SIGTERM", "SIGKILL"]).default("SIGTERM"),
|
|
369
|
+
all: z.boolean().default(false)
|
|
370
|
+
});
|
|
371
|
+
const KillResultSchema = z.object({
|
|
372
|
+
status: z.enum(["killed", "error"]),
|
|
373
|
+
killed: z.array(z.object({
|
|
374
|
+
pid: z.number(),
|
|
375
|
+
configDir: z.string()
|
|
376
|
+
})),
|
|
377
|
+
skipped: z.array(z.object({
|
|
378
|
+
pid: z.number(),
|
|
379
|
+
reason: z.string()
|
|
380
|
+
})),
|
|
381
|
+
error: z.string().optional()
|
|
382
|
+
});
|
|
324
383
|
const bosContract = oc.router({
|
|
325
384
|
dev: oc.route({
|
|
326
385
|
method: "POST",
|
|
@@ -397,9 +456,17 @@ const bosContract = oc.router({
|
|
|
397
456
|
dbRepair: oc.route({
|
|
398
457
|
method: "POST",
|
|
399
458
|
path: "/db/repair"
|
|
400
|
-
}).input(DbRepairOptionsSchema).output(DbRepairResultSchema)
|
|
459
|
+
}).input(DbRepairOptionsSchema).output(DbRepairResultSchema),
|
|
460
|
+
ps: oc.route({
|
|
461
|
+
method: "GET",
|
|
462
|
+
path: "/ps"
|
|
463
|
+
}).output(PsResultSchema),
|
|
464
|
+
kill: oc.route({
|
|
465
|
+
method: "POST",
|
|
466
|
+
path: "/kill"
|
|
467
|
+
}).input(KillOptionsSchema).output(KillResultSchema)
|
|
401
468
|
});
|
|
402
469
|
|
|
403
470
|
//#endregion
|
|
404
|
-
export { BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbDoctorOptionsSchema, DbDoctorResultSchema, DbRepairOptionsSchema, DbRepairResultSchema, DbStudioOptionsSchema, DbStudioResultSchema, DeployOptionsSchema, DeployResultSchema, DevOptionsSchema, DevResultSchema, InitOptionsSchema, InitResultSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, OverrideSectionSchema, PhaseTimingSchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, PublishOptionsSchema, PublishResultSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UpgradeOptionsSchema, UpgradeResultSchema, WorkspaceDeployResultSchema, bosContract };
|
|
471
|
+
export { BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DbDoctorOptionsSchema, DbDoctorResultSchema, DbRepairOptionsSchema, DbRepairResultSchema, DbStudioOptionsSchema, DbStudioResultSchema, DeployOptionsSchema, DeployResultSchema, DevOptionsSchema, DevResultSchema, InitOptionsSchema, InitResultSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, KillOptionsSchema, KillResultSchema, OverrideSectionSchema, PhaseTimingSchema, PidEntrySchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, ProcessRoleSchema, PsResultSchema, PublishOptionsSchema, PublishResultSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UpgradeOptionsSchema, UpgradeResultSchema, WorkspaceDeployResultSchema, bosContract };
|
|
405
472
|
//# sourceMappingURL=contract.mjs.map
|