@rama_nigg/open-cursor 2.1.4 → 2.1.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 CHANGED
@@ -15,17 +15,9 @@ No prompt limits. No broken streams. Full thinking + tool support in Opencode. Y
15
15
  curl -fsSL https://raw.githubusercontent.com/Nomadcxx/opencode-cursor/main/install.sh | bash
16
16
  ```
17
17
 
18
- Note: if `npm` is available, `install.sh` installs/upgrades `@rama_nigg/open-cursor` and runs `open-cursor install`. Otherwise it falls back to building from source.
18
+ Note: if `npm` is available, `install.sh` installs/upgrades `@rama_nigg/open-cursor` and configures OpenCode automatically. Otherwise it falls back to building from source.
19
19
 
20
- **Option B: npm Package (Use when published)**
21
-
22
- Check whether the package is available on npm first:
23
-
24
- ```bash
25
- npm view @rama_nigg/open-cursor version
26
- ```
27
-
28
- If that returns a version, install with:
20
+ **Option B: npm Package (Recommended)**
29
21
 
30
22
  ```bash
31
23
  npm install -g @rama_nigg/open-cursor
@@ -39,8 +31,6 @@ npm update -g @rama_nigg/open-cursor
39
31
  open-cursor sync-models
40
32
  ```
41
33
 
42
- If `npm view` returns `404 Not Found`, the release has not been published yet. Use Option A, C, or E.
43
-
44
34
  **Option C: TUI Installer**
45
35
 
46
36
  ```bash
@@ -56,32 +46,28 @@ Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):
56
46
  ```
57
47
  Install the cursor-acp plugin for OpenCode:
58
48
 
59
- 1. Clone and build:
49
+ 1. Preferred install (npm):
50
+ npm install -g @rama_nigg/open-cursor
51
+ open-cursor install
52
+
53
+ 2. Fallback (build from source):
60
54
  git clone https://github.com/Nomadcxx/opencode-cursor.git
61
55
  cd opencode-cursor
62
56
  bun install && bun run build
63
-
64
- 2. Create plugin symlink:
65
57
  mkdir -p ~/.config/opencode/plugin
66
58
  ln -sf $(pwd)/dist/plugin-entry.js ~/.config/opencode/plugin/cursor-acp.js
59
+ ./scripts/sync-models.sh
67
60
 
68
- 3. Get available models:
69
- cursor-agent models
70
-
71
- 4. Add to ~/.config/opencode/opencode.json - merge with existing config:
72
- - Add "cursor-acp" to the "plugin" array
73
- - Add a "cursor-acp" provider with models from step 3
74
- - Set npm to "@ai-sdk/openai-compatible"
75
- - Set options.baseURL to "http://127.0.0.1:32124/v1"
76
-
77
- 5. Verify: opencode models | grep cursor
61
+ 3. Verify:
62
+ opencode models | grep cursor-acp
78
63
  ```
79
64
 
80
65
  **Option E: Manual Install**
81
66
 
82
67
  ```bash
83
68
  bun install && bun run build
84
- ln -s $(pwd)/dist/plugin-entry.js ~/.config/opencode/plugin/cursor-acp.js
69
+ mkdir -p ~/.config/opencode/plugin
70
+ ln -sf $(pwd)/dist/plugin-entry.js ~/.config/opencode/plugin/cursor-acp.js
85
71
  ```
86
72
 
87
73
  The installers handle the rest automatically. If you're doing a manual install, you'll need to do the following steps yourself.
@@ -92,7 +78,7 @@ Easiest way is to run the sync script, which populates everything for you:
92
78
  ./scripts/sync-models.sh
93
79
  ```
94
80
 
95
- Or if you'd rather do it by hand, add this to `~/.config/opencode/opencode.json`:
81
+ Or if you'd rather do it by hand, add this to `~/.config/opencode/opencode.json` (then run `./scripts/sync-models.sh` to populate models):
96
82
 
97
83
  ```json
98
84
  {
@@ -103,39 +89,7 @@ Or if you'd rather do it by hand, add this to `~/.config/opencode/opencode.json`
103
89
  "npm": "@ai-sdk/openai-compatible",
104
90
  "options": { "baseURL": "http://127.0.0.1:32124/v1" },
105
91
  "models": {
106
- "auto": { "name": "Auto" },
107
- "composer-1.5": { "name": "Composer 1.5" },
108
- "composer-1": { "name": "Composer 1" },
109
- "gpt-5.3-codex": { "name": "GPT-5.3 Codex" },
110
- "gpt-5.3-codex-low": { "name": "GPT-5.3 Codex Low" },
111
- "gpt-5.3-codex-high": { "name": "GPT-5.3 Codex High" },
112
- "gpt-5.3-codex-xhigh": { "name": "GPT-5.3 Codex Extra High" },
113
- "gpt-5.3-codex-fast": { "name": "GPT-5.3 Codex Fast" },
114
- "gpt-5.3-codex-low-fast": { "name": "GPT-5.3 Codex Low Fast" },
115
- "gpt-5.3-codex-high-fast": { "name": "GPT-5.3 Codex High Fast" },
116
- "gpt-5.3-codex-xhigh-fast": { "name": "GPT-5.3 Codex Extra High Fast" },
117
- "gpt-5.2": { "name": "GPT-5.2" },
118
- "gpt-5.2-codex": { "name": "GPT-5.2 Codex" },
119
- "gpt-5.2-codex-high": { "name": "GPT-5.2 Codex High" },
120
- "gpt-5.2-codex-low": { "name": "GPT-5.2 Codex Low" },
121
- "gpt-5.2-codex-xhigh": { "name": "GPT-5.2 Codex Extra High" },
122
- "gpt-5.2-codex-fast": { "name": "GPT-5.2 Codex Fast" },
123
- "gpt-5.2-codex-high-fast": { "name": "GPT-5.2 Codex High Fast" },
124
- "gpt-5.2-codex-low-fast": { "name": "GPT-5.2 Codex Low Fast" },
125
- "gpt-5.2-codex-xhigh-fast": { "name": "GPT-5.2 Codex Extra High Fast" },
126
- "gpt-5.1-codex-max": { "name": "GPT-5.1 Codex Max" },
127
- "gpt-5.1-codex-max-high": { "name": "GPT-5.1 Codex Max High" },
128
- "opus-4.6-thinking": { "name": "Claude 4.6 Opus (Thinking)" },
129
- "sonnet-4.5-thinking": { "name": "Claude 4.5 Sonnet (Thinking)" },
130
- "gpt-5.2-high": { "name": "GPT-5.2 High" },
131
- "opus-4.6": { "name": "Claude 4.6 Opus" },
132
- "opus-4.5": { "name": "Claude 4.5 Opus" },
133
- "opus-4.5-thinking": { "name": "Claude 4.5 Opus (Thinking)" },
134
- "sonnet-4.5": { "name": "Claude 4.5 Sonnet" },
135
- "gpt-5.1-high": { "name": "GPT-5.1 High" },
136
- "gemini-3-pro": { "name": "Gemini 3 Pro" },
137
- "gemini-3-flash": { "name": "Gemini 3 Flash" },
138
- "grok": { "name": "Grok" }
92
+ "auto": { "name": "Auto" }
139
93
  }
140
94
  }
141
95
  }
@@ -186,7 +140,13 @@ open-cursor sync-models
186
140
 
187
141
  ## Models
188
142
 
189
- Models are pulled from `cursor-agent models` and written to your config during installation. If Cursor adds new models later, re-run:
143
+ Models are pulled from `cursor-agent models` and written to your config during installation. If Cursor adds new models later:
144
+
145
+ ```bash
146
+ open-cursor sync-models
147
+ ```
148
+
149
+ Or, if you installed from source (no npm CLI):
190
150
 
191
151
  ```bash
192
152
  ./scripts/sync-models.sh
@@ -131,7 +131,7 @@ import {
131
131
  writeFileSync
132
132
  } from "fs";
133
133
  import { homedir } from "os";
134
- import { dirname, join, resolve } from "path";
134
+ import { basename, dirname, join, resolve } from "path";
135
135
  import { fileURLToPath } from "url";
136
136
 
137
137
  // src/cli/model-discovery.ts
@@ -180,14 +180,15 @@ function fallbackModels() {
180
180
  var PROVIDER_ID = "cursor-acp";
181
181
  var DEFAULT_BASE_URL = "http://127.0.0.1:32124/v1";
182
182
  function printHelp() {
183
- console.log(`opencode-cursor
183
+ const binName = basename(process.argv[1] || "open-cursor");
184
+ console.log(`${binName}
184
185
 
185
186
  Usage:
186
- opencode-cursor install [--config <path>] [--plugin-dir <path>] [--base-url <url>] [--copy] [--skip-models] [--no-backup]
187
- opencode-cursor sync-models [--config <path>] [--no-backup]
188
- opencode-cursor uninstall [--config <path>] [--plugin-dir <path>] [--no-backup]
189
- opencode-cursor status [--config <path>] [--plugin-dir <path>]
190
- opencode-cursor help
187
+ ${binName} install [--config <path>] [--plugin-dir <path>] [--base-url <url>] [--copy] [--skip-models] [--no-backup]
188
+ ${binName} sync-models [--config <path>] [--no-backup]
189
+ ${binName} uninstall [--config <path>] [--plugin-dir <path>] [--no-backup]
190
+ ${binName} status [--config <path>] [--plugin-dir <path>]
191
+ ${binName} help
191
192
  `);
192
193
  }
193
194
  function parseArgs(argv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rama_nigg/open-cursor",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "No prompt limits. No broken streams. Full thinking + tool support. Your Cursor subscription, properly integrated.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",