@mohak34/opencode-notifier 0.1.30-beta.4 → 0.1.30-beta.5
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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4323,11 +4323,11 @@ var tmuxPane = process.env.TMUX_PANE ?? null;
|
|
|
4323
4323
|
function isTmuxPaneActive() {
|
|
4324
4324
|
if (!tmuxPane)
|
|
4325
4325
|
return true;
|
|
4326
|
-
const result = execWithTimeout(`tmux display-message -t ${tmuxPane} -p '#{window_active} #{pane_active}'`);
|
|
4326
|
+
const result = execWithTimeout(`tmux display-message -t ${tmuxPane} -p '#{session_attached} #{window_active} #{pane_active}'`);
|
|
4327
4327
|
if (!result)
|
|
4328
4328
|
return false;
|
|
4329
|
-
const [windowActive, paneActive] = result.split(" ");
|
|
4330
|
-
return windowActive === "1" && paneActive === "1";
|
|
4329
|
+
const [sessionAttached, windowActive, paneActive] = result.split(" ");
|
|
4330
|
+
return sessionAttached === "1" && windowActive === "1" && paneActive === "1";
|
|
4331
4331
|
}
|
|
4332
4332
|
function isLinuxX11Focused() {
|
|
4333
4333
|
const pidStr = execWithTimeout("xdotool getactivewindow getwindowpid");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mohak34/opencode-notifier",
|
|
3
|
-
"version": "0.1.30-beta.
|
|
3
|
+
"version": "0.1.30-beta.5",
|
|
4
4
|
"description": "OpenCode plugin that sends system notifications and plays sounds when permission is needed, generation completes, or errors occur",
|
|
5
5
|
"author": "mohak34",
|
|
6
6
|
"license": "MIT",
|