mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
fmt(js): npm run fix on merge (#65912)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
0022261234
commit
74fc222f17
8 changed files with 10 additions and 7 deletions
|
|
@ -86,6 +86,7 @@ test('lockfile resolves the pinned electron', () => {
|
|||
if (!fs.existsSync(ROOT_LOCK)) {
|
||||
return
|
||||
} // skip if lockfile not present
|
||||
|
||||
const spec = electronSpec(desktopPkg())
|
||||
const lock = JSON.parse(fs.readFileSync(ROOT_LOCK, 'utf-8'))
|
||||
const packages = (lock.packages ?? {}) as Record<string, { version?: string }>
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@ async function listBaseBranches(repoPath, gitBin) {
|
|||
['symbolic-ref', '--quiet', '--short', 'refs/remotes/origin/HEAD'],
|
||||
resolved
|
||||
)
|
||||
|
||||
const localDefault = await defaultBranch(gitBin, resolved)
|
||||
|
||||
return out
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import assert from 'node:assert/strict'
|
||||
|
||||
import { test } from 'vitest'
|
||||
|
||||
import { ensureMainWindow } from './main-window-lifecycle'
|
||||
|
|
@ -7,6 +8,7 @@ test('recreates a destroyed primary window without focusing it', () => {
|
|||
const destroyedWindow = {
|
||||
isDestroyed: () => true
|
||||
}
|
||||
|
||||
let createCalls = 0
|
||||
let focusCalls = 0
|
||||
|
||||
|
|
@ -42,6 +44,7 @@ test('focuses a live primary window for a normal second launch', () => {
|
|||
const liveWindow = {
|
||||
isDestroyed: () => false
|
||||
}
|
||||
|
||||
let focusedWindow = null
|
||||
|
||||
ensureMainWindow(liveWindow, {
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ export function useBackgroundSync({
|
|||
ACTIVE_MESSAGING_SESSION_POLL_INTERVAL_MS,
|
||||
() => void refreshActiveMessagingTranscript()
|
||||
)
|
||||
|
||||
void refreshActiveMessagingTranscript()
|
||||
|
||||
return dispose
|
||||
|
|
|
|||
|
|
@ -148,10 +148,7 @@ export function ContribWiring({ children }: { children: ReactNode }) {
|
|||
routeTokenRef.current = routeToken
|
||||
const getRouteToken = useCallback(() => routeTokenRef.current, [])
|
||||
|
||||
const getRoutedStoredSessionId = useCallback(
|
||||
() => routedSessionIdRef.current,
|
||||
[]
|
||||
)
|
||||
const getRoutedStoredSessionId = useCallback(() => routedSessionIdRef.current, [])
|
||||
|
||||
const clearRoutedSessionIntent = useCallback(() => {
|
||||
routedSessionIdRef.current = null
|
||||
|
|
|
|||
|
|
@ -362,6 +362,7 @@ export function useGatewayBoot({
|
|||
})
|
||||
|
||||
const sourceProfile = normalizeProfileKey($activeGatewayProfile.get())
|
||||
|
||||
const offEvent = gateway.onEvent(event =>
|
||||
callbacksRef.current.handleGatewayEvent({ ...event, profile: sourceProfile })
|
||||
)
|
||||
|
|
|
|||
|
|
@ -150,9 +150,7 @@ export function useSubmitPrompt(deps: SubmitPromptDeps) {
|
|||
const selectedStoredSessionId = selectedStoredSessionIdRef.current
|
||||
const routedStoredSessionId = getRoutedStoredSessionId()
|
||||
|
||||
const routedRuntimeId = routedStoredSessionId
|
||||
? getRuntimeIdForStoredSession(routedStoredSessionId)
|
||||
: null
|
||||
const routedRuntimeId = routedStoredSessionId ? getRuntimeIdForStoredSession(routedStoredSessionId) : null
|
||||
|
||||
const routedSessionNeedsResume = Boolean(
|
||||
routedStoredSessionId &&
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ describe('profile-scoped approval mode cache', () => {
|
|||
|
||||
it('lets a backend event supersede an optimistic write and its later failure', async () => {
|
||||
const write = deferred<{ value: string }>()
|
||||
|
||||
const pending = setApprovalModeForProfile(
|
||||
vi.fn(() => write.promise),
|
||||
'work',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue