@eclipse-glsp-examples/workflow-server 2.6.0 → 2.7.0-next.11

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 (66) hide show
  1. package/lib/browser/app.d.ts +2 -2
  2. package/lib/browser/app.d.ts.map +1 -1
  3. package/lib/browser/app.js +9 -4
  4. package/lib/browser/app.js.map +1 -1
  5. package/lib/browser/example1.json +558 -502
  6. package/lib/common/graph-extension.d.ts +1 -1
  7. package/lib/common/graph-extension.js +3 -3
  8. package/lib/common/graph-extension.js.map +1 -1
  9. package/lib/common/index.d.ts +5 -1
  10. package/lib/common/index.d.ts.map +1 -1
  11. package/lib/common/index.js +5 -1
  12. package/lib/common/index.js.map +1 -1
  13. package/lib/common/mcp/workflow-element-types-provider.d.ts +27 -0
  14. package/lib/common/mcp/workflow-element-types-provider.d.ts.map +1 -0
  15. package/lib/common/mcp/workflow-element-types-provider.js +62 -0
  16. package/lib/common/mcp/workflow-element-types-provider.js.map +1 -0
  17. package/lib/common/mcp/workflow-mcp-diagram-module.d.ts +27 -0
  18. package/lib/common/mcp/workflow-mcp-diagram-module.d.ts.map +1 -0
  19. package/lib/common/mcp/workflow-mcp-diagram-module.js +39 -0
  20. package/lib/common/mcp/workflow-mcp-diagram-module.js.map +1 -0
  21. package/lib/common/mcp/workflow-mcp-label-provider.d.ts +27 -0
  22. package/lib/common/mcp/workflow-mcp-label-provider.d.ts.map +1 -0
  23. package/lib/common/mcp/workflow-mcp-label-provider.js +48 -0
  24. package/lib/common/mcp/workflow-mcp-label-provider.js.map +1 -0
  25. package/lib/common/mcp/workflow-mcp-model-serializer.d.ts +29 -0
  26. package/lib/common/mcp/workflow-mcp-model-serializer.d.ts.map +1 -0
  27. package/lib/common/mcp/workflow-mcp-model-serializer.js +189 -0
  28. package/lib/common/mcp/workflow-mcp-model-serializer.js.map +1 -0
  29. package/lib/common/util/model-types.d.ts +1 -1
  30. package/lib/common/util/model-types.d.ts.map +1 -1
  31. package/lib/common/util/model-types.js +1 -2
  32. package/lib/common/util/model-types.js.map +1 -1
  33. package/lib/common/workflow-diagram-module.d.ts +3 -3
  34. package/lib/common/workflow-diagram-module.d.ts.map +1 -1
  35. package/lib/common/workflow-diagram-module.js +3 -3
  36. package/lib/common/workflow-diagram-module.js.map +1 -1
  37. package/lib/common/workflow-glsp-server.d.ts +4 -4
  38. package/lib/common/workflow-glsp-server.d.ts.map +1 -1
  39. package/lib/common/workflow-glsp-server.js +12 -13
  40. package/lib/common/workflow-glsp-server.js.map +1 -1
  41. package/lib/node/app.d.ts +1 -1
  42. package/lib/node/app.js +7 -5
  43. package/lib/node/app.js.map +1 -1
  44. package/lib/node/index.d.ts +2 -1
  45. package/lib/node/index.d.ts.map +1 -1
  46. package/lib/node/index.js +2 -1
  47. package/lib/node/index.js.map +1 -1
  48. package/lib/node/mcp/workflow-mcp-module.d.ts +23 -0
  49. package/lib/node/mcp/workflow-mcp-module.d.ts.map +1 -0
  50. package/lib/node/mcp/workflow-mcp-module.js +27 -0
  51. package/lib/node/mcp/workflow-mcp-module.js.map +1 -0
  52. package/package.json +7 -6
  53. package/src/browser/app.ts +11 -4
  54. package/src/browser/example1.json +558 -502
  55. package/src/common/graph-extension.ts +3 -3
  56. package/src/common/index.ts +5 -1
  57. package/src/common/mcp/workflow-element-types-provider.ts +54 -0
  58. package/src/common/mcp/workflow-mcp-diagram-module.ts +39 -0
  59. package/src/common/mcp/workflow-mcp-label-provider.ts +37 -0
  60. package/src/common/mcp/workflow-mcp-model-serializer.ts +187 -0
  61. package/src/common/util/model-types.ts +1 -2
  62. package/src/common/workflow-diagram-module.ts +5 -5
  63. package/src/common/workflow-glsp-server.ts +17 -10
  64. package/src/node/app.ts +13 -8
  65. package/src/node/index.ts +2 -1
  66. package/src/node/mcp/workflow-mcp-module.ts +23 -0
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModelTypes = void 0;
4
4
  /********************************************************************************
5
- * Copyright (c) 2022-2023 STMicroelectronics and others.
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,uEAAuE;AACvE,IAAiB,UAAU,CAsC1B;AAtCD,WAAiB,UAAU;IACV,wBAAa,GAAG,eAAe,CAAC;IAChC,qBAAU,GAAG,YAAY,CAAC;IAC1B,sBAAW,GAAG,aAAa,CAAC;IAC5B,qBAAU,GAAG,YAAY,CAAC;IAC1B,wBAAa,GAAG,eAAe,CAAC;IAChC,eAAI,GAAG,MAAM,CAAC;IACd,wBAAa,GAAG,cAAc,CAAC;IAC/B,wBAAa,GAAG,GAAG,WAAA,aAAa,WAAW,CAAC;IAC5C,qBAAU,GAAG,GAAG,WAAA,aAAa,QAAQ,CAAC;IACtC,oBAAS,GAAG,GAAG,WAAA,aAAa,OAAO,CAAC;IACpC,oBAAS,GAAG,GAAG,WAAA,aAAa,OAAO,CAAC;IACpC,eAAI,GAAG,MAAM,CAAC;IACd,sBAAW,GAAG,GAAG,WAAA,IAAI,SAAS,CAAC;IAC/B,yBAAc,GAAG,GAAG,WAAA,IAAI,YAAY,CAAC;IACrC,mBAAQ,GAAG,UAAU,CAAC;IACtB,oBAAS,GAAG,QAAQ,CAAC;IAElC,SAAgB,UAAU,CAAC,IAAY;QACnC,QAAQ,IAAI,EAAE,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AAQ,CAAC;IAElC,SAAgB,UAAU,CAAC,IAAY;QACnC,QAAQ,IAAI,EAAE,CAAC;YACX,KAAK,WAAA,aAAa;gBACd,OAAO,cAAc,CAAC;YAC1B,KAAK,WAAA,UAAU;gBACX,OAAO,WAAW,CAAC;YACvB,KAAK,WAAA,SAAS;gBACV,OAAO,UAAU,CAAC;YACtB,KAAK,WAAA,SAAS;gBACV,OAAO,UAAU,CAAC;YACtB,KAAK,WAAA,WAAW;gBACZ,OAAO,QAAQ,CAAC;YACpB,KAAK,WAAA,cAAc;gBACf,OAAO,WAAW,CAAC;YACvB,KAAK,WAAA,QAAQ;gBACT,OAAO,UAAU,CAAC;YACtB;gBACI,OAAO,SAAS,CAAC;QACzB,CAAC;IACL,CAAC;IAnBe,qBAAU,aAmBzB,CAAA;AACL,CAAC,EAtCgB,UAAU,0BAAV,UAAU,QAsC1B"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2023 STMicroelectronics and others.
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, GLSPServer, GModelDiagramModule, InstanceMultiBinding, LabelEditValidator, ModelValidator, MultiBinding, NavigationTargetProvider, NavigationTargetResolver, OperationHandlerConstructor, PopupModelFactory, ServerModule, SourceModelStorage } from '@eclipse-glsp/server';
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 bindGLSPServer(): BindingTarget<GLSPServer>;
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,UAAU,EACV,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,cAAc,IAAI,aAAa,CAAC,UAAU,CAAC;CAGjE;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,uBAA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AAI,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-2023 STMicroelectronics and others.
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
- bindGLSPServer() {
56
- return workflow_glsp_server_1.WorkflowGLSPServer;
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,iEAA4D;AAC5D,qEAAgE;AAGzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,qBAAY;IAC/B,cAAc;QAC7B,OAAO,yCAAkB,CAAC;IAC9B,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,WAAW;QACX,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IAEkB,0BAA0B,CAAC,OAA0D;QACpG,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC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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
+ {"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,2BA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G,CAAC,+EAAoC,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,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-2023 STMicroelectronics and others.
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 { Args, DefaultGLSPServer, InitializeResult, Logger, MaybePromise } from '@eclipse-glsp/server';
17
- export declare class WorkflowGLSPServer extends DefaultGLSPServer {
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
- protected handleInitializeArgs(result: InitializeResult, args: Args | undefined): MaybePromise<InitializeResult>;
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,EAAE,IAAI,EAAY,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGjH,qBACa,kBAAmB,SAAQ,iBAAiB;IACrD,WAAW,SAAa;IACxB,aAAa,SAAe;IAE5B,UACmB,MAAM,EAAE,MAAM,CAAC;cAEf,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,YAAY,CAAC,gBAAgB,CAAC;CAU5H"}
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.WorkflowGLSPServer = void 0;
12
+ exports.CustomArgsInitContribution = void 0;
13
13
  /********************************************************************************
14
- * Copyright (c) 2022-2023 STMicroelectronics and others.
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 WorkflowGLSPServer = class WorkflowGLSPServer extends server_1.DefaultGLSPServer {
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
- handleInitializeArgs(result, args) {
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.debug(`${timestamp}: ${message}`);
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.WorkflowGLSPServer = WorkflowGLSPServer;
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
- ], WorkflowGLSPServer.prototype, "logger", void 0);
51
- exports.WorkflowGLSPServer = WorkflowGLSPServer = __decorate([
49
+ ], CustomArgsInitContribution.prototype, "logger", void 0);
50
+ exports.CustomArgsInitContribution = CustomArgsInitContribution = __decorate([
52
51
  (0, inversify_1.injectable)()
53
- ], WorkflowGLSPServer);
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,iDAAiH;AACjH,yCAA+C;AAGxC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,0BAAiB;IAAlD;;QACH,gBAAW,GAAG,SAAS,CAAC;QACxB,kBAAa,GAAG,WAAW,CAAC;IAehC,CAAC;IAVsB,oBAAoB,CAAC,MAAwB,EAAE,IAAsB;QACpF,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,MAAM,SAAS,GAAG,iBAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,OAAO,GAAG,iBAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAErD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,SAAS,KAAK,OAAO,EAAE,CAAC,CAAC;QAC9C,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AAjBY,gDAAkB;AAKR;IADlB,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACY,eAAM;kDAAC;6BALzB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAiB9B"}
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-2024 STMicroelectronics and others.
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-2024 STMicroelectronics and others.
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,7 +20,9 @@ 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_diagram_module_1 = require("../common/mcp/workflow-mcp-diagram-module");
23
24
  const workflow_diagram_module_1 = require("../common/workflow-diagram-module");
25
+ const workflow_mcp_module_1 = require("./mcp/workflow-mcp-module");
24
26
  const workflow_cli_parser_1 = require("./workflow-cli-parser");
25
27
  async function launch(argv) {
26
28
  const options = (0, workflow_cli_parser_1.createWorkflowCliParser)().parse(argv);
@@ -34,16 +36,16 @@ async function launch(argv) {
34
36
  process.on('uncaughtException', error => {
35
37
  logger.error('Uncaught exception:', error);
36
38
  });
37
- const elkLayoutModule = (0, layout_elk_1.configureELKLayoutModule)({ algorithms: ['layered'], layoutConfigurator: workflow_layout_configurator_1.WorkflowLayoutConfigurator });
38
- const serverModule = new workflow_diagram_module_1.WorkflowServerModule().configureDiagramModule(new workflow_diagram_module_1.WorkflowDiagramModule(() => node_1.GModelStorage), elkLayoutModule);
39
+ 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_diagram_module_1.WorkflowMcpDiagramModule());
40
+ const mcpServerModule = new workflow_mcp_module_1.WorkflowMcpServerModule();
39
41
  if (options.webSocket) {
40
42
  const launcher = appContainer.resolve(node_1.WebSocketServerLauncher);
41
- launcher.configure(serverModule);
43
+ launcher.configure(serverModule, mcpServerModule);
42
44
  await launcher.start({ port: options.port, host: options.host, path: 'workflow' });
43
45
  }
44
46
  else {
45
47
  const launcher = appContainer.resolve(node_1.SocketServerLauncher);
46
- launcher.configure(serverModule);
48
+ launcher.configure(serverModule, mcpServerModule);
47
49
  await launcher.start({ port: options.port, host: options.host });
48
50
  }
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/node/app.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4BAA0B;AAE1B,yDAAoE;AACpE,oDAAkI;AAClI,yCAAsC;AAEtC,gG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 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2024 EclipseSource and others.
2
+ * Copyright (c) 2022-2026 EclipseSource 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,6 +13,7 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
+ export * from './mcp/workflow-mcp-module';
16
17
  export * from './reexport';
17
18
  export * from './workflow-cli-parser';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
package/lib/node/index.js CHANGED
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /********************************************************************************
18
- * Copyright (c) 2022-2024 EclipseSource and others.
18
+ * Copyright (c) 2022-2026 EclipseSource and others.
19
19
  *
20
20
  * This program and the accompanying materials are made available under the
21
21
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  *
30
30
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
31
31
  ********************************************************************************/
