@dsh-agentic-roleplay/core 0.7.3 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/lib/{access-DtOxFKBK.js → access-CfQWbNZP.js} +4 -7
  3. package/lib/authoring-tools-BgmC2oqU.js +3691 -0
  4. package/lib/authoring.js +59 -24
  5. package/lib/{child-CyCViUKa.js → child-lYYeOwl2.js} +147 -46
  6. package/lib/client.js +931 -860
  7. package/lib/client.js.map +1 -1
  8. package/lib/compaction.js +8 -13
  9. package/lib/{doctor-chat-ByDfCMeo.js → doctor-chat-hL1a61hp.js} +2 -3
  10. package/lib/doctor.js +6 -8
  11. package/lib/{gallery-DmBZ2L5l.js → gallery-D1V4h8vh.js} +3 -4
  12. package/lib/{generator-BmdoTIL2.js → generator-CLPosooC.js} +3 -4
  13. package/lib/helper.js +2 -3
  14. package/lib/{hooks-C8eELrni.js → hooks-rQTTeOC4.js} +144 -88
  15. package/lib/images.js +4 -4
  16. package/lib/index.js +1024 -913
  17. package/lib/{library-lVNf9qG_.js → library-Dfu0dgRj.js} +32 -21
  18. package/lib/{lorebook-author-tools-BDOs4i5C.js → lorebook-author-tools-BAaAqZZm.js} +11 -14
  19. package/lib/lorebook-authoring.js +5 -6
  20. package/lib/{narration-DvFBqmqe.js → narration-CjB_KwwY.js} +58 -20
  21. package/lib/orchestration.js +138 -72
  22. package/lib/{pack-jail-DeTscGT2.js → pack-jail-CN-314ln.js} +94 -137
  23. package/lib/{packs-CY8ms8v_.js → packs-DIj5BEfq.js} +6 -10
  24. package/lib/{presenter-agent-cFR4sos3.js → presenter-agent-DR0KvLE0.js} +13 -19
  25. package/lib/{preset-n4-j6k4S.js → preset-CscHj1-Y.js} +5 -5
  26. package/lib/{preset-author-tools-2m4BLtws.js → preset-author-tools-CxluF8qc.js} +13 -15
  27. package/lib/preset-authoring.js +6 -7
  28. package/lib/presets-HB8kJTaE.js +3993 -0
  29. package/lib/{reflection-CJB5s0ip.js → reflection-Dg1xtOTW.js} +137 -148
  30. package/lib/{text-Cwl5s0j0.js → text-DyRN4nDP.js} +13 -7
  31. package/lib/{turn-guard-BvCs1VxB.js → turn-guard-g_hDn0jR.js} +6 -7
  32. package/package.json +29 -29
  33. package/prompts/en/import/casting.md +14 -0
  34. package/prompts/en/import/character.md +1 -0
  35. package/prompts/en/import/classifier.md +9 -0
  36. package/prompts/en/import/finish-draft.md +1 -0
  37. package/prompts/en/import/generator.md +8 -0
  38. package/prompts/en/import/notice-repair.md +4 -0
  39. package/prompts/en/import/repair-again.md +3 -0
  40. package/prompts/en/import/roster.md +1 -0
  41. package/prompts/en/import/variables.md +1 -0
  42. package/prompts/en/roleplay/game-master.md +3 -0
  43. package/prompts/en/roleplay/standing.md +1 -0
  44. package/prompts/en/world/author.md +1 -1
  45. package/prompts/zh/import/casting.md +14 -0
  46. package/prompts/zh/import/character.md +1 -0
  47. package/prompts/zh/import/classifier.md +9 -0
  48. package/prompts/zh/import/finish-draft.md +1 -0
  49. package/prompts/zh/import/generator.md +8 -0
  50. package/prompts/zh/import/notice-repair.md +4 -0
  51. package/prompts/zh/import/repair-again.md +3 -0
  52. package/prompts/zh/import/roster.md +1 -0
  53. package/prompts/zh/import/variables.md +1 -0
  54. package/prompts/zh/roleplay/game-master.md +3 -0
  55. package/prompts/zh/roleplay/standing.md +1 -0
  56. package/prompts/zh/world/author.md +1 -1
  57. package/lib/authoring-tools-CIsWbq0B.js +0 -6317
  58. package/lib/route-C6SHz9j2.js +0 -518
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The UI, orchestration, world authoring, media, and filesystem integration plugin behind DSH Agentic Roleplay.
4
4
 
5
- It provides the bounded game-master loop, point-of-view character agents, world and session interfaces, authoring agents and tools that ask before changing files by default, character-card import and assisted card-version updates, story compaction, speech integration, and image-generation workflows. It turns the structured state supplied by [`@dsh-agentic-roleplay/state`](https://www.npmjs.com/package/@dsh-agentic-roleplay/state) into a playable and editable experience.
5
+ It provides the bounded game-master loop, point-of-view character agents, world and session interfaces, authoring agents and tools that ask before changing files by default, resumable character-card import with draft repair, assisted card-version updates, world-defined commands, story compaction, speech integration, and image-generation workflows. It turns the structured state supplied by [`@dsh-agentic-roleplay/state`](https://www.npmjs.com/package/@dsh-agentic-roleplay/state) into a playable and editable experience.
6
6
 
7
7
  ## Install
8
8
 
@@ -1,4 +1,4 @@
1
- //#region src/shared/chat.ts
1
+ // src/shared/chat.ts
2
2
  const CHAT_PREFIX = "session-";
3
3
  const UUID_V4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
4
4
  /** The DSH chat of a roleplay session is named after the session's id. */
@@ -11,8 +11,7 @@ function roleplaySessionOf(chat) {
11
11
  const id = chat.slice(8);
12
12
  return UUID_V4.test(id) ? id : void 0;
13
13
  }
14
- //#endregion
15
- //#region ../dsh-roleplay-model/src/variable.ts
14
+ // ../dsh-roleplay-model/src/variable.ts
16
15
  /** What a variable holds: a number within bounds, a yes or no, or one of a list of words. */
17
16
  const VARIABLE_KINDS = [
18
17
  "number",
@@ -136,15 +135,13 @@ const VARIABLE_VISIBILITIES = [
136
135
  always: false,
137
136
  builtin: true
138
137
  }));
139
- //#endregion
140
- //#region src/host/prompts/access.ts
138
+ // src/host/prompts/access.ts
141
139
  /** The prompt `id` in `language`, from the library of the agent's own context. */
142
140
  function promptFor(agent, id, language, variables) {
143
141
  const library = agent.ctx.get("roleplayPrompts");
144
142
  if (library === void 0) throw new Error("the prompt library is not running");
145
143
  return library.text(id, language, variables, roleplaySessionOf(agent.session.id));
146
144
  }
147
- //#endregion
148
145
  export { chatSessionId as a, VARIABLE_VISIBILITIES as i, VARIABLE_KINDS as n, roleplaySessionOf as o, VARIABLE_SUBJECTS as r, promptFor as t };
149
146
 
150
- //# sourceMappingURL=access-DtOxFKBK.js.map
147
+ //# sourceMappingURL=access-CfQWbNZP.js.map