feat: async task pipeline for media and llm workflows

这个提交包含在:
cryptocommuniums-afk
2026-03-15 00:12:26 +08:00
父节点 1cc863e60e
当前提交 20e183d2da
修改 36 个文件,包含 1961 行新增339 行删除

查看文件

@@ -4,6 +4,7 @@
import { mkdir, readFile, writeFile } from "node:fs/promises";
import path from "node:path";
import { ENV } from './_core/env';
import { toPublicUrl } from "./publicUrl";
type StorageConfig = { baseUrl: string; apiKey: string };
@@ -141,3 +142,7 @@ export async function storageGet(relKey: string): Promise<{ key: string; url: st
url: await buildDownloadUrl(baseUrl, key, apiKey),
};
}
export function toExternalAssetUrl(pathOrUrl: string) {
return toPublicUrl(pathOrUrl);
}