@chimp-labs/keel-surreal 0.0.0-stage → 0.1.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/CHANGELOG.md +8 -0
- package/LICENSE +21 -0
- package/README.md +70 -2
- package/dist/client.d.ts +189 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +725 -0
- package/dist/client.js.map +1 -0
- package/dist/helpers.d.ts +38 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +253 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +135 -0
- package/dist/index.js.map +1 -0
- package/dist/kv-flags.d.ts +7 -0
- package/dist/kv-flags.d.ts.map +1 -0
- package/dist/kv-flags.js +109 -0
- package/dist/kv-flags.js.map +1 -0
- package/dist/messaging.d.ts +7 -0
- package/dist/messaging.d.ts.map +1 -0
- package/dist/messaging.js +245 -0
- package/dist/messaging.js.map +1 -0
- package/dist/migrations.d.ts +40 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +206 -0
- package/dist/migrations.js.map +1 -0
- package/dist/stores.d.ts +5 -0
- package/dist/stores.d.ts.map +1 -0
- package/dist/stores.js +448 -0
- package/dist/stores.js.map +1 -0
- package/dist/utils.d.ts +16 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +94 -0
- package/dist/utils.js.map +1 -0
- package/package.json +89 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# @chimp-labs/keel-surreal
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Initial Release
|
|
6
|
+
|
|
7
|
+
- Extracted SurrealDB 4 backend adapter out of `@chimp-labs/keel` into its own dedicated package (`@chimp-labs/keel-surreal`), keeping core `@chimp-labs/keel` free of `surrealdb` dependencies.
|
|
8
|
+
- Includes `KeelSurrealLive`, `KeelSurrealCoreLive`, `KeelSurrealHttpLive`, `KeelSurrealTransportLive`, `KeelSurrealConfigLive`, `SurrealClientLive`, `SurrealClientHttpLive`, and SurrealDB schema diff/push/migrate helpers.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ChimpLabs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@chimp-labs/keel-surreal`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SurrealDB 4 backend adapter for [`@chimp-labs/keel`](https://chimplabs.run/keel/).
|
|
4
|
+
|
|
5
|
+
Provides full SurrealDB 4 implementations of Keel's core capabilities:
|
|
6
|
+
|
|
7
|
+
- **`RelationalStore`** — typed `Table`s with JSONB dot-path queries/indexes/partial updates, ACID `beginTransaction`/`commit`/`cancel`, joins, unique/FK indexes, and live reactivity
|
|
8
|
+
- **`EventBus` + `EventStore` + `QueueStore` + `DelayedQueue` + `OutboxNotifier`** — push-driven `LIVE SELECT` messaging and job queues
|
|
9
|
+
- **`KeyValueStore` + `AtomicKV` + `CacheStore` + `DistributedLock` + `RateLimiter` + `FeatureFlags`** — multi-replica coordination without Redis
|
|
10
|
+
- **Stateless HTTP & Custom Transport** — `KeelSurrealHttpLive` / `KeelSurrealTransportLive` for Cloudflare Workers and short-lived serverless isolates
|
|
11
|
+
- **Schema Migrations & Introspection** — `introspectSurrealSchema`, `diffSurrealSchema`, `pushSurrealSchema`, `runSurrealMigrations`, `getSurrealMigrationStatus`
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @chimp-labs/keel @chimp-labs/keel-surreal effect
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Plain TypeScript SDK (`@chimp-labs/keel/sdk`)
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { createKeel, k } from "@chimp-labs/keel/sdk"
|
|
25
|
+
|
|
26
|
+
const Users = k.table("users", {
|
|
27
|
+
id: k.uuid().primaryKey(),
|
|
28
|
+
email: k.text().unique(),
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const keel = await createKeel({
|
|
32
|
+
backend: "surreal",
|
|
33
|
+
surreal: {
|
|
34
|
+
url: "ws://127.0.0.1:8000/rpc",
|
|
35
|
+
namespace: "app",
|
|
36
|
+
database: "main",
|
|
37
|
+
username: "root",
|
|
38
|
+
password: "secret",
|
|
39
|
+
},
|
|
40
|
+
resources: { users: Users },
|
|
41
|
+
ensureAll: true,
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Or pass `KeelSurrealLive` / `KeelSurrealHttpLive` explicitly via `layers`:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { KeelSurrealLive } from "@chimp-labs/keel-surreal"
|
|
49
|
+
import { createKeel } from "@chimp-labs/keel/sdk"
|
|
50
|
+
|
|
51
|
+
const keel = await createKeel({
|
|
52
|
+
layers: [KeelSurrealLive({ url: "ws://127.0.0.1:8000/rpc", namespace: "app", database: "main" })],
|
|
53
|
+
resources: { users: Users },
|
|
54
|
+
ensureAll: true,
|
|
55
|
+
})
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Effect v4
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import { Effect } from "effect"
|
|
62
|
+
import { KeelSurrealLive } from "@chimp-labs/keel-surreal"
|
|
63
|
+
|
|
64
|
+
const layer = KeelSurrealLive({
|
|
65
|
+
url: "ws://127.0.0.1:8000/rpc",
|
|
66
|
+
namespace: "app",
|
|
67
|
+
database: "main",
|
|
68
|
+
username: "root",
|
|
69
|
+
password: "secret",
|
|
70
|
+
})
|
|
71
|
+
```
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { Cause, Config, Context, Effect, Layer, Option, Queue, Redacted, Schema, type Scope, Stream } from "effect";
|
|
2
|
+
import { RecordId, Surreal } from "surrealdb";
|
|
3
|
+
import { type KeelErrorClassification, KeelErrorMetaSym } from "@chimp-labs/keel";
|
|
4
|
+
declare const SurrealClientError_base: Schema.Class<SurrealClientError, Schema.TaggedStruct<"SurrealClientError", {
|
|
5
|
+
readonly operation: Schema.String;
|
|
6
|
+
readonly cause: Schema.Unknown;
|
|
7
|
+
}>, Cause.YieldableError>;
|
|
8
|
+
export declare class SurrealClientError extends SurrealClientError_base {
|
|
9
|
+
static readonly [KeelErrorMetaSym]: KeelErrorClassification;
|
|
10
|
+
}
|
|
11
|
+
export interface SurrealLiveMessage<T = Record<string, unknown>> {
|
|
12
|
+
readonly action: "CREATE" | "UPDATE" | "DELETE";
|
|
13
|
+
readonly recordId: RecordId;
|
|
14
|
+
readonly value: T;
|
|
15
|
+
}
|
|
16
|
+
export type SurrealClientTransportMode = "ws" | "http";
|
|
17
|
+
export interface SurrealClientConfig {
|
|
18
|
+
/** e.g. `"ws://127.0.0.1:8000"` (local Docker) or `"wss://<instance>.surreal.cloud"` (Earth) */
|
|
19
|
+
readonly url: string;
|
|
20
|
+
readonly namespace: string;
|
|
21
|
+
readonly database: string;
|
|
22
|
+
readonly username?: string;
|
|
23
|
+
readonly password?: string;
|
|
24
|
+
readonly token?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Transport protocol:
|
|
27
|
+
* - `"ws"` (default): persistent WebSocket connection via the `surrealdb` SDK.
|
|
28
|
+
* - `"http"`: stateless `POST <httpUrl>/sql` requests with `Surreal-NS`, `Surreal-DB`,
|
|
29
|
+
* `Accept: application/json`, and Bearer or Basic auth headers.
|
|
30
|
+
*/
|
|
31
|
+
readonly transport?: SurrealClientTransportMode;
|
|
32
|
+
/** Auto-run `DEFINE NAMESPACE/DATABASE IF NOT EXISTS` on connect (default: `true` for `"ws"`, `false` for `"http"`). */
|
|
33
|
+
readonly autoCreate?: boolean;
|
|
34
|
+
/** Max retries for transient 503 / cell-saturation responses (SurrealDB Earth resilience). Default: `3`. */
|
|
35
|
+
readonly maxRetries?: number;
|
|
36
|
+
/** Optional custom `fetch` implementation passed to `surrealdb` or HTTP `/sql` transport (e.g. Worker Service Binding or test mock). */
|
|
37
|
+
readonly fetchImpl?: typeof fetch;
|
|
38
|
+
/**
|
|
39
|
+
* When `true`, skips runtime `DEFINE TABLE/INDEX/ANALYZER` bootstrap DDL in
|
|
40
|
+
* Keel stores (recommended for pre-provisioned serverless / managed databases).
|
|
41
|
+
*/
|
|
42
|
+
readonly skipBootstrapDdl?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Optional boundary hook to transform or redact `SurrealClientError` values
|
|
45
|
+
* (e.g. stripping vendor/endpoint details in managed cloud runtimes).
|
|
46
|
+
*/
|
|
47
|
+
readonly mapError?: (error: SurrealClientError) => SurrealClientError;
|
|
48
|
+
}
|
|
49
|
+
export interface SurrealClientHttpConfig extends SurrealClientConfig {
|
|
50
|
+
/**
|
|
51
|
+
* How `withTransaction(...)` executes on the stateless HTTP transport:
|
|
52
|
+
* - `"scoped-ws"` (default): opens an ephemeral WebSocket strictly for the
|
|
53
|
+
* duration of `withTransaction` and closes it before returning (safe inside
|
|
54
|
+
* a single Cloudflare Worker request).
|
|
55
|
+
* - `"error"`: rejects interactive transactions deterministically with a
|
|
56
|
+
* `SurrealClientError` (use when WebSockets are disabled or proxied).
|
|
57
|
+
*/
|
|
58
|
+
readonly transactionMode?: "scoped-ws" | "error";
|
|
59
|
+
/** Optional WebSocket URL override used when `transactionMode === "scoped-ws"`. */
|
|
60
|
+
readonly wsUrl?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface SurrealClientTransport {
|
|
63
|
+
/** Executes SurrealQL against the active transport (honoring any custom transaction context). */
|
|
64
|
+
readonly query: <T extends Array<unknown> = Array<unknown>>(surql: string, vars?: Record<string, unknown>) => Effect.Effect<T, SurrealClientError>;
|
|
65
|
+
/** Optional non-transactional query path (defaults to `query`). */
|
|
66
|
+
readonly queryDirect?: <T extends Array<unknown> = Array<unknown>>(surql: string, vars?: Record<string, unknown>) => Effect.Effect<T, SurrealClientError>;
|
|
67
|
+
/** Optional interactive transaction runner (defaults to failing with `SurrealClientError`). */
|
|
68
|
+
readonly withTransaction?: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | SurrealClientError, R>;
|
|
69
|
+
/** Optional `LIVE SELECT` stream implementation (defaults to failing with `SurrealClientError`). */
|
|
70
|
+
readonly live?: <T = Record<string, unknown>>(table: string) => Stream.Stream<SurrealLiveMessage<T>, SurrealClientError>;
|
|
71
|
+
/** Max retries for transient 503 responses. Default: `3`. Set `0` to disable. */
|
|
72
|
+
readonly maxRetries?: number;
|
|
73
|
+
/** Skip runtime bootstrap DDL in stores when schema is pre-provisioned. */
|
|
74
|
+
readonly skipBootstrapDdl?: boolean;
|
|
75
|
+
/** Optional error mapper/sanitizer applied at the client boundary. */
|
|
76
|
+
readonly mapError?: (error: SurrealClientError) => SurrealClientError;
|
|
77
|
+
}
|
|
78
|
+
export interface SurrealHttpStatement {
|
|
79
|
+
readonly surql: string;
|
|
80
|
+
readonly vars?: Record<string, unknown>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Formats an array of SurrealQL statements into a single atomic HTTP `/sql`
|
|
84
|
+
* transaction batch (`BEGIN TRANSACTION; ...; COMMIT TRANSACTION;`).
|
|
85
|
+
*/
|
|
86
|
+
export declare const buildSurrealHttpTransactionSql: (statements: ReadonlyArray<SurrealHttpStatement>) => string;
|
|
87
|
+
/**
|
|
88
|
+
* Acquires a scoped `LIVE SELECT` WebSocket subscription on `table` and buffers
|
|
89
|
+
* transformed events into an unbounded `Queue` BEFORE returning.
|
|
90
|
+
*
|
|
91
|
+
* Guarantees `sub.kill()` and `Queue.shutdown(queue)` on scope exit, and ends
|
|
92
|
+
* the queue cleanly on `KILLED` notifications.
|
|
93
|
+
*/
|
|
94
|
+
export declare const acquireLiveQueue: <A>(raw: Surreal | undefined, table: string, onEvent: (msg: SurrealLiveMessage<Record<string, unknown>>, offer: (value: A) => void) => void, onRelease?: () => void) => Effect.Effect<Queue.Queue<A, Cause.Done>, SurrealClientError, Scope.Scope>;
|
|
95
|
+
declare const SurrealClient_base: Context.ServiceClass<SurrealClient, "@chimp-labs/keel/SurrealClient", {
|
|
96
|
+
/**
|
|
97
|
+
* Underlying `surrealdb` SDK instance when backed by a persistent WebSocket
|
|
98
|
+
* connection (`SurrealClientLive`). Undefined on stateless HTTP or custom
|
|
99
|
+
* proxy transports.
|
|
100
|
+
*/
|
|
101
|
+
readonly raw?: Surreal;
|
|
102
|
+
/** Executes SurrealQL against the active transaction (if inside `withTransaction`) or main connection, with transient 503 backoff. */
|
|
103
|
+
readonly query: <T extends Array<unknown> = Array<unknown>>(surql: string, vars?: Record<string, unknown>) => Effect.Effect<T, SurrealClientError>;
|
|
104
|
+
/**
|
|
105
|
+
* Executes SurrealQL directly against the connection, bypassing any active
|
|
106
|
+
* fiber-scoped transaction (e.g. for idempotent `DEFINE TABLE/INDEX` DDL).
|
|
107
|
+
*/
|
|
108
|
+
readonly queryDirect?: <T extends Array<unknown> = Array<unknown>>(surql: string, vars?: Record<string, unknown>) => Effect.Effect<T, SurrealClientError>;
|
|
109
|
+
/** When `true`, Keel stores skip runtime bootstrap DDL (for pre-provisioned serverless databases). */
|
|
110
|
+
readonly skipBootstrapDdl?: boolean;
|
|
111
|
+
/** Opens a resource-safe `LIVE SELECT` WebSocket stream; fails with `SurrealClientError` on stateless transports. */
|
|
112
|
+
readonly live: <T = Record<string, unknown>>(table: string) => Stream.Stream<SurrealLiveMessage<T>, SurrealClientError>;
|
|
113
|
+
/** Executes `effect` inside a real SurrealDB interactive ACID transaction (`beginTransaction` -> `commit` / `cancel`). */
|
|
114
|
+
readonly withTransaction: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | SurrealClientError, R>;
|
|
115
|
+
}>;
|
|
116
|
+
export declare class SurrealClient extends SurrealClient_base {
|
|
117
|
+
}
|
|
118
|
+
export declare const SurrealClientLive: (config: SurrealClientConfig) => Layer.Layer<SurrealClient, SurrealClientError>;
|
|
119
|
+
/**
|
|
120
|
+
* Stateless, request-safe HTTP `SurrealClient` layer designed for Cloudflare
|
|
121
|
+
* Workers and other short-lived serverless isolates.
|
|
122
|
+
*
|
|
123
|
+
* - Normalizes `ws://`/`wss://` URLs to `http://`/`https://` so `surrealdb`
|
|
124
|
+
* uses its stateless `HttpEngine` (`fetch` per query, full CBOR fidelity for
|
|
125
|
+
* `RecordId`/`DateTime`, zero persistent WebSocket held across requests).
|
|
126
|
+
* - Defaults `autoCreate` to `false` (serverless databases are pre-provisioned).
|
|
127
|
+
* - In `transactionMode: "scoped-ws"` (default), `withTransaction(...)` opens
|
|
128
|
+
* an ephemeral WebSocket strictly for the duration of that call and closes it
|
|
129
|
+
* before returning.
|
|
130
|
+
* - `live(...)` fails deterministically with `SurrealClientError` (use push
|
|
131
|
+
* queues / Durable Objects / webhooks instead of `LIVE SELECT` in Workers).
|
|
132
|
+
*/
|
|
133
|
+
export declare const SurrealClientHttpLive: (config: SurrealClientHttpConfig) => Layer.Layer<SurrealClient, SurrealClientError>;
|
|
134
|
+
/**
|
|
135
|
+
* Builds a transport-agnostic `SurrealClient` layer from any custom query
|
|
136
|
+
* executor (e.g. a multi-tenant Cloudflare Worker RPC Service Binding such as
|
|
137
|
+
* `CHIMP_DATA`, an HTTP gateway, or an in-process proxy).
|
|
138
|
+
*
|
|
139
|
+
* Every stateless Keel store (`RelationalSurrealLive`, `DocumentSurrealLive`,
|
|
140
|
+
* `KvSurrealLive`, `CoordinationSurrealLive`, `FeatureFlagsSurrealLive`,
|
|
141
|
+
* `SearchSurrealLive`, and SurrealDB migrations) runs unchanged on top of this
|
|
142
|
+
* layer without needing a `surrealdb` WebSocket or `client.raw`.
|
|
143
|
+
*/
|
|
144
|
+
export declare const SurrealClientTransportLive: (transport: SurrealClientTransport) => Layer.Layer<SurrealClient>;
|
|
145
|
+
export interface RedactedSurrealClientConfig {
|
|
146
|
+
readonly url: string;
|
|
147
|
+
readonly namespace: string;
|
|
148
|
+
readonly database: string;
|
|
149
|
+
readonly username: Option.Option<string>;
|
|
150
|
+
readonly password: Option.Option<Redacted.Redacted<string>>;
|
|
151
|
+
readonly token: Option.Option<Redacted.Redacted<string>>;
|
|
152
|
+
readonly transport: SurrealClientTransportMode;
|
|
153
|
+
readonly autoCreate: boolean;
|
|
154
|
+
readonly maxRetries: number;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Effect `Config` reading SurrealDB settings from the active `ConfigProvider`
|
|
158
|
+
* (defaults to `SURREAL_*` env vars). Keeps `password` and `token` wrapped in
|
|
159
|
+
* `Redacted<string>` so credentials never leak in logs or error output.
|
|
160
|
+
*/
|
|
161
|
+
export declare const surrealConfigFromEnv: (prefix?: string) => Config.Config<RedactedSurrealClientConfig>;
|
|
162
|
+
export declare const toPlainSurrealClientConfig: (cfg: RedactedSurrealClientConfig) => SurrealClientConfig;
|
|
163
|
+
/**
|
|
164
|
+
* Builds a `SurrealClient` layer from Effect's active `ConfigProvider`.
|
|
165
|
+
*/
|
|
166
|
+
export declare const makeSurrealClientConfigLive: (options?: {
|
|
167
|
+
readonly prefix?: string;
|
|
168
|
+
}) => Layer.Layer<SurrealClient, Config.ConfigError | SurrealClientError>;
|
|
169
|
+
/**
|
|
170
|
+
* Zero-config `SurrealClient` layer driven by `SURREAL_*` config keys.
|
|
171
|
+
*/
|
|
172
|
+
export declare const SurrealClientConfigLive: Layer.Layer<SurrealClient, Config.ConfigError | SurrealClientError>;
|
|
173
|
+
/**
|
|
174
|
+
* Builds a stateless HTTP `SurrealClient` layer from Effect's active `ConfigProvider`
|
|
175
|
+
* (defaults to `SURREAL_*` keys, with `autoCreate: false` unless explicitly set).
|
|
176
|
+
*/
|
|
177
|
+
export declare const makeSurrealClientHttpConfigLive: (options?: {
|
|
178
|
+
readonly prefix?: string;
|
|
179
|
+
readonly transactionMode?: "scoped-ws" | "error";
|
|
180
|
+
readonly skipBootstrapDdl?: boolean;
|
|
181
|
+
readonly fetchImpl?: typeof fetch;
|
|
182
|
+
readonly mapError?: (error: SurrealClientError) => SurrealClientError;
|
|
183
|
+
}) => Layer.Layer<SurrealClient, Config.ConfigError | SurrealClientError>;
|
|
184
|
+
/**
|
|
185
|
+
* Zero-config stateless HTTP `SurrealClient` layer driven by `SURREAL_*` config keys.
|
|
186
|
+
*/
|
|
187
|
+
export declare const SurrealClientHttpConfigLive: Layer.Layer<SurrealClient, Config.ConfigError | SurrealClientError>;
|
|
188
|
+
export {};
|
|
189
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @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