接通主角绑定、开场封印与游玩辅助,让世界模拟器从创作连续落到本局。

直聘插入按模块回馈,并记录请求骨架便于排查。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-22 07:40:08 +08:00
co-authored by Cursor
parent 9306c8e659
commit dd0a9e87d8
88 changed files with 6869 additions and 786 deletions
+14
View File
@@ -5,6 +5,7 @@ import {
parseShellAdaptationFromReplyFormat,
presentFromPlainText,
presentOutputFromFallback,
presentReadablePlain,
isPlayFinalVisibleWorker,
isPlayGmBodyWorker,
isPlayPresentWorker,
@@ -146,4 +147,17 @@ describe("play present worker", () => {
expect(view.packet.shell).toBe("chat_monitor");
expect(view.packet.blocks.body).toBe("她点了点头。");
});
it("presentReadablePlain extracts body from present.v1", () => {
expect(
presentReadablePlain(
JSON.stringify({
schema: "present.v1",
shell: "spotlight",
blocks: { body: "清晨,@玩家推开门。" },
}),
),
).toBe("清晨,@玩家推开门。");
expect(presentReadablePlain("门外有人砸门。")).toBe("门外有人砸门。");
});
});