@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.
- package/dist/agent/guidance.md +4 -0
- package/dist/{cli-F2D4GGUA.js → cli-2BKEIIA3.js} +66 -0
- package/dist/{cli-ZGCG6C22.js → cli-2QGTDHRX.js} +21 -21
- package/dist/{cli-SRXDLMXY.js → cli-2SDG3SZ7.js} +21 -21
- package/dist/{cli-DH35TZ2Q.js → cli-2VXP34R5.js} +2 -2
- package/dist/{cli-P3NUTOPK.js → cli-2W4B6PD5.js} +1 -1
- package/dist/{cli-WJVPSVF2.js → cli-2X7DKSXN.js} +24 -24
- package/dist/{cli-ATAJSIXH.js → cli-2ZP4N7HK.js} +19 -19
- package/dist/{cli-5O7XENQY.js → cli-3GJYZH4C.js} +5 -5
- package/dist/{cli-H6PP2MZT.js → cli-3GO3M2MX.js} +17 -13
- package/dist/{cli-HMDYG6PS.js → cli-3LDLUNME.js} +17 -17
- package/dist/{cli-BZOKZ7LP.js → cli-3WY6L2WP.js} +27 -27
- package/dist/{cli-REAM7LSC.js → cli-44MBABRD.js} +25 -25
- package/dist/{cli-5TTJWM2R.js → cli-4IO7MKLR.js} +20 -20
- package/dist/{cli-HNDFANQG.js → cli-4U2PY7W3.js} +1 -1
- package/dist/{cli-WQ7JBZNW.js → cli-4WI4LTBI.js} +2 -2
- package/dist/{cli-OTBCA54D.js → cli-55EIGGZK.js} +1 -1
- package/dist/{cli-FYPW25VD.js → cli-5AQV6FTL.js} +18 -18
- package/dist/{cli-RKPQLB7J.js → cli-5CW7BEU7.js} +3 -3
- package/dist/{cli-27TQVLVF.js → cli-5JUVHNZF.js} +12 -12
- package/dist/{cli-F3YJKP6D.js → cli-5KERL6HV.js} +9 -4
- package/dist/{cli-MSNSXVGF.js → cli-5KSA24NQ.js} +24 -24
- package/dist/{cli-5VZBFMCK.js → cli-5PIFO3EN.js} +8 -0
- package/dist/{cli-FT3X3D4P.js → cli-5QN2Z43X.js} +20 -20
- package/dist/cli-5XSPAA5X.js +69 -0
- package/dist/{cli-B2QAJ5RQ.js → cli-62KAYGXO.js} +20 -20
- package/dist/{cli-QPV3TYOM.js → cli-6IMV5ZZU.js} +26 -26
- package/dist/{cli-UULZSQBV.js → cli-6KWCIAN2.js} +764 -66
- package/dist/{cli-DQE7ITIR.js → cli-6NWETIX5.js} +20 -20
- package/dist/{cli-UVIURDZC.js → cli-7224T6HG.js} +20 -20
- package/dist/{cli-L7F4XKCB.js → cli-774W3MN5.js} +26 -26
- package/dist/cli-7BUD3VAD.js +16 -0
- package/dist/{cli-XNOAO6DY.js → cli-7KEP57S7.js} +12 -12
- package/dist/{cli-5UKWX3IU.js → cli-7OYFJMA6.js} +18 -18
- package/dist/{cli-WNHMJM3Z.js → cli-7ZNEDQ3G.js} +20 -20
- package/dist/{cli-5RRPUL6V.js → cli-AFK6OUID.js} +12 -12
- package/dist/{cli-6P6V2EHY.js → cli-AIYQFWXN.js} +25 -25
- package/dist/{cli-ERJNDBDH.js → cli-ARAAEWIQ.js} +2 -2
- package/dist/cli-AVQYV3N4.js +36 -0
- package/dist/{cli-TI2FOFPA.js → cli-B54Z6CXH.js} +16 -16
- package/dist/{cli-EEO5ZPAZ.js → cli-B5TC4MEL.js} +5 -5
- package/dist/{cli-5Z4D3F6Y.js → cli-BCXGOLU3.js} +3 -3
- package/dist/{cli-G2GLW5Z4.js → cli-BHAODVTZ.js} +1 -1
- package/dist/{cli-4F24FUW6.js → cli-BPS2JG74.js} +20 -20
- package/dist/{cli-W3RG2MRI.js → cli-BVO55SR2.js} +2 -2
- package/dist/{cli-R5SNTPND.js → cli-CFH3JZP5.js} +21 -21
- package/dist/{cli-Q7QSWNY2.js → cli-CTK2OIK6.js} +20 -20
- package/dist/{cli-ATWJCB2G.js → cli-CW5MV4VX.js} +4 -4
- package/dist/{cli-TCQJL2GY.js → cli-D5VOSJZ7.js} +1 -1
- package/dist/{cli-KIZTASLL.js → cli-DAEPMK7A.js} +5 -5
- package/dist/{cli-44CM2AH2.js → cli-DAHR7PKB.js} +1 -1
- package/dist/{cli-XW3JLRSA.js → cli-DWDSBTYL.js} +1 -1
- package/dist/cli-DYSDPGXW.js +95 -0
- package/dist/{cli-QEFYDXMH.js → cli-DZCLRZXJ.js} +1 -1
- package/dist/{cli-TEBV2OIW.js → cli-EG2VP7IV.js} +116 -27
- package/dist/{cli-77T4LJQF.js → cli-EJ47IE45.js} +24 -24
- package/dist/{cli-QDBYFITU.js → cli-EK4OSJHA.js} +2 -2
- package/dist/{cli-GO64NABP.js → cli-FCJHNXDA.js} +1 -1
- package/dist/{cli-ZNQBF4Z3.js → cli-FNESSE3L.js} +1 -1
- package/dist/{cli-D3S7NJZ3.js → cli-FTLH4WCE.js} +17 -17
- package/dist/{cli-JHLWBRXB.js → cli-FYV77YS2.js} +18 -18
- package/dist/cli-GMJX6Q4Q.js +36 -0
- package/dist/{cli-7JUNA74L.js → cli-GRBVNGDW.js} +1 -1
- package/dist/{cli-XKAIDYIE.js → cli-HAFCFY77.js} +33 -19
- package/dist/{cli-OXLOGXT3.js → cli-HCJLYI24.js} +3 -3
- package/dist/{cli-XOYUTNER.js → cli-HCXS5EXU.js} +25 -25
- package/dist/cli-HEUNNHDH.js +36 -0
- package/dist/{cli-G3TU6CP6.js → cli-HNUTIWDZ.js} +19 -19
- package/dist/{cli-JXQLHJO2.js → cli-HXT25ETJ.js} +244 -243
- package/dist/{cli-5EH4WTH4.js → cli-IGEL7UJQ.js} +5 -5
- package/dist/{cli-TLSTSZAC.js → cli-IO32YA5N.js} +26 -26
- package/dist/cli-IPTGZDBB.js +36 -0
- package/dist/{cli-OBLEROSC.js → cli-J25TYFKB.js} +19 -19
- package/dist/{cli-5ATO27Z4.js → cli-J7XYMEMX.js} +20 -20
- package/dist/{cli-X3TSTTYI.js → cli-JC5OJRID.js} +2 -2
- package/dist/{cli-25SJZI7N.js → cli-JD563OF4.js} +126 -27
- package/dist/{cli-VXLHOZSO.js → cli-JRJF2WHU.js} +20 -20
- package/dist/{cli-UQC46YSV.js → cli-JTFLIMIG.js} +3 -3
- package/dist/{cli-K4HSQWXC.js → cli-K2BSJ2PK.js} +2 -2
- package/dist/{cli-OM32UURE.js → cli-K4QTYMN2.js} +25 -25
- package/dist/{cli-BJFYGVJV.js → cli-KFJDD4C4.js} +20 -20
- package/dist/{cli-WW54THXN.js → cli-KVQ2JPVD.js} +1 -1
- package/dist/{cli-LHMRUJVN.js → cli-L6AHMW2Z.js} +1 -1
- package/dist/{cli-IKSLPAZN.js → cli-LCYUBCVY.js} +4 -4
- package/dist/{cli-HGCOEL5T.js → cli-LEWSCDH5.js} +4 -4
- package/dist/{cli-XJ7JESC2.js → cli-LI6G7GND.js} +27 -27
- package/dist/{cli-OMTHTWYJ.js → cli-LU2GCWIU.js} +21 -21
- package/dist/{cli-UEQMK4WX.js → cli-M3Z2KOEB.js} +1 -1
- package/dist/{cli-226ZJ72R.js → cli-M6E3E3I2.js} +170 -3
- package/dist/{cli-NKKCDO6K.js → cli-MCRPA4Z6.js} +20 -20
- package/dist/{cli-BQ36DV5C.js → cli-MI2DEDMA.js} +3 -3
- package/dist/{cli-6O7YCK2M.js → cli-MITZ6SE7.js} +3 -3
- package/dist/{cli-LPFSJ625.js → cli-MTIYD3BX.js} +26 -26
- package/dist/{cli-5M6KDNVX.js → cli-MTZUJGBK.js} +2 -2
- package/dist/{cli-GSOV26O5.js → cli-NCLMUXLC.js} +14 -14
- package/dist/{cli-X52TXCNF.js → cli-NLS3DKWH.js} +26 -26
- package/dist/{cli-AH6AMAIB.js → cli-NMDGS7IE.js} +1 -1
- package/dist/cli-O3DJO2CS.js +30 -0
- package/dist/{cli-BC67QHD5.js → cli-O47D5BFN.js} +2 -2
- package/dist/{cli-MDVC5ZNM.js → cli-OBRZ36VP.js} +14 -14
- package/dist/{cli-C32Q5E5I.js → cli-P6V3NSU4.js} +1 -1
- package/dist/{cli-RMD5WSUQ.js → cli-PAMQMTHK.js} +21 -21
- package/dist/{cli-WNBP3LOD.js → cli-PKTHOCT3.js} +26 -26
- package/dist/cli-QQ432JEN.js +36 -0
- package/dist/{cli-YYXAGJQR.js → cli-QVNDPTBU.js} +20 -20
- package/dist/{cli-KJA6GLZI.js → cli-R2DFD6ZZ.js} +15 -15
- package/dist/{cli-6BLVI2JM.js → cli-RMVJMOWU.js} +111 -7
- package/dist/{cli-X64BNBQH.js → cli-RVZH462G.js} +585 -8
- package/dist/{cli-6AMK3DYS.js → cli-SEEOQVUL.js} +12 -12
- package/dist/{cli-QTCTWYCM.js → cli-SO354HPI.js} +3 -3
- package/dist/{cli-RHL4B4H7.js → cli-T76HDH7F.js} +88 -4
- package/dist/{cli-ZJW6HQ6N.js → cli-TIS7DWRR.js} +7 -7
- package/dist/{cli-6JWDFCUV.js → cli-TY3B6XS7.js} +21 -21
- package/dist/{cli-4FJL3KQZ.js → cli-UKEZJFIT.js} +2 -2
- package/dist/cli-VQAMW4RF.js +95 -0
- package/dist/{cli-ATHATKI5.js → cli-W4LMRVZT.js} +78 -47
- package/dist/cli-W7I5KGIB.js +84 -0
- package/dist/{cli-S3NHXAJM.js → cli-WCFZNEK2.js} +18 -18
- package/dist/{cli-B3EFE7ZF.js → cli-WXGJFA4F.js} +1 -1
- package/dist/{cli-PNS4KWWC.js → cli-XCG33I77.js} +24 -24
- package/dist/{cli-DBMEH4Y5.js → cli-YHLSG5HB.js} +26 -26
- package/dist/cli-YNH5DTHY.js +36 -0
- package/dist/cli-YPMJWPDA.js +69 -0
- package/dist/{cli-PXQYY6KM.js → cli-YSXIR7EM.js} +0 -0
- package/dist/cli-ZPFWO4VW.js +85 -0
- package/dist/cli.js +53 -53
- package/dist/client.js +1951 -289
- package/dist/core/assessment-moves.d.ts +32 -0
- package/dist/core/assessment-reports.d.ts +38 -0
- package/dist/core/assessment-settings.d.ts +15 -0
- package/dist/core/benchmark-samples.d.ts +28 -0
- package/dist/core/session-host.d.ts +4 -0
- package/dist/core/session-roster.d.ts +6 -0
- package/dist/core/session-timers.d.ts +40 -0
- package/dist/core/session.d.ts +14 -1
- package/dist/core/tick-timer.d.ts +18 -0
- package/dist/dev/console/assets/{index-Ch6HHb2T.js → index-zd--5H1f.js} +26 -26
- package/dist/dev/console/index.html +1 -1
- package/dist/dev/shell.d.ts +21 -0
- package/dist/dev/view/commands.d.ts +3 -1
- package/dist/docs/api/index.md +1 -1
- package/dist/docs/api/sdk-commands.md +29 -0
- package/dist/docs/api/sdk-e2e.md +30 -0
- package/dist/docs/api/sdk-projection.md +5 -0
- package/dist/docs/api/sdk-tools-client.md +30 -0
- package/dist/docs/api/sdk-ui.md +7 -0
- package/dist/docs/api/sdk.md +834 -19
- package/dist/docs/changelog.md +34 -0
- package/dist/docs/cli-error-codes.md +5 -1
- package/dist/docs/cli-reference.md +76 -2
- package/dist/docs/concepts/index.md +2 -0
- package/dist/docs/concepts/terminology.md +12 -0
- package/dist/docs/guides/assessments.md +248 -0
- package/dist/docs/guides/benchmarks.md +241 -0
- package/dist/docs/guides/engine.md +8 -0
- package/dist/docs/guides/index.md +2 -0
- package/dist/docs/guides/presentation.md +11 -9
- package/dist/docs/guides/session-hooks.md +24 -22
- package/dist/docs/guides/tick-controller.md +22 -1
- package/dist/docs/guides/ui.md +24 -0
- package/dist/docs/guides/upgrading.md +21 -0
- package/dist/docs/page-index.md +16 -12
- package/dist/docs/recipes/create-assessment.md +124 -0
- package/dist/docs/recipes/create-benchmark.md +115 -0
- package/dist/docs/recipes/index.md +2 -0
- package/dist/execution/context-composition.d.ts +39 -4
- package/dist/execution/engine-state.d.ts +13 -0
- package/dist/execution/executor.d.ts +16 -0
- package/dist/execution/logic-result.d.ts +13 -2
- package/dist/help-examples.d.ts +12 -0
- package/dist/host/adapter.d.ts +24 -1
- package/dist/host/protocol.d.ts +115 -1
- package/dist/host.js +29 -1
- package/dist/playwright.js +1945 -283
- package/dist/runtime/index.d.ts +3 -1
- package/dist/runtime/manifest-version.d.ts +1 -1
- package/dist/runtime.js +298 -16
- package/dist/schema.json +189 -0
- package/dist/templating/resource-metadata.d.ts +1 -1
- package/dist/utils/error-codes.d.ts +9 -1
- package/dist/validation/assessment-validation.d.ts +34 -0
- package/dist/validation/benchmark-validation.d.ts +20 -0
- package/dist/validation/schema-validation.d.ts +4 -0
- package/package.json +3 -3
- package/dist/cli-27Z5T52R.js +0 -30
- package/dist/cli-3VLBFWHN.js +0 -36
- package/dist/cli-BINVO5R7.js +0 -36
- package/dist/cli-HLI5UEKX.js +0 -36
- package/dist/cli-OF36EA62.js +0 -36
- package/dist/cli-OVIJRBFI.js +0 -36
- package/dist/cli-UIYKPSIY.js +0 -36
- package/dist/cli-WZNIW6ZO.js +0 -16
|
@@ -149,6 +149,14 @@ export declare const ERROR_CODES: {
|
|
|
149
149
|
readonly category: "package";
|
|
150
150
|
readonly description: "The package uses an optional feature its manifest's `requires` does not list, so a runtime without the feature would run it with part of it missing.";
|
|
151
151
|
};
|
|
152
|
+
readonly BENCHMARK_UNWRITTEN: {
|
|
153
|
+
readonly category: "package";
|
|
154
|
+
readonly description: "A benchmark is not in the engine's `benchmarks`, so nothing writes it and it never holds a value. A warning.";
|
|
155
|
+
};
|
|
156
|
+
readonly ASSESSMENT_UNWRITTEN: {
|
|
157
|
+
readonly category: "package";
|
|
158
|
+
readonly description: "An assessment is not in the engine's `assessments`, so nothing scores it and it never holds a result. A warning.";
|
|
159
|
+
};
|
|
152
160
|
readonly REFERENCE_UNKNOWN: {
|
|
153
161
|
readonly category: "package";
|
|
154
162
|
readonly description: "A `reads`, `writes`, `settings`, `configures` or `endpoints` entry names something the package does not declare.";
|
|
@@ -372,7 +380,7 @@ export type ErrorCode = keyof typeof ERROR_CODES;
|
|
|
372
380
|
* failure's `error.code` says what kind of failure it was; its diagnostics say
|
|
373
381
|
* what was found and where. LOGIC_ERROR is only ever a diagnostic.
|
|
374
382
|
*/
|
|
375
|
-
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_SETTINGS_CONFIGURED", "EDITOR_ENDPOINT_NOT_SCENARIO", "SCENARIO_ENDPOINT_STATEFUL", "EXTERNAL_REQUEST_NOT_OBJECT", "ENDPOINT_UNREQUESTED", "LOGIC_ERROR"];
|
|
383
|
+
export declare const DIAGNOSTIC_CODES: readonly ["PACKAGE_INVALID", "SCHEMA_INVALID", "JSON_INVALID", "BUNDLE_MISSING", "REMOVED_FIELD", "LAYOUT_OUTDATED", "FEATURE_UNSUPPORTED", "FEATURE_UNDECLARED", "BENCHMARK_UNWRITTEN", "ASSESSMENT_UNWRITTEN", "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_SETTINGS_CONFIGURED", "EDITOR_ENDPOINT_NOT_SCENARIO", "SCENARIO_ENDPOINT_STATEFUL", "EXTERNAL_REQUEST_NOT_OBJECT", "ENDPOINT_UNREQUESTED", "LOGIC_ERROR"];
|
|
376
384
|
export type DiagnosticCode = (typeof DIAGNOSTIC_CODES)[number];
|
|
377
385
|
export declare function categoryOf(code: ErrorCode): ErrorCategory;
|
|
378
386
|
export declare function exitCodeOf(code: ErrorCode): number;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ResolvedAssessmentBand, type ResolvedPackageManifest, type SDKAssessment } from '@seriousgaming/sdk';
|
|
2
|
+
import { type Finding } from './findings';
|
|
3
|
+
/** What an assessment check found, in the shape the package validation table reads. */
|
|
4
|
+
export interface AssessmentCheckOutcome {
|
|
5
|
+
errors: string[];
|
|
6
|
+
warnings: string[];
|
|
7
|
+
findings: Finding[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* What is wrong with an assessment's bands, as they stand with any overrides,
|
|
11
|
+
* or null: they ascend strictly from `min` and stay within `max`. Bands are
|
|
12
|
+
* read in declared order (§6.17), so out-of-order thresholds would put a
|
|
13
|
+
* score in a band its label does not describe.
|
|
14
|
+
*/
|
|
15
|
+
export declare function bandsProblem(definition: Pick<SDKAssessment['definition'], 'min' | 'max'>, bands: readonly ResolvedAssessmentBand[]): string | null;
|
|
16
|
+
/**
|
|
17
|
+
* What is wrong with every assessment's bands under a set of resolved
|
|
18
|
+
* settings, one message each (§6.17.4). How a session's or a draft's change
|
|
19
|
+
* is refused: its schema bounds each threshold alone, and only the resolved
|
|
20
|
+
* whole says whether the bands still ascend.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolvedBandProblems(assessments: readonly SDKAssessment[], resolved: Record<string, unknown>): string[];
|
|
23
|
+
/**
|
|
24
|
+
* The checks on one assessment that need more than its own schema (§6.17):
|
|
25
|
+
* the feature listed in `requires`, a score range and bands that make sense,
|
|
26
|
+
* an engine that scores it, and every scenario's band overrides keeping the
|
|
27
|
+
* bands in order.
|
|
28
|
+
*/
|
|
29
|
+
export declare function validateAssessment(assessment: SDKAssessment, config: ResolvedPackageManifest): AssessmentCheckOutcome;
|
|
30
|
+
/**
|
|
31
|
+
* The checks on the engine's `assessments` (§6.17): each names an assessment
|
|
32
|
+
* the package declares, and the game declares no more than the SDK allows.
|
|
33
|
+
*/
|
|
34
|
+
export declare function validateEngineAssessments(config: ResolvedPackageManifest): AssessmentCheckOutcome;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ResolvedPackageManifest, type SDKBenchmark } from '@seriousgaming/sdk';
|
|
2
|
+
import { type Finding } from './findings';
|
|
3
|
+
/** What a benchmark check found, in the shape the package validation table reads. */
|
|
4
|
+
export interface BenchmarkCheckOutcome {
|
|
5
|
+
errors: string[];
|
|
6
|
+
warnings: string[];
|
|
7
|
+
findings: Finding[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The checks on one benchmark that need the rest of the package (§6.16): the
|
|
11
|
+
* feature listed in `requires`, an engine that writes it, and, for a
|
|
12
|
+
* session-level benchmark, an aggregate engine, the only kind with a session
|
|
13
|
+
* result to write it under.
|
|
14
|
+
*/
|
|
15
|
+
export declare function validateBenchmark(benchmark: SDKBenchmark, config: ResolvedPackageManifest): BenchmarkCheckOutcome;
|
|
16
|
+
/**
|
|
17
|
+
* The checks on the engine's `benchmarks` (§6.16): each names a benchmark the
|
|
18
|
+
* package declares, and the game declares no more than the SDK allows.
|
|
19
|
+
*/
|
|
20
|
+
export declare function validateEngineBenchmarks(config: ResolvedPackageManifest): BenchmarkCheckOutcome;
|
|
@@ -18,6 +18,10 @@ export interface ValidationResult {
|
|
|
18
18
|
export declare function schemaFindings(errors: ErrorObject[] | null | undefined): Finding[];
|
|
19
19
|
/** Validate an SDKCapability */
|
|
20
20
|
export declare const validateSDKCapability: (data: unknown) => ValidationResult;
|
|
21
|
+
/** Validate an SDKBenchmark */
|
|
22
|
+
export declare const validateSDKBenchmark: (data: unknown) => ValidationResult;
|
|
23
|
+
/** Validate an SDKAssessment */
|
|
24
|
+
export declare const validateSDKAssessment: (data: unknown) => ValidationResult;
|
|
21
25
|
/** Validate an SDKSettings (definition with its settingsSchema) */
|
|
22
26
|
export declare const validateSDKSettings: (data: unknown) => ValidationResult;
|
|
23
27
|
/** Validate an SDKEngine (definition + logic + rootDirectory) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seriousgaming/sdk-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "SDK tooling for building Serious Gaming games",
|
|
5
5
|
"homepage": "https://sdk.seriousgaming.com/",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@mui/icons-material": "^9.5.0",
|
|
83
83
|
"@mui/material": "^9.5.0",
|
|
84
84
|
"@playwright/test": "^1.64.1",
|
|
85
|
-
"@seriousgaming/sdk": "1.
|
|
85
|
+
"@seriousgaming/sdk": "1.12.1",
|
|
86
86
|
"@testing-library/jest-dom": "^7.0.1",
|
|
87
87
|
"@testing-library/react": "^16.3.3",
|
|
88
88
|
"@types/express": "^5.0.6",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@playwright/test": ">=1.50.0",
|
|
114
|
-
"@seriousgaming/sdk": "^1.
|
|
114
|
+
"@seriousgaming/sdk": "^1.12.1"
|
|
115
115
|
},
|
|
116
116
|
"peerDependenciesMeta": {
|
|
117
117
|
"@playwright/test": {
|
package/dist/cli-27Z5T52R.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
submitPatch,
|
|
4
|
-
submitSharedPatch,
|
|
5
|
-
tickCommand
|
|
6
|
-
} from "./cli-F3YJKP6D.js";
|
|
7
|
-
import "./cli-ZJW6HQ6N.js";
|
|
8
|
-
import "./cli-BC67QHD5.js";
|
|
9
|
-
import "./cli-ATWJCB2G.js";
|
|
10
|
-
import "./cli-PXQYY6KM.js";
|
|
11
|
-
import "./cli-UULZSQBV.js";
|
|
12
|
-
import "./cli-OTBCA54D.js";
|
|
13
|
-
import "./cli-ZNQBF4Z3.js";
|
|
14
|
-
import "./cli-226ZJ72R.js";
|
|
15
|
-
import "./cli-4LKXZQ2B.js";
|
|
16
|
-
import "./cli-HNDFANQG.js";
|
|
17
|
-
import "./cli-S5IVGDDD.js";
|
|
18
|
-
import "./cli-QUNIRH7A.js";
|
|
19
|
-
import "./cli-JXQLHJO2.js";
|
|
20
|
-
import "./cli-25RWY5BQ.js";
|
|
21
|
-
import "./cli-QWQMPCL6.js";
|
|
22
|
-
import "./cli-X64BNBQH.js";
|
|
23
|
-
import "./cli-F2D4GGUA.js";
|
|
24
|
-
import "./cli-TCQJL2GY.js";
|
|
25
|
-
import "./cli-5VZBFMCK.js";
|
|
26
|
-
export {
|
|
27
|
-
submitPatch,
|
|
28
|
-
submitSharedPatch,
|
|
29
|
-
tickCommand
|
|
30
|
-
};
|
package/dist/cli-3VLBFWHN.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
createSettingsEditor
|
|
4
|
-
} from "./cli-5UKWX3IU.js";
|
|
5
|
-
import "./cli-EEO5ZPAZ.js";
|
|
6
|
-
import "./cli-DH35TZ2Q.js";
|
|
7
|
-
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-6O7YCK2M.js";
|
|
9
|
-
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-RHL4B4H7.js";
|
|
11
|
-
import "./cli-WW54THXN.js";
|
|
12
|
-
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-ERJNDBDH.js";
|
|
14
|
-
import "./cli-LHMRUJVN.js";
|
|
15
|
-
import "./cli-X3TSTTYI.js";
|
|
16
|
-
import "./cli-QEFYDXMH.js";
|
|
17
|
-
import "./cli-QTCTWYCM.js";
|
|
18
|
-
import "./cli-P3NUTOPK.js";
|
|
19
|
-
import "./cli-UQC46YSV.js";
|
|
20
|
-
import "./cli-6BLVI2JM.js";
|
|
21
|
-
import "./cli-UEQMK4WX.js";
|
|
22
|
-
import "./cli-JXQLHJO2.js";
|
|
23
|
-
import "./cli-25RWY5BQ.js";
|
|
24
|
-
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-X64BNBQH.js";
|
|
26
|
-
import "./cli-F2D4GGUA.js";
|
|
27
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
-
import "./cli-5VZBFMCK.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
|
-
};
|
package/dist/cli-BINVO5R7.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
deleteSettingsEditor
|
|
4
|
-
} from "./cli-5UKWX3IU.js";
|
|
5
|
-
import "./cli-EEO5ZPAZ.js";
|
|
6
|
-
import "./cli-DH35TZ2Q.js";
|
|
7
|
-
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-6O7YCK2M.js";
|
|
9
|
-
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-RHL4B4H7.js";
|
|
11
|
-
import "./cli-WW54THXN.js";
|
|
12
|
-
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-ERJNDBDH.js";
|
|
14
|
-
import "./cli-LHMRUJVN.js";
|
|
15
|
-
import "./cli-X3TSTTYI.js";
|
|
16
|
-
import "./cli-QEFYDXMH.js";
|
|
17
|
-
import "./cli-QTCTWYCM.js";
|
|
18
|
-
import "./cli-P3NUTOPK.js";
|
|
19
|
-
import "./cli-UQC46YSV.js";
|
|
20
|
-
import "./cli-6BLVI2JM.js";
|
|
21
|
-
import "./cli-UEQMK4WX.js";
|
|
22
|
-
import "./cli-JXQLHJO2.js";
|
|
23
|
-
import "./cli-25RWY5BQ.js";
|
|
24
|
-
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-X64BNBQH.js";
|
|
26
|
-
import "./cli-F2D4GGUA.js";
|
|
27
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
-
import "./cli-5VZBFMCK.js";
|
|
29
|
-
|
|
30
|
-
// cli/commands/resources/scenario-editor/delete.ts
|
|
31
|
-
function deleteScenarioEditor(options) {
|
|
32
|
-
return deleteSettingsEditor("scenario_editor", options);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
deleteScenarioEditor
|
|
36
|
-
};
|
package/dist/cli-HLI5UEKX.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
updateSettingsEditor
|
|
4
|
-
} from "./cli-5UKWX3IU.js";
|
|
5
|
-
import "./cli-EEO5ZPAZ.js";
|
|
6
|
-
import "./cli-DH35TZ2Q.js";
|
|
7
|
-
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-6O7YCK2M.js";
|
|
9
|
-
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-RHL4B4H7.js";
|
|
11
|
-
import "./cli-WW54THXN.js";
|
|
12
|
-
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-ERJNDBDH.js";
|
|
14
|
-
import "./cli-LHMRUJVN.js";
|
|
15
|
-
import "./cli-X3TSTTYI.js";
|
|
16
|
-
import "./cli-QEFYDXMH.js";
|
|
17
|
-
import "./cli-QTCTWYCM.js";
|
|
18
|
-
import "./cli-P3NUTOPK.js";
|
|
19
|
-
import "./cli-UQC46YSV.js";
|
|
20
|
-
import "./cli-6BLVI2JM.js";
|
|
21
|
-
import "./cli-UEQMK4WX.js";
|
|
22
|
-
import "./cli-JXQLHJO2.js";
|
|
23
|
-
import "./cli-25RWY5BQ.js";
|
|
24
|
-
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-X64BNBQH.js";
|
|
26
|
-
import "./cli-F2D4GGUA.js";
|
|
27
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
-
import "./cli-5VZBFMCK.js";
|
|
29
|
-
|
|
30
|
-
// cli/commands/resources/scenario-editor/update.ts
|
|
31
|
-
function updateScenarioEditor(definitionInput, options) {
|
|
32
|
-
return updateSettingsEditor("scenario_editor", definitionInput, options);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
updateScenarioEditor
|
|
36
|
-
};
|
package/dist/cli-OF36EA62.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
updateSettingsEditor
|
|
4
|
-
} from "./cli-5UKWX3IU.js";
|
|
5
|
-
import "./cli-EEO5ZPAZ.js";
|
|
6
|
-
import "./cli-DH35TZ2Q.js";
|
|
7
|
-
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-6O7YCK2M.js";
|
|
9
|
-
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-RHL4B4H7.js";
|
|
11
|
-
import "./cli-WW54THXN.js";
|
|
12
|
-
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-ERJNDBDH.js";
|
|
14
|
-
import "./cli-LHMRUJVN.js";
|
|
15
|
-
import "./cli-X3TSTTYI.js";
|
|
16
|
-
import "./cli-QEFYDXMH.js";
|
|
17
|
-
import "./cli-QTCTWYCM.js";
|
|
18
|
-
import "./cli-P3NUTOPK.js";
|
|
19
|
-
import "./cli-UQC46YSV.js";
|
|
20
|
-
import "./cli-6BLVI2JM.js";
|
|
21
|
-
import "./cli-UEQMK4WX.js";
|
|
22
|
-
import "./cli-JXQLHJO2.js";
|
|
23
|
-
import "./cli-25RWY5BQ.js";
|
|
24
|
-
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-X64BNBQH.js";
|
|
26
|
-
import "./cli-F2D4GGUA.js";
|
|
27
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
-
import "./cli-5VZBFMCK.js";
|
|
29
|
-
|
|
30
|
-
// cli/commands/resources/setup/update.ts
|
|
31
|
-
function updateSetup(definitionInput, options) {
|
|
32
|
-
return updateSettingsEditor("setup", definitionInput, options);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
updateSetup
|
|
36
|
-
};
|
package/dist/cli-OVIJRBFI.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
createSettingsEditor
|
|
4
|
-
} from "./cli-5UKWX3IU.js";
|
|
5
|
-
import "./cli-EEO5ZPAZ.js";
|
|
6
|
-
import "./cli-DH35TZ2Q.js";
|
|
7
|
-
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-6O7YCK2M.js";
|
|
9
|
-
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-RHL4B4H7.js";
|
|
11
|
-
import "./cli-WW54THXN.js";
|
|
12
|
-
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-ERJNDBDH.js";
|
|
14
|
-
import "./cli-LHMRUJVN.js";
|
|
15
|
-
import "./cli-X3TSTTYI.js";
|
|
16
|
-
import "./cli-QEFYDXMH.js";
|
|
17
|
-
import "./cli-QTCTWYCM.js";
|
|
18
|
-
import "./cli-P3NUTOPK.js";
|
|
19
|
-
import "./cli-UQC46YSV.js";
|
|
20
|
-
import "./cli-6BLVI2JM.js";
|
|
21
|
-
import "./cli-UEQMK4WX.js";
|
|
22
|
-
import "./cli-JXQLHJO2.js";
|
|
23
|
-
import "./cli-25RWY5BQ.js";
|
|
24
|
-
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-X64BNBQH.js";
|
|
26
|
-
import "./cli-F2D4GGUA.js";
|
|
27
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
-
import "./cli-5VZBFMCK.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
|
-
};
|
package/dist/cli-UIYKPSIY.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
deleteSettingsEditor
|
|
4
|
-
} from "./cli-5UKWX3IU.js";
|
|
5
|
-
import "./cli-EEO5ZPAZ.js";
|
|
6
|
-
import "./cli-DH35TZ2Q.js";
|
|
7
|
-
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-6O7YCK2M.js";
|
|
9
|
-
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-RHL4B4H7.js";
|
|
11
|
-
import "./cli-WW54THXN.js";
|
|
12
|
-
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-ERJNDBDH.js";
|
|
14
|
-
import "./cli-LHMRUJVN.js";
|
|
15
|
-
import "./cli-X3TSTTYI.js";
|
|
16
|
-
import "./cli-QEFYDXMH.js";
|
|
17
|
-
import "./cli-QTCTWYCM.js";
|
|
18
|
-
import "./cli-P3NUTOPK.js";
|
|
19
|
-
import "./cli-UQC46YSV.js";
|
|
20
|
-
import "./cli-6BLVI2JM.js";
|
|
21
|
-
import "./cli-UEQMK4WX.js";
|
|
22
|
-
import "./cli-JXQLHJO2.js";
|
|
23
|
-
import "./cli-25RWY5BQ.js";
|
|
24
|
-
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-X64BNBQH.js";
|
|
26
|
-
import "./cli-F2D4GGUA.js";
|
|
27
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
-
import "./cli-5VZBFMCK.js";
|
|
29
|
-
|
|
30
|
-
// cli/commands/resources/setup/delete.ts
|
|
31
|
-
function deleteSetup(options) {
|
|
32
|
-
return deleteSettingsEditor("setup", options);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
deleteSetup
|
|
36
|
-
};
|
package/dist/cli-WZNIW6ZO.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
generateCommand
|
|
4
|
-
} from "./cli-UQC46YSV.js";
|
|
5
|
-
import "./cli-6BLVI2JM.js";
|
|
6
|
-
import "./cli-UEQMK4WX.js";
|
|
7
|
-
import "./cli-JXQLHJO2.js";
|
|
8
|
-
import "./cli-25RWY5BQ.js";
|
|
9
|
-
import "./cli-QWQMPCL6.js";
|
|
10
|
-
import "./cli-X64BNBQH.js";
|
|
11
|
-
import "./cli-F2D4GGUA.js";
|
|
12
|
-
import "./cli-TCQJL2GY.js";
|
|
13
|
-
import "./cli-5VZBFMCK.js";
|
|
14
|
-
export {
|
|
15
|
-
generateCommand
|
|
16
|
-
};
|