@onlyworlds/sdk 4.143.0 → 4.144.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.
package/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # For AI agents using @onlyworlds/sdk
2
2
 
3
- **Current as of**: SDK **4.x** · schema-dist **v0.34.0-dist.110** (canonical 00.34.00).
3
+ **Current as of**: SDK **4.x** · schema-dist **v0.34.0-dist.111** (canonical 00.34.00).
4
4
  This line is asserted by `codegen:check` in CI — if the pin moves and this file is not
5
5
  re-read against it, the check fails rather than letting this document rot quietly.
6
6
 
package/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.144.0] - 2026-11-10
9
+
10
+ ### Added
11
+
12
+ - `OwAiUse.can_pay`: true when a call by this account would be paid now, by the same check the call runs (`on`, the server's daily cap, today's token rating against `rating_need`, or a saved AI key that runs the use). Offer a use only when it is true. The server's fifth use, `lens` (a lens proposed from a sentence, served switched off), is called through `ai('lens', { world_id, sentence })` and answers as served; it is not typed yet.
13
+
14
+ ### Changed
15
+
16
+ - Schema repinned to schema-dist v0.34.0-dist.111 (canonical 00.34.00 unchanged, no schema file moved): the map-space fixture gains four layout cases, 21 in all: an id above U+FFFF beside one in U+E000..U+FFFF, a repeated Pin id where the last row wins, a Pin row without a string id, and a Map row without a string id; the page says reading H holds for the Map row too. `layoutOf` already answered all four.
17
+
18
+ ### Tests
19
+
20
+ - The layout cases are replayed by their `map` id, or, for a Map row with no string id, at each position the case's `map_index` lists, the answer the case's `want` for each; a case with neither fails by name. The count is held at 21.
21
+
8
22
  ## [4.143.0] - 2026-11-10
9
23
 
10
24
  ### Changed
package/SCHEMA.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OnlyWorlds Schema Reference
2
2
 
3
- **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.0-dist.110** — canonical schema **00.34.00**, published 2026-11-10.
3
+ **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.0-dist.111** — canonical schema **00.34.00**, published 2026-11-10.
4
4
 
5
5
  GENERATED from the canonical schema YAML — do not hand-edit (regenerate: `python codegen/generate_types.py`).
6
6
  Written for both humans and AI agents reading this package locally.
package/dist/index.d.ts CHANGED
@@ -3166,6 +3166,10 @@ interface OwAiUse {
3166
3166
  /** False while the use is switched off or has spent its own budget for today (its calls answer 503
3167
3167
  * `ask_unavailable` with param `use`). */
3168
3168
  on: boolean;
3169
+ /** True when a call by this account would be paid now, by the same check the call runs: `on`, the server's daily
3170
+ * cap not reached, and today's token rating holding `rating_need` (or, with the rating spent, a saved AI key that
3171
+ * runs this use). Offer the use only when this is true. Served since 2026-11-10. */
3172
+ can_pay: boolean;
3169
3173
  [k: string]: unknown;
3170
3174
  }
3171
3175
  /** What every answer of an AI use adds to the use's own answer. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.143.0",
3
+ "version": "4.144.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {