@geekmidas/cli 10.0.0-alpha.20 → 10.0.0-alpha.21
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/{credentials-C6Pfn6GY.cjs → credentials-BfmmB4WD.cjs} +8 -2
- package/dist/credentials-BfmmB4WD.cjs.map +1 -0
- package/dist/{credentials-lbv-j0Be.mjs → credentials-CD8ftUS6.mjs} +8 -2
- package/dist/credentials-CD8ftUS6.mjs.map +1 -0
- package/dist/{github-BvfpvBcW.cjs → github-Bho-C6Zg.cjs} +2 -2
- package/dist/{github-BvfpvBcW.cjs.map → github-Bho-C6Zg.cjs.map} +1 -1
- package/dist/{github-DW3CP-4D.mjs → github-De-yMwVt.mjs} +2 -2
- package/dist/{github-DW3CP-4D.mjs.map → github-De-yMwVt.mjs.map} +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +27 -27
- package/dist/index.mjs.map +1 -1
- package/dist/{transfer-SeiSeKEF.cjs → transfer-CXoyQZbB.cjs} +2 -2
- package/dist/{transfer-SeiSeKEF.cjs.map → transfer-CXoyQZbB.cjs.map} +1 -1
- package/dist/{transfer-DjFZRgub.mjs → transfer-Gsxfy6m-.mjs} +2 -2
- package/dist/{transfer-DjFZRgub.mjs.map → transfer-Gsxfy6m-.mjs.map} +1 -1
- package/package.json +11 -11
- package/dist/credentials-C6Pfn6GY.cjs.map +0 -1
- package/dist/credentials-lbv-j0Be.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mj
|
|
|
3
3
|
import { i as DEFAULT_CACHE, r as ConstructGenerator, s as isPartitionedRoutes, t as discover } from "./discover-CK-n3w6b.mjs";
|
|
4
4
|
import { i as loadConfig, l as derivedApps, n as getAppNameFromCwd, o as loadWorkspaceConfig, r as loadAppConfig, s as parseModuleConfig } from "./config-DdKkoUE1.mjs";
|
|
5
5
|
import { A as stripPublicPrefix, C as InvalidStages, D as stageProblems, E as deployedProblems, T as assertDeployedStage, a as getAppBuildOrder, k as getPublicEnvPrefix, o as getAppGkmConfig, s as getDependencyEnvVars, t as allConstructGlobs, v as getDeployTargetError, y as isDeployTargetSupported } from "./workspace-Bu3xNCej.mjs";
|
|
6
|
-
import { C as storageBackendFor, S as providerOf, _ as LOCAL_CA_PATH, a as loadEnvFiles, b as cacheBackendFor, c as resolveServicePorts, d as constructGlobs, f as derivedContainers, g as COMPOSE_PATH, i as isPortAvailable, l as rewriteUrlsWithPorts, m as usesConstructs, n as createEntryWrapper, o as loadSecretsForApp, p as reconcileWorkspace, r as findAvailablePort, s as prepareEntryCredentials, t as createCredentialsPreload, u as startWorkspaceServices, v as applyPostgres, x as eventsBackendFor, y as resourceName } from "./credentials-
|
|
6
|
+
import { C as storageBackendFor, S as providerOf, _ as LOCAL_CA_PATH, a as loadEnvFiles, b as cacheBackendFor, c as resolveServicePorts, d as constructGlobs, f as derivedContainers, g as COMPOSE_PATH, i as isPortAvailable, l as rewriteUrlsWithPorts, m as usesConstructs, n as createEntryWrapper, o as loadSecretsForApp, p as reconcileWorkspace, r as findAvailablePort, s as prepareEntryCredentials, t as createCredentialsPreload, u as startWorkspaceServices, v as applyPostgres, x as eventsBackendFor, y as resourceName } from "./credentials-CD8ftUS6.mjs";
|
|
7
7
|
import { a as generateServiceCredentials, i as generateSecurePassword, n as generateConnectionUrls, o as rotateServicePassword, t as createStageSecrets } from "./generator-LfZU7NlU.mjs";
|
|
8
8
|
import { c as getKeyPath, i as setCustomSecret, n as readStageSecrets, o as toEmbeddableSecrets, r as secretsExist, s as writeStageSecrets, t as maskPassword } from "./storage-TP0x118M.mjs";
|
|
9
9
|
import { a as openapiCommand, c as runtimeFor, n as generateOpenApi, o as resolveOpenApiConfig, r as generateOpenApiFrom, s as EndpointGenerator, t as OPENAPI_OUTPUT_PATH$1 } from "./openapi-DfjbhrsM.mjs";
|
|
10
10
|
import { i as withRoutes, r as withCompute } from "./emit-Bzq7JsMP.mjs";
|
|
11
11
|
import { i as writeDockerEnvFromSecrets, r as generateFullstackCustomSecrets } from "./reconcile-gb1lz1Dk.mjs";
|
|
12
|
-
import { a as isRemoteStore, n as pullStageSecrets, r as pushStageSecrets, t as NoStoredSecrets } from "./transfer-
|
|
12
|
+
import { a as isRemoteStore, n as pullStageSecrets, r as pushStageSecrets, t as NoStoredSecrets } from "./transfer-Gsxfy6m-.mjs";
|
|
13
13
|
import { createRequire } from "node:module";
|
|
14
14
|
import { Command } from "commander";
|
|
15
15
|
import { stdin, stdout } from "node:process";
|
|
@@ -37,7 +37,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
37
37
|
import { lookup } from "node:dns/promises";
|
|
38
38
|
import prompts from "prompts";
|
|
39
39
|
//#region package.json
|
|
40
|
-
var version = "10.0.0-alpha.
|
|
40
|
+
var version = "10.0.0-alpha.21";
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/auth/credentials.ts
|
|
43
43
|
/**
|
|
@@ -8407,26 +8407,26 @@ function loadPackageJson() {
|
|
|
8407
8407
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
8408
8408
|
*/
|
|
8409
8409
|
const GEEKMIDAS_VERSIONS = {
|
|
8410
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
8411
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
8412
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
8413
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
8414
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
8415
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
8416
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
8417
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
8418
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
8419
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
8420
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
8421
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
8422
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
8423
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
8424
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
8425
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
8426
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
8427
|
-
"@geekmidas/studio": "~10.0.0-alpha.
|
|
8428
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
8429
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
8410
|
+
"@geekmidas/audit": "~10.0.0-alpha.21",
|
|
8411
|
+
"@geekmidas/auth": "~10.0.0-alpha.21",
|
|
8412
|
+
"@geekmidas/cache": "~10.0.0-alpha.21",
|
|
8413
|
+
"@geekmidas/client": "~10.0.0-alpha.21",
|
|
8414
|
+
"@geekmidas/cloud": "~10.0.0-alpha.21",
|
|
8415
|
+
"@geekmidas/constructs": "~10.0.0-alpha.21",
|
|
8416
|
+
"@geekmidas/db": "~10.0.0-alpha.21",
|
|
8417
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.21",
|
|
8418
|
+
"@geekmidas/envkit": "~10.0.0-alpha.21",
|
|
8419
|
+
"@geekmidas/errors": "~10.0.0-alpha.21",
|
|
8420
|
+
"@geekmidas/events": "~10.0.0-alpha.21",
|
|
8421
|
+
"@geekmidas/logger": "~10.0.0-alpha.21",
|
|
8422
|
+
"@geekmidas/manifest": "~10.0.0-alpha.21",
|
|
8423
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.21",
|
|
8424
|
+
"@geekmidas/schema": "~10.0.0-alpha.21",
|
|
8425
|
+
"@geekmidas/services": "~10.0.0-alpha.21",
|
|
8426
|
+
"@geekmidas/storage": "~10.0.0-alpha.21",
|
|
8427
|
+
"@geekmidas/studio": "~10.0.0-alpha.21",
|
|
8428
|
+
"@geekmidas/telescope": "~10.0.0-alpha.21",
|
|
8429
|
+
"@geekmidas/testkit": "~10.0.0-alpha.21",
|
|
8430
8430
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
8431
8431
|
};
|
|
8432
8432
|
//#endregion
|
|
@@ -15761,7 +15761,7 @@ program.command("secrets:push").description("Send a deployed stage's secrets to
|
|
|
15761
15761
|
const globalOptions = program.opts();
|
|
15762
15762
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15763
15763
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
15764
|
-
const { pushStageSecrets } = await import("./transfer-
|
|
15764
|
+
const { pushStageSecrets } = await import("./transfer-Gsxfy6m-.mjs").then((n) => n.i);
|
|
15765
15765
|
const { workspace } = await loadWorkspaceConfig();
|
|
15766
15766
|
const { addedKeys } = await pushStageSecrets(workspace, options.stage, { profile: options.profile });
|
|
15767
15767
|
for (const key of addedKeys) console.log(` + ${key} (reconciled)`);
|
|
@@ -15776,7 +15776,7 @@ program.command("secrets:pull").description("Bring a deployed stage's secrets fr
|
|
|
15776
15776
|
const globalOptions = program.opts();
|
|
15777
15777
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15778
15778
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
15779
|
-
const { pullStageSecrets } = await import("./transfer-
|
|
15779
|
+
const { pullStageSecrets } = await import("./transfer-Gsxfy6m-.mjs").then((n) => n.i);
|
|
15780
15780
|
const { workspace } = await loadWorkspaceConfig();
|
|
15781
15781
|
const { addedKeys } = await pullStageSecrets(workspace, options.stage, { profile: options.profile });
|
|
15782
15782
|
for (const key of addedKeys) console.log(` + ${key} (reconciled)`);
|
|
@@ -15800,7 +15800,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
15800
15800
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
15801
15801
|
process.exit(1);
|
|
15802
15802
|
}
|
|
15803
|
-
const { derivedContainers } = await import("./credentials-
|
|
15803
|
+
const { derivedContainers } = await import("./credentials-CD8ftUS6.mjs").then((n) => n.h);
|
|
15804
15804
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
15805
15805
|
if (!result) {
|
|
15806
15806
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -15859,7 +15859,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
15859
15859
|
try {
|
|
15860
15860
|
const globalOptions = program.opts();
|
|
15861
15861
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15862
|
-
const { deployGithubCommand } = await import("./github-
|
|
15862
|
+
const { deployGithubCommand } = await import("./github-De-yMwVt.mjs");
|
|
15863
15863
|
await deployGithubCommand(options);
|
|
15864
15864
|
} catch (error) {
|
|
15865
15865
|
console.error(formatError(error));
|