bizydraft 0.2.37__py3-none-any.whl → 0.2.38__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bizydraft might be problematic. Click here for more details.
- bizydraft/static/js/postEvent.js +29 -23
- {bizydraft-0.2.37.dist-info → bizydraft-0.2.38.dist-info}/METADATA +1 -1
- {bizydraft-0.2.37.dist-info → bizydraft-0.2.38.dist-info}/RECORD +5 -5
- {bizydraft-0.2.37.dist-info → bizydraft-0.2.38.dist-info}/WHEEL +0 -0
- {bizydraft-0.2.37.dist-info → bizydraft-0.2.38.dist-info}/top_level.txt +0 -0
bizydraft/static/js/postEvent.js
CHANGED
|
@@ -508,17 +508,20 @@ app.registerExtension({
|
|
|
508
508
|
// 新增:获取 workflow 和 output
|
|
509
509
|
getWorkflowWithOutput: async function () {
|
|
510
510
|
const graph = await app.graphToPrompt();
|
|
511
|
-
graph.workflow.nodes.forEach(node => {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
});
|
|
511
|
+
// graph.workflow.nodes.forEach(node => {
|
|
512
|
+
// for (const key in graph.output) {
|
|
513
|
+
// if (graph.output[key].class_type === node.type) {
|
|
514
|
+
// if (!graph.output[key]._meta) {
|
|
515
|
+
// graph.output[key]._meta = {};
|
|
516
|
+
// }
|
|
517
|
+
// graph.output[key]._meta.id = node.id;
|
|
518
|
+
// break; // 找到匹配的就跳出循环
|
|
519
|
+
// }
|
|
520
|
+
// }
|
|
521
|
+
// });
|
|
522
|
+
for (const key in graph.output) {
|
|
523
|
+
graph.output[key]._meta.id = Number(key);
|
|
524
|
+
}
|
|
522
525
|
window.parent.postMessage({
|
|
523
526
|
type: 'functionResult',
|
|
524
527
|
method: 'getWorkflowWithOutput',
|
|
@@ -551,7 +554,6 @@ app.registerExtension({
|
|
|
551
554
|
try {
|
|
552
555
|
// 确保有连接
|
|
553
556
|
// await getSocketAsync();
|
|
554
|
-
|
|
555
557
|
const graph = await app.graphToPrompt();
|
|
556
558
|
const clientId = sessionStorage.getItem("clientId");
|
|
557
559
|
await app.queuePrompt(graph.output);
|
|
@@ -598,17 +600,21 @@ app.registerExtension({
|
|
|
598
600
|
}
|
|
599
601
|
|
|
600
602
|
if (Object.keys(resPromptJson.node_errors).length) return
|
|
601
|
-
graph.workflow.nodes.forEach(node => {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
603
|
+
// graph.workflow.nodes.forEach(node => {
|
|
604
|
+
// for (const key in graph.output) {
|
|
605
|
+
// if (graph.output[key].class_type === node.type) {
|
|
606
|
+
// if (!graph.output[key]._meta) {
|
|
607
|
+
// graph.output[key]._meta = {};
|
|
608
|
+
// }
|
|
609
|
+
// graph.output[key]._meta.id = node.id;
|
|
610
|
+
// console.log(graph.output[key].class_type, node.type, graph.output[key]._meta.id)
|
|
611
|
+
// break; // 找到匹配的就跳出循环
|
|
612
|
+
// }
|
|
613
|
+
// }
|
|
614
|
+
// });
|
|
615
|
+
for (const key in graph.output) {
|
|
616
|
+
graph.output[key]._meta.id = Number(key);
|
|
617
|
+
}
|
|
612
618
|
|
|
613
619
|
for (let i in graph.output) {
|
|
614
620
|
if (graph.output[i].class_type == 'LoadImage') {
|
|
@@ -18,11 +18,11 @@ bizydraft/static/js/hookLoadModel.js,sha256=zZKMoWIhvaWyTn5aAGcFlRO6l7O_YgqT96SO
|
|
|
18
18
|
bizydraft/static/js/main.js,sha256=oEsVEUZSo8ipx93oqs2WFQSRgp46XQ_D-Xao-wen2S8,121
|
|
19
19
|
bizydraft/static/js/nodeFocusHandler.js,sha256=24xXbS4Q-GjJdRqf11i-1pBo8MkOJ24F7MHFV44EG6Q,4683
|
|
20
20
|
bizydraft/static/js/nodeParamsFilter.js,sha256=H7lBB0G8HNqoGhOCH1hNXqPU-rPlrFyTxg_f_JgLEMk,4168
|
|
21
|
-
bizydraft/static/js/postEvent.js,sha256=
|
|
21
|
+
bizydraft/static/js/postEvent.js,sha256=M_KxK-a0yp9n2OQIhU8CFmfs1gs-NnQQqSTTtOSZRj0,39287
|
|
22
22
|
bizydraft/static/js/socket.js,sha256=VE3fTAgEfM0FZhL526Skt7OCRokOa3mzTCAjAomI_tE,2432
|
|
23
23
|
bizydraft/static/js/tool.js,sha256=dwVFLrT0pEsdOBkh2RRUDvyVo8GzOIVYg7vU5RiM0m0,2765
|
|
24
24
|
bizydraft/static/js/uploadFile.js,sha256=WvglKzHMeOzDhOH3P-fLcPHxCLbKOJpo4DntoRxeJtI,4908
|
|
25
|
-
bizydraft-0.2.
|
|
26
|
-
bizydraft-0.2.
|
|
27
|
-
bizydraft-0.2.
|
|
28
|
-
bizydraft-0.2.
|
|
25
|
+
bizydraft-0.2.38.dist-info/METADATA,sha256=5wFNLrevic4FUx7gzOGCXPLx4q72EVjoQn61kxFz0UI,162
|
|
26
|
+
bizydraft-0.2.38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
bizydraft-0.2.38.dist-info/top_level.txt,sha256=XtoBq6hjZhXIM7aas4GtPDtAiKo8FdLzMABXW8qqQ8M,10
|
|
28
|
+
bizydraft-0.2.38.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|