eae7195ba8
* feat: add CLI chat sessions with Python agent bridge Introduce a new CLI chat mode that connects Web UI directly to Hermes Agent's AIAgent via a Python bridge subprocess and Socket.IO, bypassing the API Server /v1/responses path. Supports streaming, slash commands (/new, /undo, /retry, /branch, /compress, /save, /title), interrupt, and steer. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * feat: update CLI chat session bridge * fix: extend agent bridge startup timeouts * docs: update bridge chat session design * feat: align bridge compression and provider registry * chore: bump version to 0.5.20 --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
26 lines
906 B
TypeScript
26 lines
906 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import {
|
|
PROVIDER_PRESETS as SERVER_PROVIDER_PRESETS,
|
|
buildProviderModelMap as buildServerProviderModelMap,
|
|
} from '../../packages/server/src/shared/providers'
|
|
|
|
const OPENAI_CODEX_PROVIDER = 'openai-codex'
|
|
const GPT_5_5_MODEL = 'gpt-5.5'
|
|
|
|
function modelsForProvider(providerPresets: Array<{ value: string; models: string[] }>, provider: string): string[] {
|
|
const preset = providerPresets.find((candidate) => candidate.value === provider)
|
|
expect(preset).toBeDefined()
|
|
return preset?.models ?? []
|
|
}
|
|
|
|
describe('provider presets', () => {
|
|
it('lists GPT-5.5 for OpenAI Codex', () => {
|
|
expect(modelsForProvider(SERVER_PROVIDER_PRESETS, OPENAI_CODEX_PROVIDER)).toContain(GPT_5_5_MODEL)
|
|
})
|
|
|
|
it('exposes GPT-5.5 through provider model maps', () => {
|
|
expect(buildServerProviderModelMap()[OPENAI_CODEX_PROVIDER]).toContain(GPT_5_5_MODEL)
|
|
})
|
|
})
|