mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-27 06:11:40 +00:00
feat: fork ink and make it work nicely
This commit is contained in:
parent
cb79018977
commit
8760faf991
139 changed files with 24952 additions and 140 deletions
15
ui-tui/packages/hermes-ink/src/ink/warn.ts
Normal file
15
ui-tui/packages/hermes-ink/src/ink/warn.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { logForDebugging } from '../utils/debug.js'
|
||||
|
||||
export function ifNotInteger(value: number | undefined, name: string): void {
|
||||
if (value === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
if (Number.isInteger(value)) {
|
||||
return
|
||||
}
|
||||
|
||||
logForDebugging(`${name} should be an integer, got ${value}`, {
|
||||
level: 'warn'
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue