@dsh-agentic-roleplay/core 0.8.2 → 0.9.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.
Files changed (40) hide show
  1. package/lib/{authoring-tools-BgmC2oqU.js → authoring-tools-CdHlvx32.js} +1909 -53
  2. package/lib/authoring.js +135 -32
  3. package/lib/client.js +347 -347
  4. package/lib/doctor.js +1 -1
  5. package/lib/{gallery-D1V4h8vh.js → gallery-BKh7eu80.js} +2 -2
  6. package/lib/{generator-CLPosooC.js → generator-DdZ1-sgv.js} +2 -2
  7. package/lib/{hooks-rQTTeOC4.js → hooks-CcQj_dJo.js} +2 -2
  8. package/lib/images.js +4 -4
  9. package/lib/index.js +14 -14
  10. package/lib/{library-Dfu0dgRj.js → library-QFL6Z_Nr.js} +2 -2
  11. package/lib/{lorebook-author-tools-BAaAqZZm.js → lorebook-author-tools-DWBnYo1E.js} +6 -6
  12. package/lib/lorebook-authoring.js +4 -4
  13. package/lib/orchestration.js +8 -8
  14. package/lib/{pack-jail-CN-314ln.js → pack-jail-BMy6NcCY.js} +21 -723
  15. package/lib/{packs-DIj5BEfq.js → packs-BREPSfHy.js} +2 -2
  16. package/lib/{presenter-agent-DR0KvLE0.js → presenter-agent-B49-_iUm.js} +4 -4
  17. package/lib/{preset-CscHj1-Y.js → preset-BqgY1Tz4.js} +3 -3
  18. package/lib/{preset-author-tools-CxluF8qc.js → preset-author-tools-BB_Dcv2o.js} +6 -6
  19. package/lib/preset-authoring.js +5 -5
  20. package/lib/{presets-HB8kJTaE.js → presets-Bwnrx7p0.js} +22 -11
  21. package/lib/{reflection-Dg1xtOTW.js → reflection-CUWG-6Qg.js} +6 -6
  22. package/lib/{text-DyRN4nDP.js → text-CbGQhK1-.js} +4 -3
  23. package/lib/{turn-guard-g_hDn0jR.js → turn-guard-Bb8Ew-1z.js} +2 -2
  24. package/package.json +2 -2
  25. package/prompts/en/checks/decide-sheet.md +1 -0
  26. package/prompts/en/checks/fidelity.md +7 -0
  27. package/prompts/en/checks/gaps.md +4 -0
  28. package/prompts/en/checks/notice.md +3 -0
  29. package/prompts/en/import/finish-draft.md +1 -1
  30. package/prompts/en/import/finish-ok.md +3 -1
  31. package/prompts/en/import/notice-repair.md +2 -2
  32. package/prompts/en/import/repair-again.md +2 -2
  33. package/prompts/zh/checks/decide-sheet.md +1 -0
  34. package/prompts/zh/checks/fidelity.md +7 -0
  35. package/prompts/zh/checks/gaps.md +4 -0
  36. package/prompts/zh/checks/notice.md +3 -0
  37. package/prompts/zh/import/finish-draft.md +1 -1
  38. package/prompts/zh/import/finish-ok.md +3 -1
  39. package/prompts/zh/import/notice-repair.md +2 -2
  40. package/prompts/zh/import/repair-again.md +2 -2
package/lib/doctor.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as chatSessionId } from "./access-CfQWbNZP.js";
2
2
  import { n as doctorSessionOf } from "./doctor-chat-hL1a61hp.js";
3
- import { i as externalTools, t as externalToolLimit } from "./hooks-rQTTeOC4.js";
3
+ import { i as externalTools, t as externalToolLimit } from "./hooks-CcQj_dJo.js";
4
4
  import { a as liveSettings } from "./narration-CjB_KwwY.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-Dfu0dgRj.js";
1
+ import { _ as writeImageFileMetadata, a as LIBRARY_FOLDER, b as mapLimit, g as sidecarOf, h as readImageFileMetadata, m as mediaTypeOf } from "./library-QFL6Z_Nr.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";
@@ -191,4 +191,4 @@ async function updateImage(sessionFolder, path, update) {
191
191
  }
192
192
  export { updateImage as i, galleryFile as n, listGallery as r, describeGalleryImage as t };
193
193
 
194
- //# sourceMappingURL=gallery-D1V4h8vh.js.map
194
+ //# sourceMappingURL=gallery-BKh7eu80.js.map
@@ -1,4 +1,4 @@
1
- import { d as sceneImagePath, f as writeImage, u as referenceImagePath } from "./library-Dfu0dgRj.js";
1
+ import { d as sceneImagePath, f as writeImage, u as referenceImagePath } from "./library-QFL6Z_Nr.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. */
@@ -141,4 +141,4 @@ async function generateTransientImage(service, request) {
141
141
  }
142
142
  export { uploadReferenceImage as a, transientPrompt as i, generateTransientImage as n, referencePrompt as r, generateReferenceImage as t };
143
143
 
144
- //# sourceMappingURL=generator-CLPosooC.js.map
144
+ //# sourceMappingURL=generator-DdZ1-sgv.js.map
@@ -1,6 +1,6 @@
1
1
  import { o as roleplaySessionOf, t as promptFor } from "./access-CfQWbNZP.js";
2
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-CjB_KwwY.js";
3
- import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-DyRN4nDP.js";
3
+ import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-CbGQhK1-.js";
4
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-lYYeOwl2.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";
@@ -3579,4 +3579,4 @@ function installHooks(ctx, deps) {
3579
3579
  }
3580
3580
  export { copyWorldPrompts as $, answerLimits as A, loadPlots as B, readNotes as C, describeWhen as D, describeTime as E, STORY_LANGUAGES as F, commandsOf as G, plotReferenceProblems as H, isStoryLanguage as I, formatIssue as J, readDocument as K, textLanguage as L, plotProgressOf as M, populatePlots as N, zoneOf as O, LANGUAGE_NAMES as P, PromptLibrary as Q, wrongLanguage as R, notesOfSession as S, ClockError as T, COMMANDS_KEY as U, parsePlotsFile as V, commandFlagKey as W, LANGUAGE_FOLDER as X, errorMessage as Y, PROMPTS_FOLDER as Z, readRunDetail as _, externalWithheld as a, shippedPromptsDirectory as at, readWithdrawn as b, record as c, InvalidStartError as ct, guardRepeatedCalls as d, SessionArchivedError as dt, inheritPrompts as et, MAX_OOC_ANSWER as f, SessionNotFoundError as ft, readActivity as g, readDecisionStats as h, COMPARISONS as ht, externalTools as i, shippedLanguages as it, PLOTS_METADATA_KEY as j, RESULTS as k, characterRunner as l, InvalidWorldError as lt, readUsage as m, AUTHORING_NEEDS as mt, installHooks as n, listFiles as nt, PREVIEW_TOOL as o, shippedText as ot, storesOf 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, toolEnabled as u, ReflectionRefusedError as ut, readVerdicts as v, observeAsPlayer as w, addToNote as x, writeVerdicts as y, PLOTS_FILE_NAME as z };
3581
3581
 
3582
- //# sourceMappingURL=hooks-rQTTeOC4.js.map
3582
+ //# sourceMappingURL=hooks-CcQj_dJo.js.map
package/lib/images.js CHANGED
@@ -1,5 +1,5 @@
1
- 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-DR0KvLE0.js";
2
- import { i as updateImage, r as listGallery } from "./gallery-D1V4h8vh.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-Dfu0dgRj.js";
4
- import { i as transientPrompt, n as generateTransientImage, r as referencePrompt, t as generateReferenceImage } from "./generator-CLPosooC.js";
1
+ 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-B49-_iUm.js";
2
+ import { i as updateImage, r as listGallery } from "./gallery-BKh7eu80.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-QFL6Z_Nr.js";
4
+ import { i as transientPrompt, n as generateTransientImage, r as referencePrompt, t as generateReferenceImage } from "./generator-DdZ1-sgv.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 };
package/lib/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { a as chatSessionId, i as VARIABLE_VISIBILITIES, n as VARIABLE_KINDS, o as roleplaySessionOf, r as VARIABLE_SUBJECTS } from "./access-CfQWbNZP.js";
2
- import { $ as loadValidatedWorld, A as vetUrl, At as CHARACTERS_DIR, B as createLorebook, Bt as DICE_RESULTS, C as CatalogueError, Dt as CALENDAR_FILE_NAME, Et as parseDiceFile, Ft as isPng, G as listLorebooks, H as deleteLorebookEntry, I as WORLD_FILE_NAME, It as pictureOf, K as loadLorebook, L as parseWorldFile, Lt as readCard, Mt as subfolders, Nt as knownOutputCeiling, O as guardedLookup, Ot as loadCalendar, Pt as ImportCardError, Q as checkWorld, R as parseWorldInfoEdit, Rt as DICE_COMPARISONS, S as writeOrigin, Tt as loadDice, U as entriesOf, V as deleteLorebook, Vt as authoredWorldOf, W as isLorebookName, X as updateLorebookInfo, Y as reserveLorebook, Z as writeLorebookEntry, _ as describeChanges, at as populateFactions, b as localChanges, c as importPhase, ct as populateLocations, d as markReady, dt as populateTriggers, et as knowsCharacter, f as settleDraft, ft as populateVariables, it as populateDice, jt as loadCharacters, kt as parseCalendarFile, lt as populateLore, mt as TRIGGERS_FILE_NAME, nt as populateCharacters, ot as populateItems, p as structureImport, pt as routineProblems, q as lorebookDirectory, rt as populateClock, st as populateKnowledge, t as AuthoringTools, tt as populateCalendar, u as keepDraft, ut as populateRoutines, v as hashWorld, wt as DICE_FILE_NAME, x as readOrigin, xt as loadItems, y as isUnchanged, yt as loadLocations, z as addLorebookEntries, zt as DICE_READINGS } from "./authoring-tools-BgmC2oqU.js";
3
- import { a as lorebookImportMessage, c as readLorebook, d as lorebookOfChat, l as selectEntries, s as previewLorebook, t as LOREBOOK_UPLOAD, u as lorebookChatSessionId } from "./lorebook-author-tools-BAaAqZZm.js";
4
- import { a as presetChatSessionId, n as narrationImportMessage, o as presetOfChat } from "./preset-author-tools-CxluF8qc.js";
2
+ import { $ as WORLD_FILE_NAME, $t as pictureOf, At as routineProblems, B as localChanges, Ct as populateItems, Dt as populateRoutines, Et as populateLore, Gt as loadCalendar, H as writeOrigin, Ht as loadDice, It as loadLocations, J as guardedLookup, Jt as loadCharacters, Kt as parseCalendarFile, L as describeChanges, Ot as populateTriggers, Qt as isPng, R as hashWorld, Rt as loadItems, St as populateFactions, T as loadWorldParts, Tt as populateLocations, U as CatalogueError, Ut as parseDiceFile, V as readOrigin, Vt as DICE_FILE_NAME, Wt as CALENDAR_FILE_NAME, X as vetUrl, Xt as knownOutputCeiling, Yt as subfolders, Zt as ImportCardError, _t as knowsCharacter, at as deleteLorebookEntry, bt as populateClock, c as importPhase, ct as listLorebooks, d as markReady, en as readCard, et as parseWorldFile, f as settleDraft, ft as reserveLorebook, gt as loadValidatedWorld, ht as checkWorld, in as authoredWorldOf, it as deleteLorebook, jt as TRIGGERS_FILE_NAME, kt as populateVariables, lt as loadLorebook, mt as writeLorebookEntry, nn as DICE_READINGS, nt as addLorebookEntries, ot as entriesOf, p as structureImport, pt as updateLorebookInfo, qt as CHARACTERS_DIR, rn as DICE_RESULTS, rt as createLorebook, st as isLorebookName, t as AuthoringTools, tn as DICE_COMPARISONS, tt as parseWorldInfoEdit, u as keepDraft, ut as lorebookDirectory, v as editWorldInfo, vt as populateCalendar, wt as populateKnowledge, xt as populateDice, y as readWorldInfo, yt as populateCharacters, z as isUnchanged } from "./authoring-tools-CdHlvx32.js";
3
+ import { a as lorebookImportMessage, c as readLorebook, d as lorebookOfChat, l as selectEntries, s as previewLorebook, t as LOREBOOK_UPLOAD, u as lorebookChatSessionId } from "./lorebook-author-tools-DWBnYo1E.js";
4
+ import { a as presetChatSessionId, n as narrationImportMessage, o as presetOfChat } from "./preset-author-tools-BB_Dcv2o.js";
5
5
  import { a as liveSettings, c as writeSettings, d as DEFAULT_SETTINGS, f as SETTINGS_SPEC, h as WORLD_RULES_KEY, i as InvalidSettingsError, l as atomicWrite, o as readSettings, p as parseSettings, s as useChildReasoning } from "./narration-CjB_KwwY.js";
