node-autotask 0.18.0 → 0.19.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 (38) hide show
  1. package/ARCHITECTURE.md +15 -8
  2. package/CHANGELOG.md +574 -0
  3. package/MCP_TOOL_CATALOG.json +2 -2
  4. package/MCP_TOOL_MANIFEST.md +5 -5
  5. package/N8N_MCP_MANIFEST.json +2 -2
  6. package/N8N_MCP_MANIFEST.md +3 -3
  7. package/README.md +8 -4
  8. package/capabilities.json +1223 -1223
  9. package/dist/capabilities.cjs +2 -2
  10. package/dist/capabilities.js +1 -1
  11. package/dist/{chunk-W2WSZOZA.js → chunk-4YKV7ORF.js} +2 -2
  12. package/dist/{chunk-7I3F3AJJ.cjs → chunk-7RDR5DSI.cjs} +393 -393
  13. package/dist/{chunk-HXOWEYV3.js → chunk-D5RAQ4DE.js} +2 -2
  14. package/dist/{chunk-5O5EPYBO.cjs → chunk-JM52ZU7T.cjs} +1222 -1222
  15. package/dist/{chunk-VYUZZIEE.js → chunk-LB2X4X4B.js} +86 -8
  16. package/dist/{chunk-VV2UUW2J.js → chunk-NDK7WYWA.js} +1222 -1222
  17. package/dist/{chunk-WRWX6WIK.cjs → chunk-QDYSHAU6.cjs} +147 -69
  18. package/dist/{chunk-G564CHXM.cjs → chunk-TIM75K3G.cjs} +135 -135
  19. package/dist/{index-BqPY04ZG.d.ts → index-DLugNSr7.d.ts} +27 -13
  20. package/dist/{index-D7x3MkLK.d.cts → index-aZ3tCh1h.d.cts} +27 -13
  21. package/dist/index.cjs +24 -22
  22. package/dist/index.d.cts +2 -2
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +6 -4
  25. package/dist/operations/index.cjs +109 -109
  26. package/dist/operations/index.d.cts +2 -2
  27. package/dist/operations/index.d.ts +2 -2
  28. package/dist/operations/index.js +2 -2
  29. package/dist/pool.cjs +8 -8
  30. package/dist/pool.d.cts +1 -1
  31. package/dist/pool.d.ts +1 -1
  32. package/dist/pool.js +4 -4
  33. package/dist/resources/index.cjs +4 -4
  34. package/dist/resources/index.d.cts +1 -1
  35. package/dist/resources/index.d.ts +1 -1
  36. package/dist/resources/index.js +3 -3
  37. package/docs/API.md +48 -18
  38. package/package.json +2 -1
package/ARCHITECTURE.md CHANGED
@@ -539,14 +539,21 @@ export interface RequestOptions {
539
539
  that premise is unprovable from the response, and the #104 classifier pins this
540
540
  code as `unknown` for a write (never blindly resend). `idempotent: true` /
541
541
  `maxRetries` remain the explicit opt-ins.
542
- - **Maintenance-window wait (weekly window):** a non-JSON `2xx` that reads as a
543
- maintenance notice is waited out for up to `maintenanceMaxWaitMs` (default 1 h,
544
- polled every `maintenancePollMs` = 30 s) from the first such page — for reads
545
- AND writes, because the edge answered before the vendor application saw the
546
- request. It does not consume `maxRetries`, each post-wait attempt gets a fresh
547
- `timeoutMs`, and the timer is re-armed around the wait. On exhaustion the error
548
- carries `details.maintenance = { waits, waitedMs, maxWaitMs, exhausted }`. A page
549
- that does not read as maintenance (a wrong `baseUrl`) never enters the loop.
542
+ - **Maintenance-window wait (weekly window):** a NON-JSON body whose first
543
+ 256 bytes read as a maintenance notice is waited out at any status
544
+ (`2xx`/`4xx`/`5xx` — issue #114; a JSON body never enters) for up to
545
+ `maintenanceMaxWaitMs` (default 1 h; the observed ceiling is 4 h, exported as
546
+ `MAINTENANCE_WINDOW_MAX_MS`, polled every `maintenancePollMs` = 30 s) from the
547
+ first such page. A non-JSON `2xx` page is waited out for reads AND writes (edge-
548
+ served before execution). A non-JSON `4xx`/`5xx` page only for calls safe to
549
+ re-send (`retriable5xx`: GET / explicitly idempotent-flagged) — an unflagged
550
+ mutation makes ONE send and carries `details.maintenanceDetected`, because a
551
+ proxy can serve that page after forwarding the write. It does
552
+ not consume `maxRetries`, each post-wait attempt gets a fresh `timeoutMs`, and the
553
+ timer is re-armed around the wait. On exhaustion the error carries
554
+ `details.maintenance = { waits, waitedMs, maxWaitMs, exhausted }`. A non-JSON page
555
+ that does not read as maintenance (a wrong `baseUrl`) never enters the loop and
556
+ stamps `details.maintenancePatternMiss` (snippet at `debug`).
550
557
  - **Per-call budget override:** `InvokeOptions.maxRetries` / `MutationOpts.maxRetries`
551
558
  threads the transport's per-request override through a mutation (and its
552
559
  auxiliary reads, e.g. a partial-update merge read); `0` = exactly one send per