@codemem/core 0.49.0-beta.1 → 0.49.0-beta.3
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/better-sqlite-coordinator-store.d.ts +21 -2
- package/dist/better-sqlite-coordinator-store.d.ts.map +1 -1
- package/dist/coordinator-account-change-authority.d.ts +56 -0
- package/dist/coordinator-account-change-authority.d.ts.map +1 -0
- package/dist/coordinator-account-change-decision.d.ts +141 -0
- package/dist/coordinator-account-change-decision.d.ts.map +1 -0
- package/dist/coordinator-account-change-http-test-fixtures.d.ts +3 -1
- package/dist/coordinator-account-change-http-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-account-change-original-sql-test-fixtures.d.ts +61 -0
- package/dist/coordinator-account-change-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-account-change.d.ts +7 -1
- package/dist/coordinator-account-change.d.ts.map +1 -1
- package/dist/coordinator-account-connection-link.d.ts +1 -1
- package/dist/coordinator-account-connection-link.d.ts.map +1 -1
- package/dist/coordinator-account-connection-schema.d.ts +31 -0
- package/dist/coordinator-account-connection-schema.d.ts.map +1 -1
- package/dist/coordinator-account-connection-session.d.ts +9 -0
- package/dist/coordinator-account-connection-session.d.ts.map +1 -1
- package/dist/coordinator-account-historical-revoke-original-sql-test-fixtures.d.ts +7 -0
- package/dist/coordinator-account-historical-revoke-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-account-historical-revoke.d.ts +8 -2
- package/dist/coordinator-account-historical-revoke.d.ts.map +1 -1
- package/dist/coordinator-account-link-status-client.d.ts +4 -0
- package/dist/coordinator-account-link-status-client.d.ts.map +1 -1
- package/dist/coordinator-account-link-status.d.ts.map +1 -1
- package/dist/coordinator-account-schema-sqlite-test-fixtures.d.ts +58 -0
- package/dist/coordinator-account-schema-sqlite-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-account-schema-test-fixtures.d.ts +20 -0
- package/dist/coordinator-account-schema-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-api.d.ts.map +1 -1
- package/dist/coordinator-auth-browser-owner-purpose-test-harness.d.ts.map +1 -1
- package/dist/coordinator-auth-browser-transaction-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-auth-browser-transaction.d.ts.map +1 -1
- package/dist/coordinator-auth-controller-consistency-test-fixtures.d.ts +5 -1
- package/dist/coordinator-auth-controller-consistency-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-auth-controller-history.d.ts +0 -1
- package/dist/coordinator-auth-controller-history.d.ts.map +1 -1
- package/dist/coordinator-auth-controller-original-sql-test-fixtures.d.ts +41 -0
- package/dist/coordinator-auth-controller-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-auth-controller-owner.d.ts +0 -6
- package/dist/coordinator-auth-controller-owner.d.ts.map +1 -1
- package/dist/coordinator-auth-controller-race-test-fixtures.d.ts +38 -0
- package/dist/coordinator-auth-controller-race-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-auth-controller-read-set.d.ts +47 -0
- package/dist/coordinator-auth-controller-read-set.d.ts.map +1 -0
- package/dist/coordinator-auth-controller-stages-original-sql-test-fixtures.d.ts +8 -0
- package/dist/coordinator-auth-controller-stages-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-auth-controller.d.ts +1 -21
- package/dist/coordinator-auth-controller.d.ts.map +1 -1
- package/dist/coordinator-auth-device-claim-eligibility.d.ts +51 -2
- package/dist/coordinator-auth-device-claim-eligibility.d.ts.map +1 -1
- package/dist/coordinator-auth-historical-store-test-fixture.d.ts +2 -0
- package/dist/coordinator-auth-historical-store-test-fixture.d.ts.map +1 -1
- package/dist/coordinator-auth-legacy-assignment.d.ts +4 -2
- package/dist/coordinator-auth-legacy-assignment.d.ts.map +1 -1
- package/dist/coordinator-auth-link-authority-upgrade.d.ts +5 -0
- package/dist/coordinator-auth-link-authority-upgrade.d.ts.map +1 -1
- package/dist/coordinator-auth-link-maintenance-fixtures.d.ts +2 -2
- package/dist/coordinator-auth-link-maintenance-fixtures.d.ts.map +1 -1
- package/dist/coordinator-auth-link-provenance.d.ts.map +1 -1
- package/dist/coordinator-auth-link-revocation-test-harness.d.ts.map +1 -1
- package/dist/coordinator-auth-link-test-fixtures.d.ts +26 -4
- package/dist/coordinator-auth-link-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-auth-link.d.ts +5 -0
- package/dist/coordinator-auth-link.d.ts.map +1 -1
- package/dist/coordinator-auth-read-set.d.ts +99 -0
- package/dist/coordinator-auth-read-set.d.ts.map +1 -0
- package/dist/coordinator-auth-schema-stage.d.ts +36 -0
- package/dist/coordinator-auth-schema-stage.d.ts.map +1 -0
- package/dist/coordinator-auth-schema.d.ts.map +1 -1
- package/dist/coordinator-auth-session.d.ts.map +1 -1
- package/dist/coordinator-auth-store-test-fixtures.d.ts +12 -0
- package/dist/coordinator-auth-store-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-controller-revocation-test-harness.d.ts.map +1 -1
- package/dist/coordinator-d1-schema-inventory.d.ts +10 -0
- package/dist/coordinator-d1-schema-inventory.d.ts.map +1 -0
- package/dist/coordinator-device-claim-binding-contract.d.ts +37 -0
- package/dist/coordinator-device-claim-binding-contract.d.ts.map +1 -0
- package/dist/coordinator-device-claim-binding-reuse.d.ts +23 -0
- package/dist/coordinator-device-claim-binding-reuse.d.ts.map +1 -0
- package/dist/coordinator-device-claim-binding-sql.d.ts +40 -0
- package/dist/coordinator-device-claim-binding-sql.d.ts.map +1 -0
- package/dist/coordinator-device-claim-binding.d.ts +21 -0
- package/dist/coordinator-device-claim-binding.d.ts.map +1 -0
- package/dist/coordinator-device-ownership-evidence-original-sql-test-fixtures.d.ts +88 -0
- package/dist/coordinator-device-ownership-evidence-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-device-ownership-evidence-queries.d.ts +4 -14
- package/dist/coordinator-device-ownership-evidence-queries.d.ts.map +1 -1
- package/dist/coordinator-device-ownership-evidence-test-fixtures.d.ts +10 -0
- package/dist/coordinator-device-ownership-evidence-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-device-ownership-evidence.d.ts +11 -3
- package/dist/coordinator-device-ownership-evidence.d.ts.map +1 -1
- package/dist/coordinator-device-rebind-ceremony.d.ts +2 -1
- package/dist/coordinator-device-rebind-ceremony.d.ts.map +1 -1
- package/dist/coordinator-device-rebind-commit.d.ts.map +1 -1
- package/dist/coordinator-device-rebind-proof.d.ts +1 -0
- package/dist/coordinator-device-rebind-proof.d.ts.map +1 -1
- package/dist/coordinator-device-rebind-schema.d.ts +4 -3
- package/dist/coordinator-device-rebind-schema.d.ts.map +1 -1
- package/dist/coordinator-device-rebind-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-device-self-bind-authority.d.ts +29 -0
- package/dist/coordinator-device-self-bind-authority.d.ts.map +1 -0
- package/dist/coordinator-device-self-bind-decision.d.ts +84 -0
- package/dist/coordinator-device-self-bind-decision.d.ts.map +1 -0
- package/dist/coordinator-device-self-bind-original-sql-test-fixtures.d.ts +17 -0
- package/dist/coordinator-device-self-bind-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-device-self-bind-test-fixtures.d.ts +114 -0
- package/dist/coordinator-device-self-bind-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-device-setup-client.d.ts +26 -0
- package/dist/coordinator-device-setup-client.d.ts.map +1 -0
- package/dist/coordinator-device-setup-http.d.ts +9 -0
- package/dist/coordinator-device-setup-http.d.ts.map +1 -0
- package/dist/coordinator-history-sql-equivalence-test-fixtures.d.ts +6 -2
- package/dist/coordinator-history-sql-equivalence-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-legacy-completion-owner-proof-original-sql-test-fixtures.d.ts +77 -0
- package/dist/coordinator-legacy-completion-owner-proof-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-legacy-completion-owner-proof-test-fixtures.d.ts +46 -0
- package/dist/coordinator-legacy-completion-owner-proof-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-legacy-completion-owner-proof.d.ts +19 -2
- package/dist/coordinator-legacy-completion-owner-proof.d.ts.map +1 -1
- package/dist/coordinator-legacy-owner-compatibility.d.ts +23 -0
- package/dist/coordinator-legacy-owner-compatibility.d.ts.map +1 -1
- package/dist/coordinator-legacy-owner-resolution-commit-original-sql-test-fixtures.d.ts +63 -0
- package/dist/coordinator-legacy-owner-resolution-commit-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-legacy-owner-resolution-commit-test-fixtures.d.ts +3 -1
- package/dist/coordinator-legacy-owner-resolution-commit-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-legacy-owner-resolution-commit.d.ts.map +1 -1
- package/dist/coordinator-owner-enrollment-commit.d.ts.map +1 -1
- package/dist/coordinator-owner-enrollment-historical-test-fixture.d.ts +2 -0
- package/dist/coordinator-owner-enrollment-historical-test-fixture.d.ts.map +1 -1
- package/dist/coordinator-owner-enrollment-start-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-owner-negative-consistency.d.ts +11 -17
- package/dist/coordinator-owner-negative-consistency.d.ts.map +1 -1
- package/dist/coordinator-owner-negative-original-sql-test-fixtures.d.ts +44 -0
- package/dist/coordinator-owner-negative-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-owner-negative-race-test-fixtures.d.ts +26 -0
- package/dist/coordinator-owner-negative-race-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-owner-negative-read-set.d.ts +43 -0
- package/dist/coordinator-owner-negative-read-set.d.ts.map +1 -0
- package/dist/coordinator-owner-negative-reads.d.ts +32 -0
- package/dist/coordinator-owner-negative-reads.d.ts.map +1 -0
- package/dist/coordinator-owner-producer-original-sql-test-fixtures.d.ts +26 -0
- package/dist/coordinator-owner-producer-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-owner-resolution-review-test-fixtures.d.ts +1 -0
- package/dist/coordinator-owner-resolution-review-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-owner-resolution-review.d.ts +1 -0
- package/dist/coordinator-owner-resolution-review.d.ts.map +1 -1
- package/dist/coordinator-producer-negative-owner-test-fixtures.d.ts +8 -2
- package/dist/coordinator-producer-negative-owner-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-recipient-negative-race-test-fixtures.d.ts +54 -0
- package/dist/coordinator-recipient-negative-race-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-recipient-owner-consistency.d.ts +4 -5
- package/dist/coordinator-recipient-owner-consistency.d.ts.map +1 -1
- package/dist/coordinator-recipient-owner-original-sql-test-fixtures.d.ts +30 -0
- package/dist/coordinator-recipient-owner-original-sql-test-fixtures.d.ts.map +1 -0
- package/dist/coordinator-resolved-account-owner-status-query.d.ts +4 -1
- package/dist/coordinator-resolved-account-owner-status-query.d.ts.map +1 -1
- package/dist/coordinator-resolved-account-owner-status-test-fixtures.d.ts +1 -0
- package/dist/coordinator-resolved-account-owner-status-test-fixtures.d.ts.map +1 -1
- package/dist/coordinator-resolved-account-owner-status.d.ts +2 -0
- package/dist/coordinator-resolved-account-owner-status.d.ts.map +1 -1
- package/dist/{coordinator-runtime-Bdad5KeL.js → coordinator-runtime-BXJQAKFD.js} +3 -3
- package/dist/{coordinator-runtime-Bdad5KeL.js.map → coordinator-runtime-BXJQAKFD.js.map} +1 -1
- package/dist/coordinator-sql-compare.d.ts +22 -0
- package/dist/coordinator-sql-compare.d.ts.map +1 -0
- package/dist/d1-coordinator-store.d.ts +16 -1
- package/dist/d1-coordinator-store.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9048 -8412
- package/dist/index.js.map +1 -1
- package/dist/ingest-events.d.ts.map +1 -1
- package/dist/ingest-pipeline.d.ts +38 -2
- package/dist/ingest-pipeline.d.ts.map +1 -1
- package/dist/internal/cloudflare-coordinator.js +1079 -1074
- package/dist/internal/cloudflare-coordinator.js.map +1 -1
- package/dist/internal/relay-runtime.js +2 -2
- package/dist/linked-legacy-setup-test-fixtures.d.ts +71 -0
- package/dist/linked-legacy-setup-test-fixtures.d.ts.map +1 -0
- package/dist/operational-status.d.ts +3 -0
- package/dist/operational-status.d.ts.map +1 -1
- package/dist/{owner-enrollment-start-DgToUaFZ.js → owner-enrollment-start-BFyBKWvZ.js} +2731 -2315
- package/dist/owner-enrollment-start-BFyBKWvZ.js.map +1 -0
- package/dist/owner-enrollment-start.d.ts.map +1 -1
- package/dist/owner-qualified-consumer-access-test-harness.d.ts.map +1 -1
- package/dist/owner-qualified-consumer-adversarial-test-harness.d.ts +1 -1
- package/dist/owner-qualified-consumer-adversarial-test-harness.d.ts.map +1 -1
- package/dist/owner-qualified-consumer-test-harness.d.ts +3 -0
- package/dist/owner-qualified-consumer-test-harness.d.ts.map +1 -1
- package/dist/owner-qualified-headless-test-harness.d.ts +1 -1
- package/dist/owner-qualified-headless-test-harness.d.ts.map +1 -1
- package/dist/project-scope-settings.d.ts.map +1 -1
- package/dist/raw-event-flush.d.ts.map +1 -1
- package/dist/relay-admission-table-keys-test-fixtures.d.ts +2 -1
- package/dist/relay-admission-table-keys-test-fixtures.d.ts.map +1 -1
- package/dist/{relay-peer-client-DdhDwDFz.js → relay-peer-client-DrTb2oZt.js} +2650 -2627
- package/dist/relay-peer-client-DrTb2oZt.js.map +1 -0
- package/dist/{sync-auth-constants-WKqJ9CX5.js → sync-auth-constants-BVzVfSmn.js} +4476 -3521
- package/dist/sync-auth-constants-BVzVfSmn.js.map +1 -0
- package/dist/{sync-reachability-pass-CSg85Qmd.js → sync-reachability-pass-CUe5bK61.js} +12 -12
- package/dist/{sync-reachability-pass-CSg85Qmd.js.map → sync-reachability-pass-CUe5bK61.js.map} +1 -1
- package/dist/sync-reachability-pass-D9cA54fj.js +2 -0
- package/package.json +3 -3
- package/dist/owner-enrollment-start-DgToUaFZ.js.map +0 -1
- package/dist/relay-peer-client-DdhDwDFz.js.map +0 -1
- package/dist/sync-auth-constants-WKqJ9CX5.js.map +0 -1
- package/dist/sync-reachability-pass-CQe7nZnN.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 {
|
|
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-
|
|
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 =
|
|
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
|
-
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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-
|
|
8469
|
+
//# sourceMappingURL=sync-reachability-pass-CUe5bK61.js.map
|