@dsh-agentic-roleplay/core 0.9.1 → 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-C_l07RYn.js → authoring-tools-B4mEdKp_.js} +144 -58
- package/lib/authoring.js +7 -7
- package/lib/{child-lYYeOwl2.js → child-Dtv76jNx.js} +116 -11
- package/lib/client.js +2805 -790
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +3 -3
- package/lib/doctor.js +3 -3
- package/lib/{gallery-q7niLtWn.js → gallery-BZJleAeH.js} +5 -9
- package/lib/{generator-BpjPrvHe.js → generator-Cg6CQc5S.js} +2 -2
- package/lib/helper.js +1 -1
- package/lib/{hooks-DNaDzMjW.js → hooks-DTjHWTfx.js} +132 -25
- package/lib/images.js +4 -4
- package/lib/index.js +362 -33
- package/lib/{library-CIkxhf_R.js → library-GIlrkOim.js} +6 -13
- package/lib/{lorebook-author-tools-BiMDmdFi.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-B35Vx3hT.js → pack-jail-hsNQNTOf.js} +10 -10
- package/lib/{packs-BajKw7S9.js → packs-UpK_cvI4.js} +2 -2
- package/lib/{presenter-agent-jgtuTwZr.js → presenter-agent-DZOgBOR9.js} +12 -17
- package/lib/{preset-DWgkcPau.js → preset-Cyoj1ZWa.js} +4 -4
- package/lib/{preset-author-tools-BhuYIKms.js → preset-author-tools-RSta6pHK.js} +6 -6
- package/lib/preset-authoring.js +5 -5
- package/lib/{presets-9GzaSELc.js → presets-CvpsW_10.js} +7 -8
- package/lib/{reflection-4L0Plvct.js → reflection-0qTvw2It.js} +53 -26
- package/lib/{turn-guard-sCUXmp-5.js → turn-guard-BzNeGNnc.js} +3 -3
- package/package.json +2 -2
- package/prompts/en/checks/conflict.md +1 -1
- package/prompts/en/checks/decide-conflict.md +1 -1
- package/prompts/en/checks/decide-opening.md +1 -1
- package/prompts/en/checks/decide-same-value.md +1 -1
- package/prompts/en/checks/decide-sheet.md +1 -1
- package/prompts/en/checks/fidelity.md +1 -0
- package/prompts/zh/checks/conflict.md +1 -1
- package/prompts/zh/checks/decide-conflict.md +1 -1
- package/prompts/zh/checks/decide-opening.md +1 -1
- package/prompts/zh/checks/decide-same-value.md +1 -1
- package/prompts/zh/checks/decide-sheet.md +1 -1
- package/prompts/zh/checks/fidelity.md +1 -0
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": {
|
|
@@ -1 +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.
|
|
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.
|
|
@@ -1 +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.
|
|
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.
|
|
@@ -1 +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. Answer yes when it is enough, and give the reason in a sentence.
|
|
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.
|
|
@@ -1 +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. Answer yes when they are the same value, and give the reason in a sentence.
|
|
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 +1 @@
|
|
|
1
|
-
下面给出故事世界的两条背景条目。判断它们说的事情能否同时成立(同一件事的不同日期、不同起因,一个人在一条里活着而在另一条里已死,一个地方处于两个互不相容的位置)。只是互相补充的细节、关于不同时间的陈述、不同人的不同看法,都不算冲突。如果冲突,就把 conflict 填 true,并逐字引用第一条和第二条中互相排斥的那两段原文,再用一句话说明原因。如果不冲突,conflict 填 false
|
|
1
|
+
下面给出故事世界的两条背景条目。判断它们说的事情能否同时成立(同一件事的不同日期、不同起因,一个人在一条里活着而在另一条里已死,一个地方处于两个互不相容的位置)。只是互相补充的细节、关于不同时间的陈述、不同人的不同看法,都不算冲突。如果冲突,就把 conflict 填 true,并逐字引用第一条和第二条中互相排斥的那两段原文,再用一句话说明原因。如果不冲突,conflict 填 false,两个引文留空。不能引用出来的冲突,不要下结论。标题或小标题不是陈述;两个条目标题相近,不构成冲突;请引用互相矛盾的那几句话。两句话必须说的是同一件事(同一个事件、人物、地点或物品),并给出不相容的事实;如果要靠两段文字之外的假设、或把某个词强行曲解才能让它们互相冲突,就不是冲突。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
下面给出故事世界的两条背景条目。它们是否互相冲突,也就是说了不可能同时为真的事情?例如同一件事有两个不同的日期、两种不同的起因,一个人在一条里活着而在另一条里已死,一个地方处于两个互不相容的位置。一条只是给另一条补充细节、说的是不同时间、或者是两个人各自不同的看法时,不算冲突。只有当你能指出两条里各有一句话互相排斥时才回答是,并用一句话说明理由。两句话必须说的是同一件事;如果要靠两段文字之外的假设才能让它们互相冲突,就不算冲突。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
有人即将以下面描述的角色开始一个故事。请读开场白和第一个场景:角色在哪里,那里有谁、有什么,角色正在做什么或想要什么。对这个人来说,这些够不够让他知道自己身在何处,并为第一步找到事做——一个可以交谈的人、一个要面对的问题,或一个可以追随的愿望?不够,是指开场白缺失或只渲染气氛、地点里没有任何东西引人行动,或者看不出玩家是谁。能走去别处(有出口)不算有事可做。足够就回答是,并用一句话说明理由。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
下面描述了故事要记录的两个数值,各有名称、键和含义。它们衡量的是同一件事吗?也就是说,两个都保留会把同一个事实记两遍,并且两者会渐渐不一致。一个是另一个的别名、缩写或译名时(生命值和体力点数、金币和钱币),它们就是同一件事。相关但不同时(生命和耐力、信任和好感、饥饿和口渴),或者衡量的是不同对象的同一件事时,或者一个是另一个的一种、原因或结果时(汗和潮湿、伤口和失血),则不是:用一个替代另一个会丢失信息。是同一个数值就回答是,并用一句话说明理由。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
这份角色设定足以让人令人信服地扮演这个角色吗?足够,是指它说明了这个角色是谁、怎么说话或举止,以及至少一件他想要、害怕或在乎的事,使得没读过别的材料的人也能用他的口吻回答,并决定他会怎么做。不够,是指它只有名字和一句话,或只有一串外貌描写。设定还能写得更多,并不等于单薄:一个明确的愿望、恐惧或牵挂就够了。足够就回答是,并用一句话说明理由。
|