@serfab/cadre-core 0.9.0 → 0.11.0
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/README.md +255 -253
- package/dist/bootstrap-peer-store-file.d.ts +13 -0
- package/dist/bootstrap-peer-store-file.js +42 -0
- package/dist/bootstrap-peer-store-file.js.map +1 -0
- package/dist/bootstrap-peer-store.d.ts +73 -0
- package/dist/bootstrap-peer-store.js +128 -0
- package/dist/bootstrap-peer-store.js.map +1 -0
- package/dist/cadre-node.d.ts +1121 -81
- package/dist/cadre-node.js +2276 -262
- package/dist/cadre-node.js.map +1 -1
- package/dist/control-authorization.d.ts +93 -0
- package/dist/control-authorization.js +57 -0
- package/dist/control-authorization.js.map +1 -0
- package/dist/control-cohort.d.ts +26 -0
- package/dist/control-cohort.js +26 -0
- package/dist/control-cohort.js.map +1 -1
- package/dist/control-database.d.ts +959 -54
- package/dist/control-database.js +1421 -148
- package/dist/control-database.js.map +1 -1
- package/dist/control-formation-recorder.d.ts +90 -10
- package/dist/control-formation-recorder.js +130 -14
- package/dist/control-formation-recorder.js.map +1 -1
- package/dist/control-schema.d.ts +1 -1
- package/dist/control-schema.js +651 -72
- package/dist/control-schema.js.map +1 -1
- package/dist/control-stream.d.ts +38 -4
- package/dist/control-stream.js +70 -4
- package/dist/control-stream.js.map +1 -1
- package/dist/control-write-retry.d.ts +161 -0
- package/dist/control-write-retry.js +412 -0
- package/dist/control-write-retry.js.map +1 -0
- package/dist/delegate-admission.d.ts +134 -0
- package/dist/delegate-admission.js +244 -0
- package/dist/delegate-admission.js.map +1 -0
- package/dist/device-token.d.ts +11 -11
- package/dist/device-token.js +14 -13
- package/dist/device-token.js.map +1 -1
- package/dist/ed25519-key.d.ts +26 -0
- package/dist/ed25519-key.js +56 -1
- package/dist/ed25519-key.js.map +1 -1
- package/dist/file-durable-slot.d.ts +20 -0
- package/dist/file-durable-slot.js +53 -0
- package/dist/file-durable-slot.js.map +1 -0
- package/dist/formation-approval.d.ts +157 -0
- package/dist/formation-approval.js +375 -0
- package/dist/formation-approval.js.map +1 -0
- package/dist/fs-atomic.d.ts +38 -0
- package/dist/fs-atomic.js +97 -0
- package/dist/fs-atomic.js.map +1 -0
- package/dist/identity-key.d.ts +49 -0
- package/dist/identity-key.js +81 -0
- package/dist/identity-key.js.map +1 -0
- package/dist/index.d.ts +17 -7
- package/dist/index.js +40 -6
- package/dist/index.js.map +1 -1
- package/dist/key-store-file.d.ts +2 -24
- package/dist/key-store-file.js +10 -77
- package/dist/key-store-file.js.map +1 -1
- package/dist/membership-connection-gater.d.ts +146 -0
- package/dist/membership-connection-gater.js +180 -0
- package/dist/membership-connection-gater.js.map +1 -0
- package/dist/node-local-snapshot.d.ts +109 -0
- package/dist/node-local-snapshot.js +182 -0
- package/dist/node-local-snapshot.js.map +1 -0
- package/dist/peer-addr-book.d.ts +92 -0
- package/dist/peer-addr-book.js +220 -0
- package/dist/peer-addr-book.js.map +1 -0
- package/dist/peer-authorization.d.ts +135 -18
- package/dist/peer-authorization.js +152 -21
- package/dist/peer-authorization.js.map +1 -1
- package/dist/peer-record.d.ts +21 -8
- package/dist/peer-record.js +26 -10
- package/dist/peer-record.js.map +1 -1
- package/dist/relay-addrs.d.ts +45 -0
- package/dist/relay-addrs.js +103 -0
- package/dist/relay-addrs.js.map +1 -0
- package/dist/relay-reservation.d.ts +266 -0
- package/dist/relay-reservation.js +613 -0
- package/dist/relay-reservation.js.map +1 -0
- package/dist/seed-bootstrap.d.ts +228 -56
- package/dist/seed-bootstrap.js +340 -198
- package/dist/seed-bootstrap.js.map +1 -1
- package/dist/seed-trust-policy.d.ts +47 -21
- package/dist/seed-trust-policy.js +24 -15
- package/dist/seed-trust-policy.js.map +1 -1
- package/dist/strand-addr-protocol.d.ts +42 -13
- package/dist/strand-addr-protocol.js +58 -52
- package/dist/strand-addr-protocol.js.map +1 -1
- package/dist/strand-backfill.d.ts +109 -0
- package/dist/strand-backfill.js +279 -0
- package/dist/strand-backfill.js.map +1 -0
- package/dist/strand-cohort.d.ts +4 -37
- package/dist/strand-cohort.js +4 -15
- package/dist/strand-cohort.js.map +1 -1
- package/dist/strand-database.d.ts +11 -16
- package/dist/strand-database.js +19 -7
- package/dist/strand-database.js.map +1 -1
- package/dist/strand-formation-manager.d.ts +36 -7
- package/dist/strand-formation-manager.js +115 -15
- package/dist/strand-formation-manager.js.map +1 -1
- package/dist/strand-formation-protocol.d.ts +103 -4
- package/dist/strand-formation-protocol.js +232 -4
- package/dist/strand-formation-protocol.js.map +1 -1
- package/dist/strand-instance-manager.d.ts +88 -19
- package/dist/strand-instance-manager.js +178 -34
- package/dist/strand-instance-manager.js.map +1 -1
- package/dist/strand-member-registry.d.ts +5 -5
- package/dist/strand-member-registry.js +18 -10
- package/dist/strand-member-registry.js.map +1 -1
- package/dist/strand-membership-writer.d.ts +484 -88
- package/dist/strand-membership-writer.js +751 -128
- package/dist/strand-membership-writer.js.map +1 -1
- package/dist/strand-solicitation.d.ts +99 -33
- package/dist/strand-solicitation.js +100 -52
- package/dist/strand-solicitation.js.map +1 -1
- package/dist/strand-transport-key.d.ts +40 -0
- package/dist/strand-transport-key.js +56 -0
- package/dist/strand-transport-key.js.map +1 -0
- package/dist/strand-wake-protocol.d.ts +9 -7
- package/dist/strand-wake-protocol.js +22 -46
- package/dist/strand-wake-protocol.js.map +1 -1
- package/dist/strand-watcher.d.ts +17 -2
- package/dist/strand-watcher.js +47 -3
- package/dist/strand-watcher.js.map +1 -1
- package/dist/trusted-owner-store-file.d.ts +12 -0
- package/dist/trusted-owner-store-file.js +39 -0
- package/dist/trusted-owner-store-file.js.map +1 -0
- package/dist/trusted-owner-store.d.ts +64 -0
- package/dist/trusted-owner-store.js +126 -0
- package/dist/trusted-owner-store.js.map +1 -0
- package/dist/types.d.ts +307 -44
- package/dist/types.js +13 -0
- package/dist/types.js.map +1 -1
- package/package.json +20 -8
- package/src/arachnode-stub.ts +159 -159
- package/src/bootstrap-peer-store-file.ts +44 -0
- package/src/bootstrap-peer-store.ts +172 -0
- package/src/cadre-node.ts +5158 -2981
- package/src/canonical-json.ts +30 -30
- package/src/control-authorization.ts +114 -0
- package/src/control-cohort.ts +130 -103
- package/src/control-database.ts +2406 -948
- package/src/control-formation-recorder.ts +305 -151
- package/src/control-schema.ts +651 -72
- package/src/control-stream.ts +205 -128
- package/src/control-write-retry.ts +483 -0
- package/src/delegate-admission.ts +302 -0
- package/src/device-token.ts +94 -89
- package/src/diagnostics/connection-path.ts +277 -277
- package/src/diagnostics/webrtc-turn-tracker.ts +222 -222
- package/src/ed25519-key.ts +66 -1
- package/src/enrollment.ts +199 -199
- package/src/file-durable-slot.ts +61 -0
- package/src/formation-approval.ts +604 -0
- package/src/fs-atomic.ts +107 -0
- package/src/hibernation-manager.ts +437 -437
- package/src/identity-key.ts +109 -0
- package/src/index.ts +137 -5
- package/src/key-store-file.ts +132 -203
- package/src/key-store.ts +99 -99
- package/src/membership-connection-gater.ts +204 -0
- package/src/node-local-snapshot.ts +260 -0
- package/src/peer-addr-book.ts +250 -0
- package/src/peer-authorization.ts +259 -81
- package/src/peer-record.ts +164 -146
- package/src/push-credentials.ts +84 -84
- package/src/push-node.ts +64 -64
- package/src/push-notifier-apns.ts +247 -247
- package/src/push-notifier-fcm.ts +220 -220
- package/src/push-notifier-shared.ts +28 -28
- package/src/push-notifier.ts +52 -52
- package/src/relay-addrs.ts +111 -0
- package/src/relay-reservation.ts +823 -0
- package/src/seed-bootstrap.ts +409 -209
- package/src/seed-trust-policy.ts +140 -107
- package/src/strand-addr-protocol.ts +441 -410
- package/src/strand-backfill.ts +366 -0
- package/src/strand-cohort.ts +38 -77
- package/src/strand-database.ts +202 -204
- package/src/strand-formation-manager.ts +491 -368
- package/src/strand-formation-protocol.ts +692 -391
- package/src/strand-instance-manager.ts +201 -46
- package/src/strand-member-key.ts +39 -39
- package/src/strand-member-registry.ts +182 -177
- package/src/strand-membership-writer.ts +938 -146
- package/src/strand-solicitation.ts +472 -407
- package/src/strand-transport-key.ts +58 -0
- package/src/strand-wake-payload.ts +32 -32
- package/src/strand-wake-protocol.ts +314 -331
- package/src/strand-watcher.ts +314 -251
- package/src/trusted-owner-store-file.ts +41 -0
- package/src/trusted-owner-store.ts +171 -0
- package/src/types.ts +1309 -1032
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type DurableSlot } from './node-local-snapshot.js';
|
|
2
|
+
/** One retained cold-start dial target: an owner peer a seed nominated. */
|
|
3
|
+
export interface BootstrapPeerEntry {
|
|
4
|
+
/** Multiaddr strings exactly as the seed carried them (parsed at dial time). */
|
|
5
|
+
addrs: string[];
|
|
6
|
+
/** Wall-clock ms the entry was last recorded (diagnostics / future eviction). */
|
|
7
|
+
recordedAt: number;
|
|
8
|
+
}
|
|
9
|
+
export interface BootstrapPeerStore {
|
|
10
|
+
/** Party this store is scoped to. */
|
|
11
|
+
readonly partyId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Every retained target, peerId -> entry. Every backend copies the map per call,
|
|
14
|
+
* so the result is a snapshot decoupled from later {@link record} calls and is
|
|
15
|
+
* safe to iterate while recording. The entry objects need no copy: `record`
|
|
16
|
+
* REPLACES an entry rather than mutating it in place.
|
|
17
|
+
*/
|
|
18
|
+
all(): ReadonlyMap<string, BootstrapPeerEntry>;
|
|
19
|
+
/**
|
|
20
|
+
* Retain (or REPLACE) a peer's dial addresses. Replace, not merge, so a
|
|
21
|
+
* re-seed after an owner's address changed drops the stale address instead of
|
|
22
|
+
* accumulating dead ones.
|
|
23
|
+
*
|
|
24
|
+
* Implementations MUST reflect the entry in {@link all} SYNCHRONOUSLY; the
|
|
25
|
+
* returned promise tracks durability only. That is what lets the synchronous
|
|
26
|
+
* `CadreNode.recordSeedBootstrapPeers` keep its signature while a file
|
|
27
|
+
* backend persists in the background.
|
|
28
|
+
*
|
|
29
|
+
* NOTE: entries are never evicted, and a persistent backend's file therefore
|
|
30
|
+
* grows across the node's whole lifetime rather than one process. Fine while a
|
|
31
|
+
* seed nominates one or a few owners and entries are keyed by peer id; if a
|
|
32
|
+
* node ever applies seeds naming many distinct owners, add eviction (oldest
|
|
33
|
+
* {@link BootstrapPeerEntry.recordedAt} first, or a cap) rather than letting
|
|
34
|
+
* the file grow unbounded — `recordedAt` exists so eviction has something to
|
|
35
|
+
* sort by.
|
|
36
|
+
*/
|
|
37
|
+
record(peerId: string, addrs: readonly string[]): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Ephemeral in-memory store for nodes without durable storage (tests, browser
|
|
41
|
+
* demos, not-yet-persisted mobile). Same contract, no disk: a node using this
|
|
42
|
+
* loses its retry targets on restart and must be re-seeded to rejoin.
|
|
43
|
+
*/
|
|
44
|
+
export declare class MemoryBootstrapPeerStore implements BootstrapPeerStore {
|
|
45
|
+
readonly partyId: string;
|
|
46
|
+
private readonly peers;
|
|
47
|
+
constructor(partyId: string);
|
|
48
|
+
all(): ReadonlyMap<string, BootstrapPeerEntry>;
|
|
49
|
+
record(peerId: string, addrs: readonly string[]): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Durable {@link BootstrapPeerStore} over an app-supplied {@link DurableSlot} —
|
|
53
|
+
* the cross-platform half of every persistent backend (the Node
|
|
54
|
+
* `FileBootstrapPeerStore` is this class over a file slot).
|
|
55
|
+
*
|
|
56
|
+
* Construct via {@link open}. Load and persist policy — what an absent, corrupt,
|
|
57
|
+
* foreign-party or unreadable slot does, and what a failed persist does — is
|
|
58
|
+
* documented once on `NodeLocalSnapshot`; this class only supplies the payload
|
|
59
|
+
* shape and the drop-the-bad-entry policy above.
|
|
60
|
+
*/
|
|
61
|
+
export declare class PersistentBootstrapPeerStore implements BootstrapPeerStore {
|
|
62
|
+
private readonly snapshot;
|
|
63
|
+
private constructor();
|
|
64
|
+
/** Load (or cold-start) the party's retained dial targets from `slot`. */
|
|
65
|
+
static open(slot: DurableSlot, partyId: string): Promise<PersistentBootstrapPeerStore>;
|
|
66
|
+
get partyId(): string;
|
|
67
|
+
all(): ReadonlyMap<string, BootstrapPeerEntry>;
|
|
68
|
+
/**
|
|
69
|
+
* Retain a peer's dial addresses: visible via {@link all} synchronously, then
|
|
70
|
+
* the full snapshot is persisted (see `NodeLocalSnapshot.put`).
|
|
71
|
+
*/
|
|
72
|
+
record(peerId: string, addrs: readonly string[]): Promise<void>;
|
|
73
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node-local, NON-replicated cold-start bootstrap-peer store: the dial targets a
|
|
3
|
+
* node keeps so it can retry its way back into a party it has been seeded into
|
|
4
|
+
* but never managed to connect to.
|
|
5
|
+
*
|
|
6
|
+
* A newcomer applies a signed seed nominating the party's owner machines and the
|
|
7
|
+
* addresses they answer on. `SeedBootstrapService.applySeed` dials those owners
|
|
8
|
+
* exactly once, best-effort; when that dial fails (owner briefly down, relay
|
|
9
|
+
* reservation not up, not yet vouched) the node has an empty `CadrePeer` table
|
|
10
|
+
* and no connection, and `CadreNode.reconcileControlCohort`'s cold-start branch
|
|
11
|
+
* is the only way back — it re-dials these retained addresses every pass. Held
|
|
12
|
+
* only in memory, they die with the process and the node is stranded for good,
|
|
13
|
+
* which is what this store exists to prevent.
|
|
14
|
+
*
|
|
15
|
+
* Three implementations, mirroring `trusted-owner-store.ts` (read that first —
|
|
16
|
+
* it solves the same "must outlive the process, storage differs per platform"
|
|
17
|
+
* problem, the two stores are deliberately symmetrical, and both persistent
|
|
18
|
+
* forms share `node-local-snapshot.ts`):
|
|
19
|
+
* - {@link MemoryBootstrapPeerStore} (this module, cross-platform) — ephemeral;
|
|
20
|
+
* the default when no store is injected via `CadreNodeConfig.bootstrapPeers`.
|
|
21
|
+
* - {@link PersistentBootstrapPeerStore} (this module, cross-platform) — durable
|
|
22
|
+
* over any `DurableSlot` the embedding app supplies (IndexedDB, a LevelDB KV,
|
|
23
|
+
* SQLite, …).
|
|
24
|
+
* - `FileBootstrapPeerStore` — the above over a Node file in the node's state
|
|
25
|
+
* directory; Node-only, behind the subpath
|
|
26
|
+
* `@serfab/cadre-core/bootstrap-peer-store-file` (same isolation pattern as
|
|
27
|
+
* `key-store-file`) so `node:fs` never lands in the RN/browser entry graph.
|
|
28
|
+
*
|
|
29
|
+
* **Nothing here is trust-bearing, and a loader must not try to re-verify it.**
|
|
30
|
+
* Only *dial targets* are retained — never a seed, a signature, or an authority
|
|
31
|
+
* claim. The seed was signature-checked against the node-local trusted-owner
|
|
32
|
+
* anchor before its addresses were retained, and a dial grants no authority:
|
|
33
|
+
* `CadreNode.bootstrapDialAddrs` binds every address to the peer id it was
|
|
34
|
+
* retained under, so a dial cannot be redirected to whoever answers. What a
|
|
35
|
+
* persistent backend's loader DOES owe is dropping structurally junk entries
|
|
36
|
+
* (unparseable peer id, empty address list, non-string address) rather than
|
|
37
|
+
* carrying them into the dial loop.
|
|
38
|
+
*/
|
|
39
|
+
import debug from 'debug';
|
|
40
|
+
import { peerIdFromString } from '@libp2p/peer-id';
|
|
41
|
+
import { NodeLocalSnapshot } from './node-local-snapshot.js';
|
|
42
|
+
const log = debug('sereus:cadre:bootstrap-peer-store');
|
|
43
|
+
/**
|
|
44
|
+
* Ephemeral in-memory store for nodes without durable storage (tests, browser
|
|
45
|
+
* demos, not-yet-persisted mobile). Same contract, no disk: a node using this
|
|
46
|
+
* loses its retry targets on restart and must be re-seeded to rejoin.
|
|
47
|
+
*/
|
|
48
|
+
export class MemoryBootstrapPeerStore {
|
|
49
|
+
constructor(partyId) {
|
|
50
|
+
this.partyId = partyId;
|
|
51
|
+
this.peers = new Map();
|
|
52
|
+
}
|
|
53
|
+
all() {
|
|
54
|
+
return new Map(this.peers);
|
|
55
|
+
}
|
|
56
|
+
async record(peerId, addrs) {
|
|
57
|
+
this.peers.set(peerId, { addrs: [...addrs], recordedAt: Date.now() });
|
|
58
|
+
log('bootstrap peer retained (party=%s, peer=%s, addrs=%d)', this.partyId, peerId, addrs.length);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* What the store persists: `peers` maps peerId -> {@link BootstrapPeerEntry}.
|
|
63
|
+
*
|
|
64
|
+
* A structurally junk entry is DROPPED and its siblings retained — nothing here
|
|
65
|
+
* is trust-bearing (see the module comment) and the record is a stranded node's
|
|
66
|
+
* only way back into its party, so discarding the whole set over one bad entry
|
|
67
|
+
* would be strictly worse. What "junk" means: an unparseable peer id (the dial
|
|
68
|
+
* path binds every address to this id, so an id that cannot parse is not a dial
|
|
69
|
+
* target at all), an empty address list, or a non-string address — each would
|
|
70
|
+
* otherwise log a parse failure once per reconcile pass forever.
|
|
71
|
+
*/
|
|
72
|
+
const BOOTSTRAP_PEER_SNAPSHOT = {
|
|
73
|
+
label: 'bootstrap-peer store',
|
|
74
|
+
payloadKey: 'peers',
|
|
75
|
+
unusableEntry: 'drop-entry',
|
|
76
|
+
acceptEntry: (peerId, entry) => {
|
|
77
|
+
if (typeof entry !== 'object' || entry === null)
|
|
78
|
+
return undefined;
|
|
79
|
+
const { addrs, recordedAt } = entry;
|
|
80
|
+
if (!Array.isArray(addrs) || addrs.length === 0)
|
|
81
|
+
return undefined;
|
|
82
|
+
if (addrs.some((addr) => typeof addr !== 'string' || addr.length === 0))
|
|
83
|
+
return undefined;
|
|
84
|
+
if (typeof recordedAt !== 'number')
|
|
85
|
+
return undefined;
|
|
86
|
+
try {
|
|
87
|
+
peerIdFromString(peerId);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
return { addrs: [...addrs], recordedAt };
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Durable {@link BootstrapPeerStore} over an app-supplied {@link DurableSlot} —
|
|
97
|
+
* the cross-platform half of every persistent backend (the Node
|
|
98
|
+
* `FileBootstrapPeerStore` is this class over a file slot).
|
|
99
|
+
*
|
|
100
|
+
* Construct via {@link open}. Load and persist policy — what an absent, corrupt,
|
|
101
|
+
* foreign-party or unreadable slot does, and what a failed persist does — is
|
|
102
|
+
* documented once on `NodeLocalSnapshot`; this class only supplies the payload
|
|
103
|
+
* shape and the drop-the-bad-entry policy above.
|
|
104
|
+
*/
|
|
105
|
+
export class PersistentBootstrapPeerStore {
|
|
106
|
+
constructor(snapshot) {
|
|
107
|
+
this.snapshot = snapshot;
|
|
108
|
+
}
|
|
109
|
+
/** Load (or cold-start) the party's retained dial targets from `slot`. */
|
|
110
|
+
static async open(slot, partyId) {
|
|
111
|
+
return new PersistentBootstrapPeerStore(await NodeLocalSnapshot.open(slot, partyId, BOOTSTRAP_PEER_SNAPSHOT));
|
|
112
|
+
}
|
|
113
|
+
get partyId() {
|
|
114
|
+
return this.snapshot.partyId;
|
|
115
|
+
}
|
|
116
|
+
all() {
|
|
117
|
+
return this.snapshot.entrySnapshot();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Retain a peer's dial addresses: visible via {@link all} synchronously, then
|
|
121
|
+
* the full snapshot is persisted (see `NodeLocalSnapshot.put`).
|
|
122
|
+
*/
|
|
123
|
+
record(peerId, addrs) {
|
|
124
|
+
log('bootstrap peer retained (party=%s, peer=%s, addrs=%d); persisting', this.partyId, peerId, addrs.length);
|
|
125
|
+
return this.snapshot.put(peerId, { addrs: [...addrs], recordedAt: Date.now() });
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=bootstrap-peer-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-peer-store.js","sourceRoot":"","sources":["../src/bootstrap-peer-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAgD,MAAM,0BAA0B,CAAC;AAE3G,MAAM,GAAG,GAAG,KAAK,CAAC,mC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