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(config): point missing-config help messages to openviking.ai docs (#1370)
Ryanbafd3ca3658f59
diff --git a/openviking/server/config.py b/openviking/server/config.pyindex 551141b83..988d7e673 100644--- a/openviking/server/config.py+++ b/openviking/server/config.py@@ -84,7 +84,7 @@ def load_server_config(config_path: Optional[str] = None) -> ServerConfig:raise FileNotFoundError(f"OpenViking configuration file not found.\n"f"Please create {default_path_user} or {default_path_system}, or set {OPENVIKING_CONFIG_ENV}.\n"- f"See: https://openviking.dev/docs/guides/configuration"+ f"See: https://openviking.ai/docs")data = load_json_config(path)diff --git a/openviking_cli/utils/config/config_loader.py b/openviking_cli/utils/config/config_loader.pyindex 4ad5a2079..85626a6d5 100644--- a/openviking_cli/utils/config/config_loader.py+++ b/openviking_cli/utils/config/config_loader.py@@ -121,6 +121,6 @@ def require_config(raise FileNotFoundError(f"OpenViking {purpose} configuration file not found.\n"f"Please create {default_path_user} or {default_path_system}, or set {env_var}.\n"- f"See: https://openviking.dev/docs/guides/configuration"+ f"See: https://openviking.ai/docs")return load_json_config(path)diff --git a/openviking_cli/utils/config/open_viking_config.py b/openviking_cli/utils/config/open_viking_config.pyindex ef4b1ae1a..9d0ee615c 100644--- a/openviking_cli/utils/config/open_viking_config.py+++ b/openviking_cli/utils/config/open_viking_config.py@@ -291,7 +291,7 @@ class OpenVikingConfigSingleton:raise FileNotFoundError(f"OpenViking configuration file not found.\n"f"Please create {default_path_user} or {default_path_system}, or set {OPENVIKING_CONFIG_ENV}.\n"- f"See: https://openviking.dev/docs/guides/configuration"+ f"See: https://openviking.ai/docs")return cls._instance@@ -320,7 +320,7 @@ class OpenVikingConfigSingleton:raise FileNotFoundError(f"OpenViking configuration file not found.\n"f"Please create {default_path_user} or {default_path_system}, or set {OPENVIKING_CONFIG_ENV}.\n"- f"See: https://openviking.dev/docs/guides/configuration"+ f"See: https://openviking.ai/docs")return cls._instancediff --git a/tests/test_config_loader.py b/tests/test_config_loader.pyindex 8f7e1bc18..993d1efc8 100644--- a/tests/test_config_loader.py+++ b/tests/test_config_loader.py@@ -180,3 +180,57 @@ def test_openviking_config_singleton_preserves_value_error_for_bad_config(tmp_pawith pytest.raises(ValueError, match="server"):OpenVikingConfigSingleton.initialize(config_path=str(config_path))OpenVikingConfigSingleton.reset_instance()+++def test_require_config_missing_message_uses_openviking_ai_docs(tmp_path, monkeypatch):+ import openviking_cli.utils.config.config_loader as loader++ monkeypatch.delenv("TEST_MISSING_ENV", raising=False)+ monkeypatch.setattr(loader, "DEFAULT_CONFIG_DIR", tmp_path / "user")+ monkeypatch.setattr(loader, "SYSTEM_CONFIG_DIR", tmp_path / "system")++ with pytest.raises(FileNotFoundError, match=r"https://openviking\.ai/docs"):+ loader.require_config(None, "TEST_MISSING_ENV", "missing.conf", "test")+++def test_load_server_config_missing_message_uses_openviking_ai_docs(tmp_path, monkeypatch):+ import openviking.server.config as server_config++ monkeypatch.delenv("OPENVIKING_CONFIG_FILE", raising=False)+ monkeypatch.setattr(server_config, "DEFAULT_CONFIG_DIR", tmp_path / "user")+ monkeypatch.setattr(server_config, "SYSTEM_CONFIG_DIR", tmp_path / "system")++ with pytest.raises(FileNotFoundError, match=r"https://openviking\.ai/docs"):+ server_config.load_server_config()+++def test_openviking_config_singleton_missing_message_uses_openviking_ai_docs(tmp_path, monkeypatch):+ import openviking_cli.utils.config.open_viking_config as config_module+ from openviking_cli.utils.config.open_viking_config import OpenVikingConfigSingleton++ monkeypatch.delenv("OPENVIKING_CONFIG_FILE", raising=False)+ monkeypatch.setattr(config_module, "DEFAULT_CONFIG_DIR", tmp_path / "user")+ monkeypatch.setattr(config_module, "SYSTEM_CONFIG_DIR", tmp_path / "system")++ OpenVikingConfigSingleton.reset_instance()+ try:+ with pytest.raises(FileNotFoundError, match=r"https://openviking\.ai/docs"):+ OpenVikingConfigSingleton.get_instance()+ finally:+ OpenVikingConfigSingleton.reset_instance()+++def test_openviking_config_singleton_initialize_missing_message_uses_openviking_ai_docs(tmp_path, monkeypatch):+ import openviking_cli.utils.config.open_viking_config as config_module+ from openviking_cli.utils.config.open_viking_config import OpenVikingConfigSingleton++ monkeypatch.delenv("OPENVIKING_CONFIG_FILE", raising=False)+ monkeypatch.setattr(config_module, "DEFAULT_CONFIG_DIR", tmp_path / "user")+ monkeypatch.setattr(config_module, "SYSTEM_CONFIG_DIR", tmp_path / "system")++ OpenVikingConfigSingleton.reset_instance()+ try:+ with pytest.raises(FileNotFoundError, match=r"https://openviking\.ai/docs"):+ OpenVikingConfigSingleton.initialize()+ finally:+ OpenVikingConfigSingleton.reset_instance()