Implement scope-derived candidate review infrastructure
This commit is contained in:
parent
f4d782c997
commit
ba2228e889
14 changed files with 1740 additions and 39 deletions
|
|
@ -1212,6 +1212,38 @@ def get_ability_map(
|
|||
raise HTTPException(status_code=404, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@app.get(
|
||||
"/repos/{repository_id}/intent/review",
|
||||
tags=["scope"],
|
||||
)
|
||||
def review_repository_intent(
|
||||
repository_id: int,
|
||||
service: RegistryService = Depends(get_service),
|
||||
) -> dict[str, object]:
|
||||
try:
|
||||
return service.document_review(repository_id, "INTENT.md")
|
||||
except NotFoundError as exc:
|
||||
raise HTTPException(status_code=404, detail=str(exc)) from exc
|
||||
except ValueError as exc:
|
||||
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@app.get(
|
||||
"/repos/{repository_id}/scope/review",
|
||||
tags=["scope"],
|
||||
)
|
||||
def review_repository_scope(
|
||||
repository_id: int,
|
||||
service: RegistryService = Depends(get_service),
|
||||
) -> dict[str, object]:
|
||||
try:
|
||||
return service.document_review(repository_id, "SCOPE.md")
|
||||
except NotFoundError as exc:
|
||||
raise HTTPException(status_code=404, detail=str(exc)) from exc
|
||||
except ValueError as exc:
|
||||
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@app.get(
|
||||
"/repos/{repository_id}/dependency-graph",
|
||||
tags=["visualization"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue