@seriousgaming/sdk-tools 1.7.0 → 1.9.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 (188) hide show
  1. package/dist/agent/guidance.md +1 -0
  2. package/dist/{cli-SOFCTQAL.js → cli-2BF7KBBJ.js} +15 -15
  3. package/dist/cli-2CSI2UU2.js +110 -0
  4. package/dist/{cli-2BH7FX27.js → cli-2FXZZLCL.js} +1 -1
  5. package/dist/{cli-H3J3ICCQ.js → cli-2I6UN6C3.js} +3 -3
  6. package/dist/{cli-MYJGGLC5.js → cli-2JEICVMA.js} +3 -3
  7. package/dist/{cli-7RYIEKMB.js → cli-2PMLR6WG.js} +15 -15
  8. package/dist/{cli-JRIIAZ33.js → cli-2UOUIVHW.js} +53 -38
  9. package/dist/{cli-OQG3Y4RU.js → cli-2VV5IPSY.js} +15 -15
  10. package/dist/{cli-ZRPWZOCW.js → cli-35K37SYY.js} +20 -16
  11. package/dist/cli-3I6AI4AA.js +36 -0
  12. package/dist/{cli-YSPZZQCP.js → cli-3RMP4HKZ.js} +2 -2
  13. package/dist/{cli-4UWFQNGF.js → cli-3VV2JLHX.js} +1 -1
  14. package/dist/cli-3YGNWZC6.js +30 -0
  15. package/dist/{cli-TPNQLYPC.js → cli-4L7S27XO.js} +1 -1
  16. package/dist/cli-4X3X4HB2.js +16 -0
  17. package/dist/{cli-TJ3PLRHF.js → cli-5BPQ73OM.js} +15 -15
  18. package/dist/{cli-UTM4QU67.js → cli-5PTCQTS6.js} +282 -96
  19. package/dist/{cli-ZTZ5H55T.js → cli-6COAU7JR.js} +17 -17
  20. package/dist/{cli-QVASWX2A.js → cli-6GDPO5VU.js} +2 -2
  21. package/dist/{cli-TFMNNVJ7.js → cli-6KL5B7EC.js} +15 -15
  22. package/dist/{cli-NOQBWJQN.js → cli-6Y4XIVQS.js} +3 -3
  23. package/dist/cli-6ZBQELF2.js +36 -0
  24. package/dist/{cli-MMN4BPO4.js → cli-7CW2BBJG.js} +1 -1
  25. package/dist/{cli-LQ4VSM5R.js → cli-7N7WFRWA.js} +0 -0
  26. package/dist/{cli-JR5AZLLK.js → cli-7OCEVQQN.js} +2 -2
  27. package/dist/{cli-Z5HWENER.js → cli-7RLZIWFP.js} +19 -19
  28. package/dist/{cli-J4DKUUTK.js → cli-7V6GUIIS.js} +2 -2
  29. package/dist/{cli-6ZSMW4HR.js → cli-A3P3PO6Z.js} +15 -15
  30. package/dist/{cli-4VZIJYKU.js → cli-A7PITFRR.js} +2 -2
  31. package/dist/{cli-4XCQUM3E.js → cli-AA5GMEUL.js} +4 -4
  32. package/dist/{cli-N6H6T2E2.js → cli-AEAFLZGY.js} +12 -0
  33. package/dist/{cli-C47GJATR.js → cli-AGYCXRPR.js} +3 -3
  34. package/dist/{cli-T4HWGMY4.js → cli-AJ5CABGJ.js} +15 -15
  35. package/dist/{cli-FZ7QAZZP.js → cli-B5LZEFLU.js} +15 -15
  36. package/dist/{cli-XSVGKI3R.js → cli-BC4KKNLA.js} +1 -1
  37. package/dist/{cli-EJVAQCMQ.js → cli-BF6L37O3.js} +114 -5
  38. package/dist/{cli-ZQ2Y3U7F.js → cli-BNN36WZJ.js} +13 -13
  39. package/dist/{cli-FXY3DKPW.js → cli-BT47H36C.js} +2 -2
  40. package/dist/{cli-XTANOFQR.js → cli-BV7MX7JE.js} +3 -3
  41. package/dist/{cli-PVA52RC2.js → cli-BYXNPBVG.js} +15 -15
  42. package/dist/{cli-MJUYJIEP.js → cli-C45A5VX6.js} +3 -3
  43. package/dist/{cli-HM7CD4VU.js → cli-CKV44U7P.js} +19 -19
  44. package/dist/{cli-LQERHJFE.js → cli-CL3KF5KS.js} +2 -2
  45. package/dist/{cli-SX3ULO5P.js → cli-CPX4YA3P.js} +11 -11
  46. package/dist/{cli-CV4JGVJR.js → cli-CQUSM3SF.js} +19 -19
  47. package/dist/cli-CUZUIYCQ.js +36 -0
  48. package/dist/{cli-YOTGR3NB.js → cli-CVOLMK3Z.js} +1 -1
  49. package/dist/{cli-TFZ53OA2.js → cli-D6AC3ZCX.js} +18 -18
  50. package/dist/{cli-PIO7NWMH.js → cli-DJCQ5XFR.js} +15 -15
  51. package/dist/{cli-4YB3ROVR.js → cli-DMKRP33X.js} +1 -1
  52. package/dist/cli-DNCJURUU.js +36 -0
  53. package/dist/{cli-TIDQ4WUE.js → cli-DXHPYN4N.js} +1 -1
  54. package/dist/{cli-FP32D3T6.js → cli-E77R7ZYB.js} +15 -15
  55. package/dist/{cli-PKQNOGBO.js → cli-EDZF5Q2E.js} +63 -17
  56. package/dist/{cli-IPP5FDCH.js → cli-G54355N5.js} +18 -18
  57. package/dist/{cli-SWZY7L7K.js → cli-G7JTIP5G.js} +6 -6
  58. package/dist/{cli-C5QOJJWX.js → cli-GHIMH6JU.js} +1 -1
  59. package/dist/{cli-LE5ICDAF.js → cli-GHQIATHP.js} +4 -4
  60. package/dist/{cli-ESA6YNPF.js → cli-GZE4V7RC.js} +19 -19
  61. package/dist/{cli-4CHKF4DQ.js → cli-H7T6E7OA.js} +2 -2
  62. package/dist/{cli-TDYKRXUA.js → cli-HCMVZXWK.js} +17 -17
  63. package/dist/{cli-WU43JT4T.js → cli-HJPNNORV.js} +2 -2
  64. package/dist/{cli-MYJGMA6U.js → cli-IC5FOT2J.js} +1 -1
  65. package/dist/{cli-VYR326C6.js → cli-ICLCA6VD.js} +19 -19
  66. package/dist/{cli-CXCL7VRK.js → cli-IJPRZSJ5.js} +20 -20
  67. package/dist/{cli-VL2P354N.js → cli-IVZ7AHUJ.js} +3 -3
  68. package/dist/{cli-B6YHEKIJ.js → cli-J2OTL6JH.js} +5 -5
  69. package/dist/{cli-SOMIB4B4.js → cli-J75EBRAJ.js} +17 -17
  70. package/dist/{cli-WAZD75KE.js → cli-JEMWAIAA.js} +15 -15
  71. package/dist/{cli-TDSQSCX4.js → cli-K6M6YB67.js} +1 -1
  72. package/dist/{cli-WG36UJRK.js → cli-KD2RQS35.js} +18 -18
  73. package/dist/{cli-GTWEGYSU.js → cli-KGJHEDR2.js} +19 -19
  74. package/dist/{cli-EDCAH2TC.js → cli-KINJAQTJ.js} +19 -19
  75. package/dist/cli-KJV3GGBA.js +1973 -0
  76. package/dist/{cli-X7E3637I.js → cli-KO26S2CL.js} +50 -26
  77. package/dist/{cli-MULKSLA4.js → cli-L5ZKQNMI.js} +15 -15
  78. package/dist/{cli-ATI6OLJU.js → cli-LFUKHLHI.js} +17 -17
  79. package/dist/{cli-GHLILDH7.js → cli-LZFUSEJT.js} +13 -13
  80. package/dist/{cli-RZITKPJX.js → cli-MN7X4UG2.js} +1 -1
  81. package/dist/{cli-HCRTYQQS.js → cli-MPWTXNF6.js} +2 -2
  82. package/dist/{cli-HHPMAV4F.js → cli-MSSJLABW.js} +3 -3
  83. package/dist/{cli-DHOWZCXT.js → cli-MTAGL3QE.js} +15 -15
  84. package/dist/{cli-JIZTQVL2.js → cli-MX7GFQ6N.js} +14 -14
  85. package/dist/{cli-7TOLC62D.js → cli-MYBDWJP7.js} +20 -20
  86. package/dist/{cli-VPON5HGB.js → cli-MZM4MW7C.js} +19 -19
  87. package/dist/{cli-UBQCSUDH.js → cli-NTI22MRE.js} +16 -16
  88. package/dist/{cli-ZTWOE3ZT.js → cli-NU4SCD5D.js} +1 -1
  89. package/dist/{cli-DEBCP7UH.js → cli-OK6XWVIN.js} +17 -17
  90. package/dist/{cli-6HB6HTC6.js → cli-OOTGO3KW.js} +47 -47
  91. package/dist/{cli-2DQJACAH.js → cli-OX3254NS.js} +17 -17
  92. package/dist/{cli-GEQUJF4L.js → cli-PJO4BKSV.js} +16 -16
  93. package/dist/{cli-R7RG2VMW.js → cli-QIHVXDMW.js} +15 -15
  94. package/dist/{cli-57V4ARER.js → cli-QK2OD24J.js} +1 -1
  95. package/dist/{cli-OANH3BTQ.js → cli-QRAYIXNE.js} +5 -5
  96. package/dist/{cli-GPAN6XK2.js → cli-QWO3XJR3.js} +4 -4
  97. package/dist/{cli-JRMHSMYT.js → cli-R6YAZP6E.js} +19 -19
  98. package/dist/{cli-FXWWYBYU.js → cli-RHYQYXE2.js} +18 -18
  99. package/dist/{cli-C3OERMIR.js → cli-RL5EBZL7.js} +3 -3
  100. package/dist/{cli-XR2XSWQN.js → cli-S3YIYAXC.js} +12 -12
  101. package/dist/{cli-NPPY557S.js → cli-S7PLSPGE.js} +15 -15
  102. package/dist/{cli-NEOLMC2P.js → cli-SBKTGFY4.js} +17 -17
  103. package/dist/{cli-BOXXMDSX.js → cli-TLRTLTGK.js} +18 -18
  104. package/dist/cli-UKC7KXWU.js +36 -0
  105. package/dist/{cli-FWFRKQNE.js → cli-UR63LFVK.js} +2 -2
  106. package/dist/{cli-ZKG3OPZ6.js → cli-USBJQAYI.js} +13 -13
  107. package/dist/{cli-M7WEAIRF.js → cli-VRGVHSXH.js} +106 -28
  108. package/dist/{cli-IUS2YCD3.js → cli-VTLFQHDO.js} +1 -1
  109. package/dist/{cli-JGFJWZFU.js → cli-W4BHSBAX.js} +3 -3
  110. package/dist/cli-WA2PDQUB.js +36 -0
  111. package/dist/{cli-HYEU3QS6.js → cli-WJO75KP7.js} +3 -3
  112. package/dist/{cli-3PIJLSRQ.js → cli-XA4IL7IM.js} +11 -11
  113. package/dist/{cli-LRQDF3ZO.js → cli-XRVH5WV6.js} +13 -13
  114. package/dist/{cli-SRHBXZCN.js → cli-Y33ULHYO.js} +1 -1
  115. package/dist/{cli-G5DQGZ2E.js → cli-YD4SBAHQ.js} +19 -19
  116. package/dist/{cli-64AA7367.js → cli-YI3WZF3C.js} +11 -11
  117. package/dist/{cli-JPAXKLVT.js → cli-ZHFHOWJI.js} +11 -11
  118. package/dist/{cli-MM3A4SPH.js → cli-ZZSPFLTK.js} +7265 -4467
  119. package/dist/cli.js +52 -52
  120. package/dist/client.js +17518 -16558
  121. package/dist/core/save-scenario.d.ts +1 -0
  122. package/dist/core/session-start-gate.d.ts +25 -0
  123. package/dist/core/session.d.ts +4 -0
  124. package/dist/dev/console/assets/{index-CnXlPeLX.js → index-CVNjiRUh.js} +31 -27
  125. package/dist/dev/console/index.html +1 -1
  126. package/dist/docs/api/deck.md +1 -1
  127. package/dist/docs/api/index.md +1 -1
  128. package/dist/docs/api/sdk-e2e.md +7 -6
  129. package/dist/docs/api/sdk-projection.md +1 -0
  130. package/dist/docs/api/sdk-tools-client.md +3 -1
  131. package/dist/docs/api/sdk-tools-playwright.md +1 -8
  132. package/dist/docs/api/sdk-ui.md +40 -64
  133. package/dist/docs/api/sdk.md +10 -1
  134. package/dist/docs/changelog.md +25 -0
  135. package/dist/docs/cli-error-codes.md +7 -1
  136. package/dist/docs/cli-reference.md +3 -0
  137. package/dist/docs/concepts/index.md +1 -0
  138. package/dist/docs/guides/engine.md +5 -0
  139. package/dist/docs/guides/file-handling.md +4 -1
  140. package/dist/docs/guides/llm-integration.md +3 -2
  141. package/dist/docs/guides/multi-team-games.md +2 -0
  142. package/dist/docs/guides/patterns.md +5 -0
  143. package/dist/docs/guides/session.md +1 -1
  144. package/dist/docs/guides/settings.md +2 -0
  145. package/dist/docs/guides/setup.md +67 -6
  146. package/dist/docs/guides/speech-generation.md +1 -0
  147. package/dist/docs/guides/testing.md +2 -0
  148. package/dist/docs/guides/tick-controller.md +2 -0
  149. package/dist/docs/guides/type-safety.md +2 -1
  150. package/dist/docs/guides/ui-files-and-llms.md +3 -1
  151. package/dist/docs/guides/upgrading.md +4 -0
  152. package/dist/docs/guides/validators.md +27 -4
  153. package/dist/docs/guides/waiting-room.md +2 -0
  154. package/dist/docs/page-index.md +10 -7
  155. package/dist/docs/recipes/call-endpoint-from-ui.md +1 -0
  156. package/dist/docs/recipes/create-scenario-editor.md +2 -1
  157. package/dist/docs/recipes/create-setup.md +19 -10
  158. package/dist/docs/recipes/declare-api-uses.md +1 -0
  159. package/dist/docs/recipes/describe-setup-with-endpoint.md +69 -0
  160. package/dist/docs/recipes/give-setup-a-menu.md +90 -0
  161. package/dist/docs/recipes/index.md +4 -1
  162. package/dist/docs/recipes/share-logic-between-engine-and-ui.md +2 -2
  163. package/dist/docs/recipes/test-user-interface.md +1 -1
  164. package/dist/docs/recipes/validate-scenarios.md +9 -3
  165. package/dist/docs/recipes/write-setup-notes.md +57 -0
  166. package/dist/docs/troubleshooting.md +2 -1
  167. package/dist/execution/executor.d.ts +12 -0
  168. package/dist/execution/scenario-gates.d.ts +40 -0
  169. package/dist/host.js +1082 -467
  170. package/dist/playwright.js +17529 -16569
  171. package/dist/runtime/manifest-version.d.ts +1 -1
  172. package/dist/runtime.js +4 -2
  173. package/dist/setup/setup-notes.d.ts +42 -0
  174. package/dist/templates/package/package.json.liquid +15 -15
  175. package/dist/templates/starter-game/package.json +13 -13
  176. package/dist/utils/error-codes.d.ts +13 -1
  177. package/dist/validation/package-validation.d.ts +1 -1
  178. package/package.json +22 -23
  179. package/dist/cli-57C72YKJ.js +0 -36
  180. package/dist/cli-5G7TZHD3.js +0 -36
  181. package/dist/cli-7MBLH4M3.js +0 -36
  182. package/dist/cli-C6G65H6S.js +0 -256
  183. package/dist/cli-L5IG7MY2.js +0 -36
  184. package/dist/cli-SPGUVL6Z.js +0 -36
  185. package/dist/cli-UY4VDI7W.js +0 -30
  186. package/dist/cli-WM6SQJ6Q.js +0 -16
  187. package/dist/cli-ZBTFLZUL.js +0 -36
  188. package/dist/cli-ZF7IFB54.js +0 -4026
