@genex-ai/cli-demo 1.32.0-dev.650 → 1.32.0-dev.654
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genex-ai/cli-demo",
|
|
3
|
-
"version": "1.32.0-dev.
|
|
3
|
+
"version": "1.32.0-dev.654",
|
|
4
4
|
"description": "Set up your project's agent workspace (.claude/.codex/.cursor in the game folder), authorize, create a game project, generate AI assets, and publish (genex CLI).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -323,12 +323,14 @@ generateButton.addEventListener('click', async () => {
|
|
|
323
323
|
|
|
324
324
|
Call `generate()` before any await in the click handler. The SDK opens Genex's
|
|
325
325
|
trusted modal or popup, showing the game, frozen request, fixed attempt price and
|
|
326
|
-
USD equivalent. `estimateCoins` is required (integer
|
|
326
|
+
USD equivalent. `estimateCoins` is required (integer 1..1,000,000 for API-backed selections); the player
|
|
327
327
|
approves this fixed amount and the game cannot confirm. New `declared-v1`
|
|
328
328
|
quotes charge the full price once model work starts, even if usage costs less,
|
|
329
329
|
generation fails, is canceled, or reaches its budget limit before a usable result.
|
|
330
|
-
Fixed 5 charges 5 even if actual usage would bill 2. No model work means zero;
|
|
331
|
-
|
|
330
|
+
Fixed 5 charges 5 even if actual usage would bill 2. No model work means zero; an
|
|
331
|
+
unsuccessful attempt with verified zero model cost is also uncharged.
|
|
332
|
+
Every Genex API model requires a positive price, including Gemini and GLM;
|
|
333
|
+
personal funding in the Genex modal remains zero coin. Unknown
|
|
332
334
|
provider expense keeps billing pending and its hold intact. The provider budget
|
|
333
335
|
fits inside these coins after the frozen platform tariff. This
|
|
334
336
|
compute price is independent of the shop's item grid and pays no developer share.
|
|
@@ -416,15 +418,19 @@ Previously issued `consumed-v1` quotes keep their actual-usage billing and
|
|
|
416
418
|
untagged quotes keep original success/refund terms. Never substitute a current
|
|
417
419
|
catalog policy for a saved quote. `resumeWorkflow(generationId)` reopens a
|
|
418
420
|
saved approval from a click using GET only, with no new price or operation.
|
|
421
|
+
Already-approved zero-price API requests retain their terms. An old unconfirmed
|
|
422
|
+
zero-price API quote needs a fresh price review before coin approval; never
|
|
423
|
+
silently reprice it or launch paid work during recovery.
|
|
419
424
|
The trusted UI sends the exact policy acknowledgement. Backend validation and
|
|
420
425
|
staging remain required before delivery; the browser cannot submit costs or
|
|
421
426
|
settle a bill.
|
|
422
427
|
|
|
423
|
-
The public workflow catalog contains API/model rows, including
|
|
424
|
-
`google/gemini-3.8-flash` and `z-ai/glm-5.3-flash
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
+
The public workflow catalog contains paid API/model rows, including
|
|
429
|
+
`google/gemini-3.8-flash` and `z-ai/glm-5.3-flash`. Airena sponsors those models
|
|
430
|
+
through its own direct OpenRouter path, outside the Genex runtime API.
|
|
431
|
+
Personal Claude/ChatGPT funding in the Genex modal costs **0 coins**, but is
|
|
432
|
+
not an in-game model option. Do not infer a free API tariff from a low price or a
|
|
433
|
+
client flag. Personal choices use the player's own account
|
|
428
434
|
through the provider-specific connector shown by Genex: `/player/mcp` for Claude,
|
|
429
435
|
`/player/chatgpt/mcp` for ChatGPT. Account/plan limits apply; ChatGPT connector
|
|
430
436
|
availability also depends on workspace policy. Genex gives the stage-by-stage
|
|
@@ -439,7 +445,7 @@ Persist the exact input, offering, idempotency key and generation ID through
|
|
|
439
445
|
sign-in, cancellation and reload; never store the embed token. Recovery reads
|
|
440
446
|
existing state and never auto-charges. A changed input or expired quote requires
|
|
441
447
|
a new intentional request. The Genex workflow API requires signed-in production
|
|
442
|
-
play even for
|
|
448
|
+
play even for personal funding. Keep Airena's separately sponsored direct guest
|
|
443
449
|
path separate; do not weaken Genex's paid or session checks.
|
|
444
450
|
|
|
445
451
|
### Calibrate before choosing the public fixed price
|
|
@@ -450,8 +456,8 @@ maxCoins, request: { modelId, prompt, outputFormat, schema?, idempotencyKey? } }
|
|
|
450
456
|
The full creator credential spends only your own wallet; never put it in a game,
|
|
451
457
|
Vite environment or logs. No play token is needed. The browser export is blocked.
|
|
452
458
|
Development bills actual usage under `consumed-v1`, including failed work,
|
|
453
|
-
within your explicit maximum. A maximum 5 may charge 2.
|
|
454
|
-
|
|
459
|
+
within your explicit maximum. A maximum 5 may charge 2. Every API model is
|
|
460
|
+
developer-paid at the normal tariff in this lane; personal-only
|
|
455
461
|
options are rejected. Inspect the authoritative charged coins/USD and `usage`
|
|
456
462
|
cost/unknown-exposure receipt before choosing the public fixed `estimateCoins`.
|
|
457
463
|
|
|
@@ -167,8 +167,10 @@ Runtime generation (SDK 0.21.0+, signed-in production play, default-off service)
|
|
|
167
167
|
- Required `estimateCoins` is the fixed price of a started attempt, despite its
|
|
168
168
|
name: fixed 5 charges 5 even if usage would cost 2. New `declared-v1` quotes
|
|
169
169
|
charge that full price on failure, cancellation or a budget limit after work
|
|
170
|
-
starts. No model work is zero;
|
|
171
|
-
|
|
170
|
+
starts. No model work is zero; an unsuccessful attempt with verified zero model
|
|
171
|
+
cost is also uncharged. A usable result is not guaranteed. Every API
|
|
172
|
+
model requires a positive price, including Gemini and GLM. Personal funding
|
|
173
|
+
selected in the trusted Genex modal remains zero coin.
|
|
172
174
|
- `getGeneration(id)` reads the private player/game-scoped receipt;
|
|
173
175
|
`waitForGeneration(id)` waits for execution. A timeout does not cancel.
|
|
174
176
|
Keep reading while billing is pending; unknown expense retains the hold and
|
|
@@ -179,7 +181,7 @@ Registered workflows require an existing trusted, operator-registered executor:
|
|
|
179
181
|
- `getWorkflowOfferings(workflowId)` supplies model, bundle, availability,
|
|
180
182
|
suggested prices and frozen operator tariff. Calibrate the game's fixed price
|
|
181
183
|
with development benchmarks, then show coin and USD beside the selected option.
|
|
182
|
-
Its public offerings contain API/model rows
|
|
184
|
+
Its public offerings contain paid API/model rows;
|
|
183
185
|
personal plan funding appears only in the trusted Genex approval modal.
|
|
184
186
|
- `requestWorkflow({ workflowId, offeringId, input, estimateCoins, allowExternal?,
|
|
185
187
|
idempotencyKey?, timeoutMs? })` returns **approval**, not completion. Call from
|
|
@@ -189,6 +191,8 @@ Registered workflows require an existing trusted, operator-registered executor:
|
|
|
189
191
|
reloads. Never persist the token or auto-charge on boot. Use
|
|
190
192
|
`resumeWorkflow(generationId)` from a click to reopen saved approval through
|
|
191
193
|
GET only, preserving pre-0.21 quotes without a replacement price.
|
|
194
|
+
Already-approved zero-price API requests retain their terms; an old unconfirmed
|
|
195
|
+
zero-price API quote needs a fresh price review before coin approval.
|
|
192
196
|
- The server derives the hard model budget from the fixed price after its tariff.
|
|
193
197
|
Only the selected model runs. The trusted executor validates staged artifacts;
|
|
194
198
|
the browser cannot submit costs, settle a bill or claim delivery.
|
|
@@ -207,7 +211,7 @@ For calibration, server-only `@genex-ai/embed-sdk/development` uses your full
|
|
|
207
211
|
creator bearer credential, owned project and explicit `maxCoins` to benchmark
|
|
208
212
|
actual usage against your own wallet, with no production-play token. It uses
|
|
209
213
|
`consumed-v1`, including failed work, and returns charged coins, output and
|
|
210
|
-
actual/unknown provider cost.
|
|
214
|
+
actual/unknown provider cost. All API models are paid at the normal
|
|
211
215
|
tariff here; personal-only options are refused. Never bundle a creator credential
|
|
212
216
|
or expose it through Vite variables. Read `$genex-monetization` for generic and
|
|
213
217
|
registered-workflow examples. Native WebViews and local-test player identity
|