@mibo-ai/n8n-nodes-mibo-testing 0.2.1

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 (32) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +227 -0
  3. package/dist/credentials/MiboTestingApi.credentials.d.ts +11 -0
  4. package/dist/credentials/MiboTestingApi.credentials.d.ts.map +1 -0
  5. package/dist/credentials/MiboTestingApi.credentials.js +53 -0
  6. package/dist/credentials/MiboTestingApi.credentials.js.map +1 -0
  7. package/dist/nodes/MiboTesting/MiboTesting.node.d.ts +6 -0
  8. package/dist/nodes/MiboTesting/MiboTesting.node.d.ts.map +1 -0
  9. package/dist/nodes/MiboTesting/MiboTesting.node.js +468 -0
  10. package/dist/nodes/MiboTesting/MiboTesting.node.js.map +1 -0
  11. package/dist/nodes/MiboTesting/builders.d.ts +6 -0
  12. package/dist/nodes/MiboTesting/builders.d.ts.map +1 -0
  13. package/dist/nodes/MiboTesting/builders.js +102 -0
  14. package/dist/nodes/MiboTesting/builders.js.map +1 -0
  15. package/dist/nodes/MiboTesting/constants.d.ts +21 -0
  16. package/dist/nodes/MiboTesting/constants.d.ts.map +1 -0
  17. package/dist/nodes/MiboTesting/constants.js +36 -0
  18. package/dist/nodes/MiboTesting/constants.js.map +1 -0
  19. package/dist/nodes/MiboTesting/mibo-client.d.ts +8 -0
  20. package/dist/nodes/MiboTesting/mibo-client.d.ts.map +1 -0
  21. package/dist/nodes/MiboTesting/mibo-client.js +91 -0
  22. package/dist/nodes/MiboTesting/mibo-client.js.map +1 -0
  23. package/dist/nodes/MiboTesting/mibo-testing.svg +23 -0
  24. package/dist/nodes/MiboTesting/types.d.ts +79 -0
  25. package/dist/nodes/MiboTesting/types.d.ts.map +1 -0
  26. package/dist/nodes/MiboTesting/types.js +3 -0
  27. package/dist/nodes/MiboTesting/types.js.map +1 -0
  28. package/dist/nodes/MiboTesting/utils.d.ts +8 -0
  29. package/dist/nodes/MiboTesting/utils.d.ts.map +1 -0
  30. package/dist/nodes/MiboTesting/utils.js +88 -0
  31. package/dist/nodes/MiboTesting/utils.js.map +1 -0
  32. package/package.json +73 -0
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERROR_CODES = exports.AUTO_EXCLUDED_NODE_TYPES = exports.GZIP_THRESHOLD_BYTES = exports.MAX_PAYLOAD_SIZE_MB = exports.MAX_PAYLOAD_SIZE_BYTES = exports.UUID_REGEX = exports.DEFAULT_TIMEOUT_SECONDS = exports.DEFAULT_SERVER_URL = void 0;
4
+ exports.getServerUrl = getServerUrl;
5
+ exports.DEFAULT_SERVER_URL = 'https://api.mibo-ai.com';
6
+ exports.DEFAULT_TIMEOUT_SECONDS = 30;
7
+ exports.UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
8
+ exports.MAX_PAYLOAD_SIZE_BYTES = 10 * 1024 * 1024; // 10MB
9
+ exports.MAX_PAYLOAD_SIZE_MB = 10;
10
+ exports.GZIP_THRESHOLD_BYTES = 5 * 1024 * 1024; // 5MB - compress payloads larger than this
11
+ exports.AUTO_EXCLUDED_NODE_TYPES = [
12
+ 'n8n-nodes-base.stickyNote',
13
+ 'n8n-nodes-base.n8n',
14
+ 'n8n-nodes-base.respondToWebhook',
15
+ 'n8n-nodes-base.noOp',
16
+ 'n8n-nodes-base.wait',
17
+ 'n8n-nodes-base.start',
18
+ 'n8n-nodes-base.manualTrigger',
19
+ 'CUSTOM.miboTesting',
20
+ ];
21
+ function getServerUrl() {
22
+ return process.env.MIBO_SERVER_URL || exports.DEFAULT_SERVER_URL;
23
+ }
24
+ exports.ERROR_CODES = {
25
+ MISSING_API_KEY: 'Missing x-api-key header. Make sure you are sending the API key in the headers.',
26
+ INVALID_API_KEY: 'The API key does not exist or has been revoked. Verify that you are using a valid API key.',
27
+ VALIDATION_ERROR: 'The request body failed validation.',
28
+ PLATFORM_NOT_FOUND: {
29
+ withRestrictions: 'The API key is restricted to specific platforms. Verify that the platformId matches one of the allowed platforms.',
30
+ withoutRestrictions: 'Could not determine the target platform. Send a platformId in the body, or restrict the API key to a single platform.',
31
+ },
32
+ AUTH_ERROR: 'Internal error while validating the API key. Contact support.',
33
+ INTERNAL_SERVER_ERROR: 'Unexpected server error. Contact support if it persists.',
34
+ PAYLOAD_TOO_LARGE: 'The trace data is too large to send. Try reducing the number of target nodes or filtering nodes with large outputs (files, images, etc.).',
35
+ };
36
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../nodes/MiboTesting/constants.ts"],"names":[],"mappings":";;;AAmBA,oCAEC;AArBY,QAAA,kBAAkB,GAAG,yBAAyB,CAAC;AAC/C,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAC7B,QAAA,UAAU,GACrB,4EAA4E,CAAC;AAClE,QAAA,sBAAsB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO;AAClD,QAAA,mBAAmB,GAAG,EAAE,CAAC;AACzB,QAAA,oBAAoB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,2CAA2C;AAEnF,QAAA,wBAAwB,GAAG;IACtC,2BAA2B;IAC3B,oBAAoB;IACpB,iCAAiC;IACjC,qBAAqB;IACrB,qBAAqB;IACrB,sBAAsB;IACtB,8BAA8B;IAC9B,oBAAoB;CACrB,CAAC;AAEF,SAAgB,YAAY;IAC1B,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,0BAAkB,CAAC;AAC3D,CAAC;AAEY,QAAA,WAAW,GAAG;IACzB,eAAe,EACb,iFAAiF;IACnF,eAAe,EACb,4FAA4F;IAC9F,gBAAgB,EAAE,qCAAqC;IACvD,kBAAkB,EAAE;QAClB,gBAAgB,EACd,mHAAmH;QACrH,mBAAmB,EACjB,uHAAuH;KAC1H;IACD,UAAU,EAAE,+DAA+D;IAC3E,qBAAqB,EAAE,0DAA0D;IACjF,iBAAiB,EACf,2IAA2I;CACrI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { IExecuteFunctions } from 'n8n-workflow';
2
+ import type { MiboSuccessResponse, OptimizedTracePayload, TracePayload } from './types';
3
+ export declare function parseErrorResponse(error: unknown): string;
4
+ export declare function calculatePayloadSize(payload: TracePayload | OptimizedTracePayload): number;
5
+ export declare function formatBytes(bytes: number): string;
6
+ export declare function getPayloadSizeWarning(sizeBytes: number): string | null;
7
+ export declare function sendTrace(node: IExecuteFunctions, serverUrl: string, apiKey: string, payload: TracePayload | OptimizedTracePayload, timeout: number, requestId?: string): Promise<MiboSuccessResponse>;
8
+ //# sourceMappingURL=mibo-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mibo-client.d.ts","sourceRoot":"","sources":["../../../nodes/MiboTesting/mibo-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,iBAAiB,EAAuB,MAAM,cAAc,CAAC;AAExF,OAAO,KAAK,EAEV,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAmCzD;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,qBAAqB,GAAG,MAAM,CAE1F;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIjD;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMtE;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,GAAG,qBAAqB,EAC7C,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAmC9B"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseErrorResponse = parseErrorResponse;
4
+ exports.calculatePayloadSize = calculatePayloadSize;
5
+ exports.formatBytes = formatBytes;
6
+ exports.getPayloadSizeWarning = getPayloadSizeWarning;
7
+ exports.sendTrace = sendTrace;
8
+ const node_zlib_1 = require("node:zlib");
9
+ const constants_1 = require("./constants");
10
+ function parseErrorResponse(error) {
11
+ const err = error;
12
+ const errorData = err.response?.data;
13
+ const errorMessage = err.message?.toLowerCase() || '';
14
+ // Check for payload too large error
15
+ if (errorMessage.includes('entity too large') || errorMessage.includes('payload too large')) {
16
+ return constants_1.ERROR_CODES.PAYLOAD_TOO_LARGE;
17
+ }
18
+ if (errorData?.error?.code) {
19
+ const code = errorData.error.code;
20
+ let baseMessage;
21
+ if (code === 'PLATFORM_NOT_FOUND') {
22
+ const serverMessage = errorData.error.message || '';
23
+ const hasRestrictions = serverMessage.toLowerCase().includes('restricted') ||
24
+ serverMessage.toLowerCase().includes('allowed');
25
+ baseMessage = hasRestrictions
26
+ ? constants_1.ERROR_CODES.PLATFORM_NOT_FOUND.withRestrictions
27
+ : constants_1.ERROR_CODES.PLATFORM_NOT_FOUND.withoutRestrictions;
28
+ }
29
+ else {
30
+ const errorCode = constants_1.ERROR_CODES[code];
31
+ baseMessage = (typeof errorCode === 'string' ? errorCode : null) || errorData.error.message;
32
+ }
33
+ if (errorData.error.details?.length) {
34
+ const details = errorData.error.details.map((d) => `${d.path}: ${d.msg}`).join('; ');
35
+ return `${baseMessage} Details: ${details}`;
36
+ }
37
+ return baseMessage;
38
+ }
39
+ return err.message || 'Unknown error while sending the trace';
40
+ }
41
+ function calculatePayloadSize(payload) {
42
+ return new TextEncoder().encode(JSON.stringify(payload)).length;
43
+ }
44
+ function formatBytes(bytes) {
45
+ if (bytes < 1024)
46
+ return `${bytes} B`;
47
+ if (bytes < 1024 * 1024)
48
+ return `${(bytes / 1024).toFixed(1)} KB`;
49
+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
50
+ }
51
+ function getPayloadSizeWarning(sizeBytes) {
52
+ const sizeMB = sizeBytes / (1024 * 1024);
53
+ if (sizeMB > constants_1.MAX_PAYLOAD_SIZE_MB * 0.8) {
54
+ return `Warning: Payload size (${formatBytes(sizeBytes)}) is close to the ${constants_1.MAX_PAYLOAD_SIZE_MB}MB limit. Consider reducing target nodes.`;
55
+ }
56
+ return null;
57
+ }
58
+ async function sendTrace(node, serverUrl, apiKey, payload, timeout, requestId) {
59
+ const headers = {
60
+ 'x-api-key': apiKey,
61
+ 'Content-Type': 'application/json',
62
+ };
63
+ if (requestId) {
64
+ headers['x-request-id'] = requestId;
65
+ }
66
+ const jsonString = JSON.stringify(payload);
67
+ const payloadSize = Buffer.byteLength(jsonString, 'utf8');
68
+ const useCompression = payloadSize > constants_1.GZIP_THRESHOLD_BYTES;
69
+ if (useCompression) {
70
+ const compressed = (0, node_zlib_1.gzipSync)(jsonString);
71
+ headers['Content-Encoding'] = 'gzip';
72
+ headers['Content-Type'] = 'application/octet-stream';
73
+ return node.helpers.httpRequest({
74
+ method: 'POST',
75
+ url: `${serverUrl}/public/traces`,
76
+ headers,
77
+ body: compressed,
78
+ json: false,
79
+ timeout,
80
+ });
81
+ }
82
+ return node.helpers.httpRequest({
83
+ method: 'POST',
84
+ url: `${serverUrl}/public/traces`,
85
+ headers,
86
+ body: payload,
87
+ json: true,
88
+ timeout,
89
+ });
90
+ }
91
+ //# sourceMappingURL=mibo-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mibo-client.js","sourceRoot":"","sources":["../../../nodes/MiboTesting/mibo-client.ts"],"names":[],"mappings":";;AAUA,gDAmCC;AAED,oDAEC;AAED,kCAIC;AAED,sDAMC;AAED,8BA0CC;AA3GD,yCAAqC;AAErC,2CAAqF;AAQrF,SAAgB,kBAAkB,CAAC,KAAc;IAC/C,MAAM,GAAG,GA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3B,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,kBAAkB;KACnC,CAAC;IAEF,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IACtC,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC1D,MAAM,cAAc,GAAG,WAAW,GAAG,gCAAoB,CAAC;IAC1D,IAAI,cAAc,EAAE,CAAC;QACnB,MAAM,UAAU,GAAG,IAAA,oBAAQ,EAAC,UAAU,CAAC,CAAC;QACxC,OAAO,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC;QACrC,OAAO,CAAC,cAAc,CAAC,GAAG,0BAA0B,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;YAC9B,MAAM,EAAE,MAA6B;YACrC,GAAG,EAAE,GAAG,SAAS,gBAAgB;YACjC,OAAO;YACP,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;QAC9B,MAAM,EAAE,MAA6B;QACrC,GAAG,EAAE,GAAG,SAAS,gBAAgB;QACjC,OAAO;QACP,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,IAAI;QACV,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,23 @@
1
+ <svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="64" height="64" rx="32" fill="url(#paint0_linear_1689_22)"/>
3
+ <rect x="1.66211" y="1.49609" width="60.8416" height="60.8416" rx="30.4208" fill="#0F172A"/>
4
+ <path d="M11.2976 27.2741H9.07079C8.83538 27.2741 8.64453 27.4648 8.64453 27.7001V39.5376C8.64453 39.7729 8.83538 39.9637 9.07079 39.9637H10.989C11.2244 39.9637 11.4152 39.7729 11.4152 39.5376V31.8387L14.9966 37.548C15.0442 37.6239 15.1548 37.6241 15.2027 37.5484L18.8139 31.8387V39.5376C18.8139 39.7729 19.0048 39.9637 19.2402 39.9637H21.1228C21.3602 39.9637 21.5519 39.7698 21.549 39.5325L21.407 27.695C21.4042 27.4618 21.2142 27.2741 20.9808 27.2741H18.7836C18.6326 27.2741 18.4929 27.354 18.4163 27.484L15.0994 33.1168L11.6616 27.4784C11.5842 27.3515 11.4463 27.2741 11.2976 27.2741Z" fill="white"/>
5
+ <path d="M23.7159 39.5376V27.2741H26.1213C26.3567 27.2741 26.5475 27.4648 26.5475 27.7001V39.5376C26.5475 39.7729 26.3567 39.9637 26.1213 39.9637H24.1422C23.9068 39.9637 23.7159 39.7729 23.7159 39.5376Z" fill="white"/>
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M35.2097 27.2741C35.2402 27.2741 35.2692 27.2759 35.2992 27.281C35.6762 27.3447 38.3611 27.8839 38.3611 30.3172C38.3611 32.9342 37.0519 33.2689 37.0519 33.2689C37.0519 33.2689 38.7265 33.8167 38.7265 36.3424C38.7265 39.4159 35.2555 39.9637 35.2555 39.9637H29.1965C28.961 39.9637 28.7702 39.7729 28.7702 39.5376V27.7001C28.7702 27.4648 28.961 27.2741 29.1965 27.2741H35.2097ZM31.5409 34.6992C31.4232 34.6992 31.3278 34.7945 31.3278 34.9122V37.3803C31.3278 37.4964 31.4209 37.5912 31.5372 37.5932L34.5167 37.6459L34.5522 37.6463C34.7297 37.6467 34.9079 37.6255 35.0768 37.5638L35.1206 37.5475C35.3452 37.4622 35.6536 37.3204 35.9126 37.1112C36.1889 36.8881 36.4125 36.5853 36.4125 36.1903C36.4125 35.7951 36.1886 35.488 35.9122 35.2596C35.653 35.0455 35.3444 34.8978 35.1198 34.8083L35.0761 34.7912C34.8969 34.7223 34.7063 34.6992 34.5169 34.6992H31.5409ZM31.5409 29.526C31.4232 29.526 31.3278 29.6213 31.3278 29.739V32.143C31.3278 32.2606 31.4232 32.356 31.5409 32.356H34.5931C34.7326 32.356 34.8731 32.3281 34.9952 32.2546L35.0254 32.2362C35.3458 32.0373 35.9253 31.5756 35.9253 30.8345C35.9253 30.5024 35.7639 30.2343 35.5662 30.0307C35.381 29.8399 35.1621 29.7038 35.0081 29.6219L34.9782 29.6062C34.8654 29.5481 34.7403 29.526 34.616 29.526H31.5409Z" fill="white"/>
7
+ <path d="M53.3412 33.6645C53.3412 37.3787 50.3286 40.3897 46.6123 40.3897C42.8961 40.3897 39.8835 37.3787 39.8835 33.6645C39.8835 29.9503 42.8961 26.9394 46.6123 26.9394C50.3286 26.9394 53.3412 29.9503 53.3412 33.6645ZM42.7169 33.6645C42.7169 35.8147 44.4609 37.5578 46.6123 37.5578C48.7637 37.5578 50.5077 35.8147 50.5077 33.6645C50.5077 31.5143 48.7637 29.7713 46.6123 29.7713C44.4609 29.7713 42.7169 31.5143 42.7169 33.6645Z" fill="white"/>
8
+ <path d="M48.2869 33.908C48.2869 34.7315 47.5372 35.3991 46.6123 35.3991C45.6875 35.3991 44.9377 34.7315 44.9377 33.908C44.9377 33.0845 45.6875 32.4169 46.6123 32.4169C47.5372 32.4169 48.2869 33.0845 48.2869 33.908Z" fill="white"/>
9
+ <path d="M53.8414 24.364L51.6919 26.2214C51.4333 26.4449 51.2356 26.7407 51.2143 27.0818C51.1965 27.3671 51.2259 27.6982 51.4168 27.8729C51.5805 28.0227 51.8605 28.0552 52.104 28.0492C52.4138 28.0416 52.6921 27.8814 52.916 27.6673L55.0413 25.6346C55.2789 25.4072 55.4622 25.1154 55.4606 24.7866C55.4597 24.5916 55.4266 24.3835 55.3141 24.2517C55.1833 24.0984 54.9393 24.0413 54.7146 24.0242C54.3905 23.9996 54.0873 24.1515 53.8414 24.364Z" fill="white"/>
10
+ <path d="M40.8937 23.4511L43.0432 25.3085C43.3018 25.532 43.4995 25.8278 43.5208 26.1688C43.5386 26.4542 43.5092 26.7853 43.3183 26.96C43.1546 27.1098 42.8746 27.1423 42.6311 27.1363C42.3213 27.1287 42.043 26.9685 41.8191 26.7544L39.6938 24.7216C39.4562 24.4943 39.2729 24.2025 39.2745 23.8737C39.2754 23.6786 39.3085 23.4706 39.421 23.3387C39.5519 23.1855 39.7959 23.1284 40.0205 23.1113C40.3446 23.0867 40.6478 23.2386 40.8937 23.4511Z" fill="white"/>
11
+ <path d="M48.3003 21.6349L48.2979 24.4749C48.2976 24.8165 48.2027 25.1594 47.9583 25.3983C47.7538 25.5983 47.4838 25.7923 47.2268 25.762C47.0063 25.7361 46.7988 25.5455 46.6442 25.3573C46.4475 25.1179 46.387 24.8027 46.4029 24.4933L46.554 21.5572C46.5709 21.2289 46.6722 20.8996 46.9223 20.6859C47.0707 20.5592 47.2498 20.4483 47.4232 20.4473C47.6248 20.4461 47.8274 20.5934 47.9872 20.7522C48.2176 20.9813 48.3006 21.31 48.3003 21.6349Z" fill="white"/>
12
+ <path d="M61.1742 32.0002C61.1742 48.1126 48.1126 61.1742 32.0002 61.1742C15.8878 61.1742 2.82617 48.1126 2.82617 32.0002C2.82617 15.8878 15.8878 2.82617 32.0002 2.82617C48.1126 2.82617 61.1742 15.8878 61.1742 32.0002ZM3.53087 32.0002C3.53087 47.7234 16.277 60.4695 32.0002 60.4695C47.7234 60.4695 60.4695 47.7234 60.4695 32.0002C60.4695 16.277 47.7234 3.53087 32.0002 3.53087C16.277 3.53087 3.53087 16.277 3.53087 32.0002Z" fill="url(#paint1_linear_1689_22)"/>
13
+ <defs>
14
+ <linearGradient id="paint0_linear_1689_22" x1="5.4026" y1="15.9584" x2="55.8545" y2="53.0286" gradientUnits="userSpaceOnUse">
15
+ <stop stop-color="#AD49FA"/>
16
+ <stop offset="1" stop-color="#5DF9BA"/>
17
+ </linearGradient>
18
+ <linearGradient id="paint1_linear_1689_22" x1="7.75166" y1="17.3753" x2="53.7481" y2="51.1717" gradientUnits="userSpaceOnUse">
19
+ <stop stop-color="#5DF9BA"/>
20
+ <stop offset="1" stop-color="#AC51F7"/>
21
+ </linearGradient>
22
+ </defs>
23
+ </svg>
@@ -0,0 +1,79 @@
1
+ import type { IDataObject } from 'n8n-workflow';
2
+ export interface MiboErrorResponse {
3
+ error: {
4
+ code: string;
5
+ details?: Array<{
6
+ location: string;
7
+ msg: string;
8
+ path: string;
9
+ type: string;
10
+ }>;
11
+ message: string;
12
+ };
13
+ success: false;
14
+ timestamp: string;
15
+ }
16
+ export interface MiboSuccessResponse {
17
+ data: {
18
+ createdAt: string;
19
+ externalId?: string;
20
+ id: string;
21
+ platformId: string;
22
+ status: string;
23
+ updatedAt: string;
24
+ };
25
+ message: string;
26
+ success: boolean;
27
+ timestamp: string;
28
+ }
29
+ export interface WorkflowNode {
30
+ name: string;
31
+ parameters?: IDataObject;
32
+ type: string;
33
+ }
34
+ export interface NodeDataInput {
35
+ _notExecuted?: boolean;
36
+ items: IDataObject[];
37
+ nodeName: string;
38
+ parameters?: IDataObject;
39
+ type?: string;
40
+ }
41
+ export interface TracePayload {
42
+ data: {
43
+ input: IDataObject[];
44
+ nodes?: NodeDataInput[];
45
+ };
46
+ externalId?: string;
47
+ externalMetadata: {
48
+ workflowId: string;
49
+ };
50
+ metadata: IDataObject;
51
+ platformId?: string;
52
+ }
53
+ export interface NodeOptions {
54
+ timeout?: number;
55
+ }
56
+ export interface MetadataFields {
57
+ additionalFields?: string | IDataObject;
58
+ environment?: string;
59
+ version?: string;
60
+ }
61
+ export interface OptimizedNodeData {
62
+ output: IDataObject | IDataObject[];
63
+ parameters?: IDataObject;
64
+ status: 'success' | 'skipped';
65
+ type: string;
66
+ }
67
+ export interface OptimizedTraceMetadata {
68
+ [key: string]: unknown;
69
+ timestamp: string;
70
+ workflow_id: string;
71
+ workflow_name: string;
72
+ }
73
+ export interface OptimizedTracePayload {
74
+ data: Record<string, OptimizedNodeData>;
75
+ metadata: OptimizedTraceMetadata;
76
+ platformId?: string;
77
+ status: 'success' | 'partial';
78
+ }
79
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../nodes/MiboTesting/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,KAAK,CAAC;YACd,QAAQ,EAAE,MAAM,CAAC;YACjB,GAAG,EAAE,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SACd,CAAC,CAAC;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE,KAAK,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW,EAAE,CAAC;QACrB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,gBAAgB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACxC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;CAC/B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../nodes/MiboTesting/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
2
+ import type { WorkflowNode } from './types';
3
+ export declare function isValidUUID(value: string): boolean;
4
+ export declare function normalizeServerUrl(url: string): string;
5
+ export declare function resolveN8nBaseUrl(credentialValue: string): string;
6
+ export declare function fetchWorkflowNodes(node: IExecuteFunctions, n8nBaseUrl: string, n8nApiKey: string, workflowId: string): Promise<WorkflowNode[]>;
7
+ export declare function findRequestIdInData(data: IDataObject): string | undefined;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../nodes/MiboTesting/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAgBjE;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,iBAAiB,EACvB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,EAAE,CAAC,CAoCzB;AAYD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAkBzE"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidUUID = isValidUUID;
4
+ exports.normalizeServerUrl = normalizeServerUrl;
5
+ exports.resolveN8nBaseUrl = resolveN8nBaseUrl;
6
+ exports.fetchWorkflowNodes = fetchWorkflowNodes;
7
+ exports.findRequestIdInData = findRequestIdInData;
8
+ const n8n_workflow_1 = require("n8n-workflow");
9
+ const constants_1 = require("./constants");
10
+ function isValidUUID(value) {
11
+ return constants_1.UUID_REGEX.test(value);
12
+ }
13
+ function normalizeServerUrl(url) {
14
+ return url.trim().replace(/\/+$/, '');
15
+ }
16
+ function resolveN8nBaseUrl(credentialValue) {
17
+ if (credentialValue) {
18
+ return credentialValue;
19
+ }
20
+ let base;
21
+ if (process.env.WEBHOOK_URL) {
22
+ base = process.env.WEBHOOK_URL.replace(/\/+$/, '');
23
+ }
24
+ else {
25
+ const protocol = process.env.N8N_PROTOCOL || 'http';
26
+ const host = process.env.N8N_HOST || 'localhost';
27
+ const port = process.env.N8N_PORT || '5678';
28
+ base = `${protocol}://${host}:${port}`;
29
+ }
30
+ return `${base}/api/v1`;
31
+ }
32
+ async function fetchWorkflowNodes(node, n8nBaseUrl, n8nApiKey, workflowId) {
33
+ const baseUrl = normalizeServerUrl(n8nBaseUrl);
34
+ try {
35
+ const response = await node.helpers.httpRequest({
36
+ method: 'GET',
37
+ url: `${baseUrl}/workflows/${workflowId}`,
38
+ headers: {
39
+ 'X-N8N-API-KEY': n8nApiKey,
40
+ },
41
+ json: true,
42
+ });
43
+ const nodes = response?.nodes;
44
+ if (!nodes || !Array.isArray(nodes)) {
45
+ throw new n8n_workflow_1.NodeOperationError(node.getNode(), 'Unexpected response from n8n API', {
46
+ description: 'The n8n API did not return a valid list of workflow nodes. Please verify that your n8n API Key has the "workflow:read" scope and that the workflow exists.',
47
+ });
48
+ }
49
+ return nodes.map((n) => ({
50
+ name: n.name,
51
+ parameters: n.parameters || {},
52
+ type: n.type,
53
+ }));
54
+ }
55
+ catch (error) {
56
+ if (error instanceof n8n_workflow_1.NodeOperationError) {
57
+ throw error;
58
+ }
59
+ throw new n8n_workflow_1.NodeOperationError(node.getNode(), 'Could not connect to your n8n instance', {
60
+ description: 'Please check that your n8n API Key and Base URL are correct in the Mibo Testing credentials. You can find your API key in n8n under Settings > API. Make sure your n8n instance is running and reachable.',
61
+ });
62
+ }
63
+ }
64
+ function extractRequestIdFromHeaders(headers) {
65
+ if (!headers) {
66
+ return undefined;
67
+ }
68
+ const headerKey = Object.keys(headers).find((key) => key.toLowerCase() === 'x-request-id');
69
+ return headerKey ? headers[headerKey] : undefined;
70
+ }
71
+ function findRequestIdInData(data) {
72
+ if (data.headers) {
73
+ const requestId = extractRequestIdFromHeaders(data.headers);
74
+ if (requestId) {
75
+ return requestId;
76
+ }
77
+ }
78
+ for (const value of Object.values(data)) {
79
+ if (value && typeof value === 'object' && !Array.isArray(value)) {
80
+ const requestId = findRequestIdInData(value);
81
+ if (requestId) {
82
+ return requestId;
83
+ }
84
+ }
85
+ }
86
+ return undefined;
87
+ }
88
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../nodes/MiboTesting/utils.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAED,gDAEC;AAED,8CAgBC;AAED,gDAyCC;AAYD,kDAkBC;AArGD,+CAAkD;AAClD,2CAAyC;AAGzC,SAAgB,WAAW,CAAC,KAAa;IACvC,OAAO,sBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC;AAED,SAAgB,kBAAkB,CAAC,GAAW;IAC5C,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,iBAAiB,CAAC,eAAuB;IACvD,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,IAAI,IAAY,CAAC;IACjB,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QAC5B,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;SAAM,CAAC;QACN,MAAM,QAAQ,GAAG,O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n8n-nodes-mibo-testing",
3
+ "version": "0.2.1",
4
+ "description": "n8n community node for Mibo Testing - Capture and send workflow traces for semantic and procedural testing",
5
+ "license": "GPL-3.0-or-later",
6
+ "homepage": "https://github.com/mibo-ai/mibo-testing-n8n-node",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "n8n",
10
+ "workflow",
11
+ "testing",
12
+ "trace",
13
+ "mibo"
14
+ ],
15
+ "author": {
16
+ "name": "Mibo Testing",
17
+ "email": "support@mibo-testing.com"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/mibo-ai/mibo-testing-n8n-node.git"
22
+ },
23
+ "engines": {
24
+ "node": ">=20.0.0",
25
+ "pnpm": ">=10.0.0",
26
+ "npm": "please-use-pnpm",
27
+ "yarn": "please-use-pnpm"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "n8n": {
36
+ "n8nNodesApiVersion": 1,
37
+ "credentials": [
38
+ "dist/credentials/MiboTestingApi.credentials.js"
39
+ ],
40
+ "nodes": [
41
+ "dist/nodes/MiboTesting/MiboTesting.node.js"
42
+ ]
43
+ },
44
+ "devDependencies": {
45
+ "@biomejs/biome": "^2.4.6",
46
+ "@types/node": "^22.0.0",
47
+ "chokidar": "^4.0.0",
48
+ "n8n-workflow": "*",
49
+ "pino": "^9.0.0",
50
+ "pino-pretty": "^13.0.0",
51
+ "typescript": "^5.7.0",
52
+ "vitest": "^4.0.18"
53
+ },
54
+ "peerDependencies": {
55
+ "n8n-workflow": "*"
56
+ },
57
+ "scripts": {
58
+ "build": "tsc && pnpm run copy:icons",
59
+ "copy:icons": "node scripts/copy-icons.mjs",
60
+ "watch": "tsc --watch",
61
+ "check": "biome check nodes credentials",
62
+ "check:fix": "biome check --fix nodes credentials",
63
+ "------- DEV -------": "echo 'Development commands'",
64
+ "dev": "node scripts/dev.mjs",
65
+ "dev:docker": "node scripts/dev-docker.mjs",
66
+ "dev:link": "pnpm run build && pnpm link",
67
+ "------- PROD -------": "echo 'Production commands'",
68
+ "docker:build": "docker build -t n8n-mibo-testing:latest .",
69
+ "docker:run": "docker compose up -d",
70
+ "test": "vitest run",
71
+ "test:watch": "vitest --watch"
72
+ }
73
+ }