@wix/himalaya-cli 0.1707.0 → 0.1709.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.
@@ -113,6 +113,7 @@ export interface NavigationConfig {
113
113
  /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */
114
114
  streamPolicy?: StreamPolicy;
115
115
  topBarLogo?: import("@wix/himalaya/core").TopBarLogo;
116
+ topBarTitleAlign?: string;
116
117
  presentationQueue?: boolean;
117
118
  splash?: SplashConfig;
118
119
  locale?: LocaleConfig;
@@ -245,6 +245,9 @@ export interface DerivedAppMeta {
245
245
  /** Forwarded from AppConfig.navigation.topBarLogo — the app-wide logo for tab-stack roots
246
246
  * (RFC 0066 amendment "top-bar gap items"). */
247
247
  topBarLogo?: import("@wix/himalaya/core").TopBarLogo;
248
+ /** Forwarded from AppConfig.navigation.topBarTitleAlign — the app-wide title alignment
249
+ * (RFC 0066 amendment "Title, leading and trailing completion"). */
250
+ topBarTitleAlign?: string;
248
251
  /** Forwarded from AppConfig.navigation.presentationQueue — the opt-in host alert queue (#4662). */
249
252
  presentationQueue?: boolean;
250
253
  /** Forwarded from AppConfig.`splash` — the in-app splash surface. NOTE the
@@ -3037,6 +3037,10 @@ export interface NavigationConfig {
3037
3037
  site?: SiteNavConfig;
3038
3038
  /** RFC 0066 amendment "top-bar gap items" — app-wide logo for tab-stack roots. */
3039
3039
  topBarLogo?: TopBarLogo;
3040
+ /** RFC 0066 amendment "Title, leading and trailing completion" — app-wide title alignment for tab-stack roots:
3041
+ * "" / "auto" (default) | "leading" | "center". The twin of `TopBarConfig.titleAlign`, because a screen's own
3042
+ * `topBar` fully replaces `topBarDefault`. Unknown values read as "auto". */
3043
+ topBarTitleAlign?: string;
3040
3044
  /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav
3041
3045
  * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing
3042
3046
  * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);
@@ -3233,6 +3237,9 @@ export interface NavBadge {
3233
3237
  kind: "dot" | "count";
3234
3238
  valuePath?: string;
3235
3239
  value?: number;
3240
+ /** RFC 0066 amendment "Title, leading and trailing completion" — the noun spoken after the count
3241
+ * ("items" ⇒ "Cart, 3 items"). Unset ⇒ the shell says the bare count. */
3242
+ countLabel?: string;
3236
3243
  }
3237
3244
  /** RFC 0010 (top-bar amendment) — the shell-owned top bar. The shell paints
3238
3245
  * `ScreenDescriptor.title` and computes the leading slot (back XOR menu) from
@@ -3248,7 +3255,8 @@ export interface TopBarConfig {
3248
3255
  style?: string;
3249
3256
  /** RFC 0066 §1 — toolbar items (drawn after the legacy `actions`). */
3250
3257
  items?: ToolbarItem[];
3251
- /** RFC 0066 §1 — "" / "automatic" (default) | "large" | "inline". */
3258
+ /** RFC 0066 §1 — "" / "automatic" (default) | "large" | "inline" | "hidden". `"hidden"` draws no title and keeps
3259
+ * the title as the screen name for screen readers (amendment "Title, leading and trailing completion"). */
3252
3260
  titleDisplay?: string;
3253
3261
  /** RFC 0066 §1 — the literal subtitle (the fallback for `subtitlePath`). */
3254
3262
  subtitle?: string;
@@ -3272,6 +3280,9 @@ export interface TopBarConfig {
3272
3280
  /** RFC 0066 amendment — live `visibility` (`$service:`). Resolves to "visible" | "hidden";
3273
3281
  * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */
3274
3282
  visibilityPath?: string;
3283
+ /** RFC 0066 amendment "Title, leading and trailing completion" — "" / "auto" (default) | "leading" | "center".
3284
+ * Unknown values read as "auto". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */
3285
+ titleAlign?: string;
3275
3286
  }
3276
3287
  /** RFC 0066 §1 (+ its "top-bar gap items" amendment) — one top-bar item. Test id `toolbar.<id>`
3277
3288
  * (`toolbar-<id>` on web and React Native). Every tap carries an existing `Action`
@@ -3302,6 +3313,9 @@ export interface ToolbarItem {
3302
3313
  /** Long press (touch), secondary click (pointer) or the "More options" accessibility action.
3303
3314
  * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */
3304
3315
  onLongPress?: Action;
3316
+ /** RFC 0066 amendment "Title, leading and trailing completion" — dot or count overlay. Ignored on an
3317
+ * "overflow" item. `badge.countLabel` is the noun the shell speaks after the count. */
3318
+ badge?: NavBadge;
3305
3319
  }
3306
3320
  /** RFC 0066 amendment — an avatar item. Images are absolute https URLs (resolve a Wix
3307
3321
  * media id with `wixMediaUrl` before publishing). */
@@ -457,6 +457,9 @@ export declare const screenDescriptorSchema: {
457
457
  readonly visibilityPath: {
458
458
  readonly type: "string";
459
459
  };
460
+ readonly titleAlign: {
461
+ readonly type: "string";
462
+ };
460
463
  };
461
464
  };
462
465
  readonly searchableConfig: {
@@ -604,6 +607,9 @@ export declare const screenDescriptorSchema: {
604
607
  readonly onLongPress: {
605
608
  readonly $ref: "#/$defs/action";
606
609
  };
610
+ readonly badge: {
611
+ readonly $ref: "#/$defs/navBadge";
612
+ };
607
613
  };
608
614
  };
609
615
  readonly toolbarAvatar: {
@@ -751,6 +757,9 @@ export declare const screenDescriptorSchema: {
751
757
  readonly value: {
752
758
  readonly type: "integer";
753
759
  };
760
+ readonly countLabel: {
761
+ readonly type: "string";
762
+ };
754
763
  };
755
764
  };
756
765
  readonly edgeInsets: {
@@ -1976,6 +1985,9 @@ export declare const widgetSnapshotSchema: {
1976
1985
  readonly visibilityPath: {
1977
1986
  readonly type: "string";
1978
1987
  };
1988
+ readonly titleAlign: {
1989
+ readonly type: "string";
1990
+ };
1979
1991
  };
1980
1992
  };
1981
1993
  readonly searchableConfig: {
@@ -2123,6 +2135,9 @@ export declare const widgetSnapshotSchema: {
2123
2135
  readonly onLongPress: {
2124
2136
  readonly $ref: "#/$defs/action";
2125
2137
  };
2138
+ readonly badge: {
2139
+ readonly $ref: "#/$defs/navBadge";
2140
+ };
2126
2141
  };
2127
2142
  };
2128
2143
  readonly toolbarAvatar: {
@@ -2270,6 +2285,9 @@ export declare const widgetSnapshotSchema: {
2270
2285
  readonly value: {
2271
2286
  readonly type: "integer";
2272
2287
  };
2288
+ readonly countLabel: {
2289
+ readonly type: "string";
2290
+ };
2273
2291
  };
2274
2292
  };
2275
2293
  readonly edgeInsets: {
@@ -9141,7 +9141,9 @@ var screenDescriptorSchema = {
9141
9141
  scrollBehavior: { type: "string" },
9142
9142
  dirtyPath: { type: "string" },
9143
9143
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
9144
- visibilityPath: { type: "string" }
9144
+ visibilityPath: { type: "string" },
9145
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
9146
+ titleAlign: { type: "string" }
9145
9147
  }
9146
9148
  },
9147
9149
  // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
@@ -9206,7 +9208,8 @@ var screenDescriptorSchema = {
9206
9208
  loadingPath: { type: "string" },
9207
9209
  avatar: { $ref: "#/$defs/toolbarAvatar" },
9208
9210
  labelPath: { type: "string" },
9209
- onLongPress: { $ref: "#/$defs/action" }
9211
+ onLongPress: { $ref: "#/$defs/action" },
9212
+ badge: { $ref: "#/$defs/navBadge" }
9210
9213
  }
9211
9214
  },
9212
9215
  toolbarAvatar: {
@@ -9282,7 +9285,8 @@ var screenDescriptorSchema = {
9282
9285
  properties: {
9283
9286
  kind: { type: "string", enum: ["dot", "count"] },
9284
9287
  valuePath: { type: "string" },
9285
- value: { type: "integer" }
9288
+ value: { type: "integer" },
9289
+ countLabel: { type: "string" }
9286
9290
  }
9287
9291
  },
9288
9292
  edgeInsets: {
@@ -7253,7 +7253,9 @@ var screenDescriptorSchema = {
7253
7253
  scrollBehavior: { type: "string" },
7254
7254
  dirtyPath: { type: "string" },
7255
7255
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
7256
- visibilityPath: { type: "string" }
7256
+ visibilityPath: { type: "string" },
7257
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
7258
+ titleAlign: { type: "string" }
7257
7259
  }
7258
7260
  },
7259
7261
  // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
@@ -7318,7 +7320,8 @@ var screenDescriptorSchema = {
7318
7320
  loadingPath: { type: "string" },
7319
7321
  avatar: { $ref: "#/$defs/toolbarAvatar" },
7320
7322
  labelPath: { type: "string" },
7321
- onLongPress: { $ref: "#/$defs/action" }
7323
+ onLongPress: { $ref: "#/$defs/action" },
7324
+ badge: { $ref: "#/$defs/navBadge" }
7322
7325
  }
7323
7326
  },
7324
7327
  toolbarAvatar: {
@@ -7394,7 +7397,8 @@ var screenDescriptorSchema = {
7394
7397
  properties: {
7395
7398
  kind: { type: "string", enum: ["dot", "count"] },
7396
7399
  valuePath: { type: "string" },
7397
- value: { type: "integer" }
7400
+ value: { type: "integer" },
7401
+ countLabel: { type: "string" }
7398
7402
  }
7399
7403
  },
7400
7404
  edgeInsets: {
@@ -9609,6 +9613,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
9609
9613
  site: config.navigation?.site,
9610
9614
  streamPolicy: config.navigation?.streamPolicy,
9611
9615
  topBarLogo: config.navigation?.topBarLogo,
9616
+ topBarTitleAlign: config.navigation?.topBarTitleAlign,
9612
9617
  presentationQueue: config.navigation?.presentationQueue,
9613
9618
  splash: config.splash,
9614
9619
  locale: config.locale,
package/dist/cli.mjs CHANGED
@@ -10835,6 +10835,7 @@ function deriveAppMeta(name, m2, platforms = {}, provisioning = {}) {
10835
10835
  site: config.navigation?.site,
10836
10836
  streamPolicy: config.navigation?.streamPolicy,
10837
10837
  topBarLogo: config.navigation?.topBarLogo,
10838
+ topBarTitleAlign: config.navigation?.topBarTitleAlign,
10838
10839
  presentationQueue: config.navigation?.presentationQueue,
10839
10840
  splash: config.splash,
10840
10841
  locale: config.locale,
@@ -14184,7 +14185,9 @@ var init_validator = __esm({
14184
14185
  scrollBehavior: { type: "string" },
14185
14186
  dirtyPath: { type: "string" },
14186
14187
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
14187
- visibilityPath: { type: "string" }
14188
+ visibilityPath: { type: "string" },
14189
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
14190
+ titleAlign: { type: "string" }
14188
14191
  }
14189
14192
  },
14190
14193
  // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
@@ -14249,7 +14252,8 @@ var init_validator = __esm({
14249
14252
  loadingPath: { type: "string" },
14250
14253
  avatar: { $ref: "#/$defs/toolbarAvatar" },
14251
14254
  labelPath: { type: "string" },
14252
- onLongPress: { $ref: "#/$defs/action" }
14255
+ onLongPress: { $ref: "#/$defs/action" },
14256
+ badge: { $ref: "#/$defs/navBadge" }
14253
14257
  }
14254
14258
  },
14255
14259
  toolbarAvatar: {
@@ -14325,7 +14329,8 @@ var init_validator = __esm({
14325
14329
  properties: {
14326
14330
  kind: { type: "string", enum: ["dot", "count"] },
14327
14331
  valuePath: { type: "string" },
14328
- value: { type: "integer" }
14332
+ value: { type: "integer" },
14333
+ countLabel: { type: "string" }
14329
14334
  }
14330
14335
  },
14331
14336
  edgeInsets: {
@@ -19329,6 +19334,28 @@ function topBarFindings(descriptor) {
19329
19334
  out2.push({ path: `topBar.items[${idx}].onLongPress`, message: "An item with a `menu` ignores `onLongPress`: the menu owns the press. Add the action to the menu, or remove the menu" });
19330
19335
  }
19331
19336
  });
19337
+ const avatarIdx = items.flatMap((i2, idx) => i2 && typeof i2 === "object" && i2.avatar != null ? [idx] : []);
19338
+ if (avatarIdx.length > 1) {
19339
+ out2.push({ path: `topBar.items[${avatarIdx[1]}].avatar`, ruleCode: "top_bar_two_avatars", message: `The top bar declares ${avatarIdx.length} avatar items. The guideline shows one avatar in a bar, and the shell draws all of them. Keep the one that opens the profile and make the others plain icon items` });
19340
+ }
19341
+ if (typeof b3.titleAlign === "string" && !TOP_BAR_TITLE_ALIGN_VALUES.has(b3.titleAlign)) {
19342
+ out2.push({ path: "topBar.titleAlign", ruleCode: "top_bar_unknown_title_align", message: `\`titleAlign\` ${JSON.stringify(b3.titleAlign)} is not a known value, so every shell reads it as "auto". Use "auto", "leading" or "center"` });
19343
+ }
19344
+ if (typeof b3.titleDisplay === "string" && !TOP_BAR_TITLE_DISPLAY_VALUES.has(b3.titleDisplay)) {
19345
+ out2.push({ path: "topBar.titleDisplay", ruleCode: "top_bar_unknown_title_display", message: `\`titleDisplay\` ${JSON.stringify(b3.titleDisplay)} is not a known value, so every shell reads it as "automatic". Use "automatic", "large", "inline" or "hidden"` });
19346
+ }
19347
+ if (b3.titleDisplay === "hidden") {
19348
+ for (const key4 of ["subtitle", "subtitlePath"]) {
19349
+ if (typeof b3[key4] === "string" && b3[key4] !== "") {
19350
+ out2.push({ path: `topBar.${key4}`, ruleCode: "top_bar_hidden_title_subtitle", message: `\`${key4}\` is set with \`titleDisplay: "hidden"\`. A hidden title draws no title, and the subtitle sits under the title, so it is not drawn. Remove the subtitle, or show the title` });
19351
+ }
19352
+ }
19353
+ }
19354
+ items.forEach((i2, idx) => {
19355
+ if (i2 && typeof i2 === "object" && i2.badge != null && (i2.placement === "overflow" || movedByR2.has(i2))) {
19356
+ out2.push({ path: `topBar.items[${idx}].badge`, ruleCode: "top_bar_badge_on_overflow", message: `An item in More Actions (${i2.placement === "overflow" ? '`placement: "overflow"`' : "moved there because the bar has more than two trailing slots (R2)"}) has a \`badge\`, and the menu row draws none. Move the item to a visible slot, or put the count in its \`label\`` });
19357
+ }
19358
+ });
19332
19359
  const notHttps = (v2) => {
19333
19360
  if (typeof v2 !== "string" || v2 === "") return false;
19334
19361
  if (!/^https:\/\/[^/?#\s]/i.test(v2)) return true;
@@ -20391,7 +20418,7 @@ function validateAppWebViewInstances(screens) {
20391
20418
  const findings = webViewEmbeddedAppFindings(screens);
20392
20419
  return webViewEmbeddedIssues(findings).map((issue3, i2) => ({ ...issue3, screenId: findings[i2].screenId }));
20393
20420
  }
20394
- var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_NESTED_SCALARS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, TOP_BAR_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
20421
+ var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_NESTED_SCALARS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, TOP_BAR_TITLE_ALIGN_VALUES, TOP_BAR_TITLE_DISPLAY_VALUES, TOP_BAR_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
20395
20422
  var init_validate_descriptor_core = __esm({
20396
20423
  "../../core/dev-server/src/validate-descriptor.core.ts"() {
20397
20424
  init_define_HHP_CATALOG();
@@ -21572,6 +21599,8 @@ var init_validate_descriptor_core = __esm({
21572
21599
  UNSAFE_TO_RECURSE_DEPTH = 128;
21573
21600
  TOP_BAR_TRAILING_LIMIT = 2;
21574
21601
  TOP_BAR_NON_TRAILING = /* @__PURE__ */ new Set(["leading", "principal", "bottom", "keyboard", "overflow"]);
21602
+ TOP_BAR_TITLE_ALIGN_VALUES = /* @__PURE__ */ new Set(["", "auto", "leading", "center"]);
21603
+ TOP_BAR_TITLE_DISPLAY_VALUES = /* @__PURE__ */ new Set(["", "automatic", "large", "inline", "hidden"]);
21575
21604
  TOP_BAR_SEARCH_BINDINGS = ["valuePath", "focusPath", "loadingPath", "suggestionsPath", "scopePath"];
21576
21605
  TOP_BAR_SEARCH_GATE = "$env:topBarSearch";
21577
21606
  TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS = /* @__PURE__ */ new Set(["single", "drawer", "sidebar"]);
@@ -32479,6 +32508,7 @@ function deriveNavigationConfig(app2, bundleCtx) {
32479
32508
  if (app2.site !== void 0) config.site = app2.site;
32480
32509
  if (app2.streamPolicy !== void 0) config.streamPolicy = app2.streamPolicy;
32481
32510
  if (app2.topBarLogo !== void 0) config.topBarLogo = app2.topBarLogo;
32511
+ if (app2.topBarTitleAlign !== void 0) config.topBarTitleAlign = app2.topBarTitleAlign;
32482
32512
  if (app2.presentationQueue !== void 0) config.presentationQueue = app2.presentationQueue;
32483
32513
  if (app2.splash !== void 0) config.splash = app2.splash;
32484
32514
  if (app2.locale !== void 0) config.locale = app2.locale;
@@ -33003,7 +33033,6 @@ function resolveIdiom(tokens2, ctx = {}) {
33003
33033
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
33004
33034
  var init_idiom = __esm({
33005
33035
  "../../core/ts/src/idiom.ts"() {
33006
- "use strict";
33007
33036
  init_define_HHP_CATALOG();
33008
33037
  IDIOM_CONTEXTS = {
33009
33038
  ios: { native: ["ios"] },
@@ -34826,7 +34855,6 @@ function shouldRevealError(args) {
34826
34855
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
34827
34856
  var init_validation = __esm({
34828
34857
  "../../core/ts/src/validation.ts"() {
34829
- "use strict";
34830
34858
  init_define_HHP_CATALOG();
34831
34859
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
34832
34860
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -177922,6 +177950,15 @@ async function navIssues(dir, strict) {
177922
177950
  );
177923
177951
  }
177924
177952
  }
177953
+ if (isPlainObject2(topBarDefault)) {
177954
+ const align = topBarDefault.titleAlign;
177955
+ if (typeof align === "string" && align !== "" && align !== "auto") {
177956
+ warn4(
177957
+ "nav-topbar-default-title-align",
177958
+ `navigation.topBarDefault.titleAlign ${JSON.stringify(align)} applies only to screens that set no \`topBar\`: a screen's own \`topBar\` fully replaces the default, so the title would align differently from screen to screen. Set \`navigation.topBarTitleAlign\` for the whole app, and \`topBar.titleAlign\` on a screen that differs.`
177959
+ );
177960
+ }
177961
+ }
177925
177962
  const navKind = nav.navKind;
177926
177963
  const effectiveBottomTabs = navKind === void 0 || navKind === "bottomTabs" || typeof navKind !== "string" || !NAV_KINDS.has(navKind);
177927
177964
  const declaresOtherChrome = itemCount(nav.drawer) > 0 || itemCount(nav.sidebar) > 0;
@@ -178130,6 +178167,7 @@ var init_nav_lint = __esm({
178130
178167
  "streamPolicy",
178131
178168
  "site",
178132
178169
  "topBarLogo",
178170
+ "topBarTitleAlign",
178133
178171
  "presentationQueue",
178134
178172
  "scheme",
178135
178173
  "deepLinkPatterns",
@@ -178157,6 +178195,7 @@ var init_nav_lint = __esm({
178157
178195
  "streamPolicy",
178158
178196
  "site",
178159
178197
  "topBarLogo",
178198
+ "topBarTitleAlign",
178160
178199
  "presentationQueue",
178161
178200
  "scheme",
178162
178201
  "deepLinkPatterns",
@@ -263629,7 +263668,7 @@ var USAGE = `himi \u2014 the Himalaya authoring CLI (remote dev loop)
263629
263668
  himi dist [--app <a>] [--platform ios,android] [--release <id>] [--allow-draft] [--target <t>]
263630
263669
  [--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo]
263631
263670
  [--android-signing qa-keystore|wix-keystore|debug|owner] [--aab]
263632
- [--package-name <id> --google-services <file>]
263671
+ [--package-name <id> --google-services <file>] [--min-version-code <n>]
263633
263672
  [--app-name <name> --app-icon-url <url>]
263634
263673
  [--borrow-ios-id <bundleId>] [--no-wait] [--force] [--plan]
263635
263674
  build an INSTALLABLE QA binary (signed IPA / APK) on
@@ -263688,6 +263727,10 @@ var USAGE = `himi \u2014 the Himalaya authoring CLI (remote dev loop)
263688
263727
  for an app bound to no Wix site, with no APK beside
263689
263728
  it. Sign it with your own upload key before
263690
263729
  uploading. No Wix site or plan needed.
263730
+ A Play bundle's versionCode counts from 1 per package
263731
+ (Himi's record + 1); --min-version-code <n> raises it
263732
+ to at least n, for a listing with uploads Himi didn't
263733
+ build (e.g. its highest code + 1).
263691
263734
  --app-name / --app-icon-url (together) give the binary
263692
263735
  a name and icon in place of the release's; the icon is
263693
263736
  a https://static.wixstatic.com/media/<file> URL. A
@@ -264138,7 +264181,7 @@ var COMMANDS = [
264138
264181
  { name: "patch", summary: 'change ONE item of a published app \u2014 a screen descriptor, a Tier-5 bundle, tokens, or the app-config baseline \u2014 from a RAW FILE, with no content package and no build. The low-level door: it does not lint your package, because there is no package here; `himi push --only <selector>` is the same edit with the full build + lint gate and is what to reach for when the package is in hand. Derives a new release from the app\'s current LIVE release, or from `--from-release <id>`. An explicit `--draft` or `--live` is REQUIRED \u2014 a patch has no default blast radius \u2014 and `--notes` is required with `--live` on a screen or app-config patch, because off-repo `gitSha` is "dev" and the ledger notes are then the only durable record of bytes that correspond to no commit. A branch does not merge: activating one derived from an older release reverts every item the patch does not move, so that case is refused until `--accept-regressions`. A bundle patch must repoint a screen (`--for-screen`) or the bytes land under a manifest key nothing reads. It cannot ADD a screen (screens are git-only, RFC 0012), never claims a slug \u2014 the app must already be published \u2014 and carries no attestation, source archive, assets, icon or minBinaryVersion, each named in the output.', required: "screen <id> --file <descriptor.json> [--bundle <sha256|none>] | bundle --file <bundle.js> (--for-screen <id>[,<id>] | --no-rebind) | tokens --file <tokens.json> | app-config --file <app-config.json> ; (--draft|--live) --app <a> [--from-release <id>] [--accept-regressions] [--label <n>] [--notes <t>] [--force] [--allow-binary-gap] [--target <t>] (--control-token)" },
264139
264182
  { name: "flags", summary: "read and change the app's OPERATIONAL flags (RFC 0013) \u2014 `list` prints what the DEVICE door serves, `set <key> --definition` creates or replaces one, `ramp <key>` moves its rollout share or kills it, `rm <key>` deletes it and echoes the definition back so the removal is reversible. Every write is followed by a read of the same door the device uses, and the answer is reported as `servedNow`: flags are stored in the app's git-committed flags.json, so a control plane with no checkout accepts a write it will never serve.", required: "list|set|ramp|rm [<key>] [--definition <json|@file>] [--percent 0-100] [--enabled true|false] [--app <a>] (--control-token)" },
264140
264183
  { name: "visibility", summary: "read (no value) or set whether the public registry (/v1/apps + the Himi Player picker) LISTS the app. `public` lists it for everyone; `unlisted` hides it from listings while direct reads by app id \u2014 deep links, previews \u2014 keep working. App from --app or the content dir. Setting it needs no republish.", required: "[public|unlisted] [--app <a>] [--content <dir>] (--control-token)" },
264141
- { name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service Mac pool and return an install link \u2014 the serve plane brokers the job, the pool builds it. WAITS for the build by default (~4 min) and prints the install link; `--no-wait` returns a jobId immediately instead. Omitting `--release` builds whatever is LIVE for the app. A named draft is refused unless `--allow-draft` makes that exceptional build explicit. `status <jobId>` / `watch <jobId>` / `list --app <a>` / `cancel <jobId>` inspect and stop builds (`watch` reports up front whether the job mints its own signing identity or borrows one, so a doomed iOS build is cancellable in seconds rather than after the archive). Off-repo, name a target \u2014 `--target wix` for a self-serve Wix login or `--target bo` for the internal employee path (the in-repo default is a local dev plane that isn't reachable off-repo); self-serve callers may build their OWN apps under a tighter budget (2 in flight / 5 per 24h), while a manage-only owner-role credential is refused. `--shell` picks the native host to sign into (branded-lite | owner-lite | brandy | base44 | game | player | demo-app) and defaults to the content package's himalaya.content.json `shell` (templates carry the one they were written for), else branded-lite. The per-app shells ADD the release's declared capabilities to the binary, while Himi Player and demo-app refuse a release declaring one they lack; `--plan` previews it without building; `brandy` is the site shell \u2014 the customer's own website as native-framed tabs; `game` is the Godot game shell, the only one that serves `godot`. `--signing` defaults to `wix-managed` \u2014 the Wix Apple account mints a per-app signing identity for the build, so the caller provisions no Apple credentials of their own; `--signing byo --site <id>` reuses an existing customer ad-hoc profile and certificate for iOS; requires an owned site and a completed personal signing binding. `--android-signing` is the Android counterpart and a SEPARATE axis (a keystore, not an Apple account): `qa-keystore` (default \u2014 the repo's committed QA key, identical on every pool machine, so a build installs over the previous one), `wix-keystore` (the Wix key the pool machine carries; the build FAILS naming the paths searched if it carries none, rather than quietly signing with something else), or `debug` (the old per-machine key \u2014 QA must uninstall any previous build first). `--aab` builds an Android App Bundle (.aab) for the owner to upload to Google Play AND an APK from the same build \u2014 a download link for the .aab, an install link and QR for the APK; Android only; the bundle is signed with the Wix production key (`wix-keystore`, the upload key Branded apps use) \u2014 any other `--android-signing` is refused \u2014 and the APK with the committed QA key; a self-serve caller gets one only as the store build of its own Containers app (it must own the app's site, and `--aab` sends your Wix login); any other self-serve `--aab` gets 403 android_format_not_allowed. `--app-name <name> --app-icon-url <url>` (together; the icon a `https://static.wixstatic.com/media/<file>` URL) give the binary a name and icon in place of the release's, and a Containers app's store build (`--aab`, or its TestFlight build) needs both. NOT the normal way to ship: screens, Tier-5 bundles, tokens and app-config all go over the air with `himi push` in seconds \u2014 a binary trip is only needed for a NATIVE delta (a new SDUI component, a new declared capability/entitlement, a new bundle id, or a minBinaryVersion floor bump). Refuses to build an app whose launcher icon is missing, a placeholder, or one a store would reject \u2014 the one thing a binary carries that no later OTA push can fix; `--force` builds anyway. Also refuses a release whose member login (WixConsumerAuthProvider) names no siteId, or not in lower case, when Wix says its site requires a member CAPTCHA \u2014 such a binary ships without the CAPTCHA key and every member sign-in fails; whatever it cannot read (the release, the site's setting) only warns and builds; `--skip-captcha-check` builds anyway", required: "[--app <a>] [--platform ios,android] [--release <id>] [--allow-draft] [--target <t>] [--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo] [--site <id>] [--android-signing qa-keystore|wix-keystore|debug] [--aab] [--app-name <name> --app-icon-url <url>] [--borrow-ios-id <bundleId>] [--no-wait] [--force] [--skip-captcha-check] [--plan] | status <jobId> [--target <t>] | watch <jobId> [--target <t>] [--interval <ms>] | list --app <a> [--target <t>] | cancel <jobId> [--target <t>]" },
264184
+ { name: "dist", summary: "build an INSTALLABLE QA binary (signed IPA / APK) on the Wix Job Service Mac pool and return an install link \u2014 the serve plane brokers the job, the pool builds it. WAITS for the build by default (~4 min) and prints the install link; `--no-wait` returns a jobId immediately instead. Omitting `--release` builds whatever is LIVE for the app. A named draft is refused unless `--allow-draft` makes that exceptional build explicit. `status <jobId>` / `watch <jobId>` / `list --app <a>` / `cancel <jobId>` inspect and stop builds (`watch` reports up front whether the job mints its own signing identity or borrows one, so a doomed iOS build is cancellable in seconds rather than after the archive). Off-repo, name a target \u2014 `--target wix` for a self-serve Wix login or `--target bo` for the internal employee path (the in-repo default is a local dev plane that isn't reachable off-repo); self-serve callers may build their OWN apps under a tighter budget (2 in flight / 5 per 24h), while a manage-only owner-role credential is refused. `--shell` picks the native host to sign into (branded-lite | owner-lite | brandy | base44 | game | player | demo-app) and defaults to the content package's himalaya.content.json `shell` (templates carry the one they were written for), else branded-lite. The per-app shells ADD the release's declared capabilities to the binary, while Himi Player and demo-app refuse a release declaring one they lack; `--plan` previews it without building; `brandy` is the site shell \u2014 the customer's own website as native-framed tabs; `game` is the Godot game shell, the only one that serves `godot`. `--signing` defaults to `wix-managed` \u2014 the Wix Apple account mints a per-app signing identity for the build, so the caller provisions no Apple credentials of their own; `--signing byo --site <id>` reuses an existing customer ad-hoc profile and certificate for iOS; requires an owned site and a completed personal signing binding. `--android-signing` is the Android counterpart and a SEPARATE axis (a keystore, not an Apple account): `qa-keystore` (default \u2014 the repo's committed QA key, identical on every pool machine, so a build installs over the previous one), `wix-keystore` (the Wix key the pool machine carries; the build FAILS naming the paths searched if it carries none, rather than quietly signing with something else), or `debug` (the old per-machine key \u2014 QA must uninstall any previous build first). `--aab` builds an Android App Bundle (.aab) for the owner to upload to Google Play AND an APK from the same build \u2014 a download link for the .aab, an install link and QR for the APK; Android only; the bundle is signed with the Wix production key (`wix-keystore`, the upload key Branded apps use) \u2014 any other `--android-signing` is refused \u2014 and the APK with the committed QA key; a self-serve caller gets one only as the store build of its own Containers app (it must own the app's site, and `--aab` sends your Wix login); any other self-serve `--aab` gets 403 android_format_not_allowed. `--app-name <name> --app-icon-url <url>` (together; the icon a `https://static.wixstatic.com/media/<file>` URL) give the binary a name and icon in place of the release's, and a Containers app's store build (`--aab`, or its TestFlight build) needs both. NOT the normal way to ship: screens, Tier-5 bundles, tokens and app-config all go over the air with `himi push` in seconds \u2014 a binary trip is only needed for a NATIVE delta (a new SDUI component, a new declared capability/entitlement, a new bundle id, or a minBinaryVersion floor bump). Refuses to build an app whose launcher icon is missing, a placeholder, or one a store would reject \u2014 the one thing a binary carries that no later OTA push can fix; `--force` builds anyway. Also refuses a release whose member login (WixConsumerAuthProvider) names no siteId, or not in lower case, when Wix says its site requires a member CAPTCHA \u2014 such a binary ships without the CAPTCHA key and every member sign-in fails; whatever it cannot read (the release, the site's setting) only warns and builds; `--skip-captcha-check` builds anyway", required: "[--app <a>] [--platform ios,android] [--release <id>] [--allow-draft] [--target <t>] [--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo] [--site <id>] [--android-signing qa-keystore|wix-keystore|debug] [--aab] [--min-version-code <n>] [--app-name <name> --app-icon-url <url>] [--borrow-ios-id <bundleId>] [--no-wait] [--force] [--skip-captcha-check] [--plan] | status <jobId> [--target <t>] | watch <jobId> [--target <t>] [--interval <ms>] | list --app <a> [--target <t>] | cancel <jobId> [--target <t>]" },
264142
264185
  { name: "testflight", summary: 'build, sign and upload an app to TestFlight (internal testers \u2014 no Beta App Review), then WAIT until App Store Connect finishes processing it. Sugar for `store upload --track testflight`. Prompts first: a build number is consumed permanently on a real Apple account and cannot be reused \u2014 `--yes` for CI, `--dry-run` to see the plan without touching anything. The wait is the real check, not a nicety: fastlane prints "Successfully uploaded" for a binary App Store Connect then rejects in processing, and a rejected binary leaves NO build record at all (the reason is emailed). Public App Store review is deliberately NOT automatable here \u2014 `--track appstore` is refused; use /submit-ios-app when you mean to go public', required: "<app> [--track testflight|internal] [--profile <name>] [--yes] [--dry-run] [--skip-build] [--no-wait] [--json]" },
264143
264186
  { name: "store", summary: "`app set --app <id> --site <msid> --android-package himi.<name>` gives an app YOUR account owns (one made with `himi init`) the Google Play store app of a Wix site your account also owns, so `himi dist --aab` makes its Wix-signed (WixOne) Play bundle: the app is LINKED to the site, never converted into a site app, so your `himi login` token keeps working for push and the rest. One site per app and one app per site; the package name is permanent once a build locks it. `app show --app <id> --site <msid>` runs the store build's checks without building (saved package name, the site's Premium plan). Both send your `himi login` control token plus the account `wix token`, which the plane uses to verify your account owns the app and the site (`himi docs qa-builds`). `apple-keys setup|status` onboards the owner\u2019s ASC and In-App Purchase keys independently of push and signing profiles. `connect` and `submission status|plan|apply|rejection|reply` submit an app to the App Store from YOUR computer under YOUR Apple account, off-repo (Node 24+): `connect` opens a sign-in page on 127.0.0.1 where you type your Apple ID password and 2FA code (no flag takes them) and creates an Admin API key saved in this computer's keychain, shared with Wix for App Store builds when the app's store/app-store.json names its site; `submission plan` plans the next ordered batch and `apply` applies it only after you type the plan hash's first 8 characters (or click Approve on a local page). The same steps are the store_* tools of `himi mcp` (`himi docs store-submission`). `--platform android` takes `connect` and `submission status|plan|apply|rejection|reply` to Google Play instead: `connect` signs you in to Google in your browser (the OAuth client file from GPLAY_OAUTH_CLIENT_FILE or gplay-node's state dir, else a gcloud sign-in), the facts come from the app's store/google-play.json (category, contactEmail, privacyPolicyUrl, targetAudience, contentRatingCategory, packageName), a site-linked himi.<name> app is Wix-signed (`himi dist --aab`) and any other owner-signed (`--android-signing owner --google-services <file>`, then `google keygen <package>` makes the upload key once and `google resign <in.aab> --keystore <file.p12> --storepass-file <file>` signs the bundle, both on this computer), `apply` takes one `--job`, and `submission approve-reply --platform android --issue <id> --kind appeal|resubmit --text <reply>` records your typed yes on one exact policy reply (no --yes), the only way `reply` or store_reply can plan it. `handoff` uploads the app's asc-node records (allowlisted ids, statuses and outcomes; never keys, cookies or passwords) so Wix RelOps can take the submission over, `--out`/`--dry-run` keep it local; `relops request` records your consent that RelOps may act for the app (`--scope read` by default, or `read,submit`; `--platform android` adds the Google Play scopes `android-build` and `play-console`; you type the app id, or pass --yes). Both are site-owner only. `relops request --platform android --seat-email <name@wix.com>` also brings that RelOps person into YOUR Google Play account after one typed yes at a terminal (no --yes): it saves the `himi.<name>` package, signs you in to Google if needed and invites the seat with the RelOps app permissions for 90 days (plus create-apps while the app has no Play app id); `relops end` removes the seat; `google create-app --name <n>` creates the app in your own Play Console after you read Google's Create app declarations and type yes. The App Store Connect group behind `testflight`. `preflight <app>` checks readiness offline (icon, entitlements, encryption flag, version, store.config ids, listing + review record); `upload <app>` is what `testflight` runs; `status <app>` reads live build + processing state. `--profile` selects WHICH App Store Connect account: an app built for a Wix customer ships under the CUSTOMER's Apple team (Apple guideline 4.2.6 forbids an app-generation service submitting on a client's behalf), declared per-app as ios.credentialProfile in store.config.yaml and resolved from ~/.himalaya/store-credentials/<name>.json \u2014 the .p8 itself never enters the repo. `iap draft|plan|apply|status|connect|screenshots|check|mappings` registers an app owner's digital products as in-app purchases (non-consumables, or consumable price tiers): draft reads the Wix catalog and writes the manifest, plan and status only read, apply is the one App Store mutation boundary, connect readies the Wix site to sell them (purchases app, In-App Purchase key, appleIAP provider, product mappings; --preview-tag routes only its Serve calls to a deploy preview), legacy screenshots --profile renders each product's purchase screen from the app (--content) as a bound iPhone shows it to a signed-in member and names the 1290\xD72796 PNG as the item's App Review screenshot, and none of them builds, signs or needs a checkout (`himi docs iap-products`) IAP provisioning defaults to Catalog; managed apply generates screenshots on the server with no local .p8 or profile fallback; --managed is optional and --profile selects legacy mode; --catalog-route or HIMI_IAP_CATALOG_ROUTE has no default.", required: "app set --app <id> --site <msid> --android-package himi.<name> | app show --app <id> --site <msid> | connect [--dir <app>] [--app <id> --site <msid>] [--no-key] [--profile <name>] | submission status|plan|rejection [--dir <app>] [--apple-id <id>] [--profile <name>] | submission apply (--batch <id> | --job <id>) --plan-hash <hash> | submission reply --text <reply> [--attach <file>]\u2026 [--thread <id>] [--dir <app>] | connect --platform android | submission status|plan|rejection --platform android [--dir <app>] [--issue <id>] | submission apply --platform android --job <id> --plan-hash <hash> | submission reply|approve-reply --platform android --issue <id> --kind appeal|resubmit --text <reply> [--dir <app>] | handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>] [--out <file> | --dry-run] | relops request [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--scope read|read,submit] [--yes] | relops request --platform android --seat-email <name@wix.com> [--app <id> --site <msid>] [--developer <id>] [--app-id <n>] [--android-package himi.<name>] | relops end --platform android --seat-email <name@wix.com> [--app <id> --site <msid>] [--developer <id>] | google create-app --name <app name> [--app <id> --site <msid>] [--developer <id>] [--android-package himi.<name>] | google keygen <package> [--out <file.p12>] [--alias <name>] [--name <certificate name>] | google resign <in.aab> --keystore <file.p12> (--storepass-file <file> | --storepass-env <NAME>) [--alias <name>] [--out <file.aab>] | apple-keys setup|status --app <slug> --site <metaSiteId> --bundle-id <id> [--asc-key-file <p8> --asc-key-id <id> --asc-issuer-id <issuer>] [--iap-key <p8> --iap-key-id <id> --iap-issuer-id <issuer>] [--yes|--dry-run] [--json] | preflight <app> [--profile <n>] | upload <app> [--track <t>] [--profile <n>] [--yes] [--dry-run] | status <app> [--profile <n>] | iap draft --site <msid> " + IAP_CREDENTIAL_OPTIONS + " --apple-app <id> --bundle <id> --base-territory <t> --out <f> [--territories <a,b>] [--locale <l>] [--mode per-item|tiers] [--merge <f>] [--report <f>] [--json] | iap plan --manifest <f> " + IAP_CREDENTIAL_OPTIONS + " --out <f> [--json] | iap apply --plan <f> " + IAP_CREDENTIAL_OPTIONS + " --out <f> [--yes] [--limit <n>] [--no-submit] [--json] | iap status --manifest <f> " + IAP_CREDENTIAL_OPTIONS + " [--out <f>] [--json] | iap connect --manifest <f> [--profile <n>] [--catalog-route <prefix>] [--iap-key <AuthKey.p8> --iap-key-id <id>] [--content <dir>] [--preview-tag dp-<tag>] [--dry-run] [--yes] [--out <f>] [--json] | iap screenshots --manifest <f> --content <dir> --profile <n> [--out-dir <d>] [--only <id,\u2026>] [--force] [--dry-run] [--json] | iap check --manifest <f> --catalog-route <prefix> [--purchases-app <id>] [--content <dir>] [--plist <file>] [--visitor-client <id>] [--json] | iap mappings --site <msid> --purchases-app <id> --catalog-route <prefix> [--product <id> --active true|false --yes] [--json]" },
264144
264187
  { name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
@@ -270063,6 +270106,18 @@ ${label4}`);
270063
270106
  return 1;
270064
270107
  }
270065
270108
  }
270109
+ const PLAY_VERSION_CODE_MAX = 21e8;
270110
+ const minVersionCodeRaw = flags["min-version-code"] === void 0 ? void 0 : str3(flags["min-version-code"]) ?? "";
270111
+ const minVersionCode = minVersionCodeRaw === void 0 ? void 0 : Number(minVersionCodeRaw.trim());
270112
+ if (minVersionCodeRaw !== void 0 && (!/^\d+$/.test(minVersionCodeRaw.trim()) || !Number.isSafeInteger(minVersionCode) || minVersionCode < 1 || minVersionCode > PLAY_VERSION_CODE_MAX)) {
270113
+ print({
270114
+ ok: false,
270115
+ error: "min_version_code_invalid",
270116
+ code: "min_version_code_invalid",
270117
+ message: `--min-version-code must be a whole number from 1 to ${PLAY_VERSION_CODE_MAX}`
270118
+ });
270119
+ return 1;
270120
+ }
270066
270121
  let wixAuthorization;
270067
270122
  const testflight = str3(flags.destination) === "testflight";
270068
270123
  const customerTestflight = str3(flags.signing)?.trim().toLowerCase() === "byo" && testflight;
@@ -270135,6 +270190,7 @@ ${label4}`);
270135
270190
  // An owner bundle (--android-signing owner): the plane leaves it unsigned, under this name.
270136
270191
  ...str3(flags["package-name"]) ? { androidPackageName: str3(flags["package-name"]) } : {},
270137
270192
  ...googleServicesJson !== void 0 ? { googleServicesJson } : {},
270193
+ ...minVersionCode !== void 0 ? { minVersionCode } : {},
270138
270194
  // The App name and icon (a Wix Media file) a Containers app's store build ships under, in place
270139
270195
  // of the release's; a store build needs both. Sent as typed, so the plane gives the refusals.
270140
270196
  ...str3(flags["app-name"]) !== void 0 ? { appName: str3(flags["app-name"]) } : {},
@@ -699,14 +699,41 @@ because those write it down.
699
699
  ### Build number
700
700
 
701
701
  A store-bound build can also carry a **store floor**: **`DIST_BUILD_FLOOR_IOS`** /
702
- **`DIST_BUILD_FLOOR_ANDROID`**, the lowest build number the store will accept for the listing (its
703
- highest uploaded build + 1). The build machine never reads a store or holds store credentials: the
704
- floor is an input the job carries. Nothing sets it automatically yet; the store lanes that will read
705
- the store once per job and pass it are tracked in #4650. When the floor is set, the build number is
706
- `max(derived, floor)`, and the log says which won (`build 58 (floor: DIST_BUILD_FLOOR_ANDROID 58)` or
707
- `(derived)`). An explicit `DIST_BUILD_NUMBER` **below** the floor is refused before anything is
708
- archived, with a message naming the floor; a floor that is not an integer in `1..2100000000` fails
709
- the job rather than being ignored. A QA (`link`) build gets no floor and is unchanged.
702
+ **`DIST_BUILD_FLOOR_ANDROID`**, the lowest build number the store will accept for the listing. The
703
+ build machine never reads a store or holds store credentials: the floor is an input the job carries.
704
+ When the floor is set, the build number is `max(derived, floor)`, and the log says which won
705
+ (`build 58 (floor: DIST_BUILD_FLOOR_ANDROID 58)` or `(derived)`). An explicit `DIST_BUILD_NUMBER`
706
+ **below** the floor is refused before anything is archived, with a message naming the floor; a floor
707
+ that is not an integer in `1..2100000000` fails the job rather than being ignored. A QA (`link`) build
708
+ gets no floor and is unchanged.
709
+
710
+ **Google Play bundles count from 1.** A Containers app's store build and an owner bundle
711
+ (`--android-signing owner`) get their `versionCode` from Himi's own record of the package, kept per
712
+ app, not the clock: serve reserves the package's highest code + 1 at dispatch (one atomic write, so two builds
713
+ dispatched together never share one) and sends it as `DIST_BUILD_FLOOR_ANDROID` with
714
+ **`DIST_BUILD_SCHEME=counter`**, which tells the pool to stamp exactly that number. A new package's
715
+ first bundle is `1`, then `2`, and so on. The clock (~216M) made Google list the first release under
716
+ *Errors* and ask the owner to accept, permanently, that the app's codes can never go down.
717
+
718
+ - **Apps already on the clock continue from it.** The first counter build of a package seeds the record
719
+ from the app's job history: the highest code any of its jobs for that package was stamped with. When
720
+ the history can't prove that (a result from a runner too old to report its code, or a full index with
721
+ no code of the package in it), it seeds from the clock reading instead, which is above every
722
+ clock-numbered build. While a clock-numbered build of the package is still queued or running, the next
723
+ one builds on the clock too, and a later build seeds. Either way the next build is never below one
724
+ the package already carries.
725
+ - **An upload made some other way** is invisible to that record. Owner-signed builds can pass
726
+ **`himi dist --min-version-code <n>`** (`minVersionCode`, the lowest code the Play listing will take,
727
+ e.g. its highest + 1): the build gets `max(n, record + 1)`, and the record moves up with it. It applies
728
+ only to a Play bundle (`400 min_version_code_requires_play_bundle`); anything but a whole number in
729
+ `1..2100000000` is `400 min_version_code_invalid`.
730
+ - **If the record can't be read or written, the build is refused** (`dist_version_code_unavailable`,
731
+ retryable) rather than falling back to the clock, which would lock a new app's codes high for good.
732
+ A store with no atomic update keeps the clock, as before.
733
+ - **A pool commit older than this ignores `DIST_BUILD_SCHEME`** and keeps the clock, which is always
734
+ above the floor; the result callback raises the record to the code the pool actually stamped.
735
+ - **iOS is unchanged.** App Store Connect doesn't warn, and build numbers only need to rise within a
736
+ marketing version.
710
737
 
711
738
  ## Where an artifact lives, and when it is deleted
712
739
 
@@ -1414,6 +1441,9 @@ himi dist --app <app> --platform android --aab --android-signing owner \
1414
1441
  --package-name com.acme.app --google-services ./google-services.json --version 1.0.0 --target wix
1415
1442
  ```
1416
1443
 
1444
+ Its `versionCode` counts from 1 per package ([Build number](#build-number)). If the listing already has
1445
+ uploads Himi didn't build, add `--min-version-code <the listing's highest + 1>`.
1446
+
1417
1447
  - **What you get:** an **unsigned** `.aab` as `artifact.downloadUrl`, with `androidSigning: "unsigned"`
1418
1448
  and `ownerBundle` (`packageName`, `firebaseProjectId`, `configSha256`) on the job. No APK comes with
1419
1449
  it, because that would be an installable file on a Wix link under any name the caller typed.
@@ -1471,7 +1471,7 @@
1471
1471
  "name": "NavigationConfig",
1472
1472
  "kind": "interface",
1473
1473
  "jsdoc": "/** Per-app navigation/deep-link config, served OTA at GET /v1/app-config/:appName. */",
1474
- "decl": "export interface NavigationConfig {\n /** Tab-bar structure (which tabs; their icons/labels/badges). */\n tabBar?: TabBarConfig;\n /** Slide-in drawer / hamburger-menu destinations. */\n drawer?: DrawerConfig;\n /** Navigation chrome the shell draws.\n * Omitted ⇒ \"bottomTabs\". The shell (not the descriptor) reads this. */\n navKind?: NavKind;\n /** Destinations for \"sidebar\" mode.\n * Absent ⇒ the shell derives the rail from `tabBar.items`. */\n sidebar?: SidebarConfig;\n /** App-level default top bar; a per-screen\n * `ScreenDescriptor.topBar` fully replaces it (override, not merge). */\n topBarDefault?: TopBarConfig;\n /** The post-OS-splash brand surface (see `SplashConfig`). Absent / not enabled\n * ⇒ today's behavior. Operational per (live-flippable). */\n splash?: SplashConfig;\n /** App-level default locale. Operational per so a Hebrew (or Spanish)\n * branded app can pin RTL/l10n OTA without a launch flag. `default` is a\n * BCP-47 primary subtag; clients coerce unknown tags rather than failing the\n * envelope. `pin: true` skips the device/browser language; in-app `locale.set`\n * still wins. Absent ⇒ today's device-then-en behavior. */\n locale?: LocaleConfig;\n /** Effective orientations, resolved INSIDE\n * the binary's build-time envelope (config.ts `orientationEnvelope`). The\n * envelope is the ceiling and can never be OTA (iOS reads the plist before\n * any app code runs); this narrows within it. Always intersected with the\n * envelope — it can never widen it. Absent/empty ⇒ the envelope itself. */\n orientation?: OrientationConfig;\n /** Per-surface nav projection, keyed by catalog\n * surface id (`phone` | `tablet` | `desktop` | `mac` | `watch` | `wear` | `rn`).\n * Keyed the way `orientation` is keyed by device family and narrowed the same\n * way: a key outside the app's `platforms.json` envelope is DROPPED, never\n * honored (see `resolveSurfaceNav`). Absent key ⇒ that surface uses the default\n * projection, so an app that never thinks about surfaces is unaffected. */\n surfaces?: Record<string, SurfaceNavConfig>;\n /** The APP-LEVEL nav worker\n * that feeds every `*Path` binding on `NavTabItem` / `DrawerItem` /\n * `TopBarAction`. App-level, not a screen's worker, because chrome outlives\n * every screen: a cart badge must survive leaving the cart, and a flag-hidden\n * tab must stay hidden three pushes deep in another stack. Absent ⇒ paths stay\n * unresolved and the literals render — the worker enriches, it never gates. */\n navLogicBundle?: LogicBundleRef;\n /** Which nav badges ALSO drive the OS app-icon\n * badge. Each entry is `\"<kind>:<id>\"` (`tab` | `drawer` | `topBarAction`, the\n * spelling `navKey` uses); the icon shows the SUM of those slots' resolved counts.\n * Empty/absent ⇒ no mirroring. An entry naming a slot this build does not have is\n * ignored, never a blanked badge. Requires the `push` capability — `defineApp`\n * rejects the combination, because the badge would be set and never shown. */\n appIconBadgeSources?: string[];\n /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */\n streamPolicy?: StreamPolicy;\n /** A site shell's URL space. A push tap, app link or\n * custom-scheme link whose URL is an https page on one of `site.origins` opens the\n * screen owning its path, and that screen's WebView loads the full URL. Absent ⇒\n * links resolve as before. Build it with `siteNavConfig()` from\n * `@himalaya/core/site-shell`; resolution is `resolveSiteLink()`. */\n site?: SiteNavConfig;\n /** amendment \"top-bar gap items\" — app-wide logo for tab-stack roots. */\n topBarLogo?: TopBarLogo;\n /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav\n * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing\n * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);\n * identical consecutive alerts show once. An inline `AlertDialog` component never enters the\n * queue. Absent ⇒ today's behaviour. */\n presentationQueue?: boolean;\n scheme: string;\n deepLinkPatterns: DeepLinkPattern[];\n linkableScreens: LinkableScreen[];\n}",
1474
+ "decl": "export interface NavigationConfig {\n /** Tab-bar structure (which tabs; their icons/labels/badges). */\n tabBar?: TabBarConfig;\n /** Slide-in drawer / hamburger-menu destinations. */\n drawer?: DrawerConfig;\n /** Navigation chrome the shell draws.\n * Omitted ⇒ \"bottomTabs\". The shell (not the descriptor) reads this. */\n navKind?: NavKind;\n /** Destinations for \"sidebar\" mode.\n * Absent ⇒ the shell derives the rail from `tabBar.items`. */\n sidebar?: SidebarConfig;\n /** App-level default top bar; a per-screen\n * `ScreenDescriptor.topBar` fully replaces it (override, not merge). */\n topBarDefault?: TopBarConfig;\n /** The post-OS-splash brand surface (see `SplashConfig`). Absent / not enabled\n * ⇒ today's behavior. Operational per (live-flippable). */\n splash?: SplashConfig;\n /** App-level default locale. Operational per so a Hebrew (or Spanish)\n * branded app can pin RTL/l10n OTA without a launch flag. `default` is a\n * BCP-47 primary subtag; clients coerce unknown tags rather than failing the\n * envelope. `pin: true` skips the device/browser language; in-app `locale.set`\n * still wins. Absent ⇒ today's device-then-en behavior. */\n locale?: LocaleConfig;\n /** Effective orientations, resolved INSIDE\n * the binary's build-time envelope (config.ts `orientationEnvelope`). The\n * envelope is the ceiling and can never be OTA (iOS reads the plist before\n * any app code runs); this narrows within it. Always intersected with the\n * envelope — it can never widen it. Absent/empty ⇒ the envelope itself. */\n orientation?: OrientationConfig;\n /** Per-surface nav projection, keyed by catalog\n * surface id (`phone` | `tablet` | `desktop` | `mac` | `watch` | `wear` | `rn`).\n * Keyed the way `orientation` is keyed by device family and narrowed the same\n * way: a key outside the app's `platforms.json` envelope is DROPPED, never\n * honored (see `resolveSurfaceNav`). Absent key ⇒ that surface uses the default\n * projection, so an app that never thinks about surfaces is unaffected. */\n surfaces?: Record<string, SurfaceNavConfig>;\n /** The APP-LEVEL nav worker\n * that feeds every `*Path` binding on `NavTabItem` / `DrawerItem` /\n * `TopBarAction`. App-level, not a screen's worker, because chrome outlives\n * every screen: a cart badge must survive leaving the cart, and a flag-hidden\n * tab must stay hidden three pushes deep in another stack. Absent ⇒ paths stay\n * unresolved and the literals render — the worker enriches, it never gates. */\n navLogicBundle?: LogicBundleRef;\n /** Which nav badges ALSO drive the OS app-icon\n * badge. Each entry is `\"<kind>:<id>\"` (`tab` | `drawer` | `topBarAction`, the\n * spelling `navKey` uses); the icon shows the SUM of those slots' resolved counts.\n * Empty/absent ⇒ no mirroring. An entry naming a slot this build does not have is\n * ignored, never a blanked badge. Requires the `push` capability — `defineApp`\n * rejects the combination, because the badge would be set and never shown. */\n appIconBadgeSources?: string[];\n /** Signed release allowlist for contained browser Tier-5 `_stream` requests. */\n streamPolicy?: StreamPolicy;\n /** A site shell's URL space. A push tap, app link or\n * custom-scheme link whose URL is an https page on one of `site.origins` opens the\n * screen owning its path, and that screen's WebView loads the full URL. Absent ⇒\n * links resolve as before. Build it with `siteNavConfig()` from\n * `@himalaya/core/site-shell`; resolution is `resolveSiteLink()`. */\n site?: SiteNavConfig;\n /** amendment \"top-bar gap items\" — app-wide logo for tab-stack roots. */\n topBarLogo?: TopBarLogo;\n /** amendment \"Title, leading and trailing completion\" — app-wide title alignment for tab-stack roots:\n * \"\" / \"auto\" (default) | \"leading\" | \"center\". The twin of `TopBarConfig.titleAlign`, because a screen's own\n * `topBar` fully replaces `topBarDefault`. Unknown values read as \"auto\". */\n topBarTitleAlign?: string;\n /** Opt-in alert queue. `true` ⇒ every presented alert (worker `ui.alert`, the descriptor nav\n * `alert` verb, app services) shows one at a time in FIFO order per shell, instead of replacing\n * each other or rejecting `ui_busy`. At most 5 wait (a 6th worker call rejects `ui_queue_full`);\n * identical consecutive alerts show once. An inline `AlertDialog` component never enters the\n * queue. Absent ⇒ today's behaviour. */\n presentationQueue?: boolean;\n scheme: string;\n deepLinkPatterns: DeepLinkPattern[];\n linkableScreens: LinkableScreen[];\n}",
1475
1475
  "verificationChecked": true
1476
1476
  },
1477
1477
  {
@@ -1520,7 +1520,7 @@
1520
1520
  "name": "TopBarConfig",
1521
1521
  "kind": "interface",
1522
1522
  "jsdoc": "/** The shell-owned top bar. The shell paints\n * `ScreenDescriptor.title` and computes the leading slot (back XOR menu) from\n * nav depth; this adds the trailing action cluster + leading/style overrides.\n * Lives on `ScreenDescriptor.topBar` (authoritative) and\n * `NavigationConfig.topBarDefault` (app-level fallback, fully replaced). */",
1523
- "decl": "export interface TopBarConfig {\n /** Trailing (right-edge) actions, authored order = leading→trailing. */\n actions?: TopBarAction[];\n /** Leading override: \"\" | \"auto\" (shell-computed) | \"back\" | \"menu\" | \"none\". */\n leading?: string;\n /** Content-under-bar: \"\" | \"opaque\" (default) | \"transparent\" | \"immersive\". */\n style?: string;\n /** Toolbar items (drawn after the legacy `actions`). */\n items?: ToolbarItem[];\n /** \"\" / \"automatic\" (default) | \"large\" | \"inline\". */\n titleDisplay?: string;\n /** The literal subtitle (the fallback for `subtitlePath`). */\n subtitle?: string;\n /** \"\" / \"visible\" (default) | \"hidden\". */\n visibility?: string;\n /** Bar fill token. iOS 26 keeps the system glass (amendment R12). */\n background?: TokenRef;\n /** \"Native top-bar search\" — the screen's search, drawn by whoever draws its bar natively (an embed's host\n * today: iOS `himalayaEmbedSearch`, Android `ProvideHimalayaEmbedSearch`). Read per screen only. */\n searchable?: SearchableConfig;\n /** amendment — the screen's logo; overrides `NavigationConfig.topBarLogo`. */\n logo?: TopBarLogo;\n /** amendment — the title as a menu. */\n titleMenu?: TopBarTitleMenu;\n /** amendment — live subtitle (`$service:`); `subtitle` is the fallback. */\n subtitlePath?: string;\n /** amendment — \"\" / \"pinned\" (default) | \"hide_on_scroll\". */\n scrollBehavior?: string;\n /** amendment — truthy ⇒ leaving the presentation asks to discard. Unset/unresolved ⇒ false. */\n dirtyPath?: string;\n /** amendment — live `visibility` (`$service:`). Resolves to \"visible\" | \"hidden\";\n * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */\n visibilityPath?: string;\n}",
1523
+ "decl": "export interface TopBarConfig {\n /** Trailing (right-edge) actions, authored order = leading→trailing. */\n actions?: TopBarAction[];\n /** Leading override: \"\" | \"auto\" (shell-computed) | \"back\" | \"menu\" | \"none\". */\n leading?: string;\n /** Content-under-bar: \"\" | \"opaque\" (default) | \"transparent\" | \"immersive\". */\n style?: string;\n /** Toolbar items (drawn after the legacy `actions`). */\n items?: ToolbarItem[];\n /** \"\" / \"automatic\" (default) | \"large\" | \"inline\" | \"hidden\". `\"hidden\"` draws no title and keeps\n * the title as the screen name for screen readers (amendment \"Title, leading and trailing completion\"). */\n titleDisplay?: string;\n /** The literal subtitle (the fallback for `subtitlePath`). */\n subtitle?: string;\n /** \"\" / \"visible\" (default) | \"hidden\". */\n visibility?: string;\n /** Bar fill token. iOS 26 keeps the system glass (amendment R12). */\n background?: TokenRef;\n /** \"Native top-bar search\" — the screen's search, drawn by whoever draws its bar natively (an embed's host\n * today: iOS `himalayaEmbedSearch`, Android `ProvideHimalayaEmbedSearch`). Read per screen only. */\n searchable?: SearchableConfig;\n /** amendment — the screen's logo; overrides `NavigationConfig.topBarLogo`. */\n logo?: TopBarLogo;\n /** amendment — the title as a menu. */\n titleMenu?: TopBarTitleMenu;\n /** amendment — live subtitle (`$service:`); `subtitle` is the fallback. */\n subtitlePath?: string;\n /** amendment — \"\" / \"pinned\" (default) | \"hide_on_scroll\". */\n scrollBehavior?: string;\n /** amendment — truthy ⇒ leaving the presentation asks to discard. Unset/unresolved ⇒ false. */\n dirtyPath?: string;\n /** amendment — live `visibility` (`$service:`). Resolves to \"visible\" | \"hidden\";\n * anything else, or unresolved, falls back to `visibility`. Not a truthy boolean. */\n visibilityPath?: string;\n /** amendment \"Title, leading and trailing completion\" — \"\" / \"auto\" (default) | \"leading\" | \"center\".\n * Unknown values read as \"auto\". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */\n titleAlign?: string;\n}",
1524
1524
  "verificationChecked": true
1525
1525
  },
1526
1526
  {
@@ -1597,7 +1597,7 @@
1597
1597
  "name": "ToolbarItem",
1598
1598
  "kind": "interface",
1599
1599
  "jsdoc": "/** One top-bar item. Test id `toolbar.<id>`\n * (`toolbar-<id>` on web and React Native). Every tap carries an existing `Action`\n *. Bindings are `$service:` sentinels resolved by the screen host. */",
1600
- "decl": "export interface ToolbarItem {\n id: string;\n /** \"leading\" | \"trailing\" (default) | \"principal\" | \"bottom\" | \"keyboard\" | \"overflow\". */\n placement?: string;\n /** Text button when there is no icon; the accessible name always. */\n label?: string;\n icon?: IconRef;\n onTap?: Action;\n /** \"\" | \"cancel\" | \"confirm\" | \"destructive\". */\n role?: string;\n disabled?: boolean;\n /** OR'd with `disabled`. For Save, bind \"nothing to save\" (e.g. `cannotSave`), never the dirty flag. */\n disabledPath?: string;\n /** Non-empty ⇒ the item opens a menu. */\n menu?: MenuItem[];\n /** \"principal\" only: a custom title view. */\n content?: Component;\n /** Truthy ⇒ a progress indicator replaces the item. Unset/unresolved ⇒ false. */\n loadingPath?: string;\n /** Set ⇒ the item draws an avatar; `label` stays the accessible name (\"Profile\" by default). */\n avatar?: ToolbarAvatar;\n /** Live label; `label` is the fallback. */\n labelPath?: string;\n /** Long press (touch), secondary click (pointer) or the \"More options\" accessibility action.\n * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */\n onLongPress?: Action;\n}",
1600
+ "decl": "export interface ToolbarItem {\n id: string;\n /** \"leading\" | \"trailing\" (default) | \"principal\" | \"bottom\" | \"keyboard\" | \"overflow\". */\n placement?: string;\n /** Text button when there is no icon; the accessible name always. */\n label?: string;\n icon?: IconRef;\n onTap?: Action;\n /** \"\" | \"cancel\" | \"confirm\" | \"destructive\". */\n role?: string;\n disabled?: boolean;\n /** OR'd with `disabled`. For Save, bind \"nothing to save\" (e.g. `cannotSave`), never the dirty flag. */\n disabledPath?: string;\n /** Non-empty ⇒ the item opens a menu. */\n menu?: MenuItem[];\n /** \"principal\" only: a custom title view. */\n content?: Component;\n /** Truthy ⇒ a progress indicator replaces the item. Unset/unresolved ⇒ false. */\n loadingPath?: string;\n /** Set ⇒ the item draws an avatar; `label` stays the accessible name (\"Profile\" by default). */\n avatar?: ToolbarAvatar;\n /** Live label; `label` is the fallback. */\n labelPath?: string;\n /** Long press (touch), secondary click (pointer) or the \"More options\" accessibility action.\n * Never also fires `onTap`; ignored while disabled or loading, in More Actions, and with a `menu`. */\n onLongPress?: Action;\n /** amendment \"Title, leading and trailing completion\" — dot or count overlay. Ignored on an\n * \"overflow\" item. `badge.countLabel` is the noun the shell speaks after the count. */\n badge?: NavBadge;\n}",
1601
1601
  "verificationChecked": true
1602
1602
  },
1603
1603
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1707.0",
3
+ "version": "0.1709.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "3817697fb7c95508135a87687df3a55d56745621cb0ec94874001069"
84
+ "falconPackageHash": "415fbe34a0c070c0ffc015cf469ee704916ab52fe8d654bcf54a340b"
85
85
  }