Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent c9dd68d890
commit 84aa9a91de
871 changed files with 265870 additions and 27854 deletions
@@ -22,3 +22,22 @@ async def test_manage_skills_requires_action(payload):
"error": "action is required (list|view|view_ref|add|edit|patch|publish|delete|search)",
"exit_code": 1,
}
@pytest.mark.asyncio
async def test_manage_skills_supports_metadata_only_edit(tmp_path, monkeypatch):
monkeypatch.setattr("src.constants.DATA_DIR", str(tmp_path))
created = await do_manage_skills(json.dumps({
"action": "add", "name": "demo-skill", "description": "before",
"procedure": ["verify the change"], "verification": ["description is updated"],
}), owner="test")
assert "error" not in created
edited = await do_manage_skills(json.dumps({
"action": "edit", "name": "demo-skill", "description": "after",
}), owner="test")
assert "error" not in edited
from services.memory.skills import SkillsManager
saved = SkillsManager(str(tmp_path)).load(owner="test")
assert next(skill for skill in saved if skill["name"] == "demo-skill")["description"] == "after"