@streamoid/agent
v0.6.34
Published
Native (no-iframe) embeddable Streamoid agent chat panel. Host renders <AgentPanel adapters={…}/>. Prebuilt bundle — source + build live in the stream-agent repo.
Readme
@streamoid/agent
Native (no-iframe) embeddable Streamoid agent chat panel. A host renders the
component and passes a typed adapters object; the agent renders, streams, and
navigates natively inside the host (no iframe, no postMessage).
import { AgentPanel } from "@streamoid/agent";
import "@streamoid/agent/style.css";
<AgentPanel
adapters={{
auth: { user: { id, email, name, specialization } },
workspace: { current: { id, name, role, country /* …full context */ } },
theme: { mode: "light" | "dark" },
config: { apiBase: "", hide: { sidepane: true, newBrief: true, notifications: true } },
navigation: { chatId, onChatIdChange },
}}
/>- Peer dependencies:
react,react-dom,@streamoid/ui,@streamoid/icons. - API base: use a relative base and proxy
/stream-agent/api/v1to the agent backend from the host (same-origin → cookies flow, no CORS).
This directory is the package TEMPLATE, not the package.
npm run build:libin the stream-agent frontend copies it over the bundle it builds — do not hand-edit the published output.Publishing is not manual.
.github/workflows/publish-agent.ymlpublishes on every push todevelopwhoseversionhere is not yet on npm, then opens a pin bump PR in every consumer. So the one thing a change to the chat needs is a new version in this directory'spackage.json; merging it ships everything else. Theagent-versioncheck on each PR fails if that has been forgotten.
