@nm156/opencode-notifier 0.3.1 → 0.4.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/README.md +49 -22
- package/dist/bell.d.ts +2 -0
- package/dist/command.d.ts +2 -0
- package/dist/config.d.ts +109 -0
- package/dist/delivery.d.ts +4 -0
- package/dist/focus.d.ts +34 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1705 -1783
- package/dist/notifier.d.ts +24 -0
- package/dist/notify.d.ts +19 -0
- package/dist/permission-dedupe.d.ts +3 -0
- package/dist/sound.d.ts +4 -0
- package/dist/tui.d.ts +7 -0
- package/dist/tui.js +2229 -0
- package/dist/v2.d.ts +14 -0
- package/package.json +23 -7
package/dist/v2.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Plugin } from "@opencode/plugin";
|
|
2
|
+
import type { LocationRef, OpenCodeEvent } from "@opencode/client";
|
|
3
|
+
import type { Delivery } from "./notifier";
|
|
4
|
+
type Client = {
|
|
5
|
+
session: Pick<Plugin.Context["session"], "get" | "context">;
|
|
6
|
+
permission: Pick<Plugin.Context["permission"], "list">;
|
|
7
|
+
};
|
|
8
|
+
export declare function createV2Notifier(client: Client, location: LocationRef, delivery: Delivery): {
|
|
9
|
+
connected: () => Promise<void>;
|
|
10
|
+
event(event: OpenCodeEvent): Promise<void>;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
};
|
|
13
|
+
export declare const setupV2: Plugin.Plugin["setup"];
|
|
14
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nm156/opencode-notifier",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Fork of @mohak34/opencode-notifier
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Fork of @mohak34/opencode-notifier that adds a {sessionID} custom command placeholder. 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",
|
|
7
7
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"logos"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "bun build src/index.ts --outdir dist --target node --external node-notifier",
|
|
24
|
+
"build": "bun build src/index.ts src/tui.ts --outdir dist --target node --external node-notifier && tsc --emitDeclarationOnly",
|
|
25
25
|
"prepublishOnly": "bun run build",
|
|
26
26
|
"typecheck": "tsc --noEmit",
|
|
27
27
|
"test": "bun test"
|
|
@@ -39,24 +39,40 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@opencode-ai/plugin": "^1.18.25",
|
|
42
|
-
"@opencode/
|
|
42
|
+
"@opencode/client": "^2.0.18",
|
|
43
|
+
"@opencode/plugin": "^2.0.18",
|
|
43
44
|
"@types/node": "^22.0.0",
|
|
44
45
|
"@types/node-notifier": "^8.0.5",
|
|
45
46
|
"typescript": "^5.0.0"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
|
-
"@opencode-ai/plugin": ">=1.
|
|
49
|
-
"@opencode/
|
|
49
|
+
"@opencode-ai/plugin": ">=1.17.0 <2",
|
|
50
|
+
"@opencode/client": ">=2.0.18 <3",
|
|
51
|
+
"@opencode/plugin": ">=2.0.18 <3"
|
|
50
52
|
},
|
|
51
53
|
"peerDependenciesMeta": {
|
|
52
54
|
"@opencode-ai/plugin": {
|
|
53
55
|
"optional": true
|
|
54
56
|
},
|
|
57
|
+
"@opencode/client": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
55
60
|
"@opencode/plugin": {
|
|
56
61
|
"optional": true
|
|
57
62
|
}
|
|
58
63
|
},
|
|
64
|
+
"exports": {
|
|
65
|
+
".": {
|
|
66
|
+
"types": "./dist/index.d.ts",
|
|
67
|
+
"import": "./dist/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./tui": {
|
|
70
|
+
"types": "./dist/tui.d.ts",
|
|
71
|
+
"import": "./dist/tui.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
59
74
|
"publishConfig": {
|
|
60
|
-
"access": "public"
|
|
75
|
+
"access": "public",
|
|
76
|
+
"tag": "next"
|
|
61
77
|
}
|
|
62
78
|
}
|