mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-12 05:30:48 +08:00
重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
This commit is contained in:
parent
ba3836f00f
commit
4a23b715a2
498 changed files with 2760 additions and 2200 deletions
|
|
@ -6,7 +6,7 @@ import unittest
|
|||
from pathlib import Path
|
||||
|
||||
from oclaw.platform.persistence.sqlite_store import SqliteStore
|
||||
from oclaw.tools.mcp.adapter import materialize_mcp_tools, materialize_mcp_tools_for_specialist
|
||||
from oclaw.runtime.tools.mcp.adapter import materialize_mcp_tools, materialize_mcp_tools_for_specialist
|
||||
|
||||
|
||||
class McpAdapterTests(unittest.TestCase):
|
||||
|
|
@ -147,7 +147,7 @@ class McpAdapterTests(unittest.TestCase):
|
|||
self.assertIn("mcp__echo-b__ping", names)
|
||||
|
||||
def test_mcp_local_env_file_path_prefers_src_local(self) -> None:
|
||||
from oclaw.ops import mcp_env
|
||||
from oclaw.runtime.operations import mcp_env
|
||||
|
||||
p = mcp_env.mcp_local_env_file_path()
|
||||
self.assertEqual(p.name, "mcp_local.env")
|
||||
|
|
@ -156,7 +156,7 @@ class McpAdapterTests(unittest.TestCase):
|
|||
self.assertIn("_local", parts)
|
||||
|
||||
def test_mcp_env_allowlist_keys_default_when_unset(self) -> None:
|
||||
from oclaw.ops import mcp_env
|
||||
from oclaw.runtime.operations import mcp_env
|
||||
|
||||
old = os.environ.pop("OPS_MCP_ENV_ALLOWLIST", None)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue