@wix/himalaya-cli 0.915.0 → 0.916.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
@@ -50953,6 +50953,17 @@ var ServeCliClient = class {
50953
50953
  revoke(app, integrity2, unrevoke = false) {
50954
50954
  return this.request("control", "POST", `/v1/admin/${unrevoke ? "unrevoke" : "revoke"}`, { body: { app, integrity: integrity2 }, headers: this.ctrlHeaders() });
50955
50955
  }
50956
+ /**
50957
+ * Withdraw an app from the serve plane entirely (POST /v1/admin/release/remove).
50958
+ *
50959
+ * Distinct from `revoke`, and the difference matters: revoke is a reversible kill-switch on one
50960
+ * bundle integrity, while this unpublishes the app — which for a template is what "remove it from
50961
+ * the catalog" means. The admin portal's Templates → Manage brokered to this exact route; this is
50962
+ * the same call without the portal in front of it.
50963
+ */
50964
+ removeRelease(app) {
50965
+ return this.request("control", "POST", "/v1/admin/release/remove", { body: { app }, headers: this.ctrlHeaders() });
50966
+ }
50956
50967
  /** Write-through an OTA app-config patch (POST /v1/admin/app-config). */
50957
50968
  setAppConfig(app, patch) {
50958
50969
  return this.request("control", "POST", "/v1/admin/app-config", { body: { app, patch }, headers: this.ctrlHeaders() });
@@ -80,6 +80,32 @@ traffic until its gateway route was deleted on 2026-09-05; it now 404s with no r
80
80
  ```
81
81
  Kill-switch a bad bundle: `himi-serve release revoke --app <app> --integrity <sri> --target bo --control-token "$TOK"`.
82
82
 
83
+ ### Curating templates
84
+
85
+ A starter template is an app in the reserved `himi-template-<name>` namespace, so it is
86
+ published and promoted like any other. Withdrawing one, or killing it, is addressed by
87
+ **template name** rather than app id — that is what the catalog shows and what
88
+ `himi init --template <name>` takes:
89
+
90
+ ```
91
+ himi-serve template remove --name <template> --target bo --control-token "$TOK" # withdraw from the catalog
92
+ himi-serve template revoke --name <template> --target bo --control-token "$TOK" # kill-switch its current release
93
+ himi-serve template unrevoke --name <template> --target bo --control-token "$TOK" # lift it again
94
+ ```
95
+
96
+ All three also take `--app <appId>` instead of `--name`. That exists for one case: a template
97
+ name may legally begin with `himi-template-` (the name pattern is lowercase alphanumerics and
98
+ inner hyphens), and such a name publishes to a **doubly** prefixed app id — so `--name` cannot
99
+ express it without becoming ambiguous. The CLI refuses the ambiguous form and points at `--app`. `--app` only accepts ids inside the
100
+ reserved namespace: a non-template id is refused, so this group cannot unpublish or
101
+ kill-switch an ordinary app by mistake — use the `release` group for those.
102
+
103
+ `remove` unpublishes the app; `revoke` is the reversible kill-switch, and it resolves the
104
+ bundle integrities from the template's current release manifest so you never paste an SRI. A
105
+ template with no current release, or a release with no bundles, is **refused** rather than
106
+ reported as a successful revocation — a kill-switch that silently switched nothing off is the
107
+ one failure mode worth being loud about.
108
+
83
109
  ### Registry visibility (public | unlisted)
84
110
 
85
111
  Whether `GET /v1/apps` (and so the **Himi Player picker**) lists the app is a per-app,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.915.0",
3
+ "version": "0.916.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": "8246d43c3041d1387f510848f691ef7d023c0ac9b2a85d096947e112"
67
+ "falconPackageHash": "06722d722ae5e9aac6226d4368df1778666b7b83737f0c449a0af142"
68
68
  }