(title: str, content: str, folder_id: Optional[str] = None)
| 1014 | for key in missing: |
| 1015 | next_lines.append(f"{key}={_serialize_env_value(updates[key])}") |
| 1016 | |
| 1017 | ENV_PATH.write_text("\n".join(next_lines).rstrip() + "\n", encoding="utf-8") |
| 1018 | |
| 1019 | |
| 1020 | def save_settings(values: Dict[str, Any]) -> Dict[str, Any]: |
| 1021 | updates: Dict[str, str] = {} |
| 1022 | for key, value in (values or {}).items(): |
| 1023 | normalized_key = str(key or "").strip() |
| 1024 | if normalized_key not in EDITABLE_ENV_KEYS: |
| 1025 | continue |
| 1026 | text = str(value or "").strip() |
nothing calls this directly
no outgoing calls
no test coverage detected