mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
feat: 更新 knowledge-base-manager skill,添加完整 ID 映射和严格目录限制
This commit is contained in:
parent
acfb2cf73b
commit
807679aaaa
21 changed files with 753 additions and 1580 deletions
|
|
@ -155,6 +155,14 @@ class McpAdapterTests(unittest.TestCase):
|
|||
self.assertIn("oclaw", parts)
|
||||
self.assertIn("_local", parts)
|
||||
|
||||
def test_trilium_env_aliases_from_legacy_names(self) -> None:
|
||||
from runtime.operations.mcp_env import _apply_trilium_env_aliases
|
||||
|
||||
vals = {"TRILIUM_URL": "http://127.0.0.1:37840/etapi", "TRILIUM_TOKEN": "secret"}
|
||||
_apply_trilium_env_aliases(vals)
|
||||
self.assertEqual(vals["TRILIUM_API_URL"], "http://127.0.0.1:37840/etapi")
|
||||
self.assertEqual(vals["TRILIUM_API_TOKEN"], "secret")
|
||||
|
||||
def test_mcp_env_allowlist_keys_default_when_unset(self) -> None:
|
||||
from runtime.operations import mcp_env
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue