@wix/himalaya-cli 0.1689.0 → 0.1690.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 +1506 -1364
- package/guides/branded-lite-site-binding.md +34 -2
- package/package.json +2 -2
|
@@ -107,7 +107,38 @@ auth: WixConsumerAuthProvider({
|
|
|
107
107
|
| `HIMI_BRANDED_LITE_WIX_REDIRECT_URI` | `WIX_REDIRECT_URI` | OAuth callback (default: `himalaya-demo-app://oauth/callback` for shared amit1) |
|
|
108
108
|
| `HIMI_BRANDED_LITE_WIX_BOOT_VISITOR` | — | `"1"` (default) boots as anonymous visitor |
|
|
109
109
|
|
|
110
|
-
Defaults today = shared Amit1 Headless (`clientId` `4f58d461-…`, site `shayco5.wixsite.com/amit1`)
|
|
110
|
+
Defaults today = shared Amit1 Headless (`clientId` `4f58d461-…`, site `shayco5.wixsite.com/amit1`) —
|
|
111
|
+
**for the committed reference contract only.** Any other build binds what it names or nothing:
|
|
112
|
+
see [Visitor-only builds](#visitor-only-builds-no-wix-binding) below.
|
|
113
|
+
|
|
114
|
+
### Visitor-only builds (no Wix binding)
|
|
115
|
+
|
|
116
|
+
A build whose contract binds no Wix client is **visitor-only**: `config.ts` bakes
|
|
117
|
+
`auth: { providerId: "none", config: {} }` — no provider, no visitor token, no sign-in — the
|
|
118
|
+
same shape Brandy bakes for a website-only app. The shared Amit1 client is used **only** when
|
|
119
|
+
the contract being built is the committed `provisioning.json` itself, i.e. none of these hold:
|
|
120
|
+
|
|
121
|
+
| Marks the build as a customer build | Set by |
|
|
122
|
+
|---|---|
|
|
123
|
+
| `.himi/provisioning.local.json` present (usable or not) | `site analyze --apply`, `prepare:customer --contract` |
|
|
124
|
+
| `HIMI_DIST_CALLBACK_TOKEN` | every brokered `himi dist` job |
|
|
125
|
+
| `HIMALAYA_SEED_APP` naming another app | `himi dist` / a `[dist]` build carrying another app's release |
|
|
126
|
+
|
|
127
|
+
`HIMI_BRANDED_LITE_PROVISIONING_JSON` on its own is not a mark: it is also the dev and test seam
|
|
128
|
+
(template generation, fixture manifests), and every customer path that sets it carries a mark above.
|
|
129
|
+
|
|
130
|
+
A customer build binds the env override (`HIMI_BRANDED_LITE_WIX_CLIENT_ID` / `WIX_CLIENT_ID`), else its
|
|
131
|
+
contract's `wix.clientId`, else — for a build carrying another app's release — that release's own
|
|
132
|
+
`wix-consumer` client from the seed's app-config, else nothing. A `himi dist` build gets the release's
|
|
133
|
+
binding from `GET /v1/dist/contract`, which projects it from the release's served `authConfig`
|
|
134
|
+
(`wix` + `siteId`), or `wix: null` when the release has none. The rule and its reasons are on
|
|
135
|
+
`resolveBrandedLiteWixBinding` ([`wix-binding.ts`](../apps/himi-branded-lite/wix-binding.ts)).
|
|
136
|
+
|
|
137
|
+
A `siteUrl` that came from a release (a dist build, or one carrying another app's release) is
|
|
138
|
+
baked for sign-in but **never** turns on the member-site route that sends a member's token to that
|
|
139
|
+
URL: nothing verifies a release's `siteUrl` belongs to its client. Only a `siteUrl` you set yourself
|
|
140
|
+
(env, or a manifest written on your machine) does. The auth `siteId` is baked only when it is a real
|
|
141
|
+
metaSiteId, never the `development-site` placeholder.
|
|
111
142
|
|
|
112
143
|
### How to run
|
|
113
144
|
|
|
@@ -231,7 +262,8 @@ it will not *create* a manifest, because the contract also needs
|
|
|
231
262
|
|
|
232
263
|
**The `clientId` is a manifest field now too** (`wix.clientId`), which is what removes the
|
|
233
264
|
last manual step: `config.ts` resolves it as **env > `provisioning.wix` > the committed
|
|
234
|
-
amit1 default
|
|
265
|
+
amit1 default — that last tier for the reference contract only; a customer build with neither is
|
|
266
|
+
visitor-only** (see above), so a provisioned package needs no `export` at all. That middle tier is the
|
|
235
267
|
whole point — previously the minted id reached a build only through the environment, so one
|
|
236
268
|
forgotten `export` silently bound a customer app to the SHARED dev site. It worked, against
|
|
237
269
|
the wrong site. `wix.siteUrl` is written only when you pass `--site-url`, because a freshly
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1690.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": [
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"artifactId": "himalaya-cli"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
"falconPackageHash": "
|
|
84
|
+
"falconPackageHash": "51de924ae33fabbeafa812104334b6107a2cf388f3573d7e7828234a"
|
|
85
85
|
}
|