@bitcobblers/wod-wiki-engine 0.36.2130 → 0.36.2133
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 +1044 -4118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -213
- package/dist/index.d.ts +11 -213
- package/dist/index.mjs +1087 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -17
- package/dist/bin/wod.cjs +0 -4125
- package/dist/bin/wod.cjs.map +0 -1
- package/dist/bin/wod.d.cts +0 -1
- package/dist/bin/wod.d.ts +0 -1
- package/dist/bin/wod.mjs +0 -18
- package/dist/bin/wod.mjs.map +0 -1
- package/dist/chunk-6L5ZDZJ7.mjs +0 -15
- package/dist/chunk-6L5ZDZJ7.mjs.map +0 -1
- package/dist/chunk-BMHE7DDG.mjs +0 -181
- package/dist/chunk-BMHE7DDG.mjs.map +0 -1
- package/dist/chunk-EUQWEX6Z.mjs +0 -253
- package/dist/chunk-EUQWEX6Z.mjs.map +0 -1
- package/dist/chunk-UKBQ36RW.mjs +0 -2964
- package/dist/chunk-UKBQ36RW.mjs.map +0 -1
- package/dist/compiler-NODHKWJJ.mjs +0 -566
- package/dist/compiler-NODHKWJJ.mjs.map +0 -1
- package/dist/server/app.cjs +0 -299
- package/dist/server/app.cjs.map +0 -1
- package/dist/server/app.d.cts +0 -24
- package/dist/server/app.d.ts +0 -24
- package/dist/server/app.mjs +0 -301
- package/dist/server/app.mjs.map +0 -1
- package/dist/server-4P6AJAGT.mjs +0 -128
- package/dist/server-4P6AJAGT.mjs.map +0 -1
- package/dist/web/playground/ai-skills/parse.md +0 -656
- package/dist/web/playground/assets/main-Bhn9NHgQ.css +0 -2
- package/dist/web/playground/assets/main-CGSJY1vM.js +0 -212
- package/dist/web/playground/assets/rolldown-runtime-C0FnF6B9.js +0 -1
- package/dist/web/playground/assets/statementBuilderFlow-PTgOOzz5.js +0 -2
- package/dist/web/playground/assets/vendor-BlJqgFME.js +0 -201
- package/dist/web/playground/assets/vendor-codemirror-BtJgoBjf.js +0 -40
- package/dist/web/playground/fonts/Inter-Regular.woff2 +0 -0
- package/dist/web/playground/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/web/playground/images/hero/editing.png +0 -0
- package/dist/web/playground/images/hero/journal.png +0 -0
- package/dist/web/playground/images/hero/results.png +0 -0
- package/dist/web/playground/images/hero/timer.png +0 -0
- package/dist/web/playground/images/wod-wiki-logo-dark.png +0 -0
- package/dist/web/playground/images/wod-wiki-logo-light.png +0 -0
- package/dist/web/playground/index.html +0 -60
- package/dist/web/playground/seed/core/chunks/canvas.e6c77ad0.json +0 -1
- package/dist/web/playground/seed/core/chunks/template.e5e0e82d.json +0 -1
- package/dist/web/playground/seed/core/manifest.json +0 -24
- package/dist/web/playground/seed/core/report.html +0 -43
- package/dist/web/server/ai-skills/parse.md +0 -656
- package/dist/web/server/assets/main-Bhn9NHgQ.css +0 -2
- package/dist/web/server/assets/main-DhN2J5Ax.js +0 -211
- package/dist/web/server/assets/rolldown-runtime-C0FnF6B9.js +0 -1
- package/dist/web/server/assets/statementBuilderFlow-Dj0o2Wpk.js +0 -2
- package/dist/web/server/assets/vendor-BlJqgFME.js +0 -201
- package/dist/web/server/assets/vendor-codemirror-BtJgoBjf.js +0 -40
- package/dist/web/server/fonts/Inter-Regular.woff2 +0 -0
- package/dist/web/server/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/web/server/images/hero/editing.png +0 -0
- package/dist/web/server/images/hero/journal.png +0 -0
- package/dist/web/server/images/hero/results.png +0 -0
- package/dist/web/server/images/hero/timer.png +0 -0
- package/dist/web/server/images/wod-wiki-logo-dark.png +0 -0
- package/dist/web/server/images/wod-wiki-logo-light.png +0 -0
- package/dist/web/server/index.html +0 -60
- package/dist/web/server/seed/core/chunks/canvas.e6c77ad0.json +0 -1
- package/dist/web/server/seed/core/chunks/template.e5e0e82d.json +0 -1
- package/dist/web/server/seed/core/manifest.json +0 -24
- package/dist/web/server/seed/core/report.html +0 -43
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement,
|
|
1
|
+
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement, NoteBlock, BlockEffort } from '@bitcobblers/wod-wiki-core';
|
|
2
2
|
export * from '@bitcobblers/wod-wiki-core';
|
|
3
|
-
import { IRealtimeProcessor, ISummaryProcessor, IEffort, IScript
|
|
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';
|
|
5
5
|
export { BlockTimerDisplay, BlockTimerDisplayProps, ScriptRuntimeProvider, ScriptRuntimeProviderProps, UseRuntimeExecutionReturn, useActiveControls, useBlockMemory, useLiveAnalytics, useMemorySubscription, useNextPreview, useOutputStatements, usePrimaryTimer, useRoundDisplay, useRuntimeExecution, useScriptRuntime, useSecondaryTimers, useSnapshotBlocks, useStackDisplayRows, useStackFragmentSources, useStackSnapshot, useStackTimers, useTimerDisplay, useTimerElapsed } from '@bitcobblers/wod-wiki-lang/react';
|
|
6
|
-
import { EventStore
|
|
6
|
+
import { EventStore } from '@bitcobblers/wod-wiki-wql';
|
|
7
7
|
export { Aggregator, AnyParsedQuery, BlockQueryStore, ComparisonOp, DASHBOARD_GRID_MAX_COLS, DASHBOARD_WIDGET_TYPES, DEFAULT_DASHBOARD_TITLE, DashboardDocument, DashboardMeta, DashboardToken, DashboardWidget, EffortQueryStore, EventStore, FindOptions, FindPredicate, FindQueryResult, MetricPredicate, NoteQueryStore, PLANNED_WIDGET_TYPES, ParsedAggregateQuery, ParsedFindQuery, ParsedPipelineQuery, ParsedRowsQuery, PipelineSink, PipelineSource, QueryOptions, QueryResult, QueryService, QueryServiceStores, QueryWidgetSuffix, QueryWindow, RowsQueryResult, RowsRun, 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_VIRTUAL_DIMS, WqlChartHead, buildDashboardDocument, buildDashboardScaffold, dashboardSlug, defaultTokenValues, extractDashboardTokens, isAggregateQuery, isDashboardMeta, isDashboardWidgetType, isFindQuery, isPipelineQuery, normalizeWql, parseQuery, parseQueryWidgetSuffix, parseWqlSuffixes, resolveWidgetType, serialize, splitAtWhere, substituteTokens, unknownTokensMessage, unknownWidgetTypeMessage, wql, wqlLanguage, wqlParser, wqlTerms } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import { Session as Session$1, Note as Note$1, IStorage } from '@bitcobblers/wod-wiki-storage';
|
|
9
9
|
|
|
@@ -112,208 +112,6 @@ interface CorpusIRData {
|
|
|
112
112
|
tags?: Record<string, string[]>;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
/**
|
|
116
|
-
* Headless Parse Command Runner
|
|
117
|
-
*
|
|
118
|
-
* Parses Whiteboard Script source text and emits a versioned IR parse-tree envelope.
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
declare class ParseSyntaxError extends Error {
|
|
122
|
-
readonly errors: Array<{
|
|
123
|
-
message: string;
|
|
124
|
-
line?: number;
|
|
125
|
-
}>;
|
|
126
|
-
constructor(errors: Array<{
|
|
127
|
-
message: string;
|
|
128
|
-
line?: number;
|
|
129
|
-
}>, message?: string);
|
|
130
|
-
}
|
|
131
|
-
interface ParseOptions {
|
|
132
|
-
sport?: string;
|
|
133
|
-
sourceLabel?: string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Parses Whiteboard Script source directly into a StatementNode IR envelope.
|
|
137
|
-
*/
|
|
138
|
-
declare function runParse(source: string, options?: ParseOptions): WodWikiIRFile<StatementNode>;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Headless Execution Command Runner
|
|
142
|
-
*
|
|
143
|
-
* Executes Whiteboard Script through JIT compiler and runtime state machine,
|
|
144
|
-
* emitting a versioned execution-log IR envelope.
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
interface RunOptions {
|
|
148
|
-
sport?: string;
|
|
149
|
-
dialect?: 'time' | 'log';
|
|
150
|
-
blockId?: string;
|
|
151
|
-
blockVersion?: number;
|
|
152
|
-
startTime?: number;
|
|
153
|
-
maxIterations?: number;
|
|
154
|
-
now?: INowProvider;
|
|
155
|
-
sourceLabel?: string;
|
|
156
|
-
}
|
|
157
|
-
declare function buildWorkoutResults(outputs: readonly IOutputStatement[], options: {
|
|
158
|
-
readonly startTime?: number;
|
|
159
|
-
readonly elapsedTime: number;
|
|
160
|
-
readonly completed: boolean;
|
|
161
|
-
readonly now: INowProvider;
|
|
162
|
-
}): WorkoutResults;
|
|
163
|
-
/**
|
|
164
|
-
* Runs a workout script to completion using headless state machine and Node clock.
|
|
165
|
-
*/
|
|
166
|
-
declare function runExecution(source: string, options?: RunOptions): Promise<WodWikiIRFile<ExecutionLog>>;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Headless WQL Query Command Runner
|
|
170
|
-
*
|
|
171
|
-
* Evaluates WQL queries against in-memory stores sourced from --corpus,
|
|
172
|
-
* --stdin-log, or --stdin-facts, and emits a versioned IR envelope.
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
declare class WqlSyntaxError extends Error {
|
|
176
|
-
readonly query: string;
|
|
177
|
-
readonly syntaxError: string;
|
|
178
|
-
constructor(query: string, syntaxError: string);
|
|
179
|
-
}
|
|
180
|
-
interface QueryCliOptions {
|
|
181
|
-
corpusPath?: string;
|
|
182
|
-
stdinLog?: string;
|
|
183
|
-
stdinFacts?: string;
|
|
184
|
-
preferredUnit?: string;
|
|
185
|
-
sourceLabel?: string;
|
|
186
|
-
/** Pre-built store bundle (e.g. sqlite-backed). When set, the corpus/stdin
|
|
187
|
-
* dataset options are ignored. */
|
|
188
|
-
stores?: QueryServiceStores;
|
|
189
|
-
}
|
|
190
|
-
interface LoadedData {
|
|
191
|
-
eventRecords: EventRecord[];
|
|
192
|
-
facts: AnalyticsDataPoint[];
|
|
193
|
-
results: Session[];
|
|
194
|
-
notes: Note[];
|
|
195
|
-
blocks: BlockIndexRow[];
|
|
196
|
-
revisions: BlockRevision[];
|
|
197
|
-
efforts: IEffort[];
|
|
198
|
-
noteTags: Record<string, string[]>;
|
|
199
|
-
}
|
|
200
|
-
declare function loadQueryData(options: QueryCliOptions): LoadedData;
|
|
201
|
-
/**
|
|
202
|
-
* Runs a WQL query against the provided in-memory dataset and returns a versioned IR envelope.
|
|
203
|
-
*/
|
|
204
|
-
declare function runQueryCli(wqlString: string, options?: QueryCliOptions): Promise<WodWikiIRFile<QueryResult | RowsQueryResult | FindQueryResult | PipelineResult>>;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Dynamic Language Pack Loader
|
|
208
|
-
*
|
|
209
|
-
* Dynamically loads and registers Language Packs passed via `--pack <module-spec>`.
|
|
210
|
-
* Throws PackLoadError on failure, enabling exit code 3 handling.
|
|
211
|
-
*/
|
|
212
|
-
|
|
213
|
-
declare class PackLoadError extends Error {
|
|
214
|
-
readonly spec: string;
|
|
215
|
-
readonly originalError: unknown;
|
|
216
|
-
constructor(spec: string, originalError: unknown);
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Dynamically imports a Language Pack module and registers it.
|
|
220
|
-
*
|
|
221
|
-
* @param moduleSpec - Relative or absolute path, or package name.
|
|
222
|
-
*/
|
|
223
|
-
declare function loadLanguagePack(moduleSpec: string): Promise<LanguagePack>;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* CLI Output Formatters (JSON, ASCII Table, CSV)
|
|
227
|
-
*
|
|
228
|
-
* Implements presentation formatting for parse-tree, execution-log,
|
|
229
|
-
* and WQL query results across json, table, and csv formats.
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
type OutputFormat = 'json' | 'table' | 'csv';
|
|
233
|
-
/**
|
|
234
|
-
* Format StatementNode parse tree
|
|
235
|
-
*/
|
|
236
|
-
declare function formatParseOutput(ir: WodWikiIRFile<StatementNode>, format: OutputFormat, pretty?: boolean): string;
|
|
237
|
-
/**
|
|
238
|
-
* Format ExecutionLog runtime output
|
|
239
|
-
*/
|
|
240
|
-
declare function formatExecutionOutput(ir: WodWikiIRFile<ExecutionLog>, format: OutputFormat, pretty?: boolean): string;
|
|
241
|
-
/**
|
|
242
|
-
* Format QueryResult / RowsQueryResult / FindQueryResult / PipelineResult
|
|
243
|
-
*/
|
|
244
|
-
declare function formatQueryOutput(ir: WodWikiIRFile<QueryResult | RowsQueryResult | FindQueryResult | PipelineResult>, format: OutputFormat, pretty?: boolean): string;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Unified `wod` CLI Runner
|
|
248
|
-
*
|
|
249
|
-
* Implements CLI command routing, argument parsing, pipe handling,
|
|
250
|
-
* and exit code conventions per wayfinder #962 and issue #967.
|
|
251
|
-
*
|
|
252
|
-
* Exit Codes:
|
|
253
|
-
* 0 - OK / Success (including empty query results)
|
|
254
|
-
* 1 - Runtime error (file missing, bad arguments, execution error)
|
|
255
|
-
* 2 - Parse / Syntax error (invalid Whiteboard Script or malformed WQL)
|
|
256
|
-
* 3 - Pack load error (failed to import or register --pack)
|
|
257
|
-
*/
|
|
258
|
-
|
|
259
|
-
interface CliParsedArgs {
|
|
260
|
-
subcommand?: 'parse' | 'run' | 'query' | 'download' | 'import' | 'build' | 'seed' | 'reset' | 'init' | 'server' | 'serve' | 'playground' | 'help' | 'version';
|
|
261
|
-
target?: string;
|
|
262
|
-
/** Second positional: the id (download) or file (import) after the kind. */
|
|
263
|
-
target2?: string;
|
|
264
|
-
corpus?: string;
|
|
265
|
-
stdinLog?: boolean;
|
|
266
|
-
stdinFacts?: boolean;
|
|
267
|
-
format: OutputFormat;
|
|
268
|
-
output?: string;
|
|
269
|
-
packs: string[];
|
|
270
|
-
sport?: string;
|
|
271
|
-
unit?: string;
|
|
272
|
-
help?: boolean;
|
|
273
|
-
version?: boolean;
|
|
274
|
-
/** SQLite database path (--db). Defaults to WOD_WIKI_DB or ./wodwiki.db. */
|
|
275
|
-
db?: string;
|
|
276
|
-
/** Backend driver override (--db-driver): sqlite | postgres | turso. */
|
|
277
|
-
dbDriver?: string;
|
|
278
|
-
/** PostgreSQL connection URL (--database-url) or component flags below. */
|
|
279
|
-
databaseUrl?: string;
|
|
280
|
-
postgresHost?: string;
|
|
281
|
-
postgresPort?: string;
|
|
282
|
-
postgresUser?: string;
|
|
283
|
-
postgresPassword?: string;
|
|
284
|
-
postgresDatabase?: string;
|
|
285
|
-
postgresSsl?: string;
|
|
286
|
-
/** Turso/libSQL target (--turso-url) plus its auth token. */
|
|
287
|
-
tursoUrl?: string;
|
|
288
|
-
tursoAuthToken?: string;
|
|
289
|
-
/** Explicit environment file (--env-file); a missing file is an error. */
|
|
290
|
-
envFile?: string;
|
|
291
|
-
/** Hosting bind address/port and prebuilt frontend directory (server/playground). */
|
|
292
|
-
host?: string;
|
|
293
|
-
port?: string;
|
|
294
|
-
dist?: string;
|
|
295
|
-
/** IR debug output: undefined = off, '' = default file name, otherwise the file name. */
|
|
296
|
-
debug?: string;
|
|
297
|
-
/** Extra seed source directories for `wod seed` (repeatable). */
|
|
298
|
-
sources: string[];
|
|
299
|
-
/** `wod build`: scaffold markdown stubs for newly discovered efforts. */
|
|
300
|
-
scaffold?: boolean;
|
|
301
|
-
/** `wod build`: extra template markdown file compiled as the `template` chunk. */
|
|
302
|
-
template?: string;
|
|
303
|
-
/** `wod build`: content repo root (alias for the positional directory). */
|
|
304
|
-
dir?: string;
|
|
305
|
-
}
|
|
306
|
-
declare function parseCliArgs(args: string[]): CliParsedArgs;
|
|
307
|
-
declare function readStdin(): Promise<string>;
|
|
308
|
-
/**
|
|
309
|
-
* Main CLI entry point. Returns numeric exit code.
|
|
310
|
-
*/
|
|
311
|
-
declare function cliMain(argv?: string[], io?: {
|
|
312
|
-
stdout?: (text: string) => void;
|
|
313
|
-
stderr?: (text: string) => void;
|
|
314
|
-
readStdinFn?: () => Promise<string>;
|
|
315
|
-
}): Promise<number>;
|
|
316
|
-
|
|
317
115
|
/**
|
|
318
116
|
* Import / Export exchange formats for notes and sessions.
|
|
319
117
|
*
|
|
@@ -391,7 +189,7 @@ declare function effortToMarkdown(effort: {
|
|
|
391
189
|
/** One-label-per-row CSV (header `label`) for equipment catalogs. */
|
|
392
190
|
declare function equipmentToCsv(labels: readonly string[]): string;
|
|
393
191
|
declare function csvToEquipmentLabels(csv: string): string[];
|
|
394
|
-
declare const SESSION_CSV_HEADER: ("
|
|
192
|
+
declare const SESSION_CSV_HEADER: ("duration" | "dialect" | "origin" | "noteId" | "sessionId" | "blockId" | "blockVersion" | "blockContentId" | "status" | "startTime" | "endTime" | "completed" | "sessionCreatedAt" | "sessionExtraJson" | "eventId" | "grain" | "outputType" | "timestamp" | "pageId" | "effortSlug" | "eventBlockId" | "eventBlockVersion" | "eventBlockContentId" | "eventOrigin" | "timeSpan" | "sourceBlockKey" | "sourceStatementId" | "line" | "text" | "stackLevel" | "completionReason" | "representationKind" | "metricType" | "metricValue" | "metricUnit" | "metricImage" | "metricOrigin" | "metricMetadata" | "metricTemporal" | "metricJson" | "eventExtraJson")[];
|
|
395
193
|
/**
|
|
396
194
|
* Serialize a session + its events to CSV — one row per metric, preceded by
|
|
397
195
|
* one session anchor row (empty event columns). Import with
|
|
@@ -417,13 +215,13 @@ declare function csvToSessionRows(csv: string): SessionImportRows;
|
|
|
417
215
|
* Auto-generated build version metadata.
|
|
418
216
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
419
217
|
*/
|
|
420
|
-
declare const VERSION = "0.36.
|
|
421
|
-
declare const GIT_SHA = "
|
|
422
|
-
declare const BUILD_TIME = "2026-10-
|
|
218
|
+
declare const VERSION = "0.36.2133";
|
|
219
|
+
declare const GIT_SHA = "bb2644d";
|
|
220
|
+
declare const BUILD_TIME = "2026-10-15T01:00:35.539Z";
|
|
423
221
|
declare const SEMVER: {
|
|
424
|
-
readonly version: "0.36.
|
|
425
|
-
readonly gitSha: "
|
|
426
|
-
readonly buildTime: "2026-10-
|
|
222
|
+
readonly version: "0.36.2133";
|
|
223
|
+
readonly gitSha: "bb2644d";
|
|
224
|
+
readonly buildTime: "2026-10-15T01:00:35.539Z";
|
|
427
225
|
};
|
|
428
226
|
|
|
429
227
|
declare const SEED_SCHEMA = 8;
|
|
@@ -504,4 +302,4 @@ declare function applySeedChunk(storage: IStorage, write: SeedChunkWrite): Promi
|
|
|
504
302
|
declare function assertSeedManifest(value: unknown): SeedManifest;
|
|
505
303
|
declare function assertSeedRows(value: unknown): SeedRow[];
|
|
506
304
|
|
|
507
|
-
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type
|
|
305
|
+
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type CorpusIRData, DASHBOARDS_CHUNK_ID, EFFORTS_CHUNK_ID, type EffortFileFields, 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, extractNoteIdentity, extractTypedTags, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, isIRFile, listLanguagePacks, markdownToEffort, parseCsvLine, readFrontmatterMeta, registerLanguagePack, seedMetaKey, seedNoteId, seedNoteSourceId, sessionToCsv, splitCsvRecords, statementToNode, unregisterLanguagePack };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement,
|
|
1
|
+
import { IDialect, EventRecord, Note, BlockRevision, BlockIndexRow, Session, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement, NoteBlock, BlockEffort } from '@bitcobblers/wod-wiki-core';
|
|
2
2
|
export * from '@bitcobblers/wod-wiki-core';
|
|
3
|
-
import { IRealtimeProcessor, ISummaryProcessor, IEffort, IScript
|
|
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';
|
|
5
5
|
export { BlockTimerDisplay, BlockTimerDisplayProps, ScriptRuntimeProvider, ScriptRuntimeProviderProps, UseRuntimeExecutionReturn, useActiveControls, useBlockMemory, useLiveAnalytics, useMemorySubscription, useNextPreview, useOutputStatements, usePrimaryTimer, useRoundDisplay, useRuntimeExecution, useScriptRuntime, useSecondaryTimers, useSnapshotBlocks, useStackDisplayRows, useStackFragmentSources, useStackSnapshot, useStackTimers, useTimerDisplay, useTimerElapsed } from '@bitcobblers/wod-wiki-lang/react';
|
|
6
|
-
import { EventStore
|
|
6
|
+
import { EventStore } from '@bitcobblers/wod-wiki-wql';
|
|
7
7
|
export { Aggregator, AnyParsedQuery, BlockQueryStore, ComparisonOp, DASHBOARD_GRID_MAX_COLS, DASHBOARD_WIDGET_TYPES, DEFAULT_DASHBOARD_TITLE, DashboardDocument, DashboardMeta, DashboardToken, DashboardWidget, EffortQueryStore, EventStore, FindOptions, FindPredicate, FindQueryResult, MetricPredicate, NoteQueryStore, PLANNED_WIDGET_TYPES, ParsedAggregateQuery, ParsedFindQuery, ParsedPipelineQuery, ParsedRowsQuery, PipelineSink, PipelineSource, QueryOptions, QueryResult, QueryService, QueryServiceStores, QueryWidgetSuffix, QueryWindow, RowsQueryResult, RowsRun, 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_VIRTUAL_DIMS, WqlChartHead, buildDashboardDocument, buildDashboardScaffold, dashboardSlug, defaultTokenValues, extractDashboardTokens, isAggregateQuery, isDashboardMeta, isDashboardWidgetType, isFindQuery, isPipelineQuery, normalizeWql, parseQuery, parseQueryWidgetSuffix, parseWqlSuffixes, resolveWidgetType, serialize, splitAtWhere, substituteTokens, unknownTokensMessage, unknownWidgetTypeMessage, wql, wqlLanguage, wqlParser, wqlTerms } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import { Session as Session$1, Note as Note$1, IStorage } from '@bitcobblers/wod-wiki-storage';
|
|
9
9
|
|
|
@@ -112,208 +112,6 @@ interface CorpusIRData {
|
|
|
112
112
|
tags?: Record<string, string[]>;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
/**
|
|
116
|
-
* Headless Parse Command Runner
|
|
117
|
-
*
|
|
118
|
-
* Parses Whiteboard Script source text and emits a versioned IR parse-tree envelope.
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
declare class ParseSyntaxError extends Error {
|
|
122
|
-
readonly errors: Array<{
|
|
123
|
-
message: string;
|
|
124
|
-
line?: number;
|
|
125
|
-
}>;
|
|
126
|
-
constructor(errors: Array<{
|
|
127
|
-
message: string;
|
|
128
|
-
line?: number;
|
|
129
|
-
}>, message?: string);
|
|
130
|
-
}
|
|
131
|
-
interface ParseOptions {
|
|
132
|
-
sport?: string;
|
|
133
|
-
sourceLabel?: string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Parses Whiteboard Script source directly into a StatementNode IR envelope.
|
|
137
|
-
*/
|
|
138
|
-
declare function runParse(source: string, options?: ParseOptions): WodWikiIRFile<StatementNode>;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Headless Execution Command Runner
|
|
142
|
-
*
|
|
143
|
-
* Executes Whiteboard Script through JIT compiler and runtime state machine,
|
|
144
|
-
* emitting a versioned execution-log IR envelope.
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
interface RunOptions {
|
|
148
|
-
sport?: string;
|
|
149
|
-
dialect?: 'time' | 'log';
|
|
150
|
-
blockId?: string;
|
|
151
|
-
blockVersion?: number;
|
|
152
|
-
startTime?: number;
|
|
153
|
-
maxIterations?: number;
|
|
154
|
-
now?: INowProvider;
|
|
155
|
-
sourceLabel?: string;
|
|
156
|
-
}
|
|
157
|
-
declare function buildWorkoutResults(outputs: readonly IOutputStatement[], options: {
|
|
158
|
-
readonly startTime?: number;
|
|
159
|
-
readonly elapsedTime: number;
|
|
160
|
-
readonly completed: boolean;
|
|
161
|
-
readonly now: INowProvider;
|
|
162
|
-
}): WorkoutResults;
|
|
163
|
-
/**
|
|
164
|
-
* Runs a workout script to completion using headless state machine and Node clock.
|
|
165
|
-
*/
|
|
166
|
-
declare function runExecution(source: string, options?: RunOptions): Promise<WodWikiIRFile<ExecutionLog>>;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Headless WQL Query Command Runner
|
|
170
|
-
*
|
|
171
|
-
* Evaluates WQL queries against in-memory stores sourced from --corpus,
|
|
172
|
-
* --stdin-log, or --stdin-facts, and emits a versioned IR envelope.
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
declare class WqlSyntaxError extends Error {
|
|
176
|
-
readonly query: string;
|
|
177
|
-
readonly syntaxError: string;
|
|
178
|
-
constructor(query: string, syntaxError: string);
|
|
179
|
-
}
|
|
180
|
-
interface QueryCliOptions {
|
|
181
|
-
corpusPath?: string;
|
|
182
|
-
stdinLog?: string;
|
|
183
|
-
stdinFacts?: string;
|
|
184
|
-
preferredUnit?: string;
|
|
185
|
-
sourceLabel?: string;
|
|
186
|
-
/** Pre-built store bundle (e.g. sqlite-backed). When set, the corpus/stdin
|
|
187
|
-
* dataset options are ignored. */
|
|
188
|
-
stores?: QueryServiceStores;
|
|
189
|
-
}
|
|
190
|
-
interface LoadedData {
|
|
191
|
-
eventRecords: EventRecord[];
|
|
192
|
-
facts: AnalyticsDataPoint[];
|
|
193
|
-
results: Session[];
|
|
194
|
-
notes: Note[];
|
|
195
|
-
blocks: BlockIndexRow[];
|
|
196
|
-
revisions: BlockRevision[];
|
|
197
|
-
efforts: IEffort[];
|
|
198
|
-
noteTags: Record<string, string[]>;
|
|
199
|
-
}
|
|
200
|
-
declare function loadQueryData(options: QueryCliOptions): LoadedData;
|
|
201
|
-
/**
|
|
202
|
-
* Runs a WQL query against the provided in-memory dataset and returns a versioned IR envelope.
|
|
203
|
-
*/
|
|
204
|
-
declare function runQueryCli(wqlString: string, options?: QueryCliOptions): Promise<WodWikiIRFile<QueryResult | RowsQueryResult | FindQueryResult | PipelineResult>>;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Dynamic Language Pack Loader
|
|
208
|
-
*
|
|
209
|
-
* Dynamically loads and registers Language Packs passed via `--pack <module-spec>`.
|
|
210
|
-
* Throws PackLoadError on failure, enabling exit code 3 handling.
|
|
211
|
-
*/
|
|
212
|
-
|
|
213
|
-
declare class PackLoadError extends Error {
|
|
214
|
-
readonly spec: string;
|
|
215
|
-
readonly originalError: unknown;
|
|
216
|
-
constructor(spec: string, originalError: unknown);
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Dynamically imports a Language Pack module and registers it.
|
|
220
|
-
*
|
|
221
|
-
* @param moduleSpec - Relative or absolute path, or package name.
|
|
222
|
-
*/
|
|
223
|
-
declare function loadLanguagePack(moduleSpec: string): Promise<LanguagePack>;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* CLI Output Formatters (JSON, ASCII Table, CSV)
|
|
227
|
-
*
|
|
228
|
-
* Implements presentation formatting for parse-tree, execution-log,
|
|
229
|
-
* and WQL query results across json, table, and csv formats.
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
type OutputFormat = 'json' | 'table' | 'csv';
|
|
233
|
-
/**
|
|
234
|
-
* Format StatementNode parse tree
|
|
235
|
-
*/
|
|
236
|
-
declare function formatParseOutput(ir: WodWikiIRFile<StatementNode>, format: OutputFormat, pretty?: boolean): string;
|
|
237
|
-
/**
|
|
238
|
-
* Format ExecutionLog runtime output
|
|
239
|
-
*/
|
|
240
|
-
declare function formatExecutionOutput(ir: WodWikiIRFile<ExecutionLog>, format: OutputFormat, pretty?: boolean): string;
|
|
241
|
-
/**
|
|
242
|
-
* Format QueryResult / RowsQueryResult / FindQueryResult / PipelineResult
|
|
243
|
-
*/
|
|
244
|
-
declare function formatQueryOutput(ir: WodWikiIRFile<QueryResult | RowsQueryResult | FindQueryResult | PipelineResult>, format: OutputFormat, pretty?: boolean): string;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Unified `wod` CLI Runner
|
|
248
|
-
*
|
|
249
|
-
* Implements CLI command routing, argument parsing, pipe handling,
|
|
250
|
-
* and exit code conventions per wayfinder #962 and issue #967.
|
|
251
|
-
*
|
|
252
|
-
* Exit Codes:
|
|
253
|
-
* 0 - OK / Success (including empty query results)
|
|
254
|
-
* 1 - Runtime error (file missing, bad arguments, execution error)
|
|
255
|
-
* 2 - Parse / Syntax error (invalid Whiteboard Script or malformed WQL)
|
|
256
|
-
* 3 - Pack load error (failed to import or register --pack)
|
|
257
|
-
*/
|
|
258
|
-
|
|
259
|
-
interface CliParsedArgs {
|
|
260
|
-
subcommand?: 'parse' | 'run' | 'query' | 'download' | 'import' | 'build' | 'seed' | 'reset' | 'init' | 'server' | 'serve' | 'playground' | 'help' | 'version';
|
|
261
|
-
target?: string;
|
|
262
|
-
/** Second positional: the id (download) or file (import) after the kind. */
|
|
263
|
-
target2?: string;
|
|
264
|
-
corpus?: string;
|
|
265
|
-
stdinLog?: boolean;
|
|
266
|
-
stdinFacts?: boolean;
|
|
267
|
-
format: OutputFormat;
|
|
268
|
-
output?: string;
|
|
269
|
-
packs: string[];
|
|
270
|
-
sport?: string;
|
|
271
|
-
unit?: string;
|
|
272
|
-
help?: boolean;
|
|
273
|
-
version?: boolean;
|
|
274
|
-
/** SQLite database path (--db). Defaults to WOD_WIKI_DB or ./wodwiki.db. */
|
|
275
|
-
db?: string;
|
|
276
|
-
/** Backend driver override (--db-driver): sqlite | postgres | turso. */
|
|
277
|
-
dbDriver?: string;
|
|
278
|
-
/** PostgreSQL connection URL (--database-url) or component flags below. */
|
|
279
|
-
databaseUrl?: string;
|
|
280
|
-
postgresHost?: string;
|
|
281
|
-
postgresPort?: string;
|
|
282
|
-
postgresUser?: string;
|
|
283
|
-
postgresPassword?: string;
|
|
284
|
-
postgresDatabase?: string;
|
|
285
|
-
postgresSsl?: string;
|
|
286
|
-
/** Turso/libSQL target (--turso-url) plus its auth token. */
|
|
287
|
-
tursoUrl?: string;
|
|
288
|
-
tursoAuthToken?: string;
|
|
289
|
-
/** Explicit environment file (--env-file); a missing file is an error. */
|
|
290
|
-
envFile?: string;
|
|
291
|
-
/** Hosting bind address/port and prebuilt frontend directory (server/playground). */
|
|
292
|
-
host?: string;
|
|
293
|
-
port?: string;
|
|
294
|
-
dist?: string;
|
|
295
|
-
/** IR debug output: undefined = off, '' = default file name, otherwise the file name. */
|
|
296
|
-
debug?: string;
|
|
297
|
-
/** Extra seed source directories for `wod seed` (repeatable). */
|
|
298
|
-
sources: string[];
|
|
299
|
-
/** `wod build`: scaffold markdown stubs for newly discovered efforts. */
|
|
300
|
-
scaffold?: boolean;
|
|
301
|
-
/** `wod build`: extra template markdown file compiled as the `template` chunk. */
|
|
302
|
-
template?: string;
|
|
303
|
-
/** `wod build`: content repo root (alias for the positional directory). */
|
|
304
|
-
dir?: string;
|
|
305
|
-
}
|
|
306
|
-
declare function parseCliArgs(args: string[]): CliParsedArgs;
|
|
307
|
-
declare function readStdin(): Promise<string>;
|
|
308
|
-
/**
|
|
309
|
-
* Main CLI entry point. Returns numeric exit code.
|
|
310
|
-
*/
|
|
311
|
-
declare function cliMain(argv?: string[], io?: {
|
|
312
|
-
stdout?: (text: string) => void;
|
|
313
|
-
stderr?: (text: string) => void;
|
|
314
|
-
readStdinFn?: () => Promise<string>;
|
|
315
|
-
}): Promise<number>;
|
|
316
|
-
|
|
317
115
|
/**
|
|
318
116
|
* Import / Export exchange formats for notes and sessions.
|
|
319
117
|
*
|
|
@@ -391,7 +189,7 @@ declare function effortToMarkdown(effort: {
|
|
|
391
189
|
/** One-label-per-row CSV (header `label`) for equipment catalogs. */
|
|
392
190
|
declare function equipmentToCsv(labels: readonly string[]): string;
|
|
393
191
|
declare function csvToEquipmentLabels(csv: string): string[];
|
|
394
|
-
declare const SESSION_CSV_HEADER: ("
|
|
192
|
+
declare const SESSION_CSV_HEADER: ("duration" | "dialect" | "origin" | "noteId" | "sessionId" | "blockId" | "blockVersion" | "blockContentId" | "status" | "startTime" | "endTime" | "completed" | "sessionCreatedAt" | "sessionExtraJson" | "eventId" | "grain" | "outputType" | "timestamp" | "pageId" | "effortSlug" | "eventBlockId" | "eventBlockVersion" | "eventBlockContentId" | "eventOrigin" | "timeSpan" | "sourceBlockKey" | "sourceStatementId" | "line" | "text" | "stackLevel" | "completionReason" | "representationKind" | "metricType" | "metricValue" | "metricUnit" | "metricImage" | "metricOrigin" | "metricMetadata" | "metricTemporal" | "metricJson" | "eventExtraJson")[];
|
|
395
193
|
/**
|
|
396
194
|
* Serialize a session + its events to CSV — one row per metric, preceded by
|
|
397
195
|
* one session anchor row (empty event columns). Import with
|
|
@@ -417,13 +215,13 @@ declare function csvToSessionRows(csv: string): SessionImportRows;
|
|
|
417
215
|
* Auto-generated build version metadata.
|
|
418
216
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
419
217
|
*/
|
|
420
|
-
declare const VERSION = "0.36.
|
|
421
|
-
declare const GIT_SHA = "
|
|
422
|
-
declare const BUILD_TIME = "2026-10-
|
|
218
|
+
declare const VERSION = "0.36.2133";
|
|
219
|
+
declare const GIT_SHA = "bb2644d";
|
|
220
|
+
declare const BUILD_TIME = "2026-10-15T01:00:35.539Z";
|
|
423
221
|
declare const SEMVER: {
|
|
424
|
-
readonly version: "0.36.
|
|
425
|
-
readonly gitSha: "
|
|
426
|
-
readonly buildTime: "2026-10-
|
|
222
|
+
readonly version: "0.36.2133";
|
|
223
|
+
readonly gitSha: "bb2644d";
|
|
224
|
+
readonly buildTime: "2026-10-15T01:00:35.539Z";
|
|
427
225
|
};
|
|
428
226
|
|
|
429
227
|
declare const SEED_SCHEMA = 8;
|
|
@@ -504,4 +302,4 @@ declare function applySeedChunk(storage: IStorage, write: SeedChunkWrite): Promi
|
|
|
504
302
|
declare function assertSeedManifest(value: unknown): SeedManifest;
|
|
505
303
|
declare function assertSeedRows(value: unknown): SeedRow[];
|
|
506
304
|
|
|
507
|
-
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type
|
|
305
|
+
export { BUILD_TIME, CANVAS_CHUNK_ID, type ChunkKind, type CorpusIRData, DASHBOARDS_CHUNK_ID, EFFORTS_CHUNK_ID, type EffortFileFields, 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, extractNoteIdentity, extractTypedTags, getRegisteredLanguagePacks, inMemoryEventStore, injectIdentityFrontmatter, isIRFile, listLanguagePacks, markdownToEffort, parseCsvLine, readFrontmatterMeta, registerLanguagePack, seedMetaKey, seedNoteId, seedNoteSourceId, sessionToCsv, splitCsvRecords, statementToNode, unregisterLanguagePack };
|