beswarm 0.2.80__py3-none-any.whl → 0.2.81__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.
- beswarm/tools/graph.py +12 -3
- {beswarm-0.2.80.dist-info → beswarm-0.2.81.dist-info}/METADATA +1 -1
- {beswarm-0.2.80.dist-info → beswarm-0.2.81.dist-info}/RECORD +5 -5
- {beswarm-0.2.80.dist-info → beswarm-0.2.81.dist-info}/WHEEL +0 -0
- {beswarm-0.2.80.dist-info → beswarm-0.2.81.dist-info}/top_level.txt +0 -0
beswarm/tools/graph.py
CHANGED
@@ -21,7 +21,10 @@ def add_knowledge_node(parent_path: str, node_name: str, description: str = "",
|
|
21
21
|
if tags:
|
22
22
|
if "[" not in tags:
|
23
23
|
if "," not in tags:
|
24
|
-
|
24
|
+
if " " in tags:
|
25
|
+
tags = f"[{tags.split(' ')}]"
|
26
|
+
else:
|
27
|
+
tags = f"['{tags}']"
|
25
28
|
else:
|
26
29
|
tags = f"{tags.split(',')}"
|
27
30
|
tags = ast.literal_eval(tags) if isinstance(tags, str) else tags
|
@@ -42,7 +45,10 @@ def add_tags_to_knowledge_node(node_path: str, tags: List[str]) -> str:
|
|
42
45
|
"""
|
43
46
|
if "[" not in tags:
|
44
47
|
if "," not in tags:
|
45
|
-
|
48
|
+
if " " in tags:
|
49
|
+
tags = f"[{tags.split(' ')}]"
|
50
|
+
else:
|
51
|
+
tags = f"['{tags}']"
|
46
52
|
else:
|
47
53
|
tags = f"{tags.split(',')}"
|
48
54
|
|
@@ -64,7 +70,10 @@ def remove_tags_from_knowledge_node(node_path: str, tags: List[str]) -> str:
|
|
64
70
|
"""
|
65
71
|
if "[" not in tags:
|
66
72
|
if "," not in tags:
|
67
|
-
|
73
|
+
if " " in tags:
|
74
|
+
tags = f"[{tags.split(' ')}]"
|
75
|
+
else:
|
76
|
+
tags = f"['{tags}']"
|
68
77
|
else:
|
69
78
|
tags = f"{tags.split(',')}"
|
70
79
|
|
@@ -106,7 +106,7 @@ beswarm/tools/__init__.py,sha256=CPFj04Lm6TEol_2BFX-mVrpzvVIsmPcfTWhRg3xex7Q,207
|
|
106
106
|
beswarm/tools/click.py,sha256=wu-Ov5U2ZZLcU0gennDVh_2w_Td7F4dbVJcmu_dfHV4,20872
|
107
107
|
beswarm/tools/completion.py,sha256=AIHtEHfSp6fs4Xa_nTcw9fLgXtYHtYGRDTSy7_x_Fak,544
|
108
108
|
beswarm/tools/edit_file.py,sha256=ZTJvbpsfRlp2t98kTn9XQ5qZBTdsWJVWv9t0lvK4RfU,9147
|
109
|
-
beswarm/tools/graph.py,sha256=
|
109
|
+
beswarm/tools/graph.py,sha256=kmf4MZPGpfMTTkRuy_6C_V9U-4TLC_J7Az05b-ksqHg,5384
|
110
110
|
beswarm/tools/planner.py,sha256=vsHd7rE8RQHJrZ7BQ0ZXhbt4Fjh3DeyxU4piA5R-VPM,1253
|
111
111
|
beswarm/tools/repomap.py,sha256=w98aHmjNjtvcUVc5maWORqzKqDy2KVGLooOe__uJVCU,45235
|
112
112
|
beswarm/tools/request_input.py,sha256=3n2UW8m8Q7dxGhd7L7hzSJ1kk4ekMbtdtNZZT3dJf20,938
|
@@ -116,7 +116,7 @@ beswarm/tools/search_web.py,sha256=0fTeczXiOX_LJQGaLEGbuJtIPzofeuquGWEt3yDMtVw,1
|
|
116
116
|
beswarm/tools/subtasks.py,sha256=4wJWNAqRFgvwmDOP12SddYo_OteWBU5cLhLBh6xILk8,10492
|
117
117
|
beswarm/tools/worker.py,sha256=mQ1qdrQ8MgL99byAbTvxfEByFFGN9mty3UHqHjARMQ8,2331
|
118
118
|
beswarm/tools/write_csv.py,sha256=u0Hq18Ksfheb52MVtyLNCnSDHibITpsYBPs2ub7USYA,1466
|
119
|
-
beswarm-0.2.
|
120
|
-
beswarm-0.2.
|
121
|
-
beswarm-0.2.
|
122
|
-
beswarm-0.2.
|
119
|
+
beswarm-0.2.81.dist-info/METADATA,sha256=DzYRWhHYqpacaXDliKKtcnet4Yn9zWfYSB6Sntut0KI,3878
|
120
|
+
beswarm-0.2.81.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
121
|
+
beswarm-0.2.81.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
122
|
+
beswarm-0.2.81.dist-info/RECORD,,
|
File without changes
|
File without changes
|