mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
fmt(js): npm run fix on merge (#73960)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
bff2206972
commit
7d3075d0d5
4 changed files with 8 additions and 14 deletions
|
|
@ -8039,9 +8039,7 @@ async function spawnPoolBackend(profile, entry) {
|
|||
onWaitTick: reason => {
|
||||
if (!poolAnnounced) {
|
||||
poolAnnounced = true
|
||||
rememberLog(
|
||||
`[updates] update in progress (${reason}); deferring pool backend start for profile "${profile}"`
|
||||
)
|
||||
rememberLog(`[updates] update in progress (${reason}); deferring pool backend start for profile "${profile}"`)
|
||||
}
|
||||
},
|
||||
pollMs: UPDATE_WAIT_POLL_MS,
|
||||
|
|
|
|||
|
|
@ -40,8 +40,7 @@ export function ComboboxInput({
|
|||
const query = value.trim().toLowerCase()
|
||||
const isExact = options.some(option => option.toLowerCase() === query)
|
||||
|
||||
const visible =
|
||||
query && !isExact ? options.filter(option => option.toLowerCase().includes(query)) : options
|
||||
const visible = query && !isExact ? options.filter(option => option.toLowerCase().includes(query)) : options
|
||||
|
||||
return (
|
||||
<Popover onOpenChange={setOpen} open={open}>
|
||||
|
|
@ -98,7 +97,10 @@ export function ComboboxInput({
|
|||
}}
|
||||
value={option}
|
||||
>
|
||||
<Codicon className={cn('mr-2 size-4', option === value ? 'opacity-100' : 'opacity-0')} name="check" />
|
||||
<Codicon
|
||||
className={cn('mr-2 size-4', option === value ? 'opacity-100' : 'opacity-0')}
|
||||
name="check"
|
||||
/>
|
||||
<span className="truncate">{optionLabels?.[option] ?? option}</span>
|
||||
</CommandItem>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -798,11 +798,7 @@ export function ToolsetConfigPanel({ toolset, onConfiguredChange }: ToolsetConfi
|
|||
{copy.activeBackendHint}
|
||||
</Pill>
|
||||
) : (
|
||||
<Button
|
||||
disabled={selecting !== null}
|
||||
onClick={() => void handleSelect(provider)}
|
||||
size="sm"
|
||||
>
|
||||
<Button disabled={selecting !== null} onClick={() => void handleSelect(provider)} size="sm">
|
||||
{selecting === provider.name ? <Loader2 className="size-3.5 animate-spin" /> : <Check />}
|
||||
{copy.useBackend}
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -889,9 +889,7 @@ describe('createGatewayEventHandler', () => {
|
|||
|
||||
onEvent({ payload: { text: 'stop the docker container' }, type: 'voice.transcript' } as any)
|
||||
|
||||
await vi.waitFor(() =>
|
||||
expect(ctx.submission.submitRef.current).toHaveBeenCalledWith('stop the docker container')
|
||||
)
|
||||
await vi.waitFor(() => expect(ctx.submission.submitRef.current).toHaveBeenCalledWith('stop the docker container'))
|
||||
expect(ctx.voice.setVoiceEnabled).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue