@wix/himalaya-cli 0.1676.0 → 0.1678.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 +23 -12
- package/guides/himi-json-output.md +1 -1
- package/guides/releasing-with-himi-serve.md +13 -2
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -360,16 +360,19 @@ var init_client = __esm({
|
|
|
360
360
|
/** Publish a built release into the store (POST /v1/admin/release), with optional label/notes/gitSha.
|
|
361
361
|
* `draft: true` stores it fully servable (pinned reads) WITHOUT moving the live release. */
|
|
362
362
|
async publishRelease(payload, meta, draft = false) {
|
|
363
|
-
const
|
|
363
|
+
const body = publishReleaseBody(payload, meta, draft);
|
|
364
|
+
const { bytes: bytes2, gzip } = encodePublishBody(body);
|
|
364
365
|
const headers2 = { ...this.ctrlHeaders(), ...gzip ? { "content-encoding": "gzip" } : {} };
|
|
365
|
-
const
|
|
366
|
+
const app2 = body.app;
|
|
367
|
+
const path2 = typeof app2 === "string" && app2 ? `/v1/admin/release?app=${encodeURIComponent(app2)}` : "/v1/admin/release";
|
|
368
|
+
const res = await this.request("control", "POST", path2, { rawBody: bytes2, headers: headers2 });
|
|
366
369
|
const refusal2 = res.json;
|
|
367
370
|
const decodedOverPlainCap = res.status === 413 && refusal2?.error === "payload_too_large" && refusal2.limit === MAX_PUBLISH_BODY_BYTES && bytes2.byteLength <= MAX_PUBLISH_BODY_BYTES;
|
|
368
371
|
if (gzip && (res.status === 400 && refusal2?.error === "bad_json" || decodedOverPlainCap)) {
|
|
369
372
|
const json9 = {
|
|
370
373
|
code: "compressed_publish_unsupported",
|
|
371
374
|
error: "compressed_publish_unsupported",
|
|
372
|
-
hint: "this body is over the plain publish cap, and the plane did not accept it compressed:
|
|
375
|
+
hint: "this body is over the plain publish cap, and the plane did not accept it compressed: the plane predates compressed publish bodies, or (for a self-serve credential) predates checking the app before the body \u2014 either way it needs a serve deploy",
|
|
373
376
|
sentBytes: bytes2.byteLength,
|
|
374
377
|
...typeof refusal2?.bytes === "number" ? { planeCountedBytes: refusal2.bytes } : {}
|
|
375
378
|
};
|
|
@@ -31447,6 +31450,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
31447
31450
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
31448
31451
|
var init_idiom = __esm({
|
|
31449
31452
|
"../../core/ts/src/idiom.ts"() {
|
|
31453
|
+
"use strict";
|
|
31450
31454
|
init_define_HHP_CATALOG();
|
|
31451
31455
|
IDIOM_CONTEXTS = {
|
|
31452
31456
|
ios: { native: ["ios"] },
|
|
@@ -223950,7 +223954,7 @@ function normalizeRelopsScope(value2) {
|
|
|
223950
223954
|
if (typeof v2 !== "string" || !RELOPS_SCOPES.includes(v2)) return null;
|
|
223951
223955
|
set2.add(v2);
|
|
223952
223956
|
}
|
|
223953
|
-
if (
|
|
223957
|
+
if (!set2.has("read")) return null;
|
|
223954
223958
|
return RELOPS_SCOPES.filter((s2) => set2.has(s2));
|
|
223955
223959
|
}
|
|
223956
223960
|
function scrubSecretShapes(text22) {
|
|
@@ -224039,7 +224043,7 @@ function storeHandoffBundleProblem(value2) {
|
|
|
224039
224043
|
if (hasSecretShape(text22)) return { code: "bundle_contains_secret", detail: "the bundle carries a secret-shaped value" };
|
|
224040
224044
|
return null;
|
|
224041
224045
|
}
|
|
224042
|
-
var STORE_HANDOFF_SCHEMA, MAX_STORE_HANDOFF_BUNDLE_BYTES, MAX_HANDOFF_JOBS, MAX_HANDOFF_BATCHES, MAX_HANDOFF_AUDIT, RELOPS_SCOPES, SECRET_PATTERNS2, BASE64_RUN, looksLikeKeyMaterial, FORBIDDEN_BUNDLE_KEY, HANDOFF_PARAM_NAMES, MAX_HANDOFF_STRING, BUNDLE_ID_RE2, isObj4, STR, NUM, BOOL2, ACCOUNT, APPROVALS, BUNDLE_SHAPE;
|
|
224046
|
+
var STORE_HANDOFF_SCHEMA, MAX_STORE_HANDOFF_BUNDLE_BYTES, MAX_HANDOFF_JOBS, MAX_HANDOFF_BATCHES, MAX_HANDOFF_AUDIT, RELOPS_SCOPES, RELOPS_ANDROID_SCOPES, SECRET_PATTERNS2, BASE64_RUN, looksLikeKeyMaterial, FORBIDDEN_BUNDLE_KEY, HANDOFF_PARAM_NAMES, MAX_HANDOFF_STRING, BUNDLE_ID_RE2, isObj4, STR, NUM, BOOL2, ACCOUNT, APPROVALS, BUNDLE_SHAPE;
|
|
224043
224047
|
var init_store_handoff_bundle = __esm({
|
|
224044
224048
|
"../../core/serve-control/src/store-handoff-bundle.ts"() {
|
|
224045
224049
|
init_define_HHP_CATALOG();
|
|
@@ -224048,7 +224052,8 @@ var init_store_handoff_bundle = __esm({
|
|
|
224048
224052
|
MAX_HANDOFF_JOBS = 500;
|
|
224049
224053
|
MAX_HANDOFF_BATCHES = 200;
|
|
224050
224054
|
MAX_HANDOFF_AUDIT = 1e3;
|
|
224051
|
-
RELOPS_SCOPES = ["read", "submit"];
|
|
224055
|
+
RELOPS_SCOPES = ["read", "submit", "android-build", "play-console"];
|
|
224056
|
+
RELOPS_ANDROID_SCOPES = ["android-build", "play-console"];
|
|
224052
224057
|
SECRET_PATTERNS2 = [
|
|
224053
224058
|
/-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*?(?:-----END [A-Z ]*PRIVATE KEY-----|$)/g,
|
|
224054
224059
|
/-----BEGIN [A-Z ]*PRIVATE KEY-----/g,
|
|
@@ -224404,8 +224409,12 @@ async function runStoreHandoff(pos, flags, io2, deps = {}) {
|
|
|
224404
224409
|
if (!localOnly && (!app2 || !site)) {
|
|
224405
224410
|
throw new UsageError4(`name the Wix app and site: the "wix" block of store/app-store.json, or --app <id> --site <msid>`);
|
|
224406
224411
|
}
|
|
224407
|
-
const
|
|
224408
|
-
if (
|
|
224412
|
+
const platform = text15(flags.platform) ?? "ios";
|
|
224413
|
+
if (platform !== "ios" && platform !== "android") throw new UsageError4(`--platform is "ios" or "android"`);
|
|
224414
|
+
if (handoff && flags.platform !== void 0) throw new UsageError4("--platform is for `store relops request`");
|
|
224415
|
+
const asked = (text15(flags.scope) ?? "read").split(",").map((s2) => s2.trim()).filter(Boolean);
|
|
224416
|
+
const scope3 = handoff ? void 0 : normalizeRelopsScope(platform === "android" ? [...asked, ...RELOPS_ANDROID_SCOPES] : asked);
|
|
224417
|
+
if (!handoff && !scope3) throw new UsageError4(`--scope is "read" or "read,submit" (allowed: ${RELOPS_SCOPES.join(", ")}; every scope needs read)`);
|
|
224409
224418
|
const appleAppIds = (text15(flags["apple-app-id"]) ?? "").split(",").map((s2) => s2.trim()).filter(Boolean);
|
|
224410
224419
|
if (appleAppIds.some((id) => !/^[0-9]{6,20}$/.test(id))) throw new UsageError4("--apple-app-id is the App Store Connect app id (digits)");
|
|
224411
224420
|
if (!handoff && appleAppIds.length) throw new UsageError4("--apple-app-id is for `store handoff`");
|
|
@@ -224515,7 +224524,7 @@ var init_store_handoff = __esm({
|
|
|
224515
224524
|
init_define_HHP_CATALOG();
|
|
224516
224525
|
init_store_handoff_bundle();
|
|
224517
224526
|
init_store_host();
|
|
224518
|
-
STORE_HANDOFF_USAGE = "himi store handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>[,<id>]] [--out <file> | --dry-run] | himi store relops request [--dir <app>] [--app <id> --site <msid>] [--scope read|read,submit] [--yes]";
|
|
224527
|
+
STORE_HANDOFF_USAGE = "himi store handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>[,<id>]] [--out <file> | --dry-run] | himi store relops request [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--scope read|read,submit] [--yes]";
|
|
224519
224528
|
STORE_HANDOFF_PATH = "/v1/admin/site/store-handoff";
|
|
224520
224529
|
RELOPS_CONSENT_PATH = "/v1/admin/site/relops-consent";
|
|
224521
224530
|
STORE_HANDOFF_CODES = [
|
|
@@ -224546,7 +224555,9 @@ var init_store_handoff = __esm({
|
|
|
224546
224555
|
lc2 = (v2) => typeof v2 === "string" ? v2.trim().toLowerCase() : void 0;
|
|
224547
224556
|
SCOPE_WORDS = {
|
|
224548
224557
|
read: "read this app's App Store state (handoffs, App Store Connect status, App Review messages)",
|
|
224549
|
-
submit: "plan and apply App Store submission steps for it and answer App Review"
|
|
224558
|
+
submit: "plan and apply App Store submission steps for it and answer App Review",
|
|
224559
|
+
"android-build": "start Wix-signed Google Play builds of it",
|
|
224560
|
+
"play-console": "work on it in your Google Play Console, asking you for a yes on each agreement there (app declarations, content rating terms, production access, promotion to production, policy replies)"
|
|
224550
224561
|
};
|
|
224551
224562
|
}
|
|
224552
224563
|
});
|
|
@@ -250612,7 +250623,7 @@ var USAGE = `himi \u2014 the Himalaya authoring CLI (remote dev loop)
|
|
|
250612
250623
|
statuses and outcomes; keys, cookies, passwords, free text and
|
|
250613
250624
|
file paths stay behind), uploaded for the app's Wix site.
|
|
250614
250625
|
--out / --dry-run keep it local. Site owner only (himi login).
|
|
250615
|
-
himi store relops request [--dir <app>] [--app <id> --site <msid>] [--scope read|read,submit] [--yes]
|
|
250626
|
+
himi store relops request [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--scope read|read,submit] [--yes]
|
|
250616
250627
|
record your consent that Wix RelOps may act for the app:
|
|
250617
250628
|
read (default) or read,submit. Asks you to type the app id
|
|
250618
250629
|
at a terminal; --yes without one. Answers the consentId.
|
|
@@ -250956,7 +250967,7 @@ var COMMANDS = [
|
|
|
250956
250967
|
{ 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)" },
|
|
250957
250968
|
{ 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 | 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` is the site shell \u2014 the customer's own website as native-framed tabs. `--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. `--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] [--release <id>] [--allow-draft] [--target <t>] [--shell branded-lite|owner-lite|brandy|base44|player|demo-app] [--signing wix-managed|byo] [--site <id>] [--android-signing qa-keystore|wix-keystore|debug] [--aab] [--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>]" },
|
|
250958
250969
|
{ 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]" },
|
|
250959
|
-
{ 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. 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`). `handoff` uploads the app's asc-node records (allowlisted ids, statuses and outcomes; never keys, cookies or passwords) so Wix RelOps can take the submission over, `--out`/`--dry-run` keep it local; `relops request` records your consent that RelOps may act for the app (`--scope read` by default, or `read,submit`; you type the app id, or pass --yes). Both are site-owner only. 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> | 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>] | handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>] [--out <file> | --dry-run] | relops request [--dir <app>] [--app <id> --site <msid>] [--scope read|read,submit] [--yes] | 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]" },
|
|
250970
|
+
{ 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. 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`). `handoff` uploads the app's asc-node records (allowlisted ids, statuses and outcomes; never keys, cookies or passwords) so Wix RelOps can take the submission over, `--out`/`--dry-run` keep it local; `relops request` records your consent that RelOps may act for the app (`--scope read` by default, or `read,submit`; `--platform android` adds the Google Play scopes `android-build` and `play-console`; you type the app id, or pass --yes). Both are site-owner only. 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> | 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>] | handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>] [--out <file> | --dry-run] | relops request [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--scope read|read,submit] [--yes] | 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]" },
|
|
250960
250971
|
{ name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
|
|
250961
250972
|
{ name: "docs", summary: "print bundled/verified cached guides offline; status reports kit identity; refresh downloads compatible reference content independently of CLI without changing app source", required: "[<topic>|catalog [kind]|status|refresh] [--pin <version|digest>] [--unpin] [--no-network] [--json]" },
|
|
250962
250973
|
{ name: "components", summary: "print the SDUI component vocabulary + props; a name = that component (offline)", required: "[<Name>] [--json]" },
|
|
@@ -431,7 +431,7 @@ whole body gzip-encoded because it is over the plain 8 MB cap:
|
|
|
431
431
|
|
|
432
432
|
| Code | Meaning |
|
|
433
433
|
|---|---|
|
|
434
|
-
| `compressed_publish_unsupported` | The publish body went out gzipped and the publishing service did not accept it compressed. It either read the bytes as malformed JSON, or measured the decompressed body against the 8 MB uncompressed limit (HTTP 413). Either the service does not accept compressed bodies yet, or the credential is a self-serve one,
|
|
434
|
+
| `compressed_publish_unsupported` | The publish body went out gzipped and the publishing service did not accept it compressed. It either read the bytes as malformed JSON, or measured the decompressed body against the 8 MB uncompressed limit (HTTP 413). Either the service does not accept compressed bodies yet, or the credential is a self-serve one and the service predates checking the app before reading the body (until then, self-serve keeps the 8 MB uncompressed limit). Nothing was written. |
|
|
435
435
|
|
|
436
436
|
## `himi template screens --upsert | --add | --write` codes
|
|
437
437
|
|
|
@@ -261,8 +261,19 @@ nothing reads them.
|
|
|
261
261
|
Caps are enforced at the door (413 `item_too_large`): a screen descriptor 256 KiB, a bundle, an
|
|
262
262
|
asset or the icon 4 MiB, tokens and app-config 64 KiB each, and the manifest 256 KiB as stored
|
|
263
263
|
(label 1 KiB, notes 16 KiB). The whole body is capped at 8 MiB (413 `payload_too_large`), except a
|
|
264
|
-
whole-release publish
|
|
265
|
-
|
|
264
|
+
whole-release publish, which may be up to 32 MiB: `himi-serve` sends a body over 8 MiB gzipped.
|
|
265
|
+
Any credential gets the 32 MiB cap when the publish names its app on the query
|
|
266
|
+
(`POST /v1/admin/release?app=<app>`), which `himi-serve` does: the plane checks the credential's
|
|
267
|
+
scope for that app before it reads the body, then requires the body's `app` to match
|
|
268
|
+
(400 `release_app_mismatch`). An operator credential gets it without the query too. A self-serve
|
|
269
|
+
publish that does not name its app keeps the 8 MiB limit, because its body would be parsed before
|
|
270
|
+
the plane knew whose app it was. Self-serve publishes are also bounded per account, before the body
|
|
271
|
+
is read: 30 per 10 minutes (429 `release_rate_limited`), one at a time (429 `release_in_flight`),
|
|
272
|
+
and at most two self-serve publishes in flight per serve pod (503 `release_capacity`). Each carries
|
|
273
|
+
`retry-after`; wait and push again. A self-serve body must finish arriving within two minutes
|
|
274
|
+
(408 `body_read_timeout`). `himi push` itself still refuses a self-serve body over
|
|
275
|
+
8 MiB before sending it (`publish_body_too_large`, `compressedUpload` naming the self-serve
|
|
276
|
+
credential); `himi-serve release push` does not. A template's catalog view
|
|
266
277
|
(`source`, or `sourceGz` once inflated) may be up to 32 MiB only when an operator credential
|
|
267
278
|
publishes a reserved `himi-template-*` app; any other release that carries a catalog view keeps
|
|
268
279
|
8 MiB (413 `item_too_large` for a plain view over it, `source_gz_inflated_too_large` for a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1678.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": [
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"artifactId": "himalaya-cli"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
-
"falconPackageHash": "
|
|
82
|
+
"falconPackageHash": "4781d0053d5a20c44fee0d5f3020f89c81e1eca920833e728e969e9e"
|
|
83
83
|
}
|