- Coordinator tools in its own chat (super admin only): list_extensions,
set_extension_access, delete_extension, and update_skill /
update_mcp_server / update_custom_tool for what can't change where
anything is sent (on/off, names, arguments, left-out tools)
- Adding a skill, MCP server or tool, or changing a skill's words, a
server's URL or headers or a tool's kind or config, goes through
propose_skill / propose_mcp_server / propose_custom_tool: stored in
extension_proposals with the bot's background check, shown as a
[proposal:ID] chip that opens a card with Confirm and Reject
- The card's facts are worked out by the app from what Confirm saves: the
host, every {{env.KEY}} and whether it's saved, the config; for a skill
its links, hosts, tool names, mentions of secrets and a diff against
the saved runbook
- Confirming decides once and checks again; a server or tool missing a key
is saved switched off, and the outcome is posted to the bot in chat
- Never from a bot: stdio servers, a URL whose host a template decides,
envs in a prompt tool, a key's value
Co-Authored-By: Claude Opus 5.5 <[email protected]>
25 lines
1.0 KiB
TypeScript
25 lines
1.0 KiB
TypeScript
import Row from "@moduletrace/twui/layout/Row";
|
|
import Span from "@moduletrace/twui/layout/Span";
|
|
import { twMerge } from "tailwind-merge";
|
|
import type { ExtensionProposalDetail } from "@/src/types";
|
|
|
|
/**
|
|
* One line of what a proposed server or tool would do, as the app read it
|
|
* from the config: a label, and its value, code-like ones as a block.
|
|
*/
|
|
export default function ProposalDetailRow({ label, value, block }: ExtensionProposalDetail) {
|
|
return (
|
|
<Row className="w-full py-2 gap-3! flex-nowrap items-baseline border-0 border-b border-solid border-hairline last:border-b-0">
|
|
<Span className="w-28 shrink-0 text-[12px] leading-4 text-ink-secondary">{label}</Span>
|
|
<Span
|
|
className={twMerge(
|
|
"grow min-w-0 text-[13px] leading-5 text-ink break-words",
|
|
block && "max-h-48 overflow-auto whitespace-pre-wrap rounded-default-xs bg-sunken px-2 py-1 font-mono text-[12px]",
|
|
)}
|
|
>
|
|
{value}
|
|
</Span>
|
|
</Row>
|
|
);
|
|
}
|