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