Add visual workflow builder, fix critical bugs, and add Arabic i18n support

This commit is contained in:
alam00000
2026-02-08 17:05:40 +05:30
parent 36ebb3b429
commit 5d8b83e105
118 changed files with 14151 additions and 2357 deletions
+30
View File
@@ -0,0 +1,30 @@
import { ClassicPreset } from 'rete';
import type { NodeCategory, NodeMeta, SocketData } from '../types';
export abstract class BaseWorkflowNode extends ClassicPreset.Node {
abstract readonly category: NodeCategory;
abstract readonly icon: string;
abstract readonly description: string;
width = 280;
height = 140;
execStatus: 'idle' | 'running' | 'completed' | 'error' = 'idle';
constructor(label: string) {
super(label);
}
abstract data(
inputs: Record<string, SocketData[]>
): Promise<Record<string, SocketData>>;
getMeta(): NodeMeta {
return {
id: this.id,
label: this.label,
category: this.category,
icon: this.icon,
description: this.description,
};
}
}