@seriousgaming/sdk-tools 1.6.0 → 1.7.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 +350 -0
- package/dist/{cli-I355WTAF.js → cli-2DQJACAH.js} +20 -12
- package/dist/{cli-PTT5RGKO.js → cli-3PIJLSRQ.js} +5 -5
- package/dist/{cli-O6PWMJTZ.js → cli-4CHKF4DQ.js} +1 -1
- package/dist/{cli-UJ4UCL2Z.js → cli-4VZIJYKU.js} +1 -1
- package/dist/{cli-O5KP4OVN.js → cli-4XCQUM3E.js} +2 -2
- package/dist/{cli-6WXLXJVX.js → cli-57C72YKJ.js} +14 -14
- package/dist/{cli-GFBGYFYD.js → cli-57V4ARER.js} +1 -1
- package/dist/{cli-IRZ5KB7D.js → cli-5G7TZHD3.js} +14 -14
- package/dist/{cli-QEVDDBNO.js → cli-64AA7367.js} +8 -8
- package/dist/{cli-LMDJCHHD.js → cli-6HB6HTC6.js} +47 -47
- package/dist/{cli-TCY5LJ7E.js → cli-6ZSMW4HR.js} +10 -10
- package/dist/{cli-RN6IWTL2.js → cli-7MBLH4M3.js} +14 -14
- package/dist/{cli-K2B6WHKA.js → cli-7RYIEKMB.js} +10 -10
- package/dist/{cli-ZVSFYDPQ.js → cli-7TOLC62D.js} +16 -14
- package/dist/{cli-LXYPE3L5.js → cli-ATI6OLJU.js} +12 -12
- package/dist/{cli-ROT3DRKU.js → cli-BOXXMDSX.js} +16 -18
- package/dist/{cli-UKQYZYFK.js → cli-C3OERMIR.js} +1 -1
- package/dist/{cli-VCKOC2EV.js → cli-C6G65H6S.js} +2 -2
- package/dist/{cli-ORIG557O.js → cli-CV4JGVJR.js} +17 -27
- package/dist/{cli-HYY64SUD.js → cli-CXCL7VRK.js} +13 -13
- package/dist/{cli-FBTRTIZJ.js → cli-DEBCP7UH.js} +10 -10
- package/dist/{cli-BPYMTOUL.js → cli-DHOWZCXT.js} +10 -10
- package/dist/{cli-E6DJIMYD.js → cli-EDCAH2TC.js} +17 -23
- package/dist/{cli-C6TH5S7K.js → cli-EJVAQCMQ.js} +30 -3
- package/dist/{cli-DZW3XD5F.js → cli-ESA6YNPF.js} +17 -25
- package/dist/{cli-UTJU4IYG.js → cli-FP32D3T6.js} +10 -10
- package/dist/{cli-EVFS55WN.js → cli-FXWWYBYU.js} +22 -25
- package/dist/{cli-MBNMPVDC.js → cli-FXY3DKPW.js} +8 -5
- package/dist/{cli-G6UE5NL4.js → cli-FZ7QAZZP.js} +11 -11
- package/dist/{cli-KL3756X6.js → cli-G5DQGZ2E.js} +17 -19
- package/dist/{cli-JFU22EJ2.js → cli-GEQUJF4L.js} +11 -11
- package/dist/{cli-WAE26SVW.js → cli-GHLILDH7.js} +9 -9
- package/dist/{cli-PFFCNGHI.js → cli-GPAN6XK2.js} +3 -3
- package/dist/{cli-LFGRFIEO.js → cli-GTWEGYSU.js} +12 -12
- package/dist/{cli-4BV45LBH.js → cli-H3J3ICCQ.js} +2 -2
- package/dist/{cli-3E3MD5U4.js → cli-HHPMAV4F.js} +1 -1
- package/dist/{cli-M6BCQRID.js → cli-HM7CD4VU.js} +18 -29
- package/dist/{cli-DMW2OQIJ.js → cli-HYEU3QS6.js} +1 -1
- package/dist/{cli-TPU4TUR6.js → cli-IPP5FDCH.js} +12 -12
- package/dist/{cli-UELGBQG7.js → cli-JGFJWZFU.js} +1 -1
- package/dist/{cli-2GOFEW26.js → cli-JIZTQVL2.js} +8 -8
- package/dist/{cli-GXD36NF2.js → cli-JPAXKLVT.js} +8 -8
- package/dist/{cli-YVVXUD2G.js → cli-JR5AZLLK.js} +7 -2
- package/dist/{cli-PQBXVLEU.js → cli-JRIIAZ33.js} +8 -8
- package/dist/{cli-3HE4AVZG.js → cli-JRMHSMYT.js} +17 -21
- package/dist/{cli-SIPDUBFL.js → cli-L5IG7MY2.js} +14 -14
- package/dist/{cli-FYINNRML.js → cli-LE5ICDAF.js} +27 -70
- package/dist/{cli-LFM7GJHI.js → cli-LQ4VSM5R.js} +0 -0
- package/dist/{cli-RA673NGF.js → cli-LQERHJFE.js} +4 -4
- package/dist/{cli-ZWPYIXNI.js → cli-LRQDF3ZO.js} +7 -7
- package/dist/{cli-V4GHRWOV.js → cli-M7WEAIRF.js} +5 -5
- package/dist/{cli-GUXKQMJ7.js → cli-MM3A4SPH.js} +1 -1
- package/dist/{cli-5JEGTVTG.js → cli-MULKSLA4.js} +12 -12
- package/dist/{cli-B4TN6PJP.js → cli-MYJGGLC5.js} +2 -2
- package/dist/{cli-7OGYADZ3.js → cli-NEOLMC2P.js} +12 -12
- package/dist/{cli-IDKYF5XB.js → cli-NOQBWJQN.js} +1 -1
- package/dist/{cli-TLLA6KAP.js → cli-NPPY557S.js} +10 -10
- package/dist/{cli-GTSGLN3Z.js → cli-OANH3BTQ.js} +1 -1
- package/dist/{cli-UMFFURZ7.js → cli-OQG3Y4RU.js} +10 -10
- package/dist/{cli-6RRVEGFB.js → cli-PIO7NWMH.js} +10 -10
- package/dist/{cli-GDQ6ILJY.js → cli-PKQNOGBO.js} +7 -7
- package/dist/{cli-DL2CVMRF.js → cli-PVA52RC2.js} +11 -11
- package/dist/{cli-JZM7XTNV.js → cli-R7RG2VMW.js} +10 -10
- package/dist/{cli-ZISJ36MM.js → cli-SOFCTQAL.js} +10 -10
- package/dist/{cli-6AMT3BUO.js → cli-SOMIB4B4.js} +12 -12
- package/dist/{cli-E33CJRRQ.js → cli-SPGUVL6Z.js} +14 -14
- package/dist/{cli-4AKVLEC4.js → cli-SWZY7L7K.js} +3 -3
- package/dist/{cli-C3NVCKO6.js → cli-SX3ULO5P.js} +8 -8
- package/dist/{cli-S5QDONIQ.js → cli-T4HWGMY4.js} +7 -7
- package/dist/{cli-272KBNJH.js → cli-TDYKRXUA.js} +12 -12
- package/dist/{cli-UNJ5X6BU.js → cli-TFMNNVJ7.js} +10 -10
- package/dist/{cli-PNLYX6R6.js → cli-TFZ53OA2.js} +12 -12
- package/dist/{cli-KNOOKGYW.js → cli-TJ3PLRHF.js} +10 -10
- package/dist/{cli-JMZLT65J.js → cli-TPNQLYPC.js} +1 -1
- package/dist/{cli-QEVE5HUM.js → cli-UBQCSUDH.js} +11 -11
- package/dist/{cli-E2NLWIFE.js → cli-UTM4QU67.js} +1 -1
- package/dist/{cli-U2UE7I7J.js → cli-UY4VDI7W.js} +8 -8
- package/dist/{cli-XCO2VQOH.js → cli-VPON5HGB.js} +19 -17
- package/dist/{cli-Q2XJF5AS.js → cli-VYR326C6.js} +18 -21
- package/dist/{cli-G522CPRL.js → cli-WAZD75KE.js} +10 -10
- package/dist/{cli-R4PCG5YX.js → cli-WG36UJRK.js} +12 -12
- package/dist/{cli-GBFM76BF.js → cli-WM6SQJ6Q.js} +5 -5
- package/dist/{cli-G6KELFSX.js → cli-X7E3637I.js} +84 -17
- package/dist/{cli-AK7OIPWY.js → cli-XR2XSWQN.js} +13 -17
- package/dist/{cli-GGPDQNM3.js → cli-XTANOFQR.js} +2 -2
- package/dist/{cli-BYJWFFCF.js → cli-YSPZZQCP.js} +2 -2
- package/dist/{cli-EEFJKIGL.js → cli-Z5HWENER.js} +17 -25
- package/dist/{cli-57RXC3HQ.js → cli-ZBTFLZUL.js} +14 -14
- package/dist/{cli-SMFSZF2G.js → cli-ZF7IFB54.js} +21 -4
- package/dist/{cli-VCI3CG36.js → cli-ZKG3OPZ6.js} +9 -9
- package/dist/{cli-WOGIAU2E.js → cli-ZQ2Y3U7F.js} +7 -7
- package/dist/{cli-QUIJCBYB.js → cli-ZRPWZOCW.js} +15 -7
- package/dist/{cli-UHSZBKYO.js → cli-ZTZ5H55T.js} +12 -12
- package/dist/cli.js +36 -34
- package/dist/client.js +178 -69
- package/dist/core/game-settings.d.ts +5 -3
- package/dist/core/session-roster.d.ts +10 -0
- package/dist/dev/console/assets/{index-CuMOOH9m.js → index-CnXlPeLX.js} +47 -47
- package/dist/dev/console/index.html +1 -1
- package/dist/dev/routes.d.ts +5 -2
- package/dist/dev/shell.d.ts +9 -1
- package/dist/dev/view/batch.d.ts +11 -1
- package/dist/dev/view/route.d.ts +18 -1
- package/dist/dev/view/view.d.ts +9 -0
- package/dist/docs/ai-agents.md +1 -1
- package/dist/docs/api/index.md +1 -1
- package/dist/docs/api/sdk-commands.md +4 -0
- package/dist/docs/api/sdk-e2e.md +5 -0
- package/dist/docs/api/sdk-tools-client.md +4 -0
- package/dist/docs/api/sdk-ui-testing.md +1 -0
- package/dist/docs/api/sdk-ui.md +28 -0
- package/dist/docs/api/sdk.md +2 -0
- package/dist/docs/changelog.md +26 -0
- package/dist/docs/cli-and-dev-server.md +4 -0
- package/dist/docs/cli-reference.md +17 -2
- package/dist/docs/getting-started.md +1 -1
- package/dist/docs/guides/presentation.md +11 -10
- package/dist/docs/guides/session-hooks.md +16 -0
- package/dist/docs/guides/settings.md +4 -2
- package/dist/docs/guides/starter-game.md +1 -1
- package/dist/docs/guides/upgrading.md +31 -2
- package/dist/docs/page-index.md +6 -6
- package/dist/host/protocol.d.ts +10 -1
- package/dist/host.js +1 -0
- package/dist/playwright.js +178 -69
- package/dist/runtime/manifest-version.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/schema.json +10 -1
- package/dist/templates/package/CLAUDE.md.template +7 -346
- package/dist/templates/package/claude/rules/workflow-create-engine.md +2 -2
- package/dist/templates/package/claude/rules/workflow-create-guide.md +2 -2
- package/dist/templates/package/claude/rules/workflow-create-user-interface.md +1 -1
- package/dist/templates/package/claude/rules/workflow-update-sdk-version.md +3 -3
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resourceNames
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-57V4ARER.js";
|
|
5
5
|
import {
|
|
6
6
|
checkbox
|
|
7
7
|
} from "./cli-ZTWOE3ZT.js";
|
|
8
8
|
import {
|
|
9
9
|
getResourceMeta
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-ZF7IFB54.js";
|
|
11
11
|
|
|
12
12
|
// cli/utils/resource-discovery.ts
|
|
13
13
|
function loadResourceIdentifiers(workingDir, type) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
deleteResourceFiles,
|
|
5
5
|
findResourceReferences,
|
|
6
6
|
updateResourceFiles
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-FXY3DKPW.js";
|
|
8
8
|
import {
|
|
9
9
|
getResourceMeta
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-ZF7IFB54.js";
|
|
11
11
|
|
|
12
12
|
// cli/templating/scenario.ts
|
|
13
13
|
var scenarioMeta = getResourceMeta("scenario");
|
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
promptForSettings
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-C3OERMIR.js";
|
|
5
5
|
import {
|
|
6
6
|
loadResourceIdentifiers
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-XTANOFQR.js";
|
|
8
8
|
import {
|
|
9
9
|
readAuthoredBundle
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-JR5AZLLK.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveInputSource
|
|
13
13
|
} from "./cli-4UWFQNGF.js";
|
|
14
14
|
import {
|
|
15
15
|
createUserInterfaceFiles
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-LE5ICDAF.js";
|
|
17
17
|
import "./cli-IUS2YCD3.js";
|
|
18
18
|
import "./cli-QUNIRH7A.js";
|
|
19
|
-
import "./cli-
|
|
19
|
+
import "./cli-YSPZZQCP.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPackageContext
|
|
22
22
|
} from "./cli-XSVGKI3R.js";
|
|
23
|
-
import
|
|
24
|
-
|
|
23
|
+
import {
|
|
24
|
+
presentFields
|
|
25
|
+
} from "./cli-FXY3DKPW.js";
|
|
26
|
+
import "./cli-57V4ARER.js";
|
|
25
27
|
import {
|
|
26
28
|
BUILD_COMMAND,
|
|
27
29
|
generateTypes,
|
|
28
30
|
operationError,
|
|
29
31
|
printOperationResult
|
|
30
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-JGFJWZFU.js";
|
|
31
33
|
import {
|
|
32
34
|
checkbox,
|
|
33
35
|
input
|
|
34
36
|
} from "./cli-ZTWOE3ZT.js";
|
|
35
|
-
import "./cli-
|
|
36
|
-
import "./cli-
|
|
37
|
-
import "./cli-
|
|
38
|
-
import "./cli-
|
|
37
|
+
import "./cli-H3J3ICCQ.js";
|
|
38
|
+
import "./cli-SWZY7L7K.js";
|
|
39
|
+
import "./cli-C6G65H6S.js";
|
|
40
|
+
import "./cli-UTM4QU67.js";
|
|
39
41
|
import "./cli-25RWY5BQ.js";
|
|
40
42
|
import "./cli-QWQMPCL6.js";
|
|
41
43
|
import {
|
|
42
44
|
validateSDKUserInterface
|
|
43
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-ZF7IFB54.js";
|
|
44
46
|
import "./cli-F2D4GGUA.js";
|
|
45
47
|
import {
|
|
46
48
|
logger
|
|
@@ -62,19 +64,11 @@ async function createUserInterface(definitionInput, options) {
|
|
|
62
64
|
command: "new",
|
|
63
65
|
validate: validateSDKUserInterface
|
|
64
66
|
});
|
|
65
|
-
const definition = uiInput.definition;
|
|
66
|
-
const reads2 = definition.reads || [];
|
|
67
|
-
const crossTeamReads = definition.crossTeamReads || [];
|
|
68
|
-
const writes2 = definition.writes || [];
|
|
69
|
-
const settings2 = definition.settings || [];
|
|
70
67
|
logger.info("Creating user interface files...\n");
|
|
71
68
|
const result2 = await createUserInterfaceFiles({
|
|
72
69
|
packagePath: options.workingDir,
|
|
73
70
|
name: "Dashboard",
|
|
74
|
-
|
|
75
|
-
crossTeamReads,
|
|
76
|
-
writes: writes2,
|
|
77
|
-
settings: settings2
|
|
71
|
+
definition: uiInput.definition
|
|
78
72
|
});
|
|
79
73
|
if (!result2.success) {
|
|
80
74
|
throw operationError(result2, "Failed to create user interface files");
|
|
@@ -132,9 +126,7 @@ async function createUserInterface(definitionInput, options) {
|
|
|
132
126
|
const result = await createUserInterfaceFiles({
|
|
133
127
|
packagePath: options.workingDir,
|
|
134
128
|
name,
|
|
135
|
-
reads,
|
|
136
|
-
writes,
|
|
137
|
-
settings
|
|
129
|
+
definition: presentFields({ reads, writes, settings })
|
|
138
130
|
});
|
|
139
131
|
if (!result.success) {
|
|
140
132
|
throw operationError(result, "Failed to create user interface files");
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
updateSettingsEditor
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import "./cli-
|
|
6
|
-
import "./cli-
|
|
4
|
+
} from "./cli-XR2XSWQN.js";
|
|
5
|
+
import "./cli-XTANOFQR.js";
|
|
6
|
+
import "./cli-4VZIJYKU.js";
|
|
7
7
|
import "./cli-S5IVGDDD.js";
|
|
8
|
-
import "./cli-
|
|
8
|
+
import "./cli-JR5AZLLK.js";
|
|
9
9
|
import "./cli-4UWFQNGF.js";
|
|
10
|
-
import "./cli-
|
|
10
|
+
import "./cli-LE5ICDAF.js";
|
|
11
11
|
import "./cli-IUS2YCD3.js";
|
|
12
12
|
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-
|
|
13
|
+
import "./cli-YSPZZQCP.js";
|
|
14
14
|
import "./cli-XSVGKI3R.js";
|
|
15
|
-
import "./cli-
|
|
16
|
-
import "./cli-
|
|
17
|
-
import "./cli-
|
|
15
|
+
import "./cli-FXY3DKPW.js";
|
|
16
|
+
import "./cli-57V4ARER.js";
|
|
17
|
+
import "./cli-JGFJWZFU.js";
|
|
18
18
|
import "./cli-ZTWOE3ZT.js";
|
|
19
|
-
import "./cli-
|
|
20
|
-
import "./cli-
|
|
21
|
-
import "./cli-
|
|
22
|
-
import "./cli-
|
|
19
|
+
import "./cli-H3J3ICCQ.js";
|
|
20
|
+
import "./cli-SWZY7L7K.js";
|
|
21
|
+
import "./cli-C6G65H6S.js";
|
|
22
|
+
import "./cli-UTM4QU67.js";
|
|
23
23
|
import "./cli-25RWY5BQ.js";
|
|
24
24
|
import "./cli-QWQMPCL6.js";
|
|
25
|
-
import "./cli-
|
|
25
|
+
import "./cli-ZF7IFB54.js";
|
|
26
26
|
import "./cli-F2D4GGUA.js";
|
|
27
27
|
import "./cli-4YB3ROVR.js";
|
|
28
28
|
import "./cli-N6H6T2E2.js";
|
|
@@ -694,6 +694,10 @@ var schema_default = {
|
|
|
694
694
|
minProperties: 1,
|
|
695
695
|
additionalProperties: false
|
|
696
696
|
}
|
|
697
|
+
},
|
|
698
|
+
sessionJoin: {
|
|
699
|
+
type: "boolean",
|
|
700
|
+
description: "Whether a session may offer one join link for the whole session, through which the host places each person in a team of its choosing. Defaults to true. Set it false when a game depends on who is in which team, such as one role per team, and hand out team links instead. The default for the `game` settings' `teams.sessionJoin`"
|
|
697
701
|
}
|
|
698
702
|
},
|
|
699
703
|
additionalProperties: false
|
|
@@ -746,7 +750,8 @@ var schema_default = {
|
|
|
746
750
|
},
|
|
747
751
|
additionalProperties: false
|
|
748
752
|
},
|
|
749
|
-
defaultNames: { $ref: "#/$defs/GameSettingConstraint" }
|
|
753
|
+
defaultNames: { $ref: "#/$defs/GameSettingConstraint" },
|
|
754
|
+
sessionJoin: { $ref: "#/$defs/GameSettingConstraint" }
|
|
750
755
|
},
|
|
751
756
|
additionalProperties: false
|
|
752
757
|
},
|
|
@@ -823,6 +828,10 @@ var schema_default = {
|
|
|
823
828
|
minProperties: 1,
|
|
824
829
|
additionalProperties: false
|
|
825
830
|
}
|
|
831
|
+
},
|
|
832
|
+
sessionJoin: {
|
|
833
|
+
type: "boolean",
|
|
834
|
+
description: "Whether the host may offer one join link for the whole session, placing each person in a team of its choosing. Read once as the session is created, so only the game and its scenarios set it"
|
|
826
835
|
}
|
|
827
836
|
},
|
|
828
837
|
additionalProperties: false
|
|
@@ -1594,6 +1603,7 @@ var TITLES = {
|
|
|
1594
1603
|
"teams.perTeam.minParticipants": "Minimum participants per team",
|
|
1595
1604
|
"teams.perTeam.maxParticipants": "Maximum participants per team",
|
|
1596
1605
|
"teams.defaultNames": "Default team names",
|
|
1606
|
+
"teams.sessionJoin": "Offer a session join link",
|
|
1597
1607
|
"waitingRoom.openOnStart": "Open the waiting room on start"
|
|
1598
1608
|
};
|
|
1599
1609
|
function gameSettingsDefaults(manifest) {
|
|
@@ -1607,7 +1617,8 @@ function gameSettingsDefaults(manifest) {
|
|
|
1607
1617
|
minParticipants: teams?.perTeam?.minParticipants ?? null,
|
|
1608
1618
|
maxParticipants: teams?.perTeam?.maxParticipants ?? null
|
|
1609
1619
|
},
|
|
1610
|
-
defaultNames: teams?.defaultNames ?? []
|
|
1620
|
+
defaultNames: teams?.defaultNames ?? [],
|
|
1621
|
+
sessionJoin: teams?.sessionJoin !== false
|
|
1611
1622
|
},
|
|
1612
1623
|
waitingRoom: { openOnStart: manifest.waitingRoom?.openOnStart === true }
|
|
1613
1624
|
};
|
|
@@ -1689,7 +1700,8 @@ function gameSettingsOf(resolved) {
|
|
|
1689
1700
|
minParticipants: game.teams?.perTeam?.minParticipants ?? null,
|
|
1690
1701
|
maxParticipants: game.teams?.perTeam?.maxParticipants ?? null
|
|
1691
1702
|
},
|
|
1692
|
-
defaultNames: game.teams?.defaultNames ?? neutral.teams.defaultNames
|
|
1703
|
+
defaultNames: game.teams?.defaultNames ?? neutral.teams.defaultNames,
|
|
1704
|
+
sessionJoin: game.teams?.sessionJoin !== false
|
|
1693
1705
|
},
|
|
1694
1706
|
waitingRoom: { openOnStart: game.waitingRoom?.openOnStart === true }
|
|
1695
1707
|
};
|
|
@@ -1711,6 +1723,10 @@ function gameOverrideRefusal(overrides) {
|
|
|
1711
1723
|
if ("waitingRoom" in game) {
|
|
1712
1724
|
return "game.waitingRoom.openOnStart cannot be set for a session: it seeds the waiting room as the session is created, before setup. Set it in the manifest or a scenario instead";
|
|
1713
1725
|
}
|
|
1726
|
+
const teams = game.teams;
|
|
1727
|
+
if (teams !== null && typeof teams === "object" && "sessionJoin" in teams) {
|
|
1728
|
+
return "game.teams.sessionJoin cannot be set for a session: it is read as the session is created, before setup, so the session link cannot switch on and off while people are arriving. Set it in the manifest or a scenario instead";
|
|
1729
|
+
}
|
|
1714
1730
|
return null;
|
|
1715
1731
|
}
|
|
1716
1732
|
|
|
@@ -3006,7 +3022,7 @@ function packageRelativePath(file, packageRoot) {
|
|
|
3006
3022
|
|
|
3007
3023
|
// cli/runtime/manifest-version.ts
|
|
3008
3024
|
var MANIFEST_VERSION = 3;
|
|
3009
|
-
var SPEC_REVISION = "1.
|
|
3025
|
+
var SPEC_REVISION = "1.6";
|
|
3010
3026
|
var SUPPORTED_FEATURES = [
|
|
3011
3027
|
// A validator's `Scenario` gate (§15.8).
|
|
3012
3028
|
"scenario-validation",
|
|
@@ -4005,5 +4021,6 @@ export {
|
|
|
4005
4021
|
REMOVED_UI_USES,
|
|
4006
4022
|
REMOVED_DEMO,
|
|
4007
4023
|
REMOVED_CONFIGURATION_SURFACES,
|
|
4024
|
+
removedFromBundle,
|
|
4008
4025
|
loadConfig
|
|
4009
4026
|
};
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteFacilitatorGuideFiles,
|
|
4
4
|
findFacilitatorGuideReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-LQERHJFE.js";
|
|
6
6
|
import {
|
|
7
7
|
loadPackageContext
|
|
8
8
|
} from "./cli-XSVGKI3R.js";
|
|
9
|
-
import "./cli-
|
|
10
|
-
import "./cli-
|
|
9
|
+
import "./cli-FXY3DKPW.js";
|
|
10
|
+
import "./cli-57V4ARER.js";
|
|
11
11
|
import {
|
|
12
12
|
operationError,
|
|
13
13
|
recordOperationResult
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-JGFJWZFU.js";
|
|
15
15
|
import {
|
|
16
16
|
confirmAction
|
|
17
17
|
} from "./cli-ZTWOE3ZT.js";
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-
|
|
20
|
-
import "./cli-
|
|
21
|
-
import "./cli-
|
|
18
|
+
import "./cli-H3J3ICCQ.js";
|
|
19
|
+
import "./cli-SWZY7L7K.js";
|
|
20
|
+
import "./cli-C6G65H6S.js";
|
|
21
|
+
import "./cli-UTM4QU67.js";
|
|
22
22
|
import "./cli-25RWY5BQ.js";
|
|
23
23
|
import "./cli-QWQMPCL6.js";
|
|
24
|
-
import "./cli-
|
|
24
|
+
import "./cli-ZF7IFB54.js";
|
|
25
25
|
import "./cli-F2D4GGUA.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-OANH3BTQ.js";
|
|
5
5
|
import "./cli-WU43JT4T.js";
|
|
6
6
|
import {
|
|
7
7
|
emit,
|
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
viewReport,
|
|
10
10
|
viewSummary,
|
|
11
11
|
warnIfStale
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import "./cli-
|
|
14
|
-
import "./cli-
|
|
12
|
+
} from "./cli-GPAN6XK2.js";
|
|
13
|
+
import "./cli-LQ4VSM5R.js";
|
|
14
|
+
import "./cli-EJVAQCMQ.js";
|
|
15
15
|
import "./cli-TDSQSCX4.js";
|
|
16
16
|
import "./cli-SRHBXZCN.js";
|
|
17
|
-
import "./cli-
|
|
17
|
+
import "./cli-MM3A4SPH.js";
|
|
18
18
|
import "./cli-4LKXZQ2B.js";
|
|
19
19
|
import "./cli-MMN4BPO4.js";
|
|
20
20
|
import "./cli-QUNIRH7A.js";
|
|
21
|
-
import "./cli-
|
|
21
|
+
import "./cli-UTM4QU67.js";
|
|
22
22
|
import "./cli-25RWY5BQ.js";
|
|
23
23
|
import "./cli-QWQMPCL6.js";
|
|
24
|
-
import "./cli-
|
|
24
|
+
import "./cli-ZF7IFB54.js";
|
|
25
25
|
import "./cli-F2D4GGUA.js";
|
|
26
26
|
import "./cli-4YB3ROVR.js";
|
|
27
27
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-OANH3BTQ.js";
|
|
5
5
|
import "./cli-WU43JT4T.js";
|
|
6
6
|
import {
|
|
7
7
|
emit,
|
|
@@ -10,26 +10,26 @@ import {
|
|
|
10
10
|
teamIndexFromArgument,
|
|
11
11
|
tickReport,
|
|
12
12
|
wholeNumberFromFlag
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import "./cli-
|
|
13
|
+
} from "./cli-GPAN6XK2.js";
|
|
14
|
+
import "./cli-LQ4VSM5R.js";
|
|
15
15
|
import {
|
|
16
16
|
IDLE_TIMER
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-EJVAQCMQ.js";
|
|
18
18
|
import "./cli-TDSQSCX4.js";
|
|
19
19
|
import "./cli-SRHBXZCN.js";
|
|
20
|
-
import "./cli-
|
|
20
|
+
import "./cli-MM3A4SPH.js";
|
|
21
21
|
import "./cli-4LKXZQ2B.js";
|
|
22
22
|
import "./cli-MMN4BPO4.js";
|
|
23
23
|
import "./cli-QUNIRH7A.js";
|
|
24
24
|
import {
|
|
25
25
|
loadPackageContext
|
|
26
26
|
} from "./cli-XSVGKI3R.js";
|
|
27
|
-
import "./cli-
|
|
27
|
+
import "./cli-UTM4QU67.js";
|
|
28
28
|
import "./cli-25RWY5BQ.js";
|
|
29
29
|
import "./cli-QWQMPCL6.js";
|
|
30
30
|
import {
|
|
31
31
|
loadConfig
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-ZF7IFB54.js";
|
|
33
33
|
import "./cli-F2D4GGUA.js";
|
|
34
34
|
import "./cli-4YB3ROVR.js";
|
|
35
35
|
import {
|
|
@@ -158,6 +158,13 @@ async function participantAddCommand(name, options) {
|
|
|
158
158
|
rosterOf
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
+
async function participantJoinCommand(name, options) {
|
|
162
|
+
await submit(
|
|
163
|
+
options,
|
|
164
|
+
() => ({ type: "joinSession", ...name === void 0 ? {} : { name } }),
|
|
165
|
+
rosterOf
|
|
166
|
+
);
|
|
167
|
+
}
|
|
161
168
|
async function participantRenameCommand(participantId, name, options) {
|
|
162
169
|
if (!name) {
|
|
163
170
|
throw new CliError(
|
|
@@ -376,6 +383,7 @@ export {
|
|
|
376
383
|
faultCommand,
|
|
377
384
|
localeCommand,
|
|
378
385
|
participantAddCommand,
|
|
386
|
+
participantJoinCommand,
|
|
379
387
|
participantMoveCommand,
|
|
380
388
|
participantRenameCommand,
|
|
381
389
|
playCommand,
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolvePatchedDefinition
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-4VZIJYKU.js";
|
|
5
5
|
import "./cli-S5IVGDDD.js";
|
|
6
6
|
import {
|
|
7
7
|
readAuthoredBundle
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-JR5AZLLK.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveInputSource
|
|
11
11
|
} from "./cli-4UWFQNGF.js";
|
|
12
12
|
import {
|
|
13
13
|
updateWaitingRoomUserInterfaceFiles
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-LE5ICDAF.js";
|
|
15
15
|
import "./cli-IUS2YCD3.js";
|
|
16
16
|
import "./cli-QUNIRH7A.js";
|
|
17
|
-
import "./cli-
|
|
17
|
+
import "./cli-YSPZZQCP.js";
|
|
18
18
|
import {
|
|
19
19
|
loadPackageContext
|
|
20
20
|
} from "./cli-XSVGKI3R.js";
|
|
21
|
-
import "./cli-
|
|
22
|
-
import "./cli-
|
|
21
|
+
import "./cli-FXY3DKPW.js";
|
|
22
|
+
import "./cli-57V4ARER.js";
|
|
23
23
|
import {
|
|
24
24
|
operationError,
|
|
25
25
|
printOperationResult,
|
|
26
26
|
regenerateTypes
|
|
27
|
-
} from "./cli-
|
|
28
|
-
import "./cli-
|
|
29
|
-
import "./cli-
|
|
30
|
-
import "./cli-
|
|
31
|
-
import "./cli-
|
|
27
|
+
} from "./cli-JGFJWZFU.js";
|
|
28
|
+
import "./cli-H3J3ICCQ.js";
|
|
29
|
+
import "./cli-SWZY7L7K.js";
|
|
30
|
+
import "./cli-C6G65H6S.js";
|
|
31
|
+
import "./cli-UTM4QU67.js";
|
|
32
32
|
import "./cli-25RWY5BQ.js";
|
|
33
33
|
import "./cli-QWQMPCL6.js";
|
|
34
34
|
import {
|
|
35
35
|
validateSDKWaitingRoomUserInterface
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-ZF7IFB54.js";
|
|
37
37
|
import "./cli-F2D4GGUA.js";
|
|
38
38
|
import {
|
|
39
39
|
logger
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
RESOURCE_DESCRIPTORS,
|
|
4
4
|
lazy
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-6HB6HTC6.js";
|
|
6
6
|
import {
|
|
7
7
|
DEV_PORT_ENV_VAR,
|
|
8
8
|
ERROR_OVERLAY_ENV_VAR,
|
|
@@ -139,27 +139,27 @@ function newFileHelp(spec) {
|
|
|
139
139
|
|
|
140
140
|
// cli/program.ts
|
|
141
141
|
var blobUploadCommand = lazy(() => import("./cli-FWFRKQNE.js"), "blobUploadCommand");
|
|
142
|
-
var buildCommand = lazy(() => import("./cli-
|
|
143
|
-
var buildEngineCommand = lazy(() => import("./cli-
|
|
142
|
+
var buildCommand = lazy(() => import("./cli-JRIIAZ33.js"), "buildCommand");
|
|
143
|
+
var buildEngineCommand = lazy(() => import("./cli-4XCQUM3E.js"), "buildEngineCommand");
|
|
144
144
|
var configGetCommand = lazy(() => import("./cli-VL2P354N.js"), "configGetCommand");
|
|
145
145
|
var configPathCommand = lazy(() => import("./cli-VL2P354N.js"), "configPathCommand");
|
|
146
146
|
var configSetCommand = lazy(() => import("./cli-VL2P354N.js"), "configSetCommand");
|
|
147
|
-
var configureCommand = lazy(() => import("./cli-
|
|
148
|
-
var deleteCommand = lazy(() => import("./cli-
|
|
149
|
-
var devCommand = lazy(() => import("./cli-
|
|
147
|
+
var configureCommand = lazy(() => import("./cli-PKQNOGBO.js"), "configureCommand");
|
|
148
|
+
var deleteCommand = lazy(() => import("./cli-JPAXKLVT.js"), "deleteCommand");
|
|
149
|
+
var devCommand = lazy(() => import("./cli-DEBCP7UH.js"), "devCommand");
|
|
150
150
|
var devStatusCommand = lazy(() => import("./cli-C47GJATR.js"), "devStatusCommand");
|
|
151
151
|
var devStopCommand = lazy(() => import("./cli-C47GJATR.js"), "devStopCommand");
|
|
152
152
|
var docsCommand = lazy(() => import("./cli-TIDQ4WUE.js"), "docsCommand");
|
|
153
153
|
var docsExportCommand = lazy(() => import("./cli-MYJGMA6U.js"), "docsExportCommand");
|
|
154
154
|
var endpointAuditCommand = lazy(
|
|
155
|
-
() => import("./cli-
|
|
155
|
+
() => import("./cli-3PIJLSRQ.js"),
|
|
156
156
|
"endpointAuditCommand"
|
|
157
157
|
);
|
|
158
|
-
var endpointCallCommand = lazy(() => import("./cli-
|
|
159
|
-
var endpointListCommand = lazy(() => import("./cli-
|
|
160
|
-
var generateCommand = lazy(() => import("./cli-
|
|
161
|
-
var initCommand = lazy(() => import("./cli-
|
|
162
|
-
var newCommand = lazy(() => import("./cli-
|
|
158
|
+
var endpointCallCommand = lazy(() => import("./cli-T4HWGMY4.js"), "endpointCallCommand");
|
|
159
|
+
var endpointListCommand = lazy(() => import("./cli-NOQBWJQN.js"), "endpointListCommand");
|
|
160
|
+
var generateCommand = lazy(() => import("./cli-WM6SQJ6Q.js"), "generateCommand");
|
|
161
|
+
var initCommand = lazy(() => import("./cli-LRQDF3ZO.js"), "initCommand");
|
|
162
|
+
var newCommand = lazy(() => import("./cli-SX3ULO5P.js"), "newCommand");
|
|
163
163
|
var packageBundleCommand = lazy(
|
|
164
164
|
() => import("./cli-MJUYJIEP.js"),
|
|
165
165
|
"packageBundleCommand"
|
|
@@ -172,32 +172,33 @@ var packageVersionCommand = lazy(
|
|
|
172
172
|
() => import("./cli-QVASWX2A.js"),
|
|
173
173
|
"packageVersionCommand"
|
|
174
174
|
);
|
|
175
|
-
var patchCommand = lazy(() => import("./cli-
|
|
176
|
-
var resolveCommand = lazy(() => import("./cli-
|
|
177
|
-
var screenshotCommand = lazy(() => import("./cli-
|
|
178
|
-
var clockAdvanceCommand = lazy(() => import("./cli-
|
|
179
|
-
var faultCommand = lazy(() => import("./cli-
|
|
180
|
-
var localeCommand = lazy(() => import("./cli-
|
|
181
|
-
var participantAddCommand = lazy(() => import("./cli-
|
|
182
|
-
var
|
|
175
|
+
var patchCommand = lazy(() => import("./cli-JIZTQVL2.js"), "patchCommand");
|
|
176
|
+
var resolveCommand = lazy(() => import("./cli-HHPMAV4F.js"), "resolveCommand");
|
|
177
|
+
var screenshotCommand = lazy(() => import("./cli-2DQJACAH.js"), "screenshotCommand");
|
|
178
|
+
var clockAdvanceCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "clockAdvanceCommand");
|
|
179
|
+
var faultCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "faultCommand");
|
|
180
|
+
var localeCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "localeCommand");
|
|
181
|
+
var participantAddCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "participantAddCommand");
|
|
182
|
+
var participantJoinCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "participantJoinCommand");
|
|
183
|
+
var participantMoveCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "participantMoveCommand");
|
|
183
184
|
var participantRenameCommand = lazy(
|
|
184
|
-
() => import("./cli-
|
|
185
|
+
() => import("./cli-ZRPWZOCW.js"),
|
|
185
186
|
"participantRenameCommand"
|
|
186
187
|
);
|
|
187
|
-
var playCommand = lazy(() => import("./cli-
|
|
188
|
-
var reconfigureCommand = lazy(() => import("./cli-
|
|
189
|
-
var resetCommand = lazy(() => import("./cli-
|
|
190
|
-
var scenarioCommand = lazy(() => import("./cli-
|
|
191
|
-
var teamAddCommand = lazy(() => import("./cli-
|
|
192
|
-
var teamRemoveCommand = lazy(() => import("./cli-
|
|
193
|
-
var teamRenameCommand = lazy(() => import("./cli-
|
|
194
|
-
var timerCommand = lazy(() => import("./cli-
|
|
195
|
-
var undoCommand = lazy(() => import("./cli-
|
|
196
|
-
var waitingRoomCommand = lazy(() => import("./cli-
|
|
197
|
-
var tickCommand = lazy(() => import("./cli-
|
|
198
|
-
var updateCommand = lazy(() => import("./cli-
|
|
188
|
+
var playCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "playCommand");
|
|
189
|
+
var reconfigureCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "reconfigureCommand");
|
|
190
|
+
var resetCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "resetCommand");
|
|
191
|
+
var scenarioCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "scenarioCommand");
|
|
192
|
+
var teamAddCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "teamAddCommand");
|
|
193
|
+
var teamRemoveCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "teamRemoveCommand");
|
|
194
|
+
var teamRenameCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "teamRenameCommand");
|
|
195
|
+
var timerCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "timerCommand");
|
|
196
|
+
var undoCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "undoCommand");
|
|
197
|
+
var waitingRoomCommand = lazy(() => import("./cli-ZRPWZOCW.js"), "waitingRoomCommand");
|
|
198
|
+
var tickCommand = lazy(() => import("./cli-UY4VDI7W.js"), "tickCommand");
|
|
199
|
+
var updateCommand = lazy(() => import("./cli-64AA7367.js"), "updateCommand");
|
|
199
200
|
var versionCommand = lazy(() => import("./cli-HCRTYQQS.js"), "versionCommand");
|
|
200
|
-
var viewCommand = lazy(() => import("./cli-
|
|
201
|
+
var viewCommand = lazy(() => import("./cli-ZQ2Y3U7F.js"), "viewCommand");
|
|
201
202
|
function commandPath(command) {
|
|
202
203
|
const names = [];
|
|
203
204
|
for (let current = command; current?.parent; current = current.parent) {
|
|
@@ -450,6 +451,7 @@ Examples:
|
|
|
450
451
|
teamCmd.command("rename <team> <name>").description("Rename a team (1-based)").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(teamRenameCommand);
|
|
451
452
|
const participantCmd = program.command("participant").description("Add, rename, and move participants");
|
|
452
453
|
participantCmd.command("add [name]").description("Add a participant to a team").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--team [NUMBER]", "team to add them to (1-based, defaults to 1)").option("--no-server", "run in this process instead of starting a dev server").action(participantAddCommand);
|
|
454
|
+
participantCmd.command("join [name]").description("Join through the session link, letting the session choose the team").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(participantJoinCommand);
|
|
453
455
|
participantCmd.command("rename <participantId> <name>").description("Rename a participant").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(participantRenameCommand);
|
|
454
456
|
participantCmd.command("move <participantId> <team>").description("Move a participant to another team (1-based)").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(participantMoveCommand);
|
|
455
457
|
program.command("waiting-room <action>").description("Open or close the session waiting room").option(WORKING_DIR[0], WORKING_DIR[1], cwd()).option("--no-server", "run in this process instead of starting a dev server").action(waitingRoomCommand);
|