@dsh-agentic-roleplay/core 0.7.2 → 0.8.1

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 (54) hide show
  1. package/README.md +1 -1
  2. package/lib/authoring-tools-DNnx0Nts.js +3574 -0
  3. package/lib/authoring.js +295 -333
  4. package/lib/{child-CyCViUKa.js → child-D6mpkkCE.js} +130 -6
  5. package/lib/client.js +931 -415
  6. package/lib/client.js.map +1 -1
  7. package/lib/compaction.js +2 -2
  8. package/lib/doctor.js +2 -2
  9. package/lib/{gallery-BxZGOgMb.js → gallery-D9nG3C78.js} +2 -2
  10. package/lib/{generator-BFmSYvR8.js → generator-r1Czm7oi.js} +2 -2
  11. package/lib/helper.js +1 -1
  12. package/lib/{hooks-HnqXO8mM.js → hooks-BQCzgggH.js} +92 -8
  13. package/lib/images.js +4 -4
  14. package/lib/index.js +1326 -1638
  15. package/lib/{library-BGxPKs9a.js → library-zI-2tG7h.js} +59 -9
  16. package/lib/{lorebook-author-tools-D9RrMK5g.js → lorebook-author-tools-ywaYicwd.js} +7 -7
  17. package/lib/lorebook-authoring.js +4 -4
  18. package/lib/{narration-DvFBqmqe.js → narration-CnBlVure.js} +52 -8
  19. package/lib/orchestration.js +95 -18
  20. package/lib/{pack-jail-MPekqSuQ.js → pack-jail-5EJ-WYyW.js} +1274 -69
  21. package/lib/{packs-jowC-MN_.js → packs-Cv8hanXJ.js} +2 -2
  22. package/lib/{presenter-agent-DvZtnf0Q.js → presenter-agent-BSaMSd3G.js} +6 -6
  23. package/lib/{preset-VatN-845.js → preset-CWI3-0r1.js} +4 -3
  24. package/lib/{preset-author-tools-8kv1Glxe.js → preset-author-tools-BrJYa2cr.js} +7 -7
  25. package/lib/preset-authoring.js +5 -5
  26. package/lib/presets-MwOSMMyu.js +3998 -0
  27. package/lib/{reflection-CvOZGjmn.js → reflection-zSaMsjKj.js} +127 -127
  28. package/lib/{text-JbWfTHbr.js → text-BzudpQLS.js} +11 -1
  29. package/lib/{turn-guard-BvCs1VxB.js → turn-guard-Cv8pfHEA.js} +6 -2
  30. package/package.json +2 -2
  31. package/prompts/en/import/casting.md +14 -0
  32. package/prompts/en/import/classifier.md +9 -0
  33. package/prompts/en/import/finish-draft.md +1 -0
  34. package/prompts/en/import/generator.md +8 -0
  35. package/prompts/en/import/notice-repair.md +4 -0
  36. package/prompts/en/import/repair-again.md +3 -0
  37. package/prompts/en/import/roster.md +1 -0
  38. package/prompts/en/import/variables.md +1 -0
  39. package/prompts/en/roleplay/game-master.md +3 -0
  40. package/prompts/en/roleplay/standing.md +1 -0
  41. package/prompts/en/world/author.md +1 -1
  42. package/prompts/zh/import/casting.md +14 -0
  43. package/prompts/zh/import/classifier.md +9 -0
  44. package/prompts/zh/import/finish-draft.md +1 -0
  45. package/prompts/zh/import/generator.md +8 -0
  46. package/prompts/zh/import/notice-repair.md +4 -0
  47. package/prompts/zh/import/repair-again.md +3 -0
  48. package/prompts/zh/import/roster.md +1 -0
  49. package/prompts/zh/import/variables.md +1 -0
  50. package/prompts/zh/roleplay/game-master.md +3 -0
  51. package/prompts/zh/roleplay/standing.md +1 -0
  52. package/prompts/zh/world/author.md +1 -1
  53. package/lib/authoring-tools-q34iq3hW.js +0 -6140
  54. package/lib/route-DRTJ_vcA.js +0 -518
