@dsh-agentic-roleplay/core 0.12.4 → 0.12.6

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 (31) hide show
  1. package/lib/{access-Csp80TFX.js → access-5vtPAT3O.js} +2 -2
  2. package/lib/{authoring-tools-B_qYKK8c.js → authoring-tools-BpkpGMSO.js} +21 -14
  3. package/lib/authoring.js +8 -8
  4. package/lib/{child-DTdY14S9.js → child-Bfj7-Iuo.js} +73 -21
  5. package/lib/client.js +1688 -1213
  6. package/lib/client.js.map +1 -1
  7. package/lib/compaction.js +3 -3
  8. package/lib/doctor.js +3 -3
  9. package/lib/{gallery-Bu6eZMKk.js → gallery-D0h0X7Jy.js} +3 -3
  10. package/lib/{generator-CTWQWbSW.js → generator-CAJkevKl.js} +2 -2
  11. package/lib/helper.js +2 -2
  12. package/lib/{hooks-YXQZ9G2d.js → hooks-P_--KSFl.js} +67 -28
  13. package/lib/images.js +4 -4
  14. package/lib/index.js +70 -18
  15. package/lib/{jail-DVbPSC0R.js → jail-D83JnxKg.js} +2 -2
  16. package/lib/{library-BmlHNCah.js → library-CnWOHwQl.js} +3 -3
  17. package/lib/{lorebook-author-tools-C3rRpMt7.js → lorebook-author-tools-CWZ6WRN-.js} +7 -7
  18. package/lib/lorebook-authoring.js +5 -5
  19. package/lib/{narration--K2XVIHI.js → narration-DAHmte8p.js} +2 -2
  20. package/lib/orchestration.js +37 -38
  21. package/lib/{pack-jail-VbcXiukr.js → pack-jail-DSTyLhMc.js} +15 -15
  22. package/lib/{packs-CzVh2ZNe.js → packs-D9_N8kDF.js} +2 -2
  23. package/lib/{presenter-agent-CF3fneuJ.js → presenter-agent-BTpJxmGi.js} +7 -6
  24. package/lib/{preset-C595KRUM.js → preset-B69AXtip.js} +4 -4
  25. package/lib/{preset-author-tools-CF_JKKTE.js → preset-author-tools-BJtt7D0J.js} +7 -7
  26. package/lib/preset-authoring.js +5 -5
  27. package/lib/{reflection-ByIQSOKC.js → reflection-2uzE3U-v.js} +9 -9
  28. package/lib/{serial-ULGUKWsu.js → serial-DnVqMDe5.js} +114 -25
  29. package/lib/{text-hiKTooVb.js → text-B-HsLdb-.js} +2 -1
  30. package/lib/{turn-guard-DXMeAJdv.js → turn-guard-D4YHE00t.js} +3 -3
  31. package/package.json +31 -31
@@ -1,14 +1,14 @@
1
- import { A as chatSessionId } from "./child-DTdY14S9.js";
2
- import { $t as authoringChatSessionId, A as loadWorldParts, Bt as loadCommands, Ct as loadDice, D as worldFieldChanges, Dt as parseCalendarFile, Et as loadCalendar, F as editsSince, G as addressesToFetch, Ht as TRIGGERS_FILE_NAME, I as writeSnapshot, K as candidateUrls, Mt as UPDATE_FOLDER, Nt as baseId, O as editWorldInfo, Ot as CHARACTERS_DIR, P as recordProvenance, Pt as cardPieces, Q as writePortrait, Qt as authoredWorldOf, Rt as COMMANDS_FILE_NAME, St as DICE_FILE_NAME, T as matchPieces, Tt as CALENDAR_FILE_NAME, Ut as loadTriggers, Vt as parseCommandsFile, W as addressKey, Xt as DICE_READINGS, Y as mergeReports, Yt as DICE_COMPARISONS, Z as cardCharacter, Zt as DICE_RESULTS, _t as loadLocations, bt as FACTIONS_DIR, et as loadValidatedWorld, f as importPhase, gt as LOCATIONS_DIR, ht as routineProblems, kt as loadCharacters, nt as knowsCharacter, o as contextOf, q as fetchPictures, tt as withScratchStory, u as worldOf, vt as ITEMS_DIR, wt as parseDiceFile, xt as loadFactions, yt as loadItems, zt as commandVariable } from "./authoring-tools-B_qYKK8c.js";
3
- import { $t as LOCATION_FILE_NAME, Et as IMPORT_FOLDER, Jt as loadVariables, M as WORLD_FILE_NAME, Mt as readImportFolder, N as parseWorldFile, Nt as writeChoices, Pt as InvalidEditProblems, Qt as parseLoreFile, Tt as withPlayer, Xt as variableProblems, Yt as parseVariablesFile, Zt as LORE_FILE_NAME, an as FACTION_FILE_NAME, at as writeWorldPrompt, bt as loadLore, cn as parseCharacterFile, en as parseLocationFile, kt as PICTURE_FILE, l as extractStyleFrom, on as parseFactionFile, qt as VARIABLES_FILE_NAME, rn as parseItemFile, sn as CHARACTER_FILE_NAME, tn as ITEM_FILE_NAME, xt as subfolders, yt as LORE_DIR } from "./serial-ULGUKWsu.js";
4
- import { n as encodeOutput } from "./narration--K2XVIHI.js";
5
- import { a as VARIABLE_KINDS, n as atomicWrite, o as VARIABLE_SUBJECTS, r as atomicWriteJson, s as VARIABLE_VISIBILITIES } from "./access-Csp80TFX.js";
6
- import { B as parsePlotsFile, F as textLanguage, K as Reader, M as LANGUAGE_NAMES, N as STORY_LANGUAGES, P as isStoryLanguage, R as PLOTS_FILE_NAME, V as plotReferenceProblems, Z as PROMPTS_FOLDER, gt as runCommandLine, it as shippedLanguages, lt as InvalidWorldError, mt as CommandRefusedError, pt as WorldNotFoundError, q as formatIssue, st as AgentUnavailableError, z as loadPlots } from "./hooks-YXQZ9G2d.js";
7
- import { i as translator, r as languageOf } from "./text-hiKTooVb.js";
8
- import { h as readImageFileMetadata, u as referenceImagePath, x as mapLimit } from "./library-BmlHNCah.js";
9
- import { n as readPreset } from "./preset-C595KRUM.js";
10
- import { _ as API_PREFIX, a as packIds, d as packPath, f as readPack, h as PACK_MEDIA_TYPES, l as isPackId } from "./packs-CzVh2ZNe.js";
11
- import { a as uploadReferenceImage, t as generateReferenceImage } from "./generator-CTWQWbSW.js";
1
+ import { A as chatSessionId } from "./child-Bfj7-Iuo.js";
2
+ import { $t as authoringChatSessionId, A as loadWorldParts, Bt as loadCommands, Ct as loadDice, D as worldFieldChanges, Dt as parseCalendarFile, Et as loadCalendar, F as editsSince, G as addressesToFetch, Ht as TRIGGERS_FILE_NAME, I as writeSnapshot, K as candidateUrls, Mt as UPDATE_FOLDER, Nt as baseId, O as editWorldInfo, Ot as CHARACTERS_DIR, P as recordProvenance, Pt as cardPieces, Q as writePortrait, Qt as authoredWorldOf, Rt as COMMANDS_FILE_NAME, St as DICE_FILE_NAME, T as matchPieces, Tt as CALENDAR_FILE_NAME, Ut as loadTriggers, Vt as parseCommandsFile, W as addressKey, Xt as DICE_READINGS, Y as mergeReports, Yt as DICE_COMPARISONS, Z as cardCharacter, Zt as DICE_RESULTS, _t as loadLocations, bt as FACTIONS_DIR, et as loadValidatedWorld, f as importPhase, gt as LOCATIONS_DIR, ht as routineProblems, kt as loadCharacters, nt as knowsCharacter, o as contextOf, q as fetchPictures, tt as withScratchStory, u as worldOf, vt as ITEMS_DIR, wt as parseDiceFile, xt as loadFactions, yt as loadItems, zt as commandVariable } from "./authoring-tools-BpkpGMSO.js";
3
+ import { $t as LOCATION_FILE_NAME, Et as IMPORT_FOLDER, Jt as loadVariables, M as WORLD_FILE_NAME, Mt as readImportFolder, N as parseWorldFile, Nt as writeChoices, Pt as InvalidEditProblems, Qt as parseLoreFile, Tt as withPlayer, Xt as variableProblems, Yt as parseVariablesFile, Zt as LORE_FILE_NAME, an as FACTION_FILE_NAME, at as writeWorldPrompt, bt as loadLore, cn as parseCharacterFile, en as parseLocationFile, kt as PICTURE_FILE, l as extractStyleFrom, on as parseFactionFile, qt as VARIABLES_FILE_NAME, rn as parseItemFile, sn as CHARACTER_FILE_NAME, tn as ITEM_FILE_NAME, xt as subfolders, yt as LORE_DIR } from "./serial-DnVqMDe5.js";
4
+ import { n as encodeOutput } from "./narration-DAHmte8p.js";
5
+ import { a as VARIABLE_KINDS, n as atomicWrite, o as VARIABLE_SUBJECTS, r as atomicWriteJson, s as VARIABLE_VISIBILITIES } from "./access-5vtPAT3O.js";
6
+ import { B as parsePlotsFile, F as textLanguage, K as Reader, M as LANGUAGE_NAMES, N as STORY_LANGUAGES, P as isStoryLanguage, R as PLOTS_FILE_NAME, V as plotReferenceProblems, Z as PROMPTS_FOLDER, gt as runCommandLine, it as shippedLanguages, lt as InvalidWorldError, mt as CommandRefusedError, pt as WorldNotFoundError, q as formatIssue, st as AgentUnavailableError, z as loadPlots } from "./hooks-P_--KSFl.js";
7
+ import { i as translator, r as languageOf } from "./text-B-HsLdb-.js";
8
+ import { h as readImageFileMetadata, u as referenceImagePath, x as mapLimit } from "./library-CnWOHwQl.js";
9
+ import { n as readPreset } from "./preset-B69AXtip.js";
10
+ import { _ as API_PREFIX, a as packIds, d as packPath, f as readPack, h as PACK_MEDIA_TYPES, l as isPackId } from "./packs-D9_N8kDF.js";
11
+ import { a as uploadReferenceImage, t as generateReferenceImage } from "./generator-CAJkevKl.js";
12
12
  import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
13
13
  import { readTriggerDefinition, triggerReferenceProblems } from "@dsh-agentic-roleplay/state";
14
14
  import { existsSync, lstatSync, statSync } from "node:fs";
