@mibo-ai/n8n-nodes-mibo-testing 2.0.4 → 2.2.0

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 (31) hide show
  1. package/README.md +18 -5
  2. package/dist/credentials/MiboTestingApi.credentials.d.ts +3 -0
  3. package/dist/credentials/MiboTestingApi.credentials.d.ts.map +1 -1
  4. package/dist/credentials/MiboTestingApi.credentials.js +19 -2
  5. package/dist/credentials/MiboTestingApi.credentials.js.map +1 -1
  6. package/dist/nodes/MiboTesting/MiboTesting.node.d.ts.map +1 -1
  7. package/dist/nodes/MiboTesting/MiboTesting.node.js +154 -39
  8. package/dist/nodes/MiboTesting/MiboTesting.node.js.map +1 -1
  9. package/dist/nodes/MiboTesting/builders.d.ts +9 -2
  10. package/dist/nodes/MiboTesting/builders.d.ts.map +1 -1
  11. package/dist/nodes/MiboTesting/builders.js +85 -5
  12. package/dist/nodes/MiboTesting/builders.js.map +1 -1
  13. package/dist/nodes/MiboTesting/constants.d.ts +9 -0
  14. package/dist/nodes/MiboTesting/constants.d.ts.map +1 -1
  15. package/dist/nodes/MiboTesting/constants.js +20 -1
  16. package/dist/nodes/MiboTesting/constants.js.map +1 -1
  17. package/dist/nodes/MiboTesting/mibo-client.d.ts +8 -0
  18. package/dist/nodes/MiboTesting/mibo-client.d.ts.map +1 -1
  19. package/dist/nodes/MiboTesting/mibo-client.js +47 -3
  20. package/dist/nodes/MiboTesting/mibo-client.js.map +1 -1
  21. package/dist/nodes/MiboTesting/redaction.d.ts +8 -2
  22. package/dist/nodes/MiboTesting/redaction.d.ts.map +1 -1
  23. package/dist/nodes/MiboTesting/redaction.js +238 -18
  24. package/dist/nodes/MiboTesting/redaction.js.map +1 -1
  25. package/dist/nodes/MiboTesting/types.d.ts +7 -0
  26. package/dist/nodes/MiboTesting/types.d.ts.map +1 -1
  27. package/dist/nodes/MiboTesting/utils.d.ts +11 -1
  28. package/dist/nodes/MiboTesting/utils.d.ts.map +1 -1
  29. package/dist/nodes/MiboTesting/utils.js +74 -8
  30. package/dist/nodes/MiboTesting/utils.js.map +1 -1
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -15,12 +15,12 @@ n8n community node for **Mibo Testing** - a platform for semantic and procedural
15
15
 
16
16
  ## Product boundary
17
17
 
18
- The n8n node is a capture and transport integration. It collects observations available through supported n8n APIs, protects configured sensitive values inside n8n, translates them into canonical OTLP-shaped spans, and sends them to **hosted Mibo Testing**. Self-hosted n8n still sends trace data to the hosted Mibo service.
18
+ The n8n node is a capture and transport integration. It collects observations available through supported n8n APIs, protects configured sensitive values inside n8n, translates them into canonical OTLP-shaped spans, and sends them to the Mibo API, which is hosted Mibo Testing unless you set a different **Mibo API URL**. Self-hosted n8n still sends trace data to the Mibo API.
19
19
 
20
20
  Mibo owns trace storage, assertions, pass/fail evaluation, trace-grounded test creation, and result history. The node does not invoke workflows, store fixtures, schedule tests, or implement an assertion engine.
21
21
 
22
22
  ```text
23
- n8n workflow → Mibo Testing node → hosted Mibo
23
+ n8n workflow → Mibo Testing node → Mibo API
24
24
  capture + protect store + evaluate
25
25
  ```
26
26
 
@@ -31,7 +31,9 @@ n8n workflow → Mibo Testing node → hosted Mibo
31
31
  | Node display name, type, configured parameters, and captured output | Observed | Parameters and output are represented in each canonical span. |
32
32
  | Prompt, response, model, and token usage | Conditionally observed | Available when the executed n8n node exposes them in its parameters or output. |
33
33
  | Tool calls and arguments | Conditionally observed | AI Agent must have **Return Intermediate Steps** enabled. |
34
+ | Tool results | Conditionally observed | Copied from each step's `observation` after redaction. A step without an observation sends no result. n8n marks no structured tool error in the steps, so the node sends no tool error status. |
34
35
  | AI model and memory sub-nodes | Conditionally observed | Emitted as output-less spans when their parent exposes the connection. |
36
+ | Configured model | Conditionally observed | A language-model span carries the model set in its parameters only when every captured agent or chain in the trace has exactly one wired model with a literal value; otherwise the trace carries none. Expressions and masked values emit nothing. This is the configured model, not the model the provider served. |
35
37
  | Exact input consumed by every node | Unavailable | A community node cannot reliably reconstruct inputs across branches, merges, item linking, and sub-nodes. |
36
38
  | Per-node timing and workflow latency | Unavailable | Collector POST time is not workflow execution time. |
37
39
  | Retry or attempt count | Unavailable | Duplicate outputs and tool calls are not reliable retry evidence. |
@@ -63,6 +65,7 @@ Create a new credential of type **Mibo Testing API** with the following fields:
63
65
  | Field | Required | Description |
64
66
  |-------|----------|-------------|
65
67
  | **API Key** | Yes | Your Mibo Testing API key. Find it in your Mibo Testing dashboard under **Settings > API Keys**. |
68
+ | **Mibo API URL** | No | Optional. Keep the default (`https://api.mibo-ai.com`) unless Mibo support gives you another URL. Your API key is sent to this URL, so it must use `https` (plain `http` is accepted only for `localhost`) and must not contain a query or fragment. |
66
69
  | **n8n API Key** | No | Your n8n instance API key. Enables automatic workflow node detection without needing a separate "Get Workflow" node. To create one: open n8n, go to **Settings > API**, and click **Create an API Key**. The key only needs the **workflow:read** scope. |
67
70
  | **n8n API URL** | No | The URL of your n8n instance's REST API. Defaults to `http://localhost:5678/api/v1`, which works for most setups since the node runs inside n8n itself. Change only for n8n Cloud or custom deployments. |
68
71
 
@@ -90,13 +93,14 @@ If neither source is available, the node errors with a link to <https://docs.mib
90
93
  | Parameter | Description |
91
94
  |-----------|-------------|
92
95
  | **Agent ID** | Your agent UUID in Mibo Testing. Leave empty if the API key is already scoped to a single agent. |
93
- | **Request ID Override** | Optional override for the `x-request-id` used to correlate this trace. Leave empty to detect it from incoming webhook headers, falling back to the n8n execution ID. |
96
+ | **Request ID Override** | Optional override for the `x-request-id` used to correlate this trace. Leave empty to detect it from incoming webhook headers, falling back to the n8n execution ID. Mibo stores one trace per request ID, so a constant value makes every later execution a no-op: use a value that is unique per execution. |
94
97
  | **Include Metadata** | Add environment, version, and custom fields to the trace metadata. |
95
98
  | **Automatic Sensitive Data Protection** | Enabled by default. Replaces common secret-bearing keys and safe name patterns such as `databasePassword`, `myApiKey`, `aiKey`, `openAiKey`, authorization headers, cookies, access tokens, refresh tokens, and private keys with `[REDACTED]` before transmission. Token-usage metrics such as `promptTokens` and `totalTokens` are preserved. |
99
+ | **Mask Personal Data** | Enabled by default, including for workflows saved before this setting existed. Masks email addresses as `[email]`, phone numbers as `[phone]`, and payment card numbers as `[card]` in every captured string value: inputs, outputs, tool arguments, tool results, the JSON strings inside them, and metadata. Phone formats covered: `+` followed by 8 to 15 digits (for example `+34 612 345 678`, `+54 9 11 5555 1234`); US `555-123-4567` and `(555) 123-4567`; Spain `612 345 678` and `612 34 56 78`; Argentina `11 5555-1234`, `15 5555-1234`, `011 5555-1234`, `(011) 4555-1234`, `54 9 11 5555-1234`; Mexico `55 1234 5678` (area codes 55, 33, 81); Brazil `(11) 91234-5678`; WhatsApp IDs such as `5491155551234@s.whatsapp.net` and `wa.me/5491155551234`. Bare-digit numbers such as `5491155551234` or `612345678` look like IDs and are masked only under phone-named keys (`phone`, `phoneNumber`, `telefono`, `celular`, `movil`, `mobile`, `whatsapp`, `wa_id`, `msisdn`, `display_phone_number`), and under `from` or `recipient_id` when the value is 11 to 15 digits. Card numbers are found with single or double spaces or dashes inside, even beside an expiry or CVV, and must pass the Luhn check with a known issuer prefix and length. Object keys, numbers outside phone-named keys, and national ID numbers are not inspected. Grouped numbers that look like a phone, such as `123-456-7890`, are masked. UUIDs, trace and request IDs, timestamps, prices, and version strings are left unchanged. Turn it off only if you need raw values and accept that personal data is stored in Mibo Testing. |
96
100
  | **Custom Sensitive Data Protection** | Disabled by default. Enables custom field paths for customer or identity data. |
97
101
  | **Fields to Protect** | Repeatable dot-separated paths shown when Custom Sensitive Data Protection is enabled, such as `customer.email` or `customers.*.email`. Arrays are traversed transparently. |
98
102
 
99
- Sensitive data protection is applied locally to cloned node parameters, outputs, tool arguments, and user-provided metadata before the canonical trace is serialized or sent. Node names, workflow identifiers, correlation headers, and the returned `_miboTrace` summary are not protected or mutated. When input passthrough is enabled, original input items are returned unchanged and are not covered by output redaction. Automatic and custom rules are independent; enabling both applies their union. Invalid paths stop the transmission instead of falling back to an unprotected payload.
103
+ Sensitive data protection is applied locally to cloned node parameters, outputs, tool arguments, tool results, and user-provided metadata before the canonical trace is serialized or sent. Node names, workflow identifiers, correlation headers, and the returned `_miboTrace` summary are not protected or mutated. When input passthrough is enabled, original input items are returned unchanged and are not covered by output redaction. Automatic rules, personal data masking, and custom rules are independent; enabling several applies their union. Personal data masking applies even when Automatic Sensitive Data Protection is off. Invalid paths stop the transmission instead of falling back to an unprotected payload.
100
104
 
