refactor: executor protocol, fallback, debounce

This commit is contained in:
2026-09-26 02:20:34 +05:00
parent 5f77c097e2
commit 0933f1cdea
14 changed files with 739 additions and 301 deletions
+4
View File
@@ -105,6 +105,7 @@ const pngToBase64: ToolEntry<NoParams> = {
schema: emptySchema,
input: "image",
result: "text",
domOnly: true,
run: imgTool((img) => toBase64(img)),
};
@@ -117,6 +118,7 @@ const pngToDataUri: ToolEntry<NoParams> = {
schema: emptySchema,
input: "image",
result: "text",
domOnly: true,
run: imgTool((img) => toDataUrl(img)),
};
@@ -163,6 +165,7 @@ const base64ToPng: ToolEntry<NoParams> = {
category: "convert",
schema: emptySchema,
input: "text",
domOnly: true,
run: textGen((text) => decodeBytes(base64ToBytes(stripDataUri(text)))),
};
@@ -173,6 +176,7 @@ const dataUriToPng: ToolEntry<NoParams> = {
category: "convert",
schema: emptySchema,
input: "text",
domOnly: true,
run: textGen((text) => decodeBytes(base64ToBytes(stripDataUri(text)))),
};