@dsh-agentic-roleplay/core 0.12.0 → 0.12.2

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.
Files changed (44) hide show
  1. package/cordis.patch.yml +108 -0
  2. package/lib/{access-DAw54-NI.js → access-Csp80TFX.js} +2 -2
  3. package/lib/{authoring-tools-4NgDhIJV.js → authoring-tools-BZr4bgBy.js} +25 -771
  4. package/lib/authoring.js +136 -12
  5. package/lib/{child-D3QUNb3m.js → child-DTdY14S9.js} +54 -6
  6. package/lib/client.js +16457 -1938
  7. package/lib/client.js.map +1 -1
  8. package/lib/compaction.js +3 -3
  9. package/lib/dev-context-Cgv_wZbG.js +50 -0
  10. package/lib/doctor.js +6 -3
  11. package/lib/{gallery-Ct6nm4UQ.js → gallery-BNg0rPTp.js} +3 -3
  12. package/lib/{generator-CI8fOnXy.js → generator-9-5at9cZ.js} +2 -2
  13. package/lib/helper.js +5 -9
  14. package/lib/{hooks-BNeoGMHZ.js → hooks-Dtq5KZQX.js} +47 -16
  15. package/lib/images.js +4 -4
  16. package/lib/index.js +152 -476
  17. package/lib/{jail-BIF79PJO.js → jail-DVbPSC0R.js} +2 -2
  18. package/lib/{library-BF9ZMSFz.js → library-DTxakw0z.js} +2 -2
  19. package/lib/{lorebook-author-tools-DBk-V0hp.js → lorebook-author-tools-BjcEUo22.js} +19 -6
  20. package/lib/lorebook-authoring.js +13 -5
  21. package/lib/{narration-xvErE2yp.js → narration--K2XVIHI.js} +2 -2
  22. package/lib/orchestration.js +33 -12
  23. package/lib/{pack-jail-C8EyX9Ix.js → pack-jail-Dt0VTsu0.js} +558 -23
  24. package/lib/{packs-S0SzrVv-.js → packs-DWfR2Ted.js} +2 -2
  25. package/lib/{presenter-agent-Bc478nTA.js → presenter-agent-vFOxIuWv.js} +9 -9
  26. package/lib/{preset-SJZyw0kt.js → preset-Dv5YF2qj.js} +4 -4
  27. package/lib/{preset-author-tools-CzogjK42.js → preset-author-tools-BUzO9mTW.js} +8 -7
  28. package/lib/preset-authoring.js +12 -6
  29. package/lib/{reflection-buQiSdvq.js → reflection-Dd3pEiZB.js} +14 -15
  30. package/lib/{presets-DQ5rioMh.js → serial-BUaJGwVy.js} +1241 -390
  31. package/lib/{turn-guard-BSAba8sp.js → turn-guard-87NE-Cnp.js} +3 -3
  32. package/locale/de.json +6 -0
  33. package/locale/en.json +6 -0
  34. package/locale/es.json +6 -0
  35. package/locale/fr.json +6 -0
  36. package/locale/ja.json +6 -0
  37. package/locale/pt.json +6 -0
  38. package/locale/ru.json +6 -0
  39. package/locale/zh.json +6 -0
  40. package/package.json +34 -34
  41. package/prompts/en/import/style.md +2 -1
  42. package/prompts/en/world/procedure.md +1 -1
  43. package/prompts/zh/import/style.md +2 -1
  44. package/prompts/zh/world/procedure.md +1 -1
