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 (#68867)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
0c33db0564
commit
0008868422
4 changed files with 14 additions and 13 deletions
|
|
@ -24,7 +24,16 @@ interface QueuePanelProps {
|
|||
const entryPreview = (entry: QueuedPromptEntry, c: Translations['composer']) =>
|
||||
entry.text.trim() || (entry.attachments.length > 0 ? c.attachmentOnly : c.emptyTurn)
|
||||
|
||||
export function QueuePanel({ busy, editingId, entries, onDelete, onEdit, onResume, onSendNow, parked }: QueuePanelProps) {
|
||||
export function QueuePanel({
|
||||
busy,
|
||||
editingId,
|
||||
entries,
|
||||
onDelete,
|
||||
onEdit,
|
||||
onResume,
|
||||
onSendNow,
|
||||
parked
|
||||
}: QueuePanelProps) {
|
||||
const { t } = useI18n()
|
||||
const c = t.composer
|
||||
|
||||
|
|
@ -54,13 +63,7 @@ export function QueuePanel({ busy, editingId, entries, onDelete, onEdit, onResum
|
|||
) : undefined
|
||||
}
|
||||
defaultCollapsed={!parked}
|
||||
icon={
|
||||
<Codicon
|
||||
className="text-muted-foreground/70"
|
||||
name={parked ? 'debug-pause' : 'layers'}
|
||||
size="0.8rem"
|
||||
/>
|
||||
}
|
||||
icon={<Codicon className="text-muted-foreground/70" name={parked ? 'debug-pause' : 'layers'} size="0.8rem" />}
|
||||
key={parked ? 'parked' : 'flowing'}
|
||||
label={parked ? c.queuedPaused(entries.length) : c.queued(entries.length)}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { atom } from 'nanostores'
|
||||
import { cleanup, fireEvent, render, screen } from '@testing-library/react'
|
||||
import { atom } from 'nanostores'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import { SessionActionsMenu } from './session-actions-menu'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import type * as React from 'react'
|
||||
|
||||
import { atom } from 'nanostores'
|
||||
import { cleanup, render, screen } from '@testing-library/react'
|
||||
import { atom } from 'nanostores'
|
||||
import type * as React from 'react'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import type { SessionInfo } from '@/hermes'
|
||||
|
|
|
|||
|
|
@ -534,7 +534,6 @@ function topupCreditsValue(billing: BillingStateResponse, usage?: UsageModelData
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
function buyCreditsDisabledReason(billing: BillingStateResponse): null | string {
|
||||
if (!billing.is_admin) {
|
||||
return resolveRefusal({ kind: 'role_required', message: '' }).message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue