| 1 | # Plugin Installer DOX |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | - Own installing and updating plugins from ZIP uploads, Git repositories, and the community Plugin Index. |
| 6 | |
| 7 | ## Ownership |
| 8 | |
| 9 | - `helpers/install.py` owns archive extraction, Git install/update, validation, hook execution, and install finalization. |
| 10 | - `api/plugin_install.py` owns install/update/index API dispatch. |
| 11 | - `webui/` owns Plugin Hub, ZIP, Git, detail, and shared install UI. |
| 12 | - `plugin.yaml` and `README.md` own metadata and behavior notes. |
| 13 | |
| 14 | ## Local Contracts |
| 15 | |
| 16 | - Install third-party plugins into `usr/plugins/`, not bundled `plugins/`. |
| 17 | - Reject unsafe archive paths, missing manifests, invalid manifests, and plugin name conflicts. |
| 18 | - Run plugin install hooks and refresh plugin state after successful changes. |
| 19 | |
| 20 | ## Work Guidance |
| 21 | |
| 22 | - Keep installer validation aligned with plugin contracts and Plugin Index expectations. |
| 23 | |
| 24 | ## Verification |
| 25 | |
| 26 | - Smoke-test ZIP install, Git install, Plugin Hub install, and Git update paths after changes. |
| 27 | |
| 28 | ## Child DOX Index |
| 29 | |
| 30 | No child DOX files. |