@seriousgaming/sdk-tools 1.7.0 → 1.8.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 (187) hide show
  1. package/dist/agent/guidance.md +1 -0
  2. package/dist/{cli-ZTZ5H55T.js → cli-27M4PX7O.js} +17 -17
  3. package/dist/{cli-2BH7FX27.js → cli-2FXZZLCL.js} +1 -1
  4. package/dist/{cli-HHPMAV4F.js → cli-2KDV2DYC.js} +3 -3
  5. package/dist/{cli-57V4ARER.js → cli-2QM63J3I.js} +1 -1
  6. package/dist/{cli-TFMNNVJ7.js → cli-32NRB2IT.js} +15 -15
  7. package/dist/{cli-JPAXKLVT.js → cli-3HBYH4VF.js} +11 -11
  8. package/dist/{cli-JR5AZLLK.js → cli-3HPAKEJJ.js} +2 -2
  9. package/dist/{cli-3PIJLSRQ.js → cli-3HZGJRQW.js} +11 -11
  10. package/dist/{cli-BOXXMDSX.js → cli-3OCKRPXI.js} +18 -18
  11. package/dist/{cli-4CHKF4DQ.js → cli-3OVXQJEW.js} +2 -2
  12. package/dist/{cli-4UWFQNGF.js → cli-3VV2JLHX.js} +1 -1
  13. package/dist/{cli-EJVAQCMQ.js → cli-42ZUP4X3.js} +114 -5
  14. package/dist/{cli-CV4JGVJR.js → cli-4B5OBHSY.js} +19 -19
  15. package/dist/{cli-2DQJACAH.js → cli-4EMNCU63.js} +17 -17
  16. package/dist/cli-5CG6BMCY.js +36 -0
  17. package/dist/{cli-VYR326C6.js → cli-5FRKWNVP.js} +19 -19
  18. package/dist/{cli-TDYKRXUA.js → cli-5P66N5G6.js} +17 -17
  19. package/dist/{cli-ZRPWZOCW.js → cli-5SYPXJCB.js} +20 -16
  20. package/dist/{cli-TJ3PLRHF.js → cli-66AHBZRZ.js} +15 -15
  21. package/dist/{cli-M7WEAIRF.js → cli-6AGWTGTO.js} +106 -28
  22. package/dist/{cli-WG36UJRK.js → cli-6BAZE75K.js} +18 -18
  23. package/dist/{cli-VPON5HGB.js → cli-6FVHRL3H.js} +19 -19
  24. package/dist/{cli-QVASWX2A.js → cli-6GDPO5VU.js} +2 -2
  25. package/dist/{cli-TPNQLYPC.js → cli-6NBER36P.js} +1 -1
  26. package/dist/{cli-LQ4VSM5R.js → cli-726NJARI.js} +0 -0
  27. package/dist/{cli-GHLILDH7.js → cli-72DRYVTT.js} +13 -13
  28. package/dist/{cli-MMN4BPO4.js → cli-7CW2BBJG.js} +1 -1
  29. package/dist/{cli-FP32D3T6.js → cli-7GJGFILU.js} +15 -15
  30. package/dist/{cli-HYEU3QS6.js → cli-7NCVUM5U.js} +3 -3
  31. package/dist/cli-7S4G4EKK.js +110 -0
  32. package/dist/{cli-J4DKUUTK.js → cli-7V6GUIIS.js} +2 -2
  33. package/dist/{cli-N6H6T2E2.js → cli-AEAFLZGY.js} +12 -0
  34. package/dist/{cli-C47GJATR.js → cli-AGYCXRPR.js} +3 -3
  35. package/dist/{cli-XSVGKI3R.js → cli-BC4KKNLA.js} +1 -1
  36. package/dist/cli-BQ3FHENQ.js +16 -0
  37. package/dist/{cli-CXCL7VRK.js → cli-BXCCODYD.js} +20 -20
  38. package/dist/cli-C2XDL4LD.js +30 -0
  39. package/dist/{cli-MJUYJIEP.js → cli-C45A5VX6.js} +3 -3
  40. package/dist/{cli-64AA7367.js → cli-C7YZNPWX.js} +11 -11
  41. package/dist/{cli-ZKG3OPZ6.js → cli-CAX4CQTC.js} +13 -13
  42. package/dist/{cli-YOTGR3NB.js → cli-CVOLMK3Z.js} +1 -1
  43. package/dist/{cli-PKQNOGBO.js → cli-D3CZRXVJ.js} +63 -17
  44. package/dist/{cli-4YB3ROVR.js → cli-DMKRP33X.js} +1 -1
  45. package/dist/{cli-FZ7QAZZP.js → cli-DPFN2LIZ.js} +15 -15
  46. package/dist/{cli-7TOLC62D.js → cli-DT756M3Z.js} +20 -20
  47. package/dist/{cli-TIDQ4WUE.js → cli-DXHPYN4N.js} +1 -1
  48. package/dist/{cli-OANH3BTQ.js → cli-E665NKUQ.js} +5 -5
  49. package/dist/{cli-DEBCP7UH.js → cli-EK7CGMGS.js} +17 -17
  50. package/dist/{cli-PIO7NWMH.js → cli-ESU3J563.js} +15 -15
  51. package/dist/{cli-6HB6HTC6.js → cli-F47ELAXM.js} +47 -47
  52. package/dist/{cli-JIZTQVL2.js → cli-FH4WBZHA.js} +14 -14
  53. package/dist/{cli-JRMHSMYT.js → cli-FHKRO6OU.js} +19 -19
  54. package/dist/{cli-ESA6YNPF.js → cli-FSEDPZR5.js} +19 -19
  55. package/dist/{cli-G5DQGZ2E.js → cli-FV45UZQP.js} +19 -19
  56. package/dist/{cli-XR2XSWQN.js → cli-G7FX7ZIU.js} +12 -12
  57. package/dist/{cli-X7E3637I.js → cli-GFONBOJT.js} +50 -26
  58. package/dist/{cli-C5QOJJWX.js → cli-GHIMH6JU.js} +1 -1
  59. package/dist/{cli-T4HWGMY4.js → cli-HC7L5DXV.js} +15 -15
  60. package/dist/{cli-WU43JT4T.js → cli-HJPNNORV.js} +2 -2
  61. package/dist/{cli-SOMIB4B4.js → cli-HMEZHQBC.js} +17 -17
  62. package/dist/{cli-TFZ53OA2.js → cli-HQUVSAHY.js} +18 -18
  63. package/dist/{cli-MYJGMA6U.js → cli-IC5FOT2J.js} +1 -1
  64. package/dist/{cli-VL2P354N.js → cli-IVZ7AHUJ.js} +3 -3
  65. package/dist/{cli-B6YHEKIJ.js → cli-J2OTL6JH.js} +5 -5
  66. package/dist/{cli-NEOLMC2P.js → cli-JA6UFTSX.js} +17 -17
  67. package/dist/{cli-Z5HWENER.js → cli-JOXCAGM7.js} +19 -19
  68. package/dist/{cli-NOQBWJQN.js → cli-JQ6I5GGE.js} +3 -3
  69. package/dist/{cli-TDSQSCX4.js → cli-K6M6YB67.js} +1 -1
  70. package/dist/{cli-MYJGGLC5.js → cli-KFVA7DT3.js} +3 -3
  71. package/dist/{cli-DHOWZCXT.js → cli-KH6FKM5A.js} +15 -15
  72. package/dist/{cli-4VZIJYKU.js → cli-KMT235FV.js} +2 -2
  73. package/dist/{cli-6ZSMW4HR.js → cli-KU4PG7ZA.js} +15 -15
  74. package/dist/{cli-ATI6OLJU.js → cli-L4DEEAMK.js} +17 -17
  75. package/dist/{cli-EDCAH2TC.js → cli-ME3JKMJL.js} +19 -19
  76. package/dist/{cli-R7RG2VMW.js → cli-MJ65PIYI.js} +15 -15
  77. package/dist/cli-MM2ROZWO.js +36 -0
  78. package/dist/{cli-RZITKPJX.js → cli-MN7X4UG2.js} +1 -1
  79. package/dist/{cli-LE5ICDAF.js → cli-MPU4FLA7.js} +4 -4
  80. package/dist/{cli-HCRTYQQS.js → cli-MPWTXNF6.js} +2 -2
  81. package/dist/{cli-NPPY557S.js → cli-N5K2KHPR.js} +15 -15
  82. package/dist/{cli-PVA52RC2.js → cli-NGOQWOQE.js} +15 -15
  83. package/dist/{cli-ZTWOE3ZT.js → cli-NU4SCD5D.js} +1 -1
  84. package/dist/{cli-UTM4QU67.js → cli-O3IMNLN2.js} +282 -96
  85. package/dist/{cli-MM3A4SPH.js → cli-OUFXSQOW.js} +7265 -4467
  86. package/dist/{cli-UBQCSUDH.js → cli-PEY6XZDE.js} +16 -16
  87. package/dist/{cli-HM7CD4VU.js → cli-PLW3TWJ7.js} +19 -19
  88. package/dist/{cli-LRQDF3ZO.js → cli-PO2ALWHP.js} +13 -13
  89. package/dist/{cli-IPP5FDCH.js → cli-PPEB3ENS.js} +18 -18
  90. package/dist/{cli-C3OERMIR.js → cli-PZ7G544B.js} +3 -3
  91. package/dist/{cli-GPAN6XK2.js → cli-Q5BKFFDL.js} +4 -4
  92. package/dist/{cli-MULKSLA4.js → cli-QAI6T5FL.js} +15 -15
  93. package/dist/{cli-JGFJWZFU.js → cli-QAVLRCQ5.js} +3 -3
  94. package/dist/{cli-OQG3Y4RU.js → cli-QDIH2G2P.js} +15 -15
  95. package/dist/cli-SN7D7HTX.js +36 -0
  96. package/dist/{cli-SWZY7L7K.js → cli-SOQJHK4Q.js} +6 -6
  97. package/dist/{cli-7RYIEKMB.js → cli-SPKPDXWD.js} +15 -15
  98. package/dist/{cli-WAZD75KE.js → cli-SWUAXVIJ.js} +15 -15
  99. package/dist/cli-TJNLXQJ5.js +36 -0
  100. package/dist/{cli-SX3ULO5P.js → cli-U2EWI6H5.js} +11 -11
  101. package/dist/{cli-FXY3DKPW.js → cli-UADUC4JD.js} +2 -2
  102. package/dist/{cli-FWFRKQNE.js → cli-UR63LFVK.js} +2 -2
  103. package/dist/{cli-YSPZZQCP.js → cli-UTHPCZYL.js} +2 -2
  104. package/dist/{cli-XTANOFQR.js → cli-UYV3BDPA.js} +3 -3
  105. package/dist/{cli-H3J3ICCQ.js → cli-UZCQL6YP.js} +3 -3
  106. package/dist/{cli-LQERHJFE.js → cli-V5K3CCYZ.js} +2 -2
  107. package/dist/cli-V7L3HEL4.js +36 -0
  108. package/dist/{cli-GEQUJF4L.js → cli-VBSF3R3L.js} +16 -16
  109. package/dist/{cli-FXWWYBYU.js → cli-VQ4OJ4KE.js} +18 -18
  110. package/dist/{cli-IUS2YCD3.js → cli-VTLFQHDO.js} +1 -1
  111. package/dist/{cli-SOFCTQAL.js → cli-W7XCTGQ7.js} +15 -15
  112. package/dist/{cli-GTWEGYSU.js → cli-W7Y7X3FX.js} +19 -19
  113. package/dist/cli-WWNTBK37.js +1973 -0
  114. package/dist/cli-XPJGW375.js +36 -0
  115. package/dist/{cli-SRHBXZCN.js → cli-Y33ULHYO.js} +1 -1
  116. package/dist/{cli-ZQ2Y3U7F.js → cli-YLYB4ITF.js} +13 -13
  117. package/dist/{cli-4XCQUM3E.js → cli-ZFY6TGU7.js} +4 -4
  118. package/dist/{cli-JRIIAZ33.js → cli-ZSKP2IRP.js} +53 -38
  119. package/dist/cli.js +52 -52
  120. package/dist/client.js +17518 -16558
  121. package/dist/core/save-scenario.d.ts +1 -0
  122. package/dist/core/session-start-gate.d.ts +25 -0
  123. package/dist/core/session.d.ts +4 -0
  124. package/dist/dev/console/assets/{index-CnXlPeLX.js → index-CVNjiRUh.js} +31 -27
  125. package/dist/dev/console/index.html +1 -1
  126. package/dist/docs/api/deck.md +1 -1
  127. package/dist/docs/api/index.md +1 -1
  128. package/dist/docs/api/sdk-e2e.md +7 -6
  129. package/dist/docs/api/sdk-projection.md +1 -0
  130. package/dist/docs/api/sdk-tools-client.md +3 -1
  131. package/dist/docs/api/sdk-tools-playwright.md +1 -8
  132. package/dist/docs/api/sdk-ui.md +40 -64
  133. package/dist/docs/api/sdk.md +10 -1
  134. package/dist/docs/changelog.md +15 -0
  135. package/dist/docs/cli-error-codes.md +7 -1
  136. package/dist/docs/cli-reference.md +3 -0
  137. package/dist/docs/concepts/index.md +1 -0
  138. package/dist/docs/guides/engine.md +5 -0
  139. package/dist/docs/guides/file-handling.md +4 -1
  140. package/dist/docs/guides/llm-integration.md +3 -2
  141. package/dist/docs/guides/multi-team-games.md +2 -0
  142. package/dist/docs/guides/patterns.md +5 -0
  143. package/dist/docs/guides/session.md +1 -1
  144. package/dist/docs/guides/settings.md +2 -0
  145. package/dist/docs/guides/setup.md +23 -2
  146. package/dist/docs/guides/speech-generation.md +1 -0
  147. package/dist/docs/guides/testing.md +2 -0
  148. package/dist/docs/guides/tick-controller.md +2 -0
  149. package/dist/docs/guides/type-safety.md +2 -1
  150. package/dist/docs/guides/ui-files-and-llms.md +3 -1
  151. package/dist/docs/guides/upgrading.md +4 -0
  152. package/dist/docs/guides/validators.md +27 -4
  153. package/dist/docs/guides/waiting-room.md +2 -0
  154. package/dist/docs/page-index.md +8 -6
  155. package/dist/docs/recipes/call-endpoint-from-ui.md +1 -0
  156. package/dist/docs/recipes/create-scenario-editor.md +2 -1
  157. package/dist/docs/recipes/create-setup.md +2 -1
  158. package/dist/docs/recipes/declare-api-uses.md +1 -0
  159. package/dist/docs/recipes/describe-setup-with-endpoint.md +69 -0
  160. package/dist/docs/recipes/index.md +3 -1
  161. package/dist/docs/recipes/share-logic-between-engine-and-ui.md +2 -2
  162. package/dist/docs/recipes/test-user-interface.md +1 -1
  163. package/dist/docs/recipes/validate-scenarios.md +9 -3
  164. package/dist/docs/recipes/write-setup-notes.md +58 -0
  165. package/dist/docs/troubleshooting.md +2 -1
  166. package/dist/execution/executor.d.ts +12 -0
  167. package/dist/execution/scenario-gates.d.ts +40 -0
  168. package/dist/host.js +1082 -467
  169. package/dist/playwright.js +17529 -16569
  170. package/dist/runtime/manifest-version.d.ts +1 -1
  171. package/dist/runtime.js +4 -2
  172. package/dist/setup/setup-notes.d.ts +42 -0
  173. package/dist/templates/package/package.json.liquid +15 -15
  174. package/dist/templates/starter-game/package.json +13 -13
  175. package/dist/utils/error-codes.d.ts +13 -1
  176. package/dist/validation/package-validation.d.ts +1 -1
  177. package/package.json +22 -23
  178. package/dist/cli-57C72YKJ.js +0 -36
  179. package/dist/cli-5G7TZHD3.js +0 -36
  180. package/dist/cli-7MBLH4M3.js +0 -36
  181. package/dist/cli-C6G65H6S.js +0 -256
  182. package/dist/cli-L5IG7MY2.js +0 -36
  183. package/dist/cli-SPGUVL6Z.js +0 -36
  184. package/dist/cli-UY4VDI7W.js +0 -30
  185. package/dist/cli-WM6SQJ6Q.js +0 -16
  186. package/dist/cli-ZBTFLZUL.js +0 -36
  187. package/dist/cli-ZF7IFB54.js +0 -4026
