@bitcobblers/wod-wiki-engine 0.36.2136 → 0.37.2139
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.cjs +112 -203
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -22
- package/dist/index.d.ts +25 -22
- package/dist/index.mjs +112 -204
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement, NoteBlock, BlockEffort } from '@bitcobblers/wod-wiki-core';
|
|
1
|
+
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement, NoteBlock, BlockEffort, BlockEquipment } from '@bitcobblers/wod-wiki-core';
|
|
2
2
|
export * from '@bitcobblers/wod-wiki-core';
|
|
3
3
|
import { IRealtimeProcessor, ISummaryProcessor, IEffort, IScript } 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, CalculateBlockProcessor, CalculationDefinition, CalculationRegistry, CardioDialect, ChildSelectionBehavior, ChildrenStrategy, ChoiceGroupMetric, ClimbDialect, ClimbMetricType, CompletionDecision, CountdownTimerBehavior, CountupTimerBehavior, CrossFitDialect, DEFAULT_RESOLVER_OPTIONS, DEFAULT_RUNTIME_OPTIONS, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, 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, LocalRuntimeSubscription, LookupRegistry, MatchMode, MdTimerRuntime, MemoryEntry, MemoryLocation, MemoryTag, MemoryTypeEnum, MetricLine, MetricPresentationSurface, MetricPresentationToken, MetricRenderKind, MetricTone, MetricVisibility, MockClock, NextEvent, OutputEmitter, OutputListener, PRODUCTION_STRATEGIES, PopBlockAction, ProjectionResult, PushBlockAction, RegisterEventHandlerAction, Registry, ReportOutputBehavior, ReportOutputStrategy, ResolvedEffort, ResolvedEffortData, RoundState, RoundsMetric, RuntimeAdapter, RuntimeBlock, RuntimeBlockOptions, RuntimeClock, RuntimeController, RuntimeError, RuntimeFactory, RuntimeLogger, RuntimeMemory, RuntimeObservers, RuntimeStack, RuntimeStackOptions, STORE_CALCS, STREAM_ATOMS, ScriptRuntime, ScriptRuntimeDependencies, SegmentWithMetadata, SessionRootStrategy, SnapshotClock, SoundCueBehavior, SoundStrategy, StackEvent, StackListener, StackObserver, StackSnapshot, StandardAnalyticsProfile, StartSessionAction, StartSessionOptions, StartWorkoutAction, StatementMetricDiff, SubscribeOptions, SubscriptionManager, TestableBlockConfig, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, VISIBILITY_ICONS, VISIBILITY_LABELS, Val, WhiteboardScript, WodDialect, YogaDialect, buildTooltip, bundledEfforts, calculateElapsed, canonicalizeType, collapseUnresolvedChoices, compareStatement, compileLineForm, compoundName, computeColumnLabel, computeLabel, createAnalyticsEngineForBlock, createCalcEngine, createCompiler, createDialectStack, createMetricPresentationPolicy, createMockClock, createParser, dialectRegistry, dialectStack, diffStatement, evaluate, evaluateCalculateDefinitions, extractMetrics, extractStatements, findBestFuzzyMatch, findUnresolvedChoices, frozenNow, getAnalyticsFromLogs, getHints, getMetricVisibility, getRuntimeNowMs, hasHint, hintMetric, hintsToContainer, isCastSubscription, isChoiceResolved, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, normalizeForFuzzy, outputNodeId, outputNodeIds, parseCalcLine, parseCalculateBlock, parseExpression, parseMetricLine, parseScript, realtimeProcessorRegistry, renderMetric, strategyRegistry, summaryProcessorRegistry, toStoredOutputStatement, truthy, wallClockNow, whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection } from '@bitcobblers/wod-wiki-lang';
|
|
@@ -162,28 +162,25 @@ declare function readFrontmatterMeta(markdown: string): Record<string, string |
|
|
|
162
162
|
* classify identically.
|
|
163
163
|
*/
|
|
164
164
|
declare function extractTypedTags(markdown: string, typedKeys?: readonly string[]): TypedTagItem[];
|
|
165
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Compose an effort registry row back into corpus-style markdown. Export
|
|
167
|
+
* paths prefer the owning note's raw source (byte-identical); this
|
|
168
|
+
* reconstruction is the fallback for rows without an owner note.
|
|
169
|
+
*/
|
|
170
|
+
declare function effortToMarkdown(effort: {
|
|
166
171
|
id: string;
|
|
167
172
|
slug: string;
|
|
168
173
|
label: string;
|
|
169
|
-
aliases
|
|
174
|
+
aliases?: string[];
|
|
170
175
|
baseAttributes: Record<string, unknown>;
|
|
171
176
|
body?: string;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
|
|
175
|
-
* (required), `aliases` list, one-level scalar `baseAttributes` with a
|
|
176
|
-
* numeric `met`, plus an optional markdown body. Parity with the seed
|
|
177
|
-
* importer's effort materialization.
|
|
178
|
-
*/
|
|
179
|
-
declare function markdownToEffort(raw: string): EffortFileFields | null;
|
|
180
|
-
/** Compose an effort registry row back into corpus-style markdown. */
|
|
181
|
-
declare function effortToMarkdown(effort: {
|
|
177
|
+
}): string;
|
|
178
|
+
/** Compose an equipment registry row back into corpus-style markdown (effortToMarkdown's equipment twin). */
|
|
179
|
+
declare function equipmentToMarkdown(equipment: {
|
|
182
180
|
id: string;
|
|
183
181
|
slug: string;
|
|
184
182
|
label: string;
|
|
185
183
|
aliases?: string[];
|
|
186
|
-
baseAttributes: Record<string, unknown>;
|
|
187
184
|
body?: string;
|
|
188
185
|
}): string;
|
|
189
186
|
/** One-label-per-row CSV (header `label`) for equipment catalogs. */
|
|
@@ -215,16 +212,16 @@ declare function csvToSessionRows(csv: string): SessionImportRows;
|
|
|
215
212
|
* Auto-generated build version metadata.
|
|
216
213
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
217
214
|
*/
|
|
218
|
-
declare const VERSION = "0.
|
|
219
|
-
declare const GIT_SHA = "
|
|
220
|
-
declare const BUILD_TIME = "2026-10-
|
|
215
|
+
declare const VERSION = "0.37.2139";
|
|
216
|
+
declare const GIT_SHA = "491ec71";
|
|
217
|
+
declare const BUILD_TIME = "2026-10-17T15:36:01.834Z";
|
|
221
218
|
declare const SEMVER: {
|
|
222
|
-
readonly version: "0.
|
|
223
|
-
readonly gitSha: "
|
|
224
|
-
readonly buildTime: "2026-10-
|
|
219
|
+
readonly version: "0.37.2139";
|
|
220
|
+
readonly gitSha: "491ec71";
|
|
221
|
+
readonly buildTime: "2026-10-17T15:36:01.834Z";
|
|
225
222
|
};
|
|
226
223
|
|
|
227
|
-
declare const SEED_SCHEMA =
|
|
224
|
+
declare const SEED_SCHEMA = 9;
|
|
228
225
|
declare const SEED_REGISTERED_WIDGETS: readonly string[];
|
|
229
226
|
/** Source and all current derived rows commit as one chunk. */
|
|
230
227
|
interface SeedRow {
|
|
@@ -233,6 +230,7 @@ interface SeedRow {
|
|
|
233
230
|
blocks: Record<string, NoteBlock>;
|
|
234
231
|
blockIndex: BlockIndexRow[];
|
|
235
232
|
blockEfforts: BlockEffort[];
|
|
233
|
+
blockEquipment: BlockEquipment[];
|
|
236
234
|
}
|
|
237
235
|
type ChunkKind = 'notes';
|
|
238
236
|
interface ManifestChunk {
|
|
@@ -244,6 +242,9 @@ interface ManifestChunk {
|
|
|
244
242
|
kind?: ChunkKind;
|
|
245
243
|
}
|
|
246
244
|
interface SeedManifest {
|
|
245
|
+
name?: string;
|
|
246
|
+
description?: string;
|
|
247
|
+
repositoryUrl?: string;
|
|
247
248
|
schema: number;
|
|
248
249
|
version: number;
|
|
249
250
|
versionLabel?: string;
|
|
@@ -269,6 +270,7 @@ interface SeedMetaRecord {
|
|
|
269
270
|
}
|
|
270
271
|
declare const SEED_BROADCAST_CHANNEL = "wodwiki.seed";
|
|
271
272
|
declare const EFFORTS_CHUNK_ID = "efforts";
|
|
273
|
+
declare const EQUIPMENT_CHUNK_ID = "equipment";
|
|
272
274
|
declare const CANVAS_CHUNK_ID = "canvas";
|
|
273
275
|
declare const DASHBOARDS_CHUNK_ID = "dashboards";
|
|
274
276
|
declare const TEMPLATE_CHUNK_ID = "template";
|
|
@@ -289,6 +291,7 @@ interface SeedChunkWrite {
|
|
|
289
291
|
interface SeedChunkResult {
|
|
290
292
|
totalNotes: number;
|
|
291
293
|
totalEfforts: number;
|
|
294
|
+
totalEquipment: number;
|
|
292
295
|
totalBlocks: number;
|
|
293
296
|
skippedUserOwned: number;
|
|
294
297
|
deleted: number;
|
|
@@ -302,4 +305,4 @@ declare function applySeedChunk(storage: IStorage, write: SeedChunkWrite): Promi
|
|
|
302
305
|
declare function assertSeedManifest(value: unknown): SeedManifest;
|
|
303
306
|
declare function assertSeedRows(value: unknown): SeedRow[];
|
|
304
307
|
|
|
305
|
-
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type CorpusIRData, DASHBOARDS_CHUNK_ID, EFFORTS_CHUNK_ID,
|
|
308
|
+
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type CorpusIRData, DASHBOARDS_CHUNK_ID, EFFORTS_CHUNK_ID, EQUIPMENT_CHUNK_ID, type ExecutionLog, GIT_SHA, type IrKind, type LanguagePack, type LanguagePackIdentity, type LanguagePackLangSlice, type LanguagePackUiSlice, type ManifestChunk, type MetricNode, NOTE_ID_FRONTMATTER_KEY, type NoteIdentity, SEED_BROADCAST_CHANNEL, SEED_REGISTERED_WIDGETS, SEED_SCHEMA, SEMVER, SESSION_CSV_HEADER, type SeedChunkResult, type SeedChunkWrite, type SeedManifest, type SeedMetaRecord, type SeedRow, type SessionImportRows, type StatementNode, TEMPLATE_CHUNK_ID, type TypedTagItem, VERSION, type WodWikiIRFile, applySeedChunk, assertSeedManifest, assertSeedRows, buildStatementTree, canvasRouteSlug, catalogForChunkId, composeNoteMarkdown, createIRFile, csvToEquipmentLabels, csvToSessionRows, defineLanguagePack, effortToMarkdown, emptySeedMeta, equipmentToCsv, equipmentToMarkdown, extractNoteIdentity, extractTypedTags, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, isIRFile, listLanguagePacks, parseCsvLine, readFrontmatterMeta, registerLanguagePack, seedMetaKey, seedNoteId, seedNoteSourceId, sessionToCsv, splitCsvRecords, statementToNode, unregisterLanguagePack };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement, NoteBlock, BlockEffort } from '@bitcobblers/wod-wiki-core';
|
|
1
|
+
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement, NoteBlock, BlockEffort, BlockEquipment } from '@bitcobblers/wod-wiki-core';
|
|
2
2
|
export * from '@bitcobblers/wod-wiki-core';
|
|
3
3
|
import { IRealtimeProcessor, ISummaryProcessor, IEffort, IScript } 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, CalculateBlockProcessor, CalculationDefinition, CalculationRegistry, CardioDialect, ChildSelectionBehavior, ChildrenStrategy, ChoiceGroupMetric, ClimbDialect, ClimbMetricType, CompletionDecision, CountdownTimerBehavior, CountupTimerBehavior, CrossFitDialect, DEFAULT_RESOLVER_OPTIONS, DEFAULT_RUNTIME_OPTIONS, DEFAULT_UNRESOLVED_EFFORT_MET, DIM_LENGTH, DIM_MASS, DIM_TIME, DIM_ZERO, 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, LocalRuntimeSubscription, LookupRegistry, MatchMode, MdTimerRuntime, MemoryEntry, MemoryLocation, MemoryTag, MemoryTypeEnum, MetricLine, MetricPresentationSurface, MetricPresentationToken, MetricRenderKind, MetricTone, MetricVisibility, MockClock, NextEvent, OutputEmitter, OutputListener, PRODUCTION_STRATEGIES, PopBlockAction, ProjectionResult, PushBlockAction, RegisterEventHandlerAction, Registry, ReportOutputBehavior, ReportOutputStrategy, ResolvedEffort, ResolvedEffortData, RoundState, RoundsMetric, RuntimeAdapter, RuntimeBlock, RuntimeBlockOptions, RuntimeClock, RuntimeController, RuntimeError, RuntimeFactory, RuntimeLogger, RuntimeMemory, RuntimeObservers, RuntimeStack, RuntimeStackOptions, STORE_CALCS, STREAM_ATOMS, ScriptRuntime, ScriptRuntimeDependencies, SegmentWithMetadata, SessionRootStrategy, SnapshotClock, SoundCueBehavior, SoundStrategy, StackEvent, StackListener, StackObserver, StackSnapshot, StandardAnalyticsProfile, StartSessionAction, StartSessionOptions, StartWorkoutAction, StatementMetricDiff, SubscribeOptions, SubscriptionManager, TestableBlockConfig, TimeSpan, TimerState, TwoPassEffortResolutionProcess, TypedMemoryReference, UNITS, UnitsDialect, UnregisterEventHandlerAction, Unsubscribe, VISIBILITY_ICONS, VISIBILITY_LABELS, Val, WhiteboardScript, WodDialect, YogaDialect, buildTooltip, bundledEfforts, calculateElapsed, canonicalizeType, collapseUnresolvedChoices, compareStatement, compileLineForm, compoundName, computeColumnLabel, computeLabel, createAnalyticsEngineForBlock, createCalcEngine, createCompiler, createDialectStack, createMetricPresentationPolicy, createMockClock, createParser, dialectRegistry, dialectStack, diffStatement, evaluate, evaluateCalculateDefinitions, extractMetrics, extractStatements, findBestFuzzyMatch, findUnresolvedChoices, frozenNow, getAnalyticsFromLogs, getHints, getMetricVisibility, getRuntimeNowMs, hasHint, hintMetric, hintsToContainer, isCastSubscription, isChoiceResolved, isTimeLikeMetric, isWithinThreshold, levenshteinDistance, metricPresentation, normalizeForFuzzy, outputNodeId, outputNodeIds, parseCalcLine, parseCalculateBlock, parseExpression, parseMetricLine, parseScript, realtimeProcessorRegistry, renderMetric, strategyRegistry, summaryProcessorRegistry, toStoredOutputStatement, truthy, wallClockNow, whiteboardParser, whiteboardScript, whiteboardScriptLanguage, writeChoiceSelection } from '@bitcobblers/wod-wiki-lang';
|
|
@@ -162,28 +162,25 @@ declare function readFrontmatterMeta(markdown: string): Record<string, string |
|
|
|
162
162
|
* classify identically.
|
|
163
163
|
*/
|
|
164
164
|
declare function extractTypedTags(markdown: string, typedKeys?: readonly string[]): TypedTagItem[];
|
|
165
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Compose an effort registry row back into corpus-style markdown. Export
|
|
167
|
+
* paths prefer the owning note's raw source (byte-identical); this
|
|
168
|
+
* reconstruction is the fallback for rows without an owner note.
|
|
169
|
+
*/
|
|
170
|
+
declare function effortToMarkdown(effort: {
|
|
166
171
|
id: string;
|
|
167
172
|
slug: string;
|
|
168
173
|
label: string;
|
|
169
|
-
aliases
|
|
174
|
+
aliases?: string[];
|
|
170
175
|
baseAttributes: Record<string, unknown>;
|
|
171
176
|
body?: string;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
|
|
175
|
-
* (required), `aliases` list, one-level scalar `baseAttributes` with a
|
|
176
|
-
* numeric `met`, plus an optional markdown body. Parity with the seed
|
|
177
|
-
* importer's effort materialization.
|
|
178
|
-
*/
|
|
179
|
-
declare function markdownToEffort(raw: string): EffortFileFields | null;
|
|
180
|
-
/** Compose an effort registry row back into corpus-style markdown. */
|
|
181
|
-
declare function effortToMarkdown(effort: {
|
|
177
|
+
}): string;
|
|
178
|
+
/** Compose an equipment registry row back into corpus-style markdown (effortToMarkdown's equipment twin). */
|
|
179
|
+
declare function equipmentToMarkdown(equipment: {
|
|
182
180
|
id: string;
|
|
183
181
|
slug: string;
|
|
184
182
|
label: string;
|
|
185
183
|
aliases?: string[];
|
|
186
|
-
baseAttributes: Record<string, unknown>;
|
|
187
184
|
body?: string;
|
|
188
185
|
}): string;
|
|
189
186
|
/** One-label-per-row CSV (header `label`) for equipment catalogs. */
|
|
@@ -215,16 +212,16 @@ declare function csvToSessionRows(csv: string): SessionImportRows;
|
|
|
215
212
|
* Auto-generated build version metadata.
|
|
216
213
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
217
214
|
*/
|
|
218
|
-
declare const VERSION = "0.
|
|
219
|
-
declare const GIT_SHA = "
|
|
220
|
-
declare const BUILD_TIME = "2026-10-
|
|
215
|
+
declare const VERSION = "0.37.2139";
|
|
216
|
+
declare const GIT_SHA = "491ec71";
|
|
217
|
+
declare const BUILD_TIME = "2026-10-17T15:36:01.834Z";
|
|
221
218
|
declare const SEMVER: {
|
|
222
|
-
readonly version: "0.
|
|
223
|
-
readonly gitSha: "
|
|
224
|
-
readonly buildTime: "2026-10-
|
|
219
|
+
readonly version: "0.37.2139";
|
|
220
|
+
readonly gitSha: "491ec71";
|
|
221
|
+
readonly buildTime: "2026-10-17T15:36:01.834Z";
|
|
225
222
|
};
|
|
226
223
|
|
|
227
|
-
declare const SEED_SCHEMA =
|
|
224
|
+
declare const SEED_SCHEMA = 9;
|
|
228
225
|
declare const SEED_REGISTERED_WIDGETS: readonly string[];
|
|
229
226
|
/** Source and all current derived rows commit as one chunk. */
|
|
230
227
|
interface SeedRow {
|
|
@@ -233,6 +230,7 @@ interface SeedRow {
|
|
|
233
230
|
blocks: Record<string, NoteBlock>;
|
|
234
231
|
blockIndex: BlockIndexRow[];
|
|
235
232
|
blockEfforts: BlockEffort[];
|
|
233
|
+
blockEquipment: BlockEquipment[];
|
|
236
234
|
}
|
|
237
235
|
type ChunkKind = 'notes';
|
|
238
236
|
interface ManifestChunk {
|
|
@@ -244,6 +242,9 @@ interface ManifestChunk {
|
|
|
244
242
|
kind?: ChunkKind;
|
|
245
243
|
}
|
|
246
244
|
interface SeedManifest {
|
|
245
|
+
name?: string;
|
|
246
|
+
description?: string;
|
|
247
|
+
repositoryUrl?: string;
|
|
247
248
|
schema: number;
|
|
248
249
|
version: number;
|
|
249
250
|
versionLabel?: string;
|
|
@@ -269,6 +270,7 @@ interface SeedMetaRecord {
|
|
|
269
270
|
}
|
|
270
271
|
declare const SEED_BROADCAST_CHANNEL = "wodwiki.seed";
|
|
271
272
|
declare const EFFORTS_CHUNK_ID = "efforts";
|
|
273
|
+
declare const EQUIPMENT_CHUNK_ID = "equipment";
|
|
272
274
|
declare const CANVAS_CHUNK_ID = "canvas";
|
|
273
275
|
declare const DASHBOARDS_CHUNK_ID = "dashboards";
|
|
274
276
|
declare const TEMPLATE_CHUNK_ID = "template";
|
|
@@ -289,6 +291,7 @@ interface SeedChunkWrite {
|
|
|
289
291
|
interface SeedChunkResult {
|
|
290
292
|
totalNotes: number;
|
|
291
293
|
totalEfforts: number;
|
|
294
|
+
totalEquipment: number;
|
|
292
295
|
totalBlocks: number;
|
|
293
296
|
skippedUserOwned: number;
|
|
294
297
|
deleted: number;
|
|
@@ -302,4 +305,4 @@ declare function applySeedChunk(storage: IStorage, write: SeedChunkWrite): Promi
|
|
|
302
305
|
declare function assertSeedManifest(value: unknown): SeedManifest;
|
|
303
306
|
declare function assertSeedRows(value: unknown): SeedRow[];
|
|
304
307
|
|
|
305
|
-
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type CorpusIRData, DASHBOARDS_CHUNK_ID, EFFORTS_CHUNK_ID,
|
|
308
|
+
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type CorpusIRData, DASHBOARDS_CHUNK_ID, EFFORTS_CHUNK_ID, EQUIPMENT_CHUNK_ID, type ExecutionLog, GIT_SHA, type IrKind, type LanguagePack, type LanguagePackIdentity, type LanguagePackLangSlice, type LanguagePackUiSlice, type ManifestChunk, type MetricNode, NOTE_ID_FRONTMATTER_KEY, type NoteIdentity, SEED_BROADCAST_CHANNEL, SEED_REGISTERED_WIDGETS, SEED_SCHEMA, SEMVER, SESSION_CSV_HEADER, type SeedChunkResult, type SeedChunkWrite, type SeedManifest, type SeedMetaRecord, type SeedRow, type SessionImportRows, type StatementNode, TEMPLATE_CHUNK_ID, type TypedTagItem, VERSION, type WodWikiIRFile, applySeedChunk, assertSeedManifest, assertSeedRows, buildStatementTree, canvasRouteSlug, catalogForChunkId, composeNoteMarkdown, createIRFile, csvToEquipmentLabels, csvToSessionRows, defineLanguagePack, effortToMarkdown, emptySeedMeta, equipmentToCsv, equipmentToMarkdown, extractNoteIdentity, extractTypedTags, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, isIRFile, listLanguagePacks, parseCsvLine, readFrontmatterMeta, registerLanguagePack, seedMetaKey, seedNoteId, seedNoteSourceId, sessionToCsv, splitCsvRecords, statementToNode, unregisterLanguagePack };
|