@bitcobblers/wod-wiki-lang 0.1.5 → 0.1.8

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/index.d.cts CHANGED
@@ -1880,6 +1880,58 @@ interface IRuntimeBlockStrategy {
1880
1880
  apply(builder: BlockBuilder, statements: ICodeStatement[], runtime: IRuntimeContext): void;
1881
1881
  }
1882
1882
 
1883
+ /**
1884
+ * A subscription that receives runtime state updates.
1885
+ *
1886
+ * Implementations determine what happens with the data:
1887
+ * - LocalRuntimeSubscription updates the workbench store (local UI)
1888
+ * - ChromecastRuntimeSubscription serializes and sends over RPC transport
1889
+ *
1890
+ * Multiple subscriptions can be active simultaneously. The SubscriptionManager
1891
+ * fans out stack snapshots and output statements to all registered subscriptions.
1892
+ */
1893
+ interface IRuntimeSubscription {
1894
+ /** Unique identifier for add/remove tracking */
1895
+ readonly id: string;
1896
+ /**
1897
+ * Called when a stack mutation occurs (push/pop/clear/initial).
1898
+ * The snapshot contains the full block list, the affected block, and timing.
1899
+ */
1900
+ onStackSnapshot(snapshot: StackSnapshot): void;
1901
+ /**
1902
+ * Called when an output statement is emitted (block unmount, milestone, etc.).
1903
+ */
1904
+ onOutput(output: IOutputStatement): void;
1905
+ /**
1906
+ * Clean up resources held by this subscription (unsubscribe listeners, close channels, etc.).
1907
+ */
1908
+ dispose(): void;
1909
+ }
1910
+
1911
+ /**
1912
+ * Chromecast-specific subscription interface that extends IRuntimeSubscription
1913
+ * with analytics summary functionality.
1914
+ *
1915
+ * Only ChromecastRuntimeSubscription implements this interface — local
1916
+ * subscriptions do not support analytics summary.
1917
+ */
1918
+ interface ICastSubscription extends IRuntimeSubscription {
1919
+ /**
1920
+ * Send analytics summary with projection results to Chromecast review.
1921
+ * Called by browser when workout completes to show focused review.
1922
+ */
1923
+ sendAnalyticsSummary(projections: Array<{
1924
+ name: string;
1925
+ value: number;
1926
+ unit: string;
1927
+ metricType?: string;
1928
+ }>, totalDurationMs: number, completedSegments: number): void;
1929
+ }
1930
+ /**
1931
+ * Type guard to check if a subscription supports Chromecast analytics.
1932
+ */
1933
+ declare function isCastSubscription(s: IRuntimeSubscription): s is ICastSubscription;
1934
+
1883
1935
  /**
1884
1936
  * Action that pushes a compiled block onto the runtime stack.
1885
1937
  * Used by behaviors to add child blocks for execution.
@@ -3005,6 +3057,274 @@ declare const PRODUCTION_STRATEGIES: readonly IRuntimeBlockStrategy[];
3005
3057
  */
3006
3058
  declare function createCompiler(strategies?: IRuntimeBlockStrategy[]): JitCompiler;
3007
3059
 
