@codemem/core 0.49.0-beta.2 → 0.49.0-beta.4

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.
Files changed (179) hide show
  1. package/dist/better-sqlite-coordinator-store.d.ts +21 -2
  2. package/dist/better-sqlite-coordinator-store.d.ts.map +1 -1
  3. package/dist/coordinator-account-change-authority.d.ts +56 -0
  4. package/dist/coordinator-account-change-authority.d.ts.map +1 -0
  5. package/dist/coordinator-account-change-decision.d.ts +141 -0
  6. package/dist/coordinator-account-change-decision.d.ts.map +1 -0
  7. package/dist/coordinator-account-change-http-test-fixtures.d.ts +3 -1
  8. package/dist/coordinator-account-change-http-test-fixtures.d.ts.map +1 -1
  9. package/dist/coordinator-account-change-original-sql-test-fixtures.d.ts +61 -0
  10. package/dist/coordinator-account-change-original-sql-test-fixtures.d.ts.map +1 -0
  11. package/dist/coordinator-account-change.d.ts +7 -1
  12. package/dist/coordinator-account-change.d.ts.map +1 -1
  13. package/dist/coordinator-account-connection-schema.d.ts +31 -0
  14. package/dist/coordinator-account-connection-schema.d.ts.map +1 -1
  15. package/dist/coordinator-account-connection-session.d.ts +9 -0
  16. package/dist/coordinator-account-connection-session.d.ts.map +1 -1
  17. package/dist/coordinator-account-historical-revoke-original-sql-test-fixtures.d.ts +7 -0
  18. package/dist/coordinator-account-historical-revoke-original-sql-test-fixtures.d.ts.map +1 -0
  19. package/dist/coordinator-account-historical-revoke.d.ts +8 -2
  20. package/dist/coordinator-account-historical-revoke.d.ts.map +1 -1
  21. package/dist/coordinator-account-link-status.d.ts.map +1 -1
  22. package/dist/coordinator-account-schema-sqlite-test-fixtures.d.ts +58 -0
  23. package/dist/coordinator-account-schema-sqlite-test-fixtures.d.ts.map +1 -0
  24. package/dist/coordinator-account-schema-test-fixtures.d.ts +20 -0
  25. package/dist/coordinator-account-schema-test-fixtures.d.ts.map +1 -0
  26. package/dist/coordinator-auth-browser-owner-purpose-test-harness.d.ts.map +1 -1
  27. package/dist/coordinator-auth-browser-transaction-test-fixtures.d.ts.map +1 -1
  28. package/dist/coordinator-auth-browser-transaction.d.ts.map +1 -1
  29. package/dist/coordinator-auth-controller-consistency-test-fixtures.d.ts +5 -1
  30. package/dist/coordinator-auth-controller-consistency-test-fixtures.d.ts.map +1 -1
  31. package/dist/coordinator-auth-controller-history.d.ts +0 -1
  32. package/dist/coordinator-auth-controller-history.d.ts.map +1 -1
  33. package/dist/coordinator-auth-controller-original-sql-test-fixtures.d.ts +41 -0
  34. package/dist/coordinator-auth-controller-original-sql-test-fixtures.d.ts.map +1 -0
  35. package/dist/coordinator-auth-controller-owner.d.ts +0 -6
  36. package/dist/coordinator-auth-controller-owner.d.ts.map +1 -1
  37. package/dist/coordinator-auth-controller-race-test-fixtures.d.ts +38 -0
  38. package/dist/coordinator-auth-controller-race-test-fixtures.d.ts.map +1 -0
  39. package/dist/coordinator-auth-controller-read-set.d.ts +47 -0
  40. package/dist/coordinator-auth-controller-read-set.d.ts.map +1 -0
  41. package/dist/coordinator-auth-controller-stages-original-sql-test-fixtures.d.ts +8 -0
  42. package/dist/coordinator-auth-controller-stages-original-sql-test-fixtures.d.ts.map +1 -0
  43. package/dist/coordinator-auth-controller.d.ts +1 -21
  44. package/dist/coordinator-auth-controller.d.ts.map +1 -1
  45. package/dist/coordinator-auth-device-claim-eligibility.d.ts +39 -1
  46. package/dist/coordinator-auth-device-claim-eligibility.d.ts.map +1 -1
  47. package/dist/coordinator-auth-historical-store-test-fixture.d.ts +2 -0
  48. package/dist/coordinator-auth-historical-store-test-fixture.d.ts.map +1 -1
  49. package/dist/coordinator-auth-legacy-assignment.d.ts +4 -2
  50. package/dist/coordinator-auth-legacy-assignment.d.ts.map +1 -1
  51. package/dist/coordinator-auth-link-authority-upgrade.d.ts +5 -0
  52. package/dist/coordinator-auth-link-authority-upgrade.d.ts.map +1 -1
  53. package/dist/coordinator-auth-link-maintenance-fixtures.d.ts +2 -2
  54. package/dist/coordinator-auth-link-maintenance-fixtures.d.ts.map +1 -1
  55. package/dist/coordinator-auth-link-provenance.d.ts.map +1 -1
  56. package/dist/coordinator-auth-link-revocation-test-harness.d.ts.map +1 -1
  57. package/dist/coordinator-auth-link-test-fixtures.d.ts +26 -4
  58. package/dist/coordinator-auth-link-test-fixtures.d.ts.map +1 -1
  59. package/dist/coordinator-auth-link.d.ts +4 -0
  60. package/dist/coordinator-auth-link.d.ts.map +1 -1
  61. package/dist/coordinator-auth-read-set.d.ts +99 -0
  62. package/dist/coordinator-auth-read-set.d.ts.map +1 -0
  63. package/dist/coordinator-auth-schema-stage.d.ts +36 -0
  64. package/dist/coordinator-auth-schema-stage.d.ts.map +1 -0
  65. package/dist/coordinator-auth-schema.d.ts.map +1 -1
  66. package/dist/coordinator-auth-session.d.ts.map +1 -1
  67. package/dist/coordinator-auth-store-test-fixtures.d.ts +12 -0
  68. package/dist/coordinator-auth-store-test-fixtures.d.ts.map +1 -1
  69. package/dist/coordinator-controller-revocation-test-harness.d.ts.map +1 -1
  70. package/dist/coordinator-d1-schema-inventory.d.ts +10 -0
  71. package/dist/coordinator-d1-schema-inventory.d.ts.map +1 -0
  72. package/dist/coordinator-device-claim-binding-reuse.d.ts +2 -0
  73. package/dist/coordinator-device-claim-binding-reuse.d.ts.map +1 -1
  74. package/dist/coordinator-device-claim-binding-sql.d.ts +8 -0
  75. package/dist/coordinator-device-claim-binding-sql.d.ts.map +1 -1
  76. package/dist/coordinator-device-ownership-evidence-original-sql-test-fixtures.d.ts +88 -0
  77. package/dist/coordinator-device-ownership-evidence-original-sql-test-fixtures.d.ts.map +1 -0
  78. package/dist/coordinator-device-ownership-evidence-queries.d.ts +4 -14
  79. package/dist/coordinator-device-ownership-evidence-queries.d.ts.map +1 -1
  80. package/dist/coordinator-device-ownership-evidence-test-fixtures.d.ts +10 -0
  81. package/dist/coordinator-device-ownership-evidence-test-fixtures.d.ts.map +1 -1
  82. package/dist/coordinator-device-ownership-evidence.d.ts +11 -3
  83. package/dist/coordinator-device-ownership-evidence.d.ts.map +1 -1
  84. package/dist/coordinator-device-rebind-browser.d.ts +1 -1
  85. package/dist/coordinator-device-rebind-ceremony.d.ts +2 -1
  86. package/dist/coordinator-device-rebind-ceremony.d.ts.map +1 -1
  87. package/dist/coordinator-device-rebind-commit.d.ts.map +1 -1
  88. package/dist/coordinator-device-rebind-test-fixtures.d.ts.map +1 -1
  89. package/dist/coordinator-device-self-bind-authority.d.ts +11 -2
  90. package/dist/coordinator-device-self-bind-authority.d.ts.map +1 -1
  91. package/dist/coordinator-device-self-bind-decision.d.ts +84 -0
  92. package/dist/coordinator-device-self-bind-decision.d.ts.map +1 -0
  93. package/dist/coordinator-device-self-bind-original-sql-test-fixtures.d.ts +17 -0
  94. package/dist/coordinator-device-self-bind-original-sql-test-fixtures.d.ts.map +1 -0
  95. package/dist/coordinator-device-self-bind-reviewed-history.d.ts +10 -0
  96. package/dist/coordinator-device-self-bind-reviewed-history.d.ts.map +1 -0
  97. package/dist/coordinator-device-self-bind-test-fixtures.d.ts +15 -1
  98. package/dist/coordinator-device-self-bind-test-fixtures.d.ts.map +1 -1
  99. package/dist/coordinator-history-sql-equivalence-test-fixtures.d.ts +6 -2
  100. package/dist/coordinator-history-sql-equivalence-test-fixtures.d.ts.map +1 -1
  101. package/dist/coordinator-legacy-completion-owner-proof-original-sql-test-fixtures.d.ts +77 -0
  102. package/dist/coordinator-legacy-completion-owner-proof-original-sql-test-fixtures.d.ts.map +1 -0
  103. package/dist/coordinator-legacy-completion-owner-proof-test-fixtures.d.ts +46 -0
  104. package/dist/coordinator-legacy-completion-owner-proof-test-fixtures.d.ts.map +1 -0
  105. package/dist/coordinator-legacy-completion-owner-proof.d.ts +19 -2
  106. package/dist/coordinator-legacy-completion-owner-proof.d.ts.map +1 -1
  107. package/dist/coordinator-legacy-owner-compatibility.d.ts +23 -0
  108. package/dist/coordinator-legacy-owner-compatibility.d.ts.map +1 -1
  109. package/dist/coordinator-legacy-owner-resolution-commit-original-sql-test-fixtures.d.ts +63 -0
  110. package/dist/coordinator-legacy-owner-resolution-commit-original-sql-test-fixtures.d.ts.map +1 -0
  111. package/dist/coordinator-legacy-owner-resolution-commit-test-fixtures.d.ts +3 -1
  112. package/dist/coordinator-legacy-owner-resolution-commit-test-fixtures.d.ts.map +1 -1
  113. package/dist/coordinator-legacy-owner-resolution-commit.d.ts.map +1 -1
  114. package/dist/coordinator-owner-enrollment-commit.d.ts.map +1 -1
  115. package/dist/coordinator-owner-enrollment-historical-test-fixture.d.ts +2 -0
  116. package/dist/coordinator-owner-enrollment-historical-test-fixture.d.ts.map +1 -1
  117. package/dist/coordinator-owner-enrollment-start-test-fixtures.d.ts.map +1 -1
  118. package/dist/coordinator-owner-negative-consistency.d.ts +11 -17
  119. package/dist/coordinator-owner-negative-consistency.d.ts.map +1 -1
  120. package/dist/coordinator-owner-negative-original-sql-test-fixtures.d.ts +44 -0
  121. package/dist/coordinator-owner-negative-original-sql-test-fixtures.d.ts.map +1 -0
  122. package/dist/coordinator-owner-negative-race-test-fixtures.d.ts +26 -0
  123. package/dist/coordinator-owner-negative-race-test-fixtures.d.ts.map +1 -0
  124. package/dist/coordinator-owner-negative-read-set.d.ts +43 -0
  125. package/dist/coordinator-owner-negative-read-set.d.ts.map +1 -0
  126. package/dist/coordinator-owner-negative-reads.d.ts +32 -0
  127. package/dist/coordinator-owner-negative-reads.d.ts.map +1 -0
  128. package/dist/coordinator-owner-producer-original-sql-test-fixtures.d.ts +26 -0
  129. package/dist/coordinator-owner-producer-original-sql-test-fixtures.d.ts.map +1 -0
  130. package/dist/coordinator-owner-resolution-review-test-fixtures.d.ts +1 -0
  131. package/dist/coordinator-owner-resolution-review-test-fixtures.d.ts.map +1 -1
  132. package/dist/coordinator-owner-resolution-review.d.ts +1 -0
  133. package/dist/coordinator-owner-resolution-review.d.ts.map +1 -1
  134. package/dist/coordinator-producer-negative-owner-test-fixtures.d.ts +8 -2
  135. package/dist/coordinator-producer-negative-owner-test-fixtures.d.ts.map +1 -1
  136. package/dist/coordinator-recipient-negative-race-test-fixtures.d.ts +54 -0
  137. package/dist/coordinator-recipient-negative-race-test-fixtures.d.ts.map +1 -0
  138. package/dist/coordinator-recipient-owner-consistency.d.ts +4 -5
  139. package/dist/coordinator-recipient-owner-consistency.d.ts.map +1 -1
  140. package/dist/coordinator-recipient-owner-original-sql-test-fixtures.d.ts +30 -0
  141. package/dist/coordinator-recipient-owner-original-sql-test-fixtures.d.ts.map +1 -0
  142. package/dist/coordinator-resolved-account-owner-status-query.d.ts +4 -1
  143. package/dist/coordinator-resolved-account-owner-status-query.d.ts.map +1 -1
  144. package/dist/coordinator-resolved-account-owner-status-test-fixtures.d.ts +1 -0
  145. package/dist/coordinator-resolved-account-owner-status-test-fixtures.d.ts.map +1 -1
  146. package/dist/coordinator-resolved-account-owner-status.d.ts +2 -0
  147. package/dist/coordinator-resolved-account-owner-status.d.ts.map +1 -1
  148. package/dist/{coordinator-runtime-kbPwxxKq.js → coordinator-runtime-BXJQAKFD.js} +3 -3
  149. package/dist/{coordinator-runtime-kbPwxxKq.js.map → coordinator-runtime-BXJQAKFD.js.map} +1 -1
  150. package/dist/coordinator-sql-compare.d.ts +22 -0
  151. package/dist/coordinator-sql-compare.d.ts.map +1 -0
  152. package/dist/d1-coordinator-store.d.ts +16 -1
  153. package/dist/d1-coordinator-store.d.ts.map +1 -1
  154. package/dist/index.d.ts +2 -1
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js +8907 -8434
  157. package/dist/index.js.map +1 -1
  158. package/dist/internal/cloudflare-coordinator.js +1070 -1065
  159. package/dist/internal/cloudflare-coordinator.js.map +1 -1
  160. package/dist/internal/relay-runtime.js +2 -2
  161. package/dist/linked-legacy-setup-test-fixtures.d.ts +2 -0
  162. package/dist/linked-legacy-setup-test-fixtures.d.ts.map +1 -1
  163. package/dist/{owner-enrollment-start-BtoRKf3z.js → owner-enrollment-start-BsDwgxAh.js} +2660 -2438
  164. package/dist/owner-enrollment-start-BsDwgxAh.js.map +1 -0
  165. package/dist/owner-enrollment-start.d.ts.map +1 -1
  166. package/dist/relay-admission-table-keys-test-fixtures.d.ts +2 -1
  167. package/dist/relay-admission-table-keys-test-fixtures.d.ts.map +1 -1
  168. package/dist/{relay-peer-client-0XpekgnZ.js → relay-peer-client-DrTb2oZt.js} +2631 -2617
  169. package/dist/relay-peer-client-DrTb2oZt.js.map +1 -0
  170. package/dist/{sync-auth-constants-DvALG0T0.js → sync-auth-constants-BVzVfSmn.js} +4019 -3416
  171. package/dist/sync-auth-constants-BVzVfSmn.js.map +1 -0
  172. package/dist/{sync-reachability-pass-BpDt2z4y.js → sync-reachability-pass-CUe5bK61.js} +12 -12
  173. package/dist/{sync-reachability-pass-BpDt2z4y.js.map → sync-reachability-pass-CUe5bK61.js.map} +1 -1
  174. package/dist/sync-reachability-pass-D9cA54fj.js +2 -0
  175. package/package.json +3 -3
  176. package/dist/owner-enrollment-start-BtoRKf3z.js.map +0 -1
  177. package/dist/relay-peer-client-0XpekgnZ.js.map +0 -1
  178. package/dist/sync-auth-constants-DvALG0T0.js.map +0 -1
  179. package/dist/sync-reachability-pass-Bi4GBi-x.js +0 -2
@@ -1,9 +1,9 @@
1
1
  import { $ as e, A as t, At as n, C as r, Ct as i, D as a, En as o, F as s, I as c, J as l, K as u, L as d, N as f, Nt as p, O as m, Ot as h, Pt as g, Q as _, S as v, Sn as y, St as b, X as x, Z as S, at as C, it as ee, j as w, kt as te, l as ne, lt as T, m as E, mt as re, n as ie, ot as ae, r as oe, rn as se, rt as ce, st as le, u as ue, ut as de, w as D, xt as fe, yn as pe } from "./scope-membership-cache-read-B6z47l2W.js";
2
2
  import { p as me } from "./scope-membership-semantics-B8qXaMqx.js";
3
- import { Gi as he, Ki as ge, Wi as O } from "./sync-auth-constants-DvALG0T0.js";
3
+ import { aa as he, ia as ge, ra as O } from "./sync-auth-constants-BVzVfSmn.js";
4
4
  import { B as _e, D as ve, E as ye, G as be, H as xe, J as Se, M as Ce, O as we, P as Te, R as Ee, S as De, St as Oe, U as ke, V as Ae, W as je, X as Me, Y as Ne, _t as Pe, a as Fe, at as Ie, bt as Le, c as Re, ft as ze, h as Be, ht as Ve, i as He, it as Ue, j as We, k as Ge, n as Ke, o as qe, r as Je, s as Ye, u as Xe, ut as Ze, v as Qe, xt as $e, z as et } from "./validated-vector-index-audit-B64yhEBF.js";
