omp packages

declaw-style-pirate0.1.1

A minimal third-party Declaw style plugin example.

jzlosman Published 1 month ago Apache-2.0 ~349 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Declaw Pirate style plugin

A small, functioning third-party Declaw plugin. It adds one namespaced style, pirate/pirate, without importing Pi internals, making model calls, or changing the host agent's context.

This repository is intentionally minimal. Use it as a reference when building a style plugin or as a starting point for your own style package.

Install

With Declaw already installed:

pi install npm:declaw-style-pirate

Reload Pi, then verify the plugin:

/declaw list
/declaw style
/declaw pirate/pirate

The plugin should appear under the pirate plugin and expose the pirate/pirate style.

Development

socket-npm install --ignore-scripts
npm test

The test uses a fake protected answer. It does not call a model or access Pi session context.

How it works

  • style.ts declares the plugin metadata, instructions, and protected-answer payload.
  • index.ts registers the plugin through pi-declaw/plugin-api.
  • The host owns preservation, model access, lifecycle, and display-only publication.

The plugin receives already-protected text and passes it through exactly once. It cannot rewrite the original conversation or feed output back into the agent.

See Declaw's PLUGIN_GUIDE.md for the complete contract.