quantalogic 0.80__py3-none-any.whl → 0.93__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.
Files changed (55) hide show
  1. quantalogic/flow/__init__.py +16 -34
  2. quantalogic/main.py +11 -6
  3. quantalogic/tools/tool.py +8 -922
  4. quantalogic-0.93.dist-info/METADATA +475 -0
  5. {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/RECORD +8 -54
  6. quantalogic/codeact/TODO.md +0 -14
  7. quantalogic/codeact/__init__.py +0 -0
  8. quantalogic/codeact/agent.py +0 -478
  9. quantalogic/codeact/cli.py +0 -50
  10. quantalogic/codeact/cli_commands/__init__.py +0 -0
  11. quantalogic/codeact/cli_commands/create_toolbox.py +0 -45
  12. quantalogic/codeact/cli_commands/install_toolbox.py +0 -20
  13. quantalogic/codeact/cli_commands/list_executor.py +0 -15
  14. quantalogic/codeact/cli_commands/list_reasoners.py +0 -15
  15. quantalogic/codeact/cli_commands/list_toolboxes.py +0 -47
  16. quantalogic/codeact/cli_commands/task.py +0 -215
  17. quantalogic/codeact/cli_commands/tool_info.py +0 -24
  18. quantalogic/codeact/cli_commands/uninstall_toolbox.py +0 -43
  19. quantalogic/codeact/config.yaml +0 -21
  20. quantalogic/codeact/constants.py +0 -9
  21. quantalogic/codeact/events.py +0 -85
  22. quantalogic/codeact/examples/README.md +0 -342
  23. quantalogic/codeact/examples/agent_sample.yaml +0 -29
  24. quantalogic/codeact/executor.py +0 -186
  25. quantalogic/codeact/history_manager.py +0 -94
  26. quantalogic/codeact/llm_util.py +0 -57
  27. quantalogic/codeact/plugin_manager.py +0 -92
  28. quantalogic/codeact/prompts/error_format.j2 +0 -11
  29. quantalogic/codeact/prompts/generate_action.j2 +0 -77
  30. quantalogic/codeact/prompts/generate_program.j2 +0 -52
  31. quantalogic/codeact/prompts/response_format.j2 +0 -11
  32. quantalogic/codeact/react_agent.py +0 -318
  33. quantalogic/codeact/reasoner.py +0 -185
  34. quantalogic/codeact/templates/toolbox/README.md.j2 +0 -10
  35. quantalogic/codeact/templates/toolbox/pyproject.toml.j2 +0 -16
  36. quantalogic/codeact/templates/toolbox/tools.py.j2 +0 -6
  37. quantalogic/codeact/templates.py +0 -7
  38. quantalogic/codeact/tools_manager.py +0 -258
  39. quantalogic/codeact/utils.py +0 -62
  40. quantalogic/codeact/xml_utils.py +0 -126
  41. quantalogic/flow/flow.py +0 -1070
  42. quantalogic/flow/flow_extractor.py +0 -783
  43. quantalogic/flow/flow_generator.py +0 -322
  44. quantalogic/flow/flow_manager.py +0 -676
  45. quantalogic/flow/flow_manager_schema.py +0 -287
  46. quantalogic/flow/flow_mermaid.py +0 -365
  47. quantalogic/flow/flow_validator.py +0 -479
  48. quantalogic/flow/flow_yaml.linkedin.md +0 -31
  49. quantalogic/flow/flow_yaml.md +0 -767
  50. quantalogic/flow/templates/prompt_check_inventory.j2 +0 -1
  51. quantalogic/flow/templates/system_check_inventory.j2 +0 -1
  52. quantalogic-0.80.dist-info/METADATA +0 -900
  53. {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/LICENSE +0 -0
  54. {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/WHEEL +0 -0
  55. {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/entry_points.txt +0 -0
@@ -1,40 +1,22 @@
1
- """
2
- Flow Package Initialization
1
+ """Stub alias for backwards compatibility: re-export Flow API from the quantalogic_flow package."""
2
+ from quantalogic_flow import (
3
+ Nodes,
4
+ Workflow,
5
+ WorkflowEngine,
6
+ WorkflowManager,
7
+ extract_workflow_from_file,
8
+ generate_executable_script,
9
+ generate_mermaid_diagram,
10
+ validate_workflow_definition,
11
+ )
3
12
 
4
- This module initializes the flow package and provides package-level imports.
5
- Now supports nested workflows for hierarchical flow definitions.
6
-
7
- Key Visualization Utilities:
8
- - generate_mermaid_diagram(): Convert workflow definitions to visual Mermaid flowcharts
9
- - Supports pastel-colored node styling
10
- - Generates interactive, readable workflow diagrams
11
- - Handles complex workflows with multiple node types
12
-
13
- - Generates descriptive labels
14
- - Supports conditional node detection
15
- """
16
-
17
- from loguru import logger
18
-
19
- # Expose key components for easy importing
20
- from .flow import Nodes, Workflow, WorkflowEngine
21
- from .flow_extractor import extract_workflow_from_file
22
- from .flow_generator import generate_executable_script
23
- from .flow_manager import WorkflowManager
24
- from .flow_mermaid import generate_mermaid_diagram
25
- from .flow_validator import validate_workflow_definition
26
-
27
- # Define which symbols are exported when using `from flow import *`
28
13
  __all__ = [
29
- "WorkflowManager",
14
+ "extract_workflow_from_file",
15
+ "generate_executable_script",
16
+ "generate_mermaid_diagram",
30
17
  "Nodes",
18
+ "validate_workflow_definition",
31
19
  "Workflow",
32
20
  "WorkflowEngine",
33
- "generate_mermaid_diagram",
34
- "extract_workflow_from_file",
35
- "generate_executable_script",
36
- "validate_workflow_definition"
21
+ "WorkflowManager",
37
22
  ]
38
-
39
- # Package-level logger configuration
40
- logger.info("Initializing Quantalogic Flow Package")
quantalogic/main.py CHANGED
@@ -18,6 +18,11 @@ load_dotenv()
18
18
 
19
19
  # Configure logger
20
20
  logger.remove()
21
+ logger.add(
22
+ sys.stderr,
23
+ level="ERROR", # Changed from WARNING to ERROR
24
+ format="<green>{time:YYYY-MM-DD HH:mm:ss}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>"
25
+ )
21
26
 
22
27
  from rich.console import Console # noqa: E402
23
28
  from rich.panel import Panel # noqa: E402
@@ -98,9 +103,9 @@ def restore_terminal(old_settings):
98
103
  )
99
104
  @click.option(
100
105
  "--log",
101
- type=click.Choice(["info", "debug", "warning"]),
106
+ type=click.Choice(["info", "debug", "warning", "error"]),
102
107
  default="info",
103
- help="Set logging level (info/debug/warning).",
108
+ help="Set logging level (info/debug/warning/error).",
104
109
  )
105
110
  @click.option("--verbose", is_flag=True, help="Enable verbose output.")
106
111
  @click.option("--mode", type=click.Choice(AGENT_MODES), default="basic", help="Agent mode (code/search/full/chat).")
@@ -196,9 +201,9 @@ def cli(
196
201
  @click.option("--mode", type=click.Choice(AGENT_MODES), default="basic", help="Agent mode (code/search/full/chat).")
197
202
  @click.option(
198
203
  "--log",
199
- type=click.Choice(["info", "debug", "warning"]),
204
+ type=click.Choice(["info", "debug", "warning", "error"]),
200
205
  default="info",
201
- help="Set logging level (info/debug/warning).",
206
+ help="Set logging level (info/debug/warning/error).",
202
207
  )
203
208
  @click.option(
204
209
  "--vision-model-name",
@@ -318,9 +323,9 @@ def list_models(search: Optional[str] = None):
318
323
  )
319
324
  @click.option(
320
325
  "--log",
321
- type=click.Choice(["info", "debug", "warning"]),
326
+ type=click.Choice(["info", "debug", "warning", "error"]),
322
327
  default="info",
323
- help="Set logging level (info/debug/warning).",
328
+ help="Set logging level (info/debug/warning/error).",
324
329
  )
325
330
  @click.option("--verbose", is_flag=True, help="Enable verbose output.")
326
331
  @click.option(