@anna-ai/app-runtime 0.13.0 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.js +16 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,17 @@
1
1
  /**
2
- * Anna App Runtime SDK — v0.11.0
2
+ * Anna App Runtime SDK — v0.14.0
3
+ *
4
+ * v0.14.0 — Adds `anna.agent.session.catalog()` — pre-create discovery of
5
+ * the platform-tool universe for agent sessions. Returns
6
+ * `{platform_tools: [{name, description, dev_safe, declared_in_manifest,
7
+ * user_granted, eligible, blocked_by?}], inherit_host_tools_granted,
8
+ * manifest_declared, user_granted}` so apps can learn which names are
9
+ * legal in create-time `quotaCaps.allowed_tools` / per-run
10
+ * `allowed_tools` — previously only discoverable after-the-fact via the
11
+ * create response's `granted_tools` echo. Read-only; mints no session.
12
+ * Coordinated bump: wire method `agent/session.catalog` —
13
+ * dispatcher_version 0.18.0 + schema 0.18.0 + anna-app-core 0.17.0.
14
+ * Additive: old hosts reject with `not_implemented`.
3
15
  *
4
16
  * v0.11.0 — Adds the `anna.credentials.*` namespace — platform-credentials
5
17
  * multi-account access (design platform-credentials-multi-account.md §7).
@@ -265,7 +277,9 @@
265
277
  // lives only here, not on the per-session AgentSession wrapper. `refresh`
266
278
  // is identity-authed (re-mints token + slides idle window by uuid) and is
267
279
  // also exposed as `.refresh()` sugar on the AgentSession handle.
268
- for (const m of ["create", "run", "cancel", "history", "delete", "list", "refresh"]) {
280
+ // `catalog` is the pre-create discovery surface (platform-tool universe
281
+ // + per-app eligibility) — read-only, no session required.
282
+ for (const m of ["create", "run", "cancel", "history", "delete", "list", "refresh", "catalog"]) {
269
283
  ns.session[m] = sessionRpcs[m];
270
284
  }
271
285
  // `attach` re-wraps an EXISTING session (known uuid) as an AgentSession
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anna-ai/app-runtime",
3
- "version": "0.13.0",
3
+ "version": "0.14.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",