@wix/himalaya-cli 0.1361.0 → 0.1362.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 +0 -2
- package/guides/capabilities.md +29 -4
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -7650,7 +7650,6 @@ function buttonVariant(style) {
|
|
|
7650
7650
|
var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty, own, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
|
|
7651
7651
|
var init_tokens = __esm({
|
|
7652
7652
|
"../../core/ts/src/tokens.ts"() {
|
|
7653
|
-
"use strict";
|
|
7654
7653
|
SYSTEM_FONT_FAMILY = "$system";
|
|
7655
7654
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
7656
7655
|
BUTTON_MIN_HIT_TARGET = 44;
|
|
@@ -7706,7 +7705,6 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
|
|
|
7706
7705
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
7707
7706
|
var init_bindings = __esm({
|
|
7708
7707
|
"../../core/ts/src/bindings.ts"() {
|
|
7709
|
-
"use strict";
|
|
7710
7708
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
7711
7709
|
BINDING_SIGIL_RE = new RegExp(
|
|
7712
7710
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
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.1362.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": "6f8e9ebff2033817c8121233af0096191f0d147fc9d49e65d9e6f02d"
|
|
75
75
|
}
|