narrarium-engine 0.1.3 → 0.1.5
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 +163 -10
- package/dist/ai/budget.d.ts +26 -0
- package/dist/ai/budget.d.ts.map +1 -0
- package/dist/ai/budget.js +35 -0
- package/dist/ai/budget.js.map +1 -0
- package/dist/ai/config.d.ts +26 -0
- package/dist/ai/config.d.ts.map +1 -1
- package/dist/ai/config.js +33 -2
- package/dist/ai/config.js.map +1 -1
- package/dist/ai/fetch-client.d.ts +80 -9
- package/dist/ai/fetch-client.d.ts.map +1 -1
- package/dist/ai/fetch-client.js +287 -114
- package/dist/ai/fetch-client.js.map +1 -1
- package/dist/ai/redact.d.ts +7 -0
- package/dist/ai/redact.d.ts.map +1 -0
- package/dist/ai/redact.js +34 -0
- package/dist/ai/redact.js.map +1 -0
- package/dist/ai/request.d.ts +34 -0
- package/dist/ai/request.d.ts.map +1 -0
- package/dist/ai/request.js +86 -0
- package/dist/ai/request.js.map +1 -0
- package/dist/ai/router.js +1 -1
- package/dist/ai/router.js.map +1 -1
- package/dist/ai/routing.d.ts +47 -0
- package/dist/ai/routing.d.ts.map +1 -0
- package/dist/ai/routing.js +83 -0
- package/dist/ai/routing.js.map +1 -0
- package/dist/ai/structured.d.ts +13 -4
- package/dist/ai/structured.d.ts.map +1 -1
- package/dist/ai/structured.js +58 -8
- package/dist/ai/structured.js.map +1 -1
- package/dist/ai/token-limit.d.ts +21 -2
- package/dist/ai/token-limit.d.ts.map +1 -1
- package/dist/ai/token-limit.js +48 -4
- package/dist/ai/token-limit.js.map +1 -1
- package/dist/ai/types.d.ts +40 -0
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +32 -0
- package/dist/ai/types.js.map +1 -1
- package/dist/autopilot/planner.d.ts +22 -1
- package/dist/autopilot/planner.d.ts.map +1 -1
- package/dist/autopilot/planner.js +166 -14
- package/dist/autopilot/planner.js.map +1 -1
- package/dist/autopilot/profile-check.d.ts +24 -0
- package/dist/autopilot/profile-check.d.ts.map +1 -0
- package/dist/autopilot/profile-check.js +38 -0
- package/dist/autopilot/profile-check.js.map +1 -0
- package/dist/autopilot/prompts.d.ts +1 -0
- package/dist/autopilot/prompts.d.ts.map +1 -1
- package/dist/autopilot/prompts.js +9 -0
- package/dist/autopilot/prompts.js.map +1 -1
- package/dist/autopilot/runner.d.ts +131 -11
- package/dist/autopilot/runner.d.ts.map +1 -1
- package/dist/autopilot/runner.js +581 -96
- package/dist/autopilot/runner.js.map +1 -1
- package/dist/autopilot/session.d.ts +83 -6
- package/dist/autopilot/session.d.ts.map +1 -1
- package/dist/autopilot/session.js +211 -26
- package/dist/autopilot/session.js.map +1 -1
- package/dist/autopilot/state.d.ts +37 -2
- package/dist/autopilot/state.d.ts.map +1 -1
- package/dist/autopilot/state.js +71 -1
- package/dist/autopilot/state.js.map +1 -1
- package/dist/autopilot/tasks.d.ts +2 -0
- package/dist/autopilot/tasks.d.ts.map +1 -1
- package/dist/autopilot/tasks.js +233 -59
- package/dist/autopilot/tasks.js.map +1 -1
- package/dist/autopilot/types.d.ts +81 -4
- package/dist/autopilot/types.d.ts.map +1 -1
- package/dist/autopilot/types.js +3 -0
- package/dist/autopilot/types.js.map +1 -1
- package/dist/book/context.d.ts +20 -3
- package/dist/book/context.d.ts.map +1 -1
- package/dist/book/context.js +120 -20
- package/dist/book/context.js.map +1 -1
- package/dist/book/store.d.ts +5 -0
- package/dist/book/store.d.ts.map +1 -1
- package/dist/book/store.js.map +1 -1
- package/dist/director/opinion.d.ts +10 -0
- package/dist/director/opinion.d.ts.map +1 -1
- package/dist/director/opinion.js +43 -13
- package/dist/director/opinion.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/markdown/frontmatter.d.ts +22 -1
- package/dist/markdown/frontmatter.d.ts.map +1 -1
- package/dist/markdown/frontmatter.js +67 -11
- package/dist/markdown/frontmatter.js.map +1 -1
- package/dist/profiles/director.d.ts +15 -0
- package/dist/profiles/director.d.ts.map +1 -1
- package/dist/profiles/director.js +98 -37
- package/dist/profiles/director.js.map +1 -1
- package/dist/profiles/ghostwriter.d.ts +7 -0
- package/dist/profiles/ghostwriter.d.ts.map +1 -1
- package/dist/profiles/ghostwriter.js +54 -16
- package/dist/profiles/ghostwriter.js.map +1 -1
- package/dist/profiles/read.d.ts +33 -0
- package/dist/profiles/read.d.ts.map +1 -0
- package/dist/profiles/read.js +96 -0
- package/dist/profiles/read.js.map +1 -0
- package/dist/profiles/readers.d.ts +8 -0
- package/dist/profiles/readers.d.ts.map +1 -1
- package/dist/profiles/readers.js +82 -12
- package/dist/profiles/readers.js.map +1 -1
- package/dist/prompt/trust.d.ts +11 -0
- package/dist/prompt/trust.d.ts.map +1 -1
- package/dist/prompt/trust.js +26 -0
- package/dist/prompt/trust.js.map +1 -1
- package/dist/readers/evaluation.d.ts.map +1 -1
- package/dist/readers/evaluation.js +3 -2
- package/dist/readers/evaluation.js.map +1 -1
- package/dist/server/client.d.ts +55 -5
- package/dist/server/client.d.ts.map +1 -1
- package/dist/server/client.js +63 -9
- package/dist/server/client.js.map +1 -1
- package/dist/server/protocol.d.ts +44 -2
- package/dist/server/protocol.d.ts.map +1 -1
- package/dist/server/protocol.js +37 -2
- package/dist/server/protocol.js.map +1 -1
- package/dist/sync/files.d.ts +21 -1
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js +84 -15
- package/dist/sync/files.js.map +1 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +2 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/util/text.d.ts +28 -0
- package/dist/util/text.d.ts.map +1 -1
- package/dist/util/text.js +80 -1
- package/dist/util/text.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { type AiPort } from "../ai/types.js";
|
|
2
2
|
import { type BookFileChange, type BookStore } from "../book/store.js";
|
|
3
3
|
import { type TaskDescriptor } from "./planner.js";
|
|
4
|
-
import type
|
|
4
|
+
import { type AutopilotActivity, type AutopilotEventBody, type AutopilotLimitsSummary, type AutopilotPausePending, type AutopilotPublishMode, type AutopilotState, type InterventionInput, type QuestionAnswer, type StartOptions } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* What a host gives the run. Which of the two `after…` hooks are called, and when, is decided by the engine from where the book is
|
|
7
|
+
* published (`options.publishEvery`, else the host's `defaultPublish`, else `options.syncAfterChapter`: see `effectivePublish`),
|
|
8
|
+
* so a host only says how to publish: `afterCommit` is called after every saved step when the book is published after every step,
|
|
9
|
+
* `afterChapter` when a chapter is closed and the book is published after every chapter or every step, and neither when it is not
|
|
10
|
+
* published. A publish that fails is reported (`sync` event) and never stops the run.
|
|
11
|
+
*/
|
|
5
12
|
export interface AutopilotHooks {
|
|
6
13
|
/** Before every step, e.g. fast-forward the working copy from GitHub (server). */
|
|
7
14
|
beforeStep?(signal: AbortSignal): Promise<void>;
|
|
8
|
-
/** After every committed step, e.g. push to GitHub (server). */
|
|
15
|
+
/** After every committed step, when the book is published after every step: e.g. push to GitHub (server). */
|
|
9
16
|
afterCommit?(info: {
|
|
10
17
|
task: TaskDescriptor;
|
|
11
18
|
message: string;
|
|
12
19
|
paths: string[];
|
|
13
20
|
}): Promise<void>;
|
|
14
|
-
/** After a chapter is approved, e.g. publish the local commits to GitHub (browser). */
|
|
21
|
+
/** After a chapter is approved, when the book is published after every chapter or every step: e.g. publish the local commits to GitHub (browser). */
|
|
15
22
|
afterChapter?(info: {
|
|
16
23
|
chapterNumber: number;
|
|
17
24
|
title: string;
|
|
@@ -27,10 +34,28 @@ export interface AutopilotRunConfig {
|
|
|
27
34
|
hostId?: string;
|
|
28
35
|
now?: () => Date;
|
|
29
36
|
hooks?: AutopilotHooks;
|
|
37
|
+
/**
|
|
38
|
+
* Where the host publishes when the author has not chosen (`options.publishEvery`). Without it a server host publishes after every
|
|
39
|
+
* step, as it always did, and a browser host as `options.syncAfterChapter` says.
|
|
40
|
+
*/
|
|
41
|
+
defaultPublish?: AutopilotPublishMode;
|
|
30
42
|
emit: (event: AutopilotEventBody) => void;
|
|
31
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Base delay before the automatic retry of a failed step (ms, default 4000). Transient provider errors are retried up
|
|
45
|
+
* to three times, after about 1×, 3× and 9× this delay (and never sooner than the provider's Retry-After); every
|
|
46
|
+
* delay scales with it, so 0 makes them all instant.
|
|
47
|
+
*/
|
|
32
48
|
retryDelayMs?: number;
|
|
49
|
+
/** Source of the retry jitter, in [0, 1) (default `Math.random`). */
|
|
50
|
+
random?: () => number;
|
|
51
|
+
/**
|
|
52
|
+
* Longest silence (ms) of `autopilot/state.json` while the run is alive: after it the run saves a fresh `runner.heartbeatAt`,
|
|
53
|
+
* so that another host does not take a long step for a dead run. 0 switches it off. Default 300 000 (5 minutes).
|
|
54
|
+
*/
|
|
55
|
+
persistHeartbeatMs?: number;
|
|
33
56
|
}
|
|
57
|
+
/** The longest a step may go without the run writing its state: a quarter of the 20 minutes after which another host takes the run for dead. */
|
|
58
|
+
export declare const DEFAULT_PERSIST_HEARTBEAT_MS = 300000;
|
|
34
59
|
export interface StoredAutopilot {
|
|
35
60
|
state: AutopilotState | null;
|
|
36
61
|
stateHash: string | null;
|
|
@@ -64,18 +89,31 @@ export declare function assertStoredStateReadable(stored: StoredAutopilot): void
|
|
|
64
89
|
export declare function stampState(state: AutopilotState, now: Date): AutopilotState;
|
|
65
90
|
export declare function stateChange(state: AutopilotState, expectedHash: string | null): BookFileChange;
|
|
66
91
|
export declare function activityChange(activities: AutopilotActivity[], expectedHash: string | null): BookFileChange;
|
|
67
|
-
/** Pure application of an author intervention to the state. */
|
|
92
|
+
/** Pure application of an author intervention to the state. A rule (`from_now`, `rewrite`) over `MAX_RULE_CHARACTERS` is refused. */
|
|
68
93
|
export declare function applyIntervention(state: AutopilotState, input: InterventionInput, now: Date, during: string): AutopilotState;
|
|
69
94
|
/** Pure application of the author's answer to the director's question. */
|
|
70
95
|
export declare function applyAnswer(state: AutopilotState, answer: QuestionAnswer, now: Date): AutopilotState;
|
|
96
|
+
/**
|
|
97
|
+
* What the author saved in the state file while a step ran, carried into the state that step produced. `base` is the state
|
|
98
|
+
* as the run last read it, `stored` the file as it is now and `working` the run's own. The author owns the interventions,
|
|
99
|
+
* the rules, what a rewrite changes and the settings that can change during a run (`LIVE_AUTOPILOT_OPTIONS`: where the book is
|
|
100
|
+
* published and whether to pause after every chapter): they are merged (interventions by id, rules by text, the effects of a new
|
|
101
|
+
* rewrite land on `working`, as they did when they were handed over in memory, a setting by its value as the author left it), and
|
|
102
|
+
* the run wins on everything else. `foreign` says that `stored` differs from `base` in something the author does not own or the run
|
|
103
|
+
* does not write by itself (its own heartbeat): that is a conflict.
|
|
104
|
+
*/
|
|
105
|
+
export declare function reconcileAuthorChanges(working: AutopilotState, base: AutopilotState, stored: AutopilotState): {
|
|
106
|
+
state: AutopilotState;
|
|
107
|
+
foreign: boolean;
|
|
108
|
+
};
|
|
71
109
|
/** When the author raises the number of chapters of a finished plan, extend it instead of stopping. */
|
|
72
110
|
export declare function extendPlanIfNeeded(state: AutopilotState): AutopilotState;
|
|
73
111
|
/**
|
|
74
112
|
* Closed list: errors that declare themselves retryable (`retryable: true`, as `AiProviderError` does) and the
|
|
75
113
|
* failures of the book store itself (a working copy being refreshed, a full disk: transient, like a network failure)
|
|
76
|
-
* repeat the step
|
|
77
|
-
* again),
|
|
78
|
-
* same flag.
|
|
114
|
+
* repeat the step. A reply cut by the output limit never does (the same request ends the same way and is billed
|
|
115
|
+
* again), except once when the model had only reasoned and the run raised its limit; nor does an unclassified error
|
|
116
|
+
* (configuration, state). Hosts can mark their own transient failures with the same flag.
|
|
79
117
|
*/
|
|
80
118
|
export declare function isRetryableError(error: unknown): boolean;
|
|
81
119
|
/** What the retried request is told about a rejected reply: the reason, never the reply. At most 500 characters. */
|
|
@@ -91,7 +129,12 @@ export declare class AutopilotRun {
|
|
|
91
129
|
readonly runId: string;
|
|
92
130
|
private readonly controller;
|
|
93
131
|
private stepController;
|
|
132
|
+
/** A pause now or after the step was asked for: the run stops as soon as the step in flight is saved (or abandoned, for now). */
|
|
94
133
|
private stopRequested;
|
|
134
|
+
/** A pause at the end of the chapter was asked for: the run goes on until the chapter in progress is closed and published. */
|
|
135
|
+
private chapterStopRequested;
|
|
136
|
+
/** The step in flight, or waiting to be retried, is part of a chapter in progress: a pause at the end of the chapter does not cut its wait. */
|
|
137
|
+
private inChapter;
|
|
95
138
|
private interrupted;
|
|
96
139
|
/** Another run is recorded as the owner of the book: this one saves nothing more and ends. */
|
|
97
140
|
private leaseLost;
|
|
@@ -99,22 +142,96 @@ export declare class AutopilotRun {
|
|
|
99
142
|
private readonly cache;
|
|
100
143
|
private readonly store;
|
|
101
144
|
private readonly now;
|
|
145
|
+
/** Steps this run saved, and chapters it closed: what the limits of the run count. A step that failed or was abandoned is not one. */
|
|
146
|
+
private stepsThisRun;
|
|
102
147
|
private chaptersThisRun;
|
|
148
|
+
/** The limits of this run, as `StartOptions.limits` gave them. They are not saved. */
|
|
149
|
+
private limits;
|
|
150
|
+
/** The chapter the step saved last closed, until another step is saved: a pause at the end of the chapter asked right then says which. */
|
|
151
|
+
private closedChapter;
|
|
152
|
+
/** Why the run ended, when a client can say it in its language (`run-ended`'s `code`). */
|
|
153
|
+
private endCode;
|
|
154
|
+
private readonly defaultPublish;
|
|
103
155
|
private current;
|
|
156
|
+
/** Output limit multiplier per kind of step, raised after a reply cut while the model only reasoned; kept for the run, never saved. */
|
|
157
|
+
private readonly outputBoosts;
|
|
158
|
+
/** The wait between two tries of a failed step, ended early by a pause. */
|
|
159
|
+
private waiting;
|
|
160
|
+
/** The run already said that the money budget cannot apply to a model without a price. */
|
|
161
|
+
private budgetWarned;
|
|
162
|
+
/** What the planner reported during this run, so that each finding is said once however many steps it takes. */
|
|
163
|
+
private readonly reported;
|
|
164
|
+
private readonly persistHeartbeatMs;
|
|
165
|
+
private heartbeatTimer;
|
|
166
|
+
private heartbeatInFlight;
|
|
167
|
+
/** The run is writing the state itself (a step, a failure): no heartbeat is started, and none is left in flight. */
|
|
168
|
+
private holds;
|
|
169
|
+
/** The run is closing or over: no more heartbeats. */
|
|
170
|
+
private closed;
|
|
171
|
+
/** The state as the run last read or wrote it: what the author's changes are measured against. */
|
|
172
|
+
private known;
|
|
104
173
|
constructor(config: AutopilotRunConfig);
|
|
105
174
|
get activity(): AutopilotActivity | null;
|
|
106
175
|
/** Stop now: the AI request in flight is abandoned (the provider may still bill it). */
|
|
107
176
|
stop(): void;
|
|
108
|
-
/** Finish and save the current step, then pause. */
|
|
177
|
+
/** Finish and save the current step, then pause. A wait before a retry ends at once. */
|
|
109
178
|
stopAfterStep(): void;
|
|
110
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Finish and save the current step and go on to the end of the chapter in progress (its closing and its publishing included),
|
|
181
|
+
* then pause. With no chapter in progress (the concept, the plan, the first step of a chapter that has not started, the final
|
|
182
|
+
* judgement) it is `stopAfterStep`, and so is a wait before a retry of such a step (after the final judgement the book is complete,
|
|
183
|
+
* and the run says so); the wait before the retry of a step of the chapter goes on, because the chapter still has to be finished.
|
|
184
|
+
*/
|
|
185
|
+
stopAfterChapter(): void;
|
|
186
|
+
/**
|
|
187
|
+
* Take back a pause that is waiting (`stopAfterStep`, `stopAfterChapter`): `true` when there was one. A `stop` that already
|
|
188
|
+
* happened cannot be undone, nor can a pause of a run that is closing.
|
|
189
|
+
*/
|
|
190
|
+
cancelPause(): boolean;
|
|
191
|
+
/** The pause that waits for the run to reach it; `null` when none does (a stop that happened is not waiting). */
|
|
192
|
+
get pausePending(): AutopilotPausePending | null;
|
|
193
|
+
/** The limit of chapters of this run: the stricter of the one the run was started with and the saved option `chaptersPerRun` (0 = none). */
|
|
194
|
+
private chaptersLimit;
|
|
195
|
+
/** What the run knows that the state file does not: the pause that waits, and the limits of the run with how far it got. A run that is over has neither. */
|
|
196
|
+
runtime(): {
|
|
197
|
+
pausePending: AutopilotPausePending | null;
|
|
198
|
+
limits: AutopilotLimitsSummary | null;
|
|
199
|
+
};
|
|
200
|
+
/** The summary of a state as this run says it: with the pause that waits, its limits, and where the book is published. */
|
|
201
|
+
private summarize;
|
|
202
|
+
/** Queue an intervention in memory (a session saves it at once instead); with `interrupt` the running step is abandoned and repeated with it. */
|
|
111
203
|
intervene(input: InterventionInput): void;
|
|
204
|
+
/** Abandon the step in flight: it is repeated on the latest saved state, which already holds the intervention that asked for it. */
|
|
205
|
+
interrupt(): void;
|
|
112
206
|
private emit;
|
|
113
207
|
private stepContext;
|
|
208
|
+
private announce;
|
|
209
|
+
/** Waits before a retry; `false` when a pause ended the wait (or came before it). A pause at the end of the chapter does not, for a step of the chapter. */
|
|
210
|
+
private waitBeforeRetry;
|
|
114
211
|
private drainQueue;
|
|
212
|
+
/** The next heartbeat is due after `persistHeartbeatMs` without a write of the state file: every write of the run starts the wait again. */
|
|
213
|
+
private armHeartbeat;
|
|
214
|
+
private disarmHeartbeat;
|
|
215
|
+
/** The run is about to write the state itself: no heartbeat starts, and one that is being written is waited for. */
|
|
216
|
+
private holdHeartbeat;
|
|
217
|
+
private releaseHeartbeat;
|
|
218
|
+
/**
|
|
219
|
+
* Save a fresh `runner.heartbeatAt` while a long step runs, so that another host does not take the run for dead. It is a
|
|
220
|
+
* compare-and-swap write of the file as it is now (nothing the author saved is lost) that never touches the step: a
|
|
221
|
+
* conflict or a failing store is ignored until the next heartbeat; another runner's id in the file is the lease lost.
|
|
222
|
+
*/
|
|
223
|
+
private persistHeartbeat;
|
|
115
224
|
execute(start?: StartOptions): Promise<AutopilotState>;
|
|
116
225
|
/** The steps of the run, until it completes, pauses, fails, or another runner takes the book. */
|
|
117
226
|
private runSteps;
|
|
227
|
+
/**
|
|
228
|
+
* Save a finished step. The state file is read again first. What the author saved to it while the step ran (interventions,
|
|
229
|
+
* rules) is carried into the state this step writes, and the run's own heartbeat needs no carrying: the step is neither
|
|
230
|
+
* repeated nor is an AI call with it. When anything else changed, or another runner owns the book, it is a conflict, as it
|
|
231
|
+
* always was, and the step is repeated on the latest state. A commit that fails only because the author saved again in the
|
|
232
|
+
* meantime is tried again on that state; one rejected for another file is not (the step has to be repeated).
|
|
233
|
+
*/
|
|
234
|
+
private commitStep;
|
|
118
235
|
/** Another run is recorded as the owner of the book. A stored runner of `null` means nobody owns it: this run may still record its end. */
|
|
119
236
|
private lostLease;
|
|
120
237
|
/** From now on this run writes nothing: the book belongs to another runner. */
|
|
@@ -124,7 +241,10 @@ export declare class AutopilotRun {
|
|
|
124
241
|
* in the same commit, so the budget limit never under-counts rejected replies.
|
|
125
242
|
*/
|
|
126
243
|
private persistFailure;
|
|
127
|
-
/**
|
|
244
|
+
/**
|
|
245
|
+
* Close the run with a final status, persisted together with any queued intervention and with what the author saved since the run last read the state.
|
|
246
|
+
* `code` is the reason a client can say in its language (`run-ended`'s `code`), when there is one.
|
|
247
|
+
*/
|
|
128
248
|
private finish;
|
|
129
249
|
}
|
|
130
250
|
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/autopilot/runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/autopilot/runner.ts"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,MAAM,EAAiD,MAAM,gBAAgB,CAAC;AAInI,OAAO,EAA4D,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQjI,OAAO,EAAsF,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAqBvI,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAE3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAEzB,KAAK,c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