opencode-zellij 0.0.7 → 0.0.9

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 maou-shonen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -69,6 +69,24 @@ Close the dev server pane.
69
69
 
70
70
  `zellij_pty_request_sudo` opens a review pane, shows what will run, and waits for the user to type `YES`. The agent cannot type into that pane, so passwords and credentials stay in Zellij instead of entering prompts or tool arguments.
71
71
 
72
+ ## Configuration
73
+
74
+ Optional sidecar config files are loaded from `~/.config/opencode/opencode-zellij.config.jsonc` and from `.opencode/opencode-zellij.config.jsonc` in the current project. Project config overrides user config.
75
+
76
+ ```jsonc
77
+ {
78
+ "$schema": "https://raw.githubusercontent.com/maou-shonen/opencode-zellij/main/opencode-zellij.schema.json",
79
+ "autoUpdate": true,
80
+ "pty": {
81
+ "enabled": true,
82
+ "sudoPane": "allow" // allow, deny, or hide
83
+ },
84
+ "tabTitle": { "enabled": true }
85
+ }
86
+ ```
87
+
88
+ Set `autoUpdate`, `pty.enabled`, or `tabTitle.enabled` to `false` to turn those features off.
89
+
72
90
  ## Dynamic tab title
73
91
 
74
92
  When OpenCode runs inside Zellij, the plugin updates the current tab title to show the project, branch, and current OpenCode state:
package/README.zh.md CHANGED
@@ -69,6 +69,24 @@ OpenCode 會在啟動時自動安裝 npm plugins。Zellij 也必須已安裝,
69
69
 
70
70
  `zellij_pty_request_sudo` 會開啟 review pane、顯示即將執行的內容,並等待使用者輸入 `YES`。Agent 不能在該 pane 中輸入,因此 passwords 與 credentials 會留在 Zellij,而不是進入 prompts 或 tool arguments。
71
71
 
72
+ ## 設定
73
+
74
+ 可選的 sidecar config 會從 `~/.config/opencode/opencode-zellij.config.jsonc` 以及目前 project 的 `.opencode/opencode-zellij.config.jsonc` 載入。Project config 會覆蓋 user config。
75
+
76
+ ```jsonc
77
+ {
78
+ "$schema": "https://raw.githubusercontent.com/maou-shonen/opencode-zellij/main/opencode-zellij.schema.json",
79
+ "autoUpdate": true,
80
+ "pty": {
81
+ "enabled": true,
82
+ "sudoPane": "allow" // allow, deny, or hide
83
+ },
84
+ "tabTitle": { "enabled": true }
85
+ }
86
+ ```
87
+
88
+ 將 `autoUpdate`、`pty.enabled` 或 `tabTitle.enabled` 設為 `false` 可關閉對應功能。
89
+
72
90
  ## 動態 tab title
73
91
 
74
92
  當 OpenCode 在 Zellij 中執行時,plugin 會更新目前 tab title,顯示 project、branch 與目前 OpenCode 狀態: