@wix/himalaya-cli 0.1896.0 → 0.1897.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -75255,7 +75255,7 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
75255
75255
  endCompat(opIdx) {
75256
75256
  }
75257
75257
  consumePath(opIdx, path2, clipBox) {
75258
- const isEmpty = this.current.isEmptyClip();
75258
+ const isEmpty2 = this.current.isEmptyClip();
75259
75259
  if (this.pendingClip) {
75260
75260
  this.current.updateClipFromPath();
75261
75261
  }
@@ -75264,7 +75264,7 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
75264
75264
  }
75265
75265
  const ctx = this.ctx;
75266
75266
  if (this.pendingClip) {
75267
- if (!isEmpty) {
75267
+ if (!isEmpty2) {
75268
75268
  if (this.pendingClip === EO_CLIP) {
75269
75269
  ctx.clip(path2, "evenodd");
75270
75270
  } else {
@@ -201251,12 +201251,14 @@ var init_source_actions = __esm({
201251
201251
 
201252
201252
  // src/one-app/home-header-actions.ts
201253
201253
  function homeInviteButton(screenId, service, label4) {
201254
- return storeInviteButton({ id: homeInviteButtonId(screenId), service, label: label4 });
201254
+ const button = storeInviteButton({ id: homeInviteButtonId(screenId), service, label: label4 });
201255
+ const body = obj13(button.body);
201256
+ return { ...button, body: { ...body, props: { ...obj13(body.props), style: HOME_INVITE_STYLE, size: BUTTON_SIZE } } };
201255
201257
  }
201256
201258
  function homeCtaButton(screenId, label4, tap) {
201257
201259
  return {
201258
201260
  id: homeCtaButtonId(screenId),
201259
- body: { package: "himalaya", type: "Button", props: { title: label4, style: "filled", size: "md", fullWidth: true, action: tap } },
201261
+ body: { package: "himalaya", type: "Button", props: { title: label4, style: HOME_CTA_STYLE, size: BUTTON_SIZE, fullWidth: true, action: tap } },
201260
201262
  modifiers: { weight: 1 }
201261
201263
  };
201262
201264
  }
@@ -201311,7 +201313,7 @@ function decideHomeCta(settings, env) {
201311
201313
  if (!label4) return { eligible: false, reason: "no_label", detail: "the call to action has no label to show", choice: resolution.choice };
201312
201314
  return { eligible: true, label: label4, choice: resolution.choice, resolution };
201313
201315
  }
201314
- var obj13, arr2, str12, homeHeaderActionsId, homeCtaButtonId, homeInviteButtonId, legacyHomeInviteRowId, slotId, GUTTER;
201316
+ var obj13, arr2, str12, homeHeaderActionsId, homeCtaButtonId, homeInviteButtonId, legacyHomeInviteRowId, slotId, GUTTER, HOME_CTA_STYLE, HOME_INVITE_STYLE, BUTTON_SIZE;
201315
201317
  var init_home_header_actions = __esm({
201316
201318
  "src/one-app/home-header-actions.ts"() {
201317
201319
  init_define_HHP_CATALOG();
@@ -201326,6 +201328,9 @@ var init_home_header_actions = __esm({
201326
201328
  legacyHomeInviteRowId = (screenId) => `${screenId}.invite`;
201327
201329
  slotId = (screenId) => `${homeHeaderActionsId(screenId)}.slot`;
201328
201330
  GUTTER = 16;
201331
+ HOME_CTA_STYLE = "primary";
201332
+ HOME_INVITE_STYLE = "secondary";
201333
+ BUTTON_SIZE = "md";
201329
201334
  }
201330
201335
  });
201331
201336
 
@@ -202941,10 +202946,10 @@ function resolveDetailedHeader(raw, headerId) {
202941
202946
  if (definitionId !== DETAILED_HEADER_DEFINITION_ID) return { eligible: false, reason: "not_detailed", headerId, ...definitionId ? { definitionId } : {} };
202942
202947
  const settings = obj18(found.header.settings);
202943
202948
  const shared = obj18(raw.settings);
202944
- const title = settings.showTitle === false ? "" : str14(found.header.title).trim();
202945
- const subtitle = settings.showSubtitle === false || settings.showTagline === false ? "" : str14(found.header.subtitle).trim();
202946
- const logoUrl = settings.showLogo === false ? "" : wixMediaUrl(shared.logoImageUrl, null);
202947
- const own6 = Array.isArray(settings.coverImagesUrls) && settings.coverImagesUrls.length > 0;
202949
+ const title = str14(found.header.title).trim();
202950
+ const subtitle = str14(found.header.subtitle).trim();
202951
+ const logoUrl = settings.showLogo ? wixMediaUrl(shared.logoImageUrl, null) : "";
202952
+ const own6 = !isEmpty(settings.coverImagesUrls);
202948
202953
  const coverUrls = urls(own6 ? settings.coverImagesUrls : shared.coverImagesUrls, WIX_DETAIL_IMAGE);
202949
202954
  return {
202950
202955
  eligible: true,
@@ -202974,7 +202979,7 @@ function homeSourceHeaderId(input) {
202974
202979
  const owner = input.screenIds.find((id) => input.firstVisiblePage(id) === homePage);
202975
202980
  return owner ? str14(obj18(screens[owner]).headerId) || null : null;
202976
202981
  }
202977
- var obj18, str14, part3, DETAILED_HEADER_DEFINITION_ID, urls;
202982
+ var obj18, str14, part3, isEmpty, DETAILED_HEADER_DEFINITION_ID, urls;
202978
202983
  var init_detailed_header = __esm({
202979
202984
  "src/one-app/detailed-header.ts"() {
202980
202985
  init_define_HHP_CATALOG();
@@ -202983,6 +202988,7 @@ var init_detailed_header = __esm({
202983
202988
  obj18 = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : {};
202984
202989
  str14 = (v2) => typeof v2 === "string" ? v2 : "";
202985
202990
  part3 = (value2) => value2.replaceAll("~", "~0").replaceAll("/", "~1");
202991
+ isEmpty = (v2) => v2 === null || v2 === void 0 || typeof v2 === "number" || typeof v2 === "boolean" || (Array.isArray(v2) || typeof v2 === "string" ? v2.length === 0 : typeof v2 === "object" ? Object.keys(v2).length === 0 : false);
202986
202992
  DETAILED_HEADER_DEFINITION_ID = "platform_detailed_header";
202987
202993
  urls = (value2, size) => (Array.isArray(value2) ? value2 : []).map((url) => wixMediaUrl(url, size)).filter(Boolean);
202988
202994
  }
@@ -699,8 +699,10 @@ Apply these interpretation rules:
699
699
  `overlappingPanelHeader` first on the Home and gives it a `topBar` copied from `navigation.topBarDefault` with
700
700
  `style: "immersive"` (`"transparent"` with no cover image), `titleDisplay: "hidden"` and `solidAfter` on the cover. Other definitions, and Detailed on any
701
701
  other screen, are ineligible. A Detailed Home whose page opens a shared vertical screen is generated as the Home.
702
- Props are the header's own: title/subtitle (explicit visibility), `showLogo` + `settings.logoImageUrl`, ordered
703
- `coverImagesUrls` (empty: the global covers), `coverImageTransitionTime` (default 3000). Run `provision` after
702
+ Props follow the source Detailed viewer: the header's own `title` and `subtitle` as authored (the viewer reads no
703
+ `showTitle`, `showSubtitle` or `showTagline`, so a legacy `false` there hides nothing; a blank one stays blank, never
704
+ the business name), `settings.logoImageUrl` only when the header's `showLogo` is truthy, ordered `coverImagesUrls`
705
+ (empty: the global `settings.coverImagesUrls`), `coverImageTransitionTime` (default 3000). Run `provision` after
704
706
  `header-badges` to copy the bar again; `validate-topbar` reports drift. The header's call to action and its Invite
705
707
  go in one header actions row right after the header (see "The header's call to action" and "Invite is the Home's
706
708
  row" below); never inside it.
@@ -834,7 +836,7 @@ Apply these interpretation rules:
834
836
  - **The header's call to action, written by `generate`.** The source shows it only when the header has a
835
837
  `settings.callToAction` (`{ id, title, payload? }`) **and** `settings.showCallToAction: true`. `himi one-app
836
838
  generate` writes it on the Home with a Detailed header, from that same source header (bottom tabs, converted top
837
- tabs and a shared-vertical Home included): a filled `Button` with the owner's `title`, id
839
+ tabs and a shared-vertical Home included): a `Button` with the owner's `title`, id
838
840
  `himi_branded_home.cta.button`. Its action goes through the shared action table below. `none` is no button. An
839
841
  action the app cannot run, a missing destination screen or an empty label is no button and a gap. A Home without
840
842
  a Detailed header whose source header shows a call to action is a gap too. `generate` reports `homeCta`:
@@ -846,7 +848,11 @@ Apply these interpretation rules:
846
848
  equal-width slots (`weight: 1` each, 12pt apart, 16pt gutters). Both buttons: the call to action first in
847
849
  reading order, then Invite. One button: it takes the leading slot (left in LTR, right in RTL) at the same width,
848
850
  and the trailing slot is an empty, non-tappable `Spacer` (`himi_branded_home.header_actions.slot`). No button: no
849
- row and no blank padding. The header keeps its cover and its immersive bar.
851
+ row and no blank padding. The header keeps its cover and its immersive bar. Both buttons use the app's themed
852
+ button variants at size `md`, like every other generated button: the call to action `style: "primary"`, Invite
853
+ `style: "secondary"` with the `share` icon. The tokens give them the app's shape (square corners when the theme
854
+ has them), typography and size. Do not use the native `filled` or `tonal` styles here: they read no variant
855
+ token and are drawn as pills.
850
856
  - **One action table for every configurable control.** The header's call to action, both buttons of a Button
851
857
  section, a tappable Image, each repeater item and the interactive banner resolve their action through the same
852
858
  table (`source-actions.ts`). Each control keeps its own label and action.
@@ -14,6 +14,18 @@ areas, always in the same order, so you can skim for the one you care about.
14
14
 
15
15
  ---
16
16
 
17
+ ## 2026-11-26
18
+
19
+ ### Getting started & the CLI
20
+
21
+ - **`skill-mcp.md` now sets up the local `himi mcp`.** The page gives the Claude Code command and the `mcp.json`
22
+ entry for the server that runs on your own machine. The internal MCP server it used to describe is retired: it
23
+ answers `410` and points at the local server, or at the hosted connector when that is on. (#6543)
24
+ - **The hosted connector reads an app's SPEC.md and MOBILE-UX.md.** `himi_release_docs` lists the product
25
+ documents a pushed release carries, or returns one as Markdown with `name`. It reads the latest draft, the live
26
+ release when the app has no draft, or the release you name. Read them before changing an app someone else built.
27
+ (#6543)
28
+
17
29
  ## 2026-11-25
18
30
 
19
31
  ### Getting started & the CLI
@@ -354,7 +354,8 @@ himi app-docs get mobile-ux --app <app> --release <releaseId> --target prod
354
354
  `himi push` includes `SPEC.md` and `MOBILE-UX.md` when they exist at the content-package root.
355
355
  They are deliberately a small Markdown allowlist (128 KiB each): keep them safe for public
356
356
  release retrieval, with no secrets, personal data, internal URLs, or private research. Agents can
357
- retrieve the same contracts through the `himi_release_docs` and `himi_release_doc` MCP tools.
357
+ retrieve the same contracts with `himi app-docs`, or through the hosted connector's
358
+ `himi_release_docs` tool (pass `name` for one document's Markdown).
358
359
 
359
360
  ## Telemetry
360
361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1896.0",
3
+ "version": "0.1897.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": "1d4d0fcff3affe44cf0eb970e3d263f84795126332c735ccc607d809"
85
+ "falconPackageHash": "bad356420e79e6aadf9de621a778fd6791a2bb9f4dd2f6134c4f8d18"
86
86
  }