@wix/himalaya-cli 0.2020.0 → 0.2022.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
@@ -3964,6 +3964,7 @@ var init_himi_package = __esm({
3964
3964
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
3965
3965
  var init_icon_catalog_generated = __esm({
3966
3966
  "../../core/ts/src/icon-catalog.generated.ts"() {
3967
+ "use strict";
3967
3968
  init_define_HHP_CATALOG();
3968
3969
  ICON_VIEW_BOX = 24;
3969
3970
  ICON_STROKE_WIDTH = 2;
@@ -8482,6 +8483,7 @@ __export(dist_jobs_exports, {
8482
8483
  DEFAULT_DIST_SIGNING: () => DEFAULT_DIST_SIGNING,
8483
8484
  DEFAULT_GIT_URL: () => DEFAULT_GIT_URL,
8484
8485
  DEFAULT_IOS_FORMAT: () => DEFAULT_IOS_FORMAT,
8486
+ DESKTOP_DIST_PLATFORMS: () => DESKTOP_DIST_PLATFORMS,
8485
8487
  DIST_ERROR_CODES: () => DIST_ERROR_CODES,
8486
8488
  DIST_PACKAGE_NAME: () => DIST_PACKAGE_NAME,
8487
8489
  DIST_PARAMS_FLAG: () => DIST_PARAMS_FLAG,
@@ -8511,6 +8513,8 @@ __export(dist_jobs_exports, {
8511
8513
  hasJobServiceEnded: () => hasJobServiceEnded,
8512
8514
  iosFormatSkewFailed: () => iosFormatSkewFailed,
8513
8515
  isBorrowableIosId: () => isBorrowableIosId,
8516
+ isDesktopDistPlatform: () => isDesktopDistPlatform,
8517
+ isDownloadOnlyPlatform: () => isDownloadOnlyPlatform,
8514
8518
  isSuccess: () => isSuccess,
8515
8519
  isTerminal: () => isTerminal,
8516
8520
  isTerminalTestflightStatus: () => isTerminalTestflightStatus,
@@ -8525,6 +8529,12 @@ __export(dist_jobs_exports, {
8525
8529
  resolveIosFormat: () => resolveIosFormat,
8526
8530
  testflightStatusRank: () => testflightStatusRank
8527
8531
  });
8532
+ function isDesktopDistPlatform(platform) {
8533
+ return DESKTOP_DIST_PLATFORMS.includes(platform);
8534
+ }
8535
+ function isDownloadOnlyPlatform(platform) {
8536
+ return platform === "macos" || isDesktopDistPlatform(platform);
8537
+ }
8528
8538
  function isTerminal(status2) {
8529
8539
  return !!status2 && !IN_FLIGHT.has(status2);
8530
8540
  }
@@ -8884,11 +8894,12 @@ function withoutCallbackToken(params) {
8884
8894
  const { HIMI_DIST_CALLBACK_TOKEN: _printedByThePool, ...printable2 } = params;
8885
8895
  return printable2;
8886
8896
  }
8887
- var DIST_ERROR_CODES, APPLE_ERROR_CODES_MAX, IN_FLIGHT, JOB_SERVICE_ENDED, SCOPE_CREATE, SCOPE_READ, SCOPE_CANCEL, DEFAULT_BASE_URL, DEFAULT_OAUTH_URL, TOKEN_TTL_MS, JobServiceError, JobServiceBroker, CUSTOMER_UPLOAD_LEASE_MS, CUSTOMER_UPLOAD_RETRY_DELAYS_MS, CUSTOMER_UPLOAD_MAX_ATTEMPTS, CUSTOMER_UPLOAD_ABANDONED, MAX_MEASURABLE_IDENTITY_WINDOW, SITE_SHELL_SERVED_CAPABILITIES, DIST_SHELLS, DEFAULT_DIST_SHELL, DEFAULT_BORROWABLE_IOS_IDS, BUNDLE_ID_RE, DEFAULT_DIST_SIGNING, WIX_MANAGED_SIGNING_ALIASES, DEFAULT_ANDROID_SIGNING, ANDROID_SIGNING_POLICIES, ANDROID_SIGNING_ALIASES, DEFAULT_ANDROID_FORMAT, ANDROID_FORMATS, ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, DEFAULT_ANDROID_BUILD_TYPE, ANDROID_BUILD_TYPES, ANDROID_BUILD_TYPE_NOT_BUILT, DEFAULT_IOS_FORMAT, IOS_FORMATS, IOS_FORMAT_NOT_BUILT, IOS_FORMAT_NOT_REQUESTED, DEFAULT_GIT_URL, DIST_PACKAGE_NAME, DIST_PARAMS_FLAG, MAX_COMMAND_CHARS;
8897
+ var DESKTOP_DIST_PLATFORMS, DIST_ERROR_CODES, APPLE_ERROR_CODES_MAX, IN_FLIGHT, JOB_SERVICE_ENDED, SCOPE_CREATE, SCOPE_READ, SCOPE_CANCEL, DEFAULT_BASE_URL, DEFAULT_OAUTH_URL, TOKEN_TTL_MS, JobServiceError, JobServiceBroker, CUSTOMER_UPLOAD_LEASE_MS, CUSTOMER_UPLOAD_RETRY_DELAYS_MS, CUSTOMER_UPLOAD_MAX_ATTEMPTS, CUSTOMER_UPLOAD_ABANDONED, MAX_MEASURABLE_IDENTITY_WINDOW, SITE_SHELL_SERVED_CAPABILITIES, DIST_SHELLS, DEFAULT_DIST_SHELL, DEFAULT_BORROWABLE_IOS_IDS, BUNDLE_ID_RE, DEFAULT_DIST_SIGNING, WIX_MANAGED_SIGNING_ALIASES, DEFAULT_ANDROID_SIGNING, ANDROID_SIGNING_POLICIES, ANDROID_SIGNING_ALIASES, DEFAULT_ANDROID_FORMAT, ANDROID_FORMATS, ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, DEFAULT_ANDROID_BUILD_TYPE, ANDROID_BUILD_TYPES, ANDROID_BUILD_TYPE_NOT_BUILT, DEFAULT_IOS_FORMAT, IOS_FORMATS, IOS_FORMAT_NOT_BUILT, IOS_FORMAT_NOT_REQUESTED, DEFAULT_GIT_URL, DIST_PACKAGE_NAME, DIST_PARAMS_FLAG, MAX_COMMAND_CHARS;
8888
8898
  var init_dist_jobs = __esm({
8889
8899
  "../../core/serve-control/src/dist-jobs.ts"() {
8890
8900
  init_define_HHP_CATALOG();
8891
8901
  init_dist_release_contract();
8902
+ DESKTOP_DIST_PLATFORMS = ["macos-desktop", "windows-desktop", "linux-desktop"];
8892
8903
  DIST_ERROR_CODES = [
8893
8904
  "customer_agent_keychain_unavailable",
8894
8905
  "customer_app_store_ipa_unreadable",
@@ -169800,7 +169811,8 @@ var init_cli_help = __esm({
169800
169811
  Cannot ADD a screen (screens are git-only, RFC 0012), and
169801
169812
  carries no attestation, source archive, assets, icon or
169802
169813
  minBinaryVersion \u2014 all named in the output.
169803
- himi dist [--app <a>] [--platform ios,android,macos] [--release <id>] [--allow-draft] [--target <t>]
169814
+ himi dist [--app <a>] [--platform ios,android,macos,macos-desktop,windows-desktop,linux-desktop]
169815
+ [--release <id>] [--allow-draft] [--target <t>]
169804
169816
  [--shell branded-lite|owner-lite|brandy|base44|game|player|demo-app] [--signing wix-managed|byo]
169805
169817
  [--android-signing qa-keystore|wix-keystore|debug|owner] [--aab]
169806
169818
  [--package-name <id> --google-services <file>] [--min-version-code <n>]
@@ -170364,7 +170376,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
170364
170376
  { 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)" },
170365
170377
  { 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)" },
170366
170378
  { 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)" },
170367
- { 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` builds a site-shell app (the customer's own website as native-framed tabs) on the branded-lite binary under Brandy's bundle ids, so an installed Brandy app updates in place \u2014 it needs a release that serves its own site block (`release_site_missing` otherwise); `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. `--platform macos` builds the shell's native Mac app (branded-lite, owner-lite, demo-app; any other shell, player and game included for now, is refused `macos_shell_unsupported`): a zip with one `.app`, signed ad hoc and not yet notarized, so the first launch is Control-click \u2192 Open; it is a download link, never a phone QR, and it can't be customer-signed. `--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,macos] [--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>]" },
170379
+ { 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` builds a site-shell app (the customer's own website as native-framed tabs) on the branded-lite binary under Brandy's bundle ids, so an installed Brandy app updates in place \u2014 it needs a release that serves its own site block (`release_site_missing` otherwise); `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. `--platform macos` builds the shell's native Mac app (branded-lite, owner-lite, demo-app; any other shell, player and game included for now, is refused `macos_shell_unsupported`): a zip with one `.app`, signed ad hoc and not yet notarized, so the first launch is Control-click \u2192 Open; it is a download link, never a phone QR, and it can't be customer-signed. `--platform macos-desktop`, `windows-desktop` and `linux-desktop` build Himi Desktop installers (a `.dmg` for Apple silicon, an NSIS `.exe`, an AppImage) with the release baked in, from any shell; each is an unsigned download link, never a phone QR, and needs a published release. `--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,macos,macos-desktop,windows-desktop,linux-desktop] [--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>]" },
170368
170380
  { 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]" },
170369
170381
  { 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. `app set --link-only` links and holds the site with no package, for an owner-signed app whose Play package is your own. 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. `record show|refresh|sync|pull` reads the app's store record on this computer (~/.himi/store, or HIMI_STORE_HOME / --record-dir): what each store showed when last read, what was last sent and what is drafted, with ages and drift; `refresh --platform android [--part status|tracks|listing|app-content|account|policy|all]` reads Google again into it; `sync` exchanges it with the copy Wix keeps for the app and `pull` only fetches it, for a new computer, with your himi login: the site's owner writes it, and so does the Wix person helping with the app while the owner lets Wix submit it (`wix-submit start`), while a `--read-only` consent only lets them pull; after a job verifies, the record is pushed on its own (a failure is a warning; HIMI_STORE_RECORD_SYNC=off turns it off). `handoff` uploads the app's asc-node records (allowlisted ids, statuses and outcomes; never keys, cookies or passwords) so Wix can take the submission over, `--out`/`--dry-run` keep it local. `wix-submit start [--platform ios|android] [--read-only] [--yes]` lets Wix submit the app for you: after your yes it records your consent for 90 days (read and submit; on Android also Wix-signed builds and Play Console work; `--read-only` is read alone), sends the handoff, and on Android adds the Wix person helping with your app to YOUR Google Play account for 90 days, showing their name and email first, after a typed yes at a terminal (`--yes` answers the consent only; with no one named yet, Wix contacts you and you run start again); `wix-submit stop` withdraws the consent and removes everyone Wix added to your Google Play account for the app (non-zero while anyone may remain); `wix-submit status` shows the consent (scopes, recorded, expires), who is helping and whether they are on your Play account. All are site-owner only (`himi store wix-submit --help`). `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> | --link-only) | 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>] | record show [--dir <app>] [--platform android|ios] [--part <part>] [--record-dir <dir>] | record refresh [--dir <app>] [--platform android] [--part <part>] | record sync|pull [--dir <app>] [--app <id> --site <msid>] [--record-dir <dir>] | handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>] [--out <file> | --dry-run] | wix-submit start [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--read-only] [--yes] [--developer <id>] [--android-package himi.<name>] | wix-submit stop [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--yes] [--developer <id>] | wix-submit status [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--developer <id>] | google create-app --name <app name> [--app <id> --site <msid>] [--developer <id>] [--android-package himi.<name>] | google testers pool-add|pool-remove|pool-check [--dir <app>] [--track himi-pool] | google testers consent grant|revoke|status [--dir <app>] | 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]" },
170370
170382
  { name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
@@ -291044,7 +291056,7 @@ function scannableUrl(rec) {
291044
291056
  if (isAppStoreBuild(rec)) return void 0;
291045
291057
  if (rec.platform === "android" && rec.androidFormat === "aab") return a3.apk?.downloadUrl;
291046
291058
  if (rec.platform === "ios" && rec.iosFormat === "simulator") return void 0;
291047
- if (rec.platform === "macos") return void 0;
291059
+ if (isDownloadOnlyPlatform(rec.platform)) return void 0;
291048
291060
  return rec.platform === "ios" ? a3.installPageUrl ?? a3.downloadUrl : a3.downloadUrl ?? a3.installPageUrl;
291049
291061
  }
291050
291062
  function isInternalOnlyBuild(r3) {
@@ -291100,6 +291112,7 @@ var init_dist_links = __esm({
291100
291112
  "../../core/serve-control/src/dist-links.ts"() {
291101
291113
  init_define_HHP_CATALOG();
291102
291114
  init_app_link();
291115
+ init_dist_jobs();
291103
291116
  }
291104
291117
  });
291105
291118
 
@@ -291120,6 +291133,9 @@ var init_captcha_bindable = __esm({
291120
291133
  // src/commands/dist.ts
291121
291134
  import { existsSync as existsSync156, readFileSync as readFileSync185 } from "node:fs";
291122
291135
  import { join as join195 } from "node:path";
291136
+ function isDesktopPlatform(platform) {
291137
+ return platform === "macos-desktop" || platform === "windows-desktop" || platform === "linux-desktop";
291138
+ }
291123
291139
  function isCiEnvironment(env = process.env) {
291124
291140
  const ci2 = env.CI?.trim().toLowerCase();
291125
291141
  return env.GITHUB_ACTIONS === "true" || Boolean(env.BUILDKITE) || Boolean(ci2 && ci2 !== "0" && ci2 !== "false");
@@ -291242,6 +291258,11 @@ ${label4}`);
291242
291258
  io2.log(" QR omitted (a Mac app is downloaded on a Mac; its link is above)");
291243
291259
  return;
291244
291260
  }
291261
+ if (isDesktopPlatform(job.platform)) {
291262
+ io2.log(` ${String(job.platform)} installer`);
291263
+ io2.log(" QR omitted (a desktop installer is downloaded on a computer; its link is above)");
291264
+ return;
291265
+ }
291245
291266
  const { isAppStoreBuild: isAppStoreBuild2 } = await Promise.resolve().then(() => (init_dist_links(), dist_links_exports));
291246
291267
  if (isAppStoreBuild2(job)) {
291247
291268
  io2.log(` ${String(job.platform)} App Store build`);
@@ -291387,7 +291408,7 @@ ${label4}`);
291387
291408
  if (!flags.json) {
291388
291409
  io2.log(` app ${rec.app} \xB7 ${rec.platform} \xB7 shell ${rec.shell ?? "?"} \xB7 ${String(rec.gitCommitSha ?? "").slice(0, 12)}`);
291389
291410
  io2.log(
291390
- rec.platform === "macos" ? " signing: ad hoc (not notarized: Control-click \u2192 Open on first launch)" : rec.platform !== "ios" ? " signing: n/a (android signs with its own keystore)" : rec.signing === "byo" ? " signing: CUSTOMER \u2014 pinned personal team and ad-hoc profile; registered devices only" : minted ? " signing: MINTED \u2014 the job fetches its own identity; it will build under the app's own bundle id" : borrowed ? ` signing: BORROWED ${borrowed} \u2014 the binary carries another app's identifier and REPLACES it on the device` : " signing: none dispatched \u2014 the pool must find a profile itself, which fails when it has none.\n Minting is ON by default, so this means the serve plane either has HIMI_DIST_APPLE_SIGNING set to 0/false/off/no, or predates the minting route."
291411
+ rec.platform === "macos" ? " signing: ad hoc (not notarized: Control-click \u2192 Open on first launch)" : isDesktopPlatform(rec.platform) ? " signing: none (an unsigned Himi Desktop installer: the OS warns on first launch)" : rec.platform !== "ios" ? " signing: n/a (android signs with its own keystore)" : rec.signing === "byo" ? " signing: CUSTOMER \u2014 pinned personal team and ad-hoc profile; registered devices only" : minted ? " signing: MINTED \u2014 the job fetches its own identity; it will build under the app's own bundle id" : borrowed ? ` signing: BORROWED ${borrowed} \u2014 the binary carries another app's identifier and REPLACES it on the device` : " signing: none dispatched \u2014 the pool must find a profile itself, which fails when it has none.\n Minting is ON by default, so this means the serve plane either has HIMI_DIST_APPLE_SIGNING set to 0/false/off/no, or predates the minting route."
291391
291412
  );
291392
291413
  if (rec.adoptedStoreId) {
291393
291414
  io2.log(` store identity: ADOPTED ${rec.adoptedStoreId}${rec.adoptedAppleTeamId ? ` (team ${rec.adoptedAppleTeamId})` : ""} \u2014 installs over the live store app`);
@@ -291479,7 +291500,7 @@ ${label4}`);
291479
291500
  const captchaSiteId = str3(flags.site) ?? (await appId(contentDir(flags)) === app2 ? captchaContentInput2(contentDir(flags)).siteId : void 0);
291480
291501
  const { captchaBindable: captchaBindable2 } = await Promise.resolve().then(() => (init_captcha_bindable(), captcha_bindable_exports));
291481
291502
  const { DEFAULT_DIST_SHELL: DEFAULT_DIST_SHELL2 } = await Promise.resolve().then(() => (init_dist_jobs(), dist_jobs_exports));
291482
- const captchaPlatforms = (platform?.length ? platform : str3(flags.destination) === "testflight" ? ["ios"] : ["android"]).filter((p2) => p2 !== "macos");
291503
+ const captchaPlatforms = (platform?.length ? platform : str3(flags.destination) === "testflight" ? ["ios"] : ["android"]).filter((p2) => p2 !== "macos" && !isDesktopPlatform(p2));
291483
291504
  if (flags.force !== true && flags["skip-captcha-check"] !== true && captchaPlatforms.length > 0 && captchaBindable2(distShell ?? DEFAULT_DIST_SHELL2, false)) {
291484
291505
  const verdict = await captchaDistGate2({
291485
291506
  client: c2,
@@ -291712,7 +291733,7 @@ ${label4}`);
291712
291733
  const handoff = rec.customerAppStore;
291713
291734
  const play = rec.playInternal;
291714
291735
  const handoffText = typeof handoff?.status === "string" ? ` testflight ${handoff.status}${handoff.error ? ` (${handoff.error})` : ""}` : typeof play?.status === "string" ? ` play internal ${play.status}${play.versionCode ? ` (versionCode ${play.versionCode})` : ""}${play.errorCode ? ` (${play.errorCode})` : ""}` : "";
291715
- const verb = rec.platform === "macos" ? "download for Mac" : "install";
291736
+ const verb = rec.platform === "macos" ? "download for Mac" : isDesktopPlatform(rec.platform) ? "download installer" : "install";
291716
291737
  io2.log(` ${rec.platform} ${rec.status}${handoffText}${installUrl ? isAab ? ` .aab for Google Play (${rec.ownerBundle ? "UNSIGNED: sign it before uploading" : "not installable"}) \u2192 ${installUrl}` : ` ${verb} \u2192 ${installUrl}` : ""}`);
291717
291738
  if (isAab && artifact?.apk?.downloadUrl) io2.log(` ${rec.platform} install APK (same build, QA key) \u2192 ${artifact.apk.downloadUrl}`);
291718
291739
  if (artifact?.caveat) io2.log(` \u26A0 ${artifact.caveat}`);
@@ -1777,6 +1777,44 @@ himi dist --app <app> --platform ios,android,macos --wait --target bo # one ru
1777
1777
  `501 macos_builds_unconfigured` without `HIMI_DIST_GITHUB_TOKEN`), because an older pool commit has
1778
1778
  no `dist:macos` script at all.
1779
1779
 
1780
+ ### Himi Desktop installers — `--platform macos-desktop,windows-desktop,linux-desktop`
1781
+
1782
+ Three more platforms build **Himi Desktop**, the Electron shell, as an installer for a computer, with
1783
+ the release baked in. Himi Desktop draws nothing of its own: it shows the same web renderer the
1784
+ website does, so no native shell is built, and every shell can make one.
1785
+
1786
+ ```sh
1787
+ himi dist --app <app> --platform macos-desktop --release <id> --wait --target bo
1788
+ himi dist --app <app> --platform macos-desktop,windows-desktop,linux-desktop --wait --target bo
1789
+ ```
1790
+
1791
+ | Platform | You get | First launch |
1792
+ |---|---|---|
1793
+ | `macos-desktop` | a `.dmg` for Apple silicon | not notarized: drag to Applications, then **Control-click → Open** |
1794
+ | `windows-desktop` | an NSIS `.exe` (x64) | unsigned: SmartScreen warns, **More info → Run anyway** |
1795
+ | `linux-desktop` | an `.AppImage` (x64) | `chmod +x`, then run it |
1796
+
1797
+ - **What is inside.** The pinned release, read the same way as every other build's seed
1798
+ (and checked the same way), packed as a snapshot `.himi` and baked into the installer. It opens that
1799
+ release offline, under the release's display name and a per-app id
1800
+ (`com.wix.himi.desktop.<app>`), so two apps' installers live side by side. The release's icon is
1801
+ used when it is a square PNG of at least 512×512; otherwise the installer keeps the default icon
1802
+ and the job's `caveat` says so.
1803
+ - **What you get back:** the installer as `artifact.downloadUrl` (presigned, 7 days), with
1804
+ `artifact.sha256`, `artifact.bytes`, `artifact.expiresAt` and a `caveat` that says how to open it.
1805
+ No install link and no QR; the run's install page shows a card per installer, with a download
1806
+ button, only when the run built one.
1807
+ - **Unsigned.** None of the three is signed: no Developer ID or notarization on the Mac, no
1808
+ Authenticode on Windows (its `.exe` also keeps Electron's own icon and version info). Signing is a
1809
+ later step.
1810
+ - **Not yet run on real Windows or Linux machines.** The installers are built on a Mac (no Wine
1811
+ needed), and only the Mac one has been opened so far.
1812
+ - **Refusals.** It needs a concrete published release (`400 desktop_release_required`). `signing:
1813
+ "byo"` is `400 desktop_unsigned`. TestFlight, Play internal and store builds refuse the platforms
1814
+ already. A release whose commit cannot build one is `409 release_predates_desktop` (`desktop: 1`
1815
+ in its signing-protocol marker), `503 desktop_builds_unavailable`, or `501
1816
+ desktop_builds_unconfigured`.
1817
+
1780
1818
  ### The iOS lane lives in one shared place
1781
1819
 
1782
1820
  `fastlane dist` runs with `cwd = <app>/ios`, so it needs `<app>/ios/fastlane/Fastfile`. That file is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.2020.0",
3
+ "version": "0.2022.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": "58af06ecc61a854d31fec9e29d880e7b1f4f77f29810d589ac36dafd"
85
+ "falconPackageHash": "ef827e2d37bbb02315259cadee0656a7c6e6f04e4d258df9eede8cb3"
86
86
  }