feat: add official Codex skill and harden task execution

Install and update artemis-use with task diagnostics and plugin guidance. Preserve cross-device file receipts, review canonical reports, guard stage transitions and reduce small history summaries. Improve exploration lifecycle, request recovery and browser live connections.
This commit is contained in:
chenmingxuan committed 2026-10-18 14:18:37 +08:00
1 parent 2328a4df0c
commit e1ea099592
128 files changed
+4944 -700

No files matched your search

+23
View File
@@ -17,11 +17,34 @@ from artemis.utils.notes import (
list_notes_info,
read_note_content,
save_note_content,
save_verified_note,
update_note_content,
)
import pytest
@pytest.mark.parametrize("content", ["# 报告\n结果\n", "line\r\nsecond", ""])
def test_verified_note_receipt_matches_actual_file_bytes(tmp_path, content):
import hashlib
receipt = save_verified_note(tmp_path, "report.md", content)
data = (tmp_path / receipt["path"]).read_bytes()
assert receipt["path"] == "notes/report.md"
assert receipt["verified"] is True and receipt["bytes"] == len(data)
assert receipt["sha256"] == hashlib.sha256(data).hexdigest()
def test_verified_note_does_not_confirm_incomplete_write(tmp_path, monkeypatch):
from artemis.utils import notes
def partial_write(base_dir, key, content):
save_note_content(base_dir, key, content[:1])
monkeypatch.setattr(notes, "save_note_content", partial_write)
with pytest.raises(OSError, match="读回不一致"):
save_verified_note(tmp_path, "report", "完整报告")
def test_list_notes_info(tmp_path):
base_dir = tmp_path