@wix/himalaya-cli 0.1215.0 → 0.1216.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
@@ -6818,7 +6818,6 @@ function walk(node, registry, path2, out2) {
6818
6818
  var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS;
6819
6819
  var init_tokens = __esm({
6820
6820
  "../../core/ts/src/tokens.ts"() {
6821
- "use strict";
6822
6821
  SYSTEM_FONT_FAMILY = "$system";
6823
6822
  TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
6824
6823
  COLOR_TOKEN_PROPS = {
@@ -25393,6 +25392,7 @@ function shouldRevealError(args) {
25393
25392
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
25394
25393
  var init_validation = __esm({
25395
25394
  "../../core/ts/src/validation.ts"() {
25395
+ "use strict";
25396
25396
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
25397
25397
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
25398
25398
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -26052,6 +26052,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
26052
26052
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
26053
26053
  var init_worker_subtree = __esm({
26054
26054
  "../../core/ts/src/worker-subtree.ts"() {
26055
+ "use strict";
26055
26056
  init_worker_subtree_safe_types_generated();
26056
26057
  WORKER_SUBTREE_CEILINGS = Object.freeze({
26057
26058
  maxEncodedBytes: 65536,
@@ -66909,10 +66910,17 @@ var init_push_send = __esm({
66909
66910
  }
66910
66911
  });
66911
66912
 
66913
+ // ../../core/ts/src/push-routes.ts
66914
+ var init_push_routes = __esm({
66915
+ "../../core/ts/src/push-routes.ts"() {
66916
+ }
66917
+ });
66918
+
66912
66919
  // ../../core/serve-control/src/push-send-service.ts
66913
66920
  var PUSH_SEND_ERROR_CODES, PushSendError;
66914
66921
  var init_push_send_service = __esm({
66915
66922
  "../../core/serve-control/src/push-send-service.ts"() {
66923
+ init_push_routes();
66916
66924
  PUSH_SEND_ERROR_CODES = [
66917
66925
  "unauthorized",
66918
66926
  "token_revoked",
@@ -67295,7 +67303,7 @@ var init_notify_ping = __esm({
67295
67303
  member_not_found: "Use the login email of an approved member of this site.",
67296
67304
  member_ambiguous: "More than one member has this login email; resolve it in the site's Members.",
67297
67305
  member_not_active: "The member must be approved before they can be notified.",
67298
- link_not_routable: "Link to a screen this app's published release ships, e.g. <scheme>://screen/<screenId>?id=\u2026.",
67306
+ link_not_routable: "Link to a screen this app's published release ships, e.g. <scheme>://screen/<screenId>?id=\u2026, or a Wix link one of its push.routes translates.",
67299
67307
  forbidden_site: "The Wix account from wix login must own this site.",
67300
67308
  site_token_invalid: "Run wix login as the site owner; the site token must belong to the app owner's account.",
67301
67309
  ping_permission_denied: "Himi Serve is not permitted to send through Ping; this is a platform issue, not your setup."
@@ -246,11 +246,22 @@ Before anything is sent, the server checks:
246
246
  - that push setup is `ready` for this app on this site;
247
247
  - that the link opens a screen the app's live release ships, using the app's exact scheme and
248
248
  either a linkable `screen/<id>` or a deep-link pattern (a device on a different rollout ring
249
- may have a different set of screens);
249
+ may have a different set of screens). A **Wix link** (`wix:/…`, `https://www.wix.app/…`,
250
+ `https://manage.wix.app/…`, `https://m-<msid>.branded.wix.app/…`) passes when one of the app's
251
+ `push.routes` translates it to such a screen and it names no other site — the same translation
252
+ a tap runs on the device. A link a route conditioned on a Ping `templateId` or `topic` matches is
253
+ refused, because the device picks that route from payload fields the check cannot see. That is how to test a route with the link Wix itself would send;
250
254
  - that exactly one approved member has that login email.
251
255
 
252
256
  `--dry-run` runs every check and sends nothing. The link is forwarded exactly as given, query
253
- string included. A private screen is allowed; the app's login gate still applies when tapped.
257
+ string included — a Wix link reaches the device as the Wix link, and the app translates it on tap:
258
+
259
+ ```sh
260
+ himi notify send --provider ping --target wix --content ./liftgear \
261
+ --member-email member@example.com --title 'Your order shipped' \
262
+ --link 'wix:/my-account/<siteId>/stores/orders/<orderId>' --dry-run
263
+ ```
264
+ A private screen is allowed; the app's login gate still applies when tapped.
254
265
 
255
266
  To notify **every approved member** of the site, use `--all-members` in place of
256
267
  `--member-email`:
@@ -300,7 +311,7 @@ link, is a new notification.
300
311
  | --- | --- |
301
312
  | `push_not_ready` | Run `himi notify setup` for this app and site first. |
302
313
  | `member_not_found` / `member_ambiguous` / `member_not_active` | Use the login email of one approved site member. |
303
- | `link_not_routable` | The link's scheme or screen is not in the published release. |
314
+ | `link_not_routable` | The link's scheme or screen is not in the published release, or a Wix link matches none of the app's `push.routes` (or names another site). |
304
315
  | `forbidden_site` / `site_token_invalid` | Both Wix logins must belong to the site owner. |
305
316
  | `rate_limited` | Wait `retry-after` seconds; test sends are limited per owner. |
306
317
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1215.0",
3
+ "version": "0.1216.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": [
@@ -67,5 +67,5 @@
67
67
  "artifactId": "himalaya-cli"
68
68
  }
69
69
  },
70
- "falconPackageHash": "ba6e51d93c561edb1aa2de10154bdd5848f7cb971441ea81f6876de7"
70
+ "falconPackageHash": "b59f6f13e876d3566fc27ba839e7d391bb70c2b677bd77062010d173"
71
71
  }