6
- import { A as worldEntityImageFile, B as readWorldInfo, C as readWorldEditor, D as uploadWorldCharacterPortrait, E as replaceFile, F as loadWorldParts, G as findTargets, I as PRESET_FILE, J as revertUpdate, L as presetMessage, O as uploadWorldEntityImage, S as generateWorldEntityImage, T as removeWorldTrigger, U as languageOfDocuments, V as translateMessage, W as readWorldDocuments, X as updateStatus, Y as startUpdate, _ as editWorldPlots$1, a as deleteWorldPackFile, at as authoringTitle, b as entityFolder, c as createAuthoredEntity, ct as agentServicesOf, dt as appendNarratedTurn, f as editWorldCharacter$1, g as editWorldPlace$1, h as editWorldNarrationVoice, it as AuthoringSessions, j as writeWorldTrigger, k as worldCharacterPortraitFile, l as deleteAuthoredEntity, lt as DOCTOR_OPENING_SOURCE, m as editWorldLore$1, n as packFileProblem, ot as ensureAuthoringChat, p as editWorldFaction$1, st as AgentSessions, t as MAX_PACK_TEXT, u as readAuthoredEntityDocument, ut as appendEmptyTurn, v as editWorldRelation$1, w as readWorldTrigger, x as generateWorldCharacterPortrait, y as editWorldThing$1, z as editWorldInfo } from "./pack-jail-CN-314ln.js";
6
+ import { $ as DOCTOR_OPENING_SOURCE, A as worldEntityImageFile, B as languageOfDocuments, C as readWorldEditor, D as uploadWorldCharacterPortrait, E as replaceFile, F as PRESET_FILE, G as revertUpdate, H as findTargets, I as presetMessage, J as AuthoringSessions, K as startUpdate, O as uploadWorldEntityImage, Q as agentServicesOf, R as translateMessage, S as generateWorldEntityImage, T as removeWorldTrigger, V as readWorldDocuments, X as ensureAuthoringChat, Y as authoringTitle, Z as AgentSessions, _ as editWorldPlots$1, a as deleteWorldPackFile, b as entityFolder, c as createAuthoredEntity, et as appendEmptyTurn, f as editWorldCharacter$1, g as editWorldPlace$1, h as editWorldNarrationVoice, j as writeWorldTrigger, k as worldCharacterPortraitFile, l as deleteAuthoredEntity, m as editWorldLore$1, n as packFileProblem, p as editWorldFaction$1, q as updateStatus, t as MAX_PACK_TEXT, tt as appendNarratedTurn, u as readAuthoredEntityDocument, v as editWorldRelation$1, w as readWorldTrigger, x as generateWorldCharacterPortrait, y as editWorldThing$1 } from "./pack-jail-BMy6NcCY.js";
7
7
  import { d as sharedSamplingOf, i as childSamplingOf, u as parseSampling } from "./child-lYYeOwl2.js";
8
- import { $ as copyWorldPrompts, C as readNotes, H as plotReferenceProblems, J as formatIssue, K as readDocument, M as plotProgressOf, N as populatePlots, O as zoneOf, Q as PromptLibrary, S as notesOfSession, U as COMMANDS_KEY, V as parsePlotsFile, Y as errorMessage, _ as readRunDetail, b as readWithdrawn, ct as InvalidStartError, dt as SessionArchivedError, ft as SessionNotFoundError, g as readActivity, h as readDecisionStats, i as externalTools, it as shippedLanguages, j as PLOTS_METADATA_KEY, lt as InvalidWorldError, m as readUsage, pt as WorldNotFoundError, st as AgentUnavailableError, tt as languageOf, ut as ReflectionRefusedError, w as observeAsPlayer, x as addToNote } from "./hooks-rQTTeOC4.js";
9
- import { $ as ImportNotFoundError, At as parsePlaceEdit, Ct as parseCharacterFile, Dt as parseCharacterEdit, Et as InvalidEditProblems, G as listWorldPrompts, K as readWorldPrompt, Mt as parseThingEdit, Nt as LORE_KINDS, Ot as parseFactionEdit, Pt as LORE_SCOPES, Q as IMPORT_FOLDER, St as CHARACTER_FILE_NAME, W as deleteWorldPrompt, X as partsOf, Z as withPlayer, a as isPresetName, c as presetDirectory, ct as VARIABLES_FILE_NAME, d as savePresetFromWorld, dt as variableProblems, et as ImportStore, i as deletePreset, jt as parseRelationEdit, kt as parseLoreEdit, lt as loadVariables, o as listPresets, ot as IMPORT_COMMAND, p as updatePresetInfo, q as writeWorldPrompt, r as createPresetFromShipped, rt as parseChoices, s as loadPreset, t as PRESET_FILE$1, u as reservePreset, ut as parseVariablesFile } from "./presets-HB8kJTaE.js";
10
- import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-DyRN4nDP.js";
11
- import { n as readPreset, r as selectPrompts, t as previewPreset } from "./preset-CscHj1-Y.js";
12
- import { S as slug, d as sceneImagePath, s as inheritImages, t as addToLibrary, u as referenceImagePath, w as uniqueKey } from "./library-Dfu0dgRj.js";
8
+ import { $ as copyWorldPrompts, C as readNotes, H as plotReferenceProblems, J as formatIssue, K as readDocument, M as plotProgressOf, N as populatePlots, O as zoneOf, Q as PromptLibrary, S as notesOfSession, U as COMMANDS_KEY, V as parsePlotsFile, Y as errorMessage, _ as readRunDetail, b as readWithdrawn, ct as InvalidStartError, dt as SessionArchivedError, ft as SessionNotFoundError, g as readActivity, h as readDecisionStats, i as externalTools, it as shippedLanguages, j as PLOTS_METADATA_KEY, lt as InvalidWorldError, m as readUsage, pt as WorldNotFoundError, st as AgentUnavailableError, tt as languageOf, ut as ReflectionRefusedError, w as observeAsPlayer, x as addToNote } from "./hooks-CcQj_dJo.js";
9
+ import { $ as ImportNotFoundError, At as parseLoreEdit, Ct as CHARACTER_FILE_NAME, Dt as InvalidEditProblems, Ft as LORE_SCOPES, G as listWorldPrompts, K as readWorldPrompt, Mt as parseRelationEdit, Nt as parseThingEdit, Ot as parseCharacterEdit, Pt as LORE_KINDS, Q as IMPORT_FOLDER, W as deleteWorldPrompt, X as partsOf, Z as withPlayer, a as isPresetName, c as presetDirectory, d as savePresetFromWorld, dt as parseVariablesFile, et as ImportStore, ft as variableProblems, i as deletePreset, jt as parsePlaceEdit, kt as parseFactionEdit, lt as VARIABLES_FILE_NAME, o as listPresets, ot as IMPORT_COMMAND, p as updatePresetInfo, q as writeWorldPrompt, r as createPresetFromShipped, rt as parseChoices, s as loadPreset, t as PRESET_FILE$1, u as reservePreset, ut as loadVariables, wt as parseCharacterFile } from "./presets-Bwnrx7p0.js";
10
+ import { i as translator, r as languageOf$1, t as trimCharacters } from "./text-CbGQhK1-.js";
11
+ import { n as readPreset, r as selectPrompts, t as previewPreset } from "./preset-BqgY1Tz4.js";
12
+ import { S as slug, d as sceneImagePath, s as inheritImages, t as addToLibrary, u as referenceImagePath, w as uniqueKey } from "./library-QFL6Z_Nr.js";
13
13
  import { t as doctorChatSessionId } from "./doctor-chat-hL1a61hp.js";
