@alienplatform/bindings 3.3.11 → 3.3.13
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/errors.d.ts +2 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/factories.d.ts +4 -1
- package/dist/factories.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -4
- package/dist/loader.d.ts +15 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +615 -186
- package/dist/native.d.ts +3 -1
- package/dist/native.d.ts.map +1 -1
- package/dist/native.js +4 -2
- package/dist/remote.d.ts +48 -1
- package/dist/remote.d.ts.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/errors.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `"GenericFailure"` and carries no information. The addon instead serializes a
|
|
7
7
|
* structured envelope into the JS `err.message`:
|
|
8
8
|
*
|
|
9
|
-
* { code, message, context?, retryable }
|
|
9
|
+
* { code, message, context?, retryable, internal, httpStatusCode?, hint? }
|
|
10
10
|
*
|
|
11
11
|
* where `context` keys are snake_case (e.g. `binding_name`, `env_var`).
|
|
12
12
|
* `unwrapNapiError` recovers that envelope with a single `JSON.parse` — never by
|
|
@@ -97,7 +97,7 @@ export declare const InvalidPostgresTlsConfigError: {
|
|
|
97
97
|
* becomes {@link BindingNotConfiguredError} (with `binding` / `envVar` mapped
|
|
98
98
|
* from the envelope's snake_case context); every other envelope code becomes a
|
|
99
99
|
* generic `AlienError` that preserves the `code`, `message`, `context`, and
|
|
100
|
-
* `retryable`
|
|
100
|
+
* `retryable`, `internal`, `httpStatusCode`, and `hint` metadata.
|
|
101
101
|
* - A non-envelope message (napi-internal error) is wrapped as a generic
|
|
102
102
|
* `BINDINGS_ERROR`, preserving the original message.
|
|
103
103
|
*/
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAI3B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AAElC;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAWpC,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;CAUtC,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;CAUxC,CAAA;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAI3B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AAElC;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAWpC,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;CAUtC,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;CAUxC,CAAA;AA2CF;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,CAwCxD;AAGD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/factories.d.ts
CHANGED
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
* correctly even when destructured off the handle (`const { get } = storage(x)`).
|
|
14
14
|
*/
|
|
15
15
|
import type { NativeAddon, RawRemoteBindingsHandle } from "./loader.js";
|
|
16
|
-
import type { Container, Kv, Postgres, Queue, RemoteStorage, Storage, Vault } from "./types.js";
|
|
16
|
+
import type { Container, Key, Kv, Postgres, Queue, RemoteStorage, Storage, Vault } from "./types.js";
|
|
17
17
|
/** The public factory surface. */
|
|
18
18
|
export interface Factories {
|
|
19
19
|
storage(name: string): Storage;
|
|
20
|
+
key(name: string): Key;
|
|
20
21
|
kv(name: string): Kv;
|
|
21
22
|
queue(name: string): Queue;
|
|
22
23
|
vault(name: string): Vault;
|
|
@@ -27,4 +28,6 @@ export interface Factories {
|
|
|
27
28
|
export declare function createFactories(getAddon: () => NativeAddon): Factories;
|
|
28
29
|
/** Build the remote-only storage factory around one native bindings handle. */
|
|
29
30
|
export declare function createRemoteStorageFactory(bindings: RawRemoteBindingsHandle): (name: string) => RemoteStorage;
|
|
31
|
+
/** Build the remote Key factory around one native bindings handle. */
|
|
32
|
+
export declare function createRemoteKeyFactory(bindings: RawRemoteBindingsHandle): (name: string) => Key;
|
|
30
33
|
//# sourceMappingURL=factories.d.ts.map
|
package/dist/factories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../src/factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,KAAK,EACV,WAAW,
|
|
1
|
+
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../src/factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,KAAK,EACV,WAAW,EAQX,uBAAuB,EAIxB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,SAAS,EACT,GAAG,EAEH,EAAE,EAIF,QAAQ,EAIR,KAAK,EAEL,aAAa,EAEb,OAAO,EAEP,KAAK,EACN,MAAM,YAAY,CAAA;AA+RnB,kCAAkC;AAClC,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;IACtB,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAA;IACpB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAA;IAC1B,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAA;IAC1B,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAA;CACjC;AAED,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,WAAW,GAAG,SAAS,CAWtE;AAED,+EAA+E;AAC/E,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,uBAAuB,IAElE,MAAM,MAAM,KAAG,aAAa,CAQrC;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,uBAAuB,IAE9D,MAAM,MAAM,KAAG,GAAG,CAQ3B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
* against a binding with no `ALIEN_<NAME>_BINDING` in the environment throws
|
|
9
9
|
* {@link BindingNotConfiguredError}.
|
|
10
10
|
*/
|
|
11
|
+
export type { RemoteAiBinding, RemoteAiClientConfig, RemoteAiLease, RemoteDeploymentBindingsOptions, } from "./remote.js";
|
|
11
12
|
export { Bindings } from "./remote.js";
|
|
12
|
-
export type { RemoteDeploymentBindingsOptions } from "./remote.js";
|
|
13
13
|
/** Resolve the storage binding named `name`. */
|
|
14
14
|
export declare const storage: (name: string) => import("./types.js").Storage;
|
|
15
|
+
/** Resolve the provider-backed key binding named `name`. */
|
|
16
|
+
export declare const key: (name: string) => import("./types.js").Key;
|
|
15
17
|
/** Resolve the key-value binding named `name`. */
|
|
16
18
|
export declare const kv: (name: string) => import("./types.js").Kv;
|
|
17
19
|
/** Resolve the queue binding named `name`. */
|
|
@@ -23,5 +25,5 @@ export declare const container: (name: string) => import("./types.js").Container
|
|
|
23
25
|
/** Resolve the Postgres binding named `name`. */
|
|
24
26
|
export declare const postgres: (name: string) => import("./types.js").Postgres;
|
|
25
27
|
export { AlienError, BindingNotConfiguredError, BindingNotFoundError, defineError, InvalidPostgresTlsConfigError, UnknownPostgresSslModeError, } from "./errors.js";
|
|
26
|
-
export type { Container, Kv, KvDeleteOptions, KvEntry, KvScanItem, KvScanResult, KvSetOptions, ObjectMeta, Postgres, PostgresConnection, PostgresSslMode, PostgresTlsOptions, PresignedRequest, Queue, QueueMessage, RemoteStorage, SignedUrlMethod, SignedUrlOptions, Storage, StorageGetResult, StorageHeadResult, StorageObjectAttributes, StoragePutAttributes, StoragePutOptions, StoragePutResult, Vault, } from "./types.js";
|
|
28
|
+
export type { Container, Key, KeyOptions, Kv, KvDeleteOptions, KvEntry, KvScanItem, KvScanResult, KvSetOptions, ObjectMeta, Postgres, PostgresConnection, PostgresSslMode, PostgresTlsOptions, PresignedRequest, Queue, QueueMessage, RemoteStorage, SignedUrlMethod, SignedUrlOptions, Storage, StorageGetResult, StorageHeadResult, StorageObjectAttributes, StoragePutAttributes, StoragePutOptions, StoragePutResult, Vault, } from "./types.js";
|
|
27
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,+BAA+B,GAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAItC,gDAAgD;AAChD,eAAO,MAAM,OAAO,gDAAoB,CAAA;AACxC,4DAA4D;AAC5D,eAAO,MAAM,GAAG,4CAAgB,CAAA;AAChC,kDAAkD;AAClD,eAAO,MAAM,EAAE,2CAAe,CAAA;AAC9B,8CAA8C;AAC9C,eAAO,MAAM,KAAK,8CAAkB,CAAA;AACpC,8CAA8C;AAC9C,eAAO,MAAM,KAAK,8CAAkB,CAAA;AACpC,yDAAyD;AACzD,eAAO,MAAM,SAAS,kDAAsB,CAAA;AAC5C,iDAAiD;AACjD,eAAO,MAAM,QAAQ,iDAAqB,CAAA;AAE1C,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,aAAa,CAAA;AAEpB,YAAY,EACV,SAAS,EACT,GAAG,EACH,UAAU,EACV,EAAE,EACF,eAAe,EACf,OAAO,EACP,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,GACN,MAAM,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,77 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { _ as url, a as createRemoteStorageFactory, c as BindingNotFoundError, d as defineError, f as unwrapNapiError, g as string, h as object, i as createRemoteKeyFactory, l as InvalidPostgresTlsConfigError, m as literal, o as AlienError, p as discriminatedUnion, r as createFactories, s as BindingNotConfiguredError, t as loadAddon, u as UnknownPostgresSslModeError, v as datetime } from "./loader.js";
|
|
2
2
|
//#region src/remote.ts
|
|
3
|
+
const aiBindingSchema = discriminatedUnion("service", [
|
|
4
|
+
object({
|
|
5
|
+
service: literal("bedrock"),
|
|
6
|
+
region: string().min(1)
|
|
7
|
+
}),
|
|
8
|
+
object({
|
|
9
|
+
service: literal("vertex"),
|
|
10
|
+
project: string().min(1),
|
|
11
|
+
location: string().min(1)
|
|
12
|
+
}),
|
|
13
|
+
object({
|
|
14
|
+
service: literal("foundry"),
|
|
15
|
+
endpoint: url(),
|
|
16
|
+
account: string().min(1)
|
|
17
|
+
})
|
|
18
|
+
]);
|
|
19
|
+
const remoteClientConfigSchema = discriminatedUnion("platform", [
|
|
20
|
+
object({ platform: literal("aws") }).passthrough(),
|
|
21
|
+
object({ platform: literal("gcp") }).passthrough(),
|
|
22
|
+
object({ platform: literal("azure") }).passthrough()
|
|
23
|
+
]);
|
|
3
24
|
/** Remote bindings for an existing deployment. */
|
|
4
25
|
var Bindings = class Bindings {
|
|
5
26
|
#storage;
|
|
6
|
-
|
|
27
|
+
#key;
|
|
28
|
+
#ai;
|
|
29
|
+
constructor(storage, key, ai) {
|
|
7
30
|
this.#storage = storage;
|
|
31
|
+
this.#key = key;
|
|
32
|
+
this.#ai = ai;
|
|
33
|
+
}
|
|
34
|
+
/** Select a customer's Storage by Project and stable external ID. */
|
|
35
|
+
static async forRemoteCustomer(options) {
|
|
36
|
+
try {
|
|
37
|
+
const bindings = await loadAddon().RemoteBindingsHandle.forCustomer(options.project, options.externalId, options.token, options.apiBaseUrl);
|
|
38
|
+
return Bindings.fromRemoteHandle(bindings);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
throw unwrapNapiError(error);
|
|
41
|
+
}
|
|
8
42
|
}
|
|
9
43
|
/** Discover the deployment's manager and prepare remote Storage bindings. */
|
|
10
44
|
static async forRemoteDeployment(options) {
|
|
11
45
|
try {
|
|
12
46
|
const bindings = await loadAddon().RemoteBindingsHandle.forDeployment(options.deploymentId, options.token, options.apiBaseUrl);
|
|
13
|
-
return
|
|
47
|
+
return Bindings.fromRemoteHandle(bindings);
|
|
14
48
|
} catch (error) {
|
|
15
49
|
throw unwrapNapiError(error);
|
|
16
50
|
}
|
|
17
51
|
}
|
|
52
|
+
static fromRemoteHandle(bindings) {
|
|
53
|
+
return new Bindings(createRemoteStorageFactory(bindings), createRemoteKeyFactory(bindings), async () => {
|
|
54
|
+
const lease = await bindings.ai();
|
|
55
|
+
return {
|
|
56
|
+
resourceId: lease.resourceId,
|
|
57
|
+
binding: aiBindingSchema.parse(JSON.parse(lease.bindingJson)),
|
|
58
|
+
clientConfig: remoteClientConfigSchema.parse(JSON.parse(lease.clientConfigJson)),
|
|
59
|
+
expiresAt: datetime({ offset: true }).transform((value) => new Date(value)).parse(lease.expiresAt)
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
}
|
|
18
63
|
/** Resolve a remote Storage binding by resource name. */
|
|
19
64
|
storage(name) {
|
|
20
65
|
return this.#storage(name);
|
|
21
66
|
}
|
|
67
|
+
/** Resolve a remote Key binding by resource name. */
|
|
68
|
+
key(name) {
|
|
69
|
+
return this.#key(name);
|
|
70
|
+
}
|
|
71
|
+
/** Resolve the deployment's unique managed AI binding. */
|
|
72
|
+
ai() {
|
|
73
|
+
return this.#ai();
|
|
74
|
+
}
|
|
22
75
|
};
|
|
23
76
|
//#endregion
|
|
24
77
|
//#region src/index.ts
|
|
@@ -35,6 +88,8 @@ var Bindings = class Bindings {
|
|
|
35
88
|
const factories = createFactories(loadAddon);
|
|
36
89
|
/** Resolve the storage binding named `name`. */
|
|
37
90
|
const storage = factories.storage;
|
|
91
|
+
/** Resolve the provider-backed key binding named `name`. */
|
|
92
|
+
const key = factories.key;
|
|
38
93
|
/** Resolve the key-value binding named `name`. */
|
|
39
94
|
const kv = factories.kv;
|
|
40
95
|
/** Resolve the queue binding named `name`. */
|
|
@@ -46,4 +101,4 @@ const container = factories.container;
|
|
|
46
101
|
/** Resolve the Postgres binding named `name`. */
|
|
47
102
|
const postgres = factories.postgres;
|
|
48
103
|
//#endregion
|
|
49
|
-
export { AlienError, BindingNotConfiguredError, BindingNotFoundError, Bindings, InvalidPostgresTlsConfigError, UnknownPostgresSslModeError, container, defineError, kv, postgres, queue, storage, vault };
|
|
104
|
+
export { AlienError, BindingNotConfiguredError, BindingNotFoundError, Bindings, InvalidPostgresTlsConfigError, UnknownPostgresSslModeError, container, defineError, key, kv, postgres, queue, storage, vault };
|
package/dist/loader.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ export interface RawStorageHandle {
|
|
|
72
72
|
copy(from: string, to: string): Promise<void>;
|
|
73
73
|
signedUrl(method: string, path: string, expiresInSecs: number): Promise<RawPresignedRequest>;
|
|
74
74
|
}
|
|
75
|
+
export interface RawKeyHandle {
|
|
76
|
+
encrypt(plaintext: Buffer, context?: Record<string, string> | null): Promise<Buffer>;
|
|
77
|
+
decrypt(ciphertext: Buffer, context?: Record<string, string> | null): Promise<Buffer>;
|
|
78
|
+
}
|
|
75
79
|
/** Raw napi remote Storage v0 handle. */
|
|
76
80
|
export interface RawRemoteStorageHandle {
|
|
77
81
|
get(path: string): Promise<StorageGetResult>;
|
|
@@ -80,6 +84,12 @@ export interface RawRemoteStorageHandle {
|
|
|
80
84
|
list(prefix?: string | null): Promise<RawObjectMeta[]>;
|
|
81
85
|
head(path: string): Promise<StorageHeadResult>;
|
|
82
86
|
}
|
|
87
|
+
export interface RawRemoteAiLease {
|
|
88
|
+
resourceId: string;
|
|
89
|
+
bindingJson: string;
|
|
90
|
+
clientConfigJson: string;
|
|
91
|
+
expiresAt: string;
|
|
92
|
+
}
|
|
83
93
|
/** Raw napi key-value handle. */
|
|
84
94
|
export interface RawKvHandle {
|
|
85
95
|
get(key: string): Promise<RawKvItem | null>;
|
|
@@ -133,15 +143,18 @@ export interface RawVaultHandle {
|
|
|
133
143
|
/** Raw napi bindings entry point. Construction validates the environment. */
|
|
134
144
|
export interface RawBindingsHandle {
|
|
135
145
|
storage(name: string): Promise<RawStorageHandle>;
|
|
146
|
+
key(name: string): Promise<RawKeyHandle>;
|
|
136
147
|
kv(name: string): Promise<RawKvHandle>;
|
|
137
148
|
queue(name: string): Promise<RawQueueHandle>;
|
|
138
149
|
vault(name: string): Promise<RawVaultHandle>;
|
|
139
150
|
container(name: string): Promise<RawContainerHandle>;
|
|
140
151
|
postgres(name: string): Promise<RawPostgresHandle>;
|
|
141
152
|
}
|
|
142
|
-
/** Raw napi remote bindings entry point.
|
|
153
|
+
/** Raw napi remote bindings entry point. */
|
|
143
154
|
export interface RawRemoteBindingsHandle {
|
|
144
155
|
storage(name: string): Promise<RawRemoteStorageHandle>;
|
|
156
|
+
key(name: string): Promise<RawKeyHandle>;
|
|
157
|
+
ai(): Promise<RawRemoteAiLease>;
|
|
145
158
|
}
|
|
146
159
|
/** Native environment-backed bindings class. */
|
|
147
160
|
export interface RawBindingsHandleConstructor {
|
|
@@ -149,6 +162,7 @@ export interface RawBindingsHandleConstructor {
|
|
|
149
162
|
}
|
|
150
163
|
/** Native remote bindings class. */
|
|
151
164
|
export interface RawRemoteBindingsHandleConstructor {
|
|
165
|
+
forCustomer(project: string, externalId: string, token: string, apiBaseUrl?: string): Promise<RawRemoteBindingsHandle>;
|
|
152
166
|
forDeployment(deploymentId: string, token: string, apiBaseUrl?: string): Promise<RawRemoteBindingsHandle>;
|
|
153
167
|
}
|
|
154
168
|
/** The complete napi addon module surface consumed by the wrapper. */
|
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAMH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,YAAY,CAAA;AAInB,0BAA0B;AAC1B,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,4BAA4B;AAC5B,MAAM,WAAW,aAAa;IAC5B,KAAK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