- Harness: providers, model catalog synced hourly, automatic free picks, cooldowns, tool loop with context trimming, MCP computer tools - Bots queue runs replies and tasks through the harness; jobs wait (attempt refunded) while every model is resting - Envs: Settings > Environment, scoped general/workspace/computer, written to computers and redacted from tool output - Models: Settings > Models, per-harness provider select defaulting to OpenRouter, and a models modal on each bot's chat (the coordinator's edits the defaults) - Chat: thinking row while a reply runs, file attachments (upload, paste, drop) that replies read as images, audio and document text - Fix media uploads failing after a user's first file, and private files being served from the public media path Co-Authored-By: Claude Opus 5.5 <[email protected]>
50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
import Row from "@moduletrace/twui/layout/Row";
|
|
import Stack from "@moduletrace/twui/layout/Stack";
|
|
import H1 from "@moduletrace/twui/layout/H1";
|
|
import Span from "@moduletrace/twui/layout/Span";
|
|
import BotStone from "@/src/components/general/bot-stone";
|
|
import type { BotFace, BotHue } from "@/src/dict/bot-dict";
|
|
import type { BotWithLastMessage, HarnessOverview } from "@/src/types";
|
|
import { crewStatusSentence } from "@/src/utils/crew-status";
|
|
import BotModelsModal from "./bot-models-modal";
|
|
|
|
type Props = {
|
|
bot: BotWithLastMessage;
|
|
bots: BotWithLastMessage[];
|
|
/**
|
|
* The bot's models (the defaults for the coordinator).
|
|
*/
|
|
harnesses?: HarnessOverview[] | null;
|
|
};
|
|
|
|
/**
|
|
* 64px header. The coordinator's status is the crew sentence. On the
|
|
* right, the model button that opens the bot's models (the defaults on
|
|
* the coordinator, for super admins).
|
|
*/
|
|
export default function ConversationHeader({ bot, bots, harnesses }: Props) {
|
|
const status =
|
|
bot.kind === "coordinator"
|
|
? crewStatusSentence({ bots })
|
|
: bot.status_line || "";
|
|
|
|
return (
|
|
<Row className="h-16 shrink-0 gap-3! flex-nowrap items-center px-6 border-0 border-b border-solid border-hairline">
|
|
<BotStone
|
|
hue={(bot.hue || null) as BotHue | null}
|
|
face={(bot.face || "idle") as BotFace}
|
|
size={40}
|
|
/>
|
|
<Stack className="min-w-0 gap-0!">
|
|
<H1 className="text-lg! leading-6! tracking-normal! font-bold text-ink truncate">
|
|
{bot.name}
|
|
</H1>
|
|
<Span className="text-[13px] leading-[18px] text-ink-secondary truncate">
|
|
{status}
|
|
</Span>
|
|
</Stack>
|
|
<BotModelsModal key={bot.id} bot={bot} harnesses={harnesses} />
|
|
</Row>
|
|
);
|
|
}
|