@camelai/run 0.0.0 → 0.11.1

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.
@@ -0,0 +1,9 @@
1
+ // SPDX-License-Identifier: MIT (shipped in the MIT-licensed SDK, @camelai/run)
2
+ export const FRAME_BYTES = 1_100_000;
3
+ /** How an outcome ended: its error, the runtime's or the model's (`result.error`), and why its turn stopped early. */
4
+ export function outcomeEnding(outcome) {
5
+ const result = (outcome?.result ?? {});
6
+ const error = outcome?.error ?? (typeof result.error === "string" ? result.error : undefined);
7
+ const stopped = result.stopped === "input_required" || result.stopped === "spend_limit" ? result.stopped : undefined;
8
+ return { ...(error !== undefined ? { error } : {}), ...(stopped ? { stopped } : {}) };
9
+ }
package/package.json CHANGED
@@ -1 +1,78 @@
1
- { "name": "@camelai/run", "version": "0.0.0", "description": "Placeholder: the first release (0.11.0) comes from github.com/qaml-ai/run.", "license": "MIT", "publishConfig": { "access": "public" } }
1
+ {
2
+ "name": "@camelai/run",
3
+ "version": "0.11.1",
4
+ "description": "SDK for camelRun: define tools in your app, and the runtime runs the model loop, history and sandbox.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/qaml-ai/run.git",
10
+ "directory": "sdk"
11
+ },
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org",
14
+ "access": "public"
15
+ },
16
+ "engines": {
17
+ "node": ">=22"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/clients/typescript.d.ts",
22
+ "default": "./dist/clients/typescript.js"
23
+ },
24
+ "./node": {
25
+ "types": "./dist/clients/node.d.ts",
26
+ "default": "./dist/clients/node.js"
27
+ },
28
+ "./mcp": {
29
+ "types": "./dist/clients/mcp.d.ts",
30
+ "default": "./dist/clients/mcp.js"
31
+ },
32
+ "./server": {
33
+ "types": "./dist/clients/server.d.ts",
34
+ "default": "./dist/clients/server.js"
35
+ },
36
+ "./watch": {
37
+ "types": "./dist/clients/watch.d.ts",
38
+ "default": "./dist/clients/watch.js"
39
+ },
40
+ "./chat": {
41
+ "types": "./dist/clients/chat.d.ts",
42
+ "default": "./dist/clients/chat.js"
43
+ },
44
+ "./markdown": {
45
+ "types": "./dist/clients/markdown.d.ts",
46
+ "default": "./dist/clients/markdown.js"
47
+ },
48
+ "./ai-sdk": {
49
+ "types": "./dist/clients/ai-sdk.d.ts",
50
+ "default": "./dist/clients/ai-sdk.js"
51
+ },
52
+ "./testing": {
53
+ "types": "./dist/clients/testing.d.ts",
54
+ "default": "./dist/clients/testing.js"
55
+ }
56
+ },
57
+ "files": [
58
+ "dist",
59
+ "README.md",
60
+ "LICENSE"
61
+ ],
62
+ "scripts": {
63
+ "build": "rm -rf dist && tsc -p tsconfig.json",
64
+ "prepublishOnly": "npm run build"
65
+ },
66
+ "dependencies": {
67
+ "typebox": "1.1.38"
68
+ },
69
+ "homepage": "https://run.camelai.com",
70
+ "peerDependencies": {
71
+ "@modelcontextprotocol/sdk": "^1.30.1"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "@modelcontextprotocol/sdk": {
75
+ "optional": true
76
+ }
77
+ }
78
+ }