@githolon/dsl 0.103.16 → 0.103.18
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/package.json
CHANGED
|
@@ -1704,9 +1704,12 @@ export function generateDartBridgeClient(
|
|
|
1704
1704
|
` }`,
|
|
1705
1705
|
` final evolve = (report?['evolve'] as Map?)?.cast<String, Object?>();`,
|
|
1706
1706
|
` // A field/aggregate the candidate genuinely removed is a #58 disposition decision, not a`,
|
|
1707
|
-
` // dead end: retry with the SAME accept/dispositions seam
|
|
1708
|
-
` //
|
|
1709
|
-
`
|
|
1707
|
+
` // dead end: retry with the SAME accept/dispositions seam so the tenant's own policy can`,
|
|
1708
|
+
` // supply dispositions.retired. Every prior stage (promoted/staging-required/acceptance) is`,
|
|
1709
|
+
` // already handled above; 'identity' (needs sign-in) is the one remaining stage this must NOT`,
|
|
1710
|
+
` // paper over, so it is the sole exclusion rather than requiring an exact 'preflight' match or`,
|
|
1711
|
+
` // exact boolean report fields, which may not round-trip identically across every bridge.`,
|
|
1712
|
+
` if (stage != 'identity') {`,
|
|
1710
1713
|
` return NomosModelAdoption.needsDecision(`,
|
|
1711
1714
|
` summary: 'This model cannot yet interpret every existing value without a declared disposition. Review the differences and record why that is intended.',`,
|
|
1712
1715
|
` review: review, accept: (reason, {dispositions}) => _adoptGeneratedModel(reason, dispositions));`,
|
|
@@ -2398,9 +2401,7 @@ export function generateDartBridgeClient(
|
|
|
2398
2401
|
` final candidate = ${className}(session, actor: actor${
|
|
2399
2402
|
manualEncryptionPresent ? ", keyStore: keyStore" : ""
|
|
2400
2403
|
});`,
|
|
2401
|
-
`
|
|
2402
|
-
` final adoption = await candidate._adoptGeneratedModel();`,
|
|
2403
|
-
` if (adoption.status == NomosModelAdoptionStatus.adopted) return;`,
|
|
2404
|
+
` Never throwForAdoption(NomosModelAdoption adoption) {`,
|
|
2404
2405
|
` throw DomainClientModelAdoptionRequired(`,
|
|
2405
2406
|
` expectedDomainKey: interface.domain,`,
|
|
2406
2407
|
` expectedDomainHash: interface.expectedDomainHash,`,
|
|
@@ -2434,13 +2435,23 @@ export function generateDartBridgeClient(
|
|
|
2434
2435
|
` accept: adoption.status == NomosModelAdoptionStatus.needsDecision`,
|
|
2435
2436
|
` ? (reason, {dispositions}) async {`,
|
|
2436
2437
|
` final accepted = await adoption.accept(reason, dispositions: dispositions);`,
|
|
2438
|
+
` // A retry that still isn't adopted (a transient business-outcome/history race,`,
|
|
2439
|
+
` // e.g. concurrent writes landing between the bare preflight and this accept) must`,
|
|
2440
|
+
` // NOT be swallowed as a terminal StateError: re-throw the SAME typed exception so`,
|
|
2441
|
+
` // the caller's governed-steps retry loop gets another decide()/accept() attempt`,
|
|
2442
|
+
` // instead of failing outright on the first race it hits.`,
|
|
2437
2443
|
` if (accepted.status != NomosModelAdoptionStatus.adopted) {`,
|
|
2438
|
-
`
|
|
2444
|
+
` throwForAdoption(accepted);`,
|
|
2439
2445
|
` }`,
|
|
2440
2446
|
` }`,
|
|
2441
2447
|
` : null,`,
|
|
2442
2448
|
` );`,
|
|
2443
2449
|
` }`,
|
|
2450
|
+
` Future<void> adoptGeneratedModel() async {`,
|
|
2451
|
+
` final adoption = await candidate._adoptGeneratedModel();`,
|
|
2452
|
+
` if (adoption.status == NomosModelAdoptionStatus.adopted) return;`,
|
|
2453
|
+
` throwForAdoption(adoption);`,
|
|
2454
|
+
` }`,
|
|
2444
2455
|
` try {`,
|
|
2445
2456
|
` await session.assertCompatible(interface);`,
|
|
2446
2457
|
` } on DomainClientSessionMismatch catch (mismatch) {`,
|
|
@@ -1653,7 +1653,7 @@ const NOMOS_TYPES_DEP = "^0.8.4";
|
|
|
1653
1653
|
// DomainNotInstalledForSession, engine.follow, pendingConflicts lanes) — the generated client
|
|
1654
1654
|
// REQUIRES this surface. 0.48.1 fixes NomosSession.watchPendingConflicts delegation.
|
|
1655
1655
|
const NOMOS_CLIENT_DEP = "^0.64.14";
|
|
1656
|
-
const NOMOS_FLUTTER_DEP = "^0.63.
|
|
1656
|
+
const NOMOS_FLUTTER_DEP = "^0.63.22";
|
|
1657
1657
|
// DRIFT TRIPWIRE: pubspec_pins.test.ts asserts these equal the CURRENT versions in dsl/dart/pubspec.yaml
|
|
1658
1658
|
// and dsl/dart_types/pubspec.yaml — a Dart release without this bump fails the suite, so tenants never
|
|
1659
1659
|
// land back in dependency_overrides (the exact co2 report this closes, third occurrence).
|