@tensorify.io/sdk
Version:
TypeScript SDK for developing Tensorify plugins with V2-Alpha definition/execution pattern and legacy compatibility
31 lines (28 loc) • 831 B
text/typescript
import {
EdgeType,
HandlePosition,
HandleViewType,
InputHandle,
OutputHandle,
} from "../types/visual";
// V2-Alpha: These handles are now optional - only needed for backward compatibility with V2-Beta
// The new architecture uses typed ports instead of prev/next navigation
export const PrevNodeAsInput: InputHandle = {
id: "prev",
position: HandlePosition.LEFT,
viewType: HandleViewType.DEFAULT,
required: false, // Changed to false for V2-Alpha
label: "Prev",
edgeType: EdgeType.DEFAULT,
dataType: "any",
description: "Previous node output (legacy)",
};
export const NextNodeAsOutput: OutputHandle = {
id: "next",
position: HandlePosition.RIGHT,
viewType: HandleViewType.DEFAULT,
label: "Next",
edgeType: EdgeType.DEFAULT,
dataType: "any",
description: "Flow to next node (legacy)",
};