@@ -2,39 +2,39 @@
2
2
  import {
3
3
  connectSession,
4
4
  resolveSession
5
- } from "./cli-OANH3BTQ.js";
6
- import "./cli-WU43JT4T.js";
5
+ } from "./cli-E665NKUQ.js";
6
+ import "./cli-HJPNNORV.js";
7
7
  import {
8
8
  DevShell,
9
9
  LOCAL_ORIGINS_FLAG,
10
10
  parseRoute
11
- } from "./cli-X7E3637I.js";
11
+ } from "./cli-GFONBOJT.js";
12
12
  import "./cli-BWX5E7TQ.js";
13
- import "./cli-M7WEAIRF.js";
13
+ import "./cli-6AGWTGTO.js";
14
14
  import "./cli-ILKCQNM6.js";
15
- import "./cli-TPNQLYPC.js";
16
- import "./cli-LQ4VSM5R.js";
17
- import "./cli-EJVAQCMQ.js";
15
+ import "./cli-6NBER36P.js";
16
+ import "./cli-726NJARI.js";
17
+ import "./cli-42ZUP4X3.js";
18
18
  import {
19
19
  loadEnvironmentConfig
20
- } from "./cli-TDSQSCX4.js";
21
- import "./cli-SRHBXZCN.js";
22
- import "./cli-MM3A4SPH.js";
20
+ } from "./cli-K6M6YB67.js";
21
+ import "./cli-Y33ULHYO.js";
22
+ import "./cli-WWNTBK37.js";
23
23
  import "./cli-4LKXZQ2B.js";
