opencode-agent-tmux 1.1.10 → 1.2.0

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
@@ -34,11 +34,11 @@ To install this plugin, please perform the following steps for the user:
34
34
  *Note: This installer automatically configures the user's shell (Bash/Zsh/Fish/PowerShell) to use the smart wrapper.*
35
35
 
36
36
  2. **Configure OpenCode:**
37
- Add `"opencode-agent-tmux"` to the `plugins` array in the user's config file (usually `~/.config/opencode/opencode.json`).
37
+ Add `"opencode-agent-tmux"` to the `plugin` array in the user's config file (usually `~/.config/opencode/opencode.json`).
38
38
 
39
39
  ```json
40
40
  {
41
- "plugins": [
41
+ "plugin": [
42
42
  "opencode-agent-tmux"
43
43
  ]
44
44
  }
@@ -62,7 +62,7 @@ To install this plugin, please perform the following steps for the user:
62
62
  Add `"opencode-agent-tmux"` to your `~/.config/opencode/opencode.json`:
63
63
  ```json
64
64
  {
65
- "plugins": [
65
+ "plugin": [
66
66
  "opencode-agent-tmux"
67
67
  ]
68
68
  }
@@ -71,6 +71,10 @@ To install this plugin, please perform the following steps for the user:
71
71
  3. **Run OpenCode:**
72
72
  Restart your terminal and type `opencode`. The plugin handles the rest!
73
73
 
74
+ ## 🛠️ Development
75
+
76
+ For contributors working on this plugin locally, see [LOCAL_DEVELOPMENT.md](docs/LOCAL_DEVELOPMENT.md) for setup instructions.
77
+
74
78
  ## ✨ Features
75
79
 
76
80
  - **Automatic Tmux Pane Spawning**: When any agent starts, automatically spawns a tmux pane
@@ -84,18 +84,6 @@ function hasTmux() {
84
84
  return false;
85
85
  }
86
86
  }
87
- function extractLogUpdateFlag(args) {
88
- let logUpdate = false;
89
- const cleaned = [];
90
- for (const arg of args) {
91
- if (arg === "--log-update" || arg.startsWith("--log-update=")) {
92
- logUpdate = true;
93
- continue;
94
- }
95
- cleaned.push(arg);
96
- }
97
- return { args: cleaned, logUpdate };
98
- }
99
87
  async function main() {
100
88
  const opencodeBin = findOpencodeBin();
101
89
  if (!opencodeBin) {
@@ -110,13 +98,7 @@ async function main() {
110
98
  }
111
99
  const env2 = { ...process.env };
112
100
  env2.OPENCODE_PORT = port.toString();
113
- const rawArgs = argv.slice(2);
114
- const { args, logUpdate } = extractLogUpdateFlag(rawArgs);
115
- if (logUpdate) {
116
- env2.OPENCODE_AUTO_UPDATE_LOG_UPDATE = "true";
117
- env2.OPENCODE_AUTO_UPDATE_BYPASS_THROTTLE = "true";
118
- env2.OPENCODE_AUTO_UPDATE_DEBUG = "true";
119
- }
101
+ const args = argv.slice(2);
120
102
  const childArgs = ["--port", port.toString(), ...args];
121
103
  const inTmux = !!env2.TMUX;
122
104
  const tmuxAvailable = hasTmux();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-agent-tmux",
3
- "version": "1.1.10",
3
+ "version": "1.2.0",
4
4
  "description": "OpenCode plugin that provides tmux integration for viewing agent execution in real-time",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",