@dsh-agentic-roleplay/core 0.8.1 → 0.9.0
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.
- package/lib/{access-DtOxFKBK.js → access-CfQWbNZP.js} +4 -7
- package/lib/{authoring-tools-DNnx0Nts.js → authoring-tools-CdHlvx32.js} +2125 -152
- package/lib/authoring.js +143 -47
- package/lib/{child-D6mpkkCE.js → child-lYYeOwl2.js} +28 -51
- package/lib/client.js +611 -774
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +8 -13
- package/lib/{doctor-chat-ByDfCMeo.js → doctor-chat-hL1a61hp.js} +2 -3
- package/lib/doctor.js +6 -8
- package/lib/{gallery-D9nG3C78.js → gallery-BKh7eu80.js} +3 -4
- package/lib/{generator-r1Czm7oi.js → generator-DdZ1-sgv.js} +3 -4
- package/lib/helper.js +2 -3
- package/lib/{hooks-BQCzgggH.js → hooks-CcQj_dJo.js} +69 -97
- package/lib/images.js +4 -4
- package/lib/index.js +195 -265
- package/lib/{library-zI-2tG7h.js → library-QFL6Z_Nr.js} +9 -15
- package/lib/{lorebook-author-tools-ywaYicwd.js → lorebook-author-tools-DWBnYo1E.js} +10 -13
- package/lib/lorebook-authoring.js +5 -6
- package/lib/{narration-CnBlVure.js → narration-CjB_KwwY.js} +9 -15
- package/lib/orchestration.js +53 -64
- package/lib/{pack-jail-5EJ-WYyW.js → pack-jail-BMy6NcCY.js} +81 -788
- package/lib/{packs-Cv8hanXJ.js → packs-BREPSfHy.js} +6 -10
- package/lib/{presenter-agent-BSaMSd3G.js → presenter-agent-B49-_iUm.js} +12 -18
- package/lib/{preset-CWI3-0r1.js → preset-BqgY1Tz4.js} +5 -6
- package/lib/{preset-author-tools-BrJYa2cr.js → preset-author-tools-BB_Dcv2o.js} +12 -14
- package/lib/preset-authoring.js +6 -7
- package/lib/{presets-MwOSMMyu.js → presets-Bwnrx7p0.js} +69 -63
- package/lib/{reflection-zSaMsjKj.js → reflection-CUWG-6Qg.js} +19 -30
- package/lib/{text-BzudpQLS.js → text-CbGQhK1-.js} +9 -10
- package/lib/{turn-guard-Cv8pfHEA.js → turn-guard-Bb8Ew-1z.js} +6 -11
- package/package.json +29 -29
- package/prompts/en/checks/decide-sheet.md +1 -0
- package/prompts/en/checks/fidelity.md +7 -0
- package/prompts/en/checks/gaps.md +4 -0
- package/prompts/en/checks/notice.md +3 -0
- package/prompts/en/import/casting.md +1 -1
- package/prompts/en/import/character.md +1 -0
- package/prompts/en/import/finish-draft.md +1 -1
- package/prompts/en/import/finish-ok.md +3 -1
- package/prompts/en/import/notice-repair.md +2 -2
- package/prompts/en/import/repair-again.md +2 -2
- package/prompts/zh/checks/decide-sheet.md +1 -0
- package/prompts/zh/checks/fidelity.md +7 -0
- package/prompts/zh/checks/gaps.md +4 -0
- package/prompts/zh/checks/notice.md +3 -0
- package/prompts/zh/import/casting.md +1 -1
- package/prompts/zh/import/character.md +1 -0
- package/prompts/zh/import/finish-draft.md +1 -1
- package/prompts/zh/import/finish-ok.md +3 -1
- package/prompts/zh/import/notice-repair.md +2 -2
- package/prompts/zh/import/repair-again.md +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { o as roleplaySessionOf, t as promptFor } from "./access-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as translator, r as languageOf, t as trimCharacters } from "./text-
|
|
5
|
-
import { a as childTrace, c as runChild, n as childModel, r as childSampling, v as estimateAnswer } from "./child-
|
|
6
|
-
import { s as inheritImages } from "./library-
|
|
7
|
-
import { i as inheritPacks } from "./packs-
|
|
1
|
+
import { o as roleplaySessionOf, t as promptFor } from "./access-CfQWbNZP.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-Bwnrx7p0.js";
|
|
3
|
+
import { A as answerLimits, D as describeWhen, E as describeTime, R as wrongLanguage, Z as PROMPTS_FOLDER, et as inheritPrompts } from "./hooks-CcQj_dJo.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, v as estimateAnswer } from "./child-lYYeOwl2.js";
|
|
6
|
+
import { s as inheritImages } from "./library-QFL6Z_Nr.js";
|
|
7
|
+
import { i as inheritPacks } from "./packs-BREPSfHy.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";
|
|
11
11
|
import { MINUTE, characterKey, describeDuration, locationKey, mentioned, overlap, sessionDatabase, sessionFolder, tokens } from "@dsh-agentic-roleplay/state";
|
|
12
|
-
|
|
12
|
+
// ../dsh-roleplay-model/src/memory.ts
|
|
13
13
|
const MEMORY_KINDS = [
|
|
14
14
|
"belief",
|
|
15
15
|
"relationship",
|
|
@@ -21,8 +21,7 @@ const MEMORY_CONFIDENCES = [
|
|
|
21
21
|
"likely",
|
|
22
22
|
"sure"
|
|
23
23
|
];
|
|
24
|
-
|
|
25
|
-
//#region src/host/orchestration/referent.ts
|
|
24
|
+
// src/host/orchestration/referent.ts
|
|
26
25
|
/**
|
|
27
26
|
* 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.
|
|
28
27
|
* A model that is not told guesses, and a wrong guess written into a record or a narration is never corrected; nothing is made up when the world says neither.
|
|
@@ -31,8 +30,7 @@ function referent(character) {
|
|
|
31
30
|
const mark = [character.pronouns, character.gender].find((text) => text !== void 0 && text.trim() !== "")?.trim();
|
|
32
31
|
return mark === void 0 ? character.name : `${character.name} (${mark})`;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
//#region src/host/orchestration/defaults.ts
|
|
33
|
+
// src/host/orchestration/defaults.ts
|
|
36
34
|
const ENGLISH = translator("en");
|
|
37
35
|
/** What the instructions say about how long each part of a character's answer may run. */
|
|
38
36
|
const limitVariables = (language) => {
|
|
@@ -595,8 +593,7 @@ function defaultBoundaries() {
|
|
|
595
593
|
sceneContext: castSummary
|
|
596
594
|
};
|
|
597
595
|
}
|
|
598
|
-
|
|
599
|
-
//#region src/host/presets/apply.ts
|
|
596
|
+
// src/host/presets/apply.ts
|
|
600
597
|
/** Which preset a story's prompts came from, and what each copied file held: kept beside the story's database, so that a story can tell its copies from its own edits. */
|
|
601
598
|
const PRESET_RECORD = "preset.json";
|
|
602
599
|
const promptFile = (folder, path) => join(folder, PROMPTS_FOLDER, ...path.split("/"));
|
|
@@ -714,8 +711,7 @@ function inheritPreset(from, to) {
|
|
|
714
711
|
const file = join(from, PRESET_RECORD);
|
|
715
712
|
if (existsSync(file)) copyFileSync(file, join(to, PRESET_RECORD));
|
|
716
713
|
}
|
|
717
|
-
|
|
718
|
-
//#region src/shared/timeline.ts
|
|
714
|
+
// src/shared/timeline.ts
|
|
719
715
|
const emptyTimeline = () => ({
|
|
720
716
|
version: 1,
|
|
721
717
|
head: null,
|
|
@@ -766,8 +762,7 @@ function noticeText(node) {
|
|
|
766
762
|
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}`;
|
|
767
763
|
return `The story, as it went earlier (restored):\nThe player said: ${node.player}${ruling}\nIt was told to the player:\n${told}`;
|
|
768
764
|
}
|
|
769
|
-
|
|
770
|
-
//#region src/host/timeline/file.ts
|
|
765
|
+
// src/host/timeline/file.ts
|
|
771
766
|
const TIMELINE_FILE = "timeline.json";
|
|
772
767
|
function isNode(value) {
|
|
773
768
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -797,8 +792,7 @@ function writeTimeline(folder, timeline) {
|
|
|
797
792
|
writeFileSync(aside, JSON.stringify(timeline, null, 2));
|
|
798
793
|
renameSync(aside, target);
|
|
799
794
|
}
|
|
800
|
-
|
|
801
|
-
//#region src/host/timeline/branch.ts
|
|
795
|
+
// src/host/timeline/branch.ts
|
|
802
796
|
var BranchError = class extends Error {};
|
|
803
797
|
/**
|
|
804
798
|
* What a branch of a story cut at a log event keeps of the timeline: the turns that ended at or before it, standing at the one
|
|
@@ -848,8 +842,7 @@ function branchName(name) {
|
|
|
848
842
|
const next = start === trimmed.length ? `${name} 2` : `${trimmed.slice(0, start)}${Number(trimmed.slice(start)) + 1}`;
|
|
849
843
|
return next.length > 200 ? `${[...name].slice(0, 190).join("").trimEnd()} 2` : next;
|
|
850
844
|
}
|
|
851
|
-
|
|
852
|
-
//#region src/host/timeline/plan.ts
|
|
845
|
+
// src/host/timeline/plan.ts
|
|
853
846
|
/**
|
|
854
847
|
* Where the model's conversation has to be changed so that it carries the turns from the first to `target`, and no others.
|
|
855
848
|
* A turn is on the conversation when its own message is, or the notice that stands for it. The turns that stay are the longest
|
|
@@ -905,8 +898,7 @@ function planMove(timeline, target, surface) {
|
|
|
905
898
|
inject: path.slice(keptCount)
|
|
906
899
|
};
|
|
907
900
|
}
|
|
908
|
-
|
|
909
|
-
//#region src/host/timeline/service.ts
|
|
901
|
+
// src/host/timeline/service.ts
|
|
910
902
|
/** The text of the marker that stands for the turns it replaces: never empty, as a model service may refuse an empty message. */
|
|
911
903
|
const MARKER_TEXT = "(empty message)";
|
|
912
904
|
/** A turn that has not ended does not know yet where its own message is in the log. */
|
|
@@ -1127,8 +1119,7 @@ var Timelines = class {
|
|
|
1127
1119
|
return childrenOf(timeline, timeline.head);
|
|
1128
1120
|
}
|
|
1129
1121
|
};
|
|
1130
|
-
|
|
1131
|
-
//#region src/host/orchestration/whereabouts.ts
|
|
1122
|
+
// src/host/orchestration/whereabouts.ts
|
|
1132
1123
|
const within = (inner, outer, places) => {
|
|
1133
1124
|
const byId = new Map(places.map((place) => [place.id, place]));
|
|
1134
1125
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -1154,8 +1145,7 @@ function whereabouts(places, here, at) {
|
|
|
1154
1145
|
here
|
|
1155
1146
|
};
|
|
1156
1147
|
}
|
|
1157
|
-
|
|
1158
|
-
//#region src/host/memory/reflection.ts
|
|
1148
|
+
// src/host/memory/reflection.ts
|
|
1159
1149
|
const LAST_KEY = "reflection.last";
|
|
1160
1150
|
const CURSOR_KEY = "reflection.cursor";
|
|
1161
1151
|
const ANCHOR_KEY = "reflection.anchor";
|
|
@@ -2036,7 +2026,6 @@ function memoryReflector(deps) {
|
|
|
2036
2026
|
return { characters };
|
|
2037
2027
|
} };
|
|
2038
2028
|
}
|
|
2039
|
-
//#endregion
|
|
2040
2029
|
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 };
|
|
2041
2030
|
|
|
2042
|
-
//# sourceMappingURL=reflection-
|
|
2031
|
+
//# sourceMappingURL=reflection-CUWG-6Qg.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../dsh-roleplay-model/src/messages-zh.ts
|
|
2
2
|
/** The Chinese of the texts built in code, by the English that stands in the code. A `{name}` is filled in and must stand in both. */
|
|
3
3
|
const ZH = {
|
|
4
4
|
", ": ",",
|
|
@@ -216,7 +216,7 @@ const ZH = {
|
|
|
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
218
|
"Import this card into this newly created world.": "把这张卡片导入这个新建的世界。",
|
|
219
|
-
"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 card_update_finish,
|
|
219
|
+
"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
220
|
"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。你的工具做不了的改动,或需要用户决定的改动,写进报告里;然后说明还剩什么。",
|
|
221
221
|
"Turn the SillyTavern lorebook I uploaded into this lorebook: call {tool} with file {file}.": "把我上传的 SillyTavern 世界书转成这本世界书:调用 {tool},文件为 {file}。",
|
|
222
222
|
"Turn the SillyTavern preset I uploaded into this preset's prompts: call {tool} with file {file}.": "把我上传的 SillyTavern 预设转成这个预设的提示词:调用 {tool},文件为 {file}。",
|
|
@@ -249,8 +249,9 @@ const ZH = {
|
|
|
249
249
|
"{label}: how people are made up": "{label}:人物如何生成",
|
|
250
250
|
"{label}: rules and mechanics": "{label}:规则与机制",
|
|
251
251
|
"Already declared (do not declare them again):": "已经声明过的(不要重复声明):",
|
|
252
|
+
"The world itself brings in anyone this command calls for, after this turn: do not make them up yourself with expand_world.": "这个指令要求带入的人,由世界自己在本回合之后带入:不要自己用 expand_world 去造。",
|
|
252
253
|
"Passages about making people up:": "关于凭空生成人物的段落:",
|
|
253
|
-
"The player used the world's command /{word}: {description}": "玩家使用了这个世界的指令 /{word}:{description}",
|
|
254
|
+
"The player used the world's command /{word}: {description} It is part of the story, not an out-of-character command: play it in the story. The world raises and lowers the command's own flag itself: never change it.": "玩家使用了这个世界的指令 /{word}:{description} 这是故事的一部分,不是角色外的指令:在故事中演绎它。世界会自己升起和放下这个指令的标记:不要去改它。",
|
|
254
255
|
"All the pieces of this card, in order:": "这张卡的所有片段,按顺序:",
|
|
255
256
|
"The standing rules of this world. Apply them on every turn:": "这个世界的常驻规则。每个回合都要遵守:",
|
|
256
257
|
"The instructions of the card:": "卡片的指令:",
|
|
@@ -266,10 +267,10 @@ const ZH = {
|
|
|
266
267
|
"Scenario:": "场景:",
|
|
267
268
|
"Opening:": "开场:",
|
|
268
269
|
"Description:": "描述:",
|
|
269
|
-
"Creator's notes:": "作者备注:"
|
|
270
|
+
"Creator's notes:": "作者备注:",
|
|
271
|
+
"Document ({where}), about {subject}:": "文档({where}),关于 {subject}:"
|
|
270
272
|
};
|
|
271
|
-
|
|
272
|
-
//#region ../dsh-roleplay-model/src/messages.ts
|
|
273
|
+
// ../dsh-roleplay-model/src/messages.ts
|
|
273
274
|
/** The language a setting such as `zh-CN` or `en` stands for; English when it is none that is known. */
|
|
274
275
|
function languageOf(code) {
|
|
275
276
|
return (code ?? "").trim().toLowerCase().startsWith("zh") ? "zh" : "en";
|
|
@@ -284,8 +285,7 @@ function translator(language) {
|
|
|
284
285
|
const catalogue = language === "en" ? void 0 : CATALOGUES[language];
|
|
285
286
|
return (text, values) => fill(catalogue?.[text] ?? text, values);
|
|
286
287
|
}
|
|
287
|
-
|
|
288
|
-
//#region src/shared/text.ts
|
|
288
|
+
// src/shared/text.ts
|
|
289
289
|
/** Remove characters from either end without a backtracking regular expression. */
|
|
290
290
|
function trimCharacters(value, characters, edge = "both") {
|
|
291
291
|
let start = 0;
|
|
@@ -299,7 +299,6 @@ function withoutExtension(value) {
|
|
|
299
299
|
const dot = value.lastIndexOf(".");
|
|
300
300
|
return dot < 0 ? value : value.slice(0, dot);
|
|
301
301
|
}
|
|
302
|
-
//#endregion
|
|
303
302
|
export { translator as i, withoutExtension as n, languageOf as r, trimCharacters as t };
|
|
304
303
|
|
|
305
|
-
//# sourceMappingURL=text-
|
|
304
|
+
//# sourceMappingURL=text-CbGQhK1-.js.map
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as finishOf, g as cutOff } from "./child-lYYeOwl2.js";
|
|
2
|
+
import { d as guardRepeatedCalls } from "./hooks-CcQj_dJo.js";
|
|
3
3
|
import { ReasoningEffortId, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
4
|
-
|
|
5
|
-
/** Times one turn is steered back after a reply was cut off: a model that rambles again after being told not to will not stop because it is told once more. */
|
|
6
|
-
const MAX_NUDGES = 6;
|
|
7
|
-
/** How often one turn may make exactly the same call: an assistant that repeats a call past this is looping (found live: one create-and-list pair 47 times in one review), not working. */
|
|
8
|
-
const MAX_SAME_CALL = 3;
|
|
4
|
+
// src/host/authoring/turn-guard.ts
|
|
9
5
|
/**
|
|
10
6
|
* What keeps an authoring assistant (a chat that edits a world, a preset or a lorebook) from running away, besides the limit on what one request may write.
|
|
11
7
|
* - Its thinking level is the one the settings name for these assistants, when its model offers that level: thinking without end filled the whole request and left a turn with nothing done.
|
|
@@ -15,7 +11,7 @@ const MAX_SAME_CALL = 3;
|
|
|
15
11
|
*/
|
|
16
12
|
function guardAuthoringTurns(ctx, prompts, languageOf, reasoning = () => "") {
|
|
17
13
|
const nudged = /* @__PURE__ */ new Map();
|
|
18
|
-
guardRepeatedCalls(ctx, (exec) => exec.agent === void 0 ? void 0 : languageOf(exec.agent.session.id),
|
|
14
|
+
guardRepeatedCalls(ctx, (exec) => exec.agent === void 0 ? void 0 : languageOf(exec.agent.session.id), 3);
|
|
19
15
|
ctx.on("agent/request", async (payload, next) => {
|
|
20
16
|
const config = await next();
|
|
21
17
|
const level = reasoning();
|
|
@@ -40,7 +36,7 @@ function guardAuthoringTurns(ctx, prompts, languageOf, reasoning = () => "") {
|
|
|
40
36
|
nudged.delete(key);
|
|
41
37
|
return;
|
|
42
38
|
}
|
|
43
|
-
if (told >=
|
|
39
|
+
if (told >= 6) return;
|
|
44
40
|
nudged.set(key, told + 1);
|
|
45
41
|
agent.steer(createUserMessage({
|
|
46
42
|
content: [{
|
|
@@ -51,7 +47,6 @@ function guardAuthoringTurns(ctx, prompts, languageOf, reasoning = () => "") {
|
|
|
51
47
|
}));
|
|
52
48
|
});
|
|
53
49
|
}
|
|
54
|
-
//#endregion
|
|
55
50
|
export { guardAuthoringTurns as t };
|
|
56
51
|
|
|
57
|
-
//# sourceMappingURL=turn-guard-
|
|
52
|
+
//# sourceMappingURL=turn-guard-Bb8Ew-1z.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-agentic-roleplay/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
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,39 +76,39 @@
|
|
|
76
76
|
"@deepseek-ai/schemastery": "^3.18.5"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@dsh-agentic-roleplay/state": "0.
|
|
79
|
+
"@dsh-agentic-roleplay/state": "0.9.0",
|
|
80
80
|
"@dsh-ai-providers/core": "^0.5.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
84
84
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.6",
|
|
85
|
-
"@deepseek-ai/dsh-agent": "0.2.1-rc.
|
|
86
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.
|
|
87
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.
|
|
88
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.
|
|
89
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-rc.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.
|
|
100
|
-
"@deepseek-ai/dsh-compaction": "0.2.1-rc.
|
|
101
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.
|
|
102
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.
|
|
103
|
-
"@deepseek-ai/dsh-llm": "0.2.1-rc.
|
|
104
|
-
"@deepseek-ai/dsh-session": "0.2.1-rc.
|
|
105
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.
|
|
106
|
-
"@deepseek-ai/dsh-subagent": "0.2.1-rc.
|
|
107
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.
|
|
108
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.
|
|
109
|
-
"@deepseek-ai/dsh-token-meter": "0.2.1-rc.
|
|
110
|
-
"@deepseek-ai/dsh-tools": "0.2.1-rc.
|
|
111
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.
|
|
85
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.5",
|
|
86
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.5",
|
|
87
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.5",
|
|
88
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.5",
|
|
89
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.5",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.5",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.5",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.5",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.5",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.5",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.5",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.5",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
|
|
100
|
+
"@deepseek-ai/dsh-compaction": "0.2.1-rc.5",
|
|
101
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.5",
|
|
102
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.5",
|
|
103
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.5",
|
|
104
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.5",
|
|
105
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
|
|
106
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.5",
|
|
107
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.5",
|
|
108
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
|
|
109
|
+
"@deepseek-ai/dsh-token-meter": "0.2.1-rc.5",
|
|
110
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.5",
|
|
111
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
|
|
112
112
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
113
113
|
"@types/node": "^22.20.0",
|
|
114
114
|
"@types/react": "~18.3.1",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Is this character sheet enough to play the character convincingly? It is enough when it tells who the character is, how they talk or carry themselves, and what they want, fear or care about, so that someone who has read nothing else could answer in their voice and decide what they do. It is not enough when it is only a name and a line, or only a list of looks. Answer yes when it is enough, and give the reason in a sentence.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
You compare one document of a role-playing world with the pieces of the character card it was made from, and report what was lost or made up. You are given the source pieces and the document.
|
|
2
|
+
- The document is about one subject, named above it. Compare only what the source says about that subject; the source pieces may be about other people or places too, and what they say about those belongs to other documents.
|
|
3
|
+
- dropped: a fact the source states about this subject (a name, a date, a number, a cause, a habit, a relationship, a rule) that the document does not state or contradicts. Quote the passage of the source that states it, exactly as it is written there.
|
|
4
|
+
- invented: a fact the document states that the source does not give and that does not follow from it. Quote the passage of the document, exactly as it is written there.
|
|
5
|
+
- Judge by meaning, not by wording: a fact said in other words, or in another language, is kept. Style, order and length are not facts. Do not report what the document leaves out on purpose (instructions to the narrator, text addressed to the player).
|
|
6
|
+
- Report only what you are sure of, at most six of each. Report nothing when the document keeps the facts and adds none.
|
|
7
|
+
- Do not report what follows plainly from the source (a pronoun from a title, a role label, an entry's kind or layout), and give each passage once, with all the facts it holds in one entry.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
You review a role-playing world the way an editor reads a draft before it is played, and name what is missing for it to play well. You are given a digest of the world: what it says about itself, its characters, places, organisations, background entries and tracked values.
|
|
2
|
+
- Report only gaps you can see in the digest: a place that is described but has nobody and nothing in it to do, a conflict the background mentions that no character or organisation carries, a character who is named but has no reason to act, something the opening promises that the world never sets up, a rule or secret that nothing can ever reveal.
|
|
3
|
+
- Do not invent facts about the source of the world, and do not judge taste or style. Do not repeat what a file check would find (dangling references, unreachable places, duplicate names).
|
|
4
|
+
- For each gap, about is the key of the character, place, organisation or entry it concerns, or "world"; say what is missing, and what would fill it in one sentence. Name at most eight, the ones that matter most for play. Report nothing when you see no gap.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
The person ran ${command} (what they added: ${request}). Run the checks of this world with ${tools} and read every finding it returns.
|
|
2
|
+
Then act on them as a careful editor. Fix what is plainly wrong with your editing tools, one fix at a time; each edit asks the person as usual. Where a finding needs a choice (which of two duplicates to keep, what a missing thing should be), ask before changing anything. Leave what is acceptable as it is and say why. Do not invent facts to fill a gap; if the world's card is kept, read it (card_read, card_search) first. If a tool says the world has no card, skip it and say so instead of guessing what the card held. A finding that compares with the card is a pointer, not a verdict: read the piece with card_read before you change anything. Start with the quick checks. Call a tool with deep true when the request says deep or thorough, when the quick findings suggest the world is thin, or to confirm an import: that is where a model compares and judges, so it takes longer.
|
|
3
|
+
After your fixes run the same tool again and check that what you fixed is gone and nothing new appeared. Then tell the person in a few short sentences how many findings there were by severity, what you changed, and what is left and why. Then stop.
|
|
@@ -6,7 +6,7 @@ mechanisms: each time the card says that someone new is to be made, give one ent
|
|
|
6
6
|
- name: a short name.
|
|
7
7
|
- command: the word above that starts it, or empty.
|
|
8
8
|
- happens: when the card names no command, one sentence that says what must happen in the story for it to start, written as an event in the past tense ("The player's character brings a new follower into the cult"), never as a state ("there are few followers"). Empty when a command starts it.
|
|
9
|
-
- need:
|
|
9
|
+
- need: arrival when the new person comes into the scene from outside, introduction when someone who is already around is brought into play.
|
|
10
10
|
- text: the instruction the world author gets, in your own words from the card's: what the new person must be like. Write [draw] where one drawn option goes, when the card gives a list of kinds or situations to choose from; otherwise leave it out.
|
|
11
11
|
- options: the list of kinds or situations to choose one from, each as the card writes it; empty when the card gives none.
|
|
12
12
|
|
|
@@ -4,4 +4,5 @@ You write one character of a role-playing world, from pieces of a character card
|
|
|
4
4
|
- start: how they are when the story begins: what others can see (public_state), what they think and feel (inner_state), what they are doing (activity), the place they are in (location: a name from the list of places) and where in it (position, in words). Only when the pieces say.
|
|
5
5
|
- goals: what they want or are driving at, when the pieces say. relationships: how they stand towards others of the list: with (a name from the list of characters), label (a word or two), summary.
|
|
6
6
|
- tier: principal for someone the story is about, supporting for a recurring character, background for someone who only appears. kind: person, or group for a crowd or party that acts as one.
|
|
7
|
+
- carries: the things they have on them at the start (a weapon, a tool, a document, a keepsake), by the name the text gives them; things they only know of go in knows, not here.
|
|
7
8
|
- knows: the places and things of the lists that they know of, when the pieces say they do (places they have been to or live by, things they own, carry or have seen); not everything of the world, and not what they could only have learned later. ways: ways between two places of the list (from, to) that they know how to take, when the pieces say they have used or been shown them.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
The world was written, but as a draft: it would not start yet, and the problems are listed above. Repair them now with your editing tools (they run without asking during this turn), reading the original card with card_overview, card_read and card_search to restore what a dangling reference was meant to point at instead of cutting it. Call
|
|
1
|
+
The world was written, but as a draft: it would not start yet, and the problems are listed above. Repair them now with your editing tools (they run without asking during this turn), reading the original card with card_overview, card_read and card_search to restore what a dangling reference was meant to point at instead of cutting it. Call check_world after each round of fixes: it names the problems of the first part of the world that has any, so fixing one part can show the next, until it reports ok. Change only what is wrong, as little as needed, and never add what the card does not say. Then review the world as a careful editor (places and their ways, starting places, duplicates) and tell the person briefly what was imported, what was repaired and what is left.
|
|
@@ -2,8 +2,10 @@ The import is done and written into the world. Before you report, review it as a
|
|
|
2
2
|
- get_world_overview, then the places with their exits (list_relationships with exits, get_world_element_source): every way between places should lead somewhere the card implies; an exit to an unrelated place, a place nobody can reach, or a place that is in another by mistake is fixed or removed.
|
|
3
3
|
- Each character's starting place makes sense for the card, and the playable character (if any) starts somewhere the story can begin.
|
|
4
4
|
- Names, aliases and summaries read as the card meant them; duplicates (the same person twice) are merged by deleting the weaker one.
|
|
5
|
-
The card has no player character unless the import says so: notes about a relationship with [PLAYER] are expected, so leave them, and never make a character for the player. Change only what is wrong, as little as needed, and never add what the card does not say. Then tell the person briefly what was imported, what was left out and why, whether there is a playable character (if not, say that none was found and offer to add one), what you corrected, and any notes that matter. End by
|
|
5
|
+
The card has no player character unless the import says so: notes about a relationship with [PLAYER] are expected, so leave them, and never make a character for the player. Change only what is wrong, as little as needed, and never add what the card does not say. Then tell the person briefly what was imported, what was left out and why, whether there is a playable character (if not, say that none was found and offer to add one), what you corrected, and any notes that matter. End by saying that the person can check the world again whenever they like with /check (everything), /check-card (against the card) or /check-quality, and that adding deep to the request makes a model compare and judge. If the report shows pictures fetched from the card's web addresses, say how many; they are in the world's image library, so every session started from it has them in its gallery.
|
|
6
6
|
|
|
7
7
|
The import already turned the card's instructions about narration and behaviour into the world's prose prompts (the report lists them). You may adjust those, or write the other prose prompts (roleplay/persona, roleplay/style, roleplay/character-style) with write_world_prompt after reading the original with read_world_prompt, keeping the placeholders it has. Every other prompt holds the rules of the game and is refused to you. Add nothing the card does not ask for.
|
|
8
8
|
|
|
9
9
|
The report also says how many variables the card's panels and meters became (variables.json), how many of the card's other greetings the world offers as openings to choose from when a session starts, and whether the card's picture became the portrait of its character. Mention them briefly.
|
|
10
|
+
|
|
11
|
+
The report comes with `checks`: the checks the program runs on every import, already run and stored with the world (consistency of the world, comparison with the card, authoring quality). Read the findings. An error is for you to fix. A warning is a pointer: read the piece of the card with card_read, then fix what is wrong or say why you left it. An info is only worth a mention. The checks a model judges are not run yet. Run check_card with deep true when the card was long or many of its pieces were rewritten into lore, or when the quick findings show facts lost or made up; run check_quality with deep true when the cast has bare sheets or the world looks thin. After fixing, run the tool again to see that the finding is gone. Do not run them just to run them, and do not fill a gap with something the card does not say.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
The import of this card was written into the world as a draft, because the world would not start yet. This turn is its repair, started by the person. You may edit the world with your tools (they run without asking during this turn).
|
|
2
|
-
1. Call
|
|
2
|
+
1. Call check_world. It names the problems of the first part of the world that has any: where each is and what is wrong. Fixing them can show the problems of the next part, so call it again after each round of fixes, until it reports ok.
|
|
3
3
|
2. Read the original card (card_overview, card_read, card_search) to restore what a dangling reference was meant to point at, instead of cutting it: a character, place or organisation the card does have is created with create_world_element; a reference to something the card does not have is removed with the editing tools. Change only what is wrong, as little as needed, and never add what the card does not say.
|
|
4
|
-
3. When
|
|
4
|
+
3. When check_world reports ok, or when you cannot fix what is left, stop and tell the person in a few short sentences what you fixed and what is left, in the person's language. Do not run the import tools again.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The world still would not start after your changes, so the turn cannot end yet. These are the problems
|
|
1
|
+
The world still would not start after your changes, so the turn cannot end yet. These are the problems check_world reports now:
|
|
2
2
|
${problems}
|
|
3
|
-
Fix them with your editing tools, reading the original card (card_read, card_search) where something it described is missing, then call
|
|
3
|
+
Fix them with your editing tools, reading the original card (card_read, card_search) where something it described is missing, then call check_world again. Cut a reference only when the card has nothing it could point at. If you cannot fix what is left, say exactly what is left and why, and stop.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
这份角色设定足以让人令人信服地扮演这个角色吗?足够,是指它说明了这个角色是谁、怎么说话或举止,以及想要什么、害怕什么、在乎什么,使得没读过别的材料的人也能用他的口吻回答,并决定他会怎么做。不够,是指它只有名字和一句话,或只有一串外貌描写。足够就回答是,并用一句话说明理由。
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
你要把一个角色扮演世界的某份文档,与它所依据的角色卡片段对照,报告丢失了什么、编造了什么。你会拿到原文片段和这份文档。
|
|
2
|
+
- 文档只关于一个对象,名字写在文档上方。只对照原文就这个对象说的话;原文片段可能同时讲到别的人或地点,那些内容属于别的文档。
|
|
3
|
+
- dropped(丢失):原文就这个对象陈述的某个事实(名字、日期、数字、原因、习惯、关系、规则),文档没有陈述或与之矛盾。引用陈述它的原文段落,与原文写法完全一致。
|
|
4
|
+
- invented(编造):文档陈述了原文没有给出、也无法由原文推出的某个事实。引用文档中的段落,与文档写法完全一致。
|
|
5
|
+
- 按意思判断,不按措辞:换了说法或换了语言的事实算保留。文风、顺序、篇幅不是事实。文档有意略去的内容(给叙述者的指令、对玩家说的话)不要报告。
|
|
6
|
+
- 只报告你确定的,每类至多六条。文档保留了事实又没有添加时,什么都不报告。
|
|
7
|
+
- 可由原文直接推出的内容(由称呼推出的代词、角色标签、条目的类型或排版)不要报告;每段引文只报告一次,把其中的事实合并在同一条里。
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
你像编辑在游玩之前审阅草稿那样审阅一个角色扮演世界,指出它要玩得好还缺什么。你会拿到这个世界的概要:它对自身的说明、角色、地点、组织、背景条目和追踪的数值。
|
|
2
|
+
- 只报告你能在概要里看到的缺口:有描述却没有任何人或事可做的地点;背景里提到、却没有任何角色或组织承担的冲突;有名字却没有行动理由的角色;开场白许诺了、世界却从未铺垫的东西;永远不会被任何东西揭示的规则或秘密。
|
|
3
|
+
- 不要编造这个世界来源的事实,也不要评判趣味或文风。不要重复文件检查能发现的问题(悬空引用、无法到达的地点、重名)。
|
|
4
|
+
- 每个缺口,about 是它所涉及的角色、地点、组织或条目的 key,或者 "world";说明缺了什么,以及用一句话说明补上什么。至多列八条,选对游玩最重要的。看不到缺口时什么都不报告。
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
用户运行了 ${command}(附加内容:${request})。用 ${tools} 检查这个世界,并阅读它返回的每一条发现。
|
|
2
|
+
然后像一位细心的编辑那样处理:明显有误的,用你的编辑工具一处一处地修正,每次修改照常会请用户批准。如果某条发现需要做选择(两个重复项保留哪一个、缺失的东西应该是什么),先询问,再动手。可以接受的就保持原样,并说明原因。不要为了填补空缺而编造事实;如果世界保留了角色卡,先去读它(card_read、card_search)。 如果某个工具说这个世界没有角色卡,就跳过它并如实说明,不要猜测卡里有什么。与卡比较得出的发现只是线索,不是结论:修改任何东西之前,先用 card_read 读该段原文。 先用快速检查。当请求里说要深入或彻底检查、快速检查的结果显示世界内容单薄、或者要确认一次导入时,调用工具时把 deep 设为 true:那时由模型来比对和判断,耗时更长。
|
|
3
|
+
修正之后,再运行同一个工具,确认你修正的问题已经消失,也没有出现新的问题。然后用几句话告诉用户:各严重程度的发现各有多少条,你改了什么,还剩下什么以及原因。然后停下。
|
|
@@ -6,7 +6,7 @@ mechanisms(机制):卡片每说到一次要生成新的人物,就给出
|
|
|
6
6
|
- name:简短的名称。
|
|
7
7
|
- command:启动它的上面那个词,没有就留空。
|
|
8
8
|
- happens:卡片没有指令时,用一句话说明故事里必须发生什么才会启动它,写成已经发生的事件(“玩家的角色把一个新信徒带进了教团”),不要写成状态(“信徒很少”)。由指令启动时留空。
|
|
9
|
-
- need
|
|
9
|
+
- need:新人物从外面进入场景时写 arrival,已经在场的某个人被带入故事时写 introduction。
|
|
10
10
|
- text:给世界作者的指示,根据卡片的意思用你自己的话写:新人物必须是什么样。当卡片给出了可供挑选的类型或情境列表时,在应放入抽出选项的位置写 [draw];没有列表就不要写。
|
|
11
11
|
- options:可供挑选的类型或情境列表,每项按卡片的写法;卡片没有给出时留空。
|
|
12
12
|
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
- start:故事开始时他们的状态:别人看得到的(public_state)、他们所想所感(inner_state)、他们正在做的事(activity)、所在的地点(location:地点清单中的一个名字)以及在其中的具体位置(position,用文字描述)。只有当段落说了才填。
|
|
5
5
|
- goals:他们想要或追求的东西,段落说了才填。relationships:他们与清单中其他人的关系:with(角色清单中的一个名字)、label(一两个词)、summary。
|
|
6
6
|
- tier:故事围绕的人物用 principal,反复出现的角色用 supporting,只是偶尔出场的用 background。kind:person,或者对作为整体行动的人群、队伍用 group。
|
|
7
|
+
- carries:开始时带在身上的东西(武器、工具、文件、纪念物),用文本给的名字;只是知道的东西写在 knows,不写在这里。
|
|
7
8
|
- knows:清单中他们知道的地点和物品,只有当段落说明他们知道时才填(去过或住在附近的地方、拥有、携带或见过的物品);不是世界里的一切,也不包括他们日后才会得知的东西。ways:清单中两个地点之间他们知道怎么走的路线(from、to),只有当段落说明他们走过或被指过路时才填。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
世界已经写入,但是作为草稿写入的:它目前还无法开始,上面列出了问题。现在用编辑工具修复它们(本回合内这些工具无需询问即可执行),并用 card_overview、card_read 和 card_search 阅读原始角色卡,恢复悬空引用原本要指向的东西,而不是直接把引用砍掉。每修完一轮就调用
|
|
1
|
+
世界已经写入,但是作为草稿写入的:它目前还无法开始,上面列出了问题。现在用编辑工具修复它们(本回合内这些工具无需询问即可执行),并用 card_overview、card_read 和 card_search 阅读原始角色卡,恢复悬空引用原本要指向的东西,而不是直接把引用砍掉。每修完一轮就调用 check_world:它会指出世界中第一个有问题的部分,所以修好一处可能露出下一处,直到它报告 ok。只改有问题的地方,改动越小越好,绝不要添加卡里没写的内容。然后像一名细心的编辑那样检查这个世界(地点及其通路、起始地点、重复项),并简要告诉用户导入了什么、修复了什么、还剩什么。
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
- 先用 get_world_overview,再看各个地点及其出口(list_relationships 的出口、get_world_element_source):每条通路都应通向卡片所暗示的地方;通向毫不相干地点的出口、无法到达的地点、被错误放进另一个地点的地点,都要修正或删除。
|
|
3
3
|
- 每个角色的起始地点要符合卡片,可扮演的角色(如果有)要从故事能够开始的地方出发。
|
|
4
4
|
- 名字、别名和简介要符合卡片的本意;重复的人物(同一个人出现两次)删除较弱的那个。
|
|
5
|
-
除非导入另有说明,卡片没有玩家角色:关于与 [PLAYER]
|
|
5
|
+
除非导入另有说明,卡片没有玩家角色:关于与 [PLAYER] 的关系的备注是预料之中的,不要管它们,也绝不要为玩家创建角色。只改错误的地方,改动尽量少,绝不添加卡片没有说的内容。然后简要告诉用户:导入了什么、略去了什么以及原因、是否有可扮演的角色(如果没有,说明没有找到,并主动提出添加一个)、你纠正了什么,以及重要的备注。最后说明:用户随时可以用 /check(全部)、/check-card(对照角色卡)或 /check-quality 再次检查这个世界,请求里加上 deep 则由模型来比对和判断。如果报告显示从角色卡的网址取回了图片,说明数量;它们存放在世界的图片库中,由此世界开始的每个会话的画廊里都有。
|
|
6
6
|
|
|
7
7
|
导入已把角色卡中关于叙述和角色表现的指令整理成世界的文风提示(报告里列出)。你可以调整它们,或先用 read_world_prompt 读原文,再用 write_world_prompt 写其他文笔类提示(roleplay/persona、roleplay/style、roleplay/character-style),并保留其中的占位符。其他所有提示都是游戏规则,不允许你修改。角色卡没有要求的,一概不要添加。
|
|
8
8
|
|
|
9
9
|
报告还会说明:角色卡的状态栏和数值面板变成了多少个变量(variables.json)、角色卡的其他开场白有多少个成为开始会话时可选的开场、以及角色卡的图片是否成为了对应角色的立绘。请简要提及。
|
|
10
|
+
|
|
11
|
+
报告附带 `checks`:程序对每次导入都会运行的检查,已经运行并存放在世界里(世界自身的一致性、与卡片的对照、创作质量)。请阅读这些发现。错误由你修复。警告只是线索:先用 card_read 读卡片的对应片段,再修正有误之处,或说明为什么不改。提示只需一提。由模型判断的检查还没有运行。卡片很长、或其中很多片段被改写成了背景条目、或者快速检查显示有事实丢失或被编造时,用 deep 为 true 运行 check_card;角色设定很空、或世界显得单薄时,用 deep 为 true 运行 check_quality。修正之后再运行一次,确认那条发现消失了。不要为了运行而运行,也不要用卡片没有写的内容去填补空缺。
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
这张卡的导入结果已作为草稿写进世界,因为这个世界目前还无法开始。这一回合是对它的修复,由用户发起。你可以用工具编辑这个世界(本回合内这些工具无需询问即可执行)。
|
|
2
|
-
1. 先调用
|
|
2
|
+
1. 先调用 check_world。它会指出世界中第一个有问题的部分:每个问题在哪里、错在哪里。修好之后可能会露出下一个部分的问题,所以每修完一轮就再调用一次,直到它报告 ok。
|
|
3
3
|
2. 阅读原始角色卡(card_overview、card_read、card_search),用来恢复悬空引用原本要指向的东西,而不是直接把引用砍掉:卡里确实有的角色、地点或组织,用 create_world_element 创建;卡里没有的东西,用编辑工具把引用移除。只改有问题的地方,改动越小越好,绝不要添加卡里没写的内容。
|
|
4
|
-
3. 当
|
|
4
|
+
3. 当 check_world 报告 ok,或者剩下的问题你无法修复时,就停下,用几句话向用户说明你修了什么、还剩什么,使用用户的语言。不要再运行导入工具。
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
经过你的修改,这个世界仍然无法开始,所以这一回合还不能结束。
|
|
1
|
+
经过你的修改,这个世界仍然无法开始,所以这一回合还不能结束。check_world 现在报告的问题是:
|
|
2
2
|
${problems}
|
|
3
|
-
用编辑工具修复它们;如果卡里描述过的某样东西缺失了,就阅读原始角色卡(card_read、card_search)把它补回来,然后再次调用
|
|
3
|
+
用编辑工具修复它们;如果卡里描述过的某样东西缺失了,就阅读原始角色卡(card_read、card_search)把它补回来,然后再次调用 check_world。只有当卡里没有任何可指向的东西时,才删掉那条引用。如果剩下的问题你无法修复,就准确说明还剩什么、为什么,然后停下。
|