A local-first multi-agent app development platform, built on PenguinHarness
/**
* A harness-injected user message (`sender: "harness"` — a stop hook's continue, the goal
* plugin's round protocol, a user_prompt hook's expansion context): rendered as a compact
* collapsed card in the background notice's form rather than as a user bubble — the text is
* machine-composed protocol, worth a glance, not a read. Expanded, the full text shows in
* the tool cards' output styling; the Trace page shows the raw message as-is.
*/
import {
DISCLOSURE_CARD_CLASS,
DISCLOSURE_OUTPUT_PRE_CLASS,
DisclosureRow,
GlyphIcon,
ICONS,
} from "@adelie/ui";
import { S } from "../../lib/strings";
export function HarnessInjectedBanner({ text }: { text: string }) {
return (
<div className={DISCLOSURE_CARD_CLASS}>
<DisclosureRow
variant="header"
icon={
<GlyphIcon d={ICONS.fishHook} size={14} className="text-gray-400 dark:text-gray-500" />
}
label={S.chat.harnessInjected}
>
<pre className={DISCLOSURE_OUTPUT_PRE_CLASS}>{text}</pre>
</DisclosureRow>
</div>
);
}