@matter-server/ws-client 0.2.0-alpha.0-00000000-000000000

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.
Files changed (40) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +165 -0
  3. package/dist/esm/client.d.ts +67 -0
  4. package/dist/esm/client.d.ts.map +1 -0
  5. package/dist/esm/client.js +286 -0
  6. package/dist/esm/client.js.map +6 -0
  7. package/dist/esm/connection.d.ts +40 -0
  8. package/dist/esm/connection.d.ts.map +1 -0
  9. package/dist/esm/connection.js +75 -0
  10. package/dist/esm/connection.js.map +6 -0
  11. package/dist/esm/exceptions.d.ts +10 -0
  12. package/dist/esm/exceptions.d.ts.map +1 -0
  13. package/dist/esm/exceptions.js +14 -0
  14. package/dist/esm/exceptions.js.map +6 -0
  15. package/dist/esm/index.d.ts +15 -0
  16. package/dist/esm/index.d.ts.map +1 -0
  17. package/dist/esm/index.js +12 -0
  18. package/dist/esm/index.js.map +6 -0
  19. package/dist/esm/json-utils.d.ts +19 -0
  20. package/dist/esm/json-utils.d.ts.map +1 -0
  21. package/dist/esm/json-utils.js +50 -0
  22. package/dist/esm/json-utils.js.map +6 -0
  23. package/dist/esm/models/model.d.ts +379 -0
  24. package/dist/esm/models/model.d.ts.map +1 -0
  25. package/dist/esm/models/model.js +15 -0
  26. package/dist/esm/models/model.js.map +6 -0
  27. package/dist/esm/models/node.d.ts +40 -0
  28. package/dist/esm/models/node.d.ts.map +1 -0
  29. package/dist/esm/models/node.js +59 -0
  30. package/dist/esm/models/node.js.map +6 -0
  31. package/dist/esm/package.json +3 -0
  32. package/package.json +38 -0
  33. package/src/client.ts +405 -0
  34. package/src/connection.ts +103 -0
  35. package/src/exceptions.ts +9 -0
  36. package/src/index.ts +25 -0
  37. package/src/json-utils.ts +75 -0
  38. package/src/models/model.ts +344 -0
  39. package/src/models/node.ts +75 -0
  40. package/src/tsconfig.json +7 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025-2026 Open Home Foundation
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,165 @@
1
+ # Open Home Foundation Matter(.js) Server - JavaScript WebSocket Client
2
+
3
+ ![Matter Logo](https://github.com/matter-js/matterjs-server/raw/main/docs/matter_logo.svg)
4
+
5
+ This package provides a JavaScript WebSocket client library for connecting to the [OHF Matter Server](https://github.com/matter-js/matterjs-server). It can be used in both browser and Node.js environments.
6
+
7
+ The Open Home Foundation Matter Server software component is a project of the [Open Home Foundation](https://www.openhomefoundation.org/).
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install @matter-server/ws-client
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ### Browser
18
+
19
+ In a browser environment, the client uses the native WebSocket API:
20
+
21
+ ```typescript
22
+ import { MatterClient } from "@matter-server/ws-client";
23
+
24
+ const client = new MatterClient("ws://localhost:5580/ws");
25
+
26
+ // Start listening for events and load initial node data
27
+ await client.startListening();
28
+
29
+ // Access connected nodes
30
+ console.log("Connected nodes:", client.nodes);
31
+
32
+ // Listen for node changes
33
+ client.addEventListener("nodes_changed", () => {
34
+ console.log("Nodes updated:", client.nodes);
35
+ });
36
+
37
+ // Commission a new device
38
+ const node = await client.commissionWithCode("MT:Y3.5UNQO100KA0648G00", false);
39
+ console.log("Commissioned node:", node.node_id);
40
+
41
+ // Send a device command (e.g., toggle a light)
42
+ await client.deviceCommand(node.node_id, 1, 6, "toggle");
43
+
44
+ // Disconnect when done
45
+ client.disconnect();
46
+ ```
47
+
48
+ ### Node.js
49
+
50
+ For Node.js, you need to provide a WebSocket factory using the `ws` package:
51
+
52
+ ```typescript
53
+ import { MatterClient } from "@matter-server/ws-client";
54
+ import WebSocket from "ws";
55
+
56
+ const client = new MatterClient(
57
+ "ws://localhost:5580/ws",
58
+ (url) => new WebSocket(url) as unknown as WebSocketLike
59
+ );
60
+
61
+ await client.startListening();
62
+ console.log("Server info:", client.serverInfo);
63
+ console.log("Connected nodes:", Object.keys(client.nodes).length);
64
+ ```
65
+
66
+ ## API Reference
67
+
68
+ ### MatterClient
69
+
70
+ The main client class for interacting with the Matter server.
71
+
72
+ #### Constructor
73
+
74
+ ```typescript
75
+ new MatterClient(url: string, wsFactory?: WebSocketFactory)
76
+ ```
77
+
78
+ - `url`: WebSocket URL to connect to (e.g., `ws://localhost:5580/ws`)
79
+ - `wsFactory`: Optional factory function to create WebSocket instances (required for Node.js)
80
+
81
+ #### Properties
82
+
83
+ - `connection`: The underlying `Connection` instance
84
+ - `nodes`: Record of all Matter nodes indexed by node ID
85
+ - `serverInfo`: Server information (fabric ID, SDK version, etc.)
86
+ - `serverBaseAddress`: The base address extracted from the URL
87
+ - `isProduction`: Whether connected to a production server (for UI purposes)
88
+
89
+ #### Methods
90
+
91
+ | Method | Description |
92
+ |--------|-------------|
93
+ | `startListening()` | Connect and start receiving events |
94
+ | `disconnect()` | Disconnect from the server |
95
+ | `getNodes(onlyAvailable?)` | Get all nodes (optionally only available ones) |
96
+ | `commissionWithCode(code, networkOnly)` | Commission a new device |
97
+ | `removeNode(nodeId)` | Remove a node from the fabric |
98
+ | `interviewNode(nodeId)` | Re-interview a node |
99
+ | `pingNode(nodeId)` | Ping a node to check availability |
100
+ | `deviceCommand(nodeId, endpoint, cluster, command, payload?)` | Send a command to a device |
101
+ | `readAttribute(nodeId, endpoint, cluster, attribute)` | Read an attribute value |
102
+ | `writeAttribute(nodeId, endpoint, cluster, attribute, value)` | Write an attribute value |
103
+ | `openCommissioningWindow(nodeId)` | Open commissioning window for sharing |
104
+ | `setWifiCredentials(ssid, password)` | Set WiFi credentials for commissioning |
105
+ | `setThreadOperationalDataset(dataset)` | Set Thread dataset for commissioning |
106
+ | `checkNodeUpdate(nodeId)` | Check for firmware updates |
107
+ | `updateNode(nodeId, version)` | Start firmware update |
108
+ | `addEventListener(event, callback)` | Listen for events |
109
+ | `removeEventListener(event, callback)` | Remove event listener |
110
+
111
+ #### Events
112
+
113
+ - `nodes_changed`: Fired when any node is added, updated, or removed
114
+ - `server_info_updated`: Fired when server info changes
115
+ - `connection_lost`: Fired when connection is lost
116
+
117
+ ### Other Exports
118
+
119
+ ```typescript
120
+ import {
121
+ // Core classes
122
+ MatterClient,
123
+ MatterNode,
124
+ Connection,
125
+
126
+ // Exceptions
127
+ MatterError,
128
+ InvalidServerVersion,
129
+
130
+ // Types
131
+ ServerInfoMessage,
132
+ EventMessage,
133
+ MatterNodeData,
134
+ AccessControlEntry,
135
+ BindingTarget,
136
+ CommissionableNodeData,
137
+ MatterSoftwareVersion,
138
+
139
+ // Utilities
140
+ toBigIntAwareJson,
141
+ parseBigIntAwareJson,
142
+
143
+ // WebSocket types
144
+ WebSocketLike,
145
+ WebSocketFactory,
146
+ } from "@matter-server/ws-client";
147
+ ```
148
+
149
+ ## JSON Utilities
150
+
151
+ The package includes utilities for handling JSON serialization with BigInt support (for numbers exceeding JavaScript's MAX_SAFE_INTEGER):
152
+
153
+ ```typescript
154
+ import { toBigIntAwareJson, parseBigIntAwareJson } from "@matter-server/ws-client";
155
+
156
+ // Convert JavaScript object to JSON string with BigInt support
157
+ const jsonStr = toBigIntAwareJson({ nodeId: 12345678901234567890n });
158
+
159
+ // Parse JSON with large numbers converted to BigInt
160
+ const obj = parseBigIntAwareJson('{"nodeId": 12345678901234567890}');
161
+ ```
162
+
163
+ ## More Information
164
+
165
+ Please refer to https://github.com/matter-js/matterjs-server/blob/main/README.md for more information about the OHF Matter Server project.
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025-2026 Open Home Foundation
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { Connection, WebSocketFactory } from "./connection.js";
7
+ import { AccessControlEntry, APICommands, BindingTarget, CommissionableNodeData, CommissioningParameters, EventMessage, MatterFabricData, MatterSoftwareVersion, NodePingResult } from "./models/model.js";
8
+ import { MatterNode } from "./models/node.js";
9
+ export declare class MatterClient {
10
+ url: string;
11
+ connection: Connection;
12
+ nodes: Record<string, MatterNode>;
13
+ serverBaseAddress: string;
14
+ /** Whether this client is connected to a production server (optional, for UI purposes) */
15
+ isProduction: boolean;
16
+ private result_futures;
17
+ private msgId;
18
+ private eventListeners;
19
+ /**
20
+ * Create a new MatterClient.
21
+ * @param url WebSocket URL to connect to
22
+ * @param wsFactory Optional factory function to create WebSocket instances.
23
+ * For Node.js, pass: (url) => new WebSocket(url) from the 'ws' package.
24
+ * For browser, leave undefined to use native WebSocket.
25
+ */
26
+ constructor(url: string, wsFactory?: WebSocketFactory);
27
+ get serverInfo(): import("./models/model.js").ServerInfoMessage;
28
+ addEventListener(event: string, listener: () => void): () => void;
29
+ commissionWithCode(code: string, networkOnly?: boolean): Promise<MatterNode>;
30
+ setWifiCredentials(ssid: string, credentials: string): Promise<void>;
31
+ setThreadOperationalDataset(dataset: string): Promise<void>;
32
+ openCommissioningWindow(nodeId: number | bigint, timeout?: number, iteration?: number, option?: number, discriminator?: number): Promise<CommissioningParameters>;
33
+ discoverCommissionableNodes(): Promise<CommissionableNodeData[]>;
34
+ getMatterFabrics(nodeId: number | bigint): Promise<MatterFabricData[]>;
35
+ removeMatterFabric(nodeId: number | bigint, fabricIndex: number): Promise<void>;
36
+ pingNode(nodeId: number | bigint, attempts?: number): Promise<NodePingResult>;
37
+ getNodeIPAddresses(nodeId: number | bigint, preferCache?: boolean, scoped?: boolean): Promise<string[]>;
38
+ removeNode(nodeId: number | bigint): Promise<void>;
39
+ interviewNode(nodeId: number | bigint): Promise<void>;
40
+ importTestNode(dump: string): Promise<void>;
41
+ readAttribute(nodeId: number | bigint, attributePath: string | string[]): Promise<Record<string, unknown>>;
42
+ writeAttribute(nodeId: number | bigint, attributePath: string, value: unknown): Promise<unknown>;
43
+ checkNodeUpdate(nodeId: number | bigint): Promise<MatterSoftwareVersion | null>;
44
+ updateNode(nodeId: number | bigint, softwareVersion: number | string): Promise<void>;
45
+ setACLEntry(nodeId: number | bigint, entry: AccessControlEntry[]): Promise<import("./models/model.js").AttributeWriteResult[] | null>;
46
+ setNodeBinding(nodeId: number | bigint, endpoint: number, bindings: BindingTarget[]): Promise<import("./models/model.js").AttributeWriteResult[] | null>;
47
+ deviceCommand(nodeId: number | bigint, endpointId: number, clusterId: number, commandName: string, payload?: Record<string, unknown>): Promise<unknown>;
48
+ getNodes(onlyAvailable?: boolean): Promise<MatterNode[]>;
49
+ getNode(nodeId: number | bigint): Promise<MatterNode>;
50
+ getVendorNames(filterVendors?: number[]): Promise<Record<string, string>>;
51
+ fetchServerInfo(): Promise<import("./models/model.js").ServerInfoMessage>;
52
+ setDefaultFabricLabel(label: string | null): Promise<void>;
53
+ sendCommand<T extends keyof APICommands>(command: T, require_schema: number | undefined, args: APICommands[T]["requestArgs"]): Promise<APICommands[T]["response"]>;
54
+ connect(): Promise<void>;
55
+ disconnect(clearStorage?: boolean): void;
56
+ startListening(): Promise<void>;
57
+ private _handleIncomingMessage;
58
+ private _handleEventMessage;
59
+ private fireEvent;
60
+ /**
61
+ * Hook for subclasses to receive raw events.
62
+ * Override this method to intercept all incoming events.
63
+ * @param event The raw event message
64
+ */
65
+ protected onRawEvent(_event: EventMessage): void;
66
+ }
67
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EACH,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EAEvB,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EAEjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C,qBAAa,YAAY;IAoBV,GAAG,EAAE,MAAM;IAnBf,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MA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