style: 项目重构

1.项目改名为kilostar(千星)
2.后端部分进行大规模重构
3.node功能进行大规模重新设计
This commit is contained in:
2026-05-11 15:29:16 +00:00
parent 2d8571dee3
commit ee9bbbf676
134 changed files with 2190 additions and 2503 deletions
@@ -1,7 +1,7 @@
import pytest
from unittest.mock import MagicMock, patch
from pretor.adapter.model_adapter.agent_factory import AgentFactory
from pretor.utils.error import ModelNotExistError
from kilostar.adapter.model_adapter.agent_factory import AgentFactory
from kilostar.utils.error import ModelNotExistError
def test_create_agent_success_real():
@@ -11,12 +11,12 @@ def test_create_agent_success_real():
mock_provider.provider_apikey = "key"
mock_provider.provider_url = "url"
with patch("pretor.adapter.model_adapter.agent_factory.Agent") as mock_agent_cls:
with patch("kilostar.adapter.model_adapter.agent_factory.Agent") as mock_agent_cls:
with patch(
"pretor.adapter.model_adapter.agent_factory.OpenAIChatModel"
"kilostar.adapter.model_adapter.agent_factory.OpenAIChatModel"
) as mock_model_cls:
with patch(
"pretor.adapter.model_adapter.agent_factory.OpenAIProvider"
"kilostar.adapter.model_adapter.agent_factory.OpenAIProvider"
) as mock_provider_cls:
factory = AgentFactory()
agent = factory.create_agent(