chore: fmt
This commit is contained in:
@@ -169,7 +169,6 @@ export function createGatewayEventHandler(ctx: GatewayEventHandlerContext): (ev:
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
case 'session.info': {
|
||||
const info = ev.payload
|
||||
|
||||
|
||||
@@ -383,7 +383,10 @@ export function useMainApp(gw: GatewayClient) {
|
||||
}
|
||||
|
||||
const next = composerActions.dequeue()
|
||||
if (next) sendQueued(next)
|
||||
|
||||
if (next) {
|
||||
sendQueued(next)
|
||||
}
|
||||
}, [ui.sid, ui.busy, composerActions, composerRefs, sendQueued])
|
||||
|
||||
const { pagerPageSize } = useInputHandlers({
|
||||
|
||||
@@ -114,11 +114,17 @@ export function useSessionLifecycle(opts: UseSessionLifecycleOptions) {
|
||||
usage: usageFrom(info)
|
||||
})
|
||||
|
||||
if (info) setHistoryItems([introMsg(info)])
|
||||
if (info) {
|
||||
setHistoryItems([introMsg(info)])
|
||||
}
|
||||
|
||||
if (info?.credential_warning) sys(`warning: ${info.credential_warning}`)
|
||||
if (info?.credential_warning) {
|
||||
sys(`warning: ${info.credential_warning}`)
|
||||
}
|
||||
|
||||
if (msg) sys(msg)
|
||||
if (msg) {
|
||||
sys(msg)
|
||||
}
|
||||
},
|
||||
[closeSession, colsRef, resetSession, rpc, setHistoryItems, setSessionStartedAt, sys]
|
||||
)
|
||||
|
||||
@@ -20,8 +20,7 @@ const TAGLINE = `${DIM}⚕ Nous Research · Messenger of the Digital Gods${RESET
|
||||
const FALLBACK = `\x1b[1m${GOLD}⚕ NOUS HERMES${RESET}`
|
||||
|
||||
export function bootBanner(cols: number = process.stdout.columns || 80): string {
|
||||
const body =
|
||||
cols >= LOGO_WIDTH ? LOGO.map((text, i) => `${GRADIENT[i]}${text}${RESET}`).join('\n') : FALLBACK
|
||||
const body = cols >= LOGO_WIDTH ? LOGO.map((text, i) => `${GRADIENT[i]}${text}${RESET}`).join('\n') : FALLBACK
|
||||
|
||||
return `\n${body}\n${TAGLINE}\n\n`
|
||||
}
|
||||
|
||||
@@ -32,7 +32,9 @@ const StreamingAssistant = memo(function StreamingAssistant({
|
||||
progress: AppLayoutProgressProps
|
||||
t: Theme
|
||||
}) {
|
||||
if (!progress.showProgressArea && !progress.showStreamingArea) return null
|
||||
if (!progress.showProgressArea && !progress.showStreamingArea) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<Box flexDirection="column">
|
||||
@@ -117,7 +119,6 @@ const TranscriptPane = memo(function TranscriptPane({
|
||||
progress={progress}
|
||||
t={ui.theme}
|
||||
/>
|
||||
|
||||
</Box>
|
||||
</ScrollBox>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user