@githolon/dsl 0.103.17 → 0.103.19
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// <define:__NOMOS_KERNEL_RELEASE__>
|
|
4
|
-
var define_NOMOS_KERNEL_RELEASE_default = { production: { hash: "
|
|
4
|
+
var define_NOMOS_KERNEL_RELEASE_default = { production: { hash: "c71ea1a3bbe0c7b4be944106e44387f37bc9da43aeb0747631c7c4e89012c757", version: "kernel-c71ea1a3", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"], protocol: 1 }, testMint: { hash: "11503b51eaa2b7f2a059b0a94725faa1f7ab4c96c0648b955f2cf5010974d259", version: "kernel-11503b51", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"], protocol: 1 } };
|
|
5
5
|
|
|
6
6
|
// runner/node-entry.ts
|
|
7
7
|
import { createInterface } from "node:readline";
|
|
@@ -10112,7 +10112,8 @@ ${String(commit).toLowerCase()}`;
|
|
|
10112
10112
|
try {
|
|
10113
10113
|
const outcome = await offerDirective("nomos", "promoteDomain", prepared.payload, {
|
|
10114
10114
|
actor: connectionPrincipal,
|
|
10115
|
-
returnCreated: false
|
|
10115
|
+
returnCreated: false,
|
|
10116
|
+
domainHash: String(currentLawInner()?.["nomos"] ?? "")
|
|
10116
10117
|
});
|
|
10117
10118
|
const head = typeof outcome === "string" ? outcome : String(outcome?.head ?? "");
|
|
10118
10119
|
const readiness = await prepareDomainReady(domain, candidateHash);
|
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
// <define:__NOMOS_KERNEL_RELEASE__>
|
|
9
|
-
var define_NOMOS_KERNEL_RELEASE_default = { production: { hash: "
|
|
9
|
+
var define_NOMOS_KERNEL_RELEASE_default = { production: { hash: "c71ea1a3bbe0c7b4be944106e44387f37bc9da43aeb0747631c7c4e89012c757", version: "kernel-c71ea1a3", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"], protocol: 1 }, testMint: { hash: "11503b51eaa2b7f2a059b0a94725faa1f7ab4c96c0648b955f2cf5010974d259", version: "kernel-11503b51", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"], protocol: 1 } };
|
|
10
10
|
|
|
11
11
|
// runner/offline-install.ts
|
|
12
12
|
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, existsSync } from "node:fs";
|
package/package.json
CHANGED
|
@@ -9163,7 +9163,8 @@ ${String(commit).toLowerCase()}`;
|
|
|
9163
9163
|
try {
|
|
9164
9164
|
const outcome = await offerDirective("nomos", "promoteDomain", prepared.payload, {
|
|
9165
9165
|
actor: connectionPrincipal,
|
|
9166
|
-
returnCreated: false
|
|
9166
|
+
returnCreated: false,
|
|
9167
|
+
domainHash: String(currentLawInner()?.["nomos"] ?? "")
|
|
9167
9168
|
});
|
|
9168
9169
|
const head = typeof outcome === "string" ? outcome : String(outcome?.head ?? "");
|
|
9169
9170
|
const readiness = await prepareDomainReady(domain, candidateHash);
|
|
@@ -2401,9 +2401,7 @@ export function generateDartBridgeClient(
|
|
|
2401
2401
|
` final candidate = ${className}(session, actor: actor${
|
|
2402
2402
|
manualEncryptionPresent ? ", keyStore: keyStore" : ""
|
|
2403
2403
|
});`,
|
|
2404
|
-
`
|
|
2405
|
-
` final adoption = await candidate._adoptGeneratedModel();`,
|
|
2406
|
-
` if (adoption.status == NomosModelAdoptionStatus.adopted) return;`,
|
|
2404
|
+
` Never throwForAdoption(NomosModelAdoption adoption) {`,
|
|
2407
2405
|
` throw DomainClientModelAdoptionRequired(`,
|
|
2408
2406
|
` expectedDomainKey: interface.domain,`,
|
|
2409
2407
|
` expectedDomainHash: interface.expectedDomainHash,`,
|
|
@@ -2437,13 +2435,23 @@ export function generateDartBridgeClient(
|
|
|
2437
2435
|
` accept: adoption.status == NomosModelAdoptionStatus.needsDecision`,
|
|
2438
2436
|
` ? (reason, {dispositions}) async {`,
|
|
2439
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.`,
|
|
2440
2443
|
` if (accepted.status != NomosModelAdoptionStatus.adopted) {`,
|
|
2441
|
-
`
|
|
2444
|
+
` throwForAdoption(accepted);`,
|
|
2442
2445
|
` }`,
|
|
2443
2446
|
` }`,
|
|
2444
2447
|
` : null,`,
|
|
2445
2448
|
` );`,
|
|
2446
2449
|
` }`,
|
|
2450
|
+
` Future<void> adoptGeneratedModel() async {`,
|
|
2451
|
+
` final adoption = await candidate._adoptGeneratedModel();`,
|
|
2452
|
+
` if (adoption.status == NomosModelAdoptionStatus.adopted) return;`,
|
|
2453
|
+
` throwForAdoption(adoption);`,
|
|
2454
|
+
` }`,
|
|
2447
2455
|
` try {`,
|
|
2448
2456
|
` await session.assertCompatible(interface);`,
|
|
2449
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.23";
|
|
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).
|