node-autotask 0.43.0 → 0.45.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.
- package/CHANGELOG.md +49 -0
- package/MCP_TOOL_CATALOG.json +156 -1253
- package/MCP_TOOL_MANIFEST.md +154 -220
- package/MCP_TOOL_OVERRIDES.json +8 -62
- package/N8N_MCP_MANIFEST.json +128 -705
- package/N8N_MCP_MANIFEST.md +43 -63
- package/README.md +10 -28
- package/capabilities.json +15315 -22219
- package/dist/{base-CVx2VMSj.d.cts → base-BVoYDlVA.d.cts} +2 -1
- package/dist/{base-CVx2VMSj.d.ts → base-BVoYDlVA.d.ts} +2 -1
- package/dist/capabilities.cjs +2 -2
- package/dist/capabilities.d.cts +2 -1
- package/dist/capabilities.d.ts +2 -1
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-5VHSLJMR.js → chunk-A6LHCJQP.js} +30 -9
- package/dist/{chunk-JY2BWYXY.js → chunk-ASMCTZO2.js} +15314 -22218
- package/dist/{chunk-TH7B5H4P.cjs → chunk-DC3PY4EF.cjs} +1839 -1407
- package/dist/{chunk-4EFXIE53.js → chunk-DXKXQHCX.js} +5 -5
- package/dist/{chunk-SK3GYRNA.cjs → chunk-JO6WI763.cjs} +143 -143
- package/dist/{chunk-Q23JULNN.js → chunk-NSW7JPVS.js} +11529 -13319
- package/dist/{chunk-KTEDPS4X.js → chunk-O4PIPUS4.js} +1583 -1151
- package/dist/{chunk-MJTKK3QG.cjs → chunk-SN4BMQ2N.cjs} +31 -10
- package/dist/{chunk-5BDUMDAQ.cjs → chunk-VXVYFJH3.cjs} +15314 -22218
- package/dist/{chunk-VFLAMMIJ.cjs → chunk-YMBVKVK4.cjs} +10604 -12394
- package/dist/{index-C7rMJ4IV.d.ts → index-C5g1H_hF.d.ts} +1080 -1288
- package/dist/{index-Cm_Xpt7X.d.cts → index-Db0SNnQn.d.cts} +1080 -1288
- package/dist/{index-C3KFMnRT.d.cts → index-c549LvOb.d.cts} +332 -331
- package/dist/{index-C3KFMnRT.d.ts → index-c549LvOb.d.ts} +332 -331
- package/dist/index.cjs +23 -23
- package/dist/index.d.cts +15 -41
- package/dist/index.d.ts +15 -41
- package/dist/index.js +8 -8
- package/dist/operations/index.cjs +5 -2234
- package/dist/operations/index.d.cts +51 -323
- package/dist/operations/index.d.ts +51 -323
- package/dist/operations/index.js +30 -2259
- package/dist/pool.cjs +9 -9
- package/dist/pool.d.cts +4 -3
- package/dist/pool.d.ts +4 -3
- package/dist/pool.js +5 -5
- package/dist/resources/index.cjs +5 -5
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +8 -8
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/untrusted.cjs +2 -2
- package/dist/untrusted.d.cts +14 -5
- package/dist/untrusted.d.ts +14 -5
- package/dist/untrusted.js +1 -1
- package/docs/API.md +321 -334
- package/docs/LIVE-TESTING.md +4 -6
- package/docs/N8N-ADAPTER.md +26 -26
- package/examples/mcp/schemas.ts +2 -0
- package/examples/mcp/tools-read.ts +3 -2
- package/n8n-mcp.curation.json +3 -3
- package/package.json +10 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/untrusted.ts
|
|
2
2
|
var UNTRUSTED_OPEN = "<untrusted_content>";
|
|
3
3
|
var UNTRUSTED_CLOSE = "</untrusted_content>";
|
|
4
4
|
var UNTRUSTED_OPEN_NEUTRALISED = "\\u003Cuntrusted_content\\u003E";
|
|
@@ -30,15 +30,36 @@ function markUntrusted(record, fields) {
|
|
|
30
30
|
}
|
|
31
31
|
return out;
|
|
32
32
|
}
|
|
33
|
-
function deepMarkUntrusted(value, fields) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
function deepMarkUntrusted(value, fields, projector) {
|
|
34
|
+
const fieldSet = new Set(fields);
|
|
35
|
+
const walk = (input, depth, wrap = false, udf = false, target, key) => {
|
|
36
|
+
if (typeof input === "string") {
|
|
37
|
+
if (!wrap) return input;
|
|
38
|
+
return projector !== void 0 && target !== void 0 && key !== void 0 ? projector(input, target, key) : _nullishCoalesce(wrapUntrusted(input), () => ( input));
|
|
39
|
+
}
|
|
40
|
+
if (!Array.isArray(input) && !isPlainRecord(input)) return input;
|
|
41
|
+
if (depth >= 64) return "[DEPTH]";
|
|
42
|
+
if (Array.isArray(input)) {
|
|
43
|
+
const out2 = new Array(input.length);
|
|
44
|
+
let changed2 = fieldSet.size > 0;
|
|
45
|
+
input.forEach((entry, index) => {
|
|
46
|
+
const projected = walk(entry, depth + 1, wrap, udf && isPlainRecord(entry), out2, index);
|
|
47
|
+
out2[index] = projected;
|
|
48
|
+
if (projected !== entry || projector !== void 0 && wrap && typeof entry === "string") changed2 = true;
|
|
49
|
+
});
|
|
50
|
+
return changed2 ? out2 : input;
|
|
51
|
+
}
|
|
52
|
+
const out = {};
|
|
53
|
+
let changed = fieldSet.size > 0;
|
|
54
|
+
for (const [key2, entry] of Object.entries(input)) {
|
|
55
|
+
const marked = fieldSet.has(key2) || udf && key2 === "value";
|
|
56
|
+
const projected = walk(entry, depth + 1, marked, key2 === "userDefinedFields" && Array.isArray(entry), out, key2);
|
|
57
|
+
if (projected !== entry || projector !== void 0 && marked && typeof entry === "string") changed = true;
|
|
58
|
+
Object.defineProperty(out, key2, { value: projected, enumerable: true, writable: true, configurable: true });
|
|
59
|
+
}
|
|
60
|
+
return changed ? out : input;
|
|
61
|
+
};
|
|
62
|
+
return walk(value, 0);
|
|
42
63
|
}
|
|
43
64
|
function stripUntrustedWrapper(value) {
|
|
44
65
|
if (typeof value !== "string") return value;
|