Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / module

router

modules.code.router

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 symbols

Loading

Contains (25)
SymbolFileResolved by
_filtersrouter.pysame file
_get_reporouter.pysame file
_learning_job_outrouter.pysame file
_mode_unavailablerouter.pysame file
_repo_idsrouter.pysame file
cancel_jobrouter.pysame file
delete_repositoryrouter.pysame file
get_jobrouter.pysame file
get_repositoryrouter.pysame file
job_outrouter.pysame file
list_jobsrouter.pysame file
list_learning_jobsrouter.pysame file
list_repositoriesrouter.pysame file
lookup_symbolrouter.pysame file
memory_briefrouter.pysame file
memory_itemsrouter.pysame file
memory_searchrouter.pysame file
memory_skillrouter.pysame file
memory_skillsrouter.pysame file
queue_learningrouter.pysame file
retrieve_contextrouter.pysame file
review_memory_itemrouter.pysame file
search_coderouter.pysame file
submit_repositoryrouter.pysame file
system_statusrouter.pysame file
Imports (12)
SymbolFileResolved by
codeintel__init__.pythrough an import
contextcontext.pythrough an import
embeddingsembeddings.pythrough an import
git_sourcegit_source.pythrough an import
jobsjobs.pythrough an import
notifynotify.pythrough an import
parsers__init__.pythrough an import
retrievalretrieval.pythrough an import
runtimeruntime.pythrough an import
sourcesource.pythrough an import
symbolssymbols.pythrough an import
authauth.pythrough an import
modules.code.routerbackend/app/modules/code/router.py, lines 1–40Open source
"""Code-intelligence API.=======  ==================================  ======  ==============================Method   Path                                Scope   Purpose=======  ==================================  ======  ==============================POST     /api/v1/repositories                admin   queue an ingestion jobGET      /api/v1/repositories                read    indexed repositoriesGET      /api/v1/repositories/{id}           read    one repository + index statsDELETE   /api/v1/repositories/{id}           admin   remove a repository's indexGET      /api/v1/ingestion/jobs              read    recent jobsGET      /api/v1/ingestion/jobs/{id}         read    job statePOST     /api/v1/ingestion/jobs/{id}/cancel  admin   cancel a queued jobPOST     /api/v1/search/code                 read    chunk-level code searchPOST     /api/v1/search/symbol               read    definition lookup + call graphPOST     /api/v1/context/retrieve            read    assistant context assemblyPOST     /api/v1/repositories/{id}/learn     admin   queue a learning job (run on the Mac)GET      /api/v1/learning/jobs               read    recent learning jobsGET      /api/v1/memory/brief                read    a repository's brief (core memory)POST     /api/v1/memory/search               read    search active memory itemsGET      /api/v1/memory/items                read    memory items by status / kindPATCH    /api/v1/memory/items/{id}           admin   accept / reject / archive / restoreGET      /api/v1/memory/skills               read    playbooks (level 0)GET      /api/v1/memory/skills/{name}        read    one playbook (levels 1-2)GET      /api/v1/system/status               read    backends, grammars, config=======  ==================================  ======  =============================="""from __future__ import annotationsimport loggingimport uuidfrom fastapi import APIRouter, Depends, HTTPException, Query, Response, statusfrom sqlalchemy import delete, func, select, textfrom sqlalchemy.orm import Sessionfrom ...codeintel import jobsfrom ...codeintel.context import (    ContextRequest,    RepositoryNotFound,

Shows the first 40 of 419 lines. The rest is on GitHub at this commit.

What the index recorded

Signature
module backend.app.modules.code.router
File
backend/app/modules/code/router.py
Lines
1–419
Parser
python-ast
Git blob
d914024790aaafe7234adda557677b76e4ad73d5
Call sites
2 named, 0 resolved, 2 left unlinked
Outside this subset
9 more edges reach code outside the graph shown here

Read it on GitHub at this commit