package/lib/compaction.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as liveSettings, t as decodeOutput } from "./narration-xvErE2yp.js";
2
- import { j as roleplaySessionOf, k as tokensOf, l as runChild, n as childModel, r as childSampling } from "./child-D3QUNb3m.js";
3
- import { t as promptFor } from "./access-DAw54-NI.js";
1
+ import { a as liveSettings, t as decodeOutput } from "./narration--K2XVIHI.js";
2
+ import { j as roleplaySessionOf, k as tokensOf, l as runChild, n as childModel, r as childSampling } from "./child-DTdY14S9.js";
3
+ import { t as promptFor } from "./access-Csp80TFX.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";
@@ -0,0 +1,50 @@
1
+ // src/host/prompts/dev-context.ts
2
+ /**
3
+ * What the Web bundle's `harness-dev-context` plugin says to every agent: where the DSH checkout is, that
4
+ * the harness may be inspected and extended, and what "this page" is. It orients an agent working on DSH
5
+ * itself. A game master, a character, an author or a doctor works on a story: the text is noise in every
6
+ * prompt, it names this machine's paths, and it points at the browser tab instead of the scene.
7
+ *
8
+ * `SystemPrompt` resolves a contribution by name at the nearest scope, so a registration made here — in
9
+ * a preset's scope — shadows the profile's registration for that preset's agents and leaves every other
10
+ * session in the profile as DSH made it. Only the name and order have to match; empty text contributes
11
+ * nothing.
12
+ */
13
+ const SILENCED = [{
14
+ name: "harness:source",
15
+ section: "HARNESS_SOURCE",
16
+ context: "HARNESS_SOURCE"
17
+ }, {
18
+ name: "app:web-surface",
19
+ section: "WEB_SURFACE",
20
+ context: "WEB_SURFACE"
21
+ }];
22
+ function silenceHarnessDevContext(ctx) {
23
+ for (const entry of SILENCED) {
24
+ ctx.systemPrompt.section({
25
+ name: entry.name,
26
+ order: ctx.systemPrompt.getSectionOrder(entry.section),
27
+ interpolate: false,
28
+ text: ""
29
+ });
30
+ ctx.systemPrompt.context({
31
+ name: entry.name,
32
+ order: ctx.systemPrompt.getContextOrder(entry.context),
33
+ interpolate: false,
34
+ text: ""
35
+ });
36
+ }
37
+ }
38
+ /** Removes DSH runtime facts from agents that receive their working context elsewhere. */
39
+ function silenceRuntimeContext(ctx) {
40
+ ctx.effect(() => ctx.systemPrompt.suppressRuntimeContext(), "roleplay: runtime context");
41
+ ctx.systemPrompt.context({
42
+ name: "working-directory:current",
43
+ order: ctx.systemPrompt.getContextOrder("WORKING_DIRECTORY"),
44
+ interpolate: false,
45
+ text: ""
46
+ });
47
+ }
48
+ export { silenceRuntimeContext as n, silenceHarnessDevContext as t };
49
+
50
+ //# sourceMappingURL=dev-context-Cgv_wZbG.js.map
package/lib/doctor.js CHANGED
@@ -1,7 +1,8 @@
1
- import { A as chatSessionId } from "./child-D3QUNb3m.js";
1
+ import { n as silenceRuntimeContext, t as silenceHarnessDevContext } from "./dev-context-Cgv_wZbG.js";
2
+ import { A as chatSessionId } from "./child-DTdY14S9.js";
2
3
  import { n as doctorSessionOf } from "./doctor-chat-hL1a61hp.js";
3
- import { o as externalTools, t as externalToolLimit } from "./hooks-BNeoGMHZ.js";
4
- import { a as liveSettings } from "./narration-xvErE2yp.js";
4
+ import { o as externalTools, t as externalToolLimit } from "./hooks-Dtq5KZQX.js";
5
+ import { a as liveSettings } from "./narration--K2XVIHI.js";
5
6
  import { join } from "node:path";
6
7
  import { createTools, isSessionId, sessionDatabase, sessionFolder } from "@dsh-agentic-roleplay/state";
7
8
  import { existsSync } from "node:fs";
@@ -77,6 +78,8 @@ function doctorApproval(exec) {
77
78
  };
78
79
  }
79
80
  function apply(ctx) {
81
+ silenceHarnessDevContext(ctx);
82
+ silenceRuntimeContext(ctx);
80
83
  const sessionsDir = () => join(ctx.roleplayRoot.path, "sessions");
81
84
  const resolve = (chat) => {
82
85
  const id = doctorSessionOf(chat);
@@ -1,5 +1,5 @@
1
- import { n as atomicWrite } from "./access-DAw54-NI.js";
2
- import { _ as writeImageFileMetadata, a as LIBRARY_FOLDER, g as sidecarOf, h as readImageFileMetadata, m as mediaTypeOf, x as mapLimit } from "./library-BF9ZMSFz.js";
1
+ import { n as atomicWrite } from "./access-Csp80TFX.js";
2
+ import { _ as writeImageFileMetadata, a as LIBRARY_FOLDER, g as sidecarOf, h as readImageFileMetadata, m as mediaTypeOf, x as mapLimit } from "./library-DTxakw0z.js";
3
3
  import { join, sep } from "node:path";
4
4
  import { lstat, readFile, readdir, realpath, stat } from "node:fs/promises";
5
5
  // src/host/images/gallery.ts
@@ -187,4 +187,4 @@ async function updateImage(sessionFolder, path, update) {
187
187
  }
188
188
  export { updateImage as i, galleryFile as n, listGallery as r, describeGalleryImage as t };
189
189
 
190
- //# sourceMappingURL=gallery-Ct6nm4UQ.js.map
190
+ //# sourceMappingURL=gallery-BNg0rPTp.js.map
@@ -1,4 +1,4 @@
1
- import { d as sceneImagePath, f as writeImage, u as referenceImagePath } from "./library-BF9ZMSFz.js";
1
+ import { d as sceneImagePath, f as writeImage, u as referenceImagePath } from "./library-DTxakw0z.js";
2
2
  // 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. */
@@ -147,4 +147,4 @@ async function generateTransientImage(service, request) {
147
147
  }
148
148
  export { uploadReferenceImage as a, transientPrompt as i, generateTransientImage as n, referencePrompt as r, generateReferenceImage as t };
149
149
 
150
- //# sourceMappingURL=generator-CI8fOnXy.js.map
150
+ //# sourceMappingURL=generator-9-5at9cZ.js.map
package/lib/helper.js CHANGED
@@ -1,6 +1,7 @@
1
- import { o as helpers } from "./child-D3QUNb3m.js";
1
+ import { n as silenceRuntimeContext, t as silenceHarnessDevContext } from "./dev-context-Cgv_wZbG.js";
2
+ import { o as helpers } from "./child-DTdY14S9.js";
2
3
  import { a as workspaceOf, n as storyRoots } from "./service-mRKwpWjX.js";
3
- import { t as registerFoldersJail } from "./jail-BIF79PJO.js";
4
+ import { t as registerFoldersJail } from "./jail-DVbPSC0R.js";
4
5
  import { join } from "node:path";
5
6
  import { sessionFolder } from "@dsh-agentic-roleplay/state";
6
7
  // src/helper.ts
@@ -11,6 +12,7 @@ const inject = ["tools", "systemPrompt"];
11
12
  * one child's is found by its session id: its persona, and the equipment its caller set up for it when it was created.
12
13
  */
13
14
  function apply(ctx) {
15
+ silenceHarnessDevContext(ctx);
14
16
  ctx.systemPrompt.section({
15
17
  name: "ROLEPLAY_HELPER_PERSONA",
16
18
  order: ctx.systemPrompt.getSectionOrder("DEPLOYMENT_PERSONA_PREFIX"),
@@ -20,13 +22,7 @@ function apply(ctx) {
20
22
  return agent === void 0 ? "" : helpers.get(agent.session.id)?.persona ?? "";
21
23
  }
22
24
  });
23
- ctx.effect(() => ctx.systemPrompt.suppressRuntimeContext(), "roleplay: helper runtime context");
24
- ctx.systemPrompt.context({
25
- name: "working-directory:current",
26
- order: ctx.systemPrompt.getContextOrder("WORKING_DIRECTORY"),
27
- interpolate: false,
28
- text: ""
29
- });
25
+ silenceRuntimeContext(ctx);
30
26
  const rootOf = () => ctx.get("roleplayRoot")?.path;
31
27
  registerFoldersJail(ctx, {
32
28
  roots: async (session) => {
@@ -1,6 +1,6 @@
1
- import { C as addTokens, D as finishOf, E as cutOff, O as estimateAnswer, S as NO_TOKENS, a as childTrace, b as estimateTokens, f as tracerOf, j as roleplaySessionOf, l as runChild, n as childModel, r as childSampling, u as TurnTraces, v as requestsOf, x as tokensOf, y as blockText } from "./child-D3QUNb3m.js";
2
- import { _ as emptyStats, a as liveSettings, h as DECISION_SITES, m as rulesOf, n as encodeOutput, p as WORLD_RULES_KEY, r as encodePreview } from "./narration-xvErE2yp.js";
3
- import { t as promptFor } from "./access-DAw54-NI.js";
1
+ import { C as addTokens, D as finishOf, E as cutOff, O as estimateAnswer, S as NO_TOKENS, a as childTrace, b as estimateTokens, f as tracerOf, j as roleplaySessionOf, l as runChild, n as childModel, r as childSampling, u as TurnTraces, v as requestsOf, x as tokensOf, y as blockText } from "./child-DTdY14S9.js";
2
+ import { _ as emptyStats, a as liveSettings, h as DECISION_SITES, m as rulesOf, n as encodeOutput, p as WORLD_RULES_KEY, r as encodePreview } from "./narration--K2XVIHI.js";
3
+ import { t as promptFor } from "./access-Csp80TFX.js";
4
4
  import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-Dfv8S8eq.js";
5
5
  import { n as storyRoots } from "./service-mRKwpWjX.js";
6
6
  import { dirname, join } from "node:path";
@@ -227,6 +227,8 @@ function shippedPromptsDirectory(from = dirname(fileURLToPath(import.meta.url)))
227
227
  if (dirname(directory) === directory) throw new Error("the prompts shipped with the package were not found");
228
228
  }
229
229
  }
230
+ /** A language tag as a world file or a person writes it: `ja`, `zh-CN`, `pt_BR`. */
231
+ const LANGUAGE_TAG = /^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{2,8})?$/;
230
232
  /** `zh-CN` and `ZH` are both `zh`; anything that is not a language tag is refused. */
231
233
  function languageOf(tag) {
232
234
  const primary = (tag ?? "en").trim().toLowerCase().split(/[-_]/)[0] ?? "";
@@ -236,7 +238,15 @@ function languageOf(tag) {
236
238
  /** How a language is named inside a prompt, for the instruction to write in it. */
237
239
  const LANGUAGE_NAMES$1 = {
238
240
  en: "English",
239
- zh: "中文"
241
+ zh: "中文",
242
+ ja: "日本語",
243
+ ko: "한국어",
244
+ es: "Español",
245
+ fr: "Français",
246
+ de: "Deutsch",
247
+ pt: "Português",
248
+ ru: "Русский",
249
+ it: "Italiano"
240
250
  };
241
251
  function fill(id, text, given, tag) {
242
252
  const variables = {
@@ -249,9 +259,13 @@ function fill(id, text, given, tag) {
249
259
  return String(value);
250
260
  });
251
261
  }
262
+ /** Prompt text as it was written: a checkout that writes CRLF must not change what the models are sent. */
263
+ const textOf$1 = (path) => readFileSync(path, "utf8").replaceAll("\r\n", "\n");
252
264
  /** A prompt as the package ships it, without a roleplay root: for code that has none, such as tests. */
253
265
  function shippedText(id, language = "en", variables = {}) {
254
- return fill(id, readFileSync(join(shippedPromptsDirectory(), language, `${id}.md`), "utf8"), variables, language);
266
+ const directory = shippedPromptsDirectory();
267
+ const path = [language, "en"].map((name) => join(directory, name, `${id}.md`)).find((candidate) => existsSync(candidate)) ?? join(directory, language, `${id}.md`);
268
+ return fill(id, textOf$1(path), variables, language);
255
269
  }
256
270
  function listFiles(directory, prefix = "") {
257
271
  return readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
@@ -293,7 +307,7 @@ var PromptLibrary = class extends Service {
293
307
  if (!existsSync(this.directory)) return [];
294
308
  return readdirSync(this.directory, { withFileTypes: true }).filter((entry) => entry.isDirectory() && LANGUAGE.test(entry.name)).flatMap((entry) => listFiles(join(this.directory, entry.name)).flatMap((id) => {
295
309
  const path = join(this.directory, entry.name, `${id}.md`);
296
- const text = readFileSync(path, "utf8");
310
+ const text = textOf$1(path);
297
311
  const message = !ID.test(id) || ![entry.name, "en"].some((name) => existsSync(join(this.shipped, name, `${id}.md`))) ? void 0 : text.includes("{{") ? "holds \"{{\", which DSH reads as a variable of its own" : promptProblem(entry.name, id, text, this.shipped);
298
312
  return message === void 0 ? [] : [{
299
313
  path,
@@ -309,7 +323,7 @@ var PromptLibrary = class extends Service {
309
323
  if (!ID.test(id)) throw new Error(`"${id}" is not a prompt id`);
310
324
  const tag = languageOf(language);
311
325
  const own = session === void 0 ? void 0 : this.override(id, tag, session);
312
- return fill(id, readFileSync(own ?? this.file(id, tag), "utf8"), variables, tag);
326
+ return fill(id, textOf$1(own ?? this.file(id, tag)), variables, tag);
313
327
  }
314
328
  override(id, language, session) {
315
329
  if (!SESSION_ID.test(session)) throw new Error(`"${session}" is not a session id`);
@@ -4549,26 +4563,43 @@ function installHooks(ctx, deps) {
4549
4563
  registerConditionalTools(agent, conditionsOf(agent.session.id));
4550
4564
  applyLimit(agent, store);
4551
4565
  });
4566
+ /** Where the open turn of each chat began, so its own events can be read back without walking the whole log. */
4567
+ const openTurns = /* @__PURE__ */ new Map();
4552
4568
  ctx.on("session/event", (session, event) => {
4553
- if (event.type !== "turn/end" || session.header.origin === "subagent" || roleplaySessionOf(session.id) === void 0) return;
4569
+ if (session.header.origin === "subagent" || roleplaySessionOf(session.id) === void 0) return;
4570
+ if (event.type === "turn/start") {
4571
+ openTurns.set(session.id, {
4572
+ seq: event.seq,
4573
+ time: event.time
4574
+ });
4575
+ return;
4576
+ }
4577
+ if (event.type !== "turn/end") return;
4554
4578
  ctx.roleplayOrchestration.recovery.clear(session.id);
4555
4579
  turns.end(session.id);
4556
- timelines.ended(session.id, session, event.seq);
4557
- const events = session.snapshotEvents();
4558
- const began = events.findLastIndex((entry) => entry.type === "turn/start");
4559
- const start = began === -1 ? void 0 : events[began];
4580
+ const began = openTurns.get(session.id);
4581
+ openTurns.delete(session.id);
4582
+ timelines.ended(session.id, session, event.seq, began === void 0 ? void 0 : began.seq);
4583
+ const events = session.snapshotEvents(began?.seq ?? 0);
4584
+ const from = began === void 0 ? events.findLastIndex((entry) => entry.type === "turn/start") : 0;
4585
+ if (from === -1) return;
4586
+ const turn = events.slice(from);
4587
+ const start = turn[0];
4560
4588
  if (start?.type !== "turn/start") return;
4561
4589
  const store = stores(session.id);
4562
- store?.recordUsage?.(start.data.turn, tokensOf(events.slice(began)), Math.max(0, event.time - start.time));
4590
+ store?.recordUsage?.(start.data.turn, tokensOf(turn), Math.max(0, event.time - start.time));
4563
4591
  try {
4564
4592
  store?.recordTrace?.(start.data.turn, {
4565
- ...masterTrace(events.slice(began)),
4593
+ ...masterTrace(turn),
4566
4594
  endedAt: event.time
4567
4595
  });
4568
4596
  } catch (error) {
4569
4597
  ctx.logger.warn(`roleplay: the trace of turn ${start.data.turn} could not be kept: ${error instanceof Error ? error.message : String(error)}`);
4570
4598
  }
4571
4599
  });
4600
+ ctx.on("session/disposed", (session) => {
4601
+ openTurns.delete(session.id);
4602
+ });
4572
4603
  ctx.on("agent/created", async ({ agent }) => {
4573
4604
  const { header } = agent.session;
4574
4605
  if (header.origin === "subagent" || !header.isSeeded || header.parentSession === void 0) return;
@@ -4818,6 +4849,6 @@ function installHooks(ctx, deps) {
4818
4849
  };
4819
4850
  });
4820
4851
  }
4821
- export { inheritPrompts as $, plotProgressOf as A, parsePlotsFile as B, readNotes as C, referent as D, sameWords as E, textLanguage as F, readDocument as G, COMMANDS_KEY as H, wrongLanguage as I, errorMessage as J, Reader as K, readUsage as L, LANGUAGE_NAMES as M, STORY_LANGUAGES as N, RESULTS as O, isStoryLanguage as P, copyWorldPrompts as Q, PLOTS_FILE_NAME as R, notesOfSession as S, defaultBoundaries as T, commandFlagKey as U, plotReferenceProblems as V, commandsOf as W, PROMPTS_FOLDER as X, LANGUAGE_FOLDER as Y, PromptLibrary as Z, readTraces as _, COMPARISONS as _t, externalGiven as a, shippedText as at, readWithdrawn as b, PREVIEW_TOOL as c, InvalidWorldError as ct, toolEnabled as d, SessionNotFoundError as dt, languageOf as et, MAX_OOC_ANSWER as f, WorldNotFoundError as ft, readRunDetail as g, AUTHORING_NEEDS as gt, readActivity as h, zoneOf as ht, characterRunner as i, shippedPromptsDirectory as it, populatePlots as j, PLOTS_METADATA_KEY as k, createTools$1 as l, ReflectionRefusedError as lt, readDecisionStats as m, describeWhen as mt, installHooks as n, promptProblem as nt, externalTools as o, AgentUnavailableError as ot, storesOf as p, ClockError as pt, formatIssue as q, guardRepeatedCalls as r, shippedLanguages as rt, externalWithheld as s, InvalidStartError as st, externalToolLimit as t, listFiles as tt, record as u, SessionArchivedError as ut, readVerdicts as v, observeAsPlayer as w, addToNote as x, writeVerdicts as y, loadPlots as z };
4852
+ export { copyWorldPrompts as $, plotProgressOf as A, parsePlotsFile as B, readNotes as C, referent as D, sameWords as E, textLanguage as F, readDocument as G, COMMANDS_KEY as H, wrongLanguage as I, errorMessage as J, Reader as K, readUsage as L, LANGUAGE_NAMES as M, STORY_LANGUAGES as N, RESULTS as O, isStoryLanguage as P, PromptLibrary as Q, PLOTS_FILE_NAME as R, notesOfSession as S, defaultBoundaries as T, commandFlagKey as U, plotReferenceProblems as V, commandsOf as W, LANGUAGE_TAG as X, LANGUAGE_FOLDER as Y, PROMPTS_FOLDER as Z, readTraces as _, AUTHORING_NEEDS as _t, externalGiven as a, shippedPromptsDirectory as at, readWithdrawn as b, PREVIEW_TOOL as c, InvalidStartError as ct, toolEnabled as d, SessionArchivedError as dt, inheritPrompts as et, MAX_OOC_ANSWER as f, SessionNotFoundError as ft, readRunDetail as g, zoneOf as gt, readActivity as h, describeWhen as ht, characterRunner as i, shippedLanguages as it, populatePlots as j, PLOTS_METADATA_KEY as k, createTools$1 as l, InvalidWorldError as lt, readDecisionStats as m, ClockError as mt, installHooks as n, listFiles as nt, externalTools as o, shippedText as ot, storesOf as p, WorldNotFoundError as pt, formatIssue as q, guardRepeatedCalls as r, promptProblem as rt, externalWithheld as s, AgentUnavailableError as st, externalToolLimit as t, languageOf as tt, record as u, ReflectionRefusedError as ut, readVerdicts as v, COMPARISONS as vt, observeAsPlayer as w, addToNote as x, writeVerdicts as y, loadPlots as z };
4822
4853
 
4823
- //# sourceMappingURL=hooks-BNeoGMHZ.js.map
4854
+ //# sourceMappingURL=hooks-Dtq5KZQX.js.map
package/lib/images.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as searchImages, c as presentedFor, n as interpretImage, o as tokensOf, r as imageTools, s as present, t as runImagePresenter } from "./presenter-agent-Bc478nTA.js";
2
- import { i as updateImage, r as listGallery } from "./gallery-Ct6nm4UQ.js";
3
- 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-BF9ZMSFz.js";
4
- import { i as transientPrompt, n as generateTransientImage, r as referencePrompt, t as generateReferenceImage } from "./generator-CI8fOnXy.js";
1
+ import { a as searchImages, c as presentedFor, n as interpretImage, o as tokensOf, r as imageTools, s as present, t as runImagePresenter } from "./presenter-agent-vFOxIuWv.js";
2
+ import { i as updateImage, r as listGallery } from "./gallery-BNg0rPTp.js";
3
+ 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-DTxakw0z.js";
4
+ import { i as transientPrompt, n as generateTransientImage, r as referencePrompt, t as generateReferenceImage } from "./generator-9-5at9cZ.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 };