@rama_nigg/open-cursor 2.4.4 → 2.4.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.
package/README.md CHANGED
@@ -147,6 +147,8 @@ opencode run "your prompt" --model cursor-acp/sonnet-4.5
147
147
 
148
148
  Any MCP servers already configured in your `opencode.json` work automatically with cursor-acp models — no extra setup needed. The plugin discovers them at startup and injects usage instructions into the system prompt so the model calls them via cursor-agent's Shell tool.
149
149
 
150
+ `mcptool` is a shell CLI, so opencode applies your `bash` permission rules to `mcptool call ...`. If you rely on MCP tools asking for confirmation, keep `bash` as `ask` or add explicit `ask`/`deny` rules for `mcptool call *`.
151
+
150
152
  ```bash
151
153
  mcptool servers # list discovered servers
152
154
  mcptool tools [server] # list available tools
@@ -298,6 +298,15 @@ function resolveCursorAgentBinary(deps = {}) {
298
298
  log.warn("cursor-agent not found at known paths, falling back to PATH", { checkedPaths: knownPaths });
299
299
  return "cursor-agent";
300
300
  }
301
+ function formatShellCommandForPlatform(command, platform = process.platform) {
302
+ if (platform !== "win32") {
303
+ return command;
304
+ }
305
+ if (command.startsWith('"') && command.endsWith('"')) {
306
+ return command;
307
+ }
308
+ return `"${command}"`;
309
+ }
301
310
  var log;
302
311
  var init_binary = __esm(() => {
303
312
  init_logger();
@@ -298,6 +298,15 @@ function resolveCursorAgentBinary(deps = {}) {
298
298
  log.warn("cursor-agent not found at known paths, falling back to PATH", { checkedPaths: knownPaths });
299
299
  return "cursor-agent";
300
300
  }
301
+ function formatShellCommandForPlatform(command, platform = process.platform) {
302
+ if (platform !== "win32") {
303
+ return command;
304
+ }
305
+ if (command.startsWith('"') && command.endsWith('"')) {
306
+ return command;
307
+ }
308
+ return `"${command}"`;
309
+ }
301
310
  var log;
302
311
  var init_binary = __esm(() => {
303
312
  init_logger();