claude-notification-plugin 1.1.60 → 1.1.62
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/.claude-plugin/plugin.json +1 -1
- package/bin/install.js +2 -1
- package/bin/listener-cli.js +12 -0
- package/commit-sha +1 -1
- package/listener/listener.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-notification-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.62",
|
|
4
4
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Viacheslav Makarov",
|
package/bin/install.js
CHANGED
|
@@ -497,7 +497,8 @@ async function main () {
|
|
|
497
497
|
const version = getVersion();
|
|
498
498
|
|
|
499
499
|
console.log('');
|
|
500
|
-
console.log(`
|
|
500
|
+
console.log(`claude-notify v${version}`);
|
|
501
|
+
console.log('Registering plugin in Claude Code...');
|
|
501
502
|
|
|
502
503
|
const installPath = copyToCache(version);
|
|
503
504
|
console.log(` Cached: ${installPath}`);
|
package/bin/listener-cli.js
CHANGED
|
@@ -11,6 +11,16 @@ import {
|
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = path.dirname(__filename);
|
|
14
|
+
const PACKAGE_ROOT = path.resolve(__dirname, '..');
|
|
15
|
+
|
|
16
|
+
function getVersion () {
|
|
17
|
+
try {
|
|
18
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(PACKAGE_ROOT, 'package.json'), 'utf-8'));
|
|
19
|
+
return pkg.version;
|
|
20
|
+
} catch {
|
|
21
|
+
return 'unknown';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
14
24
|
|
|
15
25
|
function getLogFile () {
|
|
16
26
|
try {
|
|
@@ -181,6 +191,8 @@ function stopDaemon () {
|
|
|
181
191
|
}
|
|
182
192
|
|
|
183
193
|
async function showStatus () {
|
|
194
|
+
console.log(`claude-notify v${getVersion()}`);
|
|
195
|
+
|
|
184
196
|
const pid = readPid();
|
|
185
197
|
if (!pid) {
|
|
186
198
|
console.log('Status: not running');
|
package/commit-sha
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a1f3aa9ce10bb84b40ee1c9d9f252ab3c390052a
|
package/listener/listener.js
CHANGED
|
@@ -127,7 +127,7 @@ const runner = new PtyRunner(logger, taskTimeout, taskLogger, taskLogDir);
|
|
|
127
127
|
const worktreeManager = new WorktreeManager(config, logger);
|
|
128
128
|
|
|
129
129
|
const liveConsoleEnabled = listenerConfig.liveConsole !== false; // default: true
|
|
130
|
-
const liveConsoleIntervalMillis =
|
|
130
|
+
const liveConsoleIntervalMillis = listenerConfig.liveConsoleIntervalMillis || 1000;
|
|
131
131
|
const liveConsoleMaxOutputChars = listenerConfig.liveConsoleMaxOutputChars || 300;
|
|
132
132
|
|
|
133
133
|
const startTime = Date.now();
|
|
@@ -142,7 +142,7 @@ const liveConsoleTimers = new Map();
|
|
|
142
142
|
logger.info('Listener started');
|
|
143
143
|
logger.info(`Projects: ${JSON.stringify(Object.keys(listenerConfig.projects))}`);
|
|
144
144
|
logger.info(`Session continuity: ${continueSessionEnabled ? 'enabled' : 'disabled'}`);
|
|
145
|
-
logger.info(`Live console: ${liveConsoleEnabled ? `enabled (${liveConsoleIntervalMillis
|
|
145
|
+
logger.info(`Live console: ${liveConsoleEnabled ? `enabled (${liveConsoleIntervalMillis}ms interval, max ${liveConsoleMaxOutputChars} chars)` : 'disabled'}`);
|
|
146
146
|
|
|
147
147
|
// ----------------------
|
|
148
148
|
// DISCOVER WORKTREES ON START
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-notification-plugin",
|
|
3
3
|
"productName": "claude-notification-plugin",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.62",
|
|
5
5
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|