fmt(js): `npm run fix` on merge (#85898)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-08-14 07:19:47 +00:00 committed by GitHub
parent 0842655382
commit bee9ef375b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -7,15 +7,13 @@ import { deliveryTargetFromCommand, replyTextFromResult } from './agent-delivery
// (the canonical Bot Mode command shape) and the reply extraction.
describe('delivery command detection', () => {
it('matches the canonical delivery command', () => {
const cmd =
'hermes -p turqoise chat --in ~ -c "Bot Chat" -Q -q "Message from 🤖 Hermes (@hermes): hi there"'
const cmd = 'hermes -p turqoise chat --in ~ -c "Bot Chat" -Q -q "Message from 🤖 Hermes (@hermes): hi there"'
expect(deliveryTargetFromCommand(cmd)).toBe('turqoise')
})
it('matches with a cd prefix and timeout wrapper', () => {
const cmd =
'cd ~ && timeout 240 hermes -p mr-tester chat --in "~" -Q -q "Message from 🤖 Hermes: hello"'
const cmd = 'cd ~ && timeout 240 hermes -p mr-tester chat --in "~" -Q -q "Message from 🤖 Hermes: hello"'
expect(deliveryTargetFromCommand(cmd)).toBe('mr-tester')
})

View File

@ -1,11 +1,7 @@
import { type ToolCallMessagePartProps } from '@assistant-ui/react'
import { type FC, useEffect, useState } from 'react'
import {
AGENT_MESSAGE_RE,
agentAvatarCache,
resolveAgentAvatar
} from '@/components/assistant-ui/thread/user-message'
import { AGENT_MESSAGE_RE, agentAvatarCache, resolveAgentAvatar } from '@/components/assistant-ui/thread/user-message'
// Sender-side inter-agent delivery: `hermes -p <agent> chat … -q "Message
// from 🤖 <sender>…"` run through the terminal tool IS the messaging