@morshoto/framekit 0.1.0

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.
Files changed (31) hide show
  1. package/README.md +67 -0
  2. package/bin/framekit.mjs +26 -0
  3. package/dist-package/adapters/final-cut/typescript/src/analyzers.js +116 -0
  4. package/dist-package/adapters/final-cut/typescript/src/assets.js +112 -0
  5. package/dist-package/adapters/final-cut/typescript/src/connection.js +379 -0
  6. package/dist-package/adapters/final-cut/typescript/src/disposable-native.js +282 -0
  7. package/dist-package/adapters/final-cut/typescript/src/export.js +382 -0
  8. package/dist-package/adapters/final-cut/typescript/src/fcpxml.js +503 -0
  9. package/dist-package/adapters/final-cut/typescript/src/index.js +11 -0
  10. package/dist-package/adapters/final-cut/typescript/src/live.js +415 -0
  11. package/dist-package/adapters/final-cut/typescript/src/native-operation.js +18 -0
  12. package/dist-package/adapters/final-cut/typescript/src/native.js +3134 -0
  13. package/dist-package/adapters/final-cut/typescript/src/publisher.js +102 -0
  14. package/dist-package/adapters/final-cut/typescript/src/session.js +171 -0
  15. package/dist-package/apps/cli/src/main.js +130 -0
  16. package/dist-package/apps/mcp-server/src/main.js +146 -0
  17. package/dist-package/apps/mcp-server/src/server.js +617 -0
  18. package/dist-package/packages/runtime/src/capabilities.js +24 -0
  19. package/dist-package/packages/runtime/src/context/context-engine.js +142 -0
  20. package/dist-package/packages/runtime/src/diff/diff.js +145 -0
  21. package/dist-package/packages/runtime/src/domain/types.js +1 -0
  22. package/dist-package/packages/runtime/src/editing/intent.js +83 -0
  23. package/dist-package/packages/runtime/src/index.js +8 -0
  24. package/dist-package/packages/runtime/src/runtime.js +890 -0
  25. package/dist-package/packages/runtime/src/snapshot-digest.js +24 -0
  26. package/dist-package/packages/runtime/src/speech/filler-removal.js +87 -0
  27. package/dist-package/packages/runtime/src/verification/verification.js +113 -0
  28. package/dist-package/packages/testkit/src/fixture-analyzers.js +39 -0
  29. package/dist-package/packages/testkit/src/in-memory-editor.js +520 -0
  30. package/dist-package/packages/testkit/src/index.js +2 -0
  31. package/package.json +64 -0
@@ -0,0 +1,503 @@
1
+ import { createHash } from "node:crypto";
2
+ import { readFile, writeFile } from "node:fs/promises";
3
+ import { fileURLToPath } from "node:url";
4
+ import { dirname, isAbsolute, resolve } from "node:path";
5
+ import { XMLBuilder, XMLParser } from "fast-xml-parser";
6
+ const CLIP_KINDS = new Set(["asset-clip", "clip", "ref-clip", "sync-clip", "mc-clip", "audio", "video"]);
7
+ const TIMELINE_KINDS = new Set([
8
+ ...CLIP_KINDS,
9
+ "gap",
10
+ "title",
11
+ "transition",
12
+ "caption",
13
+ "marker",
14
+ "audition",
15
+ "live-drawing",
16
+ ]);
17
+ /**
18
+ * FCPXML document interchange adapter. It edits the artifact on disk; it does
19
+ * not claim that the currently open Final Cut session changed.
20
+ */
21
+ export class FcpxmlDocumentAdapter {
22
+ filePath;
23
+ parser = new XMLParser({
24
+ preserveOrder: true,
25
+ ignoreAttributes: false,
26
+ attributeNamePrefix: "@_",
27
+ });
28
+ builder = new XMLBuilder({
29
+ preserveOrder: true,
30
+ ignoreAttributes: false,
31
+ attributeNamePrefix: "@_",
32
+ format: true,
33
+ indentBy: " ",
34
+ });
35
+ xml;
36
+ sequence = 0;
37
+ fileSignature;
38
+ history = new Map();
39
+ constructor(filePath) {
40
+ this.filePath = filePath;
41
+ }
42
+ async getIdentity() {
43
+ return { name: "Final Cut Pro", version: "FCPXML", backend: "fcpxml-document" };
44
+ }
45
+ async getCapabilities() {
46
+ return {
47
+ editor: {
48
+ projectRead: true,
49
+ timelineSnapshotRead: true,
50
+ timelineWrite: false,
51
+ timelineArtifactWrite: true,
52
+ readAfterWrite: true,
53
+ incrementalChanges: false,
54
+ rollback: true,
55
+ assetDiscovery: false,
56
+ liveStateRead: false,
57
+ playheadWrite: false,
58
+ frameCapture: false,
59
+ projectCatalogRead: true,
60
+ projectSelection: true,
61
+ },
62
+ analyzers: emptyAnalyzerCapabilities(),
63
+ };
64
+ }
65
+ async listAssets() {
66
+ return [];
67
+ }
68
+ async read() {
69
+ return this.readProject();
70
+ }
71
+ async readProject() {
72
+ await this.ensureLoaded();
73
+ const project = this.projectNode();
74
+ const sequenceNode = findElement(project, "sequence");
75
+ const sequence = sequenceNode ?? {};
76
+ const spine = findElement(sequence, "spine") ?? {};
77
+ const projectName = String(attribute(project, "name") ?? "Final Cut Project");
78
+ const projectId = stableProjectId(project);
79
+ const sequenceName = String(attribute(sequenceNode ?? {}, "name") ?? projectName);
80
+ const timelineId = stableTimelineId(project, sequenceNode);
81
+ const elements = timelineEntries(spine);
82
+ const storyElements = elements
83
+ .map((entry) => ({ kind: entry.kind, element: this.storyElementFromXml(entry, timelineId) }))
84
+ .filter(({ kind }) => kind !== "marker" && kind !== "caption")
85
+ .map(({ element }) => element);
86
+ const clips = elements
87
+ .filter(({ kind }) => CLIP_KINDS.has(kind))
88
+ .map((entry) => this.clipFromXml(entry, timelineId));
89
+ const durationValue = attribute(sequence, "duration")
90
+ ?? formatSeconds(Math.max(0, ...storyElements.map((element) => element.start + element.duration)));
91
+ return {
92
+ projectId,
93
+ projectName,
94
+ timeline: {
95
+ id: timelineId,
96
+ name: sequenceName,
97
+ duration: parseSeconds(durationValue),
98
+ durationTime: parseRational(durationValue),
99
+ clips,
100
+ storyElements,
101
+ markers: this.markersFromXml(elements),
102
+ captions: this.captionsFromXml(elements),
103
+ },
104
+ media: this.mediaFromResources(),
105
+ revision: this.revision(),
106
+ };
107
+ }
108
+ async listProjects() {
109
+ await this.ensureLoaded();
110
+ const project = this.projectNode();
111
+ const projectName = String(attribute(project, "name") ?? "Final Cut Project");
112
+ const projectId = stableProjectId(project);
113
+ const sequence = findElement(project, "sequence");
114
+ const sequenceName = String(attribute(sequence ?? {}, "name") ?? projectName);
115
+ const sequenceId = stableSequenceId(sequence);
116
+ return {
117
+ projects: [{
118
+ id: projectId,
119
+ name: projectName,
120
+ sequences: [{ id: sequenceId, name: sequenceName }],
121
+ }],
122
+ activeProjectId: projectId,
123
+ activeSequenceId: sequenceId,
124
+ };
125
+ }
126
+ async selectProject(selection) {
127
+ const catalog = await this.listProjects();
128
+ const project = catalog.projects.find((candidate) => candidate.id === selection.projectId);
129
+ if (!project)
130
+ throw new Error(`PROJECT_NOT_FOUND: ${selection.projectId}`);
131
+ const sequenceId = selection.sequenceId ?? (project.sequences.length === 1 ? project.sequences[0]?.id : undefined);
132
+ if (!sequenceId)
133
+ throw new Error(`AMBIGUOUS_PROJECT_TARGET: ${selection.projectId} has multiple sequences`);
134
+ if (!project.sequences.some((sequence) => sequence.id === sequenceId)) {
135
+ throw new Error(`SEQUENCE_NOT_FOUND: ${sequenceId}`);
136
+ }
137
+ return { ...catalog, activeProjectId: project.id, activeSequenceId: sequenceId };
138
+ }
139
+ async apply(operation, expectedRevision) {
140
+ await this.ensureLoaded();
141
+ if (!sameRevision(expectedRevision, this.revision())) {
142
+ throw new Error("STALE_CONTEXT: FCPXML document changed before write");
143
+ }
144
+ this.history.set(expectedRevision.id, structuredClone(this.xml));
145
+ const project = this.projectNode();
146
+ const sequenceNode = findElement(project, "sequence");
147
+ const sequence = sequenceNode ?? {};
148
+ const spine = findElement(sequence, "spine") ?? {};
149
+ const timelineId = stableTimelineId(project, sequenceNode);
150
+ switch (operation.type) {
151
+ case "rename-clip": {
152
+ const node = this.findClipNode(spine, operation.clipId, timelineId);
153
+ if (!node)
154
+ throw new Error(`CLIP_NOT_FOUND: ${operation.clipId}`);
155
+ if (operation.name.trim().length === 0)
156
+ throw new Error("INVALID_OPERATION: clip name cannot be empty");
157
+ setAttribute(node, "name", operation.name);
158
+ break;
159
+ }
160
+ case "trim-clip": {
161
+ const node = this.findClipNode(spine, operation.clipId, timelineId);
162
+ if (!node)
163
+ throw new Error(`CLIP_NOT_FOUND: ${operation.clipId}`);
164
+ if ((!Number.isFinite(operation.duration) || operation.duration <= 0) && !operation.durationTime) {
165
+ throw new Error("INVALID_OPERATION: clip duration must be positive");
166
+ }
167
+ setAttribute(node, "duration", operation.durationTime ? formatRational(operation.durationTime) : formatSeconds(operation.duration));
168
+ break;
169
+ }
170
+ case "set-gain": {
171
+ const node = this.findClipNode(spine, operation.clipId, timelineId);
172
+ if (!node)
173
+ throw new Error(`CLIP_NOT_FOUND: ${operation.clipId}`);
174
+ if (!Number.isFinite(operation.gainDb))
175
+ throw new Error("INVALID_OPERATION: gain must be finite");
176
+ this.setAdjustVolume(node, operation.gainDb);
177
+ break;
178
+ }
179
+ case "ripple-delete":
180
+ throw new Error("CAPABILITY_UNAVAILABLE: FCPXML ripple-delete requires story-element source-range transforms");
181
+ case "add-marker": {
182
+ if (operation.timelineId !== timelineId) {
183
+ throw new Error(`TIMELINE_NOT_FOUND: ${operation.timelineId}`);
184
+ }
185
+ appendChild(spine, "marker", {
186
+ ":@": {
187
+ "@_id": operation.marker.id,
188
+ "@_start": formatSeconds(operation.marker.start),
189
+ "@_duration": formatSeconds(operation.marker.duration),
190
+ "@_value": operation.marker.name,
191
+ },
192
+ });
193
+ break;
194
+ }
195
+ }
196
+ this.updateSequenceDuration(sequence, spine);
197
+ this.sequence += 1;
198
+ await this.persist();
199
+ return this.revision();
200
+ }
201
+ async restore(snapshot, expectedRevision) {
202
+ await this.ensureLoaded();
203
+ if (!sameRevision(expectedRevision, this.revision())) {
204
+ throw new Error("STALE_CONTEXT: FCPXML document changed before rollback");
205
+ }
206
+ const previous = this.history.get(snapshot.revision.id);
207
+ if (!previous)
208
+ throw new Error("ROLLBACK_FAILED: no FCPXML snapshot available");
209
+ this.xml = structuredClone(previous);
210
+ this.sequence += 1;
211
+ await this.persist();
212
+ }
213
+ async ensureLoaded() {
214
+ const content = await readFile(this.filePath, "utf8");
215
+ const signature = hash(content);
216
+ if (!this.xml || this.fileSignature !== signature) {
217
+ if (this.xml)
218
+ this.sequence += 1;
219
+ this.xml = this.parser.parse(content);
220
+ this.fileSignature = signature;
221
+ }
222
+ }
223
+ async persist() {
224
+ const content = this.builder.build(this.xml);
225
+ await writeFile(this.filePath, content, "utf8");
226
+ this.fileSignature = hash(content);
227
+ }
228
+ projectNode() {
229
+ return findElement(this.xml ?? [], "project") ?? {};
230
+ }
231
+ storyElementFromXml(entry, timelineId) {
232
+ const { node, kind, path, startTime, durationTime } = entry;
233
+ return {
234
+ id: this.instanceId(node, kind, path, timelineId),
235
+ kind,
236
+ start: rationalSeconds(startTime),
237
+ duration: rationalSeconds(durationTime),
238
+ startTime,
239
+ durationTime,
240
+ ...(attribute(node, "lane") !== undefined ? { lane: Number(attribute(node, "lane")) } : {}),
241
+ ...(attribute(node, "ref") !== undefined ? { mediaId: String(attribute(node, "ref")) } : {}),
242
+ };
243
+ }
244
+ clipFromXml(entry, timelineId) {
245
+ const { node, kind, path, startTime, durationTime } = entry;
246
+ const gain = firstChild(node, "adjust-volume");
247
+ return {
248
+ id: this.instanceId(node, kind, path, timelineId),
249
+ mediaId: attribute(node, "ref") === undefined ? undefined : String(attribute(node, "ref")),
250
+ name: String(attribute(node, "name") ?? attribute(node, "ref") ?? `Clip ${path.includes(".") ? path : path + 1}`),
251
+ start: rationalSeconds(startTime),
252
+ duration: rationalSeconds(durationTime),
253
+ track: Number(attribute(node, "lane") ?? 0),
254
+ startTime,
255
+ durationTime,
256
+ ...(gain ? { gainDb: parseDb(attribute(gain, "amount") ?? "0dB") } : {}),
257
+ };
258
+ }
259
+ instanceId(node, kind, path, timelineId) {
260
+ const explicit = attribute(node, "id") ?? attribute(node, "uid");
261
+ return String(explicit ?? `${timelineId}:spine:${path}:${kind}`);
262
+ }
263
+ findClipNode(spine, clipId, timelineId) {
264
+ return timelineEntries(spine)
265
+ .filter(({ kind }) => CLIP_KINDS.has(kind))
266
+ .find(({ kind, node, path }) => this.instanceId(node, kind, path, timelineId) === clipId)
267
+ ?.node;
268
+ }
269
+ setAdjustVolume(node, gainDb) {
270
+ const existing = firstChild(node, "adjust-volume");
271
+ if (existing) {
272
+ setAttribute(existing, "amount", formatDb(gainDb));
273
+ return;
274
+ }
275
+ appendChild(node, "adjust-volume", { ":@": { "@_amount": formatDb(gainDb) } });
276
+ }
277
+ markersFromXml(elements) {
278
+ return elements
279
+ .filter(({ kind }) => kind === "marker")
280
+ .map(({ node, startTime, durationTime }, index) => {
281
+ return {
282
+ id: String(attribute(node, "id") ?? `marker-${index + 1}`),
283
+ start: rationalSeconds(startTime),
284
+ duration: rationalSeconds(durationTime),
285
+ startTime,
286
+ durationTime,
287
+ name: String(attribute(node, "value") ?? attribute(node, "name") ?? `Marker ${index + 1}`),
288
+ };
289
+ });
290
+ }
291
+ captionsFromXml(elements) {
292
+ return elements
293
+ .filter(({ kind }) => kind === "caption")
294
+ .map(({ node, startTime, durationTime }, index) => {
295
+ return {
296
+ id: String(attribute(node, "id") ?? `caption-${index + 1}`),
297
+ start: rationalSeconds(startTime),
298
+ duration: rationalSeconds(durationTime),
299
+ startTime,
300
+ durationTime,
301
+ text: String(attribute(node, "text") ?? attribute(node, "name") ?? ""),
302
+ };
303
+ });
304
+ }
305
+ updateSequenceDuration(sequence, spine) {
306
+ const duration = Math.max(0, ...timelineEntries(spine)
307
+ .filter(({ kind }) => kind !== "marker" && kind !== "caption")
308
+ .map(({ startTime, durationTime }) => rationalSeconds(startTime) + rationalSeconds(durationTime)));
309
+ setAttribute(sequence, "duration", formatSeconds(duration));
310
+ }
311
+ mediaFromResources() {
312
+ const resources = findElement(this.xml ?? [], "resources");
313
+ return storyEntries(resources ?? {})
314
+ .filter(({ kind }) => kind === "asset" || kind === "media" || kind === "effect")
315
+ .map(({ node }) => ({
316
+ mediaId: String(attribute(node, "id") ?? ""),
317
+ source: resolveMediaSource(String(attribute(node, "src") ?? attribute(node, "name") ?? attribute(node, "id") ?? ""), this.filePath),
318
+ }))
319
+ .filter((media) => media.mediaId.length > 0);
320
+ }
321
+ revision() {
322
+ return { id: `rev-${this.sequence}`, sequence: this.sequence, timestamp: new Date(this.sequence).toISOString() };
323
+ }
324
+ }
325
+ export function resolveMediaSource(source, documentPath) {
326
+ if (source.startsWith("file://")) {
327
+ try {
328
+ return fileURLToPath(source);
329
+ }
330
+ catch {
331
+ return source;
332
+ }
333
+ }
334
+ if (isAbsolute(source))
335
+ return source;
336
+ return resolve(dirname(documentPath), source);
337
+ }
338
+ function storyEntries(node) {
339
+ return Object.entries(node)
340
+ .filter(([kind]) => kind !== ":@")
341
+ .flatMap(([kind, value]) => Array.isArray(value)
342
+ ? value.filter((child) => typeof child === "object" && child !== null)
343
+ .map((child) => ({ kind: Object.keys(child).find((key) => key !== ":@") ?? kind, node: child }))
344
+ : []);
345
+ }
346
+ function timelineEntries(spine) {
347
+ const entries = [];
348
+ const visit = (node, parentStart, parentPath) => {
349
+ storyEntries(node).forEach(({ kind, node: child }, index) => {
350
+ const path = parentPath.length === 0 ? String(index) : `${parentPath}.${index}`;
351
+ const localStart = parseRational(attribute(child, "offset")
352
+ ?? ((kind === "marker" || kind === "caption") ? attribute(child, "start") : undefined)
353
+ ?? "0s");
354
+ const durationTime = parseRational(attribute(child, "duration") ?? "0s");
355
+ const startTime = addRational(parentStart, localStart);
356
+ if (TIMELINE_KINDS.has(kind)) {
357
+ entries.push({ kind, node: child, path, startTime, durationTime });
358
+ }
359
+ visit(child, startTime, path);
360
+ });
361
+ };
362
+ visit(spine, { value: "0", timescale: "1" }, "");
363
+ return entries;
364
+ }
365
+ function findElement(nodes, kind) {
366
+ const containers = Array.isArray(nodes) ? nodes : [nodes];
367
+ for (const container of containers) {
368
+ if (Object.prototype.hasOwnProperty.call(container, kind))
369
+ return container;
370
+ for (const entry of storyEntries(container)) {
371
+ const nested = findElement(entry.node, kind);
372
+ if (nested)
373
+ return nested;
374
+ }
375
+ }
376
+ return undefined;
377
+ }
378
+ function firstChild(node, kind) {
379
+ return storyEntries(node).find((entry) => entry.kind === kind)?.node;
380
+ }
381
+ function appendChild(node, kind, child) {
382
+ const elementKey = Object.keys(node).find((key) => key !== ":@");
383
+ const wrapper = Object.prototype.hasOwnProperty.call(child, kind)
384
+ ? child
385
+ : { [kind]: [], ...child };
386
+ if (elementKey) {
387
+ node[elementKey] = [...(Array.isArray(node[elementKey]) ? node[elementKey] : []), wrapper];
388
+ }
389
+ else {
390
+ node[kind] = [...(Array.isArray(node[kind]) ? node[kind] : []), wrapper];
391
+ }
392
+ }
393
+ function attributes(node) {
394
+ return (node[":@"] ?? {});
395
+ }
396
+ function attribute(node, name) {
397
+ return attributes(node)[`@_${name}`];
398
+ }
399
+ function setAttribute(node, name, value) {
400
+ node[":@"] = { ...attributes(node), [`@_${name}`]: value };
401
+ }
402
+ function parseSeconds(value) {
403
+ return rationalSeconds(parseRational(value));
404
+ }
405
+ function parseDb(value) {
406
+ return Number(String(value).replace(/dB$/i, ""));
407
+ }
408
+ function parseRational(value) {
409
+ return rationalTime(rationalParts(value));
410
+ }
411
+ function rationalSeconds(value) {
412
+ const seconds = Number(value.value) / Number(value.timescale);
413
+ if (!Number.isFinite(seconds))
414
+ throw new Error("FCPXML_INVALID_TIME: rational time is not finite");
415
+ return seconds;
416
+ }
417
+ function rationalParts(value) {
418
+ const normalized = String(value).replace(/s$/, "");
419
+ const parts = normalized.split("/");
420
+ if (parts.length > 2)
421
+ throw new Error(`FCPXML_INVALID_TIME: ${String(value)}`);
422
+ const [numeratorText, denominatorText = "1"] = parts;
423
+ if (!/^-?\d+$/.test(numeratorText) || !/^\d+$/.test(denominatorText)) {
424
+ throw new Error(`FCPXML_INVALID_TIME: ${String(value)}`);
425
+ }
426
+ const numerator = BigInt(numeratorText);
427
+ const denominator = BigInt(denominatorText);
428
+ if (denominator <= 0n)
429
+ throw new Error(`FCPXML_INVALID_TIME: ${String(value)}`);
430
+ return { numerator, denominator };
431
+ }
432
+ function rationalTime(parts) {
433
+ const divisor = greatestCommonDivisor(parts.numerator, parts.denominator);
434
+ return {
435
+ value: String(parts.numerator / divisor),
436
+ timescale: String(parts.denominator / divisor),
437
+ };
438
+ }
439
+ function addRational(left, right) {
440
+ return rationalTime({
441
+ numerator: BigInt(left.value) * BigInt(right.timescale) + BigInt(right.value) * BigInt(left.timescale),
442
+ denominator: BigInt(left.timescale) * BigInt(right.timescale),
443
+ });
444
+ }
445
+ function greatestCommonDivisor(left, right) {
446
+ let a = left < 0n ? -left : left;
447
+ let b = right < 0n ? -right : right;
448
+ while (b !== 0n) {
449
+ const remainder = a % b;
450
+ a = b;
451
+ b = remainder;
452
+ }
453
+ return a === 0n ? 1n : a;
454
+ }
455
+ function formatRational(value) {
456
+ if (!/^[-+]?\d+$/.test(value.value) || !/^\d+$/.test(value.timescale) || Number(value.timescale) <= 0) {
457
+ throw new Error("INVALID_OPERATION: rational time must use integer value and positive timescale");
458
+ }
459
+ return `${value.value}/${value.timescale}s`;
460
+ }
461
+ function formatSeconds(value) {
462
+ if (!Number.isFinite(value) || value < 0)
463
+ throw new Error("INVALID_OPERATION: time must be finite and non-negative");
464
+ const rational = decimalToRational(value);
465
+ return `${rational.value}/${rational.timescale}s`;
466
+ }
467
+ function decimalToRational(value) {
468
+ const text = value.toFixed(6).replace(/0+$/, "").replace(/\.$/, "");
469
+ if (!text.includes("."))
470
+ return { value: text, timescale: "1" };
471
+ const decimals = text.split(".")[1].length;
472
+ const scale = 10 ** decimals;
473
+ return { value: String(Math.round(value * scale)), timescale: String(scale) };
474
+ }
475
+ function formatDb(value) {
476
+ return `${value}dB`;
477
+ }
478
+ function emptyAnalyzerCapabilities() {
479
+ return { speechTranscribe: false, speechVad: false, audioLoudness: false, visualTrack: false };
480
+ }
481
+ function hash(content) {
482
+ return createHash("sha256").update(content).digest("hex");
483
+ }
484
+ function stableProjectId(project) {
485
+ return `fcpxml:project:${immutableUid(project, "PROJECT")}`;
486
+ }
487
+ function stableSequenceId(sequence) {
488
+ return `fcpxml:sequence:${immutableUid(sequence, "SEQUENCE")}`;
489
+ }
490
+ function immutableUid(node, kind) {
491
+ const uid = node ? attribute(node, "uid") : undefined;
492
+ if (uid === undefined || String(uid).trim().length === 0) {
493
+ throw new Error(`FCPXML_${kind}_IDENTITY_UNAVAILABLE: ${kind.toLowerCase()} has no immutable uid`);
494
+ }
495
+ return String(uid);
496
+ }
497
+ function stableTimelineId(project, sequence) {
498
+ stableProjectId(project);
499
+ return stableSequenceId(sequence);
500
+ }
501
+ function sameRevision(left, right) {
502
+ return left.id === right.id && left.sequence === right.sequence;
503
+ }
@@ -0,0 +1,11 @@
1
+ export * from "./fcpxml.js";
2
+ export * from "./live.js";
3
+ export * from "./connection.js";
4
+ export * from "./session.js";
5
+ export * from "./analyzers.js";
6
+ export * from "./assets.js";
7
+ export * from "./native.js";
8
+ export * from "./disposable-native.js";
9
+ export * from "./publisher.js";
10
+ export * from "./export.js";
11
+ export * from "./native-operation.js";