feat: resume fixes, OpenRouter templates, and project context
Delegate expected output filenames to modules so resume works for rembg and composite; normalize G'MIC multi-frame output; add OpenRouter style reference support with tests. Add Crusaders, orange, and team gallery pipelines plus SOUL/AGENTS context files. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -39,6 +39,16 @@ class BaseModule(ABC):
|
||||
def run(self, ctx: ModuleContext) -> None:
|
||||
"""Process ctx.input_paths and write outputs into ctx.output_dir."""
|
||||
|
||||
@classmethod
|
||||
def expected_output_filenames(
|
||||
cls,
|
||||
*,
|
||||
matched_groups: list[list[Path]],
|
||||
input_paths: list[Path],
|
||||
params: dict[str, Any],
|
||||
) -> list[str]:
|
||||
return [path.name for path in input_paths]
|
||||
|
||||
def log_image(self, ctx: ModuleContext, index: int, total: int, path: Path) -> None:
|
||||
ctx.log_image(self.name, index, total, path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user