@wix/himalaya-cli 0.957.0 → 0.958.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
@@ -18547,6 +18547,7 @@ function shouldRevealError(args) {
18547
18547
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
18548
18548
  var init_validation = __esm({
18549
18549
  "../../core/ts/src/validation.ts"() {
18550
+ "use strict";
18550
18551
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
18551
18552
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
18552
18553
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -21971,6 +21972,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
21971
21972
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
21972
21973
  var init_worker_subtree = __esm({
21973
21974
  "../../core/ts/src/worker-subtree.ts"() {
21975
+ "use strict";
21974
21976
  init_worker_subtree_safe_types_generated();
21975
21977
  WORKER_SUBTREE_CEILINGS = Object.freeze({
21976
21978
  maxEncodedBytes: 65536,
@@ -39199,7 +39201,7 @@ var init_preview_token = __esm({
39199
39201
  SUBTLE_ALGO = { name: "HMAC", hash: "SHA-256" };
39200
39202
  PREVIEW_TOKEN_VERSION = 1;
39201
39203
  DEFAULT_PREVIEW_TOKEN_TTL_SECONDS = 5 * 60;
39202
- WEB_PREVIEW_TOKEN_TTL_SECONDS = 15 * 60;
39204
+ WEB_PREVIEW_TOKEN_TTL_SECONDS = 45 * 60;
39203
39205
  }
39204
39206
  });
39205
39207
 
@@ -252,10 +252,18 @@ The push JSON includes:
252
252
  - `next` — suggested `himi context` / `himi screens` follow-ups
253
253
 
254
254
  The browser-preview token embedded in `previewWeb` is scoped to this app + draft release and
255
- expires after **15 minutes**. The JSON also includes `previewTokenExpiresAt`. If review takes
256
- longer, run `himi preview --app my-app --release <id> --target wix`: it renews the browser token
257
- without promoting the draft. For header-only function calls against the same draft, pass the
258
- separately issued short-lived function token as `--preview-token <token>`.
255
+ expires after **45 minutes**. The JSON also includes `previewTokenExpiresAt` — read that rather
256
+ than this number when you are talking to a plane you did not start. If review takes longer, run
257
+ `himi preview --app my-app --release <id> --target wix`: it renews the browser token without
258
+ promoting the draft. For header-only function calls against the same draft, pass the separately
259
+ issued short-lived function token as `--preview-token <token>`.
260
+
261
+ **When you hand `previewWeb` to a person, the expiry is theirs, not yours.** Renewing it needs
262
+ this CLI and your credentials, so a link handed over near the end of a session leaves the
263
+ recipient with a deadline and no way to extend it. Re-mint immediately before handing it over
264
+ rather than passing on a link minted earlier, and say the expiry in their timezone. If they sign
265
+ in to the Wix account that owns the app, its own owner page previews it for them
266
+ without this CLI and without you — that, not the link, is the durable way back in.
259
267
 
260
268
  ## 5b. Agent preview (machine-readable, no browser scrape)
261
269
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.957.0",
3
+ "version": "0.958.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": "a7db2f8e9c09e46f2cb60d150cf40484b1d2db3b2df744e87b20634d"
67
+ "falconPackageHash": "d7801908694db877e53dbcdb28836a858399f835aec0a43b73c80bec"
68
68
  }