@lionweb/delta-protocol-repository-ws 0.7.0-beta.21

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 ADDED
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ ## 0.7.0
4
+
5
+ Initial creation and publication of this package.
6
+
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # The `delta-protocol-repository-ws` package
2
+
3
+ [![license](https://img.shields.io/badge/License-Apache%202.0-green.svg?style=flat)
4
+ ](./LICENSE)
5
+
6
+ An NPM package that can be added to a Node.js/NPM codebase as follows:
7
+
8
+ ```shell
9
+ $ npm add @lionweb/delta-protocol-repository-ws
10
+ ```
11
+
12
+ The TypeScript implementation of a repository that complies with the LionWeb delta protocol – in the form of the `LionWebRepository` class – in this package is ***entirely incomplete***.
13
+ It mainly serves as a way to be able to run and test the TypeScript implementation of the LionWeb client, at least to the extent that a client can send queries and commands and get responses that are somewhat plausible.
14
+ The C# implementation *is* complete and should be used for actual use.
15
+
16
+
17
+ ## Development
18
+
19
+ Build this package from source as follows:
20
+
21
+ ```shell
22
+ npm run build
23
+ ```
24
+
@@ -0,0 +1,6 @@
1
+ import { Command, Event } from "@lionweb/delta-protocol-common";
2
+ /**
3
+ * @return the {@link Command command}, as issued by a client with the given `participationId`, as an {@link Event event}.
4
+ */
5
+ export declare const commandAsEvent: (command: Command, participationId: string) => Event;
6
+ //# sourceMappingURL=command-to-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-to-event.d.ts","sourceRoot":"","sources":["../src/command-to-event.ts"],"names":[],"mappings":"AAiBA,OAAO,EA8BH,OAAO,EAgBP,KAAK,EAiCR,MAAM,gCAAgC,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,EAAE,iBAAiB,MAAM,KAAG,KAyb1E,CAAA"}
@@ -0,0 +1,450 @@
1
+ // Copyright 2025 TRUMPF Laser SE and other contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License")
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ //
15
+ // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
+ // SPDX-License-Identifier: Apache-2.0
17
+ /**
18
+ * @return the {@link Command command}, as issued by a client with the given `participationId`, as an {@link Event event}.
19
+ */
20
+ export const commandAsEvent = (command, participationId) => {
21
+ // TODO make dependent on which participationId the event is sent _to_
22
+ const participation2nextSequenceNumber = {};
23
+ const nextSequenceNumber = () => {
24
+ if (!(participationId in participation2nextSequenceNumber)) {
25
+ participation2nextSequenceNumber[participationId] = -1;
26
+ }
27
+ return ++participation2nextSequenceNumber[participationId];
28
+ };
29
+ const completed = (eventName, partialEvent) => ({
30
+ messageKind: eventName,
31
+ ...partialEvent,
32
+ originCommands: [
33
+ {
34
+ participationId,
35
+ commandId: command.commandId
36
+ }
37
+ ],
38
+ sequenceNumber: nextSequenceNumber(),
39
+ protocolMessages: command.protocolMessages
40
+ });
41
+ const commandAsEvent_ = (command) => {
42
+ switch (command.messageKind) {
43
+ // in order of the specification (§ 6.5):
44
+ case "AddPartition": {
45
+ const { newPartition } = command; // § 6.5.2.1
46
+ return completed("PartitionAdded", {
47
+ newPartition
48
+ });
49
+ }
50
+ case "DeletePartition": {
51
+ const { deletedPartition } = command; // § 6.5.2.2
52
+ return completed("PartitionDeleted", {
53
+ deletedPartition
54
+ });
55
+ }
56
+ case "ChangeClassifier": {
57
+ const { node, newClassifier } = command; // § 6.5.3.1
58
+ return completed("ClassifierChanged", {
59
+ node,
60
+ newClassifier,
61
+ oldClassifier: { language: "???", version: "???", key: "???" }, // TODO get from own model
62
+ });
63
+ }
64
+ case "AddProperty": {
65
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
66
+ const { node, property, newValue } = command; // § 6.5.4.1
67
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
68
+ return completed("PropertyAdded", {
69
+ node,
70
+ property,
71
+ newValue
72
+ });
73
+ }
74
+ case "DeleteProperty": {
75
+ const { node, property } = command; // § 6.5.4.2
76
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
+ return completed("PropertyDeleted", {
78
+ node,
79
+ property,
80
+ oldValue: "???" // TODO get from own model
81
+ });
82
+ }
83
+ case "ChangeProperty": {
84
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
+ const { node, property, newValue } = command; // § 6.5.4.3
86
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
87
+ return completed("PropertyChanged", {
88
+ node,
89
+ property,
90
+ newValue,
91
+ oldValue: "???", // TODO get from own model
92
+ });
93
+ }
94
+ case "AddChild": {
95
+ const { parent, newChild, containment, index } = command; // § 6.5.5.1
96
+ return completed("ChildAdded", {
97
+ parent,
98
+ newChild,
99
+ containment,
100
+ index
101
+ });
102
+ }
103
+ case "DeleteChild": {
104
+ const { parent, containment, index, deletedChild } = command; // § 6.5.5.2
105
+ return completed("ChildDeleted", {
106
+ parent,
107
+ containment,
108
+ index,
109
+ deletedChild,
110
+ deletedDescendants: [] // TODO get from own model
111
+ });
112
+ }
113
+ case "ReplaceChild": {
114
+ const { newChild, parent, containment, index, replacedChild } = command; // § 6.5.5.3
115
+ return completed("ChildReplaced", {
116
+ newChild,
117
+ replacedChild,
118
+ replacedDescendants: [], // TODO get from own model
119
+ parent,
120
+ containment,
121
+ index
122
+ });
123
+ }
124
+ case "MoveChildFromOtherContainment": {
125
+ const { newParent, newContainment, newIndex, movedChild } = command; // § 6.5.5.4
126
+ return completed("ChildMovedFromOtherContainment", {
127
+ newParent,
128
+ newContainment,
129
+ newIndex,
130
+ movedChild,
131
+ oldParent: "???", // TODO get from own model
132
+ oldContainment: newContainment, // TODO get from own model
133
+ oldIndex: -1 // TODO get from own model
134
+ });
135
+ }
136
+ case "MoveChildFromOtherContainmentInSameParent": {
137
+ const { parent, oldContainment, oldIndex, newContainment, newIndex, movedChild } = command; // § 6.5.5.5
138
+ return completed("ChildMovedFromOtherContainmentInSameParent", {
139
+ parent,
140
+ oldContainment,
141
+ oldIndex,
142
+ newContainment,
143
+ newIndex,
144
+ movedChild
145
+ });
146
+ }
147
+ case "MoveChildInSameContainment": {
148
+ const { newIndex, movedChild } = command; // § 6.5.5.6
149
+ return completed("ChildMovedInSameContainment", {
150
+ newIndex,
151
+ movedChild,
152
+ parent: "???", // TODO get from own model
153
+ containment: { language: "???", version: "???", key: "???" }, // TODO get from own model
154
+ oldIndex: -1 // TODO get from own model
155
+ });
156
+ }
157
+ case "MoveAndReplaceChildFromOtherContainment": {
158
+ const { newParent, newContainment, newIndex, replacedChild, movedChild } = command; // § 6.5.5.7
159
+ return completed("ChildMovedAndReplacedFromOtherContainment", {
160
+ newParent,
161
+ newContainment,
162
+ newIndex,
163
+ movedChild,
164
+ oldParent: newParent, // TODO get from own model
165
+ oldContainment: newContainment, // TODO get from own model
166
+ oldIndex: -1, // TODO get from own model
167
+ replacedChild,
168
+ replacedDescendants: [] // TODO get from own model
169
+ });
170
+ }
171
+ case "MoveAndReplaceChildFromOtherContainmentInSameParent": {
172
+ const { newContainment, newIndex, replacedChild, movedChild } = command; // § 6.5.5.8
173
+ return completed("ChildMovedAndReplacedFromOtherContainmentInSameParent", {
174
+ newContainment,
175
+ newIndex,
176
+ movedChild,
177
+ parent: "???", // TODO get from own model
178
+ oldContainment: newContainment, // TODO get from own model
179
+ oldIndex: -1, // TODO get from own model
180
+ replacedChild: replacedChild,
181
+ replacedDescendants: [] // TODO get from own model
182
+ });
183
+ }
184
+ case "MoveAndReplaceChildInSameContainment": {
185
+ const { newIndex, replacedChild } = command; // § 6.5.5.9
186
+ return completed("ChildMovedAndReplacedInSameContainment", {
187
+ newIndex,
188
+ movedChild: "???", // TODO get from own model
189
+ parent: "???", // TODO get from own model
190
+ containment: { language: "???", version: "???", key: "???" }, // TODO get from own model
191
+ oldIndex: -1, // TODO get from own model
192
+ replacedChild,
193
+ replacedDescendants: [] // TODO get from own model
194
+ });
195
+ }
196
+ case "AddAnnotation": {
197
+ const { parent, newAnnotation, index } = command; // § 6.5.6.1
198
+ return completed("AnnotationAdded", {
199
+ parent,
200
+ newAnnotation,
201
+ index
202
+ });
203
+ }
204
+ case "DeleteAnnotation": {
205
+ const { deletedAnnotation, parent, index } = command; // § 6.5.6.2
206
+ return completed("AnnotationDeleted", {
207
+ deletedAnnotation,
208
+ deletedDescendants: [], // TODO get from own model
209
+ parent,
210
+ index
211
+ });
212
+ }
213
+ case "ReplaceAnnotation": {
214
+ const { newAnnotation, replacedAnnotation, parent, index } = command; // § 6.5.6.3
215
+ return completed("AnnotationReplaced", {
216
+ newAnnotation,
217
+ replacedAnnotation,
218
+ replacedDescendants: [], // TODO get from own model
219
+ parent,
220
+ index
221
+ });
222
+ }
223
+ case "MoveAnnotationFromOtherParent": {
224
+ const { newParent, newIndex, movedAnnotation } = command; // § 6.5.6.4
225
+ return completed("AnnotationMovedFromOtherParent", {
226
+ newParent,
227
+ newIndex,
228
+ movedAnnotation,
229
+ oldParent: "???", // TODO get from own model
230
+ oldIndex: -1 // TODO get from own model
231
+ });
232
+ }
233
+ case "MoveAnnotationInSameParent": {
234
+ const { newIndex, movedAnnotation } = command; // § 6.5.6.5
235
+ return completed("AnnotationMovedInSameParent", {
236
+ newIndex,
237
+ movedAnnotation,
238
+ parent: "???", // TODO get from own model
239
+ oldIndex: -1 // TODO get from own model
240
+ });
241
+ }
242
+ case "MoveAndReplaceAnnotationFromOtherParent": {
243
+ const { newParent, newIndex, movedAnnotation, replacedAnnotation } = command; // § 6.5.6.6
244
+ return completed("AnnotationMovedAndReplacedFromOtherParent", {
245
+ newParent,
246
+ newIndex,
247
+ movedAnnotation,
248
+ oldParent: "???", // TODO get from own model
249
+ oldIndex: -1, // TODO get from own model
250
+ replacedAnnotation,
251
+ replacedDescendants: [] // TODO get from own model
252
+ });
253
+ }
254
+ case "MoveAndReplaceAnnotationInSameParent": {
255
+ const { newIndex, movedAnnotation, replacedAnnotation } = command; // § 6.5.6.7
256
+ return completed("AnnotationMovedAndReplacedInSameParent", {
257
+ newIndex,
258
+ movedAnnotation,
259
+ parent: "???", // TODO get from own model
260
+ oldIndex: -1, // TODO get from own model
261
+ replacedAnnotation,
262
+ replacedDescendants: [] // TODO get from own model
263
+ });
264
+ }
265
+ case "AddReference": {
266
+ const { parent, reference, index, newTarget, newResolveInfo } = command; // § 6.5.7.1
267
+ return completed("ReferenceAdded", {
268
+ parent,
269
+ reference,
270
+ index,
271
+ newTarget,
272
+ newResolveInfo
273
+ });
274
+ }
275
+ case "DeleteReference": {
276
+ const { parent, reference, index, deletedTarget, deletedResolveInfo } = command; // § 6.5.7.2
277
+ return completed("ReferenceDeleted", {
278
+ parent,
279
+ reference,
280
+ index,
281
+ deletedTarget,
282
+ deletedResolveInfo
283
+ });
284
+ }
285
+ case "ChangeReference": {
286
+ const { parent, reference, index, newTarget, newResolveInfo, oldTarget, oldResolveInfo } = command; // § 6.5.7.3
287
+ return completed("ReferenceChanged", {
288
+ parent,
289
+ reference,
290
+ index,
291
+ newTarget,
292
+ newResolveInfo,
293
+ oldTarget,
294
+ oldResolveInfo
295
+ });
296
+ }
297
+ case "MoveEntryFromOtherReference": {
298
+ const { newParent, newReference, newIndex, movedTarget } = command; // § 6.5.7.4
299
+ return completed("EntryMovedFromOtherReference", {
300
+ newParent,
301
+ newReference,
302
+ newIndex,
303
+ oldParent: "???", // TODO get from own model
304
+ oldReference: { language: "???", version: "???", key: "???" }, // TODO get from own model
305
+ oldIndex: -1, // TODO get from own model
306
+ movedTarget,
307
+ movedResolveInfo: null // TODO get from own model
308
+ });
309
+ }
310
+ case "MoveEntryFromOtherReferenceInSameParent": {
311
+ const { parent, newReference, newIndex, movedTarget } = command; // § 6.5.7.5
312
+ return completed("EntryMovedFromOtherReferenceInSameParent", {
313
+ parent,
314
+ newReference,
315
+ newIndex,
316
+ oldReference: { language: "???", version: "???", key: "???" }, // TODO get from own model
317
+ oldIndex: -1, // TODO get from own model
318
+ movedTarget,
319
+ movedResolveInfo: null
320
+ });
321
+ }
322
+ case "MoveEntryInSameReference": {
323
+ const { parent, reference, newIndex, movedTarget } = command; // § 6.5.7.6
324
+ return completed("EntryMovedInSameReference", {
325
+ parent,
326
+ reference,
327
+ oldIndex: -1,
328
+ newIndex,
329
+ movedTarget,
330
+ movedResolveInfo: null
331
+ });
332
+ }
333
+ case "MoveAndReplaceEntryFromOtherReference": {
334
+ const { newParent, newReference, newIndex, movedTarget, replacedTarget } = command; // § 6.5.7.7
335
+ return completed("EntryMovedAndReplacedFromOtherReference", {
336
+ newParent,
337
+ newReference,
338
+ newIndex,
339
+ movedTarget,
340
+ movedResolveInfo: null,
341
+ oldParent: "???", // TODO get from own model
342
+ oldReference: { language: "???", version: "???", key: "???" }, // TODO get from own model
343
+ oldIndex: -1, // TODO get from own model
344
+ replacedTarget,
345
+ replacedResolveInfo: null
346
+ });
347
+ }
348
+ case "MoveAndReplaceEntryFromOtherReferenceInSameParent": {
349
+ const { parent, newReference, newIndex, movedTarget } = command; // § 6.5.7.8
350
+ return completed("EntryMovedAndReplacedFromOtherReferenceInSameParent", {
351
+ parent,
352
+ newReference,
353
+ newIndex,
354
+ movedTarget,
355
+ movedResolveInfo: null,
356
+ oldReference: { language: "???", version: "???", key: "???" }, // TODO get from own model
357
+ oldIndex: -1, // TODO get from own model
358
+ replacedTarget: "???", // TODO get from own model
359
+ replacedResolveInfo: null
360
+ });
361
+ }
362
+ case "MoveAndReplaceEntryInSameReference": {
363
+ const { parent, reference, newIndex, movedTarget, oldIndex, replacedTarget } = command; // § 6.5.7.9
364
+ return completed("EntryMovedAndReplacedInSameReference", {
365
+ parent,
366
+ reference,
367
+ newIndex,
368
+ movedTarget,
369
+ movedResolveInfo: null,
370
+ oldIndex,
371
+ replacedTarget,
372
+ replacedResolveInfo: null
373
+ });
374
+ }
375
+ case "AddReferenceResolveInfo": {
376
+ const { parent, reference, index, newResolveInfo } = command; // § 6.5.7.10
377
+ return completed("ReferenceResolveInfoAdded", {
378
+ parent,
379
+ reference,
380
+ index,
381
+ newResolveInfo,
382
+ target: "???" // TODO get from own model
383
+ });
384
+ }
385
+ case "DeleteReferenceResolveInfo": {
386
+ const { parent, reference, index, deletedResolveInfo } = command; // § 6.5.7.11
387
+ return completed("ReferenceResolveInfoDeleted", {
388
+ parent,
389
+ reference,
390
+ index,
391
+ deletedResolveInfo,
392
+ target: "???" // TODO get from own model
393
+ });
394
+ }
395
+ case "ChangeReferenceResolveInfo": {
396
+ const { parent, reference, index, oldResolveInfo, newResolveInfo } = command; // § 6.5.7.12
397
+ return completed("ReferenceResolveInfoChanged", {
398
+ parent,
399
+ reference,
400
+ index,
401
+ newResolveInfo,
402
+ oldResolveInfo,
403
+ target: "???" // TODO get from own model
404
+ });
405
+ }
406
+ case "AddReferenceTarget": {
407
+ const { parent, reference, index, newTarget } = command; // § 6.5.7.13
408
+ return completed("ReferenceTargetAdded", {
409
+ parent,
410
+ reference,
411
+ index,
412
+ newTarget,
413
+ resolveInfo: "???" // TODO get from own model
414
+ });
415
+ }
416
+ case "DeleteReferenceTarget": {
417
+ const { parent, reference, index, deletedTarget } = command; // § 6.5.7.14
418
+ return completed("ReferenceTargetDeleted", {
419
+ parent,
420
+ reference,
421
+ index,
422
+ resolveInfo: "???", // TODO get from own model
423
+ deletedTarget
424
+ });
425
+ }
426
+ case "ChangeReferenceTarget": {
427
+ const { parent, reference, index, newTarget } = command; // § 6.5.7.15
428
+ return completed("ReferenceTargetChanged", {
429
+ parent,
430
+ reference,
431
+ index,
432
+ newTarget,
433
+ resolveInfo: "???", // TODO get from own model
434
+ replacedTarget: "???" // TODO get from own model
435
+ });
436
+ }
437
+ case "CompositeCommand": {
438
+ const { parts } = command; // § 6.5.8.1
439
+ return completed("CompositeEvent", {
440
+ parts: parts.map(commandAsEvent_)
441
+ });
442
+ }
443
+ // Note: no command translates into a NoOpEvent, and ErrorEvent-s correspond to faults.
444
+ default:
445
+ throw new Error(`can't handle command of kind ${command.messageKind}`);
446
+ }
447
+ };
448
+ return commandAsEvent_(command);
449
+ };
450
+ //# sourceMappingURL=command-to-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-to-event.js","sourceRoot":"","sources":["../src/command-to-event.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,sEAAsE;AACtE,sCAAsC;AAmFtC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,eAAuB,EAAS,EAAE;IAE/E,uEAAuE;IACvE,MAAM,gCAAgC,GAA0C,EAAE,CAAA;IAClF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC5B,IAAI,CAAC,CAAC,eAAe,IAAI,gCAAgC,CAAC,EAAE,CAAC;YACzD,gCAAgC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1D,CAAC;QACD,OAAO,EAAE,gCAAgC,CAAC,eAAe,CAAC,CAAA;IAC9D,CAAC,CAAA;IAED,MAAM,SAAS,GAAG,CACV,SAA4B,EAC5B,YAAgG,EAC/F,EAAE,CAAC,CAAC;QACT,WAAW,EAAE,SAAS;QACtB,GAAG,YAAY;QACf,cAAc,EAAE;YACZ;gBACI,eAAe;gBACf,SAAS,EAAE,OAAO,CAAC,SAAS;aAC/B;SACJ;QACD,cAAc,EAAE,kBAAkB,EAAE;QACpC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;K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,2BAA2B;oBACjD,aAAa;iBAChB,CAAC,CAAA;YACN,CAAC;YACD,KAAK,uBAAuB,CAAC,CAAC,CAAC;gBAC3B,MAAM,EAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAC,GAAG,OAAuC,CAAA,CAAC,aAAa;gBACnG,OAAO,SAAS,CAA8B,wBAAwB,EAAE;oBACpE,MAAM;oBACN,SAAS;oBACT,KAAK;oBACL,SAAS;oBACT,WAAW,EAAE,KAAK,EAAI,2BAA2B;oBACjD,cAAc,EAAE,KAAK,CAAG,2BAA2B;iBACtD,CAAC,CAAA;YACN,CAAC;YACD,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACtB,MAAM,EAAC,KAAK,EAAC,GAAG,OAA2B,CAAA,CAAC,YAAY;gBACxD,OAAO,SAAS,CAAiB,gBAAgB,EAAE;oBAC/C,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC;iBACpC,CAAC,CAAA;YACN,CAAC;YACD,uFAAuF;YAEvF;gBACI,MAAM,IAAI,KAAK,CAAC,gCAAgC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;QAC9E,CAAC;IAEL,CAAC,CAAA;IAED,OAAO,eAAe,CAAC,OAAO,CAAC,CAAA;AAEnC,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { commandAsEvent } from "./command-to-event.js";
2
+ export { LionWebRepository } from "./repository-impl.js";
3
+ export type { LionWebRepositoryParameters } from "./repository-impl.js";
4
+ export { createWebSocketServer, wsLocalhostUrl } from "./server.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ // Copyright 2025 TRUMPF Laser SE and other contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License")
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ //
15
+ // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
+ // SPDX-License-Identifier: Apache-2.0
17
+ export { commandAsEvent } from "./command-to-event.js";
18
+ export { LionWebRepository } from "./repository-impl.js";
19
+ export { createWebSocketServer, wsLocalhostUrl } from "./server.js";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,sEAAsE;AACtE,sCAAsC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { Event, SemanticLogger } from "@lionweb/delta-protocol-common";
2
+ import { LowLevelServer } from "./server.js";
3
+ export type LionWebRepositoryParameters = {
4
+ port: number;
5
+ semanticLogger?: SemanticLogger;
6
+ };
7
+ export declare class LionWebRepository {
8
+ private readonly lowLevelServer;
9
+ constructor(lowLevelServer: LowLevelServer<Event>);
10
+ static create({ port, semanticLogger }: LionWebRepositoryParameters): Promise<LionWebRepository>;
11
+ shutdown(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=repository-impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository-impl.d.ts","sourceRoot":"","sources":["../src/repository-impl.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEH,KAAK,EAGL,cAAc,EAMjB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,EAAyB,cAAc,EAAE,MAAM,aAAa,CAAA;AAInE,MAAM,MAAM,2BAA2B,GAAG;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,CAAC,EAAE,cAAc,CAAA;CAClC,CAAA;AAOD,qBAAa,iBAAiB;IAEd,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc,CAAC,KAAK,CAAC;WAErD,MAAM,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,EAAE,2BAA2B;IAgGjE,QAAQ;CAIjB"}