@rama_nigg/open-cursor 2.3.3 → 2.3.5
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 +32 -10
- package/dist/index.js +314 -216
- package/dist/plugin-entry.js +308 -210
- package/package.json +1 -1
- package/src/plugin.ts +33 -0
- package/src/provider/boundary.ts +3 -3
- package/src/provider/passthrough-tracker.ts +38 -0
- package/src/provider/runtime-interception.ts +175 -123
- package/src/provider/tool-loop-guard.ts +11 -65
- package/src/proxy/tool-loop.ts +42 -28
- package/src/services/toast-service.ts +81 -0
package/README.md
CHANGED
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
No prompt limits. No broken streams. Full thinking + tool support in OpenCode. Your Cursor subscription, properly integrated.
|
|
9
9
|
|
|
10
|
-
## Prerequisites
|
|
11
|
-
|
|
12
|
-
Required: [OpenCode](https://opencode.ai/) + [cursor-agent](https://cursor.com/) (`curl -fsSL https://cursor.com/install | bash && cursor-agent login`)
|
|
13
|
-
Optional: [Bun](https://bun.sh/) (Options B-F), [Go 1.21+](https://go.dev/) (Option D)
|
|
14
|
-
|
|
15
10
|
## Installation
|
|
16
11
|
|
|
17
12
|
### Option A — One-line installer
|
|
@@ -20,7 +15,8 @@ Optional: [Bun](https://bun.sh/) (Options B-F), [Go 1.21+](https://go.dev/) (Opt
|
|
|
20
15
|
curl -fsSL https://raw.githubusercontent.com/Nomadcxx/opencode-cursor/main/install.sh | bash
|
|
21
16
|
```
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
<details>
|
|
19
|
+
<summary><b>Option B</b> — Add to opencode.json</summary>
|
|
24
20
|
|
|
25
21
|
Add to `~/.config/opencode/opencode.json`:
|
|
26
22
|
|
|
@@ -72,8 +68,10 @@ Add to `~/.config/opencode/opencode.json`:
|
|
|
72
68
|
```
|
|
73
69
|
|
|
74
70
|
> Update models anytime: `cursor-agent models`
|
|
71
|
+
</details>
|
|
75
72
|
|
|
76
|
-
|
|
73
|
+
<details>
|
|
74
|
+
<summary><b>Option C</b> — npm global + CLI</summary>
|
|
77
75
|
|
|
78
76
|
```bash
|
|
79
77
|
npm install -g @rama_nigg/open-cursor
|
|
@@ -81,22 +79,28 @@ open-cursor install
|
|
|
81
79
|
```
|
|
82
80
|
|
|
83
81
|
Upgrade: `npm update -g @rama_nigg/open-cursor`
|
|
82
|
+
</details>
|
|
84
83
|
|
|
85
|
-
|
|
84
|
+
<details>
|
|
85
|
+
<summary><b>Option D</b> — Go TUI installer</summary>
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
88
|
git clone https://github.com/Nomadcxx/opencode-cursor.git
|
|
89
89
|
cd opencode-cursor
|
|
90
90
|
go build -o ./installer ./cmd/installer && ./installer
|
|
91
91
|
```
|
|
92
|
+
</details>
|
|
92
93
|
|
|
93
|
-
|
|
94
|
+
<details>
|
|
95
|
+
<summary><b>Option E</b> — LLM paste</summary>
|
|
94
96
|
|
|
95
97
|
```
|
|
96
98
|
Install open-cursor for OpenCode: edit ~/.config/opencode/opencode.json, add "@rama_nigg/open-cursor@latest" to "plugin", add a "cursor-acp" provider with npm "@ai-sdk/openai-compatible" and models from `cursor-agent models` prefixed with "cursor-acp/". Auth: `cursor-agent login`. Verify: `opencode models | grep cursor-acp`.
|
|
97
99
|
```
|
|
100
|
+
</details>
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
<details>
|
|
103
|
+
<summary><b>Option F</b> — Manual (from source)</summary>
|
|
100
104
|
|
|
101
105
|
```bash
|
|
102
106
|
git clone https://github.com/Nomadcxx/opencode-cursor.git && cd opencode-cursor
|
|
@@ -106,6 +110,7 @@ ln -sf $(pwd)/dist/plugin-entry.js ~/.config/opencode/plugin/cursor-acp.js
|
|
|
106
110
|
```
|
|
107
111
|
|
|
108
112
|
Add `"cursor-acp"` to the `plugin` array and reuse the provider block from Option B.
|
|
113
|
+
</details>
|
|
109
114
|
|
|
110
115
|
## Authentication
|
|
111
116
|
|
|
@@ -170,6 +175,23 @@ Default mode: `CURSOR_ACP_TOOL_LOOP_MODE=opencode`. Legacy `proxy-exec` still av
|
|
|
170
175
|
|
|
171
176
|
Debug logging: `CURSOR_ACP_LOG_LEVEL=debug opencode run "your prompt" --model cursor-acp/auto`
|
|
172
177
|
|
|
178
|
+
## Roadmap
|
|
179
|
+
|
|
180
|
+
```mermaid
|
|
181
|
+
flowchart LR
|
|
182
|
+
P1[/Stabilise/] --> P2[/MCP Server/] --> P3[/Simplify/] --> P4[/ACP + MCP/]
|
|
183
|
+
|
|
184
|
+
style P1 fill:#264653,stroke:#1d3557,color:#fff
|
|
185
|
+
style P2 fill:#264653,stroke:#1d3557,color:#fff
|
|
186
|
+
style P3 fill:#495057,stroke:#343a40,color:#adb5bd
|
|
187
|
+
style P4 fill:#495057,stroke:#343a40,color:#adb5bd
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
[X] **Stabilise** — Clean up dead code, fix test isolation
|
|
191
|
+
[ ] **MCP Server** — Expose OpenCode tools via stdio transport
|
|
192
|
+
[ ] **Simplify** — Rip out serialisation layers
|
|
193
|
+
[ ] **ACP + MCP** — Structured protocols end-to-end
|
|
194
|
+
|
|
173
195
|
## License
|
|
174
196
|
|
|
175
197
|
BSD-3-Clause
|