{% extends "base.html" %} {% from "_page_header.html" import page_header %} {% from "_components.html" import field %} {% block content %} {{ page_header(title, "A source is a connector-backed origin of documents for one knowledge space. Folder and Git sources are read by the worker from paths available inside its container; nothing here stores credentials.") }}
{% if form_error %} {% endif %} {% call field("name", "Name", "A human-readable name shown everywhere a citation or document refers to this source.") %} {% endcall %} {% if source_id %}
{% call field("kind_readonly", "Type") %} {% endcall %} {% call field("space_readonly", "Knowledge space") %} {% set names = dict(spaces) %} {% endcall %}
{% else %}
{% call field("kind", "Type") %} {% endcall %} {% call field("space_id", "Knowledge space", "Every document from this source lands in this space and inherits its access grants.") %} {% endcall %}
{% endif %} {% call field("sync_interval_minutes", "Sync every (minutes)", "Leave blank to sync only when you press Sync now. Between 5 minutes and 30 days; a sync walks the whole tree or repository, so anything tighter mostly rediscovers content that has not changed.") %} {% endcall %}
Folder settings {% call field("root", "Root path", "Absolute path as mounted inside the worker container, e.g. /mnt/sources/runbooks. Symlinks and traversal are rejected.") %} {% endcall %}
Git settings {% call field("repository", "Repository", "Identifier of the repository (for provenance only; the worker never fetches over the network).") %} {% endcall %}
{% call field("ref", "Branch / ref", "Resolved to a commit at each sync; that commit is recorded on every ingested version.") %} {% endcall %} {% call field("checkout_root", "Local checkout root", "Absolute path of a clone available inside the worker container.") %} {% endcall %}
{% call field("include", "Include paths", "Optional glob patterns, comma-separated (e.g. docs/**, *.md). Empty means everything.") %} {% endcall %} {% call field("exclude", "Exclude paths", "Optional glob patterns, comma-separated (e.g. node_modules/**, *.lock).") %} {% endcall %}
{% call field("trust_level", "Trust level", "Recorded on every chunk; spaces that require trusted content only retrieve trusted_internal/trusted_external.") %} {% endcall %}
Cancel
{% endblock %}