mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-12 04:20:48 +08:00
为自写技能增加隔离目录与默认可用通道。
自动安装/创建的 workspace 技能统一落在 _workspace 目录,并在启用受信开关时自动启用和绑定到 manager+各专家;同时补充 API 返回状态与回归测试。 Made-with: Cursor
This commit is contained in:
parent
726e043a3a
commit
5f68afa963
5 changed files with 139 additions and 6 deletions
|
|
@ -210,6 +210,9 @@ class AdminSkillsApiTests(unittest.TestCase):
|
|||
self.assertEqual(c.status_code, 200, c.text)
|
||||
body = c.json() or {}
|
||||
self.assertTrue(body.get("ok"))
|
||||
result_create = body.get("result") if isinstance(body.get("result"), dict) else {}
|
||||
self.assertIn("auto_enabled", result_create)
|
||||
self.assertIn("binding_applied_roles", result_create)
|
||||
|
||||
r1 = self.client.post(
|
||||
"/admin/api/skills/test-run",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue