@bitmagic/asset-core 0.2.7-dev.10 → 0.2.7-dev.11
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/judge-prompt.d.ts +19 -1
- package/dist/judge-prompt.d.ts.map +1 -1
- package/dist/judge-prompt.js +33 -1
- package/dist/judge-prompt.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export { fetchContentLength } from './http.js';
|
|
|
25
25
|
export { PIXAR_VOXEL_STYLE, MAX_COVER_DESIGN_CHARS, buildCoverArtPrompt } from './cover-prompt.js';
|
|
26
26
|
export { JUDGE_DIMENSIONS, judgeScorecardSchema } from './judge-scorecard.js';
|
|
27
27
|
export type { JudgeDimension, JudgeScorecard } from './judge-scorecard.js';
|
|
28
|
-
export { JUDGE_GENRE_HINTS, JUDGE_RUBRIC, MAX_JUDGE_DESIGN_CHARS, MAX_JUDGE_SCENE_FACTS_CHARS, MAX_JUDGE_VERIFY_CHARS, buildJudgeRubric, } from './judge-prompt.js';
|
|
28
|
+
export { JUDGE_GENRE_HINTS, JUDGE_MOBILE_HINT, JUDGE_RUBRIC, MAX_JUDGE_DESIGN_CHARS, MAX_JUDGE_SCENE_FACTS_CHARS, MAX_JUDGE_VERIFY_CHARS, buildJudgeRubric, } from './judge-prompt.js';
|
|
29
29
|
export type { JudgeRubricInput } from './judge-prompt.js';
|
|
30
30
|
export { TERMINAL_FAILURE_CODES, TERMINAL_FAILURE_VERSION, buildTerminalFailure, isTerminalFailureCode, legacyErrorTypeFor, parseTerminalFailure, } from './terminal-failure.js';
|
|
31
31
|
export type { BuildTerminalFailureInput, LegacyErrorType, TerminalFailure, TerminalFailureCode, TerminalFailureDetail, } from './terminal-failure.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 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AAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACvG,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAM1D,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export { generateAnimationAsset, animationParamsSchema, getConfiguredAnimationMo
|
|
|
13
13
|
export { fetchContentLength } from './http.js';
|
|
14
14
|
export { PIXAR_VOXEL_STYLE, MAX_COVER_DESIGN_CHARS, buildCoverArtPrompt } from './cover-prompt.js';
|
|
15
15
|
export { JUDGE_DIMENSIONS, judgeScorecardSchema } from './judge-scorecard.js';
|
|
16
|
-
export { JUDGE_GENRE_HINTS, JUDGE_RUBRIC, MAX_JUDGE_DESIGN_CHARS, MAX_JUDGE_SCENE_FACTS_CHARS, MAX_JUDGE_VERIFY_CHARS, buildJudgeRubric, } from './judge-prompt.js';
|
|
16
|
+
export { JUDGE_GENRE_HINTS, JUDGE_MOBILE_HINT, JUDGE_RUBRIC, MAX_JUDGE_DESIGN_CHARS, MAX_JUDGE_SCENE_FACTS_CHARS, MAX_JUDGE_VERIFY_CHARS, buildJudgeRubric, } from './judge-prompt.js';
|
|
17
17
|
// The agent↔client terminal-failure contract. Also published as the
|
|
18
18
|
// `@bitmagic/asset-core/terminal-failure` subpath: this barrel eagerly pulls in
|
|
19
19
|
// the generators (and therefore zod, the forger client, and node http helpers),
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEnF,OAAO,EAAE,iBAAiB,EAAE,qBA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BAAiB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEnF,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEvG,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAG3B,oEAAoE;AACpE,gFAAgF;AAChF,gFAAgF;AAChF,oEAAoE;AACpE,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC"}
|
package/dist/judge-prompt.d.ts
CHANGED
|
@@ -21,6 +21,19 @@ export declare const MAX_JUDGE_SCENE_FACTS_CHARS = 2500;
|
|
|
21
21
|
* not gameplay.
|
|
22
22
|
*/
|
|
23
23
|
export declare const JUDGE_RUBRIC = "Score each dimension from 1 to 10:\n\n- visual-quality: Does the frame look like a finished game? 3 = flat default\n materials, untextured primitives, harsh unshadowed lighting. 8 = cohesive\n palette, deliberate lighting, materials and shapes that read as one art style.\n- readability: Could a new player tell from this frame alone what to do and\n where to go? 3 = player, goals and hazards blend into the background. 8 = the\n player character, the route and the interactive elements pop at a glance.\n- design-fidelity: Does the frame match the game the design document describes?\n 3 = generic scene that could be any game. 8 = the described setting, mood and\n core mechanic are recognizably on screen.\n- polish: 3 = placeholder blocks, floating or intersecting props, empty default\n skybox, raw default HUD. 8 = grounded objects, dressed edges of the world,\n HUD that belongs to this game.";
|
|
24
|
+
/**
|
|
25
|
+
* What changes when the frame is a phone screenshot rather than a desktop one.
|
|
26
|
+
*
|
|
27
|
+
* It adds no dimension — the scorecard schema is fixed (judge-scorecard.ts) and a fifth score
|
|
28
|
+
* would not survive the wire contract. What it does is re-point the EXISTING dimensions at a
|
|
29
|
+
* screen held in a hand: `readability` becomes "can a thumb reach this and can an eye read it at
|
|
30
|
+
* this size", and `visual-quality`/`polish` become "what detail actually survives here".
|
|
31
|
+
*
|
|
32
|
+
* The last paragraph is the load-bearing one. Without it a vision model reliably reports the
|
|
33
|
+
* touch controls themselves as clutter and the missing key hints as a defect, which is exactly
|
|
34
|
+
* backwards — those controls are the mobile build working.
|
|
35
|
+
*/
|
|
36
|
+
export declare const JUDGE_MOBILE_HINT = "This frame is a PHONE screen, captured at the phone's own\nresolution with the game's touch controls live on top of it. Judge it as something held in one or\ntwo hands \u2014 the same dimensions, read differently:\n\n- readability: are the touch controls (joystick, action buttons) actually visible against the\n scene, and big enough to hit with a thumb? Is the HUD legible at THIS size, not merely present?\n Is anything the player must read or press sitting where a hand covers it, or jammed into the\n very edge of the screen?\n- visual-quality and polish: grade the detail that survives at this resolution. Detail too small\n to make out here is not detail the player gets.\n- Judge the framing this aspect ratio gives: does the camera show enough of the world ahead of\n the player to actually play, or is the important part cropped away?\n\nDo not penalise missing desktop affordances \u2014 key hints, mouse or crosshair cues and hover states\nbelong to the other platform. Do not report the touch controls themselves as clutter unless they\ncover something the player needs to see.";
|
|
24
37
|
/**
|
|
25
38
|
* Genre-specific bullets, keyed loosely on the engine's mechanic recipe names
|
|
26
39
|
* (mechanic-platformer.md and friends). Deliberately short: these steer the
|
|
@@ -33,6 +46,11 @@ export interface JudgeRubricInput {
|
|
|
33
46
|
designText: string;
|
|
34
47
|
/** Optional genre key; unknown keys are ignored. */
|
|
35
48
|
genre?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Which platform's frame is being judged. 'mobile' adds JUDGE_MOBILE_HINT; anything else, and
|
|
51
|
+
* absence, compose exactly the rubric that was composed before this existed.
|
|
52
|
+
*/
|
|
53
|
+
platform?: 'desktop' | 'mobile';
|
|
36
54
|
/** One-paragraph verify summary: run state plus a console tail. */
|
|
37
55
|
verifySummary?: string;
|
|
38
56
|
/**
|
|
@@ -49,5 +67,5 @@ export interface JudgeRubricInput {
|
|
|
49
67
|
* the text part alongside the screenshot(s); the server prepends its fixed
|
|
50
68
|
* judging instructions and appends the JSON output directive.
|
|
51
69
|
*/
|
|
52
|
-
export declare function buildJudgeRubric({ designText, genre, verifySummary, sceneFacts }: JudgeRubricInput): string;
|
|
70
|
+
export declare function buildJudgeRubric({ designText, genre, platform, verifySummary, sceneFacts, }: JudgeRubricInput): string;
|
|
53
71
|
//# sourceMappingURL=judge-prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"judge-prompt.d.ts","sourceRoot":"","sources":["../src/judge-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,yEAAyE;AACzE,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,4EAA4E;AAC5E,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,yDAAyD;AACzD,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,i5BAaQ,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,i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GAAG,MAAM,CAuC3B"}
|
package/dist/judge-prompt.js
CHANGED
|
@@ -35,6 +35,34 @@ export const JUDGE_RUBRIC = `Score each dimension from 1 to 10:
|
|
|
35
35
|
- polish: 3 = placeholder blocks, floating or intersecting props, empty default
|
|
36
36
|
skybox, raw default HUD. 8 = grounded objects, dressed edges of the world,
|
|
37
37
|
HUD that belongs to this game.`;
|
|
38
|
+
/**
|
|
39
|
+
* What changes when the frame is a phone screenshot rather than a desktop one.
|
|
40
|
+
*
|
|
41
|
+
* It adds no dimension — the scorecard schema is fixed (judge-scorecard.ts) and a fifth score
|
|
42
|
+
* would not survive the wire contract. What it does is re-point the EXISTING dimensions at a
|
|
43
|
+
* screen held in a hand: `readability` becomes "can a thumb reach this and can an eye read it at
|
|
44
|
+
* this size", and `visual-quality`/`polish` become "what detail actually survives here".
|
|
45
|
+
*
|
|
46
|
+
* The last paragraph is the load-bearing one. Without it a vision model reliably reports the
|
|
47
|
+
* touch controls themselves as clutter and the missing key hints as a defect, which is exactly
|
|
48
|
+
* backwards — those controls are the mobile build working.
|
|
49
|
+
*/
|
|
50
|
+
export const JUDGE_MOBILE_HINT = `This frame is a PHONE screen, captured at the phone's own
|
|
51
|
+
resolution with the game's touch controls live on top of it. Judge it as something held in one or
|
|
52
|
+
two hands — the same dimensions, read differently:
|
|
53
|
+
|
|
54
|
+
- readability: are the touch controls (joystick, action buttons) actually visible against the
|
|
55
|
+
scene, and big enough to hit with a thumb? Is the HUD legible at THIS size, not merely present?
|
|
56
|
+
Is anything the player must read or press sitting where a hand covers it, or jammed into the
|
|
57
|
+
very edge of the screen?
|
|
58
|
+
- visual-quality and polish: grade the detail that survives at this resolution. Detail too small
|
|
59
|
+
to make out here is not detail the player gets.
|
|
60
|
+
- Judge the framing this aspect ratio gives: does the camera show enough of the world ahead of
|
|
61
|
+
the player to actually play, or is the important part cropped away?
|
|
62
|
+
|
|
63
|
+
Do not penalise missing desktop affordances — key hints, mouse or crosshair cues and hover states
|
|
64
|
+
belong to the other platform. Do not report the touch controls themselves as clutter unless they
|
|
65
|
+
cover something the player needs to see.`;
|
|
38
66
|
/**
|
|
39
67
|
* Genre-specific bullets, keyed loosely on the engine's mechanic recipe names
|
|
40
68
|
* (mechanic-platformer.md and friends). Deliberately short: these steer the
|
|
@@ -70,8 +98,12 @@ function excerpt(text, maxChars) {
|
|
|
70
98
|
* the text part alongside the screenshot(s); the server prepends its fixed
|
|
71
99
|
* judging instructions and appends the JSON output directive.
|
|
72
100
|
*/
|
|
73
|
-
export function buildJudgeRubric({ designText, genre, verifySummary, sceneFacts }) {
|
|
101
|
+
export function buildJudgeRubric({ designText, genre, platform, verifySummary, sceneFacts, }) {
|
|
74
102
|
const sections = [JUDGE_RUBRIC];
|
|
103
|
+
// Immediately after the rubric it modifies, and before the genre hints: a small model weights
|
|
104
|
+
// early context most, and "this is a phone" changes how every bullet above should be read.
|
|
105
|
+
if (platform === 'mobile')
|
|
106
|
+
sections.push(JUDGE_MOBILE_HINT);
|
|
75
107
|
const genreKey = genre?.trim().toLowerCase() ?? '';
|
|
76
108
|
const genreHints = JUDGE_GENRE_HINTS[genreKey];
|
|
77
109
|
if (genreHints) {
|
package/dist/judge-prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"judge-prompt.js","sourceRoot":"","sources":["../src/judge-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,yEAAyE;AACzE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,yDAAyD;AACzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;iCAaK,CAAC;AAElC;;;;;GAKG;AACH,MAAM,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