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:
parent
0842655382
commit
bee9ef375b
|
|
@ -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')
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue