@idosgames/core 0.11.0 → 0.13.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/CHANGELOG.md CHANGED
@@ -14,6 +14,61 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.13.0] - 2026-09-13
18
+
19
+ In-game AI generation.
20
+
21
+ ### Added
22
+
23
+ - **`client.ai`** (`AIService`) — text (with optional chat history and input images), image
24
+ generation and editing, video, speech (TTS), music, and 3D-model generation by `FeatureKey`.
25
+ Which features/models/prices are available is configured by the publisher and read from
26
+ `getDefinitions()` — the client never chooses a model. Video, 3D, and `Async` text return a
27
+ `running` job: poll `getVideo` / `getThreeD` / `getText` yourself while the player is waiting
28
+ (`isAIGenerationTerminal(status)` to know when to stop — every poll is billed against the
29
+ publisher's API quota). Exports `AIAction`, `AIModality`, `AIGenerationStatus`, `AIErrorCode`,
30
+ `isAIGenerationTerminal`, `parseAIErrorCode`; events `ai:definitionsLoaded`,
31
+ `ai:generationUpdated`, `ai:generationCompleted`, `ai:generationFailed`. Skill
32
+ `ai-generation-system`.
33
+
34
+ ## [0.12.0] - 2026-09-12
35
+
36
+ Character skins, level-aware crafting, and an exact inventory cache: every response that carries an
37
+ instance delta is now applied in one step, so an unstackable grant no longer shows up twice.
38
+ Breaking — see below.
39
+
40
+ ### Breaking
41
+
42
+ - **Item `CustomData` is a string map, not a string.** `ItemDefinition.CustomData` and the
43
+ unstackable instance's `CustomData` are now `Record<string, string>` — the shape the engine
44
+ actually sends. Read the keys directly instead of parsing a string.
45
+
46
+ ### Added
47
+
48
+ - **Character skins** — `client.character.unlockSkin(characterID, skinID, { selectedOptionID,
49
+ payment, autoEquip })`, `equipSkin`, `unequipSkin`, `getCharacterSkins`; exports `SKIN_SLOT`,
50
+ `isReservedSlot`, `SKIN_ALREADY_OWNED`; events `character:skinUnlocked` / `skinEquipped` /
51
+ `skinUnequipped`. A skin is an item equipped in `Equipment[SKIN_SLOT]` — hide `@` keys from slot
52
+ UIs with `isReservedSlot`, but keep them in Power. Draw the "Buy" button from
53
+ `getCharacterSkins().Purchasable`, not from config. `SKIN_ALREADY_OWNED` is a normal outcome,
54
+ not an error. Skill `character-system` (section "Skins").
55
+ - **Craft output level** — `CraftDefinition.OutputLevelMode` / `InputSelection` /
56
+ `OutputLevelOverflow` (string enums exported as `CraftOutputLevelMode`,
57
+ `CraftInputSelectionMode`, `CraftOutputLevelOverflow`), `CraftSingleResult.OutputLevel` /
58
+ `BurnedInstances`, and `craft(…, inputInstanceIDs?)` for `ClientSelected` recipes. ⚠
59
+ `inputItemIDs` are catalog `ItemID`s, never instances. An unknown setting value from a newer
60
+ engine falls back to its default instead of failing the whole definitions parse.
61
+ - **`Inventory` instance delta** on every response that carries one (and on `zBatchResponse`),
62
+ applied through `UserData.applyResourcesWithDelta`.
63
+
64
+ ### Fixed
65
+
66
+ - An unstackable grant (lootbox, skin purchase, …) no longer appears twice in the cache, and a
67
+ spend no longer drops an extra copy: the delta now reconciles the cache's guesses instead of
68
+ being applied on top of them.
69
+ - `purchase.validatePurchasesBatch` now applies every granted receipt to the cache — it applied
70
+ nothing before.
71
+
17
72
  ## [0.11.0] - 2026-09-10
18
73
 
19
74
  Player chat, the creator reward programme, and push notifications all land at once, alongside a