Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
docs: clarify devkit and runtime plugin ID validation
Seraph-x9451c8c7a53e
diff --git a/docs/plugin-development.md b/docs/plugin-development.mdindex 6d6ca86df..ea7191678 100644--- a/docs/plugin-development.md+++ b/docs/plugin-development.md@@ -172,8 +172,10 @@ The following three files show the complete command-to-panel path.`schemaVersion`, `id`, `name`, `version`, and `main` are required. Entry, view,and skill paths are relative to the plugin root and must stayinside it. Theme assets have a separately validated external-path route (§6.7).-Plugin ids must match `^[a-z0-9]+(\.[a-z0-9_-]+)+$`; uppercase and undotted-ids are rejected. `activationEvents` is descriptive metadata today, not a lazy+The devkit’s `pi-plugin check` and `pi-plugin pack` require ids to match `^[a-z0-9]+(\.[a-z0-9_-]+)+$`; uppercase and undotted+ids are rejected by those commands. Direct development loading does not enforce+this pattern: runtime manifest validation currently requires only a non-empty id.+`activationEvents` is descriptive metadata today, not a lazyactivation scheduler: enabled plugins load at startup or explicit enable/load.Declare only the permissions the plugin actually needs.diff --git a/docs/zh-CN/plugin-development.md b/docs/zh-CN/plugin-development.mdindex b1e4e8480..ffdc75b66 100644--- a/docs/zh-CN/plugin-development.md+++ b/docs/zh-CN/plugin-development.md@@ -166,7 +166,8 @@ my-first-plugin/`schemaVersion`、`id`、`name`、`version` 和 `main` 为必填项。入口、视图和技能路径相对于插件根目录,且必须位于该目录内;主题资源另有单独校验的外部路径机制(§6.7)。-插件 ID 必须匹配 `^[a-z0-9]+(\.[a-z0-9_-]+)+$`,大写字符或不含点号的 ID 会被拒绝。+开发工具的 `pi-plugin check` 和 `pi-plugin pack` 要求插件 ID 匹配 `^[a-z0-9]+(\.[a-z0-9_-]+)+$`,大写字符或不含点号的 ID 会被拒绝。+直接加载开发目录时不会强制校验该格式:运行时清单校验目前只要求 ID 非空。`activationEvents` 目前是描述性元数据,不是延迟激活调度器;已启用插件在启动时或显式启用、加载时运行。仅声明插件实际需要的权限。