@dsh-agentic-roleplay/core 0.3.3 → 0.3.5
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/lib/authoring.js +7 -256
- package/lib/{child-lPncV1ps.js → child-CFjnaTZt.js} +62 -7
- package/lib/client.js +10950 -7439
- package/lib/client.js.map +1 -1
- package/lib/{deliver-De62a8i9.js → deliver-Cl6bjp7g.js} +49 -11
- package/lib/doctor.js +83 -7
- package/lib/{gallery-CtFDL22W.js → gallery-DIEgETzU.js} +2 -2
- package/lib/generator-DJ48HxPI.js +145 -0
- package/lib/{hooks-Ka22sFNy.js → hooks-DdO_tNhu.js} +58 -17
- package/lib/images.js +4 -3
- package/lib/index.js +1761 -71
- package/lib/language-BgyxtB2h.js +38 -0
- package/lib/{generator-B6FxlKOV.js → library-9JB9zw5a.js} +2 -143
- package/lib/{language-DWVwi1R7.js → load-Clkl0T7C.js} +6 -40
- package/lib/orchestration.js +23 -26
- package/lib/pack-jail-ClMpVc__.js +1979 -0
- package/lib/{packs-BYjrAen6.js → packs-BC2A3geF.js} +3 -29
- package/lib/{presenter-agent-Dt21K96b.js → presenter-agent-DnNEG_Mn.js} +5 -4
- package/lib/{documents-Do4lz4SB.js → preset-ClQm7KPQ.js} +67 -1656
- package/lib/preset-author-tools-Dibp-LY9.js +270 -0
- package/lib/preset-authoring.js +53 -0
- package/lib/presets-DNjNxQL5.js +335 -0
- package/lib/{reflection-md7BCYCl.js → reflection-Bju_LPFn.js} +131 -9
- package/package.json +3 -2
- package/prompts/en/doctor/procedure.md +1 -1
- package/prompts/en/import/character.md +1 -1
- package/prompts/en/preset/persona.md +1 -0
- package/prompts/en/preset/procedure.md +1 -0
- package/prompts/en/preset/welcome.md +1 -0
- package/prompts/en/roleplay/record-keeper.md +2 -2
- package/prompts/zh/doctor/procedure.md +1 -1
- package/prompts/zh/import/character.md +1 -1
- package/prompts/zh/preset/persona.md +1 -0
- package/prompts/zh/preset/procedure.md +1 -0
- package/prompts/zh/preset/welcome.md +1 -0
- package/prompts/zh/roleplay/record-keeper.md +2 -2
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as Reader } from "./load-Clkl0T7C.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";
|
|
5
|
-
//#region ../dsh-roleplay-model/src/intent.ts
|
|
6
|
-
const INTENT_TYPES = [
|
|
7
|
-
"need",
|
|
8
|
-
"obligation",
|
|
9
|
-
"quest",
|
|
10
|
-
"agenda",
|
|
11
|
-
"aspiration",
|
|
12
|
-
"relationship",
|
|
13
|
-
"habit",
|
|
14
|
-
"reaction"
|
|
15
|
-
];
|
|
16
|
-
const INTENT_STATUSES = [
|
|
17
|
-
"active",
|
|
18
|
-
"paused",
|
|
19
|
-
"completed",
|
|
20
|
-
"failed",
|
|
21
|
-
"abandoned"
|
|
22
|
-
];
|
|
23
|
-
const INTENT_HORIZONS = [
|
|
24
|
-
"immediate",
|
|
25
|
-
"short",
|
|
26
|
-
"day",
|
|
27
|
-
"long",
|
|
28
|
-
"open_ended"
|
|
29
|
-
];
|
|
30
|
-
//#endregion
|
|
31
5
|
//#region src/shared/worlds.ts
|
|
32
6
|
/** Path prefix of the plugin's HTTP API. Relative, so a mounted deployment resolves it against the page. */
|
|
33
7
|
const API_PREFIX = "roleplay-api";
|
|
@@ -861,6 +835,6 @@ function anyTab(bases) {
|
|
|
861
835
|
}));
|
|
862
836
|
}
|
|
863
837
|
//#endregion
|
|
864
|
-
export { API_PREFIX as _, packIds as a,
|
|
838
|
+
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 };
|
|
865
839
|
|
|
866
|
-
//# sourceMappingURL=packs-
|
|
840
|
+
//# sourceMappingURL=packs-BC2A3geF.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as promptFor } from "./access-EbNdZFbk.js";
|
|
2
|
-
import { a as runChild } from "./child-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { a as runChild } from "./child-CFjnaTZt.js";
|
|
3
|
+
import { c as referenceImagePath, o as nextSceneSerial } from "./library-9JB9zw5a.js";
|
|
4
|
+
import { n as generateTransientImage, t as generateReferenceImage } from "./generator-DJ48HxPI.js";
|
|
5
|
+
import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-DIEgETzU.js";
|
|
5
6
|
import { dirname, join, relative } from "node:path";
|
|
6
7
|
import { existsSync } from "node:fs";
|
|
7
8
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -851,4 +852,4 @@ async function runImagePresenter(job) {
|
|
|
851
852
|
//#endregion
|
|
852
853
|
export { tokensOf as a, searchImages as i, interpretImage as n, present as o, imageTools as r, presentedFor as s, runImagePresenter as t };
|
|
853
854
|
|
|
854
|
-
//# sourceMappingURL=presenter-agent-
|
|
855
|
+
//# sourceMappingURL=presenter-agent-DnNEG_Mn.js.map
|