@seriousgaming/sdk-tools 1.11.0 → 1.12.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 (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-L7F4XKCB.js → cli-774W3MN5.js} +26 -26
  31. package/dist/cli-7BUD3VAD.js +16 -0
  32. package/dist/{cli-XNOAO6DY.js → cli-7KEP57S7.js} +12 -12
  33. package/dist/{cli-5UKWX3IU.js → cli-7OYFJMA6.js} +18 -18
  34. package/dist/{cli-WNHMJM3Z.js → cli-7ZNEDQ3G.js} +20 -20
  35. package/dist/{cli-5RRPUL6V.js → cli-AFK6OUID.js} +12 -12
  36. package/dist/{cli-6P6V2EHY.js → cli-AIYQFWXN.js} +25 -25
  37. package/dist/{cli-ERJNDBDH.js → cli-ARAAEWIQ.js} +2 -2
  38. package/dist/cli-AVQYV3N4.js +36 -0
  39. package/dist/{cli-TI2FOFPA.js → cli-B54Z6CXH.js} +16 -16
  40. package/dist/{cli-EEO5ZPAZ.js → cli-B5TC4MEL.js} +5 -5
  41. package/dist/{cli-5Z4D3F6Y.js → cli-BCXGOLU3.js} +3 -3
  42. package/dist/{cli-G2GLW5Z4.js → cli-BHAODVTZ.js} +1 -1
  43. package/dist/{cli-4F24FUW6.js → cli-BPS2JG74.js} +20 -20
  44. package/dist/{cli-W3RG2MRI.js → cli-BVO55SR2.js} +2 -2
  45. package/dist/{cli-R5SNTPND.js → cli-CFH3JZP5.js} +21 -21
  46. package/dist/{cli-Q7QSWNY2.js → cli-CTK2OIK6.js} +20 -20
  47. package/dist/{cli-ATWJCB2G.js → cli-CW5MV4VX.js} +4 -4
  48. package/dist/{cli-TCQJL2GY.js → cli-D5VOSJZ7.js} +1 -1
  49. package/dist/{cli-KIZTASLL.js → cli-DAEPMK7A.js} +5 -5
  50. package/dist/{cli-44CM2AH2.js → cli-DAHR7PKB.js} +1 -1
  51. package/dist/{cli-XW3JLRSA.js → cli-DWDSBTYL.js} +1 -1
  52. package/dist/cli-DYSDPGXW.js +95 -0
  53. package/dist/{cli-QEFYDXMH.js → cli-DZCLRZXJ.js} +1 -1
  54. package/dist/{cli-77T4LJQF.js → cli-EJ47IE45.js} +24 -24
  55. package/dist/{cli-QDBYFITU.js → cli-EK4OSJHA.js} +2 -2
  56. package/dist/{cli-GO64NABP.js → cli-FCJHNXDA.js} +1 -1
  57. package/dist/{cli-ZNQBF4Z3.js → cli-FNESSE3L.js} +1 -1
  58. package/dist/{cli-D3S7NJZ3.js → cli-FTLH4WCE.js} +17 -17
  59. package/dist/{cli-JHLWBRXB.js → cli-FYV77YS2.js} +18 -18
  60. package/dist/cli-GMJX6Q4Q.js +36 -0
  61. package/dist/{cli-7JUNA74L.js → cli-GRBVNGDW.js} +1 -1
  62. package/dist/{cli-XKAIDYIE.js → cli-HAFCFY77.js} +33 -19
  63. package/dist/{cli-OXLOGXT3.js → cli-HCJLYI24.js} +3 -3
  64. package/dist/{cli-XOYUTNER.js → cli-HCXS5EXU.js} +25 -25
  65. package/dist/cli-HEUNNHDH.js +36 -0
  66. package/dist/{cli-G3TU6CP6.js → cli-HNUTIWDZ.js} +19 -19
  67. package/dist/{cli-JXQLHJO2.js → cli-HXT25ETJ.js} +244 -243
  68. package/dist/{cli-5EH4WTH4.js → cli-IGEL7UJQ.js} +5 -5
  69. package/dist/{cli-TLSTSZAC.js → cli-IO32YA5N.js} +26 -26
  70. package/dist/cli-IPTGZDBB.js +36 -0
  71. package/dist/{cli-OBLEROSC.js → cli-J25TYFKB.js} +19 -19
  72. package/dist/{cli-5ATO27Z4.js → cli-J7XYMEMX.js} +20 -20
  73. package/dist/{cli-X3TSTTYI.js → cli-JC5OJRID.js} +2 -2
  74. package/dist/{cli-25SJZI7N.js → cli-JD563OF4.js} +126 -27
  75. package/dist/{cli-VXLHOZSO.js → cli-JRJF2WHU.js} +20 -20
  76. package/dist/{cli-UQC46YSV.js → cli-JTFLIMIG.js} +3 -3
  77. package/dist/{cli-K4HSQWXC.js → cli-K2BSJ2PK.js} +2 -2
  78. package/dist/{cli-OM32UURE.js → cli-K4QTYMN2.js} +25 -25
  79. package/dist/{cli-BJFYGVJV.js → cli-KFJDD4C4.js} +20 -20
  80. package/dist/{cli-WW54THXN.js → cli-KVQ2JPVD.js} +1 -1
  81. package/dist/{cli-LHMRUJVN.js → cli-L6AHMW2Z.js} +1 -1
  82. package/dist/{cli-IKSLPAZN.js → cli-LCYUBCVY.js} +4 -4
  83. package/dist/{cli-HGCOEL5T.js → cli-LEWSCDH5.js} +4 -4
  84. package/dist/{cli-XJ7JESC2.js → cli-LI6G7GND.js} +27 -27
  85. package/dist/{cli-OMTHTWYJ.js → cli-LU2GCWIU.js} +21 -21
  86. package/dist/{cli-UEQMK4WX.js → cli-M3Z2KOEB.js} +1 -1
  87. package/dist/{cli-226ZJ72R.js → cli-M6E3E3I2.js} +170 -3
  88. package/dist/{cli-NKKCDO6K.js → cli-MCRPA4Z6.js} +20 -20
  89. package/dist/{cli-BQ36DV5C.js → cli-MI2DEDMA.js} +3 -3
  90. package/dist/{cli-6O7YCK2M.js → cli-MITZ6SE7.js} +3 -3
  91. package/dist/{cli-LPFSJ625.js → cli-MTIYD3BX.js} +26 -26
  92. package/dist/{cli-5M6KDNVX.js → cli-MTZUJGBK.js} +2 -2
  93. package/dist/{cli-GSOV26O5.js → cli-NCLMUXLC.js} +14 -14
  94. package/dist/{cli-X52TXCNF.js → cli-NLS3DKWH.js} +26 -26
  95. package/dist/{cli-AH6AMAIB.js → cli-NMDGS7IE.js} +1 -1
  96. package/dist/cli-O3DJO2CS.js +30 -0
  97. package/dist/{cli-BC67QHD5.js → cli-O47D5BFN.js} +2 -2
  98. package/dist/{cli-MDVC5ZNM.js → cli-OBRZ36VP.js} +14 -14
  99. package/dist/{cli-UVIURDZC.js → cli-OMG4E53H.js} +20 -20
  100. package/dist/{cli-C32Q5E5I.js → cli-P6V3NSU4.js} +1 -1
  101. package/dist/{cli-RMD5WSUQ.js → cli-PAMQMTHK.js} +21 -21
  102. package/dist/{cli-WNBP3LOD.js → cli-PKTHOCT3.js} +26 -26
  103. package/dist/{cli-S3NHXAJM.js → cli-QK7QAP5H.js} +18 -18
  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-TEBV2OIW.js → cli-RQISHMJF.js} +83 -21
  109. package/dist/{cli-X64BNBQH.js → cli-RVZH462G.js} +585 -8
  110. package/dist/{cli-6AMK3DYS.js → cli-SEEOQVUL.js} +12 -12
  111. package/dist/{cli-QTCTWYCM.js → cli-SO354HPI.js} +3 -3
  112. package/dist/{cli-RHL4B4H7.js → cli-T76HDH7F.js} +88 -4
  113. package/dist/{cli-ZJW6HQ6N.js → cli-TIS7DWRR.js} +7 -7
  114. package/dist/{cli-6JWDFCUV.js → cli-TY3B6XS7.js} +21 -21
  115. package/dist/{cli-4FJL3KQZ.js → cli-UKEZJFIT.js} +2 -2
  116. package/dist/cli-VQAMW4RF.js +95 -0
  117. package/dist/{cli-ATHATKI5.js → cli-W4LMRVZT.js} +78 -47
  118. package/dist/cli-W7I5KGIB.js +84 -0
  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 +1918 -283
  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 +8 -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 +28 -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 +1912 -277
  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,53 +1,53 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ input
4
+ } from "./cli-2W4B6PD5.js";
2
5
  import {
3
6
  resolvePatchedDefinition
4
- } from "./cli-DH35TZ2Q.js";
7
+ } from "./cli-2VXP34R5.js";
5
8
  import "./cli-S5IVGDDD.js";
6
9
  import {
7
10
  getResourceIdentifierError,
8
11
  readAuthoredBundle
9
- } from "./cli-6O7YCK2M.js";
12
+ } from "./cli-MITZ6SE7.js";
10
13
  import {
11
14
  resolveInputSource
12
- } from "./cli-XW3JLRSA.js";
15
+ } from "./cli-DWDSBTYL.js";
16
+ import {
17
+ loadPackageContext
18
+ } from "./cli-L6AHMW2Z.js";
13
19
  import {
14
20
  updateEndpointFiles
15
- } from "./cli-RHL4B4H7.js";
16
- import "./cli-WW54THXN.js";
21
+ } from "./cli-T76HDH7F.js";
22
+ import "./cli-KVQ2JPVD.js";
17
23
  import "./cli-QUNIRH7A.js";
18
- import "./cli-ERJNDBDH.js";
19
- import {
20
- loadPackageContext
21
- } from "./cli-LHMRUJVN.js";
22
- import "./cli-X3TSTTYI.js";
24
+ import "./cli-ARAAEWIQ.js";
25
+ import "./cli-JC5OJRID.js";
23
26
  import {
24
27
  existingResourcesHint,
25
28
  findBundleFile
26
- } from "./cli-QEFYDXMH.js";
29
+ } from "./cli-DZCLRZXJ.js";
27
30
  import {
28
31
  operationError,
29
32
  printOperationResult,
30
33
  regenerateTypes
31
- } from "./cli-QTCTWYCM.js";
32
- import {
33
- input
34
- } from "./cli-P3NUTOPK.js";
35
- import "./cli-UQC46YSV.js";
36
- import "./cli-6BLVI2JM.js";
37
- import "./cli-UEQMK4WX.js";
38
- import "./cli-JXQLHJO2.js";
34
+ } from "./cli-SO354HPI.js";
35
+ import "./cli-JTFLIMIG.js";
36
+ import "./cli-RMVJMOWU.js";
37
+ import "./cli-M3Z2KOEB.js";
38
+ import "./cli-HXT25ETJ.js";
39
39
  import "./cli-25RWY5BQ.js";
40
- import "./cli-QWQMPCL6.js";
41
40
  import {
42
41
  validateSDKEndpoint
43
- } from "./cli-X64BNBQH.js";
44
- import "./cli-F2D4GGUA.js";
42
+ } from "./cli-RVZH462G.js";
43
+ import "./cli-QWQMPCL6.js";
44
+ import "./cli-2BKEIIA3.js";
45
45
  import {
46
46
  logger
47
- } from "./cli-TCQJL2GY.js";
47
+ } from "./cli-D5VOSJZ7.js";
48
48
  import {
49
49
  CliError
50
- } from "./cli-5VZBFMCK.js";
50
+ } from "./cli-5PIFO3EN.js";
51
51
 
52
52
  // cli/commands/resources/endpoint/update.ts
53
53
  import { readFileSync } from "fs";
@@ -1,60 +1,60 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  reviewSchemaProperties
4
- } from "./cli-B3EFE7ZF.js";
4
+ } from "./cli-WXGJFA4F.js";
5
+ import {
6
+ confirmAction,
7
+ input
8
+ } from "./cli-2W4B6PD5.js";
5
9
  import {
6
10
  resolvePatchedDefinition
7
- } from "./cli-DH35TZ2Q.js";
11
+ } from "./cli-2VXP34R5.js";
8
12
  import "./cli-S5IVGDDD.js";
9
13
  import {
10
14
  getResourceIdentifierError,
11
15
  readAuthoredBundle
12
- } from "./cli-6O7YCK2M.js";
16
+ } from "./cli-MITZ6SE7.js";
13
17
  import {
14
18
  resolveInputSource
15
- } from "./cli-XW3JLRSA.js";
19
+ } from "./cli-DWDSBTYL.js";
20
+ import {
21
+ loadPackageContext
22
+ } from "./cli-L6AHMW2Z.js";
16
23
  import {
17
24
  updateCapabilityFiles
18
- } from "./cli-RHL4B4H7.js";
19
- import "./cli-WW54THXN.js";
25
+ } from "./cli-T76HDH7F.js";
26
+ import "./cli-KVQ2JPVD.js";
20
27
  import {
21
28
  extractSchemaProperties,
22
29
  wrapAsFullSchema
23
30
  } from "./cli-QUNIRH7A.js";
24
- import "./cli-ERJNDBDH.js";
25
- import {
26
- loadPackageContext
27
- } from "./cli-LHMRUJVN.js";
28
- import "./cli-X3TSTTYI.js";
31
+ import "./cli-ARAAEWIQ.js";
32
+ import "./cli-JC5OJRID.js";
29
33
  import {
30
34
  existingResourcesHint,
31
35
  findBundleFile
32
- } from "./cli-QEFYDXMH.js";
36
+ } from "./cli-DZCLRZXJ.js";
33
37
  import {
34
38
  operationError,
35
39
  printOperationResult,
36
40
  regenerateTypes
37
- } from "./cli-QTCTWYCM.js";
38
- import {
39
- confirmAction,
40
- input
41
- } from "./cli-P3NUTOPK.js";
42
- import "./cli-UQC46YSV.js";
43
- import "./cli-6BLVI2JM.js";
44
- import "./cli-UEQMK4WX.js";
45
- import "./cli-JXQLHJO2.js";
41
+ } from "./cli-SO354HPI.js";
42
+ import "./cli-JTFLIMIG.js";
43
+ import "./cli-RMVJMOWU.js";
44
+ import "./cli-M3Z2KOEB.js";
45
+ import "./cli-HXT25ETJ.js";
46
46
  import "./cli-25RWY5BQ.js";
47
- import "./cli-QWQMPCL6.js";
48
47
  import {
49
48
  validateSDKCapability
50
- } from "./cli-X64BNBQH.js";
51
- import "./cli-F2D4GGUA.js";
49
+ } from "./cli-RVZH462G.js";
50
+ import "./cli-QWQMPCL6.js";
51
+ import "./cli-2BKEIIA3.js";
52
52
  import {
53
53
  logger
54
- } from "./cli-TCQJL2GY.js";
54
+ } from "./cli-D5VOSJZ7.js";
55
55
  import {
56
56
  CliError
57
- } from "./cli-5VZBFMCK.js";
57
+ } from "./cli-5PIFO3EN.js";
58
58
 
59
59
  // cli/commands/resources/capability/update.ts
60
60
  import { readFileSync } from "fs";
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ createSettingsEditor
4
+ } from "./cli-7OYFJMA6.js";
5
+ import "./cli-B5TC4MEL.js";
6
+ import "./cli-2W4B6PD5.js";
7
+ import "./cli-2VXP34R5.js";
8
+ import "./cli-S5IVGDDD.js";
9
+ import "./cli-MITZ6SE7.js";
10
+ import "./cli-DWDSBTYL.js";
11
+ import "./cli-L6AHMW2Z.js";
12
+ import "./cli-T76HDH7F.js";
13
+ import "./cli-KVQ2JPVD.js";
14
+ import "./cli-QUNIRH7A.js";
15
+ import "./cli-ARAAEWIQ.js";
16
+ import "./cli-JC5OJRID.js";
17
+ import "./cli-DZCLRZXJ.js";
18
+ import "./cli-SO354HPI.js";
19
+ import "./cli-JTFLIMIG.js";
20
+ import "./cli-RMVJMOWU.js";
21
+ import "./cli-M3Z2KOEB.js";
22
+ import "./cli-HXT25ETJ.js";
23
+ import "./cli-25RWY5BQ.js";
24
+ import "./cli-RVZH462G.js";
25
+ import "./cli-QWQMPCL6.js";
26
+ import "./cli-2BKEIIA3.js";
27
+ import "./cli-D5VOSJZ7.js";
28
+ import "./cli-5PIFO3EN.js";
29
+
30
+ // cli/commands/resources/setup/new.ts
31
+ function createSetup(definitionInput, options) {
32
+ return createSettingsEditor("setup", definitionInput, options);
33
+ }
34
+ export {
35
+ createSetup
36
+ };
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ confirmAction
4
+ } from "./cli-2W4B6PD5.js";
5
+ import {
6
+ loadPackageContext
7
+ } from "./cli-L6AHMW2Z.js";
8
+ import {
9
+ deleteBenchmarkFiles,
10
+ findBenchmarkReferences
11
+ } from "./cli-T76HDH7F.js";
12
+ import "./cli-KVQ2JPVD.js";
13
+ import "./cli-QUNIRH7A.js";
14
+ import "./cli-ARAAEWIQ.js";
15
+ import "./cli-JC5OJRID.js";
16
+ import "./cli-DZCLRZXJ.js";
17
+ import {
18
+ operationError,
19
+ recordOperationResult,
20
+ regenerateTypes
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
+ import "./cli-25RWY5BQ.js";
27
+ import "./cli-RVZH462G.js";
28
+ import "./cli-QWQMPCL6.js";
29
+ import "./cli-2BKEIIA3.js";
30
+ import {
31
+ logger
32
+ } from "./cli-D5VOSJZ7.js";
33
+ import "./cli-5PIFO3EN.js";
34
+
35
+ // cli/commands/resources/benchmark/delete.ts
36
+ async function deleteBenchmark(identifier, options) {
37
+ logger.info("\nDeleting benchmark...\n");
38
+ loadPackageContext(options.workingDir);
39
+ const references = findBenchmarkReferences({ packagePath: options.workingDir, identifier });
40
+ logger.info(`Benchmark: ${identifier}`);
41
+ if (references.length > 0) {
42
+ logger.info("\nThis benchmark is referenced by:");
43
+ for (const ref of references) logger.info(` - ${ref}`);
44
+ logger.info("\nThese references will be removed.");
45
+ }
46
+ const confirmed = await confirmAction(
47
+ { message: "Are you sure you want to delete this benchmark?" },
48
+ options.yes
49
+ );
50
+ if (!confirmed) {
51
+ logger.info("\nDeletion cancelled.\n");
52
+ return;
53
+ }
54
+ logger.info("");
55
+ const result = deleteBenchmarkFiles({ packagePath: options.workingDir, identifier });
56
+ if (!result.success) {
57
+ throw operationError(result, "Failed to delete benchmark files");
58
+ }
59
+ recordOperationResult(result);
60
+ for (const file of result.filesDeleted || []) logger.info(` \u2713 Deleted: ${file}`);
61
+ for (const ref of result.referencesRemoved || []) {
62
+ logger.info(` \u2713 Removed reference from: ${ref}`);
63
+ }
64
+ await regenerateTypes(options.workingDir);
65
+ logger.success("Benchmark deleted successfully!");
66
+ }
67
+ export {
68
+ deleteBenchmark
69
+ };
@@ -0,0 +1,85 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ readAuthoredBundle
4
+ } from "./cli-MITZ6SE7.js";
5
+ import {
6
+ resolveInputSource
7
+ } from "./cli-DWDSBTYL.js";
8
+ import {
9
+ loadPackageContext
10
+ } from "./cli-L6AHMW2Z.js";
11
+ import {
12
+ createBenchmarkFiles
13
+ } from "./cli-T76HDH7F.js";
14
+ import "./cli-KVQ2JPVD.js";
15
+ import "./cli-QUNIRH7A.js";
16
+ import "./cli-ARAAEWIQ.js";
17
+ import "./cli-JC5OJRID.js";
18
+ import "./cli-DZCLRZXJ.js";
19
+ import {
20
+ BUILD_COMMAND,
21
+ generateTypes,
22
+ operationError,
23
+ printOperationResult
24
+ } from "./cli-SO354HPI.js";
25
+ import "./cli-JTFLIMIG.js";
26
+ import "./cli-RMVJMOWU.js";
27
+ import "./cli-M3Z2KOEB.js";
28
+ import "./cli-HXT25ETJ.js";
29
+ import "./cli-25RWY5BQ.js";
30
+ import {
31
+ validateSDKBenchmark
32
+ } from "./cli-RVZH462G.js";
33
+ import "./cli-QWQMPCL6.js";
34
+ import {
35
+ resourceExample
36
+ } from "./cli-2BKEIIA3.js";
37
+ import {
38
+ logger
39
+ } from "./cli-D5VOSJZ7.js";
40
+ import {
41
+ CliError
42
+ } from "./cli-5PIFO3EN.js";
43
+
44
+ // cli/commands/resources/benchmark/new.ts
45
+ async function createBenchmark(definitionInput, options) {
46
+ logger.info("\nCreating new benchmark...\n");
47
+ loadPackageContext(options.workingDir, { suggestNewPackage: true });
48
+ const inputSource = await resolveInputSource(definitionInput, options.file);
49
+ if (inputSource.kind !== "json") {
50
+ throw new CliError(
51
+ "USAGE_MISSING_INPUT",
52
+ "A benchmark is created from a JSON definition.",
53
+ {
54
+ hint: `Expected format:
55
+ ${resourceExample("benchmark", "new")}`
56
+ }
57
+ );
58
+ }
59
+ const bundle = readAuthoredBundle({
60
+ json: inputSource.json,
61
+ type: "benchmark",
62
+ command: "new",
63
+ validate: validateSDKBenchmark
64
+ });
65
+ const { identifier, ...definition } = bundle.definition;
66
+ const result = await createBenchmarkFiles({
67
+ packagePath: options.workingDir,
68
+ identifier,
69
+ definition
70
+ });
71
+ if (!result.success) {
72
+ throw operationError(result, "Failed to create benchmark files");
73
+ }
74
+ logger.success("Benchmark created successfully!");
75
+ printOperationResult(result);
76
+ await generateTypes(options.workingDir);
77
+ logger.info("Next steps:");
78
+ logger.info(` 1. Add "${identifier}" to the engine's "benchmarks" and write it from Run`);
79
+ logger.info(' 2. List "benchmarks" in "requires" in seriousgaming.sdk.json');
80
+ logger.info(" 3. Edit sample.json to preview a debrief against realistic figures");
81
+ logger.info(` 4. Run "${BUILD_COMMAND}" to build your package`);
82
+ }
83
+ export {
84
+ createBenchmark
85
+ };
package/dist/cli.js CHANGED
@@ -2,29 +2,29 @@
2
2
  import {
3
3
  RESOURCE_DESCRIPTORS,
4
4
  lazy
5
- } from "./cli-ATHATKI5.js";
5
+ } from "./cli-W4LMRVZT.js";
6
6
  import {
7
7
  DEV_PORT_ENV_VAR,
8
8
  ERROR_OVERLAY_ENV_VAR,
9
9
  defaultDevPort
10
- } from "./cli-C32Q5E5I.js";
10
+ } from "./cli-P6V3NSU4.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-G2GLW5Z4.js";
15
+ } from "./cli-BHAODVTZ.js";
16
16
  import {
17
17
  setAssumeYes,
18
18
  setPromptUsage
19
- } from "./cli-P3NUTOPK.js";
19
+ } from "./cli-2W4B6PD5.js";
20
20
  import {
21
21
  compact,
22
22
  indent,
23
23
  resourceExample
24
- } from "./cli-F2D4GGUA.js";
24
+ } from "./cli-2BKEIIA3.js";
25
25
  import {
26
26
  setVerboseMode
27
- } from "./cli-TCQJL2GY.js";
27
+ } from "./cli-D5VOSJZ7.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-5VZBFMCK.js";
38
+ } from "./cli-5PIFO3EN.js";
39
39
 
