Commit d7a6ec8
Danny/kernel 685 add oagi cua python template to kernel cli (#55)
## Summary
- Add new **OpenAGI Computer Use** Python template powered by OpenAGI's
Lux models (`lux-actor-1` and `lux-thinker-1`), featuring two agent
types: `AsyncDefaultAgent` for high-level immediate execution and
`TaskerAgent` for structured workflows with predefined steps
> **Note:** Required mocking `pyautogui` and `mouseinfo` modules to
prevent X11 connection attempts at import time—the OAGI SDK imports
these internally, but they're unused in Kernel's deployed environment.
- Standardize computer use template naming convention across all
providers (e.g., `cua` → `openai-computer-use`, `computer-use` →
`anthropic-computer-use`, `gemini-cua` → `gemini-computer-use`)
- Unify template descriptions and action names for consistency (e.g.,
`cu-task` → `cua-task`)
> **Note:** If preferred, I can split this PR into two separate PRs—one
for the naming convention changes and one for the OpenAGI template
addition. Let me know!
## Test plan
- [x] Verify `kernel create` shows the new OpenAGI template in Python
language options
- [x] Test creating a new project with the OpenAGI template: `kernel
create --template openagi-computer-use --language python`
- [ ] Confirm renamed templates still work correctly
(`anthropic-computer-use`, `openai-computer-use`, `gemini-computer-use`)
- [x] Anthropic
- [x] OpenAI
- [ ] Gemini -> Seems to fail due to using stagehand v3 library version
now when it's built for stagehand v2. I believe this is unrelated to the
changes in this repo though as the deployment builds and the invocation
starts as expected before failing. Planning to fix in another PR if that
works.
- [x] Deploy and invoke the OpenAGI template with both agent types:
kernel invoke python-openagi-cua openagi-default-task -p
'{"instruction": "Navigate to https://agiopen.org"}'
kernel invoke python-openagi-cua openagi-tasker-task -p '{"task": "...",
"todos": [...]}'
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds a new Python OpenAGI computer-use template and
renames/standardizes Anthropic/OpenAI/Gemini computer-use templates
(incl. actions, app names, and commands) across code, docs, and tests.
>
> - **Templates**:
> - **New**: `python/openagi-computer-use` (AsyncDefaultAgent,
TaskerAgent, replay recording; requires `OAGI_API_KEY`).
> - **Standardization/Renames**:
> - `computer-use` → `anthropic-computer-use` (TS/Python).
> - `cua` → `openai-computer-use` (TS/Python).
> - `gemini-cua` → `gemini-computer-use` (TS only).
> - Unified action name `cu-task` → `cua-task`; app/package names
updated (e.g., `ts-cu` → `ts-anthropic-cua`, `python-cua` →
`python-openai-cua`).
> - **CLI/Code**:
> - Update template constants/map, display ordering (prioritize
Anthropic/OpenAI/Gemini), and per-template deploy/invoke commands.
> - Adjust file copy tests to new template keys; fix tests for Gemini
availability on Python.
> - **Docs**:
> - README and QA guide: refreshed template matrix, create/deploy/invoke
commands, env vars; added optional automated runtime testing; checklist
updated to 13 apps including OpenAGI.
> - **Template Sources**:
> - TS/Python template files updated to new app IDs and action names;
Gemini/OpenAI/Anthropic READMEs retitled.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
febd317. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Cursor Agent <[email protected]>1 parent 91cafac commit d7a6ec8
File tree
85 files changed
+2737
-99
lines changed- .cursor/commands
- cmd
- pkg
- create
- templates
- python
- anthropic-computer-use
- tools
- openagi-computer-use
- openai-computer-use
- agent
- computers
- contrib
- default
- typescript
- anthropic-computer-use
- tools
- types
- utils
- types
- utils
- gemini-computer-use
- openai-computer-use
- lib
- playwright
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
85 files changed
+2737
-99
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | | - | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | | - | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | | - | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | | - | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
194 | 205 | | |
195 | 206 | | |
196 | 207 | | |
| |||
200 | 211 | | |
201 | 212 | | |
202 | 213 | | |
203 | | - | |
| 214 | + | |
204 | 215 | | |
205 | | - | |
| 216 | + | |
206 | 217 | | |
207 | 218 | | |
208 | 219 | | |
209 | 220 | | |
210 | 221 | | |
211 | 222 | | |
212 | | - | |
213 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
214 | 226 | | |
215 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
216 | 265 | | |
217 | 266 | | |
218 | 267 | | |
219 | 268 | | |
220 | 269 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
224 | 273 | | |
| 274 | + | |
225 | 275 | | |
226 | 276 | | |
227 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
396 | | - | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | | - | |
446 | | - | |
| 445 | + | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments