@wix/himalaya-cli 0.1695.0 → 0.1697.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 +151 -13
- package/guides/hhp.md +1 -1
- package/guides/himi-json-output.md +1 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -24342,6 +24342,7 @@ __export(config_exports2, {
|
|
|
24342
24342
|
loadAppConfigOverlay: () => loadAppConfigOverlay,
|
|
24343
24343
|
loadLocalFlags: () => loadLocalFlags,
|
|
24344
24344
|
loadRevocations: () => loadRevocations,
|
|
24345
|
+
loadRevocationsStrict: () => loadRevocationsStrict,
|
|
24345
24346
|
loadRollout: () => loadRollout,
|
|
24346
24347
|
mayCarryOriginKeys: () => mayCarryOriginKeys,
|
|
24347
24348
|
originKeysIn: () => originKeysIn,
|
|
@@ -24524,6 +24525,16 @@ function loadRevocations(app2) {
|
|
|
24524
24525
|
return [];
|
|
24525
24526
|
}
|
|
24526
24527
|
}
|
|
24528
|
+
function loadRevocationsStrict(app2, root = REPO_ROOT3) {
|
|
24529
|
+
let text25;
|
|
24530
|
+
try {
|
|
24531
|
+
text25 = readFileSync20(appConfigPath(app2, "revocations.yaml", root), "utf8");
|
|
24532
|
+
} catch (err) {
|
|
24533
|
+
if (err?.code === "ENOENT") return [];
|
|
24534
|
+
throw err;
|
|
24535
|
+
}
|
|
24536
|
+
return parseRevocationsYaml(text25).revoked;
|
|
24537
|
+
}
|
|
24527
24538
|
var REPO_ROOT3, OPERATIONAL_OVERLAY_KEYS, STRUCTURAL_KEYS, OPERATOR_ONLY_OVERLAY_KEYS;
|
|
24528
24539
|
var init_config2 = __esm({
|
|
24529
24540
|
"../../core/serve-control/src/config.ts"() {
|
|
@@ -33645,6 +33656,7 @@ function shouldRevealError(args) {
|
|
|
33645
33656
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
33646
33657
|
var init_validation = __esm({
|
|
33647
33658
|
"../../core/ts/src/validation.ts"() {
|
|
33659
|
+
"use strict";
|
|
33648
33660
|
init_define_HHP_CATALOG();
|
|
33649
33661
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
33650
33662
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -175781,6 +175793,7 @@ __export(capabilities_exports, {
|
|
|
175781
175793
|
formatDistPlan: () => formatDistPlan,
|
|
175782
175794
|
isShell: () => isShell,
|
|
175783
175795
|
lastDistFromJob: () => lastDistFromJob,
|
|
175796
|
+
nativeCompatibilityNotice: () => nativeCompatibilityNotice,
|
|
175784
175797
|
needsBinaryNotice: () => needsBinaryNotice,
|
|
175785
175798
|
notInBinaryReason: () => notInBinaryReason,
|
|
175786
175799
|
readLastDist: () => readLastDist,
|
|
@@ -175932,6 +175945,25 @@ function needsBinaryNotice(json9) {
|
|
|
175932
175945
|
message: `needs a new binary: ${missing4.join(", ")} \u2014 run himi dist`
|
|
175933
175946
|
};
|
|
175934
175947
|
}
|
|
175948
|
+
function nativeCompatibilityNotice(json9) {
|
|
175949
|
+
const j2 = json9;
|
|
175950
|
+
const verdict = j2?.nativeCompatibility;
|
|
175951
|
+
if (verdict === "ota" || verdict === "needs_binary") {
|
|
175952
|
+
const rows = Array.isArray(j2?.nativeFingerprints?.live) ? j2.nativeFingerprints.live : [];
|
|
175953
|
+
const live4 = rows.filter((b3) => typeof b3.platform === "string" && typeof b3.jobId === "string" && typeof b3.fingerprint === "string").map((b3) => ({
|
|
175954
|
+
platform: b3.platform,
|
|
175955
|
+
jobId: b3.jobId,
|
|
175956
|
+
fingerprint: b3.fingerprint,
|
|
175957
|
+
missing: Array.isArray(b3.missing) ? b3.missing.filter((x2) => typeof x2 === "string") : [],
|
|
175958
|
+
...typeof b3.needed === "string" ? { needed: b3.needed } : {}
|
|
175959
|
+
}));
|
|
175960
|
+
const lacking = live4.filter((b3) => b3.missing.length);
|
|
175961
|
+
const message2 = verdict === "ota" ? `ships over the air: fits the live ${live4.length === 1 ? "binary" : "binaries"} (${live4.map((b3) => `${b3.platform} ${b3.fingerprint}`).join(", ")})` : `needs a new binary: ${[...new Set(lacking.flatMap((b3) => b3.missing))].sort().join(", ")} ${lacking.length ? `is not in ${lacking.map((b3) => `${b3.platform} ${b3.fingerprint}${b3.needed ? ` (needed: ${b3.needed})` : ""}`).join(", ")}` : "is not in a live binary"}. Binaries without it keep the release they have until they update. Run: himi dist`;
|
|
175962
|
+
return { nativeCompatibility: verdict, nativeFingerprints: { live: live4 }, message: message2 };
|
|
175963
|
+
}
|
|
175964
|
+
const nb = needsBinaryNotice(json9);
|
|
175965
|
+
return nb ? { nativeCompatibility: "needs_binary", message: `${nb.message} (this serve plane reports no native fingerprints)` } : null;
|
|
175966
|
+
}
|
|
175935
175967
|
function noImportLabel(id) {
|
|
175936
175968
|
return BRIDGE_CAPABILITY_IDS.includes(id) || id === "wix_platform" ? "a bridge capability (no @himalaya import of its own)" : "declare-only (no @himalaya import of its own)";
|
|
175937
175969
|
}
|
|
@@ -259731,6 +259763,7 @@ var init_push_errors = __esm({
|
|
|
259731
259763
|
"authoring_unavailable",
|
|
259732
259764
|
"push_failed",
|
|
259733
259765
|
"binary_capability_gap",
|
|
259766
|
+
"native_build_required",
|
|
259734
259767
|
"depth_budget_exceeded",
|
|
259735
259768
|
"compressed_publish_unsupported",
|
|
259736
259769
|
"one_app_readiness_failed",
|
|
@@ -260366,13 +260399,18 @@ var init_run3 = __esm({
|
|
|
260366
260399
|
var native_exports = {};
|
|
260367
260400
|
__export(native_exports, {
|
|
260368
260401
|
BLANK_CONTRAST: () => BLANK_CONTRAST,
|
|
260402
|
+
COMMAND_TIMEOUT_MS: () => COMMAND_TIMEOUT_MS,
|
|
260403
|
+
SYSTEM_WINDOW: () => SYSTEM_WINDOW,
|
|
260369
260404
|
defaultRunner: () => defaultRunner3,
|
|
260370
260405
|
deviceFor: () => deviceFor,
|
|
260406
|
+
focusedWindow: () => focusedWindow,
|
|
260371
260407
|
nativeCapture: () => nativeCapture,
|
|
260372
260408
|
parseAppLocales: () => parseAppLocales,
|
|
260373
260409
|
parseNightMode: () => parseNightMode,
|
|
260374
260410
|
parsePlistArray: () => parsePlistArray,
|
|
260411
|
+
pngSize: () => pngSize3,
|
|
260375
260412
|
resumedPackages: () => resumedPackages,
|
|
260413
|
+
runWithTimeout: () => runWithTimeout,
|
|
260376
260414
|
sameLocalOrigin: () => sameLocalOrigin,
|
|
260377
260415
|
screenLink: () => screenLink
|
|
260378
260416
|
});
|
|
@@ -260384,6 +260422,34 @@ function resumedPackages(dumpsys) {
|
|
|
260384
260422
|
if (!lines2.length) return void 0;
|
|
260385
260423
|
return lines2.flatMap((l3) => [...l3.matchAll(/\s([A-Za-z0-9_.]+)\/[A-Za-z0-9_.$]+/g)].map((m2) => m2[1]));
|
|
260386
260424
|
}
|
|
260425
|
+
function focusedWindow(dumpsys) {
|
|
260426
|
+
const m2 = /mCurrentFocus=Window\{\S+ \S+ ([^}]+)\}/.exec(dumpsys);
|
|
260427
|
+
return m2?.[1]?.trim();
|
|
260428
|
+
}
|
|
260429
|
+
function runWithTimeout(cmd, args, timeoutMs) {
|
|
260430
|
+
return new Promise((resolve116) => {
|
|
260431
|
+
const child3 = spawn11(cmd, args, { stdio: ["ignore", "pipe", "ignore"] });
|
|
260432
|
+
const chunks = [];
|
|
260433
|
+
const timer = setTimeout(() => {
|
|
260434
|
+
child3.kill("SIGKILL");
|
|
260435
|
+
child3.stdout.destroy();
|
|
260436
|
+
resolve116({ code: 124, stdout: Buffer.concat(chunks), timedOut: true });
|
|
260437
|
+
}, timeoutMs);
|
|
260438
|
+
child3.stdout.on("data", (c2) => chunks.push(c2));
|
|
260439
|
+
child3.on("error", () => {
|
|
260440
|
+
clearTimeout(timer);
|
|
260441
|
+
resolve116({ code: 127, stdout: Buffer.alloc(0) });
|
|
260442
|
+
});
|
|
260443
|
+
child3.on("close", (code2) => {
|
|
260444
|
+
clearTimeout(timer);
|
|
260445
|
+
resolve116({ code: code2 ?? 1, stdout: Buffer.concat(chunks) });
|
|
260446
|
+
});
|
|
260447
|
+
});
|
|
260448
|
+
}
|
|
260449
|
+
function pngSize3(buf) {
|
|
260450
|
+
if (buf.length < 24 || buf.readUInt32BE(0) !== 2303741511) return void 0;
|
|
260451
|
+
return { width: buf.readUInt32BE(16), height: buf.readUInt32BE(20) };
|
|
260452
|
+
}
|
|
260387
260453
|
function deviceFor(devices, platform, variant) {
|
|
260388
260454
|
if (variant === "tablet") return platform === "ios" ? devices.iosTablet : devices.androidTablet;
|
|
260389
260455
|
return platform === "ios" ? devices.ios : devices.android;
|
|
@@ -260398,7 +260464,13 @@ function screenLink(appId3, screen, entry, release3) {
|
|
|
260398
260464
|
return `himi://app/${encodeURIComponent(appId3)}/screen/${encodeURIComponent(screen)}${qs2 ? `?${qs2}` : ""}`;
|
|
260399
260465
|
}
|
|
260400
260466
|
function nativeCapture(devices, opts) {
|
|
260401
|
-
const
|
|
260467
|
+
const baseRun = opts.run ?? defaultRunner3;
|
|
260468
|
+
const run3 = async (cmd, args) => {
|
|
260469
|
+
const r3 = await baseRun(cmd, args);
|
|
260470
|
+
if (r3.timedOut && (cmd === "adb" || cmd === "xcrun")) throw new DeviceTimeout(`${cmd} ${args.join(" ")} did not answer`);
|
|
260471
|
+
return r3;
|
|
260472
|
+
};
|
|
260473
|
+
const gone = /* @__PURE__ */ new Set();
|
|
260402
260474
|
const read2 = opts.readFile ?? ((p2) => readFileSync170(p2));
|
|
260403
260475
|
const sleep2 = opts.sleep ?? ((ms2) => new Promise((r3) => setTimeout(r3, ms2)));
|
|
260404
260476
|
const settleMs = opts.settleMs ?? 1e3;
|
|
@@ -260447,14 +260519,24 @@ function nativeCapture(devices, opts) {
|
|
|
260447
260519
|
} else {
|
|
260448
260520
|
const night = await ok5("adb", ["-s", id, "shell", "cmd", "uimode", "night"]);
|
|
260449
260521
|
const locales = await run3("adb", ["-s", id, "shell", "cmd", "locale", "get-app-locales", await playerPackage(id)]);
|
|
260450
|
-
|
|
260522
|
+
const auto = await run3("adb", ["-s", id, "shell", "settings", "get", "system", "accelerometer_rotation"]);
|
|
260523
|
+
const user = await run3("adb", ["-s", id, "shell", "settings", "get", "system", "user_rotation"]);
|
|
260524
|
+
const setting = (r3) => {
|
|
260525
|
+
const v2 = r3.stdout.toString().trim();
|
|
260526
|
+
return r3.code === 0 && /^(?:\d+|null)$/.test(v2) ? v2 : void 0;
|
|
260527
|
+
};
|
|
260528
|
+
const was = { auto: setting(auto), user: setting(user) };
|
|
260529
|
+
const rotation = was.auto !== void 0 && was.user !== void 0 ? { auto: was.auto, user: was.user } : void 0;
|
|
260530
|
+
saved.set(key4, { appearance: parseNightMode(night), language: locales.code === 0 ? parseAppLocales(locales.stdout.toString()) : void 0, ...rotation ? { rotation } : {} });
|
|
260451
260531
|
}
|
|
260452
260532
|
}
|
|
260453
260533
|
async function apply2(platform, id, variant) {
|
|
260454
260534
|
const key4 = `${platform}:${id}`;
|
|
260455
260535
|
const want = variant === "dark" ? "dark" : variant === "rtl" ? "rtl" : "light";
|
|
260456
260536
|
if (applied.get(key4) === want) return;
|
|
260537
|
+
const first = !saved.has(key4);
|
|
260457
260538
|
await remember(platform, id);
|
|
260539
|
+
if (platform === "android" && first && saved.get(key4)?.rotation) await pinPortrait(id);
|
|
260458
260540
|
const dark = want === "dark", right = want === "rtl";
|
|
260459
260541
|
if (platform === "ios") {
|
|
260460
260542
|
await ok5("xcrun", ["simctl", "ui", id, "appearance", dark ? "dark" : "light"]);
|
|
@@ -260467,6 +260549,13 @@ function nativeCapture(devices, opts) {
|
|
|
260467
260549
|
}
|
|
260468
260550
|
applied.set(key4, want);
|
|
260469
260551
|
}
|
|
260552
|
+
async function pinPortrait(id) {
|
|
260553
|
+
const size = await run3("adb", ["-s", id, "shell", "wm", "size"]);
|
|
260554
|
+
const m2 = /Physical size:\s*(\d+)x(\d+)/.exec(size.stdout.toString());
|
|
260555
|
+
const landscape = m2 ? Number(m2[1]) > Number(m2[2]) : false;
|
|
260556
|
+
await run3("adb", ["-s", id, "shell", "settings", "put", "system", "accelerometer_rotation", "0"]);
|
|
260557
|
+
await run3("adb", ["-s", id, "shell", "settings", "put", "system", "user_rotation", landscape ? "1" : "0"]);
|
|
260558
|
+
}
|
|
260470
260559
|
async function originMismatch(id) {
|
|
260471
260560
|
if (!opts.serveOrigin) return "";
|
|
260472
260561
|
const known2 = originChecked.get(id);
|
|
@@ -260497,7 +260586,13 @@ function nativeCapture(devices, opts) {
|
|
|
260497
260586
|
const r3 = await run3("adb", ["-s", id, "shell", "dumpsys", "activity", "activities"]);
|
|
260498
260587
|
const resumed = r3.code === 0 ? resumedPackages(r3.stdout.toString()) : void 0;
|
|
260499
260588
|
const player = await playerPackage(id);
|
|
260500
|
-
|
|
260589
|
+
if (resumed && !resumed.includes(player)) return `the Player was not in front (${resumed.join(", ") || "nothing resumed"})`;
|
|
260590
|
+
const w2 = await run3("adb", ["-s", id, "shell", "dumpsys", "window"]);
|
|
260591
|
+
const focus = w2.code === 0 ? focusedWindow(w2.stdout.toString()) : void 0;
|
|
260592
|
+
if (!focus) return "";
|
|
260593
|
+
const owner = focus.includes("/") ? focus.slice(0, focus.indexOf("/")) : void 0;
|
|
260594
|
+
if (SYSTEM_WINDOW.test(focus) || owner !== void 0 && owner !== player) return `a system window covered the Player (${focus})`;
|
|
260595
|
+
return "";
|
|
260501
260596
|
}
|
|
260502
260597
|
async function settle2(platform, id, file2, notFrame) {
|
|
260503
260598
|
let previous;
|
|
@@ -260527,6 +260622,10 @@ function nativeCapture(devices, opts) {
|
|
|
260527
260622
|
frames.push({ surface: platform, screen, variant, skipped: { reason: `no ${platform}${variant === "tablet" ? " tablet" : ""} device passed (${flag3})` } });
|
|
260528
260623
|
continue;
|
|
260529
260624
|
}
|
|
260625
|
+
if (gone.has(id)) {
|
|
260626
|
+
frames.push({ surface: platform, screen, variant, skipped: { reason: `${id} stopped answering earlier in this run` } });
|
|
260627
|
+
continue;
|
|
260628
|
+
}
|
|
260530
260629
|
try {
|
|
260531
260630
|
const mismatch = platform === "ios" ? await originMismatch(id) : "";
|
|
260532
260631
|
if (mismatch) {
|
|
@@ -260554,9 +260653,17 @@ function nativeCapture(devices, opts) {
|
|
|
260554
260653
|
continue;
|
|
260555
260654
|
}
|
|
260556
260655
|
}
|
|
260656
|
+
const size = pngSize3(read2(file2));
|
|
260657
|
+
if (size && size.width > size.height) {
|
|
260658
|
+
frames.push({ surface: platform, screen, variant, skipped: { reason: `the ${platform} frame is landscape (${size.width}x${size.height}): turn the device upright` } });
|
|
260659
|
+
continue;
|
|
260660
|
+
}
|
|
260557
260661
|
frames.push({ surface: platform, screen, variant, file: file2 });
|
|
260558
260662
|
} catch (e2) {
|
|
260559
|
-
|
|
260663
|
+
if (e2 instanceof DeviceTimeout) {
|
|
260664
|
+
gone.add(id);
|
|
260665
|
+
frames.push({ surface: platform, screen, variant, skipped: { reason: `${id} stopped answering: ${e2.message}` } });
|
|
260666
|
+
} else frames.push({ surface: platform, screen, variant, skipped: { reason: `capture failed: ${e2.message}` } });
|
|
260560
260667
|
}
|
|
260561
260668
|
}
|
|
260562
260669
|
return frames;
|
|
@@ -260573,6 +260680,10 @@ function nativeCapture(devices, opts) {
|
|
|
260573
260680
|
} else {
|
|
260574
260681
|
if (was.appearance) await run3("adb", ["-s", id, "shell", "cmd", "uimode", "night", was.appearance]);
|
|
260575
260682
|
await run3("adb", ["-s", id, "shell", "cmd", "locale", "set-app-locales", packages.get(id) ?? androidPackage, "--locales", was.language ?? ""]);
|
|
260683
|
+
for (const [name, value2] of [["user_rotation", was.rotation?.user], ["accelerometer_rotation", was.rotation?.auto]]) {
|
|
260684
|
+
if (value2 === void 0) continue;
|
|
260685
|
+
await run3("adb", ["-s", id, "shell", "settings", ...value2 && value2 !== "null" ? ["put", "system", name, value2] : ["delete", "system", name]]);
|
|
260686
|
+
}
|
|
260576
260687
|
}
|
|
260577
260688
|
} catch {
|
|
260578
260689
|
}
|
|
@@ -260604,18 +260715,16 @@ function parseAppLocales(out2) {
|
|
|
260604
260715
|
function parsePlistArray(out2) {
|
|
260605
260716
|
return out2.replace(/^\s*\(|\)\s*$/g, "").split(",").map((s5) => s5.trim().replace(/^"|"$/g, "")).filter(Boolean);
|
|
260606
260717
|
}
|
|
260607
|
-
var BLANK_CONTRAST, defaultRunner3;
|
|
260718
|
+
var BLANK_CONTRAST, COMMAND_TIMEOUT_MS, defaultRunner3, DeviceTimeout, SYSTEM_WINDOW;
|
|
260608
260719
|
var init_native = __esm({
|
|
260609
260720
|
"src/fidelity/native.ts"() {
|
|
260610
260721
|
init_define_HHP_CATALOG();
|
|
260611
260722
|
BLANK_CONTRAST = 0.03;
|
|
260612
|
-
|
|
260613
|
-
|
|
260614
|
-
|
|
260615
|
-
|
|
260616
|
-
|
|
260617
|
-
child3.on("close", (code2) => resolve116({ code: code2 ?? 1, stdout: Buffer.concat(chunks) }));
|
|
260618
|
-
});
|
|
260723
|
+
COMMAND_TIMEOUT_MS = 9e4;
|
|
260724
|
+
defaultRunner3 = (cmd, args) => runWithTimeout(cmd, args, COMMAND_TIMEOUT_MS);
|
|
260725
|
+
DeviceTimeout = class extends Error {
|
|
260726
|
+
};
|
|
260727
|
+
SYSTEM_WINDOW = /^(?:Application Not Responding|Application Error|Waiting For Debugger)\b|^(?:NotificationShade|StatusBar)$/i;
|
|
260619
260728
|
}
|
|
260620
260729
|
});
|
|
260621
260730
|
|
|
@@ -261095,6 +261204,7 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
|
261095
261204
|
"accept-regressions",
|
|
261096
261205
|
"accept-partial",
|
|
261097
261206
|
"allow-binary-gap",
|
|
261207
|
+
"require-ota",
|
|
261098
261208
|
"no-rebind",
|
|
261099
261209
|
"help",
|
|
261100
261210
|
"static",
|
|
@@ -261536,6 +261646,9 @@ var USAGE = `himi \u2014 the Himalaya authoring CLI (remote dev loop)
|
|
|
261536
261646
|
the plane refuses a release declaring a permission-bearing capability
|
|
261537
261647
|
(camera, location, push, \u2026) the app's last \`himi dist\` lacks
|
|
261538
261648
|
(binary_capability_gap) unless --allow-binary-gap
|
|
261649
|
+
every push reports nativeCompatibility: ota | needs_binary \u2014 whether
|
|
261650
|
+
the release fits the app's live binaries (newest dist per platform);
|
|
261651
|
+
--require-ota refuses a needs_binary release (native_build_required)
|
|
261539
261652
|
the published slug is namespaced per owner (<ownerPrefix>.<name>),
|
|
261540
261653
|
composed offline from the token; himalaya.content.json is not rewritten.
|
|
261541
261654
|
off-repo defaults to the public wix target; in-repo defaults to local.
|
|
@@ -262197,7 +262310,7 @@ var COMMANDS = [
|
|
|
262197
262310
|
{ name: "base44", summary: "read a BASE44 app into an app book (book.json + BOOK.md) for the agent building a Himi app from it \u2014 the Base44 counterpart of `site analyze`, READ-ONLY. `analyze --url <published app>` is the VISITOR pass: the app id, name, favicon and colours from the published SPA, its router paths, and screenshots + look tokens from the Playwright crawl. `analyze --app-id <id>` adds the OWNER pass and needs a session: the project source under <out>/source/ (the read half of `base44 eject` \u2014 GET api/apps/<id>/eject \u2014 through the same deny-list and secret scan `himi push` uses, widened by the book's token shapes; `eject` itself is never run because it CREATES a copy of the app), every entity's JSON schema, required fields and RLS rules with up to --sample redacted rows (default 5, 0 = off), backend functions, agents, connectors (names and scopes only, never tokens), secret NAMES (never values), auth visibility + providers, and the route \u2192 component \u2192 entities map from the source router. Every chapter it could not read is listed in `gaps` rather than failing the run. `login` runs Base44's device sign-in and stores the session in ~/.himi/base44/session.json (never the repo; --from-base44-cli imports `npx base44 login`'s session instead); BASE44_ACCESS_TOKEN in the environment wins, for CI. `whoami` prints who is signed in (never the token); `logout` removes the stored session. `auth-check --url <tenant> --ios-app-id <PREFIX.bundle.id>` and/or `--android-package <package> --android-sha256 <fingerprint>` checks public native-login associations and prints missing entries; it never reads an owner token. --json prints the book itself. himi docs base44-app-context. `adopt` turns the book into a reviewable base44-entities.ts of ADOPTED entity + function declarations for config.ts (never edits config.ts, never overwrites); `entities query` is READ-ONLY and reports, per declared entity, ownership, row count and schema drift against the live app, plus foreign entities. `entities create` provisions the app's OWNED Himi<App>* entities: Base44's schema write is a destructive full-set sync, so the single PUT carries every entity in a freshly read eject snapshot (foreign ones verbatim) and the run refuses BEFORE sending when one would be dropped, the snapshot is unreadable or empty, or it moved since the plan; removing an owned field/entity needs --allow-destructive, rewriting owned RLS needs --apply-permissions. `entities seed` bulk-inserts seed rows into empty owned entities only (--ai writes base44-seed.json offline). `functions deploy` ships owned functions one PUT each, never the bulk sync or DELETE, and refuses a name deployed by someone else. All three print a plan and write only with --yes, which needs a `login --write` (apps:write) session. `types` writes tier5-src/_shared/base44-entities.ts \u2014 a row type and a typed `entities<Row>()` handle per declared entity, byte-stable \u2014 and `himi validate` reports base44-types-stale when that file falls behind the block (nothing when it is absent). himi docs base44-entities. `screens` (base44-starter packages) writes one generated list + detail screen per declared entity over the template's shared engine, with write controls gated by the entity's rls; an unchanged config reports every file `unchanged`, a hand-edited generated file is `skipped-edited` unless --force; never calls Base44. himi docs base44-app-to-himi-app", required: "analyze (--url <https://\u2026> | --app-id <id>) [--out .himi/base44-book] [--sample <n>] [--json] | adopt [--book .himi/base44-book] [--entities A,B] [--write [path]] [--json] | entities query [--content <dir>] [--all] [--json] | entities create [--app <a>] [--yes] [--allow-destructive] [--apply-permissions] [--empty-app-ok] | entities seed [--app <a>] [--yes] [--only A,B] [--ai] | functions deploy [--app <a>] [--yes] [--only a,b] | types [--content <dir>] [--json] | screens [--content <dir>] [--force] [--dry-run] [--json] | login [--write] [--from-base44-cli] | whoami | logout | auth-check --url <https://tenant> [--ios-app-id <PREFIX.bundle.id>] [--android-package <package> --android-sha256 <fingerprint>]" },
|
|
262198
262311
|
{ name: "doctor", summary: 'off-VPN preflight in one shot: probe the PUBLIC data plane (www.wixapis.com \u2014 reachable off-VPN), the INTERNAL serve/control plane for the selected target (VPN-gated), and report auth state (dpx session on disk + stored control token). --dpx additionally runs a live, EADDRINUSE-safe `dpx whoami`. Machine-readable with --json (an unreachable internal plane carries a stable code:"needs_vpn" so an agent branches on the code, not the prose); human-readable otherwise. Also reports whether Playwright and its Chromium are installed (code:"browser_unavailable" + the exact `fix` command when not \u2014 `himi site analyze`, `render --png` and the screenshot paths need them); --install-browser downloads the Chromium the CLI\'s own Playwright launches, then re-checks. Never loads the authoring runtime \u2014 works off-repo.', required: "[--target <t>] [--dpx] [--install-browser] [--json] [--data-url <url>] [--timeout <ms>]" },
|
|
262199
262312
|
{ name: "upgrade", summary: "install the newest published CLI (`npm i -g @wix/himalaya-cli@latest`) and report what moved. This is the explicit door: himi also updates itself when the running build is more than a week old \u2014 unattended it just does it and re-runs your command, at a terminal it asks first \u2014 and `HIMI_NO_UPDATE_CHECK=1` turns that off, leaving this command as the way to catch up. Reports `unchanged` rather than claiming success when npm exits 0 without moving the version, which is what a registry mirror serving its own pinned copy looks like.", required: "[--json]" },
|
|
262200
|
-
{ name: "push", summary: "lint + build + publish a release (default --draft: servable via ?release= but NOT live). REFUSES to publish on any error unless --force; --strict promotes warnings. Prints preview + agent-context links. A successful draft push also rebuilds the making-of (.himi/making-of.html, local and offline) and names it as `reel` \u2014 the file to hand the owner beside the preview link. Its postcard carries the home shot only when that shot is newer than the last source edit; a repeat draft's postcard adds what changed since the last one (\"Since the last draft: the home screen changed.\", from the release manifests' screen hashes, remembered in .himi/last-draft.json); otherwise the postcard says why and names `himi render <home> --png`, and the envelope's `postcardPicture: {skipped, render}` leads next[] with that render (the push never renders it itself). The published slug is NAMESPACED per owner \u2014 `<ownerPrefix>.<name>`, composed offline from the control token's ownerPrefix claim, so the CLI and the server derive the identical string and himalaya.content.json is NOT rewritten (a legacy token with no ownerPrefix publishes the declared name unchanged). An app claimed BEFORE namespacing is stored under its FLAT slug, so the claim route answers `alreadyYours` naming that slug and the push adopts it \u2014 reported as `adoptedSlug`, since it is the one case where the published `app` differs from what the declared name composes to. `--no-claim` skips the route that knows this, so a pre-namespacing app pushed with it still fails 403. --visibility public|unlisted decides whether /v1/apps + the Himi Player picker LIST the app (also declarable as `visibility` in himalaya.content.json; omitted, a brand-new app defaults to unlisted \u2014 share by link \u2014 and an existing setting is kept). --account-id names which account owns the app when your Wix session resolves to several (the auto-claim of a brand-new slug cannot guess \u2014 without it a multi-account caller is told to name one). An unforced push of a release that carries SCREENS also refuses when `.himi/ux-audit.json` holds no mobile-UX drive recorded against that release id, or holds one that FAILED (#2955) \u2014 a published draft IS the owner-private preview a customer is handed; `himi ux record` clears it and `--force` overrides it, which the success envelope then says out loud. `--only <selector>` publishes ONLY the named items as a release derived from the app's live release (or `--from-release <id>`), running the identical build + lint gate and simply publishing less; it requires an explicit `--draft` or `--live` because a partial publish has no safe default, never claims a slug, and carries neither attestation nor a source archive (both named in the output). Selectors are comma-separated in ONE `--only`: `changed` (every item whose bytes differ from the base), `screen:<id|glob>`, `bundle:<name>`, `tokens`, `app-config` \u2014 a selected screen drags its logic bundle and a selected bundle drags the screens that reference it, or the bytes land under a key nothing reads. The plane REFUSES (409 binary_capability_gap) a release declaring a PERMISSION-BEARING capability (iOS usage string or entitlement, Android permission \u2014 camera, location, push, \u2026) that the app's last successful `himi dist` was not built with: an OTA push cannot add an OS permission, and on iOS asking for one whose purpose string is missing kills the app. Run `himi dist` first, or pass `--allow-binary-gap` when every installed binary already carries it \u2014 recorded on the release as `allowedBinaryGap`. A gap in a permission-free capability (share, clipboard, \u2026) stays the `needsBinary` advice.", required: "[--content <dir>] [--draft] [--live] [--force] [--strict] [--label] [--notes] [--visibility public|unlisted] [--allow-binary-gap] [--no-claim] [--account-id <id>] [--only <selector>] [--from-release <id>] [--accept-regressions] [--accept-partial] [--app <slug>] (--control-token)" },
|
|
262313
|
+
{ name: "push", summary: "lint + build + publish a release (default --draft: servable via ?release= but NOT live). REFUSES to publish on any error unless --force; --strict promotes warnings. Prints preview + agent-context links. A successful draft push also rebuilds the making-of (.himi/making-of.html, local and offline) and names it as `reel` \u2014 the file to hand the owner beside the preview link. Its postcard carries the home shot only when that shot is newer than the last source edit; a repeat draft's postcard adds what changed since the last one (\"Since the last draft: the home screen changed.\", from the release manifests' screen hashes, remembered in .himi/last-draft.json); otherwise the postcard says why and names `himi render <home> --png`, and the envelope's `postcardPicture: {skipped, render}` leads next[] with that render (the push never renders it itself). The published slug is NAMESPACED per owner \u2014 `<ownerPrefix>.<name>`, composed offline from the control token's ownerPrefix claim, so the CLI and the server derive the identical string and himalaya.content.json is NOT rewritten (a legacy token with no ownerPrefix publishes the declared name unchanged). An app claimed BEFORE namespacing is stored under its FLAT slug, so the claim route answers `alreadyYours` naming that slug and the push adopts it \u2014 reported as `adoptedSlug`, since it is the one case where the published `app` differs from what the declared name composes to. `--no-claim` skips the route that knows this, so a pre-namespacing app pushed with it still fails 403. --visibility public|unlisted decides whether /v1/apps + the Himi Player picker LIST the app (also declarable as `visibility` in himalaya.content.json; omitted, a brand-new app defaults to unlisted \u2014 share by link \u2014 and an existing setting is kept). --account-id names which account owns the app when your Wix session resolves to several (the auto-claim of a brand-new slug cannot guess \u2014 without it a multi-account caller is told to name one). An unforced push of a release that carries SCREENS also refuses when `.himi/ux-audit.json` holds no mobile-UX drive recorded against that release id, or holds one that FAILED (#2955) \u2014 a published draft IS the owner-private preview a customer is handed; `himi ux record` clears it and `--force` overrides it, which the success envelope then says out loud. `--only <selector>` publishes ONLY the named items as a release derived from the app's live release (or `--from-release <id>`), running the identical build + lint gate and simply publishing less; it requires an explicit `--draft` or `--live` because a partial publish has no safe default, never claims a slug, and carries neither attestation nor a source archive (both named in the output). Selectors are comma-separated in ONE `--only`: `changed` (every item whose bytes differ from the base), `screen:<id|glob>`, `bundle:<name>`, `tokens`, `app-config` \u2014 a selected screen drags its logic bundle and a selected bundle drags the screens that reference it, or the bytes land under a key nothing reads. The plane REFUSES (409 binary_capability_gap) a release declaring a PERMISSION-BEARING capability (iOS usage string or entitlement, Android permission \u2014 camera, location, push, \u2026) that the app's last successful `himi dist` was not built with: an OTA push cannot add an OS permission, and on iOS asking for one whose purpose string is missing kills the app. Run `himi dist` first, or pass `--allow-binary-gap` when every installed binary already carries it \u2014 recorded on the release as `allowedBinaryGap`. A gap in a permission-free capability (share, clipboard, \u2026) stays the `needsBinary` advice. Every push reports `nativeCompatibility: \"ota\" | \"needs_binary\"` with `nativeFingerprints.live`: whether the release fits the app's live binaries \u2014 the newest successful dist per platform, each named by its native fingerprint (shell + core + linked capability set) \u2014 and absent when the app has no recorded dist. `--require-ota` turns `needs_binary` into a refusal before anything is written (`native_build_required`).", required: "[--content <dir>] [--draft] [--live] [--force] [--strict] [--label] [--notes] [--visibility public|unlisted] [--allow-binary-gap] [--require-ota] [--no-claim] [--account-id <id>] [--only <selector>] [--from-release <id>] [--accept-regressions] [--accept-partial] [--app <slug>] (--control-token)" },
|
|
262201
262314
|
{ name: "pack", summary: 'write the app as a PORTABLE .himi package \u2014 one self-contained file holding every screen, Tier-5 bundle, token, asset and the app-config. Packages are live by default: they boot bundled content offline, then Himi Player follows its baked-in production ring. `--snapshot` makes a frozen reproducible artifact. Package-supplied origins are never trusted. --format dir writes the same tree unpacked, for static hosting. --release-dir packs a release that is already built on disk (needs --app) instead of rebuilding from source. `--dev` ALSO packs the app\'s own source archive into the container (`source.zip`, header `contents: "dev"`), so the package can be handed to someone who then keeps building \u2014 collected through the same deny-list and secret scan `himi push` uses, and refused if a credential is found. A dev package IS the codebase: it is never the default, it is always labelled in the output, the web host will not open one, and it is archive-only (`--dev --format dir` is refused, because a reader that predates the source entry drops it before hashing a directory and would call the package tampered). Restore one with `himi import`.', required: "[--content <dir>] [--out <file|dir>] [--format zip|dir] [--name <title>] [--snapshot] [--dev] [--strict] [--force] | --release-dir <dir> --app <a>" },
|
|
262202
262315
|
{ name: "import", summary: "turn a `himi pack --dev` package back into an EDITABLE content package \u2014 the file counterpart of `himi pull`, needing no serve plane, no account and no network. Refuses an invalid package before trusting its source (the content hash is recomputed over every entry on open, so the archive is provably the one that was packed), and refuses a RELEASE package by naming the absence \u2014 it carries built output and no source \u2014 rather than reporting a missing file. `--name` re-substitutes the app identity through the same machinery `himi init --template` and `himi pull --name` use, so the restored tree is a NEW app rather than a second copy of the same one, and a name that also appears inside a screen id (`feed` in `feed_home`) is left alone. A non-empty destination needs `--force` and a merge NAMES what it kept (`left: [...]`), the same contract `himi pull --force` has; a shape clash is refused whole before anything is written. There is no `--replace`: a file you were handed is not the plane's per-release archive.", required: "<package.himi> [--out <dir>] [--name <new>] [--force]" },
|
|
262203
262316
|
{ name: "pull", summary: "restore an app's SOURCE from the serve plane into an editable content package \u2014 the other half of `himi push`, which archives the content package on every publish. Owner or editor only: a viewer may download the RUNNING app (`/v1/owner/package`), not the codebase it was built from. A PAST release is restorable, not only the live one \u2014 the archive is content-addressed per release, so it has none of the live-single-slot problem that makes `himi pack` current-release-only. Two limits: pruning keeps the current release plus the newest ~20 ledger entries, and a release id identifies OTA content rather than source, so a source-only change republishes under the same id and replaces that id's archive. A release published before source archiving shipped, or pushed with `--no-source`, answers `app_source_not_found` and says to push again. `--name` re-substitutes the app identity through the same machinery `himi init --template` uses, so the restored tree is a NEW app rather than a second copy of the same one, and a name that also appears inside a screen id (`feed` in `feed_home`) is left alone. A NON-EMPTY destination is refused unless you say which you mean: `--force` merges and reports \u2014 it writes the archive over what is there, keeps files the release does not carry, and NAMES every one of them as `left: [...]` so a tree that matches no release is never silent (#2437); `--replace` restores exactly what was archived, removing those files first (`removed: [...]`) and implying `--force`. `--replace` refuses a directory holding no `himalaya.content.json`, so a mistyped `--out` cannot clear an unrelated tree, and the only paths it can remove are the ones a push would have archived \u2014 `.git/`, `node_modules/`, `dist/`, `.env*` and key material are out of its reach by construction.", required: "<app> [--release <id>] [--out <dir>] [--name <new>] [--force|--replace] [--target <t>]" },
|
|
@@ -265382,6 +265495,7 @@ async function pushCommand(ctx) {
|
|
|
265382
265495
|
...attestation ? { attestation } : {},
|
|
265383
265496
|
...forcedPastErrors ? { forcedPastErrors: true } : {},
|
|
265384
265497
|
...flags["allow-binary-gap"] === true ? { allowBinaryGap: true } : {},
|
|
265498
|
+
...flags["require-ota"] === true ? { requireOta: true } : {},
|
|
265385
265499
|
...oneAppMarked ? { oneAppMigration: {
|
|
265386
265500
|
workflow: "one-app-to-himi-app",
|
|
265387
265501
|
sourceApp: payload.app,
|
|
@@ -265475,6 +265589,21 @@ async function pushCommand(ctx) {
|
|
|
265475
265589
|
}));
|
|
265476
265590
|
return 1;
|
|
265477
265591
|
}
|
|
265592
|
+
if (!r3.ok && r3.status === 409 && r3.json?.error === "native_build_required") {
|
|
265593
|
+
const j2 = r3.json;
|
|
265594
|
+
print(pushFailure2("native_build_required", {
|
|
265595
|
+
ok: false,
|
|
265596
|
+
app: app2,
|
|
265597
|
+
pushed: false,
|
|
265598
|
+
error: "native_build_required",
|
|
265599
|
+
nativeCompatibility: "needs_binary",
|
|
265600
|
+
missing: j2.missing ?? [],
|
|
265601
|
+
nativeFingerprints: j2.nativeFingerprints ?? { live: [] },
|
|
265602
|
+
message: j2.message,
|
|
265603
|
+
hint: j2.hint ?? "run `himi dist` and ship that binary first, or drop --require-ota"
|
|
265604
|
+
}));
|
|
265605
|
+
return 1;
|
|
265606
|
+
}
|
|
265478
265607
|
if (!r3.ok && r3.json?.code === "compressed_publish_unsupported") {
|
|
265479
265608
|
const j2 = r3.json;
|
|
265480
265609
|
print(pushFailure2("compressed_publish_unsupported", {
|
|
@@ -265525,7 +265654,15 @@ async function pushCommand(ctx) {
|
|
|
265525
265654
|
manifest: manifest2
|
|
265526
265655
|
}) : null;
|
|
265527
265656
|
const needsBinary = (await Promise.resolve().then(() => (init_capabilities(), capabilities_exports))).needsBinaryNotice(r3.json);
|
|
265657
|
+
const nativeCompat = (await Promise.resolve().then(() => (init_capabilities(), capabilities_exports))).nativeCompatibilityNotice(r3.json);
|
|
265658
|
+
if (nativeCompat) io2.error(`${nativeCompat.nativeCompatibility === "ota" ? "\u2714" : "\u26A0"} ${nativeCompat.message}`);
|
|
265528
265659
|
const remoteWarnings = r3.json?.warnings ?? [];
|
|
265660
|
+
if (flags["require-ota"] === true && r3.json?.requireOtaChecked !== true) {
|
|
265661
|
+
remoteWarnings.push({
|
|
265662
|
+
code: "require_ota_unenforced",
|
|
265663
|
+
message: `this serve plane predates --require-ota and published the release without checking it against the app's live binaries${nativeCompat?.nativeCompatibility === "needs_binary" ? "; it needs a new binary" : ""}`
|
|
265664
|
+
});
|
|
265665
|
+
}
|
|
265529
265666
|
const ringPinReport = draft ? null : await (await Promise.resolve().then(() => (init_ring_pins(), ring_pins_exports))).readRingPins(client4(), {
|
|
265530
265667
|
app: app2,
|
|
265531
265668
|
releaseId: release3,
|
|
@@ -265543,6 +265680,7 @@ async function pushCommand(ctx) {
|
|
|
265543
265680
|
...publishWarnings.length ? { warnings: publishWarnings } : {},
|
|
265544
265681
|
...ringPinReport ? { ringPins: ringPinReport.ringPins } : {},
|
|
265545
265682
|
...needsBinary ? { needsBinary } : {},
|
|
265683
|
+
...nativeCompat ? { nativeCompatibility: nativeCompat.nativeCompatibility, ...nativeCompat.nativeFingerprints ? { nativeFingerprints: nativeCompat.nativeFingerprints } : {} } : {},
|
|
265546
265684
|
...unchanged ? { unchanged: true, unchangedNote: "the serve plane already holds this exact release under this id, so nothing was written" } : {},
|
|
265547
265685
|
...afterDraft?.firstLook ? { firstLookPostcard: afterDraft.firstLook } : {},
|
|
265548
265686
|
...afterDraft?.postcard ? { postcard: afterDraft.postcard } : {},
|
package/guides/hhp.md
CHANGED
|
@@ -218,7 +218,7 @@ himi fidelity --content <dir> [--screen a,b] [--variant light,dark,rtl,tablet] [
|
|
|
218
218
|
For each screen and variant (`light`, `dark`, `rtl`, `tablet`), the command does four things:
|
|
219
219
|
|
|
220
220
|
1. **Captures the mockup.** It draws the page in Chromium at the variant's width. Dark mode is drawn by emulating `prefers-color-scheme`. RTL is drawn by setting `dir=rtl` on the page.
|
|
221
|
-
2. **Captures the web render** from the app's recorded data, as `himi render` does by default. Native frames come from Himi Player on the devices you pass: `--ios <udid>` and `--android <serial>`, plus `--ios-tablet` and `--android-tablet` for the tablet variant. Only those devices are touched. For each variant the command sets dark or light appearance and, for `rtl`, the app's right-to-left language (iOS `AppleLanguages`, Android per-app locale, API 33+). It opens `himi://app/<app>/screen/<screen>` and captures once two frames match, the frame is not a blank or loading page, and, on Android, the Player is the app in front rather than the launcher. A screen that has not settled that way after 30 seconds is reported `skipped` as `capture_unsettled`, never judged. Every setting it changed is restored afterwards, also on Ctrl-C. A variant with no device is reported `skipped`, never passed. Without `--release <id>` or `--serve <port>` the Player shows the app's **live** release, not your working copy. `--serve <port>` serves the working copy on `127.0.0.1:<port>` as `himi run` does, so native and web render the same release. The Player reads a local origin only from a Debug build that compiled it in (see [View your package on a device](himi-player-implementation.md#view-your-package-on-a-device)): build it with `HIMALAYA_API_BASE_URL_INFO=http://127.0.0.1:<port>` on iOS and `-PhimalayaDevServeBaseUrl=http://10.0.2.2:<port>` on Android. An iOS device whose Player reads another origin is skipped with the rebuild to run. Android's origin cannot be read back from the installed app, so check that build yourself. A screen that declares `params` is skipped natively for now, because the Player's deep link does not carry them yet. With `--serve`, a screen a link cannot open is skipped natively too, with the reason: when config.ts declares `navigation.linkableScreens`, the Player opens only a tab root, the home screen, or a linkable screen marked `isPublic: true`, and stays on home for any other. On a fresh iOS simulator, open one `himi://` link by hand first and accept iOS's "Open in Himi Player?" prompt: the command cannot answer it, and until it is accepted every iOS capture shows the prompt.
|
|
221
|
+
2. **Captures the web render** from the app's recorded data, as `himi render` does by default. Native frames come from Himi Player on the devices you pass: `--ios <udid>` and `--android <serial>`, plus `--ios-tablet` and `--android-tablet` for the tablet variant. Only those devices are touched. For each variant the command sets dark or light appearance and, for `rtl`, the app's right-to-left language (iOS `AppleLanguages`, Android per-app locale, API 33+). It opens `himi://app/<app>/screen/<screen>` and captures once two frames match, the frame is not a blank or loading page, and, on Android, the Player is the app in front rather than the launcher. A screen that has not settled that way after 30 seconds is reported `skipped` as `capture_unsettled`, never judged. On Android a system window over the Player, such as a "System UI isn't responding" dialog, also keeps a frame from settling. The run turns an Android device upright for its duration, as the web render is portrait, and reports any landscape frame `skipped`. A device call that does not answer within 90 seconds marks that device gone: its remaining frames are reported `skipped`, so a device that shut down mid-run cannot hang the run. Every setting it changed is restored afterwards, also on Ctrl-C. A variant with no device is reported `skipped`, never passed. Without `--release <id>` or `--serve <port>` the Player shows the app's **live** release, not your working copy. `--serve <port>` serves the working copy on `127.0.0.1:<port>` as `himi run` does, so native and web render the same release. The Player reads a local origin only from a Debug build that compiled it in (see [View your package on a device](himi-player-implementation.md#view-your-package-on-a-device)): build it with `HIMALAYA_API_BASE_URL_INFO=http://127.0.0.1:<port>` on iOS and `-PhimalayaDevServeBaseUrl=http://10.0.2.2:<port>` on Android. An iOS device whose Player reads another origin is skipped with the rebuild to run. Android's origin cannot be read back from the installed app, so check that build yourself. A screen that declares `params` is skipped natively for now, because the Player's deep link does not carry them yet. With `--serve`, a screen a link cannot open is skipped natively too, with the reason: when config.ts declares `navigation.linkableScreens`, the Player opens only a tab root, the home screen, or a linkable screen marked `isPublic: true`, and stays on home for any other. On a fresh iOS simulator, open one `himi://` link by hand first and accept iOS's "Open in Himi Player?" prompt: the command cannot answer it, and until it is accepted every iOS capture shows the prompt.
|
|
222
222
|
3. **Scores mockup↔web** with ImageMagick SSIM, globally and per tile. The worst tile says where the screens differ most.
|
|
223
223
|
4. **Asks a fresh model** two questions, using the repo's fidelity judge prompt. The model never ran in the session that wrote the app.
|
|
224
224
|
- **Design:** does WEB look like the MOCKUP? This judges the port.
|
|
@@ -245,6 +245,7 @@ worker's bundle. These names are stable.
|
|
|
245
245
|
| `no_serve_plane` | A loopback service answering a partial push is not a himi publishing service. |
|
|
246
246
|
| `upload_http_error` | The upload returned a non-success HTTP status. `status` and the original `body` remain available; server errors never replace this CLI code. |
|
|
247
247
|
| `binary_capability_gap` | The publish was refused (409): it declares a permission-bearing capability (iOS usage string or entitlement, Android permission) the app's last successful `himi dist` was not built with. `missing` names the ids; `dists` lists each platform's last dist that lacks them (`platform`, `jobId`, `missing`). The same code comes from `himi push --only` and `himi patch`. Run `himi dist` first, or re-run with `--allow-binary-gap`. |
|
|
248
|
+
| `native_build_required` | `himi push --require-ota` and the release needs a new binary: it declares a capability that at least one of the app's live binaries — its newest successful `himi dist` per platform — does not carry. The publish was refused (409) before anything was written. Carries `nativeCompatibility: "needs_binary"`, `missing` (the ids), and `nativeFingerprints.live` (one row per live binary: `platform`, `jobId`, `fingerprint`, `missing`, and `needed`, the fingerprint a binary of that shell and core would need). Run `himi dist` and ship that binary first, or drop `--require-ota`. Without the flag the same release publishes and the success envelope says `nativeCompatibility: "needs_binary"`. When the app has no recorded dist there is nothing to compare with, so nothing is refused. |
|
|
248
249
|
| `claim_failed` | Auto-claim returned a fatal refusal. Existing server fields and `status` remain available. |
|
|
249
250
|
| `invalid_flag_value` | A flag violates the CLI flag grammar. |
|
|
250
251
|
| `invalid_selector` | `--only` is missing a selector or its selector syntax is invalid. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1697.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": [
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"artifactId": "himalaya-cli"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
"falconPackageHash": "
|
|
84
|
+
"falconPackageHash": "f9dd6889f4ab500742346844777accfc22fa427e7505ee2308b17cc4"
|
|
85
85
|
}
|