Name the records mark_trusted adds
This commit was merged in pull request #121.
This commit is contained in:
@@ -129,7 +129,8 @@ def mark_trusted(config, roots):
|
||||
if (wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None)) is not None:
|
||||
return Failure(f"projects[{json.dumps(wrong)}] is not an object")
|
||||
untrusted = [path for path in roots if not projects.get(path, {}).get("hasTrustDialogAccepted")]
|
||||
return {**config, "projects": {**projects, **{path: {**projects.get(path, {}), "hasTrustDialogAccepted": True} for path in untrusted}}}, untrusted
|
||||
marked = {path: {**projects.get(path, {}), "hasTrustDialogAccepted": True} for path in untrusted}
|
||||
return {**config, "projects": {**projects, **marked}}, untrusted
|
||||
|
||||
|
||||
# <model catalog>/*.json: {"fetchedAt": 1790618085238, "catalog": {"config": {"models": [{"id": "claude-opus-5-5", "name": "Opus 5.5", ...}]}}}
|
||||
|
||||
Reference in New Issue
Block a user