baro-ai 0.36.1 → 0.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -9878,9 +9878,13 @@ function extractVerdictJson(text) {
9878
9878
  }
9879
9879
 
9880
9880
  // ../baro-orchestrator/src/planning/openai-runtime.ts
9881
- var runtime = new OpenAIResponses();
9881
+ var _runtime = null;
9882
+ function getRuntime() {
9883
+ if (_runtime === null) _runtime = new OpenAIResponses();
9884
+ return _runtime;
9885
+ }
9882
9886
  async function runInferenceRound(context, model) {
9883
- const response = await runtime.infer(new InferenceRequest(model, context));
9887
+ const response = await getRuntime().infer(new InferenceRequest(model, context));
9884
9888
  return {
9885
9889
  items: response.contextItems,
9886
9890
  usage: response.tokenUsage