@wix/himalaya-cli 0.1507.0 → 0.1509.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 +184 -126
- package/guides/capabilities.md +29 -0
- package/package.json +2 -2
package/guides/capabilities.md
CHANGED
|
@@ -123,6 +123,35 @@ capabilityEnvelope: ["push", "camera"],
|
|
|
123
123
|
`Rive` render through a native module, so the app must declare the capability that links
|
|
124
124
|
it. See [Components that need a capability](#components-that-need-a-capability).
|
|
125
125
|
|
|
126
|
+
### App services: `app_services`
|
|
127
|
+
|
|
128
|
+
`app_services` is a **bridge** capability, like `wix_api` and `stream`: it has no `capability.*`
|
|
129
|
+
verbs and no native footprint. A screen worker that calls `app.read` / `app.dispatch` from
|
|
130
|
+
`@himalaya/state` reaches the app's own services across two dedicated worker bridges, and the
|
|
131
|
+
screen that runs that bundle must declare it:
|
|
132
|
+
|
|
133
|
+
```jsonc
|
|
134
|
+
"logicBundle": { "url": "…/v1/bundles/jobs_home", "declaredCapabilities": ["app_services"] }
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
- **The screen declaration is enough.** The screen's declaration is what puts `app_services` into
|
|
138
|
+
the release's host requirements, so the app need not list it in `config.ts` `capabilities`, and
|
|
139
|
+
`himi validate` does not ask it to. A host binary that serves app services must list it in its
|
|
140
|
+
own config. An HHP app declares it in `config.ts` instead, because HHP copies that list onto
|
|
141
|
+
every screen; listing it there is never flagged.
|
|
142
|
+
- **Checked from the built bundle.** `himi validate` sees the bridge names
|
|
143
|
+
(`__himalaya_app_read`, `__himalaya_app_dispatch`) in a built screen bundle, and so does a plain
|
|
144
|
+
`dispatch("app.<service>.<action>")` with a literal id, which is gated the same way. A bundle doing
|
|
145
|
+
either that no screen running it declares `app_services` for gets the same undeclared-capability
|
|
146
|
+
finding as any other call. The app bundle that *defines* the services, and an `app.*` action id written in
|
|
147
|
+
a descriptor, are not screen-worker calls and are never flagged.
|
|
148
|
+
- **Not in any shell yet.** No shipped binary — Himi Player included — serves the app-service
|
|
149
|
+
bridges yet, so `himi capabilities app_services` lists no shell that serves it, and a
|
|
150
|
+
`himi dist` build cannot add it (a bridge capability belongs to the shell that hosts it).
|
|
151
|
+
Using app services also needs an app whose minimum binary version ships them. `himi validate`
|
|
152
|
+
reports that gate for a screen that declares `app_services` or calls `app.read` / `app.dispatch`.
|
|
153
|
+
A plain `dispatch("app.…")` reaches it through the declaration the finding above asks for.
|
|
154
|
+
|
|
126
155
|
### Local database and tenant switches
|
|
127
156
|
|
|
128
157
|
On native hosts `local_database` is also scoped by the host's active tenant. On a multi-tenant host such as Himi Player, a worker is stamped with the tenant that was active when its boot started. The
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1509.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": "e93a43678d27c6109e94db0df1cbc5d530447037d1ba12bc431c73cc"
|
|
75
75
|
}
|