@dsh-agentic-roleplay/core 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/lib/{authoring-tools-B4mEdKp_.js → authoring-tools-C6Hzy8jU.js} +1425 -1241
  3. package/lib/authoring.js +18 -7
  4. package/lib/{child-Dtv76jNx.js → child-C8r8AFpm.js} +36 -5
  5. package/lib/client.js +1780 -829
  6. package/lib/client.js.map +1 -1
  7. package/lib/compaction.js +2 -2
  8. package/lib/doctor.js +2 -2
  9. package/lib/{gallery-BZJleAeH.js → gallery-CtG-bDzz.js} +2 -2
  10. package/lib/{generator-Cg6CQc5S.js → generator-nLoPM5MF.js} +2 -2
  11. package/lib/helper.js +1 -1
  12. package/lib/{hooks-DTjHWTfx.js → hooks-BuQ61nvQ.js} +105 -61
  13. package/lib/images.js +4 -4
  14. package/lib/index.js +964 -106
  15. package/lib/{library-GIlrkOim.js → library-CH-ahlm0.js} +2 -2
  16. package/lib/{lorebook-author-tools-BCFFJSle.js → lorebook-author-tools-B6_Jj8oe.js} +6 -6
  17. package/lib/lorebook-authoring.js +4 -4
  18. package/lib/{narration-BVzew4-K.js → narration-B0hConSw.js} +5 -2
  19. package/lib/orchestration.js +50 -13
  20. package/lib/{pack-jail-hsNQNTOf.js → pack-jail-OZSgU85i.js} +10 -10
  21. package/lib/{packs-UpK_cvI4.js → packs-B88bxt8E.js} +2 -2
  22. package/lib/{presenter-agent-DZOgBOR9.js → presenter-agent-D-WNs626.js} +5 -5
  23. package/lib/{preset-Cyoj1ZWa.js → preset-DNuqvMan.js} +4 -4
  24. package/lib/{preset-author-tools-RSta6pHK.js → preset-author-tools-CDwavcTb.js} +6 -6
  25. package/lib/preset-authoring.js +5 -5
  26. package/lib/{presets-CvpsW_10.js → presets-9_MNxwaw.js} +103 -7
  27. package/lib/{reflection-0qTvw2It.js → reflection-BvM0w1R4.js} +132 -92
  28. package/lib/{text-CbGQhK1-.js → text-CzqhC8sT.js} +11 -1
  29. package/lib/{turn-guard-BzNeGNnc.js → turn-guard-Ygdww1Wt.js} +3 -3
  30. package/package.json +2 -2
  31. package/prompts/en/checks/decide-stated.md +1 -0
  32. package/prompts/zh/checks/decide-stated.md +1 -0
@@ -1,10 +1,10 @@
1
1
  import { l as roleplaySessionOf, t as promptFor } from "./access-CXtaZNbx.js";
2
- import { B as noAt, H as yesAt, I as announceProblem, L as askYesNo, R as mergeReports, V as routeVerdicts, f as sha, o as listPresets, s as loadPreset } from "./presets-CvpsW_10.js";
3
- import { D as describeTime, O as describeWhen, Q as PROMPTS_FOLDER, j as answerLimits, tt as inheritPrompts, z as wrongLanguage } from "./hooks-DTjHWTfx.js";
4
- import { i as translator, r as languageOf, t as trimCharacters } from "./text-CbGQhK1-.js";
5
- import { a as childTrace, c as runChild, n as childModel, r as childSampling, x as estimateAnswer } from "./child-Dtv76jNx.js";
6
- import { s as inheritImages } from "./library-GIlrkOim.js";
7
- import { i as inheritPacks } from "./packs-UpK_cvI4.js";
2
+ import { H as routeVerdicts, L as announceProblem, R as askYesNo, U as yesAt, V as noAt, f as sha, o as listPresets, s as loadPreset, z as mergeReports } from "./presets-9_MNxwaw.js";
3
+ import { A as answerLimits, D as describeWhen, E as describeTime, Q as PROMPTS_FOLDER, R as wrongLanguage, tt as inheritPrompts } from "./hooks-BuQ61nvQ.js";
4
+ import { i as translator, r as languageOf, t as trimCharacters } from "./text-CzqhC8sT.js";
5
+ import { S as estimateAnswer, a as childTrace, c as runChild, n as childModel, r as childSampling } from "./child-C8r8AFpm.js";
6
+ import { s as inheritImages } from "./library-CH-ahlm0.js";
7
+ import { i as inheritPacks } from "./packs-B88bxt8E.js";
8
8
  import { dirname, join } from "node:path";
