@wix/himalaya-cli 0.927.0 → 0.928.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 +10 -0
- package/guides/releasing-with-himi-serve.md +13 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -5241,6 +5241,7 @@ function resolveTranslation(value, catalog, sourceCatalog) {
|
|
|
5241
5241
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
5242
5242
|
var init_bindings = __esm({
|
|
5243
5243
|
"../../core/ts/src/bindings.ts"() {
|
|
5244
|
+
"use strict";
|
|
5244
5245
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
5245
5246
|
BINDING_SIGIL_RE = new RegExp(
|
|
5246
5247
|
`^\\$(?:${BINDING_SIGILS.filter((s) => s !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -50995,6 +50996,15 @@ var ServeCliClient = class {
|
|
|
50995
50996
|
//
|
|
50996
50997
|
// The read is still the point of the pairing: it is the same handler and the same file the
|
|
50997
50998
|
// write touched, which is what makes it able to contradict a 200.
|
|
50999
|
+
/** The kill-list for an app (GET /v1/revocations?app=…) — the integrities devices refuse.
|
|
51000
|
+
*
|
|
51001
|
+
* CONTROL, for the same reason `flags()` is: the route is serve-control's, and the process on
|
|
51002
|
+
* the local serve port answers it with a deliberate empty stub (core/serve/src/run-handler.ts
|
|
51003
|
+
* — "the kill-switch is INERT here"). Reading that would report every template as live,
|
|
51004
|
+
* including the ones somebody just killed, which is the one answer this must never give. */
|
|
51005
|
+
revocations(app) {
|
|
51006
|
+
return this.request("control", "GET", `/v1/revocations?app=${encodeURIComponent(app)}`);
|
|
51007
|
+
}
|
|
50998
51008
|
/** Flag definitions as the plane would serve them (GET /v1/flags/{app}). No credential. */
|
|
50999
51009
|
flags(app) {
|
|
51000
51010
|
return this.request("control", "GET", `/v1/flags/${encodeURIComponent(app)}`);
|
|
@@ -88,12 +88,24 @@ published and promoted like any other. Withdrawing one, or killing it, is addres
|
|
|
88
88
|
`himi init --template <name>` takes:
|
|
89
89
|
|
|
90
90
|
```
|
|
91
|
+
himi-serve template list --target bo --control-token "$TOK" # catalog + kill-state
|
|
92
|
+
himi-serve template list --revoked --target bo --control-token "$TOK" # only what is not fully live
|
|
91
93
|
himi-serve template remove --name <template> --target bo --control-token "$TOK" # withdraw from the catalog
|
|
92
94
|
himi-serve template revoke --name <template> --target bo --control-token "$TOK" # kill-switch its current release
|
|
93
95
|
himi-serve template unrevoke --name <template> --target bo --control-token "$TOK" # lift it again
|
|
94
96
|
```
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
**`list` is the read-back for the other three.** Nothing stores "this template is revoked" —
|
|
99
|
+
`revoke` kills the bundle integrities of the catalog's release — so `list` derives it, reading
|
|
100
|
+
each template's manifest and its app's `/v1/revocations` and comparing them. Each row reports
|
|
101
|
+
`revoked` as `none`, `partial`, `all`, or `unknown` with the reason a read failed; `partial` is
|
|
102
|
+
its own answer because `revoke` stops at the first failure, so a half-killed release is a state
|
|
103
|
+
the plane really produces. **Any `unknown` row makes the command exit 1** (and `ok:false`, with
|
|
104
|
+
an `unknown` count) — a script asking "is anything killed?" reads the exit code, and answering
|
|
105
|
+
0 over rows it could not read would be the same silence-as-clean-bill this verb exists to stop. Before this verb existed neither the CLI nor the admin portal could
|
|
106
|
+
tell you which templates were currently killed.
|
|
107
|
+
|
|
108
|
+
The three WRITES also take `--app <appId>` instead of `--name`. That exists for one case: a template
|
|
97
109
|
name may legally begin with `himi-template-` (the name pattern is lowercase alphanumerics and
|
|
98
110
|
inner hyphens), and such a name publishes to a **doubly** prefixed app id — so `--name` cannot
|
|
99
111
|
express it without becoming ambiguous. The CLI refuses the ambiguous form and points at `--app`. `--app` only accepts ids inside the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.928.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": [
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"artifactId": "himalaya-cli"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"falconPackageHash": "
|
|
67
|
+
"falconPackageHash": "c7d75efc8f00421a7e0aea8773d9c1b0e968e2e7afcf8a4ae8bce93f"
|
|
68
68
|
}
|