Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

feat: add reference video MCP tools

rpone966cbae84073
diff --git a/packages/reference-video-tools/README.md b/packages/reference-video-tools/README.md
new file mode 100644
index 00000000..789aadef
--- /dev/null
+++ b/packages/reference-video-tools/README.md
@@ -0,0 +1,19 @@
+# `@hypit/reference-video-tools`
+
+MCP stdio tools for reconstructing a reference video with Hypit.
+
+The package exposes `prepare_reference`, `observe_reference`, and
+`inspect_svml_vocabulary`. The first two send narrow natural-language requests to Gemini with a
+fixed temperature of `1.0`; they never receive SVML syntax and never write SVML. The final source
+files are authored by the calling agent and checked with the existing `pnpm hypit check` command.
+
+Start the server from the repository or an installed package:
+
+```bash
+node --import tsx packages/reference-video-tools/src/server.ts
+```
+
+`prepare_reference` requires a local video path and stores derived media under the project's
+gitignored `.hypit/reference-video-tools/` directory. Gemini uses the existing Vertex environment
+variables `GOOGLE_CLOUD_PROJECT` and `GOOGLE_APPLICATION_CREDENTIALS_JSON`; the location defaults to
+`global` and the model defaults to `gemini-3.1-pro-preview`.
diff --git a/packages/reference-video-tools/package.json b/packages/reference-video-tools/package.json
new file mode 100644
index 00000000..2a3e48ae
--- /dev/null
+++ b/packages/reference-video-tools/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "@hypit/reference-video-tools",
+ "version": "0.0.0-dev",
+ "license": "SEE LICENSE IN LICENSE",
+ "private": true,
+ "type": "module",
+ "bin": {
+ "hypit-reference-video-tools": "./src/server.ts"
+ },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "dependencies": {
+ "@google/genai": "1.52.0",
+ "@hypit/artifact-store-fs": "workspace:*",
+ "@hypit/markup": "workspace:*",
+ "@hypit/package-loader-node": "workspace:*",
+ "@hypit/protocol": "workspace:*",
+ "@hypit/runtime": "workspace:*",
+ "@modelcontextprotocol/sdk": "1.30.0",
+ "zod": "3.25.76"
+ },
+ "devDependencies": {
+ "@types/node": "24.10.1",
+ "tsx": "4.21.0"
+ }
+}
diff --git a/packages/reference-video-tools/src/index.ts b/packages/reference-video-tools/src/index.ts
new file mode 100644
index 00000000..17576bd7
--- /dev/null
+++ b/packages/reference-video-tools/src/index.ts
@@ -0,0 +1,7 @@
+export { createReferenceVideoTools } from "./tools.js";
+export type {
+ ReferenceVideoTools,
+ PrepareReferenceInput,
+ ObserveReferenceInput,
+ InspectVocabularyInput,
+} from "./tools.js";
diff --git a/packages/reference-video-tools/src/media.ts b/packages/reference-video-tools/src/media.ts
new file mode 100644
index 00000000..1d1f07cf
--- /dev/null
+++ b/packages/reference-video-tools/src/media.ts
@@ -0,0 +1,129 @@
+import { createHash } from "node:crypto";
+import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
+import { join, resolve } from "node:path";
+import { spawn } from "node:child_process";
+
+export function assert(condition: unknown, message: string): asserts condition {
+ if (!condition) throw new Error(message);
+}
+
+export function round(value: number): number { return Number(value.toFixed(3)); }
+export function clamp(value: number, low: number, high: number): number { return Math.max(low, Math.min(high, value)); }
+
+export async function ensureDir(path: string): Promise<void> { await mkdir(path, { recursive: true }); }
+
+export async function command(executable: string, args: readonly string[], timeoutMs = 120_000): Promise<Buffer> {
+ return await new Promise((resolvePromise, reject) => {
+ const child = spawn(executable, [...args], { stdio: ["ignore", "pipe", "pipe"], shell: false });
+ const stdout: Buffer[] = [];
+ let stderr = "";
+ let settled = false;
+ const timer = setTimeout(() => { child.kill("SIGKILL"); finish(new Error(`${executable} timed out`)); }, timeoutMs);
+ const finish = (error?: Error): void => {
+ if (settled) return;
+ settled = true;
+ clearTimeout(timer);
+ if (error !== undefined) reject(error);
+ else resolvePromise(Buffer.concat(stdout));
+ };
+ child.stdout.on("data", (chunk: Buffer) => stdout.push(chunk));
+ child.stderr.on("data", (chunk: Buffer) => { stderr = `${stderr}${chunk.toString("utf8")}`.slice(-1_000_000); });
+ child.on("error", (error) => finish(error instanceof Error ? error : new Error(String(error))));
+ child.on("close", (code) => code === 0 ? finish() : finish(new Error(`${executable} failed (${code}): ${stderr.trim()}`)));
+ });
+}
+
+export async function probe(path: string): Promise<{ duration: number; width: number; height: number; hasAudio: boolean }> {
+ const raw = await command("ffprobe", ["-v", "error", "-show_entries", "format=duration:stream=codec_type,width,height", "-of", "json", path]);
+ const parsed = JSON.parse(raw.toString("utf8")) as { format?: { duration?: string }; streams?: readonly { codec_type?: string; width?: number; height?: number }[] };
+ const video = parsed.streams?.find((item) => item.codec_type === "video");
+ const duration = Number(parsed.format?.duration);
+ assert(Number.isFinite(duration) && duration > 0, "video duration is unavailable");
+ assert(video?.width !== undefined && video.height !== undefined, "video dimensions are unavailable");
+ return { duration, width: video.width, height: video.height, hasAudio: parsed.streams?.some((item) => item.codec_type === "audio") ?? false };
+}
+
+function distance(left: Uint8Array, right: Uint8Array): number {
+ let total = 0;
+ for (let index = 0; index < left.length; index += 1) total += Math.abs(left[index]! - right[index]!);
+ return total / left.length / 255;
+}
+
+async function signatures(path: string, sampleRate: number): Promise<readonly Uint8Array[]> {
+ const bytes = await command("ffmpeg", ["-hide_banner", "-loglevel", "error", "-i", path, "-vf", `fps=${sampleRate},scale=32:32,format=rgb24`, "-f", "rawvideo", "-"]);
+ const stride = 32 * 32 * 3;
+ const result: Uint8Array[] = [];
+ for (let index = 0; index + stride <= bytes.byteLength; index += stride) result.push(bytes.subarray(index, index + stride));
+ return result;
+}
+
+async function contentBoundaries(path: string, duration: number): Promise<readonly number[]> {
+ const frames = await signatures(path, 3);
+ if (frames.length < 2) return [0, duration];
+ const starts = [0];
+ let anchor = frames[0]!;
+ for (let index = 1; index < frames.length; index += 1) {
+ if (distance(frames[index]!, anchor) > 0.1) {
+ starts.push(round(index / 3));
+ anchor = frames[index]!;
+ }
+ }
+ return [...starts, duration].filter((value, index, all) => index === 0 || value - all[index - 1]! > 0.3);
+}
+
+type Bounds = { readonly start: number; readonly end: number; readonly group: number; readonly part: number; readonly parts: number };
+function splitLong(boundaries: readonly number[]): readonly Bounds[] {
+ const result: Bounds[] = [];
+ for (let group = 0; group + 1 < boundaries.length; group += 1) {
+ const start = boundaries[group]!;
+ const end = boundaries[group + 1]!;
+ const length = end - start;
+ const parts = Math.max(1, Math.ceil(length / 15));
+ for (let part = 0; part < parts; part += 1) result.push({ start: round(start + length * part / parts), end: round(start + length * (part + 1) / parts), group, part: part + 1, parts });
+ }
+ return result;
+}
+
+async function extract(path: string, args: readonly string[], target: string): Promise<string> {
+ await command("ffmpeg", ["-hide_banner", "-loglevel", "error", "-y", ...args, target], 300_000);
+ return target;
+}
+
+export async function prepareMedia(videoPath: string, root: string, duration: number): Promise<{
+ readonly bounds: readonly Bounds[];
+ readonly storyboard: string;
+ readonly analysisVideo: string;
+}> {
+ const boundaries = await contentBoundaries(videoPath, duration);
+ const bounds = splitLong(boundaries);
+ await ensureDir(root);
+ const analysisVideo = await extract(videoPath, ["-i", videoPath, "-vf", "scale='min(720,iw)':-2", "-c:v", "libx264", "-preset", "veryfast", "-crf", "30", "-c:a", "aac", "-b:a", "64k"], join(root, "analysis.mp4"));
+ const shotDir = join(root, "shots");
+ await ensureDir(shotDir);
+ await Promise.all(bounds.map(async (bound, index) => {
+ const id = String(index + 1).padStart(3, "0");
+ const clip = join(shotDir, `${id}.mp4`);
+ await extract(videoPath, ["-ss", String(bound.start), "-i", videoPath, "-t", String(Math.max(0.1, bound.end - bound.start)), "-c:v", "libx264", "-preset", "veryfast", "-crf", "23", "-c:a", "aac", "-b:a", "96k", "-movflags", "+faststart"], clip);
+ await extract(videoPath, ["-ss", String(bound.start + (bound.end - bound.start) / 2), "-i", videoPath, "-frames:v", "1", "-vf", "scale='min(720,iw)':-2", "-q:v", "3"], join(shotDir, `${id}-representative.jpg`));
+ await extract(videoPath, ["-sseof", "-0.1", "-i", clip, "-update", "1", "-frames:v", "1", "-vf", "scale='min(720,iw)':-2", "-q:v", "3"], join(shotDir, `${id}-tail.jpg`));
+ if (await hasAudio(clip)) await extract(videoPath, ["-sseof", "-3", "-i", clip, "-map", "0:a:0", "-vn", "-ac", "1", "-ar", "16000", "-c:a", "pcm_s16le"], join(shotDir, `${id}-audio.wav`));
+ }));
+ const inputs = bounds.map((_, index) => `[${index}:v]`).join("");
+ const list = bounds.flatMap((_, index) => ["-i", join(shotDir, `${String(index + 1).padStart(3, "0")}-representative.jpg`)]);
+ const storyboard = join(root, "storyboard.jpg");
+ await command("ffmpeg", ["-hide_banner", "-loglevel", "error", "-y", ...list, "-filter_complex", `${inputs}tile=columns=4:padding=8:margin=8`, "-frames:v", "1", storyboard]);
+ return { bounds, storyboard, analysisVideo };
+}
+
+async function hasAudio(path: string): Promise<boolean> {
+ try { await command("ffprobe", ["-v", "error", "-select_streams", "a:0", "-show_entries", "stream=index", "-of", "csv=p=0", path]); return true; } catch { return false; }
+}
+
+export async function readBytes(path: string): Promise<Uint8Array> { return await readFile(path); }
+export async function writeJson(path: string, value: unknown): Promise<void> { await writeFile(path, `${JSON.stringify(value, null, 2)}\n`, "utf8"); }
+export async function readJson<T>(path: string): Promise<T | undefined> { try { return JSON.parse(await readFile(path, "utf8")) as T; } catch { return undefined; } }
+export async function referenceId(videoPath: string): Promise<string> {
+ const info = await stat(videoPath);
+ const value = `${resolve(videoPath)}\u0000${info.size}\u0000${info.mtimeMs}`;
+ return `ref-${createHash("sha256").update(value).digest("hex").slice(0, 24)}`;
+}
diff --git a/packages/reference-video-tools/src/server.ts b/packages/reference-video-tools/src/server.ts
new file mode 100644
index 00000000..eb34a85d
--- /dev/null
+++ b/packages/reference-video-tools/src/server.ts
@@ -0,0 +1,46 @@
+#!/usr/bin/env node
+import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
+import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
+import { z } from "zod";
+import { createReferenceVideoTools } from "./tools.js";
+
+const tools = createReferenceVideoTools();
+const server = new McpServer({ name: "hypit-reference-video-tools", version: "0.0.0-dev" });
+
+server.registerTool("prepare_reference", {
+ description: "Prepare a local reference video, split its shots, extract continuity media, and analyze recurring people, product, and voices.",
+ inputSchema: { video_path: z.string().min(1), rebuild: z.boolean().optional() },
+}, async (input) => ({ content: [{ type: "text", text: JSON.stringify(await tools.prepare_reference({
+ video_path: input.video_path,
+ ...(input.rebuild === undefined ? {} : { rebuild: input.rebuild }),
+})) }] }));
+
+server.registerTool("observe_reference", {
+ description: "Observe reference shots and boundaries in parallel using narrow natural-language visual and audio Gemini requests.",
+ inputSchema: {
+ reference_id: z.string().min(1),
+ shot_ids: z.array(z.string().min(1)).optional(),
+ question: z.string().optional(),
+ refresh: z.boolean().optional(),
+ },
+}, async (input) => ({ content: [{ type: "text", text: JSON.stringify(await tools.observe_reference({
+ reference_id: input.reference_id,
+ ...(input.shot_ids === undefined ? {} : { shot_ids: input.shot_ids }),
+ ...(input.question === undefined ? {} : { question: input.question }),
+ ...(input.refresh === undefined ? {} : { refresh: input.refresh }),
+})) }] }));
+
+server.registerTool("inspect_svml_vocabulary", {
+ description: "Read the currently installed SVML vocabulary declarations and previews from selected packages.",
+ inputSchema: {
+ package_names: z.array(z.string().min(1)).min(1),
+ tags: z.array(z.string().min(1)).optional(),
+ include_previews: z.boolean().optional(),
+ },
+}, async (input) => ({ content: [{ type: "text", text: JSON.stringify(await tools.inspect_svml_vocabulary({
+ package_names: input.package_names,
+ ...(input.tags === undefined ? {} : { tags: input.tags }),
+ ...(input.include_previews === undefined ? {} : { include_previews: input.include_previews }),
+})) }] }));
+
+await server.connect(new StdioServerTransport());
diff --git a/packages/reference-video-tools/src/tools.ts b/packages/reference-video-tools/src/tools.ts
new file mode 100644
index 00000000..91ac9822
--- /dev/null
+++ b/packages/reference-video-tools/src/tools.ts
@@ -0,0 +1,294 @@
+import { GoogleGenAI } from "@google/genai";
+import type { Part } from "@google/genai";
+import { access, stat } from "node:fs/promises";
+import { dirname, join, resolve } from "node:path";
+import { createRequire } from "node:module";
+import { loadNodePackageSelection } from "@hypit/package-loader-node";
+import type { LoadedPackage } from "@hypit/package-loader-node";
+import type { RegisteredSurface, SurfaceVocabulary } from "@hypit/markup";
+
+import {
+ assert,
+ ensureDir,
+ prepareMedia,
+ probe,
+ readJson,
+ readBytes,
+ referenceId,
+ writeJson,
+} from "./media.js";
+import type { Observation, PrepareResult, ReferenceState, Shot } from "./types.js";
+
+export type PrepareReferenceInput = { readonly video_path: string; readonly rebuild?: boolean };
+export type ObserveReferenceInput = {
+ readonly reference_id: string;
+ readonly shot_ids?: readonly string[];
+ readonly question?: string;
+ readonly refresh?: boolean;
+};
+export type InspectVocabularyInput = {
+ readonly package_names: readonly string[];
+ readonly tags?: readonly string[];
+ readonly include_previews?: boolean;
+};
+
+export type ReferenceVideoTools = {
+ prepare_reference(input: PrepareReferenceInput): Promise<PrepareResult>;
+ observe_reference(input: ObserveReferenceInput): Promise<Record<string, unknown>>;
+ inspect_svml_vocabulary(input: InspectVocabularyInput): Promise<Record<string, unknown>>;
+};
+
+type ToolOptions = {
+ readonly workspaceRoot?: string;
+ readonly packageRoot?: string;
+ readonly model?: string;
+ readonly concurrency?: number;
+ readonly launchGapMs?: number;
+ readonly generate?: GenerateText;
+};
+type GenerateText = (input: { readonly parts: readonly Part[]; readonly instruction: string }) => Promise<string>;
+
+function observation(status: "complete" | "failed", text: string): Observation { return { status, text }; }
+
+function stateRoot(workspaceRoot: string, reference: string): string {
+ return join(workspaceRoot, ".hypit", "reference-video-tools", reference);
+}
+
+async function defaultGenerate(model: string): Promise<GenerateText> {
+ const project = process.env.GOOGLE_CLOUD_PROJECT?.trim();
+ const credentials = process.env.GOOGLE_APPLICATION_CREDENTIALS_JSON?.trim();
+ assert(project, "GOOGLE_CLOUD_PROJECT is required");
+ assert(credentials, "GOOGLE_APPLICATION_CREDENTIALS_JSON is required");
+ let parsed: unknown;
+ try { parsed = JSON.parse(credentials); } catch { throw new Error("GOOGLE_APPLICATION_CREDENTIALS_JSON is not valid JSON"); }
+ assert(parsed !== null && typeof parsed === "object" && !Array.isArray(parsed), "Google credentials must be an object");
+ const client = new GoogleGenAI({
+ vertexai: true,
+ project,
+ location: process.env.GOOGLE_CLOUD_LOCATION?.trim() || "global",
+ googleAuthOptions: { credentials: parsed as Record<string, unknown>, scopes: ["https://www.googleapis.com/auth/cloud-platform"] },
+ });
+ return async ({ parts, instruction }) => {
+ const result = await client.models.generateContent({
+ model,
+ contents: [{ role: "user", parts: [...parts] }],
+ config: { systemInstruction: instruction, temperature: 1.0, responseMimeType: "text/plain" },
+ });
+ const text = result.text?.trim() ?? "";
+ assert(text.length > 0, "Gemini returned an empty response");
+ return text;
+ };
+}
+
+async function mediaPart(path: string): Promise<Part> {
+ const bytes = await readBytes(path);
+ const extension = path.toLowerCase().split(".").pop();
+ const mimeType = extension === "jpg" || extension === "jpeg" ? "image/jpeg"
+ : extension === "wav" ? "audio/wav" : extension === "mp4" ? "video/mp4" : "application/octet-stream";
+ return { inlineData: { mimeType, data: Buffer.from(bytes).toString("base64") } };
+}
+
+async function callSafely(generate: GenerateText, parts: readonly Part[], instruction: string): Promise<Observation> {
+ try { return observation("complete", await generate({ parts, instruction })); }
+ catch (error) { return observation("failed", error instanceof Error ? error.message : String(error)); }
+}
+
+async function pacedMap<T, R>(items: readonly T[], concurrency: number, gapMs: number, run: (item: T, index: number) => Promise<R>): Promise<readonly R[]> {
+ const result = new Array<R>(items.length);
+ let cursor = 0;
+ let lastLaunch = 0;
+ const launch = async (): Promise<void> => {
+ const wait = gapMs - (Date.now() - lastLaunch);
+ if (wait > 0) await new Promise((resolveWait) => setTimeout(resolveWait, wait));
+ lastLaunch = Date.now();
+ };
+ const worker = async (): Promise<void> => {
+ while (true) {
+ const index = cursor++;
+ if (index >= items.length) return;
+ await launch();
+ result[index] = await run(items[index]!, index);
+ }
+ };
+ await Promise.all(Array.from({ length: Math.max(1, Math.min(concurrency, items.length || 1)) }, worker));
+ return result;
+}
+
+async function shotFromBound(root: string, index: number, bound: { start: number; end: number; group: number; part: number; parts: number }): Promise<Shot> {
+ const id = String(index + 1).padStart(3, "0");
+ const dir = join(root, "shots");
+ const audioPath = join(dir, `${id}-audio.wav`);
+ let audio_tail_ref: string | null = null;
+ try { await access(audioPath); audio_tail_ref = audioPath; } catch { /* silent shot */ }
+ return {
+ shot_id: `shot-${id}`,
+ index: index + 1,
+ start_seconds: bound.start,
+ end_seconds: bound.end,
+ duration_seconds: Number((bound.end - bound.start).toFixed(3)),
+ initial_group: bound.group,
+ part: bound.part,
+ parts: bound.parts,
+ clip_ref: join(dir, `${id}.mp4`),
+ representative_frame_ref: join(dir, `${id}-representative.jpg`),
+ tail_frame_ref: join(dir, `${id}-tail.jpg`),
+ audio_tail_ref,
+ };
+}
+
+function publicPrepare(state: ReferenceState): PrepareResult {
+ return {
+ reference_id: state.reference_id,
+ status: state.people_and_product?.status === "complete" && state.voices?.status === "complete" ? "ready" : "partial",
+ video: state.video,
+ shots: state.shots,
+ storyboard_ref: state.storyboard_ref,
+ people_and_product: state.people_and_product ?? observation("failed", "not analyzed"),
+ voices: state.voices ?? observation("failed", "not analyzed"),
+ };
+}
+
+export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceVideoTools {
+ const workspaceRoot = resolve(options.workspaceRoot ?? process.cwd());
+ const packageRoot = resolve(options.packageRoot ?? workspaceRoot);
+ const model = options.model ?? process.env.GEMINI_MODEL?.trim() ?? "gemini-3.1-pro-preview";
+ const concurrency = options.concurrency ?? 2;
+ const gapMs = options.launchGapMs ?? 6_000;
+ let generatorPromise: Promise<GenerateText> | undefined;
+ const generator = async (): Promise<GenerateText> => generatorPromise ??= options.generate === undefined ? defaultGenerate(model) : Promise.resolve(options.generate);
+
+ const loadState = async (reference: string): Promise<ReferenceState> => {
+ const path = join(stateRoot(workspaceRoot, reference), "state.json");
+ const state = await readJson<ReferenceState>(path);
+ assert(state !== undefined, `reference ${reference} was not prepared in ${workspaceRoot}`);
+ return state;
+ };
+
+ return {
+ async prepare_reference(input): Promise<PrepareResult> {
+ const videoPath = resolve(input.video_path);
+ const file = await stat(videoPath).catch(() => undefined);
+ assert(file?.isFile(), `video_path is not a file: ${videoPath}`);
+ const reference = await referenceId(videoPath);
+ const root = stateRoot(workspaceRoot, reference);
+ const statePath = join(root, "state.json");
+ if (!input.rebuild) {
+ const existing = await readJson<ReferenceState>(statePath);
+ if (existing !== undefined) return publicPrepare(existing);
+ }
+ await ensureDir(root);
+ const info = await probe(videoPath);
+ const media = await prepareMedia(videoPath, root, info.duration);
+ const shots = await Promise.all(media.bounds.map((bound, index) => shotFromBound(root, index, bound)));
+ const state: ReferenceState = {
+ reference_id: reference,
+ video_path: videoPath,
+ root,
+ video: { duration_seconds: Number(info.duration.toFixed(3)), width: info.width, height: info.height, has_audio: info.hasAudio },
+ shots,
+ storyboard_ref: media.storyboard,
+ analysis_video_ref: media.analysisVideo,
+ };
+ await writeJson(statePath, state);
+ const generate = await generator();
+ const globalParts: Part[] = [await mediaPart(media.analysisVideo)];
+ const [people, voices] = await Promise.all([
+ callSafely(generate, [...globalParts, { text: "Describe the recurring people and the promoted product in this complete reference video. Return natural language only. Identify stable visual traits and distinguish recurring speakers from incidental people in inserts. Describe the product once, comprehensively, for reuse." }], "You only observe a reference video. Return natural language evidence only. Do not write code, markup, SVML, or component names."),
+ callSafely(generate, [...globalParts, { text: "Listen to this complete reference video and describe the distinct voices, their order, overlap, off-screen speech, and likely correspondence to visible people. Do not assign a voice merely because a person appears in a B-roll image. Return natural language only." }], "You only listen to a reference video. Return natural language evidence only. Do not write code, markup, SVML, or component names."),
+ ]);
+ const complete = { ...state, people_and_product: people, voices };
+ await writeJson(statePath, complete);
+ return publicPrepare(complete);
+ },
+
+ async observe_reference(input): Promise<Record<string, unknown>> {
+ const state = await loadState(input.reference_id);
+ const selected = input.shot_ids === undefined ? state.shots : state.shots.filter((shot) => input.shot_ids!.includes(shot.shot_id));
+ assert(selected.length > 0, "no requested shot ids exist");
+ const generate = await generator();
+ const visual = await pacedMap(selected, concurrency, gapMs, async (shot) => {
+ const previous = state.shots.find((candidate) => candidate.index === shot.index - 1);
+ const parts: Part[] = [await mediaPart(shot.clip_ref), await mediaPart(shot.representative_frame_ref)];
+ if (previous !== undefined) parts.push(await mediaPart(previous.tail_frame_ref));
+ parts.push({ text: `Observe shot ${shot.index}. Describe the current base picture, any covering or non-covering visual content, and whether visible content continues from the preceding shot. A full-screen insert is still only a picture observation. Return natural language evidence only.` });
+ return { shot, result: await callSafely(generate, parts, "Observe picture only. Do not choose SVML components, do not write markup, and do not decide final source syntax.") };
+ });
+ const audio = await pacedMap(selected, concurrency, gapMs, async (shot) => {
+ const previous = state.shots.find((candidate) => candidate.index === shot.index - 1);
+ const parts: Part[] = [await mediaPart(shot.clip_ref)];
+ if (previous?.audio_tail_ref !== null && previous?.audio_tail_ref !== undefined) parts.push(await mediaPart(previous.audio_tail_ref));
+ parts.push({ text: `Listen to shot ${shot.index}. Decide who is speaking, whether sound continues from the previous shot, whether visible people actually produce the sound, and whether a silent B-roll person only appears to speak. Handle off-screen, alternating, overlapping, and no-person-visible speech. Return natural language evidence only.` });
+ return { shot, result: await callSafely(generate, parts, "Observe sound only. Do not write markup, SVML, JSON plans, or component names.") };
+ });
+ const boundaries = await pacedMap(selected.slice(1), concurrency, gapMs, async (right) => {
+ const left = state.shots.find((shot) => shot.index === right.index - 1)!;
+ const parts: Part[] = [await mediaPart(left.clip_ref), await mediaPart(right.clip_ref), await mediaPart(left.tail_frame_ref)];
+ parts.push({ text: `Compare shots ${left.index} and ${right.index}. Answer in natural language whether they are one continuous camera shot and whether the same visible overlay or inserted picture continues across the boundary. Do not write markup.` });
+ return { left_shot_id: left.shot_id, right_shot_id: right.shot_id, combined_duration_seconds: Number((right.end_seconds - left.start_seconds).toFixed(3)), result: await callSafely(generate, parts, "Analyze continuity only. Do not name SVML components or write code.") };
+ });
+ const unresolved: string[] = [];
+ const windows = selected.flatMap((_, index) => index + 2 < selected.length ? [selected.slice(index, index + 3)] : [])
+ .map((items) => items as unknown as readonly [Shot, Shot, Shot]);
+ const threeShotObservations = await pacedMap(windows, concurrency, gapMs, async (items) => {
+ const parts: Part[] = [];
+ for (const shot of items) parts.push(await mediaPart(shot.clip_ref));
+ parts.push({ text: `Compare shots ${items[0].index}, ${items[1].index}, and ${items[2].index}. Decide whether the three clips are one continuous camera shot and whether one visual overlay or insert persists through both boundaries. Explain the evidence in natural language only.` });
+ const result = await callSafely(generate, parts, "Analyze a three-shot continuity window only. Do not write markup, SVML, JSON plans, or component names.");
+ return { shot_ids: items.map((shot) => shot.shot_id), combined_duration_seconds: Number((items[2].end_seconds - items[0].start_seconds).toFixed(3)), result };
+ });
+ if (input.question !== undefined && input.question.trim().length > 0) {
+ const parts: Part[] = [];
+ for (const shot of selected.slice(0, 3)) parts.push(await mediaPart(shot.clip_ref));
+ parts.push({ text: input.question });
+ const follow = await callSafely(generate, parts, "Answer only the user's narrow reference-video question in natural language. Do not write code, markup, SVML, or component names.");
+ return { reference_id: state.reference_id, shots: visual.map((item, index) => ({ shot_id: item.shot.shot_id, visual: item.result, audio: audio[index]!.result })), boundaries, three_shot_observations: threeShotObservations, follow_ups: [{ shot_ids: selected.slice(0, 3).map((shot) => shot.shot_id), question: input.question, text: follow.text }], unresolved };
+ }
+ return {
+ reference_id: state.reference_id,
+ shots: visual.map((item, index) => ({ shot_id: item.shot.shot_id, visual: item.result, audio: audio[index]!.result })),
+ boundaries: boundaries.map((item) => ({ ...item, within_15_seconds: item.combined_duration_seconds <= 15, same_take: item.result })),
+ three_shot_observations: threeShotObservations,
+ follow_ups: [],
+ unresolved,
+ };
+ },
+
+ async inspect_svml_vocabulary(input): Promise<Record<string, unknown>> {
+ assert(input.package_names.length > 0, "package_names must not be empty");
+ const loaded = await loadNodePackageSelection(input.package_names, packageRoot);
+ const requested = input.tags === undefined ? undefined : new Set(input.tags);
+ const surfaces: Record<string, unknown>[] = [];
+ for (const pack of loaded) {
+ for (const facet of pack.contribution.hostFacets ?? []) {
+ const implementation = facet.implementation as RegisteredSurface;
+ if (requested !== undefined && !requested.has(implementation.tag) && !requested.has(implementation.surface)) continue;
+ surfaces.push({
+ package_name: pack.specifier,
+ module: implementation.module,
+ surface: implementation.surface,
+ tag: implementation.tag,
+ mode: implementation.mode,
+ outputs: implementation.outputs,
+ vocabulary: input.include_previews === false ? withoutPreview(implementation.vocabulary) : implementation.vocabulary,
+ readme_path: readmePath(pack.specifier, packageRoot),
+ });
+ }
+ }
+ return { packages: input.package_names, surfaces };
+ },
+ };
+}
+
+function withoutPreview(value: SurfaceVocabulary | undefined): SurfaceVocabulary | undefined {
+ if (value === undefined) return undefined;
+ const { preview: _preview, ...rest } = value;
+ return rest;
+}
+
+function readmePath(specifier: string, root: string): string | undefined {
+ try {
+ const require = createRequire(join(root, "__hypit_reference_tools__.cjs"));
+ const packageJson = require.resolve(`${specifier}/package.json`) as string;
+ return join(dirname(packageJson), "README.md");
+ } catch { return undefined; }
+}
diff --git a/packages/reference-video-tools/src/types.ts b/packages/reference-video-tools/src/types.ts
new file mode 100644
index 00000000..09cd6b94
--- /dev/null
+++ b/packages/reference-video-tools/src/types.ts
@@ -0,0 +1,38 @@
+export type Observation = { readonly status: "complete" | "failed"; readonly text: string };
+
+export type Shot = {
+ readonly shot_id: string;
+ readonly index: number;
+ readonly start_seconds: number;
+ readonly end_seconds: number;
+ readonly duration_seconds: number;
+ readonly initial_group: number;
+ readonly part: number;
+ readonly parts: number;
+ readonly clip_ref: string;
+ readonly representative_frame_ref: string;
+ readonly tail_frame_ref: string;
+ readonly audio_tail_ref: string | null;
+};
+
+export type ReferenceState = {
+ readonly reference_id: string;
+ readonly video_path: string;
+ readonly root: string;
+ readonly video: { readonly duration_seconds: number; readonly width: number; readonly height: number; readonly has_audio: boolean };
+ readonly shots: readonly Shot[];
+ readonly storyboard_ref: string;
+ readonly analysis_video_ref: string;
+ readonly people_and_product?: Observation;
+ readonly voices?: Observation;
+};
+
+export type PrepareResult = {
+ readonly reference_id: string;
+ readonly status: "ready" | "partial";
+ readonly video: ReferenceState["video"];
+ readonly shots: readonly Shot[];
+ readonly storyboard_ref: string;
+ readonly people_and_product: Observation;
+ readonly voices: Observation;
+};
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 658f5136..9b1b9c9e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1194,9 +1194,6 @@ importers:
'@fontsource/zcool-xiaowei':
specifier: 5.3.0
version: 5.3.0
- '@infolektuell/noto-color-emoji':
- specifier: 0.2.0
- version: 0.2.0
'@hypit/markup':
specifier: workspace:*
version: link:../markup
@@ -1206,6 +1203,9 @@ importers:
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
+ '@infolektuell/noto-color-emoji':
+ specifier: 0.2.0
+ version: 0.2.0
packages/gemini-omni:
dependencies:
@@ -1671,7 +1671,7 @@ importers:
dependencies:
'@google/genai':
specifier: 1.52.0
- version: 1.52.0
+ version: 1.52.0(@modelcontextprotocol/[email protected]([email protected]))
'@hypit/caption':
specifier: workspace:*
version: link:../caption
@@ -1775,7 +1775,7 @@ importers:
version: link:../runtime-kit
hyperframes:
specifier: 0.7.101
- version: 0.7.101(@types/[email protected])
+ version: 0.7.101(@modelcontextprotocol/[email protected]([email protected]))(@types/[email protected])
devDependencies:
'@hypit/composition':
specifier: workspace:*
@@ -2079,6 +2079,40 @@ importers:
specifier: workspace:*
version: link:../spatial
+ packages/reference-video-tools:
+ dependencies:
+ '@google/genai':
+ specifier: 1.52.0
+ version: 1.52.0(@modelcontextprotocol/[email protected]([email protected]))
+ '@hypit/artifact-store-fs':
+ specifier: workspace:*
+ version: link:../artifact-store-fs
+ '@hypit/markup':
+ specifier: workspace:*
+ version: link:../markup
+ '@hypit/package-loader-node':
+ specifier: workspace:*
+ version: link:../package-loader-node
+ '@hypit/protocol':
+ specifier: workspace:*
+ version: link:../protocol
+ '@hypit/runtime':
+ specifier: workspace:*
+ version: link:../runtime
+ '@modelcontextprotocol/sdk':
+ specifier: 1.30.0
+ version: 1.30.0([email protected])
+ zod:
+ specifier: 3.25.76
+ version: 3.25.76
+ devDependencies:
+ '@types/node':
+ specifier: 24.10.1
+ version: 24.10.1
+ tsx:
+ specifier: 4.21.0
+ version: 4.21.0
+
packages/render-hyperframes:
dependencies:
'@hypit/artifact':
@@ -4217,6 +4251,16 @@ packages:
'@jridgewell/[email protected]':
resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+ '@modelcontextprotocol/[email protected]':
+ resolution: {integrity: sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@cfworker/json-schema': ^4.1.1
+ zod: ^3.25 || ^4.0
+ peerDependenciesMeta:
+ '@cfworker/json-schema':
+ optional: true
+
'@napi-rs/[email protected]':
resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==}
engines: {node: ^22.20 || ^24.12 || >=25}
@@ -4586,6 +4630,10 @@ packages:
'@vueuse/[email protected]':
resolution: {integrity: sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==}
+ resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}
+ engines: {node: '>= 0.6'}
+
resolution: {integrity: sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==}
engines: {node: '>=0.4.0'}
@@ -4607,6 +4655,17 @@ packages:
resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
+ peerDependencies:
+ ajv: ^8.0.0
+ peerDependenciesMeta:
+ ajv:
+ optional: true
+
+ resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
+
resolution: {integrity: sha512-PrqppUmhT4ENdas2pH9caE7efUcxy6EcSFhWzosiVuQBzu2tQ5yLTI6jwomT/1cuBnivzGfxiJCqDNN9FRRh+Q==}
engines: {node: '>= 14.0.0'}
@@ -4680,6 +4739,10 @@ packages:
resolution: {integrity: sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==}
+ resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-DkVaaQHymRhpYEYo9x1oo7Q7B0Y6KJUsjm3c9eTyFDby4MHLBTwZ6ZDWBel5zrYxj1WsZgC5oLpiz+93MluXeA==}
engines: {node: '>=20.19.0'}
@@ -4707,6 +4770,18 @@ packages:
resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==}
@@ -4753,10 +4828,38 @@ packages:
resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==}
engines: {'0': node >= 6.0}
+ resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==}
+ engines: {node: '>=6.6.0'}
+
+ resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
+ engines: {node: '>= 0.6'}
+
resolution: {integrity: sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
resolution: {integrity: sha512-snmjEVXy+1LnwXdxhYvTMj1d9tOh4HxkA1YmoayVBeeyR2C14Pum7fcxJIm4SswYspVy866eYNwlH6xC3/VH5g==}
engines: {node: '>=20.19.0'}
@@ -4809,6 +4912,10 @@ packages:
resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
engines: {node: '>=6'}
@@ -4858,15 +4965,26 @@ packages:
resolution: {integrity: sha512-qI4JLRKnSzqFqr7hAlS5xQDusBCjKSEG4t4+7aNrIQMHBcsC2TGEhuyABJdYkgSewL57PNLYEiibY2iPKhKpaA==}
engines: {node: '>=20.19.0'}
+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
+ resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
+
resolution: {integrity: sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==}
resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}
+ resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}
@@ -4894,6 +5012,10 @@ packages:
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==}
@@ -4916,6 +5038,9 @@ packages:
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
+
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'}
@@ -4928,9 +5053,31 @@ packages:
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+ resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}
+ engines: {node: '>= 0.6'}
+
resolution: {integrity: sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==}
+ resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==}
+ engines: {node: '>=18.0.0'}
+
+ resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==}
+ engines: {node: '>=18.0.0'}
+
+ resolution: {integrity: sha512-YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==}
+ engines: {node: '>= 16'}
+ peerDependencies:
+ express: '>= 4.11'
+
+ resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
@@ -4940,6 +5087,9 @@ packages:
resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==}
+ resolution: {integrity: sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==}
+
resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
engines: {node: ^12.20 || >= 14.13}
@@ -4951,6 +5101,10 @@ packages:
resolution: {integrity: sha512-Dvpa9uhVMOYivhHKWLGDoa512J751qN1WZAIO+Xw4L/mrUSPxS4DApzSUDbCFE/LUq2+xYnznEahTd63AqBSpA==}
+ resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==}
+ engines: {node: '>= 18.0.0'}
+
resolution: {integrity: sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA==}
@@ -4961,11 +5115,22 @@ packages:
resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
engines: {node: '>=12.20.0'}
+ resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
+ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+
resolution: {integrity: sha512-RB5vLV+vvQeoFPCX4QMK6/hjVkbIamPp1QSUD0CiZcnj12qbpiL+pLbYtgD+oZkWl0tl9z+o2Utp+MpM3QRhBA==}
engines: {node: '>=18'}
@@ -4982,6 +5147,14 @@ packages:
resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==}
@@ -5012,6 +5185,14 @@ packages:
resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}
@@ -5034,6 +5215,10 @@ packages:
resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==}
+ resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==}
@@ -5050,6 +5235,10 @@ packages:
engines: {node: '>=22'}
hasBin: true
+ resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
@@ -5057,6 +5246,14 @@ packages:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+ resolution: {integrity: sha512-R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
+ engines: {node: '>= 0.10'}
+
resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -5067,6 +5264,9 @@ packages:
engines: {node: '>=14.16'}
hasBin: true
+ resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}
+
resolution: {integrity: sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==}
engines: {node: '>=18'}
@@ -5075,9 +5275,21 @@ packages:
resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}
engines: {node: '>=16'}
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
+ resolution: {integrity: sha512-XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==}
+
resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==}
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
+
+ resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
+
resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
@@ -5113,9 +5325,21 @@ packages:
resolution: {integrity: sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==}
+ resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==}
@@ -5131,6 +5355,14 @@ packages:
resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==}
+ resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -5157,6 +5389,10 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
+ engines: {node: '>= 0.6'}
+
resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
engines: {node: '>=10.5.0'}
@@ -5170,10 +5406,22 @@ packages:
resolution: {integrity: sha512-GX0gsdbGVCgnRgbeGaubfjpBXyYRWOOCVeYh08bSQvDZqxz5ndXs1OTfAt/h36G1xvI94YIspsI0sVFqAV9+RQ==}
engines: {node: '>=20.19.0'}
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
@@ -5201,12 +5449,27 @@ packages:
resolution: {integrity: sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg==}
+ resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==}
+
resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+ resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
+ engines: {node: '>=16.20.0'}
+
resolution: {integrity: sha512-KvvtD7SrlBP7dlgkBghEE3r84CABm5SmV2aNcG4oCA+qDnJ/tvKonFVvwWAyyWUEwxuNawdfEAZKP9zM3oZ2Uw==}
engines: {node: '>=4'}
@@ -5239,6 +5502,10 @@ packages:
resolution: {integrity: sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==}
engines: {node: '>=12.0.0'}
+ resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}
+ engines: {node: '>= 0.10'}
+
resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==}
@@ -5251,6 +5518,18 @@ packages:
engines: {node: '>=22.12.0'}
hasBin: true
+ resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==}
+ engines: {node: '>=0.6'}
+
+ resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
+ engines: {node: '>= 0.10'}
+
resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
engines: {node: '>= 6'}
@@ -5268,6 +5547,10 @@ packages:
resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==}
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
@@ -5290,6 +5573,10 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}
engines: {node: '>=18'}
@@ -5297,6 +5584,9 @@ packages:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+
resolution: {integrity: sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==}
@@ -5308,10 +5598,21 @@ packages:
engines: {node: '>=10'}
hasBin: true
+ resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
+
resolution: {integrity: sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==}
engines: {node: '>=20.9.0'}
@@ -5321,9 +5622,33 @@ packages:
'@types/node':
optional: true
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==}
+ resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
@@ -5342,6 +5667,10 @@ packages:
resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}
+ resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw==}
@@ -5392,6 +5721,10 @@ packages:
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+ resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
+ engines: {node: '>=0.6'}
+
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
@@ -5407,6 +5740,10 @@ packages:
resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ==}
@@ -5445,9 +5782,17 @@ packages:
resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==}
+ resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+ resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
+ engines: {node: '>= 0.8'}
+
resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==}
@@ -5516,6 +5861,11 @@ packages:
resolution: {integrity: sha512-VSV+fzfChirL3e7jay2yUC7B4HQCGtEWEg/MSSQbK+qWbqeGlRLlXTzPpYr3XGUvbpDHumWZBJxgesg4N7dbtA==}
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==}
engines: {node: '>=18'}
@@ -5555,6 +5905,11 @@ packages:
resolution: {integrity: sha512-2rAgRKu54VsHkqI0/tYkmluGXHD4KW7yZoycuqDQ15QOTnc2VVfy0nN/1eMhnQLO00A+dwtK20xuCnc1YGeUyg==}
engines: {node: ^20.19.0 || ^22.12.0 || >=23}
+ resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}
+ peerDependencies:
+ zod: ^3.25.28 || ^4
+
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
@@ -6371,12 +6726,14 @@ snapshots:
'@fontsource/[email protected]': {}
- '@google/[email protected]':
+ '@google/[email protected](@modelcontextprotocol/[email protected]([email protected]))':
dependencies:
google-auth-library: 10.9.1
p-retry: 4.6.2
protobufjs: 7.6.5
ws: 8.21.1
+ optionalDependencies:
+ '@modelcontextprotocol/sdk': 1.30.0([email protected])
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -6621,6 +6978,28 @@ snapshots:
'@jridgewell/[email protected]': {}
+ '@modelcontextprotocol/[email protected]([email protected])':
+ dependencies:
+ '@hono/node-server': 2.0.12([email protected])
+ ajv: 8.20.0
+ ajv-formats: 3.0.1([email protected])
+ content-type: 1.0.5
+ cors: 2.8.6
+ cross-spawn: 7.0.6
+ eventsource: 3.0.7
+ eventsource-parser: 3.1.1
+ express: 5.2.1
+ express-rate-limit: 8.6.2([email protected])
+ hono: 4.12.32
+ jose: 6.2.9
+ json-schema-typed: 8.0.2
+ pkce-challenge: 5.0.1
+ raw-body: 3.0.2
+ zod: 3.25.76
+ zod-to-json-schema: 3.25.2([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
'@napi-rs/[email protected]':
optional: true
@@ -6946,6 +7325,11 @@ snapshots:
transitivePeerDependencies:
- typescript
+ dependencies:
+ mime-types: 3.0.2
+ negotiator: 1.0.0
+
dependencies:
acorn: 8.18.0
@@ -6962,6 +7346,17 @@ snapshots:
+ optionalDependencies:
+ ajv: 8.20.0
+
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-uri: 3.1.5
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+
dependencies:
'@algolia/abtesting': 1.22.0
@@ -7026,6 +7421,20 @@ snapshots:
+ dependencies:
+ bytes: 3.1.2
+ content-type: 2.1.0
+ debug: 4.4.3
+ http-errors: 2.0.1
+ iconv-lite: 0.7.3
+ on-finished: 2.4.1
+ qs: 6.15.3
+ raw-body: 3.0.2
+ type-is: 2.1.0
+ transitivePeerDependencies:
+ - supports-color
+
@@ -7046,6 +7455,18 @@ snapshots:
dependencies:
run-applescript: 7.1.0
+
+ dependencies:
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ get-intrinsic: 1.3.0
+
@@ -7085,10 +7506,31 @@ snapshots:
readable-stream: 3.6.2
typedarray: 0.0.6
+
+
+
+
+
dependencies:
is-what: 5.5.0
+ dependencies:
+ object-assign: 4.1.1
+ vary: 1.1.2
+
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
dependencies:
boolbase: 2.0.0
@@ -7132,6 +7574,8 @@ snapshots:
has-property-descriptors: 1.0.2
object-keys: 1.1.1
+
@@ -7182,14 +7626,24 @@ snapshots:
domelementtype: 3.0.0
domhandler: 6.0.1
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
dependencies:
safe-buffer: 5.2.1
+
+
dependencies:
once: 1.4.0
@@ -7206,6 +7660,10 @@ snapshots:
+ dependencies:
+ es-errors: 1.3.0
+
@@ -7294,24 +7752,77 @@ snapshots:
+
+
dependencies:
bare-events: 2.9.1
transitivePeerDependencies:
- bare-abort-controller
+
+ dependencies:
+ eventsource-parser: 3.1.1
+
+ dependencies:
+ debug: 4.4.3
+ express: 5.2.1
+ ip-address: 10.5.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ accepts: 2.0.0
+ body-parser: 2.3.0
+ content-disposition: 1.1.0
+ content-type: 1.0.5
+ cookie: 0.7.2
+ cookie-signature: 1.2.2
+ debug: 4.4.3
+ depd: 2.0.0
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ etag: 1.8.1
+ finalhandler: 2.1.1
+ fresh: 2.0.0
+ http-errors: 2.0.1
+ merge-descriptors: 2.0.0
+ mime-types: 3.0.2
+ on-finished: 2.4.1
+ once: 1.4.0
+ parseurl: 1.3.3
+ proxy-addr: 2.0.7
+ qs: 6.15.3
+ range-parser: 1.3.0
+ router: 2.2.0
+ send: 1.2.1
+ serve-static: 2.2.1
+ statuses: 2.0.2
+ type-is: 2.1.0
+ vary: 1.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+
dependencies:
node-domexception: 1.0.0
@@ -7328,6 +7839,17 @@ snapshots:
+ dependencies:
+ debug: 4.4.3
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ on-finished: 2.4.1
+ parseurl: 1.3.3
+ statuses: 2.0.2
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
tabbable: 6.5.0
@@ -7348,9 +7870,15 @@ snapshots:
dependencies:
fetch-blob: 3.2.0
+
+
optional: true
+
dependencies:
extend: 3.0.2
@@ -7371,6 +7899,24 @@ snapshots:
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.2
+ function-bind: 1.1.2
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.4
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-object-atoms: 1.1.2
+
dependencies:
resolve-pkg-maps: 1.0.0
@@ -7410,6 +7956,12 @@ snapshots:
dependencies:
es-define-property: 1.0.1
+
+ dependencies:
+ function-bind: 1.1.2
+
dependencies:
'@types/hast': 3.0.5
@@ -7443,6 +7995,14 @@ snapshots:
domutils: 3.2.2
entities: 7.0.1
+ dependencies:
+ depd: 2.0.0
+ inherits: 2.0.4
+ setprototypeof: 1.2.0
+ statuses: 2.0.2
+ toidentifier: 1.0.1
+
dependencies:
'@types/node': 10.17.60
@@ -7461,7 +8021,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@hono/node-server': 2.0.12([email protected])
'@puppeteer/browsers': 3.1.0
@@ -7481,7 +8041,7 @@ snapshots:
puppeteer-core: 25.5.0
sharp: 0.35.3(@types/[email protected])
optionalDependencies:
- '@google/genai': 1.52.0
+ '@google/genai': 1.52.0(@modelcontextprotocol/[email protected]([email protected]))
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- '@types/node'
@@ -7491,26 +8051,44 @@ snapshots:
- utf-8-validate
- yauzl
+ dependencies:
+ safer-buffer: 2.1.2
+
+
+
dependencies:
is-docker: 3.0.0
+
dependencies:
is-inside-container: 1.0.0
+
+
dependencies:
bignumber.js: 9.3.1
+
+
@@ -7546,6 +8124,8 @@ snapshots:
dependencies:
escape-string-regexp: 4.0.0
+
dependencies:
'@types/hast': 3.0.5
@@ -7558,6 +8138,10 @@ snapshots:
unist-util-visit: 5.1.0
vfile: 6.0.3
+
+
dependencies:
micromark-util-symbol: 2.0.1
@@ -7575,6 +8159,12 @@ snapshots:
+
+ dependencies:
+ mime-db: 1.54.0
+
@@ -7591,6 +8181,8 @@ snapshots:
+
@@ -7603,8 +8195,16 @@ snapshots:
dependencies:
boolbase: 2.0.0
+
+
+ dependencies:
+ ee-first: 1.1.1
+
dependencies:
wrappy: 1.0.2
@@ -7639,10 +8239,18 @@ snapshots:
+
+
+
+
dependencies:
cssesc: 3.0.0
@@ -7676,6 +8284,11 @@ snapshots:
'@types/node': 24.10.1
long: 5.3.2
+ dependencies:
+ forwarded: 0.2.0
+ ipaddr.js: 1.9.1
+
dependencies:
end-of-stream: 1.4.5
@@ -7709,6 +8322,20 @@ snapshots:
- utf-8-validate
- yauzl
+ dependencies:
+ es-define-property: 1.0.1
+ side-channel: 1.1.1
+
+
+ dependencies:
+ bytes: 3.1.2
+ http-errors: 2.0.1
+ iconv-lite: 0.7.3
+ unpipe: 1.0.0
+
dependencies:
inherits: 2.0.4
@@ -7733,6 +8360,8 @@ snapshots:
dependencies:
regex-utilities: 2.3.0
+
@@ -7782,20 +8411,59 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.62.4
fsevents: 2.3.3
+ dependencies:
+ debug: 4.4.3
+ depd: 2.0.0
+ is-promise: 4.0.0
+ parseurl: 1.3.3
+ path-to-regexp: 8.4.2
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ debug: 4.4.3
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ etag: 1.8.1
+ fresh: 2.0.0
+ http-errors: 2.0.1
+ mime-types: 3.0.2
+ ms: 2.1.3
+ on-finished: 2.4.1
+ range-parser: 1.3.0
+ statuses: 2.0.2
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
type-fest: 0.13.1
+ dependencies:
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ parseurl: 1.3.3
+ send: 1.2.1
+ transitivePeerDependencies:
+ - supports-color
+
+
dependencies:
'@img/colour': 1.1.0
@@ -7829,6 +8497,12 @@ snapshots:
'@img/sharp-win32-x64': 0.35.3
'@types/node': 24.10.1
+ dependencies:
+ shebang-regex: 3.0.0
+
+
dependencies:
'@shikijs/core': 2.5.0
@@ -7840,6 +8514,34 @@ snapshots:
'@shikijs/vscode-textmate': 10.0.2
'@types/hast': 3.0.5
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-map: 1.0.1
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-list: 1.0.1
+ side-channel-map: 1.0.1
+ side-channel-weakmap: 1.0.2
+
@@ -7850,6 +8552,8 @@ snapshots:
+
dependencies:
events-universal: 1.0.1
@@ -7937,6 +8641,8 @@ snapshots:
+
@@ -7950,6 +8656,12 @@ snapshots:
+ dependencies:
+ content-type: 2.1.0
+ media-typer: 1.1.1
+ mime-types: 3.0.2
+
@@ -7993,8 +8705,12 @@ snapshots:
unist-util-is: 6.0.1
unist-util-visit-parents: 6.0.2
+
+
dependencies:
'@types/unist': 3.0.3
@@ -8082,6 +8798,10 @@ snapshots:
+ dependencies:
+ isexe: 2.0.0
+
dependencies:
ansi-styles: 6.2.3
@@ -8111,6 +8831,10 @@ snapshots:
y18n: 5.0.8
yargs-parser: 22.0.0
+ dependencies:
+ zod: 3.25.76
+