vibedgames 0.6.3 → 0.7.0
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/README.md +14 -9
- package/dist/THIRD_PARTY_NOTICES.txt +383 -0
- package/dist/chunk-2GL2WJZX.js +172 -0
- package/dist/chunk-2QBYTIMH.js +511 -0
- package/dist/chunk-34AHIMX7.js +466 -0
- package/dist/chunk-6FZPPUQH.js +107 -0
- package/dist/chunk-BVVYDSFJ.js +99 -0
- package/dist/chunk-CAKBGDCY.js +47 -0
- package/dist/chunk-CBKOPVU6.js +1780 -0
- package/dist/chunk-CU7UY5YJ.js +1108 -0
- package/dist/chunk-CZPKN32Z.js +257 -0
- package/dist/chunk-DHEXGWJY.js +111 -0
- package/dist/chunk-FL6IFBUF.js +22 -0
- package/dist/chunk-FLUXEHMU.js +1360 -0
- package/dist/chunk-FNYBZNW2.js +165 -0
- package/dist/chunk-G5FRIFA3.js +22 -0
- package/dist/chunk-HCMTSR7E.js +69 -0
- package/dist/chunk-HKA5LBYW.js +159 -0
- package/dist/chunk-I6O4HIDY.js +1063 -0
- package/dist/chunk-J6PKNPI2.js +26 -0
- package/dist/chunk-JT2AU24K.js +759 -0
- package/dist/chunk-MBXCVCC4.js +478 -0
- package/dist/chunk-MJQSHP3Y.js +415 -0
- package/dist/chunk-MYFLYNPO.js +68 -0
- package/dist/chunk-PEUP4MZR.js +59 -0
- package/dist/chunk-PHEDW6C7.js +32 -0
- package/dist/chunk-PQDBCZRT.js +2017 -0
- package/dist/chunk-QGEITHUP.js +395 -0
- package/dist/chunk-QIVCBUYD.js +273 -0
- package/dist/chunk-RYFO3ZPO.js +71 -0
- package/dist/chunk-RZ4DIJQW.js +68 -0
- package/dist/chunk-SAANBZ25.js +118 -0
- package/dist/chunk-VFFOT7KD.js +2980 -0
- package/dist/chunk-Y552BNFZ.js +41 -0
- package/dist/chunk-Z4Z24FWO.js +39 -0
- package/dist/chunk-ZI6PKVXG.js +64 -0
- package/dist/chunk-ZYCSYJWX.js +87 -0
- package/dist/index.js +67 -60
- package/package.json +13 -16
- package/templates/none/_gitignore +3 -0
- package/templates/none/index.html +29 -0
- package/templates/none/package.json +16 -0
- package/templates/none/src/main.ts +16 -0
- package/templates/none/tsconfig.json +18 -0
- package/templates/none/vite.config.ts +8 -0
- package/templates/phaser/_gitignore +3 -0
- package/templates/phaser/index.html +24 -0
- package/templates/phaser/package.json +19 -0
- package/templates/phaser/src/main.ts +16 -0
- package/templates/phaser/src/scenes/game-scene.ts +65 -0
- package/templates/phaser/tsconfig.json +18 -0
- package/templates/phaser/vite.config.ts +8 -0
- package/templates/react-r3f/_gitignore +3 -0
- package/templates/react-r3f/index.html +24 -0
- package/templates/react-r3f/package.json +27 -0
- package/templates/react-r3f/src/app.tsx +33 -0
- package/templates/react-r3f/src/main.tsx +15 -0
- package/templates/react-r3f/tsconfig.json +19 -0
- package/templates/react-r3f/vite.config.ts +10 -0
- package/templates/threejs/_gitignore +3 -0
- package/templates/threejs/index.html +36 -0
- package/templates/threejs/package.json +20 -0
- package/templates/threejs/src/main.ts +44 -0
- package/templates/threejs/tsconfig.json +18 -0
- package/templates/threejs/vite.config.ts +8 -0
- package/dist/commands/completions.d.ts +0 -7
- package/dist/commands/completions.js +0 -145
- package/dist/commands/credits.d.ts +0 -10
- package/dist/commands/credits.js +0 -136
- package/dist/commands/deploy.d.ts +0 -26
- package/dist/commands/deploy.js +0 -257
- package/dist/commands/factory.d.ts +0 -3
- package/dist/commands/factory.js +0 -73
- package/dist/commands/fork.d.ts +0 -29
- package/dist/commands/fork.js +0 -124
- package/dist/commands/generate.d.ts +0 -1
- package/dist/commands/generate.js +0 -565
- package/dist/commands/init.d.ts +0 -20
- package/dist/commands/init.js +0 -105
- package/dist/commands/login.d.ts +0 -1
- package/dist/commands/login.js +0 -45
- package/dist/commands/logout.d.ts +0 -1
- package/dist/commands/logout.js +0 -13
- package/dist/commands/new.d.ts +0 -26
- package/dist/commands/new.js +0 -318
- package/dist/commands/playtest-run.d.ts +0 -66
- package/dist/commands/playtest-run.js +0 -268
- package/dist/commands/playtest.d.ts +0 -76
- package/dist/commands/playtest.js +0 -372
- package/dist/commands/update.d.ts +0 -13
- package/dist/commands/update.js +0 -82
- package/dist/commands/whoami.d.ts +0 -10
- package/dist/commands/whoami.js +0 -44
- package/dist/index.d.ts +0 -2
- package/dist/lib/api.d.ts +0 -18
- package/dist/lib/api.js +0 -27
- package/dist/lib/archive.d.ts +0 -17
- package/dist/lib/archive.js +0 -228
- package/dist/lib/codex.d.ts +0 -117
- package/dist/lib/codex.js +0 -426
- package/dist/lib/config-file.d.ts +0 -16
- package/dist/lib/config-file.js +0 -54
- package/dist/lib/config.d.ts +0 -11
- package/dist/lib/config.js +0 -54
- package/dist/lib/manifest.d.ts +0 -10
- package/dist/lib/manifest.js +0 -91
- package/dist/lib/media-args.d.ts +0 -30
- package/dist/lib/media-args.js +0 -219
- package/dist/lib/media-download.d.ts +0 -37
- package/dist/lib/media-download.js +0 -268
- package/dist/lib/media-poll.d.ts +0 -18
- package/dist/lib/media-poll.js +0 -86
- package/dist/lib/media-upload.d.ts +0 -12
- package/dist/lib/media-upload.js +0 -52
- package/dist/lib/output.d.ts +0 -68
- package/dist/lib/output.js +0 -102
- package/dist/lib/package-manager.d.ts +0 -25
- package/dist/lib/package-manager.js +0 -77
- package/dist/lib/playtest/agent.d.ts +0 -192
- package/dist/lib/playtest/agent.js +0 -652
- package/dist/lib/playtest/browser.d.ts +0 -109
- package/dist/lib/playtest/browser.js +0 -219
- package/dist/lib/playtest/controls.d.ts +0 -47
- package/dist/lib/playtest/controls.js +0 -218
- package/dist/lib/playtest/errors.d.ts +0 -9
- package/dist/lib/playtest/errors.js +0 -12
- package/dist/lib/playtest/keys.d.ts +0 -41
- package/dist/lib/playtest/keys.js +0 -157
- package/dist/lib/playtest/run.d.ts +0 -195
- package/dist/lib/playtest/run.js +0 -409
- package/dist/lib/run.d.ts +0 -19
- package/dist/lib/run.js +0 -23
- package/dist/lib/strict-args.d.ts +0 -27
- package/dist/lib/strict-args.js +0 -78
- package/dist/lib/types.d.ts +0 -16
- package/dist/lib/types.js +0 -10
- package/dist/lib/update.d.ts +0 -10
- package/dist/lib/update.js +0 -110
- package/dist/lib/upload.d.ts +0 -16
- package/dist/lib/upload.js +0 -41
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Properly-formed held input for a game page: KeyboardEvent inits that carry
|
|
3
|
-
* `code`, `key` and `keyCode`, built here and dispatched by the in-page agent.
|
|
4
|
-
* A port of the playtest skill's `scripts/lib/harness.mjs`, which the
|
|
5
|
-
* scripted bot still uses; the two must agree on what a key looks like.
|
|
6
|
-
*
|
|
7
|
-
* NOT agent-browser's `keydown`/`keyup`: as of 0.34 those dispatch an event
|
|
8
|
-
* with an empty `code` and `keyCode: 0`, which engines that match on keyCode
|
|
9
|
-
* (Phaser among them) silently ignore. `press` populates the event correctly
|
|
10
|
-
* but is a discrete tap, so it can't express a hold. Dispatching the event
|
|
11
|
-
* ourselves is the only way to hold a properly-formed key. The tradeoff is
|
|
12
|
-
* `isTrusted: false`, which matters only for games that check it.
|
|
13
|
-
*/
|
|
14
|
-
import { HarnessError } from "./errors.js";
|
|
15
|
-
/** `code` → `keyCode`, for codes whose keyCode isn't derivable from the name. */
|
|
16
|
-
const NAMED_KEYS = new Map([
|
|
17
|
-
["AltLeft", 18],
|
|
18
|
-
["AltRight", 18],
|
|
19
|
-
["ArrowDown", 40],
|
|
20
|
-
["ArrowLeft", 37],
|
|
21
|
-
["ArrowRight", 39],
|
|
22
|
-
["ArrowUp", 38],
|
|
23
|
-
["Backquote", 192],
|
|
24
|
-
["Backslash", 220],
|
|
25
|
-
["Backspace", 8],
|
|
26
|
-
["BracketLeft", 219],
|
|
27
|
-
["BracketRight", 221],
|
|
28
|
-
["Comma", 188],
|
|
29
|
-
["ControlLeft", 17],
|
|
30
|
-
["ControlRight", 17],
|
|
31
|
-
["Delete", 46],
|
|
32
|
-
["Enter", 13],
|
|
33
|
-
["Equal", 187],
|
|
34
|
-
["Escape", 27],
|
|
35
|
-
["Minus", 189],
|
|
36
|
-
["Period", 190],
|
|
37
|
-
["Quote", 222],
|
|
38
|
-
["Semicolon", 186],
|
|
39
|
-
["ShiftLeft", 16],
|
|
40
|
-
["ShiftRight", 16],
|
|
41
|
-
["Slash", 191],
|
|
42
|
-
["Space", 32],
|
|
43
|
-
["Tab", 9],
|
|
44
|
-
]);
|
|
45
|
-
/** The `key` value a browser reports for a given `code`. */
|
|
46
|
-
const NAMED_VALUES = new Map([
|
|
47
|
-
["AltLeft", "Alt"],
|
|
48
|
-
["AltRight", "Alt"],
|
|
49
|
-
["Backquote", "`"],
|
|
50
|
-
["Backslash", "\\"],
|
|
51
|
-
["BracketLeft", "["],
|
|
52
|
-
["BracketRight", "]"],
|
|
53
|
-
["Comma", ","],
|
|
54
|
-
["ControlLeft", "Control"],
|
|
55
|
-
["ControlRight", "Control"],
|
|
56
|
-
["Equal", "="],
|
|
57
|
-
["Minus", "-"],
|
|
58
|
-
["Period", "."],
|
|
59
|
-
["Quote", "'"],
|
|
60
|
-
["Semicolon", ";"],
|
|
61
|
-
["ShiftLeft", "Shift"],
|
|
62
|
-
["ShiftRight", "Shift"],
|
|
63
|
-
["Slash", "/"],
|
|
64
|
-
["Space", " "],
|
|
65
|
-
]);
|
|
66
|
-
/**
|
|
67
|
-
* What a US keyboard reports as `key` while Shift is held. The keyCodes above
|
|
68
|
-
* already assume that layout, so this stays consistent with them.
|
|
69
|
-
*/
|
|
70
|
-
const SHIFTED = new Map([
|
|
71
|
-
["Backquote", "~"],
|
|
72
|
-
["Backslash", "|"],
|
|
73
|
-
["BracketLeft", "{"],
|
|
74
|
-
["BracketRight", "}"],
|
|
75
|
-
["Comma", "<"],
|
|
76
|
-
["Digit0", ")"],
|
|
77
|
-
["Digit1", "!"],
|
|
78
|
-
["Digit2", "@"],
|
|
79
|
-
["Digit3", "#"],
|
|
80
|
-
["Digit4", "$"],
|
|
81
|
-
["Digit5", "%"],
|
|
82
|
-
["Digit6", "^"],
|
|
83
|
-
["Digit7", "&"],
|
|
84
|
-
["Digit8", "*"],
|
|
85
|
-
["Digit9", "("],
|
|
86
|
-
["Equal", "+"],
|
|
87
|
-
["Minus", "_"],
|
|
88
|
-
["Period", ">"],
|
|
89
|
-
["Quote", '"'],
|
|
90
|
-
["Semicolon", ":"],
|
|
91
|
-
["Slash", "?"],
|
|
92
|
-
]);
|
|
93
|
-
export const SUPPORTED_KEYS_HINT = `Key<A-Z>, Digit<0-9>, and ${[...NAMED_KEYS.keys()].join(", ")}`;
|
|
94
|
-
const shiftedKey = (code, key) => {
|
|
95
|
-
if (/^Key[A-Z]$/u.test(code)) {
|
|
96
|
-
return key.toUpperCase();
|
|
97
|
-
}
|
|
98
|
-
return SHIFTED.get(code) ?? key;
|
|
99
|
-
};
|
|
100
|
-
/** `keyCode` and `key` for a KeyboardEvent `code`. Throws naming an unsupported code. */
|
|
101
|
-
export const keyFields = (code) => {
|
|
102
|
-
const letter = /^Key(?<letter>[A-Z])$/u.exec(code)?.groups?.letter;
|
|
103
|
-
if (letter) {
|
|
104
|
-
return [letter.codePointAt(0) ?? 0, letter.toLowerCase()];
|
|
105
|
-
}
|
|
106
|
-
const digit = /^Digit(?<digit>[0-9])$/u.exec(code)?.groups?.digit;
|
|
107
|
-
if (digit) {
|
|
108
|
-
return [48 + Number(digit), digit];
|
|
109
|
-
}
|
|
110
|
-
// A Map, not an object: `in` on an object accepts inherited names, so
|
|
111
|
-
// `toString` became a key with an undefined keyCode instead of a failure.
|
|
112
|
-
const keyCode = NAMED_KEYS.get(code);
|
|
113
|
-
if (keyCode !== undefined) {
|
|
114
|
-
return [keyCode, NAMED_VALUES.get(code) ?? code];
|
|
115
|
-
}
|
|
116
|
-
throw new HarnessError(`unsupported key code "${code}". Supported: ${SUPPORTED_KEYS_HINT}.`);
|
|
117
|
-
};
|
|
118
|
-
const modifiersOf = (codes) => ({
|
|
119
|
-
altKey: codes.some((c) => c === "AltLeft" || c === "AltRight"),
|
|
120
|
-
ctrlKey: codes.some((c) => c === "ControlLeft" || c === "ControlRight"),
|
|
121
|
-
shiftKey: codes.some((c) => c === "ShiftLeft" || c === "ShiftRight"),
|
|
122
|
-
});
|
|
123
|
-
/**
|
|
124
|
-
* Inits for a set of keys held together. Modifiers held in the same set show
|
|
125
|
-
* up as flags on their companions too, or `Shift+W` arrives as a plain `w`
|
|
126
|
-
* and the binding a scheme was written to exercise never fires.
|
|
127
|
-
*/
|
|
128
|
-
export const keyInitsFor = (codes) => {
|
|
129
|
-
const modifiers = modifiersOf(codes);
|
|
130
|
-
return codes.map((code) => {
|
|
131
|
-
const [keyCode, key] = keyFields(code);
|
|
132
|
-
return {
|
|
133
|
-
bubbles: true,
|
|
134
|
-
code,
|
|
135
|
-
key: modifiers.shiftKey ? shiftedKey(code, key) : key,
|
|
136
|
-
keyCode,
|
|
137
|
-
which: keyCode,
|
|
138
|
-
...modifiers,
|
|
139
|
-
};
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
/** Every supported code, each as if pressed alone — for inputs a reflex returns by code. */
|
|
143
|
-
export const keyTable = () => {
|
|
144
|
-
const codes = [
|
|
145
|
-
...Array.from({ length: 26 }, (_, i) => `Key${String.fromCodePoint(65 + i)}`),
|
|
146
|
-
...Array.from({ length: 10 }, (_, i) => `Digit${i}`),
|
|
147
|
-
...NAMED_KEYS.keys(),
|
|
148
|
-
];
|
|
149
|
-
const table = {};
|
|
150
|
-
for (const code of codes) {
|
|
151
|
-
const [init] = keyInitsFor([code]);
|
|
152
|
-
if (init) {
|
|
153
|
-
table[code] = init;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return table;
|
|
157
|
-
};
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orchestrates one model playtest: build the in-page agent's config from the
|
|
3
|
-
* control scheme, inject it, wait for it to finish, and turn its records into
|
|
4
|
-
* the report. The loop itself — decide, apply, measure, repeat, plus the
|
|
5
|
-
* per-frame reflex — runs inside the page (agent.ts); nothing here touches
|
|
6
|
-
* the game per tick.
|
|
7
|
-
*/
|
|
8
|
-
import type { JsonValue } from "../types.js";
|
|
9
|
-
import type { AgentConfig, AgentRecord } from "./agent.js";
|
|
10
|
-
import type { GameBrowser, Sample, Window } from "./browser.js";
|
|
11
|
-
import type { Controls } from "./controls.js";
|
|
12
|
-
export declare const THRESHOLDS: {
|
|
13
|
-
/** Mean `move` confidence below which the state is probably too thin to decide from. */
|
|
14
|
-
confidence: number;
|
|
15
|
-
displacement: number;
|
|
16
|
-
/**
|
|
17
|
-
* Frames a run must advance to count as alive — the bot's gate — capped by
|
|
18
|
-
* `minFps` × the run's wall time, because a model run can legitimately be
|
|
19
|
-
* a couple of seconds long where the scripted sweep is twelve.
|
|
20
|
-
*/
|
|
21
|
-
framesAdvanced: number;
|
|
22
|
-
/** Decisions a rested no-input option stays out of the question. */
|
|
23
|
-
idleRestTicks: number;
|
|
24
|
-
/** Idle decisions in a row (holding nothing, going nowhere) before the no-input option is rested. */
|
|
25
|
-
idleRun: number;
|
|
26
|
-
minFps: number;
|
|
27
|
-
/**
|
|
28
|
-
* A window counts as "didn't move" below this fraction of the displacement
|
|
29
|
-
* gate, so both scale together when a game measures in world units.
|
|
30
|
-
*/
|
|
31
|
-
motionEpsilonRatio: number;
|
|
32
|
-
/** Stuck ticks in a row after which the agent withdraws the move. */
|
|
33
|
-
stuckRun: number;
|
|
34
|
-
/**
|
|
35
|
-
* Stuck ticks in a row that fail the run. The decision after a withdrawal
|
|
36
|
-
* was already in flight when it landed, so `stuckRun + 1` is what hitting
|
|
37
|
-
* one wall costs; past that the alternatives went nowhere too.
|
|
38
|
-
*/
|
|
39
|
-
wedgedRun: number;
|
|
40
|
-
};
|
|
41
|
-
/** The input-alive gate for this scheme, in the game's own `player` units. */
|
|
42
|
-
export declare const displacementGate: (controls: Controls) => number;
|
|
43
|
-
/** A yes/no answer at or above this probability is acted on. */
|
|
44
|
-
export declare const ACTION_THRESHOLD = 0.5;
|
|
45
|
-
export interface RunOptions {
|
|
46
|
-
controls: Controls;
|
|
47
|
-
/** A move to hold for the whole run without calling the model, or null. */
|
|
48
|
-
pinMove: string | null;
|
|
49
|
-
expectProgress: boolean;
|
|
50
|
-
model: string;
|
|
51
|
-
tickMs: number;
|
|
52
|
-
ticks: number;
|
|
53
|
-
}
|
|
54
|
-
export interface Session {
|
|
55
|
-
decideUrl: string;
|
|
56
|
-
token: string;
|
|
57
|
-
}
|
|
58
|
-
/** The agent's config for this scheme: every key pre-resolved to a proper event init. */
|
|
59
|
-
export declare const agentConfig: (opts: RunOptions, session: Session) => AgentConfig;
|
|
60
|
-
/**
|
|
61
|
-
* The agent as page source: its own function text applied to the config and
|
|
62
|
-
* to the real-browser env. Both functions are self-contained by contract, so
|
|
63
|
-
* their `toString()` is all the page needs.
|
|
64
|
-
*/
|
|
65
|
-
export declare const agentSource: (config: AgentConfig) => string;
|
|
66
|
-
interface Metrics {
|
|
67
|
-
distance: number;
|
|
68
|
-
longestStuckRun: number;
|
|
69
|
-
maxTickDisplacement: number;
|
|
70
|
-
stuckRun: number;
|
|
71
|
-
stuckTicks: number;
|
|
72
|
-
tickOfFirstScore: number | null;
|
|
73
|
-
}
|
|
74
|
-
declare const timelineEntry: (record: AgentRecord, progressed: boolean, stuck: boolean) => {
|
|
75
|
-
actionProbabilities: Record<string, number>;
|
|
76
|
-
actions: string[];
|
|
77
|
-
confidence: number | null;
|
|
78
|
-
decisionMs: number;
|
|
79
|
-
frames: number;
|
|
80
|
-
move: string;
|
|
81
|
-
path: number;
|
|
82
|
-
peak: number;
|
|
83
|
-
progress: number | null;
|
|
84
|
-
progressed: boolean;
|
|
85
|
-
reflexFrames: number;
|
|
86
|
-
scoreDelta: number;
|
|
87
|
-
stuck: boolean;
|
|
88
|
-
tick: number;
|
|
89
|
-
};
|
|
90
|
-
type TimelineEntry = ReturnType<typeof timelineEntry>;
|
|
91
|
-
export interface RunResult {
|
|
92
|
-
completedAtTick: number | null;
|
|
93
|
-
lastWindow: Window | null;
|
|
94
|
-
metrics: Metrics;
|
|
95
|
-
timeline: TimelineEntry[];
|
|
96
|
-
usage: {
|
|
97
|
-
calls: number;
|
|
98
|
-
inputTokens: number;
|
|
99
|
-
maxDecisionMs: number;
|
|
100
|
-
outputTokens: number;
|
|
101
|
-
totalDecisionMs: number;
|
|
102
|
-
};
|
|
103
|
-
wallMs: number;
|
|
104
|
-
}
|
|
105
|
-
/** The agent's records, folded into metrics and a timeline. */
|
|
106
|
-
export declare const resultFromAgent: (published: JsonValue, epsilon?: number) => RunResult;
|
|
107
|
-
/** Inject the agent, wait for it to finish, and read its result. */
|
|
108
|
-
export declare const runInPage: (browser: GameBrowser, opts: RunOptions, session: Session) => Promise<RunResult>;
|
|
109
|
-
export interface ReportInputs {
|
|
110
|
-
before: Sample;
|
|
111
|
-
consoleErrors: string[];
|
|
112
|
-
gpu: {
|
|
113
|
-
renderer: string | null;
|
|
114
|
-
softwareRendered: boolean | null;
|
|
115
|
-
vendor: string | null;
|
|
116
|
-
};
|
|
117
|
-
pageErrors: JsonValue[];
|
|
118
|
-
run: RunResult;
|
|
119
|
-
seed: number;
|
|
120
|
-
seedApplied: string;
|
|
121
|
-
target: string;
|
|
122
|
-
}
|
|
123
|
-
export declare const buildReport: (opts: RunOptions, input: ReportInputs) => {
|
|
124
|
-
complete: boolean;
|
|
125
|
-
completedAtTick: number | null;
|
|
126
|
-
consoleErrors: string[];
|
|
127
|
-
decisions: {
|
|
128
|
-
actions: Record<string, number>;
|
|
129
|
-
meanConfidence: number | null;
|
|
130
|
-
moves: Record<string, number>;
|
|
131
|
-
progress: {
|
|
132
|
-
first: number;
|
|
133
|
-
last: number;
|
|
134
|
-
max: number;
|
|
135
|
-
mean: number;
|
|
136
|
-
} | null;
|
|
137
|
-
reflexFrames: number;
|
|
138
|
-
};
|
|
139
|
-
decisionsPerSecond: number | null;
|
|
140
|
-
distanceTravelled: number;
|
|
141
|
-
framesAdvanced: number;
|
|
142
|
-
goal: string;
|
|
143
|
-
gpu: {
|
|
144
|
-
renderer: string | null;
|
|
145
|
-
softwareRendered: boolean | null;
|
|
146
|
-
vendor: string | null;
|
|
147
|
-
};
|
|
148
|
-
longestStuckRun: number;
|
|
149
|
-
maxTickDisplacement: number;
|
|
150
|
-
minDisplacement: number;
|
|
151
|
-
model: {
|
|
152
|
-
calls: number;
|
|
153
|
-
id: string;
|
|
154
|
-
inputTokens: number;
|
|
155
|
-
maxDecisionMs: number;
|
|
156
|
-
meanDecisionMs: number | null;
|
|
157
|
-
outputTokens: number;
|
|
158
|
-
};
|
|
159
|
-
pageErrors: JsonValue[];
|
|
160
|
-
scoreAfter: number;
|
|
161
|
-
scoreBefore: number;
|
|
162
|
-
seed: number;
|
|
163
|
-
seedApplied: string;
|
|
164
|
-
stuckTicks: number;
|
|
165
|
-
target: string;
|
|
166
|
-
tickMs: number;
|
|
167
|
-
tickOfFirstScore: number | null;
|
|
168
|
-
ticks: number;
|
|
169
|
-
ticksRun: number;
|
|
170
|
-
timeline: {
|
|
171
|
-
actionProbabilities: Record<string, number>;
|
|
172
|
-
actions: string[];
|
|
173
|
-
confidence: number | null;
|
|
174
|
-
decisionMs: number;
|
|
175
|
-
frames: number;
|
|
176
|
-
move: string;
|
|
177
|
-
path: number;
|
|
178
|
-
peak: number;
|
|
179
|
-
progress: number | null;
|
|
180
|
-
progressed: boolean;
|
|
181
|
-
reflexFrames: number;
|
|
182
|
-
scoreDelta: number;
|
|
183
|
-
stuck: boolean;
|
|
184
|
-
tick: number;
|
|
185
|
-
}[];
|
|
186
|
-
wallMs: number;
|
|
187
|
-
};
|
|
188
|
-
export type Report = ReturnType<typeof buildReport>;
|
|
189
|
-
export interface Verdict {
|
|
190
|
-
failures: string[];
|
|
191
|
-
warnings: string[];
|
|
192
|
-
}
|
|
193
|
-
/** Failures fail the run; warnings are findings a reader should weigh. */
|
|
194
|
-
export declare const verdict: (report: Report, opts: RunOptions) => Verdict;
|
|
195
|
-
export {};
|