bizydraft 0.2.41__py3-none-any.whl → 0.2.43__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 +18 -0
- {bizydraft-0.2.41.dist-info → bizydraft-0.2.43.dist-info}/METADATA +1 -1
- {bizydraft-0.2.41.dist-info → bizydraft-0.2.43.dist-info}/RECORD +5 -5
- {bizydraft-0.2.41.dist-info → bizydraft-0.2.43.dist-info}/WHEEL +0 -0
- {bizydraft-0.2.41.dist-info → bizydraft-0.2.43.dist-info}/top_level.txt +0 -0
bizydraft/static/js/postEvent.js
CHANGED
|
@@ -505,6 +505,24 @@ app.registerExtension({
|
|
|
505
505
|
}, '*');
|
|
506
506
|
return graph.workflow;
|
|
507
507
|
},
|
|
508
|
+
getWorkflowNotSave: async function () {
|
|
509
|
+
const graph = await app.graphToPrompt();
|
|
510
|
+
// 规范化工作流,移除不影响逻辑的视觉字段,避免颜色等样式变化影响校验
|
|
511
|
+
const normalizeWorkflow = (workflow) => {
|
|
512
|
+
const json = JSON.stringify(workflow, (key, value) => {
|
|
513
|
+
if (key === 'color' || key === 'bgcolor' || key === 'extra') return undefined;
|
|
514
|
+
return value;
|
|
515
|
+
});
|
|
516
|
+
return JSON.parse(json);
|
|
517
|
+
};
|
|
518
|
+
const normalized = normalizeWorkflow(graph.workflow);
|
|
519
|
+
window.parent.postMessage({
|
|
520
|
+
type: 'functionResult',
|
|
521
|
+
method: 'getWorkflowNotSave',
|
|
522
|
+
result: normalized
|
|
523
|
+
}, '*');
|
|
524
|
+
return normalized;
|
|
525
|
+
},
|
|
508
526
|
// 新增:获取 workflow 和 output
|
|
509
527
|
getWorkflowWithOutput: async function () {
|
|
510
528
|
const graph = await app.graphToPrompt();
|
|
@@ -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=AEeph8HpmIn5qeyebkh5FzcKW6GRh7PGDHci66yKaHA,40200
|
|
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.43.dist-info/METADATA,sha256=h1ePPbNmRDaa_nXZ1O2nRN4PjSji8yfDHFwUJUo5eps,162
|
|
26
|
+
bizydraft-0.2.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
bizydraft-0.2.43.dist-info/top_level.txt,sha256=XtoBq6hjZhXIM7aas4GtPDtAiKo8FdLzMABXW8qqQ8M,10
|
|
28
|
+
bizydraft-0.2.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|