@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.
Files changed (51) hide show
  1. package/lib/browser/example1.json +558 -502
  2. package/lib/common/graph-extension.d.ts +1 -1
  3. package/lib/common/graph-extension.js +3 -3
  4. package/lib/common/graph-extension.js.map +1 -1
  5. package/lib/common/index.d.ts +4 -0
  6. package/lib/common/index.d.ts.map +1 -1
  7. package/lib/common/index.js +4 -0
  8. package/lib/common/index.js.map +1 -1
  9. package/lib/common/mcp/workflow-element-types-provider.d.ts +27 -0
  10. package/lib/common/mcp/workflow-element-types-provider.d.ts.map +1 -0
  11. package/lib/common/mcp/workflow-element-types-provider.js +62 -0
  12. package/lib/common/mcp/workflow-element-types-provider.js.map +1 -0
  13. package/lib/common/mcp/workflow-mcp-label-provider.d.ts +27 -0
  14. package/lib/common/mcp/workflow-mcp-label-provider.d.ts.map +1 -0
  15. package/lib/common/mcp/workflow-mcp-label-provider.js +48 -0
  16. package/lib/common/mcp/workflow-mcp-label-provider.js.map +1 -0
  17. package/lib/common/mcp/workflow-mcp-model-serializer.d.ts +29 -0
  18. package/lib/common/mcp/workflow-mcp-model-serializer.d.ts.map +1 -0
  19. package/lib/common/mcp/workflow-mcp-model-serializer.js +189 -0
  20. package/lib/common/mcp/workflow-mcp-model-serializer.js.map +1 -0
  21. package/lib/common/mcp/workflow-mcp-module.d.ts +36 -0
  22. package/lib/common/mcp/workflow-mcp-module.d.ts.map +1 -0
  23. package/lib/common/mcp/workflow-mcp-module.js +49 -0
  24. package/lib/common/mcp/workflow-mcp-module.js.map +1 -0
  25. package/lib/common/util/model-types.d.ts +1 -1
  26. package/lib/common/util/model-types.d.ts.map +1 -1
  27. package/lib/common/util/model-types.js +1 -2
  28. package/lib/common/util/model-types.js.map +1 -1
  29. package/lib/common/workflow-diagram-module.d.ts +3 -3
  30. package/lib/common/workflow-diagram-module.d.ts.map +1 -1
  31. package/lib/common/workflow-diagram-module.js +3 -3
  32. package/lib/common/workflow-diagram-module.js.map +1 -1
  33. package/lib/common/workflow-glsp-server.d.ts +4 -4
  34. package/lib/common/workflow-glsp-server.d.ts.map +1 -1
  35. package/lib/common/workflow-glsp-server.js +12 -13
  36. package/lib/common/workflow-glsp-server.js.map +1 -1
  37. package/lib/node/app.d.ts +1 -1
  38. package/lib/node/app.js +6 -5
  39. package/lib/node/app.js.map +1 -1
  40. package/package.json +6 -5
  41. package/src/browser/example1.json +558 -502
  42. package/src/common/graph-extension.ts +3 -3
  43. package/src/common/index.ts +4 -0
  44. package/src/common/mcp/workflow-element-types-provider.ts +54 -0
  45. package/src/common/mcp/workflow-mcp-label-provider.ts +37 -0
  46. package/src/common/mcp/workflow-mcp-model-serializer.ts +187 -0
  47. package/src/common/mcp/workflow-mcp-module.ts +54 -0
  48. package/src/common/util/model-types.ts +1 -2
  49. package/src/common/workflow-diagram-module.ts +5 -5
  50. package/src/common/workflow-glsp-server.ts +17 -10
  51. package/src/node/app.ts +12 -8
