cloudflare-openhands-sdk 0.2.1 → 0.3.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/README.md +15 -35
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,38 +22,17 @@ bun add cloudflare-openhands-sdk
22
22
 
23
23
  ## Quick Start
24
24
 
25
- ### 1. Configure Wrangler
26
-
27
- Add the Dockerfile to your `wrangler.jsonc`:
28
-
29
- ```jsonc
30
- {
31
- "containers": [
32
- {
33
- "class_name": "Sandbox",
34
- "image": "./node_modules/cloudflare-openhands-sdk/Dockerfile",
35
- "instance_type": "basic",
36
- "max_instances": 1
37
- }
38
- ],
39
- "durable_objects": {
40
- "bindings": [
41
- {
42
- "class_name": "Sandbox",
43
- "name": "Sandbox"
44
- }
45
- ]
46
- },
47
- "routes": [
48
- {
49
- "pattern": "*.yourdomain.com/*",
50
- "zone_name": "yourdomain.com"
51
- }
52
- ]
53
- }
25
+ The fastest way to get started is using our example template:
26
+
27
+ ```bash
28
+ npm create cloudflare@latest -- openhands-example --template=jagzmz/cloudflare-openhands-sdk/examples/openhands
29
+ # or
30
+ pnpm create cloudflare@latest -- openhands-example --template=jagzmz/cloudflare-openhands-sdk/examples/openhands
54
31
  ```
55
32
 
56
- ### 2. Use the SDK in Your Worker
33
+ For detailed setup instructions, deployment guide, and usage examples, see the [example README](examples/openhands/README.md).
34
+
35
+ ## Using the SDK in Your Worker
57
36
 
58
37
  ```typescript
59
38
  import { attachOpenhandsRoutes } from 'cloudflare-openhands-sdk/routes';
@@ -113,10 +92,7 @@ The package includes a pre-configured Dockerfile that:
113
92
  - Clones and builds the OpenHands software-agent-sdk
114
93
  - Sets up the agent-server environment
115
94
 
116
- Reference it in your `wrangler.jsonc`:
117
- ```jsonc
118
- "image": "./node_modules/cloudflare-openhands-sdk/Dockerfile"
119
- ```
95
+ For a complete Wrangler configuration example, see the [example project](examples/openhands/).
120
96
 
121
97
  ## Configuration Options
122
98
 
@@ -135,4 +111,8 @@ interface OpenhandsOptions {
135
111
 
136
112
  Apache 2.0
137
113
 
138
- This project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details.
114
+ This project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details.
115
+
116
+ ## Acknowledgments
117
+
118
+ This project was inspired by the [Cloudflare Sandbox SDK opencode example](https://github.com/cloudflare/sandbox-sdk/blob/main/packages/sandbox/src/opencode/).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudflare-openhands-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "SDK for integrating OpenHands agent-server with Cloudflare Workers Sandbox",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",