@devflow-tools/adapters 0.3.1 → 0.4.0
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 +42 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @devflow-tools/adapters
|
|
2
|
+
|
|
3
|
+
IDE Agent adapters for DevFlow — automatically configure MCP connections for Claude Code, Cursor, Codex, Cline, and RooCode.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @devflow-tools/adapters
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Supported Agents
|
|
12
|
+
|
|
13
|
+
| Adapter | Agent |
|
|
14
|
+
|---------|-------|
|
|
15
|
+
| `claudeAdapter` | Claude Code |
|
|
16
|
+
| `cursorAdapter` | Cursor IDE |
|
|
17
|
+
| `codexAdapter` | OpenAI Codex CLI |
|
|
18
|
+
| `clineAdapter` | Cline (VS Code) |
|
|
19
|
+
| `rooCodeAdapter` | RooCode |
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { getAdapter, claudeAdapter } from '@devflow-tools/adapters';
|
|
25
|
+
|
|
26
|
+
// Get a specific adapter by name
|
|
27
|
+
const adapter = getAdapter('claude');
|
|
28
|
+
await adapter.connect({ command: 'devflow-mcp' });
|
|
29
|
+
|
|
30
|
+
// Or use directly
|
|
31
|
+
await claudeAdapter.connect({ command: 'devflow-mcp' });
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## API
|
|
35
|
+
|
|
36
|
+
- `getAdapter(name: string)` — get adapter by agent name
|
|
37
|
+
- `connectAgent(options)` — configure MCP connection for an agent
|
|
38
|
+
- `getAvailableAgents()` — list all supported agent names
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/adapters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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.
|
|
20
|
+
"@devflow-tools/sdk": "^0.4.0"
|
|
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": "c76bcf3a2bb8ac12b871738d6661979eb45090c6"
|
|
30
30
|
}
|