diff --git a/INSTALL_TEST_REPORT.md b/INSTALL_TEST_REPORT.md index a2dfa35..1b72a40 100644 --- a/INSTALL_TEST_REPORT.md +++ b/INSTALL_TEST_REPORT.md @@ -46,7 +46,9 @@ - 用户已授权上传;修复、执行器、skill 快照、脱敏日志及现存游戏截图一起提交。最终推送结果以远端提交核对为准。 - 用户重启 Codex 后,原生 `limbus` 工具与独立 bridge 均已实测恢复。服务重启仍可能关闭旧连接,因此不为了执行器改动重启服务。 -仓库内版本将 Jev 执行器改为相对路径和环境变量凭据,接入现有 `mcp_session.Session`,并用持久保存的白色地图节点截图替换已轮转的旧测试截图。最终仓库回归:40 项全部通过,无跳过;原机器上的执行器源码保留于反馈目录快照,便于对比。测试输出见 `docs/feedback/2026-10-02/test-results.txt`。 +仓库内版本将 Jev 执行器改为相对路径和环境变量凭据,接入现有 `mcp_session.Session`,并用持久保存的白色地图节点截图替换已轮转的旧测试截图。最终仓库回归:41 项全部通过,无跳过;原机器上的执行器源码保留于反馈目录快照,便于对比。测试输出见 `docs/feedback/2026-10-02/test-results.txt`。 + +领取流程补充:助手点击领取后,用户完成回车确认,随后已观察到主界面。代码加入点击领取后按 Enter 的完整动作,新增回归检查;本局不记作完全自动通关。 复测命令: diff --git a/docs/feedback/2026-10-02/README.md b/docs/feedback/2026-10-02/README.md index 11853fe..909b826 100644 --- a/docs/feedback/2026-10-02/README.md +++ b/docs/feedback/2026-10-02/README.md @@ -2,6 +2,8 @@ 此记录来自用户授权的 Windows 后台游戏实测。数据导出时间以 `manifest.json` 为准;本次导出时镜牢仍在第五层推进,未确认最终通关。操作日志保留失败、重复输入和错误选择,不以工具返回 `ok` 代替游戏实际生效。 +后续补充:13:59:23 已观察到第五层“探索完成”,截图见 `final_completion.png`。助手点击“领取”后,由用户按回车确认;14:00:08 已观察到主界面。此局已完成并领取奖励,但含人工纠正,不能记为全自动速通。见 `final_result.json`。下一次固定领取流程已加入“点击领取 → 回车确认”的执行动作与回归检查。 + ## 修复文件 - `lc_mcp/aalc_engine.py`:后台按键保持 0.12 秒后释放;长按拖动与客户区边界检查;按实际截图比例缩放模板,并在异常后恢复原配置与缓存。 @@ -10,7 +12,7 @@ - `lc_mcp/bridge.py`:中文离线错误输出统一 UTF-8。 - `scripts/mcp_probe.py`、`mcp_session.py`、`battle_batch.py`:实际 bridge 握手、复用调用、有界战斗批次。 - `scripts/jev_mirror_agent.py`、`jev_decision_client.mjs`:受限候选动作、Jev 分支决策、固定快捷流程和场景故障修正。 -- `tests/`:真实场景与传输回归;最终 40 项全部通过,详见 `test-results.txt`。 +- `tests/`:真实场景与传输回归;最终 41 项全部通过,详见 `test-results.txt`。 ## 实际问题与反馈 diff --git a/docs/feedback/2026-10-02/final_completion.png b/docs/feedback/2026-10-02/final_completion.png new file mode 100644 index 0000000..ac03e11 Binary files /dev/null and b/docs/feedback/2026-10-02/final_completion.png differ diff --git a/docs/feedback/2026-10-02/final_result.json b/docs/feedback/2026-10-02/final_result.json new file mode 100644 index 0000000..0b5c05f --- /dev/null +++ b/docs/feedback/2026-10-02/final_result.json @@ -0,0 +1,33 @@ +{ + "state": "completed", + "dungeon": "Mirror Dungeon, floor 5 completed", + "completion_evidence": { + "path": "final_completion.png", + "sha256": "51db3623e8099be82331f6981700d3664310892d292a15d1d7228fd72ac42ea6", + "observed_at_local": "2026-10-02T13:59:23+08:00" + }, + "assistant_action": { + "tool": "click", + "x": 1292, + "y": 816, + "target": "领取" + }, + "user_assistance": "User pressed Enter to confirm claim and explicitly requested this sequence for future runs.", + "post_claim_observation": { + "observed_at_local": "2026-10-02T14:00:08+08:00", + "home_buttons": [ + "玻璃窗", + "罪人", + "驾驶席", + "放映室", + "提取", + "自动贩卖机" + ] + }, + "fully_automatic_run": false, + "claims_not_supported": [ + "12-minute clear", + "all final steps performed without user assistance" + ], + "recorded_at_utc": "2026-10-02T06:05:59.003197+00:00" +} \ No newline at end of file diff --git a/docs/feedback/2026-10-02/manifest.json b/docs/feedback/2026-10-02/manifest.json index 47daeaf..c751bcc 100644 --- a/docs/feedback/2026-10-02/manifest.json +++ b/docs/feedback/2026-10-02/manifest.json @@ -1,180 +1,192 @@ -{ - "snapshot_at_utc": "2026-10-02T05:51:37.084985+00:00", - "log_record_counts": { - "agent_log.jsonl": 70, - "lc_agent_log.jsonl": 115, - "jev_mirror_log.jsonl": 273, - "agent_smoke.jsonl": 2, - "lc_agent_smoke.jsonl": 6 - }, - "partial_lines_skipped": {}, - "redaction_count": 0, - "files": [ - { - "path": "logs/agent_log.jsonl", - "source": "{source_root}\\agent_log.jsonl", - "kind": "sanitized_jsonl", - "source_sha256": "043007f37dcea9b8012d332ea4568ad7fec0b0d664f0f6214e752e7cdaeb447b", - "export_sha256": "1a5abcd50ad5449e9e604e0a748ad58defc036ea0e5273aef33e04715fa03c20", - "bytes": 21769 - }, - { - "path": "logs/lc_agent_log.jsonl", - "source": "{source_root}\\lc_agent_log.jsonl", - "kind": "sanitized_jsonl", - "source_sha256": "beeb226bcbf958615f9791ef3d785758b17c94d897148013e1c4bc26319f2cb4", - "export_sha256": "00da17e08a09bc833e3c2e0841e8613acd13642bd74048565328d54c81a3773b", - "bytes": 33848 - }, - { - "path": "logs/jev_mirror_log.jsonl", - "source": "{source_root}\\jev_mirror_log.jsonl", - "kind": "sanitized_jsonl", - "source_sha256": "b3b9e64a647b6ee8e3912d82fc18877caf871e289680f986cdc2f0ac1289b544", - "export_sha256": "2763abd957bcec7cb7ad0b0b9e29ec9f1f09501f44e506f7d359047397d133e0", - "bytes": 95659 - }, - { - "path": "logs/agent_smoke.jsonl", - "source": "{source_root}\\agent_smoke.jsonl", - "kind": "sanitized_jsonl", - "source_sha256": "e23a4202ef43db244d35add355caf8b6cc73b1a601145d1950f79fb8f5110553", - "export_sha256": "5c60a2930ecb98637d069f11dfd8b237953d93ec66e267249121b03e87e599a3", - "bytes": 546 - }, - { - "path": "logs/lc_agent_smoke.jsonl", - "source": "{source_root}\\lc_agent_smoke.jsonl", - "kind": "sanitized_jsonl", - "source_sha256": "1b30816d1df59bd30ed6bfd04e5c2d3d08e2de48d45306574489a031b8302e7d", - "export_sha256": "3d92086aca23c7a2c4fd14b37f86e04587494387e9a4e6aa2fb1085e4b144db0", - "bytes": 1259 - }, - { - "path": "logs/jev_mirror_status.json", - "source": "{source_root}\\jev_mirror_status.json", - "kind": "sanitized_snapshot", - "source_sha256": "a4c3cf0de211b30c461f64862bbb42f8e5b8f7fadae4b65190e2103e0a3a09df", - "export_sha256": "0d8a518fb246b1c5d0fe40cf53cc2281de59f2c58ded1f57a703da593cdffe58", - "bytes": 397 - }, - { - "path": "logs/jev_shop_context.json", - "source": "{source_root}\\jev_shop_context.json", - "kind": "sanitized_snapshot", - "source_sha256": "118a1ff303e5359ac3d4d3e8ad1b5d8e8fad09a432d282d50c468dd7e5b1fd0a", - "export_sha256": "666d765ec48452d542803d7546de2e20e86af7b427486cfb1a7641c1587df92f", - "bytes": 37 - }, - { - "path": "logs/server.txt", - "source": "{runtime_root}\\server.log", - "kind": "sanitized_text", - "source_sha256": "8390973ba251caa2f6af42148bf1dbedb256be79cec5d95bffdf69e50db72cf7", - "export_sha256": "e73f05226e53c426ec0bbf91c3022c07c6f89ef17563e03fb9b1ce3a0d63da4c", - "bytes": 408954 - }, - { - "path": "logs/runs/task_20261002_121229_mirror.txt", - "source": "{runtime_root}\\runs\\task_20261002_121229_mirror.log", - "kind": "sanitized_text", - "source_sha256": "47a8dd96e7f30a1261a63c9d922431eb49ffdb00e4e5aa1492b38c51e51e8a93", - "export_sha256": "47a8dd96e7f30a1261a63c9d922431eb49ffdb00e4e5aa1492b38c51e51e8a93", - "bytes": 3910 - }, - { - "path": "source_snapshots/lc_agent.py", - "source": "{source_root}\\lc_agent.py", - "kind": "sanitized_text", - "source_sha256": "87aa4eb633daa42a5cfc52dd52004f344ce579020de02c08b20324322c3a3524", - "export_sha256": "a7ec89f5d3ba7d85a6deeb772e46af1a60f39795fdfd0d9ca8e58dc8867f26e8", - "bytes": 17108 - }, - { - "path": "source_snapshots/jev_mirror_agent.py", - "source": "{source_root}\\jev_mirror_agent.py", - "kind": "sanitized_text", - "source_sha256": "fb7ab6c22cda4f5d815e279037288ac45dc8a0336a96036cc34215c41e644a59", - "export_sha256": "ee553450ed52d088bc55bb7e8dbdcb27fa532339e8540bc37221c0791d58d2da", - "bytes": 35805 - }, - { - "path": "source_snapshots/jev_decision_client.mjs", - "source": "{source_root}\\jev_decision_client.mjs", - "kind": "sanitized_text", - "source_sha256": "0de87b1cb4314ad5a020809717b81f939bb7f8770ea003a3ee39908ebc0fc0da", - "export_sha256": "0de87b1cb4314ad5a020809717b81f939bb7f8770ea003a3ee39908ebc0fc0da", - "bytes": 1707 - }, - { - "path": "source_snapshots/test_jev_mirror_agent.py", - "source": "{source_root}\\test_jev_mirror_agent.py", - "kind": "sanitized_text", - "source_sha256": "44a73164d8657ec527f24eccdbca4598f6aa3f9001bbe02ec0c3690966cb5f36", - "export_sha256": "7fcec21546b6d0a97964f8790fc7989af2853547a65b09de5319440ee6cd52e1", - "bytes": 9346 - }, - { - "path": "source_snapshots/mirror_dungeon_speedrun_notes.md", - "source": "{source_root}\\mirror_dungeon_speedrun_notes.md", - "kind": "sanitized_text", - "source_sha256": "c3ff72f95334519a4c1e553c18f78fa003a60fa0322c3a627c155139ebe24549", - "export_sha256": "f74efbe001680150bf7f832dfe2f1a16ea4df6652aa19ba391ffdf9ec38a77f6", - "bytes": 7370 - }, - { - "path": "skill/references/event-choices.md", - "source": "{skill_root}\\references\\event-choices.md", - "kind": "sanitized_text", - "source_sha256": "be9923436fb1e82bf4fd4fca39778054815bd92dc49f4430a1e28593bd4d9e22", - "export_sha256": "be9923436fb1e82bf4fd4fca39778054815bd92dc49f4430a1e28593bd4d9e22", - "bytes": 9398 - }, - { - "path": "skill/references/jev.md", - "source": "{skill_root}\\references\\jev.md", - "kind": "sanitized_text", - "source_sha256": "001355b4685edb8b4d69fe27d59a29c60ec2477997fcfaa58d7d80c305b1950f", - "export_sha256": "9821e3a0f4c8a2b11f99daca8a2fd63b839c282fb14670daec1738d280c408cf", - "bytes": 1978 - }, - { - "path": "skill/references/rupture-route.md", - "source": "{skill_root}\\references\\rupture-route.md", - "kind": "sanitized_text", - "source_sha256": "f0a4f932b93b7afd0e55a4fa7ed523f5ae37367ac84b5027edf9db3907a4e803", - "export_sha256": "f0a4f932b93b7afd0e55a4fa7ed523f5ae37367ac84b5027edf9db3907a4e803", - "bytes": 4813 - }, - { - "path": "skill/references/shortcuts.md", - "source": "{skill_root}\\references\\shortcuts.md", - "kind": "sanitized_text", - "source_sha256": "5c03911a4baf0f66dd973ed828754d047c28301f8e14ae91dcd477e570c6f853", - "export_sha256": "5c03911a4baf0f66dd973ed828754d047c28301f8e14ae91dcd477e570c6f853", - "bytes": 2158 - }, - { - "path": "skill/SKILL.md", - "source": "{skill_root}\\SKILL.md", - "kind": "sanitized_text", - "source_sha256": "6b7b805fefcc3eaea242ef5caca6addf584258c2e7a7fe33ca57096d5d43b65f", - "export_sha256": "6f986978489c1bdca992cae43db42d8b176b9e957bd087e0c154b58f51605d14", - "bytes": 5205 - } - ], - "capture_count": 175, - "capture_archive_bytes": 70151526, - "capture_archive_sha256": "2e122ec17d655576004c0127f07cb3cd08fc43085b2b10d35564f992c786d61d", - "excluded": [ - "API/MCP credentials", - "all local configs", - "Codex session transcripts", - "unrelated asset extraction files", - "virtual environments" - ], - "limitations": [ - "MCP retains only 30 recent captures; deleted frames cannot be reconstructed.", - "Live session still running; snapshot is not proof of dungeon completion." - ] +{ + "snapshot_at_utc": "2026-10-02T05:51:37.084985+00:00", + "log_record_counts": { + "agent_log.jsonl": 70, + "lc_agent_log.jsonl": 115, + "jev_mirror_log.jsonl": 273, + "agent_smoke.jsonl": 2, + "lc_agent_smoke.jsonl": 6 + }, + "partial_lines_skipped": {}, + "redaction_count": 0, + "files": [ + { + "path": "logs/agent_log.jsonl", + "source": "{source_root}\\agent_log.jsonl", + "kind": "sanitized_jsonl", + "source_sha256": "043007f37dcea9b8012d332ea4568ad7fec0b0d664f0f6214e752e7cdaeb447b", + "export_sha256": "1a5abcd50ad5449e9e604e0a748ad58defc036ea0e5273aef33e04715fa03c20", + "bytes": 21769 + }, + { + "path": "logs/lc_agent_log.jsonl", + "source": "{source_root}\\lc_agent_log.jsonl", + "kind": "sanitized_jsonl", + "source_sha256": "beeb226bcbf958615f9791ef3d785758b17c94d897148013e1c4bc26319f2cb4", + "export_sha256": "00da17e08a09bc833e3c2e0841e8613acd13642bd74048565328d54c81a3773b", + "bytes": 33848 + }, + { + "path": "logs/jev_mirror_log.jsonl", + "source": "{source_root}\\jev_mirror_log.jsonl", + "kind": "sanitized_jsonl", + "source_sha256": "b3b9e64a647b6ee8e3912d82fc18877caf871e289680f986cdc2f0ac1289b544", + "export_sha256": "2763abd957bcec7cb7ad0b0b9e29ec9f1f09501f44e506f7d359047397d133e0", + "bytes": 95659 + }, + { + "path": "logs/agent_smoke.jsonl", + "source": "{source_root}\\agent_smoke.jsonl", + "kind": "sanitized_jsonl", + "source_sha256": "e23a4202ef43db244d35add355caf8b6cc73b1a601145d1950f79fb8f5110553", + "export_sha256": "5c60a2930ecb98637d069f11dfd8b237953d93ec66e267249121b03e87e599a3", + "bytes": 546 + }, + { + "path": "logs/lc_agent_smoke.jsonl", + "source": "{source_root}\\lc_agent_smoke.jsonl", + "kind": "sanitized_jsonl", + "source_sha256": "1b30816d1df59bd30ed6bfd04e5c2d3d08e2de48d45306574489a031b8302e7d", + "export_sha256": "3d92086aca23c7a2c4fd14b37f86e04587494387e9a4e6aa2fb1085e4b144db0", + "bytes": 1259 + }, + { + "path": "logs/jev_mirror_status.json", + "source": "{source_root}\\jev_mirror_status.json", + "kind": "sanitized_snapshot", + "source_sha256": "a4c3cf0de211b30c461f64862bbb42f8e5b8f7fadae4b65190e2103e0a3a09df", + "export_sha256": "0d8a518fb246b1c5d0fe40cf53cc2281de59f2c58ded1f57a703da593cdffe58", + "bytes": 397 + }, + { + "path": "logs/jev_shop_context.json", + "source": "{source_root}\\jev_shop_context.json", + "kind": "sanitized_snapshot", + "source_sha256": "118a1ff303e5359ac3d4d3e8ad1b5d8e8fad09a432d282d50c468dd7e5b1fd0a", + "export_sha256": "666d765ec48452d542803d7546de2e20e86af7b427486cfb1a7641c1587df92f", + "bytes": 37 + }, + { + "path": "logs/server.txt", + "source": "{runtime_root}\\server.log", + "kind": "sanitized_text", + "source_sha256": "8390973ba251caa2f6af42148bf1dbedb256be79cec5d95bffdf69e50db72cf7", + "export_sha256": "e73f05226e53c426ec0bbf91c3022c07c6f89ef17563e03fb9b1ce3a0d63da4c", + "bytes": 408954 + }, + { + "path": "logs/runs/task_20261002_121229_mirror.txt", + "source": "{runtime_root}\\runs\\task_20261002_121229_mirror.log", + "kind": "sanitized_text", + "source_sha256": "47a8dd96e7f30a1261a63c9d922431eb49ffdb00e4e5aa1492b38c51e51e8a93", + "export_sha256": "47a8dd96e7f30a1261a63c9d922431eb49ffdb00e4e5aa1492b38c51e51e8a93", + "bytes": 3910 + }, + { + "path": "source_snapshots/lc_agent.py", + "source": "{source_root}\\lc_agent.py", + "kind": "sanitized_text", + "source_sha256": "87aa4eb633daa42a5cfc52dd52004f344ce579020de02c08b20324322c3a3524", + "export_sha256": "a7ec89f5d3ba7d85a6deeb772e46af1a60f39795fdfd0d9ca8e58dc8867f26e8", + "bytes": 17108, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "source_snapshots/jev_mirror_agent.py", + "source": "{source_root}\\jev_mirror_agent.py", + "kind": "sanitized_text", + "source_sha256": "b1446cb971c993e015c0f9d140d0e9f1b59c31a556812cee38bb1a074bea637b", + "export_sha256": "13d7cd135ad85fa1635122f0e00b6ed406ffb216638b2a96d424a9f0bf7f0987", + "bytes": 36565, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "source_snapshots/jev_decision_client.mjs", + "source": "{source_root}\\jev_decision_client.mjs", + "kind": "sanitized_text", + "source_sha256": "0de87b1cb4314ad5a020809717b81f939bb7f8770ea003a3ee39908ebc0fc0da", + "export_sha256": "0de87b1cb4314ad5a020809717b81f939bb7f8770ea003a3ee39908ebc0fc0da", + "bytes": 1707, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "source_snapshots/test_jev_mirror_agent.py", + "source": "{source_root}\\test_jev_mirror_agent.py", + "kind": "sanitized_text", + "source_sha256": "f5c7bd8d580809e8b76042bf8c8d79c315bd1a6f8ac69fe41e149bdd93528e5e", + "export_sha256": "54b871057033e98310d2c907e2f80648b878d16bda9460837b4efa6ed0d12227", + "bytes": 9803, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "source_snapshots/mirror_dungeon_speedrun_notes.md", + "source": "{source_root}\\mirror_dungeon_speedrun_notes.md", + "kind": "sanitized_text", + "source_sha256": "ea74ecd72c58451b5e9b7fce343a080598287a1a4a052b54b33b272f5b099c6b", + "export_sha256": "1be3781b0327a09eccb90ce64e9f90ee1744170f13d93f5efe43c2e72e12ef2c", + "bytes": 9210, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "skill/references/event-choices.md", + "source": "{skill_root}\\references\\event-choices.md", + "kind": "sanitized_text", + "source_sha256": "be9923436fb1e82bf4fd4fca39778054815bd92dc49f4430a1e28593bd4d9e22", + "export_sha256": "be9923436fb1e82bf4fd4fca39778054815bd92dc49f4430a1e28593bd4d9e22", + "bytes": 9398, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "skill/references/jev.md", + "source": "{skill_root}\\references\\jev.md", + "kind": "sanitized_text", + "source_sha256": "001355b4685edb8b4d69fe27d59a29c60ec2477997fcfaa58d7d80c305b1950f", + "export_sha256": "9821e3a0f4c8a2b11f99daca8a2fd63b839c282fb14670daec1738d280c408cf", + "bytes": 1978, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "skill/references/rupture-route.md", + "source": "{skill_root}\\references\\rupture-route.md", + "kind": "sanitized_text", + "source_sha256": "f0a4f932b93b7afd0e55a4fa7ed523f5ae37367ac84b5027edf9db3907a4e803", + "export_sha256": "f0a4f932b93b7afd0e55a4fa7ed523f5ae37367ac84b5027edf9db3907a4e803", + "bytes": 4813, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "skill/references/shortcuts.md", + "source": "{skill_root}\\references\\shortcuts.md", + "kind": "sanitized_text", + "source_sha256": "a70114bdbf6e0d2ce797d09f068e403857e79aea95343fbccda2b65ad1d8a8fb", + "export_sha256": "a70114bdbf6e0d2ce797d09f068e403857e79aea95343fbccda2b65ad1d8a8fb", + "bytes": 2286, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + }, + { + "path": "skill/SKILL.md", + "source": "{skill_root}\\SKILL.md", + "kind": "sanitized_text", + "source_sha256": "24d4b20a482fec63ddb2b6e6a968e33651daf642d2ea2c22406b74b8eeb7982b", + "export_sha256": "27f487f3482c317be29910bd903091bc49c4a976123045a2e643baf8143b38b7", + "bytes": 5746, + "updated_at_utc": "2026-10-02T06:05:59.003197+00:00" + } + ], + "capture_count": 175, + "capture_archive_bytes": 70151526, + "capture_archive_sha256": "2e122ec17d655576004c0127f07cb3cd08fc43085b2b10d35564f992c786d61d", + "excluded": [ + "API/MCP credentials", + "all local configs", + "Codex session transcripts", + "unrelated asset extraction files", + "virtual environments" + ], + "limitations": [ + "MCP retains only 30 recent captures; deleted frames cannot be reconstructed.", + "Live session still running; snapshot is not proof of dungeon completion." + ], + "followup_at_utc": "2026-10-02T06:05:59.003197+00:00", + "followup_note": "User assisted final reward confirmation after assistant clicked claim. Final completion observed; original action-log snapshot remains unchanged." } \ No newline at end of file diff --git a/docs/feedback/2026-10-02/skill/SKILL.md b/docs/feedback/2026-10-02/skill/SKILL.md index 25eab02..776ffaf 100644 --- a/docs/feedback/2026-10-02/skill/SKILL.md +++ b/docs/feedback/2026-10-02/skill/SKILL.md @@ -1,40 +1,43 @@ ---- -name: limbus-mirror-speedrun -description: 继续或重开边狱公司(Limbus Company)的镜像迷宫/镜牢,按破裂黎明与黑兽纯 P 攻略追求整局通关速度;处理开局配置、卡包、事件、必要强化、技能替换与战斗快捷键。用于用户要求代打镜牢或优化此速通流程时,不用于一般配队讨论或主线事件。 ---- - -# 镜牢破裂纯 P 速通 - -目标是尽快完成用户授权的一局镜牢。接着当前画面推进;只有用户明确要求重开时才放弃当前局。用户后续纠正覆盖本 skill 的默认配置。 - -## 读取与续局 - -- 执行前读取 [破裂黎明配置与楼层规划](references/rupture-route.md)。沿用用户配好的队伍、难度、出战顺序,不为了通用攻略改动配置。 -- 遇事件时在 [事件速查](references/event-choices.md) 搜索事件名称或饰品名,只读相关条目。减少额外战斗、判定和分支,保留核心饰品与能节约后续战斗时间的即时恢复。 -- 续局先取得当前游戏画面,识别楼层、界面及关键强化是否完成;不要把旧截图、坐标或笔记中的局面当成当前状态。 -- 未覆盖的事件查原 Wiki 的对应条目一次,按当前选项文字核对。编号只是辅助,同名复刻/折射事件可能不同。 - -## 快捷操作 - -当前用户已安装并授权 `limbus` MCP。优先使用其后台截图、OCR、按键、点击与长按拖拽,不切换前台焦点或移动系统鼠标。先检查任务状态;同一时刻只运行一个执行器,AALC 完整任务运行期间不要叠加手动输入。MCP 无法使用时再读取 `computer-use` skill,使用其允许的原生接口。 - -- **战斗:P → Return(回车)**,重复至结算。用户明确允许战斗批量操作,无需逐回合截图或分析拼点。先确认已进入战斗,再执行有界短批次,让动画完成,批次末检查结算;避免循环跨入奖励、事件或商店界面。 -- 用户更新(2026-10-02):进入关卡后的编队界面也直接按回车开战,保留原队伍,不再次检查或确认编队人员。 -- **事件判定先点击 SKIP 跳过对话**,跳完再选择事件选项、罪人或进行判定;SKIP 可用时不提前处理判定。其他对话也优先 SKIP,可用回车加快。确认/继续按钮明确且回车适用时用快捷键;事件和奖励按选项文字选择。 -- 用户补充:SKIP 后连续回车推进到罪人选择界面;判定结果出现后快速连按回车结束事件。固定推进无需逐按钮调用模型,到分支选择时再决策。 -- 快捷键发送后未生效,立即按新画面用鼠标点对应按钮;不反复尝试同一快捷键消耗时间。 -- 游戏快捷键以用户提供的操作指南为准,读 [快捷键速查](references/shortcuts.md) 再使用地图导航。方向键或 W/S/D 选择节点,**选中后直接按回车进入,无需再次确认**,将选方向+回车合成一个动作;空格在战斗中是暂停/继续,不放进 P+回车循环。 -- 用户要求快速执行:明确的连续确认、地图进入和开始战斗可合并为短批次,留出必要加载时间;不要每按一个按钮都截图。到事件、奖励、卡包等需要选择的界面再观察。界面变化不确定或快捷键失败时重新观察。 -- 卡包下拉使用 MCP `drag`,保持左键按下并缓慢拖动;以当前截图核对起点、终点与选择结果。用户明确要求自行修复拖拽,不能仅因快速拖拽未被识别就交回用户。 -- 有确认弹窗时仅操作弹窗控件;背景中的同名按钮仍可能被 OCR 识别,不能再次点击背景“离开”代替弹窗“确认”。 -- 用户按 Esc 中止电脑操作或发出停止指令,立即停止该轮原生操作,不自动重试。 - -## 速度与完成标准 - -用户已明确指定 Jev 负责固定场景、路线及常规操作决策。调用方式见 [Jev 接入](references/jev.md)。主助手只在 Jev 返回 `requires_analysis` 或出现具体接口故障时分析、修复,然后交回 Jev。最新战斗指令优先:一旦战斗开始,仅执行 P+回车直到结算,不再逐批请求模型;有界批次末只检查是否结算,未结算继续下一批。执行器仅暴露当前画面核对过的候选动作,不能执行模型返回的任意代码。当前执行器为 `{source_root}/jev_mirror_agent.py`,状态与问题保存在同目录的 `jev_mirror_status.json`。 - -略过无关观测、采购、合成、调队和反复比较,保留符咒 ++ 与关键技能替换。大量理智损失可能增加纯 P 战斗回合,不能只按当前事件点击次数选择。 - -持续到本局通关结算,或用户中止/必须手动接管的具体步骤。只有看到最终通关结算才能报告完成。研究完攻略或做完一层不算通关;不承诺复现视频的 12 分钟用时。 - -用户纠正流程时,在授权范围内更新相应参考文件和现有 [速通笔记]({source_root}/mirror_dungeon_speedrun_notes.md);先读笔记,保留用户其他编辑。资料核对日期:2026-10-01。 +--- +name: limbus-mirror-speedrun +description: 继续或重开边狱公司(Limbus Company)的镜像迷宫/镜牢,按破裂黎明与黑兽纯 P 攻略追求整局通关速度;处理开局配置、卡包、事件、必要强化、技能替换与战斗快捷键。用于用户要求代打镜牢或优化此速通流程时,不用于一般配队讨论或主线事件。 +--- + +# 镜牢破裂纯 P 速通 + +目标是尽快完成用户授权的一局镜牢。接着当前画面推进;只有用户明确要求重开时才放弃当前局。用户后续纠正覆盖本 skill 的默认配置。 + +## 读取与续局 + +- 执行前读取 [破裂黎明配置与楼层规划](references/rupture-route.md)。沿用用户配好的队伍、难度、出战顺序,不为了通用攻略改动配置。 +- 遇事件时在 [事件速查](references/event-choices.md) 搜索事件名称或饰品名,只读相关条目。减少额外战斗、判定和分支,保留核心饰品与能节约后续战斗时间的即时恢复。 +- 续局先取得当前游戏画面,识别楼层、界面及关键强化是否完成;不要把旧截图、坐标或笔记中的局面当成当前状态。 +- 未覆盖的事件查原 Wiki 的对应条目一次,按当前选项文字核对。编号只是辅助,同名复刻/折射事件可能不同。 + +## 快捷操作 + +当前用户已安装并授权 `limbus` MCP。优先使用其后台截图、OCR、按键、点击与长按拖拽,不切换前台焦点或移动系统鼠标。先检查任务状态;同一时刻只运行一个执行器,AALC 完整任务运行期间不要叠加手动输入。MCP 无法使用时再读取 `computer-use` skill,使用其允许的原生接口。 + +- **战斗:P → Return(回车)**,重复至结算。用户明确允许战斗批量操作,无需逐回合截图或分析拼点。先确认已进入战斗,再执行有界短批次,让动画完成,批次末检查结算;避免循环跨入奖励、事件或商店界面。 +- 用户更新(2026-10-02):进入关卡后的编队界面也直接按回车开战,保留原队伍,不再次检查或确认编队人员。 +- **事件判定先点击 SKIP 跳过对话**,跳完再选择事件选项、罪人或进行判定;SKIP 可用时不提前处理判定。其他对话也优先 SKIP,可用回车加快。确认/继续按钮明确且回车适用时用快捷键;事件和奖励按选项文字选择。 +- 用户补充:SKIP 后连续回车推进到罪人选择界面;判定结果出现后快速连按回车结束事件。固定推进无需逐按钮调用模型,到分支选择时再决策。 +- 快捷键发送后未生效,立即按新画面用鼠标点对应按钮;不反复尝试同一快捷键消耗时间。 +- 最终结算点击“领取”后,继续按回车确认;未生效再点击确认按钮。看到“探索完成”后仍需领取并确认,不能只停在结算页。 +- 游戏快捷键以用户提供的操作指南为准,读 [快捷键速查](references/shortcuts.md) 再使用地图导航。方向键或 W/S/D 选择节点,**选中后直接按回车进入,无需再次确认**,将选方向+回车合成一个动作;空格在战斗中是暂停/继续,不放进 P+回车循环。 +- 用户要求快速执行:明确的连续确认、地图进入和开始战斗可合并为短批次,留出必要加载时间;不要每按一个按钮都截图。到事件、奖励、卡包等需要选择的界面再观察。界面变化不确定或快捷键失败时重新观察。 +- 卡包下拉使用 MCP `drag`,保持左键按下并缓慢拖动;以当前截图核对起点、终点与选择结果。用户明确要求自行修复拖拽,不能仅因快速拖拽未被识别就交回用户。 +- 有确认弹窗时仅操作弹窗控件;背景中的同名按钮仍可能被 OCR 识别,不能再次点击背景“离开”代替弹窗“确认”。 +- 用户按 Esc 中止电脑操作或发出停止指令,立即停止该轮原生操作,不自动重试。 + +## 速度与完成标准 + +用户已明确指定 Jev 负责固定场景、路线及常规操作决策。调用方式见 [Jev 接入](references/jev.md)。主助手只在 Jev 返回 `requires_analysis` 或出现具体接口故障时分析、修复,然后交回 Jev。最新战斗指令优先:一旦战斗开始,仅执行 P+回车直到结算,不再逐批请求模型;有界批次末只检查是否结算,未结算继续下一批。执行器仅暴露当前画面核对过的候选动作,不能执行模型返回的任意代码。当前执行器为 `{source_root}/jev_mirror_agent.py`,状态与问题保存在同目录的 `jev_mirror_status.json`。 + +略过无关观测、采购、合成、调队和反复比较,保留符咒 ++ 与关键技能替换。大量理智损失可能增加纯 P 战斗回合,不能只按当前事件点击次数选择。 + +加载画面会保留旧库存/按钮;CONNECTING 未结束时禁止输入。场景处理先识别上层弹窗,再处理背景界面。层末多卡饰品与苦难必须选择后推进,不能混用单卡额外观测的“拒绝饰品”。识别无变化时忽略录像计时与动画数字;已经读过的卡包详情保留结论,避免重复观测。 + +持续到本局通关结算,或用户中止/必须手动接管的具体步骤。只有看到最终通关结算才能报告完成。研究完攻略或做完一层不算通关;不承诺复现视频的 12 分钟用时。 + +用户纠正流程时,在授权范围内更新相应参考文件和现有 [速通笔记]({source_root}/mirror_dungeon_speedrun_notes.md);先读笔记,保留用户其他编辑。资料核对日期:2026-10-01。 diff --git a/docs/feedback/2026-10-02/skill/references/shortcuts.md b/docs/feedback/2026-10-02/skill/references/shortcuts.md index 10ffd65..d83c9bf 100644 --- a/docs/feedback/2026-10-02/skill/references/shortcuts.md +++ b/docs/feedback/2026-10-02/skill/references/shortcuts.md @@ -29,4 +29,5 @@ - 地图的 A/左箭头是取消节点,不能当成向左前进;Q/E 只平移画面。 - 用户已确认:**选中关卡或商店后,按 Enter 进入**,不用再寻找“进入”按钮。奖励或商店内其他动作仍按当前界面确认,不能扩展成所有操作都盲按 Enter。 - **快捷键优先;一次发送后确认未生效,就用鼠标点击对应按钮**,不要反复按键等待。用户已明确授权此回退方式。 +- 最终结算:点击“领取”后按 **Enter** 确认奖励;未生效再点击确认按钮,返回主界面后结束。 - 原生控制工具可能把用户物理按 Esc 视为中止。这与游戏内 Esc 导航不同;检测到操作中止时按上级要求停止,不自动重试。 diff --git a/docs/feedback/2026-10-02/source_snapshots/jev_mirror_agent.py b/docs/feedback/2026-10-02/source_snapshots/jev_mirror_agent.py index e1df212..7a275f8 100644 --- a/docs/feedback/2026-10-02/source_snapshots/jev_mirror_agent.py +++ b/docs/feedback/2026-10-02/source_snapshots/jev_mirror_agent.py @@ -122,6 +122,16 @@ def candidates(state, previous_battle=False, refresh_used=0): # Never buy, refresh again, or leave based on that stale inventory. if any('CONNECTING' in t.upper() for t in texts): return options + if '探索完成' in texts: + claim = next((i for i in items if i['text'].replace(' ', '') == '领取' + and button_enabled(state,i)), None) + if claim: + options['claim_final'] = { + 'description':'最终探索完成:点击领取并按回车确认奖励。', + 'action':{'tool':'claim_final','args':{'x':claim['x']+claim['w']//2, + 'y':claim['y']+claim['h']//2}}, + } + return options if '判定成功' in combined or '判定失败' in combined or '结果' in texts: continuation = next((i for i in items if i['text'].replace(' ', '') == '继续' and button_enabled(state,i)), None) @@ -420,6 +430,12 @@ def decide(cfg, state, options, recent): def execute(bridge, action): + if action['tool'] == 'claim_final': + result = bridge.call('click', action['args']) + if not result.get('ok'): + return result + time.sleep(.4) + return bridge.call('keypress', {'key':'enter'}) if action['tool'] == 'advance_dialog': for _ in range(min(5, action.get('args', {}).get('presses', 2))): result = bridge.call('keypress', {'key': 'enter'}) diff --git a/docs/feedback/2026-10-02/source_snapshots/mirror_dungeon_speedrun_notes.md b/docs/feedback/2026-10-02/source_snapshots/mirror_dungeon_speedrun_notes.md index 4362137..9a13ce0 100644 --- a/docs/feedback/2026-10-02/source_snapshots/mirror_dungeon_speedrun_notes.md +++ b/docs/feedback/2026-10-02/source_snapshots/mirror_dungeon_speedrun_notes.md @@ -26,7 +26,7 @@ | 2F | **符纸强化到 ++**;优先选 **Hell's Chicken**,主动获取**鸡胸**以维持破裂层数;按下表换技能。 | — | | 3F | 菲辛的换技能目标改为 **1 → 3**;原作者推荐 **Bearable** 卡包。 | 制作**快感**。 | | 4F | 继续推进、按下表换技能。 | 补缺失的相关饰品。 | -| 5F | 优先换技能并通关,**不必专门做斩击四级饰品**。 | 顺路补高级饰品。 | +| 5F | **优先“2号线”卡包**;优先换技能并通关,不必专门做斩击四级饰品。 | 卡包刷新次数为零时允许卡包观测;顺路高级饰品。 | 没拿到鸡胸也继续推进,**不要因此重开**。饰品与换技能竞争资源时,优先关键技能;符纸 ++ 的优先级保留。 @@ -49,7 +49,23 @@ ## 层末苦难 - 除必需饰品外,选择**不加敌方血量、不加防御等级**的选项。不要漏选后让系统随机分配苦难; - 层末必须先选择苦难再直接推进,不能把此界面误当额外饰品观测而默认拒绝。 -- 第五层优先“2号线”卡包;卡包刷新次数为零时允许使用卡包观测(用户补充 2026-10-02)。 + +## 场景执行表(优先减少重复步骤) + +| 当前画面 | 固定操作 | 到哪里再重新决策 | +| --- | --- | --- | +| CONNECTING/加载 | 等待,不购买、不刷新、不退出 | 新画面加载完成 | +| 上层确认弹窗 | 只操作弹窗按钮 | 弹窗关闭 | +| 地图节点/关卡编队 | 方向+Enter;编队界面再 Enter | 战斗或下一个选择界面 | +| 战斗 | 持续 P → Enter,不分析拼点、不逐按钮调用模型 | 结算、奖励、地图或事件 | +| 事件对话 | SKIP;再用 Enter 推进 | 选项或罪人判定出现 | +| 事件选项 | 已有无需战斗/判定的直接领取分支就选,避免反复滚动 | 下一处分支或结果 | +| 事件结果 | Enter 推进;可见“继续”且按键无效就直接点击 | 返回地图 | +| 商店 | 可换出战技能先换;无可换技能再刷新,最多 4 次 | 新库存;不根据加载旧库存继续操作 | +| 层末多卡奖励/苦难 | 先选饰品和苦难,再确认推进 | 下一层;不能按“额外观测”默认拒绝 | +| 最终结算 | 点击“领取” → Enter 确认;无效就点确认 | 返回主界面,结束执行 | + +无变化判断比较界面标题、选项、按钮状态,忽略录像计时和战斗动画中的数字。快捷键一次未生效就回退按钮;不重新核对已确定的编队、路线或技能表。卡包详情已读过的结论应保留,不能关闭后再次从零观测同一卡包。 ## 执行原则 @@ -85,10 +101,14 @@ ## Jev 接入(用户授权) - 已实测 `jev-1.13-free` 决策接口返回 HTTP 200,耗时约 1.3–1.5 秒;端点为 `https://opencode.ai/zen/v1/systemone`。 -- 客户端:[jev_decision_client.mjs]({source_root}/jev_decision_client.mjs)。密钥仅在运行时内存或环境变量中,不写入文件。 +- 客户端:[jev_decision_client.mjs]({source_root}/jev_decision_client.mjs)。凭据由环境变量或未跟踪的本地配置提供,上传源码与反馈时排除凭据和配置文件。 - 用户更新(2026-10-02):固定场景、路线与常规动作均交给 Jev;仅在它返回 `requires_analysis` 或具体接口故障时由主助手排查。执行器只执行已核对的候选动作,不运行模型任意代码。 - 最新战斗指令:开战后仅 P+回车循环到结算,不逐批请求 Jev。批次末只识别是否已结束,战斗特写没有 OCR 文字也继续;结算后交回 Jev。 +## 本局实测与待验证 + +2026-10-02 已看到第五层“探索完成”;点击领取后由用户完成回车确认,随后观察到主界面。此局包含人工纠正,不能记成全自动速通成功。商店加载保护、层末苦难选择和完整自动领取流程已修改并做回归检查,下一局仍需确认实际效果;12 分钟目标尚未复现。 + ## 来源 - B 站 UP 绅士丶蚂蚱:[破裂黎明纯 P 周回](https://www.bilibili.com/video/BV1exaV6yELm/)。楼层规划采用其换技能优先策略。 diff --git a/docs/feedback/2026-10-02/source_snapshots/test_jev_mirror_agent.py b/docs/feedback/2026-10-02/source_snapshots/test_jev_mirror_agent.py index babf020..f2a2e70 100644 --- a/docs/feedback/2026-10-02/source_snapshots/test_jev_mirror_agent.py +++ b/docs/feedback/2026-10-02/source_snapshots/test_jev_mirror_agent.py @@ -6,6 +6,15 @@ import jev_mirror_agent as agent class SceneRegressionTest(unittest.TestCase): + @mock.patch.object(agent.time, 'sleep') + def test_final_claim_click_is_followed_by_enter(self, _sleep): + bridge = mock.Mock() + bridge.call.return_value = {'ok': True} + agent.execute(bridge, {'tool':'claim_final','args':{'x':1292,'y':816}}) + self.assertEqual(bridge.call.call_args_list, + [mock.call('click',{'x':1292,'y':816}), + mock.call('keypress',{'key':'enter'})]) + @mock.patch.object(agent, 'button_enabled', return_value=True) def test_event_dialog_skip_precedes_judgement_and_options(self, _enabled): state = {'items': [{'text': text, 'x': 1200, 'y': 400, 'w': 120, 'h': 40, 'score': 1.0} @@ -44,7 +53,7 @@ class SceneRegressionTest(unittest.TestCase): self.assertIn('shop_refresh', options) def test_real_green_shop_node_is_not_omitted(self): - screenshot = Path(r'{runtime_root}\shots\shot_20261002_123920_523.png') + screenshot = Path(r'{user_home}\lc_mcp\shots\shot_20261002_123920_523.png') if not screenshot.exists(): self.skipTest('local game fixture unavailable') options = agent.map_candidates({'screen': {'path': str(screenshot)}}) diff --git a/docs/feedback/2026-10-02/test-results.txt b/docs/feedback/2026-10-02/test-results.txt index d701d71..cbf942f 100644 --- a/docs/feedback/2026-10-02/test-results.txt +++ b/docs/feedback/2026-10-02/test-results.txt @@ -1,48 +1,49 @@ -test_battle_cinematic_keeps_macro_available (test_jev_mirror_agent.SceneRegressionTest.test_battle_cinematic_keeps_macro_available) ... ok -test_battle_entry_uses_enter_without_party_changes (test_jev_mirror_agent.SceneRegressionTest.test_battle_entry_uses_enter_without_party_changes) ... ok -test_battle_macro_continues_through_empty_ocr_and_stops_at_reward (test_jev_mirror_agent.SceneRegressionTest.test_battle_macro_continues_through_empty_ocr_and_stops_at_reward) ... ok -test_confirmation_blocks_background_leave (test_jev_mirror_agent.SceneRegressionTest.test_confirmation_blocks_background_leave) ... ok -test_disabled_selection_is_not_clickable_candidate (test_jev_mirror_agent.SceneRegressionTest.test_disabled_selection_is_not_clickable_candidate) ... ok -test_event_dialog_skip_precedes_judgement_and_options (test_jev_mirror_agent.SceneRegressionTest.test_event_dialog_skip_precedes_judgement_and_options) ... ok -test_event_result_uses_visible_continue_button (test_jev_mirror_agent.SceneRegressionTest.test_event_result_uses_visible_continue_button) ... ok -test_floor_three_sinclair_cannot_choose_first_floor_swap (test_jev_mirror_agent.SceneRegressionTest.test_floor_three_sinclair_cannot_choose_first_floor_swap) ... ok -test_loading_offers_wait_and_never_auto_escalates (test_jev_mirror_agent.SceneRegressionTest.test_loading_offers_wait_and_never_auto_escalates) ... ok -test_nested_reward_confirmation_excludes_background_cards (test_jev_mirror_agent.SceneRegressionTest.test_nested_reward_confirmation_excludes_background_cards) ... ok -test_real_white_event_routes_work_without_map_heading_ocr (test_jev_mirror_agent.SceneRegressionTest.test_real_white_event_routes_work_without_map_heading_ocr) ... ok -test_reward_stops_battle_candidates (test_jev_mirror_agent.SceneRegressionTest.test_reward_stops_battle_candidates) ... ok -test_route_enters_without_a_second_snapshot (test_jev_mirror_agent.SceneRegressionTest.test_route_enters_without_a_second_snapshot) ... ok -test_shop_cannot_leave_with_party_swap_or_remaining_refresh (test_jev_mirror_agent.SceneRegressionTest.test_shop_cannot_leave_with_party_swap_or_remaining_refresh) ... ok -test_shop_loading_blocks_stale_stock_refresh_and_leave (test_jev_mirror_agent.SceneRegressionTest.test_shop_loading_blocks_stale_stock_refresh_and_leave) ... ok -test_shop_refresh_is_capped_and_only_for_missing_party_swap (test_jev_mirror_agent.SceneRegressionTest.test_shop_refresh_is_capped_and_only_for_missing_party_swap) ... ok -test_sold_swap_is_not_offered_again (test_jev_mirror_agent.SceneRegressionTest.test_sold_swap_is_not_offered_again) ... ok -test_rejects_unknown_params (test_lc_mcp.AalcTaskArgsTest.test_rejects_unknown_params) ... unknown params for mirror: exp -usage: python -m lc_mcp.aalc_task [json] -ok -test_empty_matches_nothing (test_lc_mcp.MatchTest.test_empty_matches_nothing) ... ok -test_exact_first (test_lc_mcp.MatchTest.test_exact_first) ... ok -test_ignores_spaces_and_case (test_lc_mcp.MatchTest.test_ignores_spaces_and_case) ... ok -test_bad_arguments_are_tool_errors (test_lc_mcp.ProtocolTest.test_bad_arguments_are_tool_errors) ... ok -test_click_text (test_lc_mcp.ProtocolTest.test_click_text) ... ok -test_drag_duration_and_rejected_arguments (test_lc_mcp.ProtocolTest.test_drag_duration_and_rejected_arguments) ... ok -test_engine_unavailable (test_lc_mcp.ProtocolTest.test_engine_unavailable) ... ok -test_images (test_lc_mcp.ProtocolTest.test_images) ... ok -test_initialize_and_list (test_lc_mcp.ProtocolTest.test_initialize_and_list) ... ok -test_task_exit_codes (test_lc_mcp.ProtocolTest.test_task_exit_codes) ... ok -test_task_lifecycle_blocks_manual_input (test_lc_mcp.ProtocolTest.test_task_lifecycle_blocks_manual_input) ... ok -test_wait_for_text (test_lc_mcp.ProtocolTest.test_wait_for_text) ... ok -test_background_keypress_holds_and_releases_on_error (test_lc_mcp.RuntimeTest.test_background_keypress_holds_and_releases_on_error) ... ok -test_drag_checks_bounds_before_sending_input (test_lc_mcp.RuntimeTest.test_drag_checks_bounds_before_sending_input) ... ok -test_pythonw_streams_are_redirected_to_log (test_lc_mcp.RuntimeTest.test_pythonw_streams_are_redirected_to_log) ... ok -test_stdio_isolates_bootstrap_output_and_uses_utf8 (test_lc_mcp.RuntimeTest.test_stdio_isolates_bootstrap_output_and_uses_utf8) ... ok -test_template_scale_tracks_client_and_restores_config_on_error (test_lc_mcp.RuntimeTest.test_template_scale_tracks_client_and_restores_config_on_error) ... ok -test_bridge_end_to_end (test_lc_mcp.TransportTest.test_bridge_end_to_end) ... ok -test_bridge_offline (test_lc_mcp.TransportTest.test_bridge_offline) ... ok -test_client_disconnect_is_not_a_server_error (test_lc_mcp.TransportTest.test_client_disconnect_is_not_a_server_error) ... ok -test_stdio_server (test_lc_mcp.TransportTest.test_stdio_server) ... ok -test_wrong_token_rejected (test_lc_mcp.TransportTest.test_wrong_token_rejected) ... [lc_mcp] rejected connection from ('127.0.0.1', 64527) -ok - ----------------------------------------------------------------------- -Ran 40 tests in 6.521s - -OK +test_battle_cinematic_keeps_macro_available (test_jev_mirror_agent.SceneRegressionTest.test_battle_cinematic_keeps_macro_available) ... ok +test_battle_entry_uses_enter_without_party_changes (test_jev_mirror_agent.SceneRegressionTest.test_battle_entry_uses_enter_without_party_changes) ... ok +test_battle_macro_continues_through_empty_ocr_and_stops_at_reward (test_jev_mirror_agent.SceneRegressionTest.test_battle_macro_continues_through_empty_ocr_and_stops_at_reward) ... ok +test_confirmation_blocks_background_leave (test_jev_mirror_agent.SceneRegressionTest.test_confirmation_blocks_background_leave) ... ok +test_disabled_selection_is_not_clickable_candidate (test_jev_mirror_agent.SceneRegressionTest.test_disabled_selection_is_not_clickable_candidate) ... ok +test_event_dialog_skip_precedes_judgement_and_options (test_jev_mirror_agent.SceneRegressionTest.test_event_dialog_skip_precedes_judgement_and_options) ... ok +test_event_result_uses_visible_continue_button (test_jev_mirror_agent.SceneRegressionTest.test_event_result_uses_visible_continue_button) ... ok +test_final_claim_click_is_followed_by_enter (test_jev_mirror_agent.SceneRegressionTest.test_final_claim_click_is_followed_by_enter) ... ok +test_floor_three_sinclair_cannot_choose_first_floor_swap (test_jev_mirror_agent.SceneRegressionTest.test_floor_three_sinclair_cannot_choose_first_floor_swap) ... ok +test_loading_offers_wait_and_never_auto_escalates (test_jev_mirror_agent.SceneRegressionTest.test_loading_offers_wait_and_never_auto_escalates) ... ok +test_nested_reward_confirmation_excludes_background_cards (test_jev_mirror_agent.SceneRegressionTest.test_nested_reward_confirmation_excludes_background_cards) ... ok +test_real_white_event_routes_work_without_map_heading_ocr (test_jev_mirror_agent.SceneRegressionTest.test_real_white_event_routes_work_without_map_heading_ocr) ... ok +test_reward_stops_battle_candidates (test_jev_mirror_agent.SceneRegressionTest.test_reward_stops_battle_candidates) ... ok +test_route_enters_without_a_second_snapshot (test_jev_mirror_agent.SceneRegressionTest.test_route_enters_without_a_second_snapshot) ... ok +test_shop_cannot_leave_with_party_swap_or_remaining_refresh (test_jev_mirror_agent.SceneRegressionTest.test_shop_cannot_leave_with_party_swap_or_remaining_refresh) ... ok +test_shop_loading_blocks_stale_stock_refresh_and_leave (test_jev_mirror_agent.SceneRegressionTest.test_shop_loading_blocks_stale_stock_refresh_and_leave) ... ok +test_shop_refresh_is_capped_and_only_for_missing_party_swap (test_jev_mirror_agent.SceneRegressionTest.test_shop_refresh_is_capped_and_only_for_missing_party_swap) ... ok +test_sold_swap_is_not_offered_again (test_jev_mirror_agent.SceneRegressionTest.test_sold_swap_is_not_offered_again) ... ok +test_rejects_unknown_params (test_lc_mcp.AalcTaskArgsTest.test_rejects_unknown_params) ... unknown params for mirror: exp +usage: python -m lc_mcp.aalc_task [json] +ok +test_empty_matches_nothing (test_lc_mcp.MatchTest.test_empty_matches_nothing) ... ok +test_exact_first (test_lc_mcp.MatchTest.test_exact_first) ... ok +test_ignores_spaces_and_case (test_lc_mcp.MatchTest.test_ignores_spaces_and_case) ... ok +test_bad_arguments_are_tool_errors (test_lc_mcp.ProtocolTest.test_bad_arguments_are_tool_errors) ... ok +test_click_text (test_lc_mcp.ProtocolTest.test_click_text) ... ok +test_drag_duration_and_rejected_arguments (test_lc_mcp.ProtocolTest.test_drag_duration_and_rejected_arguments) ... ok +test_engine_unavailable (test_lc_mcp.ProtocolTest.test_engine_unavailable) ... ok +test_images (test_lc_mcp.ProtocolTest.test_images) ... ok +test_initialize_and_list (test_lc_mcp.ProtocolTest.test_initialize_and_list) ... ok +test_task_exit_codes (test_lc_mcp.ProtocolTest.test_task_exit_codes) ... ok +test_task_lifecycle_blocks_manual_input (test_lc_mcp.ProtocolTest.test_task_lifecycle_blocks_manual_input) ... ok +test_wait_for_text (test_lc_mcp.ProtocolTest.test_wait_for_text) ... ok +test_background_keypress_holds_and_releases_on_error (test_lc_mcp.RuntimeTest.test_background_keypress_holds_and_releases_on_error) ... ok +test_drag_checks_bounds_before_sending_input (test_lc_mcp.RuntimeTest.test_drag_checks_bounds_before_sending_input) ... ok +test_pythonw_streams_are_redirected_to_log (test_lc_mcp.RuntimeTest.test_pythonw_streams_are_redirected_to_log) ... ok +test_stdio_isolates_bootstrap_output_and_uses_utf8 (test_lc_mcp.RuntimeTest.test_stdio_isolates_bootstrap_output_and_uses_utf8) ... ok +test_template_scale_tracks_client_and_restores_config_on_error (test_lc_mcp.RuntimeTest.test_template_scale_tracks_client_and_restores_config_on_error) ... ok +test_bridge_end_to_end (test_lc_mcp.TransportTest.test_bridge_end_to_end) ... ok +test_bridge_offline (test_lc_mcp.TransportTest.test_bridge_offline) ... ok +test_client_disconnect_is_not_a_server_error (test_lc_mcp.TransportTest.test_client_disconnect_is_not_a_server_error) ... ok +test_stdio_server (test_lc_mcp.TransportTest.test_stdio_server) ... ok +test_wrong_token_rejected (test_lc_mcp.TransportTest.test_wrong_token_rejected) ... [lc_mcp] rejected connection from ('127.0.0.1', 56692) +ok + +---------------------------------------------------------------------- +Ran 41 tests in 6.467s + +OK diff --git a/scripts/jev_mirror_agent.py b/scripts/jev_mirror_agent.py index 0f38b08..56448ac 100644 --- a/scripts/jev_mirror_agent.py +++ b/scripts/jev_mirror_agent.py @@ -124,6 +124,16 @@ def candidates(state, previous_battle=False, refresh_used=0): # Never buy, refresh again, or leave based on that stale inventory. if any('CONNECTING' in t.upper() for t in texts): return options + if '探索完成' in texts: + claim = next((i for i in items if i['text'].replace(' ', '') == '领取' + and button_enabled(state,i)), None) + if claim: + options['claim_final'] = { + 'description':'最终探索完成:点击领取并按回车确认奖励。', + 'action':{'tool':'claim_final','args':{'x':claim['x']+claim['w']//2, + 'y':claim['y']+claim['h']//2}}, + } + return options if '判定成功' in combined or '判定失败' in combined or '结果' in texts: continuation = next((i for i in items if i['text'].replace(' ', '') == '继续' and button_enabled(state,i)), None) @@ -422,6 +432,12 @@ def decide(cfg, state, options, recent): def execute(bridge, action): + if action['tool'] == 'claim_final': + result = bridge.call('click', action['args']) + if not result.get('ok'): + return result + time.sleep(.4) + return bridge.call('keypress', {'key':'enter'}) if action['tool'] == 'advance_dialog': for _ in range(min(5, action.get('args', {}).get('presses', 2))): result = bridge.call('keypress', {'key': 'enter'}) diff --git a/tests/test_jev_mirror_agent.py b/tests/test_jev_mirror_agent.py index b6cf6a9..90f4540 100644 --- a/tests/test_jev_mirror_agent.py +++ b/tests/test_jev_mirror_agent.py @@ -8,6 +8,15 @@ import jev_mirror_agent as agent class SceneRegressionTest(unittest.TestCase): + @mock.patch.object(agent.time, 'sleep') + def test_final_claim_click_is_followed_by_enter(self, _sleep): + bridge = mock.Mock() + bridge.call.return_value = {'ok': True} + agent.execute(bridge, {'tool':'claim_final','args':{'x':1292,'y':816}}) + self.assertEqual(bridge.call.call_args_list, + [mock.call('click',{'x':1292,'y':816}), + mock.call('keypress',{'key':'enter'})]) + @mock.patch.object(agent, 'button_enabled', return_value=True) def test_event_dialog_skip_precedes_judgement_and_options(self, _enabled): state = {'items': [{'text': text, 'x': 1200, 'y': 400, 'w': 120, 'h': 40, 'score': 1.0}