@geekmidas/cli 10.0.0-alpha.53 → 10.0.0-alpha.54

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/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { d as parseModuleConfig, f as appKey, l as loadWorkspaceConfig, n as Not
5
5
  import { D as assertDeployedStage, E as TEST_STAGE, O as deployedProblems, T as InvalidStages, a as getAppBuildOrder, b as getDeployTargetError, k as stageProblems, m as stripPublicPrefix, o as getAppGkmConfig, p as getPublicEnvPrefix, t as allConstructGlobs, x as isDeployTargetSupported } from "./workspace-bOsks1uk.mjs";
6
6
  import { a as withCustomSecret, i as toEmbeddableSecrets, n as maskPassword, t as initStageSecrets } from "./storage-BzaUxmqe.mjs";
7
7
  import { a as getKeyPath, i as FileSecretsStore, n as secretsStoreFor } from "./store-DeGATCS-.mjs";
8
- import { C as loadEnvFiles, S as isPortAvailable, T as prepareEntryCredentials, _ as fakeKey, a as reconcileWorkspace, b as createEntryWrapper, c as LOCAL_CA_PATH, d as postgresDatabaseNames, f as quoteIdentifier, g as describeServices, h as rootSite, i as derivedContainers, l as forgetState, m as resourceName, n as backendsOf$1, p as pgClient, r as constructGlobs, s as COMPOSE_PATH, t as FAKE_ENV, u as applyPostgres, v as primaryPortKey, w as loadSecretsForApp, x as findAvailablePort, y as createCredentialsPreload } from "./workspace-qcva2dTt.mjs";
8
+ import { C as loadEnvFiles, S as isPortAvailable, T as prepareEntryCredentials, _ as fakeKey, a as reconcileWorkspace, b as createEntryWrapper, c as LOCAL_CA_PATH, d as postgresDatabaseNames, f as quoteIdentifier, g as describeServices, h as rootSite, i as derivedContainers, l as forgetState, m as resourceName, n as backendsOf$1, p as pgClient, r as constructGlobs, s as COMPOSE_PATH, t as FAKE_ENV, u as applyPostgres, v as primaryPortKey, w as loadSecretsForApp, x as findAvailablePort, y as createCredentialsPreload } from "./workspace-Bwl0728I.mjs";
9
9
  import { n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-BzIGy8KE.mjs";
10
10
  import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
11
11
  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-C8wG_d0v.mjs";
@@ -42,7 +42,7 @@ import { Queue } from "@geekmidas/constructs/queue";
42
42
  import { Topic } from "@geekmidas/constructs/topic";
43
43
  import { lookup } from "node:dns/promises";
44
44
  //#region package.json
45
- var version = "10.0.0-alpha.53";
45
+ var version = "10.0.0-alpha.54";
46
46
  //#endregion
47
47
  //#region src/auth/credentials.ts
48
48
  /**
@@ -1765,9 +1765,9 @@ async function workspaceDevCommand(configured, options) {
1765
1765
  for (const { id, port } of fakes) logger$9.log(`🎭 ${id} fake: http://localhost:${port}`);
1766
1766
  logger$9.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
1767
1767
  if (options.migrate || options.seed) {
1768
- const { prepareDevDatabases } = await import("./migrate-CHQyNzj-.mjs");
1768
+ const { prepareDevDatabases } = await import("./migrate-DWDaaBfo.mjs");
1769
1769
  await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
1770
- } else await import("./migrate-CHQyNzj-.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
1770
+ } else await import("./migrate-DWDaaBfo.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
1771
1771
  logger$9.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
1772
1772
  });
1773
1773
  const appUrls = {};
@@ -9368,26 +9368,26 @@ function loadPackageJson() {
9368
9368
  * Run: pnpm --filter @geekmidas/cli sync-versions
9369
9369
  */
9370
9370
  const GEEKMIDAS_VERSIONS = {
9371
- "@geekmidas/audit": "~10.0.0-alpha.53",
9372
- "@geekmidas/auth": "~10.0.0-alpha.53",
9373
- "@geekmidas/cache": "~10.0.0-alpha.53",
9374
- "@geekmidas/client": "~10.0.0-alpha.53",
9375
- "@geekmidas/cloud": "~10.0.0-alpha.53",
9376
- "@geekmidas/constructs": "~10.0.0-alpha.53",
9377
- "@geekmidas/db": "~10.0.0-alpha.53",
9378
- "@geekmidas/emailkit": "~10.0.0-alpha.53",
9379
- "@geekmidas/envkit": "~10.0.0-alpha.53",
9380
- "@geekmidas/errors": "~10.0.0-alpha.53",
9381
- "@geekmidas/events": "~10.0.0-alpha.53",
9382
- "@geekmidas/logger": "~10.0.0-alpha.53",
9383
- "@geekmidas/manifest": "~10.0.0-alpha.53",
9384
- "@geekmidas/rate-limit": "~10.0.0-alpha.53",
9385
- "@geekmidas/schema": "~10.0.0-alpha.53",
9386
- "@geekmidas/services": "~10.0.0-alpha.53",
9387
- "@geekmidas/storage": "~10.0.0-alpha.53",
9388
- "@geekmidas/studio": "~10.0.0-alpha.53",
9389
- "@geekmidas/telescope": "~10.0.0-alpha.53",
9390
- "@geekmidas/testkit": "~10.0.0-alpha.53",
9371
+ "@geekmidas/audit": "~10.0.0-alpha.54",
9372
+ "@geekmidas/auth": "~10.0.0-alpha.54",
9373
+ "@geekmidas/cache": "~10.0.0-alpha.54",
9374
+ "@geekmidas/client": "~10.0.0-alpha.54",
9375
+ "@geekmidas/cloud": "~10.0.0-alpha.54",
9376
+ "@geekmidas/constructs": "~10.0.0-alpha.54",
9377
+ "@geekmidas/db": "~10.0.0-alpha.54",
9378
+ "@geekmidas/emailkit": "~10.0.0-alpha.54",
9379
+ "@geekmidas/envkit": "~10.0.0-alpha.54",
9380
+ "@geekmidas/errors": "~10.0.0-alpha.54",
9381
+ "@geekmidas/events": "~10.0.0-alpha.54",
9382
+ "@geekmidas/logger": "~10.0.0-alpha.54",
9383
+ "@geekmidas/manifest": "~10.0.0-alpha.54",
9384
+ "@geekmidas/rate-limit": "~10.0.0-alpha.54",
9385
+ "@geekmidas/schema": "~10.0.0-alpha.54",
9386
+ "@geekmidas/services": "~10.0.0-alpha.54",
9387
+ "@geekmidas/storage": "~10.0.0-alpha.54",
9388
+ "@geekmidas/studio": "~10.0.0-alpha.54",
9389
+ "@geekmidas/telescope": "~10.0.0-alpha.54",
9390
+ "@geekmidas/testkit": "~10.0.0-alpha.54",
9391
9391
  "@geekmidas/cli": `~${loadPackageJson().version}`
9392
9392
  };
9393
9393
  //#endregion
@@ -16130,7 +16130,7 @@ function testDatabases(reconciled) {
16130
16130
  * starts without the reference data the app needs.
16131
16131
  */
16132
16132
  async function migrateTestStage(workspace, env) {
16133
- const { migrateAndSeed } = await import("./migrate-CHQyNzj-.mjs");
16133
+ const { migrateAndSeed } = await import("./migrate-DWDaaBfo.mjs");
16134
16134
  const { discover } = await import("./discover-Cf2jAcgF.mjs").then((n) => n.n);
16135
16135
  const sources = {};
16136
16136
  const manifest = await discover({
@@ -16561,7 +16561,7 @@ program.command("migrate").description("Apply each database construct's migratio
16561
16561
  try {
16562
16562
  const globalOptions = program.opts();
16563
16563
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
16564
- const { migrateCommand } = await import("./migrate-CHQyNzj-.mjs");
16564
+ const { migrateCommand } = await import("./migrate-DWDaaBfo.mjs");
16565
16565
  await migrateCommand({
16566
16566
  ...options,
16567
16567
  ...construct ? { construct } : {}
@@ -16575,7 +16575,7 @@ program.command("seed").description("Migrate, then run each database construct's
16575
16575
  try {
16576
16576
  const globalOptions = program.opts();
16577
16577
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
16578
- const { seedCommand } = await import("./migrate-CHQyNzj-.mjs");
16578
+ const { seedCommand } = await import("./migrate-DWDaaBfo.mjs");
16579
16579
  await seedCommand({
16580
16580
  ...options,
16581
16581
  ...construct ? { construct } : {}
@@ -16589,7 +16589,7 @@ program.command("migration").description("Write a construct's next migration: an
16589
16589
  try {
16590
16590
  const globalOptions = program.opts();
16591
16591
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
16592
- const { migrationCommand } = await import("./migrate-CHQyNzj-.mjs");
16592
+ const { migrationCommand } = await import("./migrate-DWDaaBfo.mjs");
16593
16593
  await migrationCommand({
16594
16594
  construct,
16595
16595
  ...name ? { name } : {}
@@ -16750,7 +16750,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
16750
16750
  console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
16751
16751
  process.exit(1);
16752
16752
  }
16753
- const { derivedContainers } = await import("./workspace-qcva2dTt.mjs").then((n) => n.o);
16753
+ const { derivedContainers } = await import("./workspace-Bwl0728I.mjs").then((n) => n.o);
16754
16754
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
16755
16755
  if (!result) {
16756
16756
  console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);