@wix/himalaya-cli 0.2030.0 → 0.2031.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.
Files changed (33) hide show
  1. package/dist/cli.mjs +110 -79
  2. package/guides/splash-screens.md +11 -0
  3. package/package.json +2 -2
  4. package/templates/bare-fashion/config.ts +14 -0
  5. package/templates/beauty-salon/config.ts +1 -1
  6. package/templates/beauty-salon-owner/config.ts +2 -2
  7. package/templates/branded-lite/config.ts +1 -1
  8. package/templates/community-club/config.ts +1 -1
  9. package/templates/community-club-owner/config.ts +2 -2
  10. package/templates/conference/config.ts +14 -0
  11. package/templates/events-meetups/config.ts +1 -1
  12. package/templates/events-meetups-owner/config.ts +2 -2
  13. package/templates/fitness-gym/config.ts +14 -0
  14. package/templates/gym-fitness/config.ts +1 -1
  15. package/templates/gym-fitness-owner/config.ts +2 -2
  16. package/templates/medical-services/config.ts +14 -0
  17. package/templates/nonprofit-cause/config.ts +1 -1
  18. package/templates/nonprofit-cause-owner/config.ts +2 -2
  19. package/templates/owner-lite/config.ts +2 -2
  20. package/templates/personal-fitness-trainer/config.ts +14 -0
  21. package/templates/podcast-creator/config.ts +1 -1
  22. package/templates/podcast-creator-owner/config.ts +2 -2
  23. package/templates/portfolio-creative/config.ts +1 -1
  24. package/templates/portfolio-creative-owner/config.ts +2 -2
  25. package/templates/professional-services/config.ts +14 -0
  26. package/templates/restaurant/config.ts +1 -1
  27. package/templates/restaurant-owner/config.ts +2 -2
  28. package/templates/retail-store/config.ts +1 -1
  29. package/templates/retail-store-owner/config.ts +2 -2
  30. package/templates/salon-spa/config.ts +14 -0
  31. package/templates/wholesale-store/config.ts +14 -0
  32. package/templates/yoga-studio/config.ts +1 -1
  33. package/templates/yoga-studio-owner/config.ts +2 -2
