@codemem/core 0.49.0-beta.1 → 0.49.0-beta.2
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.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-link-status-client.d.ts +4 -0
- package/dist/coordinator-account-link-status-client.d.ts.map +1 -1
- package/dist/coordinator-api.d.ts.map +1 -1
- package/dist/coordinator-auth-device-claim-eligibility.d.ts +12 -1
- package/dist/coordinator-auth-device-claim-eligibility.d.ts.map +1 -1
- package/dist/coordinator-auth-historical-store-test-fixture.d.ts.map +1 -1
- package/dist/coordinator-auth-link.d.ts +1 -0
- package/dist/coordinator-auth-link.d.ts.map +1 -1
- 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 +21 -0
- package/dist/coordinator-device-claim-binding-reuse.d.ts.map +1 -0
- package/dist/coordinator-device-claim-binding-sql.d.ts +32 -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-rebind-browser.d.ts +1 -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-self-bind-authority.d.ts +20 -0
- package/dist/coordinator-device-self-bind-authority.d.ts.map +1 -0
- package/dist/coordinator-device-self-bind-test-fixtures.d.ts +103 -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-runtime-Bdad5KeL.js → coordinator-runtime-kbPwxxKq.js} +3 -3
- package/dist/{coordinator-runtime-Bdad5KeL.js.map → coordinator-runtime-kbPwxxKq.js.map} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5222 -5059
- 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 +295 -295
- 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 +69 -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-BtoRKf3z.js} +2469 -2254
- package/dist/owner-enrollment-start-BtoRKf3z.js.map +1 -0
- 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-peer-client-DdhDwDFz.js → relay-peer-client-0XpekgnZ.js} +2076 -2067
- package/dist/relay-peer-client-0XpekgnZ.js.map +1 -0
- package/dist/{sync-auth-constants-WKqJ9CX5.js → sync-auth-constants-DvALG0T0.js} +2339 -1987
- package/dist/sync-auth-constants-DvALG0T0.js.map +1 -0
- package/dist/sync-reachability-pass-Bi4GBi-x.js +2 -0
- package/dist/{sync-reachability-pass-CSg85Qmd.js → sync-reachability-pass-BpDt2z4y.js} +3 -3
- package/dist/{sync-reachability-pass-CSg85Qmd.js.map → sync-reachability-pass-BpDt2z4y.js.map} +1 -1
- 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 { Dt as e, Et as t, Tt as n, wt as r } from "../scope-membership-cache-read-B6z47l2W.js";
|
|
2
2
|
import { n as i, t as a } from "../relay-ed25519-BNMhPehl.js";
|
|
3
|
-
import { B as o, R as s, U as c, t as l, z as u } from "../relay-peer-client-
|
|
3
|
+
import { B as o, R as s, U as c, t as l, z as u } from "../relay-peer-client-0XpekgnZ.js";
|
|
4
4
|
import { a as d, i as f, o as p, s as m } from "../relay-admission-reply-CHCEakzd.js";
|
|
5
5
|
import { n as h } from "../relay-health-zrKtNQLQ.js";
|
|
6
|
-
import { u as g } from "../coordinator-runtime-
|
|
6
|
+
import { u as g } from "../coordinator-runtime-kbPwxxKq.js";
|
|
7
7
|
import { a as _, i as v, r as y, s as b } from "../relay-quota-sqlite-C1th1yVy.js";
|
|
8
8
|
import { a as x, i as S, o as C, t as w } from "../relay-server-CLNJrfOV.js";
|
|
9
9
|
import { createServer as T } from "node:http";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createCoordinatorApp } from "./coordinator-api.js";
|
|
2
|
+
import { type Backend, setupStore } from "./coordinator-auth-store-test-fixtures.js";
|
|
3
|
+
import { type DeviceKey } from "./coordinator-device-headless-link-test-fixtures.js";
|
|
4
|
+
import { reconcileCoordinatorEnrollmentSnapshot } from "./coordinator-enrollment-reconciler.js";
|
|
5
|
+
import { type Database } from "./db.js";
|
|
6
|
+
import { deriveRecipientPolicyEffectiveDevicesFromDatabase } from "./recipient-policy-reconciliation.js";
|
|
7
|
+
export declare const LEGACY_SETUP: {
|
|
8
|
+
readonly coordinatorId: string;
|
|
9
|
+
readonly groupId: "group-a";
|
|
10
|
+
readonly identityId: "local:device-a";
|
|
11
|
+
readonly project: "https://git.example.test/fixture/shared.git";
|
|
12
|
+
readonly excludedProject: "https://git.example.test/fixture/team-only.git";
|
|
13
|
+
readonly reviewedProject: "https://git.example.test/fixture/reviewed-only.git";
|
|
14
|
+
readonly teamId: "fixture-team";
|
|
15
|
+
readonly reviewedTeamId: "fixture-reviewed-team";
|
|
16
|
+
readonly now: string;
|
|
17
|
+
};
|
|
18
|
+
declare function seedHistoricalOwnAccount(f: ReturnType<typeof setupStore>, key: DeviceKey, authority: "device_claim" | "controller_attestation"): Promise<{
|
|
19
|
+
signer: {
|
|
20
|
+
deviceId: string;
|
|
21
|
+
publicKey: string;
|
|
22
|
+
fingerprint: string;
|
|
23
|
+
groupId: "group-a";
|
|
24
|
+
};
|
|
25
|
+
config: import("./coordinator-auth-link-contract.js").CoordinatorAuthLinkConfig;
|
|
26
|
+
}>;
|
|
27
|
+
/** Persisted policy intent and attribution, separate from mutable setup evidence. */
|
|
28
|
+
export declare function legacySetupPreservationSnapshot(db: Database): {
|
|
29
|
+
rows: {
|
|
30
|
+
table: string;
|
|
31
|
+
rows: unknown[];
|
|
32
|
+
}[];
|
|
33
|
+
digest: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function legacySetupEvidenceSnapshot(coordinator: ReturnType<typeof setupStore>, local: Database): {
|
|
36
|
+
rows: {
|
|
37
|
+
table: string;
|
|
38
|
+
rows: unknown[];
|
|
39
|
+
}[];
|
|
40
|
+
localRows: {
|
|
41
|
+
table: string;
|
|
42
|
+
rows: unknown[];
|
|
43
|
+
}[];
|
|
44
|
+
digest: string;
|
|
45
|
+
};
|
|
46
|
+
export declare function linkedLegacySetupFixture(backend: Backend, options?: {
|
|
47
|
+
localDatabasePath?: string;
|
|
48
|
+
coordinatorDatabasePath?: string;
|
|
49
|
+
accountAuthority?: "device_claim" | "controller_attestation";
|
|
50
|
+
authConfigured?: boolean;
|
|
51
|
+
adminSecret?: string;
|
|
52
|
+
authRedirectUri?: string;
|
|
53
|
+
}): Promise<LinkedLegacySetupFixture>;
|
|
54
|
+
export interface LinkedLegacySetupFixture {
|
|
55
|
+
coordinator: ReturnType<typeof setupStore>;
|
|
56
|
+
local: Database;
|
|
57
|
+
keyA: DeviceKey;
|
|
58
|
+
keyB: DeviceKey;
|
|
59
|
+
account: Awaited<ReturnType<typeof seedHistoricalOwnAccount>>;
|
|
60
|
+
app: ReturnType<typeof createCoordinatorApp>;
|
|
61
|
+
signed(key: DeviceKey, method: string, path: string, value?: unknown): Response | Promise<Response>;
|
|
62
|
+
before: ReturnType<typeof legacySetupPreservationSnapshot>;
|
|
63
|
+
evidenceBefore: ReturnType<typeof legacySetupEvidenceSnapshot>;
|
|
64
|
+
recipients(project?: string): ReturnType<typeof deriveRecipientPolicyEffectiveDevicesFromDatabase>;
|
|
65
|
+
reconcile(): ReturnType<typeof reconcileCoordinatorEnrollmentSnapshot>;
|
|
66
|
+
close(): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=linked-legacy-setup-test-fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-legacy-setup-test-fixtures.d.ts","sourceRoot":"","sources":["../src/linked-legacy-setup-test-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,OAAO,EAAE,KAAK,OAAO,EAAU,UAAU,EAAE,MAAM,2CA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B;IACxC,WAAW,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IAC3C,KAAK,EAAE,QAAQ,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;IAC9D,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC7C,MAAM,CACL,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,OAAO,GACb,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;IAC3D,cAAc,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;IAC/D,UAAU,CACT,OAAO,CAAC,EAAE,MAAM,GACd,UAAU,CAAC,OAAO,iDAAiD,CAAC,CAAC;IACxE,SAAS,IAAI,UAAU,CAAC,OAAO,sCAAsC,CAAC,CAAC;IACvE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB"}
|
|
@@ -25,7 +25,10 @@ export interface OperationalStatusSnapshot {
|
|
|
25
25
|
observer: {
|
|
26
26
|
available: boolean;
|
|
27
27
|
failed_batches: number;
|
|
28
|
+
/** @deprecated Historical failed/error count, not evidence of an active runtime pause. */
|
|
28
29
|
backoff_batches: number;
|
|
30
|
+
/** Failed/error rows within the requested window. Does not predict retry eligibility. */
|
|
31
|
+
recent_failed_batches: number;
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
/** Collect bounded operational aggregates from an already-open database without writing schema. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational-status.d.ts","sourceRoot":"","sources":["../src/operational-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,QAAQ,EAAe,MAAM,SAAS,CAAC;AAInE,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AACpF,MAAM,MAAM,wBAAwB,GACjC,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,SAAS,CAAC;AAEb,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE;QACL,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,OAAO,CAAC;QACtB,eAAe,EAAE,OAAO,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,WAAW,EAAE;QACZ,KAAK,EAAE,2BAA2B,CAAC;QACnC,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,cAAc,EAAE;QACf,KAAK,EAAE,wBAAwB,CAAC;QAChC,oBAAoB,EAAE,OAAO,CAAC;KAC9B,CAAC;IACF,UAAU,EAAE;QACX,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,QAAQ,EAAE;QACT,SAAS,EAAE,OAAO,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"operational-status.d.ts","sourceRoot":"","sources":["../src/operational-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,QAAQ,EAAe,MAAM,SAAS,CAAC;AAInE,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AACpF,MAAM,MAAM,wBAAwB,GACjC,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,SAAS,CAAC;AAEb,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE;QACL,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,OAAO,CAAC;QAC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