From 4628ee02d7e155ca02c824fb3da1b0e14c8943d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= Date: Thu, 17 Sep 2026 10:05:45 +0800 Subject: [PATCH] fix: use agent config directory --- README.md | 2 +- config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80160bd..101b3bf 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ pi remove npm:pi-ntfy 插件固定从以下路径读取配置,不再通过环境变量选择配置文件: ```text -~/.pi/agents/pi-ntfy.json +~/.pi/agent/pi-ntfy.json ``` 如果文件不存在,插件保持静默;可直接创建该文件,或使用 `/ntfy set`、`/ntfy enable` 等命令生成和修改配置。 diff --git a/config.ts b/config.ts index ef831bd..296a070 100644 --- a/config.ts +++ b/config.ts @@ -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;