Commit abc280a
committed
feat: Complete Cloudflare dojo integration with working server
✅ FULLY WORKING - Server tested and operational!
Structure changes:
- Move examples/server/* → examples/ (matches mastra pattern)
- Add integrations/cloudflare/typescript/examples to pnpm workspace
- Update dojo prep/run scripts to new path
Server fixes:
- Use Node.js built-in TypeScript support (--experimental-strip-types)
- Use --env-file=.env for automatic environment loading
- Fix import to use .ts extension for Node's TS support
- Fix Event types (EventType enum, RunErrorEvent)
Testing:
✅ Health endpoint works: http://localhost:4114/health
✅ Agentic chat works: Streams proper AG-UI events
✅ Cloudflare Workers AI integration working
✅ prep-dojo-everything.js --only cloudflare works
✅ run-dojo-everything.js --only cloudflare works
The server successfully:
- Loads env vars from .env file
- Connects to Cloudflare Workers AI
- Streams AG-UI protocol events (TEXT_MESSAGE_START/CONTENT/END)
- Returns proper event stream with runId, timestamps, metadata1 parent 4cc7f20 commit abc280a
File tree
9 files changed
+155
-258
lines changed- apps/dojo/scripts
- integrations/cloudflare/typescript/examples
- src
- agents
9 files changed
+155
-258
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
0 commit comments