Skip to content

OnlyWorlds Unity SDK 0.33.0

Choose a tag to compare

@tmoosting tmoosting released this 03 Nov 02:04
· 189 commits to main since this release

Your own AI key: AskAsync and SortAsync say who paid (PaidBy), the allowance names a saved key's provider
(OwnKey), and OWApiError.IsOwnKeyRefused reads the new refusal. OWOpeners.For gives a signed-out visitor the
tools that need an account, each a row that says "Needs an account" and opens nothing. OWMapSpace.Of reads serial
106 (the schema pin moves to v0.34.0-dist.106, no schema change), and OWTools lists Tactical Tangle. A minor
release because it adds public API (below).

Added

  • Your own AI key. keel now runs AskAsync and SortAsync on an account's own Anthropic or OpenAI key, saved on
    its account page, once the day's token rating is spent. OWAskAnswer.PaidBy and OWSortAnswer.PaidBy say who paid
    (OWPaidBy.Rating, "rating", or OWPaidBy.OwnKey, "own_key"); OWAllowance.OwnKey is the saved key by its
    provider alone (OWOwnKey.Provider, anthropic or openai), or null. OWApiError.IsOwnKeyRefused reads the new
    422 own_key_refused (the provider refused the key: revoked, wrong or out of credit), which is not retryable: send
    the person to their account page. Parity with the TypeScript SDK 4.131.0, its test vector ported (the four
    refusals on both calls, each sent once; paid_by and own_key as served). The wire fixture is refreshed from
    production for it (the one new error code, three new response fields).

Changed

  • OWOpeners.For gives a signed-out visitor the tools that need an account. For the public audience, a tool
    whose open.needs is account is now a row with the new word OWOpenerState.NeedsAnAccount ("Needs an account"),
    whatever SignedIn says; before, the public had no such row. The row keeps its href, and opens nothing: draw it
    disabled. A tool that needs the device is still not there for the public. The word comes after "You are here" and
    "Needs a connection", and before "Opens the world". The shared openers fixture has 92 cases (from 90): seven public
    cases gain their account rows, and two are new. Parity with the TypeScript SDK 4.130.0 (openersFor) and the
    Python package 0.105.0 (openers_for).
  • OWMapSpace.Of reads two rows of one type with one id as the last one served, for Markers and Pins as it
    already did for Maps and Zones (the map-space page's reading I, serial 106: a reader holds one row per id). Before,
    a repeated Marker id drew both points into its outline, and a repeated Pin id answered both Pins. The rest of
    serial 106's readings (J, K, a measured frame from placed points only, a z that is not whole read as 0,
    no_markers as no placed Marker) this reader already held; the fixture's 34 cases pass. Parity with the TypeScript
    SDK 4.129.1 (mapSpace) and the Python package 0.104.1 (map_space), which read serial 106 the same way.
  • The schema pin moves to v0.34.0-dist.106 (canonical 00.34.00 unchanged, no schema file moved): the map-space
    page's readings I to K and four rulings, with ten new fixture cases (34 in all). The generated models changed only
    in their serial stamp.
  • Tests only: the shared openers fixture's 24 type refusals each name their kind beside the key: unknown_key (a key
    the object does not take, refused by name) or bad_value (a key it takes whose value it refuses, a missing one
    included). OWOpenersTests tells the two apart by this package's own words ("unknown key 'k'"), so a reader that
    refuses a known key as unknown, or the other way round, now fails the case where before the name alone passed it.
    Still 92 cases, the same bytes as the TypeScript SDK's (85ef7dd) and the Python package's (b1a4a45); nothing
    shipped changes.
  • OWTools repinned at the tools list's f10afdc (tools.json sha256 ff5e7c67…), the list the TypeScript SDK 4.131.0
    bakes and the Python package pins: one new row, Tactical Tangle (tangle, listed, the API door only), with no open, so
    the Open with menu offers it nowhere. No other row changed.

Fixed

  • OWMapSpace.Of reads a double past 2^53 - 1 as not whole. A number written with a fraction or an exponent
    (9007199254740993.0) is read as a double, and past 2^53 - 1 a double cannot tell a value the parse had to round
    from an exact one, so a Marker or Pin x/y there now has no point and a z there reads as 0; before, any whole
    double up to 2^63 was read as whole. A reader's whole numbers are those it holds exactly: a JSON integer is still
    read as written to 64 bits (past it, not whole), where the TypeScript SDK, whose JSON gives doubles, stops at 2^53 - 1
    (4.129.2). The fixture's cases stay inside 2^53.