New mnemazine-llm.mjs: llmJson(prompt,schema,{provider,tools}). MNEMAZINE_LLM=claude(default)|codex. Claude via headless 'claude -p --output-format json' (JSON instructed in-prompt, no --dangerously-skip-permissions; tools opt-in). Codex backend unchanged at parity. codex.mjs is now a back-compat shim. synthesize/verify route through llm; verify selftest exercises codex stub via the shared contract.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
528 B
JavaScript
14 lines
528 B
JavaScript
#!/usr/bin/env node
|
|
// Back-compat shim. The engine is now provider-abstracted in mnemazine-llm.mjs
|
|
// (Claude primary, Codex parity). This file keeps the old codex-named exports
|
|
// working; it always targets the codex provider.
|
|
import { llmJson, llmAvailable, fenceUntrusted } from './mnemazine-llm.mjs'
|
|
|
|
export { fenceUntrusted }
|
|
export function codexAvailable() {
|
|
return llmAvailable('codex')
|
|
}
|
|
export async function codexJson(prompt, schema, opts = {}) {
|
|
return llmJson(prompt, schema, { ...opts, provider: 'codex' })
|
|
}
|