claude-notification-plugin 1.0.94 → 1.0.95
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/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.95",
|
|
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/commit-sha
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
091d9986d9a8ce98517b69b613bd17c4a1db0eb0
|
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.95",
|
|
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 ."
|