bizydraft 0.1.11__py3-none-any.whl → 0.1.12__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 +19 -3
- {bizydraft-0.1.11.dist-info → bizydraft-0.1.12.dist-info}/METADATA +1 -1
- {bizydraft-0.1.11.dist-info → bizydraft-0.1.12.dist-info}/RECORD +5 -5
- {bizydraft-0.1.11.dist-info → bizydraft-0.1.12.dist-info}/WHEEL +0 -0
- {bizydraft-0.1.11.dist-info → bizydraft-0.1.12.dist-info}/top_level.txt +0 -0
bizydraft/static/js/postEvent.js
CHANGED
|
@@ -558,16 +558,32 @@ app.registerExtension({
|
|
|
558
558
|
await getSocketAsync();
|
|
559
559
|
|
|
560
560
|
const graph = await app.graphToPrompt();
|
|
561
|
-
const res = await app.queuePrompt(graph.output);
|
|
562
|
-
console.log("-----------queuePrompt-----------", res)
|
|
563
561
|
const clientId = sessionStorage.getItem("clientId");
|
|
562
|
+
const resPrompt = await fetch("api/prompt", {
|
|
563
|
+
method: "POST",
|
|
564
|
+
body: JSON.stringify({
|
|
565
|
+
prompt: graph.output,
|
|
566
|
+
clientId,
|
|
567
|
+
number: graph.output,
|
|
568
|
+
extra_data: {
|
|
569
|
+
extra_pnginfo: {
|
|
570
|
+
workflow: graph.workflow
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
})
|
|
574
|
+
});
|
|
575
|
+
const resPromptJson = await resPrompt.json();
|
|
576
|
+
if (resPromptJson.error) {
|
|
577
|
+
await app.queuePrompt(graph.output);
|
|
578
|
+
}
|
|
564
579
|
window.parent.postMessage({
|
|
565
580
|
type: 'functionResult',
|
|
566
581
|
method: 'runWorkflow',
|
|
567
582
|
result: {
|
|
568
583
|
clientId: clientId,
|
|
569
584
|
jsonWorkflow: graph.output,
|
|
570
|
-
workflow: graph.workflow
|
|
585
|
+
workflow: graph.workflow,
|
|
586
|
+
prompt: resPromptJson
|
|
571
587
|
}
|
|
572
588
|
}, '*');
|
|
573
589
|
return true;
|
|
@@ -6,11 +6,11 @@ bizydraft/server.py,sha256=ES1fBYr_Ufv_YWsynLck1ln9bXTGjK3KXas1CK9WBqM,1358
|
|
|
6
6
|
bizydraft/static/js/handleStyle.js,sha256=vIR_W3GLKn-saIPhKfLeuJ7QbeNI4PhjAkjGjJpxVcA,1461
|
|
7
7
|
bizydraft/static/js/hookLoadImage.js,sha256=rcXKi9y88n0gfad6XERr5UcP8c0zOUdaVyk3lbhiQSY,3951
|
|
8
8
|
bizydraft/static/js/main.js,sha256=cZ-7wR9T8aNLzIrTjc-g9xVZf7z6TXWl1zhP_wXSSVo,150
|
|
9
|
-
bizydraft/static/js/postEvent.js,sha256=
|
|
9
|
+
bizydraft/static/js/postEvent.js,sha256=uZ8RnXgzzlhVdunwUpobKcDu-OS_88-F3xBfaEC3a2A,26716
|
|
10
10
|
bizydraft/static/js/socket.js,sha256=q_SWsySJdVV7ZTH-3Pdr09pkWGQj08C9xVAQES7eJaU,2440
|
|
11
11
|
bizydraft/static/js/tool.js,sha256=IlDVjddodT9DtfdIGiIzSIKdxbUMztDLQ4jI0uFJCwk,206
|
|
12
12
|
bizydraft/static/js/uploadFile.js,sha256=Ae0VdYRE3c1bx1GBQGUpJ-NOXXB984u3T_grhLXOvgQ,4973
|
|
13
|
-
bizydraft-0.1.
|
|
14
|
-
bizydraft-0.1.
|
|
15
|
-
bizydraft-0.1.
|
|
16
|
-
bizydraft-0.1.
|
|
13
|
+
bizydraft-0.1.12.dist-info/METADATA,sha256=8O09oMLt58Ix55XbLLFnVuaS9qJcOMw0eBiYHtZ_RZg,73
|
|
14
|
+
bizydraft-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
bizydraft-0.1.12.dist-info/top_level.txt,sha256=XtoBq6hjZhXIM7aas4GtPDtAiKo8FdLzMABXW8qqQ8M,10
|
|
16
|
+
bizydraft-0.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|