9
9
  import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
10
10
  import { createUserMessage } from "@deepseek-ai/dsh-llm";
@@ -21,6 +21,89 @@ const MEMORY_CONFIDENCES = [
21
21
  "likely",
22
22
  "sure"
23
23
  ];
24
+ // src/shared/timeline.ts
25
+ const emptyTimeline = () => ({
26
+ version: 1,
27
+ head: null,
28
+ next: 1,
29
+ nodes: []
30
+ });
31
+ /** The turns from the first to `id`, in order; none for the start. */
32
+ function pathTo(timeline, id) {
33
+ const byId = new Map(timeline.nodes.map((node) => [node.id, node]));
34
+ const path = [];
35
+ for (let at = id === null ? void 0 : byId.get(id); at !== void 0; at = at.parent === null ? void 0 : byId.get(at.parent)) path.unshift(at);
36
+ return path;
37
+ }
38
+ /** The turns that follow `parent`, in the order they were played. */
39
+ const childrenOf = (timeline, parent) => timeline.nodes.filter((node) => node.parent === parent);
40
+ /** The snapshot that holds the state before any turn. */
41
+ const START_SNAPSHOT = "start";
42
+ /** The snapshot that holds the state after a turn. */
43
+ const snapshotOf = (id) => `after-${id}`;
44
+ /** Builds what the client shows from the timeline. */
45
+ function viewOf(timeline) {
46
+ const turn = (node) => ({
47
+ id: node.id,
48
+ turn: node.turn,
49
+ player: node.player,
50
+ ...node.label === void 0 ? {} : { label: node.label },
51
+ ...node.note === void 0 ? {} : { note: node.note },
52
+ ...node.endSeq === void 0 ? {} : { endSeq: node.endSeq },
53
+ ...node.output === void 0 ? {} : { output: node.output },
54
+ restorable: node.snapshot !== void 0,
55
+ alternatives: childrenOf(timeline, node.parent).map((sibling) => sibling.id)
56
+ });
57
+ const on = new Set(pathTo(timeline, timeline.head).map((node) => node.id));
58
+ const withdrawn = timeline.nodes.filter((node) => !on.has(node.id) && node.userSeq >= 0).map((node) => ({
59
+ from: Math.min(node.startSeq ?? node.userSeq, node.userSeq),
60
+ to: node.endSeq ?? Number.MAX_SAFE_INTEGER
61
+ }));
62
+ return {
63
+ head: timeline.head,
64
+ path: pathTo(timeline, timeline.head).map(turn),
65
+ forward: childrenOf(timeline, timeline.head).map(turn),
66
+ canStart: true,
67
+ withdrawn
68
+ };
69
+ }
70
+ /** Where a notice stands for a turn that is not told by its own events: the player's words and what was delivered, as plain text. */
71
+ function noticeText(node) {
72
+ const told = node.output === void 0 ? "(nothing was delivered)" : node.output.segments.map((segment) => segment.type === "utterance" ? `${segment.name}: "${segment.text}"` : segment.text).join("\n");
73
+ const ooc = node.output?.ooc;
74
+ const ruling = ooc === void 0 ? "" : ooc.question === true ? `\nThe question was answered out of character: ${ooc.note}` : `\nThe command was ruled ${ooc.legal ? "legal" : "illegal and refused"}: ${ooc.note}`;
75
+ return `The story, as it went earlier (restored):\nThe player said: ${node.player}${ruling}\nIt was told to the player:\n${told}`;
76
+ }
77
+ // src/host/timeline/file.ts
78
+ const TIMELINE_FILE = "timeline.json";
79
+ function isNode(value) {
80
+ if (typeof value !== "object" || value === null) return false;
81
+ const node = value;
82
+ return typeof node["id"] === "string" && (node["parent"] === null || typeof node["parent"] === "string") && typeof node["turn"] === "number" && typeof node["userSeq"] === "number" && typeof node["player"] === "string" && typeof node["createdAt"] === "string";
83
+ }
84
+ /**
85
+ * The timeline of a session, or an empty one when it has none yet.
86
+ * @throws {Error} when the file is there and is not a timeline: it holds what lets the story be taken back, so it is not replaced silently.
87
+ */
88
+ function readTimeline(folder) {
89
+ let text;
90
+ try {
91
+ text = readFileSync(join(folder, TIMELINE_FILE), "utf8");
92
+ } catch (error) {
93
+ if (error.code === "ENOENT") return emptyTimeline();
94
+ throw error;
95
+ }
96
+ const value = JSON.parse(text);
97
+ if (value.version !== 1 || !Array.isArray(value.nodes) || !value.nodes.every(isNode) || typeof value.next !== "number" || value.head !== null && typeof value.head !== "string") throw new Error(`${join(folder, TIMELINE_FILE)} is not a timeline`);
98
+ return value;
99
+ }
100
+ /** Writes it aside and renames it, so a crash leaves the timeline as it was. */
101
+ function writeTimeline(folder, timeline) {
102
+ const target = join(folder, TIMELINE_FILE);
103
+ const aside = `${target}.writing`;
104
+ writeFileSync(aside, JSON.stringify(timeline, null, 2));
105
+ renameSync(aside, target);
106
+ }
24
107
  // src/host/orchestration/referent.ts