40
40
  // cli/program.ts
41
41
  import { cwd } from "process";
@@ -138,67 +138,67 @@ function newFileHelp(spec) {
138
138
  }
139
139
 
140
140
  // cli/program.ts
141
- var blobUploadCommand = lazy(() => import("./cli-W3RG2MRI.js"), "blobUploadCommand");
142
- var buildCommand = lazy(() => import("./cli-H6PP2MZT.js"), "buildCommand");
143
- var buildEngineCommand = lazy(() => import("./cli-5EH4WTH4.js"), "buildEngineCommand");
144
- var configGetCommand = lazy(() => import("./cli-OXLOGXT3.js"), "configGetCommand");
145
- var configPathCommand = lazy(() => import("./cli-OXLOGXT3.js"), "configPathCommand");
146
- var configSetCommand = lazy(() => import("./cli-OXLOGXT3.js"), "configSetCommand");
147
- var configureCommand = lazy(() => import("./cli-XKAIDYIE.js"), "configureCommand");
148
- var deleteCommand = lazy(() => import("./cli-6AMK3DYS.js"), "deleteCommand");
149
- var devCommand = lazy(() => import("./cli-UVIURDZC.js"), "devCommand");
150
- var devStatusCommand = lazy(() => import("./cli-5Z4D3F6Y.js"), "devStatusCommand");
151
- var devStopCommand = lazy(() => import("./cli-5Z4D3F6Y.js"), "devStopCommand");
152
- var docsCommand = lazy(() => import("./cli-44CM2AH2.js"), "docsCommand");
153
- var docsExportCommand = lazy(() => import("./cli-7JUNA74L.js"), "docsExportCommand");
141
+ var blobUploadCommand = lazy(() => import("./cli-BVO55SR2.js"), "blobUploadCommand");
142
+ var buildCommand = lazy(() => import("./cli-3GO3M2MX.js"), "buildCommand");
143
+ var buildEngineCommand = lazy(() => import("./cli-IGEL7UJQ.js"), "buildEngineCommand");
144
+ var configGetCommand = lazy(() => import("./cli-HCJLYI24.js"), "configGetCommand");
145
+ var configPathCommand = lazy(() => import("./cli-HCJLYI24.js"), "configPathCommand");
146
+ var configSetCommand = lazy(() => import("./cli-HCJLYI24.js"), "configSetCommand");
147
+ var configureCommand = lazy(() => import("./cli-HAFCFY77.js"), "configureCommand");
148
+ var deleteCommand = lazy(() => import("./cli-SEEOQVUL.js"), "deleteCommand");
149
+ var devCommand = lazy(() => import("./cli-OMG4E53H.js"), "devCommand");
150
+ var devStatusCommand = lazy(() => import("./cli-BCXGOLU3.js"), "devStatusCommand");
151
+ var devStopCommand = lazy(() => import("./cli-BCXGOLU3.js"), "devStopCommand");
152
+ var docsCommand = lazy(() => import("./cli-DAHR7PKB.js"), "docsCommand");
153
+ var docsExportCommand = lazy(() => import("./cli-GRBVNGDW.js"), "docsExportCommand");
154
154
  var endpointAuditCommand = lazy(
155
- () => import("./cli-5RRPUL6V.js"),
155
+ () => import("./cli-AFK6OUID.js"),
156
156
  "endpointAuditCommand"
157
157
  );
158
- var endpointCallCommand = lazy(() => import("./cli-JHLWBRXB.js"), "endpointCallCommand");
159
- var endpointListCommand = lazy(() => import("./cli-HGCOEL5T.js"), "endpointListCommand");
160
- var generateCommand = lazy(() => import("./cli-WZNIW6ZO.js"), "generateCommand");
161
- var initCommand = lazy(() => import("./cli-GSOV26O5.js"), "initCommand");
162
- var newCommand = lazy(() => import("./cli-XNOAO6DY.js"), "newCommand");
158
+ var endpointCallCommand = lazy(() => import("./cli-FYV77YS2.js"), "endpointCallCommand");
159
+ var endpointListCommand = lazy(() => import("./cli-LEWSCDH5.js"), "endpointListCommand");
160
+ var generateCommand = lazy(() => import("./cli-7BUD3VAD.js"), "generateCommand");
161
+ var initCommand = lazy(() => import("./cli-NCLMUXLC.js"), "initCommand");
162
+ var newCommand = lazy(() => import("./cli-7KEP57S7.js"), "newCommand");
163
163
  var packageBundleCommand = lazy(
164
- () => import("./cli-BQ36DV5C.js"),
164
+ () => import("./cli-MI2DEDMA.js"),
165
165
  "packageBundleCommand"
166
166
  );
167
167
  var packagePublishCommand = lazy(
168
- () => import("./cli-5O7XENQY.js"),
168
+ () => import("./cli-3GJYZH4C.js"),
169
169
  "packagePublishCommand"
170
170
  );
171
171
  var packageVersionCommand = lazy(
172
- () => import("./cli-4FJL3KQZ.js"),
172
+ () => import("./cli-UKEZJFIT.js"),
173
173
  "packageVersionCommand"
174
174
  );
175
- var patchCommand = lazy(() => import("./cli-KJA6GLZI.js"), "patchCommand");
176
- var resolveCommand = lazy(() => import("./cli-IKSLPAZN.js"), "resolveCommand");
177
- var screenshotCommand = lazy(() => import("./cli-S3NHXAJM.js"), "screenshotCommand");
178
- var clockAdvanceCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "clockAdvanceCommand");
179
- var faultCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "faultCommand");
180
- var localeCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "localeCommand");
181
- var participantAddCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "participantAddCommand");
182
- var participantJoinCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "participantJoinCommand");
183
- var participantMoveCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "participantMoveCommand");
175
+ var patchCommand = lazy(() => import("./cli-R2DFD6ZZ.js"), "patchCommand");
176
+ var resolveCommand = lazy(() => import("./cli-LCYUBCVY.js"), "resolveCommand");
177
+ var screenshotCommand = lazy(() => import("./cli-QK7QAP5H.js"), "screenshotCommand");
178
+ var clockAdvanceCommand = lazy(() => import("./cli-FTLH4WCE.js"), "clockAdvanceCommand");
179
+ var faultCommand = lazy(() => import("./cli-FTLH4WCE.js"), "faultCommand");
180
+ var localeCommand = lazy(() => import("./cli-FTLH4WCE.js"), "localeCommand");
181
+ var participantAddCommand = lazy(() => import("./cli-FTLH4WCE.js"), "participantAddCommand");
182
+ var participantJoinCommand = lazy(() => import("./cli-FTLH4WCE.js"), "participantJoinCommand");
183
+ var participantMoveCommand = lazy(() => import("./cli-FTLH4WCE.js"), "participantMoveCommand");
184
184
  var participantRenameCommand = lazy(
185
- () => import("./cli-D3S7NJZ3.js"),
185
+ () => import("./cli-FTLH4WCE.js"),
186
186
  "participantRenameCommand"
187
187
  );
188
- var playCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "playCommand");
189
- var reconfigureCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "reconfigureCommand");
190
- var resetCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "resetCommand");
191
- var scenarioCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "scenarioCommand");
192
- var teamAddCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "teamAddCommand");
193
- var teamRemoveCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "teamRemoveCommand");
194
- var teamRenameCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "teamRenameCommand");
195
- var timerCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "timerCommand");
196
- var undoCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "undoCommand");
197
- var waitingRoomCommand = lazy(() => import("./cli-D3S7NJZ3.js"), "waitingRoomCommand");
198
- var tickCommand = lazy(() => import("./cli-27Z5T52R.js"), "tickCommand");
199
- var updateCommand = lazy(() => import("./cli-27TQVLVF.js"), "updateCommand");
200
- var versionCommand = lazy(() => import("./cli-5M6KDNVX.js"), "versionCommand");
201
- var viewCommand = lazy(() => import("./cli-MDVC5ZNM.js"), "viewCommand");
188
+ var playCommand = lazy(() => import("./cli-FTLH4WCE.js"), "playCommand");
189
+ var reconfigureCommand = lazy(() => import("./cli-FTLH4WCE.js"), "reconfigureCommand");
190
+ var resetCommand = lazy(() => import("./cli-FTLH4WCE.js"), "resetCommand");
191
+ var scenarioCommand = lazy(() => import("./cli-FTLH4WCE.js"), "scenarioCommand");
192
+ var teamAddCommand = lazy(() => import("./cli-FTLH4WCE.js"), "teamAddCommand");
193
+ var teamRemoveCommand = lazy(() => import("./cli-FTLH4WCE.js"), "teamRemoveCommand");
194
+ var teamRenameCommand = lazy(() => import("./cli-FTLH4WCE.js"), "teamRenameCommand");
195
+ var timerCommand = lazy(() => import("./cli-FTLH4WCE.js"), "timerCommand");
196
+ var undoCommand = lazy(() => import("./cli-FTLH4WCE.js"), "undoCommand");
197
+ var waitingRoomCommand = lazy(() => import("./cli-FTLH4WCE.js"), "waitingRoomCommand");
198
+ var tickCommand = lazy(() => import("./cli-O3DJO2CS.js"), "tickCommand");
199
+ var updateCommand = lazy(() => import("./cli-5JUVHNZF.js"), "updateCommand");
200
+ var versionCommand = lazy(() => import("./cli-MTZUJGBK.js"), "versionCommand");
201
+ var viewCommand = lazy(() => import("./cli-OBRZ36VP.js"), "viewCommand");
202
202
  function commandPath(command) {
203
203
  const names = [];
204
204
  for (let current = command; current?.parent; current = current.parent) {