@@ -257,7 +257,7 @@ function agentServicesOf(ctx) {
257
257
  const persistence = ctx.get("sessionPersistence");
258
258
  const agents = ctx.get("agents");
259
259
  const command = agents === void 0 ? void 0 : async (chat, line) => {
260
- const live = agents.get(chat);
260
+ const live = agents.get(SessionId(chat));
261
261
  return live === void 0 ? void 0 : await runCommandLine(ctx, live, line, new AbortController().signal);
262
262
  };
263
263
  return {
@@ -278,7 +278,7 @@ const UNLOAD_WAIT_MS = 5e3;
278
278
  */
279
279
  function unloader(ctx, agents) {
280
280
  return async (chat) => {
281
- const live = agents.get(chat);
281
+ const live = agents.get(SessionId(chat));
282
282
  if (live === void 0) return;
283
283
  let off = () => {};
284
284
  try {
@@ -302,7 +302,7 @@ function unloader(ctx, agents) {
302
302
  } finally {
303
303
  off();
304
304
  }
305
- if (agents.get(chat) !== void 0) throw new Error(`the chat ${chat} is still loaded and cannot be replaced`);
305
+ if (agents.get(SessionId(chat)) !== void 0) throw new Error(`the chat ${chat} is still loaded and cannot be replaced`);
306
306
  };
307
307
  }
308
308
  /**
@@ -3227,4 +3227,4 @@ function registerPackJail(ctx, deps) {
3227
3227
  }
3228
3228
  export { languageOfDocuments as $, generateWorldCharacterPortrait as A, deleteTriggerDocument as B, editWorldFaction as C, editWorldPlots as D, editWorldPlace as E, uploadWorldCharacterPortrait as F, parseVariablesEdit as G, writeTriggerDocument as H, uploadWorldEntityImage as I, PRESET_FILE as J, parseDiceEdit as K, worldCharacterPortraitFile as L, readWorldEditor as M, readWorldTrigger as N, editWorldRelation as O, removeWorldTrigger as P, translateTools as Q, worldEntityImageFile as R, editWorldCharacter as S, editWorldNarrationVoice as T, parseCalendarEdit as U, readTriggerDocuments as V, parseRoutineEdit as W, presetTools as X, presetMessage as Y, translateMessage as Z, readCalendarDocument as _, deleteWorldPackFile as a, startUpdate as at, readRoutines as b, createAuthoredEntity as c, authoringTitle as ct, replaceAuthoredEntity as d, agentServicesOf as dt, readWorldDocuments as et, editCalendar as f, DOCTOR_OPENING_SOURCE as ft, editVariables as g, editRoutine as h, checkWorldPack as i, revertUpdate as it, generateWorldEntityImage as j, editWorldThing as k, deleteAuthoredEntity as l, ensureAuthoringChat as lt, editDice as m, appendNarratedTurn as mt, packFileProblem as n, finishUpdate as nt, listWorldPacks as o, updateStatus as ot, editCommands as p, appendEmptyTurn as pt, parseCommandsEdit as q, registerPackJail as r, pendingUpdate as rt, AUTHORED_ENTITY_KINDS as s, AuthoringSessions as st, MAX_PACK_TEXT as t, findTargets as tt, readAuthoredEntityDocument as u, AgentSessions as ut, readCommandsDocument as v, editWorldLore as w, readVariables as x, readDiceDocument as y, writeWorldTrigger as z };
3229
3229
 
3230
- //# sourceMappingURL=pack-jail-VbcXiukr.js.map
3230
+ //# sourceMappingURL=pack-jail-DSTyLhMc.js.map
@@ -1,4 +1,4 @@
1
- import { K as Reader } from "./hooks-YXQZ9G2d.js";
1
+ import { K as Reader } from "./hooks-P_--KSFl.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";
@@ -836,4 +836,4 @@ function anyTab(bases) {
836
836
  }
837
837
  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 };
838
838
 
839
- //# sourceMappingURL=packs-CzVh2ZNe.js.map
839
+ //# sourceMappingURL=packs-D9_N8kDF.js.map
@@ -1,8 +1,8 @@
1
- import { n as atomicWrite, t as promptFor } from "./access-Csp80TFX.js";
2
- import { l as runChild } from "./child-DTdY14S9.js";
3
- import { n as generateTransientImage, t as generateReferenceImage } from "./generator-CTWQWbSW.js";
4
- import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-Bu6eZMKk.js";
5
- import { c as nextSceneSerial, u as referenceImagePath } from "./library-BmlHNCah.js";
1
+ import { n as atomicWrite, t as promptFor } from "./access-5vtPAT3O.js";
2
+ import { l as runChild } from "./child-Bfj7-Iuo.js";
3
+ import { n as generateTransientImage, t as generateReferenceImage } from "./generator-CAJkevKl.js";
4
+ import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-D0h0X7Jy.js";
5
+ import { c as nextSceneSerial, u as referenceImagePath } from "./library-CnWOHwQl.js";
6
6
  import { join, relative, sep } from "node:path";
7
7
  import { characterKey, itemKey, locationKey } from "@dsh-agentic-roleplay/state";
8
8
  import { existsSync } from "node:fs";
@@ -837,6 +837,7 @@ async function runImagePresenter(job) {
837
837
  }),
838
838
  result: RESULT,
839
839
  beforeSubmit: () => generated.length === 0 ? "you have not shown or generated an image: use the appropriate tool before finishing" : void 0,
840
+ ...job.trace === void 0 ? {} : { trace: job.trace },
840
841
  maxCalls: 16
841
842
  })).summary,
842
843
  images: [...generated]
@@ -844,4 +845,4 @@ async function runImagePresenter(job) {
844
845
  }
845
846
  export { searchImages as a, presentedFor as c, findImages as i, interpretImage as n, tokensOf as o, imageTools as r, present as s, runImagePresenter as t };
846
847
 
847
- //# sourceMappingURL=presenter-agent-CF3fneuJ.js.map
848
+ //# sourceMappingURL=presenter-agent-BTpJxmGi.js.map
@@ -1,6 +1,6 @@
1
- import { Wt as ImportCardError, r as MAX_PREVIEW_TEXT } from "./authoring-tools-B_qYKK8c.js";
2
- import { p as SAMPLING_RANGES } from "./child-DTdY14S9.js";
3
- import { St as cleanText } from "./serial-ULGUKWsu.js";
1
+ import { Wt as ImportCardError, r as MAX_PREVIEW_TEXT } from "./authoring-tools-BpkpGMSO.js";
2
+ import { p as SAMPLING_RANGES } from "./child-Bfj7-Iuo.js";
3
+ import { St as cleanText } from "./serial-DnVqMDe5.js";
4
4
  // src/host/import/preset.ts
5
5
  /** The older preset layout keeps its texts under fixed keys. */
6
6
  const LEGACY_KEYS = [
@@ -239,4 +239,4 @@ function selectPrompts(file, enabled, keepSampling) {
239
239
  }
240
240
  export { readPreset as n, selectPrompts as r, previewPreset as t };
241
241
 
242
- //# sourceMappingURL=preset-C595KRUM.js.map
242
+ //# sourceMappingURL=preset-B69AXtip.js.map
@@ -1,9 +1,9 @@
1
- import "./access-Csp80TFX.js";
2
- import { Et as IMPORT_FOLDER, H as PRESET_FILE, Tt as withPlayer, X as readPreset, Y as presetDirectory, at as writeWorldPrompt, et as updatePresetInfo, it as readWorldPrompt, l as extractStyleFrom, nt as deleteWorldPrompt, rt as listWorldPrompts, tt as PROSE_PROMPTS } from "./serial-ULGUKWsu.js";
3
- import { n as readPreset$1 } from "./preset-C595KRUM.js";
4
- import { o as contextOf } from "./authoring-tools-B_qYKK8c.js";
5
- import { i as translator, r as languageOf } from "./text-hiKTooVb.js";
6
- import { at as shippedPromptsDirectory, it as shippedLanguages, tt as languageOf$1 } from "./hooks-YXQZ9G2d.js";
1
+ import "./access-5vtPAT3O.js";
2
+ import { Et as IMPORT_FOLDER, H as PRESET_FILE, Tt as withPlayer, X as readPreset, Y as presetDirectory, at as writeWorldPrompt, et as updatePresetInfo, it as readWorldPrompt, l as extractStyleFrom, nt as deleteWorldPrompt, rt as listWorldPrompts, tt as PROSE_PROMPTS } from "./serial-DnVqMDe5.js";
3
+ import { n as readPreset$1 } from "./preset-B69AXtip.js";
4
+ import { o as contextOf } from "./authoring-tools-BpkpGMSO.js";
5
+ import { i as translator, r as languageOf } from "./text-B-HsLdb-.js";
6
+ import { at as shippedPromptsDirectory, it as shippedLanguages, tt as languageOf$1 } from "./hooks-P_--KSFl.js";
7
7
  import { join } from "node:path";
8
8
  import { existsSync } from "node:fs";
9
9
  import { readFile, rm } from "node:fs/promises";
@@ -279,4 +279,4 @@ async function presetApproval(exec, next, carries, auto = () => false) {
279
279
  }
280
280
  export { presetChatSessionId as a, presetAuthorTools as i, narrationImportMessage as n, presetOfChat as o, presetApproval as r, PresetReader as t };
281
281
 
282
- //# sourceMappingURL=preset-author-tools-CF_JKKTE.js.map
282
+ //# sourceMappingURL=preset-author-tools-BJtt7D0J.js.map
@@ -1,9 +1,9 @@
1
- import { n as limitAuthoringAgents } from "./authoring-tools-B_qYKK8c.js";
2
- import { t as guardAuthoringTurns } from "./turn-guard-DXMeAJdv.js";
1
+ import { n as limitAuthoringAgents } from "./authoring-tools-BpkpGMSO.js";
2
+ import { t as guardAuthoringTurns } from "./turn-guard-D4YHE00t.js";
3
3
  import { n as silenceRuntimeContext, t as silenceHarnessDevContext } from "./dev-context-Cgv_wZbG.js";
4
- import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-CF_JKKTE.js";
5
- import "./hooks-YXQZ9G2d.js";
6
- import { Y as presetDirectory } from "./serial-ULGUKWsu.js";
4
+ import { i as presetAuthorTools, o as presetOfChat, r as presetApproval, t as PresetReader } from "./preset-author-tools-BJtt7D0J.js";
5
+ import "./hooks-P_--KSFl.js";
6
+ import { Y as presetDirectory } from "./serial-DnVqMDe5.js";
7
7
  import { join } from "node:path";
8
8
  import { existsSync } from "node:fs";
9
9
  // src/preset-authoring.ts
@@ -1,10 +1,10 @@
1
- import { O as estimateAnswer, a as childTrace, j as roleplaySessionOf, l as runChild, n as childModel, r as childSampling } from "./child-DTdY14S9.js";
2
- import { $ as sha, A as routeVerdicts, D as mergeReports, E as askYesNo, J as loadPreset, T as announceProblem, j as yesAt, k as noAt, q as listPresets, t as SerialQueue } from "./serial-ULGUKWsu.js";
3
- import { t as promptFor } from "./access-Csp80TFX.js";
4
- import { D as referent, I as wrongLanguage, Z as PROMPTS_FOLDER, et as inheritPrompts, vt as describeWhen } from "./hooks-YXQZ9G2d.js";
5
- import { i as translator, r as languageOf } from "./text-hiKTooVb.js";
6
- import { s as inheritImages } from "./library-BmlHNCah.js";
7
- import { i as inheritPacks } from "./packs-CzVh2ZNe.js";
1
+ import { O as estimateAnswer, a as childTrace, j as roleplaySessionOf, l as runChild, n as childModel, r as childSampling } from "./child-Bfj7-Iuo.js";
2
+ import { $ as sha, A as routeVerdicts, D as mergeReports, E as askYesNo, J as loadPreset, T as announceProblem, j as yesAt, k as noAt, q as listPresets, t as SerialQueue } from "./serial-DnVqMDe5.js";
3
+ import { t as promptFor } from "./access-5vtPAT3O.js";
4
+ import { D as referent, I as wrongLanguage, Z as PROMPTS_FOLDER, et as inheritPrompts, vt as describeWhen } from "./hooks-P_--KSFl.js";
5
+ import { i as translator, r as languageOf } from "./text-B-HsLdb-.js";
6
+ import { s as inheritImages } from "./library-CnWOHwQl.js";
7
+ import { i as inheritPacks } from "./packs-D9_N8kDF.js";
8
8
  import { dirname, join } from "node:path";
9
9
  import { characterKey, locationKey, sessionDatabase, sessionFolder, tokens } from "@dsh-agentic-roleplay/state";
10
10
  import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -1502,6 +1502,6 @@ function memoryReflector(deps) {
1502
1502
  return { characters };
1503
1503
  } };
1504
1504
  }
1505
- export { snapshotOf as _, whereabouts as a, copyPreset as c, switchPreset as d, readTimeline as f, pathTo as g, childrenOf as h, reflectionStatus as i, presetStatus as l, START_SNAPSHOT as m, memoryReflector as n, TimelineError as o, writeTimeline as p, recordFailure as r, Timelines as s, dueReflection as t, recordPreset as u };
1505
+ export { pathTo as _, whereabouts as a, BranchError as c, recordPreset as d, switchPreset as f, childrenOf as g, START_SNAPSHOT as h, reflectionStatus as i, copyPreset as l, writeTimeline as m, memoryReflector as n, TimelineError as o, readTimeline as p, recordFailure as r, Timelines as s, dueReflection as t, presetStatus as u, snapshotOf as v };
1506
1506
 
1507
- //# sourceMappingURL=reflection-ByIQSOKC.js.map
1507
+ //# sourceMappingURL=reflection-2uzE3U-v.js.map
@@ -1,9 +1,9 @@
1
- import { m as parseSampling } from "./child-DTdY14S9.js";
2
- import { f as parseSwitchboard } from "./narration--K2XVIHI.js";
3
- import { a as VARIABLE_KINDS, n as atomicWrite, o as VARIABLE_SUBJECTS, s as VARIABLE_VISIBILITIES } from "./access-Csp80TFX.js";
4
- import { G as readDocument, J as errorMessage, K as Reader, X as LANGUAGE_TAG, Y as LANGUAGE_FOLDER, Z as PROMPTS_FOLDER, at as shippedPromptsDirectory, it as shippedLanguages, nt as listFiles, q as formatIssue, rt as promptProblem, tt as languageOf } from "./hooks-YXQZ9G2d.js";
5
- import { i as translator, r as languageOf$1 } from "./text-hiKTooVb.js";
6
- import { C as slug, S as norm, T as uniqueKey, w as trOf, x as mapLimit } from "./library-BmlHNCah.js";
1
+ import { m as parseSampling } from "./child-Bfj7-Iuo.js";
2
+ import { f as parseSwitchboard } from "./narration-DAHmte8p.js";
3
+ import { a as VARIABLE_KINDS, n as atomicWrite, o as VARIABLE_SUBJECTS, s as VARIABLE_VISIBILITIES } from "./access-5vtPAT3O.js";
4
+ import { G as readDocument, J as errorMessage, K as Reader, X as LANGUAGE_TAG, Y as LANGUAGE_FOLDER, Z as PROMPTS_FOLDER, at as shippedPromptsDirectory, it as shippedLanguages, nt as listFiles, q as formatIssue, rt as promptProblem, tt as languageOf } from "./hooks-P_--KSFl.js";
5
+ import { i as translator, r as languageOf$1 } from "./text-B-HsLdb-.js";
6
+ import { C as slug, S as norm, T as uniqueKey, w as trOf, x as mapLimit } from "./library-CnWOHwQl.js";
7
7
  import { dirname, join } from "node:path";
8
8
  import { MAX_ROUTINE_WINDOWS, createSessionStore, dayTokenProblems, isTimeZone, parseInstant, valueIssue } from "@dsh-agentic-roleplay/state";
9
9
  import { existsSync, readFileSync, readdirSync } from "node:fs";
@@ -1086,7 +1086,6 @@ function sourceSummary(card, language) {
1086
1086
  return lines.join(" ");
1087
1087
  }
1088
1088
  // src/host/import/panels.ts
1089
- const FENCE = /```[^\n]*\n[\s\S]*?```/g;
1090
1089
  const TAG = /<(\/?)([\p{L}][\p{L}\p{N}_-]*)(?=[\s>/])[^>]*>/gu;
1091
1090
  const BLOCKS = /* @__PURE__ */ new Set([
1092
1091
  "div",
@@ -1099,14 +1098,64 @@ const BLOCKS = /* @__PURE__ */ new Set([
1099
1098
  "fieldset"
1100
1099
  ]);
1101
1100
  const SEPARATORS = /\s[||│]\s|[||│]\s*\S+\s*[||│]/;
1102
- const HEADER = /(?:^|\n)[ \t]*(?:【[^】\n]{1,30}】|\[[^\]\n]{1,30}\]|#+[ \t]*[^\n]{1,30})[ \t]*\n?\s*$/;
1103
1101
  const MAX_HTML_TEXT_CHARS = 600;
1104
1102
  const MAX_CUSTOM_CHARS = 4e3;
1105
1103
  /** A block of tags of a card's own invention (not markup) counts as a panel from this many tags: two or three tags are a form of address or an aside, a layout is more. */
1106
1104
  const MIN_CUSTOM_TAGS = 6;
1107
1105
  const MAX_PANELS = 6;
1106
+ /** The most a header line that introduces a panel may say: `【状态】`, `[Status]`, `## Sheet`. */
1107
+ const MAX_HEADER_CHARS = 30;
1108
+ /**
1109
+ * The fenced blocks of a message, as offsets from the opening fence to the end of the closing one.
1110
+ * Found by scanning rather than by a regular expression: a lazy `[\s\S]*?` over a long message is quadratic when no closing fence follows.
1111
+ */
1112
+ function fencedBlocks(text) {
1113
+ const blocks = [];
1114
+ let from = 0;
1115
+ for (;;) {
1116
+ const open = text.indexOf("```", from);
1117
+ if (open === -1) return blocks;
1118
+ const lineEnd = text.indexOf("\n", open);
1119
+ const close = lineEnd === -1 ? -1 : text.indexOf("```", lineEnd + 1);
1120
+ if (close === -1) return blocks;
1121
+ blocks.push({
1122
+ from: open,
1123
+ to: close + 3
1124
+ });
1125
+ from = close + 3;
1126
+ }
1127
+ }
1128
+ /** The fenced block's text without its fence lines. */
1129
+ const unfenced = (block) => block.replace(/^```[^\n]*\n|```$/g, "").trim();
1130
+ /** Whether a character is whitespace, without a regular expression to say so. */
1131
+ const isSpace = (char) => char.trim() === "";
1132
+ /** Whether a line is a header that introduces a panel: a short bracketed name or a short heading. */
1133
+ function headerLine(line) {
1134
+ const text = line.trim();
1135
+ if (text === "") return false;
1136
+ for (const [open, close] of [["【", "】"], ["[", "]"]]) {
1137
+ if (!text.startsWith(open) || !text.endsWith(close)) continue;
1138
+ const name = text.slice(open.length, text.length - close.length);
1139
+ if (name.length >= 1 && name.length <= MAX_HEADER_CHARS) return true;
1140
+ }
1141
+ let hashes = 0;
1142
+ while (hashes < text.length && text[hashes] === "#") hashes += 1;
1143
+ if (hashes === 0) return false;
1144
+ const heading = text.slice(hashes).trim();
1145
+ return heading !== "" && heading.length <= MAX_HEADER_CHARS;
1146
+ }
1147
+ /** Where the header line that introduces a panel starts, when the text before the panel ends with one; the panel is taken from there. */
1148
+ function headerBefore(before) {
1149
+ let end = before.length;
1150
+ while (end > 0 && isSpace(before[end - 1])) end -= 1;
1151
+ if (end === 0) return void 0;
1152
+ const start = before.lastIndexOf("\n", end - 1) + 1;
1153
+ return headerLine(before.slice(start, end)) ? start : void 0;
1154
+ }
1108
1155
  const collapse = (text) => text.replace(/\n{3,}/g, "\n\n").trim();
1109
- const plain = (html) => html.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
1156
+ /** A tag is one class and a closing bracket: linear, so the warning about backtracking does not apply. */
1157
+ const withoutTags = (html) => html.replace(/<[^>]*>/g, " ");
1158
+ const plain = (html) => withoutTags(html).replace(/\s+/g, " ").trim();
1110
1159
  /** The outermost elements of block markup and of invented tags in a text, balanced by their own names, with neighbours that only whitespace separates joined into one. */
1111
1160
  function tagBlocks(text) {
1112
1161
  const found = [];
@@ -1152,10 +1201,11 @@ function tagBlocks(text) {
1152
1201
  } else joined.push({ ...block });
1153
1202
  }
1154
1203
  return joined.map((block) => {
1155
- const header = block.custom ? HEADER.exec(text.slice(0, block.from)) : null;
1156
- return header === null ? block : {
1204
+ if (!block.custom) return block;
1205
+ const header = headerBefore(text.slice(0, block.from));
1206
+ return header === void 0 ? block : {
1157
1207
  ...block,
1158
- from: header.index + (header[0].startsWith("\n") ? 1 : 0)
1208
+ from: header
1159
1209
  };
1160
1210
  });
1161
1211
  }
@@ -1163,14 +1213,21 @@ const statusLine = (line) => SEPARATORS.test(line) && /\d/.test(line);
1163
1213
  /** An update call of a state-tracking framework: a block that holds one is a panel however few tags it has. */
1164
1214
  const CALL = /\b_\.\w+\(|\bstat_data\b|\bJSONPatch\b/;
1165
1215
  /** The text before a removed panel without its last line when that line only introduces the panel ("end every reply with this:"). */
1166
- const withoutLeadIn = (before) => before.replace(/(?:^|\n)[^\n]*[::][ \t]*\n?\s*$/, "\n");
1167
- function fencesWithoutLeadIn(text, panels) {
1216
+ function withoutLeadIn(before) {
1217
+ let end = before.length;
1218
+ while (end > 0 && isSpace(before[end - 1])) end -= 1;
1219
+ if (end === 0 || before[end - 1] !== ":" && before[end - 1] !== ":") return before;
1220
+ const lineStart = before.lastIndexOf("\n", end - 1);
1221
+ return lineStart === -1 ? "\n" : `${before.slice(0, lineStart)}\n`;
1222
+ }
1223
+ /** The text with its fenced blocks taken out into `panels`, each gap passed through `gap`. */
1224
+ function withoutFences(text, panels, gap) {
1168
1225
  let out = "";
1169
1226
  let last = 0;
1170
- for (const match of text.matchAll(FENCE)) {
1171
- panels.push(match[0].replace(/^```[^\n]*\n|```$/g, "").trim());
1172
- out += `${withoutLeadIn(text.slice(last, match.index))}\n\n`;
1173
- last = match.index + match[0].length;
1227
+ for (const block of fencedBlocks(text)) {
1228
+ panels.push(unfenced(text.slice(block.from, block.to)));
1229
+ out += `${gap(text.slice(last, block.from))}\n\n`;
1230
+ last = block.to;
1174
1231
  }
1175
1232
  return out + text.slice(last);
1176
1233
  }
@@ -1181,10 +1238,7 @@ function fencesWithoutLeadIn(text, panels) {
1181
1238
  */
1182
1239
  function splitPanels(text, options = {}) {
1183
1240
  const panels = [];
1184
- let rest = options.leadIn === true ? fencesWithoutLeadIn(text, panels) : text.replace(FENCE, (block) => {
1185
- panels.push(block.replace(/^```[^\n]*\n|```$/g, "").trim());
1186
- return "\n\n";
1187
- });
1241
+ let rest = options.leadIn === true ? withoutFences(text, panels, withoutLeadIn) : withoutFences(text, panels, (gap) => gap);
1188
1242
  const blocks = tagBlocks(rest);
1189
1243
  const outside = blocks.reduceRight((left, { from, to }) => left.slice(0, from) + left.slice(to), rest);
1190
1244
  if (blocks.length > 0 && (options.alone === true || plain(outside) !== "")) for (const block of [...blocks].reverse()) {
@@ -1209,8 +1263,43 @@ function panelsOfCard(card) {
1209
1263
  ];
1210
1264
  return [...new Set(texts.flatMap((text) => splitPanels(text).panels))].filter((panel) => panel.length <= MAX_CUSTOM_CHARS).slice(0, MAX_PANELS);
1211
1265
  }
1212
- /** The sentences of one line; a full stop inside a word or a call (`_.set(`) does not end one. */
1213
- const sentencesOf = (line) => line.match(/(?:[^.!?。!?]|[.!?](?!\s|$))+(?:[.!?]+(?=\s|$)|[。!?]+|$)\s*/gu) ?? [line];
1266
+ const ASCII_STOPS = /* @__PURE__ */ new Set([
1267
+ ".",
1268
+ "!",
1269
+ "?"
1270
+ ]);
1271
+ const WIDE_STOPS = /* @__PURE__ */ new Set([
1272
+ "。",
1273
+ "!",
1274
+ "?"
1275
+ ]);
1276
+ /**
1277
+ * The sentences of one line; a full stop inside a word or a call (`_.set(`) does not end one: a run of terminal marks ends a sentence only when a space or the end of the line follows it,
1278
+ * except for the wide marks, which end one wherever they are. Found by scanning, so that a line of full stops and letters cannot make the matcher backtrack over itself.
1279
+ */
1280
+ function sentencesOf(line) {
1281
+ const sentences = [];
1282
+ let from = 0;
1283
+ let at = 0;
1284
+ while (at < line.length) {
1285
+ if (!ASCII_STOPS.has(line[at]) && !WIDE_STOPS.has(line[at])) {
1286
+ at += 1;
1287
+ continue;
1288
+ }
1289
+ let end = at;
1290
+ while (end < line.length && (ASCII_STOPS.has(line[end]) || WIDE_STOPS.has(line[end]))) end += 1;
1291
+ if (!(!ASCII_STOPS.has(line[at]) || end === line.length || isSpace(line[end]))) {
1292
+ at = end;
1293
+ continue;
1294
+ }
1295
+ while (end < line.length && isSpace(line[end])) end += 1;
1296
+ sentences.push(line.slice(from, end));
1297
+ from = end;
1298
+ at = end;
1299
+ }
1300
+ if (from < line.length) sentences.push(line.slice(from));
1301
+ return sentences.length === 0 ? [line] : sentences;
1302
+ }
1214
1303
  const MIN_LEFT_OUT_WORDS = 3;
1215
1304
  const ECHO_SHARE = .6;
1216
1305
  /** A short sentence right after a dropped one ("Never skip it.") has nothing left to refer to. */
@@ -5280,4 +5369,4 @@ var SerialQueue = class {
5280
5369
  };
5281
5370
  export { sha as $, LOCATION_FILE_NAME as $t, routeVerdicts as A, openingText as At, questionView as B, parseThingEdit as Bt, ROLE_TABLE as C, itemise as Ct, mergeReports as D, ImportNotFoundError as Dt, askYesNo as E, IMPORT_FOLDER as Et, parseWorldInfoEdit as F, parseCharacterEdit as Ft, deletePreset as G, dialectOf as Gt, PRESET_FILE as H, importRequestOf as Ht, hasSpeech as I, parseFactionEdit as It, loadPreset as J, loadVariables as Jt, isPresetName as K, sourceSummary as Kt, parseOpeningParts as L, parseLoreEdit as Lt, WORLD_FILE_NAME as M, readImportFolder as Mt, parseWorldFile as N, writeChoices as Nt, modeFor as O, ImportStore as Ot, MAX_OPENING_CHARS as P, InvalidEditProblems as Pt, savePresetFromWorld as Q, parseLoreFile as Qt, partsText as R, parsePlaceEdit as Rt, ROLES as S, cleanText as St, announceProblem as T, withPlayer as Tt, createPresetFromGuidance as U, findPanel as Ut, startQuestionsToFile as V, IMPORT_COMMAND as Vt, createPresetFromShipped as W, splitPanels as Wt, readPreset as X, variableProblems as Xt, presetDirectory as Y, parseVariablesFile as Yt, reservePreset as Z, LORE_FILE_NAME as Zt, pruneRelationships as _, updateLorebookInfo as _t, characterDocument as a, FACTION_FILE_NAME as an, writeWorldPrompt as at, classifyItems as b, loadLore as bt, extractStyle as c, parseCharacterFile as cn, deleteLorebook as ct, inert as d, LORE_SCOPES as dn, isLorebookName as dt, parseLocationFile as en, updatePresetInfo as et, loreDocuments as f, WEEKDAY_NAMES as fn, listLorebooks as ft, pruneMembers as g, reserveLorebook as gt, pruneLoreSubjects as h, readLorebook as ht, asWritten as i, parseSlotsFile as in, readWorldPrompt as it, yesAt as j, parseChoices as jt, noAt as k, PICTURE_FILE as kt, extractStyleFrom as l, guarded as ln, deleteLorebookEntry as lt, pruneLinks as m, INTENT_STATUSES as mn, lorebookDirectory as mt, STANDING_PROMPT as n, SLOTS_FILE_NAME as nn, deleteWorldPrompt as nt, emptyExtracted as o, parseFactionFile as on, addLorebookEntries as ot, pruneKnowledge as p, DEFAULT_SLOTS as pn, loadLorebook as pt, listPresets as q, VARIABLES_FILE_NAME as qt, addLore as r, parseItemFile as rn, listWorldPrompts as rt, extractEntities as s, CHARACTER_FILE_NAME as sn, createLorebook as st, SerialQueue as t, ITEM_FILE_NAME as tn, PROSE_PROMPTS as tt, extractVariables as u, LORE_KINDS as un, entriesOf as ut, sourcesFor as v, writeLorebookEntry as vt, isLeftOut as w, partsOf as wt, findEntity as x, subfolders as xt, buildRoster as y, LORE_DIR as yt, combineAnswers as z, parseRelationEdit as zt };
5282
5371
 
5283
- //# sourceMappingURL=serial-ULGUKWsu.js.map
5372
+ //# sourceMappingURL=serial-DnVqMDe5.js.map
@@ -271,6 +271,7 @@ const ZH = {
271
271
  "The world itself brings in anyone this command calls for, after this turn: do not make them up yourself with expand_world.": "这个指令要求带入的人,由世界自己在本回合之后带入:不要自己用 expand_world 去造。",
272
272
  "Passages about making people up:": "关于凭空生成人物的段落:",
273
273
  "Cast:": "角色名单:",
274
+ "Scene picture": "场景图片",
274
275
  "Passage:": "文字:",
275
276
  "The player used the world's command /{word}: {description} It is part of the story, not an out-of-character command: play it in the story. The world raises and lowers the command's own flag itself: never change it.": "玩家使用了这个世界的指令 /{word}:{description} 这是故事的一部分,不是角色外的指令:在故事中演绎它。世界会自己升起和放下这个指令的标记:不要去改它。",
276
277
  "All the pieces of this card, in order:": "这张卡的所有片段,按顺序:",
@@ -347,4 +348,4 @@ function withoutExtension(value) {
347
348
  }
348
349
  export { translator as i, withoutExtension as n, languageOf as r, trimCharacters as t };
349
350
 
350
- //# sourceMappingURL=text-hiKTooVb.js.map
351
+ //# sourceMappingURL=text-B-HsLdb-.js.map
@@ -1,5 +1,5 @@
1
- import { D as finishOf, E as cutOff } from "./child-DTdY14S9.js";
2
- import { r as guardRepeatedCalls } from "./hooks-YXQZ9G2d.js";
1
+ import { D as finishOf, E as cutOff } from "./child-Bfj7-Iuo.js";
2
+ import { r as guardRepeatedCalls } from "./hooks-P_--KSFl.js";
3
3
  import { ReasoningEffortId, createUserMessage } from "@deepseek-ai/dsh-llm";
4
4
  // src/host/authoring/turn-guard.ts
5
5
  /**
@@ -49,4 +49,4 @@ function guardAuthoringTurns(ctx, prompts, languageOf, reasoning = () => "") {
49
49
  }
50
50
  export { guardAuthoringTurns as t };
51
51
 
52
- //# sourceMappingURL=turn-guard-DXMeAJdv.js.map
52
+ //# sourceMappingURL=turn-guard-D4YHE00t.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-agentic-roleplay/core",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
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",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=22",
42
- "dsh": ">=0.2.2-rc.1 <0.2.3"
42
+ "dsh": ">=0.2.2-rc.3 <0.2.3"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",
@@ -76,42 +76,42 @@
76
76
  ],
77
77
  "license": "GPL-3.0-only",
78
78
  "peerDependencies": {
79
- "@deepseek-ai/dsh": ">=0.2.2-rc.1 <0.2.3",
79
+ "@deepseek-ai/dsh": ">=0.2.2-rc.3 <0.2.3",
80
80
  "@deepseek-ai/schemastery": "^3.18.5"
81
81
  },
82
82
  "dependencies": {
83
- "@dsh-agentic-roleplay/state": "0.12.4"
83
+ "@dsh-agentic-roleplay/state": "0.12.6"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@deepseek-ai/cordis": "^4.1.0",
87
87
  "@deepseek-ai/cordis-plugin-loader": "^1.1.0",
88
- "@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.2.3",
89
- "@deepseek-ai/dsh-agent-loop": ">=0.2.2-rc.1 <0.2.3",
90
- "@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1 <0.2.3",
91
- "@deepseek-ai/dsh-client-store": ">=0.2.2-rc.1 <0.2.3",
92
- "@deepseek-ai/dsh-client-ui-chat": ">=0.2.2-rc.1 <0.2.3",
93
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.1 <0.2.3",
94
- "@deepseek-ai/dsh-client-ui-layout": ">=0.2.2-rc.1 <0.2.3",
95
- "@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.1 <0.2.3",
96
- "@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1 <0.2.3",
97
- "@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.2-rc.1 <0.2.3",
98
- "@deepseek-ai/dsh-client-ui-sidebar-right": ">=0.2.2-rc.1 <0.2.3",
99
- "@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1 <0.2.3",
100
- "@deepseek-ai/dsh-commands": ">=0.2.2-rc.1 <0.2.3",
101
- "@deepseek-ai/dsh-compaction": ">=0.2.2-rc.1 <0.2.3",
102
- "@deepseek-ai/dsh-compaction-basic": ">=0.2.2-rc.1 <0.2.3",
103
- "@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.2.3",
104
- "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1 <0.2.3",
105
- "@deepseek-ai/dsh-scope": ">=0.2.2-rc.1 <0.2.3",
106
- "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.2.3",
107
- "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.1 <0.2.3",
108
- "@deepseek-ai/dsh-subagent": ">=0.2.2-rc.1 <0.2.3",
109
- "@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.2.2-rc.1 <0.2.3",
110
- "@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.1 <0.2.3",
111
- "@deepseek-ai/dsh-token-meter": ">=0.2.2-rc.1 <0.2.3",
112
- "@deepseek-ai/dsh-tool-executor-native": ">=0.2.2-rc.1 <0.2.3",
113
- "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.2.3",
114
- "@deepseek-ai/dsh-user-approval": ">=0.2.2-rc.1 <0.2.3",
88
+ "@deepseek-ai/dsh-agent": ">=0.2.2-rc.3 <0.2.3",
89
+ "@deepseek-ai/dsh-agent-loop": ">=0.2.2-rc.3 <0.2.3",
90
+ "@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.3 <0.2.3",
91
+ "@deepseek-ai/dsh-client-store": ">=0.2.2-rc.3 <0.2.3",
92
+ "@deepseek-ai/dsh-client-ui-chat": ">=0.2.2-rc.3 <0.2.3",
93
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.3 <0.2.3",
94
+ "@deepseek-ai/dsh-client-ui-layout": ">=0.2.2-rc.3 <0.2.3",
95
+ "@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.3 <0.2.3",
96
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.3 <0.2.3",
97
+ "@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.2-rc.3 <0.2.3",
98
+ "@deepseek-ai/dsh-client-ui-sidebar-right": ">=0.2.2-rc.3 <0.2.3",
99
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.3 <0.2.3",
100
+ "@deepseek-ai/dsh-commands": ">=0.2.2-rc.3 <0.2.3",
101
+ "@deepseek-ai/dsh-compaction": ">=0.2.2-rc.3 <0.2.3",
102
+ "@deepseek-ai/dsh-compaction-basic": ">=0.2.2-rc.3 <0.2.3",
103
+ "@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.3 <0.2.3",
104
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.3 <0.2.3",
105
+ "@deepseek-ai/dsh-scope": ">=0.2.2-rc.3 <0.2.3",
106
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.3 <0.2.3",
107
+ "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.3 <0.2.3",
108
+ "@deepseek-ai/dsh-subagent": ">=0.2.2-rc.3 <0.2.3",
109
+ "@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.2.2-rc.3 <0.2.3",
110
+ "@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.3 <0.2.3",
111
+ "@deepseek-ai/dsh-token-meter": ">=0.2.2-rc.3 <0.2.3",
112
+ "@deepseek-ai/dsh-tool-executor-native": ">=0.2.2-rc.3 <0.2.3",
113
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.3 <0.2.3",
114
+ "@deepseek-ai/dsh-user-approval": ">=0.2.2-rc.3 <0.2.3",
115
115
  "@deepseek-ai/schemastery": "^3.18.5",
116
116
  "@dsh-ai-providers/core": "^0.7.0",
117
117
  "@types/node": "^22.20.0",