@puzzmo/cli 1.0.82 → 1.0.84
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/lib/commands/changed.js +1 -1
- package/lib/commands/changed.js.map +1 -1
- package/lib/commands/upload.js +10 -2
- package/lib/commands/upload.js.map +1 -1
- package/lib/commands/validate.js +2 -0
- package/lib/commands/validate.js.map +1 -1
- package/lib/util/api.d.ts +4 -0
- package/lib/util/api.js +3 -2
- package/lib/util/api.js.map +1 -1
- package/lib/util/discoverGames.d.ts +7 -2
- package/lib/util/discoverGames.js +7 -4
- package/lib/util/discoverGames.js.map +1 -1
- package/package.json +1 -1
- package/schemas/puzzmo-file-schema.json +272 -265
- package/src/commands/changed.ts +1 -1
- package/src/commands/upload.ts +9 -2
- package/src/commands/validate.ts +1 -0
- package/src/util/api.ts +9 -3
- package/src/util/discoverGames.ts +15 -6
package/lib/commands/changed.js
CHANGED
|
@@ -27,7 +27,7 @@ export const changed = async (dir, options = {}) => {
|
|
|
27
27
|
console.error(`Could not resolve git ref: ${ref}`);
|
|
28
28
|
process.exit(1);
|
|
29
29
|
}
|
|
30
|
-
const { games, errors: discoveryErrors } = await discoverGames(rootDir, { requireDist: false,
|
|
30
|
+
const { games, errors: discoveryErrors } = await discoverGames(rootDir, { requireDist: false, requireLinkedFiles: false });
|
|
31
31
|
if (!games.length && !discoveryErrors.length) {
|
|
32
32
|
console.error(`No puzzmo.json files found under ${rootDir}`);
|
|
33
33
|
process.exit(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changed.js","sourceRoot":"","sources":["../../src/commands/changed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,SA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E,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;IAC1G,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAED,gHAAgH;AAChH,MAAM,QAAQ,GAAG,CAAC,IAAc,EAAE,GAAW,EAAY,EAAE;IACzD,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC7B,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,EAAE,CAAA;IAC3B,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACxC,CAAC,CAAA;AAED,MAAM,OAAO,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA"}
|
package/lib/commands/upload.js
CHANGED
|
@@ -105,7 +105,7 @@ export const upload = async (dir, options = {}) => {
|
|
|
105
105
|
/** Uploads a single discovered game; throws on failure */
|
|
106
106
|
const uploadOneGame = async (game, opts) => {
|
|
107
107
|
const { credential, apiURL, sha, description, repoURL, verbose } = opts;
|
|
108
|
-
const { puzzmoFile, distDir, iconPath } = game;
|
|
108
|
+
const { puzzmoFile, distDir, iconPath, helpPath } = game;
|
|
109
109
|
const gameSlug = puzzmoFile.game.slug;
|
|
110
110
|
const files = collectFiles(distDir);
|
|
111
111
|
if (!files.length)
|
|
@@ -125,9 +125,17 @@ const uploadOneGame = async (game, opts) => {
|
|
|
125
125
|
console.log(yellow(` Warning: ${warning}`));
|
|
126
126
|
const result = await uploadFiles(apiURL, credential.token, gameSlug, sha, files, distDir, puzzmoFile, (batch, totalBatches, uploaded) => {
|
|
127
127
|
console.log(` Batch ${batch}/${totalBatches} done (${plural(uploaded, "file")} uploaded)`);
|
|
128
|
-
}, {
|
|
128
|
+
}, {
|
|
129
|
+
verbose,
|
|
130
|
+
description,
|
|
131
|
+
repoURL,
|
|
132
|
+
iconSVG: iconPath ? fs.readFileSync(iconPath, "utf-8") : null,
|
|
133
|
+
helpMD: helpPath ? fs.readFileSync(helpPath, "utf-8") : null,
|
|
134
|
+
});
|
|
129
135
|
if (result.iconChanged && iconPath)
|
|
130
136
|
console.log(` Icon updated from ${path.relative(game.puzzmoJsonDir, iconPath)}.`);
|
|
137
|
+
if (result.helpChanged && helpPath)
|
|
138
|
+
console.log(` In-game help updated from ${path.relative(game.puzzmoJsonDir, helpPath)}, live now.`);
|
|
131
139
|
if (result.integrationsChanged && result.versionsURL) {
|
|
132
140
|
console.log(` Uploaded. A new version has been staged for your team to try before it goes live:`);
|
|
133
141
|
console.log(` ${result.versionsURL}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../src/commands/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AACrF,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAA;AAEnC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,SAAS,GAEV,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAuB,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mB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O,4BAA4B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA;AACvD,CAAC,CAAA"}
|
package/lib/commands/validate.js
CHANGED
|
@@ -32,6 +32,8 @@ export const validate = async (dir) => {
|
|
|
32
32
|
log(` integrations: ${integrations.join(", ")}`);
|
|
33
33
|
if (game.iconPath)
|
|
34
34
|
log(` icon: ${path.relative(rootDir, game.iconPath)}`);
|
|
35
|
+
if (game.helpPath)
|
|
36
|
+
log(` help: ${path.relative(rootDir, game.helpPath)}`);
|
|
35
37
|
for (const e of distErrors)
|
|
36
38
|
console.error(` ${e}`);
|
|
37
39
|
for (const warning of lintPuzzmoFile(game.puzzmoFile))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/commands/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,0GAA0G;AAC1G,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,GAAW,EAAE,EAAE;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IACjC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,EAAE,CAAC,CAAA;QAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;IAED,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,CAAA;IAEtD,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC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,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,IAAI,GAAG,CAAC,cAAc,CAAA;QAC5E,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAA;QAC7B,OAAO,CAAC,KAAK,CAAC,QAAQ,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC,CAAA;QAClD,KAAK,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM;YAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAA;IACtC,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,MAAM,GAAG,MAAM,WAAW,OAAO,UAAU,CAAC,CAAA;IACnE,IAAI,OAAO;QAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AAC9B,CAAC,CAAA"}
|
package/lib/util/api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type PuzzmoFile = {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
highlightColor?: string;
|
|
12
12
|
iconPath?: string;
|
|
13
|
+
helpPath?: string;
|
|
13
14
|
};
|
|
14
15
|
integrations?: Record<string, unknown>;
|
|
15
16
|
output?: {
|
|
@@ -26,6 +27,7 @@ type CompleteResponse = {
|
|
|
26
27
|
versionID: string;
|
|
27
28
|
integrationsChanged: boolean;
|
|
28
29
|
iconChanged: boolean;
|
|
30
|
+
helpChanged: boolean;
|
|
29
31
|
gameURL: string | null;
|
|
30
32
|
versionsURL: string | null;
|
|
31
33
|
error?: string;
|
|
@@ -41,6 +43,8 @@ export type UploadFilesOptions = {
|
|
|
41
43
|
repoURL?: string | null;
|
|
42
44
|
/** Contents of the SVG named by `game.iconPath`, synced onto the game */
|
|
43
45
|
iconSVG?: string | null;
|
|
46
|
+
/** Contents of the Markdown named by `game.helpPath`, synced onto the game's in-game help */
|
|
47
|
+
helpMD?: string | null;
|
|
44
48
|
};
|
|
45
49
|
/** Multi-step upload: init -> batched file uploads -> complete */
|
|
46
50
|
export declare const uploadFiles: (apiURL: string, token: string, gameSlug: string, sha: string, filePaths: string[], baseDir: string, puzzmoFile: PuzzmoFile, onProgress?: UploadProgress, options?: UploadFilesOptions) => Promise<CompleteResponse>;
|
package/lib/util/api.js
CHANGED
|
@@ -95,13 +95,13 @@ const formatBytes = (bytes) => {
|
|
|
95
95
|
};
|
|
96
96
|
/** Multi-step upload: init -> batched file uploads -> complete */
|
|
97
97
|
export const uploadFiles = async (apiURL, token, gameSlug, sha, filePaths, baseDir, puzzmoFile, onProgress, options = {}) => {
|
|
98
|
-
const { verbose = false, description, repoURL, iconSVG } = options;
|
|
98
|
+
const { verbose = false, description, repoURL, iconSVG, helpMD } = options;
|
|
99
99
|
if (verbose)
|
|
100
100
|
console.log(` API URL: ${apiURL}`);
|
|
101
101
|
// Step 1: Init session (includes puzzmo.json metadata)
|
|
102
102
|
let init;
|
|
103
103
|
try {
|
|
104
|
-
init = (await jsonPost(`${apiURL}/cliUpload`, token, { gameSlug, sha, puzzmoFile, description, repoURL, iconSVG }, "upload init", verbose));
|
|
104
|
+
init = (await jsonPost(`${apiURL}/cliUpload`, token, { gameSlug, sha, puzzmoFile, description, repoURL, iconSVG, helpMD }, "upload init", verbose));
|
|
105
105
|
}
|
|
106
106
|
catch (e) {
|
|
107
107
|
if (e instanceof Error && e.message.includes("Game not found:"))
|
|
@@ -127,6 +127,7 @@ export const uploadFiles = async (apiURL, token, gameSlug, sha, filePaths, baseD
|
|
|
127
127
|
...complete,
|
|
128
128
|
integrationsChanged: !!init.integrationsChanged,
|
|
129
129
|
iconChanged: !!init.iconChanged,
|
|
130
|
+
helpChanged: !!init.helpChanged,
|
|
130
131
|
gameURL: init.gameURL ?? null,
|
|
131
132
|
versionsURL: init.versionsURL ?? null,
|
|
132
133
|
};
|
package/lib/util/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/util/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/util/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAuB5B,MAAM,SAAS,GAAG,EAAE,CAAA;AAEpB,4FAA4F;AAC5F,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAExB;IADlB,YACkB,IAAY,EAC5B,OAAe;QAEf,KAAK,CAAC,OAAO,CAAC,CAAA;QAHE,SAAI,GAAJ,IAAI,CAAQ;QAI5B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAA;IACjC,CAAC;CACF;AAwCD,yFAAyF;AACzF,MAAM,gBAAgB,GAAG,KAAK,EAAE,GAAW,EAAE,IAAiB,EAAE,IAAY,EAAE,OAAgB,EAAqB,EAAE;IACnH,IAAI,OAAO;QAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,MAAM,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,CAAC,CAAA;IACxE,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QAClC,IAAI,OAAO;YAAE,OAAO,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,UAAU,KAAK,IAAI,GAAG,CAAC,CAAA;QACzE,OAAO,GAAG,CAAA;IACZ,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAI,CAAyB,CAAC,KAAK,CAAA;QAC9C,MAAM,QAAQ,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,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AI,IAAI;KACtC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -14,6 +14,8 @@ export type DiscoveredGame = {
|
|
|
14
14
|
distDir: string;
|
|
15
15
|
/** Absolute path to the icon SVG named by `game.iconPath`, or null when the file sets no icon */
|
|
16
16
|
iconPath: string | null;
|
|
17
|
+
/** Absolute path to the help Markdown named by `game.helpPath`, or null when the file sets no help */
|
|
18
|
+
helpPath: string | null;
|
|
17
19
|
};
|
|
18
20
|
/** A puzzmo.json that was found but could not be used (invalid JSON, schema errors, missing dist) */
|
|
19
21
|
export type DiscoveryError = {
|
|
@@ -30,8 +32,11 @@ export type DiscoveryResult = {
|
|
|
30
32
|
export type DiscoverOptions = {
|
|
31
33
|
/** Require each game to have a non-empty dist folder (default true). Set false for commands that run before a build. */
|
|
32
34
|
requireDist?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Require `game.iconPath` and `game.helpPath` to point at files (default true). Set false for commands that only read puzzmo.json
|
|
37
|
+
* metadata.
|
|
38
|
+
*/
|
|
39
|
+
requireLinkedFiles?: boolean;
|
|
35
40
|
};
|
|
36
41
|
/** Walks `rootDir` looking for puzzmo.json files, validates each, and resolves their dist directory */
|
|
37
42
|
export declare const discoverGames: (rootDir: string, options?: DiscoverOptions) => Promise<DiscoveryResult>;
|
|
@@ -8,7 +8,7 @@ const ignoredDirs = new Set(["node_modules", ".git", ".turbo", ".next", ".cache"
|
|
|
8
8
|
const outputDirNames = ["dist", "build", "built", "output"];
|
|
9
9
|
/** Walks `rootDir` looking for puzzmo.json files, validates each, and resolves their dist directory */
|
|
10
10
|
export const discoverGames = async (rootDir, options = {}) => {
|
|
11
|
-
const { requireDist = true,
|
|
11
|
+
const { requireDist = true, requireLinkedFiles = true } = options;
|
|
12
12
|
const root = path.resolve(rootDir);
|
|
13
13
|
const puzzmoJsonPaths = findPuzzmoJsonFiles(root);
|
|
14
14
|
const games = [];
|
|
@@ -31,10 +31,13 @@ export const discoverGames = async (rootDir, options = {}) => {
|
|
|
31
31
|
const puzzmoFile = validation.data;
|
|
32
32
|
const puzzmoJsonDir = path.dirname(puzzmoJsonPath);
|
|
33
33
|
const distDir = resolveDistDir(puzzmoFile, puzzmoJsonDir, root);
|
|
34
|
-
// The icon
|
|
34
|
+
// The icon and help are checked here rather than at upload time so `validate` catches a stale path too.
|
|
35
35
|
const iconPath = puzzmoFile.game.iconPath ? path.resolve(puzzmoJsonDir, puzzmoFile.game.iconPath) : null;
|
|
36
|
-
if (
|
|
36
|
+
if (requireLinkedFiles && iconPath && !isFile(iconPath))
|
|
37
37
|
fileErrors.push(`Icon file not found for ${puzzmoFile.game.slug}: "${puzzmoFile.game.iconPath}" (${iconPath}) does not exist.`);
|
|
38
|
+
const helpPath = puzzmoFile.game.helpPath ? path.resolve(puzzmoJsonDir, puzzmoFile.game.helpPath) : null;
|
|
39
|
+
if (requireLinkedFiles && helpPath && !isFile(helpPath))
|
|
40
|
+
fileErrors.push(`Help file not found for ${puzzmoFile.game.slug}: "${puzzmoFile.game.helpPath}" (${helpPath}) does not exist.`);
|
|
38
41
|
if (requireDist) {
|
|
39
42
|
if (!distDir) {
|
|
40
43
|
// output.dir set but missing usually means "not built yet", which the generic message hides.
|
|
@@ -51,7 +54,7 @@ export const discoverGames = async (rootDir, options = {}) => {
|
|
|
51
54
|
errors.push({ puzzmoJsonPath, slug: puzzmoFile.game.slug, errors: fileErrors });
|
|
52
55
|
continue;
|
|
53
56
|
}
|
|
54
|
-
games.push({ puzzmoJsonPath, puzzmoJsonDir, puzzmoFile, distDir: distDir ?? "", iconPath });
|
|
57
|
+
games.push({ puzzmoJsonPath, puzzmoJsonDir, puzzmoFile, distDir: distDir ?? "", iconPath, helpPath });
|
|
55
58
|
}
|
|
56
59
|
return { games, errors };
|
|
57
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discoverGames.js","sourceRoot":"","sources":["../../src/util/discoverGames.ts"],"names":[],"mappings":"AAAA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edKeys": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"LeaderboardExpressionSetup": {
|
|
6
9
|
"type": "object",
|
|
7
10
|
"properties": {
|
|
8
|
-
"
|
|
11
|
+
"displayName": {
|
|
9
12
|
"type": "string",
|
|
10
|
-
"description": "
|
|
13
|
+
"description": "What do we call this datum"
|
|
11
14
|
},
|
|
12
|
-
"
|
|
13
|
-
"type": "
|
|
14
|
-
"
|
|
15
|
-
"displayName": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "Display name shown in the UI, use | to indicate where a line break should go. Synced to the game on every upload; seeds a newly created game."
|
|
18
|
-
},
|
|
19
|
-
"slug": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "URL-friendly identifier for the game"
|
|
22
|
-
},
|
|
23
|
-
"teamID": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": "The team ID that owns this game"
|
|
26
|
-
},
|
|
27
|
-
"oneliner": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Short tagline for the game. Synced to the game on every upload when present; seeds a newly created game."
|
|
30
|
-
},
|
|
31
|
-
"description": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "Longer description of the game. Synced to the game on every upload when present; seeds a newly created game."
|
|
34
|
-
},
|
|
35
|
-
"highlightColor": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"description": "Hex highlight color (e.g. \"#FF8800\"). Synced to the game on every upload when present; seeds a newly created game.",
|
|
38
|
-
"pattern": "^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$"
|
|
39
|
-
},
|
|
40
|
-
"iconPath": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Path to the game's icon SVG, relative to this file (e.g. \"./icon.svg\"). Synced to the game on every upload when present. The icon is recolored at runtime, so it must be two-color: #000000 for the foreground, #FFFFFF for the background, with width, height and viewBox attributes, and under 8,000 characters."
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"required": ["displayName", "slug", "teamID"],
|
|
46
|
-
"additionalProperties": false,
|
|
47
|
-
"description": "Metadata about the game"
|
|
15
|
+
"secondaryName": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "An optional secondary name for this config. For example, on a leaderboard this is used in the completion sidebar"
|
|
48
18
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"description": "
|
|
19
|
+
"sortValue": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"description": "Different augmentations would do different things with this sort value. Leaderboards for example use this when displaying on a page."
|
|
52
22
|
},
|
|
53
|
-
"
|
|
54
|
-
"type": "
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
23
|
+
"order": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["Higher=better", "Lower=better"],
|
|
26
|
+
"description": "Just saying it how it is, for some augmentations, this isn't necessary"
|
|
27
|
+
},
|
|
28
|
+
"deedID": {
|
|
29
|
+
"$ref": "#/definitions/DeedKeys",
|
|
30
|
+
"description": "Sometimes, instead of an expression, you may need to hook up to a deed"
|
|
31
|
+
},
|
|
32
|
+
"formatString": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "A custom string formatter, slightly based on printf.\n\n- `%+`: Adds a plus sign _only_ to positive numbers\n- `%@`: Takes the value and replaces the token with the value. If a number it is 'toLocaleString(\"en-US\")'ed\n- `%TD`: Takes the text definition for a deed and replaces the token with the value\n- `\"[time]\"`: Converts a number of seconds to a colon-separated time string (must be exact match)"
|
|
35
|
+
},
|
|
36
|
+
"filterExp": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "An expression string which can stop something from happening. A concrete example: Whether to post to a leaderboard or not. If the expression returns true or > 0 then the entry is considered allowed for the leaderboard."
|
|
39
|
+
},
|
|
40
|
+
"valueExp": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "An expression string which can be used to generate the value for whatever your config is based on. The API will provide a set of appropriate variables for you to use in this JS-like expression string. They are based on \"AngularJS Expressions\" which you can read about here: https://docs.angularjs.org/guide/expression"
|
|
43
|
+
},
|
|
44
|
+
"stableID": {
|
|
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- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard\n(value here likely can be your deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
47
|
+
},
|
|
48
|
+
"scoreTechnique": {
|
|
49
|
+
"type": ["string", "null"],
|
|
50
|
+
"enum": ["AggregateOfBest", "AggregateOfAll", null],
|
|
51
|
+
"description": "Provides a way to control how we handle different scoring algorithms, right now you have the default (overwrite on best) and \"AggregateOfBest\" which aggregates based on the"
|
|
52
|
+
},
|
|
53
|
+
"rotation": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["Weekly", "Monthly"],
|
|
56
|
+
"description": "How often does this leaderboard rotate? Leaving empty is means daily"
|
|
57
|
+
},
|
|
58
|
+
"icons": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
60
62
|
},
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
"description": "What icons should show above the leaderboard? These want to be game slugs"
|
|
64
|
+
},
|
|
65
|
+
"rules": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "A \\n separated list of rules to put under a leaderboard"
|
|
68
|
+
},
|
|
69
|
+
"subscoreExp": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "An expression to grab a subscore"
|
|
72
|
+
},
|
|
73
|
+
"championsLeague": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"const": true,
|
|
76
|
+
"description": "Support having a champion's league, where we extract the top players from the game and move them into a new league. Only available for use on the Game augmentations (and not at puzzles/variants/runtime etc) and on leaderboards with a rotation of null (daily.)"
|
|
77
|
+
},
|
|
78
|
+
"postCompletion": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"const": true,
|
|
81
|
+
"description": "This leaderboard is only submitted to via a post-completion checkpoint, not during the normal completion pipeline. We use this for games which have secret metagames which occur after the game has been completed."
|
|
82
|
+
},
|
|
83
|
+
"hidden": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"const": true,
|
|
86
|
+
"description": "This leaderboard is not shown in the default listings. Records still get posted to it as normal, but it only becomes visible for a play where the game named its stableID in `showLeaderboards` at completion. Lets a game pick which of its extra leaderboards are worth showing for a given play."
|
|
64
87
|
}
|
|
65
88
|
},
|
|
66
|
-
"required": ["
|
|
89
|
+
"required": ["displayName", "formatString", "stableID"],
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
},
|
|
92
|
+
"ExpressionSetup": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"displayName": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "What do we call this datum"
|
|
98
|
+
},
|
|
99
|
+
"secondaryName": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"description": "An optional secondary name for this config. For example, on a leaderboard this is used in the completion sidebar"
|
|
102
|
+
},
|
|
103
|
+
"stableID": {
|
|
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- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard\n(value here likely can be your deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
106
|
+
},
|
|
107
|
+
"order": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"enum": ["Higher=better", "Lower=better"],
|
|
110
|
+
"description": "Just saying it how it is, for some augmentations, this isn't necessary"
|
|
111
|
+
},
|
|
112
|
+
"deedID": {
|
|
113
|
+
"$ref": "#/definitions/DeedKeys",
|
|
114
|
+
"description": "Sometimes, instead of an expression, you may need to hook up to a deed"
|
|
115
|
+
},
|
|
116
|
+
"formatString": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "A custom string formatter, slightly based on printf.\n\n- `%+`: Adds a plus sign _only_ to positive numbers\n- `%@`: Takes the value and replaces the token with the value. If a number it is 'toLocaleString(\"en-US\")'ed\n- `%TD`: Takes the text definition for a deed and replaces the token with the value\n- `\"[time]\"`: Converts a number of seconds to a colon-separated time string (must be exact match)"
|
|
119
|
+
},
|
|
120
|
+
"filterExp": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "An expression string which can stop something from happening. A concrete example: Whether to post to a leaderboard or not. If the expression returns true or > 0 then the entry is considered allowed for the leaderboard."
|
|
123
|
+
},
|
|
124
|
+
"valueExp": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "An expression string which can be used to generate the value for whatever your config is based on. The API will provide a set of appropriate variables for you to use in this JS-like expression string. They are based on \"AngularJS Expressions\" which you can read about here: https://docs.angularjs.org/guide/expression"
|
|
127
|
+
},
|
|
128
|
+
"sortValue": {
|
|
129
|
+
"type": "number",
|
|
130
|
+
"description": "Different augmentations would do different things with this sort value. Leaderboards for example use this when displaying on a page."
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": ["displayName", "formatString"],
|
|
67
134
|
"additionalProperties": false,
|
|
68
|
-
"description": "
|
|
135
|
+
"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."
|
|
136
|
+
},
|
|
137
|
+
"ChecklistAugmentationItem": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"title": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"description": "The item's headline in the tutorial UI; when omitted nothing is shown.",
|
|
143
|
+
"examples": ["\"Easy\""]
|
|
144
|
+
},
|
|
145
|
+
"subtitle": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Supporting line rendered under the title.",
|
|
148
|
+
"examples": ["\"Open the Poker Hand reference\""]
|
|
149
|
+
},
|
|
150
|
+
"expandMD": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "The body revealed when the item is expanded, as markdown.",
|
|
153
|
+
"examples": ["\"Tap the button on the lower left side of the screen with the book icon on it\""]
|
|
154
|
+
},
|
|
155
|
+
"targetCount": {
|
|
156
|
+
"type": "number",
|
|
157
|
+
"description": "Target count to mark this item complete (uses `incrementExp` as an expression to determine the count from deeds sent via a checkpoint).",
|
|
158
|
+
"examples": ["2"]
|
|
159
|
+
},
|
|
160
|
+
"incrementExp": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"description": "Expression evaluated against the deed scope; the result is added to `count`.",
|
|
163
|
+
"examples": ["\"threeOfAKindCount\"", "\"flushCount >= 3\""]
|
|
164
|
+
},
|
|
165
|
+
"filterExp": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "Optional gate expression — when falsy, the item is skipped for evaluation.",
|
|
168
|
+
"examples": ["\"excessMoves === 0\""]
|
|
169
|
+
},
|
|
170
|
+
"liveUpdate": {
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"description": "When true, the item updates during checkpoints, not only at completion."
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"additionalProperties": false
|
|
176
|
+
},
|
|
177
|
+
"ChecklistAugmentation": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {
|
|
180
|
+
"stableID": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Stable identifier used to de-dupe the checklist",
|
|
183
|
+
"examples": ["\"[gameslug]:tutorial\""]
|
|
184
|
+
},
|
|
185
|
+
"type": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"const": "tutorial",
|
|
188
|
+
"description": "The kind of checklist. Currently only `tutorial` is available"
|
|
189
|
+
},
|
|
190
|
+
"title": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"description": "Display title shown above the checklist.",
|
|
193
|
+
"examples": ["\"Poker Hands\""]
|
|
194
|
+
},
|
|
195
|
+
"instructionsVisibleFromItemIndex": {
|
|
196
|
+
"type": "number",
|
|
197
|
+
"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.",
|
|
198
|
+
"examples": ["2"]
|
|
199
|
+
},
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "array",
|
|
202
|
+
"items": {
|
|
203
|
+
"$ref": "#/definitions/ChecklistAugmentationItem"
|
|
204
|
+
},
|
|
205
|
+
"description": "The individual steps, in the order the player works through them."
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": ["stableID", "type", "items"],
|
|
209
|
+
"additionalProperties": false
|
|
69
210
|
},
|
|
70
211
|
"Augmentations": {
|
|
71
212
|
"type": "object",
|
|
@@ -82,14 +223,14 @@
|
|
|
82
223
|
"items": {
|
|
83
224
|
"type": "object",
|
|
84
225
|
"properties": {
|
|
226
|
+
"stableID": {
|
|
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- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard\n(value here likely can be your deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
229
|
+
},
|
|
85
230
|
"deedID": {
|
|
86
231
|
"$ref": "#/definitions/DeedKeys",
|
|
87
232
|
"description": "Sometimes, instead of an expression, you may need to hook up to a deed"
|
|
88
233
|
},
|
|
89
|
-
"stableID": {
|
|
90
|
-
"type": ["string", "null"],
|
|
91
|
-
"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- 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 deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
92
|
-
},
|
|
93
234
|
"filterExp": {
|
|
94
235
|
"type": "string",
|
|
95
236
|
"description": "An expression string which can stop something from happening. A concrete example: Whether to post to a leaderboard or not. If the expression returns true or > 0 then the entry is considered allowed for the leaderboard."
|
|
@@ -101,21 +242,21 @@
|
|
|
101
242
|
},
|
|
102
243
|
"additionalProperties": false
|
|
103
244
|
},
|
|
104
|
-
"description": "Puzzle-specific aggregate stats that track data across all completions of a specific puzzle (e.g. \"how many perfect scores on this puzzle\"). Unlike `userAggregateStats` which are per-user, these accumulate data across all players for a single puzzle instance.\n\nEvaluated at game completion. Expression scope includes:\n\n- All deed values from the gameplay (camelCase keys, e.g. `excessMoves` from `excess-moves` deed)\n- `prior`: The previous value of this stat for the puzzle\n- `wallClockComplete`: Seconds since daily start when completed (if today's daily)\n\nTwo ways to define stats:\n\n1. Via `deedID`: Looks up the deed value and adds it to prior (simple accumulation) 2. Via `valueExp`: Full expression control, e.g. `prior + 1` to count occurrences\n\nUse `filterExp` to conditionally update, e.g. `excessMoves === 0` to only count perfect games. The `stableID` is required and used as the storage key for this stat.\n\nExample: Count perfect completions\n\n```json
|
|
245
|
+
"description": "Puzzle-specific aggregate stats that track data across all completions of a specific puzzle (e.g. \"how many perfect scores on this puzzle\"). Unlike `userAggregateStats` which are per-user, these accumulate data across all players for a single puzzle instance.\n\nEvaluated at game completion. Expression scope includes:\n\n- All deed values from the gameplay (camelCase keys, e.g. `excessMoves` from `excess-moves` deed)\n- `prior`: The previous value of this stat for the puzzle\n- `wallClockComplete`: Seconds since daily start when completed (if today's daily)\n\nTwo ways to define stats:\n\n1. Via `deedID`: Looks up the deed value and adds it to prior (simple accumulation) 2. Via `valueExp`: Full expression control, e.g. `prior + 1` to count occurrences\n\nUse `filterExp` to conditionally update, e.g. `excessMoves === 0` to only count perfect games. The `stableID` is required and used as the storage key for this stat.\n\nExample: Count perfect completions\n\n```json\n{ \"stableID\": \"perfects\", \"filterExp\": \"excessMoves === 0\", \"valueExp\": \"prior + 1\" }\n```"
|
|
105
246
|
},
|
|
106
247
|
"userAggregateStats": {
|
|
107
248
|
"type": "array",
|
|
108
249
|
"items": {
|
|
109
250
|
"type": "object",
|
|
110
251
|
"properties": {
|
|
252
|
+
"stableID": {
|
|
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- A stable ID has to be in the format of `game-[gameslug]:[your value name]` for a game-based leaderboard\n(value here likely can be your deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
255
|
+
},
|
|
111
256
|
"deedID": {
|
|
112
257
|
"$ref": "#/definitions/DeedKeys",
|
|
113
258
|
"description": "Sometimes, instead of an expression, you may need to hook up to a deed"
|
|
114
259
|
},
|
|
115
|
-
"stableID": {
|
|
116
|
-
"type": ["string", "null"],
|
|
117
|
-
"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- 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 deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
118
|
-
},
|
|
119
260
|
"filterExp": {
|
|
120
261
|
"type": "string",
|
|
121
262
|
"description": "An expression string which can stop something from happening. A concrete example: Whether to post to a leaderboard or not. If the expression returns true or > 0 then the entry is considered allowed for the leaderboard."
|
|
@@ -127,7 +268,7 @@
|
|
|
127
268
|
},
|
|
128
269
|
"additionalProperties": false
|
|
129
270
|
},
|
|
130
|
-
"description": "User-specific aggregate stats stored per-user, tied to the game or remix. These track lifetime stats for individual players (e.g. \"total points earned\", \"best score\"). Stats are keyed by game symbol, or `{symbol}-{remixSlug}` if the remix has the uniqueStats flag.\n\nEvaluated at game completion. Expression scope includes:\n\n- `deeds`: All deed values from the gameplay (camelCase keys, e.g. `deeds.tilesCleared`)\n- `prior`: The previous value of this stat for the user (for running totals/max/min)\n- `uas`: The user's existing aggregate stats object\n- Game symbol keys containing prior deed stats\n\nTwo ways to define stats:\n\n1. Via `deedID`: Looks up the deed value and adds it to prior (simple accumulation) 2. Via `valueExp`: Full expression control, e.g. `prior > deeds.score ? prior : deeds.score` for max\n\nUse `filterExp` to conditionally update (e.g. only count completed games). The `stableID` is required and used as the storage key for this stat.\n\nExample: Track the user's best score\n\n```json
|
|
271
|
+
"description": "User-specific aggregate stats stored per-user, tied to the game or remix. These track lifetime stats for individual players (e.g. \"total points earned\", \"best score\"). Stats are keyed by game symbol, or `{symbol}-{remixSlug}` if the remix has the uniqueStats flag.\n\nEvaluated at game completion. Expression scope includes:\n\n- `deeds`: All deed values from the gameplay (camelCase keys, e.g. `deeds.tilesCleared`)\n- `prior`: The previous value of this stat for the user (for running totals/max/min)\n- `uas`: The user's existing aggregate stats object\n- Game symbol keys containing prior deed stats\n\nTwo ways to define stats:\n\n1. Via `deedID`: Looks up the deed value and adds it to prior (simple accumulation) 2. Via `valueExp`: Full expression control, e.g. `prior > deeds.score ? prior : deeds.score` for max\n\nUse `filterExp` to conditionally update (e.g. only count completed games). The `stableID` is required and used as the storage key for this stat.\n\nExample: Track the user's best score\n\n```json\n{ \"stableID\": \"best-score\", \"valueExp\": \"prior > deeds.score ? prior : deeds.score\" }\n```"
|
|
131
272
|
},
|
|
132
273
|
"userStatDisplays": {
|
|
133
274
|
"type": "array",
|
|
@@ -158,14 +299,17 @@
|
|
|
158
299
|
"required": ["userAggregateStatStableID", "formatString", "displayID"],
|
|
159
300
|
"additionalProperties": false
|
|
160
301
|
},
|
|
161
|
-
"description": "Configuration for how user aggregate stats are displayed on user profiles. Maps stats from `userAggregateStats` to formatted display strings shown in the profile stats section.\n\nThe profile section automatically includes prefix stats (games played, hours played, best streak) before any custom stats defined here.\n\nThe `hideExp` expression receives `{ value }` in scope where `value` is the stat's current value. Common pattern: `\"!value\"` to hide when zero/undefined."
|
|
302
|
+
"description": "Configuration for how user aggregate stats are displayed on user profiles. Maps stats from `userAggregateStats` to formatted display strings shown in the profile stats section.\n\nThe profile section automatically includes prefix stats (games played, hours played, best streak) before any custom stats defined here.\n\nThe `hideExp` expression receives `{ value }` in scope where `value` is the stat's current value. Common pattern: `\"!value\"` to hide when zero/undefined.",
|
|
303
|
+
"examples": [
|
|
304
|
+
"Display the user's best score on their profile, but only if it's above zero:\n\n ```json\n {\n \"userAggregateStatStableID\": \"best-score\",\n \"formatString\": \"Best score: %@\",\n \"displayID\": 1,\n \"hideExp\": \"!value\",\n \"order\": 0\n }\n ```"
|
|
305
|
+
]
|
|
162
306
|
},
|
|
163
307
|
"persistedDeeds": {
|
|
164
308
|
"type": "array",
|
|
165
309
|
"items": {
|
|
166
310
|
"$ref": "#/definitions/ExpressionSetup"
|
|
167
311
|
},
|
|
168
|
-
"description": "Converts temporary (pipeline) deeds into persisted deeds at game completion time. Use this to persist computed values derived from temporary deed data.\n\nFor each config, the `valueExp` is evaluated against the deed scope, and the result is stored as a permanent deed using `stableID` (or `deedID`) as the storage key.\n\nExpression scope includes all deeds from the gameplay (camelCase keys, e.g. `points` from `points` deed). Values are floored to integers before storage.\n\nUse `filterExp` to conditionally persist (e.g. only persist if a threshold is met). Either `stableID` or `deedID` is required as the storage key.\n\nExample: Persist a computed score only when player achieves a threshold\n\n```json
|
|
312
|
+
"description": "Converts temporary (pipeline) deeds into persisted deeds at game completion time. Use this to persist computed values derived from temporary deed data.\n\nFor each config, the `valueExp` is evaluated against the deed scope, and the result is stored as a permanent deed using `stableID` (or `deedID`) as the storage key.\n\nExpression scope includes all deeds from the gameplay (camelCase keys, e.g. `points` from `points` deed). Values are floored to integers before storage.\n\nUse `filterExp` to conditionally persist (e.g. only persist if a threshold is met). Either `stableID` or `deedID` is required as the storage key.\n\nExample: Persist a computed score only when player achieves a threshold\n\n```json\n{ \"stableID\": \"computed-bonus\", \"filterExp\": \"points > 100\", \"valueExp\": \"points * 2\" }\n```\n\nCommon use case: Take a temporary deed and persist it for use in completion tables or sidebars."
|
|
169
313
|
},
|
|
170
314
|
"completionTable": {
|
|
171
315
|
"type": "array",
|
|
@@ -188,14 +332,14 @@
|
|
|
188
332
|
"required": ["title", "persistedDeedID", "formatString"],
|
|
189
333
|
"additionalProperties": false
|
|
190
334
|
},
|
|
191
|
-
"description": "Additional rows to display in the Today page completion table for a completed game. Shows custom stats alongside the default game stats (time, score, hints, etc.).\n\nEach entry looks up a persisted deed by `persistedDeedID` and formats its value using `formatString`. Custom entries appear before the default game stats. The table is rendered as title/value pairs.\n\nNote: Only works with persisted deeds. Use `persistedDeeds` augmentation first if you need to convert temporary deeds into persisted ones for display here.\n\nExample: Show a custom \"Bonus Points\" stat\n\n```json
|
|
335
|
+
"description": "Additional rows to display in the Today page completion table for a completed game. Shows custom stats alongside the default game stats (time, score, hints, etc.).\n\nEach entry looks up a persisted deed by `persistedDeedID` and formats its value using `formatString`. Custom entries appear before the default game stats. The table is rendered as title/value pairs.\n\nNote: Only works with persisted deeds. Use `persistedDeeds` augmentation first if you need to convert temporary deeds into persisted ones for display here.\n\nExample: Show a custom \"Bonus Points\" stat\n\n```json\n{ \"title\": \"Bonus Points\", \"persistedDeedID\": \"bonus-points\", \"formatString\": \"%@ pts\" }\n```"
|
|
192
336
|
},
|
|
193
337
|
"completionSidebar": {
|
|
194
338
|
"type": "array",
|
|
195
339
|
"items": {
|
|
196
340
|
"$ref": "#/definitions/ExpressionSetup"
|
|
197
341
|
},
|
|
198
|
-
"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
|
|
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```"
|
|
199
343
|
},
|
|
200
344
|
"completionNotables": {
|
|
201
345
|
"type": "array",
|
|
@@ -218,7 +362,7 @@
|
|
|
218
362
|
"required": ["valueExp", "notableName"],
|
|
219
363
|
"additionalProperties": false
|
|
220
364
|
},
|
|
221
|
-
"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
|
|
365
|
+
"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\n{ \"completionNotables\": [ { \"valueExp\": \"score > 100\", \"notableIndex\": 0, \"notableName\": \"jokinAround\" }, { \"valueExp\": \"perfect === true\", \"notableName\": \"2-4\" } ] }\n```"
|
|
222
366
|
},
|
|
223
367
|
"checklists": {
|
|
224
368
|
"type": "array",
|
|
@@ -229,217 +373,80 @@
|
|
|
229
373
|
},
|
|
230
374
|
"forceGameSettings": {
|
|
231
375
|
"type": "object",
|
|
232
|
-
"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
|
|
376
|
+
"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\n{ \"forceGameSettings\": { \"monoGrid\": true } }\n```"
|
|
233
377
|
}
|
|
234
378
|
},
|
|
235
379
|
"additionalProperties": false,
|
|
236
380
|
"description": "Site-wide hooks which are sent at puzzle creation, (via front-matter), via the game, and gameplay completion messages.\n\nGames/Variants/FrontMatter: Supports All Fields. Game Completion: Just \"leaderboards\" and \"completionNotables\""
|
|
237
381
|
},
|
|
238
|
-
"
|
|
382
|
+
"PuzzmoFile": {
|
|
239
383
|
"type": "object",
|
|
240
|
-
"additionalProperties": false,
|
|
241
384
|
"properties": {
|
|
242
|
-
"
|
|
243
|
-
"type": ["string", "null"],
|
|
244
|
-
"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- 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 deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
245
|
-
},
|
|
246
|
-
"scoreTechnique": {
|
|
247
|
-
"type": ["string", "null"],
|
|
248
|
-
"enum": ["AggregateOfBest", "AggregateOfAll", null],
|
|
249
|
-
"description": "Provides a way to control how we handle different scoring algorithms, right now you have the default (overwrite on best) and \"AggregateOfBest\" which aggregates based on the"
|
|
250
|
-
},
|
|
251
|
-
"rotation": {
|
|
385
|
+
"$schema": {
|
|
252
386
|
"type": "string",
|
|
253
|
-
"
|
|
254
|
-
"description": "How often does this leaderboard rotate? Leaving empty is means daily"
|
|
387
|
+
"description": "Editor hint pointing at this JSON schema (path or URL). Ignored by the CLI."
|
|
255
388
|
},
|
|
256
|
-
"
|
|
257
|
-
"type": "
|
|
258
|
-
"
|
|
259
|
-
"
|
|
389
|
+
"game": {
|
|
390
|
+
"type": "object",
|
|
391
|
+
"properties": {
|
|
392
|
+
"displayName": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Display name shown in the UI, use | to indicate where a line break should go. Synced to the game on every upload; seeds a newly created game."
|
|
395
|
+
},
|
|
396
|
+
"slug": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"description": "URL-friendly identifier for the game"
|
|
399
|
+
},
|
|
400
|
+
"teamID": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"description": "The team ID that owns this game"
|
|
403
|
+
},
|
|
404
|
+
"oneliner": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"description": "Short tagline for the game. Synced to the game on every upload when present; seeds a newly created game."
|
|
407
|
+
},
|
|
408
|
+
"description": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"description": "Longer description of the game. Synced to the game on every upload when present; seeds a newly created game."
|
|
411
|
+
},
|
|
412
|
+
"highlightColor": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"description": "Hex highlight color (e.g. \"#FF8800\"). Synced to the game on every upload when present; seeds a newly created game.",
|
|
415
|
+
"pattern": "^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$"
|
|
416
|
+
},
|
|
417
|
+
"iconPath": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"description": "Path to the game's icon SVG, relative to this file (e.g. \"./icon.svg\"). Synced to the game on every upload when present. The icon is recolored at runtime, so it must be two-color: #000000 for the foreground, #FFFFFF for the background, with width, height and viewBox attributes, and under 8,000 characters."
|
|
420
|
+
},
|
|
421
|
+
"helpPath": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"description": "Path to the game's how-to-play Markdown, relative to this file (e.g. \"./help.md\"). Synced to the game's in-game help on every upload when present, replacing anything edited in Workshop. Must not be empty or the untouched placeholder template, and under 20,000 characters."
|
|
424
|
+
}
|
|
260
425
|
},
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"type": "string",
|
|
265
|
-
"description": "A \\n separated list of rules to put under a leaderboard"
|
|
266
|
-
},
|
|
267
|
-
"subscoreExp": {
|
|
268
|
-
"type": "string",
|
|
269
|
-
"description": "An expression to grab a subscore"
|
|
270
|
-
},
|
|
271
|
-
"championsLeague": {
|
|
272
|
-
"type": "boolean",
|
|
273
|
-
"const": true,
|
|
274
|
-
"description": "Support having a champion's league, where we extract the top players from the game and move them into a new league. Only available for use on the Game augmentations (and not at puzzles/variants/runtime etc) and on leaderboards with a rotation of null (daily.)"
|
|
275
|
-
},
|
|
276
|
-
"postCompletion": {
|
|
277
|
-
"type": "boolean",
|
|
278
|
-
"const": true,
|
|
279
|
-
"description": "This leaderboard is only submitted to via a post-completion checkpoint, not during the normal completion pipeline. We use this for games which have secret metagames which occur after the game has been completed."
|
|
280
|
-
},
|
|
281
|
-
"hidden": {
|
|
282
|
-
"type": "boolean",
|
|
283
|
-
"const": true,
|
|
284
|
-
"description": "This leaderboard is not shown in the default listings. Records still get posted to it as normal, but it only becomes visible for a play where the game named its stableID in `showLeaderboards` at completion. Lets a game pick which of its extra leaderboards are worth showing for a given play."
|
|
285
|
-
},
|
|
286
|
-
"displayName": {
|
|
287
|
-
"type": "string",
|
|
288
|
-
"description": "What do we call this datum"
|
|
289
|
-
},
|
|
290
|
-
"secondaryName": {
|
|
291
|
-
"type": "string",
|
|
292
|
-
"description": "An optional secondary name for this config. For example, on a leaderboard this is used in the completion sidebar"
|
|
293
|
-
},
|
|
294
|
-
"order": {
|
|
295
|
-
"type": "string",
|
|
296
|
-
"enum": ["Higher=better", "Lower=better"],
|
|
297
|
-
"description": "Just saying it how it is, for some augmentations, this isn't necessary"
|
|
298
|
-
},
|
|
299
|
-
"deedID": {
|
|
300
|
-
"$ref": "#/definitions/DeedKeys",
|
|
301
|
-
"description": "Sometimes, instead of an expression, you may need to hook up to a deed"
|
|
302
|
-
},
|
|
303
|
-
"formatString": {
|
|
304
|
-
"type": "string",
|
|
305
|
-
"description": "A custom string formatter, slightly based on printf.\n\n- `%+`: Adds a plus sign _only_ to positive numbers\n- `%@`: Takes the value and replaces the token with the value. If a number it is 'toLocaleString(\"en-US\")'ed\n- `%TD`: Takes the text definition for a deed and replaces the token with the value\n- `\"[time]\"`: Converts a number of seconds to a colon-separated time string (must be exact match)"
|
|
306
|
-
},
|
|
307
|
-
"filterExp": {
|
|
308
|
-
"type": "string",
|
|
309
|
-
"description": "An expression string which can stop something from happening. A concrete example: Whether to post to a leaderboard or not. If the expression returns true or > 0 then the entry is considered allowed for the leaderboard."
|
|
310
|
-
},
|
|
311
|
-
"valueExp": {
|
|
312
|
-
"type": "string",
|
|
313
|
-
"description": "An expression string which can be used to generate the value for whatever your config is based on. The API will provide a set of appropriate variables for you to use in this JS-like expression string. They are based on \"AngularJS Expressions\" which you can read about here: https://docs.angularjs.org/guide/expression"
|
|
314
|
-
},
|
|
315
|
-
"sortValue": {
|
|
316
|
-
"type": "number",
|
|
317
|
-
"description": "Different augmentations would do different things with this sort value. Leaderboards for example use this when displaying on a page."
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"required": ["displayName", "formatString", "stableID"]
|
|
321
|
-
},
|
|
322
|
-
"DeedKeys": {
|
|
323
|
-
"type": "string"
|
|
324
|
-
},
|
|
325
|
-
"ExpressionSetup": {
|
|
326
|
-
"type": "object",
|
|
327
|
-
"properties": {
|
|
328
|
-
"displayName": {
|
|
329
|
-
"type": "string",
|
|
330
|
-
"description": "What do we call this datum"
|
|
331
|
-
},
|
|
332
|
-
"secondaryName": {
|
|
333
|
-
"type": "string",
|
|
334
|
-
"description": "An optional secondary name for this config. For example, on a leaderboard this is used in the completion sidebar"
|
|
335
|
-
},
|
|
336
|
-
"stableID": {
|
|
337
|
-
"type": ["string", "null"],
|
|
338
|
-
"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- 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 deedID). The formatting will get validated on puzzle creation, and in TypeScript."
|
|
339
|
-
},
|
|
340
|
-
"order": {
|
|
341
|
-
"type": "string",
|
|
342
|
-
"enum": ["Higher=better", "Lower=better"],
|
|
343
|
-
"description": "Just saying it how it is, for some augmentations, this isn't necessary"
|
|
344
|
-
},
|
|
345
|
-
"deedID": {
|
|
346
|
-
"$ref": "#/definitions/DeedKeys",
|
|
347
|
-
"description": "Sometimes, instead of an expression, you may need to hook up to a deed"
|
|
348
|
-
},
|
|
349
|
-
"formatString": {
|
|
350
|
-
"type": "string",
|
|
351
|
-
"description": "A custom string formatter, slightly based on printf.\n\n- `%+`: Adds a plus sign _only_ to positive numbers\n- `%@`: Takes the value and replaces the token with the value. If a number it is 'toLocaleString(\"en-US\")'ed\n- `%TD`: Takes the text definition for a deed and replaces the token with the value\n- `\"[time]\"`: Converts a number of seconds to a colon-separated time string (must be exact match)"
|
|
352
|
-
},
|
|
353
|
-
"filterExp": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"description": "An expression string which can stop something from happening. A concrete example: Whether to post to a leaderboard or not. If the expression returns true or > 0 then the entry is considered allowed for the leaderboard."
|
|
356
|
-
},
|
|
357
|
-
"valueExp": {
|
|
358
|
-
"type": "string",
|
|
359
|
-
"description": "An expression string which can be used to generate the value for whatever your config is based on. The API will provide a set of appropriate variables for you to use in this JS-like expression string. They are based on \"AngularJS Expressions\" which you can read about here: https://docs.angularjs.org/guide/expression"
|
|
360
|
-
},
|
|
361
|
-
"sortValue": {
|
|
362
|
-
"type": "number",
|
|
363
|
-
"description": "Different augmentations would do different things with this sort value. Leaderboards for example use this when displaying on a page."
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"required": ["displayName", "formatString"],
|
|
367
|
-
"additionalProperties": false,
|
|
368
|
-
"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."
|
|
369
|
-
},
|
|
370
|
-
"ChecklistAugmentation": {
|
|
371
|
-
"type": "object",
|
|
372
|
-
"properties": {
|
|
373
|
-
"stableID": {
|
|
374
|
-
"type": "string",
|
|
375
|
-
"description": "Stable identifier used to de-dupe the checklist",
|
|
376
|
-
"examples": ["[gameslug]:tutorial"]
|
|
377
|
-
},
|
|
378
|
-
"type": {
|
|
379
|
-
"type": "string",
|
|
380
|
-
"const": "tutorial",
|
|
381
|
-
"description": "The kind of checklist. Currently only `tutorial` is available"
|
|
382
|
-
},
|
|
383
|
-
"title": {
|
|
384
|
-
"type": "string",
|
|
385
|
-
"description": "Display title shown above the checklist.",
|
|
386
|
-
"examples": ["Poker Hands"]
|
|
426
|
+
"required": ["displayName", "slug", "teamID"],
|
|
427
|
+
"additionalProperties": false,
|
|
428
|
+
"description": "Metadata about the game"
|
|
387
429
|
},
|
|
388
|
-
"
|
|
389
|
-
"
|
|
390
|
-
"description": "
|
|
391
|
-
"examples": [2]
|
|
430
|
+
"integrations": {
|
|
431
|
+
"$ref": "#/definitions/Augmentations",
|
|
432
|
+
"description": "Game integrations with Puzzmo platform systems (leaderboards, stats, completion UI, etc.)"
|
|
392
433
|
},
|
|
393
|
-
"
|
|
394
|
-
"type": "
|
|
395
|
-
"
|
|
396
|
-
"
|
|
434
|
+
"output": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"properties": {
|
|
437
|
+
"dir": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"description": "Path to the built artifacts. Resolved relative to the puzzmo.json's directory. Can be shared across games (e.g. `../../dist/<slug>`) or per-game (e.g. `./build`)."
|
|
440
|
+
}
|
|
397
441
|
},
|
|
398
|
-
"
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
"required": ["stableID", "type", "items"],
|
|
402
|
-
"additionalProperties": false
|
|
403
|
-
},
|
|
404
|
-
"ChecklistAugmentationItem": {
|
|
405
|
-
"type": "object",
|
|
406
|
-
"properties": {
|
|
407
|
-
"title": {
|
|
408
|
-
"type": "string",
|
|
409
|
-
"description": "The item's headline in the tutorial UI; when omitted nothing is shown.",
|
|
410
|
-
"examples": ["Easy"]
|
|
411
|
-
},
|
|
412
|
-
"subtitle": {
|
|
413
|
-
"type": "string",
|
|
414
|
-
"description": "Supporting line rendered under the title.",
|
|
415
|
-
"examples": ["Open the Poker Hand reference"]
|
|
416
|
-
},
|
|
417
|
-
"expandMD": {
|
|
418
|
-
"type": "string",
|
|
419
|
-
"description": "The body revealed when the item is expanded, as markdown.",
|
|
420
|
-
"examples": ["Tap the button on the lower left side of the screen with the book icon on it"]
|
|
421
|
-
},
|
|
422
|
-
"targetCount": {
|
|
423
|
-
"type": "number",
|
|
424
|
-
"description": "Target count to mark this item complete (uses `incrementExp` as an expression to determine the count from deeds sent via a checkpoint).",
|
|
425
|
-
"examples": [2]
|
|
426
|
-
},
|
|
427
|
-
"incrementExp": {
|
|
428
|
-
"type": "string",
|
|
429
|
-
"description": "Expression evaluated against the deed scope; the result is added to `count`.",
|
|
430
|
-
"examples": ["threeOfAKindCount", "flushCount >= 3"]
|
|
431
|
-
},
|
|
432
|
-
"filterExp": {
|
|
433
|
-
"type": "string",
|
|
434
|
-
"description": "Optional gate expression — when falsy, the item is skipped for evaluation.",
|
|
435
|
-
"examples": ["excessMoves === 0"]
|
|
436
|
-
},
|
|
437
|
-
"liveUpdate": {
|
|
438
|
-
"type": "boolean",
|
|
439
|
-
"description": "When true, the item updates during checkpoints, not only at completion."
|
|
442
|
+
"required": ["dir"],
|
|
443
|
+
"additionalProperties": false,
|
|
444
|
+
"description": "Where the built game artifacts live for this game. Used by `puzzmo games upload` and `puzzmo games validate` to find the dist folder when running from a repo root. If omitted, the CLI looks for a `dist`, `build`, or `built` folder — first next to puzzmo.json, then walking up to the repo root, optionally with `<slug>` as a sub-folder for shared output dirs."
|
|
440
445
|
}
|
|
441
446
|
},
|
|
442
|
-
"
|
|
447
|
+
"required": ["game"],
|
|
448
|
+
"additionalProperties": false,
|
|
449
|
+
"description": "The schema for a puzzmo.json file that lives alongside a game's build artifacts"
|
|
443
450
|
}
|
|
444
451
|
}
|
|
445
452
|
}
|
package/src/commands/changed.ts
CHANGED
|
@@ -63,7 +63,7 @@ export const changed = async (dir: string, options: ChangedOptions = {}) => {
|
|
|
63
63
|
process.exit(1)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const { games, errors: discoveryErrors } = await discoverGames(rootDir, { requireDist: false,
|
|
66
|
+
const { games, errors: discoveryErrors } = await discoverGames(rootDir, { requireDist: false, requireLinkedFiles: false })
|
|
67
67
|
if (!games.length && !discoveryErrors.length) {
|
|
68
68
|
console.error(`No puzzmo.json files found under ${rootDir}`)
|
|
69
69
|
process.exit(1)
|
package/src/commands/upload.ts
CHANGED
|
@@ -161,7 +161,7 @@ type UploadOneOptions = {
|
|
|
161
161
|
/** Uploads a single discovered game; throws on failure */
|
|
162
162
|
const uploadOneGame = async (game: DiscoveredGame, opts: UploadOneOptions): Promise<GameSuccess> => {
|
|
163
163
|
const { credential, apiURL, sha, description, repoURL, verbose } = opts
|
|
164
|
-
const { puzzmoFile, distDir, iconPath } = game
|
|
164
|
+
const { puzzmoFile, distDir, iconPath, helpPath } = game
|
|
165
165
|
const gameSlug = puzzmoFile.game.slug
|
|
166
166
|
|
|
167
167
|
const files = collectFiles(distDir)
|
|
@@ -193,10 +193,17 @@ const uploadOneGame = async (game: DiscoveredGame, opts: UploadOneOptions): Prom
|
|
|
193
193
|
(batch, totalBatches, uploaded) => {
|
|
194
194
|
console.log(` Batch ${batch}/${totalBatches} done (${plural(uploaded, "file")} uploaded)`)
|
|
195
195
|
},
|
|
196
|
-
{
|
|
196
|
+
{
|
|
197
|
+
verbose,
|
|
198
|
+
description,
|
|
199
|
+
repoURL,
|
|
200
|
+
iconSVG: iconPath ? fs.readFileSync(iconPath, "utf-8") : null,
|
|
201
|
+
helpMD: helpPath ? fs.readFileSync(helpPath, "utf-8") : null,
|
|
202
|
+
},
|
|
197
203
|
)
|
|
198
204
|
|
|
199
205
|
if (result.iconChanged && iconPath) console.log(` Icon updated from ${path.relative(game.puzzmoJsonDir, iconPath)}.`)
|
|
206
|
+
if (result.helpChanged && helpPath) console.log(` In-game help updated from ${path.relative(game.puzzmoJsonDir, helpPath)}, live now.`)
|
|
200
207
|
|
|
201
208
|
if (result.integrationsChanged && result.versionsURL) {
|
|
202
209
|
console.log(` Uploaded. A new version has been staged for your team to try before it goes live:`)
|
package/src/commands/validate.ts
CHANGED
|
@@ -34,6 +34,7 @@ export const validate = async (dir: string) => {
|
|
|
34
34
|
log(` dist: ${distRel}`)
|
|
35
35
|
if (integrations.length) log(` integrations: ${integrations.join(", ")}`)
|
|
36
36
|
if (game.iconPath) log(` icon: ${path.relative(rootDir, game.iconPath)}`)
|
|
37
|
+
if (game.helpPath) log(` help: ${path.relative(rootDir, game.helpPath)}`)
|
|
37
38
|
for (const e of distErrors) console.error(` ${e}`)
|
|
38
39
|
for (const warning of lintPuzzmoFile(game.puzzmoFile)) log(` warning: ${warning}`)
|
|
39
40
|
}
|
package/src/util/api.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type PuzzmoFile = {
|
|
|
13
13
|
description?: string
|
|
14
14
|
highlightColor?: string
|
|
15
15
|
iconPath?: string
|
|
16
|
+
helpPath?: string
|
|
16
17
|
}
|
|
17
18
|
// This is what we're calling 'augmentations' publicly
|
|
18
19
|
integrations?: Record<string, unknown>
|
|
@@ -39,6 +40,7 @@ type InitResponse = {
|
|
|
39
40
|
basePath: string
|
|
40
41
|
integrationsChanged?: boolean
|
|
41
42
|
iconChanged?: boolean
|
|
43
|
+
helpChanged?: boolean
|
|
42
44
|
gameURL?: string
|
|
43
45
|
versionsURL?: string
|
|
44
46
|
error?: string
|
|
@@ -49,6 +51,7 @@ type CompleteResponse = {
|
|
|
49
51
|
versionID: string
|
|
50
52
|
integrationsChanged: boolean
|
|
51
53
|
iconChanged: boolean
|
|
54
|
+
helpChanged: boolean
|
|
52
55
|
gameURL: string | null
|
|
53
56
|
versionsURL: string | null
|
|
54
57
|
error?: string
|
|
@@ -66,6 +69,8 @@ export type UploadFilesOptions = {
|
|
|
66
69
|
repoURL?: string | null
|
|
67
70
|
/** Contents of the SVG named by `game.iconPath`, synced onto the game */
|
|
68
71
|
iconSVG?: string | null
|
|
72
|
+
/** Contents of the Markdown named by `game.helpPath`, synced onto the game's in-game help */
|
|
73
|
+
helpMD?: string | null
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
/** Wraps fetch to surface the underlying network cause (DNS, ECONNREFUSED, TLS, etc.) */
|
|
@@ -170,7 +175,7 @@ export const uploadFiles = async (
|
|
|
170
175
|
onProgress?: UploadProgress,
|
|
171
176
|
options: UploadFilesOptions = {},
|
|
172
177
|
): Promise<CompleteResponse> => {
|
|
173
|
-
const { verbose = false, description, repoURL, iconSVG } = options
|
|
178
|
+
const { verbose = false, description, repoURL, iconSVG, helpMD } = options
|
|
174
179
|
if (verbose) console.log(` API URL: ${apiURL}`)
|
|
175
180
|
|
|
176
181
|
// Step 1: Init session (includes puzzmo.json metadata)
|
|
@@ -179,7 +184,7 @@ export const uploadFiles = async (
|
|
|
179
184
|
init = (await jsonPost(
|
|
180
185
|
`${apiURL}/cliUpload`,
|
|
181
186
|
token,
|
|
182
|
-
{ gameSlug, sha, puzzmoFile, description, repoURL, iconSVG },
|
|
187
|
+
{ gameSlug, sha, puzzmoFile, description, repoURL, iconSVG, helpMD },
|
|
183
188
|
"upload init",
|
|
184
189
|
verbose,
|
|
185
190
|
)) as InitResponse
|
|
@@ -204,13 +209,14 @@ export const uploadFiles = async (
|
|
|
204
209
|
// Step 3: Complete
|
|
205
210
|
const complete = (await jsonPost(`${apiURL}/cliUpload/${init.sessionID}/complete`, token, {}, "upload complete", verbose)) as Omit<
|
|
206
211
|
CompleteResponse,
|
|
207
|
-
"integrationsChanged" | "iconChanged" | "gameURL" | "versionsURL"
|
|
212
|
+
"integrationsChanged" | "iconChanged" | "helpChanged" | "gameURL" | "versionsURL"
|
|
208
213
|
>
|
|
209
214
|
if (verbose) console.log(` Assets base: ${complete.assetsBase}`)
|
|
210
215
|
return {
|
|
211
216
|
...complete,
|
|
212
217
|
integrationsChanged: !!init.integrationsChanged,
|
|
213
218
|
iconChanged: !!init.iconChanged,
|
|
219
|
+
helpChanged: !!init.helpChanged,
|
|
214
220
|
gameURL: init.gameURL ?? null,
|
|
215
221
|
versionsURL: init.versionsURL ?? null,
|
|
216
222
|
}
|
|
@@ -27,6 +27,8 @@ export type DiscoveredGame = {
|
|
|
27
27
|
distDir: string
|
|
28
28
|
/** Absolute path to the icon SVG named by `game.iconPath`, or null when the file sets no icon */
|
|
29
29
|
iconPath: string | null
|
|
30
|
+
/** Absolute path to the help Markdown named by `game.helpPath`, or null when the file sets no help */
|
|
31
|
+
helpPath: string | null
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/** A puzzmo.json that was found but could not be used (invalid JSON, schema errors, missing dist) */
|
|
@@ -46,13 +48,16 @@ export type DiscoveryResult = {
|
|
|
46
48
|
export type DiscoverOptions = {
|
|
47
49
|
/** Require each game to have a non-empty dist folder (default true). Set false for commands that run before a build. */
|
|
48
50
|
requireDist?: boolean
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Require `game.iconPath` and `game.helpPath` to point at files (default true). Set false for commands that only read puzzmo.json
|
|
53
|
+
* metadata.
|
|
54
|
+
*/
|
|
55
|
+
requireLinkedFiles?: boolean
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
/** Walks `rootDir` looking for puzzmo.json files, validates each, and resolves their dist directory */
|
|
54
59
|
export const discoverGames = async (rootDir: string, options: DiscoverOptions = {}): Promise<DiscoveryResult> => {
|
|
55
|
-
const { requireDist = true,
|
|
60
|
+
const { requireDist = true, requireLinkedFiles = true } = options
|
|
56
61
|
const root = path.resolve(rootDir)
|
|
57
62
|
const puzzmoJsonPaths = findPuzzmoJsonFiles(root)
|
|
58
63
|
|
|
@@ -80,11 +85,15 @@ export const discoverGames = async (rootDir: string, options: DiscoverOptions =
|
|
|
80
85
|
const puzzmoJsonDir = path.dirname(puzzmoJsonPath)
|
|
81
86
|
const distDir = resolveDistDir(puzzmoFile, puzzmoJsonDir, root)
|
|
82
87
|
|
|
83
|
-
// The icon
|
|
88
|
+
// The icon and help are checked here rather than at upload time so `validate` catches a stale path too.
|
|
84
89
|
const iconPath = puzzmoFile.game.iconPath ? path.resolve(puzzmoJsonDir, puzzmoFile.game.iconPath) : null
|
|
85
|
-
if (
|
|
90
|
+
if (requireLinkedFiles && iconPath && !isFile(iconPath))
|
|
86
91
|
fileErrors.push(`Icon file not found for ${puzzmoFile.game.slug}: "${puzzmoFile.game.iconPath}" (${iconPath}) does not exist.`)
|
|
87
92
|
|
|
93
|
+
const helpPath = puzzmoFile.game.helpPath ? path.resolve(puzzmoJsonDir, puzzmoFile.game.helpPath) : null
|
|
94
|
+
if (requireLinkedFiles && helpPath && !isFile(helpPath))
|
|
95
|
+
fileErrors.push(`Help file not found for ${puzzmoFile.game.slug}: "${puzzmoFile.game.helpPath}" (${helpPath}) does not exist.`)
|
|
96
|
+
|
|
88
97
|
if (requireDist) {
|
|
89
98
|
if (!distDir) {
|
|
90
99
|
// output.dir set but missing usually means "not built yet", which the generic message hides.
|
|
@@ -104,7 +113,7 @@ export const discoverGames = async (rootDir: string, options: DiscoverOptions =
|
|
|
104
113
|
continue
|
|
105
114
|
}
|
|
106
115
|
|
|
107
|
-
games.push({ puzzmoJsonPath, puzzmoJsonDir, puzzmoFile, distDir: distDir ?? "", iconPath })
|
|
116
|
+
games.push({ puzzmoJsonPath, puzzmoJsonDir, puzzmoFile, distDir: distDir ?? "", iconPath, helpPath })
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
return { games, errors }
|