@hydranium/protocol 1.0.0-next.11 → 1.0.0-next.112

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 (132) hide show
  1. package/README.md +35 -1
  2. package/lib/client/data-connection.d.ts +152 -0
  3. package/lib/client/data-connection.d.ts.map +1 -0
  4. package/lib/client/data-connection.js +214 -0
  5. package/lib/client/data-connection.js.map +1 -0
  6. package/lib/client/data-events.d.ts +9 -1
  7. package/lib/client/data-events.d.ts.map +1 -1
  8. package/lib/client/data-events.js +14 -0
  9. package/lib/client/data-events.js.map +1 -1
  10. package/lib/client/data-port.d.ts +17 -22
  11. package/lib/client/data-port.d.ts.map +1 -1
  12. package/lib/client/data-session.d.ts +154 -76
  13. package/lib/client/data-session.d.ts.map +1 -1
  14. package/lib/client/data-session.js +194 -109
  15. package/lib/client/data-session.js.map +1 -1
  16. package/lib/client/index.d.ts +10 -7
  17. package/lib/client/index.d.ts.map +1 -1
  18. package/lib/client/index.js +10 -7
  19. package/lib/client/index.js.map +1 -1
  20. package/lib/client/message-relay.d.ts +8 -2
  21. package/lib/client/message-relay.d.ts.map +1 -1
  22. package/lib/client/message-relay.js +10 -4
  23. package/lib/client/message-relay.js.map +1 -1
  24. package/lib/client/rpc-connection.d.ts +143 -0
  25. package/lib/client/rpc-connection.d.ts.map +1 -0
  26. package/lib/client/rpc-connection.js +171 -0
  27. package/lib/client/rpc-connection.js.map +1 -0
  28. package/lib/client-ids.d.ts +41 -0
  29. package/lib/client-ids.d.ts.map +1 -0
  30. package/lib/client-ids.js +44 -0
  31. package/lib/client-ids.js.map +1 -0
  32. package/lib/data/data-protocol-methods.d.ts +2 -2
  33. package/lib/data/data-protocol-methods.d.ts.map +1 -1
  34. package/lib/data/data-protocol-methods.js +6 -1
  35. package/lib/data/data-protocol-methods.js.map +1 -1
  36. package/lib/data/data-server-protocol.d.ts +35 -2
  37. package/lib/data/data-server-protocol.d.ts.map +1 -1
  38. package/lib/data/events.d.ts +70 -3
  39. package/lib/data/events.d.ts.map +1 -1
  40. package/lib/errors.d.ts +28 -11
  41. package/lib/errors.d.ts.map +1 -1
  42. package/lib/errors.js +35 -17
  43. package/lib/errors.js.map +1 -1
  44. package/lib/index.d.ts +2 -0
  45. package/lib/index.d.ts.map +1 -1
  46. package/lib/index.js +5 -0
  47. package/lib/index.js.map +1 -1
  48. package/lib/latency-collector.d.ts +8 -4
  49. package/lib/latency-collector.d.ts.map +1 -1
  50. package/lib/latency-collector.js.map +1 -1
  51. package/lib/messages/index.d.ts +28 -0
  52. package/lib/messages/index.d.ts.map +1 -0
  53. package/lib/messages/index.js +52 -0
  54. package/lib/messages/index.js.map +1 -0
  55. package/lib/messages/primitives.d.ts +174 -0
  56. package/lib/messages/primitives.d.ts.map +1 -0
  57. package/lib/messages/primitives.js +138 -0
  58. package/lib/messages/primitives.js.map +1 -0
  59. package/lib/model-server.d.ts +31 -12
  60. package/lib/model-server.d.ts.map +1 -1
  61. package/lib/model-server.js +4 -2
  62. package/lib/model-server.js.map +1 -1
  63. package/lib/model-service/args.d.ts +14 -13
  64. package/lib/model-service/args.d.ts.map +1 -1
  65. package/lib/model-service/based-on.d.ts +55 -0
  66. package/lib/model-service/based-on.d.ts.map +1 -0
  67. package/lib/model-service/based-on.js +34 -0
  68. package/lib/model-service/based-on.js.map +1 -0
  69. package/lib/model-service/index.d.ts +1 -0
  70. package/lib/model-service/index.d.ts.map +1 -1
  71. package/lib/model-service/index.js +1 -0
  72. package/lib/model-service/index.js.map +1 -1
  73. package/lib/profile-session.d.ts +8 -4
  74. package/lib/profile-session.d.ts.map +1 -1
  75. package/lib/profile-session.js.map +1 -1
  76. package/lib/rpc/bind-rpc-methods.d.ts +29 -3
  77. package/lib/rpc/bind-rpc-methods.d.ts.map +1 -1
  78. package/lib/rpc/bind-rpc-methods.js +22 -3
  79. package/lib/rpc/bind-rpc-methods.js.map +1 -1
  80. package/lib/rpc/create-rpc-proxy.d.ts +7 -0
  81. package/lib/rpc/create-rpc-proxy.d.ts.map +1 -1
  82. package/lib/rpc/create-rpc-proxy.js +6 -1
  83. package/lib/rpc/create-rpc-proxy.js.map +1 -1
  84. package/lib/testing/catalogue-audit.d.ts +80 -0
  85. package/lib/testing/catalogue-audit.d.ts.map +1 -0
  86. package/lib/testing/catalogue-audit.js +94 -0
  87. package/lib/testing/catalogue-audit.js.map +1 -0
  88. package/lib/testing/data-doubles.d.ts +11 -12
  89. package/lib/testing/data-doubles.d.ts.map +1 -1
  90. package/lib/testing/data-doubles.js +14 -5
  91. package/lib/testing/data-doubles.js.map +1 -1
  92. package/lib/testing/index.d.ts +1 -0
  93. package/lib/testing/index.d.ts.map +1 -1
  94. package/lib/testing/index.js +4 -1
  95. package/lib/testing/index.js.map +1 -1
  96. package/lib/transfer-diagnostic.d.ts +33 -0
  97. package/lib/transfer-diagnostic.d.ts.map +1 -1
  98. package/lib/transfer-diagnostic.js +23 -0
  99. package/lib/transfer-diagnostic.js.map +1 -1
  100. package/lib/transfer-document.d.ts +15 -5
  101. package/lib/transfer-document.d.ts.map +1 -1
  102. package/lib/transfer-document.js +14 -1
  103. package/lib/transfer-document.js.map +1 -1
  104. package/package.json +11 -2
  105. package/src/client/data-connection.ts +266 -0
  106. package/src/client/data-events.ts +24 -1
  107. package/src/client/data-port.ts +17 -23
  108. package/src/client/data-session.ts +279 -131
  109. package/src/client/index.ts +10 -7
  110. package/src/client/message-relay.ts +28 -6
  111. package/src/client/rpc-connection.ts +235 -0
  112. package/src/client-ids.ts +45 -0
  113. package/src/data/data-protocol-methods.ts +6 -3
  114. package/src/data/data-server-protocol.ts +46 -2
  115. package/src/data/events.ts +74 -3
  116. package/src/errors.ts +41 -19
  117. package/src/index.ts +5 -0
  118. package/src/latency-collector.ts +8 -3
  119. package/src/messages/index.ts +35 -0
  120. package/src/messages/primitives.ts +250 -0
  121. package/src/model-server.ts +34 -13
  122. package/src/model-service/args.ts +15 -13
  123. package/src/model-service/based-on.ts +60 -0
  124. package/src/model-service/index.ts +1 -0
  125. package/src/profile-session.ts +9 -4
  126. package/src/rpc/bind-rpc-methods.ts +49 -4
  127. package/src/rpc/create-rpc-proxy.ts +14 -1
  128. package/src/testing/catalogue-audit.ts +111 -0
  129. package/src/testing/data-doubles.ts +33 -17
  130. package/src/testing/index.ts +4 -1
  131. package/src/transfer-diagnostic.ts +40 -0
  132. package/src/transfer-document.ts +22 -6
