@dsh-agentic-roleplay/core 0.9.0 → 0.10.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-CfQWbNZP.js → access-CXtaZNbx.js} +50 -2
- package/lib/{authoring-tools-CdHlvx32.js → authoring-tools-B4mEdKp_.js} +1349 -604
- package/lib/authoring.js +23 -19
- package/lib/{child-lYYeOwl2.js → child-Dtv76jNx.js} +116 -11
- package/lib/client.js +2810 -795
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +3 -3
- package/lib/doctor.js +3 -3
- package/lib/{gallery-BKh7eu80.js → gallery-BZJleAeH.js} +5 -9
- package/lib/{generator-DdZ1-sgv.js → generator-Cg6CQc5S.js} +2 -2
- package/lib/helper.js +1 -1
- package/lib/{hooks-CcQj_dJo.js → hooks-DTjHWTfx.js} +168 -28
- package/lib/images.js +4 -4
- package/lib/index.js +362 -33
- package/lib/{library-QFL6Z_Nr.js → library-GIlrkOim.js} +9 -14
- package/lib/{lorebook-author-tools-DWBnYo1E.js → lorebook-author-tools-BCFFJSle.js} +6 -6
- package/lib/lorebook-authoring.js +4 -4
- package/lib/{narration-CjB_KwwY.js → narration-BVzew4-K.js} +7 -52
- package/lib/orchestration.js +155 -10
- package/lib/{pack-jail-BMy6NcCY.js → pack-jail-hsNQNTOf.js} +25 -15
- package/lib/{packs-BREPSfHy.js → packs-UpK_cvI4.js} +2 -2
- package/lib/{presenter-agent-B49-_iUm.js → presenter-agent-DZOgBOR9.js} +12 -17
- package/lib/{preset-BqgY1Tz4.js → preset-Cyoj1ZWa.js} +4 -4
- package/lib/{preset-author-tools-BB_Dcv2o.js → preset-author-tools-RSta6pHK.js} +6 -6
- package/lib/preset-authoring.js +5 -5
- package/lib/{presets-Bwnrx7p0.js → presets-CvpsW_10.js} +17 -9
- package/lib/{reflection-CUWG-6Qg.js → reflection-0qTvw2It.js} +53 -26
- package/lib/{turn-guard-Bb8Ew-1z.js → turn-guard-BzNeGNnc.js} +3 -3
- package/package.json +2 -2
- package/prompts/en/checks/conflict.md +1 -0
- package/prompts/en/checks/decide-conflict.md +1 -0
- package/prompts/en/checks/decide-covered.md +1 -0
- package/prompts/en/checks/decide-opening.md +1 -0
- package/prompts/en/checks/decide-same-thing.md +1 -0
- package/prompts/en/checks/decide-same-value.md +1 -0
- package/prompts/en/checks/decide-sheet.md +1 -1
- package/prompts/en/checks/fidelity.md +1 -0
- package/prompts/en/checks/notice.md +2 -2
- package/prompts/zh/checks/conflict.md +1 -0
- package/prompts/zh/checks/decide-conflict.md +1 -0
- package/prompts/zh/checks/decide-covered.md +1 -0
- package/prompts/zh/checks/decide-opening.md +1 -0
- package/prompts/zh/checks/decide-same-thing.md +1 -0
- package/prompts/zh/checks/decide-same-value.md +1 -0
- package/prompts/zh/checks/decide-sheet.md +1 -1
- package/prompts/zh/checks/fidelity.md +1 -0
- package/prompts/zh/checks/notice.md +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
3
|
-
import {
|
|
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
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,
|
|
6
|
-
import { s as inheritImages } from "./library-
|
|
7
|
-
import { i as inheritPacks } from "./packs-
|
|
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";
|
|
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";
|
|
@@ -400,7 +400,7 @@ function placedScene(cast, player, story, describeMember, tr, things) {
|
|
|
400
400
|
if (nowhere.length > 0) sections.push(`${tr("Characters with no place (not part of this scene; they cannot be asked to act):")}\n${nowhere.map(describeMember).join("\n")}`);
|
|
401
401
|
return sections.join("\n\n");
|
|
402
402
|
}
|
|
403
|
-
const castSummary = { scene({ tracked, time, world, cast, turn, input, queryVector, story, items, language: code }) {
|
|
403
|
+
const castSummary = { scene({ tracked, time, world, cast, turn, input, queryVector, story, items, language: code, report }) {
|
|
404
404
|
const language = languageOf(code);
|
|
405
405
|
const tr = translator(language);
|
|
406
406
|
const join = (entries) => entries.join(tr("; "));
|
|
@@ -414,26 +414,29 @@ const castSummary = { scene({ tracked, time, world, cast, turn, input, queryVect
|
|
|
414
414
|
const player = cast.find((member) => member.character.control === "player");
|
|
415
415
|
const days = time?.agenda === void 0 ? "" : describeSceneAgenda(time.agenda, time.now.now, tr, language);
|
|
416
416
|
const scene = cast.some((member) => member.place !== void 0) ? placedScene(cast, player, story, describeMember, tr, items) : cast.map(describeMember).join("\n");
|
|
417
|
-
const parts = [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
417
|
+
const parts = [];
|
|
418
|
+
const add = (id, text) => {
|
|
419
|
+
parts.push(text);
|
|
420
|
+
report?.section(id, text);
|
|
421
|
+
};
|
|
422
|
+
if (time !== void 0) add("time", timeNotice(time, language, tr));
|
|
423
|
+
if (days !== "") add("agenda", days);
|
|
424
|
+
add("scene", `${tr("Scene before turn {turn}:", { turn })}\n${scene}`);
|
|
422
425
|
const activation = describeActivationCandidates(cast, input, story, tr);
|
|
423
|
-
if (activation !== "")
|
|
426
|
+
if (activation !== "") add("activation", activation);
|
|
424
427
|
if (items !== void 0) {
|
|
425
428
|
const carried = cast.flatMap((member) => {
|
|
426
429
|
const mine = items.carried(member.character.id);
|
|
427
430
|
return mine.length === 0 ? [] : [`- ${member.character.name} (${member.key}): ${describeItems(mine, { withKeys: true }, tr)}`];
|
|
428
431
|
});
|
|
429
|
-
if (carried.length > 0)
|
|
432
|
+
if (carried.length > 0) add("carried", `${tr("What characters have on them:")}\n${carried.join("\n")}`);
|
|
430
433
|
}
|
|
431
|
-
if (world !== void 0 && world.happened.length > 0)
|
|
432
|
-
if (world?.upcoming !== void 0 && world.upcoming.length > 0)
|
|
433
|
-
if (world !== void 0 && world.beats.length > 0)
|
|
434
|
-
if (tracked !== void 0 && tracked.length > 0)
|
|
434
|
+
if (world !== void 0 && world.happened.length > 0) add("world", `${tr("The world acted since the last turn, by itself:")}\n${world.happened.map((line) => `- ${line}`).join("\n")}`);
|
|
435
|
+
if (world?.upcoming !== void 0 && world.upcoming.length > 0) add("upcoming", `${tr("Known beforehand, still to come (who knows of it; it will happen by itself when its time comes):")}\n${world.upcoming.map((entry) => `- ${entry.text}${entry.when === void 0 ? "" : ` (${entry.when})`} ${tr("[known to {who}]", { who: entry.who })}`).join("\n")}`);
|
|
436
|
+
if (world !== void 0 && world.beats.length > 0) add("beats", `${tr("Weave these into the story when it fits, then say you did with addressed in narrate (each stays for a few turns and is then let go):")}\n${world.beats.map((beat) => `- [${beat.id}] ${beat.text}`).join("\n")}`);
|
|
437
|
+
if (tracked !== void 0 && tracked.length > 0) add("tracked", `${tr("What the story keeps track of (change it with variable_changes in an outcome when what happened calls for it):")}\n${tracked.map((line) => `- ${line}`).join("\n")}`);
|
|
435
438
|
const threads = story.threads.list("open");
|
|
436
|
-
if (threads.length > 0)
|
|
439
|
+
if (threads.length > 0) add("threads", `${tr("Still open in the story:")}\n${threads.map((thread) => `- ${thread.text}`).join("\n")}`);
|
|
437
440
|
const folded = story.summaries.list().reduce((latest, summary) => Math.max(latest, summary.toTurn), 0);
|
|
438
441
|
if (folded > 0) {
|
|
439
442
|
const mentionedIds = mentioned(input, cast.map(({ character }) => character));
|
|
@@ -443,18 +446,39 @@ const castSummary = { scene({ tracked, time, world, cast, turn, input, queryVect
|
|
|
443
446
|
text: input,
|
|
444
447
|
...queryVector === void 0 ? {} : { vector: queryVector },
|
|
445
448
|
toTurn: folded,
|
|
446
|
-
limit:
|
|
449
|
+
limit: 10
|
|
447
450
|
});
|
|
448
451
|
const byCues = story.events.list({ toTurn: folded }).filter((event) => !byMeaning.some((found) => found.id === event.id)).map((event) => ({
|
|
449
452
|
event,
|
|
450
453
|
score: 3 * event.involves.filter((id) => mentionedIds.has(id)).length + overlap(cues, event.text, event.tags)
|
|
451
454
|
})).filter(({ score }) => score >= 2).sort((a, b) => b.score + .5 * b.event.importance - a.score - .5 * a.event.importance || b.event.turn - a.event.turn).map(({ event }) => event);
|
|
452
|
-
const
|
|
453
|
-
|
|
455
|
+
const ranked = [...byMeaning.map((event) => ({
|
|
456
|
+
event,
|
|
457
|
+
how: "search"
|
|
458
|
+
})), ...byCues.map((event) => ({
|
|
459
|
+
event,
|
|
460
|
+
how: "cues"
|
|
461
|
+
}))];
|
|
462
|
+
const chosen = ranked.slice(0, REMINDED_EVENTS).sort((a, b) => a.event.turn - b.event.turn);
|
|
463
|
+
const relevant = chosen.map(({ event }) => ({ event }));
|
|
464
|
+
report?.selected({
|
|
465
|
+
events: chosen.map(({ event, how }) => ({
|
|
466
|
+
turn: event.turn,
|
|
467
|
+
text: event.text,
|
|
468
|
+
how
|
|
469
|
+
})),
|
|
470
|
+
omitted: ranked.length - chosen.length,
|
|
471
|
+
folded
|
|
472
|
+
});
|
|
473
|
+
if (relevant.length > 0) add("events", `${tr("Earlier events that bear on what the player just did (from the records of the story):")}\n${relevant.map(({ event }) => {
|
|
454
474
|
const who = event.involves.map((id) => names.get(id)).filter((name) => name !== void 0).join(tr(", "));
|
|
455
475
|
return `- (${tr("turn {turn}", { turn: event.turn })}) ${event.text}${who === "" ? "" : ` [${who}]`}`;
|
|
456
476
|
}).join("\n")}`);
|
|
457
|
-
}
|
|
477
|
+
} else report?.selected({
|
|
478
|
+
events: [],
|
|
479
|
+
omitted: 0,
|
|
480
|
+
folded: 0
|
|
481
|
+
});
|
|
458
482
|
return parts.join("\n\n");
|
|
459
483
|
} };
|
|
460
484
|
const sameCharacter = (utterance, character) => utterance.character === character || utterance.name === character;
|
|
@@ -533,14 +557,17 @@ const exactUtterances = {
|
|
|
533
557
|
}
|
|
534
558
|
};
|
|
535
559
|
/** What a character is reminded of is what the story's records bring back for it: by the cues of the moment, by its words, and by its meaning when vectors exist. */
|
|
536
|
-
const recordsRecall = { recall: ({ member, situation, turn, policy, queryVector, explain }, story, signal) => story.recallRanked({
|
|
560
|
+
const recordsRecall = { recall: ({ member, situation, turn, policy, queryVector, explain, peek }, story, signal) => story.recallRanked({
|
|
537
561
|
characterId: member.character.id,
|
|
538
562
|
situation,
|
|
539
563
|
turn,
|
|
540
564
|
policy,
|
|
541
565
|
...explain === true ? { explain } : {},
|
|
542
566
|
...member.place === void 0 ? {} : { locationId: member.place.location.id }
|
|
543
|
-
}, signal,
|
|
567
|
+
}, signal, {
|
|
568
|
+
...queryVector === void 0 ? {} : { queryVector },
|
|
569
|
+
...peek === true ? { peek } : {}
|
|
570
|
+
}) };
|
|
544
571
|
/**
|
|
545
572
|
* Writes no memory. What the game master decided about each character is applied when the round is
|
|
546
573
|
* recorded, so without a memory keeper the story keeps its states and no events.
|
|
@@ -2028,4 +2055,4 @@ function memoryReflector(deps) {
|
|
|
2028
2055
|
}
|
|
2029
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 };
|
|
2030
2057
|
|
|
2031
|
-
//# sourceMappingURL=reflection-
|
|
2058
|
+
//# sourceMappingURL=reflection-0qTvw2It.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as guardRepeatedCalls } from "./hooks-
|
|
1
|
+
import { b as finishOf, y as cutOff } from "./child-Dtv76jNx.js";
|
|
2
|
+
import { d as guardRepeatedCalls } from "./hooks-DTjHWTfx.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-
|
|
52
|
+
//# sourceMappingURL=turn-guard-BzNeGNnc.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.10.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,7 +76,7 @@
|
|
|
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.10.0",
|
|
80
80
|
"@dsh-ai-providers/core": "^0.5.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Two background entries of a story world are given. Find whether they say things that cannot both be true at the same time (different dates for one event, different causes, a person alive in one and dead in the other, a place in two incompatible spots). Details that only add to each other, statements about different times, and the differing beliefs of different people are not conflicts. If they conflict, answer conflict true and quote, exactly as written, the passage of the first entry and the passage of the second that rule each other out, and say in a sentence why. If not, answer conflict false with empty quotes. Never conclude a conflict you cannot quote. A title or heading is not a statement, and two entries with similar titles are not in conflict for that reason; quote the clauses that disagree. The two statements must be about the same thing (the same event, person, place or object) and give it incompatible facts; if you need an assumption beyond the two texts to make them clash, or the clash holds only if one word is read in a strained way, it is not a conflict.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Two background entries of a story world are given below. Do they say things that cannot both be true at the same time: two different dates for one event, two different causes, a person alive in one and dead in the other, a place in two incompatible spots? They do not conflict when one only adds detail to the other, when they speak of different times, or when they are two people's differing beliefs. Answer yes only when you can point to a statement in each that rules out the other, and give the reason in a sentence. The two statements must be about the same thing; if an assumption beyond the two texts is needed to make them clash, they do not conflict.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
A passage of a source card and a document of a story world are given. Does the document say what the passage says: the same facts, in any wording or language? A document that only mentions the same person or place without stating the passage's facts does not. A document that states most of the passage's facts, in other words, does. Answer yes when the document says it, and give the reason in a sentence.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
A person is about to start a story as the character described below. Read the opening and the first scene: where the character is, who and what is there, what the character is doing or wants. Is it enough for the person to know where they are and to have something to do, a person to talk to, a problem to face or a want to follow, for the first move? It is not enough when the opening is missing or only sets a mood, when nothing in the place invites action, or when it is unclear who the player is. Being able to walk somewhere else (a way out) is not something to do. Answer yes when it is enough, and give the reason in a sentence.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Two entries of a story world are described below, of the same kind (character, place, organisation or thing). Are they the same one, written twice under different names or wordings, so that the world has a copy of something it already has? They are when the sheets describe the same person, place, group or object, even if the names differ or one is shorter. They are not when they are two different ones that merely resemble each other: siblings, rivals, two guards, two rooms of one building, a place and a part of it. A place inside a larger place (a station in a region, a district of a city, a room of a building) is not the same as the larger one. The entries are labelled A and B: say in the reason what A is and what B is. Answer yes when they are one, and give the reason in a sentence.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Two values a story keeps track of are described below, each with its name, key and what it means. Do they measure the same thing, so that keeping both would record one fact twice and let the two drift apart? They do when one is another name, abbreviation or translation of the other (health and hit points, gold and coins). They do not when they are related but different (health and stamina, trust and affection, hunger and thirst), or measure the same thing for different subjects, or when one is a kind, a cause or an effect of the other (sweat and wetness, a wound and blood loss): one could not stand in for the other without losing something. Answer yes when they are the same value, and give the reason in a sentence.
|
|
@@ -1 +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
|
|
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 at least one thing 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. A sheet is not thin because it could say more: one clear want, fear or concern is enough. Answer yes when it is enough, and give the reason in a sentence.
|
|
@@ -5,3 +5,4 @@ You compare one document of a role-playing world with the pieces of the characte
|
|
|
5
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
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
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.
|
|
8
|
+
- Go through the source one sentence at a time and check each fact in it against the document before you answer; a cause, a number or a name that the document leaves out is dropped even when the rest of the sentence is kept.
|
|
@@ -1,3 +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.
|
|
1
|
+
The person ran ${command} (what they added: ${request}). Run the checks of this world with ${tools} now, even if you ran them earlier in this chat (the world may have changed, and what you remember of a result is not a result), and read every finding it returns.
|
|
2
|
+
Then act on them as a careful editor: every finding gets a fix, a question to the person, or a stated reason to leave it; none is skipped. 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
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
下面给出故事世界的两条背景条目。判断它们说的事情能否同时成立(同一件事的不同日期、不同起因,一个人在一条里活着而在另一条里已死,一个地方处于两个互不相容的位置)。只是互相补充的细节、关于不同时间的陈述、不同人的不同看法,都不算冲突。如果冲突,就把 conflict 填 true,并逐字引用第一条和第二条中互相排斥的那两段原文,再用一句话说明原因。如果不冲突,conflict 填 false,两个引文留空。不能引用出来的冲突,不要下结论。标题或小标题不是陈述;两个条目标题相近,不构成冲突;请引用互相矛盾的那几句话。两句话必须说的是同一件事(同一个事件、人物、地点或物品),并给出不相容的事实;如果要靠两段文字之外的假设、或把某个词强行曲解才能让它们互相冲突,就不是冲突。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
下面给出故事世界的两条背景条目。它们是否互相冲突,也就是说了不可能同时为真的事情?例如同一件事有两个不同的日期、两种不同的起因,一个人在一条里活着而在另一条里已死,一个地方处于两个互不相容的位置。一条只是给另一条补充细节、说的是不同时间、或者是两个人各自不同的看法时,不算冲突。只有当你能指出两条里各有一句话互相排斥时才回答是,并用一句话说明理由。两句话必须说的是同一件事;如果要靠两段文字之外的假设才能让它们互相冲突,就不算冲突。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
下面给出来源卡片的一段文字和故事世界的一份文档。文档说出了这段文字所说的内容吗?即相同的事实,不论措辞或语言。文档只是提到同一个人或地点、却没有陈述这段文字的事实,不算。文档用别的说法陈述了这段文字的大部分事实,则算。文档说了就回答是,并用一句话说明理由。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
有人即将以下面描述的角色开始一个故事。请读开场白和第一个场景:角色在哪里,那里有谁、有什么,角色正在做什么或想要什么。对这个人来说,这些够不够让他知道自己身在何处,并为第一步找到事做——一个可以交谈的人、一个要面对的问题,或一个可以追随的愿望?不够,是指开场白缺失或只渲染气氛、地点里没有任何东西引人行动,或者看不出玩家是谁。能走去别处(有出口)不算有事可做。足够就回答是,并用一句话说明理由。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
下面描述了故事世界里同一类(角色、地点、组织或物品)的两个条目。它们是同一个,只是用不同的名称或说法写了两遍吗?也就是世界里是否有一份已有内容的副本。两份描述的是同一个人、地点、团体或物品,即使名称不同或其中一个更短,就是同一个。只是彼此相像的两个不同条目则不是:兄弟姐妹、对手、两名守卫、同一栋楼里的两个房间、一个地方和它的一部分。位于更大地点之内的地方(区域中的一座站点、城市的一个街区、建筑里的一个房间)与那个更大的地点不是同一个。条目分别标为 A 和 B:请在理由里说明 A 是什么、B 是什么。是同一个就回答是,并用一句话说明理由。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
下面描述了故事要记录的两个数值,各有名称、键和含义。它们衡量的是同一件事吗?也就是说,两个都保留会把同一个事实记两遍,并且两者会渐渐不一致。一个是另一个的别名、缩写或译名时(生命值和体力点数、金币和钱币),它们就是同一件事。相关但不同时(生命和耐力、信任和好感、饥饿和口渴),或者衡量的是不同对象的同一件事时,或者一个是另一个的一种、原因或结果时(汗和潮湿、伤口和失血),则不是:用一个替代另一个会丢失信息。是同一个数值就回答是,并用一句话说明理由。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
这份角色设定足以让人令人信服地扮演这个角色吗?足够,是指它说明了这个角色是谁、怎么说话或举止,以及至少一件他想要、害怕或在乎的事,使得没读过别的材料的人也能用他的口吻回答,并决定他会怎么做。不够,是指它只有名字和一句话,或只有一串外貌描写。设定还能写得更多,并不等于单薄:一个明确的愿望、恐惧或牵挂就够了。足够就回答是,并用一句话说明理由。
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
用户运行了 ${command}(附加内容:${request}
|
|
2
|
-
|
|
1
|
+
用户运行了 ${command}(附加内容:${request})。现在就用 ${tools} 检查这个世界,即使本次对话里早先已经运行过(世界可能已经变了,你记得的结果不等于结果),并阅读它返回的每一条发现。
|
|
2
|
+
然后像一位细心的编辑那样处理:每一条发现都要么修正、要么向用户提问、要么说明为什么保持原样,不能跳过;明显有误的,用你的编辑工具一处一处地修正,每次修改照常会请用户批准。如果某条发现需要做选择(两个重复项保留哪一个、缺失的东西应该是什么),先询问,再动手。可以接受的就保持原样,并说明原因。不要为了填补空缺而编造事实;如果世界保留了角色卡,先去读它(card_read、card_search)。 如果某个工具说这个世界没有角色卡,就跳过它并如实说明,不要猜测卡里有什么。与卡比较得出的发现只是线索,不是结论:修改任何东西之前,先用 card_read 读该段原文。 先用快速检查。当请求里说要深入或彻底检查、快速检查的结果显示世界内容单薄、或者要确认一次导入时,调用工具时把 deep 设为 true:那时由模型来比对和判断,耗时更长。
|
|
3
3
|
修正之后,再运行同一个工具,确认你修正的问题已经消失,也没有出现新的问题。然后用几句话告诉用户:各严重程度的发现各有多少条,你改了什么,还剩下什么以及原因。然后停下。
|