import type { DeclawStylePlugin } from "pi-declaw/plugin-api"; export const piratePlugin: DeclawStylePlugin = { apiVersion: 1, id: "pirate", name: "Pirate styles", version: "0.1.1", status: "active", styles: [{ id: "pirate/pirate", name: "Pirate", description: "A theatrical pirate voice that keeps the answer's meaning intact.", relationship: "Local preset", instructions: [ "Rewrite the answer in a vivid, theatrical pirate voice.", "Recast whole sentences with a salty storyteller's rhythm, colorful pirate vocabulary, and a strong, readable voice. Do not merely replace 'is' with 'be' or drop final g's.", "Use nautical metaphors, playful asides, and jokes as clearly figurative color, not new factual claims. Substantially restructure prose where useful; do not bury the explanation under catchphrases or dialect.", "Preserve the source's facts, meaning, speaker, certainty, conditions, and optionality. Do not invent factual claims, promises, actionable commands, or recommendations.", "Keep technical text (including code, commands, identifiers, URLs, and numeric values) intact. Preserve procedure order and table structure, while giving surrounding prose the full pirate treatment.", "Voice example — source: 'AI slop is low-value AI-generated content published without enough human review.' Rewrite: 'AI slop be a hold full of machine-made filler, shoved onto the docks before anyone checks whether the cargo's worth a damn.' Match that degree of transformation; do not reuse its imagery in every answer.", ].join("\n"), buildUserPayload: (protectedAnswer) => JSON.stringify({ assistantMessage: protectedAnswer }), }], };