@@ -25,9 +25,11 @@ Reference implementation style: `/home/nomadx/Documents/jellywatch/cmd/jellywatc
2525Binary name: ` open-cursor `
2626
2727Commands:
28- - ` open-cursor install `
28+ - ` open-cursor install ` (idempotent)
29+ - Configure OpenCode for Cursor in one step. This is safe to re-run any time.
2930 - Ensure plugin file exists: ` ~/.config/opencode/plugin/cursor-acp.js ` (or XDG equivalent)
3031 - Ensure provider config exists/merged in ` opencode.json ` (baseURL + models)
32+ - Sync models from ` cursor-agent models ` into the config (no separate script required)
3133 - Best-effort ensure ` @ai-sdk/openai-compatible ` is installed in ` ~/.config/opencode `
3234- ` open-cursor sync-models `
3335 - Run ` cursor-agent models ` , update provider models in config
@@ -39,14 +41,17 @@ Commands:
3941- Optional (later): ` open-cursor doctor `
4042 - Validate cursor-agent presence, login state, and common misconfigurations
4143
42- Flags (consistent across install/sync/uninstall ):
44+ Flags (keep v1 simple ):
4345- ` --config <path> ` default ` $XDG_CONFIG_HOME/opencode/opencode.json ` (else ` ~/.config/opencode/opencode.json ` )
4446- ` --plugin-dir <path> ` default ` $XDG_CONFIG_HOME/opencode/plugin `
45- - ` --base-url <url> ` default ` http://127.0.0.1:32124/v1 `
4647- ` --copy ` copy plugin-entry instead of symlink
47- - ` --skip-models ` (install only)
4848- ` --no-backup `
4949
50+ Advanced (optional; only add if needed):
51+ - ` --base-url <url> ` override proxy baseURL (default ` http://127.0.0.1:32124/v1 ` ).
52+ Rationale: users running the proxy on a different host/port.
53+ - ` --skip-models ` skip ` cursor-agent models ` (useful for CI or offline installs).
54+
5055Backups:
5156- Always create ` <config>.bak.<timestamp> ` unless ` --no-backup ` .
5257
@@ -98,4 +103,3 @@ Add a small integration test harness in Go:
98103
99104Do not publish to npm for docs-only changes.
100105Only publish when user-facing behavior changes (plugin behavior, installer behavior, CLI behavior).
101-
0 commit comments