32
+ __exportStar(require("./mcp/workflow-mcp-module"), exports);
32
33
  __exportStar(require("./reexport"), exports);
33
34
  __exportStar(require("./workflow-cli-parser"), exports);
34
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,6CAA2B;AAC3B,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4DAA0C;AAC1C,6CAA2B;AAC3B,wDAAsC"}
@@ -0,0 +1,23 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2026 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { NodeMcpServerModule } from '@eclipse-glsp/server-mcp/node';
17
+ /**
18
+ * Workflow-scope MCP module — adopter hook for future workflow-specific server-scope bindings.
19
+ * Currently a no-op subclass; diagram-scope customizations live on `WorkflowMcpDiagramModule`.
20
+ */
21
+ export declare class WorkflowMcpServerModule extends NodeMcpServerModule {
22
+ }
23
+ //# sourceMappingURL=workflow-mcp-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-module.d.ts","sourceRoot":"","sources":["../../../src/node/mcp/workflow-mcp-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,mBAAmB;CAAG"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.WorkflowMcpServerModule = void 0;
19
+ const node_1 = require("@eclipse-glsp/server-mcp/node");
20
+ /**
21
+ * Workflow-scope MCP module — adopter hook for future workflow-specific server-scope bindings.
22
+ * Currently a no-op subclass; diagram-scope customizations live on `WorkflowMcpDiagramModule`.
23
+ */
24
+ class WorkflowMcpServerModule extends node_1.NodeMcpServerModule {
25
+ }
26
+ exports.WorkflowMcpServerModule = WorkflowMcpServerModule;
27
+ //# sourceMappingURL=workflow-mcp-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-module.js","sourceRoot":"","sources":["../../../src/node/mcp/workflow-mcp-module.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,wDAAoE;AAEpE;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,0BAAmB;CAAG;AAAnE,0DAAmE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp-examples/workflow-server",
3
- "version": "2.6.0",
3
+ "version": "2.7.0-next.11+ea5b153",
4
4
  "description": "GLSP node server for the workflow example",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -46,18 +46,19 @@
