fluxloop-cli 0.2.6__tar.gz → 0.2.7__tar.gz

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 fluxloop-cli might be problematic. Click here for more details.

Files changed (35) hide show
  1. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/PKG-INFO +1 -1
  2. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/__init__.py +1 -1
  3. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/target_loader.py +27 -5
  4. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/templates.py +1 -0
  5. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli.egg-info/PKG-INFO +1 -1
  6. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/pyproject.toml +1 -1
  7. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/README.md +0 -0
  8. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/arg_binder.py +0 -0
  9. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/__init__.py +0 -0
  10. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/config.py +0 -0
  11. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/generate.py +0 -0
  12. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/init.py +0 -0
  13. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/parse.py +0 -0
  14. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/record.py +0 -0
  15. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/run.py +0 -0
  16. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/commands/status.py +0 -0
  17. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/config_loader.py +0 -0
  18. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/config_schema.py +0 -0
  19. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/constants.py +0 -0
  20. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/input_generator.py +0 -0
  21. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/llm_generator.py +0 -0
  22. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/main.py +0 -0
  23. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/project_paths.py +0 -0
  24. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/runner.py +0 -0
  25. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli/validators.py +0 -0
  26. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli.egg-info/SOURCES.txt +0 -0
  27. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli.egg-info/dependency_links.txt +0 -0
  28. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli.egg-info/entry_points.txt +0 -0
  29. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli.egg-info/requires.txt +0 -0
  30. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/fluxloop_cli.egg-info/top_level.txt +0 -0
  31. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/setup.cfg +0 -0
  32. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/tests/test_arg_binder.py +0 -0
  33. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/tests/test_config_command.py +0 -0
  34. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/tests/test_input_generator.py +0 -0
  35. {fluxloop_cli-0.2.6 → fluxloop_cli-0.2.7}/tests/test_target_loader.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fluxloop-cli
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: FluxLoop CLI for running agent simulations
5
5
  Author-email: FluxLoop Team <team@fluxloop.dev>
6
6
  License: Apache-2.0
@@ -2,7 +2,7 @@
2
2
  FluxLoop CLI - Command-line interface for running agent simulations.
3
3
  """
4
4
 
5
- __version__ = "0.2.6"
5
+ __version__ = "0.2.7"
6
6
 
7
7
  from .main import app
8
8
 
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import importlib
6
6
  import sys
7
7
  from pathlib import Path
8
- from typing import Any, Callable, Optional
8
+ from typing import Any, Callable, Optional, List
9
9
 
10
10
  from fluxloop.schemas import RunnerConfig
11
11
 
@@ -21,11 +21,16 @@ class TargetLoader:
21
21
  """Return a callable based on the configured target."""
22
22
 
23
23
  work_dir = self._resolve_working_directory()
24
- remove_path = False
24
+ added_paths: list[str] = []
25
25
 
26
26
  if work_dir and work_dir not in sys.path:
27
27
  sys.path.insert(0, work_dir)
28
- remove_path = True
28
+ added_paths.append(work_dir)
29
+
30
+ for extra in self._resolve_python_paths():
31
+ if extra not in sys.path:
32
+ sys.path.insert(0, extra)
33
+ added_paths.append(extra)
29
34
 
30
35
  try:
31
36
  if self.config.target:
@@ -34,8 +39,9 @@ class TargetLoader:
34
39
  module = importlib.import_module(self.config.module_path)
35
40
  return getattr(module, self.config.function_name)
36
41
  finally:
37
- if remove_path:
38
- sys.path.remove(work_dir)
42
+ for path_entry in added_paths:
43
+ if path_entry in sys.path:
44
+ sys.path.remove(path_entry)
39
45
 
40
46
  def _resolve_working_directory(self) -> str | None:
41
47
  if not self.config.working_directory:
@@ -50,6 +56,22 @@ class TargetLoader:
50
56
  path = raw_path
51
57
  return str(path)
52
58
 
59
+ def _resolve_python_paths(self) -> List[str]:
60
+ resolved: List[str] = []
61
+ entries = getattr(self.config, "python_path", []) or []
62
+
63
+ for entry in entries:
64
+ raw_path = Path(entry)
65
+ if not raw_path.is_absolute():
66
+ base = self.source_dir if self.source_dir else Path.cwd()
67
+ raw_path = (base / raw_path).resolve()
68
+ else:
69
+ raw_path = raw_path.expanduser().resolve()
70
+
71
+ resolved.append(str(raw_path))
72
+
73
+ return resolved
74
+
53
75
  def _load_from_target(self, target: str) -> Callable:
54
76
  """Resolve a callable from target string.
55
77
 
@@ -108,6 +108,7 @@ def create_simulation_config(project_name: str) -> str:
108
108
  function_name: "run"
109
109
  target: "examples.simple_agent:run"
110
110
  working_directory: .
111
+ python_path: []
111
112
  timeout_seconds: 120
112
113
  max_retries: 3
113
114
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fluxloop-cli
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: FluxLoop CLI for running agent simulations
5
5
  Author-email: FluxLoop Team <team@fluxloop.dev>
6
6
  License: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fluxloop-cli"
7
- version = "0.2.6"
7
+ version = "0.2.7"
8
8
  description = "FluxLoop CLI for running agent simulations"
9
9
  authors = [
10
10
  {name = "FluxLoop Team", email = "team@fluxloop.dev"}
File without changes
File without changes