@wix/himalaya-cli 0.1350.0 → 0.1352.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 +643 -107
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +26 -1
- package/package.json +2 -2
|
Binary file
|
|
@@ -6,7 +6,7 @@ repurposed when human wording changes. New codes may be added; consumers must
|
|
|
6
6
|
handle an unknown code as a failure, without parsing prose.
|
|
7
7
|
|
|
8
8
|
**Rollout:** this contract is enforced for **`himi push`**, including `--only`,
|
|
9
|
-
first,
|
|
9
|
+
first, for **`himi store iap connect`**, and for **`himi site member-app`**. Other subcommands still have legacy failures without codes and are a
|
|
10
10
|
follow-up migration. This is an additive change: existing `error`, `errors`,
|
|
11
11
|
`message`, `hint`, status, body, and gate-specific fields stay as they were.
|
|
12
12
|
Some legacy envelopes have no singular `error` or `hint`; consumers must not
|
|
@@ -106,6 +106,31 @@ 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 site member-app` codes
|
|
110
|
+
|
|
111
|
+
`himi site member-app set|clear|show <site>` prints one envelope. A refusal from the publishing service
|
|
112
|
+
keeps the service's own `error` in `serverError` and its HTTP `status`; the CLI `code` is one of:
|
|
113
|
+
|
|
114
|
+
| Code | Meaning |
|
|
115
|
+
|---|---|
|
|
116
|
+
| `invalid_usage` | Missing or malformed op, site id, `--app` or `--platform`. Nothing was sent. |
|
|
117
|
+
| `insecure_target` | The target's control URL is not an https `wix.com` host (or loopback), so the Wix credential was neither minted nor sent. Nothing was sent. |
|
|
118
|
+
| `control_token_required` | No control token for the target — run `himi login`. Nothing was sent. |
|
|
119
|
+
| `wix_token_unavailable` | The account Wix token (`wix token`) could not be minted; the publishing service needs it to verify site ownership. Nothing was sent. |
|
|
120
|
+
| `forbidden_site` | The publishing service could not verify that your account owns the site (403). |
|
|
121
|
+
| `forbidden_app` | The app is not yours, or does not exist (403). Nothing was stored. |
|
|
122
|
+
| `app_bound_to_other_site` | The app is another site's own app (403). |
|
|
123
|
+
| `unauthorized` | The control token was refused or revoked (401). |
|
|
124
|
+
| `control_unreachable` | The publishing service could not be reached. |
|
|
125
|
+
| `request_failed` | Any other refusal; `status` and `serverError` say which. |
|
|
126
|
+
|
|
127
|
+
`show` succeeds with `opens` (what members get: the picked app or `himi-branded-lite`), `compatible`
|
|
128
|
+
(whether the picked release fits the Spaces host manifest, judged with `checkHostCompatibility`), and —
|
|
129
|
+
whenever members get Branded Lite instead of the pick — `reason`. `opens` is Spaces' own decision, so a
|
|
130
|
+
compatible pick that this Spaces build cannot host yet reports `compatible: true` with `opens:
|
|
131
|
+
"himi-branded-lite"` and that reason. An incompatible pick is not a failure: it is `ok: true` with
|
|
132
|
+
`compatible: false`.
|
|
133
|
+
|
|
109
134
|
## Follow-ups
|
|
110
135
|
|
|
111
136
|
- Migrate failure envelopes in subcommands other than `push`, keeping this contract.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1352.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": "3d6e10a135511ba6f09d842a8dd9aee9013e5b36a3f4d79fe5a3f266"
|
|
75
75
|
}
|