@bitcobblers/wod-wiki-lang 0.1.8 → 0.2.18
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/{chunk-F2TOS4AF.mjs → chunk-PFQDVQQO.mjs} +3 -9
- package/dist/chunk-PFQDVQQO.mjs.map +1 -0
- package/dist/index.cjs +51 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -96
- package/dist/index.d.ts +95 -96
- package/dist/index.mjs +9 -68
- package/dist/index.mjs.map +1 -1
- package/dist/react.mjs +2 -2
- package/package.json +2 -2
- package/dist/chunk-F2TOS4AF.mjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -2639,6 +2639,94 @@ declare class RuntimeBuilder {
|
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
|
+
/**
|
|
2643
|
+
* ChoiceGroupMetric — a pipe-separated OR expression preserved for pre-run resolution.
|
|
2644
|
+
*
|
|
2645
|
+
* Emitted by Fusion (`fuseUnits`) when a slash/pipe separates two or more homogeneous
|
|
2646
|
+
* alternatives of the **same** MetricType (e.g. `185/125 lb` → two Resistance options;
|
|
2647
|
+
* `Run | Walk` → two Effort options). Separator between *different* MetricTypes is
|
|
2648
|
+
* silently dropped — no ChoiceGroupMetric is emitted.
|
|
2649
|
+
*
|
|
2650
|
+
* ## Lifecycle
|
|
2651
|
+
* 1. `fuseUnits` emits one ChoiceGroupMetric per homogeneous slash/pipe group, at origin `parser`.
|
|
2652
|
+
* 2. The Pre-Run Wizard finds it via `useCollectionMetrics` (scans for `MetricType.Choice`).
|
|
2653
|
+
* 3. The first alternative is pre-selected; the user may change it.
|
|
2654
|
+
* 4. On "Start Workout", the selected alternative replaces this Choice group in
|
|
2655
|
+
* the same Statement's MetricContainer at origin `user-plan`.
|
|
2656
|
+
* 5. The runtime/compiler must not consume `MetricType.Choice`; any non-wizard
|
|
2657
|
+
* entry point defaults unresolved choices before runtime creation.
|
|
2658
|
+
*/
|
|
2659
|
+
declare class ChoiceGroupMetric implements IMetric {
|
|
2660
|
+
readonly alternatives: IMetric[];
|
|
2661
|
+
readonly type = MetricType.Choice;
|
|
2662
|
+
readonly origin: MetricOrigin;
|
|
2663
|
+
readonly value: {
|
|
2664
|
+
alternatives: IMetric[];
|
|
2665
|
+
};
|
|
2666
|
+
readonly image: string;
|
|
2667
|
+
constructor(alternatives: IMetric[]);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* ChoiceResolution — the single owner of "collapse a Choice Group into a Statement".
|
|
2672
|
+
*
|
|
2673
|
+
* A `ChoiceGroupMetric` (`MetricType.Choice`) is a slash-separated OR expression
|
|
2674
|
+
* emitted by Fusion. The runtime never understands a Choice; it must be collapsed
|
|
2675
|
+
* into a concrete alternative **before the JIT compiles the first WOD block**.
|
|
2676
|
+
*
|
|
2677
|
+
* Collapsing means replacing the `ChoiceGroupMetric` with the selected concrete
|
|
2678
|
+
* alternative at origin `user-plan`. After collapse, the statement no longer
|
|
2679
|
+
* contains `MetricType.Choice`; the runtime/compiler must only ever see the
|
|
2680
|
+
* concrete selected metric.
|
|
2681
|
+
*
|
|
2682
|
+
* Two seams use this module:
|
|
2683
|
+
* - The Pre-Run Wizard, when the user picks an alternative ({@link writeChoiceSelection}).
|
|
2684
|
+
* - {@link RuntimeFactory.createRuntime}, as the enforced safety net that defaults
|
|
2685
|
+
* any still-unresolved Choice before the runtime spins up ({@link collapseUnresolvedChoices}).
|
|
2686
|
+
*
|
|
2687
|
+
* This replaces the previously duplicated, inlined resolution logic that lived in
|
|
2688
|
+
* both `track-panel.tsx` and `RuntimeTimerPanel.tsx`.
|
|
2689
|
+
*/
|
|
2690
|
+
/** A located, still-unresolved Choice Group awaiting a selection. */
|
|
2691
|
+
interface ChoiceGroupRef {
|
|
2692
|
+
/** Index into the statements array. */
|
|
2693
|
+
statementIndex: number;
|
|
2694
|
+
/** The owning statement's id. */
|
|
2695
|
+
statementId: number | string;
|
|
2696
|
+
/** The Choice Group metric carrying the alternatives. */
|
|
2697
|
+
choice: ChoiceGroupMetric;
|
|
2698
|
+
}
|
|
2699
|
+
/**
|
|
2700
|
+
* Whether a Choice Group has already been structurally collapsed out of its
|
|
2701
|
+
* statement. A present `ChoiceGroupMetric` is still unresolved, even if older
|
|
2702
|
+
* code also wrote a same-type `user-plan` metric beside it.
|
|
2703
|
+
*/
|
|
2704
|
+
declare function isChoiceResolved(stmt: ICodeStatement, choice: ChoiceGroupMetric): boolean;
|
|
2705
|
+
/** Find every Choice Group across the statements that has not yet been collapsed. */
|
|
2706
|
+
declare function findUnresolvedChoices(statements: readonly ICodeStatement[]): ChoiceGroupRef[];
|
|
2707
|
+
/**
|
|
2708
|
+
* Collapse a Choice Group into a Statement by removing that group and writing
|
|
2709
|
+
* the selected alternative at origin `user-plan`. Idempotent: any prior
|
|
2710
|
+
* user-plan metric of the chosen type is removed first, so re-selecting
|
|
2711
|
+
* (default → user pick → different pick) never accumulates duplicates.
|
|
2712
|
+
*
|
|
2713
|
+
* @param stmt the statement owning the Choice Group
|
|
2714
|
+
* @param alternatives the Choice Group's alternatives
|
|
2715
|
+
* @param selectedIndex index of the chosen alternative (out-of-range falls back to 0)
|
|
2716
|
+
*/
|
|
2717
|
+
declare function writeChoiceSelection(stmt: ICodeStatement, alternatives: readonly IMetric[], selectedIndex: number): void;
|
|
2718
|
+
/**
|
|
2719
|
+
* Safety net: collapse every still-unresolved Choice Group to its **first**
|
|
2720
|
+
* alternative (the documented pre-selected default). Run inside the runtime
|
|
2721
|
+
* factory before the first WOD block compiles, so a `MetricType.Choice` can never
|
|
2722
|
+
* reach a compiled Block. Selections already written by the wizard (a user-plan
|
|
2723
|
+
* metric of the chosen alternative type) are preserved while the stale Choice
|
|
2724
|
+
* group is removed.
|
|
2725
|
+
*
|
|
2726
|
+
* @returns the number of Choice Groups that were collapsed.
|
|
2727
|
+
*/
|
|
2728
|
+
declare function collapseUnresolvedChoices(statements: readonly ICodeStatement[]): number;
|
|
2729
|
+
|
|
2642
2730
|
type EventHandlerRegistration = {
|
|
2643
2731
|
handler: IEventHandler;
|
|
2644
2732
|
ownerId: string;
|
|
@@ -4256,95 +4344,6 @@ interface CalcAnalysis {
|
|
|
4256
4344
|
}
|
|
4257
4345
|
declare function buildStaticLookups(): LookupRegistry;
|
|
4258
4346
|
|
|
4259
|
-
declare const index_ABSENT: typeof ABSENT;
|
|
4260
|
-
declare const index_AGGREGATE_BUILTINS: typeof AGGREGATE_BUILTINS;
|
|
4261
|
-
declare const index_AUTHORITATIVE_CASTS: typeof AUTHORITATIVE_CASTS;
|
|
4262
|
-
declare const index_BUILTIN_CALCS: typeof BUILTIN_CALCS;
|
|
4263
|
-
type index_BinaryOp = BinaryOp;
|
|
4264
|
-
declare const index_CONTEXT_ATOMS: typeof CONTEXT_ATOMS;
|
|
4265
|
-
type index_CalcAnalysis = CalcAnalysis;
|
|
4266
|
-
type index_CalcDiagnostic = CalcDiagnostic;
|
|
4267
|
-
type index_CalcEngine = CalcEngine;
|
|
4268
|
-
declare const index_CalcEngine: typeof CalcEngine;
|
|
4269
|
-
type index_CalcEngineDeps = CalcEngineDeps;
|
|
4270
|
-
type index_CalcEvalError = CalcEvalError;
|
|
4271
|
-
declare const index_CalcEvalError: typeof CalcEvalError;
|
|
4272
|
-
type index_CalcLine = CalcLine;
|
|
4273
|
-
type index_CalcNode = CalcNode;
|
|
4274
|
-
type index_CalcOrigin = CalcOrigin;
|
|
4275
|
-
type index_CalcParseError = CalcParseError;
|
|
4276
|
-
declare const index_CalcParseError: typeof CalcParseError;
|
|
4277
|
-
type index_CalcRegistrationError = CalcRegistrationError;
|
|
4278
|
-
declare const index_CalcRegistrationError: typeof CalcRegistrationError;
|
|
4279
|
-
type index_CalcScope = CalcScope;
|
|
4280
|
-
type index_CalcStack = CalcStack;
|
|
4281
|
-
type index_CalcStackOptions = CalcStackOptions;
|
|
4282
|
-
type index_CalcUnitError = CalcUnitError;
|
|
4283
|
-
declare const index_CalcUnitError: typeof CalcUnitError;
|
|
4284
|
-
type index_CalcVariant = CalcVariant;
|
|
4285
|
-
type index_CalculationRegistry = CalculationRegistry;
|
|
4286
|
-
declare const index_CalculationRegistry: typeof CalculationRegistry;
|
|
4287
|
-
type index_CompiledLineForm = CompiledLineForm;
|
|
4288
|
-
declare const index_DIM_COUNT: typeof DIM_COUNT;
|
|
4289
|
-
declare const index_DIM_ENERGY: typeof DIM_ENERGY;
|
|
4290
|
-
declare const index_DIM_LENGTH: typeof DIM_LENGTH;
|
|
4291
|
-
declare const index_DIM_MASS: typeof DIM_MASS;
|
|
4292
|
-
declare const index_DIM_TIME: typeof DIM_TIME;
|
|
4293
|
-
declare const index_DIM_ZERO: typeof DIM_ZERO;
|
|
4294
|
-
type index_DimVector = DimVector;
|
|
4295
|
-
type index_EvalContext = EvalContext;
|
|
4296
|
-
type index_ExprNode = ExprNode;
|
|
4297
|
-
type index_ILookupTable = ILookupTable;
|
|
4298
|
-
type index_IProfileSource = IProfileSource;
|
|
4299
|
-
type index_LineFormScope = LineFormScope;
|
|
4300
|
-
type index_LookupFieldDef = LookupFieldDef;
|
|
4301
|
-
type index_LookupLayer = LookupLayer;
|
|
4302
|
-
type index_LookupRegistry = LookupRegistry;
|
|
4303
|
-
declare const index_LookupRegistry: typeof LookupRegistry;
|
|
4304
|
-
declare const index_NAMED_COMPOUNDS: typeof NAMED_COMPOUNDS;
|
|
4305
|
-
declare const index_REST_EXCLUSION: typeof REST_EXCLUSION;
|
|
4306
|
-
declare const index_RPE_LABELS: typeof RPE_LABELS;
|
|
4307
|
-
declare const index_STORE_CALCS: typeof STORE_CALCS;
|
|
4308
|
-
declare const index_STREAM_ATOMS: typeof STREAM_ATOMS;
|
|
4309
|
-
type index_StaticEnv = StaticEnv;
|
|
4310
|
-
type index_StreamAtomDef = StreamAtomDef;
|
|
4311
|
-
declare const index_UNITS: typeof UNITS;
|
|
4312
|
-
type index_UnitDef = UnitDef;
|
|
4313
|
-
type index_Val = Val;
|
|
4314
|
-
declare const index_addDim: typeof addDim;
|
|
4315
|
-
declare const index_buildStaticLookups: typeof buildStaticLookups;
|
|
4316
|
-
declare const index_checkCalcLine: typeof checkCalcLine;
|
|
4317
|
-
declare const index_compileLineForm: typeof compileLineForm;
|
|
4318
|
-
declare const index_composeDivUnit: typeof composeDivUnit;
|
|
4319
|
-
declare const index_composeMulUnit: typeof composeMulUnit;
|
|
4320
|
-
declare const index_compoundName: typeof compoundName;
|
|
4321
|
-
declare const index_convertScalar: typeof convertScalar;
|
|
4322
|
-
declare const index_createCalcEngine: typeof createCalcEngine;
|
|
4323
|
-
declare const index_createCalcStack: typeof createCalcStack;
|
|
4324
|
-
declare const index_createDisciplinesTable: typeof createDisciplinesTable;
|
|
4325
|
-
declare const index_createEffortTable: typeof createEffortTable;
|
|
4326
|
-
declare const index_createProfileTable: typeof createProfileTable;
|
|
4327
|
-
declare const index_createRpeLabelsTable: typeof createRpeLabelsTable;
|
|
4328
|
-
declare const index_dimEquals: typeof dimEquals;
|
|
4329
|
-
declare const index_evaluate: typeof evaluate;
|
|
4330
|
-
declare const index_formatDim: typeof formatDim;
|
|
4331
|
-
declare const index_getUnit: typeof getUnit;
|
|
4332
|
-
declare const index_inferDim: typeof inferDim;
|
|
4333
|
-
declare const index_isDimensionless: typeof isDimensionless;
|
|
4334
|
-
declare const index_num: typeof num;
|
|
4335
|
-
declare const index_outputNodeId: typeof outputNodeId;
|
|
4336
|
-
declare const index_outputNodeIds: typeof outputNodeIds;
|
|
4337
|
-
declare const index_parseCalcLine: typeof parseCalcLine;
|
|
4338
|
-
declare const index_parseExpression: typeof parseExpression;
|
|
4339
|
-
declare const index_printCalculation: typeof printCalculation;
|
|
4340
|
-
declare const index_str: typeof str;
|
|
4341
|
-
declare const index_subDim: typeof subDim;
|
|
4342
|
-
declare const index_truthy: typeof truthy;
|
|
4343
|
-
declare const index_validateOutputUnit: typeof validateOutputUnit;
|
|
4344
|
-
declare namespace index {
|
|
4345
|
-
export { index_ABSENT as ABSENT, index_AGGREGATE_BUILTINS as AGGREGATE_BUILTINS, index_AUTHORITATIVE_CASTS as AUTHORITATIVE_CASTS, index_BUILTIN_CALCS as BUILTIN_CALCS, type index_BinaryOp as BinaryOp, index_CONTEXT_ATOMS as CONTEXT_ATOMS, type index_CalcAnalysis as CalcAnalysis, type index_CalcDiagnostic as CalcDiagnostic, index_CalcEngine as CalcEngine, type index_CalcEngineDeps as CalcEngineDeps, index_CalcEvalError as CalcEvalError, type index_CalcLine as CalcLine, type index_CalcNode as CalcNode, type index_CalcOrigin as CalcOrigin, index_CalcParseError as CalcParseError, index_CalcRegistrationError as CalcRegistrationError, type index_CalcScope as CalcScope, type index_CalcStack as CalcStack, type index_CalcStackOptions as CalcStackOptions, index_CalcUnitError as CalcUnitError, type index_CalcVariant as CalcVariant, type CalculationDefinition$1 as CalculationDefinition, index_CalculationRegistry as CalculationRegistry, type index_CompiledLineForm as CompiledLineForm, index_DIM_COUNT as DIM_COUNT, index_DIM_ENERGY as DIM_ENERGY, index_DIM_LENGTH as DIM_LENGTH, index_DIM_MASS as DIM_MASS, index_DIM_TIME as DIM_TIME, index_DIM_ZERO as DIM_ZERO, type index_DimVector as DimVector, type index_EvalContext as EvalContext, type index_ExprNode as ExprNode, type index_ILookupTable as ILookupTable, type index_IProfileSource as IProfileSource, type index_LineFormScope as LineFormScope, type index_LookupFieldDef as LookupFieldDef, type index_LookupLayer as LookupLayer, index_LookupRegistry as LookupRegistry, index_NAMED_COMPOUNDS as NAMED_COMPOUNDS, index_REST_EXCLUSION as REST_EXCLUSION, index_RPE_LABELS as RPE_LABELS, index_STORE_CALCS as STORE_CALCS, index_STREAM_ATOMS as STREAM_ATOMS, type index_StaticEnv as StaticEnv, type index_StreamAtomDef as StreamAtomDef, index_UNITS as UNITS, type index_UnitDef as UnitDef, type index_Val as Val, index_addDim as addDim, index_buildStaticLookups as buildStaticLookups, index_checkCalcLine as checkCalcLine, index_compileLineForm as compileLineForm, index_composeDivUnit as composeDivUnit, index_composeMulUnit as composeMulUnit, index_compoundName as compoundName, index_convertScalar as convertScalar, index_createCalcEngine as createCalcEngine, index_createCalcStack as createCalcStack, index_createDisciplinesTable as createDisciplinesTable, index_createEffortTable as createEffortTable, index_createProfileTable as createProfileTable, index_createRpeLabelsTable as createRpeLabelsTable, index_dimEquals as dimEquals, index_evaluate as evaluate, index_formatDim as formatDim, index_getUnit as getUnit, index_inferDim as inferDim, index_isDimensionless as isDimensionless, index_num as num, index_outputNodeId as outputNodeId, index_outputNodeIds as outputNodeIds, index_parseCalcLine as parseCalcLine, index_parseExpression as parseExpression, index_printCalculation as printCalculation, index_str as str, index_subDim as subDim, index_truthy as truthy, index_validateOutputUnit as validateOutputUnit };
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
4347
|
/**
|
|
4349
4348
|
* workloadRollup — pure workload-window math behind Rollup Facts
|
|
4350
4349
|
* (CONTEXT.md §Analytics). Foster sRPE periodization over daily SessionLoad:
|
|
@@ -4397,13 +4396,13 @@ declare function toStoredOutputStatement(output: IOutputStatement | OutputStatem
|
|
|
4397
4396
|
* Auto-generated build version metadata.
|
|
4398
4397
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
4399
4398
|
*/
|
|
4400
|
-
declare const VERSION = "0.
|
|
4401
|
-
declare const GIT_SHA = "
|
|
4402
|
-
declare const BUILD_TIME = "2026-08-18T18:
|
|
4399
|
+
declare const VERSION = "0.2.18";
|
|
4400
|
+
declare const GIT_SHA = "c8d6c87";
|
|
4401
|
+
declare const BUILD_TIME = "2026-08-18T18:39:33.177Z";
|
|
4403
4402
|
declare const SEMVER: {
|
|
4404
|
-
readonly version: "0.
|
|
4405
|
-
readonly gitSha: "
|
|
4406
|
-
readonly buildTime: "2026-08-18T18:
|
|
4403
|
+
readonly version: "0.2.18";
|
|
4404
|
+
readonly gitSha: "c8d6c87";
|
|
4405
|
+
readonly buildTime: "2026-08-18T18:39:33.177Z";
|
|
4407
4406
|
};
|
|
4408
4407
|
|
|
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,
|
|
4408
|
+
export { ABSENT, AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AbortSessionAction, type ActionDescriptor, type ActionPrimitive, AnalyticsContext, AnalyticsEngine, type AnalyticsProfileContext, type AnalyticsResult, AnalyticsTransformer, BUILD_TIME, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, type BinaryOp, BlockContext, BlockLifecycleOptions, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, type CalcAnalysis, type CalculationDefinition$1 as CalcDefinition, type CalcDiagnostic, CalcEngine, type CalcEngineDeps, CalcEvalError, type CalcLine, type CalcNode, type CalcOrigin, CalcParseError, CalcRegistrationError, type CalcScope, type CalcStack, type CalcStackOptions, type UnitDef as CalcUnitDef, CalcUnitError, type CalcVariant, type CalculationDefinition as CalculateBlockDefinition, type CalculateBlockParseError, type CalculateBlockParseResult, CalculateBlockProcessor, type CalculationDefinition$1 as CalculationDefinition, CalculationRegistry, CardioDialect, ClearChildrenAction, ClimbDialect, type ClimbGradeMetricValue, type ClimbGradeSystem, ClimbMetricType, CompileAndPushBlockAction, type CompiledLineForm, CompletionDecision, type CreateAnalyticsEngineOptions, type CreateAnalyticsEngineResult, CrossFitDialect, DAY, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_COUNT, DIM_ENERGY, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, type DayRollup, DialectStack, type DimVector, type Dimension, type DurationPrimitive, EFFORT_DATA_METRIC_TYPE, EffortBlock, type EffortBlockConfig, type EffortPrimitive, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, EmitEventAction, EmitSystemOutputAction, ErrorAction, type EvalContext, EventBus, type EventHandlerRegistration, ExecutionContext, type ExecutionSnapshot, type ExprNode, 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, type IProfileSource, IRealtimeProcessor, IRuntimeAction, IRuntimeBehavior, IRuntimeBlock, type IRuntimeBlockStrategy, IRuntimeClock, type IRuntimeFactory, IRuntimeStack, type IRuntimeSubscription, IScript, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, JitCompiler, type LapPrimitive, type LineFormScope, type LineLocator, LocalEventProvider, LocalRuntimeSubscription, type LogLevel, type LookupFieldDef, type LookupLayer, LookupRegistry, MdTimerRuntime, type MemoryEntry, MemoryTag, MemoryTypeEnum, type MetricObjectPrimitive, type MetricPresentationSurface, type MetricPresentationToken, type MetricRenderKind, type MetricTone, MetricVisibility, type MockClock, NAMED_COMPOUNDS, NextAction, NextEvent, NextEventHandler, OutputEmitter, PREDEFINED_SOUNDS, PRODUCTION_STRATEGIES, type ParseOptions, PlaySoundAction, PopBlockAction, type PredefinedSoundName, ProjectionResult, type PropertyPrimitive, PushBlockAction, PushRestBlockAction, type QuantityPrimitive, REST_EXCLUSION, RPE_LABELS, 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, STREAM_ATOMS, 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 StaticEnv, type StreamAtomDef, SubscriptionManager, type SyntaxFacts, type SyntaxMeta, type SyntaxPrimitive, type SyntaxStatement, type TextPrimitive, ThrowError, ThrowErrorAction, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, type UnitDef$1 as UnitDef, type UnitMatch, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, UpdateNextPreviewAction, VERSION, type Val, WaitingToStartBlock, WhiteboardScript, WodDialect, YogaDialect, addDim, buildStaticLookups, buildTooltip, bundledEfforts, calculateElapsed, checkCalcLine, classifyStatements, closeCurrentSpan, collapseUnresolvedChoices, commonFixtureSet, compileLineForm, composeDivUnit, composeMulUnit, compoundName, computeColumnLabel, computeLabel, computeWorkloadRollups, convertScalar, createAnalyticsEngineForBlock, createCalcEngine, createCalcStack, createCompiler, createDialectStack, createDisciplinesTable, createEffortTable, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, createProfileTable, createRpeLabelsTable, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, dimEquals, evaluate, evaluateCalculateDefinitions, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, findBestFuzzyMatch, findUnresolvedChoices, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDim, formatDuration, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getUnit, hasHint, hintMetric, hintsToContainer, inferDim, isCastSubscription, isChoiceResolved, isDimensionless, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, num, openSpan, outputNodeId, outputNodeIds, parseCalcLine, parseCalculateBlock, parseExpression, parseScript, printCalculation, readTimer, realtimeProcessorRegistry, resolveDominantOrigin, sharedParser, startSpan, str, strategyRegistry, subDim, summaryProcessorRegistry, toStoredOutputStatement, truthy, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection };
|
package/dist/index.d.ts
CHANGED
|
@@ -2639,6 +2639,94 @@ declare class RuntimeBuilder {
|
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
|
+
/**
|
|
2643
|
+
* ChoiceGroupMetric — a pipe-separated OR expression preserved for pre-run resolution.
|
|
2644
|
+
*
|
|
2645
|
+
* Emitted by Fusion (`fuseUnits`) when a slash/pipe separates two or more homogeneous
|
|
2646
|
+
* alternatives of the **same** MetricType (e.g. `185/125 lb` → two Resistance options;
|
|
2647
|
+
* `Run | Walk` → two Effort options). Separator between *different* MetricTypes is
|
|
2648
|
+
* silently dropped — no ChoiceGroupMetric is emitted.
|
|
2649
|
+
*
|
|
2650
|
+
* ## Lifecycle
|
|
2651
|
+
* 1. `fuseUnits` emits one ChoiceGroupMetric per homogeneous slash/pipe group, at origin `parser`.
|
|
2652
|
+
* 2. The Pre-Run Wizard finds it via `useCollectionMetrics` (scans for `MetricType.Choice`).
|
|
2653
|
+
* 3. The first alternative is pre-selected; the user may change it.
|
|
2654
|
+
* 4. On "Start Workout", the selected alternative replaces this Choice group in
|
|
2655
|
+
* the same Statement's MetricContainer at origin `user-plan`.
|
|
2656
|
+
* 5. The runtime/compiler must not consume `MetricType.Choice`; any non-wizard
|
|
2657
|
+
* entry point defaults unresolved choices before runtime creation.
|
|
2658
|
+
*/
|
|
2659
|
+
declare class ChoiceGroupMetric implements IMetric {
|
|
2660
|
+
readonly alternatives: IMetric[];
|
|
2661
|
+
readonly type = MetricType.Choice;
|
|
2662
|
+
readonly origin: MetricOrigin;
|
|
2663
|
+
readonly value: {
|
|
2664
|
+
alternatives: IMetric[];
|
|
2665
|
+
};
|
|
2666
|
+
readonly image: string;
|
|
2667
|
+
constructor(alternatives: IMetric[]);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* ChoiceResolution — the single owner of "collapse a Choice Group into a Statement".
|
|
2672
|
+
*
|
|
2673
|
+
* A `ChoiceGroupMetric` (`MetricType.Choice`) is a slash-separated OR expression
|
|
2674
|
+
* emitted by Fusion. The runtime never understands a Choice; it must be collapsed
|
|
2675
|
+
* into a concrete alternative **before the JIT compiles the first WOD block**.
|
|
2676
|
+
*
|
|
2677
|
+
* Collapsing means replacing the `ChoiceGroupMetric` with the selected concrete
|
|
2678
|
+
* alternative at origin `user-plan`. After collapse, the statement no longer
|
|
2679
|
+
* contains `MetricType.Choice`; the runtime/compiler must only ever see the
|
|
2680
|
+
* concrete selected metric.
|
|
2681
|
+
*
|
|
2682
|
+
* Two seams use this module:
|
|
2683
|
+
* - The Pre-Run Wizard, when the user picks an alternative ({@link writeChoiceSelection}).
|
|
2684
|
+
* - {@link RuntimeFactory.createRuntime}, as the enforced safety net that defaults
|
|
2685
|
+
* any still-unresolved Choice before the runtime spins up ({@link collapseUnresolvedChoices}).
|
|
2686
|
+
*
|
|
2687
|
+
* This replaces the previously duplicated, inlined resolution logic that lived in
|
|
2688
|
+
* both `track-panel.tsx` and `RuntimeTimerPanel.tsx`.
|
|
2689
|
+
*/
|
|
2690
|
+
/** A located, still-unresolved Choice Group awaiting a selection. */
|
|
2691
|
+
interface ChoiceGroupRef {
|
|
2692
|
+
/** Index into the statements array. */
|
|
2693
|
+
statementIndex: number;
|
|
2694
|
+
/** The owning statement's id. */
|
|
2695
|
+
statementId: number | string;
|
|
2696
|
+
/** The Choice Group metric carrying the alternatives. */
|
|
2697
|
+
choice: ChoiceGroupMetric;
|
|
2698
|
+
}
|
|
2699
|
+
/**
|
|
2700
|
+
* Whether a Choice Group has already been structurally collapsed out of its
|
|
2701
|
+
* statement. A present `ChoiceGroupMetric` is still unresolved, even if older
|
|
2702
|
+
* code also wrote a same-type `user-plan` metric beside it.
|
|
2703
|
+
*/
|
|
2704
|
+
declare function isChoiceResolved(stmt: ICodeStatement, choice: ChoiceGroupMetric): boolean;
|
|
2705
|
+
/** Find every Choice Group across the statements that has not yet been collapsed. */
|
|
2706
|
+
declare function findUnresolvedChoices(statements: readonly ICodeStatement[]): ChoiceGroupRef[];
|
|
2707
|
+
/**
|
|
2708
|
+
* Collapse a Choice Group into a Statement by removing that group and writing
|
|
2709
|
+
* the selected alternative at origin `user-plan`. Idempotent: any prior
|
|
2710
|
+
* user-plan metric of the chosen type is removed first, so re-selecting
|
|
2711
|
+
* (default → user pick → different pick) never accumulates duplicates.
|
|
2712
|
+
*
|
|
2713
|
+
* @param stmt the statement owning the Choice Group
|
|
2714
|
+
* @param alternatives the Choice Group's alternatives
|
|
2715
|
+
* @param selectedIndex index of the chosen alternative (out-of-range falls back to 0)
|
|
2716
|
+
*/
|
|
2717
|
+
declare function writeChoiceSelection(stmt: ICodeStatement, alternatives: readonly IMetric[], selectedIndex: number): void;
|
|
2718
|
+
/**
|
|
2719
|
+
* Safety net: collapse every still-unresolved Choice Group to its **first**
|
|
2720
|
+
* alternative (the documented pre-selected default). Run inside the runtime
|
|
2721
|
+
* factory before the first WOD block compiles, so a `MetricType.Choice` can never
|
|
2722
|
+
* reach a compiled Block. Selections already written by the wizard (a user-plan
|
|
2723
|
+
* metric of the chosen alternative type) are preserved while the stale Choice
|
|
2724
|
+
* group is removed.
|
|
2725
|
+
*
|
|
2726
|
+
* @returns the number of Choice Groups that were collapsed.
|
|
2727
|
+
*/
|
|
2728
|
+
declare function collapseUnresolvedChoices(statements: readonly ICodeStatement[]): number;
|
|
2729
|
+
|
|
2642
2730
|
type EventHandlerRegistration = {
|
|
2643
2731
|
handler: IEventHandler;
|
|
2644
2732
|
ownerId: string;
|
|
@@ -4256,95 +4344,6 @@ interface CalcAnalysis {
|
|
|
4256
4344
|
}
|
|
4257
4345
|
declare function buildStaticLookups(): LookupRegistry;
|
|
4258
4346
|
|
|
4259
|
-
declare const index_ABSENT: typeof ABSENT;
|
|
4260
|
-
declare const index_AGGREGATE_BUILTINS: typeof AGGREGATE_BUILTINS;
|
|
4261
|
-
declare const index_AUTHORITATIVE_CASTS: typeof AUTHORITATIVE_CASTS;
|
|
4262
|
-
declare const index_BUILTIN_CALCS: typeof BUILTIN_CALCS;
|
|
4263
|
-
type index_BinaryOp = BinaryOp;
|
|
4264
|
-
declare const index_CONTEXT_ATOMS: typeof CONTEXT_ATOMS;
|
|
4265
|
-
type index_CalcAnalysis = CalcAnalysis;
|
|
4266
|
-
type index_CalcDiagnostic = CalcDiagnostic;
|
|
4267
|
-
type index_CalcEngine = CalcEngine;
|
|
4268
|
-
declare const index_CalcEngine: typeof CalcEngine;
|
|
4269
|
-
type index_CalcEngineDeps = CalcEngineDeps;
|
|
4270
|
-
type index_CalcEvalError = CalcEvalError;
|
|
4271
|
-
declare const index_CalcEvalError: typeof CalcEvalError;
|
|
4272
|
-
type index_CalcLine = CalcLine;
|
|
4273
|
-
type index_CalcNode = CalcNode;
|
|
4274
|
-
type index_CalcOrigin = CalcOrigin;
|
|
4275
|
-
type index_CalcParseError = CalcParseError;
|
|
4276
|
-
declare const index_CalcParseError: typeof CalcParseError;
|
|
4277
|
-
type index_CalcRegistrationError = CalcRegistrationError;
|
|
4278
|
-
declare const index_CalcRegistrationError: typeof CalcRegistrationError;
|
|
4279
|
-
type index_CalcScope = CalcScope;
|
|
4280
|
-
type index_CalcStack = CalcStack;
|
|
4281
|
-
type index_CalcStackOptions = CalcStackOptions;
|
|
4282
|
-
type index_CalcUnitError = CalcUnitError;
|
|
4283
|
-
declare const index_CalcUnitError: typeof CalcUnitError;
|
|
4284
|
-
type index_CalcVariant = CalcVariant;
|
|
4285
|
-
type index_CalculationRegistry = CalculationRegistry;
|
|
4286
|
-
declare const index_CalculationRegistry: typeof CalculationRegistry;
|
|
4287
|
-
type index_CompiledLineForm = CompiledLineForm;
|
|
4288
|
-
declare const index_DIM_COUNT: typeof DIM_COUNT;
|
|
4289
|
-
declare const index_DIM_ENERGY: typeof DIM_ENERGY;
|
|
4290
|
-
declare const index_DIM_LENGTH: typeof DIM_LENGTH;
|
|
4291
|
-
declare const index_DIM_MASS: typeof DIM_MASS;
|
|
4292
|
-
declare const index_DIM_TIME: typeof DIM_TIME;
|
|
4293
|
-
declare const index_DIM_ZERO: typeof DIM_ZERO;
|
|
4294
|
-
type index_DimVector = DimVector;
|
|
4295
|
-
type index_EvalContext = EvalContext;
|
|
4296
|
-
type index_ExprNode = ExprNode;
|
|
4297
|
-
type index_ILookupTable = ILookupTable;
|
|
4298
|
-
type index_IProfileSource = IProfileSource;
|
|
4299
|
-
type index_LineFormScope = LineFormScope;
|
|
4300
|
-
type index_LookupFieldDef = LookupFieldDef;
|
|
4301
|
-
type index_LookupLayer = LookupLayer;
|
|
4302
|
-
type index_LookupRegistry = LookupRegistry;
|
|
4303
|
-
declare const index_LookupRegistry: typeof LookupRegistry;
|
|
4304
|
-
declare const index_NAMED_COMPOUNDS: typeof NAMED_COMPOUNDS;
|
|
4305
|
-
declare const index_REST_EXCLUSION: typeof REST_EXCLUSION;
|
|
4306
|
-
declare const index_RPE_LABELS: typeof RPE_LABELS;
|
|
4307
|
-
declare const index_STORE_CALCS: typeof STORE_CALCS;
|
|
4308
|
-
declare const index_STREAM_ATOMS: typeof STREAM_ATOMS;
|
|
4309
|
-
type index_StaticEnv = StaticEnv;
|
|
4310
|
-
type index_StreamAtomDef = StreamAtomDef;
|
|
4311
|
-
declare const index_UNITS: typeof UNITS;
|
|
4312
|
-
type index_UnitDef = UnitDef;
|
|
4313
|
-
type index_Val = Val;
|
|
4314
|
-
declare const index_addDim: typeof addDim;
|
|
4315
|
-
declare const index_buildStaticLookups: typeof buildStaticLookups;
|
|
4316
|
-
declare const index_checkCalcLine: typeof checkCalcLine;
|
|
4317
|
-
declare const index_compileLineForm: typeof compileLineForm;
|
|
4318
|
-
declare const index_composeDivUnit: typeof composeDivUnit;
|
|
4319
|
-
declare const index_composeMulUnit: typeof composeMulUnit;
|
|
4320
|
-
declare const index_compoundName: typeof compoundName;
|
|
4321
|
-
declare const index_convertScalar: typeof convertScalar;
|
|
4322
|
-
declare const index_createCalcEngine: typeof createCalcEngine;
|
|
4323
|
-
declare const index_createCalcStack: typeof createCalcStack;
|
|
4324
|
-
declare const index_createDisciplinesTable: typeof createDisciplinesTable;
|
|
4325
|
-
declare const index_createEffortTable: typeof createEffortTable;
|
|
4326
|
-
declare const index_createProfileTable: typeof createProfileTable;
|
|
4327
|
-
declare const index_createRpeLabelsTable: typeof createRpeLabelsTable;
|
|
4328
|
-
declare const index_dimEquals: typeof dimEquals;
|
|
4329
|
-
declare const index_evaluate: typeof evaluate;
|
|
4330
|
-
declare const index_formatDim: typeof formatDim;
|
|
4331
|
-
declare const index_getUnit: typeof getUnit;
|
|
4332
|
-
declare const index_inferDim: typeof inferDim;
|
|
4333
|
-
declare const index_isDimensionless: typeof isDimensionless;
|
|
4334
|
-
declare const index_num: typeof num;
|
|
4335
|
-
declare const index_outputNodeId: typeof outputNodeId;
|
|
4336
|
-
declare const index_outputNodeIds: typeof outputNodeIds;
|
|
4337
|
-
declare const index_parseCalcLine: typeof parseCalcLine;
|
|
4338
|
-
declare const index_parseExpression: typeof parseExpression;
|
|
4339
|
-
declare const index_printCalculation: typeof printCalculation;
|
|
4340
|
-
declare const index_str: typeof str;
|
|
4341
|
-
declare const index_subDim: typeof subDim;
|
|
4342
|
-
declare const index_truthy: typeof truthy;
|
|
4343
|
-
declare const index_validateOutputUnit: typeof validateOutputUnit;
|
|
4344
|
-
declare namespace index {
|
|
4345
|
-
export { index_ABSENT as ABSENT, index_AGGREGATE_BUILTINS as AGGREGATE_BUILTINS, index_AUTHORITATIVE_CASTS as AUTHORITATIVE_CASTS, index_BUILTIN_CALCS as BUILTIN_CALCS, type index_BinaryOp as BinaryOp, index_CONTEXT_ATOMS as CONTEXT_ATOMS, type index_CalcAnalysis as CalcAnalysis, type index_CalcDiagnostic as CalcDiagnostic, index_CalcEngine as CalcEngine, type index_CalcEngineDeps as CalcEngineDeps, index_CalcEvalError as CalcEvalError, type index_CalcLine as CalcLine, type index_CalcNode as CalcNode, type index_CalcOrigin as CalcOrigin, index_CalcParseError as CalcParseError, index_CalcRegistrationError as CalcRegistrationError, type index_CalcScope as CalcScope, type index_CalcStack as CalcStack, type index_CalcStackOptions as CalcStackOptions, index_CalcUnitError as CalcUnitError, type index_CalcVariant as CalcVariant, type CalculationDefinition$1 as CalculationDefinition, index_CalculationRegistry as CalculationRegistry, type index_CompiledLineForm as CompiledLineForm, index_DIM_COUNT as DIM_COUNT, index_DIM_ENERGY as DIM_ENERGY, index_DIM_LENGTH as DIM_LENGTH, index_DIM_MASS as DIM_MASS, index_DIM_TIME as DIM_TIME, index_DIM_ZERO as DIM_ZERO, type index_DimVector as DimVector, type index_EvalContext as EvalContext, type index_ExprNode as ExprNode, type index_ILookupTable as ILookupTable, type index_IProfileSource as IProfileSource, type index_LineFormScope as LineFormScope, type index_LookupFieldDef as LookupFieldDef, type index_LookupLayer as LookupLayer, index_LookupRegistry as LookupRegistry, index_NAMED_COMPOUNDS as NAMED_COMPOUNDS, index_REST_EXCLUSION as REST_EXCLUSION, index_RPE_LABELS as RPE_LABELS, index_STORE_CALCS as STORE_CALCS, index_STREAM_ATOMS as STREAM_ATOMS, type index_StaticEnv as StaticEnv, type index_StreamAtomDef as StreamAtomDef, index_UNITS as UNITS, type index_UnitDef as UnitDef, type index_Val as Val, index_addDim as addDim, index_buildStaticLookups as buildStaticLookups, index_checkCalcLine as checkCalcLine, index_compileLineForm as compileLineForm, index_composeDivUnit as composeDivUnit, index_composeMulUnit as composeMulUnit, index_compoundName as compoundName, index_convertScalar as convertScalar, index_createCalcEngine as createCalcEngine, index_createCalcStack as createCalcStack, index_createDisciplinesTable as createDisciplinesTable, index_createEffortTable as createEffortTable, index_createProfileTable as createProfileTable, index_createRpeLabelsTable as createRpeLabelsTable, index_dimEquals as dimEquals, index_evaluate as evaluate, index_formatDim as formatDim, index_getUnit as getUnit, index_inferDim as inferDim, index_isDimensionless as isDimensionless, index_num as num, index_outputNodeId as outputNodeId, index_outputNodeIds as outputNodeIds, index_parseCalcLine as parseCalcLine, index_parseExpression as parseExpression, index_printCalculation as printCalculation, index_str as str, index_subDim as subDim, index_truthy as truthy, index_validateOutputUnit as validateOutputUnit };
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
4347
|
/**
|
|
4349
4348
|
* workloadRollup — pure workload-window math behind Rollup Facts
|
|
4350
4349
|
* (CONTEXT.md §Analytics). Foster sRPE periodization over daily SessionLoad:
|
|
@@ -4397,13 +4396,13 @@ declare function toStoredOutputStatement(output: IOutputStatement | OutputStatem
|
|
|
4397
4396
|
* Auto-generated build version metadata.
|
|
4398
4397
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
4399
4398
|
*/
|
|
4400
|
-
declare const VERSION = "0.
|
|
4401
|
-
declare const GIT_SHA = "
|
|
4402
|
-
declare const BUILD_TIME = "2026-08-18T18:
|
|
4399
|
+
declare const VERSION = "0.2.18";
|
|
4400
|
+
declare const GIT_SHA = "c8d6c87";
|
|
4401
|
+
declare const BUILD_TIME = "2026-08-18T18:39:33.177Z";
|
|
4403
4402
|
declare const SEMVER: {
|
|
4404
|
-
readonly version: "0.
|
|
4405
|
-
readonly gitSha: "
|
|
4406
|
-
readonly buildTime: "2026-08-18T18:
|
|
4403
|
+
readonly version: "0.2.18";
|
|
4404
|
+
readonly gitSha: "c8d6c87";
|
|
4405
|
+
readonly buildTime: "2026-08-18T18:39:33.177Z";
|
|
4407
4406
|
};
|
|
4408
4407
|
|
|
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,
|
|
4408
|
+
export { ABSENT, AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AbortSessionAction, type ActionDescriptor, type ActionPrimitive, AnalyticsContext, AnalyticsEngine, type AnalyticsProfileContext, type AnalyticsResult, AnalyticsTransformer, BUILD_TIME, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, type BinaryOp, BlockContext, BlockLifecycleOptions, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, type CalcAnalysis, type CalculationDefinition$1 as CalcDefinition, type CalcDiagnostic, CalcEngine, type CalcEngineDeps, CalcEvalError, type CalcLine, type CalcNode, type CalcOrigin, CalcParseError, CalcRegistrationError, type CalcScope, type CalcStack, type CalcStackOptions, type UnitDef as CalcUnitDef, CalcUnitError, type CalcVariant, type CalculationDefinition as CalculateBlockDefinition, type CalculateBlockParseError, type CalculateBlockParseResult, CalculateBlockProcessor, type CalculationDefinition$1 as CalculationDefinition, CalculationRegistry, CardioDialect, ClearChildrenAction, ClimbDialect, type ClimbGradeMetricValue, type ClimbGradeSystem, ClimbMetricType, CompileAndPushBlockAction, type CompiledLineForm, CompletionDecision, type CreateAnalyticsEngineOptions, type CreateAnalyticsEngineResult, CrossFitDialect, DAY, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_COUNT, DIM_ENERGY, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, type DayRollup, DialectStack, type DimVector, type Dimension, type DurationPrimitive, EFFORT_DATA_METRIC_TYPE, EffortBlock, type EffortBlockConfig, type EffortPrimitive, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, EmitEventAction, EmitSystemOutputAction, ErrorAction, type EvalContext, EventBus, type EventHandlerRegistration, ExecutionContext, type ExecutionSnapshot, type ExprNode, 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, type IProfileSource, IRealtimeProcessor, IRuntimeAction, IRuntimeBehavior, IRuntimeBlock, type IRuntimeBlockStrategy, IRuntimeClock, type IRuntimeFactory, IRuntimeStack, type IRuntimeSubscription, IScript, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, JitCompiler, type LapPrimitive, type LineFormScope, type LineLocator, LocalEventProvider, LocalRuntimeSubscription, type LogLevel, type LookupFieldDef, type LookupLayer, LookupRegistry, MdTimerRuntime, type MemoryEntry, MemoryTag, MemoryTypeEnum, type MetricObjectPrimitive, type MetricPresentationSurface, type MetricPresentationToken, type MetricRenderKind, type MetricTone, MetricVisibility, type MockClock, NAMED_COMPOUNDS, NextAction, NextEvent, NextEventHandler, OutputEmitter, PREDEFINED_SOUNDS, PRODUCTION_STRATEGIES, type ParseOptions, PlaySoundAction, PopBlockAction, type PredefinedSoundName, ProjectionResult, type PropertyPrimitive, PushBlockAction, PushRestBlockAction, type QuantityPrimitive, REST_EXCLUSION, RPE_LABELS, 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, STREAM_ATOMS, 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 StaticEnv, type StreamAtomDef, SubscriptionManager, type SyntaxFacts, type SyntaxMeta, type SyntaxPrimitive, type SyntaxStatement, type TextPrimitive, ThrowError, ThrowErrorAction, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, type UnitDef$1 as UnitDef, type UnitMatch, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, UpdateNextPreviewAction, VERSION, type Val, WaitingToStartBlock, WhiteboardScript, WodDialect, YogaDialect, addDim, buildStaticLookups, buildTooltip, bundledEfforts, calculateElapsed, checkCalcLine, classifyStatements, closeCurrentSpan, collapseUnresolvedChoices, commonFixtureSet, compileLineForm, composeDivUnit, composeMulUnit, compoundName, computeColumnLabel, computeLabel, computeWorkloadRollups, convertScalar, createAnalyticsEngineForBlock, createCalcEngine, createCalcStack, createCompiler, createDialectStack, createDisciplinesTable, createEffortTable, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, createProfileTable, createRpeLabelsTable, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, dimEquals, evaluate, evaluateCalculateDefinitions, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, findBestFuzzyMatch, findUnresolvedChoices, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDim, formatDuration, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getUnit, hasHint, hintMetric, hintsToContainer, inferDim, isCastSubscription, isChoiceResolved, isDimensionless, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, num, openSpan, outputNodeId, outputNodeIds, parseCalcLine, parseCalculateBlock, parseExpression, parseScript, printCalculation, readTimer, realtimeProcessorRegistry, resolveDominantOrigin, sharedParser, startSpan, str, strategyRegistry, subDim, summaryProcessorRegistry, toStoredOutputStatement, truthy, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { createBrowserRuntimeNow, frozenNow, getRuntimeNowMs, wallClockNow } from './chunk-
|
|
1
|
+
import { wallClockNow, formatDurationSmart } from './chunk-PFQDVQQO.mjs';
|
|
2
|
+
export { createBrowserRuntimeNow, frozenNow, getRuntimeNowMs, wallClockNow } from './chunk-PFQDVQQO.mjs';
|
|
3
3
|
import { MetricType, MetricContainer, BlockKey, ParsedCodeStatement, OutputStatement } from '@bitcobblers/wod-wiki-core';
|
|
4
4
|
import { LRParser } from '@lezer/lr';
|
|
5
5
|
import { LRLanguage, LanguageSupport } from '@codemirror/language';
|
|
@@ -12710,65 +12710,6 @@ function normalizeName(value) {
|
|
|
12710
12710
|
return value.trim().toLowerCase();
|
|
12711
12711
|
}
|
|
12712
12712
|
|
|
12713
|
-
// src/analytics/calc/index.ts
|
|
12714
|
-
var calc_exports = {};
|
|
12715
|
-
__export(calc_exports, {
|
|
12716
|
-
ABSENT: () => ABSENT,
|
|
12717
|
-
AGGREGATE_BUILTINS: () => AGGREGATE_BUILTINS,
|
|
12718
|
-
AUTHORITATIVE_CASTS: () => AUTHORITATIVE_CASTS,
|
|
12719
|
-
BUILTIN_CALCS: () => BUILTIN_CALCS,
|
|
12720
|
-
CONTEXT_ATOMS: () => CONTEXT_ATOMS,
|
|
12721
|
-
CalcEngine: () => CalcEngine,
|
|
12722
|
-
CalcEvalError: () => CalcEvalError,
|
|
12723
|
-
CalcParseError: () => CalcParseError,
|
|
12724
|
-
CalcRegistrationError: () => CalcRegistrationError,
|
|
12725
|
-
CalcUnitError: () => CalcUnitError,
|
|
12726
|
-
CalculationRegistry: () => CalculationRegistry,
|
|
12727
|
-
DIM_COUNT: () => DIM_COUNT,
|
|
12728
|
-
DIM_ENERGY: () => DIM_ENERGY,
|
|
12729
|
-
DIM_LENGTH: () => DIM_LENGTH,
|
|
12730
|
-
DIM_MASS: () => DIM_MASS,
|
|
12731
|
-
DIM_TIME: () => DIM_TIME,
|
|
12732
|
-
DIM_ZERO: () => DIM_ZERO,
|
|
12733
|
-
LookupRegistry: () => LookupRegistry,
|
|
12734
|
-
NAMED_COMPOUNDS: () => NAMED_COMPOUNDS,
|
|
12735
|
-
REST_EXCLUSION: () => REST_EXCLUSION,
|
|
12736
|
-
RPE_LABELS: () => RPE_LABELS,
|
|
12737
|
-
STORE_CALCS: () => STORE_CALCS,
|
|
12738
|
-
STREAM_ATOMS: () => STREAM_ATOMS,
|
|
12739
|
-
UNITS: () => UNITS,
|
|
12740
|
-
addDim: () => addDim,
|
|
12741
|
-
buildStaticLookups: () => buildStaticLookups,
|
|
12742
|
-
checkCalcLine: () => checkCalcLine,
|
|
12743
|
-
compileLineForm: () => compileLineForm,
|
|
12744
|
-
composeDivUnit: () => composeDivUnit,
|
|
12745
|
-
composeMulUnit: () => composeMulUnit,
|
|
12746
|
-
compoundName: () => compoundName,
|
|
12747
|
-
convertScalar: () => convertScalar,
|
|
12748
|
-
createCalcEngine: () => createCalcEngine,
|
|
12749
|
-
createCalcStack: () => createCalcStack,
|
|
12750
|
-
createDisciplinesTable: () => createDisciplinesTable,
|
|
12751
|
-
createEffortTable: () => createEffortTable,
|
|
12752
|
-
createProfileTable: () => createProfileTable,
|
|
12753
|
-
createRpeLabelsTable: () => createRpeLabelsTable,
|
|
12754
|
-
dimEquals: () => dimEquals,
|
|
12755
|
-
evaluate: () => evaluate,
|
|
12756
|
-
formatDim: () => formatDim,
|
|
12757
|
-
getUnit: () => getUnit,
|
|
12758
|
-
inferDim: () => inferDim,
|
|
12759
|
-
isDimensionless: () => isDimensionless,
|
|
12760
|
-
num: () => num,
|
|
12761
|
-
outputNodeId: () => outputNodeId,
|
|
12762
|
-
outputNodeIds: () => outputNodeIds,
|
|
12763
|
-
parseCalcLine: () => parseCalcLine,
|
|
12764
|
-
parseExpression: () => parseExpression,
|
|
12765
|
-
printCalculation: () => printCalculation,
|
|
12766
|
-
str: () => str,
|
|
12767
|
-
subDim: () => subDim,
|
|
12768
|
-
truthy: () => truthy,
|
|
12769
|
-
validateOutputUnit: () => validateOutputUnit
|
|
12770
|
-
});
|
|
12771
|
-
|
|
12772
12713
|
// src/analytics/calc/lineform.ts
|
|
12773
12714
|
var SCOPE_RE = /^(segment|workout|store)\b/;
|
|
12774
12715
|
function compileLineForm(src, defaultScope) {
|
|
@@ -13201,15 +13142,15 @@ function toStoredOutputStatement(output) {
|
|
|
13201
13142
|
}
|
|
13202
13143
|
|
|
13203
13144
|
// src/version.ts
|
|
13204
|
-
var VERSION = "0.
|
|
13205
|
-
var GIT_SHA = "
|
|
13206
|
-
var BUILD_TIME = "2026-08-18T18:
|
|
13145
|
+
var VERSION = "0.2.18";
|
|
13146
|
+
var GIT_SHA = "c8d6c87";
|
|
13147
|
+
var BUILD_TIME = "2026-08-18T18:39:33.177Z";
|
|
13207
13148
|
var SEMVER = {
|
|
13208
|
-
version: "0.
|
|
13209
|
-
gitSha: "
|
|
13210
|
-
buildTime: "2026-08-18T18:
|
|
13149
|
+
version: "0.2.18",
|
|
13150
|
+
gitSha: "c8d6c87",
|
|
13151
|
+
buildTime: "2026-08-18T18:39:33.177Z"
|
|
13211
13152
|
};
|
|
13212
13153
|
|
|
13213
|
-
export { AbortSessionAction, AnalyticsEngine, AnalyticsTransformer, BUILD_TIME, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BlockContext, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CalcEngine, CalculateBlockProcessor, CalculationRegistry, CardioDialect, ClearChildrenAction, ClimbDialect, ClimbMetricType, CompileAndPushBlockAction, CrossFitDialect, DAY, DEFAULT_RESOLVER_OPTIONS, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, DISCIPLINE_FACTORS, DialectStack, EFFORT_DATA_METRIC_TYPE, EFFORT_DISCIPLINES, EFFORT_REGISTRY_ORIGINS, EffortBlock, EffortResolver, EmitEventAction, EmitSystemOutputAction, ErrorAction, EventBus, ExecutionContext, GIT_SHA, HabitsDialect, INTENSITY_TIERS, InMemoryEffortRegistry, JitCompiler, LocalEventProvider, LocalRuntimeSubscription, LookupRegistry, MdTimerRuntime, MemoryLocation, MemoryTypeEnum, NextAction, NextEvent, NextEventHandler, OutputEmitter, PREDEFINED_SOUNDS, PRODUCTION_STRATEGIES, PlaySoundAction, PopBlockAction, PushBlockAction, PushRestBlockAction, RegisterEventHandlerAction, Registry, RestBlock, RuntimeAdapter, RuntimeBlock, RuntimeBuilder, RuntimeClock, RuntimeFactory, RuntimeLogger, RuntimeMemory, RuntimeObservers, RuntimeStack, SEMVER, STANDARD_UNITS, STORE_CALCS, ScriptRuntime, SessionRootBlock, SnapshotClock, StandardAnalyticsProfile, StartSessionAction, StartWorkoutAction, SubscriptionManager, ThrowError, ThrowErrorAction, TimeSpan, TwoPassEffortResolutionProcess, TypedMemoryReference, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, UpdateNextPreviewAction, VERSION, VISIBILITY_ICONS, VISIBILITY_LABELS, WaitingToStartBlock, WhiteboardScript, WodDialect, YogaDialect,
|
|
13154
|
+
export { ABSENT, AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AbortSessionAction, AnalyticsEngine, AnalyticsTransformer, BUILD_TIME, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BlockContext, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, CalcEngine, CalcEvalError, CalcParseError, CalcRegistrationError, CalcUnitError, CalculateBlockProcessor, CalculationRegistry, CardioDialect, ClearChildrenAction, ClimbDialect, ClimbMetricType, CompileAndPushBlockAction, CrossFitDialect, DAY, DEFAULT_RESOLVER_OPTIONS, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_COUNT, DIM_ENERGY, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, DISCIPLINE_FACTORS, DialectStack, EFFORT_DATA_METRIC_TYPE, EFFORT_DISCIPLINES, EFFORT_REGISTRY_ORIGINS, EffortBlock, EffortResolver, EmitEventAction, EmitSystemOutputAction, ErrorAction, EventBus, ExecutionContext, GIT_SHA, HabitsDialect, INTENSITY_TIERS, InMemoryEffortRegistry, JitCompiler, LocalEventProvider, LocalRuntimeSubscription, LookupRegistry, MdTimerRuntime, MemoryLocation, MemoryTypeEnum, NAMED_COMPOUNDS, NextAction, NextEvent, NextEventHandler, OutputEmitter, PREDEFINED_SOUNDS, PRODUCTION_STRATEGIES, PlaySoundAction, PopBlockAction, PushBlockAction, PushRestBlockAction, REST_EXCLUSION, RPE_LABELS, RegisterEventHandlerAction, Registry, RestBlock, RuntimeAdapter, RuntimeBlock, RuntimeBuilder, RuntimeClock, RuntimeFactory, RuntimeLogger, RuntimeMemory, RuntimeObservers, RuntimeStack, SEMVER, STANDARD_UNITS, STORE_CALCS, STREAM_ATOMS, ScriptRuntime, SessionRootBlock, SnapshotClock, StandardAnalyticsProfile, StartSessionAction, StartWorkoutAction, SubscriptionManager, ThrowError, ThrowErrorAction, TimeSpan, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, UpdateNextPreviewAction, VERSION, VISIBILITY_ICONS, VISIBILITY_LABELS, WaitingToStartBlock, WhiteboardScript, WodDialect, YogaDialect, addDim, buildStaticLookups, buildTooltip, bundledEfforts, calculateElapsed, checkCalcLine, classifyStatements, closeCurrentSpan, collapseUnresolvedChoices, commonFixtureSet, compileLineForm, composeDivUnit, composeMulUnit, compoundName, computeColumnLabel, computeLabel, computeWorkloadRollups, convertScalar, createAnalyticsEngineForBlock, createCalcEngine, createCalcStack, createCompiler, createDialectStack, createDisciplinesTable, createEffortTable, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, createProfileTable, createRpeLabelsTable, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, dimEquals, disciplineFactorFor, evaluate, evaluateCalculateDefinitions, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, filterTagsByVisibility, findBestFuzzyMatch, findUnresolvedChoices, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDim, formatDuration, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getMetricVisibility, getUnit, hasHint, hintMetric, hintsToContainer, inferDim, isCastSubscription, isChoiceResolved, isDimensionless, isEffortDiscipline, isFragmentTag, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, num, openSpan, outputNodeId, outputNodeIds, parseCalcLine, parseCalculateBlock, parseExpression, parseScript, printCalculation, readTimer, realtimeProcessorRegistry, resolveDominantOrigin, sharedParser, startSpan, str, strategyRegistry, subDim, summaryProcessorRegistry, toStoredOutputStatement, truthy, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection };
|
|
13214
13155
|
//# sourceMappingURL=index.mjs.map
|
|
13215
13156
|
//# sourceMappingURL=index.mjs.map
|