14
- import { c as readTimeline, d as copyPreset, f as presetStatus, h as defaultBoundaries, i as reflectionStatus, l as writeTimeline, m as switchPreset, o as TimelineError, p as recordPreset, u as pathTo } from "./reflection-Dg1xtOTW.js";
15
- import { _ as API_PREFIX, a as packIds, c as describePack, d as packPath, f as readPack, l as isPackId, m as PACK_LIMITS, n as anyTab, o as syncWorldPacks, r as copyWorldPacks, s as worldPackStates, t as activePack, u as packFile } from "./packs-DIj5BEfq.js";
16
- import { a as uploadReferenceImage, t as generateReferenceImage } from "./generator-CLPosooC.js";
17
- import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-D1V4h8vh.js";
14
+ import { c as readTimeline, d as copyPreset, f as presetStatus, h as defaultBoundaries, i as reflectionStatus, l as writeTimeline, m as switchPreset, o as TimelineError, p as recordPreset, u as pathTo } from "./reflection-CUWG-6Qg.js";
15
+ import { _ as API_PREFIX, a as packIds, c as describePack, d as packPath, f as readPack, l as isPackId, m as PACK_LIMITS, n as anyTab, o as syncWorldPacks, r as copyWorldPacks, s as worldPackStates, t as activePack, u as packFile } from "./packs-BREPSfHy.js";
16
+ import { a as uploadReferenceImage, t as generateReferenceImage } from "./generator-DdZ1-sgv.js";
17
+ import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-BKh7eu80.js";
18
18
  import { basename, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep } from "node:path";
19
19
  import { cpSync, createReadStream, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, statSync, writeFileSync } from "node:fs";
20
20
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -26,8 +26,8 @@ import { Service } from "@deepseek-ai/cordis";
26
26
  import { addLocalDays, createSessionStore, describeInstant, describeValue, holidaysOn, isSessionId, itemKey, lintWorld, locationKey, parseInstant, readCalendar, seasonOf, sessionDatabase, sessionFolder, shownVariables, systemTimeZone } from "@dsh-agentic-roleplay/state";
27
27
  import { request } from "node:http";
28
28
  import { request as request$1 } from "node:https";
29
- import { pipeline } from "node:stream/promises";
30
29
  import { homedir } from "node:os";
30
+ import { pipeline } from "node:stream/promises";
31
31
  import { spawn } from "node:child_process";
32
32
  import z from "@deepseek-ai/schemastery";
33
33
  // src/host/worlds/authoring-language.ts
@@ -1,5 +1,5 @@
1
1
  import "./access-CfQWbNZP.js";
2
- import { i as translator, n as withoutExtension, r as languageOf, t as trimCharacters } from "./text-DyRN4nDP.js";
2
+ import { i as translator, n as withoutExtension, r as languageOf, t as trimCharacters } from "./text-CbGQhK1-.js";
3
3
  import { dirname, extname, join } from "node:path";
4
4
  import { existsSync } from "node:fs";
5
5
  import { createHash, randomUUID } from "node:crypto";
@@ -379,4 +379,4 @@ async function addToLibrary(sessionFolder, bytes, originalName) {
379
379
  }
380
380
  export { trOf as C, slug as S, writeImageFileMetadata as _, LIBRARY_FOLDER as a, mapLimit as b, nextSceneSerial as c, sceneImagePath as d, writeImage as f, sidecarOf as g, readImageFileMetadata as h, libraryHashes as i, readImageMetadata as l, mediaTypeOf as m, addToLibraryOnce as n, entityImageDirectory as o, MEDIA_TYPES as p, imageExtensionOf as r, inheritImages as s, addToLibrary as t, referenceImagePath as u, readPngMetadata as v, uniqueKey as w, norm as x, withPngMetadata as y };
381
381
 
382
- //# sourceMappingURL=library-Dfu0dgRj.js.map
382
+ //# sourceMappingURL=library-QFL6Z_Nr.js.map
@@ -1,9 +1,9 @@
1
1
  import "./access-CfQWbNZP.js";
2
- import { H as deleteLorebookEntry, J as readLorebook$1, K as loadLorebook, Pt as ImportCardError, U as entriesOf, X as updateLorebookInfo, Z as writeLorebookEntry, i as contextOf, q as lorebookDirectory, r as MAX_PREVIEW_TEXT } from "./authoring-tools-BgmC2oqU.js";
3
- import { J as cleanText, Nt as LORE_KINDS, Pt as LORE_SCOPES, Q as IMPORT_FOLDER, X as partsOf, Z as withPlayer, n as createPresetFromGuidance } from "./presets-HB8kJTaE.js";
4
- import { C as trOf, S as slug, b as mapLimit, w as uniqueKey } from "./library-Dfu0dgRj.js";
5
- import { i as translator, r as languageOf } from "./text-DyRN4nDP.js";
6
- import { at as shippedPromptsDirectory } from "./hooks-rQTTeOC4.js";
2
+ import { Zt as ImportCardError, at as deleteLorebookEntry, dt as readLorebook$1, i as contextOf, lt as loadLorebook, mt as writeLorebookEntry, ot as entriesOf, pt as updateLorebookInfo, r as MAX_PREVIEW_TEXT, ut as lorebookDirectory } from "./authoring-tools-CdHlvx32.js";
3
+ import { Ft as LORE_SCOPES, J as cleanText, Pt as LORE_KINDS, Q as IMPORT_FOLDER, X as partsOf, Z as withPlayer, n as createPresetFromGuidance } from "./presets-Bwnrx7p0.js";
4
+ import { C as trOf, S as slug, b as mapLimit, w as uniqueKey } from "./library-QFL6Z_Nr.js";
5
+ import { i as translator, r as languageOf } from "./text-CbGQhK1-.js";
6
+ import { at as shippedPromptsDirectory } from "./hooks-CcQj_dJo.js";
7
7
  import { join } from "node:path";
8
8
  import { existsSync, readFileSync } from "node:fs";
9
9
  import { readFile, rm, writeFile } from "node:fs/promises";
@@ -696,4 +696,4 @@ async function lorebookApproval(exec, next, state) {
696
696
  }
697
697
  export { lorebookImportMessage as a, readLorebook as c, lorebookOfChat as d, lorebookAuthorTools as i, selectEntries as l, LorebookReader as n, pendingTargets as o, lorebookApproval as r, previewLorebook as s, LOREBOOK_UPLOAD as t, lorebookChatSessionId as u };
698
698
 
699
- //# sourceMappingURL=lorebook-author-tools-BAaAqZZm.js.map
699
+ //# sourceMappingURL=lorebook-author-tools-DWBnYo1E.js.map
@@ -1,7 +1,7 @@
1
- import { n as limitAuthoringAgents, q as lorebookDirectory } from "./authoring-tools-BgmC2oqU.js";
2
- import { t as guardAuthoringTurns } from "./turn-guard-g_hDn0jR.js";
3
- import { d as lorebookOfChat, i as lorebookAuthorTools, n as LorebookReader, o as pendingTargets, r as lorebookApproval } from "./lorebook-author-tools-BAaAqZZm.js";
4
- import "./hooks-rQTTeOC4.js";
1
+ import { n as limitAuthoringAgents, ut as lorebookDirectory } from "./authoring-tools-CdHlvx32.js";
2
+ import { t as guardAuthoringTurns } from "./turn-guard-Bb8Ew-1z.js";
3
+ import { d as lorebookOfChat, i as lorebookAuthorTools, n as LorebookReader, o as pendingTargets, r as lorebookApproval } from "./lorebook-author-tools-DWBnYo1E.js";
4
+ import "./hooks-CcQj_dJo.js";
5
5
  import { join } from "node:path";
6
6
  import { existsSync, readdirSync } from "node:fs";
7
7
  // src/lorebook-authoring.ts
@@ -1,14 +1,14 @@
1
1
  import { a as chatSessionId, o as roleplaySessionOf, t as promptFor } from "./access-CfQWbNZP.js";
2
- import { D as describeWhen, G as commandsOf, O as zoneOf, R as wrongLanguage, T as ClockError, U as COMMANDS_KEY, W as commandFlagKey, c as record, f as MAX_OOC_ANSWER, k as RESULTS, l as characterRunner, mt as AUTHORING_NEEDS, n as installHooks, o as PREVIEW_TOOL, ot as shippedText, p as storesOf, r as externalGiven, s as createTools$1, u as toolEnabled, ut as ReflectionRefusedError, v as readVerdicts, y as writeVerdicts } from "./hooks-rQTTeOC4.js";
2
+ import { D as describeWhen, G as commandsOf, O as zoneOf, R as wrongLanguage, T as ClockError, U as COMMANDS_KEY, W as commandFlagKey, c as record, f as MAX_OOC_ANSWER, k as RESULTS, l as characterRunner, mt as AUTHORING_NEEDS, n as installHooks, o as PREVIEW_TOOL, ot as shippedText, p as storesOf, r as externalGiven, s as createTools$1, u as toolEnabled, ut as ReflectionRefusedError, v as readVerdicts, y as writeVerdicts } from "./hooks-CcQj_dJo.js";
3
3
  import { a as childTrace, c as runChild, h as currentTurn, n as childModel, r as childSampling, v as estimateAnswer, y as tokensOf } from "./child-lYYeOwl2.js";
4
- import { _ as referent, a as whereabouts, g as sameWords, n as memoryReflector, r as recordFailure, s as Timelines, t as dueReflection } from "./reflection-Dg1xtOTW.js";
5
- import { B as noAt, H as yesAt, I as announceProblem, L as askYesNo, Lt as INTENT_STATUSES, V as routeVerdicts, m as STANDING_PROMPT, z as modeFor } from "./presets-HB8kJTaE.js";
6
- import { i as translator, r as languageOf } from "./text-DyRN4nDP.js";
4
+ import { _ as referent, a as whereabouts, g as sameWords, n as memoryReflector, r as recordFailure, s as Timelines, t as dueReflection } from "./reflection-CUWG-6Qg.js";
5
+ import { B as noAt, H as yesAt, I as announceProblem, L as askYesNo, Rt as INTENT_STATUSES, V as routeVerdicts, m as STANDING_PROMPT, z as modeFor } from "./presets-Bwnrx7p0.js";
6
+ import { i as translator, r as languageOf } from "./text-CbGQhK1-.js";
7
7
  import { a as liveSettings, n as encodeOutput, v as GATE_SITES } from "./narration-CjB_KwwY.js";
8
- import { S as slug, t as addToLibrary, w as uniqueKey } from "./library-Dfu0dgRj.js";
9
- import { _ as API_PREFIX } from "./packs-DIj5BEfq.js";
10
- import { i as updateImage, r as listGallery, t as describeGalleryImage } from "./gallery-D1V4h8vh.js";
11
- import { n as interpretImage, s as presentedFor, t as runImagePresenter } from "./presenter-agent-DR0KvLE0.js";
8
+ import { S as slug, t as addToLibrary, w as uniqueKey } from "./library-QFL6Z_Nr.js";
9
+ import { _ as API_PREFIX } from "./packs-BREPSfHy.js";
10
+ import { i as updateImage, r as listGallery, t as describeGalleryImage } from "./gallery-BKh7eu80.js";
11
+ import { n as interpretImage, s as presentedFor, t as runImagePresenter } from "./presenter-agent-B49-_iUm.js";
12
12
  import { join } from "node:path";
13
13
  import { existsSync } from "node:fs";
14
14
  import { readdir } from "node:fs/promises";