@geekmidas/cli 1.0.2 → 1.1.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{SSMStateProvider-C4wp4AZe.mjs → SSMStateProvider-BjCi_58g.mjs} +16 -7
  3. package/dist/SSMStateProvider-BjCi_58g.mjs.map +1 -0
  4. package/dist/{SSMStateProvider-BxAPU99a.cjs → SSMStateProvider-D79o_JjM.cjs} +16 -7
  5. package/dist/SSMStateProvider-D79o_JjM.cjs.map +1 -0
  6. package/dist/{config-BGeJsW1r.cjs → config-CKfif10N.cjs} +2 -2
  7. package/dist/{config-BGeJsW1r.cjs.map → config-CKfif10N.cjs.map} +1 -1
  8. package/dist/{config-C6awcFBx.mjs → config-ClfjsfwH.mjs} +2 -2
  9. package/dist/{config-C6awcFBx.mjs.map → config-ClfjsfwH.mjs.map} +1 -1
  10. package/dist/config.cjs +2 -2
  11. package/dist/config.d.cts +1 -1
  12. package/dist/config.d.mts +1 -1
  13. package/dist/config.mjs +2 -2
  14. package/dist/{index-KFEbMIRa.d.mts → index-CHQs8G3q.d.mts} +6 -1
  15. package/dist/index-CHQs8G3q.d.mts.map +1 -0
  16. package/dist/{index-B5rGIc4g.d.cts → index-afBljZKY.d.cts} +6 -1
  17. package/dist/index-afBljZKY.d.cts.map +1 -0
  18. package/dist/index.cjs +6 -6
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.mjs +6 -6
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/{openapi-BMFmLnX6.mjs → openapi-C6sa0L8b.mjs} +2 -2
  23. package/dist/{openapi-BMFmLnX6.mjs.map → openapi-C6sa0L8b.mjs.map} +1 -1
  24. package/dist/{openapi-D1KXv2Ml.cjs → openapi-D3p6s8UA.cjs} +2 -2
  25. package/dist/{openapi-D1KXv2Ml.cjs.map → openapi-D3p6s8UA.cjs.map} +1 -1
  26. package/dist/openapi.cjs +3 -3
  27. package/dist/openapi.mjs +3 -3
  28. package/dist/workspace/index.cjs +1 -1
  29. package/dist/workspace/index.d.cts +1 -1
  30. package/dist/workspace/index.d.mts +1 -1
  31. package/dist/workspace/index.mjs +1 -1
  32. package/dist/{workspace-BFRUOOrh.cjs → workspace-CjT323qw.cjs} +3 -2
  33. package/dist/{workspace-BFRUOOrh.cjs.map → workspace-CjT323qw.cjs.map} +1 -1
  34. package/dist/{workspace-DAxG3_H2.mjs → workspace-CmITpum4.mjs} +3 -2
  35. package/dist/{workspace-DAxG3_H2.mjs.map → workspace-CmITpum4.mjs.map} +1 -1
  36. package/package.json +4 -4
  37. package/src/deploy/SSMStateProvider.ts +20 -7
  38. package/src/deploy/StateProvider.ts +1 -1
  39. package/src/deploy/__tests__/SSMStateProvider.spec.ts +15 -8
  40. package/src/deploy/__tests__/state-e2e.spec.ts +385 -0
  41. package/src/init/__tests__/init.spec.ts +10 -1
  42. package/src/secrets/__tests__/storage.spec.ts +6 -2
  43. package/src/workspace/__tests__/index.spec.ts +61 -0
  44. package/src/workspace/index.ts +1 -0
  45. package/src/workspace/types.ts +7 -0
  46. package/dist/SSMStateProvider-BxAPU99a.cjs.map +0 -1
  47. package/dist/SSMStateProvider-C4wp4AZe.mjs.map +0 -1
  48. package/dist/index-B5rGIc4g.d.cts.map +0 -1
  49. package/dist/index-KFEbMIRa.d.mts.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env -S npx tsx
2
- import { __require, getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, isDeployTargetSupported } from "./workspace-DAxG3_H2.mjs";
3
- import { getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig } from "./config-C6awcFBx.mjs";
2
+ import { __require, getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, isDeployTargetSupported } from "./workspace-CmITpum4.mjs";
3
+ import { getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig } from "./config-ClfjsfwH.mjs";
4
4
  import { getCredentialsPath, getDokployCredentials, getDokployRegistryId, getDokployToken, removeDokployCredentials, storeDokployCredentials, storeDokployRegistryId } from "./credentials-DT1dSxIx.mjs";
5
- import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, OpenApiTsGenerator, generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi-BMFmLnX6.mjs";
5
+ import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, OpenApiTsGenerator, generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi-C6sa0L8b.mjs";
6
6
  import { getKeyPath, maskPassword, readStageSecrets, secretsExist, setCustomSecret, toEmbeddableSecrets, writeStageSecrets } from "./storage-BMW6yLu3.mjs";
7
7
  import { DokployApi } from "./dokploy-api-7k3t7_zd.mjs";
8
8
  import { encryptSecrets } from "./encryption-JtMsiGNp.mjs";
@@ -31,7 +31,7 @@ import prompts from "prompts";
31
31
 
32
32
  //#region package.json
33
33
  var name = "@geekmidas/cli";
34
- var version = "1.0.1";
34
+ var version = "1.0.2";
35
35
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
36
36
  var private$1 = false;
37
37
  var type = "module";
@@ -4540,10 +4540,10 @@ async function createStateProvider(options) {
4540
4540
  if (provider === "ssm") {
4541
4541
  if (!workspaceName) throw new Error("Workspace name is required for SSM state provider. Set \"name\" in gkm.config.ts.");
4542
4542
  const { LocalStateProvider } = await import("./LocalStateProvider-DxoSaWUV.mjs");
4543
- const { SSMStateProvider } = await import("./SSMStateProvider-C4wp4AZe.mjs");
4543
+ const { SSMStateProvider } = await import("./SSMStateProvider-BjCi_58g.mjs");
4544
4544
  const { CachedStateProvider: CachedStateProvider$1 } = await import("./CachedStateProvider-OiFUGr7p.mjs");
4545
4545
  const local = new LocalStateProvider(workspaceRoot);
4546
- const ssm = new SSMStateProvider({
4546
+ const ssm = SSMStateProvider.create({
4547
4547
  workspaceName,
4548
4548
  region: config$1.region
4549
4549
  });