@playdrop/playdrop-cli 0.4.1 → 0.5.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/README.md +4 -4
- package/config/client-meta.json +7 -7
- package/dist/apps/upload.js +26 -0
- package/dist/captureRuntime.js +2 -9
- package/dist/catalogue.d.ts +18 -1
- package/dist/catalogue.js +198 -0
- package/dist/commands/changelog.d.ts +1 -0
- package/dist/commands/changelog.js +7 -0
- package/dist/commands/create.js +2 -0
- package/dist/commands/documentation.js +24 -4
- package/dist/commands/publicPages.d.ts +1 -0
- package/dist/commands/publicPages.js +32 -0
- package/dist/index.js +19 -6
- package/dist/sessionCookie.d.ts +18 -0
- package/dist/sessionCookie.js +88 -0
- package/dist/taskSelection.js +2 -0
- package/node_modules/@playdrop/ai-client/package.json +1 -1
- package/node_modules/@playdrop/api-client/dist/client.d.ts +43 -1
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +6 -0
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts +7 -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 +63 -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 +13 -0
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts +42 -0
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.js +123 -0
- package/node_modules/@playdrop/api-client/dist/index.d.ts +28 -1
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +45 -0
- package/node_modules/@playdrop/api-client/package.json +1 -1
- package/node_modules/@playdrop/boxel-core/package.json +1 -1
- package/node_modules/@playdrop/boxel-three/package.json +1 -1
- package/node_modules/@playdrop/config/client-meta.json +7 -7
- package/node_modules/@playdrop/config/dist/src/creator-docs.d.ts +24 -0
- package/node_modules/@playdrop/config/dist/src/creator-docs.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/creator-docs.js +253 -0
- package/node_modules/@playdrop/config/dist/src/creator-faq.d.ts +17 -0
- package/node_modules/@playdrop/config/dist/src/creator-faq.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/creator-faq.js +141 -0
- package/node_modules/@playdrop/config/dist/test/creator-docs.test.d.ts +2 -0
- package/node_modules/@playdrop/config/dist/test/creator-docs.test.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/test/creator-docs.test.js +36 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/config/package.json +1 -1
- package/node_modules/@playdrop/types/dist/api.d.ts +8 -1
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.d.ts +1 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +1 -0
- package/node_modules/@playdrop/types/dist/player-meta.d.ts +212 -0
- package/node_modules/@playdrop/types/dist/player-meta.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/player-meta.js +114 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +20 -0
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/version.js +31 -0
- package/node_modules/@playdrop/types/package.json +1 -1
- package/node_modules/@playdrop/vox-three/package.json +1 -1
- package/package.json +1 -1
- package/dist/commands/gettingStarted.d.ts +0 -1
- package/dist/commands/gettingStarted.js +0 -26
|
@@ -31,6 +31,37 @@ export function parseAppVersionVisibility(value) {
|
|
|
31
31
|
const normalized = value.trim().toUpperCase();
|
|
32
32
|
return isAppVersionVisibility(normalized) ? normalized : null;
|
|
33
33
|
}
|
|
34
|
+
export const APP_AUTH_MODE_VALUES = ['REQUIRED', 'OPTIONAL', 'NONE'];
|
|
35
|
+
export const DEFAULT_APP_AUTH_MODE = 'REQUIRED';
|
|
36
|
+
export function isAppAuthMode(value) {
|
|
37
|
+
if (typeof value !== 'string') {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
return APP_AUTH_MODE_VALUES.includes(value.trim().toUpperCase());
|
|
41
|
+
}
|
|
42
|
+
export function parseAppAuthMode(value) {
|
|
43
|
+
if (typeof value !== 'string') {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
const normalized = value.trim().toUpperCase();
|
|
47
|
+
return isAppAuthMode(normalized) ? normalized : null;
|
|
48
|
+
}
|
|
49
|
+
export const APP_CONTROLLER_MODE_VALUES = ['UNSUPPORTED', 'SUPPORTED', 'REQUIRED'];
|
|
50
|
+
export const DEFAULT_APP_CONTROLLER_MODE = 'UNSUPPORTED';
|
|
51
|
+
export function isAppControllerMode(value) {
|
|
52
|
+
if (typeof value !== 'string') {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return APP_CONTROLLER_MODE_VALUES.includes(value.trim().toUpperCase());
|
|
56
|
+
}
|
|
57
|
+
export function parseAppControllerMode(value) {
|
|
58
|
+
if (typeof value !== 'string') {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
const normalized = value.trim().toUpperCase();
|
|
62
|
+
return isAppControllerMode(normalized) ? normalized : null;
|
|
63
|
+
}
|
|
64
|
+
export const DEFAULT_APP_PREVIEWABLE = false;
|
|
34
65
|
/**
|
|
35
66
|
* Regex for validating semantic version strings.
|
|
36
67
|
* Format: Major.Minor.Patch where each is a non-negative integer.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playdrop/playdrop-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Official Playdrop CLI for publishing browser games, creator apps, and AI-generated game assets on playdrop.ai",
|
|
5
5
|
"homepage": "https://www.playdrop.ai",
|
|
6
6
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function printGettingStarted(): void;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.printGettingStarted = printGettingStarted;
|
|
4
|
-
function printGettingStarted() {
|
|
5
|
-
console.log('Start here:\n');
|
|
6
|
-
console.log('1. Log in');
|
|
7
|
-
console.log(' playdrop auth login');
|
|
8
|
-
console.log('');
|
|
9
|
-
console.log('2. Initialize a workspace');
|
|
10
|
-
console.log(' playdrop project init .');
|
|
11
|
-
console.log('');
|
|
12
|
-
console.log('3. Create an app');
|
|
13
|
-
console.log(' playdrop project create app my-app --template playdrop/template/typescript_template');
|
|
14
|
-
console.log('');
|
|
15
|
-
console.log('4. Preview locally');
|
|
16
|
-
console.log(' playdrop project dev my-app');
|
|
17
|
-
console.log('');
|
|
18
|
-
console.log('5. Publish');
|
|
19
|
-
console.log(' playdrop project publish .');
|
|
20
|
-
console.log('');
|
|
21
|
-
console.log('Documentation:');
|
|
22
|
-
console.log(' playdrop documentation browse');
|
|
23
|
-
console.log(' playdrop documentation read getting-started.md');
|
|
24
|
-
console.log('');
|
|
25
|
-
console.log('Next: run "playdrop help" for the full command tree.');
|
|
26
|
-
}
|