@@ -1,4 +1,4 @@
1
- import { W as Reader } from "./hooks-HnqXO8mM.js";
1
+ import { q as Reader } from "./hooks-BQCzgggH.js";
2
2
  import { dirname, extname, join, posix, sep } from "node:path";
3
3
  import { copyFileSync, cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync } from "node:fs";
4
4
  import { createHash } from "node:crypto";
@@ -840,4 +840,4 @@ function anyTab(bases) {
840
840
  //#endregion
841
841
  export { API_PREFIX as _, packIds as a, describePack as c, packPath as d, readPack as f, SURFACE_NAMES as g, PACK_MEDIA_TYPES as h, inheritPacks as i, isPackId as l, PACK_LIMITS as m, anyTab as n, syncWorldPacks as o, PACK_ACTIONS as p, copyWorldPacks as r, worldPackStates as s, activePack as t, packFile as u };
842
842
 
843
- //# sourceMappingURL=packs-jowC-MN_.js.map
843
+ //# sourceMappingURL=packs-Cv8hanXJ.js.map
@@ -1,13 +1,13 @@
1
1
  import { t as promptFor } from "./access-DtOxFKBK.js";
2
- import { c as runChild } from "./child-CyCViUKa.js";
3
- import { c as referenceImagePath, o as nextSceneSerial } from "./library-BGxPKs9a.js";
4
- import { n as generateTransientImage, t as generateReferenceImage } from "./generator-BFmSYvR8.js";
5
- import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-BxZGOgMb.js";
2
+ import { c as runChild } from "./child-D6mpkkCE.js";
3
+ import { c as nextSceneSerial, u as referenceImagePath } from "./library-zI-2tG7h.js";
4
+ import { n as generateTransientImage, t as generateReferenceImage } from "./generator-r1Czm7oi.js";
5
+ import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-D9nG3C78.js";
6
6
  import { dirname, join, relative } from "node:path";
7
7
  import { existsSync } from "node:fs";
8
8
  import { createHash, randomUUID } from "node:crypto";
9
- import { defineTool } from "@deepseek-ai/dsh-tools";
10
9
  import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
10
+ import { defineTool } from "@deepseek-ai/dsh-tools";
11
11
  import { characterKey, itemKey, locationKey } from "@dsh-agentic-roleplay/state";
12
12
  //#region src/host/images/presented.ts
13
13
  const PRESENTED_FOLDER = "presented";
@@ -852,4 +852,4 @@ async function runImagePresenter(job) {
852
852
  //#endregion
853
853
  export { tokensOf as a, searchImages as i, interpretImage as n, present as o, imageTools as r, presentedFor as s, runImagePresenter as t };
854
854
 
855
- //# sourceMappingURL=presenter-agent-DvZtnf0Q.js.map
855
+ //# sourceMappingURL=presenter-agent-BSaMSd3G.js.map
@@ -1,5 +1,6 @@
1
- import { Ht as ImportCardError, K as cleanText, r as MAX_PREVIEW_TEXT } from "./authoring-tools-q34iq3hW.js";
2
- import { l as SAMPLING_RANGES } from "./child-CyCViUKa.js";
1
+ import { Nt as ImportCardError, r as MAX_PREVIEW_TEXT } from "./authoring-tools-DNnx0Nts.js";
2
+ import { H as cleanText } from "./presets-MwOSMMyu.js";
3
+ import { l as SAMPLING_RANGES } from "./child-D6mpkkCE.js";
3
4
  //#region src/host/import/preset.ts
4
5
  /** The older preset layout keeps its texts under fixed keys. */
5
6
  const LEGACY_KEYS = [
@@ -239,4 +240,4 @@ function selectPrompts(file, enabled, keepSampling) {
239
240
  //#endregion
240
241
  export { readPreset as n, selectPrompts as r, previewPreset as t };
241
242
 
242
- //# sourceMappingURL=preset-VatN-845.js.map
243
+ //# sourceMappingURL=preset-CWI3-0r1.js.map
@@ -1,13 +1,13 @@
1
1
  import "./access-DtOxFKBK.js";
2
- import { U as extractStyleFrom, Y as withPlayer, ct as IMPORT_FOLDER, i as contextOf } from "./authoring-tools-q34iq3hW.js";
3
- import { C as readWorldPrompt, S as listWorldPrompts, b as PROSE_PROMPTS, h as readPreset, m as presetDirectory, s as PRESET_FILE, w as writeWorldPrompt, x as deleteWorldPrompt, y as updatePresetInfo } from "./route-DRTJ_vcA.js";
4
- import { Q as languageOf, nt as shippedPromptsDirectory, tt as shippedLanguages } from "./hooks-HnqXO8mM.js";
5
- import { i as translator, r as languageOf$1 } from "./text-JbWfTHbr.js";
6
- import { n as readPreset$1 } from "./preset-VatN-845.js";
2
+ import { i as contextOf } from "./authoring-tools-DNnx0Nts.js";
3
+ import { B as readWorldPrompt, G as withPlayer, K as IMPORT_FOLDER, L as PROSE_PROMPTS, R as deleteWorldPrompt, V as writeWorldPrompt, c as presetDirectory, l as readPreset, p as updatePresetInfo, t as PRESET_FILE, v as extractStyleFrom, z as listWorldPrompts } from "./presets-MwOSMMyu.js";
4
+ import { at as shippedPromptsDirectory, it as shippedLanguages, tt as languageOf } from "./hooks-BQCzgggH.js";
5
+ import { i as translator, r as languageOf$1 } from "./text-BzudpQLS.js";
6
+ import { n as readPreset$1 } from "./preset-CWI3-0r1.js";
7
7
  import { join } from "node:path";
8
8
  import { existsSync } from "node:fs";
9
- import { defineTool } from "@deepseek-ai/dsh-tools";
10
9
  import { readFile, rm } from "node:fs/promises";
10
+ import { defineTool } from "@deepseek-ai/dsh-tools";
11
11
  //#region src/shared/preset-chat.ts
12
12
  const PREFIX = "preset-author-";
13
13
  /** Stable DSH chat identity for the authoring conversation of one library preset. */
@@ -280,4 +280,4 @@ async function presetApproval(exec, next, carries) {
280
280
  //#endregion
281
281
  export { presetChatSessionId as a, presetAuthorTools as i, narrationImportMessage as n, presetOfChat as o, presetApproval as r, PresetReader as t };
282
282
 
283
- //# sourceMappingURL=preset-author-tools-8kv1Glxe.js.map
283
+ //# sourceMappingURL=preset-author-tools-BrJYa2cr.js.map
@@ -1,8 +1,8 @@
1
- import { n as limitAuthoringAgents } from "./authoring-tools-q34iq3hW.js";
2
- import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-8kv1Glxe.js";
3
- import { m as presetDirectory } from "./route-DRTJ_vcA.js";
4
- import "./hooks-HnqXO8mM.js";
5
- import { t as guardAuthoringTurns } from "./turn-guard-BvCs1VxB.js";
1
+ import { n as limitAuthoringAgents } from "./authoring-tools-DNnx0Nts.js";
2
+ import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-BrJYa2cr.js";
3
+ import { c as presetDirectory } from "./presets-MwOSMMyu.js";
4
+ import "./hooks-BQCzgggH.js";
5
+ import { t as guardAuthoringTurns } from "./turn-guard-Cv8pfHEA.js";
6
6
  import { join } from "node:path";
7
7
  import { existsSync } from "node:fs";
8
8
  //#region src/preset-authoring.ts