mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
38 lines • 1.92 kB
JavaScript
/**
* Runtime execution abstraction for multi-language support.
*
* Provides a pluggable runtime system that allows CLMs to execute
* in different language environments (JavaScript, Python, Rust, C, etc.)
*
* =============================================================================
* REFACTORED MODULE - All implementations now in mcard-js/src/ptr/node/runtimes
* =============================================================================
*
* This file now serves as a backward-compatible re-export layer.
* All runtime implementations have been moved to modular files:
*
* mcard-js/src/ptr/node/runtimes/
* ├── index.ts # Module exports
* ├── base.ts # Runtime interface, types, utilities
* ├── javascript.ts # JavaScriptRuntime
* ├── python.ts # PythonRuntime
* ├── binary.ts # BinaryRuntime
* ├── wasm.ts # WasmRuntime
* ├── lean.ts # LeanRuntime
* ├── loader.ts # LoaderRuntime, CollectionLoaderRuntime
* └── factory.ts # RuntimeFactory
*
* Direct imports from this module are supported for backward compatibility:
* import { JavaScriptRuntime, RuntimeFactory } from './Runtimes.js';
*
* Recommended usage for new code:
* import { JavaScriptRuntime, RuntimeFactory } from './runtimes/index.js';
*/
// Utilities
export { checkCommand, execFile, parseOutput, } from './runtimes/index.js';
// Runtimes
export { JavaScriptRuntime, PythonRuntime, BinaryRuntime, WasmRuntime, LeanRuntime, LoaderRuntime, CollectionLoaderRuntime, RuntimeFactory, } from './runtimes/index.js';
// Note: LLMRuntime, LambdaRuntime, and NetworkRuntime are imported directly
// from their respective modules when needed, not from this file.
// Use RuntimeFactory.getRuntime() for these.
//# sourceMappingURL=Runtimes.js.map