INNER CODE UNIT · TypeScript

video

pranshuchittora/simvyn · extensions/simvyn/index.ts:304

			const video = await stat(path).catch(() => undefined);
			if (!video?.size || video.mtimeMs < startedAt) {
				const output = result.output.trim();
				throw new Error(
					`simvyn record did not write a new video to ${path}. Use a path that does not exist yet.${output ? `\n${output}` : ""}`,
				);
			}

			return {
				content: [
					{
						type: "text",
						text: `Recorded ${seconds}s from ${params.device} to ${path} (${formatSize(video.size)})`,
					},
				],
				details: { device: params.device, path, bytes: video.size },
			};
		},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…