@devflow-tools/adapters 0.17.5 → 0.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -29
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,49 +1,43 @@
|
|
|
1
1
|
# @devflow-tools/adapters
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 面向 Claude Code 等 Agent 的 MCP 配置适配器。(v0.17.7)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@devflow-tools/adapters)
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npm install @devflow-tools/adapters
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## 快速开始
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
| Claude Code | Anthropic Claude Code | `claudeAdapter` |
|
|
16
|
-
| Cline / Codex / Cursor / RooCode | Community configuration examples only | `examples/adapters/` |
|
|
15
|
+
```typescript
|
|
16
|
+
import { detectAll, connect } from '@devflow-tools/adapters';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
console.log(await detectAll());
|
|
19
|
+
await connect('claude', { command: 'devflow-mcp', args: ['--mode', 'stdio'] });
|
|
20
|
+
```
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
import { getAdapter, connect, detectAll } from '@devflow-tools/adapters';
|
|
22
|
+
## 公共 API / 命令
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
const agents = await detectAll();
|
|
25
|
-
console.log(agents); // ['claude']
|
|
24
|
+
`getAdapter`、`listAdapters`、`detectAll`、`connect`、`connectAll` 和 `claudeAdapter`。
|
|
26
25
|
|
|
27
|
-
// 连接指定 agent
|
|
28
|
-
await connect('claude', {
|
|
29
|
-
command: 'devflow-mcp',
|
|
30
|
-
args: ['--mode', 'stdio'],
|
|
31
|
-
});
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
## 配置与运行时
|
|
28
|
+
|
|
29
|
+
当前生产适配器是 Claude Code;其他客户端可复用 MCP 配置格式,但不会获得 DevFlow hooks/daemon 生命周期集成。
|
|
30
|
+
|
|
31
|
+
## 版本与兼容性
|
|
36
32
|
|
|
37
|
-
|
|
33
|
+
- 当前包版本:`0.17.7`
|
|
34
|
+
- Node.js:未在 package manifest 声明更高版本时,使用 Node.js 18+;原生 SQLite/Playwright 能力请按对应依赖安装
|
|
35
|
+
- workspace 内部包应使用同一 DevFlow minor/patch 版本,避免类型和数据库 schema 不一致
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
- `detectAll()` — 检测系统上所有可用 agent
|
|
41
|
-
- `connect(agentName, options)` — 配置单个 agent 的 MCP 连接
|
|
42
|
-
- `connectAll(projectRoot)` — 配置所有检测到的 agent
|
|
43
|
-
- `listAdapters()` — 列出所有支持的 agent 名称
|
|
44
|
-
- `claudeAdapter` — 唯一生产级 Adapter
|
|
37
|
+
## 相关链接
|
|
45
38
|
|
|
46
|
-
|
|
39
|
+
- [DevFlow 仓库](https://github.com/shilongfeicool/dev-flow)
|
|
40
|
+
- [问题反馈](https://github.com/shilongfeicool/dev-flow/issues)
|
|
47
41
|
|
|
48
42
|
## License
|
|
49
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/adapters",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"clean": "rm -rf dist"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@devflow-tools/sdk": "0.17.
|
|
20
|
+
"@devflow-tools/sdk": "0.17.7"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.5.0",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "560fe8a097aa9d398fdcfec409134cc94d26f92f"
|
|
30
30
|
}
|