mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-30 01:41:43 +00:00
- run the requested ui-tui lint+format pass and include resulting formatting updates - guard text-measure cache eviction key in hermes-ink so ui-tui type-check stays green
25 lines
805 B
TypeScript
25 lines
805 B
TypeScript
import { useStore } from '@nanostores/react'
|
|
|
|
import { GatewayProvider } from './app/gatewayContext.js'
|
|
import { $uiState } from './app/uiStore.js'
|
|
import { useMainApp } from './app/useMainApp.js'
|
|
import { AppLayout } from './components/appLayout.js'
|
|
import type { GatewayClient } from './gatewayClient.js'
|
|
|
|
export function App({ gw }: { gw: GatewayClient }) {
|
|
const { appActions, appComposer, appProgress, appStatus, appTranscript, gateway } = useMainApp(gw)
|
|
const { mouseTracking } = useStore($uiState)
|
|
|
|
return (
|
|
<GatewayProvider value={gateway}>
|
|
<AppLayout
|
|
actions={appActions}
|
|
composer={appComposer}
|
|
mouseTracking={mouseTracking}
|
|
progress={appProgress}
|
|
status={appStatus}
|
|
transcript={appTranscript}
|
|
/>
|
|
</GatewayProvider>
|
|
)
|
|
}
|