package/dist/cli.mjs CHANGED
@@ -9536,6 +9536,7 @@ __export(splash_exports, {
9536
9536
  nativeConfigInputTokens: () => nativeConfigInputTokens,
9537
9537
  normalizeHex: () => normalizeHex,
9538
9538
  parseSplashConfig: () => parseSplashConfig,
9539
+ readSplashScalars: () => readSplashScalars,
9539
9540
  renderSplashYaml: () => renderSplashYaml,
9540
9541
  resolveSplashColors: () => resolveSplashColors,
9541
9542
  roundedSquareCornerPt: () => roundedSquareCornerPt,
@@ -9628,17 +9629,24 @@ function splashFields(literal5, resolve142, depth = 0) {
9628
9629
  if (!value2) continue;
9629
9630
  if (ts2.isStringLiteralLike(value2)) fields2.set(key4, value2.text);
9630
9631
  else if (ts2.isNumericLiteral(value2)) fields2.set(key4, Number(value2.text));
9632
+ else if (value2.kind === ts2.SyntaxKind.TrueKeyword) fields2.set(key4, true);
9633
+ else if (value2.kind === ts2.SyntaxKind.FalseKeyword) fields2.set(key4, false);
9631
9634
  }
9632
9635
  return fields2;
9633
9636
  }
9634
- function parseSplashConfig(configTs) {
9635
- if (!configTs.includes("splash")) return {};
9637
+ function splashFieldsOf(configTs) {
9638
+ if (!configTs.includes("splash")) return /* @__PURE__ */ new Map();
9636
9639
  const file2 = parseConfigSource(configTs);
9637
9640
  const hit = findSplashLiteral(file2) ?? (isModuleSource(file2) ? void 0 : findSplashLiteral(parseConfigSource(`({
9638
9641
  ${configTs}
9639
9642
  })`)));
9640
- if (!hit) return {};
9641
- const fields2 = splashFields(hit.literal, hit.resolve);
9643
+ return hit ? splashFields(hit.literal, hit.resolve) : /* @__PURE__ */ new Map();
9644
+ }
9645
+ function readSplashScalars(configTs) {
9646
+ return Object.fromEntries(splashFieldsOf(configTs));
9647
+ }
9648
+ function parseSplashConfig(configTs) {
9649
+ const fields2 = splashFieldsOf(configTs);
9642
9650
  const str27 = (k3) => {
9643
9651
  const v2 = fields2.get(k3);
9644
9652
  return typeof v2 === "string" ? v2 : void 0;
@@ -39709,7 +39717,7 @@ var init_app_services_requirements = __esm({
39709
39717
  });
39710
39718
 
39711
39719
  // ../../core/dev-server/src/app-icon.ts
39712
- import { existsSync as existsSync32, readFileSync as readFileSync30, readdirSync as readdirSync22 } from "node:fs";
39720
+ import { existsSync as existsSync32, readFileSync as readFileSync30, readdirSync as readdirSync22, realpathSync as realpathSync7 } from "node:fs";
39713
39721
  import { dirname as dirname23, join as join28, resolve as resolve26 } from "node:path";
39714
39722
  import { fileURLToPath as fileURLToPath18 } from "node:url";
39715
39723
  function findAppIconPath(appDir3) {
@@ -39739,8 +39747,21 @@ function findContentIconPath(appDir3) {
39739
39747
  if (abs !== base2 && !abs.startsWith(base2 + "/")) return null;
39740
39748
  return existsSync32(abs) ? abs : null;
39741
39749
  }
39750
+ function findTemplateIconPath(appDir3) {
39751
+ const apps = realOrResolved(join28(ROOT2, "apps"));
39752
+ const abs = realOrResolved(appDir3);
39753
+ if (dirname23(abs) !== apps) return null;
39754
+ const name = abs.slice(apps.length + 1);
39755
+ const match = /^himi-([a-z0-9][a-z0-9-]*)$/.exec(name);
39756
+ if (!match) return null;
39757
+ for (const candidate of [name, match[1]]) {
39758
+ const icon = join28(TEMPLATE_ICONS_DIR2, `${candidate}.png`);
39759
+ if (existsSync32(icon)) return icon;
39760
+ }
39761
+ return null;
39762
+ }
39742
39763
  function resolveAppDirIcon(appDir3) {
39743
- return findContentIconPath(appDir3) ?? findAppIconPath(appDir3);
39764
+ return findContentIconPath(appDir3) ?? findAppIconPath(appDir3) ?? findTemplateIconPath(appDir3);
39744
39765
  }
39745
39766
  function readIconFromDir(appDir3) {
39746
39767
  const path2 = resolveAppDirIcon(appDir3);
@@ -39763,12 +39784,20 @@ function readAppIconById(appId3) {
39763
39784
  const dir = resolveAppDir(appId3);
39764
39785
  return dir ? readIconFromDir(dir) : null;
39765
39786
  }
39766
- var ROOT2, APP_ROOTS2;
39787
+ var ROOT2, APP_ROOTS2, TEMPLATE_ICONS_DIR2, realOrResolved;
39767
39788
  var init_app_icon = __esm({
39768
39789
  "../../core/dev-server/src/app-icon.ts"() {
39769
39790
  init_define_HHP_CATALOG();
39770
39791
  ROOT2 = resolve26(dirname23(fileURLToPath18(import.meta.url)), "../../..");
39771
39792
  APP_ROOTS2 = ["apps", "test-apps"];
39793
+ TEMPLATE_ICONS_DIR2 = join28(ROOT2, "tools/himi-cli/template-icons");
39794
+ realOrResolved = (p2) => {
39795
+ try {
39796
+ return realpathSync7(p2);
39797
+ } catch {
39798
+ return resolve26(p2);
39799
+ }
39800
+ };
39772
39801
  }
39773
39802
  });
39774
39803
 
@@ -45959,6 +45988,7 @@ function resolveIdiom(tokens2, ctx = {}) {
45959
45988
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
45960
45989
  var init_idiom = __esm({
45961
45990
  "../../core/ts/src/idiom.ts"() {
45991
+ "use strict";
45962
45992
  init_define_HHP_CATALOG();
45963
45993
  IDIOM_CONTEXTS = {
45964
45994
  ios: { native: ["ios"] },
@@ -47728,6 +47758,7 @@ function shouldRevealError(args) {
47728
47758
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
47729
47759
  var init_validation = __esm({
47730
47760
  "../../core/ts/src/validation.ts"() {
47761
+ "use strict";
47731
47762
  init_define_HHP_CATALOG();
47732
47763
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
47733
47764
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -165570,7 +165601,7 @@ __export(build_exports2, {
165570
165601
  withoutDevOnlyAppConfig: () => withoutDevOnlyAppConfig
165571
165602
  });
165572
165603
  import { createHash as createHash27 } from "node:crypto";
165573
- import { readFileSync as readFileSync47, readdirSync as readdirSync27, existsSync as existsSync43, realpathSync as realpathSync7 } from "node:fs";
165604
+ import { readFileSync as readFileSync47, readdirSync as readdirSync27, existsSync as existsSync43, realpathSync as realpathSync8 } from "node:fs";
165574
165605
  import { dirname as dirname29, join as join39, resolve as resolve36, sep as sep13 } from "node:path";
165575
165606
  import { fileURLToPath as fileURLToPath28 } from "node:url";
165576
165607
  import { createRequire as createRequire4 } from "node:module";
@@ -165705,9 +165736,9 @@ function sourceTranslationKeys2(locale, appDir3) {
165705
165736
  const path2 = join39(l10nDir, `${tag2}.json`);
165706
165737
  if (!existsSync43(path2)) return /* @__PURE__ */ new Set();
165707
165738
  try {
165708
- const realDir = realpathSync7(l10nDir);
165709
- const realFile = realpathSync7(path2);
165710
- if (!realDir.startsWith(realpathSync7(appDir3) + sep13) || dirname29(realFile) !== realDir) return /* @__PURE__ */ new Set();
165739
+ const realDir = realpathSync8(l10nDir);
165740
+ const realFile = realpathSync8(path2);
165741
+ if (!realDir.startsWith(realpathSync8(appDir3) + sep13) || dirname29(realFile) !== realDir) return /* @__PURE__ */ new Set();
165711
165742
  return new Set(keyMap(parseCatalog(readFileSync47(realFile, "utf8")), { sourceFallback: true }).keys());
165712
165743
  } catch {
165713
165744
  return /* @__PURE__ */ new Set();
@@ -168717,13 +168748,13 @@ __export(studio_exports, {
168717
168748
  writeStudioRecord: () => writeStudioRecord
168718
168749
  });
168719
168750
  import { createHash as createHash28 } from "node:crypto";
168720
- import { existsSync as existsSync46, readdirSync as readdirSync29, readFileSync as readFileSync50, realpathSync as realpathSync8, statSync as statSync13 } from "node:fs";
168751
+ import { existsSync as existsSync46, readdirSync as readdirSync29, readFileSync as readFileSync50, realpathSync as realpathSync9, statSync as statSync13 } from "node:fs";
168721
168752
  import { basename as basename12, extname as extname3, join as join42, relative as relative11, resolve as resolve37, sep as sep14 } from "node:path";
168722
168753
  import { pathToFileURL as pathToFileURL6 } from "node:url";
168723
168754
  function realInside(dir, abs) {
168724
168755
  try {
168725
- const root = realpathSync8(dir);
168726
- const real = realpathSync8(abs);
168756
+ const root = realpathSync9(dir);
168757
+ const real = realpathSync9(abs);
168727
168758
  return real.startsWith(root + sep14) ? real : null;
168728
168759
  } catch {
168729
168760
  return null;
@@ -180009,10 +180040,10 @@ __export(content_manifest_exports, {
180009
180040
  writeContentManifest: () => writeContentManifest
180010
180041
  });
180011
180042
  import { randomUUID as randomUUID8 } from "node:crypto";
180012
- import { constants as constants3, lstatSync as lstatSync18, readFileSync as readFileSync58, realpathSync as realpathSync9, writeFileSync as writeFileSync22, renameSync as renameSync10, openSync as openSync4, closeSync as closeSync4, unlinkSync as unlinkSync2 } from "node:fs";
180043
+ import { constants as constants3, lstatSync as lstatSync18, readFileSync as readFileSync58, realpathSync as realpathSync10, writeFileSync as writeFileSync22, renameSync as renameSync10, openSync as openSync4, closeSync as closeSync4, unlinkSync as unlinkSync2 } from "node:fs";
180013
180044
  import { join as join47 } from "node:path";
180014
180045
  function contentManifestPath(dir) {
180015
- const path2 = join47(realpathSync9(dir), "himalaya.content.json");
180046
+ const path2 = join47(realpathSync10(dir), "himalaya.content.json");
180016
180047
  try {
180017
180048
  if (lstatSync18(path2).isSymbolicLink()) throw new Error("himalaya.content.json is a symlink \u2014 refusing to read or write through it");
180018
180049
  } catch (error) {
@@ -189289,7 +189320,7 @@ __export(run_watch_exports, {
189289
189320
  watchedContentDir: () => watchedContentDir,
189290
189321
  writeRunRecord: () => writeRunRecord
189291
189322
  });
189292
- import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync22, readdirSync as readdirSync35, mkdirSync as mkdirSync34, openSync as openSync5, readFileSync as readFileSync69, realpathSync as realpathSync10, renameSync as renameSync13, rmSync as rmSync21, writeFileSync as writeFileSync30, watch as fsWatch } from "node:fs";
189323
+ import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync22, readdirSync as readdirSync35, mkdirSync as mkdirSync34, openSync as openSync5, readFileSync as readFileSync69, realpathSync as realpathSync11, renameSync as renameSync13, rmSync as rmSync21, writeFileSync as writeFileSync30, watch as fsWatch } from "node:fs";
189293
189324
  import { randomUUID as randomUUID9 } from "node:crypto";
189294
189325
  import { extname as extname4, join as join58, relative as relative14, resolve as resolve49, sep as sep19 } from "node:path";
189295
189326
  function diffReleases(prev, next) {
@@ -189554,8 +189585,8 @@ function readConfined(root, rel2) {
189554
189585
  const st2 = lstatSync21(at2);
189555
189586
  if (st2.isSymbolicLink() || !(i2 === parts.length - 1 ? st2.isFile() : st2.isDirectory())) return null;
189556
189587
  }
189557
- const canonicalRoot = realpathSync10(root);
189558
- if (!realpathSync10(at2).startsWith(canonicalRoot + sep19)) return null;
189588
+ const canonicalRoot = realpathSync11(root);
189589
+ if (!realpathSync11(at2).startsWith(canonicalRoot + sep19)) return null;
189559
189590
  const fd = openSync5(at2, constants5.O_RDONLY | (constants5.O_NOFOLLOW ?? 0));
189560
189591
  try {
189561
189592
  if (!fstatSync2(fd).isFile()) return null;
@@ -204110,7 +204141,7 @@ __export(crawl_layers_exports, {
204110
204141
  renderMocksFrom: () => renderMocksFrom,
204111
204142
  tabRootScreens: () => tabRootScreens
204112
204143
  });
204113
- import { existsSync as existsSync88, readFileSync as readFileSync96, realpathSync as realpathSync11 } from "node:fs";
204144
+ import { existsSync as existsSync88, readFileSync as readFileSync96, realpathSync as realpathSync12 } from "node:fs";
204114
204145
  import { dirname as dirname50, join as join87, resolve as resolve59, sep as sep24 } from "node:path";
204115
204146
  async function loadContentConfigQuietly(dir) {
204116
204147
  try {
@@ -204198,9 +204229,9 @@ async function l10nSourceCatalogFile(dir) {
204198
204229
  const file2 = resolve59(l10nDir, `${tag2}.json`);
204199
204230
  if (!existsSync88(file2)) return null;
204200
204231
  try {
204201
- const realDir = realpathSync11(l10nDir);
204202
- const realFile = realpathSync11(file2);
204203
- if (!realDir.startsWith(realpathSync11(dir) + sep24) || dirname50(realFile) !== realDir) return null;
204232
+ const realDir = realpathSync12(l10nDir);
204233
+ const realFile = realpathSync12(file2);
204234
+ if (!realDir.startsWith(realpathSync12(dir) + sep24) || dirname50(realFile) !== realDir) return null;
204204
204235
  return { tag: tag2, text: readFileSync96(realFile, "utf8") };
204205
204236
  } catch {
204206
204237
  return null;
@@ -206909,7 +206940,7 @@ import {
206909
206940
  existsSync as existsSync91,
206910
206941
  lstatSync as lstatSync28,
206911
206942
  mkdirSync as mkdirSync40,
206912
- realpathSync as realpathSync12,
206943
+ realpathSync as realpathSync13,
206913
206944
  readlinkSync as readlinkSync2,
206914
206945
  readFileSync as readFileSync101,
206915
206946
  readdirSync as readdirSync42,
@@ -206979,7 +207010,7 @@ function currentGitDiffHash(contentDir2) {
206979
207010
  }
206980
207011
  function currentGitUntrackedHash(contentDir2) {
206981
207012
  const unresolved = resolve64(contentDir2);
206982
- const absolute2 = realpathSync12.native(unresolved);
207013
+ const absolute2 = realpathSync13.native(unresolved);
206983
207014
  const root = repoRoot(absolute2);
206984
207015
  if (!root) return sourceTreeHash(absolute2);
206985
207016
  const scope3 = relative19(root, absolute2) || ".";
@@ -219547,7 +219578,7 @@ var init_cli_bridge = __esm({
219547
219578
  });
219548
219579
 
219549
219580
  // src/mcp/file-tools.ts
219550
- import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync31, mkdirSync as mkdirSync43, openSync as openSync7, readdirSync as readdirSync46, readFileSync as readFileSync126, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync32, statSync as statSync31, writeSync as writeSync2, existsSync as existsSync113 } from "node:fs";
219581
+ import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync31, mkdirSync as mkdirSync43, openSync as openSync7, readdirSync as readdirSync46, readFileSync as readFileSync126, realpathSync as realpathSync14, renameSync as renameSync16, rmSync as rmSync32, statSync as statSync31, writeSync as writeSync2, existsSync as existsSync113 } from "node:fs";
219551
219582
  import { randomBytes as randomBytes5 } from "node:crypto";
219552
219583
  import { dirname as dirname56, isAbsolute as isAbsolute15, join as join114, relative as relative22, resolve as resolve75, sep as sep26 } from "node:path";
219553
219584
  import * as z2 from "zod";
@@ -219563,7 +219594,7 @@ function realish(p2) {
219563
219594
  tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
219564
219595
  cur = up2;
219565
219596
  }
219566
- return join114(realpathSync13(cur), ...tail);
219597
+ return join114(realpathSync14(cur), ...tail);
219567
219598
  }
219568
219599
  function symlinkComponent(base2, abs) {
219569
219600
  let cur = base2;
@@ -219581,7 +219612,7 @@ function workspaceRefusal(root, target) {
219581
219612
  const r3 = resolve75(root);
219582
219613
  const t2 = resolve75(r3, target);
219583
219614
  if (!existsSync113(r3)) return `the workspace folder ${r3} does not exist`;
219584
- if (!within(r3, t2) || !within(realpathSync13(r3), realish(t2))) return `"${target}" is outside the workspace folder ${r3}`;
219615
+ if (!within(r3, t2) || !within(realpathSync14(r3), realish(t2))) return `"${target}" is outside the workspace folder ${r3}`;
219585
219616
  const link4 = symlinkComponent(r3, t2);
219586
219617
  if (link4) return `"${link4}" is a symlink \u2014 paths must stay in real folders inside the workspace`;
219587
219618
  return null;
@@ -219590,7 +219621,7 @@ async function confinedAppDir(args, deps) {
219590
219621
  const root = resolve75(await deps.defaultDir());
219591
219622
  const dir = typeof args.dir === "string" && args.dir ? resolve75(root, args.dir) : root;
219592
219623
  if (!existsSync113(root)) return refuse5("no_workspace", `the workspace folder ${root} does not exist`);
219593
- if (!within(root, dir) || !within(realpathSync13(root), realish(dir))) return refuse5("outside_workspace", `"${String(args.dir)}" is outside the workspace folder`);
219624
+ if (!within(root, dir) || !within(realpathSync14(root), realish(dir))) return refuse5("outside_workspace", `"${String(args.dir)}" is outside the workspace folder`);
219594
219625
  const link4 = symlinkComponent(root, dir);
219595
219626
  if (link4) return refuse5("outside_workspace", `"${link4}" is a symlink \u2014 the app folder must be a real folder in the workspace`);
219596
219627
  const rel2 = relative22(root, dir);
@@ -219609,13 +219640,13 @@ function onDiskSpelling(abs) {
219609
219640
  tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
219610
219641
  cur = up2;
219611
219642
  }
219612
- return join114(realpathSync13.native(cur), ...tail);
219643
+ return join114(realpathSync14.native(cur), ...tail);
219613
219644
  }
219614
219645
  function denied(appDir3, abs) {
219615
219646
  const rel2 = relative22(appDir3, abs);
219616
219647
  if (isDeniedSourcePath(rel2) || isDeniedSourcePath(rel2.toLowerCase())) return true;
219617
219648
  try {
219618
- return isDeniedSourcePath(relative22(realpathSync13.native(appDir3), onDiskSpelling(abs)));
219649
+ return isDeniedSourcePath(relative22(realpathSync14.native(appDir3), onDiskSpelling(abs)));
219619
219650
  } catch {
219620
219651
  return true;
219621
219652
  }
@@ -219627,7 +219658,7 @@ function confinedPath(appDir3, rel2) {
219627
219658
  const abs = resolve75(appDir3, rel2);
219628
219659
  if (!within(appDir3, abs) || abs === appDir3) return { error: `"${rel2}" is outside the app folder` };
219629
219660
  const real = realish(abs);
219630
- const base2 = existsSync113(appDir3) ? realpathSync13(appDir3) : realish(appDir3);
219661
+ const base2 = existsSync113(appDir3) ? realpathSync14(appDir3) : realish(appDir3);
219631
219662
  if (!within(base2, real) || real === base2) return { error: `"${rel2}" is outside the app folder` };
219632
219663
  const link4 = symlinkComponent(appDir3, abs);
219633
219664
  if (link4) return { error: `"${link4}" is a symlink, which this tool does not follow` };
@@ -219646,7 +219677,7 @@ function writeNoFollow2(appDir3, abs, content) {
219646
219677
  closeSync8(fd);
219647
219678
  }
219648
219679
  const link4 = symlinkComponent(appDir3, abs);
219649
- if (link4 || !within(realpathSync13(appDir3), realpathSync13(dirname56(abs)))) {
219680
+ if (link4 || !within(realpathSync14(appDir3), realpathSync14(dirname56(abs)))) {
219650
219681
  rmSync32(tmp, { force: true });
219651
219682
  throw new Error(`"${link4 ?? relative22(appDir3, dirname56(abs))}" changed into a link while writing`);
219652
219683
  }
@@ -234148,7 +234179,7 @@ __export(store_google_host_exports, {
234148
234179
  signingFor: () => signingFor
234149
234180
  });
234150
234181
  import { createHash as createHash69, randomUUID as randomUUID14 } from "node:crypto";
234151
- import { existsSync as existsSync115, lstatSync as lstatSync33, mkdirSync as mkdirSync44, readFileSync as readFileSync129, readdirSync as readdirSync48, realpathSync as realpathSync14, renameSync as renameSync17, rmSync as rmSync33, statSync as statSync33, writeFileSync as writeFileSync49 } from "node:fs";
234182
+ import { existsSync as existsSync115, lstatSync as lstatSync33, mkdirSync as mkdirSync44, readFileSync as readFileSync129, readdirSync as readdirSync48, realpathSync as realpathSync15, renameSync as renameSync17, rmSync as rmSync33, statSync as statSync33, writeFileSync as writeFileSync49 } from "node:fs";
234152
234183
  import { join as join132, relative as relative25 } from "node:path";
234153
234184
  function readGooglePlayFacts(dir) {
234154
234185
  const path2 = join132(dir, GOOGLE_FACTS_FILE);
@@ -234264,7 +234295,7 @@ async function googleAppFactsFor(dir, o2) {
234264
234295
  const himi = packageName.toLowerCase().startsWith("himi.");
234265
234296
  if (himi && !site) note(`Signing: ${packageName} is a Containers (himi.*) package, which Wix builds and signs for a site-linked app, but this app names no Wix site (a "wix" block in ${GOOGLE_FACTS_FILE} or ${STORE_FACTS_FILE}). Link it (\`himi store app set --app <id> --site <msid> --android-package ${packageName}\`) and add the wix block, or use your own package name.`);
234266
234297
  if (!himi && site) note(`Signing: this app is linked to Wix site ${site.site}, so Wix signs its bundle under a himi.<name> package; ${packageName} is not one. Set packageName to the site's saved himi.<name> package (\`himi store app show --app ${site.app} --site ${site.site}\`), or drop the wix block for an owner-signed app.`);
234267
- const realDir = realpathSync14(dir);
234298
+ const realDir = realpathSync15(dir);
234268
234299
  const files = {};
234269
234300
  const given = (key4) => {
234270
234301
  const p2 = str18(file2[key4]);
@@ -251573,7 +251604,7 @@ function realPathOf2(path2) {
251573
251604
  d2 = dirname67(d2);
251574
251605
  }
251575
251606
  try {
251576
- return join139(realpathSync15(d2), ...rest);
251607
+ return join139(realpathSync16(d2), ...rest);
251577
251608
  } catch {
251578
251609
  return resolve85(path2);
251579
251610
  }
@@ -251636,13 +251667,13 @@ function reserveKeyFile(dir, keyId) {
251636
251667
  }
251637
251668
  };
251638
251669
  }
251639
- var createPrivateKey6, closeSync9, existsSync117, mkdirSync46, openSync8, realpathSync15, statSync35, unlinkSync7, writeSync3, basename31, dirname67, isAbsolute17, join139, resolve85, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
251670
+ var createPrivateKey6, closeSync9, existsSync117, mkdirSync46, openSync8, realpathSync16, statSync35, unlinkSync7, writeSync3, basename31, dirname67, isAbsolute17, join139, resolve85, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
251640
251671
  var init_api_keys = __esm({
251641
251672
  "../../node_modules/@wix/asc-web/dist/api-keys.js"() {
251642
251673
  init_define_HHP_CATALOG();
251643
251674
  init_dist3();
251644
251675
  ({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
251645
- ({ closeSync: closeSync9, existsSync: existsSync117, mkdirSync: mkdirSync46, openSync: openSync8, realpathSync: realpathSync15, statSync: statSync35, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
251676
+ ({ closeSync: closeSync9, existsSync: existsSync117, mkdirSync: mkdirSync46, openSync: openSync8, realpathSync: realpathSync16, statSync: statSync35, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
251646
251677
  ({ basename: basename31, dirname: dirname67, isAbsolute: isAbsolute17, join: join139, resolve: resolve85 } = __ascBuiltin217);
251647
251678
  TEAM_KEY_ROLES = ["ADMIN", "APP_MANAGER", "DEVELOPER", "FINANCE", "SALES", "MARKETING", "ACCESS_TO_REPORTS", "CUSTOMER_SUPPORT", "CREATE_APPS", "CLOUD_MANAGED_APP_DISTRIBUTION", "CLOUD_MANAGED_DEVELOPER_ID"];
251648
251679
  DOWNLOAD_ATTEMPTS = 3;
@@ -263812,7 +263843,7 @@ function fileRoots(env) {
263812
263843
  const roots2 = [process.cwd(), ...(env.ASC_MCP_FILE_ROOTS ?? "").split(delimiter3)].map((r3) => r3.trim()).filter(Boolean);
263813
263844
  return [...new Set(roots2.flatMap((r3) => {
263814
263845
  try {
263815
- return [realpathSync16(resolve93(r3))];
263846
+ return [realpathSync17(resolve93(r3))];
263816
263847
  } catch {
263817
263848
  return [];
263818
263849
  }
@@ -263825,7 +263856,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
263825
263856
  const given = resolve93(roots2[0] ?? process.cwd(), path2);
263826
263857
  let real;
263827
263858
  try {
263828
- real = realpathSync16(given);
263859
+ real = realpathSync17(given);
263829
263860
  } catch (e2) {
263830
263861
  throw new AscError("invalid", `${param}: cannot read ${path2} (${e2.code ?? "unreadable"})`);
263831
263862
  }
@@ -263834,7 +263865,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
263834
263865
  throw new AscError("invalid", `${param}: ${path2} is not a ${o2.directory ? "directory" : "regular file"}`);
263835
263866
  let state;
263836
263867
  try {
263837
- state = realpathSync16(ctx.stateDir);
263868
+ state = realpathSync17(ctx.stateDir);
263838
263869
  } catch {
263839
263870
  state = void 0;
263840
263871
  }
@@ -264033,7 +264064,7 @@ ${o2.detail}` : ""}` };
264033
264064
  function enabledTools(env, o2 = {}) {
264034
264065
  return TOOLS.filter((t2) => !t2.write || env.ASC_MCP_WRITE === "1" || o2.approvals === true);
264035
264066
  }
264036
- var mkdirSync51, readFileSync142, realpathSync16, statSync43, writeFileSync55, delimiter3, isAbsolute19, join149, relative26, resolve93, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
264067
+ var mkdirSync51, readFileSync142, realpathSync17, statSync43, writeFileSync55, delimiter3, isAbsolute19, join149, relative26, resolve93, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
264037
264068
  var init_tools2 = __esm({
264038
264069
  "../../node_modules/@wix/asc-mcp/dist/tools.js"() {
264039
264070
  init_define_HHP_CATALOG();
@@ -264043,7 +264074,7 @@ var init_tools2 = __esm({
264043
264074
  init_dist6();
264044
264075
  init_dist7();
264045
264076
  init_action_catalog_generated();
264046
- ({ mkdirSync: mkdirSync51, readFileSync: readFileSync142, realpathSync: realpathSync16, statSync: statSync43, writeFileSync: writeFileSync55 } = __ascBuiltin075);
264077
+ ({ mkdirSync: mkdirSync51, readFileSync: readFileSync142, realpathSync: realpathSync17, statSync: statSync43, writeFileSync: writeFileSync55 } = __ascBuiltin075);
264047
264078
  ({ delimiter: delimiter3, isAbsolute: isAbsolute19, join: join149, relative: relative26, resolve: resolve93, sep: sep29 } = __ascBuiltin148);
264048
264079
  READ = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true };
264049
264080
  PLAN = { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true };
@@ -266261,14 +266292,14 @@ __export(apple_keys_exports, {
266261
266292
  runAppleKeys: () => runAppleKeys
266262
266293
  });
266263
266294
  import { createPublicKey as createPublicKey5 } from "node:crypto";
266264
- import { readFileSync as readFileSync143, realpathSync as realpathSync17, statSync as statSync44 } from "node:fs";
266295
+ import { readFileSync as readFileSync143, realpathSync as realpathSync18, statSync as statSync44 } from "node:fs";
266265
266296
  function readKey2(flags, kind) {
266266
266297
  const names2 = kind === "asc" ? ["asc-key-file", "asc-key-id", "asc-issuer-id"] : ["iap-key", "iap-key-id", "iap-issuer-id"];
266267
266298
  if (names2.every((name) => flags[name] === void 0)) return void 0;
266268
266299
  const [file2, keyId, issuerId] = names2.map((name) => text17(flags[name]));
266269
266300
  if (!file2 || !keyId || !issuerId) throw new UsageError2(`Supply --${names2.join(" --")} together.`);
266270
266301
  try {
266271
- const path2 = realpathSync17(file2);
266302
+ const path2 = realpathSync18(file2);
266272
266303
  assertCredentialOutsideRepo(names2[0], path2);
266273
266304
  if (statSync44(path2).size > 16384) throw new Error("oversized");
266274
266305
  const key4 = { keyId, issuerId, key: readFileSync143(path2, "utf8") };
@@ -266452,7 +266483,7 @@ __export(store_host_exports, {
266452
266483
  wixTargetOf: () => wixTargetOf
266453
266484
  });
266454
266485
  import { spawn as spawn8 } from "node:child_process";
266455
- import { existsSync as existsSync120, lstatSync as lstatSync36, readFileSync as readFileSync144, readdirSync as readdirSync53, realpathSync as realpathSync18 } from "node:fs";
266486
+ import { existsSync as existsSync120, lstatSync as lstatSync36, readFileSync as readFileSync144, readdirSync as readdirSync53, realpathSync as realpathSync19 } from "node:fs";
266456
266487
  import { homedir as homedir16, hostname as hostname6, userInfo as userInfo3 } from "node:os";
266457
266488
  import { delimiter as delimiter4, dirname as dirname69, isAbsolute as isAbsolute20, join as join151, relative as relative27, resolve as resolve94, sep as sep30 } from "node:path";
266458
266489
  function storeNodeRefusal(version5 = process.versions.node) {
@@ -266585,12 +266616,12 @@ function privacyAnswersFor(dir, ownerPath, shellOnly, checked, deps, note) {
266585
266616
  function ownerAnswers(dir, ownerPath, deps, note, rel2, render3) {
266586
266617
  let real;
266587
266618
  try {
266588
- real = realpathSync18(ownerPath);
266619
+ real = realpathSync19(ownerPath);
266589
266620
  } catch {
266590
266621
  note(`App Privacy: could not read ${rel2(ownerPath)} to check it against the Himi app's own answers.`);
266591
266622
  return ownerPath;
266592
266623
  }
266593
- const realDir = realpathSync18(dir);
266624
+ const realDir = realpathSync19(dir);
266594
266625
  if (real !== realDir && !real.startsWith(realDir + sep30)) {
266595
266626
  throw new StoreFactsError(`privacyAnswersFile must be inside the app folder; ${rel2(ownerPath)} is not`, "store_facts_invalid");
266596
266627
  }
@@ -266632,7 +266663,7 @@ function factPathIn(dir, realDir, key4, p2, file2 = STORE_FACTS_FILE) {
266632
266663
  while (!existsSync120(probe2) && probe2 !== base2) probe2 = dirname69(probe2);
266633
266664
  let real;
266634
266665
  try {
266635
- real = realpathSync18(probe2);
266666
+ real = realpathSync19(probe2);
266636
266667
  } catch {
266637
266668
  throw refuse11();
266638
266669
  }
@@ -266674,7 +266705,7 @@ async function appFactsFor(dir, deps) {
266674
266705
  ...str21(file2.sku) ? { sku: str21(file2.sku) } : {},
266675
266706
  ...str21(file2.buildNumber) ? { buildNumber: str21(file2.buildNumber) } : {}
266676
266707
  };
266677
- const realDir = realpathSync18(dir);
266708
+ const realDir = realpathSync19(dir);
266678
266709
  for (const key4 of FILE_FACTS) {
266679
266710
  const p2 = str21(file2[key4]);
266680
266711
  if (p2) facts[key4] = factPathIn(dir, realDir, key4, p2);
@@ -269018,11 +269049,11 @@ __export(input_evidence_isolation_exports, {
269018
269049
  runInputEvidenceChild: () => runInputEvidenceChild
269019
269050
  });
269020
269051
  async function installInputEvidenceIsolation(dir) {
269021
- const { lstatSync: lstatSync46, readdirSync: readdirSync70, readlinkSync: readlinkSync4, realpathSync: realpathSync28 } = await import("node:fs");
269052
+ const { lstatSync: lstatSync46, readdirSync: readdirSync70, readlinkSync: readlinkSync4, realpathSync: realpathSync29 } = await import("node:fs");
269022
269053
  const { dirname: dirname96, isAbsolute: isAbsolute26, join: join231, relative: relative42, resolve: resolve142, sep: sep38 } = await import("node:path");
269023
269054
  const root = resolve142(dir);
269024
269055
  const privateDir = join231(root, ".himi");
269025
- const privateReal = join231(realpathSync28(root), ".himi") + sep38;
269056
+ const privateReal = join231(realpathSync29(root), ".himi") + sep38;
269026
269057
  const within2 = (base2, path2) => {
269027
269058
  const rel2 = relative42(base2, path2);
269028
269059
  return !!rel2 && rel2 !== ".." && !rel2.startsWith(`..${sep38}`) && !isAbsolute26(rel2);
@@ -269035,10 +269066,10 @@ async function installInputEvidenceIsolation(dir) {
269035
269066
  if (isAbsolute26(link4)) return false;
269036
269067
  const target = resolve142(dirname96(path2), link4);
269037
269068
  if (!within2(privateDir, target)) return false;
269038
- if (realpathSync28(path2) !== join231(realpathSync28(root), relative42(root, target))) return false;
269069
+ if (realpathSync29(path2) !== join231(realpathSync29(root), relative42(root, target))) return false;
269039
269070
  return lstatSync46(target).isFile();
269040
269071
  }
269041
- return within2(privateDir, resolve142(path2)) && realpathSync28(path2).startsWith(privateReal);
269072
+ return within2(privateDir, resolve142(path2)) && realpathSync29(path2).startsWith(privateReal);
269042
269073
  } catch {
269043
269074
  return false;
269044
269075
  }
@@ -269468,7 +269499,7 @@ __export(browser_authoring_exports, {
269468
269499
  });
269469
269500
  import { createServer as createServer6 } from "node:http";
269470
269501
  import { createHash as createHash84, randomBytes as randomBytes20 } from "node:crypto";
269471
- import { existsSync as existsSync126, readdirSync as readdirSync55, readFileSync as readFileSync149, realpathSync as realpathSync19, statSync as statSync45 } from "node:fs";
269502
+ import { existsSync as existsSync126, readdirSync as readdirSync55, readFileSync as readFileSync149, realpathSync as realpathSync20, statSync as statSync45 } from "node:fs";
269472
269503
  import { join as join159, posix as posix3, relative as relative30, sep as sep31 } from "node:path";
269473
269504
  function humanMs(ms2) {
269474
269505
  return ms2 < 1e3 ? `${ms2}ms` : `${Math.round(ms2 / 1e3)}s`;
@@ -269478,7 +269509,7 @@ function collectWorkerSources(tier5SrcDir, bundleName) {
269478
269509
  const files = {};
269479
269510
  const visitedDirs = /* @__PURE__ */ new Set();
269480
269511
  const walk6 = (abs, rel2) => {
269481
- const real = realpathSync19(abs);
269512
+ const real = realpathSync20(abs);
269482
269513
  if (visitedDirs.has(real)) return;
269483
269514
  visitedDirs.add(real);
269484
269515
  for (const name of readdirSync55(abs).sort()) {
@@ -272113,7 +272144,7 @@ __export(render_cache_exports, {
272113
272144
  });
272114
272145
  import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
272115
272146
  import { createHash as createHash87, randomBytes as randomBytes21 } from "node:crypto";
272116
- import { existsSync as existsSync135, lstatSync as lstatSync37, mkdirSync as mkdirSync60, readdirSync as readdirSync58, readFileSync as readFileSync158, readlinkSync as readlinkSync3, realpathSync as realpathSync20, renameSync as renameSync21, rmSync as rmSync39, statSync as statSync47, writeFileSync as writeFileSync63 } from "node:fs";
272147
+ import { existsSync as existsSync135, lstatSync as lstatSync37, mkdirSync as mkdirSync60, readdirSync as readdirSync58, readFileSync as readFileSync158, readlinkSync as readlinkSync3, realpathSync as realpathSync21, renameSync as renameSync21, rmSync as rmSync39, statSync as statSync47, writeFileSync as writeFileSync63 } from "node:fs";
272117
272148
  import { join as join169, resolve as resolve103 } from "node:path";
272118
272149
  import { fileURLToPath as fileURLToPath36 } from "node:url";
272119
272150
  function renderCacheKey(contentDir2, inputs) {
@@ -272122,7 +272153,7 @@ function renderCacheKey(contentDir2, inputs) {
272122
272153
  const root = resolve103(contentDir2);
272123
272154
  const seen = /* @__PURE__ */ new Set();
272124
272155
  const walk6 = (dir, rel2) => {
272125
- seen.add(realpathSync20(dir));
272156
+ seen.add(realpathSync21(dir));
272126
272157
  for (const name of readdirSync58(dir).sort()) {
272127
272158
  if (SKIPPED_ANYWHERE.has(name) || rel2 === "" && SKIPPED_TOP.has(name)) continue;
272128
272159
  const path2 = join169(dir, name);
@@ -272133,10 +272164,10 @@ function renderCacheKey(contentDir2, inputs) {
272133
272164
  if (link4) hash3.update(`\0l${relPath}\0${readlinkSync3(path2)}`);
272134
272165
  if (!st2) continue;
272135
272166
  if (st2.isDirectory()) {
272136
- if (!link4 || !seen.has(realpathSync20(path2))) walk6(path2, relPath);
272167
+ if (!link4 || !seen.has(realpathSync21(path2))) walk6(path2, relPath);
272137
272168
  } else if (st2.isFile()) hash3.update(`\0f${relPath}\0`).update(createHash87("sha256").update(readFileSync158(path2)).digest("hex"));
272138
272169
  }
272139
- seen.delete(realpathSync20(dir));
272170
+ seen.delete(realpathSync21(dir));
272140
272171
  };
272141
272172
  walk6(root, "");
272142
272173
  return hash3.digest("hex").slice(0, 32);
@@ -273822,7 +273853,7 @@ __export(validate_design_exports, {
273822
273853
  validateDesign: () => validateDesign
273823
273854
  });
273824
273855
  import { randomBytes as randomBytes22 } from "node:crypto";
273825
- import { closeSync as closeSync12, constants as constants10, existsSync as existsSync139, lstatSync as lstatSync38, openSync as openSync11, readFileSync as readFileSync163, realpathSync as realpathSync21, renameSync as renameSync22, unlinkSync as unlinkSync9, writeFileSync as writeFileSync65 } from "node:fs";
273856
+ import { closeSync as closeSync12, constants as constants10, existsSync as existsSync139, lstatSync as lstatSync38, openSync as openSync11, readFileSync as readFileSync163, realpathSync as realpathSync22, renameSync as renameSync22, unlinkSync as unlinkSync9, writeFileSync as writeFileSync65 } from "node:fs";
273826
273857
  import { dirname as dirname76, isAbsolute as isAbsolute22, join as join174, relative as relative32, resolve as resolve106, sep as sep33, win32 } from "node:path";
273827
273858
  import ts41 from "typescript";
273828
273859
  function readColorToken(tokens2, name) {
@@ -274045,7 +274076,7 @@ function writableTokensPath(contentDir2, location) {
274045
274076
  if (isAbsolute22(location) || win32.isAbsolute(location) || location.split(/[\\/]/).includes("..")) {
274046
274077
  throw new Error("--fix requires a token path inside the content directory without traversal.");
274047
274078
  }
274048
- const root = realpathSync21(contentDir2);
274079
+ const root = realpathSync22(contentDir2);
274049
274080
  const path2 = resolve106(root, location);
274050
274081
  const rel2 = relative32(root, path2);
274051
274082
  if (!rel2 || rel2 === ".." || rel2.startsWith(`..${sep33}`) || isAbsolute22(rel2)) {
@@ -274060,7 +274091,7 @@ function writableTokensPath(contentDir2, location) {
274060
274091
  throw new Error("--fix requires a regular token file under directories without symlinks.");
274061
274092
  }
274062
274093
  }
274063
- const real = relative32(root, realpathSync21(path2));
274094
+ const real = relative32(root, realpathSync22(path2));
274064
274095
  if (!real || real === ".." || real.startsWith(`..${sep33}`) || isAbsolute22(real)) {
274065
274096
  throw new Error("--fix cannot write outside the content directory.");
274066
274097
  }
@@ -274257,10 +274288,10 @@ function validateDesign(evidenceDir, contentDir2, options2 = {}) {
274257
274288
  };
274258
274289
  }
274259
274290
  function safeEvidencePath(contentDir2, name) {
274260
- const root = realpathSync21(contentDir2);
274291
+ const root = realpathSync22(contentDir2);
274261
274292
  const dir = realDirIn(root, ".himi/one-app");
274262
274293
  if (!dir) throw new Error("The design evidence directory is not a regular directory.");
274263
- const real = relative32(root, realpathSync21(dir));
274294
+ const real = relative32(root, realpathSync22(dir));
274264
274295
  if (!real || real === ".." || real.startsWith(`..${sep33}`) || isAbsolute22(real)) {
274265
274296
  throw new Error("The design evidence directory is outside the content directory.");
274266
274297
  }
@@ -288033,7 +288064,7 @@ var init_credential_profile = __esm({
288033
288064
 
288034
288065
  // ../store-release/iap-credentials.ts
288035
288066
  import { createHash as createHash94 } from "node:crypto";
288036
- import { existsSync as existsSync152, readFileSync as readFileSync179, realpathSync as realpathSync22 } from "node:fs";
288067
+ import { existsSync as existsSync152, readFileSync as readFileSync179, realpathSync as realpathSync23 } from "node:fs";
288037
288068
  import { homedir as homedir19 } from "node:os";
288038
288069
  function accountFingerprint(keyId, issuerId) {
288039
288070
  return `sha256:${createHash94("sha256").update(`${issuerId}:${keyId}`).digest("hex").slice(0, 16)}`;
@@ -288071,7 +288102,7 @@ function resolveIapCredentials(options2) {
288071
288102
  const { target } = options2;
288072
288103
  const home2 = options2.home ?? homedir19();
288073
288104
  const readFile26 = options2.readFile ?? ((p2) => readFileSync179(p2, "utf8"));
288074
- const realpath3 = options2.realpath ?? realpathSync22;
288105
+ const realpath3 = options2.realpath ?? realpathSync23;
288075
288106
  const profile = requireExplicitProfile(options2.profileFlag, target);
288076
288107
  const creds = resolveStoreCredentials({
288077
288108
  app: target.himiApp,
@@ -289452,7 +289483,7 @@ __export(store_iap_exports, {
289452
289483
  });
289453
289484
  import { execFileSync as execFileSync11 } from "node:child_process";
289454
289485
  import { randomUUID as randomUUID17 } from "node:crypto";
289455
- import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync64, readFileSync as readFileSync182, realpathSync as realpathSync23, renameSync as renameSync26, rmSync as rmSync48, writeFileSync as writeFileSync69 } from "node:fs";
289486
+ import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync64, readFileSync as readFileSync182, realpathSync as realpathSync24, renameSync as renameSync26, rmSync as rmSync48, writeFileSync as writeFileSync69 } from "node:fs";
289456
289487
  import { homedir as homedir20, hostname as hostname7 } from "node:os";
289457
289488
  import { dirname as dirname82, join as join193, resolve as resolve119 } from "node:path";
289458
289489
  function scrubDeep(value2, scrub) {
@@ -289852,7 +289883,7 @@ function readInAppPurchaseKey(flags, deps, creds) {
289852
289883
  if (!/^[A-Z0-9]{10}$/.test(keyId)) throw new UsageError10(`--iap-key-id must be the 10-character key id App Store Connect shows, got "${keyId}"`);
289853
289884
  let privateKey2;
289854
289885
  try {
289855
- assertCredentialOutsideRepo("--iap-key", (deps.realpath ?? realpathSync23)(path2));
289886
+ assertCredentialOutsideRepo("--iap-key", (deps.realpath ?? realpathSync24)(path2));
289856
289887
  privateKey2 = readInput2(deps, path2, "In-App Purchase key");
289857
289888
  } catch (error) {
289858
289889
  throw new KeyError(error.message);
@@ -297943,7 +297974,7 @@ import {
297943
297974
  openSync as openSync13,
297944
297975
  readFileSync as readFileSync195,
297945
297976
  readdirSync as readdirSync68,
297946
- realpathSync as realpathSync24,
297977
+ realpathSync as realpathSync25,
297947
297978
  renameSync as renameSync27,
297948
297979
  rmSync as rmSync49,
297949
297980
  statSync as statSync56,
@@ -298186,8 +298217,8 @@ async function l10nCommand(ctx) {
298186
298217
  try {
298187
298218
  mkdirSync66(join204(appDir3, "l10n"), { recursive: true });
298188
298219
  const swapped = unsafeDestination(appDir3, requested);
298189
- const l10nReal = realpathSync24(join204(appDir3, "l10n"));
298190
- if (swapped !== void 0 || l10nReal !== join204(realpathSync24(appDir3), "l10n")) {
298220
+ const l10nReal = realpathSync25(join204(appDir3, "l10n"));
298221
+ if (swapped !== void 0 || l10nReal !== join204(realpathSync25(appDir3), "l10n")) {
298191
298222
  throw new UnsafePath(swapped ?? `${join204(appDir3, "l10n")} resolves outside the app`);
298192
298223
  }
298193
298224
  for (const tag2 of requested) {
@@ -308117,7 +308148,7 @@ __export(cli_exports2, {
308117
308148
  ONE_APP_WORKFLOW: () => ONE_APP_WORKFLOW,
308118
308149
  runOneAppCommand: () => runOneAppCommand
308119
308150
  });
308120
- import { closeSync as closeSync15, constants as constants13, lstatSync as lstatSync45, mkdirSync as mkdirSync73, openSync as openSync14, readFileSync as readFileSync207, realpathSync as realpathSync25, writeFileSync as writeFileSync85 } from "node:fs";
308151
+ import { closeSync as closeSync15, constants as constants13, lstatSync as lstatSync45, mkdirSync as mkdirSync73, openSync as openSync14, readFileSync as readFileSync207, realpathSync as realpathSync26, writeFileSync as writeFileSync85 } from "node:fs";
308121
308152
  import { createHash as createHash107 } from "node:crypto";
308122
308153
  import { isIP as isIP2 } from "node:net";
308123
308154
  import { dirname as dirname93, join as join219, parse as parse13, resolve as resolve136 } from "node:path";
@@ -308373,7 +308404,7 @@ validate-payments checks site-bound payment evidence and explicit paid-flow deci
308373
308404
  mkdirSync73(options2.parentDir, { recursive: true, mode: 448 });
308374
308405
  assertSafeParents(options2.parentDir);
308375
308406
  mkdirSync73(options2.workspace, { mode: 448 });
308376
- if (realpathSync25(options2.workspace) !== options2.workspace) throw new Error("destination changed");
308407
+ if (realpathSync26(options2.workspace) !== options2.workspace) throw new Error("destination changed");
308377
308408
  evidenceDir = join219(options2.workspace, ".himi", "one-app");
308378
308409
  mkdirSync73(evidenceDir, { recursive: true, mode: 448 });
308379
308410
  } catch (error) {
@@ -310668,7 +310699,7 @@ var init_customer_build = __esm({
310668
310699
  });
310669
310700
 
310670
310701
  // src/site-analyze/apply.ts
310671
- import { existsSync as existsSync176, readFileSync as readFileSync209, writeFileSync as writeFileSync86, copyFileSync as copyFileSync5, mkdirSync as mkdirSync74, realpathSync as realpathSync26, statSync as statSync58 } from "node:fs";
310702
+ import { existsSync as existsSync176, readFileSync as readFileSync209, writeFileSync as writeFileSync86, copyFileSync as copyFileSync5, mkdirSync as mkdirSync74, realpathSync as realpathSync27, statSync as statSync58 } from "node:fs";
310672
310703
  import { dirname as dirname94, isAbsolute as isAbsolute24, join as join221, resolve as resolve137, sep as sep36 } from "node:path";
310673
310704
  import { spawnSync as spawnSync15 } from "node:child_process";
310674
310705
  function inRepoBakeRefusal(repoRoot2, shell) {
@@ -311023,8 +311054,8 @@ function buildMergedContract(options2) {
311023
311054
  let real;
311024
311055
  let realRoot;
311025
311056
  try {
311026
- real = realpathSync26(from);
311027
- realRoot = realpathSync26(packageDir);
311057
+ real = realpathSync27(from);
311058
+ realRoot = realpathSync27(packageDir);
311028
311059
  } catch {
311029
311060
  return void 0;
311030
311061
  }
@@ -315054,7 +315085,7 @@ __export(fidelity_exports, {
315054
315085
  himalayaRepoRoot: () => himalayaRepoRoot
315055
315086
  });
315056
315087
  import { execFileSync as execFileSync13 } from "node:child_process";
315057
- import { existsSync as existsSync182, realpathSync as realpathSync27 } from "node:fs";
315088
+ import { existsSync as existsSync182, realpathSync as realpathSync28 } from "node:fs";
315058
315089
  import { join as join229, relative as relative41, sep as sep37 } from "node:path";
315059
315090
  function himalayaRepoRoot(dir) {
315060
315091
  let top;
@@ -315064,7 +315095,7 @@ function himalayaRepoRoot(dir) {
315064
315095
  return null;
315065
315096
  }
315066
315097
  if (!existsSync182(join229(top, "tools/judges/fidelity/JUDGE.md"))) return null;
315067
- const rel2 = relative41(realpathSync27(top), realpathSync27(dir));
315098
+ const rel2 = relative41(realpathSync28(top), realpathSync28(dir));
315068
315099
  return rel2.startsWith(`..${sep37}`) || rel2 === ".." ? null : top;
315069
315100
  }
315070
315101
  function fidelityEnvelope(report9) {
@@ -465,6 +465,17 @@ Note that the `splash` accessibility id / `testTag` on some apps today belongs t
465
465
 
466
466
  ### Branded-lite logo and handoff
467
467
 
468
+ #### The house splash of the customer templates
469
+
470
+ Every customer template ships the same native splash as Branded Lite: white in light mode, black in dark
471
+ mode, the whole app icon as a 96pt rounded square, held until the first screen paints. The templates
472
+ generated from Branded Lite inherit it with its T5 stage. The vertical templates (bare-fashion, conference,
473
+ fitness-gym, medical-services, personal-fitness-trainer, professional-services, salon-spa, wholesale-store)
474
+ declare the same block in their source app's `config.ts`, without `extended`: none serves
475
+ `himi_branded_splash`, so the native surface is the whole splash. A new template copies that block, and
476
+ the template kit's own tests refuse a customer template that does not ship it (the owner-app family,
477
+ Brandy, himi-chat and surface-showcase keep their own).
478
+
468
479
  #### Branded-lite T5 splash (iOS, Android and macOS)
469
480
 
470
481
  Branded Lite (and every template generated from it) declares one native splash: `appearance:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.2030.0",
3
+ "version": "0.2031.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "cfb0963a868685f99fdf1f345976fc4713a770b5cc55f63d8ef2c063"
85
+ "falconPackageHash": "256bd16687b704416ff50096e22ccccc7e285b213b01b85799f6ce4f"
86
86
  }
@@ -33,6 +33,20 @@ export default defineApp({
33
33
  },
34
34
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","wix_api","wix_platform","app_info","release_control","keyboard","wix_cashier","ui"],
35
35
  designTokensPath: "./tokens.json",
36
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
37
+ // the native surface is the whole splash. See "himi docs splash-screens".
38
+ splash: {
39
+ "enabled": true,
40
+ "appearance": "system",
41
+ "backgroundColor": "accentPrimary",
42
+ "logoAsset": "branded_lite_app_icon",
43
+ "logoWidth": 96,
44
+ "logoShape": "roundedSquare",
45
+ "layout": "logoOnly",
46
+ "readySignal": "first_screen",
47
+ "minVisibleMs": 0,
48
+ "maxHoldMs": 5000
49
+ },
36
50
  navigation: {
37
51
  "navLogicBundle": {
38
52
  "url": "/v1/bundles/himi-bare-fashion-nav",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -35,6 +35,20 @@ export default defineApp({
35
35
  },
36
36
  capabilities: ["wix_api","local_database","open_url","share","calendar","secure_storage","wix_platform","app_info","wix_chat","ui","iap","wix_cashier"],
37
37
  designTokensPath: "./tokens.json",
38
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
39
+ // the native surface is the whole splash. See "himi docs splash-screens".
40
+ splash: {
41
+ "enabled": true,
42
+ "appearance": "system",
43
+ "backgroundColor": "accentPrimary",
44
+ "logoAsset": "branded_lite_app_icon",
45
+ "logoWidth": 96,
46
+ "logoShape": "roundedSquare",
47
+ "layout": "logoOnly",
48
+ "readySignal": "first_screen",
49
+ "minVisibleMs": 0,
50
+ "maxHoldMs": 5000
51
+ },
38
52
  navigation: {
39
53
  "navKind": "responsive",
40
54
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -35,6 +35,20 @@ export default defineApp({
35
35
  },
36
36
  capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","iap","wix_chat","calendar","ui","wix_cashier"],
37
37
  designTokensPath: "./tokens.json",
38
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
39
+ // the native surface is the whole splash. See "himi docs splash-screens".
40
+ splash: {
41
+ "enabled": true,
42
+ "appearance": "system",
43
+ "backgroundColor": "accentPrimary",
44
+ "logoAsset": "branded_lite_app_icon",
45
+ "logoWidth": 96,
46
+ "logoShape": "roundedSquare",
47
+ "layout": "logoOnly",
48
+ "readySignal": "first_screen",
49
+ "minVisibleMs": 0,
50
+ "maxHoldMs": 5000
51
+ },
38
52
  navigation: {
39
53
  "navKind": "responsive",
40
54
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -34,6 +34,20 @@ export default defineApp({
34
34
  },
35
35
  capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","wix_chat","calendar","ui","iap","wix_cashier"],
36
36
  designTokensPath: "./tokens.json",
37
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
38
+ // the native surface is the whole splash. See "himi docs splash-screens".
39
+ splash: {
40
+ "enabled": true,
41
+ "appearance": "system",
42
+ "backgroundColor": "accentPrimary",
43
+ "logoAsset": "branded_lite_app_icon",
44
+ "logoWidth": 96,
45
+ "logoShape": "roundedSquare",
46
+ "layout": "logoOnly",
47
+ "readySignal": "first_screen",
48
+ "minVisibleMs": 0,
49
+ "maxHoldMs": 5000
50
+ },
37
51
  navigation: {
38
52
  "navKind": "drawer",
39
53
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -30,6 +30,20 @@ export default defineApp({
30
30
  capabilities: ["wix_api","wix_platform","app_info","iap","wix_cashier","open_url","share","secure_storage","local_database","calendar","theme","media_playback","clipboard","release_control","wix_chat","ui","push"],
31
31
  idiom: {"policy":"follow-surface"},
32
32
  designTokensPath: "./tokens.json",
33
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
34
+ // the native surface is the whole splash. See "himi docs splash-screens".
35
+ splash: {
36
+ "enabled": true,
37
+ "appearance": "system",
38
+ "backgroundColor": "accentPrimary",
39
+ "logoAsset": "branded_lite_app_icon",
40
+ "logoWidth": 96,
41
+ "logoShape": "roundedSquare",
42
+ "layout": "logoOnly",
43
+ "readySignal": "first_screen",
44
+ "minVisibleMs": 0,
45
+ "maxHoldMs": 5000
46
+ },
33
47
  navigation: {
34
48
  "navKind": "bottomTabs",
35
49
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -35,6 +35,20 @@ export default defineApp({
35
35
  },
36
36
  capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","iap","wix_chat","calendar","files","file_picker","presigned_upload","clipboard","keyboard","ui","wix_cashier"],
37
37
  designTokensPath: "./tokens.json",
38
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
39
+ // the native surface is the whole splash. See "himi docs splash-screens".
40
+ splash: {
41
+ "enabled": true,
42
+ "appearance": "system",
43
+ "backgroundColor": "accentPrimary",
44
+ "logoAsset": "branded_lite_app_icon",
45
+ "logoWidth": 96,
46
+ "logoShape": "roundedSquare",
47
+ "layout": "logoOnly",
48
+ "readySignal": "first_screen",
49
+ "minVisibleMs": 0,
50
+ "maxHoldMs": 5000
51
+ },
38
52
  navigation: {
39
53
  "navKind": "responsive",
40
54
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",
@@ -34,6 +34,20 @@ export default defineApp({
34
34
  },
35
35
  capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","wix_chat","calendar","ui","iap","media_playback","wix_cashier"],
36
36
  designTokensPath: "./tokens.json",
37
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
38
+ // the native surface is the whole splash. See "himi docs splash-screens".
39
+ splash: {
40
+ "enabled": true,
41
+ "appearance": "system",
42
+ "backgroundColor": "accentPrimary",
43
+ "logoAsset": "branded_lite_app_icon",
44
+ "logoWidth": 96,
45
+ "logoShape": "roundedSquare",
46
+ "layout": "logoOnly",
47
+ "readySignal": "first_screen",
48
+ "minVisibleMs": 0,
49
+ "maxHoldMs": 5000
50
+ },
37
51
  navigation: {
38
52
  "navKind": "responsive",
39
53
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -34,6 +34,20 @@ export default defineApp({
34
34
  },
35
35
  capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","iap","wix_chat","live_activity","ui","wix_cashier"],
36
36
  designTokensPath: "./tokens.json",
37
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
38
+ // the native surface is the whole splash. See "himi docs splash-screens".
39
+ splash: {
40
+ "enabled": true,
41
+ "appearance": "system",
42
+ "backgroundColor": "accentPrimary",
43
+ "logoAsset": "branded_lite_app_icon",
44
+ "logoWidth": 96,
45
+ "logoShape": "roundedSquare",
46
+ "layout": "logoOnly",
47
+ "readySignal": "first_screen",
48
+ "minVisibleMs": 0,
49
+ "maxHoldMs": 5000
50
+ },
37
51
  navigation: {
38
52
  "navKind": "responsive",
39
53
  "scheme": "himalaya-__HIMI_APP_SLUG__",
@@ -52,7 +52,7 @@ export default defineApp({
52
52
  ]
53
53
  },
54
54
  designTokensPath: "./tokens.json",
55
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
55
+ // The house splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
56
56
  // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
57
57
  splash: {
58
58
  "enabled": true,
@@ -39,8 +39,8 @@ export default defineApp({
39
39
  },
40
40
  capabilities: ["push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","photos","file_picker","files","presigned_upload","app_info","biometrics","wix_platform","wix_api","stream"],
41
41
  designTokensPath: "./tokens.json",
42
- // The native splash (generated launch screen + in-app twin); a launch still loading at 2 s shows the
43
- // editable T5 stage (himi_branded_splash). See "himi docs splash-screens".
42
+ // The house splash (generated launch screen + in-app twin), held until the first screen paints. No T5 stage:
43
+ // the native surface is the whole splash. See "himi docs splash-screens".
44
44
  splash: {
45
45
  "enabled": true,
46
46
  "backgroundColor": "accentPrimary",