fix: use agent config directory

This commit is contained in:
杨豪
2026-09-17 10:05:45 +08:00
parent 42b20c42d6
commit 4628ee02d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ pi remove npm:pi-ntfy
插件固定从以下路径读取配置,不再通过环境变量选择配置文件:
```text
~/.pi/agents/pi-ntfy.json
~/.pi/agent/pi-ntfy.json
```
如果文件不存在,插件保持静默;可直接创建该文件,或使用 `/ntfy set`、`/ntfy enable` 等命令生成和修改配置。
+1 -1
View File
@@ -11,7 +11,7 @@ import { homedir } from "node:os";
import { dirname, join } from "node:path";
import type { ChannelConfig, NotifyConfig, NtfyChannel } from "./types.ts";
const CONFIG_PATH = join(homedir(), ".pi", "agents", "pi-ntfy.json");
const CONFIG_PATH = join(homedir(), ".pi", "agent", "pi-ntfy.json");
export function configPath(): string {
return CONFIG_PATH;