agentscope-ai / agentscope-ai/QwenPaw

内置 ACP runner 使用已弃用的 npm 包名:@zed-industries/claude-agent-acp / @zed-industries/codex-acp

未关闭
#6,792 2 条评论 0 个 reaction 已指派 1 人 已被 @x1n95c 认领 在 GitHub 查看
主要语言
Python
星标
34.9k
派生
3.1k
平均合并
1 天 15 小时
30 天内合并 PR
225

描述

# QwenPaw GitHub Issue 草稿

**目标仓库:** https://github.com/agentscope-ai/QwenPaw

---

## 标题

> 内置 ACP runner 使用已弃用的 npm 包名:`@zed-industries/claude-agent-acp` / `@zed-industries/codex-acp`

---

## 正文

### 问题描述

QwenPaw 内置的 ACP runner 默认配置引用了已弃用(DEPRECATED)的 npm 包:

- `claude_code` runner → `npx -y @zed-industries/claude-agent-acp`
- `codex` runner → `npx -y @zed-industries/codex-acp`

运行时会收到 npm 弃用警告,且这些包已停止更新。用户需要手动修改本地 `~/.qwenpaw/config.json` 才能迁移,体验不佳。

### 涉及的代码位置

`src/qwenpaw/config/config.py` 中 `_get_default_acp_agents()`:

```python
"claude_code": ACPAgentConfig(
enabled=True,
command="npx",
args=["-y", "@zed-industries/claude-agent-acp"],
...
),
"codex": ACPAgentConfig(
enabled=True,
command="npx",
args=["-y", "@zed-industries/codex-acp"],
...
),
```

### npm 包迁移信息

| Runner | 旧包名(已弃用) | 新包名(官方迁移目标) | 新包最新版本 |
|--------|-----------------|----------------------|------------|
| claude_code | `@zed-industries/claude-agent-acp` (0.23.1) | `@agentclientprotocol/claude-agent-acp` | 0.65.0 |
| codex | `@zed-industries/codex-acp` (0.16.0) | `@agentclientprotocol/codex-acp` | 1.1.13 |

### 建议修复

将默认配置中的包名迁移到新包:

```python
"claude_code": ACPAgentConfig(
enabled=True,
command="npx",
args=["-y", "@agentclientprotocol/claude-agent-acp"],
...
),
"codex": ACPAgentConfig(
enabled=True,
command="npx",
args=["-y", "@agentclientprotocol/codex-acp"],
...
),
```

### 复现步骤

1. 运行 `npx -y @zed-industries/claude-agent-acp --help`
2. 观察到 npm 弃用警告:`This package has been renamed to @agentclientprotocol/claude-agent-acp. Please migrate to continue receiving updates.`

### 环境

- QwenPaw 版本:最新源码(`main` 分支)
- 平台:macOS (arm64)
- Node/npm 环境:npm 会为所有用户触发弃用警告

---

## 可选:贴到 issue 时的补充标签

- `bug` / `enhancement`(二选一,个人觉得 `enhancement` 更合适,因为是默认配置改进)
- `dependencies`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。