@anna-ai/app-runtime 0.15.0 → 0.16.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/index.js +28 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Anna App Runtime SDK — v0.
|
|
2
|
+
* Anna App Runtime SDK — v0.16.0
|
|
3
|
+
*
|
|
4
|
+
* v0.16.0 — Adds the `anna.mobile.*` native-bridge namespace (design
|
|
5
|
+
* anna-app-mobile-runtime-phase3.md P1): `anna.mobile.share({title?,
|
|
6
|
+
* text?, url?, filename?, data_url?})` → `{shared}` (user cancel is
|
|
7
|
+
* `{shared: false}`, not an error), `anna.mobile.haptics({type, style?})`
|
|
8
|
+
* → `{ok}` and `anna.mobile.camera_capture({camera?, quality?,
|
|
9
|
+
* max_bytes?})` → `{data_url, mime, width, height, byte_size}`.
|
|
10
|
+
* Requires manifest `ui.host_api.mobile`. Only executable inside the
|
|
11
|
+
* anna-mobile shell — the shell intercepts granted envelopes client-side;
|
|
12
|
+
* desktop containers reject with `.code = "unsupported_container"`
|
|
13
|
+
* (distinct from `permission_denied` = grant missing) so apps can render
|
|
14
|
+
* a clean degradation notice. Structured non-error rejections from the
|
|
15
|
+
* native layer: `permission_denied_by_user` / `cancelled` / `too_large`.
|
|
16
|
+
* Coordinated versions: dispatcher_version 0.22.0 + schema 0.22.0 +
|
|
17
|
+
* anna-app-core 0.20.0. Additive: old hosts reject with `unknown_method`.
|
|
3
18
|
*
|
|
4
19
|
* v0.15.0 — Adds the async tool-job family (design
|
|
5
20
|
* anna-app-tools-invoke-async-jobs.md §3): `anna.tools.invokeAsync`
|
|
@@ -805,6 +820,18 @@
|
|
|
805
820
|
// user-enabled per-app credentials_grant.
|
|
806
821
|
this.credentials = buildNamespace(this, "credentials");
|
|
807
822
|
|
|
823
|
+
// ---- mobile namespace (v0.16.0; anna-mobile native bridge) ----
|
|
824
|
+
// anna.mobile.share({title?, text?, url?, filename?, data_url?})
|
|
825
|
+
// → {shared} (user cancel = {shared:false}, not an error)
|
|
826
|
+
// anna.mobile.haptics({type: "impact"|"notification"|"selection",
|
|
827
|
+
// style?}) → {ok}
|
|
828
|
+
// anna.mobile.camera_capture({camera?, quality?, max_bytes?})
|
|
829
|
+
// → {data_url, mime, width, height, byte_size}
|
|
830
|
+
// Requires manifest ui.host_api.mobile. Desktop containers reject
|
|
831
|
+
// with code="unsupported_container" (vs "permission_denied" = grant
|
|
832
|
+
// missing) — branch on it for a clean degradation notice.
|
|
833
|
+
this.mobile = buildNamespace(this, "mobile");
|
|
834
|
+
|
|
808
835
|
// ---- web namespace (v0.13.0; host-managed search/fetch) ----
|
|
809
836
|
// anna.web.search({query, max_results?, search_depth?, topic?,
|
|
810
837
|
// time_range?, region?, include_domains?, exclude_domains?})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anna-ai/app-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Anna App browser runtime SDK. Loaded by every Anna App iframe; provides typed proxy over the postMessage RPC bridge to the host (Anna dashboard / `anna-app dev` harness).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|