@beignet/core 0.0.32 → 0.0.34
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/CHANGELOG.md +42 -0
- package/README.md +409 -34
- package/dist/application/index.d.ts.map +1 -1
- package/dist/application/index.js +63 -47
- package/dist/application/index.js.map +1 -1
- package/dist/contracts/contract-builder.d.ts +0 -4
- package/dist/contracts/contract-builder.d.ts.map +1 -1
- package/dist/contracts/contract-builder.js +0 -6
- package/dist/contracts/contract-builder.js.map +1 -1
- package/dist/events/index.d.ts +6 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +20 -10
- package/dist/events/index.js.map +1 -1
- package/dist/flags/index.d.ts +0 -4
- package/dist/flags/index.d.ts.map +1 -1
- package/dist/flags/index.js +0 -4
- package/dist/flags/index.js.map +1 -1
- package/dist/jobs/index.d.ts +415 -4
- package/dist/jobs/index.d.ts.map +1 -1
- package/dist/jobs/index.js +392 -3
- package/dist/jobs/index.js.map +1 -1
- package/dist/notifications/index.d.ts +194 -10
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +397 -59
- package/dist/notifications/index.js.map +1 -1
- package/dist/outbox/index.d.ts +150 -1
- package/dist/outbox/index.d.ts.map +1 -1
- package/dist/outbox/index.js +170 -1
- package/dist/outbox/index.js.map +1 -1
- package/dist/ports/events.d.ts +2 -2
- package/dist/ports/index.d.ts +7 -2
- package/dist/ports/index.d.ts.map +1 -1
- package/dist/ports/index.js +2 -1
- package/dist/ports/index.js.map +1 -1
- package/dist/providers/instrumentation.d.ts +4 -0
- package/dist/providers/instrumentation.d.ts.map +1 -1
- package/dist/providers/instrumentation.js.map +1 -1
- package/dist/providers/provider.d.ts +1 -1
- package/dist/schedules/index.d.ts +8 -7
- package/dist/schedules/index.d.ts.map +1 -1
- package/dist/schedules/index.js +47 -16
- package/dist/schedules/index.js.map +1 -1
- package/dist/server/hooks/index.d.ts +1 -0
- package/dist/server/hooks/index.d.ts.map +1 -1
- package/dist/server/hooks/index.js +1 -0
- package/dist/server/hooks/index.js.map +1 -1
- package/dist/server/hooks/rate-limit.d.ts +26 -13
- package/dist/server/hooks/rate-limit.d.ts.map +1 -1
- package/dist/server/hooks/rate-limit.js +28 -34
- package/dist/server/hooks/rate-limit.js.map +1 -1
- package/dist/server/hooks/security.d.ts +179 -0
- package/dist/server/hooks/security.d.ts.map +1 -0
- package/dist/server/hooks/security.js +225 -0
- package/dist/server/hooks/security.js.map +1 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +8 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/instrumentation.d.ts.map +1 -1
- package/dist/server/instrumentation.js +22 -6
- package/dist/server/instrumentation.js.map +1 -1
- package/dist/server/request-context.d.ts +4 -0
- package/dist/server/request-context.d.ts.map +1 -1
- package/dist/server/request-context.js +3 -0
- package/dist/server/request-context.js.map +1 -1
- package/dist/server/runtime-integrity.d.ts +84 -0
- package/dist/server/runtime-integrity.d.ts.map +1 -0
- package/dist/server/runtime-integrity.js +160 -0
- package/dist/server/runtime-integrity.js.map +1 -0
- package/dist/server/server.d.ts +10 -10
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +75 -11
- package/dist/server/server.js.map +1 -1
- package/dist/server/trusted-proxy.d.ts +77 -0
- package/dist/server/trusted-proxy.d.ts.map +1 -0
- package/dist/server/trusted-proxy.js +129 -0
- package/dist/server/trusted-proxy.js.map +1 -0
- package/dist/tasks/index.d.ts +6 -7
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/index.js +22 -5
- package/dist/tasks/index.js.map +1 -1
- package/dist/tenancy/index.d.ts +41 -0
- package/dist/tenancy/index.d.ts.map +1 -0
- package/dist/tenancy/index.js +34 -0
- package/dist/tenancy/index.js.map +1 -0
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/tracing/execution.d.ts +14 -0
- package/dist/tracing/execution.d.ts.map +1 -0
- package/dist/tracing/execution.js +17 -0
- package/dist/tracing/execution.js.map +1 -0
- package/dist/tracing/index.d.ts +49 -0
- package/dist/tracing/index.d.ts.map +1 -1
- package/dist/tracing/index.js +59 -0
- package/dist/tracing/index.js.map +1 -1
- package/dist/uploads/client.d.ts.map +1 -1
- package/dist/uploads/client.js +44 -6
- package/dist/uploads/client.js.map +1 -1
- package/dist/uploads/index.d.ts +71 -0
- package/dist/uploads/index.d.ts.map +1 -1
- package/dist/uploads/index.js +344 -15
- package/dist/uploads/index.js.map +1 -1
- package/dist/webhooks/index.d.ts +55 -4
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/index.js +106 -2
- package/dist/webhooks/index.js.map +1 -1
- package/package.json +5 -5
- package/skills/app-architecture/SKILL.md +31 -2
- package/src/application/index.ts +88 -56
- package/src/contracts/contract-builder.ts +0 -7
- package/src/events/index.ts +27 -14
- package/src/flags/index.ts +0 -5
- package/src/jobs/index.ts +895 -7
- package/src/notifications/index.ts +678 -70
- package/src/outbox/index.ts +358 -2
- package/src/ports/events.ts +2 -2
- package/src/ports/index.ts +17 -1
- package/src/providers/instrumentation.ts +4 -0
- package/src/providers/provider.ts +1 -1
- package/src/schedules/index.ts +60 -26
- package/src/server/hooks/index.ts +10 -0
- package/src/server/hooks/rate-limit.ts +52 -46
- package/src/server/hooks/security.ts +503 -0
- package/src/server/index.ts +8 -0
- package/src/server/instrumentation.ts +25 -5
- package/src/server/request-context.ts +7 -0
- package/src/server/runtime-integrity.ts +322 -0
- package/src/server/server.ts +88 -35
- package/src/server/trusted-proxy.ts +249 -0
- package/src/tasks/index.ts +29 -12
- package/src/tenancy/index.ts +55 -0
- package/src/testing/index.ts +2 -0
- package/src/tracing/execution.ts +37 -0
- package/src/tracing/index.ts +137 -0
- package/src/uploads/client.ts +65 -6
- package/src/uploads/index.ts +539 -14
- package/src/webhooks/index.ts +238 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { StandardSchemaV1 } from "@standard-schema/spec";
|
|
2
|
+
import { type JobDef, type JobDispatcher, type JobHook, type JobRetryOptions, type JobTimeoutDuration } from "../jobs/index.js";
|
|
2
3
|
import type { SendMailOptions } from "../mail/index.js";
|
|
3
4
|
import type { ProviderInstrumentationTarget } from "../providers/index.js";
|
|
4
5
|
/**
|
|
@@ -45,7 +46,7 @@ export interface NotificationChannelResult {
|
|
|
45
46
|
/**
|
|
46
47
|
* Delivery outcome for this channel.
|
|
47
48
|
*/
|
|
48
|
-
status: "sent" | "skipped" | "failed";
|
|
49
|
+
status: "queued" | "sent" | "skipped" | "failed";
|
|
49
50
|
/**
|
|
50
51
|
* Provider delivery ID when available.
|
|
51
52
|
*/
|
|
@@ -63,6 +64,13 @@ export interface NotificationChannelResult {
|
|
|
63
64
|
*/
|
|
64
65
|
details?: Record<string, unknown>;
|
|
65
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Original error captured for one failed notification channel.
|
|
69
|
+
*/
|
|
70
|
+
export interface NotificationChannelError {
|
|
71
|
+
channel: string;
|
|
72
|
+
error: unknown;
|
|
73
|
+
}
|
|
66
74
|
/**
|
|
67
75
|
* Arguments passed to a notification channel handler.
|
|
68
76
|
*/
|
|
@@ -92,6 +100,37 @@ export type NotificationChannelHandler<Payload extends StandardSchema, Ctx> = (a
|
|
|
92
100
|
* Notification channel handlers keyed by channel name.
|
|
93
101
|
*/
|
|
94
102
|
export type NotificationChannels<Payload extends StandardSchema, Ctx> = Record<string, NotificationChannelHandler<Payload, Ctx>>;
|
|
103
|
+
/**
|
|
104
|
+
* Arguments passed to an app-owned notification preference evaluator.
|
|
105
|
+
*/
|
|
106
|
+
export interface NotificationPreferenceArgs<Payload extends StandardSchema = StandardSchema, Ctx = unknown> extends NotificationChannelHandleArgs<Payload, Ctx> {
|
|
107
|
+
/**
|
|
108
|
+
* Optional metadata supplied by the notification sender.
|
|
109
|
+
*/
|
|
110
|
+
metadata?: Record<string, unknown>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* App-owned decision for one notification channel.
|
|
114
|
+
*/
|
|
115
|
+
export interface NotificationPreferenceDecision {
|
|
116
|
+
/**
|
|
117
|
+
* Whether this channel should deliver.
|
|
118
|
+
*/
|
|
119
|
+
deliver: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Optional reason recorded when delivery is skipped.
|
|
122
|
+
*/
|
|
123
|
+
reason?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Optional app-facing port for notification channel preferences and opt-outs.
|
|
127
|
+
*/
|
|
128
|
+
export interface NotificationPreferencesPort<Ctx = unknown> {
|
|
129
|
+
/**
|
|
130
|
+
* Evaluate the current preference immediately before channel delivery.
|
|
131
|
+
*/
|
|
132
|
+
evaluate(args: NotificationPreferenceArgs<StandardSchema, Ctx>): MaybePromise<NotificationPreferenceDecision>;
|
|
133
|
+
}
|
|
95
134
|
/**
|
|
96
135
|
* Notification definition created by `defineNotification(...)`.
|
|
97
136
|
*/
|
|
@@ -194,10 +233,20 @@ export interface InlineNotificationDispatcherOptions<Ctx> {
|
|
|
194
233
|
*/
|
|
195
234
|
ctx?: Ctx | (() => MaybePromise<Ctx>);
|
|
196
235
|
/**
|
|
197
|
-
* Called when a channel handler
|
|
198
|
-
* the
|
|
236
|
+
* Called when a channel handler or preference check fails. A returned result
|
|
237
|
+
* replaces the default failed result. Observer failures are ignored so the
|
|
238
|
+
* remaining channels still run.
|
|
199
239
|
*/
|
|
200
240
|
onError?: (error: unknown, args: NotificationChannelHandleArgs<StandardSchema, Ctx>) => MaybePromise<NotificationChannelResult | undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* How completed channel failures are surfaced. Defaults to `"report"`.
|
|
243
|
+
* `"throw"` still runs every selected channel before rejecting.
|
|
244
|
+
*/
|
|
245
|
+
failureMode?: "report" | "throw";
|
|
246
|
+
/**
|
|
247
|
+
* Optional app-owned notification preference evaluator.
|
|
248
|
+
*/
|
|
249
|
+
preferences?: NotificationPreferencesPort<Ctx>;
|
|
201
250
|
/**
|
|
202
251
|
* Optional devtools/provider instrumentation target.
|
|
203
252
|
*/
|
|
@@ -288,6 +337,84 @@ export interface Notifications<Ctx> {
|
|
|
288
337
|
*/
|
|
289
338
|
defineNotification<Name extends string, Payload extends StandardSchema>(name: Name, options: DefineNotificationOptions<Payload, Ctx>): NotificationDef<Name, Payload, Ctx>;
|
|
290
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* Notification definitions available to durable delivery workers.
|
|
342
|
+
*/
|
|
343
|
+
export interface NotificationRegistry<Ctx = unknown> {
|
|
344
|
+
/**
|
|
345
|
+
* Registered definitions in declaration order.
|
|
346
|
+
*/
|
|
347
|
+
readonly definitions: readonly NotificationDef<string, StandardSchema, Ctx>[];
|
|
348
|
+
/**
|
|
349
|
+
* Resolve a notification definition by its stable name.
|
|
350
|
+
*/
|
|
351
|
+
get(name: string): NotificationDef<string, StandardSchema, Ctx> | undefined;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Payload carried by the first-party notification delivery job.
|
|
355
|
+
*/
|
|
356
|
+
export interface NotificationDeliveryJobPayload {
|
|
357
|
+
notificationName: string;
|
|
358
|
+
channel: string;
|
|
359
|
+
payload: unknown;
|
|
360
|
+
options: Omit<SendNotificationOptions, "channels">;
|
|
361
|
+
}
|
|
362
|
+
type NotificationDeliveryPayloadSchema = StandardSchemaV1<unknown, NotificationDeliveryJobPayload>;
|
|
363
|
+
/**
|
|
364
|
+
* Job definition used by queued notification dispatchers and workers.
|
|
365
|
+
*/
|
|
366
|
+
export interface NotificationDeliveryJob<Name extends string = string, Ctx = unknown> extends JobDef<Name, NotificationDeliveryPayloadSchema, Ctx> {
|
|
367
|
+
/**
|
|
368
|
+
* Registry used by both enqueue-time checks and worker delivery.
|
|
369
|
+
*/
|
|
370
|
+
readonly registry: NotificationRegistry<Ctx>;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Options for the first-party notification delivery job.
|
|
374
|
+
*/
|
|
375
|
+
export interface DefineNotificationDeliveryJobOptions<Name extends string, Ctx> {
|
|
376
|
+
/**
|
|
377
|
+
* Stable job name. Defaults to `"notifications.deliver"`.
|
|
378
|
+
*/
|
|
379
|
+
name?: Name;
|
|
380
|
+
/**
|
|
381
|
+
* Notification definitions available to the worker.
|
|
382
|
+
*/
|
|
383
|
+
registry: NotificationRegistry<Ctx>;
|
|
384
|
+
/**
|
|
385
|
+
* Optional app-owned preferences evaluated when the job runs.
|
|
386
|
+
*/
|
|
387
|
+
preferences?: NotificationPreferencesPort<Ctx>;
|
|
388
|
+
/**
|
|
389
|
+
* Retry policy. Defaults to exponential backoff with three attempts.
|
|
390
|
+
*/
|
|
391
|
+
retry?: JobRetryOptions;
|
|
392
|
+
/**
|
|
393
|
+
* Optional maximum duration for each channel delivery attempt.
|
|
394
|
+
*/
|
|
395
|
+
timeout?: JobTimeoutDuration;
|
|
396
|
+
/**
|
|
397
|
+
* Optional execution hooks applied to each delivery attempt.
|
|
398
|
+
*/
|
|
399
|
+
hooks?: readonly JobHook<JobDef<Name, NotificationDeliveryPayloadSchema, Ctx>, Ctx>[];
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Options for a notification dispatcher backed by Beignet jobs.
|
|
403
|
+
*/
|
|
404
|
+
export interface QueuedNotificationDispatcherOptions<Name extends string, Ctx> {
|
|
405
|
+
/**
|
|
406
|
+
* Job dispatcher used to enqueue one delivery job per channel.
|
|
407
|
+
*/
|
|
408
|
+
jobs: JobDispatcher;
|
|
409
|
+
/**
|
|
410
|
+
* Registered notification delivery job.
|
|
411
|
+
*/
|
|
412
|
+
deliveryJob: NotificationDeliveryJob<Name, Ctx>;
|
|
413
|
+
/**
|
|
414
|
+
* Optional devtools/provider instrumentation target.
|
|
415
|
+
*/
|
|
416
|
+
instrumentation?: ProviderInstrumentationTarget;
|
|
417
|
+
}
|
|
291
418
|
/**
|
|
292
419
|
* Error thrown when notification payload validation fails.
|
|
293
420
|
*/
|
|
@@ -310,19 +437,47 @@ export declare class NotificationDeliveryError extends Error {
|
|
|
310
437
|
*/
|
|
311
438
|
readonly notificationName: string;
|
|
312
439
|
/**
|
|
313
|
-
*
|
|
440
|
+
* First channel that failed, retained for concise error handling.
|
|
314
441
|
*/
|
|
315
442
|
readonly channel: string;
|
|
316
443
|
/**
|
|
317
|
-
* Original channel
|
|
444
|
+
* Original error for the first failed channel when available.
|
|
318
445
|
*/
|
|
319
446
|
readonly cause: unknown;
|
|
447
|
+
/**
|
|
448
|
+
* Complete notification result after every selected channel ran.
|
|
449
|
+
*/
|
|
450
|
+
readonly result: SendNotificationResult;
|
|
451
|
+
/**
|
|
452
|
+
* Failed channel results.
|
|
453
|
+
*/
|
|
454
|
+
readonly failures: readonly NotificationChannelResult[];
|
|
455
|
+
/**
|
|
456
|
+
* Original channel errors in delivery order.
|
|
457
|
+
*/
|
|
458
|
+
readonly errors: readonly NotificationChannelError[];
|
|
320
459
|
constructor(args: {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
cause: unknown;
|
|
460
|
+
result: SendNotificationResult;
|
|
461
|
+
errors?: readonly NotificationChannelError[];
|
|
324
462
|
});
|
|
325
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Error thrown when a notification registry cannot safely resolve a delivery.
|
|
466
|
+
*/
|
|
467
|
+
export declare class NotificationRegistryError extends Error {
|
|
468
|
+
constructor(message: string);
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Define the notification catalog available to durable delivery workers.
|
|
472
|
+
* Duplicate names throw because queued delivery resolves definitions by name.
|
|
473
|
+
*/
|
|
474
|
+
export declare function defineNotificationRegistry<Ctx>(definitions: readonly NotificationDef<string, StandardSchema, Ctx>[]): NotificationRegistry<Ctx>;
|
|
475
|
+
/**
|
|
476
|
+
* Define the generic job that resolves and delivers one notification channel.
|
|
477
|
+
* Register the returned job with every worker or outbox registry that can
|
|
478
|
+
* receive queued notifications.
|
|
479
|
+
*/
|
|
480
|
+
export declare function defineNotificationDeliveryJob<Ctx, Name extends string = "notifications.deliver">(options: DefineNotificationDeliveryJobOptions<Name, Ctx>): NotificationDeliveryJob<Name, Ctx>;
|
|
326
481
|
/**
|
|
327
482
|
* Validate and parse a notification payload with the notification's Standard
|
|
328
483
|
* Schema.
|
|
@@ -332,8 +487,9 @@ export declare function parseNotificationPayload<N extends NotificationPayloadDe
|
|
|
332
487
|
* Create an inline notification dispatcher.
|
|
333
488
|
*
|
|
334
489
|
* The dispatcher validates payloads and runs selected channel handlers
|
|
335
|
-
* immediately.
|
|
336
|
-
*
|
|
490
|
+
* immediately. Channel failures are isolated and reported after every selected
|
|
491
|
+
* channel runs. Use this directly in tests and local apps, or use
|
|
492
|
+
* `createQueuedNotificationDispatcher(...)` for background execution.
|
|
337
493
|
*/
|
|
338
494
|
export declare function createInlineNotificationDispatcher<Ctx>(options?: InlineNotificationDispatcherOptions<Ctx>): NotificationPort;
|
|
339
495
|
/**
|
|
@@ -367,6 +523,33 @@ export interface InlineNotificationsProviderPorts {
|
|
|
367
523
|
export declare function createInlineNotificationsProvider(options?: InlineNotificationsProviderOptions): import("../providers/provider.js").ServiceProvider<unknown, StandardSchemaV1<void, void>, {
|
|
368
524
|
notifications: NotificationPort;
|
|
369
525
|
}, unknown, void>;
|
|
526
|
+
/**
|
|
527
|
+
* Create a notification dispatcher that enqueues one delivery job per channel.
|
|
528
|
+
* Separate jobs keep provider retries from resending channels that already
|
|
529
|
+
* completed successfully.
|
|
530
|
+
*/
|
|
531
|
+
export declare function createQueuedNotificationDispatcher<Name extends string, Ctx>(options: QueuedNotificationDispatcherOptions<Name, Ctx>): NotificationPort;
|
|
532
|
+
/**
|
|
533
|
+
* Options for the queued notifications provider.
|
|
534
|
+
*/
|
|
535
|
+
export interface QueuedNotificationsProviderOptions<Name extends string, Ctx> {
|
|
536
|
+
/**
|
|
537
|
+
* Registered notification delivery job.
|
|
538
|
+
*/
|
|
539
|
+
deliveryJob: NotificationDeliveryJob<Name, Ctx>;
|
|
540
|
+
/**
|
|
541
|
+
* Provider name. Defaults to `"queued-notifications"`.
|
|
542
|
+
*/
|
|
543
|
+
name?: string;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Create a provider that contributes a job-backed notification dispatcher.
|
|
547
|
+
*/
|
|
548
|
+
export declare function createQueuedNotificationsProvider<Name extends string, Ctx>(options: QueuedNotificationsProviderOptions<Name, Ctx>): import("../providers/provider.js").ServiceProvider<{
|
|
549
|
+
jobs: JobDispatcher;
|
|
550
|
+
}, StandardSchemaV1<void, void>, {
|
|
551
|
+
notifications: NotificationPort;
|
|
552
|
+
}, unknown, void>;
|
|
370
553
|
/**
|
|
371
554
|
* Define a mail-backed notification channel.
|
|
372
555
|
*
|
|
@@ -395,4 +578,5 @@ export declare function createMemoryNotificationPort(options?: CreateMemoryNotif
|
|
|
395
578
|
* app-owned channel.
|
|
396
579
|
*/
|
|
397
580
|
export declare function createNotifications<Ctx>(): Notifications<Ctx>;
|
|
581
|
+
export {};
|
|
398
582
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAM3E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,gBAAgB,IACt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