@hexabot-ai/api 3.2.2-alpha.14 → 3.2.2-alpha.16

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 (89) hide show
  1. package/dist/mcp/mcp-api.module.js +2 -2
  2. package/dist/mcp/mcp-api.module.js.map +1 -1
  3. package/dist/mcp/tools/catalog-mcp.tools.d.ts +63 -0
  4. package/dist/mcp/tools/catalog-mcp.tools.js +135 -0
  5. package/dist/mcp/tools/catalog-mcp.tools.js.map +1 -0
  6. package/dist/mcp/tools/cms-mcp.tools.d.ts +128 -0
  7. package/dist/mcp/tools/cms-mcp.tools.js +242 -0
  8. package/dist/mcp/tools/cms-mcp.tools.js.map +1 -0
  9. package/dist/mcp/tools/credential-mcp.tools.d.ts +19 -0
  10. package/dist/mcp/tools/credential-mcp.tools.js +82 -0
  11. package/dist/mcp/tools/credential-mcp.tools.js.map +1 -0
  12. package/dist/mcp/tools/hexabot-mcp-tool.base.d.ts +22 -0
  13. package/dist/mcp/tools/hexabot-mcp-tool.base.js +48 -0
  14. package/dist/mcp/tools/hexabot-mcp-tool.base.js.map +1 -0
  15. package/dist/mcp/tools/hexabot-mcp.schemas.d.ts +41 -0
  16. package/dist/mcp/tools/hexabot-mcp.schemas.js +36 -0
  17. package/dist/mcp/tools/hexabot-mcp.schemas.js.map +1 -0
  18. package/dist/mcp/tools/hexabot-mcp.tools.d.ts +1 -1329
  19. package/dist/mcp/tools/hexabot-mcp.tools.js +14 -1097
  20. package/dist/mcp/tools/hexabot-mcp.tools.js.map +1 -1
  21. package/dist/mcp/tools/hexabot-mcp.utils.d.ts +1 -0
  22. package/dist/mcp/tools/hexabot-mcp.utils.js +9 -0
  23. package/dist/mcp/tools/hexabot-mcp.utils.js.map +1 -0
  24. package/dist/mcp/tools/index.d.ts +22 -0
  25. package/dist/mcp/tools/index.js +50 -0
  26. package/dist/mcp/tools/index.js.map +1 -0
  27. package/dist/mcp/tools/mcp-server-mcp.tools.d.ts +77 -0
  28. package/dist/mcp/tools/mcp-server-mcp.tools.js +130 -0
  29. package/dist/mcp/tools/mcp-server-mcp.tools.js.map +1 -0
  30. package/dist/mcp/tools/memory-definition-mcp.tools.d.ts +57 -0
  31. package/dist/mcp/tools/memory-definition-mcp.tools.js +128 -0
  32. package/dist/mcp/tools/memory-definition-mcp.tools.js.map +1 -0
  33. package/dist/mcp/tools/workflow-mcp.helper.d.ts +141 -0
  34. package/dist/mcp/tools/workflow-mcp.helper.js +108 -0
  35. package/dist/mcp/tools/workflow-mcp.helper.js.map +1 -0
  36. package/dist/mcp/tools/workflow-mcp.tools.d.ts +468 -0
  37. package/dist/mcp/tools/workflow-mcp.tools.js +222 -0
  38. package/dist/mcp/tools/workflow-mcp.tools.js.map +1 -0
  39. package/dist/mcp/tools/workflow-run-mcp.tools.d.ts +347 -0
  40. package/dist/mcp/tools/workflow-run-mcp.tools.js +229 -0
  41. package/dist/mcp/tools/workflow-run-mcp.tools.js.map +1 -0
  42. package/dist/mcp/tools/workflow-version-mcp.tools.d.ts +230 -0
  43. package/dist/mcp/tools/workflow-version-mcp.tools.js +211 -0
  44. package/dist/mcp/tools/workflow-version-mcp.tools.js.map +1 -0
  45. package/dist/static/assets/{browser-ponyfill-D3QB7SUD.js → browser-ponyfill-CBXq65SP.js} +1 -1
  46. package/dist/static/assets/{cssMode-Bk0-m_Ij.js → cssMode-CN8f6H-j.js} +1 -1
  47. package/dist/static/assets/{freemarker2-D1tTqqt8.js → freemarker2-Dfrb95Lt.js} +1 -1
  48. package/dist/static/assets/{handlebars-D3VQYLDj.js → handlebars-B2cershf.js} +1 -1
  49. package/dist/static/assets/{html-Cmhr3-6_.js → html-CfjuUmTR.js} +1 -1
  50. package/dist/static/assets/{htmlMode-Bb5Kynv_.js → htmlMode-pl8CUTaA.js} +1 -1
  51. package/dist/static/assets/{index-JPQj6OiL.js → index-Cq8K5Poc.js} +2131 -2131
  52. package/dist/static/assets/{index-BI1BtkYv.css → index-D-b9KTZd.css} +1 -1
  53. package/dist/static/assets/{javascript-BkQdNyFT.js → javascript-Be45wN2i.js} +1 -1
  54. package/dist/static/assets/{jsonMode-CS1296LF.js → jsonMode-yPU1rg8t.js} +1 -1
  55. package/dist/static/assets/{liquid-C9ufUE-r.js → liquid-BMJibvBr.js} +1 -1
  56. package/dist/static/assets/{lspLanguageFeatures-Dxd2SsrE.js → lspLanguageFeatures-Cxz6b29K.js} +1 -1
  57. package/dist/static/assets/{mdx-Dm4bC48D.js → mdx-DpvXygi3.js} +1 -1
  58. package/dist/static/assets/{python-ZvBWpr_q.js → python-BHEnNcMm.js} +1 -1
  59. package/dist/static/assets/{razor-DBj-LyWR.js → razor-B6-tNhh_.js} +1 -1
  60. package/dist/static/assets/{tsMode-DzMlJB2i.js → tsMode-J4SJIY5C.js} +1 -1
  61. package/dist/static/assets/{typescript-Cfo3bzpy.js → typescript-Df82IAgp.js} +1 -1
  62. package/dist/static/assets/{xml-ZyceR0L3.js → xml-C8jr31yy.js} +1 -1
  63. package/dist/static/assets/{yaml-oyu_gOar.js → yaml-BEd1RzBW.js} +1 -1
  64. package/dist/static/index.html +2 -2
  65. package/dist/tsconfig.build.tsbuildinfo +1 -1
  66. package/dist/websocket/websocket.gateway.d.ts +2 -1
  67. package/dist/websocket/websocket.gateway.js.map +1 -1
  68. package/dist/workflow/services/workflow.service.d.ts +9 -8
  69. package/dist/workflow/services/workflow.service.js +50 -35
  70. package/dist/workflow/services/workflow.service.js.map +1 -1
  71. package/package.json +4 -4
  72. package/src/mcp/README.md +12 -2
  73. package/src/mcp/mcp-api.module.ts +2 -2
  74. package/src/mcp/tools/catalog-mcp.tools.ts +122 -0
  75. package/src/mcp/tools/cms-mcp.tools.ts +239 -0
  76. package/src/mcp/tools/credential-mcp.tools.ts +81 -0
  77. package/src/mcp/tools/hexabot-mcp-tool.base.ts +74 -0
  78. package/src/mcp/tools/hexabot-mcp.schemas.ts +55 -0
  79. package/src/mcp/tools/hexabot-mcp.tools.ts +1 -1194
  80. package/src/mcp/tools/hexabot-mcp.utils.ts +13 -0
  81. package/src/mcp/tools/index.ts +51 -0
  82. package/src/mcp/tools/mcp-server-mcp.tools.ts +135 -0
  83. package/src/mcp/tools/memory-definition-mcp.tools.ts +125 -0
  84. package/src/mcp/tools/workflow-mcp.helper.ts +166 -0
  85. package/src/mcp/tools/workflow-mcp.tools.ts +254 -0
  86. package/src/mcp/tools/workflow-run-mcp.tools.ts +274 -0
  87. package/src/mcp/tools/workflow-version-mcp.tools.ts +226 -0
  88. package/src/websocket/websocket.gateway.ts +2 -1
  89. package/src/workflow/services/workflow.service.ts +58 -30
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-mcp.tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/workflow-mcp.tools.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAA2C;AAC3C,2CAIwB;AACxB,8CAAmD;AACnD,6BAAwB;AAGxB,+EAAuE;AACvE,gDAI0B;AAE1B,qFAAuE;AACvE,yEAAoE;AAGpE,mEAA6D;AAC7D,+DAK+B;AAC/B,+DAAiE;AAG1D,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,0CAAkB;IAC7D,YACmB,eAAgC,EAChC,cAAwC;QAEzD,KAAK,EAAE,CAAC;QAHS,oBAAe,GAAf,eAAe,CAAiB;QAChC,mBAAc,GAAd,cAAc,CAA0B;IAG3D,CAAC;IAcK,AAAN,KAAK,CAAC,eAAe,CACnB,IAIkB;QAElB,MAAM,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAoB,IAAI,EAAE,KAAK,CAAC,CAAC;QAEjE,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAWK,AAAN,KAAK,CAAC,WAAW,CAAC,IAAoB;QACpC,OAAO,MAAM,IAAI,CAAC,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qCD;AAeK;IAbL,IAAA,wCAAa,EAAC,UAAU,EAAE,cAAM,CAAC,MAAM,CAAC;IACxC,IAAA,qBAAU,EAAC,CAAC,yCAAkB,CAAC,CAAC;IAChC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EACT,qFAAqF;QACvF,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;YACnB,EAAE,EAAE,gCAAU;YACd,GAAG,2CAAqB;YACxB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACpC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACtC,CAAC;KACH,CAAC;;;;6DA6BD;AAWK;IATL,IAAA,wCAAa,EAAC,UAAU,EAAE,cAAM,CAAC,MAAM,CAAC;IACxC,IAAA,qBAAU,EAAC,CAAC,yCAAkB,CAAC,CAAC;IAChC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,uCAAuC;QACpD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;YACnB,EAAE,EAAE,gCAAU;SACf,CAAC;KACH,CAAC;;;;8DAiBD;AAWK;IATL,IAAA,wCAAa,EAAC,UAAU,EAAE,cAAM,CAAC,MAAM,CAAC;IACxC,IAAA,qBAAU,EAAC,CAAC,yCAAkB,CAAC,CAAC;IAChC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,uCAAuC;QACpD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;YACnB,EAAE,EAAE,gCAAU;SACf,CAAC;KACH,CAAC;;;;gEAMD;kCArMU,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAGyB,kCAAe;QAChB,8CAAwB;GAHhD,uBAAuB,CAwNnC"}
@@ -0,0 +1,347 @@
1
+ import { AgenticService } from "../../workflow/services/agentic.service";
2
+ import { WorkflowRunService } from "../../workflow/services/workflow-run.service";
3
+ import { WorkflowService } from "../../workflow/services/workflow.service";
4
+ import { WorkflowType } from "../../workflow/types";
5
+ import { HexabotMcpRequest } from '../types';
6
+ import { HexabotMcpToolBase } from './hexabot-mcp-tool.base';
7
+ import { PaginationArgs } from './hexabot-mcp.schemas';
8
+ export declare class HexabotWorkflowRunMcpTools extends HexabotMcpToolBase {
9
+ private readonly workflowService;
10
+ private readonly workflowRunService;
11
+ private readonly agenticService;
12
+ constructor(workflowService: WorkflowService, workflowRunService: WorkflowRunService, agenticService: AgenticService);
13
+ runWorkflow(args: {
14
+ workflowId: string;
15
+ input: Record<string, unknown>;
16
+ }, _context: unknown, request?: HexabotMcpRequest): Promise<{
17
+ accepted: boolean;
18
+ run: {
19
+ id: string;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ status: "idle" | "running" | "suspended" | "finished" | "failed";
23
+ input: Record<string, any> | null;
24
+ output: Record<string, any> | null;
25
+ context: Record<string, any>;
26
+ snapshot: any;
27
+ stepLog: Record<string, any> | null;
28
+ suspendedStep: string | null;
29
+ suspensionReason: string | null;
30
+ suspensionData: unknown;
31
+ suspensionStepExecId: string | null;
32
+ suspensionIndex: number | null;
33
+ suspensionKey: string | null;
34
+ suspensionAwaitResults: Record<string, any> | null;
35
+ lastResumeData: unknown;
36
+ error: string | null;
37
+ suspendedAt: Date | null;
38
+ finishedAt: Date | null;
39
+ failedAt: Date | null;
40
+ duration: number | null;
41
+ metadata: Record<string, any> | null;
42
+ workflow: {
43
+ id: string;
44
+ createdAt: Date;
45
+ updatedAt: Date;
46
+ name: string;
47
+ description: string | null;
48
+ type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
49
+ schedule: string | null;
50
+ inputSchema: any;
51
+ builtin: boolean;
52
+ x: number;
53
+ y: number;
54
+ zoom: number;
55
+ direction: import("@hexabot-ai/types").DirectionType;
56
+ createdBy: string | null;
57
+ runAfterMs: number;
58
+ currentVersion?: string | null | undefined;
59
+ publishedVersion?: string | null | undefined;
60
+ };
61
+ triggeredBy: {
62
+ id: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ firstName: string;
66
+ lastName: string;
67
+ language: string | null;
68
+ timezone: number;
69
+ locale: string | null;
70
+ gender: string | null;
71
+ country: string | null;
72
+ foreignId: string | null;
73
+ assignedAt: Date | null;
74
+ lastvisit: Date | null;
75
+ retainedFrom: Date | null;
76
+ channel: {
77
+ name: string | null;
78
+ data?: Record<string, any> | null | undefined;
79
+ };
80
+ labels: string[];
81
+ assignedTo: string | null;
82
+ avatar: string | null;
83
+ source: string | null;
84
+ } | {
85
+ id: string;
86
+ createdAt: Date;
87
+ updatedAt: Date;
88
+ firstName: string;
89
+ lastName: string;
90
+ language: string | null;
91
+ timezone: number;
92
+ locale: string | null;
93
+ gender: string | null;
94
+ country: string | null;
95
+ foreignId: string | null;
96
+ assignedAt: Date | null;
97
+ lastvisit: Date | null;
98
+ retainedFrom: Date | null;
99
+ channel: {
100
+ name: string | null;
101
+ data?: Record<string, any> | null | undefined;
102
+ };
103
+ username: string;
104
+ email: string;
105
+ sendEmail: boolean;
106
+ state: boolean;
107
+ resetCount: number;
108
+ resetToken: string | null;
109
+ labels: string[];
110
+ assignedTo: string | null;
111
+ roles: string[];
112
+ avatar: string | null;
113
+ provider?: {
114
+ strategy: "local";
115
+ sub?: string | undefined;
116
+ } | undefined;
117
+ } | null;
118
+ workflowVersion?: {
119
+ id: string;
120
+ createdAt: Date;
121
+ updatedAt: Date;
122
+ version: number;
123
+ definitionYml: string;
124
+ checksum: string;
125
+ message: string | null;
126
+ action: import("@hexabot-ai/types").WorkflowVersionAction | null;
127
+ parentVersion: string | null;
128
+ workflow: string;
129
+ createdBy: string | null;
130
+ } | null | undefined;
131
+ thread?: {
132
+ id: string;
133
+ createdAt: Date;
134
+ updatedAt: Date;
135
+ status: "open" | "closed";
136
+ subscriber: string;
137
+ source: string;
138
+ lastMessageAt?: Date | null | undefined;
139
+ closedAt?: Date | null | undefined;
140
+ closeReason?: "manual" | "inactivity" | null | undefined;
141
+ title?: string | null | undefined;
142
+ } | null | undefined;
143
+ parentRun?: {
144
+ id: string;
145
+ createdAt: Date;
146
+ updatedAt: Date;
147
+ status: "idle" | "running" | "suspended" | "finished" | "failed";
148
+ input: Record<string, any> | null;
149
+ output: Record<string, any> | null;
150
+ context: Record<string, any>;
151
+ snapshot: any;
152
+ stepLog: Record<string, any> | null;
153
+ suspendedStep: string | null;
154
+ suspensionReason: string | null;
155
+ suspensionData: unknown;
156
+ suspensionStepExecId: string | null;
157
+ suspensionIndex: number | null;
158
+ suspensionKey: string | null;
159
+ suspensionAwaitResults: Record<string, any> | null;
160
+ lastResumeData: unknown;
161
+ error: string | null;
162
+ suspendedAt: Date | null;
163
+ finishedAt: Date | null;
164
+ failedAt: Date | null;
165
+ duration: number | null;
166
+ metadata: Record<string, any> | null;
167
+ workflow: string;
168
+ workflowVersion: string | null;
169
+ triggeredBy: string | null;
170
+ parentRun: string | null;
171
+ } | null | undefined;
172
+ } | null;
173
+ }>;
174
+ searchWorkflowRuns(args: {
175
+ workflowId?: string;
176
+ status?: string;
177
+ } & PaginationArgs): Promise<{
178
+ items: unknown[];
179
+ total: number;
180
+ limit: number | undefined;
181
+ skip: number | undefined;
182
+ }>;
183
+ getWorkflowRun(args: {
184
+ id: string;
185
+ }): Promise<{
186
+ id: string;
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ status: "idle" | "running" | "suspended" | "finished" | "failed";
190
+ input: Record<string, any> | null;
191
+ output: Record<string, any> | null;
192
+ context: Record<string, any>;
193
+ snapshot: any;
194
+ stepLog: Record<string, any> | null;
195
+ suspendedStep: string | null;
196
+ suspensionReason: string | null;
197
+ suspensionData: unknown;
198
+ suspensionStepExecId: string | null;
199
+ suspensionIndex: number | null;
200
+ suspensionKey: string | null;
201
+ suspensionAwaitResults: Record<string, any> | null;
202
+ lastResumeData: unknown;
203
+ error: string | null;
204
+ suspendedAt: Date | null;
205
+ finishedAt: Date | null;
206
+ failedAt: Date | null;
207
+ duration: number | null;
208
+ metadata: Record<string, any> | null;
209
+ workflow: {
210
+ id: string;
211
+ createdAt: Date;
212
+ updatedAt: Date;
213
+ name: string;
214
+ description: string | null;
215
+ type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
216
+ schedule: string | null;
217
+ inputSchema: any;
218
+ builtin: boolean;
219
+ x: number;
220
+ y: number;
221
+ zoom: number;
222
+ direction: import("@hexabot-ai/types").DirectionType;
223
+ createdBy: string | null;
224
+ runAfterMs: number;
225
+ currentVersion?: string | null | undefined;
226
+ publishedVersion?: string | null | undefined;
227
+ };
228
+ triggeredBy: {
229
+ id: string;
230
+ createdAt: Date;
231
+ updatedAt: Date;
232
+ firstName: string;
233
+ lastName: string;
234
+ language: string | null;
235
+ timezone: number;
236
+ locale: string | null;
237
+ gender: string | null;
238
+ country: string | null;
239
+ foreignId: string | null;
240
+ assignedAt: Date | null;
241
+ lastvisit: Date | null;
242
+ retainedFrom: Date | null;
243
+ channel: {
244
+ name: string | null;
245
+ data?: Record<string, any> | null | undefined;
246
+ };
247
+ labels: string[];
248
+ assignedTo: string | null;
249
+ avatar: string | null;
250
+ source: string | null;
251
+ } | {
252
+ id: string;
253
+ createdAt: Date;
254
+ updatedAt: Date;
255
+ firstName: string;
256
+ lastName: string;
257
+ language: string | null;
258
+ timezone: number;
259
+ locale: string | null;
260
+ gender: string | null;
261
+ country: string | null;
262
+ foreignId: string | null;
263
+ assignedAt: Date | null;
264
+ lastvisit: Date | null;
265
+ retainedFrom: Date | null;
266
+ channel: {
267
+ name: string | null;
268
+ data?: Record<string, any> | null | undefined;
269
+ };
270
+ username: string;
271
+ email: string;
272
+ sendEmail: boolean;
273
+ state: boolean;
274
+ resetCount: number;
275
+ resetToken: string | null;
276
+ labels: string[];
277
+ assignedTo: string | null;
278
+ roles: string[];
279
+ avatar: string | null;
280
+ provider?: {
281
+ strategy: "local";
282
+ sub?: string | undefined;
283
+ } | undefined;
284
+ } | null;
285
+ workflowVersion?: {
286
+ id: string;
287
+ createdAt: Date;
288
+ updatedAt: Date;
289
+ version: number;
290
+ definitionYml: string;
291
+ checksum: string;
292
+ message: string | null;
293
+ action: import("@hexabot-ai/types").WorkflowVersionAction | null;
294
+ parentVersion: string | null;
295
+ workflow: string;
296
+ createdBy: string | null;
297
+ } | null | undefined;
298
+ thread?: {
299
+ id: string;
300
+ createdAt: Date;
301
+ updatedAt: Date;
302
+ status: "open" | "closed";
303
+ subscriber: string;
304
+ source: string;
305
+ lastMessageAt?: Date | null | undefined;
306
+ closedAt?: Date | null | undefined;
307
+ closeReason?: "manual" | "inactivity" | null | undefined;
308
+ title?: string | null | undefined;
309
+ } | null | undefined;
310
+ parentRun?: {
311
+ id: string;
312
+ createdAt: Date;
313
+ updatedAt: Date;
314
+ status: "idle" | "running" | "suspended" | "finished" | "failed";
315
+ input: Record<string, any> | null;
316
+ output: Record<string, any> | null;
317
+ context: Record<string, any>;
318
+ snapshot: any;
319
+ stepLog: Record<string, any> | null;
320
+ suspendedStep: string | null;
321
+ suspensionReason: string | null;
322
+ suspensionData: unknown;
323
+ suspensionStepExecId: string | null;
324
+ suspensionIndex: number | null;
325
+ suspensionKey: string | null;
326
+ suspensionAwaitResults: Record<string, any> | null;
327
+ lastResumeData: unknown;
328
+ error: string | null;
329
+ suspendedAt: Date | null;
330
+ finishedAt: Date | null;
331
+ failedAt: Date | null;
332
+ duration: number | null;
333
+ metadata: Record<string, any> | null;
334
+ workflow: string;
335
+ workflowVersion: string | null;
336
+ triggeredBy: string | null;
337
+ parentRun: string | null;
338
+ } | null | undefined;
339
+ }>;
340
+ debugWorkflowRun(args: {
341
+ id: string;
342
+ includeWorkflowDefinition?: boolean;
343
+ includeRelatedRuns?: boolean;
344
+ childRunsLimit?: number;
345
+ }): Promise<Record<string, unknown>>;
346
+ private buildWorkflowRunDebugSummary;
347
+ }
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.HexabotWorkflowRunMcpTools = void 0;
13
+ const agentic_1 = require("@hexabot-ai/agentic");
14
+ const types_1 = require("@hexabot-ai/types");
15
+ const common_1 = require("@nestjs/common");
16
+ const mcp_nest_1 = require("@rekog/mcp-nest");
17
+ const zod_1 = require("zod");
18
+ const trigger_event_wrapper_1 = require("../../workflow/lib/trigger-event-wrapper");
19
+ const agentic_service_1 = require("../../workflow/services/agentic.service");
20
+ const workflow_run_service_1 = require("../../workflow/services/workflow-run.service");
21
+ const workflow_service_1 = require("../../workflow/services/workflow.service");
22
+ const types_2 = require("../../workflow/types");
23
+ const mcp_permission_decorator_1 = require("../decorators/mcp-permission.decorator");
24
+ const mcp_permission_guard_1 = require("../guards/mcp-permission.guard");
25
+ const hexabot_mcp_tool_base_1 = require("./hexabot-mcp-tool.base");
26
+ const hexabot_mcp_schemas_1 = require("./hexabot-mcp.schemas");
27
+ let HexabotWorkflowRunMcpTools = class HexabotWorkflowRunMcpTools extends hexabot_mcp_tool_base_1.HexabotMcpToolBase {
28
+ constructor(workflowService, workflowRunService, agenticService) {
29
+ super();
30
+ this.workflowService = workflowService;
31
+ this.workflowRunService = workflowRunService;
32
+ this.agenticService = agenticService;
33
+ }
34
+ async runWorkflow(args, _context, request) {
35
+ const actor = this.getActor(request);
36
+ const workflow = await this.workflowService.findOne(args.workflowId);
37
+ if (!workflow) {
38
+ throw new common_1.NotFoundException(`Workflow ${args.workflowId} not found`);
39
+ }
40
+ if (workflow.type !== types_2.WorkflowType.manual &&
41
+ workflow.type !== types_2.WorkflowType.scheduled) {
42
+ throw new common_1.BadRequestException('Workflow must be manual or scheduled to run manually');
43
+ }
44
+ const event = workflow.type === types_2.WorkflowType.scheduled
45
+ ? new trigger_event_wrapper_1.ScheduledEventWrapper({
46
+ schedule: workflow.schedule ?? null,
47
+ triggeredAt: new Date(),
48
+ })
49
+ : new trigger_event_wrapper_1.ManualEventWrapper(this.workflowService.validateManualInput(args.input ?? {}, workflow.inputSchema), actor.id);
50
+ event.setInitiator(actor);
51
+ event.setWorkflowId(workflow.id);
52
+ const run = await this.agenticService.handleEvent(event);
53
+ return { accepted: true, run };
54
+ }
55
+ async searchWorkflowRuns(args) {
56
+ const where = {
57
+ ...(args.workflowId ? { workflow: { id: args.workflowId } } : {}),
58
+ ...(args.status ? { status: args.status } : {}),
59
+ };
60
+ return await this.listWithCount(this.workflowRunService, this.findOptions(args, where));
61
+ }
62
+ async getWorkflowRun(args) {
63
+ const run = await this.workflowRunService.findOneAndPopulate(args.id);
64
+ if (!run) {
65
+ throw new common_1.NotFoundException(`Workflow run ${args.id} not found`);
66
+ }
67
+ return run;
68
+ }
69
+ async debugWorkflowRun(args) {
70
+ const run = await this.workflowRunService.findOneAndPopulate(args.id);
71
+ if (!run) {
72
+ throw new common_1.NotFoundException(`Workflow run ${args.id} not found`);
73
+ }
74
+ const includeRelatedRuns = args.includeRelatedRuns ?? true;
75
+ const childRunsLimit = args.childRunsLimit ?? 10;
76
+ const parentRunId = this.resolveRelationId(run.parentRun);
77
+ const childWhere = { parentRun: { id: run.id } };
78
+ const [parentRun, childRuns, childRunTotal] = includeRelatedRuns
79
+ ? await Promise.all([
80
+ parentRunId
81
+ ? this.workflowRunService.findOneAndPopulate(parentRunId)
82
+ : Promise.resolve(null),
83
+ this.workflowRunService.findAndPopulate({
84
+ where: childWhere,
85
+ order: { createdAt: 'ASC' },
86
+ take: childRunsLimit,
87
+ }),
88
+ this.workflowRunService.count({ where: childWhere }),
89
+ ])
90
+ : [null, [], 0];
91
+ const response = {
92
+ run,
93
+ relatedRuns: {
94
+ parent: parentRun,
95
+ children: childRuns,
96
+ childRunTotal,
97
+ childRunsLimit: includeRelatedRuns ? childRunsLimit : 0,
98
+ },
99
+ summary: this.buildWorkflowRunDebugSummary(run, childRunTotal),
100
+ };
101
+ if (args.includeWorkflowDefinition ?? true) {
102
+ response.workflowDefinitionYml =
103
+ run.workflowVersion?.definitionYml ?? null;
104
+ }
105
+ return response;
106
+ }
107
+ buildWorkflowRunDebugSummary(run, childRunTotal) {
108
+ const stepEntries = Object.entries(run.stepLog ?? {});
109
+ const stepStatusCounts = stepEntries.reduce((counts, [, step]) => ({
110
+ ...counts,
111
+ [step.status]: (counts[step.status] ?? 0) + 1,
112
+ }), {});
113
+ const failedSteps = stepEntries
114
+ .filter(([, step]) => step.status === agentic_1.EWorkflowRunStatus.FAILED || Boolean(step.error))
115
+ .map(([stepId, step]) => ({
116
+ id: step.id ?? stepId,
117
+ name: step.name ?? stepId,
118
+ action: step.action ?? null,
119
+ status: step.status,
120
+ error: step.error ?? null,
121
+ reason: step.reason ?? null,
122
+ }));
123
+ return {
124
+ id: run.id,
125
+ status: run.status,
126
+ workflow: {
127
+ id: run.workflow.id,
128
+ name: run.workflow.name,
129
+ type: run.workflow.type,
130
+ },
131
+ workflowVersion: run.workflowVersion
132
+ ? {
133
+ id: run.workflowVersion.id,
134
+ version: run.workflowVersion.version,
135
+ checksum: run.workflowVersion.checksum,
136
+ }
137
+ : null,
138
+ error: run.error ?? null,
139
+ duration: run.duration ?? null,
140
+ createdAt: run.createdAt,
141
+ updatedAt: run.updatedAt,
142
+ suspendedAt: run.suspendedAt ?? null,
143
+ finishedAt: run.finishedAt ?? null,
144
+ failedAt: run.failedAt ?? null,
145
+ suspension: run.status === agentic_1.EWorkflowRunStatus.SUSPENDED
146
+ ? {
147
+ step: run.suspendedStep ?? null,
148
+ reason: run.suspensionReason ?? null,
149
+ stepExecId: run.suspensionStepExecId ?? null,
150
+ index: run.suspensionIndex ?? null,
151
+ key: run.suspensionKey ?? null,
152
+ }
153
+ : null,
154
+ stepStatusCounts,
155
+ failedSteps,
156
+ childRunTotal,
157
+ };
158
+ }
159
+ };
160
+ exports.HexabotWorkflowRunMcpTools = HexabotWorkflowRunMcpTools;
161
+ __decorate([
162
+ (0, mcp_permission_decorator_1.McpPermission)('workflowrun', types_1.Action.CREATE),
163
+ (0, mcp_nest_1.ToolGuards)([mcp_permission_guard_1.McpPermissionGuard]),
164
+ (0, mcp_nest_1.Tool)({
165
+ name: 'hexabot_workflow_run',
166
+ description: 'Run a manual or scheduled workflow and return the run summary.',
167
+ parameters: zod_1.z.object({
168
+ workflowId: hexabot_mcp_schemas_1.uuidSchema,
169
+ input: hexabot_mcp_schemas_1.jsonObjectSchema.default({}),
170
+ }),
171
+ }),
172
+ __metadata("design:type", Function),
173
+ __metadata("design:paramtypes", [Object, Object, Object]),
174
+ __metadata("design:returntype", Promise)
175
+ ], HexabotWorkflowRunMcpTools.prototype, "runWorkflow", null);
176
+ __decorate([
177
+ (0, mcp_permission_decorator_1.McpPermission)('workflowrun', types_1.Action.READ),
178
+ (0, mcp_nest_1.ToolGuards)([mcp_permission_guard_1.McpPermissionGuard]),
179
+ (0, mcp_nest_1.Tool)({
180
+ name: 'hexabot_workflow_run_search',
181
+ description: 'Search workflow runs by workflow and status.',
182
+ parameters: zod_1.z.object({
183
+ workflowId: hexabot_mcp_schemas_1.uuidSchema.optional(),
184
+ status: zod_1.z.string().optional(),
185
+ ...hexabot_mcp_schemas_1.paginationSchema,
186
+ }),
187
+ }),
188
+ __metadata("design:type", Function),
189
+ __metadata("design:paramtypes", [Object]),
190
+ __metadata("design:returntype", Promise)
191
+ ], HexabotWorkflowRunMcpTools.prototype, "searchWorkflowRuns", null);
192
+ __decorate([
193
+ (0, mcp_permission_decorator_1.McpPermission)('workflowrun', types_1.Action.READ),
194
+ (0, mcp_nest_1.ToolGuards)([mcp_permission_guard_1.McpPermissionGuard]),
195
+ (0, mcp_nest_1.Tool)({
196
+ name: 'hexabot_workflow_run_get',
197
+ description: 'Read one workflow run with populated workflow metadata.',
198
+ parameters: zod_1.z.object({
199
+ id: hexabot_mcp_schemas_1.uuidSchema,
200
+ }),
201
+ }),
202
+ __metadata("design:type", Function),
203
+ __metadata("design:paramtypes", [Object]),
204
+ __metadata("design:returntype", Promise)
205
+ ], HexabotWorkflowRunMcpTools.prototype, "getWorkflowRun", null);
206
+ __decorate([
207
+ (0, mcp_permission_decorator_1.McpPermission)('workflowrun', types_1.Action.READ),
208
+ (0, mcp_nest_1.ToolGuards)([mcp_permission_guard_1.McpPermissionGuard]),
209
+ (0, mcp_nest_1.Tool)({
210
+ name: 'hexabot_workflow_run_debug',
211
+ description: 'Inspect one workflow run for debugging with execution state, workflow YAML, and related parent/child runs.',
212
+ parameters: zod_1.z.object({
213
+ id: hexabot_mcp_schemas_1.uuidSchema,
214
+ includeWorkflowDefinition: zod_1.z.boolean().default(true),
215
+ includeRelatedRuns: zod_1.z.boolean().default(true),
216
+ childRunsLimit: zod_1.z.number().int().min(1).max(50).default(10),
217
+ }),
218
+ }),
219
+ __metadata("design:type", Function),
220
+ __metadata("design:paramtypes", [Object]),
221
+ __metadata("design:returntype", Promise)
222
+ ], HexabotWorkflowRunMcpTools.prototype, "debugWorkflowRun", null);
223
+ exports.HexabotWorkflowRunMcpTools = HexabotWorkflowRunMcpTools = __decorate([
224
+ (0, common_1.Injectable)(),
225
+ __metadata("design:paramtypes", [workflow_service_1.WorkflowService,
226
+ workflow_run_service_1.WorkflowRunService,
227
+ agentic_service_1.AgenticService])
228
+ ], HexabotWorkflowRunMcpTools);
229
+ //# sourceMappingURL=workflow-run-mcp.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-run-mcp.tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/workflow-run-m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