@wix/himalaya-cli 0.1366.0 → 0.1367.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 +4 -2
- package/guides/himi-json-output.md +9 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -7706,6 +7706,7 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
|
|
|
7706
7706
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
7707
7707
|
var init_bindings = __esm({
|
|
7708
7708
|
"../../core/ts/src/bindings.ts"() {
|
|
7709
|
+
"use strict";
|
|
7709
7710
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
7710
7711
|
BINDING_SIGIL_RE = new RegExp(
|
|
7711
7712
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -174440,7 +174441,7 @@ var ServeCliClient = class {
|
|
|
174440
174441
|
const headers2 = { ...this.ctrlHeaders(), ...gzip ? { "content-encoding": "gzip" } : {} };
|
|
174441
174442
|
const res = await this.request("control", "POST", "/v1/admin/release", { rawBody: bytes2, headers: headers2 });
|
|
174442
174443
|
if (gzip && res.status === 400 && res.json?.error === "bad_json") {
|
|
174443
|
-
const json6 = { error: "compressed_publish_unsupported", hint: "this body is over the plain publish cap, and
|
|
174444
|
+
const json6 = { code: "compressed_publish_unsupported", error: "compressed_publish_unsupported", hint: "this body is over the plain publish cap, and the plane did not accept it compressed: either the plane predates gzip publish bodies (it needs a serve deploy), or this is a self-serve credential, which keeps the plain 8 MB cap" };
|
|
174444
174445
|
return { ...res, json: json6, text: JSON.stringify(json6) };
|
|
174445
174446
|
}
|
|
174446
174447
|
return res;
|
|
@@ -179820,7 +179821,8 @@ ${doNow.map((l2) => ` ${l2}`).join("\n")}`);
|
|
|
179820
179821
|
}
|
|
179821
179822
|
if (!r2.ok) {
|
|
179822
179823
|
const hint = releaseIdExistsHint(r2.status, r2.json);
|
|
179823
|
-
|
|
179824
|
+
const code = r2.json?.code === "compressed_publish_unsupported" ? "compressed_publish_unsupported" : void 0;
|
|
179825
|
+
print({ ok: false, ...code ? { code } : {}, status: r2.status, body: r2.json ?? r2.text, ...hint ? { hint } : {} });
|
|
179824
179826
|
return 1;
|
|
179825
179827
|
}
|
|
179826
179828
|
if (sendPayload.sourceGz && r2.json?.template !== true) {
|
|
@@ -106,6 +106,15 @@ failure codes. A forced push still follows the existing override rules.
|
|
|
106
106
|
| `config_not_applied` | `--content` was given, but the binding is not in its `config.ts` (no config file, a dynamic or symlinked config, an edit `himi validate` rolled back, or no validator); the `config` report or `note` says what to add by hand. |
|
|
107
107
|
| `connect_failed` | An otherwise unclassified error stopped connect (for example an unreadable manifest, or a failed `--out` write). The original message is preserved. |
|
|
108
108
|
|
|
109
|
+
## `himi template publish` codes
|
|
110
|
+
|
|
111
|
+
`template publish` is still mostly legacy. It carries one code so far, on the path that sends the
|
|
112
|
+
whole body gzip-encoded because it is over the plain 8 MB cap:
|
|
113
|
+
|
|
114
|
+
| Code | Meaning |
|
|
115
|
+
|---|---|
|
|
116
|
+
| `compressed_publish_unsupported` | The publish body went out gzipped and the publishing service did not accept it compressed, so it read the bytes as malformed JSON. Either the service does not accept compressed bodies yet, or the credential is a self-serve one, which keeps the 8 MB uncompressed limit. Nothing was written. |
|
|
117
|
+
|
|
109
118
|
## `himi site member-app` codes
|
|
110
119
|
|
|
111
120
|
`himi site member-app set|clear|show <site>` prints one envelope. A refusal from the publishing service
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1367.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": "
|
|
74
|
+
"falconPackageHash": "f0bd979c3332da32c4c59ee213e5f02fad1f6edd492c8ab44ee4947b"
|
|
75
75
|
}
|