fix(ops): centralize INVENTORY_PATH in src/config.py to resolve import errors across scripts

This commit is contained in:
Nubenetes Bot
2026-05-17 23:21:35 +02:00
parent b0284409d2
commit 416e9c273d
4 changed files with 6 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import yaml
import hashlib
from datetime import datetime
from typing import List, Dict, Optional, Tuple
from src.config import GH_TOKEN, TARGET_REPO, GEMINI_API_KEY, NUBENETES_CATEGORIES, MADRID_TZ
from src.config import GH_TOKEN, TARGET_REPO, GEMINI_API_KEY, NUBENETES_CATEGORIES, MADRID_TZ, INVENTORY_PATH
from src.gitops_manager import RepositoryController
from src.gemini_utils import call_gemini_with_retry, normalize_url, clean_toc_text
from src.logger import log_event
@@ -186,8 +186,6 @@ async def evaluate_extracted_assets(raw_assets: List[Dict]) -> Dict[str, Dict]:
return evaluations
INVENTORY_PATH = "data/inventory.yaml"
class AgenticCurator:
def __init__(self):
self.git_controller = RepositoryController(GH_TOKEN, TARGET_REPO)

View File

@@ -38,6 +38,9 @@ GEMINI_API_VERSION = "v1beta"
TARGET_REPO = "nubenetes/awesome-kubernetes"
# Single Source of Truth for Database Location
INVENTORY_PATH = "data/inventory.yaml"
NUBENETES_CATEGORIES = [
'ChromeDevTools', 'GoogleCloudPlatform', 'about', 'ai-agents-mcp', 'ai', 'angular',
'ansible', 'api', 'appointment-scheduling', 'argo', 'aws-architecture', 'aws-backup',

View File

@@ -3,9 +3,9 @@ import re
import subprocess
import yaml
from datetime import datetime
from src.config import INVENTORY_PATH
# Unified Path Config
INVENTORY_PATH = "data/inventory.yaml"
V1_DIR = "docs"
V2_DIR = "v2-docs"

View File

@@ -4,8 +4,8 @@ import re
from datetime import datetime
from src.logger import log_event
from src.gemini_utils import normalize_url
from src.config import INVENTORY_PATH
INVENTORY_PATH = "data/inventory.yaml"
V1_DIR = "docs"
V2_DIR = "v2-docs"
SPECIAL_ASSETS_PATH = "data/special_assets.yaml"