@roster-lock/match-agent 0.2.0 → 0.4.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/client/dist/assets/index-D2395vmC.css +1 -0
- package/client/dist/assets/index-DcKsa72V.js +125 -0
- package/client/dist/index.html +2 -2
- package/client/e2e/lib/env.ts +50 -0
- package/client/e2e/lib/fileDialog.ts +31 -0
- package/client/e2e/lib/mockGamepad.ts +71 -0
- package/client/e2e/lib/onscreenKeyboard.ts +32 -0
- package/client/e2e/playwright.config.ts +48 -0
- package/client/e2e/tests/gamepad-only.spec.ts +274 -0
- package/client/e2e/tests/keyboard-only.spec.ts +67 -0
- package/client/e2e/tsconfig.json +15 -0
- package/client/node_modules/.bin/playwright +17 -0
- package/client/node_modules/.bin/roster-lock-plugin-manager +17 -0
- package/client/node_modules/.vite/deps/@rjsf_core.js +95 -95
- package/client/node_modules/.vite/deps/@rjsf_validator-ajv8.js +4 -3
- package/client/node_modules/.vite/deps/@roster-lock_ts-client.js +25 -25
- package/client/node_modules/.vite/deps/@roster-lock_types.js +2 -1
- package/client/node_modules/.vite/deps/@roster-lock_utils.js +2 -1
- package/client/node_modules/.vite/deps/_metadata.json +27 -27
- package/client/node_modules/.vite/deps/{chunk-NE7PXY4V.js → chunk-3HBL6DQ6.js} +99 -98
- package/client/node_modules/.vite/deps/{chunk-NE7PXY4V.js.map → chunk-3HBL6DQ6.js.map} +3 -3
- package/client/node_modules/.vite/deps/{chunk-4D2L7OBZ.js → chunk-3IRPLLFB.js} +498 -501
- package/client/node_modules/.vite/deps/{chunk-4D2L7OBZ.js.map → chunk-3IRPLLFB.js.map} +1 -1
- package/client/node_modules/.vite/deps/{chunk-I55GDNGV.js → chunk-7DRNB6P7.js} +5 -5
- package/client/node_modules/.vite/deps/{chunk-77TXW5ZT.js → chunk-FFVS6IUX.js} +6 -6
- package/client/node_modules/.vite/deps/{chunk-5KLROPUR.js → chunk-G44QLPFQ.js} +6 -6
- package/client/node_modules/.vite/deps/{chunk-IIDO6PKU.js → chunk-QTQN6EZX.js} +98 -98
- package/client/node_modules/.vite/deps/chunk-QTQN6EZX.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-WMTNK64S.js +1 -0
- package/client/node_modules/.vite/deps/react-dom.js +3 -2
- package/client/node_modules/.vite/deps/react-dom_client.js +12 -12
- package/client/node_modules/.vite/deps/react-dom_client.js.map +1 -1
- package/client/node_modules/.vite/deps/react-router-dom.js +42 -9
- package/client/node_modules/.vite/deps/react.js +2 -1
- package/client/node_modules/.vite/deps/react_jsx-dev-runtime.js +5 -5
- package/client/node_modules/.vite/deps/react_jsx-runtime.js +3 -2
- package/client/package.json +4 -1
- package/client/src/App.tsx +23 -14
- package/client/src/NavBar.tsx +15 -5
- package/client/src/api/matchAgent.ts +208 -5
- package/client/src/bridge/hostBridge.ts +39 -10
- package/client/src/components/FullScreenMenu.tsx +32 -0
- package/client/src/components/GameLauncherSettingsForm.tsx +80 -5
- package/client/src/components/InputHints.tsx +37 -0
- package/client/src/components/InstallGameLauncherLightbox.tsx +27 -14
- package/client/src/components/OnScreenFileDialog.tsx +83 -0
- package/client/src/components/OnScreenKeyboard.tsx +75 -0
- package/client/src/components/Selection/PieceCard.tsx +29 -4
- package/client/src/components/Selection/PiecePreviewPanel.tsx +48 -0
- package/client/src/components/Selection/PieceTypeSection.tsx +124 -46
- package/client/src/components/Selection/PlayerSelectionPanel.tsx +1 -5
- package/client/src/components/Selection/index.tsx +72 -47
- package/client/src/context/GlobalNavContext.tsx +340 -0
- package/client/src/context/SelectionSourceContext.tsx +26 -0
- package/client/src/hooks/useCursorInput.ts +66 -24
- package/client/src/hooks/useDownloadedPieceVersions.ts +39 -0
- package/client/src/hooks/useGridColumns.ts +29 -0
- package/client/src/hooks/useInView.ts +32 -0
- package/client/src/hooks/usePiecePreview.ts +124 -0
- package/client/src/pages/Controls/index.tsx +126 -0
- package/client/src/pages/Game/index.tsx +11 -15
- package/client/src/pages/MatchMaking/index.tsx +14 -7
- package/client/src/pages/PreviewRoster/index.tsx +118 -0
- package/client/src/styles/global.css +355 -6
- package/client/src/utils/inputLabels.ts +25 -0
- package/client/test-results/.last-run.json +4 -0
- package/client/tsconfig.tsbuildinfo +1 -1
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/inputBindings.js +40 -0
- package/dist/config/inputBindings.js.map +1 -0
- package/dist/config/manage.js +1 -0
- package/dist/config/manage.js.map +1 -1
- package/dist/handle-room/version-1/game-launcher/binaries.js +36 -0
- package/dist/handle-room/version-1/game-launcher/binaries.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/listing.js +24 -0
- package/dist/handle-room/version-1/game-launcher/listing.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/preview.js +38 -0
- package/dist/handle-room/version-1/game-launcher/preview.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/process.js +52 -0
- package/dist/handle-room/version-1/game-launcher/process.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/router.js +32 -0
- package/dist/handle-room/version-1/game-launcher/router.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/settings.js +49 -0
- package/dist/handle-room/version-1/game-launcher/settings.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/shared.js +28 -0
- package/dist/handle-room/version-1/game-launcher/shared.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/start.js +76 -0
- package/dist/handle-room/version-1/game-launcher/start.js.map +1 -0
- package/dist/handle-room/version-1/game-launcher/version.js +63 -0
- package/dist/handle-room/version-1/game-launcher/version.js.map +1 -0
- package/dist/handle-room/version-1/globals/FolderDB/SQLFolderDB/ensurePieceExists.js +22 -9
- package/dist/handle-room/version-1/globals/FolderDB/SQLFolderDB/ensurePieceExists.js.map +1 -1
- package/dist/handle-room/version-1/globals/FolderDB/SQLFolderDB/schema.js +50 -1
- package/dist/handle-room/version-1/globals/FolderDB/SQLFolderDB/schema.js.map +1 -1
- package/dist/handle-room/version-1/index.js +15 -15
- package/dist/handle-room/version-1/index.js.map +1 -1
- package/dist/handle-room/version-1/input-bindings.js +22 -0
- package/dist/handle-room/version-1/input-bindings.js.map +1 -0
- package/dist/handle-room/version-1/room-handler-bridge/exchange-and-download-selections.js +2 -1
- package/dist/handle-room/version-1/room-handler-bridge/exchange-and-download-selections.js.map +1 -1
- package/dist/handle-room/version-1/room-handler-bridge/http-handler.js +1 -1
- package/dist/handle-room/version-1/room-handler-bridge/http-handler.js.map +1 -1
- package/dist/handle-room/version-1/room-handler-bridge/steps.js +2 -1
- package/dist/handle-room/version-1/room-handler-bridge/steps.js.map +1 -1
- package/dist/handle-room/version-1/room-handler-bridge/ws-handler.js +2 -2
- package/dist/handle-room/version-1/room-handler-bridge/ws-handler.js.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/util-routers/file-system/env.js +3 -0
- package/dist/util-routers/file-system/env.js.map +1 -0
- package/dist/util-routers/file-system/index.js +31 -0
- package/dist/util-routers/file-system/index.js.map +1 -0
- package/dist/util-routers/file-system/list.js +50 -0
- package/dist/util-routers/file-system/list.js.map +1 -0
- package/dist/util-routers/file-system/resolve-within-root.js +18 -0
- package/dist/util-routers/file-system/resolve-within-root.js.map +1 -0
- package/dist/util-routers/file-system/roster-lock.js +56 -0
- package/dist/util-routers/file-system/roster-lock.js.map +1 -0
- package/dist/utils/pick-file.js +82 -0
- package/dist/utils/pick-file.js.map +1 -0
- package/dist/utils/pick-folder.js +84 -0
- package/dist/utils/pick-folder.js.map +1 -0
- package/package.json +10 -7
- package/src/config/index.ts +8 -3
- package/src/config/inputBindings.ts +56 -0
- package/src/config/manage.ts +7 -0
- package/src/handle-room/version-1/game-launcher/binaries.ts +52 -0
- package/src/handle-room/version-1/game-launcher/listing.ts +36 -0
- package/src/handle-room/version-1/game-launcher/preview.ts +54 -0
- package/src/handle-room/version-1/game-launcher/process.ts +75 -0
- package/src/handle-room/version-1/game-launcher/router.ts +42 -0
- package/src/handle-room/version-1/game-launcher/settings.ts +58 -0
- package/src/handle-room/version-1/game-launcher/shared.ts +34 -0
- package/src/handle-room/version-1/game-launcher/start.ts +113 -0
- package/src/handle-room/version-1/game-launcher/version.ts +85 -0
- package/src/handle-room/version-1/globals/FolderDB/SQLFolderDB/ensurePieceExists.ts +39 -14
- package/src/handle-room/version-1/globals/FolderDB/SQLFolderDB/schema.ts +83 -1
- package/src/handle-room/version-1/globals/FolderDB/types.ts +24 -0
- package/src/handle-room/version-1/globals/types.ts +24 -2
- package/src/handle-room/version-1/index.ts +27 -25
- package/src/handle-room/version-1/input-bindings.ts +19 -0
- package/src/handle-room/version-1/room-handler-bridge/exchange-and-download-selections.ts +4 -1
- package/src/handle-room/version-1/room-handler-bridge/http-handler.ts +4 -1
- package/src/handle-room/version-1/room-handler-bridge/steps.ts +8 -0
- package/src/handle-room/version-1/room-handler-bridge/ws-handler.ts +2 -2
- package/src/index.ts +42 -10
- package/src/util-routers/file-system/env.ts +7 -0
- package/src/util-routers/file-system/index.ts +23 -0
- package/src/util-routers/file-system/list.ts +62 -0
- package/src/util-routers/file-system/resolve-within-root.ts +25 -0
- package/src/util-routers/file-system/roster-lock.ts +74 -0
- package/src/utils/pick-file.ts +81 -0
- package/src/utils/pick-folder.ts +92 -0
- package/tests/integration/filesystem.test.ts +117 -0
- package/tests/integration/game-launcher-binaries.test.ts +263 -0
- package/tests/integration/game-launcher-game-complete.test.ts +111 -0
- package/tests/integration/game-launcher-preview.test.ts +107 -0
- package/tests/integration/game-launcher-settings.test.ts +123 -8
- package/tests/integration/game-processes-ws.test.ts +122 -0
- package/tests/integration/helpers/fakeFolderDB.ts +16 -0
- package/tests/integration/helpers/fakePluginRuntime.ts +10 -1
- package/tests/integration/helpers/relayHarness.ts +24 -0
- package/tests/integration/helpers/server.ts +23 -3
- package/tests/integration/input-bindings.test.ts +94 -0
- package/tests/integration/piece-ensure-ws.test.ts +1 -1
- package/tests/integration/piece-files.test.ts +1 -1
- package/tests/integration/relay-protocol.test.ts +100 -0
- package/tests/integration/roster-lock.test.ts +86 -0
- package/tests/integration/sync-dl.test.ts +1 -1
- package/vitest.config.ts +7 -1
- package/client/dist/assets/index-DeYshswm.js +0 -125
- package/client/dist/assets/index-gxAuIfGQ.css +0 -1
- package/client/node_modules/.vite/deps/chunk-IIDO6PKU.js.map +0 -7
- package/client/node_modules/.vite/deps_temp_ab51ebe9/package.json +0 -3
- package/dist/handle-room/version-1/game-launcher.js +0 -181
- package/dist/handle-room/version-1/game-launcher.js.map +0 -1
- package/src/handle-room/version-1/game-launcher.ts +0 -263
- /package/client/node_modules/.vite/deps/{chunk-I55GDNGV.js.map → chunk-7DRNB6P7.js.map} +0 -0
- /package/client/node_modules/.vite/deps/{chunk-77TXW5ZT.js.map → chunk-FFVS6IUX.js.map} +0 -0
- /package/client/node_modules/.vite/deps/{chunk-5KLROPUR.js.map → chunk-G44QLPFQ.js.map} +0 -0
|
@@ -2,43 +2,43 @@ import {
|
|
|
2
2
|
__commonJS
|
|
3
3
|
} from "./chunk-WMTNK64S.js";
|
|
4
4
|
|
|
5
|
-
//
|
|
5
|
+
// ../../types/dist/v1/shared.js
|
|
6
6
|
var require_shared = __commonJS({
|
|
7
|
-
"
|
|
7
|
+
"../../types/dist/v1/shared.js"(exports) {
|
|
8
8
|
"use strict";
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// ../../types/dist/v1/lock/engine.js
|
|
14
14
|
var require_engine = __commonJS({
|
|
15
|
-
"
|
|
15
|
+
"../../types/dist/v1/lock/engine.js"(exports) {
|
|
16
16
|
"use strict";
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
//
|
|
21
|
+
// ../../types/dist/v1/lock/roster.js
|
|
22
22
|
var require_roster = __commonJS({
|
|
23
|
-
"
|
|
23
|
+
"../../types/dist/v1/lock/roster.js"(exports) {
|
|
24
24
|
"use strict";
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
//
|
|
29
|
+
// ../../types/dist/v1/lock/selection/meta.js
|
|
30
30
|
var require_meta = __commonJS({
|
|
31
|
-
"
|
|
31
|
+
"../../types/dist/v1/lock/selection/meta.js"(exports) {
|
|
32
32
|
"use strict";
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// ../../types/dist/v1/lock/selection/index.js
|
|
38
38
|
var require_selection = __commonJS({
|
|
39
|
-
"
|
|
39
|
+
"../../types/dist/v1/lock/selection/index.js"(exports) {
|
|
40
40
|
"use strict";
|
|
41
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
41
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
42
42
|
if (k2 === void 0) k2 = k;
|
|
43
43
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
44
44
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -47,10 +47,10 @@ var require_selection = __commonJS({
|
|
|
47
47
|
} };
|
|
48
48
|
}
|
|
49
49
|
Object.defineProperty(o, k2, desc);
|
|
50
|
-
}
|
|
50
|
+
} : function(o, m, k, k2) {
|
|
51
51
|
if (k2 === void 0) k2 = k;
|
|
52
52
|
o[k2] = m[k];
|
|
53
|
-
})
|
|
53
|
+
});
|
|
54
54
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
55
55
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
56
56
|
};
|
|
@@ -59,19 +59,19 @@ var require_selection = __commonJS({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
//
|
|
62
|
+
// ../../types/dist/v1/lock/piece-meta.js
|
|
63
63
|
var require_piece_meta = __commonJS({
|
|
64
|
-
"
|
|
64
|
+
"../../types/dist/v1/lock/piece-meta.js"(exports) {
|
|
65
65
|
"use strict";
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
//
|
|
70
|
+
// ../../types/dist/v1/lock/index.js
|
|
71
71
|
var require_lock = __commonJS({
|
|
72
|
-
"
|
|
72
|
+
"../../types/dist/v1/lock/index.js"(exports) {
|
|
73
73
|
"use strict";
|
|
74
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
74
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
75
75
|
if (k2 === void 0) k2 = k;
|
|
76
76
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
77
77
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -80,10 +80,10 @@ var require_lock = __commonJS({
|
|
|
80
80
|
} };
|
|
81
81
|
}
|
|
82
82
|
Object.defineProperty(o, k2, desc);
|
|
83
|
-
}
|
|
83
|
+
} : function(o, m, k, k2) {
|
|
84
84
|
if (k2 === void 0) k2 = k;
|
|
85
85
|
o[k2] = m[k];
|
|
86
|
-
})
|
|
86
|
+
});
|
|
87
87
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
88
88
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
89
89
|
};
|
|
@@ -95,67 +95,67 @@ var require_lock = __commonJS({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
//
|
|
98
|
+
// ../../types/dist/v1/relay/index.js
|
|
99
99
|
var require_relay = __commonJS({
|
|
100
|
-
"
|
|
100
|
+
"../../types/dist/v1/relay/index.js"(exports) {
|
|
101
101
|
"use strict";
|
|
102
102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
|
|
106
|
-
//
|
|
106
|
+
// ../../types/dist/v1/metadata.js
|
|
107
107
|
var require_metadata = __commonJS({
|
|
108
|
-
"
|
|
108
|
+
"../../types/dist/v1/metadata.js"(exports) {
|
|
109
109
|
"use strict";
|
|
110
110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
//
|
|
114
|
+
// ../../types/dist/v1/draft/index.js
|
|
115
115
|
var require_draft = __commonJS({
|
|
116
|
-
"
|
|
116
|
+
"../../types/dist/v1/draft/index.js"(exports) {
|
|
117
117
|
"use strict";
|
|
118
118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// ../../types/dist/v1/request/shared.js
|
|
123
123
|
var require_shared2 = __commonJS({
|
|
124
|
-
"
|
|
124
|
+
"../../types/dist/v1/request/shared.js"(exports) {
|
|
125
125
|
"use strict";
|
|
126
126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
//
|
|
130
|
+
// ../../types/dist/v1/request/input/user-to-client.js
|
|
131
131
|
var require_user_to_client = __commonJS({
|
|
132
|
-
"
|
|
132
|
+
"../../types/dist/v1/request/input/user-to-client.js"(exports) {
|
|
133
133
|
"use strict";
|
|
134
134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
//
|
|
138
|
+
// ../../types/dist/v1/request/input/client-to-agent.js
|
|
139
139
|
var require_client_to_agent = __commonJS({
|
|
140
|
-
"
|
|
140
|
+
"../../types/dist/v1/request/input/client-to-agent.js"(exports) {
|
|
141
141
|
"use strict";
|
|
142
142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
//
|
|
146
|
+
// ../../types/dist/v1/request/input/agent-to-relay.js
|
|
147
147
|
var require_agent_to_relay = __commonJS({
|
|
148
|
-
"
|
|
148
|
+
"../../types/dist/v1/request/input/agent-to-relay.js"(exports) {
|
|
149
149
|
"use strict";
|
|
150
150
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
//
|
|
154
|
+
// ../../types/dist/v1/request/input/index.js
|
|
155
155
|
var require_input = __commonJS({
|
|
156
|
-
"
|
|
156
|
+
"../../types/dist/v1/request/input/index.js"(exports) {
|
|
157
157
|
"use strict";
|
|
158
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
158
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
159
159
|
if (k2 === void 0) k2 = k;
|
|
160
160
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
161
161
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -164,10 +164,10 @@ var require_input = __commonJS({
|
|
|
164
164
|
} };
|
|
165
165
|
}
|
|
166
166
|
Object.defineProperty(o, k2, desc);
|
|
167
|
-
}
|
|
167
|
+
} : function(o, m, k, k2) {
|
|
168
168
|
if (k2 === void 0) k2 = k;
|
|
169
169
|
o[k2] = m[k];
|
|
170
|
-
})
|
|
170
|
+
});
|
|
171
171
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
172
172
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
173
173
|
};
|
|
@@ -178,9 +178,9 @@ var require_input = __commonJS({
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
-
//
|
|
181
|
+
// ../../types/dist/v1/request/output/download-event.js
|
|
182
182
|
var require_download_event = __commonJS({
|
|
183
|
-
"
|
|
183
|
+
"../../types/dist/v1/request/output/download-event.js"(exports) {
|
|
184
184
|
"use strict";
|
|
185
185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
186
186
|
exports.ROSTERLOCK_DOWNLOAD_STATE = void 0;
|
|
@@ -197,11 +197,11 @@ var require_download_event = __commonJS({
|
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
|
|
200
|
-
//
|
|
200
|
+
// ../../types/dist/v1/request/output/index.js
|
|
201
201
|
var require_output = __commonJS({
|
|
202
|
-
"
|
|
202
|
+
"../../types/dist/v1/request/output/index.js"(exports) {
|
|
203
203
|
"use strict";
|
|
204
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
204
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
205
205
|
if (k2 === void 0) k2 = k;
|
|
206
206
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
207
207
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -210,10 +210,10 @@ var require_output = __commonJS({
|
|
|
210
210
|
} };
|
|
211
211
|
}
|
|
212
212
|
Object.defineProperty(o, k2, desc);
|
|
213
|
-
}
|
|
213
|
+
} : function(o, m, k, k2) {
|
|
214
214
|
if (k2 === void 0) k2 = k;
|
|
215
215
|
o[k2] = m[k];
|
|
216
|
-
})
|
|
216
|
+
});
|
|
217
217
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
218
218
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
219
219
|
};
|
|
@@ -222,11 +222,11 @@ var require_output = __commonJS({
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
|
|
225
|
-
//
|
|
225
|
+
// ../../types/dist/v1/request/index.js
|
|
226
226
|
var require_request = __commonJS({
|
|
227
|
-
"
|
|
227
|
+
"../../types/dist/v1/request/index.js"(exports) {
|
|
228
228
|
"use strict";
|
|
229
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
229
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
230
230
|
if (k2 === void 0) k2 = k;
|
|
231
231
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
232
232
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -235,10 +235,10 @@ var require_request = __commonJS({
|
|
|
235
235
|
} };
|
|
236
236
|
}
|
|
237
237
|
Object.defineProperty(o, k2, desc);
|
|
238
|
-
}
|
|
238
|
+
} : function(o, m, k, k2) {
|
|
239
239
|
if (k2 === void 0) k2 = k;
|
|
240
240
|
o[k2] = m[k];
|
|
241
|
-
})
|
|
241
|
+
});
|
|
242
242
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
243
243
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
244
244
|
};
|
|
@@ -249,43 +249,43 @@ var require_request = __commonJS({
|
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
-
//
|
|
252
|
+
// ../../types/dist/v1/runtime/download/types.js
|
|
253
253
|
var require_types = __commonJS({
|
|
254
|
-
"
|
|
254
|
+
"../../types/dist/v1/runtime/download/types.js"(exports) {
|
|
255
255
|
"use strict";
|
|
256
256
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
|
|
260
|
-
//
|
|
260
|
+
// ../../types/dist/v1/runtime/download/Archive.js
|
|
261
261
|
var require_Archive = __commonJS({
|
|
262
|
-
"
|
|
262
|
+
"../../types/dist/v1/runtime/download/Archive.js"(exports) {
|
|
263
263
|
"use strict";
|
|
264
264
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
|
|
268
|
-
//
|
|
268
|
+
// ../../types/dist/v1/runtime/download/Decompressor.js
|
|
269
269
|
var require_Decompressor = __commonJS({
|
|
270
|
-
"
|
|
270
|
+
"../../types/dist/v1/runtime/download/Decompressor.js"(exports) {
|
|
271
271
|
"use strict";
|
|
272
272
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
//
|
|
276
|
+
// ../../types/dist/v1/runtime/download/Protocol.js
|
|
277
277
|
var require_Protocol = __commonJS({
|
|
278
|
-
"
|
|
278
|
+
"../../types/dist/v1/runtime/download/Protocol.js"(exports) {
|
|
279
279
|
"use strict";
|
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
//
|
|
284
|
+
// ../../types/dist/v1/runtime/download/index.js
|
|
285
285
|
var require_download = __commonJS({
|
|
286
|
-
"
|
|
286
|
+
"../../types/dist/v1/runtime/download/index.js"(exports) {
|
|
287
287
|
"use strict";
|
|
288
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
288
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
289
289
|
if (k2 === void 0) k2 = k;
|
|
290
290
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
291
291
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -294,10 +294,10 @@ var require_download = __commonJS({
|
|
|
294
294
|
} };
|
|
295
295
|
}
|
|
296
296
|
Object.defineProperty(o, k2, desc);
|
|
297
|
-
}
|
|
297
|
+
} : function(o, m, k, k2) {
|
|
298
298
|
if (k2 === void 0) k2 = k;
|
|
299
299
|
o[k2] = m[k];
|
|
300
|
-
})
|
|
300
|
+
});
|
|
301
301
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
302
302
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
303
303
|
};
|
|
@@ -309,19 +309,19 @@ var require_download = __commonJS({
|
|
|
309
309
|
}
|
|
310
310
|
});
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../types/dist/v1/runtime/unstrusted-script/purpose-input.js
|
|
313
313
|
var require_purpose_input = __commonJS({
|
|
314
|
-
"
|
|
314
|
+
"../../types/dist/v1/runtime/unstrusted-script/purpose-input.js"(exports) {
|
|
315
315
|
"use strict";
|
|
316
316
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
-
//
|
|
320
|
+
// ../../types/dist/v1/runtime/unstrusted-script/index.js
|
|
321
321
|
var require_unstrusted_script = __commonJS({
|
|
322
|
-
"
|
|
322
|
+
"../../types/dist/v1/runtime/unstrusted-script/index.js"(exports) {
|
|
323
323
|
"use strict";
|
|
324
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
324
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
325
325
|
if (k2 === void 0) k2 = k;
|
|
326
326
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
327
327
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -330,10 +330,10 @@ var require_unstrusted_script = __commonJS({
|
|
|
330
330
|
} };
|
|
331
331
|
}
|
|
332
332
|
Object.defineProperty(o, k2, desc);
|
|
333
|
-
}
|
|
333
|
+
} : function(o, m, k, k2) {
|
|
334
334
|
if (k2 === void 0) k2 = k;
|
|
335
335
|
o[k2] = m[k];
|
|
336
|
-
})
|
|
336
|
+
});
|
|
337
337
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
338
338
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
339
339
|
};
|
|
@@ -342,45 +342,46 @@ var require_unstrusted_script = __commonJS({
|
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
//
|
|
345
|
+
// ../../types/dist/v1/runtime/piece-selection-sort/index.js
|
|
346
346
|
var require_piece_selection_sort = __commonJS({
|
|
347
|
-
"
|
|
347
|
+
"../../types/dist/v1/runtime/piece-selection-sort/index.js"(exports) {
|
|
348
348
|
"use strict";
|
|
349
349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
352
|
|
|
353
|
-
//
|
|
354
|
-
var
|
|
355
|
-
"
|
|
353
|
+
// ../../types/dist/v1/runtime/game-launcher/index.js
|
|
354
|
+
var require_game_launcher = __commonJS({
|
|
355
|
+
"../../types/dist/v1/runtime/game-launcher/index.js"(exports) {
|
|
356
356
|
"use strict";
|
|
357
357
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
|
|
361
|
-
//
|
|
361
|
+
// ../../types/dist/v1/runtime/matchmaker-bridge/index.js
|
|
362
362
|
var require_matchmaker_bridge = __commonJS({
|
|
363
|
-
"
|
|
363
|
+
"../../types/dist/v1/runtime/matchmaker-bridge/index.js"(exports) {
|
|
364
364
|
"use strict";
|
|
365
365
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
366
366
|
exports.MATCHMAKER_BRIDGE_PATHS = void 0;
|
|
367
367
|
exports.MATCHMAKER_BRIDGE_PATHS = {
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
installGameLauncherPlugin: "installGameLauncherPlugin",
|
|
369
|
+
getInstalledGameLauncherPlugins: "getInstalledGameLauncherPlugins",
|
|
370
370
|
getIdentity: "getIdentity",
|
|
371
371
|
requestSelection: "requestSelection",
|
|
372
|
-
|
|
372
|
+
updateGameLauncherSettings: "updateGameLauncherSettings",
|
|
373
|
+
validateGameConfig: "validateGameConfig",
|
|
373
374
|
initiateRelay: "initiateRelay",
|
|
374
375
|
ready: "ready"
|
|
375
376
|
};
|
|
376
377
|
}
|
|
377
378
|
});
|
|
378
379
|
|
|
379
|
-
//
|
|
380
|
+
// ../../types/dist/v1/runtime/index.js
|
|
380
381
|
var require_runtime = __commonJS({
|
|
381
|
-
"
|
|
382
|
+
"../../types/dist/v1/runtime/index.js"(exports) {
|
|
382
383
|
"use strict";
|
|
383
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
384
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
384
385
|
if (k2 === void 0) k2 = k;
|
|
385
386
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
386
387
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -389,10 +390,10 @@ var require_runtime = __commonJS({
|
|
|
389
390
|
} };
|
|
390
391
|
}
|
|
391
392
|
Object.defineProperty(o, k2, desc);
|
|
392
|
-
}
|
|
393
|
+
} : function(o, m, k, k2) {
|
|
393
394
|
if (k2 === void 0) k2 = k;
|
|
394
395
|
o[k2] = m[k];
|
|
395
|
-
})
|
|
396
|
+
});
|
|
396
397
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
397
398
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
398
399
|
};
|
|
@@ -400,16 +401,16 @@ var require_runtime = __commonJS({
|
|
|
400
401
|
__exportStar(require_download(), exports);
|
|
401
402
|
__exportStar(require_unstrusted_script(), exports);
|
|
402
403
|
__exportStar(require_piece_selection_sort(), exports);
|
|
403
|
-
__exportStar(
|
|
404
|
+
__exportStar(require_game_launcher(), exports);
|
|
404
405
|
__exportStar(require_matchmaker_bridge(), exports);
|
|
405
406
|
}
|
|
406
407
|
});
|
|
407
408
|
|
|
408
|
-
//
|
|
409
|
+
// ../../types/dist/v1/index.js
|
|
409
410
|
var require_v1 = __commonJS({
|
|
410
|
-
"
|
|
411
|
+
"../../types/dist/v1/index.js"(exports) {
|
|
411
412
|
"use strict";
|
|
412
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
413
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
413
414
|
if (k2 === void 0) k2 = k;
|
|
414
415
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
415
416
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -418,10 +419,10 @@ var require_v1 = __commonJS({
|
|
|
418
419
|
} };
|
|
419
420
|
}
|
|
420
421
|
Object.defineProperty(o, k2, desc);
|
|
421
|
-
}
|
|
422
|
+
} : function(o, m, k, k2) {
|
|
422
423
|
if (k2 === void 0) k2 = k;
|
|
423
424
|
o[k2] = m[k];
|
|
424
|
-
})
|
|
425
|
+
});
|
|
425
426
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
426
427
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
427
428
|
};
|
|
@@ -436,10 +437,10 @@ var require_v1 = __commonJS({
|
|
|
436
437
|
}
|
|
437
438
|
});
|
|
438
439
|
|
|
439
|
-
//
|
|
440
|
+
// ../../types/dist/index.js
|
|
440
441
|
var require_dist = __commonJS({
|
|
441
|
-
"
|
|
442
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
442
|
+
"../../types/dist/index.js"(exports) {
|
|
443
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
443
444
|
if (k2 === void 0) k2 = k;
|
|
444
445
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
445
446
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -448,10 +449,10 @@ var require_dist = __commonJS({
|
|
|
448
449
|
} };
|
|
449
450
|
}
|
|
450
451
|
Object.defineProperty(o, k2, desc);
|
|
451
|
-
}
|
|
452
|
+
} : function(o, m, k, k2) {
|
|
452
453
|
if (k2 === void 0) k2 = k;
|
|
453
454
|
o[k2] = m[k];
|
|
454
|
-
})
|
|
455
|
+
});
|
|
455
456
|
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
456
457
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
457
458
|
};
|
|
@@ -463,4 +464,4 @@ var require_dist = __commonJS({
|
|
|
463
464
|
export {
|
|
464
465
|
require_dist
|
|
465
466
|
};
|
|
466
|
-
//# sourceMappingURL=chunk-
|
|
467
|
+
//# sourceMappingURL=chunk-3HBL6DQ6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../../types/dist/v1/shared.js", "../../../../../types/dist/v1/lock/engine.js", "../../../../../types/dist/v1/lock/roster.js", "../../../../../types/dist/v1/lock/selection/meta.js", "../../../../../types/src/v1/lock/selection/index.ts", "../../../../../types/dist/v1/lock/piece-meta.js", "../../../../../types/src/v1/lock/index.ts", "../../../../../types/dist/v1/relay/index.js", "../../../../../types/dist/v1/metadata.js", "../../../../../types/dist/v1/draft/index.js", "../../../../../types/dist/v1/request/shared.js", "../../../../../types/dist/v1/request/input/user-to-client.js", "../../../../../types/dist/v1/request/input/client-to-agent.js", "../../../../../types/dist/v1/request/input/agent-to-relay.js", "../../../../../types/src/v1/request/input/index.ts", "../../../../../types/src/v1/request/output/download-event.ts", "../../../../../types/src/v1/request/output/index.ts", "../../../../../types/src/v1/request/index.ts", "../../../../../types/dist/v1/runtime/download/types.js", "../../../../../types/dist/v1/runtime/download/Archive.js", "../../../../../types/dist/v1/runtime/download/Decompressor.js", "../../../../../types/dist/v1/runtime/download/Protocol.js", "../../../../../types/src/v1/runtime/download/index.ts", "../../../../../types/dist/v1/runtime/unstrusted-script/purpose-input.js", "../../../../../types/src/v1/runtime/unstrusted-script/index.ts", "../../../../../types/dist/v1/runtime/piece-selection-sort/index.js", "../../../../../types/dist/v1/runtime/game-
|
|
4
|
-
"sourcesContent": ["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=shared.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=engine.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=roster.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=meta.js.map", "\nimport { PieceType } from \"../../shared\";\nimport { UntrustedScriptRef } from \"./script\";\nimport { SelectionGameControlledConfig } from \"./selection-types/game-controlled\";\nimport { SelectionNormalConfig, UserSelectionValidation } from \"./selection-types/normal\";\nimport { SelectionPreselectedConfig } from \"./selection-types/preselected\";\nimport { SelectionUnselectableConfig } from \"./selection-types/unselectable\";\n\nexport * from \"./meta\";\n\nexport type {\n SelectionPreselectedConfig,\n SelectionGameControlledConfig,\n SelectionNormalConfig,\n SelectionUnselectableConfig,\n UserSelectionValidation,\n};\n\nexport type { UntrustedScriptRef };\n\nexport type RosterLockSelectionConfig = {\n piece: Record<PieceType, (\n | SelectionGameControlledConfig\n | SelectionNormalConfig\n | SelectionPreselectedConfig\n | SelectionUnselectableConfig\n )>,\n\n globalValidation: Array<UntrustedScriptRef>\n\n scriptDictionary: Record<string, { content: string, }>\n};\n\n\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=piece-meta.js.map", "import { RosterLockIdentity } from \"../shared\";\nimport { RosterLockEngineConfig } from \"./engine\";\nimport { RosterLockPiece } from \"./roster\";\nimport { RosterLockSelectionConfig } from \"./selection\";\nimport { RosterLockPieceMeta } from \"./piece-meta\";\n\nexport * from \"./engine\";\nexport * from \"./roster\";\nexport * from \"./selection\";\nexport * from \"./piece-meta\";\n\n\nexport type RosterLockV1Config = {\n configIdentity: RosterLockIdentity<\"lock\", 1>,\n\n author: string,\n title: string,\n version: string,\n engine: RosterLockEngineConfig,\n rosters: Record<string, Array<RosterLockPiece>>,\n selection: RosterLockSelectionConfig,\n pieceMeta: RosterLockPieceMeta,\n}\n\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=metadata.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=shared.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=user-to-client.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=client-to-agent.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=agent-to-relay.js.map", "\nexport * from \"./user-to-client\";\nexport * from \"./client-to-agent\";\nexport * from \"./agent-to-relay\";\n", "\nexport enum ROSTERLOCK_DOWNLOAD_STATE {\n downloadStart = \"download-start\",\n downloadProgress = \"download-progress\",\n downloadValidation = \"download-validation\",\n downloadFinished = \"download-finished\",\n downloadFailure = \"download-failure\",\n\n downloadAllComplete = \"download-all-complete\",\n downloadFullFailure = \"download-full-fail\",\n}\n\nexport type RosterLockDownloadUpdate = (\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadStart,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadProgress,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n progress: number,\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadValidation,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadFinished,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadFailure,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n error: string,\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadAllComplete,\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadFullFailure,\n error: string,\n }\n)\n\n", "\nimport { PlayerId, PieceType, PieceId } from \"../../shared\";\nimport { SelectedPiece } from \"../shared\";\n\nexport * from \"./download-event\";\n\nexport type SharedSelection = {\n type: \"shared\",\n value: Array<SelectedPiece>,\n};\nexport type PersonalSelection = {\n type: \"personal\",\n value: Record<PlayerId, Array<SelectedPiece>>,\n};\n\nexport type FinalSelection = Record<PieceType, (\n | SharedSelection\n | PersonalSelection\n)>;\n\nexport type DownloadResult = {\n pieceType: PieceType,\n pieceId: PieceId,\n pieceVersions: { logic: string, media: string },\n folder: string,\n}\n\nexport type DownloadResultsMap = Record<PieceType, Record<PieceId, DownloadResult>>;\n\nexport type RosterLockV1SyncDLResult = {\n finalSelection: FinalSelection,\n downloadResults: DownloadResultsMap,\n}\n\n", "\nexport * from \"./shared\"\nexport * from \"./input\"\nexport * from \"./output\"\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=Archive.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=Decompressor.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=Protocol.js.map", "\nexport * from \"./types\";\nexport * from \"./Archive\";\nexport * from \"./Decompressor\";\nexport * from \"./Protocol\";\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=purpose-input.js.map", "import { RosterLockV1Config, UntrustedScriptRef } from \"../../lock\";\nimport { ScriptPurposeInput } from \"./purpose-input\";\nexport * from \"./purpose-input\";\n\nexport type ScriptStarter = {\n config: RosterLockV1Config,\n randomSeeds: string[],\n purpose: ScriptPurposeInput,\n entryScript: UntrustedScriptRef\n debugLog?: Array<string>,\n};\n\n\nexport type ScriptGlobals<ScriptModule> = {\n randomFloat: ()=>number,\n randomInt: (min: number, max: number)=>number,\n shuffleIndexes: (length: number, startOffset?: number)=>Array<number>,\n getPieceMeta: (pieceType: string, pieceId: string)=>any,\n getAvailablePieces: (pieceType: string)=>Array<string>,\n requireScript: (path: string, runCode: (newPath: string, content: string)=>Promise<ScriptModule>)=>Promise<ScriptModule>,\n log: (...args: any)=>void\n};\n\n\nexport type ScriptRunner<ScriptModule> = (\n globals: ScriptGlobals<ScriptModule>,\n input: ScriptPurposeInput,\n script: string,\n initialMethod: string\n)=>Promise<unknown>;\n\nexport type UntrustedScript<ScriptModule> = {\n name: string,\n extensions: Array<string>,\n directoryFile: Array<string>,\n runScript: ScriptRunner<ScriptModule>,\n exportConfig: (config: any)=>ScriptModule\n};\n\nexport type UntrustedConfig = {\n name: string,\n extensions: Array<string>,\n runConfig: (configString: string)=>Promise<unknown>\n};\n\nexport type ScriptStackFrame = {\n filename: string | null,\n line: number | null,\n name: string | null,\n};\n\nexport type NormalizedScriptError = {\n type: \"UntrustedScriptError\"\n message: string,\n filename: string | null,\n line: number | null,\n column: number | null,\n stack: ScriptStackFrame[] | null,\n};\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "import { RosterLockV1Config } from \"../../lock\";\nimport { UserSelection } from \"../../request\";\n\n// The wire protocol between a matchmaker UI (loaded in an <iframe>, e.g.\n// examples/services/match-makers/titled-room/client) and its host shell (e.g.\n// core/match-agent/client), carried over a postMessage-backed MessageBridge\n// (@roster-lock/utils). All six calls are iframe -> host; the host never\n// initiates. MessageBridge itself is untyped (see its own docs) - these\n// types exist purely so both sides' thin bridge wrapper modules agree on\n// shape, not because MessageBridge enforces it.\n//\n// Deliberately excludes any raw-signing/private-key primitive - titled-room\n// (the first matchmaker built against this protocol) uses JWT/bearer auth,\n// not signatures, so nothing needs one yet. A future signature-auth\n// matchmaker would need a new request added here, not a workaround.\n\n// installGameRunnerPlugin(pluginName) - host installs the plugin package and\n// opens a lightbox that also lets the user finish local config\n// (binaryLocation) before resolving.\nexport type InstallGameRunnerPluginRequest = { pluginName: string };\nexport type InstallGameRunnerPluginResponse = {};\n\n// getInstalledGameRunnerPlugins() - what game-runner plugins this machine\n// already has installed, so a matchmaker's room UI can tell a user \"you\n// don't have this one yet\" without ever touching match-agent itself.\n// gameConfigSchema is included so a matchmaker can render the room-shared\n// settings a game runner needs (e.g. ikemen-go's teamMode/roundTime/rounds)\n// as a real form (e.g. via rjsf) instead of asking the user for raw JSON -\n// it's already public (GameRunnerPlugin.gameConfigSchema, exposed by match-\n// agent's own /v1/game-runner/available route), just not previously carried\n// across this bridge. Left as `unknown` here rather than ajv's AnySchema,\n// matching how match-agent-client's own GameRunnerSettingsForm already treats\n// localConfigSchema at this same kind of boundary - a consumer narrows it\n// (e.g. an RJSFSchema type guard) at render time instead.\nexport type GetInstalledGameRunnerPluginsResponse = Array<{ id: string, version: string, gameConfigSchema: unknown }>;\n\n// getIdentity() - never includes the private key, only what's safe for a\n// matchmaker to see. playerCount reflects the host's own local player-slot\n// count (Join Settings), not anything the guest can set.\nexport type GetIdentityResponse = { publicKey: string, machineId: string, playerCount: number };\n\n// requestSelection(rosterLockConfig, numPlayers) - host opens the Selection\n// lightbox for exactly `numPlayers` local player slots and resolves with the\n// built selection once confirmed. Unlike the other calls, the selection\n// *content* does cross back to the guest here - it isn't secret, only the\n// private key is.\nexport type RequestSelectionRequest = { rosterLockConfig: RosterLockV1Config, numPlayers: number };\nexport type RequestSelectionResponse = Record<number, UserSelection>;\n\n// updateGameRunnerSettings(pluginName, gameConfig) - room-shared settings a\n// game runner needs before it can start (e.g. ikemen-go's teamMode). The\n// host holds onto this and folds it into the eventual\n// /v1/game-runner/:pluginName/start call it makes later, since the host\n// (not the guest) is the one that ends up calling that route.\nexport type UpdateGameRunnerSettingsRequest = { pluginName: string, gameConfig: unknown };\nexport type UpdateGameRunnerSettingsResponse = {};\n\n// initiateRelay(...) - fire-and-forget event, not a request: the guest is\n// about to be torn down (host navigates away from the iframe entirely), so\n// there's nothing useful to await. Host merges this with whatever it already\n// has from requestSelection/updateGameRunnerSettings and navigates to\n// wherever it runs its own download/start-game flow.\nexport type InitiateRelayEvent = {\n relay: { url: string, roomId: string },\n rosterConfig: RosterLockV1Config,\n gameRunnerPlugin: string,\n isHost: boolean,\n // A direct-tcp game runner's rendezvous coordinator (see\n // plugins/game-runner/shared/direct-ip-coordinator and\n // docs/v2/ikemen-go/game-coordinator.md) - null for game runners that\n // don't use one (a matchmaker resolves this the same way it resolves\n // `relay`, e.g. titled-room's /room/start response).\n coordinator: { host: string, port: number } | null,\n};\n\n// Bridge message/event path names, so both sides reference the same literal\n// strings instead of hand-typing them.\nexport const MATCHMAKER_BRIDGE_PATHS = {\n installGameRunnerPlugin: \"installGameRunnerPlugin\",\n getInstalledGameRunnerPlugins: \"getInstalledGameRunnerPlugins\",\n getIdentity: \"getIdentity\",\n requestSelection: \"requestSelection\",\n updateGameRunnerSettings: \"updateGameRunnerSettings\",\n initiateRelay: \"initiateRelay\",\n ready: \"ready\",\n} as const;\n", "\nexport * from \"./download\";\nexport * from \"./unstrusted-script\";\nexport * from \"./piece-selection-sort\";\nexport * from \"./game-runner\";\nexport * from \"./matchmaker-bridge\";\n", "\nexport * from \"./shared\";\nexport * from \"./lock\";\nexport * from \"./relay\";\nexport * from \"./metadata\";\nexport * from \"./draft\";\nexport * from \"./request\";\nexport * from \"./runtime\";\n", "\nexport * from \"./v1\";\n"],
|
|
5
|
-
"mappings": ";;;;;AAAA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,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AS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;;;;;;
|
|
3
|
+
"sources": ["../../../../../types/dist/v1/shared.js", "../../../../../types/dist/v1/lock/engine.js", "../../../../../types/dist/v1/lock/roster.js", "../../../../../types/dist/v1/lock/selection/meta.js", "../../../../../types/src/v1/lock/selection/index.ts", "../../../../../types/dist/v1/lock/piece-meta.js", "../../../../../types/src/v1/lock/index.ts", "../../../../../types/dist/v1/relay/index.js", "../../../../../types/dist/v1/metadata.js", "../../../../../types/dist/v1/draft/index.js", "../../../../../types/dist/v1/request/shared.js", "../../../../../types/dist/v1/request/input/user-to-client.js", "../../../../../types/dist/v1/request/input/client-to-agent.js", "../../../../../types/dist/v1/request/input/agent-to-relay.js", "../../../../../types/src/v1/request/input/index.ts", "../../../../../types/src/v1/request/output/download-event.ts", "../../../../../types/src/v1/request/output/index.ts", "../../../../../types/src/v1/request/index.ts", "../../../../../types/dist/v1/runtime/download/types.js", "../../../../../types/dist/v1/runtime/download/Archive.js", "../../../../../types/dist/v1/runtime/download/Decompressor.js", "../../../../../types/dist/v1/runtime/download/Protocol.js", "../../../../../types/src/v1/runtime/download/index.ts", "../../../../../types/dist/v1/runtime/unstrusted-script/purpose-input.js", "../../../../../types/src/v1/runtime/unstrusted-script/index.ts", "../../../../../types/dist/v1/runtime/piece-selection-sort/index.js", "../../../../../types/dist/v1/runtime/game-launcher/index.js", "../../../../../types/src/v1/runtime/matchmaker-bridge/index.ts", "../../../../../types/src/v1/runtime/index.ts", "../../../../../types/src/v1/index.ts", "../../../../../types/src/index.ts"],
|
|
4
|
+
"sourcesContent": ["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=shared.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=engine.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=roster.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=meta.js.map", "\nimport { PieceType } from \"../../shared\";\nimport { UntrustedScriptRef } from \"./script\";\nimport { SelectionGameControlledConfig } from \"./selection-types/game-controlled\";\nimport { SelectionNormalConfig, UserSelectionValidation } from \"./selection-types/normal\";\nimport { SelectionPreselectedConfig } from \"./selection-types/preselected\";\nimport { SelectionUnselectableConfig } from \"./selection-types/unselectable\";\n\nexport * from \"./meta\";\n\nexport type {\n SelectionPreselectedConfig,\n SelectionGameControlledConfig,\n SelectionNormalConfig,\n SelectionUnselectableConfig,\n UserSelectionValidation,\n};\n\nexport type { UntrustedScriptRef };\n\nexport type RosterLockSelectionConfig = {\n piece: Record<PieceType, (\n | SelectionGameControlledConfig\n | SelectionNormalConfig\n | SelectionPreselectedConfig\n | SelectionUnselectableConfig\n )>,\n\n globalValidation: Array<UntrustedScriptRef>\n\n scriptDictionary: Record<string, { content: string, }>\n};\n\n\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=piece-meta.js.map", "import { RosterLockIdentity } from \"../shared\";\nimport { RosterLockEngineConfig } from \"./engine\";\nimport { RosterLockPiece } from \"./roster\";\nimport { RosterLockSelectionConfig } from \"./selection\";\nimport { RosterLockPieceMeta } from \"./piece-meta\";\n\nexport * from \"./engine\";\nexport * from \"./roster\";\nexport * from \"./selection\";\nexport * from \"./piece-meta\";\n\n\nexport type RosterLockV1Config = {\n configIdentity: RosterLockIdentity<\"lock\", 1>,\n\n author: string,\n title: string,\n version: string,\n engine: RosterLockEngineConfig,\n rosters: Record<string, Array<RosterLockPiece>>,\n selection: RosterLockSelectionConfig,\n pieceMeta: RosterLockPieceMeta,\n}\n\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=metadata.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=shared.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=user-to-client.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=client-to-agent.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=agent-to-relay.js.map", "\nexport * from \"./user-to-client\";\nexport * from \"./client-to-agent\";\nexport * from \"./agent-to-relay\";\n", "\nexport enum ROSTERLOCK_DOWNLOAD_STATE {\n downloadStart = \"download-start\",\n downloadProgress = \"download-progress\",\n downloadValidation = \"download-validation\",\n downloadFinished = \"download-finished\",\n downloadFailure = \"download-failure\",\n\n downloadAllComplete = \"download-all-complete\",\n downloadFullFailure = \"download-full-fail\",\n}\n\nexport type RosterLockDownloadUpdate = (\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadStart,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadProgress,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n progress: number,\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadValidation,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadFinished,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadFailure,\n pieceType: string,\n pieceVersions: { logic: string, media: string },\n error: string,\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadAllComplete,\n }\n | {\n type: ROSTERLOCK_DOWNLOAD_STATE.downloadFullFailure,\n error: string,\n }\n)\n\n", "\nimport { PlayerId, PieceType, PieceId } from \"../../shared\";\nimport { SelectedPiece } from \"../shared\";\n\nexport * from \"./download-event\";\n\nexport type SharedSelection = {\n type: \"shared\",\n value: Array<SelectedPiece>,\n};\nexport type PersonalSelection = {\n type: \"personal\",\n value: Record<PlayerId, Array<SelectedPiece>>,\n};\n\nexport type FinalSelection = Record<PieceType, (\n | SharedSelection\n | PersonalSelection\n)>;\n\nexport type DownloadResult = {\n pieceType: PieceType,\n pieceId: PieceId,\n pieceVersions: { logic: string, media: string },\n folder: string,\n}\n\nexport type DownloadResultsMap = Record<PieceType, Record<PieceId, DownloadResult>>;\n\nexport type RosterLockV1SyncDLResult = {\n finalSelection: FinalSelection,\n downloadResults: DownloadResultsMap,\n}\n\n", "\nexport * from \"./shared\"\nexport * from \"./input\"\nexport * from \"./output\"\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=Archive.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=Decompressor.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=Protocol.js.map", "\nexport * from \"./types\";\nexport * from \"./Archive\";\nexport * from \"./Decompressor\";\nexport * from \"./Protocol\";\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=purpose-input.js.map", "import { RosterLockV1Config, UntrustedScriptRef } from \"../../lock\";\nimport { ScriptPurposeInput } from \"./purpose-input\";\nexport * from \"./purpose-input\";\n\nexport type ScriptStarter = {\n config: RosterLockV1Config,\n randomSeeds: string[],\n purpose: ScriptPurposeInput,\n entryScript: UntrustedScriptRef\n debugLog?: Array<string>,\n};\n\n\nexport type ScriptGlobals<ScriptModule> = {\n randomFloat: ()=>number,\n randomInt: (min: number, max: number)=>number,\n shuffleIndexes: (length: number, startOffset?: number)=>Array<number>,\n getPieceMeta: (pieceType: string, pieceId: string)=>any,\n getAvailablePieces: (pieceType: string)=>Array<string>,\n requireScript: (path: string, runCode: (newPath: string, content: string)=>Promise<ScriptModule>)=>Promise<ScriptModule>,\n log: (...args: any)=>void\n};\n\n\nexport type ScriptRunner<ScriptModule> = (\n globals: ScriptGlobals<ScriptModule>,\n input: ScriptPurposeInput,\n script: string,\n initialMethod: string\n)=>Promise<unknown>;\n\nexport type UntrustedScript<ScriptModule> = {\n name: string,\n extensions: Array<string>,\n directoryFile: Array<string>,\n runScript: ScriptRunner<ScriptModule>,\n exportConfig: (config: any)=>ScriptModule\n};\n\nexport type UntrustedConfig = {\n name: string,\n extensions: Array<string>,\n runConfig: (configString: string)=>Promise<unknown>\n};\n\nexport type ScriptStackFrame = {\n filename: string | null,\n line: number | null,\n name: string | null,\n};\n\nexport type NormalizedScriptError = {\n type: \"UntrustedScriptError\"\n message: string,\n filename: string | null,\n line: number | null,\n column: number | null,\n stack: ScriptStackFrame[] | null,\n};\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=index.js.map", "import { RosterLockV1Config } from \"../../lock\";\nimport { UserSelection } from \"../../request\";\n\n// The wire protocol between a matchmaker UI (loaded in an <iframe>, e.g.\n// examples/mugen/services/titled-room/client) and its host shell (e.g.\n// core/match-agent/client), carried over a postMessage-backed MessageBridge\n// (@roster-lock/utils). All six calls are iframe -> host; the host never\n// initiates. MessageBridge itself is untyped (see its own docs) - these\n// types exist purely so both sides' thin bridge wrapper modules agree on\n// shape, not because MessageBridge enforces it.\n//\n// Deliberately excludes any raw-signing/private-key primitive - titled-room\n// (the first matchmaker built against this protocol) uses JWT/bearer auth,\n// not signatures, so nothing needs one yet. A future signature-auth\n// matchmaker would need a new request added here, not a workaround.\n\n// installGameLauncherPlugin(pluginName) - host installs the plugin package and\n// opens a lightbox that also lets the user finish local config\n// (binaryLocation) before resolving.\nexport type InstallGameLauncherPluginRequest = { pluginName: string };\nexport type InstallGameLauncherPluginResponse = {};\n\n// getInstalledGameLauncherPlugins() - what game-launcher plugins this machine\n// already has installed, so a matchmaker's room UI can tell a user \"you\n// don't have this one yet\" without ever touching match-agent itself.\n// gameConfigSchema is included so a matchmaker can render the room-shared\n// settings a game launcher needs (e.g. ikemen-go's teamMode/roundTime/rounds)\n// as a real form (e.g. via rjsf) instead of asking the user for raw JSON -\n// it's already public (GameLauncherPlugin.gameConfigSchema, exposed by match-\n// agent's own /v1/game-launcher/available route), just not previously carried\n// across this bridge. Left as `unknown` here rather than ajv's AnySchema,\n// matching how match-agent-client's own GameLauncherSettingsForm already treats\n// localConfigSchema at this same kind of boundary - a consumer narrows it\n// (e.g. an RJSFSchema type guard) at render time instead.\nexport type GetInstalledGameLauncherPluginsResponse = Array<{ id: string, version: string, gameConfigSchema: unknown }>;\n\n// getIdentity() - never includes the private key, only what's safe for a\n// matchmaker to see. playerCount reflects the host's own local player-slot\n// count (Join Settings), not anything the guest can set.\nexport type GetIdentityResponse = { publicKey: string, machineId: string, playerCount: number };\n\n// requestSelection(rosterLockConfig, numPlayers, pluginName) - host opens the\n// Selection lightbox for exactly `numPlayers` local player slots and resolves\n// with the built selection once confirmed. Unlike the other calls, the\n// selection *content* does cross back to the guest here - it isn't secret,\n// only the private key is. pluginName is which installed game-launcher\n// plugin the room is using - the guest already knows this (it's the same\n// value passed to updateGameLauncherSettings/validateGameConfig), and the\n// Selection lightbox needs it to ask that specific plugin for live piece\n// previews (see GameLauncherPlugin[\"getPreview\"]).\nexport type RequestSelectionRequest = { rosterLockConfig: RosterLockV1Config, numPlayers: number, pluginName: string };\nexport type RequestSelectionResponse = Record<number, UserSelection>;\n\n// updateGameLauncherSettings(pluginName, gameConfig) - room-shared settings a\n// game launcher needs before it can start (e.g. ikemen-go's teamMode). The\n// host holds onto this and folds it into the eventual\n// /v1/game-launcher/:pluginName/start call it makes later, since the host\n// (not the guest) is the one that ends up calling that route.\nexport type UpdateGameLauncherSettingsRequest = { pluginName: string, gameConfig: unknown };\nexport type UpdateGameLauncherSettingsResponse = {};\n\n// validateGameConfig(pluginName, gameConfig, rosterConfig) - asks the host to run the installed\n// plugin's own GameLauncherPlugin.validateGameConfig (if it has one) against a proposed\n// gameConfig/rosterConfig pairing, before a room is created - e.g. catching a teamMode override\n// that's incompatible with the roster's selection config. problems is empty both when the plugin\n// has no such hook and when it found nothing wrong - a matchmaker UI doesn't need to tell those\n// apart, only whether it's safe to proceed.\nexport type ValidateGameConfigRequest = { pluginName: string, gameConfig: unknown, rosterConfig: RosterLockV1Config };\nexport type ValidateGameConfigResponse = { problems: Array<string> };\n\n// initiateRelay(...) - fire-and-forget event, not a request: the guest is\n// about to be torn down (host navigates away from the iframe entirely), so\n// there's nothing useful to await. Host merges this with whatever it already\n// has from requestSelection/updateGameLauncherSettings and navigates to\n// wherever it runs its own download/start-game flow.\nexport type InitiateRelayEvent = {\n relay: { url: string, roomId: string },\n rosterConfig: RosterLockV1Config,\n gameLauncherPlugin: string,\n isHost: boolean,\n // A direct-tcp game launcher's rendezvous coordinator (see\n // plugins/game-launcher/shared/direct-ip-coordinator and\n // docs/v2/ikemen-go/game-coordinator.md) - null for game launchers that\n // don't use one (a matchmaker resolves this the same way it resolves\n // `relay`, e.g. titled-room's /room/start response).\n coordinator: { host: string, port: number } | null,\n};\n\n// Bridge message/event path names, so both sides reference the same literal\n// strings instead of hand-typing them.\nexport const MATCHMAKER_BRIDGE_PATHS = {\n installGameLauncherPlugin: \"installGameLauncherPlugin\",\n getInstalledGameLauncherPlugins: \"getInstalledGameLauncherPlugins\",\n getIdentity: \"getIdentity\",\n requestSelection: \"requestSelection\",\n updateGameLauncherSettings: \"updateGameLauncherSettings\",\n validateGameConfig: \"validateGameConfig\",\n initiateRelay: \"initiateRelay\",\n ready: \"ready\",\n} as const;\n", "\nexport * from \"./download\";\nexport * from \"./unstrusted-script\";\nexport * from \"./piece-selection-sort\";\nexport * from \"./game-launcher\";\nexport * from \"./matchmaker-bridge\";\n", "\nexport * from \"./shared\";\nexport * from \"./lock\";\nexport * from \"./relay\";\nexport * from \"./metadata\";\nexport * from \"./draft\";\nexport * from \"./request\";\nexport * from \"./runtime\";\n", "\nexport * from \"./v1\";\n"],
|
|
5
|
+
"mappings": ";;;;;AAAA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACO5D,iBAAA,gBAAA,OAAA;;;;;ACRA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACK5D,iBAAA,kBAAA,OAAA;AACA,iBAAA,kBAAA,OAAA;AACA,iBAAA,qBAAA,OAAA;AACA,iBAAA,sBAAA,OAAA;;;;;ACTA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D,IAAAA,kBAAA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SA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