@prisma/orm-toolchain 8.0.0-rc.23-dev.13 → 8.0.0-rc.24-dev.1
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/cli.mjs +139 -76
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +3 -1
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/{ref-hKV9pGrC-DVWnb8cQ.mjs → ref-DH9J_oNY-CipATbYR.mjs} +47 -12
- package/dist/ref-DH9J_oNY-CipATbYR.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +13 -13
- package/dist/ref-hKV9pGrC-DVWnb8cQ.mjs.map +0 -1
|
@@ -12,7 +12,7 @@ import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as Integrity
|
|
|
12
12
|
import "./metadata-BtscDay2.mjs";
|
|
13
13
|
import "./package-N9PPdFV_.mjs";
|
|
14
14
|
import { CliStructuredError } from "@prisma/orm-framework/errors/control";
|
|
15
|
-
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, MigrationOperationSubject, MigrationPlanOperation, MigrationPlanSubjects, MigrationSubject, OperationPreview, ResolvedMigrationStatement, ResolvedMigrationStatement as ResolvedMigrationStatement$1, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
15
|
+
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, MigrationOperationSubject, MigrationPlanOperation, MigrationPlanSubjects, MigrationPlannerConflict, MigrationSubject, OperationPreview, ResolvedMigrationStatement, ResolvedMigrationStatement as ResolvedMigrationStatement$1, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
16
16
|
import "@prisma/orm-framework/utils/structured-error";
|
|
17
17
|
import { Contract, ContractWithDomain } from "@prisma/orm-framework/contract/types";
|
|
18
18
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
@@ -806,6 +806,8 @@ interface MigrationPlanResult {
|
|
|
806
806
|
* presentation and carried verbatim for JSON consumers.
|
|
807
807
|
*/
|
|
808
808
|
readonly warnings?: readonly string[];
|
|
809
|
+
/** What the planner flagged without refusing to plan it, as `db update` and `db init` list it. */
|
|
810
|
+
readonly plannerWarnings?: readonly MigrationPlannerConflict[];
|
|
809
811
|
/**
|
|
810
812
|
* When true, `migration.ts` was written but contains unfilled
|
|
811
813
|
* `placeholder(...)` calls. The user must edit the file and then run
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAkBiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;iBAQzG,gBAAgB,gBAAgB,MAAM,4BAA4B;WACxE;IACP;;;iBAGa,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BP,oBAAoB,SAAS,qBAAqB,eAAe,2BAA2B,QAAQ;;;UAG3G;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;KAON,sCAAsC;WAChC;;WAEA;;WAEA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;iBAGhI,uBAAuB,qBAAqB,sBAAsB,wBAAwB;;;;;;;;UAQjG,qBAAqB,0BAA0B;WAC9C,UAAU;WACV;WACA,aAAa;WACb,YAAY,cAAc,2BAA2B,WAAW;WAChE,sBAAsB,0BAA0B;;;;;;WAMhD,wBAAwB;;;;;;iBAMlB,sCAAsC,0BAA0B,0BAA0B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ACA;WACA,YAAY;IACnB,QAAQ;WACD;WACA;GACR;;;UAGO;WACC,OAAO;WACP,MAAM;WACN;;iBAEM,mBAAmB,eAAe,SAAS,uBAAuB,OAAO,aAAa;iBACtF,oBAAoB,eAAe;WACzC,OAAO;WACP,MAAM;IACb,OAAO,cAAc;;;;iBAIR,kBAAkB,kBAAkB,QAAQ,OAAO,MAAM;;;;;;;KAOrE;WACM;WACA,UAAU;;WAEV;WACA;WACA;;WAEA;;;;;;UAMD;;WAEC,qBAAqB;WACrB,QAAQ;WACR,aAAa;;;;;;;;;iBASP,kBAAkB,OAAO,yBAAyB,gBAAgB,gCAAgC;;;iBAGlG,iBAAiB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { D as errorFromCaught } from "./caught-errors-Cll-zcA1-MXR0HE1V.mjs";
|
|
2
|
-
import { $ as refuseContractSpaceIntegrity, A as executeRefDeleteCommand, B as loadAggregateIntegrityViolations, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, H as loadContractSource, K as mapContractAtError, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as readMigrationRefs, R as listRefsByContractHash, S as executeDbInit, T as executeDbVerify, V as loadContractRawSafely, W as loadContractSpaceAggregateForCli, Y as migrationSpaceListEntriesFromAggregate, Z as preflightRefAdvancement, _ as deriveStatusEdgeAnnotations, a as advanceRefSafely, b as enumerateCheckSpaces, c as buildContractSpaceAggregate, ct as resolveContractRefToSnapshot, d as buildRefAdvancementFields, dt as resolveStatements, et as refuseDeclaredExtensionTargetMismatch, f as checkSingleTarget, ft as resolveToForPlan, g as createControlClient, gt as runMigrationList, ht as runMigrationCheck, j as executeRefListCommand, k as executeRefAdvancement, l as buildMigrationSpaceGraphEntries, lt as resolveFromForPlan, mt as runContractSpaceSeedPhase, n as NO_REF_ADVANCEMENT, nt as refusePackageCorruptionOnAggregate, o as appContractStandInFromIdentity, p as computeRefAdvancementName, q as mapIntegrityViolations, rt as refuseUnknownInvariants, s as appliedHashesFromLedger, st as resolveContractRef$1, tt as refuseMissingInvariantPath, u as buildReadAggregate, ut as resolveMigrationRef, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract
|
|
2
|
+
import { $ as refuseContractSpaceIntegrity, A as executeRefDeleteCommand, B as loadAggregateIntegrityViolations, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, H as loadContractSource, K as mapContractAtError, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as readMigrationRefs, R as listRefsByContractHash, S as executeDbInit, T as executeDbVerify, V as loadContractRawSafely, W as loadContractSpaceAggregateForCli, Y as migrationSpaceListEntriesFromAggregate, Z as preflightRefAdvancement, _ as deriveStatusEdgeAnnotations, a as advanceRefSafely, b as enumerateCheckSpaces, bt as statusForMigrationHash, c as buildContractSpaceAggregate, ct as resolveContractRefToSnapshot, d as buildRefAdvancementFields, dt as resolveStatements, et as refuseDeclaredExtensionTargetMismatch, f as checkSingleTarget, ft as resolveToForPlan, g as createControlClient, gt as runMigrationList, ht as runMigrationCheck, j as executeRefListCommand, k as executeRefAdvancement, l as buildMigrationSpaceGraphEntries, lt as resolveFromForPlan, mt as runContractSpaceSeedPhase, n as NO_REF_ADVANCEMENT, nt as refusePackageCorruptionOnAggregate, o as appContractStandInFromIdentity, p as computeRefAdvancementName, q as mapIntegrityViolations, rt as refuseUnknownInvariants, s as appliedHashesFromLedger, st as resolveContractRef$1, tt as refuseMissingInvariantPath, u as buildReadAggregate, ut as resolveMigrationRef, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract } from "./ref-DH9J_oNY-CipATbYR.mjs";
|
|
3
3
|
export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, errorFromCaught, executeContractEmit, executeDbInit, executeDbSign, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveStatements, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
@@ -36,7 +36,7 @@ import { isDeepStrictEqual } from "node:util";
|
|
|
36
36
|
import { canonicalStringify } from "@prisma/orm-framework/utils/canonical-stringify";
|
|
37
37
|
import { abortable } from "@prisma/orm-framework/utils/abortable";
|
|
38
38
|
import { resolve as resolve$1 } from "node:path";
|
|
39
|
-
//#region ../../../1-framework/3-tooling/cli/dist/ref-
|
|
39
|
+
//#region ../../../1-framework/3-tooling/cli/dist/ref-DH9J_oNY.mjs
|
|
40
40
|
/**
|
|
41
41
|
* The meta of a contract that failed to load because the family refused it, such as the columns whose defaults it refused, for the command to report: the refusal's own meta, or the `refusedDefaults` a migration-tools error kept from it.
|
|
42
42
|
*/
|
|
@@ -258,13 +258,17 @@ function backfillFlags(reports) {
|
|
|
258
258
|
text: field
|
|
259
259
|
})]))];
|
|
260
260
|
}
|
|
261
|
+
/** The way out of a cast that met a value it cannot cast without changing the migration: change that value, then `rerun`. */
|
|
262
|
+
function changeValueAdvice(change, rerun) {
|
|
263
|
+
return change.by === "cast" && change.reason === "value" ? [chooseAction(`Change the value the failure names so the database's cast accepts it, then re-run ${rerun}`)] : [];
|
|
264
|
+
}
|
|
261
265
|
/** The way out of a failed cast for `db update`, which plans and applies in one step. */
|
|
262
266
|
function dbUpdateFailedTypeChangeAdvice(change, databaseStorageHash, invocation) {
|
|
263
267
|
const plan = printedPlanCommand(invocation, databaseStorageHash, [statementFlag({
|
|
264
268
|
verb: "convert",
|
|
265
269
|
text: change.field
|
|
266
270
|
})]);
|
|
267
|
-
return [chooseAction(`${failedTypeChangeText(change)} Plan the change with ${quoted$1(plan)}, write the conversion in the migration.ts it writes, ${RUN_PLANNED_FILE}, and apply it with ${dbMigrateCommand(invocation)}`)];
|
|
271
|
+
return [chooseAction(`${failedTypeChangeText(change)} Plan the change with ${quoted$1(plan)}, write the conversion in the migration.ts it writes, ${RUN_PLANNED_FILE}, and apply it with ${dbMigrateCommand(invocation)}`), ...changeValueAdvice(change, quoted$1(cliCommand(invocation, "db update", invocation.rerunArgs ?? [])))];
|
|
268
272
|
}
|
|
269
273
|
/** The way out of rows without a value for `db update`, which plans and applies in one step. */
|
|
270
274
|
function dbUpdateRowsWithoutValueAdvice(reports, databaseStorageHash, invocation) {
|
|
@@ -411,12 +415,16 @@ function migrateFailedTypeChangeAdvice(change, failedMigration, invocation) {
|
|
|
411
415
|
verb: "convert",
|
|
412
416
|
text: change.field
|
|
413
417
|
});
|
|
414
|
-
if (failedMigration === void 0) return [chooseAction(`${changeText} Plan the type change again with ${quoted$1(printedPlanCommand(invocation, void 0, [convert]))}, write the conversion in the migration.ts it writes, ${RUN_PLANNED_FILE}, and apply it with ${dbMigrateCommand(invocation)}`)];
|
|
418
|
+
if (failedMigration === void 0) return [chooseAction(`${changeText} Plan the type change again with ${quoted$1(printedPlanCommand(invocation, void 0, [convert]))}, write the conversion in the migration.ts it writes, ${RUN_PLANNED_FILE}, and apply it with ${dbMigrateCommand(invocation)}`), ...changeValueAdvice(change, dbMigrateCommand(invocation))];
|
|
415
419
|
const deleted = `\`${statementFlag({
|
|
416
420
|
verb: "delete",
|
|
417
421
|
text: change.field
|
|
418
422
|
})}\``;
|
|
419
|
-
return [
|
|
423
|
+
return [
|
|
424
|
+
editFileAction(`${changeText} ${file} changes field "${change.field}" ${change.reason === "noCast" ? "with a cast the database does not have between these types: replace it" : "with the database's cast, which met a value it cannot cast: replace that cast"} with your own conversion of the values there, ${run}, and re-run ${dbMigrateCommand(invocation)}`),
|
|
425
|
+
...changeValueAdvice(change, dbMigrateCommand(invocation)),
|
|
426
|
+
replan("Delete", [convert], failedMigration, deleted)
|
|
427
|
+
];
|
|
420
428
|
}
|
|
421
429
|
function migrateRowsWithoutValueAdvice(reports, failedMigration, invocation) {
|
|
422
430
|
const [first] = reports;
|
|
@@ -481,7 +489,7 @@ function migrateAdvice(failure, facts, failedOnDisk, invocation) {
|
|
|
481
489
|
if (facts.rowsFailingCheck !== void 0) return migrateRowsFailingCheckAdvice(facts.rowsFailingCheck, failedMigration, invocation);
|
|
482
490
|
if (schemaCheckIssues(failure) !== void 0) return migrateSchemaCheckAdvice(failedMigration, invocation);
|
|
483
491
|
if (facts.failedPrecheck !== void 0) return migrateFailedPrecheckAdvice(facts.failedPrecheck, invocation);
|
|
484
|
-
return [chooseAction(`
|
|
492
|
+
return [chooseAction(`Resolve the cause the failure names, then re-run \`${cliCommand(invocation, "db migrate", invocation.rerunArgs ?? [])}\``)];
|
|
485
493
|
}
|
|
486
494
|
/** The ways out as prose: each label as a sentence, every one after the first after "Or:". */
|
|
487
495
|
function adviceText(advice) {
|
|
@@ -554,9 +562,9 @@ function dbInitRunnerFailureError(failure, facts, invocation) {
|
|
|
554
562
|
*/
|
|
555
563
|
function dbUpdateRunnerFailureError(failure, facts, context) {
|
|
556
564
|
const { databaseStorageHash, invocation } = context;
|
|
557
|
-
const update = cliCommand(invocation, "db update");
|
|
565
|
+
const update = cliCommand(invocation, "db update", invocation.rerunArgs ?? []);
|
|
558
566
|
const { blockingObjects } = failure.meta;
|
|
559
|
-
return runnerFailureError(failure, blockingObjects !== void 0 ? blockingObjectsAdvice(blockingObjects,
|
|
567
|
+
return runnerFailureError(failure, blockingObjects !== void 0 ? blockingObjectsAdvice(blockingObjects, update) : facts.failedTypeChange !== void 0 ? dbUpdateFailedTypeChangeAdvice(facts.failedTypeChange, databaseStorageHash, invocation) : facts.rowsWithoutValue !== void 0 ? dbUpdateRowsWithoutValueAdvice(facts.rowsWithoutValue, databaseStorageHash, invocation) : facts.rowsHoldingValue !== void 0 ? dbUpdateRowsHoldingValueAdvice(facts.rowsHoldingValue, databaseStorageHash, invocation) : facts.rowsFailingCheck !== void 0 ? dbUpdateRowsFailingCheckAdvice(facts.rowsFailingCheck, databaseStorageHash, invocation) : schemaCheckIssues(failure) !== void 0 ? [editFileAction(`Change the contract source to resolve the issues listed, re-run \`${cliCommand(invocation, "contract emit")}\`, then re-run \`${update}\``)] : [chooseAction(`Resolve the cause the failure names, then re-run \`${update}\``)]);
|
|
560
568
|
}
|
|
561
569
|
function startText(fromHash) {
|
|
562
570
|
return fromHash === "empty" ? "the empty contract (the space has no marker)" : `the contract its marker names ("${fromHash}")`;
|
|
@@ -1954,13 +1962,23 @@ function consentDescription(verb, subject, text, loss) {
|
|
|
1954
1962
|
const kind = ENTITY_WORDS[subject.kind];
|
|
1955
1963
|
return verb === "delete" && loss === "typeChange" ? `accept lossy type change of ${kind} "${text}"` : `${verb} ${kind} "${text}"`;
|
|
1956
1964
|
}
|
|
1965
|
+
const DELETE_CASTS = "--delete keeps the field and lets the database cast its values, which can change or lose some.";
|
|
1966
|
+
/** What each answer to a type change does: `--convert`, where the command writes a migration to fill in, and `--delete`. */
|
|
1967
|
+
function typeChangeNote(loss, canConvert) {
|
|
1968
|
+
if (loss.loss !== "typeChange") return [];
|
|
1969
|
+
return loss.subject.kind === "field" && canConvert ? [`--convert writes a conversion for you to fill in; ${DELETE_CASTS}`] : [DELETE_CASTS];
|
|
1970
|
+
}
|
|
1957
1971
|
function lossText(subject, text, originKnown, loss) {
|
|
1958
1972
|
switch (subject.kind) {
|
|
1959
1973
|
case "model": return `would lose the data of model "${text}"`;
|
|
1960
1974
|
case "field": return loss === "typeChange" ? `would change the type of field "${text}" and can change or lose its values` : `would lose the values of field "${text}"`;
|
|
1961
1975
|
case "enumValue": return `would lose enum value "${text}" from the data that holds it`;
|
|
1962
1976
|
case "valueObjectField": return `would lose the values of value object field "${text}"`;
|
|
1963
|
-
case "storage":
|
|
1977
|
+
case "storage": {
|
|
1978
|
+
const named = originKnown ? "which no model of the origin contract stores" : "named by its storage name because the origin contract is unknown";
|
|
1979
|
+
if (loss === "typeChange") return `would change the type of "${text}", ${named}, and can change or lose its values`;
|
|
1980
|
+
return originKnown ? `would lose the data in "${text}", ${named}` : `would lose the data in "${text}", ${named}; --delete loses that data`;
|
|
1981
|
+
}
|
|
1964
1982
|
}
|
|
1965
1983
|
}
|
|
1966
1984
|
/**
|
|
@@ -2155,6 +2173,7 @@ function dataLossQuestion(loss, contracts, edits = [], labels = [loss.label]) {
|
|
|
2155
2173
|
const lost = lossText(loss.subject, subject, contracts.originKnown, loss.loss);
|
|
2156
2174
|
const operations = [...new Set(labels)];
|
|
2157
2175
|
const advice = [
|
|
2176
|
+
...typeChangeNote(loss, contracts.canConvert),
|
|
2158
2177
|
...missingModel === void 0 ? [] : [modelRenameAdvice(missingModel, contracts)],
|
|
2159
2178
|
...loss.keepDataAdvice === void 0 ? [] : [loss.keepDataAdvice],
|
|
2160
2179
|
...keepData?.lead === void 0 ? [] : [keepData.lead],
|
|
@@ -4316,7 +4335,11 @@ async function loadContractSource(config, options = {}) {
|
|
|
4316
4335
|
*/
|
|
4317
4336
|
function appliedSummary(counts) {
|
|
4318
4337
|
const { migrations, planned, executed, spaces } = counts;
|
|
4319
|
-
return `Applied ${migrations} migration(s) (${executed < planned ? `${executed} of ${planned} operation(s);
|
|
4338
|
+
return `Applied ${migrations} migration(s) (${executed < planned ? `${executed} of ${planned} operation(s); ${skippedOperationsText(planned - executed)}` : `${executed} operation(s)`}) across ${spaces} contract space(s)`;
|
|
4339
|
+
}
|
|
4340
|
+
/** Why an apply ran fewer operations than it planned: the runner skipped those whose postcheck already held. */
|
|
4341
|
+
function skippedOperationsText(skipped) {
|
|
4342
|
+
return `the other ${skipped} had nothing to do, since their postchecks already held`;
|
|
4320
4343
|
}
|
|
4321
4344
|
/** The ledger as `read` gives it, or undefined when the read fails: the error it explains must not fail with it. */
|
|
4322
4345
|
async function readLedgerQuietly(read) {
|
|
@@ -7475,7 +7498,8 @@ async function runPlannerLeg(planner, migrations, frameworkComponents, contract,
|
|
|
7475
7498
|
})
|
|
7476
7499
|
})), fromContract, contract, 0),
|
|
7477
7500
|
temporaryValues: reportTemporaryValues(plannerResult.temporaryValues, contract),
|
|
7478
|
-
...ifDefined("namespaces", plannerResult.namespaces)
|
|
7501
|
+
...ifDefined("namespaces", plannerResult.namespaces),
|
|
7502
|
+
plannerWarnings: plannerResult.warnings ?? []
|
|
7479
7503
|
});
|
|
7480
7504
|
}
|
|
7481
7505
|
/**
|
|
@@ -7630,6 +7654,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7630
7654
|
});
|
|
7631
7655
|
if (!resolutionResult.ok) return notOk(resolutionResult.failure);
|
|
7632
7656
|
const warnings = [];
|
|
7657
|
+
const plannerWarnings = [];
|
|
7633
7658
|
const warnForks = (forks) => {
|
|
7634
7659
|
warnings.push(`The default origin ref '${forks.refName}' points at ${forks.refHash}, which already has a migration leading to ${forks.outgoingTo.join(", ")}. Planning from it forks the migration graph; pass --from to choose the origin explicitly.`);
|
|
7635
7660
|
};
|
|
@@ -7718,6 +7743,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7718
7743
|
operations: [],
|
|
7719
7744
|
emittedExtensionDirs,
|
|
7720
7745
|
...warnings.length > 0 ? { warnings } : {},
|
|
7746
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7721
7747
|
appliedStatements: [],
|
|
7722
7748
|
temporaryValues: [],
|
|
7723
7749
|
changedStorageEntities: [],
|
|
@@ -7796,6 +7822,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7796
7822
|
if (!answered.ok) return notOk(answered.failure);
|
|
7797
7823
|
const deltaLeg = plannedDelta === void 0 ? void 0 : answered.value.delta ?? plannedDelta.value;
|
|
7798
7824
|
const deletes = answered.value.deletes;
|
|
7825
|
+
plannerWarnings.push(...baselineLeg.value.plannerWarnings, ...deltaLeg?.plannerWarnings ?? []);
|
|
7799
7826
|
await writePlannedMigrationPackage(baselinePackageDir, null, fromHash, baselineTimestamp, baselineLeg.value);
|
|
7800
7827
|
if (deltaLeg === void 0) {
|
|
7801
7828
|
const statementsWithoutOperations = reportAppliedStatements(statements.map((statement) => ({
|
|
@@ -7815,6 +7842,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7815
7842
|
operations: baselineLeg.value.listedOps,
|
|
7816
7843
|
emittedExtensionDirs,
|
|
7817
7844
|
...warnings.length > 0 ? { warnings } : {},
|
|
7845
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7818
7846
|
pendingPlaceholders: true,
|
|
7819
7847
|
placeholderDirs: [baselineDir],
|
|
7820
7848
|
appliedStatements: [...statementsWithoutOperations, ...deletes],
|
|
@@ -7839,6 +7867,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7839
7867
|
emittedExtensionDirs,
|
|
7840
7868
|
...preview !== void 0 ? { preview } : {},
|
|
7841
7869
|
...warnings.length > 0 ? { warnings } : {},
|
|
7870
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7842
7871
|
appliedStatements: [...statementsWithoutOperations, ...deletes],
|
|
7843
7872
|
temporaryValues: baselineLeg.value.temporaryValues,
|
|
7844
7873
|
changedStorageEntities: changedStorageEntities(fromContract, toContract),
|
|
@@ -7864,6 +7893,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7864
7893
|
baselineOperations: baselineLeg.value.listedOps,
|
|
7865
7894
|
emittedExtensionDirs,
|
|
7866
7895
|
...warnings.length > 0 ? { warnings } : {},
|
|
7896
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7867
7897
|
pendingPlaceholders: true,
|
|
7868
7898
|
placeholderDirs: [...baselineLeg.value.hasPlaceholders ? [relative(cwd, baselinePackageDir)] : [], ...deltaLeg.hasPlaceholders ? [relative(cwd, deltaPackageDir)] : []],
|
|
7869
7899
|
appliedStatements: [...deltaLeg.appliedStatements, ...deletes],
|
|
@@ -7894,6 +7924,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7894
7924
|
emittedExtensionDirs,
|
|
7895
7925
|
...preview !== void 0 ? { preview } : {},
|
|
7896
7926
|
...warnings.length > 0 ? { warnings } : {},
|
|
7927
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7897
7928
|
appliedStatements: [...deltaLeg.appliedStatements, ...deletes],
|
|
7898
7929
|
temporaryValues: deltaLeg.temporaryValues,
|
|
7899
7930
|
...withNoOperationsReport(buildAutoBaselinePlanSummary(baselineOps.length, deltaOps.length, emittedExtensionDirs.length), deltaOps.length === 0, fromContract, toContract),
|
|
@@ -7909,6 +7940,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7909
7940
|
if (!answered.ok) return notOk(answered.failure);
|
|
7910
7941
|
const deltaLeg = answered.value.delta ?? plannedDelta.value;
|
|
7911
7942
|
const deletes = answered.value.deletes;
|
|
7943
|
+
plannerWarnings.push(...deltaLeg.plannerWarnings);
|
|
7912
7944
|
if (!deltaLeg.hasPlaceholders && deltaLeg.plannedOps.length === 0 && fromHash === toStorageHash) return ok({
|
|
7913
7945
|
ok: true,
|
|
7914
7946
|
noOp: true,
|
|
@@ -7917,6 +7949,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7917
7949
|
operations: [],
|
|
7918
7950
|
emittedExtensionDirs,
|
|
7919
7951
|
...warnings.length > 0 ? { warnings } : {},
|
|
7952
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7920
7953
|
appliedStatements: [...deltaLeg.appliedStatements, ...deletes],
|
|
7921
7954
|
temporaryValues: deltaLeg.temporaryValues,
|
|
7922
7955
|
changedStorageEntities: [],
|
|
@@ -7936,6 +7969,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7936
7969
|
operations: deltaLeg.listedOps,
|
|
7937
7970
|
emittedExtensionDirs,
|
|
7938
7971
|
...warnings.length > 0 ? { warnings } : {},
|
|
7972
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7939
7973
|
pendingPlaceholders: true,
|
|
7940
7974
|
placeholderDirs: [relative(cwd, packageDir)],
|
|
7941
7975
|
...fromDefaulted ? { fromDefaulted } : {},
|
|
@@ -7963,6 +7997,7 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
7963
7997
|
...preview !== void 0 ? { preview } : {},
|
|
7964
7998
|
...fromDefaulted ? { fromDefaulted } : {},
|
|
7965
7999
|
...warnings.length > 0 ? { warnings } : {},
|
|
8000
|
+
...plannerWarnings.length > 0 ? { plannerWarnings } : {},
|
|
7966
8001
|
appliedStatements: [...deltaLeg.appliedStatements, ...deletes],
|
|
7967
8002
|
temporaryValues: deltaLeg.temporaryValues,
|
|
7968
8003
|
...withNoOperationsReport(buildPlanSummary(plannedOps.length, emittedExtensionDirs.length), plannedOps.length === 0, fromContract, toContract),
|
|
@@ -8126,6 +8161,6 @@ async function executeRefListCommand(options) {
|
|
|
8126
8161
|
}
|
|
8127
8162
|
}
|
|
8128
8163
|
//#endregion
|
|
8129
|
-
export { refuseContractSpaceIntegrity as $, executeRefDeleteCommand as A, loadAggregateIntegrityViolations as B, executeDbSign as C, executeMigrationNewCommand as D, executeMigrateShowPlan as E, hasMigrationPath as F, looksLikePath as G, loadContractSource as H, isStatementVerb as I, matchConsents as J, mapContractAtError as K, labelsText as L, executeRefSetCommand as M, findPackageByDirPath as N, executeMigrationPlanCommand as O, formatSourceDiagnostic as P, readMigrationRefs as Q, listRefsByContractHash as R, executeDbInit as S,
|
|
8164
|
+
export { refuseContractSpaceIntegrity as $, executeRefDeleteCommand as A, loadAggregateIntegrityViolations as B, executeDbSign as C, withWarningFindings as Ct, executeMigrationNewCommand as D, executeMigrateShowPlan as E, hasMigrationPath as F, looksLikePath as G, loadContractSource as H, isStatementVerb as I, matchConsents as J, mapContractAtError as K, labelsText as L, executeRefSetCommand as M, findPackageByDirPath as N, executeMigrationPlanCommand as O, formatSourceDiagnostic as P, readMigrationRefs as Q, listRefsByContractHash as R, executeDbInit as S, validateLoadedContract as St, executeDbVerify as T, loadContractSourceWithStack as U, loadContractRawSafely as V, loadContractSpaceAggregateForCli as W, planEverySpace as X, migrationSpaceListEntriesFromAggregate as Y, preflightRefAdvancement as Z, deriveStatusEdgeAnnotations as _, skippedOperationsText as _t, advanceRefSafely as a, requireDatabaseForLiveMarkerUse as at, enumerateCheckSpaces as b, statusForMigrationHash as bt, buildContractSpaceAggregate as c, resolveContractRefToSnapshot as ct, buildRefAdvancementFields as d, resolveStatements as dt, refuseDeclaredExtensionTargetMismatch as et, checkSingleTarget as f, resolveToForPlan as ft, createControlClient as g, runMigrationList as gt, convertAndDelete as h, runMigrationCheck as ht, RECORDED_OR_EMPTY_CONTRACT_REF_FORMS as i, renamedAndDeleted as it, executeRefListCommand as j, executeRefAdvancement as k, buildMigrationSpaceGraphEntries as l, resolveFromForPlan as lt, contractValidationMeta as m, runContractSpaceSeedPhase as mt, NO_REF_ADVANCEMENT as n, refusePackageCorruptionOnAggregate as nt, appContractStandInFromIdentity as o, resolveAppTargetPath as ot, computeRefAdvancementName as p, retryCommandFor as pt, mapIntegrityViolations as q, RECORDED_CONTRACT_REF_FORMS as r, refuseUnknownInvariants as rt, appliedHashesFromLedger as s, resolveContractRef$1 as st, ALL_CONTRACT_REF_FORMS as t, refuseMissingInvariantPath as tt, buildReadAggregate as u, resolveMigrationRef as ut, disposeEmitQueue as v, snapshotVerifierFor as vt, executeDbUpdate as w, executeContractEmit as x, toDeclaredExtensionsFromRaw as xt, enrichContract as y, sourceWarningDiagnostic as yt, liveMarkerUse as z };
|
|
8130
8165
|
|
|
8131
|
-
//# sourceMappingURL=ref-
|
|
8166
|
+
//# sourceMappingURL=ref-DH9J_oNY-CipATbYR.mjs.map
|