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
+7 -7
View File
@@ -1,6 +1,6 @@
import { runPythonWithProgress, type ProgressCallback } from "./bridge.js";
import { writeFile, readFile } from "node:fs/promises";
import { readFile, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { type ProgressCallback, runPythonWithProgress } from "./bridge.js";
export interface UpscaleOptions {
scale?: number;
@@ -23,11 +23,11 @@ export async function upscale(
const outputPath = join(outputDir, "output_upscale.png");
await writeFile(inputPath, inputBuffer);
const { stdout } = await runPythonWithProgress("upscale.py", [
inputPath,
outputPath,
JSON.stringify(options),
], { onProgress });
const { stdout } = await runPythonWithProgress(
"upscale.py",
[inputPath, outputPath, JSON.stringify(options)],
{ onProgress },
);
const result = JSON.parse(stdout);
if (!result.success) {