node-autotask 0.91.0 → 0.92.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 +8 -0
- package/MCP_TOOL_CATALOG.json +152 -9
- package/README.md +1 -1
- package/capabilities.json +575 -28
- package/dist/capabilities-data.js +574 -27
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-43ADHLZJ.js → chunk-2MC3LDZU.js} +3 -3
- package/dist/{chunk-2GP7W6QB.js → chunk-4BICEQ4S.js} +841 -295
- package/dist/{chunk-Y2KXGSWM.js → chunk-C7KZ7PB3.js} +3 -2
- package/dist/{chunk-5PUHGPKG.cjs → chunk-JY6BQUPO.cjs} +202 -200
- package/dist/{chunk-RXXITZH4.cjs → chunk-LYAHXYZR.cjs} +847 -299
- package/dist/{chunk-YFC5VAKK.cjs → chunk-QC45KFQQ.cjs} +31 -30
- package/dist/{chunk-WAHRZDV4.js → chunk-QVDXIXY4.js} +4 -2
- package/dist/{chunk-KRYDLTY3.cjs → chunk-QXJQIZCT.cjs} +3 -3
- package/dist/{index-Dy92Xbpv.d.cts → index-B0p5O-2e.d.cts} +70 -2
- package/dist/{index-Dy92Xbpv.d.ts → index-B0p5O-2e.d.ts} +70 -2
- package/dist/{index-C3jXvpXZ.d.ts → index-it9IqLsM.d.ts} +13 -5
- package/dist/{index-BfGOllfY.d.cts → index-opnSlg90.d.cts} +13 -5
- package/dist/index.cjs +89 -85
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +51 -51
- package/dist/operations/index.d.cts +9 -4
- package/dist/operations/index.d.ts +9 -4
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +12 -12
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/API.md +39 -2
- package/examples/mcp/manifest.ts +1 -1
- package/examples/mcp/tools-mode.ts +15 -6
- package/examples/mcp/tools-read.ts +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.92.1] - 2026-11-21
|
|
11
|
+
|
|
12
|
+
- Add optional InventoryItems preconditions so preview and apply compare the same approved item and reference facts. Observed drift refuses before mutation (#511, #509, #468).
|
|
13
|
+
|
|
14
|
+
## [0.92.0] - 2026-11-21
|
|
15
|
+
|
|
16
|
+
- Add InventoryItems global reads and metadata, guarded create and collection PATCH, and fresh product/location and quantity checks. Replacing PUT and serial-number workflows remain tracked (#509, #468).
|
|
17
|
+
|
|
10
18
|
## [0.91.0] - 2026-11-21
|
|
11
19
|
|
|
12
20
|
- Add read-only InternalLocations and ShippingTypes global query, count, item and metadata operations. Internal location country filters preserve the vendor’s literal `Other` rule for nonstandard countries; shipping billing-code navigation remains unspecified (#468).
|
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-21T11:23:21.928Z",
|
|
4
|
+
"planHash": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac",
|
|
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 450 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 293 today); the 683 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 293 tools that require approval (readOnlyHint !== true); the 683 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 293 today); the 683 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",
|
|
@@ -20166,6 +20166,149 @@
|
|
|
20166
20166
|
"dateConventions": "date convention (verify against current field metadata): startDate and endDate are date-only at 00:00Z; tickets.dueDateTime is a true UTC instant."
|
|
20167
20167
|
}
|
|
20168
20168
|
},
|
|
20169
|
+
{
|
|
20170
|
+
"operation": "inventory_items.count",
|
|
20171
|
+
"core": false,
|
|
20172
|
+
"tool": "autotask_inventoryItem_count",
|
|
20173
|
+
"purpose": "Count inventory item records matching a JSON filter.",
|
|
20174
|
+
"preferredWhen": null,
|
|
20175
|
+
"backingOperation": "inventory_items.count",
|
|
20176
|
+
"effect": "read",
|
|
20177
|
+
"dryRunFirst": false,
|
|
20178
|
+
"confirm": false,
|
|
20179
|
+
"requiredArgs": [],
|
|
20180
|
+
"tier": "extended",
|
|
20181
|
+
"reachable": true,
|
|
20182
|
+
"reach": "dedicated tool",
|
|
20183
|
+
"reachReason": null,
|
|
20184
|
+
"boundedAlternative": null
|
|
20185
|
+
},
|
|
20186
|
+
{
|
|
20187
|
+
"operation": "inventory_items.create",
|
|
20188
|
+
"core": false,
|
|
20189
|
+
"tool": "autotask_inventoryItem_create",
|
|
20190
|
+
"purpose": "Create a product-location inventory item.",
|
|
20191
|
+
"preferredWhen": "Use for a new product-location pair after checking known inventory items.",
|
|
20192
|
+
"backingOperation": "inventory_items.create",
|
|
20193
|
+
"effect": "write",
|
|
20194
|
+
"dryRunFirst": true,
|
|
20195
|
+
"confirm": false,
|
|
20196
|
+
"requiredArgs": [
|
|
20197
|
+
"data"
|
|
20198
|
+
],
|
|
20199
|
+
"tier": "extended",
|
|
20200
|
+
"reachable": true,
|
|
20201
|
+
"reach": "dedicated tool",
|
|
20202
|
+
"reachReason": null,
|
|
20203
|
+
"boundedAlternative": null
|
|
20204
|
+
},
|
|
20205
|
+
{
|
|
20206
|
+
"operation": "inventory_items.get",
|
|
20207
|
+
"core": false,
|
|
20208
|
+
"tool": "autotask_inventoryItem_get",
|
|
20209
|
+
"purpose": "Get one InventoryItem by id.",
|
|
20210
|
+
"preferredWhen": "Preferred when the numeric id is already known.",
|
|
20211
|
+
"backingOperation": "inventory_items.get",
|
|
20212
|
+
"effect": "read",
|
|
20213
|
+
"dryRunFirst": false,
|
|
20214
|
+
"confirm": false,
|
|
20215
|
+
"requiredArgs": [
|
|
20216
|
+
"id"
|
|
20217
|
+
],
|
|
20218
|
+
"tier": "extended",
|
|
20219
|
+
"reachable": true,
|
|
20220
|
+
"reach": "dedicated tool",
|
|
20221
|
+
"reachReason": null,
|
|
20222
|
+
"boundedAlternative": null
|
|
20223
|
+
},
|
|
20224
|
+
{
|
|
20225
|
+
"operation": "inventory_items.getEntityInfo",
|
|
20226
|
+
"core": false,
|
|
20227
|
+
"tool": null,
|
|
20228
|
+
"purpose": "Get the InventoryItem capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
20229
|
+
"preferredWhen": null,
|
|
20230
|
+
"backingOperation": "inventory_items.getEntityInfo",
|
|
20231
|
+
"effect": "read",
|
|
20232
|
+
"dryRunFirst": false,
|
|
20233
|
+
"confirm": false,
|
|
20234
|
+
"requiredArgs": [],
|
|
20235
|
+
"tier": "extended",
|
|
20236
|
+
"reachable": true,
|
|
20237
|
+
"reach": "autotask_read (exact operation name; effect=read — read-only; zero mutating requests)",
|
|
20238
|
+
"reachReason": "no dedicated tool — the op is still discoverable and invocable by exact name",
|
|
20239
|
+
"boundedAlternative": null
|
|
20240
|
+
},
|
|
20241
|
+
{
|
|
20242
|
+
"operation": "inventory_items.getFieldInfo",
|
|
20243
|
+
"core": false,
|
|
20244
|
+
"tool": null,
|
|
20245
|
+
"purpose": "Get the InventoryItem field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
20246
|
+
"preferredWhen": null,
|
|
20247
|
+
"backingOperation": "inventory_items.getFieldInfo",
|
|
20248
|
+
"effect": "read",
|
|
20249
|
+
"dryRunFirst": false,
|
|
20250
|
+
"confirm": false,
|
|
20251
|
+
"requiredArgs": [],
|
|
20252
|
+
"tier": "extended",
|
|
20253
|
+
"reachable": true,
|
|
20254
|
+
"reach": "autotask_read (exact operation name; effect=read — read-only; zero mutating requests)",
|
|
20255
|
+
"reachReason": "no dedicated tool — the op is still discoverable and invocable by exact name",
|
|
20256
|
+
"boundedAlternative": null
|
|
20257
|
+
},
|
|
20258
|
+
{
|
|
20259
|
+
"operation": "inventory_items.getUdfInfo",
|
|
20260
|
+
"core": false,
|
|
20261
|
+
"tool": null,
|
|
20262
|
+
"purpose": "Get the InventoryItem user-defined-field catalog.",
|
|
20263
|
+
"preferredWhen": null,
|
|
20264
|
+
"backingOperation": "inventory_items.getUdfInfo",
|
|
20265
|
+
"effect": "read",
|
|
20266
|
+
"dryRunFirst": false,
|
|
20267
|
+
"confirm": false,
|
|
20268
|
+
"requiredArgs": [],
|
|
20269
|
+
"tier": "extended",
|
|
20270
|
+
"reachable": true,
|
|
20271
|
+
"reach": "autotask_read (exact operation name; effect=read — read-only; zero mutating requests)",
|
|
20272
|
+
"reachReason": "no dedicated tool — the op is still discoverable and invocable by exact name",
|
|
20273
|
+
"boundedAlternative": null
|
|
20274
|
+
},
|
|
20275
|
+
{
|
|
20276
|
+
"operation": "inventory_items.query",
|
|
20277
|
+
"core": false,
|
|
20278
|
+
"tool": "autotask_inventoryItem_query",
|
|
20279
|
+
"purpose": "Query InventoryItem records with a JSON filter.",
|
|
20280
|
+
"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).",
|
|
20281
|
+
"backingOperation": "inventory_items.query",
|
|
20282
|
+
"effect": "read",
|
|
20283
|
+
"dryRunFirst": false,
|
|
20284
|
+
"confirm": false,
|
|
20285
|
+
"requiredArgs": [],
|
|
20286
|
+
"tier": "extended",
|
|
20287
|
+
"reachable": true,
|
|
20288
|
+
"reach": "dedicated tool",
|
|
20289
|
+
"reachReason": null,
|
|
20290
|
+
"boundedAlternative": null
|
|
20291
|
+
},
|
|
20292
|
+
{
|
|
20293
|
+
"operation": "inventory_items.update",
|
|
20294
|
+
"core": false,
|
|
20295
|
+
"tool": "autotask_inventoryItem_update",
|
|
20296
|
+
"purpose": "Update writable inventory item fields with collection PATCH.",
|
|
20297
|
+
"preferredWhen": "Use with a known item ID and only the writable fields that should change.",
|
|
20298
|
+
"backingOperation": "inventory_items.update",
|
|
20299
|
+
"effect": "write",
|
|
20300
|
+
"dryRunFirst": true,
|
|
20301
|
+
"confirm": false,
|
|
20302
|
+
"requiredArgs": [
|
|
20303
|
+
"id",
|
|
20304
|
+
"data"
|
|
20305
|
+
],
|
|
20306
|
+
"tier": "extended",
|
|
20307
|
+
"reachable": true,
|
|
20308
|
+
"reach": "dedicated tool",
|
|
20309
|
+
"reachReason": null,
|
|
20310
|
+
"boundedAlternative": null
|
|
20311
|
+
},
|
|
20169
20312
|
{
|
|
20170
20313
|
"operation": "inventory_locations.count",
|
|
20171
20314
|
"core": false,
|
|
@@ -25941,11 +26084,11 @@
|
|
|
25941
26084
|
}
|
|
25942
26085
|
],
|
|
25943
26086
|
"counts": {
|
|
25944
|
-
"registryOperations":
|
|
26087
|
+
"registryOperations": 1421,
|
|
25945
26088
|
"coreOperations": 10,
|
|
25946
|
-
"catalogRows":
|
|
25947
|
-
"withTool":
|
|
25948
|
-
"readModeOnly":
|
|
26089
|
+
"catalogRows": 1421,
|
|
26090
|
+
"withTool": 971,
|
|
26091
|
+
"readModeOnly": 450,
|
|
25949
26092
|
"neverExposed": 0,
|
|
25950
26093
|
"metaTools": 5
|
|
25951
26094
|
}
|
package/README.md
CHANGED
|
@@ -388,7 +388,7 @@ The SDK ships the mechanical substrate, not a server (no MCP imports, no zod):
|
|
|
388
388
|
governor place: `src/operations/invoke.ts`).
|
|
389
389
|
|
|
390
390
|
<!-- BEGIN GENERATED:approval-policy -->
|
|
391
|
-
**Harness approval policy (recommended).** Require approval on every tool whose MCP annotation is `readOnlyHint !== true` — today exactly **
|
|
391
|
+
**Harness approval policy (recommended).** Require approval on every tool whose MCP annotation is `readOnlyHint !== true` — today exactly **293 tools**: the 291 dedicated write/delete tools (220 `effect=write` + 71 `effect=destructive`, every one of them has a dedicated tool) + `autotask_write` + `autotask_delete`. The remaining **683 tools** (the 670 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.
|
|
392
392
|
<!-- END GENERATED:approval-policy -->
|
|
393
393
|
**Provider tool-search interop.** Hosts with provider-native tool search
|
|
394
394
|
(OpenAI `type: "tool_search"` / `defer_loading`; Anthropic's tool search
|