@@ -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
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CategoryNodeBuilder = exports.Category = exports.WeightedEdgeBuilder = exports.WeightedEdge = exports.TaskNodeBuilder = exports.TaskNode = exports.ActivityNodeBuilder = exports.ActivityNode = 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
@@ -64,7 +64,7 @@ class TaskNodeBuilder extends server_1.GNodeBuilder {
64
64
  createCompartmentHeader() {
65
65
  return new server_1.GLabelBuilder(server_1.GLabel)
66
66
  .type(model_types_1.ModelTypes.LABEL_HEADING)
67
- .id(this.proxy.id + '_classname')
67
+ .id(this.proxy.id + '_label')
68
68
  .text(this.proxy.name)
69
69
  .build();
70
70
  }
@@ -121,7 +121,7 @@ class CategoryNodeBuilder extends ActivityNodeBuilder {
121
121
  createCompartmentHeader() {
122
122
  return new server_1.GLabelBuilder(server_1.GLabel)
123
123
  .type(model_types_1.ModelTypes.LABEL_HEADING)
124
- .id(this.proxy.id + '_classname')
124
+ .id(this.proxy.id + '_label')
125
125
  .text(this.proxy.name)
126
126
  .build();
127
127
  }
@@ -1 +1 @@
1
- {"version":3,"file":"graph-extension.js","sourceRoot":"","sources":["../../src/common/graph-extension.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAW8B;AAC9B,oDAAgD;AAEhD,MAAa,YAAa,SAAQ,cAAK;IAGnC,MAAM,CAAU,OAAO;QACnB,OAAO,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC;CACJ;AAND,oCAMC;AAED,MAAa,mBAA2D,SAAQ,qBAAe;IAC3F,QAAQ,CAAC,QAAgB;QACrB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AALD,kDAKC;AAED,MAAa,QAAS,SAAQ,cAAK;IAM/B,MAAM,CAAU,OAAO;QACnB,OAAO,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,iBAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9G,CAAC;CACJ;AATD,4BASC;AAED,MAAa,eAA+C,SAAQ,qBAAe;IAC/E,IAAI,CAAC,IAAY;QACb,IAAI,CAAC,KAAK,CAAC,IAAI,GAA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AAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC;QACzD,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,sBAAsB;QAC5B,MAAM,aAAa,GAAS,EAAE,CAAC;QAC/B,OAAO,IAAI,4BAAmB,CAAC,qBAAY,CAAC;aACvC,IAAI,CAAC,wBAAU,CAAC,WAAW,CAAC;aAC5B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC;aAC7B,MAAM,CAAC,MAAM,CAAC;aACd,gBAAgB,CAAC,aAAa,CAAC;aAC/B,GAAG,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC;aACnC,KAAK,EAAE,CAAC;IACjB,CAAC;IAES,uBAAuB;QAC7B,OAAO,IAAI,sBAAa,CAAC,eAAM,CAAC;aAC3B,IAAI,CAAC,wBAAU,CAAC,aAAa,CAAC;aAC9B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC;aAC5B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;aACrB,KAAK,EAAE,CAAC;IACjB,CAAC;IAES,uBAAuB;QAC7B,OAAO,IAAI,4BAAmB,CAAC,qBAAY,CAAC;aACvC,IAAI,CAAC,wBAAU,CAAC,SAAS,CAAC;aAC1B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC;aAC7B,MAAM,CAAC,UAAU,CAAC;aAClB,gBAAgB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAC9D,KAAK,EAAE,CAAC;IACjB,CAAC;CACJ;AAvCD,kDAuCC"}
@@ -31,6 +31,10 @@ export * from './handler/grid-snapper';
31
31
  export * from './labeledit/workflow-label-edit-validator';
32
32
  export * from './layout/workflow-layout-configurator';
33
33
  export * from './marker/workflow-model-validator';
34
+ export * from './mcp/workflow-element-types-provider';
35
+ export * from './mcp/workflow-mcp-label-provider';
36
+ export * from './mcp/workflow-mcp-model-serializer';
37
+ export * from './mcp/workflow-mcp-module';
34
38
  export * from './model/workflow-navigation-target-resolver';
35
39
  export * from './provider/abstract-next-or-previous-navigation-target-provider';
36
40
  export * from './provider/next-node-navigation-target-provider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,mBAAmB,CAAC;AAClC,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iEAAiE,CAAC;AAChF,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,mBAAmB,CAAC;AAClC,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iEAAiE,CAAC;AAChF,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
@@ -47,6 +47,10 @@ __exportStar(require("./handler/grid-snapper"), exports);
47
47
  __exportStar(require("./labeledit/workflow-label-edit-validator"), exports);
48
48
  __exportStar(require("./layout/workflow-layout-configurator"), exports);
49
49
  __exportStar(require("./marker/workflow-model-validator"), exports);
50
+ __exportStar(require("./mcp/workflow-element-types-provider"), exports);
51
+ __exportStar(require("./mcp/workflow-mcp-label-provider"), exports);
52
+ __exportStar(require("./mcp/workflow-mcp-model-serializer"), exports);
53
+ __exportStar(require("./mcp/workflow-mcp-module"), exports);
50
54
  __exportStar(require("./model/workflow-navigation-target-resolver"), exports);
51
55
  __exportStar(require("./provider/abstract-next-or-previous-navigation-target-provider"), exports);
52
56
  __exportStar(require("./provider/next-node-navigation-target-provider"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;AAElF,oDAAkC;AAClC,yEAAuD;AACvD,0EAAwD;AACxD,oEAAkD;AAClD,yEAAuD;AACvD,gEAA8C;AAC9C,qEAAmD;AACnD,6EAA2D;AAC3D,qEAAmD;AACnD,uEAAqD;AACrD,sEAAoD;AACpD,gEAA8C;AAC9C,yEAAuD;AACvD,mFAAiE;AACjE,yDAAuC;AACvC,4EAA0D;AAC1D,wEAAsD;AACtD,oEAAkD;AAClD,8EAA4D;AAC5D,kGAAgF;AAChF,kFAAgE;AAChE,2FAAyE;AACzE,sFAAoE;AACpE,sFAAoE;AACpE,iFAA+D;AAC/D,yEAAuD;AACvD,wEAAsD;AACtD,iEAA+C;AAC/C,qDAAmC;AACnC,mEAAiD;AACjD,4DAA0C;AAC1C,mEAAiD;AACjD,yDAAuC;AACvC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;AAElF,oDAAkC;AAClC,yEAAuD;AACvD,0EAAwD;AACxD,oEAAkD;AAClD,yEAAuD;AACvD,gEAA8C;AAC9C,qEAAmD;AACnD,6EAA2D;AAC3D,qEAAmD;AACnD,uEAAqD;AACrD,sEAAoD;AACpD,gEAA8C;AAC9C,yEAAuD;AACvD,mFAAiE;AACjE,yDAAuC;AACvC,4EAA0D;AAC1D,wEAAsD;AACtD,oEAAkD;AAClD,wEAAsD;AACtD,oEAAkD;AAClD,sEAAoD;AACpD,4DAA0C;AAC1C,8EAA4D;AAC5D,kGAAgF;AAChF,kFAAgE;AAChE,2FAAyE;AACzE,sFAAoE;AACpE,sFAAoE;AACpE,iFAA+D;AAC/D,yEAAuD;AACvD,wEAAsD;AACtD,iEAA+C;AAC/C,qDAAmC;AACnC,mEAAiD;AACjD,4DAA0C;AAC1C,mEAAiD;AACjD,yDAAuC;AACvC,2DAAyC"}
@@ -0,0 +1,27 @@
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 { ElementTypes, ElementTypesProvider } from '@eclipse-glsp/server-mcp';
17
+ /**
18
+ * Workflow-specific {@link ElementTypesProvider}. Returns the constant set of creatable types
19
+ * with richer LLM-facing fields (`description`, `acceptsText`) than the default registry-scrape
20
+ * impl can infer. Bound on the workflow MCP diagram module via `bindElementTypesProvider()`;
21
+ * the standard `element-types` tool handler exposes the full entries via `structuredContent`
22
+ * (with a short summary in the text content) — no handler rebind needed.
23
+ */
24
+ export declare class WorkflowElementTypesProvider implements ElementTypesProvider {
25
+ get(): ElementTypes;
26
+ }
27
+ //# sourceMappingURL=workflow-element-types-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-element-types-provider.d.ts","sourceRoot":"","sources":["../../../src/common/mcp/workflow-element-types-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAoB,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAwBhG;;;;;;GAMG;AACH,qBACa,4BAA6B,YAAW,oBAAoB;IACrE,GAAG,IAAI,YAAY;CAGtB"}
@@ -0,0 +1,62 @@
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.WorkflowElementTypesProvider = void 0;
25
+ const server_1 = require("@eclipse-glsp/server");
26
+ const inversify_1 = require("inversify");
27
+ const model_types_1 = require("../util/model-types");
28
+ const NODE_TYPES = [
29
+ { id: model_types_1.ModelTypes.AUTOMATED_TASK, label: 'Automated Task', description: 'Task without human input', acceptsText: true },
30
+ { id: model_types_1.ModelTypes.MANUAL_TASK, label: 'Manual Task', description: 'Task done by a human', acceptsText: true },
31
+ { id: model_types_1.ModelTypes.JOIN_NODE, label: 'Join Node', description: 'Gateway that merges parallel flows', acceptsText: false },
32
+ { id: model_types_1.ModelTypes.FORK_NODE, label: 'Fork Node', description: 'Gateway that splits into parallel flows', acceptsText: false },
33
+ { id: model_types_1.ModelTypes.MERGE_NODE, label: 'Merge Node', description: 'Gateway that merges alternative flows', acceptsText: false },
34
+ { id: model_types_1.ModelTypes.DECISION_NODE, label: 'Decision Node', description: 'Gateway that splits into alternative flows', acceptsText: false },
35
+ { id: model_types_1.ModelTypes.CATEGORY, label: 'Category', description: 'Container node that groups other elements', acceptsText: true }
36
+ ];
37
+ const EDGE_TYPES = [
38
+ { id: server_1.DefaultTypes.EDGE, label: 'Edge', description: 'Standard control flow edge', acceptsText: false },
39
+ {
40
+ id: model_types_1.ModelTypes.WEIGHTED_EDGE,
41
+ label: 'Weighted Edge',
42
+ description: 'Edge that indicates a weighted probability. Typically used with a Decision Node.',
43
+ acceptsText: false
44
+ }
45
+ ];
46
+ /**
47
+ * Workflow-specific {@link ElementTypesProvider}. Returns the constant set of creatable types
48
+ * with richer LLM-facing fields (`description`, `acceptsText`) than the default registry-scrape
49
+ * impl can infer. Bound on the workflow MCP diagram module via `bindElementTypesProvider()`;
50
+ * the standard `element-types` tool handler exposes the full entries via `structuredContent`
51
+ * (with a short summary in the text content) — no handler rebind needed.
52
+ */
53
+ let WorkflowElementTypesProvider = class WorkflowElementTypesProvider {
54
+ get() {
55
+ return { nodeTypes: NODE_TYPES, edgeTypes: EDGE_TYPES };
56
+ }
57
+ };
58
+ exports.WorkflowElementTypesProvider = WorkflowElementTypesProvider;
59
+ exports.WorkflowElementTypesProvider = WorkflowElementTypesProvider = __decorate([
60
+ (0, inversify_1.injectable)()
61
+ ], WorkflowElementTypesProvider);
62
+ //# sourceMappingURL=workflow-element-types-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-element-types-provider.js","sourceRoot":"","sources":["../../../src/common/mcp/workflow-element-types-provider.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,iDAAoD;AAEpD,yCAAuC;AACvC,qDAAiD;AAEjD,MAAM,UAAU,GAAuB;IACnC,EAAE,EAAE,EAAE,wBAAU,CAAC,cAAc,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,0BAA0B,EAAE,WAAW,EAAE,IAAI,EAAE;IACtH,EAAE,EAAE,EAAE,wBAAU,CAAC,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,sBAAsB,EAAE,WAAW,EAAE,IAAI,EAAE;IAC5G,EAAE,EAAE,EAAE,wBAAU,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,oCAAoC,EAAE,WAAW,EAAE,KAAK,EAAE;IACvH,EAAE,EAAE,EAAE,wBAAU,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,yCAAyC,EAAE,WAAW,EAAE,KAAK,EAAE;IAC5H,EAAE,EAAE,EAAE,wBAAU,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,uCAAuC,EAAE,WAAW,EAAE,KAAK,EAAE;IAC5H,EAAE,EAAE,EAAE,wBAAU,CAAC,aAAa,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,4CAA4C,EAAE,WAAW,EAAE,KAAK,EAAE;IACvI,EAAE,EAAE,EAAE,wBAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,2CAA2C,EAAE,WAAW,EAAE,IAAI,EAAE;CAC9H,CAAC;AAEF,MAAM,UAAU,GAAuB;IACnC,EAAE,EAAE,EAAE,qBAAY,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,WAAW,EAAE,KAAK,EAAE;IACvG;QACI,EAAE,EAAE,wBAAU,CAAC,aAAa;QAC5B,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,kFAAkF;QAC/F,WAAW,EAAE,KAAK;KACrB;CACJ,CAAC;AAEF;;;;;;GAMG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACrC,GAAG;QACC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;IAC5D,CAAC;CACJ,CAAA;AAJY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAIxC"}
@@ -0,0 +1,27 @@
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 { GLabel, GModelElement } from '@eclipse-glsp/server';
17
+ import { DefaultMcpLabelProvider } from '@eclipse-glsp/server-mcp';
18
+ /**
19
+ * Workflow-specific {@link DefaultMcpLabelProvider}: category labels are nested inside a
20
+ * compartment-header child rather than directly under the category, so the default
21
+ * direct-child lookup misses them. Other workflow element types fall through to the
22
+ * inherited default.
23
+ */
24
+ export declare class WorkflowMcpLabelProvider extends DefaultMcpLabelProvider {
25
+ getLabel(element: GModelElement): GLabel | undefined;
26
+ }
27
+ //# sourceMappingURL=workflow-mcp-label-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-label-provider.d.ts","sourceRoot":"","sources":["../../../src/common/mcp/workflow-mcp-label-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAInE;;;;;GAKG;AACH,qBACa,wBAAyB,SAAQ,uBAAuB;IACxD,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS;CAOhE"}
@@ -0,0 +1,48 @@
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.WorkflowMcpLabelProvider = void 0;
25
+ const server_1 = require("@eclipse-glsp/server");
26
+ const server_mcp_1 = require("@eclipse-glsp/server-mcp");
27
+ const inversify_1 = require("inversify");
28
+ const model_types_1 = require("../util/model-types");
29
+ /**
30
+ * Workflow-specific {@link DefaultMcpLabelProvider}: category labels are nested inside a
31
+ * compartment-header child rather than directly under the category, so the default
32
+ * direct-child lookup misses them. Other workflow element types fall through to the
33
+ * inherited default.
34
+ */
35
+ let WorkflowMcpLabelProvider = class WorkflowMcpLabelProvider extends server_mcp_1.DefaultMcpLabelProvider {
36
+ getLabel(element) {
37
+ if (element.type === model_types_1.ModelTypes.CATEGORY) {
38
+ const header = element.children.find(child => child.type === model_types_1.ModelTypes.COMP_HEADER);
39
+ return header === null || header === void 0 ? void 0 : header.children.find((child) => child instanceof server_1.GLabel);
40
+ }
41
+ return super.getLabel(element);
42
+ }
43
+ };
44
+ exports.WorkflowMcpLabelProvider = WorkflowMcpLabelProvider;
45
+ exports.WorkflowMcpLabelProvider = WorkflowMcpLabelProvider = __decorate([
46
+ (0, inversify_1.injectable)()
47
+ ], WorkflowMcpLabelProvider);
48
+ //# sourceMappingURL=workflow-mcp-label-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-label-provider.js","sourceRoot":"","sources":["../../../src/common/mcp/workflow-mcp-label-provider.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,iDAA6D;AAC7D,yDAAmE;AACnE,yCAAuC;AACvC,qDAAiD;AAEjD;;;;;GAKG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oCAAuB;IACxD,QAAQ,CAAC,OAAsB;QACpC,IAAI,OAAO,CAAC,IAAI,KAAK,wBAAU,CAAC,QAAQ,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,wBAAU,CAAC,WAAW,CAAC,CAAC;YACrF,OAAO,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,KAAK,YAAY,eAAM,CAAC,CAAC;QACtF,CAAC;QACD,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACJ,CAAA;AARY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CAQpC"}
@@ -0,0 +1,29 @@
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 { GModelElement } from '@eclipse-glsp/graph';
17
+ import { MarkdownMcpModelSerializer, SerializedElement } from '@eclipse-glsp/server-mcp';
18
+ /**
19
+ * As compared to the {@link MarkdownMcpModelSerializer}, this is a specific implementation and we
20
+ * know not only the structure of our graph but also each relevant attribute. This enables us to
21
+ * order them semantically so the produced serialization makes more sense if read with semantics
22
+ * mind. As LLMs (i.e., the MCP clients) work semantically, this is superior to a random ordering.
23
+ * Furthermore, including only the relevant information without redundancies decreases context size.
24
+ */
25
+ export declare class WorkflowMcpModelSerializer extends MarkdownMcpModelSerializer {
26
+ prepareElement(element: GModelElement): Record<string, SerializedElement[]>;
27
+ private adjustElement;
28
+ }
29
+ //# sourceMappingURL=workflow-mcp-model-serializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-model-serializer.d.ts","sourceRoot":"","sources":["../../../src/common/mcp/workflow-mcp-model-serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAIzF;;;;;;GAMG;AACH,qBACa,0BAA2B,SAAQ,0BAA0B;IAC7D,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAqCpF,OAAO,CAAC,aAAa;CAsHxB"}
@@ -0,0 +1,189 @@
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.WorkflowMcpModelSerializer = void 0;
25
+ const server_1 = require("@eclipse-glsp/server");
26
+ const server_mcp_1 = require("@eclipse-glsp/server-mcp");
27
+ const inversify_1 = require("inversify");
28
+ const model_types_1 = require("../util/model-types");
29
+ /**
30
+ * As compared to the {@link MarkdownMcpModelSerializer}, this is a specific implementation and we
31
+ * know not only the structure of our graph but also each relevant attribute. This enables us to
32
+ * order them semantically so the produced serialization makes more sense if read with semantics
33
+ * mind. As LLMs (i.e., the MCP clients) work semantically, this is superior to a random ordering.
34
+ * Furthermore, including only the relevant information without redundancies decreases context size.
35
+ */
36
+ let WorkflowMcpModelSerializer = class WorkflowMcpModelSerializer extends server_mcp_1.MarkdownMcpModelSerializer {
37
+ prepareElement(element) {
38
+ var _a;
39
+ // Pass the live parent's id so the input element gets `parentId` set even when the
40
+ // spread inside `flattenStructure` doesn't carry the (typically non-enumerable) `parent`
41
+ // reference. Without this, `query-elements` inspect on a single leaf drops `parentId`,
42
+ // creating an inconsistency with `diagram-model`.
43
+ const elements = this.flattenStructure(element, (_a = element.parent) === null || _a === void 0 ? void 0 : _a.id);
44
+ // Define the order of keys
45
+ const result = {
46
+ [server_1.DefaultTypes.GRAPH]: [],
47
+ [model_types_1.ModelTypes.CATEGORY]: [],
48
+ [model_types_1.ModelTypes.AUTOMATED_TASK]: [],
49
+ [model_types_1.ModelTypes.MANUAL_TASK]: [],
50
+ [model_types_1.ModelTypes.FORK_NODE]: [],
51
+ [model_types_1.ModelTypes.JOIN_NODE]: [],
52
+ [model_types_1.ModelTypes.DECISION_NODE]: [],
53
+ [model_types_1.ModelTypes.MERGE_NODE]: [],
54
+ [server_1.DefaultTypes.EDGE]: [],
55
+ [model_types_1.ModelTypes.WEIGHTED_EDGE]: []
56
+ };
57
+ elements.forEach(serialized => {
58
+ this.combinePositionAndSize(serialized);
59
+ const adjustedElement = this.adjustElement(serialized);
60
+ if (!adjustedElement) {
61
+ return;
62
+ }
63
+ const type = serialized.type;
64
+ if (typeof type === 'string' && result[type]) {
65
+ result[type].push(adjustedElement);
66
+ }
67
+ });
68
+ return result;
69
+ }
70
+ adjustElement(element) {
71
+ var _a, _b;
72
+ const type = element.type;
73
+ switch (type) {
74
+ case model_types_1.ModelTypes.AUTOMATED_TASK:
75
+ case model_types_1.ModelTypes.MANUAL_TASK: {
76
+ const children = Array.isArray(element.children) ? element.children : [];
77
+ const label = children.find(child => child.type === model_types_1.ModelTypes.LABEL_HEADING);
78
+ if (!label || !server_1.Dimension.is(label.size)) {
79
+ return undefined;
80
+ }
81
+ // For tasks, the only content with impact on element size is the label
82
+ // Therefore, all other factors get integrated into the label size for the AI to do proper resizing operations
83
+ const labelSize = {
84
+ // 10px padding right, 31px padding left (incl. icon)
85
+ width: Math.trunc(label.size.width + 10 + 31),
86
+ // 7px padding top and bottom each
87
+ height: Math.trunc(label.size.height + 14)
88
+ };
89
+ // If the task lives inside a `STRUCTURE` (a layout-only wrapper), report the
90
+ // structure's parent as the logical parent. Falls back to the direct `parentId`
91
+ // when the task is at the root or the structure has no parent.
92
+ const liveParent = element.parent;
93
+ const parentId = (liveParent === null || liveParent === void 0 ? void 0 : liveParent.type) === model_types_1.ModelTypes.STRUCTURE ? (_b = (_a = liveParent.parent) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : element.parentId : element.parentId;
94
+ return {
95
+ id: element.id,
96
+ type,
97
+ position: element.position,
98
+ size: element.size,
99
+ bounds: element.bounds,
100
+ label: label.text,
101
+ labelSize,
102
+ parentId
103
+ };
104
+ }
105
+ case model_types_1.ModelTypes.CATEGORY: {
106
+ const children = Array.isArray(element.children) ? element.children : [];
107
+ const header = children.find(child => child.type === model_types_1.ModelTypes.COMP_HEADER);
108
+ const headerChildren = header && Array.isArray(header.children) ? header.children : [];
109
+ const label = headerChildren.find(child => child.type === model_types_1.ModelTypes.LABEL_HEADING);
110
+ if (!label || !server_1.Dimension.is(label.size)) {
111
+ return undefined;
112
+ }
113
+ const labelSize = {
114
+ width: Math.trunc(label.size.width + 20),
115
+ height: Math.trunc(label.size.height + 20)
116
+ };
117
+ // `combinePositionAndSize` (in MarkdownMcpModelSerializer) omits `size`/`bounds`
118
+ // when an element has no explicit geometry yet, so the LLM doesn't try to "fix"
119
+ // placeholder bounds. Categories normally do have an explicit size in the model,
120
+ // but if a freshly created (or otherwise unsized) category lands here, skip the
121
+ // derived `usableSpaceSize` rather than crashing on `element.size.width`.
122
+ const usableSpaceSize = server_1.Dimension.is(element.size)
123
+ ? {
124
+ width: Math.trunc(Math.max(0, element.size.width - 10)),
125
+ height: Math.trunc(Math.max(0, element.size.height - labelSize.height - 10))
126
+ }
127
+ : undefined;
128
+ return {
129
+ id: element.id,
130
+ type,
131
+ isContainer: true,
132
+ position: element.position,
133
+ size: element.size,
134
+ bounds: element.bounds,
135
+ label: label.text,
136
+ labelSize,
137
+ usableSpaceSize,
138
+ parentId: element.parentId
139
+ };
140
+ }
141
+ case model_types_1.ModelTypes.JOIN_NODE:
142
+ case model_types_1.ModelTypes.MERGE_NODE:
143
+ case model_types_1.ModelTypes.DECISION_NODE:
144
+ case model_types_1.ModelTypes.FORK_NODE: {
145
+ return {
146
+ id: element.id,
147
+ type,
148
+ position: element.position,
149
+ size: element.size,
150
+ bounds: element.bounds,
151
+ parentId: element.parentId
152
+ };
153
+ }
154
+ case server_1.DefaultTypes.EDGE: {
155
+ return {
156
+ id: element.id,
157
+ type,
158
+ sourceId: element.sourceId,
159
+ targetId: element.targetId,
160
+ parentId: element.parentId
161
+ };
162
+ }
163
+ case model_types_1.ModelTypes.WEIGHTED_EDGE: {
164
+ return {
165
+ id: element.id,
166
+ type,
167
+ sourceId: element.sourceId,
168
+ targetId: element.targetId,
169
+ probability: element.probability,
170
+ parentId: element.parentId
171
+ };
172
+ }
173
+ case server_1.DefaultTypes.GRAPH: {
174
+ return {
175
+ id: element.id,
176
+ type,
177
+ isContainer: true
178
+ };
179
+ }
180
+ default:
181
+ return undefined;
182
+ }
183
+ }
184
+ };
185
+ exports.WorkflowMcpModelSerializer = WorkflowMcpModelSerializer;
186
+ exports.WorkflowMcpModelSerializer = WorkflowMcpModelSerializer = __decorate([
187
+ (0, inversify_1.injectable)()
188
+ ], WorkflowMcpModelSerializer);
189
+ //# sourceMappingURL=workflow-mcp-model-serializer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-model-serializer.js","sourceRoot":"","sources":["../../../src/common/mcp/workflow-mcp-model-serializer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAGlF,iDAA+D;AAC/D,yDAAyF;AACzF,yCAAuC;AACvC,qDAAiD;AAEjD;;;;;;GAMG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,uCAA0B;IAC7D,cAAc,CAAC,OAAsB;;QAC1C,mFAAmF;QACnF,yFAAyF;QACzF,uFAAuF;QACvF,kDAAkD;QAClD,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAuC,EAAE,MAAA,OAAO,CAAC,MAAM,0CAAE,EAAE,CAAC,CAAC;QAEpG,2BAA2B;QAC3B,MAAM,MAAM,GAAwC;YAChD,CAAC,qBAAY,CAAC,KAAK,CAAC,EAAE,EAAE;YACxB,CAAC,wBAAU,CAAC,QAAQ,CAAC,EAAE,EAAE;YACzB,CAAC,wBAAU,CAAC,cAAc,CAAC,EAAE,EAAE;YAC/B,CAAC,wBAAU,CAAC,WAAW,CAAC,EAAE,EAAE;YAC5B,CAAC,wBAAU,CAAC,SAAS,CAAC,EAAE,EAAE;YAC1B,CAAC,wBAAU,CAAC,SAAS,CAAC,EAAE,EAAE;YAC1B,CAAC,wBAAU,CAAC,aAAa,CAAC,EAAE,EAAE;YAC9B,CAAC,wBAAU,CAAC,UAAU,CAAC,EAAE,EAAE;YAC3B,CAAC,qBAAY,CAAC,IAAI,CAAC,EAAE,EAAE;YACvB,CAAC,wBAAU,CAAC,aAAa,CAAC,EAAE,EAAE;SACjC,CAAC;QACF,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;YAC1B,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;Y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ACA,0BAA0B,CA4JtC"}
@@ -0,0 +1,36 @@
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 { BindingTarget } from '@eclipse-glsp/server';
17
+ import { DefaultMcpDiagramModule, DefaultMcpServerModule, ElementTypesProvider, McpLabelProvider, McpModelSerializer } from '@eclipse-glsp/server-mcp';
18
+ /**
19
+ * Workflow-specific server-scope MCP module. Currently no server-scope customizations beyond
20
+ * the defaults — every diagram-type-specific override lives on {@link WorkflowMcpDiagramModule}.
21
+ * Kept as the named entry point and as a hook for future server-scope extensions.
22
+ */
23
+ export declare class WorkflowMcpServerModule extends DefaultMcpServerModule {
24
+ }
25
+ /**
26
+ * Workflow-specific diagram-scope MCP module — swaps in the workflow-aware
27
+ * {@link McpLabelProvider}, {@link McpModelSerializer}, and {@link ElementTypesProvider}.
28
+ * `LayoutMcpToolHandler` ships in the default tool set and self-skips when no `LayoutEngine`
29
+ * is bound, so workflow doesn't need to add it explicitly.
30
+ */
31
+ export declare class WorkflowMcpDiagramModule extends DefaultMcpDiagramModule {
32
+ protected bindLabelProvider(): BindingTarget<McpLabelProvider>;
33
+ protected bindModelSerializer(): BindingTarget<McpModelSerializer>;
34
+ protected bindElementTypesProvider(): BindingTarget<ElementTypesProvider>;
35
+ }
36
+ //# sourceMappingURL=workflow-mcp-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-module.d.ts","sourceRoot":"","sources":["../../../src/common/mcp/workflow-mcp-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EACrB,MAAM,0BAA0B,CAAC;AAKlC;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,sBAAsB;CAAG;AAEtE;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,uBAAuB;cAC9C,iBAAiB,IAAI,aAAa,CAAC,gBAAgB,CAAC;cAIpD,mBAAmB,IAAI,aAAa,CAAC,kBAAkB,CAAC;cAIxD,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;CAGrF"}
@@ -0,0 +1,49 @@
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.WorkflowMcpDiagramModule = exports.WorkflowMcpServerModule = void 0;
19
+ const server_mcp_1 = require("@eclipse-glsp/server-mcp");
20
+ const workflow_element_types_provider_1 = require("./workflow-element-types-provider");
21
+ const workflow_mcp_label_provider_1 = require("./workflow-mcp-label-provider");
22
+ const workflow_mcp_model_serializer_1 = require("./workflow-mcp-model-serializer");
23
+ /**
24
+ * Workflow-specific server-scope MCP module. Currently no server-scope customizations beyond
25
+ * the defaults — every diagram-type-specific override lives on {@link WorkflowMcpDiagramModule}.
26
+ * Kept as the named entry point and as a hook for future server-scope extensions.
27
+ */
28
+ class WorkflowMcpServerModule extends server_mcp_1.DefaultMcpServerModule {
29
+ }
30
+ exports.WorkflowMcpServerModule = WorkflowMcpServerModule;
31
+ /**
32
+ * Workflow-specific diagram-scope MCP module — swaps in the workflow-aware
33
+ * {@link McpLabelProvider}, {@link McpModelSerializer}, and {@link ElementTypesProvider}.
34
+ * `LayoutMcpToolHandler` ships in the default tool set and self-skips when no `LayoutEngine`
35
+ * is bound, so workflow doesn't need to add it explicitly.
36
+ */
37
+ class WorkflowMcpDiagramModule extends server_mcp_1.DefaultMcpDiagramModule {
38
+ bindLabelProvider() {
39
+ return workflow_mcp_label_provider_1.WorkflowMcpLabelProvider;
40
+ }
41
+ bindModelSerializer() {
42
+ return workflow_mcp_model_serializer_1.WorkflowMcpModelSerializer;
43
+ }
44
+ bindElementTypesProvider() {
45
+ return workflow_element_types_provider_1.WorkflowElementTypesProvider;
46
+ }
47
+ }
48
+ exports.WorkflowMcpDiagramModule = WorkflowMcpDiagramModule;
49
+ //# sourceMappingURL=workflow-mcp-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp-module.js","sourceRoot":"","sources":["../../../src/common/mcp/workflow-mcp-module.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAGlF,yDAMkC;AAClC,uFAAiF;AACjF,+EAAyE;AACzE,mFAA6E;AAE7E;;;;GAIG;AACH,MAAa,uBAAwB,SAAQ,mCAAsB;CAAG;AAAtE,0DAAsE;AAEtE;;;;;GAKG;AACH,MAAa,wBAAyB,SAAQ,oCAAuB;IAC9C,iBAAiB;QAChC,OAAO,sDAAwB,CAAC;IACpC,CAAC;IAEkB,mBAAmB;QAClC,OAAO,0DAA0B,CAAC;IACtC,CAAC;IAEkB,wBAAwB;QACvC,OAAO,8DAA4B,CAAC;IACxC,CAAC;CACJ;AAZD,4DAYC"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"model-types.d.ts","sourceRoot":"","sources":["../../../src/common/util/model-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,yBAAiB,UAAU,CAAC;IACjB,MAAM,aAAa,kBAAkB,CAAC;IACtC,MAAM,UAAU,eAAe,CAAC;IAChC,MAAM,WAAW,gBAAgB,CAAC;IAClC,MAAM,UAAU,eAAe,CAAC;IAChC,MAAM,aAAa,kBAAkB,CAAC;IACtC,MAAM,IAAI,SAAS,CAAC;IACpB,MAAM,aAAa,iBAAiB,CAAC;IACrC,MAAM,aAAa,0BAA8B,CAAC;IAClD,MAAM,UAAU,uBAA2B,CAAC;IAC5C,MAAM,SAAS,sBAA0B,CAAC;IAC1C,MAAM,SAAS,sBAA0B,CAAC;IAC1C,MAAM,IAAI,SAAS,CAAC;IACpB,MAAM,WAAW,gBAAmB,CAAC;IACrC,MAAM,cAAc,mBAAsB,CAAC;IAC3C,MAAM,QAAQ,aAAa,CAAC;IAC5B,MAAM,SAAS,WAAW,CAAC;IAElC,SAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmB/C;CACJ"}
1
+ {"version":3,"file":"model-types.d.ts","sourceRoot":"","sources":["../../../src/common/util/model-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yBAAiB,UAAU,CAAC;IACjB,MAAM,aAAa,kBAAkB,CAAC;IACtC,MAAM,UAAU,eAAe,CAAC;IAChC,MAAM,WAAW,gBAAgB,CAAC;IAClC,MAAM,UAAU,eAAe,CAAC;IAChC,MAAM,aAAa,kBAA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