@puzzmo/cli 1.0.85 → 1.0.87
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
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"stableID": {
|
|
45
45
|
"type": ["string", "null"],
|
|
46
|
-
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n-
|
|
46
|
+
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n\n- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard (value here likely can be your\ndeedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
47
47
|
},
|
|
48
48
|
"scoreTechnique": {
|
|
49
49
|
"type": ["string", "null"],
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"stableID": {
|
|
104
104
|
"type": ["string", "null"],
|
|
105
|
-
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n-
|
|
105
|
+
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n\n- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard (value here likely can be your\ndeedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
106
106
|
},
|
|
107
107
|
"order": {
|
|
108
108
|
"type": "string",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"properties": {
|
|
226
226
|
"stableID": {
|
|
227
227
|
"type": ["string", "null"],
|
|
228
|
-
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n-
|
|
228
|
+
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n\n- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard (value here likely can be your\ndeedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
229
229
|
},
|
|
230
230
|
"deedID": {
|
|
231
231
|
"$ref": "#/definitions/DeedKeys",
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"properties": {
|
|
252
252
|
"stableID": {
|
|
253
253
|
"type": ["string", "null"],
|
|
254
|
-
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n-
|
|
254
|
+
"description": "For a lot of augmentations, this acts as an \"id\" and should be unique and treated as a lower, kebab-case string.\n\nFor a leaderboard:\n\n- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard (value here likely can be your\ndeedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
255
255
|
},
|
|
256
256
|
"deedID": {
|
|
257
257
|
"$ref": "#/definitions/DeedKeys",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"items": {
|
|
340
340
|
"$ref": "#/definitions/ExpressionSetup"
|
|
341
341
|
},
|
|
342
|
-
"description": "Additional stats to display in the game completion sidebar/popover on the Today page. Use this to show deed values that don't have an associated leaderboard.\n\nThese items are merged with leaderboard entries, sorted by `sortValue`, and displayed as a list of stats after game completion. Each entry looks up a deed by `deedID` and formats its value using `formatString`.\n\nItems can include:\n\n- `display` or `secondaryName`: Label shown for the stat\n- `deedID`: Which deed to look up for the value\n- `formatString`: How to format the value (e.g. \"%@ pts\")\n- `sortValue`: Order relative to other sidebar items (lower = earlier)\n- `order`: \"Lower=better\" or default (higher=better) for directional indicators\n\nExample: Show a custom \"Combos\" stat\n\n```json\n{ \"completionSidebar\": [
|
|
342
|
+
"description": "Additional stats to display in the game completion sidebar/popover on the Today page. Use this to show deed values that don't have an associated leaderboard.\n\nThese items are merged with leaderboard entries, sorted by `sortValue`, and displayed as a list of stats after game completion. Each entry looks up a deed by `deedID` and formats its value using `formatString`.\n\nItems can include:\n\n- `display` or `secondaryName`: Label shown for the stat\n- `deedID`: Which deed to look up for the value\n- `formatString`: How to format the value (e.g. \"%@ pts\")\n- `sortValue`: Order relative to other sidebar items (lower = earlier)\n- `order`: \"Lower=better\" or default (higher=better) for directional indicators\n\nExample: Show a custom \"Combos\" stat\n\n```json\n{ \"completionSidebar\": [{ \"deedID\": \"combo-count\", \"displayName\": \"Combos\", \"formatString\": \"%@\", \"sortValue\": 10 }] }\n```"
|
|
343
343
|
},
|
|
344
344
|
"completionNotables": {
|
|
345
345
|
"type": "array",
|
|
@@ -138,6 +138,7 @@ const render = () => {
|
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* Called once on win. Reports gameplay metrics back to the host via:
|
|
141
|
+
*
|
|
141
142
|
* - `sdk.gameCompleted(gameplay, augmentations)` — durable record + deeds
|
|
142
143
|
* - `sdk.showCompletionScreen(content)` — the host's win UI
|
|
143
144
|
*/
|
|
@@ -199,9 +200,10 @@ const setupBoard = (data: Puzzle, savedState?: State) => {
|
|
|
199
200
|
|
|
200
201
|
/**
|
|
201
202
|
* Lifecycle entrypoint:
|
|
202
|
-
*
|
|
203
|
-
* - `sdk.
|
|
204
|
-
*
|
|
203
|
+
*
|
|
204
|
+
* - `sdk.gameReady()` blocks until the host sends puzzle/state/theme. `puzzleString` is null when the host sends no puzzle (e.g. an endless
|
|
205
|
+
* mode), so we fall back to the built-in board.
|
|
206
|
+
* - `sdk.gameLoaded()` tells the host we're done bootstrapping; the host will then dispatch `start` (or restore a paused session).
|
|
205
207
|
*/
|
|
206
208
|
const init = async () => {
|
|
207
209
|
const { puzzleString, inputString, theme } = await sdk.gameReady()
|