Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
chore: tighten the dedup's loose ends
Etienne Lescot00a3f2072ebe
diff --git a/electron/ai-edition/chat-service.ts b/electron/ai-edition/chat-service.tsindex 0886768ce..7c290c273 100644--- a/electron/ai-edition/chat-service.ts+++ b/electron/ai-edition/chat-service.ts@@ -5,6 +5,7 @@// `toolEnd` lifecycle + `error` events into the renderer through the// ChatEventSink.+import { randomUUID } from "node:crypto";import {type AxcutTimelineOperation,applyTimelineOperation,@@ -159,7 +160,7 @@ export function listSessions(projectId: string): ChatSessionSummary[] {export function createSession(projectId: string, title?: string): ChatSessionSummary {const m = getProjectSessions(projectId);- const id = `sess_${crypto.randomUUID()}`;+ const id = `sess_${randomUUID()}`;const now = new Date().toISOString();const session: ChatSession = {id,@@ -277,7 +278,7 @@ export async function runChat(}const userMessage: AiEditionChatMessage = {- id: crypto.randomUUID(),+ id: randomUUID(),role: "user",content: message,createdAt: new Date().toISOString(),@@ -368,7 +369,7 @@ export async function runChat(}const assistantMessage: AiEditionChatMessage = {- id: crypto.randomUUID(),+ id: randomUUID(),role: "assistant",content: result.text,createdAt: new Date().toISOString(),@@ -493,7 +494,7 @@ export async function runTimelineOperation(if (conversationMessage.trim() && session) {const assistantMessage: AiEditionChatMessage = {- id: `msg_${crypto.randomUUID()}`,+ id: `msg_${randomUUID()}`,role: "assistant",content: conversationMessage.trim(),createdAt: new Date().toISOString(),diff --git a/scripts/build-windows-compositor-addon.mjs b/scripts/build-windows-compositor-addon.mjsindex dce675986..df2aee283 100644--- a/scripts/build-windows-compositor-addon.mjs+++ b/scripts/build-windows-compositor-addon.mjs@@ -25,7 +25,10 @@ const ROOT = path.join(__dirname, "..");const POC_D3D_DIR = path.join(ROOT, "poc-d3d");const BUILD_OUT_DIR = path.join(ROOT, "electron", "native", "compositor-view", "build");-const run = (command, args, options = {}) => spawnStep(command, args, { cwd: ROOT, ...options });+// cwd defaults to poc-d3d/, not ROOT: cargo reads FFMPEG_DIR and LIBCLANG_PATH+// from poc-d3d/.cargo/config.toml, which only applies when it runs from there.+const run = (command, args, options = {}) =>+ spawnStep(command, args, { cwd: POC_D3D_DIR, ...options });async function runInVsEnv(command) {const vcvarsAll = findVcVarsAll();diff --git a/src/lib/ai-edition/annotations/textAnimation.ts b/src/lib/ai-edition/annotations/textAnimation.tsindex 83c667b8b..8576e1d06 100644--- a/src/lib/ai-edition/annotations/textAnimation.ts+++ b/src/lib/ai-edition/annotations/textAnimation.ts@@ -1,8 +1,9 @@-import { clamp01 } from "@/utils/math";// Port of `src/lib/annotationTextAnimation.ts` — pure, no Pixi/React deps,// copied verbatim (only the annotation param type changed to structurally// match `AxcutAnnotationRegion` instead of the legacy `AnnotationRegion`).+import { clamp01 } from "@/utils/math";+export type AnnotationTextAnimation =| "none"| "fade"diff --git a/src/lib/ai-edition/store/editorSettings.ts b/src/lib/ai-edition/store/editorSettings.tsindex 1d986e768..b4fa74c54 100644--- a/src/lib/ai-edition/store/editorSettings.ts+++ b/src/lib/ai-edition/store/editorSettings.ts@@ -191,10 +191,13 @@ function nextLegacy(current: LegacyShape | null, patch: EditorSettingsPatch): Le// ...patch} would write undefined over a value the caller left alone.// `cursor` is handled separately below: its keys are renamed (size ->// cursorSize), so it is not a straight passthrough.+ // The Pick keeps what the 16 `if`s used to check: a patch key with no+ // LegacyShape counterpart fails to compile instead of leaking into the+ // persisted blob.const { cursor: _cursor, ...rest } = patch;const defined = Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== undefined),- ) as Partial<LegacyShape>;+ ) as Partial<Pick<LegacyShape, keyof Omit<EditorSettingsPatch, "cursor">>>;const next: LegacyShape = { ...base, ...defined };if (patch.cursor) {const c = patch.cursor;diff --git a/src/lib/exporter/gradientParser.ts b/src/lib/exporter/gradientParser.tsindex 79724af5e..90a4733d8 100644--- a/src/lib/exporter/gradientParser.ts+++ b/src/lib/exporter/gradientParser.ts@@ -1,4 +1,5 @@import { clamp } from "@/utils/math";+export interface ParsedGradientStop {color: string;offset: number;