flock-core 0.2.6__py3-none-any.whl → 0.2.8__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 flock-core might be problematic. Click here for more details.
- flock/__init__.py +0 -7
- flock/core/flock.py +4 -3
- flock/core/logging/formatters/pprint_formatter.py +7 -7
- flock/core/util/cli_helper.py +9 -11
- {flock_core-0.2.6.dist-info → flock_core-0.2.8.dist-info}/METADATA +1 -1
- {flock_core-0.2.6.dist-info → flock_core-0.2.8.dist-info}/RECORD +9 -9
- {flock_core-0.2.6.dist-info → flock_core-0.2.8.dist-info}/WHEEL +0 -0
- {flock_core-0.2.6.dist-info → flock_core-0.2.8.dist-info}/entry_points.txt +0 -0
- {flock_core-0.2.6.dist-info → flock_core-0.2.8.dist-info}/licenses/LICENSE +0 -0
flock/__init__.py
CHANGED
flock/core/flock.py
CHANGED
|
@@ -40,6 +40,7 @@ class Flock:
|
|
|
40
40
|
output_formatter: FormatterOptions = FormatterOptions(
|
|
41
41
|
PrettyPrintFormatter
|
|
42
42
|
),
|
|
43
|
+
show_cli_banner: bool = True,
|
|
43
44
|
):
|
|
44
45
|
"""Initialize the Flock orchestrator.
|
|
45
46
|
|
|
@@ -66,10 +67,10 @@ class Flock:
|
|
|
66
67
|
session_id = get_baggage("session_id")
|
|
67
68
|
if not session_id:
|
|
68
69
|
session_id = str(uuid.uuid4())
|
|
69
|
-
|
|
70
|
-
span.set_attribute("session_id", get_baggage("session_id"))
|
|
70
|
+
set_baggage("session_id", session_id)
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
if show_cli_banner:
|
|
73
|
+
display_banner()
|
|
73
74
|
|
|
74
75
|
self.agents: dict[str, FlockAgent] = {}
|
|
75
76
|
self.registry = Registry()
|
|
@@ -8,18 +8,18 @@ class PrettyPrintFormatter(BaseFormatter):
|
|
|
8
8
|
self, result: dict[str, Any], agent_name: str, **kwargs
|
|
9
9
|
) -> None:
|
|
10
10
|
"""Print an agent's result using Rich formatting."""
|
|
11
|
+
from devtools import pformat
|
|
11
12
|
from rich.console import Console
|
|
13
|
+
from rich.panel import Panel
|
|
12
14
|
|
|
13
15
|
console = Console()
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# console.print(JSON(json.dumps(result)))
|
|
19
|
-
# except Exception:
|
|
17
|
+
s = pformat(result, highlight=False)
|
|
18
|
+
|
|
19
|
+
console.print(Panel(s, title=agent_name, highlight=True))
|
|
20
20
|
|
|
21
21
|
def display_data(self, data: dict[str, Any], **kwargs) -> None:
|
|
22
22
|
"""Print an agent's result using Rich formatting."""
|
|
23
|
-
from devtools import
|
|
23
|
+
from devtools import sprint
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
sprint(data, sprint.green)
|
flock/core/util/cli_helper.py
CHANGED
|
@@ -14,19 +14,17 @@ console = Console()
|
|
|
14
14
|
def display_banner():
|
|
15
15
|
"""Display the Flock banner."""
|
|
16
16
|
banner_text = Text(
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
f"""
|
|
18
|
+
🦆 🐓 🐤 🐧
|
|
19
|
+
╭━━━━━━━━━━━━━━━━━━━━━━━━╮
|
|
20
|
+
│ ▒█▀▀▀ █░░ █▀▀█ █▀▀ █░█ │
|
|
21
|
+
│ ▒█▀▀▀ █░░ █░░█ █░░ █▀▄ │
|
|
22
|
+
│ ▒█░░░ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀░▀ │
|
|
23
|
+
╰━━━━━━━━━v{__version__}━━━━━━━━━╯
|
|
24
|
+
🦆 🐤 🐧 🐓
|
|
25
25
|
""",
|
|
26
26
|
justify="center",
|
|
27
27
|
style="bold orange3",
|
|
28
28
|
)
|
|
29
29
|
console.print(banner_text)
|
|
30
|
-
console.print(
|
|
31
|
-
f"[bold]v{__version__}[/] - [bold]white duck GmbH[/] - [cyan]https://whiteduck.de[/]\n"
|
|
32
|
-
)
|
|
30
|
+
console.print(f"[bold]white duck GmbH[/] - [cyan]https://whiteduck.de[/]\n")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
flock/__init__.py,sha256=
|
|
1
|
+
flock/__init__.py,sha256=JeRpPR29wyqXe8El-Ug4v_Ibhf5GQm_i8yWMi0cUYz0,36
|
|
2
2
|
flock/config.py,sha256=jmW1PQ2oiCUpERLhNFzvrcHlYS3KM_jJyMXrnoeA0gs,1547
|
|
3
3
|
flock/core/__init__.py,sha256=0Xq_txurlxxjKGXjRn6GNJusGTiBcd7zw2eF0L7JyuU,183
|
|
4
|
-
flock/core/flock.py,sha256=
|
|
4
|
+
flock/core/flock.py,sha256=dyyLeCIUQ_tp-lUfbNphxwsIq8oWgEo8R2B6BhjeqTg,9826
|
|
5
5
|
flock/core/flock_agent.py,sha256=prA2jslYuAABzIG6uw55f0XCNR-V4Ptaaju93ZuCc6E,27767
|
|
6
6
|
flock/core/context/context.py,sha256=jH06w4C_O5CEL-YxjX_x_dmgLe9Rcllnn1Ebs0dvwaE,6171
|
|
7
7
|
flock/core/context/context_manager.py,sha256=qMySVny_dbTNLh21RHK_YT0mNKIOrqJDZpi9ZVdBsxU,1103
|
|
@@ -14,7 +14,7 @@ flock/core/logging/telemetry.py,sha256=yEOfEZ3HBFeLCaHZA6QmsRdwZKtmUC6bQtEOTVeRR
|
|
|
14
14
|
flock/core/logging/trace_and_logged.py,sha256=5vNrK1kxuPMoPJ0-QjQg-EDJL1oiEzvU6UNi6X8FiMs,2117
|
|
15
15
|
flock/core/logging/formatters/base_formatter.py,sha256=CyG-X2NWq8sqEhFEO2aG7Mey5tVkIzoWiihW301_VIo,1023
|
|
16
16
|
flock/core/logging/formatters/formatter_factory.py,sha256=hmH-NpCESHkioX0GBQ5CuQR4axyIXnSRWwAZCHylx6Q,1283
|
|
17
|
-
flock/core/logging/formatters/pprint_formatter.py,sha256=
|
|
17
|
+
flock/core/logging/formatters/pprint_formatter.py,sha256=OubclvV_dSmbp0PKtdoz7UE-_x-DnBx7ykE4wowlha0,763
|
|
18
18
|
flock/core/logging/formatters/rich_formatters.py,sha256=h1FD0_cIdQBQ8P2x05XhgD1cmmP80IBNVT5jb3cAV9M,4776
|
|
19
19
|
flock/core/logging/formatters/theme_builder.py,sha256=1RUEwPIDfCjwTapbK1liasA5SdukOn7YwbZ4H4j1WkI,17364
|
|
20
20
|
flock/core/logging/formatters/themed_formatter.py,sha256=CbxmqUC7zkLzyIxngk-3dcpQ6vxPR6zaDNA2TAMitCI,16714
|
|
@@ -27,7 +27,7 @@ flock/core/mixin/prompt_parser.py,sha256=eOqI-FK3y17gVqpc_y5GF-WmK1Jv8mFlkZxTcgw
|
|
|
27
27
|
flock/core/registry/agent_registry.py,sha256=QHdr3Cb-32PEdz8jFCIZSH9OlfpRwAJMtSRpHCWJDq4,4889
|
|
28
28
|
flock/core/tools/basic_tools.py,sha256=OwWaFu4NoVrc3Uijj56RY9XDDaP_mOnEa5B3wSWwwLE,4756
|
|
29
29
|
flock/core/tools/dev_tools/github.py,sha256=a2OTPXS7kWOVA4zrZHynQDcsmEi4Pac5MfSjQOLePzA,5308
|
|
30
|
-
flock/core/util/cli_helper.py,sha256=
|
|
30
|
+
flock/core/util/cli_helper.py,sha256=qBB5C4MU-JqohHVjdI8E7od5ZAnzM_0IteZndCc5RBQ,939
|
|
31
31
|
flock/core/util/input_resolver.py,sha256=g9vDPdY4OH-G7qjas5ksGEHueokHGFPMoLOvC-ngeLo,5984
|
|
32
32
|
flock/core/util/serializable.py,sha256=SymJ0YrjBx48mOBItYSqoRpKuzIc4vKWRS6ScTzre7s,2573
|
|
33
33
|
flock/interpreter/python_interpreter.py,sha256=pq2e7KJfAYtBCP2hhbtFNeg18QdMFF66esoYn3MHfA4,26177
|
|
@@ -374,8 +374,8 @@ flock/workflow/activities.py,sha256=YEg-Gr8kzVsxWsmsZguIVhX2XwMRvhZ2OlnsJoG5g_A,
|
|
|
374
374
|
flock/workflow/agent_activities.py,sha256=NhBZscflEf2IMfSRa_pBM_TRP7uVEF_O0ROvWZ33eDc,963
|
|
375
375
|
flock/workflow/temporal_setup.py,sha256=VWBgmBgfTBjwM5ruS_dVpA5AVxx6EZ7oFPGw4j3m0l0,1091
|
|
376
376
|
flock/workflow/workflow.py,sha256=I9MryXW_bqYVTHx-nl2epbTqeRy27CAWHHA7ZZA0nAk,1696
|
|
377
|
-
flock_core-0.2.
|
|
378
|
-
flock_core-0.2.
|
|
379
|
-
flock_core-0.2.
|
|
380
|
-
flock_core-0.2.
|
|
381
|
-
flock_core-0.2.
|
|
377
|
+
flock_core-0.2.8.dist-info/METADATA,sha256=gV_4HxbnmRBNkBsGRlQpZV7Qg9zEbBFN2cp6iGP4heo,11569
|
|
378
|
+
flock_core-0.2.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
379
|
+
flock_core-0.2.8.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
380
|
+
flock_core-0.2.8.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
381
|
+
flock_core-0.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|