@geekmidas/cli 9.0.2 → 9.2.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.
- package/CHANGELOG.md +49 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/{index-DTpkeFb8.d.cts → index-CoVW_fFS.d.cts} +2 -2
- package/dist/{index-Bw548Bta.d.mts.map → index-CoVW_fFS.d.cts.map} +1 -1
- package/dist/{index-Bw548Bta.d.mts → index-oWibAYQY.d.mts} +2 -2
- package/dist/{index-DTpkeFb8.d.cts.map → index-oWibAYQY.d.mts.map} +1 -1
- package/dist/index.cjs +31 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +31 -29
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-BzNOC7_i.cjs → openapi-B_IGZDVu.cjs} +8 -4
- package/dist/openapi-B_IGZDVu.cjs.map +1 -0
- package/dist/{openapi-Cfwi0fqF.mjs → openapi-C5rXJTtj.mjs} +8 -4
- package/dist/openapi-C5rXJTtj.mjs.map +1 -0
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/types-BWQDiooe.d.cts.map +1 -1
- package/dist/workspace/index.d.cts +1 -1
- package/dist/workspace/index.d.mts +1 -1
- package/dist/workspace-CQTT7HJQ.cjs.map +1 -1
- package/dist/workspace-D-37Ylqo.mjs.map +1 -1
- package/package.json +9 -9
- package/src/__tests__/test-helpers.ts +9 -10
- package/src/docker/__tests__/compose.spec.ts +3 -3
- package/src/docker/compose.ts +8 -4
- package/src/generators/CronGenerator.ts +1 -0
- package/src/generators/EndpointGenerator.ts +13 -0
- package/src/generators/FunctionGenerator.ts +1 -0
- package/src/generators/__tests__/CronGenerator.spec.ts +45 -1
- package/src/generators/__tests__/EndpointGenerator.spec.ts +80 -2
- package/src/generators/__tests__/FunctionGenerator.spec.ts +20 -0
- package/src/init/__tests__/generators.spec.ts +3 -1
- package/src/init/generators/docker.ts +1 -1
- package/src/init/versions.ts +19 -19
- package/src/workspace/types.ts +1 -1
- package/dist/openapi-BzNOC7_i.cjs.map +0 -1
- package/dist/openapi-Cfwi0fqF.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { getCredentialsPath, getDokployCredentials, getDokployRegistryId, getDok
|
|
|
6
6
|
import { createStageSecrets, generateDbPassword, generateDbUrl, generateFullstackCustomSecrets, rotateServicePassword } from "./fullstack-secrets-l8s3II_H.mjs";
|
|
7
7
|
import { getKeyPath, maskPassword, readStageSecrets, secretsExist, setCustomSecret, toEmbeddableSecrets, writeStageSecrets } from "./storage-dbb9RyBl.mjs";
|
|
8
8
|
import { createCredentialsPreload, createEntryWrapper, findAvailablePort, isPortAvailable, loadEnvFiles, loadSecretsForApp, prepareEntryCredentials, resolveServicePorts, rewriteUrlsWithPorts, setupCommand, startWorkspaceServices } from "./setup-DDXUXzzl.mjs";
|
|
9
|
-
import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-
|
|
9
|
+
import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-C5rXJTtj.mjs";
|
|
10
10
|
import { DokployApi } from "./dokploy-api-sfZFlWuE.mjs";
|
|
11
11
|
import { encryptSecrets } from "./encryption-CO5Q4Bhf.mjs";
|
|
12
12
|
import { CachedStateProvider } from "./CachedStateProvider-CzyFct42.mjs";
|
|
@@ -36,7 +36,7 @@ import prompts from "prompts";
|
|
|
36
36
|
|
|
37
37
|
//#region package.json
|
|
38
38
|
var name = "@geekmidas/cli";
|
|
39
|
-
var version = "9.0
|
|
39
|
+
var version = "9.1.0";
|
|
40
40
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
41
41
|
var private$1 = false;
|
|
42
42
|
var type = "module";
|
|
@@ -140,7 +140,7 @@ var devDependencies = {
|
|
|
140
140
|
"vitest": "^3.2.4",
|
|
141
141
|
"zod": "~4.1.13"
|
|
142
142
|
};
|
|
143
|
-
var peerDependencies = { "@geekmidas/telescope": "workspace
|
|
143
|
+
var peerDependencies = { "@geekmidas/telescope": "workspace:^" };
|
|
144
144
|
var peerDependenciesMeta = { "@geekmidas/telescope": { "optional": true } };
|
|
145
145
|
var package_default = {
|
|
146
146
|
name,
|
|
@@ -387,7 +387,8 @@ var CronGenerator = class extends ConstructGenerator {
|
|
|
387
387
|
schedule: construct.schedule || "rate(1 hour)",
|
|
388
388
|
timeout: construct.timeout,
|
|
389
389
|
memorySize: construct.memorySize,
|
|
390
|
-
environment: await construct.getEnvironment({ markOptional: context.markOptional })
|
|
390
|
+
environment: await construct.getEnvironment({ markOptional: context.markOptional }),
|
|
391
|
+
monitoring: construct.getMonitoring()
|
|
391
392
|
});
|
|
392
393
|
logger$13.log(`Generated cron handler: ${key}`);
|
|
393
394
|
}
|
|
@@ -437,7 +438,8 @@ var FunctionGenerator = class extends ConstructGenerator {
|
|
|
437
438
|
handler: relative(process.cwd(), handlerFile).replace(/\.ts$/, ".handler"),
|
|
438
439
|
timeout: construct.timeout,
|
|
439
440
|
memorySize: construct.memorySize,
|
|
440
|
-
environment: await construct.getEnvironment({ markOptional: context.markOptional })
|
|
441
|
+
environment: await construct.getEnvironment({ markOptional: context.markOptional }),
|
|
442
|
+
monitoring: construct.getMonitoring()
|
|
441
443
|
});
|
|
442
444
|
logger$13.log(`Generated function handler: ${key}`);
|
|
443
445
|
}
|
|
@@ -2913,7 +2915,7 @@ const DEFAULT_SERVICE_IMAGES = {
|
|
|
2913
2915
|
postgres: "postgres",
|
|
2914
2916
|
redis: "redis",
|
|
2915
2917
|
rabbitmq: "rabbitmq",
|
|
2916
|
-
minio: "
|
|
2918
|
+
minio: "pgsty/minio",
|
|
2917
2919
|
mailpit: "axllent/mailpit",
|
|
2918
2920
|
localstack: "localstack/localstack"
|
|
2919
2921
|
};
|
|
@@ -2922,7 +2924,7 @@ const DEFAULT_SERVICE_VERSIONS = {
|
|
|
2922
2924
|
postgres: "18-alpine",
|
|
2923
2925
|
redis: "7-alpine",
|
|
2924
2926
|
rabbitmq: "3-management-alpine",
|
|
2925
|
-
minio: "
|
|
2927
|
+
minio: "RELEASE.2026-08-04T00-00-00Z",
|
|
2926
2928
|
mailpit: "latest",
|
|
2927
2929
|
localstack: "latest"
|
|
2928
2930
|
};
|
|
@@ -3375,7 +3377,7 @@ function getInfraServiceImage(serviceName, config) {
|
|
|
3375
3377
|
const defaults = {
|
|
3376
3378
|
postgres: "postgres:18-alpine",
|
|
3377
3379
|
redis: "redis:7-alpine",
|
|
3378
|
-
minio: "
|
|
3380
|
+
minio: "pgsty/minio:RELEASE.2026-08-04T00-00-00Z"
|
|
3379
3381
|
};
|
|
3380
3382
|
if (!config || config === true) return defaults[serviceName];
|
|
3381
3383
|
if (typeof config === "object") {
|
|
@@ -3384,7 +3386,7 @@ function getInfraServiceImage(serviceName, config) {
|
|
|
3384
3386
|
const baseImages = {
|
|
3385
3387
|
postgres: "postgres",
|
|
3386
3388
|
redis: "redis",
|
|
3387
|
-
minio: "
|
|
3389
|
+
minio: "pgsty/minio"
|
|
3388
3390
|
};
|
|
3389
3391
|
return `${baseImages[serviceName]}:${config.version}`;
|
|
3390
3392
|
}
|
|
@@ -6895,25 +6897,25 @@ const CLI_VERSION = `~${pkg.version}`;
|
|
|
6895
6897
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6896
6898
|
*/
|
|
6897
6899
|
const GEEKMIDAS_VERSIONS = {
|
|
6898
|
-
"@geekmidas/audit": "~9.0
|
|
6899
|
-
"@geekmidas/auth": "~9.0
|
|
6900
|
-
"@geekmidas/cache": "~9.0
|
|
6901
|
-
"@geekmidas/client": "~9.0
|
|
6902
|
-
"@geekmidas/cloud": "~9.0
|
|
6903
|
-
"@geekmidas/constructs": "~9.0
|
|
6904
|
-
"@geekmidas/db": "~9.0
|
|
6905
|
-
"@geekmidas/emailkit": "~9.0
|
|
6906
|
-
"@geekmidas/envkit": "~9.0
|
|
6907
|
-
"@geekmidas/errors": "~9.0
|
|
6908
|
-
"@geekmidas/events": "~9.0
|
|
6909
|
-
"@geekmidas/logger": "~9.0
|
|
6910
|
-
"@geekmidas/rate-limit": "~9.0
|
|
6911
|
-
"@geekmidas/schema": "~9.0
|
|
6912
|
-
"@geekmidas/services": "~9.0
|
|
6913
|
-
"@geekmidas/storage": "~9.0
|
|
6914
|
-
"@geekmidas/studio": "~9.0
|
|
6915
|
-
"@geekmidas/telescope": "~9.0
|
|
6916
|
-
"@geekmidas/testkit": "~9.0
|
|
6900
|
+
"@geekmidas/audit": "~9.1.0",
|
|
6901
|
+
"@geekmidas/auth": "~9.1.0",
|
|
6902
|
+
"@geekmidas/cache": "~9.1.0",
|
|
6903
|
+
"@geekmidas/client": "~9.1.0",
|
|
6904
|
+
"@geekmidas/cloud": "~9.1.0",
|
|
6905
|
+
"@geekmidas/constructs": "~9.1.0",
|
|
6906
|
+
"@geekmidas/db": "~9.1.0",
|
|
6907
|
+
"@geekmidas/emailkit": "~9.1.0",
|
|
6908
|
+
"@geekmidas/envkit": "~9.1.0",
|
|
6909
|
+
"@geekmidas/errors": "~9.1.0",
|
|
6910
|
+
"@geekmidas/events": "~9.1.0",
|
|
6911
|
+
"@geekmidas/logger": "~9.1.0",
|
|
6912
|
+
"@geekmidas/rate-limit": "~9.1.0",
|
|
6913
|
+
"@geekmidas/schema": "~9.1.0",
|
|
6914
|
+
"@geekmidas/services": "~9.1.0",
|
|
6915
|
+
"@geekmidas/storage": "~9.1.0",
|
|
6916
|
+
"@geekmidas/studio": "~9.1.0",
|
|
6917
|
+
"@geekmidas/telescope": "~9.1.0",
|
|
6918
|
+
"@geekmidas/testkit": "~9.1.0",
|
|
6917
6919
|
"@geekmidas/cli": CLI_VERSION
|
|
6918
6920
|
};
|
|
6919
6921
|
|
|
@@ -7469,7 +7471,7 @@ function generateDockerFiles(options, template, dbApps) {
|
|
|
7469
7471
|
MP_SMTP_AUTH: \${SMTP_USER:-${options.name}}:\${SMTP_PASS:-${options.name}}`);
|
|
7470
7472
|
if (options.services?.storage) {
|
|
7471
7473
|
services.push(` minio:
|
|
7472
|
-
image:
|
|
7474
|
+
image: pgsty/minio:RELEASE.2026-08-04T00-00-00Z
|
|
7473
7475
|
container_name: ${options.name}-minio
|
|
7474
7476
|
restart: unless-stopped
|
|
7475
7477
|
entrypoint: sh
|