@eclipse-glsp-examples/workflow-server 2.6.0 → 2.7.0-next.10
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/lib/browser/example1.json +558 -502
- package/lib/common/graph-extension.d.ts +1 -1
- package/lib/common/graph-extension.js +3 -3
- package/lib/common/graph-extension.js.map +1 -1
- package/lib/common/index.d.ts +4 -0
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +4 -0
- package/lib/common/index.js.map +1 -1
- package/lib/common/mcp/workflow-element-types-provider.d.ts +27 -0
- package/lib/common/mcp/workflow-element-types-provider.d.ts.map +1 -0
- package/lib/common/mcp/workflow-element-types-provider.js +62 -0
- package/lib/common/mcp/workflow-element-types-provider.js.map +1 -0
- package/lib/common/mcp/workflow-mcp-label-provider.d.ts +27 -0
- package/lib/common/mcp/workflow-mcp-label-provider.d.ts.map +1 -0
- package/lib/common/mcp/workflow-mcp-label-provider.js +48 -0
- package/lib/common/mcp/workflow-mcp-label-provider.js.map +1 -0
- package/lib/common/mcp/workflow-mcp-model-serializer.d.ts +29 -0
- package/lib/common/mcp/workflow-mcp-model-serializer.d.ts.map +1 -0
- package/lib/common/mcp/workflow-mcp-model-serializer.js +189 -0
- package/lib/common/mcp/workflow-mcp-model-serializer.js.map +1 -0
- package/lib/common/mcp/workflow-mcp-module.d.ts +36 -0
- package/lib/common/mcp/workflow-mcp-module.d.ts.map +1 -0
- package/lib/common/mcp/workflow-mcp-module.js +49 -0
- package/lib/common/mcp/workflow-mcp-module.js.map +1 -0
- package/lib/common/util/model-types.d.ts +1 -1
- package/lib/common/util/model-types.d.ts.map +1 -1
- package/lib/common/util/model-types.js +1 -2
- package/lib/common/util/model-types.js.map +1 -1
- package/lib/common/workflow-diagram-module.d.ts +3 -3
- package/lib/common/workflow-diagram-module.d.ts.map +1 -1
- package/lib/common/workflow-diagram-module.js +3 -3
- package/lib/common/workflow-diagram-module.js.map +1 -1
- package/lib/common/workflow-glsp-server.d.ts +4 -4
- package/lib/common/workflow-glsp-server.d.ts.map +1 -1
- package/lib/common/workflow-glsp-server.js +12 -13
- package/lib/common/workflow-glsp-server.js.map +1 -1
- package/lib/node/app.d.ts +1 -1
- package/lib/node/app.js +6 -5
- package/lib/node/app.js.map +1 -1
- package/package.json +6 -5
- package/src/browser/example1.json +558 -502
- package/src/common/graph-extension.ts +3 -3
- package/src/common/index.ts +4 -0
- package/src/common/mcp/workflow-element-types-provider.ts +54 -0
- package/src/common/mcp/workflow-mcp-label-provider.ts +37 -0
- package/src/common/mcp/workflow-mcp-model-serializer.ts +187 -0
- package/src/common/mcp/workflow-mcp-module.ts +54 -0
- package/src/common/util/model-types.ts +1 -2
- package/src/common/workflow-diagram-module.ts +5 -5
- package/src/common/workflow-glsp-server.ts +17 -10
- package/src/node/app.ts +12 -8
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ModelTypes = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2022-
|
|
5
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,7 +16,6 @@ exports.ModelTypes = void 0;
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
-
/* eslint-disable @typescript-eslint/padding-line-between-statements */
|
|
20
19
|
var ModelTypes;
|
|
21
20
|
(function (ModelTypes) {
|
|
22
21
|
ModelTypes.LABEL_HEADING = 'label:heading';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-types.js","sourceRoot":"","sources":["../../../src/common/util/model-types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
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qBAAU,aAmBzB,CAAA;AACL,CAAC,EAtCgB,UAAU,0BAAV,UAAU,QAsC1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { BindingTarget, CommandPaletteActionProvider, ContextActionsProvider, ContextEditValidator, ContextMenuItemProvider, DiagramConfiguration, EdgeCreationChecker,
|
|
16
|
+
import { BindingTarget, CommandPaletteActionProvider, ContextActionsProvider, ContextEditValidator, ContextMenuItemProvider, DiagramConfiguration, EdgeCreationChecker, GLSPServerInitializer, GModelDiagramModule, InstanceMultiBinding, LabelEditValidator, ModelValidator, MultiBinding, NavigationTargetProvider, NavigationTargetResolver, OperationHandlerConstructor, PopupModelFactory, ServerModule, SourceModelStorage } from '@eclipse-glsp/server';
|
|
17
17
|
export declare class WorkflowServerModule extends ServerModule {
|
|
18
|
-
protected
|
|
18
|
+
protected configureGLSPServerInitializers(binding: MultiBinding<GLSPServerInitializer>): void;
|
|
19
19
|
}
|
|
20
20
|
export declare class WorkflowDiagramModule extends GModelDiagramModule {
|
|
21
21
|
bindSourceModelStorage: () => BindingTarget<SourceModelStorage>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EACrB,MAAM,sBAAsB,CAAC;AA2B9B,qBACa,oBAAqB,SAAQ,YAAY;cAC/B,+BAA+B,CAAC,OAAO,EAAE,YAAY,CAAC,qBAAqB,CAAC,GAAG,IAAI;CAGzG;AAED,qBACa,qBAAsB,SAAQ,mBAAmB;IACvC,sBAAsB,EAAE,MAAM,aAAa,CAAC,kBAAkB,CAAC;gBAA/D,sBAAsB,EAAE,MAAM,aAAa,CAAC,kBAAkB,CAAC;IAIlF,IAAI,WAAW,IAAI,MAAM,CAExB;cAEkB,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,GAAG,IAAI;IAc/G,SAAS,CAAC,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;cAItD,4BAA4B,IAAI,aAAa,CAAC,wBAAwB,CAAC,GAAG,SAAS;cAInF,2BAA2B,IAAI,aAAa,CAAC,uBAAuB,CAAC,GAAG,SAAS;cAIjF,gCAAgC,IAAI,aAAa,CAAC,4BAA4B,CAAC,GAAG,SAAS;cAI3F,sBAAsB,IAAI,aAAa,CAAC,kBAAkB,CAAC,GAAG,SAAS;cAIvE,qBAAqB,IAAI,aAAa,CAAC,iBAAiB,CAAC,GAAG,SAAS;cAIrE,kBAAkB,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,SAAS;cAI/D,kCAAkC,CAAC,OAAO,EAAE,YAAY,CAAC,wBAAwB,CAAC,GAAG,IAAI;cAOzF,+BAA+B,CAAC,OAAO,EAAE,YAAY,CAAC,sBAAsB,CAAC,GAAG,IAAI;cAKpF,8BAA8B,CAAC,OAAO,EAAE,YAAY,CAAC,oBAAoB,CAAC,GAAG,IAAI;cAKjF,uBAAuB,IAAI,aAAa,CAAC,mBAAmB,CAAC,GAAG,SAAS;CAG/F"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WorkflowDiagramModule = exports.WorkflowServerModule = void 0;
|
|
13
13
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2022-
|
|
14
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
15
15
|
*
|
|
16
16
|
* This program and the accompanying materials are made available under the
|
|
17
17
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -52,8 +52,8 @@ const workflow_edge_creation_checker_1 = require("./workflow-edge-creation-check
|
|
|
52
52
|
const workflow_glsp_server_1 = require("./workflow-glsp-server");
|
|
53
53
|
const workflow_popup_factory_1 = require("./workflow-popup-factory");
|
|
54
54
|
let WorkflowServerModule = class WorkflowServerModule extends server_1.ServerModule {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
configureGLSPServerInitializers(binding) {
|
|
56
|
+
binding.add(workflow_glsp_server_1.CustomArgsInitContribution);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
exports.WorkflowServerModule = WorkflowServerModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAoB8B;AAC9B,yCAAuC;AACvC,2FAAqF;AACrF,+EAA0E;AAC1E,yFAAmF;AACnF,uEAAkE;AAClE,iFAA2E;AAC3E,iFAA2E;AAC3E,qFAA+E;AAC/E,mFAA6E;AAC7E,yFAAmF;AACnF,6FAAuF;AACvF,gFAA2E;AAC3E,qGAA+F;AAC/F,0GAAmG;AACnG,4HAAqH;AACrH,kHAA2G;AAC3G,kHAA2G;AAC3G,wGAAiG;AACjG,wFAAkF;AAClF,sFAAsF;AACtF,wEAAmE;AACnE,qFAAgF;AAChF,qFAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAoB8B;AAC9B,yCAAuC;AACvC,2FAAqF;AACrF,+EAA0E;AAC1E,yFAAmF;AACnF,uEAAkE;AAClE,iFAA2E;AAC3E,iFAA2E;AAC3E,qFAA+E;AAC/E,mFAA6E;AAC7E,yFAAmF;AACnF,6FAAuF;AACvF,gFAA2E;AAC3E,qGAA+F;AAC/F,0GAAmG;AACnG,4HAAqH;AACrH,kHAA2G;AAC3G,kHAA2G;AAC3G,wGAAiG;AACjG,wFAAkF;AAClF,sFAAsF;AACtF,wEAAmE;AACnE,qFAAgF;AAChF,qFAA+E;AAC/E,iEAAoE;AACpE,qEAAgE;AAGzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,qBAAY;IAC/B,+BAA+B,CAAC,OAA4C;QAC3F,OAAO,CAAC,GAAG,CAAC,iDAA0B,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAJY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAIhC;AAGM,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAmB;IAC1D,YAAmB,sBAA+D;QAC9E,KAAK,EAAE,CAAC;QADO,2BAAsB,GAAtB,sBAAsB,CAAyC;IAElF,CAAC;IAED,IAAI,WAA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AAC,yFAAyC,CAAC,CAAC;IAC3D,CAAC;IAEkB,+BAA+B,CAAC,OAA6C;QAC5F,KAAK,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;QAC/C,OAAO,CAAC,GAAG,CAAC,0DAA6B,CAAC,CAAC;IAC/C,CAAC;IAEkB,8BAA8B,CAAC,OAA2C;QACzF,KAAK,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,uCAAiB,CAAC,CAAC;IACnC,CAAC;IAEkB,uBAAuB;QACtC,OAAO,4DAA2B,CAAC;IACvC,CAAC;CACJ,CAAA;AAvEY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,sBAAU,GAAE;;GACA,qBAAqB,CAuEjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
export declare class
|
|
16
|
+
import { GLSPServer, GLSPServerInitializer, InitializeParameters, InitializeResult, Logger, MaybePromise } from '@eclipse-glsp/server';
|
|
17
|
+
export declare class CustomArgsInitContribution implements GLSPServerInitializer {
|
|
18
18
|
MESSAGE_KEY: string;
|
|
19
19
|
TIMESTAMP_KEY: string;
|
|
20
20
|
protected logger: Logger;
|
|
21
|
-
|
|
21
|
+
initializeServer(server: GLSPServer, params: InitializeParameters, result: InitializeResult): MaybePromise<InitializeResult>;
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=workflow-glsp-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-glsp-server.d.ts","sourceRoot":"","sources":["../../src/common/workflow-glsp-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"workflow-glsp-server.d.ts","sourceRoot":"","sources":["../../src/common/workflow-glsp-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAEH,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,EACN,YAAY,EACf,MAAM,sBAAsB,CAAC;AAG9B,qBACa,0BAA2B,YAAW,qBAAqB;IACpE,WAAW,SAAa;IACxB,aAAa,SAAe;IAEZ,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IAEzC,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CAAC;CAU/H"}
|
|
@@ -9,9 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CustomArgsInitContribution = void 0;
|
|
13
13
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2022-
|
|
14
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
15
15
|
*
|
|
16
16
|
* This program and the accompanying materials are made available under the
|
|
17
17
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -27,28 +27,27 @@ exports.WorkflowGLSPServer = void 0;
|
|
|
27
27
|
********************************************************************************/
|
|
28
28
|
const server_1 = require("@eclipse-glsp/server");
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
|
-
let
|
|
30
|
+
let CustomArgsInitContribution = class CustomArgsInitContribution {
|
|
31
31
|
constructor() {
|
|
32
|
-
super(...arguments);
|
|
33
32
|
this.MESSAGE_KEY = 'message';
|
|
34
33
|
this.TIMESTAMP_KEY = 'timestamp';
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
if (!args) {
|
|
35
|
+
initializeServer(server, params, result) {
|
|
36
|
+
if (!params.args) {
|
|
38
37
|
return result;
|
|
39
38
|
}
|
|
40
|
-
const timestamp = server_1.ArgsUtil.get(args, this.TIMESTAMP_KEY);
|
|
41
|
-
const message = server_1.ArgsUtil.get(args, this.MESSAGE_KEY);
|
|
42
|
-
this.logger.
|
|
39
|
+
const timestamp = server_1.ArgsUtil.get(params.args, this.TIMESTAMP_KEY);
|
|
40
|
+
const message = server_1.ArgsUtil.get(params.args, this.MESSAGE_KEY);
|
|
41
|
+
this.logger.info(`${timestamp}: ${message}`);
|
|
43
42
|
return result;
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
|
-
exports.
|
|
45
|
+
exports.CustomArgsInitContribution = CustomArgsInitContribution;
|
|
47
46
|
__decorate([
|
|
48
47
|
(0, inversify_1.inject)(server_1.Logger),
|
|
49
48
|
__metadata("design:type", server_1.Logger)
|
|
50
|
-
],
|
|
51
|
-
exports.
|
|
49
|
+
], CustomArgsInitContribution.prototype, "logger", void 0);
|
|
50
|
+
exports.CustomArgsInitContribution = CustomArgsInitContribution = __decorate([
|
|
52
51
|
(0, inversify_1.injectable)()
|
|
53
|
-
],
|
|
52
|
+
], CustomArgsInitContribution);
|
|
54
53
|
//# sourceMappingURL=workflow-glsp-server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-glsp-server.js","sourceRoot":"","sources":["../../src/common/workflow-glsp-server.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"workflow-glsp-server.js","sourceRoot":"","sources":["../../src/common/workflow-glsp-server.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAQ8B;AAC9B,yCAA+C;AAGxC,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAAhC;QACH,gBAAW,GAAG,SAAS,CAAC;QACxB,kBAAa,GAAG,WAAW,CAAC;IAchC,CAAC;IAVG,gBAAgB,CAAC,MAAkB,EAAE,MAA4B,EAAE,MAAwB;QACvF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,MAAM,SAAS,GAAG,iBAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,iBAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAE5D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,SAAS,KAAK,OAAO,EAAE,CAAC,CAAC;QAC7C,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AAhBY,gEAA0B;AAIT;IAAzB,IAAA,kBAAM,EAAC,eAAM,CAAC;8BAAmB,eAAM;0DAAC;qCAJhC,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CAgBtC"}
|
package/lib/node/app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
package/lib/node/app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c) 2022-
|
|
4
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
5
5
|
*
|
|
6
6
|
* This program and the accompanying materials are made available under the
|
|
7
7
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -20,6 +20,7 @@ const layout_elk_1 = require("@eclipse-glsp/layout-elk");
|
|
|
20
20
|
const node_1 = require("@eclipse-glsp/server/node");
|
|
21
21
|
const inversify_1 = require("inversify");
|
|
22
22
|
const workflow_layout_configurator_1 = require("../common/layout/workflow-layout-configurator");
|
|
23
|
+
const workflow_mcp_module_1 = require("../common/mcp/workflow-mcp-module");
|
|
23
24
|
const workflow_diagram_module_1 = require("../common/workflow-diagram-module");
|
|
24
25
|
const workflow_cli_parser_1 = require("./workflow-cli-parser");
|
|
25
26
|
async function launch(argv) {
|
|
@@ -34,16 +35,16 @@ async function launch(argv) {
|
|
|
34
35
|
process.on('uncaughtException', error => {
|
|
35
36
|
logger.error('Uncaught exception:', error);
|
|
36
37
|
});
|
|
37
|
-
const
|
|
38
|
-
const
|
|
38
|
+
const serverModule = new workflow_diagram_module_1.WorkflowServerModule().configureDiagramModule(new workflow_diagram_module_1.WorkflowDiagramModule(() => node_1.GModelStorage), new layout_elk_1.ElkLayoutModule({ algorithms: ['layered'], layoutConfigurator: workflow_layout_configurator_1.WorkflowLayoutConfigurator }), new workflow_mcp_module_1.WorkflowMcpDiagramModule());
|
|
39
|
+
const mcpServerModule = new workflow_mcp_module_1.WorkflowMcpServerModule();
|
|
39
40
|
if (options.webSocket) {
|
|
40
41
|
const launcher = appContainer.resolve(node_1.WebSocketServerLauncher);
|
|
41
|
-
launcher.configure(serverModule);
|
|
42
|
+
launcher.configure(serverModule, mcpServerModule);
|
|
42
43
|
await launcher.start({ port: options.port, host: options.host, path: 'workflow' });
|
|
43
44
|
}
|
|
44
45
|
else {
|
|
45
46
|
const launcher = appContainer.resolve(node_1.SocketServerLauncher);
|
|
46
|
-
launcher.configure(serverModule);
|
|
47
|
+
launcher.configure(serverModule, mcpServerModule);
|
|
47
48
|
await launcher.start({ port: options.port, host: options.host });
|
|
48
49
|
}
|
|
49
50
|
}
|
package/lib/node/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/node/app.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4BAA0B;AAE1B,
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/node/app.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4BAA0B;AAE1B,yDAA2D;AAC3D,oDAAkI;AAClI,yCAAsC;AAEtC,gGAA2F;AAC3F,2EAAsG;AACtG,+EAAgG;AAChG,+DAAgE;AAEhE,KAAK,UAAU,MAAM,CAAC,IAAe;IACjC,MAAM,OAAO,GAAG,IAAA,6CAAuB,GAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtD,MAAM,YAAY,GAAG,IAAI,qBAAS,EAAE,CAAC;IACrC,YAAY,CAAC,IAAI,CAAC,IAAA,sBAAe,EAAC,OAAO,CAAC,CAAC,CAAC;IAC5C,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,aAAM,CAAC,CAAC;IAExC,mHAAmH;IACnH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC3C,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,KAAK,CAAC,EAAE;QACpC,MAAM,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,IAAI,8CAAoB,EAAE,CAAC,sBAAsB,CAClE,IAAI,+CAAqB,CAAC,GAAG,EAAE,CAAC,oBAAa,CAAC,EAC9C,IAAI,4BAAe,CAAC,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,kBAAkB,EAAE,yDAA0B,EAAE,CAAC,EAChG,IAAI,8CAAwB,EAAE,CACjC,CAAC;IACF,MAAM,eAAe,GAAG,IAAI,6CAAuB,EAAE,CAAC;IACtD,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,8BAAuB,CAAC,CAAC;QAC/D,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAClD,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IACvF,CAAC;SAAM,CAAC;QACJ,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,2BAAoB,CAAC,CAAC;QAC5D,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAClD,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;AACL,CAAC;AAED,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0-next.10+bed0bb0",
|
|
4
4
|
"description": "GLSP node server for the workflow example",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -51,13 +51,14 @@
|
|
|
51
51
|
"bundle:browser": "webpack --env target=webworker ",
|
|
52
52
|
"clean": "rimraf lib *.tsbuildinfo",
|
|
53
53
|
"generate:index": "glsp generateIndex src/browser src/common src/node -s -f",
|
|
54
|
-
"lint": "eslint
|
|
54
|
+
"lint": "eslint ./src",
|
|
55
55
|
"watch": "tsc -w",
|
|
56
56
|
"watch:bundle": "webpack -w"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@eclipse-glsp/layout-elk": "2.
|
|
60
|
-
"@eclipse-glsp/server": "2.
|
|
59
|
+
"@eclipse-glsp/layout-elk": "2.7.0-next.10+bed0bb0",
|
|
60
|
+
"@eclipse-glsp/server": "2.7.0-next.10+bed0bb0",
|
|
61
|
+
"@eclipse-glsp/server-mcp": "2.7.0-next.10+bed0bb0",
|
|
61
62
|
"inversify": "^6.1.3"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
@@ -68,5 +69,5 @@
|
|
|
68
69
|
"publishConfig": {
|
|
69
70
|
"access": "public"
|
|
70
71
|
},
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "bed0bb089fb49e7a5cf5be5dfe02d4116dae944f"
|
|
72
73
|
}
|