{% extends "base.html" %} {% block title %}{{ source.name }} · LynxManager{% endblock %} {% block content %}

{{ source.name }}

{{ source.type }} {% if source.graph %} Graph ON {% endif %}
{% if source.locked %} Locked {% endif %} {% if source.drift_severity == "critical" %} Out of sync {% elif source.drift_severity == "warning" %} drift: warning {% endif %} Try search →
Status
{% if source.path %}
Folder
{{ source.path }}
{% elif source.url %}
URL
{{ source.url }}
{% endif %} {% if source.chunk_count is not none %}
Indexed chunks
{{ source.chunk_count }}
{% endif %} {% if source.last_update %}
Last updated
{{ source.last_update[:19] | replace('T', ' ') }}
{% endif %} {% if source.last_commit %}
Last commit
{{ source.last_commit[:12] }}
{% endif %}
{% with s = source %}{% include "_serving_row.html" %}{% endwith %}
Drift
{{ source.drift_severity or 'none' }}
{% if source.graph %}
Code knowledge graph
Symbols (nodes)
{{ source.graph.nodes }}
Relationships (edges)
{{ source.graph.edges }}
{% if source.graph.files_indexed is not none %}
Files analyzed
{{ source.graph.files_indexed }}
{% endif %} {% if source.graph.last_update %}
Last graph update
{{ source.graph.last_update[:19] | replace('T', ' ') }}
{% endif %}
{% elif source.type == 'codebase' %} {# Only a codebase source has a graph to enable; docs and PDFs have none. #}
Knowledge graph disabled
Enable graph.enabled = true in Config to unlock call-graph, inheritance, and blast-radius queries.
{% endif %}
Rebuild index
lynx build --source {{ source.name }}

Re-scans changed files and updates the local search index and knowledge graph.

{% if source.locked %}
Another Lynx process (usually your AI editor) is currently writing to this index. Close it before triggering a manual rebuild.
{% endif %}
{# A build already running (the one Add source starts, or another tab's) shows here on arrival instead of an empty slot. #}
{{ running_job | safe if running_job else "" }}
{# Remove: DELETE /api/sources/{name} existed with no button, so taking a source out meant editing config.json by hand. #}
Remove this source

Takes it out of config.json. Your files are not touched. Deleting the index too frees its disk space; adding the source again rebuilds it.

{% endblock %}