@prisma/orm-toolchain 8.0.0-rc.13-dev.12 → 8.0.0-rc.14

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.
@@ -11,6 +11,7 @@ import { a as emit } from "./index-DG1D9rrd.mjs";
11
11
  import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-C_e9y2vI.mjs";
12
12
  import "./metadata-BtscDay2.mjs";
13
13
  import "./package-N9PPdFV_.mjs";
14
+ import "@prisma/orm-framework/utils/structured-error";
14
15
  import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, OperationPreview, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
15
16
  import { Result } from "@prisma/orm-framework/utils/result";
16
17
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;iBAIzG,wBAAwB,iBAAiB;;;iBAGzC,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAsBP,oBAAoB,SAAS,qBAAqB,eAAe,2BAA2B,QAAQ;;;UAG3G;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;;;;KAUN,sCAAsC;WAChC;WACA;;WAEA;WACA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;;;;;;;;;;;;;;iBAgBhI,uBAAuB,qBAAqB,sBAA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B;WAChC;WACA;;;;;;;;;;iBAUM,wBAAwB;WAC9B;WACA,cAAc;WACd;WACA;WACA,QAAQ,KAAK;IACpB,QAAQ,OAAO,YAAY;iBACd,sBAAsB,iBAAiB,uBAAuB,cAAc,cAAc,YAAY,aAAa;EAClI;EACA;;;;;;;iBAOe,0BAA0B;WAChC;WACA;WACA;WACA,YAAY;WACZ;WACA;IACP,QAAQ,OAAO,sBAAsB;;;;;iBAKxB,iBAAiB;WACvB;WACA;WACA;WACA;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;;;iBAGzD,iBAAiB"}
1
+ {"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;iBAIzG,wBAAwB,iBAAiB;;;iBAGzC,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAsBP,oBAAoB,SAAS,qBAAqB,eAAe,2BAA2B,QAAQ;;;UAG3G;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;;;;KAUN,sCAAsC;WAChC;WACA;;WAEA;WACA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;;;;;;;;;;;;;;iBAgBhI,uBAAuB,qBAAqB,sBAAsB,wBAAwB;;;;;;;;UAQjG,qBAAqB,0BAA0B;WAC9C,UAAU;WACV;WACA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;WACA,QAAQ,KAAK;IACpB,QAAQ,OAAO,YAAY;iBACd,sBAAsB,iBAAiB,uBAAuB,cAAc,cAAc,YAAY,aAAa;EAClI;EACA;;;;;;;iBAOe,0BAA0B;WAChC;WACA;WACA;WACA,YAAY;WACZ;WACA;IACP,QAAQ,OAAO,sBAAsB;;;;;iBAKxB,iBAAiB;WACvB;WACA;WACA;WACA;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;;;iBAGzD,iBAAiB"}
@@ -1,2 +1,2 @@
1
- import { At as resolveMigrationRef, Ct as refusePackageCorruptionOnAggregate, Dt as resolveContractRef$1, Ft as runMigrationList, G as executeDbVerify, H as executeContractEmit, J as executeMigrationPlanCommand, K as executeMigrateShowPlan, Nt as runContractSpaceSeedPhase, Ot as resolveContractRefToSnapshot, Pt as runMigrationCheck, Q as executeRefSetCommand, Rt as statusForMigrationHash, St as refuseMissingInvariantPath, U as executeDbInit, W as executeDbUpdate, X as executeRefDeleteCommand, Y as executeRefAdvancement, Z as executeRefListCommand, _ as disposeEmitQueue, _t as readMigrationRefs, a as appContractStandInFromIdentity, at as loadContractSource, bt as refuseDeclaredExtensionTargetMismatch, c as buildMigrationSpaceGraphEntries, d as checkSingleTarget, dt as mapIntegrityViolations, g as deriveStatusEdgeAnnotations, h as createControlClient, ht as preflightRefAdvancement, i as advanceRefSafely, it as loadContractRawSafely, jt as resolveToForPlan, kt as resolveFromForPlan, l as buildReadAggregate, lt as mapCaughtMigrationError, m as computeRefAdvancementName, mt as originHashForStatus, nt as listRefsByContractHash, o as appliedHashesFromLedger, pt as migrationSpaceListEntriesFromAggregate, q as executeMigrationNewCommand, r as NO_REF_ADVANCEMENT, rt as loadAggregateIntegrityViolations, s as buildContractSpaceAggregate, st as loadContractSpaceAggregateForCli, tt as hasMigrationPath, u as buildRefAdvancementFields, ut as mapContractAtError, v as enrichContract, wt as refuseUnknownInvariants, xt as refuseMarkerOutsideGraph, y as enumerateCheckSpaces, yt as refuseContractSpaceIntegrity } from "./ref-Qev9k5zj-BMvIT-te.mjs";
1
+ import { $ as executeRefListCommand, At as resolveContractRefToSnapshot, Ct as refuseMarkerOutsideGraph, Et as refuseUnknownInvariants, Ft as runContractSpaceSeedPhase, G as executeDbInit, It as runMigrationCheck, J as executeMigrateShowPlan, K as executeDbUpdate, Lt as runMigrationList, Mt as resolveMigrationRef, Nt as resolveToForPlan, Q as executeRefDeleteCommand, St as refuseDeclaredExtensionTargetMismatch, Tt as refusePackageCorruptionOnAggregate, Vt as statusForMigrationHash, W as executeContractEmit, X as executeMigrationPlanCommand, Y as executeMigrationNewCommand, Z as executeRefAdvancement, _ as createControlClient, _t as preflightRefAdvancement, a as NO_REF_ADVANCEMENT, at as loadAggregateIntegrityViolations, b as enrichContract, c as appliedHashesFromLedger, d as buildReadAggregate, dt as mapCaughtMigrationError, et as executeRefSetCommand, f as buildRefAdvancementFields, ft as mapContractAtError, g as computeRefAdvancementName, gt as originHashForStatus, ht as migrationSpaceListEntriesFromAggregate, it as listRefsByContractHash, jt as resolveFromForPlan, kt as resolveContractRef$1, l as buildContractSpaceAggregate, lt as loadContractSpaceAggregateForCli, o as advanceRefSafely, ot as loadContractRawSafely, p as checkSingleTarget, pt as mapIntegrityViolations, q as executeDbVerify, rt as hasMigrationPath, s as appContractStandInFromIdentity, st as loadContractSource, u as buildMigrationSpaceGraphEntries, v as deriveStatusEdgeAnnotations, wt as refuseMissingInvariantPath, x as enumerateCheckSpaces, xt as refuseContractSpaceIntegrity, y as disposeEmitQueue, yt as readMigrationRefs } from "./ref-EXO_pTtx-DOX1lJKh.mjs";
2
2
  export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapCaughtMigrationError, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, originHashForStatus, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
