@substrat-run/kernel 0.216.0 → 0.217.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/dist/attachment-gate.d.ts +42 -0
- package/dist/attachment-gate.d.ts.map +1 -0
- package/dist/attachment-gate.js +36 -0
- package/dist/attachment-gate.js.map +1 -0
- package/dist/broker-erasure.d.ts +51 -0
- package/dist/broker-erasure.d.ts.map +1 -0
- package/dist/broker-erasure.js +161 -0
- package/dist/broker-erasure.js.map +1 -0
- package/dist/broker-relay-erasure.d.ts +27 -0
- package/dist/broker-relay-erasure.d.ts.map +1 -0
- package/dist/broker-relay-erasure.js +115 -0
- package/dist/broker-relay-erasure.js.map +1 -0
- package/dist/broker-relay.d.ts +292 -0
- package/dist/broker-relay.d.ts.map +1 -0
- package/dist/broker-relay.js +494 -0
- package/dist/broker-relay.js.map +1 -0
- package/dist/broker-schema.d.ts +25 -0
- package/dist/broker-schema.d.ts.map +1 -0
- package/dist/broker-schema.js +198 -0
- package/dist/broker-schema.js.map +1 -0
- package/dist/broker-telemetry.d.ts +288 -0
- package/dist/broker-telemetry.d.ts.map +1 -0
- package/dist/broker-telemetry.js +334 -0
- package/dist/broker-telemetry.js.map +1 -0
- package/dist/cost-rollup.d.ts +6 -0
- package/dist/cost-rollup.d.ts.map +1 -1
- package/dist/cost-rollup.js +22 -1
- package/dist/cost-rollup.js.map +1 -1
- package/dist/delivery-broker.d.ts +278 -0
- package/dist/delivery-broker.d.ts.map +1 -0
- package/dist/delivery-broker.js +516 -0
- package/dist/delivery-broker.js.map +1 -0
- package/dist/delivery-policy.d.ts +105 -0
- package/dist/delivery-policy.d.ts.map +1 -0
- package/dist/delivery-policy.js +105 -0
- package/dist/delivery-policy.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/job-run.d.ts +21 -1
- package/dist/job-run.d.ts.map +1 -1
- package/dist/job-run.js +6 -0
- package/dist/job-run.js.map +1 -1
- package/dist/outbox-prune.d.ts +8 -1
- package/dist/outbox-prune.d.ts.map +1 -1
- package/dist/outbox-prune.js +6 -2
- package/dist/outbox-prune.js.map +1 -1
- package/dist/platform-sweep.d.ts +10 -1
- package/dist/platform-sweep.d.ts.map +1 -1
- package/dist/platform-sweep.js +37 -1
- package/dist/platform-sweep.js.map +1 -1
- package/dist/scope-host.d.ts +33 -8
- package/dist/scope-host.d.ts.map +1 -1
- package/dist/scope-host.js.map +1 -1
- package/dist/store-driver-releases.d.ts +9 -2
- package/dist/store-driver-releases.d.ts.map +1 -1
- package/dist/store-driver-releases.js +12 -7
- package/dist/store-driver-releases.js.map +1 -1
- package/dist/subject-keys.d.ts +7 -0
- package/dist/subject-keys.d.ts.map +1 -1
- package/dist/subject-keys.js +29 -5
- package/dist/subject-keys.js.map +1 -1
- package/dist/subject-redaction.d.ts +7 -0
- package/dist/subject-redaction.d.ts.map +1 -1
- package/dist/subject-redaction.js +34 -27
- package/dist/subject-redaction.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { type BrokerErasure, type BrokerErasureTarget } from './broker-erasure.js';
|
|
2
|
+
import { type BrokerTiming, type DeliveryPolicyInput, type FailureClass } from './delivery-policy.js';
|
|
3
|
+
/** What a scope hands off: an event it emitted, or a platform intent it raised. */
|
|
4
|
+
export type BrokerMessageKind = 'event' | 'intent';
|
|
5
|
+
export declare const BROKER_MESSAGE_KINDS: readonly BrokerMessageKind[];
|
|
6
|
+
export interface BrokerMessage {
|
|
7
|
+
/** The row's own id: the outbox event's, or the intent's. Dedup is by this, per broker. */
|
|
8
|
+
id: string;
|
|
9
|
+
kind: BrokerMessageKind;
|
|
10
|
+
tenantId: string;
|
|
11
|
+
scopeId: string;
|
|
12
|
+
/** The event's `type`, or the intent's `kind`. */
|
|
13
|
+
type: string;
|
|
14
|
+
/** The row, as JSON text. The broker carries it and never parses it. */
|
|
15
|
+
body: string;
|
|
16
|
+
/** When the row committed: the event's `occurred_at`, the intent's `requested_at`. */
|
|
17
|
+
committedAt: string;
|
|
18
|
+
/**
|
|
19
|
+
* The sender's ordering key (RFC §4.5): at a receiver whose subscription asks for order, messages
|
|
20
|
+
* with one key are delivered one at a time, in id order. Absent: unordered everywhere.
|
|
21
|
+
*/
|
|
22
|
+
key?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The broker's answer to a handoff: every id it now holds, a duplicate included. */
|
|
25
|
+
export interface HandOffAnswer {
|
|
26
|
+
acked: string[];
|
|
27
|
+
}
|
|
28
|
+
/** The greatest id handed off and acknowledged, per kind. Absent: nothing yet. */
|
|
29
|
+
export type HandoffMarks = Partial<Record<BrokerMessageKind, string>>;
|
|
30
|
+
/** One broker, as a scope reaches it. */
|
|
31
|
+
export interface DeliveryBroker {
|
|
32
|
+
handOff(messages: readonly BrokerMessage[]): Promise<HandOffAnswer>;
|
|
33
|
+
/** What this broker holds for one scope, so a scope that lost its marks resumes past them. */
|
|
34
|
+
marks(tenantId: string, scopeId: string): Promise<HandoffMarks>;
|
|
35
|
+
/**
|
|
36
|
+
* #3484: a subject's erasure reaching this broker's copies (`broker-erasure.ts`). The scope's
|
|
37
|
+
* erasure calls it after its spine redaction and before the key is destroyed, so a throw here
|
|
38
|
+
* refuses the erasure before its irreversible half.
|
|
39
|
+
*/
|
|
40
|
+
eraseSubject(target: BrokerErasureTarget): Promise<BrokerErasure>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Where a broker delivers. A throw is a failure, of a kind `classifyFailure` reads from it: throw a
|
|
44
|
+
* `DeliveryFailure` with the receiver's status (and `retryAfterMs` for a `Retry-After`) to say which.
|
|
45
|
+
*/
|
|
46
|
+
export interface DeliveryReceiver {
|
|
47
|
+
deliver(message: BrokerMessage): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
/** How many rows of each kind one handoff carries. A larger backlog follows in the next one. */
|
|
50
|
+
export declare const HANDOFF_BATCH = 50;
|
|
51
|
+
/** How many due messages one delivery pass attempts before it yields. */
|
|
52
|
+
export declare const BROKER_DELIVERY_BATCH = 50;
|
|
53
|
+
/** The waits after each failed handoff, as the scope retries it from its own alarm. */
|
|
54
|
+
export declare const HANDOFF_RETRY_MS: readonly number[];
|
|
55
|
+
/** How long a settled message is kept, for a duplicate handoff to find it (`BrokerTiming.deliveredRetentionMs`). */
|
|
56
|
+
export declare const BROKER_DELIVERED_RETENTION_MS: number;
|
|
57
|
+
/** How long a message nobody delivers is held (no receiver yet): the K-70 bound until A5 exists. */
|
|
58
|
+
export declare const BROKER_HELD_RETENTION_MS: number;
|
|
59
|
+
/** The wait after `attempts` failures, on a schedule: its last step repeats. */
|
|
60
|
+
export declare const retryAfter: (schedule: readonly number[], attempts: number) => number;
|
|
61
|
+
/** The broker's name in its namespace: one per (tenant, app). */
|
|
62
|
+
export declare const brokerName: (tenantId: string, app: string) => string;
|
|
63
|
+
/**
|
|
64
|
+
* The reads a handoff makes, one per kind, past the scope's marks. Every row is the scope's own:
|
|
65
|
+
* `emittedHere` leaves out what a copy carried in, for intents as for events. (A copy's intents were
|
|
66
|
+
* settled at load as not carried; one minted at the source after its last event compares above the
|
|
67
|
+
* copy's key and is handed off once, settled. A5's comparison is where that would show.)
|
|
68
|
+
*/
|
|
69
|
+
export declare function handoffQueries(marks: HandoffMarks, limit?: number): {
|
|
70
|
+
kind: BrokerMessageKind;
|
|
71
|
+
sql: string;
|
|
72
|
+
params: unknown[];
|
|
73
|
+
}[];
|
|
74
|
+
/** A handoff read's rows, as the messages they become. */
|
|
75
|
+
export declare function messagesOf(kind: BrokerMessageKind, rows: readonly Record<string, unknown>[], ids: {
|
|
76
|
+
tenantId: string;
|
|
77
|
+
scopeId: string;
|
|
78
|
+
}): BrokerMessage[];
|
|
79
|
+
/**
|
|
80
|
+
* How far an answer moves the marks: per kind, over the longest run of the batch, in id order, that
|
|
81
|
+
* the broker acknowledged. A gap stops it, so an unacknowledged message is handed off again rather
|
|
82
|
+
* than skipped.
|
|
83
|
+
*/
|
|
84
|
+
export declare function advanceMarks(marks: HandoffMarks, sent: readonly BrokerMessage[], answer: HandOffAnswer): HandoffMarks;
|
|
85
|
+
/** The SQL a broker store runs, over its own database. Both adapters have SQLite. */
|
|
86
|
+
export interface BrokerSql {
|
|
87
|
+
run(sql: string, ...params: unknown[]): void;
|
|
88
|
+
all<T = Record<string, unknown>>(sql: string, ...params: unknown[]): T[];
|
|
89
|
+
/** Run `fn` in one transaction (`transactionSync` on the Durable Object, `db.transaction` on better-sqlite3). Nests. */
|
|
90
|
+
transaction<T>(fn: () => T): T;
|
|
91
|
+
}
|
|
92
|
+
/** A subscription as the store knows it: its receiver's name and the policy it declared. */
|
|
93
|
+
export interface BrokerSubscriptionSpec {
|
|
94
|
+
/** The receiver's name, unique per broker. A1's single receiver is `'default'`. */
|
|
95
|
+
name: string;
|
|
96
|
+
policy?: DeliveryPolicyInput;
|
|
97
|
+
}
|
|
98
|
+
export interface BrokerStoreOptions {
|
|
99
|
+
/** Where the broker delivers. None: it holds what it accepts. */
|
|
100
|
+
subscriptions: readonly BrokerSubscriptionSpec[];
|
|
101
|
+
/** The platform's timing, over `BROKER_TIMING`. Tests shorten it; production passes nothing. */
|
|
102
|
+
timing?: Partial<BrokerTiming>;
|
|
103
|
+
/** The jitter's draw, 0 ≤ r < 1. Defaults to `Math.random`. */
|
|
104
|
+
random?: () => number;
|
|
105
|
+
/** Epoch ms when the store opens, to judge what it held against its bound. Defaults to `Date.now`. */
|
|
106
|
+
now?: () => number;
|
|
107
|
+
}
|
|
108
|
+
/** One delivery due: a message, and the receiver it is for. */
|
|
109
|
+
export interface DueDelivery {
|
|
110
|
+
message: BrokerMessage;
|
|
111
|
+
receiver: string;
|
|
112
|
+
/** Attempts already spent on it. */
|
|
113
|
+
attempts: number;
|
|
114
|
+
}
|
|
115
|
+
/** A message the broker gave up on, for one receiver: kept `deadLetterRetentionMs`, to be resent or discarded. */
|
|
116
|
+
export interface DeadLetter {
|
|
117
|
+
messageId: string;
|
|
118
|
+
receiver: string;
|
|
119
|
+
kind: BrokerMessageKind;
|
|
120
|
+
type: string;
|
|
121
|
+
tenantId: string;
|
|
122
|
+
scopeId: string;
|
|
123
|
+
committedAt: string;
|
|
124
|
+
key: string | null;
|
|
125
|
+
attempts: number;
|
|
126
|
+
lastError: string | null;
|
|
127
|
+
lastStatus: number | null;
|
|
128
|
+
/** Epoch ms it was given up on, and when it expires unless resent. */
|
|
129
|
+
deadAt: number;
|
|
130
|
+
expiresAt: number;
|
|
131
|
+
resends: number;
|
|
132
|
+
/** The message's row, only when content was asked for: the tenant's admin sees it, the platform does not. */
|
|
133
|
+
body?: string;
|
|
134
|
+
}
|
|
135
|
+
/** What a failed attempt led to. */
|
|
136
|
+
export type FailureOutcome = 'retry' | 'dead' | 'slow';
|
|
137
|
+
/** A broker's state, as `BrokerStore.stats` reads it (#3474). */
|
|
138
|
+
export interface BrokerStats {
|
|
139
|
+
/** Messages some receiver is still owed: held, or pending somewhere (`pending()`'s count). */
|
|
140
|
+
depth: number;
|
|
141
|
+
/** Epoch ms the oldest of them arrived, or null when there are none. */
|
|
142
|
+
oldestAt: number | null;
|
|
143
|
+
/** Receivers whose breaker is open now. A slow-down is not a pause. */
|
|
144
|
+
pausedReceivers: number;
|
|
145
|
+
/** Deliveries in dead letter now. */
|
|
146
|
+
deadLetters: number;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Told the outcome of each attempt in a pass (#3474, `BrokerTelemetry.passObserver`), after the
|
|
150
|
+
* store recorded it. It must not throw.
|
|
151
|
+
*/
|
|
152
|
+
export interface DeliveryObserver {
|
|
153
|
+
attempted(delivery: DueDelivery, outcome: 'delivered' | FailureOutcome, startedAt: number, at: number): void;
|
|
154
|
+
}
|
|
155
|
+
/** One delivery pass's outcome, for the caller to re-arm on. */
|
|
156
|
+
export interface DeliveryPass {
|
|
157
|
+
delivered: number;
|
|
158
|
+
/** Attempts that failed and will be tried again (a slow-down included). */
|
|
159
|
+
failed: number;
|
|
160
|
+
/** Deliveries the pass gave up on: now in dead letter. */
|
|
161
|
+
deadLettered: number;
|
|
162
|
+
/** Epoch ms the store next has work (`BrokerStore.nextWakeAt`), or null when it holds nothing. */
|
|
163
|
+
nextAt: number | null;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* The broker's store (schema: `broker-schema.ts`). Each method is synchronous over `BrokerSql`, and
|
|
167
|
+
* each that writes runs in one transaction.
|
|
168
|
+
*
|
|
169
|
+
* A message is stored once (`broker_messages`, its content) and owed once per receiver
|
|
170
|
+
* (`broker_deliveries`, its fate there), so a receiver that fails or is paused holds back only its
|
|
171
|
+
* own deliveries. Ordering is per (receiver, key): only a lane's head is ever due, so a message stuck
|
|
172
|
+
* on key 17 holds back key 17 at that receiver and nothing else. A dead head keeps its lane stopped,
|
|
173
|
+
* since delivering past it would break the order the receiver asked for: the later messages of that
|
|
174
|
+
* key wait, spending nothing, until the dead letter is resent and delivered, discarded, or expires.
|
|
175
|
+
*/
|
|
176
|
+
export declare class BrokerStore {
|
|
177
|
+
private readonly sql;
|
|
178
|
+
private readonly policies;
|
|
179
|
+
private readonly receivers;
|
|
180
|
+
private readonly timing;
|
|
181
|
+
private readonly random;
|
|
182
|
+
constructor(sql: BrokerSql, opts: BrokerStoreOptions);
|
|
183
|
+
/** The deliveries a new message is owed: one per receiver, due at `at`. */
|
|
184
|
+
private owe;
|
|
185
|
+
/** Take custody. Idempotent by id; every id handed in is acknowledged, a duplicate too. */
|
|
186
|
+
accept(messages: readonly BrokerMessage[], now: number): HandOffAnswer;
|
|
187
|
+
/** #3484: one message as the store holds it now, or null when it holds none by that id. */
|
|
188
|
+
current(id: string): BrokerMessage | null;
|
|
189
|
+
/** #3484: erase one subject from what this store holds, dead letters included, in one transaction. */
|
|
190
|
+
eraseSubject(target: BrokerErasureTarget): BrokerErasure;
|
|
191
|
+
marks(tenantId: string, scopeId: string): HandoffMarks;
|
|
192
|
+
/**
|
|
193
|
+
* The deliveries due at `now`, oldest due first: pending, at a receiver this store has and that is
|
|
194
|
+
* neither paused nor slowed, and the head of their lane. `skip` names deliveries already attempted
|
|
195
|
+
* this pass (`deliveryKey`), so a wait of zero is not attempted twice in one pass.
|
|
196
|
+
*/
|
|
197
|
+
due(now: number, limit?: number, skip?: readonly string[]): DueDelivery[];
|
|
198
|
+
/** Whether a receiver is paused or slowed at `now`: nothing is sent to it. */
|
|
199
|
+
blocked(receiver: string, now: number): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Whether a delivery `due` returned may still go now: still pending, its receiver neither paused
|
|
202
|
+
* nor slowed, and still its lane's head. A pass asks right before each send, because a handoff (or
|
|
203
|
+
* a resend) that commits while an earlier send awaits can put a lower id at the head of its lane.
|
|
204
|
+
*/
|
|
205
|
+
sendable(id: string, receiver: string, now: number): boolean;
|
|
206
|
+
/** A delivery landed: it settles, and the receiver's pause, if any, is over. */
|
|
207
|
+
delivered(id: string, receiver: string, now: number): void;
|
|
208
|
+
/** A delivery failed, as `classifyFailure` read it. Says what follows for that delivery. */
|
|
209
|
+
failed(id: string, receiver: string, failure: FailureClass, now: number): FailureOutcome;
|
|
210
|
+
private saveReceiver;
|
|
211
|
+
/**
|
|
212
|
+
* The dead letters at `now`, oldest first; `content` adds each message's body. One past its
|
|
213
|
+
* retention is not listed, whether or not a prune has expired it yet.
|
|
214
|
+
*/
|
|
215
|
+
deadLetters(opts: {
|
|
216
|
+
receiver?: string;
|
|
217
|
+
limit?: number;
|
|
218
|
+
content?: boolean;
|
|
219
|
+
}, now: number): DeadLetter[];
|
|
220
|
+
/**
|
|
221
|
+
* Resend a dead letter: due now, with its attempts afresh, back at the head of its lane. Only a
|
|
222
|
+
* dead delivery inside its retention moves, so a resend repeated, sent after the message landed, or
|
|
223
|
+
* after the dead letter expired, changes nothing and the receiver gets it at most once. `receiver` omitted: at every receiver where it is dead. Returns how
|
|
224
|
+
* many deliveries it moved.
|
|
225
|
+
*/
|
|
226
|
+
resend(id: string, receiver: string | undefined, now: number): number;
|
|
227
|
+
/** Discard a dead letter: it settles, and its lane moves on. Idempotent as `resend` is. */
|
|
228
|
+
discard(id: string, receiver: string | undefined, now: number): number;
|
|
229
|
+
private settleDead;
|
|
230
|
+
/**
|
|
231
|
+
* Epoch ms the store next has work: the earliest of the next delivery that can go (a lane's head, at
|
|
232
|
+
* a receiver it has, after the receiver's pause or slow-down) and the moment a kept row's bound runs
|
|
233
|
+
* out (a settled message's `deliveredRetentionMs`, a dead letter's `deadLetterRetentionMs`, a held
|
|
234
|
+
* message's `heldRetentionMs`). Null only when it holds nothing, so an idle broker arms nothing and
|
|
235
|
+
* a busy one never keeps a row past its bound for want of an alarm. A message waiting behind its
|
|
236
|
+
* lane's head is not work: the head's settling is what wakes it.
|
|
237
|
+
*/
|
|
238
|
+
nextWakeAt(): number | null;
|
|
239
|
+
/**
|
|
240
|
+
* Drop what the bounds say has been kept long enough (K-70). A dead letter past its bound expires,
|
|
241
|
+
* which settles it as of when it died, so its message goes in the same prune and its lane moves on.
|
|
242
|
+
* Marks stay: they are one row per scope and kind.
|
|
243
|
+
*/
|
|
244
|
+
prune(now: number): void;
|
|
245
|
+
/** Drop the held messages (no delivery row) past `heldRetentionMs`. */
|
|
246
|
+
private pruneHeld;
|
|
247
|
+
/**
|
|
248
|
+
* #3474: which of `ids` the store already holds, so a receipt can tell a new message from a repeated
|
|
249
|
+
* handoff. Primary-key reads only, in chunks under the Durable Object's bound-parameter limit.
|
|
250
|
+
*/
|
|
251
|
+
held(ids: readonly string[]): Set<string>;
|
|
252
|
+
/**
|
|
253
|
+
* #3474: the broker's state in one read — what `pending()` counts and its oldest arrival, the
|
|
254
|
+
* receivers whose breaker is open, and the dead letters. Run once per wake and after each pass,
|
|
255
|
+
* never on a handoff.
|
|
256
|
+
*/
|
|
257
|
+
stats(): BrokerStats;
|
|
258
|
+
/** #3474: whether a receiver's breaker is open (paused, as against slowed). One primary-key read. */
|
|
259
|
+
paused(receiver: string): boolean;
|
|
260
|
+
/**
|
|
261
|
+
* #3474: when a delivery can next be attempted: its own `next_at`, or the receiver's pause or
|
|
262
|
+
* slow-down if that ends later; null when none is scheduled. Two primary-key reads in one statement.
|
|
263
|
+
*/
|
|
264
|
+
nextAttemptAt(id: string, receiver: string): number | null;
|
|
265
|
+
/** #3474: the receivers whose breaker is open now, so a reporter that woke knows which pauses it inherits. */
|
|
266
|
+
openReceivers(): string[];
|
|
267
|
+
/** How many messages it holds that some receiver is still owed (held, or pending somewhere). */
|
|
268
|
+
pending(): number;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* One delivery pass over a store, for both adapters: attempt each due delivery once, record the
|
|
272
|
+
* outcome, and say when the next is due. A receiver's throw is a failure of that delivery alone,
|
|
273
|
+
* read by `classifyFailure`. The pass re-reads what is due as it goes, so the message behind a lane's
|
|
274
|
+
* head goes in the same pass once the head landed, and a receiver that a failure paused (or a probe
|
|
275
|
+
* that failed) is sent nothing more in it. At most `limit` attempts. It prunes first (`prune`).
|
|
276
|
+
*/
|
|
277
|
+
export declare function runDeliveryPass(store: BrokerStore, receivers: Readonly<Record<string, DeliveryReceiver>>, now: () => number, limit?: number, observer?: DeliveryObserver): Promise<DeliveryPass>;
|
|
278
|
+
//# sourceMappingURL=delivery-broker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delivery-broker.d.ts","sourceRoot":"","sources":["../src/delivery-broker.ts"],"names":[],"mappings":"AA4BA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAML,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAG9B,mFAAmF;AACnF,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnD,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAAwB,CAAC;AAEtF,MAAM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