24
- import "./cli-MMN4BPO4.js";
25
- import "./cli-YOTGR3NB.js";
24
+ import "./cli-7CW2BBJG.js";
25
+ import "./cli-CVOLMK3Z.js";
26
26
  import "./cli-QUNIRH7A.js";
27
- import "./cli-C6G65H6S.js";
28
- import "./cli-UTM4QU67.js";
27
+ import "./cli-7S4G4EKK.js";
28
+ import "./cli-O3IMNLN2.js";
29
29
  import "./cli-25RWY5BQ.js";
30
30
  import "./cli-QWQMPCL6.js";
31
- import "./cli-ZF7IFB54.js";
31
+ import "./cli-OUFXSQOW.js";
32
32
  import "./cli-F2D4GGUA.js";
33
- import "./cli-4YB3ROVR.js";
33
+ import "./cli-DMKRP33X.js";
34
34
  import {
35
35
  CliError,
36
36
  reportResult
37
- } from "./cli-N6H6T2E2.js";
37
+ } from "./cli-AEAFLZGY.js";
38
38
 
39
39
  // cli/commands/screenshot.ts
40
40
  import { existsSync } from "fs";
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ deleteSettingsEditor
4
+ } from "./cli-G7FX7ZIU.js";
5
+ import "./cli-UYV3BDPA.js";
6
+ import "./cli-KMT235FV.js";
7
+ import "./cli-S5IVGDDD.js";
8
+ import "./cli-3HPAKEJJ.js";
9
+ import "./cli-3VV2JLHX.js";
10
+ import "./cli-MPU4FLA7.js";
11
+ import "./cli-VTLFQHDO.js";
12
+ import "./cli-QUNIRH7A.js";
13
+ import "./cli-UTHPCZYL.js";
14
+ import "./cli-BC4KKNLA.js";
15
+ import "./cli-UADUC4JD.js";
16
+ import "./cli-2QM63J3I.js";
17
+ import "./cli-QAVLRCQ5.js";
18
+ import "./cli-NU4SCD5D.js";
19
+ import "./cli-UZCQL6YP.js";
20
+ import "./cli-SOQJHK4Q.js";
21
+ import "./cli-7S4G4EKK.js";
22
+ import "./cli-O3IMNLN2.js";
23
+ import "./cli-25RWY5BQ.js";
24
+ import "./cli-QWQMPCL6.js";
25
+ import "./cli-OUFXSQOW.js";
26
+ import "./cli-F2D4GGUA.js";
27
+ import "./cli-DMKRP33X.js";
28
+ import "./cli-AEAFLZGY.js";
29
+
30
+ // cli/commands/resources/scenario-editor/delete.ts
31
+ function deleteScenarioEditor(options) {
32
+ return deleteSettingsEditor("scenario_editor", options);
33
+ }
34
+ export {
35
+ deleteScenarioEditor
36
+ };
@@ -1,53 +1,53 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  promptForSettings
4
- } from "./cli-C3OERMIR.js";
4
+ } from "./cli-PZ7G544B.js";
5
5
  import {
6
6
  loadResourceIdentifiers
7
- } from "./cli-XTANOFQR.js";
7
+ } from "./cli-UYV3BDPA.js";
8
8
  import {
9
9
  readAuthoredBundle
10
- } from "./cli-JR5AZLLK.js";
10
+ } from "./cli-3HPAKEJJ.js";
11
11
  import {
12
12
  resolveInputSource
13
- } from "./cli-4UWFQNGF.js";
13
+ } from "./cli-3VV2JLHX.js";
14
14
  import {
15
15
  createValidatorFiles
16
- } from "./cli-LE5ICDAF.js";
17
- import "./cli-IUS2YCD3.js";
16
+ } from "./cli-MPU4FLA7.js";
17
+ import "./cli-VTLFQHDO.js";
18
18
  import "./cli-QUNIRH7A.js";
