mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-10-27 04:30:59 +00:00
6572fcf978150f62eb21cf91cbce0f6f510c36ca
## Summary - Enable TypeScript declaration file generation (`.d.ts` and `.d.ts.map`) - Add `types` field and proper `exports` configuration to package.json - Add comprehensive integration test that verifies the full packaging flow ## Changes ### Build Configuration - **tsconfig.json**: Added `declaration: true` and `declarationMap: true` - **package.json**: Added `types` field and `exports` field with: - Main entry point with proper `types` and `import` conditions - Wildcard `"./*": "./*"` to preserve backwards compatibility for deep imports ### Integration Test The new test at `src/tests/typescript-declarations.test.ts` validates: - **Full packaging flow**: build → npm pack → install tarball → type-check - **Main exports**: All primary exports type-check correctly - **Deep imports**: Backwards compatibility for `dist/*.js` imports - **Type shapes**: Classes, interfaces, and function signatures match expected types - **Generic types**: Pushable<T> works correctly with type parameters - **Invalid types**: TypeScript correctly rejects incorrect usage The test creates temporary TypeScript projects, installs the actual `.tgz` package, and runs `tsc --noEmit` to verify type-checking passes. ## Test plan - [x] `npm run build` generates `.d.ts` and `.d.ts.map` files in `dist/` - [x] All 8 integration tests pass: `npm run test:integration -- typescript-declarations` - [x] Main exports type-check correctly - [x] Deep imports continue to work (no breaking change) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>
ACP adapter for Claude Code
Use Claude Code from ACP-compatible clients such as Zed!
This tool implements an ACP agent by using the official Claude Agent SDK, supporting:
- Context @-mentions
- Images
- Tool calls (with permission requests)
- Following
- Edit review
- TODO lists
- Interactive (and background) terminals
- Custom Slash commands
- Client MCP servers
Learn more about the Agent Client Protocol.
How to use
Zed
The latest version of Zed can already use this adapter out of the box.
To use Claude Code, open the Agent Panel and click "New Claude Code Thread" from the + button menu in the top-right:
https://github.com/user-attachments/assets/ddce66c7-79ac-47a3-ad59-4a6a3ca74903
Read the docs on External Agent support.
Other clients
Or try it with any of the other ACP compatible clients!
Installation
Install the adapter from npm:
npm install -g @zed-industries/claude-code-acp
You can then use claude-code-acp as a regular ACP agent:
ANTHROPIC_API_KEY=sk-... claude-code-acp
License
Apache-2.0
Description
Pull mirror of agentclientprotocol/claude-agent-acp (Apache-2.0): the ACP bridge that lets Buzz drive Claude Code
Languages
TypeScript
99.2%
JavaScript
0.6%
Shell
0.2%