@geekmidas/cli 10.0.0-alpha.17 → 10.0.0-alpha.18
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-CdTMeMU_.cjs → config-DSXI480r.cjs} +2 -2
- package/dist/{config-CdTMeMU_.cjs.map → config-DSXI480r.cjs.map} +1 -1
- package/dist/{config-DPnPkWyH.mjs → config-DdKkoUE1.mjs} +2 -2
- package/dist/{config-DPnPkWyH.mjs.map → config-DdKkoUE1.mjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.mjs +2 -2
- package/dist/{credentials-tvyReUAd.cjs → credentials-C6Pfn6GY.cjs} +30 -8
- package/dist/credentials-C6Pfn6GY.cjs.map +1 -0
- package/dist/{credentials-fJP5-fa1.mjs → credentials-lbv-j0Be.mjs} +31 -9
- package/dist/{credentials-fJP5-fa1.mjs.map → credentials-lbv-j0Be.mjs.map} +1 -1
- package/dist/{github-CAfKyYPN.mjs → github-DlIrXPee.mjs} +4 -4
- package/dist/{github-CAfKyYPN.mjs.map → github-DlIrXPee.mjs.map} +1 -1
- package/dist/{github-DVE8Gg_F.cjs → github-n7N9yOff.cjs} +4 -4
- package/dist/{github-DVE8Gg_F.cjs.map → github-n7N9yOff.cjs.map} +1 -1
- package/dist/index.cjs +33 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +33 -34
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-BeckoaP9.cjs → openapi-B8bu_OXN.cjs} +2 -2
- package/dist/{openapi-BeckoaP9.cjs.map → openapi-B8bu_OXN.cjs.map} +1 -1
- package/dist/{openapi-DolhBm6r.mjs → openapi-DfjbhrsM.mjs} +2 -2
- package/dist/{openapi-DolhBm6r.mjs.map → openapi-DfjbhrsM.mjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{transfer-4A4S2hcw.mjs → transfer-2aRVVJ6I.mjs} +3 -3
- package/dist/{transfer-4A4S2hcw.mjs.map → transfer-2aRVVJ6I.mjs.map} +1 -1
- package/dist/{transfer-DdmtKLzi.cjs → transfer-C3WZVmj_.cjs} +3 -3
- package/dist/{transfer-DdmtKLzi.cjs.map → transfer-C3WZVmj_.cjs.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-DI-M3BnN.mjs → workspace-Bu3xNCej.mjs} +2 -2
- package/dist/{workspace-DI-M3BnN.mjs.map → workspace-Bu3xNCej.mjs.map} +1 -1
- package/dist/{workspace-B8NLb54N.cjs → workspace-CRD9YinV.cjs} +7 -1
- package/dist/{workspace-B8NLb54N.cjs.map → workspace-CRD9YinV.cjs.map} +1 -1
- package/package.json +11 -11
- package/dist/credentials-tvyReUAd.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
3
3
|
import { i as DEFAULT_CACHE, r as ConstructGenerator, s as isPartitionedRoutes, t as discover } from "./discover-CK-n3w6b.mjs";
|
|
4
|
-
import { i as loadConfig, l as derivedApps, n as getAppNameFromCwd, o as loadWorkspaceConfig, r as loadAppConfig, s as parseModuleConfig } from "./config-
|
|
5
|
-
import { C as InvalidStages,
|
|
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-
|
|
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
|
+
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-lbv-j0Be.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
|
-
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-
|
|
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-fmoluZmZ.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-2aRVVJ6I.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.18";
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/auth/credentials.ts
|
|
43
43
|
/**
|
|
@@ -8382,26 +8382,26 @@ function loadPackageJson() {
|
|
|
8382
8382
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
8383
8383
|
*/
|
|
8384
8384
|
const GEEKMIDAS_VERSIONS = {
|
|
8385
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
8386
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
8387
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
8388
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
8389
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
8390
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
8391
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
8392
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
8393
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
8394
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
8395
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
8396
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
8397
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
8398
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
8399
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
8400
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
8401
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
8402
|
-
"@geekmidas/studio": "~10.0.0-alpha.
|
|
8403
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
8404
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
8385
|
+
"@geekmidas/audit": "~10.0.0-alpha.18",
|
|
8386
|
+
"@geekmidas/auth": "~10.0.0-alpha.18",
|
|
8387
|
+
"@geekmidas/cache": "~10.0.0-alpha.18",
|
|
8388
|
+
"@geekmidas/client": "~10.0.0-alpha.18",
|
|
8389
|
+
"@geekmidas/cloud": "~10.0.0-alpha.18",
|
|
8390
|
+
"@geekmidas/constructs": "~10.0.0-alpha.18",
|
|
8391
|
+
"@geekmidas/db": "~10.0.0-alpha.18",
|
|
8392
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.18",
|
|
8393
|
+
"@geekmidas/envkit": "~10.0.0-alpha.18",
|
|
8394
|
+
"@geekmidas/errors": "~10.0.0-alpha.18",
|
|
8395
|
+
"@geekmidas/events": "~10.0.0-alpha.18",
|
|
8396
|
+
"@geekmidas/logger": "~10.0.0-alpha.18",
|
|
8397
|
+
"@geekmidas/manifest": "~10.0.0-alpha.18",
|
|
8398
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.18",
|
|
8399
|
+
"@geekmidas/schema": "~10.0.0-alpha.18",
|
|
8400
|
+
"@geekmidas/services": "~10.0.0-alpha.18",
|
|
8401
|
+
"@geekmidas/storage": "~10.0.0-alpha.18",
|
|
8402
|
+
"@geekmidas/studio": "~10.0.0-alpha.18",
|
|
8403
|
+
"@geekmidas/telescope": "~10.0.0-alpha.18",
|
|
8404
|
+
"@geekmidas/testkit": "~10.0.0-alpha.18",
|
|
8405
8405
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
8406
8406
|
};
|
|
8407
8407
|
//#endregion
|
|
@@ -11678,10 +11678,9 @@ function generateSourceFiles(options, template) {
|
|
|
11678
11678
|
function generateTestFiles(options, _template) {
|
|
11679
11679
|
if (!options.constructs.database) return [];
|
|
11680
11680
|
const db = databaseFor();
|
|
11681
|
-
const
|
|
11682
|
-
const
|
|
11683
|
-
const
|
|
11684
|
-
const ownerUrl = declares ? db.ownerUrlKey : "DATABASE_URL";
|
|
11681
|
+
const schema = !options.monorepo ? "../src/constructs/database.ts" : "~/services/database.ts";
|
|
11682
|
+
const runtimeUrl = db.urlKey;
|
|
11683
|
+
const ownerUrl = db.ownerUrlKey;
|
|
11685
11684
|
return [
|
|
11686
11685
|
{
|
|
11687
11686
|
path: "kysely.config.ts",
|
|
@@ -15738,7 +15737,7 @@ program.command("secrets:push").description("Send a deployed stage's secrets to
|
|
|
15738
15737
|
const globalOptions = program.opts();
|
|
15739
15738
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15740
15739
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
15741
|
-
const { pushStageSecrets } = await import("./transfer-
|
|
15740
|
+
const { pushStageSecrets } = await import("./transfer-2aRVVJ6I.mjs").then((n) => n.i);
|
|
15742
15741
|
const { workspace } = await loadWorkspaceConfig();
|
|
15743
15742
|
const { addedKeys } = await pushStageSecrets(workspace, options.stage, { profile: options.profile });
|
|
15744
15743
|
for (const key of addedKeys) console.log(` + ${key} (reconciled)`);
|
|
@@ -15753,7 +15752,7 @@ program.command("secrets:pull").description("Bring a deployed stage's secrets fr
|
|
|
15753
15752
|
const globalOptions = program.opts();
|
|
15754
15753
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15755
15754
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
15756
|
-
const { pullStageSecrets } = await import("./transfer-
|
|
15755
|
+
const { pullStageSecrets } = await import("./transfer-2aRVVJ6I.mjs").then((n) => n.i);
|
|
15757
15756
|
const { workspace } = await loadWorkspaceConfig();
|
|
15758
15757
|
const { addedKeys } = await pullStageSecrets(workspace, options.stage, { profile: options.profile });
|
|
15759
15758
|
for (const key of addedKeys) console.log(` + ${key} (reconciled)`);
|
|
@@ -15777,7 +15776,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
15777
15776
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
15778
15777
|
process.exit(1);
|
|
15779
15778
|
}
|
|
15780
|
-
const { derivedContainers } = await import("./credentials-
|
|
15779
|
+
const { derivedContainers } = await import("./credentials-lbv-j0Be.mjs").then((n) => n.h);
|
|
15781
15780
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
15782
15781
|
if (!result) {
|
|
15783
15782
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -15836,7 +15835,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
15836
15835
|
try {
|
|
15837
15836
|
const globalOptions = program.opts();
|
|
15838
15837
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15839
|
-
const { deployGithubCommand } = await import("./github-
|
|
15838
|
+
const { deployGithubCommand } = await import("./github-DlIrXPee.mjs");
|
|
15840
15839
|
await deployGithubCommand(options);
|
|
15841
15840
|
} catch (error) {
|
|
15842
15841
|
console.error(formatError(error));
|