@geekmidas/cli 10.0.0-alpha.50 → 10.0.0-alpha.51

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.
Files changed (55) hide show
  1. package/dist/{config-CsYSyUya.cjs → config-Cvr5fCbn.cjs} +3 -2
  2. package/dist/config-Cvr5fCbn.cjs.map +1 -0
  3. package/dist/{config-D8J5rrTb.mjs → config-SOkDH-n1.mjs} +3 -2
  4. package/dist/config-SOkDH-n1.mjs.map +1 -0
  5. package/dist/config.cjs +2 -2
  6. package/dist/config.d.cts +2 -2
  7. package/dist/config.d.mts +2 -2
  8. package/dist/config.mjs +2 -2
  9. package/dist/{encryption-C7OGMve_.cjs → encryption-Bt8SHRI6.cjs} +3 -3
  10. package/dist/{encryption-C7OGMve_.cjs.map → encryption-Bt8SHRI6.cjs.map} +1 -1
  11. package/dist/{encryption-DyQnPsZN.mjs → encryption-DRCXp-U4.mjs} +3 -3
  12. package/dist/{encryption-DyQnPsZN.mjs.map → encryption-DRCXp-U4.mjs.map} +1 -1
  13. package/dist/{github-BrI1tv6u.cjs → github-BGx4U61b.cjs} +3 -3
  14. package/dist/{github-BrI1tv6u.cjs.map → github-BGx4U61b.cjs.map} +1 -1
  15. package/dist/{github-BfpadQWQ.mjs → github-U_frvZgD.mjs} +3 -3
  16. package/dist/{github-BfpadQWQ.mjs.map → github-U_frvZgD.mjs.map} +1 -1
  17. package/dist/{index-BQhJXpaQ.d.mts → index-DYh5TrsZ.d.mts} +2 -2
  18. package/dist/{index-BQhJXpaQ.d.mts.map → index-DYh5TrsZ.d.mts.map} +1 -1
  19. package/dist/{index-DHJePE0y.d.cts → index-fU3qHy7c.d.cts} +2 -2
  20. package/dist/{index-DHJePE0y.d.cts.map → index-fU3qHy7c.d.cts.map} +1 -1
  21. package/dist/index.cjs +72 -74
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.mjs +72 -74
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/{migrate-CNlew9Ek.cjs → migrate-dx4I0epp.cjs} +4 -4
  26. package/dist/{migrate-CNlew9Ek.cjs.map → migrate-dx4I0epp.cjs.map} +1 -1
  27. package/dist/{migrate-B00XpVaO.mjs → migrate-soUQtku3.mjs} +4 -4
  28. package/dist/{migrate-B00XpVaO.mjs.map → migrate-soUQtku3.mjs.map} +1 -1
  29. package/dist/openapi.cjs +1 -1
  30. package/dist/openapi.d.cts +1 -1
  31. package/dist/openapi.d.mts +1 -1
  32. package/dist/openapi.mjs +1 -1
  33. package/dist/reconcile/public.d.cts +1 -1
  34. package/dist/reconcile/public.d.mts +1 -1
  35. package/dist/{types-BbrNu83u.d.mts → types-CT0ymlBk.d.mts} +25 -24
  36. package/dist/{types-BbrNu83u.d.mts.map → types-CT0ymlBk.d.mts.map} +1 -1
  37. package/dist/{types-DNqEsctD.d.cts → types-DYDT4FfE.d.cts} +25 -24
  38. package/dist/{types-DNqEsctD.d.cts.map → types-DYDT4FfE.d.cts.map} +1 -1
  39. package/dist/workspace/index.cjs +1 -1
  40. package/dist/workspace/index.d.cts +2 -2
  41. package/dist/workspace/index.d.mts +2 -2
  42. package/dist/workspace/index.mjs +1 -1
  43. package/dist/{workspace-DEibcoBe.cjs → workspace-BcCiLzTO.cjs} +4 -4
  44. package/dist/{workspace-DEibcoBe.cjs.map → workspace-BcCiLzTO.cjs.map} +1 -1
  45. package/dist/{workspace-BsbxbqV-.mjs → workspace-Dp2zK_Nk.mjs} +15 -4
  46. package/dist/workspace-Dp2zK_Nk.mjs.map +1 -0
  47. package/dist/{workspace-j6ZxvJqq.cjs → workspace-GBzR_hID.cjs} +15 -4
  48. package/dist/workspace-GBzR_hID.cjs.map +1 -0
  49. package/dist/{workspace-DNzWgM1J.mjs → workspace-bOsks1uk.mjs} +4 -4
  50. package/dist/{workspace-DNzWgM1J.mjs.map → workspace-bOsks1uk.mjs.map} +1 -1
  51. package/package.json +14 -14
  52. package/dist/config-CsYSyUya.cjs.map +0 -1
  53. package/dist/config-D8J5rrTb.mjs.map +0 -1
  54. package/dist/workspace-BsbxbqV-.mjs.map +0 -1
  55. package/dist/workspace-j6ZxvJqq.cjs.map +0 -1
@@ -4886,12 +4886,12 @@ declare const WorkspaceConfigSchema: ZodObject<{
4886
4886
  sst: "sst";
4887
4887
  vercel: "vercel";
4888
4888
  }>>;
4889
+ domains: ZodOptional<ZodRecord<ZodString, ZodString>>;
4889
4890
  dokploy: ZodOptional<ZodObject<{
4890
4891
  endpoint: ZodOptional<ZodURL>;
4891
4892
  endpoints: ZodOptional<ZodRecord<ZodString, ZodURL>>;
4892
4893
  registry: ZodOptional<ZodString>;
4893
4894
  registryId: ZodOptional<ZodString>;
4894
- domains: ZodOptional<ZodRecord<ZodString, ZodString>>;
4895
4895
  }, $strip>>;
4896
4896
  dns: ZodOptional<ZodUnion<readonly [ZodRecord<ZodString, ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
4897
4897
  provider: ZodLiteral<"hostinger">;
@@ -5179,26 +5179,26 @@ declare function formatValidationErrors(error: ZodError): string;
5179
5179
  */
5180
5180
  type DeployTarget = 'dokploy' | 'sst' | 'vercel' | 'cloudflare';
5181
5181
  /**
5182
- * Stage-based domain configuration.
5182
+ * Each deployed stage's base domain — `deploy.domains`.
5183
5183
  *
5184
- * Maps deployment stages to base domains. The main frontend app
5185
- * gets the base domain, other apps get `{appName}.{baseDomain}`.
5184
+ * A fact about the deployment rather than the platform, so every target reads
5185
+ * it. The root site answers on the base domain; every other surface on
5186
+ * `{subdomain}.{domain}`, where the subdomain is the construct's own
5187
+ * `subdomain`, or its id kebab-cased.
5186
5188
  *
5187
5189
  * @example
5188
5190
  * ```ts
5189
- * domains: {
5190
- * development: 'dev.myapp.com',
5191
- * staging: 'staging.myapp.com',
5192
- * production: 'myapp.com',
5191
+ * deploy: {
5192
+ * domains: { production: 'myapp.com', staging: 'staging.myapp.com' },
5193
5193
  * }
5194
5194
  *
5195
- * // Result for production stage:
5196
- * // - web (main frontend): myapp.com
5197
- * // - api: api.myapp.com
5198
- * // - auth: auth.myapp.com
5195
+ * // production:
5196
+ * // - new StaticSite('Web', { root: true }) → myapp.com
5197
+ * // - new RestApi('Api', { subdomain: 'api' }) → api.myapp.com
5198
+ * // - new RestApi('Webhooks', { … }) → webhooks.myapp.com
5199
5199
  * ```
5200
5200
  */
5201
- type DokployDomainsConfig = Record<string, string>;
5201
+ type DomainsConfig = Record<string, string>;
5202
5202
  /**
5203
5203
  * Per-app domain override configuration.
5204
5204
  *
@@ -5260,12 +5260,6 @@ interface DokployWorkspaceConfig {
5260
5260
  registry?: string;
5261
5261
  /** Registry ID in Dokploy (auto-configured) */
5262
5262
  registryId?: string;
5263
- /**
5264
- * Stage-based domain configuration.
5265
- * The main frontend app gets the base domain.
5266
- * Other apps get {appName}.{baseDomain} by default.
5267
- */
5268
- domains?: DokployDomainsConfig;
5269
5263
  }
