@geekmidas/cli 10.0.0-alpha.105 → 10.0.0-alpha.106
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/{GoDaddyProvider-Cr9Uvqyz.cjs → GoDaddyProvider-BesL1P15.cjs} +2 -2
- package/dist/{GoDaddyProvider-Cr9Uvqyz.cjs.map → GoDaddyProvider-BesL1P15.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-DjtX8TUM.mjs → GoDaddyProvider-DufGBcDt.mjs} +2 -2
- package/dist/{GoDaddyProvider-DjtX8TUM.mjs.map → GoDaddyProvider-DufGBcDt.mjs.map} +1 -1
- package/dist/{LegacyStateStore-D-0XrizH.mjs → LegacyStateStore-1kOwqcd_.mjs} +3 -3
- package/dist/{LegacyStateStore-D-0XrizH.mjs.map → LegacyStateStore-1kOwqcd_.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CnxFZGeQ.cjs → LegacyStateStore-aFp6-7im.cjs} +3 -3
- package/dist/{LegacyStateStore-CnxFZGeQ.cjs.map → LegacyStateStore-aFp6-7im.cjs.map} +1 -1
- package/dist/{LocalStateStore-dVcU5RNe.mjs → LocalStateStore-DFGsiLDy.mjs} +2 -2
- package/dist/{LocalStateStore-dVcU5RNe.mjs.map → LocalStateStore-DFGsiLDy.mjs.map} +1 -1
- package/dist/{LocalStateStore-DGR_KzjD.cjs → LocalStateStore-Fo33UPTI.cjs} +2 -2
- package/dist/{LocalStateStore-DGR_KzjD.cjs.map → LocalStateStore-Fo33UPTI.cjs.map} +1 -1
- package/dist/{S3StateStore-DIyP76Kb.mjs → S3StateStore-BlwEPivO.mjs} +2 -2
- package/dist/{S3StateStore-DIyP76Kb.mjs.map → S3StateStore-BlwEPivO.mjs.map} +1 -1
- package/dist/{S3StateStore-D8z0z8P2.cjs → S3StateStore-ZWXXuNQp.cjs} +2 -2
- package/dist/{S3StateStore-D8z0z8P2.cjs.map → S3StateStore-ZWXXuNQp.cjs.map} +1 -1
- package/dist/{SSMStateStore-CIOsbEcQ.cjs → SSMStateStore-D5ej5j5M.cjs} +2 -2
- package/dist/{SSMStateStore-CIOsbEcQ.cjs.map → SSMStateStore-D5ej5j5M.cjs.map} +1 -1
- package/dist/{SSMStateStore-B7J_fv0d.mjs → SSMStateStore-DG9h2iVY.mjs} +2 -2
- package/dist/{SSMStateStore-B7J_fv0d.mjs.map → SSMStateStore-DG9h2iVY.mjs.map} +1 -1
- package/dist/{add-CC69Yf5t.mjs → add-1VSxmKnf.mjs} +3 -3
- package/dist/{add-CC69Yf5t.mjs.map → add-1VSxmKnf.mjs.map} +1 -1
- package/dist/{add-DWj9Kccz.cjs → add-B9IgkvTU.cjs} +3 -3
- package/dist/{add-DWj9Kccz.cjs.map → add-B9IgkvTU.cjs.map} +1 -1
- package/dist/{appPorts-C9z9Pzn9.mjs → appPorts-BoXMwolc.mjs} +32 -6
- package/dist/appPorts-BoXMwolc.mjs.map +1 -0
- package/dist/{appPorts-Cu79hJF6.cjs → appPorts-IW-OZmRi.cjs} +37 -5
- package/dist/appPorts-IW-OZmRi.cjs.map +1 -0
- package/dist/{bundler-TZ72P7LF.cjs → bundler-BBDrSnvE.cjs} +5 -5
- package/dist/{bundler-TZ72P7LF.cjs.map → bundler-BBDrSnvE.cjs.map} +1 -1
- package/dist/{bundler-BpYpp1Hf.mjs → bundler-By29I7km.mjs} +5 -5
- package/dist/{bundler-BpYpp1Hf.mjs.map → bundler-By29I7km.mjs.map} +1 -1
- package/dist/{cli-iqNUZ9Va.cjs → cli-Btfl8J6K.cjs} +2 -2
- package/dist/{cli-iqNUZ9Va.cjs.map → cli-Btfl8J6K.cjs.map} +1 -1
- package/dist/{cli-BZ_9cc0O.mjs → cli-D-ZAyAub.mjs} +2 -2
- package/dist/{cli-BZ_9cc0O.mjs.map → cli-D-ZAyAub.mjs.map} +1 -1
- package/dist/{compose-BXUDOrte.mjs → compose-C-lnkCAT.mjs} +3 -3
- package/dist/{compose-BXUDOrte.mjs.map → compose-C-lnkCAT.mjs.map} +1 -1
- package/dist/{compose-5b4lzIyr.cjs → compose-daUOp1bm.cjs} +3 -3
- package/dist/{compose-5b4lzIyr.cjs.map → compose-daUOp1bm.cjs.map} +1 -1
- package/dist/deploy/public.cjs +6 -6
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-BXx5PHR8.mjs → deploy-T3TwqzKf.mjs} +5 -5
- package/dist/{deploy-BXx5PHR8.mjs.map → deploy-T3TwqzKf.mjs.map} +1 -1
- package/dist/{deploy-rdTC6BqI.cjs → deploy-V43Rbboj.cjs} +5 -5
- package/dist/{deploy-rdTC6BqI.cjs.map → deploy-V43Rbboj.cjs.map} +1 -1
- package/dist/{dns-CRungu5C.mjs → dns-AosA2wwP.mjs} +2 -2
- package/dist/{dns-CRungu5C.mjs.map → dns-AosA2wwP.mjs.map} +1 -1
- package/dist/{dns-FMg7REGo.cjs → dns-BfNzYlpR.cjs} +2 -2
- package/dist/{dns-FMg7REGo.cjs.map → dns-BfNzYlpR.cjs.map} +1 -1
- package/dist/{dokploy-U_yXwsT7.cjs → dokploy-COnyBUBW.cjs} +2 -2
- package/dist/{dokploy-U_yXwsT7.cjs.map → dokploy-COnyBUBW.cjs.map} +1 -1
- package/dist/{dokploy-CuluaeVl.mjs → dokploy-CaLl5YmO.mjs} +2 -2
- package/dist/{dokploy-CuluaeVl.mjs.map → dokploy-CaLl5YmO.mjs.map} +1 -1
- package/dist/{encryption-XqokmrEn.mjs → encryption-BqSWtrXU.mjs} +2 -2
- package/dist/{encryption-XqokmrEn.mjs.map → encryption-BqSWtrXU.mjs.map} +1 -1
- package/dist/{encryption-D-louLFQ.cjs → encryption-CJdgXVFM.cjs} +2 -2
- package/dist/{encryption-D-louLFQ.cjs.map → encryption-CJdgXVFM.cjs.map} +1 -1
- package/dist/{engine-DqNljyye.mjs → engine-BMM2Vy26.mjs} +3 -3
- package/dist/{engine-DqNljyye.mjs.map → engine-BMM2Vy26.mjs.map} +1 -1
- package/dist/{engine-BdpcrYWi.cjs → engine-DjI9DFDW.cjs} +3 -3
- package/dist/{engine-BdpcrYWi.cjs.map → engine-DjI9DFDW.cjs.map} +1 -1
- package/dist/{github-CA33zfqv.cjs → github-MYWre3_E.cjs} +4 -4
- package/dist/{github-CA33zfqv.cjs.map → github-MYWre3_E.cjs.map} +1 -1
- package/dist/{github-b_kS4jvw.mjs → github-SViQU_St.mjs} +4 -4
- package/dist/{github-b_kS4jvw.mjs.map → github-SViQU_St.mjs.map} +1 -1
- package/dist/index.cjs +49 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +49 -49
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-DBp_H1fe.mjs → migrate-BNyMi8h5.mjs} +2 -2
- package/dist/{migrate-DBp_H1fe.mjs.map → migrate-BNyMi8h5.mjs.map} +1 -1
- package/dist/{migrate-BVMk0jtV.cjs → migrate-CNQp-SAH.cjs} +2 -2
- package/dist/{migrate-BVMk0jtV.cjs.map → migrate-CNQp-SAH.cjs.map} +1 -1
- package/dist/{migrate-Ln16jIxy.cjs → migrate-DwsOYzmN.cjs} +2 -2
- package/dist/{migrate-Ln16jIxy.cjs.map → migrate-DwsOYzmN.cjs.map} +1 -1
- package/dist/{migrate-DStsGGqC.mjs → migrate-H2vGmQ3l.mjs} +2 -2
- package/dist/{migrate-DStsGGqC.mjs.map → migrate-H2vGmQ3l.mjs.map} +1 -1
- package/dist/{resolve-DCdFajey.mjs → resolve-C2vVcD64.mjs} +3 -3
- package/dist/{resolve-DCdFajey.mjs.map → resolve-C2vVcD64.mjs.map} +1 -1
- package/dist/{resolve-CJ91HNQB.cjs → resolve-ClAnYHo-.cjs} +3 -3
- package/dist/{resolve-CJ91HNQB.cjs.map → resolve-ClAnYHo-.cjs.map} +1 -1
- package/dist/{rollback-CNS-52X9.mjs → rollback-BrBL9j9s.mjs} +4 -4
- package/dist/{rollback-CNS-52X9.mjs.map → rollback-BrBL9j9s.mjs.map} +1 -1
- package/dist/{rollback-UFitatDM.cjs → rollback-CRVwGkEl.cjs} +4 -4
- package/dist/{rollback-UFitatDM.cjs.map → rollback-CRVwGkEl.cjs.map} +1 -1
- package/dist/{seeds-BfzwCdYv.mjs → seeds-C1v4ZOro.mjs} +6 -6
- package/dist/seeds-C1v4ZOro.mjs.map +1 -0
- package/dist/{seeds-DkcKQ_F8.cjs → seeds-RTQPjA4K.cjs} +6 -6
- package/dist/seeds-RTQPjA4K.cjs.map +1 -0
- package/dist/{sniffer-B1neuJz2.mjs → sniffer-CLJ3cB3b.mjs} +6 -6
- package/dist/{sniffer-B1neuJz2.mjs.map → sniffer-CLJ3cB3b.mjs.map} +1 -1
- package/dist/{sniffer-DgfzmvB7.cjs → sniffer-Cy1pb4hg.cjs} +6 -6
- package/dist/{sniffer-DgfzmvB7.cjs.map → sniffer-Cy1pb4hg.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/package.json +15 -15
- package/dist/appPorts-C9z9Pzn9.mjs.map +0 -1
- package/dist/appPorts-Cu79hJF6.cjs.map +0 -1
- package/dist/seeds-BfzwCdYv.mjs.map +0 -1
- package/dist/seeds-DkcKQ_F8.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3,25 +3,25 @@ import { n as __require, t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mj
|
|
|
3
3
|
import { n as isGkmError, t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
4
4
|
import { r as DEFAULT_TIMEOUT_MS, t as CommandFailed } from "./run-BJLIerMM.mjs";
|
|
5
5
|
import { a as getDokployCredentials, d as removeGoDaddyCredentials, f as storeDokployCredentials, i as getCredentialsPath, l as readCredentials, m as storeHostingerToken, o as getDokployRegistryId, p as storeGoDaddyToken, s as getDokployToken, u as removeDokployCredentials } from "./credentials-B5N5yKk6.mjs";
|
|
6
|
-
import { _ as sshTarget, a as stackOverrideFile, c as composeProject, d as stackPlan, f as EDGE_PROJECT, g as dockerHost, h as composeServer, i as ComposePushNeedsBuild, l as derivedCredentials, m as pinnedRef, o as edgeRef, p as parseDigests, r as ComposePinNeedsPull, s as removeEdgeRoutes, t as composeTarget, u as stackDir, v as dockerCompose, y as projectNetwork } from "./compose-
|
|
6
|
+
import { _ as sshTarget, a as stackOverrideFile, c as composeProject, d as stackPlan, f as EDGE_PROJECT, g as dockerHost, h as composeServer, i as ComposePushNeedsBuild, l as derivedCredentials, m as pinnedRef, o as edgeRef, p as parseDigests, r as ComposePinNeedsPull, s as removeEdgeRoutes, t as composeTarget, u as stackDir, v as dockerCompose, y as projectNetwork } from "./compose-C-lnkCAT.mjs";
|
|
7
7
|
import { A as InvalidStages, F as stageProblems, P as deployedProblems, R as stageSampleRate, a as allConstructGlobs, d as getAppGkmConfig, j as TEST_STAGE, u as getAppBuildOrder } from "./workspace-D1QbNd55.mjs";
|
|
8
|
-
import { b as runTime, d as BACKUPS_URL_KEY, f as RUNNER_PATH, g as backupDatabases, u as BACKUPS_SERVICE, v as backupFile, x as stageBackups, y as backupsPrefix } from "./dns-
|
|
9
|
-
import { $t as workerUnits, At as isPortAvailable, Bt as maskPassword, Ct as cacheBackendFor, Dt as createCredentialsPreload, En as TELEMETRY_CONTAINER, G as CronGenerator, H as workerBundleName, Ht as toEmbeddableSecrets, It as secretsStoreFor, L as dockerCommand, Mn as surfaceClientTraced, Mt as loadPortState, Nn as telemetryOf, Nt as loadSecretsForApp, Ot as createEntryWrapper, Pt as prepareEntryCredentials, Q as assertDevServicesFlag, Qt as isUnder, Rn as describeServices, Tt as providerOf, U as workerEntryDir, Un as primaryPortKey, Ut as withCustomSecret, V as WorkerGenerator, Vn as portsOf, W as QueueGenerator, Wn as LOCAL_LOGS_EMAIL, Xt as imageBuildCredentials, Zt as isImageBuild, a as dnsResources, bt as pgClient, c as describeActor, dn as readLocalCredentials, dt as constructGlobs, fn as FileSecretsStore, ft as derivedContainers, gt as forgetState, hn as projectKey, ht as LOCAL_CA_PATH, in as postgresDatabaseNames, jn as scopeTelemetryEnv, jt as loadEnvFiles, kn as appTelemetry, kt as findAvailablePort, lt as FAKE_ENV, on as quoteIdentifier, pn as getKeyPath, pt as reconcileWorkspace, ut as backendsOf$1, wt as eventsBackendFor, xt as CLUSTER_DATABASE, zn as fakeKey } from "./seeds-
|
|
8
|
+
import { b as runTime, d as BACKUPS_URL_KEY, f as RUNNER_PATH, g as backupDatabases, u as BACKUPS_SERVICE, v as backupFile, x as stageBackups, y as backupsPrefix } from "./dns-AosA2wwP.mjs";
|
|
9
|
+
import { $t as workerUnits, At as isPortAvailable, Bt as maskPassword, Ct as cacheBackendFor, Dt as createCredentialsPreload, En as TELEMETRY_CONTAINER, G as CronGenerator, H as workerBundleName, Ht as toEmbeddableSecrets, It as secretsStoreFor, L as dockerCommand, Mn as surfaceClientTraced, Mt as loadPortState, Nn as telemetryOf, Nt as loadSecretsForApp, Ot as createEntryWrapper, Pt as prepareEntryCredentials, Q as assertDevServicesFlag, Qt as isUnder, Rn as describeServices, Tt as providerOf, U as workerEntryDir, Un as primaryPortKey, Ut as withCustomSecret, V as WorkerGenerator, Vn as portsOf, W as QueueGenerator, Wn as LOCAL_LOGS_EMAIL, Xt as imageBuildCredentials, Zt as isImageBuild, a as dnsResources, bt as pgClient, c as describeActor, dn as readLocalCredentials, dt as constructGlobs, fn as FileSecretsStore, ft as derivedContainers, gt as forgetState, hn as projectKey, ht as LOCAL_CA_PATH, in as postgresDatabaseNames, jn as scopeTelemetryEnv, jt as loadEnvFiles, kn as appTelemetry, kt as findAvailablePort, lt as FAKE_ENV, on as quoteIdentifier, pn as getKeyPath, pt as reconcileWorkspace, ut as backendsOf$1, wt as eventsBackendFor, xt as CLUSTER_DATABASE, zn as fakeKey } from "./seeds-C1v4ZOro.mjs";
|
|
10
10
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
11
11
|
import { l as isCacheBackend, n as assertTestCredentials, t as SubscriberGenerator } from "./SubscriberGenerator-DHnIYwUU.mjs";
|
|
12
12
|
import { n as deployIdentity } from "./identity-CBXr4wNi.mjs";
|
|
13
13
|
import { a as startTelemetryCode, c as parseTelemetryFlag, i as routeTelemetry, n as runtimeFor, o as telemetryFor, r as mountRequestSpansCode, s as writeTelemetryModule, t as EndpointGenerator } from "./EndpointGenerator-CvLX8bpx.mjs";
|
|
14
14
|
import { d as ConstructGenerator, i as discover, r as consumedBy, u as withOwningTsconfigJsx } from "./discover-Ca8U75dl.mjs";
|
|
15
15
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
16
|
-
import { d as awsEndpoint, f as awsProvisioningCredentials, t as deploy$1, u as awsClientConfig } from "./deploy-
|
|
16
|
+
import { d as awsEndpoint, f as awsProvisioningCredentials, t as deploy$1, u as awsClientConfig } from "./deploy-T3TwqzKf.mjs";
|
|
17
17
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
18
|
-
import { a as describeHolder, i as assignAppPorts, o as
|
|
18
|
+
import { a as describeHolder, c as withAppPorts, i as assignAppPorts, o as describeMove, r as appTag, s as holderOf, t as APP_TAG_ENV } from "./appPorts-BoXMwolc.mjs";
|
|
19
19
|
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-D11JHxrD.mjs";
|
|
20
20
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
21
21
|
import { t as LocalSandbox } from "./local-BwC2v2Y8.mjs";
|
|
22
|
-
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-
|
|
22
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-CLJ3cB3b.mjs";
|
|
23
23
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-Cf5Pf8VE.mjs";
|
|
24
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
24
|
+
import { t as LocalStateStore } from "./LocalStateStore-DFGsiLDy.mjs";
|
|
25
25
|
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";
|
|
26
26
|
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-CIt5SOtg.mjs";
|
|
27
27
|
import { createRequire } from "node:module";
|
|
@@ -51,7 +51,7 @@ import crypto from "crypto";
|
|
|
51
51
|
import { Function } from "@geekmidas/constructs/functions";
|
|
52
52
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
53
53
|
//#region package.json
|
|
54
|
-
var version = "10.0.0-alpha.
|
|
54
|
+
var version = "10.0.0-alpha.106";
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/prompt.ts
|
|
57
57
|
/**
|
|
@@ -134,7 +134,7 @@ const logger$8 = console;
|
|
|
134
134
|
* Validate Dokploy token by making a test API call
|
|
135
135
|
*/
|
|
136
136
|
async function validateDokployToken(endpoint, token) {
|
|
137
|
-
const { DokployApi } = await import("./sniffer-
|
|
137
|
+
const { DokployApi } = await import("./sniffer-CLJ3cB3b.mjs").then((n) => n.c);
|
|
138
138
|
return new DokployApi({
|
|
139
139
|
baseUrl: endpoint,
|
|
140
140
|
token
|
|
@@ -2312,7 +2312,7 @@ async function devCommand(options) {
|
|
|
2312
2312
|
holder: holderOf
|
|
2313
2313
|
});
|
|
2314
2314
|
if (assigned.running.length > 0) throw new WorkspacePortsInUse(assigned.running);
|
|
2315
|
-
for (const
|
|
2315
|
+
for (const move of assigned.moved) logger$5.log(describeMove(move));
|
|
2316
2316
|
const workspace = withAppPorts(appConfig.workspace, assigned.ports);
|
|
2317
2317
|
const workspaceAppPort = assigned.ports[workspaceAppName] ?? appConfig.app.port;
|
|
2318
2318
|
process.env[APP_TAG_ENV] = appTag(appConfig.workspaceRoot, workspaceAppName);
|
|
@@ -2682,7 +2682,7 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2682
2682
|
holder: holderOf
|
|
2683
2683
|
});
|
|
2684
2684
|
if (assigned.running.length > 0) throw new WorkspacePortsInUse(assigned.running);
|
|
2685
|
-
for (const
|
|
2685
|
+
for (const move of assigned.moved) logger$5.log(describeMove(move));
|
|
2686
2686
|
const workspace = withAppPorts(configured, assigned.ports);
|
|
2687
2687
|
const appCount = Object.keys(workspace.apps).length;
|
|
2688
2688
|
const frontendApps = Object.entries(workspace.apps).filter(([_, app]) => app.type === "web");
|
|
@@ -2730,9 +2730,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2730
2730
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2731
2731
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2732
2732
|
if (options.migrate || options.seed) {
|
|
2733
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2733
|
+
const { prepareDevDatabases } = await import("./migrate-BNyMi8h5.mjs");
|
|
2734
2734
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2735
|
-
} else await import("./migrate-
|
|
2735
|
+
} else await import("./migrate-BNyMi8h5.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2736
2736
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2737
2737
|
});
|
|
2738
2738
|
const appUrls = {};
|
|
@@ -3808,7 +3808,7 @@ async function buildApp(input) {
|
|
|
3808
3808
|
...production,
|
|
3809
3809
|
...telemetry ? { telemetry } : {}
|
|
3810
3810
|
});
|
|
3811
|
-
const { bundleServer } = await import("./bundler-
|
|
3811
|
+
const { bundleServer } = await import("./bundler-By29I7km.mjs");
|
|
3812
3812
|
await bundleServer({
|
|
3813
3813
|
entryPoint,
|
|
3814
3814
|
outputDir: join(outputDir, "dist"),
|
|
@@ -4007,7 +4007,7 @@ async function buildWorkers(input) {
|
|
|
4007
4007
|
});
|
|
4008
4008
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
4009
4009
|
if (!input.bundle) continue;
|
|
4010
|
-
const { bundleServer } = await import("./bundler-
|
|
4010
|
+
const { bundleServer } = await import("./bundler-By29I7km.mjs");
|
|
4011
4011
|
const outfile = workerBundleName(worker.id);
|
|
4012
4012
|
await bundleServer({
|
|
4013
4013
|
entryPoint,
|
|
@@ -4093,7 +4093,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
4093
4093
|
let masterKey;
|
|
4094
4094
|
if (context.production?.bundle && !skipBundle) {
|
|
4095
4095
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
4096
|
-
const { bundleServer } = await import("./bundler-
|
|
4096
|
+
const { bundleServer } = await import("./bundler-By29I7km.mjs");
|
|
4097
4097
|
const allConstructs = [
|
|
4098
4098
|
...endpoints.map((e) => e.construct),
|
|
4099
4099
|
...functions.map((f) => f.construct),
|
|
@@ -5921,25 +5921,25 @@ function loadPackageJson() {
|
|
|
5921
5921
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5922
5922
|
*/
|
|
5923
5923
|
const GEEKMIDAS_VERSIONS = {
|
|
5924
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5925
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5926
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5927
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5928
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5929
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5930
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5931
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5932
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5933
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5934
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5935
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5936
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5937
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5938
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5939
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5940
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5941
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5942
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5924
|
+
"@geekmidas/audit": "~10.0.0-alpha.106",
|
|
5925
|
+
"@geekmidas/auth": "~10.0.0-alpha.106",
|
|
5926
|
+
"@geekmidas/cache": "~10.0.0-alpha.106",
|
|
5927
|
+
"@geekmidas/client": "~10.0.0-alpha.106",
|
|
5928
|
+
"@geekmidas/cloud": "~10.0.0-alpha.106",
|
|
5929
|
+
"@geekmidas/constructs": "~10.0.0-alpha.106",
|
|
5930
|
+
"@geekmidas/db": "~10.0.0-alpha.106",
|
|
5931
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.106",
|
|
5932
|
+
"@geekmidas/envkit": "~10.0.0-alpha.106",
|
|
5933
|
+
"@geekmidas/errors": "~10.0.0-alpha.106",
|
|
5934
|
+
"@geekmidas/events": "~10.0.0-alpha.106",
|
|
5935
|
+
"@geekmidas/logger": "~10.0.0-alpha.106",
|
|
5936
|
+
"@geekmidas/manifest": "~10.0.0-alpha.106",
|
|
5937
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.106",
|
|
5938
|
+
"@geekmidas/schema": "~10.0.0-alpha.106",
|
|
5939
|
+
"@geekmidas/services": "~10.0.0-alpha.106",
|
|
5940
|
+
"@geekmidas/storage": "~10.0.0-alpha.106",
|
|
5941
|
+
"@geekmidas/telescope": "~10.0.0-alpha.106",
|
|
5942
|
+
"@geekmidas/testkit": "~10.0.0-alpha.106",
|
|
5943
5943
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5944
5944
|
};
|
|
5945
5945
|
//#endregion
|
|
@@ -6340,7 +6340,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
6340
6340
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
6341
6341
|
* release the pinned commit is.
|
|
6342
6342
|
*/
|
|
6343
|
-
function stagesActionUses(commit = "
|
|
6343
|
+
function stagesActionUses(commit = "b75253d9ef24b8af2128efe0db5261712264c22c", version = cliVersion()) {
|
|
6344
6344
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
6345
6345
|
}
|
|
6346
6346
|
//#endregion
|
|
@@ -12082,7 +12082,7 @@ function testDatabases(reconciled) {
|
|
|
12082
12082
|
* starts without the reference data the app needs.
|
|
12083
12083
|
*/
|
|
12084
12084
|
async function migrateTestStage(workspace, env) {
|
|
12085
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
12085
|
+
const { migrateAndSeed } = await import("./migrate-BNyMi8h5.mjs");
|
|
12086
12086
|
const { discover } = await import("./discover-Ca8U75dl.mjs").then((n) => n.a);
|
|
12087
12087
|
const sources = {};
|
|
12088
12088
|
const manifest = await discover({
|
|
@@ -12518,7 +12518,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
12518
12518
|
try {
|
|
12519
12519
|
const globalOptions = program.opts();
|
|
12520
12520
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12521
|
-
const { migrateCommand } = await import("./migrate-
|
|
12521
|
+
const { migrateCommand } = await import("./migrate-BNyMi8h5.mjs");
|
|
12522
12522
|
await migrateCommand({
|
|
12523
12523
|
...options,
|
|
12524
12524
|
...construct ? { construct } : {}
|
|
@@ -12531,7 +12531,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
12531
12531
|
try {
|
|
12532
12532
|
const globalOptions = program.opts();
|
|
12533
12533
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12534
|
-
const { seedCommand } = await import("./migrate-
|
|
12534
|
+
const { seedCommand } = await import("./migrate-BNyMi8h5.mjs");
|
|
12535
12535
|
await seedCommand({
|
|
12536
12536
|
...options,
|
|
12537
12537
|
...construct ? { construct } : {}
|
|
@@ -12544,7 +12544,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
12544
12544
|
try {
|
|
12545
12545
|
const globalOptions = program.opts();
|
|
12546
12546
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12547
|
-
const { migrationCommand } = await import("./migrate-
|
|
12547
|
+
const { migrationCommand } = await import("./migrate-BNyMi8h5.mjs");
|
|
12548
12548
|
await migrationCommand({
|
|
12549
12549
|
construct,
|
|
12550
12550
|
...name ? { name } : {}
|
|
@@ -12644,7 +12644,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
12644
12644
|
try {
|
|
12645
12645
|
const globalOptions = program.opts();
|
|
12646
12646
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12647
|
-
const { secretsAddCommand } = await import("./add-
|
|
12647
|
+
const { secretsAddCommand } = await import("./add-1VSxmKnf.mjs");
|
|
12648
12648
|
await secretsAddCommand(options);
|
|
12649
12649
|
} catch (error) {
|
|
12650
12650
|
exitWithError(error);
|
|
@@ -12654,7 +12654,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
12654
12654
|
try {
|
|
12655
12655
|
const globalOptions = program.opts();
|
|
12656
12656
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12657
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
12657
|
+
const { encryptionRotateCommand } = await import("./encryption-BqSWtrXU.mjs");
|
|
12658
12658
|
await encryptionRotateCommand(construct, options);
|
|
12659
12659
|
} catch (error) {
|
|
12660
12660
|
exitWithError(error);
|
|
@@ -12664,7 +12664,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
12664
12664
|
try {
|
|
12665
12665
|
const globalOptions = program.opts();
|
|
12666
12666
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12667
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
12667
|
+
const { encryptionRetireCommand } = await import("./encryption-BqSWtrXU.mjs");
|
|
12668
12668
|
await encryptionRetireCommand(construct, key, options);
|
|
12669
12669
|
} catch (error) {
|
|
12670
12670
|
exitWithError(error);
|
|
@@ -12703,7 +12703,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12703
12703
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12704
12704
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
12705
12705
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
12706
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
12706
|
+
const { secretsStoreFor } = await import("./seeds-C1v4ZOro.mjs").then((n) => n.Rt);
|
|
12707
12707
|
const { workspace } = await loadWorkspaceConfig();
|
|
12708
12708
|
const stage = options.stage ?? workspace.stages.local;
|
|
12709
12709
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -12712,7 +12712,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12712
12712
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
12713
12713
|
process.exit(1);
|
|
12714
12714
|
}
|
|
12715
|
-
const { derivedContainers } = await import("./seeds-
|
|
12715
|
+
const { derivedContainers } = await import("./seeds-C1v4ZOro.mjs").then((n) => n.mt);
|
|
12716
12716
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
12717
12717
|
if (!result) {
|
|
12718
12718
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -12729,14 +12729,14 @@ program.command("secrets:migrate").description("Copy a deployed stage's secrets
|
|
|
12729
12729
|
try {
|
|
12730
12730
|
const globalOptions = program.opts();
|
|
12731
12731
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12732
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
12732
|
+
const { secretsMigrateCommand } = await import("./migrate-H2vGmQ3l.mjs");
|
|
12733
12733
|
await secretsMigrateCommand(options);
|
|
12734
12734
|
} catch (error) {
|
|
12735
12735
|
exitWithError(error);
|
|
12736
12736
|
}
|
|
12737
12737
|
});
|
|
12738
12738
|
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", "Server targets: run the dev service (MinIO, Mailpit) for every bucket and mail the stage doesn't account for. Not production-grade").option("--skip-dns", "Compose: neither write the public hosts' DNS records nor check they point at GKM_SERVER_IPV4 (a CDN or proxy in front, or records written elsewhere)").option("--rotate-keys", "Deployed stage: each provider issues its runtime keys a successor (the old one is deleted by the next deploy)").option("--retire-old-keys", "Deployed stage: delete a rotated-out key now instead of on the next deploy").action(async (options) => {
|
|
12739
|
-
const { deployCli } = await import("./cli-
|
|
12739
|
+
const { deployCli } = await import("./cli-D-ZAyAub.mjs");
|
|
12740
12740
|
const globalOptions = program.opts();
|
|
12741
12741
|
const code = await deployCli({
|
|
12742
12742
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12756,7 +12756,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
12756
12756
|
});
|
|
12757
12757
|
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) => {
|
|
12758
12758
|
try {
|
|
12759
|
-
const { rollbackStage } = await import("./rollback-
|
|
12759
|
+
const { rollbackStage } = await import("./rollback-BrBL9j9s.mjs").then((n) => n.a);
|
|
12760
12760
|
const { terminalCredentials } = await import("./terminal-CvRLxz6g.mjs");
|
|
12761
12761
|
const globalOptions = program.opts();
|
|
12762
12762
|
await rollbackStage({
|
|
@@ -12790,7 +12790,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
12790
12790
|
try {
|
|
12791
12791
|
const globalOptions = program.opts();
|
|
12792
12792
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12793
|
-
const { deployGithubCommand } = await import("./github-
|
|
12793
|
+
const { deployGithubCommand } = await import("./github-SViQU_St.mjs");
|
|
12794
12794
|
await deployGithubCommand(options);
|
|
12795
12795
|
} catch (error) {
|
|
12796
12796
|
exitWithError(error);
|