@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
@@ -4887,12 +4887,12 @@ declare const WorkspaceConfigSchema: ZodObject<{
4887
4887
  sst: "sst";
4888
4888
  vercel: "vercel";
4889
4889
  }>>;
4890
+ domains: ZodOptional<ZodRecord<ZodString, ZodString>>;
4890
4891
  dokploy: ZodOptional<ZodObject<{
4891
4892
  endpoint: ZodOptional<ZodURL>;
4892
4893
  endpoints: ZodOptional<ZodRecord<ZodString, ZodURL>>;
4893
4894
  registry: ZodOptional<ZodString>;
4894
4895
  registryId: ZodOptional<ZodString>;
4895
- domains: ZodOptional<ZodRecord<ZodString, ZodString>>;
4896
4896
  }, $strip>>;
4897
4897
  dns: ZodOptional<ZodUnion<readonly [ZodRecord<ZodString, ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
4898
4898
  provider: ZodLiteral<"hostinger">;
@@ -5180,26 +5180,26 @@ declare function formatValidationErrors(error: ZodError): string;
5180
5180
  */
5181
5181
  type DeployTarget = 'dokploy' | 'sst' | 'vercel' | 'cloudflare';
5182
5182
  /**
5183
- * Stage-based domain configuration.
5183
+ * Each deployed stage's base domain — `deploy.domains`.
5184
5184
  *
5185
- * Maps deployment stages to base domains. The main frontend app
5186
- * gets the base domain, other apps get `{appName}.{baseDomain}`.
5185
+ * A fact about the deployment rather than the platform, so every target reads
5186
+ * it. The root site answers on the base domain; every other surface on
5187
+ * `{subdomain}.{domain}`, where the subdomain is the construct's own
5188
+ * `subdomain`, or its id kebab-cased.
5187
5189
  *
5188
5190
  * @example
5189
5191
  * ```ts
5190
- * domains: {
5191
- * development: 'dev.myapp.com',
5192
- * staging: 'staging.myapp.com',
5193
- * production: 'myapp.com',
5192
+ * deploy: {
5193
+ * domains: { production: 'myapp.com', staging: 'staging.myapp.com' },
5194
5194
  * }
5195
5195
  *
5196
- * // Result for production stage:
5197
- * // - web (main frontend): myapp.com
5198
- * // - api: api.myapp.com
5199
- * // - auth: auth.myapp.com
5196
+ * // production:
5197
+ * // - new StaticSite('Web', { root: true }) → myapp.com
5198
+ * // - new RestApi('Api', { subdomain: 'api' }) → api.myapp.com
5199
+ * // - new RestApi('Webhooks', { … }) → webhooks.myapp.com
5200
5200
  * ```
5201
5201
  */
5202
- type DokployDomainsConfig = Record<string, string>;
5202
+ type DomainsConfig = Record<string, string>;
5203
5203
  /**
5204
5204
  * Per-app domain override configuration.
5205
5205
  *
@@ -5261,12 +5261,6 @@ interface DokployWorkspaceConfig {
5261
5261
  registry?: string;
5262
5262
  /** Registry ID in Dokploy (auto-configured) */
5263
5263
  registryId?: string;
5264
- /**
5265
- * Stage-based domain configuration.
5266
- * The main frontend app gets the base domain.
5267
- * Other apps get {appName}.{baseDomain} by default.
5268
- */
5269
- domains?: DokployDomainsConfig;
5270
5264
  }
5271
5265
  /**
5272
5266
  * Deployment configuration for the workspace.
@@ -5303,6 +5297,8 @@ interface DokployWorkspaceConfig {
5303
5297
  interface DeployConfig {
5304
5298
  /** Default deploy target for all apps (default: 'dokploy') */
5305
5299
  default?: DeployTarget;
5300
+ /** Each deployed stage's base domain — see {@link DomainsConfig}. */
5301
+ domains?: DomainsConfig;
5306
5302
  /** Dokploy-specific configuration */
5307
5303
  dokploy?: DokployWorkspaceConfig;
5308
5304
  /** DNS configuration for automatic record creation */
@@ -5839,14 +5835,14 @@ type InferredWorkspaceConfig<TApps extends AppsRecord> = {
5839
5835
  * // Deployment configuration
5840
5836
  * deploy: {
5841
5837
  * default: 'dokploy',
5838
+ * domains: {
5839
+ * production: 'myapp.com',
5840
+ * staging: 'staging.myapp.com',
5841
+ * },
5842
5842
  * dokploy: {
5843
5843
  * endpoint: 'https://dokploy.myserver.com',
5844
5844
  * projectId: 'proj_abc123',
5845
5845
  * registry: 'ghcr.io/myorg',
5846
- * domains: {
5847
- * production: 'myapp.com',
5848
- * staging: 'staging.myapp.com',
5849
- * },
5850
5846
  * },
5851
5847
  * },
5852
5848
  *
@@ -5900,6 +5896,11 @@ interface NormalizedAppConfig extends Omit<AppConfigBase, 'type'> {
5900
5896
  * and that is `domain`.
5901
5897
  */
5902
5898
  root?: boolean;
5899
+ /**
5900
+ * The label this app answers on under a stage's domain, carried from its
5901
+ * declaration — `api` for `api.myapp.com`. Absent, the app's own name.
5902
+ */
5903
+ subdomain?: string;
5903
5904
  /** App type (always defined after normalization) */
5904
5905
  type: 'backend' | 'web' | 'mobile';
5905
5906
  /** Path to the app */
@@ -6227,4 +6228,4 @@ interface GkmConfig {
6227
6228
  }
6228
6229
  //#endregion
6229
6230
  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 };
6230
- //# sourceMappingURL=types-DNqEsctD.d.cts.map
6231
+ //# sourceMappingURL=types-DYDT4FfE.d.cts.map