feat(workflow): add altenate merge tool and translate workflow node and engine errors across locales

This commit is contained in:
alam00000 committed 2026-04-30 13:16:48 +05:30
1 parent 0040317e48
commit ef3dab5aeb
74 files changed
+2552 -1077

No files matched your search

+2 -2
View File
@@ -4,6 +4,7 @@ import { pdfSocket } from '../sockets';
import type { PDFData, SocketData, MultiPDFData } from '../types';
import { loadPyMuPDF } from '../../utils/pymupdf-loader.js';
import { loadPdfDocument } from '../../utils/load-pdf-document.js';
import { wfError } from '../errors';
export class XpsToPdfNode extends BaseWorkflowNode {
readonly category = 'Input' as const;
@@ -47,8 +48,7 @@ export class XpsToPdfNode extends BaseWorkflowNode {
async data(
_inputs: Record<string, SocketData[]>
): Promise<Record<string, SocketData>> {
if (this.files.length === 0)
throw new Error('No XPS files uploaded in XPS Input node');
if (this.files.length === 0) throw new Error(wfError('noXpsUploaded'));
const pymupdf = await loadPyMuPDF();
const results: PDFData[] = [];