pinakes-plugin-api: expand test coverage; fix merge conflicts

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I34e7c6d382ab7f4b6cf98ede9b7116056a6a6964
This commit is contained in:
raf 2026-02-05 11:11:49 +03:00
commit 3abfe6a79b
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
9 changed files with 631 additions and 128 deletions

View file

@ -2,31 +2,6 @@
name = "heif-support"
version = "1.0.0"
api_version = "1.0"
author = "Pinakes Team"
description = "HEIF/HEIC image format support with metadata extraction and thumbnail generation"
homepage = "https://github.com/pinakes/pinakes"
license = "MIT OR Apache-2.0"
kind = ["media_type", "metadata_extractor", "thumbnail_generator"]
[plugin.binary]
wasm = "heif_support.wasm"
[capabilities]
max_memory_mb = 256
max_cpu_time_secs = 30
[capabilities.filesystem]
read = ["/tmp/pinakes-input"]
write = ["/tmp/pinakes-output"]
[config]
extract_exif = { type = "boolean", default = true, description = "Extract EXIF metadata from HEIF images" }
generate_thumbnails = { type = "boolean", default = true, description = "Generate thumbnails for HEIF images" }
thumbnail_quality = { type = "integer", default = 85, description = "JPEG quality for thumbnails (1-100)" }
[plugin]
name = "heif-support"
version = "1.0.0"
api_version = "1.0"
author = "Pinakes Contributors"
description = "HEIF/HEIC image format support for Pinakes"
homepage = "https://github.com/notashelf/pinakes"
@ -42,21 +17,13 @@ max_memory_mb = 256
max_cpu_time_secs = 30
[capabilities.filesystem]
# Read access for processing images (use specific paths in production)
read = ["/media"]
# Write access for thumbnail generation
write = ["/tmp/pinakes"]
# Plugin configuration
[config]
# Enable EXIF metadata extraction
extract_exif = true
# Enable thumbnail generation
generate_thumbnails = true
# Thumbnail quality (1-100)
thumbnail_quality = 85
# Thumbnail format (jpeg, png, webp)
thumbnail_format = "jpeg"
# Maximum image dimensions to process
max_width = 8192
max_height = 8192

View file

@ -2,29 +2,8 @@
name = "markdown-metadata"
version = "1.0.0"
api_version = "1.0"
author = "Pinakes Team"
description = "Extract metadata from Markdown files with YAML frontmatter"
homepage = "https://github.com/pinakes/pinakes"
license = "MIT OR Apache-2.0"
kind = ["metadata_extractor"]
[plugin.binary]
wasm = "markdown_metadata.wasm"
[capabilities]
# No filesystem or network access needed
# Plugin operates on provided content
[config]
extract_tags = { type = "boolean", default = true, description = "Extract tags from YAML frontmatter" }
parse_yaml = { type = "boolean", default = true, description = "Parse YAML frontmatter" }
max_file_size = { type = "integer", default = 10485760, description = "Maximum file size in bytes (10MB)" }
[plugin]
name = "markdown-metadata"
version = "1.0.0"
api_version = "1.0"
author = "Pinakes Contributors"
description = "Enhanced Markdown metadata extractor with frontmatter parsing"
description = "Extract metadata from Markdown files with YAML frontmatter"
homepage = "https://github.com/notashelf/pinakes"
license = "MIT"
kind = ["metadata_extractor"]
@ -39,13 +18,8 @@ network = false
read = []
write = []
# Plugin configuration
[config]
# Extract frontmatter tags as media tags
extract_tags = true
# Parse YAML frontmatter
parse_yaml = true
# Parse TOML frontmatter
parse_toml = true
# Maximum file size to process (in bytes)
max_file_size = 10485760 # 10MB
max_file_size = 10485760