@seriousgaming/sdk-tools 1.10.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.
- package/dist/agent/guidance.md +35 -23
- package/dist/{cli-F2D4GGUA.js → cli-2BKEIIA3.js} +66 -0
- package/dist/{cli-NQSL2CIH.js → cli-2QGTDHRX.js} +21 -21
- package/dist/{cli-33MZSPPK.js → cli-2SDG3SZ7.js} +21 -21
- package/dist/{cli-CLO7HKEQ.js → cli-2VXP34R5.js} +5 -3
- package/dist/{cli-P3NUTOPK.js → cli-2W4B6PD5.js} +1 -1
- package/dist/{cli-SOO6SEIS.js → cli-2X7DKSXN.js} +28 -25
- package/dist/{cli-LNEZ6KDW.js → cli-2ZP4N7HK.js} +19 -19
- package/dist/{cli-5O7XENQY.js → cli-3GJYZH4C.js} +5 -5
- package/dist/{cli-NAZTYKZT.js → cli-3GO3M2MX.js} +30 -14
- package/dist/{cli-YZJBFKRI.js → cli-3LDLUNME.js} +17 -17
- package/dist/{cli-J42N4PJG.js → cli-3WY6L2WP.js} +31 -29
- package/dist/{cli-WG7MAOCS.js → cli-44MBABRD.js} +25 -25
- package/dist/{cli-MGZYQDCH.js → cli-4IO7MKLR.js} +20 -20
- package/dist/{cli-HNDFANQG.js → cli-4U2PY7W3.js} +1 -1
- package/dist/{cli-4JNF3O5N.js → cli-4WI4LTBI.js} +2 -2
- package/dist/{cli-OTBCA54D.js → cli-55EIGGZK.js} +1 -1
- package/dist/{cli-5TKPT3CY.js → cli-5AQV6FTL.js} +18 -18
- package/dist/{cli-KNXY43YV.js → cli-5CW7BEU7.js} +3 -3
- package/dist/{cli-5V4N4BR4.js → cli-5JUVHNZF.js} +12 -12
- package/dist/{cli-F3YJKP6D.js → cli-5KERL6HV.js} +9 -4
- package/dist/{cli-HN442ZVK.js → cli-5KSA24NQ.js} +24 -24
- package/dist/{cli-5VZBFMCK.js → cli-5PIFO3EN.js} +8 -0
- package/dist/{cli-IQBY7Z7Q.js → cli-5QN2Z43X.js} +20 -20
- package/dist/cli-5XSPAA5X.js +69 -0
- package/dist/{cli-QW7VXL2V.js → cli-62KAYGXO.js} +20 -20
- package/dist/{cli-TDLIPYKT.js → cli-6IMV5ZZU.js} +26 -26
- package/dist/{cli-UULZSQBV.js → cli-6KWCIAN2.js} +764 -66
- package/dist/{cli-2ANX6E3A.js → cli-6NWETIX5.js} +20 -20
- package/dist/{cli-EXUPHPDJ.js → cli-774W3MN5.js} +26 -26
- package/dist/cli-7BUD3VAD.js +16 -0
- package/dist/{cli-7NUFHMGE.js → cli-7KEP57S7.js} +12 -12
- package/dist/{cli-6CYAOUYT.js → cli-7OYFJMA6.js} +18 -18
- package/dist/{cli-ILHHJR2S.js → cli-7ZNEDQ3G.js} +20 -20
- package/dist/{cli-5RRPUL6V.js → cli-AFK6OUID.js} +12 -12
- package/dist/{cli-A3AJQZEN.js → cli-AIYQFWXN.js} +25 -25
- package/dist/{cli-B5DWKRZ4.js → cli-ARAAEWIQ.js} +2 -2
- package/dist/cli-AVQYV3N4.js +36 -0
- package/dist/{cli-35GV2F6R.js → cli-B54Z6CXH.js} +16 -16
- package/dist/{cli-467VRXGP.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-XR3O2YTV.js → cli-BPS2JG74.js} +20 -20
- package/dist/{cli-W3RG2MRI.js → cli-BVO55SR2.js} +2 -2
- package/dist/{cli-PYAST3G5.js → cli-CFH3JZP5.js} +21 -21
- package/dist/{cli-VZVHS5AP.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-GRSQRFRG.js → cli-DZCLRZXJ.js} +9 -2
- package/dist/{cli-RSF5R3HC.js → cli-EJ47IE45.js} +28 -25
- 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-MUOLHQNL.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-HHRP6FP6.js → cli-HCXS5EXU.js} +25 -25
- package/dist/cli-HEUNNHDH.js +36 -0
- package/dist/{cli-36GABN2A.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-JMNPMDXH.js → cli-IO32YA5N.js} +26 -26
- package/dist/cli-IPTGZDBB.js +36 -0
- package/dist/{cli-L54SXUK6.js → cli-J25TYFKB.js} +19 -19
- package/dist/{cli-CQ4ZR3ZQ.js → cli-J7XYMEMX.js} +20 -20
- package/dist/{cli-5DWR7RPQ.js → cli-JC5OJRID.js} +2 -2
- package/dist/{cli-25SJZI7N.js → cli-JD563OF4.js} +126 -27
- package/dist/{cli-JAVMRERQ.js → cli-JRJF2WHU.js} +20 -20
- package/dist/{cli-UQC46YSV.js → cli-JTFLIMIG.js} +3 -3
- package/dist/{cli-2AH6D32V.js → cli-K2BSJ2PK.js} +2 -2
- package/dist/{cli-XB5PI2XT.js → cli-K4QTYMN2.js} +25 -25
- package/dist/{cli-5SHG2M7E.js → cli-KFJDD4C4.js} +20 -20
- package/dist/{cli-WW54THXN.js → cli-KVQ2JPVD.js} +1 -1
- package/dist/{cli-O5WYATAI.js → cli-L6AHMW2Z.js} +4 -2
- package/dist/{cli-IKSLPAZN.js → cli-LCYUBCVY.js} +4 -4
- package/dist/{cli-HGCOEL5T.js → cli-LEWSCDH5.js} +4 -4
- package/dist/{cli-HNG6PZW2.js → cli-LI6G7GND.js} +27 -27
- package/dist/{cli-2AVPNSAX.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-OXU6TTEN.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-VALLLE6Y.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-Z3DITVBE.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-267QJ2DS.js → cli-OMG4E53H.js} +20 -20
- package/dist/{cli-C32Q5E5I.js → cli-P6V3NSU4.js} +1 -1
- package/dist/{cli-PBSLPO6G.js → cli-PAMQMTHK.js} +21 -21
- package/dist/{cli-RUEPTOWG.js → cli-PKTHOCT3.js} +26 -26
- package/dist/{cli-PTXOKO2Y.js → cli-QK7QAP5H.js} +18 -18
- package/dist/cli-QQ432JEN.js +36 -0
- package/dist/{cli-YFLQ7XOO.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-M6AZFIMV.js → cli-RQISHMJF.js} +88 -23
- package/dist/{cli-X64BNBQH.js → cli-RVZH462G.js} +585 -8
- package/dist/{cli-LLJQI2QP.js → cli-SEEOQVUL.js} +12 -12
- package/dist/{cli-QTCTWYCM.js → cli-SO354HPI.js} +3 -3
- package/dist/{cli-URCHZDTS.js → cli-T76HDH7F.js} +90 -5
- package/dist/{cli-ZJW6HQ6N.js → cli-TIS7DWRR.js} +7 -7
- package/dist/{cli-WOFYI7HZ.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-4A7RWFNO.js → cli-W4LMRVZT.js} +78 -47
- package/dist/cli-W7I5KGIB.js +84 -0
- package/dist/{cli-B3EFE7ZF.js → cli-WXGJFA4F.js} +1 -1
- package/dist/{cli-IPTHJT3J.js → cli-XCG33I77.js} +28 -25
- package/dist/{cli-WLSACMYA.js → cli-YHLSG5HB.js} +30 -28
- 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/index.d.ts +1 -1
- package/dist/client/test-session.d.ts +44 -6
- package/dist/client.js +1934 -286
- 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 +8 -0
- package/dist/dev/view/commands.d.ts +3 -1
- package/dist/docs/api/index.md +4 -2
- 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 +68 -6
- package/dist/docs/api/sdk-tools-vite.md +21 -0
- package/dist/docs/api/sdk-ui.md +7 -0
- package/dist/docs/api/sdk.md +834 -19
- package/dist/docs/changelog.md +67 -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/endpoints.md +1 -1
- package/dist/docs/guides/engine-testing.md +49 -14
- package/dist/docs/guides/engine.md +10 -2
- 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/testing.md +3 -8
- package/dist/docs/guides/tick-controller.md +22 -1
- package/dist/docs/guides/ui.md +24 -0
- package/dist/docs/guides/upgrading.md +36 -0
- package/dist/docs/page-index.md +18 -13
- package/dist/docs/recipes/create-assessment.md +124 -0
- package/dist/docs/recipes/create-benchmark.md +115 -0
- package/dist/docs/recipes/create-game.md +1 -1
- package/dist/docs/recipes/fix-duplicate-packages.md +8 -19
- 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/oxlint/logic.json +184 -0
- package/dist/playwright.js +1928 -280
- 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/templates/package/README.md.liquid +1 -0
- package/dist/templates/package/claude/rules/workflow-create-engine.md +1 -1
- package/dist/templates/package/claude/rules/workflow-create-user-interface.md +1 -1
- package/dist/templates/package/claude/rules/workflow-test-engine-or-ui.md +1 -1
- package/dist/templates/package/claude/rules/workflow-update-sdk-version.md +2 -2
- package/dist/templates/package/claude/settings.json.template +1 -0
- package/dist/templates/package/oxfmtrc.json.template +8 -1
- package/dist/templates/package/oxlintrc.json.template +1 -180
- package/dist/templates/package/package.json.liquid +1 -0
- package/dist/templates/package/vite.config.ts.liquid +2 -8
- package/dist/templates/package/vitest.config.ts.liquid +2 -8
- package/dist/templates/starter-game/package.json +2 -1
- package/dist/templates/starter-game/testing/engine/game.engine.test.ts +62 -37
- package/dist/templates/starter-game/vite.config.ts +2 -8
- package/dist/templates/starter-game/vitest.config.ts +4 -3
- package/dist/templating/resource-metadata.d.ts +1 -1
- package/dist/utils/error-codes.d.ts +9 -1
- package/dist/utils/resource-scan.d.ts +5 -0
- 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/dist/vite/index.d.ts +30 -0
- package/dist/vite.js +12 -0
- package/package.json +12 -4
- package/dist/cli-27Z5T52R.js +0 -30
- package/dist/cli-5XE4OMFL.js +0 -36
- package/dist/cli-BB6CU4ZC.js +0 -36
- package/dist/cli-FGP6YYM7.js +0 -36
- package/dist/cli-I3ZAZYWP.js +0 -36
- package/dist/cli-RFAPPYXK.js +0 -36
- package/dist/cli-WZNIW6ZO.js +0 -16
- package/dist/cli-XEEOJGBL.js +0 -36
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
updateFacilitatorGuideFiles
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-4WI4LTBI.js";
|
|
5
5
|
import {
|
|
6
6
|
resolvePatchedDefinition
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-2VXP34R5.js";
|
|
8
8
|
import "./cli-S5IVGDDD.js";
|
|
9
9
|
import {
|
|
10
10
|
readAuthoredBundle
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-MITZ6SE7.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveInputSource
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-DWDSBTYL.js";
|
|
15
15
|
import {
|
|
16
16
|
loadPackageContext
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-
|
|
17
|
+
} from "./cli-L6AHMW2Z.js";
|
|
18
|
+
import "./cli-JC5OJRID.js";
|
|
19
|
+
import "./cli-DZCLRZXJ.js";
|
|
20
20
|
import {
|
|
21
21
|
operationError,
|
|
22
22
|
printOperationResult
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import "./cli-
|
|
25
|
-
import "./cli-
|
|
26
|
-
import "./cli-
|
|
27
|
-
import "./cli-
|
|
23
|
+
} from "./cli-SO354HPI.js";
|
|
24
|
+
import "./cli-JTFLIMIG.js";
|
|
25
|
+
import "./cli-RMVJMOWU.js";
|
|
26
|
+
import "./cli-M3Z2KOEB.js";
|
|
27
|
+
import "./cli-HXT25ETJ.js";
|
|
28
28
|
import "./cli-25RWY5BQ.js";
|
|
29
|
-
import "./cli-QWQMPCL6.js";
|
|
30
29
|
import {
|
|
31
30
|
validateSDKFacilitatorGuide
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import "./cli-
|
|
31
|
+
} from "./cli-RVZH462G.js";
|
|
32
|
+
import "./cli-QWQMPCL6.js";
|
|
33
|
+
import "./cli-2BKEIIA3.js";
|
|
34
34
|
import {
|
|
35
35
|
logger
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-D5VOSJZ7.js";
|
|
37
37
|
import {
|
|
38
38
|
CliError
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-5PIFO3EN.js";
|
|
40
40
|
|
|
41
41
|
// cli/commands/resources/guide/update.ts
|
|
42
42
|
async function updateFacilitatorGuide(definitionInput, options) {
|
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
assertEveryPropertyHasDefault
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-K2BSJ2PK.js";
|
|
5
5
|
import {
|
|
6
6
|
reviewSchemaProperties
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-WXGJFA4F.js";
|
|
8
|
+
import {
|
|
9
|
+
confirmAction,
|
|
10
|
+
input
|
|
11
|
+
} from "./cli-2W4B6PD5.js";
|
|
8
12
|
import {
|
|
9
13
|
resolvePatchedDefinition
|
|
10
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-2VXP34R5.js";
|
|
11
15
|
import "./cli-S5IVGDDD.js";
|
|
12
16
|
import {
|
|
13
17
|
getResourceIdentifierError,
|
|
14
18
|
readAuthoredBundle
|
|
15
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-MITZ6SE7.js";
|
|
16
20
|
import {
|
|
17
21
|
resolveInputSource
|
|
18
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-DWDSBTYL.js";
|
|
23
|
+
import {
|
|
24
|
+
loadPackageContext
|
|
25
|
+
} from "./cli-L6AHMW2Z.js";
|
|
19
26
|
import {
|
|
20
27
|
updateSettingsFiles
|
|
21
|
-
} from "./cli-
|
|
22
|
-
import "./cli-
|
|
28
|
+
} from "./cli-T76HDH7F.js";
|
|
29
|
+
import "./cli-KVQ2JPVD.js";
|
|
23
30
|
import {
|
|
24
31
|
extractSchemaProperties
|
|
25
32
|
} from "./cli-QUNIRH7A.js";
|
|
26
|
-
import "./cli-
|
|
27
|
-
import
|
|
28
|
-
loadPackageContext
|
|
29
|
-
} from "./cli-O5WYATAI.js";
|
|
30
|
-
import "./cli-5DWR7RPQ.js";
|
|
33
|
+
import "./cli-ARAAEWIQ.js";
|
|
34
|
+
import "./cli-JC5OJRID.js";
|
|
31
35
|
import {
|
|
36
|
+
existingResourcesHint,
|
|
32
37
|
findBundleFile
|
|
33
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-DZCLRZXJ.js";
|
|
34
39
|
import {
|
|
35
40
|
operationError,
|
|
36
41
|
printOperationResult,
|
|
37
42
|
regenerateTypes
|
|
38
|
-
} from "./cli-
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
import "./cli-UQC46YSV.js";
|
|
44
|
-
import "./cli-6BLVI2JM.js";
|
|
45
|
-
import "./cli-UEQMK4WX.js";
|
|
46
|
-
import "./cli-JXQLHJO2.js";
|
|
43
|
+
} from "./cli-SO354HPI.js";
|
|
44
|
+
import "./cli-JTFLIMIG.js";
|
|
45
|
+
import "./cli-RMVJMOWU.js";
|
|
46
|
+
import "./cli-M3Z2KOEB.js";
|
|
47
|
+
import "./cli-HXT25ETJ.js";
|
|
47
48
|
import "./cli-25RWY5BQ.js";
|
|
48
|
-
import "./cli-QWQMPCL6.js";
|
|
49
49
|
import {
|
|
50
50
|
validateSDKSettings
|
|
51
|
-
} from "./cli-
|
|
52
|
-
import "./cli-
|
|
51
|
+
} from "./cli-RVZH462G.js";
|
|
52
|
+
import "./cli-QWQMPCL6.js";
|
|
53
|
+
import "./cli-2BKEIIA3.js";
|
|
53
54
|
import {
|
|
54
55
|
logger
|
|
55
|
-
} from "./cli-
|
|
56
|
+
} from "./cli-D5VOSJZ7.js";
|
|
56
57
|
import {
|
|
57
58
|
CliError
|
|
58
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-5PIFO3EN.js";
|
|
59
60
|
|
|
60
61
|
// cli/commands/resources/settings/update.ts
|
|
61
62
|
import { readFileSync } from "fs";
|
|
@@ -103,8 +104,9 @@ async function updateSettings(identifier, definitionInput, options) {
|
|
|
103
104
|
logger.info("No JSON definition provided. Starting interactive mode...\n");
|
|
104
105
|
const bundlePath = findBundleFile(options.workingDir, "settings", identifier);
|
|
105
106
|
if (!bundlePath) {
|
|
106
|
-
throw new CliError("RESOURCE_NOT_FOUND", `Settings "${identifier}" not found
|
|
107
|
-
|
|
107
|
+
throw new CliError("RESOURCE_NOT_FOUND", `Settings "${identifier}" not found`, {
|
|
108
|
+
hint: existingResourcesHint(options.workingDir, "settings")
|
|
109
|
+
});
|
|
108
110
|
}
|
|
109
111
|
let existingBundle;
|
|
110
112
|
try {
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
promptForSchemaProperties
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-WXGJFA4F.js";
|
|
5
|
+
import {
|
|
6
|
+
confirm,
|
|
7
|
+
input
|
|
8
|
+
} from "./cli-2W4B6PD5.js";
|
|
5
9
|
import {
|
|
6
10
|
readAuthoredBundle
|
|
7
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-MITZ6SE7.js";
|
|
8
12
|
import {
|
|
9
13
|
resolveInputSource
|
|
10
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-DWDSBTYL.js";
|
|
15
|
+
import {
|
|
16
|
+
loadPackageContext
|
|
17
|
+
} from "./cli-L6AHMW2Z.js";
|
|
11
18
|
import {
|
|
12
19
|
createEndpointFiles
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import "./cli-
|
|
20
|
+
} from "./cli-T76HDH7F.js";
|
|
21
|
+
import "./cli-KVQ2JPVD.js";
|
|
15
22
|
import "./cli-QUNIRH7A.js";
|
|
16
|
-
import "./cli-
|
|
17
|
-
import {
|
|
18
|
-
loadPackageContext
|
|
19
|
-
} from "./cli-O5WYATAI.js";
|
|
23
|
+
import "./cli-ARAAEWIQ.js";
|
|
20
24
|
import {
|
|
21
25
|
presentFields
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import "./cli-
|
|
26
|
+
} from "./cli-JC5OJRID.js";
|
|
27
|
+
import "./cli-DZCLRZXJ.js";
|
|
24
28
|
import {
|
|
25
29
|
operationError,
|
|
26
30
|
printOperationResult
|
|
27
|
-
} from "./cli-
|
|
28
|
-
import {
|
|
29
|
-
confirm,
|
|
30
|
-
input
|
|
31
|
-
} from "./cli-P3NUTOPK.js";
|
|
31
|
+
} from "./cli-SO354HPI.js";
|
|
32
32
|
import {
|
|
33
33
|
generateCommand
|
|
34
|
-
} from "./cli-
|
|
35
|
-
import "./cli-
|
|
36
|
-
import "./cli-
|
|
37
|
-
import "./cli-
|
|
34
|
+
} from "./cli-JTFLIMIG.js";
|
|
35
|
+
import "./cli-RMVJMOWU.js";
|
|
36
|
+
import "./cli-M3Z2KOEB.js";
|
|
37
|
+
import "./cli-HXT25ETJ.js";
|
|
38
38
|
import "./cli-25RWY5BQ.js";
|
|
39
|
-
import "./cli-QWQMPCL6.js";
|
|
40
39
|
import {
|
|
41
40
|
validateSDKEndpoint
|
|
42
|
-
} from "./cli-
|
|
43
|
-
import "./cli-
|
|
41
|
+
} from "./cli-RVZH462G.js";
|
|
42
|
+
import "./cli-QWQMPCL6.js";
|
|
43
|
+
import "./cli-2BKEIIA3.js";
|
|
44
44
|
import {
|
|
45
45
|
logger
|
|
46
|
-
} from "./cli-
|
|
47
|
-
import "./cli-
|
|
46
|
+
} from "./cli-D5VOSJZ7.js";
|
|
47
|
+
import "./cli-5PIFO3EN.js";
|
|
48
48
|
|
|
49
49
|
// cli/commands/resources/endpoint/new.ts
|
|
50
50
|
function emptyObjectSchema() {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
confirmAction
|
|
4
|
+
} from "./cli-2W4B6PD5.js";
|
|
5
|
+
import {
|
|
6
|
+
loadPackageContext
|
|
7
|
+
} from "./cli-L6AHMW2Z.js";
|
|
2
8
|
import {
|
|
3
9
|
deleteValidatorFiles,
|
|
4
10
|
findValidatorReferences
|
|
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-O5WYATAI.js";
|
|
12
|
-
import "./cli-5DWR7RPQ.js";
|
|
13
|
-
import "./cli-GRSQRFRG.js";
|
|
14
|
+
import "./cli-ARAAEWIQ.js";
|
|
15
|
+
import "./cli-JC5OJRID.js";
|
|
16
|
+
import "./cli-DZCLRZXJ.js";
|
|
14
17
|
import {
|
|
15
18
|
operationError,
|
|
16
19
|
recordOperationResult
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import {
|
|
19
|
-
confirmAction
|
|
20
|
-
} from "./cli-P3NUTOPK.js";
|
|
20
|
+
} from "./cli-SO354HPI.js";
|
|
21
21
|
import {
|
|
22
22
|
generateCommand
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import "./cli-
|
|
25
|
-
import "./cli-
|
|
26
|
-
import "./cli-
|
|
23
|
+
} from "./cli-JTFLIMIG.js";
|
|
24
|
+
import "./cli-RMVJMOWU.js";
|
|
25
|
+
import "./cli-M3Z2KOEB.js";
|
|
26
|
+
import "./cli-HXT25ETJ.js";
|
|
27
27
|
import "./cli-25RWY5BQ.js";
|
|
28
|
+
import "./cli-RVZH462G.js";
|
|
28
29
|
import "./cli-QWQMPCL6.js";
|
|
29
|
-
import "./cli-
|
|
30
|
-
import "./cli-F2D4GGUA.js";
|
|
30
|
+
import "./cli-2BKEIIA3.js";
|
|
31
31
|
import {
|
|
32
32
|
logger
|
|
33
|
-
} from "./cli-
|
|
34
|
-
import "./cli-
|
|
33
|
+
} from "./cli-D5VOSJZ7.js";
|
|
34
|
+
import "./cli-5PIFO3EN.js";
|
|
35
35
|
|
|
36
36
|
// cli/commands/resources/validator/delete.ts
|
|
37
37
|
async function deleteValidator(identifier, options) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
deleteResourceFiles,
|
|
5
5
|
findResourceReferences,
|
|
6
6
|
updateResourceFiles
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-JC5OJRID.js";
|
|
8
8
|
import {
|
|
9
9
|
getResourceMeta
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-RVZH462G.js";
|
|
11
11
|
|
|
12
12
|
// cli/templating/guide.ts
|
|
13
13
|
var guideMeta = getResourceMeta("guide");
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./cli-B5DWKRZ4.js";
|
|
3
|
+
confirmAction
|
|
4
|
+
} from "./cli-2W4B6PD5.js";
|
|
6
5
|
import {
|
|
7
6
|
loadPackageContext
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import
|
|
10
|
-
|
|
7
|
+
} from "./cli-L6AHMW2Z.js";
|
|
8
|
+
import {
|
|
9
|
+
deleteScenarioFiles,
|
|
10
|
+
findScenarioReferences
|
|
11
|
+
} from "./cli-ARAAEWIQ.js";
|
|
12
|
+
import "./cli-JC5OJRID.js";
|
|
13
|
+
import "./cli-DZCLRZXJ.js";
|
|
11
14
|
import {
|
|
12
15
|
operationError,
|
|
13
16
|
recordOperationResult
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-6BLVI2JM.js";
|
|
20
|
-
import "./cli-UEQMK4WX.js";
|
|
21
|
-
import "./cli-JXQLHJO2.js";
|
|
17
|
+
} from "./cli-SO354HPI.js";
|
|
18
|
+
import "./cli-JTFLIMIG.js";
|
|
19
|
+
import "./cli-RMVJMOWU.js";
|
|
20
|
+
import "./cli-M3Z2KOEB.js";
|
|
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-F2D4GGUA.js";
|
|
25
|
+
import "./cli-2BKEIIA3.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import "./cli-
|
|
28
|
+
} from "./cli-D5VOSJZ7.js";
|
|
29
|
+
import "./cli-5PIFO3EN.js";
|
|
30
30
|
|
|
31
31
|
// cli/commands/resources/scenario/delete.ts
|
|
32
32
|
async function deleteScenario(identifier, options) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadResourceIdentifiers
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-B5TC4MEL.js";
|
|
5
5
|
import {
|
|
6
6
|
checkbox
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-2W4B6PD5.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-D5VOSJZ7.js";
|
|
11
11
|
|
|
12
12
|
// cli/commands/resources/shared/settings-prompt.ts
|
|
13
13
|
async function promptForSettings(workingDir, resourceLabel, current = []) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runResourceCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-DAEPMK7A.js";
|
|
5
5
|
import {
|
|
6
6
|
RESOURCE_DESCRIPTORS_BY_TYPE,
|
|
7
7
|
supportedTypes
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import "./cli-
|
|
10
|
-
import "./cli-
|
|
11
|
-
import "./cli-
|
|
12
|
-
import "./cli-
|
|
13
|
-
import "./cli-
|
|
14
|
-
import "./cli-
|
|
8
|
+
} from "./cli-W4LMRVZT.js";
|
|
9
|
+
import "./cli-2W4B6PD5.js";
|
|
10
|
+
import "./cli-SO354HPI.js";
|
|
11
|
+
import "./cli-JTFLIMIG.js";
|
|
12
|
+
import "./cli-RMVJMOWU.js";
|
|
13
|
+
import "./cli-M3Z2KOEB.js";
|
|
14
|
+
import "./cli-HXT25ETJ.js";
|
|
15
15
|
import "./cli-25RWY5BQ.js";
|
|
16
|
+
import "./cli-RVZH462G.js";
|
|
16
17
|
import "./cli-QWQMPCL6.js";
|
|
17
|
-
import "./cli-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-TCQJL2GY.js";
|
|
18
|
+
import "./cli-2BKEIIA3.js";
|
|
19
|
+
import "./cli-D5VOSJZ7.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-5PIFO3EN.js";
|
|
23
23
|
|
|
24
24
|
// cli/commands/update.ts
|
|
25
25
|
async function updateCommand(resourceType, identifierOrDefinition, definition, options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-TIS7DWRR.js";
|
|
5
5
|
import {
|
|
6
6
|
emit,
|
|
7
7
|
participantsFromArgument,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
teamCountFromFlag,
|
|
12
12
|
teamIndexFromArgument,
|
|
13
13
|
tickReport
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-CW5MV4VX.js";
|
|
15
15
|
import {
|
|
16
16
|
applyJsonPatch
|
|
17
17
|
} from "./cli-S5IVGDDD.js";
|
|
18
18
|
import {
|
|
19
19
|
CliError
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-5PIFO3EN.js";
|
|
21
21
|
|
|
22
22
|
// cli/commands/tick.ts
|
|
23
23
|
import dotenv from "dotenv";
|
|
@@ -55,11 +55,16 @@ async function tickCommand(options) {
|
|
|
55
55
|
...teamIndex === void 0 ? {} : { teamIndex }
|
|
56
56
|
});
|
|
57
57
|
raiseIfRefused(result);
|
|
58
|
+
const warnings = "ok" in result && result.ok ? result.warnings ?? [] : [];
|
|
59
|
+
for (const warning of warnings) console.error(`Warning: ${warning}`);
|
|
58
60
|
state = await session.state();
|
|
59
61
|
if (state.session.complete) {
|
|
60
62
|
console.error("Game complete after this tick \u2014 no further ticks will be allowed");
|
|
61
63
|
}
|
|
62
|
-
emit(
|
|
64
|
+
emit({
|
|
65
|
+
...options.summary ? sessionSummary(state) : tickReport(state),
|
|
66
|
+
...warnings.length > 0 ? { warnings } : {}
|
|
67
|
+
});
|
|
63
68
|
} finally {
|
|
64
69
|
await session.close();
|
|
65
70
|
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
promptForSchemaProperties
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-WXGJFA4F.js";
|
|
5
|
+
import {
|
|
6
|
+
input
|
|
7
|
+
} from "./cli-2W4B6PD5.js";
|
|
5
8
|
import {
|
|
6
9
|
readAuthoredBundle
|
|
7
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-MITZ6SE7.js";
|
|
8
11
|
import {
|
|
9
12
|
resolveInputSource
|
|
10
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-DWDSBTYL.js";
|
|
14
|
+
import {
|
|
15
|
+
loadPackageContext
|
|
16
|
+
} from "./cli-L6AHMW2Z.js";
|
|
11
17
|
import {
|
|
12
18
|
createCapabilityFiles
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import "./cli-
|
|
19
|
+
} from "./cli-T76HDH7F.js";
|
|
20
|
+
import "./cli-KVQ2JPVD.js";
|
|
15
21
|
import "./cli-QUNIRH7A.js";
|
|
16
|
-
import "./cli-
|
|
17
|
-
import {
|
|
18
|
-
loadPackageContext
|
|
19
|
-
} from "./cli-O5WYATAI.js";
|
|
22
|
+
import "./cli-ARAAEWIQ.js";
|
|
20
23
|
import {
|
|
21
24
|
presentFields
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import "./cli-
|
|
25
|
+
} from "./cli-JC5OJRID.js";
|
|
26
|
+
import "./cli-DZCLRZXJ.js";
|
|
24
27
|
import {
|
|
25
28
|
BUILD_COMMAND,
|
|
26
29
|
generateTypes,
|
|
27
30
|
operationError,
|
|
28
31
|
printOperationResult
|
|
29
|
-
} from "./cli-
|
|
30
|
-
import
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
import "./cli-
|
|
34
|
-
import "./cli-6BLVI2JM.js";
|
|
35
|
-
import "./cli-UEQMK4WX.js";
|
|
36
|
-
import "./cli-JXQLHJO2.js";
|
|
32
|
+
} from "./cli-SO354HPI.js";
|
|
33
|
+
import "./cli-JTFLIMIG.js";
|
|
34
|
+
import "./cli-RMVJMOWU.js";
|
|
35
|
+
import "./cli-M3Z2KOEB.js";
|
|
36
|
+
import "./cli-HXT25ETJ.js";
|
|
37
37
|
import "./cli-25RWY5BQ.js";
|
|
38
|
-
import "./cli-QWQMPCL6.js";
|
|
39
38
|
import {
|
|
40
39
|
validateSDKCapability
|
|
41
|
-
} from "./cli-
|
|
42
|
-
import "./cli-
|
|
40
|
+
} from "./cli-RVZH462G.js";
|
|
41
|
+
import "./cli-QWQMPCL6.js";
|
|
42
|
+
import "./cli-2BKEIIA3.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-D5VOSJZ7.js";
|
|
46
46
|
import {
|
|
47
47
|
CliError
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-5PIFO3EN.js";
|
|
49
49
|
|
|
50
50
|
// cli/commands/resources/capability/new.ts
|
|
51
51
|
var CAPABILITY_SCOPES = Object.keys({
|
|
@@ -165,6 +165,14 @@ var ERROR_CODES = {
|
|
|
165
165
|
category: "package",
|
|
166
166
|
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."
|
|
167
167
|
},
|
|
168
|
+
BENCHMARK_UNWRITTEN: {
|
|
169
|
+
category: "package",
|
|
170
|
+
description: "A benchmark is not in the engine's `benchmarks`, so nothing writes it and it never holds a value. A warning."
|
|
171
|
+
},
|
|
172
|
+
ASSESSMENT_UNWRITTEN: {
|
|
173
|
+
category: "package",
|
|
174
|
+
description: "An assessment is not in the engine's `assessments`, so nothing scores it and it never holds a result. A warning."
|
|
175
|
+
},
|
|
168
176
|
REFERENCE_UNKNOWN: {
|
|
169
177
|
category: "package",
|
|
170
178
|
description: "A `reads`, `writes`, `settings`, `configures` or `endpoints` entry names something the package does not declare."
|
|
@@ -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
|
deleteUserInterfaceFiles,
|
|
4
10
|
findUserInterfaceReferences
|
|
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-O5WYATAI.js";
|
|
12
|
-
import "./cli-5DWR7RPQ.js";
|
|
13
|
-
import "./cli-GRSQRFRG.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/ui/delete.ts
|
|
36
36
|
async function deleteUserInterface(options) {
|