Skip to content

Add App <-> AppBridge tests, setHostContext & sendToolInputPartial - #55

Merged
ochafik merged 3 commits into
mainfrom
ochafik/app-bridge-tests
Dec 1, 2025
Merged

Add App <-> AppBridge tests, setHostContext & sendToolInputPartial#55
ochafik merged 3 commits into
mainfrom
ochafik/app-bridge-tests

Conversation

@ochafik

@ochafik ochafik commented Dec 1, 2025

Copy link
Copy Markdown
Contributor
  • Add setHostContext and sendToolInputPartial to AppBridge
  • Add tests for comms between App (guest) and AppBridge (host)

ochafik and others added 2 commits December 1, 2025 19:48
- Add minimalistic tests validating communication between App (guest) and AppBridge (host)
- Test initialization handshake flow
- Test Host -> App notifications (toolInput, toolInputPartial, toolResult, hostContext)
- Test App -> Host notifications (sizeChange, log)
- Test App -> Host requests (sendMessage, sendOpenLink)
- Test ping functionality
- Add setHostContext and sendToolInputPartial to AppBridge
- Add test script to package.json

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ochafik
ochafik marked this pull request as ready for review December 1, 2025 19:52
- Add @types/bun devDependency for bun:test types
- Fix mock client request return type

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ochafik
ochafik requested a review from idosal December 1, 2025 20:29
@ochafik
ochafik merged commit cf4492d into main Dec 1, 2025
5 checks passed
@ochafik
ochafik deleted the ochafik/app-bridge-tests branch December 13, 2025 12:11
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