@bitcobblers/wod-wiki-engine 0.59.2236 → 0.59.2240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,12 +1,32 @@
1
- import { IDialect, EventRecord, NoteBlock, NoteTelemetryBundleResult, NoteTelemetryBundle, Note as Note$1, NotebookId, NotebookLinkTargetKind, Tag, TagTypeRecord, TagIndex, OverridePropertyKind, ScopedPropertyOverride } from '@bitcobblers/wod-wiki-core';
1
+ import { EventRecord, Note, IDialect, NoteBlock, NoteTelemetryBundleResult, NoteTelemetryBundle, NotebookId, NotebookLinkTargetKind, Tag, TagTypeRecord, TagIndex, OverridePropertyKind, ScopedPropertyOverride, Session as Session$1, StoredOutputStatement } from '@bitcobblers/wod-wiki-core';
2
2
  export * from '@bitcobblers/wod-wiki-core';
3
3
  import { IRealtimeProcessor, ISummaryProcessor, IEffort, IEquipment, ReferenceIndex } from '@bitcobblers/wod-wiki-lang';
4
4
  export { ABSENT, AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AmrapLogicStrategy, AnalyticsContext, AnalyticsEngine, AnalyticsProfileContext, AnalyticsResult, AnalyticsTransformer, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BehaviorEventListener, BehaviorEventType, BlockBuilder, BlockContext, BlockLifecycleOptions, ButtonBehavior, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, CalcDefinition, CalcEngine, CalcOrigin, CalcScope, CalculationDefinition, CalculationRegistry, CardioDialect, ChildSelectionBehavior, ChildrenStrategy, ChoiceGroupMetric, ClimbDialect, ClimbMetricType, CompletionDecision, CountdownTimerBehavior, CountupTimerBehavior, CrossFitDialect, DAY, DEFAULT_RESOLVER_OPTIONS, DEFAULT_RUNTIME_OPTIONS, DEFAULT_SOUND_PROFILE, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, DayRollup, DialectStack, DimVector, EFFORT_DATA_METRIC_TYPE, EFFORT_REGISTRY_ORIGINS, EffortBaseAttributes, EffortDerivation, EffortFallbackStrategy, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, ErrorAction, EventBus, EventCallback, EventHandlerOptions, ExecutionContext, ExecutionStatus, ExitBehavior, ExprNode, FixtureSyntaxError, GenericGroupStrategy, GenericLoopStrategy, GenericTimerStrategy, HabitsDialect, IAnalyticsEngine, IAnalyticsProcessorDescriptor, IAnalyticsProfile, IAnchorValue, IBehaviorContext, IBlockContext, ICastSubscription, IEffort, IEffortRegistry, IEffortResolver, IEvent, IEventBus, IEventHandler, IJitCompiler, ILookupTable, IMemoryLocation, IMemoryReference, IMetricPresentationPolicy, INTENSITY_TIERS, INowProvider, IRealtimeProcessor, IRuntimeAction, IRuntimeActionable, IRuntimeBehavior, IRuntimeBlock, IRuntimeBlockStrategy, IRuntimeClock, IRuntimeEventProvider, IRuntimeFactory, IRuntimeMemory, IRuntimeStack, IRuntimeSubscription, IScript, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, IntensityTier, InterceptMode, IntervalLogicStrategy, JitCompiler, LabelingBehavior, LineFormScope, LiteralKind, LiveRoundSplitRow, LiveSessionTelemetryFrame, LiveSummaryMetric, LocalRuntimeSubscription, LookupRegistry, MAX_TAG_CONTRIBUTION_DEPTH, MatchMode, MdTimerRuntime, MemoryEntry, MemoryLocation, MemoryTag, MemoryTypeEnum, MetricLine, MetricPresentationSurface, MetricPresentationToken, MetricRenderKind, MetricTone, MetricVisibility, MockClock, NextEvent, OutputEmitter, OutputListener, PRODUCTION_STRATEGIES, PopBlockAction, ProjectedRepTarget, ProjectedSecondaryTimer, ProjectionResult, PropertyRuleInput, PropertySourceLayer, PushBlockAction, RegisterEventHandlerAction, Registry, ReportOutputBehavior, ReportOutputStrategy, ResolvedEffort, ResolvedEffortData, ResolvedTagContributions, RoundState, RoundsMetric, RuntimeAdapter, RuntimeBlock, RuntimeBlockOptions, RuntimeClock, RuntimeController, RuntimeError, RuntimeFactory, RuntimeLogger, RuntimeMemory, RuntimeObservers, RuntimeStack, RuntimeStackOptions, SEED_PRECEDENCE_RANK, SOUND_PLAY_EVENT, SOUND_PROFILE_METRIC, STORE_CALCS, STREAM_ATOMS, ScriptOutlineNode, ScriptOutlineStatus, ScriptRuntime, ScriptRuntimeDependencies, SeedPrecedenceTier, SegmentWithMetadata, SerializedTimerSpan, SessionClockFrame, SessionClockInputSignal, SessionClockProjectionOptions, SessionExecutionStatus, SessionRootStrategy, SessionVisualPolarity, ShakeOutResult, SkippedDependencyDiagnostic, SnapshotClock, SoundProfile, SoundProfileBehavior, SoundRule, SoundStrategy, SoundTriggerAnchor, SoundTriggerPoint, StackEvent, StackListener, StackObserver, StackSnapshot, StackedDashboardWidgetDescriptor, StandardAnalyticsProfile, StartSessionAction, StartSessionOptions, StartWorkoutAction, StatementMetricDiff, SubscribeOptions, SubscriptionManager, TAG_MARKER_PREFIX, TestableBlockConfig, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, VISIBILITY_ICONS, VISIBILITY_LABELS, Val, WhiteboardScript, WodDialect, YogaDialect, buildTooltip, bundledEfforts, calculateDuration, calculateElapsed, canonicalizeType, collapseUnresolvedChoices, compareStatement, compileLineForm, compilePropertySummaryCalcs, compoundName, computeColumnLabel, computeLabel, computeWorkloadRollups, createAnalyticsEngineForBlock, createCalcEngine, createCompiler, createDialectStack, createMetricPresentationPolicy, createMockClock, createParser, dailySessionLoads, dayBucket, dedupeEntitiesByPrecedence, dialectRegistry, dialectStack, diffStatement, evaluate, extractMetrics, extractPropertyRulesFromMeta, extractStatements, extractTagPropertyRules, findBestFuzzyMatch, findTagContributionCycles, findUnresolvedChoices, formatDurationCompact, formatDurationSmart, formatSecondsHHMMSS, formatSecondsMMSS, formatSoundTrigger, formatTime, formatTimeHHMMSS, formatTimeMMSS, formatTimePrecise, formatTimestamp, frozenNow, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getMetricVisibility, getRuntimeNowMs, hasHint, hintMetric, hintsToContainer, interpolateSessionClockFrame, isCastSubscription, isChoiceResolved, isRequiredCountdownLocked, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, normalizeForFuzzy, observeSessionClockInputs, outputNodeId, outputNodeIds, parseCalcLine, parseExpression, parseMetricLine, parseScript, parseSoundTrigger, projectLiveSessionTelemetry, projectScriptOutline, projectSessionClock, realtimeProcessorRegistry, renderMetric, resolveEntityRank, resolveEntityTier, resolveProfileRules, resolvePropertyDashboardWidgets, resolveSoundProfile, resolveSourceRank, resolveSourceTier, resolveTagContributions, resolveVisualPolarity, roundToTenth, runMetricShakeOutQueue, strategyRegistry, summaryProcessorRegistry, synthesizeWorkoutFormat, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, toStoredOutputStatement, truthy, wallClockNow, whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection } from '@bitcobblers/wod-wiki-lang';