101
105
  Custom paths use a deep search within each captured value; they are not a pick for one field. A path such as `customer.email` protects every occurrence of that sequence at any depth, including `metadata.customer.email`. To protect only a specific branch, include it in the path, such as `metadata.customer.email`. A single field name such as `email` matches every `email` field at any depth, while `customers.*.email` matches `email` inside every element of `customers`.
102
106
 
@@ -137,6 +141,7 @@ The node returns one structured summary by default, without repeating the input
137
141
  },
138
142
  "redaction": {
139
143
  "automaticEnabled": true,
144
+ "piiEnabled": true,
140
145
  "manualEnabled": false,
141
146
  "valuesRedacted": 1
142
147
  },
@@ -146,7 +151,15 @@ The node returns one structured summary by default, without repeating the input
146
151
  }
147
152
  ```
148
153
 
149
- The `traceId` comes from the Mibo API response header and is `unknown` if the header is missing.
154
+ `miboUrl` is present only when the credential uses the default Mibo API URL.
155
+
156
+ The `traceId` comes from the Mibo API response header. A response without it is reported as `sent: false`.
157
+
158
+ ### When Mibo is unavailable
159
+
160
+ Tracing never breaks your workflow because Mibo is down. A Mibo `5xx`, a rate limit, a timeout, a network error, or a `200` whose body is not JSON (for example an HTML page from a proxy) returns `_miboTrace` with `sent: false` and the reason in `error`, under either **On Error** setting. The plan-limit rejections behave the same way.
161
+
162
+ Setup mistakes still throw, so you see them: a rejected Mibo API key (`401` or `403`), an invalid Mibo API URL, an Agent ID that is not a UUID or that Mibo does not know, and an Agent ID expression that fails.
150
163
 
151
164
  Turn on **Include Input Data in Output** to append the same `_miboTrace` summary to every original input item.
152
165
 
@@ -1,4 +1,7 @@
1
1
  import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare const MIBO_HTTPS_URL_PATTERN: RegExp;
3
+ export declare const MIBO_LOOPBACK_HTTP_URL_PATTERN: RegExp;
4
+ export declare const MIBO_API_URL_EXPRESSION: string;
2
5
  export declare class MiboTestingApi implements ICredentialType {
3
6
  name: string;
4
7
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"MiboTestingApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MiboTestingApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,IAAI,EACJ,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,qBAAa,cAAe,YAAW,eAAe;IACpD,IAAI,SAAoB;IACxB,WAAW,SAAsB;IACjC,gBAAgB,SAA6C;IAC7D,IAAI,CAAC,EAA8B,IAAI,CAAC;IACxC,UAAU,EAAE,eAAe,EAAE,CA4B3B;IAEF,YAAY,EAAE,oBAAoB,CAQhC;IAEF,IAAI,EAAE,sBAAsB,CAM1B;CACH"}
1
+ {"version":3,"file":"MiboTestingApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MiboTestingApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,IAAI,EACJ,eAAe,EAChB,MAAM,cAAc,CAAC;AAMtB,eAAO,MAAM,sBAAsB,QAA6C,CAAC;AACjF,eAAO,MAAM,8BAA8B,QAC2B,CAAC;AAEvE,eAAO,MAAM,uBAAuB,QAA8P,CAAC;AAEnS,qBAAa,cAAe,YAAW,eAAe;IACpD,IAAI,SAAoB;IACxB,WAAW,SAAsB;IACjC,gBAAgB,SAA6C;IAC7D,IAAI,CAAC,EAA8B,IAAI,CAAC;IACxC,UAAU,EAAE,eAAe,EAAE,CAqC3B;IAEF,YAAY,EAAE,oBAAoB,CAQhC;IAEF,IAAI,EAAE,sBAAsB,CAQ1B;CACH"}
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MiboTestingApi = void 0;
3
+ exports.MiboTestingApi = exports.MIBO_API_URL_EXPRESSION = exports.MIBO_LOOPBACK_HTTP_URL_PATTERN = exports.MIBO_HTTPS_URL_PATTERN = void 0;
4
+ // The declarative credential test runs on save and sends the API key, so the https rule is
5
+ // enforced here too. n8n expressions cannot call `new URL`, hence the regexes. A value that fails
6
+ // resolves to a base URL with no scheme, which cannot be requested. Keep in sync with
7
+ // resolveMiboApiUrl in nodes/MiboTesting/utils.ts.
8
+ exports.MIBO_HTTPS_URL_PATTERN = /^https:\/\/[^\s/?#@\\]+(\/[^\s?#\\]*)?$/i;
9
+ exports.MIBO_LOOPBACK_HTTP_URL_PATTERN = /^http:\/\/(localhost|127\.0\.0\.1|\[::1\])(:\d+)?(\/[^\s?#\\]*)?$/i;
10
+ exports.MIBO_API_URL_EXPRESSION = `={{(function (v) { return /${exports.MIBO_HTTPS_URL_PATTERN.source}/i.test(v) || /${exports.MIBO_LOOPBACK_HTTP_URL_PATTERN.source}/i.test(v) ? v : 'https://invalid.invalid'; })(String($credentials.miboUrl || 'https://api.mibo-ai.com').trim().replace(/\\/+$/, ''))}}`;
4
11
  class MiboTestingApi {
5
12
  name = 'miboTestingApi';
6
13
  displayName = 'Mibo Testing API';
@@ -16,6 +23,14 @@ class MiboTestingApi {
16
23
  required: true,
17
24
  description: 'Your Mibo Testing API key. You can find this in your Mibo Testing dashboard under Settings > API Keys.',
18
25
  },
26
+ {
27
+ displayName: 'Mibo API URL',
28
+ name: 'miboUrl',
29
+ type: 'string',
30
+ default: 'https://api.mibo-ai.com',
31
+ placeholder: 'e.g. https://api.mibo-ai.com',
32
+ description: 'Leave the default unless Mibo support gives you a different URL. Your Mibo API key is sent to this URL, so only enter an address you trust. Must be https, or http for localhost.',
33
+ },
19
34
  {
20
35
  displayName: 'n8n API Key (Optional)',
21
36
  name: 'n8nApiKey',
@@ -43,7 +58,9 @@ class MiboTestingApi {
43
58
  };
44
59
  test = {
45
60
  request: {
46
- baseURL: 'https://api.mibo-ai.com',
61
+ baseURL: exports.MIBO_API_URL_EXPRESSION,
62
+ // A redirect would forward x-api-key to wherever it points.
63
+ disableFollowRedirect: true,
47
64
  url: '/health',
48
65
  method: 'GET',
49
66
  },
@@ -1 +1 @@
1
- {"version":3,"file":"MiboTestingApi.credentials.js","sourceRoot":"","sources":["../../credentials/MiboTestingApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,cAAc;IACzB,IAAI,GAAG,gBAAgB,CAAC;IACxB,WAAW,GAAG,kBAAkB,CAAC;IACjC,gBAAgB,GAAG,yCAAyC,CAAC;IAC7D,IAAI,GAAI,uBAA+B,CAAC;IACxC,UAAU,GAAsB;QAC9B;YACE,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,wGAAwG;SAC3G;QACD;YACE,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,WAAW,EACT,2RAA2R;SAC9R;QACD;YACE,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,8BAA8B;YACvC,WAAW,EACT,4NAA4N;SAC/N;KACF,CAAC;IAEF,YAAY,GAAyB;QACnC,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,WAAW,EAAE,2BAA2B;gBACxC,cAAc,EAAE,kBAAkB;aACnC;SACF;KACF,CAAC;IAEF,IAAI,GAA2B;QAC7B,OAAO,EAAE;YACP,OAAO,EAAE,yBAAyB;YAClC,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,KAAK;SACd;KACF,CAAC;CACH;AApDD,wCAoDC"}
1
+ {"version":3,"file":"MiboTestingApi.credentials.js","sourceRoot":"","sources":["../../credentials/MiboTestingApi.credentials.ts"],"names":[],"mappings":";;;AAQA,2FAA2F;AAC3F,kGAAkG;AAClG,sFAAsF;AACtF,mDAAmD;AACtC,QAAA,sBAAsB,GAAG,0CAA0C,CAAC;AACpE,QAAA,8BAA8B,GACzC,oEAAoE,CAAC;AAE1D,QAAA,uBAAuB,GAAG,8BAA8B,8BAAsB,CAAC,MAAM,kBAAkB,sCAA8B,CAAC,MAAM,yIAAyI,CAAC;AAEnS,MAAa,cAAc;IACzB,IAAI,GAAG,gBAAgB,CAAC;IACxB,WAAW,GAAG,kBAAkB,CAAC;IACjC,gBAAgB,GAAG,yCAAyC,CAAC;IAC7D,IAAI,GAAI,uBAA+B,CAAC;IACxC,UAAU,GAAsB;QAC9B;YACE,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,wGAAwG;SAC3G;QACD;YACE,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,8BAA8B;YAC3C,WAAW,EACT,mLAAmL;SACtL;QACD;YACE,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,WAAW,EACT,2RAA2R;SAC9R;QACD;YACE,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,8BAA8B;YACvC,WAAW,EACT,4NAA4N;SAC/N;KACF,CAAC;IAEF,YAAY,GAAyB;QACnC,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,WAAW,EAAE,2BAA2B;gBACxC,cAAc,EAAE,kBAAkB;aACnC;SACF;KACF,CAAC;IAEF,IAAI,GAA2B;QAC7B,OAAO,EAAE;YACP,OAAO,EAAE,+BAAuB;YAChC,4DAA4D;YAC5D,qBAAqB,EAAE,IAAI;YAC3B,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,KAAK;SACd;KACF,CAAC;CACH;AA/DD,wCA+DC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MiboTesting.node.d.ts","sourceRoot":"","sources":["../../../nodes/MiboTesting/MiboTesting.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAmDtB,qBAAa,WAAY,YAAW,SAAS;IAC3C,WAAW,EAAE,oBAAoB,CA0M/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAgCxE"}
1
+ {"version":3,"file":"MiboTesting.node.d.ts","sourceRoot":"","sources":["../../../nodes/MiboTesting/MiboTesting.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,cAAc,CAAC;AA+FtB,qBAAa,WAAY,YAAW,SAAS;IAC3C,WAAW,EAAE,oBAAoB,CAoN/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAaxE"}
@@ -7,6 +7,7 @@ const constants_1 = require("./constants");
7
7
  const mibo_client_1 = require("./mibo-client");
8
8
  const redaction_1 = require("./redaction");
9
9
  const utils_1 = require("./utils");
10
+ const MAX_BRANCHES = 64;
10
11
  // `$items(name)` returns only the last run, so a node that ran several times (an agent
11
12
  // inside Loop Over Items) is read run by run until n8n reports the run missing.
12
13
  function readAllRuns(proxy, nodeName) {
@@ -20,6 +21,42 @@ function readAllRuns(proxy, nodeName) {
20
21
  }
21
22
  }
22
23
  }
24
+ // IF, Switch and Filter put items on one output index (IF true is 0, false is 1) and leave
25
+ // the others as empty arrays. A node that ran therefore has run data on output 0 even when it
26
+ // holds no items. n8n throws only when the node has no run data.
27
+ // Text Classifier and Sentiment Analysis answer with the output index an item left on, so the
28
+ // items are read per output. n8n throws once the index passes the last output.
29
+ function readBranches(proxy, nodeName) {
30
+ const branches = [];
31
+ for (let outputIndex = 0; outputIndex < MAX_BRANCHES; outputIndex++) {
32
+ try {
33
+ // The last run, like every other node: a classifier inside a loop reports its final iteration.
34
+ branches.push(proxy.$items(nodeName, outputIndex) ?? []);
35
+ }
36
+ catch {
37
+ break;
38
+ }
39
+ }
40
+ return branches;
41
+ }
42
+ // A sub-node has run data only when it ran for its parent. A pinned parent never calls it.
43
+ function subNodeRan(proxy, nodeName) {
44
+ try {
45
+ return proxy.$(nodeName).isExecuted !== false;
46
+ }
47
+ catch {
48
+ return true;
49
+ }
50
+ }
51
+ function nodeHasRunData(proxy, nodeName) {
52
+ try {
53
+ proxy.$items(nodeName, 0, 0);
54
+ return true;
55
+ }
56
+ catch {
57
+ return false;
58
+ }
59
+ }
23
60
  class MiboTesting {
24
61
  description = {
25
62
  displayName: 'Mibo Testing',
@@ -80,7 +117,7 @@ class MiboTesting {
80
117
  name: 'requestId',
81
118
  type: 'string',
82
119
  default: '',
83
- description: 'Optionally override the x-request-ID used to correlate this trace. By default the node finds x-request-ID in incoming webhook headers, then falls back to the n8n execution ID.',
120
+ description: 'Optionally override the x-request-ID used to correlate this trace. By default the node finds x-request-ID in incoming webhook headers, then falls back to the n8n execution ID. Mibo keeps one trace per request ID, so use a value that is unique per execution.',
84
121
  placeholder: 'e.g. custom-request-ID',
85
122
  },
86
123
  {
@@ -106,6 +143,15 @@ class MiboTesting {
106
143
  description: 'Whether to hide common sensitive values and safe secret-name patterns such as passwords, API keys, tokens, and cookies before sending the trace',
107
144
  hint: 'Enabled by default. Hides common secrets before the trace leaves n8n.',
108
145
  },
146
+ {
147
+ displayName: 'Mask Personal Data',
148
+ name: 'piiMasking',
149
+ type: 'boolean',
150
+ noDataExpression: true,
151
+ default: true,
152
+ description: 'Whether to mask email addresses, payment card numbers, and phone numbers before sending the trace. Phones are masked with a + country code, in US layouts, in Spain, Argentina, Mexico and Brazil local layouts, and as WhatsApp IDs; bare digits are masked only under phone-named keys such as phone or wa_id, and under from or recipient_id when the value is 11 to 15 digits. Turn off only if you need raw values and accept that personal data is stored in Mibo Testing.',
153
+ hint: 'Enabled by default, including for existing workflows. Masks values as [email], [phone], and [card].',
154
+ },
109
155
  {
110
156
  displayName: 'Custom Sensitive Data Protection',
111
157
  name: 'manualRedaction',
@@ -224,33 +270,54 @@ class MiboTesting {
224
270
  }
225
271
  catch (error) {
226
272
  // Tracing is observability: when the user chose Continue, no Mibo failure may stop the workflow.
227
- const items = this.getInputData();
228
- const traceInfo = {
229
- sent: false,
230
- error: error instanceof Error ? error.message : (0, mibo_client_1.parseErrorResponse)(error),
231
- timestamp: new Date().toISOString(),
232
- };
233
- const options = this.getNodeParameter('options', 0, {});
234
- if (options.includeInputData) {
235
- return [
236
- items.map((item, i) => ({
237
- json: { ...item.json, _miboTrace: traceInfo },
238
- pairedItem: { item: i },
239
- })),
240
- ];
241
- }
242
- return [
243
- [
244
- {
245
- json: { _miboTrace: traceInfo },
246
- pairedItem: items.map((_, item) => ({ item })),
247
- },
248
- ],
249
- ];
273
+ return notSentOutput.call(this, error instanceof Error ? error.message : (0, mibo_client_1.parseErrorResponse)(error));
250
274
  }
251
275
  }
252
276
  }
253
277
  exports.MiboTesting = MiboTesting;
278
+ function notSentOutput(message) {
279
+ const items = this.getInputData();
280
+ const traceInfo = {
281
+ sent: false,
282
+ error: message,
283
+ timestamp: new Date().toISOString(),
284
+ };
285
+ const options = this.getNodeParameter('options', 0, {});
286
+ if (options.includeInputData) {
287
+ return [
288
+ items.map((item, i) => ({
289
+ json: { ...item.json, _miboTrace: traceInfo },
290
+ pairedItem: { item: i },
291
+ })),
292
+ ];
293
+ }
294
+ return [
295
+ [
296
+ {
297
+ json: { _miboTrace: traceInfo },
298
+ pairedItem: items.map((_, item) => ({ item })),
299
+ },
300
+ ],
301
+ ];
302
+ }
303
+ // A failing expression must not silently route the trace to the key's default agent.
304
+ function resolvePlatformId() {
305
+ let value;
306
+ try {
307
+ value = this.getNodeParameter('platformId', 0);
308
+ }
309
+ catch (error) {
310
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Agent ID could not be resolved', {
311
+ description: `The Agent ID expression failed: ${error instanceof Error ? error.message : 'unknown error'}. Fix the expression or enter the Agent ID directly.`,
312
+ });
313
+ }
314
+ if (typeof value !== 'string') {
315
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Agent ID could not be resolved', {
316
+ description: 'The Agent ID must resolve to text. Fix the expression or enter the Agent ID directly.',
317
+ });
318
+ }
319
+ return value;
320
+ }
254
321
  async function runExecute() {
255
322
  const items = this.getInputData();
256
323
  const returnData = [];
@@ -261,20 +328,22 @@ async function runExecute() {
261
328
  description: 'Open the Mibo Testing credential and paste the API key from your Mibo workspace settings.',
262
329
  });
263
330
  }
331
+ const serverUrl = (0, utils_1.resolveMiboApiUrl)(this, credentials.miboUrl);
264
332
  const workflowData = this.getWorkflow();
265
333
  const workflowId = workflowData.id || 'unknown';
266
334
  const workflowName = workflowData.name || 'Unnamed Workflow';
267
335
  const { nodes: workflowNodes, connections } = await (0, utils_1.resolveWorkflow)(this, credentials, workflowId, items);
268
- const platformId = this.getNodeParameter('platformId', 0, '');
336
+ const platformId = resolvePlatformId.call(this);
269
337
  const includeMetadata = this.getNodeParameter('includeMetadata', 0, false);
270
338
  const automaticRedaction = this.getNodeParameter('automaticRedaction', 0, true);
339
+ const piiMasking = this.getNodeParameter('piiMasking', 0, true);
271
340
  const manualRedaction = this.getNodeParameter('manualRedaction', 0, false);
272
341
  const redactionFields = this.getNodeParameter('redactionFields', 0, {});
273
342
  const options = this.getNodeParameter('options', 0, {});
274
343
  const includeInputData = Boolean(options.includeInputData);
275
344
  let redactionPolicy;
276
345
  try {
277
- redactionPolicy = (0, redaction_1.buildRedactionPolicy)(automaticRedaction, manualRedaction, redactionFields);
346
+ redactionPolicy = (0, redaction_1.buildRedactionPolicy)(automaticRedaction, manualRedaction, redactionFields, piiMasking);
278
347
  }
279
348
  catch (error) {
280
349
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Invalid redaction field path', {
@@ -320,9 +389,14 @@ async function runExecute() {
320
389
  // Sub-nodes never expose output via $items — skip the lookup, emit them below.
321
390
  if (!isSubNode) {
322
391
  try {
323
- const nodeItems = constants_1.INTERMEDIATE_STEPS_NODE_TYPES.includes(type)
324
- ? readAllRuns(proxy, nodeName)
325
- : proxy.$items(nodeName);
392
+ const branchItems = constants_1.BRANCH_OUTPUT_NODE_TYPES.includes(type)
393
+ ? readBranches(proxy, nodeName)
394
+ : [];
395
+ const nodeItems = branchItems.length
396
+ ? branchItems.flat()
397
+ : constants_1.INTERMEDIATE_STEPS_NODE_TYPES.includes(type)
398
+ ? readAllRuns(proxy, nodeName)
399
+ : proxy.$items(nodeName);
326
400
  if (nodeItems && nodeItems.length > 0) {
327
401
  const itemsJson = [];
328
402
  for (const ni of nodeItems) {
@@ -337,6 +411,9 @@ async function runExecute() {
337
411
  type,
338
412
  status: 'success',
339
413
  items: itemsJson,
414
+ ...(branchItems.length > 0 && {
415
+ branches: branchItems.map((branch) => branch.map((ni) => ni.json)),
416
+ }),
340
417
  parameters,
341
418
  });
342
419
  captured = true;
@@ -345,11 +422,22 @@ async function runExecute() {
345
422
  catch {
346
423
  // node not reachable in this execution branch — fall through below
347
424
  }
425
+ if (!captured && nodeHasRunData(proxy, nodeName)) {
426
+ sources.push({ nodeName, type, status: 'success', items: [], parameters });
427
+ captured = true;
428
+ }
348
429
  }
349
430
  if (!captured) {
350
431
  if (isSubNode) {
351
- // Ran inside its parent: success, no output, not an alarm.
352
- sources.push({ nodeName, type, status: 'success', items: [], parameters });
432
+ // Ran inside its parent: success, no output, not an alarm. When the parent never ran
433
+ // (pinned data), the sub-node did not either.
434
+ sources.push({
435
+ nodeName,
436
+ type,
437
+ status: subNodeRan(proxy, nodeName) ? 'success' : 'skipped',
438
+ items: [],
439
+ parameters,
440
+ });
353
441
  }
354
442
  else {
355
443
  nodesNotExecuted.push(nodeName);
@@ -369,15 +457,36 @@ async function runExecute() {
369
457
  : extractedRequestId
370
458
  ? 'x-request-id'
371
459
  : 'executionId';
372
- const { sources: redactedSources, metadata: redactedMetadata, summary, } = (0, redaction_1.redactCapture)(sources, metadata, redactionPolicy);
373
- const parentMap = (0, utils_1.buildParentMap)(connections);
374
- const toolCalls = (0, builders_1.extractToolCalls)(redactedSources);
375
- const httpResponseStatus = (0, builders_1.resolveHttpResponseStatus)(workflowNodes, parentMap, selfNodeName);
376
- const tracePayload = (0, builders_1.buildCanonicalTracePayload)(redactedSources, workflowId, redactedMetadata, platformId, parentMap, toolCalls, httpResponseStatus);
460
+ // Capture, redaction and payload building run on third-party data. An unexpected failure there
461
+ // must not break the workflow, and nothing is sent: an unredacted payload never leaves the node.
462
+ let prepared;
463
+ try {
464
+ prepared = (() => {
465
+ const { sources: redactedSources, metadata: redactedMetadata, summary, } = (0, redaction_1.redactCapture)(sources, metadata, redactionPolicy);
466
+ const parentMap = (0, utils_1.buildParentMap)(connections);
467
+ const toolCalls = (0, builders_1.extractToolCalls)(redactedSources);
468
+ const httpResponseStatus = (0, builders_1.resolveHttpResponseStatus)(workflowNodes, parentMap, selfNodeName);
469
+ const buildPayload = (calls) => (0, builders_1.buildCanonicalTracePayload)(redactedSources, workflowId, redactedMetadata, platformId, parentMap, calls, httpResponseStatus, (0, builders_1.resolveModelIdentities)(redactedSources, connections));
470
+ let tracePayload = buildPayload(toolCalls);
471
+ // A tool result repeats text the agent output already carries, so a large result can push an
472
+ // otherwise acceptable trace over the size limit. The results are dropped before the trace is.
473
+ if ((0, mibo_client_1.calculatePayloadSize)(tracePayload) > constants_1.MAX_PAYLOAD_SIZE_MB * 1024 * 1024) {
474
+ tracePayload = buildPayload(toolCalls.map(({ name, arguments: args, agentNodeName }) => ({
475
+ name,
476
+ arguments: args,
477
+ agentNodeName,
478
+ })));
479
+ }
480
+ return { redactedSources, summary, toolCalls, tracePayload };
481
+ })();
482
+ }
483
+ catch {
484
+ return notSentOutput.call(this, 'The trace could not be prepared, so nothing was sent.');
485
+ }
486
+ const { redactedSources, summary, toolCalls, tracePayload } = prepared;
377
487
  // Agents that have tools wired but won't expose them (returnIntermediateSteps off).
378
488
  // Distinct from an agent that simply didn't call a tool this run.
379
489
  const agentsNeedingSteps = (0, utils_1.agentsMissingIntermediateSteps)(connections, workflowNodes);
380
- const serverUrl = (0, utils_1.normalizeServerUrl)(constants_1.DEFAULT_SERVER_URL);
381
490
  const timeout = (options.timeout || constants_1.DEFAULT_TIMEOUT_SECONDS) * 1000;
382
491
  const payloadSize = (0, mibo_client_1.calculatePayloadSize)(tracePayload);
383
492
  const payloadSizeFormatted = (0, mibo_client_1.formatBytes)(payloadSize);
@@ -407,7 +516,7 @@ async function runExecute() {
407
516
  }
408
517
  const traceInfo = {
409
518
  sent: true,
410
- traceId: Object.entries(response?.headers || {}).find(([name]) => name.toLowerCase() === 'x-mibo-trace-id')?.[1] || 'unknown',
519
+ traceId: (0, mibo_client_1.traceIdHeader)(response),
411
520
  platformId: platformId || 'resolved-from-api-key',
412
521
  requestId: requestId || null,
413
522
  requestIdSource,
@@ -424,8 +533,10 @@ async function runExecute() {
424
533
  },
425
534
  redaction: summary,
426
535
  recommendations,
427
- miboUrl: constants_1.MIBO_APP_URL,
428
536
  };
537
+ // The app URL points at the default Mibo, so it is wrong for any other API URL.
538
+ if (serverUrl === constants_1.DEFAULT_SERVER_URL)
539
+ traceInfo.miboUrl = constants_1.MIBO_APP_URL;
429
540
  if (includeInputData) {
430
541
  for (let i = 0; i < items.length; i++) {
431
542
  returnData.push({
@@ -448,6 +559,10 @@ async function runExecute() {
448
559
  }
449
560
  catch (error) {
450
561
  const errorMessage = (0, mibo_client_1.parseErrorResponse)(error);
562
+ // A plan limit is a billing state and an outage of Mibo is not the user's fault: neither may break the
563
+ // workflow under any On Error setting. Only a setup mistake (rejected key, bad Agent ID) throws.
564
+ if ((0, mibo_client_1.isPlanLimitError)(error) || !(0, mibo_client_1.isSetupError)(error))
565
+ return notSentOutput.call(this, errorMessage);
451
566
  const isPayloadTooLarge = errorMessage.toLowerCase().includes('too large');
452
567
  throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
453
568
  message: `Failed to send trace to Mibo Testing: ${errorMessage}`,
@@ -1 +1 @@
1
- {"version":3,"file":"MiboTesting.node.js","sourceRoot":"","sources":["../../../nodes/MiboTesting/MiboTesting.node.ts"],"names":[],"mappings":";;;AAQA,+CAAqF;AACrF,yCAKoB;AACpB,2CAOqB;AACrB,+CAMuB;AACvB,2CAAkE;AAElE,mCASiB;AAIjB,uFAAuF;AACvF,gFAAgF;AAChF,SAAS,WAAW,CAAC,KAAiB,EAAE,QAAgB;IACtD,MAAM,GAAG,GAAyB,EAAE,CAAC;IACrC,KAAK,IAAI,QAAQ,GAAG,CAAC,GAAI,QAAQ,EAAE,EAAE,CAAC;QACpC,IAAI,CAAC;YACH,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;QACnD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,GAAG,CAAC;QACb,CAAC;IACH,CAAC;AACH,CAAC;AAED,MAAa,WAAW;IACtB,WAAW,GAAyB;QAClC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAA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AAC,KAAK,CAAC,CAAC;QAC/C,uGAAuG;QACvG,iGAAiG;QACjG,IAAI,IAAA,8BAAgB,EAAC,KAAK,CAAC,IAAI,CAAC,IAAA,0BAAY,EAAC,KAAK,CAAC;YACjD,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAChD,MAAM,iBAAiB,GAAG,YAAY,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC3E,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,EAAE;YAC1D,OAAO,EAAE,yCAAyC,YAAY,EAAE;YAChE,WAAW,EAAE,iBAAiB;gBAC5B,CAAC,CAAC,oGAAoG;gBACtG,CAAC,CAAC,oGAAoG;SACzG,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,UAAU,CAAC,CAAC;AACtB,CAAC"}
@@ -1,6 +1,13 @@
1
1
  import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
2
- import type { CanonicalTracePayload, SpanSource, ToolCall, WorkflowNode } from './types';
2
+ import type { CanonicalTracePayload, SpanSource, ToolCall, WorkflowConnections, WorkflowNode } from './types';
3
3
  export declare function buildMetadata(workflowId: string, workflowName: string, timestamp: string, includeMetadata: boolean, metadataConfig: IDataObject, node: IExecuteFunctions): IDataObject;
4
+ /**
5
+ * The configured model of each language-model sub-node, keyed by node name. Wiring cannot
6
+ * show which of several models ran, so every consumer that ran, sub-nodes and tools included, must resolve to exactly one
7
+ * literal model. Otherwise the trace gets none, because a partial answer would let Mibo treat
8
+ * model capture as complete.
9
+ */
10
+ export declare function resolveModelIdentities(sources: SpanSource[], connections: WorkflowConnections): Map<string, string>;
4
11
  export declare function resolveHttpResponseStatus(workflowNodes: WorkflowNode[], parentMap: Record<string, string | null>, miboNodeName: string): number | undefined;
5
12
  /**
6
13
  * Recover the tools each agent actually invoked from its `intermediateSteps` output.
@@ -8,5 +15,5 @@ export declare function resolveHttpResponseStatus(workflowNodes: WorkflowNode[],
8
15
  * yield nothing. The agent must have "Return Intermediate Steps" enabled.
9
16
  */
10
17
  export declare function extractToolCalls(sources: SpanSource[]): ToolCall[];
11
- export declare function buildCanonicalTracePayload(sources: SpanSource[], workflowId: string, metadata: IDataObject, platformId: string, parentMap: Record<string, string | null>, toolCalls?: ToolCall[], httpResponseStatus?: number): CanonicalTracePayload;
18
+ export declare function buildCanonicalTracePayload(sources: SpanSource[], workflowId: string, metadata: IDataObject, platformId: string, parentMap: Record<string, string | null>, toolCalls?: ToolCall[], httpResponseStatus?: number, modelIdentities?: ReadonlyMap<string, string>): CanonicalTracePayload;
12
19
  //# sourceMappingURL=builders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../../nodes/MiboTesting/builders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGnE,OAAO,KAAK,EAEV,qBAAqB,EAErB,UAAU,EACV,QAAQ,EACR,YAAY,EACb,MAAM,SAAS,CAAC;AAGjB,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,OAAO,EACxB,cAAc,EAAE,WAAW,EAC3B,IAAI,EAAE,iBAAiB,GACtB,WAAW,CAuCb;AA+CD,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,YAAY,EAAE,EAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,EACxC,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,SAAS,CAsCpB;AA6BD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,EAAE,CAmClE;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,UAAU,EAAE,EACrB,UAAU,EAAE,MAAM,EA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