@brickkit/core 0.3.0-beta.5 → 0.4.0
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 +47 -27
- package/dist/chunks/client.d.ts +23 -8
- package/dist/chunks/client.d.ts.map +1 -1
- package/dist/chunks/client.js.map +1 -1
- package/dist/client.js +1 -2
- package/dist/index.d.ts +68 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +484 -275
- package/dist/index.js.map +1 -1
- package/package.json +20 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ToolConfigWithoutAuthorize, A as ErrorBuilder, At as index, B as Resource, Bt as PluginRouteScope, C as ActionSchema, Ct as secret, D as CacheOptions, Dt as blob, E as BaseContext, Et as SQLiteDatabaseConfig, F as NarrowAuthorizedContext, Ft as text, G as ServiceAuthOptions, Gt as ResourcePluginTypes, H as ResourceIdentity, Ht as ResourcePlugin, I as PreparationContribution, It as uniqueIndex, J as StandardErrorMap, Jt as defineResourcePlugin, K as ServiceOptions, Kt as ServicePlugin, L as ProxyOptions, Lt as PluginEndpointContext, M as InferTableRow, Mt as primaryKey, N as LifecycleOptions, Nt as real, O as CompiledRoutePlan, Ot as createSQLiteDatabase, P as Logger, Pt as sqliteTable, Q as ToolConfigWithAuthorize, R as RateLimitOptions, Rt as PluginRouteMethod, S as ActionExecutionError, St as resolveSecrets, T as BaseActionConfig, Tt as BunSQLiteDatabase, U as ResourceTypeOptions, Ut as ResourcePluginAPI, V as ResourceConfig, Vt as PluginRoutes, W as Service, Wt as ResourcePluginContext, X as Tool, Xt as getPluginActionRoute, Y as TelemetryOptions, Yt as defineServicePlugin, Z as ToolAnnotations, Zt as getPluginEndpoints, _ as ActionConfig, _t as envSource, a as BrickClientOptions, at as EnvInput, b as ActionContext, bt as overrideSecrets, c as InferActionErrorCodes, ct as defineDatabase, d as InferActionOutput, dt as PostgresDatabase, et as ToolOptions, f as createBrickClient, ft as PostgresDatabaseConfig, g as ActionAccessPolicy, gt as SecretSource, h as Action, ht as SecretRef, i as BrickClientAction, it as DatabaseHandle, j as InferTableInsert, jt as integer, k as DefaultServiceContext, kt as foreignKey, l as InferActionFailure, lt as isDatabaseHandle, m as isBrickTransportError, mt as SecretOptions, n as BrickCallOptions, nt as ValidationErrorItem, o as BrickServerError, ot as PostgresDefinition, p as isBrickServerError, pt as createPostgresDatabase, q as ServiceSchema, qt as ServicePluginContext, r as BrickClient, rt as DatabaseDefinition, s as BrickTransportError, st as SQLiteDefinition, t as BrickActionCaller, tt as ValidationError, u as InferActionInput, ut as DatabaseAdapter, v as ActionConfigWithAuthorize, vt as listSecrets, w as ArchitectureSchema, wt as BrickSQLiteDatabase, x as ActionErrorDefinition, xt as resetSecrets, y as ActionConfigWithoutAuthorize, yt as overrideSecret, z as ResilienceOptions, zt as PluginRouteRegistrar } from "./chunks/client.js";
|
|
2
2
|
import { Static, TSchema, TSchema as TSchema$1, Type } from "@sinclair/typebox";
|
|
3
3
|
import { TypeCheck } from "@sinclair/typebox/compiler";
|
|
4
4
|
import { Elysia } from "elysia";
|
|
5
5
|
import { Table, and, asc, desc, eq, getTableColumns, getTableName, gt, gte, ilike, inArray, is, isNotNull, isNull, like, lt, lte, ne, not, notInArray, or, relations, sql } from "drizzle-orm";
|
|
6
|
+
//#region src/compiler/ir.d.ts
|
|
7
|
+
type RouteMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
8
|
+
interface RouteIR {
|
|
9
|
+
readonly method: RouteMethod;
|
|
10
|
+
readonly path: string;
|
|
11
|
+
readonly service: string;
|
|
12
|
+
readonly action: string;
|
|
13
|
+
readonly kind: "action";
|
|
14
|
+
readonly input: boolean;
|
|
15
|
+
readonly output: boolean;
|
|
16
|
+
readonly context: boolean;
|
|
17
|
+
readonly authorize: boolean;
|
|
18
|
+
readonly inputPrecedence: readonly ("query" | "params" | "body")[];
|
|
19
|
+
readonly coercions: readonly {
|
|
20
|
+
readonly key: string;
|
|
21
|
+
readonly type: "number" | "boolean";
|
|
22
|
+
}[];
|
|
23
|
+
/** JSON projection for inspection and stale-artifact detection, not runtime validation. */
|
|
24
|
+
readonly inputSchema?: unknown;
|
|
25
|
+
readonly outputSchema?: unknown;
|
|
26
|
+
}
|
|
27
|
+
interface BrickIR {
|
|
28
|
+
readonly version: 1;
|
|
29
|
+
readonly target: "bun-elysia";
|
|
30
|
+
readonly prefix: string;
|
|
31
|
+
readonly services: readonly string[];
|
|
32
|
+
readonly routes: readonly RouteIR[];
|
|
33
|
+
readonly preparations: readonly {
|
|
34
|
+
service: string;
|
|
35
|
+
name: string;
|
|
36
|
+
metadata: unknown;
|
|
37
|
+
}[];
|
|
38
|
+
readonly diagnostics: readonly string[];
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
6
41
|
//#region src/endpoints.d.ts
|
|
7
42
|
type EndpointMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
8
43
|
/** Logger subset handed to endpoint handlers (mirrors action context loggers). */
|
|
@@ -55,6 +90,7 @@ export declare function endpointPaths(defs: EndpointDefinition[]): Record<string
|
|
|
55
90
|
type BrickApp = Elysia<any, any, any, any, any, any, any> & {
|
|
56
91
|
/** Service definitions and prefix selected when this app was constructed. */
|
|
57
92
|
readonly definition: {
|
|
93
|
+
readonly routes: readonly RouteIR[];
|
|
58
94
|
readonly services: readonly Service<any, any>[];
|
|
59
95
|
readonly prefix: string;
|
|
60
96
|
};
|
|
@@ -64,46 +100,12 @@ type BrickApp = Elysia<any, any, any, any, any, any, any> & {
|
|
|
64
100
|
listEndpoints(): EndpointDefinition[];
|
|
65
101
|
};
|
|
66
102
|
//#endregion
|
|
67
|
-
//#region src/compiler/ir.d.ts
|
|
68
|
-
type RouteMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
69
|
-
interface RouteIR {
|
|
70
|
-
readonly method: RouteMethod;
|
|
71
|
-
readonly path: string;
|
|
72
|
-
readonly service: string;
|
|
73
|
-
readonly action: string;
|
|
74
|
-
readonly kind: "action";
|
|
75
|
-
readonly input: boolean;
|
|
76
|
-
readonly output: boolean;
|
|
77
|
-
readonly context: boolean;
|
|
78
|
-
readonly authorize: boolean;
|
|
79
|
-
readonly inputPrecedence: readonly ("query" | "params" | "body")[];
|
|
80
|
-
readonly coercions: readonly {
|
|
81
|
-
readonly key: string;
|
|
82
|
-
readonly type: "number" | "boolean";
|
|
83
|
-
}[];
|
|
84
|
-
/** JSON projection for inspection and stale-artifact detection, not runtime validation. */
|
|
85
|
-
readonly inputSchema?: unknown;
|
|
86
|
-
readonly outputSchema?: unknown;
|
|
87
|
-
}
|
|
88
|
-
interface BrickIR {
|
|
89
|
-
readonly version: 1;
|
|
90
|
-
readonly target: "bun-elysia";
|
|
91
|
-
readonly prefix: string;
|
|
92
|
-
readonly services: readonly string[];
|
|
93
|
-
readonly routes: readonly RouteIR[];
|
|
94
|
-
readonly preparations: readonly {
|
|
95
|
-
service: string;
|
|
96
|
-
name: string;
|
|
97
|
-
metadata: unknown;
|
|
98
|
-
}[];
|
|
99
|
-
readonly diagnostics: readonly string[];
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
103
|
//#region src/compiler/runtime.d.ts
|
|
103
104
|
type CompiledHandler = (context: any) => unknown | Promise<unknown>;
|
|
104
105
|
type HandlerFactory = (binding: CompiledRoutePlan, runtime: typeof compilerRuntime) => CompiledHandler;
|
|
105
106
|
/** Retains Brick's existing source precedence and treatment of empty bodies. */
|
|
106
107
|
declare function mergeInput(first: any, second: any, third: any): any;
|
|
108
|
+
declare function checkDepth(value: unknown, action: string): void;
|
|
107
109
|
declare function validate(check: NonNullable<CompiledRoutePlan["inputChecker"]>, value: unknown, action: string, stage: "input" | "output"): void;
|
|
108
110
|
declare function mapError(err: any, set: any): {
|
|
109
111
|
name: string;
|
|
@@ -126,6 +128,7 @@ export declare const compilerRuntime: Readonly<{
|
|
|
126
128
|
defaultRequest: Request;
|
|
127
129
|
nextSequence: () => string;
|
|
128
130
|
mergeInput: typeof mergeInput;
|
|
131
|
+
checkDepth: typeof checkDepth;
|
|
129
132
|
validate: typeof validate;
|
|
130
133
|
mapError: typeof mapError;
|
|
131
134
|
isThenable: (value: any) => boolean;
|
|
@@ -146,7 +149,7 @@ interface CompiledApplication {
|
|
|
146
149
|
readonly ir: BrickIR;
|
|
147
150
|
readonly routes: readonly CompiledRoute[];
|
|
148
151
|
}
|
|
149
|
-
/** Startup compiler: analyzes once,
|
|
152
|
+
/** Startup compiler: analyzes once, then binds live callbacks. */
|
|
150
153
|
export declare function compileBrickApplication(options: {
|
|
151
154
|
services: Service<any, any>[];
|
|
152
155
|
prefix?: string;
|
|
@@ -332,6 +335,7 @@ export declare class ServiceImpl<TDb = BunSQLiteDatabase<Record<string, unknown>
|
|
|
332
335
|
/**
|
|
333
336
|
* Resolves the complete service execution context once per incoming request.
|
|
334
337
|
* Merges framework BaseContext with the service's custom context hook.
|
|
338
|
+
* Always rebuilds context for this service to prevent caller context from overriding.
|
|
335
339
|
*/
|
|
336
340
|
resolveContext(callCtx?: Partial<BaseContext<TDb> & TServiceContext>): Promise<BaseContext<TDb> & TServiceContext>;
|
|
337
341
|
private _resolveContextSlow;
|
|
@@ -339,6 +343,24 @@ export declare class ServiceImpl<TDb = BunSQLiteDatabase<Record<string, unknown>
|
|
|
339
343
|
}
|
|
340
344
|
export declare function defineService<TDb = BunSQLiteDatabase<Record<string, unknown>>, TServiceContext extends Record<string, any> = Record<string, any>>(name: string, options?: ServiceOptions<TServiceContext, TDb>): Service<TDb, TServiceContext>;
|
|
341
345
|
//#endregion
|
|
346
|
+
//#region src/access.d.ts
|
|
347
|
+
interface ActionAccessInfo {
|
|
348
|
+
hasAuthorize: boolean;
|
|
349
|
+
hasScope: boolean;
|
|
350
|
+
policy: ActionAccessPolicy;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Cross-copy access metadata protocol. CRUD enforces its access policy
|
|
354
|
+
* inside `execute`, so `config.authorize` is absent and introspection
|
|
355
|
+
* can't see it. The plugin stamps each action under this process-global
|
|
356
|
+
* symbol; introspection and OpenAPI read it back. Uses `Symbol.for` so
|
|
357
|
+
* the binding survives a second copy of core (bundler SSR, Vitest),
|
|
358
|
+
* same as the plugin action-binding key.
|
|
359
|
+
*/
|
|
360
|
+
export declare const ACTION_ACCESS_KEY: unique symbol;
|
|
361
|
+
export declare function setActionAccess(action: object, info: ActionAccessInfo): void;
|
|
362
|
+
export declare function getActionAccess(action: Action | object): ActionAccessInfo;
|
|
363
|
+
//#endregion
|
|
342
364
|
//#region src/action.d.ts
|
|
343
365
|
export declare function buildErrorHelpers<TErrors extends Record<string, ActionErrorDefinition>>(errorsDef?: TErrors): ErrorBuilder<TErrors>;
|
|
344
366
|
export declare function defineAction<TInputSchema extends TSchema$1 | undefined = undefined, TOutputSchema extends TSchema$1 | undefined = undefined, TErrors extends Record<string, ActionErrorDefinition> = Record<string, ActionErrorDefinition>, TContext extends ActionContext = ActionContext>(config: ActionConfigWithAuthorize<TInputSchema, TOutputSchema, TErrors, TContext>): Action<TInputSchema, TOutputSchema, TErrors, TContext>;
|
|
@@ -352,18 +374,25 @@ export declare function defineResource<TTable = any, TCtx extends ActionContext
|
|
|
352
374
|
export declare function createServiceProxy<T extends Record<string, any>>(serviceName: string, options?: ProxyOptions): T;
|
|
353
375
|
//#endregion
|
|
354
376
|
//#region src/registry.d.ts
|
|
377
|
+
interface ArchitectureApplication {
|
|
378
|
+
services: readonly Service[];
|
|
379
|
+
routes: readonly RouteIR[];
|
|
380
|
+
}
|
|
355
381
|
export declare class ServiceRegistry {
|
|
356
382
|
private _revision;
|
|
357
383
|
/** Definition revision for invalidating serialized architecture snapshots. */
|
|
358
384
|
get revision(): number;
|
|
359
385
|
touch(): void;
|
|
360
386
|
private services;
|
|
387
|
+
private routes;
|
|
388
|
+
/** Remember the actual registered routes for subsequent registry exports. */
|
|
389
|
+
setApplicationRoutes(application: ArchitectureApplication): void;
|
|
361
390
|
register(service: Service): void;
|
|
362
391
|
get(name: string): Service | undefined;
|
|
363
392
|
has(name: string): boolean;
|
|
364
393
|
list(): Service[];
|
|
365
394
|
clear(): void;
|
|
366
|
-
exportArchitecture(): ArchitectureSchema;
|
|
395
|
+
exportArchitecture(application?: ArchitectureApplication): ArchitectureSchema;
|
|
367
396
|
}
|
|
368
397
|
export declare function getGlobalRegistry(): ServiceRegistry;
|
|
369
398
|
export declare function resetGlobalRegistry(): void;
|
|
@@ -428,5 +457,5 @@ interface McpHandlerOptions {
|
|
|
428
457
|
/** Stateless MCP JSON-RPC POST handler. Wrap with the app's authentication. */
|
|
429
458
|
export declare function createMcpHandler(options: McpHandlerOptions): (request: Request, ctx?: Partial<ActionContext>) => Promise<Response>;
|
|
430
459
|
//#endregion
|
|
431
|
-
export { Action, ActionConfig, ActionConfigWithAuthorize, ActionConfigWithoutAuthorize, ActionContext, ActionErrorDefinition, ActionExecutionError, ActionSchema, ArchitectureSchema, BaseActionConfig, BaseContext, type BrickActionCaller, type BrickApp, type BrickCallOptions, type BrickClient, type BrickClientAction, type BrickClientOptions, type BrickIR, BrickSQLiteDatabase, BrickServerError, BrickTransportError, type BunSQLiteDatabase, CacheOptions, type CompiledApplication, type CompiledHandler, type CompiledRoute, CompiledRoutePlan, type CreateServerOptions, DatabaseAdapter, DatabaseDefinition, DatabaseHandle, DefaultServiceContext, type EndpointContext, type EndpointDefinition, type EndpointLogger, type EndpointMethod, EnvInput, ErrorBuilder, type HandlerFactory, type InferActionErrorCodes, type InferActionFailure, type InferActionInput, type InferActionOutput, InferTableInsert, InferTableRow, LifecycleOptions, Logger, type McpHandlerOptions, type McpRegistry, type McpRegistryOptions, type McpToolDefinition, NarrowAuthorizedContext, type OpenApiGeneratorOptions, type PluginEndpointContext, type PluginRouteMethod, type PluginRouteRegistrar, type PluginRouteScope, type PluginRoutes, PostgresDatabase, PostgresDatabaseConfig, PostgresDefinition, PreparationContribution, ProxyOptions, RateLimitOptions, type ReferenceOptions, type RequestLoggingOptions, ResilienceOptions, Resource, ResourceConfig, ResourceIdentity, type ResourcePlugin, type ResourcePluginAPI, type ResourcePluginContext, type ResourcePluginTypes, ResourceTypeOptions, type RouteIR, type RouteMethod, SQLiteDatabaseConfig, SQLiteDefinition, type SecretOptions, SecretRef, type SecretSource, Service, ServiceAuthOptions, ServiceOptions, type ServicePlugin, type ServicePluginContext, ServiceSchema, StandardErrorMap, type Static, type TSchema, Table, TelemetryOptions, Tool, ToolAnnotations, ToolConfigWithAuthorize, ToolConfigWithoutAuthorize, ToolOptions, Type, Type as t, ValidationError, ValidationErrorItem, and, asc, blob, createBrickClient, createPostgresDatabase, createSQLiteDatabase, defineDatabase, defineResourcePlugin, defineServicePlugin, desc, envSource, eq, foreignKey, getPluginActionRoute, getPluginEndpoints, getTableColumns, getTableName, gt, gte, ilike, inArray, index, integer, is, isBrickServerError, isBrickTransportError, isDatabaseHandle, isNotNull, isNull, like, listSecrets, lt, lte, ne, not, notInArray, or, overrideSecret, overrideSecrets, primaryKey, real, relations, resetSecrets, resolveSecrets, secret, sql, sqliteTable, text, uniqueIndex };
|
|
460
|
+
export { Action, type ActionAccessInfo, ActionAccessPolicy, ActionConfig, ActionConfigWithAuthorize, ActionConfigWithoutAuthorize, ActionContext, ActionErrorDefinition, ActionExecutionError, ActionSchema, ArchitectureSchema, BaseActionConfig, BaseContext, type BrickActionCaller, type BrickApp, type BrickCallOptions, type BrickClient, type BrickClientAction, type BrickClientOptions, type BrickIR, BrickSQLiteDatabase, BrickServerError, BrickTransportError, type BunSQLiteDatabase, CacheOptions, type CompiledApplication, type CompiledHandler, type CompiledRoute, CompiledRoutePlan, type CreateServerOptions, DatabaseAdapter, DatabaseDefinition, DatabaseHandle, DefaultServiceContext, type EndpointContext, type EndpointDefinition, type EndpointLogger, type EndpointMethod, EnvInput, ErrorBuilder, type HandlerFactory, type InferActionErrorCodes, type InferActionFailure, type InferActionInput, type InferActionOutput, InferTableInsert, InferTableRow, LifecycleOptions, Logger, type McpHandlerOptions, type McpRegistry, type McpRegistryOptions, type McpToolDefinition, NarrowAuthorizedContext, type OpenApiGeneratorOptions, type PluginEndpointContext, type PluginRouteMethod, type PluginRouteRegistrar, type PluginRouteScope, type PluginRoutes, PostgresDatabase, PostgresDatabaseConfig, PostgresDefinition, PreparationContribution, ProxyOptions, RateLimitOptions, type ReferenceOptions, type RequestLoggingOptions, ResilienceOptions, Resource, ResourceConfig, ResourceIdentity, type ResourcePlugin, type ResourcePluginAPI, type ResourcePluginContext, type ResourcePluginTypes, ResourceTypeOptions, type RouteIR, type RouteMethod, SQLiteDatabaseConfig, SQLiteDefinition, type SecretOptions, SecretRef, type SecretSource, Service, ServiceAuthOptions, ServiceOptions, type ServicePlugin, type ServicePluginContext, ServiceSchema, StandardErrorMap, type Static, type TSchema, Table, TelemetryOptions, Tool, ToolAnnotations, ToolConfigWithAuthorize, ToolConfigWithoutAuthorize, ToolOptions, Type, Type as t, ValidationError, ValidationErrorItem, and, asc, blob, createBrickClient, createPostgresDatabase, createSQLiteDatabase, defineDatabase, defineResourcePlugin, defineServicePlugin, desc, envSource, eq, foreignKey, getPluginActionRoute, getPluginEndpoints, getTableColumns, getTableName, gt, gte, ilike, inArray, index, integer, is, isBrickServerError, isBrickTransportError, isDatabaseHandle, isNotNull, isNull, like, listSecrets, lt, lte, ne, not, notInArray, or, overrideSecret, overrideSecrets, primaryKey, real, relations, resetSecrets, resolveSecrets, secret, sql, sqliteTable, text, uniqueIndex };
|
|
432
461
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["_$__0.ValidationErrorItem","_$__endpoints0.BrickApp","TSchema","TSchema","TSchema"],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_$__0.ValidationErrorItem","_$__endpoints0.BrickApp","TSchema","TSchema","TSchema"],"sources":["../src/compiler/ir.ts","../src/endpoints.ts","../src/compiler/runtime.ts","../src/compiler.ts","../src/request-logger.ts","../src/docs.ts","../src/action-handler.ts","../src/server.ts","../src/app-entry.ts","../src/compiler/emit.ts","../src/db/index.ts","../src/service.ts","../src/access.ts","../src/action.ts","../src/resource.ts","../src/rpc.ts","../src/registry.ts","../src/typebox.ts","../src/openapi.ts","../src/tool.ts","../src/mcp.ts"],"mappings":";;;;;;KAGY;UACK;WACN,QAAQ;WACR;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;;WAGF;WACA;;UAEM;WACN;WACA;WACA;WACA;WACA,iBAAiB;WACjB;IACP;IACA;IACA;;WAEO;;;;KC5BC;;UAGK;EACf,UAAU;EACV,UAAU;EACV,WAAW;EACX,WAAW;;;UAII;EACf,QAAQ;EACR,OAAO;EACP;EACA,SAAS;EACT,SAAS;;EAET;IAAO;IAAiB,SAAS;;;EAEjC;EACA,QAAQ;EACR;EACA;;UAGe;EACf,QAAQ;;EAER;EACA,UAAU,KAAK,8BAA8B;;EAE7C,UAAU;;EAEV,WAAW;EACX;EACA;EACA;;;wBAIc,kBACd,SAAS,wCACT,UAAU;;wBAiBI,sBACd,KAAK,oBACL,UAAU,uBACR,mBAAmB;;wBA8DP,cAAc;;wBAUd,cAAc,MAAM,uBAAuB;;KAuB/C,WAAW;;WAEZ;aACE,iBAAiB;aACjB,mBAAmB;aACnB;;;EAGX,SAAS,KAAK;;EAEd,iBAAiB;;;;KCxKP,mBAAmB,2BAA2B;KAC9C,kBACV,SAAS,mBACT,gBAAgB,oBACb;;iBAcI,WAAW,YAAY,aAAa;iBAiCpC,WAAW,gBAAgB;iBAO3B,SACP,OAAO,YAAY,oCACnB,gBACA,gBACA;iBAeO,SAAS,UAAU;;;;;;;;;;UAAnBA;;;;;;qBAaI,iBAAe;;;;;;;;EAQN,aAAA;EAEL,OAAA;;;;KC1FZ,qBAAqB,UAAU,wBAAwB;;wBAWtC,qBACpB,YAAY;EAAU;IACtB,IAAI,SACJ,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