@@ -34,7 +34,7 @@ import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
34
34
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
35
35
  import { abortable } from "@prisma/orm-framework/utils/abortable";
36
36
  import { resolve as resolve$1 } from "node:path";
37
- //#region ../../../1-framework/3-tooling/cli/dist/ref-Qev9k5zj.mjs
37
+ //#region ../../../1-framework/3-tooling/cli/dist/ref-EXO_pTtx.mjs
38
38
  /**
39
39
  * The typed remediation the CLI attaches to its own errors and findings.
40
40
  * Constructors live here rather than in any library the CLI calls: naming a
@@ -1792,6 +1792,14 @@ function diagnosticLocation(diagnostic) {
1792
1792
  character: start && typeof start["column"] === "number" ? start["column"] : void 0
1793
1793
  };
1794
1794
  }
1795
+ /** A file the source names by its absolute path is shown relative to the working directory, as a user would type it. */
1796
+ function displayLocation(location, cwd) {
1797
+ const { sourceId } = location;
1798
+ return cwd !== void 0 && sourceId !== void 0 && isAbsolute(sourceId) ? {
1799
+ ...location,
1800
+ sourceId: relative(cwd, sourceId)
1801
+ } : location;
1802
+ }
1795
1803
  function formatLocation({ sourceId, line, character }) {
1796
1804
  if (sourceId === void 0) return void 0;
1797
1805
  return line !== void 0 && character !== void 0 ? `${sourceId}:${line}:${character}` : sourceId;
@@ -1813,15 +1821,15 @@ function formatSourceDiagnostic(raw) {
1813
1821
  * `where`, so the summary starts with the location. A source code that is not
1814
1822
  * yet dotted is wrapped as `CONTRACT.SOURCE_DIAGNOSTIC` and named in the summary.
1815
1823
  */
1816
- function sourceDiagnosticToFinding(raw) {
1824
+ function sourceDiagnosticToFinding(raw, severity, cwd) {
1817
1825
  if (!isRecord$2(raw)) return void 0;
1818
1826
  const code = typeof raw["code"] === "string" ? raw["code"] : "diagnostic";
1819
1827
  const message = typeof raw["message"] === "string" ? raw["message"] : "";
1820
- const location = diagnosticLocation(raw);
1828
+ const location = displayLocation(diagnosticLocation(raw), cwd);
1821
1829
  const formatted = formatLocation(location);
1822
1830
  const locatedSummary = (text) => formatted === void 0 ? text : `${formatted} ${text}`;
1823
1831
  const finding = {
1824
- severity: "error",
1832
+ severity,
1825
1833
  nextActions: [],
1826
1834
  ...ifDefined("where", location.sourceId === void 0 ? void 0 : {
1827
1835
  path: location.sourceId,
@@ -1839,14 +1847,28 @@ function sourceDiagnosticToFinding(raw) {
1839
1847
  meta: { code }
1840
1848
  };
1841
1849
  }
1842
- function sourceDiagnosticsToFindings(diagnostics) {
1850
+ function sourceDiagnosticsToFindings(diagnostics, cwd) {
1843
1851
  const findings = [];
1844
1852
  for (const raw of diagnostics) {
1845
- const finding = sourceDiagnosticToFinding(raw);
1853
+ const finding = sourceDiagnosticToFinding(raw, "error", cwd);
1846
1854
  if (finding !== void 0) findings.push(finding);
1847
1855
  }
1848
1856
  return findings;
1849
1857
  }
1858
+ /**
1859
+ * A warning the contract source reported, as a `warn` diagnostic of the command's result: its summary starts with the location, `where` names the file and line, and `meta` keeps the source's own code and its span, which carries the column.
1860
+ */
1861
+ function sourceWarningDiagnostic(raw, cwd) {
1862
+ const finding = sourceDiagnosticToFinding(raw, "warn", cwd);
1863
+ if (finding === void 0) return void 0;
1864
+ return {
1865
+ ...finding,
1866
+ meta: {
1867
+ ...finding.meta,
1868
+ ...ifDefined("span", raw.span)
1869
+ }
1870
+ };
1871
+ }
1850
1872
  function diagnosticLocationSuffix(diagnostic) {
1851
1873
  const formatted = formatLocation(diagnosticLocation(diagnostic));
1852
1874
  return formatted === void 0 ? "" : ` (${formatted})`;
@@ -1871,7 +1893,7 @@ function failedWith(error) {
1871
1893
  * Checks the shape of what `load` returned. A source may be plain JavaScript,
1872
1894
  * so its declared type is not trusted.
1873
1895
  */
1874
- function validateProviderResult(providerResult) {
1896
+ function validateProviderResult(providerResult, cwd) {
1875
1897
  const raw = providerResult;
1876
1898
  if (!isRecord$2(raw) || typeof raw["ok"] !== "boolean") return failedWith(failedToResolveContractSource("Contract source provider returned malformed result shape.", "Ensure contract.source.load resolves to ok(Contract) or notOk({ summary, diagnostics })."));
1877
1899
  if (providerResult.ok) {
@@ -1887,7 +1909,7 @@ function validateProviderResult(providerResult) {
1887
1909
  diagnostics: failure["diagnostics"],
1888
1910
  issues: mapDiagnosticsToIssues(failure["diagnostics"]),
1889
1911
  ...ifDefined("providerMeta", failure["meta"])
1890
- }, void 0, sourceDiagnosticsToFindings(failure["diagnostics"])),
1912
+ }, void 0, sourceDiagnosticsToFindings(failure["diagnostics"], cwd)),
1891
1913
  sourceDiagnostics: providerResult.failure
1892
1914
  });
1893
1915
  }
@@ -1921,7 +1943,7 @@ async function loadContractSourceWithStack(inputs) {
1921
1943
  if (signal.aborted || isRecord$2(error) && error["name"] === "AbortError") throw error;
1922
1944
  return failedWith(failedToResolveContractSource(error instanceof Error ? error.message : String(error), "Ensure contract.source.load resolves to ok(Contract) or returns structured diagnostics.", void 0, error));
1923
1945
  }
1924
- return validateProviderResult(providerResult);
1946
+ return validateProviderResult(providerResult, inputs.cwd);
1925
1947
  }
1926
1948
  /** @throws {CliStructuredError} `CONFIG.CONTRACT_MISSING` when the config has no contract section */
1927
1949
  function requireContractConfig(config) {
@@ -1946,6 +1968,7 @@ async function loadContractSource(config, options = {}) {
1946
1968
  const loaded = await loadContractSourceWithStack({
1947
1969
  stack: createControlStack(config),
1948
1970
  source: contractConfig.source,
1971
+ cwd: void 0,
1949
1972
  ...ifDefined("signal", options.signal),
1950
1973
  ...ifDefined("reportWarning", options.onWarning)
1951
1974
  });
@@ -2740,6 +2763,7 @@ var ControlClientImpl = class {
2740
2763
  const loaded = await loadContractSourceWithStack({
2741
2764
  stack: this.stack,
2742
2765
  source: contractConfig.source,
2766
+ cwd: void 0,
2743
2767
  reportWarning: (diagnostic) => {
2744
2768
  sourceWarnings.push(diagnostic);
2745
2769
  }
@@ -3144,7 +3168,7 @@ function endSpan(onProgress, spanId, outcome) {
3144
3168
  * @throws {DOMException} `AbortError` if cancelled via `signal`
3145
3169
  */
3146
3170
  async function executeContractEmit(options, dependencies = defaultContractEmitDependencies) {
3147
- const { config, projectDir, outputPath, signal = new AbortController().signal, onProgress } = options;
3171
+ const { config, cwd, projectDir, outputPath, signal = new AbortController().signal, onProgress } = options;
3148
3172
  const unlessAborted = abortable(signal);
3149
3173
  const contractConfig = requireContractConfig(config);
3150
3174
  const effectiveOutput = outputPath !== void 0 ? join(outputPath, "contract.json") : contractConfig.output;
@@ -3168,6 +3192,7 @@ async function executeContractEmit(options, dependencies = defaultContractEmitDe
3168
3192
  stack,
3169
3193
  source: contractConfig.source,
3170
3194
  signal,
3195
+ cwd,
3171
3196
  reportWarning: (diagnostic) => {
3172
3197
  sourceWarnings.push(diagnostic);
3173
3198
  }
@@ -5177,6 +5202,6 @@ async function executeRefListCommand(options) {
5177
5202
  }
5178
5203
  }
5179
5204
  //#endregion
5180
- export { findPackageByDirPath as $, errorHashMismatch as A, resolveMigrationRef as At, errorTargetMismatch as B, toDeclaredExtensionsFromRaw as Bt, errorContractArgConflict as C, refusePackageCorruptionOnAggregate as Ct, errorDestructiveChanges as D, resolveContractRef$1 as Dt, errorDatabaseConnectionRequired as E, resolveAppTargetPath as Et, errorNoMigrations as F, runMigrationList as Ft, executeDbVerify as G, executeContractEmit as H, errorPathUnreachable as I, sanitizeErrorMessage as It, executeMigrationPlanCommand as J, executeMigrateShowPlan as K, errorRunnerFailed as L, snapshotVerifierFor as Lt, errorMarkerMissing as M, runCommandAction as Mt, errorMigrationPackageNotFound as N, runContractSpaceSeedPhase as Nt, errorDriverRequired as O, resolveContractRefToSnapshot as Ot, errorMigrationPlanningFailed as P, runMigrationCheck as Pt, executeRefSetCommand as Q, errorRuntime as R, statusForMigrationHash as Rt, errorConsentPlanMismatch as S, refuseMissingInvariantPath as St, errorContractValidationFailed as T, requireLiveDatabase as Tt, executeDbInit as U, errorUnexpected as V, validateLoadedContract as Vt, executeDbUpdate as W, executeRefDeleteCommand as X, executeRefAdvancement as Y, executeRefListCommand as Z, disposeEmitQueue as _, readMigrationRefs as _t, appContractStandInFromIdentity as a, loadContractSource as at, errorAdvanceRefArgConflict as b, refuseDeclaredExtensionTargetMismatch as bt, buildMigrationSpaceGraphEntries as c, looksLikePath as ct, checkSingleTarget as d, mapIntegrityViolations as dt, formatSourceDiagnostic as et, chooseAction as f, maskConnectionUrl as ft, deriveStatusEdgeAnnotations as g, readContractEnvelope as gt, createControlClient as h, preflightRefAdvancement as ht, advanceRefSafely as i, loadContractRawSafely as it, errorLegendHumanOnly as j, resolveToForPlan as jt, errorFileNotFound as k, resolveFromForPlan as kt, buildReadAggregate as l, mapCaughtMigrationError as lt, computeRefAdvancementName as m, originHashForStatus as mt, ERROR_CODE_DESTRUCTIVE_CHANGES as n, listRefsByContractHash as nt, appliedHashesFromLedger as o, loadContractSourceWithStack as ot, closeQuietly as p, migrationSpaceListEntriesFromAggregate as pt, executeMigrationNewCommand as q, NO_REF_ADVANCEMENT as r, loadAggregateIntegrityViolations as rt, buildContractSpaceAggregate as s, loadContractSpaceAggregateForCli as st, CliStructuredError$1 as t, hasMigrationPath as tt, buildRefAdvancementFields as u, mapContractAtError as ut, enrichContract as v, redactUrlCredentials as vt, errorContractConfigMissing as w, refuseUnknownInvariants as wt, errorConfigValidation$1 as x, refuseMarkerOutsideGraph as xt, enumerateCheckSpaces as y, refuseContractSpaceIntegrity as yt, errorTargetMigrationNotSupported as z, targetSupportsMigrations as zt };
5205
+ export { executeRefListCommand as $, errorDriverRequired as A, resolveContractRefToSnapshot as At, errorRuntime as B, sourceWarningDiagnostic as Bt, errorConfigValidation$1 as C, refuseMarkerOutsideGraph as Ct, errorContractValidationFailed as D, requireLiveDatabase as Dt, errorContractConfigMissing as E, refuseUnknownInvariants as Et, errorMigrationPackageNotFound as F, runContractSpaceSeedPhase as Ft, executeDbInit as G, errorTargetMismatch as H, targetSupportsMigrations as Ht, errorMigrationPlanningFailed as I, runMigrationCheck as It, executeMigrateShowPlan as J, executeDbUpdate as K, errorNoMigrations as L, runMigrationList as Lt, errorHashMismatch as M, resolveMigrationRef as Mt, errorLegendHumanOnly as N, resolveToForPlan as Nt, errorDatabaseConnectionRequired as O, resolveAppTargetPath as Ot, errorMarkerMissing as P, runCommandAction as Pt, executeRefDeleteCommand as Q, errorPathUnreachable as R, sanitizeErrorMessage as Rt, errorAdvanceRefArgConflict as S, refuseDeclaredExtensionTargetMismatch as St, errorContractArgConflict as T, refusePackageCorruptionOnAggregate as Tt, errorUnexpected as U, toDeclaredExtensionsFromRaw as Ut, errorTargetMigrationNotSupported as V, statusForMigrationHash as Vt, executeContractEmit as W, validateLoadedContract as Wt, executeMigrationPlanCommand as X, executeMigrationNewCommand as Y, executeRefAdvancement as Z, createControlClient as _, preflightRefAdvancement as _t, NO_REF_ADVANCEMENT as a, loadAggregateIntegrityViolations as at, enrichContract as b, redactUrlCredentials as bt, appliedHashesFromLedger as c, loadContractSourceWithStack as ct, buildReadAggregate as d, mapCaughtMigrationError as dt, executeRefSetCommand as et, buildRefAdvancementFields as f, mapContractAtError as ft, computeRefAdvancementName as g, originHashForStatus as gt, closeQuietly as h, migrationSpaceListEntriesFromAggregate as ht, ERROR_CODE_DESTRUCTIVE_CHANGES as i, listRefsByContractHash as it, errorFileNotFound as j, resolveFromForPlan as jt, errorDestructiveChanges as k, resolveContractRef$1 as kt, buildContractSpaceAggregate as l, loadContractSpaceAggregateForCli as lt, chooseAction as m, maskConnectionUrl as mt, CliStructuredError$1 as n, formatSourceDiagnostic as nt, advanceRefSafely as o, loadContractRawSafely as ot, checkSingleTarget as p, mapIntegrityViolations as pt, executeDbVerify as q, DB_UPDATE_POLICY as r, hasMigrationPath as rt, appContractStandInFromIdentity as s, loadContractSource as st, ActionableCliError as t, findPackageByDirPath as tt, buildMigrationSpaceGraphEntries as u, looksLikePath as ut, deriveStatusEdgeAnnotations as v, readContractEnvelope as vt, errorConsentPlanMismatch as w, refuseMissingInvariantPath as wt, enumerateCheckSpaces as x, refuseContractSpaceIntegrity as xt, disposeEmitQueue as y, readMigrationRefs as yt, errorRunnerFailed as z, snapshotVerifierFor as zt };
5181
5206
 
5182
- //# sourceMappingURL=ref-Qev9k5zj-BMvIT-te.mjs.map
5207
+ //# sourceMappingURL=ref-EXO_pTtx-DOX1lJKh.mjs.map