@puzzmo/cli 1.0.67 → 1.0.68
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
|
@@ -215,6 +215,13 @@
|
|
|
215
215
|
},
|
|
216
216
|
"description": "Awards notables (achievements/badges) to users when conditions are met at game completion. When a notable is awarded, it appears on the user's profile and creates a social news item.\n\nThe `valueExp` is evaluated against the game's deed scope. If it returns truthy, the notable is awarded. Expression scope includes all deed values from the gameplay (camelCase keys).\n\nTwo types of notables:\n\n1. **Code-based notables**: Use `notableName` (e.g. \"jokinAround\") with `notableIndex` (0 or 1). These reference predefined notables in UserAwardsBitmapKeys (index 0) or UserAwardsBitmap1Keys (index 1). **Restricted to games owned by the Puzzmo team.** 2. **System notables**: Use `notableName` as \"{index}-{bitmapValue}\" format (e.g. \"2-4\"). These reference dynamic notables stored in the SystemNotable database table. Available to all games.\n\nExample: Award a notable when player scores over 100 points\n\n```json { \"completionNotables\": [ { \"valueExp\": \"score > 100\", \"notableIndex\": 0, \"notableName\": \"jokinAround\" }, { \"valueExp\": \"perfect === true\", \"notableName\": \"2-4\" } ] } ```"
|
|
217
217
|
},
|
|
218
|
+
"checklists": {
|
|
219
|
+
"type": "array",
|
|
220
|
+
"items": {
|
|
221
|
+
"$ref": "#/definitions/ChecklistAugmentation"
|
|
222
|
+
},
|
|
223
|
+
"description": "In-game checklists shown to the user. The `type` discriminator distinguishes between different kinds; today only `tutorial` is consumed by the runtime.\n\nTutorial checklists are an ordered sequence of steps: the player is always shown the first step they have not finished, and how far they got is remembered across sessions so an abandoned tutorial resumes rather than restarting. Once it is finished — or once the player has completed the game's daily at least once — the tutorial stops being shown.\n\nChecklists merge by `stableID` across sources (gameVersion, remix, puzzle frontmatter) with last-write-wins, so a remix or puzzle can override a game-level tutorial without duplicating the entry."
|
|
224
|
+
},
|
|
218
225
|
"forceGameSettings": {
|
|
219
226
|
"type": "object",
|
|
220
227
|
"description": "Forces specific game settings for this puzzle, overriding user preferences. Only applies when set via puzzle front-matter (not from game-level augmentations).\n\nWhen a puzzle has forced settings, those settings are locked in the UI and displayed as read-only with a note that the setting is specific to this puzzle. Users cannot change forced settings.\n\nThe settings object keys/values are game-specific. To find valid settings for a game, set the setting yourself in the game and check your user profile in the admin to see the stored format.\n\nExample: Force monochrome grid mode for a crossword puzzle\n\n```json { \"forceGameSettings\": { \"monoGrid\": true } } ```"
|
|
@@ -349,6 +356,80 @@
|
|
|
349
356
|
"required": ["displayName", "formatString"],
|
|
350
357
|
"additionalProperties": false,
|
|
351
358
|
"description": "Data given by either via a puzzle in front-matter, or a game in completion. A general unit of data which can be used to represent a lot of configuration points from the game to the API."
|
|
359
|
+
},
|
|
360
|
+
"ChecklistAugmentation": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"stableID": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "Stable identifier used to de-dupe the checklist",
|
|
366
|
+
"examples": ["[gameslug]:tutorial"]
|
|
367
|
+
},
|
|
368
|
+
"type": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"const": "tutorial",
|
|
371
|
+
"description": "The kind of checklist. Currently only `tutorial` is available"
|
|
372
|
+
},
|
|
373
|
+
"title": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "Display title shown above the checklist.",
|
|
376
|
+
"examples": ["Poker Hands"]
|
|
377
|
+
},
|
|
378
|
+
"instructionsVisibleFromItemIndex": {
|
|
379
|
+
"type": "number",
|
|
380
|
+
"description": "How many steps the player must finish before the help/instructions become visible; before that point they are gated to the tutorial steps. Omit to make the instructions available from the start.",
|
|
381
|
+
"examples": [2]
|
|
382
|
+
},
|
|
383
|
+
"items": {
|
|
384
|
+
"type": "array",
|
|
385
|
+
"items": {
|
|
386
|
+
"$ref": "#/definitions/ChecklistAugmentationItem"
|
|
387
|
+
},
|
|
388
|
+
"description": "The individual steps, in the order the player works through them."
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"required": ["stableID", "type", "items"],
|
|
392
|
+
"additionalProperties": false
|
|
393
|
+
},
|
|
394
|
+
"ChecklistAugmentationItem": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"title": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"description": "The item's headline in the tutorial UI; when omitted nothing is shown.",
|
|
400
|
+
"examples": ["Easy"]
|
|
401
|
+
},
|
|
402
|
+
"subtitle": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"description": "Supporting line rendered under the title.",
|
|
405
|
+
"examples": ["Open the Poker Hand reference"]
|
|
406
|
+
},
|
|
407
|
+
"expandMD": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"description": "The body revealed when the item is expanded, as markdown.",
|
|
410
|
+
"examples": ["Tap the button on the lower left side of the screen with the book icon on it"]
|
|
411
|
+
},
|
|
412
|
+
"targetCount": {
|
|
413
|
+
"type": "number",
|
|
414
|
+
"description": "Target count to mark this item complete (uses `incrementExp` as an expression to determine the count from deeds sent via a checkpoint).",
|
|
415
|
+
"examples": [2]
|
|
416
|
+
},
|
|
417
|
+
"incrementExp": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"description": "Expression evaluated against the deed scope; the result is added to `count`.",
|
|
420
|
+
"examples": ["threeOfAKindCount", "flushCount >= 3"]
|
|
421
|
+
},
|
|
422
|
+
"filterExp": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"description": "Optional gate expression — when falsy, the item is skipped for evaluation.",
|
|
425
|
+
"examples": ["excessMoves === 0"]
|
|
426
|
+
},
|
|
427
|
+
"liveUpdate": {
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"description": "When true, the item updates during checkpoints, not only at completion."
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"additionalProperties": false
|
|
352
433
|
}
|
|
353
434
|
}
|
|
354
435
|
}
|