33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# =============================================================================
|
|
# registry.sh - Knowledge Genome Registry
|
|
# Dynamic paths and genome definitions.
|
|
# =============================================================================
|
|
|
|
# Guard against double sourcing
|
|
[[ -n "${_REGISTRY_LOADED:-}" ]] && return
|
|
_REGISTRY_LOADED=1
|
|
|
|
# Resolve project root relative to this file
|
|
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Dynamic paths
|
|
WORK_DIR="${PROJECT_ROOT}"
|
|
KEYS_DIR="${WORK_DIR}/keys"
|
|
TEMPLATES_DIR="${PROJECT_ROOT}/templates"
|
|
LIB_DIR="${PROJECT_ROOT}/lib"
|
|
PROVIDERS_DIR="${PROJECT_ROOT}/providers"
|
|
|
|
# --- GENOME REGISTRY ---
|
|
# Format: "name|description|linked_repo|cross_source"
|
|
# - linked_repo: OPTIONAL. Leave empty for knowledge-only genomes.
|
|
# - cross_source: "yes" or "no" (default: no). Controls whether the collector
|
|
# may read this genome as a source during cross-genome pulls.
|
|
#
|
|
# HOW TO CUSTOMIZE:
|
|
# Replace the placeholder below with your actual genome domains.
|
|
# Example: "genome-work|Work notes and architecture logs||no"
|
|
# "genome-finance|Personal finance|user/repo-finance|no"
|
|
GENOMES=(
|
|
"genome-example|Template genome description for knowledge management||no"
|
|
)
|