@tscircuit/eval 0.0.632 → 0.0.633

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.
@@ -1,6 +1,6 @@
1
1
  import { AnyCircuitElement } from 'circuit-json';
2
2
  import { RootCircuitEventName as RootCircuitEventName$1, RootCircuit } from '@tscircuit/core';
3
- import { PlatformConfig, PartsEngine } from '@tscircuit/props';
3
+ import { PlatformConfig } from '@tscircuit/props';
4
4
 
5
5
  type RootCircuitEventName = RootCircuitEventName$1 | "debug:logOutput";
6
6
  interface CircuitRunnerConfiguration {
@@ -5298,50 +5298,6 @@ declare const createCircuitWebWorker: (configuration: Partial<WebWorkerConfigura
5298
5298
 
5299
5299
  declare const getPossibleEntrypointComponentPaths: (fsMap: Record<string, string>) => string[];
5300
5300
 
5301
- /**
5302
- * Interface for a filesystem cache engine that can persist cache to disk.
5303
- * When running locally via CLI, this can be implemented to save to .tscircuit/
5304
- */
5305
- interface FilesystemCacheEngine {
5306
- get: (key: string) => Promise<string | null> | string | null;
5307
- set: (key: string, value: string) => Promise<void> | void;
5308
- }
5309
- interface PartsEngineCacheKey {
5310
- type: string;
5311
- ftype: string;
5312
- resistance?: number;
5313
- capacitance?: number;
5314
- inductance?: number;
5315
- frequency?: number;
5316
- load_capacitance?: number;
5317
- voltage?: number;
5318
- max_resistance?: number;
5319
- pin_count?: number;
5320
- gender?: string;
5321
- transistor_type?: string;
5322
- mosfet_mode?: string;
5323
- channel_type?: string;
5324
- }
5325
- /**
5326
- * Wraps a PartsEngine with filesystem caching support.
5327
- * When a cache engine is provided, it will:
5328
- * 1. Check the cache first before calling findPart
5329
- * 2. Store results in the cache after fetching
5330
- *
5331
- * @param baseEngine - The underlying parts engine to wrap
5332
- * @param cacheEngine - Optional filesystem cache engine for persistence
5333
- * @returns A wrapped PartsEngine with caching support
5334
- */
5335
- declare function partsEngineWithFilesystemCache(baseEngine: PartsEngine, cacheEngine?: FilesystemCacheEngine): PartsEngine;
5336
-
5337
- interface GetPlatformConfigOptions {
5338
- /**
5339
- * Optional filesystem cache engine for persisting parts engine requests.
5340
- * When provided, parts engine responses will be cached to the filesystem.
5341
- * The CLI can provide this to cache to .tscircuit/cache/
5342
- */
5343
- filesystemCache?: FilesystemCacheEngine;
5344
- }
5345
- declare const getPlatformConfig: (options?: GetPlatformConfigOptions) => PlatformConfig;
5301
+ declare const getPlatformConfig: (overrides?: Partial<PlatformConfig>) => PlatformConfig;
5346
5302
 
5347
- export { CircuitRunner, type CircuitWebWorker, type FilesystemCacheEngine, type GetPlatformConfigOptions, type PartsEngineCacheKey, STATIC_ASSET_EXTENSIONS, type WebWorkerConfiguration, createCircuitWebWorker, getImportsFromCode, getPlatformConfig, getPossibleEntrypointComponentPaths, isStaticAssetPath, partsEngineWithFilesystemCache, runTscircuitCode, runTscircuitModule };
5303
+ export { CircuitRunner, type CircuitWebWorker, STATIC_ASSET_EXTENSIONS, type WebWorkerConfiguration, createCircuitWebWorker, getImportsFromCode, getPlatformConfig, getPossibleEntrypointComponentPaths, isStaticAssetPath, runTscircuitCode, runTscircuitModule };