@bitcobblers/wod-wiki-lang 0.54.2205 → 0.56.2208
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-JnK2JvJg.d.cts → ScriptOutlineProjection-BnS5Xkgf.d.cts} +160 -1
- package/dist/{browserRuntimeNow-JnK2JvJg.d.ts → ScriptOutlineProjection-BnS5Xkgf.d.ts} +160 -1
- package/dist/chunk-XDMS3U3W.mjs +1172 -0
- package/dist/chunk-XDMS3U3W.mjs.map +1 -0
- package/dist/index.cjs +759 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.mjs +201 -543
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +808 -37
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +33 -3
- package/dist/react.d.ts +33 -3
- package/dist/react.mjs +114 -15
- package/dist/react.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-27K5HAHU.mjs +0 -164
- package/dist/chunk-27K5HAHU.mjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMetric, MetricContainer, MetricOrigin, MetricType, IDialect, ICodeStatement, DialectAnalysis, TagIndex, ParsedCodeStatement, TagTypeRecord, Tag, TagMetricContribution, IOutputStatement, OutputStatementType, BlockKey, TagReferenceMetadata, ScriptBlock, FenceDialect, Segment, AnalyticsGroup, StoredOutputStatement, OutputStatement, TimeSpan as TimeSpan$1 } 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,
|
|
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, P as ProjectionResult, 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, Q as IMemoryReference, V as RuntimeStackLogger, X as StackObserver, Y as StackSnapshot, Z as StackListener, _ as MemoryTypeEnum, $ as IAnchorValue, a0 as TimerPolarity, a1 as SoundProfile, a2 as ButtonConfig, a3 as IEventHandler, a4 as HandlerScope, a5 as IScriptRuntime, a6 as TestableBlockConfig, a7 as IRuntimeOptions, a8 as ScriptRuntime, a9 as EventHandlerOptions, aa as EventCallback, ab as TimerState, ac as CalculationDefinition, ad as PropertyRuleInput, ae as IRealtimeProcessor, af as ISummaryProcessor, ag as DimVector, ah as CalcLine, ai as ExprNode, aj as CalcScope, ak as ILookupTable, al as LookupRegistry, am as CalcRegistrationDiagnostic } from './ScriptOutlineProjection-BnS5Xkgf.cjs';
|
|
4
|
+
export { an as ABSENT, ao as BinaryOp, ap as ButtonVariant, aq as ButtonsState, ar as CalcEvalError, as as CalcNode, at as CalcOrigin, au as CalcVariant, av as ChildrenStatusState, aw as CompiledPropertySummaries, ax as CompletionState, ay as DEFAULT_RESOLVER_OPTIONS, az as DEFAULT_RUNTIME_OPTIONS, aA as DEFAULT_SOUND_PROFILE, aB as DIM_COUNT, aC as DIM_ENERGY, aD as DIM_LENGTH, aE as DIM_MASS, aF as DIM_TIME, aG as DIM_ZERO, aH as DISCIPLINE_FACTORS, aI as DisplayState, aJ as EFFORT_DISCIPLINES, aK as EFFORT_REGISTRY_ORIGINS, aL as EffortBaseAttributes, aM as EffortDerivation, aN as EffortDiscipline, aO as EffortMaterializer, aP as EffortResolvedFrom, aQ as EvalContext, aR as FenceDialect, aS as FragmentDisplayState, aT as FragmentState, aU as IAnalyticsProcessorDescriptor, aV as INTENSITY_TIERS, aW as IScript, aX as IntensityTier, aY as InterceptMode, aZ as LiveRoundSplitRow, a_ as LiveSessionTelemetryFrame, a$ as LiveSummaryMetric, b0 as LookupFieldDef, b1 as LookupLayer, b2 as MemoryLocation, b3 as MemoryType, b4 as MemoryTypeMap, b5 as MemoryValueOf, b6 as NAMED_COMPOUNDS, b7 as ProjectedRepTarget, b8 as ProjectedSecondaryTimer, b9 as PropertySourceLayer, ba as ReferenceCatalog, bb as ResolvedReferences, bc as RoundState, bd as RuntimeState, be as SEED_PRECEDENCE_RANK, bf as ScriptOutlineNode, bg as ScriptOutlineStatus, bh as ScriptRuntimeDependencies, bi as SeedPrecedenceTier, bj as SerializedTimerSpan, bk as SessionClockFrame, bl as SessionClockInputSignal, bm as SessionClockProjectionOptions, bn as SessionExecutionStatus, bo as SessionVisualPolarity, bp as ShakeOutQueueOptions, bq as ShakeOutResult, br as SkippedDependencyDiagnostic, bs as SoundRule, bt as SoundTriggerAnchor, bu as SoundTriggerPoint, bv as StackEvent, bw as StackedDashboardWidgetDescriptor, bx as TimerDirection, by as VISIBILITY_ICONS, bz as VISIBILITY_LABELS, bA as Val, bB as addDim, bC as compilePropertySummaryCalcs, bD as compilePropertySummaryCalcsWithDiagnostics, bE as compoundName, bF as createBrowserRuntimeNow, bG as createReferenceIndex, bH as dedupeEntitiesByPrecedence, bI as dimEquals, bJ as disciplineFactorFor, bK as evaluate, bL as extractPropertyRulesFromMeta, bM as extractStatementRefs, bN as extractTagPropertyRules, bO as filterTagsByVisibility, bP as formatDim, bQ as formatSoundTrigger, bR as frozenNow, bS as getMetricVisibility, bT as getRuntimeNowMs, bU as interpolateSessionClockFrame, bV as isDimensionless, bW as isEffortDiscipline, bX as isFragmentTag, bY as isRequiredCountdownLocked, bZ as num, b_ as observeSessionClockInputs, b$ as parseSoundTrigger, c0 as projectLiveSessionTelemetry, c1 as projectScriptOutline, c2 as projectSessionClock, c3 as resolveEntityRank, c4 as resolveEntityTier, c5 as resolveProfileRules, c6 as resolvePropertyDashboardWidgets, c7 as resolveSourceRank, c8 as resolveSourceTier, c9 as resolveVisualPolarity, ca as runMetricShakeOutQueue, cb as slugifyRefLabel, cc as str, cd as subDim, ce as synthesizeWorkoutFormat, cf as truthy, cg as wallClockNow } from './ScriptOutlineProjection-BnS5Xkgf.cjs';
|
|
5
5
|
import { Tree } from '@lezer/common';
|
|
6
6
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
7
7
|
import { CompletionSource, Completion } from '@codemirror/autocomplete';
|
|
@@ -312,6 +312,7 @@ declare class UnitsDialect implements IDialect {
|
|
|
312
312
|
declare class CrossFitDialect implements IDialect {
|
|
313
313
|
id: string;
|
|
314
314
|
name: string;
|
|
315
|
+
transform(statement: ICodeStatement): void;
|
|
315
316
|
/**
|
|
316
317
|
* Check if any Action or Effort metrics contains a keyword (case-insensitive)
|
|
317
318
|
*/
|
|
@@ -344,6 +345,7 @@ declare class CrossFitDialect implements IDialect {
|
|
|
344
345
|
declare class WodDialect implements IDialect {
|
|
345
346
|
id: string;
|
|
346
347
|
name: string;
|
|
348
|
+
transform(statement: ICodeStatement): void;
|
|
347
349
|
/** Case-insensitive keyword check on Action/Effort metrics */
|
|
348
350
|
private hasKeyword;
|
|
349
351
|
analyze(statement: ICodeStatement): DialectAnalysis;
|
|
@@ -592,6 +594,8 @@ interface RoundsPrimitive extends BasePrimitive {
|
|
|
592
594
|
kind: 'rounds';
|
|
593
595
|
sequence?: number[];
|
|
594
596
|
label?: string;
|
|
597
|
+
sequenceMeta?: SyntaxMeta;
|
|
598
|
+
labelMeta?: SyntaxMeta;
|
|
595
599
|
}
|
|
596
600
|
/**
|
|
597
601
|
* Inline NxM rounds scheme — `5x5` or `5 x 5` — lexed as one token so a bare
|
|
@@ -1432,6 +1436,7 @@ declare class OutputEmitter {
|
|
|
1432
1436
|
stack: IRuntimeStack;
|
|
1433
1437
|
script: WhiteboardScript;
|
|
1434
1438
|
}): void;
|
|
1439
|
+
private _bindEngineClock;
|
|
1435
1440
|
private _requireClock;
|
|
1436
1441
|
/**
|
|
1437
1442
|
* Add an output statement, run it through analytics enrichment, buffer it,
|
|
@@ -1473,6 +1478,8 @@ declare class OutputEmitter {
|
|
|
1473
1478
|
private emitLiveAnalytics;
|
|
1474
1479
|
/** Ephemeral Tier-2 (running-total) snapshot for live display; never persisted. */
|
|
1475
1480
|
getLiveAnalytics(): IOutputStatement[];
|
|
1481
|
+
/** Typed live Summary Metric projections directly from AnalyticsEngine. */
|
|
1482
|
+
getLiveProjections(): readonly ProjectionResult[];
|
|
1476
1483
|
dispose(): void;
|
|
1477
1484
|
/**
|
|
1478
1485
|
* Emit a `'load'` output for every statement in the script.
|
|
@@ -1791,9 +1798,11 @@ declare class SnapshotClock implements IRuntimeClock {
|
|
|
1791
1798
|
* - `start()`/`stop()`: Control methods that return timestamps for event creation
|
|
1792
1799
|
*/
|
|
1793
1800
|
declare class RuntimeClock implements IRuntimeClock {
|
|
1801
|
+
private readonly _now;
|
|
1794
1802
|
private _spans;
|
|
1803
|
+
constructor(_now?: INowProvider);
|
|
1795
1804
|
/**
|
|
1796
|
-
* Current
|
|
1805
|
+
* Current clock time as a Date (from injected `INowProvider`, defaulting to wall clock).
|
|
1797
1806
|
*/
|
|
1798
1807
|
get currentDate(): Date;
|
|
1799
1808
|
now(): Date;
|
|
@@ -2231,6 +2240,7 @@ interface CountupTimerConfig {
|
|
|
2231
2240
|
label?: string;
|
|
2232
2241
|
/** Timer role for display priority */
|
|
2233
2242
|
role?: 'primary' | 'secondary' | 'hidden' | 'auto';
|
|
2243
|
+
polarity?: TimerPolarity;
|
|
2234
2244
|
}
|
|
2235
2245
|
/**
|
|
2236
2246
|
* CountupTimerBehavior manages the full lifecycle of a count-up timer.
|
|
@@ -2288,6 +2298,8 @@ interface CountdownTimerConfig {
|
|
|
2288
2298
|
* `timer:skip-attempt` event instead of advancing the block.
|
|
2289
2299
|
*/
|
|
2290
2300
|
required?: boolean;
|
|
2301
|
+
/** Semantic Work vs Rest polarity stored in TimerState. */
|
|
2302
|
+
polarity?: TimerPolarity;
|
|
2291
2303
|
}
|
|
2292
2304
|
/**
|
|
2293
2305
|
* CountdownTimerBehavior manages the full lifecycle of a count-down timer.
|
|
@@ -2730,6 +2742,7 @@ interface TimerConfig {
|
|
|
2730
2742
|
durationMs?: number;
|
|
2731
2743
|
label?: string;
|
|
2732
2744
|
role?: 'primary' | 'secondary' | 'hidden' | 'auto';
|
|
2745
|
+
polarity?: 'work' | 'rest';
|
|
2733
2746
|
}
|
|
2734
2747
|
interface TimerCompletionConfig {
|
|
2735
2748
|
completesBlock?: boolean;
|
|
@@ -4631,11 +4644,16 @@ declare class AnalyticsEngine implements IAnalyticsEngine {
|
|
|
4631
4644
|
private outputHistory;
|
|
4632
4645
|
/** Emits a live 'analytics' snapshot per segment so the UI updates in real time. */
|
|
4633
4646
|
private _onLiveOutput?;
|
|
4647
|
+
private _liveProjections;
|
|
4634
4648
|
/**
|
|
4635
4649
|
* Signature of the last live projection emission. Used by finalize() to avoid
|
|
4636
4650
|
* re-emitting the same projections at session end. Timestamps are ignored.
|
|
4637
4651
|
*/
|
|
4638
4652
|
private _lastLiveProjectionSignature?;
|
|
4653
|
+
private _now;
|
|
4654
|
+
constructor(now?: INowProvider);
|
|
4655
|
+
setNowProvider(now: INowProvider): void;
|
|
4656
|
+
getLiveProjections(): readonly ProjectionResult[];
|
|
4639
4657
|
/**
|
|
4640
4658
|
* Wire a sink for live analytics outputs. The sink receives the FULL
|
|
4641
4659
|
* projection snapshot (a replaceable, ephemeral set) each time projections
|
|
@@ -5477,4 +5495,4 @@ declare function diffStatement(expected: MetricLine[], actual: readonly IMetric[
|
|
|
5477
5495
|
*/
|
|
5478
5496
|
declare function compareStatement(expectations: MetricLine[], actual: readonly IMetric[], mode: MatchMode): string[];
|
|
5479
5497
|
|
|
5480
|
-
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, calculateDuration, 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, formatDurationCompact, formatDurationSmart, formatRuntimeLogLine, formatRuntimeLogRule, formatRuntimeTimestamp, formatSecondsHHMMSS, formatSecondsMMSS, formatTime, formatTimeHHMMSS, formatTimeMMSS, formatTimePrecise, formatTimestamp, 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, resolveFusedEffortReferences, resolveSoundProfile, resolveTagContributions, roundToTenth, snippetCompletions, startSpan, strategyRegistry, summaryProcessorRegistry, tagCategoryRecordToDocument, tagCategoryToDocument, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, tagRecordToDocument, tagToDocument, toStoredOutputStatement, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptCompletion, whiteboardScriptCompletionSource, whiteboardScriptLanguage, whiteboardScriptSnippets, writeChoiceSelection };
|
|
5498
|
+
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, TimerPolarity, 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, calculateDuration, 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, formatDurationCompact, formatDurationSmart, formatRuntimeLogLine, formatRuntimeLogRule, formatRuntimeTimestamp, formatSecondsHHMMSS, formatSecondsMMSS, formatTime, formatTimeHHMMSS, formatTimeMMSS, formatTimePrecise, formatTimestamp, 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, resolveFusedEffortReferences, resolveSoundProfile, resolveTagContributions, roundToTenth, snippetCompletions, startSpan, strategyRegistry, summaryProcessorRegistry, tagCategoryRecordToDocument, tagCategoryToDocument, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, tagRecordToDocument, 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, TagTypeRecord, Tag, TagMetricContribution, IOutputStatement, OutputStatementType, BlockKey, TagReferenceMetadata, ScriptBlock, FenceDialect, Segment, AnalyticsGroup, StoredOutputStatement, OutputStatement, TimeSpan as TimeSpan$1 } 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,
|
|
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, P as ProjectionResult, 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, Q as IMemoryReference, V as RuntimeStackLogger, X as StackObserver, Y as StackSnapshot, Z as StackListener, _ as MemoryTypeEnum, $ as IAnchorValue, a0 as TimerPolarity, a1 as SoundProfile, a2 as ButtonConfig, a3 as IEventHandler, a4 as HandlerScope, a5 as IScriptRuntime, a6 as TestableBlockConfig, a7 as IRuntimeOptions, a8 as ScriptRuntime, a9 as EventHandlerOptions, aa as EventCallback, ab as TimerState, ac as CalculationDefinition, ad as PropertyRuleInput, ae as IRealtimeProcessor, af as ISummaryProcessor, ag as DimVector, ah as CalcLine, ai as ExprNode, aj as CalcScope, ak as ILookupTable, al as LookupRegistry, am as CalcRegistrationDiagnostic } from './ScriptOutlineProjection-BnS5Xkgf.js';
|
|
4
|
+
export { an as ABSENT, ao as BinaryOp, ap as ButtonVariant, aq as ButtonsState, ar as CalcEvalError, as as CalcNode, at as CalcOrigin, au as CalcVariant, av as ChildrenStatusState, aw as CompiledPropertySummaries, ax as CompletionState, ay as DEFAULT_RESOLVER_OPTIONS, az as DEFAULT_RUNTIME_OPTIONS, aA as DEFAULT_SOUND_PROFILE, aB as DIM_COUNT, aC as DIM_ENERGY, aD as DIM_LENGTH, aE as DIM_MASS, aF as DIM_TIME, aG as DIM_ZERO, aH as DISCIPLINE_FACTORS, aI as DisplayState, aJ as EFFORT_DISCIPLINES, aK as EFFORT_REGISTRY_ORIGINS, aL as EffortBaseAttributes, aM as EffortDerivation, aN as EffortDiscipline, aO as EffortMaterializer, aP as EffortResolvedFrom, aQ as EvalContext, aR as FenceDialect, aS as FragmentDisplayState, aT as FragmentState, aU as IAnalyticsProcessorDescriptor, aV as INTENSITY_TIERS, aW as IScript, aX as IntensityTier, aY as InterceptMode, aZ as LiveRoundSplitRow, a_ as LiveSessionTelemetryFrame, a$ as LiveSummaryMetric, b0 as LookupFieldDef, b1 as LookupLayer, b2 as MemoryLocation, b3 as MemoryType, b4 as MemoryTypeMap, b5 as MemoryValueOf, b6 as NAMED_COMPOUNDS, b7 as ProjectedRepTarget, b8 as ProjectedSecondaryTimer, b9 as PropertySourceLayer, ba as ReferenceCatalog, bb as ResolvedReferences, bc as RoundState, bd as RuntimeState, be as SEED_PRECEDENCE_RANK, bf as ScriptOutlineNode, bg as ScriptOutlineStatus, bh as ScriptRuntimeDependencies, bi as SeedPrecedenceTier, bj as SerializedTimerSpan, bk as SessionClockFrame, bl as SessionClockInputSignal, bm as SessionClockProjectionOptions, bn as SessionExecutionStatus, bo as SessionVisualPolarity, bp as ShakeOutQueueOptions, bq as ShakeOutResult, br as SkippedDependencyDiagnostic, bs as SoundRule, bt as SoundTriggerAnchor, bu as SoundTriggerPoint, bv as StackEvent, bw as StackedDashboardWidgetDescriptor, bx as TimerDirection, by as VISIBILITY_ICONS, bz as VISIBILITY_LABELS, bA as Val, bB as addDim, bC as compilePropertySummaryCalcs, bD as compilePropertySummaryCalcsWithDiagnostics, bE as compoundName, bF as createBrowserRuntimeNow, bG as createReferenceIndex, bH as dedupeEntitiesByPrecedence, bI as dimEquals, bJ as disciplineFactorFor, bK as evaluate, bL as extractPropertyRulesFromMeta, bM as extractStatementRefs, bN as extractTagPropertyRules, bO as filterTagsByVisibility, bP as formatDim, bQ as formatSoundTrigger, bR as frozenNow, bS as getMetricVisibility, bT as getRuntimeNowMs, bU as interpolateSessionClockFrame, bV as isDimensionless, bW as isEffortDiscipline, bX as isFragmentTag, bY as isRequiredCountdownLocked, bZ as num, b_ as observeSessionClockInputs, b$ as parseSoundTrigger, c0 as projectLiveSessionTelemetry, c1 as projectScriptOutline, c2 as projectSessionClock, c3 as resolveEntityRank, c4 as resolveEntityTier, c5 as resolveProfileRules, c6 as resolvePropertyDashboardWidgets, c7 as resolveSourceRank, c8 as resolveSourceTier, c9 as resolveVisualPolarity, ca as runMetricShakeOutQueue, cb as slugifyRefLabel, cc as str, cd as subDim, ce as synthesizeWorkoutFormat, cf as truthy, cg as wallClockNow } from './ScriptOutlineProjection-BnS5Xkgf.js';
|
|
5
5
|
import { Tree } from '@lezer/common';
|
|
6
6
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
7
7
|
import { CompletionSource, Completion } from '@codemirror/autocomplete';
|
|
@@ -312,6 +312,7 @@ declare class UnitsDialect implements IDialect {
|
|
|
312
312
|
declare class CrossFitDialect implements IDialect {
|
|
313
313
|
id: string;
|
|
314
314
|
name: string;
|
|
315
|
+
transform(statement: ICodeStatement): void;
|
|
315
316
|
/**
|
|
316
317
|
* Check if any Action or Effort metrics contains a keyword (case-insensitive)
|
|
317
318
|
*/
|
|
@@ -344,6 +345,7 @@ declare class CrossFitDialect implements IDialect {
|
|
|
344
345
|
declare class WodDialect implements IDialect {
|
|
345
346
|
id: string;
|
|
346
347
|
name: string;
|
|
348
|
+
transform(statement: ICodeStatement): void;
|
|
347
349
|
/** Case-insensitive keyword check on Action/Effort metrics */
|
|
348
350
|
private hasKeyword;
|
|
349
351
|
analyze(statement: ICodeStatement): DialectAnalysis;
|
|
@@ -592,6 +594,8 @@ interface RoundsPrimitive extends BasePrimitive {
|
|
|
592
594
|
kind: 'rounds';
|
|
593
595
|
sequence?: number[];
|
|
594
596
|
label?: string;
|
|
597
|
+
sequenceMeta?: SyntaxMeta;
|
|
598
|
+
labelMeta?: SyntaxMeta;
|
|
595
599
|
}
|
|
596
600
|
/**
|
|
597
601
|
* Inline NxM rounds scheme — `5x5` or `5 x 5` — lexed as one token so a bare
|
|
@@ -1432,6 +1436,7 @@ declare class OutputEmitter {
|
|
|
1432
1436
|
stack: IRuntimeStack;
|
|
1433
1437
|
script: WhiteboardScript;
|
|
1434
1438
|
}): void;
|
|
1439
|
+
private _bindEngineClock;
|
|
1435
1440
|
private _requireClock;
|
|
1436
1441
|
/**
|
|
1437
1442
|
* Add an output statement, run it through analytics enrichment, buffer it,
|
|
@@ -1473,6 +1478,8 @@ declare class OutputEmitter {
|
|
|
1473
1478
|
private emitLiveAnalytics;
|
|
1474
1479
|
/** Ephemeral Tier-2 (running-total) snapshot for live display; never persisted. */
|
|
1475
1480
|
getLiveAnalytics(): IOutputStatement[];
|
|
1481
|
+
/** Typed live Summary Metric projections directly from AnalyticsEngine. */
|
|
1482
|
+
getLiveProjections(): readonly ProjectionResult[];
|
|
1476
1483
|
dispose(): void;
|
|
1477
1484
|
/**
|
|
1478
1485
|
* Emit a `'load'` output for every statement in the script.
|
|
@@ -1791,9 +1798,11 @@ declare class SnapshotClock implements IRuntimeClock {
|
|
|
1791
1798
|
* - `start()`/`stop()`: Control methods that return timestamps for event creation
|
|
1792
1799
|
*/
|
|
1793
1800
|
declare class RuntimeClock implements IRuntimeClock {
|
|
1801
|
+
private readonly _now;
|
|
1794
1802
|
private _spans;
|
|
1803
|
+
constructor(_now?: INowProvider);
|
|
1795
1804
|
/**
|
|
1796
|
-
* Current
|
|
1805
|
+
* Current clock time as a Date (from injected `INowProvider`, defaulting to wall clock).
|
|
1797
1806
|
*/
|
|
1798
1807
|
get currentDate(): Date;
|
|
1799
1808
|
now(): Date;
|
|
@@ -2231,6 +2240,7 @@ interface CountupTimerConfig {
|
|
|
2231
2240
|
label?: string;
|
|
2232
2241
|
/** Timer role for display priority */
|
|
2233
2242
|
role?: 'primary' | 'secondary' | 'hidden' | 'auto';
|
|
2243
|
+
polarity?: TimerPolarity;
|
|
2234
2244
|
}
|
|
2235
2245
|
/**
|
|
2236
2246
|
* CountupTimerBehavior manages the full lifecycle of a count-up timer.
|
|
@@ -2288,6 +2298,8 @@ interface CountdownTimerConfig {
|
|
|
2288
2298
|
* `timer:skip-attempt` event instead of advancing the block.
|
|
2289
2299
|
*/
|
|
2290
2300
|
required?: boolean;
|
|
2301
|
+
/** Semantic Work vs Rest polarity stored in TimerState. */
|
|
2302
|
+
polarity?: TimerPolarity;
|
|
2291
2303
|
}
|
|
2292
2304
|
/**
|
|
2293
2305
|
* CountdownTimerBehavior manages the full lifecycle of a count-down timer.
|
|
@@ -2730,6 +2742,7 @@ interface TimerConfig {
|
|
|
2730
2742
|
durationMs?: number;
|
|
2731
2743
|
label?: string;
|
|
2732
2744
|
role?: 'primary' | 'secondary' | 'hidden' | 'auto';
|
|
2745
|
+
polarity?: 'work' | 'rest';
|
|
2733
2746
|
}
|
|
2734
2747
|
interface TimerCompletionConfig {
|
|
2735
2748
|
completesBlock?: boolean;
|
|
@@ -4631,11 +4644,16 @@ declare class AnalyticsEngine implements IAnalyticsEngine {
|
|
|
4631
4644
|
private outputHistory;
|
|
4632
4645
|
/** Emits a live 'analytics' snapshot per segment so the UI updates in real time. */
|
|
4633
4646
|
private _onLiveOutput?;
|
|
4647
|
+
private _liveProjections;
|
|
4634
4648
|
/**
|
|
4635
4649
|
* Signature of the last live projection emission. Used by finalize() to avoid
|
|
4636
4650
|
* re-emitting the same projections at session end. Timestamps are ignored.
|
|
4637
4651
|
*/
|
|
4638
4652
|
private _lastLiveProjectionSignature?;
|
|
4653
|
+
private _now;
|
|
4654
|
+
constructor(now?: INowProvider);
|
|
4655
|
+
setNowProvider(now: INowProvider): void;
|
|
4656
|
+
getLiveProjections(): readonly ProjectionResult[];
|
|
4639
4657
|
/**
|
|
4640
4658
|
* Wire a sink for live analytics outputs. The sink receives the FULL
|
|
4641
4659
|
* projection snapshot (a replaceable, ephemeral set) each time projections
|
|
@@ -5477,4 +5495,4 @@ declare function diffStatement(expected: MetricLine[], actual: readonly IMetric[
|
|
|
5477
5495
|
*/
|
|
5478
5496
|
declare function compareStatement(expectations: MetricLine[], actual: readonly IMetric[], mode: MatchMode): string[];
|
|
5479
5497
|
|
|
5480
|
-
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, calculateDuration, 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, formatDurationCompact, formatDurationSmart, formatRuntimeLogLine, formatRuntimeLogRule, formatRuntimeTimestamp, formatSecondsHHMMSS, formatSecondsMMSS, formatTime, formatTimeHHMMSS, formatTimeMMSS, formatTimePrecise, formatTimestamp, 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, resolveFusedEffortReferences, resolveSoundProfile, resolveTagContributions, roundToTenth, snippetCompletions, startSpan, strategyRegistry, summaryProcessorRegistry, tagCategoryRecordToDocument, tagCategoryToDocument, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, tagRecordToDocument, tagToDocument, toStoredOutputStatement, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptCompletion, whiteboardScriptCompletionSource, whiteboardScriptLanguage, whiteboardScriptSnippets, writeChoiceSelection };
|
|
5498
|
+
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, TimerPolarity, 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, calculateDuration, 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, formatDurationCompact, formatDurationSmart, formatRuntimeLogLine, formatRuntimeLogRule, formatRuntimeTimestamp, formatSecondsHHMMSS, formatSecondsMMSS, formatTime, formatTimeHHMMSS, formatTimeMMSS, formatTimePrecise, formatTimestamp, 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, resolveFusedEffortReferences, resolveSoundProfile, resolveTagContributions, roundToTenth, snippetCompletions, startSpan, strategyRegistry, summaryProcessorRegistry, tagCategoryRecordToDocument, tagCategoryToDocument, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, tagRecordToDocument, tagToDocument, toStoredOutputStatement, validateOutputUnit, parser as whiteboardParser, whiteboardScript, whiteboardScriptCompletion, whiteboardScriptCompletionSource, whiteboardScriptLanguage, whiteboardScriptSnippets, writeChoiceSelection };
|