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 (#75517)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
5835201de1
commit
daa1befaf6
5 changed files with 5 additions and 22 deletions
|
|
@ -207,10 +207,7 @@ test('parseTokenResponse cannot read a persisted set (the reload bug #73271)', (
|
|||
})
|
||||
|
||||
test('parseStoredTokenSet rejects a non-normalized server response', () => {
|
||||
assert.throws(
|
||||
() => parseStoredTokenSet({ access_token: 'AT-server' }),
|
||||
/missing accessToken/i
|
||||
)
|
||||
assert.throws(() => parseStoredTokenSet({ access_token: 'AT-server' }), /missing accessToken/i)
|
||||
})
|
||||
|
||||
// --- refresh timing ---
|
||||
|
|
|
|||
|
|
@ -1,11 +1,6 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import {
|
||||
composerPlainText,
|
||||
normalizeComposerEditorDom,
|
||||
renderComposerContents,
|
||||
RICH_INPUT_SLOT
|
||||
} from './rich-editor'
|
||||
import { composerPlainText, normalizeComposerEditorDom, renderComposerContents, RICH_INPUT_SLOT } from './rich-editor'
|
||||
|
||||
function editor(): HTMLDivElement {
|
||||
const el = document.createElement('div')
|
||||
|
|
|
|||
|
|
@ -287,8 +287,7 @@ export function useVoiceConversation({
|
|||
// start — don't auto-start the next sentence, the user chose to stop.
|
||||
const stoppedByUser =
|
||||
stoppedDuringSetup ||
|
||||
(speechStartSequenceRef.current > 0 &&
|
||||
$voicePlayback.get().sequence > speechStartSequenceRef.current)
|
||||
(speechStartSequenceRef.current > 0 && $voicePlayback.get().sequence > speechStartSequenceRef.current)
|
||||
|
||||
speechStartSequenceRef.current = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@ describe('/queue collapsed paste submission', () => {
|
|||
const paste: ComposerToken = { kind: 'paste', label: '[[ paste [2 lines] ]]', text: 'one\ntwo' }
|
||||
const image: ComposerToken = { kind: 'image', index: 1, label: imageToken(1), path: '/tmp/image.png' }
|
||||
|
||||
expect(expandPasteTokens([paste, image])(`${paste.label} and ${image.label}`)).toBe(
|
||||
`one\ntwo and ${image.label}`
|
||||
)
|
||||
expect(expandPasteTokens([paste, image])(`${paste.label} and ${image.label}`)).toBe(`one\ntwo and ${image.label}`)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -309,13 +309,7 @@ export function useComposerState({ gw, submitRef, sys }: UseComposerStateOptions
|
|||
)
|
||||
|
||||
const handleTextPaste = useCallback(
|
||||
({
|
||||
bracketed,
|
||||
cursor,
|
||||
hotkey,
|
||||
text,
|
||||
value
|
||||
}: PasteEvent): MaybePromise<ComposerPasteResult | null> => {
|
||||
({ bracketed, cursor, hotkey, text, value }: PasteEvent): MaybePromise<ComposerPasteResult | null> => {
|
||||
if (hotkey) {
|
||||
const preferOsc52 = isRemoteShellSession(process.env)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue