@seriousgaming/sdk-tools 1.11.0 → 1.12.1

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 (192) hide show
  1. package/dist/agent/guidance.md +4 -0
  2. package/dist/{cli-F2D4GGUA.js → cli-2BKEIIA3.js} +66 -0
  3. package/dist/{cli-ZGCG6C22.js → cli-2QGTDHRX.js} +21 -21
  4. package/dist/{cli-SRXDLMXY.js → cli-2SDG3SZ7.js} +21 -21
  5. package/dist/{cli-DH35TZ2Q.js → cli-2VXP34R5.js} +2 -2
  6. package/dist/{cli-P3NUTOPK.js → cli-2W4B6PD5.js} +1 -1
  7. package/dist/{cli-WJVPSVF2.js → cli-2X7DKSXN.js} +24 -24
  8. package/dist/{cli-ATAJSIXH.js → cli-2ZP4N7HK.js} +19 -19
  9. package/dist/{cli-5O7XENQY.js → cli-3GJYZH4C.js} +5 -5
  10. package/dist/{cli-H6PP2MZT.js → cli-3GO3M2MX.js} +17 -13
  11. package/dist/{cli-HMDYG6PS.js → cli-3LDLUNME.js} +17 -17
  12. package/dist/{cli-BZOKZ7LP.js → cli-3WY6L2WP.js} +27 -27
  13. package/dist/{cli-REAM7LSC.js → cli-44MBABRD.js} +25 -25
  14. package/dist/{cli-5TTJWM2R.js → cli-4IO7MKLR.js} +20 -20
  15. package/dist/{cli-HNDFANQG.js → cli-4U2PY7W3.js} +1 -1
  16. package/dist/{cli-WQ7JBZNW.js → cli-4WI4LTBI.js} +2 -2
  17. package/dist/{cli-OTBCA54D.js → cli-55EIGGZK.js} +1 -1
  18. package/dist/{cli-FYPW25VD.js → cli-5AQV6FTL.js} +18 -18
  19. package/dist/{cli-RKPQLB7J.js → cli-5CW7BEU7.js} +3 -3
  20. package/dist/{cli-27TQVLVF.js → cli-5JUVHNZF.js} +12 -12
  21. package/dist/{cli-F3YJKP6D.js → cli-5KERL6HV.js} +9 -4
  22. package/dist/{cli-MSNSXVGF.js → cli-5KSA24NQ.js} +24 -24
  23. package/dist/{cli-5VZBFMCK.js → cli-5PIFO3EN.js} +8 -0
  24. package/dist/{cli-FT3X3D4P.js → cli-5QN2Z43X.js} +20 -20
  25. package/dist/cli-5XSPAA5X.js +69 -0
  26. package/dist/{cli-B2QAJ5RQ.js → cli-62KAYGXO.js} +20 -20
  27. package/dist/{cli-QPV3TYOM.js → cli-6IMV5ZZU.js} +26 -26
  28. package/dist/{cli-UULZSQBV.js → cli-6KWCIAN2.js} +764 -66
  29. package/dist/{cli-DQE7ITIR.js → cli-6NWETIX5.js} +20 -20
  30. package/dist/{cli-UVIURDZC.js → cli-7224T6HG.js} +20 -20
  31. package/dist/{cli-L7F4XKCB.js → cli-774W3MN5.js} +26 -26
  32. package/dist/cli-7BUD3VAD.js +16 -0
  33. package/dist/{cli-XNOAO6DY.js → cli-7KEP57S7.js} +12 -12
  34. package/dist/{cli-5UKWX3IU.js → cli-7OYFJMA6.js} +18 -18
  35. package/dist/{cli-WNHMJM3Z.js → cli-7ZNEDQ3G.js} +20 -20
  36. package/dist/{cli-5RRPUL6V.js → cli-AFK6OUID.js} +12 -12
  37. package/dist/{cli-6P6V2EHY.js → cli-AIYQFWXN.js} +25 -25
  38. package/dist/{cli-ERJNDBDH.js → cli-ARAAEWIQ.js} +2 -2
  39. package/dist/cli-AVQYV3N4.js +36 -0
  40. package/dist/{cli-TI2FOFPA.js → cli-B54Z6CXH.js} +16 -16
  41. package/dist/{cli-EEO5ZPAZ.js → cli-B5TC4MEL.js} +5 -5
  42. package/dist/{cli-5Z4D3F6Y.js → cli-BCXGOLU3.js} +3 -3
  43. package/dist/{cli-G2GLW5Z4.js → cli-BHAODVTZ.js} +1 -1
  44. package/dist/{cli-4F24FUW6.js → cli-BPS2JG74.js} +20 -20
  45. package/dist/{cli-W3RG2MRI.js → cli-BVO55SR2.js} +2 -2
  46. package/dist/{cli-R5SNTPND.js → cli-CFH3JZP5.js} +21 -21
  47. package/dist/{cli-Q7QSWNY2.js → cli-CTK2OIK6.js} +20 -20
  48. package/dist/{cli-ATWJCB2G.js → cli-CW5MV4VX.js} +4 -4
  49. package/dist/{cli-TCQJL2GY.js → cli-D5VOSJZ7.js} +1 -1
  50. package/dist/{cli-KIZTASLL.js → cli-DAEPMK7A.js} +5 -5
  51. package/dist/{cli-44CM2AH2.js → cli-DAHR7PKB.js} +1 -1
  52. package/dist/{cli-XW3JLRSA.js → cli-DWDSBTYL.js} +1 -1
  53. package/dist/cli-DYSDPGXW.js +95 -0
  54. package/dist/{cli-QEFYDXMH.js → cli-DZCLRZXJ.js} +1 -1
  55. package/dist/{cli-TEBV2OIW.js → cli-EG2VP7IV.js} +116 -27
  56. package/dist/{cli-77T4LJQF.js → cli-EJ47IE45.js} +24 -24
  57. package/dist/{cli-QDBYFITU.js → cli-EK4OSJHA.js} +2 -2
  58. package/dist/{cli-GO64NABP.js → cli-FCJHNXDA.js} +1 -1
  59. package/dist/{cli-ZNQBF4Z3.js → cli-FNESSE3L.js} +1 -1
  60. package/dist/{cli-D3S7NJZ3.js → cli-FTLH4WCE.js} +17 -17
  61. package/dist/{cli-JHLWBRXB.js → cli-FYV77YS2.js} +18 -18
  62. package/dist/cli-GMJX6Q4Q.js +36 -0
  63. package/dist/{cli-7JUNA74L.js → cli-GRBVNGDW.js} +1 -1
  64. package/dist/{cli-XKAIDYIE.js → cli-HAFCFY77.js} +33 -19
  65. package/dist/{cli-OXLOGXT3.js → cli-HCJLYI24.js} +3 -3
  66. package/dist/{cli-XOYUTNER.js → cli-HCXS5EXU.js} +25 -25
  67. package/dist/cli-HEUNNHDH.js +36 -0
  68. package/dist/{cli-G3TU6CP6.js → cli-HNUTIWDZ.js} +19 -19
  69. package/dist/{cli-JXQLHJO2.js → cli-HXT25ETJ.js} +244 -243
  70. package/dist/{cli-5EH4WTH4.js → cli-IGEL7UJQ.js} +5 -5
  71. package/dist/{cli-TLSTSZAC.js → cli-IO32YA5N.js} +26 -26
  72. package/dist/cli-IPTGZDBB.js +36 -0
  73. package/dist/{cli-OBLEROSC.js → cli-J25TYFKB.js} +19 -19
  74. package/dist/{cli-5ATO27Z4.js → cli-J7XYMEMX.js} +20 -20
  75. package/dist/{cli-X3TSTTYI.js → cli-JC5OJRID.js} +2 -2
  76. package/dist/{cli-25SJZI7N.js → cli-JD563OF4.js} +126 -27
  77. package/dist/{cli-VXLHOZSO.js → cli-JRJF2WHU.js} +20 -20
  78. package/dist/{cli-UQC46YSV.js → cli-JTFLIMIG.js} +3 -3
  79. package/dist/{cli-K4HSQWXC.js → cli-K2BSJ2PK.js} +2 -2
  80. package/dist/{cli-OM32UURE.js → cli-K4QTYMN2.js} +25 -25
  81. package/dist/{cli-BJFYGVJV.js → cli-KFJDD4C4.js} +20 -20
  82. package/dist/{cli-WW54THXN.js → cli-KVQ2JPVD.js} +1 -1
  83. package/dist/{cli-LHMRUJVN.js → cli-L6AHMW2Z.js} +1 -1
  84. package/dist/{cli-IKSLPAZN.js → cli-LCYUBCVY.js} +4 -4
  85. package/dist/{cli-HGCOEL5T.js → cli-LEWSCDH5.js} +4 -4
  86. package/dist/{cli-XJ7JESC2.js → cli-LI6G7GND.js} +27 -27
  87. package/dist/{cli-OMTHTWYJ.js → cli-LU2GCWIU.js} +21 -21
  88. package/dist/{cli-UEQMK4WX.js → cli-M3Z2KOEB.js} +1 -1
  89. package/dist/{cli-226ZJ72R.js → cli-M6E3E3I2.js} +170 -3
  90. package/dist/{cli-NKKCDO6K.js → cli-MCRPA4Z6.js} +20 -20
  91. package/dist/{cli-BQ36DV5C.js → cli-MI2DEDMA.js} +3 -3
  92. package/dist/{cli-6O7YCK2M.js → cli-MITZ6SE7.js} +3 -3
  93. package/dist/{cli-LPFSJ625.js → cli-MTIYD3BX.js} +26 -26
  94. package/dist/{cli-5M6KDNVX.js → cli-MTZUJGBK.js} +2 -2
  95. package/dist/{cli-GSOV26O5.js → cli-NCLMUXLC.js} +14 -14
  96. package/dist/{cli-X52TXCNF.js → cli-NLS3DKWH.js} +26 -26
  97. package/dist/{cli-AH6AMAIB.js → cli-NMDGS7IE.js} +1 -1
  98. package/dist/cli-O3DJO2CS.js +30 -0
  99. package/dist/{cli-BC67QHD5.js → cli-O47D5BFN.js} +2 -2
  100. package/dist/{cli-MDVC5ZNM.js → cli-OBRZ36VP.js} +14 -14
  101. package/dist/{cli-C32Q5E5I.js → cli-P6V3NSU4.js} +1 -1
  102. package/dist/{cli-RMD5WSUQ.js → cli-PAMQMTHK.js} +21 -21
  103. package/dist/{cli-WNBP3LOD.js → cli-PKTHOCT3.js} +26 -26
  104. package/dist/cli-QQ432JEN.js +36 -0
  105. package/dist/{cli-YYXAGJQR.js → cli-QVNDPTBU.js} +20 -20
  106. package/dist/{cli-KJA6GLZI.js → cli-R2DFD6ZZ.js} +15 -15
  107. package/dist/{cli-6BLVI2JM.js → cli-RMVJMOWU.js} +111 -7
  108. package/dist/{cli-X64BNBQH.js → cli-RVZH462G.js} +585 -8
  109. package/dist/{cli-6AMK3DYS.js → cli-SEEOQVUL.js} +12 -12
  110. package/dist/{cli-QTCTWYCM.js → cli-SO354HPI.js} +3 -3
  111. package/dist/{cli-RHL4B4H7.js → cli-T76HDH7F.js} +88 -4
  112. package/dist/{cli-ZJW6HQ6N.js → cli-TIS7DWRR.js} +7 -7
  113. package/dist/{cli-6JWDFCUV.js → cli-TY3B6XS7.js} +21 -21
  114. package/dist/{cli-4FJL3KQZ.js → cli-UKEZJFIT.js} +2 -2
  115. package/dist/cli-VQAMW4RF.js +95 -0
  116. package/dist/{cli-ATHATKI5.js → cli-W4LMRVZT.js} +78 -47
  117. package/dist/cli-W7I5KGIB.js +84 -0
  118. package/dist/{cli-S3NHXAJM.js → cli-WCFZNEK2.js} +18 -18
  119. package/dist/{cli-B3EFE7ZF.js → cli-WXGJFA4F.js} +1 -1
  120. package/dist/{cli-PNS4KWWC.js → cli-XCG33I77.js} +24 -24
  121. package/dist/{cli-DBMEH4Y5.js → cli-YHLSG5HB.js} +26 -26
  122. package/dist/cli-YNH5DTHY.js +36 -0
  123. package/dist/cli-YPMJWPDA.js +69 -0
  124. package/dist/{cli-PXQYY6KM.js → cli-YSXIR7EM.js} +0 -0
  125. package/dist/cli-ZPFWO4VW.js +85 -0
  126. package/dist/cli.js +53 -53
  127. package/dist/client.js +1951 -289
  128. package/dist/core/assessment-moves.d.ts +32 -0
  129. package/dist/core/assessment-reports.d.ts +38 -0
  130. package/dist/core/assessment-settings.d.ts +15 -0
  131. package/dist/core/benchmark-samples.d.ts +28 -0
  132. package/dist/core/session-host.d.ts +4 -0
  133. package/dist/core/session-roster.d.ts +6 -0
  134. package/dist/core/session-timers.d.ts +40 -0
  135. package/dist/core/session.d.ts +14 -1
  136. package/dist/core/tick-timer.d.ts +18 -0
  137. package/dist/dev/console/assets/{index-Ch6HHb2T.js → index-zd--5H1f.js} +26 -26
  138. package/dist/dev/console/index.html +1 -1
  139. package/dist/dev/shell.d.ts +21 -0
  140. package/dist/dev/view/commands.d.ts +3 -1
  141. package/dist/docs/api/index.md +1 -1
  142. package/dist/docs/api/sdk-commands.md +29 -0
  143. package/dist/docs/api/sdk-e2e.md +30 -0
  144. package/dist/docs/api/sdk-projection.md +5 -0
  145. package/dist/docs/api/sdk-tools-client.md +30 -0
  146. package/dist/docs/api/sdk-ui.md +7 -0
  147. package/dist/docs/api/sdk.md +834 -19
  148. package/dist/docs/changelog.md +34 -0
  149. package/dist/docs/cli-error-codes.md +5 -1
  150. package/dist/docs/cli-reference.md +76 -2
  151. package/dist/docs/concepts/index.md +2 -0
  152. package/dist/docs/concepts/terminology.md +12 -0
  153. package/dist/docs/guides/assessments.md +248 -0
  154. package/dist/docs/guides/benchmarks.md +241 -0
  155. package/dist/docs/guides/engine.md +8 -0
  156. package/dist/docs/guides/index.md +2 -0
  157. package/dist/docs/guides/presentation.md +11 -9
  158. package/dist/docs/guides/session-hooks.md +24 -22
  159. package/dist/docs/guides/tick-controller.md +22 -1
  160. package/dist/docs/guides/ui.md +24 -0
  161. package/dist/docs/guides/upgrading.md +21 -0
  162. package/dist/docs/page-index.md +16 -12
  163. package/dist/docs/recipes/create-assessment.md +124 -0
  164. package/dist/docs/recipes/create-benchmark.md +115 -0
  165. package/dist/docs/recipes/index.md +2 -0
  166. package/dist/execution/context-composition.d.ts +39 -4
  167. package/dist/execution/engine-state.d.ts +13 -0
  168. package/dist/execution/executor.d.ts +16 -0
  169. package/dist/execution/logic-result.d.ts +13 -2
  170. package/dist/help-examples.d.ts +12 -0
  171. package/dist/host/adapter.d.ts +24 -1
  172. package/dist/host/protocol.d.ts +115 -1
  173. package/dist/host.js +29 -1
  174. package/dist/playwright.js +1945 -283
  175. package/dist/runtime/index.d.ts +3 -1
  176. package/dist/runtime/manifest-version.d.ts +1 -1
  177. package/dist/runtime.js +298 -16
  178. package/dist/schema.json +189 -0
  179. package/dist/templating/resource-metadata.d.ts +1 -1
  180. package/dist/utils/error-codes.d.ts +9 -1
  181. package/dist/validation/assessment-validation.d.ts +34 -0
  182. package/dist/validation/benchmark-validation.d.ts +20 -0
  183. package/dist/validation/schema-validation.d.ts +4 -0
  184. package/package.json +3 -3
  185. package/dist/cli-27Z5T52R.js +0 -30
  186. package/dist/cli-3VLBFWHN.js +0 -36
  187. package/dist/cli-BINVO5R7.js +0 -36
  188. package/dist/cli-HLI5UEKX.js +0 -36
  189. package/dist/cli-OF36EA62.js +0 -36
  190. package/dist/cli-OVIJRBFI.js +0 -36
  191. package/dist/cli-UIYKPSIY.js +0 -36
  192. package/dist/cli-WZNIW6ZO.js +0 -16
@@ -1,36 +1,36 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ confirmAction
4
+ } from "./cli-2W4B6PD5.js";
5
+ import {
6
+ loadPackageContext
7
+ } from "./cli-L6AHMW2Z.js";
2
8
  import {
3
9
  deleteEngineFiles,
4
10
  findEngineReferences
5
- } from "./cli-RHL4B4H7.js";
6
- import "./cli-WW54THXN.js";
11
+ } from "./cli-T76HDH7F.js";
12
+ import "./cli-KVQ2JPVD.js";
7
13
  import "./cli-QUNIRH7A.js";
8
- import "./cli-ERJNDBDH.js";
9
- import {
10
- loadPackageContext
11
- } from "./cli-LHMRUJVN.js";
12
- import "./cli-X3TSTTYI.js";
13
- import "./cli-QEFYDXMH.js";
14
+ import "./cli-ARAAEWIQ.js";
15
+ import "./cli-JC5OJRID.js";
16
+ import "./cli-DZCLRZXJ.js";
14
17
  import {
15
18
  operationError,
16
19
  recordOperationResult,
17
20
  regenerateTypes
18
- } from "./cli-QTCTWYCM.js";
19
- import {
20
- confirmAction
21
- } from "./cli-P3NUTOPK.js";
22
- import "./cli-UQC46YSV.js";
23
- import "./cli-6BLVI2JM.js";
24
- import "./cli-UEQMK4WX.js";
25
- import "./cli-JXQLHJO2.js";
21
+ } from "./cli-SO354HPI.js";
22
+ import "./cli-JTFLIMIG.js";
23
+ import "./cli-RMVJMOWU.js";
24
+ import "./cli-M3Z2KOEB.js";
25
+ import "./cli-HXT25ETJ.js";
26
26
  import "./cli-25RWY5BQ.js";
27
+ import "./cli-RVZH462G.js";
27
28
  import "./cli-QWQMPCL6.js";
28
- import "./cli-X64BNBQH.js";
29
- import "./cli-F2D4GGUA.js";
29
+ import "./cli-2BKEIIA3.js";
30
30
  import {
31
31
  logger
32
- } from "./cli-TCQJL2GY.js";
33
- import "./cli-5VZBFMCK.js";
32
+ } from "./cli-D5VOSJZ7.js";
33
+ import "./cli-5PIFO3EN.js";
34
34
 
35
35
  // cli/commands/resources/engine/delete.ts
36
36
  async function deleteEngine(options) {
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  blobUploadCommand,
4
4
  guessMimeType
5
- } from "./cli-AH6AMAIB.js";
5
+ } from "./cli-NMDGS7IE.js";
6
6
  import "./cli-QWQMPCL6.js";
7
- import "./cli-5VZBFMCK.js";
7
+ import "./cli-5PIFO3EN.js";
8
8
  export {
9
9
  blobUploadCommand,
10
10
  guessMimeType
@@ -1,46 +1,46 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolvePatchedDefinition
4
- } from "./cli-DH35TZ2Q.js";
4
+ } from "./cli-2VXP34R5.js";
5
5
  import "./cli-S5IVGDDD.js";
