@mpgd/cli 0.16.1 → 0.17.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/cli",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "description": "Gunshi CLI for mpgd-kit starter generation and target workflow orchestration.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,18 +50,18 @@
50
50
  "@types/node": "^24.0.0",
51
51
  "ttsc": "0.18.4",
52
52
  "typescript": "7.0.2",
53
- "@mpgd/adapter-ait": "0.6.0",
53
+ "@mpgd/adapter-ait": "0.7.0",
54
54
  "@mpgd/adapter-browser": "0.5.0",
55
+ "@mpgd/adapter-devvit": "0.8.4",
55
56
  "@mpgd/adapter-capacitor": "0.4.4",
56
57
  "@mpgd/adapter-verse8": "0.2.1",
57
- "@mpgd/adapter-devvit": "0.8.4",
58
58
  "@mpgd/analytics": "0.3.7",
59
- "@mpgd/bridge": "0.6.1",
60
- "@mpgd/catalog": "0.5.0",
61
59
  "@mpgd/game-services": "0.10.0",
60
+ "@mpgd/bridge": "0.6.1",
62
61
  "@mpgd/i18n": "0.5.3",
63
- "@mpgd/phaser-assets": "0.4.1",
64
62
  "@mpgd/platform": "0.7.0",
63
+ "@mpgd/catalog": "0.5.0",
64
+ "@mpgd/phaser-assets": "0.4.1",
65
65
  "@mpgd/target-config": "0.9.0"
66
66
  },
67
67
  "main": "./dist/index.js",
@@ -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 `granite.config.ts` before
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 AppsInTossWebConfig } from '@apps-in-toss/web-framework/config';
1
+ import { defineConfig, type AppsInTossConfig } from '@apps-in-toss/web-framework/config';
2
2
 
3
- const config: AppsInTossWebConfig = {
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
- web: {
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: AppsInTossWebConfig = defineConfig(config);
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": "^2.10.6",
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": "^2.10.6",
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",
@@ -4,5 +4,5 @@
4
4
  "types": ["vite/client", "node"],
5
5
  "noEmit": true
6
6
  },
7
- "include": ["src/**/*.ts", "vite.config.ts", "granite.config.ts"]
7
+ "include": ["src/**/*.ts", "vite.config.ts", "apps-in-toss.config.ts"]
8
8
  }
@@ -3,7 +3,6 @@ dist/
3
3
  apps/*/dist/
4
4
  apps/target-ait/.ait_relay
5
5
  apps/target-ait/.ait_urls
6
- apps/target-ait/.granite/
7
6
  apps/target-ait/generated/
8
7
  apps/target-ait/public/assets/
9
8
  apps/target-ait/public/game/
@@ -49,7 +49,7 @@
49
49
  "appName": "__GAME_NAME__",
50
50
  "displayName": "__GAME_TITLE__",
51
51
  "primaryColor": "#101820",
52
- "sdkMajor": 2
52
+ "sdkMajor": 3
53
53
  },
54
54
  "icon": { "profile": "ait" },
55
55
  "webDir": "apps/target-ait/public/game",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@ait-co/polyfill": "^0.1.17",
61
- "@apps-in-toss/web-framework": "^2.10.6",
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__",