Skip to content

feat(doubao-app): add Doubao AI desktop app CLI adapter#289

Merged
jackwener merged 1 commit intomainfrom
feat/doubao-app-clean
Mar 23, 2026
Merged

feat(doubao-app): add Doubao AI desktop app CLI adapter#289
jackwener merged 1 commit intomainfrom
feat/doubao-app-clean

Conversation

@jackwener
Copy link
Owner

Add a CLI adapter for Doubao desktop app via CDP.

Commands

Command Description
doubao-app status Check CDP connection
doubao-app send Send a message
doubao-app read Read chat history
doubao-app new Start new chat
doubao-app ask Send and wait for AI response
doubao-app screenshot Capture screenshot
doubao-app dump Dump DOM for debugging

Improvements over original PR #250

  • Renamed site from doubao to doubao-app (coexists with web doubao adapter)
  • Extracted shared selectors and evaluate scripts into common.ts
  • Strategy.UI (correct for desktop CDP)
  • Cleaned up imports and code style

- Commands: status, send, read, new, ask, screenshot, dump
- Uses Strategy.UI for desktop CDP connection
- Shared common.ts with selectors and evaluate script builders
- Requires Doubao launched with --remote-debugging-port=9226
@jackwener jackwener merged commit 66c4b84 into main Mar 23, 2026
12 checks passed
@jackwener jackwener deleted the feat/doubao-app-clean branch March 23, 2026 06:53
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.

1 participant