ravensight-playtest 0.8.3 → 0.10.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 +280 -66
- package/addons/ravensight_driver/driver.gd +666 -21
- package/docs/ADAPTERS.md +11 -7
- package/docs/NATIVE_RUNNER.md +3 -1
- package/docs/godot-driver.md +127 -13
- package/package.json +8 -6
- package/src/api/client.js +4 -3
- package/src/cli.js +84 -25
- package/src/commands/check.js +30 -4
- package/src/commands/fakeCore.js +1 -0
- package/src/commands/hosted.js +41 -12
- package/src/commands/init.js +17 -1
- package/src/commands/run.js +209 -14
- package/src/commands/upload.js +6 -2
- package/src/commands/validate.js +1 -1
- package/src/commands/validateHosted.js +50 -5
- package/src/config.js +33 -2
- package/src/hosted/archivePreflight.js +7 -7
- package/src/hosted/buildUpload.js +89 -8
- package/src/hosted/recordedRun.js +141 -26
- package/src/hosted/status.js +19 -10
- package/src/run/actionSelector.js +14 -3
- package/src/run/aggregate.js +57 -3
- package/src/run/anygame/controlbook.js +179 -0
- package/src/run/anygame/genre.js +179 -0
- package/src/run/anygame/index.js +258 -0
- package/src/run/anygame/language.js +336 -0
- package/src/run/anygame/memory.js +330 -0
- package/src/run/anygame/shared-hashes.json +10 -0
- package/src/run/anygame/shared.js +24 -0
- package/src/run/anygame/sound.js +342 -0
- package/src/run/args.js +75 -8
- package/src/run/choiceCheck.js +312 -0
- package/src/run/context.js +254 -13
- package/src/run/drivers/godot-observation.js +93 -6
- package/src/run/drivers/godot.js +769 -46
- package/src/run/drivers/recording.js +24 -4
- package/src/run/drivers/web.js +1242 -77
- package/src/run/edgePass.js +731 -0
- package/src/run/fixLoop.js +5 -4
- package/src/run/focus.js +65 -0
- package/src/run/gamepad.js +108 -0
- package/src/run/godotEdgePass.js +235 -0
- package/src/run/godotTesterProbes.js +192 -0
- package/src/run/headings.js +21 -0
- package/src/run/honesty.js +544 -0
- package/src/run/inputs.js +256 -0
- package/src/run/marks.js +142 -0
- package/src/run/personaLoop.js +1000 -79
- package/src/run/phone.js +7 -0
- package/src/run/pixels.js +215 -0
- package/src/run/playClock.js +162 -0
- package/src/run/readiness.js +585 -0
- package/src/run/refusal.js +67 -0
- package/src/run/regions.js +119 -0
- package/src/run/report.js +14 -2
- package/src/run/reportChecks.js +472 -0
- package/src/run/resume.js +3 -2
- package/src/run/screenshots.js +161 -0
- package/src/run/strip.js +114 -0
- package/src/run/testerLedger.js +312 -0
- package/src/run/testerProbes.js +584 -0
- package/src/run/thinRun.js +102 -0
- package/src/run/timeFreeze.js +79 -0
- package/src/run/tools.js +454 -29
- package/src/runDefaults.js +24 -2
package/docs/ADAPTERS.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# Connect a game to Ravensight Playtester
|
|
2
2
|
|
|
3
|
+
**What can be playtested today:** web builds from any engine (`playwright_web`, on this machine or in the cloud) and Godot projects on this machine (`godot_driver`). Native builds (Unity, Unreal, desktop, iOS, Android) cannot be playtested today: the cloud accepts web builds only, and the native drivers below are experimental. Each needs a separate automation server that you run yourself and that Ravensight does not provide, and none has been tested against a real automation server. For a Unity game, build for the Web platform and playtest that web build.
|
|
4
|
+
|
|
3
5
|
Run the CLI on the machine that can access your build. Sign in, link the project with `ravensight-playtest init --game <gameId>`, and complete its expectations brief. `run` quotes the existing persona price before registration. Adapters share the same prepaid job, action limits, model budget, cancellation, reports and uploads.
|
|
4
6
|
|
|
5
7
|
| Adapter | Target | Validation |
|
|
6
8
|
| --- | --- | --- |
|
|
7
9
|
| `playwright_web` | Browser URL, including canvas/WebGL exports | Automated tests and live Jump Bunny gameplay |
|
|
8
10
|
| `godot_driver` | Godot project with the playtest addon | Existing addon protocol and runner tests |
|
|
9
|
-
| `desktop_driver` | Local W3C/Appium session configuration |
|
|
10
|
-
| `unity_driver`, `unreal_driver` | Desktop exports through that same W3C interface | Engine-neutral screen controls, not editor plugins;
|
|
11
|
-
| `android_driver`, `ios_driver` | Appium device/emulator/simulator configuration |
|
|
11
|
+
| `desktop_driver` | Local W3C/Appium session configuration | Experimental. Tested only against a stub; needs your own automation server |
|
|
12
|
+
| `unity_driver`, `unreal_driver` | Desktop exports through that same W3C interface | Experimental. Engine-neutral screen controls, not editor plugins; untested against a real automation server. For Unity, export a web build instead |
|
|
13
|
+
| `android_driver`, `ios_driver` | Appium device/emulator/simulator configuration | Experimental. Tested only against a stub; untested on a real automation server, device or simulator |
|
|
12
14
|
| `cli_stdio` | Developer-owned JSON-RPC bridge | Real child-process protocol test |
|
|
13
15
|
|
|
14
16
|
No adapter promises every game is autonomously solvable. Fast action games, unusual controls, anti-cheat, hardware access and protected platforms may require a game-specific bridge. Console tooling and authorization remain the developer's responsibility. The runner cannot bypass platform access restrictions.
|
|
@@ -20,13 +22,15 @@ ravensight-playtest run --driver playwright_web --build-url https://your-game.ex
|
|
|
20
22
|
ravensight-playtest run --driver godot_driver --godot-project ./your-game
|
|
21
23
|
```
|
|
22
24
|
|
|
23
|
-
`--controller freki` plays with Freki, the selecting playtester, when the server supports it. Screen interpretation proposes up to three actions and a separate selector chooses one. `--controller geri` plays with Geri, which chooses every action itself.
|
|
25
|
+
`--controller freki` plays with Freki, the selecting playtester, when the server supports it. Screen interpretation proposes up to three actions and a separate selector chooses one. `--controller geri` plays with Geri, which chooses every action itself. When Freki is unsure, its most likely candidate (or the first action proposed for that screen) is played and the run goes on. Provider credentials stay on Ravensight. A completed playtest report is evidence for human review, not proof that a game is bug-free.
|
|
26
|
+
|
|
27
|
+
## Desktop and mobile (experimental)
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
These drivers are not a supported way to playtest today. This section is the technical reference for anyone trying one; expect to adapt it, and tell us what you had to change.
|
|
26
30
|
|
|
27
|
-
Before anything else, `ravensight-playtest check --driver <name> --driver-config <file>` probes the automation server for free (status, a session with your capabilities, the app answering, the session closed), and `run` repeats that probe before it registers a paid native job. [NATIVE_RUNNER.md](NATIVE_RUNNER.md) is
|
|
31
|
+
Before anything else, `ravensight-playtest check --driver <name> --driver-config <file>` probes the automation server for free (status, a session with your capabilities, the app answering, the session closed), and `run` repeats that probe before it registers a paid native job. [NATIVE_RUNNER.md](NATIVE_RUNNER.md) is an untested, step by step iOS simulator starter with the expected `check` rows.
|
|
28
32
|
|
|
29
|
-
Install and configure an Appium-compatible driver for your platform
|
|
33
|
+
Ravensight does not provide, install or start the automation server. Install and configure an Appium-compatible driver for your platform yourself and start its server locally. Supply `ravensight-driver.json` with a loopback endpoint and capabilities appropriate to the installed driver:
|
|
30
34
|
|
|
31
35
|
```json
|
|
32
36
|
{
|
package/docs/NATIVE_RUNNER.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Native runner starter: an iOS simulator app
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
> **Experimental, not a supported path:** native builds cannot be playtested today. The cloud accepts web builds only, `ios_driver` needs an automation server you run yourself (Ravensight does not provide one), and it has not been tested against a real one. What works today: web builds from any engine (`playwright_web`) and Godot projects locally (`godot_driver`).
|
|
4
|
+
|
|
5
|
+
The smallest setup that should let a persona play a native or engine-exported iOS
|
|
4
6
|
game on a simulator through `ios_driver`. Each step ends with the
|
|
5
7
|
`ravensight-playtest check` rows you should see before moving on. `check` never
|
|
6
8
|
reserves units or starts a job, so you can run it as often as you like.
|
package/docs/godot-driver.md
CHANGED
|
@@ -201,10 +201,78 @@ A tap is one frame, which in a game that moves a character by `speed * delta`
|
|
|
201
201
|
is a pixel or two. Holds and waits are timed on the clock, divided by the game's
|
|
202
202
|
time scale, not counted in frames: a frame count depends on the display, and on
|
|
203
203
|
a 120 Hz Mac 120 frames was one game second. The persona's `key` tool therefore takes `hold_ms` (up to
|
|
204
|
-
5000) and `with_keys` (up to
|
|
205
|
-
|
|
206
|
-
later key was refused, so nothing stays held for the
|
|
207
|
-
that cannot hold keys refuses a hold as a driver error
|
|
204
|
+
5000) and `with_keys` (up to five more keys held at the same time: a diagonal,
|
|
205
|
+
or move, sprint and jump together). Every key that went down is released, in
|
|
206
|
+
reverse order, even when a later key was refused, so nothing stays held for the
|
|
207
|
+
rest of the run. A driver that cannot hold keys refuses a hold as a driver error
|
|
208
|
+
rather than tapping.
|
|
209
|
+
|
|
210
|
+
A key held past half a second echoes, as a keyboard's does: the addon sends it
|
|
211
|
+
again about thirty times a second with `echo` set (`key { repeat: true }`), on
|
|
212
|
+
ticks in lockstep and on the clock otherwise. A chord such as `Shift+Tab` is its
|
|
213
|
+
keys held together, and every key event says which modifiers are down. Key
|
|
214
|
+
names are the usual ones however they are capitalised: `F1` to `F24`, `Delete`,
|
|
215
|
+
`Home`, `End`, `PageUp`, `PageDown`, `numpad 4`, punctuation by name or as the
|
|
216
|
+
character.
|
|
217
|
+
|
|
218
|
+
## The pointer
|
|
219
|
+
|
|
220
|
+
`mouse { kind, x, y | node_path, button, double, dx, dy }` is one pointer event
|
|
221
|
+
(addon 1.4.0): `move`, `down`, `up` or `wheel`. A move carries the buttons that
|
|
222
|
+
are held, so the persona's tools are made of them:
|
|
223
|
+
|
|
224
|
+
| Tool | What the game receives |
|
|
225
|
+
| --- | --- |
|
|
226
|
+
| `click` with `button`, `double`, `hold_ms` | a right or middle click, a double click, or a press held for game time |
|
|
227
|
+
| `drag` (and `swipe`) | a press, moves across the screen in steps, a release: `_get_drag_data` drops, a hand drawn drag and a slider handle all work |
|
|
228
|
+
| `hover` | a move with no button, so `mouse_entered` and tooltips fire |
|
|
229
|
+
| `scroll` | one wheel button press and release per notch at the pointer, with Control, Shift or Alt when asked |
|
|
230
|
+
| `key` with `sequence` | presses and releases on the tick each `at_ms` falls on, overlapping holds included |
|
|
231
|
+
|
|
232
|
+
A named end (`from: "Army"`) is resolved against the last outline like a click
|
|
233
|
+
target and sent as the centre the outline prints. In lockstep every event is a
|
|
234
|
+
`step` event of type `mouse`, so a trace replays a drag move for move. There is
|
|
235
|
+
no `select`: a dropdown is opened and picked with clicks, a slider is dragged,
|
|
236
|
+
and the refusal is recorded as a limit of the runner.
|
|
237
|
+
|
|
238
|
+
## Dropdowns, sliders and tabs
|
|
239
|
+
|
|
240
|
+
`select{node_path, option | index | value}` (addon 1.5.0) chooses an option of
|
|
241
|
+
an `OptionButton`, an `ItemList`, a `TabBar` or a `TabContainer` by the text a
|
|
242
|
+
player reads (or its place), or sets a `Slider` or a `SpinBox` to a value
|
|
243
|
+
inside its range. The control shows the choice and sends the signal a pick or
|
|
244
|
+
a drag would (`item_selected`, `value_changed`, `drag_ended`). In lockstep it
|
|
245
|
+
is a step event (`{type: "select", ...}`), so it is in the trace and a replay
|
|
246
|
+
makes the same choice. An option the control does not have is refused with
|
|
247
|
+
the ones it has. The outline prints what is chosen and offered
|
|
248
|
+
(`selected="Normal" options=[Easy | Normal | Hard]`) and where a slider stands
|
|
249
|
+
(`value=50 (from 0 to 100)`). The persona's `select` tool is offered on
|
|
250
|
+
`godot_driver` when the project's addon is 1.5.0 or newer.
|
|
251
|
+
|
|
252
|
+
## The frame strip
|
|
253
|
+
|
|
254
|
+
While a held key, a held press or a timed sequence plays, the addon takes up
|
|
255
|
+
to four small frames (a quarter of the window each way): a lockstep `step`
|
|
256
|
+
takes `strip_at`, the ticks of the step they are due on, and `strip_new` to
|
|
257
|
+
start a new strip; a run on the wall clock calls `strip_begin` and
|
|
258
|
+
`strip_frame`. `strip_status` says how many were taken and whether the game
|
|
259
|
+
moved in them, and `screenshot{strip: true}` draws them in a row under the
|
|
260
|
+
picture, in one image, and forgets them. The frames read the screen and are no
|
|
261
|
+
part of the trace. When nothing moved no strip is drawn and the result says so.
|
|
262
|
+
|
|
263
|
+
## Edge behaviour checks
|
|
264
|
+
|
|
265
|
+
After play the runner makes the checks `playwright_web` makes, through the
|
|
266
|
+
addon (1.5.0), with no model call: `edge_focus{focused}` tells every node its
|
|
267
|
+
window lost focus or has it back (the desktop's real focus is left alone),
|
|
268
|
+
`window_size{width, height}` resizes the window and `edge_layout` lists the
|
|
269
|
+
controls a player presses that then lie outside it, the keys the session used
|
|
270
|
+
are pressed as fast as the game ticks, the game is left alone for five seconds
|
|
271
|
+
of game time, and when `user_files` shows the game wrote under `user://` it is
|
|
272
|
+
started a second time on that folder, without a window, to see that it comes
|
|
273
|
+
up and that the files are still there. The second start is only made on a
|
|
274
|
+
lockstep run, which has a save folder of its own. `--no-edge-pass` turns the
|
|
275
|
+
checks off.
|
|
208
276
|
|
|
209
277
|
## The game is paused between actions
|
|
210
278
|
|
|
@@ -237,7 +305,8 @@ After `ping`, the driver lets the game run ten frames, then reads its output.
|
|
|
237
305
|
A `Parse Error:`, a `Failed to load script ... with error`, a main scene that
|
|
238
306
|
failed to load, or no current scene at all fails the launch with an error that
|
|
239
307
|
starts `game_boot_failed:`. The run is completed as `failed` with that reason,
|
|
240
|
-
so it
|
|
308
|
+
so it settles as a failed run by the server's rules (with no AI time used, it
|
|
309
|
+
comes back in full), and a fix verify whose game did not boot is
|
|
241
310
|
reported "not verified, the game did not boot", never fixed. An ordinary
|
|
242
311
|
runtime `ERROR:` line does not fail the boot.
|
|
243
312
|
|
|
@@ -256,8 +325,8 @@ scripts: res://ravensight_stub.gd, res://main.gd
|
|
|
256
325
|
Window root
|
|
257
326
|
Node2D Main @(0,0) [groups=ravensight_state] {res://main.tscn} <res://main.gd>
|
|
258
327
|
CanvasLayer HUD
|
|
259
|
-
Label TrustLabel "Trust: 4"
|
|
260
|
-
Button BeginButton "Begin"
|
|
328
|
+
Label TrustLabel "Trust: 4" 120x24 centre(84,28)
|
|
329
|
+
Button BeginButton "Begin" 120x40 centre(660,420) [focus]
|
|
261
330
|
|
|
262
331
|
game state:
|
|
263
332
|
/root/Main: {"phase":"HEALING","trust":4}
|
|
@@ -267,9 +336,44 @@ That is what lets a finding say which scene and which script to open. The
|
|
|
267
336
|
driver's own autoload is filtered out of the snapshot, so its script path never
|
|
268
337
|
appears in that list.
|
|
269
338
|
|
|
270
|
-
Subtrees with nothing a player could see or press are dropped
|
|
271
|
-
capped at 12k characters
|
|
272
|
-
|
|
339
|
+
Subtrees with nothing a player could see or press are dropped and the outline is
|
|
340
|
+
capped at 12k characters.
|
|
341
|
+
|
|
342
|
+
The tree is read twelve levels deep (`DEFAULT_TREE_DEPTH`). Six cut a card grid
|
|
343
|
+
off at its container, so the cards and the labels inside them never reached the
|
|
344
|
+
persona. A branch the cut still leaves out is read on its own with
|
|
345
|
+
`get_state { root }` (up to `MAX_CUT_EXPANSIONS` per snapshot); past that the
|
|
346
|
+
line says `+N more`, as before.
|
|
347
|
+
|
|
348
|
+
Every Control with a size prints `WxH centre(x,y)`: its size, and the point a
|
|
349
|
+
click on it lands on, in the window pixels `click` takes (the addon's `center`,
|
|
350
|
+
which follows a stretched window; an older addon sends only `rect`, whose middle
|
|
351
|
+
is used). A container that holds one thing and nothing a player could read is
|
|
352
|
+
folded into the next line as a path, so a card twelve containers down costs one
|
|
353
|
+
line and its path can still be read off:
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
GridContainer UI/Screens/Picker/Margin/Column/Grid 1208x590 centre(640,389)
|
|
357
|
+
Button Card1 290x287 centre(487,238)
|
|
358
|
+
VBoxContainer Pad/Body/Header/Lines 270x76 centre(487,256)
|
|
359
|
+
Label Name "Duchy of Normandy" 270x22 centre(487,261)
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
A click target is a node path from `/root`, or, looked up in the last outline, a
|
|
363
|
+
node name, the end of a path, or the text a node shows when only one node has
|
|
364
|
+
it. Text on a label inside a card clicks the card: the nearest pressable node
|
|
365
|
+
above it. A target that names two nodes or none is refused before anything
|
|
366
|
+
reaches the game, as a driver error, so nothing downstream reads it as a broken
|
|
367
|
+
game.
|
|
368
|
+
|
|
369
|
+
`needsVision()` asks for a picture when the remaining outline is under 200
|
|
370
|
+
characters (the canvas drawn or 3D case), or when it holds something pressable
|
|
371
|
+
with no text on it or under it (an icon button, a map region). The picture a
|
|
372
|
+
model is shown is a JPEG (`screenshot { format: "jpeg", quality }`), because the
|
|
373
|
+
model proxy reserves a request by its bytes; saved evidence stays PNG. On a
|
|
374
|
+
screen played from the picture, `changed` also compares two small frames as
|
|
375
|
+
pixels, so a canvas drawn game is not read as stuck and a blinking cursor is not
|
|
376
|
+
read as a change.
|
|
273
377
|
|
|
274
378
|
Spec 07's `extensions/navigation.gd` (`nav_sample`, `nav_path`, `teleport`,
|
|
275
379
|
`raycast`) is **not** part of this addon: those methods exist for spec 06 level
|
|
@@ -278,6 +382,13 @@ probing, not for a persona run, and they can be added later through
|
|
|
278
382
|
extension method implemented here, because a persona that gets `-32012` needs to
|
|
279
383
|
know what it may press instead.
|
|
280
384
|
|
|
385
|
+
A Control with no text of its own carries a `label` when its author gave it a
|
|
386
|
+
`tooltip_text`, or an `accessibility_name` on an engine that has one (addon
|
|
387
|
+
1.4.0). It is sent apart from `text`, which is only ever what the screen shows.
|
|
388
|
+
The outline prints it as `label="Rouen"`, it counts as text for
|
|
389
|
+
`silentPressables()` (so a labelled map region no longer asks for a picture on
|
|
390
|
+
every turn), and a click target that names it resolves like visible text.
|
|
391
|
+
|
|
281
392
|
The author hook is unchanged from the spec: a node in the `ravensight_state`
|
|
282
393
|
group with a `_ravensight_state() -> Dictionary` method. Vectors become arrays,
|
|
283
394
|
recursion stops at 8 levels, each result is capped at 64 KB, and a hook that
|
|
@@ -296,9 +407,12 @@ So `--headless` is only useful for a game driven entirely by InputMap actions
|
|
|
296
407
|
that manages its own focus. `launch()` pushes a console entry saying so when it
|
|
297
408
|
detects a headless run, and the local CLI default stays windowed.
|
|
298
409
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
video
|
|
410
|
+
A run records this game's viewport by default when a window and FFmpeg are
|
|
411
|
+
there, and says in its summary where `session.mp4` is or why there is none;
|
|
412
|
+
`--no-record-video` turns it off. Recording is never consent to upload:
|
|
413
|
+
`--upload-video` is still what sends the video. Frames are JPEG, and a frame the
|
|
414
|
+
same as the last one (the game stands still while a persona thinks) is not
|
|
415
|
+
written again, so the frame budget covers a whole run. Audio capture is off. Godot samples up to ten frames per second,
|
|
302
416
|
records their actual timestamps, and uses optional local FFmpeg to create
|
|
303
417
|
`session.mp4`. Set `RAVENSIGHT_FFMPEG` to an existing executable when it is not
|
|
304
418
|
on PATH. No package or encoder is downloaded automatically.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ravensight-playtest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Local AI playtests and seeded game simulations with reports in Ravensight.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://ravensight.io/docs/#playtest",
|
|
@@ -37,18 +37,20 @@
|
|
|
37
37
|
"LICENSE",
|
|
38
38
|
"!src/**/*.test.js",
|
|
39
39
|
"!src/test-helpers",
|
|
40
|
-
"!src/run/__helpers__",
|
|
41
40
|
"!src/run/drivers/testing",
|
|
42
|
-
"!test"
|
|
41
|
+
"!test",
|
|
42
|
+
"!src/run/__helpers__",
|
|
43
|
+
"!src/run/__fixtures__",
|
|
44
|
+
"!src/run/__fixtures__"
|
|
43
45
|
],
|
|
44
46
|
"exports": {
|
|
45
47
|
".": "./src/api/index.js",
|
|
46
48
|
"./api": "./src/api/index.js"
|
|
47
49
|
},
|
|
48
50
|
"scripts": {
|
|
49
|
-
"test": "node --test --test-reporter=spec 'src/**/!(godot-real|web.e2e|web.containment.e2e|scaffold.godot|template3d.godot).test.js'",
|
|
50
|
-
"test:godot": "node --test --test-reporter=spec src/run/drivers/godot-real.test.js src/create/scaffold.godot.test.js src/create/template3d.godot.test.js",
|
|
51
|
-
"test:e2e": "node --test --test-reporter=spec src/run/drivers/web.e2e.test.js src/run/drivers/web.containment.e2e.test.js",
|
|
51
|
+
"test": "node --test --test-reporter=spec 'src/**/!(godot-real|godot-inputs.real|godot-replay.real|godot-tester.real|web.e2e|web.containment.e2e|web.inputs.e2e|web.honesty.e2e|web.followups.e2e|web.replay.e2e|web.anygame.e2e|web.tester.e2e|scaffold.godot|template3d.godot).test.js'",
|
|
52
|
+
"test:godot": "node scripts/gated-test.mjs RAVENSIGHT_RECORDING_E2E some -- --test --test-concurrency=1 --test-reporter=spec src/run/drivers/godot-real.test.js src/run/drivers/godot-inputs.real.test.js src/run/drivers/godot-replay.real.test.js src/run/drivers/godot-tester.real.test.js src/create/scaffold.godot.test.js src/create/template3d.godot.test.js",
|
|
53
|
+
"test:e2e": "node scripts/gated-test.mjs RAVENSIGHT_E2E all -- --test --test-reporter=spec src/run/drivers/web.e2e.test.js src/run/drivers/web.containment.e2e.test.js src/run/drivers/web.inputs.e2e.test.js src/run/drivers/web.honesty.e2e.test.js src/run/drivers/web.followups.e2e.test.js src/run/drivers/web.tester.e2e.test.js src/run/drivers/web.replay.e2e.test.js src/run/drivers/web.anygame.e2e.test.js",
|
|
52
54
|
"lint": "node scripts/no-dashes.mjs"
|
|
53
55
|
},
|
|
54
56
|
"dependencies": {
|
package/src/api/client.js
CHANGED
|
@@ -201,12 +201,13 @@ export function createClient(options = {}) {
|
|
|
201
201
|
const jobs = {
|
|
202
202
|
/**
|
|
203
203
|
* Price a job without charging. `runLength: 'long'` asks for the long
|
|
204
|
-
* persona run's price
|
|
205
|
-
*
|
|
204
|
+
* persona run's price and a tier length (`tier:<tier>:<minutes>`) for a
|
|
205
|
+
* run on a cloud tier's allowance; `standard` or nothing leaves
|
|
206
|
+
* `run_length` out, which the server reads as a standard run.
|
|
206
207
|
*/
|
|
207
208
|
estimate: (gameId, { modules = [], personas = [], runLength = null, simulation, controllers, driver, validate, feature, acceptance } = {}) =>
|
|
208
209
|
request('POST', `${gameBase(gameId)}/estimate`, {
|
|
209
|
-
body: { modules, personas, ...(controllers ? { controllers, driver } : {}), ...(runLength === '
|
|
210
|
+
body: { modules, personas, ...(controllers ? { controllers, driver } : {}), ...(typeof runLength === 'string' && runLength !== 'standard' ? { run_length: runLength } : {}), ...(simulation ? { simulation } : {}), ...(validate ? { validate } : {}), ...(feature ? { feature } : {}), ...(acceptance ? { acceptance: true } : {}) }
|
|
210
211
|
}).then(answer => answer.body),
|
|
211
212
|
|
|
212
213
|
/**
|
package/src/cli.js
CHANGED
|
@@ -52,30 +52,64 @@ async function loadRunner(name, exportName) {
|
|
|
52
52
|
*/
|
|
53
53
|
export const RUNNER_HELP = `
|
|
54
54
|
Run options (parsed by the runner, see src/run/args.js):
|
|
55
|
-
--personas <list> comma separated persona slugs, default one (
|
|
56
|
-
--driver <name> playwright_web, godot_driver
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
--
|
|
60
|
-
|
|
55
|
+
--personas <list> comma separated persona slugs, default one (fresh-eyes); "personas" lists them
|
|
56
|
+
--driver <name> playwright_web, godot_driver or cli_stdio. Experimental, untested against a real
|
|
57
|
+
automation server and needing one you run yourself: desktop_driver, unity_driver,
|
|
58
|
+
unreal_driver, android_driver, ios_driver. Native builds cannot be playtested today
|
|
59
|
+
--no-record-video do not keep a video. A playwright_web or godot_driver run records one on this
|
|
60
|
+
machine by default (session.webm or session.mp4 in the run folder; Godot needs
|
|
61
|
+
ffmpeg); nothing is uploaded unless --upload-video is passed
|
|
62
|
+
--record-video record with the upload limits (15 minutes, 200 MB); --upload-video implies it
|
|
63
|
+
--no-edge-pass skip the edge behaviour checks a playwright_web or godot_driver run makes
|
|
64
|
+
after play (focus loss and return, window resize, rapid input, a short idle,
|
|
65
|
+
a reload or a second start on the save) and the tester probes (fast clicks,
|
|
66
|
+
untried buttons, odd text, opposite keys); they ask no model and cost nothing
|
|
67
|
+
--phone playwright_web only: play on a phone sized screen (390 by 844) with touch and no
|
|
68
|
+
mouse: a click is a tap, a drag is a finger swipe, and pinch is two fingers.
|
|
69
|
+
For a game made for touch; the report says when a game wanted touch and the
|
|
70
|
+
run was played with a mouse
|
|
61
71
|
--build-url <url> the web build to play
|
|
62
72
|
--build-dir <dir> a web export folder to serve from this machine and play: index.html or its one
|
|
63
73
|
.html page, with wasm, Brotli and gzip engine files and threaded builds served right
|
|
64
74
|
--build-entry <file> the page to open inside --build-dir, when it has more than one .html file
|
|
65
75
|
--godot-project <dir> the Godot project directory
|
|
66
|
-
--driver-config <file>
|
|
76
|
+
--driver-config <file> JSON-RPC bridge configuration, or an experimental native driver's WebDriver configuration
|
|
77
|
+
--cli <command> the command that starts a text build (cli_stdio)
|
|
78
|
+
--controller <name> geri (the default, chooses every action itself) or freki (picks each action from a short list)
|
|
79
|
+
--compare-with <name> also play every persona with this playtester, for two reports side by side
|
|
67
80
|
--max-actions <n> lower the actions one persona may take; it can only lower the persona's own patience, never raise it
|
|
68
|
-
--long a long persona run: twice the actions
|
|
69
|
-
|
|
70
|
-
a standard run; the price is read from the estimate and confirmed before any charge
|
|
81
|
+
--long a long persona run: twice the actions and wall time of a standard run and a larger
|
|
82
|
+
model budget, for a game whose screens are heavy or whose goal is far in. It costs
|
|
83
|
+
more than a standard run; the price is read from the estimate and confirmed before any charge
|
|
84
|
+
--tier <name> play on a cloud tier's allowance from this machine: jam, small, medium or large.
|
|
85
|
+
Each has its own play length, model budget and action count; the price is
|
|
86
|
+
read from the estimate and confirmed before any charge
|
|
87
|
+
--minutes <n> with --tier, minutes of play per persona, from the tier's own length (jam 5,
|
|
88
|
+
small 8, medium 15, large 30) up to 240; the price scales with it
|
|
89
|
+
--focus <goal> a goal for every persona, such as "beat the first boss"; up to five times
|
|
90
|
+
--avoid <thing> something every persona stays out of, such as "the settings menu"; up to five times
|
|
91
|
+
--start <query> open a web build with this query or hash, such as ?level=3 or #boss
|
|
71
92
|
--concurrency <n> personas at once, default 2
|
|
72
93
|
--upload-video upload session.webm as well as the reports
|
|
73
|
-
--upload-
|
|
94
|
+
--no-upload-step-log keep the step log (transcript.jsonl) on this machine. By default it uploads with the reports,
|
|
95
|
+
because the evidence report in the dashboard is built from it: the inputs sent, what each
|
|
96
|
+
observation read, your persona's notes and the checks on its findings, with the local brief's
|
|
97
|
+
secrets already scrubbed. Nothing else is added to it, and it expires after 90 days.
|
|
98
|
+
"uploads": { "step_log": false } in the project config does the same. The default applies
|
|
99
|
+
to projects set up before 0.10.0 too; an older "uploads": { "transcript": false } is not
|
|
100
|
+
an opt out. Without the step log the dashboard shows the written report only
|
|
101
|
+
--upload-step-log upload the step log for this run even when the config sets "step_log": false
|
|
102
|
+
(older name: --upload-transcript)
|
|
103
|
+
--no-replay do not play the findings' recorded inputs again after the report. A replay makes no model
|
|
104
|
+
call and costs nothing; it opens the game again for a few seconds (a second browser for a
|
|
105
|
+
web build, a second Godot for a lockstep run)
|
|
74
106
|
--dry-upload list every file and byte that would be sent, send nothing
|
|
75
107
|
--key-modifier <name> meta or control: the modifier for editing shortcuts in the browser, default the platform's own
|
|
76
108
|
--headed show the browser
|
|
77
109
|
--headless hide it
|
|
78
110
|
--verbose print each turn
|
|
111
|
+
--realtime let the game run between actions; by default a Godot game and a canvas game in the
|
|
112
|
+
browser stand still while the persona decides
|
|
79
113
|
--skip-preflight register without the free checks first: the build health check (any driver)
|
|
80
114
|
and the automation server probe (native drivers); the job is registered and
|
|
81
115
|
charged even if the build or the server turns out to be down
|
|
@@ -157,12 +191,20 @@ function withoutFirst(values, value) {
|
|
|
157
191
|
export function buildProgram() {
|
|
158
192
|
const program = new Command();
|
|
159
193
|
const slot = { code: ExitCode.OK };
|
|
160
|
-
const hosted = common(program.command('hosted').description('run a
|
|
194
|
+
const hosted = common(program.command('hosted').description('run a cloud playtest, one playtester per persona (Geri and Freki play your game together): quote, run, status and cancel'));
|
|
161
195
|
hosted.command('quote')
|
|
162
|
-
.description('save a full
|
|
196
|
+
.description('save a full cloud playtest quote, one line per persona, without charging or admitting a run')
|
|
163
197
|
.requiredOption('--build <id>', 'an existing validated hosted build')
|
|
164
198
|
.option('--profile <version>', 'hosted profile to quote; optional when the server advertises exactly one, otherwise the error lists the choices')
|
|
165
|
-
.option('--
|
|
199
|
+
.option('--personas <list>', 'more personas to add, comma separated; fresh-eyes is always included and each persona adds its own price ("personas" lists them)')
|
|
200
|
+
.addOption(new Option('--persona <slug>').hideHelp())
|
|
201
|
+
.addOption(new Option('--tier <name>', 'cloud tier: jam, small, medium or large (default: the one your build size needs; a smaller one is refused before any charge)').choices(['jam', 'small', 'medium', 'large']))
|
|
202
|
+
.option('--minutes <n>', 'minutes of play per persona, from the tier minimum up to 120; the price scales with it')
|
|
203
|
+
.option('--start <query>', 'open the build with this query or hash, such as ?level=3 or #boss')
|
|
204
|
+
.option('--focus <goal>', 'a goal for every persona, such as "beat the first boss"; give it up to five times', (v, list) => [...list, v], [])
|
|
205
|
+
.option('--avoid <thing>', 'something every persona stays out of, such as "the settings menu"; up to five times', (v, list) => [...list, v], [])
|
|
206
|
+
.option('--save <file>', 'a save file every persona starts from, at most 1 MiB; uploaded before the quote, free')
|
|
207
|
+
.option('--save-target <where>', 'where the game reads the save: localstorage:<key>, godot:user://<path>, idbfs:/<mount>/<path>, or hook (the default: the game reads it through window.RavensightPlaytest.save)')
|
|
166
208
|
.requiredOption('--output <file>', 'save the original quote and immutable consent here')
|
|
167
209
|
.option('--game <id>', 'game id, overriding this repo’s configuration')
|
|
168
210
|
.addOption(new Option('--geri-provider <name>', "Geri's model provider: primary or alternate (ravensight.io/legal/subprocessors names both); unavailable choices are refused").choices(['primary', 'alternate']).conflicts('standardProvider'))
|
|
@@ -171,16 +213,24 @@ export function buildProgram() {
|
|
|
171
213
|
.action(capture(slot, async (options, command) => {
|
|
172
214
|
const { hostedQuote } = await import('./commands/hosted.js');
|
|
173
215
|
return hostedQuote(flagsFrom(command.optsWithGlobals(), { build: options.build, profile: options.profile,
|
|
174
|
-
persona: options.persona, output: options.output, game: options.game,
|
|
216
|
+
persona: options.persona, personas: options.personas, tier: options.tier, minutes: options.minutes, start: options.start, focus: options.focus, avoid: options.avoid, save: options.save, saveTarget: options.saveTarget, output: options.output, game: options.game,
|
|
175
217
|
geriProvider: options.geriProvider, standardProvider: options.standardProvider,
|
|
176
218
|
video: options.video }));
|
|
177
219
|
}));
|
|
178
220
|
common(hosted.command('run [quote-file]'))
|
|
179
|
-
.description('quote the newest ready build (or --build), confirm the price, and start
|
|
221
|
+
.description('quote the newest ready build (or --build), confirm the price, and start a cloud playtest: fresh-eyes plus any --personas, each on its own machine at once; with a saved quote file, confirm that quote instead. Never retries an unknown outcome')
|
|
180
222
|
.option('--build <id>', 'a build that passed its static archive check (default: the newest one)')
|
|
181
|
-
.option('--
|
|
223
|
+
.option('--personas <list>', 'more personas to add, comma separated; fresh-eyes is always included and each persona adds its own price')
|
|
224
|
+
.addOption(new Option('--persona <slug>').hideHelp())
|
|
225
|
+
.addOption(new Option('--tier <name>', 'cloud tier: jam, small, medium or large (default: the one your build size needs; a smaller one is refused before any charge)').choices(['jam', 'small', 'medium', 'large']))
|
|
226
|
+
.option('--minutes <n>', 'minutes of play per persona, from the tier minimum up to 120; the price scales with it')
|
|
227
|
+
.option('--start <query>', 'open the build with this query or hash, such as ?level=3 or #boss')
|
|
228
|
+
.option('--focus <goal>', 'a goal for every persona, such as "beat the first boss"; give it up to five times', (v, list) => [...list, v], [])
|
|
229
|
+
.option('--avoid <thing>', 'something every persona stays out of, such as "the settings menu"; up to five times', (v, list) => [...list, v], [])
|
|
230
|
+
.option('--save <file>', 'a save file every persona starts from, at most 1 MiB; uploaded before the quote, free')
|
|
231
|
+
.option('--save-target <where>', 'where the game reads the save: localstorage:<key>, godot:user://<path>, idbfs:/<mount>/<path>, or hook (the default: the game reads it through window.RavensightPlaytest.save)')
|
|
182
232
|
.option('--game <id>', 'game id, overriding this repo’s configuration')
|
|
183
|
-
.option('--video', 'save video of
|
|
233
|
+
.option('--video', 'save a video of each persona\'s game session in its report')
|
|
184
234
|
.option('--wait', 'stay until the report is ready, printing each phase change (with or without a saved quote)')
|
|
185
235
|
.option('--even-if-unknown', 'buy a run even though an earlier admission for this game has no known outcome yet (it may have been charged; check it first with "hosted status")')
|
|
186
236
|
// Hidden: the server now queues a funded run instead of refusing it for
|
|
@@ -189,16 +239,16 @@ export function buildProgram() {
|
|
|
189
239
|
.action(capture(slot, async (filename, options, command) => {
|
|
190
240
|
const { hostedRun, hostedRunDirect } = await import('./commands/hosted.js');
|
|
191
241
|
if (filename) {
|
|
192
|
-
const extra = ['build', 'persona', 'game', 'video'].filter(name => options[name] !== undefined);
|
|
193
|
-
if (extra.length) throw new CliError(`A saved quote already fixes its build,
|
|
242
|
+
const extra = ['build', 'persona', 'personas', 'tier', 'minutes', 'start', 'save', 'saveTarget', 'game', 'video'].filter(name => options[name] !== undefined).concat(['focus', 'avoid'].filter(name => options[name]?.length));
|
|
243
|
+
if (extra.length) throw new CliError(`A saved quote already fixes its build, personas and options. Drop --${extra.join(', --')}, or run "hosted run" without a quote file.`);
|
|
194
244
|
return hostedRun(filename, flagsFrom(command.optsWithGlobals(), { wait: options.wait, waitForCapacity: options.waitForCapacity,
|
|
195
245
|
evenIfUnknown: options.evenIfUnknown }));
|
|
196
246
|
}
|
|
197
|
-
return hostedRunDirect(flagsFrom(command.optsWithGlobals(), { build: options.build, persona: options.persona, game: options.game,
|
|
247
|
+
return hostedRunDirect(flagsFrom(command.optsWithGlobals(), { build: options.build, persona: options.persona, personas: options.personas, tier: options.tier, minutes: options.minutes, start: options.start, focus: options.focus, avoid: options.avoid, save: options.save, saveTarget: options.saveTarget, game: options.game,
|
|
198
248
|
video: options.video, wait: options.wait, waitForCapacity: options.waitForCapacity, evenIfUnknown: options.evenIfUnknown }));
|
|
199
249
|
}));
|
|
200
250
|
common(hosted.command('status [run-id]'))
|
|
201
|
-
.description('show the phase of one hosted run (queued, provisioning, running, capturing, analyzing, report ready, failed or canceled), each
|
|
251
|
+
.description('show the phase of one hosted run (queued, provisioning, running, capturing, analyzing, report ready, failed or canceled), each persona (with its queue place while it waits for a machine) and the report link; with no run id, ask the server about any admission whose outcome is not known yet')
|
|
202
252
|
.option('--game <id>', 'game id, overriding this repo’s configuration')
|
|
203
253
|
.option('--wait', 'stay until the run finishes, printing each phase change')
|
|
204
254
|
.action(capture(slot, async (runId, options, command) => {
|
|
@@ -269,7 +319,11 @@ export function buildProgram() {
|
|
|
269
319
|
.option('--godot-path <path>', 'where Godot is, if it is not on the PATH')
|
|
270
320
|
.option('--web', 'check the browser even when this repo is not linked to a web build')
|
|
271
321
|
.option('--driver <name>', 'check the setup for this driver instead of the configured one')
|
|
272
|
-
.option('--driver-config <file>', 'the native driver config to probe instead of the configured one')
|
|
322
|
+
.option('--driver-config <file>', 'the experimental native driver config to probe instead of the configured one')
|
|
323
|
+
.option('--godot-project <dir>', 'the Godot project a godot_driver run would play, read for controls with no text, fonts and a game state hook')
|
|
324
|
+
.option('--record-video', 'the run will pass --record-video, so the video row passes')
|
|
325
|
+
.option('--no-record-video', 'the run will pass --no-record-video, so the video row warns')
|
|
326
|
+
.option('--upload-video', 'the run will pass --upload-video, so the video row passes')
|
|
273
327
|
.action(capture(slot, async options => {
|
|
274
328
|
const { check } = await import('./commands/check.js');
|
|
275
329
|
return check(flagsFrom(options, {
|
|
@@ -279,6 +333,10 @@ export function buildProgram() {
|
|
|
279
333
|
modules: options.modules,
|
|
280
334
|
personas: options.personas,
|
|
281
335
|
godotPath: options.godotPath,
|
|
336
|
+
godotProject: options.godotProject,
|
|
337
|
+
recordVideo: options.recordVideo === true,
|
|
338
|
+
noRecordVideo: options.recordVideo === false,
|
|
339
|
+
uploadVideo: Boolean(options.uploadVideo),
|
|
282
340
|
web: Boolean(options.web)
|
|
283
341
|
}));
|
|
284
342
|
}));
|
|
@@ -324,14 +382,15 @@ export function buildProgram() {
|
|
|
324
382
|
.option('--game <gameId>', 'the game, when the job journal is missing')
|
|
325
383
|
.option('--dry-upload', 'list what would be sent and send nothing')
|
|
326
384
|
.option('--video', 'include the session video')
|
|
327
|
-
.option('--transcript', 'include the transcript')
|
|
385
|
+
.option('--transcript', 'include the step log (transcript.jsonl); without a flag a job sends what its run decided, or, with no journal, sends it unless uploads.step_log is false')
|
|
386
|
+
.option('--no-step-log', 'leave the step log (transcript.jsonl) on this machine')
|
|
328
387
|
.action(capture(slot, async (jobId, options) => {
|
|
329
388
|
const { upload } = await import('./commands/upload.js');
|
|
330
389
|
return upload(jobId, flagsFrom(options, {
|
|
331
390
|
game: options.game,
|
|
332
391
|
dryRun: Boolean(options.dryUpload),
|
|
333
392
|
video: options.video,
|
|
334
|
-
transcript: options.transcript
|
|
393
|
+
transcript: options.stepLog === false ? false : options.transcript
|
|
335
394
|
}));
|
|
336
395
|
}));
|
|
337
396
|
|
package/src/commands/check.js
CHANGED
|
@@ -16,6 +16,7 @@ import { RUN_MODULES, defaultPersonasFor, describeBreakdown, personaCount, unkno
|
|
|
16
16
|
import { WEBDRIVER_NAMES } from '../run/drivers/webdriver.js';
|
|
17
17
|
import { inspectNativeBuild, probeAutomation, platformWords } from '../run/drivers/webdriver-probe.js';
|
|
18
18
|
import { CHECK_PLAYTEST_IDENTITY, DEFAULT_VIEWPORT, WEB_OBSERVATION_MAX_CHARS, injectPlaytestIdentity, measureSnapshot, readSnapshot } from '../run/drivers/web.js';
|
|
19
|
+
import { inspectReadiness } from '../run/readiness.js';
|
|
19
20
|
import path from 'node:path';
|
|
20
21
|
|
|
21
22
|
export const NODE_MIN_MAJOR = 22;
|
|
@@ -316,7 +317,8 @@ export async function runChecks(flags = {}, deps = {}) {
|
|
|
316
317
|
project: { game: null, environment: null, in_scope: null },
|
|
317
318
|
brief: { present: null, complete: null, missing: [] },
|
|
318
319
|
build: { driver: null, ref: null },
|
|
319
|
-
automation: null
|
|
320
|
+
automation: null,
|
|
321
|
+
readiness: null
|
|
320
322
|
};
|
|
321
323
|
|
|
322
324
|
/* ------------------------------------------------------------- runtime */
|
|
@@ -453,6 +455,8 @@ export async function runChecks(flags = {}, deps = {}) {
|
|
|
453
455
|
: flags.config;
|
|
454
456
|
const gameId = flags.game || (config && config.game_id) || null;
|
|
455
457
|
let inScope = null;
|
|
458
|
+
/** The brief's fields once read, for the full run rows. */
|
|
459
|
+
let briefFields = null;
|
|
456
460
|
if (!gameId) {
|
|
457
461
|
rows.push(row(
|
|
458
462
|
'project binding',
|
|
@@ -495,6 +499,7 @@ export async function runChecks(flags = {}, deps = {}) {
|
|
|
495
499
|
facts.brief = { present: false, complete: false, missing: [] };
|
|
496
500
|
rows.push(row('brief', 'fail', 'this game has no expectations brief, and a persona run needs one', 'ravensight-playtest brief'));
|
|
497
501
|
} else {
|
|
502
|
+
briefFields = current.fields || {};
|
|
498
503
|
const completeness = completenessFor(current.fields || {});
|
|
499
504
|
// The server's status is what `run` and `POST /jobs` act on. The local
|
|
500
505
|
// field check only explains a draft, or flags a brief marked complete
|
|
@@ -699,6 +704,24 @@ export async function runChecks(flags = {}, deps = {}) {
|
|
|
699
704
|
));
|
|
700
705
|
}
|
|
701
706
|
|
|
707
|
+
/* ------------------------------------------------- what makes a run thin */
|
|
708
|
+
|
|
709
|
+
// Read from this machine only, and warnings at most: a run that would come
|
|
710
|
+
// back thin is still a run the developer may want, so nothing here fails.
|
|
711
|
+
const godotProject = plan.driverName === 'godot_driver' && plan.target
|
|
712
|
+
? path.resolve(repoRoot, plan.target)
|
|
713
|
+
: godot.isProject ? repoRoot : null;
|
|
714
|
+
const uploads = (config && config.uploads) || {};
|
|
715
|
+
const readiness = await (deps.inspectReadiness || inspectReadiness)({
|
|
716
|
+
fields: flags.briefFields || briefFields,
|
|
717
|
+
driverName: plan.driverName,
|
|
718
|
+
godotProject,
|
|
719
|
+
// A run keeps a video by default; only --no-record-video leaves it out.
|
|
720
|
+
video: Boolean(flags.recordVideo || flags.uploadVideo || uploads.video) || flags.noRecordVideo !== true
|
|
721
|
+
});
|
|
722
|
+
rows.push(...readiness.rows);
|
|
723
|
+
facts.readiness = readiness.facts;
|
|
724
|
+
|
|
702
725
|
return { rows, ok: rows.every(entry => entry.status !== 'fail'), ...facts };
|
|
703
726
|
}
|
|
704
727
|
|
|
@@ -722,7 +745,7 @@ export async function firstScreenRow(measure, url, { authed, gameId, priced }) {
|
|
|
722
745
|
if (reasons.length === 0) {
|
|
723
746
|
return row('first screen', 'pass', `${count(measure.fullChars)} characters, within the ${count(WEB_OBSERVATION_MAX_CHARS)} a persona reads per step`);
|
|
724
747
|
}
|
|
725
|
-
let prices = 'a long run costs
|
|
748
|
+
let prices = 'a long run costs more than a standard run; run shows the price before any charge';
|
|
726
749
|
if (priced && priced.modules.includes('persona_playtest') && authed && gameId) {
|
|
727
750
|
try {
|
|
728
751
|
// A read like the standard estimate above: it prices, it charges nothing.
|
|
@@ -735,7 +758,7 @@ export async function firstScreenRow(measure, url, { authed, gameId, priced }) {
|
|
|
735
758
|
return row(
|
|
736
759
|
'first screen',
|
|
737
760
|
'warn',
|
|
738
|
-
`${reasons.join('; ')}. Consider --long: twice the actions
|
|
761
|
+
`${reasons.join('; ')}. Consider --long: twice the actions and wall time and a larger model budget per persona (${prices})`,
|
|
739
762
|
'ravensight-playtest run --long'
|
|
740
763
|
);
|
|
741
764
|
}
|
|
@@ -751,7 +774,7 @@ export const MAX_GAMES_LISTED = 5;
|
|
|
751
774
|
|
|
752
775
|
export async function check(flags = {}, deps = {}) {
|
|
753
776
|
const progress = flags.json ? {} : { onProgress: line => ui.info(line) };
|
|
754
|
-
const { rows, ok, cli, login, project, brief, build, automation } = await runChecks(flags, { ...progress, ...deps });
|
|
777
|
+
const { rows, ok, cli, login, project, brief, build, automation, readiness } = await runChecks(flags, { ...progress, ...deps });
|
|
755
778
|
|
|
756
779
|
if (flags.json) {
|
|
757
780
|
ui.json({
|
|
@@ -764,6 +787,7 @@ export async function check(flags = {}, deps = {}) {
|
|
|
764
787
|
brief,
|
|
765
788
|
build,
|
|
766
789
|
automation,
|
|
790
|
+
readiness,
|
|
767
791
|
checks: rows
|
|
768
792
|
});
|
|
769
793
|
return ok ? ExitCode.OK : ExitCode.ENVIRONMENT;
|
|
@@ -780,6 +804,8 @@ export async function check(flags = {}, deps = {}) {
|
|
|
780
804
|
}
|
|
781
805
|
ui.blank();
|
|
782
806
|
ui.info(NO_CHARGE_NOTE);
|
|
807
|
+
const thin = rows.filter(entry => entry.name.startsWith('full run:') && entry.status === 'warn').length;
|
|
808
|
+
if (ok && thin > 0) ui.info(`${thin} of the "full run" rows above ${thin === 1 ? 'is a warning' : 'are warnings'}: the run will start, and is likely to cover less than it could. Each row names its fix.`);
|
|
783
809
|
if (ok) ui.ok('Ready.');
|
|
784
810
|
else ui.error('Some checks failed. Fix the ones above and run check again.');
|
|
785
811
|
return ok ? ExitCode.OK : ExitCode.ENVIRONMENT;
|
package/src/commands/fakeCore.js
CHANGED
|
@@ -108,6 +108,7 @@ export function fakePack(overrides = {}) {
|
|
|
108
108
|
return {
|
|
109
109
|
pack_version: '1.0.0',
|
|
110
110
|
personas: [
|
|
111
|
+
{ slug: 'fresh-eyes', name: 'Fresh Eyes', patience_actions: 25, model_tier_hint: 'tier_fast', body: 'a first time player' },
|
|
111
112
|
{ slug: 'curious-kid', name: 'Curious Kid', patience_actions: 25, model_tier_hint: 'tier_fast', body: 'clicks everything' },
|
|
112
113
|
{ slug: 'grumpy-veteran', name: 'Grumpy Veteran', patience_actions: 30, model_tier_hint: 'tier_frontier', body: 'has seen it all' },
|
|
113
114
|
{ slug: 'speedrunner', name: 'Speedrunner', patience_actions: 40, model_tier_hint: 'tier_standard', body: 'goes fast' }
|