Return the install-script command that installs dcode extras. Args: extras: Extra names to include in the tool reinstall. Validated by `_dcode_extras_requirement`, which raises `ValueError` on any name that fails PEP 508 validation. Returns: Shell co
(extras: Iterable[str])
| 2385 | |
| 2386 | |
| 2387 | def install_extras_command(extras: Iterable[str]) -> str: |
| 2388 | """Return the install-script command that installs dcode extras. |
| 2389 | |
| 2390 | Args: |
| 2391 | extras: Extra names to include in the tool reinstall. Validated by |
| 2392 | `_dcode_extras_requirement`, which raises `ValueError` on any name |
| 2393 | that fails PEP 508 validation. |
| 2394 | |
| 2395 | Returns: |
| 2396 | Shell command string suitable for display in error messages. |
| 2397 | """ |
| 2398 | names = sorted(extras) |
| 2399 | _dcode_extras_requirement(names) |
| 2400 | if not names: |
| 2401 | return INSTALL_SCRIPT_COMMAND |
| 2402 | extras_env = shlex.quote(",".join(names)) |
| 2403 | return ( |
| 2404 | f"curl -LsSf https://langch.in/dcode | DEEPAGENTS_CODE_EXTRAS={extras_env} bash" |
| 2405 | ) |
| 2406 | |
| 2407 | |
| 2408 | def install_extra_command( |
searching dependent graphs…