@geekmidas/cli 10.0.0-alpha.1 → 10.0.0-alpha.2
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/dist/{config-DbPE1KXF.cjs → config-BholeD-0.cjs} +5 -5
- package/dist/config-BholeD-0.cjs.map +1 -0
- package/dist/{config-D8o6I_7Z.mjs → config-CzWnfcXM.mjs} +5 -5
- package/dist/config-CzWnfcXM.mjs.map +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{credentials-Dh0Q6HzY.mjs → credentials-BZcp3CGx.mjs} +3 -3
- package/dist/{credentials-Dh0Q6HzY.mjs.map → credentials-BZcp3CGx.mjs.map} +1 -1
- package/dist/{credentials-K961ThG3.cjs → credentials-DQmbRnr1.cjs} +3 -3
- package/dist/{credentials-K961ThG3.cjs.map → credentials-DQmbRnr1.cjs.map} +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-CgpMWMmM.mjs → openapi-CY9xFkTH.mjs} +2 -2
- package/dist/{openapi-CgpMWMmM.mjs.map → openapi-CY9xFkTH.mjs.map} +1 -1
- package/dist/{openapi-CljONd_M.cjs → openapi-c9bpieI5.cjs} +2 -2
- package/dist/{openapi-CljONd_M.cjs.map → openapi-c9bpieI5.cjs.map} +1 -1
- package/dist/openapi.cjs +2 -2
- package/dist/openapi.mjs +2 -2
- package/dist/{setup-DOsYueeQ.mjs → setup-Bc73t0ve.mjs} +3 -3
- package/dist/{setup-DOsYueeQ.mjs.map → setup-Bc73t0ve.mjs.map} +1 -1
- package/dist/{setup-CJiQM2pX.cjs → setup-C48C9hto.cjs} +3 -3
- package/dist/{setup-CJiQM2pX.cjs.map → setup-C48C9hto.cjs.map} +1 -1
- package/dist/{setup-DSutDAlt.mjs → setup-DCuudnCl.mjs} +3 -3
- package/dist/{setup-DMtU3p41.cjs → setup-fG_ivuxO.cjs} +3 -3
- package/dist/{workspace-8acupeaI.cjs → workspace-BO_KWohI.cjs} +2 -2
- package/dist/{workspace-yP5AHnrn.mjs → workspace-DK4WWJIn.mjs} +2 -2
- package/package.json +11 -11
- package/dist/config-D8o6I_7Z.mjs.map +0 -1
- package/dist/config-DbPE1KXF.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-
|
|
4
|
+
import { derivedApps, getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig, resolveAppSpec } from "./config-CzWnfcXM.mjs";
|
|
5
5
|
import { allConstructGlobs, getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, getPublicEnvPrefix, isDeployTargetSupported, stripPublicPrefix } from "./workspace-7FqprxuJ.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-
|
|
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";
|
|
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-
|
|
10
|
+
import { EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-CY9xFkTH.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-
|
|
18
|
+
import { setupCommand, trustCommand } from "./setup-Bc73t0ve.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.
|
|
46
|
+
var version = "10.0.0-alpha.1";
|
|
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";
|
|
@@ -443,7 +443,7 @@ var CronGenerator = class extends ConstructGenerator {
|
|
|
443
443
|
const importPath = relativePath.replace(/\.ts$/, ".js");
|
|
444
444
|
const relativeEnvParserPath = relative(dirname(handlerPath), context.envParserPath);
|
|
445
445
|
const relativeLoggerPath = relative(dirname(handlerPath), context.loggerPath);
|
|
446
|
-
const content = `import { AWSScheduledFunction } from '@geekmidas/constructs/
|
|
446
|
+
const content = `import { AWSScheduledFunction } from '@geekmidas/constructs/aws';
|
|
447
447
|
import { ${exportName} } from '${importPath}';
|
|
448
448
|
import ${context.envParserImportPattern} from '${relativeEnvParserPath}';
|
|
449
449
|
import ${context.loggerImportPattern} from '${relativeLoggerPath}';
|
|
@@ -7364,26 +7364,26 @@ const CLI_VERSION = `~${pkg.version}`;
|
|
|
7364
7364
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
7365
7365
|
*/
|
|
7366
7366
|
const GEEKMIDAS_VERSIONS = {
|
|
7367
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
7368
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
7369
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
7370
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
7371
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
7372
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
7373
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
7374
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
7375
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
7376
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
7377
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
7378
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
7379
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
7380
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
7381
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
7382
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
7383
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
7384
|
-
"@geekmidas/studio": "~10.0.0-alpha.
|
|
7385
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
7386
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
7367
|
+
"@geekmidas/audit": "~10.0.0-alpha.1",
|
|
7368
|
+
"@geekmidas/auth": "~10.0.0-alpha.1",
|
|
7369
|
+
"@geekmidas/cache": "~10.0.0-alpha.1",
|
|
7370
|
+
"@geekmidas/client": "~10.0.0-alpha.1",
|
|
7371
|
+
"@geekmidas/cloud": "~10.0.0-alpha.1",
|
|
7372
|
+
"@geekmidas/constructs": "~10.0.0-alpha.1",
|
|
7373
|
+
"@geekmidas/db": "~10.0.0-alpha.1",
|
|
7374
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.1",
|
|
7375
|
+
"@geekmidas/envkit": "~10.0.0-alpha.1",
|
|
7376
|
+
"@geekmidas/errors": "~10.0.0-alpha.1",
|
|
7377
|
+
"@geekmidas/events": "~10.0.0-alpha.1",
|
|
7378
|
+
"@geekmidas/logger": "~10.0.0-alpha.1",
|
|
7379
|
+
"@geekmidas/manifest": "~10.0.0-alpha.1",
|
|
7380
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.1",
|
|
7381
|
+
"@geekmidas/schema": "~10.0.0-alpha.1",
|
|
7382
|
+
"@geekmidas/services": "~10.0.0-alpha.1",
|
|
7383
|
+
"@geekmidas/storage": "~10.0.0-alpha.1",
|
|
7384
|
+
"@geekmidas/studio": "~10.0.0-alpha.1",
|
|
7385
|
+
"@geekmidas/telescope": "~10.0.0-alpha.1",
|
|
7386
|
+
"@geekmidas/testkit": "~10.0.0-alpha.1",
|
|
7387
7387
|
"@geekmidas/cli": CLI_VERSION
|
|
7388
7388
|
};
|
|
7389
7389
|
|
|
@@ -13571,7 +13571,7 @@ async function testCommand(options = {}) {
|
|
|
13571
13571
|
console.log(`\n🧪 Running tests with ${stage} environment...\n`);
|
|
13572
13572
|
const autoSetup = options.autoSetup || Boolean(process.env.GKM_AUTO_SETUP);
|
|
13573
13573
|
if (autoSetup) {
|
|
13574
|
-
const { ensureStageSecrets } = await import("./setup-
|
|
13574
|
+
const { ensureStageSecrets } = await import("./setup-DCuudnCl.mjs");
|
|
13575
13575
|
const generated = await ensureStageSecrets(stage, cwd);
|
|
13576
13576
|
if (generated) console.log(` 🔐 Generated fresh ${stage} secrets (auto-setup)`);
|
|
13577
13577
|
}
|
|
@@ -14046,7 +14046,7 @@ program.command("secrets:push").description("Push secrets to remote provider (SS
|
|
|
14046
14046
|
const { workspace } = await loadWorkspaceConfig$1();
|
|
14047
14047
|
const secrets = await readStageSecrets$1(options.stage, workspace.root);
|
|
14048
14048
|
if (secrets) {
|
|
14049
|
-
const { derivedContainers: derivedContainers$1 } = await import("./workspace-
|
|
14049
|
+
const { derivedContainers: derivedContainers$1 } = await import("./workspace-DK4WWJIn.mjs");
|
|
14050
14050
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers$1(workspace, options.stage));
|
|
14051
14051
|
if (result) {
|
|
14052
14052
|
await writeStageSecrets$1(result.secrets, workspace.root);
|
|
@@ -14075,7 +14075,7 @@ program.command("secrets:pull").description("Pull secrets from remote provider (
|
|
|
14075
14075
|
console.error(`No remote secrets found for stage "${options.stage}".`);
|
|
14076
14076
|
process.exit(1);
|
|
14077
14077
|
}
|
|
14078
|
-
const { derivedContainers: derivedContainers$1 } = await import("./workspace-
|
|
14078
|
+
const { derivedContainers: derivedContainers$1 } = await import("./workspace-DK4WWJIn.mjs");
|
|
14079
14079
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers$1(workspace, options.stage));
|
|
14080
14080
|
if (result) {
|
|
14081
14081
|
secrets = result.secrets;
|
|
@@ -14102,7 +14102,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
14102
14102
|
console.error(`No secrets found for stage "${options.stage}". Run "gkm secrets:init --stage ${options.stage}" first.`);
|
|
14103
14103
|
process.exit(1);
|
|
14104
14104
|
}
|
|
14105
|
-
const { derivedContainers: derivedContainers$1 } = await import("./workspace-
|
|
14105
|
+
const { derivedContainers: derivedContainers$1 } = await import("./workspace-DK4WWJIn.mjs");
|
|
14106
14106
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers$1(workspace, options.stage));
|
|
14107
14107
|
if (!result) {
|
|
14108
14108
|
console.log(`\n✓ Secrets for stage "${options.stage}" are up-to-date`);
|