@mpgd/cli 0.16.1 → 0.18.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/package.json +13 -13
- package/templates/phaser-game/README.md +17 -1
- package/templates/phaser-game/apps/target-ait/{granite.config.ts → apps-in-toss.config.ts} +5 -14
- package/templates/phaser-game/apps/target-ait/package.json +3 -3
- package/templates/phaser-game/apps/target-ait/tsconfig.json +1 -1
- package/templates/phaser-game/gitignore +0 -1
- package/templates/phaser-game/mpgd.targets.json +1 -1
- package/templates/phaser-game/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Gunshi CLI for mpgd-kit starter generation and target workflow orchestration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
"@types/node": "^24.0.0",
|
|
51
51
|
"ttsc": "0.18.4",
|
|
52
52
|
"typescript": "7.0.2",
|
|
53
|
-
"@mpgd/adapter-
|
|
54
|
-
"@mpgd/adapter-
|
|
55
|
-
"@mpgd/adapter-
|
|
56
|
-
"@mpgd/adapter-verse8": "0.2.
|
|
57
|
-
"@mpgd/adapter-
|
|
58
|
-
"@mpgd/analytics": "0.3.
|
|
59
|
-
"@mpgd/bridge": "0.
|
|
60
|
-
"@mpgd/catalog": "0.5.
|
|
61
|
-
"@mpgd/game-services": "0.
|
|
62
|
-
"@mpgd/i18n": "0.5.3",
|
|
53
|
+
"@mpgd/adapter-capacitor": "0.4.5",
|
|
54
|
+
"@mpgd/adapter-ait": "0.8.0",
|
|
55
|
+
"@mpgd/adapter-devvit": "0.8.5",
|
|
56
|
+
"@mpgd/adapter-verse8": "0.2.2",
|
|
57
|
+
"@mpgd/adapter-browser": "0.5.1",
|
|
58
|
+
"@mpgd/analytics": "0.3.8",
|
|
59
|
+
"@mpgd/bridge": "0.7.0",
|
|
60
|
+
"@mpgd/catalog": "0.5.1",
|
|
61
|
+
"@mpgd/game-services": "0.11.0",
|
|
63
62
|
"@mpgd/phaser-assets": "0.4.1",
|
|
64
|
-
"@mpgd/
|
|
65
|
-
"@mpgd/
|
|
63
|
+
"@mpgd/i18n": "0.5.4",
|
|
64
|
+
"@mpgd/platform": "0.8.0",
|
|
65
|
+
"@mpgd/target-config": "0.9.1"
|
|
66
66
|
},
|
|
67
67
|
"main": "./dist/index.js",
|
|
68
68
|
"types": "./dist/index.d.ts",
|
|
@@ -275,6 +275,22 @@ files referenced by `aitcc.yaml` under `./assets/`. Use `pnpm build:ait` for the
|
|
|
275
275
|
game-owned wrapper smoke loop, and run `pnpm build:ait:package` before console
|
|
276
276
|
deploys so `release-output/ait/` contains the `.ait` bundle you pass after `--`.
|
|
277
277
|
|
|
278
|
+
The generated wrapper uses SDK 3 exclusively. Its configuration is
|
|
279
|
+
`apps/target-ait/apps-in-toss.config.ts`; app display name and icon stay in the
|
|
280
|
+
Apps in Toss console, while the file owns `appName`, `brand.primaryColor`,
|
|
281
|
+
permissions, `webView`, and `webBundleDir`. Do not restore the removed SDK 2
|
|
282
|
+
`granite.config.ts` fields.
|
|
283
|
+
|
|
284
|
+
Before the first SDK 3 release, allow both of these exact origins on every API
|
|
285
|
+
called by the mini-app:
|
|
286
|
+
|
|
287
|
+
- `https://__GAME_NAME__.web.tossmini.com`
|
|
288
|
+
- `https://__GAME_NAME__.private-web.tossmini.com`
|
|
289
|
+
|
|
290
|
+
The first is production and the second is console QR testing. Apps in Toss does
|
|
291
|
+
not allow an app that has released an SDK 3 bundle to roll back to SDK 2, so run
|
|
292
|
+
the QR test and verify both CORS origins before publishing.
|
|
293
|
+
|
|
278
294
|
The starter also installs `@apps-in-toss/web-framework` and awaits
|
|
279
295
|
`install()` from `@ait-co/polyfill` only when `__APP_TARGET__` is `ait`. In the
|
|
280
296
|
Apps in Toss WebView runtime, standard Web APIs such as `navigator.clipboard`,
|
|
@@ -285,7 +301,7 @@ SDK chunk and keep their native browser behavior. `pnpm dev:ait` is useful for
|
|
|
285
301
|
checking the AIT-gated bundle path, but SDK-backed API behavior should be
|
|
286
302
|
verified in the Apps in Toss sandbox or a game-owned devtools setup. If your
|
|
287
303
|
game uses permission-gated APIs such as clipboard or geolocation, declare the
|
|
288
|
-
matching permissions in the game-owned Apps in Toss `
|
|
304
|
+
matching permissions in the game-owned Apps in Toss `apps-in-toss.config.ts` before
|
|
289
305
|
submission.
|
|
290
306
|
|
|
291
307
|
The generated AIT target starts with `authoritativeGameServices: false`. Native
|
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
import { defineConfig, type
|
|
1
|
+
import { defineConfig, type AppsInTossConfig } from '@apps-in-toss/web-framework/config';
|
|
2
2
|
|
|
3
|
-
const config:
|
|
3
|
+
const config: AppsInTossConfig = {
|
|
4
4
|
appName: readEnvString(process.env.MPGD_AIT_APP_NAME) ?? '__GAME_NAME__',
|
|
5
5
|
brand: {
|
|
6
|
-
displayName: readEnvString(process.env.MPGD_AIT_DISPLAY_NAME) ?? '__GAME_TITLE__',
|
|
7
6
|
primaryColor: readEnvString(process.env.MPGD_AIT_PRIMARY_COLOR) ?? '#101820',
|
|
8
|
-
icon: readEnvString(process.env.MPGD_AIT_BRAND_ICON_URL) ?? 'generated/console-icon.png',
|
|
9
7
|
},
|
|
10
8
|
permissions: [],
|
|
11
|
-
|
|
12
|
-
host: 'localhost',
|
|
13
|
-
port: 5173,
|
|
14
|
-
commands: {
|
|
15
|
-
dev: 'pnpm dev',
|
|
16
|
-
build: 'pnpm build',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
webViewProps: {
|
|
9
|
+
webView: {
|
|
20
10
|
bounces: false,
|
|
21
11
|
pullToRefreshEnabled: false,
|
|
22
12
|
overScrollMode: 'never',
|
|
23
13
|
allowsBackForwardNavigationGestures: false,
|
|
24
14
|
allowsInlineMediaPlayback: true,
|
|
25
15
|
},
|
|
16
|
+
webBundleDir: 'dist',
|
|
26
17
|
};
|
|
27
18
|
|
|
28
|
-
const definedConfig:
|
|
19
|
+
const definedConfig: AppsInTossConfig = defineConfig(config);
|
|
29
20
|
|
|
30
21
|
export default definedConfig;
|
|
31
22
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"dev": "vite --host 0.0.0.0",
|
|
8
8
|
"dev:plain": "MPGD_AIT_DEVTOOLS=0 VITE_MPGD_AIT_MOCK_IDENTITY=1 vite --host 0.0.0.0",
|
|
9
9
|
"dev:phone": "AIT_TUNNEL=1 AIT_TUNNEL_CDP=1 vite --host 0.0.0.0",
|
|
10
|
-
"build": "vite build",
|
|
10
|
+
"build": "vite build && ait build",
|
|
11
11
|
"ait:build": "ait build",
|
|
12
12
|
"ait:deploy": "ait deploy --api-key \"$AIT_API_KEY\"",
|
|
13
13
|
"devtools:mcp": "pnpm exec devtools-mcp",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"fix": "ttsc fix"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@apps-in-toss/web-framework": "
|
|
21
|
+
"@apps-in-toss/web-framework": "3.0.0-beta.da14818",
|
|
22
22
|
"@mpgd/adapter-ait": "__MPGD_DEPENDENCY_VERSION_ADAPTER_AIT__"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@ait-co/devtools": "^0.1.140",
|
|
26
|
-
"@apps-in-toss/cli": "
|
|
26
|
+
"@apps-in-toss/cli": "3.0.0-beta.66a479a",
|
|
27
27
|
"@ttsc/unplugin": "0.18.4",
|
|
28
28
|
"@types/node": "^24.0.0",
|
|
29
29
|
"ttsc": "0.18.4",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@ait-co/polyfill": "^0.1.17",
|
|
61
|
-
"@apps-in-toss/web-framework": "
|
|
61
|
+
"@apps-in-toss/web-framework": "3.0.0-beta.da14818",
|
|
62
62
|
"@mpgd/adapter-ait": "__MPGD_DEPENDENCY_VERSION_ADAPTER_AIT__",
|
|
63
63
|
"@mpgd/adapter-browser": "__MPGD_DEPENDENCY_VERSION_ADAPTER_BROWSER__",
|
|
64
64
|
"@mpgd/adapter-capacitor": "__MPGD_DEPENDENCY_VERSION_ADAPTER_CAPACITOR__",
|