duron 0.3.0-beta.1 → 0.3.0-beta.11
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/dist/action-job.d.ts +31 -0
- package/dist/action-job.d.ts.map +1 -1
- package/dist/action-job.js +68 -7
- package/dist/action-manager.d.ts +42 -0
- package/dist/action-manager.d.ts.map +1 -1
- package/dist/action-manager.js +61 -0
- package/dist/action.d.ts +144 -0
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +133 -2
- package/dist/adapters/adapter.d.ts +359 -0
- package/dist/adapters/adapter.d.ts.map +1 -1
- package/dist/adapters/adapter.js +208 -0
- package/dist/adapters/postgres/base.d.ts +166 -0
- package/dist/adapters/postgres/base.d.ts.map +1 -1
- package/dist/adapters/postgres/base.js +273 -19
- package/dist/adapters/postgres/pglite.d.ts +37 -0
- package/dist/adapters/postgres/pglite.d.ts.map +1 -1
- package/dist/adapters/postgres/pglite.js +38 -0
- package/dist/adapters/postgres/postgres.d.ts +35 -0
- package/dist/adapters/postgres/postgres.d.ts.map +1 -1
- package/dist/adapters/postgres/postgres.js +42 -0
- package/dist/adapters/postgres/schema.d.ts.map +1 -1
- package/dist/adapters/postgres/schema.js +14 -2
- package/dist/adapters/schemas.d.ts +9 -0
- package/dist/adapters/schemas.d.ts.map +1 -1
- package/dist/adapters/schemas.js +73 -1
- package/dist/client.d.ts +249 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +413 -3
- package/dist/constants.js +6 -0
- package/dist/errors.d.ts +166 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +189 -19
- package/dist/server.d.ts +44 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +56 -0
- package/dist/step-manager.d.ts +84 -0
- package/dist/step-manager.d.ts.map +1 -1
- package/dist/step-manager.js +354 -14
- package/dist/telemetry/adapter.d.ts +344 -0
- package/dist/telemetry/adapter.d.ts.map +1 -1
- package/dist/telemetry/adapter.js +151 -0
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +1 -0
- package/dist/telemetry/local.d.ts +50 -1
- package/dist/telemetry/local.d.ts.map +1 -1
- package/dist/telemetry/local.js +165 -0
- package/dist/telemetry/noop.d.ts +12 -1
- package/dist/telemetry/noop.d.ts.map +1 -1
- package/dist/telemetry/noop.js +70 -0
- package/dist/telemetry/opentelemetry.d.ts +25 -1
- package/dist/telemetry/opentelemetry.d.ts.map +1 -1
- package/dist/telemetry/opentelemetry.js +149 -0
- package/dist/utils/p-retry.d.ts +5 -0
- package/dist/utils/p-retry.d.ts.map +1 -1
- package/dist/utils/p-retry.js +8 -0
- package/dist/utils/wait-for-abort.d.ts +1 -0
- package/dist/utils/wait-for-abort.d.ts.map +1 -1
- package/dist/utils/wait-for-abort.js +1 -0
- package/migrations/postgres/{20251203223656_conscious_johnny_blaze → 20260119153838_flimsy_thor_girl}/migration.sql +29 -2
- package/migrations/postgres/{20260118202533_wealthy_mysterio → 20260119153838_flimsy_thor_girl}/snapshot.json +5 -5
- package/package.json +1 -1
- package/src/action-job.ts +14 -7
- package/src/action.ts +23 -13
- package/src/adapters/postgres/base.ts +45 -19
- package/src/adapters/postgres/schema.ts +5 -2
- package/src/adapters/schemas.ts +11 -1
- package/src/client.ts +187 -8
- package/src/errors.ts +141 -30
- package/src/step-manager.ts +171 -10
- package/src/telemetry/adapter.ts +174 -0
- package/src/telemetry/index.ts +3 -0
- package/src/telemetry/local.ts +93 -0
- package/src/telemetry/noop.ts +46 -0
- package/src/telemetry/opentelemetry.ts +145 -2
- package/migrations/postgres/20251203223656_conscious_johnny_blaze/snapshot.json +0 -941
- package/migrations/postgres/20260117231749_clumsy_penance/migration.sql +0 -3
- package/migrations/postgres/20260117231749_clumsy_penance/snapshot.json +0 -988
- package/migrations/postgres/20260118202533_wealthy_mysterio/migration.sql +0 -24
package/dist/client.d.ts
CHANGED
|
@@ -3,7 +3,37 @@ import * as z from 'zod';
|
|
|
3
3
|
import type { Action } from './action.js';
|
|
4
4
|
import type { Adapter, GetActionsResult, GetJobStepsOptions, GetJobStepsResult, GetJobsOptions, GetJobsResult, GetMetricsOptions, GetMetricsResult, Job, JobStep } from './adapters/adapter.js';
|
|
5
5
|
import type { JobStatusResult, JobStepStatusResult } from './adapters/schemas.js';
|
|
6
|
+
import { type JobStatus } from './constants.js';
|
|
6
7
|
import { type TelemetryAdapter } from './telemetry/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Extracts the inferred type from an action's input/output schema.
|
|
10
|
+
* Handles the case where the schema might be undefined.
|
|
11
|
+
*/
|
|
12
|
+
type InferActionSchema<T> = T extends z.ZodTypeAny ? z.infer<T> : Record<string, unknown>;
|
|
13
|
+
/**
|
|
14
|
+
* Result returned from waitForJob with untyped input and output.
|
|
15
|
+
*/
|
|
16
|
+
export interface JobResult {
|
|
17
|
+
jobId: string;
|
|
18
|
+
actionName: string;
|
|
19
|
+
status: JobStatus;
|
|
20
|
+
groupKey: string;
|
|
21
|
+
input: unknown;
|
|
22
|
+
output: unknown;
|
|
23
|
+
error: Job['error'];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Result returned from runActionAndWait with typed input and output based on the action's Zod schemas.
|
|
27
|
+
*/
|
|
28
|
+
export interface TypedJobResult<TAction extends Action<any, any, any>> {
|
|
29
|
+
jobId: string;
|
|
30
|
+
actionName: string;
|
|
31
|
+
status: JobStatus;
|
|
32
|
+
groupKey: string;
|
|
33
|
+
input: InferActionSchema<NonNullable<TAction['input']>>;
|
|
34
|
+
output: InferActionSchema<NonNullable<TAction['output']>>;
|
|
35
|
+
error: Job['error'];
|
|
36
|
+
}
|
|
7
37
|
declare const BaseOptionsSchema: z.ZodObject<{
|
|
8
38
|
id: z.ZodOptional<z.ZodString>;
|
|
9
39
|
syncPattern: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"pull">, z.ZodLiteral<"push">, z.ZodLiteral<"hybrid">, z.ZodLiteral<false>]>>;
|
|
@@ -16,23 +46,82 @@ declare const BaseOptionsSchema: z.ZodObject<{
|
|
|
16
46
|
multiProcessMode: z.ZodDefault<z.ZodBoolean>;
|
|
17
47
|
processTimeout: z.ZodDefault<z.ZodNumber>;
|
|
18
48
|
}, z.core.$strip>;
|
|
49
|
+
/**
|
|
50
|
+
* Options for configuring a Duron instance.
|
|
51
|
+
*
|
|
52
|
+
* @template TActions - Record of action definitions keyed by action name
|
|
53
|
+
* @template TVariables - Type of variables available to actions
|
|
54
|
+
*/
|
|
19
55
|
export interface ClientOptions<TActions extends Record<string, Action<any, any, TVariables>>, TVariables = Record<string, unknown>> extends z.input<typeof BaseOptionsSchema> {
|
|
56
|
+
/**
|
|
57
|
+
* The database adapter to use for storing jobs and steps.
|
|
58
|
+
* Required.
|
|
59
|
+
*/
|
|
20
60
|
database: Adapter;
|
|
61
|
+
/**
|
|
62
|
+
* A record of action definitions, where each key is the action name.
|
|
63
|
+
* Required.
|
|
64
|
+
*/
|
|
21
65
|
actions?: TActions;
|
|
66
|
+
/**
|
|
67
|
+
* Logger instance or log level for logging events and errors.
|
|
68
|
+
* Can be a pino Logger instance or a log level string ('fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent').
|
|
69
|
+
* If not provided, defaults to 'error' level.
|
|
70
|
+
*/
|
|
22
71
|
logger?: Logger | 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent';
|
|
72
|
+
/**
|
|
73
|
+
* Variables available to all actions via the context.
|
|
74
|
+
* These can be accessed in action handlers using `ctx.var`.
|
|
75
|
+
*/
|
|
23
76
|
variables?: TVariables;
|
|
77
|
+
/**
|
|
78
|
+
* Optional telemetry adapter for observability.
|
|
79
|
+
* When provided, traces job and step execution with spans and allows recording custom metrics.
|
|
80
|
+
*
|
|
81
|
+
* Available adapters:
|
|
82
|
+
* - `openTelemetryAdapter()` - Export traces to external systems (Jaeger, OTLP, etc.)
|
|
83
|
+
* - `localTelemetryAdapter({ database })` - Store metrics in the Duron database
|
|
84
|
+
* - `noopTelemetryAdapter()` - No-op adapter (default)
|
|
85
|
+
*/
|
|
24
86
|
telemetry?: TelemetryAdapter;
|
|
25
87
|
}
|
|
26
88
|
interface FetchOptions {
|
|
27
89
|
batchSize?: number;
|
|
28
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Client is the main entry point for Duron.
|
|
93
|
+
* Manages job execution, action handling, and database operations.
|
|
94
|
+
*
|
|
95
|
+
* @template TActions - Record of action definitions keyed by action name
|
|
96
|
+
* @template TVariables - Type of variables available to actions
|
|
97
|
+
*/
|
|
29
98
|
export declare class Client<TActions extends Record<string, Action<any, any, TVariables>>, TVariables = Record<string, unknown>> {
|
|
30
99
|
#private;
|
|
100
|
+
/**
|
|
101
|
+
* Create a new Duron Client instance.
|
|
102
|
+
*
|
|
103
|
+
* @param options - Configuration options for the client
|
|
104
|
+
*/
|
|
31
105
|
constructor(options: ClientOptions<TActions, TVariables>);
|
|
32
106
|
get logger(): pino.Logger;
|
|
107
|
+
/**
|
|
108
|
+
* Get the telemetry adapter instance.
|
|
109
|
+
*/
|
|
33
110
|
get telemetry(): TelemetryAdapter;
|
|
111
|
+
/**
|
|
112
|
+
* Get the database adapter instance.
|
|
113
|
+
*/
|
|
34
114
|
get database(): Adapter;
|
|
115
|
+
/**
|
|
116
|
+
* Check if local telemetry is enabled.
|
|
117
|
+
* Returns true if using LocalTelemetryAdapter.
|
|
118
|
+
*/
|
|
35
119
|
get metricsEnabled(): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Get the current configuration of this Duron instance.
|
|
122
|
+
*
|
|
123
|
+
* @returns Configuration object including options, actions, and variables
|
|
124
|
+
*/
|
|
36
125
|
getConfig(): {
|
|
37
126
|
actions: TActions | null;
|
|
38
127
|
variables: Record<string, unknown>;
|
|
@@ -47,7 +136,42 @@ export declare class Client<TActions extends Record<string, Action<any, any, TVa
|
|
|
47
136
|
processTimeout: number;
|
|
48
137
|
id?: string | undefined;
|
|
49
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Run an action by creating a new job.
|
|
141
|
+
*
|
|
142
|
+
* @param actionName - Name of the action to run
|
|
143
|
+
* @param input - Input data for the action (validated against action's input schema if provided)
|
|
144
|
+
* @returns Promise resolving to the created job ID
|
|
145
|
+
* @throws Error if action is not found or job creation fails
|
|
146
|
+
*/
|
|
50
147
|
runAction<TActionName extends keyof TActions>(actionName: TActionName, input?: NonNullable<TActions[TActionName]['input']> extends z.ZodObject ? z.input<NonNullable<TActions[TActionName]['input']>> : never): Promise<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Run an action and wait for its completion.
|
|
150
|
+
* This is a convenience method that combines `runAction` and `waitForJob`.
|
|
151
|
+
*
|
|
152
|
+
* @param actionName - Name of the action to run
|
|
153
|
+
* @param input - Input data for the action (validated against action's input schema if provided)
|
|
154
|
+
* @param options - Options including abort signal and timeout
|
|
155
|
+
* @returns Promise resolving to the job result with typed input and output
|
|
156
|
+
* @throws Error if action is not found, job creation fails, job is cancelled, or operation is aborted
|
|
157
|
+
*/
|
|
158
|
+
runActionAndWait<TActionName extends keyof TActions>(actionName: TActionName, input?: NonNullable<TActions[TActionName]['input']> extends z.ZodObject ? z.input<NonNullable<TActions[TActionName]['input']>> : never, options?: {
|
|
159
|
+
/**
|
|
160
|
+
* AbortSignal to cancel the operation. If aborted, the job will be cancelled and the promise will reject.
|
|
161
|
+
*/
|
|
162
|
+
signal?: AbortSignal;
|
|
163
|
+
/**
|
|
164
|
+
* Timeout in milliseconds. If the job doesn't complete within this time, the job will be cancelled and the promise will reject.
|
|
165
|
+
*/
|
|
166
|
+
timeout?: number;
|
|
167
|
+
}): Promise<TypedJobResult<TActions[TActionName]>>;
|
|
168
|
+
/**
|
|
169
|
+
* Fetch and process jobs from the database.
|
|
170
|
+
* Concurrency limits are determined from the latest job created for each groupKey.
|
|
171
|
+
*
|
|
172
|
+
* @param options - Fetch options including batch size
|
|
173
|
+
* @returns Promise resolving to the array of fetched jobs
|
|
174
|
+
*/
|
|
51
175
|
fetch(options: FetchOptions): Promise<{
|
|
52
176
|
id: string;
|
|
53
177
|
actionName: string;
|
|
@@ -63,30 +187,154 @@ export declare class Client<TActions extends Record<string, Action<any, any, TVa
|
|
|
63
187
|
createdAt: Date;
|
|
64
188
|
updatedAt: Date;
|
|
65
189
|
concurrencyLimit: number;
|
|
190
|
+
durationMs: number | null;
|
|
66
191
|
clientId?: string | null | undefined;
|
|
67
192
|
}[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Cancel a job by its ID.
|
|
195
|
+
* If the job is currently being processed, it will be cancelled immediately.
|
|
196
|
+
* Otherwise, it will be cancelled in the database.
|
|
197
|
+
*
|
|
198
|
+
* @param jobId - The ID of the job to cancel
|
|
199
|
+
* @returns Promise resolving to `true` if cancelled, `false` otherwise
|
|
200
|
+
*/
|
|
68
201
|
cancelJob(jobId: string): Promise<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* Retry a failed job by creating a copy of it with status 'created' and cleared output/error.
|
|
204
|
+
*
|
|
205
|
+
* @param jobId - The ID of the job to retry
|
|
206
|
+
* @returns Promise resolving to the new job ID, or `null` if retry failed
|
|
207
|
+
*/
|
|
69
208
|
retryJob(jobId: string): Promise<string | null>;
|
|
209
|
+
/**
|
|
210
|
+
* Time travel a job to restart from a specific step.
|
|
211
|
+
* The job must be in completed, failed, or cancelled status.
|
|
212
|
+
* Resets the job and ancestor steps to active status, deletes subsequent steps,
|
|
213
|
+
* and preserves completed parallel siblings.
|
|
214
|
+
*
|
|
215
|
+
* @param jobId - The ID of the job to time travel
|
|
216
|
+
* @param stepId - The ID of the step to restart from
|
|
217
|
+
* @returns Promise resolving to `true` if time travel succeeded, `false` otherwise
|
|
218
|
+
*/
|
|
70
219
|
timeTravelJob(jobId: string, stepId: string): Promise<boolean>;
|
|
220
|
+
/**
|
|
221
|
+
* Delete a job by its ID.
|
|
222
|
+
* Active jobs cannot be deleted.
|
|
223
|
+
*
|
|
224
|
+
* @param jobId - The ID of the job to delete
|
|
225
|
+
* @returns Promise resolving to `true` if deleted, `false` otherwise
|
|
226
|
+
*/
|
|
71
227
|
deleteJob(jobId: string): Promise<boolean>;
|
|
228
|
+
/**
|
|
229
|
+
* Delete multiple jobs using the same filters as getJobs.
|
|
230
|
+
* Active jobs cannot be deleted and will be excluded from deletion.
|
|
231
|
+
*
|
|
232
|
+
* @param options - Query options including filters (same as getJobs)
|
|
233
|
+
* @returns Promise resolving to the number of jobs deleted
|
|
234
|
+
*/
|
|
72
235
|
deleteJobs(options?: GetJobsOptions): Promise<number>;
|
|
236
|
+
/**
|
|
237
|
+
* Get a job by its ID. Does not include step information.
|
|
238
|
+
*
|
|
239
|
+
* @param jobId - The ID of the job to retrieve
|
|
240
|
+
* @returns Promise resolving to the job, or `null` if not found
|
|
241
|
+
*/
|
|
73
242
|
getJobById(jobId: string): Promise<Job | null>;
|
|
243
|
+
/**
|
|
244
|
+
* Get steps for a job with pagination and fuzzy search.
|
|
245
|
+
* Steps are always ordered by created_at ASC.
|
|
246
|
+
* Steps do not include output data.
|
|
247
|
+
*
|
|
248
|
+
* @param options - Query options including jobId, pagination, and search
|
|
249
|
+
* @returns Promise resolving to steps result with pagination info
|
|
250
|
+
*/
|
|
74
251
|
getJobSteps(options: GetJobStepsOptions): Promise<GetJobStepsResult>;
|
|
252
|
+
/**
|
|
253
|
+
* Get jobs with pagination, filtering, and sorting.
|
|
254
|
+
* Does not include step information or job output.
|
|
255
|
+
*
|
|
256
|
+
* @param options - Query options including pagination, filters, and sort
|
|
257
|
+
* @returns Promise resolving to jobs result with pagination info
|
|
258
|
+
*/
|
|
75
259
|
getJobs(options?: GetJobsOptions): Promise<GetJobsResult>;
|
|
260
|
+
/**
|
|
261
|
+
* Get a step by its ID with all information.
|
|
262
|
+
*
|
|
263
|
+
* @param stepId - The ID of the step to retrieve
|
|
264
|
+
* @returns Promise resolving to the step, or `null` if not found
|
|
265
|
+
*/
|
|
76
266
|
getJobStepById(stepId: string): Promise<JobStep | null>;
|
|
267
|
+
/**
|
|
268
|
+
* Get job status and updatedAt timestamp.
|
|
269
|
+
*
|
|
270
|
+
* @param jobId - The ID of the job
|
|
271
|
+
* @returns Promise resolving to job status result, or `null` if not found
|
|
272
|
+
*/
|
|
77
273
|
getJobStatus(jobId: string): Promise<JobStatusResult | null>;
|
|
274
|
+
/**
|
|
275
|
+
* Get job step status and updatedAt timestamp.
|
|
276
|
+
*
|
|
277
|
+
* @param stepId - The ID of the step
|
|
278
|
+
* @returns Promise resolving to step status result, or `null` if not found
|
|
279
|
+
*/
|
|
78
280
|
getJobStepStatus(stepId: string): Promise<JobStepStatusResult | null>;
|
|
281
|
+
/**
|
|
282
|
+
* Wait for a job to change status by subscribing to job-status-changed events.
|
|
283
|
+
* When the job status changes, the job result is returned.
|
|
284
|
+
*
|
|
285
|
+
* @param jobId - The ID of the job to wait for
|
|
286
|
+
* @param options - Optional configuration including timeout
|
|
287
|
+
* @returns Promise resolving to the job result when its status changes, or `null` if timeout
|
|
288
|
+
*/
|
|
79
289
|
waitForJob(jobId: string, options?: {
|
|
290
|
+
/**
|
|
291
|
+
* Timeout in milliseconds. If the job status doesn't change within this time, the promise resolves to `null`.
|
|
292
|
+
* Defaults to no timeout (waits indefinitely).
|
|
293
|
+
*/
|
|
80
294
|
timeout?: number;
|
|
295
|
+
/**
|
|
296
|
+
* AbortSignal to cancel waiting. If aborted, the promise resolves to `null`.
|
|
297
|
+
*/
|
|
81
298
|
signal?: AbortSignal;
|
|
82
|
-
}): Promise<
|
|
299
|
+
}): Promise<JobResult | null>;
|
|
300
|
+
/**
|
|
301
|
+
* Get action statistics including counts and last job created date.
|
|
302
|
+
*
|
|
303
|
+
* @returns Promise resolving to action statistics
|
|
304
|
+
*/
|
|
83
305
|
getActions(): Promise<GetActionsResult>;
|
|
306
|
+
/**
|
|
307
|
+
* Get metrics for a job or step.
|
|
308
|
+
* Only available when using LocalTelemetryAdapter.
|
|
309
|
+
*
|
|
310
|
+
* @param options - Query options including jobId/stepId, filters, sort, and pagination
|
|
311
|
+
* @returns Promise resolving to metrics result with pagination info
|
|
312
|
+
* @throws Error if not using LocalTelemetryAdapter
|
|
313
|
+
*/
|
|
84
314
|
getMetrics(options: GetMetricsOptions): Promise<GetMetricsResult>;
|
|
315
|
+
/**
|
|
316
|
+
* Get action metadata including input schemas and mock data.
|
|
317
|
+
* This is useful for generating UI forms or mock data.
|
|
318
|
+
*
|
|
319
|
+
* @returns Promise resolving to action metadata
|
|
320
|
+
*/
|
|
85
321
|
getActionsMetadata(): Promise<Array<{
|
|
86
322
|
name: string;
|
|
87
323
|
mockInput: any;
|
|
88
324
|
}>>;
|
|
325
|
+
/**
|
|
326
|
+
* Start the Duron instance.
|
|
327
|
+
* Initializes the database, recovers stuck jobs, and sets up sync patterns.
|
|
328
|
+
*
|
|
329
|
+
* @returns Promise resolving to `true` if started successfully, `false` otherwise
|
|
330
|
+
*/
|
|
89
331
|
start(): Promise<boolean>;
|
|
332
|
+
/**
|
|
333
|
+
* Stop the Duron instance.
|
|
334
|
+
* Stops the pull loop, aborts all running jobs, waits for queues to drain, and stops the database.
|
|
335
|
+
*
|
|
336
|
+
* @returns Promise resolving to `true` if stopped successfully, `false` otherwise
|
|
337
|
+
*/
|
|
90
338
|
stop(): Promise<boolean>;
|
|
91
339
|
}
|
|
92
340
|
export {};
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAA;AAExC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,KAAK,EAAE,MAAM,EAA6B,MAAM,aAAa,CAAA;AAEpE,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EACh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