@prisma/orm-toolchain 8.0.0-rc.16-dev.7 → 8.0.0-rc.16-dev.8
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/{aggregate-BGdw05Nj.d.mts → aggregate-C23h_Ybm.d.mts} +29 -21
- package/dist/{aggregate-BGdw05Nj.d.mts.map → aggregate-C23h_Ybm.d.mts.map} +1 -1
- package/dist/{aggregate-CG8Nfsg1.mjs → aggregate-DlfOyErc.mjs} +15 -2
- package/dist/aggregate-DlfOyErc.mjs.map +1 -0
- package/dist/{caught-errors-DHRx2eml-Az6yWv1r.mjs → caught-errors-HFQjjQVE-b_GDV-6J.mjs} +42 -4
- package/dist/caught-errors-HFQjjQVE-b_GDV-6J.mjs.map +1 -0
- package/dist/cli.mjs +153 -124
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +31 -50
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +2 -2
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/cli__control-api__testing.mjs +2 -0
- package/dist/cli__control-api__testing.mjs.map +1 -1
- package/dist/cli__migration-cli.mjs +1 -1
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/{db-sign-DqskX43K-CtEwW2Y6.d.mts → db-sign-BPf9SzzX-CwOFPxoZ.d.mts} +85 -70
- package/dist/db-sign-BPf9SzzX-CwOFPxoZ.d.mts.map +1 -0
- package/dist/migration-tools.d.mts +1 -1
- package/dist/migration-tools.mjs +1 -1
- package/dist/migration-tools__aggregate.d.mts +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/{ref-QYB51IgO-ywgKx10n.mjs → ref-Cc_CTagE-C070Ym7p.mjs} +657 -227
- package/dist/ref-Cc_CTagE-C070Ym7p.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +13 -13
- package/dist/aggregate-CG8Nfsg1.mjs.map +0 -1
- package/dist/caught-errors-DHRx2eml-Az6yWv1r.mjs.map +0 -1
- package/dist/db-sign-DqskX43K-CtEwW2Y6.d.mts.map +0 -1
- package/dist/ref-QYB51IgO-ywgKx10n.mjs.map +0 -1
|
@@ -2,7 +2,7 @@ import { n as SnapshotContentVerifier } from "./contract-snapshot-store-Bok5nQYi
|
|
|
2
2
|
import "./contract-snapshot-store-DrIwu5pn.mjs";
|
|
3
3
|
import "./ref-resolution-BPhR-kta.mjs";
|
|
4
4
|
import { CliStructuredError as CliStructuredError$2 } from "@prisma/orm-framework/errors/control";
|
|
5
|
-
import { ControlAdapterDescriptor, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyDescriptor, ControlFamilyInstance, ControlTargetDescriptor, CoreSchemaView, MarkerHashes, MigrationPlanOperation, MigrationPlannerConflict, MigrationStatementJson, OperationPreview, SpaceSignature, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
5
|
+
import { ControlAdapterDescriptor, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyDescriptor, ControlFamilyInstance, ControlTargetDescriptor, CoreSchemaView, MarkerHashes, MigrationAccessChange, MigrationOperationSubject, MigrationPlanOperation, MigrationPlanSubjects, MigrationPlannerConflict, MigrationStatementJson, MigrationSubjectJson, OperationPreview, SpaceSignature, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
6
6
|
import "@prisma/orm-framework/errors/execution";
|
|
7
7
|
import "@prisma/orm-framework/errors/migration";
|
|
8
8
|
import { ImportSpecifierResolver } from "@prisma/orm-framework/components/emission";
|
|
@@ -13,7 +13,7 @@ import { Contract, ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-f
|
|
|
13
13
|
import "@prisma/cli-engine/protocol";
|
|
14
14
|
import { ContractSourceDiagnostic, ContractSourceDiagnostics, ContractSourceProvider, PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
|
|
15
15
|
import { AuthoringPslBlockDescriptorNamespace } from "@prisma/orm-framework/components/authoring";
|
|
16
|
-
//#region ../../../1-framework/3-tooling/cli/dist/db-sign-
|
|
16
|
+
//#region ../../../1-framework/3-tooling/cli/dist/db-sign-BPf9SzzX.d.mts
|
|
17
17
|
//#region src/control-api/operations/db-verify.d.ts
|
|
18
18
|
/**
|
|
19
19
|
* Inputs for the aggregate `db verify` operation.
|
|
@@ -118,30 +118,75 @@ interface RenderContractDtsFailure {
|
|
|
118
118
|
}
|
|
119
119
|
type RenderContractDtsResult = Result<RenderContractDtsSuccess, RenderContractDtsFailure>;
|
|
120
120
|
//#endregion
|
|
121
|
-
//#region src/control-api/statements/report-applied-statements.d.ts
|
|
122
|
-
/**
|
|
123
|
-
* A statement a plan applied, as the CLI reports it: the statement as JSON output writes it, the
|
|
124
|
-
* positions of its operations in the result's `operations`, and its description.
|
|
125
|
-
*/
|
|
126
|
-
interface AppliedStatementReport {
|
|
127
|
-
readonly statement: MigrationStatementJson;
|
|
128
|
-
readonly operationIndexes: readonly number[];
|
|
129
|
-
/** The statement in domain names, for example `rename model "Profile" to "User"`. */
|
|
130
|
-
readonly description: string;
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
121
|
//#region src/control-api/statements/statement-text.d.ts
|
|
134
122
|
/** The verbs a statement can have. */
|
|
135
|
-
type StatementVerb = 'rename';
|
|
123
|
+
type StatementVerb = 'rename' | 'delete' | 'allow';
|
|
136
124
|
/**
|
|
137
125
|
* A statement as the user wrote it, before it is parsed: its verb and its text, for example
|
|
138
|
-
* `{ verb: 'rename', text: 'Profile:User' }` for `--rename Profile:User
|
|
126
|
+
* `{ verb: 'rename', text: 'Profile:User' }` for `--rename Profile:User` or
|
|
127
|
+
* `{ verb: 'delete', text: 'Legacy' }` for `--delete Legacy`.
|
|
139
128
|
*/
|
|
140
129
|
interface StatementText {
|
|
141
130
|
readonly verb: StatementVerb;
|
|
142
131
|
readonly text: string;
|
|
143
132
|
}
|
|
144
133
|
//#endregion
|
|
134
|
+
//#region src/control-api/statements/parse-consent.d.ts
|
|
135
|
+
/** A verb whose statement consents to what a plan does to its subject. */
|
|
136
|
+
type ConsentVerb = 'delete' | 'allow';
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/control-api/statements/plan-questions.d.ts
|
|
139
|
+
/** A verb a plan question accepts. */
|
|
140
|
+
type PlanQuestionVerb = 'rename' | ConsentVerb;
|
|
141
|
+
/**
|
|
142
|
+
* What a command asks about one operation of a plan: the question, its subject written as the
|
|
143
|
+
* statement names it, and the verbs that answer it. A command hands it to its prompt.
|
|
144
|
+
*/
|
|
145
|
+
interface PlanQuestion {
|
|
146
|
+
readonly question: string;
|
|
147
|
+
readonly subject: string;
|
|
148
|
+
readonly verbs: readonly PlanQuestionVerb[];
|
|
149
|
+
readonly forms: {
|
|
150
|
+
readonly rename?: string;
|
|
151
|
+
};
|
|
152
|
+
readonly validate: (verb: PlanQuestionVerb, text: string) => string | undefined;
|
|
153
|
+
}
|
|
154
|
+
interface PlanAnswer {
|
|
155
|
+
readonly verb: PlanQuestionVerb;
|
|
156
|
+
readonly text: string;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Asks every question at once and returns one answer per question, in question order, with a verb
|
|
160
|
+
* and text the question accepts. To refuse, throw. It is called at least once per apply, with an
|
|
161
|
+
* empty list when nothing is in question, including under `acceptDataLoss: true`; return `[]`
|
|
162
|
+
* then.
|
|
163
|
+
*/
|
|
164
|
+
type AnswerPlanQuestions = (questions: readonly PlanQuestion[]) => Promise<readonly PlanAnswer[]>;
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/control-api/statements/report-applied-statements.d.ts
|
|
167
|
+
/** A delete or allow statement in JSON output: the subject whose data or access it consents to. */
|
|
168
|
+
interface ConsentStatementJson {
|
|
169
|
+
readonly kind: ConsentVerb;
|
|
170
|
+
readonly subject: MigrationSubjectJson;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A statement a plan applied, as the CLI reports it: its verb, the statement as JSON output writes
|
|
174
|
+
* it, the positions of its operations in the result's `operations`, and its description.
|
|
175
|
+
*/
|
|
176
|
+
type AppliedStatementReport = {
|
|
177
|
+
readonly verb: 'rename';
|
|
178
|
+
readonly statement: MigrationStatementJson;
|
|
179
|
+
readonly operationIndexes: readonly number[];
|
|
180
|
+
/** The statement in domain names, for example `rename model "Profile" to "User"`. */
|
|
181
|
+
readonly description: string;
|
|
182
|
+
} | {
|
|
183
|
+
readonly verb: ConsentVerb;
|
|
184
|
+
readonly statement: ConsentStatementJson;
|
|
185
|
+
readonly operationIndexes: readonly number[];
|
|
186
|
+
/** The statement as its question named the subject, for example `delete model "Legacy"`. */
|
|
187
|
+
readonly description: string;
|
|
188
|
+
};
|
|
189
|
+
//#endregion
|
|
145
190
|
//#region src/control-api/types.d.ts
|
|
146
191
|
/**
|
|
147
192
|
* Options for creating a control client.
|
|
@@ -290,24 +335,10 @@ interface DbUpdateOptions {
|
|
|
290
335
|
* The type is driver-specific (e.g., string URL for Postgres).
|
|
291
336
|
*/
|
|
292
337
|
readonly connection?: unknown;
|
|
293
|
-
/**
|
|
294
|
-
* When true, allows applying plans that contain destructive operations
|
|
295
|
-
* (e.g., DROP TABLE, DROP COLUMN, ALTER TYPE).
|
|
296
|
-
* When false (default), the operation returns a failure if the plan
|
|
297
|
-
* includes destructive operations, which `db update` turns into its consent
|
|
298
|
-
* prompt: the user types the database name, or passes `--confirm <database>`
|
|
299
|
-
* where there is nobody to ask.
|
|
300
|
-
*/
|
|
338
|
+
/** Consents to every operation that would lose data, without asking. */
|
|
301
339
|
readonly acceptDataLoss?: boolean;
|
|
302
|
-
/**
|
|
303
|
-
|
|
304
|
-
* named, identified by that refusal's `planHash`. The apply recomputes its
|
|
305
|
-
* plan and refuses with `CONSENT_PLAN_MISMATCH` when the fresh plan is not
|
|
306
|
-
* the one that was consented to.
|
|
307
|
-
*/
|
|
308
|
-
readonly consent?: {
|
|
309
|
-
readonly planHash: string;
|
|
310
|
-
};
|
|
340
|
+
/** Consents to every operation that would widen who can read or write rows, without asking. */
|
|
341
|
+
readonly acceptAccessWidening?: boolean;
|
|
311
342
|
/**
|
|
312
343
|
* On-disk migrations directory. Always required — every `db update`
|
|
313
344
|
* routes through the per-space flow, which reads on-disk
|
|
@@ -316,11 +347,19 @@ interface DbUpdateOptions {
|
|
|
316
347
|
*/
|
|
317
348
|
readonly migrationsDir: string;
|
|
318
349
|
/**
|
|
319
|
-
* The statements as the user wrote them, in the order given.
|
|
320
|
-
* against the contract the database marker names, read from the
|
|
321
|
-
* store, and the destination contract
|
|
350
|
+
* The statements as the user wrote them, in the order given. A `rename`
|
|
351
|
+
* resolves against the contract the database marker names, read from the
|
|
352
|
+
* snapshot store, and the destination contract; a `delete` or `allow`
|
|
353
|
+
* answers the question about the subject it names.
|
|
322
354
|
*/
|
|
323
355
|
readonly statements?: readonly StatementText[];
|
|
356
|
+
/**
|
|
357
|
+
* Asks, before an apply, what each operation that would lose data means and
|
|
358
|
+
* whether each that would widen who can read or write rows may run, for the
|
|
359
|
+
* questions no statement answered. The `db update` command asks through its
|
|
360
|
+
* prompt.
|
|
361
|
+
*/
|
|
362
|
+
readonly answerQuestions: AnswerPlanQuestions;
|
|
324
363
|
/** Optional progress callback for observing operation progress */
|
|
325
364
|
readonly onProgress?: OnControlProgress;
|
|
326
365
|
}
|
|
@@ -507,10 +546,16 @@ interface DbInitFailure {
|
|
|
507
546
|
* Uses Result pattern: success returns DbInitSuccess, failure returns DbInitFailure.
|
|
508
547
|
*/
|
|
509
548
|
type DbInitResult = Result<DbInitSuccess, DbInitFailure>;
|
|
549
|
+
/** An operation an apply asks about, with its subject written as the question writes it: `User.nickname`. */
|
|
550
|
+
interface AskedSubject extends MigrationOperationSubject {
|
|
551
|
+
readonly text: string;
|
|
552
|
+
}
|
|
553
|
+
/** An operation an apply asks about because it changes who can read or write its subject's rows. */
|
|
554
|
+
interface AskedAccessChange extends AskedSubject, MigrationAccessChange {}
|
|
510
555
|
/**
|
|
511
556
|
* Successful dbUpdate result.
|
|
512
557
|
*/
|
|
513
|
-
interface DbUpdateSuccess {
|
|
558
|
+
interface DbUpdateSuccess extends MigrationPlanSubjects<AskedSubject, AskedAccessChange> {
|
|
514
559
|
readonly mode: 'plan' | 'apply';
|
|
515
560
|
readonly plan: {
|
|
516
561
|
readonly operations: ReadonlyArray<{
|
|
@@ -552,33 +597,7 @@ interface DbUpdateSuccess {
|
|
|
552
597
|
/**
|
|
553
598
|
* Failure codes for dbUpdate operation.
|
|
554
599
|
*/
|
|
555
|
-
type DbUpdateFailureCode = 'PLANNING_FAILED' | 'RUNNER_FAILED'
|
|
556
|
-
/** One planned operation whose class is destructive, as the refusal names it. */
|
|
557
|
-
interface DestructivePlanOperation {
|
|
558
|
-
readonly id: string;
|
|
559
|
-
readonly label: string;
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* The verdict a `DESTRUCTIVE_CHANGES` refusal carries: what the plan would
|
|
563
|
-
* destroy, the database it would destroy it in, and the identity of the plan
|
|
564
|
-
* that was refused. Consent is granted against `planHash` — the caller passes
|
|
565
|
-
* it back as `DbUpdateOptions.consent`.
|
|
566
|
-
*/
|
|
567
|
-
interface DestructiveChangesVerdict {
|
|
568
|
-
readonly destructiveOperations: ReadonlyArray<DestructivePlanOperation>;
|
|
569
|
-
/** The connected database's name, when the driver can name it. */
|
|
570
|
-
readonly databaseName: string | undefined;
|
|
571
|
-
/** Content hash of the refused plan. */
|
|
572
|
-
readonly planHash: string;
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* Why an apply carrying consent was refused: the plan recomputed for the
|
|
576
|
-
* apply is not the plan that was consented to.
|
|
577
|
-
*/
|
|
578
|
-
interface ConsentPlanMismatchVerdict {
|
|
579
|
-
readonly consentedPlanHash: string;
|
|
580
|
-
readonly planHash: string;
|
|
581
|
-
}
|
|
600
|
+
type DbUpdateFailureCode = 'PLANNING_FAILED' | 'RUNNER_FAILED';
|
|
582
601
|
/**
|
|
583
602
|
* Failure details for dbUpdate operation.
|
|
584
603
|
*/
|
|
@@ -589,10 +608,6 @@ interface DbUpdateFailure {
|
|
|
589
608
|
readonly conflicts: ReadonlyArray<MigrationPlannerConflict> | undefined;
|
|
590
609
|
readonly warnings?: ReadonlyArray<MigrationPlannerConflict>;
|
|
591
610
|
readonly meta: Record<string, unknown> | undefined;
|
|
592
|
-
/** Present exactly when `code` is `'DESTRUCTIVE_CHANGES'`. */
|
|
593
|
-
readonly destructiveChanges?: DestructiveChangesVerdict;
|
|
594
|
-
/** Present exactly when `code` is `'CONSENT_PLAN_MISMATCH'`. */
|
|
595
|
-
readonly consentPlanMismatch?: ConsentPlanMismatchVerdict;
|
|
596
611
|
/** Underlying failure or error for diagnostics; never serialized into envelopes. */
|
|
597
612
|
readonly cause?: unknown;
|
|
598
613
|
}
|
|
@@ -1056,5 +1071,5 @@ type ExecuteDbSignResult = Result<ExecuteDbSignSuccess, CliStructuredError$2>;
|
|
|
1056
1071
|
*/
|
|
1057
1072
|
declare function executeDbSign<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbSignOptions<TFamilyId, TTargetId>): Promise<ExecuteDbSignResult>;
|
|
1058
1073
|
//#endregion
|
|
1059
|
-
export {
|
|
1060
|
-
//# sourceMappingURL=db-sign-
|
|
1074
|
+
export { EmitSuccess as A, PlanQuestionVerb as B, DbUpdateResult as C, EmitFailureCode as D, EmitFailure as E, IntrospectOptions as F, RenderContractDtsSuccess as G, RenderContractDtsFailureCode as H, MigrateResult as I, StatementVerb as J, SchemaVerifyOptions as K, OnControlProgress as L, ExecuteDbSignResult as M, ExecuteDbVerifyOptions as N, EmitOptions as O, ExecuteDbVerifyResult as P, PlanAnswer as R, DbUpdateOptions as S, EmitContractConfig as T, RenderContractDtsOptions as U, RenderContractDtsFailure as V, RenderContractDtsResult as W, executeDbSign as X, VerifyOptions as Y, executeDbVerify as Z, DbSignOptions as _, ContractEmitOptions as a, DbUpdateFailure as b, ControlClient as c, CreateControlClient as d, DbInitFailure as f, DbInitSuccess as g, DbInitResult as h, CliStructuredError$2 as i, ExecuteDbSignOptions as j, EmitResult as k, ControlClientOptions as l, DbInitOptions as m, AppliedStatementReport as n, ContractEmitResult as o, DbInitFailureCode as p, StatementText as q, AskedSubject as r, ControlActionName as s, AnswerPlanQuestions as t, ControlProgressEvent as u, DbSignSpaceFailure as v, DbUpdateSuccess as w, DbUpdateFailureCode as x, DbSignSpaceOutcome as y, PlanQuestion as z };
|
|
1075
|
+
//# sourceMappingURL=db-sign-BPf9SzzX-CwOFPxoZ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db-sign-BPf9SzzX-CwOFPxoZ.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/db-sign-BPf9SzzX.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;UAyBU,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,UAAU;WACV,YAAY,cAAc,2BAA2B,WAAW;WAChE,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;WACA;WACA;;WAEA,wBAAwB;WACxB,aAAa;;;;;;;;;;;;;;UAcd;WACC,eAAe,oBAAoB;;;;;;WAMnC;WACA;WACA;;;;;;;;WAQA,aAAa;;KAEnB,wBAAwB,OAAO,wBAAwB;;;;;;;;;;;;;;;;;iBAiB3C,gBAAgB,0BAA0B,0BAA0B,SAAS,uBAAuB,WAAW,aAAa,QAAQ;;;;;;;UAO3I;;WAEC;;;;;;WAMA,yBAAyB;;UAE1B;;WAEC;;KAEN;UACK;WACC,MAAM;WACN;WACA;;WAEA;;KAEN,0BAA0B,OAAO,0BAA0B;;;;KAI3D;;;;;;UAMK;WACC,MAAM;WACN;;;;;KAKN;;;;KAIA,8BAA8B;;;;;UAKzB;WACC;WACA;WACA,gBAAgB;WAChB;aACE;;WAEF,WAAW,MAAM,kBAAkB;;UA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{ _ as isReservedContractRef, a as MigrationRef, c as RefResolutionAmbigu
|
|
|
9
9
|
import { a as VerifyContractSpacesResult, i as VerifyContractSpacesInputs, n as SpaceMarkerRecord, o as listContractSpaceDirectories, r as SpaceVerifierViolation, s as verifyContractSpaces, t as ContractSpaceHeadRecord } from "./verify-contract-spaces-C3PiFBk3-DfomYyOE.mjs";
|
|
10
10
|
import { a as materialiseExtensionMigrationPackageIfMissing, c as readMigrationsDir, d as writeMigrationPackage, i as formatMigrationDirName, l as writeMigrationMetadata, n as ReadMigrationsDirResult, o as materialiseMigrationPackage, r as copyFilesWithRename, s as readMigrationPackage, t as PackageLoadProblem, u as writeMigrationOps } from "./io-DZfMV51z-BKlH5Dhb.mjs";
|
|
11
11
|
import { a as findPathWithDecision, i as findPath, n as detectCycles, o as findPathWithInvariants, r as detectOrphans, s as reconstructGraph, t as PathDecision } from "./migration-graph-D8IuOkZb-pSI7-k4_.mjs";
|
|
12
|
-
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-
|
|
12
|
+
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-C23h_Ybm.mjs";
|
|
13
13
|
import "./metadata-BtscDay2.mjs";
|
|
14
14
|
import { t as MigrationPackage } from "./package-N9PPdFV_.mjs";
|
|
15
15
|
import { a as buildMigrationArtifacts, i as MigrationMeta, n as MigrationArtifacts, o as isDirectEntrypoint, r as MigrationContractViews, t as Migration } from "./migration-Bjz05034.mjs";
|
package/dist/migration-tools.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { a as isValidSpaceId, c as spaceMigrationDirectory, i as assertValidSpac
|
|
|
9
9
|
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-DGu96Hkk.mjs";
|
|
10
10
|
import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./graph-membership-C_ZO26nT-B7C4CJsh.mjs";
|
|
11
11
|
import { c as resolveRefsByContractHash, d as writeRef, i as readRefs, l as validateRefName, n as deleteRef, o as refsByContractHash, r as readRef, s as resolveRef, t as HEAD_REF_NAME, u as validateRefValue } from "./refs-qwvw4_dV-DNg_7WTD.mjs";
|
|
12
|
-
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-
|
|
12
|
+
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-DlfOyErc.mjs";
|
|
13
13
|
import { a as findEdgeByDirName, c as parseContractRef, i as WORKING_CONTRACT_REF, l as parseMigrationRef, n as LIVE_MARKER_REF, o as isLiveMarkerRef, r as RESERVED_CONTRACT_REFS, s as isReservedContractRef, t as EMPTY_CONTRACT_REF } from "./ref-resolution-Be_zewf7.mjs";
|
|
14
14
|
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-FyF55c4M.mjs";
|
|
15
15
|
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-oIynqb-J.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-
|
|
1
|
+
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-C23h_Ybm.mjs";
|
|
2
2
|
export { type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, type AppSpacePlanningInputs, type CallerPolicy, type ContractAtOptions, type ContractAtResult, type ContractMarkerRecordLike, type ContractSpaceAggregate, type DeclaredExtensionEntry, type IntegrityComputationInput, type IntegrityQueryOptions, type IntegritySpaceState, type IntegrityViolation, type LoadAggregateInput, type MarkerCheckResult, type MarkerCheckSection, type PerSpacePlan, type PlannerError, type PlannerInput, type PlannerOutput, type PlannerSuccess, type ResolveRecordedPathInputs, type ResolveRecordedPathOutcome, type SchemaCheckSection, type VerifierError, type VerifierInput, type VerifierOutput, type VerifierSuccess, allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, contractHashAtMarker, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-
|
|
1
|
+
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-DlfOyErc.mjs";
|
|
2
2
|
export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, contractHashAtMarker, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|