refactor: rename Tool.alpha to Tool.experimental

This commit is contained in:
Siddharth Kumar Sah
2026-03-26 01:10:51 +08:00
parent ab370a74fe
commit 585d66f0c9
178 changed files with 5637 additions and 4082 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import type { FastifyInstance } from "fastify";
import sharp from "sharp";
import { z } from "zod";
import { createToolRoute } from "../tool-factory.js";
import sharp from "sharp";
import type { FastifyInstance } from "fastify";
const settingsSchema = z.object({
width: z.number().min(1).max(4096).optional(),
@@ -24,7 +24,7 @@ export function registerGifTools(app: FastifyInstance) {
}
const buffer = await image.png().toBuffer();
const outName = filename.replace(/\.gif$/i, "") + `_frame${settings.extractFrame}.png`;
const outName = `${filename.replace(/\.gif$/i, "")}_frame${settings.extractFrame}.png`;
return { buffer, filename: outName, contentType: "image/png" };
}