githolon 0.105.9 → 0.105.12

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.
@@ -2991,8 +2991,8 @@ function resolveGatewayOperation(spec, opName, method) {
2991
2991
 
2992
2992
  // ../cloud/cloudflare-shell/src/kernel-registry.generated.ts
2993
2993
  var DEPLOYED_KERNELS = [
2994
- { prefix: "08719339", hash: "08719339b0ecfb39b75543bf40422e84832153cc463b00283c0e84f6e38ce359", version: "kernel-08719339", note: "production (this candidate)", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"] },
2995
- { prefix: "ab5c45c0", hash: "ab5c45c029a57b39711a559d803ed7d23e8eb94c11bbba652df7f8b3abd3c6df", version: "kernel-ab5c45c0", note: "test-mint (this candidate) \u2014 feature-equivalent to production", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"] }
2994
+ { prefix: "7602d5c0", hash: "7602d5c014cbf79a1069ff0f542b7b5dd3dde6d4920f44e56710bbe23ee3257d", version: "kernel-7602d5c0", note: "production (this candidate)", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"] },
2995
+ { prefix: "6e5e6d2f", hash: "6e5e6d2f655c0a951e8a04a2a4334131cc7237aa3ff8605d575c50598c2ee803", version: "kernel-6e5e6d2f", note: "test-mint (this candidate) \u2014 feature-equivalent to production", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience", "temporalEnum"] }
2996
2996
  ];
2997
2997
 
2998
2998
  // ../cloud/cloudflare-shell/src/staged-intents.ts
Binary file
Binary file
package/dist/full-cli.mjs CHANGED
@@ -8180,7 +8180,7 @@ ${String(commit).toLowerCase()}`;
8180
8180
  }));
8181
8181
  await offerDirective(domain, OWNED_RECOVERY_COMPLETE_DIRECTIVE, {
8182
8182
  requestId,
8183
- resultRef: JSON.stringify({ ownedCustody: String(prepared.ownedCustody || "") }),
8183
+ ownedCustody: String(prepared.ownedCustody || ""),
8184
8184
  completedAt: Date.now()
8185
8185
  }, { domainHash, actor: connectionPrincipal });
8186
8186
  }
@@ -8203,21 +8203,17 @@ ${String(commit).toLowerCase()}`;
8203
8203
  let orders = await ownedRecoveryOrdersRaw(recoveryPrincipal);
8204
8204
  let order = orders.find((row) => row.ownerPrincipal === connectionPrincipal && row.deviceRequest === deviceRequest);
8205
8205
  if (!order) {
8206
- const minted = JSON.parse(call("query", {
8207
- queryBytes: qBytes({ op: "mint", typeTag: "NomosOwnedRecoveryOrder", nowMillis: Date.now() })
8208
- }));
8209
- const requestId2 = String(minted.id || "");
8210
- const now = Date.now();
8211
- await offerDirective(domain, OWNED_RECOVERY_REQUEST_DIRECTIVE, {
8212
- requestId: requestId2,
8213
- requestedBy: connectionPrincipal,
8214
- requestedAt: now,
8215
- scheduledAt: now,
8216
- deadlineAt: now + 30 * 24 * 60 * 60 * 1e3,
8206
+ const accepted = await offerDirective(domain, OWNED_RECOVERY_REQUEST_DIRECTIVE, {
8217
8207
  ownerPrincipal: connectionPrincipal,
8218
8208
  recoveryPrincipal,
8219
8209
  deviceRequest
8220
- }, { domainHash, actor: connectionPrincipal });
8210
+ }, { domainHash, actor: connectionPrincipal, returnCreated: true });
8211
+ const requestId2 = accepted.created?.find(
8212
+ (ref) => ref.type === "NomosOwnedRecoveryOrder"
8213
+ )?.id ?? "";
8214
+ if (!requestId2) {
8215
+ throw new Error("owned recovery request was accepted without its created obligation reference");
8216
+ }
8221
8217
  orders = await ownedRecoveryOrdersRaw(recoveryPrincipal);
8222
8218
  order = orders.find((row) => row.requestId === requestId2) ?? {
8223
8219
  id: requestId2,
@@ -8230,12 +8226,7 @@ ${String(commit).toLowerCase()}`;
8230
8226
  }
8231
8227
  const requestId = String(order.requestId || order.id || "");
8232
8228
  if (order.status === "completed") {
8233
- let receipt = {};
8234
- try {
8235
- receipt = JSON.parse(String(order.resultRef || "{}"));
8236
- } catch {
8237
- }
8238
- const ownedCustody = String(receipt.ownedCustody || "");
8229
+ const ownedCustody = String(order.ownedCustody || "");
8239
8230
  if (!ownedCustody) {
8240
8231
  throw new OwnedRecoveryPendingError("Recovery is still being prepared; Nomos will continue safely.", {
8241
8232
  workspace,
@@ -18430,7 +18421,7 @@ var init_governance = __esm({
18430
18421
  })(ModelLifecycleAuthorityKind || {});
18431
18422
  lineageIdentity = (actor) => actor.startsWith("user:") ? actor.slice("user:".length) : actor;
18432
18423
  sameIdentity = (a, b) => lineageIdentity(a) === lineageIdentity(b);
18433
- DEFAULT_ONBOARDING_IDP = "https://id.nomos.captainapp.co.uk";
18424
+ DEFAULT_ONBOARDING_IDP = "https://id.nomos.cafe";
18434
18425
  STAGE_THRESHOLD_CHARS = 4 * 1024 * 1024;
18435
18426
  HONEST_CEILING = `The operator controls root's law and could deploy law removing the consent check \u2014 but that act is itself a signed, ordered, permanent fact in root's chain, visible to every tenant running \`replay root\`, and grounds for exit-with-everything. Not "we can't" \u2014 "we can't secretly, and you can always leave."`;
18436
18427
  ROOT_CUSTODIAN_SECRET = "nomos-root-custodian-key";
@@ -23983,7 +23974,7 @@ var HELP = {
23983
23974
  ],
23984
23975
  examples: [
23985
23976
  "githolon compat build/guestbook.interface.json",
23986
- "githolon compat https://nomos.captainapp.co.uk/v2/workspaces/my-guestbook",
23977
+ "githolon compat https://nomos.cafe/v2/workspaces/my-guestbook",
23987
23978
  "githolon compat ../deployed-law --json"
23988
23979
  ]
23989
23980
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githolon",
3
- "version": "0.105.9",
3
+ "version": "0.105.12",
4
4
  "type": "module",
5
5
  "description": "githolon — the Nomos developer CLI: Rails-style generators for @githolon/dsl domains + the package compiler. Kernel-independent.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@bjorn3/browser_wasi_shim": "0.4.2",
32
32
  "@bufbuild/protobuf": "^2.13.0",
33
- "@githolon/dsl": "^0.105.9",
33
+ "@githolon/dsl": "^0.105.12",
34
34
  "isomorphic-git": "^1.38.4",
35
35
  "tsx": "^4.19.2"
36
36
  },