@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
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
promptForSettings
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-5CW7BEU7.js";
|
|
5
5
|
import {
|
|
6
6
|
loadResourceIdentifiers
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-B5TC4MEL.js";
|
|
8
|
+
import {
|
|
9
|
+
checkbox,
|
|
10
|
+
input
|
|
11
|
+
} from "./cli-2W4B6PD5.js";
|
|
8
12
|
import {
|
|
9
13
|
readAuthoredBundle
|
|
10
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-MITZ6SE7.js";
|
|
11
15
|
import {
|
|
12
16
|
resolveInputSource
|
|
13
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-DWDSBTYL.js";
|
|
18
|
+
import {
|
|
19
|
+
loadPackageContext
|
|
20
|
+
} from "./cli-L6AHMW2Z.js";
|
|
14
21
|
import {
|
|
15
22
|
createValidatorFiles
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import "./cli-
|
|
23
|
+
} from "./cli-T76HDH7F.js";
|
|
24
|
+
import "./cli-KVQ2JPVD.js";
|
|
18
25
|
import "./cli-QUNIRH7A.js";
|
|
19
|
-
import "./cli-
|
|
20
|
-
import {
|
|
21
|
-
loadPackageContext
|
|
22
|
-
} from "./cli-LHMRUJVN.js";
|
|
26
|
+
import "./cli-ARAAEWIQ.js";
|
|
23
27
|
import {
|
|
24
28
|
presentFields
|
|
25
|
-
} from "./cli-
|
|
26
|
-
import "./cli-
|
|
29
|
+
} from "./cli-JC5OJRID.js";
|
|
30
|
+
import "./cli-DZCLRZXJ.js";
|
|
27
31
|
import {
|
|
28
32
|
BUILD_COMMAND,
|
|
29
33
|
generateTypes,
|
|
30
34
|
operationError,
|
|
31
35
|
printOperationResult
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import "./cli-UQC46YSV.js";
|
|
38
|
-
import "./cli-6BLVI2JM.js";
|
|
39
|
-
import "./cli-UEQMK4WX.js";
|
|
40
|
-
import "./cli-JXQLHJO2.js";
|
|
36
|
+
} from "./cli-SO354HPI.js";
|
|
37
|
+
import "./cli-JTFLIMIG.js";
|
|
38
|
+
import "./cli-RMVJMOWU.js";
|
|
39
|
+
import "./cli-M3Z2KOEB.js";
|
|
40
|
+
import "./cli-HXT25ETJ.js";
|
|
41
41
|
import "./cli-25RWY5BQ.js";
|
|
42
|
-
import "./cli-QWQMPCL6.js";
|
|
43
42
|
import {
|
|
44
43
|
validateSDKValidator
|
|
45
|
-
} from "./cli-
|
|
46
|
-
import "./cli-
|
|
44
|
+
} from "./cli-RVZH462G.js";
|
|
45
|
+
import "./cli-QWQMPCL6.js";
|
|
46
|
+
import "./cli-2BKEIIA3.js";
|
|
47
47
|
import {
|
|
48
48
|
logger
|
|
49
|
-
} from "./cli-
|
|
50
|
-
import "./cli-
|
|
49
|
+
} from "./cli-D5VOSJZ7.js";
|
|
50
|
+
import "./cli-5PIFO3EN.js";
|
|
51
51
|
|
|
52
52
|
// cli/commands/resources/validator/new.ts
|
|
53
53
|
async function createValidator(definitionInput, options) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
submitPatch,
|
|
4
|
+
submitSharedPatch,
|
|
5
|
+
tickCommand
|
|
6
|
+
} from "./cli-5KERL6HV.js";
|
|
7
|
+
import "./cli-TIS7DWRR.js";
|
|
8
|
+
import "./cli-CW5MV4VX.js";
|
|
9
|
+
import "./cli-YSXIR7EM.js";
|
|
10
|
+
import "./cli-6KWCIAN2.js";
|
|
11
|
+
import "./cli-55EIGGZK.js";
|
|
12
|
+
import "./cli-M6E3E3I2.js";
|
|
13
|
+
import "./cli-4LKXZQ2B.js";
|
|
14
|
+
import "./cli-4U2PY7W3.js";
|
|
15
|
+
import "./cli-O47D5BFN.js";
|
|
16
|
+
import "./cli-FNESSE3L.js";
|
|
17
|
+
import "./cli-S5IVGDDD.js";
|
|
18
|
+
import "./cli-QUNIRH7A.js";
|
|
19
|
+
import "./cli-HXT25ETJ.js";
|
|
20
|
+
import "./cli-25RWY5BQ.js";
|
|
21
|
+
import "./cli-RVZH462G.js";
|
|
22
|
+
import "./cli-QWQMPCL6.js";
|
|
23
|
+
import "./cli-2BKEIIA3.js";
|
|
24
|
+
import "./cli-D5VOSJZ7.js";
|
|
25
|
+
import "./cli-5PIFO3EN.js";
|
|
26
|
+
export {
|
|
27
|
+
submitPatch,
|
|
28
|
+
submitSharedPatch,
|
|
29
|
+
tickCommand
|
|
30
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveSession
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import "./cli-BC67QHD5.js";
|
|
4
|
+
} from "./cli-TIS7DWRR.js";
|
|
6
5
|
import {
|
|
7
6
|
emit,
|
|
8
7
|
teamIndexFromArgument,
|
|
9
8
|
viewReport,
|
|
10
9
|
viewSummary,
|
|
11
10
|
warnIfStale
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import "./cli-
|
|
14
|
-
import "./cli-
|
|
15
|
-
import "./cli-
|
|
16
|
-
import "./cli-
|
|
17
|
-
import "./cli-226ZJ72R.js";
|
|
11
|
+
} from "./cli-CW5MV4VX.js";
|
|
12
|
+
import "./cli-YSXIR7EM.js";
|
|
13
|
+
import "./cli-6KWCIAN2.js";
|
|
14
|
+
import "./cli-55EIGGZK.js";
|
|
15
|
+
import "./cli-M6E3E3I2.js";
|
|
18
16
|
import "./cli-4LKXZQ2B.js";
|
|
19
|
-
import "./cli-
|
|
17
|
+
import "./cli-4U2PY7W3.js";
|
|
18
|
+
import "./cli-O47D5BFN.js";
|
|
19
|
+
import "./cli-FNESSE3L.js";
|
|
20
20
|
import "./cli-QUNIRH7A.js";
|
|
21
|
-
import "./cli-
|
|
21
|
+
import "./cli-HXT25ETJ.js";
|
|
22
22
|
import "./cli-25RWY5BQ.js";
|
|
23
|
+
import "./cli-RVZH462G.js";
|
|
23
24
|
import "./cli-QWQMPCL6.js";
|
|
24
|
-
import "./cli-
|
|
25
|
-
import "./cli-
|
|
26
|
-
import "./cli-TCQJL2GY.js";
|
|
25
|
+
import "./cli-2BKEIIA3.js";
|
|
26
|
+
import "./cli-D5VOSJZ7.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-5PIFO3EN.js";
|
|
30
30
|
|
|
31
31
|
// cli/commands/view.ts
|
|
32
32
|
async function viewCommand(options) {
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
input
|
|
4
|
+
} from "./cli-2W4B6PD5.js";
|
|
2
5
|
import {
|
|
3
6
|
readAuthoredBundle
|
|
4
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-MITZ6SE7.js";
|
|
5
8
|
import {
|
|
6
9
|
resolveInputSource
|
|
7
|
-
} from "./cli-
|
|
8
|
-
import {
|
|
9
|
-
createScenarioFiles
|
|
10
|
-
} from "./cli-ERJNDBDH.js";
|
|
10
|
+
} from "./cli-DWDSBTYL.js";
|
|
11
11
|
import {
|
|
12
12
|
loadPackageContext
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import
|
|
15
|
-
|
|
13
|
+
} from "./cli-L6AHMW2Z.js";
|
|
14
|
+
import {
|
|
15
|
+
createScenarioFiles
|
|
16
|
+
} from "./cli-ARAAEWIQ.js";
|
|
17
|
+
import "./cli-JC5OJRID.js";
|
|
18
|
+
import "./cli-DZCLRZXJ.js";
|
|
16
19
|
import {
|
|
17
20
|
operationError,
|
|
18
21
|
printOperationResult
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import "./cli-
|
|
24
|
-
import "./cli-6BLVI2JM.js";
|
|
25
|
-
import "./cli-UEQMK4WX.js";
|
|
26
|
-
import "./cli-JXQLHJO2.js";
|
|
22
|
+
} from "./cli-SO354HPI.js";
|
|
23
|
+
import "./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-QWQMPCL6.js";
|
|
29
28
|
import {
|
|
30
29
|
validateSDKScenario
|
|
31
|
-
} from "./cli-
|
|
32
|
-
import "./cli-
|
|
30
|
+
} from "./cli-RVZH462G.js";
|
|
31
|
+
import "./cli-QWQMPCL6.js";
|
|
32
|
+
import "./cli-2BKEIIA3.js";
|
|
33
33
|
import {
|
|
34
34
|
logger
|
|
35
|
-
} from "./cli-
|
|
36
|
-
import "./cli-
|
|
35
|
+
} from "./cli-D5VOSJZ7.js";
|
|
36
|
+
import "./cli-5PIFO3EN.js";
|
|
37
37
|
|
|
38
38
|
// cli/commands/resources/scenario/new.ts
|
|
39
39
|
async function createScenario(definitionInput, options) {
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
promptForSettings
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-5CW7BEU7.js";
|
|
5
5
|
import {
|
|
6
6
|
loadResourceIdentifiers
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-B5TC4MEL.js";
|
|
8
|
+
import {
|
|
9
|
+
checkbox,
|
|
10
|
+
input
|
|
11
|
+
} from "./cli-2W4B6PD5.js";
|
|
8
12
|
import {
|
|
9
13
|
readAuthoredBundle
|
|
10
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-MITZ6SE7.js";
|
|
11
15
|
import {
|
|
12
16
|
resolveInputSource
|
|
13
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-DWDSBTYL.js";
|
|
18
|
+
import {
|
|
19
|
+
loadPackageContext
|
|
20
|
+
} from "./cli-L6AHMW2Z.js";
|
|
14
21
|
import {
|
|
15
22
|
createPresentationFiles
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import "./cli-
|
|
23
|
+
} from "./cli-T76HDH7F.js";
|
|
24
|
+
import "./cli-KVQ2JPVD.js";
|
|
18
25
|
import "./cli-QUNIRH7A.js";
|
|
19
|
-
import "./cli-
|
|
20
|
-
import {
|
|
21
|
-
loadPackageContext
|
|
22
|
-
} from "./cli-LHMRUJVN.js";
|
|
26
|
+
import "./cli-ARAAEWIQ.js";
|
|
23
27
|
import {
|
|
24
28
|
presentFields
|
|
25
|
-
} from "./cli-
|
|
26
|
-
import "./cli-
|
|
29
|
+
} from "./cli-JC5OJRID.js";
|
|
30
|
+
import "./cli-DZCLRZXJ.js";
|
|
27
31
|
import {
|
|
28
32
|
BUILD_COMMAND,
|
|
29
33
|
generateTypes,
|
|
30
34
|
operationError,
|
|
31
35
|
printOperationResult
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import "./cli-UQC46YSV.js";
|
|
38
|
-
import "./cli-6BLVI2JM.js";
|
|
39
|
-
import "./cli-UEQMK4WX.js";
|
|
40
|
-
import "./cli-JXQLHJO2.js";
|
|
36
|
+
} from "./cli-SO354HPI.js";
|
|
37
|
+
import "./cli-JTFLIMIG.js";
|
|
38
|
+
import "./cli-RMVJMOWU.js";
|
|
39
|
+
import "./cli-M3Z2KOEB.js";
|
|
40
|
+
import "./cli-HXT25ETJ.js";
|
|
41
41
|
import "./cli-25RWY5BQ.js";
|
|
42
|
-
import "./cli-QWQMPCL6.js";
|
|
43
42
|
import {
|
|
44
43
|
validateSDKPresentation
|
|
45
|
-
} from "./cli-
|
|
46
|
-
import "./cli-
|
|
44
|
+
} from "./cli-RVZH462G.js";
|
|
45
|
+
import "./cli-QWQMPCL6.js";
|
|
46
|
+
import "./cli-2BKEIIA3.js";
|
|
47
47
|
import {
|
|
48
48
|
logger
|
|
49
|
-
} from "./cli-
|
|
50
|
-
import "./cli-
|
|
49
|
+
} from "./cli-D5VOSJZ7.js";
|
|
50
|
+
import "./cli-5PIFO3EN.js";
|
|
51
51
|
|
|
52
52
|
// cli/commands/resources/presentation/new.ts
|
|
53
53
|
async function finishCreate(workingDir) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
updateSettingsEditor
|
|
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/update.ts
|
|
31
|
+
function updateSetup(definitionInput, options) {
|
|
32
|
+
return updateSettingsEditor("setup", definitionInput, options);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
updateSetup
|
|
36
|
+
};
|
|
@@ -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
|
deleteSettingsFiles,
|
|
4
10
|
findSettingsReferences
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import "./cli-
|
|
11
|
+
} from "./cli-T76HDH7F.js";
|
|
12
|
+
import "./cli-KVQ2JPVD.js";
|
|
7
13
|
import "./cli-QUNIRH7A.js";
|
|
8
|
-
import "./cli-
|
|
9
|
-
import
|
|
10
|
-
|
|
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-
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import "./cli-
|
|
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-
|
|
29
|
-
import "./cli-F2D4GGUA.js";
|
|
29
|
+
import "./cli-2BKEIIA3.js";
|
|
30
30
|
import {
|
|
31
31
|
logger
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import "./cli-
|
|
32
|
+
} from "./cli-D5VOSJZ7.js";
|
|
33
|
+
import "./cli-5PIFO3EN.js";
|
|
34
34
|
|
|
35
35
|
// cli/commands/resources/settings/delete.ts
|
|
36
36
|
async function deleteSettings(identifier, options) {
|
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
import {
|
|
3
3
|
submitPatch,
|
|
4
4
|
submitSharedPatch
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-5KERL6HV.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveSession
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import "./cli-BC67QHD5.js";
|
|
8
|
+
} from "./cli-TIS7DWRR.js";
|
|
10
9
|
import {
|
|
11
10
|
emit,
|
|
12
11
|
teamIndexFromArgument,
|
|
13
12
|
tickReport
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import "./cli-
|
|
16
|
-
import "./cli-
|
|
17
|
-
import "./cli-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-226ZJ72R.js";
|
|
13
|
+
} from "./cli-CW5MV4VX.js";
|
|
14
|
+
import "./cli-YSXIR7EM.js";
|
|
15
|
+
import "./cli-6KWCIAN2.js";
|
|
16
|
+
import "./cli-55EIGGZK.js";
|
|
17
|
+
import "./cli-M6E3E3I2.js";
|
|
20
18
|
import "./cli-4LKXZQ2B.js";
|
|
21
|
-
import "./cli-
|
|
19
|
+
import "./cli-4U2PY7W3.js";
|
|
20
|
+
import "./cli-O47D5BFN.js";
|
|
21
|
+
import "./cli-FNESSE3L.js";
|
|
22
22
|
import "./cli-S5IVGDDD.js";
|
|
23
23
|
import "./cli-QUNIRH7A.js";
|
|
24
|
-
import "./cli-
|
|
24
|
+
import "./cli-HXT25ETJ.js";
|
|
25
25
|
import "./cli-25RWY5BQ.js";
|
|
26
|
+
import "./cli-RVZH462G.js";
|
|
26
27
|
import "./cli-QWQMPCL6.js";
|
|
27
|
-
import "./cli-
|
|
28
|
-
import "./cli-
|
|
29
|
-
import "./cli-TCQJL2GY.js";
|
|
28
|
+
import "./cli-2BKEIIA3.js";
|
|
29
|
+
import "./cli-D5VOSJZ7.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-5PIFO3EN.js";
|
|
33
33
|
|
|
34
34
|
// cli/commands/patch.ts
|
|
35
35
|
async function patchCommand(patch, options) {
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
absolutiseTsTypes,
|
|
4
4
|
relativiseTsTypes
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-M3Z2KOEB.js";
|
|
6
6
|
import {
|
|
7
7
|
SCENARIO_FILES,
|
|
8
8
|
resolveCapabilityScope
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-HXT25ETJ.js";
|
|
10
10
|
import {
|
|
11
11
|
dereference,
|
|
12
12
|
isLocalRef,
|
|
13
|
+
resolveBenchmarkLevel,
|
|
13
14
|
resolveLocalRef
|
|
14
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-RVZH462G.js";
|
|
15
16
|
import {
|
|
16
17
|
logger
|
|
17
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-D5VOSJZ7.js";
|
|
18
19
|
import {
|
|
19
20
|
CliError
|
|
20
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-5PIFO3EN.js";
|
|
21
22
|
|
|
22
23
|
// cli/generation/endpoint-types.ts
|
|
23
24
|
import { writeFile as writeFile3 } from "fs/promises";
|
|
@@ -924,7 +925,94 @@ ${scenarioScoped ? "" : contextTS}${teamContextTS}${writesTS}${teamWritesTS}${se
|
|
|
924
925
|
|
|
925
926
|
// cli/generation/engine-types.ts
|
|
926
927
|
import { join as join3 } from "path";
|
|
927
|
-
|
|
928
|
+
|
|
929
|
+
// cli/generation/assessment-types.ts
|
|
930
|
+
var RESULT = "{ score: number; feedback?: string; final?: boolean }";
|
|
931
|
+
function escapeDoc(text) {
|
|
932
|
+
return text.replace(/\*\//g, "*\\/");
|
|
933
|
+
}
|
|
934
|
+
function assessmentTypesTrailer(declared, assessments) {
|
|
935
|
+
if (!declared || declared.length === 0) return "";
|
|
936
|
+
const byId = new Map(assessments.map((a) => [a.definition.identifier, a]));
|
|
937
|
+
const members = declared.flatMap((id) => {
|
|
938
|
+
const assessment = byId.get(id);
|
|
939
|
+
if (!assessment) return [];
|
|
940
|
+
const { description, level, min, max } = assessment.definition;
|
|
941
|
+
const lead = description ? escapeDoc(description).trim() : "";
|
|
942
|
+
const doc = `${lead === "" ? "" : `${lead}${/[.!?]$/.test(lead) ? "" : "."} `}Scored ${level === "team" ? "once per team" : "per participant id"}, from ${min} to ${max}.`;
|
|
943
|
+
const type = level === "team" ? RESULT : `Record<string, ${RESULT}>`;
|
|
944
|
+
return [` /** ${doc} */
|
|
945
|
+
${id}: ${type};`];
|
|
946
|
+
});
|
|
947
|
+
if (members.length === 0) return "";
|
|
948
|
+
return `/** This team's assessment results, as \`Run\` receives and writes them. */
|
|
949
|
+
export interface Assessments {
|
|
950
|
+
${members.join("\n")}
|
|
951
|
+
}
|
|
952
|
+
`;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
// cli/generation/benchmark-types.ts
|
|
956
|
+
function recordType(benchmark) {
|
|
957
|
+
const { fields, tags } = benchmark.definition;
|
|
958
|
+
const lines = [];
|
|
959
|
+
for (const [name, field] of Object.entries(fields)) {
|
|
960
|
+
if (field.description)
|
|
961
|
+
lines.push(` /** ${field.description.replace(/\*\//g, "*\\/")} */`);
|
|
962
|
+
const type = "type" in field ? "number" : field.enum.map((option) => `'${option}'`).join(" | ");
|
|
963
|
+
lines.push(` ${name}?: ${type};`);
|
|
964
|
+
}
|
|
965
|
+
const tagNames = tags ?? [];
|
|
966
|
+
if (tagNames.length > 0) {
|
|
967
|
+
lines.push(" /** The values this record is grouped by. */");
|
|
968
|
+
lines.push(` tags?: { ${tagNames.map((tag) => `${tag}?: string`).join("; ")} };`);
|
|
969
|
+
}
|
|
970
|
+
lines.push(" /** `true` withdraws this record from the pool. */");
|
|
971
|
+
lines.push(" excluded?: boolean;");
|
|
972
|
+
return `{
|
|
973
|
+
${lines.join("\n")}
|
|
974
|
+
}`;
|
|
975
|
+
}
|
|
976
|
+
function recordsInterface(name, doc, benchmarks) {
|
|
977
|
+
if (benchmarks.length === 0) {
|
|
978
|
+
return `/** ${doc} None are declared. */
|
|
979
|
+
export type ${name} = Record<string, never>;
|
|
980
|
+
`;
|
|
981
|
+
}
|
|
982
|
+
const members = benchmarks.map((benchmark) => ` ${benchmark.definition.identifier}: ${recordType(benchmark)};`).join("\n");
|
|
983
|
+
return `/** ${doc} */
|
|
984
|
+
export interface ${name} {
|
|
985
|
+
${members}
|
|
986
|
+
}
|
|
987
|
+
`;
|
|
988
|
+
}
|
|
989
|
+
function benchmarkTypesTrailer(declared, benchmarks) {
|
|
990
|
+
if (!declared || declared.length === 0) return "";
|
|
991
|
+
const byId = new Map(benchmarks.map((b) => [b.definition.identifier, b]));
|
|
992
|
+
const engineBenchmarks = declared.flatMap((id) => {
|
|
993
|
+
const benchmark = byId.get(id);
|
|
994
|
+
return benchmark ? [benchmark] : [];
|
|
995
|
+
});
|
|
996
|
+
const team = engineBenchmarks.filter((b) => resolveBenchmarkLevel(b.definition) === "team");
|
|
997
|
+
const session = engineBenchmarks.filter(
|
|
998
|
+
(b) => resolveBenchmarkLevel(b.definition) === "session"
|
|
999
|
+
);
|
|
1000
|
+
return [
|
|
1001
|
+
recordsInterface(
|
|
1002
|
+
"Benchmarks",
|
|
1003
|
+
"Each team's benchmark records, as `Run` receives and writes them.",
|
|
1004
|
+
team
|
|
1005
|
+
),
|
|
1006
|
+
recordsInterface(
|
|
1007
|
+
"SessionBenchmarks",
|
|
1008
|
+
"The session's own benchmark records, under an aggregate result's `shared`.",
|
|
1009
|
+
session
|
|
1010
|
+
)
|
|
1011
|
+
].join("\n") + "\n";
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
// cli/generation/engine-types.ts
|
|
1015
|
+
async function generateEngineTypes(engine, capabilityMap, settingsMap, workingDir, benchmarks = [], assessments = []) {
|
|
928
1016
|
logger.debug(`Generating types for ${engine.definition.identifier}...`);
|
|
929
1017
|
await generateCapabilityScopedTypes({
|
|
930
1018
|
capabilityMap,
|
|
@@ -943,11 +1031,20 @@ async function generateEngineTypes(engine, capabilityMap, settingsMap, workingDi
|
|
|
943
1031
|
sourceType: "SignatureCallbacks",
|
|
944
1032
|
uses: engine.definition.uses ?? []
|
|
945
1033
|
},
|
|
1034
|
+
trailer: joinTrailers([
|
|
1035
|
+
benchmarkTypesTrailer(engine.definition.benchmarks, benchmarks),
|
|
1036
|
+
assessmentTypesTrailer(engine.definition.assessments, assessments)
|
|
1037
|
+
]),
|
|
946
1038
|
owner: `Engine "${engine.definition.identifier}"`,
|
|
947
1039
|
outputPath: join3(workingDir, engine.rootDirectory, "types.ts"),
|
|
948
1040
|
headerComment: "// This file is auto-generated from the engine's capability definitions.\n// Do not edit this file directly. It will be regenerated on build."
|
|
949
1041
|
});
|
|
950
1042
|
}
|
|
1043
|
+
function joinTrailers(parts) {
|
|
1044
|
+
const kept = parts.map((part) => part.trimEnd()).filter((part) => part !== "");
|
|
1045
|
+
return kept.length > 0 ? `${kept.join("\n\n")}
|
|
1046
|
+
` : void 0;
|
|
1047
|
+
}
|
|
951
1048
|
|
|
952
1049
|
// cli/generation/hook-types.ts
|
|
953
1050
|
import { appendFile } from "fs/promises";
|
|
@@ -1313,7 +1410,14 @@ async function generateAllTypes(config, options) {
|
|
|
1313
1410
|
};
|
|
1314
1411
|
if (config.engine) {
|
|
1315
1412
|
note(` Generating types for engine ${config.engine.definition.identifier}`);
|
|
1316
|
-
await generateEngineTypes(
|
|
1413
|
+
await generateEngineTypes(
|
|
1414
|
+
config.engine,
|
|
1415
|
+
maps.capabilityMap,
|
|
1416
|
+
maps.settingsMap,
|
|
1417
|
+
workingDir,
|
|
1418
|
+
config.benchmarks ?? [],
|
|
1419
|
+
config.assessments ?? []
|
|
1420
|
+
);
|
|
1317
1421
|
}
|
|
1318
1422
|
if (config.ui) {
|
|
1319
1423
|
note(` Generating types for UI ${config.ui.definition.identifier}`);
|