mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-21 07:55:08 +00:00
fix(ci): sort desktop imports and stub skill display in TUI test
Eslint wants @hermes/shared before react, and the slash handler only passes a display override when command.dispatch includes one.
This commit is contained in:
parent
e682a9c0a7
commit
42fc6227f6
2 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import { type MutableRefObject, useCallback, useRef } from 'react'
|
||||
|
||||
import { skillInvocationText } from '@hermes/shared'
|
||||
import { type MutableRefObject, useCallback, useRef } from 'react'
|
||||
|
||||
import { getProfiles } from '@/hermes'
|
||||
import type { Translations } from '@/i18n'
|
||||
|
|
|
|||
|
|
@ -825,7 +825,12 @@ describe('createSlashHandler', () => {
|
|||
}
|
||||
|
||||
if (method === 'command.dispatch') {
|
||||
return Promise.resolve({ type: 'skill', message: skillMessage, name: 'hermes-agent-dev' })
|
||||
return Promise.resolve({
|
||||
type: 'skill',
|
||||
message: skillMessage,
|
||||
name: 'hermes-agent-dev',
|
||||
display: '/hermes-agent-dev'
|
||||
})
|
||||
}
|
||||
|
||||
return Promise.resolve({})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue