@anna-ai/app-runtime 0.4.2 → 0.5.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 +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
// Apps requesting longer per call must pass { timeoutMs }; bounded
|
|
72
72
|
// server-side by ANNA_APP_TOOLS_INVOKE_TIMEOUT_MAX_MS.
|
|
73
73
|
tools: 70000,
|
|
74
|
+
// `files.*` covers R2 presign + DB write (upload_init/finalize); the
|
|
75
|
+
// browser→R2 PUT itself is direct (not via this SDK), but the host
|
|
76
|
+
// round-trip for finalize needs DB+R2 head ~ up to a few seconds.
|
|
77
|
+
files: 60000,
|
|
74
78
|
};
|
|
75
79
|
const DEFAULT_TIMEOUT_MS = 30000;
|
|
76
80
|
|
|
@@ -288,6 +292,14 @@
|
|
|
288
292
|
this.image = buildNamespace(this, "image");
|
|
289
293
|
this.upload = buildNamespace(this, "upload");
|
|
290
294
|
|
|
295
|
+
// ---- files namespace (APS object/blob API; v0.5.x) ----
|
|
296
|
+
// anna.files.upload_init({path, content_type, size, ttl_seconds?, metadata?, tags?, if_match?})
|
|
297
|
+
// anna.files.upload_finalize({path, etag, size_bytes, metadata?})
|
|
298
|
+
// anna.files.download_url({path, ttl_seconds?, disposition?})
|
|
299
|
+
// anna.files.list({prefix?, cursor?, limit?})
|
|
300
|
+
// anna.files.delete({path, if_match?})
|
|
301
|
+
this.files = buildNamespace(this, "files");
|
|
302
|
+
|
|
291
303
|
// Reassembly buffers for `rpc.stream` events. Map<stream_id, AgentRunStream>.
|
|
292
304
|
this._streams = new Map();
|
|
293
305
|
this.on("rpc.stream", (payload) => this._onStreamFrame(payload || {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anna-ai/app-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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",
|