Skip to content

Conversation

@juecd
Copy link
Contributor

@juecd juecd commented May 26, 2025

Implements the Anthropic CU reference implementation in Typescript and replaces xdotool + gnome-screenshot with Playwright.

I'll add the Python version after this.

kernel deploy index.ts --env ANTHROPIC_API_KEY=XXX
kernel invoke ts-cu cu-task --payload '{"query":"navigate to https://news.ycombinator.com and return the title of the first result. JUST RETURN THE TITLE, DONT WRITE ANYTHING ELSE."}'

@juecd juecd marked this pull request as ready for review May 26, 2025 23:32
@juecd
Copy link
Contributor Author

juecd commented May 27, 2025

alt and f keys not working

@juecd juecd requested a review from rgarcia May 28, 2025 20:36
@juecd
Copy link
Contributor Author

juecd commented May 28, 2025

need to map 'left' (alt+left)
keyboard.down: Unknown key: "left"
at ComputerTool20250124.handleKeyboardAction (/boot-node/app/tools/computer.ts:111:34)
at async ComputerTool20250124.call (/boot-node/app/tools/computer.ts:224:14)
at async ToolCollection.run (/boot-node/app/tools/collection.ts:59:12)
at async samplingLoop (/boot-node/app/loop.ts:166:28)
at async Object.handler (/boot-node/app/index.ts:47:29)
at async executeAction (/boot-node/index.ts:128:26) {
name: 'Error'
}
Error in sampling loop: keyboard.down: Unknown key: "left"
at ComputerTool20250124.handleKeyboardAction (/boot-node/app/tools/computer.ts:111:34)
at async ComputerTool20250124.call (/boot-node/app/tools/computer.ts:224:14)
at async ToolCollection.run (/boot-node/app/tools/collection.ts:59:12)
at async samplingLoop (/boot-node/app/loop.ts:166:28)
at async Object.handler (/boot-node/app/index.ts:47:29)
at async executeAction (/boot-node/index.ts:128:26) {
name: 'Error'
}

@juecd juecd merged commit 04903b5 into main May 29, 2025
@juecd juecd deleted the cu-ts branch May 29, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants