@playdrop/playdrop-cli 0.17.5 → 0.17.14
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/README.md +12 -0
- package/config/client-meta.json +2 -2
- package/dist/apps/build.d.ts +2 -1
- package/dist/apps/build.js +6 -2
- package/dist/apps/index.d.ts +2 -3
- package/dist/apps/index.js +17 -49
- package/dist/apps/loadCheck.d.ts +3 -1
- package/dist/apps/loadCheck.js +123 -64
- package/dist/apps/publishingRuntime.d.ts +18 -0
- package/dist/apps/publishingRuntime.js +111 -0
- package/dist/apps/runtimeSyntax.d.ts +7 -0
- package/dist/apps/runtimeSyntax.js +154 -0
- package/dist/apps/serverBuild.d.ts +3 -3
- package/dist/apps/serverBuild.js +8 -43
- package/dist/apps/serverSdk.d.ts +23 -0
- package/dist/apps/serverSdk.js +157 -0
- package/dist/apps/upload.d.ts +9 -3
- package/dist/apps/upload.js +71 -25
- package/dist/apps/validate.d.ts +2 -1
- package/dist/apps/validate.js +3 -1
- package/dist/commandContext.js +34 -10
- package/dist/commands/build.js +3 -1
- package/dist/commands/create.js +35 -16
- package/dist/commands/dev.js +11 -0
- package/dist/commands/devGameServer.d.ts +8 -0
- package/dist/commands/devGameServer.js +12 -9
- package/dist/commands/devServer.d.ts +1 -0
- package/dist/commands/devServer.js +21 -3
- package/dist/commands/source.d.ts +11 -3
- package/dist/commands/source.js +82 -14
- package/dist/commands/taskCaptureSession.d.ts +1 -1
- package/dist/commands/taskCaptureSession.js +1 -1
- package/dist/commands/upload-content.js +13 -12
- package/dist/commands/upload.d.ts +2 -9
- package/dist/commands/upload.js +5 -21
- package/dist/commands/validate.js +1 -1
- package/dist/commands/worker/game-server-infra.d.ts +6 -0
- package/dist/commands/worker/game-server-infra.js +10 -0
- package/dist/commands/worker/game-source-git.d.ts +9 -1
- package/dist/commands/worker/game-source-git.js +65 -19
- package/dist/commands/worker/generation.d.ts +2 -0
- package/dist/commands/worker/generation.js +35 -5
- package/dist/commands/worker.d.ts +1 -1
- package/dist/commands/worker.js +57 -17
- package/dist/environment.d.ts +1 -0
- package/dist/environment.js +7 -0
- package/dist/index.js +10 -2
- package/dist/playwright.d.ts +6 -4
- package/dist/playwright.js +24 -9
- package/dist/proceduralValidation.d.ts +16 -0
- package/dist/proceduralValidation.js +227 -0
- package/dist/proceduralValidationBrowser.d.mts +3 -0
- package/dist/proceduralValidationBrowser.mjs +67 -0
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/apps.js +11 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +6 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.js +13 -1
- package/node_modules/@playdrop/config/client-meta.json +2 -2
- package/node_modules/@playdrop/procedural/dist/index.d.ts +201 -0
- package/node_modules/@playdrop/procedural/dist/index.d.ts.map +1 -0
- package/node_modules/@playdrop/procedural/dist/index.js +763 -0
- package/node_modules/@playdrop/procedural/package.json +36 -0
- package/node_modules/@playdrop/types/dist/api.d.ts +37 -4
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/chat.d.ts +7 -1
- package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/social.d.ts +20 -0
- package/node_modules/@playdrop/types/dist/social.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/version.d.ts +2 -0
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@playdrop/procedural",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "PlayDrop procedural Three.js asset contract and validators",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"development": "./src/index.ts",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc -p tsconfig.json",
|
|
22
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
23
|
+
"test": "node --test --import tsx test/*.test.ts",
|
|
24
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"three": "0.183.2"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "^20.10.0",
|
|
31
|
+
"@types/three": "^0.183.0",
|
|
32
|
+
"three": "0.183.2",
|
|
33
|
+
"tsx": "^4.21.0",
|
|
34
|
+
"typescript": "^5.3.3"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1369,15 +1369,19 @@ export interface WorkerPrepareGameSourceResponse {
|
|
|
1369
1369
|
previousUpload: WorkerPrivateObjectUploadV1 | null;
|
|
1370
1370
|
};
|
|
1371
1371
|
}
|
|
1372
|
-
export
|
|
1373
|
-
workerKey: string;
|
|
1374
|
-
leaseToken: string;
|
|
1372
|
+
export type WorkerReadGameSourceFilesRequest = {
|
|
1375
1373
|
files: Array<{
|
|
1376
1374
|
sha256: string;
|
|
1377
1375
|
bytes: number;
|
|
1378
1376
|
key: string;
|
|
1379
1377
|
}>;
|
|
1380
|
-
}
|
|
1378
|
+
} & ({
|
|
1379
|
+
workerKey: string;
|
|
1380
|
+
leaseToken: string;
|
|
1381
|
+
} | {
|
|
1382
|
+
workerKey?: never;
|
|
1383
|
+
leaseToken?: never;
|
|
1384
|
+
});
|
|
1381
1385
|
export interface WorkerReadGameSourceFilesResponse {
|
|
1382
1386
|
files: Array<{
|
|
1383
1387
|
sha256: string;
|
|
@@ -1964,6 +1968,7 @@ export interface CreationGameVersionSummary {
|
|
|
1964
1968
|
export interface CreationGameListItem {
|
|
1965
1969
|
gameRef: string;
|
|
1966
1970
|
appName?: string;
|
|
1971
|
+
publicationKind?: AppPublicationKind;
|
|
1967
1972
|
displayName: string;
|
|
1968
1973
|
subtitle?: string | null;
|
|
1969
1974
|
primarySurface?: AppSurface | null;
|
|
@@ -2119,16 +2124,37 @@ export interface CreationConversationResponse {
|
|
|
2119
2124
|
gameRef: string;
|
|
2120
2125
|
canonicalGameRef: string;
|
|
2121
2126
|
appName?: string;
|
|
2127
|
+
publicationKind?: AppPublicationKind;
|
|
2122
2128
|
displayName?: string;
|
|
2123
2129
|
gameTitle?: string;
|
|
2124
2130
|
subtitle?: string | null;
|
|
2125
2131
|
primarySurface?: AppSurface | null;
|
|
2126
2132
|
detailAvailable: boolean;
|
|
2133
|
+
/** Latest unarchived private version, including drafts without a completed task response. */
|
|
2134
|
+
latestDraftVersionId: number | null;
|
|
2127
2135
|
items: CreationConversationItem[];
|
|
2128
2136
|
earlierCursor: string | null;
|
|
2129
2137
|
syncCursor?: string;
|
|
2138
|
+
/** Creation transport cursor captured before loading this snapshot. */
|
|
2139
|
+
eventVersion: string;
|
|
2130
2140
|
now: string;
|
|
2131
2141
|
}
|
|
2142
|
+
export type CreationConversationMetadata = Omit<CreationConversationResponse, "items" | "earlierCursor" | "syncCursor" | "eventVersion">;
|
|
2143
|
+
export type CreationRealtimeUpdate = {
|
|
2144
|
+
kind: "task.updated";
|
|
2145
|
+
gameRef: string;
|
|
2146
|
+
taskId: number;
|
|
2147
|
+
attempt: number;
|
|
2148
|
+
item: CreationTaskItem;
|
|
2149
|
+
} | {
|
|
2150
|
+
kind: "task.changed";
|
|
2151
|
+
gameRef: string;
|
|
2152
|
+
taskId: number;
|
|
2153
|
+
attempt: number;
|
|
2154
|
+
items: CreationConversationItem[];
|
|
2155
|
+
game: CreationGameListItem | null;
|
|
2156
|
+
conversation: CreationConversationMetadata;
|
|
2157
|
+
};
|
|
2132
2158
|
export interface WorkerAgentTaskMaterialResponse {
|
|
2133
2159
|
material: CreationTaskMaterial;
|
|
2134
2160
|
}
|
|
@@ -2255,6 +2281,9 @@ export interface HomeAppCardSummary {
|
|
|
2255
2281
|
authMode?: AppAuthMode;
|
|
2256
2282
|
controllerMode?: AppControllerMode;
|
|
2257
2283
|
assetUrl: string | null;
|
|
2284
|
+
/** Preview launch fields included for native mobile clients. */
|
|
2285
|
+
previewable?: boolean;
|
|
2286
|
+
entryPoint?: string | null;
|
|
2258
2287
|
surfaceTargets?: AppSurface[];
|
|
2259
2288
|
heroPortraitUrl?: string | null;
|
|
2260
2289
|
heroLandscapeUrl?: string | null;
|
|
@@ -3767,6 +3796,7 @@ export interface CreatorChallengeState {
|
|
|
3767
3796
|
}
|
|
3768
3797
|
export interface FreeCreditsResponse {
|
|
3769
3798
|
items: FreeCreditObjectiveSummary[];
|
|
3799
|
+
claimedCredits: number;
|
|
3770
3800
|
unclaimedCount: number;
|
|
3771
3801
|
inviteCode: string | null;
|
|
3772
3802
|
inviteUrlPath: string | null;
|
|
@@ -3800,6 +3830,7 @@ export interface ClaimFreeCreditRewardResponse {
|
|
|
3800
3830
|
rewardCredits: number;
|
|
3801
3831
|
transactionId: number | null;
|
|
3802
3832
|
creditBalance: number;
|
|
3833
|
+
claimedCredits: number;
|
|
3803
3834
|
unclaimedCount: number;
|
|
3804
3835
|
objectiveSummary: FreeCreditObjectiveSummary;
|
|
3805
3836
|
counterpartUser: InviteUserSummary | null;
|
|
@@ -3830,6 +3861,7 @@ export interface SubmitCreatorSurveyResponse {
|
|
|
3830
3861
|
rewardCredits: number;
|
|
3831
3862
|
transactionId: number;
|
|
3832
3863
|
creditBalance: number;
|
|
3864
|
+
claimedCredits: number;
|
|
3833
3865
|
unclaimedCount: number;
|
|
3834
3866
|
inviteCode: string;
|
|
3835
3867
|
inviteUrlPath: string;
|
|
@@ -4163,6 +4195,7 @@ export interface HomeCollectionPageResponse {
|
|
|
4163
4195
|
section: "games";
|
|
4164
4196
|
collection: HomeCollection;
|
|
4165
4197
|
pagination: PaginationMeta;
|
|
4198
|
+
acquisitionFeed?: AcquisitionFeedAcknowledgement;
|
|
4166
4199
|
}
|
|
4167
4200
|
export interface CreatorsListResponse {
|
|
4168
4201
|
creators: HomeCreatorResponse[];
|