@xinleibird/bridge-opencode 0.1.0 → 0.1.2

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
@@ -1,8 +1,12 @@
1
1
  # bridge-opencode
2
2
 
3
- Bridge between opencode and Neovim.
3
+ Bridge between opencode and Neovim, inspired by [sidekick](https://github.com/NishantJoshi00/sidekick).
4
4
 
5
- Inspired by / forked from [sidekick](https://github.com/NishantJoshi00/sidekick) — thanks [@NishantJoshi00](https://github.com/NishantJoshi00).
5
+ ## Features
6
+
7
+ - **Buffer protection**: When you have unsaved changes in a buffer, opencode waits — edits are denied and your work is preserved
8
+ - **Auto-reload**: When opencode modifies a file you have open, the buffer is auto-reloaded with cursor position preserved
9
+ - **Visual selection context**: Visual selections in Neovim are sent to opencode as chat context
6
10
 
7
11
  ## Structure
8
12
 
@@ -31,3 +35,7 @@ Inspired by / forked from [sidekick](https://github.com/NishantJoshi00/sidekick)
31
35
  "plugin": ["@xinleibird/bridge-opencode"]
32
36
  }
33
37
  ```
38
+
39
+ ## Platforms
40
+
41
+ Currently only **macOS** and **Linux** (x64, ARM64) are supported. Windows is not supported.
Binary file
Binary file
package/bridge.ts CHANGED
@@ -76,7 +76,7 @@ export const BridgePlugin: Plugin = async ({ directory }) => {
76
76
 
77
77
  for (const filePath of call.filePaths) {
78
78
  const status = await checkBuffer(filePath);
79
- if (status.hasUnsavedChanges && status.isCurrent) {
79
+ if (status.hasUnsavedChanges) {
80
80
  throw new Error(
81
81
  "bridge: file has unsaved changes in Neovim",
82
82
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xinleibird/bridge-opencode",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "bridge.ts",
6
6
  "repository": {
@@ -31,7 +31,9 @@
31
31
  "defaults": false,
32
32
  "additional": [
33
33
  "aarch64-apple-darwin",
34
- "x86_64-apple-darwin"
34
+ "x86_64-apple-darwin",
35
+ "x86_64-unknown-linux-gnu",
36
+ "aarch64-unknown-linux-gnu"
35
37
  ]
36
38
  }
37
39
  }