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.
Files changed (57) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/MCP_TOOL_CATALOG.json +156 -1253
  3. package/MCP_TOOL_MANIFEST.md +154 -220
  4. package/MCP_TOOL_OVERRIDES.json +8 -62
  5. package/N8N_MCP_MANIFEST.json +128 -705
  6. package/N8N_MCP_MANIFEST.md +43 -63
  7. package/README.md +10 -28
  8. package/capabilities.json +15315 -22219
  9. package/dist/{base-CVx2VMSj.d.cts → base-BVoYDlVA.d.cts} +2 -1
  10. package/dist/{base-CVx2VMSj.d.ts → base-BVoYDlVA.d.ts} +2 -1
  11. package/dist/capabilities.cjs +2 -2
  12. package/dist/capabilities.d.cts +2 -1
  13. package/dist/capabilities.d.ts +2 -1
  14. package/dist/capabilities.js +1 -1
  15. package/dist/{chunk-5VHSLJMR.js → chunk-A6LHCJQP.js} +30 -9
  16. package/dist/{chunk-JY2BWYXY.js → chunk-ASMCTZO2.js} +15314 -22218
  17. package/dist/{chunk-TH7B5H4P.cjs → chunk-DC3PY4EF.cjs} +1839 -1407
  18. package/dist/{chunk-4EFXIE53.js → chunk-DXKXQHCX.js} +5 -5
  19. package/dist/{chunk-SK3GYRNA.cjs → chunk-JO6WI763.cjs} +143 -143
  20. package/dist/{chunk-Q23JULNN.js → chunk-NSW7JPVS.js} +11529 -13319
  21. package/dist/{chunk-KTEDPS4X.js → chunk-O4PIPUS4.js} +1583 -1151
  22. package/dist/{chunk-MJTKK3QG.cjs → chunk-SN4BMQ2N.cjs} +31 -10
  23. package/dist/{chunk-5BDUMDAQ.cjs → chunk-VXVYFJH3.cjs} +15314 -22218
  24. package/dist/{chunk-VFLAMMIJ.cjs → chunk-YMBVKVK4.cjs} +10604 -12394
  25. package/dist/{index-C7rMJ4IV.d.ts → index-C5g1H_hF.d.ts} +1080 -1288
  26. package/dist/{index-Cm_Xpt7X.d.cts → index-Db0SNnQn.d.cts} +1080 -1288
  27. package/dist/{index-C3KFMnRT.d.cts → index-c549LvOb.d.cts} +332 -331
  28. package/dist/{index-C3KFMnRT.d.ts → index-c549LvOb.d.ts} +332 -331
  29. package/dist/index.cjs +23 -23
  30. package/dist/index.d.cts +15 -41
  31. package/dist/index.d.ts +15 -41
  32. package/dist/index.js +8 -8
  33. package/dist/operations/index.cjs +5 -2234
  34. package/dist/operations/index.d.cts +51 -323
  35. package/dist/operations/index.d.ts +51 -323
  36. package/dist/operations/index.js +30 -2259
  37. package/dist/pool.cjs +9 -9
  38. package/dist/pool.d.cts +4 -3
  39. package/dist/pool.d.ts +4 -3
  40. package/dist/pool.js +5 -5
  41. package/dist/resources/index.cjs +5 -5
  42. package/dist/resources/index.d.cts +2 -2
  43. package/dist/resources/index.d.ts +2 -2
  44. package/dist/resources/index.js +8 -8
  45. package/dist/types/index.d.cts +1 -1
  46. package/dist/types/index.d.ts +1 -1
  47. package/dist/untrusted.cjs +2 -2
  48. package/dist/untrusted.d.cts +14 -5
  49. package/dist/untrusted.d.ts +14 -5
  50. package/dist/untrusted.js +1 -1
  51. package/docs/API.md +321 -334
  52. package/docs/LIVE-TESTING.md +4 -6
  53. package/docs/N8N-ADAPTER.md +26 -26
  54. package/examples/mcp/schemas.ts +2 -0
  55. package/examples/mcp/tools-read.ts +3 -2
  56. package/n8n-mcp.curation.json +3 -3
  57. package/package.json +10 -9
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/untrusted.ts
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
- if (Array.isArray(value)) return value.map((entry) => deepMarkUntrusted(entry, fields));
35
- if (!isPlainRecord(value)) return value;
36
- const marked = markUntrusted(value, fields);
37
- const out = {};
38
- for (const [key, entry] of Object.entries(marked)) {
39
- out[key] = deepMarkUntrusted(entry, fields);
40
- }
41
- return out;
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;