bizydraft 0.2.37__py3-none-any.whl → 0.2.39__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.

@@ -477,6 +477,7 @@ window.addEventListener('message', function(event) {
477
477
  type: widget.type || "string",
478
478
  options: safeOptions,
479
479
  displayName: widget.displayName || widget.label || widget.name || "",
480
+ tooltip: widget.tooltip || "", // 添加 tooltip 字段
480
481
  node_title: node.title || "",
481
482
  node_type: node.type || "",
482
483
  node_comfyClass: node.comfyClass || ""
@@ -500,6 +501,7 @@ window.addEventListener('message', function(event) {
500
501
  type: widget.type || "string",
501
502
  options: widget.options || {},
502
503
  displayName: widget.displayName || "",
504
+ tooltip: widget.tooltip || "", // 添加 tooltip 字段
503
505
  node_title: widget.node_title || "",
504
506
  node_type: widget.node_type || "",
505
507
  node_comfyClass: widget.node_comfyClass || ""
@@ -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
- 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
- });
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
- for (const key in graph.output) {
603
- if (graph.output[key].class_type === node.type) {
604
- if (!graph.output[key]._meta) {
605
- graph.output[key]._meta = {};
606
- }
607
- graph.output[key]._meta.id = node.id;
608
- break; // 找到匹配的就跳出循环
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') {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bizydraft
3
- Version: 0.2.37
3
+ Version: 0.2.39
4
4
  Summary: bizydraft
5
5
  Requires-Dist: loguru
6
6
  Requires-Dist: aiohttp
@@ -10,7 +10,7 @@ bizydraft/prestartup_patch.py,sha256=4FGjmRcDHELjtlQOrfTfk2Un5OS89QIqfq-gEcB9WDs
10
10
  bizydraft/resp.py,sha256=8INvKOe5Dgai3peKfqKjrhUoYeuXWXn358w30-_cY-A,369
11
11
  bizydraft/server.py,sha256=L2zoJgOisr65IRphOyko74AdsLel59gh55peyMaUrO8,2102
12
12
  bizydraft/workflow_io.py,sha256=MYhJbpgkv8hrA5k_aolijOTrWpTtu62nzRznA4hv8JE,4298
13
- bizydraft/static/js/aiAppHandler.js,sha256=sSi10vp-BxskmT9k7aPgnjDVeK6RLjWZ48wD4pReKtg,17664
13
+ bizydraft/static/js/aiAppHandler.js,sha256=SBGms27-DYyc5uBluN9ScliW-zUAdw5cS6VQ4BV-_CQ,17816
14
14
  bizydraft/static/js/freezeModeHandler.js,sha256=l1-JK8hyFbJzQ6ylq6occUa_kwszPq9rDbKut48bn6s,17247
15
15
  bizydraft/static/js/handleStyle.js,sha256=o9JpjOqs_lLIr-jpqpGNjUN74XQPT8pD3fF5bjsHLAU,1466
16
16
  bizydraft/static/js/hookLoadImage.js,sha256=jQGckFr7bTLRiwcFsVmSy1mj_o7TKj1uup0QQ00qwbk,8079
@@ -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=a2x6Yvd8kBanrzHDvAXlyJDj8n2VXG6wipVMkpdIIm0,38834
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.37.dist-info/METADATA,sha256=IvxLvX-ODOQH3ntbfO-QKLCsxQRwLDEKve3P1vk41XA,162
26
- bizydraft-0.2.37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- bizydraft-0.2.37.dist-info/top_level.txt,sha256=XtoBq6hjZhXIM7aas4GtPDtAiKo8FdLzMABXW8qqQ8M,10
28
- bizydraft-0.2.37.dist-info/RECORD,,
25
+ bizydraft-0.2.39.dist-info/METADATA,sha256=qHaIVPTmijUgfcevP0Tz1v-VebLRlO_G_l1_cBYSSyM,162
26
+ bizydraft-0.2.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ bizydraft-0.2.39.dist-info/top_level.txt,sha256=XtoBq6hjZhXIM7aas4GtPDtAiKo8FdLzMABXW8qqQ8M,10
28
+ bizydraft-0.2.39.dist-info/RECORD,,