@wix/himalaya-cli 0.1575.0 → 0.1576.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
@@ -11082,6 +11082,7 @@ function buttonVariant(style) {
11082
11082
  var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_SIZES, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty2, own, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
11083
11083
  var init_tokens = __esm({
11084
11084
  "../../core/ts/src/tokens.ts"() {
11085
+ "use strict";
11085
11086
  init_define_HHP_CATALOG();
11086
11087
  SYSTEM_FONT_FAMILY = "$system";
11087
11088
  TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
@@ -189268,7 +189269,15 @@ async function runStore(pos, flags, io2, deps) {
189268
189269
  try {
189269
189270
  cfg = deps.loadStoreConfig(app);
189270
189271
  } catch (e2) {
189271
- return fail6(e2.message);
189272
+ if (sub === "status") return fail6(e2.message);
189273
+ let findings2;
189274
+ try {
189275
+ findings2 = await deps.preflightApp(app, { profileFlag: str9(flags.profile) });
189276
+ } catch (preflightError) {
189277
+ findings2 = [{ level: "error", message: preflightError.message }];
189278
+ }
189279
+ if (!json8) for (const f2 of findings2) io2.log(` ${f2.level === "error" ? "\u2717" : "!"} ${f2.message}`);
189280
+ return fail6(e2.message, { code: "store_config_unavailable", findings: findings2 });
189272
189281
  }
189273
189282
  if (sub === "status") {
189274
189283
  let creds2;
@@ -201799,6 +201808,7 @@ function structureUrl(path2, metaSiteId, instance, locale) {
201799
201808
  url.searchParams.set("appInstance", instance === "branded" ? "BRANDED" : "DEFAULT");
201800
201809
  url.searchParams.set("locale", locale);
201801
201810
  url.searchParams.set("forApp", sourceApp(instance));
201811
+ url.searchParams.set("sourceCollection", "true");
201802
201812
  return url.href;
201803
201813
  }
201804
201814
  function businessProjection(value2, metaSiteId) {
@@ -14,6 +14,14 @@ require those fields. Existing error-only push refusals now also carry `ok: fals
14
14
  Output channels and process exit codes are unchanged. Read JSON failures on both
15
15
  stdout and stderr; progress/warnings are not failure envelopes.
16
16
 
17
+ ## `himi store preflight` / `himi store upload` / `himi testflight` config failures
18
+
19
+ | Code | Meaning |
20
+ | --- | --- |
21
+ | `store_config_unavailable` | Loading the local store configuration threw an error, such as a missing or unreadable file. Exit 2; no build or upload runs. The existing `error` remains on stderr, alongside `findings` from the app preflight, including developer identity diagnostics available without store configuration. If preflight itself fails, its diagnostic is included as an error finding. |
22
+
23
+ Other legacy store failures, including `store status`, remain outside this migration.
24
+
17
25
  `code` is the machine contract. `error`/`errors`/`message` describe the failure for
18
26
  people and `hint`, when present, suggests recovery. Neither their wording nor the
19
27
  presence of one of those legacy shapes identifies the failure class. The complete
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1575.0",
3
+ "version": "0.1576.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": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "ddd3e8a75c29cf1fa48b60d543d4ba99be00f7a8a9707e3b6c88e776"
74
+ "falconPackageHash": "b3770b71ba8570708ab97e43a149a8ee2880f9fea27a618d80902862"
75
75
  }