@geekmidas/cli 10.0.0-alpha.45 → 10.0.0-alpha.46
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/README.md +144 -183
- package/dist/{OpenApiTsGenerator-B4Kj_qNU.cjs → OpenApiTsGenerator-BN0PIZxd.cjs} +17 -71
- package/dist/OpenApiTsGenerator-BN0PIZxd.cjs.map +1 -0
- package/dist/{OpenApiTsGenerator-CEh3EKN3.mjs → OpenApiTsGenerator-BzIGy8KE.mjs} +17 -71
- package/dist/OpenApiTsGenerator-BzIGy8KE.mjs.map +1 -0
- package/dist/{config-CJ-PAb7M.cjs → config-CsYSyUya.cjs} +3 -3
- package/dist/{config-CJ-PAb7M.cjs.map → config-CsYSyUya.cjs.map} +1 -1
- package/dist/{config-5watB1D0.mjs → config-D8J5rrTb.mjs} +3 -3
- package/dist/{config-5watB1D0.mjs.map → config-D8J5rrTb.mjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/{discover-BLhf7V_J.mjs → discover-Cf2jAcgF.mjs} +4 -56
- package/dist/discover-Cf2jAcgF.mjs.map +1 -0
- package/dist/{discover-B0f_kuNN.cjs → discover-DXNviAh-.cjs} +3 -79
- package/dist/discover-DXNviAh-.cjs.map +1 -0
- package/dist/{emit-Bzq7JsMP.mjs → emit-C1e8qD08.mjs} +12 -43
- package/dist/emit-C1e8qD08.mjs.map +1 -0
- package/dist/{emit-BdoPFjZf.cjs → emit-Dmc1nvdS.cjs} +11 -54
- package/dist/emit-Dmc1nvdS.cjs.map +1 -0
- package/dist/{github-D5MthUlR.mjs → github-BfpadQWQ.mjs} +3 -3
- package/dist/{github-D5MthUlR.mjs.map → github-BfpadQWQ.mjs.map} +1 -1
- package/dist/{github-BAr8WGkR.cjs → github-BrI1tv6u.cjs} +3 -3
- package/dist/{github-BAr8WGkR.cjs.map → github-BrI1tv6u.cjs.map} +1 -1
- package/dist/{index-B3PeGOQp.d.cts → index-BQhJXpaQ.d.mts} +2 -2
- package/dist/{index-B3PeGOQp.d.cts.map → index-BQhJXpaQ.d.mts.map} +1 -1
- package/dist/{index-BOyaGcCm.d.mts → index-DHJePE0y.d.cts} +2 -2
- package/dist/{index-BOyaGcCm.d.mts.map → index-DHJePE0y.d.cts.map} +1 -1
- package/dist/index.cjs +395 -660
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +397 -662
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-BRklCm7b.mjs → migrate-B3opyC3o.mjs} +5 -5
- package/dist/{migrate-BRklCm7b.mjs.map → migrate-B3opyC3o.mjs.map} +1 -1
- package/dist/{migrate-PJi4b1ga.cjs → migrate-Dp5HFzuQ.cjs} +5 -5
- package/dist/{migrate-PJi4b1ga.cjs.map → migrate-Dp5HFzuQ.cjs.map} +1 -1
- package/dist/openapi.cjs +2 -2
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +2 -2
- package/dist/{ready-3RfHxdA0.cjs → ready-L7I68yXf.cjs} +67 -8
- package/dist/ready-L7I68yXf.cjs.map +1 -0
- package/dist/{ready-ZqOuNvKD.mjs → ready-V6Ou6-B6.mjs} +49 -8
- package/dist/ready-V6Ou6-B6.mjs.map +1 -0
- package/dist/reconcile/public.cjs +2 -4
- package/dist/reconcile/public.d.cts +6 -10
- package/dist/reconcile/public.d.cts.map +1 -1
- package/dist/reconcile/public.d.mts +6 -10
- package/dist/reconcile/public.d.mts.map +1 -1
- package/dist/reconcile/public.mjs +3 -3
- package/dist/{types-0R124hrY.d.mts → types-BbrNu83u.d.mts} +14 -109
- package/dist/{types-0R124hrY.d.mts.map → types-BbrNu83u.d.mts.map} +1 -1
- package/dist/{types-DfdYe31u.d.cts → types-DNqEsctD.d.cts} +14 -109
- package/dist/{types-DfdYe31u.d.cts.map → types-DNqEsctD.d.cts.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-BKytVCzb.mjs → workspace-CHEC80sp.mjs} +6 -7
- package/dist/workspace-CHEC80sp.mjs.map +1 -0
- package/dist/{workspace-dV6f-3vv.cjs → workspace-D9z2ymBW.cjs} +11 -12
- package/dist/workspace-D9z2ymBW.cjs.map +1 -0
- package/dist/{workspace-RYSYtHP7.cjs → workspace-DEibcoBe.cjs} +11 -25
- package/dist/{workspace-RYSYtHP7.cjs.map → workspace-DEibcoBe.cjs.map} +1 -1
- package/dist/{workspace-DOmIhiau.mjs → workspace-DNzWgM1J.mjs} +11 -25
- package/dist/{workspace-DOmIhiau.mjs.map → workspace-DNzWgM1J.mjs.map} +1 -1
- package/package.json +14 -14
- package/dist/OpenApiTsGenerator-B4Kj_qNU.cjs.map +0 -1
- package/dist/OpenApiTsGenerator-CEh3EKN3.mjs.map +0 -1
- package/dist/discover-B0f_kuNN.cjs.map +0 -1
- package/dist/discover-BLhf7V_J.mjs.map +0 -1
- package/dist/emit-BdoPFjZf.cjs.map +0 -1
- package/dist/emit-Bzq7JsMP.mjs.map +0 -1
- package/dist/ready-3RfHxdA0.cjs.map +0 -1
- package/dist/ready-ZqOuNvKD.mjs.map +0 -1
- package/dist/workspace-BKytVCzb.mjs.map +0 -1
- package/dist/workspace-dV6f-3vv.cjs.map +0 -1
|
@@ -5632,18 +5632,8 @@ var UndeclaredStage = class extends Error {
|
|
|
5632
5632
|
};
|
|
5633
5633
|
//#endregion
|
|
5634
5634
|
//#region src/workspace/schema.ts
|
|
5635
|
-
/**
|
|
5636
|
-
|
|
5637
|
-
* with glob paths and a partition function.
|
|
5638
|
-
*/
|
|
5639
|
-
const RoutesSchema = union([
|
|
5640
|
-
string(),
|
|
5641
|
-
array(string()),
|
|
5642
|
-
object({
|
|
5643
|
-
paths: union([string(), array(string())]),
|
|
5644
|
-
partition: custom((val) => typeof val === "function")
|
|
5645
|
-
})
|
|
5646
|
-
]);
|
|
5635
|
+
/** Routes are a glob, or a list of them. */
|
|
5636
|
+
const RoutesSchema = union([string(), array(string())]);
|
|
5647
5637
|
/**
|
|
5648
5638
|
* Telescope configuration schema.
|
|
5649
5639
|
*/
|
|
@@ -5706,18 +5696,20 @@ const FRONTEND_FRAMEWORKS = [
|
|
|
5706
5696
|
const MOBILE_FRAMEWORKS = ["expo"];
|
|
5707
5697
|
/**
|
|
5708
5698
|
* Deploy target schema.
|
|
5709
|
-
*
|
|
5699
|
+
* 'dokploy' is deployed by `gkm deploy`; 'sst' by `sst deploy`, from the
|
|
5700
|
+
* manifest `gkm build` writes.
|
|
5710
5701
|
* 'vercel' and 'cloudflare' are planned for Phase 2.
|
|
5711
5702
|
*/
|
|
5712
5703
|
const DeployTargetSchema = _enum([
|
|
5713
5704
|
"dokploy",
|
|
5705
|
+
"sst",
|
|
5714
5706
|
"vercel",
|
|
5715
5707
|
"cloudflare"
|
|
5716
5708
|
]);
|
|
5717
5709
|
/**
|
|
5718
5710
|
* Supported deploy targets (Phase 1).
|
|
5719
5711
|
*/
|
|
5720
|
-
const SUPPORTED_DEPLOY_TARGETS = ["dokploy"];
|
|
5712
|
+
const SUPPORTED_DEPLOY_TARGETS = ["dokploy", "sst"];
|
|
5721
5713
|
/**
|
|
5722
5714
|
* Phase 2 deploy targets (not yet implemented).
|
|
5723
5715
|
*/
|
|
@@ -5738,8 +5730,8 @@ function isPhase2DeployTarget(target) {
|
|
|
5738
5730
|
* Get error message for unsupported deploy targets.
|
|
5739
5731
|
*/
|
|
5740
5732
|
function getDeployTargetError(target, appName) {
|
|
5741
|
-
if (isPhase2DeployTarget(target)) return `Deploy target "${target}"${appName ? ` for app "${appName}"` : ""} is coming in Phase 2. Currently
|
|
5742
|
-
return `Unknown deploy target: ${target}. Supported: dokploy. Coming in Phase 2: vercel, cloudflare.`;
|
|
5733
|
+
if (isPhase2DeployTarget(target)) return `Deploy target "${target}"${appName ? ` for app "${appName}"` : ""} is coming in Phase 2. Currently "dokploy" and "sst" are supported.`;
|
|
5734
|
+
return `Unknown deploy target: ${target}. Supported: dokploy, sst. Coming in Phase 2: vercel, cloudflare.`;
|
|
5743
5735
|
}
|
|
5744
5736
|
/**
|
|
5745
5737
|
* Dokploy workspace configuration schema.
|
|
@@ -6380,11 +6372,10 @@ function wrapSingleAppAsWorkspace(config, cwd) {
|
|
|
6380
6372
|
apps: { api: {
|
|
6381
6373
|
type: "backend",
|
|
6382
6374
|
path: ".",
|
|
6383
|
-
port:
|
|
6375
|
+
port: 3e3,
|
|
6384
6376
|
dependencies: [],
|
|
6385
6377
|
resolvedDeployTarget: config.deploy?.default ?? "dokploy",
|
|
6386
6378
|
constructs: config.constructs,
|
|
6387
|
-
providers: config.providers,
|
|
6388
6379
|
hooks: config.hooks,
|
|
6389
6380
|
telescope: config.telescope,
|
|
6390
6381
|
studio: config.studio,
|
|
@@ -6464,11 +6455,7 @@ function allConstructGlobs(workspace) {
|
|
|
6464
6455
|
/** A `Routes` in any of its accepted shapes, as a flat list of patterns. */
|
|
6465
6456
|
function constructPatterns(routes) {
|
|
6466
6457
|
if (!routes) return [];
|
|
6467
|
-
|
|
6468
|
-
if (Array.isArray(routes)) return routes;
|
|
6469
|
-
const paths = routes.paths;
|
|
6470
|
-
if (!paths) return [];
|
|
6471
|
-
return Array.isArray(paths) ? paths : [paths];
|
|
6458
|
+
return typeof routes === "string" ? [routes] : routes;
|
|
6472
6459
|
}
|
|
6473
6460
|
/**
|
|
6474
6461
|
* Get the GkmConfig for a specific app in a workspace.
|
|
@@ -6481,7 +6468,6 @@ function getAppGkmConfig(workspace, appName) {
|
|
|
6481
6468
|
...workspace.deploy ? { deploy: workspace.deploy } : {},
|
|
6482
6469
|
stages: workspace.stages,
|
|
6483
6470
|
constructs: appConstructGlobs(workspace, appName),
|
|
6484
|
-
providers: app.providers,
|
|
6485
6471
|
hooks: app.hooks,
|
|
6486
6472
|
telescope: app.telescope,
|
|
6487
6473
|
studio: app.studio,
|
|
@@ -6542,4 +6528,4 @@ function getEndpointForStage(dokployConfig, stage) {
|
|
|
6542
6528
|
//#endregion
|
|
6543
6529
|
export { safeValidateWorkspaceConfig as C, assertDeployedStage as D, TEST_STAGE as E, deployedProblems as O, isPhase2DeployTarget as S, InvalidStages as T, SUPPORTED_DEPLOY_TARGETS as _, getAppBuildOrder as a, getDeployTargetError as b, normalizeWorkspace as c, wrapSingleAppAsWorkspace as d, PUBLIC_ENV_PREFIXES as f, PHASE_2_DEPLOY_TARGETS as g, isWorkspaceConfig as h, defineWorkspace as i, stageProblems as k, processConfig as l, stripPublicPrefix as m, appConstructGlobs as n, getAppGkmConfig as o, getPublicEnvPrefix as p, constructPatterns as r, getEndpointForStage as s, allConstructGlobs as t, workspaceConstructGlobs as u, WorkspaceConfigSchema as v, validateWorkspaceConfig as w, isDeployTargetSupported as x, formatValidationErrors as y };
|
|
6544
6530
|
|
|
6545
|
-
//# sourceMappingURL=workspace-
|
|
6531
|
+
//# sourceMappingURL=workspace-DNzWgM1J.mjs.map
|