5
5
  import { n as tt } from "./relay-ed25519-BNMhPehl.js";
6
- import { A as nt, B as rt, C as it, G as at, L as ot, O as st, T as ct, U as lt, _ as ut, a as dt, b as ft, c as pt, ct as mt, d as ht, f as gt, h as _t, i as vt, j as yt, k as bt, l as xt, n as St, o as Ct, p as wt, r as Tt, rt as Et, s as Dt, u as Ot, v as kt, w as At, x as jt, y as Mt, z as Nt } from "./relay-peer-client-0XpekgnZ.js";
6
+ import { A as nt, B as rt, C as it, G as at, L as ot, O as st, T as ct, U as lt, _ as ut, a as dt, b as ft, c as pt, ct as mt, d as ht, f as gt, h as _t, i as vt, j as yt, k as bt, l as xt, n as St, o as Ct, p as wt, r as Tt, rt as Et, s as Dt, u as Ot, v as kt, w as At, x as jt, y as Mt, z as Nt } from "./relay-peer-client-DrTb2oZt.js";
7
7
  import { n as k } from "./workspace-identity-DI8bBR0Y.js";
8
8
  import { createHash as Pt, randomUUID as Ft } from "node:crypto";
9
9
  import { lstatSync as It, realpathSync as Lt, statSync as Rt } from "node:fs";
@@ -1976,7 +1976,7 @@ function ro(e, t) {
1976
1976
  function io(e) {
1977
1977
  return typeof e == "string" && e.length > 0 && e === e.trim() && e.length <= Qa && !$a.test(e);
1978
1978
  }
1979
- var ao = ge;
1979
+ var ao = he;
1980
1980
  function oo(e) {
1981
1981
  return e.kind === "direct_identity" ? e.kind : `${e.kind}\u0000${e.teamId}`;
1982
1982
  }
@@ -2014,7 +2014,7 @@ function lo(e) {
2014
2014
  }
2015
2015
  function uo(e) {
2016
2016
  let t = /* @__PURE__ */ new Map();
2017
- he(e.canonicalProjectIdentity) || B(t, "canonical_project_identity_invalid", e.canonicalProjectIdentity);
2017
+ ge(e.canonicalProjectIdentity) || B(t, "canonical_project_identity_invalid", e.canonicalProjectIdentity);
2018
2018
  let n = new Map(e.identities.map((e) => [e.identityId, e])), r = e.identities.map((e) => ({
2019
2019
  identityId: e.identityId,
2020
2020
  status: e.status,
@@ -2211,7 +2211,7 @@ function ho(e, t) {
2211
2211
  return n ? mo(n) : null;
2212
2212
  }
2213
2213
  function go(e, t) {
2214
- if (!he(t.canonicalProjectIdentity) || !Number.isSafeInteger(t.generation) || t.generation < 0) throw Error("recipient_policy_authority_observation_invalid");
2214
+ if (!ge(t.canonicalProjectIdentity) || !Number.isSafeInteger(t.generation) || t.generation < 0) throw Error("recipient_policy_authority_observation_invalid");
2215
2215
  let n = ho(e, t.canonicalProjectIdentity);
2216
2216
  if (n && t.generation < n.generation) throw Error("recipient_policy_generation_stale");
2217
2217
  if (n && t.generation === n.generation && n.desiredDevicesDigest !== t.desiredDevicesDigest) throw Error("recipient_policy_generation_conflict");
@@ -2268,14 +2268,14 @@ function bo(e) {
2268
2268
  };
2269
2269
  }
2270
2270
  function xo(e, t, n = Za) {
2271
- if (!he(t) || !Number.isSafeInteger(n) || n < 1 || n > Za) throw Error("recipient_policy_reconciliation_step_invalid");
2271
+ if (!ge(t) || !Number.isSafeInteger(n) || n < 1 || n > Za) throw Error("recipient_policy_reconciliation_step_invalid");
2272
2272
  return e.prepare(to).all(t, n).map((e) => ({
2273
2273
  generation: e.generation,
2274
2274
  stepKey: e.step_key
2275
2275
  }));
2276
2276
  }
2277
2277
  function So(e, t, n = Za) {
2278
- if (!he(t) || !Number.isSafeInteger(n) || n < 1 || n > Za) throw Error("recipient_policy_reconciliation_step_invalid");
2278
+ if (!ge(t) || !Number.isSafeInteger(n) || n < 1 || n > Za) throw Error("recipient_policy_reconciliation_step_invalid");
2279
2279
  return e.prepare("SELECT generation, step_key FROM recipient_policy_reconciliation_steps\n WHERE canonical_project_identity = ?\n AND step_key GLOB 'refresh:*'\n AND status IN ('pending', 'running', 'failed')\n ORDER BY generation, step_key\n LIMIT ?").all(t, n).map((e) => ({
2280
2280
  generation: e.generation,
2281
2281
  stepKey: e.step_key
@@ -2283,7 +2283,7 @@ function So(e, t, n = Za) {
2283
2283
  }
2284
2284
  function Co(e, t) {
2285
2285
  let n = t.retainCompletedPerKind ?? Xa;
2286
- if (!he(t.canonicalProjectIdentity) || !Number.isSafeInteger(n) || n < 0) throw Error("recipient_policy_reconciliation_step_invalid");
2286
+ if (!ge(t.canonicalProjectIdentity) || !Number.isSafeInteger(n) || n < 0) throw Error("recipient_policy_reconciliation_step_invalid");
2287
2287
  let r = e.prepare("DELETE FROM recipient_policy_reconciliation_steps\n WHERE canonical_project_identity = ? AND status = 'completed' AND step_key GLOB ?\n AND rowid NOT IN (\n SELECT rowid FROM recipient_policy_reconciliation_steps\n WHERE canonical_project_identity = ? AND status = 'completed' AND step_key GLOB ?\n ORDER BY updated_at DESC, generation DESC, step_key DESC\n LIMIT ?\n )");
2288
2288
  return e.transaction(() => {
2289
2289
  let e = 0;
@@ -2292,12 +2292,12 @@ function Co(e, t) {
2292
2292
  }).immediate();
2293
2293
  }
2294
2294
  function wo(e, t) {
2295
- if (!he(t.canonicalProjectIdentity) || !Number.isSafeInteger(t.activeGeneration) || t.activeGeneration < 0 || !O(t.activePassKey)) throw Error("recipient_policy_reconciliation_step_invalid");
2295
+ if (!ge(t.canonicalProjectIdentity) || !Number.isSafeInteger(t.activeGeneration) || t.activeGeneration < 0 || !O(t.activePassKey)) throw Error("recipient_policy_reconciliation_step_invalid");
2296
2296
  let n = `capability:${t.activePassKey}:`;
2297
2297
  return e.prepare("DELETE FROM recipient_policy_reconciliation_steps\n WHERE canonical_project_identity = ?\n AND status IN ('pending', 'running', 'failed')\n AND step_key GLOB 'capability:*'\n AND (generation <> ? OR substr(step_key, 1, length(?)) <> ?)").run(t.canonicalProjectIdentity, t.activeGeneration, n, n).changes;
2298
2298
  }
2299
2299
  function To(e, t) {
2300
- if (!he(t.canonicalProjectIdentity) || !io(t.stepKey) || !Number.isSafeInteger(t.generation) || t.generation < 0) throw Error("recipient_policy_reconciliation_step_invalid");
2300
+ if (!ge(t.canonicalProjectIdentity) || !io(t.stepKey) || !Number.isSafeInteger(t.generation) || t.generation < 0) throw Error("recipient_policy_reconciliation_step_invalid");
2301
2301
  let n = yo(t), r = e.prepare("SELECT * FROM recipient_policy_reconciliation_steps\n WHERE canonical_project_identity = ? AND generation = ? AND step_key = ?").get(t.canonicalProjectIdentity, t.generation, t.stepKey);
2302
2302
  if (r) {
2303
2303
  let e = r.effect_id !== n && ["running", "failed"].includes(String(r.status));
@@ -2313,7 +2313,7 @@ function Eo(e, t) {
2313
2313
  return e.prepare("UPDATE recipient_policy_reconciliation_steps SET\n status = ?, attempt_count = ?, started_at = ?, completed_at = ?, last_attempt_at = ?,\n safe_error_code = ?, error_at = ?, lease_owner = ?, lease_acquired_at = ?,\n lease_expires_at = ?, updated_at = ?\n WHERE canonical_project_identity = ? AND generation = ? AND step_key = ? AND effect_id = ?").run(t.status, t.attemptCount, t.startedAt, t.completedAt, t.lastAttemptAt, t.safeErrorCode, t.errorAt, t.leaseOwner, t.leaseAcquiredAt, t.leaseExpiresAt, t.updatedAt, t.canonicalProjectIdentity, t.generation, t.stepKey, t.effectId), bo(e.prepare("SELECT * FROM recipient_policy_reconciliation_steps\n WHERE canonical_project_identity = ? AND generation = ? AND step_key = ?").get(t.canonicalProjectIdentity, t.generation, t.stepKey));
2314
2314
  }
2315
2315
  function Do(e, t) {
2316
- if (!he(t.canonicalProjectIdentity) || ![
2316
+ if (!ge(t.canonicalProjectIdentity) || ![
2317
2317
  t.scopeId,
2318
2318
  t.deviceId,
2319
2319
  t.reasonCode
@@ -8466,4 +8466,4 @@ async function mh(e, t, n, r) {
8466
8466
  //#endregion
8467
8467
  export { fc as $, Ua as $t, Hd as A, F as An, Gs as At, Iu as B, So as Bt, _f as C, Qn as Cn, Ac as Ct, mf as D, Xn as Dn, jc as Dt, uf as E, Ln as En, rs as Et, td as F, Kn as Fn, uo as Ft, Po as G, Do as Gt, Y as H, Oo as Ht, id as I, hn as In, po as It, Kc as J, Eo as Jt, Io as K, lo as Kt, ad as L, _n as Ln, yo as Lt, Cd as M, In as Mn, Mo as Mt, Fd as N, Rn as Nn, jo as Nt, pf as O, En as On, Us as Ot, Ld as P, Zn as Pn, ko as Pt, gs as Q, Ga as Qt, rd as R, yn as Rn, To as Rt, Tf as S, $n as Sn, Ss as St, df as T, or as Tn, fs as Tt, il as U, Co as Ut, Au as V, xo as Vt, Fo as W, wo as Wt, Fs as X, go as Xt, Lc as Y, _o as Yt, ss as Z, Ka as Zt, kp as _, Cr as _n, Ns as _t, Dm as a, Ur as an, ns as at, Cf as b, R as bn, Cs as bt, wm as c, Pr as cn, Mc as ct, Jf as d, Er as dn, Ts as dt, ua as en, Rs as et, cm as f, kr as fn, Fc as ft, im as g, L as gn, Is as gt, dm as h, xr as hn, Ks as ht, Tm as i, ia as in, ds as it, Td as j, Fn as jn, No as jt, ef as k, Yn as kn, Ws as kt, Em as l, jr as ln, js as lt, ap as m, Sr as mn, Ys as mt, mh as n, Ti as nn, ac as nt, km as o, Nr as on, Ms as ot, um as p, br as pn, Vo as pt, Xc as q, vo as qt, xm as r, da as rn, ic as rt, Cm as s, Mr as sn, _s as st, Zm as t, Zi as tn, hs as tt, lm as u, Or as un, Ds as ut, Rf as v, vr as vn, Ps as vt, ff as w, ur as wn, Js as wt, wf as x, dr as xn, vs as xt, lf as y, yr as yn, dc as yt, zu as z, ho as zt };
8468
8468
 
8469
- //# sourceMappingURL=sync-reachability-pass-BpDt2z4y.js.map
8469
+ //# sourceMappingURL=sync-reachability-pass-CUe5bK61.js.map