chore: linting

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-03-31 14:45:46 -07:00
parent 5ae5a671e7
commit 17642493eb
43 changed files with 224 additions and 196 deletions

View file

@ -235,7 +235,13 @@ export function Audio({ id, src, title, durationMs, className }: AudioProps) {
</Button>
<div className="group/volume flex items-center gap-1 sm:gap-1.5">
<Button variant="ghost" size="icon" onClick={toggleMute} className="size-7 sm:size-8" aria-label={isMuted ? "Unmute" : "Mute"}>
<Button
variant="ghost"
size="icon"
onClick={toggleMute}
className="size-7 sm:size-8"
aria-label={isMuted ? "Unmute" : "Mute"}
>
{isMuted ? (
<VolumeXIcon className="size-3.5 sm:size-4" />
) : (

View file

@ -150,7 +150,8 @@ function ApprovalCard({
const allowedDecisions = reviewConfig?.allowed_decisions ?? ["approve", "reject"];
const canEdit = allowedDecisions.includes("edit");
const fileTypeLabel = supportedTypes.find((t) => t.value === selectedFileType)?.label ?? selectedFileType;
const fileTypeLabel =
supportedTypes.find((t) => t.value === selectedFileType)?.label ?? selectedFileType;
const handleApprove = useCallback(() => {
if (phase !== "pending" || isPanelOpen || !canApprove) return;
@ -450,7 +451,10 @@ function SuccessCard({ result }: { result: SuccessResult }) {
export const CreateDropboxFileToolUI = ({
args,
result,
}: ToolCallMessagePartProps<{ name: string; file_type?: string; content?: string }, CreateDropboxFileResult>) => {
}: ToolCallMessagePartProps<
{ name: string; file_type?: string; content?: string },
CreateDropboxFileResult
>) => {
if (!result) return null;
if (isInterruptResult(result)) {
return (

View file

@ -116,7 +116,11 @@ function ApprovalCard({
type: "approve",
edited_action: {
name: interruptData.action_requests[0].name,
args: { file_path: file?.file_path, connector_id: account?.id, delete_from_kb: deleteFromKb },
args: {
file_path: file?.file_path,
connector_id: account?.id,
delete_from_kb: deleteFromKb,
},
},
});
}, [phase, setProcessing, onDecision, interruptData, file?.file_path, account?.id, deleteFromKb]);

View file

@ -7,6 +7,7 @@
*/
export { Audio } from "./audio";
export { CreateDropboxFileToolUI, DeleteDropboxFileToolUI } from "./dropbox";
export {
type GenerateImageArgs,
GenerateImageArgsSchema,
@ -32,7 +33,6 @@ export {
UpdateLinearIssueToolUI,
} from "./linear";
export { CreateNotionPageToolUI, DeleteNotionPageToolUI, UpdateNotionPageToolUI } from "./notion";
export { CreateDropboxFileToolUI, DeleteDropboxFileToolUI } from "./dropbox";
export { CreateOneDriveFileToolUI, DeleteOneDriveFileToolUI } from "./onedrive";
export {
Plan,