Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
memory_items
modules.code.router.memory_items
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
modules.code.router.memory_itemsbackend/app/modules/code/router.py, lines 382–391Open source
@router.get("/memory/items")def memory_items(repository: str | None = None, status_: str = Query("active", alias="status"), kind: str | None = None, limit: int = Query(100, ge=1, le=1000), db: Session = Depends(get_sync_db)): stmt = select(MemoryItem).where(MemoryItem.status == status_).order_by(MemoryItem.key).limit(limit) if repository: stmt = stmt.where(MemoryItem.repository_id.in_(_repo_ids(db, repository))) if kind: stmt = stmt.where(MemoryItem.kind == kind) return {"items": [recall.item_to_dict(i, full=True) for i in db.execute(stmt).scalars()]}What the index recorded
- Signature
def memory_items(repository: str | None, status_: str, kind: str | None, limit: int, db: Session):- File
backend/app/modules/code/router.py- Lines
- 382–391
- Parser
- python-ast
- Git blob
d914024790aaafe7234adda557677b76e4ad73d5- Call sites
- 10 named, 4 resolved, 6 left unlinked
- Outside this subset
- 3 more edges reach code outside the graph shown here
