@devflow-tools/adapters 0.17.5 → 0.17.6

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.
Files changed (2) hide show
  1. package/README.md +23 -29
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,49 +1,43 @@
1
1
  # @devflow-tools/adapters
2
2
 
3
- DevFlow production adapter for Claude Code.
3
+ > 面向 Claude Code Agent 的 MCP 配置适配器。(v0.17.6)
4
4
 
5
- ## Installation
5
+ [![npm version](https://img.shields.io/npm/v/%40devflow-tools%2Fadapters.svg)](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
- ## Supported Agents
13
+ ## 快速开始
12
14
 
13
- | Adapter | Agent | 导出 |
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
- ## Usage
18
+ console.log(await detectAll());
19
+ await connect('claude', { command: 'devflow-mcp', args: ['--mode', 'stdio'] });
20
+ ```
19
21
 
20
- ```typescript
21
- import { getAdapter, connect, detectAll } from '@devflow-tools/adapters';
22
+ ## 公共 API / 命令
22
23
 
23
- // 检测所有可用 agent
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
- // 连接所有检测到的 agent
34
- await connectAll({ command: 'devflow-mcp', args: ['--mode', 'stdio'] });
35
- ```
27
+ ## 配置与运行时
28
+
29
+ 当前生产适配器是 Claude Code;其他客户端可复用 MCP 配置格式,但不会获得 DevFlow hooks/daemon 生命周期集成。
30
+
31
+ ## 版本与兼容性
36
32
 
37
- ## API
33
+ - 当前包版本:`0.17.6`
34
+ - Node.js:未在 package manifest 声明更高版本时,使用 Node.js 18+;原生 SQLite/Playwright 能力请按对应依赖安装
35
+ - workspace 内部包应使用同一 DevFlow minor/patch 版本,避免类型和数据库 schema 不一致
38
36
 
39
- - `getAdapter(name)` — 按名称获取适配器实例
40
- - `detectAll()` — 检测系统上所有可用 agent
41
- - `connect(agentName, options)` — 配置单个 agent 的 MCP 连接
42
- - `connectAll(projectRoot)` — 配置所有检测到的 agent
43
- - `listAdapters()` — 列出所有支持的 agent 名称
44
- - `claudeAdapter` — 唯一生产级 Adapter
37
+ ## 相关链接
45
38
 
46
- Other MCP clients can use the stdio configuration sketches in `examples/adapters/`, but they do not receive DevFlow Hook, daemon, enforcement, or lifecycle integration.
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.5",
3
+ "version": "0.17.6",
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.5"
20
+ "@devflow-tools/sdk": "0.17.6"
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": "817b0286c249eed9c2bd27d3974ee3b3d6ded4bb"
29
+ "gitHead": "669fea3aa72aa3fde14ed50d24c1fec4dfac088f"
30
30
  }