@lionweb/delta-protocol-test-cli 0.7.0-beta.13 → 0.7.0-beta.15
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/cli-client.js +40 -18
- package/dist/cli-client.js.map +1 -1
- package/dist/tasks.d.ts +8 -1
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +72 -65
- package/dist/tasks.js.map +1 -1
- package/package.json +37 -39
- package/src/cli-client.ts +55 -18
- package/src/tasks.ts +79 -75
- package/dist/gen/Shapes.g.d.ts +0 -314
- package/dist/gen/Shapes.g.d.ts.map +0 -1
- package/dist/gen/Shapes.g.js +0 -914
- package/dist/gen/Shapes.g.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/src/gen/Shapes.g.ts +0 -1086
- package/src/index.ts +0 -19
package/dist/cli-client.js
CHANGED
|
@@ -16,28 +16,33 @@
|
|
|
16
16
|
// SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
import { argv, exit } from "process";
|
|
19
|
-
import { LionWebClient, wsLocalhostUrl } from "@lionweb/delta-protocol-impl";
|
|
19
|
+
import { createWebSocketClient, LionWebClient, wsLocalhostUrl } from "@lionweb/delta-protocol-impl";
|
|
20
|
+
import { semanticConsoleLogger, semanticLogItemStorer } from "@lionweb/delta-protocol-impl/dist/semantic-logging.js";
|
|
21
|
+
import { clientInfo, genericError } from "@lionweb/delta-protocol-impl/dist/utils/ansi.js";
|
|
22
|
+
import { combine } from "@lionweb/delta-protocol-impl/dist/utils/procedure.js";
|
|
23
|
+
import { writeJsonAsFile } from "@lionweb/utilities";
|
|
20
24
|
import { runAsApp, tryParseInteger } from "./common.js";
|
|
21
25
|
import { recognizedTasks, taskExecutor } from "./tasks.js";
|
|
22
|
-
import { clientInfo, withStylesApplied } from "@lionweb/delta-protocol-impl/dist/utils/ansi.js";
|
|
23
|
-
import { combine } from "@lionweb/delta-protocol-impl/dist/utils/procedure.js";
|
|
24
|
-
import { ShapesBase } from "./gen/Shapes.g.js";
|
|
25
26
|
import { TestLanguageBase } from "./gen/TestLanguage.g.js";
|
|
26
|
-
import { semanticConsoleLogger, semanticLogItemStorer } from "@lionweb/delta-protocol-impl/dist/semantic-logging.js";
|
|
27
|
-
const shapesLanguageBase = ShapesBase.INSTANCE;
|
|
28
27
|
const testLanguageBase = TestLanguageBase.INSTANCE;
|
|
29
|
-
const languageBases = [
|
|
30
|
-
const boldRedIf = (apply, text) => apply ?
|
|
31
|
-
const partitionConcepts = Object.fromEntries([testLanguageBase.DataTypeTestConcept,
|
|
28
|
+
const languageBases = [testLanguageBase];
|
|
29
|
+
const boldRedIf = (apply, text) => apply ? genericError(text) : text;
|
|
30
|
+
const partitionConcepts = Object.fromEntries([testLanguageBase.DataTypeTestConcept, testLanguageBase.LinkTestConcept]
|
|
32
31
|
.map((concept) => [concept.name, concept]));
|
|
33
|
-
|
|
32
|
+
// $ node dist/cli-client.js <port> <clientID> <partitionConcept> [tasks] [--${protocolLogOptionPrefix}=<path>]
|
|
33
|
+
const protocolLogOptionPrefix = "--protocol-log=";
|
|
34
|
+
const protocolLogPathIndex = argv.findIndex((argument) => argument.startsWith(protocolLogOptionPrefix));
|
|
35
|
+
// arguments without "node" (index=0), "dist/cli-client.js" (index=1), and `${protocolLogOptionPrefix}=<path>` (optional)
|
|
36
|
+
const trueArguments = argv.filter((_, index) => !(index === 0 || index === 1 || index === protocolLogPathIndex));
|
|
37
|
+
if (trueArguments.length < 3) {
|
|
34
38
|
console.log(`A Node.js-based app that implements a LionWeb delta protocol client.
|
|
35
39
|
|
|
36
|
-
Parameters (${
|
|
37
|
-
- ${boldRedIf(
|
|
38
|
-
- ${boldRedIf(
|
|
39
|
-
- ${boldRedIf(
|
|
40
|
-
- ${boldRedIf(
|
|
40
|
+
Parameters (${genericError("bold red")} are missing):
|
|
41
|
+
- ${boldRedIf(trueArguments.length < 1, `<port>: the port of the WebSocket where the LionWeb delta protocol repository is running on localhost`)}
|
|
42
|
+
- ${boldRedIf(trueArguments.length < 2, `<clientID>: the ID that the client identifies itself with at the repository`)}
|
|
43
|
+
- ${boldRedIf(trueArguments.length < 3, `<partitionConcept>: the name of a partition concept that gets instantiated as the model's primary partition — one of: ${Object.keys(partitionConcepts).join(", ")}`)}
|
|
44
|
+
- ${boldRedIf(trueArguments.length < 4, `[tasks]: a comma-separated list of tasks — one of ${Object.keys(recognizedTasks).sort().join(", ")}`)}
|
|
45
|
+
- ${boldRedIf(protocolLogPathIndex === -1, `${protocolLogOptionPrefix}=<path>: option to configure that the client logs all messages exchanged with the repository to a file with the given path`)}
|
|
41
46
|
|
|
42
47
|
ASSUMPTION: the initial (states of the models) on client(s) and repository are identical!
|
|
43
48
|
`);
|
|
@@ -47,19 +52,33 @@ const port = tryParseInteger(argv[2]);
|
|
|
47
52
|
const clientId = argv[3];
|
|
48
53
|
const partitionConcept = argv[4];
|
|
49
54
|
if (!(partitionConcept in partitionConcepts)) {
|
|
50
|
-
console.
|
|
55
|
+
console.error(genericError(`unknown partition concept specified: ${partitionConcept} — must be one of: ${Object.keys(partitionConcepts).join(", ")}`));
|
|
51
56
|
exit(2);
|
|
52
57
|
}
|
|
53
|
-
const tasks = argv[5]?.split(",") ?? [];
|
|
58
|
+
const tasks = argv[5]?.split(",") ?? [];
|
|
54
59
|
console.log(clientInfo(`tasks provided: ${tasks.length === 0 ? "none" : tasks.join(", ")}`));
|
|
60
|
+
const infoUnrecognizedTasks = tasks
|
|
61
|
+
.map((task, index) => task in recognizedTasks ? undefined : [task, index])
|
|
62
|
+
.filter((taskInfoOrUndefined) => taskInfoOrUndefined !== undefined);
|
|
63
|
+
if (infoUnrecognizedTasks.length > 0) {
|
|
64
|
+
console.error(genericError(`unrecognized tasks encountered:`));
|
|
65
|
+
infoUnrecognizedTasks.forEach(([task, index]) => {
|
|
66
|
+
console.error(genericError(`\t${task} (#${index + 1})`));
|
|
67
|
+
});
|
|
68
|
+
exit(2);
|
|
69
|
+
}
|
|
55
70
|
await runAsApp(async () => {
|
|
56
71
|
const url = wsLocalhostUrl(port);
|
|
57
72
|
const [storingLogger, semanticLogItems] = semanticLogItemStorer();
|
|
73
|
+
const logItems = [];
|
|
58
74
|
const lionWebClient = await LionWebClient.create({
|
|
59
75
|
clientId,
|
|
60
76
|
url,
|
|
61
77
|
languageBases,
|
|
62
|
-
semanticLogger: combine(semanticConsoleLogger, storingLogger)
|
|
78
|
+
semanticLogger: combine(semanticConsoleLogger, storingLogger),
|
|
79
|
+
lowLevelClientInstantiator: async (lowLevelClientParameters) => await createWebSocketClient(lowLevelClientParameters, (logItem) => {
|
|
80
|
+
logItems.push(logItem);
|
|
81
|
+
})
|
|
63
82
|
});
|
|
64
83
|
console.log(clientInfo(`LionWeb delta protocol client (with ID=${clientId}) connecting to repository on ${url} - press Ctrl+C to terminate`));
|
|
65
84
|
const partition = lionWebClient.createNode(partitionConcepts[partitionConcept], "a");
|
|
@@ -70,6 +89,9 @@ await runAsApp(async () => {
|
|
|
70
89
|
for (const task of tasks) {
|
|
71
90
|
await executeTask(task, queryId());
|
|
72
91
|
}
|
|
92
|
+
if (protocolLogPathIndex > -1) {
|
|
93
|
+
writeJsonAsFile(argv[protocolLogPathIndex].substring(protocolLogOptionPrefix.length), logItems);
|
|
94
|
+
}
|
|
73
95
|
return () => {
|
|
74
96
|
return lionWebClient.disconnect();
|
|
75
97
|
};
|
package/dist/cli-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-client.js","sourceRoot":"","sources":["../src/cli-client.ts"],"names":[],"mappings":";AAEA,wDAAwD;AACxD,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3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AC,SAAS,EAAE,mBAAmB,EAAE,CAAA;IAEtD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,MAAM,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;IACtC,CAAC;IAED,IAAI,oBAAoB,GAAG,CAAC,CAAC,EAAE,CAAC;QAC5B,eAAe,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAA;IACnG,CAAC;IAED,OAAO,GAAG,EAAE;QACR,OAAO,aAAa,CAAC,UAAU,EAAE,CAAA;IACrC,CAAC,CAAA;AACL,CAAC,CAAC,CAAA"}
|
package/dist/tasks.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { INodeBase } from "@lionweb/class-core";
|
|
2
2
|
import { LionWebClient } from "@lionweb/delta-protocol-impl";
|
|
3
3
|
import { ISemanticLogItem } from "@lionweb/delta-protocol-impl/dist/semantic-logging.js";
|
|
4
|
+
/**
|
|
5
|
+
* **DEV note**: run
|
|
6
|
+
*
|
|
7
|
+
* $ node src/code-reading/tasks-from-csharp.js
|
|
8
|
+
*
|
|
9
|
+
* inside the build package to generate the contents of the following object.
|
|
10
|
+
*/
|
|
4
11
|
export declare const recognizedTasks: Record<string, boolean>;
|
|
5
|
-
export declare const taskExecutor: (lionWebClient: LionWebClient, partition: INodeBase, semanticLogItems: ISemanticLogItem[]) => (task:
|
|
12
|
+
export declare const taskExecutor: (lionWebClient: LionWebClient, partition: INodeBase, semanticLogItems: ISemanticLogItem[]) => (task: keyof typeof recognizedTasks, queryId: string) => Promise<void>;
|
|
6
13
|
//# sourceMappingURL=tasks.d.ts.map
|
package/dist/tasks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/tasks.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/tasks.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAG5D,OAAO,EAAyB,gBAAgB,EAAE,MAAM,uDAAuD,CAAA;AAM/G;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAmCnD,CAAA;AAMD,eAAO,MAAM,YAAY,GAAI,eAAe,aAAa,EAAE,WAAW,SAAS,EAAE,kBAAkB,gBAAgB,EAAE,MAqBnG,MAAM,MAAM,OAAO,eAAe,EAAE,SAAS,MAAM,kBA4HpE,CAAA"}
|
package/dist/tasks.js
CHANGED
|
@@ -14,26 +14,26 @@
|
|
|
14
14
|
//
|
|
15
15
|
// SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
|
|
16
16
|
// SPDX-License-Identifier: Apache-2.0
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { lastOfArray } from "@lionweb/ts-utils";
|
|
18
|
+
import { ClientReceivedMessage } from "@lionweb/delta-protocol-impl/dist/semantic-logging.js";
|
|
19
|
+
import { clientInfo, genericWarning } from "@lionweb/delta-protocol-impl/dist/utils/ansi.js";
|
|
19
20
|
import { waitUntil } from "@lionweb/delta-protocol-impl/dist/utils/async.js";
|
|
20
|
-
import { ShapesBase } from "./gen/Shapes.g.js";
|
|
21
21
|
import { TestLanguageBase } from "./gen/TestLanguage.g.js";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
/**
|
|
23
|
+
* **DEV note**: run
|
|
24
|
+
*
|
|
25
|
+
* $ node src/code-reading/tasks-from-csharp.js
|
|
26
|
+
*
|
|
27
|
+
* inside the build package to generate the contents of the following object.
|
|
28
|
+
*/
|
|
28
29
|
export const recognizedTasks = {
|
|
29
30
|
"SignOn": true,
|
|
30
31
|
"SignOff": true,
|
|
31
32
|
"Wait": true,
|
|
32
|
-
"AddDocs": true,
|
|
33
|
-
"SetDocsText": true,
|
|
34
33
|
"AddStringValue_0_1": true,
|
|
35
34
|
"SetStringValue_0_1": true,
|
|
36
35
|
"DeleteStringValue_0_1": true,
|
|
36
|
+
"AddName_Containment_0_1": true,
|
|
37
37
|
"AddAnnotation": true,
|
|
38
38
|
"AddAnnotations": true,
|
|
39
39
|
"AddAnnotation_to_Containment_0_1": true,
|
|
@@ -50,6 +50,7 @@ export const recognizedTasks = {
|
|
|
50
50
|
"AddContainment_0_1_Containment_0_1": true,
|
|
51
51
|
"AddContainment_1_Containment_0_1": true,
|
|
52
52
|
"AddContainment_0_n": true,
|
|
53
|
+
"AddContainment_0_n_Containment_0_n": true,
|
|
53
54
|
"AddContainment_1_n": true,
|
|
54
55
|
"MoveAndReplaceChildFromOtherContainment_Single": true,
|
|
55
56
|
"MoveAndReplaceChildFromOtherContainmentInSameParent_Single": true,
|
|
@@ -58,18 +59,17 @@ export const recognizedTasks = {
|
|
|
58
59
|
"MoveChildFromOtherContainment_Single": true,
|
|
59
60
|
"MoveChildFromOtherContainment_Multiple": true,
|
|
60
61
|
"MoveChildFromOtherContainmentInSameParent_Single": true,
|
|
61
|
-
"
|
|
62
|
-
"
|
|
62
|
+
"AddPartition": true,
|
|
63
|
+
"MoveChildFromOtherContainmentInSameParent_Multiple": true
|
|
63
64
|
};
|
|
64
|
-
const shapesLanguageBase = ShapesBase.INSTANCE;
|
|
65
65
|
const testLanguageBase = TestLanguageBase.INSTANCE;
|
|
66
66
|
export const taskExecutor = (lionWebClient, partition, semanticLogItems) => {
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const expectedNumber =
|
|
70
|
-
return waitUntil(10, () =>
|
|
67
|
+
const numberOfReceivedMessages = () => semanticLogItems.filter((item) => item instanceof ClientReceivedMessage).length;
|
|
68
|
+
const waitForReceivedMessages = async (numberOfMessagesToReceive) => {
|
|
69
|
+
const expectedNumber = numberOfReceivedMessages() + numberOfMessagesToReceive; // (precompute here)
|
|
70
|
+
return waitUntil(10, () => numberOfReceivedMessages() >= expectedNumber)
|
|
71
71
|
.then(() => {
|
|
72
|
-
console.log(
|
|
72
|
+
console.log(clientInfo(`(client "${lionWebClient.clientId}" received a total of ${numberOfReceivedMessages()} messages so far)`));
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
const annotation = (id) => lionWebClient.createNode(testLanguageBase.TestAnnotation, id);
|
|
@@ -77,114 +77,121 @@ export const taskExecutor = (lionWebClient, partition, semanticLogItems) => {
|
|
|
77
77
|
? partition
|
|
78
78
|
: lionWebClient.createNode(testLanguageBase.LinkTestConcept, id);
|
|
79
79
|
return async (task, queryId) => {
|
|
80
|
+
console.log(clientInfo(`client "${lionWebClient.clientId}" is executing task "${task}"`));
|
|
80
81
|
switch (task) {
|
|
81
82
|
case "SignOn":
|
|
82
|
-
return await lionWebClient.signOn(queryId);
|
|
83
|
+
return await lionWebClient.signOn(queryId, "myRepo");
|
|
83
84
|
case "SignOff":
|
|
84
85
|
return await lionWebClient.signOff(queryId);
|
|
85
86
|
case "Wait": {
|
|
86
|
-
return
|
|
87
|
-
}
|
|
88
|
-
case "AddDocs": {
|
|
89
|
-
partition.documentation = lionWebClient.createNode(shapesLanguageBase.Documentation, "documentation");
|
|
90
|
-
return waitForReceived(1);
|
|
91
|
-
}
|
|
92
|
-
case "SetDocsText": {
|
|
93
|
-
partition.documentation.text = "hello there";
|
|
94
|
-
return waitForReceived(1);
|
|
87
|
+
return waitForReceivedMessages(1);
|
|
95
88
|
}
|
|
96
89
|
case "AddStringValue_0_1":
|
|
97
90
|
partition.stringValue_0_1 = "new property";
|
|
98
|
-
return
|
|
91
|
+
return waitForReceivedMessages(1);
|
|
99
92
|
case "SetStringValue_0_1":
|
|
100
93
|
partition.stringValue_0_1 = "changed property";
|
|
101
|
-
return
|
|
94
|
+
return waitForReceivedMessages(1);
|
|
102
95
|
case "DeleteStringValue_0_1":
|
|
103
96
|
partition.stringValue_0_1 = undefined;
|
|
104
|
-
return
|
|
97
|
+
return waitForReceivedMessages(1);
|
|
98
|
+
case "AddName_Containment_0_1":
|
|
99
|
+
linkTestConcept().containment_0_1.name = "my name";
|
|
100
|
+
return waitForReceivedMessages(1);
|
|
105
101
|
case "AddAnnotation":
|
|
106
102
|
linkTestConcept().addAnnotation(annotation("annotation"));
|
|
107
|
-
return
|
|
103
|
+
return waitForReceivedMessages(1);
|
|
108
104
|
case "AddAnnotations":
|
|
109
105
|
linkTestConcept().addAnnotation(annotation("annotation0")); // (keep ;!)
|
|
110
106
|
linkTestConcept().addAnnotation(annotation("annotation1"));
|
|
111
|
-
return
|
|
107
|
+
return waitForReceivedMessages(2);
|
|
112
108
|
case "AddAnnotation_to_Containment_0_1":
|
|
113
109
|
linkTestConcept().containment_0_1.addAnnotation(annotation("annotation"));
|
|
114
|
-
return
|
|
110
|
+
return waitForReceivedMessages(1);
|
|
115
111
|
case "DeleteAnnotation":
|
|
116
112
|
linkTestConcept().removeAnnotation(linkTestConcept().annotations[0]);
|
|
117
|
-
return
|
|
113
|
+
return waitForReceivedMessages(1);
|
|
118
114
|
case "MoveAnnotationInSameParent":
|
|
119
|
-
linkTestConcept().insertAnnotationAtIndex(
|
|
120
|
-
return
|
|
115
|
+
linkTestConcept().insertAnnotationAtIndex(lastOfArray(linkTestConcept().annotations), 0);
|
|
116
|
+
return waitForReceivedMessages(1);
|
|
121
117
|
case "MoveAnnotationFromOtherParent":
|
|
122
118
|
linkTestConcept().addAnnotation(linkTestConcept().containment_0_1.annotations[0]);
|
|
123
|
-
return
|
|
119
|
+
return waitForReceivedMessages(1);
|
|
124
120
|
case "AddReference_0_1_to_Containment_0_1":
|
|
125
121
|
linkTestConcept().reference_0_1 = linkTestConcept().containment_0_1;
|
|
126
|
-
return
|
|
122
|
+
return waitForReceivedMessages(1);
|
|
127
123
|
case "AddReference_0_1_to_Containment_1":
|
|
128
124
|
linkTestConcept().reference_0_1 = linkTestConcept().containment_1;
|
|
129
|
-
return
|
|
125
|
+
return waitForReceivedMessages(1);
|
|
130
126
|
case "DeleteReference_0_1":
|
|
131
127
|
linkTestConcept().reference_0_1 = undefined;
|
|
132
|
-
return
|
|
128
|
+
return waitForReceivedMessages(1);
|
|
133
129
|
case "AddContainment_0_1":
|
|
134
130
|
linkTestConcept().containment_0_1 = linkTestConcept("containment_0_1");
|
|
135
|
-
return
|
|
131
|
+
return waitForReceivedMessages(1);
|
|
136
132
|
case "AddContainment_1":
|
|
137
133
|
linkTestConcept().containment_1 = linkTestConcept("containment_1");
|
|
138
|
-
return
|
|
134
|
+
return waitForReceivedMessages(1);
|
|
139
135
|
case "ReplaceContainment_0_1":
|
|
140
|
-
linkTestConcept().
|
|
141
|
-
return
|
|
136
|
+
linkTestConcept().replaceContainment_0_1With(linkTestConcept("substitute"));
|
|
137
|
+
return waitForReceivedMessages(1);
|
|
142
138
|
case "DeleteContainment_0_1":
|
|
143
139
|
linkTestConcept().containment_0_1 = undefined;
|
|
144
|
-
return
|
|
140
|
+
return waitForReceivedMessages(1);
|
|
145
141
|
case "AddContainment_0_1_Containment_0_1":
|
|
146
142
|
linkTestConcept().containment_0_1.containment_0_1 = linkTestConcept("containment_0_1_containment_0_1");
|
|
147
|
-
return
|
|
143
|
+
return waitForReceivedMessages(1);
|
|
148
144
|
case "AddContainment_1_Containment_0_1":
|
|
149
145
|
linkTestConcept().containment_1.containment_0_1 = linkTestConcept("containment_1_containment_0_1");
|
|
150
|
-
return
|
|
146
|
+
return waitForReceivedMessages(1);
|
|
151
147
|
case "AddContainment_0_n":
|
|
152
148
|
linkTestConcept().addContainment_0_n(linkTestConcept("containment_0_n_child0")); // (keep ;!)
|
|
153
149
|
linkTestConcept().addContainment_0_n(linkTestConcept("containment_0_n_child1"));
|
|
154
|
-
return
|
|
150
|
+
return waitForReceivedMessages(2);
|
|
151
|
+
case "AddContainment_0_n_Containment_0_n": {
|
|
152
|
+
const outerChild = linkTestConcept("containment_0_n_child0");
|
|
153
|
+
outerChild.addContainment_0_n(linkTestConcept("containment_0_n_containment_0_n_child0"));
|
|
154
|
+
linkTestConcept().addContainment_0_n(outerChild);
|
|
155
|
+
return waitForReceivedMessages(1);
|
|
156
|
+
}
|
|
155
157
|
case "AddContainment_1_n":
|
|
156
158
|
linkTestConcept().addContainment_1_n(linkTestConcept("containment_1_n_child0")); // (keep ;!)
|
|
157
159
|
linkTestConcept().addContainment_1_n(linkTestConcept("containment_1_n_child1"));
|
|
158
|
-
return
|
|
160
|
+
return waitForReceivedMessages(2);
|
|
159
161
|
case "MoveAndReplaceChildFromOtherContainment_Single":
|
|
160
162
|
linkTestConcept().containment_1.replaceContainment_0_1With(linkTestConcept().containment_0_1.containment_0_1);
|
|
161
|
-
return
|
|
163
|
+
return waitForReceivedMessages(1);
|
|
162
164
|
case "MoveAndReplaceChildFromOtherContainmentInSameParent_Single":
|
|
163
165
|
linkTestConcept().replaceContainment_1With(linkTestConcept().containment_0_1);
|
|
164
|
-
return
|
|
166
|
+
return waitForReceivedMessages(1);
|
|
165
167
|
case "MoveAndReplaceChildFromOtherContainment_Multiple":
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
if (linkTestConcept().containment_1_n.length === 0) {
|
|
169
|
+
throw new Error(`can't replace an item of an array with no items`);
|
|
170
|
+
}
|
|
171
|
+
linkTestConcept().replaceContainment_1_nAtIndex(lastOfArray(lastOfArray(linkTestConcept().containment_0_n).containment_0_n), linkTestConcept().containment_1_n.length - 1);
|
|
172
|
+
return waitForReceivedMessages(1);
|
|
168
173
|
case "MoveChildInSameContainment":
|
|
169
|
-
linkTestConcept().addContainment_0_nAtIndex(
|
|
170
|
-
|
|
174
|
+
linkTestConcept().addContainment_0_nAtIndex(lastOfArray(linkTestConcept().containment_0_n), 0);
|
|
175
|
+
// Note: this is effectively a move rather than an insert — hence the name of the task.
|
|
176
|
+
return waitForReceivedMessages(1);
|
|
171
177
|
case "MoveChildFromOtherContainment_Single":
|
|
172
178
|
linkTestConcept().containment_1 = linkTestConcept().containment_0_1.containment_0_1;
|
|
173
|
-
return
|
|
179
|
+
return waitForReceivedMessages(1);
|
|
174
180
|
case "MoveChildFromOtherContainment_Multiple":
|
|
175
|
-
linkTestConcept().addContainment_1_nAtIndex(
|
|
176
|
-
return
|
|
181
|
+
linkTestConcept().addContainment_1_nAtIndex(lastOfArray(linkTestConcept().containment_0_n).containment_0_n[0], 1);
|
|
182
|
+
return waitForReceivedMessages(1);
|
|
177
183
|
case "MoveChildFromOtherContainmentInSameParent_Single":
|
|
178
184
|
linkTestConcept().containment_1 = linkTestConcept().containment_0_1;
|
|
179
|
-
return
|
|
185
|
+
return waitForReceivedMessages(1);
|
|
180
186
|
case "MoveChildFromOtherContainmentInSameParent_Multiple":
|
|
181
|
-
linkTestConcept().addContainment_1_nAtIndex(
|
|
182
|
-
return
|
|
187
|
+
linkTestConcept().addContainment_1_nAtIndex(lastOfArray(linkTestConcept().containment_0_n), 1);
|
|
188
|
+
return waitForReceivedMessages(1);
|
|
183
189
|
case "AddPartition":
|
|
184
190
|
lionWebClient.addPartition(linkTestConcept("partition"));
|
|
185
|
-
return
|
|
191
|
+
return waitForReceivedMessages(1);
|
|
186
192
|
default: {
|
|
187
|
-
|
|
193
|
+
// (shouldn't happen because of upfront validation of tasks)
|
|
194
|
+
console.log(genericWarning(`task "${task}" is unknown => ignored`));
|
|
188
195
|
return Promise.resolve();
|
|
189
196
|
}
|
|
190
197
|
}
|
package/dist/tasks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../src/tasks.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAA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
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@lionweb/json": "0.7.0-beta.13"
|
|
40
|
-
}
|
|
2
|
+
"name": "@lionweb/delta-protocol-test-cli",
|
|
3
|
+
"version": "0.7.0-beta.15",
|
|
4
|
+
"description": "CLI programs for testing the delta protocol",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/LionWeb-io/lionweb-typescript.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/LionWeb-io/lionweb-typescript/issues"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"cli-client": "dist/cli-client.js",
|
|
16
|
+
"cli-repository": "dist/cli-repository.js"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "npx rimraf dist node_modules -g delta-protocol-test-cli-*.tgz",
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"lint": "eslint src",
|
|
22
|
+
"start-client": "npm run build && node --trace-uncaught dist/cli-client.js 40000 client-A LinkTestConcept Bogus,SignOn,AddDocs,SetDocs,SignOff,Wait",
|
|
23
|
+
"start-repository": "npm run build && node --trace-uncaught dist/cli-repository.js 40000",
|
|
24
|
+
"prep:pre-release": "npm run clean && npm install && npm run build",
|
|
25
|
+
"prerelease-alpha": "npm run prep:pre-release",
|
|
26
|
+
"release-alpha": "npm publish --tag alpha",
|
|
27
|
+
"prerelease-beta": "npm run prep:pre-release",
|
|
28
|
+
"release-beta": "npm publish --tag beta",
|
|
29
|
+
"prerelease": "npm run prep:pre-release",
|
|
30
|
+
"release": "npm publish"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@lionweb/class-core": "0.7.0-beta.15",
|
|
34
|
+
"@lionweb/core": "0.7.0-beta.15",
|
|
35
|
+
"@lionweb/delta-protocol-impl": "0.7.0-beta.15",
|
|
36
|
+
"@lionweb/json": "0.7.0-beta.15",
|
|
37
|
+
"@lionweb/utilities": "0.7.0-beta.15"
|
|
38
|
+
}
|
|
41
39
|
}
|