接通主角绑定、开场封印与游玩辅助,让世界模拟器从创作连续落到本局。
直聘插入按模块回馈,并记录请求骨架便于排查。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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("门外有人砸门。");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user