@@ -6,84 +6,121 @@
6
6
  *
7
7
  * SPDX-License-Identifier: MIT
8
8
  ********************************************************************************/
9
- import type { MessageConnection } from 'vscode-jsonrpc';
10
- import { type DataClientProtocol, type DataServerProtocol } from '../data';
11
- import { type RpcProxy } from '../rpc';
9
+ import type { DataServerProtocol, DiagnosticOf } from '../data';
10
+ import type { RpcProxy } from '../rpc';
12
11
  import type { TransferDocument } from '../transfer-document';
13
12
  import type { TransferElement } from '../transfer-element';
14
- import type { DataPort } from './data-port';
15
- /** Options for {@link DataSession}. */
16
- export interface DataSessionOptions {
13
+ /**
14
+ * What one of `TServer`'s document methods takes, minus the `clientId` a
15
+ * {@link DataSession} stamps itself.
16
+ *
17
+ * Read off the SERVER's signature, not off the framework's own arg type: an
18
+ * adopter server widens these, and a wrapper declared against the narrow
19
+ * shape rejects the extra field on a fresh object literal, so that call
20
+ * cannot go through a session at all.
21
+ */
22
+ export type DataSessionArgs<TMethod extends (args: never) => unknown> = Omit<Parameters<TMethod>[0], 'clientId'>;
23
+ /** Open a document through a session; the session supplies `clientId`. */
24
+ export type DataSessionOpenArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['openModelDocument']>;
25
+ /** Close a document through a session; the session supplies `clientId`. */
26
+ export type DataSessionCloseArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['closeModelDocument']>;
27
+ /** Update a document through a session; the session supplies `clientId`. */
28
+ export type DataSessionUpdateArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['updateModelDocument']>;
29
+ /** Persist a document through a session; the session supplies `clientId`. */
30
+ export type DataSessionSaveArgs<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = DataSessionArgs<TServer['saveModelDocument']>;
31
+ /** The document a session hands back, carrying its server's diagnostic shape. */
32
+ export type DataSessionDocument<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> = TransferDocument<TTransfer, DiagnosticOf<TServer>>;
33
+ /**
34
+ * The {@link DataSession.openDocument} calls running against one URI, and
35
+ * whether any of them has taken a server hold that no open has claimed yet.
36
+ *
37
+ * One record per URI rather than per call, because the hold is per
38
+ * `(uri, clientId)`: the server has one, however many opens are in flight, so
39
+ * one flag is the accurate model of it.
40
+ */
41
+ export interface OpeningDocument {
42
+ /** Opens still running for this URI. The last one out answers for the hold. */
43
+ inFlight: number;
44
+ /** An open succeeded, and no open has since claimed the hold via `openUris`. */
45
+ holdTaken: boolean;
46
+ }
47
+ /**
48
+ * What a {@link DataSession} needs from the connection that minted it.
49
+ *
50
+ * Narrower than the connection itself so the dependency points one way:
51
+ * `DataConnection` constructs sessions, and nothing here imports it back.
52
+ */
53
+ export interface DataSessionHost<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>>> {
54
+ connected(): Promise<RpcProxy<TServer>>;
55
+ releaseSession(session: DataSession<TTransfer, TServer>): void;
17
56
  /**
18
- * Wire namespace the server is addressed under. Defaults to the
19
- * framework's {@link DATA_SERVER_WIRE_PREFIX}, which is what an unmodified
20
- * `DataServer` binds. Override only alongside the server's own
21
- * `methodNamespace` option — a mismatch turns every request into
22
- * "Unhandled method" rather than failing at wire-up.
57
+ * Take over a `(uri, clientId)` hold a session could not release, so it is
58
+ * retried while the wire is still up.
59
+ *
60
+ * A session that has been disposed has already drained and will not read its
61
+ * own tracking again, so a close it issues and the server refuses leaves the
62
+ * hold with nobody to answer for it. The host outlives every session it
63
+ * mints, which is what makes it the one thing that still can.
64
+ *
65
+ * Optional so a host predating it keeps working; without it such a hold falls
66
+ * to the server's connection-close cleanup, which on a shared connection is
67
+ * as long as every other participant's session.
23
68
  */
24
- readonly methodNamespace?: string;
25
- }
26
- /** One connection generation: its connection, its proxy, and its readiness. */
27
- interface Generation<TTransfer extends TransferElement> {
28
- readonly connection: Promise<MessageConnection>;
29
- readonly server: RpcProxy<DataServerProtocol<TTransfer>>;
30
- /** Set on first use; the shared readiness gate for this generation. */
31
- ready?: Promise<void>;
69
+ orphanHold?(uri: string, clientId: string): void;
32
70
  }
33
71
  /**
34
- * The host-invariant half of talking to the data head: everything above
35
- * {@link DataPort} that would otherwise be re-derived by every host
36
- * adapter.
72
+ * One participant on a data connection: a properties panel, a tree, a
73
+ * form editor.
37
74
  *
38
- * Three jobs, and deliberately no fourth:
75
+ * The server keys every hold and watch per `(uri, clientId)`, so the identity
76
+ * belongs to the participant rather than to the wire — several sessions share
77
+ * one connection, and two participants forced to share one identity cannot
78
+ * distinguish each other's writes from their own echoes.
39
79
  *
40
- * 1. **Build the typed proxy** over the port's connection, with the framework's
41
- * wire prefix and its drift-proof client-method allowlist.
42
- * 2. **Own the readiness gate** — `waitForReady` once per connection, shared
43
- * across concurrent callers. A socket client can connect before the
44
- * workspace walk finishes, and an early request is then answered correctly
45
- * from an empty registry, which reads as a broken project tier rather than
46
- * as a race.
47
- * 3. **Own the reconnect policy**, by dropping its connection generation when
48
- * the port disposes and building a fresh one on the next request.
80
+ * Every document operation stamps {@link clientId} itself. A caller that
81
+ * passed its own could pass another participant's, and the server would
82
+ * attribute the write and release the hold accordingly.
49
83
  *
50
- * It does **not** wrap the protocol methods; callers reach them through
51
- * {@link connected}. The one exception is {@link openDocument}, which exists
52
- * because the open/watch *order* is silently wrong the other way round — see
53
- * its own doc.
84
+ * Generic over the transfer root so this file names no grammar.
54
85
  *
55
- * Generic over the transfer root so this file names no grammar. An adopter
56
- * binds the concrete root (or the union of them, for a multi-grammar head) at
57
- * its own edge.
86
+ * `TServer` is bound to a server answering with ITS OWN diagnostic shape, read
87
+ * back off the parameter being bound. Simplifying that to
88
+ * `DataServerProtocol<TTransfer>` compiles and costs the wrappers their
89
+ * return type: every call through `TServer` would resolve against that looser
90
+ * bound, so an adopter's diagnostics would come back as the framework's and
91
+ * the document would have to be cast on the way out.
58
92
  */
59
- export declare class DataSession<TTransfer extends TransferElement> {
60
- protected readonly port: DataPort;
61
- protected readonly client: DataClientProtocol<TTransfer>;
62
- protected readonly methodNamespace: string;
63
- /** The current generation, or `undefined` before the first request / after a teardown. */
64
- protected generation?: Generation<TTransfer>;
65
- protected disposed: boolean;
66
- protected readonly portDisposeListener: {
67
- dispose(): void;
68
- };
69
- constructor(port: DataPort, client: DataClientProtocol<TTransfer>, options?: DataSessionOptions);
70
- /** The identity every request is made under — the port's, not a second one. */
71
- get clientId(): string;
93
+ export declare class DataSession<TTransfer extends TransferElement, TServer extends DataServerProtocol<TTransfer, DiagnosticOf<TServer>> = DataServerProtocol<TTransfer>> {
94
+ readonly clientId: string;
95
+ protected readonly host: DataSessionHost<TTransfer, TServer>;
96
+ /** URIs this session holds open, so {@link dispose} can release exactly those. */
97
+ protected readonly openUris: Set<string>;
72
98
  /**
73
- * The connected, READY server proxy.
74
- *
75
- * Returns the proxy rather than `void` on purpose. A reconnect replaces the
76
- * proxy, so a caller that cached one from an earlier call would go on
77
- * addressing a dead connection with no error — handing it back per call
78
- * makes the stale reference unrepresentable.
99
+ * The in-flight {@link openDocument} group per URI, while one is running.
79
100
  *
80
- * Concurrent callers share one readiness promise, so `waitForReady` is
81
- * awaited once per generation and not once per caller.
101
+ * A hold is one per `(uri, clientId)`, and {@link openUris} is filled only
102
+ * once an open has fully returned — so overlapping opens of one URI all read
103
+ * it as unheld and all believe the hold is theirs to release. Tracking the
104
+ * group lets the last of them answer for it once, knowing what the rest did.
82
105
  */
83
- connected(): Promise<RpcProxy<DataServerProtocol<TTransfer>>>;
106
+ protected readonly openingUris: Map<string, OpeningDocument>;
107
+ protected disposed: boolean;
108
+ /**
109
+ * Disposed through {@link detach} rather than {@link dispose}, so nothing may
110
+ * be sent. Folding it into {@link disposed} costs {@link openDocument} the
111
+ * distinction, and its close would then go out on a detached session.
112
+ */
113
+ protected detached: boolean;
114
+ constructor(clientId: string, host: DataSessionHost<TTransfer, TServer>);
115
+ /**
116
+ * The connected, READY server proxy, for protocol methods this session does
117
+ * not wrap — the ones carrying no `clientId`, so no identity can be got
118
+ * wrong through them.
119
+ */
120
+ connected(): Promise<RpcProxy<TServer>>;
84
121
  /**
85
- * Open `uri` for editing and start watching it, in that order, returning
86
- * the opened snapshot.
122
+ * Open `args.uri` for editing and start watching it, in that order,
123
+ * returning the opened snapshot.
87
124
  *
88
125
  * **The order is the whole reason this method exists.**
89
126
  * `watchModelDocument` baselines its dedup fingerprint from the *current*
@@ -98,32 +135,73 @@ export declare class DataSession<TTransfer extends TransferElement> {
98
135
  * valid: `open` settles at the integrity landmark, not at validation.
99
136
  * Validity arrives asynchronously on `onDocumentUpdated`, or synchronously
100
137
  * from `getModelDocument({ includeDiagnostics: true })`.
138
+ *
139
+ * A dispose landing between the two awaits is handled here rather than in
140
+ * {@link dispose}, which cannot release a hold that does not exist yet: it
141
+ * reads {@link openUris}, and this method fills it only once both calls have
142
+ * returned. Left to `dispose`, the hold and its watch outlive the participant
143
+ * and go only when the connection closes.
144
+ *
145
+ * A watch that REJECTS is the same problem arriving by a different door: the
146
+ * open already took a hold, and the caller sees only a failed open, so
147
+ * nothing on its side will ever issue the close.
148
+ *
149
+ * Which call releases it is decided by {@link finishOpening} rather than by
150
+ * the one that failed, because a hold is per `(uri, clientId)` and any number
151
+ * of this session's opens share it. A failing open that closed on its own
152
+ * behalf would revoke a peer's; one that deferred to a peer would leak the
153
+ * hold whenever that peer fails at its OWN open, having then taken no hold to
154
+ * roll back and having no rollback path to run. Making the last open for the
155
+ * URI answer for it is the only rule that holds in both directions.
101
156
  */
102
- openDocument(uri: string): Promise<TransferDocument<TTransfer>>;
157
+ openDocument(args: DataSessionOpenArgs<TTransfer, TServer>): Promise<DataSessionDocument<TTransfer, TServer>>;
158
+ /** Join (or start) the in-flight group for `uri`, counting this call into it. */
159
+ protected beginOpening(uri: string): OpeningDocument;
103
160
  /**
104
- * Close `uri`. The server unwatches implicitly, so this is the dual of
161
+ * Count this call out of the in-flight group for `uri` and, if it was the
162
+ * last one, answer for whatever hold the group took.
163
+ *
164
+ * The last call is the only one that can see the group's whole outcome, which
165
+ * is what makes it the right one to decide. A hold that some open took and no
166
+ * open claimed — `openUris` is the claim — belongs to nobody, and closing it
167
+ * here is the only release that will ever be issued for it.
168
+ */
169
+ protected finishOpening(uri: string, server: RpcProxy<TServer>): Promise<void>;
170
+ /**
171
+ * Close `args.uri`. The server unwatches implicitly, so this is the dual of
105
172
  * {@link openDocument} and needs no separate unwatch.
106
173
  */
107
- closeDocument(uri: string): Promise<void>;
174
+ closeDocument(args: DataSessionCloseArgs<TTransfer, TServer>): Promise<void>;
175
+ /** Write `args.model` back as this session. */
176
+ updateDocument(args: DataSessionUpdateArgs<TTransfer, TServer>): Promise<DataSessionDocument<TTransfer, TServer>>;
177
+ /** Persist `args.model` to disk as this session. */
178
+ saveDocument(args: DataSessionSaveArgs<TTransfer, TServer>): Promise<DataSessionDocument<TTransfer, TServer>>;
108
179
  /**
109
- * Whether `event.sourceClientId` identifies this session's own write.
180
+ * Whether `sourceClientId` identifies this session's own write.
110
181
  *
111
182
  * Every watcher needs this and the check is one comparison, so getting it
112
183
  * wrong is cheap to do and expensive to find: an unfiltered echo looks
113
184
  * exactly like a concurrent third-party edit.
114
185
  */
115
186
  isOwnEcho(sourceClientId: string): boolean;
116
- /** Tear down the current connection and stop tracking the port. Idempotent. */
187
+ /**
188
+ * Release this session's holds and detach it from the connection.
189
+ * Idempotent, and leaves the connection usable by its other sessions.
190
+ *
191
+ * The closes are fired without being awaited, because a `Disposable` cannot
192
+ * be: a host disposing a widget has nowhere to put the promise. A close
193
+ * that fails is no worse than the leak this exists to prevent, so the
194
+ * rejection is swallowed rather than surfaced from a teardown.
195
+ */
117
196
  dispose(): void;
118
- /** The live generation, building one if there is none. */
119
- protected currentGeneration(): Generation<TTransfer>;
120
- /** Await the connection and the server's startup gate for one generation. */
121
- protected awaitReady(generation: Generation<TTransfer>): Promise<void>;
122
197
  /**
123
- * Discard the current generation, disposing its connection if it opened.
124
- * The next {@link connected} builds a fresh one.
198
+ * Come off the connection because it is going away.
199
+ *
200
+ * Sends no close, unlike {@link dispose}: the server releases every hold on
201
+ * a connection it sees close, and the close would travel over the very
202
+ * connection being disposed.
125
203
  */
126
- protected dropGeneration(): void;
204
+ detach(): void;
205
+ protected assertLive(): void;
127
206
  }
128
- export {};
129
207
  //# sourceMappingURL=data-session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-session.d.ts","sourceRoot":"","sources":["../../src/client/data-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAyD,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClI,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,QAAQ,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IAChC;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,+EAA+E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