@wix/himalaya-cli 0.1361.0 → 0.1363.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 +8 -9
- package/guides/capabilities.md +29 -4
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -7706,7 +7706,6 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
|
|
|
7706
7706
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
7707
7707
|
var init_bindings = __esm({
|
|
7708
7708
|
"../../core/ts/src/bindings.ts"() {
|
|
7709
|
-
"use strict";
|
|
7710
7709
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
7711
7710
|
BINDING_SIGIL_RE = new RegExp(
|
|
7712
7711
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -13546,12 +13545,10 @@ var init_player_host_manifest = __esm({
|
|
|
13546
13545
|
],
|
|
13547
13546
|
"unlinked": {
|
|
13548
13547
|
"ios": [
|
|
13549
|
-
"base44",
|
|
13550
13548
|
"godot"
|
|
13551
13549
|
],
|
|
13552
13550
|
"macos": [
|
|
13553
13551
|
"audio_record_background",
|
|
13554
|
-
"base44",
|
|
13555
13552
|
"browser_auth",
|
|
13556
13553
|
"godot",
|
|
13557
13554
|
"iap",
|
|
@@ -13562,7 +13559,6 @@ var init_player_host_manifest = __esm({
|
|
|
13562
13559
|
"wix_cashier"
|
|
13563
13560
|
],
|
|
13564
13561
|
"android": [
|
|
13565
|
-
"base44",
|
|
13566
13562
|
"godot"
|
|
13567
13563
|
],
|
|
13568
13564
|
"web": []
|
|
@@ -24886,7 +24882,7 @@ function assessPackage(header, host) {
|
|
|
24886
24882
|
if (caps.length) out2.push({ reason: "missing_capabilities", missing: caps });
|
|
24887
24883
|
const comps = missing(req.nativeComponents ?? [], host.nativeComponents);
|
|
24888
24884
|
if (comps.length) out2.push({ reason: "missing_components", missing: comps });
|
|
24889
|
-
const auth = missing(req.authProviders ?? [], host.authProviders);
|
|
24885
|
+
const auth = missing((req.authProviders ?? []).filter((id) => id !== "none"), host.authProviders);
|
|
24890
24886
|
if (auth.length) out2.push({ reason: "missing_auth_providers", missing: auth });
|
|
24891
24887
|
}
|
|
24892
24888
|
return out2;
|
|
@@ -28039,8 +28035,8 @@ var init_shell_capabilities_generated = __esm({
|
|
|
28039
28035
|
appDir: "apps/himi-player",
|
|
28040
28036
|
shared: true,
|
|
28041
28037
|
extensible: false,
|
|
28042
|
-
built: ["animation", "audio_record_background", "biometrics", "calendar", "calls", "camera", "clipboard", "contacts", "haptic", "iap", "location", "media_playback", "motion", "on_device_ai", "photos", "push", "speech"],
|
|
28043
|
-
serves: ["animation", "app_info", "audio_record", "audio_record_background", "biometrics", "browser_auth", "calendar", "calls", "camera", "clipboard", "contacts", "file_picker", "files", "haptic", "himi_apps", "iap", "keyboard", "local_database", "location", "media_playback", "motion", "on_device_ai", "open_url", "pdf", "photos", "presigned_upload", "push", "release_control", "secure_storage", "share", "speaker_diarization", "speech", "stream", "theme", "ui", "wix_api", "wix_cashier", "wix_platform"]
|
|
28038
|
+
built: ["animation", "audio_record_background", "base44", "biometrics", "calendar", "calls", "camera", "clipboard", "contacts", "haptic", "iap", "location", "media_playback", "motion", "on_device_ai", "photos", "push", "speech"],
|
|
28039
|
+
serves: ["animation", "app_info", "audio_record", "audio_record_background", "base44", "biometrics", "browser_auth", "calendar", "calls", "camera", "clipboard", "contacts", "file_picker", "files", "haptic", "himi_apps", "iap", "keyboard", "local_database", "location", "media_playback", "motion", "on_device_ai", "open_url", "pdf", "photos", "presigned_upload", "push", "release_control", "secure_storage", "share", "speaker_diarization", "speech", "stream", "theme", "ui", "wix_api", "wix_cashier", "wix_platform"]
|
|
28044
28040
|
}
|
|
28045
28041
|
};
|
|
28046
28042
|
}
|
|
@@ -137341,7 +137337,9 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
137341
137337
|
playerRequirements: {
|
|
137342
137338
|
capabilities: [...requiredCapabilities].sort(),
|
|
137343
137339
|
nativeComponents: [...requiredNativeComponents].sort(),
|
|
137344
|
-
|
|
137340
|
+
// `none` is the scaffold's spelling of "no auth" (`new-app --auth=none`), not a provider a
|
|
137341
|
+
// host must carry — recording it blocked every such app in the Player picker (#3695).
|
|
137342
|
+
authProviders: [config.auth.providerId].filter((id) => id && id !== "none").sort()
|
|
137345
137343
|
},
|
|
137346
137344
|
// #4091 — the app takes its Wix identity from a HOST (Spaces Lite) instead of signing in
|
|
137347
137345
|
// itself (#4088 `hostProvided` on its auth provider). A host that lends its identity only
|
|
@@ -169976,7 +169974,8 @@ function missingClaims(requirements, offered) {
|
|
|
169976
169974
|
const out2 = {};
|
|
169977
169975
|
for (const kind of HOST_CLAIM_KINDS) {
|
|
169978
169976
|
const has = new Set(offered[kind]);
|
|
169979
|
-
|
|
169977
|
+
const required3 = kind === "authProviders" ? requirements[kind].filter((id) => id !== "none") : requirements[kind];
|
|
169978
|
+
out2[kind] = [...new Set(required3.filter((id) => !has.has(id)))];
|
|
169980
169979
|
}
|
|
169981
169980
|
return out2;
|
|
169982
169981
|
}
|
package/guides/capabilities.md
CHANGED
|
@@ -22,10 +22,35 @@ himi capabilities --shell branded-lite # what that one binary serves
|
|
|
22
22
|
|
|
23
23
|
```
|
|
24
24
|
camera — import from @himalaya/camera
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
about: Tier-5 typed binding to the platform's camera capability.
|
|
26
|
+
exports: capturePhoto, pickDocument, scanQR, version
|
|
27
|
+
verbs: capability.camera.capture, capability.camera.pickDocument, capability.camera.scanQR
|
|
28
|
+
declare: config.ts `capabilities` (the app-level list a binary is built with) AND each calling screen's `logicBundle.declaredCapabilities` (the runtime gate)
|
|
29
|
+
binary: needs a NATIVE build — iOS NSCameraUsageDescription, NSPhotoLibraryUsageDescription; Android android.permission.CAMERA, android.hardware.camera. An OTA push cannot add it.
|
|
30
|
+
module: none — its native code is in the core runtime
|
|
31
|
+
dist: a `himi dist` build can add it to an extensible shell
|
|
32
|
+
shells: served by owner-lite, player; `himi dist` adds it to base44, branded-lite, brandy; NOT in the demo-app binary (a fixed binary — only a new demo-app build adds it; a content package cannot)
|
|
33
|
+
remedy: a NEW binary (`himi dist`) — declare it in config.ts `capabilities`, or list it in `capabilityEnvelope` to build it in now and turn it on later over the air. An OTA push alone cannot add it.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The per-id output also answers three build questions (the JSON and MCP forms carry the same fields as
|
|
37
|
+
`modules`, `components`, `distAddable` and `distAddRefusal`):
|
|
38
|
+
|
|
39
|
+
- `module:` — the native module the capability links into a binary (its SwiftPM product and Gradle
|
|
40
|
+
project), and the SDUI components that need that module too (`animation` — also needed by the Lottie, Rive components).
|
|
41
|
+
- `dist:` — whether a `himi dist` build can add the capability to an extensible shell, and if not,
|
|
42
|
+
why.
|
|
43
|
+
- `remedy:` — what to do about it. It takes the shell you passed with `--shell` into account.
|
|
44
|
+
|
|
45
|
+
A capability a build cannot add shows the refusal reason, for example (`himi capabilities live_activity`,
|
|
46
|
+
abridged):
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
live_activity — import from @himalaya/live-activity
|
|
50
|
+
module: live_activity (iOS HimalayaCoreLiveActivity, Android :core-runtime-live-update)
|
|
51
|
+
dist: cannot be added at dist — live_activity needs a WidgetKit extension target in the shell's project, which a build cannot add
|
|
52
|
+
shells: served by branded-lite, demo-app, owner-lite; NOT in the base44, brandy binary (a dist build cannot add it …); NOT in the player binary (one shared binary …)
|
|
53
|
+
remedy: pick a shell whose binary already serves it (branded-lite, demo-app, owner-lite) — a dist build cannot add it (live_activity needs a WidgetKit extension target in the shell's project, which a build cannot add).
|
|
29
54
|
```
|
|
30
55
|
|
|
31
56
|
Agents: the same data is the `himi_capabilities` MCP tool. `himi sdk <name>` also prints the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1363.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": [
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"artifactId": "himalaya-cli"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"falconPackageHash": "
|
|
74
|
+
"falconPackageHash": "000d7f43b6f442daf4ff499fd016c52ee6a2b3bab69dd868db3b3d71"
|
|
75
75
|
}
|