@dsh-agentic-roleplay/core 0.7.3 → 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.
- package/README.md +1 -1
- package/lib/{authoring-tools-CIsWbq0B.js → authoring-tools-DNnx0Nts.js} +1774 -4517
- package/lib/authoring.js +51 -9
- package/lib/{child-CyCViUKa.js → child-D6mpkkCE.js} +130 -6
- package/lib/client.js +661 -427
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +2 -2
- package/lib/doctor.js +2 -2
- package/lib/{gallery-DmBZ2L5l.js → gallery-D9nG3C78.js} +2 -2
- package/lib/{generator-BmdoTIL2.js → generator-r1Czm7oi.js} +2 -2
- package/lib/helper.js +1 -1
- package/lib/{hooks-C8eELrni.js → hooks-BQCzgggH.js} +92 -8
- package/lib/images.js +4 -4
- package/lib/index.js +920 -739
- package/lib/{library-lVNf9qG_.js → library-zI-2tG7h.js} +25 -8
- package/lib/{lorebook-author-tools-BDOs4i5C.js → lorebook-author-tools-ywaYicwd.js} +7 -7
- package/lib/lorebook-authoring.js +4 -4
- package/lib/{narration-DvFBqmqe.js → narration-CnBlVure.js} +52 -8
- package/lib/orchestration.js +95 -18
- package/lib/{pack-jail-DeTscGT2.js → pack-jail-5EJ-WYyW.js} +30 -68
- package/lib/{packs-CY8ms8v_.js → packs-Cv8hanXJ.js} +2 -2
- package/lib/{presenter-agent-cFR4sos3.js → presenter-agent-BSaMSd3G.js} +6 -6
- package/lib/{preset-n4-j6k4S.js → preset-CWI3-0r1.js} +4 -3
- package/lib/{preset-author-tools-2m4BLtws.js → preset-author-tools-BrJYa2cr.js} +7 -7
- package/lib/preset-authoring.js +5 -5
- package/lib/presets-MwOSMMyu.js +3998 -0
- package/lib/{reflection-CJB5s0ip.js → reflection-zSaMsjKj.js} +127 -127
- package/lib/{text-Cwl5s0j0.js → text-BzudpQLS.js} +9 -1
- package/lib/{turn-guard-BvCs1VxB.js → turn-guard-Cv8pfHEA.js} +6 -2
- package/package.json +2 -2
- package/prompts/en/import/casting.md +14 -0
- package/prompts/en/import/classifier.md +9 -0
- package/prompts/en/import/finish-draft.md +1 -0
- package/prompts/en/import/generator.md +8 -0
- package/prompts/en/import/notice-repair.md +4 -0
- package/prompts/en/import/repair-again.md +3 -0
- package/prompts/en/import/roster.md +1 -0
- package/prompts/en/import/variables.md +1 -0
- package/prompts/en/roleplay/game-master.md +3 -0
- package/prompts/en/roleplay/standing.md +1 -0
- package/prompts/en/world/author.md +1 -1
- package/prompts/zh/import/casting.md +14 -0
- package/prompts/zh/import/classifier.md +9 -0
- package/prompts/zh/import/finish-draft.md +1 -0
- package/prompts/zh/import/generator.md +8 -0
- package/prompts/zh/import/notice-repair.md +4 -0
- package/prompts/zh/import/repair-again.md +3 -0
- package/prompts/zh/import/roster.md +1 -0
- package/prompts/zh/import/variables.md +1 -0
- package/prompts/zh/roleplay/game-master.md +3 -0
- package/prompts/zh/roleplay/standing.md +1 -0
- package/prompts/zh/world/author.md +1 -1
- package/lib/route-C6SHz9j2.js +0 -518
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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-
|
|
243
|
+
//# sourceMappingURL=preset-CWI3-0r1.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./access-DtOxFKBK.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as translator, r as languageOf$1 } from "./text-
|
|
6
|
-
import { n as readPreset$1 } from "./preset-
|
|
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-
|
|
283
|
+
//# sourceMappingURL=preset-author-tools-BrJYa2cr.js.map
|
package/lib/preset-authoring.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as limitAuthoringAgents } from "./authoring-tools-
|
|
2
|
-
import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-
|
|
3
|
-
import {
|
|
4
|
-
import "./hooks-
|
|
5
|
-
import { t as guardAuthoringTurns } from "./turn-guard-
|
|
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
|