@geekmidas/cli 10.0.0-alpha.78 → 10.0.0-alpha.80
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/{add-D2XKszYP.mjs → add-CIxT-Iq6.mjs} +2 -2
- package/dist/{add-D2XKszYP.mjs.map → add-CIxT-Iq6.mjs.map} +1 -1
- package/dist/{add-BvOICikp.cjs → add-DJ0VE-y-.cjs} +7 -7
- package/dist/{add-BvOICikp.cjs.map → add-DJ0VE-y-.cjs.map} +1 -1
- package/dist/{aws-Bja4zGSs.mjs → aws-B-6uEhgP.mjs} +8 -2
- package/dist/{aws-Bja4zGSs.mjs.map → aws-B-6uEhgP.mjs.map} +1 -1
- package/dist/{aws-CQAuluiu.cjs → aws-BTawF0F-.cjs} +19 -2
- package/dist/{aws-CQAuluiu.cjs.map → aws-BTawF0F-.cjs.map} +1 -1
- package/dist/{bundler-C6T-1OLT.cjs → bundler-BlbSLFLn.cjs} +3 -3
- package/dist/{bundler-C6T-1OLT.cjs.map → bundler-BlbSLFLn.cjs.map} +1 -1
- package/dist/{bundler-CtHzKqnZ.mjs → bundler-D4pl87A5.mjs} +3 -3
- package/dist/{bundler-CtHzKqnZ.mjs.map → bundler-D4pl87A5.mjs.map} +1 -1
- package/dist/{cli-BgPyhx1i.mjs → cli-7aLfgIGt.mjs} +3 -3
- package/dist/{cli-BgPyhx1i.mjs.map → cli-7aLfgIGt.mjs.map} +1 -1
- package/dist/{cli-K6Vj_pPW.cjs → cli-BkNZBe_-.cjs} +4 -4
- package/dist/{cli-K6Vj_pPW.cjs.map → cli-BkNZBe_-.cjs.map} +1 -1
- package/dist/{compose-B7MC19eC.cjs → compose-Bn4OJONR.cjs} +88 -60
- package/dist/{compose-B7MC19eC.cjs.map → compose-Bn4OJONR.cjs.map} +1 -1
- package/dist/{compose-DByK353T.mjs → compose-n7K8H5j8.mjs} +36 -8
- package/dist/{compose-DByK353T.mjs.map → compose-n7K8H5j8.mjs.map} +1 -1
- package/dist/{config-Bql0AmJt.d.mts → config-L_6NivCp.d.mts} +3 -3
- package/dist/{config-Bql0AmJt.d.mts.map → config-L_6NivCp.d.mts.map} +1 -1
- package/dist/{config-DlNpHK8p.d.cts → config-Mr4rcXFC.d.cts} +3 -3
- package/dist/{config-DlNpHK8p.d.cts.map → config-Mr4rcXFC.d.cts.map} +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/{databases-C2p5LGAp.cjs → databases-BY-pEImp.cjs} +185 -7
- package/dist/databases-BY-pEImp.cjs.map +1 -0
- package/dist/{databases-hUHTuwhx.mjs → databases-CzszQV0N.mjs} +153 -5
- package/dist/databases-CzszQV0N.mjs.map +1 -0
- package/dist/deploy/public.cjs +12 -11
- package/dist/deploy/public.d.cts +19 -3
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +19 -3
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-BerP7ppB.mjs → deploy-DK4Y6ev4.mjs} +3 -3
- package/dist/{deploy-BerP7ppB.mjs.map → deploy-DK4Y6ev4.mjs.map} +1 -1
- package/dist/{deploy-Dt42xiQA.cjs → deploy-Ppnh8MHS.cjs} +9 -9
- package/dist/{deploy-Dt42xiQA.cjs.map → deploy-Ppnh8MHS.cjs.map} +1 -1
- package/dist/{dokploy-ssZQRK2C.mjs → dokploy-Bjq05wkw.mjs} +2 -2
- package/dist/{dokploy-ssZQRK2C.mjs.map → dokploy-Bjq05wkw.mjs.map} +1 -1
- package/dist/{dokploy-NG9UrVrP.cjs → dokploy-CJvdoNc3.cjs} +2 -2
- package/dist/{dokploy-NG9UrVrP.cjs.map → dokploy-CJvdoNc3.cjs.map} +1 -1
- package/dist/{encryption-De6MN0O5.mjs → encryption-BrsOJFFz.mjs} +2 -2
- package/dist/{encryption-De6MN0O5.mjs.map → encryption-BrsOJFFz.mjs.map} +1 -1
- package/dist/{encryption-CbMI24fI.cjs → encryption-CAyR6D7B.cjs} +5 -5
- package/dist/{encryption-CbMI24fI.cjs.map → encryption-CAyR6D7B.cjs.map} +1 -1
- package/dist/{engine-CoCsNoW_.cjs → engine-DzBZR5D0.cjs} +118 -82
- package/dist/engine-DzBZR5D0.cjs.map +1 -0
- package/dist/{engine-DOjGIgl4.mjs → engine-ba9CvjTo.mjs} +53 -17
- package/dist/engine-ba9CvjTo.mjs.map +1 -0
- package/dist/github-BLjU59Ye.cjs +669 -0
- package/dist/github-BLjU59Ye.cjs.map +1 -0
- package/dist/github-CVdbVlT5.mjs +669 -0
- package/dist/github-CVdbVlT5.mjs.map +1 -0
- package/dist/{index-BXO0vlme.d.mts → index-C0UmP_lg.d.mts} +2 -2
- package/dist/{index-BXO0vlme.d.mts.map → index-C0UmP_lg.d.mts.map} +1 -1
- package/dist/{index-Rs0Fua-q.d.cts → index-DTEPwLml.d.cts} +2 -2
- package/dist/{index-Rs0Fua-q.d.cts.map → index-DTEPwLml.d.cts.map} +1 -1
- package/dist/index.cjs +114 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +41 -41
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-Cgoy58Sh.cjs → migrate-DkB833Jj.cjs} +8 -9
- package/dist/{migrate-Cgoy58Sh.cjs.map → migrate-DkB833Jj.cjs.map} +1 -1
- package/dist/{migrate-CNKaQl3K.mjs → migrate-DlBgATa-.mjs} +3 -4
- package/dist/{migrate-CNKaQl3K.mjs.map → migrate-DlBgATa-.mjs.map} +1 -1
- package/dist/{migrate-B4GBvCNY.cjs → migrate-iEdyEx4S.cjs} +4 -4
- package/dist/{migrate-B4GBvCNY.cjs.map → migrate-iEdyEx4S.cjs.map} +1 -1
- package/dist/{migrate-BQ4wVKq_.mjs → migrate-pfu4aYzX.mjs} +2 -2
- package/dist/{migrate-BQ4wVKq_.mjs.map → migrate-pfu4aYzX.mjs.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-CEaqRBzY.cjs → resolve-4_5N67Fk.cjs} +3 -3
- package/dist/{resolve-CEaqRBzY.cjs.map → resolve-4_5N67Fk.cjs.map} +1 -1
- package/dist/{resolve-mvaystiE.mjs → resolve-CQPn66jr.mjs} +3 -3
- package/dist/{resolve-mvaystiE.mjs.map → resolve-CQPn66jr.mjs.map} +1 -1
- package/dist/{rollback-S2C-Y9pB.mjs → rollback-C0cbdsM-.mjs} +3 -3
- package/dist/{rollback-S2C-Y9pB.mjs.map → rollback-C0cbdsM-.mjs.map} +1 -1
- package/dist/{rollback-F3P-rA-r.cjs → rollback-CgYUPLbq.cjs} +5 -5
- package/dist/{rollback-F3P-rA-r.cjs.map → rollback-CgYUPLbq.cjs.map} +1 -1
- package/dist/{runtime-D9AxGzrw.d.cts → runtime-D6A-C6zh.d.cts} +2 -2
- package/dist/{runtime-D9AxGzrw.d.cts.map → runtime-D6A-C6zh.d.cts.map} +1 -1
- package/dist/{runtime-Dflki3Vs.d.mts → runtime-ekxfPNM-.d.mts} +2 -2
- package/dist/{runtime-Dflki3Vs.d.mts.map → runtime-ekxfPNM-.d.mts.map} +1 -1
- package/dist/sandbox/migrate-worker.cjs +22 -8
- package/dist/sandbox/migrate-worker.cjs.map +1 -1
- package/dist/sandbox/migrate-worker.mjs +22 -8
- package/dist/sandbox/migrate-worker.mjs.map +1 -1
- package/dist/{secretsManager-Ti0oZwsS.mjs → secretsManager-Chs9VV2r.mjs} +8 -2
- package/dist/{secretsManager-Ti0oZwsS.mjs.map → secretsManager-Chs9VV2r.mjs.map} +1 -1
- package/dist/{secretsManager-DUXW3fQt.cjs → secretsManager-DcMlHnRC.cjs} +19 -2
- package/dist/{secretsManager-DUXW3fQt.cjs.map → secretsManager-DcMlHnRC.cjs.map} +1 -1
- package/dist/{stale-C5FqIVc8.mjs → seeds-BdkFpW0P.mjs} +64 -6
- package/dist/seeds-BdkFpW0P.mjs.map +1 -0
- package/dist/{stale-BsiPJI7Y.cjs → seeds-ZljwYV_p.cjs} +81 -5
- package/dist/seeds-ZljwYV_p.cjs.map +1 -0
- package/dist/sniffer-BjG-1mlD.cjs.map +1 -1
- package/dist/sniffer-ByWtH28i.mjs.map +1 -1
- 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-DKxkXsKC.d.mts → types-BzCavjGt.d.mts} +29 -2
- package/dist/types-BzCavjGt.d.mts.map +1 -0
- package/dist/{types-ByY0zi3n.d.cts → types-DZtj9jeI.d.cts} +29 -2
- package/dist/types-DZtj9jeI.d.cts.map +1 -0
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/package.json +15 -15
- package/dist/databases-C2p5LGAp.cjs.map +0 -1
- package/dist/databases-hUHTuwhx.mjs.map +0 -1
- package/dist/engine-CoCsNoW_.cjs.map +0 -1
- package/dist/engine-DOjGIgl4.mjs.map +0 -1
- package/dist/github-CwX9z89E.mjs +0 -213
- package/dist/github-CwX9z89E.mjs.map +0 -1
- package/dist/github-D9vGqdLk.cjs +0 -213
- package/dist/github-D9vGqdLk.cjs.map +0 -1
- package/dist/provider-B3Sv_a74.cjs +0 -173
- package/dist/provider-B3Sv_a74.cjs.map +0 -1
- package/dist/provider-D7rQzzzf.mjs +0 -138
- package/dist/provider-D7rQzzzf.mjs.map +0 -1
- package/dist/stale-BsiPJI7Y.cjs.map +0 -1
- package/dist/stale-C5FqIVc8.mjs.map +0 -1
- package/dist/types-ByY0zi3n.d.cts.map +0 -1
- package/dist/types-DKxkXsKC.d.mts.map +0 -1
|
@@ -5,7 +5,7 @@ const require_derive = require("./derive-DAbo49sm.cjs");
|
|
|
5
5
|
const require_workspace = require("./workspace-Bp8FEkF-.cjs");
|
|
6
6
|
const require_config = require("./config.cjs");
|
|
7
7
|
const require_EndpointGenerator = require("./EndpointGenerator-CP6sBvQV.cjs");
|
|
8
|
-
const require_resolve = require("./resolve-
|
|
8
|
+
const require_resolve = require("./resolve-4_5N67Fk.cjs");
|
|
9
9
|
const require_SubscriberGenerator = require("./SubscriberGenerator-CajwOa5W.cjs");
|
|
10
10
|
let node_path = require("node:path");
|
|
11
11
|
let node_fs = require("node:fs");
|
|
@@ -550,7 +550,7 @@ async function storeFromConfig(workspace, config, options = {}) {
|
|
|
550
550
|
const profile = options.profile ? { profile: options.profile } : {};
|
|
551
551
|
switch (config.provider) {
|
|
552
552
|
case "ssm": {
|
|
553
|
-
const { AwsSecretsStore } = await Promise.resolve().then(() => require("./aws-
|
|
553
|
+
const { AwsSecretsStore } = await Promise.resolve().then(() => require("./aws-BTawF0F-.cjs")).then((n) => n.aws_exports);
|
|
554
554
|
return new AwsSecretsStore({
|
|
555
555
|
project: workspace.name,
|
|
556
556
|
region: config.region,
|
|
@@ -559,7 +559,7 @@ async function storeFromConfig(workspace, config, options = {}) {
|
|
|
559
559
|
}
|
|
560
560
|
case "secrets-manager": {
|
|
561
561
|
const { kmsKeyId } = config;
|
|
562
|
-
const { SecretsManagerSecretsStore } = await Promise.resolve().then(() => require("./secretsManager-
|
|
562
|
+
const { SecretsManagerSecretsStore } = await Promise.resolve().then(() => require("./secretsManager-DcMlHnRC.cjs")).then((n) => n.secretsManager_exports);
|
|
563
563
|
return new SecretsManagerSecretsStore({
|
|
564
564
|
project: workspace.name,
|
|
565
565
|
region: config.region,
|
|
@@ -4863,7 +4863,7 @@ export async function setupCrons(
|
|
|
4863
4863
|
// The cron's own function, the way its Lambda would run it — services,
|
|
4864
4864
|
// the worker's database as \`db\`, its events. It used to call a
|
|
4865
4865
|
// \`handler\` a Cron does not have, so every firing logged a failure.
|
|
4866
|
-
await runCron(entry.cron, serviceDiscovery);
|
|
4866
|
+
await runCron(entry.cron, serviceDiscovery, entry.name);
|
|
4867
4867
|
} catch (error) {
|
|
4868
4868
|
logger.error({ err: error, cron: entry.name }, 'Cron failed');
|
|
4869
4869
|
}
|
|
@@ -6585,6 +6585,64 @@ function assertNoStaleSecrets(options) {
|
|
|
6585
6585
|
if (stale.length > 0) throw new StaleStageSecrets(options.stage, stale);
|
|
6586
6586
|
}
|
|
6587
6587
|
//#endregion
|
|
6588
|
+
//#region src/target/seeds.ts
|
|
6589
|
+
/** A seed of a deployed stage failed; the release stopped before any app. */
|
|
6590
|
+
var DeploySeedsFailed = class extends Error {
|
|
6591
|
+
stage;
|
|
6592
|
+
construct;
|
|
6593
|
+
seed;
|
|
6594
|
+
cause;
|
|
6595
|
+
constructor(stage, construct, seed, cause) {
|
|
6596
|
+
super(`Seeding "${stage}" failed, so no app was released: ${construct}'s seed '${seed}' failed — ${causeMessage(cause)}. Its writes were rolled back; the migrations and the seeds before it stay applied. Seeds run on every deploy, so each must be an idempotent upsert: fix it and deploy again.`);
|
|
6597
|
+
this.stage = stage;
|
|
6598
|
+
this.construct = construct;
|
|
6599
|
+
this.seed = seed;
|
|
6600
|
+
this.cause = cause;
|
|
6601
|
+
this.name = "DeploySeedsFailed";
|
|
6602
|
+
}
|
|
6603
|
+
};
|
|
6604
|
+
/**
|
|
6605
|
+
* What went wrong underneath: a `SeedFailed`'s own cause (the database's
|
|
6606
|
+
* error), or — from a sandbox, where errors arrive as data — the same.
|
|
6607
|
+
*/
|
|
6608
|
+
function causeMessage(cause) {
|
|
6609
|
+
const message = (value) => value && typeof value === "object" && "message" in value ? String(value.message) : void 0;
|
|
6610
|
+
return (cause && typeof cause === "object" && "cause" in cause ? message(cause.cause) : void 0) ?? message(cause) ?? String(cause);
|
|
6611
|
+
}
|
|
6612
|
+
/**
|
|
6613
|
+
* Say what a deploy's migrations and seeds did: a line per construct with
|
|
6614
|
+
* something applied or run — `🌱 db/database/seeds: ran 2`, then each seed —
|
|
6615
|
+
* and a `migration.applied` or `seed.ran` event beside it.
|
|
6616
|
+
*/
|
|
6617
|
+
function reportDatabaseRuns(migrations, seeds, log, emit) {
|
|
6618
|
+
for (const { construct, folder, applied } of migrations) {
|
|
6619
|
+
if (applied.length === 0) continue;
|
|
6620
|
+
log(`🗄️ ${folder}: applied ${applied.length}`);
|
|
6621
|
+
for (const name of applied) log(` ✓ ${name}`);
|
|
6622
|
+
emit({
|
|
6623
|
+
type: "migration.applied",
|
|
6624
|
+
construct,
|
|
6625
|
+
folder,
|
|
6626
|
+
applied: [...applied]
|
|
6627
|
+
});
|
|
6628
|
+
}
|
|
6629
|
+
for (const { construct, folder, seeded } of seeds) {
|
|
6630
|
+
if (seeded.length === 0) continue;
|
|
6631
|
+
log(`🌱 ${folder}: ran ${seeded.length}`);
|
|
6632
|
+
for (const name of seeded) log(` ✓ ${name}`);
|
|
6633
|
+
emit({
|
|
6634
|
+
type: "seed.ran",
|
|
6635
|
+
construct,
|
|
6636
|
+
folder,
|
|
6637
|
+
seeded: [...seeded]
|
|
6638
|
+
});
|
|
6639
|
+
}
|
|
6640
|
+
}
|
|
6641
|
+
/** What a dry run lists: the seeds a deploy would run, construct by construct. */
|
|
6642
|
+
function reportPlannedSeeds(planned, log) {
|
|
6643
|
+
for (const { folder, seeds } of planned) log(`🌱 ${folder}: would run ${seeds.length} (${seeds.join(", ")})`);
|
|
6644
|
+
}
|
|
6645
|
+
//#endregion
|
|
6588
6646
|
Object.defineProperty(exports, "CronGenerator", {
|
|
6589
6647
|
enumerable: true,
|
|
6590
6648
|
get: function() {
|
|
@@ -6609,6 +6667,12 @@ Object.defineProperty(exports, "DeployJournal", {
|
|
|
6609
6667
|
return DeployJournal;
|
|
6610
6668
|
}
|
|
6611
6669
|
});
|
|
6670
|
+
Object.defineProperty(exports, "DeploySeedsFailed", {
|
|
6671
|
+
enumerable: true,
|
|
6672
|
+
get: function() {
|
|
6673
|
+
return DeploySeedsFailed;
|
|
6674
|
+
}
|
|
6675
|
+
});
|
|
6612
6676
|
Object.defineProperty(exports, "DevServicesNeedServerTarget", {
|
|
6613
6677
|
enumerable: true,
|
|
6614
6678
|
get: function() {
|
|
@@ -7143,12 +7207,24 @@ Object.defineProperty(exports, "recordRollback", {
|
|
|
7143
7207
|
return recordRollback;
|
|
7144
7208
|
}
|
|
7145
7209
|
});
|
|
7210
|
+
Object.defineProperty(exports, "reportDatabaseRuns", {
|
|
7211
|
+
enumerable: true,
|
|
7212
|
+
get: function() {
|
|
7213
|
+
return reportDatabaseRuns;
|
|
7214
|
+
}
|
|
7215
|
+
});
|
|
7146
7216
|
Object.defineProperty(exports, "reportDevServices", {
|
|
7147
7217
|
enumerable: true,
|
|
7148
7218
|
get: function() {
|
|
7149
7219
|
return reportDevServices;
|
|
7150
7220
|
}
|
|
7151
7221
|
});
|
|
7222
|
+
Object.defineProperty(exports, "reportPlannedSeeds", {
|
|
7223
|
+
enumerable: true,
|
|
7224
|
+
get: function() {
|
|
7225
|
+
return reportPlannedSeeds;
|
|
7226
|
+
}
|
|
7227
|
+
});
|
|
7152
7228
|
Object.defineProperty(exports, "requiredStageKeys", {
|
|
7153
7229
|
enumerable: true,
|
|
7154
7230
|
get: function() {
|
|
@@ -7306,4 +7382,4 @@ Object.defineProperty(exports, "workspace_exports", {
|
|
|
7306
7382
|
}
|
|
7307
7383
|
});
|
|
7308
7384
|
|
|
7309
|
-
//# sourceMappingURL=
|
|
7385
|
+
//# sourceMappingURL=seeds-ZljwYV_p.cjs.map
|