@akanjs/devkit 3.3.0-rc.19 → 3.3.0-rc.20

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.
@@ -273,12 +273,12 @@ describe("NativeApp", () => {
273
273
  expect(() => NativeApp.assertInstaller("ios", true)).toThrow(/not for ios/);
274
274
  });
275
275
 
276
- test("opens a dev build on its target's home, the CSR shell under the locale", () => {
276
+ test("opens a dev build on its target's home, the CSR shell under the locale, the device's language to pick", () => {
277
277
  expect(new NativeApp(fakeApp(), target({ indexPath: "/explore" })).startPath("en", "ios")).toBe(
278
- "/en/explore?csr=true&akanMobileTarget=default&akanMobileIndexPath=%2Fexplore",
278
+ "/en/explore?csr=true&akanMobileTarget=default&akanMobileLang=device&akanMobileIndexPath=%2Fexplore",
279
279
  );
280
280
  expect(new NativeApp(fakeApp(), target({ name: "admin", basePath: "/admin/" })).startPath("ko", "android")).toBe(
281
- "/ko/admin?csr=true&akanMobileTarget=admin&akanMobileBasePath=admin",
281
+ "/ko/admin?csr=true&akanMobileTarget=admin&akanMobileLang=device&akanMobileBasePath=admin",
282
282
  );
283
283
  });
284
284
 
@@ -289,9 +289,11 @@ describe("NativeApp", () => {
289
289
  expect(app.indexPath("android")).toBe("/mobile");
290
290
  expect(app.indexPath("macos")).toBe("/");
291
291
  expect(app.indexPath("windows")).toBe("/");
292
- expect(app.startPath("en", "macos")).toBe("/en?csr=true&akanMobileTarget=default&akanMobileIndexPath=%2F");
292
+ expect(app.startPath("en", "macos")).toBe(
293
+ "/en?csr=true&akanMobileTarget=default&akanMobileLang=device&akanMobileIndexPath=%2F",
294
+ );
293
295
  expect(app.startPath("en", "ios")).toBe(
294
- "/en/mobile?csr=true&akanMobileTarget=default&akanMobileIndexPath=%2Fmobile",
296
+ "/en/mobile?csr=true&akanMobileTarget=default&akanMobileLang=device&akanMobileIndexPath=%2Fmobile",
295
297
  );
296
298
  });
297
299
 
@@ -564,11 +564,11 @@ export class NativeApp {
564
564
  }
565
565
 
566
566
  /** The first page of a dev build, the target's home as a release bundle opens it; the dev server answers the CSR
567
- * shell only for `?csr=true`. */
567
+ * shell only for `?csr=true`, under a locale, and `akanMobileLang=device` has the page swap `lang` for the device's. */
568
568
  startPath(lang: string, platform: NativePlatform) {
569
569
  const basePath = this.target.config.basePath?.replace(/^\/+|\/+$/g, "");
570
570
  const indexPath = this.indexPath(platform);
571
- const params = new URLSearchParams({ csr: "true", akanMobileTarget: this.target.name });
571
+ const params = new URLSearchParams({ csr: "true", akanMobileTarget: this.target.name, akanMobileLang: "device" });
572
572
  if (basePath) params.set("akanMobileBasePath", basePath);
573
573
  if (indexPath) params.set("akanMobileIndexPath", indexPath);
574
574
  const home = [lang, basePath, indexPath]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "3.3.0-rc.19",
3
+ "version": "3.3.0-rc.20",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -50,7 +50,7 @@
50
50
  "./workspace/getRelatedCnsts": "./workspace/getRelatedCnsts.ts"
51
51
  },
52
52
  "dependencies": {
53
- "@akanjs/language": "3.3.0-rc.19",
53
+ "@akanjs/language": "3.3.0-rc.20",
54
54
  "@earendil-works/pi-agent-core": "1.5.2",
55
55
  "@earendil-works/pi-ai": "1.5.2",
56
56
  "@earendil-works/pi-codemode": "1.5.2",
@@ -59,7 +59,7 @@
59
59
  "@earendil-works/pi-tui": "1.5.2",
60
60
  "@inquirer/prompts": "^8.7.3",
61
61
  "@tailwindcss/node": "^4.3.3",
62
- "akanjs": "3.3.0-rc.19",
62
+ "akanjs": "3.3.0-rc.20",
63
63
  "chalk": "^6.0.1",
64
64
  "commander": "^15.0.0",
65
65
  "dayjs": "^1.11.23",