19
- import "./cli-YSPZZQCP.js";
19
+ import "./cli-UTHPCZYL.js";
20
20
  import {
21
21
  loadPackageContext
22
- } from "./cli-XSVGKI3R.js";
22
+ } from "./cli-BC4KKNLA.js";
23
23
  import {
24
24
  presentFields
25
- } from "./cli-FXY3DKPW.js";
26
- import "./cli-57V4ARER.js";
25
+ } from "./cli-UADUC4JD.js";
26
+ import "./cli-2QM63J3I.js";
27
27
  import {
28
28
  BUILD_COMMAND,
29
29
  generateTypes,
30
30
  operationError,
31
31
  printOperationResult
32
- } from "./cli-JGFJWZFU.js";
32
+ } from "./cli-QAVLRCQ5.js";
33
33
  import {
34
34
  checkbox,
35
35
  input
36
- } from "./cli-ZTWOE3ZT.js";
37
- import "./cli-H3J3ICCQ.js";
38
- import "./cli-SWZY7L7K.js";
39
- import "./cli-C6G65H6S.js";
40
- import "./cli-UTM4QU67.js";
36
+ } from "./cli-NU4SCD5D.js";
37
+ import "./cli-UZCQL6YP.js";
38
+ import "./cli-SOQJHK4Q.js";
39
+ import "./cli-7S4G4EKK.js";
40
+ import "./cli-O3IMNLN2.js";
41
41
  import "./cli-25RWY5BQ.js";
42
42
  import "./cli-QWQMPCL6.js";
43
43
  import {
44
44
  validateSDKValidator
45
- } from "./cli-ZF7IFB54.js";
45
+ } from "./cli-OUFXSQOW.js";
46
46
  import "./cli-F2D4GGUA.js";
47
47
  import {
48
48
  logger
49
- } from "./cli-4YB3ROVR.js";
50
- import "./cli-N6H6T2E2.js";
49
+ } from "./cli-DMKRP33X.js";
50
+ import "./cli-AEAFLZGY.js";
51
51
 
52
52
  // cli/commands/resources/validator/new.ts
53
53
  async function createValidator(definitionInput, options) {
@@ -1,46 +1,46 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolvePatchedDefinition
4
- } from "./cli-4VZIJYKU.js";
4
+ } from "./cli-KMT235FV.js";
5
5
  import "./cli-S5IVGDDD.js";
6
6
  import {
7
7
  readAuthoredBundle
8
- } from "./cli-JR5AZLLK.js";
8
+ } from "./cli-3HPAKEJJ.js";
9
9
  import {
10
10
  resolveInputSource
11
- } from "./cli-4UWFQNGF.js";
11
+ } from "./cli-3VV2JLHX.js";
12
12
  import {
13
13
  updatePresentationFiles
14
- } from "./cli-LE5ICDAF.js";
15
- import "./cli-IUS2YCD3.js";
14
+ } from "./cli-MPU4FLA7.js";
15
+ import "./cli-VTLFQHDO.js";
16
16
  import "./cli-QUNIRH7A.js";
17
- import "./cli-YSPZZQCP.js";
17
+ import "./cli-UTHPCZYL.js";
18
18
  import {
19
19
  loadPackageContext
20
- } from "./cli-XSVGKI3R.js";
21
- import "./cli-FXY3DKPW.js";
22
- import "./cli-57V4ARER.js";
20
+ } from "./cli-BC4KKNLA.js";
21
+ import "./cli-UADUC4JD.js";
22
+ import "./cli-2QM63J3I.js";
23
23
  import {
24
24
  operationError,
25
25
  printOperationResult,
26
26
  regenerateTypes
27
- } from "./cli-JGFJWZFU.js";
28
- import "./cli-H3J3ICCQ.js";
29
- import "./cli-SWZY7L7K.js";
30
- import "./cli-C6G65H6S.js";
31
- import "./cli-UTM4QU67.js";
27
+ } from "./cli-QAVLRCQ5.js";
28
+ import "./cli-UZCQL6YP.js";
29
+ import "./cli-SOQJHK4Q.js";
30
+ import "./cli-7S4G4EKK.js";
31
+ import "./cli-O3IMNLN2.js";
32
32
  import "./cli-25RWY5BQ.js";
33
33
  import "./cli-QWQMPCL6.js";
34
34
  import {
35
35
  validateSDKPresentation
36
- } from "./cli-ZF7IFB54.js";
36
+ } from "./cli-OUFXSQOW.js";
37
37
  import "./cli-F2D4GGUA.js";
38
38
  import {
39
39
  logger
40
- } from "./cli-4YB3ROVR.js";
40
+ } from "./cli-DMKRP33X.js";
41
41
  import {
42
42
  CliError
43
- } from "./cli-N6H6T2E2.js";
43
+ } from "./cli-AEAFLZGY.js";
44
44
 
45
45
  // cli/commands/resources/presentation/update.ts
46
46
  async function updatePresentation(definitionInput, options) {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveSession
4
- } from "./cli-OANH3BTQ.js";
5
- import "./cli-WU43JT4T.js";
4
+ } from "./cli-E665NKUQ.js";
5
+ import "./cli-HJPNNORV.js";
6
6
  import {
7
7
  emit,
8
8
  participantsFromArgument,
@@ -10,31 +10,31 @@ import {
10
10
  teamIndexFromArgument,
11
11
  tickReport,
12
12
  wholeNumberFromFlag
13
- } from "./cli-GPAN6XK2.js";
14
- import "./cli-LQ4VSM5R.js";
13
+ } from "./cli-Q5BKFFDL.js";
14
+ import "./cli-726NJARI.js";
15
15
  import {
16
16
  IDLE_TIMER
17
- } from "./cli-EJVAQCMQ.js";
18
- import "./cli-TDSQSCX4.js";
19
- import "./cli-SRHBXZCN.js";
20
- import "./cli-MM3A4SPH.js";
17
+ } from "./cli-42ZUP4X3.js";
18
+ import "./cli-K6M6YB67.js";
19
+ import "./cli-Y33ULHYO.js";
20
+ import "./cli-WWNTBK37.js";
21
21
  import "./cli-4LKXZQ2B.js";
22
- import "./cli-MMN4BPO4.js";
22
+ import "./cli-7CW2BBJG.js";
23
23
  import "./cli-QUNIRH7A.js";
24
24
  import {
25
25
  loadPackageContext
26
- } from "./cli-XSVGKI3R.js";
27
- import "./cli-UTM4QU67.js";
26
+ } from "./cli-BC4KKNLA.js";
27
+ import "./cli-O3IMNLN2.js";
28
28
  import "./cli-25RWY5BQ.js";
29
29
  import "./cli-QWQMPCL6.js";
30
30
  import {
31
31
  loadConfig
32
- } from "./cli-ZF7IFB54.js";
32
+ } from "./cli-OUFXSQOW.js";
33
33
  import "./cli-F2D4GGUA.js";
34
- import "./cli-4YB3ROVR.js";
34
+ import "./cli-DMKRP33X.js";
35
35
  import {
36
36
  CliError
37
- } from "./cli-N6H6T2E2.js";
37
+ } from "./cli-AEAFLZGY.js";
38
38
 
39
39
  // cli/commands/session.ts
40
40
  import { resolve } from "path";
@@ -69,14 +69,18 @@ async function undoCommand(options) {
69
69
  async function playCommand(options) {
70
70
  await withSession(options, async (session) => {
71
71
  const before = await session.state();
72
+ let warnings = [];
72
73
  if (before.session.inSetup) {
73
- raiseIfRefused(await session.send({ type: "play" }));
74
+ const result = await session.send({ type: "play" });
75
+ raiseIfRefused(result);
76
+ if ("ok" in result && result.ok) warnings = result.warnings ?? [];
74
77
  }
75
78
  const after = await session.state();
76
79
  emit({
77
80
  started: before.session.inSetup,
78
81
  ...tickReport(after),
79
- settings: after.settings
82
+ settings: after.settings,
83
+ ...warnings.length > 0 ? { warnings } : {}
80
84
  });
81
85
  });
82
86
  }
@@ -2,36 +2,36 @@
2
2
  import {
3
3
  deleteEndpointFiles,
4
4
  findEndpointReferences
5
- } from "./cli-LE5ICDAF.js";
6
- import "./cli-IUS2YCD3.js";
5
+ } from "./cli-MPU4FLA7.js";
6
+ import "./cli-VTLFQHDO.js";
7
7
  import "./cli-QUNIRH7A.js";
8
- import "./cli-YSPZZQCP.js";
8
+ import "./cli-UTHPCZYL.js";
9
9
  import {
10
10
  loadPackageContext
11
- } from "./cli-XSVGKI3R.js";
12
- import "./cli-FXY3DKPW.js";
13
- import "./cli-57V4ARER.js";
11
+ } from "./cli-BC4KKNLA.js";
12
+ import "./cli-UADUC4JD.js";
13
+ import "./cli-2QM63J3I.js";
14
14
  import {
15
15
  operationError,
16
16
  recordOperationResult
17
- } from "./cli-JGFJWZFU.js";
17
+ } from "./cli-QAVLRCQ5.js";
18
18
  import {
19
19
  confirmAction
20
- } from "./cli-ZTWOE3ZT.js";
20
+ } from "./cli-NU4SCD5D.js";
21
21
  import {
22
22
  generateCommand
23
- } from "./cli-H3J3ICCQ.js";
24
- import "./cli-SWZY7L7K.js";
25
- import "./cli-C6G65H6S.js";
26
- import "./cli-UTM4QU67.js";
23
+ } from "./cli-UZCQL6YP.js";
24
+ import "./cli-SOQJHK4Q.js";
25
+ import "./cli-7S4G4EKK.js";
26
+ import "./cli-O3IMNLN2.js";
27
27
  import "./cli-25RWY5BQ.js";
28
28
  import "./cli-QWQMPCL6.js";
29
- import "./cli-ZF7IFB54.js";
29
+ import "./cli-OUFXSQOW.js";
30
30
  import "./cli-F2D4GGUA.js";
31
31
  import {
32
32
  logger
33
- } from "./cli-4YB3ROVR.js";
34
- import "./cli-N6H6T2E2.js";
33
+ } from "./cli-DMKRP33X.js";
34
+ import "./cli-AEAFLZGY.js";
35
35
 
36
36
  // cli/commands/resources/endpoint/delete.ts
37
37
  async function deleteEndpoint(identifier, options) {
@@ -12,7 +12,7 @@ import {
12
12
  validateUIFiles,
13
13
  validateUserInterface,
14
14
  validateValidator
15
- } from "./cli-TPNQLYPC.js";
15
+ } from "./cli-6NBER36P.js";
16
16
  import {
17
17
  fileSettingDeclarationErrors,
18
18
  isChapterEmpty,
@@ -21,19 +21,20 @@ import {
21
21
  referenceLocale,
22
22
  settingReferences,
23
23
  strayFences
24
- } from "./cli-MM3A4SPH.js";
24
+ } from "./cli-WWNTBK37.js";
25
25
  import {
26
- SCENARIO_VALIDATION,
27
- hasScenarioGate,
28
- runScenarioGates,
29
26
  validateTsTypes
30
- } from "./cli-C6G65H6S.js";
27
+ } from "./cli-7S4G4EKK.js";
31
28
  import {
32
29
  LogicLoader,
30
+ SCENARIO_VALIDATION,
33
31
  applySchemaDefaults,
34
32
  deepMergeContext,
35
- resolveCapabilityScope
36
- } from "./cli-UTM4QU67.js";
33
+ hasScenarioGate,
34
+ isBlocking,
35
+ resolveCapabilityScope,
36
+ runScenarioGates
37
+ } from "./cli-O3IMNLN2.js";
37
38
  import {
38
39
  describeAssetByReference
39
40
  } from "./cli-QWQMPCL6.js";
@@ -41,6 +42,7 @@ import {
41
42
  GAME_SETTINGS,
42
43
  LOGIC_NODE_BUILTIN,
43
44
  MANIFEST_FILE,
45
+ SETUP_NOTES_DIRECTORY,
44
46
  Transpile,
45
47
  bundleFileOf,
46
48
  collectSettingsOverrideErrors,
@@ -51,19 +53,22 @@ import {
51
53
  didYouMean,
52
54
  getResourceMeta,
53
55
  loadConfig,
56
+ notesSettingReferences,
54
57
  openSettingsObjects,
55
58
  parseSettingPath,
56
59
  pointerOf,
57
60
  refProblemMessage,
58
61
  refProblems,
62
+ settingPathDeclared,
59
63
  settingsSchemas,
64
+ setupNotesLocales,
60
65
  teamsMaxOf,
61
66
  unenforceableLockMessage,
62
67
  unenforceableLocks
63
- } from "./cli-ZF7IFB54.js";
68
+ } from "./cli-OUFXSQOW.js";
64
69
 
65
70
  // cli/validation/package-validation.ts
66
- import { existsSync as existsSync2 } from "fs";
71
+ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
67
72
  import { readFile } from "fs/promises";
