@roster-lock/match-agent 0.1.0 → 0.2.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-DeYshswm.js +125 -0
- package/client/dist/assets/index-gxAuIfGQ.css +1 -0
- package/client/dist/index.html +13 -0
- package/client/index.html +12 -0
- package/client/node_modules/.bin/terser +17 -0
- package/client/node_modules/.bin/tsc +17 -0
- package/client/node_modules/.bin/vite +17 -0
- package/client/node_modules/.vite/deps/@rjsf_core.js +6609 -0
- package/client/node_modules/.vite/deps/@rjsf_core.js.map +7 -0
- package/client/node_modules/.vite/deps/@rjsf_validator-ajv8.js +13 -0
- package/client/node_modules/.vite/deps/@rjsf_validator-ajv8.js.map +7 -0
- package/client/node_modules/.vite/deps/@roster-lock_ts-client.js +419 -0
- package/client/node_modules/.vite/deps/@roster-lock_ts-client.js.map +7 -0
- package/client/node_modules/.vite/deps/@roster-lock_types.js +5 -0
- package/client/node_modules/.vite/deps/@roster-lock_types.js.map +7 -0
- package/client/node_modules/.vite/deps/@roster-lock_utils.js +5 -0
- package/client/node_modules/.vite/deps/@roster-lock_utils.js.map +7 -0
- package/client/node_modules/.vite/deps/_metadata.json +97 -0
- package/client/node_modules/.vite/deps/chunk-4D2L7OBZ.js +16039 -0
- package/client/node_modules/.vite/deps/chunk-4D2L7OBZ.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-5KLROPUR.js +292 -0
- package/client/node_modules/.vite/deps/chunk-5KLROPUR.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-77TXW5ZT.js +280 -0
- package/client/node_modules/.vite/deps/chunk-77TXW5ZT.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-I55GDNGV.js +1004 -0
- package/client/node_modules/.vite/deps/chunk-I55GDNGV.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-IIDO6PKU.js +2337 -0
- package/client/node_modules/.vite/deps/chunk-IIDO6PKU.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-NE7PXY4V.js +466 -0
- package/client/node_modules/.vite/deps/chunk-NE7PXY4V.js.map +7 -0
- package/client/node_modules/.vite/deps/chunk-WMTNK64S.js +52 -0
- package/client/node_modules/.vite/deps/chunk-WMTNK64S.js.map +7 -0
- package/client/node_modules/.vite/deps/package.json +3 -0
- package/client/node_modules/.vite/deps/react-dom.js +6 -0
- package/client/node_modules/.vite/deps/react-dom.js.map +7 -0
- package/client/node_modules/.vite/deps/react-dom_client.js +20217 -0
- package/client/node_modules/.vite/deps/react-dom_client.js.map +7 -0
- package/client/node_modules/.vite/deps/react-router-dom.js +14702 -0
- package/client/node_modules/.vite/deps/react-router-dom.js.map +7 -0
- package/client/node_modules/.vite/deps/react.js +5 -0
- package/client/node_modules/.vite/deps/react.js.map +7 -0
- package/client/node_modules/.vite/deps/react_jsx-dev-runtime.js +278 -0
- package/client/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
- package/client/node_modules/.vite/deps/react_jsx-runtime.js +6 -0
- package/client/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
- package/client/node_modules/.vite/deps_temp_ab51ebe9/package.json +3 -0
- package/client/package.json +30 -0
- package/client/src/App.tsx +56 -0
- package/client/src/NavBar.tsx +13 -0
- package/client/src/api/matchAgent.ts +159 -0
- package/client/src/bridge/hostBridge.ts +149 -0
- package/client/src/components/GameLauncherSettingsForm.tsx +140 -0
- package/client/src/components/InstallGameLauncherLightbox.tsx +31 -0
- package/client/src/components/Lightbox.tsx +15 -0
- package/client/src/components/RequireConnection.tsx +9 -0
- package/client/src/components/Selection/PieceCard.tsx +36 -0
- package/client/src/components/Selection/PieceTypeSection.tsx +112 -0
- package/client/src/components/Selection/PieceTypeTabs.tsx +31 -0
- package/client/src/components/Selection/PlayerSelectionPanel.tsx +40 -0
- package/client/src/components/Selection/index.tsx +147 -0
- package/client/src/components/Selection/selectionPlan.ts +75 -0
- package/client/src/context/DownloadSessionContext.tsx +48 -0
- package/client/src/context/IdentityContext.tsx +53 -0
- package/client/src/context/JoinSettingsContext.tsx +83 -0
- package/client/src/context/MatchAgentContext.tsx +85 -0
- package/client/src/hooks/useCursorInput.ts +55 -0
- package/client/src/hooks/useGamepads.ts +31 -0
- package/client/src/main.tsx +10 -0
- package/client/src/pages/Connect/index.tsx +46 -0
- package/client/src/pages/Download/index.tsx +175 -0
- package/client/src/pages/Game/index.tsx +65 -0
- package/client/src/pages/GameLauncher/Detail.tsx +12 -0
- package/client/src/pages/GameLauncher/index.tsx +32 -0
- package/client/src/pages/JoinSettings/index.tsx +58 -0
- package/client/src/pages/MatchMaking/index.tsx +190 -0
- package/client/src/styles/global.css +355 -0
- package/client/tsconfig.json +17 -0
- package/client/tsconfig.tsbuildinfo +1 -0
- package/client/vite.config.ts +33 -0
- package/dist/config/manage.js.map +1 -1
- package/dist/handle-room/version-1/game-launcher.js +181 -0
- package/dist/handle-room/version-1/game-launcher.js.map +1 -0
- package/dist/handle-room/version-1/index.js +15 -2
- package/dist/handle-room/version-1/index.js.map +1 -1
- package/dist/handle-room/version-1/piece-sort.js +1 -0
- package/dist/handle-room/version-1/piece-sort.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/serve-client.js +88 -0
- package/dist/serve-client.js.map +1 -0
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +12 -6
- package/src/config/manage.ts +5 -1
- package/src/handle-room/version-1/game-launcher.ts +263 -0
- package/src/handle-room/version-1/globals/types.ts +24 -0
- package/src/handle-room/version-1/index.ts +23 -3
- package/src/handle-room/version-1/piece-sort.ts +1 -1
- package/src/index.ts +25 -5
- package/src/serve-client.ts +100 -0
- package/src/server.ts +1 -1
- package/tests/integration/game-launcher-list.test.ts +77 -0
- package/tests/integration/game-launcher-settings.test.ts +138 -0
- package/tests/integration/game-launcher-start.test.ts +81 -0
- package/tests/integration/helpers/fakePluginRuntime.ts +26 -1
- package/tests/integration/helpers/server.ts +8 -2
- package/src/index.old.ts +0 -71
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-WMTNK64S.js";
|
|
4
|
+
|
|
5
|
+
// ../types/dist/v1/shared.js
|
|
6
|
+
var require_shared = __commonJS({
|
|
7
|
+
"../types/dist/v1/shared.js"(exports) {
|
|
8
|
+
"use strict";
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// ../types/dist/v1/lock/engine.js
|
|
14
|
+
var require_engine = __commonJS({
|
|
15
|
+
"../types/dist/v1/lock/engine.js"(exports) {
|
|
16
|
+
"use strict";
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// ../types/dist/v1/lock/roster.js
|
|
22
|
+
var require_roster = __commonJS({
|
|
23
|
+
"../types/dist/v1/lock/roster.js"(exports) {
|
|
24
|
+
"use strict";
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// ../types/dist/v1/lock/selection/meta.js
|
|
30
|
+
var require_meta = __commonJS({
|
|
31
|
+
"../types/dist/v1/lock/selection/meta.js"(exports) {
|
|
32
|
+
"use strict";
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// ../types/dist/v1/lock/selection/index.js
|
|
38
|
+
var require_selection = __commonJS({
|
|
39
|
+
"../types/dist/v1/lock/selection/index.js"(exports) {
|
|
40
|
+
"use strict";
|
|
41
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
42
|
+
if (k2 === void 0) k2 = k;
|
|
43
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
44
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45
|
+
desc = { enumerable: true, get: function() {
|
|
46
|
+
return m[k];
|
|
47
|
+
} };
|
|
48
|
+
}
|
|
49
|
+
Object.defineProperty(o, k2, desc);
|
|
50
|
+
}) : (function(o, m, k, k2) {
|
|
51
|
+
if (k2 === void 0) k2 = k;
|
|
52
|
+
o[k2] = m[k];
|
|
53
|
+
}));
|
|
54
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
55
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
__exportStar(require_meta(), exports);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// ../types/dist/v1/lock/piece-meta.js
|
|
63
|
+
var require_piece_meta = __commonJS({
|
|
64
|
+
"../types/dist/v1/lock/piece-meta.js"(exports) {
|
|
65
|
+
"use strict";
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../types/dist/v1/lock/index.js
|
|
71
|
+
var require_lock = __commonJS({
|
|
72
|
+
"../types/dist/v1/lock/index.js"(exports) {
|
|
73
|
+
"use strict";
|
|
74
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
75
|
+
if (k2 === void 0) k2 = k;
|
|
76
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
77
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
78
|
+
desc = { enumerable: true, get: function() {
|
|
79
|
+
return m[k];
|
|
80
|
+
} };
|
|
81
|
+
}
|
|
82
|
+
Object.defineProperty(o, k2, desc);
|
|
83
|
+
}) : (function(o, m, k, k2) {
|
|
84
|
+
if (k2 === void 0) k2 = k;
|
|
85
|
+
o[k2] = m[k];
|
|
86
|
+
}));
|
|
87
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
88
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
89
|
+
};
|
|
90
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
91
|
+
__exportStar(require_engine(), exports);
|
|
92
|
+
__exportStar(require_roster(), exports);
|
|
93
|
+
__exportStar(require_selection(), exports);
|
|
94
|
+
__exportStar(require_piece_meta(), exports);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// ../types/dist/v1/relay/index.js
|
|
99
|
+
var require_relay = __commonJS({
|
|
100
|
+
"../types/dist/v1/relay/index.js"(exports) {
|
|
101
|
+
"use strict";
|
|
102
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// ../types/dist/v1/metadata.js
|
|
107
|
+
var require_metadata = __commonJS({
|
|
108
|
+
"../types/dist/v1/metadata.js"(exports) {
|
|
109
|
+
"use strict";
|
|
110
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// ../types/dist/v1/draft/index.js
|
|
115
|
+
var require_draft = __commonJS({
|
|
116
|
+
"../types/dist/v1/draft/index.js"(exports) {
|
|
117
|
+
"use strict";
|
|
118
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
// ../types/dist/v1/request/shared.js
|
|
123
|
+
var require_shared2 = __commonJS({
|
|
124
|
+
"../types/dist/v1/request/shared.js"(exports) {
|
|
125
|
+
"use strict";
|
|
126
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// ../types/dist/v1/request/input/user-to-client.js
|
|
131
|
+
var require_user_to_client = __commonJS({
|
|
132
|
+
"../types/dist/v1/request/input/user-to-client.js"(exports) {
|
|
133
|
+
"use strict";
|
|
134
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// ../types/dist/v1/request/input/client-to-agent.js
|
|
139
|
+
var require_client_to_agent = __commonJS({
|
|
140
|
+
"../types/dist/v1/request/input/client-to-agent.js"(exports) {
|
|
141
|
+
"use strict";
|
|
142
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
// ../types/dist/v1/request/input/agent-to-relay.js
|
|
147
|
+
var require_agent_to_relay = __commonJS({
|
|
148
|
+
"../types/dist/v1/request/input/agent-to-relay.js"(exports) {
|
|
149
|
+
"use strict";
|
|
150
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// ../types/dist/v1/request/input/index.js
|
|
155
|
+
var require_input = __commonJS({
|
|
156
|
+
"../types/dist/v1/request/input/index.js"(exports) {
|
|
157
|
+
"use strict";
|
|
158
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
159
|
+
if (k2 === void 0) k2 = k;
|
|
160
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
161
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
162
|
+
desc = { enumerable: true, get: function() {
|
|
163
|
+
return m[k];
|
|
164
|
+
} };
|
|
165
|
+
}
|
|
166
|
+
Object.defineProperty(o, k2, desc);
|
|
167
|
+
}) : (function(o, m, k, k2) {
|
|
168
|
+
if (k2 === void 0) k2 = k;
|
|
169
|
+
o[k2] = m[k];
|
|
170
|
+
}));
|
|
171
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
172
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
173
|
+
};
|
|
174
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175
|
+
__exportStar(require_user_to_client(), exports);
|
|
176
|
+
__exportStar(require_client_to_agent(), exports);
|
|
177
|
+
__exportStar(require_agent_to_relay(), exports);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
// ../types/dist/v1/request/output/download-event.js
|
|
182
|
+
var require_download_event = __commonJS({
|
|
183
|
+
"../types/dist/v1/request/output/download-event.js"(exports) {
|
|
184
|
+
"use strict";
|
|
185
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
186
|
+
exports.ROSTERLOCK_DOWNLOAD_STATE = void 0;
|
|
187
|
+
var ROSTERLOCK_DOWNLOAD_STATE;
|
|
188
|
+
(function(ROSTERLOCK_DOWNLOAD_STATE2) {
|
|
189
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadStart"] = "download-start";
|
|
190
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadProgress"] = "download-progress";
|
|
191
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadValidation"] = "download-validation";
|
|
192
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadFinished"] = "download-finished";
|
|
193
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadFailure"] = "download-failure";
|
|
194
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadAllComplete"] = "download-all-complete";
|
|
195
|
+
ROSTERLOCK_DOWNLOAD_STATE2["downloadFullFailure"] = "download-full-fail";
|
|
196
|
+
})(ROSTERLOCK_DOWNLOAD_STATE || (exports.ROSTERLOCK_DOWNLOAD_STATE = ROSTERLOCK_DOWNLOAD_STATE = {}));
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
// ../types/dist/v1/request/output/index.js
|
|
201
|
+
var require_output = __commonJS({
|
|
202
|
+
"../types/dist/v1/request/output/index.js"(exports) {
|
|
203
|
+
"use strict";
|
|
204
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
205
|
+
if (k2 === void 0) k2 = k;
|
|
206
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
207
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
208
|
+
desc = { enumerable: true, get: function() {
|
|
209
|
+
return m[k];
|
|
210
|
+
} };
|
|
211
|
+
}
|
|
212
|
+
Object.defineProperty(o, k2, desc);
|
|
213
|
+
}) : (function(o, m, k, k2) {
|
|
214
|
+
if (k2 === void 0) k2 = k;
|
|
215
|
+
o[k2] = m[k];
|
|
216
|
+
}));
|
|
217
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
218
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
219
|
+
};
|
|
220
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221
|
+
__exportStar(require_download_event(), exports);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
// ../types/dist/v1/request/index.js
|
|
226
|
+
var require_request = __commonJS({
|
|
227
|
+
"../types/dist/v1/request/index.js"(exports) {
|
|
228
|
+
"use strict";
|
|
229
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
230
|
+
if (k2 === void 0) k2 = k;
|
|
231
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
232
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
233
|
+
desc = { enumerable: true, get: function() {
|
|
234
|
+
return m[k];
|
|
235
|
+
} };
|
|
236
|
+
}
|
|
237
|
+
Object.defineProperty(o, k2, desc);
|
|
238
|
+
}) : (function(o, m, k, k2) {
|
|
239
|
+
if (k2 === void 0) k2 = k;
|
|
240
|
+
o[k2] = m[k];
|
|
241
|
+
}));
|
|
242
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
243
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
244
|
+
};
|
|
245
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
246
|
+
__exportStar(require_shared2(), exports);
|
|
247
|
+
__exportStar(require_input(), exports);
|
|
248
|
+
__exportStar(require_output(), exports);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
// ../types/dist/v1/runtime/download/types.js
|
|
253
|
+
var require_types = __commonJS({
|
|
254
|
+
"../types/dist/v1/runtime/download/types.js"(exports) {
|
|
255
|
+
"use strict";
|
|
256
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
// ../types/dist/v1/runtime/download/Archive.js
|
|
261
|
+
var require_Archive = __commonJS({
|
|
262
|
+
"../types/dist/v1/runtime/download/Archive.js"(exports) {
|
|
263
|
+
"use strict";
|
|
264
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
// ../types/dist/v1/runtime/download/Decompressor.js
|
|
269
|
+
var require_Decompressor = __commonJS({
|
|
270
|
+
"../types/dist/v1/runtime/download/Decompressor.js"(exports) {
|
|
271
|
+
"use strict";
|
|
272
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
// ../types/dist/v1/runtime/download/Protocol.js
|
|
277
|
+
var require_Protocol = __commonJS({
|
|
278
|
+
"../types/dist/v1/runtime/download/Protocol.js"(exports) {
|
|
279
|
+
"use strict";
|
|
280
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
// ../types/dist/v1/runtime/download/index.js
|
|
285
|
+
var require_download = __commonJS({
|
|
286
|
+
"../types/dist/v1/runtime/download/index.js"(exports) {
|
|
287
|
+
"use strict";
|
|
288
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
289
|
+
if (k2 === void 0) k2 = k;
|
|
290
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
291
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
292
|
+
desc = { enumerable: true, get: function() {
|
|
293
|
+
return m[k];
|
|
294
|
+
} };
|
|
295
|
+
}
|
|
296
|
+
Object.defineProperty(o, k2, desc);
|
|
297
|
+
}) : (function(o, m, k, k2) {
|
|
298
|
+
if (k2 === void 0) k2 = k;
|
|
299
|
+
o[k2] = m[k];
|
|
300
|
+
}));
|
|
301
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
302
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
303
|
+
};
|
|
304
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
305
|
+
__exportStar(require_types(), exports);
|
|
306
|
+
__exportStar(require_Archive(), exports);
|
|
307
|
+
__exportStar(require_Decompressor(), exports);
|
|
308
|
+
__exportStar(require_Protocol(), exports);
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
// ../types/dist/v1/runtime/unstrusted-script/purpose-input.js
|
|
313
|
+
var require_purpose_input = __commonJS({
|
|
314
|
+
"../types/dist/v1/runtime/unstrusted-script/purpose-input.js"(exports) {
|
|
315
|
+
"use strict";
|
|
316
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// ../types/dist/v1/runtime/unstrusted-script/index.js
|
|
321
|
+
var require_unstrusted_script = __commonJS({
|
|
322
|
+
"../types/dist/v1/runtime/unstrusted-script/index.js"(exports) {
|
|
323
|
+
"use strict";
|
|
324
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
325
|
+
if (k2 === void 0) k2 = k;
|
|
326
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
327
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
328
|
+
desc = { enumerable: true, get: function() {
|
|
329
|
+
return m[k];
|
|
330
|
+
} };
|
|
331
|
+
}
|
|
332
|
+
Object.defineProperty(o, k2, desc);
|
|
333
|
+
}) : (function(o, m, k, k2) {
|
|
334
|
+
if (k2 === void 0) k2 = k;
|
|
335
|
+
o[k2] = m[k];
|
|
336
|
+
}));
|
|
337
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
338
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
339
|
+
};
|
|
340
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
341
|
+
__exportStar(require_purpose_input(), exports);
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
// ../types/dist/v1/runtime/piece-selection-sort/index.js
|
|
346
|
+
var require_piece_selection_sort = __commonJS({
|
|
347
|
+
"../types/dist/v1/runtime/piece-selection-sort/index.js"(exports) {
|
|
348
|
+
"use strict";
|
|
349
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
// ../types/dist/v1/runtime/game-runner/index.js
|
|
354
|
+
var require_game_runner = __commonJS({
|
|
355
|
+
"../types/dist/v1/runtime/game-runner/index.js"(exports) {
|
|
356
|
+
"use strict";
|
|
357
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
// ../types/dist/v1/runtime/matchmaker-bridge/index.js
|
|
362
|
+
var require_matchmaker_bridge = __commonJS({
|
|
363
|
+
"../types/dist/v1/runtime/matchmaker-bridge/index.js"(exports) {
|
|
364
|
+
"use strict";
|
|
365
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
366
|
+
exports.MATCHMAKER_BRIDGE_PATHS = void 0;
|
|
367
|
+
exports.MATCHMAKER_BRIDGE_PATHS = {
|
|
368
|
+
installGameRunnerPlugin: "installGameRunnerPlugin",
|
|
369
|
+
getInstalledGameRunnerPlugins: "getInstalledGameRunnerPlugins",
|
|
370
|
+
getIdentity: "getIdentity",
|
|
371
|
+
requestSelection: "requestSelection",
|
|
372
|
+
updateGameRunnerSettings: "updateGameRunnerSettings",
|
|
373
|
+
initiateRelay: "initiateRelay",
|
|
374
|
+
ready: "ready"
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
// ../types/dist/v1/runtime/index.js
|
|
380
|
+
var require_runtime = __commonJS({
|
|
381
|
+
"../types/dist/v1/runtime/index.js"(exports) {
|
|
382
|
+
"use strict";
|
|
383
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
384
|
+
if (k2 === void 0) k2 = k;
|
|
385
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
386
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
387
|
+
desc = { enumerable: true, get: function() {
|
|
388
|
+
return m[k];
|
|
389
|
+
} };
|
|
390
|
+
}
|
|
391
|
+
Object.defineProperty(o, k2, desc);
|
|
392
|
+
}) : (function(o, m, k, k2) {
|
|
393
|
+
if (k2 === void 0) k2 = k;
|
|
394
|
+
o[k2] = m[k];
|
|
395
|
+
}));
|
|
396
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
397
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
398
|
+
};
|
|
399
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
400
|
+
__exportStar(require_download(), exports);
|
|
401
|
+
__exportStar(require_unstrusted_script(), exports);
|
|
402
|
+
__exportStar(require_piece_selection_sort(), exports);
|
|
403
|
+
__exportStar(require_game_runner(), exports);
|
|
404
|
+
__exportStar(require_matchmaker_bridge(), exports);
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
// ../types/dist/v1/index.js
|
|
409
|
+
var require_v1 = __commonJS({
|
|
410
|
+
"../types/dist/v1/index.js"(exports) {
|
|
411
|
+
"use strict";
|
|
412
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
413
|
+
if (k2 === void 0) k2 = k;
|
|
414
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
415
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
416
|
+
desc = { enumerable: true, get: function() {
|
|
417
|
+
return m[k];
|
|
418
|
+
} };
|
|
419
|
+
}
|
|
420
|
+
Object.defineProperty(o, k2, desc);
|
|
421
|
+
}) : (function(o, m, k, k2) {
|
|
422
|
+
if (k2 === void 0) k2 = k;
|
|
423
|
+
o[k2] = m[k];
|
|
424
|
+
}));
|
|
425
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
426
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
427
|
+
};
|
|
428
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
429
|
+
__exportStar(require_shared(), exports);
|
|
430
|
+
__exportStar(require_lock(), exports);
|
|
431
|
+
__exportStar(require_relay(), exports);
|
|
432
|
+
__exportStar(require_metadata(), exports);
|
|
433
|
+
__exportStar(require_draft(), exports);
|
|
434
|
+
__exportStar(require_request(), exports);
|
|
435
|
+
__exportStar(require_runtime(), exports);
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
// ../types/dist/index.js
|
|
440
|
+
var require_dist = __commonJS({
|
|
441
|
+
"../types/dist/index.js"(exports) {
|
|
442
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
443
|
+
if (k2 === void 0) k2 = k;
|
|
444
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
445
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
446
|
+
desc = { enumerable: true, get: function() {
|
|
447
|
+
return m[k];
|
|
448
|
+
} };
|
|
449
|
+
}
|
|
450
|
+
Object.defineProperty(o, k2, desc);
|
|
451
|
+
}) : (function(o, m, k, k2) {
|
|
452
|
+
if (k2 === void 0) k2 = k;
|
|
453
|
+
o[k2] = m[k];
|
|
454
|
+
}));
|
|
455
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
456
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
457
|
+
};
|
|
458
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
459
|
+
__exportStar(require_v1(), exports);
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
|
|
463
|
+
export {
|
|
464
|
+
require_dist
|
|
465
|
+
};
|
|
466
|
+
//# sourceMappingURL=chunk-NE7PXY4V.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
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-runner/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/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": "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",
|
|
6
|
+
"names": ["require_shared", "ROSTERLOCK_DOWNLOAD_STATE"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __typeError = (msg) => {
|
|
8
|
+
throw TypeError(msg);
|
|
9
|
+
};
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __esm = (fn, res) => function __init() {
|
|
12
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
13
|
+
};
|
|
14
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
39
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
40
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
41
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
__esm,
|
|
45
|
+
__commonJS,
|
|
46
|
+
__export,
|
|
47
|
+
__toESM,
|
|
48
|
+
__toCommonJS,
|
|
49
|
+
__publicField,
|
|
50
|
+
__privateAdd,
|
|
51
|
+
__privateMethod
|
|
52
|
+
};
|