25
108
  /**
26
109
  * How a person is named wherever the text may go on to say what they do: the name with the pronouns the world gave them, or the gender when only that is given.
@@ -738,87 +821,6 @@ function inheritPreset(from, to) {
738
821
  const file = join(from, PRESET_RECORD);
739
822
  if (existsSync(file)) copyFileSync(file, join(to, PRESET_RECORD));
740
823
  }
741
- // src/shared/timeline.ts
742
- const emptyTimeline = () => ({
743
- version: 1,
744
- head: null,
745
- next: 1,
746
- nodes: []
747
- });
748
- /** The turns from the first to `id`, in order; none for the start. */
749
- function pathTo(timeline, id) {
750
- const byId = new Map(timeline.nodes.map((node) => [node.id, node]));
751
- const path = [];
752
- for (let at = id === null ? void 0 : byId.get(id); at !== void 0; at = at.parent === null ? void 0 : byId.get(at.parent)) path.unshift(at);
753
- return path;
754
- }
755
- /** The turns that follow `parent`, in the order they were played. */
756
- const childrenOf = (timeline, parent) => timeline.nodes.filter((node) => node.parent === parent);
757
- /** The snapshot that holds the state before any turn. */
758
- const START_SNAPSHOT = "start";
759
- /** The snapshot that holds the state after a turn. */
760
- const snapshotOf = (id) => `after-${id}`;
761
- /** Builds what the client shows from the timeline. */
762
- function viewOf(timeline) {
763
- const turn = (node) => ({
764
- id: node.id,
765
- turn: node.turn,
766
- player: node.player,
767
- ...node.endSeq === void 0 ? {} : { endSeq: node.endSeq },
768
- ...node.output === void 0 ? {} : { output: node.output },
769
- restorable: node.snapshot !== void 0,
770
- alternatives: childrenOf(timeline, node.parent).map((sibling) => sibling.id)
771
- });
772
- const on = new Set(pathTo(timeline, timeline.head).map((node) => node.id));
773
- const withdrawn = timeline.nodes.filter((node) => !on.has(node.id) && node.userSeq >= 0).map((node) => ({
774
- from: Math.min(node.startSeq ?? node.userSeq, node.userSeq),
775
- to: node.endSeq ?? Number.MAX_SAFE_INTEGER
776
- }));
777
- return {
778
- head: timeline.head,
779
- path: pathTo(timeline, timeline.head).map(turn),
780
- forward: childrenOf(timeline, timeline.head).map(turn),
781
- canStart: true,
782
- withdrawn
783
- };
784
- }
785
- /** Where a notice stands for a turn that is not told by its own events: the player's words and what was delivered, as plain text. */
786
- function noticeText(node) {
787
- const told = node.output === void 0 ? "(nothing was delivered)" : node.output.segments.map((segment) => segment.type === "utterance" ? `${segment.name}: "${segment.text}"` : segment.text).join("\n");
788
- const ooc = node.output?.ooc;
789
- const ruling = ooc === void 0 ? "" : ooc.question === true ? `\nThe question was answered out of character: ${ooc.note}` : `\nThe command was ruled ${ooc.legal ? "legal" : "illegal and refused"}: ${ooc.note}`;
790
- return `The story, as it went earlier (restored):\nThe player said: ${node.player}${ruling}\nIt was told to the player:\n${told}`;
791
- }
792
- // src/host/timeline/file.ts
793
- const TIMELINE_FILE = "timeline.json";
794
- function isNode(value) {
795
- if (typeof value !== "object" || value === null) return false;
796
- const node = value;
797
- return typeof node["id"] === "string" && (node["parent"] === null || typeof node["parent"] === "string") && typeof node["turn"] === "number" && typeof node["userSeq"] === "number" && typeof node["player"] === "string" && typeof node["createdAt"] === "string";
798
- }
799
- /**
800
- * The timeline of a session, or an empty one when it has none yet.
801
- * @throws {Error} when the file is there and is not a timeline: it holds what lets the story be taken back, so it is not replaced silently.
802
- */
803
- function readTimeline(folder) {
804
- let text;
805
- try {
806
- text = readFileSync(join(folder, TIMELINE_FILE), "utf8");
807
- } catch (error) {
808
- if (error.code === "ENOENT") return emptyTimeline();
809
- throw error;
810
- }
811
- const value = JSON.parse(text);
812
- if (value.version !== 1 || !Array.isArray(value.nodes) || !value.nodes.every(isNode) || typeof value.next !== "number" || value.head !== null && typeof value.head !== "string") throw new Error(`${join(folder, TIMELINE_FILE)} is not a timeline`);
813
- return value;
814
- }
815
- /** Writes it aside and renames it, so a crash leaves the timeline as it was. */
816
- function writeTimeline(folder, timeline) {
817
- const target = join(folder, TIMELINE_FILE);
818
- const aside = `${target}.writing`;
819
- writeFileSync(aside, JSON.stringify(timeline, null, 2));
820
- renameSync(aside, target);
821
- }
822
824
  // src/host/timeline/branch.ts
