ordainer 1.2.5 → 1.2.6

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 CHANGED
@@ -3,13 +3,18 @@
3
3
  Entries before 1.1.0 are written with the current names. Those versions used the product's former name for the
4
4
  package, class, env vars, outage error code, User-Agent and key prefix: the full list is in 1.1.0 "Renamed".
5
5
 
6
- ## 1.2.5
6
+ ## 1.2.6 (2026-11-09)
7
+
8
+ README-only: install with `npm install ordainer`. The code is the same as 1.2.5, byte for byte; only the install
9
+ instructions in this README changed.
10
+
11
+ ## 1.2.5 (2026-11-09)
7
12
 
8
13
  Changed: **the retry pause is jittered** (P89-L1), like the Ruby SDK: 50 ms ± 50% (25–75 ms) before the first retry,
9
14
  doubling for each further one. Retry count, `retryBudgetMs` and which answers are retried are unchanged. When a server
10
15
  sheds load (`503 decide_timeout`, "at capacity"), callers no longer all retry in one wave 50 ms later.
11
16
 
12
- Changed: **Error messages reworded; codes, statuses and fields unchanged. Match on error.code, not the message.** Not published yet. `429 plan_limit_reached`: "This call wasn't run because the usage limit was reached (0 of 5 left). It resets at {resets_at}. Retrying before then won't work." The same sentence is used when the key's label is present: the message does not name the key. `error.label` is unchanged. The "It resets at" sentence is still omitted when `resets_at` is missing. A sticky deny reuses this sentence. `403 plan_denied` with `tool_not_in_plan`: "This call wasn't run because "<tool>" isn't included in your current access. If you need it, contact the provider of this service. (tool_not_in_plan)", with the same quoting rules as 1.2.3 (otherwise "this action"). Any other plan deny is unchanged. Status, `error.code`, `reason`, `remaining`, `limit`, `resets_at`, `request_id`, `label`, headers (`Retry-After`, `X-Request-Id`) and whether the call runs are unchanged.
17
+ Changed: **Error messages reworded; codes, statuses and fields unchanged. Match on error.code, not the message.** `429 plan_limit_reached`: "This call wasn't run because the usage limit was reached (0 of 5 left). It resets at {resets_at}. Retrying before then won't work." The same sentence is used when the key's label is present: the message does not name the key. `error.label` is unchanged. The "It resets at" sentence is still omitted when `resets_at` is missing. A sticky deny reuses this sentence. `403 plan_denied` with `tool_not_in_plan`: "This call wasn't run because "<tool>" isn't included in your current access. If you need it, contact the provider of this service. (tool_not_in_plan)", with the same quoting rules as 1.2.3 (otherwise "this action"). Any other plan deny is unchanged. Status, `error.code`, `reason`, `remaining`, `limit`, `resets_at`, `request_id`, `label`, headers (`Retry-After`, `X-Request-Id`) and whether the call runs are unchanged.
13
18
 
14
19
  This is the first Node SDK build that passes the deny `explanation` through to callers, so it should be published only after the matching API change (#207) is live.
15
20
 
package/README.md CHANGED
@@ -5,26 +5,10 @@ A small wrapper that asks Ordainer (`POST /v1/decide`) before your tool handler
5
5
 
6
6
  ## Install
7
7
 
8
- <!-- Same commands as the docs (Node / Express quickstart, step 2; sites/docs consts.ts SDK_INSTALL and node-express.mdx
9
- sdkVerify), checked by test/sdk-pack.test.js. LAUNCH SWAP: once the docs set SDK_ON_NPM, this becomes npm install ordainer. -->
10
- Version 1.2.5 is not published. npm already has 1.2.4, which is not this tree. Until 1.2.5 is published, install it
11
- straight from our docs site:
12
-
13
- ```bash
14
- npm install express
15
- npm install https://docs.ordainer.dev/downloads/ordainer-node-1.2.5.tgz
16
- ```
17
-
18
- Optional: to check the file came from us, compare its SHA-256 with the one in step 2 of
19
- https://docs.ordainer.dev/get-started/node-express/ (also at
20
- https://docs.ordainer.dev/downloads/ordainer-node-1.2.5.tgz.sha256):
21
-
8
+ <!-- Checked by test/sdk-pack.test.js. LAUNCH SWAP applied (Nov 9 2026): install is `npm install ordainer`.
9
+ Live docs already use that command. This README does not follow sites/docs SDK_INSTALL while SDK_ON_NPM is still false on main. -->
22
10
  ```bash
23
- curl -fsSLO https://docs.ordainer.dev/downloads/ordainer-node-1.2.5.tgz
24
- shasum -a 256 ordainer-node-1.2.5.tgz
25
- sha256sum ordainer-node-1.2.5.tgz
26
- npm install express
27
- npm install ./ordainer-node-1.2.5.tgz
11
+ npm install ordainer
28
12
  ```
29
13
 
30
14
  Requires an Ordainer agent key (`ORDAINER_KEY`) from the console. The default API host is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordainer",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Ask Ordainer before your tool runs: one decide() call checks the caller's plan and counts the use.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",