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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| _filters | router.py | same file |
| _get_repo | router.py | same file |
| _learning_job_out | router.py | same file |
| _mode_unavailable | router.py | same file |
| _repo_ids | router.py | same file |
| cancel_job | router.py | same file |
| delete_repository | router.py | same file |
| get_job | router.py | same file |
| get_repository | router.py | same file |
| job_out | router.py | same file |
| list_jobs | router.py | same file |
| list_learning_jobs | router.py | same file |
| list_repositories | router.py | same file |
| lookup_symbol | router.py | same file |
| memory_brief | router.py | same file |
| memory_items | router.py | same file |
| memory_search | router.py | same file |
| memory_skill | router.py | same file |
| memory_skills | router.py | same file |
| queue_learning | router.py | same file |
| retrieve_context | router.py | same file |
| review_memory_item | router.py | same file |
| search_code | router.py | same file |
| submit_repository | router.py | same file |
| system_status | router.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| codeintel | __init__.py | through an import |
| context | context.py | through an import |
| embeddings | embeddings.py | through an import |
| git_source | git_source.py | through an import |
| jobs | jobs.py | through an import |
| notify | notify.py | through an import |
| parsers | __init__.py | through an import |
| retrieval | retrieval.py | through an import |
| runtime | runtime.py | through an import |
| source | source.py | through an import |
| symbols | symbols.py | through an import |
| auth | auth.py | through 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
