Skip to content

feat: add Chatwork adapter for chat SDK#117

Open
magcho wants to merge 1 commit intovercel:mainfrom
magcho:claude/implement-chatwork-adapter-YzSwZ
Open

feat: add Chatwork adapter for chat SDK#117
magcho wants to merge 1 commit intovercel:mainfrom
magcho:claude/implement-chatwork-adapter-YzSwZ

Conversation

@magcho
Copy link

@magcho magcho commented Feb 26, 2026

Implement a new adapter for Chatwork (packages/adapter-chatwork) with:

  • Webhook handling with HMAC-SHA256 signature verification (X-ChatWorkWebhookSignature header, Base64-decoded token as HMAC key)
  • Message operations via Chatwork REST API v2 (send, edit, delete, fetch)
  • Chatwork format conversion (info/code/hr/To/qt tags ↔ mdast AST)
  • Thread ID format: chatwork:{roomId}
  • Zero-config factory function (createChatworkAdapter) with env var support (CHATWORK_API_TOKEN, CHATWORK_WEBHOOK_TOKEN, CHATWORK_BOT_ACCOUNT_ID)
  • Unit tests for format converter, webhook handling, and message parsing
  • Changeset for versioning

https://claude.ai/code/session_01EcheiLxBYz8fzXJBevfGJF

Summary

Test plan

Implement a new adapter for Chatwork (packages/adapter-chatwork) with:

- Webhook handling with HMAC-SHA256 signature verification
  (X-ChatWorkWebhookSignature header, Base64-decoded token as HMAC key)
- Message operations via Chatwork REST API v2 (send, edit, delete, fetch)
- Chatwork format conversion (info/code/hr/To/qt tags ↔ mdast AST)
- Thread ID format: chatwork:{roomId}
- Zero-config factory function (createChatworkAdapter) with env var support
  (CHATWORK_API_TOKEN, CHATWORK_WEBHOOK_TOKEN, CHATWORK_BOT_ACCOUNT_ID)
- Unit tests for format converter, webhook handling, and message parsing
- Changeset for versioning

https://claude.ai/code/session_01EcheiLxBYz8fzXJBevfGJF
@vercel
Copy link
Contributor

vercel bot commented Feb 26, 2026

@claude is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​node@​22.19.12100100100100100

View full report

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.

2 participants