@tpsdev-ai/agent 0.7.0 → 0.9.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/bun.lock +27 -15
- package/bunfig.toml +17 -0
- package/dist/bin.js +4 -3
- package/dist/bin.js.map +1 -1
- package/dist/config.d.ts +8 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -3
- package/dist/config.js.map +1 -1
- package/dist/home.d.ts +3 -0
- package/dist/home.d.ts.map +1 -0
- package/dist/home.js +18 -0
- package/dist/home.js.map +1 -0
- package/dist/index.d.ts +16 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/io/flair.d.ts +1 -10
- package/dist/io/flair.d.ts.map +1 -1
- package/dist/io/flair.js +29 -28
- package/dist/io/flair.js.map +1 -1
- package/dist/io/mail.d.ts +184 -30
- package/dist/io/mail.d.ts.map +1 -1
- package/dist/io/mail.js +944 -185
- package/dist/io/mail.js.map +1 -1
- package/dist/lib/agent-keys.d.ts +106 -0
- package/dist/lib/agent-keys.d.ts.map +1 -0
- package/dist/lib/agent-keys.js +298 -0
- package/dist/lib/agent-keys.js.map +1 -0
- package/dist/lib/bridge-identity.d.ts +10 -0
- package/dist/lib/bridge-identity.d.ts.map +1 -0
- package/dist/lib/bridge-identity.js +56 -0
- package/dist/lib/bridge-identity.js.map +1 -0
- package/dist/lib/mail-lock-namespace.d.ts +19 -0
- package/dist/lib/mail-lock-namespace.d.ts.map +1 -0
- package/dist/lib/mail-lock-namespace.js +58 -0
- package/dist/lib/mail-lock-namespace.js.map +1 -0
- package/dist/lib/mail-lock.d.ts +81 -0
- package/dist/lib/mail-lock.d.ts.map +1 -0
- package/dist/lib/mail-lock.js +319 -0
- package/dist/lib/mail-lock.js.map +1 -0
- package/dist/lib/mailbox-filename.d.ts +2 -0
- package/dist/lib/mailbox-filename.d.ts.map +1 -0
- package/dist/lib/mailbox-filename.js +4 -0
- package/dist/lib/mailbox-filename.js.map +1 -0
- package/dist/lib/mailbox-policy.d.ts +245 -0
- package/dist/lib/mailbox-policy.d.ts.map +1 -0
- package/dist/lib/mailbox-policy.js +949 -0
- package/dist/lib/mailbox-policy.js.map +1 -0
- package/dist/lib/public-key.d.ts +6 -0
- package/dist/lib/public-key.d.ts.map +1 -0
- package/dist/lib/public-key.js +45 -0
- package/dist/lib/public-key.js.map +1 -0
- package/dist/lib/registry-key.d.ts +2 -0
- package/dist/lib/registry-key.d.ts.map +1 -0
- package/dist/lib/registry-key.js +10 -0
- package/dist/lib/registry-key.js.map +1 -0
- package/dist/lib/relay-lock.d.ts +7 -0
- package/dist/lib/relay-lock.d.ts.map +1 -0
- package/dist/lib/relay-lock.js +19 -0
- package/dist/lib/relay-lock.js.map +1 -0
- package/dist/lib/signEnvelope.d.ts +12 -0
- package/dist/lib/signEnvelope.d.ts.map +1 -1
- package/dist/lib/signEnvelope.js.map +1 -1
- package/dist/lib/signing-key.d.ts +2 -0
- package/dist/lib/signing-key.d.ts.map +1 -0
- package/dist/lib/signing-key.js +9 -0
- package/dist/lib/signing-key.js.map +1 -0
- package/dist/lib/topic-recipient.d.ts +2 -0
- package/dist/lib/topic-recipient.d.ts.map +1 -0
- package/dist/lib/topic-recipient.js +2 -0
- package/dist/lib/topic-recipient.js.map +1 -0
- package/dist/llm/provider.d.ts.map +1 -1
- package/dist/llm/provider.js +9 -7
- package/dist/llm/provider.js.map +1 -1
- package/dist/runtime/agent.d.ts.map +1 -1
- package/dist/runtime/agent.js +32 -25
- package/dist/runtime/agent.js.map +1 -1
- package/dist/runtime/event-loop.d.ts +21 -2
- package/dist/runtime/event-loop.d.ts.map +1 -1
- package/dist/runtime/event-loop.js +199 -54
- package/dist/runtime/event-loop.js.map +1 -1
- package/dist/runtime/types.d.ts +11 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime/types.js +13 -1
- package/dist/runtime/types.js.map +1 -1
- package/package.json +3 -4
- package/src/bin.ts +4 -3
- package/src/config.ts +46 -3
- package/src/home.ts +18 -0
- package/src/index.ts +33 -2
- package/src/io/flair.ts +23 -28
- package/src/io/mail.ts +1007 -200
- package/src/lib/agent-keys.ts +308 -0
- package/src/lib/bridge-identity.ts +49 -0
- package/src/lib/mail-lock-namespace.ts +64 -0
- package/src/lib/mail-lock.ts +337 -0
- package/src/lib/mailbox-filename.ts +3 -0
- package/src/lib/mailbox-policy.ts +1085 -0
- package/src/lib/public-key.ts +49 -0
- package/src/lib/registry-key.ts +8 -0
- package/src/lib/relay-lock.ts +20 -0
- package/src/lib/signEnvelope.ts +12 -0
- package/src/lib/signing-key.ts +8 -0
- package/src/lib/topic-recipient.ts +1 -0
- package/src/llm/provider.ts +9 -7
- package/src/runtime/agent.ts +30 -27
- package/src/runtime/event-loop.ts +221 -68
- package/src/runtime/types.ts +14 -0
- package/test/config.test.ts +85 -2
- package/test/core-loop.test.ts +6 -4
- package/test/governance.test.ts +4 -1
- package/test/helpers/event-loop-child.mjs +50 -0
- package/test/helpers/mail-delivery-worker.mjs +16 -0
- package/test/helpers/mail-kill-child.mjs +104 -0
- package/test/helpers/signed-relay-record.ts +31 -0
- package/test/home-per-call.test.ts +72 -0
- package/test/io.test.ts +81 -14
- package/test/mail-client-lock-namespace.test.ts +155 -0
- package/test/mail-client-repoint-root.test.ts +368 -0
- package/test/mail-delivery-at-least-once.test.ts +1238 -0
- package/test/mail-event-loop-delivery.test.ts +769 -0
- package/test/mail-intent-phases.test.ts +304 -0
- package/test/mail-interrupted-recovery.test.ts +393 -0
- package/test/mail-lock-pid-state.test.ts +238 -0
- package/test/mail-lock.test.ts +96 -0
- package/test/mail-partial-flair.test.ts +102 -0
- package/test/mail-placement-replay.test.ts +116 -0
- package/test/mail-promote-guard.test.ts +305 -21
- package/test/mail-relay-reservation.test.ts +60 -0
- package/test/mailbox-filename.test.ts +16 -0
- package/test/public-key.test.ts +108 -0
- package/test/runtime-key-encoding.test.ts +105 -0
- package/test/runtime-pending-key.test.ts +117 -0
- package/test/security/mail-trust.test.ts +406 -109
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared mailbox policy and consumed-id replay store for both first-delivery
|
|
3
|
+
* paths: the CLI's `promote()` and this package's `MailClient`.
|
|
4
|
+
*/
|
|
5
|
+
import { type BigIntStats } from "node:fs";
|
|
6
|
+
import { type Envelope, type FlairClient } from "./signEnvelope.js";
|
|
7
|
+
/** 1-128 chars of `[A-Za-z0-9._-]`. Anchored; no flags. */
|
|
8
|
+
export declare const ENVELOPE_ID_SHAPE: RegExp;
|
|
9
|
+
/** A human-readable statement of ENVELOPE_ID_SHAPE, for error messages. */
|
|
10
|
+
export declare const ENVELOPE_ID_SHAPE_TEXT = "letters, digits, dot, underscore or hyphen, 1-128 chars";
|
|
11
|
+
/** True only for a string that satisfies ENVELOPE_ID_SHAPE. */
|
|
12
|
+
export declare function isValidEnvelopeId(id: unknown): id is string;
|
|
13
|
+
/**
|
|
14
|
+
* Try to parse a message body as an envelope-shaped record.
|
|
15
|
+
*
|
|
16
|
+
* Returns the envelope object, or the string "json-parse-error" (not JSON) or
|
|
17
|
+
* "missing-fields" (JSON but not envelope-shaped).
|
|
18
|
+
*/
|
|
19
|
+
export declare function tryParseEnvelope(body: string): Record<string, unknown> | "json-parse-error" | "missing-fields";
|
|
20
|
+
/** Parse an envelope-shaped record with a string body. */
|
|
21
|
+
export declare function parseSignedEnvelope(body: string): {
|
|
22
|
+
ok: true;
|
|
23
|
+
envelope: Envelope;
|
|
24
|
+
} | {
|
|
25
|
+
ok: false;
|
|
26
|
+
class: "invalid";
|
|
27
|
+
reason: string;
|
|
28
|
+
};
|
|
29
|
+
export declare function isTopicRecipient(address: unknown, agentId: string, from: string): boolean;
|
|
30
|
+
/** The reject classes the mailbox policy and the replay gate emit. */
|
|
31
|
+
export type MailboxPolicyRejectClass = "invalid" | "unresolvable-principal" | "wrong-recipient" | "replay";
|
|
32
|
+
export type MailboxPolicyResult = {
|
|
33
|
+
ok: true;
|
|
34
|
+
envelope: Envelope;
|
|
35
|
+
} | {
|
|
36
|
+
ok: false;
|
|
37
|
+
class: MailboxPolicyRejectClass;
|
|
38
|
+
reason: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The ONE mailbox decision for an enveloped record.
|
|
42
|
+
*
|
|
43
|
+
* The checks, in order:
|
|
44
|
+
* 1. signature, through the caller's Flair client;
|
|
45
|
+
* 2. wrapper/envelope `from` binding;
|
|
46
|
+
* 3. recipient binding;
|
|
47
|
+
* 4. `messageId` shape, and `replyToId` shape when present;
|
|
48
|
+
* 5. `timestamp` shape.
|
|
49
|
+
*
|
|
50
|
+
* The replay gate (first delivery only) is the ReplayStore below.
|
|
51
|
+
*/
|
|
52
|
+
export declare function decideEnvelopeForMailbox(agent: string, envelope: Envelope, wrapperFrom: unknown, client: FlairClient): Promise<MailboxPolicyResult>;
|
|
53
|
+
/** Bounds checked on later deliverNext() calls for unclaimed in_progress work; the deadline precedes re-verification. */
|
|
54
|
+
export declare const MAX_DELIVERY_PRESENTATIONS = 5;
|
|
55
|
+
export declare const DELIVERY_PRESENTATION_TTL_MS: number;
|
|
56
|
+
/**
|
|
57
|
+
* cli#617 slice (b): the presenter that holds an `in_progress` intent. `token`
|
|
58
|
+
* is a per-presentation nonce: completion must present it, so a stale or
|
|
59
|
+
* foreign presentation cannot finalize the current one. `pid` and `start` (the
|
|
60
|
+
* process start token mail-lock records for lock owners) say which process
|
|
61
|
+
* holds it. `moduleNonce` identifies the module copy whose token set tracks it;
|
|
62
|
+
* other copies in the same process are treated as live until process exit or lease expiry.
|
|
63
|
+
*/
|
|
64
|
+
export interface PresentationClaim {
|
|
65
|
+
token: string;
|
|
66
|
+
pid: number;
|
|
67
|
+
start: string | null;
|
|
68
|
+
moduleNonce: string;
|
|
69
|
+
}
|
|
70
|
+
/** What a placement intent records (cli#617), as the ReplayStore reads it. */
|
|
71
|
+
export interface PlacementState {
|
|
72
|
+
messageId: string;
|
|
73
|
+
phase: PlacementPhase;
|
|
74
|
+
presentations?: number;
|
|
75
|
+
firstPresentedAt?: string;
|
|
76
|
+
claim?: PresentationClaim;
|
|
77
|
+
}
|
|
78
|
+
/** The result of a completion attempt against the intent (cli#617 slice b). */
|
|
79
|
+
export type PlacementCompletion = "completed" | "absent" | "stale" | "identity";
|
|
80
|
+
/**
|
|
81
|
+
* The replay gate and placement intents for one mailbox. Call while holding
|
|
82
|
+
* that mailbox's lock (acquireMailLock on the same root).
|
|
83
|
+
*/
|
|
84
|
+
export interface ReplayStore {
|
|
85
|
+
isConsumed(messageId: string, pendingFile?: string): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Write a `placing` intent. Refuses to replace an intent in any other phase,
|
|
88
|
+
* with one exception (cli#617). A `failed` marker for a different message,
|
|
89
|
+
* whose payload has left cur/, moves to its tombstone when that name is
|
|
90
|
+
* unoccupied, or is the marker's own inode (treated as an interrupted move).
|
|
91
|
+
* An occupied tombstone refuses the placement by name.
|
|
92
|
+
*/
|
|
93
|
+
beginPlacement(messageId: string, file: string, sourcePath?: string | number): void;
|
|
94
|
+
ownsPendingPlacement(messageId: string, file: string): boolean;
|
|
95
|
+
/** A live (not `failed`) intent for this messageId names `file`. */
|
|
96
|
+
hasPendingPlacement(messageId: string, file: string): boolean;
|
|
97
|
+
/** The per-file gate: a quarantined or live (not `failed`) intent names `file`. */
|
|
98
|
+
hasPendingFile(file: string): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* The phase of `file`'s placement intent, or null when it has none (cli#617).
|
|
101
|
+
* Throws MalformedPlacementIntentError on a quarantined or malformed intent.
|
|
102
|
+
*/
|
|
103
|
+
placementPhase(file: string): PlacementPhase | null;
|
|
104
|
+
/** Delete a `placing` intent for this messageId. An intent in any other phase is kept. */
|
|
105
|
+
finishPlacement(messageId: string, file: string): void;
|
|
106
|
+
/**
|
|
107
|
+
* Record a consumed messageId. Call ONLY after the record is in cur/; THROWS
|
|
108
|
+
* on failure, and the caller must then roll the move back.
|
|
109
|
+
*/
|
|
110
|
+
recordConsumed(messageId: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* cli#617 slice (b): what `file`'s intent records, or null when it has none.
|
|
113
|
+
* Throws MalformedPlacementIntentError on a quarantined or malformed intent.
|
|
114
|
+
*/
|
|
115
|
+
placementState(file: string): PlacementState | null;
|
|
116
|
+
/**
|
|
117
|
+
* cli#617 slice (b): advance a live (`placing` or `in_progress`) intent for
|
|
118
|
+
* this message to its next presentation, recording `claim` as its holder. A
|
|
119
|
+
* `placing` intent becomes `in_progress` at presentation 1; an `in_progress`
|
|
120
|
+
* intent's count increments. Returns `absent` when no live intent for this
|
|
121
|
+
* message is present (missing, another message, or a `failed`/`unknown`
|
|
122
|
+
* phase), `presented` with the new count, or terminal `failed` before a sixth
|
|
123
|
+
* presentation or when the deadline is exceeded. The count check permits the fifth.
|
|
124
|
+
* The caller must not present a failed intent and first checks claim liveness.
|
|
125
|
+
* Call under the mailbox lock.
|
|
126
|
+
*/
|
|
127
|
+
advancePresentation(messageId: string, file: string, nowIso: string, claim: PresentationClaim): PresentationAdvance;
|
|
128
|
+
/**
|
|
129
|
+
* cli#617 slice (b): the deadline alone. An `in_progress` intent for this
|
|
130
|
+
* message whose first presentation is more than DELIVERY_PRESENTATION_TTL_MS
|
|
131
|
+
* before `nowIso` goes terminal `failed` (`failed`); otherwise it is unchanged
|
|
132
|
+
* (`live`), or there is no `in_progress` intent for this message (`absent`).
|
|
133
|
+
* It never presents. The caller first checks claim liveness. Call under the mailbox lock.
|
|
134
|
+
*/
|
|
135
|
+
expireOverdue(messageId: string, file: string, nowIso: string): {
|
|
136
|
+
status: "failed";
|
|
137
|
+
presentations: number;
|
|
138
|
+
} | {
|
|
139
|
+
status: "live";
|
|
140
|
+
} | {
|
|
141
|
+
status: "absent";
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* cli#617 slice (b): completion-only finalize, bound to one presentation.
|
|
145
|
+
* Deletes the intent only when it is `in_progress` for this message, its
|
|
146
|
+
* claim carries `token`, and `cur/<file>` is still the file the intent
|
|
147
|
+
* recorded (device, inode, size and SHA-256). These results leave it unchanged: `absent` (no intent
|
|
148
|
+
* for this message), `stale` (phase is not `in_progress` or claim token does not match),
|
|
149
|
+
* or `identity` (recorded cur/ identity absent or mismatched).
|
|
150
|
+
*/
|
|
151
|
+
completePlacement(messageId: string, file: string, token: string): PlacementCompletion;
|
|
152
|
+
releasePlacement(messageId: string, file: string, token: string): boolean;
|
|
153
|
+
}
|
|
154
|
+
/** The result of advancing a placement intent to its next presentation (cli#617 slice b). */
|
|
155
|
+
export type PresentationAdvance = {
|
|
156
|
+
status: "absent";
|
|
157
|
+
} | {
|
|
158
|
+
status: "presented";
|
|
159
|
+
presentations: number;
|
|
160
|
+
} | {
|
|
161
|
+
status: "failed";
|
|
162
|
+
presentations: number;
|
|
163
|
+
};
|
|
164
|
+
/** The durable ReplayStore for the mailbox rooted at `root` (`<mailDir>/<agent>`). */
|
|
165
|
+
export declare function mailboxReplayStore(root: string): ReplayStore;
|
|
166
|
+
/**
|
|
167
|
+
* List well-formed pending intents with their phase; quarantine malformed ones
|
|
168
|
+
* and omit them. An intent whose phase resolves to `failed` is not pending and
|
|
169
|
+
* is omitted.
|
|
170
|
+
* Call under the mailbox lock and re-read each intent before acting on it.
|
|
171
|
+
*/
|
|
172
|
+
export declare function pendingPlacementEntries(root: string): Array<{
|
|
173
|
+
messageId: string;
|
|
174
|
+
file: string;
|
|
175
|
+
phase: PlacementPhase;
|
|
176
|
+
}>;
|
|
177
|
+
/**
|
|
178
|
+
* The phase phaseOf RESOLVES for a placement intent (cli#617 design rev 2).
|
|
179
|
+
* Every rule keys on this resolved result, not on the raw `phase` field.
|
|
180
|
+
* phaseOf checks `version`, `presentations` and `firstPresentedAt` before
|
|
181
|
+
* `phase`. An unsupported value in any of them resolves to `unknown` whatever
|
|
182
|
+
* `phase` says: `version: 2` with no `phase`, and `version: 2` with
|
|
183
|
+
* `phase: "failed"`, both resolve to `unknown`. The result reflects what the
|
|
184
|
+
* intent declares; it does not prove the state behind it.
|
|
185
|
+
*
|
|
186
|
+
* - `placing`: a commit in flight. An intent resolves to `placing` when it has
|
|
187
|
+
* no `phase` (or `phase: "placing"`), a recognized `version` (absent or 1) and
|
|
188
|
+
* valid liveness values (absent or well-formed). So an otherwise-valid intent
|
|
189
|
+
* written before phases existed, whose `file` is a plain basename, reads as
|
|
190
|
+
* before. The one exception: an older intent whose `file` is not a plain
|
|
191
|
+
* basename, which the old parser accepted when its hashed name matched, is
|
|
192
|
+
* now malformed and quarantined.
|
|
193
|
+
* - `in_progress`: `phase: "in_progress"` under the same `version` and liveness
|
|
194
|
+
* conditions; it declares a committed message whose handler has not completed.
|
|
195
|
+
* - `failed`: `phase: "failed"` under the same conditions; it declares a
|
|
196
|
+
* terminal message (its liveness bound was reached). It is not pending: it
|
|
197
|
+
* never closes the per-file (filename) gate and is never listed for
|
|
198
|
+
* recovery, while its message ID stays refused by the consumed-ID (replay)
|
|
199
|
+
* gate. A different message may need the same basename once the old payload
|
|
200
|
+
* has left cur/. If the tombstone name (failedTombstonePath) is unoccupied,
|
|
201
|
+
* or is the marker's own inode (treated as an interrupted move), the marker
|
|
202
|
+
* moves there and the new placement proceeds. An occupied tombstone refuses
|
|
203
|
+
* the placement by name. While the payload is in cur/, the marker stays and
|
|
204
|
+
* the new placement is refused. The record is kept until an operator
|
|
205
|
+
* removes it.
|
|
206
|
+
* - `unknown`: an unsupported value in a recognized field (`phase`, `version`,
|
|
207
|
+
* `presentations`, `firstPresentedAt` or `claim`, where `presentations` must
|
|
208
|
+
* be a non-negative safe integer and a `claim` is valid only on an
|
|
209
|
+
* `in_progress` intent); other extra fields are ignored. The store never
|
|
210
|
+
* finishes or replaces it; MailClient recovery, the CLI lease sweep and CLI
|
|
211
|
+
* promotion never present it; and it is not quarantined solely for that
|
|
212
|
+
* value. It keeps its own per-file gate closed.
|
|
213
|
+
*
|
|
214
|
+
* Slice (b) adds the writers: MailClient.deliverNext() writes `in_progress`
|
|
215
|
+
* (with its presentation claim) and the liveness bound writes `failed`. Nothing
|
|
216
|
+
* in the agent runtime calls deliverNext() until slice (c).
|
|
217
|
+
*/
|
|
218
|
+
export type PlacementPhase = "placing" | "in_progress" | "failed" | "unknown";
|
|
219
|
+
export interface FileIdentity {
|
|
220
|
+
dev: string;
|
|
221
|
+
ino: string;
|
|
222
|
+
size?: string;
|
|
223
|
+
sha256?: string;
|
|
224
|
+
}
|
|
225
|
+
export declare function fileIdentity(stat: BigIntStats, bytes: Buffer): FileIdentity;
|
|
226
|
+
export declare function matchesFileIdentity(stat: BigIntStats, identity: FileIdentity, bytes: Buffer): boolean;
|
|
227
|
+
export declare class PlacementDurabilityError extends Error {
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Replay lookup for a reader that does not hold the mailbox lock: true when
|
|
231
|
+
* this envelope messageId is in the consumed ledger or, failing that, in the
|
|
232
|
+
* maildir fallback — the history isConsumedMessageId consults. It writes,
|
|
233
|
+
* renames, prunes and creates nothing. Unavailable history throws; the caller
|
|
234
|
+
* must withhold the record.
|
|
235
|
+
*/
|
|
236
|
+
export declare function peekConsumedForMailboxRoot(root: string, messageId: string): boolean;
|
|
237
|
+
export declare function hasCommittedMessageId(root: string, messageId: string): boolean;
|
|
238
|
+
/** The result of a first-delivery placement. */
|
|
239
|
+
export type FirstDelivery = {
|
|
240
|
+
status: "placed";
|
|
241
|
+
} | {
|
|
242
|
+
status: "exists";
|
|
243
|
+
};
|
|
244
|
+
export declare function placeCurRecord(sourcePath: string, curPath: string): FirstDelivery;
|
|
245
|
+
//# sourceMappingURL=mailbox-policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox-policy.d.ts","sourceRoot":"","sources":["../../src/lib/mailbox-policy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAkB,KAAK,WAAW,EAAgL,MAAM,SAAS,CAAC;AAIzO,OAAO,EAA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