node-autotask 0.87.0 → 0.88.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.
- package/CHANGELOG.md +9 -0
- package/MCP_TOOL_CATALOG.json +152 -9
- package/README.md +1 -1
- package/capabilities.json +546 -26
- package/dist/capabilities-data.js +545 -25
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-G57Q7OAC.js → chunk-33UVHMFN.js} +2 -2
- package/dist/{chunk-BD4AUGCJ.cjs → chunk-CM5O672I.cjs} +5 -4
- package/dist/{chunk-HUA4WB4N.cjs → chunk-DSHWQMF2.cjs} +31 -30
- package/dist/{chunk-RU4ECNQN.cjs → chunk-JHDT4O7N.cjs} +200 -200
- package/dist/{chunk-NXSQXXNK.js → chunk-JVVE4XEN.js} +3 -2
- package/dist/{chunk-GAFG7RHG.js → chunk-KM7ITBOT.js} +541 -304
- package/dist/{chunk-YVNGUGG6.cjs → chunk-SHJ7EOBW.cjs} +3 -3
- package/dist/{chunk-7NKB4UXV.js → chunk-X6VWD6WW.js} +5 -4
- package/dist/{chunk-CUZJJCI5.cjs → chunk-YTOBU3Z6.cjs} +553 -316
- package/dist/{chunk-EXNDYJPG.js → chunk-ZADTVF6M.js} +3 -3
- package/dist/{index-Cxfr_DOD.d.cts → index-4jmitXBs.d.cts} +29 -1
- package/dist/{index-Cxfr_DOD.d.ts → index-4jmitXBs.d.ts} +29 -1
- package/dist/{index-CsL5gGJo.d.ts → index-GSA44LRd.d.ts} +13 -7
- package/dist/{index-DGiua9uK.d.cts → index-XDIy_GvD.d.cts} +13 -7
- package/dist/index.cjs +90 -87
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +9 -6
- package/dist/operations/index.cjs +53 -53
- package/dist/operations/index.d.cts +4 -4
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +3 -3
- package/dist/pool.cjs +13 -13
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +5 -5
- package/dist/resources/index.cjs +28 -28
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +4 -4
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/untrusted.cjs +11 -11
- package/dist/untrusted.d.cts +1 -1
- package/dist/untrusted.d.ts +1 -1
- package/dist/untrusted.js +1 -1
- package/docs/API.md +6 -2
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// src/capabilities.ts
|
|
4
4
|
var CAPABILITY_PLAN_HASHES = {
|
|
5
|
-
"B": "
|
|
6
|
-
"A": "
|
|
7
|
-
"operations": "
|
|
5
|
+
"B": "911f1470a0ebbe66c39579e8d26d97253914f4fecfe3b8d69ee61bd1710be132",
|
|
6
|
+
"A": "911f1470a0ebbe66c39579e8d26d97253914f4fecfe3b8d69ee61bd1710be132",
|
|
7
|
+
"operations": "911f1470a0ebbe66c39579e8d26d97253914f4fecfe3b8d69ee61bd1710be132"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|
|
@@ -46,7 +46,7 @@ function markUntrusted(record, fields) {
|
|
|
46
46
|
}
|
|
47
47
|
function deepMarkUntrusted(value, fields, projector) {
|
|
48
48
|
const fieldSet = new Set(fields);
|
|
49
|
-
const walk = (input, depth, wrap = false, udf = false, target, key) => {
|
|
49
|
+
const walk = (input, depth, wrap = false, udf = false, target, key, diff = false) => {
|
|
50
50
|
if (typeof input === "string") {
|
|
51
51
|
if (!wrap) return input;
|
|
52
52
|
return projector !== void 0 && target !== void 0 && key !== void 0 ? projector(input, target, key) : wrapUntrusted(input) ?? input;
|
|
@@ -57,7 +57,7 @@ function deepMarkUntrusted(value, fields, projector) {
|
|
|
57
57
|
const out2 = new Array(input.length);
|
|
58
58
|
let changed2 = fieldSet.size > 0;
|
|
59
59
|
input.forEach((entry, index) => {
|
|
60
|
-
const projected = walk(entry, depth + 1, wrap, udf && isPlainRecord(entry), out2, index);
|
|
60
|
+
const projected = walk(entry, depth + 1, wrap, udf && isPlainRecord(entry), out2, index, diff);
|
|
61
61
|
out2[index] = projected;
|
|
62
62
|
if (projected !== entry || projector !== void 0 && wrap && typeof entry === "string") changed2 = true;
|
|
63
63
|
});
|
|
@@ -65,9 +65,10 @@ function deepMarkUntrusted(value, fields, projector) {
|
|
|
65
65
|
}
|
|
66
66
|
const out = {};
|
|
67
67
|
let changed = fieldSet.size > 0;
|
|
68
|
+
const untrustedDiff = diff && typeof input.field === "string" && fieldSet.has(input.field);
|
|
68
69
|
for (const [key2, entry] of Object.entries(input)) {
|
|
69
|
-
const marked = fieldSet.has(key2) || udf && key2 === "value";
|
|
70
|
-
const projected = walk(entry, depth + 1, marked, key2 === "userDefinedFields" && Array.isArray(entry), out, key2);
|
|
70
|
+
const marked = fieldSet.has(key2) || udf && key2 === "value" || untrustedDiff && (key2 === "from" || key2 === "to");
|
|
71
|
+
const projected = walk(entry, depth + 1, marked, key2 === "userDefinedFields" && Array.isArray(entry), out, key2, input.simulated === true && key2 === "diff" && Array.isArray(entry));
|
|
71
72
|
if (projected !== entry || projector !== void 0 && marked && typeof entry === "string") changed = true;
|
|
72
73
|
Object.defineProperty(out, key2, { value: projected, enumerable: true, writable: true, configurable: true });
|
|
73
74
|
}
|