5270
5264
  /**
5271
5265
  * Deployment configuration for the workspace.
@@ -5302,6 +5296,8 @@ interface DokployWorkspaceConfig {
5302
5296
  interface DeployConfig {
5303
5297
  /** Default deploy target for all apps (default: 'dokploy') */
5304
5298
  default?: DeployTarget;
5299
+ /** Each deployed stage's base domain — see {@link DomainsConfig}. */
5300
+ domains?: DomainsConfig;
5305
5301
  /** Dokploy-specific configuration */
5306
5302
  dokploy?: DokployWorkspaceConfig;
5307
5303
  /** DNS configuration for automatic record creation */
@@ -5838,14 +5834,14 @@ type InferredWorkspaceConfig<TApps extends AppsRecord> = {
5838
5834
  * // Deployment configuration
5839
5835
  * deploy: {
5840
5836
  * default: 'dokploy',
5837
+ * domains: {
5838
+ * production: 'myapp.com',
5839
+ * staging: 'staging.myapp.com',
5840
+ * },
5841
5841
  * dokploy: {
5842
5842
  * endpoint: 'https://dokploy.myserver.com',
5843
5843
  * projectId: 'proj_abc123',
5844
5844
  * registry: 'ghcr.io/myorg',
5845
- * domains: {
5846
- * production: 'myapp.com',
5847
- * staging: 'staging.myapp.com',
5848
- * },
5849
5845
  * },
5850
5846
  * },
5851
5847
  *
@@ -5899,6 +5895,11 @@ interface NormalizedAppConfig extends Omit<AppConfigBase, 'type'> {
5899
5895
  * and that is `domain`.
5900
5896
  */
5901
5897
  root?: boolean;
5898
+ /**
5899
+ * The label this app answers on under a stage's domain, carried from its
5900
+ * declaration — `api` for `api.myapp.com`. Absent, the app's own name.
5901
+ */
5902
+ subdomain?: string;
5902
5903
  /** App type (always defined after normalization) */
5903
5904
  type: 'backend' | 'web' | 'mobile';
5904
5905
  /** Path to the app */
@@ -6226,4 +6227,4 @@ interface GkmConfig {
6226
6227
  }
6227
6228
  //#endregion
6228
6229
  export { SUPPORTED_DEPLOY_TARGETS as A, WorkspaceInput as C, FrontendFramework as D, Framework as E, isPhase2DeployTarget as F, safeValidateWorkspaceConfig as I, validateWorkspaceConfig as L, formatValidationErrors as M, getDeployTargetError as N, MobileFramework as O, isDeployTargetSupported as P, WorkspaceConfig as S, BackendFramework as T, ModelsConfig as _, Routes as a, SecretsConfig as b, AppInput as c, DeployConfig as d, DeployTarget as f, LoadedConfig as g, InferredWorkspaceConfig as h, OpenApiConfig as i, WorkspaceConfigSchema as j, PHASE_2_DEPLOY_TARGETS as k, AppsRecord as l, InferAppNames as m, EmailBackend as n, AppConfig as o, DokployWorkspaceConfig as p, GkmConfig as r, AppConfigInput as s, CacheBackend as t, ConstrainedApps as u, NormalizedAppConfig as v, isWorkspaceConfig as w, SharedConfig as x, NormalizedWorkspace as y };
6229
- //# sourceMappingURL=types-BbrNu83u.d.mts.map
6230
+ //# sourceMappingURL=types-CT0ymlBk.d.mts.map