@seriousgaming/sdk-tools 1.7.0 → 1.8.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 +1 -0
- package/dist/{cli-ZTZ5H55T.js → cli-27M4PX7O.js} +17 -17
- package/dist/{cli-2BH7FX27.js → cli-2FXZZLCL.js} +1 -1
- package/dist/{cli-HHPMAV4F.js → cli-2KDV2DYC.js} +3 -3
- package/dist/{cli-57V4ARER.js → cli-2QM63J3I.js} +1 -1
- package/dist/{cli-TFMNNVJ7.js → cli-32NRB2IT.js} +15 -15
- package/dist/{cli-JPAXKLVT.js → cli-3HBYH4VF.js} +11 -11
- package/dist/{cli-JR5AZLLK.js → cli-3HPAKEJJ.js} +2 -2
- package/dist/{cli-3PIJLSRQ.js → cli-3HZGJRQW.js} +11 -11
- package/dist/{cli-BOXXMDSX.js → cli-3OCKRPXI.js} +18 -18
- package/dist/{cli-4CHKF4DQ.js → cli-3OVXQJEW.js} +2 -2
- package/dist/{cli-4UWFQNGF.js → cli-3VV2JLHX.js} +1 -1
- package/dist/{cli-EJVAQCMQ.js → cli-42ZUP4X3.js} +114 -5
- package/dist/{cli-CV4JGVJR.js → cli-4B5OBHSY.js} +19 -19
- package/dist/{cli-2DQJACAH.js → cli-4EMNCU63.js} +17 -17
- package/dist/cli-5CG6BMCY.js +36 -0
- package/dist/{cli-VYR326C6.js → cli-5FRKWNVP.js} +19 -19
- package/dist/{cli-TDYKRXUA.js → cli-5P66N5G6.js} +17 -17
- package/dist/{cli-ZRPWZOCW.js → cli-5SYPXJCB.js} +20 -16
- package/dist/{cli-TJ3PLRHF.js → cli-66AHBZRZ.js} +15 -15
- package/dist/{cli-M7WEAIRF.js → cli-6AGWTGTO.js} +106 -28
- package/dist/{cli-WG36UJRK.js → cli-6BAZE75K.js} +18 -18
- package/dist/{cli-VPON5HGB.js → cli-6FVHRL3H.js} +19 -19
- package/dist/{cli-QVASWX2A.js → cli-6GDPO5VU.js} +2 -2
- package/dist/{cli-TPNQLYPC.js → cli-6NBER36P.js} +1 -1
- package/dist/{cli-LQ4VSM5R.js → cli-726NJARI.js} +0 -0
- package/dist/{cli-GHLILDH7.js → cli-72DRYVTT.js} +13 -13
- package/dist/{cli-MMN4BPO4.js → cli-7CW2BBJG.js} +1 -1
- package/dist/{cli-FP32D3T6.js → cli-7GJGFILU.js} +15 -15
- package/dist/{cli-HYEU3QS6.js → cli-7NCVUM5U.js} +3 -3
- package/dist/cli-7S4G4EKK.js +110 -0
- package/dist/{cli-J4DKUUTK.js → cli-7V6GUIIS.js} +2 -2
- package/dist/{cli-N6H6T2E2.js → cli-AEAFLZGY.js} +12 -0
- package/dist/{cli-C47GJATR.js → cli-AGYCXRPR.js} +3 -3
- package/dist/{cli-XSVGKI3R.js → cli-BC4KKNLA.js} +1 -1
- package/dist/cli-BQ3FHENQ.js +16 -0
- package/dist/{cli-CXCL7VRK.js → cli-BXCCODYD.js} +20 -20
- package/dist/cli-C2XDL4LD.js +30 -0
- package/dist/{cli-MJUYJIEP.js → cli-C45A5VX6.js} +3 -3
- package/dist/{cli-64AA7367.js → cli-C7YZNPWX.js} +11 -11
- package/dist/{cli-ZKG3OPZ6.js → cli-CAX4CQTC.js} +13 -13
- package/dist/{cli-YOTGR3NB.js → cli-CVOLMK3Z.js} +1 -1
- package/dist/{cli-PKQNOGBO.js → cli-D3CZRXVJ.js} +63 -17
- package/dist/{cli-4YB3ROVR.js → cli-DMKRP33X.js} +1 -1
- package/dist/{cli-FZ7QAZZP.js → cli-DPFN2LIZ.js} +15 -15
- package/dist/{cli-7TOLC62D.js → cli-DT756M3Z.js} +20 -20
- package/dist/{cli-TIDQ4WUE.js → cli-DXHPYN4N.js} +1 -1
- package/dist/{cli-OANH3BTQ.js → cli-E665NKUQ.js} +5 -5
- package/dist/{cli-DEBCP7UH.js → cli-EK7CGMGS.js} +17 -17
- package/dist/{cli-PIO7NWMH.js → cli-ESU3J563.js} +15 -15
- package/dist/{cli-6HB6HTC6.js → cli-F47ELAXM.js} +47 -47
- package/dist/{cli-JIZTQVL2.js → cli-FH4WBZHA.js} +14 -14
- package/dist/{cli-JRMHSMYT.js → cli-FHKRO6OU.js} +19 -19
- package/dist/{cli-ESA6YNPF.js → cli-FSEDPZR5.js} +19 -19
- package/dist/{cli-G5DQGZ2E.js → cli-FV45UZQP.js} +19 -19
- package/dist/{cli-XR2XSWQN.js → cli-G7FX7ZIU.js} +12 -12
- package/dist/{cli-X7E3637I.js → cli-GFONBOJT.js} +50 -26
- package/dist/{cli-C5QOJJWX.js → cli-GHIMH6JU.js} +1 -1
- package/dist/{cli-T4HWGMY4.js → cli-HC7L5DXV.js} +15 -15
- package/dist/{cli-WU43JT4T.js → cli-HJPNNORV.js} +2 -2
- package/dist/{cli-SOMIB4B4.js → cli-HMEZHQBC.js} +17 -17
- package/dist/{cli-TFZ53OA2.js → cli-HQUVSAHY.js} +18 -18
- package/dist/{cli-MYJGMA6U.js → cli-IC5FOT2J.js} +1 -1
- package/dist/{cli-VL2P354N.js → cli-IVZ7AHUJ.js} +3 -3
- package/dist/{cli-B6YHEKIJ.js → cli-J2OTL6JH.js} +5 -5
- package/dist/{cli-NEOLMC2P.js → cli-JA6UFTSX.js} +17 -17
- package/dist/{cli-Z5HWENER.js → cli-JOXCAGM7.js} +19 -19
- package/dist/{cli-NOQBWJQN.js → cli-JQ6I5GGE.js} +3 -3
- package/dist/{cli-TDSQSCX4.js → cli-K6M6YB67.js} +1 -1
- package/dist/{cli-MYJGGLC5.js → cli-KFVA7DT3.js} +3 -3
- package/dist/{cli-DHOWZCXT.js → cli-KH6FKM5A.js} +15 -15
- package/dist/{cli-4VZIJYKU.js → cli-KMT235FV.js} +2 -2
- package/dist/{cli-6ZSMW4HR.js → cli-KU4PG7ZA.js} +15 -15
- package/dist/{cli-ATI6OLJU.js → cli-L4DEEAMK.js} +17 -17
- package/dist/{cli-EDCAH2TC.js → cli-ME3JKMJL.js} +19 -19
- package/dist/{cli-R7RG2VMW.js → cli-MJ65PIYI.js} +15 -15
- package/dist/cli-MM2ROZWO.js +36 -0
- package/dist/{cli-RZITKPJX.js → cli-MN7X4UG2.js} +1 -1
- package/dist/{cli-LE5ICDAF.js → cli-MPU4FLA7.js} +4 -4
- package/dist/{cli-HCRTYQQS.js → cli-MPWTXNF6.js} +2 -2
- package/dist/{cli-NPPY557S.js → cli-N5K2KHPR.js} +15 -15
- package/dist/{cli-PVA52RC2.js → cli-NGOQWOQE.js} +15 -15
- package/dist/{cli-ZTWOE3ZT.js → cli-NU4SCD5D.js} +1 -1
- package/dist/{cli-UTM4QU67.js → cli-O3IMNLN2.js} +282 -96
- package/dist/{cli-MM3A4SPH.js → cli-OUFXSQOW.js} +7265 -4467
- package/dist/{cli-UBQCSUDH.js → cli-PEY6XZDE.js} +16 -16
- package/dist/{cli-HM7CD4VU.js → cli-PLW3TWJ7.js} +19 -19
- package/dist/{cli-LRQDF3ZO.js → cli-PO2ALWHP.js} +13 -13
- package/dist/{cli-IPP5FDCH.js → cli-PPEB3ENS.js} +18 -18
- package/dist/{cli-C3OERMIR.js → cli-PZ7G544B.js} +3 -3
- package/dist/{cli-GPAN6XK2.js → cli-Q5BKFFDL.js} +4 -4
- package/dist/{cli-MULKSLA4.js → cli-QAI6T5FL.js} +15 -15
- package/dist/{cli-JGFJWZFU.js → cli-QAVLRCQ5.js} +3 -3
- package/dist/{cli-OQG3Y4RU.js → cli-QDIH2G2P.js} +15 -15
- package/dist/cli-SN7D7HTX.js +36 -0
- package/dist/{cli-SWZY7L7K.js → cli-SOQJHK4Q.js} +6 -6
- package/dist/{cli-7RYIEKMB.js → cli-SPKPDXWD.js} +15 -15
- package/dist/{cli-WAZD75KE.js → cli-SWUAXVIJ.js} +15 -15
- package/dist/cli-TJNLXQJ5.js +36 -0
- package/dist/{cli-SX3ULO5P.js → cli-U2EWI6H5.js} +11 -11
- package/dist/{cli-FXY3DKPW.js → cli-UADUC4JD.js} +2 -2
- package/dist/{cli-FWFRKQNE.js → cli-UR63LFVK.js} +2 -2
- package/dist/{cli-YSPZZQCP.js → cli-UTHPCZYL.js} +2 -2
- package/dist/{cli-XTANOFQR.js → cli-UYV3BDPA.js} +3 -3
- package/dist/{cli-H3J3ICCQ.js → cli-UZCQL6YP.js} +3 -3
- package/dist/{cli-LQERHJFE.js → cli-V5K3CCYZ.js} +2 -2
- package/dist/cli-V7L3HEL4.js +36 -0
- package/dist/{cli-GEQUJF4L.js → cli-VBSF3R3L.js} +16 -16
- package/dist/{cli-FXWWYBYU.js → cli-VQ4OJ4KE.js} +18 -18
- package/dist/{cli-IUS2YCD3.js → cli-VTLFQHDO.js} +1 -1
- package/dist/{cli-SOFCTQAL.js → cli-W7XCTGQ7.js} +15 -15
- package/dist/{cli-GTWEGYSU.js → cli-W7Y7X3FX.js} +19 -19
- package/dist/cli-WWNTBK37.js +1973 -0
- package/dist/cli-XPJGW375.js +36 -0
- package/dist/{cli-SRHBXZCN.js → cli-Y33ULHYO.js} +1 -1
- package/dist/{cli-ZQ2Y3U7F.js → cli-YLYB4ITF.js} +13 -13
- package/dist/{cli-4XCQUM3E.js → cli-ZFY6TGU7.js} +4 -4
- package/dist/{cli-JRIIAZ33.js → cli-ZSKP2IRP.js} +53 -38
- package/dist/cli.js +52 -52
- package/dist/client.js +17518 -16558
- package/dist/core/save-scenario.d.ts +1 -0
- package/dist/core/session-start-gate.d.ts +25 -0
- package/dist/core/session.d.ts +4 -0
- package/dist/dev/console/assets/{index-CnXlPeLX.js → index-CVNjiRUh.js} +31 -27
- package/dist/dev/console/index.html +1 -1
- package/dist/docs/api/deck.md +1 -1
- package/dist/docs/api/index.md +1 -1
- package/dist/docs/api/sdk-e2e.md +7 -6
- package/dist/docs/api/sdk-projection.md +1 -0
- package/dist/docs/api/sdk-tools-client.md +3 -1
- package/dist/docs/api/sdk-tools-playwright.md +1 -8
- package/dist/docs/api/sdk-ui.md +40 -64
- package/dist/docs/api/sdk.md +10 -1
- package/dist/docs/changelog.md +15 -0
- package/dist/docs/cli-error-codes.md +7 -1
- package/dist/docs/cli-reference.md +3 -0
- package/dist/docs/concepts/index.md +1 -0
- package/dist/docs/guides/engine.md +5 -0
- package/dist/docs/guides/file-handling.md +4 -1
- package/dist/docs/guides/llm-integration.md +3 -2
- package/dist/docs/guides/multi-team-games.md +2 -0
- package/dist/docs/guides/patterns.md +5 -0
- package/dist/docs/guides/session.md +1 -1
- package/dist/docs/guides/settings.md +2 -0
- package/dist/docs/guides/setup.md +23 -2
- package/dist/docs/guides/speech-generation.md +1 -0
- package/dist/docs/guides/testing.md +2 -0
- package/dist/docs/guides/tick-controller.md +2 -0
- package/dist/docs/guides/type-safety.md +2 -1
- package/dist/docs/guides/ui-files-and-llms.md +3 -1
- package/dist/docs/guides/upgrading.md +4 -0
- package/dist/docs/guides/validators.md +27 -4
- package/dist/docs/guides/waiting-room.md +2 -0
- package/dist/docs/page-index.md +8 -6
- package/dist/docs/recipes/call-endpoint-from-ui.md +1 -0
- package/dist/docs/recipes/create-scenario-editor.md +2 -1
- package/dist/docs/recipes/create-setup.md +2 -1
- package/dist/docs/recipes/declare-api-uses.md +1 -0
- package/dist/docs/recipes/describe-setup-with-endpoint.md +69 -0
- package/dist/docs/recipes/index.md +3 -1
- package/dist/docs/recipes/share-logic-between-engine-and-ui.md +2 -2
- package/dist/docs/recipes/test-user-interface.md +1 -1
- package/dist/docs/recipes/validate-scenarios.md +9 -3
- package/dist/docs/recipes/write-setup-notes.md +58 -0
- package/dist/docs/troubleshooting.md +2 -1
- package/dist/execution/executor.d.ts +12 -0
- package/dist/execution/scenario-gates.d.ts +40 -0
- package/dist/host.js +1082 -467
- package/dist/playwright.js +17529 -16569
- package/dist/runtime/manifest-version.d.ts +1 -1
- package/dist/runtime.js +4 -2
- package/dist/setup/setup-notes.d.ts +42 -0
- package/dist/templates/package/package.json.liquid +15 -15
- package/dist/templates/starter-game/package.json +13 -13
- package/dist/utils/error-codes.d.ts +13 -1
- package/dist/validation/package-validation.d.ts +1 -1
- package/package.json +22 -23
- package/dist/cli-57C72YKJ.js +0 -36
- package/dist/cli-5G7TZHD3.js +0 -36
- package/dist/cli-7MBLH4M3.js +0 -36
- package/dist/cli-C6G65H6S.js +0 -256
- package/dist/cli-L5IG7MY2.js +0 -36
- package/dist/cli-SPGUVL6Z.js +0 -36
- package/dist/cli-UY4VDI7W.js +0 -30
- package/dist/cli-WM6SQJ6Q.js +0 -16
- package/dist/cli-ZBTFLZUL.js +0 -36
- package/dist/cli-ZF7IFB54.js +0 -4026
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
assertEveryPropertyHasDefault
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-3OVXQJEW.js";
|
|
5
5
|
import {
|
|
6
6
|
promptForSchemaProperties
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-MN7X4UG2.js";
|
|
8
8
|
import {
|
|
9
9
|
readAuthoredBundle
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-3HPAKEJJ.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveInputSource
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-3VV2JLHX.js";
|
|
14
14
|
import {
|
|
15
15
|
createSettingsFiles
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import "./cli-
|
|
16
|
+
} from "./cli-MPU4FLA7.js";
|
|
17
|
+
import "./cli-VTLFQHDO.js";
|
|
18
18
|
import "./cli-QUNIRH7A.js";
|
|
19
|
-
import "./cli-
|
|
19
|
+
import "./cli-UTHPCZYL.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPackageContext
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import "./cli-
|
|
24
|
-
import "./cli-
|
|
22
|
+
} from "./cli-BC4KKNLA.js";
|
|
23
|
+
import "./cli-UADUC4JD.js";
|
|
24
|
+
import "./cli-2QM63J3I.js";
|
|
25
25
|
import {
|
|
26
26
|
BUILD_COMMAND,
|
|
27
27
|
generateTypes,
|
|
28
28
|
operationError,
|
|
29
29
|
printOperationResult
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-QAVLRCQ5.js";
|
|
31
31
|
import {
|
|
32
32
|
input
|
|
33
|
-
} from "./cli-
|
|
34
|
-
import "./cli-
|
|
35
|
-
import "./cli-
|
|
36
|
-
import "./cli-
|
|
37
|
-
import "./cli-
|
|
33
|
+
} from "./cli-NU4SCD5D.js";
|
|
34
|
+
import "./cli-UZCQL6YP.js";
|
|
35
|
+
import "./cli-SOQJHK4Q.js";
|
|
36
|
+
import "./cli-7S4G4EKK.js";
|
|
37
|
+
import "./cli-O3IMNLN2.js";
|
|
38
38
|
import "./cli-25RWY5BQ.js";
|
|
39
39
|
import "./cli-QWQMPCL6.js";
|
|
40
40
|
import {
|
|
41
41
|
GAME_SETTINGS,
|
|
42
42
|
validateSDKSettings
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-OUFXSQOW.js";
|
|
44
44
|
import "./cli-F2D4GGUA.js";
|
|
45
45
|
import {
|
|
46
46
|
logger
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-DMKRP33X.js";
|
|
48
48
|
import {
|
|
49
49
|
CliError
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-AEAFLZGY.js";
|
|
51
51
|
|
|
52
52
|
// cli/commands/resources/settings/new.ts
|
|
53
53
|
async function createSettings(definitionInput, options) {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./cli-ILKCQNM6.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-DMKRP33X.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
reportResult
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-AEAFLZGY.js";
|
|
12
12
|
|
|
13
13
|
// cli/commands/package-version.ts
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
Binary file
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteScenarioFiles,
|
|
4
4
|
findScenarioReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-UTHPCZYL.js";
|
|
6
6
|
import {
|
|
7
7
|
loadPackageContext
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import "./cli-
|
|
10
|
-
import "./cli-
|
|
8
|
+
} from "./cli-BC4KKNLA.js";
|
|
9
|
+
import "./cli-UADUC4JD.js";
|
|
10
|
+
import "./cli-2QM63J3I.js";
|
|
11
11
|
import {
|
|
12
12
|
operationError,
|
|
13
13
|
recordOperationResult
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-QAVLRCQ5.js";
|
|
15
15
|
import {
|
|
16
16
|
confirmAction
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-
|
|
20
|
-
import "./cli-
|
|
21
|
-
import "./cli-
|
|
17
|
+
} from "./cli-NU4SCD5D.js";
|
|
18
|
+
import "./cli-UZCQL6YP.js";
|
|
19
|
+
import "./cli-SOQJHK4Q.js";
|
|
20
|
+
import "./cli-7S4G4EKK.js";
|
|
21
|
+
import "./cli-O3IMNLN2.js";
|
|
22
22
|
import "./cli-25RWY5BQ.js";
|
|
23
23
|
import "./cli-QWQMPCL6.js";
|
|
24
|
-
import "./cli-
|
|
24
|
+
import "./cli-OUFXSQOW.js";
|
|
25
25
|
import "./cli-F2D4GGUA.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import "./cli-
|
|
28
|
+
} from "./cli-DMKRP33X.js";
|
|
29
|
+
import "./cli-AEAFLZGY.js";
|
|
30
30
|
|
|
31
31
|
// cli/commands/resources/scenario/delete.ts
|
|
32
32
|
async function deleteScenario(identifier, options) {
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readAuthoredBundle
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-3HPAKEJJ.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveInputSource
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-3VV2JLHX.js";
|
|
8
8
|
import {
|
|
9
9
|
createScenarioFiles
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-UTHPCZYL.js";
|
|
11
11
|
import {
|
|
12
12
|
loadPackageContext
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import "./cli-
|
|
15
|
-
import "./cli-
|
|
13
|
+
} from "./cli-BC4KKNLA.js";
|
|
14
|
+
import "./cli-UADUC4JD.js";
|
|
15
|
+
import "./cli-2QM63J3I.js";
|
|
16
16
|
import {
|
|
17
17
|
operationError,
|
|
18
18
|
printOperationResult
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-QAVLRCQ5.js";
|
|
20
20
|
import {
|
|
21
21
|
input
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import "./cli-
|
|
24
|
-
import "./cli-
|
|
25
|
-
import "./cli-
|
|
26
|
-
import "./cli-
|
|
22
|
+
} from "./cli-NU4SCD5D.js";
|
|
23
|
+
import "./cli-UZCQL6YP.js";
|
|
24
|
+
import "./cli-SOQJHK4Q.js";
|
|
25
|
+
import "./cli-7S4G4EKK.js";
|
|
26
|
+
import "./cli-O3IMNLN2.js";
|
|
27
27
|
import "./cli-25RWY5BQ.js";
|
|
28
28
|
import "./cli-QWQMPCL6.js";
|
|
29
29
|
import {
|
|
30
30
|
validateSDKScenario
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-OUFXSQOW.js";
|
|
32
32
|
import "./cli-F2D4GGUA.js";
|
|
33
33
|
import {
|
|
34
34
|
logger
|
|
35
|
-
} from "./cli-
|
|
36
|
-
import "./cli-
|
|
35
|
+
} from "./cli-DMKRP33X.js";
|
|
36
|
+
import "./cli-AEAFLZGY.js";
|
|
37
37
|
|
|
38
38
|
// cli/commands/resources/scenario/new.ts
|
|
39
39
|
async function createScenario(definitionInput, options) {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
beginOperationCapture,
|
|
4
4
|
endOperationCapture
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-QAVLRCQ5.js";
|
|
6
6
|
import {
|
|
7
7
|
setPromptUsage
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-NU4SCD5D.js";
|
|
9
9
|
import {
|
|
10
10
|
reportResult
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-AEAFLZGY.js";
|
|
12
12
|
|
|
13
13
|
// cli/commands/resources/shared/resource-command.ts
|
|
14
14
|
import { isAbsolute, relative, resolve, sep } from "path";
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
getPluralResourceMeta
|
|
4
|
+
} from "./cli-OUFXSQOW.js";
|
|
5
|
+
|
|
6
|
+
// cli/generation/ts-type.ts
|
|
7
|
+
import { existsSync, readFileSync, statSync } from "fs";
|
|
8
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
9
|
+
var RELATIVE_IMPORT = /import\((['"])(\.{1,2}\/[^'"]+)\1\)/g;
|
|
10
|
+
var ABSOLUTE_IMPORT = /import\((['"])(\/[^'"]+|[A-Za-z]:[\\/][^'"]+)\1\)/g;
|
|
11
|
+
var NAMED_IMPORT = /import\((['"])([^'"]+)\1\)\.([A-Za-z_$][\w$]*)/g;
|
|
12
|
+
var MODULE_EXTENSIONS = [".ts", ".tsx", ".d.ts", "/index.ts", "/index.tsx"];
|
|
13
|
+
function capabilityDirectory(workingDir, identifier) {
|
|
14
|
+
return join(workingDir, getPluralResourceMeta("capability").pluralDir, identifier);
|
|
15
|
+
}
|
|
16
|
+
function mapTsTypes(schema, rewrite) {
|
|
17
|
+
if (Array.isArray(schema)) return schema.map((item) => mapTsTypes(item, rewrite));
|
|
18
|
+
if (schema === null || typeof schema !== "object") return schema;
|
|
19
|
+
return Object.fromEntries(
|
|
20
|
+
Object.entries(schema).map(([key, value]) => [
|
|
21
|
+
key,
|
|
22
|
+
key === "tsType" && typeof value === "string" ? rewrite(value) : mapTsTypes(value, rewrite)
|
|
23
|
+
])
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function collectTsTypes(schema, into = []) {
|
|
27
|
+
if (Array.isArray(schema)) {
|
|
28
|
+
for (const item of schema) collectTsTypes(item, into);
|
|
29
|
+
} else if (schema !== null && typeof schema === "object") {
|
|
30
|
+
for (const [key, value] of Object.entries(schema)) {
|
|
31
|
+
if (key === "tsType" && typeof value === "string") into.push(value);
|
|
32
|
+
else collectTsTypes(value, into);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return into;
|
|
36
|
+
}
|
|
37
|
+
function absolutiseTsTypes(capabilities, workingDir) {
|
|
38
|
+
return capabilities.map((capability) => {
|
|
39
|
+
const schema = capability.definition.variablesSchema;
|
|
40
|
+
if (collectTsTypes(schema).length === 0) return capability;
|
|
41
|
+
const base = capabilityDirectory(workingDir, capability.definition.identifier);
|
|
42
|
+
return {
|
|
43
|
+
...capability,
|
|
44
|
+
definition: {
|
|
45
|
+
...capability.definition,
|
|
46
|
+
variablesSchema: mapTsTypes(
|
|
47
|
+
schema,
|
|
48
|
+
(tsType) => tsType.replace(
|
|
49
|
+
RELATIVE_IMPORT,
|
|
50
|
+
(_match, quote, path) => `import(${quote}${resolve(base, path)}${quote})`
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function relativiseTsTypes(schema, outputPath) {
|
|
58
|
+
const from = dirname(outputPath);
|
|
59
|
+
return mapTsTypes(
|
|
60
|
+
schema,
|
|
61
|
+
(tsType) => tsType.replace(ABSOLUTE_IMPORT, (_match, quote, path) => {
|
|
62
|
+
let rel = relative(from, path).split(sep).join("/");
|
|
63
|
+
if (!rel.startsWith(".")) rel = `./${rel}`;
|
|
64
|
+
return `import(${quote}${rel}${quote})`;
|
|
65
|
+
})
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function validateTsTypes(capabilities, workingDir) {
|
|
69
|
+
const errors = [];
|
|
70
|
+
for (const capability of capabilities) {
|
|
71
|
+
const { identifier } = capability.definition;
|
|
72
|
+
const base = capabilityDirectory(workingDir, identifier);
|
|
73
|
+
for (const tsType of collectTsTypes(capability.definition.variablesSchema)) {
|
|
74
|
+
for (const match of tsType.matchAll(NAMED_IMPORT)) {
|
|
75
|
+
const [, , specifier, name] = match;
|
|
76
|
+
if (!specifier.startsWith(".") && !isAbsolute(specifier)) continue;
|
|
77
|
+
const target = resolve(base, specifier);
|
|
78
|
+
const file = [target, ...MODULE_EXTENSIONS.map((ext) => `${target}${ext}`)].find(
|
|
79
|
+
(candidate) => existsSync(candidate) && statSync(candidate).isFile()
|
|
80
|
+
);
|
|
81
|
+
if (!file) {
|
|
82
|
+
errors.push(
|
|
83
|
+
`Capability "${identifier}" has tsType "${tsType}", but "${specifier}" resolves to no module from ${relative(workingDir, base) || "."}. A tsType path is relative to the capability's own directory.`
|
|
84
|
+
);
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (!exportsName(readFileSync(file, "utf-8"), name)) {
|
|
88
|
+
errors.push(
|
|
89
|
+
`Capability "${identifier}" has tsType "${tsType}", but ${relative(workingDir, file)} does not export "${name}".`
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return errors;
|
|
96
|
+
}
|
|
97
|
+
function exportsName(source, name) {
|
|
98
|
+
const escaped = name.replace(/[$]/g, "\\$");
|
|
99
|
+
const declared = new RegExp(
|
|
100
|
+
`export\\s+(?:declare\\s+)?(?:interface|type|class|enum|const|let|var|function|abstract\\s+class)\\s+${escaped}\\b`
|
|
101
|
+
);
|
|
102
|
+
const listed = new RegExp(`export\\s+(?:type\\s+)?\\{[^}]*\\b${escaped}\\b[^}]*\\}`);
|
|
103
|
+
return declared.test(source) || listed.test(source) || /export\s+\*\s+from/.test(source);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
absolutiseTsTypes,
|
|
108
|
+
relativiseTsTypes,
|
|
109
|
+
validateTsTypes
|
|
110
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
logger
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-DMKRP33X.js";
|
|
5
5
|
import {
|
|
6
6
|
CliError,
|
|
7
7
|
reportResult
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-AEAFLZGY.js";
|
|
9
9
|
|
|
10
10
|
// cli/commands/package-bundle.ts
|
|
11
11
|
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
|
@@ -217,6 +217,18 @@ var ERROR_CODES = {
|
|
|
217
217
|
category: "package",
|
|
218
218
|
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."
|
|
219
219
|
},
|
|
220
|
+
SCENARIO_WARNING: {
|
|
221
|
+
category: "package",
|
|
222
|
+
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."
|
|
223
|
+
},
|
|
224
|
+
SETUP_NOTES_UNCONFIGURED: {
|
|
225
|
+
category: "package",
|
|
226
|
+
description: "A warning: the setup notes name a setting the setup UI does not `configures`, so a host refuses the change they describe."
|
|
227
|
+
},
|
|
228
|
+
SETTINGS_UNGATED: {
|
|
229
|
+
category: "package",
|
|
230
|
+
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."
|
|
231
|
+
},
|
|
220
232
|
EDITOR_ENDPOINT_NOT_SCENARIO: {
|
|
221
233
|
category: "package",
|
|
222
234
|
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.'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
stopLockedServer
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-HJPNNORV.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectLockFile,
|
|
7
7
|
readLockFile,
|
|
8
8
|
removeLockFile
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-Y33ULHYO.js";
|
|
10
10
|
import {
|
|
11
11
|
reportResult
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-AEAFLZGY.js";
|
|
13
13
|
|
|
14
14
|
// cli/commands/dev-control.ts
|
|
15
15
|
async function devStatusCommand(options) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
generateCommand
|
|
4
|
+
} from "./cli-UZCQL6YP.js";
|
|
5
|
+
import "./cli-SOQJHK4Q.js";
|
|
6
|
+
import "./cli-7S4G4EKK.js";
|
|
7
|
+
import "./cli-O3IMNLN2.js";
|
|
8
|
+
import "./cli-25RWY5BQ.js";
|
|
9
|
+
import "./cli-QWQMPCL6.js";
|
|
10
|
+
import "./cli-OUFXSQOW.js";
|
|
11
|
+
import "./cli-F2D4GGUA.js";
|
|
12
|
+
import "./cli-DMKRP33X.js";
|
|
13
|
+
import "./cli-AEAFLZGY.js";
|
|
14
|
+
export {
|
|
15
|
+
generateCommand
|
|
16
|
+
};
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
assertEveryPropertyHasDefault
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-3OVXQJEW.js";
|
|
5
5
|
import {
|
|
6
6
|
reviewSchemaProperties
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-MN7X4UG2.js";
|
|
8
8
|
import {
|
|
9
9
|
resolvePatchedDefinition
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-KMT235FV.js";
|
|
11
11
|
import "./cli-S5IVGDDD.js";
|
|
12
12
|
import {
|
|
13
13
|
getResourceIdentifierError,
|
|
14
14
|
readAuthoredBundle
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-3HPAKEJJ.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveInputSource
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-3VV2JLHX.js";
|
|
19
19
|
import {
|
|
20
20
|
updateSettingsFiles
|
|
21
|
-
} from "./cli-
|
|
22
|
-
import "./cli-
|
|
21
|
+
} from "./cli-MPU4FLA7.js";
|
|
22
|
+
import "./cli-VTLFQHDO.js";
|
|
23
23
|
import {
|
|
24
24
|
extractSchemaProperties
|
|
25
25
|
} from "./cli-QUNIRH7A.js";
|
|
26
|
-
import "./cli-
|
|
26
|
+
import "./cli-UTHPCZYL.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPackageContext
|
|
29
|
-
} from "./cli-
|
|
30
|
-
import "./cli-
|
|
29
|
+
} from "./cli-BC4KKNLA.js";
|
|
30
|
+
import "./cli-UADUC4JD.js";
|
|
31
31
|
import {
|
|
32
32
|
findBundleFile
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-2QM63J3I.js";
|
|
34
34
|
import {
|
|
35
35
|
operationError,
|
|
36
36
|
printOperationResult,
|
|
37
37
|
regenerateTypes
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-QAVLRCQ5.js";
|
|
39
39
|
import {
|
|
40
40
|
confirmAction,
|
|
41
41
|
input
|
|
42
|
-
} from "./cli-
|
|
43
|
-
import "./cli-
|
|
44
|
-
import "./cli-
|
|
45
|
-
import "./cli-
|
|
46
|
-
import "./cli-
|
|
42
|
+
} from "./cli-NU4SCD5D.js";
|
|
43
|
+
import "./cli-UZCQL6YP.js";
|
|
44
|
+
import "./cli-SOQJHK4Q.js";
|
|
45
|
+
import "./cli-7S4G4EKK.js";
|
|
46
|
+
import "./cli-O3IMNLN2.js";
|
|
47
47
|
import "./cli-25RWY5BQ.js";
|
|
48
48
|
import "./cli-QWQMPCL6.js";
|
|
49
49
|
import {
|
|
50
50
|
validateSDKSettings
|
|
51
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-OUFXSQOW.js";
|
|
52
52
|
import "./cli-F2D4GGUA.js";
|
|
53
53
|
import {
|
|
54
54
|
logger
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-DMKRP33X.js";
|
|
56
56
|
import {
|
|
57
57
|
CliError
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-AEAFLZGY.js";
|
|
59
59
|
|
|
60
60
|
// cli/commands/resources/settings/update.ts
|
|
61
61
|
import { readFileSync } from "fs";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
submitPatch,
|
|
4
|
+
submitSharedPatch,
|
|
5
|
+
tickCommand
|
|
6
|
+
} from "./cli-KFVA7DT3.js";
|
|
7
|
+
import "./cli-E665NKUQ.js";
|
|
8
|
+
import "./cli-HJPNNORV.js";
|
|
9
|
+
import "./cli-Q5BKFFDL.js";
|
|
10
|
+
import "./cli-726NJARI.js";
|
|
11
|
+
import "./cli-42ZUP4X3.js";
|
|
12
|
+
import "./cli-K6M6YB67.js";
|
|
13
|
+
import "./cli-Y33ULHYO.js";
|
|
14
|
+
import "./cli-WWNTBK37.js";
|
|
15
|
+
import "./cli-4LKXZQ2B.js";
|
|
16
|
+
import "./cli-7CW2BBJG.js";
|
|
17
|
+
import "./cli-S5IVGDDD.js";
|
|
18
|
+
import "./cli-QUNIRH7A.js";
|
|
19
|
+
import "./cli-O3IMNLN2.js";
|
|
20
|
+
import "./cli-25RWY5BQ.js";
|
|
21
|
+
import "./cli-QWQMPCL6.js";
|
|
22
|
+
import "./cli-OUFXSQOW.js";
|
|
23
|
+
import "./cli-F2D4GGUA.js";
|
|
24
|
+
import "./cli-DMKRP33X.js";
|
|
25
|
+
import "./cli-AEAFLZGY.js";
|
|
26
|
+
export {
|
|
27
|
+
submitPatch,
|
|
28
|
+
submitSharedPatch,
|
|
29
|
+
tickCommand
|
|
30
|
+
};
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
bundlePackage,
|
|
4
4
|
includeBundleEntry,
|
|
5
5
|
packageBundleCommand
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import "./cli-
|
|
8
|
-
import "./cli-
|
|
6
|
+
} from "./cli-7V6GUIIS.js";
|
|
7
|
+
import "./cli-DMKRP33X.js";
|
|
8
|
+
import "./cli-AEAFLZGY.js";
|
|
9
9
|
export {
|
|
10
10
|
bundlePackage,
|
|
11
11
|
includeBundleEntry,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runResourceCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-7NCVUM5U.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-F47ELAXM.js";
|
|
9
|
+
import "./cli-QAVLRCQ5.js";
|
|
10
|
+
import "./cli-NU4SCD5D.js";
|
|
11
|
+
import "./cli-UZCQL6YP.js";
|
|
12
|
+
import "./cli-SOQJHK4Q.js";
|
|
13
|
+
import "./cli-7S4G4EKK.js";
|
|
14
|
+
import "./cli-O3IMNLN2.js";
|
|
15
15
|
import "./cli-25RWY5BQ.js";
|
|
16
16
|
import "./cli-QWQMPCL6.js";
|
|
17
|
-
import "./cli-
|
|
17
|
+
import "./cli-OUFXSQOW.js";
|
|
18
18
|
import "./cli-F2D4GGUA.js";
|
|
19
|
-
import "./cli-
|
|
19
|
+
import "./cli-DMKRP33X.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-AEAFLZGY.js";
|
|
23
23
|
|
|
24
24
|
// cli/commands/update.ts
|
|
25
25
|
async function updateCommand(resourceType, identifierOrDefinition, definition, options) {
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteFacilitatorGuideFiles,
|
|
4
4
|
findFacilitatorGuideReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-V5K3CCYZ.js";
|
|
6
6
|
import {
|
|
7
7
|
loadPackageContext
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import "./cli-
|
|
10
|
-
import "./cli-
|
|
8
|
+
} from "./cli-BC4KKNLA.js";
|
|
9
|
+
import "./cli-UADUC4JD.js";
|
|
10
|
+
import "./cli-2QM63J3I.js";
|
|
11
11
|
import {
|
|
12
12
|
operationError,
|
|
13
13
|
recordOperationResult
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-QAVLRCQ5.js";
|
|
15
15
|
import {
|
|
16
16
|
confirmAction
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-
|
|
20
|
-
import "./cli-
|
|
21
|
-
import "./cli-
|
|
17
|
+
} from "./cli-NU4SCD5D.js";
|
|
18
|
+
import "./cli-UZCQL6YP.js";
|
|
19
|
+
import "./cli-SOQJHK4Q.js";
|
|
20
|
+
import "./cli-7S4G4EKK.js";
|
|
21
|
+
import "./cli-O3IMNLN2.js";
|
|
22
22
|
import "./cli-25RWY5BQ.js";
|
|
23
23
|
import "./cli-QWQMPCL6.js";
|
|
24
|
-
import "./cli-
|
|
24
|
+
import "./cli-OUFXSQOW.js";
|
|
25
25
|
import "./cli-F2D4GGUA.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import "./cli-
|
|
28
|
+
} from "./cli-DMKRP33X.js";
|
|
29
|
+
import "./cli-AEAFLZGY.js";
|
|
30
30
|
|
|
31
31
|
// cli/commands/resources/guide/delete.ts
|
|
32
32
|
async function deleteFacilitatorGuide(options) {
|