46
46
  "browser.js"
47
47
  ],
48
48
  "scripts": {
49
- "build": "tsc -b && yarn bundle",
49
+ "build": "tsc -b && yarn bundle && yarn bundle:browser",
50
50
  "bundle": "webpack",
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 --ext .ts,.tsx ./src",
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.6.0",
60
- "@eclipse-glsp/server": "2.6.0",
59
+ "@eclipse-glsp/layout-elk": "2.7.0-next.11+ea5b153",
60
+ "@eclipse-glsp/server": "2.7.0-next.11+ea5b153",
61
+ "@eclipse-glsp/server-mcp": "2.7.0-next.11+ea5b153",
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": "88356089bae7527c2df6c5331f75504495fe2aa4"
72
+ "gitHead": "ea5b15366a194a2cca2522f3b2011b03c9c85e6e"
72
73
  }
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2024 STMicroelectronics and others.
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
@@ -17,12 +17,17 @@ import 'reflect-metadata';
17
17
 
18
18
  import { configureELKLayoutModule } from '@eclipse-glsp/layout-elk';
19
19
  import { createAppModule, LogLevel, WorkerServerLauncher } from '@eclipse-glsp/server/browser';
20
+ import { McpWorkerBridge } from '@eclipse-glsp/server-mcp/browser';
20
21
  import { Container } from 'inversify';
21
22
  import { WorkflowLayoutConfigurator } from '../common/layout/workflow-layout-configurator';
23
+ import { WorkflowMcpDiagramModule } from '../common/mcp/workflow-mcp-diagram-module';
22
24
  import { WorkflowDiagramModule, WorkflowServerModule } from '../common/workflow-diagram-module';
23
25
  import { WorkflowMockModelStorage } from './mock-model-storage';
24
26
 
25
- export async function launch(argv?: string[]): Promise<void> {
27
+ export async function launch(_argv?: string[]): Promise<void> {
28
+ // Bridge must be created before any await so postMessages that arrive on the next event-loop tick aren't dropped.
29
+ const bridge = new McpWorkerBridge();
30
+
26
31
  const appContainer = new Container();
27
32
  appContainer.load(createAppModule({ logLevel: LogLevel.info }));
28
33
 
@@ -35,11 +40,13 @@ export async function launch(argv?: string[]): Promise<void> {
35
40
 
36
41
  const serverModule = new WorkflowServerModule().configureDiagramModule(
37
42
  new WorkflowDiagramModule(() => WorkflowMockModelStorage),
38
- elkLayoutModule
43
+ elkLayoutModule,
44
+ new WorkflowMcpDiagramModule()
39
45
  );
40
46
 
41
- launcher.configure(serverModule);
47
+ launcher.configure(serverModule, bridge.createServerModule());
42
48
 
49
+ // Resolves only on connection close — must be the last await.
43
50
  await launcher.start({});
44
51
  }
45
52