opencode-agent-tmux 1.0.7 → 1.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/dist/scripts/install.js +6 -2
- package/package.json +10 -2
package/dist/scripts/install.js
CHANGED
|
@@ -81,8 +81,12 @@ function setupAlias() {
|
|
|
81
81
|
rcContent = fs.readFileSync(shell.rcFile, "utf-8");
|
|
82
82
|
}
|
|
83
83
|
if (rcContent.includes(MARKER_START)) {
|
|
84
|
-
console.log("
|
|
85
|
-
|
|
84
|
+
console.log(" Updating opencode-agent-tmux alias...");
|
|
85
|
+
const escapeRegExp = (string) => string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
86
|
+
const regex = new RegExp(`${escapeRegExp(MARKER_START)}[\\s\\S]*?${escapeRegExp(MARKER_END)}\\n?`, "g");
|
|
87
|
+
rcContent = rcContent.replace(regex, "");
|
|
88
|
+
fs.writeFileSync(shell.rcFile, rcContent, "utf-8");
|
|
89
|
+
rcContent = fs.readFileSync(shell.rcFile, "utf-8");
|
|
86
90
|
}
|
|
87
91
|
let configBlock = "";
|
|
88
92
|
if (shell.name === "powershell") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-agent-tmux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
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",
|
|
@@ -24,8 +24,16 @@
|
|
|
24
24
|
"tmux",
|
|
25
25
|
"agent"
|
|
26
26
|
],
|
|
27
|
-
"author": "",
|
|
27
|
+
"author": "Angan Samadder",
|
|
28
28
|
"license": "MIT",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/AnganSamadder/opencode-agent-tmux.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/AnganSamadder/opencode-agent-tmux/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/AnganSamadder/opencode-agent-tmux#readme",
|
|
29
37
|
"dependencies": {
|
|
30
38
|
"zod": "^3.24.1"
|
|
31
39
|
},
|