narrarium-engine 0.1.8 → 0.1.10
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 +409 -27
- package/dist/ai/budget.d.ts +18 -2
- package/dist/ai/budget.d.ts.map +1 -1
- package/dist/ai/budget.js +9 -2
- package/dist/ai/budget.js.map +1 -1
- package/dist/ai/catalog-fetch.d.ts.map +1 -1
- package/dist/ai/catalog-fetch.js +2 -1
- package/dist/ai/catalog-fetch.js.map +1 -1
- package/dist/ai/fetch-client.d.ts +13 -6
- package/dist/ai/fetch-client.d.ts.map +1 -1
- package/dist/ai/fetch-client.js +26 -3
- package/dist/ai/fetch-client.js.map +1 -1
- package/dist/ai/request.d.ts +1 -1
- package/dist/ai/request.d.ts.map +1 -1
- package/dist/ai/request.js +31 -5
- package/dist/ai/request.js.map +1 -1
- package/dist/ai/routing.d.ts.map +1 -1
- package/dist/ai/routing.js +1 -1
- package/dist/ai/routing.js.map +1 -1
- package/dist/ai/types.d.ts +29 -2
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +5 -2
- package/dist/ai/types.js.map +1 -1
- package/dist/autopilot/chapter-state.d.ts +19 -0
- package/dist/autopilot/chapter-state.d.ts.map +1 -0
- package/dist/autopilot/chapter-state.js +31 -0
- package/dist/autopilot/chapter-state.js.map +1 -0
- package/dist/autopilot/errors.d.ts +2 -1
- package/dist/autopilot/errors.d.ts.map +1 -1
- package/dist/autopilot/errors.js +17 -1
- package/dist/autopilot/errors.js.map +1 -1
- package/dist/autopilot/estimate-math.d.ts +19 -0
- package/dist/autopilot/estimate-math.d.ts.map +1 -0
- package/dist/autopilot/estimate-math.js +74 -0
- package/dist/autopilot/estimate-math.js.map +1 -0
- package/dist/autopilot/estimate-texts.d.ts +40 -0
- package/dist/autopilot/estimate-texts.d.ts.map +1 -0
- package/dist/autopilot/estimate-texts.js +130 -0
- package/dist/autopilot/estimate-texts.js.map +1 -0
- package/dist/autopilot/estimate.d.ts +303 -0
- package/dist/autopilot/estimate.d.ts.map +1 -0
- package/dist/autopilot/estimate.js +887 -0
- package/dist/autopilot/estimate.js.map +1 -0
- package/dist/autopilot/frozen.d.ts +166 -0
- package/dist/autopilot/frozen.d.ts.map +1 -0
- package/dist/autopilot/frozen.js +483 -0
- package/dist/autopilot/frozen.js.map +1 -0
- package/dist/autopilot/outline-change.d.ts +69 -0
- package/dist/autopilot/outline-change.d.ts.map +1 -0
- package/dist/autopilot/outline-change.js +42 -0
- package/dist/autopilot/outline-change.js.map +1 -0
- package/dist/autopilot/outline-check.d.ts +40 -0
- package/dist/autopilot/outline-check.d.ts.map +1 -0
- package/dist/autopilot/outline-check.js +84 -0
- package/dist/autopilot/outline-check.js.map +1 -0
- package/dist/autopilot/outline-compose.d.ts +203 -0
- package/dist/autopilot/outline-compose.d.ts.map +1 -0
- package/dist/autopilot/outline-compose.js +492 -0
- package/dist/autopilot/outline-compose.js.map +1 -0
- package/dist/autopilot/planner.d.ts +29 -1
- package/dist/autopilot/planner.d.ts.map +1 -1
- package/dist/autopilot/planner.js +78 -8
- package/dist/autopilot/planner.js.map +1 -1
- package/dist/autopilot/presets.d.ts +36 -0
- package/dist/autopilot/presets.d.ts.map +1 -0
- package/dist/autopilot/presets.js +54 -0
- package/dist/autopilot/presets.js.map +1 -0
- package/dist/autopilot/profile-check.d.ts +7 -4
- package/dist/autopilot/profile-check.d.ts.map +1 -1
- package/dist/autopilot/profile-check.js +9 -6
- package/dist/autopilot/profile-check.js.map +1 -1
- package/dist/autopilot/runner.d.ts +61 -7
- package/dist/autopilot/runner.d.ts.map +1 -1
- package/dist/autopilot/runner.js +313 -32
- package/dist/autopilot/runner.js.map +1 -1
- package/dist/autopilot/session.d.ts +50 -7
- package/dist/autopilot/session.d.ts.map +1 -1
- package/dist/autopilot/session.js +225 -10
- package/dist/autopilot/session.js.map +1 -1
- package/dist/autopilot/speed.d.ts +30 -0
- package/dist/autopilot/speed.d.ts.map +1 -0
- package/dist/autopilot/speed.js +71 -0
- package/dist/autopilot/speed.js.map +1 -0
- package/dist/autopilot/state.d.ts +21 -2
- package/dist/autopilot/state.d.ts.map +1 -1
- package/dist/autopilot/state.js +215 -3
- package/dist/autopilot/state.js.map +1 -1
- package/dist/autopilot/tasks.d.ts +14 -2
- package/dist/autopilot/tasks.d.ts.map +1 -1
- package/dist/autopilot/tasks.js +478 -34
- package/dist/autopilot/tasks.js.map +1 -1
- package/dist/autopilot/types.d.ts +238 -14
- package/dist/autopilot/types.d.ts.map +1 -1
- package/dist/autopilot/types.js +18 -2
- package/dist/autopilot/types.js.map +1 -1
- package/dist/book/context.d.ts +3 -0
- package/dist/book/context.d.ts.map +1 -1
- package/dist/book/context.js +7 -1
- package/dist/book/context.js.map +1 -1
- package/dist/book/freeze.d.ts +115 -0
- package/dist/book/freeze.d.ts.map +1 -0
- package/dist/book/freeze.js +286 -0
- package/dist/book/freeze.js.map +1 -0
- package/dist/book/outline.d.ts +245 -0
- package/dist/book/outline.d.ts.map +1 -0
- package/dist/book/outline.js +488 -0
- package/dist/book/outline.js.map +1 -0
- package/dist/book/paths.d.ts +18 -0
- package/dist/book/paths.d.ts.map +1 -1
- package/dist/book/paths.js +25 -0
- package/dist/book/paths.js.map +1 -1
- package/dist/book/snapshot.d.ts +25 -1
- package/dist/book/snapshot.d.ts.map +1 -1
- package/dist/book/snapshot.js +24 -4
- package/dist/book/snapshot.js.map +1 -1
- package/dist/director/opinion.d.ts +6 -0
- package/dist/director/opinion.d.ts.map +1 -1
- package/dist/director/opinion.js +4 -1
- package/dist/director/opinion.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/profiles/evaluation-style.d.ts +44 -0
- package/dist/profiles/evaluation-style.d.ts.map +1 -0
- package/dist/profiles/evaluation-style.js +152 -0
- package/dist/profiles/evaluation-style.js.map +1 -0
- package/dist/server/client.d.ts +92 -7
- package/dist/server/client.d.ts.map +1 -1
- package/dist/server/client.js +138 -11
- package/dist/server/client.js.map +1 -1
- package/dist/server/protocol.d.ts +226 -2
- package/dist/server/protocol.d.ts.map +1 -1
- package/dist/server/protocol.js +69 -0
- package/dist/server/protocol.js.map +1 -1
- package/dist/util/text.d.ts +6 -0
- package/dist/util/text.d.ts.map +1 -1
- package/dist/util/text.js +21 -0
- package/dist/util/text.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import type { BookFileChange, BookStore } from "./store.js";
|
|
2
|
+
/**
|
|
3
|
+
* The outline (Scaletta): the author's chapter-by-chapter trace of the book. `outline/book.md` is the rough description of the
|
|
4
|
+
* book (`type: outline`), and every chapter has a file of its own, `outline/chapters/<NNN>.md` (`type: outline-chapter`): its
|
|
5
|
+
* hypothetical `title`, what happens in its body (plain text) and, optionally, the `ghostwriter` that writes it. `origin` says who
|
|
6
|
+
* wrote the entry last; the autopilot writes `origin: autopilot` with the `digest` of what it wrote, so an entry whose content
|
|
7
|
+
* no longer matches its digest is the author's. An entry of the author binds the autopilot; one the autopilot wrote and nobody
|
|
8
|
+
* touched since (`intact`) is the autopilot's own, and it may rewrite it.
|
|
9
|
+
*/
|
|
10
|
+
export type OutlineOrigin = "author" | "autopilot";
|
|
11
|
+
/** Characters of the text of one entry: an edit that writes more is cut, with a warning, and the autopilot reads no more. */
|
|
12
|
+
export declare const OUTLINE_ENTRY_MAX_CHARS = 20000;
|
|
13
|
+
/** Characters of a hypothetical title: it becomes the name of the chapter's folder. */
|
|
14
|
+
export declare const OUTLINE_TITLE_MAX_CHARS = 200;
|
|
15
|
+
export type OutlineWarningCode = "unreadable" | "number-mismatch" | "duplicate" | "gap" | "not-an-entry" | "origin-unknown" | "not-text" | "text-too-long" | "title-too-long" | "ghostwriter-missing" | "ghostwriter-invalid" | "not-found";
|
|
16
|
+
/** Something odd in the outline. Never an error: the outline is read, and written, all the same. The message is in English and names the file. */
|
|
17
|
+
export interface OutlineWarning {
|
|
18
|
+
code: OutlineWarningCode;
|
|
19
|
+
message: string;
|
|
20
|
+
path?: string;
|
|
21
|
+
number?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface OutlineChapterEntry {
|
|
24
|
+
/** The chapter, from the name of the file. */
|
|
25
|
+
number: number;
|
|
26
|
+
path: string;
|
|
27
|
+
/** The hash of the file, when it was read from a store: what an edit expects to find. */
|
|
28
|
+
hash?: string;
|
|
29
|
+
/** The hypothetical title; empty when the entry has none. */
|
|
30
|
+
title: string;
|
|
31
|
+
/** What happens in the chapter. */
|
|
32
|
+
body: string;
|
|
33
|
+
/** The slug of `ghostwriters/<slug>.md`; absent: the book's. */
|
|
34
|
+
ghostwriter?: string;
|
|
35
|
+
origin: OutlineOrigin;
|
|
36
|
+
/** The digest the autopilot wrote with the entry. */
|
|
37
|
+
digest?: string;
|
|
38
|
+
/** The digest of the entry as it is now (`outlineEntryDigest`). */
|
|
39
|
+
contentDigest: string;
|
|
40
|
+
/** Written by the autopilot and untouched since: the autopilot may rewrite it. Every other entry is the author's, and binds. */
|
|
41
|
+
intact: boolean;
|
|
42
|
+
/** Its frontmatter cannot be read: it is the author's, and the autopilot never rewrites it. */
|
|
43
|
+
unreadable?: boolean;
|
|
44
|
+
/** The frontmatter as it was read, so that a rewrite loses no key. */
|
|
45
|
+
frontmatter: Record<string, unknown>;
|
|
46
|
+
/** The file as it is, for an entry whose frontmatter cannot be read: it is moved as it is. */
|
|
47
|
+
raw?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface OutlineBookEntry {
|
|
50
|
+
path: string;
|
|
51
|
+
hash?: string;
|
|
52
|
+
/** The working title (the book's own title stays in `book.md`). */
|
|
53
|
+
title: string;
|
|
54
|
+
/** The rough description of the book. */
|
|
55
|
+
body: string;
|
|
56
|
+
origin: OutlineOrigin;
|
|
57
|
+
digest?: string;
|
|
58
|
+
contentDigest: string;
|
|
59
|
+
intact: boolean;
|
|
60
|
+
unreadable?: boolean;
|
|
61
|
+
frontmatter: Record<string, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export interface ParsedOutline {
|
|
64
|
+
book: OutlineBookEntry | null;
|
|
65
|
+
/** One entry per chapter, in order of number. */
|
|
66
|
+
chapters: OutlineChapterEntry[];
|
|
67
|
+
warnings: OutlineWarning[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The fingerprint of what an entry says: its title, its text and its ghostwriter (line endings and the spaces around them do not
|
|
71
|
+
* count). Sixteen hexadecimal characters of a SHA-256. The autopilot writes it with the entries it writes (`digest`), and the plan
|
|
72
|
+
* keeps it for the chapters that come from an entry (`PlannedChapter.outlineDigest`).
|
|
73
|
+
*/
|
|
74
|
+
export declare function outlineEntryDigest(entry: {
|
|
75
|
+
title?: string;
|
|
76
|
+
body?: string;
|
|
77
|
+
ghostwriter?: string | null;
|
|
78
|
+
}): Promise<string>;
|
|
79
|
+
/** The fingerprint of the description of the book: its working title and its text. */
|
|
80
|
+
export declare function outlineBookDigest(book: {
|
|
81
|
+
title?: string;
|
|
82
|
+
body?: string;
|
|
83
|
+
}): Promise<string>;
|
|
84
|
+
/** One entry of the outline from its file. The number is the file's; a frontmatter that says another is a warning. */
|
|
85
|
+
export declare function readOutlineChapter(path: string, number: number, content: string, hash?: string): Promise<{
|
|
86
|
+
entry: OutlineChapterEntry;
|
|
87
|
+
warnings: OutlineWarning[];
|
|
88
|
+
}>;
|
|
89
|
+
/** The description of the book from `outline/book.md`. */
|
|
90
|
+
export declare function readOutlineBook(content: string, hash?: string): Promise<{
|
|
91
|
+
book: OutlineBookEntry;
|
|
92
|
+
warnings: OutlineWarning[];
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* The outline from its files (`outline/book.md`, `outline/chapters/<NNN>.md`; the other files are left out). Pure, with no I/O:
|
|
96
|
+
* `files` are the files as a store has them, with their hashes when an edit has to be made on them. Never throws: what is odd
|
|
97
|
+
* (YAML that cannot be read, two files for one chapter, a number of the frontmatter that is not the file's, a chapter without an
|
|
98
|
+
* entry between two that have one) is a warning, and the entry is read as far as it can be.
|
|
99
|
+
*/
|
|
100
|
+
export declare function parseOutline(files: ReadonlyArray<{
|
|
101
|
+
path: string;
|
|
102
|
+
content: string;
|
|
103
|
+
hash?: string;
|
|
104
|
+
} | null | undefined>): Promise<ParsedOutline>;
|
|
105
|
+
/** An entry to write. `origin` is the author's unless the autopilot writes it; only the autopilot's carries a `digest`. */
|
|
106
|
+
export interface OutlineChapterInput {
|
|
107
|
+
number: number;
|
|
108
|
+
title?: string;
|
|
109
|
+
body?: string;
|
|
110
|
+
ghostwriter?: string | null;
|
|
111
|
+
origin?: OutlineOrigin;
|
|
112
|
+
digest?: string;
|
|
113
|
+
/** The keys the file has now: kept, but for the ones the format manages. */
|
|
114
|
+
frontmatter?: Record<string, unknown>;
|
|
115
|
+
}
|
|
116
|
+
export declare function serializeOutlineChapter(entry: OutlineChapterInput): string;
|
|
117
|
+
export interface OutlineBookInput {
|
|
118
|
+
title?: string | null;
|
|
119
|
+
body?: string;
|
|
120
|
+
origin?: OutlineOrigin;
|
|
121
|
+
digest?: string;
|
|
122
|
+
frontmatter?: Record<string, unknown>;
|
|
123
|
+
}
|
|
124
|
+
export declare function serializeOutlineBook(book: OutlineBookInput): string;
|
|
125
|
+
export interface OutlineEntryInput {
|
|
126
|
+
title?: string;
|
|
127
|
+
body?: string;
|
|
128
|
+
/** `null` takes the ghostwriter away: the book's writes the chapter. */
|
|
129
|
+
ghostwriter?: string | null;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* What the author does to the outline. `append` adds a chapter after the last; `insert` puts one at position `at`, and the entries
|
|
133
|
+
* from there on move one number up; `move` takes the entry `from` to position `to`, the ones in between following; `remove` deletes
|
|
134
|
+
* an entry and leaves its number empty, unless `renumber` closes the gap; `update` changes the title, the text or the ghostwriter
|
|
135
|
+
* of an entry (the fields that are given), and creates it when there is none; `book` changes the working title or the description.
|
|
136
|
+
*/
|
|
137
|
+
export type OutlineEdit = {
|
|
138
|
+
kind: "append";
|
|
139
|
+
entry: OutlineEntryInput;
|
|
140
|
+
} | {
|
|
141
|
+
kind: "insert";
|
|
142
|
+
at: number;
|
|
143
|
+
entry: OutlineEntryInput;
|
|
144
|
+
} | {
|
|
145
|
+
kind: "move";
|
|
146
|
+
from: number;
|
|
147
|
+
to: number;
|
|
148
|
+
} | {
|
|
149
|
+
kind: "remove";
|
|
150
|
+
number: number;
|
|
151
|
+
renumber?: boolean;
|
|
152
|
+
} | {
|
|
153
|
+
kind: "update";
|
|
154
|
+
number: number;
|
|
155
|
+
entry: OutlineEntryInput;
|
|
156
|
+
} | {
|
|
157
|
+
kind: "book";
|
|
158
|
+
title?: string | null;
|
|
159
|
+
body?: string;
|
|
160
|
+
};
|
|
161
|
+
export interface OutlineChangesInput {
|
|
162
|
+
/** The outline as it is now, read with the hashes of its files (`parseOutline`): every change expects the file it read. */
|
|
163
|
+
outline: ParsedOutline;
|
|
164
|
+
edit: OutlineEdit;
|
|
165
|
+
/** The ghostwriters of the book (the slugs of `ghostwriters/<slug>.md`). Without the list, the ghostwriters are not checked. */
|
|
166
|
+
ghostwriters?: readonly string[];
|
|
167
|
+
}
|
|
168
|
+
export interface OutlineChangesResult {
|
|
169
|
+
/** One commit of the store: the files to write and to delete, each expecting the file as it was read (`null`: it must not exist). */
|
|
170
|
+
changes: BookFileChange[];
|
|
171
|
+
warnings: OutlineWarning[];
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The changes that make an edit of the author: one list for one commit, however many files move (inserting a chapter at the head of
|
|
175
|
+
* an outline of 5000 renames 5000 entries). Every entry the edit writes or moves is the author's (`origin: author`, no `digest`):
|
|
176
|
+
* the autopilot follows it and never rewrites it. The keys of a file the format does not manage are kept; an entry whose frontmatter
|
|
177
|
+
* cannot be read is moved as it is. Never an error for what the outline says (a ghostwriter that does not exist, a text too long, a
|
|
178
|
+
* chapter left without an entry): those are warnings. Only arguments that are not numbers of chapters throw.
|
|
179
|
+
*/
|
|
180
|
+
export declare function outlineChanges(input: OutlineChangesInput): OutlineChangesResult;
|
|
181
|
+
export interface OutlineIndexEntry {
|
|
182
|
+
number: number;
|
|
183
|
+
path: string;
|
|
184
|
+
hash: string;
|
|
185
|
+
}
|
|
186
|
+
/** The files of the outline with their hashes, known from the list of the book's files without reading any. */
|
|
187
|
+
export interface OutlineIndex {
|
|
188
|
+
book: {
|
|
189
|
+
path: string;
|
|
190
|
+
hash: string;
|
|
191
|
+
} | null;
|
|
192
|
+
/** One file per chapter (the one with the name the core gives it, when there are two), in order of number. */
|
|
193
|
+
chapters: OutlineIndexEntry[];
|
|
194
|
+
}
|
|
195
|
+
export declare function outlineIndex(files: Iterable<readonly [string, string]>): OutlineIndex;
|
|
196
|
+
/** Entries read from a store, kept by path and hash: a run reads a file of the outline again only when it changed. */
|
|
197
|
+
export declare class OutlineCache {
|
|
198
|
+
private readonly chapters;
|
|
199
|
+
private book;
|
|
200
|
+
chapter(store: BookStore, file: OutlineIndexEntry): Promise<{
|
|
201
|
+
entry: OutlineChapterEntry;
|
|
202
|
+
warnings: OutlineWarning[];
|
|
203
|
+
} | null>;
|
|
204
|
+
bookEntry(store: BookStore, file: {
|
|
205
|
+
path: string;
|
|
206
|
+
hash: string;
|
|
207
|
+
}): Promise<{
|
|
208
|
+
book: OutlineBookEntry;
|
|
209
|
+
warnings: OutlineWarning[];
|
|
210
|
+
} | null>;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* The outline of a book as the autopilot reads it: from the index of the snapshot (paths and hashes), reading a file only when
|
|
214
|
+
* something needs what it says, through a cache that a run keeps from one step to the next.
|
|
215
|
+
*/
|
|
216
|
+
export declare class OutlineReader {
|
|
217
|
+
private readonly store;
|
|
218
|
+
readonly index: OutlineIndex;
|
|
219
|
+
private readonly cache;
|
|
220
|
+
private readonly byNumber;
|
|
221
|
+
private readonly seen;
|
|
222
|
+
constructor(store: BookStore, index: OutlineIndex, cache?: OutlineCache);
|
|
223
|
+
/** The outline of a snapshot: its index when it has one, else the one its files make. */
|
|
224
|
+
static of(store: BookStore, snapshot: {
|
|
225
|
+
files: ReadonlyMap<string, string>;
|
|
226
|
+
outline?: OutlineIndex;
|
|
227
|
+
}, cache?: OutlineCache): OutlineReader;
|
|
228
|
+
/** No entry and no description. */
|
|
229
|
+
get empty(): boolean;
|
|
230
|
+
has(number: number): boolean;
|
|
231
|
+
/** The highest chapter that has an entry, binding or not (0 without entries). */
|
|
232
|
+
get last(): number;
|
|
233
|
+
chapter(number: number): Promise<OutlineChapterEntry | null>;
|
|
234
|
+
/** The entries of these chapters (all of them without a list), in order of number. */
|
|
235
|
+
chapters(numbers?: Iterable<number>): Promise<OutlineChapterEntry[]>;
|
|
236
|
+
book(): Promise<OutlineBookEntry | null>;
|
|
237
|
+
/**
|
|
238
|
+
* The last chapter the author's outline asks for: the highest number above `above` whose entry binds (the author's), else 0.
|
|
239
|
+
* Only the entries above `above` are read, from the last down, until one binds.
|
|
240
|
+
*/
|
|
241
|
+
lastAuthorChapter(above?: number): Promise<number>;
|
|
242
|
+
/** The warnings of the files read so far. */
|
|
243
|
+
warnings(): OutlineWarning[];
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=outline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../src/book/outline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEnD,6HAA6H;AAC7H,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAC9C,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ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