embedoc 0.9.0 → 0.9.1
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 +2 -0
- package/dist/embed-api.d.ts +49 -0
- package/dist/embed-api.d.ts.map +1 -0
- package/dist/embed-api.js +23 -0
- package/dist/embed-api.js.map +1 -0
- package/dist/index.d.ts +56 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -4
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +413 -26
- package/dist/types/index.d.ts.map +1 -1
- package/docs/api/README.md +685 -0
- package/package.json +8 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -109,20 +109,112 @@ export interface DetectedComment {
|
|
|
109
109
|
styleName: string;
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Query result returned from datasource operations.
|
|
113
|
+
*
|
|
114
|
+
* An array of records, where each record is an object with string keys
|
|
115
|
+
* and unknown values. Use type assertions when accessing specific fields.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* const users = await ctx.datasources.db.query('SELECT * FROM users');
|
|
120
|
+
* users.forEach(user => {
|
|
121
|
+
* console.log(user['name'] as string);
|
|
122
|
+
* console.log(user['age'] as number);
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
113
125
|
*/
|
|
114
126
|
export type QueryResult = Record<string, unknown>[];
|
|
115
127
|
/**
|
|
116
|
-
* Datasource interface
|
|
128
|
+
* Datasource interface for accessing external data.
|
|
129
|
+
*
|
|
130
|
+
* Datasources are configured in `embedoc.config.yaml` and accessed
|
|
131
|
+
* via `ctx.datasources` in embed render functions.
|
|
132
|
+
*
|
|
133
|
+
* **Note**: The `query` option in config is for **generators** (file generation).
|
|
134
|
+
* In embeds, use `query()` method to execute **dynamic queries with parameters**
|
|
135
|
+
* from marker attributes or frontmatter.
|
|
136
|
+
*
|
|
137
|
+
* Supported datasource types:
|
|
138
|
+
* - `sqlite` - SQLite database (supports parameterized queries)
|
|
139
|
+
* - `csv` - CSV files (use `getAll()`)
|
|
140
|
+
* - `json` - JSON files (use `getAll()`)
|
|
141
|
+
* - `yaml` - YAML files (use `getAll()`)
|
|
142
|
+
* - `glob` - File listings (use `getAll()`)
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```typescript
|
|
146
|
+
* // In your embed's render function
|
|
147
|
+
* const ds = ctx.datasources['metadata_db'];
|
|
148
|
+
*
|
|
149
|
+
* // SQLite: dynamic query with marker parameters
|
|
150
|
+
* const { id } = ctx.params; // From: <!--@embedoc:my_embed id="users"-->
|
|
151
|
+
* const rows = await ds.query(
|
|
152
|
+
* 'SELECT * FROM columns WHERE table_name = ?',
|
|
153
|
+
* [id]
|
|
154
|
+
* );
|
|
155
|
+
*
|
|
156
|
+
* // CSV/JSON/YAML: get all data
|
|
157
|
+
* const allData = await ds.getAll();
|
|
158
|
+
* ```
|
|
117
159
|
*/
|
|
118
160
|
export interface Datasource {
|
|
119
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* Datasource type identifier.
|
|
163
|
+
* One of: 'sqlite', 'csv', 'json', 'yaml', 'glob', 'inline'
|
|
164
|
+
*/
|
|
120
165
|
readonly type: string;
|
|
121
|
-
/**
|
|
166
|
+
/**
|
|
167
|
+
* Execute a parameterized query on the datasource.
|
|
168
|
+
*
|
|
169
|
+
* **SQLite**: Execute SQL with parameters from marker attributes or frontmatter.
|
|
170
|
+
* This allows dynamic filtering based on the document context.
|
|
171
|
+
*
|
|
172
|
+
* **CSV/JSON/YAML/Glob**: Parameters are ignored; use `getAll()` instead.
|
|
173
|
+
*
|
|
174
|
+
* @param sql - SQL query string with `?` placeholders for parameters
|
|
175
|
+
* @param params - Values to bind to the placeholders (prevents SQL injection)
|
|
176
|
+
* @returns Promise resolving to an array of records
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```typescript
|
|
180
|
+
* // Dynamic query using marker parameter
|
|
181
|
+
* const { id } = ctx.params; // From: <!--@embedoc:table_columns id="users"-->
|
|
182
|
+
* const columns = await ds.query(
|
|
183
|
+
* 'SELECT * FROM columns WHERE table_name = ? ORDER BY ordinal_position',
|
|
184
|
+
* [id]
|
|
185
|
+
* );
|
|
186
|
+
*
|
|
187
|
+
* // Multiple parameters
|
|
188
|
+
* const filtered = await ds.query(
|
|
189
|
+
* 'SELECT * FROM users WHERE status = ? AND role = ?',
|
|
190
|
+
* [ctx.params['status'], ctx.params['role']]
|
|
191
|
+
* );
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
122
194
|
query(sql: string, params?: unknown[]): Promise<QueryResult>;
|
|
123
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* Get all data from the datasource.
|
|
197
|
+
*
|
|
198
|
+
* Returns all records without filtering. Recommended for
|
|
199
|
+
* CSV, JSON, YAML, and Glob datasources.
|
|
200
|
+
*
|
|
201
|
+
* @returns Promise resolving to an array of all records
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```typescript
|
|
205
|
+
* // CSV datasource
|
|
206
|
+
* const endpoints = await ctx.datasources['api_endpoints'].getAll();
|
|
207
|
+
*
|
|
208
|
+
* // JSON datasource
|
|
209
|
+
* const config = await ctx.datasources['config'].getAll();
|
|
210
|
+
* ```
|
|
211
|
+
*/
|
|
124
212
|
getAll(): Promise<QueryResult>;
|
|
125
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* @internal
|
|
215
|
+
* Close the datasource connection.
|
|
216
|
+
* Called automatically by embedoc - do not call manually.
|
|
217
|
+
*/
|
|
126
218
|
close(): Promise<void>;
|
|
127
219
|
}
|
|
128
220
|
/**
|
|
@@ -130,58 +222,353 @@ export interface Datasource {
|
|
|
130
222
|
*/
|
|
131
223
|
export type DatasourceFactory = (config: DatasourceConfig) => Promise<Datasource>;
|
|
132
224
|
/**
|
|
133
|
-
* Markdown
|
|
225
|
+
* Helper interface for generating Markdown content.
|
|
226
|
+
*
|
|
227
|
+
* Always available via `ctx.markdown` in embed render functions.
|
|
228
|
+
* Provides methods for creating common Markdown elements:
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```typescript
|
|
232
|
+
* export default defineEmbed({
|
|
233
|
+
* async render(ctx) {
|
|
234
|
+
* const { markdown } = ctx;
|
|
235
|
+
*
|
|
236
|
+
* // Create a table
|
|
237
|
+
* const table = markdown.table(
|
|
238
|
+
* ['Name', 'Age'],
|
|
239
|
+
* [['Alice', 25], ['Bob', 30]]
|
|
240
|
+
* );
|
|
241
|
+
*
|
|
242
|
+
* // Create a list
|
|
243
|
+
* const list = markdown.list(['Item 1', 'Item 2'], false);
|
|
244
|
+
*
|
|
245
|
+
* return { content: table + '\n\n' + list };
|
|
246
|
+
* }
|
|
247
|
+
* });
|
|
248
|
+
* ```
|
|
134
249
|
*/
|
|
135
250
|
export interface MarkdownHelper {
|
|
136
|
-
/**
|
|
251
|
+
/**
|
|
252
|
+
* Generate a Markdown table.
|
|
253
|
+
*
|
|
254
|
+
* @param headers - Array of column header strings
|
|
255
|
+
* @param rows - 2D array of cell values (each inner array is a row)
|
|
256
|
+
* @returns Formatted Markdown table string
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* ```typescript
|
|
260
|
+
* ctx.markdown.table(
|
|
261
|
+
* ['Column', 'Type', 'Description'],
|
|
262
|
+
* [
|
|
263
|
+
* ['id', 'integer', 'Primary key'],
|
|
264
|
+
* ['name', 'varchar', 'User name'],
|
|
265
|
+
* ]
|
|
266
|
+
* );
|
|
267
|
+
* // Output:
|
|
268
|
+
* // | Column | Type | Description |
|
|
269
|
+
* // | --- | --- | --- |
|
|
270
|
+
* // | id | integer | Primary key |
|
|
271
|
+
* // | name | varchar | User name |
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
137
274
|
table(headers: string[], rows: (string | number | boolean | null | undefined)[][]): string;
|
|
138
|
-
/**
|
|
275
|
+
/**
|
|
276
|
+
* Generate a Markdown list.
|
|
277
|
+
*
|
|
278
|
+
* @param items - Array of list item strings
|
|
279
|
+
* @param ordered - If true, creates numbered list; if false, creates bullet list
|
|
280
|
+
* @returns Formatted Markdown list string
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* ```typescript
|
|
284
|
+
* // Unordered list
|
|
285
|
+
* ctx.markdown.list(['Apple', 'Banana', 'Cherry'], false);
|
|
286
|
+
* // Output:
|
|
287
|
+
* // - Apple
|
|
288
|
+
* // - Banana
|
|
289
|
+
* // - Cherry
|
|
290
|
+
*
|
|
291
|
+
* // Ordered list
|
|
292
|
+
* ctx.markdown.list(['First', 'Second', 'Third'], true);
|
|
293
|
+
* // Output:
|
|
294
|
+
* // 1. First
|
|
295
|
+
* // 2. Second
|
|
296
|
+
* // 3. Third
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
139
299
|
list(items: string[], ordered?: boolean): string;
|
|
140
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Generate a fenced code block.
|
|
302
|
+
*
|
|
303
|
+
* @param code - The code content
|
|
304
|
+
* @param language - Optional language identifier for syntax highlighting
|
|
305
|
+
* @returns Formatted Markdown code block string
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```typescript
|
|
309
|
+
* ctx.markdown.codeBlock('const x = 1;', 'typescript');
|
|
310
|
+
* // Output:
|
|
311
|
+
* // ```typescript
|
|
312
|
+
* // const x = 1;
|
|
313
|
+
* // ```
|
|
314
|
+
* ```
|
|
315
|
+
*/
|
|
141
316
|
codeBlock(code: string, language?: string): string;
|
|
142
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* Generate a Markdown link.
|
|
319
|
+
*
|
|
320
|
+
* @param text - Link display text
|
|
321
|
+
* @param url - Link URL
|
|
322
|
+
* @returns Formatted Markdown link string
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* ```typescript
|
|
326
|
+
* ctx.markdown.link('Visit Google', 'https://google.com');
|
|
327
|
+
* // Output: [Visit Google](https://google.com)
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
143
330
|
link(text: string, url: string): string;
|
|
144
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Generate a Markdown heading.
|
|
333
|
+
*
|
|
334
|
+
* @param text - Heading text
|
|
335
|
+
* @param level - Heading level (1-6), defaults to 1
|
|
336
|
+
* @returns Formatted Markdown heading string
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```typescript
|
|
340
|
+
* ctx.markdown.heading('Section Title', 2);
|
|
341
|
+
* // Output: ## Section Title
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
145
344
|
heading(text: string, level?: number): string;
|
|
146
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Wrap text in bold formatting.
|
|
347
|
+
*
|
|
348
|
+
* @param text - Text to make bold
|
|
349
|
+
* @returns Bold formatted string
|
|
350
|
+
*
|
|
351
|
+
* @example
|
|
352
|
+
* ```typescript
|
|
353
|
+
* ctx.markdown.bold('Important');
|
|
354
|
+
* // Output: **Important**
|
|
355
|
+
* ```
|
|
356
|
+
*/
|
|
147
357
|
bold(text: string): string;
|
|
148
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* Wrap text in italic formatting.
|
|
360
|
+
*
|
|
361
|
+
* @param text - Text to make italic
|
|
362
|
+
* @returns Italic formatted string
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* ```typescript
|
|
366
|
+
* ctx.markdown.italic('Emphasis');
|
|
367
|
+
* // Output: *Emphasis*
|
|
368
|
+
* ```
|
|
369
|
+
*/
|
|
149
370
|
italic(text: string): string;
|
|
150
|
-
/**
|
|
371
|
+
/**
|
|
372
|
+
* Generate a checkbox character.
|
|
373
|
+
*
|
|
374
|
+
* @param checked - Whether the checkbox is checked
|
|
375
|
+
* @returns Checkbox character ('✔' if checked, '' if not)
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```typescript
|
|
379
|
+
* ctx.markdown.checkbox(true); // Output: ✔
|
|
380
|
+
* ctx.markdown.checkbox(false); // Output: (empty string)
|
|
381
|
+
* ```
|
|
382
|
+
*/
|
|
151
383
|
checkbox(checked: boolean): string;
|
|
152
384
|
}
|
|
153
385
|
/**
|
|
154
|
-
*
|
|
386
|
+
* Context object passed to an embed's render function.
|
|
387
|
+
*
|
|
388
|
+
* Provides access to:
|
|
389
|
+
* - Marker parameters from the document
|
|
390
|
+
* - Document frontmatter data
|
|
391
|
+
* - Configured datasources
|
|
392
|
+
* - Markdown generation helpers
|
|
393
|
+
* - Current file path
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* ```typescript
|
|
397
|
+
* export default defineEmbed({
|
|
398
|
+
* dependsOn: ['metadata_db'],
|
|
399
|
+
* async render(ctx) {
|
|
400
|
+
* // Access marker parameters
|
|
401
|
+
* const { id } = ctx.params; // From: <!--@embedoc:my_embed id="users"-->
|
|
402
|
+
*
|
|
403
|
+
* // Access frontmatter
|
|
404
|
+
* const docType = ctx.frontmatter['doc_type'];
|
|
405
|
+
*
|
|
406
|
+
* // Query datasource
|
|
407
|
+
* const data = await ctx.datasources['metadata_db'].query(
|
|
408
|
+
* 'SELECT * FROM tables WHERE name = ?',
|
|
409
|
+
* [id]
|
|
410
|
+
* );
|
|
411
|
+
*
|
|
412
|
+
* // Generate markdown
|
|
413
|
+
* return { content: ctx.markdown.table(['Name'], data.map(r => [r.name])) };
|
|
414
|
+
* }
|
|
415
|
+
* });
|
|
416
|
+
* ```
|
|
155
417
|
*/
|
|
156
418
|
export interface EmbedContext {
|
|
157
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* Parameters from the marker attributes.
|
|
421
|
+
*
|
|
422
|
+
* Parsed from the marker syntax:
|
|
423
|
+
* `<!--@embedoc:embed_name param1="value1" param2="value2"-->`
|
|
424
|
+
*
|
|
425
|
+
* Variable references (`${...}`) are resolved before passing to the embed.
|
|
426
|
+
*
|
|
427
|
+
* @example
|
|
428
|
+
* ```typescript
|
|
429
|
+
* // Marker: <!--@embedoc:table_columns id="users" schema="public"-->
|
|
430
|
+
* const { id, schema } = ctx.params;
|
|
431
|
+
* // id = "users", schema = "public"
|
|
432
|
+
* ```
|
|
433
|
+
*/
|
|
158
434
|
params: Record<string, string>;
|
|
159
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Frontmatter data from the document.
|
|
437
|
+
*
|
|
438
|
+
* Parsed from YAML frontmatter at the top of the document.
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* ```typescript
|
|
442
|
+
* // Document frontmatter:
|
|
443
|
+
* // ---
|
|
444
|
+
* // doc_id: "users"
|
|
445
|
+
* // schema: "public"
|
|
446
|
+
* // ---
|
|
447
|
+
*
|
|
448
|
+
* const docId = ctx.frontmatter['doc_id'] as string;
|
|
449
|
+
* ```
|
|
450
|
+
*/
|
|
160
451
|
frontmatter: Record<string, unknown>;
|
|
161
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* Map of configured datasources.
|
|
454
|
+
*
|
|
455
|
+
* Keys are datasource names from `embedoc.config.yaml`.
|
|
456
|
+
* Includes both external datasources and inline datasources
|
|
457
|
+
* defined in the document.
|
|
458
|
+
*
|
|
459
|
+
* @example
|
|
460
|
+
* ```typescript
|
|
461
|
+
* // Access SQLite datasource
|
|
462
|
+
* const db = ctx.datasources['metadata_db'];
|
|
463
|
+
* const rows = await db.query('SELECT * FROM users');
|
|
464
|
+
*
|
|
465
|
+
* // Access inline datasource
|
|
466
|
+
* const config = ctx.datasources['project_config'];
|
|
467
|
+
* const data = await config.getAll();
|
|
468
|
+
* ```
|
|
469
|
+
*/
|
|
162
470
|
datasources: Record<string, Datasource>;
|
|
163
|
-
/**
|
|
471
|
+
/**
|
|
472
|
+
* Markdown generation helper.
|
|
473
|
+
*
|
|
474
|
+
* Always available. Provides methods for creating tables, lists,
|
|
475
|
+
* code blocks, links, and other Markdown elements.
|
|
476
|
+
*
|
|
477
|
+
* @see {@link MarkdownHelper}
|
|
478
|
+
*/
|
|
164
479
|
markdown: MarkdownHelper;
|
|
165
|
-
/**
|
|
480
|
+
/**
|
|
481
|
+
* Absolute path to the current file being processed.
|
|
482
|
+
*
|
|
483
|
+
* Useful for generating relative links or file references.
|
|
484
|
+
*
|
|
485
|
+
* @example
|
|
486
|
+
* ```typescript
|
|
487
|
+
* const dir = path.dirname(ctx.filePath);
|
|
488
|
+
* const relativePath = path.relative(dir, targetFile);
|
|
489
|
+
* ```
|
|
490
|
+
*/
|
|
166
491
|
filePath: string;
|
|
167
492
|
}
|
|
168
493
|
/**
|
|
169
|
-
*
|
|
494
|
+
* Result object returned from an embed's render function.
|
|
495
|
+
*
|
|
496
|
+
* @example
|
|
497
|
+
* ```typescript
|
|
498
|
+
* export default defineEmbed({
|
|
499
|
+
* async render(ctx): Promise<EmbedResult> {
|
|
500
|
+
* return { content: '# Generated Content\n\nHello, World!' };
|
|
501
|
+
* }
|
|
502
|
+
* });
|
|
503
|
+
* ```
|
|
170
504
|
*/
|
|
171
505
|
export interface EmbedResult {
|
|
506
|
+
/**
|
|
507
|
+
* Generated content to insert between the markers.
|
|
508
|
+
*
|
|
509
|
+
* This string replaces the existing content between
|
|
510
|
+
* the start and end markers in the document.
|
|
511
|
+
*/
|
|
172
512
|
content: string;
|
|
173
513
|
}
|
|
174
514
|
/**
|
|
175
|
-
* Embed definition
|
|
515
|
+
* Embed definition interface.
|
|
516
|
+
*
|
|
517
|
+
* Use with {@link defineEmbed} to create custom embeds.
|
|
518
|
+
* Embeds are TypeScript modules that generate content
|
|
519
|
+
* for markers in your documents.
|
|
520
|
+
*
|
|
521
|
+
* @example
|
|
522
|
+
* ```typescript
|
|
523
|
+
* import { defineEmbed } from 'embedoc';
|
|
524
|
+
*
|
|
525
|
+
* export default defineEmbed({
|
|
526
|
+
* // Declare datasource dependencies for incremental builds
|
|
527
|
+
* dependsOn: ['metadata_db'],
|
|
528
|
+
*
|
|
529
|
+
* // Render function generates the content
|
|
530
|
+
* async render(ctx) {
|
|
531
|
+
* const { id } = ctx.params;
|
|
532
|
+
* const data = await ctx.datasources['metadata_db'].query(
|
|
533
|
+
* 'SELECT * FROM users WHERE id = ?',
|
|
534
|
+
* [id]
|
|
535
|
+
* );
|
|
536
|
+
* return {
|
|
537
|
+
* content: ctx.markdown.table(['Name', 'Email'], data.map(r => [r.name, r.email]))
|
|
538
|
+
* };
|
|
539
|
+
* }
|
|
540
|
+
* });
|
|
541
|
+
* ```
|
|
176
542
|
*/
|
|
177
543
|
export interface EmbedDefinition {
|
|
178
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* List of datasource names this embed depends on.
|
|
546
|
+
*
|
|
547
|
+
* Used for dependency tracking in incremental builds.
|
|
548
|
+
* When a datasource changes, all documents using embeds
|
|
549
|
+
* that depend on it will be rebuilt.
|
|
550
|
+
*
|
|
551
|
+
* @example
|
|
552
|
+
* ```typescript
|
|
553
|
+
* dependsOn: ['metadata_db', 'api_endpoints']
|
|
554
|
+
* ```
|
|
555
|
+
*/
|
|
179
556
|
dependsOn?: string[];
|
|
180
|
-
/**
|
|
557
|
+
/**
|
|
558
|
+
* Render function that generates the embed content.
|
|
559
|
+
*
|
|
560
|
+
* Called for each marker in the document that references this embed.
|
|
561
|
+
* Receives the context object with parameters, datasources, and helpers.
|
|
562
|
+
*
|
|
563
|
+
* @param ctx - The embed context
|
|
564
|
+
* @returns Promise resolving to the embed result with generated content
|
|
565
|
+
*/
|
|
181
566
|
render(ctx: EmbedContext): Promise<EmbedResult>;
|
|
182
567
|
}
|
|
183
568
|
/**
|
|
184
|
-
* Helper function type for
|
|
569
|
+
* Helper function type for defining embeds.
|
|
570
|
+
*
|
|
571
|
+
* Used internally by {@link defineEmbed}.
|
|
185
572
|
*/
|
|
186
573
|
export type DefineEmbedFn = (definition: EmbedDefinition) => EmbedDefinition;
|
|
187
574
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],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