fluxloop-cli 0.2.7__tar.gz → 0.2.9__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.
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/PKG-INFO +1 -1
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/__init__.py +1 -1
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/arg_binder.py +26 -4
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/templates.py +1 -1
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli.egg-info/PKG-INFO +1 -1
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/pyproject.toml +1 -1
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/README.md +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/__init__.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/config.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/generate.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/init.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/parse.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/record.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/run.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/commands/status.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/config_loader.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/config_schema.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/constants.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/input_generator.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/llm_generator.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/main.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/project_paths.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/runner.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/target_loader.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli/validators.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli.egg-info/SOURCES.txt +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli.egg-info/dependency_links.txt +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli.egg-info/entry_points.txt +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli.egg-info/requires.txt +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/fluxloop_cli.egg-info/top_level.txt +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/setup.cfg +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/tests/test_arg_binder.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/tests/test_config_command.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/tests/test_input_generator.py +0 -0
- {fluxloop_cli-0.2.7 → fluxloop_cli-0.2.9}/tests/test_target_loader.py +0 -0
|
@@ -141,7 +141,9 @@ class ArgBinder:
|
|
|
141
141
|
callable_markers = {
|
|
142
142
|
key: value
|
|
143
143
|
for key, value in kwargs.items()
|
|
144
|
-
if isinstance(value, str)
|
|
144
|
+
if isinstance(value, str)
|
|
145
|
+
and value.startswith("<")
|
|
146
|
+
and not value.startswith("<repr:")
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
if not callable_markers:
|
|
@@ -206,10 +208,30 @@ class ArgBinder:
|
|
|
206
208
|
|
|
207
209
|
def _set_by_path(self, payload: Dict[str, Any], path: str, value: Any) -> None:
|
|
208
210
|
parts = path.split(".")
|
|
209
|
-
current = payload
|
|
211
|
+
current: Any = payload
|
|
212
|
+
|
|
210
213
|
for key in parts[:-1]:
|
|
211
|
-
current
|
|
212
|
-
|
|
214
|
+
if isinstance(current, list):
|
|
215
|
+
index = self._coerce_list_index(key)
|
|
216
|
+
current = current[index]
|
|
217
|
+
else:
|
|
218
|
+
current = current[key]
|
|
219
|
+
|
|
220
|
+
final_key = parts[-1]
|
|
221
|
+
if isinstance(current, list):
|
|
222
|
+
index = self._coerce_list_index(final_key)
|
|
223
|
+
current[index] = value
|
|
224
|
+
else:
|
|
225
|
+
current[final_key] = value
|
|
226
|
+
|
|
227
|
+
@staticmethod
|
|
228
|
+
def _coerce_list_index(key: str) -> int:
|
|
229
|
+
try:
|
|
230
|
+
return int(key)
|
|
231
|
+
except ValueError as exc:
|
|
232
|
+
raise TypeError(
|
|
233
|
+
"List index segments in override_param_path must be integers"
|
|
234
|
+
) from exc
|
|
213
235
|
|
|
214
236
|
def _resolve_config_target(self) -> Optional[str]:
|
|
215
237
|
runner = self.config.runner
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|