3060
+ type ExecutionStatus = 'idle' | 'executing' | 'paused' | 'completed' | 'error';
3061
+ type BlockType = 'workout' | 'group' | 'timer' | 'rounds' | 'effort' | 'exercise' | 'custom';
3062
+ type BlockStatus = 'pending' | 'active' | 'running' | 'complete' | 'error';
3063
+ type MemoryType = 'metric' | 'timer-state' | 'loop-state' | 'group-state' | 'handler' | 'span' | 'unknown';
3064
+ type MemoryGrouping = 'owner' | 'type' | 'none';
3065
+ interface MetricValue {
3066
+ value: any;
3067
+ unit?: string;
3068
+ formatted: string;
3069
+ }
3070
+ /**
3071
+ * Benchmarking metrics for runtime operations.
3072
+ */
3073
+ interface BenchmarkMetrics {
3074
+ snapshotCreationTime: number;
3075
+ renderTime: number;
3076
+ memoryUsage?: number;
3077
+ frameRate?: number;
3078
+ }
3079
+ /**
3080
+ * UI-friendly representation of IRuntimeBlock
3081
+ */
3082
+ interface RuntimeStackBlock {
3083
+ key: string;
3084
+ blockType: BlockType;
3085
+ parentKey?: string;
3086
+ children: string[];
3087
+ depth: number;
3088
+ label: string;
3089
+ color: string;
3090
+ icon?: string;
3091
+ isActive: boolean;
3092
+ isComplete: boolean;
3093
+ status: BlockStatus;
3094
+ metric: Record<string, MetricValue>;
3095
+ metrics?: MetricContainer;
3096
+ metricGroups?: MetricContainer[];
3097
+ sourceIds: number[];
3098
+ lineNumber?: number;
3099
+ metadata?: {
3100
+ mountTime?: number;
3101
+ executionTime?: number;
3102
+ iterationCount?: number;
3103
+ };
3104
+ }
3105
+ /**
3106
+ * UI-friendly representation of memory allocation
3107
+ */
3108
+ interface MemoryEntry {
3109
+ id: string;
3110
+ ownerId: string;
3111
+ ownerLabel?: string;
3112
+ type: MemoryType;
3113
+ value: any;
3114
+ valueFormatted: string;
3115
+ label: string;
3116
+ groupLabel?: string;
3117
+ icon?: string;
3118
+ lineNumber?: number;
3119
+ isValid: boolean;
3120
+ isHighlighted: boolean;
3121
+ metadata?: {
3122
+ createdAt?: number;
3123
+ lastModified?: number;
3124
+ accessCount?: number;
3125
+ };
3126
+ references?: string[];
3127
+ referencedBy?: string[];
3128
+ }
3129
+ /**
3130
+ * Immutable snapshot of runtime state for UI rendering
3131
+ */
3132
+ interface ExecutionSnapshot {
3133
+ stack: {
3134
+ blocks: RuntimeStackBlock[];
3135
+ activeIndex: number;
3136
+ depth: number;
3137
+ rootBlockKey?: string;
3138
+ };
3139
+ memory: {
3140
+ entries: MemoryEntry[];
3141
+ groupedByOwner: Map<string, MemoryEntry[]>;
3142
+ groupedByType: Map<string, MemoryEntry[]>;
3143
+ totalEntries: number;
3144
+ };
3145
+ status: ExecutionStatus;
3146
+ metadata: {
3147
+ stepCount: number;
3148
+ elapsedTime: number;
3149
+ lastEvent?: string;
3150
+ lastEventTime?: number;
3151
+ benchmarkMetrics?: BenchmarkMetrics;
3152
+ };
3153
+ timestamp: number;
3154
+ }
3155
+ /**
3156
+ * Converts ScriptRuntime state to ExecutionSnapshot
3157
+ */
3158
+ interface IRuntimeAdapter {
3159
+ createSnapshot(runtime: any): ExecutionSnapshot;
3160
+ extractStackBlocks(runtime: any): RuntimeStackBlock[];
3161
+ extractMemoryEntries(runtime: any): MemoryEntry[];
3162
+ groupMemoryEntries(entries: MemoryEntry[], groupBy: MemoryGrouping): Map<string, MemoryEntry[]>;
3163
+ }
3164
+
3165
+ /**
3166
+ * Adapter that converts ScriptRuntime state to UI-friendly ExecutionSnapshot
3167
+ */
3168
+ declare class RuntimeAdapter implements IRuntimeAdapter {
3169
+ /**
3170
+ * Creates immutable snapshot of runtime state for UI rendering
3171
+ */
3172
+ createSnapshot(runtime: IScriptRuntime): ExecutionSnapshot;
3173
+ /**
3174
+ * Extracts RuntimeStackBlocks from runtime stack
3175
+ */
3176
+ extractStackBlocks(runtime: IScriptRuntime): RuntimeStackBlock[];
3177
+ /**
3178
+ * Extracts metrics from block's source statements for unified visualization
3179
+ */
3180
+ private extractBlockFragments;
3181
+ /**
3182
+ * Extracts MemoryEntries from runtime memory
3183
+ */
3184
+ extractMemoryEntries(runtime: IScriptRuntime): MemoryEntry[];
3185
+ /**
3186
+ * Generates a label for a memory entry from its type
3187
+ */
3188
+ private generateMemoryLabelFromType;
3189
+ /**
3190
+ * Groups memory entries by specified grouping strategy
3191
+ */
3192
+ groupMemoryEntries(entries: MemoryEntry[], groupBy: MemoryGrouping): Map<string, MemoryEntry[]>;
3193
+ private determineExecutionStatus;
3194
+ private mapBlockType;
3195
+ private determineBlockStatus;
3196
+ private findParentKey;
3197
+ private findChildrenKeys;
3198
+ private generateBlockLabel;
3199
+ private getBlockColor;
3200
+ private getBlockIcon;
3201
+ private mapMemoryType;
3202
+ private generateOwnerLabel;
3203
+ private formatValue;
3204
+ private generateMemoryLabel;
3205
+ private generateGroupLabel;
3206
+ private getMemoryIcon;
3207
+ }
3208
+
3209
+ /**
3210
+ * LocalRuntimeSubscription — a no-op subscription that simply receives
3211
+ * stack snapshots and output statements without transforming them.
3212
+ *
3213
+ * This is the "identity" subscription: the SubscriptionManager fans out
3214
+ * runtime events to all subscriptions, and the local one simply consumes
3215
+ * them for any local-side effect (e.g., updating the workbench store).
3216
+ *
3217
+ * An optional callback can be provided for each event type to allow
3218
+ * the consumer to react to state changes.
3219
+ */
3220
+ declare class LocalRuntimeSubscription implements IRuntimeSubscription {
3221
+ readonly id: string;
3222
+ private onStackSnapshotCallback?;
3223
+ private onOutputCallback?;
3224
+ constructor(options?: {
3225
+ id?: string;
3226
+ onStackSnapshot?: (snapshot: StackSnapshot) => void;
3227
+ onOutput?: (output: IOutputStatement) => void;
3228
+ });
3229
+ onStackSnapshot(snapshot: StackSnapshot): void;
3230
+ onOutput(output: IOutputStatement): void;
3231
+ dispose(): void;
3232
+ }
3233
+
3234
+ /**
3235
+ * Provides bidirectional event flow between runtime consumers.
3236
+ *
3237
+ * Implementations determine the transport:
3238
+ * - LocalEventProvider dispatches directly to the local IScriptRuntime
3239
+ * - ChromecastEventProvider sends/receives events over the RPC transport
3240
+ *
3241
+ * This abstracts away whether an event originates locally (button press)
3242
+ * or remotely (Chromecast D-Pad) — the runtime processes both identically.
3243
+ */
3244
+ interface IRuntimeEventProvider {
3245
+ /**
3246
+ * Dispatch an event to be processed by the runtime.
3247
+ * For local: calls runtime.handle(event) directly.
3248
+ * For chromecast: serializes and sends over the RPC channel.
3249
+ */
3250
+ dispatch(event: IEvent): void;
3251
+ /**
3252
+ * Listen for incoming events (from remote sources or the runtime event bus).
3253
+ * Returns an unsubscribe function.
3254
+ */
3255
+ onEvent(handler: (event: IEvent) => void): Unsubscribe;
3256
+ /**
3257
+ * Clean up resources.
3258
+ */
3259
+ dispose(): void;
3260
+ }
3261
+
3262
+ /**
3263
+ * LocalEventProvider — dispatches events directly to the local IScriptRuntime.
3264
+ *
3265
+ * - dispatch(event) → runtime.handle(event), which triggers the event bus
3266
+ * and executes resulting actions in a single turn.
3267
+ * - onEvent(handler) → registers on the runtime event bus to receive
3268
+ * all events (using the 'global' callback registration path).
3269
+ */
3270
+ declare class LocalEventProvider implements IRuntimeEventProvider {
3271
+ private readonly runtime;
3272
+ private static subscriptionCounter;
3273
+ private unsubscribes;
3274
+ private disposed;
3275
+ constructor(runtime: IScriptRuntime);
3276
+ dispatch(event: IEvent): void;
3277
+ onEvent(handler: (event: IEvent) => void): Unsubscribe;
3278
+ dispose(): void;
3279
+ }
3280
+
3281
+ /**
3282
+ * SubscriptionManager — fans out runtime stack and output events to
3283
+ * multiple IRuntimeSubscription instances.
3284
+ *
3285
+ * Lifecycle:
3286
+ * 1. Created when a runtime is initialized (by RuntimeLifecycleProvider)
3287
+ * 2. Always holds a LocalRuntimeSubscription for the browser UI
3288
+ * 3. ChromecastRuntimeSubscription added/removed via cast session lifecycle
3289
+ * 4. Disposed when the runtime is disposed
3290
+ *
3291
+ * The manager subscribes once to the runtime's stack and output APIs,
3292
+ * then iterates over all registered subscriptions for each event.
3293
+ */
3294
+ declare class SubscriptionManager {
3295
+ private readonly runtime;
3296
+ private subscriptions;
3297
+ private stackUnsub;
3298
+ private outputUnsub;
3299
+ private disposed;
3300
+ constructor(runtime: IScriptRuntime);
3301
+ /**
3302
+ * Register a subscription. If a subscription with the same ID already exists,
3303
+ * the old one is disposed and replaced.
3304
+ *
3305
+ * New subscriptions immediately receive the current stack state and any
3306
+ * existing output statements to catch them up.
3307
+ */
3308
+ add(subscription: IRuntimeSubscription): void;
3309
+ /**
3310
+ * Remove and dispose a subscription by ID.
3311
+ * Returns true if the subscription was found and removed.
3312
+ */
3313
+ remove(id: string): boolean;
3314
+ /**
3315
+ * Check if a subscription with the given ID is registered.
3316
+ */
3317
+ has(id: string): boolean;
3318
+ /**
3319
+ * Get the number of active subscriptions.
3320
+ */
3321
+ get count(): number;
3322
+ /**
3323
+ * Dispose all subscriptions and unsubscribe from the runtime.
3324
+ */
3325
+ dispose(): void;
3326
+ }
3327
+
3008
3328
  /**
3009
3329
  * AST for the composed-calculation expression language (spec §2).
3010
3330
  *
@@ -4077,13 +4397,13 @@ declare function toStoredOutputStatement(output: IOutputStatement | OutputStatem
4077
4397
  * Auto-generated build version metadata.
4078
4398
  * Do not edit directly; updated by scripts/stamp-version.ts
4079
4399
  */
4080
- declare const VERSION = "0.1.5";
4081
- declare const GIT_SHA = "8c595e1";
4082
- declare const BUILD_TIME = "2026-08-18T18:07:40.647Z";
4400
+ declare const VERSION = "0.1.8";
4401
+ declare const GIT_SHA = "52af1e3";
4402
+ declare const BUILD_TIME = "2026-08-18T18:19:06.086Z";
4083
4403
  declare const SEMVER: {
4084
- readonly version: "0.1.5";
4085
- readonly gitSha: "8c595e1";
4086
- readonly buildTime: "2026-08-18T18:07:40.647Z";
4404
+ readonly version: "0.1.8";
4405
+ readonly gitSha: "52af1e3";
4406
+ readonly buildTime: "2026-08-18T18:19:06.086Z";
4087
4407
  };
4088
4408
 
4089
- export { AbortSessionAction, type ActionDescriptor, type ActionPrimitive, AnalyticsContext, AnalyticsEngine, type AnalyticsProfileContext, type AnalyticsResult, AnalyticsTransformer, BUILD_TIME, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BlockContext, BlockLifecycleOptions, CONSUMED_HINTS, CONSUMED_HINT_KEYS, type CalculationDefinition$1 as CalcDefinition, CalcEngine, type CalcOrigin, type CalcScope, type CalculationDefinition as CalculateBlockDefinition, type CalculateBlockParseError, type CalculateBlockParseResult, CalculateBlockProcessor, CalculationRegistry, CardioDialect, ClearChildrenAction, ClimbDialect, type ClimbGradeMetricValue, type ClimbGradeSystem, ClimbMetricType, CompileAndPushBlockAction, CompletionDecision, type CreateAnalyticsEngineOptions, type CreateAnalyticsEngineResult, CrossFitDialect, DAY, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, type DayRollup, DialectStack, type Dimension, type DurationPrimitive, EFFORT_DATA_METRIC_TYPE, EffortBlock, type EffortBlockConfig, type EffortPrimitive, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, EmitEventAction, EmitSystemOutputAction, ErrorAction, EventBus, type EventHandlerRegistration, ExecutionContext, type FuzzyCandidate, GIT_SHA, HabitsDialect, type HeadingPrimitive, IAnalyticsEngine, type IAnalyticsProfile, IBlockContext, IEffort, IEffortRegistry, IEffortResolver, IEvent, IEventBus, IJitCompiler, type ILookupTable, IMemoryLocation, IMemoryReference, type IMetricPresentationPolicy, INowProvider, IRealtimeProcessor, IRuntimeAction, IRuntimeBehavior, IRuntimeBlock, type IRuntimeBlockStrategy, IRuntimeClock, type IRuntimeFactory, IRuntimeStack, IScript, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, JitCompiler, type LapPrimitive, type LineLocator, type LogLevel, LookupRegistry, MdTimerRuntime, MemoryTag, MemoryTypeEnum, type MetricObjectPrimitive, type MetricPresentationSurface, type MetricPresentationToken, type MetricRenderKind, type MetricTone, MetricVisibility, type MockClock, NextAction, NextEvent, NextEventHandler, OutputEmitter, PREDEFINED_SOUNDS, PRODUCTION_STRATEGIES, type ParseOptions, PlaySoundAction, PopBlockAction, type PredefinedSoundName, ProjectionResult, type PropertyPrimitive, PushBlockAction, PushRestBlockAction, type QuantityPrimitive, RegisterEventHandlerAction, Registry, ResolvedEffort, type ResolvedEffortData, RestBlock, type RestBlockConfig, type RoundsPrimitive, RuntimeBlock, type RuntimeBlockOptions, RuntimeBuilder, type RuntimeButton, RuntimeClock, type RuntimeController, type RuntimeControls, RuntimeError, RuntimeFactory, type RuntimeLogEntry, RuntimeLogger, RuntimeMemory, type RuntimeMemoryLocation, RuntimeObservers, RuntimeStack, SEMVER, STANDARD_UNITS, STORE_CALCS, ScriptRuntime, type SegmentWithMetadata, SessionRootBlock, type SessionRootConfig, SnapshotClock, type SoundBehaviorConfig, type SoundCue, type SoundCueState, type SoundState, type SourceInput, type SpanList, StackObserver, StackSnapshot, StandardAnalyticsProfile, StartSessionAction, type StartSessionOptions, StartWorkoutAction, type StartWorkoutOptions, type SyntaxFacts, type SyntaxMeta, type SyntaxPrimitive, type SyntaxStatement, type TextPrimitive, ThrowError, ThrowErrorAction, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, type UnitDef$1 as UnitDef, type UnitMatch, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, UpdateNextPreviewAction, VERSION, WaitingToStartBlock, WhiteboardScript, WodDialect, YogaDialect, buildTooltip, bundledEfforts, index as calc, calculateElapsed, classifyStatements, closeCurrentSpan, commonFixtureSet, computeColumnLabel, computeLabel, computeWorkloadRollups, createAnalyticsEngineForBlock, createCalcEngine, createCompiler, createDialectStack, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, evaluate, evaluateCalculateDefinitions, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, findBestFuzzyMatch, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDuration, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, hasHint, hintMetric, hintsToContainer, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, openSpan, parseCalcLine, parseCalculateBlock, parseExpression, parseScript, readTimer, realtimeProcessorRegistry, resolveDominantOrigin, sharedParser, startSpan, strategyRegistry, summaryProcessorRegistry, toStoredOutputStatement, parser as whiteboardParser, whiteboardScript, whiteboardScriptLanguage };
4409
+ export { AbortSessionAction, type ActionDescriptor, type ActionPrimitive, AnalyticsContext, AnalyticsEngine, type AnalyticsProfileContext, type AnalyticsResult, AnalyticsTransformer, BUILD_TIME, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BlockContext, BlockLifecycleOptions, CONSUMED_HINTS, CONSUMED_HINT_KEYS, type CalculationDefinition$1 as CalcDefinition, CalcEngine, type CalcOrigin, type CalcScope, type CalculationDefinition as CalculateBlockDefinition, type CalculateBlockParseError, type CalculateBlockParseResult, CalculateBlockProcessor, CalculationRegistry, CardioDialect, ClearChildrenAction, ClimbDialect, type ClimbGradeMetricValue, type ClimbGradeSystem, ClimbMetricType, CompileAndPushBlockAction, CompletionDecision, type CreateAnalyticsEngineOptions, type CreateAnalyticsEngineResult, CrossFitDialect, DAY, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, type DayRollup, DialectStack, type Dimension, type DurationPrimitive, EFFORT_DATA_METRIC_TYPE, EffortBlock, type EffortBlockConfig, type EffortPrimitive, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, EmitEventAction, EmitSystemOutputAction, ErrorAction, EventBus, type EventHandlerRegistration, ExecutionContext, type ExecutionSnapshot, type FuzzyCandidate, GIT_SHA, HabitsDialect, type HeadingPrimitive, IAnalyticsEngine, type IAnalyticsProfile, IBlockContext, type ICastSubscription, IEffort, IEffortRegistry, IEffortResolver, IEvent, IEventBus, IEventHandler, IJitCompiler, type ILookupTable, IMemoryLocation, IMemoryReference, type IMetricPresentationPolicy, INowProvider, IRealtimeProcessor, IRuntimeAction, IRuntimeBehavior, IRuntimeBlock, type IRuntimeBlockStrategy, IRuntimeClock, type IRuntimeFactory, IRuntimeStack, type IRuntimeSubscription, IScript, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, JitCompiler, type LapPrimitive, type LineLocator, LocalEventProvider, LocalRuntimeSubscription, type LogLevel, LookupRegistry, MdTimerRuntime, type MemoryEntry, MemoryTag, MemoryTypeEnum, type MetricObjectPrimitive, type MetricPresentationSurface, type MetricPresentationToken, type MetricRenderKind, type MetricTone, MetricVisibility, type MockClock, NextAction, NextEvent, NextEventHandler, OutputEmitter, PREDEFINED_SOUNDS, PRODUCTION_STRATEGIES, type ParseOptions, PlaySoundAction, PopBlockAction, type PredefinedSoundName, ProjectionResult, type PropertyPrimitive, PushBlockAction, PushRestBlockAction, type QuantityPrimitive, RegisterEventHandlerAction, Registry, ResolvedEffort, type ResolvedEffortData, RestBlock, type RestBlockConfig, type RoundsPrimitive, RuntimeAdapter, RuntimeBlock, type RuntimeBlockOptions, RuntimeBuilder, type RuntimeButton, RuntimeClock, type RuntimeController, type RuntimeControls, RuntimeError, RuntimeFactory, type RuntimeLogEntry, RuntimeLogger, RuntimeMemory, type RuntimeMemoryLocation, RuntimeObservers, RuntimeStack, SEMVER, STANDARD_UNITS, STORE_CALCS, ScriptRuntime, type SegmentWithMetadata, SessionRootBlock, type SessionRootConfig, SnapshotClock, type SoundBehaviorConfig, type SoundCue, type SoundCueState, type SoundState, type SourceInput, type SpanList, StackObserver, StackSnapshot, StandardAnalyticsProfile, StartSessionAction, type StartSessionOptions, StartWorkoutAction, type StartWorkoutOptions, SubscriptionManager, type SyntaxFacts, type SyntaxMeta, type SyntaxPrimitive, type SyntaxStatement, type TextPrimitive, ThrowError, ThrowErrorAction, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, type UnitDef$1 as UnitDef, type UnitMatch, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, UpdateNextPreviewAction, VERSION, WaitingToStartBlock, WhiteboardScript, WodDialect, YogaDialect, buildTooltip, bundledEfforts, index as calc, calculateElapsed, classifyStatements, closeCurrentSpan, commonFixtureSet, computeColumnLabel, computeLabel, computeWorkloadRollups, createAnalyticsEngineForBlock, createCalcEngine, createCompiler, createDialectStack, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, evaluate, evaluateCalculateDefinitions, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, findBestFuzzyMatch, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDuration, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, hasHint, hintMetric, hintsToContainer, isCastSubscription, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, openSpan, parseCalcLine, parseCalculateBlock, parseExpression, parseScript, readTimer, realtimeProcessorRegistry, resolveDominantOrigin, sharedParser, startSpan, strategyRegistry, summaryProcessorRegistry, toStoredOutputStatement, parser as whiteboardParser, whiteboardScript, whiteboardScriptLanguage };