@bitcobblers/wod-wiki-engine 0.60.2258 → 0.62.2260
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/agent.cjs +1929 -587
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.d.cts +135 -10
- package/dist/agent.d.ts +135 -10
- package/dist/agent.mjs +433 -97
- package/dist/agent.mjs.map +1 -1
- package/dist/{chunk-4F6VCY2U.mjs → chunk-QVYGLAEZ.mjs} +2045 -269
- package/dist/chunk-QVYGLAEZ.mjs.map +1 -0
- package/dist/index.cjs +2083 -268
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +136 -22
- package/dist/index.d.ts +136 -22
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/ir-fqQyyX01.d.cts +685 -0
- package/dist/ir-fqQyyX01.d.ts +685 -0
- package/package.json +5 -5
- package/dist/chunk-4F6VCY2U.mjs.map +0 -1
- package/dist/ir-B46Q9icI.d.cts +0 -402
- package/dist/ir-B46Q9icI.d.ts +0 -402
package/dist/ir-B46Q9icI.d.ts
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import { NoteBlock, BlockIndexRow, BlockEffort, BlockEquipment, Session, EventRecord, Note, PublicationVisibilitySummary, ResultOrigin, BlockRevision, NoteProvenance, AnalyticsDataPoint, StoredOutputStatement, WorkoutResults, ICodeStatement } from '@bitcobblers/wod-wiki-core';
|
|
2
|
-
import { IStorage } from '@bitcobblers/wod-wiki-storage';
|
|
3
|
-
import { IEffort, IScript } from '@bitcobblers/wod-wiki-lang';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* FeedTree — universal path-addressed byte tree port and runtime-agnostic adapters.
|
|
7
|
-
*
|
|
8
|
-
* Unifies:
|
|
9
|
-
* - MemoryFeedTree: in-memory tests, server snapshot staging, dirty diffs
|
|
10
|
-
* - HttpFeedTree: read-only fetch over GitHub Pages, custom peer URLs, and `wod server /feed/`
|
|
11
|
-
* - DirectoryHandleFeedTree: browser File System Access folder export/import
|
|
12
|
-
*/
|
|
13
|
-
type FeedPath = string;
|
|
14
|
-
type FeedTreeErrorCode = 'not-found' | 'unsupported' | 'read-only' | 'checksum' | 'layout' | 'permission';
|
|
15
|
-
declare class FeedTreeError extends Error {
|
|
16
|
-
readonly code: FeedTreeErrorCode;
|
|
17
|
-
constructor(code: FeedTreeErrorCode, message: string);
|
|
18
|
-
}
|
|
19
|
-
interface FeedFileStat {
|
|
20
|
-
bytes: number;
|
|
21
|
-
sha256?: string;
|
|
22
|
-
}
|
|
23
|
-
interface FeedTreeReader {
|
|
24
|
-
read(path: FeedPath): Promise<Uint8Array>;
|
|
25
|
-
stat(path: FeedPath): Promise<FeedFileStat | undefined>;
|
|
26
|
-
list?(prefix?: string): Promise<FeedPath[]>;
|
|
27
|
-
}
|
|
28
|
-
interface FeedTreeWriter {
|
|
29
|
-
write(path: FeedPath, bytes: Uint8Array): Promise<void>;
|
|
30
|
-
delete(path: FeedPath): Promise<void>;
|
|
31
|
-
}
|
|
32
|
-
interface FeedTree extends FeedTreeReader, FeedTreeWriter {
|
|
33
|
-
}
|
|
34
|
-
declare function encodeUtf8(text: string): Uint8Array;
|
|
35
|
-
declare function decodeUtf8(bytes: Uint8Array): string;
|
|
36
|
-
declare function normalizeFeedTreePath(rawPath: string): FeedPath;
|
|
37
|
-
declare function sha256HexAsync(input: Uint8Array | string): Promise<string>;
|
|
38
|
-
declare class MemoryFeedTree implements FeedTree {
|
|
39
|
-
private readonly store;
|
|
40
|
-
constructor(initial?: Readonly<Record<string, string | Uint8Array>>);
|
|
41
|
-
read(path: FeedPath): Promise<Uint8Array>;
|
|
42
|
-
readText(path: FeedPath): Promise<string>;
|
|
43
|
-
stat(path: FeedPath): Promise<FeedFileStat | undefined>;
|
|
44
|
-
write(path: FeedPath, bytes: Uint8Array): Promise<void>;
|
|
45
|
-
writeText(path: FeedPath, text: string): Promise<void>;
|
|
46
|
-
delete(path: FeedPath): Promise<void>;
|
|
47
|
-
list(prefix?: string): Promise<FeedPath[]>;
|
|
48
|
-
entries(): Array<[FeedPath, Uint8Array]>;
|
|
49
|
-
}
|
|
50
|
-
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
51
|
-
declare class HttpFeedTree implements FeedTreeReader {
|
|
52
|
-
private readonly baseUrl;
|
|
53
|
-
private readonly fetchImpl;
|
|
54
|
-
constructor(baseUrl: string, fetchImpl?: FetchLike);
|
|
55
|
-
read(path: FeedPath): Promise<Uint8Array>;
|
|
56
|
-
readJson<T = unknown>(path: FeedPath): Promise<T>;
|
|
57
|
-
stat(path: FeedPath): Promise<FeedFileStat | undefined>;
|
|
58
|
-
}
|
|
59
|
-
/** Structural subset of the Web File System Access API so non-DOM builds need no ambient DOM types. */
|
|
60
|
-
interface FileSystemWritableLike {
|
|
61
|
-
write(data: Uint8Array): Promise<void>;
|
|
62
|
-
close(): Promise<void>;
|
|
63
|
-
}
|
|
64
|
-
interface FileSystemFileHandleLike {
|
|
65
|
-
readonly kind: 'file';
|
|
66
|
-
readonly name: string;
|
|
67
|
-
getFile(): Promise<{
|
|
68
|
-
arrayBuffer(): Promise<ArrayBuffer>;
|
|
69
|
-
size: number;
|
|
70
|
-
}>;
|
|
71
|
-
createWritable(): Promise<FileSystemWritableLike>;
|
|
72
|
-
}
|
|
73
|
-
interface FileSystemDirectoryHandleLike {
|
|
74
|
-
readonly kind: 'directory';
|
|
75
|
-
readonly name: string;
|
|
76
|
-
getDirectoryHandle(name: string, options?: {
|
|
77
|
-
create?: boolean;
|
|
78
|
-
}): Promise<FileSystemDirectoryHandleLike>;
|
|
79
|
-
getFileHandle(name: string, options?: {
|
|
80
|
-
create?: boolean;
|
|
81
|
-
}): Promise<FileSystemFileHandleLike>;
|
|
82
|
-
removeEntry(name: string, options?: {
|
|
83
|
-
recursive?: boolean;
|
|
84
|
-
}): Promise<void>;
|
|
85
|
-
}
|
|
86
|
-
declare class DirectoryHandleFeedTree implements FeedTree {
|
|
87
|
-
private readonly root;
|
|
88
|
-
constructor(root: FileSystemDirectoryHandleLike);
|
|
89
|
-
private resolveDir;
|
|
90
|
-
read(path: FeedPath): Promise<Uint8Array>;
|
|
91
|
-
stat(path: FeedPath): Promise<FeedFileStat | undefined>;
|
|
92
|
-
write(path: FeedPath, bytes: Uint8Array): Promise<void>;
|
|
93
|
-
delete(path: FeedPath): Promise<void>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare const SEED_SCHEMA = 9;
|
|
97
|
-
declare const SEED_REGISTERED_WIDGETS: readonly string[];
|
|
98
|
-
declare const SEED_NAMESPACE = "1b671a64-40d5-491e-99b0-da01ff1f3341";
|
|
99
|
-
/** Source and all current derived rows commit as one chunk. */
|
|
100
|
-
interface SeedRow {
|
|
101
|
-
path: string;
|
|
102
|
-
content: string;
|
|
103
|
-
blocks: Record<string, NoteBlock>;
|
|
104
|
-
blockIndex: BlockIndexRow[];
|
|
105
|
-
blockEfforts: BlockEffort[];
|
|
106
|
-
blockEquipment: BlockEquipment[];
|
|
107
|
-
telemetry?: {
|
|
108
|
-
sessions: Session[];
|
|
109
|
-
events: EventRecord[];
|
|
110
|
-
};
|
|
111
|
-
commit?: string;
|
|
112
|
-
uuid?: string;
|
|
113
|
-
version?: number;
|
|
114
|
-
}
|
|
115
|
-
interface SeedRecordRef {
|
|
116
|
-
uuid: string;
|
|
117
|
-
path: string;
|
|
118
|
-
recordPath: string;
|
|
119
|
-
commit: string;
|
|
120
|
-
version: number;
|
|
121
|
-
sha256: string;
|
|
122
|
-
title?: string;
|
|
123
|
-
date?: number;
|
|
124
|
-
}
|
|
125
|
-
interface NotebookIndexSummary {
|
|
126
|
-
notebookId: string;
|
|
127
|
-
label: string;
|
|
128
|
-
category?: string;
|
|
129
|
-
description?: string;
|
|
130
|
-
indexPath: string;
|
|
131
|
-
version: number;
|
|
132
|
-
commit: string;
|
|
133
|
-
updatedAt?: string;
|
|
134
|
-
builtAt: string;
|
|
135
|
-
sha256: string;
|
|
136
|
-
bytes: number;
|
|
137
|
-
count: number;
|
|
138
|
-
}
|
|
139
|
-
interface NotebookIndex extends NotebookIndexSummary {
|
|
140
|
-
records: SeedRecordRef[];
|
|
141
|
-
}
|
|
142
|
-
type ChunkKind = 'notes';
|
|
143
|
-
interface ManifestChunk {
|
|
144
|
-
id: string;
|
|
145
|
-
path: string;
|
|
146
|
-
sha256: string;
|
|
147
|
-
bytes: number;
|
|
148
|
-
count: number;
|
|
149
|
-
kind?: ChunkKind;
|
|
150
|
-
records?: SeedRecordRef[];
|
|
151
|
-
}
|
|
152
|
-
interface SeedManifest {
|
|
153
|
-
name?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
repositoryUrl?: string;
|
|
156
|
-
schema: number;
|
|
157
|
-
version: number;
|
|
158
|
-
versionLabel?: string;
|
|
159
|
-
commit?: string;
|
|
160
|
-
dirty?: boolean;
|
|
161
|
-
builtAt: string;
|
|
162
|
-
chunks: ManifestChunk[];
|
|
163
|
-
notebooks?: NotebookIndexSummary[];
|
|
164
|
-
}
|
|
165
|
-
type SeedPrecedenceTier = 'core' | 'community' | 'imported' | 'user';
|
|
166
|
-
declare function seedSourceTier(sourceIdOrMetaKey?: string | null, explicitTier?: SeedPrecedenceTier): SeedPrecedenceTier;
|
|
167
|
-
declare function seedPrecedenceRank(sourceIdOrMetaKey?: string | null, explicitTier?: SeedPrecedenceTier): number;
|
|
168
|
-
interface SeedMetaRecord {
|
|
169
|
-
key: string;
|
|
170
|
-
schema: number;
|
|
171
|
-
seedVersion: number;
|
|
172
|
-
builtAt: string;
|
|
173
|
-
importedAt: number;
|
|
174
|
-
chunks: Record<string, {
|
|
175
|
-
sha256: string;
|
|
176
|
-
version?: number;
|
|
177
|
-
builtAt?: string;
|
|
178
|
-
importedAt?: number;
|
|
179
|
-
noteIds?: string[];
|
|
180
|
-
}>;
|
|
181
|
-
claim?: {
|
|
182
|
-
owner: string;
|
|
183
|
-
at: number;
|
|
184
|
-
} | null;
|
|
185
|
-
tier?: SeedPrecedenceTier;
|
|
186
|
-
}
|
|
187
|
-
declare const SEED_BROADCAST_CHANNEL = "wodwiki.seed";
|
|
188
|
-
declare const EFFORTS_CHUNK_ID = "efforts";
|
|
189
|
-
declare const EQUIPMENT_CHUNK_ID = "equipment";
|
|
190
|
-
declare const CANVAS_CHUNK_ID = "canvas";
|
|
191
|
-
declare const DASHBOARDS_CHUNK_ID = "dashboards";
|
|
192
|
-
declare function seedMetaKey(sourceId: string): string;
|
|
193
|
-
/**
|
|
194
|
-
* The feed identifier a checkpoint key names — the key's source id. The
|
|
195
|
-
* checkpoint key keeps its seed spelling (`seed:<id>`, a persisted wire
|
|
196
|
-
* format) and the broadcast channel keeps its own, so a feed's checkpoint
|
|
197
|
-
* IS the checkpoint its id writes.
|
|
198
|
-
*/
|
|
199
|
-
declare function feedIdOfMetaKey(metaKey: string): string;
|
|
200
|
-
declare function emptySeedMeta(key: string): SeedMetaRecord;
|
|
201
|
-
/** The notebook slug a notebook chunk id names — `notebook.<slug>`; the
|
|
202
|
-
* `_root` landing (a file directly under `markdown/notebooks/`) names no
|
|
203
|
-
* notebook. */
|
|
204
|
-
declare function notebookSlugForChunkId(chunkId: string): string | undefined;
|
|
205
|
-
declare function canvasRouteSlug(content: string): string | null;
|
|
206
|
-
declare function seedNoteSourceId(path: string, content: string, chunkId: string): string | undefined;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* VaultIngestor & PublicationManager — transactional Note/Telemetry ingestion,
|
|
210
|
-
* zero-import remote preview, single-Note cloning, and Publication Visibility
|
|
211
|
-
* controls over IStorage.
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
|
-
declare function getNotePublicationSummary(storage: IStorage, noteId: string): Promise<PublicationVisibilitySummary>;
|
|
215
|
-
declare function setNotebookPublic(storage: IStorage, notebookIdOrSlug: string, isPublic: boolean): Promise<Note>;
|
|
216
|
-
declare function setSessionPublic(storage: IStorage, sessionId: string, isPublic: boolean): Promise<Session>;
|
|
217
|
-
declare function previewRemoteNotebook(reader: FeedTreeReader, indexPath: string): Promise<NotebookIndex>;
|
|
218
|
-
declare function previewRemoteRecord(reader: FeedTreeReader, recordPath: string): Promise<SeedRow>;
|
|
219
|
-
declare function cloneRemoteRecord(storage: IStorage, reader: FeedTreeReader, input: {
|
|
220
|
-
feedId: string;
|
|
221
|
-
record: SeedRecordRef;
|
|
222
|
-
targetNotebookId: string;
|
|
223
|
-
includePublicTelemetry?: boolean;
|
|
224
|
-
}): Promise<Note>;
|
|
225
|
-
interface PortableFileEntry {
|
|
226
|
-
path: string;
|
|
227
|
-
content?: string;
|
|
228
|
-
bytes?: Uint8Array;
|
|
229
|
-
}
|
|
230
|
-
interface PortabilityImportReport {
|
|
231
|
-
notesImported: number;
|
|
232
|
-
revisionsImported: number;
|
|
233
|
-
sessionsImported: number;
|
|
234
|
-
eventsImported: number;
|
|
235
|
-
errors: string[];
|
|
236
|
-
}
|
|
237
|
-
declare function exportPortableFilesFromStorage(storage: IStorage, options?: {
|
|
238
|
-
noteIds?: readonly string[];
|
|
239
|
-
telemetryFormat?: 'jsonl' | 'csv' | 'both';
|
|
240
|
-
}): Promise<PortableFileEntry[]>;
|
|
241
|
-
declare function ingestPortableFilesIntoStorage(storage: IStorage, files: readonly PortableFileEntry[], options?: {
|
|
242
|
-
defaultNotebookId?: string;
|
|
243
|
-
now?: number;
|
|
244
|
-
}): Promise<PortabilityImportReport>;
|
|
245
|
-
|
|
246
|
-
declare const FEED_SUBSCRIPTIONS_META_KEY = "feed:subscriptions";
|
|
247
|
-
interface FeedSubscriptionEntry {
|
|
248
|
-
subscribed: boolean;
|
|
249
|
-
notebookIds?: string[] | null;
|
|
250
|
-
hidden?: boolean;
|
|
251
|
-
url?: string;
|
|
252
|
-
name?: string;
|
|
253
|
-
updatedAt: number;
|
|
254
|
-
}
|
|
255
|
-
interface FeedSubscriptionsMetaRecord {
|
|
256
|
-
key: typeof FEED_SUBSCRIPTIONS_META_KEY;
|
|
257
|
-
entries: Record<string, FeedSubscriptionEntry>;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Remove one seed/feed source's imported notes, tags, index rows, bundled
|
|
261
|
-
* definitions (falling back to the next highest-precedence checkpoint),
|
|
262
|
-
* property overrides, and checkpoint record. User-authored notes are never
|
|
263
|
-
* touched.
|
|
264
|
-
*/
|
|
265
|
-
declare function removeSeedSourceContent(storage: IStorage, meta: SeedMetaRecord): Promise<number>;
|
|
266
|
-
declare function listFeedSubscriptionsHeadless(storage: IStorage): Promise<Record<string, FeedSubscriptionEntry>>;
|
|
267
|
-
declare function subscribeFeedSourceHeadless(storage: IStorage, sourceId: string, options?: {
|
|
268
|
-
notebookIds?: string[];
|
|
269
|
-
url?: string;
|
|
270
|
-
name?: string;
|
|
271
|
-
}): Promise<{
|
|
272
|
-
sourceId: string;
|
|
273
|
-
subscribed: true;
|
|
274
|
-
notebookIds: string[] | null;
|
|
275
|
-
}>;
|
|
276
|
-
declare function unsubscribeFeedSourceHeadless(storage: IStorage, sourceId: string): Promise<{
|
|
277
|
-
sourceId: string;
|
|
278
|
-
unsubscribed: true;
|
|
279
|
-
deletedNotes: number;
|
|
280
|
-
}>;
|
|
281
|
-
declare function deleteFeedSourceHeadless(storage: IStorage, sourceId: string): Promise<{
|
|
282
|
-
sourceId: string;
|
|
283
|
-
deleted: true;
|
|
284
|
-
deletedNotes: number;
|
|
285
|
-
}>;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* JournalSessionIntake — Deep module owning read-only workout cloning into
|
|
289
|
-
* `notebook/journal`, atomic Session pinning, and upstream Note provenance
|
|
290
|
-
* resolution.
|
|
291
|
-
*
|
|
292
|
-
* When a workout is started on ANY read-only Note (`seedOrigin === 'seed'`,
|
|
293
|
-
* `feedOrigin === 'feed'`, `notebook/defaults`, `notebook/guides`, or a
|
|
294
|
-
* subscribed Feed Notebook), this module atomically:
|
|
295
|
-
* 1. Clones the full Note (Markdown prose, frontmatter, all workout & widget
|
|
296
|
-
* blocks, and immutable `BlockRevision`s) into `notebook/journal`,
|
|
297
|
-
* 2. Places the cloned Note onto the requested calendar `Page` (`YYYY-MM-DD`),
|
|
298
|
-
* 3. Records structured `NoteProvenance` (`sourceNoteId`, `sourceVersion`,
|
|
299
|
-
* `sourceCommit`, `feedSourceId`, `sourceNotebookId`, `sourcePath`),
|
|
300
|
-
* 4. Pins the new `Session` to the corresponding block occurrence on the
|
|
301
|
-
* Journal clone — leaving the read-only upstream Note untouched.
|
|
302
|
-
*/
|
|
303
|
-
|
|
304
|
-
interface PrepareJournalSessionRunInput {
|
|
305
|
-
noteId: string;
|
|
306
|
-
blockId?: string;
|
|
307
|
-
sessionId?: string;
|
|
308
|
-
journalDate?: string;
|
|
309
|
-
startedAt?: number;
|
|
310
|
-
origin?: ResultOrigin;
|
|
311
|
-
}
|
|
312
|
-
interface PreparedJournalSessionRun {
|
|
313
|
-
note: Note;
|
|
314
|
-
revision: BlockRevision;
|
|
315
|
-
session: Session;
|
|
316
|
-
clonedFromReadOnly: boolean;
|
|
317
|
-
upstreamNoteId?: string;
|
|
318
|
-
}
|
|
319
|
-
interface ResolvedUpstreamProvenance {
|
|
320
|
-
exists: boolean;
|
|
321
|
-
sourceNoteId: string;
|
|
322
|
-
title?: string;
|
|
323
|
-
sourceVersion?: number;
|
|
324
|
-
currentUpstreamVersion?: number;
|
|
325
|
-
sourceCommit?: string;
|
|
326
|
-
feedSourceId?: string;
|
|
327
|
-
sourceNotebookId?: string;
|
|
328
|
-
sourcePath?: string;
|
|
329
|
-
}
|
|
330
|
-
declare function prepareJournalSessionRun(storage: IStorage, input: PrepareJournalSessionRunInput): Promise<PreparedJournalSessionRun>;
|
|
331
|
-
/**
|
|
332
|
-
* Resolve a cloned Note's upstream provenance against current storage.
|
|
333
|
-
* Returns `exists: true` while the original Note remains in storage (so UI can
|
|
334
|
-
* link directly to it), and `exists: false` with preserved metadata if the
|
|
335
|
-
* upstream Feed was later unsubscribed or removed.
|
|
336
|
-
*/
|
|
337
|
-
declare function resolveUpstreamProvenance(storage: IStorage, note: Pick<Note, 'provenance' | 'sourceId'>): Promise<ResolvedUpstreamProvenance | null>;
|
|
338
|
-
declare function buildNoteProvenance(sourceNote: Pick<Note, 'id' | 'seedVersion' | 'sourceRevision' | 'seedCommit' | 'feedSourceId' | 'sourcePath'>, sourceNotebookId: string | undefined, clonedAt: number): NoteProvenance;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Pure JSON Intermediate Representation (IR) Schemas & Envelope
|
|
342
|
-
*
|
|
343
|
-
* Implements wayfinder #955 and research asset `docs/research/json-ir-schemas-2026-08-17.md`.
|
|
344
|
-
* Freezes the existing result vocabulary (QueryResult, RowsQueryResult, FindQueryResult,
|
|
345
|
-
* StoredOutputStatement, AnalyticsDataPoint, WorkoutResult, StatementNode) in a
|
|
346
|
-
* versioned envelope safe for JSON round-trips.
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
type IrKind = 'fact-set' | 'result-set' | 'note-set' | 'corpus' | 'query-result' | 'find-result' | 'rows-result' | 'pipeline-result' | 'parse-tree' | 'execution-log';
|
|
350
|
-
/**
|
|
351
|
-
* Universal JSON envelope for all headless IR fixtures and output artifacts.
|
|
352
|
-
*/
|
|
353
|
-
interface WodWikiIRFile<T> {
|
|
354
|
-
$schema: 'https://wod-wiki.dev/ir/v1.json';
|
|
355
|
-
kind: IrKind;
|
|
356
|
-
generatedAt: number;
|
|
357
|
-
source: string;
|
|
358
|
-
data: T;
|
|
359
|
-
}
|
|
360
|
-
declare function createIRFile<T>(kind: IrKind, data: T, optionsOrSource?: string | {
|
|
361
|
-
source?: string;
|
|
362
|
-
generatedAt?: number;
|
|
363
|
-
}, generatedAt?: number): WodWikiIRFile<T>;
|
|
364
|
-
declare function isIRFile<T = unknown>(obj: unknown): obj is WodWikiIRFile<T>;
|
|
365
|
-
interface MetricNode {
|
|
366
|
-
type: string;
|
|
367
|
-
image?: string;
|
|
368
|
-
value?: unknown;
|
|
369
|
-
origin?: string;
|
|
370
|
-
}
|
|
371
|
-
interface StatementNode {
|
|
372
|
-
id: number;
|
|
373
|
-
type: 'statement' | 'duration' | 'rounds' | 'rest' | 'segment' | 'root';
|
|
374
|
-
raw: string;
|
|
375
|
-
from: number;
|
|
376
|
-
to: number;
|
|
377
|
-
metrics: MetricNode[];
|
|
378
|
-
hints?: string[];
|
|
379
|
-
children?: StatementNode[];
|
|
380
|
-
}
|
|
381
|
-
declare function statementToNode(stmt: ICodeStatement, idMap: Map<number, ICodeStatement>): StatementNode;
|
|
382
|
-
/** Builds a StatementNode tree from a parsed WhiteboardScript. */
|
|
383
|
-
declare function buildStatementTree(script: IScript): StatementNode;
|
|
384
|
-
interface ExecutionLog {
|
|
385
|
-
results: WorkoutResults;
|
|
386
|
-
logs: StoredOutputStatement[];
|
|
387
|
-
statements?: StoredOutputStatement[];
|
|
388
|
-
blockKey?: string;
|
|
389
|
-
sourceScript?: string;
|
|
390
|
-
}
|
|
391
|
-
interface CorpusIRData {
|
|
392
|
-
notes?: Note[];
|
|
393
|
-
revisions?: BlockRevision[];
|
|
394
|
-
blocks?: BlockIndexRow[];
|
|
395
|
-
results?: Session[];
|
|
396
|
-
facts?: AnalyticsDataPoint[];
|
|
397
|
-
efforts?: IEffort[];
|
|
398
|
-
logs?: StoredOutputStatement[];
|
|
399
|
-
tags?: Record<string, string[]>;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export { exportPortableFilesFromStorage as $, type PreparedJournalSessionRun as A, SEED_BROADCAST_CHANNEL as B, CANVAS_CHUNK_ID as C, DASHBOARDS_CHUNK_ID as D, EFFORTS_CHUNK_ID as E, type FeedTree as F, SEED_NAMESPACE as G, HttpFeedTree as H, type IrKind as I, SEED_REGISTERED_WIDGETS as J, SEED_SCHEMA as K, type SeedRecordRef as L, type ManifestChunk as M, type NotebookIndex as N, buildNoteProvenance as O, type PortableFileEntry as P, buildStatementTree as Q, type ResolvedUpstreamProvenance as R, type StatementNode as S, canvasRouteSlug as T, cloneRemoteRecord as U, createIRFile as V, type WodWikiIRFile as W, decodeUtf8 as X, deleteFeedSourceHeadless as Y, emptySeedMeta as Z, encodeUtf8 as _, type FeedSubscriptionEntry as a, feedIdOfMetaKey as a0, getNotePublicationSummary as a1, ingestPortableFilesIntoStorage as a2, isIRFile as a3, listFeedSubscriptionsHeadless as a4, normalizeFeedTreePath as a5, notebookSlugForChunkId as a6, prepareJournalSessionRun as a7, previewRemoteNotebook as a8, previewRemoteRecord as a9, removeSeedSourceContent as aa, resolveUpstreamProvenance as ab, seedMetaKey as ac, seedNoteSourceId as ad, seedPrecedenceRank as ae, seedSourceTier as af, setNotebookPublic as ag, setSessionPublic as ah, sha256HexAsync as ai, statementToNode as aj, subscribeFeedSourceHeadless as ak, unsubscribeFeedSourceHeadless as al, type SeedRow as b, type SeedManifest as c, type SeedMetaRecord as d, type FeedTreeReader as e, type ChunkKind as f, type CorpusIRData as g, DirectoryHandleFeedTree as h, EQUIPMENT_CHUNK_ID as i, type ExecutionLog as j, FEED_SUBSCRIPTIONS_META_KEY as k, type FeedFileStat as l, type FeedPath as m, type FeedSubscriptionsMetaRecord as n, FeedTreeError as o, type FeedTreeErrorCode as p, type FeedTreeWriter as q, type FetchLike as r, type FileSystemDirectoryHandleLike as s, type FileSystemFileHandleLike as t, type FileSystemWritableLike as u, MemoryFeedTree as v, type MetricNode as w, type NotebookIndexSummary as x, type PortabilityImportReport as y, type PrepareJournalSessionRunInput as z };
|