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
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.88.1] - 2026-11-21
|
|
11
|
+
|
|
12
|
+
- Require own submitted and current InventoryLocations fields for create validation, inactivation guards and persisted verification. Validate the requested identity and response envelope, keep mutation IDs out of create bodies, and clarify the collection PATCH input comment (#504).
|
|
13
|
+
- Governed calls require explicit argument slots. Supply `dryRun: false` and `acknowledgeUnscoped: true` as own data properties to apply a mutation or acknowledge an unscoped read, respectively. An explicit empty aggregate filter still requests an unfiltered read (#504).
|
|
14
|
+
|
|
15
|
+
## [0.88.0] - 2026-11-21
|
|
16
|
+
|
|
17
|
+
- Add InventoryLocations account-wide reads, metadata, create and guarded partial collection PATCH. Inventory permissions govern access and location names must be unique. A fresh nondefault record is required for inactivation (#468).
|
|
18
|
+
|
|
10
19
|
## [0.87.0] - 2026-11-20
|
|
11
20
|
|
|
12
21
|
### Changed
|
package/MCP_TOOL_CATALOG.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generatedBy": "scripts/build-tool-catalog.mjs",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
4
|
-
"planHash": "
|
|
3
|
+
"generatedAt": "2026-11-20T22:03:19.483Z",
|
|
4
|
+
"planHash": "911f1470a0ebbe66c39579e8d26d97253914f4fecfe3b8d69ee61bd1710be132",
|
|
5
5
|
"metaTools": [
|
|
6
6
|
{
|
|
7
7
|
"name": "autotask_catalog",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
{
|
|
52
52
|
"name": "autotask_read",
|
|
53
53
|
"title": "Read One Registry Operation (read mode)",
|
|
54
|
-
"description": "Route an effect=read registry operation by its exact name (never fuzzy, never a tool name): the
|
|
54
|
+
"description": "Route an effect=read registry operation by its exact name (never fuzzy, never a tool name): the 441 field/entity/UDF-info reads (getEntityInfo/getFieldInfo/getUdfInfo) have no dedicated tool and ride this one, and any read op is routable. For field discovery use operations.fieldCatalog (compact) instead of per-resource getFieldInfo (full dump). Read-only by construction — every op it can route is effect=read (zero mutating requests), and a write or delete op is refused BEFORE any request (cross-mode refusal; the message names the correct tool). Reads have no dry run (a read with dry_run: true is refused). Harness approval policy: approve every tool with readOnlyHint !== true (exactly 291 today); the 674 readOnlyHint: true tools — including this one — are safe ungated; the 72 destructiveHint: true tools (71 dedicated delete tools + autotask_delete) require confirm === the operation key. Migration: autotask_invoke is REPLACED by autotask_read/autotask_write/autotask_delete — update harness config. For query/count ops args[0] is a params object (filter/limit); call autotask_describe first for the exact arg shape and filter grammar. The argument set is CLOSED at the top level: an unknown argument is refused before any request, with a typed error naming the key and the valid keys.",
|
|
55
55
|
"input": {
|
|
56
56
|
"operation": {
|
|
57
57
|
"type": "string",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
{
|
|
72
72
|
"name": "autotask_write",
|
|
73
73
|
"title": "Write One Registry Operation (write mode)",
|
|
74
|
-
"description": "Route an effect=write registry operation by its exact name (never fuzzy, never a tool name), dry-run-first: the first call always travels dry_run: true (the pinned DryRunResult envelope, simulated: true — the mutating request is never issued); pass dry_run: false to apply. A read or delete op is refused BEFORE any request (cross-mode refusal; the message names the correct tool). The 2 approval-gated writes (configuration_items.moveConfigurationItem, contacts.moveToCompany) additionally require confirm === the operation key, in BOTH dry-run and apply mode. Harness approval policy: this tool is one of the
|
|
74
|
+
"description": "Route an effect=write registry operation by its exact name (never fuzzy, never a tool name), dry-run-first: the first call always travels dry_run: true (the pinned DryRunResult envelope, simulated: true — the mutating request is never issued); pass dry_run: false to apply. A read or delete op is refused BEFORE any request (cross-mode refusal; the message names the correct tool). The 2 approval-gated writes (configuration_items.moveConfigurationItem, contacts.moveToCompany) additionally require confirm === the operation key, in BOTH dry-run and apply mode. Harness approval policy: this tool is one of the 291 tools that require approval (readOnlyHint !== true); the 674 readOnlyHint: true tools are safe ungated, and the 72 destructiveHint: true tools (71 dedicated delete tools + autotask_delete) require confirm === the operation key. Migration: autotask_invoke is REPLACED by autotask_read/autotask_write/autotask_delete — update harness config. For query/count ops args[0] is a params object (filter/limit); call autotask_describe first for the exact arg shape and filter grammar. The argument set is CLOSED at the top level: an unknown argument is refused before any request, with a typed error naming the key and the valid keys.",
|
|
75
75
|
"input": {
|
|
76
76
|
"operation": {
|
|
77
77
|
"type": "string",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
{
|
|
102
102
|
"name": "autotask_delete",
|
|
103
103
|
"title": "Delete One Registry Operation (delete mode)",
|
|
104
|
-
"description": "Route an effect=destructive (delete) registry operation by its exact name (never fuzzy, never a tool name), dry-run-first: the first call always travels dry_run: true (the pinned DryRunResult envelope, simulated: true); pass dry_run: false to apply. confirm === the operation key is REQUIRED for every delete (all 71), in BOTH dry-run and apply mode — the deliberate act is the call, not the delete. A read or write op is refused BEFORE any request (cross-mode refusal; the message names the correct tool). Harness approval policy: this tool is one of the 72 destructiveHint: true tools that require approval + confirm; approve every tool with readOnlyHint !== true (exactly
|
|
104
|
+
"description": "Route an effect=destructive (delete) registry operation by its exact name (never fuzzy, never a tool name), dry-run-first: the first call always travels dry_run: true (the pinned DryRunResult envelope, simulated: true); pass dry_run: false to apply. confirm === the operation key is REQUIRED for every delete (all 71), in BOTH dry-run and apply mode — the deliberate act is the call, not the delete. A read or write op is refused BEFORE any request (cross-mode refusal; the message names the correct tool). Harness approval policy: this tool is one of the 72 destructiveHint: true tools that require approval + confirm; approve every tool with readOnlyHint !== true (exactly 291 today); the 674 readOnlyHint: true tools are safe ungated. Migration: autotask_invoke is REPLACED by autotask_read/autotask_write/autotask_delete — update harness config. The argument set is CLOSED at the top level: an unknown argument is refused before any request, with a typed error naming the key and the valid keys.",
|
|
105
105
|
"input": {
|
|
106
106
|
"operation": {
|
|
107
107
|
"type": "string",
|
|
@@ -19958,6 +19958,149 @@
|
|
|
19958
19958
|
"dateConventions": "date convention (verify against current field metadata): startDate and endDate are date-only at 00:00Z; tickets.dueDateTime is a true UTC instant."
|
|
19959
19959
|
}
|
|
19960
19960
|
},
|
|
19961
|
+
{
|
|
19962
|
+
"operation": "inventory_locations.count",
|
|
19963
|
+
"core": false,
|
|
19964
|
+
"tool": "autotask_inventoryLocation_count",
|
|
19965
|
+
"purpose": "Count inventory location records matching a JSON filter.",
|
|
19966
|
+
"preferredWhen": null,
|
|
19967
|
+
"backingOperation": "inventory_locations.count",
|
|
19968
|
+
"effect": "read",
|
|
19969
|
+
"dryRunFirst": false,
|
|
19970
|
+
"confirm": false,
|
|
19971
|
+
"requiredArgs": [],
|
|
19972
|
+
"tier": "extended",
|
|
19973
|
+
"reachable": true,
|
|
19974
|
+
"reach": "dedicated tool",
|
|
19975
|
+
"reachReason": null,
|
|
19976
|
+
"boundedAlternative": null
|
|
19977
|
+
},
|
|
19978
|
+
{
|
|
19979
|
+
"operation": "inventory_locations.create",
|
|
19980
|
+
"core": false,
|
|
19981
|
+
"tool": "autotask_inventoryLocation_create",
|
|
19982
|
+
"purpose": "Create an inventory location.",
|
|
19983
|
+
"preferredWhen": "Only for a record that does not exist yet; prefer update for an id you already have.",
|
|
19984
|
+
"backingOperation": "inventory_locations.create",
|
|
19985
|
+
"effect": "write",
|
|
19986
|
+
"dryRunFirst": true,
|
|
19987
|
+
"confirm": false,
|
|
19988
|
+
"requiredArgs": [
|
|
19989
|
+
"data"
|
|
19990
|
+
],
|
|
19991
|
+
"tier": "extended",
|
|
19992
|
+
"reachable": true,
|
|
19993
|
+
"reach": "dedicated tool",
|
|
19994
|
+
"reachReason": null,
|
|
19995
|
+
"boundedAlternative": null
|
|
19996
|
+
},
|
|
19997
|
+
{
|
|
19998
|
+
"operation": "inventory_locations.get",
|
|
19999
|
+
"core": false,
|
|
20000
|
+
"tool": "autotask_inventoryLocation_get",
|
|
20001
|
+
"purpose": "Get one InventoryLocation by id.",
|
|
20002
|
+
"preferredWhen": "Preferred when the numeric id is already known.",
|
|
20003
|
+
"backingOperation": "inventory_locations.get",
|
|
20004
|
+
"effect": "read",
|
|
20005
|
+
"dryRunFirst": false,
|
|
20006
|
+
"confirm": false,
|
|
20007
|
+
"requiredArgs": [
|
|
20008
|
+
"id"
|
|
20009
|
+
],
|
|
20010
|
+
"tier": "extended",
|
|
20011
|
+
"reachable": true,
|
|
20012
|
+
"reach": "dedicated tool",
|
|
20013
|
+
"reachReason": null,
|
|
20014
|
+
"boundedAlternative": null
|
|
20015
|
+
},
|
|
20016
|
+
{
|
|
20017
|
+
"operation": "inventory_locations.getEntityInfo",
|
|
20018
|
+
"core": false,
|
|
20019
|
+
"tool": null,
|
|
20020
|
+
"purpose": "Get the InventoryLocation capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
20021
|
+
"preferredWhen": null,
|
|
20022
|
+
"backingOperation": "inventory_locations.getEntityInfo",
|
|
20023
|
+
"effect": "read",
|
|
20024
|
+
"dryRunFirst": false,
|
|
20025
|
+
"confirm": false,
|
|
20026
|
+
"requiredArgs": [],
|
|
20027
|
+
"tier": "extended",
|
|
20028
|
+
"reachable": true,
|
|
20029
|
+
"reach": "autotask_read (exact operation name; effect=read — read-only; zero mutating requests)",
|
|
20030
|
+
"reachReason": "no dedicated tool — the op is still discoverable and invocable by exact name",
|
|
20031
|
+
"boundedAlternative": null
|
|
20032
|
+
},
|
|
20033
|
+
{
|
|
20034
|
+
"operation": "inventory_locations.getFieldInfo",
|
|
20035
|
+
"core": false,
|
|
20036
|
+
"tool": null,
|
|
20037
|
+
"purpose": "Get the InventoryLocation field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
20038
|
+
"preferredWhen": null,
|
|
20039
|
+
"backingOperation": "inventory_locations.getFieldInfo",
|
|
20040
|
+
"effect": "read",
|
|
20041
|
+
"dryRunFirst": false,
|
|
20042
|
+
"confirm": false,
|
|
20043
|
+
"requiredArgs": [],
|
|
20044
|
+
"tier": "extended",
|
|
20045
|
+
"reachable": true,
|
|
20046
|
+
"reach": "autotask_read (exact operation name; effect=read — read-only; zero mutating requests)",
|
|
20047
|
+
"reachReason": "no dedicated tool — the op is still discoverable and invocable by exact name",
|
|
20048
|
+
"boundedAlternative": null
|
|
20049
|
+
},
|
|
20050
|
+
{
|
|
20051
|
+
"operation": "inventory_locations.getUdfInfo",
|
|
20052
|
+
"core": false,
|
|
20053
|
+
"tool": null,
|
|
20054
|
+
"purpose": "Get the InventoryLocation user-defined-field catalog.",
|
|
20055
|
+
"preferredWhen": null,
|
|
20056
|
+
"backingOperation": "inventory_locations.getUdfInfo",
|
|
20057
|
+
"effect": "read",
|
|
20058
|
+
"dryRunFirst": false,
|
|
20059
|
+
"confirm": false,
|
|
20060
|
+
"requiredArgs": [],
|
|
20061
|
+
"tier": "extended",
|
|
20062
|
+
"reachable": true,
|
|
20063
|
+
"reach": "autotask_read (exact operation name; effect=read — read-only; zero mutating requests)",
|
|
20064
|
+
"reachReason": "no dedicated tool — the op is still discoverable and invocable by exact name",
|
|
20065
|
+
"boundedAlternative": null
|
|
20066
|
+
},
|
|
20067
|
+
{
|
|
20068
|
+
"operation": "inventory_locations.query",
|
|
20069
|
+
"core": false,
|
|
20070
|
+
"tool": "autotask_inventoryLocation_query",
|
|
20071
|
+
"purpose": "Query InventoryLocation records with a JSON filter.",
|
|
20072
|
+
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
20073
|
+
"backingOperation": "inventory_locations.query",
|
|
20074
|
+
"effect": "read",
|
|
20075
|
+
"dryRunFirst": false,
|
|
20076
|
+
"confirm": false,
|
|
20077
|
+
"requiredArgs": [],
|
|
20078
|
+
"tier": "extended",
|
|
20079
|
+
"reachable": true,
|
|
20080
|
+
"reach": "dedicated tool",
|
|
20081
|
+
"reachReason": null,
|
|
20082
|
+
"boundedAlternative": null
|
|
20083
|
+
},
|
|
20084
|
+
{
|
|
20085
|
+
"operation": "inventory_locations.update",
|
|
20086
|
+
"core": false,
|
|
20087
|
+
"tool": "autotask_inventoryLocation_update",
|
|
20088
|
+
"purpose": "Update an inventory location.",
|
|
20089
|
+
"preferredWhen": "Preferred over create or delete when the record exists and only some fields change.",
|
|
20090
|
+
"backingOperation": "inventory_locations.update",
|
|
20091
|
+
"effect": "write",
|
|
20092
|
+
"dryRunFirst": true,
|
|
20093
|
+
"confirm": false,
|
|
20094
|
+
"requiredArgs": [
|
|
20095
|
+
"id",
|
|
20096
|
+
"data"
|
|
20097
|
+
],
|
|
20098
|
+
"tier": "extended",
|
|
20099
|
+
"reachable": true,
|
|
20100
|
+
"reach": "dedicated tool",
|
|
20101
|
+
"reachReason": null,
|
|
20102
|
+
"boundedAlternative": null
|
|
20103
|
+
},
|
|
19961
20104
|
{
|
|
19962
20105
|
"operation": "invoices.count",
|
|
19963
20106
|
"core": false,
|
|
@@ -25590,11 +25733,11 @@
|
|
|
25590
25733
|
}
|
|
25591
25734
|
],
|
|
25592
25735
|
"counts": {
|
|
25593
|
-
"registryOperations":
|
|
25736
|
+
"registryOperations": 1401,
|
|
25594
25737
|
"coreOperations": 10,
|
|
25595
|
-
"catalogRows":
|
|
25596
|
-
"withTool":
|
|
25597
|
-
"readModeOnly":
|
|
25738
|
+
"catalogRows": 1401,
|
|
25739
|
+
"withTool": 960,
|
|
25740
|
+
"readModeOnly": 441,
|
|
25598
25741
|
"neverExposed": 0,
|
|
25599
25742
|
"metaTools": 5
|
|
25600
25743
|
}
|
package/README.md
CHANGED
|
@@ -389,7 +389,7 @@ The SDK ships the mechanical substrate, not a server (no MCP imports, no zod):
|
|
|
389
389
|
governor place: `src/operations/invoke.ts`).
|
|
390
390
|
|
|
391
391
|
<!-- BEGIN GENERATED:approval-policy -->
|
|
392
|
-
**Harness approval policy (recommended).** Require approval on every tool whose MCP annotation is `readOnlyHint !== true` — today exactly **
|
|
392
|
+
**Harness approval policy (recommended).** Require approval on every tool whose MCP annotation is `readOnlyHint !== true` — today exactly **291 tools**: the 289 dedicated write/delete tools (218 `effect=write` + 71 `effect=destructive`, every one of them has a dedicated tool) + `autotask_write` + `autotask_delete`. The remaining **674 tools** (the 661 dedicated read tools + the 10 core read tools + `autotask_read` + `autotask_catalog` + `autotask_describe`) all carry `readOnlyHint: true` and are safe ungated: every op they can route is `effect=read` (zero mutating requests). Refined class for the highest-risk ops: the **72 tools with `destructiveHint: true`** (71 dedicated delete tools + `autotask_delete`) additionally require `confirm === <operation key>` even inside `autotask_delete`. The approval-gated writes (`configuration_items.moveConfigurationItem`, `contacts.moveToCompany`) require the same confirm inside `autotask_write`. Migration: `autotask_invoke` is REPLACED by `autotask_read`/`autotask_write`/`autotask_delete` — update harness config and remove any `autotask_invoke` entry. The rule is derivable from the registry `effect` column and the mode tools’ fixed annotations; it never needs a hand-maintained name list.
|
|
393
393
|
<!-- END GENERATED:approval-policy -->
|
|
394
394
|
**Provider tool-search interop.** Hosts with provider-native tool search
|
|
395
395
|
(OpenAI `type: "tool_search"` / `defer_loading`; Anthropic's tool search
|