@agent-compose/sdk 0.1.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/LICENSE +21 -0
- package/README.md +152 -0
- package/dist/agent/agent-loop.d.ts +27 -0
- package/dist/agent/protocol.d.ts +7 -0
- package/dist/agent/run-agent.d.ts +58 -0
- package/dist/client.d.ts +110 -0
- package/dist/errors.d.ts +5 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +1114 -0
- package/dist/runtimes/claude.d.ts +63 -0
- package/dist/runtimes/openai-desktop.d.ts +22 -0
- package/dist/runtimes/openai-desktop.js +1197 -0
- package/dist/sandbox.d.ts +126 -0
- package/dist/types/events.d.ts +80 -0
- package/dist/types/protocol.d.ts +56 -0
- package/dist/types/runtime.d.ts +48 -0
- package/dist/types/sandbox-environment.d.ts +48 -0
- package/dist/types/sandbox.d.ts +50 -0
- package/dist/types/workflow.d.ts +109 -0
- package/dist/utils/bundler.d.ts +26 -0
- package/dist/utils/discovery.d.ts +2 -0
- package/dist/utils/errors.d.ts +2 -0
- package/dist/utils/schemas.d.ts +8 -0
- package/dist/utils/source-loader.d.ts +6 -0
- package/dist/workflows/engine.d.ts +50 -0
- package/package.json +60 -0
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agent-compose/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Client library for agent-compose — define agents, runtimes, and workflows, and invoke them against an agent-compose server.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Layr-Labs/agent-compose.git",
|
|
9
|
+
"directory": "sdk"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"bun": "./src/index.ts",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./runtimes/openai-desktop": {
|
|
21
|
+
"bun": "./src/runtimes/openai-desktop.ts",
|
|
22
|
+
"types": "./dist/runtimes/openai-desktop.d.ts",
|
|
23
|
+
"import": "./dist/runtimes/openai-desktop.js",
|
|
24
|
+
"default": "./dist/runtimes/openai-desktop.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=20"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"test": "vitest run src/__tests__",
|
|
34
|
+
"build": "bun run build:js && bun run build:types",
|
|
35
|
+
"build:js": "bun build src/index.ts src/runtimes/openai-desktop.ts --outdir dist --target node --format esm --packages external",
|
|
36
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
37
|
+
"clean": "rm -rf dist",
|
|
38
|
+
"prepublishOnly": "bun run clean && bun run build"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"zod": "^4"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^22.19.15",
|
|
45
|
+
"typescript": "^5.8.0",
|
|
46
|
+
"vitest": "^3.0.0"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@e2b/desktop": "^1.1.2",
|
|
50
|
+
"@vercel/sandbox": "^1.10.0",
|
|
51
|
+
"e2b": "^2.3.0",
|
|
52
|
+
"ofetch": "^1.5.1",
|
|
53
|
+
"openai": "^6.33.0",
|
|
54
|
+
"p-retry": "^6.2.0",
|
|
55
|
+
"sharp": "^0.34.5"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
}
|
|
60
|
+
}
|