@geekmidas/cli 10.0.0-alpha.42 → 10.0.0-alpha.44

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,10 +5,10 @@ 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-DOmIhiau.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 findAvailablePort, D as prepareEntryCredentials, E as loadSecretsForApp, S as createEntryWrapper, T as loadEnvFiles, _ as cacheBackendFor, a as reconcileWorkspace, b as storageBackendFor, c as LOCAL_CA_PATH, d as quoteIdentifier, f as pgClient, g as primaryPortKey, h as fakeKey, i as derivedContainers, l as forgetState, m as rootSite, n as backendsOf, p as resourceName, r as constructGlobs, s as COMPOSE_PATH, t as FAKE_ENV, u as applyPostgres, v as eventsBackendFor, w as isPortAvailable, x as createCredentialsPreload, y as providerOf } from "./workspace-BTM5-aaI.mjs";
8
+ import { C as createEntryWrapper, D as loadSecretsForApp, E as loadEnvFiles, O as prepareEntryCredentials, S as createCredentialsPreload, T as isPortAvailable, _ as primaryPortKey, a as reconcileWorkspace, b as providerOf, c as LOCAL_CA_PATH, d as postgresDatabaseNames, f as quoteIdentifier, g as fakeKey, h as rootSite, i as derivedContainers, l as forgetState, m as resourceName, n as backendsOf, p as pgClient, r as constructGlobs, s as COMPOSE_PATH, t as FAKE_ENV, u as applyPostgres, v as cacheBackendFor, w as findAvailablePort, x as storageBackendFor, y as eventsBackendFor } from "./workspace-BKytVCzb.mjs";
9
9
  import { n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-CEh3EKN3.mjs";
10
10
  import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
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-BZ0fLpyL.mjs";
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-ZqOuNvKD.mjs";
12
12
  import { i as withRoutes, r as withCompute } from "./emit-Bzq7JsMP.mjs";
13
13
  import { createRequire } from "node:module";
14
14
  import { Command } from "commander";
@@ -40,7 +40,7 @@ import { Queue } from "@geekmidas/constructs/queue";
40
40
  import { Topic } from "@geekmidas/constructs/topic";
41
41
  import { lookup } from "node:dns/promises";
42
42
  //#region package.json
43
- var version = "10.0.0-alpha.42";
43
+ var version = "10.0.0-alpha.44";
44
44
  //#endregion
45
45
  //#region src/auth/credentials.ts
46
46
  /**
@@ -1565,9 +1565,9 @@ async function workspaceDevCommand(workspace, options) {
1565
1565
  const fakes = options.fake ? await serveFakes(reconciled.fakes, reconciled.ports) : [];
1566
1566
  for (const { id, port } of fakes) logger$10.log(`🎭 ${id} fake: http://localhost:${port}`);
1567
1567
  if (options.migrate || options.seed) {
1568
- const { prepareDevDatabases } = await import("./migrate-64EEprA_.mjs");
1568
+ const { prepareDevDatabases } = await import("./migrate-BRklCm7b.mjs");
1569
1569
  await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
1570
- } else await import("./migrate-64EEprA_.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
1570
+ } else await import("./migrate-BRklCm7b.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
1571
1571
  logger$10.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
1572
1572
  });
1573
1573
  const appUrls = {};
@@ -9322,26 +9322,26 @@ function loadPackageJson() {
9322
9322
  * Run: pnpm --filter @geekmidas/cli sync-versions
9323
9323
  */
9324
9324
  const GEEKMIDAS_VERSIONS = {
9325
- "@geekmidas/audit": "~10.0.0-alpha.42",
9326
- "@geekmidas/auth": "~10.0.0-alpha.42",
9327
- "@geekmidas/cache": "~10.0.0-alpha.42",
9328
- "@geekmidas/client": "~10.0.0-alpha.42",
9329
- "@geekmidas/cloud": "~10.0.0-alpha.42",
9330
- "@geekmidas/constructs": "~10.0.0-alpha.42",
9331
- "@geekmidas/db": "~10.0.0-alpha.42",
9332
- "@geekmidas/emailkit": "~10.0.0-alpha.42",
9333
- "@geekmidas/envkit": "~10.0.0-alpha.42",
9334
- "@geekmidas/errors": "~10.0.0-alpha.42",
9335
- "@geekmidas/events": "~10.0.0-alpha.42",
9336
- "@geekmidas/logger": "~10.0.0-alpha.42",
9337
- "@geekmidas/manifest": "~10.0.0-alpha.42",
9338
- "@geekmidas/rate-limit": "~10.0.0-alpha.42",
9339
- "@geekmidas/schema": "~10.0.0-alpha.42",
9340
- "@geekmidas/services": "~10.0.0-alpha.42",
9341
- "@geekmidas/storage": "~10.0.0-alpha.42",
9342
- "@geekmidas/studio": "~10.0.0-alpha.42",
9343
- "@geekmidas/telescope": "~10.0.0-alpha.42",
9344
- "@geekmidas/testkit": "~10.0.0-alpha.42",
9325
+ "@geekmidas/audit": "~10.0.0-alpha.44",
9326
+ "@geekmidas/auth": "~10.0.0-alpha.44",
9327
+ "@geekmidas/cache": "~10.0.0-alpha.44",
9328
+ "@geekmidas/client": "~10.0.0-alpha.44",
9329
+ "@geekmidas/cloud": "~10.0.0-alpha.44",
9330
+ "@geekmidas/constructs": "~10.0.0-alpha.44",
9331
+ "@geekmidas/db": "~10.0.0-alpha.44",
9332
+ "@geekmidas/emailkit": "~10.0.0-alpha.44",
9333
+ "@geekmidas/envkit": "~10.0.0-alpha.44",
9334
+ "@geekmidas/errors": "~10.0.0-alpha.44",
9335
+ "@geekmidas/events": "~10.0.0-alpha.44",
9336
+ "@geekmidas/logger": "~10.0.0-alpha.44",
9337
+ "@geekmidas/manifest": "~10.0.0-alpha.44",
9338
+ "@geekmidas/rate-limit": "~10.0.0-alpha.44",
9339
+ "@geekmidas/schema": "~10.0.0-alpha.44",
9340
+ "@geekmidas/services": "~10.0.0-alpha.44",
9341
+ "@geekmidas/storage": "~10.0.0-alpha.44",
9342
+ "@geekmidas/studio": "~10.0.0-alpha.44",
9343
+ "@geekmidas/telescope": "~10.0.0-alpha.44",
9344
+ "@geekmidas/testkit": "~10.0.0-alpha.44",
9345
9345
  "@geekmidas/cli": `~${loadPackageJson().version}`
9346
9346
  };
9347
9347
  //#endregion
@@ -16079,7 +16079,7 @@ async function teardown(cwd) {
16079
16079
  */
16080
16080
  function testDatabases(reconciled) {
16081
16081
  const port = reconciled?.ports[primaryPortKey("postgres")];
16082
- const names = (reconciled?.plan.resources ?? []).filter((resource) => resource.kind === "database" && resource.provisions && resource.container === "postgres").map((resource) => resource.name);
16082
+ const names = reconciled ? postgresDatabaseNames(reconciled.plan) : [];
16083
16083
  return port !== void 0 && names.length > 0 ? { databases: {
16084
16084
  port,
16085
16085
  names
@@ -16090,7 +16090,7 @@ function testDatabases(reconciled) {
16090
16090
  * starts without the reference data the app needs.
16091
16091
  */
16092
16092
  async function migrateTestStage(workspace, env) {
16093
- const { migrateAndSeed } = await import("./migrate-64EEprA_.mjs");
16093
+ const { migrateAndSeed } = await import("./migrate-BRklCm7b.mjs");
16094
16094
  const { discover } = await import("./discover-BLhf7V_J.mjs").then((n) => n.n);
16095
16095
  const sources = {};
16096
16096
  const manifest = await discover({
@@ -16537,7 +16537,7 @@ program.command("migrate").description("Apply each database construct's migratio
16537
16537
  try {
16538
16538
  const globalOptions = program.opts();
16539
16539
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
16540
- const { migrateCommand } = await import("./migrate-64EEprA_.mjs");
16540
+ const { migrateCommand } = await import("./migrate-BRklCm7b.mjs");
16541
16541
  await migrateCommand({
16542
16542
  ...options,
16543
16543
  ...construct ? { construct } : {}
@@ -16551,7 +16551,7 @@ program.command("seed").description("Migrate, then run each database construct's
16551
16551
  try {
16552
16552
  const globalOptions = program.opts();
16553
16553
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
16554
- const { seedCommand } = await import("./migrate-64EEprA_.mjs");
16554
+ const { seedCommand } = await import("./migrate-BRklCm7b.mjs");
16555
16555
  await seedCommand({
16556
16556
  ...options,
16557
16557
  ...construct ? { construct } : {}
@@ -16565,7 +16565,7 @@ program.command("migration").description("Write a construct's next migration: an
16565
16565
  try {
16566
16566
  const globalOptions = program.opts();
16567
16567
  if (globalOptions.cwd) process.chdir(globalOptions.cwd);
16568
- const { migrationCommand } = await import("./migrate-64EEprA_.mjs");
16568
+ const { migrationCommand } = await import("./migrate-BRklCm7b.mjs");
16569
16569
  await migrationCommand({
16570
16570
  construct,
16571
16571
  ...name ? { name } : {}
@@ -16704,7 +16704,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
16704
16704
  console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
16705
16705
  process.exit(1);
16706
16706
  }
16707
- const { derivedContainers } = await import("./workspace-BTM5-aaI.mjs").then((n) => n.o);
16707
+ const { derivedContainers } = await import("./workspace-BKytVCzb.mjs").then((n) => n.o);
16708
16708
  const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
16709
16709
  if (!result) {
16710
16710
  console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);