claude-notification-plugin 1.0.94 → 1.0.96
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 +10 -1
- package/bin/uninstall.js +13 -2
- package/commit-sha +1 -0
- package/package.json +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-notification-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.96",
|
|
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
|
@@ -38,6 +38,15 @@ function getVersion () {
|
|
|
38
38
|
return pkg.version;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
function readCommitSha () {
|
|
42
|
+
const shaFile = path.join(PACKAGE_ROOT, 'commit-sha');
|
|
43
|
+
try {
|
|
44
|
+
return fs.readFileSync(shaFile, 'utf-8').trim();
|
|
45
|
+
} catch {
|
|
46
|
+
return '';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
function copyToCache (version) {
|
|
42
51
|
const cacheBase = path.join(pluginsDir, 'cache', MARKETPLACE_KEY, 'claude-notification-plugin');
|
|
43
52
|
const dest = path.join(cacheBase, version);
|
|
@@ -99,7 +108,7 @@ function updateInstalledPlugins (version, installPath) {
|
|
|
99
108
|
version,
|
|
100
109
|
installedAt: existing?.installedAt || now,
|
|
101
110
|
lastUpdated: now,
|
|
102
|
-
gitCommitSha:
|
|
111
|
+
gitCommitSha: readCommitSha(),
|
|
103
112
|
}];
|
|
104
113
|
|
|
105
114
|
fs.writeFileSync(installedPluginsPath, JSON.stringify(data, null, 2));
|
package/bin/uninstall.js
CHANGED
|
@@ -101,7 +101,7 @@ const pluginCacheDir = path.join(claudeDir, 'plugins', 'cache', 'bazilio-plugins
|
|
|
101
101
|
let cacheRemoved = false;
|
|
102
102
|
if (fs.existsSync(pluginCacheDir)) {
|
|
103
103
|
fs.rmSync(pluginCacheDir, { recursive: true, force: true });
|
|
104
|
-
cacheRemoved =
|
|
104
|
+
cacheRemoved = !fs.existsSync(pluginCacheDir);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
const extras = [
|
|
@@ -109,11 +109,22 @@ const extras = [
|
|
|
109
109
|
cliBinsRemoved ? 'CLI wrapper scripts removed.' : '',
|
|
110
110
|
].filter(Boolean).join('\n');
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
const cacheStillExists = fs.existsSync(pluginCacheDir);
|
|
113
|
+
if (cacheStillExists) {
|
|
114
|
+
console.log(`
|
|
115
|
+
Warning: Could not fully remove plugin cache directory:
|
|
116
|
+
${pluginCacheDir}
|
|
117
|
+
Please remove it manually.
|
|
118
|
+
Hooks removed from settings.json
|
|
119
|
+
Config files deleted.${extras ? `\n${extras}` : ''}
|
|
120
|
+
`);
|
|
121
|
+
} else {
|
|
122
|
+
console.log(`
|
|
113
123
|
Claude Notification Plugin uninstalled.
|
|
114
124
|
Hooks removed from settings.json
|
|
115
125
|
Config files deleted.${extras ? `\n${extras}` : ''}
|
|
116
126
|
`);
|
|
127
|
+
}
|
|
117
128
|
|
|
118
129
|
// If run manually (not via npm lifecycle), remove the global npm package too
|
|
119
130
|
if (!process.env.npm_lifecycle_event) {
|
package/commit-sha
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dbbfbd026315df5250a8765f89adbd2e125e745e
|
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.0.
|
|
4
|
+
"version": "1.0.96",
|
|
5
5
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"hooks/",
|
|
14
14
|
"listener/",
|
|
15
15
|
"notifier/",
|
|
16
|
+
"commit-sha",
|
|
16
17
|
"README.md",
|
|
17
18
|
"LICENSE"
|
|
18
19
|
],
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"claude-notify": "bin/cli.js"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
24
|
+
"prepack": "git rev-parse HEAD > commit-sha",
|
|
23
25
|
"postinstall": "node bin/install.js",
|
|
24
26
|
"lint": "eslint .",
|
|
25
27
|
"lint:fix": "eslint --fix ."
|