@wix/himalaya-cli 0.1701.0 → 0.1703.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +10 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +19 -5
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{8155555b873d0194a45cb1fdbd06855900b3943c888ffa129ed48a373a32eb46.bin → df0422934aaa38861fe3fc040a30a521cc958ddcc9fee01e9202b3c6c5dbf4d6.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +4795 -3079
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +36 -0
- package/guides/release-notes.md +16 -0
- package/guides/wix-business-context.md +27 -2
- package/guides/wix-site-to-himi-app.md +2 -1
- package/package.json +2 -2
|
Binary file
|
|
@@ -137,6 +137,29 @@ This is a scoped migration. Other legacy `himi test` failure paths retain their
|
|
|
137
137
|
| `source_icon_unavailable` | Verified source evidence or its logo is missing, unreadable, unavailable, over the download/decoding budget, or cannot be normalized. |
|
|
138
138
|
| `source_icon_unusable` | The prepared source mark fails mechanical launcher/store checks. Existing icon files and metadata are left unchanged. |
|
|
139
139
|
|
|
140
|
+
## `himi ext` codes
|
|
141
|
+
|
|
142
|
+
`himi ext create` and `himi ext list` (the app's own native extensions). Every refusal is
|
|
143
|
+
`{ ok: false, code, error, ... }` on stderr.
|
|
144
|
+
|
|
145
|
+
| Code | Meaning |
|
|
146
|
+
| --- | --- |
|
|
147
|
+
| `invalid_usage` | Unknown subcommand, or a missing or extra positional (exit 2). |
|
|
148
|
+
| `extension_name_invalid` | The name is not lowercase letters, digits and single hyphens, 2–40 characters, starting with a letter (exit 2). |
|
|
149
|
+
| `extension_catalog_match` | The platform catalog already has a capability of that name (`capability` names it); declare that instead. `--force` creates the extension anyway (exit 2). |
|
|
150
|
+
| `extension_exists` | `extensions/<name>/` already exists. |
|
|
151
|
+
| `extensions_config_missing` | No `config.ts` in the content directory. |
|
|
152
|
+
| `extensions_config_opaque` | config.ts `extensions` is not a literal array of names, so it cannot be edited safely. |
|
|
153
|
+
| `extension_limit` | The app already declares the maximum number of extensions (`limit`). |
|
|
154
|
+
| `extension_scaffold_failed` | The scaffolded manifest or interface did not load; `error` says why. |
|
|
155
|
+
|
|
156
|
+
`himi ext list` exits 0 and reports problems in `findings[]` (`code`, `extension`, `file?`,
|
|
157
|
+
`line?`, `message`): the manifest and interface codes (`extension_manifest_invalid`,
|
|
158
|
+
`extension_name_invalid`, `extension_feature_unsupported`, `extension_action_invalid`,
|
|
159
|
+
`extension_interface_invalid`), `extension_unsafe_file`, `extension_too_large`,
|
|
160
|
+
`extension_sources_missing`, `extension_not_found`, `extension_declared_missing` and
|
|
161
|
+
`extension_not_declared`.
|
|
162
|
+
|
|
140
163
|
## `himi publish-size` codes
|
|
141
164
|
|
|
142
165
|
This local planning command never claims or publishes. Every failure includes
|
|
@@ -236,6 +259,7 @@ worker's bundle. These names are stable.
|
|
|
236
259
|
| `auth_provider_invalid` | The app's `config.ts` `auth` entry cannot be used: missing, no `providerId`, or a `config` that is not an object. `file`, `field` and `fix` say where and what to write. Nothing is published. Exit 2. The same code comes from `himi validate`, `render`, `test`, `pack` and `run` (see "`config.ts` failures" below). |
|
|
237
260
|
| `one_app_readiness_failed` | Reserved legacy refusal code. One App migration readiness is now advisory: publish and promotion report structured warnings instead. Other independent release checks may still refuse a push. |
|
|
238
261
|
| `control_token_expired` | The selected control token has expired. |
|
|
262
|
+
| `extension_invalid` | A native extension the app declares (config.ts `extensions`) cannot be uploaded: a missing `extensions/<name>/`, an invalid `himi-extension.json` or `interface.ts`, a refused build-time file (an SPM or Gradle script, a binary), or one over the size limit. `findings[]` carries `{ code, extension, file?, line?, message }` per problem. Nothing is published. Extension artifacts are uploaded even with `--no-source`. A publishing service that predates native extensions publishes without them; push then reports the warning `extensions_unenforced` (not a refusal, like `require_ota_unenforced`). |
|
|
239
263
|
| `app_source_contains_secrets` | Source archiving detected a possible credential. |
|
|
240
264
|
| `app_source_too_large` | The encoded source archive exceeds its limit. |
|
|
241
265
|
| `publish_body_too_large` | The complete publish request exceeds its limit. `bodyBytes` is the plain JSON and `limit` the 8,388,608-byte plain limit, as before. Added: `overageBytes`, `decodedLimit` (33,554,432), `decodedOverageBytes`; when push would gzip the body, `wireBytes`, `wireLimit` and `wireOverageBytes`; and `compressedUpload`, why the gzip upload was not admitted: `decoded_limit_exceeded`, `self_serve_credential`, `credential_unverified` (a static or opaque credential the CLI cannot read as a provisioned token) or `wire_limit_exceeded`. `appSourceBytes` and `breakdown` are unchanged. No credential or payload content is included. |
|
|
@@ -364,6 +388,18 @@ An invalid manifest fails with `manifest_invalid`, like the other `store iap` co
|
|
|
364
388
|
|---|---|
|
|
365
389
|
| `browser_unavailable` | `himi site analyze` needs Playwright and its Chromium for the crawl, the page screenshots and the theme, and one of them is not installed. It refuses before any network work, on stderr with `ok: false`, `error`, the fix in `fix` (text to print: one command, or on Windows the steps on separate lines because PowerShell 5.1 has no `&&`) and as separate commands in `fixSteps`, and the readiness in `browser` (`playwright.installed`, `chromium.installed`). Exit 2. `--no-browser` runs the static-HTML-only pass on purpose instead. `himi doctor --json` reports the same readiness under `browser`, with the same `code`, `fix` and `fixSteps` when the browser is missing; that does not make doctor's `ok` false, because build, validate, test and push run without a browser. `himi doctor --install-browser` downloads the Chromium the CLI's own Playwright launches and then re-checks; it exits 1 when no browser is left installed. |
|
|
366
390
|
|
|
391
|
+
## `himi site analyze --site-pages` codes
|
|
392
|
+
|
|
393
|
+
`--site-pages` (opt-in website pages beside a native app) and its `--dry-run`
|
|
394
|
+
refuse an unusable combination before any network work, on stderr with `ok: false`, `code`,
|
|
395
|
+
`error` and `usage`. Exit 2. This is not a migration of `himi site analyze`: its other failures
|
|
396
|
+
keep their legacy envelopes.
|
|
397
|
+
|
|
398
|
+
| Code | Meaning |
|
|
399
|
+
|---|---|
|
|
400
|
+
| `site_pages_shell_unsupported` | `--site-pages` names a shell that hosts no website pages beside native screens. Only `--shell branded-lite` (the default) does; a site shell (`brandy`) is all website pages already. Nothing was read or written. |
|
|
401
|
+
| `dry_run_needs_site_pages` | `--dry-run` was passed without both `--apply` and `--site-pages`. It previews `--apply --site-pages` only; plain analyze already writes nothing into the app, and `book.md` → `## Site pages` shows what `--site-pages` would add. Nothing was read or written. |
|
|
402
|
+
|
|
367
403
|
## `himi store iap connect` codes
|
|
368
404
|
|
|
369
405
|
`connect` prints one envelope with the whole report. When the setup is not complete it is
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,22 @@ 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-13
|
|
18
|
+
|
|
19
|
+
### Getting started & the CLI
|
|
20
|
+
|
|
21
|
+
- **`himi site analyze --apply --site-pages` adds the site's pages that Branded Lite has no screen
|
|
22
|
+
for, as website pages.** About, Our Story, a news page on a site without Wix Blog, or a shop page
|
|
23
|
+
on a site that does not run Wix Stores each open the live website from one drawer section, "From
|
|
24
|
+
our website". Pages a native screen covers (Book Online, a Wix Blog) stay native, and Home, flow
|
|
25
|
+
pages and members pages are left out, at most 10 pages in the site's menu order. It is opt-in: a
|
|
26
|
+
plain `--apply` adds none. The tab bar does not change, and site links keep opening their native
|
|
27
|
+
screens. `book.md` gains a `## Site pages` section that lists what the flag would add, and
|
|
28
|
+
`--apply --site-pages --dry-run` shows the same plan in `apply.sitePages` and writes nothing into
|
|
29
|
+
the app. In a package from `himi init --template branded-lite`, the pages are `site_*` screens in
|
|
30
|
+
`dev/index.ts` with rows in `config.ts`'s drawer. A re-apply removes the pages the site no longer
|
|
31
|
+
lists. (#5779)
|
|
32
|
+
|
|
17
33
|
## 2026-11-09
|
|
18
34
|
|
|
19
35
|
### Logic, data & SDKs
|
|
@@ -150,7 +150,7 @@ RFC 0048 refused a **content dump** on the runtime facade. The dump lives here,
|
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
152
|
himi site analyze --url https://… --out .himi/business-book # visitor-only pass
|
|
153
|
-
himi site analyze --url https://… --client-id <id> [--site <msid>] --out .himi/business-book [--apply]
|
|
153
|
+
himi site analyze --url https://… --client-id <id> [--site <msid>] --out .himi/business-book [--apply [--site-pages] [--dry-run]]
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
`--url` alone is the **visitor-only pass**: the published pages, their look (screenshots,
|
|
@@ -239,7 +239,32 @@ The map comes from what the analysis already reads without owner credentials, be
|
|
|
239
239
|
|
|
240
240
|
Each page becomes a Tier-3 WebView screen today (`siteScreens(site)` in `@wix/himalaya/core`). A second form of the same pages exists: `siteScreens(site, { form: "node" })` serves each one as an SDUI screen whose root is the page as a primary `WebView` node, and `sitePage(site, { path })` (`@wix/himalaya/sdui`) puts one page on a screen beside native UI. The default stays the Tier-3 form, because an app binary built before site-page nodes would draw the node form as a plain embedded WebView. See [Designing Himi screens → a website page with native UI around it](designing-himi-screens.md#4-layout-idioms-recipes-that-read-well).
|
|
241
241
|
|
|
242
|
-
The block is validated with the shell's own rules before it is written. Only a site shell ever receives it: the analysis leaves it out for any other `--shell`, and the merge drops it for a shell whose committed contract has no `site`. `--apply --shell brandy` without a `site` block in the overlay is refused, because baking would ship the shell's demo site under the customer's brand.
|
|
242
|
+
The block is validated with the shell's own rules before it is written. Only a site shell ever receives it: the analysis leaves it out for any other `--shell`, and the merge drops it for a shell whose committed contract has no `site`. `--apply --shell brandy` without a `site` block in the overlay is refused, because baking would ship the shell's demo site under the customer's brand. The one other `site` block is the `--site-pages` one below.
|
|
243
|
+
|
|
244
|
+
### Pages with no native screen: `--site-pages`
|
|
245
|
+
|
|
246
|
+
Branded Lite renders the site with its own screens, so by default `--apply` adds no website page. `--site-pages` is the opt-in for the site's pages that have no native screen: each one opens the website, as a website page in the drawer.
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
himi site analyze --url https://… --client-id <id> # book.md → ## Site pages shows the plan
|
|
250
|
+
himi site analyze --url https://… --client-id <id> --apply --site-pages --dry-run # mode: "dry", writes nothing into the app
|
|
251
|
+
himi site analyze --url https://… --client-id <id> --apply --site-pages
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
Which pages: the site's menu in its own order (the published page list when no menu was crawled), with Home, flow pages (thank-you, checkout, item templates) and members pages left out. A page becomes a website page when no native screen covers it:
|
|
255
|
+
|
|
256
|
+
- **Native:** a vertical's page whose vertical the site runs and the app has a screen for (Book Online with Wix Bookings, a Wix Blog). Also an FAQ page when the app has FAQ pairs, a gallery page when it has the gallery photos, and a contact page when it has the business contact.
|
|
257
|
+
- **Website page:** About, Our Story and other custom pages; a news page on a site without Wix Blog; a shop or booking page whose vertical the site does not run; a vertical page whose screen this app does not ship (a trimmed package).
|
|
258
|
+
- **Cap:** at most 10 website pages, in menu order. The rest are listed as left out.
|
|
259
|
+
|
|
260
|
+
Where they go: one drawer section, **From our website**, after the main rows (Home, the core verticals, Profile, Contact) and before the folders. Each page is a row labelled with the site's own title, opening a `site_<id>` site screen (the same Tier-3 screen a site shell serves). The section starts expanded with four rows or fewer and folded above that. The tab bar does not change, and the app declares no `navigation.site`, so site links keep today's routing: a product or booking link still opens its native screen. A link inside a website page stays in that page's WebView.
|
|
261
|
+
|
|
262
|
+
What it writes:
|
|
263
|
+
|
|
264
|
+
- **In the repo:** the drawer-only `site` block goes into the merged contract, and the Branded Lite shell builds the section and the screens from it. A later plain `--apply` for the same site keeps those pages (for another site it drops them).
|
|
265
|
+
- **Off-repo** (a package from `himi init --template branded-lite`): the `site_*` screens are written into `dev/index.ts` (with their linkable rows and view names), and the section is spliced into `config.ts`'s `navigation.drawer.items`. The package's `provisioning.json` records the block. These ids belong to `--site-pages`: `site_*` screens, `drawer_site_*` rows and `drawer_sec_website`. A re-apply removes the ones the site no longer lists and rewrites the rest, so applying twice changes nothing, and a hand edit to one of them is overwritten. If `config.ts` or `dev/index.ts` is not in the plain-JSON shape `himi init` writes, nothing is added and the note says why.
|
|
266
|
+
|
|
267
|
+
`apply.sitePages` reports `{ site, native, skipped }` (and, off-repo, `screens: { added, replaced, removed, rows }`), and the note's first line after any warnings counts them. `--dry-run` needs `--apply --site-pages`: it returns `mode: "dry"`, `wouldWrite` and the same `sitePages`, and writes nothing into the app (the business book is still written). `--site-pages` works only with Branded Lite (`--shell branded-lite`, the default); other shells are refused with `site_pages_shell_unsupported` ([himi-json-output.md](himi-json-output.md)). A plain `--apply` never adds, removes or changes a website page; only `--site-pages` does.
|
|
243
268
|
|
|
244
269
|
When the analysis recognized at least one vertical, `--apply` also patches the shell's baked home
|
|
245
270
|
(`dev/index.ts`) to what the site actually runs. The Explore grid keeps only the site's
|
|
@@ -153,6 +153,7 @@ for **behavior** is the website; design authority for **layout** is
|
|
|
153
153
|
| Duplicate slug encodings | Dedupe |
|
|
154
154
|
| Website mega-nav | 2–4 `bottomTabs` for primary jobs; overflow to a menu — unless `book.mobileApp` is a Branded app, whose tab count and order win |
|
|
155
155
|
| Section names, tab labels, CTA text, empty states | `book.copy` — the site's own words, never a generic default |
|
|
156
|
+
| A page no native screen covers (About, a custom page, a vertical the app has no screen for) | Write a native screen for it when it is a real job. If the operator opts in, `himi site analyze --apply --site-pages` adds it as a website page instead, in the drawer section "From our website" (`book.md` → `## Site pages` lists them). That is a labelled fallback, never the default, and each one is a candidate to replace with a native screen later |
|
|
156
157
|
|
|
157
158
|
v1 cap: **home + each installed vertical that has visitor content + every published
|
|
158
159
|
custom form/content page that is not 404.** Do not clone every Thunderbolt URL.
|
|
@@ -279,7 +280,7 @@ state), and pass `himi test`. Then run
|
|
|
279
280
|
- Never invoke Velo HTTP functions **from analyze** (or as a substitute for rewriting Velo *pages*). To create/update/publish the site's HTTP API use `himi site function` (`himi docs wix-site-http-functions`).
|
|
280
281
|
- Never log contact PII; never paste `secrets-backend`.
|
|
281
282
|
- Never invent CMS schemas when the book’s CMS chapter is empty but the site has forms.
|
|
282
|
-
- Never pixel-clone the website; never wrap it in a WebView (the WebView product is the separate site shell, `--shell brandy` — not this guide's output).
|
|
283
|
+
- Never pixel-clone the website; never wrap it in a WebView (the WebView product is the separate site shell, `--shell brandy` — not this guide's output). The one exception is opt-in: `--apply --site-pages` adds the site's pages that have **no native screen** as website pages in one drawer section, and only when the operator passes the flag. Never use it for a page a native screen covers, and say in the screen plan which pages it added.
|
|
283
284
|
- Never edit the Himalaya monorepo’s committed `apps/himi-branded-lite/provisioning.json`.
|
|
284
285
|
|
|
285
286
|
## See also
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1703.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": "
|
|
84
|
+
"falconPackageHash": "39a1d104d115c6aaa6ab54edc64d49be9390721bc2238b3f30a313a9"
|
|
85
85
|
}
|