From 5532f14efbc1a51c4b1fd9cab81a1fdacc35843d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 25 May 2026 08:21:19 +0800 Subject: [PATCH] feat(agent): inject plugin installation directory into system prompt --- AGENTS.md | 1 + app/agent/prompt/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index eb168e0a..d2426970 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -23,6 +23,7 @@ This file defines the default behavior for AI agents working in the MoviePilot r - `app/api/endpoints/`: HTTP entrypoints. Handles auth, parameters, responses, and simple CRUD. - `app/chain/`: Business orchestration layer for search, recognition, subscriptions, downloads, messaging flows, and similar use cases. - `app/modules/`: Dynamically loaded system modules. Encapsulates pluggable downloaders, media servers, message channels, and other backend capabilities. +- `app/plugins/`: Directory where plugins are installed and managed. - `app/helper/`: Reusable low-level helper logic. Not a place for full business orchestration. - `app/core/config.py`: Environment variables, deployment parameters, and startup-level settings. - `app/schemas/types.py`: Shared enums and types such as `SystemConfigKey` and module categories. diff --git a/app/agent/prompt/__init__.py b/app/agent/prompt/__init__.py index 71ee6f49..054f454e 100644 --- a/app/agent/prompt/__init__.py +++ b/app/agent/prompt/__init__.py @@ -329,6 +329,7 @@ class PromptManager: f"- 配置文件目录: {config_path}", f"- 日志文件目录: {log_path}", f"- 系统安装目录: {settings.ROOT_PATH}", + f"- 插件安装目录: {settings.ROOT_PATH / 'app' / 'plugins'}", ] available_commands = self._get_available_shell_commands()