feat: migrate fal workflow to server (#7581)

This commit is contained in:
darkskygit
2024-07-26 04:04:38 +00:00
parent cb0d91facd
commit 470262d400
24 changed files with 741 additions and 299 deletions
@@ -717,6 +717,8 @@ test.skip('should be able to preview workflow', async t => {
console.log('enter node:', ret.node.name);
} else if (ret.status === GraphExecutorState.ExitNode) {
console.log('exit node:', ret.node.name);
} else if (ret.status === GraphExecutorState.EmitAttachment) {
console.log('stream attachment:', ret);
} else {
result += ret.content;
// console.log('stream result:', ret);
@@ -1020,9 +1022,9 @@ test('should be able to run image executor', async t => {
ret,
Array.from(['https://example.com/test.jpg', 'tag1, tag2, tag3, ']).map(
t => ({
content: t,
attachment: t,
nodeId: 'basic',
type: NodeExecuteState.Content,
type: NodeExecuteState.Attachment,
})
)
);