@wix/himalaya-cli 0.1897.0 → 0.1898.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.
Binary file
@@ -304,7 +304,7 @@ binary carries neither the code nor the store-review footprint of a framework it
304
304
 
305
305
  | Module | Linked by |
306
306
  |---|---|
307
- | ads | `ads` (AdMob + UMP consent: `HimalayaCoreAds` / `:core-runtime-ads`, iOS + Android; see [ads.md](ads.md)) |
307
+ | ads | `ads` (AdMob + UMP consent, the `himi_ads.AdBanner` banner placed with `adBanner({ slot })`, the OTA `adsConfig` kill switch and ad-free entitlements: `HimalayaCoreAds` / `:core-runtime-ads`, iOS + Android; see [ads.md](ads.md)) |
308
308
  | animation | `animation` |
309
309
  | audio (iOS) | `audio_record`, `audio_record_background` |
310
310
  | barcode_detection | `barcode_detection` |
@@ -533,6 +533,13 @@ unknown reason. For example:
533
533
  could not go into the Mac's keychain, for example because another build of the same owner was
534
534
  running there.
535
535
 
536
+ - **`release_…`** (`release_wix_site_unpublished`, `release_wix_site_unverified`,
537
+ `release_site_invalid`, …) — serve refused the build's contract with a 422: the release itself must
538
+ change (publish the site, fix its binding, then make a new release), so building it again is
539
+ refused again. The build log prints the code and serve's message. A contract answer a retry may
540
+ change (a 503 such as `release_manifest_unavailable`) leads the error too, but is not kept as
541
+ `errorCode`.
542
+
536
543
  A Job Service retry of a failed customer job is refused its signing files, so it fails with
537
544
  `customer_signing_fetch_failed`; that leaves the first attempt's `errorCode` as it was.
538
545
 
@@ -1564,6 +1571,26 @@ himi dist --app <app> --platform android --aab --wait --target bo
1564
1571
  `store_build.settled` (MOBPUB-1253). The caller learns the job ended from Job Service's own
1565
1572
  `wix.mre.v1.Job` domain events and then reads the job. It is the only way a Containers app's store
1566
1573
  build starts: the same request with a control token is refused (above, MOBPUB-1246). MOBPUB-1241.
1574
+ - **The trusted caller also starts a Containers app's test builds, for its store screenshots.** With
1575
+ `testBuild: { metaSiteId }` in place of `storeBuild`, the same caller may `POST /v1/admin/dist` one
1576
+ platform: `platform: ["android"]` with `androidFormat: "apk"` (a QA-signed APK), or
1577
+ `platform: ["ios"]` with `iosFormat: "simulator"` (the unsigned simulator build below). It also
1578
+ sends `attemptId` (required), `buildOrigin` and, to pin one, `release`; without it the live release
1579
+ is built, and a draft is refused as for any build. Nothing else is accepted
1580
+ (`400 trusted_test_build_field_unexpected`: no destination, version, signing, keystore, build
1581
+ type, borrowed id, App name or icon, `allowDraft` or `storeBuild`), any other platform or format is
1582
+ `400 trusted_test_build_only`, a `testBuild` that isn't exactly `{ metaSiteId }` with a site id is
1583
+ `400 test_build_invalid`. The app must be bound to `metaSiteId` (`403 test_build_site_mismatch`,
1584
+ `503 test_builds_unavailable` when the binding can't be read). A test build is never a store build:
1585
+ no store id, no Apple certificates, no store bucket, no TestFlight, no record or report for the
1586
+ service. Every check of the plane's own runs, as for any self-serve build (release, shell,
1587
+ capabilities, the simulator runner marker, the per-app cap, `HIMI_DIST_SELFSERVE=0`), and test
1588
+ builds count per site in the self-serve tier on a budget of their own
1589
+ (`trusted:<app id>:site:<site>:test`), so screenshots can't use up the site's store-build budget
1590
+ (the per-app cap still counts every build of the app, test builds included). The job records
1591
+ `testBuild: { site, trustedCaller }`, and the caller reads, lists and cancels it like its store
1592
+ builds; its link is the job's `artifact` (`downloadUrl`, `sha256`, `expiresAt`). It is an
1593
+ internal-only build: never the app's install link, and left out of the owner's list. MOBPUB-1515.
1567
1594
  - **A store build ships under the owner's App name and icon.** Every store build above (a Containers
1568
1595
  app's `--aab` and its TestFlight build, and a linked app's `--aab`) needs `appName` and `appIconUrl`
1569
1596
  on `POST /v1/admin/dist` (`himi dist --app-name <name> --app-icon-url <url>`): for a Containers app,
@@ -1673,7 +1700,8 @@ returns it as a zip with exactly one `.app` at its root (MOBPUB-1500).
1673
1700
  `simulator`), `ios_format_requires_link` (any destination but `link`: TestFlight, Play internal),
1674
1701
  `ios_format_simulator_unsigned` (`signing: "byo"` or `borrowIosBundleId`: nothing signs it),
1675
1702
  `ios_format_requires_ios` (an Android-only request) and `ios_format_simulator_store_build` (any
1676
- store build, and the trusted caller, whose parser refuses the field anyway).
1703
+ store build, and the trusted caller's store builds, whose parser refuses the field anyway). The
1704
+ trusted caller asks for one with `testBuild` instead (below).
1677
1705
  - **How the pool builds it.** The command CI's own simulator test builds use (the ones LambdaTest runs):
1678
1706
  `xcodebuild build -sdk iphonesimulator -destination 'generic/platform=iOS Simulator'
1679
1707
  CODE_SIGNING_ALLOWED=NO`, in the dist configuration (`Release`), with `ONLY_ACTIVE_ARCH=NO`, so it
@@ -255,12 +255,13 @@ No `--client-id` is needed here: a site shell is visitor-only, its pages are the
255
255
 
256
256
  A site shell whose release also binds a Wix member client can carry the signed-in member into the website's pages: after a native sign-in, the app opens the site's own session endpoint with a fresh member session. On a Wix free host (`*.wixsite.com`, `*.wixstudio.com`, `*.wixstudio.io`, `*.editorx.io`) that endpoint is Wix's, under the site's own path, so nothing more is checked. On a custom domain it is whatever server the domain points at, so before a `himi dist` build bakes the binding, Himi asks Wix which site the release's client belongs to and requires the domain to be that site: the same host, or its apex / `www.` twin. Both the `site` block's `origin` and the binding's `siteUrl` are checked, and the `siteUrl` is checked even for a build that gets no `site` block. Wix's own answer is the authority here, never the site's HTML or a caller-supplied msid. A visitor-only release (no client) is not checked, because it carries no session.
257
257
 
258
- How a build is refused: the build's contract fetch (`GET /v1/dist/contract`) answers one of these, and the build fails on it. The build log shows only the HTTP status; the `error` code is in the response body:
258
+ How a build is refused: the build's contract fetch (`GET /v1/dist/contract`) answers one of these, and the build fails on it. The build log prints the `error` code and the response's `message`, and the build's error starts with the code, which the job keeps as its `errorCode`:
259
259
 
260
260
  | `error` | Meaning | Fix |
261
261
  |---|---|---|
262
262
  | `release_wix_site_mismatch` (422) | Wix serves the client's site on another domain than the release names. | Point `site.origin` and `wix.siteUrl` at the site's primary domain, or bind that site's own client. |
263
263
  | `release_wix_site_unverified` (422) | Wix answered but named no site for the client (an unknown client, or an unpublished site). | Publish the site, or check the client id. |
264
+ | `release_wix_site_unpublished` (422) | The release was made before the site was published, so its site URL is the editor's stand-in (`https://<msid>.unpublished.invalid`). Wix is not asked. | Publish the site, then make a new release. |
264
265
  | `wix_site_unreachable` (503) | Wix could not be asked. | Start the build again. |
265
266
 
266
267
  The shell's bake checks that proof again (`wix.siteVerified`) and stops with `wix_site_unverified` when a custom-domain site arrives without a matching one.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1897.0",
3
+ "version": "0.1898.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": "bad356420e79e6aadf9de621a778fd6791a2bb9f4dd2f6134c4f8d18"
85
+ "falconPackageHash": "d9c0f10ebfd3aff24bc309fe0e044e83ff4f455081600ad03f6c8602"
86
86
  }