@@ -26,7 +26,7 @@ export declare const MANIFEST_VERSION = 3;
26
26
  * section is stamped, it is the revision at the top of the appendix.
27
27
  * `spec-revision.test.ts` holds the two together.
28
28
  */
29
- export declare const SPEC_REVISION = "1.6";
29
+ export declare const SPEC_REVISION = "1.8";
30
30
  /**
31
31
  * Whether specification revision `revision` is later than `than`, both as
32
32
  * `major.minor`. A runtime MAY warn when a package's `builtWith.specRevision`
package/dist/runtime.js CHANGED
@@ -305,7 +305,7 @@ function readTickControllerResult(label, result) {
305
305
 
306
306
  // cli/runtime/manifest-version.ts
307
307
  var MANIFEST_VERSION = 3;
308
- var SPEC_REVISION = "1.6";
308
+ var SPEC_REVISION = "1.8";
309
309
  function isLaterSpecRevision(revision, than) {
310
310
  const [major, minor] = revision.split(".").map(Number);
311
311
  const [thanMajor, thanMinor] = than.split(".").map(Number);
@@ -317,7 +317,9 @@ var SUPPORTED_FEATURES = [
317
317
  // The presentation as a host overlay a session surface may open (§6.4).
318
318
  "presentation-overlay",
319
319
  // File reads in a validator's `Scenario` gate (§15.8).
320
- "scenario-files"
320
+ "scenario-files",
321
+ // The `Scenario` gate judging a session as it starts, and refusing it (§15.8).
322
+ "session-validation"
321
323
  ];
322
324
  function unsupportedFeatures(manifest) {
323
325
  return (manifest.requires ?? []).filter((feature) => !SUPPORTED_FEATURES.includes(feature));
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Setup notes (§6.5): optional Markdown beside the `setup` slot, one file per
3
+ * locale at `setup/notes/<locale>.md`, written for an assistant or agent
4
+ * setting a session up. They say which few settings matter, what a request
5
+ * such as 'make it harder' means as settings and values, and what to leave
6
+ * alone.
7
+ *
8
+ * A setting is named in a code span as a setting path (`engine.BaseDemand`),
9
+ * which an agent reads and writes back as it stands. Every code span that
10
+ * begins with a settings identifier the package declares is read as one, and
11
+ * the build checks that it names a setting.
12
+ */
13
+ import type { JSONSchema7 } from 'json-schema';
14
+ /** Where a package's setup notes live, relative to the `setup` slot. */
15
+ export declare const SETUP_NOTES_DIRECTORY = "notes";
16
+ /** A setting path a notes file names, and the line it is on. */
17
+ export interface NotesSettingReference {
18
+ path: string;
19
+ line: number;
20
+ }
21
+ /** The locales a `setup` slot has notes for, from its `notes/` directory, sorted. */
22
+ export declare function setupNotesLocales(setupDirectory: string): string[];
23
+ /**
24
+ * The notes for `locale`, falling back as every locale does (§18.2): the
25
+ * locale asked for, then `en`, then the first the game supports. `null` when
26
+ * the game has no notes in any of them.
27
+ */
28
+ export declare function readSetupNotes(setupDirectory: string, locale: string, supportedLocales: readonly string[]): {
29
+ locale: string;
30
+ markdown: string;
31
+ } | null;
32
+ /**
33
+ * Every code span in `markdown` that reads as a setting path of one of
34
+ * `settingsIdentifiers`. Any other code span, such as `requires`, is prose.
35
+ */
36
+ export declare function notesSettingReferences(markdown: string, settingsIdentifiers: ReadonlySet<string>): NotesSettingReference[];
37
+ /**
38
+ * Whether `path` names a setting `schemas` declares: a property at every step,
39
+ * or anything beneath a keyed map, a list or a reference, whose keys the
40
+ * schema does not name one by one.
41
+ */
42
+ export declare function settingPathDeclared(schemas: Readonly<Record<string, JSONSchema7>>, path: string): boolean;
@@ -30,34 +30,34 @@
30
30
  "@emotion/styled": "^11.14.1",
31
31
  "@fontsource-variable/roboto-mono": "^5.3.0",
32
32
  "@fontsource-variable/work-sans": "^5.3.0",
33
- "@mui/icons-material": "^9.4.0",
34
- "@mui/material": "^9.4.0",
35
- "@mui/stylis-plugin-rtl": "^9.4.0",
33
+ "@mui/icons-material": "^9.5.0",
34
+ "@mui/material": "^9.5.0",
35
+ "@mui/stylis-plugin-rtl": "^9.5.0",
36
36
  "@seriousgaming/deck": "^{{ sdkVersion }}",
37
- "i18next": "^26.4.2",
38
- "react": "^19.3.0",
39
- "react-dom": "^19.3.0",
40
- "react-i18next": "^17.0.16",
37
+ "i18next": "^26.5.12",
38
+ "react": "^19.3.1",
39
+ "react-dom": "^19.3.1",
40
+ "react-i18next": "^17.1.9",
41
41
  "stylis": "^4.4.0",
42
- "vite": "^8.3.4"
42
+ "vite": "^8.3.5"
43
43
  },
44
44
  "devDependencies": {
45
- "@playwright/test": "^1.64.0",
45
+ "@playwright/test": "^1.64.1",
46
46
  "@seriousgaming/sdk": "^{{ sdkVersion }}",
47
47
  "@seriousgaming/sdk-tools": "^{{ sdkVersion }}",
48
48
  "@testing-library/jest-dom": "^7.0.1",
49
49
  "@testing-library/react": "^16.3.3",
50
- "@testing-library/user-event": "^14.6.7",
51
- "@types/node": "^24.19.1",
50
+ "@testing-library/user-event": "^14.6.8",
51
+ "@types/node": "^24.19.2",
52
52
  "@types/react": "^19.3.0",
53
53
  "@types/react-dom": "^19.3.0",
54
54
  "@types/stylis": "^4.2.7",
55
- "jsdom": "^30.1.2",
56
- "oxfmt": "^0.67.0",
57
- "oxlint": "^1.87.0",
55
+ "jsdom": "^30.1.3",
56
+ "oxfmt": "^0.75.0",
57
+ "oxlint": "^1.90.0",
58
58
  "typescript": "^6.0.3",
59
59
  "vite-node": "^6.0.0",
60
- "vitest": "^5.0.3"
60
+ "vitest": "^5.0.5"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@seriousgaming/sdk": "^{{ sdkVersion }}"
@@ -32,36 +32,36 @@
32
32
  "@emotion/styled": "^11.14.1",
33
33
  "@fontsource-variable/roboto-mono": "^5.3.0",
34
34
  "@fontsource-variable/work-sans": "^5.3.0",
35
- "@mui/icons-material": "^9.4.0",
36
- "@mui/material": "^9.4.0",
37
- "@mui/stylis-plugin-rtl": "^9.4.0",
35
+ "@mui/icons-material": "^9.5.0",
36
+ "@mui/material": "^9.5.0",
37
+ "@mui/stylis-plugin-rtl": "^9.5.0",
38
38
  "@seriousgaming/deck": "workspace:*",
39
- "i18next": "^26.4.2",
40
- "react": "^19.3.0",
41
- "react-dom": "^19.3.0",
42
- "react-i18next": "^17.0.16",
39
+ "i18next": "^26.5.12",
40
+ "react": "^19.3.1",
41
+ "react-dom": "^19.3.1",
42
+ "react-i18next": "^17.1.9",
43
43
  "stylis": "^4.4.0",
44
- "vite": "^8.3.4"
44
+ "vite": "^8.3.5"
45
45
  },
46
46
  "devDependencies": {
47
- "@playwright/test": "^1.64.0",
47
+ "@playwright/test": "^1.64.1",
48
48
  "@seriousgaming/sdk": "workspace:*",
49
49
  "@seriousgaming/sdk-tools": "workspace:*",
50
50
  "@testing-library/jest-dom": "^7.0.1",
51
51
  "@testing-library/react": "^16.3.3",
52
- "@testing-library/user-event": "^14.6.7",
53
- "@types/node": "^24.19.1",
52
+ "@testing-library/user-event": "^14.6.8",
53
+ "@types/node": "^24.19.2",
54
54
  "@types/react": "^19.3.0",
55
55
  "@types/react-dom": "^19.3.0",
56
56
  "@types/stylis": "^4.2.7",
57
57
  "@vitejs/plugin-react": "^6.1.2",
58
58
  "commander": "^15.0.0",
59
59
  "esbuild": "^0.28.2",
60
- "jsdom": "^30.1.2",
60
+ "jsdom": "^30.1.3",
61
61
  "json-schema-to-typescript": "^16.0.0",
62
62
  "typescript": "^6.0.3",
63
63
  "vite-node": "^6.0.0",
64
- "vitest": "^5.0.3"
64
+ "vitest": "^5.0.5"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@seriousgaming/sdk": "workspace:*"
@@ -201,6 +201,18 @@ export declare const ERROR_CODES: {
201
201
  readonly category: "package";
202
202
  readonly description: "A validator's `Scenario` gate found a problem with a package scenario, or with the defaults when no scenario is the default. The diagnostic points at the setting it names.";
203
203
  };
204
+ readonly SCENARIO_WARNING: {
205
+ readonly category: "package";
206
+ readonly description: "A warning: a validator's `Scenario` gate marked a problem with a package scenario, or with the defaults, as a `warning`. It is reported and never fails the build.";
207
+ };
208
+ readonly SETUP_NOTES_UNCONFIGURED: {
209
+ readonly category: "package";
210
+ readonly description: "A warning: the setup notes name a setting the setup UI does not `configures`, so a host refuses the change they describe.";
211
+ };
212
+ readonly SETTINGS_UNGATED: {
213
+ readonly category: "package";
214
+ readonly description: "A warning: the setup UI `configures` a settings resource no `Scenario` gate declares, so nothing checks what a facilitator changes in it before the session starts.";
215
+ };
204
216
  readonly EDITOR_ENDPOINT_NOT_SCENARIO: {
205
217
  readonly category: "package";
206
218
  readonly description: "The scenario editor lists an endpoint that is not scenario-scoped. It works on a scenario draft with no session, so it calls `\"scope\": \"scenario\"` endpoints alone.";
@@ -356,7 +368,7 @@ export type ErrorCode = keyof typeof ERROR_CODES;
356
368
  * failure's `error.code` says what kind of failure it was; its diagnostics say
357
369
  * what was found and where. LOGIC_ERROR is only ever a diagnostic.
358
370
  */
359
- export declare const DIAGNOSTIC_CODES: readonly ["PACKAGE_INVALID", "SCHEMA_INVALID", "JSON_INVALID", "BUNDLE_MISSING", "REMOVED_FIELD", "LAYOUT_OUTDATED", "FEATURE_UNSUPPORTED", "FEATURE_UNDECLARED", "REFERENCE_UNKNOWN", "SETTINGS_UNKNOWN", "SETTINGS_UNKNOWN_KEY", "SETTINGS_INVALID", "SETTINGS_RESERVED", "SETTINGS_LOCKED", "GAME_CONSTRAINT_INVALID", "GAME_CONSTRAINT_VIOLATED", "LOGIC_EXPORT_MISSING", "LOGIC_NODE_BUILTIN", "LOGIC_BUNDLE_FAILED", "READ_NEVER_WRITTEN", "NO_TERMINATION", "SCENARIO_EDITOR_UNREACHABLE", "SCENARIO_REFUSED", "EDITOR_ENDPOINT_NOT_SCENARIO", "SCENARIO_ENDPOINT_STATEFUL", "EXTERNAL_REQUEST_NOT_OBJECT", "ENDPOINT_UNREQUESTED", "LOGIC_ERROR"];
371
+ export declare const DIAGNOSTIC_CODES: readonly ["PACKAGE_INVALID", "SCHEMA_INVALID", "JSON_INVALID", "BUNDLE_MISSING", "REMOVED_FIELD", "LAYOUT_OUTDATED", "FEATURE_UNSUPPORTED", "FEATURE_UNDECLARED", "REFERENCE_UNKNOWN", "SETTINGS_UNKNOWN", "SETTINGS_UNKNOWN_KEY", "SETTINGS_INVALID", "SETTINGS_RESERVED", "SETTINGS_LOCKED", "GAME_CONSTRAINT_INVALID", "GAME_CONSTRAINT_VIOLATED", "LOGIC_EXPORT_MISSING", "LOGIC_NODE_BUILTIN", "LOGIC_BUNDLE_FAILED", "READ_NEVER_WRITTEN", "NO_TERMINATION", "SCENARIO_EDITOR_UNREACHABLE", "SCENARIO_REFUSED", "SCENARIO_WARNING", "SETTINGS_UNGATED", "SETUP_NOTES_UNCONFIGURED", "EDITOR_ENDPOINT_NOT_SCENARIO", "SCENARIO_ENDPOINT_STATEFUL", "EXTERNAL_REQUEST_NOT_OBJECT", "ENDPOINT_UNREQUESTED", "LOGIC_ERROR"];
360
372
  export type DiagnosticCode = (typeof DIAGNOSTIC_CODES)[number];
361
373
  export declare function categoryOf(code: ErrorCode): ErrorCategory;
362
374
  export declare function exitCodeOf(code: ErrorCode): number;
@@ -1,4 +1,4 @@
1
- import type { ResolvedPackageManifest } from '@seriousgaming/sdk';
1
+ import { type ResolvedPackageManifest } from '@seriousgaming/sdk';
2
2
  import { type ResourceType } from '../templating/resource-metadata.js';
3
3
  import type { Diagnostic } from '../utils/cli-error';
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seriousgaming/sdk-tools",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "SDK tooling for building Serious Gaming games",
5
5
  "homepage": "https://sdk.seriousgaming.com/",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -48,22 +48,22 @@
48
48
  "./package.json": "./package.json"
49
49
  },
50
50
  "dependencies": {
51
- "@inquirer/prompts": "^8.7.3",
51
+ "@inquirer/prompts": "^8.7.5",
52
52
  "@types/mdast": "^4.0.4",
53
53
  "@vitejs/plugin-react": "^6.1.2",
54
54
  "adm-zip": "^0.6.1",
55
55
  "ajv": "^8.20.0",
56
- "chokidar": "^5.0.0",
56
+ "chokidar": "^6.0.0",
57
57
  "commander": "^15.0.0",
58
- "dotenv": "^17.4.2",
58
+ "dotenv": "^18.0.9",
59
59
  "esbuild": "^0.28.2",
60
- "express": "^5.2.1",
60
+ "express": "^5.3.0",
61
61
  "json-schema-to-typescript": "^16.0.0",
62
- "liquidjs": "^10.30.0",
62
+ "liquidjs": "^10.30.1",
63
63
  "open": "^11.0.4",
64
- "rfc6902": "^5.3.0",
65
- "unpdf": "^1.8.1",
66
- "vite": "^8.3.4",
64
+ "rfc6902": "^5.4.0",
65
+ "unpdf": "^2.1.0",
66
+ "vite": "^8.3.5",
67
67
  "vite-node": "^6.0.0",
68
68
  "ws": "^8.22.0"
69
69
  },
@@ -71,40 +71,39 @@
71
71
  "@businesssimulations/seriousgaming-conformance-v3": "0.0.0",
72
72
  "@emotion/react": "^11.14.0",
73
73
  "@emotion/styled": "^11.14.1",
74
- "@mui/icons-material": "^9.4.0",
75
- "@mui/material": "^9.4.0",
76
- "@playwright/test": "^1.64.0",
77
- "@seriousgaming/sdk": "1.7.0",
74
+ "@mui/icons-material": "^9.5.0",
75
+ "@mui/material": "^9.5.0",
76
+ "@playwright/test": "^1.64.1",
77
+ "@seriousgaming/sdk": "1.9.0",
78
78
  "@testing-library/jest-dom": "^7.0.1",
79
79
  "@testing-library/react": "^16.3.3",
80
- "@types/adm-zip": "^0.5.8",
81
80
  "@types/express": "^5.0.6",
82
81
  "@types/hast": "^3.0.5",
83
82
  "@types/json-schema": "^7.0.15",
84
- "@types/node": "^24.19.1",
83
+ "@types/node": "^24.19.2",
85
84
  "@types/react": "^19.3.0",
86
85
  "@types/react-dom": "^19.3.0",
87
86
  "@types/ws": "^8.18.2",
88
- "@vitest/coverage-v8": "^5.0.3",
87
+ "@vitest/coverage-v8": "^5.0.5",
89
88
  "github-slugger": "^2.0.0",
90
- "i18next": "^26.4.2",
91
- "jsdom": "^30.1.2",
89
+ "i18next": "^26.5.12",
90
+ "jsdom": "^30.1.3",
92
91
  "mdast-util-to-hast": "^13.2.1",
93
92
  "mdast-util-to-string": "^4.0.0",
94
- "react": "^19.3.0",
95
- "react-dom": "^19.3.0",
93
+ "react": "^19.3.1",
94
+ "react-dom": "^19.3.1",
96
95
  "react-markdown": "^10.1.0",
97
96
  "remark-directive": "^4.0.0",
98
97
  "remark-gfm": "^4.0.1",
99
98
  "remark-parse": "^11.0.0",
100
99
  "typescript": "^6.0.3",
101
100
  "unified": "^11.0.5",
102
- "unist-util-visit": "^5.1.0",
103
- "vitest": "^5.0.3"
101
+ "unist-util-visit": "^5.2.0",
102
+ "vitest": "^5.0.5"
104
103
  },
105
104
  "peerDependencies": {
106
105
  "@playwright/test": ">=1.50.0",
107
- "@seriousgaming/sdk": "^1.7.0"
106
+ "@seriousgaming/sdk": "^1.9.0"
108
107
  },
109
108
  "peerDependenciesMeta": {
110
109
  "@playwright/test": {
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- createSettingsEditor
4
- } from "./cli-XR2XSWQN.js";
5
- import "./cli-XTANOFQR.js";
6
- import "./cli-4VZIJYKU.js";
7
- import "./cli-S5IVGDDD.js";
8
- import "./cli-JR5AZLLK.js";
9
- import "./cli-4UWFQNGF.js";
10
- import "./cli-LE5ICDAF.js";
11
- import "./cli-IUS2YCD3.js";
12
- import "./cli-QUNIRH7A.js";
13
- import "./cli-YSPZZQCP.js";
14
- import "./cli-XSVGKI3R.js";
15
- import "./cli-FXY3DKPW.js";
16
- import "./cli-57V4ARER.js";
17
- import "./cli-JGFJWZFU.js";
18
- import "./cli-ZTWOE3ZT.js";
19
- import "./cli-H3J3ICCQ.js";
20
- import "./cli-SWZY7L7K.js";
21
- import "./cli-C6G65H6S.js";
22
- import "./cli-UTM4QU67.js";
23
- import "./cli-25RWY5BQ.js";
24
- import "./cli-QWQMPCL6.js";
25
- import "./cli-ZF7IFB54.js";
26
- import "./cli-F2D4GGUA.js";
27
- import "./cli-4YB3ROVR.js";
28
- import "./cli-N6H6T2E2.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
- };
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- createSettingsEditor
4
- } from "./cli-XR2XSWQN.js";
5
- import "./cli-XTANOFQR.js";
6
- import "./cli-4VZIJYKU.js";
7
- import "./cli-S5IVGDDD.js";
8
- import "./cli-JR5AZLLK.js";
9
- import "./cli-4UWFQNGF.js";
10
- import "./cli-LE5ICDAF.js";
11
- import "./cli-IUS2YCD3.js";
12
- import "./cli-QUNIRH7A.js";
13
- import "./cli-YSPZZQCP.js";
14
- import "./cli-XSVGKI3R.js";
15
- import "./cli-FXY3DKPW.js";
16
- import "./cli-57V4ARER.js";
17
- import "./cli-JGFJWZFU.js";
18
- import "./cli-ZTWOE3ZT.js";
19
- import "./cli-H3J3ICCQ.js";
20
- import "./cli-SWZY7L7K.js";
21
- import "./cli-C6G65H6S.js";
22
- import "./cli-UTM4QU67.js";
23
- import "./cli-25RWY5BQ.js";
24
- import "./cli-QWQMPCL6.js";
25
- import "./cli-ZF7IFB54.js";
26
- import "./cli-F2D4GGUA.js";
27
- import "./cli-4YB3ROVR.js";
28
- import "./cli-N6H6T2E2.js";
29
-
30
- // cli/commands/resources/scenario-editor/new.ts
31
- function createScenarioEditor(definitionInput, options) {
32
- return createSettingsEditor("scenario_editor", definitionInput, options);
33
- }
34
- export {
35
- createScenarioEditor
36
- };
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- deleteSettingsEditor
4
- } from "./cli-XR2XSWQN.js";
5
- import "./cli-XTANOFQR.js";
6
- import "./cli-4VZIJYKU.js";
7
- import "./cli-S5IVGDDD.js";
8
- import "./cli-JR5AZLLK.js";
9
- import "./cli-4UWFQNGF.js";
10
- import "./cli-LE5ICDAF.js";
11
- import "./cli-IUS2YCD3.js";
12
- import "./cli-QUNIRH7A.js";
13
- import "./cli-YSPZZQCP.js";
14
- import "./cli-XSVGKI3R.js";
15
- import "./cli-FXY3DKPW.js";
16
- import "./cli-57V4ARER.js";
17
- import "./cli-JGFJWZFU.js";
18
- import "./cli-ZTWOE3ZT.js";
19
- import "./cli-H3J3ICCQ.js";
20
- import "./cli-SWZY7L7K.js";
21
- import "./cli-C6G65H6S.js";
22
- import "./cli-UTM4QU67.js";
23
- import "./cli-25RWY5BQ.js";
24
- import "./cli-QWQMPCL6.js";
25
- import "./cli-ZF7IFB54.js";
26
- import "./cli-F2D4GGUA.js";
27
- import "./cli-4YB3ROVR.js";
28
- import "./cli-N6H6T2E2.js";
29
-
30
- // cli/commands/resources/setup/delete.ts
31
- function deleteSetup(options) {
32
- return deleteSettingsEditor("setup", options);
33
- }
34
- export {
35
- deleteSetup
36
- };