Skip to content

Commit b150a41

Browse files
committed
Lint
1 parent b5311d7 commit b150a41

File tree

18 files changed

+227
-168
lines changed

18 files changed

+227
-168
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/thinking-block.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ export function ThinkingBlock({
171171
</span>
172172
{hasContent && (
173173
<ChevronUp
174-
className={clsx('h-3 w-3 transition-transform', isExpanded ? 'rotate-180' : 'rotate-90')}
174+
className={clsx(
175+
'h-3 w-3 transition-transform',
176+
isExpanded ? 'rotate-180' : 'rotate-90'
177+
)}
175178
aria-hidden='true'
176179
/>
177180
)}

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/copilot-message.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import { type FC, memo, useCallback, useMemo, useState } from 'react'
44
import { RotateCcw } from 'lucide-react'
55
import { Button } from '@/components/emcn'
6-
import { OptionsSelector, parseSpecialTags, ToolCall } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components'
6+
import {
7+
OptionsSelector,
8+
parseSpecialTags,
9+
ToolCall,
10+
} from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components'
711
import {
812
FileAttachmentDisplay,
913
SmoothStreamingText,
@@ -466,7 +470,6 @@ const CopilotMessage: FC<CopilotMessageProps> = memo(
466470
</div>
467471
)}
468472

469-
470473
{/* Citations if available */}
471474
{message.citations && message.citations.length > 0 && (
472475
<div className='pt-1'>
@@ -488,17 +491,14 @@ const CopilotMessage: FC<CopilotMessageProps> = memo(
488491
)}
489492

490493
{/* Options selector when agent presents choices */}
491-
{!isStreaming &&
492-
parsedTags?.options &&
493-
Object.keys(parsedTags.options).length > 0 && (
494-
<OptionsSelector
495-
options={parsedTags.options}
496-
onSelect={handleOptionSelect}
497-
disabled={isSendingMessage}
498-
enableKeyboardNav={isLastMessage}
499-
/>
500-
)}
501-
494+
{!isStreaming && parsedTags?.options && Object.keys(parsedTags.options).length > 0 && (
495+
<OptionsSelector
496+
options={parsedTags.options}
497+
onSelect={handleOptionSelect}
498+
disabled={isSendingMessage}
499+
enableKeyboardNav={isLastMessage}
500+
/>
501+
)}
502502
</div>
503503
</div>
504504
)

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/queued-messages/queued-messages.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function QueuedMessages() {
3131
if (messageQueue.length === 0) return null
3232

3333
return (
34-
<div className='mx-2 overflow-hidden rounded-t-lg border border-b-0 border-black/[0.08] bg-[var(--bg-secondary)] dark:border-white/[0.08]'>
34+
<div className='mx-2 overflow-hidden rounded-t-lg border border-black/[0.08] border-b-0 bg-[var(--bg-secondary)] dark:border-white/[0.08]'>
3535
{/* Header */}
3636
<button
3737
type='button'
@@ -44,7 +44,7 @@ export function QueuedMessages() {
4444
) : (
4545
<ChevronRight className='h-3 w-3 text-[var(--text-tertiary)]' />
4646
)}
47-
<span className='text-xs font-medium text-[var(--text-secondary)]'>
47+
<span className='font-medium text-[var(--text-secondary)] text-xs'>
4848
{messageQueue.length} Queued
4949
</span>
5050
</div>
@@ -57,7 +57,7 @@ export function QueuedMessages() {
5757
{messageQueue.map((msg) => (
5858
<div
5959
key={msg.id}
60-
className='group flex items-center gap-2 border-t border-black/[0.04] px-2.5 py-1.5 hover:bg-[var(--bg-tertiary)] dark:border-white/[0.04]'
60+
className='group flex items-center gap-2 border-black/[0.04] border-t px-2.5 py-1.5 hover:bg-[var(--bg-tertiary)] dark:border-white/[0.04]'
6161
>
6262
{/* Radio indicator */}
6363
<div className='flex h-3 w-3 shrink-0 items-center justify-center'>
@@ -66,9 +66,7 @@ export function QueuedMessages() {
6666

6767
{/* Message content */}
6868
<div className='min-w-0 flex-1'>
69-
<p className='truncate text-xs text-[var(--text-primary)]'>
70-
{msg.content}
71-
</p>
69+
<p className='truncate text-[var(--text-primary)] text-xs'>{msg.content}</p>
7270
</div>
7371

7472
{/* Actions - always visible */}
@@ -103,4 +101,3 @@ export function QueuedMessages() {
103101
</div>
104102
)
105103
}
106-

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx

Lines changed: 161 additions & 115 deletions
Large diffs are not rendered by default.

apps/sim/lib/copilot/registry.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ export const ToolArgSchemas = {
213213
manage_custom_tool: z.object({
214214
operation: z
215215
.enum(['add', 'edit', 'delete', 'list'])
216-
.describe('The operation to perform: add (create new), edit (update existing), delete, or list (get all tools)'),
216+
.describe(
217+
'The operation to perform: add (create new), edit (update existing), delete, or list (get all tools)'
218+
),
217219
toolId: z
218220
.string()
219221
.optional()

apps/sim/lib/copilot/tools/client/blocks/get-block-options.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ export class GetBlockOptionsClientTool extends BaseClientTool {
6666
// Handle both camelCase and snake_case parameter names, plus blockType as an alias
6767
const normalizedArgs = args
6868
? {
69-
blockId: args.blockId || (args as any).block_id || (args as any).blockType || (args as any).block_type,
69+
blockId:
70+
args.blockId ||
71+
(args as any).block_id ||
72+
(args as any).blockType ||
73+
(args as any).block_type,
7074
}
7175
: {}
7276

apps/sim/lib/copilot/tools/client/other/auth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ export class AuthClientTool extends BaseClientTool {
4242
this.setState(ClientToolCallState.executing)
4343
}
4444
}
45-

apps/sim/lib/copilot/tools/client/other/custom-tool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ export class CustomToolClientTool extends BaseClientTool {
4242
this.setState(ClientToolCallState.executing)
4343
}
4444
}
45-

apps/sim/lib/copilot/tools/client/other/debug.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ export class DebugClientTool extends BaseClientTool {
4646
// when the debug subagent completes its work
4747
}
4848
}
49-

apps/sim/lib/copilot/tools/client/other/deploy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ export class DeployClientTool extends BaseClientTool {
4242
this.setState(ClientToolCallState.executing)
4343
}
4444
}
45-

0 commit comments

Comments
 (0)