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.
Files changed (66) hide show
  1. package/README.md +280 -66
  2. package/addons/ravensight_driver/driver.gd +666 -21
  3. package/docs/ADAPTERS.md +11 -7
  4. package/docs/NATIVE_RUNNER.md +3 -1
  5. package/docs/godot-driver.md +127 -13
  6. package/package.json +8 -6
  7. package/src/api/client.js +4 -3
  8. package/src/cli.js +84 -25
  9. package/src/commands/check.js +30 -4
  10. package/src/commands/fakeCore.js +1 -0
  11. package/src/commands/hosted.js +41 -12
  12. package/src/commands/init.js +17 -1
  13. package/src/commands/run.js +209 -14
  14. package/src/commands/upload.js +6 -2
  15. package/src/commands/validate.js +1 -1
  16. package/src/commands/validateHosted.js +50 -5
  17. package/src/config.js +33 -2
  18. package/src/hosted/archivePreflight.js +7 -7
  19. package/src/hosted/buildUpload.js +89 -8
  20. package/src/hosted/recordedRun.js +141 -26
  21. package/src/hosted/status.js +19 -10
  22. package/src/run/actionSelector.js +14 -3
  23. package/src/run/aggregate.js +57 -3
  24. package/src/run/anygame/controlbook.js +179 -0
  25. package/src/run/anygame/genre.js +179 -0
  26. package/src/run/anygame/index.js +258 -0
  27. package/src/run/anygame/language.js +336 -0
  28. package/src/run/anygame/memory.js +330 -0
  29. package/src/run/anygame/shared-hashes.json +10 -0
  30. package/src/run/anygame/shared.js +24 -0
  31. package/src/run/anygame/sound.js +342 -0
  32. package/src/run/args.js +75 -8
  33. package/src/run/choiceCheck.js +312 -0
  34. package/src/run/context.js +254 -13
  35. package/src/run/drivers/godot-observation.js +93 -6
  36. package/src/run/drivers/godot.js +769 -46
  37. package/src/run/drivers/recording.js +24 -4
  38. package/src/run/drivers/web.js +1242 -77
  39. package/src/run/edgePass.js +731 -0
  40. package/src/run/fixLoop.js +5 -4
  41. package/src/run/focus.js +65 -0
  42. package/src/run/gamepad.js +108 -0
  43. package/src/run/godotEdgePass.js +235 -0
  44. package/src/run/godotTesterProbes.js +192 -0
  45. package/src/run/headings.js +21 -0
  46. package/src/run/honesty.js +544 -0
  47. package/src/run/inputs.js +256 -0
  48. package/src/run/marks.js +142 -0
  49. package/src/run/personaLoop.js +1000 -79
  50. package/src/run/phone.js +7 -0
  51. package/src/run/pixels.js +215 -0
  52. package/src/run/playClock.js +162 -0
  53. package/src/run/readiness.js +585 -0
  54. package/src/run/refusal.js +67 -0
  55. package/src/run/regions.js +119 -0
  56. package/src/run/report.js +14 -2
  57. package/src/run/reportChecks.js +472 -0
  58. package/src/run/resume.js +3 -2
  59. package/src/run/screenshots.js +161 -0
  60. package/src/run/strip.js +114 -0
  61. package/src/run/testerLedger.js +312 -0
  62. package/src/run/testerProbes.js +584 -0
  63. package/src/run/thinRun.js +102 -0
  64. package/src/run/timeFreeze.js +79 -0
  65. package/src/run/tools.js +454 -29
  66. package/src/runDefaults.js +24 -2
@@ -8,9 +8,30 @@
8
8
  * Personas used when the developer names none. One since 0.3.2: a first run
9
9
  * should cost one persona run, and a second persona is one `--personas` away.
10
10
  * Spec 17 defaulted to two, which made the default run cost twice what most
11
- * customers expected to pay for a first look.
11
+ * customers expected to pay for a first look. Since 0.9.0 the one is
12
+ * fresh-eyes, the general first time player, the same persona a cloud
13
+ * playtest always includes.
12
14
  */
13
- export const DEFAULT_PERSONAS = Object.freeze(['curious-kid']);
15
+ export const DEFAULT_PERSONAS = Object.freeze(['fresh-eyes']);
16
+
17
+ /** The persona every cloud playtest includes; the customer adds others. */
18
+ export const ALWAYS_INCLUDED_PERSONA = 'fresh-eyes';
19
+
20
+ /** The most personas one cloud playtest may name, fresh-eyes included (the server's own limit). */
21
+ export const MAX_HOSTED_PERSONAS = 10;
22
+
23
+ /**
24
+ * The persona list a cloud playtest asks for: fresh-eyes first, then each
25
+ * persona named once, in the order given.
26
+ *
27
+ * @param {Array<string>|string} [extra]
28
+ * @returns {Array<string>}
29
+ */
30
+ export function hostedPersonas(extra = []) {
31
+ const named = (Array.isArray(extra) ? extra : String(extra || '').split(','))
32
+ .map(slug => String(slug).trim()).filter(Boolean);
33
+ return [...new Set([ALWAYS_INCLUDED_PERSONA, ...named])];
34
+ }
14
35
 
15
36
  /** The modules `run` registers. `aggregate_report` is free and buys the aggregate's steps. */
16
37
  export const RUN_MODULES = Object.freeze(['persona_playtest', 'aggregate_report']);
@@ -57,6 +78,7 @@ export function describeBreakdown(breakdown, money) {
57
78
  const times = Number(line.count) > 1 ? ` (x${line.count})` : '';
58
79
  if (line.unit === 'playtest_run') parts.push(`a persona run ${price} each${times}`);
59
80
  else if (line.unit === 'playtest_run_long') parts.push(`a long persona run ${price} each${times}`);
81
+ else if (/^playtest_tier_(jam|small|medium|large)_\d{1,3}m$/.test(String(line.unit))) { const [, tier, minutes] = /^playtest_tier_([a-z]+)_(\d+)m$/.exec(line.unit); parts.push(`a ${tier} tier persona run of ${minutes} minutes ${price} each${times}`); }
60
82
  else if (line.unit === 'playtest_profile') parts.push(`profile job ${price}${times}`);
61
83
  else if (line.unit === 'playtest_fix') parts.push(`a fix attempt ${price} each${times}`);
62
84
  else parts.push(`${line.unit} ${price}${times}`);