823
825
  var BranchError = class extends Error {};
824
826
  /**
@@ -1022,8 +1024,8 @@ var Timelines = class {
1022
1024
  writeTimeline(this.folder(id), timeline);
1023
1025
  }
1024
1026
  /** Keeps the state as it is under the name of the turn it follows from, when that is not done yet. */
1025
- keep(id, timeline, at) {
1026
- if (this.deps.keepSnapshots(id) === 0) return;
1027
+ keep(id, timeline, at, force = false) {
1028
+ if (!force && this.deps.keepSnapshots(id) === 0) return;
1027
1029
  const node = at === null ? void 0 : timeline.nodes.find((candidate) => candidate.id === at);
1028
1030
  const name = node === void 0 ? START_SNAPSHOT : snapshotOf(node.id);
1029
1031
  if (node !== void 0 && node.snapshot !== void 0) return;
@@ -1034,10 +1036,48 @@ var Timelines = class {
1034
1036
  writeTimeline(this.folder(id), timeline);
1035
1037
  }
1036
1038
  }
1039
+ /**
1040
+ * Names a turn as a checkpoint, with a note: its state is kept (taken now when the story stands there and has not kept it) and no longer pruned.
1041
+ * @throws {TimelineError} when there is no such turn, the name is empty or too long, or the turn's state is gone.
1042
+ */
1043
+ mark(chat, target, label, note) {
1044
+ return this.serial(chat, async () => {
1045
+ const id = this.idOf(chat);
1046
+ const name = label.trim();
1047
+ if (name === "" || name.length > 80) throw new TimelineError(`a checkpoint's name is 1 to 80 characters`);
1048
+ if (note !== void 0 && note.length > 500) throw new TimelineError(`a checkpoint's note is at most 500 characters`);
1049
+ const timeline = this.read(id);
1050
+ const node = timeline.nodes.find((candidate) => candidate.id === target);
1051
+ if (node === void 0) throw new TimelineError(`there is no turn "${target}"`);
1052
+ if (node.snapshot === void 0 && timeline.head === node.id) {
1053
+ await this.deps.engine.quiesce(chat);
1054
+ this.keep(id, timeline, node.id, true);
1055
+ }
1056
+ if (node.snapshot === void 0) throw new TimelineError("the state of the story at that turn was not kept, so it cannot be a checkpoint");
1057
+ node.label = name;
1058
+ if (note === void 0 || note.trim() === "") delete node.note;
1059
+ else node.note = note.trim();
1060
+ writeTimeline(this.folder(id), timeline);
1061
+ });
1062
+ }
1063
+ /** Takes the name off a turn; its state is kept or let go like any other turn's. */
1064
+ unmark(chat, target) {
1065
+ return this.serial(chat, () => {
1066
+ const id = this.idOf(chat);
1067
+ const timeline = this.read(id);
1068
+ const node = timeline.nodes.find((candidate) => candidate.id === target);
1069
+ if (node === void 0) throw new TimelineError(`there is no turn "${target}"`);
1070
+ delete node.label;
1071
+ delete node.note;
1072
+ writeTimeline(this.folder(id), timeline);
1073
+ this.prune(id, timeline);
1074
+ return Promise.resolve();
1075
+ });
1076
+ }
1037
1077
  /** Lets the oldest snapshots go: only the turns most recently played keep theirs, and the one that holds the start stays. */
1038
1078
  prune(id, timeline) {
1039
1079
  const keep = this.deps.keepSnapshots(id);
1040
- const kept = timeline.nodes.filter((node) => node.snapshot !== void 0);
1080
+ const kept = timeline.nodes.filter((node) => node.snapshot !== void 0 && node.label === void 0);
1041
1081
  const dropped = kept.slice(0, Math.max(0, kept.length - keep));
1042
1082
  if (dropped.length === 0) return;
1043
1083
  for (const node of dropped) {
@@ -2053,6 +2093,6 @@ function memoryReflector(deps) {
2053
2093
  return { characters };
2054
2094
  } };
2055
2095
  }
2056
- export { referent as _, whereabouts as a, readTimeline as c, copyPreset as d, presetStatus as f, sameWords as g, defaultBoundaries as h, reflectionStatus as i, writeTimeline as l, switchPreset as m, memoryReflector as n, TimelineError as o, recordPreset as p, recordFailure as r, Timelines as s, dueReflection as t, pathTo as u };
2096
+ export { START_SNAPSHOT as _, whereabouts as a, snapshotOf as b, copyPreset as c, switchPreset as d, defaultBoundaries as f, writeTimeline as g, readTimeline as h, reflectionStatus as i, presetStatus as l, referent as m, memoryReflector as n, TimelineError as o, sameWords as p, recordFailure as r, Timelines as s, dueReflection as t, recordPreset as u, childrenOf as v, pathTo as y };
2057
2097
 
2058
- //# sourceMappingURL=reflection-0qTvw2It.js.map
2098
+ //# sourceMappingURL=reflection-BvM0w1R4.js.map
@@ -215,6 +215,16 @@ const ZH = {
215
215
  "## MCP resource servers\n\nUse {tools} with the server argument naming an MCP server.": "## MCP 资源服务器\n\n使用 {tools},server 参数填 MCP 服务器的名称。",
216
216
  "## MCP resource servers\n\nUse {tools} with one of these names as the server argument: {servers}.": "## MCP 资源服务器\n\n使用 {tools},server 参数填下列名称之一:{servers}。",
217
217
  "{where}: the text is longer than {max} characters. A belief is not rewritten to hold what speaks against it: leave the text out and list the belief under doubt with the numbers of what speaks against it, and put what was learned as a new belief of its own": "{where}:文字超过 {max} 个字符。不要通过改写信念来容纳与之相悖的事:不要写文字,把这条信念列入 doubt 并给出与之相悖的编号;新了解到的内容另写成一条新信念",
218
+ "The source is a {format} card with {entries} lorebook entries and {greetings} alternate openings.": "来源是一张 {format} 角色卡,含 {entries} 条世界书条目和 {greetings} 个备选开场。",
219
+ "{count} regular expressions": "{count} 条正则表达式",
220
+ "{count} helper scripts": "{count} 个辅助脚本",
221
+ "macros ({names})": "宏({names})",
222
+ "tag blocks ({names})": "标签块({names})",
223
+ "Nothing runs them, so they are not carried: {parts}. Their effect is kept only where the card also says it in words.": "这些内容不会被执行,所以不会带入:{parts}。只有卡片同时用文字写明的效果才会保留。",
224
+ "this chat follows the clock on the wall, so time cannot be skipped": "这个对话跟随墙上的时钟,所以不能跳过时间",
225
+ "say how long, for example /wait 2 hours or /wait 30 minutes until the ferry": "请说明要等多久,例如 /wait 2 hours,或 /wait 30 minutes until the ferry",
226
+ "that is more than the {days} days this chat allows in one skip": "这超过了本对话一次最多可跳过的 {days} 天",
227
+ "The player lets {minutes} minutes pass{reason}. Move the story's time on by that much with advance_time, and let the world move meanwhile as it would: characters keep to their days, and you ask only those the time reaches. Stop sooner, at the moment it happens, if something comes up that the player must decide or could not sleep through, say what, and let the player act. Then narrate what the player perceived in the time that passed. You may play at most {rounds} rounds for this.": "玩家让 {minutes} 分钟过去{reason}。用 advance_time 把故事时间推进这么久,期间让世界照常运转:角色按各自的日程行事,你只询问时间涉及到的那些人。如果出现了玩家必须决定、或睡不过去的事,就在它发生的那一刻提前停下,说明是什么,让玩家行动。然后叙述玩家在这段时间里感知到的内容。为此你最多可以进行 {rounds} 轮。",
218
228
  "Import this card into this newly created world.": "把这张卡片导入这个新建的世界。",
219
229
  "The character card this world was made from has a newer version, kept in this world's .import/update folder. Bring the world up to date with it. First call card_diff: it lists what changed between the two versions, which characters, places and things were made from each changed piece, and which files of the world have been edited since the import. Read the pieces you need with card_read (version current is the old card, version new is the new one). Then change only what the new card changed, with your editing tools, and keep what the person has edited since the import. What the card says about the world itself (its description, tags and opening) is changed with edit_world_info. Remove what only a dropped piece made unless the person edited it. Do not add what neither version of the card says. When the world matches the new card, call check_card with version new: it lists what the new card changed that the world does not say yet; deal with each finding or say why you left it. Then call card_update_finish, and tell me briefly what you changed, what you left alone and why.": "这个世界所依据的角色卡有了新版本,放在这个世界的 .import/update 文件夹里。请让世界与它保持一致。先调用 card_diff:它会列出两个版本之间的变化、每个变化的片段生成了哪些角色、地点和物品,以及导入之后世界里哪些文件被修改过。需要时用 card_read 读取片段(version 为 current 是旧卡,为 new 是新卡)。然后用你的编辑工具只改新卡改动的部分,并保留用户在导入之后做的修改。卡片对世界本身的描述(简介、标签和开场)用 edit_world_info 修改。只由已被删除的片段生成、且用户没有改过的内容,要移除。两个版本的卡都没有写的内容,一概不要添加。世界与新卡一致后,调用 check_card 并设 version 为 new:它会列出新卡改动了、而世界里还没有写到的内容;逐条处理,或说明为什么不处理。然后调用 card_update_finish,再简要告诉我:你改了什么、哪些没动以及原因。",
220
230
  "The update from the newer card is not finished. Apply the changes that remain and call card_update_finish. A change you cannot make with your tools, or one you need the person to decide, goes in your report instead; then say what is left.": "按新卡更新还没有完成。请应用剩下的改动,然后调用 card_update_finish。你的工具做不了的改动,或需要用户决定的改动,写进报告里;然后说明还剩什么。",
@@ -301,4 +311,4 @@ function withoutExtension(value) {
301
311
  }
302
312
  export { translator as i, withoutExtension as n, languageOf as r, trimCharacters as t };
303
313
 
304
- //# sourceMappingURL=text-CbGQhK1-.js.map
314
+ //# sourceMappingURL=text-CzqhC8sT.js.map
@@ -1,5 +1,5 @@
1
- import { b as finishOf, y as cutOff } from "./child-Dtv76jNx.js";
2
- import { d as guardRepeatedCalls } from "./hooks-DTjHWTfx.js";
1
+ import { b as cutOff, x as finishOf } from "./child-C8r8AFpm.js";
2
+ import { d as guardRepeatedCalls } from "./hooks-BuQ61nvQ.js";
3
3
  import { ReasoningEffortId, createUserMessage } from "@deepseek-ai/dsh-llm";
4
4
  // src/host/authoring/turn-guard.ts
5
5
  /**
@@ -49,4 +49,4 @@ function guardAuthoringTurns(ctx, prompts, languageOf, reasoning = () => "") {
49
49
  }
50
50
  export { guardAuthoringTurns as t };
51
51
 
52
- //# sourceMappingURL=turn-guard-BzNeGNnc.js.map
52
+ //# sourceMappingURL=turn-guard-Ygdww1Wt.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-agentic-roleplay/core",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Core plugin of the agentic roleplay bundle for DeepSeek Harness: roleplay UI, orchestration and storage.",
5
5
  "author": {
6
6
  "name": "Firefox2100",
@@ -76,7 +76,7 @@
76
76
  "@deepseek-ai/schemastery": "^3.18.5"
77
77
  },
78
78
  "dependencies": {
79
- "@dsh-agentic-roleplay/state": "0.10.0",
79
+ "@dsh-agentic-roleplay/state": "0.10.1",
80
80
  "@dsh-ai-providers/core": "^0.5.0"
81
81
  },
82
82
  "devDependencies": {
@@ -0,0 +1 @@
1
+ A fact and a text are given, and sometimes the subject the text is about. Does the text state the fact, in any wording or language? Judge the fact as it is given: a fact that holds a cause, a number or a name that the text leaves out is not stated, even when the rest of it is. A text that only mentions the same person or place without stating the fact does not either. When a subject is given and the fact is about someone or something else, it is not the text's to state: answer yes. Answer yes when the text says it, and give the reason in a sentence.
@@ -0,0 +1 @@
1
+ 下面给出一个事实和一段文字,有时还给出这段文字所写的对象。这段文字说出了这个事实吗?不论措辞或语言。按给出的事实原样判断:事实里含有原因、数字或名字,而文字没有写,即使其余部分写了,也不算说出。文字只是提到同一个人或地点、却没有陈述这个事实,同样不算。给出了对象、而事实说的是别的人或事物时,那不是这段文字要写的内容:回答是。文字说了就回答是,并用一句话说明理由。