airi/packages/plugin-protocol
Neko Ayaka 528a31de63
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Lint (push) Blocked by required conditions
CI / Build Test (stage-web) (push) Blocked by required conditions
CI / Build Test (stage-tamagotchi) (push) Blocked by required conditions
CI / Build Test (ui-playgrounds) (push) Blocked by required conditions
CI / Build Test (stage-tamagotchi-godot) (push) Blocked by required conditions
CI / Unit Test (others) (push) Blocked by required conditions
CI / Unit Test (api-server-1) (push) Blocked by required conditions
CI / Unit Test (api-server-2) (push) Blocked by required conditions
CI / Unit Test (stage-tamagotchi) (push) Blocked by required conditions
CI / Unit Test (stage-ui-1) (push) Blocked by required conditions
CI / Unit Test (stage-ui-2) (push) Blocked by required conditions
CI / Unit Test (push) Blocked by required conditions
CI / Type Check (others) (push) Blocked by required conditions
CI / Type Check (desktop) (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution-1 (push) Blocked by required conditions
Update Nix pnpmDeps Hash / update (push) Waiting to run
CI / Type Check (web) (push) Blocked by required conditions
CI / Type Check (push) Blocked by required conditions
CI / Check Provenance (push) Blocked by required conditions
Cloudflare Pages (Auth UI) / Deploy - ui-server-auth (push) Waiting to run
Cloudflare Workers / Deploy - stage-web (push) Blocked by required conditions
Cloudflare Workers / Build - docs (push) Waiting to run
Release Tamagotchi / Plan Updates (push) Waiting to run
Release Tamagotchi / Build (push) Blocked by required conditions
Release Tamagotchi / Build-1 (push) Blocked by required conditions
Release Tamagotchi / Build-2 (push) Blocked by required conditions
Release Tamagotchi / Build-3 (push) Blocked by required conditions
Release Tamagotchi / Build-4 (push) Blocked by required conditions
Release Tamagotchi / Publish Bundle (push) Blocked by required conditions
Release Tamagotchi / Promote Canary to Stable (push) Blocked by required conditions
Release Tamagotchi / Publish GitCode Release Mirror (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution-2 (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution-3 (push) Blocked by required conditions
E2E Test - Tamagotchi (Linux) / X11 window render (Xvfb) (push) Waiting to run
E2E Test - Tamagotchi (Linux) / Wayland window render (weston headless) (push) Waiting to run
release: v0.15.2
2026-11-09 21:14:10 +08:00
..
src refactor(plugin-sdk,plugin-protocol): move permission and identity types to extension-protocol (#3443) 2026-11-08 22:58:41 +08:00
package.json release: v0.15.2 2026-11-09 21:14:10 +08:00
README.md refactor(plugin-sdk,plugin-protocol): move permission and identity types to extension-protocol (#3443) 2026-11-08 22:58:41 +08:00
tsconfig.json style: many typescript v6 pending errors 2026-04-05 02:07:09 +08:00
tsdown.config.ts feat(plugin-protocol,server-shared): new package 2026-02-08 03:44:04 +08:00
vitest.config.ts refactor(extension-*,stage-tamagotchi,stage-ui,server-*): rename to extension, improve DX (#1892) 2026-06-12 02:03:42 +08:00

@proj-airi/plugin-protocol

Shared protocol contracts for plugin-module communication in Project AIRI.

What it does

  • Defines websocket event names and payload types for module/plugin orchestration.
  • Exposes Eventa event definitions bound to protocol event names.
  • Provides shared transport/event utility types used by server and plugin runtimes.
  • Re-exports the Extension identity and permission types from @proj-airi/extension-protocol.

How to use

import type { WebSocketEvent, WebSocketEventOf, WebSocketEvents } from '@proj-airi/plugin-protocol/types'

import { moduleAnnounce, moduleAuthenticate } from '@proj-airi/plugin-protocol/types'

When to use

input:text can carry overrides.binding for an external scene. The host resolves that binding to a persistent persona session. overrides.sessionId identifies an existing host session. A binding takes precedence when both fields are present.

  • You need canonical protocol contracts for plugin <-> host communication.
  • You need event name stability and matching payload definitions across runtimes.

When not to use

  • You only need higher-level runtime client APIs from SDK packages.
  • You are implementing app-only UI state that is not part of plugin/server transport contracts.

License

MIT