@dsh-agentic-roleplay/core 0.6.1 → 0.7.0
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-tools-BGzzW6O5.js → authoring-tools-BWjEr_lF.js} +3 -3
- package/lib/authoring.js +5 -5
- package/lib/client.js +1797 -860
- package/lib/client.js.map +1 -1
- package/lib/doctor.js +1 -1
- package/lib/{hooks-BLperIIB.js → hooks-DufjUf1p.js} +10 -2
- package/lib/index.js +1292 -97
- package/lib/{lorebook-author-tools-C-cFiE6E.js → lorebook-author-tools-v-PM8Kbs.js} +10 -5
- package/lib/lorebook-authoring.js +3 -3
- package/lib/orchestration.js +6 -4
- package/lib/{pack-jail-BKFmbYP8.js → pack-jail--Ij90LeY.js} +12 -7
- package/lib/{packs-ZTG7fWut.js → packs-DWKnL4YX.js} +2 -2
- package/lib/{preset-CJLW8Mp0.js → preset-CDNyJhfU.js} +2 -2
- package/lib/{preset-author-tools-1RstgEZs.js → preset-author-tools-D7Azdlaq.js} +14 -8
- package/lib/preset-authoring.js +4 -4
- package/lib/{presets-DcPCnn8O.js → presets-D11bxWX0.js} +2 -2
- package/lib/{reflection-6qfOC5OT.js → reflection-CRCWK2E1.js} +5 -5
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bt as ImportCardError, Ct as readLorebook$1, Et as writeLorebookEntry, Gt as LORE_SCOPES, J as withPlayer, K as cleanText, St as lorebookDirectory, Tt as updateLorebookInfo, Wt as LORE_KINDS, _t as deleteLorebookEntry, i as contextOf, q as partsOf, r as MAX_PREVIEW_TEXT, st as IMPORT_FOLDER, vt as entriesOf, xt as loadLorebook } from "./authoring-tools-
|
|
2
|
-
import { n as createPresetFromGuidance } from "./presets-
|
|
1
|
+
import { Bt as ImportCardError, Ct as readLorebook$1, Et as writeLorebookEntry, Gt as LORE_SCOPES, J as withPlayer, K as cleanText, St as lorebookDirectory, Tt as updateLorebookInfo, Wt as LORE_KINDS, _t as deleteLorebookEntry, i as contextOf, q as partsOf, r as MAX_PREVIEW_TEXT, st as IMPORT_FOLDER, vt as entriesOf, xt as loadLorebook } from "./authoring-tools-BWjEr_lF.js";
|
|
2
|
+
import { n as createPresetFromGuidance } from "./presets-D11bxWX0.js";
|
|
3
3
|
import "./narration-_dA9oIt2.js";
|
|
4
|
-
import { nt as shippedPromptsDirectory } from "./hooks-
|
|
4
|
+
import { dt as translator, nt as shippedPromptsDirectory, ut as languageOf } from "./hooks-DufjUf1p.js";
|
|
5
5
|
import { b as slug, v as mapLimit, x as uniqueKey } from "./library-DsDc6fQa.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -333,7 +333,12 @@ const STEERING_TOOL = "apply_steering";
|
|
|
333
333
|
const LOREBOOK_UPLOAD = `${IMPORT_FOLDER}/lorebook.json`;
|
|
334
334
|
const STEERING_FILE = "steering.json";
|
|
335
335
|
/** The command that has a lorebook's authoring chat turn an uploaded SillyTavern lorebook into entries. */
|
|
336
|
-
|
|
336
|
+
function lorebookImportMessage(language) {
|
|
337
|
+
return translator(languageOf(language))("Turn the SillyTavern lorebook I uploaded into this lorebook: call {tool} with file {file}.", {
|
|
338
|
+
tool: LOREBOOK_IMPORT_TOOL,
|
|
339
|
+
file: LOREBOOK_UPLOAD
|
|
340
|
+
});
|
|
341
|
+
}
|
|
337
342
|
const output = (value) => [{
|
|
338
343
|
type: "text",
|
|
339
344
|
text: JSON.stringify(value, null, 2)
|
|
@@ -691,4 +696,4 @@ async function lorebookApproval(exec, next, state) {
|
|
|
691
696
|
//#endregion
|
|
692
697
|
export { lorebookImportMessage as a, lorebookOfChat as c, selectEntries as d, lorebookAuthorTools as i, previewLorebook as l, LorebookReader as n, pendingTargets as o, lorebookApproval as r, lorebookChatSessionId as s, LOREBOOK_UPLOAD as t, readLorebook as u };
|
|
693
698
|
|
|
694
|
-
//# sourceMappingURL=lorebook-author-tools-
|
|
699
|
+
//# sourceMappingURL=lorebook-author-tools-v-PM8Kbs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { St as lorebookDirectory, n as limitAuthoringAgents } from "./authoring-tools-
|
|
2
|
-
import "./hooks-
|
|
3
|
-
import { c as lorebookOfChat, i as lorebookAuthorTools, n as LorebookReader, o as pendingTargets, r as lorebookApproval } from "./lorebook-author-tools-
|
|
1
|
+
import { St as lorebookDirectory, n as limitAuthoringAgents } from "./authoring-tools-BWjEr_lF.js";
|
|
2
|
+
import "./hooks-DufjUf1p.js";
|
|
3
|
+
import { c as lorebookOfChat, i as lorebookAuthorTools, n as LorebookReader, o as pendingTargets, r as lorebookApproval } from "./lorebook-author-tools-v-PM8Kbs.js";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { existsSync, readdirSync } from "node:fs";
|
|
6
6
|
//#region src/lorebook-authoring.ts
|
package/lib/orchestration.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as chatSessionId, r as roleplaySessionOf, t as promptFor } from "./access-EbNdZFbk.js";
|
|
2
|
-
import { b as INTENT_STATUSES } from "./presets-
|
|
3
|
-
import {
|
|
2
|
+
import { b as INTENT_STATUSES } from "./presets-D11bxWX0.js";
|
|
3
|
+
import { S as referent, a as whereabouts, c as noAt, f as Timelines, l as routeVerdicts, n as memoryReflector, o as announceProblem, r as recordFailure, s as askYesNo, t as dueReflection, u as yesAt, x as sameWords } from "./reflection-CRCWK2E1.js";
|
|
4
4
|
import { a as liveSettings, g as GATE_SITES, n as encodeOutput } from "./narration-_dA9oIt2.js";
|
|
5
|
-
import { D as describeWhen, O as zoneOf, R as wrongLanguage, T as ClockError, c as record, d as toolEnabled, dt as translator, f as MAX_OOC_ANSWER, k as RESULTS, l as AUTHORING_NEEDS, n as installHooks, o as PREVIEW_TOOL, ot as ReflectionRefusedError, p as storesOf, r as externalGiven, s as createTools$1, u as characterRunner, ut as languageOf, v as readVerdicts, y as writeVerdicts } from "./hooks-
|
|
5
|
+
import { D as describeWhen, O as zoneOf, R as wrongLanguage, T as ClockError, c as record, d as toolEnabled, dt as translator, f as MAX_OOC_ANSWER, k as RESULTS, l as AUTHORING_NEEDS, n as installHooks, o as PREVIEW_TOOL, ot as ReflectionRefusedError, p as storesOf, r as externalGiven, s as createTools$1, u as characterRunner, ut as languageOf, v as readVerdicts, y as writeVerdicts } from "./hooks-DufjUf1p.js";
|
|
6
6
|
import { h as tokensOf, i as childTrace, m as estimateAnswer, n as childSampling, o as runChild, p as currentTurn, t as childModel } from "./child-D5SVNk4O.js";
|
|
7
7
|
import { b as slug, t as addToLibrary, x as uniqueKey } from "./library-DsDc6fQa.js";
|
|
8
|
-
import { _ as API_PREFIX } from "./packs-
|
|
8
|
+
import { _ as API_PREFIX } from "./packs-DWKnL4YX.js";
|
|
9
9
|
import { i as updateImage, r as listGallery, t as describeGalleryImage } from "./gallery-C7VOJ3xH.js";
|
|
10
10
|
import { n as interpretImage, s as presentedFor, t as runImagePresenter } from "./presenter-agent-BHSbyWwZ.js";
|
|
11
11
|
import { join } from "node:path";
|
|
@@ -3652,8 +3652,10 @@ function apply(ctx) {
|
|
|
3652
3652
|
await engine.quiesce(chat);
|
|
3653
3653
|
engine.forget(chat);
|
|
3654
3654
|
};
|
|
3655
|
+
ctx.roleplayOrchestration.quiesce = (chat) => engine.quiesce(chat);
|
|
3655
3656
|
return () => {
|
|
3656
3657
|
ctx.roleplayOrchestration.halt = () => Promise.resolve();
|
|
3658
|
+
ctx.roleplayOrchestration.quiesce = () => Promise.resolve();
|
|
3657
3659
|
};
|
|
3658
3660
|
}, "roleplay: halt");
|
|
3659
3661
|
ctx.effect(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as LOCATION_FILE_NAME, A as loadTriggers, At as parseLoreFile, B as loadItems, C as populateLocations, D as populateVariables, Dt as LORE_DIR, F as loadCalendar, G as extractStyleFrom, H as loadFactions, J as withPlayer, L as LOCATIONS_DIR, Mt as InvalidEditProblems, Ot as loadLore, R as loadLocations, U as CHARACTERS_DIR, V as FACTIONS_DIR, W as loadCharacters, X as loadVariables, _ as populateCharacters, at as CHARACTER_FILE_NAME, c as authoredWorldOf, dt as WORLD_FILE_NAME, et as parseLocationFile, ft as parseWorldFile, h as knowsCharacter, i as contextOf, it as parseFactionFile, jt as subfolders, k as TRIGGERS_FILE_NAME, kt as LORE_FILE_NAME, m as loadValidatedWorld, nt as parseItemFile, ot as parseCharacterFile, rt as FACTION_FILE_NAME, s as worldOf, st as IMPORT_FOLDER, tt as ITEM_FILE_NAME, x as populateItems, z as ITEMS_DIR } from "./authoring-tools-
|
|
2
|
-
import { v as writeWorldPrompt } from "./presets-
|
|
1
|
+
import { $ as LOCATION_FILE_NAME, A as loadTriggers, At as parseLoreFile, B as loadItems, C as populateLocations, D as populateVariables, Dt as LORE_DIR, F as loadCalendar, G as extractStyleFrom, H as loadFactions, J as withPlayer, L as LOCATIONS_DIR, Mt as InvalidEditProblems, Ot as loadLore, R as loadLocations, U as CHARACTERS_DIR, V as FACTIONS_DIR, W as loadCharacters, X as loadVariables, _ as populateCharacters, at as CHARACTER_FILE_NAME, c as authoredWorldOf, dt as WORLD_FILE_NAME, et as parseLocationFile, ft as parseWorldFile, h as knowsCharacter, i as contextOf, it as parseFactionFile, jt as subfolders, k as TRIGGERS_FILE_NAME, kt as LORE_FILE_NAME, m as loadValidatedWorld, nt as parseItemFile, ot as parseCharacterFile, rt as FACTION_FILE_NAME, s as worldOf, st as IMPORT_FOLDER, tt as ITEM_FILE_NAME, x as populateItems, z as ITEMS_DIR } from "./authoring-tools-BWjEr_lF.js";
|
|
2
|
+
import { v as writeWorldPrompt } from "./presets-D11bxWX0.js";
|
|
3
3
|
import { f as parseSwitchboard } from "./narration-_dA9oIt2.js";
|
|
4
|
-
import { B as loadPlots, F as STORY_LANGUAGES, G as formatIssue, H as plotReferenceProblems, I as isStoryLanguage, J as PROMPTS_FOLDER, L as textLanguage, P as LANGUAGE_NAMES, V as parsePlotsFile, at as InvalidWorldError, tt as shippedLanguages, z as PLOTS_FILE_NAME } from "./hooks-
|
|
4
|
+
import { B as loadPlots, F as STORY_LANGUAGES, G as formatIssue, H as plotReferenceProblems, I as isStoryLanguage, J as PROMPTS_FOLDER, L as textLanguage, P as LANGUAGE_NAMES, V as parsePlotsFile, at as InvalidWorldError, dt as translator, tt as shippedLanguages, ut as languageOf, z as PLOTS_FILE_NAME } from "./hooks-DufjUf1p.js";
|
|
5
5
|
import { c as parseSampling } from "./child-D5SVNk4O.js";
|
|
6
6
|
import { c as referenceImagePath, v as mapLimit } from "./library-DsDc6fQa.js";
|
|
7
|
-
import { n as readPreset } from "./preset-
|
|
8
|
-
import { _ as API_PREFIX, a as packIds, d as packPath, f as readPack, h as PACK_MEDIA_TYPES, l as isPackId } from "./packs-
|
|
7
|
+
import { n as readPreset } from "./preset-CDNyJhfU.js";
|
|
8
|
+
import { _ as API_PREFIX, a as packIds, d as packPath, f as readPack, h as PACK_MEDIA_TYPES, l as isPackId } from "./packs-DWKnL4YX.js";
|
|
9
9
|
import { a as uploadReferenceImage, t as generateReferenceImage } from "./generator-CO8usAjE.js";
|
|
10
10
|
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
11
11
|
import { existsSync, lstatSync, statSync } from "node:fs";
|
|
@@ -746,7 +746,12 @@ const PRESET_TOOL = "import_preset";
|
|
|
746
746
|
const PRESET_FILE = "preset.json";
|
|
747
747
|
const PRESET_PATH = `${IMPORT_FOLDER}/${PRESET_FILE}`;
|
|
748
748
|
/** The command that has the authoring chat apply a preset that was uploaded to the world. */
|
|
749
|
-
|
|
749
|
+
function presetMessage(language) {
|
|
750
|
+
return translator(languageOf(language))("Apply the narration preset I uploaded to this world: call {tool} with file {file}.", {
|
|
751
|
+
tool: PRESET_TOOL,
|
|
752
|
+
file: PRESET_PATH
|
|
753
|
+
});
|
|
754
|
+
}
|
|
750
755
|
/** The tool that turns an uploaded narration preset into the world's prose prompts; every call asks the person first. */
|
|
751
756
|
function presetTools(worlds, settings, prompting) {
|
|
752
757
|
return [defineTool({
|
|
@@ -2134,4 +2139,4 @@ function registerPackJail(ctx, deps) {
|
|
|
2134
2139
|
//#endregion
|
|
2135
2140
|
export { worldEntityImageFile as A, readWorldInfo as B, readWorldEditor as C, uploadWorldCharacterPortrait as D, replaceFile$1 as E, loadWorldParts as F, translateTools as H, PRESET_FILE as I, presetMessage as L, deleteTriggerDocument as M, readTriggerDocuments as N, uploadWorldEntityImage as O, writeTriggerDocument as P, presetTools as R, generateWorldEntityImage as S, removeWorldTrigger as T, languageOfDocuments as U, translateMessage as V, readWorldDocuments as W, editWorldPlots as _, deleteWorldPackFile as a, entityFolder as b, createAuthoredEntity as c, replaceAuthoredEntity as d, editWorldCharacter as f, editWorldPlace as g, editWorldNarrationVoice as h, checkWorldPack as i, writeWorldTrigger as j, worldCharacterPortraitFile as k, deleteAuthoredEntity as l, editWorldLore as m, packFileProblem as n, listWorldPacks as o, editWorldFaction as p, registerPackJail as r, AUTHORED_ENTITY_KINDS as s, MAX_PACK_TEXT as t, readAuthoredEntityDocument as u, editWorldRelation as v, readWorldTrigger as w, generateWorldCharacterPortrait as x, editWorldThing as y, editWorldInfo as z };
|
|
2136
2141
|
|
|
2137
|
-
//# sourceMappingURL=pack-jail
|
|
2142
|
+
//# sourceMappingURL=pack-jail--Ij90LeY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as Reader } from "./hooks-
|
|
1
|
+
import { W as Reader } from "./hooks-DufjUf1p.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-DWKnL4YX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as ImportCardError, K as cleanText, r as MAX_PREVIEW_TEXT } from "./authoring-tools-
|
|
1
|
+
import { Bt as ImportCardError, K as cleanText, r as MAX_PREVIEW_TEXT } from "./authoring-tools-BWjEr_lF.js";
|
|
2
2
|
import { s as SAMPLING_RANGES } from "./child-D5SVNk4O.js";
|
|
3
3
|
//#region src/host/import/preset.ts
|
|
4
4
|
/** The older preset layout keeps its texts under fixed keys. */
|
|
@@ -239,4 +239,4 @@ function selectPrompts(file, enabled, keepSampling) {
|
|
|
239
239
|
//#endregion
|
|
240
240
|
export { readPreset as n, selectPrompts as r, previewPreset as t };
|
|
241
241
|
|
|
242
|
-
//# sourceMappingURL=preset-
|
|
242
|
+
//# sourceMappingURL=preset-CDNyJhfU.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { G as extractStyleFrom, J as withPlayer, i as contextOf, st as IMPORT_FOLDER } from "./authoring-tools-
|
|
2
|
-
import { _ as readWorldPrompt, c as presetDirectory, g as listWorldPrompts, h as deleteWorldPrompt, l as readPreset, m as PROSE_PROMPTS, p as updatePresetInfo, t as PRESET_FILE, v as writeWorldPrompt } from "./presets-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { G as extractStyleFrom, J as withPlayer, i as contextOf, st as IMPORT_FOLDER } from "./authoring-tools-BWjEr_lF.js";
|
|
2
|
+
import { _ as readWorldPrompt, c as presetDirectory, g as listWorldPrompts, h as deleteWorldPrompt, l as readPreset, m as PROSE_PROMPTS, p as updatePresetInfo, t as PRESET_FILE, v as writeWorldPrompt } from "./presets-D11bxWX0.js";
|
|
3
|
+
import "./narration-_dA9oIt2.js";
|
|
4
|
+
import { Q as languageOf$1, dt as translator, nt as shippedPromptsDirectory, tt as shippedLanguages, ut as languageOf } from "./hooks-DufjUf1p.js";
|
|
5
|
+
import { n as readPreset$1 } from "./preset-CDNyJhfU.js";
|
|
5
6
|
import { join } from "node:path";
|
|
6
7
|
import { existsSync } from "node:fs";
|
|
7
8
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
@@ -34,7 +35,12 @@ const PRESET_MUTATION_TOOLS = [
|
|
|
34
35
|
const NARRATION_IMPORT_TOOL = "import_narration_preset";
|
|
35
36
|
const UPLOAD_PATH = `${IMPORT_FOLDER}/${PRESET_FILE}`;
|
|
36
37
|
/** The command that has a preset's authoring chat turn an uploaded SillyTavern preset into prompts. */
|
|
37
|
-
|
|
38
|
+
function narrationImportMessage(language) {
|
|
39
|
+
return translator(languageOf(language))("Turn the SillyTavern preset I uploaded into this preset's prompts: call {tool} with file {file}.", {
|
|
40
|
+
tool: NARRATION_IMPORT_TOOL,
|
|
41
|
+
file: UPLOAD_PATH
|
|
42
|
+
});
|
|
43
|
+
}
|
|
38
44
|
const output = (value) => [{
|
|
39
45
|
type: "text",
|
|
40
46
|
text: JSON.stringify(value, null, 2)
|
|
@@ -136,7 +142,7 @@ function presetAuthorTools(reader, settings, prompting, shipped = shippedPrompts
|
|
|
136
142
|
return json({
|
|
137
143
|
action: "written",
|
|
138
144
|
id: args.id,
|
|
139
|
-
language: languageOf(args.language)
|
|
145
|
+
language: languageOf$1(args.language)
|
|
140
146
|
});
|
|
141
147
|
}
|
|
142
148
|
}),
|
|
@@ -154,7 +160,7 @@ function presetAuthorTools(reader, settings, prompting, shipped = shippedPrompts
|
|
|
154
160
|
return json({
|
|
155
161
|
action: "deleted",
|
|
156
162
|
id: args.id,
|
|
157
|
-
language: languageOf(args.language),
|
|
163
|
+
language: languageOf$1(args.language),
|
|
158
164
|
trashPath
|
|
159
165
|
});
|
|
160
166
|
}
|
|
@@ -273,4 +279,4 @@ async function presetApproval(exec, next, carries) {
|
|
|
273
279
|
//#endregion
|
|
274
280
|
export { presetChatSessionId as a, presetAuthorTools as i, narrationImportMessage as n, presetOfChat as o, presetApproval as r, PresetReader as t };
|
|
275
281
|
|
|
276
|
-
//# sourceMappingURL=preset-author-tools-
|
|
282
|
+
//# sourceMappingURL=preset-author-tools-D7Azdlaq.js.map
|
package/lib/preset-authoring.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as limitAuthoringAgents } from "./authoring-tools-
|
|
2
|
-
import { c as presetDirectory } from "./presets-
|
|
3
|
-
import "./hooks-
|
|
4
|
-
import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-
|
|
1
|
+
import { n as limitAuthoringAgents } from "./authoring-tools-BWjEr_lF.js";
|
|
2
|
+
import { c as presetDirectory } from "./presets-D11bxWX0.js";
|
|
3
|
+
import "./hooks-DufjUf1p.js";
|
|
4
|
+
import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-D7Azdlaq.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
//#region src/preset-authoring.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as listFiles, J as PROMPTS_FOLDER, Q as languageOf, et as promptProblem, nt as shippedPromptsDirectory, q as LANGUAGE_FOLDER, tt as shippedLanguages } from "./hooks-
|
|
1
|
+
import { $ as listFiles, J as PROMPTS_FOLDER, Q as languageOf, et as promptProblem, nt as shippedPromptsDirectory, q as LANGUAGE_FOLDER, tt as shippedLanguages } from "./hooks-DufjUf1p.js";
|
|
2
2
|
import { c as parseSampling } from "./child-D5SVNk4O.js";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
@@ -354,4 +354,4 @@ async function createPresetFromGuidance(root, request, guidance, shipped = shipp
|
|
|
354
354
|
//#endregion
|
|
355
355
|
export { readWorldPrompt as _, isPresetName as a, INTENT_STATUSES as b, presetDirectory as c, savePresetFromWorld as d, sha as f, listWorldPrompts as g, deleteWorldPrompt as h, deletePreset as i, readPreset as l, PROSE_PROMPTS as m, createPresetFromGuidance as n, listPresets as o, updatePresetInfo as p, createPresetFromShipped as r, loadPreset as s, PRESET_FILE as t, reservePreset as u, writeWorldPrompt as v, INTENT_TYPES as x, INTENT_HORIZONS as y };
|
|
356
356
|
|
|
357
|
-
//# sourceMappingURL=presets-
|
|
357
|
+
//# sourceMappingURL=presets-D11bxWX0.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as roleplaySessionOf, t as promptFor } from "./access-EbNdZFbk.js";
|
|
2
|
-
import { f as sha, o as listPresets, s as loadPreset } from "./presets-
|
|
2
|
+
import { f as sha, o as listPresets, s as loadPreset } from "./presets-D11bxWX0.js";
|
|
3
3
|
import "./narration-_dA9oIt2.js";
|
|
4
|
-
import { A as answerLimits, D as describeWhen, E as describeTime, J as PROMPTS_FOLDER, R as wrongLanguage, Z as inheritPrompts, dt as translator, ut as languageOf } from "./hooks-
|
|
4
|
+
import { A as answerLimits, D as describeWhen, E as describeTime, J as PROMPTS_FOLDER, R as wrongLanguage, Z as inheritPrompts, dt as translator, ut as languageOf } from "./hooks-DufjUf1p.js";
|
|
5
5
|
import { t as trimCharacters } from "./text-CT1re6XT.js";
|
|
6
6
|
import { i as childTrace, m as estimateAnswer, n as childSampling, o as runChild, t as childModel } from "./child-D5SVNk4O.js";
|
|
7
7
|
import { a as inheritImages } from "./library-DsDc6fQa.js";
|
|
8
|
-
import { i as inheritPacks } from "./packs-
|
|
8
|
+
import { i as inheritPacks } from "./packs-DWKnL4YX.js";
|
|
9
9
|
import { dirname, join } from "node:path";
|
|
10
10
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
@@ -2198,6 +2198,6 @@ function memoryReflector(deps) {
|
|
|
2198
2198
|
} };
|
|
2199
2199
|
}
|
|
2200
2200
|
//#endregion
|
|
2201
|
-
export { readTimeline as _, whereabouts as a,
|
|
2201
|
+
export { referent as S, readTimeline as _, whereabouts as a, defaultBoundaries as b, noAt as c, TimelineError as d, Timelines as f, switchPreset as g, recordPreset as h, reflectionStatus as i, routeVerdicts as l, presetStatus as m, memoryReflector as n, announceProblem as o, copyPreset as p, recordFailure as r, askYesNo as s, dueReflection as t, yesAt as u, writeTimeline as v, sameWords as x, pathTo as y };
|
|
2202
2202
|
|
|
2203
|
-
//# sourceMappingURL=reflection-
|
|
2203
|
+
//# sourceMappingURL=reflection-CRCWK2E1.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-agentic-roleplay/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Core plugin of the agentic roleplay bundle for DeepSeek Harness: roleplay UI, orchestration and storage.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Firefox2100",
|
|
@@ -76,39 +76,39 @@
|
|
|
76
76
|
"@deepseek-ai/schemastery": "^3.18.5"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@dsh-agentic-roleplay/state": "0.
|
|
79
|
+
"@dsh-agentic-roleplay/state": "0.7.0",
|
|
80
80
|
"@dsh-ai-providers/core": "^0.5.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
84
84
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.6",
|
|
85
|
-
"@deepseek-ai/dsh-agent": "0.2.1-rc.
|
|
86
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.
|
|
87
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.
|
|
88
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.
|
|
89
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-rc.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.
|
|
100
|
-
"@deepseek-ai/dsh-compaction": "0.2.1-rc.
|
|
101
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.
|
|
102
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.
|
|
103
|
-
"@deepseek-ai/dsh-llm": "0.2.1-rc.
|
|
104
|
-
"@deepseek-ai/dsh-session": "0.2.1-rc.
|
|
105
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.
|
|
106
|
-
"@deepseek-ai/dsh-subagent": "0.2.1-rc.
|
|
107
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.
|
|
108
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.
|
|
109
|
-
"@deepseek-ai/dsh-token-meter": "0.2.1-rc.
|
|
110
|
-
"@deepseek-ai/dsh-tools": "0.2.1-rc.
|
|
111
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.
|
|
85
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.3",
|
|
86
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.3",
|
|
87
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.3",
|
|
88
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.3",
|
|
89
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.3",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.3",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.3",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.3",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.3",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.3",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.3",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.3",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.3",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.3",
|
|
100
|
+
"@deepseek-ai/dsh-compaction": "0.2.1-rc.3",
|
|
101
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.3",
|
|
102
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.3",
|
|
103
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.3",
|
|
104
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.3",
|
|
105
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.3",
|
|
106
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.3",
|
|
107
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.3",
|
|
108
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.3",
|
|
109
|
+
"@deepseek-ai/dsh-token-meter": "0.2.1-rc.3",
|
|
110
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.3",
|
|
111
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.3",
|
|
112
112
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
113
113
|
"@types/node": "^22.20.0",
|
|
114
114
|
"@types/react": "~18.3.1",
|