Repository navigation
OnlyWorlds Unity SDK 0.33.0
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
AskAsyncandSortAsyncon an account's own Anthropic or OpenAI key, saved on
its account page, once the day's token rating is spent.OWAskAnswer.PaidByandOWSortAnswer.PaidBysay who paid
(OWPaidBy.Rating,"rating", orOWPaidBy.OwnKey,"own_key");OWAllowance.OwnKeyis the saved key by its
provider alone (OWOwnKey.Provider,anthropicoropenai), or null.OWApiError.IsOwnKeyRefusedreads the new
422own_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_byandown_keyas served). The wire fixture is refreshed from
production for it (the one new error code, three new response fields).
Changed
OWOpeners.Forgives a signed-out visitor the tools that need an account. For thepublicaudience, a tool
whoseopen.needsisaccountis now a row with the new wordOWOpenerState.NeedsAnAccount("Needs an account"),
whateverSignedInsays; 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.Ofreads 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, azthat is not whole read as 0,
no_markersas 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(canonical00.34.00unchanged, 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) orbad_value(a key it takes whose value it refuses, a missing one
included).OWOpenersTeststells 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. OWToolsrepinned at the tools list'sf10afdc(tools.json sha256ff5e7c67…), 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 noopen, so
the Open with menu offers it nowhere. No other row changed.
Fixed
OWMapSpace.Ofreads 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 Pinx/ythere now has no point and azthere 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.