@geekmidas/cli 10.0.0-alpha.3 → 10.0.0-alpha.4

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 (49) hide show
  1. package/dist/{config-BholeD-0.cjs → config-C21ocYNd.cjs} +2 -2
  2. package/dist/{config-BholeD-0.cjs.map → config-C21ocYNd.cjs.map} +1 -1
  3. package/dist/{config-CzWnfcXM.mjs → config-WRdsQYZK.mjs} +2 -2
  4. package/dist/{config-CzWnfcXM.mjs.map → config-WRdsQYZK.mjs.map} +1 -1
  5. package/dist/config.cjs +2 -2
  6. package/dist/config.d.cts +2 -2
  7. package/dist/config.mjs +2 -2
  8. package/dist/{credentials-BZcp3CGx.mjs → credentials-BBIRJVp4.mjs} +4 -4
  9. package/dist/{credentials-BZcp3CGx.mjs.map → credentials-BBIRJVp4.mjs.map} +1 -1
  10. package/dist/{credentials-DQmbRnr1.cjs → credentials-G1JwBoXH.cjs} +4 -4
  11. package/dist/{credentials-DQmbRnr1.cjs.map → credentials-G1JwBoXH.cjs.map} +1 -1
  12. package/dist/{index-CHB4tSzX.d.cts → index-DCtipn2h.d.cts} +2 -2
  13. package/dist/{index-CHB4tSzX.d.cts.map → index-DCtipn2h.d.cts.map} +1 -1
  14. package/dist/index.cjs +49 -49
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.mjs +49 -49
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/{openapi-c9bpieI5.cjs → openapi-CA0yJUTN.cjs} +7 -2
  19. package/dist/{openapi-c9bpieI5.cjs.map → openapi-CA0yJUTN.cjs.map} +1 -1
  20. package/dist/{openapi-CY9xFkTH.mjs → openapi-kkQbsRVj.mjs} +7 -2
  21. package/dist/{openapi-CY9xFkTH.mjs.map → openapi-kkQbsRVj.mjs.map} +1 -1
  22. package/dist/openapi.cjs +3 -3
  23. package/dist/openapi.d.cts +1 -1
  24. package/dist/openapi.mjs +3 -3
  25. package/dist/reconcile/public.d.cts +1 -1
  26. package/dist/setup-B5_oHHUj.cjs +11 -0
  27. package/dist/{setup-C48C9hto.cjs → setup-Cm2UnAdh.cjs} +3 -3
  28. package/dist/{setup-C48C9hto.cjs.map → setup-Cm2UnAdh.cjs.map} +1 -1
  29. package/dist/{setup-Bc73t0ve.mjs → setup-DXvRLTZN.mjs} +3 -3
  30. package/dist/{setup-Bc73t0ve.mjs.map → setup-DXvRLTZN.mjs.map} +1 -1
  31. package/dist/{setup-DCuudnCl.mjs → setup-ZijS4qeC.mjs} +4 -4
  32. package/dist/{types-abJQuk7m.d.cts → types-BhIl-COG.d.cts} +4 -4
  33. package/dist/{types-abJQuk7m.d.cts.map → types-BhIl-COG.d.cts.map} +1 -1
  34. package/dist/workspace/index.cjs +1 -1
  35. package/dist/workspace/index.d.cts +2 -2
  36. package/dist/workspace/index.mjs +1 -1
  37. package/dist/workspace-BFMrAKqI.mjs +6634 -0
  38. package/dist/workspace-BFMrAKqI.mjs.map +1 -0
  39. package/dist/workspace-BcucjwvA.cjs +6783 -0
  40. package/dist/workspace-BcucjwvA.cjs.map +1 -0
  41. package/dist/{workspace-BO_KWohI.cjs → workspace-DdJss8I6.cjs} +3 -3
  42. package/dist/workspace-k4l3rsFh.mjs +8 -0
  43. package/package.json +30 -30
  44. package/dist/setup-fG_ivuxO.cjs +0 -11
  45. package/dist/workspace-7FqprxuJ.mjs +0 -4323
  46. package/dist/workspace-7FqprxuJ.mjs.map +0 -1
  47. package/dist/workspace-DK4WWJIn.mjs +0 -8
  48. package/dist/workspace-XvqO9jIv.cjs +0 -4472
  49. package/dist/workspace-XvqO9jIv.cjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env -S npx tsx
2
2
  import { __require } from "./chunk-Duj1WY3L.mjs";
