@wix/himalaya-cli 0.1718.0 → 0.1719.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 +15283 -14625
- package/guides/capabilities.md +4 -2
- package/guides/himi-json-output.md +5 -3
- package/guides/webview-page-sdk.md +7 -3
- package/guides/wix-business-context.md +3 -1
- package/package.json +2 -2
package/guides/capabilities.md
CHANGED
|
@@ -279,13 +279,15 @@ prompt.
|
|
|
279
279
|
| `system_intents` | the shell has to wire the system-intents host (app identity, deep-link routing, refresh) |
|
|
280
280
|
| `release_control` | the shell's boot has to configure it with the app id whose releases it switches |
|
|
281
281
|
| `legacy_import` | the shell's boot has to run the legacy importer before auth and feed it the signed-in principal |
|
|
282
|
-
| `base44` | the shell's boot has to bind the Base44 app it talks to; the module links, the binding is the shell's |
|
|
283
282
|
| `godot` | needs the shell's game surface view and, on Android, the shell's pick of the engine's C++ runtime |
|
|
284
283
|
|
|
285
284
|
An id with no handler on both iOS and Android is refused the same way. Everything else with a
|
|
286
285
|
native module is addable — `health` (the build links HealthKit and Health Connect, and
|
|
287
286
|
`permissionCopy.health` is the iOS purpose string and the Health Connect rationale), `iap`,
|
|
288
|
-
`calls` (the WebRTC engine), `animation`, `media_playback`
|
|
287
|
+
`calls` (the WebRTC engine), `animation`, `media_playback`, `base44` (the build links the Base44
|
|
288
|
+
backend and bakes the Base44 app your contract binds — its `base44.appId` beside a `site` of kind
|
|
289
|
+
`base44` — so the site's own `/login` opens the native Account screen; a release that declares
|
|
290
|
+
`base44` without that binding is refused at the build) and the rest. A shell that does not
|
|
289
291
|
carry a capability's usage string can crash the app at the permission prompt, which is why both
|
|
290
292
|
the build and `himi validate` check before you ship.
|
|
291
293
|
|
|
@@ -403,12 +403,14 @@ An invalid manifest fails with `manifest_invalid`, like the other `store iap` co
|
|
|
403
403
|
|
|
404
404
|
`--site-pages` (opt-in website pages beside a native app) and its `--dry-run`
|
|
405
405
|
refuse an unusable combination before any network work, on stderr with `ok: false`, `code`,
|
|
406
|
-
`error` and `usage`. Exit 2.
|
|
407
|
-
|
|
406
|
+
`error` and `usage`. Exit 2. `--apply` onto a site shell with no `site` block in the overlay
|
|
407
|
+
refuses after the analysis, on stderr with `ok: false`, `code` and `error`, exit 2. This is not
|
|
408
|
+
a migration of `himi site analyze`: its other failures keep their legacy envelopes.
|
|
408
409
|
|
|
409
410
|
| Code | Meaning |
|
|
410
411
|
|---|---|
|
|
411
|
-
| `site_pages_shell_unsupported` | `--site-pages` names a shell that hosts no website pages beside native screens. Only `--shell branded-lite` (the default)
|
|
412
|
+
| `site_pages_shell_unsupported` | `--site-pages` names a shell that hosts no website pages beside native screens, or a target that is a site shell. Only `--shell branded-lite` (the default) hosts them; a site shell (`brandy`, or any target whose contract has a `site` block, such as a website-template package) is all website pages already. Nothing was read or written. |
|
|
413
|
+
| `site_shell_needs_site` | `--apply` targets a site shell (the contract it writes has a `site` block: a shell such as `brandy` in the repo, or a content package whose provisioning.json names its website), and the overlay has no `site` block, usually because the page map could not be derived. Applying it would keep the previous website. Re-run `himi site analyze` to derive the page map, or write `site` into `provisioning.overlay.json` by hand. The app was not changed (the business book was still written). |
|
|
412
414
|
| `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. |
|
|
413
415
|
|
|
414
416
|
## `himi store iap connect` codes
|
|
@@ -238,9 +238,13 @@ and allowlists every method a page can call on them (the methods each `web-sdk/<
|
|
|
238
238
|
}
|
|
239
239
|
```
|
|
240
240
|
|
|
241
|
-
The
|
|
242
|
-
`
|
|
243
|
-
|
|
241
|
+
The content build writes and builds it, on any shell: when the app's `provisioning.json`
|
|
242
|
+
declares `webSdk`, `himi build` (and so `himi push`, `himi pack` and `himi validate`) writes
|
|
243
|
+
the companion's source to `tier5-src/himi-webview-page-<hash>/` and compiles it with your other
|
|
244
|
+
workers. The name is reserved, so do not edit that folder; it is rewritten from `webSdk` on
|
|
245
|
+
every build. (Inside the Himi repository Brandy's customer build does the same:
|
|
246
|
+
`npm run prepare:customer -w @apps/himi-brandy`, or `npm run web-sdk:companion -w @apps/himi-brandy`
|
|
247
|
+
for a local preview.) To expose
|
|
244
248
|
fewer methods, write your own companion and name it in `bundle` — a named bundle is used as is.
|
|
245
249
|
|
|
246
250
|
Brandy accepts capabilities `himi dist` can add to an extensible shell. Capabilities requiring
|
|
@@ -227,6 +227,8 @@ himi site analyze --url https://owner.wixsite.com/site --shell brandy --apply
|
|
|
227
227
|
|
|
228
228
|
No `--client-id` is needed here: a site shell is visitor-only, its pages are the site itself, and its contract binds no Headless client. For an off-repo brandy app (`himi init --template brandy`), run the `--apply` inside the app folder: it writes the derived `site` block into the package's own `provisioning.json`, which the template's `config.ts` builds every tab and screen from.
|
|
229
229
|
|
|
230
|
+
What makes a target a site shell is its contract, not the shell's name: the analysis derives the page map whenever the contract `--apply` writes has a `site` block. In the repo that is the shell's committed `apps/<shell>/provisioning.json` (Brandy's has one, Branded Lite's does not); off-repo it is the content package's own `provisioning.json`, so a website template on the Branded Lite shell is a site shell with no `--shell` at all. A Branded Lite target without a `site` block stays a native app, `--site-pages` included. The drawer-only block `--site-pages` writes does not make a target a site shell.
|
|
231
|
+
|
|
230
232
|
The map comes from what the analysis already reads without owner credentials, because Wix has no public menu API: the published page list (`look.sitePages`), the header menu the crawl saw (`look.navLinks`, label and href), and each page's role.
|
|
231
233
|
|
|
232
234
|
- **Order and labels** follow the site's own menu. Links to other hosts, and repeat links to the same page, are dropped.
|
|
@@ -239,7 +241,7 @@ The map comes from what the analysis already reads without owner credentials, be
|
|
|
239
241
|
|
|
240
242
|
Each page becomes one screen that carries two forms (`siteScreens(site)` in `@wix/himalaya/core`). The first is a Tier-3 WebView screen, which every app binary renders. The second, in the screen's `payload`, is an SDUI screen whose root is the page as a primary `WebView` node, and a binary that supports site-page nodes draws that one instead. Both are in one descriptor because the server cannot tell which binary is asking for a screen. Older binaries ignore `payload`, so nothing changes for them. `siteScreens(site, { form: "t3" })` and `{ form: "node" }` serve one form only. `sitePage(site, { path })` (`@wix/himalaya/sdui`) puts one page on a screen beside native UI. See [Designing Himi screens → a website page with native UI around it](designing-himi-screens.md#4-layout-idioms-recipes-that-read-well).
|
|
241
243
|
|
|
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
|
|
244
|
+
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 target, and the merge drops it for a shell whose committed contract has no `site`. `--apply` onto a site shell without a `site` block in the overlay is refused (`site_shell_needs_site`), because it would keep the previous website: in the repo, `--shell brandy` would ship the shell's demo site under the customer's brand; off-repo, the package would keep its last site. The one other `site` block is the `--site-pages` one below.
|
|
243
245
|
|
|
244
246
|
### Pages with no native screen: `--site-pages`
|
|
245
247
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1719.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": "3f4ed38b62b366662108e3bf98fcc58638bb6134303200cb773666cb"
|
|
85
85
|
}
|