diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..4cb26f0a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + allow: + - dependency-type: "all" + groups: + minor: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0eed4664..aa0d19fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: - node-version: latest + node-version: "lts/*" cache: "npm" - name: Install dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc93447a..eff53d70 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,14 +1,44 @@ name: Publish and Release on: push: - tags: - - "v*.*.*" - workflow_dispatch: + branches: + - main jobs: + release-please: + runs-on: ubuntu-latest + environment: release # Optional: for enhanced security + permissions: + contents: write + issues: write + pull-requests: write + steps: + # Generating a GitHub token, so that PRs and tags created by + # the release-please-action can trigger actions workflows. + - name: Generate GitHub token + uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 + id: generate-token + with: + # GitHub App ID secret name + app-id: ${{ secrets.RELEASE_PLZ_APP_ID }} + # GitHub App private key secret name + private-key: ${{ secrets.RELEASE_PLZ_APP_PRIVATE_KEY }} + - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 + id: release + with: + token: ${{ steps.generate-token.outputs.token }} + release-type: node + config-file: release-please-config.json + manifest-file: .release-please-manifest.json + outputs: + release_created: ${{ steps.release.outputs.release_created }} + tag_name: ${{ steps.release.outputs.tag_name }} + build-binaries: name: Build (${{ matrix.target }}) runs-on: ubuntu-latest + needs: [release-please] + if: ${{ needs.release-please.outputs.release_created }} permissions: contents: read timeout-minutes: 15 @@ -77,8 +107,8 @@ jobs: publish-npm: name: Publish to npm runs-on: ubuntu-latest - needs: [build-binaries] - if: startsWith(github.ref, 'refs/tags/') + needs: [build-binaries, release-please] + if: ${{ needs.release-please.outputs.release_created }} environment: release # Optional: for enhanced security permissions: contents: read @@ -99,8 +129,8 @@ jobs: release: name: Create Release runs-on: ubuntu-latest - needs: [build-binaries, publish-npm] - if: startsWith(github.ref, 'refs/tags/') + needs: [build-binaries, publish-npm, release-please] + if: ${{ needs.release-please.outputs.release_created }} permissions: contents: write @@ -113,8 +143,12 @@ jobs: path: artifacts merge-multiple: true - - name: Create Release - uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 - with: - generate_release_notes: true - files: artifacts/* + - name: Upload artifacts + shell: bash + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload \ + "${{ needs.release-please.outputs.tag_name }}" \ + artifacts/* \ + --clobber diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fad8217..4d340d0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.24.0 + +Rename from `@zed-industries/claude-agent-acp` to `@agentclientprotocol/claude-agent-acp`. + +We are moving this to the main ACP org to better allow multiple teams to contribute and maintain this adapter. + ## 0.23.1 - Add back error_during_execution break point (#469) diff --git a/LICENSE b/LICENSE index 461a0fe5..c24b0535 100644 --- a/LICENSE +++ b/LICENSE @@ -1,42 +1,18 @@ -Copyright 2022 - 2025 Zed Industries, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - - http://www.apache.org/licenses/LICENSE-2.0 - - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - - -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - 1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, @@ -45,28 +21,23 @@ Apache License otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications @@ -75,7 +46,6 @@ Apache License separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally @@ -90,12 +60,10 @@ Apache License excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable @@ -103,7 +71,6 @@ Apache License publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable @@ -120,28 +87,23 @@ Apache License granted to You under this License for that Work shall terminate as of the date such litigation is filed. - 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and - (b) You must cause any modified files to carry prominent notices stating that You changed the files; and - (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained @@ -159,7 +121,6 @@ Apache License that such additional attribution notices cannot be construed as modifying the License. - You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or @@ -167,7 +128,6 @@ Apache License reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of @@ -176,13 +136,11 @@ Apache License the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, @@ -193,7 +151,6 @@ Apache License appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly @@ -206,7 +163,6 @@ Apache License other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, @@ -218,5 +174,18 @@ Apache License incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS + + Copyright 2025 Zed Industries, Inc. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index 04b71d68..f4b0e8dd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # ACP adapter for the Claude Agent SDK -[![npm](https://img.shields.io/npm/v/%40zed-industries%2Fclaude-agent-acp)](https://www.npmjs.com/package/@zed-industries/claude-agent-acp) +[![npm](https://img.shields.io/npm/v/%40agentclientprotocol%2Fclaude-agent-acp)](https://www.npmjs.com/package/@agentclientprotocol/claude-agent-acp) -Use [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview#branding-guidelines) from [ACP-compatible](https://agentclientprotocol.com) clients such as [Zed](https://zed.dev)! +Use [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview#branding-guidelines) from [ACP-compatible](https://agentclientprotocol.com) clients! This tool implements an ACP agent by using the official [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview), supporting: @@ -18,41 +18,8 @@ This tool implements an ACP agent by using the official [Claude Agent SDK](https Learn more about the [Agent Client Protocol](https://agentclientprotocol.com/). -## How to use +## Contribution Policy -### Zed +This project does not require a Contributor License Agreement (CLA). Instead, contributions are accepted under the following terms: -The latest version of Zed can already use this adapter out of the box. - -To use Claude Agent, open the Agent Panel and click "New Claude Agent 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](https://zed.dev/docs/ai/external-agents) support. - -### Other clients - -Or try it with any of the other [ACP compatible clients](https://agentclientprotocol.com/overview/clients)! - -#### Installation - -Install the adapter from `npm`: - -```bash -npm install -g @zed-industries/claude-agent-acp -``` - -You can then use `claude-agent-acp` as a regular ACP agent: - -``` -ANTHROPIC_API_KEY=sk-... claude-agent-acp -``` - -#### Single-file executable - -Pre-built single-file binaries are available on the [Releases](https://github.com/zed-industries/claude-agent-acp/releases) page for Linux, macOS, and Windows. -These binaries bundle everything needed and don't require Node.js. - -## License - -Apache-2.0 +> By contributing to this project, you agree that your contributions will be licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0). You affirm that you have the legal right to submit your work, that you are not including code you do not have rights to, and that you understand contributions are made without requiring a Contributor License Agreement (CLA). diff --git a/package-lock.json b/package-lock.json index 462c8e9e..98ae7404 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@zed-industries/claude-agent-acp", - "version": "0.23.1", + "name": "@agentclientprotocol/claude-agent-acp", + "version": "0.24.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@zed-industries/claude-agent-acp", - "version": "0.23.1", + "name": "@agentclientprotocol/claude-agent-acp", + "version": "0.24.0", "license": "Apache-2.0", "dependencies": { "@agentclientprotocol/sdk": "0.17.0", diff --git a/package.json b/package.json index 3662b841..0efbe2d7 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "@zed-industries/claude-agent-acp", + "name": "@agentclientprotocol/claude-agent-acp", "publishConfig": { "access": "public" }, - "version": "0.23.1", + "version": "0.24.0", "description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)", "main": "dist/lib.js", "types": "dist/lib.d.ts", @@ -49,13 +49,13 @@ "sdk", "code" ], - "homepage": "https://github.com/zed-industries/claude-agent-acp#readme", + "homepage": "https://github.com/agentclientprotocol/claude-agent-acp#readme", "bugs": { - "url": "https://github.com/zed-industries/claude-agent-acp/issues" + "url": "https://github.com/agentclientprotocol/claude-agent-acp/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/zed-industries/claude-agent-acp.git" + "url": "git+https://github.com/agentclientprotocol/claude-agent-acp.git" }, "author": "Zed Industries", "license": "Apache-2.0",