mirror of
https://github.com/ruvnet/RuView
synced 2026-07-23 17:33:20 +00:00
4b1005524e
- Add 154 missing vendor files (gitignore was filtering them) - vendor/midstream: 564 files (was 561) - vendor/sublinear-time-solver: 1190 files (was 1039) - Add ESP32 edge processing (ADR-039): presence, vitals, fall detection - Add WASM programmable sensing (ADR-040/041) with wasm3 runtime - Add firmware CI workflow (.github/workflows/firmware-ci.yml) - Add wifi-densepose-wasm-edge crate for edge WASM modules - Update sensing server, provision.py, UI components Co-Authored-By: claude-flow <ruv@ruv.net>
52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
/**
|
|
* WASM Module Loader
|
|
* Loads and initializes WebAssembly modules for high-performance computing
|
|
*/
|
|
export interface WasmModule {
|
|
instance: any;
|
|
exports: any;
|
|
memory?: any;
|
|
}
|
|
export declare class WasmLoader {
|
|
private static modules;
|
|
private static initialized;
|
|
/**
|
|
* Initialize all WASM modules
|
|
*/
|
|
static initialize(): Promise<void>;
|
|
/**
|
|
* Load a specific WASM module
|
|
*/
|
|
static loadModule(name: string, filename: string): Promise<WasmModule>;
|
|
/**
|
|
* Get a loaded WASM module
|
|
*/
|
|
static getModule(name: string): WasmModule | undefined;
|
|
/**
|
|
* Check if a module is available
|
|
*/
|
|
static hasModule(name: string): boolean;
|
|
/**
|
|
* Get all loaded module names
|
|
*/
|
|
static getLoadedModules(): string[];
|
|
/**
|
|
* Get memory usage statistics
|
|
*/
|
|
static getMemoryStats(): {
|
|
[key: string]: number;
|
|
};
|
|
/**
|
|
* Check if WASM is available and return feature flags
|
|
*/
|
|
static getFeatureFlags(): {
|
|
hasWasm: boolean;
|
|
hasGraphReasoner: boolean;
|
|
hasPlanner: boolean;
|
|
hasExtractors: boolean;
|
|
hasTemporalNeural: boolean;
|
|
hasStrangeLoop: boolean;
|
|
hasNanoConsciousness: boolean;
|
|
};
|
|
}
|