← Catalog

@agimon-ai/doompi-web-contracts

Web cockpit plugin contracts for DoomPi: plugin definitions, slot contributions, session data channels, and hub channel sources.

Package

Install

Install with PiG

pig install npm:@agimon-ai/doompi-web-contracts

Install with Pi

pi install npm:@agimon-ai/doompi-web-contracts
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

README

Written by the package's publisher, shown as published in version 0.0.1-alpha.31 (README.md). PiG does not review it.

@agimon-ai/doompi-web-contracts

Typed plugin, slot, session-channel, and hub-channel contracts for the DoomPi web cockpit.

This is a library, not a Pi extension. It starts no process and does not belong in .doom/modes.yaml.

Alpha: web plugin contracts may change between releases.

Install

npm install @agimon-ai/doompi-web-contracts

Web plugin clients also require the package's React, React DOM, and TanStack Store peers when they use those surfaces.

Plugin shape

A web plugin can have two entries:

  • A client entry exports webPlugin: WebPluginDefinition. It can contribute tabs, slots, Leader bindings, commands, session channels, activity surfaces, and tool renderers.
  • An optional hub entry exports webHubChannels: readonly WebHubChannel[]. Each channel watches a data source and emits per-session ChannelFrame payloads to the page.

Declare both entries in the plugin package's doompiWeb manifest block. The DoomPi cockpit bundler reads those declarations and generates the registration modules.

Use the definition helpers for checked literals:

import {
  defineSessionChannel,
  defineSessionStore,
  defineSlot,
  defineWebPlugin,
  toolResultText,
} from '@agimon-ai/doompi-web-contracts';

Import contracts type-only from server code. The /testing subpath provides channel, render, slot, and tool-message fixtures for plugin tests.

License

MIT