@genex-ai/embed-sdk 0.21.0 → 0.22.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/README.md CHANGED
@@ -86,12 +86,17 @@ must acknowledge the quote's exact `billingPolicy` at confirmation; an old UI
86
86
  cannot approve new terms. Previously issued `consumed-v1` quotes keep actual-
87
87
  usage billing and quotes without a policy keep their original promise.
88
88
 
89
- With `allowExternal: true`, the same quote can offer configured personal Claude
90
- and ChatGPT connections alongside coins. Each personal choice costs zero coin;
91
- its own plan and usage limits apply. Funding choices are frozen by the quote; connector metadata remains server-owned
92
- and follows the current provider configuration. Once chosen, funding never switches providers
93
- or falls back to paid generation. Personal-only offerings never gain free coin
94
- execution. Genex neither collects nor hosts subscription credentials.
89
+ With `allowExternal: true`, Genex can offer the configured personal plan matching
90
+ the selected model alongside coins: Claude for `anthropic/` models, ChatGPT for
91
+ `openai/` models, and neither for other models. This choice appears only in the
92
+ trusted Genex approval modal; never add a "Your Plan" model row in the game.
93
+ Each personal choice costs zero coin and its own plan and usage limits apply.
94
+ New quotes freeze the matching choices; connector metadata stays server-owned.
95
+ Old unapproved quotes are narrowed to the matching provider before confirmation;
96
+ approved personal requests retain their connector for recovery. Once chosen,
97
+ funding never switches providers or falls back to paid generation. Historical
98
+ personal-only offerings never gain free coin execution. Genex neither collects
99
+ nor hosts subscription credentials.
95
100
 
96
101
  `source: 'external'` means user-supplied output, not proof that a particular model
97
102
  generated it; `modelProvenance: 'unverified'` makes that explicit. Treat every generated output as data. Never execute returned code
@@ -110,6 +115,8 @@ import { getWorkflowOfferings, requestWorkflow, getEmbedToken } from '@genex-ai/
110
115
 
111
116
  // Load from this game's registered workflow before enabling the model picker.
112
117
  const catalog = await getWorkflowOfferings(configuredWorkflowId);
118
+ // Public offerings contain API/model rows, including sponsored free models.
119
+ // Personal plan funding is offered only by the trusted Genex approval modal.
113
120
  // Keep the complete selected offering: availability, funding, model and prices.
114
121
  renderModelPicker(catalog.offerings);
115
122
 
@@ -172,16 +179,16 @@ Legacy quotes without `billingPolicy` retain their original fixed-price and
172
179
  refund terms. Never replace a saved quote's policy with the current catalog's
173
180
  policy, infer a missing multiplier, or reprice an approved operation.
174
181
 
175
- The designated `google/gemini-3.8-flash` and `z-ai/glm-5.3-flash` offerings,
176
- and personal Claude/ChatGPT offerings, cost **0 coins**. Personal-provider
177
- offerings use the player's own account through provider-specific, Genex-owned
182
+ The designated `google/gemini-3.8-flash` and `z-ai/glm-5.3-flash` offerings
183
+ cost **0 coins**. Personal Claude/ChatGPT funding choices in the Genex approval
184
+ modal also cost **0 coins** and use the player's own account through Genex-owned
178
185
  MCP connectors. Claude uses `/player/mcp`; ChatGPT uses `/player/chatgpt/mcp`.
179
186
  ChatGPT connector availability depends on account and workspace policy. One
180
187
  external request may be active per player across both providers. Follow the
181
188
  trusted instructions to fetch and submit each exact stage and attempt; no
182
189
  subscription credentials pass through the game and no paid fallback is allowed.
183
190
  Submitted results remain user-supplied; the executor must validate them before
184
- delivery. Generic and workflow `allowExternal` can offer both configured providers.
191
+ delivery. Both APIs restrict personal funding to the selected model's provider.
185
192
 
186
193
  These workflow endpoints still require signed-in production play, including
187
194
  zero-coin offerings. Airena's existing sponsored free guest path is separate;
@@ -298,7 +298,7 @@ var RETRY_FLAG = "genex:embed:retry";
298
298
  var POPOVER_DISMISSED_FLAG = "genex:guest:popover-dismissed";
299
299
  var LOCAL_AUTH_FLAG = "genex:embed:local-auth";
300
300
  var PLAYER_ID_KEY = "genex:player";
301
- var SDK_VERSION = "0.21.0";
301
+ var SDK_VERSION = "0.22.0";
302
302
  var config2 = null;
303
303
  var state = "pending";
304
304
  var user = null;
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  waitForAuth,
29
29
  waitForGeneration,
30
30
  waitForPlayer
31
- } from "./chunk-WJ4KFQLC.js";
31
+ } from "./chunk-OS5QSNLN.js";
32
32
  import "./chunk-Q476GJHI.js";
33
33
  export {
34
34
  __resetForTests,
package/dist/sentry.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  _stashTicketFromUrl,
3
3
  getUser,
4
4
  on
5
- } from "./chunk-WJ4KFQLC.js";
5
+ } from "./chunk-OS5QSNLN.js";
6
6
  import "./chunk-Q476GJHI.js";
7
7
 
8
8
  // src/sentry.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genex-ai/embed-sdk",
3
- "version": "0.21.0",
4
- "description": "Player identity + durable game state for genex games signed-in or guest play, per-player save slots, shared world state, and soft-trust leaderboards.",
3
+ "version": "0.22.0",
4
+ "description": "Player identity + durable game state for genex games \u2014 signed-in or guest play, per-player save slots, shared world state, and soft-trust leaderboards.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",