opencode-agent-tmux 1.1.8 → 1.1.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/dist/bin/opencode-tmux.js +1 -19
- package/package.json +1 -1
|
@@ -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
|
spawnPluginUpdater();
|
|
101
89
|
const opencodeBin = findOpencodeBin();
|
|
@@ -113,13 +101,7 @@ async function main() {
|
|
|
113
101
|
console.warn(`\u26A0\uFE0F Port ${OPENCODE_PORT_START} is in use, using port ${port} instead`);
|
|
114
102
|
}
|
|
115
103
|
env.OPENCODE_PORT = port.toString();
|
|
116
|
-
const
|
|
117
|
-
const { args, logUpdate } = extractLogUpdateFlag(rawArgs);
|
|
118
|
-
if (logUpdate) {
|
|
119
|
-
env.OPENCODE_AUTO_UPDATE_LOG_UPDATE = "true";
|
|
120
|
-
env.OPENCODE_AUTO_UPDATE_BYPASS_THROTTLE = "true";
|
|
121
|
-
env.OPENCODE_AUTO_UPDATE_DEBUG = "true";
|
|
122
|
-
}
|
|
104
|
+
const args = argv.slice(2);
|
|
123
105
|
const childArgs = ["--port", port.toString(), ...args];
|
|
124
106
|
const inTmux = !!env.TMUX;
|
|
125
107
|
const tmuxAvailable = hasTmux();
|