@bitcobblers/wod-wiki-lang 0.46.2168 → 0.47.2170
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/{browserRuntimeNow-BpEYjit5.d.cts → browserRuntimeNow-CqyFh_Jd.d.cts} +173 -1
- package/dist/{browserRuntimeNow-BpEYjit5.d.ts → browserRuntimeNow-CqyFh_Jd.d.ts} +173 -1
- package/dist/index.cjs +68 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -168
- package/dist/index.d.ts +6 -168
- package/dist/index.mjs +68 -9
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMetric, MetricContainer, MetricOrigin, MetricType, IDialect, ICodeStatement, DialectAnalysis, TagIndex, ParsedCodeStatement, TagMetricContribution, IOutputStatement, OutputStatementType, BlockKey, TagReferenceMetadata, ScriptBlock, FenceDialect, Segment, AnalyticsGroup, StoredOutputStatement, OutputStatement } from '@bitcobblers/wod-wiki-core';
|
|
2
2
|
export { ParseError } from '@bitcobblers/wod-wiki-core';
|
|
3
|
-
import { R as ReferenceIndex, a as ReferenceResolutionDefaults, W as WhiteboardScript, I as IEquipment, b as IEffort, c as IEffortResolver, d as IEffortRegistry, E as EffortResolverOptions, e as EffortResolutionOptions, f as ResolvedEffort, g as EffortRegistrySource, h as IEquipmentRegistry, i as EquipmentStorageAdapter, j as EffortStorageAdapter, k as IRuntimeActionable, l as IEventBus, m as IRuntimeStack, n as IRuntimeClock, o as IJitCompiler, p as INowProvider, q as RuntimeStackOptions, r as RuntimeError, A as AnalyticsContext, s as IEvent, t as IRuntimeAction, O as OutputListener, U as Unsubscribe, u as IAnalyticsEngine, v as IRuntimeBlock, w as IBehaviorContext, B as BehaviorEventType, x as BehaviorEventListener, S as SubscribeOptions, y as Unsubscribe$1, z as OutputOptions, M as MemoryTag, C as IMemoryLocation, D as IRuntimeBehavior, F as IBlockContext, G as MetricVisibility, H as BlockLifecycleOptions, J as CompletionDecision, T as TimeSpan, K as IRuntimeMemory, L as TypedMemoryReference, N as MemorySearchCriteria, P as IMemoryReference, Q as RuntimeStackLogger, V as StackObserver, X as StackSnapshot, Y as StackListener, Z as MemoryTypeEnum, _ as IAnchorValue, $ as SoundProfile, a0 as ButtonConfig, a1 as IEventHandler, a2 as HandlerScope, a3 as IScriptRuntime, a4 as TestableBlockConfig, a5 as IRuntimeOptions, a6 as ScriptRuntime, a7 as EventHandlerOptions, a8 as EventCallback, a9 as TimerState, aa as
|
|
4
|
-
export {
|
|
3
|
+
import { R as ReferenceIndex, a as ReferenceResolutionDefaults, W as WhiteboardScript, I as IEquipment, b as IEffort, c as IEffortResolver, d as IEffortRegistry, E as EffortResolverOptions, e as EffortResolutionOptions, f as ResolvedEffort, g as EffortRegistrySource, h as IEquipmentRegistry, i as EquipmentStorageAdapter, j as EffortStorageAdapter, k as IRuntimeActionable, l as IEventBus, m as IRuntimeStack, n as IRuntimeClock, o as IJitCompiler, p as INowProvider, q as RuntimeStackOptions, r as RuntimeError, A as AnalyticsContext, s as IEvent, t as IRuntimeAction, O as OutputListener, U as Unsubscribe, u as IAnalyticsEngine, v as IRuntimeBlock, w as IBehaviorContext, B as BehaviorEventType, x as BehaviorEventListener, S as SubscribeOptions, y as Unsubscribe$1, z as OutputOptions, M as MemoryTag, C as IMemoryLocation, D as IRuntimeBehavior, F as IBlockContext, G as MetricVisibility, H as BlockLifecycleOptions, J as CompletionDecision, T as TimeSpan, K as IRuntimeMemory, L as TypedMemoryReference, N as MemorySearchCriteria, P as IMemoryReference, Q as RuntimeStackLogger, V as StackObserver, X as StackSnapshot, Y as StackListener, Z as MemoryTypeEnum, _ as IAnchorValue, $ as SoundProfile, a0 as ButtonConfig, a1 as IEventHandler, a2 as HandlerScope, a3 as IScriptRuntime, a4 as TestableBlockConfig, a5 as IRuntimeOptions, a6 as ScriptRuntime, a7 as EventHandlerOptions, a8 as EventCallback, a9 as TimerState, aa as CalculationDefinition, ab as PropertyRuleInput, ac as IRealtimeProcessor, ad as ISummaryProcessor, ae as DimVector, af as CalcLine, ag as ExprNode, ah as CalcScope, ai as ILookupTable, aj as LookupRegistry, ak as ProjectionResult } from './browserRuntimeNow-CqyFh_Jd.cjs';
|
|
4
|
+
export { al as ABSENT, am as BinaryOp, an as ButtonVariant, ao as ButtonsState, ap as CalcEvalError, aq as CalcNode, ar as CalcOrigin, as as CalcVariant, at as ChildrenStatusState, au as CompletionState, av as DEFAULT_RESOLVER_OPTIONS, aw as DEFAULT_RUNTIME_OPTIONS, ax as DEFAULT_SOUND_PROFILE, ay as DIM_COUNT, az as DIM_ENERGY, aA as DIM_LENGTH, aB as DIM_MASS, aC as DIM_TIME, aD as DIM_ZERO, aE as DISCIPLINE_FACTORS, aF as DisplayState, aG as EFFORT_DISCIPLINES, aH as EFFORT_REGISTRY_ORIGINS, aI as EffortBaseAttributes, aJ as EffortDerivation, aK as EffortDiscipline, aL as EffortMaterializer, aM as EffortResolvedFrom, aN as EvalContext, aO as FenceDialect, aP as FragmentDisplayState, aQ as FragmentState, aR as IAnalyticsProcessorDescriptor, aS as INTENSITY_TIERS, aT as IScript, aU as IntensityTier, aV as InterceptMode, aW as LookupFieldDef, aX as LookupLayer, aY as MemoryLocation, aZ as MemoryType, a_ as MemoryTypeMap, a$ as MemoryValueOf, b0 as NAMED_COMPOUNDS, b1 as PropertySourceLayer, b2 as ReferenceCatalog, b3 as ResolvedReferences, b4 as RoundState, b5 as RuntimeState, b6 as SEED_PRECEDENCE_RANK, b7 as ScriptRuntimeDependencies, b8 as SeedPrecedenceTier, b9 as ShakeOutQueueOptions, ba as ShakeOutResult, bb as SkippedDependencyDiagnostic, bc as SoundRule, bd as SoundTriggerAnchor, be as SoundTriggerPoint, bf as StackEvent, bg as TimerDirection, bh as VISIBILITY_ICONS, bi as VISIBILITY_LABELS, bj as Val, bk as addDim, bl as compilePropertySummaryCalcs, bm as compoundName, bn as createBrowserRuntimeNow, bo as createReferenceIndex, bp as dedupeEntitiesByPrecedence, bq as dimEquals, br as disciplineFactorFor, bs as evaluate, bt as extractPropertyRulesFromMeta, bu as extractStatementRefs, bv as extractTagPropertyRules, bw as filterTagsByVisibility, bx as formatDim, by as formatSoundTrigger, bz as frozenNow, bA as getMetricVisibility, bB as getRuntimeNowMs, bC as isDimensionless, bD as isEffortDiscipline, bE as isFragmentTag, bF as num, bG as parseSoundTrigger, bH as resolveEntityRank, bI as resolveEntityTier, bJ as resolveProfileRules, bK as resolveSourceRank, bL as resolveSourceTier, bM as runMetricShakeOutQueue, bN as slugifyRefLabel, bO as str, bP as subDim, bQ as truthy, bR as wallClockNow } from './browserRuntimeNow-CqyFh_Jd.cjs';
|
|
5
5
|
import { Tree } from '@lezer/common';
|
|
6
6
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
7
7
|
import { CompletionSource, Completion } from '@codemirror/autocomplete';
|
|
@@ -1245,7 +1245,9 @@ declare function tagMarkerSlug(type: string): string | undefined;
|
|
|
1245
1245
|
*/
|
|
1246
1246
|
declare function tagMarkerSlugs(metrics: Iterable<IMetric>): string[];
|
|
1247
1247
|
/**
|
|
1248
|
-
* The
|
|
1248
|
+
* The static metrics a tag's metric contributions produce at parse time.
|
|
1249
|
+
* Dynamic equations and `summaries.*` definitions are evaluated by the
|
|
1250
|
+
* MetricShakeOutQueue and CalcEngine.
|
|
1249
1251
|
*/
|
|
1250
1252
|
declare function tagContributionMetrics(contributions: readonly TagMetricContribution[], origin?: MetricOrigin): IMetric[];
|
|
1251
1253
|
|
|
@@ -4550,170 +4552,6 @@ declare class SubscriptionManager {
|
|
|
4550
4552
|
dispose(): void;
|
|
4551
4553
|
}
|
|
4552
4554
|
|
|
4553
|
-
/**
|
|
4554
|
-
* Dimension-aware value model for calc evaluation.
|
|
4555
|
-
*
|
|
4556
|
-
* Numbers carry a dimension vector and (optionally) the unit they were
|
|
4557
|
-
* measured in; arithmetic tracks vectors per spec §5.1. `absent` is the
|
|
4558
|
-
* missing-data value: it propagates through arithmetic, reads as `false` in
|
|
4559
|
-
* predicates (applicability decision, #848), and is what `has()` probes.
|
|
4560
|
-
*/
|
|
4561
|
-
|
|
4562
|
-
type Val = {
|
|
4563
|
-
kind: 'number';
|
|
4564
|
-
value: number;
|
|
4565
|
-
dim: DimVector;
|
|
4566
|
-
unit?: string;
|
|
4567
|
-
} | {
|
|
4568
|
-
kind: 'string';
|
|
4569
|
-
value: string;
|
|
4570
|
-
} | {
|
|
4571
|
-
kind: 'series';
|
|
4572
|
-
points: Map<number, number>;
|
|
4573
|
-
dim: DimVector;
|
|
4574
|
-
unit?: string;
|
|
4575
|
-
} | {
|
|
4576
|
-
kind: 'period';
|
|
4577
|
-
days: number;
|
|
4578
|
-
} | {
|
|
4579
|
-
kind: 'absent';
|
|
4580
|
-
};
|
|
4581
|
-
declare const ABSENT: Val;
|
|
4582
|
-
declare function num(value: number, dim?: DimVector, unit?: string): Val;
|
|
4583
|
-
declare function str(value: string): Val;
|
|
4584
|
-
/** Predicate truthiness: absent → false; numbers → ≠ 0; strings → non-empty. */
|
|
4585
|
-
declare function truthy(v: Val): boolean;
|
|
4586
|
-
|
|
4587
|
-
/**
|
|
4588
|
-
* Expression evaluator for the composed calculations layer.
|
|
4589
|
-
*
|
|
4590
|
-
* The core owns arithmetic, comparison/logic, and the scalar function table
|
|
4591
|
-
* (min, max, abs, round, floor, ceil, clamp, convert, has). Everything
|
|
4592
|
-
* scope-dependent — metric refs, context nodes, stream aggregates, lookup(),
|
|
4593
|
-
* WQL atoms — resolves through the EvalContext, so the same evaluator serves
|
|
4594
|
-
* segment, workout, and store scopes (spec §3.1).
|
|
4595
|
-
*/
|
|
4596
|
-
|
|
4597
|
-
declare class CalcEvalError extends Error {
|
|
4598
|
-
constructor(message: string);
|
|
4599
|
-
}
|
|
4600
|
-
interface EvalContext {
|
|
4601
|
-
/** Resolve a ref atom (metric, context node, library node). ABSENT when missing. */
|
|
4602
|
-
resolveRef(name: string): Val;
|
|
4603
|
-
/**
|
|
4604
|
-
* Extension functions (stream aggregates, lookup). Receives evaluated args
|
|
4605
|
-
* plus the raw arg nodes (aggregates need the filter node unevaluated).
|
|
4606
|
-
* Return undefined to signal "not mine" → CalcEvalError.
|
|
4607
|
-
*/
|
|
4608
|
-
callFunction?(name: string, args: Val[], rawArgs: ExprNode[]): Val | undefined;
|
|
4609
|
-
/** Store-scope WQL selections (QueryService). Store scope only. */
|
|
4610
|
-
resolveWql?(node: Extract<ExprNode, {
|
|
4611
|
-
kind: 'wql';
|
|
4612
|
-
}>): Val;
|
|
4613
|
-
}
|
|
4614
|
-
declare function evaluate(node: ExprNode, ctx: EvalContext): Val;
|
|
4615
|
-
|
|
4616
|
-
/**
|
|
4617
|
-
* Lookup table registry (spec §4).
|
|
4618
|
-
*
|
|
4619
|
-
* Tables are adapters over heterogeneous sources (effort resolver, static
|
|
4620
|
-
* maps, user profile) exposing a uniform single-row lookup contract:
|
|
4621
|
-
* `lookup("table", keyExpr, "field")`. Registration is layered —
|
|
4622
|
-
* bundled → dialect → user — with later layers replacing earlier ones
|
|
4623
|
-
* (mirrors the Dialect Stack's personal-overrides-last rule). Miss behavior
|
|
4624
|
-
* is per-table: `absent` yields the absent value; `default-row` yields a
|
|
4625
|
-
* synthetic row so calcs never see a miss.
|
|
4626
|
-
*/
|
|
4627
|
-
|
|
4628
|
-
interface LookupFieldDef {
|
|
4629
|
-
dimension: DimVector;
|
|
4630
|
-
type: 'number' | 'string';
|
|
4631
|
-
}
|
|
4632
|
-
interface ILookupTable {
|
|
4633
|
-
readonly id: string;
|
|
4634
|
-
readonly fields: Record<string, LookupFieldDef>;
|
|
4635
|
-
readonly missPolicy: 'absent' | 'default-row';
|
|
4636
|
-
/** Single-row lookup. `absent` tables return undefined on a miss. */
|
|
4637
|
-
get(key: string, field: string): Val | undefined;
|
|
4638
|
-
}
|
|
4639
|
-
type LookupLayer = 'bundled' | 'dialect' | 'user';
|
|
4640
|
-
declare class LookupRegistry {
|
|
4641
|
-
private readonly tables;
|
|
4642
|
-
/** Register a table; a later-or-equal layer replaces the existing entry. */
|
|
4643
|
-
register(table: ILookupTable, layer?: LookupLayer): void;
|
|
4644
|
-
get(tableId: string): ILookupTable | undefined;
|
|
4645
|
-
/** Field dimension for static checking; undefined when table/field unknown. */
|
|
4646
|
-
fieldDim(tableId: string, field: string): DimVector | undefined;
|
|
4647
|
-
/** Runtime lookup honoring the table's miss policy. */
|
|
4648
|
-
lookup(tableId: string, key: string, field: string): Val;
|
|
4649
|
-
/**
|
|
4650
|
-
* EvalContext `callFunction` implementation for `lookup("table", key, "field")`.
|
|
4651
|
-
* Compose with other extension functions (aggregates) at the engine layer.
|
|
4652
|
-
*/
|
|
4653
|
-
readonly callFunction: EvalContext['callFunction'];
|
|
4654
|
-
}
|
|
4655
|
-
|
|
4656
|
-
/**
|
|
4657
|
-
* MetricShakeOutQueue — Two-stage dependency-ordered metric evaluation module.
|
|
4658
|
-
*
|
|
4659
|
-
* Collects static Metrics and statement-level Metric Equations (`metrics:`)
|
|
4660
|
-
* plus workout/query Summary Metrics (`summaries:`) across stacked Property
|
|
4661
|
-
* Notes in specificity precedence:
|
|
4662
|
-
* Statement/Runtime > Inline Tag > Effort > Equipment > Note Frontmatter > Tag Category
|
|
4663
|
-
*
|
|
4664
|
-
* Stage 1 (`plan`): resolves static metrics and compile-time equations in
|
|
4665
|
-
* topological waves, injects compiler hints, and defers equations whose
|
|
4666
|
-
* required inputs depend on runtime-only atoms (`elapsed`, `spans`, etc.).
|
|
4667
|
-
*
|
|
4668
|
-
* Stage 2 (`log`): resolves all remaining equations against the executed
|
|
4669
|
-
* statement metrics and emits a structured Skipped-Dependency Diagnostic
|
|
4670
|
-
* metric (`origin: 'diagnostic'`, `type: MetricType.Diagnostic`) for any
|
|
4671
|
-
* equation whose required inputs remain absent after the fixed-point pass.
|
|
4672
|
-
*/
|
|
4673
|
-
|
|
4674
|
-
type PropertySourceLayer = 'statement' | 'tag' | 'effort' | 'equipment' | 'note' | 'category';
|
|
4675
|
-
interface PropertyRuleInput {
|
|
4676
|
-
readonly layer: Exclude<PropertySourceLayer, 'statement'>;
|
|
4677
|
-
readonly sourceSlug: string;
|
|
4678
|
-
readonly metrics?: Readonly<Record<string, string | number | readonly string[]>>;
|
|
4679
|
-
readonly summaries?: Readonly<Record<string, string>>;
|
|
4680
|
-
readonly hints?: Readonly<Record<string, unknown>>;
|
|
4681
|
-
}
|
|
4682
|
-
interface SkippedDependencyDiagnostic {
|
|
4683
|
-
readonly target: string;
|
|
4684
|
-
readonly expression: string;
|
|
4685
|
-
readonly sourceLayer: Exclude<PropertySourceLayer, 'statement'>;
|
|
4686
|
-
readonly sourceSlug: string;
|
|
4687
|
-
readonly missing: readonly string[];
|
|
4688
|
-
}
|
|
4689
|
-
interface ShakeOutResult {
|
|
4690
|
-
readonly resolved: readonly string[];
|
|
4691
|
-
readonly deferredRuntime: readonly string[];
|
|
4692
|
-
readonly diagnostics: readonly SkippedDependencyDiagnostic[];
|
|
4693
|
-
readonly inferredDims: Readonly<Record<string, DimVector>>;
|
|
4694
|
-
}
|
|
4695
|
-
interface ShakeOutQueueOptions {
|
|
4696
|
-
readonly stage: 'plan' | 'log';
|
|
4697
|
-
readonly sources: readonly PropertyRuleInput[];
|
|
4698
|
-
readonly lookups?: LookupRegistry;
|
|
4699
|
-
readonly lastEffortSlug?: string;
|
|
4700
|
-
}
|
|
4701
|
-
/**
|
|
4702
|
-
* Extract `metrics:` and `summaries:` maps from a parsed frontmatter record
|
|
4703
|
-
* (supporting both flat `metrics.foo` / `summaries.bar` keys and nested maps).
|
|
4704
|
-
*/
|
|
4705
|
-
declare function extractPropertyRulesFromMeta(meta: Readonly<Record<string, unknown>>, layer: Exclude<PropertySourceLayer, 'statement'>, sourceSlug: string): PropertyRuleInput;
|
|
4706
|
-
/**
|
|
4707
|
-
* Compile `summaries:` equations across stacked Property Notes into workout-scope
|
|
4708
|
-
* `CalculationDefinition` records. Higher-precedence layers shadow lower layers
|
|
4709
|
-
* when both define the same summary key.
|
|
4710
|
-
*/
|
|
4711
|
-
declare function compilePropertySummaryCalcs(sources: readonly PropertyRuleInput[]): CalculationDefinition[];
|
|
4712
|
-
/**
|
|
4713
|
-
* Run the two-stage Metric Shake-Out Queue on a statement's MetricContainer.
|
|
4714
|
-
*/
|
|
4715
|
-
declare function runMetricShakeOutQueue(container: MetricContainer, options: ShakeOutQueueOptions): ShakeOutResult;
|
|
4716
|
-
|
|
4717
4555
|
/**
|
|
4718
4556
|
* Context used to select processors for a given workout.
|
|
4719
4557
|
*/
|
|
@@ -5528,4 +5366,4 @@ declare function diffStatement(expected: MetricLine[], actual: readonly IMetric[
|
|
|
5528
5366
|
*/
|
|
5529
5367
|
declare function compareStatement(expectations: MetricLine[], actual: readonly IMetric[], mode: MatchMode): string[];
|
|
5530
5368
|
|
|
5531
|
-
export {
|
|
5369
|
+
export { AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AbortSessionAction, type ActionDescriptor, type ActionPrimitive, AmrapLogicStrategy, AnalyticsContext, AnalyticsEngine, type AnalyticsProfileContext, type AnalyticsResult, AnalyticsTransformer, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BehaviorEventListener, BehaviorEventType, BlockBuilder, BlockContext, BlockLifecycleOptions, ButtonBehavior, ButtonConfig, COMPLETION_PROPERTY_KEYS, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, type CalcAnalysis, CalculationDefinition as CalcDefinition, type CalcDiagnostic, CalcEngine, type CalcEngineDeps, CalcLine, CalcParseError, CalcRegistrationError, CalcScope, type CalcStack, type CalcStackOptions, type UnitDef as CalcUnitDef, CalcUnitError, CalculationDefinition, CalculationRegistry, CardioDialect, ChildSelectionBehavior, type ChildSelectionConfig, type ChildSelectionLoopCondition, ChildrenStrategy, ChoiceGroupMetric, ClearChildrenAction, ClimbDialect, type ClimbGradeMetricValue, type ClimbGradeSystem, ClimbMetricType, CompileAndPushBlockAction, type CompiledLineForm, CompletionDecision, CompletionTimestampBehavior, type CompletionValueOption, type CompletionValueSource, CompositeEffortRegistry, type CompositeEffortRegistryOptions, CompositeEquipmentRegistry, CompositePropertyRegistry, type ControlsConfig, type CountdownMode, CountdownTimerBehavior, type CountdownTimerConfig, CountupTimerBehavior, type CountupTimerConfig, type CreateAnalyticsEngineOptions, type CreateAnalyticsEngineResult, CrossFitDialect, DAY, DEFAULT_UNRESOLVED_EFFORT_MET, type DayRollup, DialectStack, DimVector, type Dimension, type DurationPrimitive, EFFORT_DATA_METRIC_TYPE, EffortBlock, type EffortBlockConfig, EffortFallbackStrategy, type EffortPrimitive, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, EffortStorageAdapter, EmitEventAction, EmitSystemOutputAction, type EquipmentParseResult, EquipmentStorageAdapter, ErrorAction, EventBus, EventCallback, EventHandlerOptions, type EventHandlerRegistration, ExecutionContext, type ExecutionSnapshot, type ExecutionStatus, ExitBehavior, type ExitConfig, ExprNode, FixtureSyntaxError, type FuzzyCandidate, GenericGroupStrategy, GenericLoopStrategy, GenericTimerStrategy, HabitsDialect, type HeadingPrimitive, IAnalyticsEngine, type IAnalyticsProfile, IAnchorValue, IBehaviorContext, IBlockContext, type ICastSubscription, IEffort, IEffortRegistry, IEffortResolver, IEquipment, IEquipmentRegistry, IEvent, IEventBus, IEventHandler, IJitCompiler, ILookupTable, IMemoryLocation, IMemoryReference, type IMetricPresentationPolicy, INowProvider, type IProfileSource, IRealtimeProcessor, IRuntimeAction, IRuntimeActionable, IRuntimeBehavior, IRuntimeBlock, type IRuntimeBlockStrategy, IRuntimeClock, type IRuntimeEventProvider, type IRuntimeFactory, IRuntimeMemory, IRuntimeStack, type IRuntimeSubscription, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, IntervalLogicStrategy, JitCompiler, LabelingBehavior, type LabelingConfig, type LapPrimitive, type LineFormScope, type LineLocator, type LiteralKind, LocalEventProvider, LocalRuntimeSubscription, type LogLevel, type LoggableOutput, LookupRegistry, MAX_TAG_CONTRIBUTION_DEPTH, type MatchMode, MdTimerRuntime, type MemoryEntry, MemoryTag, MemoryTypeEnum, type MetricLine, type MetricObjectPrimitive, type MetricPresentationSurface, type MetricPresentationToken, MetricPromotionBehavior, type MetricPromotionConfig, type MetricRenderKind, type MetricTone, MetricVisibility, type MockClock, NextAction, NextEvent, NextEventHandler, OutputEmitter, OutputListener, PRODUCTION_STRATEGIES, PROPERTY_KEY_TO_METRIC_TYPE, type ParseOptions, type ParseReferences, type ParseResult, type ParserConfig, PopBlockAction, ProjectionResult, type PromotionRule, type PropertyEntity, type PropertyPrimitive, PropertyRuleInput, type PropertyStorageAdapter, PushBlockAction, PushRestBlockAction, type QuantityPrimitive, REFERENCE_PAIR_KEYS, REST_EXCLUSION, RPE_LABELS, RUNTIME_LOG_SUBJECT_WIDTH, ReferenceIndex, ReferenceResolutionDefaults, RegisterEventHandlerAction, Registry, ReportOutputBehavior, type ReportOutputConfig, ReportOutputStrategy, ResolvedEffort, type ResolvedEffortData, type ResolvedTagContributions, RestBlock, type RestBlockConfig, type RoundSchemePrimitive, RoundsMetric, type RoundsPrimitive, RuntimeAdapter, RuntimeBlock, type RuntimeBlockOptions, RuntimeBuilder, type RuntimeButton, RuntimeClock, type RuntimeController, type RuntimeControls, RuntimeError, RuntimeFactory, type RuntimeLogEntry, RuntimeLogger, RuntimeMemory, type RuntimeMemoryLocation, RuntimeObservers, RuntimeStack, RuntimeStackOptions, SOUND_PLAY_EVENT, SOUND_PROFILE_METRIC, STANDARD_UNITS, STORE_CALCS, STREAM_ATOMS, STRUCTURAL_EFFORT_WORDS, ScriptRuntime, type SegmentWithMetadata, SessionRootBlock, type SessionRootConfig, SessionRootStrategy, SnapshotClock, SoundProfile, SoundProfileBehavior, type SoundProfileBehaviorConfig, SoundStrategy, type SourceInput, type SpanList, SpanTrackingBehavior, StackListener, StackObserver, StackSnapshot, StandardAnalyticsProfile, StartSessionAction, type StartSessionOptions, StartWorkoutAction, type StartWorkoutOptions, type StatementMetricDiff, type StaticEnv, type StreamAtomDef, SubscribeOptions, SubscriptionManager, type SyntaxFacts, type SyntaxMeta, type SyntaxPrimitive, type SyntaxStatement, TAG_MARKER_PREFIX, type TagCategoryPropertyDocument, type TagParseResult, type TagPropertyDocument, type TagRefPrimitive, TestableBlockConfig, type TextPrimitive, ThrowError, ThrowErrorAction, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, type UnitDef$1 as UnitDef, type UnitMatch, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, UpdateNextPreviewAction, WaitingToStartBlock, WaitingToStartInjectorBehavior, WhiteboardScript, type WhiteboardScriptCompletionOptions, type WhiteboardScriptSnippet, WodDialect, YogaDialect, addAliasToEffort, applyTemplateDefaults, buildStaticLookups, buildTooltip, bundledEfforts, calculateElapsed, canonicalizeType, checkCalcLine, classifyStatements, closeCurrentSpan, collapseUnresolvedChoices, commonFixtureSet, compareStatement, compileLineForm, composeDivUnit, composeMulUnit, computeColumnLabel, computeLabel, computeWorkloadRollups, convertScalar, createAnalyticsEngineForBlock, createCalcEngine, createCalcStack, createCompiler, createDialectStack, createDisciplinesTable, createEffortTable, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, createProfileTable, createRpeLabelsTable, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, diffStatement, documentToEffort, documentToEquipment, documentToTag, effortToDocument, equipmentToDocument, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, findBestFuzzyMatch, findTagContributionCycles, findUnresolvedChoices, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDuration, formatRuntimeLogLine, formatRuntimeLogRule, formatRuntimeTimestamp, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getUnit, hasHint, hintMetric, hintsToContainer, inferDim, isCastSubscription, isChoiceResolved, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, openSpan, outputNodeId, outputNodeIds, padRuntimeLogEvent, padRuntimeLogSubject, parseCalcLine, parseEffortFile, parseEquipmentFile, parseExpression, parseMetricLine, parseScript, printCalculation, readNestedSection, readTimer, realtimeProcessorRegistry, renderMetric, resolveDominantOrigin, resolveSoundProfile, resolveTagContributions, snippetCompletions, startSpan, strategyRegistry, summaryProcessorRegistry, tagCategoryToDocument, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, tagToDocument, toStoredOutputStatement, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptCompletion, whiteboardScriptCompletionSource, whiteboardScriptLanguage, whiteboardScriptSnippets, writeChoiceSelection };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMetric, MetricContainer, MetricOrigin, MetricType, IDialect, ICodeStatement, DialectAnalysis, TagIndex, ParsedCodeStatement, TagMetricContribution, IOutputStatement, OutputStatementType, BlockKey, TagReferenceMetadata, ScriptBlock, FenceDialect, Segment, AnalyticsGroup, StoredOutputStatement, OutputStatement } from '@bitcobblers/wod-wiki-core';
|
|
2
2
|
export { ParseError } from '@bitcobblers/wod-wiki-core';
|
|
3
|
-
import { R as ReferenceIndex, a as ReferenceResolutionDefaults, W as WhiteboardScript, I as IEquipment, b as IEffort, c as IEffortResolver, d as IEffortRegistry, E as EffortResolverOptions, e as EffortResolutionOptions, f as ResolvedEffort, g as EffortRegistrySource, h as IEquipmentRegistry, i as EquipmentStorageAdapter, j as EffortStorageAdapter, k as IRuntimeActionable, l as IEventBus, m as IRuntimeStack, n as IRuntimeClock, o as IJitCompiler, p as INowProvider, q as RuntimeStackOptions, r as RuntimeError, A as AnalyticsContext, s as IEvent, t as IRuntimeAction, O as OutputListener, U as Unsubscribe, u as IAnalyticsEngine, v as IRuntimeBlock, w as IBehaviorContext, B as BehaviorEventType, x as BehaviorEventListener, S as SubscribeOptions, y as Unsubscribe$1, z as OutputOptions, M as MemoryTag, C as IMemoryLocation, D as IRuntimeBehavior, F as IBlockContext, G as MetricVisibility, H as BlockLifecycleOptions, J as CompletionDecision, T as TimeSpan, K as IRuntimeMemory, L as TypedMemoryReference, N as MemorySearchCriteria, P as IMemoryReference, Q as RuntimeStackLogger, V as StackObserver, X as StackSnapshot, Y as StackListener, Z as MemoryTypeEnum, _ as IAnchorValue, $ as SoundProfile, a0 as ButtonConfig, a1 as IEventHandler, a2 as HandlerScope, a3 as IScriptRuntime, a4 as TestableBlockConfig, a5 as IRuntimeOptions, a6 as ScriptRuntime, a7 as EventHandlerOptions, a8 as EventCallback, a9 as TimerState, aa as
|
|
4
|
-
export {
|
|
3
|
+
import { R as ReferenceIndex, a as ReferenceResolutionDefaults, W as WhiteboardScript, I as IEquipment, b as IEffort, c as IEffortResolver, d as IEffortRegistry, E as EffortResolverOptions, e as EffortResolutionOptions, f as ResolvedEffort, g as EffortRegistrySource, h as IEquipmentRegistry, i as EquipmentStorageAdapter, j as EffortStorageAdapter, k as IRuntimeActionable, l as IEventBus, m as IRuntimeStack, n as IRuntimeClock, o as IJitCompiler, p as INowProvider, q as RuntimeStackOptions, r as RuntimeError, A as AnalyticsContext, s as IEvent, t as IRuntimeAction, O as OutputListener, U as Unsubscribe, u as IAnalyticsEngine, v as IRuntimeBlock, w as IBehaviorContext, B as BehaviorEventType, x as BehaviorEventListener, S as SubscribeOptions, y as Unsubscribe$1, z as OutputOptions, M as MemoryTag, C as IMemoryLocation, D as IRuntimeBehavior, F as IBlockContext, G as MetricVisibility, H as BlockLifecycleOptions, J as CompletionDecision, T as TimeSpan, K as IRuntimeMemory, L as TypedMemoryReference, N as MemorySearchCriteria, P as IMemoryReference, Q as RuntimeStackLogger, V as StackObserver, X as StackSnapshot, Y as StackListener, Z as MemoryTypeEnum, _ as IAnchorValue, $ as SoundProfile, a0 as ButtonConfig, a1 as IEventHandler, a2 as HandlerScope, a3 as IScriptRuntime, a4 as TestableBlockConfig, a5 as IRuntimeOptions, a6 as ScriptRuntime, a7 as EventHandlerOptions, a8 as EventCallback, a9 as TimerState, aa as CalculationDefinition, ab as PropertyRuleInput, ac as IRealtimeProcessor, ad as ISummaryProcessor, ae as DimVector, af as CalcLine, ag as ExprNode, ah as CalcScope, ai as ILookupTable, aj as LookupRegistry, ak as ProjectionResult } from './browserRuntimeNow-CqyFh_Jd.js';
|
|
4
|
+
export { al as ABSENT, am as BinaryOp, an as ButtonVariant, ao as ButtonsState, ap as CalcEvalError, aq as CalcNode, ar as CalcOrigin, as as CalcVariant, at as ChildrenStatusState, au as CompletionState, av as DEFAULT_RESOLVER_OPTIONS, aw as DEFAULT_RUNTIME_OPTIONS, ax as DEFAULT_SOUND_PROFILE, ay as DIM_COUNT, az as DIM_ENERGY, aA as DIM_LENGTH, aB as DIM_MASS, aC as DIM_TIME, aD as DIM_ZERO, aE as DISCIPLINE_FACTORS, aF as DisplayState, aG as EFFORT_DISCIPLINES, aH as EFFORT_REGISTRY_ORIGINS, aI as EffortBaseAttributes, aJ as EffortDerivation, aK as EffortDiscipline, aL as EffortMaterializer, aM as EffortResolvedFrom, aN as EvalContext, aO as FenceDialect, aP as FragmentDisplayState, aQ as FragmentState, aR as IAnalyticsProcessorDescriptor, aS as INTENSITY_TIERS, aT as IScript, aU as IntensityTier, aV as InterceptMode, aW as LookupFieldDef, aX as LookupLayer, aY as MemoryLocation, aZ as MemoryType, a_ as MemoryTypeMap, a$ as MemoryValueOf, b0 as NAMED_COMPOUNDS, b1 as PropertySourceLayer, b2 as ReferenceCatalog, b3 as ResolvedReferences, b4 as RoundState, b5 as RuntimeState, b6 as SEED_PRECEDENCE_RANK, b7 as ScriptRuntimeDependencies, b8 as SeedPrecedenceTier, b9 as ShakeOutQueueOptions, ba as ShakeOutResult, bb as SkippedDependencyDiagnostic, bc as SoundRule, bd as SoundTriggerAnchor, be as SoundTriggerPoint, bf as StackEvent, bg as TimerDirection, bh as VISIBILITY_ICONS, bi as VISIBILITY_LABELS, bj as Val, bk as addDim, bl as compilePropertySummaryCalcs, bm as compoundName, bn as createBrowserRuntimeNow, bo as createReferenceIndex, bp as dedupeEntitiesByPrecedence, bq as dimEquals, br as disciplineFactorFor, bs as evaluate, bt as extractPropertyRulesFromMeta, bu as extractStatementRefs, bv as extractTagPropertyRules, bw as filterTagsByVisibility, bx as formatDim, by as formatSoundTrigger, bz as frozenNow, bA as getMetricVisibility, bB as getRuntimeNowMs, bC as isDimensionless, bD as isEffortDiscipline, bE as isFragmentTag, bF as num, bG as parseSoundTrigger, bH as resolveEntityRank, bI as resolveEntityTier, bJ as resolveProfileRules, bK as resolveSourceRank, bL as resolveSourceTier, bM as runMetricShakeOutQueue, bN as slugifyRefLabel, bO as str, bP as subDim, bQ as truthy, bR as wallClockNow } from './browserRuntimeNow-CqyFh_Jd.js';
|
|
5
5
|
import { Tree } from '@lezer/common';
|
|
6
6
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
7
7
|
import { CompletionSource, Completion } from '@codemirror/autocomplete';
|
|
@@ -1245,7 +1245,9 @@ declare function tagMarkerSlug(type: string): string | undefined;
|
|
|
1245
1245
|
*/
|
|
1246
1246
|
declare function tagMarkerSlugs(metrics: Iterable<IMetric>): string[];
|
|
1247
1247
|
/**
|
|
1248
|
-
* The
|
|
1248
|
+
* The static metrics a tag's metric contributions produce at parse time.
|
|
1249
|
+
* Dynamic equations and `summaries.*` definitions are evaluated by the
|
|
1250
|
+
* MetricShakeOutQueue and CalcEngine.
|
|
1249
1251
|
*/
|
|
1250
1252
|
declare function tagContributionMetrics(contributions: readonly TagMetricContribution[], origin?: MetricOrigin): IMetric[];
|
|
1251
1253
|
|
|
@@ -4550,170 +4552,6 @@ declare class SubscriptionManager {
|
|
|
4550
4552
|
dispose(): void;
|
|
4551
4553
|
}
|
|
4552
4554
|
|
|
4553
|
-
/**
|
|
4554
|
-
* Dimension-aware value model for calc evaluation.
|
|
4555
|
-
*
|
|
4556
|
-
* Numbers carry a dimension vector and (optionally) the unit they were
|
|
4557
|
-
* measured in; arithmetic tracks vectors per spec §5.1. `absent` is the
|
|
4558
|
-
* missing-data value: it propagates through arithmetic, reads as `false` in
|
|
4559
|
-
* predicates (applicability decision, #848), and is what `has()` probes.
|
|
4560
|
-
*/
|
|
4561
|
-
|
|
4562
|
-
type Val = {
|
|
4563
|
-
kind: 'number';
|
|
4564
|
-
value: number;
|
|
4565
|
-
dim: DimVector;
|
|
4566
|
-
unit?: string;
|
|
4567
|
-
} | {
|
|
4568
|
-
kind: 'string';
|
|
4569
|
-
value: string;
|
|
4570
|
-
} | {
|
|
4571
|
-
kind: 'series';
|
|
4572
|
-
points: Map<number, number>;
|
|
4573
|
-
dim: DimVector;
|
|
4574
|
-
unit?: string;
|
|
4575
|
-
} | {
|
|
4576
|
-
kind: 'period';
|
|
4577
|
-
days: number;
|
|
4578
|
-
} | {
|
|
4579
|
-
kind: 'absent';
|
|
4580
|
-
};
|
|
4581
|
-
declare const ABSENT: Val;
|
|
4582
|
-
declare function num(value: number, dim?: DimVector, unit?: string): Val;
|
|
4583
|
-
declare function str(value: string): Val;
|
|
4584
|
-
/** Predicate truthiness: absent → false; numbers → ≠ 0; strings → non-empty. */
|
|
4585
|
-
declare function truthy(v: Val): boolean;
|
|
4586
|
-
|
|
4587
|
-
/**
|
|
4588
|
-
* Expression evaluator for the composed calculations layer.
|
|
4589
|
-
*
|
|
4590
|
-
* The core owns arithmetic, comparison/logic, and the scalar function table
|
|
4591
|
-
* (min, max, abs, round, floor, ceil, clamp, convert, has). Everything
|
|
4592
|
-
* scope-dependent — metric refs, context nodes, stream aggregates, lookup(),
|
|
4593
|
-
* WQL atoms — resolves through the EvalContext, so the same evaluator serves
|
|
4594
|
-
* segment, workout, and store scopes (spec §3.1).
|
|
4595
|
-
*/
|
|
4596
|
-
|
|
4597
|
-
declare class CalcEvalError extends Error {
|
|
4598
|
-
constructor(message: string);
|
|
4599
|
-
}
|
|
4600
|
-
interface EvalContext {
|
|
4601
|
-
/** Resolve a ref atom (metric, context node, library node). ABSENT when missing. */
|
|
4602
|
-
resolveRef(name: string): Val;
|
|
4603
|
-
/**
|
|
4604
|
-
* Extension functions (stream aggregates, lookup). Receives evaluated args
|
|
4605
|
-
* plus the raw arg nodes (aggregates need the filter node unevaluated).
|
|
4606
|
-
* Return undefined to signal "not mine" → CalcEvalError.
|
|
4607
|
-
*/
|
|
4608
|
-
callFunction?(name: string, args: Val[], rawArgs: ExprNode[]): Val | undefined;
|
|
4609
|
-
/** Store-scope WQL selections (QueryService). Store scope only. */
|
|
4610
|
-
resolveWql?(node: Extract<ExprNode, {
|
|
4611
|
-
kind: 'wql';
|
|
4612
|
-
}>): Val;
|
|
4613
|
-
}
|
|
4614
|
-
declare function evaluate(node: ExprNode, ctx: EvalContext): Val;
|
|
4615
|
-
|
|
4616
|
-
/**
|
|
4617
|
-
* Lookup table registry (spec §4).
|
|
4618
|
-
*
|
|
4619
|
-
* Tables are adapters over heterogeneous sources (effort resolver, static
|
|
4620
|
-
* maps, user profile) exposing a uniform single-row lookup contract:
|
|
4621
|
-
* `lookup("table", keyExpr, "field")`. Registration is layered —
|
|
4622
|
-
* bundled → dialect → user — with later layers replacing earlier ones
|
|
4623
|
-
* (mirrors the Dialect Stack's personal-overrides-last rule). Miss behavior
|
|
4624
|
-
* is per-table: `absent` yields the absent value; `default-row` yields a
|
|
4625
|
-
* synthetic row so calcs never see a miss.
|
|
4626
|
-
*/
|
|
4627
|
-
|
|
4628
|
-
interface LookupFieldDef {
|
|
4629
|
-
dimension: DimVector;
|
|
4630
|
-
type: 'number' | 'string';
|
|
4631
|
-
}
|
|
4632
|
-
interface ILookupTable {
|
|
4633
|
-
readonly id: string;
|
|
4634
|
-
readonly fields: Record<string, LookupFieldDef>;
|
|
4635
|
-
readonly missPolicy: 'absent' | 'default-row';
|
|
4636
|
-
/** Single-row lookup. `absent` tables return undefined on a miss. */
|
|
4637
|
-
get(key: string, field: string): Val | undefined;
|
|
4638
|
-
}
|
|
4639
|
-
type LookupLayer = 'bundled' | 'dialect' | 'user';
|
|
4640
|
-
declare class LookupRegistry {
|
|
4641
|
-
private readonly tables;
|
|
4642
|
-
/** Register a table; a later-or-equal layer replaces the existing entry. */
|
|
4643
|
-
register(table: ILookupTable, layer?: LookupLayer): void;
|
|
4644
|
-
get(tableId: string): ILookupTable | undefined;
|
|
4645
|
-
/** Field dimension for static checking; undefined when table/field unknown. */
|
|
4646
|
-
fieldDim(tableId: string, field: string): DimVector | undefined;
|
|
4647
|
-
/** Runtime lookup honoring the table's miss policy. */
|
|
4648
|
-
lookup(tableId: string, key: string, field: string): Val;
|
|
4649
|
-
/**
|
|
4650
|
-
* EvalContext `callFunction` implementation for `lookup("table", key, "field")`.
|
|
4651
|
-
* Compose with other extension functions (aggregates) at the engine layer.
|
|
4652
|
-
*/
|
|
4653
|
-
readonly callFunction: EvalContext['callFunction'];
|
|
4654
|
-
}
|
|
4655
|
-
|
|
4656
|
-
/**
|
|
4657
|
-
* MetricShakeOutQueue — Two-stage dependency-ordered metric evaluation module.
|
|
4658
|
-
*
|
|
4659
|
-
* Collects static Metrics and statement-level Metric Equations (`metrics:`)
|
|
4660
|
-
* plus workout/query Summary Metrics (`summaries:`) across stacked Property
|
|
4661
|
-
* Notes in specificity precedence:
|
|
4662
|
-
* Statement/Runtime > Inline Tag > Effort > Equipment > Note Frontmatter > Tag Category
|
|
4663
|
-
*
|
|
4664
|
-
* Stage 1 (`plan`): resolves static metrics and compile-time equations in
|
|
4665
|
-
* topological waves, injects compiler hints, and defers equations whose
|
|
4666
|
-
* required inputs depend on runtime-only atoms (`elapsed`, `spans`, etc.).
|
|
4667
|
-
*
|
|
4668
|
-
* Stage 2 (`log`): resolves all remaining equations against the executed
|
|
4669
|
-
* statement metrics and emits a structured Skipped-Dependency Diagnostic
|
|
4670
|
-
* metric (`origin: 'diagnostic'`, `type: MetricType.Diagnostic`) for any
|
|
4671
|
-
* equation whose required inputs remain absent after the fixed-point pass.
|
|
4672
|
-
*/
|
|
4673
|
-
|
|
4674
|
-
type PropertySourceLayer = 'statement' | 'tag' | 'effort' | 'equipment' | 'note' | 'category';
|
|
4675
|
-
interface PropertyRuleInput {
|
|
4676
|
-
readonly layer: Exclude<PropertySourceLayer, 'statement'>;
|
|
4677
|
-
readonly sourceSlug: string;
|
|
4678
|
-
readonly metrics?: Readonly<Record<string, string | number | readonly string[]>>;
|
|
4679
|
-
readonly summaries?: Readonly<Record<string, string>>;
|
|
4680
|
-
readonly hints?: Readonly<Record<string, unknown>>;
|
|
4681
|
-
}
|
|
4682
|
-
interface SkippedDependencyDiagnostic {
|
|
4683
|
-
readonly target: string;
|
|
4684
|
-
readonly expression: string;
|
|
4685
|
-
readonly sourceLayer: Exclude<PropertySourceLayer, 'statement'>;
|
|
4686
|
-
readonly sourceSlug: string;
|
|
4687
|
-
readonly missing: readonly string[];
|
|
4688
|
-
}
|
|
4689
|
-
interface ShakeOutResult {
|
|
4690
|
-
readonly resolved: readonly string[];
|
|
4691
|
-
readonly deferredRuntime: readonly string[];
|
|
4692
|
-
readonly diagnostics: readonly SkippedDependencyDiagnostic[];
|
|
4693
|
-
readonly inferredDims: Readonly<Record<string, DimVector>>;
|
|
4694
|
-
}
|
|
4695
|
-
interface ShakeOutQueueOptions {
|
|
4696
|
-
readonly stage: 'plan' | 'log';
|
|
4697
|
-
readonly sources: readonly PropertyRuleInput[];
|
|
4698
|
-
readonly lookups?: LookupRegistry;
|
|
4699
|
-
readonly lastEffortSlug?: string;
|
|
4700
|
-
}
|
|
4701
|
-
/**
|
|
4702
|
-
* Extract `metrics:` and `summaries:` maps from a parsed frontmatter record
|
|
4703
|
-
* (supporting both flat `metrics.foo` / `summaries.bar` keys and nested maps).
|
|
4704
|
-
*/
|
|
4705
|
-
declare function extractPropertyRulesFromMeta(meta: Readonly<Record<string, unknown>>, layer: Exclude<PropertySourceLayer, 'statement'>, sourceSlug: string): PropertyRuleInput;
|
|
4706
|
-
/**
|
|
4707
|
-
* Compile `summaries:` equations across stacked Property Notes into workout-scope
|
|
4708
|
-
* `CalculationDefinition` records. Higher-precedence layers shadow lower layers
|
|
4709
|
-
* when both define the same summary key.
|
|
4710
|
-
*/
|
|
4711
|
-
declare function compilePropertySummaryCalcs(sources: readonly PropertyRuleInput[]): CalculationDefinition[];
|
|
4712
|
-
/**
|
|
4713
|
-
* Run the two-stage Metric Shake-Out Queue on a statement's MetricContainer.
|
|
4714
|
-
*/
|
|
4715
|
-
declare function runMetricShakeOutQueue(container: MetricContainer, options: ShakeOutQueueOptions): ShakeOutResult;
|
|
4716
|
-
|
|
4717
4555
|
/**
|
|
4718
4556
|
* Context used to select processors for a given workout.
|
|
4719
4557
|
*/
|
|
@@ -5528,4 +5366,4 @@ declare function diffStatement(expected: MetricLine[], actual: readonly IMetric[
|
|
|
5528
5366
|
*/
|
|
5529
5367
|
declare function compareStatement(expectations: MetricLine[], actual: readonly IMetric[], mode: MatchMode): string[];
|
|
5530
5368
|
|
|
5531
|
-
export {
|
|
5369
|
+
export { AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AbortSessionAction, type ActionDescriptor, type ActionPrimitive, AmrapLogicStrategy, AnalyticsContext, AnalyticsEngine, type AnalyticsProfileContext, type AnalyticsResult, AnalyticsTransformer, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BehaviorEventListener, BehaviorEventType, BlockBuilder, BlockContext, BlockLifecycleOptions, ButtonBehavior, ButtonConfig, COMPLETION_PROPERTY_KEYS, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, type CalcAnalysis, CalculationDefinition as CalcDefinition, type CalcDiagnostic, CalcEngine, type CalcEngineDeps, CalcLine, CalcParseError, CalcRegistrationError, CalcScope, type CalcStack, type CalcStackOptions, type UnitDef as CalcUnitDef, CalcUnitError, CalculationDefinition, CalculationRegistry, CardioDialect, ChildSelectionBehavior, type ChildSelectionConfig, type ChildSelectionLoopCondition, ChildrenStrategy, ChoiceGroupMetric, ClearChildrenAction, ClimbDialect, type ClimbGradeMetricValue, type ClimbGradeSystem, ClimbMetricType, CompileAndPushBlockAction, type CompiledLineForm, CompletionDecision, CompletionTimestampBehavior, type CompletionValueOption, type CompletionValueSource, CompositeEffortRegistry, type CompositeEffortRegistryOptions, CompositeEquipmentRegistry, CompositePropertyRegistry, type ControlsConfig, type CountdownMode, CountdownTimerBehavior, type CountdownTimerConfig, CountupTimerBehavior, type CountupTimerConfig, type CreateAnalyticsEngineOptions, type CreateAnalyticsEngineResult, CrossFitDialect, DAY, DEFAULT_UNRESOLVED_EFFORT_MET, type DayRollup, DialectStack, DimVector, type Dimension, type DurationPrimitive, EFFORT_DATA_METRIC_TYPE, EffortBlock, type EffortBlockConfig, EffortFallbackStrategy, type EffortPrimitive, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, EffortStorageAdapter, EmitEventAction, EmitSystemOutputAction, type EquipmentParseResult, EquipmentStorageAdapter, ErrorAction, EventBus, EventCallback, EventHandlerOptions, type EventHandlerRegistration, ExecutionContext, type ExecutionSnapshot, type ExecutionStatus, ExitBehavior, type ExitConfig, ExprNode, FixtureSyntaxError, type FuzzyCandidate, GenericGroupStrategy, GenericLoopStrategy, GenericTimerStrategy, HabitsDialect, type HeadingPrimitive, IAnalyticsEngine, type IAnalyticsProfile, IAnchorValue, IBehaviorContext, IBlockContext, type ICastSubscription, IEffort, IEffortRegistry, IEffortResolver, IEquipment, IEquipmentRegistry, IEvent, IEventBus, IEventHandler, IJitCompiler, ILookupTable, IMemoryLocation, IMemoryReference, type IMetricPresentationPolicy, INowProvider, type IProfileSource, IRealtimeProcessor, IRuntimeAction, IRuntimeActionable, IRuntimeBehavior, IRuntimeBlock, type IRuntimeBlockStrategy, IRuntimeClock, type IRuntimeEventProvider, type IRuntimeFactory, IRuntimeMemory, IRuntimeStack, type IRuntimeSubscription, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, IntervalLogicStrategy, JitCompiler, LabelingBehavior, type LabelingConfig, type LapPrimitive, type LineFormScope, type LineLocator, type LiteralKind, LocalEventProvider, LocalRuntimeSubscription, type LogLevel, type LoggableOutput, LookupRegistry, MAX_TAG_CONTRIBUTION_DEPTH, type MatchMode, MdTimerRuntime, type MemoryEntry, MemoryTag, MemoryTypeEnum, type MetricLine, type MetricObjectPrimitive, type MetricPresentationSurface, type MetricPresentationToken, MetricPromotionBehavior, type MetricPromotionConfig, type MetricRenderKind, type MetricTone, MetricVisibility, type MockClock, NextAction, NextEvent, NextEventHandler, OutputEmitter, OutputListener, PRODUCTION_STRATEGIES, PROPERTY_KEY_TO_METRIC_TYPE, type ParseOptions, type ParseReferences, type ParseResult, type ParserConfig, PopBlockAction, ProjectionResult, type PromotionRule, type PropertyEntity, type PropertyPrimitive, PropertyRuleInput, type PropertyStorageAdapter, PushBlockAction, PushRestBlockAction, type QuantityPrimitive, REFERENCE_PAIR_KEYS, REST_EXCLUSION, RPE_LABELS, RUNTIME_LOG_SUBJECT_WIDTH, ReferenceIndex, ReferenceResolutionDefaults, RegisterEventHandlerAction, Registry, ReportOutputBehavior, type ReportOutputConfig, ReportOutputStrategy, ResolvedEffort, type ResolvedEffortData, type ResolvedTagContributions, RestBlock, type RestBlockConfig, type RoundSchemePrimitive, RoundsMetric, type RoundsPrimitive, RuntimeAdapter, RuntimeBlock, type RuntimeBlockOptions, RuntimeBuilder, type RuntimeButton, RuntimeClock, type RuntimeController, type RuntimeControls, RuntimeError, RuntimeFactory, type RuntimeLogEntry, RuntimeLogger, RuntimeMemory, type RuntimeMemoryLocation, RuntimeObservers, RuntimeStack, RuntimeStackOptions, SOUND_PLAY_EVENT, SOUND_PROFILE_METRIC, STANDARD_UNITS, STORE_CALCS, STREAM_ATOMS, STRUCTURAL_EFFORT_WORDS, ScriptRuntime, type SegmentWithMetadata, SessionRootBlock, type SessionRootConfig, SessionRootStrategy, SnapshotClock, SoundProfile, SoundProfileBehavior, type SoundProfileBehaviorConfig, SoundStrategy, type SourceInput, type SpanList, SpanTrackingBehavior, StackListener, StackObserver, StackSnapshot, StandardAnalyticsProfile, StartSessionAction, type StartSessionOptions, StartWorkoutAction, type StartWorkoutOptions, type StatementMetricDiff, type StaticEnv, type StreamAtomDef, SubscribeOptions, SubscriptionManager, type SyntaxFacts, type SyntaxMeta, type SyntaxPrimitive, type SyntaxStatement, TAG_MARKER_PREFIX, type TagCategoryPropertyDocument, type TagParseResult, type TagPropertyDocument, type TagRefPrimitive, TestableBlockConfig, type TextPrimitive, ThrowError, ThrowErrorAction, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, type UnitDef$1 as UnitDef, type UnitMatch, UnitRegistry, UnitSet, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, UpdateNextPreviewAction, WaitingToStartBlock, WaitingToStartInjectorBehavior, WhiteboardScript, type WhiteboardScriptCompletionOptions, type WhiteboardScriptSnippet, WodDialect, YogaDialect, addAliasToEffort, applyTemplateDefaults, buildStaticLookups, buildTooltip, bundledEfforts, calculateElapsed, canonicalizeType, checkCalcLine, classifyStatements, closeCurrentSpan, collapseUnresolvedChoices, commonFixtureSet, compareStatement, compileLineForm, composeDivUnit, composeMulUnit, computeColumnLabel, computeLabel, computeWorkloadRollups, convertScalar, createAnalyticsEngineForBlock, createCalcEngine, createCalcStack, createCompiler, createDialectStack, createDisciplinesTable, createEffortTable, createLineLocator, createPolicy as createMetricPresentationPolicy, createMockClock, createParser, createProfileTable, createRpeLabelsTable, dailySessionLoads, dayBucket, dialectRegistry, dialectStack, diffStatement, documentToEffort, documentToEquipment, documentToTag, effortToDocument, equipmentToDocument, extractEffortData, extractMetrics, extractStatements, extractStatementsRaw, extractSyntaxFacts, findBestFuzzyMatch, findTagContributionCycles, findUnresolvedChoices, fixtureBackSquat, fixtureBurpee, fixturePlank, fixtureRowing, fixtureRunning, fixtureUserCustom, fixtureUserOverride, formatDuration, formatRuntimeLogLine, formatRuntimeLogRule, formatRuntimeTimestamp, metricsToLabel as fragmentsToLabel, fullFixtureSet, fuseUnits, fuseUnitsInMetrics, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getUnit, hasHint, hintMetric, hintsToContainer, inferDim, isCastSubscription, isChoiceResolved, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, mutateTimerSpans, normalizeForFuzzy, openSpan, outputNodeId, outputNodeIds, padRuntimeLogEvent, padRuntimeLogSubject, parseCalcLine, parseEffortFile, parseEquipmentFile, parseExpression, parseMetricLine, parseScript, printCalculation, readNestedSection, readTimer, realtimeProcessorRegistry, renderMetric, resolveDominantOrigin, resolveSoundProfile, resolveTagContributions, snippetCompletions, startSpan, strategyRegistry, summaryProcessorRegistry, tagCategoryToDocument, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, tagToDocument, toStoredOutputStatement, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptCompletion, whiteboardScriptCompletionSource, whiteboardScriptLanguage, whiteboardScriptSnippets, writeChoiceSelection };
|