@boundaryml/baml
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -22,3 +22,12 @@ "use strict"; | ||
get() { | ||
return this.ctx.getStore(); | ||
let store = this.ctx.getStore(); | ||
if (store === undefined) { | ||
console.log('Creating new context manager'); | ||
store = this.rt.createContextManager(); | ||
this.ctx.enterWith(store); | ||
} | ||
else { | ||
console.log('Reusing existing context manager'); | ||
} | ||
return store; | ||
} | ||
@@ -25,0 +34,0 @@ startTraceSync(name, args) { |
{ | ||
"name": "@boundaryml/baml", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "BAML typescript bindings (package.json)", | ||
@@ -79,9 +79,9 @@ "repository": { | ||
"optionalDependencies": { | ||
"@boundaryml/baml-darwin-arm64": "0.0.13", | ||
"@boundaryml/baml-win32-arm64-msvc": "0.0.13", | ||
"@boundaryml/baml-linux-arm64-gnu": "0.0.13", | ||
"@boundaryml/baml-darwin-x64": "0.0.13", | ||
"@boundaryml/baml-win32-x64-msvc": "0.0.13", | ||
"@boundaryml/baml-linux-x64-gnu": "0.0.13" | ||
"@boundaryml/baml-darwin-arm64": "0.0.14", | ||
"@boundaryml/baml-win32-arm64-msvc": "0.0.14", | ||
"@boundaryml/baml-linux-arm64-gnu": "0.0.14", | ||
"@boundaryml/baml-darwin-x64": "0.0.14", | ||
"@boundaryml/baml-win32-x64-msvc": "0.0.14", | ||
"@boundaryml/baml-linux-x64-gnu": "0.0.14" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FunctionResultPy, FunctionResultStreamPy, RuntimeContextManagerPy } from '../native'; | ||
import { FunctionResultPy, FunctionResultStreamPy, RuntimeContextManagerPy } from './native'; | ||
export declare class BamlStream<PartialOutputType, FinalOutputType> { | ||
@@ -3,0 +3,0 @@ private ffiStream; |
20358
559