@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
package/lib/compaction.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as roleplaySessionOf, t as promptFor } from "./access-DtOxFKBK.js";
|
|
2
|
-
import { a as liveSettings, t as decodeOutput } from "./narration-
|
|
3
|
-
import { c as runChild, n as childModel, r as childSampling, y as tokensOf } from "./child-
|
|
2
|
+
import { a as liveSettings, t as decodeOutput } from "./narration-CnBlVure.js";
|
|
3
|
+
import { c as runChild, n as childModel, r as childSampling, y as tokensOf } from "./child-D6mpkkCE.js";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { sessionFolder } from "@dsh-agentic-roleplay/state";
|
|
6
6
|
import BasicCompactionEngine from "@deepseek-ai/dsh-compaction-basic";
|
package/lib/doctor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as chatSessionId } from "./access-DtOxFKBK.js";
|
|
2
|
-
import { a as liveSettings } from "./narration-
|
|
3
|
-
import { i as externalTools, t as externalToolLimit } from "./hooks-
|
|
2
|
+
import { a as liveSettings } from "./narration-CnBlVure.js";
|
|
3
|
+
import { i as externalTools, t as externalToolLimit } from "./hooks-BQCzgggH.js";
|
|
4
4
|
import { n as doctorSessionOf } from "./doctor-chat-ByDfCMeo.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as writeImageFileMetadata, a as LIBRARY_FOLDER, b as mapLimit, g as sidecarOf, h as readImageFileMetadata, m as mediaTypeOf } from "./library-
|
|
1
|
+
import { _ as writeImageFileMetadata, a as LIBRARY_FOLDER, b as mapLimit, g as sidecarOf, h as readImageFileMetadata, m as mediaTypeOf } from "./library-zI-2tG7h.js";
|
|
2
2
|
import { join, sep } from "node:path";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { lstat, mkdir, readFile, readdir, realpath, rename, stat, writeFile } from "node:fs/promises";
|
|
@@ -192,4 +192,4 @@ async function updateImage(sessionFolder, path, update) {
|
|
|
192
192
|
//#endregion
|
|
193
193
|
export { updateImage as i, galleryFile as n, listGallery as r, describeGalleryImage as t };
|
|
194
194
|
|
|
195
|
-
//# sourceMappingURL=gallery-
|
|
195
|
+
//# sourceMappingURL=gallery-D9nG3C78.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as sceneImagePath, f as writeImage, u as referenceImagePath } from "./library-
|
|
1
|
+
import { d as sceneImagePath, f as writeImage, u as referenceImagePath } from "./library-zI-2tG7h.js";
|
|
2
2
|
//#region src/host/images/generator.ts
|
|
3
3
|
const unique = (values) => [...new Set(values.map((value) => value.trim()).filter((value) => value !== ""))];
|
|
4
4
|
/** What a reference image shows: the subject and its stable look. */
|
|
@@ -142,4 +142,4 @@ async function generateTransientImage(service, request) {
|
|
|
142
142
|
//#endregion
|
|
143
143
|
export { uploadReferenceImage as a, transientPrompt as i, generateTransientImage as n, referencePrompt as r, generateReferenceImage as t };
|
|
144
144
|
|
|
145
|
-
//# sourceMappingURL=generator-
|
|
145
|
+
//# sourceMappingURL=generator-r1Czm7oi.js.map
|
package/lib/helper.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { o as roleplaySessionOf, t as promptFor } from "./access-DtOxFKBK.js";
|
|
2
|
-
import { _ as
|
|
3
|
-
import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-
|
|
4
|
-
import { a as childTrace, c as runChild, f as tokensOf, m as addTokens, n as childModel, p as NO_TOKENS, r as childSampling, v as estimateAnswer } from "./child-
|
|
2
|
+
import { _ as DECISION_SITES, a as liveSettings, g as rulesOf, h as WORLD_RULES_KEY, n as encodeOutput, r as encodePreview, y as emptyStats } from "./narration-CnBlVure.js";
|
|
3
|
+
import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-BzudpQLS.js";
|
|
4
|
+
import { a as childTrace, c as runChild, f as tokensOf, m as addTokens, n as childModel, p as NO_TOKENS, r as childSampling, v as estimateAnswer } from "./child-D6mpkkCE.js";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { copyFileSync, cpSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
7
|
+
import { readFile, stat } from "node:fs/promises";
|
|
7
8
|
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
8
9
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
9
10
|
import { fileURLToPath } from "node:url";
|
|
10
11
|
import { Service } from "@deepseek-ai/cordis";
|
|
11
|
-
import { readFile, stat } from "node:fs/promises";
|
|
12
12
|
import { DAY, ENGAGEMENT_GRACE, ITEM_ACTIONS, MINUTE, SECOND, addLocalDays, agendaAt, announcements, applyItemPlan, changeItem, changeVariable, clockTime, createCharacterTools, createDiceTools, createTools, dayPart, describeDuration, describeInstant, describeValue, holidaysOn, inAudience, isSessionId, itemKey, localTime, locationKey, nextOccurrence, nextTimeOfDay, occurrenceAt, parseInstant, planItemChange, planVariableChange, readCalendar, rollPlain, seasonOf, sessionDatabase, sessionFolder, shownVariables } from "@dsh-agentic-roleplay/state";
|
|
13
13
|
//#region ../dsh-roleplay-model/src/plot.ts
|
|
14
14
|
const PLOT_STATUSES = [
|
|
@@ -396,6 +396,16 @@ async function readDocument(file, parse, problems) {
|
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
//#endregion
|
|
399
|
+
//#region src/shared/commands.ts
|
|
400
|
+
const COMMANDS_KEY = "roleplay.commands";
|
|
401
|
+
/** The name of the flag a command raises. */
|
|
402
|
+
const commandFlagKey = (command) => `command_${command.key}`;
|
|
403
|
+
/** The commands kept with a story, or none when the value is missing or is not a list of commands. */
|
|
404
|
+
function commandsOf(value) {
|
|
405
|
+
if (!Array.isArray(value)) return [];
|
|
406
|
+
return value.filter((entry) => typeof entry === "object" && entry !== null && typeof entry.word === "string" && typeof entry.key === "string" && typeof entry.description === "string");
|
|
407
|
+
}
|
|
408
|
+
//#endregion
|
|
399
409
|
//#region src/host/plots/load.ts
|
|
400
410
|
const PLOTS_FILE_NAME = "plots.json";
|
|
401
411
|
function development(reader, fallback) {
|
|
@@ -1083,6 +1093,11 @@ const verdictReader = (session) => {
|
|
|
1083
1093
|
};
|
|
1084
1094
|
//#endregion
|
|
1085
1095
|
//#region src/host/triggers/notes.ts
|
|
1096
|
+
/** The beat effect of a note's trigger that has the world author make something instead of telling the game master. */
|
|
1097
|
+
function authorEffect(session, note) {
|
|
1098
|
+
if (note.kind !== "beat") return void 0;
|
|
1099
|
+
for (const effect of session.triggers.list().find((trigger) => trigger.id === note.triggerId)?.effects ?? []) if (effect.type === "beat" && effect.dispatch === "author") return { need: effect.need ?? "arrival" };
|
|
1100
|
+
}
|
|
1086
1101
|
/** Fires the triggers whose conditions just came true, and says what each did in words. A trigger that could not be applied is reported and given up. */
|
|
1087
1102
|
function fireTriggers(session, input) {
|
|
1088
1103
|
const { settings, turn, round, now, zone, problem } = input;
|
|
@@ -1098,7 +1113,7 @@ function fireTriggers(session, input) {
|
|
|
1098
1113
|
});
|
|
1099
1114
|
for (const failure of run.failed) problem(`the trigger "${failure.trigger.key}" could not fire and is given up: ${failure.problem}`);
|
|
1100
1115
|
const names = new Map(session.characters.list().map((character) => [character.id, character.name]));
|
|
1101
|
-
const fresh = session.triggers.notes({ status: "pending" }).filter((note) => note.id > before);
|
|
1116
|
+
const fresh = session.triggers.notes({ status: "pending" }).filter((note) => note.id > before && authorEffect(session, note) === void 0);
|
|
1102
1117
|
const told = new Map(deliverNow(session, fresh, {
|
|
1103
1118
|
now,
|
|
1104
1119
|
zone
|
|
@@ -1156,7 +1171,24 @@ function noteStore(session, settings, clock) {
|
|
|
1156
1171
|
pendingBeats: () => deliverNow(session, session.triggers.notes({
|
|
1157
1172
|
status: "pending",
|
|
1158
1173
|
kind: "beat"
|
|
1159
|
-
}), clock(session.metadata.get().turns + 1)),
|
|
1174
|
+
}).filter((note) => authorEffect(session, note) === void 0), clock(session.metadata.get().turns + 1)),
|
|
1175
|
+
claimAuthorBeats: () => {
|
|
1176
|
+
const claimed = [];
|
|
1177
|
+
for (const note of session.triggers.notes({
|
|
1178
|
+
status: "pending",
|
|
1179
|
+
kind: "beat"
|
|
1180
|
+
})) {
|
|
1181
|
+
const effect = authorEffect(session, note);
|
|
1182
|
+
if (effect === void 0) continue;
|
|
1183
|
+
session.triggers.resolveNote(note.id, "done");
|
|
1184
|
+
claimed.push({
|
|
1185
|
+
id: note.id,
|
|
1186
|
+
need: effect.need,
|
|
1187
|
+
text: note.text
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
return claimed;
|
|
1191
|
+
},
|
|
1160
1192
|
resolveBeats: (ids) => {
|
|
1161
1193
|
const pending = new Set(session.triggers.notes({
|
|
1162
1194
|
status: "pending",
|
|
@@ -2024,6 +2056,14 @@ function storeOf(session, folder, problem, queryVector, wall, prompt) {
|
|
|
2024
2056
|
recordDecisions: (site, report) => {
|
|
2025
2057
|
recordDecisions(folder, site, report);
|
|
2026
2058
|
},
|
|
2059
|
+
raiseCommand: (word, turn) => {
|
|
2060
|
+
const commands = commandsOf(session.metadata.getValue(COMMANDS_KEY));
|
|
2061
|
+
const used = word === void 0 ? void 0 : commands.find((command) => command.word === word.toLowerCase());
|
|
2062
|
+
session.transaction(() => {
|
|
2063
|
+
for (const command of commands) session.variables.set(commandFlagKey(command), "world", 0, { value: command === used }, turn);
|
|
2064
|
+
});
|
|
2065
|
+
return used;
|
|
2066
|
+
},
|
|
2027
2067
|
recordUsage: (turn, tokens) => {
|
|
2028
2068
|
addUsage(session, turn, "master", tokens);
|
|
2029
2069
|
},
|
|
@@ -2109,6 +2149,38 @@ function parseRoll(text) {
|
|
|
2109
2149
|
};
|
|
2110
2150
|
}
|
|
2111
2151
|
//#endregion
|
|
2152
|
+
//#region src/host/agents/repeat-guard.ts
|
|
2153
|
+
/** Refused repeats after which the turn is ended instead of being refused again. */
|
|
2154
|
+
const REFUSALS_BEFORE_STOP = 5;
|
|
2155
|
+
/**
|
|
2156
|
+
* Keeps an agent that is stuck from making the same call again and again (found live: an assistant made one create-and-list pair 47 times in a review, a game master repeated one
|
|
2157
|
+
* refused round resolution): past `limit` identical calls in one turn the call is refused with a word that sends it on, and when it goes on regardless the turn is ended. The count starts over at the first step of every turn.
|
|
2158
|
+
* @param languageOf the language of the chat the call belongs to, or nothing when the guard does not apply to it.
|
|
2159
|
+
*/
|
|
2160
|
+
function guardRepeatedCalls(ctx, languageOf, limit) {
|
|
2161
|
+
const calls = /* @__PURE__ */ new Map();
|
|
2162
|
+
ctx.on("agent/pre-step", async (payload, next) => {
|
|
2163
|
+
if (payload.step === 1) calls.delete(payload.agent.session.id);
|
|
2164
|
+
return await next();
|
|
2165
|
+
});
|
|
2166
|
+
ctx.on("tools/pre-execute", async (exec, next) => {
|
|
2167
|
+
const chat = exec.agent?.session.id;
|
|
2168
|
+
const language = chat === void 0 || exec.agent?.session.header.origin === "subagent" ? void 0 : languageOf(exec);
|
|
2169
|
+
if (chat === void 0 || language === void 0) return await next();
|
|
2170
|
+
const signature = `${exec.name}:${JSON.stringify(exec.arguments)}`;
|
|
2171
|
+
const seen = calls.get(chat) ?? /* @__PURE__ */ new Map();
|
|
2172
|
+
calls.set(chat, seen);
|
|
2173
|
+
const count = (seen.get(signature) ?? 0) + 1;
|
|
2174
|
+
seen.set(signature, count);
|
|
2175
|
+
if (count <= limit) return await next();
|
|
2176
|
+
if (count > limit + REFUSALS_BEFORE_STOP) exec.agent?.cancel({ kind: "user" }, { keepInbox: true });
|
|
2177
|
+
return {
|
|
2178
|
+
kind: "deny",
|
|
2179
|
+
reason: translator(languageOf$1(language))("This exact call was already made {count} times in this turn with the same result. Do not repeat it: go on with the next step, or finish and say what is left.", { count: count - 1 })
|
|
2180
|
+
};
|
|
2181
|
+
}, { prepend: true });
|
|
2182
|
+
}
|
|
2183
|
+
//#endregion
|
|
2112
2184
|
//#region src/shared/tools.ts
|
|
2113
2185
|
/** What this version can offer. A name in a settings file or a world that is not here is kept and ignored. */
|
|
2114
2186
|
const OPTIONAL_TOOLS = [
|
|
@@ -3371,6 +3443,8 @@ function externalToolLimit(agent, withheld) {
|
|
|
3371
3443
|
* that uses the preset and also hear the agents that chat spawns, so each one
|
|
3372
3444
|
* first checks that it is looking at the game master of a roleplay chat.
|
|
3373
3445
|
*/
|
|
3446
|
+
/** Identical calls the game master may make in one turn: a refused resolution is mended and sent again, so a few repeats are work, many are a loop. */
|
|
3447
|
+
const MASTER_SAME_CALL = 4;
|
|
3374
3448
|
function installHooks(ctx, deps) {
|
|
3375
3449
|
const { engine, boundaries, stores, timelines, previewTool } = deps;
|
|
3376
3450
|
const showPreviewTool = previewToggle(previewTool);
|
|
@@ -3381,6 +3455,10 @@ function installHooks(ctx, deps) {
|
|
|
3381
3455
|
showOptionalTools(agent, (tool) => toolEnabled(tools, "gameMaster", tool));
|
|
3382
3456
|
externalToolLimit(agent, externalWithheld(agent.ctx.tools, tools, "gameMaster"));
|
|
3383
3457
|
};
|
|
3458
|
+
guardRepeatedCalls(ctx, (exec) => {
|
|
3459
|
+
const owner = exec.agent === void 0 ? void 0 : ownerOf(exec.agent, 0);
|
|
3460
|
+
return owner === void 0 ? void 0 : stores(owner.chat)?.settings().prompts.language;
|
|
3461
|
+
}, MASTER_SAME_CALL);
|
|
3384
3462
|
ctx.on("agent/created", ({ agent }) => {
|
|
3385
3463
|
const owner = ownerOf(agent, 0);
|
|
3386
3464
|
const store = owner === void 0 ? void 0 : stores(owner.chat);
|
|
@@ -3429,6 +3507,8 @@ function installHooks(ctx, deps) {
|
|
|
3429
3507
|
await timelines.begin(owner.chat, payload.turn, text);
|
|
3430
3508
|
const cast = store.cast();
|
|
3431
3509
|
const ooc = parseOoc(text);
|
|
3510
|
+
const command = ooc === void 0 ? /^\/([\p{L}\p{N}_]+)/u.exec(text.trim())?.[1] : void 0;
|
|
3511
|
+
const used = store.raiseCommand?.(command, payload.turn);
|
|
3432
3512
|
const verdict = ooc === void 0 ? boundaries().inputValidator.validate({
|
|
3433
3513
|
text,
|
|
3434
3514
|
turn: payload.turn,
|
|
@@ -3477,6 +3557,10 @@ function installHooks(ctx, deps) {
|
|
|
3477
3557
|
...queryVector === void 0 ? {} : { queryVector }
|
|
3478
3558
|
})];
|
|
3479
3559
|
const pacing = ooc === void 0 ? pacingAdvice(store, payload.turn) : void 0;
|
|
3560
|
+
if (used !== void 0) lines.push(tr("The player used the world's command /{word}: {description}", {
|
|
3561
|
+
word: used.word,
|
|
3562
|
+
description: used.description
|
|
3563
|
+
}));
|
|
3480
3564
|
if (pacing !== void 0) lines.push(describePacingAdvice(pacing));
|
|
3481
3565
|
else if (ooc === void 0 && plotAuthorNeeded(store, payload.turn)) lines.push(store.text("roleplay/plot-hint"));
|
|
3482
3566
|
const rules = store.rules();
|
|
@@ -3521,6 +3605,6 @@ function installHooks(ctx, deps) {
|
|
|
3521
3605
|
});
|
|
3522
3606
|
}
|
|
3523
3607
|
//#endregion
|
|
3524
|
-
export {
|
|
3608
|
+
export { copyWorldPrompts as $, RESULTS as A, PLOTS_FILE_NAME as B, notesOfSession as C, describeTime as D, ClockError as E, LANGUAGE_NAMES as F, commandFlagKey as G, parsePlotsFile as H, STORY_LANGUAGES as I, formatIssue as J, readDocument as K, isStoryLanguage as L, PLOTS_METADATA_KEY as M, plotProgressOf as N, describeWhen as O, populatePlots as P, PromptLibrary as Q, textLanguage as R, addToNote as S, observeAsPlayer as T, plotReferenceProblems as U, loadPlots as V, COMMANDS_KEY as W, LANGUAGE_FOLDER as X, errorMessage as Y, PROMPTS_FOLDER as Z, readActivity as _, externalWithheld as a, shippedPromptsDirectory as at, writeVerdicts as b, record as c, InvalidStartError as ct, toolEnabled as d, SessionArchivedError as dt, inheritPrompts as et, guardRepeatedCalls as f, SessionNotFoundError as ft, readDecisionStats as g, readUsage as h, externalTools as i, shippedLanguages as it, answerLimits as j, zoneOf as k, AUTHORING_NEEDS as l, InvalidWorldError as lt, storesOf as m, installHooks as n, listFiles as nt, PREVIEW_TOOL as o, shippedText as ot, MAX_OOC_ANSWER as p, WorldNotFoundError as pt, Reader as q, externalGiven as r, promptProblem as rt, createTools$1 as s, AgentUnavailableError as st, externalToolLimit as t, languageOf as tt, characterRunner as u, ReflectionRefusedError as ut, readRunDetail as v, readNotes as w, readWithdrawn as x, readVerdicts as y, wrongLanguage as z };
|
|
3525
3609
|
|
|
3526
|
-
//# sourceMappingURL=hooks-
|
|
3610
|
+
//# sourceMappingURL=hooks-BQCzgggH.js.map
|
package/lib/images.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as nextSceneSerial, d as sceneImagePath, l as readImageMetadata, o as entityImageDirectory, s as inheritImages, t as addToLibrary, u as referenceImagePath, v as readPngMetadata, y as withPngMetadata } from "./library-
|
|
2
|
-
import { i as transientPrompt, n as generateTransientImage, r as referencePrompt, t as generateReferenceImage } from "./generator-
|
|
3
|
-
import { i as updateImage, r as listGallery } from "./gallery-
|
|
4
|
-
import { a as tokensOf, i as searchImages, n as interpretImage, o as present, r as imageTools, s as presentedFor, t as runImagePresenter } from "./presenter-agent-
|
|
1
|
+
import { c as nextSceneSerial, d as sceneImagePath, l as readImageMetadata, o as entityImageDirectory, s as inheritImages, t as addToLibrary, u as referenceImagePath, v as readPngMetadata, y as withPngMetadata } from "./library-zI-2tG7h.js";
|
|
2
|
+
import { i as transientPrompt, n as generateTransientImage, r as referencePrompt, t as generateReferenceImage } from "./generator-r1Czm7oi.js";
|
|
3
|
+
import { i as updateImage, r as listGallery } from "./gallery-D9nG3C78.js";
|
|
4
|
+
import { a as tokensOf, i as searchImages, n as interpretImage, o as present, r as imageTools, s as presentedFor, t as runImagePresenter } from "./presenter-agent-BSaMSd3G.js";
|
|
5
5
|
export { addToLibrary, entityImageDirectory, generateReferenceImage, generateTransientImage, imageTools, inheritImages, interpretImage, listGallery, nextSceneSerial, present, presentedFor, readImageMetadata, readPngMetadata, referenceImagePath, referencePrompt, runImagePresenter, sceneImagePath, searchImages, tokensOf, transientPrompt, updateImage, withPngMetadata };
|