@seriousgaming/sdk-tools 1.6.1 → 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 (202) hide show
  1. package/dist/agent/guidance.md +1 -0
  2. package/dist/{cli-2NU2LPEE.js → cli-27M4PX7O.js} +17 -17
  3. package/dist/{cli-2BH7FX27.js → cli-2FXZZLCL.js} +1 -1
  4. package/dist/{cli-5ACDPCXI.js → cli-2KDV2DYC.js} +3 -3
  5. package/dist/{cli-OXAUOWCN.js → cli-2QM63J3I.js} +1 -1
  6. package/dist/{cli-HW53ICZC.js → cli-32NRB2IT.js} +15 -15
  7. package/dist/{cli-45OCBG53.js → cli-3HBYH4VF.js} +11 -11
  8. package/dist/{cli-4VFZHLDG.js → cli-3HPAKEJJ.js} +2 -2
  9. package/dist/{cli-R2MUZQE2.js → cli-3HZGJRQW.js} +11 -11
  10. package/dist/{cli-PGCIHPU7.js → cli-3OCKRPXI.js} +18 -18
  11. package/dist/{cli-64AB62PM.js → cli-3OVXQJEW.js} +2 -2
  12. package/dist/{cli-4UWFQNGF.js → cli-3VV2JLHX.js} +1 -1
  13. package/dist/{cli-XSLNH5PR.js → cli-42ZUP4X3.js} +141 -5
  14. package/dist/{cli-ZJFQ7EEA.js → cli-4B5OBHSY.js} +19 -19
  15. package/dist/{cli-7A6MKCUJ.js → cli-4EMNCU63.js} +27 -19
  16. package/dist/cli-5CG6BMCY.js +36 -0
  17. package/dist/{cli-XZCJIKIV.js → cli-5FRKWNVP.js} +19 -19
  18. package/dist/{cli-Y3DDNMPX.js → cli-5P66N5G6.js} +17 -17
  19. package/dist/{cli-6VNKQ3OX.js → cli-5SYPXJCB.js} +28 -16
  20. package/dist/{cli-G6CANSPL.js → cli-66AHBZRZ.js} +15 -15
  21. package/dist/{cli-BJMS3VX3.js → cli-6AGWTGTO.js} +106 -28
  22. package/dist/{cli-TTMBBEJC.js → cli-6BAZE75K.js} +18 -18
  23. package/dist/{cli-GFNDW2DL.js → cli-6FVHRL3H.js} +19 -19
  24. package/dist/{cli-QVASWX2A.js → cli-6GDPO5VU.js} +2 -2
  25. package/dist/{cli-7XLHO2FE.js → cli-6NBER36P.js} +1 -1
  26. package/dist/{cli-FQRVFGN6.js → cli-726NJARI.js} +0 -0
  27. package/dist/{cli-CD5CIJZI.js → cli-72DRYVTT.js} +13 -13
  28. package/dist/{cli-MMN4BPO4.js → cli-7CW2BBJG.js} +1 -1
  29. package/dist/{cli-XAT25PRU.js → cli-7GJGFILU.js} +15 -15
  30. package/dist/{cli-HFX3YPUL.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-KGM6RRQW.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-DOXRQ3S5.js → cli-C7YZNPWX.js} +11 -11
  41. package/dist/{cli-HOE3WLFH.js → cli-CAX4CQTC.js} +13 -13
  42. package/dist/{cli-YOTGR3NB.js → cli-CVOLMK3Z.js} +1 -1
  43. package/dist/{cli-ILFDANBR.js → cli-D3CZRXVJ.js} +63 -17
  44. package/dist/{cli-4YB3ROVR.js → cli-DMKRP33X.js} +1 -1
  45. package/dist/{cli-Y3O5F4JN.js → cli-DPFN2LIZ.js} +15 -15
  46. package/dist/{cli-6UTPHWRQ.js → cli-DT756M3Z.js} +20 -20
  47. package/dist/{cli-TIDQ4WUE.js → cli-DXHPYN4N.js} +1 -1
  48. package/dist/{cli-6K3VQQUS.js → cli-E665NKUQ.js} +5 -5
  49. package/dist/{cli-O5ABH2WK.js → cli-EK7CGMGS.js} +17 -17
  50. package/dist/{cli-6QB2VFPY.js → cli-ESU3J563.js} +15 -15
  51. package/dist/{cli-VPRRICZA.js → cli-F47ELAXM.js} +47 -47
  52. package/dist/{cli-RLEGRWFM.js → cli-FH4WBZHA.js} +14 -14
  53. package/dist/{cli-3D3ZXWOV.js → cli-FHKRO6OU.js} +19 -19
  54. package/dist/{cli-JZCLIT3O.js → cli-FSEDPZR5.js} +19 -19
  55. package/dist/{cli-XOTNXEJA.js → cli-FV45UZQP.js} +19 -19
  56. package/dist/{cli-AV2FYC5G.js → cli-G7FX7ZIU.js} +12 -12
  57. package/dist/{cli-IP4RXGHM.js → cli-GFONBOJT.js} +129 -38
  58. package/dist/{cli-C5QOJJWX.js → cli-GHIMH6JU.js} +1 -1
  59. package/dist/{cli-IDVUHGKG.js → cli-HC7L5DXV.js} +15 -15
  60. package/dist/{cli-WU43JT4T.js → cli-HJPNNORV.js} +2 -2
  61. package/dist/{cli-QY5NZAR7.js → cli-HMEZHQBC.js} +17 -17
  62. package/dist/{cli-JZOZOEZM.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-Z56ZIVA6.js → cli-JA6UFTSX.js} +17 -17
  67. package/dist/{cli-MJV47HKI.js → cli-JOXCAGM7.js} +19 -19
  68. package/dist/{cli-ZBN5KAIB.js → cli-JQ6I5GGE.js} +3 -3
  69. package/dist/{cli-TDSQSCX4.js → cli-K6M6YB67.js} +1 -1
  70. package/dist/{cli-C6ZLPK2U.js → cli-KFVA7DT3.js} +3 -3
  71. package/dist/{cli-KOGRWFN7.js → cli-KH6FKM5A.js} +15 -15
  72. package/dist/{cli-5IAW3LIF.js → cli-KMT235FV.js} +2 -2
  73. package/dist/{cli-ZDUADFBY.js → cli-KU4PG7ZA.js} +15 -15
  74. package/dist/{cli-N45DREM4.js → cli-L4DEEAMK.js} +17 -17
  75. package/dist/{cli-MU5LB43S.js → cli-ME3JKMJL.js} +19 -19
  76. package/dist/{cli-C3CMJSNL.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-4SIWLHQO.js → cli-MPU4FLA7.js} +4 -4
  80. package/dist/{cli-HCRTYQQS.js → cli-MPWTXNF6.js} +2 -2
  81. package/dist/{cli-EVI36HEM.js → cli-N5K2KHPR.js} +15 -15
  82. package/dist/{cli-RSW6EBBD.js → cli-NGOQWOQE.js} +15 -15
  83. package/dist/{cli-ZTWOE3ZT.js → cli-NU4SCD5D.js} +1 -1
  84. package/dist/{cli-BYCHKSSH.js → cli-O3IMNLN2.js} +282 -96
  85. package/dist/{cli-KGT5L7VZ.js → cli-OUFXSQOW.js} +7265 -4467
  86. package/dist/{cli-DFBTZEBX.js → cli-PEY6XZDE.js} +16 -16
  87. package/dist/{cli-QUSCIUOM.js → cli-PLW3TWJ7.js} +19 -19
  88. package/dist/{cli-JVI24FI6.js → cli-PO2ALWHP.js} +13 -13
  89. package/dist/{cli-3BRC32CP.js → cli-PPEB3ENS.js} +18 -18
  90. package/dist/{cli-ZDOTXEKL.js → cli-PZ7G544B.js} +3 -3
  91. package/dist/{cli-L7VYSXQK.js → cli-Q5BKFFDL.js} +4 -4
  92. package/dist/{cli-3ZKWV3PN.js → cli-QAI6T5FL.js} +15 -15
  93. package/dist/{cli-KSGB2ZLK.js → cli-QAVLRCQ5.js} +3 -3
  94. package/dist/{cli-VDBW23SS.js → cli-QDIH2G2P.js} +15 -15
  95. package/dist/cli-SN7D7HTX.js +36 -0
  96. package/dist/{cli-IEMKI7J7.js → cli-SOQJHK4Q.js} +6 -6
  97. package/dist/{cli-4PXNOJQX.js → cli-SPKPDXWD.js} +15 -15
  98. package/dist/{cli-MOPSZ3CS.js → cli-SWUAXVIJ.js} +15 -15
  99. package/dist/cli-TJNLXQJ5.js +36 -0
  100. package/dist/{cli-BUQI5UU4.js → cli-U2EWI6H5.js} +11 -11
  101. package/dist/{cli-TT36JCU5.js → cli-UADUC4JD.js} +2 -2
  102. package/dist/{cli-FWFRKQNE.js → cli-UR63LFVK.js} +2 -2
  103. package/dist/{cli-J4UBELKF.js → cli-UTHPCZYL.js} +2 -2
  104. package/dist/{cli-Q6ZBZYK2.js → cli-UYV3BDPA.js} +3 -3
  105. package/dist/{cli-LQOHATY2.js → cli-UZCQL6YP.js} +3 -3
  106. package/dist/{cli-HKORECAG.js → cli-V5K3CCYZ.js} +2 -2
  107. package/dist/cli-V7L3HEL4.js +36 -0
  108. package/dist/{cli-HSIHDN6K.js → cli-VBSF3R3L.js} +16 -16
  109. package/dist/{cli-NROTDF5Y.js → cli-VQ4OJ4KE.js} +18 -18
  110. package/dist/{cli-IUS2YCD3.js → cli-VTLFQHDO.js} +1 -1
  111. package/dist/{cli-JJSWBW4H.js → cli-W7XCTGQ7.js} +15 -15
  112. package/dist/{cli-UZZFNXRX.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-TTKICM5P.js → cli-YLYB4ITF.js} +13 -13
  117. package/dist/{cli-72XDEFU3.js → cli-ZFY6TGU7.js} +4 -4
  118. package/dist/{cli-6SGCYEEC.js → cli-ZSKP2IRP.js} +53 -38
  119. package/dist/cli.js +53 -51
  120. package/dist/client.js +17699 -16630
  121. package/dist/core/game-settings.d.ts +5 -3
  122. package/dist/core/save-scenario.d.ts +1 -0
  123. package/dist/core/session-roster.d.ts +10 -0
  124. package/dist/core/session-start-gate.d.ts +25 -0
  125. package/dist/core/session.d.ts +4 -0
  126. package/dist/dev/console/assets/index-CVNjiRUh.js +208 -0
  127. package/dist/dev/console/index.html +1 -1
  128. package/dist/dev/routes.d.ts +5 -2
  129. package/dist/dev/shell.d.ts +9 -1
  130. package/dist/dev/view/batch.d.ts +11 -1
  131. package/dist/dev/view/route.d.ts +18 -1
  132. package/dist/dev/view/view.d.ts +9 -0
  133. package/dist/docs/api/deck.md +1 -1
  134. package/dist/docs/api/index.md +2 -2
  135. package/dist/docs/api/sdk-commands.md +4 -0
  136. package/dist/docs/api/sdk-e2e.md +12 -6
  137. package/dist/docs/api/sdk-projection.md +1 -0
  138. package/dist/docs/api/sdk-tools-client.md +7 -1
  139. package/dist/docs/api/sdk-tools-playwright.md +1 -8
  140. package/dist/docs/api/sdk-ui-testing.md +1 -0
  141. package/dist/docs/api/sdk-ui.md +67 -63
  142. package/dist/docs/api/sdk.md +12 -1
  143. package/dist/docs/changelog.md +26 -0
  144. package/dist/docs/cli-and-dev-server.md +4 -0
  145. package/dist/docs/cli-error-codes.md +7 -1
  146. package/dist/docs/cli-reference.md +20 -2
  147. package/dist/docs/concepts/index.md +1 -0
  148. package/dist/docs/guides/engine.md +5 -0
  149. package/dist/docs/guides/file-handling.md +4 -1
  150. package/dist/docs/guides/llm-integration.md +3 -2
  151. package/dist/docs/guides/multi-team-games.md +2 -0
  152. package/dist/docs/guides/patterns.md +5 -0
  153. package/dist/docs/guides/presentation.md +11 -10
  154. package/dist/docs/guides/session-hooks.md +16 -0
  155. package/dist/docs/guides/session.md +1 -1
  156. package/dist/docs/guides/settings.md +6 -2
  157. package/dist/docs/guides/setup.md +23 -2
  158. package/dist/docs/guides/speech-generation.md +1 -0
  159. package/dist/docs/guides/testing.md +2 -0
  160. package/dist/docs/guides/tick-controller.md +2 -0
  161. package/dist/docs/guides/type-safety.md +2 -1
  162. package/dist/docs/guides/ui-files-and-llms.md +3 -1
  163. package/dist/docs/guides/upgrading.md +16 -0
  164. package/dist/docs/guides/validators.md +27 -4
  165. package/dist/docs/guides/waiting-room.md +2 -0
  166. package/dist/docs/page-index.md +12 -10
  167. package/dist/docs/recipes/call-endpoint-from-ui.md +1 -0
  168. package/dist/docs/recipes/create-scenario-editor.md +2 -1
  169. package/dist/docs/recipes/create-setup.md +2 -1
  170. package/dist/docs/recipes/declare-api-uses.md +1 -0
  171. package/dist/docs/recipes/describe-setup-with-endpoint.md +69 -0
  172. package/dist/docs/recipes/index.md +3 -1
  173. package/dist/docs/recipes/share-logic-between-engine-and-ui.md +2 -2
  174. package/dist/docs/recipes/test-user-interface.md +1 -1
  175. package/dist/docs/recipes/validate-scenarios.md +9 -3
  176. package/dist/docs/recipes/write-setup-notes.md +58 -0
  177. package/dist/docs/troubleshooting.md +2 -1
  178. package/dist/execution/executor.d.ts +12 -0
  179. package/dist/execution/scenario-gates.d.ts +40 -0
  180. package/dist/host/protocol.d.ts +10 -1
  181. package/dist/host.js +1083 -467
  182. package/dist/playwright.js +17760 -16691
  183. package/dist/runtime/manifest-version.d.ts +1 -1
  184. package/dist/runtime.js +4 -2
  185. package/dist/schema.json +10 -1
  186. package/dist/setup/setup-notes.d.ts +42 -0
  187. package/dist/templates/package/package.json.liquid +15 -15
  188. package/dist/templates/starter-game/package.json +13 -13
  189. package/dist/utils/error-codes.d.ts +13 -1
  190. package/dist/validation/package-validation.d.ts +1 -1
  191. package/package.json +22 -23
  192. package/dist/cli-2GZYGRVL.js +0 -36
  193. package/dist/cli-5SM367K7.js +0 -30
  194. package/dist/cli-DDJYUKQG.js +0 -36
  195. package/dist/cli-LK3V4RI5.js +0 -36
  196. package/dist/cli-N24OHSAN.js +0 -36
  197. package/dist/cli-OMWC75CC.js +0 -256
  198. package/dist/cli-RCIWBCXD.js +0 -36
  199. package/dist/cli-UMEBPAZQ.js +0 -16
  200. package/dist/cli-VQ6HVQW4.js +0 -4010
  201. package/dist/cli-WR3NOY74.js +0 -36
  202. package/dist/dev/console/assets/index-CuMOOH9m.js +0 -204
@@ -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/setup/delete.ts
31
+ function deleteSetup(options) {
32
+ return deleteSettingsEditor("setup", options);
33
+ }
34
+ export {
35
+ deleteSetup
36
+ };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CliError
4
- } from "./cli-N6H6T2E2.js";
4
+ } from "./cli-AEAFLZGY.js";
5
5
 
6
6
  // cli/dev/lockfile.ts
7
7
  import { createHash, randomUUID } from "crypto";
@@ -1,32 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveSession
4
- } from "./cli-6K3VQQUS.js";
5
- import "./cli-WU43JT4T.js";
4
+ } from "./cli-E665NKUQ.js";
5
+ import "./cli-HJPNNORV.js";
6
6
  import {
7
7
  emit,
8
8
  teamIndexFromArgument,
9
9
  viewReport,
10
10
  viewSummary,
11
11
  warnIfStale
12
- } from "./cli-L7VYSXQK.js";
13
- import "./cli-FQRVFGN6.js";
14
- import "./cli-XSLNH5PR.js";
15
- import "./cli-TDSQSCX4.js";
16
- import "./cli-SRHBXZCN.js";
17
- import "./cli-KGT5L7VZ.js";
12
+ } from "./cli-Q5BKFFDL.js";
13
+ import "./cli-726NJARI.js";
14
+ import "./cli-42ZUP4X3.js";
15
+ import "./cli-K6M6YB67.js";
16
+ import "./cli-Y33ULHYO.js";
17
+ import "./cli-WWNTBK37.js";
18
18
  import "./cli-4LKXZQ2B.js";
19
- import "./cli-MMN4BPO4.js";
19
+ import "./cli-7CW2BBJG.js";
20
20
  import "./cli-QUNIRH7A.js";
21
- import "./cli-BYCHKSSH.js";
21
+ import "./cli-O3IMNLN2.js";
22
22
  import "./cli-25RWY5BQ.js";
23
23
  import "./cli-QWQMPCL6.js";
24
- import "./cli-VQ6HVQW4.js";
24
+ import "./cli-OUFXSQOW.js";
25
25
  import "./cli-F2D4GGUA.js";
26
- import "./cli-4YB3ROVR.js";
26
+ import "./cli-DMKRP33X.js";
27
27
  import {
28
28
  CliError
29
- } from "./cli-N6H6T2E2.js";
29
+ } from "./cli-AEAFLZGY.js";
30
30
 
31
31
  // cli/commands/view.ts
32
32
  async function viewCommand(options) {
@@ -1,19 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  validateEngine
4
- } from "./cli-7XLHO2FE.js";
4
+ } from "./cli-6NBER36P.js";
5
5
  import "./cli-4LKXZQ2B.js";
6
6
  import {
7
7
  LOGIC_NODE_BUILTIN,
8
8
  Transpile,
9
9
  loadConfig
10
- } from "./cli-VQ6HVQW4.js";
10
+ } from "./cli-OUFXSQOW.js";
11
11
  import "./cli-F2D4GGUA.js";
12
- import "./cli-4YB3ROVR.js";
12
+ import "./cli-DMKRP33X.js";
13
13
  import {
14
14
  CliError,
15
15
  reportResult
16
- } from "./cli-N6H6T2E2.js";
16
+ } from "./cli-AEAFLZGY.js";
17
17
 
18
18
  // cli/commands/build-engine.ts
19
19
  import { resolve, join } from "path";
@@ -1,49 +1,50 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  validatePackage
4
- } from "./cli-BJMS3VX3.js";
4
+ } from "./cli-6AGWTGTO.js";
5
5
  import "./cli-ILKCQNM6.js";
6
- import "./cli-7XLHO2FE.js";
7
- import "./cli-KGT5L7VZ.js";
6
+ import "./cli-6NBER36P.js";
7
+ import "./cli-WWNTBK37.js";
8
8
  import "./cli-4LKXZQ2B.js";
9
9
  import {
10
10
  readSdkToolsVersion
11
- } from "./cli-IUS2YCD3.js";
11
+ } from "./cli-VTLFQHDO.js";
12
12
  import {
13
13
  distPath
14
- } from "./cli-OXAUOWCN.js";
14
+ } from "./cli-2QM63J3I.js";
15
15
  import {
16
16
  generateAllTypes
17
- } from "./cli-IEMKI7J7.js";
18
- import "./cli-OMWC75CC.js";
19
- import "./cli-BYCHKSSH.js";
17
+ } from "./cli-SOQJHK4Q.js";
18
+ import "./cli-7S4G4EKK.js";
19
+ import "./cli-O3IMNLN2.js";
20
20
  import "./cli-25RWY5BQ.js";
21
21
  import "./cli-QWQMPCL6.js";
22
22
  import {
23
23
  LOGIC_NODE_BUILTIN,
24
24
  MANIFEST_VERSION,
25
+ SETUP_NOTES_DIRECTORY,
25
26
  SPEC_REVISION,
26
27
  Transpile,
27
28
  getResourceMeta,
28
29
  loadConfig
29
- } from "./cli-VQ6HVQW4.js";
30
+ } from "./cli-OUFXSQOW.js";
30
31
  import "./cli-F2D4GGUA.js";
31
32
  import {
32
33
  getVerboseMode,
33
34
  logger
34
- } from "./cli-4YB3ROVR.js";
35
+ } from "./cli-DMKRP33X.js";
35
36
  import {
36
37
  CliError,
37
38
  diagnosticLocation,
38
39
  isJsonOutput,
39
40
  recordDiagnostic,
40
41
  reportResult
41
- } from "./cli-N6H6T2E2.js";
42
+ } from "./cli-AEAFLZGY.js";
42
43
 
43
44
  // cli/commands/build.ts
44
- import { existsSync as existsSync3 } from "fs";
45
- import { cp as cp3, mkdir as mkdir8, rm, writeFile as writeFile6 } from "fs/promises";
46
- import { resolve as resolve7, join as join9, sep } from "path";
45
+ import { existsSync as existsSync4 } from "fs";
46
+ import { cp as cp4, mkdir as mkdir8, rm, writeFile as writeFile6 } from "fs/promises";
47
+ import { resolve as resolve7, join as join10, sep } from "path";
47
48
 
48
49
  // cli/bundling/endpoint-bundler.ts
49
50
  import { mkdir, writeFile } from "fs/promises";
@@ -201,13 +202,29 @@ async function bundleScenario(scenario, workingDir, buildDir) {
201
202
  }
202
203
  }
203
204
 
205
+ // cli/bundling/setup-notes-bundler.ts
206
+ import { existsSync as existsSync3 } from "fs";
207
+ import { cp as cp3 } from "fs/promises";
208
+ import { join as join6 } from "path";
209
+ async function bundleSetupNotes(setup, workingDir, buildDir) {
210
+ const source = join6(workingDir, setup.rootDirectory, SETUP_NOTES_DIRECTORY);
211
+ if (!existsSync3(source)) return;
212
+ const output = join6(
213
+ buildDir,
214
+ distPath(getResourceMeta("setup"), "setup"),
215
+ SETUP_NOTES_DIRECTORY
216
+ );
217
+ await cp3(source, output, { recursive: true });
218
+ logger.debug(` Copied setup notes -> ${output}`);
219
+ }
220
+
204
221
  // cli/bundling/tick-controller-bundler.ts
205
222
  import { mkdir as mkdir6, writeFile as writeFile4 } from "fs/promises";
