This commit is contained in:
Pierre
2026-01-10 19:15:27 +01:00
parent 3ef412a4a3
commit a19a30088e
5 changed files with 159 additions and 49 deletions
+23
View File
@@ -1,3 +1,26 @@
/**
* MetaMesh Plugin: subtitle
*
* ============================================================================
* PLUGIN MOUNT ARCHITECTURE - DO NOT MODIFY WITHOUT AUTHORIZATION
* ============================================================================
*
* Each plugin container has exactly 3 mounts (2 for plugins without output):
*
* 1. /files (READ-ONLY) - Shared media files, read access only
* 2. /cache (READ-WRITE) - Plugin-specific cache folder
* 3. /files/plugin/<id> (READ-WRITE) - Plugin output folder (if needed)
*
* This plugin (subtitle) only requires mounts 1 and 2:
* - /files (RO) - to read subtitle files alongside media
* - /cache (RW) - to cache subtitle metadata
*
* SECURITY: Plugins must NEVER write to /files directly.
* All write operations go to /cache or /files/plugin/<id> only.
*
* ============================================================================
*/
import Fastify from 'fastify';
import type { HealthResponse, ProcessRequest, ProcessResponse, CallbackPayload, ConfigureRequest, ConfigureResponse } from './types.js';
import { manifest, process as processFile } from './plugin.js';