Skip to content

Commit de009df

Browse files
committed
rename to opencode-alert
1 parent 4bfff39 commit de009df

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AGENTS.md -- opencode-notify
1+
# AGENTS.md -- opencode-alert
22

33
## What This Is
44

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# opencode-notify
1+
# opencode-alert
22

33
OS notifications for OpenCode. Alerts you when your agent needs attention — permission requests, questions, errors — so you don't have to watch the terminal.
44

@@ -20,7 +20,7 @@ Notifications are suppressed when your terminal is already focused — no interr
2020
```jsonc
2121
// ~/.config/opencode/opencode.jsonc
2222
{
23-
"plugin": ["opencode-notify"]
23+
"plugin": ["opencode-alert"]
2424
}
2525
```
2626

@@ -37,7 +37,7 @@ Windows support is planned for a future release.
3737

3838
## Configuration
3939

40-
A default config file is created automatically on first run at `~/.config/opencode/opencode-notify.json`. Edit it to customise:
40+
A default config file is created automatically on first run at `~/.config/opencode/opencode-alert.json`. Edit it to customise:
4141

4242
```json
4343
{

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "opencode-notify",
2+
"name": "opencode-alert",
33
"version": "0.1.0",
44
"description": "OS notifications for OpenCode — alerts when your agent needs attention",
55
"type": "module",
@@ -21,7 +21,7 @@
2121
],
2222
"repository": {
2323
"type": "git",
24-
"url": "https://github.com/keefetang/opencode-notify.git"
24+
"url": "https://github.com/keefetang/opencode-alert.git"
2525
},
2626
"license": "MIT",
2727
"dependencies": {

‎src/config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const DEFAULT_CONFIG: NotifyConfig = {
5353
persistentAlerts: false,
5454
};
5555

56-
const CONFIG_PATH = join(homedir(), ".config", "opencode", "opencode-notify.json");
56+
const CONFIG_PATH = join(homedir(), ".config", "opencode", "opencode-alert.json");
5757

5858
// ---------------------------------------------------------------------------
5959
// Load

‎src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ export const OpenCodeNotifyPlugin: Plugin = async (ctx) => {
265265

266266
void client.app.log({
267267
body: {
268-
service: "opencode-notify",
268+
service: "opencode-alert",
269269
level: "info",
270-
message: `opencode-notify loaded (dir: ${directory}, terminal: ${terminal?.name ?? "unknown"}, quietHours: ${config.quietHours.enabled}, notifyOnIdle: ${config.notifyOnIdle}, suppressWhenFocused: ${config.suppressWhenFocused}, persistentAlerts: ${config.persistentAlerts})`,
270+
message: `opencode-alert loaded (dir: ${directory}, terminal: ${terminal?.name ?? "unknown"}, quietHours: ${config.quietHours.enabled}, notifyOnIdle: ${config.notifyOnIdle}, suppressWhenFocused: ${config.suppressWhenFocused}, persistentAlerts: ${config.persistentAlerts})`,
271271
},
272272
});
273273

0 commit comments

Comments
 (0)