Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(parse): use safe_extract_zip for UnderstandingAPI zip download (#2634)
Evo92646308e712
diff --git a/openviking/parse/understanding_api.py b/openviking/parse/understanding_api.pyindex a644ca8db..1cede3ef3 100644--- a/openviking/parse/understanding_api.py+++ b/openviking/parse/understanding_api.py@@ -26,6 +26,7 @@ import httpxfrom openviking.parse.base import NodeType, ParseResult, ResourceNodefrom openviking.parse.parsers.base_parser import BaseParserfrom openviking.storage.viking_fs import get_viking_fs+from openviking.utils.zip_safe import safe_extract_zipfrom openviking_cli.utils.logger import get_loggerlogger = get_logger(__name__)@@ -460,7 +461,7 @@ class UnderstandingAPI(BaseParser):with tempfile.TemporaryDirectory() as extract_dir:with zipfile.ZipFile(zip_path, "r") as zf:- zf.extractall(extract_dir)+ safe_extract_zip(zf, extract_dir)extract_path = Path(extract_dir)items = [p for p in extract_path.iterdir() if p.name not in {".", ".."}]if len(items) == 1 and items[0].is_dir():