@geekmidas/cli 10.0.0-alpha.67 → 10.0.0-alpha.68
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/{bundler-Bq3HaLOZ.mjs → bundler-C-w7aGoZ.mjs} +5 -5
- package/dist/{bundler-Bq3HaLOZ.mjs.map → bundler-C-w7aGoZ.mjs.map} +1 -1
- package/dist/{bundler-pyLj-gS0.cjs → bundler-C1pnNrR0.cjs} +5 -5
- package/dist/{bundler-pyLj-gS0.cjs.map → bundler-C1pnNrR0.cjs.map} +1 -1
- package/dist/{cli-DR7B2_fX.cjs → cli-BLyD4c0O.cjs} +12 -3
- package/dist/cli-BLyD4c0O.cjs.map +1 -0
- package/dist/{cli-C2Tjbn27.mjs → cli-Ce4pLL5O.mjs} +12 -3
- package/dist/cli-Ce4pLL5O.mjs.map +1 -0
- package/dist/{compose-BjToENzG.mjs → compose-DFxuYhn6.mjs} +165 -51
- package/dist/compose-DFxuYhn6.mjs.map +1 -0
- package/dist/{compose-5oNHAKNT.cjs → compose-DvsgumY2.cjs} +165 -51
- package/dist/compose-DvsgumY2.cjs.map +1 -0
- package/dist/{config-4XFxX1al.d.cts → config-BnA0kPTY.d.cts} +3 -3
- package/dist/{config-4XFxX1al.d.cts.map → config-BnA0kPTY.d.cts.map} +1 -1
- package/dist/{config-UtKzhpFb.d.mts → config-CxEp_g7j.d.mts} +3 -3
- package/dist/{config-UtKzhpFb.d.mts.map → config-CxEp_g7j.d.mts.map} +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/deploy/public.cjs +9 -5
- package/dist/deploy/public.d.cts +15 -4
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +15 -4
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-BucRfbvX.cjs → deploy-C08GONYW.cjs} +8 -4
- package/dist/deploy-C08GONYW.cjs.map +1 -0
- package/dist/{deploy-DRAwTG72.mjs → deploy-D-EVOWvu.mjs} +8 -4
- package/dist/deploy-D-EVOWvu.mjs.map +1 -0
- package/dist/{dokploy-m345Zx02.cjs → dokploy-CZ6nfSV9.cjs} +2 -2
- package/dist/{dokploy-m345Zx02.cjs.map → dokploy-CZ6nfSV9.cjs.map} +1 -1
- package/dist/{dokploy-DIt1IZl1.mjs → dokploy-DU-XJsoT.mjs} +2 -2
- package/dist/{dokploy-DIt1IZl1.mjs.map → dokploy-DU-XJsoT.mjs.map} +1 -1
- package/dist/{encryption-rZ3BghXy.cjs → encryption-CCcBSLZs.cjs} +2 -2
- package/dist/{encryption-rZ3BghXy.cjs.map → encryption-CCcBSLZs.cjs.map} +1 -1
- package/dist/{encryption-Ccbahik7.mjs → encryption-DSiLau1-.mjs} +2 -2
- package/dist/{encryption-Ccbahik7.mjs.map → encryption-DSiLau1-.mjs.map} +1 -1
- package/dist/{engine-Cx_dvx9q.cjs → engine-BM9Dy_DT.cjs} +134 -24
- package/dist/engine-BM9Dy_DT.cjs.map +1 -0
- package/dist/{engine-Gs0abjuj.mjs → engine-llWnMZH5.mjs} +134 -24
- package/dist/engine-llWnMZH5.mjs.map +1 -0
- package/dist/{github-CrcGFkfD.cjs → github-ZoMam0OH.cjs} +2 -2
- package/dist/{github-CrcGFkfD.cjs.map → github-ZoMam0OH.cjs.map} +1 -1
- package/dist/{github-CJANTYqi.mjs → github-yy6WpHIl.mjs} +2 -2
- package/dist/{github-CJANTYqi.mjs.map → github-yy6WpHIl.mjs.map} +1 -1
- package/dist/{index-CyApaHVe.d.cts → index-CkX89m6S.d.mts} +2 -2
- package/dist/{index-CyApaHVe.d.cts.map → index-CkX89m6S.d.mts.map} +1 -1
- package/dist/{index-DD1FfUHh.d.mts → index-EvZBkycu.d.cts} +2 -2
- package/dist/{index-DD1FfUHh.d.mts.map → index-EvZBkycu.d.cts.map} +1 -1
- package/dist/index.cjs +46 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +46 -43
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-DCVo5gLS.mjs → migrate-BWPuwiXk.mjs} +2 -2
- package/dist/{migrate-DCVo5gLS.mjs.map → migrate-BWPuwiXk.mjs.map} +1 -1
- package/dist/{migrate-CQdSpttI.cjs → migrate-tOwxQBTI.cjs} +2 -2
- package/dist/{migrate-CQdSpttI.cjs.map → migrate-tOwxQBTI.cjs.map} +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-BexmDcsN.cjs → resolve-BymzGtuT.cjs} +3 -3
- package/dist/{resolve-BexmDcsN.cjs.map → resolve-BymzGtuT.cjs.map} +1 -1
- package/dist/{resolve-DhZgtvZe.mjs → resolve-pIvXlZ1h.mjs} +3 -3
- package/dist/{resolve-DhZgtvZe.mjs.map → resolve-pIvXlZ1h.mjs.map} +1 -1
- package/dist/{rollback-m4Yeym5x.mjs → rollback-ZlsbQOvj.mjs} +3 -3
- package/dist/{rollback-m4Yeym5x.mjs.map → rollback-ZlsbQOvj.mjs.map} +1 -1
- package/dist/{rollback-BnY7KuG_.cjs → rollback-zdfi6Reg.cjs} +3 -3
- package/dist/{rollback-BnY7KuG_.cjs.map → rollback-zdfi6Reg.cjs.map} +1 -1
- package/dist/{runtime-BRqFOvPM.d.cts → runtime-B3jNgeP-.d.mts} +2 -2
- package/dist/{runtime-BRqFOvPM.d.cts.map → runtime-B3jNgeP-.d.mts.map} +1 -1
- package/dist/{runtime-CEk5n4VH.d.mts → runtime-DWThEP-r.d.cts} +2 -2
- package/dist/{runtime-CEk5n4VH.d.mts.map → runtime-DWThEP-r.d.cts.map} +1 -1
- package/dist/sniffer-BdFeLSmA.mjs.map +1 -1
- package/dist/sniffer-D66HIvi9.cjs.map +1 -1
- package/dist/{state-DkUStoqJ.mjs → state-Bn5JDMFT.mjs} +247 -7
- package/dist/state-Bn5JDMFT.mjs.map +1 -0
- package/dist/{state-DgmM4EKq.cjs → state-CHZqCDRC.cjs} +342 -6
- package/dist/state-CHZqCDRC.cjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +1 -1
- package/dist/{types-CSw2w69a.d.mts → types-CZdCxUCK.d.cts} +64 -2
- package/dist/types-CZdCxUCK.d.cts.map +1 -0
- package/dist/{types-D5WIxRDP.d.cts → types-Da0E3Qv7.d.mts} +63 -3
- package/dist/types-Da0E3Qv7.d.mts.map +1 -0
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/package.json +13 -13
- package/dist/cli-C2Tjbn27.mjs.map +0 -1
- package/dist/cli-DR7B2_fX.cjs.map +0 -1
- package/dist/compose-5oNHAKNT.cjs.map +0 -1
- package/dist/compose-BjToENzG.mjs.map +0 -1
- package/dist/deploy-BucRfbvX.cjs.map +0 -1
- package/dist/deploy-DRAwTG72.mjs.map +0 -1
- package/dist/engine-Cx_dvx9q.cjs.map +0 -1
- package/dist/engine-Gs0abjuj.mjs.map +0 -1
- package/dist/state-DgmM4EKq.cjs.map +0 -1
- package/dist/state-DkUStoqJ.mjs.map +0 -1
- package/dist/types-CSw2w69a.d.mts.map +0 -1
- package/dist/types-D5WIxRDP.d.cts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6,15 +6,15 @@ import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } fr
|
|
|
6
6
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
7
7
|
import { A as deployedProblems, D as InvalidStages, O as TEST_STAGE, c as getAppGkmConfig, j as stageProblems, n as allConstructGlobs, s as getAppBuildOrder } from "./workspace-Be6uBhlF.mjs";
|
|
8
8
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
9
|
-
import { $ as
|
|
9
|
+
import { $ as quoteIdentifier, At as prepareEntryCredentials, B as backendsOf$1, Bt as deployIdentity, Ct as primaryPortKey, Dt as isPortAvailable, Et as findAvailablePort, Ft as getKeyPath, G as LOCAL_CA_PATH, H as derivedContainers, Jt as maskPassword, K as forgetState, Lt as projectKey, Mt as secretsStoreFor, Ot as loadEnvFiles, P as parseDevServices, Pt as FileSecretsStore, R as keyFingerprint, Tt as createEntryWrapper, U as reconcileWorkspace, V as constructGlobs, Xt as toEmbeddableSecrets, Z as postgresDatabaseNames, Zt as withCustomSecret, _t as providerOf, bt as describeServices, ht as cacheBackendFor, kt as loadSecretsForApp, nt as pgClient, wt as createCredentialsPreload, xt as fakeKey, y as dockerCommand, z as FAKE_ENV } from "./state-Bn5JDMFT.mjs";
|
|
10
10
|
import { i as telemetryFor, n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-BmUAcR7d.mjs";
|
|
11
11
|
import { g as createStateStore, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-BdFeLSmA.mjs";
|
|
12
12
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
13
13
|
import { a as describeHolder, i as assignAppPorts, o as holderOf, r as appTag, s as withAppPorts, t as APP_TAG_ENV } from "./appPorts-C9z9Pzn9.mjs";
|
|
14
14
|
import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-2s3-CndS.mjs";
|
|
15
15
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
16
|
-
import { t as deploy$1 } from "./deploy-
|
|
17
|
-
import { a as dockerCompose, i as stackDir, r as composeProject, t as composeTarget } from "./compose-
|
|
16
|
+
import { t as deploy$1 } from "./deploy-D-EVOWvu.mjs";
|
|
17
|
+
import { a as dockerCompose, i as stackDir, r as composeProject, t as composeTarget } from "./compose-DFxuYhn6.mjs";
|
|
18
18
|
import { t as LocalStateStore } from "./LocalStateStore-Dk3Wbvzk.mjs";
|
|
19
19
|
import { a as getExecCommand, c as validateProjectName, i as findWorkspaceRoot, n as detectPackageManager$1, o as getInstallCommand, r as findWorkspacePackages, s as getRunCommand, t as checkDirectoryExists } from "./utils-D_fxUqvU.mjs";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -46,7 +46,7 @@ import { Function } from "@geekmidas/constructs/functions";
|
|
|
46
46
|
import { Queue } from "@geekmidas/constructs/queue";
|
|
47
47
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
48
48
|
//#region package.json
|
|
49
|
-
var version = "10.0.0-alpha.
|
|
49
|
+
var version = "10.0.0-alpha.68";
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/prompt.ts
|
|
52
52
|
/**
|
|
@@ -2035,9 +2035,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2035
2035
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2036
2036
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2037
2037
|
if (options.migrate || options.seed) {
|
|
2038
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2038
|
+
const { prepareDevDatabases } = await import("./migrate-BWPuwiXk.mjs");
|
|
2039
2039
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2040
|
-
} else await import("./migrate-
|
|
2040
|
+
} else await import("./migrate-BWPuwiXk.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2041
2041
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2042
2042
|
});
|
|
2043
2043
|
const appUrls = {};
|
|
@@ -3417,7 +3417,7 @@ async function buildApp(input) {
|
|
|
3417
3417
|
if (production?.bundle && !input.skipBundle) {
|
|
3418
3418
|
const outputDir = join(appRoot, ".gkm", "server");
|
|
3419
3419
|
const entryPoint = await writeSurfaceServer(outputDir, production);
|
|
3420
|
-
const { bundleServer } = await import("./bundler-
|
|
3420
|
+
const { bundleServer } = await import("./bundler-C-w7aGoZ.mjs");
|
|
3421
3421
|
await bundleServer({
|
|
3422
3422
|
entryPoint,
|
|
3423
3423
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3555,7 +3555,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3555
3555
|
let masterKey;
|
|
3556
3556
|
if (context.production?.bundle && !skipBundle) {
|
|
3557
3557
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3558
|
-
const { bundleServer } = await import("./bundler-
|
|
3558
|
+
const { bundleServer } = await import("./bundler-C-w7aGoZ.mjs");
|
|
3559
3559
|
const allConstructs = [
|
|
3560
3560
|
...endpoints.map((e) => e.construct),
|
|
3561
3561
|
...functions.map((f) => f.construct),
|
|
@@ -3800,11 +3800,12 @@ var ComposeModeConflict = class extends Error {
|
|
|
3800
3800
|
}
|
|
3801
3801
|
};
|
|
3802
3802
|
/** `gkm compose`. */
|
|
3803
|
-
async function composeCommand(options
|
|
3803
|
+
async function composeCommand(options, deps = {}) {
|
|
3804
3804
|
if (options.build && options.pull) throw new ComposeModeConflict();
|
|
3805
|
+
const allowDevServices = parseDevServices(options.allowDevServices);
|
|
3805
3806
|
const cwd = resolve(options.cwd ?? process.cwd());
|
|
3806
3807
|
const { workspace } = await loadWorkspaceConfig(cwd);
|
|
3807
|
-
const stage = options
|
|
3808
|
+
const { stage } = options;
|
|
3808
3809
|
if (options.down) {
|
|
3809
3810
|
const ref = {
|
|
3810
3811
|
project: composeProject(deployIdentity(workspace, stage)),
|
|
@@ -3831,6 +3832,7 @@ async function composeCommand(options = {}, deps = {}) {
|
|
|
3831
3832
|
}) },
|
|
3832
3833
|
...tag ? { tag } : {},
|
|
3833
3834
|
...options.dryRun ? { dryRun: true } : {},
|
|
3835
|
+
...allowDevServices.length > 0 ? { allowDevServices } : {},
|
|
3834
3836
|
logger: {
|
|
3835
3837
|
info: (message) => console.log(message),
|
|
3836
3838
|
warn: (message) => console.warn(message),
|
|
@@ -5250,25 +5252,25 @@ function loadPackageJson() {
|
|
|
5250
5252
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5251
5253
|
*/
|
|
5252
5254
|
const GEEKMIDAS_VERSIONS = {
|
|
5253
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5254
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5255
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5256
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5257
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5258
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5259
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5260
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5261
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5262
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5263
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5264
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5265
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5266
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5267
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5268
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5269
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5270
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5271
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5255
|
+
"@geekmidas/audit": "~10.0.0-alpha.68",
|
|
5256
|
+
"@geekmidas/auth": "~10.0.0-alpha.68",
|
|
5257
|
+
"@geekmidas/cache": "~10.0.0-alpha.68",
|
|
5258
|
+
"@geekmidas/client": "~10.0.0-alpha.68",
|
|
5259
|
+
"@geekmidas/cloud": "~10.0.0-alpha.68",
|
|
5260
|
+
"@geekmidas/constructs": "~10.0.0-alpha.68",
|
|
5261
|
+
"@geekmidas/db": "~10.0.0-alpha.68",
|
|
5262
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.68",
|
|
5263
|
+
"@geekmidas/envkit": "~10.0.0-alpha.68",
|
|
5264
|
+
"@geekmidas/errors": "~10.0.0-alpha.68",
|
|
5265
|
+
"@geekmidas/events": "~10.0.0-alpha.68",
|
|
5266
|
+
"@geekmidas/logger": "~10.0.0-alpha.68",
|
|
5267
|
+
"@geekmidas/manifest": "~10.0.0-alpha.68",
|
|
5268
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.68",
|
|
5269
|
+
"@geekmidas/schema": "~10.0.0-alpha.68",
|
|
5270
|
+
"@geekmidas/services": "~10.0.0-alpha.68",
|
|
5271
|
+
"@geekmidas/storage": "~10.0.0-alpha.68",
|
|
5272
|
+
"@geekmidas/telescope": "~10.0.0-alpha.68",
|
|
5273
|
+
"@geekmidas/testkit": "~10.0.0-alpha.68",
|
|
5272
5274
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5273
5275
|
};
|
|
5274
5276
|
//#endregion
|
|
@@ -11031,7 +11033,7 @@ function testDatabases(reconciled) {
|
|
|
11031
11033
|
* starts without the reference data the app needs.
|
|
11032
11034
|
*/
|
|
11033
11035
|
async function migrateTestStage(workspace, env) {
|
|
11034
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
11036
|
+
const { migrateAndSeed } = await import("./migrate-BWPuwiXk.mjs");
|
|
11035
11037
|
const { discover } = await import("./discover-BFoJWKGD.mjs").then((n) => n.i);
|
|
11036
11038
|
const sources = {};
|
|
11037
11039
|
const manifest = await discover({
|
|
@@ -11462,7 +11464,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
11462
11464
|
try {
|
|
11463
11465
|
const globalOptions = program.opts();
|
|
11464
11466
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11465
|
-
const { migrateCommand } = await import("./migrate-
|
|
11467
|
+
const { migrateCommand } = await import("./migrate-BWPuwiXk.mjs");
|
|
11466
11468
|
await migrateCommand({
|
|
11467
11469
|
...options,
|
|
11468
11470
|
...construct ? { construct } : {}
|
|
@@ -11476,7 +11478,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
11476
11478
|
try {
|
|
11477
11479
|
const globalOptions = program.opts();
|
|
11478
11480
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11479
|
-
const { seedCommand } = await import("./migrate-
|
|
11481
|
+
const { seedCommand } = await import("./migrate-BWPuwiXk.mjs");
|
|
11480
11482
|
await seedCommand({
|
|
11481
11483
|
...options,
|
|
11482
11484
|
...construct ? { construct } : {}
|
|
@@ -11490,7 +11492,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
11490
11492
|
try {
|
|
11491
11493
|
const globalOptions = program.opts();
|
|
11492
11494
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11493
|
-
const { migrationCommand } = await import("./migrate-
|
|
11495
|
+
const { migrationCommand } = await import("./migrate-BWPuwiXk.mjs");
|
|
11494
11496
|
await migrationCommand({
|
|
11495
11497
|
construct,
|
|
11496
11498
|
...name ? { name } : {}
|
|
@@ -11535,7 +11537,7 @@ program.command("docker").description("Generate Docker deployment files").option
|
|
|
11535
11537
|
process.exit(1);
|
|
11536
11538
|
}
|
|
11537
11539
|
});
|
|
11538
|
-
program.command("compose").description("Run the workspace's APIs and sites for a stage as one Docker Compose stack behind Caddy").
|
|
11540
|
+
program.command("compose").description("Run the workspace's APIs and sites for a stage as one Docker Compose stack behind Caddy").requiredOption("--stage <stage>", "Stage to run — always named, so a stack is never a deployed stage by accident").option("--tag <tag>", "Run the images CI pushed at this tag (sites: <tag>-<stage>); nothing is built").option("--build", "Build images from this checkout, tagged with the commit").option("--pull", "Pull images (at --tag, or latest) rather than build them").option("--dry-run", "Write the files and print the plan; start nothing").option("--down", "Stop the stage's stack (its volumes are kept)").option("--allow-dev-services <list>", "Deployed stage: run MinIO and/or Mailpit (minio,mailpit) for mail and buckets the stage's secrets don't configure. Not production-grade").action(async (options) => {
|
|
11539
11541
|
try {
|
|
11540
11542
|
const globalOptions = program.opts();
|
|
11541
11543
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
@@ -11584,7 +11586,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
11584
11586
|
try {
|
|
11585
11587
|
const globalOptions = program.opts();
|
|
11586
11588
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11587
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
11589
|
+
const { encryptionRotateCommand } = await import("./encryption-DSiLau1-.mjs");
|
|
11588
11590
|
await encryptionRotateCommand(construct, options);
|
|
11589
11591
|
} catch (error) {
|
|
11590
11592
|
console.error(formatError(error));
|
|
@@ -11595,7 +11597,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
11595
11597
|
try {
|
|
11596
11598
|
const globalOptions = program.opts();
|
|
11597
11599
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11598
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
11600
|
+
const { encryptionRetireCommand } = await import("./encryption-DSiLau1-.mjs");
|
|
11599
11601
|
await encryptionRetireCommand(construct, key, options);
|
|
11600
11602
|
} catch (error) {
|
|
11601
11603
|
console.error(formatError(error));
|
|
@@ -11638,7 +11640,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11638
11640
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11639
11641
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
11640
11642
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
11641
|
-
const { secretsStoreFor } = await import("./state-
|
|
11643
|
+
const { secretsStoreFor } = await import("./state-Bn5JDMFT.mjs").then((n) => n.Nt);
|
|
11642
11644
|
const { workspace } = await loadWorkspaceConfig();
|
|
11643
11645
|
const stage = options.stage ?? workspace.stages.local;
|
|
11644
11646
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -11647,7 +11649,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11647
11649
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
11648
11650
|
process.exit(1);
|
|
11649
11651
|
}
|
|
11650
|
-
const { derivedContainers } = await import("./state-
|
|
11652
|
+
const { derivedContainers } = await import("./state-Bn5JDMFT.mjs").then((n) => n.W);
|
|
11651
11653
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
11652
11654
|
if (!result) {
|
|
11653
11655
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -11661,8 +11663,8 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
11661
11663
|
process.exit(1);
|
|
11662
11664
|
}
|
|
11663
11665
|
});
|
|
11664
|
-
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, compose, sst, or one named in deploy.targets (default: deploy.default)").option("--provider <provider>", "[DEPRECATED] Use --target instead").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp; compose: the commit). Compose pulls a given tag").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").option("--atomic", "If the release fails, roll back every app it released, not only the failed ones").action(async (options) => {
|
|
11665
|
-
const { deployCli } = await import("./cli-
|
|
11666
|
+
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, compose, sst, or one named in deploy.targets (default: deploy.default)").option("--provider <provider>", "[DEPRECATED] Use --target instead").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp; compose: the commit). Compose pulls a given tag").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").option("--atomic", "If the release fails, roll back every app it released, not only the failed ones").option("--allow-dev-services <list>", "Server targets: run MinIO and/or Mailpit (minio,mailpit) for mail and buckets the stage's secrets don't configure. Not production-grade").action(async (options) => {
|
|
11667
|
+
const { deployCli } = await import("./cli-Ce4pLL5O.mjs");
|
|
11666
11668
|
const globalOptions = program.opts();
|
|
11667
11669
|
const code = await deployCli({
|
|
11668
11670
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -11672,13 +11674,14 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
11672
11674
|
...options.tag ? { tag: options.tag } : {},
|
|
11673
11675
|
...options.json ? { json: true } : {},
|
|
11674
11676
|
...options.dryRun ? { dryRun: true } : {},
|
|
11675
|
-
...options.atomic ? { atomic: true } : {}
|
|
11677
|
+
...options.atomic ? { atomic: true } : {},
|
|
11678
|
+
...options.allowDevServices ? { allowDevServices: options.allowDevServices } : {}
|
|
11676
11679
|
});
|
|
11677
11680
|
if (code !== 0) process.exit(code);
|
|
11678
11681
|
});
|
|
11679
11682
|
program.command("deploy:rollback").description("Put a stage's app back on its previous release (Dokploy): one app with --app, every app with --atomic").requiredOption("--stage <stage>", "A deployed stage").option("--app <app>", "The app to roll back").option("--atomic", "Roll back every app that has an earlier release").action(async (options) => {
|
|
11680
11683
|
try {
|
|
11681
|
-
const { rollbackStage } = await import("./rollback-
|
|
11684
|
+
const { rollbackStage } = await import("./rollback-ZlsbQOvj.mjs").then((n) => n.a);
|
|
11682
11685
|
const { terminalCredentials } = await import("./terminal-C3cv-OQu.mjs");
|
|
11683
11686
|
const globalOptions = program.opts();
|
|
11684
11687
|
await rollbackStage({
|
|
@@ -11714,7 +11717,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
11714
11717
|
try {
|
|
11715
11718
|
const globalOptions = program.opts();
|
|
11716
11719
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
11717
|
-
const { deployGithubCommand } = await import("./github-
|
|
11720
|
+
const { deployGithubCommand } = await import("./github-yy6WpHIl.mjs");
|
|
11718
11721
|
await deployGithubCommand(options);
|
|
11719
11722
|
} catch (error) {
|
|
11720
11723
|
console.error(formatError(error));
|