mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fmt(js): npm run fix on merge (#69644)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
7055385379
commit
1b8e34e945
6 changed files with 23 additions and 11 deletions
|
|
@ -469,7 +469,9 @@ describe('usePromptActions /compress', () => {
|
|||
])
|
||||
)
|
||||
expect($notifications.get()).not.toEqual(
|
||||
expect.arrayContaining([expect.objectContaining({ kind: 'success', message: expect.stringContaining('Compression aborted') })])
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({ kind: 'success', message: expect.stringContaining('Compression aborted') })
|
||||
])
|
||||
)
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -432,7 +432,13 @@ export function useSlashCommand(deps: SlashCommandDeps) {
|
|||
// system message would look like a successful state change.
|
||||
renderSlashOutput(lines.join('\n'))
|
||||
}
|
||||
notify({ durationMs: 5_000, id: noticeId, kind: aborted ? 'error' : 'success', message: lines.join('\n') })
|
||||
|
||||
notify({
|
||||
durationMs: 5_000,
|
||||
id: noticeId,
|
||||
kind: aborted ? 'error' : 'success',
|
||||
message: lines.join('\n')
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -248,7 +248,9 @@ export function renderRpcResult(response: unknown, name: string): string {
|
|||
|
||||
// process.stop — { killed: number }
|
||||
if ('killed' in r && typeof r.killed === 'number') {
|
||||
return r.killed > 0 ? `Stopped ${r.killed} background process${r.killed === 1 ? '' : 'es'}.` : 'No background processes to stop.'
|
||||
return r.killed > 0
|
||||
? `Stopped ${r.killed} background process${r.killed === 1 ? '' : 'es'}.`
|
||||
: 'No background processes to stop.'
|
||||
}
|
||||
|
||||
// session.save — { file }
|
||||
|
|
|
|||
|
|
@ -19,9 +19,10 @@ import {
|
|||
} from '@/store/session'
|
||||
import { publishSessionState } from '@/store/session-states'
|
||||
|
||||
import { chatMessageArraysEquivalent } from './use-session-actions/utils'
|
||||
import type { ClientSessionState } from '../../types'
|
||||
|
||||
import { chatMessageArraysEquivalent } from './use-session-actions/utils'
|
||||
|
||||
interface SessionStateCacheOptions {
|
||||
activeSessionId: string | null
|
||||
busyRef: MutableRefObject<boolean>
|
||||
|
|
|
|||
|
|
@ -268,9 +268,7 @@ function ModelPrice({ price, isCurrent }: { price?: ModelPricing; isCurrent: boo
|
|||
)
|
||||
}
|
||||
|
||||
const onSale =
|
||||
typeof price.discount_percent === 'number' &&
|
||||
Boolean(price.was_input || price.was_output)
|
||||
const onSale = typeof price.discount_percent === 'number' && Boolean(price.was_input || price.was_output)
|
||||
|
||||
return (
|
||||
<span
|
||||
|
|
@ -284,9 +282,7 @@ function ModelPrice({ price, isCurrent }: { price?: ModelPricing; isCurrent: boo
|
|||
<span
|
||||
className={cn(
|
||||
'rounded-sm px-1 py-0.5 text-[0.62rem] font-semibold',
|
||||
isCurrent
|
||||
? 'bg-primary-foreground/20'
|
||||
: 'bg-amber-500/15 text-amber-700 dark:text-amber-400'
|
||||
isCurrent ? 'bg-primary-foreground/20' : 'bg-amber-500/15 text-amber-700 dark:text-amber-400'
|
||||
)}
|
||||
>
|
||||
-{price.discount_percent}%
|
||||
|
|
|
|||
|
|
@ -190,7 +190,12 @@ const DESKTOP_COMMAND_SPECS: readonly DesktopCommandSpec[] = [
|
|||
// them, /steer falls back to a next-turn prompt, and /usage is a formatted
|
||||
// live report. Keep them on slash.exec until their RPC contracts are fully
|
||||
// equivalent.
|
||||
{ name: '/agents', description: 'Show active desktop sessions and running tasks', aliases: ['/tasks'], surface: exec() },
|
||||
{
|
||||
name: '/agents',
|
||||
description: 'Show active desktop sessions and running tasks',
|
||||
aliases: ['/tasks'],
|
||||
surface: exec()
|
||||
},
|
||||
{ name: '/background', description: 'Run a prompt in the background', aliases: ['/bg', '/btw'], surface: exec() },
|
||||
// /compress must be an action (session.compress RPC), not exec: the slash
|
||||
// worker route times out on large sessions (30s WS / 45s pipe) before the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue