@wix/himalaya-cli 0.1895.0 → 0.1896.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 +44 -3
- package/guides/qa-builds.md +43 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -3278,10 +3278,14 @@ __export(dist_jobs_exports, {
|
|
|
3278
3278
|
DEFAULT_DIST_SHELL: () => DEFAULT_DIST_SHELL,
|
|
3279
3279
|
DEFAULT_DIST_SIGNING: () => DEFAULT_DIST_SIGNING,
|
|
3280
3280
|
DEFAULT_GIT_URL: () => DEFAULT_GIT_URL,
|
|
3281
|
+
DEFAULT_IOS_FORMAT: () => DEFAULT_IOS_FORMAT,
|
|
3281
3282
|
DIST_ERROR_CODES: () => DIST_ERROR_CODES,
|
|
3282
3283
|
DIST_PACKAGE_NAME: () => DIST_PACKAGE_NAME,
|
|
3283
3284
|
DIST_PARAMS_FLAG: () => DIST_PARAMS_FLAG,
|
|
3284
3285
|
DIST_SHELLS: () => DIST_SHELLS,
|
|
3286
|
+
IOS_FORMATS: () => IOS_FORMATS,
|
|
3287
|
+
IOS_FORMAT_NOT_BUILT: () => IOS_FORMAT_NOT_BUILT,
|
|
3288
|
+
IOS_FORMAT_NOT_REQUESTED: () => IOS_FORMAT_NOT_REQUESTED,
|
|
3285
3289
|
JobServiceBroker: () => JobServiceBroker,
|
|
3286
3290
|
JobServiceError: () => JobServiceError,
|
|
3287
3291
|
MAX_MEASURABLE_IDENTITY_WINDOW: () => MAX_MEASURABLE_IDENTITY_WINDOW,
|
|
@@ -3293,6 +3297,7 @@ __export(dist_jobs_exports, {
|
|
|
3293
3297
|
androidFormatSkewFailed: () => androidFormatSkewFailed,
|
|
3294
3298
|
appleErrorCodesOf: () => appleErrorCodesOf,
|
|
3295
3299
|
borrowableIosIds: () => borrowableIosIds,
|
|
3300
|
+
buildFormatSkewFailed: () => buildFormatSkewFailed,
|
|
3296
3301
|
credsFromConfig: () => credsFromConfig,
|
|
3297
3302
|
customerUploadClaimable: () => customerUploadClaimable,
|
|
3298
3303
|
customerUploadFailure: () => customerUploadFailure,
|
|
@@ -3301,6 +3306,7 @@ __export(dist_jobs_exports, {
|
|
|
3301
3306
|
encodeDistParams: () => encodeDistParams,
|
|
3302
3307
|
failureCodesOf: () => failureCodesOf,
|
|
3303
3308
|
hasJobServiceEnded: () => hasJobServiceEnded,
|
|
3309
|
+
iosFormatSkewFailed: () => iosFormatSkewFailed,
|
|
3304
3310
|
isBorrowableIosId: () => isBorrowableIosId,
|
|
3305
3311
|
isSuccess: () => isSuccess,
|
|
3306
3312
|
isTerminal: () => isTerminal,
|
|
@@ -3313,6 +3319,7 @@ __export(dist_jobs_exports, {
|
|
|
3313
3319
|
resolveAndroidSigning: () => resolveAndroidSigning,
|
|
3314
3320
|
resolveBorrowedIosId: () => resolveBorrowedIosId,
|
|
3315
3321
|
resolveDistSigning: () => resolveDistSigning,
|
|
3322
|
+
resolveIosFormat: () => resolveIosFormat,
|
|
3316
3323
|
testflightStatusRank: () => testflightStatusRank
|
|
3317
3324
|
});
|
|
3318
3325
|
function isTerminal(status2) {
|
|
@@ -3558,6 +3565,28 @@ function resolveAndroidBuildType(requested) {
|
|
|
3558
3565
|
}
|
|
3559
3566
|
};
|
|
3560
3567
|
}
|
|
3568
|
+
function resolveIosFormat(requested) {
|
|
3569
|
+
if (requested === void 0 || requested === null || requested === "") return { format: DEFAULT_IOS_FORMAT };
|
|
3570
|
+
if (typeof requested === "string" && IOS_FORMATS.includes(requested)) {
|
|
3571
|
+
return { format: requested };
|
|
3572
|
+
}
|
|
3573
|
+
return {
|
|
3574
|
+
error: {
|
|
3575
|
+
status: 400,
|
|
3576
|
+
body: {
|
|
3577
|
+
error: "invalid_ios_format",
|
|
3578
|
+
message: `iosFormat ${typeof requested === "string" ? `"${requested.slice(0, 40)}"` : `of type ${typeof requested}`} is not a known format`,
|
|
3579
|
+
supported: [...IOS_FORMATS]
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
};
|
|
3583
|
+
}
|
|
3584
|
+
function iosFormatSkewFailed(record6) {
|
|
3585
|
+
return record6.platform === "ios" && typeof record6.error === "string" && [IOS_FORMAT_NOT_BUILT, IOS_FORMAT_NOT_REQUESTED].some((code3) => record6.error.includes(`${code3}:`));
|
|
3586
|
+
}
|
|
3587
|
+
function buildFormatSkewFailed(record6) {
|
|
3588
|
+
return androidFormatSkewFailed(record6) || iosFormatSkewFailed(record6);
|
|
3589
|
+
}
|
|
3561
3590
|
function encodeDistParams(env) {
|
|
3562
3591
|
return Buffer.from(JSON.stringify(env), "utf8").toString("base64url");
|
|
3563
3592
|
}
|
|
@@ -3613,7 +3642,10 @@ function distJobSpec(req) {
|
|
|
3613
3642
|
// Who to DM the install link to. See DistJobRequest.requestedBy: the git-history guess the pool
|
|
3614
3643
|
// falls back to misroutes brokered builds to an unrelated colleague.
|
|
3615
3644
|
...req.requestedBy ? { HIMI_DIST_REQUESTED_BY: req.requestedBy } : {},
|
|
3616
|
-
...req.env,
|
|
3645
|
+
...operatorEnvWithoutIosFormat(req.env),
|
|
3646
|
+
// An unsigned simulator build instead of a signed IPA. Only when asked, and AFTER `req.env`:
|
|
3647
|
+
// the request decides the format, so operator config can't turn one into the other.
|
|
3648
|
+
...req.platform === "ios" && req.iosFormat === "simulator" ? { DIST_IOS_FORMAT: "simulator" } : {},
|
|
3617
3649
|
...req.buildOrigin ? { HIMI_DIST_BUILD_ORIGIN: req.buildOrigin } : {},
|
|
3618
3650
|
// AFTER `req.env`, deliberately. This one field is the SHELL's declared answer, and it is the
|
|
3619
3651
|
// only thing standing between owner-lite and a build that reads the fetched contract under
|
|
@@ -3641,11 +3673,15 @@ function distJobSpec(req) {
|
|
|
3641
3673
|
...req.xcodeVersion ? { xcodeVersion: req.xcodeVersion } : {}
|
|
3642
3674
|
};
|
|
3643
3675
|
}
|
|
3676
|
+
function operatorEnvWithoutIosFormat(env) {
|
|
3677
|
+
const { DIST_IOS_FORMAT: _theRequestDecides, ...rest } = env ?? {};
|
|
3678
|
+
return rest;
|
|
3679
|
+
}
|
|
3644
3680
|
function withoutCallbackToken(params) {
|
|
3645
3681
|
const { HIMI_DIST_CALLBACK_TOKEN: _printedByThePool, ...printable2 } = params;
|
|
3646
3682
|
return printable2;
|
|
3647
3683
|
}
|
|
3648
|
-
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_GIT_URL, DIST_PACKAGE_NAME, DIST_PARAMS_FLAG, MAX_COMMAND_CHARS;
|
|
3684
|
+
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;
|
|
3649
3685
|
var init_dist_jobs = __esm({
|
|
3650
3686
|
"../../core/serve-control/src/dist-jobs.ts"() {
|
|
3651
3687
|
init_define_HHP_CATALOG();
|
|
@@ -3933,6 +3969,10 @@ var init_dist_jobs = __esm({
|
|
|
3933
3969
|
DEFAULT_ANDROID_BUILD_TYPE = "release";
|
|
3934
3970
|
ANDROID_BUILD_TYPES = ["release", "debug"];
|
|
3935
3971
|
ANDROID_BUILD_TYPE_NOT_BUILT = "android_build_type_not_built";
|
|
3972
|
+
DEFAULT_IOS_FORMAT = "ipa";
|
|
3973
|
+
IOS_FORMATS = ["ipa", "simulator"];
|
|
3974
|
+
IOS_FORMAT_NOT_BUILT = "ios_format_not_built";
|
|
3975
|
+
IOS_FORMAT_NOT_REQUESTED = "ios_format_not_requested";
|
|
3936
3976
|
DEFAULT_GIT_URL = "https://github.com/wix-private/himalaya";
|
|
3937
3977
|
DIST_PACKAGE_NAME = "@himalaya/native-ci";
|
|
3938
3978
|
DIST_PARAMS_FLAG = "--himi-dist";
|
|
@@ -8476,7 +8516,6 @@ function assertExternalUrl(site, value2, where) {
|
|
|
8476
8516
|
var WIX_FREE_SITE_HOST_SUFFIXES, SITE_KINDS, SITE_LAYOUTS, SITE_PAGE_TITLES, SITE_TOP_BAR_MAX_ACTIONS, SITE_BUILTIN_NATIVE_SCREENS, SITE_PRIVATE_NATIVE_SCREENS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID, BASE44_ORIGINS, PAGE_ID, SITE_PAGE_NODE_ID, SITE_SCREEN_FORMS, SITE_NODE_SCREEN_RENDERER, PLACEMENTS, ICONS, SITE_MEMBER_PAGE_SCREENS, SITE_MEMBER_CART_SCREENS, SITE_MEMBER_ONLY_SCREENS;
|
|
8477
8517
|
var init_site_shell = __esm({
|
|
8478
8518
|
"../../core/ts/src/site-shell.ts"() {
|
|
8479
|
-
"use strict";
|
|
8480
8519
|
init_define_HHP_CATALOG();
|
|
8481
8520
|
init_himi_package();
|
|
8482
8521
|
init_icon_catalog_generated();
|
|
@@ -42316,6 +42355,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
42316
42355
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
42317
42356
|
var init_idiom = __esm({
|
|
42318
42357
|
"../../core/ts/src/idiom.ts"() {
|
|
42358
|
+
"use strict";
|
|
42319
42359
|
init_define_HHP_CATALOG();
|
|
42320
42360
|
IDIOM_CONTEXTS = {
|
|
42321
42361
|
ios: { native: ["ios"] },
|
|
@@ -274798,6 +274838,7 @@ function scannableUrl(rec) {
|
|
|
274798
274838
|
if (!a3) return void 0;
|
|
274799
274839
|
if (isAppStoreBuild(rec)) return void 0;
|
|
274800
274840
|
if (rec.platform === "android" && rec.androidFormat === "aab") return a3.apk?.downloadUrl;
|
|
274841
|
+
if (rec.platform === "ios" && rec.iosFormat === "simulator") return void 0;
|
|
274801
274842
|
return rec.platform === "ios" ? a3.installPageUrl ?? a3.downloadUrl : a3.downloadUrl ?? a3.installPageUrl;
|
|
274802
274843
|
}
|
|
274803
274844
|
function isInternalOnlyBuild(r3) {
|
package/guides/qa-builds.md
CHANGED
|
@@ -1650,6 +1650,49 @@ Other refusals, each with `code` equal to `error`: `android_signing_unsigned_req
|
|
|
1650
1650
|
`owner_bundle_firebase_package_mismatch` 400, and `owner_bundle_unavailable` 503. Design:
|
|
1651
1651
|
[the design note](superpowers/specs/2026-11-07-owner-signed-play-bundle-design.md).
|
|
1652
1652
|
|
|
1653
|
+
### An iOS simulator build — `iosFormat: "simulator"`
|
|
1654
|
+
|
|
1655
|
+
An IPA runs on no simulator, and the store-screenshots plugin (mobile-apps-relops-automations
|
|
1656
|
+
`plugins/store-screenshots`) runs iOS apps only as simulator builds on LambdaTest. `iosFormat:
|
|
1657
|
+
"simulator"` on `POST /v1/admin/dist` builds the **same app project** an IPA job builds (the
|
|
1658
|
+
release's contract, seed, fonts and icon) for the iOS Simulator, with **no signing at all**, and
|
|
1659
|
+
returns it as a zip with exactly one `.app` at its root (MOBPUB-1500).
|
|
1660
|
+
|
|
1661
|
+
```json
|
|
1662
|
+
{ "app": "<app>", "platform": ["android", "ios"], "release": "<id>", "androidFormat": "apk", "iosFormat": "simulator" }
|
|
1663
|
+
```
|
|
1664
|
+
|
|
1665
|
+
- **What you get:** the zip as `artifact.downloadUrl` (presigned, 7 days), with `artifact.sha256`,
|
|
1666
|
+
`artifact.bytes` and `artifact.expiresAt`, and the record carries `iosFormat: "simulator"`. No
|
|
1667
|
+
install link, install page or QR: it installs on no device, so it is never the app's iOS link on
|
|
1668
|
+
the links surface either.
|
|
1669
|
+
- **iOS only, and `ipa` stays the default.** A request without the field dispatches and records
|
|
1670
|
+
exactly what it did before. It reaches the pool as `DIST_IOS_FORMAT=simulator` in the `command`
|
|
1671
|
+
blob; the pool reads it from the job's own parameters only, never from the machine's environment.
|
|
1672
|
+
Refusals, all typed 400s before any pool time is spent: `invalid_ios_format` (anything but `ipa` /
|
|
1673
|
+
`simulator`), `ios_format_requires_link` (any destination but `link`: TestFlight, Play internal),
|
|
1674
|
+
`ios_format_simulator_unsigned` (`signing: "byo"` or `borrowIosBundleId`: nothing signs it),
|
|
1675
|
+
`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).
|
|
1677
|
+
- **How the pool builds it.** The command CI's own simulator test builds use (the ones LambdaTest runs):
|
|
1678
|
+
`xcodebuild build -sdk iphonesimulator -destination 'generic/platform=iOS Simulator'
|
|
1679
|
+
CODE_SIGNING_ALLOWED=NO`, in the dist configuration (`Release`), with `ONLY_ACTIVE_ARCH=NO`, so it
|
|
1680
|
+
carries every simulator architecture, and never `HIMALAYA_DIST_BUILD` (a QA build's diagnostics UI
|
|
1681
|
+
must not reach a store screenshot). No signing route, profile or keychain is read; an app whose
|
|
1682
|
+
contract carries native extensions compiles the way an extension build does (keychains locked,
|
|
1683
|
+
signing env withheld). Before upload the `.app` must pass the plugin's own rule —
|
|
1684
|
+
`CFBundleSupportedPlatforms` lists `iPhoneSimulator` and every Mach-O slice is `IOSSIMULATOR`
|
|
1685
|
+
(`xcrun vtool -show-build`) — and `ditto` zips it with no `__MACOSX` or `._` entries. The log line
|
|
1686
|
+
`[dist] ios simulator: <App>.app architectures=… platforms=… UIDeviceFamily=…` says what was built.
|
|
1687
|
+
The seed gate runs on the zip; the binary-size budget does not (it ships to no one).
|
|
1688
|
+
- **Version skew.** The pool runs the release's own `run-dist`. The plane refuses a release whose
|
|
1689
|
+
commit's runner does not declare simulator builds (`iosSimulator: 1` in its signing-protocol marker; `409
|
|
1690
|
+
release_predates_ios_simulator`; `503 ios_simulator_builds_unavailable` when GitHub can't be read,
|
|
1691
|
+
`501 ios_simulator_builds_unconfigured` without `HIMI_DIST_GITHUB_TOKEN`). The result callback is
|
|
1692
|
+
the second guard: a simulator job whose pool does not report `iosFormat: "simulator"` is a
|
|
1693
|
+
`FAILURE` with `ios_format_not_built: …` and no artifact, and an IPA job that reports one fails
|
|
1694
|
+
with `ios_format_not_requested: …`.
|
|
1695
|
+
|
|
1653
1696
|
### The iOS lane lives in one shared place
|
|
1654
1697
|
|
|
1655
1698
|
`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.
|
|
3
|
+
"version": "0.1896.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": "
|
|
85
|
+
"falconPackageHash": "1d4d0fcff3affe44cf0eb970e3d263f84795126332c735ccc607d809"
|
|
86
86
|
}
|