opencode-collaboration 0.2.3 → 0.2.4

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
@@ -29,20 +29,20 @@ Run several opencode terminals in parallel (different repos, worktrees, or tasks
29
29
 
30
30
  ## Install
31
31
 
32
- This fork is **not published to npm** — it is maintained as a git repository and installed straight from Gitee. The repo ships prebuilt `dist/`, so no build step runs at install time (opencode's Bun installer does not run `prepare` for git dependencies).
32
+ ```bash
33
+ opencode plugin -g opencode-collaboration
34
+ ```
33
35
 
34
- Add to your `opencode.json`:
36
+ or add to your `opencode.json`:
35
37
 
36
38
  ```json
37
39
  {
38
- "plugin": ["opencode-collaboration@git+https://gitee.com/cqy0/opencode-collaboration.git"]
40
+ "plugin": ["opencode-collaboration"]
39
41
  }
40
42
  ```
41
43
 
42
44
  Requires opencode >= 1.18.0.
43
45
 
44
- > **Updating:** opencode caches git plugins under `~/.cache/opencode/packages/`. After a newer commit is pushed, delete the cached `opencode-collaboration@git+...` folder (or bump the repo ref) and restart opencode to pick it up — git plugins are not re-fetched on every launch.
45
-
46
46
  **Single-Enter commands (optional but recommended).** The package ships a TUI entry that makes the plugin's slash commands execute on the first Enter. opencode's TUI loads plugins from `~/.config/opencode/tui.json` (a separate list from `opencode.json`), so add the plugin there too:
47
47
 
48
48
  ```json
@@ -112,7 +112,7 @@ Options can be passed via the tuple form in `opencode.json`:
112
112
  ```json
113
113
  {
114
114
  "plugin": [
115
- ["opencode-collaboration@git+https://gitee.com/cqy0/opencode-collaboration.git", { "inboundPolicy": "hold", "name": "frontend" }]
115
+ ["opencode-collaboration", { "inboundPolicy": "hold", "name": "frontend" }]
116
116
  ]
117
117
  }
118
118
  ```
package/README.zh-CN.md CHANGED
@@ -29,20 +29,20 @@
29
29
 
30
30
  ## 安装
31
31
 
32
- 本 fork **未发布到 npm** —— 它作为 git 仓库维护,直接从 Gitee 安装。仓库自带构建好的 `dist/`,安装时不需要构建步骤(opencode 的 Bun 安装器对 git 依赖不会执行 `prepare`)。
32
+ ```bash
33
+ opencode plugin -g opencode-collaboration
34
+ ```
33
35
 
34
- 加入你的 `opencode.json`:
36
+ 或者加入你的 `opencode.json`:
35
37
 
36
38
  ```json
37
39
  {
38
- "plugin": ["opencode-collaboration@git+https://gitee.com/cqy0/opencode-collaboration.git"]
40
+ "plugin": ["opencode-collaboration"]
39
41
  }
40
42
  ```
41
43
 
42
44
  要求 opencode >= 1.18.0。
43
45
 
44
- > **更新方式:** opencode 会把 git 插件缓存在 `~/.cache/opencode/packages/` 下。推送新提交后,删除缓存的 `opencode-collaboration@git+...` 目录(或改动仓库 ref),再重启 opencode 才会拉取最新 —— git 插件不会每次启动都重新拉取。
45
-
46
46
  **单回车执行命令(可选但推荐)。** 本包附带一个 TUI 入口,让插件的斜杠命令按一次回车即可执行。opencode 的 TUI 从 `~/.config/opencode/tui.json` 加载插件(这是与 `opencode.json` 相互独立的另一个列表),所以请把插件也加进去:
47
47
 
48
48
  ```json
@@ -112,7 +112,7 @@ Use send_message to tell "backend" that the login form now posts to /v2/login.
112
112
  ```json
113
113
  {
114
114
  "plugin": [
115
- ["opencode-collaboration@git+https://gitee.com/cqy0/opencode-collaboration.git", { "inboundPolicy": "hold", "name": "frontend" }]
115
+ ["opencode-collaboration", { "inboundPolicy": "hold", "name": "frontend" }]
116
116
  ]
117
117
  }
118
118
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-collaboration",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Cross-session messaging for opencode — let independent sessions discover and text each other, modeled after Claude Code's cross-session messaging",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",