@anna-ai/app-runtime 0.10.0 → 0.11.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 +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Anna App Runtime SDK — v0.
|
|
2
|
+
* Anna App Runtime SDK — v0.11.0
|
|
3
|
+
*
|
|
4
|
+
* v0.11.0 — Adds the `anna.credentials.*` namespace — platform-credentials
|
|
5
|
+
* multi-account access (design platform-credentials-multi-account.md §7).
|
|
6
|
+
* `anna.credentials.list_accounts({provider})` lists the user's authorized
|
|
7
|
+
* accounts (metadata only — never tokens); `anna.credentials.get_token(
|
|
8
|
+
* {provider, account_id?})` returns a short-lived access_token for one
|
|
9
|
+
* account (`account_id` omitted → the user's default account). Gated by
|
|
10
|
+
* manifest `ui.host_api.credentials` (a list of PROVIDER IDS, e.g.
|
|
11
|
+
* ["google"]) plus the user-enabled per-app `credentials_grant`.
|
|
12
|
+
* Coordinated bump: wire namespace `credentials/*` — dispatcher_version
|
|
13
|
+
* 0.13.0 + schema 0.13.0 + anna-app-core 0.12.0. Additive: old hosts
|
|
14
|
+
* return `-32601 Method not found` for `credentials.*`.
|
|
3
15
|
*
|
|
4
16
|
* v0.10.0 — Adds `anna.llm.stream(req)` — streaming L1 completion. Takes the
|
|
5
17
|
* SAME request shape as `anna.llm.complete(req)` but returns an
|
|
@@ -493,6 +505,14 @@
|
|
|
493
505
|
this.image = buildNamespace(this, "image");
|
|
494
506
|
this.upload = buildNamespace(this, "upload");
|
|
495
507
|
|
|
508
|
+
// ---- credentials namespace (v0.11.0; multi-account) ----
|
|
509
|
+
// anna.credentials.list_accounts({provider}) — metadata only, no tokens
|
|
510
|
+
// anna.credentials.get_token({provider, account_id?}) — short-lived
|
|
511
|
+
// access_token for one account; account_id omitted → default account.
|
|
512
|
+
// Requires manifest ui.host_api.credentials (provider ids) AND the
|
|
513
|
+
// user-enabled per-app credentials_grant.
|
|
514
|
+
this.credentials = buildNamespace(this, "credentials");
|
|
515
|
+
|
|
496
516
|
// ---- files namespace (APS object/blob API; v0.5.x) ----
|
|
497
517
|
// anna.files.upload_init({path, content_type, size, ttl_seconds?, metadata?, tags?, if_match?})
|
|
498
518
|
// anna.files.upload_finalize({path, etag, size_bytes, metadata?})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anna-ai/app-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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",
|