studio-translate-ollama/module.yaml
flemming-it 884e275b0e feat: studio.translate.ollama v0.1.0 — Ollama-backed translate hook
First plugin to exercise the Studio-plugin translate hook
end-to-end. Routes through an Ollama-shaped /api/chat
endpoint configured via OLLAMA_ENDPOINT (default
http://localhost:11434/api/chat).

System prompt constrains the model to ONLY the translation —
no commentary, no markdown frames — so the translate hook
contract (plain string in, plain string out) stays honest.

Declared permissions: net: localhost + net: 127.0.0.1 +
net: ollama. Operator policy extends the ceiling for
remote / cloud LLM endpoints.

v0.1 limits: no glossary, no batching, no caching. Same SDK
v0.1 single-world contract — declares Declined stubs for the
theme and output-view hooks.

Built artefact: ~108 KiB stripped wasm. Uploaded to
releases.fai.flemming.ai (sha256 0101ed6e…) and reachable via
`fai install studio.translate.ollama`.

Signed-off-by: flemming-it <sf@flemming.it>
2026-05-25 23:02:44 +02:00

29 lines
813 B
YAML

schema_version: 1
name: studio-translate-ollama
version: 0.1.0
provides:
- capability: studio.translate.ollama
version: 0.1.0
# Studio plugins are called via WIT exports, not the flow-engine
# `invoke` path. Inputs / outputs stay empty so the hub's
# manifest validator doesn't trip.
inputs: {}
outputs: {}
# Reaches out to an Ollama-shaped HTTP endpoint. The default
# permissions cover loopback (local Ollama via host services
# or `ollama serve`) plus the two common LLM endpoints
# operators might tunnel through.
permissions:
- "net: localhost"
- "net: 127.0.0.1"
- "net: ollama"
# Plugin-host declaration: which hooks this component
# implements. Studio reads this at plugin-discovery time so it
# knows which RPCs to call against this capability.
studio_extension:
hooks:
- translate