feat: add API process functionality

This commit adds comprehensive API process functionality including:
- Remote streaming support
- Session management and context handling
- Media type support (video/audio/image)
- Asset management and path isolation
- Workflow refactoring and optimization
- Security improvements and state violation handling
- Gallery and image resolution features
- Audio support
- Analysis tools
- Version guard

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
henryruhs
2025-12-20 14:35:07 +01:00
co-authored by Claude
parent bed330f701
commit 423fee9d7f
82 changed files with 3424 additions and 806 deletions
+3 -7
View File
@@ -1,7 +1,7 @@
import os
import tempfile
from facefusion.filesystem import are_images, create_directory, is_directory, is_file, remove_directory, resolve_file_paths
from facefusion.filesystem import create_directory, is_directory, is_file, remove_directory
from facefusion.types import JobStatus
@@ -26,14 +26,10 @@ def get_test_examples_directory() -> str:
def is_test_output_file(file_path : str) -> bool:
return is_file(get_test_output_path(file_path))
return is_file(get_test_output_file(file_path))
def is_test_output_sequence(directory_path : str) -> bool:
return are_images(resolve_file_paths(directory_path))
def get_test_output_path(file_path : str) -> str:
def get_test_output_file(file_path : str) -> str:
return os.path.join(get_test_outputs_directory(), file_path)