5
- import { EventStore } from '@bitcobblers/wod-wiki-wql';
5
+ import { EffortQueryStore, FeedCatalogQueryStore, QueryServiceStores, EventStore } from '@bitcobblers/wod-wiki-wql';
6
6
  export { Aggregator, AnyParsedQuery, BlockQueryStore, BuildScopedDashboardOptions, ComparisonOp, DASHBOARD_GRID_MAX_COLS, DASHBOARD_WIDGET_TYPES, DEFAULT_DASHBOARD_TITLE, DEFAULT_NOTEBOOK_SLUGS, DashboardDocument, DashboardMeta, DashboardToken, DashboardWidget, EffortQueryStore, EntityScopeDescriptor, EntityScopeKind, EventStore, FeedCatalogQueryStore, FindOptions, FindPredicate, FindQueryResult, MetricPredicate, NoteQueryStore, NotebookId, PLANNED_WIDGET_TYPES, ParseQueryBlockOptions, ParsedAggregateQuery, ParsedFindQuery, ParsedPipelineQuery, ParsedRowsQuery, PipelineSink, PipelineSource, QueryBlockObject, QueryOptions, QueryResult, QuerySeriesSpec, QueryService, QueryServiceStores, QuerySortSpec, QueryViewKind, QueryWidgetSuffix, QueryWindow, ResolveEntityScopeInput, RowsQueryResult, RowsRun, ScalarOrParam, Series, SeriesPoint, TagFilter, TagValue, WQL_AGGREGATORS, WQL_CALC_TARGETS, WQL_CHART_HEADS, WQL_COMPARISON_OPS, WQL_CONTENT_FILTER_KEYS, WQL_DISPLAY_UNITS, WQL_FIND_TARGETS, WQL_FUNCTION_HEADS, WQL_GRAINS, WQL_INTENSITY_TIERS, WQL_KEYWORDS, WQL_METRIC_AGGREGATES, WQL_METRIC_FAMILIES, WQL_RESULT_PLANES, WQL_ROLLUP_PERIODS, WQL_SOURCES, WQL_SOURCE_HEADS, WQL_SOURCE_VALUES, WQL_STANDARD_DATASETS, WQL_TAG_KEYS, WQL_TYPED_TAG_KEYS, WQL_VIRTUAL_DIMS, WqlChartHead, WqlFindTarget, WqlSourceValue, bindQueryParams, buildDashboardDocument, buildDashboardFromScope, buildDashboardScaffold, buildWidgetsForWqlScope, collectQueryBlockParams, collectQueryParams, dashboardSlug, defaultTokenValues, extractDashboardTokens, extractNoteWqlOverride, isAggregateQuery, isDashboardMeta, isDashboardWidgetType, isDefaultShorthandQueryBlock, isFindQuery, isNoteEditable, isPipelineQuery, isYamlQueryBlockBody, normalizeWql, notebookOfItem, notebookSlugFromId, notebooksOfItem, parseFilterFragment, parseQuery, parseQueryBlock, parseQueryWidgetSuffix, parseWqlSuffixes, queryBlockAttributes, queryBlockToDocumentText, resolveEntityScope, resolveWidgetType, serialize, serializeQueryBlock, serializeQueryBlockFence, splitAtWhere, substituteTokens, toNotebookId, unknownTokensMessage, unknownWidgetTypeMessage, wql, wqlLanguage, wqlParser, wqlTerms } from '@bitcobblers/wod-wiki-wql';
7
- import { a as SeedRow, b as SeedManifest, c as SeedMetaRecord, N as NotebookIndex, d as FeedTreeReader, F as FeedTree } from './ir-CKImc4T0.cjs';
8
- export { C as CANVAS_CHUNK_ID, e as ChunkKind, f as CorpusIRData, D as DASHBOARDS_CHUNK_ID, g as DirectoryHandleFeedTree, E as EFFORTS_CHUNK_ID, h as EQUIPMENT_CHUNK_ID, i as ExecutionLog, j as FeedFileStat, k as FeedPath, l as FeedTreeError, m as FeedTreeErrorCode, n as FeedTreeWriter, o as FetchLike, p as FileSystemDirectoryHandleLike, q as FileSystemFileHandleLike, r as FileSystemWritableLike, H as HttpFeedTree, I as IrKind, M as ManifestChunk, s as MemoryFeedTree, t as MetricNode, u as NotebookIndexSummary, v as PortabilityImportReport, P as PortableFileEntry, w as PrepareJournalSessionRunInput, x as PreparedJournalSessionRun, R as ResolvedUpstreamProvenance, y as SEED_BROADCAST_CHANNEL, z as SEED_NAMESPACE, A as SEED_REGISTERED_WIDGETS, B as SEED_SCHEMA, G as SeedRecordRef, S as StatementNode, W as WodWikiIRFile, J as buildNoteProvenance, K as buildStatementTree, L as canvasRouteSlug, O as cloneRemoteRecord, Q as createIRFile, T as decodeUtf8, U as emptySeedMeta, V as encodeUtf8, X as exportPortableFilesFromStorage, Y as feedIdOfMetaKey, Z as getNotePublicationSummary, _ as ingestPortableFilesIntoStorage, $ as isIRFile, a0 as normalizeFeedTreePath, a1 as notebookSlugForChunkId, a2 as prepareJournalSessionRun, a3 as previewRemoteNotebook, a4 as previewRemoteRecord, a5 as resolveUpstreamProvenance, a6 as seedMetaKey, a7 as seedNoteSourceId, a8 as seedPrecedenceRank, a9 as seedSourceTier, aa as setNotebookPublic, ab as setSessionPublic, ac as sha256HexAsync, ad as statementToNode } from './ir-CKImc4T0.cjs';
9
- import { Session, Note, IStorage } from '@bitcobblers/wod-wiki-storage';
7
+ import { b as SeedRow, c as SeedManifest, d as SeedMetaRecord, N as NotebookIndex, e as FeedTreeReader, F as FeedTree } from './ir-CQnh_Tid.cjs';
8
+ export { C as CANVAS_CHUNK_ID, f as ChunkKind, g as CorpusIRData, D as DASHBOARDS_CHUNK_ID, h as DirectoryHandleFeedTree, E as EFFORTS_CHUNK_ID, i as EQUIPMENT_CHUNK_ID, j as ExecutionLog, k as FEED_SUBSCRIPTIONS_META_KEY, l as FeedFileStat, m as FeedPath, a as FeedSubscriptionEntry, n as FeedSubscriptionsMetaRecord, o as FeedTreeError, p as FeedTreeErrorCode, q as FeedTreeWriter, r as FetchLike, s as FileSystemDirectoryHandleLike, t as FileSystemFileHandleLike, u as FileSystemWritableLike, H as HttpFeedTree, I as IrKind, M as ManifestChunk, v as MemoryFeedTree, w as MetricNode, x as NotebookIndexSummary, y as PortabilityImportReport, P as PortableFileEntry, z as PrepareJournalSessionRunInput, A as PreparedJournalSessionRun, R as ResolvedUpstreamProvenance, B as SEED_BROADCAST_CHANNEL, G as SEED_NAMESPACE, J as SEED_REGISTERED_WIDGETS, K as SEED_SCHEMA, L as SeedRecordRef, S as StatementNode, W as WodWikiIRFile, O as buildNoteProvenance, Q as buildStatementTree, T as canvasRouteSlug, U as cloneRemoteRecord, V as createIRFile, X as decodeUtf8, Y as deleteFeedSourceHeadless, Z as emptySeedMeta, _ as encodeUtf8, $ as exportPortableFilesFromStorage, a0 as feedIdOfMetaKey, a1 as getNotePublicationSummary, a2 as ingestPortableFilesIntoStorage, a3 as isIRFile, a4 as listFeedSubscriptionsHeadless, a5 as normalizeFeedTreePath, a6 as notebookSlugForChunkId, a7 as prepareJournalSessionRun, a8 as previewRemoteNotebook, a9 as previewRemoteRecord, aa as removeSeedSourceContent, ab as resolveUpstreamProvenance, ac as seedMetaKey, ad as seedNoteSourceId, ae as seedPrecedenceRank, af as seedSourceTier, ag as setNotebookPublic, ah as setSessionPublic, ai as sha256HexAsync, aj as statementToNode, ak as subscribeFeedSourceHeadless, al as unsubscribeFeedSourceHeadless } from './ir-CQnh_Tid.cjs';
9
+ import { IStorage, Session, Note as Note$1, StoreName } from '@bitcobblers/wod-wiki-storage';
10
+ import { DomainWorld, DomainWorldInput } from '@bitcobblers/wod-wiki-core/testing';
11
+
12
+ type DatasetStore = {
13
+ getDataset(name: string): {
14
+ events: EventRecord[];
15
+ notes: Note[];
16
+ } | undefined;
17
+ };
18
+ interface BuildQueryServiceStoresOptions {
19
+ coalesce?: boolean;
20
+ effortStore?: EffortQueryStore;
21
+ feedCatalogStore?: FeedCatalogQueryStore;
22
+ datasetStore?: DatasetStore;
23
+ isNotebookSubscribed?: (feedId: string, chunkId: string) => Promise<boolean> | boolean;
24
+ }
25
+ /**
26
+ * Build a canonical `QueryServiceStores` adapter directly over any `IStorage`
27
+ * (`IndexedDBStorage`, `ApiStorage`, `SqlStorage`, or `InMemoryStorage`).
28
+ */
29
+ declare function buildQueryServiceStoresFromStorage(storage: IStorage, options?: BuildQueryServiceStoresOptions): QueryServiceStores;
10
30
 
11
31
  /**
12
32
  * Language Pack API — umbrella sugar over per-package slices
@@ -86,7 +106,7 @@ declare function parseFrontmatterDateMs(raw: string | undefined): number | undef
86
106
  */
87
107
  declare function injectIdentityFrontmatter(markdown: string, identity: NoteIdentity): string;
88
108
  /** Export the exact authored Note source, with YAML frontmatter identity for re-import and Feed repositories. */
89
- declare function composeNoteMarkdown(note: Note): string;
109
+ declare function composeNoteMarkdown(note: Note$1): string;
90
110
  interface ParsedNoteMarkdown {
91
111
  id?: string;
92
112
  title: string;
@@ -187,13 +207,13 @@ declare function csvToTelemetryBundle(csv: string): NoteTelemetryBundleResult;
187
207
  * Auto-generated build version metadata.
188
208
  * Do not edit directly; updated by scripts/stamp-version.ts
189
209
  */
190
- declare const VERSION = "0.59.2236";
191
- declare const GIT_SHA = "7b4743b";
192
- declare const BUILD_TIME = "2026-11-16T04:52:27.639Z";
210
+ declare const VERSION = "0.59.2240";
211
+ declare const GIT_SHA = "920602f";
212
+ declare const BUILD_TIME = "2026-11-17T14:03:29.403Z";
193
213
  declare const SEMVER: {
194
- readonly version: "0.59.2236";
195
- readonly gitSha: "7b4743b";
196
- readonly buildTime: "2026-11-16T04:52:27.639Z";
214
+ readonly version: "0.59.2240";
215
+ readonly gitSha: "920602f";
216
+ readonly buildTime: "2026-11-17T14:03:29.403Z";
197
217
  };
198
218
 
199
219
  declare function seedNoteId(path: string): Promise<string>;
@@ -361,6 +381,8 @@ interface PublishFeedOptions {
361
381
  builtAt?: string;
362
382
  /** Update the storage checkpoint (`publish:local-feed`) on completion (default true when layout === 'feed'). */
363
383
  recordCheckpoint?: boolean;
384
+ /** Optional abort signal to cancel long-running feed compilation on timeout. */
385
+ signal?: AbortSignal;
364
386
  }
365
387
  interface PublishFeedReport {
366
388
  manifest: SeedManifest;
@@ -382,6 +404,8 @@ interface UnpublishedFeedStatus {
382
404
  status: 'added' | 'modified' | 'removed';
383
405
  }>;
384
406
  }
407
+ /** Persist the published-feed checkpoint in the `meta` store after a successful publish/export. */
408
+ declare function recordPublishedFeedCheckpoint(storage: IStorage, report: Pick<PublishFeedReport, 'manifest' | 'manifestSha256'>): Promise<void>;
385
409
  declare function publishFeedFromStorage(storage: IStorage, tree: FeedTree, options?: PublishFeedOptions): Promise<PublishFeedReport>;
386
410
  /**
387
411
  * Compare current public Notebooks & public Sessions in `storage` against the last
@@ -421,7 +445,7 @@ interface PromoteNoteToNotebooksInput {
421
445
  shareSessionsPublicly?: boolean;
422
446
  }
423
447
  interface PromoteNoteResult {
424
- note: Note$1;
448
+ note: Note;
425
449
  notebookIds: NotebookId[];
426
450
  promotedSessionIds: string[];
427
451
  }
@@ -470,7 +494,7 @@ interface SaveScopedPropertyOverrideInput {
470
494
  category?: string;
471
495
  }
472
496
  interface PropertyResolutionContext {
473
- note?: Pick<Note$1, 'id' | 'notebookId' | 'notebookIds' | 'provenance' | 'feedSourceId' | 'sourceId' | 'sourcePath'>;
497
+ note?: Pick<Note, 'id' | 'notebookId' | 'notebookIds' | 'provenance' | 'feedSourceId' | 'sourceId' | 'sourcePath'>;
474
498
  notebookId?: string;
475
499
  mode?: PropertyInheritanceMode;
476
500
  }
@@ -504,4 +528,64 @@ declare function promoteReferencedOverridesToNotebook(storage: IStorage, input:
504
528
  tagSlugs?: Iterable<string>;
505
529
  }): Promise<ScopedPropertyOverride[]>;
506
530
 
507
- export { APP_ORIGIN, BUILD_TIME, type FeedLandingData, FeedTree, FeedTreeReader, GIT_SHA, type LandingNote, type LandingNotebook, type LanguagePack, type LanguagePackIdentity, type LanguagePackLangSlice, type LanguagePackUiSlice, NOTE_ID_FRONTMATTER_KEY, type NoteIdentity, NotebookIndex, PUBLISHED_FEED_META_KEY, type ParsedNoteMarkdown, type PromoteNoteResult, type PromoteNoteToNotebooksInput, type PropertyInheritanceMode, type PropertyResolutionContext, type PublishFeedOptions, type PublishFeedReport, type PublishedFeedCheckpoint, QR_SCRIPT_ID, type ResolvedScopedCatalog, SEMVER, SESSION_CSV_HEADER, type SaveScopedPropertyOverrideInput, type SeedChunkResult, type SeedChunkWrite, SeedManifest, SeedMetaRecord, SeedRow, type SessionImportRows, TELEMETRY_CSV_HEADER, type TypedTagItem, type UnpublishedFeedStatus, VERSION, applySeedChunk, applySeedChunks, assertNotebookIndex, assertSeedManifest, assertSeedRow, assertSeedRows, backfillFeedProvenance, checkUnpublishedFeedChanges, composeNoteMarkdown, createUserNotebookLanding, csvToEquipmentLabels, csvToSessionRows, csvToTelemetryBundle, defineLanguagePack, effortToMarkdown, equipmentToCsv, equipmentToMarkdown, extractNoteIdentity, extractTypedTags, getNoteNotebooks, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, listLanguagePacks, listScopedPropertyOverrides, makeNotebookLinkId, makeScopedOverrideId, migrateNotebookVocabulary, parseCsvLine, parseFrontmatterDateMs, parseNoteMarkdown, promoteNoteToNotebooks, promoteReferencedOverridesToNotebook, publishFeedFromStorage, qrInlineScript, readFrontmatterMeta, registerLanguagePack, removeNoteFromNotebook, renderFeedLandingHtml, resolveScopedPropertyCatalog, saveScopedPropertyOverride, seedNoteId, sessionToCsv, setNoteNotebooks, splitCsvRecords, telemetryBundleToCsv, unregisterLanguagePack };
531
+ declare const PERSIST_WORLD_STORES: StoreName[];
532
+ /**
533
+ * Persists a complete domain world snapshot to storage in a single transaction.
534
+ * Projects bundled/defaults efforts & equipment, and projects property overrides into tags & tag_types.
535
+ */
536
+ declare function persistDomainWorld(storage: IStorage, worldInput?: DomainWorld | DomainWorldInput): Promise<DomainWorld>;
537
+
538
+ /**
539
+ * sampleCorpus.ts — Shared sample analytics dataset for WOD Wiki.
540
+ *
541
+ * Provides a rich, genuine 16-week training block with benchmarks (Fran, Cindy,
542
+ * Annie), strength accessories (back-squat, bench-press, deadlift), endurance
543
+ * sessions (running, rowing), climbing/hangboard, and daily wellness/workload
544
+ * rollups.
545
+ *
546
+ * Emits notes, session results, raw event records, and summary event records
547
+ * compatible with DomainScenarioHarness, persistDomainWorld, and QueryService.
548
+ */
549
+
550
+ declare const SAMPLE_TAG = "sample";
551
+ declare function round1(n: number): number;
552
+ interface SampleMovement {
553
+ effortSlug: string;
554
+ discipline: string;
555
+ reps: number;
556
+ /** In pounds; 0 for bodyweight/cardio. */
557
+ loadLbs: number;
558
+ tisSeconds: number;
559
+ distanceMeters?: number;
560
+ grade?: string;
561
+ }
562
+ type SampleWorkoutType = 'fran' | 'cindy' | 'annie' | 'rowing' | 'running' | 'strength' | 'recoveryRun' | 'hangboard';
563
+ interface SampleSession {
564
+ noteId: string;
565
+ title: string;
566
+ workoutType: SampleWorkoutType;
567
+ timestamp: number;
568
+ durationSeconds: number;
569
+ movements: SampleMovement[];
570
+ tags: string[];
571
+ }
572
+ interface SampleBundle {
573
+ bundle: NoteTelemetryBundle;
574
+ rawContent: string;
575
+ blocks: Record<string, NoteBlock>;
576
+ result: Session$1;
577
+ rawEvents: EventRecord[];
578
+ summaries: EventRecord[];
579
+ }
580
+ /**
581
+ * Generate a complete 16-week training block of sample sessions.
582
+ */
583
+ declare function generateSampleSessions(anchorNow?: number): SampleSession[];
584
+ declare function buildSessionLogs(session: SampleSession): StoredOutputStatement[];
585
+ declare function buildSampleBundle(session: SampleSession, now?: number): SampleBundle;
586
+ /**
587
+ * Build a complete DomainWorldInput containing all sample notes, sessions, and events.
588
+ */
589
+ declare function buildSampleWorld(anchorNow?: number): DomainWorldInput;
590
+
591
+ export { APP_ORIGIN, BUILD_TIME, type BuildQueryServiceStoresOptions, type DatasetStore, type FeedLandingData, FeedTree, FeedTreeReader, GIT_SHA, type LandingNote, type LandingNotebook, type LanguagePack, type LanguagePackIdentity, type LanguagePackLangSlice, type LanguagePackUiSlice, NOTE_ID_FRONTMATTER_KEY, type NoteIdentity, NotebookIndex, PERSIST_WORLD_STORES, PUBLISHED_FEED_META_KEY, type ParsedNoteMarkdown, type PromoteNoteResult, type PromoteNoteToNotebooksInput, type PropertyInheritanceMode, type PropertyResolutionContext, type PublishFeedOptions, type PublishFeedReport, type PublishedFeedCheckpoint, QR_SCRIPT_ID, type ResolvedScopedCatalog, SAMPLE_TAG, SEMVER, SESSION_CSV_HEADER, type SampleBundle, type SampleMovement, type SampleSession, type SampleWorkoutType, type SaveScopedPropertyOverrideInput, type SeedChunkResult, type SeedChunkWrite, SeedManifest, SeedMetaRecord, SeedRow, type SessionImportRows, TELEMETRY_CSV_HEADER, type TypedTagItem, type UnpublishedFeedStatus, VERSION, applySeedChunk, applySeedChunks, assertNotebookIndex, assertSeedManifest, assertSeedRow, assertSeedRows, backfillFeedProvenance, buildQueryServiceStoresFromStorage, buildSampleBundle, buildSampleWorld, buildSessionLogs, checkUnpublishedFeedChanges, composeNoteMarkdown, createUserNotebookLanding, csvToEquipmentLabels, csvToSessionRows, csvToTelemetryBundle, defineLanguagePack, effortToMarkdown, equipmentToCsv, equipmentToMarkdown, extractNoteIdentity, extractTypedTags, generateSampleSessions, getNoteNotebooks, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, listLanguagePacks, listScopedPropertyOverrides, makeNotebookLinkId, makeScopedOverrideId, migrateNotebookVocabulary, parseCsvLine, parseFrontmatterDateMs, parseNoteMarkdown, persistDomainWorld, promoteNoteToNotebooks, promoteReferencedOverridesToNotebook, publishFeedFromStorage, qrInlineScript, readFrontmatterMeta, recordPublishedFeedCheckpoint, registerLanguagePack, removeNoteFromNotebook, renderFeedLandingHtml, resolveScopedPropertyCatalog, round1, saveScopedPropertyOverride, seedNoteId, sessionToCsv, setNoteNotebooks, splitCsvRecords, telemetryBundleToCsv, unregisterLanguagePack };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,32 @@
1
- import { IDialect, EventRecord, NoteBlock, NoteTelemetryBundleResult, NoteTelemetryBundle, Note as Note$1, NotebookId, NotebookLinkTargetKind, Tag, TagTypeRecord, TagIndex, OverridePropertyKind, ScopedPropertyOverride } from '@bitcobblers/wod-wiki-core';
1
+ import { EventRecord, Note, IDialect, NoteBlock, NoteTelemetryBundleResult, NoteTelemetryBundle, NotebookId, NotebookLinkTargetKind, Tag, TagTypeRecord, TagIndex, OverridePropertyKind, ScopedPropertyOverride, Session as Session$1, StoredOutputStatement } from '@bitcobblers/wod-wiki-core';
2
2
  export * from '@bitcobblers/wod-wiki-core';
3
3
  import { IRealtimeProcessor, ISummaryProcessor, IEffort, IEquipment, ReferenceIndex } from '@bitcobblers/wod-wiki-lang';
4
4
  export { ABSENT, AGGREGATE_BUILTINS, AUTHORITATIVE_CASTS, AmrapLogicStrategy, AnalyticsContext, AnalyticsEngine, AnalyticsProfileContext, AnalyticsResult, AnalyticsTransformer, BUILTIN_CALCS, BUNDLED_EFFORT_COUNT, BehaviorContext, BehaviorEventListener, BehaviorEventType, BlockBuilder, BlockContext, BlockLifecycleOptions, ButtonBehavior, CONSUMED_HINTS, CONSUMED_HINT_KEYS, CONTEXT_ATOMS, CalcDefinition, CalcEngine, CalcOrigin, CalcScope, CalculationDefinition, CalculationRegistry, CardioDialect, ChildSelectionBehavior, ChildrenStrategy, ChoiceGroupMetric, ClimbDialect, ClimbMetricType, CompletionDecision, CountdownTimerBehavior, CountupTimerBehavior, CrossFitDialect, DAY, DEFAULT_RESOLVER_OPTIONS, DEFAULT_RUNTIME_OPTIONS, DEFAULT_SOUND_PROFILE, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, DayRollup, DialectStack, DimVector, EFFORT_DATA_METRIC_TYPE, EFFORT_REGISTRY_ORIGINS, EffortBaseAttributes, EffortDerivation, EffortFallbackStrategy, EffortRegistrySource, EffortResolutionOptions, EffortResolver, EffortResolverOptions, ErrorAction, EventBus, EventCallback, EventHandlerOptions, ExecutionContext, ExecutionStatus, ExitBehavior, ExprNode, FixtureSyntaxError, GenericGroupStrategy, GenericLoopStrategy, GenericTimerStrategy, HabitsDialect, IAnalyticsEngine, IAnalyticsProcessorDescriptor, IAnalyticsProfile, IAnchorValue, IBehaviorContext, IBlockContext, ICastSubscription, IEffort, IEffortRegistry, IEffortResolver, IEvent, IEventBus, IEventHandler, IJitCompiler, ILookupTable, IMemoryLocation, IMemoryReference, IMetricPresentationPolicy, INTENSITY_TIERS, INowProvider, IRealtimeProcessor, IRuntimeAction, IRuntimeActionable, IRuntimeBehavior, IRuntimeBlock, IRuntimeBlockStrategy, IRuntimeClock, IRuntimeEventProvider, IRuntimeFactory, IRuntimeMemory, IRuntimeStack, IRuntimeSubscription, IScript, IScriptRuntime, ISummaryProcessor, InMemoryEffortRegistry, IntensityTier, InterceptMode, IntervalLogicStrategy, JitCompiler, LabelingBehavior, LineFormScope, LiteralKind, LiveRoundSplitRow, LiveSessionTelemetryFrame, LiveSummaryMetric, LocalRuntimeSubscription, LookupRegistry, MAX_TAG_CONTRIBUTION_DEPTH, MatchMode, MdTimerRuntime, MemoryEntry, MemoryLocation, MemoryTag, MemoryTypeEnum, MetricLine, MetricPresentationSurface, MetricPresentationToken, MetricRenderKind, MetricTone, MetricVisibility, MockClock, NextEvent, OutputEmitter, OutputListener, PRODUCTION_STRATEGIES, PopBlockAction, ProjectedRepTarget, ProjectedSecondaryTimer, ProjectionResult, PropertyRuleInput, PropertySourceLayer, PushBlockAction, RegisterEventHandlerAction, Registry, ReportOutputBehavior, ReportOutputStrategy, ResolvedEffort, ResolvedEffortData, ResolvedTagContributions, RoundState, RoundsMetric, RuntimeAdapter, RuntimeBlock, RuntimeBlockOptions, RuntimeClock, RuntimeController, RuntimeError, RuntimeFactory, RuntimeLogger, RuntimeMemory, RuntimeObservers, RuntimeStack, RuntimeStackOptions, SEED_PRECEDENCE_RANK, SOUND_PLAY_EVENT, SOUND_PROFILE_METRIC, STORE_CALCS, STREAM_ATOMS, ScriptOutlineNode, ScriptOutlineStatus, ScriptRuntime, ScriptRuntimeDependencies, SeedPrecedenceTier, SegmentWithMetadata, SerializedTimerSpan, SessionClockFrame, SessionClockInputSignal, SessionClockProjectionOptions, SessionExecutionStatus, SessionRootStrategy, SessionVisualPolarity, ShakeOutResult, SkippedDependencyDiagnostic, SnapshotClock, SoundProfile, SoundProfileBehavior, SoundRule, SoundStrategy, SoundTriggerAnchor, SoundTriggerPoint, StackEvent, StackListener, StackObserver, StackSnapshot, StackedDashboardWidgetDescriptor, StandardAnalyticsProfile, StartSessionAction, StartSessionOptions, StartWorkoutAction, StatementMetricDiff, SubscribeOptions, SubscriptionManager, TAG_MARKER_PREFIX, TestableBlockConfig, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, VISIBILITY_ICONS, VISIBILITY_LABELS, Val, WhiteboardScript, WodDialect, YogaDialect, buildTooltip, bundledEfforts, calculateDuration, calculateElapsed, canonicalizeType, collapseUnresolvedChoices, compareStatement, compileLineForm, compilePropertySummaryCalcs, compoundName, computeColumnLabel, computeLabel, computeWorkloadRollups, createAnalyticsEngineForBlock, createCalcEngine, createCompiler, createDialectStack, createMetricPresentationPolicy, createMockClock, createParser, dailySessionLoads, dayBucket, dedupeEntitiesByPrecedence, dialectRegistry, dialectStack, diffStatement, evaluate, extractMetrics, extractPropertyRulesFromMeta, extractStatements, extractTagPropertyRules, findBestFuzzyMatch, findTagContributionCycles, findUnresolvedChoices, formatDurationCompact, formatDurationSmart, formatSecondsHHMMSS, formatSecondsMMSS, formatSoundTrigger, formatTime, formatTimeHHMMSS, formatTimeMMSS, formatTimePrecise, formatTimestamp, frozenNow, getAnalyticsFromLogs, getAnalyticsFromRuntime, getHints, getMetricVisibility, getRuntimeNowMs, hasHint, hintMetric, hintsToContainer, interpolateSessionClockFrame, isCastSubscription, isChoiceResolved, isRequiredCountdownLocked, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, normalizeForFuzzy, observeSessionClockInputs, outputNodeId, outputNodeIds, parseCalcLine, parseExpression, parseMetricLine, parseScript, parseSoundTrigger, projectLiveSessionTelemetry, projectScriptOutline, projectSessionClock, realtimeProcessorRegistry, renderMetric, resolveEntityRank, resolveEntityTier, resolveProfileRules, resolvePropertyDashboardWidgets, resolveSoundProfile, resolveSourceRank, resolveSourceTier, resolveTagContributions, resolveVisualPolarity, roundToTenth, runMetricShakeOutQueue, strategyRegistry, summaryProcessorRegistry, synthesizeWorkoutFormat, tagContributionMetrics, tagMarkerSlug, tagMarkerSlugs, tagMarkerType, toStoredOutputStatement, truthy, wallClockNow, whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection } from '@bitcobblers/wod-wiki-lang';
5
- import { EventStore } from '@bitcobblers/wod-wiki-wql';
5
+ import { EffortQueryStore, FeedCatalogQueryStore, QueryServiceStores, EventStore } from '@bitcobblers/wod-wiki-wql';
6
6
  export { Aggregator, AnyParsedQuery, BlockQueryStore, BuildScopedDashboardOptions, ComparisonOp, DASHBOARD_GRID_MAX_COLS, DASHBOARD_WIDGET_TYPES, DEFAULT_DASHBOARD_TITLE, DEFAULT_NOTEBOOK_SLUGS, DashboardDocument, DashboardMeta, DashboardToken, DashboardWidget, EffortQueryStore, EntityScopeDescriptor, EntityScopeKind, EventStore, FeedCatalogQueryStore, FindOptions, FindPredicate, FindQueryResult, MetricPredicate, NoteQueryStore, NotebookId, PLANNED_WIDGET_TYPES, ParseQueryBlockOptions, ParsedAggregateQuery, ParsedFindQuery, ParsedPipelineQuery, ParsedRowsQuery, PipelineSink, PipelineSource, QueryBlockObject, QueryOptions, QueryResult, QuerySeriesSpec, QueryService, QueryServiceStores, QuerySortSpec, QueryViewKind, QueryWidgetSuffix, QueryWindow, ResolveEntityScopeInput, RowsQueryResult, RowsRun, ScalarOrParam, Series, SeriesPoint, TagFilter, TagValue, WQL_AGGREGATORS, WQL_CALC_TARGETS, WQL_CHART_HEADS, WQL_COMPARISON_OPS, WQL_CONTENT_FILTER_KEYS, WQL_DISPLAY_UNITS, WQL_FIND_TARGETS, WQL_FUNCTION_HEADS, WQL_GRAINS, WQL_INTENSITY_TIERS, WQL_KEYWORDS, WQL_METRIC_AGGREGATES, WQL_METRIC_FAMILIES, WQL_RESULT_PLANES, WQL_ROLLUP_PERIODS, WQL_SOURCES, WQL_SOURCE_HEADS, WQL_SOURCE_VALUES, WQL_STANDARD_DATASETS, WQL_TAG_KEYS, WQL_TYPED_TAG_KEYS, WQL_VIRTUAL_DIMS, WqlChartHead, WqlFindTarget, WqlSourceValue, bindQueryParams, buildDashboardDocument, buildDashboardFromScope, buildDashboardScaffold, buildWidgetsForWqlScope, collectQueryBlockParams, collectQueryParams, dashboardSlug, defaultTokenValues, extractDashboardTokens, extractNoteWqlOverride, isAggregateQuery, isDashboardMeta, isDashboardWidgetType, isDefaultShorthandQueryBlock, isFindQuery, isNoteEditable, isPipelineQuery, isYamlQueryBlockBody, normalizeWql, notebookOfItem, notebookSlugFromId, notebooksOfItem, parseFilterFragment, parseQuery, parseQueryBlock, parseQueryWidgetSuffix, parseWqlSuffixes, queryBlockAttributes, queryBlockToDocumentText, resolveEntityScope, resolveWidgetType, serialize, serializeQueryBlock, serializeQueryBlockFence, splitAtWhere, substituteTokens, toNotebookId, unknownTokensMessage, unknownWidgetTypeMessage, wql, wqlLanguage, wqlParser, wqlTerms } from '@bitcobblers/wod-wiki-wql';
7
- import { a as SeedRow, b as SeedManifest, c as SeedMetaRecord, N as NotebookIndex, d as FeedTreeReader, F as FeedTree } from './ir-CKImc4T0.js';
8
- export { C as CANVAS_CHUNK_ID, e as ChunkKind, f as CorpusIRData, D as DASHBOARDS_CHUNK_ID, g as DirectoryHandleFeedTree, E as EFFORTS_CHUNK_ID, h as EQUIPMENT_CHUNK_ID, i as ExecutionLog, j as FeedFileStat, k as FeedPath, l as FeedTreeError, m as FeedTreeErrorCode, n as FeedTreeWriter, o as FetchLike, p as FileSystemDirectoryHandleLike, q as FileSystemFileHandleLike, r as FileSystemWritableLike, H as HttpFeedTree, I as IrKind, M as ManifestChunk, s as MemoryFeedTree, t as MetricNode, u as NotebookIndexSummary, v as PortabilityImportReport, P as PortableFileEntry, w as PrepareJournalSessionRunInput, x as PreparedJournalSessionRun, R as ResolvedUpstreamProvenance, y as SEED_BROADCAST_CHANNEL, z as SEED_NAMESPACE, A as SEED_REGISTERED_WIDGETS, B as SEED_SCHEMA, G as SeedRecordRef, S as StatementNode, W as WodWikiIRFile, J as buildNoteProvenance, K as buildStatementTree, L as canvasRouteSlug, O as cloneRemoteRecord, Q as createIRFile, T as decodeUtf8, U as emptySeedMeta, V as encodeUtf8, X as exportPortableFilesFromStorage, Y as feedIdOfMetaKey, Z as getNotePublicationSummary, _ as ingestPortableFilesIntoStorage, $ as isIRFile, a0 as normalizeFeedTreePath, a1 as notebookSlugForChunkId, a2 as prepareJournalSessionRun, a3 as previewRemoteNotebook, a4 as previewRemoteRecord, a5 as resolveUpstreamProvenance, a6 as seedMetaKey, a7 as seedNoteSourceId, a8 as seedPrecedenceRank, a9 as seedSourceTier, aa as setNotebookPublic, ab as setSessionPublic, ac as sha256HexAsync, ad as statementToNode } from './ir-CKImc4T0.js';
9
- import { Session, Note, IStorage } from '@bitcobblers/wod-wiki-storage';
7
+ import { b as SeedRow, c as SeedManifest, d as SeedMetaRecord, N as NotebookIndex, e as FeedTreeReader, F as FeedTree } from './ir-CQnh_Tid.js';
8
+ export { C as CANVAS_CHUNK_ID, f as ChunkKind, g as CorpusIRData, D as DASHBOARDS_CHUNK_ID, h as DirectoryHandleFeedTree, E as EFFORTS_CHUNK_ID, i as EQUIPMENT_CHUNK_ID, j as ExecutionLog, k as FEED_SUBSCRIPTIONS_META_KEY, l as FeedFileStat, m as FeedPath, a as FeedSubscriptionEntry, n as FeedSubscriptionsMetaRecord, o as FeedTreeError, p as FeedTreeErrorCode, q as FeedTreeWriter, r as FetchLike, s as FileSystemDirectoryHandleLike, t as FileSystemFileHandleLike, u as FileSystemWritableLike, H as HttpFeedTree, I as IrKind, M as ManifestChunk, v as MemoryFeedTree, w as MetricNode, x as NotebookIndexSummary, y as PortabilityImportReport, P as PortableFileEntry, z as PrepareJournalSessionRunInput, A as PreparedJournalSessionRun, R as ResolvedUpstreamProvenance, B as SEED_BROADCAST_CHANNEL, G as SEED_NAMESPACE, J as SEED_REGISTERED_WIDGETS, K as SEED_SCHEMA, L as SeedRecordRef, S as StatementNode, W as WodWikiIRFile, O as buildNoteProvenance, Q as buildStatementTree, T as canvasRouteSlug, U as cloneRemoteRecord, V as createIRFile, X as decodeUtf8, Y as deleteFeedSourceHeadless, Z as emptySeedMeta, _ as encodeUtf8, $ as exportPortableFilesFromStorage, a0 as feedIdOfMetaKey, a1 as getNotePublicationSummary, a2 as ingestPortableFilesIntoStorage, a3 as isIRFile, a4 as listFeedSubscriptionsHeadless, a5 as normalizeFeedTreePath, a6 as notebookSlugForChunkId, a7 as prepareJournalSessionRun, a8 as previewRemoteNotebook, a9 as previewRemoteRecord, aa as removeSeedSourceContent, ab as resolveUpstreamProvenance, ac as seedMetaKey, ad as seedNoteSourceId, ae as seedPrecedenceRank, af as seedSourceTier, ag as setNotebookPublic, ah as setSessionPublic, ai as sha256HexAsync, aj as statementToNode, ak as subscribeFeedSourceHeadless, al as unsubscribeFeedSourceHeadless } from './ir-CQnh_Tid.js';
9
+ import { IStorage, Session, Note as Note$1, StoreName } from '@bitcobblers/wod-wiki-storage';
10
+ import { DomainWorld, DomainWorldInput } from '@bitcobblers/wod-wiki-core/testing';
11
+
12
+ type DatasetStore = {
13
+ getDataset(name: string): {
14
+ events: EventRecord[];
15
+ notes: Note[];
16
+ } | undefined;
17
+ };
18
+ interface BuildQueryServiceStoresOptions {
19
+ coalesce?: boolean;
20
+ effortStore?: EffortQueryStore;
21
+ feedCatalogStore?: FeedCatalogQueryStore;
22
+ datasetStore?: DatasetStore;
23
+ isNotebookSubscribed?: (feedId: string, chunkId: string) => Promise<boolean> | boolean;
24
+ }
25
+ /**
26
+ * Build a canonical `QueryServiceStores` adapter directly over any `IStorage`
27
+ * (`IndexedDBStorage`, `ApiStorage`, `SqlStorage`, or `InMemoryStorage`).
28
+ */
29
+ declare function buildQueryServiceStoresFromStorage(storage: IStorage, options?: BuildQueryServiceStoresOptions): QueryServiceStores;
10
30
 
11
31
  /**
12
32
  * Language Pack API — umbrella sugar over per-package slices
@@ -86,7 +106,7 @@ declare function parseFrontmatterDateMs(raw: string | undefined): number | undef
86
106
  */
87
107
  declare function injectIdentityFrontmatter(markdown: string, identity: NoteIdentity): string;
88
108
  /** Export the exact authored Note source, with YAML frontmatter identity for re-import and Feed repositories. */
89
- declare function composeNoteMarkdown(note: Note): string;
109
+ declare function composeNoteMarkdown(note: Note$1): string;
90
110
  interface ParsedNoteMarkdown {
91
111
  id?: string;
92
112
  title: string;
@@ -187,13 +207,13 @@ declare function csvToTelemetryBundle(csv: string): NoteTelemetryBundleResult;
187
207
  * Auto-generated build version metadata.
188
208
  * Do not edit directly; updated by scripts/stamp-version.ts
189
209
  */
190
- declare const VERSION = "0.59.2236";
191
- declare const GIT_SHA = "7b4743b";
192
- declare const BUILD_TIME = "2026-11-16T04:52:27.639Z";
210
+ declare const VERSION = "0.59.2240";
211
+ declare const GIT_SHA = "920602f";
212
+ declare const BUILD_TIME = "2026-11-17T14:03:29.403Z";
193
213
  declare const SEMVER: {
194
- readonly version: "0.59.2236";
195
- readonly gitSha: "7b4743b";
196
- readonly buildTime: "2026-11-16T04:52:27.639Z";
214
+ readonly version: "0.59.2240";
215
+ readonly gitSha: "920602f";
216
+ readonly buildTime: "2026-11-17T14:03:29.403Z";
197
217
  };
198
218
 
199
219
  declare function seedNoteId(path: string): Promise<string>;
@@ -361,6 +381,8 @@ interface PublishFeedOptions {
361
381
  builtAt?: string;
362
382
  /** Update the storage checkpoint (`publish:local-feed`) on completion (default true when layout === 'feed'). */
363
383
  recordCheckpoint?: boolean;
384
+ /** Optional abort signal to cancel long-running feed compilation on timeout. */
385
+ signal?: AbortSignal;
364
386
  }
365
387
  interface PublishFeedReport {
366
388
  manifest: SeedManifest;
@@ -382,6 +404,8 @@ interface UnpublishedFeedStatus {
382
404
  status: 'added' | 'modified' | 'removed';
383
405
  }>;
384
406
  }
407
+ /** Persist the published-feed checkpoint in the `meta` store after a successful publish/export. */
408
+ declare function recordPublishedFeedCheckpoint(storage: IStorage, report: Pick<PublishFeedReport, 'manifest' | 'manifestSha256'>): Promise<void>;
385
409
  declare function publishFeedFromStorage(storage: IStorage, tree: FeedTree, options?: PublishFeedOptions): Promise<PublishFeedReport>;
386
410
  /**
387
411
  * Compare current public Notebooks & public Sessions in `storage` against the last
@@ -421,7 +445,7 @@ interface PromoteNoteToNotebooksInput {
421
445
  shareSessionsPublicly?: boolean;
422
446
  }
423
447
  interface PromoteNoteResult {
424
- note: Note$1;
448
+ note: Note;
425
449
  notebookIds: NotebookId[];
426
450
  promotedSessionIds: string[];
427
451
  }
@@ -470,7 +494,7 @@ interface SaveScopedPropertyOverrideInput {
470
494
  category?: string;
471
495
  }
472
496
  interface PropertyResolutionContext {
473
- note?: Pick<Note$1, 'id' | 'notebookId' | 'notebookIds' | 'provenance' | 'feedSourceId' | 'sourceId' | 'sourcePath'>;
497
+ note?: Pick<Note, 'id' | 'notebookId' | 'notebookIds' | 'provenance' | 'feedSourceId' | 'sourceId' | 'sourcePath'>;
474
498
  notebookId?: string;
475
499
  mode?: PropertyInheritanceMode;
476
500
  }
@@ -504,4 +528,64 @@ declare function promoteReferencedOverridesToNotebook(storage: IStorage, input:
504
528
  tagSlugs?: Iterable<string>;
505
529
  }): Promise<ScopedPropertyOverride[]>;
506
530
 
507
- export { APP_ORIGIN, BUILD_TIME, type FeedLandingData, FeedTree, FeedTreeReader, GIT_SHA, type LandingNote, type LandingNotebook, type LanguagePack, type LanguagePackIdentity, type LanguagePackLangSlice, type LanguagePackUiSlice, NOTE_ID_FRONTMATTER_KEY, type NoteIdentity, NotebookIndex, PUBLISHED_FEED_META_KEY, type ParsedNoteMarkdown, type PromoteNoteResult, type PromoteNoteToNotebooksInput, type PropertyInheritanceMode, type PropertyResolutionContext, type PublishFeedOptions, type PublishFeedReport, type PublishedFeedCheckpoint, QR_SCRIPT_ID, type ResolvedScopedCatalog, SEMVER, SESSION_CSV_HEADER, type SaveScopedPropertyOverrideInput, type SeedChunkResult, type SeedChunkWrite, SeedManifest, SeedMetaRecord, SeedRow, type SessionImportRows, TELEMETRY_CSV_HEADER, type TypedTagItem, type UnpublishedFeedStatus, VERSION, applySeedChunk, applySeedChunks, assertNotebookIndex, assertSeedManifest, assertSeedRow, assertSeedRows, backfillFeedProvenance, checkUnpublishedFeedChanges, composeNoteMarkdown, createUserNotebookLanding, csvToEquipmentLabels, csvToSessionRows, csvToTelemetryBundle, defineLanguagePack, effortToMarkdown, equipmentToCsv, equipmentToMarkdown, extractNoteIdentity, extractTypedTags, getNoteNotebooks, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, listLanguagePacks, listScopedPropertyOverrides, makeNotebookLinkId, makeScopedOverrideId, migrateNotebookVocabulary, parseCsvLine, parseFrontmatterDateMs, parseNoteMarkdown, promoteNoteToNotebooks, promoteReferencedOverridesToNotebook, publishFeedFromStorage, qrInlineScript, readFrontmatterMeta, registerLanguagePack, removeNoteFromNotebook, renderFeedLandingHtml, resolveScopedPropertyCatalog, saveScopedPropertyOverride, seedNoteId, sessionToCsv, setNoteNotebooks, splitCsvRecords, telemetryBundleToCsv, unregisterLanguagePack };
531
+ declare const PERSIST_WORLD_STORES: StoreName[];
532
+ /**
533
+ * Persists a complete domain world snapshot to storage in a single transaction.
534
+ * Projects bundled/defaults efforts & equipment, and projects property overrides into tags & tag_types.
535
+ */
536
+ declare function persistDomainWorld(storage: IStorage, worldInput?: DomainWorld | DomainWorldInput): Promise<DomainWorld>;
537
+
538
+ /**
539
+ * sampleCorpus.ts — Shared sample analytics dataset for WOD Wiki.
540
+ *
541
+ * Provides a rich, genuine 16-week training block with benchmarks (Fran, Cindy,
542
+ * Annie), strength accessories (back-squat, bench-press, deadlift), endurance
543
+ * sessions (running, rowing), climbing/hangboard, and daily wellness/workload
544
+ * rollups.
545
+ *
546
+ * Emits notes, session results, raw event records, and summary event records
547
+ * compatible with DomainScenarioHarness, persistDomainWorld, and QueryService.
548
+ */
549
+
550
+ declare const SAMPLE_TAG = "sample";
551
+ declare function round1(n: number): number;
552
+ interface SampleMovement {
553
+ effortSlug: string;
554
+ discipline: string;
555
+ reps: number;
556
+ /** In pounds; 0 for bodyweight/cardio. */
557
+ loadLbs: number;
558
+ tisSeconds: number;
559
+ distanceMeters?: number;
560
+ grade?: string;
561
+ }
562
+ type SampleWorkoutType = 'fran' | 'cindy' | 'annie' | 'rowing' | 'running' | 'strength' | 'recoveryRun' | 'hangboard';
563
+ interface SampleSession {
564
+ noteId: string;
565
+ title: string;
566
+ workoutType: SampleWorkoutType;
567
+ timestamp: number;
568
+ durationSeconds: number;
569
+ movements: SampleMovement[];
570
+ tags: string[];
571
+ }
572
+ interface SampleBundle {
573
+ bundle: NoteTelemetryBundle;
574
+ rawContent: string;
575
+ blocks: Record<string, NoteBlock>;
576
+ result: Session$1;
577
+ rawEvents: EventRecord[];
578
+ summaries: EventRecord[];
579
+ }
580
+ /**
581
+ * Generate a complete 16-week training block of sample sessions.
582
+ */
583
+ declare function generateSampleSessions(anchorNow?: number): SampleSession[];
584
+ declare function buildSessionLogs(session: SampleSession): StoredOutputStatement[];
585
+ declare function buildSampleBundle(session: SampleSession, now?: number): SampleBundle;
586
+ /**
587
+ * Build a complete DomainWorldInput containing all sample notes, sessions, and events.
588
+ */
589
+ declare function buildSampleWorld(anchorNow?: number): DomainWorldInput;
590
+
591
+ export { APP_ORIGIN, BUILD_TIME, type BuildQueryServiceStoresOptions, type DatasetStore, type FeedLandingData, FeedTree, FeedTreeReader, GIT_SHA, type LandingNote, type LandingNotebook, type LanguagePack, type LanguagePackIdentity, type LanguagePackLangSlice, type LanguagePackUiSlice, NOTE_ID_FRONTMATTER_KEY, type NoteIdentity, NotebookIndex, PERSIST_WORLD_STORES, PUBLISHED_FEED_META_KEY, type ParsedNoteMarkdown, type PromoteNoteResult, type PromoteNoteToNotebooksInput, type PropertyInheritanceMode, type PropertyResolutionContext, type PublishFeedOptions, type PublishFeedReport, type PublishedFeedCheckpoint, QR_SCRIPT_ID, type ResolvedScopedCatalog, SAMPLE_TAG, SEMVER, SESSION_CSV_HEADER, type SampleBundle, type SampleMovement, type SampleSession, type SampleWorkoutType, type SaveScopedPropertyOverrideInput, type SeedChunkResult, type SeedChunkWrite, SeedManifest, SeedMetaRecord, SeedRow, type SessionImportRows, TELEMETRY_CSV_HEADER, type TypedTagItem, type UnpublishedFeedStatus, VERSION, applySeedChunk, applySeedChunks, assertNotebookIndex, assertSeedManifest, assertSeedRow, assertSeedRows, backfillFeedProvenance, buildQueryServiceStoresFromStorage, buildSampleBundle, buildSampleWorld, buildSessionLogs, checkUnpublishedFeedChanges, composeNoteMarkdown, createUserNotebookLanding, csvToEquipmentLabels, csvToSessionRows, csvToTelemetryBundle, defineLanguagePack, effortToMarkdown, equipmentToCsv, equipmentToMarkdown, extractNoteIdentity, extractTypedTags, generateSampleSessions, getNoteNotebooks, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, listLanguagePacks, listScopedPropertyOverrides, makeNotebookLinkId, makeScopedOverrideId, migrateNotebookVocabulary, parseCsvLine, parseFrontmatterDateMs, parseNoteMarkdown, persistDomainWorld, promoteNoteToNotebooks, promoteReferencedOverridesToNotebook, publishFeedFromStorage, qrInlineScript, readFrontmatterMeta, recordPublishedFeedCheckpoint, registerLanguagePack, removeNoteFromNotebook, renderFeedLandingHtml, resolveScopedPropertyCatalog, round1, saveScopedPropertyOverride, seedNoteId, sessionToCsv, setNoteNotebooks, splitCsvRecords, telemetryBundleToCsv, unregisterLanguagePack };