@wix/himalaya-cli 0.1631.0 → 0.1633.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +4 -14
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-wire.d.ts +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments.d.ts +1 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +26 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-core.d.ts +0 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +3 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-core.d.ts +0 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +0 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/stores.d.ts +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/loyalty/src/index.d.ts +64 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +13 -45
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +2 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +7 -11
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-loyalty.mjs +39 -0
- package/dist/cli.mjs +258 -150
- package/dist/preview-assets.generated.bin +0 -0
- package/fixtures/wix-canned.json +3 -0
- package/guides/getting-started.md +2 -1
- package/guides/himi-json-output.md +6 -0
- package/guides/himi-skill.md +2 -1
- package/guides/iap-screen-adoption.md +4 -4
- package/guides/importable-sdks.md +1 -1
- package/guides/one-app-section-mappings.md +3 -3
- package/guides/sdk-reference.json +8829 -4386
- package/guides/skill.md +11 -1
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +1 -1
- package/templates/branded-lite/dev/index.ts +2924 -2110
- package/templates/branded-lite/l10n/en.json +5 -3
- package/templates/branded-lite/tier5-src/_shared/loyalty-offerings.ts +73 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/earning.ts +148 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/index.ts +57 -31
- package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty-rewards/index.ts +208 -0
- package/templates/branded-lite/tier5-src/himi-store-product/index.ts +1 -1
- package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +1 -1
- package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +1 -1
- package/templates/retail-store/tier5-src/himi-store-product/index.ts +1 -1
package/guides/skill.md
CHANGED
|
@@ -178,12 +178,22 @@ Read `himi docs push-cli-onboarding` (also https://apps.wix.com/_api/himi-serve/
|
|
|
178
178
|
setup for the required logins, credential fields and failure handling. The guide is bundled with the public npm package
|
|
179
179
|
and is also served at the public URL above. No repository access is required.
|
|
180
180
|
|
|
181
|
+
## Signing in when the owner's browser is not on this machine
|
|
182
|
+
|
|
183
|
+
`himi login --browser` posts the sign-in back to a port on the machine that runs `himi`, so it only works when the owner's browser runs there too. In a sandbox, a cloud session or an agent platform it cannot finish — do not send the owner a link to it, and do not ask them to install the CLI and run the steps themselves.
|
|
184
|
+
|
|
185
|
+
- **Your platform already holds the owner's Wix session or token** (they connected their Wix account to it): that token **is** the owner. Any valid Wix token can manage that account's apps, publishing included. Pipe it in — `printf '%s' "$TOKEN" | himi login --wix --wix-token-stdin --target wix` — or set `WIX_TOKEN` and run `himi login --wix --target wix`. Never put a token on the command line (argv shows in `ps` and transcripts) or in a file you commit, and never print it.
|
|
186
|
+
- **A server or CI job** with an account API key: `WIX_API_KEY` + `himi login --wix --target wix`.
|
|
187
|
+
- **None of these:** stop and say exactly what is missing. Do not improvise another route to a himi token.
|
|
188
|
+
|
|
189
|
+
This replaces only the sign-in. The approval gates above still apply to every side effect.
|
|
190
|
+
|
|
181
191
|
## Headless / non-interactive agents
|
|
182
192
|
|
|
183
193
|
When there is no human in the loop (QA runner, cron, dispatched agent), do not invent a turn-by-turn approval chat. Map each gate to what the invocation already supplied:
|
|
184
194
|
|
|
185
195
|
- The issue / brief / `SPEC.md` + `MOBILE-UX.md` in the workspace **is** plan approval. Draft or complete those files without waiting for a spoken "yes".
|
|
186
|
-
- Credentials already in the environment (`WIX_CLIENT_ID` / `WIX_SITE_URL`, a dpx session, `HIMI_CONTROL_TOKEN`) **are** consent to use that identity against the named target. Do not prompt for them again; do not mint a different site or account.
|
|
196
|
+
- Credentials already in the environment (`WIX_CLIENT_ID` / `WIX_SITE_URL`, a dpx session, `HIMI_CONTROL_TOKEN`, `WIX_TOKEN`) **are** consent to use that identity against the named target. Do not prompt for them again; do not mint a different site or account.
|
|
187
197
|
- An explicit `--draft` / publish-draft instruction in the brief **is** owner-private preview approval. Do **not** promote live unless the brief says to.
|
|
188
198
|
- QA binary / store submission still needs the brief to name that step; absence means skip it.
|
|
189
199
|
- **Progress still goes somewhere.** With nobody reading the chat, the pictures and postcards go to the journal (`himi progress`) and the build board instead — the steps below, in this session, while you build.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1633.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "cfec110399d1528f327a0ca1caf2543b95efba31f33781fa136164a8"
|
|
76
76
|
}
|
|
@@ -467,7 +467,7 @@ function derive(s: S): S {
|
|
|
467
467
|
let cartBadgeEpoch = 0;
|
|
468
468
|
|
|
469
469
|
// A digital product with no options sells through the App Store once the platform sells Wix Stores
|
|
470
|
-
// items there (`storesAppleSalesEnabled`)
|
|
470
|
+
// items there (`storesAppleSalesEnabled`): wix-iap StartItemPayment places and charges its order.
|
|
471
471
|
// Until then, and for any other product, an App Store route only blocks the regular checkout.
|
|
472
472
|
const SELLS_THROUGH_APPLE = storesAppleSalesEnabled();
|
|
473
473
|
const WIX_STORES_APP = "215238eb-22a5-4c36-9e7b-e7c08025e04e";
|