chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-03-25 16:43:06 -05:00
parent 05252e19b5
commit 350d52f515
73 changed files with 766 additions and 55 deletions
+3 -4
View File
@@ -314,7 +314,8 @@
if (tool && tool.authenticated === false) {
const parts = id.split(':');
const serverId = parts.at(-1) ?? id;
const authType = parts.length > 1 ? parts[0] === 'server' ? parts[1] : parts[0] : null;
const authType =
parts.length > 1 ? (parts[0] === 'server' ? parts[1] : parts[0]) : null;
unauthed.push({ id, name: tool.name ?? id, serverId, authType });
} else {
authed.push(id);
@@ -1770,9 +1771,7 @@
}
if (pendingOAuthTools.length > 0) {
toast.warning(
$i18n.t('Please connect all required integrations before sending a message')
);
toast.warning($i18n.t('Please connect all required integrations before sending a message'));
return;
}
if (userPrompt === '' && files.length === 0) {
@@ -29,9 +29,9 @@
$: toolCallCount = tokens.filter((t) => t?.attributes?.type === 'tool_calls').length;
$: reasoningCount = tokens.filter((t) => t?.attributes?.type === 'reasoning').length;
$: hasPending = !messageDone && tokens.some(
(t) => t?.attributes?.done !== undefined && t?.attributes?.done !== 'true'
);
$: hasPending =
!messageDone &&
tokens.some((t) => t?.attributes?.done !== undefined && t?.attributes?.done !== 'true');
$: codeInterpreterCount = tokens.filter((t) => t?.attributes?.type === 'code_interpreter').length;
@@ -367,7 +367,11 @@
</ul>
{/if}
{:else if token.type === 'detail_group'}
<ConsecutiveDetailsGroup id={`${id}-${tokenIdx}-detail-group`} tokens={token.items} messageDone={done}>
<ConsecutiveDetailsGroup
id={`${id}-${tokenIdx}-detail-group`}
tokens={token.items}
messageDone={done}
>
<div slot="content" class="space-y-1">
{#each token.items as detailToken, detailIdx}
{@const textContent = getDetailTextContent(detailToken)}
@@ -140,12 +140,16 @@
};
</script>
<ArchivedChatsModal bind:show={showArchivedChatsModal} onUpdate={handleArchivedChatsChange} onDelete={(id) => {
if ($chatId === id) {
goto('/');
chatId.set('');
}
}} />
<ArchivedChatsModal
bind:show={showArchivedChatsModal}
onUpdate={handleArchivedChatsChange}
onDelete={(id) => {
if ($chatId === id) {
goto('/');
chatId.set('');
}
}}
/>
<SharedChatsModal bind:show={showSharedChatsModal} />
<FilesModal bind:show={showFilesModal} />