fix: use agent config directory
This commit is contained in:
@@ -29,7 +29,7 @@ pi remove npm:pi-ntfy
|
||||
插件固定从以下路径读取配置,不再通过环境变量选择配置文件:
|
||||
|
||||
```text
|
||||
~/.pi/agents/pi-ntfy.json
|
||||
~/.pi/agent/pi-ntfy.json
|
||||
```
|
||||
|
||||
如果文件不存在,插件保持静默;可直接创建该文件,或使用 `/ntfy set`、`/ntfy enable` 等命令生成和修改配置。
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user