68
73
  import { dirname as dirname2, resolve as resolve2 } from "path";
69
74
 
@@ -1494,7 +1499,7 @@ var VALIDATION_DESCRIPTORS = [
1494
1499
  type: "setup",
1495
1500
  resources: (config) => slot(config.setup),
1496
1501
  identify: named,
1497
- checks: [uiFiles]
1502
+ checks: [uiFiles, (setup, context) => setupNotesChecks(setup, context)]
1498
1503
  }),
1499
1504
  descriptor({
1500
1505
  type: "scenario_editor",
@@ -1586,11 +1591,14 @@ var VALIDATION_DESCRIPTORS = [
1586
1591
  // `Scenario` gate judges the defaults too: a game that cannot run
1587
1592
  // on them alone says so here, not when a session is created
1588
1593
  // (§15.8).
1594
+ (game, context) => ungatedSettingsChecks(game.definition.identifier, context.config),
1589
1595
  async (game, context) => {
1590
1596
  if (!hasScenarioGate(context.config)) return { errors: [] };
1591
1597
  const resource = { type: "game", identifier: game.definition.identifier };
1592
1598
  const errors = [];
1593
1599
  const errorFindings = [];
1600
+ const warnings = [];
1601
+ const findings = [];
1594
1602
  if (!(context.config.requires ?? []).includes(SCENARIO_VALIDATION)) {
1595
1603
  const message = `A validator exports \`Scenario\`, which needs the \`${SCENARIO_VALIDATION}\` feature, but \`requires\` does not list it`;
1596
1604
  errors.push(message);
@@ -1618,8 +1626,10 @@ var VALIDATION_DESCRIPTORS = [
1618
1626
  );
1619
1627
  errors.push(...refused.errors);
1620
1628
  errorFindings.push(...refused.errorFindings);
1629
+ warnings.push(...refused.warnings);
1630
+ findings.push(...refused.findings);
1621
1631
  }
1622
- return errorFindings.length > 0 ? { errors, errorFindings } : { errors };
1632
+ return errorFindings.length > 0 ? { errors, errorFindings, warnings, findings } : { errors, warnings, findings };
1623
1633
  },
1624
1634
  (_game, context) => {
1625
1635
  const defaults = (context.config.scenarios ?? []).filter(
@@ -1779,14 +1789,68 @@ async function validateLoadedPackage(config, options) {
1779
1789
  }
1780
1790
  };
1781
1791
  }
1782
- function record(result, outcome) {
1783
- if (outcome.errorFindings) {
1784
- result.errors.push(...outcome.errors);
1785
- result.diagnostics.push(
1786
- ...outcome.errorFindings.map((finding) => located("error", finding, result))
1792
+ function setupNotesChecks(setup, context) {
1793
+ const directory = resolve2(context.workingDir, setup.rootDirectory);
1794
+ const schemas = settingsSchemas(context.config);
1795
+ const identifiers = new Set(Object.keys(schemas));
1796
+ const configures = new Set(setup.definition.configures ?? []);
1797
+ const resource = { type: "setup", identifier: "setup" };
1798
+ const outcome = {
1799
+ errors: [],
1800
+ warnings: [],
1801
+ findings: []
1802
+ };
1803
+ for (const locale of setupNotesLocales(directory)) {
1804
+ const file = `setup/${SETUP_NOTES_DIRECTORY}/${locale}.md`;
1805
+ const markdown = readFileSync2(
1806
+ resolve2(directory, SETUP_NOTES_DIRECTORY, `${locale}.md`),
1807
+ "utf-8"
1787
1808
  );
1788
- return;
1809
+ for (const { path, line } of notesSettingReferences(markdown, identifiers)) {
1810
+ if (!settingPathDeclared(schemas, path)) continue;
1811
+ const identifier = parseSettingPath(path)?.identifier ?? "";
1812
+ if (!configures.has(identifier)) {
1813
+ const message = `Setup notes ${file}, line ${line}, name \`${path}\`, but the setup UI does not configure "${identifier}", so a host refuses that change. Add "${identifier}" to its \`configures\`, or leave the setting out of the notes.`;
1814
+ outcome.warnings.push(message);
1815
+ outcome.findings.push({
1816
+ severity: "warning",
1817
+ code: "SETUP_NOTES_UNCONFIGURED",
1818
+ message,
1819
+ file,
1820
+ line,
1821
+ resource
1822
+ });
1823
+ }
1824
+ }
1825
+ }
1826
+ return outcome;
1827
+ }
1828
+ function ungatedSettingsChecks(gameIdentifier, config) {
1829
+ const resource = { type: "game", identifier: gameIdentifier };
1830
+ const warnings = [];
1831
+ const findings = [];
1832
+ const configures = config.setup?.definition.configures ?? [];
1833
+ if (hasScenarioGate(config) && configures.length > 0) {
1834
+ const gated = new Set(
1835
+ (config.validators ?? []).filter((v) => v.definition.gates?.includes("scenario")).flatMap((v) => v.definition.settings ?? [])
1836
+ );
1837
+ for (const identifier of configures) {
1838
+ if (identifier === GAME_SETTINGS || gated.has(identifier)) continue;
1839
+ const message = `The setup UI changes the "${identifier}" settings, but no \`Scenario\` gate declares them, so nothing checks a facilitator's changes to them before the session starts. Add "${identifier}" to the \`settings\` of the validator that exports \`Scenario\` if a change there can break play.`;
1840
+ warnings.push(message);
1841
+ findings.push({
1842
+ severity: "warning",
1843
+ code: "SETTINGS_UNGATED",
1844
+ message,
1845
+ file: bundleFileOf("setup", "setup"),
1846
+ pointer: pointerOf("definition", "configures", configures.indexOf(identifier)),
1847
+ resource
1848
+ });
1849
+ }
1789
1850
  }
1851
+ return { errors: [], warnings, findings };
1852
+ }
1853
+ function record(result, outcome) {
1790
1854
  const byMessage = new Map((outcome.findings ?? []).map((f) => [f.message, f]));
1791
1855
  const add = (severity, message) => {
1792
1856
  const finding = byMessage.get(message) ?? {
@@ -1795,9 +1859,16 @@ function record(result, outcome) {
1795
1859
  };
1796
1860
  result.diagnostics.push(located(severity, finding, result));
1797
1861
  };
1798
- for (const message of outcome.errors) {
1799
- result.errors.push(message);
1800
- add("error", message);
1862
+ if (outcome.errorFindings) {
1863
+ result.errors.push(...outcome.errors);
1864
+ result.diagnostics.push(
1865
+ ...outcome.errorFindings.map((finding) => located("error", finding, result))
1866
+ );
1867
+ } else {
1868
+ for (const message of outcome.errors) {
1869
+ result.errors.push(message);
1870
+ add("error", message);
1871
+ }
1801
1872
  }
1802
1873
  for (const message of outcome.warnings ?? []) {
1803
1874
  result.warnings.push(message);
@@ -1816,20 +1887,27 @@ function located(severity, finding, resource) {
1816
1887
  function scenarioRefusals(problems, subject, resource, file, pointerFor) {
1817
1888
  const errors = [];
1818
1889
  const errorFindings = [];
1890
+ const warnings = [];
1891
+ const findings = [];
1819
1892
  for (const problem of problems) {
1820
1893
  const setting = problem.path ? ` ${problem.path}:` : "";
1821
- const message = `${subject} is refused by validator "${problem.validatorIdentifier}":${setting} ${problem.message}`;
1822
1894
  const pointer = problem.path ? pointerFor(problem.path) : void 0;
1823
- errors.push(message);
1824
- errorFindings.push({
1825
- code: "SCENARIO_REFUSED",
1826
- message,
1895
+ const where = {
1827
1896
  ...file === void 0 ? {} : { file },
1828
1897
  ...pointer === void 0 ? {} : { pointer },
1829
1898
  resource
1830
- });
1899
+ };
1900
+ if (!isBlocking(problem)) {
1901
+ const message2 = `${subject} has a warning from validator "${problem.validatorIdentifier}":${setting} ${problem.message}`;
1902
+ warnings.push(message2);
1903
+ findings.push({ severity: "warning", code: "SCENARIO_WARNING", message: message2, ...where });
1904
+ continue;
1905
+ }
1906
+ const message = `${subject} is refused by validator "${problem.validatorIdentifier}":${setting} ${problem.message}`;
1907
+ errors.push(message);
1908
+ errorFindings.push({ code: "SCENARIO_REFUSED", message, ...where });
1831
1909
  }
1832
- return { errors, errorFindings };
1910
+ return { errors, errorFindings, warnings, findings };
1833
1911
  }
1834
1912
 
1835
1913
  export {
@@ -1,52 +1,52 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolvePatchedDefinition
4
- } from "./cli-4VZIJYKU.js";
4
+ } from "./cli-KMT235FV.js";
5
5
  import "./cli-S5IVGDDD.js";
6
6
  import {
7
7
  getResourceIdentifierError,
8
8
  readAuthoredBundle
9
- } from "./cli-JR5AZLLK.js";
9
+ } from "./cli-3HPAKEJJ.js";
10
10
  import {
11
11
  resolveInputSource
12
- } from "./cli-4UWFQNGF.js";
12
+ } from "./cli-3VV2JLHX.js";
13
13
  import {
14
14
  updateValidatorFiles
15
- } from "./cli-LE5ICDAF.js";
16
- import "./cli-IUS2YCD3.js";
15
+ } from "./cli-MPU4FLA7.js";
16
+ import "./cli-VTLFQHDO.js";
17
17
  import "./cli-QUNIRH7A.js";
18
- import "./cli-YSPZZQCP.js";
18
+ import "./cli-UTHPCZYL.js";
19
19
  import {
20
20
  loadPackageContext
21
- } from "./cli-XSVGKI3R.js";
22
- import "./cli-FXY3DKPW.js";
21
+ } from "./cli-BC4KKNLA.js";
22
+ import "./cli-UADUC4JD.js";
23
23
  import {
24
24
  findBundleFile
25
- } from "./cli-57V4ARER.js";
25
+ } from "./cli-2QM63J3I.js";
26
26
  import {
27
27
  operationError,
28
28
  printOperationResult,
29
29
  regenerateTypes
30
- } from "./cli-JGFJWZFU.js";
30
+ } from "./cli-QAVLRCQ5.js";
31
31
  import {
32
32
  input
33
- } from "./cli-ZTWOE3ZT.js";
34
- import "./cli-H3J3ICCQ.js";
35
- import "./cli-SWZY7L7K.js";
36
- import "./cli-C6G65H6S.js";
37
- import "./cli-UTM4QU67.js";
33
+ } from "./cli-NU4SCD5D.js";
34
+ import "./cli-UZCQL6YP.js";
35
+ import "./cli-SOQJHK4Q.js";
36
+ import "./cli-7S4G4EKK.js";
37
+ import "./cli-O3IMNLN2.js";
38
38
  import "./cli-25RWY5BQ.js";
39
39
  import "./cli-QWQMPCL6.js";
40
40
  import {
41
41
  validateSDKValidator
42
- } from "./cli-ZF7IFB54.js";
42
+ } from "./cli-OUFXSQOW.js";
43
43
  import "./cli-F2D4GGUA.js";
44
44
  import {
45
45
  logger
46
- } from "./cli-4YB3ROVR.js";
46
+ } from "./cli-DMKRP33X.js";
47
47
  import {
48
48
  CliError
49
- } from "./cli-N6H6T2E2.js";
49
+ } from "./cli-AEAFLZGY.js";
50
50
 
51
51
  // cli/commands/resources/validator/update.ts
52
52
  import { readFileSync } from "fs";