LamplighterPaul/jev-piano on GitHub
- Stars
- 4
- Forks
- 1
- Language
- TypeScript
- License
- MIT
- Last push
- 24 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
const KEYS = collectKeys()
const MODEL = process.env.TYPESAFE_MODEL ?? 'jev-latest'
const ENDPOINT = process.env.TYPESAFE_ENDPOINT ?? 'https://api.typesafe.ai/v1/systemone'
let turn = 0
export const live = () => KEYS.length > 0
export const keyCount = () => KEYS.length
export async function ask(state: unknown, questions: Questions): Promise<Run> {
return KEYS.length ? jev(state, questions) : mock(questions)
}
// One pass round robin through every key, then up to two backed-off retries on
// top, so a fully rate-limited pool fails in bounded time instead of doubling


