@playdrop/playdrop-cli 0.14.5 → 0.14.7
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/config/client-meta.json +2 -2
- package/dist/apps/staticHtml.js +1 -0
- package/dist/apps/upload.js +2 -0
- package/dist/catalogue.d.ts +18 -5
- package/dist/catalogue.js +132 -158
- package/dist/commands/dev.js +9 -0
- package/dist/commands/devRuntimeAssets.d.ts +2 -1
- package/dist/commands/devRuntimeAssets.js +3 -0
- package/dist/commands/notes.d.ts +7 -0
- package/dist/commands/notes.js +107 -0
- package/dist/commands/tweaks.d.ts +6 -0
- package/dist/commands/tweaks.js +93 -0
- package/dist/commands/validate.js +14 -0
- package/dist/index.js +39 -0
- package/dist/listingPreflight.d.ts +4 -0
- package/dist/listingPreflight.js +17 -0
- package/dist/tweakStaleness.d.ts +7 -0
- package/dist/tweakStaleness.js +36 -0
- package/node_modules/@playdrop/api-client/dist/client.d.ts +25 -4
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +40 -0
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts +1 -0
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/core/request.js +2 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts +2 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.js +27 -0
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +18 -4
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/apps.js +76 -6
- package/node_modules/@playdrop/api-client/dist/index.d.ts +35 -4
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +79 -4
- package/node_modules/@playdrop/config/client-meta.json +2 -2
- package/node_modules/@playdrop/config/dist/src/game-arena.d.ts +14 -0
- package/node_modules/@playdrop/config/dist/src/game-arena.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/game-arena.js +30 -0
- package/node_modules/@playdrop/config/dist/src/index.d.ts +1 -0
- package/node_modules/@playdrop/config/dist/src/index.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/index.js +1 -0
- package/node_modules/@playdrop/config/dist/test/game-arena.test.d.ts +2 -0
- package/node_modules/@playdrop/config/dist/test/game-arena.test.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/test/game-arena.test.js +17 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/config/package.json +4 -0
- package/node_modules/@playdrop/types/dist/api.d.ts +104 -3
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +39 -2
- package/node_modules/@playdrop/types/dist/app-review.d.ts +11 -0
- package/node_modules/@playdrop/types/dist/app-review.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/app-review.js +56 -0
- package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +6 -0
- package/node_modules/@playdrop/types/dist/playtest-notes.d.ts +69 -0
- package/node_modules/@playdrop/types/dist/playtest-notes.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/playtest-notes.js +30 -0
- package/node_modules/@playdrop/types/dist/tweaks.d.ts +48 -0
- package/node_modules/@playdrop/types/dist/tweaks.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/tweaks.js +156 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +37 -0
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/version.js +6 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ __export(dist_exports, {
|
|
|
28
28
|
FEEDBACK_STATUS_VALUES: () => import_types2.FEEDBACK_STATUS_VALUES,
|
|
29
29
|
MANUAL_FEEDBACK_CATEGORY_VALUES: () => import_types2.MANUAL_FEEDBACK_CATEGORY_VALUES,
|
|
30
30
|
UnsupportedClientError: () => import_types3.UnsupportedClientError,
|
|
31
|
+
abortAppUpload: () => abortAppUpload,
|
|
31
32
|
activateAppBoost: () => activateAppBoost,
|
|
32
33
|
adminGetAgentTask: () => adminGetAgentTask,
|
|
33
34
|
adminGetAgentTaskTranscript: () => adminGetAgentTaskTranscript,
|
|
@@ -44,6 +45,7 @@ __export(dist_exports, {
|
|
|
44
45
|
checkUsernameAvailable: () => checkUsernameAvailable,
|
|
45
46
|
claimFreeCreditReward: () => claimFreeCreditReward,
|
|
46
47
|
clearAgentTask: () => clearAgentTask,
|
|
48
|
+
clearPlaytestNotes: () => clearPlaytestNotes,
|
|
47
49
|
completeAppleSignup: () => completeAppleSignup,
|
|
48
50
|
completeGoogleSignup: () => completeGoogleSignup,
|
|
49
51
|
completeXSignup: () => completeXSignup,
|
|
@@ -83,6 +85,8 @@ __export(dist_exports, {
|
|
|
83
85
|
downloadAssetPack: () => downloadAssetPack,
|
|
84
86
|
downloadAssetPackSource: () => downloadAssetPackSource,
|
|
85
87
|
downloadAssetSource: () => downloadAssetSource,
|
|
88
|
+
downloadPlaytestNoteAttachment: () => downloadPlaytestNoteAttachment,
|
|
89
|
+
endGameplaySession: () => endGameplaySession,
|
|
86
90
|
enqueueNextAdminAppVersionReviewTask: () => enqueueNextAdminAppVersionReviewTask,
|
|
87
91
|
exchangeAppleOAuthHandoff: () => exchangeAppleOAuthHandoff,
|
|
88
92
|
exchangeGoogleOneTapCredential: () => exchangeGoogleOneTapCredential,
|
|
@@ -111,6 +115,7 @@ __export(dist_exports, {
|
|
|
111
115
|
fetchAppMoreCollections: () => fetchAppMoreCollections,
|
|
112
116
|
fetchAppRelated: () => fetchAppRelated,
|
|
113
117
|
fetchAppRuntimeAssets: () => fetchAppRuntimeAssets,
|
|
118
|
+
fetchAppUploadLaunchCheckPreview: () => fetchAppUploadLaunchCheckPreview,
|
|
114
119
|
fetchApplePendingSignup: () => fetchApplePendingSignup,
|
|
115
120
|
fetchApplePushDeviceStatus: () => fetchApplePushDeviceStatus,
|
|
116
121
|
fetchApps: () => fetchApps,
|
|
@@ -163,6 +168,7 @@ __export(dist_exports, {
|
|
|
163
168
|
fetchWebPushConfig: () => fetchWebPushConfig,
|
|
164
169
|
fetchWebPushSubscriptionStatus: () => fetchWebPushSubscriptionStatus,
|
|
165
170
|
fetchXPendingSignup: () => fetchXPendingSignup,
|
|
171
|
+
finalizeAppUpload: () => finalizeAppUpload,
|
|
166
172
|
followCreator: () => followCreator,
|
|
167
173
|
fulfillAppleCreditPackPurchase: () => fulfillAppleCreditPackPurchase,
|
|
168
174
|
fulfillGoogleCreditPackPurchase: () => fulfillGoogleCreditPackPurchase,
|
|
@@ -171,13 +177,17 @@ __export(dist_exports, {
|
|
|
171
177
|
getAgentTaskAvailability: () => getAgentTaskAvailability,
|
|
172
178
|
getAppAgentTask: () => getAppAgentTask,
|
|
173
179
|
getAppAgentTaskAvailability: () => getAppAgentTaskAvailability,
|
|
180
|
+
getAppTweaks: () => getAppTweaks,
|
|
174
181
|
getAppVersion: () => getAppVersion,
|
|
175
182
|
getClientVersionLabel: () => getClientVersionLabel,
|
|
176
183
|
getCreationConversation: () => getCreationConversation,
|
|
177
184
|
getCreatorGameStatus: () => getCreatorGameStatus,
|
|
185
|
+
getLatestAppTweaks: () => getLatestAppTweaks,
|
|
178
186
|
getLeaderboard: () => getLeaderboard,
|
|
179
187
|
getRuntimeState: () => getRuntimeState,
|
|
180
188
|
grantAppIapReceipt: () => grantAppIapReceipt,
|
|
189
|
+
heartbeatGameplaySession: () => heartbeatGameplaySession,
|
|
190
|
+
initializeAppUpload: () => initializeAppUpload,
|
|
181
191
|
likeContentComment: () => likeContentComment,
|
|
182
192
|
likeItem: () => likeItem,
|
|
183
193
|
linkApple: () => linkApple,
|
|
@@ -203,6 +213,7 @@ __export(dist_exports, {
|
|
|
203
213
|
listLeaderboards: () => listLeaderboards,
|
|
204
214
|
listMyAgentWorkers: () => listMyAgentWorkers,
|
|
205
215
|
listNewGameSuggestions: () => listNewGameSuggestions,
|
|
216
|
+
listPlaytestNotes: () => listPlaytestNotes,
|
|
206
217
|
loadDevInterstitialAd: () => loadDevInterstitialAd,
|
|
207
218
|
loadDevRewardedAd: () => loadDevRewardedAd,
|
|
208
219
|
loadInterstitialAd: () => loadInterstitialAd,
|
|
@@ -221,10 +232,12 @@ __export(dist_exports, {
|
|
|
221
232
|
purchaseBoostPack: () => purchaseBoostPack,
|
|
222
233
|
purchaseDevIap: () => purchaseDevIap,
|
|
223
234
|
purchaseIap: () => purchaseIap,
|
|
235
|
+
recordAppUploadLaunchCheck: () => recordAppUploadLaunchCheck,
|
|
224
236
|
recordCreatorGameShare: () => recordCreatorGameShare,
|
|
225
237
|
register: () => register,
|
|
226
238
|
registerAgentBundle: () => registerAgentBundle,
|
|
227
239
|
replaceAdminGameCollectionGames: () => replaceAdminGameCollectionGames,
|
|
240
|
+
replaceAppTweaks: () => replaceAppTweaks,
|
|
228
241
|
reportComment: () => reportComment,
|
|
229
242
|
reportContent: () => reportContent,
|
|
230
243
|
reportCreator: () => reportCreator,
|
|
@@ -252,6 +265,7 @@ __export(dist_exports, {
|
|
|
252
265
|
signInWithGoogleApple: () => signInWithGoogleApple,
|
|
253
266
|
startCliLogin: () => startCliLogin,
|
|
254
267
|
startCliWebLaunch: () => startCliWebLaunch,
|
|
268
|
+
startGameplaySession: () => startGameplaySession,
|
|
255
269
|
submitFeedback: () => submitFeedback,
|
|
256
270
|
submitLeaderboardScore: () => submitLeaderboardScore,
|
|
257
271
|
submitMyInviteCode: () => submitMyInviteCode,
|
|
@@ -284,6 +298,7 @@ __export(dist_exports, {
|
|
|
284
298
|
updatePublicEmailPreferences: () => updatePublicEmailPreferences,
|
|
285
299
|
uploadAdminGameCollectionIcon: () => uploadAdminGameCollectionIcon,
|
|
286
300
|
uploadAgentTaskAttachment: () => uploadAgentTaskAttachment,
|
|
301
|
+
uploadAppSessionFile: () => uploadAppSessionFile,
|
|
287
302
|
upsertApplePushDevice: () => upsertApplePushDevice,
|
|
288
303
|
upsertFirebasePushDevice: () => upsertFirebasePushDevice,
|
|
289
304
|
upsertWebPushSubscription: () => upsertWebPushSubscription,
|
|
@@ -563,6 +578,24 @@ async function listAgentTasks(options) {
|
|
|
563
578
|
async function listCreatorGames(options) {
|
|
564
579
|
return await getDefaultClient().listCreatorGames(options);
|
|
565
580
|
}
|
|
581
|
+
async function initializeAppUpload(creatorUsername, appName, request) {
|
|
582
|
+
return await getDefaultClient().initializeAppUpload(creatorUsername, appName, request);
|
|
583
|
+
}
|
|
584
|
+
async function uploadAppSessionFile(creatorUsername, appName, sessionId, fileKey, options) {
|
|
585
|
+
return await getDefaultClient().uploadAppSessionFile(creatorUsername, appName, sessionId, fileKey, options);
|
|
586
|
+
}
|
|
587
|
+
async function fetchAppUploadLaunchCheckPreview(creatorUsername, appName, sessionId) {
|
|
588
|
+
return await getDefaultClient().fetchAppUploadLaunchCheckPreview(creatorUsername, appName, sessionId);
|
|
589
|
+
}
|
|
590
|
+
async function recordAppUploadLaunchCheck(creatorUsername, appName, sessionId, request) {
|
|
591
|
+
return await getDefaultClient().recordAppUploadLaunchCheck(creatorUsername, appName, sessionId, request);
|
|
592
|
+
}
|
|
593
|
+
async function finalizeAppUpload(creatorUsername, appName, sessionId, request) {
|
|
594
|
+
return await getDefaultClient().finalizeAppUpload(creatorUsername, appName, sessionId, request);
|
|
595
|
+
}
|
|
596
|
+
async function abortAppUpload(creatorUsername, appName, sessionId) {
|
|
597
|
+
return await getDefaultClient().abortAppUpload(creatorUsername, appName, sessionId);
|
|
598
|
+
}
|
|
566
599
|
async function listCreationGames(etag) {
|
|
567
600
|
return await getDefaultClient().listCreationGames(etag);
|
|
568
601
|
}
|
|
@@ -752,11 +785,11 @@ async function fetchAppMoreCollections(creatorUsername, appName, options = {}) {
|
|
|
752
785
|
async function fetchAppMoreCollectionPage(creatorUsername, appName, collectionKey, options = {}) {
|
|
753
786
|
return await getDefaultClient().fetchAppMoreCollectionPage(creatorUsername, appName, collectionKey, options);
|
|
754
787
|
}
|
|
755
|
-
async function requestAppAccessToken(appId) {
|
|
756
|
-
return await getDefaultClient().requestAppAccessToken(appId);
|
|
788
|
+
async function requestAppAccessToken(appId, options) {
|
|
789
|
+
return await getDefaultClient().requestAppAccessToken(appId, options);
|
|
757
790
|
}
|
|
758
|
-
async function requestDevAppAccessToken(appId, slot) {
|
|
759
|
-
return await getDefaultClient().requestDevAppAccessToken(appId, slot);
|
|
791
|
+
async function requestDevAppAccessToken(appId, slot, options) {
|
|
792
|
+
return await getDefaultClient().requestDevAppAccessToken(appId, slot, options);
|
|
760
793
|
}
|
|
761
794
|
async function resetDevPlayer(appId, slot) {
|
|
762
795
|
return await getDefaultClient().resetDevPlayer(appId, slot);
|
|
@@ -767,6 +800,24 @@ async function resetAllDevPlayers(appId) {
|
|
|
767
800
|
async function sendAppLog(appId, entry) {
|
|
768
801
|
return await getDefaultClient().sendAppLog(appId, entry);
|
|
769
802
|
}
|
|
803
|
+
async function getAppTweaks(creatorUsername, appName, version) {
|
|
804
|
+
return await getDefaultClient().getAppTweaks(creatorUsername, appName, version);
|
|
805
|
+
}
|
|
806
|
+
async function getLatestAppTweaks(creatorUsername, appName) {
|
|
807
|
+
return await getDefaultClient().getLatestAppTweaks(creatorUsername, appName);
|
|
808
|
+
}
|
|
809
|
+
async function replaceAppTweaks(creatorUsername, appName, version, values) {
|
|
810
|
+
return await getDefaultClient().replaceAppTweaks(creatorUsername, appName, version, values);
|
|
811
|
+
}
|
|
812
|
+
async function listPlaytestNotes(creatorUsername, appName, version) {
|
|
813
|
+
return await getDefaultClient().listPlaytestNotes(creatorUsername, appName, version);
|
|
814
|
+
}
|
|
815
|
+
async function clearPlaytestNotes(creatorUsername, appName, version, ids) {
|
|
816
|
+
return await getDefaultClient().clearPlaytestNotes(creatorUsername, appName, version, ids);
|
|
817
|
+
}
|
|
818
|
+
async function downloadPlaytestNoteAttachment(creatorUsername, appName, version, noteId) {
|
|
819
|
+
return await getDefaultClient().downloadPlaytestNoteAttachment(creatorUsername, appName, version, noteId);
|
|
820
|
+
}
|
|
770
821
|
async function listAchievements(appId, options = {}) {
|
|
771
822
|
return await getDefaultClient().listAchievements(appId, options);
|
|
772
823
|
}
|
|
@@ -846,6 +897,15 @@ async function deleteContentComment(commentId) {
|
|
|
846
897
|
async function trackEngagementEvent(request) {
|
|
847
898
|
return await getDefaultClient().trackEngagementEvent(request);
|
|
848
899
|
}
|
|
900
|
+
async function startGameplaySession(request, options) {
|
|
901
|
+
return await getDefaultClient().startGameplaySession(request, options);
|
|
902
|
+
}
|
|
903
|
+
async function heartbeatGameplaySession(sessionId, request, options) {
|
|
904
|
+
return await getDefaultClient().heartbeatGameplaySession(sessionId, request, options);
|
|
905
|
+
}
|
|
906
|
+
async function endGameplaySession(sessionId, request, options) {
|
|
907
|
+
return await getDefaultClient().endGameplaySession(sessionId, request, options);
|
|
908
|
+
}
|
|
849
909
|
async function fetchLibrary(options = {}) {
|
|
850
910
|
return await getDefaultClient().fetchLibrary(options);
|
|
851
911
|
}
|
|
@@ -1274,6 +1334,7 @@ function getClientVersionLabel() {
|
|
|
1274
1334
|
FEEDBACK_STATUS_VALUES,
|
|
1275
1335
|
MANUAL_FEEDBACK_CATEGORY_VALUES,
|
|
1276
1336
|
UnsupportedClientError,
|
|
1337
|
+
abortAppUpload,
|
|
1277
1338
|
activateAppBoost,
|
|
1278
1339
|
adminGetAgentTask,
|
|
1279
1340
|
adminGetAgentTaskTranscript,
|
|
@@ -1290,6 +1351,7 @@ function getClientVersionLabel() {
|
|
|
1290
1351
|
checkUsernameAvailable,
|
|
1291
1352
|
claimFreeCreditReward,
|
|
1292
1353
|
clearAgentTask,
|
|
1354
|
+
clearPlaytestNotes,
|
|
1293
1355
|
completeAppleSignup,
|
|
1294
1356
|
completeGoogleSignup,
|
|
1295
1357
|
completeXSignup,
|
|
@@ -1329,6 +1391,8 @@ function getClientVersionLabel() {
|
|
|
1329
1391
|
downloadAssetPack,
|
|
1330
1392
|
downloadAssetPackSource,
|
|
1331
1393
|
downloadAssetSource,
|
|
1394
|
+
downloadPlaytestNoteAttachment,
|
|
1395
|
+
endGameplaySession,
|
|
1332
1396
|
enqueueNextAdminAppVersionReviewTask,
|
|
1333
1397
|
exchangeAppleOAuthHandoff,
|
|
1334
1398
|
exchangeGoogleOneTapCredential,
|
|
@@ -1357,6 +1421,7 @@ function getClientVersionLabel() {
|
|
|
1357
1421
|
fetchAppMoreCollections,
|
|
1358
1422
|
fetchAppRelated,
|
|
1359
1423
|
fetchAppRuntimeAssets,
|
|
1424
|
+
fetchAppUploadLaunchCheckPreview,
|
|
1360
1425
|
fetchApplePendingSignup,
|
|
1361
1426
|
fetchApplePushDeviceStatus,
|
|
1362
1427
|
fetchApps,
|
|
@@ -1409,6 +1474,7 @@ function getClientVersionLabel() {
|
|
|
1409
1474
|
fetchWebPushConfig,
|
|
1410
1475
|
fetchWebPushSubscriptionStatus,
|
|
1411
1476
|
fetchXPendingSignup,
|
|
1477
|
+
finalizeAppUpload,
|
|
1412
1478
|
followCreator,
|
|
1413
1479
|
fulfillAppleCreditPackPurchase,
|
|
1414
1480
|
fulfillGoogleCreditPackPurchase,
|
|
@@ -1417,13 +1483,17 @@ function getClientVersionLabel() {
|
|
|
1417
1483
|
getAgentTaskAvailability,
|
|
1418
1484
|
getAppAgentTask,
|
|
1419
1485
|
getAppAgentTaskAvailability,
|
|
1486
|
+
getAppTweaks,
|
|
1420
1487
|
getAppVersion,
|
|
1421
1488
|
getClientVersionLabel,
|
|
1422
1489
|
getCreationConversation,
|
|
1423
1490
|
getCreatorGameStatus,
|
|
1491
|
+
getLatestAppTweaks,
|
|
1424
1492
|
getLeaderboard,
|
|
1425
1493
|
getRuntimeState,
|
|
1426
1494
|
grantAppIapReceipt,
|
|
1495
|
+
heartbeatGameplaySession,
|
|
1496
|
+
initializeAppUpload,
|
|
1427
1497
|
likeContentComment,
|
|
1428
1498
|
likeItem,
|
|
1429
1499
|
linkApple,
|
|
@@ -1449,6 +1519,7 @@ function getClientVersionLabel() {
|
|
|
1449
1519
|
listLeaderboards,
|
|
1450
1520
|
listMyAgentWorkers,
|
|
1451
1521
|
listNewGameSuggestions,
|
|
1522
|
+
listPlaytestNotes,
|
|
1452
1523
|
loadDevInterstitialAd,
|
|
1453
1524
|
loadDevRewardedAd,
|
|
1454
1525
|
loadInterstitialAd,
|
|
@@ -1467,10 +1538,12 @@ function getClientVersionLabel() {
|
|
|
1467
1538
|
purchaseBoostPack,
|
|
1468
1539
|
purchaseDevIap,
|
|
1469
1540
|
purchaseIap,
|
|
1541
|
+
recordAppUploadLaunchCheck,
|
|
1470
1542
|
recordCreatorGameShare,
|
|
1471
1543
|
register,
|
|
1472
1544
|
registerAgentBundle,
|
|
1473
1545
|
replaceAdminGameCollectionGames,
|
|
1546
|
+
replaceAppTweaks,
|
|
1474
1547
|
reportComment,
|
|
1475
1548
|
reportContent,
|
|
1476
1549
|
reportCreator,
|
|
@@ -1498,6 +1571,7 @@ function getClientVersionLabel() {
|
|
|
1498
1571
|
signInWithGoogleApple,
|
|
1499
1572
|
startCliLogin,
|
|
1500
1573
|
startCliWebLaunch,
|
|
1574
|
+
startGameplaySession,
|
|
1501
1575
|
submitFeedback,
|
|
1502
1576
|
submitLeaderboardScore,
|
|
1503
1577
|
submitMyInviteCode,
|
|
@@ -1530,6 +1604,7 @@ function getClientVersionLabel() {
|
|
|
1530
1604
|
updatePublicEmailPreferences,
|
|
1531
1605
|
uploadAdminGameCollectionIcon,
|
|
1532
1606
|
uploadAgentTaskAttachment,
|
|
1607
|
+
uploadAppSessionFile,
|
|
1533
1608
|
upsertApplePushDevice,
|
|
1534
1609
|
upsertFirebasePushDevice,
|
|
1535
1610
|
upsertWebPushSubscription,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const GAME_ARENA_ROUND_ONE: Readonly<{
|
|
2
|
+
id: "round-1";
|
|
3
|
+
label: "Round 1";
|
|
4
|
+
modelsLabel: "Opus 5 vs Sol 5.6";
|
|
5
|
+
description: "Opus 5 vs Sol 5.6 · casual games";
|
|
6
|
+
revealAt: "2026-08-09T17:00:00-04:00";
|
|
7
|
+
revealLabel: "Sunday · 5:00 PM ET";
|
|
8
|
+
comparisonMode: "BARE_SOL_OPUS";
|
|
9
|
+
opusModel: "opus-max";
|
|
10
|
+
solModel: "gpt-5.6-sol-xhigh";
|
|
11
|
+
}>;
|
|
12
|
+
export declare function resolveGameArenaRevealAt(envValue: string | null | undefined): string;
|
|
13
|
+
export declare function areGameArenaStandingsRevealed(revealAt: string, now?: number): boolean;
|
|
14
|
+
//# sourceMappingURL=game-arena.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-arena.d.ts","sourceRoot":"","sources":["../../src/game-arena.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;EAU/B,CAAC;AAEH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAIpF;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAa,GAAG,OAAO,CAKzF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GAME_ARENA_ROUND_ONE = void 0;
|
|
4
|
+
exports.resolveGameArenaRevealAt = resolveGameArenaRevealAt;
|
|
5
|
+
exports.areGameArenaStandingsRevealed = areGameArenaStandingsRevealed;
|
|
6
|
+
exports.GAME_ARENA_ROUND_ONE = Object.freeze({
|
|
7
|
+
id: 'round-1',
|
|
8
|
+
label: 'Round 1',
|
|
9
|
+
modelsLabel: 'Opus 5 vs Sol 5.6',
|
|
10
|
+
description: 'Opus 5 vs Sol 5.6 · casual games',
|
|
11
|
+
revealAt: '2026-08-09T17:00:00-04:00',
|
|
12
|
+
revealLabel: 'Sunday · 5:00 PM ET',
|
|
13
|
+
comparisonMode: 'BARE_SOL_OPUS',
|
|
14
|
+
opusModel: 'opus-max',
|
|
15
|
+
solModel: 'gpt-5.6-sol-xhigh',
|
|
16
|
+
});
|
|
17
|
+
function resolveGameArenaRevealAt(envValue) {
|
|
18
|
+
const value = envValue?.trim() || exports.GAME_ARENA_ROUND_ONE.revealAt;
|
|
19
|
+
if (Number.isNaN(Date.parse(value)))
|
|
20
|
+
throw new Error('invalid_game_arena_reveal_at');
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
function areGameArenaStandingsRevealed(revealAt, now = Date.now()) {
|
|
24
|
+
const target = Date.parse(revealAt);
|
|
25
|
+
if (Number.isNaN(target))
|
|
26
|
+
throw new Error('invalid_game_arena_reveal_at');
|
|
27
|
+
if (!Number.isFinite(now))
|
|
28
|
+
throw new Error('invalid_game_arena_now');
|
|
29
|
+
return now >= target;
|
|
30
|
+
}
|
|
@@ -6,6 +6,7 @@ export declare function getClientBuild(): number;
|
|
|
6
6
|
export declare function getClientVersionLabel(): string;
|
|
7
7
|
export * from './constants';
|
|
8
8
|
export * from './deployment';
|
|
9
|
+
export * from './game-arena';
|
|
9
10
|
export * from './server/fastify';
|
|
10
11
|
export * from './server/logging';
|
|
11
12
|
export * from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EAEvB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,cAAc,IAAI,gBAAgB,CAEjD;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUxF;AAwBD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,GAAG,sBAAsB,CAqEzF"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EAEvB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,cAAc,IAAI,gBAAgB,CAEjD;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUxF;AAwBD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,GAAG,sBAAsB,CAqEzF"}
|
|
@@ -39,6 +39,7 @@ function getClientVersionLabel() {
|
|
|
39
39
|
}
|
|
40
40
|
__exportStar(require("./constants"), exports);
|
|
41
41
|
__exportStar(require("./deployment"), exports);
|
|
42
|
+
__exportStar(require("./game-arena"), exports);
|
|
42
43
|
__exportStar(require("./server/fastify"), exports);
|
|
43
44
|
__exportStar(require("./server/logging"), exports);
|
|
44
45
|
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-arena.test.d.ts","sourceRoot":"","sources":["../../test/game-arena.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const node_test_1 = __importDefault(require("node:test"));
|
|
7
|
+
const strict_1 = __importDefault(require("node:assert/strict"));
|
|
8
|
+
const game_arena_1 = require("../src/game-arena");
|
|
9
|
+
(0, node_test_1.default)('Game Arena round one keeps the launch framing and configured reveal', () => {
|
|
10
|
+
strict_1.default.equal(game_arena_1.GAME_ARENA_ROUND_ONE.description, 'Opus 5 vs Sol 5.6 · casual games');
|
|
11
|
+
strict_1.default.equal((0, game_arena_1.resolveGameArenaRevealAt)(undefined), '2026-08-09T17:00:00-04:00');
|
|
12
|
+
strict_1.default.equal(game_arena_1.GAME_ARENA_ROUND_ONE.revealLabel, 'Sunday · 5:00 PM ET');
|
|
13
|
+
strict_1.default.equal((0, game_arena_1.resolveGameArenaRevealAt)('2026-08-13T17:00:00-04:00'), '2026-08-13T17:00:00-04:00');
|
|
14
|
+
strict_1.default.equal((0, game_arena_1.areGameArenaStandingsRevealed)(game_arena_1.GAME_ARENA_ROUND_ONE.revealAt, Date.parse('2026-08-09T16:59:59-04:00')), false);
|
|
15
|
+
strict_1.default.equal((0, game_arena_1.areGameArenaStandingsRevealed)(game_arena_1.GAME_ARENA_ROUND_ONE.revealAt, Date.parse('2026-08-09T17:00:00-04:00')), true);
|
|
16
|
+
strict_1.default.throws(() => (0, game_arena_1.resolveGameArenaRevealAt)('not-a-date'), /invalid_game_arena_reveal_at/);
|
|
17
|
+
});
|