@dsh-agentic-roleplay/core 0.10.1 → 0.11.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/icon.svg +13 -0
- package/lib/{authoring-tools-C6Hzy8jU.js → authoring-tools--6V1pIIL.js} +424 -31
- package/lib/authoring.js +6 -6
- package/lib/{child-C8r8AFpm.js → child-C9nPIy9j.js} +7 -3
- package/lib/client.js +2340 -872
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +1 -1
- package/lib/doctor.js +2 -2
- package/lib/helper.js +8 -1
- package/lib/{hooks-BuQ61nvQ.js → hooks-DORky4KT.js} +213 -205
- package/lib/images.js +1 -1
- package/lib/index.js +456 -61
- package/lib/{lorebook-author-tools-B6_Jj8oe.js → lorebook-author-tools-BrVde1N-.js} +4 -4
- package/lib/lorebook-authoring.js +4 -4
- package/lib/orchestration.js +65 -15
- package/lib/{pack-jail-OZSgU85i.js → pack-jail-Bk82pX9t.js} +20 -9
- package/lib/{packs-B88bxt8E.js → packs-ELfh8yh1.js} +2 -2
- package/lib/{presenter-agent-D-WNs626.js → presenter-agent-UKbKYXMO.js} +3 -3
- package/lib/{preset-DNuqvMan.js → preset-D9Sfc8sf.js} +4 -4
- package/lib/{preset-author-tools-CDwavcTb.js → preset-author-tools-B3pFL1-e.js} +5 -5
- package/lib/preset-authoring.js +5 -5
- package/lib/{presets-9_MNxwaw.js → presets-BRt4Xsy4.js} +52 -10
- package/lib/{reflection-BvM0w1R4.js → reflection-CHiHsY4Y.js} +8 -6
- package/lib/{turn-guard-Ygdww1Wt.js → turn-guard-B53qOWEU.js} +11 -11
- package/package.json +35 -32
- package/prompts/en/checks/decide-opening.md +7 -1
- package/prompts/en/roleplay/record-keeper.md +2 -1
- package/prompts/zh/checks/decide-opening.md +7 -1
- package/prompts/zh/roleplay/record-keeper.md +2 -1
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-agentic-roleplay/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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",
|
|
7
7
|
"url": "https://github.com/Firefox2100"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
+
"icon": "./icon.svg",
|
|
10
11
|
"main": "lib/index.js",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": "./lib/index.js",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
},
|
|
38
39
|
"engines": {
|
|
39
40
|
"node": ">=22",
|
|
40
|
-
"dsh": ">=0.2.
|
|
41
|
+
"dsh": ">=0.2.2-rc.1 <0.2.3"
|
|
41
42
|
},
|
|
42
43
|
"repository": {
|
|
43
44
|
"type": "git",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"registry": "https://registry.npmjs.org/"
|
|
61
62
|
},
|
|
62
63
|
"files": [
|
|
64
|
+
"icon.svg",
|
|
63
65
|
"lib/*.js",
|
|
64
66
|
"packs",
|
|
65
67
|
"prompts",
|
|
@@ -72,43 +74,44 @@
|
|
|
72
74
|
],
|
|
73
75
|
"license": "GPL-3.0-only",
|
|
74
76
|
"peerDependencies": {
|
|
75
|
-
"@deepseek-ai/dsh": ">=0.2.
|
|
77
|
+
"@deepseek-ai/dsh": ">=0.2.2-rc.1 <0.2.3",
|
|
76
78
|
"@deepseek-ai/schemastery": "^3.18.5"
|
|
77
79
|
},
|
|
78
80
|
"dependencies": {
|
|
79
|
-
"@dsh-agentic-roleplay/state": "0.
|
|
80
|
-
"@dsh-ai-providers/core": "^0.
|
|
81
|
+
"@dsh-agentic-roleplay/state": "0.11.0",
|
|
82
|
+
"@dsh-ai-providers/core": "^0.6.0"
|
|
81
83
|
},
|
|
82
84
|
"devDependencies": {
|
|
83
85
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
84
86
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.6",
|
|
85
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
86
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.
|
|
87
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.
|
|
88
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
89
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
100
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
101
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.
|
|
102
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.
|
|
103
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
104
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
105
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
106
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.
|
|
108
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
109
|
-
"@deepseek-ai/dsh-token-meter": "0.2.
|
|
110
|
-
"@deepseek-ai/dsh-
|
|
111
|
-
"@deepseek-ai/dsh-
|
|
87
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.2-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
|
|
112
115
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
113
116
|
"@types/node": "^22.20.0",
|
|
114
117
|
"@types/react": "~18.3.1",
|
|
@@ -1 +1,7 @@
|
|
|
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?
|
|
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?
|
|
2
|
+
|
|
3
|
+
It is not enough when the opening is missing, a single word, or only sets a mood; when the character has no want and is doing nothing; when nobody is in the place and nothing in it invites a look or a use; or when it is unclear who the player is. A way out is not something to do: being able to go elsewhere is only a road, not a reason to act, so do not answer yes because exits are listed. If nothing but the exits gives the person something to do, answer no.
|
|
4
|
+
|
|
5
|
+
It is enough when there is at least a person to talk to, a problem to face or something the character clearly wants, and the person knows where they are.
|
|
6
|
+
|
|
7
|
+
Answer yes when it is enough and no when it is not, and give the reason in a sentence.
|
|
@@ -24,4 +24,5 @@ What to write:
|
|
|
24
24
|
- beliefs: only when a character clearly learns, suspects or concludes something beyond the single event; written from that character's point of view; kind is belief, relationship or knowledge.
|
|
25
25
|
- entity knowledge: the graph is closed-world. A relationship profile means its from-character knows the to-character. For a place, item or directed exit newly learned by being told, reading, or inference, add knowledge (character, kind; subject for a place/item, from+to for an exit). Ordinary sight and movement are recorded automatically. Knowledge means only that the entity exists, never where it is now or its current state. Do not retract it merely because information became stale.
|
|
26
26
|
- factions: faction_states changes an organisation's durable public or private institutional condition; faction_memberships records joining, leaving, role, rank, visibility and commitment; faction_relationships records a character's or faction's directional view of a faction or character and is also the awareness edge. Apply the same concrete-cause and directional rules as character relationships: a member's act does not automatically change the faction's view, nor the reverse. faction_intents_added records a durable strategic goal adopted by an organisation. A faction goal pressures members but never means every member knows it or must act on it.
|
|
27
|
-
- threads_opened: only a promise, mystery or goal that the rounds clearly leave unsettled and that is not already open. threads_resolved: ids of open threads that the rounds settle.
|
|
27
|
+
- threads_opened: only a promise, mystery or goal that the rounds clearly leave unsettled and that is not already open; a thread that only restates an open one is refused, and one that looks similar but is a separate matter goes in threads_distinct. threads_resolved: ids of open threads that the rounds settle.
|
|
28
|
+
- thread knowledge: a thread is the story's own note and stays secret until the player's character has been told of it, has seen it, or has taken it on. A thread the player's character already knows of when you open it goes in threads_opened_known instead of threads_opened; the ids of open threads the character has just learned of go in threads_known (read_records shows player_knows for each). Never mark a thread because the story only hints at it, because other characters know it, or because the narration implies it: a secret stays in threads_opened and unmarked.
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
有人即将以下面描述的角色开始一个故事。请读开场白和第一个场景:角色在哪里,那里有谁、有什么,角色正在做什么或想要什么。对这个人来说,这些够不够让他知道自己身在何处,并为第一步找到事做——一个可以交谈的人、一个要面对的问题,或一个可以追随的愿望?
|
|
2
|
+
|
|
3
|
+
不够的情形:开场白缺失,或只有一个词、只渲染气氛;角色没有写出任何想要的东西,也没有在做什么;地点里没有人,也没有任何可以查看、使用的东西;看不出玩家是谁。出口和去处不算有事可做:“可以去别处”只是路,不是行动的理由,不要因为列出了出路就回答够。如果除了出路之外找不到任何可做的事,就回答否。
|
|
4
|
+
|
|
5
|
+
足够的情形:至少有一个人可以交谈,或一个要面对的问题,或角色明确想做的事,并且知道自己在哪里。
|
|
6
|
+
|
|
7
|
+
足够就回答是,否则回答否,并用一句话说明理由。
|
|
@@ -24,4 +24,5 @@
|
|
|
24
24
|
- beliefs:只有当一个角色明确得知、怀疑或推断出超出单个事件的东西时才写;从该角色的视角来写;kind 是 belief、relationship 或 knowledge。
|
|
25
25
|
- 实体知识(entity knowledge):这张图是封闭世界。关系档案表示 from 角色认识 to 角色。对于通过被告知、阅读或推断而新得知的地点、物品或有方向的出口,添加 knowledge(character、kind;地点或物品用 subject,出口用 from+to)。普通的目睹和移动会自动记录。knowledge 只表示该实体存在,绝不表示它现在在哪里或它当前的状态。不要仅仅因为信息过时了就撤回它。
|
|
26
26
|
- factions:faction_states 改变组织持久的、公开或私下的制度性状况;faction_memberships 记录加入、离开、职位、等级、可见性和承诺;faction_relationships 记录某个角色或组织对某个组织或角色的有方向的看法,同时也是知晓的连线。适用与角色关系相同的“具体原因”和“有方向”的规则:成员的行为并不会自动改变组织的看法,反之亦然。faction_intents_added 记录一个组织所采纳的长期战略目标。组织的目标会给成员压力,但绝不意味着每个成员都知道它或必须据此行动。
|
|
27
|
-
- threads_opened
|
|
27
|
+
- threads_opened:只有当各轮明确留下一个未解决、而且还没有开启的承诺、谜团或目标时才写。只是重复某个已开启线索的会被拒绝;看起来相似但确实是另一件事的,写进 threads_distinct。threads_resolved:各轮已经解决的、处于开启状态的线索的 id。
|
|
28
|
+
- 线索的知晓(thread knowledge):线索是故事自己的笔记,在玩家角色被告知、亲眼看到或亲自接下它之前,一直是秘密。开启时玩家角色就已经知道的线索,写进 threads_opened_known,而不是 threads_opened;玩家角色刚刚得知的已开启线索,把 id 写进 threads_known(read_records 会为每条线索显示 player_knows)。不要因为故事只是暗示、因为其他角色知道,或因为叙述隐含了它就标记:秘密留在 threads_opened,不做标记。
|