@pi-unipi/notify 2.0.15 → 2.1.0
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/index.ts +3 -8
- package/package.json +3 -3
package/index.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Bridges agent lifecycle events to external platforms (native OS, Gotify, Telegram).
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { dirname } from "node:path";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
8
10
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
9
11
|
import {
|
|
10
12
|
UNIPI_EVENTS,
|
|
@@ -24,16 +26,9 @@ import {
|
|
|
24
26
|
} from "./events.js";
|
|
25
27
|
|
|
26
28
|
/** Package version */
|
|
27
|
-
const VERSION = getPackageVersion(
|
|
29
|
+
const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
|
|
28
30
|
|
|
29
31
|
export default function (pi: ExtensionAPI) {
|
|
30
|
-
// Register skills directory
|
|
31
|
-
const skillsDir = new URL("./skills", import.meta.url).pathname;
|
|
32
|
-
pi.on("resources_discover", async () => {
|
|
33
|
-
return {
|
|
34
|
-
skillPaths: [skillsDir],
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
32
|
|
|
38
33
|
// Register tools and commands
|
|
39
34
|
registerNotifyTools(pi);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/notify",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Cross-platform notification extension for Pi — native OS, Gotify, and Telegram notifications for agent lifecycle events",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"node-notifier": "^10.0.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
50
|
-
"@earendil-works/pi-tui": "^0.
|
|
49
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
50
|
+
"@earendil-works/pi-tui": "^0.80.0",
|
|
51
51
|
"typebox": "^1.1.38"
|
|
52
52
|
},
|
|
53
53
|
"pi": {
|