@hexabot-ai/api 3.2.2-alpha.16 → 3.2.2-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp/guards/hexabot-mcp-token.guard.js +2 -2
- package/dist/mcp/guards/hexabot-mcp-token.guard.js.map +1 -1
- package/dist/mcp/tools/credential-mcp.tools.d.ts +2 -2
- package/dist/mcp/tools/hexabot-mcp.utils.d.ts +2 -1
- package/dist/mcp/tools/hexabot-mcp.utils.js +13 -1
- package/dist/mcp/tools/hexabot-mcp.utils.js.map +1 -1
- package/dist/mcp/tools/workflow-mcp.helper.d.ts +18 -3
- package/dist/mcp/tools/workflow-mcp.helper.js +22 -2
- package/dist/mcp/tools/workflow-mcp.helper.js.map +1 -1
- package/dist/mcp/tools/workflow-mcp.tools.d.ts +340 -18
- package/dist/mcp/tools/workflow-mcp.tools.js +12 -7
- package/dist/mcp/tools/workflow-mcp.tools.js.map +1 -1
- package/dist/mcp/tools/workflow-run-mcp.tools.d.ts +2 -0
- package/dist/mcp/tools/workflow-run-mcp.tools.js +19 -6
- package/dist/mcp/tools/workflow-run-mcp.tools.js.map +1 -1
- package/dist/mcp/tools/workflow-version-mcp.tools.d.ts +84 -76
- package/dist/mcp/tools/workflow-version-mcp.tools.js +165 -8
- package/dist/mcp/tools/workflow-version-mcp.tools.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/mcp/README.md +67 -55
- package/src/mcp/guards/hexabot-mcp-token.guard.ts +2 -2
- package/src/mcp/tools/hexabot-mcp.utils.ts +18 -2
- package/src/mcp/tools/workflow-mcp.helper.ts +62 -9
- package/src/mcp/tools/workflow-mcp.tools.ts +25 -8
- package/src/mcp/tools/workflow-run-mcp.tools.ts +25 -7
- package/src/mcp/tools/workflow-version-mcp.tools.ts +245 -12
|
@@ -34,8 +34,8 @@ let HexabotMcpTokenGuard = class HexabotMcpTokenGuard {
|
|
|
34
34
|
if (!authHeader) {
|
|
35
35
|
return undefined;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
return
|
|
37
|
+
const match = authHeader.trim().match(/^Bearer\s+(\S+)$/i);
|
|
38
|
+
return match?.[1];
|
|
39
39
|
}
|
|
40
40
|
getMcpTokenService() {
|
|
41
41
|
return this.moduleRef.get(mcp_token_service_1.McpTokenService, { strict: false });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hexabot-mcp-token.guard.js","sourceRoot":"","sources":["../../../src/mcp/guards/hexabot-mcp-token.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,2CAKwB;AACxB,uCAAyC;AAGzC,qEAAgE;AAIzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IAAG,CAAC;IAErD,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAqB,CAAC;QACvE,MAAM,KAAK,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAEnD,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,8BAAqB,CAAC,8BAA8B,CAAC,CAAC;QAClE,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GACrB,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;QAEjE,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC;QAE7B,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,sBAAsB,CAAC,OAAgB;QAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;QACjD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB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CAAC,GAAG,CAAC,mCAAe,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAChE,CAAC;CACF,CAAA;AAnCY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAE6B,gBAAS;GADtC,oBAAoB,CAmChC"}
|
|
@@ -8,12 +8,12 @@ export declare class HexabotCredentialMcpTools extends HexabotMcpToolBase {
|
|
|
8
8
|
query?: string;
|
|
9
9
|
ownerId?: string;
|
|
10
10
|
} & PaginationArgs): Promise<{
|
|
11
|
-
items: Record<string, unknown>[];
|
|
11
|
+
items: Omit<Record<string, unknown>, "value">[];
|
|
12
12
|
total: number;
|
|
13
13
|
limit: number | undefined;
|
|
14
14
|
skip: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
getCredential(args: {
|
|
17
17
|
id: string;
|
|
18
|
-
}): Promise<Record<string, unknown>>;
|
|
18
|
+
}): Promise<Omit<Record<string, unknown>, "value">>;
|
|
19
19
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const sanitizeCredential: <T extends Record<string, unknown>>(credential: T) => T
|
|
1
|
+
export declare const sanitizeCredential: <T extends Record<string, unknown>>(credential: T) => Omit<T, "value">;
|
|
2
|
+
export declare const omitKeysDeep: <T>(value: T, keys: readonly string[]) => T;
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sanitizeCredential = void 0;
|
|
3
|
+
exports.omitKeysDeep = exports.sanitizeCredential = void 0;
|
|
4
4
|
const sanitizeCredential = (credential) => {
|
|
5
5
|
const { value: _value, ...safeCredential } = credential;
|
|
6
6
|
return safeCredential;
|
|
7
7
|
};
|
|
8
8
|
exports.sanitizeCredential = sanitizeCredential;
|
|
9
|
+
const omitKeysDeep = (value, keys) => {
|
|
10
|
+
if (Array.isArray(value)) {
|
|
11
|
+
return value.map((item) => (0, exports.omitKeysDeep)(item, keys));
|
|
12
|
+
}
|
|
13
|
+
if (value === null || typeof value !== 'object' || value instanceof Date) {
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
return Object.fromEntries(Object.entries(value)
|
|
17
|
+
.filter(([key]) => !keys.includes(key))
|
|
18
|
+
.map(([key, nestedValue]) => [key, (0, exports.omitKeysDeep)(nestedValue, keys)]));
|
|
19
|
+
};
|
|
20
|
+
exports.omitKeysDeep = omitKeysDeep;
|
|
9
21
|
//# sourceMappingURL=hexabot-mcp.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hexabot-mcp.utils.js","sourceRoot":"","sources":["../../../src/mcp/tools/hexabot-mcp.utils.ts"],"names":[],"mappings":";;;AAMO,MAAM,kBAAkB,GAAG,CAChC,UAAa,
|
|
1
|
+
{"version":3,"file":"hexabot-mcp.utils.js","sourceRoot":"","sources":["../../../src/mcp/tools/hexabot-mcp.utils.ts"],"names":[],"mappings":";;;AAMO,MAAM,kBAAkB,GAAG,CAChC,UAAa,EACK,EAAE;IACpB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,GAAG,UAAU,CAAC;IAExD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B;AAEK,MAAM,YAAY,GAAG,CAAI,KAAQ,EAAE,IAAuB,EAAK,EAAE;IACtE,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oBAAY,EAAC,IAAI,EAAE,IAAI,CAAC,CAAM,CAAC;IAC5D,CAAC;IAED,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;QACzE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC;SAC7C,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;SACtC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,IAAA,oBAAY,EAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAClE,CAAC;AACT,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { type WorkflowFull, type WorkflowVersion } from '@hexabot-ai/types';
|
|
1
|
+
import { type WorkflowFull, type WorkflowVersion, type WorkflowVersionFull } from '@hexabot-ai/types';
|
|
2
2
|
import { WorkflowVersionService } from "../../workflow/services/workflow-version.service";
|
|
3
3
|
import { WorkflowService } from "../../workflow/services/workflow.service";
|
|
4
4
|
import { WorkflowVersionAction } from "../../workflow/types";
|
|
5
|
-
type
|
|
5
|
+
type WorkflowVersionLike = WorkflowVersion | WorkflowVersionFull;
|
|
6
|
+
type WorkflowVersionSummary = Pick<WorkflowVersion, 'id' | 'version' | 'checksum' | 'message' | 'action' | 'createdAt' | 'updatedAt'> & {
|
|
7
|
+
parentVersion: WorkflowVersion['parentVersion'] | WorkflowVersionFull['parentVersion'];
|
|
8
|
+
workflow: WorkflowVersion['workflow'] | WorkflowVersionFull['workflow'];
|
|
9
|
+
createdBy: WorkflowVersion['createdBy'] | WorkflowVersionFull['createdBy'];
|
|
10
|
+
definitionYmlByteLength?: number;
|
|
11
|
+
};
|
|
12
|
+
type WorkflowSummary = Omit<WorkflowFull, 'currentVersion' | 'publishedVersion' | 'definitionYml' | 'definition'> & {
|
|
13
|
+
currentVersion: WorkflowVersionSummary | null;
|
|
14
|
+
publishedVersion: WorkflowVersionSummary | null;
|
|
15
|
+
currentVersionId: string | null;
|
|
16
|
+
publishedVersionId: string | null;
|
|
17
|
+
};
|
|
6
18
|
export declare class HexabotWorkflowMcpHelper {
|
|
7
19
|
private readonly workflowService;
|
|
8
20
|
private readonly workflowVersionService;
|
|
@@ -135,7 +147,10 @@ export declare class HexabotWorkflowMcpHelper {
|
|
|
135
147
|
isCurrentVersionPublished: boolean;
|
|
136
148
|
hasUnpublishedChanges: boolean;
|
|
137
149
|
};
|
|
138
|
-
|
|
150
|
+
summarizeWorkflow(workflow: WorkflowFull): WorkflowSummary;
|
|
151
|
+
summarizeWorkflowVersion(version: WorkflowVersionLike | null | undefined, options?: {
|
|
152
|
+
includeDefinitionYmlByteLength?: boolean;
|
|
153
|
+
}): WorkflowVersionSummary | null;
|
|
139
154
|
private resolveRelationId;
|
|
140
155
|
}
|
|
141
156
|
export {};
|
|
@@ -74,12 +74,24 @@ let HexabotWorkflowMcpHelper = class HexabotWorkflowMcpHelper {
|
|
|
74
74
|
hasUnpublishedChanges: Boolean(currentVersionId) && currentVersionId !== publishedVersionId,
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
summarizeWorkflow(workflow) {
|
|
78
|
+
const { currentVersion, publishedVersion, definitionYml: _definitionYml, definition: _definition, ...metadata } = workflow;
|
|
79
|
+
const currentVersionSummary = this.summarizeWorkflowVersion(currentVersion);
|
|
80
|
+
const publishedVersionSummary = this.summarizeWorkflowVersion(publishedVersion);
|
|
81
|
+
return {
|
|
82
|
+
...metadata,
|
|
83
|
+
currentVersion: currentVersionSummary,
|
|
84
|
+
publishedVersion: publishedVersionSummary,
|
|
85
|
+
currentVersionId: currentVersionSummary?.id ?? null,
|
|
86
|
+
publishedVersionId: publishedVersionSummary?.id ?? null,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
summarizeWorkflowVersion(version, options) {
|
|
78
90
|
if (!version) {
|
|
79
91
|
return null;
|
|
80
92
|
}
|
|
81
93
|
const { id, version: versionNumber, checksum, message, action, parentVersion, workflow, createdBy, createdAt, updatedAt, } = version;
|
|
82
|
-
|
|
94
|
+
const summary = {
|
|
83
95
|
id,
|
|
84
96
|
version: versionNumber,
|
|
85
97
|
checksum,
|
|
@@ -90,7 +102,15 @@ let HexabotWorkflowMcpHelper = class HexabotWorkflowMcpHelper {
|
|
|
90
102
|
createdBy,
|
|
91
103
|
createdAt,
|
|
92
104
|
updatedAt,
|
|
105
|
+
...(options?.includeDefinitionYmlByteLength
|
|
106
|
+
? {
|
|
107
|
+
definitionYmlByteLength: typeof version.definitionYml === 'string'
|
|
108
|
+
? Buffer.byteLength(version.definitionYml, 'utf8')
|
|
109
|
+
: undefined,
|
|
110
|
+
}
|
|
111
|
+
: {}),
|
|
93
112
|
};
|
|
113
|
+
return Object.fromEntries(Object.entries(summary).filter(([, value]) => value !== undefined));
|
|
94
114
|
}
|
|
95
115
|
resolveRelationId(relation) {
|
|
96
116
|
if (typeof relation === 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-mcp.helper.js","sourceRoot":"","sources":["../../../src/mcp/tools/workflow-mcp.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workflow-mcp.helper.js","sourceRoot":"","sources":["../../../src/mcp/tools/workflow-mcp.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,2CAIwB;AAGxB,gFAA6E;AAC7E,+FAAsF;AACtF,+EAAuE;AACvE,gDAAyD;AAiClD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,YACmB,eAAgC,EAChC,sBAA8C;QAD9C,oBAAe,GAAf,eAAe,CAAiB;QAChC,2BAAsB,GAAtB,sBAAsB,CAAwB;IAC9D,CAAC;IAEJ,KAAK,CAAC,eAAe,CAAC,EAAU;QAC9B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACnE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,0BAAiB,CAAC,YAAY,EAAE,YAAY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cpTools extends HexabotMcpToolBase {
|
|
|
13
13
|
type?: WorkflowType;
|
|
14
14
|
createdById?: string;
|
|
15
15
|
} & PaginationArgs): Promise<{
|
|
16
|
-
items:
|
|
16
|
+
items: (Omit<{
|
|
17
|
+
id: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
name: string;
|
|
21
|
+
description: string | null;
|
|
22
|
+
type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
|
|
23
|
+
schedule: string | null;
|
|
24
|
+
inputSchema: any;
|
|
25
|
+
builtin: boolean;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
zoom: number;
|
|
29
|
+
direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
|
|
30
|
+
currentVersion: {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
version: number;
|
|
35
|
+
definitionYml: string;
|
|
36
|
+
checksum: string;
|
|
37
|
+
message: string | null;
|
|
38
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
39
|
+
parentVersion: string | null;
|
|
40
|
+
workflow: string;
|
|
41
|
+
createdBy: string | null;
|
|
42
|
+
} | null;
|
|
43
|
+
publishedVersion: {
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
updatedAt: Date;
|
|
47
|
+
version: number;
|
|
48
|
+
definitionYml: string;
|
|
49
|
+
checksum: string;
|
|
50
|
+
message: string | null;
|
|
51
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
52
|
+
parentVersion: string | null;
|
|
53
|
+
workflow: string;
|
|
54
|
+
createdBy: string | null;
|
|
55
|
+
} | null;
|
|
56
|
+
createdBy: {
|
|
57
|
+
id: string;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
firstName: string;
|
|
61
|
+
lastName: string;
|
|
62
|
+
language: string | null;
|
|
63
|
+
timezone: number;
|
|
64
|
+
locale: string | null;
|
|
65
|
+
gender: string | null;
|
|
66
|
+
country: string | null;
|
|
67
|
+
foreignId: string | null;
|
|
68
|
+
assignedAt: Date | null;
|
|
69
|
+
lastvisit: Date | null;
|
|
70
|
+
retainedFrom: Date | null;
|
|
71
|
+
channel: {
|
|
72
|
+
name: string | null;
|
|
73
|
+
data?: Record<string, any> | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
username: string;
|
|
76
|
+
email: string;
|
|
77
|
+
sendEmail: boolean;
|
|
78
|
+
state: boolean;
|
|
79
|
+
resetCount: number;
|
|
80
|
+
resetToken: string | null;
|
|
81
|
+
labels: string[];
|
|
82
|
+
assignedTo: string | null;
|
|
83
|
+
roles: string[];
|
|
84
|
+
avatar: string | null;
|
|
85
|
+
provider?: {
|
|
86
|
+
strategy: "local";
|
|
87
|
+
sub?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
} | null;
|
|
90
|
+
definitionYml?: string | undefined;
|
|
91
|
+
definition?: any;
|
|
92
|
+
}, "definition" | "currentVersion" | "publishedVersion" | "definitionYml"> & {
|
|
93
|
+
currentVersion: (Pick<{
|
|
94
|
+
id: string;
|
|
95
|
+
createdAt: Date;
|
|
96
|
+
updatedAt: Date;
|
|
97
|
+
version: number;
|
|
98
|
+
definitionYml: string;
|
|
99
|
+
checksum: string;
|
|
100
|
+
message: string | null;
|
|
101
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
102
|
+
parentVersion: string | null;
|
|
103
|
+
workflow: string;
|
|
104
|
+
createdBy: string | null;
|
|
105
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
106
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
107
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
108
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
109
|
+
definitionYmlByteLength?: number;
|
|
110
|
+
}) | null;
|
|
111
|
+
publishedVersion: (Pick<{
|
|
112
|
+
id: string;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
updatedAt: Date;
|
|
115
|
+
version: number;
|
|
116
|
+
definitionYml: string;
|
|
117
|
+
checksum: string;
|
|
118
|
+
message: string | null;
|
|
119
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
120
|
+
parentVersion: string | null;
|
|
121
|
+
workflow: string;
|
|
122
|
+
createdBy: string | null;
|
|
123
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
124
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
125
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
126
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
127
|
+
definitionYmlByteLength?: number;
|
|
128
|
+
}) | null;
|
|
129
|
+
currentVersionId: string | null;
|
|
130
|
+
publishedVersionId: string | null;
|
|
131
|
+
})[];
|
|
17
132
|
total: number;
|
|
18
133
|
limit: number | undefined;
|
|
19
134
|
skip: number | undefined;
|
|
20
135
|
}>;
|
|
21
136
|
getWorkflow(args: {
|
|
22
137
|
id: string;
|
|
23
|
-
}): Promise<{
|
|
138
|
+
}): Promise<Omit<{
|
|
24
139
|
id: string;
|
|
25
140
|
createdAt: Date;
|
|
26
141
|
updatedAt: Date;
|
|
@@ -96,6 +211,45 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
96
211
|
} | null;
|
|
97
212
|
definitionYml?: string | undefined;
|
|
98
213
|
definition?: any;
|
|
214
|
+
}, "definition" | "currentVersion" | "publishedVersion" | "definitionYml"> & {
|
|
215
|
+
currentVersion: (Pick<{
|
|
216
|
+
id: string;
|
|
217
|
+
createdAt: Date;
|
|
218
|
+
updatedAt: Date;
|
|
219
|
+
version: number;
|
|
220
|
+
definitionYml: string;
|
|
221
|
+
checksum: string;
|
|
222
|
+
message: string | null;
|
|
223
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
224
|
+
parentVersion: string | null;
|
|
225
|
+
workflow: string;
|
|
226
|
+
createdBy: string | null;
|
|
227
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
228
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
229
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
230
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
231
|
+
definitionYmlByteLength?: number;
|
|
232
|
+
}) | null;
|
|
233
|
+
publishedVersion: (Pick<{
|
|
234
|
+
id: string;
|
|
235
|
+
createdAt: Date;
|
|
236
|
+
updatedAt: Date;
|
|
237
|
+
version: number;
|
|
238
|
+
definitionYml: string;
|
|
239
|
+
checksum: string;
|
|
240
|
+
message: string | null;
|
|
241
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
242
|
+
parentVersion: string | null;
|
|
243
|
+
workflow: string;
|
|
244
|
+
createdBy: string | null;
|
|
245
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
246
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
247
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
248
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
249
|
+
definitionYmlByteLength?: number;
|
|
250
|
+
}) | null;
|
|
251
|
+
currentVersionId: string | null;
|
|
252
|
+
publishedVersionId: string | null;
|
|
99
253
|
}>;
|
|
100
254
|
getWorkflowVersionStatus(args: {
|
|
101
255
|
id: string;
|
|
@@ -105,30 +259,42 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
105
259
|
name: string;
|
|
106
260
|
type: WorkflowType;
|
|
107
261
|
};
|
|
108
|
-
currentVersion: {
|
|
262
|
+
currentVersion: (Pick<{
|
|
109
263
|
id: string;
|
|
110
264
|
createdAt: Date;
|
|
111
265
|
updatedAt: Date;
|
|
266
|
+
version: number;
|
|
267
|
+
definitionYml: string;
|
|
268
|
+
checksum: string;
|
|
112
269
|
message: string | null;
|
|
113
270
|
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
114
|
-
createdBy: string | null;
|
|
115
|
-
workflow: string;
|
|
116
|
-
version: number;
|
|
117
271
|
parentVersion: string | null;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
272
|
+
workflow: string;
|
|
273
|
+
createdBy: string | null;
|
|
274
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
275
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
276
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
277
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
278
|
+
definitionYmlByteLength?: number;
|
|
279
|
+
}) | null;
|
|
280
|
+
publishedVersion: (Pick<{
|
|
121
281
|
id: string;
|
|
122
282
|
createdAt: Date;
|
|
123
283
|
updatedAt: Date;
|
|
284
|
+
version: number;
|
|
285
|
+
definitionYml: string;
|
|
286
|
+
checksum: string;
|
|
124
287
|
message: string | null;
|
|
125
288
|
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
126
|
-
createdBy: string | null;
|
|
127
|
-
workflow: string;
|
|
128
|
-
version: number;
|
|
129
289
|
parentVersion: string | null;
|
|
130
|
-
|
|
131
|
-
|
|
290
|
+
workflow: string;
|
|
291
|
+
createdBy: string | null;
|
|
292
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
293
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
294
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
295
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
296
|
+
definitionYmlByteLength?: number;
|
|
297
|
+
}) | null;
|
|
132
298
|
currentVersionId: string | null;
|
|
133
299
|
publishedVersionId: string | null;
|
|
134
300
|
isPublished: boolean;
|
|
@@ -148,7 +314,7 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
148
314
|
direction?: DirectionType;
|
|
149
315
|
definitionYml?: string;
|
|
150
316
|
versionMessage?: string;
|
|
151
|
-
}, _context: unknown, request?: HexabotMcpRequest): Promise<{
|
|
317
|
+
}, _context: unknown, request?: HexabotMcpRequest): Promise<Omit<{
|
|
152
318
|
id: string;
|
|
153
319
|
createdAt: Date;
|
|
154
320
|
updatedAt: Date;
|
|
@@ -224,12 +390,51 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
224
390
|
} | null;
|
|
225
391
|
definitionYml?: string | undefined;
|
|
226
392
|
definition?: any;
|
|
393
|
+
}, "definition" | "currentVersion" | "publishedVersion" | "definitionYml"> & {
|
|
394
|
+
currentVersion: (Pick<{
|
|
395
|
+
id: string;
|
|
396
|
+
createdAt: Date;
|
|
397
|
+
updatedAt: Date;
|
|
398
|
+
version: number;
|
|
399
|
+
definitionYml: string;
|
|
400
|
+
checksum: string;
|
|
401
|
+
message: string | null;
|
|
402
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
403
|
+
parentVersion: string | null;
|
|
404
|
+
workflow: string;
|
|
405
|
+
createdBy: string | null;
|
|
406
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
407
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
408
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
409
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
410
|
+
definitionYmlByteLength?: number;
|
|
411
|
+
}) | null;
|
|
412
|
+
publishedVersion: (Pick<{
|
|
413
|
+
id: string;
|
|
414
|
+
createdAt: Date;
|
|
415
|
+
updatedAt: Date;
|
|
416
|
+
version: number;
|
|
417
|
+
definitionYml: string;
|
|
418
|
+
checksum: string;
|
|
419
|
+
message: string | null;
|
|
420
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
421
|
+
parentVersion: string | null;
|
|
422
|
+
workflow: string;
|
|
423
|
+
createdBy: string | null;
|
|
424
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
425
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
426
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
427
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
428
|
+
definitionYmlByteLength?: number;
|
|
429
|
+
}) | null;
|
|
430
|
+
currentVersionId: string | null;
|
|
431
|
+
publishedVersionId: string | null;
|
|
227
432
|
}>;
|
|
228
433
|
updateWorkflow(args: {
|
|
229
434
|
id: string;
|
|
230
435
|
definitionYml?: string;
|
|
231
436
|
versionMessage?: string;
|
|
232
|
-
} & Record<string, unknown>, _context: unknown, request?: HexabotMcpRequest): Promise<{
|
|
437
|
+
} & Record<string, unknown>, _context: unknown, request?: HexabotMcpRequest): Promise<Omit<{
|
|
233
438
|
id: string;
|
|
234
439
|
createdAt: Date;
|
|
235
440
|
updatedAt: Date;
|
|
@@ -305,10 +510,49 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
305
510
|
} | null;
|
|
306
511
|
definitionYml?: string | undefined;
|
|
307
512
|
definition?: any;
|
|
513
|
+
}, "definition" | "currentVersion" | "publishedVersion" | "definitionYml"> & {
|
|
514
|
+
currentVersion: (Pick<{
|
|
515
|
+
id: string;
|
|
516
|
+
createdAt: Date;
|
|
517
|
+
updatedAt: Date;
|
|
518
|
+
version: number;
|
|
519
|
+
definitionYml: string;
|
|
520
|
+
checksum: string;
|
|
521
|
+
message: string | null;
|
|
522
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
523
|
+
parentVersion: string | null;
|
|
524
|
+
workflow: string;
|
|
525
|
+
createdBy: string | null;
|
|
526
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
527
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
528
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
529
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
530
|
+
definitionYmlByteLength?: number;
|
|
531
|
+
}) | null;
|
|
532
|
+
publishedVersion: (Pick<{
|
|
533
|
+
id: string;
|
|
534
|
+
createdAt: Date;
|
|
535
|
+
updatedAt: Date;
|
|
536
|
+
version: number;
|
|
537
|
+
definitionYml: string;
|
|
538
|
+
checksum: string;
|
|
539
|
+
message: string | null;
|
|
540
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
541
|
+
parentVersion: string | null;
|
|
542
|
+
workflow: string;
|
|
543
|
+
createdBy: string | null;
|
|
544
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
545
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
546
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
547
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
548
|
+
definitionYmlByteLength?: number;
|
|
549
|
+
}) | null;
|
|
550
|
+
currentVersionId: string | null;
|
|
551
|
+
publishedVersionId: string | null;
|
|
308
552
|
}>;
|
|
309
553
|
publishWorkflow(args: {
|
|
310
554
|
id: string;
|
|
311
|
-
}): Promise<{
|
|
555
|
+
}): Promise<Omit<{
|
|
312
556
|
id: string;
|
|
313
557
|
createdAt: Date;
|
|
314
558
|
updatedAt: Date;
|
|
@@ -384,10 +628,49 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
384
628
|
} | null;
|
|
385
629
|
definitionYml?: string | undefined;
|
|
386
630
|
definition?: any;
|
|
631
|
+
}, "definition" | "currentVersion" | "publishedVersion" | "definitionYml"> & {
|
|
632
|
+
currentVersion: (Pick<{
|
|
633
|
+
id: string;
|
|
634
|
+
createdAt: Date;
|
|
635
|
+
updatedAt: Date;
|
|
636
|
+
version: number;
|
|
637
|
+
definitionYml: string;
|
|
638
|
+
checksum: string;
|
|
639
|
+
message: string | null;
|
|
640
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
641
|
+
parentVersion: string | null;
|
|
642
|
+
workflow: string;
|
|
643
|
+
createdBy: string | null;
|
|
644
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
645
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
646
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
647
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
648
|
+
definitionYmlByteLength?: number;
|
|
649
|
+
}) | null;
|
|
650
|
+
publishedVersion: (Pick<{
|
|
651
|
+
id: string;
|
|
652
|
+
createdAt: Date;
|
|
653
|
+
updatedAt: Date;
|
|
654
|
+
version: number;
|
|
655
|
+
definitionYml: string;
|
|
656
|
+
checksum: string;
|
|
657
|
+
message: string | null;
|
|
658
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
659
|
+
parentVersion: string | null;
|
|
660
|
+
workflow: string;
|
|
661
|
+
createdBy: string | null;
|
|
662
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
663
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
664
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
665
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
666
|
+
definitionYmlByteLength?: number;
|
|
667
|
+
}) | null;
|
|
668
|
+
currentVersionId: string | null;
|
|
669
|
+
publishedVersionId: string | null;
|
|
387
670
|
}>;
|
|
388
671
|
unpublishWorkflow(args: {
|
|
389
672
|
id: string;
|
|
390
|
-
}): Promise<{
|
|
673
|
+
}): Promise<Omit<{
|
|
391
674
|
id: string;
|
|
392
675
|
createdAt: Date;
|
|
393
676
|
updatedAt: Date;
|
|
@@ -463,6 +746,45 @@ export declare class HexabotWorkflowMcpTools extends HexabotMcpToolBase {
|
|
|
463
746
|
} | null;
|
|
464
747
|
definitionYml?: string | undefined;
|
|
465
748
|
definition?: any;
|
|
749
|
+
}, "definition" | "currentVersion" | "publishedVersion" | "definitionYml"> & {
|
|
750
|
+
currentVersion: (Pick<{
|
|
751
|
+
id: string;
|
|
752
|
+
createdAt: Date;
|
|
753
|
+
updatedAt: Date;
|
|
754
|
+
version: number;
|
|
755
|
+
definitionYml: string;
|
|
756
|
+
checksum: string;
|
|
757
|
+
message: string | null;
|
|
758
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
759
|
+
parentVersion: string | null;
|
|
760
|
+
workflow: string;
|
|
761
|
+
createdBy: string | null;
|
|
762
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
763
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
764
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
765
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
766
|
+
definitionYmlByteLength?: number;
|
|
767
|
+
}) | null;
|
|
768
|
+
publishedVersion: (Pick<{
|
|
769
|
+
id: string;
|
|
770
|
+
createdAt: Date;
|
|
771
|
+
updatedAt: Date;
|
|
772
|
+
version: number;
|
|
773
|
+
definitionYml: string;
|
|
774
|
+
checksum: string;
|
|
775
|
+
message: string | null;
|
|
776
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
777
|
+
parentVersion: string | null;
|
|
778
|
+
workflow: string;
|
|
779
|
+
createdBy: string | null;
|
|
780
|
+
}, "id" | "createdAt" | "updatedAt" | "message" | "action" | "version" | "checksum"> & {
|
|
781
|
+
parentVersion: import("@hexabot-ai/types").WorkflowVersion["parentVersion"] | import("@hexabot-ai/types").WorkflowVersionFull["parentVersion"];
|
|
782
|
+
workflow: import("@hexabot-ai/types").WorkflowVersion["workflow"] | import("@hexabot-ai/types").WorkflowVersionFull["workflow"];
|
|
783
|
+
createdBy: import("@hexabot-ai/types").WorkflowVersion["createdBy"] | import("@hexabot-ai/types").WorkflowVersionFull["createdBy"];
|
|
784
|
+
definitionYmlByteLength?: number;
|
|
785
|
+
}) | null;
|
|
786
|
+
currentVersionId: string | null;
|
|
787
|
+
publishedVersionId: string | null;
|
|
466
788
|
}>;
|
|
467
789
|
private buildWorkflowWhere;
|
|
468
790
|
}
|