3
3
  import { ConstructGenerator, DEFAULT_CACHE, discover, isPartitionedRoutes } from "./discover-CAlFgYec.mjs";
4
- import { derivedApps, getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig, resolveAppSpec } from "./config-CzWnfcXM.mjs";
5
- import { allConstructGlobs, getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, getPublicEnvPrefix, isDeployTargetSupported, stripPublicPrefix } from "./workspace-7FqprxuJ.mjs";
4
+ import { derivedApps, getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig, resolveAppSpec } from "./config-WRdsQYZK.mjs";
5
+ import { allConstructGlobs, getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, getPublicEnvPrefix, isDeployTargetSupported, stripPublicPrefix } from "./workspace-BFMrAKqI.mjs";
6
6
  import { getCredentialsPath, getDokployCredentials, getDokployRegistryId, getDokployToken, removeDokployCredentials, storeDokployCredentials, storeDokployRegistryId, storeHostingerToken } from "./credentials-B5zRHdAl.mjs";
7
- import { applyPostgres, cacheBackendOf, constructGlobs, createCredentialsPreload, createEntryWrapper, derivedContainers, emailBackendOf, findAvailablePort, isPortAvailable, loadEnvFiles, loadSecretsForApp, prepareEntryCredentials, providerOf, reconcileWorkspace, resolveServicePorts, resourceName, rewriteUrlsWithPorts, startWorkspaceServices, storageBackendOf, usesConstructs } from "./credentials-BZcp3CGx.mjs";
7
+ import { applyPostgres, cacheBackendOf, constructGlobs, createCredentialsPreload, createEntryWrapper, derivedContainers, emailBackendOf, findAvailablePort, isPortAvailable, loadEnvFiles, loadSecretsForApp, prepareEntryCredentials, providerOf, reconcileWorkspace, resolveServicePorts, resourceName, rewriteUrlsWithPorts, startWorkspaceServices, storageBackendOf, usesConstructs } from "./credentials-BBIRJVp4.mjs";
8
8
  import { createStageSecrets, rotateServicePassword } from "./generator-VE2JrFlY.mjs";
9
9
  import { getKeyPath, maskPassword, readStageSecrets, secretsExist, setCustomSecret, toEmbeddableSecrets, writeStageSecrets } from "./storage-Bi24WfoW.mjs";
10
- import { EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-CY9xFkTH.mjs";
10
+ import { EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-kkQbsRVj.mjs";
11
11
  import { withCompute, withRoutes } from "./emit-CiZS_5Ub.mjs";
12
12
  import { DokployApi } from "./dokploy-api-aTFPz7_4.mjs";
13
13
  import { encryptSecrets } from "./encryption-D-abyhZx.mjs";
@@ -15,7 +15,7 @@ import { CachedStateProvider } from "./CachedStateProvider-DTniehMP.mjs";
15
15
  import { generateDbPassword, generateDbUrl, generateFullstackCustomSecrets } from "./fullstack-secrets-D1o9-G5l.mjs";
16
16
  import { generateReactQueryCommand } from "./openapi-react-query-Byltvm_7.mjs";
17
17
  import "./sync-CmEuNZsB.mjs";
18
- import { setupCommand, trustCommand } from "./setup-Bc73t0ve.mjs";
18
+ import { setupCommand, trustCommand } from "./setup-DXvRLTZN.mjs";
19
19
  import { createRequire } from "node:module";
20
20
  import { copyFileSync, existsSync, readFileSync, unlinkSync } from "node:fs";
21
21
  import { basename, dirname, isAbsolute, join, parse, relative, resolve } from "node:path";
@@ -43,7 +43,7 @@ import prompts from "prompts";
43
43
 
44
44
  //#region package.json
45
45
  var name = "@geekmidas/cli";
46
- var version = "10.0.0-alpha.2";
46
+ var version = "10.0.0-alpha.3";
47
47
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
48
48
  var private$1 = false;
49
49
  var type = "module";
@@ -124,12 +124,12 @@ var repository = {
124
124
  "url": "https://github.com/geekmidas/toolbox"
125
125
  };
126
126
  var dependencies = {
127
- "@apidevtools/swagger-parser": "^10.1.0",
128
- "@aws-sdk/client-iam": "~3.992.0",
129
- "@aws-sdk/client-route-53": "~3.992.0",
130
- "@aws-sdk/client-s3": "~3.992.0",
131
- "@aws-sdk/client-ssm": "~3.992.0",
132
- "@aws-sdk/credential-providers": "~3.992.0",
127
+ "@apidevtools/swagger-parser": "~13.1.0",
128
+ "@aws-sdk/client-iam": "~3.1136.0",
129
+ "@aws-sdk/client-route-53": "~3.1136.0",
130
+ "@aws-sdk/client-s3": "~3.1136.0",
131
+ "@aws-sdk/client-ssm": "~3.1136.0",
132
+ "@aws-sdk/credential-providers": "~3.1136.0",
133
133
  "@geekmidas/cache": "workspace:*",
134
134
  "@geekmidas/constructs": "workspace:~",
135
135
  "@geekmidas/db": "workspace:*",
@@ -138,28 +138,28 @@ var dependencies = {
138
138
  "@geekmidas/logger": "workspace:~",
139
139
  "@geekmidas/manifest": "workspace:*",
140
140
  "@geekmidas/schema": "workspace:~",
141
- "chokidar": "~4.0.3",
142
- "commander": "^12.1.0",
143
- "dotenv": "~17.2.3",
144
- "esbuild": "^0.28.2",
145
- "fast-glob": "^3.3.2",
146
- "hono": "~4.8.0",
147
- "lodash.kebabcase": "^4.1.1",
148
- "openapi-typescript": "^7.4.2",
149
- "pg": "~8.17.1",
141
+ "chokidar": "~5.0.0",
142
+ "commander": "~15.0.0",
143
+ "dotenv": "~18.0.1",
144
+ "esbuild": "~0.28.2",
145
+ "fast-glob": "~3.3.3",
146
+ "hono": "~4.13.8",
147
+ "lodash.kebabcase": "~4.1.1",
148
+ "openapi-typescript": "~7.13.0",
149
+ "pg": "~8.23.0",
150
150
  "prompts": "~2.4.2",
151
151
  "tsx": "~4.20.3",
152
- "yaml": "~2.8.2"
152
+ "yaml": "~2.9.1"
153
153
  };
154
154
  var devDependencies = {
155
155
  "@geekmidas/testkit": "workspace:*",
156
- "@types/lodash.kebabcase": "^4.1.9",
156
+ "@types/lodash.kebabcase": "~4.1.9",
157
157
  "@types/node": "~24.9.1",
158
- "@types/pg": "~8.16.0",
158
+ "@types/pg": "~8.23.1",
159
159
  "@types/prompts": "~2.4.9",
160
160
  "typescript": "^5.8.2",
161
161
  "vitest": "^3.2.4",
162
- "zod": "~4.1.13"
162
+ "zod": "~4.6.5"
163
163
  };
164
164
  var peerDependencies = { "@geekmidas/telescope": "workspace:~" };
165
165
  var peerDependenciesMeta = { "@geekmidas/telescope": { "optional": true } };
@@ -7814,26 +7814,26 @@ const CLI_VERSION = `~${pkg.version}`;
7814
7814
  * Run: pnpm --filter @geekmidas/cli sync-versions
7815
7815
  */
7816
7816
  const GEEKMIDAS_VERSIONS = {
7817
- "@geekmidas/audit": "~10.0.0-alpha.2",
7818
- "@geekmidas/auth": "~10.0.0-alpha.2",
7819
- "@geekmidas/cache": "~10.0.0-alpha.2",
7820
- "@geekmidas/client": "~10.0.0-alpha.2",
7821
- "@geekmidas/cloud": "~10.0.0-alpha.2",
7822
- "@geekmidas/constructs": "~10.0.0-alpha.2",
7823
- "@geekmidas/db": "~10.0.0-alpha.2",
7824
- "@geekmidas/emailkit": "~10.0.0-alpha.2",
7825
- "@geekmidas/envkit": "~10.0.0-alpha.2",
7826
- "@geekmidas/errors": "~10.0.0-alpha.2",
7827
- "@geekmidas/events": "~10.0.0-alpha.2",
7828
- "@geekmidas/logger": "~10.0.0-alpha.2",
7829
- "@geekmidas/manifest": "~10.0.0-alpha.2",
7830
- "@geekmidas/rate-limit": "~10.0.0-alpha.2",
7831
- "@geekmidas/schema": "~10.0.0-alpha.2",
7832
- "@geekmidas/services": "~10.0.0-alpha.2",
7833
- "@geekmidas/storage": "~10.0.0-alpha.2",
7834
- "@geekmidas/studio": "~10.0.0-alpha.2",
7835
- "@geekmidas/telescope": "~10.0.0-alpha.2",
7836
- "@geekmidas/testkit": "~10.0.0-alpha.2",
7817
+ "@geekmidas/audit": "~10.0.0-alpha.3",
7818
+ "@geekmidas/auth": "~10.0.0-alpha.3",
7819
+ "@geekmidas/cache": "~10.0.0-alpha.3",
7820
+ "@geekmidas/client": "~10.0.0-alpha.3",
7821
+ "@geekmidas/cloud": "~10.0.0-alpha.3",
7822
+ "@geekmidas/constructs": "~10.0.0-alpha.3",
7823
+ "@geekmidas/db": "~10.0.0-alpha.3",
7824
+ "@geekmidas/emailkit": "~10.0.0-alpha.3",
7825
+ "@geekmidas/envkit": "~10.0.0-alpha.3",
7826
+ "@geekmidas/errors": "~10.0.0-alpha.3",
7827
+ "@geekmidas/events": "~10.0.0-alpha.3",
7828
+ "@geekmidas/logger": "~10.0.0-alpha.3",
7829
+ "@geekmidas/manifest": "~10.0.0-alpha.3",
7830
+ "@geekmidas/rate-limit": "~10.0.0-alpha.3",
7831
+ "@geekmidas/schema": "~10.0.0-alpha.3",
7832
+ "@geekmidas/services": "~10.0.0-alpha.3",
7833
+ "@geekmidas/storage": "~10.0.0-alpha.3",
7834
+ "@geekmidas/studio": "~10.0.0-alpha.3",
7835
+ "@geekmidas/telescope": "~10.0.0-alpha.3",
7836
+ "@geekmidas/testkit": "~10.0.0-alpha.3",
7837
7837
  "@geekmidas/cli": CLI_VERSION
7838
7838
  };
7839
7839
 
@@ -13908,7 +13908,7 @@ async function testCommand(options = {}) {
13908
13908
  console.log(`\n🧪 Running tests with ${stage} environment...\n`);
13909
13909
  const autoSetup = options.autoSetup || Boolean(process.env.GKM_AUTO_SETUP);
13910
13910
  if (autoSetup) {
13911
- const { ensureStageSecrets } = await import("./setup-DCuudnCl.mjs");
13911
+ const { ensureStageSecrets } = await import("./setup-ZijS4qeC.mjs");
13912
13912
  const generated = await ensureStageSecrets(stage, cwd);
13913
13913
  if (generated) console.log(` 🔐 Generated fresh ${stage} secrets (auto-setup)`);
13914
13914
  }
@@ -14383,7 +14383,7 @@ program.command("secrets:push").description("Push secrets to remote provider (SS
14383
14383
  const { workspace } = await loadWorkspaceConfig$1();
14384
14384
  const secrets = await readStageSecrets$1(options.stage, workspace.root);
14385
14385
  if (secrets) {
14386
- const { derivedContainers: derivedContainers$1 } = await import("./workspace-DK4WWJIn.mjs");
14386
+ const { derivedContainers: derivedContainers$1 } = await import("./workspace-k4l3rsFh.mjs");
14387
14387
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers$1(workspace, options.stage));
14388
14388
  if (result) {
14389
14389
  await writeStageSecrets$1(result.secrets, workspace.root);
@@ -14412,7 +14412,7 @@ program.command("secrets:pull").description("Pull secrets from remote provider (
14412
14412
  console.error(`No remote secrets found for stage "${options.stage}".`);
14413
14413
  process.exit(1);
14414
14414
  }
14415
- const { derivedContainers: derivedContainers$1 } = await import("./workspace-DK4WWJIn.mjs");
14415
+ const { derivedContainers: derivedContainers$1 } = await import("./workspace-k4l3rsFh.mjs");
14416
14416
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers$1(workspace, options.stage));
14417
14417
  if (result) {
14418
14418
  secrets = result.secrets;
@@ -14439,7 +14439,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
14439
14439
  console.error(`No secrets found for stage "${options.stage}". Run "gkm secrets:init --stage ${options.stage}" first.`);
14440
14440
  process.exit(1);
14441
14441
  }
14442
- const { derivedContainers: derivedContainers$1 } = await import("./workspace-DK4WWJIn.mjs");
14442
+ const { derivedContainers: derivedContainers$1 } = await import("./workspace-k4l3rsFh.mjs");
14443
14443
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers$1(workspace, options.stage));
14444
14444
  if (!result) {
14445
14445
  console.log(`\n✓ Secrets for stage "${options.stage}" are up-to-date`);