@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.
- package/README.md +1 -1
- package/lib/authoring-tools-DNnx0Nts.js +3574 -0
- package/lib/authoring.js +295 -333
- package/lib/{child-CyCViUKa.js → child-D6mpkkCE.js} +130 -6
- package/lib/client.js +931 -415
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +2 -2
- package/lib/doctor.js +2 -2
- package/lib/{gallery-BxZGOgMb.js → gallery-D9nG3C78.js} +2 -2
- package/lib/{generator-BFmSYvR8.js → generator-r1Czm7oi.js} +2 -2
- package/lib/helper.js +1 -1
- package/lib/{hooks-HnqXO8mM.js → hooks-BQCzgggH.js} +92 -8
- package/lib/images.js +4 -4
- package/lib/index.js +1326 -1638
- package/lib/{library-BGxPKs9a.js → library-zI-2tG7h.js} +59 -9
- package/lib/{lorebook-author-tools-D9RrMK5g.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-MPekqSuQ.js → pack-jail-5EJ-WYyW.js} +1274 -69
- package/lib/{packs-jowC-MN_.js → packs-Cv8hanXJ.js} +2 -2
- package/lib/{presenter-agent-DvZtnf0Q.js → presenter-agent-BSaMSd3G.js} +6 -6
- package/lib/{preset-VatN-845.js → preset-CWI3-0r1.js} +4 -3
- package/lib/{preset-author-tools-8kv1Glxe.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-CvOZGjmn.js → reflection-zSaMsjKj.js} +127 -127
- package/lib/{text-JbWfTHbr.js → text-BzudpQLS.js} +11 -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/authoring-tools-q34iq3hW.js +0 -6140
- package/lib/route-DRTJ_vcA.js +0 -518
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-
|
|
3
|
-
import { c as
|
|
4
|
-
import { n as generateTransientImage, t as generateReferenceImage } from "./generator-
|
|
5
|
-
import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-
|
|
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-
|
|
855
|
+
//# sourceMappingURL=presenter-agent-BSaMSd3G.js.map
|
|
@@ -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
|