206
- import { join as join6, resolve as resolve4 } from "path";
223
+ import { join as join7, resolve as resolve4 } from "path";
207
224
  async function bundleTickController(tickController, workingDir, buildDir) {
208
225
  logger.debug(`Bundling ${tickController.definition.identifier}...`);
209
- const tickControllerSourceDir = join6(workingDir, tickController.rootDirectory);
210
- const tickControllerOutputDir = join6(
226
+ const tickControllerSourceDir = join7(workingDir, tickController.rootDirectory);
227
+ const tickControllerOutputDir = join7(
211
228
  buildDir,
212
229
  distPath(getResourceMeta("tick_controller"), tickController.definition.identifier)
213
230
  );
@@ -228,9 +245,9 @@ async function bundleTickController(tickController, workingDir, buildDir) {
228
245
  entrypoint: logicEntrypoint,
229
246
  packageRoot: workingDir
230
247
  });
231
- const logicOutputDir = join6(tickControllerOutputDir, tickController.logic.directory);
248
+ const logicOutputDir = join7(tickControllerOutputDir, tickController.logic.directory);
232
249
  await mkdir6(logicOutputDir, { recursive: true });
233
- const outputPath = join6(logicOutputDir, "logic.js");
250
+ const outputPath = join7(logicOutputDir, "logic.js");
234
251
  await writeFile4(outputPath, bundledCode, "utf-8");
235
252
  logger.debug(` Bundled ${logicEntrypoint} -> ${outputPath}`);
236
253
  } finally {
@@ -241,12 +258,12 @@ async function bundleTickController(tickController, workingDir, buildDir) {
241
258
 
242
259
  // cli/bundling/ui-bundler.ts
243
260
  import { realpathSync } from "fs";
244
- import { join as join7, resolve as resolve5 } from "path";
261
+ import { join as join8, resolve as resolve5 } from "path";
245
262
  import react from "@vitejs/plugin-react";
246
263
  import { build, loadConfigFromFile, mergeConfig } from "vite";
247
264
  async function bundleUserInterface(ui, workingDir, buildDir, type) {
248
- const uiOutputDir = join7(buildDir, distPath(getResourceMeta(type), ui.definition.identifier));
249
- const uiRootDir = join7(workingDir, ui.rootDirectory);
265
+ const uiOutputDir = join8(buildDir, distPath(getResourceMeta(type), ui.definition.identifier));
266
+ const uiRootDir = join8(workingDir, ui.rootDirectory);
250
267
  const uiDir = realpathSync(uiRootDir);
251
268
  logger.debug(`Building ${ui.definition.identifier}...`);
252
269
  const isVerbose = getVerboseMode();
@@ -297,11 +314,11 @@ async function bundleUserInterface(ui, workingDir, buildDir, type) {
297
314
 
298
315
  // cli/bundling/validator-bundler.ts
299
316
  import { mkdir as mkdir7, writeFile as writeFile5 } from "fs/promises";
300
- import { join as join8, resolve as resolve6 } from "path";
317
+ import { join as join9, resolve as resolve6 } from "path";
301
318
  async function bundleValidator(validator, workingDir, buildDir) {
302
319
  logger.debug(`Bundling ${validator.definition.identifier}...`);
303
- const validatorSourceDir = join8(workingDir, validator.rootDirectory);
304
- const validatorOutputDir = join8(
320
+ const validatorSourceDir = join9(workingDir, validator.rootDirectory);
321
+ const validatorOutputDir = join9(
305
322
  buildDir,
306
323
  distPath(getResourceMeta("validator"), validator.definition.identifier)
307
324
  );
@@ -322,9 +339,9 @@ async function bundleValidator(validator, workingDir, buildDir) {
322
339
  entrypoint: logicEntrypoint,
323
340
  packageRoot: workingDir
324
341
  });
325
- const logicOutputDir = join8(validatorOutputDir, validator.logic.directory);
342
+ const logicOutputDir = join9(validatorOutputDir, validator.logic.directory);
326
343
  await mkdir7(logicOutputDir, { recursive: true });
327
- const outputPath = join8(logicOutputDir, "logic.js");
344
+ const outputPath = join9(logicOutputDir, "logic.js");
328
345
  await writeFile5(outputPath, bundledCode, "utf-8");
329
346
  logger.debug(` Bundled ${logicEntrypoint} -> ${outputPath}`);
330
347
  } finally {
@@ -496,12 +513,10 @@ async function buildCommand(options) {
496
513
  userInterfaces,
497
514
  (r) => bundleUserInterface(r, wd, buildDir, "ui")
498
515
  ),
499
- bundleStep(
500
- scaffoldDir("setup"),
501
- "the setup user interface",
502
- setupBuild,
503
- (r) => bundleUserInterface(r, wd, buildDir, "setup")
504
- ),
516
+ bundleStep(scaffoldDir("setup"), "the setup user interface", setupBuild, async (r) => {
517
+ await bundleUserInterface(r, wd, buildDir, "setup");
518
+ await bundleSetupNotes(r, wd, buildDir);
519
+ }),
505
520
  bundleStep(
506
521
  scaffoldDir("scenario_editor"),
507
522
  "the scenario editor",
@@ -559,7 +574,7 @@ async function buildCommand(options) {
559
574
  )
560
575
  ];
561
576
  for (const step of bundleSteps.filter((step2) => step2.hasContent)) {
562
- await mkdir8(join9(buildDir, step.subdir), { recursive: true });
577
+ await mkdir8(join10(buildDir, step.subdir), { recursive: true });
563
578
  }
564
579
  logger.debug(` Created ${buildDir}`);
565
580
  logger.newline();
@@ -567,10 +582,10 @@ async function buildCommand(options) {
567
582
  await step.run();
568
583
  }
569
584
  const sharedAssetsSource = resolve7(options.workingDir, "shared-assets");
570
- if (existsSync3(sharedAssetsSource)) {
585
+ if (existsSync4(sharedAssetsSource)) {
571
586
  logger.section("Step 5: Copying shared assets...");
572
- const sharedAssetsOutput = join9(buildDir, "shared-assets");
573
- await cp3(sharedAssetsSource, sharedAssetsOutput, { recursive: true });
587
+ const sharedAssetsOutput = join10(buildDir, "shared-assets");
588
+ await cp4(sharedAssetsSource, sharedAssetsOutput, { recursive: true });
574
589
  logger.debug(` Copied shared-assets -> ${sharedAssetsOutput}`);
575
590
  logger.newline();
576
591
  }
@@ -602,7 +617,7 @@ async function buildCommand(options) {
602
617
  validators: validators.map(logicBundle),
603
618
  endpoints: endpoints.map(logicBundle)
604
619
  };
605
- const configOutputPath = join9(buildDir, "seriousgaming.json");
620
+ const configOutputPath = join10(buildDir, "seriousgaming.json");
606
621
  await writeFile6(configOutputPath, JSON.stringify(configuration, null, 4), "utf-8");
607
622
  logger.debug(` Generated ${configOutputPath}`);
608
623
  logger.success("Build complete!");
package/dist/cli.js CHANGED
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  RESOURCE_DESCRIPTORS,
4
4
  lazy
5
- } from "./cli-VPRRICZA.js";
5
+ } from "./cli-F47ELAXM.js";
6
6
  import {
7
7
  DEV_PORT_ENV_VAR,
8
8
  ERROR_OVERLAY_ENV_VAR,
9
9
  defaultDevPort
10
- } from "./cli-C5QOJJWX.js";
10
+ } from "./cli-GHIMH6JU.js";
11
11
  import {
12
12
  PUBLIC_ASSET_URL_ENV_VAR,
13
13
  PUBLIC_HMR_URL_ENV_VAR,
14
14
  PUBLIC_URL_ENV_VAR
15
- } from "./cli-YOTGR3NB.js";
15
+ } from "./cli-CVOLMK3Z.js";
16
16
  import {
17
17
  setAssumeYes,
18
18
  setPromptUsage
19
- } from "./cli-ZTWOE3ZT.js";
19
+ } from "./cli-NU4SCD5D.js";
20
20
  import {
21
21
  compact,
22
22
  indent,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./cli-F2D4GGUA.js";
25
25
  import {
26
26
  setVerboseMode
27
- } from "./cli-4YB3ROVR.js";
27
+ } from "./cli-DMKRP33X.js";
28
28
  import {
29
29
  CliError,
30
30
  beginCommand,
@@ -35,7 +35,7 @@ import {
35
35
  jsonRequestedByEnvironment,
36
36
  processExitRequested,
37
37
  setCommandPath
38
- } from "./cli-N6H6T2E2.js";
38
+ } from "./cli-AEAFLZGY.js";
39
39
 
40
40
  // cli/program.ts
41
41
  import { cwd } from "process";
@@ -138,66 +138,67 @@ function newFileHelp(spec) {
138
138
  }
139
139
 
140
140
  // cli/program.ts
141
- var blobUploadCommand = lazy(() => import("./cli-FWFRKQNE.js"), "blobUploadCommand");
142
- var buildCommand = lazy(() => import("./cli-6SGCYEEC.js"), "buildCommand");
143
- var buildEngineCommand = lazy(() => import("./cli-72XDEFU3.js"), "buildEngineCommand");
144
- var configGetCommand = lazy(() => import("./cli-VL2P354N.js"), "configGetCommand");
145
- var configPathCommand = lazy(() => import("./cli-VL2P354N.js"), "configPathCommand");
146
- var configSetCommand = lazy(() => import("./cli-VL2P354N.js"), "configSetCommand");
147
- var configureCommand = lazy(() => import("./cli-ILFDANBR.js"), "configureCommand");
148
- var deleteCommand = lazy(() => import("./cli-45OCBG53.js"), "deleteCommand");
149
- var devCommand = lazy(() => import("./cli-O5ABH2WK.js"), "devCommand");
150
- var devStatusCommand = lazy(() => import("./cli-C47GJATR.js"), "devStatusCommand");
151
- var devStopCommand = lazy(() => import("./cli-C47GJATR.js"), "devStopCommand");
152
- var docsCommand = lazy(() => import("./cli-TIDQ4WUE.js"), "docsCommand");
153
- var docsExportCommand = lazy(() => import("./cli-MYJGMA6U.js"), "docsExportCommand");
141
+ var blobUploadCommand = lazy(() => import("./cli-UR63LFVK.js"), "blobUploadCommand");
142
+ var buildCommand = lazy(() => import("./cli-ZSKP2IRP.js"), "buildCommand");
143
+ var buildEngineCommand = lazy(() => import("./cli-ZFY6TGU7.js"), "buildEngineCommand");
144
+ var configGetCommand = lazy(() => import("./cli-IVZ7AHUJ.js"), "configGetCommand");
145
+ var configPathCommand = lazy(() => import("./cli-IVZ7AHUJ.js"), "configPathCommand");
146
+ var configSetCommand = lazy(() => import("./cli-IVZ7AHUJ.js"), "configSetCommand");
147
+ var configureCommand = lazy(() => import("./cli-D3CZRXVJ.js"), "configureCommand");
148
+ var deleteCommand = lazy(() => import("./cli-3HBYH4VF.js"), "deleteCommand");
149
+ var devCommand = lazy(() => import("./cli-EK7CGMGS.js"), "devCommand");
150
+ var devStatusCommand = lazy(() => import("./cli-AGYCXRPR.js"), "devStatusCommand");
151
+ var devStopCommand = lazy(() => import("./cli-AGYCXRPR.js"), "devStopCommand");
152
+ var docsCommand = lazy(() => import("./cli-DXHPYN4N.js"), "docsCommand");
153
+ var docsExportCommand = lazy(() => import("./cli-IC5FOT2J.js"), "docsExportCommand");
154
154
  var endpointAuditCommand = lazy(
155
- () => import("./cli-R2MUZQE2.js"),
155
+ () => import("./cli-3HZGJRQW.js"),
156
156
  "endpointAuditCommand"
157
157
  );
158
- var endpointCallCommand = lazy(() => import("./cli-IDVUHGKG.js"), "endpointCallCommand");
159
- var endpointListCommand = lazy(() => import("./cli-ZBN5KAIB.js"), "endpointListCommand");
160
- var generateCommand = lazy(() => import("./cli-UMEBPAZQ.js"), "generateCommand");
161
- var initCommand = lazy(() => import("./cli-JVI24FI6.js"), "initCommand");
162
- var newCommand = lazy(() => import("./cli-BUQI5UU4.js"), "newCommand");
158
+ var endpointCallCommand = lazy(() => import("./cli-HC7L5DXV.js"), "endpointCallCommand");
159
+ var endpointListCommand = lazy(() => import("./cli-JQ6I5GGE.js"), "endpointListCommand");
160
+ var generateCommand = lazy(() => import("./cli-BQ3FHENQ.js"), "generateCommand");
161
+ var initCommand = lazy(() => import("./cli-PO2ALWHP.js"), "initCommand");
162
+ var newCommand = lazy(() => import("./cli-U2EWI6H5.js"), "newCommand");
163
163
  var packageBundleCommand = lazy(
164
- () => import("./cli-MJUYJIEP.js"),
164
+ () => import("./cli-C45A5VX6.js"),
165
165
  "packageBundleCommand"
166
166
  );
167
167
  var packagePublishCommand = lazy(
168
- () => import("./cli-B6YHEKIJ.js"),
168
+ () => import("./cli-J2OTL6JH.js"),
169
169
  "packagePublishCommand"
170
170
  );
171
171
  var packageVersionCommand = lazy(
172
- () => import("./cli-QVASWX2A.js"),
172
+ () => import("./cli-6GDPO5VU.js"),
173
173
  "packageVersionCommand"
174
174
  );
175
- var patchCommand = lazy(() => import("./cli-RLEGRWFM.js"), "patchCommand");
176
- var resolveCommand = lazy(() => import("./cli-5ACDPCXI.js"), "resolveCommand");
177
- var screenshotCommand = lazy(() => import("./cli-7A6MKCUJ.js"), "screenshotCommand");
178
- var clockAdvanceCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "clockAdvanceCommand");
179
- var faultCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "faultCommand");
180
- var localeCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "localeCommand");
181
- var participantAddCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "participantAddCommand");
182
- var participantMoveCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "participantMoveCommand");
175
+ var patchCommand = lazy(() => import("./cli-FH4WBZHA.js"), "patchCommand");
176
+ var resolveCommand = lazy(() => import("./cli-2KDV2DYC.js"), "resolveCommand");
177
+ var screenshotCommand = lazy(() => import("./cli-4EMNCU63.js"), "screenshotCommand");
178
+ var clockAdvanceCommand = lazy(() => import("./cli-5SYPXJCB.js"), "clockAdvanceCommand");
179
+ var faultCommand = lazy(() => import("./cli-5SYPXJCB.js"), "faultCommand");
180
+ var localeCommand = lazy(() => import("./cli-5SYPXJCB.js"), "localeCommand");
181
+ var participantAddCommand = lazy(() => import("./cli-5SYPXJCB.js"), "participantAddCommand");
182
+ var participantJoinCommand = lazy(() => import("./cli-5SYPXJCB.js"), "participantJoinCommand");
183
+ var participantMoveCommand = lazy(() => import("./cli-5SYPXJCB.js"), "participantMoveCommand");
183
184
  var participantRenameCommand = lazy(
184
- () => import("./cli-6VNKQ3OX.js"),
185
+ () => import("./cli-5SYPXJCB.js"),
185
186
  "participantRenameCommand"
186
187
  );
187
- var playCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "playCommand");
188
- var reconfigureCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "reconfigureCommand");
189
- var resetCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "resetCommand");
190
- var scenarioCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "scenarioCommand");
191
- var teamAddCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "teamAddCommand");
192
- var teamRemoveCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "teamRemoveCommand");
193
- var teamRenameCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "teamRenameCommand");
194
- var timerCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "timerCommand");
195
- var undoCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "undoCommand");
196
- var waitingRoomCommand = lazy(() => import("./cli-6VNKQ3OX.js"), "waitingRoomCommand");
197
- var tickCommand = lazy(() => import("./cli-5SM367K7.js"), "tickCommand");
198
- var updateCommand = lazy(() => import("./cli-DOXRQ3S5.js"), "updateCommand");
199
- var versionCommand = lazy(() => import("./cli-HCRTYQQS.js"), "versionCommand");
200
- var viewCommand = lazy(() => import("./cli-TTKICM5P.js"), "viewCommand");
188
+ var playCommand = lazy(() => import("./cli-5SYPXJCB.js"), "playCommand");
189
+ var reconfigureCommand = lazy(() => import("./cli-5SYPXJCB.js"), "reconfigureCommand");
190
+ var resetCommand = lazy(() => import("./cli-5SYPXJCB.js"), "resetCommand");
191
+ var scenarioCommand = lazy(() => import("./cli-5SYPXJCB.js"), "scenarioCommand");
192
+ var teamAddCommand = lazy(() => import("./cli-5SYPXJCB.js"), "teamAddCommand");
193
+ var teamRemoveCommand = lazy(() => import("./cli-5SYPXJCB.js"), "teamRemoveCommand");
194
+ var teamRenameCommand = lazy(() => import("./cli-5SYPXJCB.js"), "teamRenameCommand");
195
+ var timerCommand = lazy(() => import("./cli-5SYPXJCB.js"), "timerCommand");
196
+ var undoCommand = lazy(() => import("./cli-5SYPXJCB.js"), "undoCommand");
197
+ var waitingRoomCommand = lazy(() => import("./cli-5SYPXJCB.js"), "waitingRoomCommand");
198
+ var tickCommand = lazy(() => import("./cli-C2XDL4LD.js"), "tickCommand");
199
+ var updateCommand = lazy(() => import("./cli-C7YZNPWX.js"), "updateCommand");
200
+ var versionCommand = lazy(() => import("./cli-MPWTXNF6.js"), "versionCommand");
201
+ var viewCommand = lazy(() => import("./cli-YLYB4ITF.js"), "viewCommand");
201
202
  function commandPath(command) {
202
203
  const names = [];
203
204
  for (let current = command; current?.parent; current = current.parent) {
@@ -450,6 +451,7 @@ Examples:
450
451
  teamCmd.command("rename <team> <name>").description("Rename a team (1-based)").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(teamRenameCommand);
451
452
  const participantCmd = program.command("participant").description("Add, rename, and move participants");
452
453
  participantCmd.command("add [name]").description("Add a participant to a team").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--team [NUMBER]", "team to add them to (1-based, defaults to 1)").option("--no-server", "run in this process instead of starting a dev server").action(participantAddCommand);
454
+ participantCmd.command("join [name]").description("Join through the session link, letting the session choose the team").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(participantJoinCommand);
453
455
  participantCmd.command("rename <participantId> <name>").description("Rename a participant").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(participantRenameCommand);
454
456
  participantCmd.command("move <participantId> <team>").description("Move a participant to another team (1-based)").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(participantMoveCommand);
455
457
  program.command("waiting-room <action>").description("Open or close the session waiting room").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(waitingRoomCommand);