6
6
  import {
7
7
  readAuthoredBundle
8
- } from "./cli-6O7YCK2M.js";
8
+ } from "./cli-MITZ6SE7.js";
9
9
  import {
10
10
  resolveInputSource
11
- } from "./cli-XW3JLRSA.js";
11
+ } from "./cli-DWDSBTYL.js";
12
+ import {
13
+ loadPackageContext
14
+ } from "./cli-L6AHMW2Z.js";
12
15
  import {
13
16
  updatePresentationFiles
14
- } from "./cli-RHL4B4H7.js";
15
- import "./cli-WW54THXN.js";
17
+ } from "./cli-T76HDH7F.js";
18
+ import "./cli-KVQ2JPVD.js";
16
19
  import "./cli-QUNIRH7A.js";
17
- import "./cli-ERJNDBDH.js";
18
- import {
19
- loadPackageContext
20
- } from "./cli-LHMRUJVN.js";
21
- import "./cli-X3TSTTYI.js";
22
- import "./cli-QEFYDXMH.js";
20
+ import "./cli-ARAAEWIQ.js";
21
+ import "./cli-JC5OJRID.js";
22
+ import "./cli-DZCLRZXJ.js";
23
23
  import {
24
24
  operationError,
25
25
  printOperationResult,
26
26
  regenerateTypes
27
- } from "./cli-QTCTWYCM.js";
28
- import "./cli-UQC46YSV.js";
29
- import "./cli-6BLVI2JM.js";
30
- import "./cli-UEQMK4WX.js";
31
- import "./cli-JXQLHJO2.js";
27
+ } from "./cli-SO354HPI.js";
28
+ import "./cli-JTFLIMIG.js";
29
+ import "./cli-RMVJMOWU.js";
30
+ import "./cli-M3Z2KOEB.js";
31
+ import "./cli-HXT25ETJ.js";
32
32
  import "./cli-25RWY5BQ.js";
33
- import "./cli-QWQMPCL6.js";
34
33
  import {
35
34
  validateSDKPresentation
36
- } from "./cli-X64BNBQH.js";
37
- import "./cli-F2D4GGUA.js";
35
+ } from "./cli-RVZH462G.js";
36
+ import "./cli-QWQMPCL6.js";
37
+ import "./cli-2BKEIIA3.js";
38
38
  import {
39
39
  logger
40
- } from "./cli-TCQJL2GY.js";
40
+ } from "./cli-D5VOSJZ7.js";
41
41
  import {
42
42
  CliError
43
- } from "./cli-5VZBFMCK.js";
43
+ } from "./cli-5PIFO3EN.js";
44
44
 
45
45
  // cli/commands/resources/presentation/update.ts
46
46
  async function updatePresentation(definitionInput, options) {
@@ -1,37 +1,37 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ confirmAction
4
+ } from "./cli-2W4B6PD5.js";
5
+ import {
6
+ loadPackageContext
7
+ } from "./cli-L6AHMW2Z.js";
2
8
  import {
3
9
  deleteWaitingRoomUserInterfaceFiles,
4
10
  findWaitingRoomUserInterfaceReferences
5
- } from "./cli-RHL4B4H7.js";
6
- import "./cli-WW54THXN.js";
11
+ } from "./cli-T76HDH7F.js";
12
+ import "./cli-KVQ2JPVD.js";
7
13
  import "./cli-QUNIRH7A.js";
8
- import "./cli-ERJNDBDH.js";
9
- import {
10
- loadPackageContext
11
- } from "./cli-LHMRUJVN.js";
12
- import "./cli-X3TSTTYI.js";
13
- import "./cli-QEFYDXMH.js";
14
+ import "./cli-ARAAEWIQ.js";
15
+ import "./cli-JC5OJRID.js";
16
+ import "./cli-DZCLRZXJ.js";
14
17
  import {
15
18
  operationError,
16
19
  recordOperationResult
17
- } from "./cli-QTCTWYCM.js";
18
- import {
19
- confirmAction
20
- } from "./cli-P3NUTOPK.js";
20
+ } from "./cli-SO354HPI.js";
21
21
  import {
22
22
  generateCommand
23
- } from "./cli-UQC46YSV.js";
24
- import "./cli-6BLVI2JM.js";
25
- import "./cli-UEQMK4WX.js";
26
- import "./cli-JXQLHJO2.js";
23
+ } from "./cli-JTFLIMIG.js";
24
+ import "./cli-RMVJMOWU.js";
25
+ import "./cli-M3Z2KOEB.js";
26
+ import "./cli-HXT25ETJ.js";
27
27
  import "./cli-25RWY5BQ.js";
28
+ import "./cli-RVZH462G.js";
28
29
  import "./cli-QWQMPCL6.js";
29
- import "./cli-X64BNBQH.js";
30
- import "./cli-F2D4GGUA.js";
30
+ import "./cli-2BKEIIA3.js";
31
31
  import {
32
32
  logger
33
- } from "./cli-TCQJL2GY.js";
34
- import "./cli-5VZBFMCK.js";
33
+ } from "./cli-D5VOSJZ7.js";
34
+ import "./cli-5PIFO3EN.js";
35
35
 
36
36
  // cli/commands/resources/waiting-room/delete.ts
37
37
  async function deleteWaitingRoomUserInterface(options) {
@@ -1,24 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  packageScenarioIdentifiers
4
- } from "./cli-PXQYY6KM.js";
4
+ } from "./cli-YSXIR7EM.js";
5
5
  import {
6
6
  PENDING_CHANGES_HINT,
7
7
  describePendingChanges,
8
8
  hasPendingChanges,
9
9
  pendingHeadline
10
- } from "./cli-UULZSQBV.js";
10
+ } from "./cli-6KWCIAN2.js";
11
11
  import {
12
12
  LLM_NOT_CONFIGURED_HINT,
13
13
  logicErrorOf
14
- } from "./cli-JXQLHJO2.js";
14
+ } from "./cli-HXT25ETJ.js";
15
15
  import {
16
16
  CliError,
17
17
  hasWarning,
18
18
  printJson,
19
19
  recordWarning,
20
20
  reportResult
21
- } from "./cli-5VZBFMCK.js";
21
+ } from "./cli-5PIFO3EN.js";
22
22
 
23
23
  // cli/commands/session-report.ts
24
24
  function participantsFromArgument(value) {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  isJsonOutput,
4
4
  recordWarning
5
- } from "./cli-5VZBFMCK.js";
5
+ } from "./cli-5PIFO3EN.js";
6
6
 
7
7
  // cli/utils/logger.ts
8
8
  var isVerbose = false;
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ setPromptUsage
4
+ } from "./cli-2W4B6PD5.js";
2
5
  import {
3
6
  beginOperationCapture,
4
7
  endOperationCapture
5
- } from "./cli-QTCTWYCM.js";
6
- import {
7
- setPromptUsage
8
- } from "./cli-P3NUTOPK.js";
8
+ } from "./cli-SO354HPI.js";
9
9
  import {
10
10
  reportResult
11
- } from "./cli-5VZBFMCK.js";
11
+ } from "./cli-5PIFO3EN.js";
12
12
 
13
13
  // cli/commands/resources/shared/resource-command.ts
14
14
  import { isAbsolute, relative, resolve, sep } from "path";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  CliError,
7
7
  reportResult
8
- } from "./cli-5VZBFMCK.js";
8
+ } from "./cli-5PIFO3EN.js";
9
9
 
10
10
  // cli/commands/docs.ts
11
11
  import { readFileSync as readFileSync2, readdirSync as readdirSync2, statSync as statSync2 } from "fs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CliError
4
- } from "./cli-5VZBFMCK.js";
4
+ } from "./cli-5PIFO3EN.js";
5
5
 
6
6
  // cli/utils/input-source.ts
7
7
  import { readFileSync } from "fs";
@@ -0,0 +1,95 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ resolvePatchedDefinition
4
+ } from "./cli-2VXP34R5.js";
5
+ import "./cli-S5IVGDDD.js";
6
+ import {
7
+ readAuthoredBundle
8
+ } from "./cli-MITZ6SE7.js";
9
+ import {
10
+ resolveInputSource
11
+ } from "./cli-DWDSBTYL.js";
12
+ import {
13
+ loadPackageContext
14
+ } from "./cli-L6AHMW2Z.js";
15
+ import {
16
+ updateAssessmentFiles
17
+ } from "./cli-T76HDH7F.js";
18
+ import "./cli-KVQ2JPVD.js";
19
+ import "./cli-QUNIRH7A.js";
20
+ import "./cli-ARAAEWIQ.js";
21
+ import "./cli-JC5OJRID.js";
22
+ import "./cli-DZCLRZXJ.js";
23
+ import {
24
+ operationError,
25
+ printOperationResult,
26
+ regenerateTypes
27
+ } from "./cli-SO354HPI.js";
28
+ import "./cli-JTFLIMIG.js";
29
+ import "./cli-RMVJMOWU.js";
30
+ import "./cli-M3Z2KOEB.js";
31
+ import "./cli-HXT25ETJ.js";
32
+ import "./cli-25RWY5BQ.js";
33
+ import {
34
+ validateSDKAssessment
35
+ } from "./cli-RVZH462G.js";
36
+ import "./cli-QWQMPCL6.js";
37
+ import {
38
+ resourceExample
39
+ } from "./cli-2BKEIIA3.js";
40
+ import {
41
+ logger
42
+ } from "./cli-D5VOSJZ7.js";
43
+ import {
44
+ CliError
45
+ } from "./cli-5PIFO3EN.js";
46
+
47
+ // cli/commands/resources/assessment/update.ts
48
+ async function updateAssessment(identifier, definitionInput, options) {
49
+ logger.info("\nUpdating assessment...\n");
50
+ loadPackageContext(options.workingDir);
51
+ let json = null;
52
+ if (options.patch) {
53
+ json = resolvePatchedDefinition({
54
+ patch: options.patch,
55
+ workingDir: options.workingDir,
56
+ type: "assessment",
57
+ identifier,
58
+ resourceLabel: "Assessment"
59
+ });
60
+ } else {
61
+ const inputSource = await resolveInputSource(definitionInput, options.file);
62
+ if (inputSource.kind === "json") json = inputSource.json;
63
+ }
64
+ if (!json) {
65
+ throw new CliError(
66
+ "USAGE_MISSING_INPUT",
67
+ "An assessment is updated from a JSON definition or --patch.",
68
+ { hint: `Expected format:
69
+ ${resourceExample("assessment", "update")}` }
70
+ );
71
+ }
72
+ const bundle = readAuthoredBundle({
73
+ json,
74
+ type: "assessment",
75
+ command: "update",
76
+ validate: validateSDKAssessment,
77
+ identifier,
78
+ validationHint: "Full replacement requires all fields to be specified."
79
+ });
80
+ const result = updateAssessmentFiles({
81
+ packagePath: options.workingDir,
82
+ oldIdentifier: identifier,
83
+ newDefinition: bundle.definition,
84
+ newIdentifier: bundle.definition.identifier
85
+ });
86
+ if (!result.success) {
87
+ throw operationError(result, "Failed to update assessment files");
88
+ }
89
+ logger.success("Assessment updated successfully!");
90
+ printOperationResult(result);
91
+ await regenerateTypes(options.workingDir);
92
+ }
93
+ export {
94
+ updateAssessment
95
+ };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  getResourceMeta
4
- } from "./cli-X64BNBQH.js";
4
+ } from "./cli-RVZH462G.js";
5
5
 
6
6
  // cli/utils/resource-scan.ts
7
7
  import { existsSync, readdirSync } from "fs";
@@ -4,12 +4,12 @@ import {
4
4
  } from "./cli-BWX5E7TQ.js";
5
5
  import {
6
6
  validatePackage
7
- } from "./cli-25SJZI7N.js";
7
+ } from "./cli-JD563OF4.js";
8
8
  import {
9
9
  PackageScenarioError,
10
10
  createPackageScenario,
11
11
  deletePackageScenario
12
- } from "./cli-PXQYY6KM.js";
12
+ } from "./cli-YSXIR7EM.js";
13
13
  import {
14
14
  PENDING_CHANGES_HINT,
15
15
  REINITIALISED_ON_CHANGE,
@@ -20,31 +20,25 @@ import {
20
20
  isQuery,
21
21
  pendingHeadline,
22
22
  rebuildsWalkthrough
23
- } from "./cli-UULZSQBV.js";
23
+ } from "./cli-6KWCIAN2.js";
24
24
  import {
25
25
  newInstanceId,
26
26
  removeLockFile,
27
27
  writeLockFile
28
- } from "./cli-ZNQBF4Z3.js";
28
+ } from "./cli-FNESSE3L.js";
29
29
  import {
30
30
  hmrClientTarget,
31
31
  publicAssetOrigin,
32
32
  publicHmrOrigin,
33
33
  publicHostnames
34
- } from "./cli-G2GLW5Z4.js";
34
+ } from "./cli-BHAODVTZ.js";
35
35
  import {
36
36
  describeScenarioProblems,
37
37
  onlyOverran,
38
38
  partitionProblems,
39
39
  runScenarioGates,
40
40
  withOverrunRetry
41
- } from "./cli-JXQLHJO2.js";
42
- import {
43
- mediaTypeOf,
44
- readBlob,
45
- redirectBlobs,
46
- storeBlob
47
- } from "./cli-QWQMPCL6.js";
41
+ } from "./cli-HXT25ETJ.js";
48
42
  import {
49
43
  collectSettingsOverrideErrors,
50
44
  createAjv,
@@ -53,14 +47,20 @@ import {
53
47
  readSetupNotes,
54
48
  settingsSchemas,
55
49
  withoutLockedDefaults
56
- } from "./cli-X64BNBQH.js";
50
+ } from "./cli-RVZH462G.js";
51
+ import {
52
+ mediaTypeOf,
53
+ readBlob,
54
+ redirectBlobs,
55
+ storeBlob
56
+ } from "./cli-QWQMPCL6.js";
57
57
  import {
58
58
  logger
59
- } from "./cli-TCQJL2GY.js";
59
+ } from "./cli-D5VOSJZ7.js";
60
60
  import {
61
61
  CliError,
62
62
  diagnosticLocation
63
- } from "./cli-5VZBFMCK.js";
63
+ } from "./cli-5PIFO3EN.js";
64
64
 
65
65
  // cli/dev/view/route.ts
66
66
  var PATTERNS = [
@@ -1639,13 +1639,26 @@ var NO_TEAM_ID = {
1639
1639
  renameSelf: "renameSelf renames the caller, whom the host resolves; it takes no teamId"
1640
1640
  };
1641
1641
  var FRAME_QUERIES = {
1642
- game: /* @__PURE__ */ new Set(["callEndpoint", "getPastState", "getAllTeamsParticipants"]),
1643
- "waiting-room": /* @__PURE__ */ new Set(["callEndpoint", "getPastState", "getAllTeamsParticipants"]),
1644
- session: /* @__PURE__ */ new Set(["callEndpoint", "getPastState"]),
1642
+ game: /* @__PURE__ */ new Set([
1643
+ "callEndpoint",
1644
+ "getPastState",
1645
+ "getAllTeamsParticipants",
1646
+ "getBenchmark",
1647
+ "getAssessment"
1648
+ ]),
1649
+ "waiting-room": /* @__PURE__ */ new Set([
1650
+ "callEndpoint",
1651
+ "getPastState",
1652
+ "getAllTeamsParticipants",
1653
+ "getBenchmark",
1654
+ "getAssessment"
1655
+ ]),
1656
+ session: /* @__PURE__ */ new Set(["callEndpoint", "getPastState", "getBenchmark", "getAssessment"]),
1645
1657
  setup: /* @__PURE__ */ new Set(["callEndpoint"]),
1646
1658
  "scenario-editor": /* @__PURE__ */ new Set(["callEndpoint"]),
1647
- presentation: /* @__PURE__ */ new Set(["getPastState"])
1659
+ presentation: /* @__PURE__ */ new Set(["getPastState", "getBenchmark", "getAssessment"])
1648
1660
  };
1661
+ var PLAYER_SURFACES = /* @__PURE__ */ new Set(["game", "waiting-room"]);
1649
1662
  function teamScope(viewer) {
1650
1663
  return viewer.teamIndex === void 0 ? {} : { teamIndex: viewer.teamIndex };
1651
1664
  }
@@ -1794,7 +1807,7 @@ function commandFor(message, surface, viewer) {
1794
1807
  return null;
1795
1808
  }
1796
1809
  }
1797
- function queryFor(message, surface, viewer) {
1810
+ function queryFor(message, surface, viewer, { sessionless = false } = {}) {
1798
1811
  if (!FRAME_QUERIES[surface.kind].has(message.type)) return null;
1799
1812
  switch (message.type) {
1800
1813
  case "callEndpoint":
@@ -1821,6 +1834,28 @@ function queryFor(message, surface, viewer) {
1821
1834
  };
1822
1835
  case "getAllTeamsParticipants":
1823
1836
  return { type: "getAllTeamsParticipants", uiIdentifier: surface.identifier };
1837
+ case "getBenchmark":
1838
+ return {
1839
+ type: "getBenchmark",
1840
+ identifier: String(message.identifier),
1841
+ where: Array.isArray(message.where) ? message.where : []
1842
+ };
1843
+ // The audience is the host's to decide, from the surface and the viewer
1844
+ // it holds the render as, never from anything the page sends.
1845
+ case "getAssessment":
1846
+ if (sessionless) {
1847
+ return { refused: "A presentation shown without a session has no results to read" };
1848
+ }
1849
+ return {
1850
+ type: "getAssessment",
1851
+ identifier: String(message.identifier),
1852
+ ...PLAYER_SURFACES.has(surface.kind) ? {
1853
+ audience: "own",
1854
+ ...actorOf(viewer),
1855
+ ...roleOf(viewer),
1856
+ ...viewer.teamIndex === void 0 ? {} : { teamId: `team-${viewer.teamIndex + 1}` }
1857
+ } : { audience: "all" }
1858
+ };
1824
1859
  default:
1825
1860
  return null;
1826
1861
  }
@@ -1954,6 +1989,7 @@ function viewMessages(page, state, options) {
1954
1989
 
1955
1990
  // cli/dev/shell.ts
1956
1991
  var LOOPBACK = "127.0.0.1";
1992
+ var KEEP_ALIVE_MS = 25e3;
1957
1993
  var REINITIALISING_CAUSES = /* @__PURE__ */ new Set([
1958
1994
  "reinitialise",
1959
1995
  "reconfigure",
@@ -2002,6 +2038,8 @@ var DevShell = class {
2002
2038
  socketRuns = /* @__PURE__ */ new WeakMap();
2003
2039
  /** The participant an operator page says it is showing, where it shows one. */
2004
2040
  socketPresence = /* @__PURE__ */ new Map();
2041
+ /** Console pages open, each of which keeps its run awake (§11.4a). */
2042
+ consoleSockets = /* @__PURE__ */ new Set();
2005
2043
  options;
2006
2044
  brands;
2007
2045
  server = null;
@@ -2010,6 +2048,9 @@ var DevShell = class {
2010
2048
  /** One socket per viewer page, each carrying only what that page is owed. */
2011
2049
  viewSockets = null;
2012
2050
  views = /* @__PURE__ */ new Map();
2051
+ keepAlive = null;
2052
+ /** Sockets pinged since they last answered one. */
2053
+ unanswered = /* @__PURE__ */ new WeakSet();
2013
2054
  /** Teams processing a round, per run (§12.4.4); `-1` is the cohort. */
2014
2055
  processing = /* @__PURE__ */ new Map();
2015
2056
  vite = null;
@@ -2115,6 +2156,8 @@ var DevShell = class {
2115
2156
  async stop() {
2116
2157
  await this.watcher?.close();
2117
2158
  this.watcher = null;
2159
+ if (this.keepAlive) clearInterval(this.keepAlive);
2160
+ this.keepAlive = null;
2118
2161
  this.sockets?.clients.forEach((client) => client.close());
2119
2162
  this.sockets?.close();
2120
2163
  this.viewSockets?.clients.forEach((client) => client.close());
@@ -2568,13 +2611,12 @@ Install the package's dependencies to serve its surfaces.
2568
2611
  socket.destroy();
2569
2612
  return;
2570
2613
  }
2571
- target.handleUpgrade(
2572
- request,
2573
- socket,
2574
- head,
2575
- (client) => target.emit("connection", client, request)
2576
- );
2614
+ target.handleUpgrade(request, socket, head, (client) => {
2615
+ client.on("pong", () => this.unanswered.delete(client));
2616
+ target.emit("connection", client, request);
2617
+ });
2577
2618
  });
2619
+ this.keepSocketsAlive();
2578
2620
  this.session.subscribe((event) => {
2579
2621
  this.broadcast(event, "session");
2580
2622
  this.updateViews(event, "session");
@@ -2603,25 +2645,55 @@ Install the package's dependencies to serve its surfaces.
2603
2645
  host: request.headers.host,
2604
2646
  localOrigins: wantsLocalOrigins(location.search)
2605
2647
  });
2606
- void this.sendView(socket).then(() => this.syncPresence(route.run));
2648
+ void this.sendView(socket).then(() => {
2649
+ this.syncPresence(route.run);
2650
+ this.syncOpenSurfaces(route.run);
2651
+ });
2607
2652
  socket.on("message", (raw) => void this.receiveView(socket, raw));
2608
2653
  socket.on("close", () => {
2609
2654
  this.views.delete(socket);
2610
2655
  this.syncPresence(route.run);
2656
+ this.syncOpenSurfaces(route.run);
2611
2657
  });
2612
2658
  });
2613
2659
  this.sockets.on("connection", (socket, request) => {
2614
2660
  const run = runFromUrl(request.url);
2615
2661
  this.socketRuns.set(socket, run);
2662
+ this.consoleSockets.add(socket);
2616
2663
  void this.runFor(run).then((session) => {
2617
2664
  send(socket, { type: "state", state: session.project(), cause: "connected" });
2665
+ this.syncOpenSurfaces(run);
2618
2666
  });
2619
2667
  socket.on("message", (raw) => void this.receive(socket, raw));
2620
2668
  socket.on("close", () => {
2669
+ this.consoleSockets.delete(socket);
2621
2670
  if (this.socketPresence.delete(socket)) this.syncPresence(run);
2671
+ this.syncOpenSurfaces(run);
2622
2672
  });
2623
2673
  });
2624
2674
  }
2675
+ /**
2676
+ * Ping every console and viewer socket, and drop one that left the last
2677
+ * ping unanswered. A proxy in front of the server closes a connection
2678
+ * that carries nothing for long enough (60s on an AWS load balancer), and
2679
+ * an idle session sends nothing; a peer that vanished without closing is
2680
+ * otherwise never noticed (#847).
2681
+ */
2682
+ keepSocketsAlive() {
2683
+ this.keepAlive = setInterval(() => {
2684
+ for (const server of [this.sockets, this.viewSockets]) {
2685
+ for (const client of server?.clients ?? []) {
2686
+ if (this.unanswered.has(client)) {
2687
+ client.terminate();
2688
+ continue;
2689
+ }
2690
+ this.unanswered.add(client);
2691
+ client.ping();
2692
+ }
2693
+ }
2694
+ }, this.options.keepAliveMs ?? KEEP_ALIVE_MS);
2695
+ this.keepAlive.unref();
2696
+ }
2625
2697
  async receive(socket, raw) {
2626
2698
  let envelope;
2627
2699
  try {
@@ -2748,6 +2820,23 @@ Install the package's dependencies to serve its surfaces.
2748
2820
  }
2749
2821
  session.syncPresence(present);
2750
2822
  }
2823
+ /**
2824
+ * Tell a run how many pages are open on it, console and viewer alike.
2825
+ * Opening one is activity, and the dev server keeps a run with any open
2826
+ * awake (§11.4a), which the specification leaves to the host.
2827
+ */
2828
+ syncOpenSurfaces(run) {
2829
+ const session = run === "walkthrough" ? this.walkthrough : this.session;
2830
+ if (!session) return;
2831
+ let count = 0;
2832
+ for (const socket of this.consoleSockets) {
2833
+ if ((this.socketRuns.get(socket) ?? "session") === run) count += 1;
2834
+ }
2835
+ for (const view of this.views.values()) {
2836
+ if (view.route.run === run) count += 1;
2837
+ }
2838
+ session.syncOpenSurfaces(count);
2839
+ }
2751
2840
  updateViews(event, run) {
2752
2841
  if (event.type === "round-processing") {
2753
2842
  const teams = this.processing.get(run) ?? /* @__PURE__ */ new Set();