@wix/himalaya-cli 0.1959.0 → 0.1960.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
@@ -44599,6 +44599,7 @@ function resolveIdiom(tokens2, ctx = {}) {
44599
44599
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
44600
44600
  var init_idiom = __esm({
44601
44601
  "../../core/ts/src/idiom.ts"() {
44602
+ "use strict";
44602
44603
  init_define_HHP_CATALOG();
44603
44604
  IDIOM_CONTEXTS = {
44604
44605
  ios: { native: ["ios"] },
@@ -196047,7 +196048,7 @@ function validateEntry(app2, raw, fail19) {
196047
196048
  const at2 = `apps.${app2}`;
196048
196049
  if (raw === null || typeof raw !== "object" || Array.isArray(raw)) fail19(`${at2} must be a JSON object`);
196049
196050
  const o2 = raw;
196050
- const extra = Object.keys(o2).filter((k3) => !["stage", "modules", "adapters"].includes(k3));
196051
+ const extra = Object.keys(o2).filter((k3) => !["stage", "modules", "adapters", "dormantGraph"].includes(k3));
196051
196052
  if (extra.length) fail19(`${at2}: unknown key(s): ${extra.join(", ")}`);
196052
196053
  if (typeof o2.stage !== "string" || !o2.stage) fail19(`${at2}.stage must be a non-empty string`);
196053
196054
  const modules = {};
@@ -196061,7 +196062,20 @@ function validateEntry(app2, raw, fail19) {
196061
196062
  }
196062
196063
  const adapters = o2.adapters ?? [];
196063
196064
  if (!Array.isArray(adapters) || adapters.some((a3) => typeof a3 !== "string")) fail19(`${at2}.adapters must be an array of satellite names`);
196064
- return { stage: o2.stage, modules, adapters: [...new Set(adapters)] };
196065
+ const entry = { stage: o2.stage, modules, adapters: [...new Set(adapters)] };
196066
+ if (o2.dormantGraph !== void 0) entry.dormantGraph = validateDormantGraph(at2, o2.dormantGraph, fail19);
196067
+ return entry;
196068
+ }
196069
+ function validateDormantGraph(at2, raw, fail19) {
196070
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) fail19(`${at2}.dormantGraph must be an object {"debug": boolean, "release": boolean}`);
196071
+ const o2 = raw;
196072
+ const extra = Object.keys(o2).filter((k3) => k3 !== "debug" && k3 !== "release");
196073
+ if (extra.length) fail19(`${at2}.dormantGraph: unknown key(s): ${extra.join(", ")}`);
196074
+ for (const key4 of ["debug", "release"]) {
196075
+ if (o2[key4] !== void 0 && typeof o2[key4] !== "boolean") fail19(`${at2}.dormantGraph.${key4} must be a boolean (got ${JSON.stringify(o2[key4])})`);
196076
+ }
196077
+ if (o2.release === true) fail19(`${at2}.dormantGraph.release is true, but no slice record (S1) names this app: a Release build constructs nothing from Core until S1`);
196078
+ return { debug: o2.debug === true, release: false };
196065
196079
  }
196066
196080
  function validateAdoptionStages(raw, where = ADOPTION_STAGES_PATH) {
196067
196081
  const fail19 = (why) => {
@@ -196212,6 +196226,11 @@ function declaredAuth(configTs) {
196212
196226
  visit(initializer);
196213
196227
  return out2;
196214
196228
  }
196229
+ function configLiteral(configTs, key4) {
196230
+ const file2 = ts18.createSourceFile("config.ts", configTs, ts18.ScriptTarget.Latest, true, ts18.ScriptKind.TS);
196231
+ const app2 = appObject(file2);
196232
+ return app2 && literalProp(app2, key4);
196233
+ }
196215
196234
  function pushPayloadAdapter(configTs) {
196216
196235
  const file2 = ts18.createSourceFile("config.ts", configTs, ts18.ScriptTarget.Latest, true, ts18.ScriptKind.TS);
196217
196236
  const push = appObject(file2)?.properties.find((p2) => propName6(p2) === "push");
@@ -196310,7 +196329,7 @@ function readNativeCoreAdoption(app2, opts = {}) {
196310
196329
  checkListedAdapters(app2, entry, table, fail19);
196311
196330
  const derived2 = needs.adapters.filter((a3) => a3 in table);
196312
196331
  const adapters = [.../* @__PURE__ */ new Set([...derived2, ...entry.adapters])];
196313
- return { app: app2, satellites: [NATIVE_CORE_BASE_SATELLITE_NAME, ...adapters], adapters, stage: entry.stage };
196332
+ return { app: app2, satellites: [NATIVE_CORE_BASE_SATELLITE_NAME, ...adapters], adapters, stage: entry.stage, dormantGraph: entry.dormantGraph ?? { debug: false, release: false } };
196314
196333
  }
196315
196334
  var ADOPTION_STAGES_KIND, ADOPTION_STAGES_SCHEMA_VERSION, ADOPTION_STAGES_PATH, RUNTIME_SERVED_APPS, ACTIVATION_MODULES, STAGE_OWNERS, WIX_PROVIDER_FACTORIES, MEMBER_FACTORY, MEMBER_PROVIDER_ID, readText;
196316
196335
  var init_native_core_needs = __esm({
@@ -196349,6 +196368,78 @@ var init_native_core_needs = __esm({
196349
196368
  }
196350
196369
  });
196351
196370
 
196371
+ // ../native-config/native-core-dormant.ts
196372
+ function renderNativeCoreIosFlags(flags, indent) {
196373
+ if (!flags.debug) return [];
196374
+ return [`${indent}SWIFT_ACTIVE_COMPILATION_CONDITIONS: "$(inherited) ${DORMANT_FLAG}"`];
196375
+ }
196376
+ function renderNativeCoreAndroidFlags(flags, indent) {
196377
+ const field = (value2) => `buildConfigField("boolean", "${DORMANT_FLAG}", "${value2}")`;
196378
+ return [
196379
+ `${indent}buildTypes {`,
196380
+ `${indent} getByName("debug") { ${field(flags.debug)} }`,
196381
+ `${indent} getByName("release") { ${field(flags.release)} }`,
196382
+ `${indent}}`
196383
+ ];
196384
+ }
196385
+ function renderNativeCoreSwiftImport(indent) {
196386
+ return [`${indent}#if canImport(${NATIVE_CORE_SATELLITE_PRODUCT}) && HIMALAYA_LINKED_${NATIVE_CORE_SATELLITE_PRODUCT}`, `${indent}import ${NATIVE_CORE_SATELLITE_PRODUCT}`, `${indent}#endif`];
196387
+ }
196388
+ function renderNativeCoreSwiftInstall(indent) {
196389
+ return [`${indent}#if canImport(${NATIVE_CORE_SATELLITE_PRODUCT}) && HIMALAYA_LINKED_${NATIVE_CORE_SATELLITE_PRODUCT}`, `${indent}${NATIVE_CORE_SATELLITE_PRODUCT}.install()`, `${indent}#endif`];
196390
+ }
196391
+ function isValidHeaderValue(value2) {
196392
+ return /^[\x20-\x7e]+$/.test(value2) && value2.trim() !== "";
196393
+ }
196394
+ function nativeCoreRuntimeMetadata(app2, configId) {
196395
+ const values = { mobileAppType: app2, mobileBrandedAppId: configId, mobileAppId: configId, rpcCallerId: app2 };
196396
+ for (const [field, value2] of Object.entries(values)) {
196397
+ if (!isValidHeaderValue(value2)) throw new Error(`native-config: ${app2}: NativeCoreRuntimeMetadata.${field} would be ${JSON.stringify(value2)}, which Core refuses as a request header (non-blank, printable ASCII only)`);
196398
+ }
196399
+ return values;
196400
+ }
196401
+ function renderNativeCoreRuntimeMetadataSwift(values) {
196402
+ return [
196403
+ `// ${GENERATED_HEADER}`,
196404
+ "",
196405
+ "/// The request-header identifiers the dormant Core graph is built with. Identifiers only, never a display name.",
196406
+ "enum NativeCoreRuntimeMetadata {",
196407
+ ` static let mobileAppType = ${JSON.stringify(values.mobileAppType)}`,
196408
+ ` static let mobileBrandedAppId = ${JSON.stringify(values.mobileBrandedAppId)}`,
196409
+ ` static let mobileAppId = ${JSON.stringify(values.mobileAppId)}`,
196410
+ ` static let rpcCallerId = ${JSON.stringify(values.rpcCallerId)}`,
196411
+ "}",
196412
+ ""
196413
+ ].join("\n");
196414
+ }
196415
+ function renderNativeCoreRuntimeMetadataKotlin(pkg, values) {
196416
+ return [
196417
+ `// ${GENERATED_HEADER}`,
196418
+ `package ${pkg}`,
196419
+ "",
196420
+ "/** The request-header identifiers the dormant Core graph is built with. Identifiers only, never a display name. */",
196421
+ "internal object NativeCoreRuntimeMetadata {",
196422
+ ` const val mobileAppType = ${JSON.stringify(values.mobileAppType)}`,
196423
+ ` const val mobileBrandedAppId = ${JSON.stringify(values.mobileBrandedAppId)}`,
196424
+ ` const val mobileAppId = ${JSON.stringify(values.mobileAppId)}`,
196425
+ ` const val rpcCallerId = ${JSON.stringify(values.rpcCallerId)}`,
196426
+ "}",
196427
+ ""
196428
+ ].join("\n");
196429
+ }
196430
+ var NATIVE_CORE_SATELLITE_PRODUCT, NATIVE_CORE_ANDROID_INSTALLER, LABEL_NATIVE_CORE_FLAGS, DORMANT_FLAG, dormantInAnyBuild, GENERATED_HEADER;
196431
+ var init_native_core_dormant = __esm({
196432
+ "../native-config/native-core-dormant.ts"() {
196433
+ init_define_HHP_CATALOG();
196434
+ NATIVE_CORE_SATELLITE_PRODUCT = "HimalayaWixNativeCore";
196435
+ NATIVE_CORE_ANDROID_INSTALLER = "io.himalaya.wixnativecore.NativeCoreInstall";
196436
+ LABEL_NATIVE_CORE_FLAGS = "himalaya:native-core:flags";
196437
+ DORMANT_FLAG = "HIMALAYA_NATIVE_CORE_DORMANT";
196438
+ dormantInAnyBuild = (flags) => flags.debug || flags.release;
196439
+ GENERATED_HEADER = "Generated by gen-native-config (Phase 2 \xA713) from config.ts \u2014 do not edit. Run `npm run native-config`.";
196440
+ }
196441
+ });
196442
+
196352
196443
  // ../lib/swiftpm-manifest.ts
196353
196444
  import { basename as basename19, resolve as resolve55 } from "node:path";
196354
196445
  function parseSwiftManifest(src) {
@@ -197682,6 +197773,7 @@ __export(gen_native_config_exports, {
197682
197773
  countBeginMarkers: () => countBeginMarkers,
197683
197774
  countEndMarkers: () => countEndMarkers,
197684
197775
  distBootInfo: () => distBootInfo,
197776
+ dormantGraphOf: () => dormantGraphOf,
197685
197777
  duplicateModuleInstalls: () => duplicateModuleInstalls,
197686
197778
  genCapabilityRegistrations: () => genCapabilityRegistrations,
197687
197779
  genCoreModuleInstallers: () => genCoreModuleInstallers,
@@ -198080,6 +198172,32 @@ function renderNativeCoreAndroidInclude(plan, indent) {
198080
198172
  function renderNativeCoreAndroidDep(plan, indent) {
198081
198173
  return plan.androidDeps.map((p2) => `${indent}implementation(project("${p2}"))`);
198082
198174
  }
198175
+ function dormantGraphOf(app2, root) {
198176
+ return readAdoptionStages(root)[app2]?.dormantGraph ?? { debug: false, release: false };
198177
+ }
198178
+ function genNativeCoreDormant(app2, flags, paths2, check) {
198179
+ if (!dormantInAnyBuild(flags)) return [];
198180
+ const requireBlock = (path2, kind) => {
198181
+ if (!existsSync81(path2)) return false;
198182
+ if (!hasMarkers(readFileSync89(path2, "utf8"), kind, LABEL_NATIVE_CORE_FLAGS)) {
198183
+ throw new Error(`native-config: ${app2}'s dormantGraph is set but ${path2} has no "${LABEL_NATIVE_CORE_FLAGS}" markers, so the flag would never reach the build. Add the marker pair (see apps/himi-owner-lite).`);
198184
+ }
198185
+ return true;
198186
+ };
198187
+ const files = [];
198188
+ if (requireBlock(paths2.ios, "yaml")) files.push(applyToFile(paths2.ios, "yaml", LABEL_NATIVE_CORE_FLAGS, (i2) => renderNativeCoreIosFlags(flags, i2), check));
198189
+ if (requireBlock(paths2.androidApp, "slash")) files.push(applyToFile(paths2.androidApp, "slash", LABEL_NATIVE_CORE_FLAGS, (i2) => renderNativeCoreAndroidFlags(flags, i2), check));
198190
+ const appRoot = paths2.root ? join79(paths2.root, "apps", app2) : appDir(app2);
198191
+ const configPath = join79(appRoot, "config.ts");
198192
+ const id = existsSync81(configPath) ? configLiteral(readFileSync89(configPath, "utf8"), "id") : void 0;
198193
+ if (!id) throw new Error(`native-config: ${app2}'s dormantGraph needs a string-literal \`id\` in ${configPath} for NativeCoreRuntimeMetadata`);
198194
+ const metadata2 = nativeCoreRuntimeMetadata(app2, id);
198195
+ const bootDirs = [...new Set(swiftFilesWithModuleMarkersIn(dirname46(paths2.ios)).map((file2) => dirname46(file2)))];
198196
+ for (const dir of bootDirs) files.push(applyWholeFile(join79(dir, "NativeCoreRuntimeMetadata.swift"), renderNativeCoreRuntimeMetadataSwift(metadata2), check));
198197
+ const androidSrc = join79(dirname46(paths2.androidApp), "src", "main", "kotlin", ...id.split("."));
198198
+ if (existsSync81(dirname46(paths2.androidApp))) files.push(applyWholeFile(join79(androidSrc, "NativeCoreRuntimeMetadata.kt"), renderNativeCoreRuntimeMetadataKotlin(id, metadata2), check));
198199
+ return files;
198200
+ }
198083
198201
  function genNativeCore(app2, check, native = {}) {
198084
198202
  const at2 = native.root ? join79(native.root, "apps", app2) : void 0;
198085
198203
  const paths2 = {
@@ -198127,6 +198245,7 @@ function genNativeCore(app2, check, native = {}) {
198127
198245
  }
198128
198246
  const [ios, macos, androidSettings, androidApp] = targets;
198129
198247
  return [
198248
+ ...genNativeCoreDormant(app2, adoption.dormantGraph, { ios: ios.path, androidApp: androidApp.path, root: native.root }, check),
198130
198249
  applyToFile(ios.path, "yaml", LABEL_NATIVE_CORE_IOS_PACKAGE, (i2) => renderNativeCoreIosPackage(plan, i2, "ios"), check),
198131
198250
  applyToFile(ios.path, "yaml", LABEL_NATIVE_CORE_IOS_LINK, (i2) => renderNativeCoreIosLink(plan, i2, "ios"), check),
198132
198251
  applyToFile(macos.path, "yaml", LABEL_NATIVE_CORE_IOS_PACKAGE, (i2) => renderNativeCoreIosPackage(plan, i2, "macos"), check),
@@ -198256,24 +198375,28 @@ function moduleLinkRenderers(modules, binary2) {
198256
198375
  function renderModulesIosFlags(products, indent) {
198257
198376
  return [`${indent}OTHER_SWIFT_FLAGS: "${["$(inherited)", ...products.map((p2) => `-D${linkedFlag(p2)}`)].join(" ")}"`];
198258
198377
  }
198259
- function renderModulesSwiftImport(indent) {
198260
- return NATIVE_MODULES.flatMap(
198378
+ function renderModulesSwiftImport(indent, nativeCoreSatellite = false) {
198379
+ const modules = NATIVE_MODULES.flatMap(
198261
198380
  (m2) => m2.ios ? [`${indent}#if canImport(${m2.ios.product}) && ${linkedFlag(m2.ios.product)}`, `${indent}import ${m2.ios.product}`, `${indent}#endif`] : []
198262
198381
  );
198382
+ return nativeCoreSatellite ? [...modules, ...renderNativeCoreSwiftImport(indent)] : modules;
198263
198383
  }
198264
- function renderModulesSwiftInstall(indent) {
198265
- return NATIVE_MODULES.flatMap(
198384
+ function renderModulesSwiftInstall(indent, nativeCoreSatellite = false) {
198385
+ const modules = NATIVE_MODULES.flatMap(
198266
198386
  (m2) => m2.ios ? [`${indent}#if canImport(${m2.ios.product}) && ${linkedFlag(m2.ios.product)}`, `${indent}${m2.ios.product}.install()`, `${indent}#endif`] : []
198267
198387
  );
198388
+ return nativeCoreSatellite ? [...modules, ...renderNativeCoreSwiftInstall(indent)] : modules;
198268
198389
  }
198269
198390
  function renderModulesAndroidInstallers(indent) {
198270
- return NATIVE_MODULES.flatMap((m2) => m2.android ? [`${indent}"${m2.android.installer}",`] : []);
198391
+ return [...NATIVE_MODULES.flatMap((m2) => m2.android ? [`${indent}"${m2.android.installer}",`] : []), `${indent}"${NATIVE_CORE_ANDROID_INSTALLER}",`];
198271
198392
  }
198272
198393
  function genCoreModuleInstallers(check) {
198273
198394
  return applyToFile(CORE_ANDROID_CAPABILITY_MODULES, "slash", LABEL_MODULES_ANDROID_INSTALLERS, renderModulesAndroidInstallers, check);
198274
198395
  }
198275
198396
  function swiftFilesWithModuleMarkers(app2) {
198276
- const root = join79(appDir(app2), "ios");
198397
+ return swiftFilesWithModuleMarkersIn(join79(appDir(app2), "ios"));
198398
+ }
198399
+ function swiftFilesWithModuleMarkersIn(root) {
198277
198400
  if (!existsSync81(root)) return [];
198278
198401
  const out2 = [];
198279
198402
  const stack = [root];
@@ -198928,7 +199051,7 @@ function genNativeConfig(app2, opts = {}) {
198928
199051
  // published AARs (#4055): no source package, no settings include.
198929
199052
  applyToFile(iosProjectYml(app2), "yaml", LABEL_MODULES_IOS_PACKAGE, moduleLinks.iosPackage, check),
198930
199053
  applyToFile(iosProjectYml(app2), "yaml", LABEL_MODULES_IOS_LINK, moduleLinks.iosLink, check),
198931
- applyModuleFlags(iosProjectYml(app2), moduleLinks.iosLinked(), check, adsIds),
199054
+ applyModuleFlags(iosProjectYml(app2), [...moduleLinks.iosLinked(), ...dormantInAnyBuild(dormantGraphOf(app2)) ? [NATIVE_CORE_SATELLITE_PRODUCT] : []], check, adsIds),
198932
199055
  applyAdsIosCheck(iosProjectYml(app2), !!adsIds, check),
198933
199056
  // Model B, `url:` form: the trait selector package that enables the linked satellites' traits
198934
199057
  // in the published package (#4129). Removed when the app links none, or is not in that form.
@@ -199004,13 +199127,14 @@ function genNativeConfig(app2, opts = {}) {
199004
199127
  }
199005
199128
  }
199006
199129
  }
199130
+ const satellite = dormantInAnyBuild(dormantGraphOf(app2));
199007
199131
  for (const swift of swiftFilesWithModuleMarkers(app2)) {
199008
199132
  const text32 = readFileSync89(swift, "utf8");
199009
199133
  if (!hasMarkers(text32, "slash", LABEL_MODULES_SWIFT_IMPORT) || !hasMarkers(text32, "slash", LABEL_MODULES_SWIFT_INSTALL)) {
199010
199134
  throw new Error(`${app2}: ${swift} must carry both ${LABEL_MODULES_SWIFT_IMPORT} and ${LABEL_MODULES_SWIFT_INSTALL} markers`);
199011
199135
  }
199012
- files.push(applyToFile(swift, "slash", LABEL_MODULES_SWIFT_IMPORT, renderModulesSwiftImport, check));
199013
- files.push(applyToFile(swift, "slash", LABEL_MODULES_SWIFT_INSTALL, renderModulesSwiftInstall, check));
199136
+ files.push(applyToFile(swift, "slash", LABEL_MODULES_SWIFT_IMPORT, (i2) => renderModulesSwiftImport(i2, satellite), check));
199137
+ files.push(applyToFile(swift, "slash", LABEL_MODULES_SWIFT_INSTALL, (i2) => renderModulesSwiftInstall(i2, satellite), check));
199014
199138
  }
199015
199139
  files.push(...genCapabilityRegistrations(appDir(app2), ids2, check));
199016
199140
  const rce = declaresRichContentEditor(configTs);
@@ -199083,6 +199207,7 @@ var init_gen_native_config = __esm({
199083
199207
  init_prebuild();
199084
199208
  init_native_core2();
199085
199209
  init_native_core_needs();
199210
+ init_native_core_dormant();
199086
199211
  init_native_core_check();
199087
199212
  init_admob_ids();
199088
199213
  init_store_adopt2();
@@ -295658,7 +295783,7 @@ var init_plan5 = __esm({
295658
295783
  var generate_exports = {};
295659
295784
  __export(generate_exports, {
295660
295785
  ENGINE_FILES: () => ENGINE_FILES,
295661
- GENERATED_HEADER: () => GENERATED_HEADER,
295786
+ GENERATED_HEADER: () => GENERATED_HEADER2,
295662
295787
  isEdited: () => isEdited,
295663
295788
  orphanedFiles: () => orphanedFiles,
295664
295789
  renderAll: () => renderAll,
@@ -295674,7 +295799,7 @@ import { createHash as createHash101 } from "node:crypto";
295674
295799
  import { existsSync as existsSync162, mkdirSync as mkdirSync66, readdirSync as readdirSync67, readFileSync as readFileSync194, writeFileSync as writeFileSync74 } from "node:fs";
295675
295800
  import { dirname as dirname89, join as join203 } from "node:path";
295676
295801
  function withHeader(body) {
295677
- return `${GENERATED_HEADER}${sha2568(body)}
295802
+ return `${GENERATED_HEADER2}${sha2568(body)}
295678
295803
  ${body}`;
295679
295804
  }
295680
295805
  function isEdited(content) {
@@ -295825,16 +295950,16 @@ function orphanedFiles(dir, current) {
295825
295950
  }
295826
295951
  for (const rel2 of candidates.sort()) {
295827
295952
  if (keep.has(rel2) || !existsSync162(join203(dir, rel2))) continue;
295828
- if (readFileSync194(join203(dir, rel2), "utf8").startsWith(GENERATED_HEADER)) found.push(rel2);
295953
+ if (readFileSync194(join203(dir, rel2), "utf8").startsWith(GENERATED_HEADER2)) found.push(rel2);
295829
295954
  }
295830
295955
  return found;
295831
295956
  }
295832
- var GENERATED_HEADER, HEADER_RE, ENGINE_FILES, sha2568, planFile, ident, json8, byName2;
295957
+ var GENERATED_HEADER2, HEADER_RE, ENGINE_FILES, sha2568, planFile, ident, json8, byName2;
295833
295958
  var init_generate2 = __esm({
295834
295959
  "src/base44-screens/generate.ts"() {
295835
295960
  init_define_HHP_CATALOG();
295836
295961
  init_plan5();
295837
- GENERATED_HEADER = "// @generated by himi base44 screens \u2014 sha256:";
295962
+ GENERATED_HEADER2 = "// @generated by himi base44 screens \u2014 sha256:";
295838
295963
  HEADER_RE = /^\/\/ @generated by himi base44 screens — sha256:([0-9a-f]{64})\n/;
295839
295964
  ENGINE_FILES = ["tier5-src/_shared/entity-list.ts", "tier5-src/_shared/entity-detail.ts", "tier5-src/_shared/entity-plan.ts", "dev/entity-screens.ts"];
295840
295965
  sha2568 = (s5) => createHash101("sha256").update(s5).digest("hex");
@@ -761,10 +761,21 @@ change carry a 9-char sha and are genuinely un-buildable; re-push them.
761
761
  The caller never supplies the shell commit. Honoring a caller-chosen sha would be
762
762
  arbitrary code execution on a shared Mac pool.
763
763
 
764
- ## Path B — a `[dist]` commit
764
+ ## Path B — a pull-request build from Wix native CI
765
765
 
766
- QA builds are **opt-in per commit** so they stay off the every-PR path. Put a
767
- `[dist]` tag in the HEAD commit message of a PR:
766
+ Wix native CI automatically builds a signed, installable dev IPA/APK when a pull request changes a
767
+ registered native project or one of its declared dependencies. Its
768
+ `Mobile Apps CI/CD / Native iOS Build (<path>)` or `Native Android Build (<path>)` check, and its PR
769
+ comment, carry the download link.
770
+
771
+ There is no `#release` or empty-commit trigger. Native CI intentionally ignores an empty commit,
772
+ and carries or skips a project when the push changes none of that project's inputs. Use `himi dist`
773
+ (Path A) when you need an explicit QA build without a native input change.
774
+
775
+ ## A `[dist]` tag on a device test run
776
+
777
+ The tag still works when you start a device test run yourself. Put it in the HEAD commit message,
778
+ and the run folds a QA build in (next section):
768
779
 
769
780
  | Commit message contains | Builds |
770
781
  |---|---|
@@ -772,20 +783,9 @@ QA builds are **opt-in per commit** so they stay off the every-PR path. Put a
772
783
  | `[dist:ios]` / `[dist ios]` | iOS only |
773
784
  | `[dist:android]` | Android only |
774
785
 
775
- The easiest trigger is an empty commit on your PR branch:
776
-
777
- ```bash
778
- git commit --allow-empty -m "[dist] QA build"
779
- git push
780
- ```
781
-
782
- Falcon rebuilds, the platform's Argus job sees the tag, and folds the QA build in
783
- (next section). This system-originated path retains its branch label and puts the
784
- install link in the build log and, when a PR token is available, in a **PR comment**.
785
- Interactive `himi dist` and owner-browser requests are user-originated instead: they
786
- are labelled with the app name and id, and never report or comment on a PR. The
787
- **`/dist-himalaya-app`** skill automates the
788
- whole loop (empty commit → PR → watch Falcon → hand back the link).
786
+ Such a run is system-originated: it keeps its branch label and puts the install link in the build
787
+ log. Interactive `himi dist` and owner-browser requests are user-originated instead: they are
788
+ labelled with the app name and id, and never report or comment on a PR.
789
789
 
790
790
  ## How it runs: folded into the warm Argus job (build once)
791
791
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1959.0",
3
+ "version": "0.1960.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": "445eec3e9c695d366355270f659de0e177768105c825d308e86c88b1"
85
+ "falconPackageHash": "e632d8b51a5e1a846c30337b85ce4bc0effff49f85daf8aba8024a1b"
86
86
  }