@dsh-agentic-roleplay/core 0.12.6 → 0.13.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 (46) hide show
  1. package/lib/{authoring-tools-BpkpGMSO.js → authoring-tools-CKV1UnN7.js} +1133 -139
  2. package/lib/authoring.js +340 -54
  3. package/lib/client.js +1675 -729
  4. package/lib/client.js.map +1 -1
  5. package/lib/compaction.js +2 -2
  6. package/lib/doctor.js +2 -2
  7. package/lib/{library-CnWOHwQl.js → gallery-CT5uj50b.js} +212 -7
  8. package/lib/{hooks-P_--KSFl.js → hooks-CnxV2uEh.js} +46 -17
  9. package/lib/images.js +3 -4
  10. package/lib/index.js +409 -26
  11. package/lib/{presenter-agent-BTpJxmGi.js → interpreter-Cz5qsuXk.js} +155 -64
  12. package/lib/{lorebook-author-tools-CWZ6WRN-.js → lorebook-author-tools-p3Nfpuxh.js} +6 -6
  13. package/lib/lorebook-authoring.js +5 -5
  14. package/lib/{narration-DAHmte8p.js → narration-CUZIXzab.js} +8 -2
  15. package/lib/orchestration.js +64 -19
  16. package/lib/{pack-jail-DSTyLhMc.js → pack-jail-KyZen_gy.js} +19 -13
  17. package/lib/{packs-D9_N8kDF.js → packs-DU171pDX.js} +2 -2
  18. package/lib/presenter-agent-CwDg0WE8.js +59 -0
  19. package/lib/{preset-B69AXtip.js → preset-BO8iWQ-n.js} +3 -3
  20. package/lib/{preset-author-tools-BJtt7D0J.js → preset-author-tools-C83shASm.js} +6 -6
  21. package/lib/preset-authoring.js +5 -5
  22. package/lib/{reflection-2uzE3U-v.js → reflection-CXS87Di3.js} +8 -7
  23. package/lib/{serial-DnVqMDe5.js → serial-xcAG57p_.js} +199 -43
  24. package/lib/{text-B-HsLdb-.js → text-KnqhN_Zv.js} +4 -1
  25. package/lib/{turn-guard-D4YHE00t.js → turn-guard-CfsGepCg.js} +2 -2
  26. package/package.json +3 -2
  27. package/prompts/en/import/finish-ok.md +2 -0
  28. package/prompts/en/import/next-stage-go.md +1 -0
  29. package/prompts/en/import/next-stage-paused.md +1 -0
  30. package/prompts/en/import/next-survey-paused.md +1 -0
  31. package/prompts/en/import/notice-staged.md +5 -0
  32. package/prompts/en/import/pause-stages.md +1 -0
  33. package/prompts/en/import/pause-survey.md +1 -0
  34. package/prompts/en/roleplay/image-worth.md +5 -0
  35. package/prompts/en/world/procedure.md +3 -0
  36. package/prompts/zh/import/finish-ok.md +2 -0
  37. package/prompts/zh/import/next-stage-go.md +1 -0
  38. package/prompts/zh/import/next-stage-paused.md +1 -0
  39. package/prompts/zh/import/next-survey-paused.md +1 -0
  40. package/prompts/zh/import/notice-staged.md +5 -0
  41. package/prompts/zh/import/pause-stages.md +1 -0
  42. package/prompts/zh/import/pause-survey.md +1 -0
  43. package/prompts/zh/roleplay/image-worth.md +5 -0
  44. package/prompts/zh/world/procedure.md +3 -0
  45. package/lib/gallery-D0h0X7Jy.js +0 -190
  46. package/lib/generator-CAJkevKl.js +0 -150
package/lib/client.js CHANGED
@@ -404,19 +404,19 @@ window.__ModuleLoader__.load({
404
404
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUsers, { size });
405
405
  }
406
406
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/page-tabs/PageTabs.module.css.mjs
407
- const css$53 = ".rp_LrKukW_tabs{scrollbar-width:none;gap:24px;margin-bottom:-1px;display:flex;overflow-x:auto}.rp_LrKukW_tabs::-webkit-scrollbar{display:none}.rp_LrKukW_tab{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:0;margin:0;padding:8px 0;font-size:13px;line-height:20px;box-shadow:inset 0 -2px #0000}.rp_LrKukW_tab:hover{color:var(--dsw-alias-label-primary)}.rp_LrKukW_tab[aria-selected=true]{color:var(--dsw-alias-state-business-primary);font-weight:500;box-shadow:inset 0 -2px}.rp_LrKukW_tab:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}";
408
- const key$53 = "src/client/widgets/page-tabs/PageTabs.module.css";
409
- let tag$53 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$53) + "]");
410
- if (tag$53 === null) {
411
- tag$53 = document.createElement("style");
412
- tag$53.dataset.plugin = "@dsh-agentic-roleplay/core";
413
- tag$53.dataset.pluginCss = key$53;
414
- document.head.appendChild(tag$53);
415
- }
416
- tag$53.textContent = css$53;
407
+ const css$54 = ".rp_LrKukW_tabs{scrollbar-width:none;gap:24px;margin-bottom:-1px;display:flex;overflow-x:auto}.rp_LrKukW_tabs::-webkit-scrollbar{display:none}.rp_LrKukW_tab{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:0;margin:0;padding:8px 0;font-size:13px;line-height:20px;box-shadow:inset 0 -2px #0000}.rp_LrKukW_tab:hover{color:var(--dsw-alias-label-primary)}.rp_LrKukW_tab[aria-selected=true]{color:var(--dsw-alias-state-business-primary);font-weight:500;box-shadow:inset 0 -2px}.rp_LrKukW_tab:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}";
408
+ const key$54 = "src/client/widgets/page-tabs/PageTabs.module.css";
409
+ let tag$54 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$54) + "]");
410
+ if (tag$54 === null) {
411
+ tag$54 = document.createElement("style");
412
+ tag$54.dataset.plugin = "@dsh-agentic-roleplay/core";
413
+ tag$54.dataset.pluginCss = key$54;
414
+ document.head.appendChild(tag$54);
415
+ }
416
+ tag$54.textContent = css$54;
417
417
  var PageTabs_module_css_default = {
418
- "tabs": "rp_LrKukW_tabs",
419
- "tab": "rp_LrKukW_tab"
418
+ "tab": "rp_LrKukW_tab",
419
+ "tabs": "rp_LrKukW_tabs"
420
420
  };
421
421
  // src/client/widgets/page-tabs/PageTabs.tsx
422
422
  /** Underlined text tabs; arrow keys, Home and End move between them. */
@@ -458,16 +458,16 @@ window.__ModuleLoader__.load({
458
458
  });
459
459
  }
460
460
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/RoleplayPanel.module.css.mjs
461
- const css$52 = ".rp_ua5gBa_panel{min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;display:flex}.rp_ua5gBa_header{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;padding:12px 24px 0}.rp_ua5gBa_title{margin:0 0 4px;font-size:14px;font-weight:500;line-height:22px}.rp_ua5gBa_body{flex-direction:column;flex:1 1 0;min-height:0;padding:12px 24px 16px;display:flex}@media (width<=640px){.rp_ua5gBa_header,.rp_ua5gBa_body{padding-inline:16px}}";
462
- const key$52 = "src/client/panel/RoleplayPanel.module.css";
463
- let tag$52 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$52) + "]");
464
- if (tag$52 === null) {
465
- tag$52 = document.createElement("style");
466
- tag$52.dataset.plugin = "@dsh-agentic-roleplay/core";
467
- tag$52.dataset.pluginCss = key$52;
468
- document.head.appendChild(tag$52);
461
+ const css$53 = ".rp_ua5gBa_panel{min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;display:flex}.rp_ua5gBa_header{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;padding:12px 24px 0}.rp_ua5gBa_title{margin:0 0 4px;font-size:14px;font-weight:500;line-height:22px}.rp_ua5gBa_body{flex-direction:column;flex:1 1 0;min-height:0;padding:12px 24px 16px;display:flex}@media (width<=640px){.rp_ua5gBa_header,.rp_ua5gBa_body{padding-inline:16px}}";
462
+ const key$53 = "src/client/panel/RoleplayPanel.module.css";
463
+ let tag$53 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$53) + "]");
464
+ if (tag$53 === null) {
465
+ tag$53 = document.createElement("style");
466
+ tag$53.dataset.plugin = "@dsh-agentic-roleplay/core";
467
+ tag$53.dataset.pluginCss = key$53;
468
+ document.head.appendChild(tag$53);
469
469
  }
470
- tag$52.textContent = css$52;
470
+ tag$53.textContent = css$53;
471
471
  var RoleplayPanel_module_css_default = {
472
472
  "title": "rp_ua5gBa_title",
473
473
  "body": "rp_ua5gBa_body",
@@ -517,7 +517,7 @@ window.__ModuleLoader__.load({
517
517
  });
518
518
  }
519
519
  // src/client/panel/locales.ts
520
- const dictionaries$28 = {
520
+ const dictionaries$29 = {
521
521
  en: {
522
522
  label: "Role Play",
523
523
  heading: "DSH Agentic Role Play",
@@ -678,7 +678,7 @@ window.__ModuleLoader__.load({
678
678
  /** Adds the Role Play entry to the sidebar and the main panel it opens. */
679
679
  function registerPanel(ctx) {
680
680
  const t = ctx.locale.bind(NAMESPACE$17);
681
- ctx.effect(() => ctx.locale.register(NAMESPACE$17, dictionaries$28), "roleplay: panel dictionaries");
681
+ ctx.effect(() => ctx.locale.register(NAMESPACE$17, dictionaries$29), "roleplay: panel dictionaries");
682
682
  const pages = createPagesSource(ctx);
683
683
  ctx.effect(() => pages.start(), "roleplay: page list");
684
684
  const handle = createPanelStore();
@@ -844,7 +844,7 @@ window.__ModuleLoader__.load({
844
844
  return `${trimCharacters(baseUrl.trim(), "/", "end")}/versions/${encodeURIComponent(versionId)}/download`;
845
845
  }
846
846
  // src/client/pages/catalogue/catalogue-controller.ts
847
- const messageOf$15 = (error) => error instanceof Error ? error.message : String(error);
847
+ const messageOf$16 = (error) => error instanceof Error ? error.message : String(error);
848
848
  /** The configured catalogues as the host sees them, read again whenever the settings change. */
849
849
  var CatalogueController = class {
850
850
  openChat;
@@ -885,7 +885,7 @@ window.__ModuleLoader__.load({
885
885
  } catch (error) {
886
886
  if (this.abort.signal.aborted) return;
887
887
  this.store.update((draft) => {
888
- draft.error = messageOf$15(error);
888
+ draft.error = messageOf$16(error);
889
889
  if (draft.status === "loading") draft.status = "failed";
890
890
  });
891
891
  }
@@ -895,24 +895,24 @@ window.__ModuleLoader__.load({
895
895
  }
896
896
  };
897
897
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Button.module.css.mjs
898
- const css$51 = ".rp_wwotfa_rpButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;color:var(--dsw-alias-label-primary);background:0 0;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.rp_wwotfa_rpButton:disabled{cursor:not-allowed;opacity:.4}.rp_wwotfa_rpMd{height:36px}.rp_wwotfa_rpSm{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.rp_wwotfa_rpPrimary{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}@media (hover:hover){.rp_wwotfa_rpPrimary:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.rp_wwotfa_rpGhost:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.rp_wwotfa_rpGhost:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}.rp_wwotfa_rpOutline{box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsh-button-outline-color,var(--dsw-alias-border-l3));background:0 0;border:.5px solid #0000}@media (hover:hover){.rp_wwotfa_rpOutline:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.rp_wwotfa_rpToolbar{background:var(--dsw-alias-button-tool-bar-fill)}@media (hover:hover){.rp_wwotfa_rpToolbar:hover:not(:disabled){background:var(--dsw-alias-button-tool-bar-hover)}}.rp_wwotfa_rpIcon{justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}";
899
- const key$51 = "src/client/ui/Button.module.css";
900
- let tag$51 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$51) + "]");
901
- if (tag$51 === null) {
902
- tag$51 = document.createElement("style");
903
- tag$51.dataset.plugin = "@dsh-agentic-roleplay/core";
904
- tag$51.dataset.pluginCss = key$51;
905
- document.head.appendChild(tag$51);
898
+ const css$52 = ".rp_wwotfa_rpButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;color:var(--dsw-alias-label-primary);background:0 0;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.rp_wwotfa_rpButton:disabled{cursor:not-allowed;opacity:.4}.rp_wwotfa_rpMd{height:36px}.rp_wwotfa_rpSm{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.rp_wwotfa_rpPrimary{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}@media (hover:hover){.rp_wwotfa_rpPrimary:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.rp_wwotfa_rpGhost:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.rp_wwotfa_rpGhost:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}.rp_wwotfa_rpOutline{box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsh-button-outline-color,var(--dsw-alias-border-l3));background:0 0;border:.5px solid #0000}@media (hover:hover){.rp_wwotfa_rpOutline:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.rp_wwotfa_rpToolbar{background:var(--dsw-alias-button-tool-bar-fill)}@media (hover:hover){.rp_wwotfa_rpToolbar:hover:not(:disabled){background:var(--dsw-alias-button-tool-bar-hover)}}.rp_wwotfa_rpIcon{justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}";
899
+ const key$52 = "src/client/ui/Button.module.css";
900
+ let tag$52 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$52) + "]");
901
+ if (tag$52 === null) {
902
+ tag$52 = document.createElement("style");
903
+ tag$52.dataset.plugin = "@dsh-agentic-roleplay/core";
904
+ tag$52.dataset.pluginCss = key$52;
905
+ document.head.appendChild(tag$52);
906
906
  }
907
- tag$51.textContent = css$51;
907
+ tag$52.textContent = css$52;
908
908
  var Button_module_css_default = {
909
- "rpSm": "rp_wwotfa_rpSm",
910
- "rpGhost": "rp_wwotfa_rpGhost",
911
- "rpToolbar": "rp_wwotfa_rpToolbar",
912
909
  "rpButton": "rp_wwotfa_rpButton",
913
- "rpPrimary": "rp_wwotfa_rpPrimary",
914
- "rpMd": "rp_wwotfa_rpMd",
915
910
  "rpIcon": "rp_wwotfa_rpIcon",
911
+ "rpToolbar": "rp_wwotfa_rpToolbar",
912
+ "rpMd": "rp_wwotfa_rpMd",
913
+ "rpGhost": "rp_wwotfa_rpGhost",
914
+ "rpSm": "rp_wwotfa_rpSm",
915
+ "rpPrimary": "rp_wwotfa_rpPrimary",
916
916
  "rpOutline": "rp_wwotfa_rpOutline"
917
917
  };
918
918
  // src/client/ui/Button.tsx
@@ -936,16 +936,16 @@ window.__ModuleLoader__.load({
936
936
  });
937
937
  });
938
938
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Tag.module.css.mjs
939
- const css$50 = ".rp_R752CG_rpTag{corner-shape:round;white-space:nowrap;border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.rp_R752CG_rpTag[data-tone=outline]{border:.5px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-tertiary)}.rp_R752CG_rpTag[data-tone=solid]{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}.rp_R752CG_rpTag[data-tone=neutral]{background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary)}.rp_R752CG_rpTag[data-tone=quiet]{color:var(--dsw-alias-label-tertiary)}.rp_R752CG_rpTag[data-tone=success]{background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 10%, transparent);color:var(--dsw-alias-state-success-primary)}.rp_R752CG_rpTag[data-tone=info]{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);color:var(--dsw-alias-state-business-primary)}.rp_R752CG_rpTag[data-tone=warning]{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 12%, transparent);color:var(--dsw-alias-state-warn-primary)}.rp_R752CG_rpTag[data-tone=danger]{background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);color:var(--dsw-alias-state-error-primary)}";
940
- const key$50 = "src/client/ui/Tag.module.css";
941
- let tag$50 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$50) + "]");
942
- if (tag$50 === null) {
943
- tag$50 = document.createElement("style");
944
- tag$50.dataset.plugin = "@dsh-agentic-roleplay/core";
945
- tag$50.dataset.pluginCss = key$50;
946
- document.head.appendChild(tag$50);
939
+ const css$51 = ".rp_R752CG_rpTag{corner-shape:round;white-space:nowrap;border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.rp_R752CG_rpTag[data-tone=outline]{border:.5px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-tertiary)}.rp_R752CG_rpTag[data-tone=solid]{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}.rp_R752CG_rpTag[data-tone=neutral]{background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary)}.rp_R752CG_rpTag[data-tone=quiet]{color:var(--dsw-alias-label-tertiary)}.rp_R752CG_rpTag[data-tone=success]{background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 10%, transparent);color:var(--dsw-alias-state-success-primary)}.rp_R752CG_rpTag[data-tone=info]{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);color:var(--dsw-alias-state-business-primary)}.rp_R752CG_rpTag[data-tone=warning]{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 12%, transparent);color:var(--dsw-alias-state-warn-primary)}.rp_R752CG_rpTag[data-tone=danger]{background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);color:var(--dsw-alias-state-error-primary)}";
940
+ const key$51 = "src/client/ui/Tag.module.css";
941
+ let tag$51 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$51) + "]");
942
+ if (tag$51 === null) {
943
+ tag$51 = document.createElement("style");
944
+ tag$51.dataset.plugin = "@dsh-agentic-roleplay/core";
945
+ tag$51.dataset.pluginCss = key$51;
946
+ document.head.appendChild(tag$51);
947
947
  }
948
- tag$50.textContent = css$50;
948
+ tag$51.textContent = css$51;
949
949
  var Tag_module_css_default = { "rpTag": "rp_R752CG_rpTag" };
950
950
  // src/client/ui/Tag.tsx
951
951
  /** Render a read-only tag; the label belongs to the render site. */
@@ -958,16 +958,16 @@ window.__ModuleLoader__.load({
958
958
  });
959
959
  }
960
960
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Tooltip.module.css.mjs
961
- const css$49 = ".rp_ucrTbq_bubble{z-index:1200;box-sizing:border-box;border-radius:var(--dsw-radius-sm,6px);background:var(--dsw-alias-bg-layer-3,#202020f5);color:var(--dsw-alias-label-primary,white);box-shadow:var(--dsw-elevation-medium,0 4px 12px #0000003d);pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere;padding:6px 10px;font-size:12px;line-height:18px;position:fixed}";
962
- const key$49 = "src/client/ui/Tooltip.module.css";
963
- let tag$49 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$49) + "]");
964
- if (tag$49 === null) {
965
- tag$49 = document.createElement("style");
966
- tag$49.dataset.plugin = "@dsh-agentic-roleplay/core";
967
- tag$49.dataset.pluginCss = key$49;
968
- document.head.appendChild(tag$49);
961
+ const css$50 = ".rp_ucrTbq_bubble{z-index:1200;box-sizing:border-box;border-radius:var(--dsw-radius-sm,6px);background:var(--dsw-alias-bg-layer-3,#202020f5);color:var(--dsw-alias-label-primary,white);box-shadow:var(--dsw-elevation-medium,0 4px 12px #0000003d);pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere;padding:6px 10px;font-size:12px;line-height:18px;position:fixed}";
962
+ const key$50 = "src/client/ui/Tooltip.module.css";
963
+ let tag$50 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$50) + "]");
964
+ if (tag$50 === null) {
965
+ tag$50 = document.createElement("style");
966
+ tag$50.dataset.plugin = "@dsh-agentic-roleplay/core";
967
+ tag$50.dataset.pluginCss = key$50;
968
+ document.head.appendChild(tag$50);
969
969
  }
970
- tag$49.textContent = css$49;
970
+ tag$50.textContent = css$50;
971
971
  var Tooltip_module_css_default = { "bubble": "rp_ucrTbq_bubble" };
972
972
  /**
973
973
  * The viewport as the page measures it.
@@ -1134,19 +1134,19 @@ window.__ModuleLoader__.load({
1134
1134
  })] });
1135
1135
  }
1136
1136
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Switch.module.css.mjs
1137
- const css$48 = ".rp_7MP8na_rpSwitch{box-sizing:border-box;corner-shape:round;background:var(--dsw-alias-border-l3);cursor:pointer;border:0;border-radius:999px;flex:none;width:36px;height:20px;padding:2px;position:relative}.rp_7MP8na_rpSwitch[aria-checked=true]{background:var(--dsw-alias-brand-primary)}.rp_7MP8na_rpSwitch:disabled{cursor:default;opacity:.5}.rp_7MP8na_rpSwitch:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_7MP8na_rpThumb{corner-shape:round;background:var(--dsw-alias-label-primary-foreground);border-radius:50%;width:16px;height:16px;transition:transform .12s;display:block}.rp_7MP8na_rpSwitch[aria-checked=false] .rp_7MP8na_rpThumb{background:var(--dsw-alias-switch-thumb)}.rp_7MP8na_rpSwitch[aria-checked=true] .rp_7MP8na_rpThumb{transform:translate(16px)}";
1138
- const key$48 = "src/client/ui/Switch.module.css";
1139
- let tag$48 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$48) + "]");
1140
- if (tag$48 === null) {
1141
- tag$48 = document.createElement("style");
1142
- tag$48.dataset.plugin = "@dsh-agentic-roleplay/core";
1143
- tag$48.dataset.pluginCss = key$48;
1144
- document.head.appendChild(tag$48);
1137
+ const css$49 = ".rp_7MP8na_rpSwitch{box-sizing:border-box;corner-shape:round;background:var(--dsw-alias-border-l3);cursor:pointer;border:0;border-radius:999px;flex:none;width:36px;height:20px;padding:2px;position:relative}.rp_7MP8na_rpSwitch[aria-checked=true]{background:var(--dsw-alias-brand-primary)}.rp_7MP8na_rpSwitch:disabled{cursor:default;opacity:.5}.rp_7MP8na_rpSwitch:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_7MP8na_rpThumb{corner-shape:round;background:var(--dsw-alias-label-primary-foreground);border-radius:50%;width:16px;height:16px;transition:transform .12s;display:block}.rp_7MP8na_rpSwitch[aria-checked=false] .rp_7MP8na_rpThumb{background:var(--dsw-alias-switch-thumb)}.rp_7MP8na_rpSwitch[aria-checked=true] .rp_7MP8na_rpThumb{transform:translate(16px)}";
1138
+ const key$49 = "src/client/ui/Switch.module.css";
1139
+ let tag$49 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$49) + "]");
1140
+ if (tag$49 === null) {
1141
+ tag$49 = document.createElement("style");
1142
+ tag$49.dataset.plugin = "@dsh-agentic-roleplay/core";
1143
+ tag$49.dataset.pluginCss = key$49;
1144
+ document.head.appendChild(tag$49);
1145
1145
  }
1146
- tag$48.textContent = css$48;
1146
+ tag$49.textContent = css$49;
1147
1147
  var Switch_module_css_default = {
1148
- "rpThumb": "rp_7MP8na_rpThumb",
1149
- "rpSwitch": "rp_7MP8na_rpSwitch"
1148
+ "rpSwitch": "rp_7MP8na_rpSwitch",
1149
+ "rpThumb": "rp_7MP8na_rpThumb"
1150
1150
  };
1151
1151
  // src/client/ui/Switch.tsx
1152
1152
  /**
@@ -1169,20 +1169,20 @@ window.__ModuleLoader__.load({
1169
1169
  });
1170
1170
  }
1171
1171
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Input.module.css.mjs
1172
- const css$47 = ".rp_QU88dW_rpInputWrap{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);align-items:center;gap:6px;height:32px;padding:0 8px;display:inline-flex}.rp_QU88dW_rpInputWrap:focus-within{border-color:var(--dsw-alias-state-business-primary)}.rp_QU88dW_rpInputIcon{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;display:inline-flex}.rp_QU88dW_rpInput{min-width:0;color:var(--dsw-alias-label-primary);background:0 0;border:none;outline:none;flex:1;font-size:14px;line-height:22px}.rp_QU88dW_rpInput::placeholder{color:var(--dsw-alias-label-dimmed)}";
1173
- const key$47 = "src/client/ui/Input.module.css";
1174
- let tag$47 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$47) + "]");
1175
- if (tag$47 === null) {
1176
- tag$47 = document.createElement("style");
1177
- tag$47.dataset.plugin = "@dsh-agentic-roleplay/core";
1178
- tag$47.dataset.pluginCss = key$47;
1179
- document.head.appendChild(tag$47);
1172
+ const css$48 = ".rp_QU88dW_rpInputWrap{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);align-items:center;gap:6px;height:32px;padding:0 8px;display:inline-flex}.rp_QU88dW_rpInputWrap:focus-within{border-color:var(--dsw-alias-state-business-primary)}.rp_QU88dW_rpInputIcon{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;display:inline-flex}.rp_QU88dW_rpInput{min-width:0;color:var(--dsw-alias-label-primary);background:0 0;border:none;outline:none;flex:1;font-size:14px;line-height:22px}.rp_QU88dW_rpInput::placeholder{color:var(--dsw-alias-label-dimmed)}";
1173
+ const key$48 = "src/client/ui/Input.module.css";
1174
+ let tag$48 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$48) + "]");
1175
+ if (tag$48 === null) {
1176
+ tag$48 = document.createElement("style");
1177
+ tag$48.dataset.plugin = "@dsh-agentic-roleplay/core";
1178
+ tag$48.dataset.pluginCss = key$48;
1179
+ document.head.appendChild(tag$48);
1180
1180
  }
1181
- tag$47.textContent = css$47;
1181
+ tag$48.textContent = css$48;
1182
1182
  var Input_module_css_default = {
1183
- "rpInputIcon": "rp_QU88dW_rpInputIcon",
1183
+ "rpInputWrap": "rp_QU88dW_rpInputWrap",
1184
1184
  "rpInput": "rp_QU88dW_rpInput",
1185
- "rpInputWrap": "rp_QU88dW_rpInputWrap"
1185
+ "rpInputIcon": "rp_QU88dW_rpInputIcon"
1186
1186
  };
1187
1187
  // src/client/ui/Input.tsx
1188
1188
  /** Render a text input with an optional leading icon; input attributes pass through. */
@@ -1199,17 +1199,19 @@ window.__ModuleLoader__.load({
1199
1199
  })]
1200
1200
  });
1201
1201
  });
1202
+ /** What the pause is for a card: the choice, or the default for its size. */
1203
+ const pauseOf = (choices, entries) => choices.pause ?? (entries >= 30 ? "stages" : "never");
1202
1204
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/language-select/LanguageSelect.module.css.mjs
1203
- const css$46 = ".rp_uOuCXG_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px}.rp_uOuCXG_compact{width:auto;min-width:110px}";
1204
- const key$46 = "src/client/widgets/language-select/LanguageSelect.module.css";
1205
- let tag$46 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$46) + "]");
1206
- if (tag$46 === null) {
1207
- tag$46 = document.createElement("style");
1208
- tag$46.dataset.plugin = "@dsh-agentic-roleplay/core";
1209
- tag$46.dataset.pluginCss = key$46;
1210
- document.head.appendChild(tag$46);
1205
+ const css$47 = ".rp_uOuCXG_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px}.rp_uOuCXG_compact{width:auto;min-width:110px}";
1206
+ const key$47 = "src/client/widgets/language-select/LanguageSelect.module.css";
1207
+ let tag$47 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$47) + "]");
1208
+ if (tag$47 === null) {
1209
+ tag$47 = document.createElement("style");
1210
+ tag$47.dataset.plugin = "@dsh-agentic-roleplay/core";
1211
+ tag$47.dataset.pluginCss = key$47;
1212
+ document.head.appendChild(tag$47);
1211
1213
  }
1212
- tag$46.textContent = css$46;
1214
+ tag$47.textContent = css$47;
1213
1215
  var LanguageSelect_module_css_default = {
1214
1216
  "select": "rp_uOuCXG_select",
1215
1217
  "compact": "rp_uOuCXG_compact"
@@ -1262,45 +1264,47 @@ window.__ModuleLoader__.load({
1262
1264
  });
1263
1265
  }
1264
1266
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/import-card/ImportCard.module.css.mjs
1265
- const css$45 = ".rp_5cvtma_page{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5cvtma_header{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_5cvtma_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_5cvtma_space{flex:auto}.rp_5cvtma_error{color:var(--dsw-alias-state-error-primary);margin:0;padding:8px 16px;font-size:12px}.rp_5cvtma_body{box-sizing:border-box;flex-direction:column;flex:1 1 0;gap:20px;min-height:0;padding:20px 24px 40px;display:flex;overflow-y:auto}.rp_5cvtma_body>*{flex:none;width:100%;max-width:860px}.rp_5cvtma_top{align-items:flex-start;gap:20px;display:flex}.rp_5cvtma_picture{object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:0 0 120px;width:120px;height:160px}.rp_5cvtma_noPicture{box-sizing:border-box;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;font-size:12px;display:flex}.rp_5cvtma_about{flex-direction:column;flex:1 1 0;gap:8px;min-width:0;display:flex}.rp_5cvtma_label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:4px;font-size:12px;display:flex}.rp_5cvtma_tags{flex-wrap:wrap;gap:6px;display:flex}.rp_5cvtma_note{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_5cvtma_section{flex-direction:column;gap:8px;display:flex}.rp_5cvtma_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_5cvtma_row{align-items:center;gap:8px;display:flex}.rp_5cvtma_field,.rp_5cvtma_entry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg)}.rp_5cvtma_fieldHead,.rp_5cvtma_entryHead{box-sizing:border-box;width:100%;font:inherit;text-align:left;color:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:8px 10px;display:flex}.rp_5cvtma_fieldHead{cursor:pointer}.rp_5cvtma_fieldTitle,.rp_5cvtma_entryTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px}.rp_5cvtma_entryTitle{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.rp_5cvtma_fieldMeta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5cvtma_field .rp_5cvtma_note,.rp_5cvtma_entry .rp_5cvtma_note{padding:0 10px 6px}.rp_5cvtma_text{white-space:pre-wrap;word-break:break-word;max-height:320px;font:inherit;color:var(--dsw-alias-label-secondary);border-top:.5px solid var(--dsw-alias-border-l4);margin:0;padding:8px 10px 10px;font-size:12px;line-height:18px;overflow:auto}.rp_5cvtma_entryOff .rp_5cvtma_entryTitle{color:var(--dsw-alias-label-tertiary);text-decoration:line-through}.rp_5cvtma_choice{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}@media (width<=640px){.rp_5cvtma_body{padding-inline:16px}.rp_5cvtma_top{flex-direction:column}.rp_5cvtma_picture{width:96px;height:128px}.rp_5cvtma_row{flex-wrap:wrap}}.rp_5cvtma_choice input{margin-top:3px}.rp_5cvtma_choiceText{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5cvtma_preview{white-space:pre-wrap;word-break:break-word;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}";
1266
- const key$45 = "src/client/widgets/import-card/ImportCard.module.css";
1267
- let tag$45 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$45) + "]");
1268
- if (tag$45 === null) {
1269
- tag$45 = document.createElement("style");
1270
- tag$45.dataset.plugin = "@dsh-agentic-roleplay/core";
1271
- tag$45.dataset.pluginCss = key$45;
1272
- document.head.appendChild(tag$45);
1267
+ const css$46 = ".rp_5cvtma_page{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5cvtma_header{border-bottom:.5px solid var(--dsw-alias-border-l3);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_5cvtma_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_5cvtma_space{flex:auto;min-width:8px}.rp_5cvtma_error{color:var(--dsw-alias-state-error-primary);margin:0;padding:8px 16px;font-size:12px}.rp_5cvtma_body{box-sizing:border-box;flex-direction:column;flex:1 1 0;gap:20px;min-height:0;padding:20px 24px 40px;display:flex;overflow-y:auto}.rp_5cvtma_body>*{flex:none;width:100%;max-width:860px}.rp_5cvtma_top{align-items:flex-start;gap:20px;display:flex}.rp_5cvtma_picture{object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:0 0 120px;width:120px;height:160px}.rp_5cvtma_noPicture{box-sizing:border-box;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;font-size:12px;display:flex}.rp_5cvtma_about{flex-direction:column;flex:1 1 0;gap:8px;min-width:0;display:flex}.rp_5cvtma_label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:4px;font-size:12px;display:flex}.rp_5cvtma_tags{flex-wrap:wrap;gap:6px;display:flex}.rp_5cvtma_note{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_5cvtma_links{overflow-wrap:anywhere;padding-inline-start:20px}.rp_5cvtma_section{flex-direction:column;gap:8px;display:flex}.rp_5cvtma_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_5cvtma_row{align-items:center;gap:8px;display:flex}.rp_5cvtma_field,.rp_5cvtma_entry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg)}.rp_5cvtma_fieldHead,.rp_5cvtma_entryHead{box-sizing:border-box;width:100%;font:inherit;text-align:left;color:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:8px 10px;display:flex}.rp_5cvtma_fieldHead{cursor:pointer}.rp_5cvtma_fieldTitle,.rp_5cvtma_entryTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px}.rp_5cvtma_entryTitle{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.rp_5cvtma_fieldMeta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5cvtma_field .rp_5cvtma_note,.rp_5cvtma_entry .rp_5cvtma_note{padding:0 10px 6px}.rp_5cvtma_text{white-space:pre-wrap;word-break:break-word;max-height:320px;font:inherit;color:var(--dsw-alias-label-secondary);border-top:.5px solid var(--dsw-alias-border-l4);margin:0;padding:8px 10px 10px;font-size:12px;line-height:18px;overflow:auto}.rp_5cvtma_entryOff .rp_5cvtma_entryTitle{color:var(--dsw-alias-label-tertiary);text-decoration:line-through}.rp_5cvtma_choice{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}@media (width<=640px){.rp_5cvtma_body{padding-inline:16px}.rp_5cvtma_top{flex-direction:column}.rp_5cvtma_picture{width:96px;height:128px}.rp_5cvtma_row{flex-wrap:wrap}}.rp_5cvtma_choice input{margin-top:3px}.rp_5cvtma_choiceText{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5cvtma_preview{white-space:pre-wrap;word-break:break-word;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_5cvtma_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px;font-size:12px}";
1268
+ const key$46 = "src/client/widgets/import-card/ImportCard.module.css";
1269
+ let tag$46 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$46) + "]");
1270
+ if (tag$46 === null) {
1271
+ tag$46 = document.createElement("style");
1272
+ tag$46.dataset.plugin = "@dsh-agentic-roleplay/core";
1273
+ tag$46.dataset.pluginCss = key$46;
1274
+ document.head.appendChild(tag$46);
1273
1275
  }
1274
- tag$45.textContent = css$45;
1276
+ tag$46.textContent = css$46;
1275
1277
  var ImportCard_module_css_default = {
1278
+ "entryHead": "rp_5cvtma_entryHead",
1279
+ "fieldMeta": "rp_5cvtma_fieldMeta",
1280
+ "body": "rp_5cvtma_body",
1281
+ "label": "rp_5cvtma_label",
1282
+ "select": "rp_5cvtma_select",
1276
1283
  "title": "rp_5cvtma_title",
1277
- "top": "rp_5cvtma_top",
1284
+ "space": "rp_5cvtma_space",
1278
1285
  "heading": "rp_5cvtma_heading",
1286
+ "row": "rp_5cvtma_row",
1287
+ "error": "rp_5cvtma_error",
1288
+ "tags": "rp_5cvtma_tags",
1289
+ "page": "rp_5cvtma_page",
1290
+ "links": "rp_5cvtma_links",
1279
1291
  "field": "rp_5cvtma_field",
1280
- "fieldHead": "rp_5cvtma_fieldHead",
1281
- "fieldMeta": "rp_5cvtma_fieldMeta",
1282
- "choiceText": "rp_5cvtma_choiceText",
1283
- "label": "rp_5cvtma_label",
1284
- "entryOff": "rp_5cvtma_entryOff",
1285
- "body": "rp_5cvtma_body",
1286
- "preview": "rp_5cvtma_preview",
1287
- "note": "rp_5cvtma_note",
1292
+ "top": "rp_5cvtma_top",
1293
+ "noPicture": "rp_5cvtma_noPicture",
1294
+ "choice": "rp_5cvtma_choice",
1295
+ "header": "rp_5cvtma_header",
1296
+ "entry": "rp_5cvtma_entry",
1297
+ "text": "rp_5cvtma_text",
1288
1298
  "about": "rp_5cvtma_about",
1289
1299
  "entryTitle": "rp_5cvtma_entryTitle",
1290
- "text": "rp_5cvtma_text",
1291
1300
  "picture": "rp_5cvtma_picture",
1292
- "fieldTitle": "rp_5cvtma_fieldTitle",
1301
+ "note": "rp_5cvtma_note",
1302
+ "entryOff": "rp_5cvtma_entryOff",
1303
+ "choiceText": "rp_5cvtma_choiceText",
1293
1304
  "section": "rp_5cvtma_section",
1294
- "entryHead": "rp_5cvtma_entryHead",
1295
- "choice": "rp_5cvtma_choice",
1296
- "row": "rp_5cvtma_row",
1297
- "entry": "rp_5cvtma_entry",
1298
- "header": "rp_5cvtma_header",
1299
- "tags": "rp_5cvtma_tags",
1300
- "page": "rp_5cvtma_page",
1301
- "error": "rp_5cvtma_error",
1302
- "space": "rp_5cvtma_space",
1303
- "noPicture": "rp_5cvtma_noPicture"
1305
+ "fieldHead": "rp_5cvtma_fieldHead",
1306
+ "fieldTitle": "rp_5cvtma_fieldTitle",
1307
+ "preview": "rp_5cvtma_preview"
1304
1308
  };
1305
1309
  // src/client/widgets/import-card/ImportCard.tsx
1306
1310
  const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
@@ -1351,6 +1355,8 @@ window.__ModuleLoader__.load({
1351
1355
  const [name, setName] = (0, react.useState)(preview.choices.name);
1352
1356
  const [off, setOff] = (0, react.useState)(() => new Set(preview.choices.disabledEntries));
1353
1357
  const [opening, setOpening] = (0, react.useState)(preview.choices.opening);
1358
+ const [fetchPictures, setFetchPictures] = (0, react.useState)(preview.choices.fetchPictures !== false);
1359
+ const [pause, setPause] = (0, react.useState)(() => pauseOf(preview.choices, entries.length));
1354
1360
  const [open, setOpen] = (0, react.useState)(/* @__PURE__ */ new Set());
1355
1361
  const [update, setUpdate] = (0, react.useState)(() => initialUpdate ?? defaultTarget(preview.targets));
1356
1362
  const [promptLanguage, setPromptLanguage] = (0, react.useState)(() => primaryLanguage(language));
@@ -1385,7 +1391,9 @@ window.__ModuleLoader__.load({
1385
1391
  const choices = () => ({
1386
1392
  name: name.trim(),
1387
1393
  disabledEntries: [...off],
1388
- opening
1394
+ opening,
1395
+ pause,
1396
+ ...fetchPictures ? {} : { fetchPictures: false }
1389
1397
  });
1390
1398
  const start = () => {
1391
1399
  if (name.trim() === "" || starting) return;
@@ -1714,6 +1722,82 @@ window.__ModuleLoader__.load({
1714
1722
  })
1715
1723
  ]
1716
1724
  }),
1725
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
1726
+ className: ImportCard_module_css_default.section,
1727
+ "data-testid": "roleplay-import-pause",
1728
+ children: [
1729
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
1730
+ className: ImportCard_module_css_default.heading,
1731
+ children: t("ic_pause")
1732
+ }),
1733
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1734
+ className: ImportCard_module_css_default.note,
1735
+ children: t("ic_pauseHelp")
1736
+ }),
1737
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
1738
+ className: ImportCard_module_css_default.select,
1739
+ "aria-label": t("ic_pause"),
1740
+ value: pause,
1741
+ disabled: starting,
1742
+ onChange: (event) => {
1743
+ setPause(event.target.value);
1744
+ },
1745
+ children: [
1746
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
1747
+ value: "never",
1748
+ children: t("ic_pauseNever")
1749
+ }),
1750
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
1751
+ value: "survey",
1752
+ children: t("ic_pauseSurvey")
1753
+ }),
1754
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
1755
+ value: "stages",
1756
+ children: t("ic_pauseStages")
1757
+ })
1758
+ ]
1759
+ })
1760
+ ]
1761
+ }),
1762
+ (card.urls ?? []).length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
1763
+ className: ImportCard_module_css_default.section,
1764
+ "data-testid": "roleplay-import-links",
1765
+ children: [
1766
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
1767
+ className: ImportCard_module_css_default.heading,
1768
+ children: t("ic_links")
1769
+ }),
1770
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1771
+ className: ImportCard_module_css_default.note,
1772
+ children: t("ic_linksHelp", { count: (card.urls ?? []).length })
1773
+ }),
1774
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
1775
+ className: ImportCard_module_css_default.choice,
1776
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
1777
+ type: "checkbox",
1778
+ "aria-label": t("ic_fetchPictures"),
1779
+ checked: fetchPictures,
1780
+ disabled: starting,
1781
+ onChange: (event) => {
1782
+ setFetchPictures(event.target.checked);
1783
+ }
1784
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1785
+ className: ImportCard_module_css_default.choiceText,
1786
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1787
+ className: ImportCard_module_css_default.fieldTitle,
1788
+ children: t("ic_fetchPictures")
1789
+ })
1790
+ })]
1791
+ }),
1792
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", {
1793
+ className: ImportCard_module_css_default.note,
1794
+ children: t("ic_linksShow")
1795
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1796
+ className: `${ImportCard_module_css_default.note} ${ImportCard_module_css_default.links}`,
1797
+ children: (card.urls ?? []).map((url) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: url }, url))
1798
+ })] })
1799
+ ]
1800
+ }),
1717
1801
  entries.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
1718
1802
  className: ImportCard_module_css_default.section,
1719
1803
  children: [
@@ -1797,28 +1881,28 @@ window.__ModuleLoader__.load({
1797
1881
  });
1798
1882
  }
1799
1883
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Modal.module.css.mjs
1800
- const css$44 = ".rp_46MuuW_root{z-index:1000;pointer-events:auto;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.rp_46MuuW_mask{backdrop-filter:var(--dsw-mask-blur,blur(8px));position:absolute;inset:0}.rp_46MuuW_mask:after{content:\"\";background:var(--dsw-alias-bg-mask-1,#0006);animation:rp_46MuuW_rpModalEnter var(--ds-transition-duration,.12s) var(--ds-ease-in-out,ease);position:absolute;inset:0}.rp_46MuuW_dialog{box-sizing:border-box;z-index:1;border-radius:var(--dsw-radius-panel,12px);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(380px,100%);max-height:100%;box-shadow:var(--dsw-elevation-prominent,0 12px 32px #0000003d);animation:rp_46MuuW_rpModalEnter var(--ds-transition-duration,.12s) var(--ds-ease-in-out,ease);border:0;flex-direction:column;gap:20px;padding:0 0 24px;display:flex;position:relative;overflow:hidden}@keyframes rp_46MuuW_rpModalEnter{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.rp_46MuuW_mask:after,.rp_46MuuW_dialog{animation:none}}.rp_46MuuW_dialog:focus{outline:none}.rp_46MuuW_content{flex-direction:column;width:100%;min-height:0;display:flex;overflow:auto}.rp_46MuuW_header{justify-content:space-between;align-items:center;gap:8px;padding:22px 14px 12px 24px;display:flex}.rp_46MuuW_title{color:var(--dsw-alias-label-primary,inherit);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_46MuuW_close{border-radius:var(--dsw-radius-sm,6px);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary,inherit);background:0 0;border:none;flex:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover){.rp_46MuuW_close:hover{background:var(--dsw-alias-interactive-bg-hover,#0000000f)}}.rp_46MuuW_description{color:var(--dsw-alias-label-primary,inherit);margin:0;padding:0 24px;font-size:14px;font-weight:400;line-height:22px}.rp_46MuuW_body{flex-direction:column;min-width:0;margin-top:20px;padding:0 24px;display:flex}.rp_46MuuW_footer{justify-content:flex-end;align-items:center;gap:8px;padding:0 24px;display:flex}";
1801
- const key$44 = "src/client/ui/Modal.module.css";
1802
- let tag$44 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$44) + "]");
1803
- if (tag$44 === null) {
1804
- tag$44 = document.createElement("style");
1805
- tag$44.dataset.plugin = "@dsh-agentic-roleplay/core";
1806
- tag$44.dataset.pluginCss = key$44;
1807
- document.head.appendChild(tag$44);
1884
+ const css$45 = ".rp_46MuuW_root{z-index:1000;pointer-events:auto;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.rp_46MuuW_mask{backdrop-filter:var(--dsw-mask-blur,blur(8px));position:absolute;inset:0}.rp_46MuuW_mask:after{content:\"\";background:var(--dsw-alias-bg-mask-1,#0006);animation:rp_46MuuW_rpModalEnter var(--ds-transition-duration,.12s) var(--ds-ease-in-out,ease);position:absolute;inset:0}.rp_46MuuW_dialog{box-sizing:border-box;z-index:1;border-radius:var(--dsw-radius-panel,12px);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(380px,100%);max-height:100%;box-shadow:var(--dsw-elevation-prominent,0 12px 32px #0000003d);animation:rp_46MuuW_rpModalEnter var(--ds-transition-duration,.12s) var(--ds-ease-in-out,ease);border:0;flex-direction:column;gap:20px;padding:0 0 24px;display:flex;position:relative;overflow:hidden}@keyframes rp_46MuuW_rpModalEnter{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.rp_46MuuW_mask:after,.rp_46MuuW_dialog{animation:none}}.rp_46MuuW_dialog:focus{outline:none}.rp_46MuuW_content{flex-direction:column;width:100%;min-height:0;display:flex;overflow:auto}.rp_46MuuW_header{justify-content:space-between;align-items:center;gap:8px;padding:22px 14px 12px 24px;display:flex}.rp_46MuuW_title{color:var(--dsw-alias-label-primary,inherit);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_46MuuW_close{border-radius:var(--dsw-radius-sm,6px);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary,inherit);background:0 0;border:none;flex:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover){.rp_46MuuW_close:hover{background:var(--dsw-alias-interactive-bg-hover,#0000000f)}}.rp_46MuuW_description{color:var(--dsw-alias-label-primary,inherit);margin:0;padding:0 24px;font-size:14px;font-weight:400;line-height:22px}.rp_46MuuW_body{flex-direction:column;min-width:0;margin-top:20px;padding:0 24px;display:flex}.rp_46MuuW_footer{justify-content:flex-end;align-items:center;gap:8px;padding:0 24px;display:flex}";
1885
+ const key$45 = "src/client/ui/Modal.module.css";
1886
+ let tag$45 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$45) + "]");
1887
+ if (tag$45 === null) {
1888
+ tag$45 = document.createElement("style");
1889
+ tag$45.dataset.plugin = "@dsh-agentic-roleplay/core";
1890
+ tag$45.dataset.pluginCss = key$45;
1891
+ document.head.appendChild(tag$45);
1808
1892
  }
1809
- tag$44.textContent = css$44;
1893
+ tag$45.textContent = css$45;
1810
1894
  var Modal_module_css_default = {
1811
1895
  "footer": "rp_46MuuW_footer",
1812
- "description": "rp_46MuuW_description",
1813
1896
  "dialog": "rp_46MuuW_dialog",
1814
- "close": "rp_46MuuW_close",
1815
- "rpModalEnter": "rp_46MuuW_rpModalEnter",
1816
1897
  "content": "rp_46MuuW_content",
1817
- "header": "rp_46MuuW_header",
1818
1898
  "title": "rp_46MuuW_title",
1819
- "body": "rp_46MuuW_body",
1899
+ "rpModalEnter": "rp_46MuuW_rpModalEnter",
1900
+ "close": "rp_46MuuW_close",
1820
1901
  "root": "rp_46MuuW_root",
1821
- "mask": "rp_46MuuW_mask"
1902
+ "mask": "rp_46MuuW_mask",
1903
+ "description": "rp_46MuuW_description",
1904
+ "body": "rp_46MuuW_body",
1905
+ "header": "rp_46MuuW_header"
1822
1906
  };
1823
1907
  // src/client/ui/Modal.tsx
1824
1908
  const FOCUSABLE = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
@@ -1944,49 +2028,49 @@ window.__ModuleLoader__.load({
1944
2028
  });
1945
2029
  }
1946
2030
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/catalogue/CataloguePage.module.css.mjs
1947
- const css$43 = ".rp_qK1u-G_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_qK1u-G_toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:8px;min-height:32px;display:flex}.rp_qK1u-G_spacer{flex:auto}.rp_qK1u-G_select,.rp_qK1u-G_search{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_qK1u-G_search{min-width:200px}.rp_qK1u-G_select:focus-visible,.rp_qK1u-G_search:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_qK1u-G_status{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.rp_qK1u-G_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_qK1u-G_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_qK1u-G_grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_qK1u-G_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);min-width:0;font:inherit;text-align:left;color:inherit;background:var(--dsw-alias-settings-card-fill);cursor:pointer;flex-direction:column;padding:0;transition:border-color .12s;display:flex;overflow:hidden}.rp_qK1u-G_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_qK1u-G_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_qK1u-G_cover{aspect-ratio:4/3;background:var(--dsw-alias-bg-layer-3)}.rp_qK1u-G_image{object-fit:cover;width:100%;height:100%;display:block}.rp_qK1u-G_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:36px;font-weight:500;display:flex}.rp_qK1u-G_body{flex-direction:column;gap:4px;padding:8px 10px 10px;display:flex}.rp_qK1u-G_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_qK1u-G_meta{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_qK1u-G_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_qK1u-G_more{justify-content:center;padding:12px 0;display:flex}.rp_qK1u-G_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_qK1u-G_form{flex-direction:column;gap:8px;display:flex}.rp_qK1u-G_field{flex-direction:column;gap:4px;display:flex}.rp_qK1u-G_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_qK1u-G_detail{flex-direction:column;gap:8px;font-size:13px;display:flex}.rp_qK1u-G_description{white-space:pre-wrap;max-height:240px;color:var(--dsw-alias-label-secondary);margin:0;overflow-y:auto}.rp_qK1u-G_success{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_qK1u-G_kinds{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;gap:16px;display:flex}.rp_qK1u-G_kind{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:4px 0 6px;font-size:13px}.rp_qK1u-G_kind[aria-selected=true]{border-bottom-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_qK1u-G_kind:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_qK1u-G_updates{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.rp_qK1u-G_update{border:.5px solid var(--dsw-alias-state-business-primary);border-radius:var(--dsw-radius-sm);font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;padding:2px 8px}.rp_qK1u-G_warning{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);flex-direction:column;gap:8px;padding:8px 12px;font-size:12px;display:flex}.rp_qK1u-G_warning p{margin:0}.rp_qK1u-G_changes{font-family:var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-tertiary);margin:0;padding-left:16px;font-size:12px}.rp_qK1u-G_actions{flex-wrap:wrap;gap:8px;display:flex}";
1948
- const key$43 = "src/client/pages/catalogue/CataloguePage.module.css";
1949
- let tag$43 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$43) + "]");
1950
- if (tag$43 === null) {
1951
- tag$43 = document.createElement("style");
1952
- tag$43.dataset.plugin = "@dsh-agentic-roleplay/core";
1953
- tag$43.dataset.pluginCss = key$43;
1954
- document.head.appendChild(tag$43);
2031
+ const css$44 = ".rp_qK1u-G_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_qK1u-G_toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:8px;min-height:32px;display:flex}.rp_qK1u-G_spacer{flex:auto}.rp_qK1u-G_select,.rp_qK1u-G_search{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_qK1u-G_search{min-width:200px}.rp_qK1u-G_select:focus-visible,.rp_qK1u-G_search:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_qK1u-G_status{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.rp_qK1u-G_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_qK1u-G_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_qK1u-G_grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_qK1u-G_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);min-width:0;font:inherit;text-align:left;color:inherit;background:var(--dsw-alias-settings-card-fill);cursor:pointer;flex-direction:column;padding:0;transition:border-color .12s;display:flex;overflow:hidden}.rp_qK1u-G_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_qK1u-G_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_qK1u-G_cover{aspect-ratio:4/3;background:var(--dsw-alias-bg-layer-3)}.rp_qK1u-G_image{object-fit:cover;width:100%;height:100%;display:block}.rp_qK1u-G_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:36px;font-weight:500;display:flex}.rp_qK1u-G_body{flex-direction:column;gap:4px;padding:8px 10px 10px;display:flex}.rp_qK1u-G_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_qK1u-G_meta{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_qK1u-G_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_qK1u-G_more{justify-content:center;padding:12px 0;display:flex}.rp_qK1u-G_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_qK1u-G_form{flex-direction:column;gap:8px;display:flex}.rp_qK1u-G_field{flex-direction:column;gap:4px;display:flex}.rp_qK1u-G_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_qK1u-G_detail{flex-direction:column;gap:8px;font-size:13px;display:flex}.rp_qK1u-G_description{white-space:pre-wrap;max-height:240px;color:var(--dsw-alias-label-secondary);margin:0;overflow-y:auto}.rp_qK1u-G_success{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_qK1u-G_kinds{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;gap:16px;display:flex}.rp_qK1u-G_kind{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:4px 0 6px;font-size:13px}.rp_qK1u-G_kind[aria-selected=true]{border-bottom-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_qK1u-G_kind:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_qK1u-G_updates{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.rp_qK1u-G_update{border:.5px solid var(--dsw-alias-state-business-primary);border-radius:var(--dsw-radius-sm);font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;padding:2px 8px}.rp_qK1u-G_warning{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);flex-direction:column;gap:8px;padding:8px 12px;font-size:12px;display:flex}.rp_qK1u-G_warning p{margin:0}.rp_qK1u-G_changes{font-family:var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-tertiary);margin:0;padding-left:16px;font-size:12px}.rp_qK1u-G_actions{flex-wrap:wrap;gap:8px;display:flex}";
2032
+ const key$44 = "src/client/pages/catalogue/CataloguePage.module.css";
2033
+ let tag$44 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$44) + "]");
2034
+ if (tag$44 === null) {
2035
+ tag$44 = document.createElement("style");
2036
+ tag$44.dataset.plugin = "@dsh-agentic-roleplay/core";
2037
+ tag$44.dataset.pluginCss = key$44;
2038
+ document.head.appendChild(tag$44);
1955
2039
  }
1956
- tag$43.textContent = css$43;
2040
+ tag$44.textContent = css$44;
1957
2041
  var CataloguePage_module_css_default = {
1958
- "kind": "rp_qK1u-G_kind",
2042
+ "card": "rp_qK1u-G_card",
1959
2043
  "page": "rp_qK1u-G_page",
1960
- "field": "rp_qK1u-G_field",
1961
- "search": "rp_qK1u-G_search",
1962
- "status": "rp_qK1u-G_status",
2044
+ "spacer": "rp_qK1u-G_spacer",
2045
+ "message": "rp_qK1u-G_message",
2046
+ "changes": "rp_qK1u-G_changes",
2047
+ "select": "rp_qK1u-G_select",
1963
2048
  "success": "rp_qK1u-G_success",
1964
- "card": "rp_qK1u-G_card",
1965
- "label": "rp_qK1u-G_label",
1966
- "cover": "rp_qK1u-G_cover",
1967
2049
  "updates": "rp_qK1u-G_updates",
1968
- "select": "rp_qK1u-G_select",
1969
- "update": "rp_qK1u-G_update",
1970
- "description": "rp_qK1u-G_description",
1971
- "placeholder": "rp_qK1u-G_placeholder",
1972
- "more": "rp_qK1u-G_more",
1973
- "detail": "rp_qK1u-G_detail",
2050
+ "form": "rp_qK1u-G_form",
2051
+ "image": "rp_qK1u-G_image",
2052
+ "field": "rp_qK1u-G_field",
2053
+ "status": "rp_qK1u-G_status",
1974
2054
  "warning": "rp_qK1u-G_warning",
2055
+ "update": "rp_qK1u-G_update",
1975
2056
  "actions": "rp_qK1u-G_actions",
1976
- "tags": "rp_qK1u-G_tags",
1977
- "viewport": "rp_qK1u-G_viewport",
1978
- "kinds": "rp_qK1u-G_kinds",
2057
+ "body": "rp_qK1u-G_body",
2058
+ "placeholder": "rp_qK1u-G_placeholder",
1979
2059
  "notice": "rp_qK1u-G_notice",
1980
- "changes": "rp_qK1u-G_changes",
1981
- "toolbar": "rp_qK1u-G_toolbar",
1982
2060
  "grid": "rp_qK1u-G_grid",
1983
- "body": "rp_qK1u-G_body",
1984
2061
  "name": "rp_qK1u-G_name",
1985
- "spacer": "rp_qK1u-G_spacer",
2062
+ "viewport": "rp_qK1u-G_viewport",
2063
+ "kind": "rp_qK1u-G_kind",
1986
2064
  "meta": "rp_qK1u-G_meta",
1987
- "image": "rp_qK1u-G_image",
1988
- "message": "rp_qK1u-G_message",
1989
- "form": "rp_qK1u-G_form"
2065
+ "toolbar": "rp_qK1u-G_toolbar",
2066
+ "cover": "rp_qK1u-G_cover",
2067
+ "tags": "rp_qK1u-G_tags",
2068
+ "more": "rp_qK1u-G_more",
2069
+ "detail": "rp_qK1u-G_detail",
2070
+ "search": "rp_qK1u-G_search",
2071
+ "label": "rp_qK1u-G_label",
2072
+ "kinds": "rp_qK1u-G_kinds",
2073
+ "description": "rp_qK1u-G_description"
1990
2074
  };
1991
2075
  // src/client/pages/catalogue/ImportUrlDialog.tsx
1992
2076
  /** Installs a world from the address of its archive, or opens the resource a page address of a configured catalogue names; an address on a configured catalogue's site is asked for with that catalogue's key. */
@@ -2179,33 +2263,33 @@ window.__ModuleLoader__.load({
2179
2263
  };
2180
2264
  const SAMPLING_KEYS = Object.keys(SAMPLING_RANGES);
2181
2265
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/import-selection/ImportSelection.module.css.mjs
2182
- const css$42 = ".rp_Jx0l4q_body{flex-direction:column;gap:12px;min-width:min(640px,100%);max-height:calc(100vh - 220px);display:flex;overflow-y:auto}.rp_Jx0l4q_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_Jx0l4q_bar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_Jx0l4q_count{color:var(--dsw-alias-label-tertiary);margin-right:auto;font-size:12px}.rp_Jx0l4q_list{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;max-height:max(120px,min(420px,100vh - 560px));margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.rp_Jx0l4q_row{border-bottom:.5px solid var(--dsw-alias-border-l3);gap:8px;padding:6px 8px;display:flex}.rp_Jx0l4q_row:last-child{border-bottom:0}.rp_Jx0l4q_row[data-usable=false]{opacity:.55}.rp_Jx0l4q_text{min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;gap:2px;font-size:13px;display:flex}.rp_Jx0l4q_meta{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px}.rp_Jx0l4q_note{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Jx0l4q_full{max-height:200px;font:12px/18px var(--dsw-font-mono,monospace);white-space:pre-wrap;overflow-wrap:anywhere;background:var(--dsw-alias-bg-layer-1);border-radius:var(--dsw-radius-sm);margin:4px 0 0;padding:6px 8px;overflow:auto}.rp_Jx0l4q_sampling{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:4px;padding:8px;display:flex}.rp_Jx0l4q_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Jx0l4q_extra{display:block}";
2183
- const key$42 = "src/client/widgets/import-selection/ImportSelection.module.css";
2184
- let tag$42 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$42) + "]");
2185
- if (tag$42 === null) {
2186
- tag$42 = document.createElement("style");
2187
- tag$42.dataset.plugin = "@dsh-agentic-roleplay/core";
2188
- tag$42.dataset.pluginCss = key$42;
2189
- document.head.appendChild(tag$42);
2266
+ const css$43 = ".rp_Jx0l4q_body{flex-direction:column;gap:12px;min-width:min(640px,100%);max-height:calc(100vh - 220px);display:flex;overflow-y:auto}.rp_Jx0l4q_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_Jx0l4q_bar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_Jx0l4q_count{color:var(--dsw-alias-label-tertiary);margin-right:auto;font-size:12px}.rp_Jx0l4q_list{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;max-height:max(120px,min(420px,100vh - 560px));margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.rp_Jx0l4q_row{border-bottom:.5px solid var(--dsw-alias-border-l3);gap:8px;padding:6px 8px;display:flex}.rp_Jx0l4q_row:last-child{border-bottom:0}.rp_Jx0l4q_row[data-usable=false]{opacity:.55}.rp_Jx0l4q_text{min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;gap:2px;font-size:13px;display:flex}.rp_Jx0l4q_meta{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px}.rp_Jx0l4q_note{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Jx0l4q_full{max-height:200px;font:12px/18px var(--dsw-font-mono,monospace);white-space:pre-wrap;overflow-wrap:anywhere;background:var(--dsw-alias-bg-layer-1);border-radius:var(--dsw-radius-sm);margin:4px 0 0;padding:6px 8px;overflow:auto}.rp_Jx0l4q_sampling{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:4px;padding:8px;display:flex}.rp_Jx0l4q_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Jx0l4q_extra{display:block}";
2267
+ const key$43 = "src/client/widgets/import-selection/ImportSelection.module.css";
2268
+ let tag$43 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$43) + "]");
2269
+ if (tag$43 === null) {
2270
+ tag$43 = document.createElement("style");
2271
+ tag$43.dataset.plugin = "@dsh-agentic-roleplay/core";
2272
+ tag$43.dataset.pluginCss = key$43;
2273
+ document.head.appendChild(tag$43);
2190
2274
  }
2191
- tag$42.textContent = css$42;
2275
+ tag$43.textContent = css$43;
2192
2276
  var ImportSelection_module_css_default = {
2193
- "body": "rp_Jx0l4q_body",
2277
+ "row": "rp_Jx0l4q_row",
2194
2278
  "list": "rp_Jx0l4q_list",
2195
- "meta": "rp_Jx0l4q_meta",
2196
- "sampling": "rp_Jx0l4q_sampling",
2197
2279
  "note": "rp_Jx0l4q_note",
2280
+ "full": "rp_Jx0l4q_full",
2281
+ "meta": "rp_Jx0l4q_meta",
2282
+ "extra": "rp_Jx0l4q_extra",
2198
2283
  "count": "rp_Jx0l4q_count",
2199
- "help": "rp_Jx0l4q_help",
2200
- "row": "rp_Jx0l4q_row",
2201
- "text": "rp_Jx0l4q_text",
2284
+ "body": "rp_Jx0l4q_body",
2202
2285
  "bar": "rp_Jx0l4q_bar",
2203
- "full": "rp_Jx0l4q_full",
2286
+ "sampling": "rp_Jx0l4q_sampling",
2204
2287
  "error": "rp_Jx0l4q_error",
2205
- "extra": "rp_Jx0l4q_extra"
2288
+ "help": "rp_Jx0l4q_help",
2289
+ "text": "rp_Jx0l4q_text"
2206
2290
  };
2207
2291
  // src/client/widgets/import-selection/ImportSelection.tsx
2208
- const messageOf$14 = (failure) => failure instanceof Error ? failure.message : String(failure);
2292
+ const messageOf$15 = (failure) => failure instanceof Error ? failure.message : String(failure);
2209
2293
  /**
2210
2294
  * The choice of what an imported preset or lorebook brings: every item the file offers, each ticked or not, and the file's sampling. Only the ticked items reach the conversion.
2211
2295
  * What the caller needs besides the choice (a name for the new library entry) goes in as `children`.
@@ -2240,7 +2324,7 @@ window.__ModuleLoader__.load({
2240
2324
  language
2241
2325
  }).then(onClose, (problem) => {
2242
2326
  setBusy(false);
2243
- setFailure(messageOf$14(problem));
2327
+ setFailure(messageOf$15(problem));
2244
2328
  });
2245
2329
  };
2246
2330
  const ignored = [["regexScripts", preview.ignored?.regexScripts], ["scripts", preview.ignored?.scripts]].flatMap(([key, count]) => typeof count === "number" && count > 0 ? [t(`is_ignored_${key}`, { count: String(count) })] : []);
@@ -2461,7 +2545,7 @@ window.__ModuleLoader__.load({
2461
2545
  const date = new Date(iso);
2462
2546
  return Number.isNaN(date.getTime()) ? iso : date.toLocaleDateString();
2463
2547
  };
2464
- const messageOf$13 = (problem) => problem instanceof Error ? problem.message : String(problem);
2548
+ const messageOf$14 = (problem) => problem instanceof Error ? problem.message : String(problem);
2465
2549
  /** One entry of a catalogue: what it says about itself, its releases, and installing, updating or converting one of them. */
2466
2550
  function WorldDialog({ t, source, id, name, kind, onClose, onChanged, openChat, onReview }) {
2467
2551
  const [detail, setDetail] = (0, react.useState)();
@@ -2478,7 +2562,7 @@ window.__ModuleLoader__.load({
2478
2562
  setDetail(loaded);
2479
2563
  setVersionId(loaded.versions[0]?.id ?? "");
2480
2564
  }, (problem) => {
2481
- if (!abort.signal.aborted) setError(messageOf$13(problem));
2565
+ if (!abort.signal.aborted) setError(messageOf$14(problem));
2482
2566
  });
2483
2567
  return () => {
2484
2568
  abort.abort();
@@ -2515,7 +2599,7 @@ window.__ModuleLoader__.load({
2515
2599
  }, (problem) => {
2516
2600
  setBusy(void 0);
2517
2601
  if (problem instanceof InstallConflict && problem.reason !== "exists") setConflict(problem);
2518
- else setFailure(t("installFailed", { message: messageOf$13(problem) }));
2602
+ else setFailure(t("installFailed", { message: messageOf$14(problem) }));
2519
2603
  });
2520
2604
  };
2521
2605
  const runConvert = () => {
@@ -2531,7 +2615,7 @@ window.__ModuleLoader__.load({
2531
2615
  });
2532
2616
  }, (problem) => {
2533
2617
  setBusy(void 0);
2534
- setFailure(t("convertFailed", { message: messageOf$13(problem) }));
2618
+ setFailure(t("convertFailed", { message: messageOf$14(problem) }));
2535
2619
  });
2536
2620
  };
2537
2621
  const stage = (kind) => {
@@ -2543,7 +2627,7 @@ window.__ModuleLoader__.load({
2543
2627
  setSelecting(preview);
2544
2628
  }, (problem) => {
2545
2629
  setBusy(void 0);
2546
- setFailure(t(kind === "preset" ? "importPresetFailed" : "importLorebookFailed", { message: messageOf$13(problem) }));
2630
+ setFailure(t(kind === "preset" ? "importPresetFailed" : "importLorebookFailed", { message: messageOf$14(problem) }));
2547
2631
  });
2548
2632
  };
2549
2633
  const runPreset = () => {
@@ -3228,7 +3312,7 @@ window.__ModuleLoader__.load({
3228
3312
  return Object.fromEntries(Object.keys(dictionaries).map((locale) => [locale, Object.fromEntries(Object.entries(dictionaries[locale]).map(([key, value]) => [`${prefix}${key}`, value]))]));
3229
3313
  }
3230
3314
  // src/client/widgets/import-card/locales.ts
3231
- const dictionaries$27 = {
3315
+ const dictionaries$28 = {
3232
3316
  en: {
3233
3317
  ic_promptLanguage: "Language of the prompts",
3234
3318
  ic_promptLanguageHelp: "The language the import assistant works in and writes the world's prompts in. It starts as your interface language. English and Chinese have prompts of their own; any other language uses the English ones and asks the models to write in it.",
@@ -3280,7 +3364,16 @@ window.__ModuleLoader__.load({
3280
3364
  ic_starting: "Starting…",
3281
3365
  ic_startFailed: "Could not start the import: {message}",
3282
3366
  ic_cancel: "Cancel",
3283
- ic_empty: "(empty)"
3367
+ ic_empty: "(empty)",
3368
+ ic_links: "Web addresses",
3369
+ ic_linksHelp: "The card contains {count} web addresses. Those that look like pictures are downloaded into the world's image library while it is imported; nothing else is fetched, and no script of the card is run.",
3370
+ ic_fetchPictures: "Download the pictures these addresses point to",
3371
+ ic_linksShow: "Show the addresses",
3372
+ ic_pause: "How the import goes",
3373
+ ic_pauseHelp: "The assistant imports the card in steps: it reads it (the survey), then writes the places, characters and the rest one stage at a time. Choose where it stops to report and to ask you.",
3374
+ ic_pauseNever: "Do it all in one go",
3375
+ ic_pauseSurvey: "Stop after the survey, then go on by itself",
3376
+ ic_pauseStages: "Stop after the survey and after every stage"
3284
3377
  },
3285
3378
  zh: {
3286
3379
  ic_promptLanguage: "提示词语言",
@@ -3333,7 +3426,16 @@ window.__ModuleLoader__.load({
3333
3426
  ic_starting: "正在开始…",
3334
3427
  ic_startFailed: "无法开始导入:{message}",
3335
3428
  ic_cancel: "取消",
3336
- ic_empty: "(空)"
3429
+ ic_empty: "(空)",
3430
+ ic_links: "网址",
3431
+ ic_linksHelp: "这张卡片包含 {count} 个网址。导入时,看起来是图片的会下载到世界的图片库;其他内容一概不会获取,卡片里的脚本也不会运行。",
3432
+ ic_fetchPictures: "下载这些网址指向的图片",
3433
+ ic_linksShow: "显示网址",
3434
+ ic_pause: "导入的方式",
3435
+ ic_pauseHelp: "助手分步骤导入卡片:先读卡片(调查),再一个阶段一个阶段地写出地点、角色等。请选择它在哪些地方停下来向你汇报并征求意见。",
3436
+ ic_pauseNever: "一次全部完成",
3437
+ ic_pauseSurvey: "调查之后停下,之后自动继续",
3438
+ ic_pauseStages: "调查之后和每个阶段之后都停下"
3337
3439
  },
3338
3440
  ja: {
3339
3441
  ic_promptLanguage: "プロンプトの言語",
@@ -3386,7 +3488,16 @@ window.__ModuleLoader__.load({
3386
3488
  ic_starting: "開始中…",
3387
3489
  ic_startFailed: "読み込みを開始できませんでした:{message}",
3388
3490
  ic_cancel: "キャンセル",
3389
- ic_empty: "(空)"
3491
+ ic_empty: "(空)",
3492
+ ic_links: "Web アドレス",
3493
+ ic_linksHelp: "このカードには {count} 件の Web アドレスがあります。画像のように見えるものは、読み込み中にワールドの画像ライブラリへダウンロードされます。それ以外は取得せず、カードのスクリプトも実行しません。",
3494
+ ic_fetchPictures: "これらのアドレスが指す画像をダウンロードする",
3495
+ ic_linksShow: "アドレスを表示",
3496
+ ic_pause: "インポートの進め方",
3497
+ ic_pauseHelp: "アシスタントはカードを段階的に取り込みます。まず読み取り(調査)、その後、場所や登場人物などを一段階ずつ書きます。どこで止まって報告し、確認するかを選んでください。",
3498
+ ic_pauseNever: "一度にすべて行う",
3499
+ ic_pauseSurvey: "調査のあとで止まり、その後は自動で続ける",
3500
+ ic_pauseStages: "調査のあと、そして各段階のあとで止まる"
3390
3501
  },
3391
3502
  es: {
3392
3503
  ic_promptLanguage: "Idioma de las instrucciones",
@@ -3439,7 +3550,16 @@ window.__ModuleLoader__.load({
3439
3550
  ic_starting: "Iniciando…",
3440
3551
  ic_startFailed: "No se ha podido iniciar la importación: {message}",
3441
3552
  ic_cancel: "Cancelar",
3442
- ic_empty: "(vacío)"
3553
+ ic_empty: "(vacío)",
3554
+ ic_links: "Direcciones web",
3555
+ ic_linksHelp: "La tarjeta contiene {count} direcciones web. Las que parecen imágenes se descargan en la biblioteca de imágenes del mundo durante la importación; no se obtiene nada más y no se ejecuta ningún script de la tarjeta.",
3556
+ ic_fetchPictures: "Descargar las imágenes a las que apuntan estas direcciones",
3557
+ ic_linksShow: "Mostrar las direcciones",
3558
+ ic_pause: "Cómo se hace la importación",
3559
+ ic_pauseHelp: "El asistente importa la tarjeta por pasos: la lee (el sondeo) y luego escribe los lugares, los personajes y lo demás, una etapa cada vez. Elige dónde se detiene para informarte y preguntarte.",
3560
+ ic_pauseNever: "Todo de una vez",
3561
+ ic_pauseSurvey: "Parar tras el sondeo y seguir solo",
3562
+ ic_pauseStages: "Parar tras el sondeo y tras cada etapa"
3443
3563
  },
3444
3564
  fr: {
3445
3565
  ic_promptLanguage: "Langue des instructions",
@@ -3492,7 +3612,16 @@ window.__ModuleLoader__.load({
3492
3612
  ic_starting: "Démarrage…",
3493
3613
  ic_startFailed: "Impossible de démarrer l’importation : {message}",
3494
3614
  ic_cancel: "Annuler",
3495
- ic_empty: "(vide)"
3615
+ ic_empty: "(vide)",
3616
+ ic_links: "Adresses web",
3617
+ ic_linksHelp: "La carte contient {count} adresses web. Celles qui ressemblent à des images sont téléchargées dans la bibliothèque d’images du monde pendant l’importation ; rien d’autre n’est récupéré et aucun script de la carte n’est exécuté.",
3618
+ ic_fetchPictures: "Télécharger les images vers lesquelles ces adresses pointent",
3619
+ ic_linksShow: "Afficher les adresses",
3620
+ ic_pause: "Déroulement de l'import",
3621
+ ic_pauseHelp: "L'assistant importe la carte par étapes : il la lit (l'examen), puis écrit les lieux, les personnages et le reste, une étape à la fois. Choisissez où il s'arrête pour faire le point et vous demander.",
3622
+ ic_pauseNever: "Tout d'un coup",
3623
+ ic_pauseSurvey: "S'arrêter après l'examen, puis continuer seul",
3624
+ ic_pauseStages: "S'arrêter après l'examen et après chaque étape"
3496
3625
  },
3497
3626
  de: {
3498
3627
  ic_promptLanguage: "Sprache der Anweisungen",
@@ -3545,7 +3674,16 @@ window.__ModuleLoader__.load({
3545
3674
  ic_starting: "Wird gestartet…",
3546
3675
  ic_startFailed: "Der Import konnte nicht gestartet werden: {message}",
3547
3676
  ic_cancel: "Abbrechen",
3548
- ic_empty: "(leer)"
3677
+ ic_empty: "(leer)",
3678
+ ic_links: "Webadressen",
3679
+ ic_linksHelp: "Die Karte enthält {count} Webadressen. Solche, die nach Bildern aussehen, werden beim Import in die Bildbibliothek der Welt heruntergeladen; sonst wird nichts abgerufen, und kein Skript der Karte wird ausgeführt.",
3680
+ ic_fetchPictures: "Bilder herunterladen, auf die diese Adressen zeigen",
3681
+ ic_linksShow: "Adressen anzeigen",
3682
+ ic_pause: "Ablauf des Imports",
3683
+ ic_pauseHelp: "Der Assistent importiert die Karte in Schritten: Er liest sie (die Bestandsaufnahme) und schreibt dann Orte, Figuren und den Rest, eine Phase nach der anderen. Wählen Sie, wo er anhält, um zu berichten und zu fragen.",
3684
+ ic_pauseNever: "Alles in einem Zug",
3685
+ ic_pauseSurvey: "Nach der Bestandsaufnahme anhalten, dann selbstständig weitermachen",
3686
+ ic_pauseStages: "Nach der Bestandsaufnahme und nach jeder Phase anhalten"
3549
3687
  },
3550
3688
  ru: {
3551
3689
  ic_promptLanguage: "Язык инструкций",
@@ -3598,7 +3736,16 @@ window.__ModuleLoader__.load({
3598
3736
  ic_starting: "Запуск…",
3599
3737
  ic_startFailed: "Не удалось запустить импорт: {message}",
3600
3738
  ic_cancel: "Отмена",
3601
- ic_empty: "(пусто)"
3739
+ ic_empty: "(пусто)",
3740
+ ic_links: "Веб-адреса",
3741
+ ic_linksHelp: "В карточке {count} веб-адресов. Те, что похожи на изображения, при импорте загружаются в библиотеку изображений мира; ничего другого не запрашивается, и скрипты карточки не выполняются.",
3742
+ ic_fetchPictures: "Загружать изображения, на которые указывают эти адреса",
3743
+ ic_linksShow: "Показать адреса",
3744
+ ic_pause: "Как проходит импорт",
3745
+ ic_pauseHelp: "Ассистент импортирует карточку по шагам: сначала читает её (обзор), затем по этапам пишет места, персонажей и остальное. Выберите, где он будет останавливаться, чтобы отчитаться и спросить вас.",
3746
+ ic_pauseNever: "Всё за один раз",
3747
+ ic_pauseSurvey: "Остановиться после обзора, затем продолжить самому",
3748
+ ic_pauseStages: "Останавливаться после обзора и после каждого этапа"
3602
3749
  },
3603
3750
  pt: {
3604
3751
  ic_promptLanguage: "Idioma das instruções",
@@ -3651,11 +3798,20 @@ window.__ModuleLoader__.load({
3651
3798
  ic_starting: "A iniciar…",
3652
3799
  ic_startFailed: "Não foi possível iniciar a importação: {message}",
3653
3800
  ic_cancel: "Cancelar",
3654
- ic_empty: "(vazio)"
3801
+ ic_empty: "(vazio)",
3802
+ ic_links: "Endereços web",
3803
+ ic_linksHelp: "O cartão contém {count} endereços web. Os que parecem imagens são transferidos para a biblioteca de imagens do mundo durante a importação; nada mais é obtido e nenhum script do cartão é executado.",
3804
+ ic_fetchPictures: "Transferir as imagens para as quais estes endereços apontam",
3805
+ ic_linksShow: "Mostrar os endereços",
3806
+ ic_pause: "Como a importação decorre",
3807
+ ic_pauseHelp: "O assistente importa o cartão por passos: lê-o (o levantamento) e depois escreve os lugares, as personagens e o resto, uma etapa de cada vez. Escolha onde ele pára para informar e perguntar.",
3808
+ ic_pauseNever: "Tudo de uma vez",
3809
+ ic_pauseSurvey: "Parar após o levantamento e continuar sozinho",
3810
+ ic_pauseStages: "Parar após o levantamento e após cada etapa"
3655
3811
  }
3656
3812
  };
3657
3813
  // src/client/widgets/import-selection/locales.ts
3658
- const dictionaries$26 = {
3814
+ const dictionaries$27 = {
3659
3815
  en: {
3660
3816
  is_title_preset: "Choose what to import from {name}",
3661
3817
  is_title_lorebook: "Choose what to import from {name}",
@@ -4001,7 +4157,7 @@ window.__ModuleLoader__.load({
4001
4157
  is_failed: "Não foi possível importar: {message}"
4002
4158
  }
4003
4159
  };
4004
- const dictionaries$25 = withDictionaries(withDictionaries({
4160
+ const dictionaries$26 = withDictionaries(withDictionaries({
4005
4161
  en: {
4006
4162
  nav: "Catalogue",
4007
4163
  loading: "Loading worlds…",
@@ -4770,13 +4926,13 @@ window.__ModuleLoader__.load({
4770
4926
  convertNotStarted: "O mundo «{name}» foi criado, mas a conversão não começou: {failure}. Abra a conversa de criação e envie manualmente a mensagem de importação.",
4771
4927
  openChat: "Abrir a conversa"
4772
4928
  }
4773
- }, dictionaries$26), dictionaries$27);
4929
+ }, dictionaries$27), dictionaries$28);
4774
4930
  // src/client/pages/catalogue/index.ts
4775
4931
  const NAMESPACE$16 = "roleplay.catalogue";
4776
4932
  /** Adds the Catalogue page to the Role Play panel: worlds of the catalogues set up in the settings. */
4777
4933
  function registerCataloguePage(ctx) {
4778
4934
  const t = ctx.locale.bind(NAMESPACE$16);
4779
- ctx.effect(() => ctx.locale.register(NAMESPACE$16, dictionaries$25), "roleplay: catalogue dictionaries");
4935
+ ctx.effect(() => ctx.locale.register(NAMESPACE$16, dictionaries$26), "roleplay: catalogue dictionaries");
4780
4936
  const catalogue = new CatalogueController(createChatOpener(ctx));
4781
4937
  ctx.effect(() => () => {
4782
4938
  catalogue.dispose();
@@ -4857,7 +5013,7 @@ window.__ModuleLoader__.load({
4857
5013
  return (await response.json()).added;
4858
5014
  }
4859
5015
  // src/client/pages/avatars/avatars-controller.ts
4860
- const messageOf$12 = (error) => error instanceof Error ? error.message : String(error);
5016
+ const messageOf$13 = (error) => error instanceof Error ? error.message : String(error);
4861
5017
  /** Reads the player avatars from the host and makes and removes them. */
4862
5018
  var AvatarsController = class {
4863
5019
  store = createSnapshotStore({
@@ -4904,7 +5060,7 @@ window.__ModuleLoader__.load({
4904
5060
  } catch (error) {
4905
5061
  if (this.abort.signal.aborted) return;
4906
5062
  this.store.update((draft) => {
4907
- draft.error = messageOf$12(error);
5063
+ draft.error = messageOf$13(error);
4908
5064
  if (draft.avatars === void 0) draft.status = "failed";
4909
5065
  });
4910
5066
  } finally {
@@ -5308,57 +5464,57 @@ window.__ModuleLoader__.load({
5308
5464
  }
5309
5465
  const isDirty = (character, draft) => Object.keys(editOf$1(character, draft)).length > 0;
5310
5466
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CharactersPanel.module.css.mjs
5311
- const css$41 = ".rp_5ZMIxq_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5ZMIxq_tabs{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;gap:4px;padding:0 24px;display:flex;overflow-x:auto}.rp_5ZMIxq_tab{font:inherit;white-space:nowrap;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;margin-bottom:-1px;padding:12px 10px 10px;font-size:13px;line-height:20px}.rp_5ZMIxq_tabOn{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_5ZMIxq_body{flex:1 1 0;min-height:0;overflow-y:auto}.rp_5ZMIxq_sheet{box-sizing:border-box;flex-direction:column;gap:20px;max-width:760px;padding:24px 24px 240px;display:flex}.rp_5ZMIxq_head{align-items:flex-start;gap:20px;display:flex}.rp_5ZMIxq_portrait{aspect-ratio:3/4;object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);width:150px;height:auto;display:block}.rp_5ZMIxq_portraitBox{border-radius:var(--dsw-radius-lg);width:150px;height:200px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:0 0 150px;padding:0;display:block;position:relative}.rp_5ZMIxq_portraitBox:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_5ZMIxq_portraitBox:disabled{cursor:not-allowed}.rp_5ZMIxq_portraitAction{box-sizing:border-box;border-radius:0 0 var(--dsw-radius-lg) var(--dsw-radius-lg);color:#fff;text-align:center;opacity:0;background:#0000009e;padding:7px 6px;font-size:12px;line-height:16px;transition:opacity .12s;position:absolute;bottom:1px;left:1px;right:1px}.rp_5ZMIxq_portraitBox:hover .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:focus-visible .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:disabled .rp_5ZMIxq_portraitAction{opacity:1}.rp_5ZMIxq_portraitError,.rp_5ZMIxq_portraitHint{margin:12px 24px 0;font-size:12px}.rp_5ZMIxq_portraitError{color:var(--dsw-alias-state-danger-primary)}.rp_5ZMIxq_portraitHint{color:var(--dsw-alias-label-secondary)}.rp_5ZMIxq_placeholder{box-sizing:border-box;color:var(--dsw-alias-label-secondary);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_initial{opacity:.6;font-size:48px;font-weight:500;line-height:1}.rp_5ZMIxq_missing{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_meta{flex-direction:column;flex:1 1 0;gap:10px;min-width:0;display:flex}.rp_5ZMIxq_section{border-top:.5px solid var(--dsw-alias-border-l4);flex-direction:column;gap:6px;padding-top:16px;display:flex}.rp_5ZMIxq_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:500;line-height:20px}.rp_5ZMIxq_question{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:14px;min-width:0;margin:4px 0 0;padding:14px;display:flex}.rp_5ZMIxq_questionTitle,.rp_5ZMIxq_optionTitle{color:var(--dsw-alias-label-secondary);padding:0 4px;font-size:12px;font-weight:500}.rp_5ZMIxq_optionFields{border:0;border-top:.5px solid var(--dsw-alias-border-l4);min-width:0;margin:2px 0 0;padding:14px 0 0}.rp_5ZMIxq_optionFields>.rp_5ZMIxq_optionTitle{padding:0}.rp_5ZMIxq_questionActions,.rp_5ZMIxq_itemActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_questionActions{justify-content:space-between}.rp_5ZMIxq_itemActions{justify-content:flex-end;margin-top:8px}.rp_5ZMIxq_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 24px;font-size:13px}.rp_5ZMIxq_section .rp_5ZMIxq_empty{padding:0}.rp_5ZMIxq_tabsSpace{flex:auto}.rp_5ZMIxq_voiceInline{min-width:220px;color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_5ZMIxq_bar{border-bottom:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);flex:none;justify-content:flex-end;align-items:center;gap:8px;padding:6px 24px;display:flex}.rp_5ZMIxq_barText{color:var(--dsw-alias-label-secondary);margin-right:auto;font-size:12px}.rp_5ZMIxq_nameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:var(--dsw-alias-label-primary);font:inherit;padding:4px 8px;font-size:14px;line-height:22px}.rp_5ZMIxq_row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px 12px;display:grid}.rp_5ZMIxq_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5ZMIxq_wide{grid-column:1/-1}.rp_5ZMIxq_label,.rp_5ZMIxq_help{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_5ZMIxq_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px;font-size:13px}.rp_5ZMIxq_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:96px;color:inherit;font:inherit;resize:vertical;padding:6px 8px;font-size:13px;line-height:20px}.rp_5ZMIxq_goal{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:8px;padding:10px;display:flex}.rp_5ZMIxq_row>.rp_5ZMIxq_select{width:auto;min-width:110px}.rp_5ZMIxq_select:focus-visible,.rp_5ZMIxq_area:focus-visible,.rp_5ZMIxq_nameInput:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_5ZMIxq_sheet{padding-inline:16px}.rp_5ZMIxq_head{flex-direction:column}.rp_5ZMIxq_portraitBox,.rp_5ZMIxq_portrait{width:120px}.rp_5ZMIxq_portraitBox{flex-basis:120px;height:160px}.rp_5ZMIxq_bar{flex-wrap:wrap;padding-inline:16px}.rp_5ZMIxq_voiceInline{width:100%;min-width:0}}";
5312
- const key$41 = "src/client/world-editor/CharactersPanel.module.css";
5313
- let tag$41 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$41) + "]");
5314
- if (tag$41 === null) {
5315
- tag$41 = document.createElement("style");
5316
- tag$41.dataset.plugin = "@dsh-agentic-roleplay/core";
5317
- tag$41.dataset.pluginCss = key$41;
5318
- document.head.appendChild(tag$41);
5467
+ const css$42 = ".rp_5ZMIxq_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5ZMIxq_tabs{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;gap:4px;padding:0 24px;display:flex;overflow-x:auto}.rp_5ZMIxq_tab{font:inherit;white-space:nowrap;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;margin-bottom:-1px;padding:12px 10px 10px;font-size:13px;line-height:20px}.rp_5ZMIxq_tabOn{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_5ZMIxq_body{flex:1 1 0;min-height:0;overflow-y:auto}.rp_5ZMIxq_sheet{box-sizing:border-box;flex-direction:column;gap:20px;max-width:760px;padding:24px 24px 240px;display:flex}.rp_5ZMIxq_head{align-items:flex-start;gap:20px;display:flex}.rp_5ZMIxq_portrait{aspect-ratio:3/4;object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);width:150px;height:auto;display:block}.rp_5ZMIxq_portraitBox{border-radius:var(--dsw-radius-lg);width:150px;height:200px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:0 0 150px;padding:0;display:block;position:relative}.rp_5ZMIxq_portraitBox:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_5ZMIxq_portraitBox:disabled{cursor:not-allowed}.rp_5ZMIxq_portraitAction{box-sizing:border-box;border-radius:0 0 var(--dsw-radius-lg) var(--dsw-radius-lg);color:#fff;text-align:center;opacity:0;background:#0000009e;padding:7px 6px;font-size:12px;line-height:16px;transition:opacity .12s;position:absolute;bottom:1px;left:1px;right:1px}.rp_5ZMIxq_portraitBox:hover .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:focus-visible .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:disabled .rp_5ZMIxq_portraitAction{opacity:1}.rp_5ZMIxq_portraitError,.rp_5ZMIxq_portraitHint{margin:12px 24px 0;font-size:12px}.rp_5ZMIxq_portraitError{color:var(--dsw-alias-state-danger-primary)}.rp_5ZMIxq_portraitHint{color:var(--dsw-alias-label-secondary)}.rp_5ZMIxq_placeholder{box-sizing:border-box;color:var(--dsw-alias-label-secondary);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_initial{opacity:.6;font-size:48px;font-weight:500;line-height:1}.rp_5ZMIxq_missing{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_meta{flex-direction:column;flex:1 1 0;gap:10px;min-width:0;display:flex}.rp_5ZMIxq_section{border-top:.5px solid var(--dsw-alias-border-l4);flex-direction:column;gap:6px;padding-top:16px;display:flex}.rp_5ZMIxq_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:500;line-height:20px}.rp_5ZMIxq_question{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:14px;min-width:0;margin:4px 0 0;padding:14px;display:flex}.rp_5ZMIxq_questionTitle,.rp_5ZMIxq_optionTitle{color:var(--dsw-alias-label-secondary);padding:0 4px;font-size:12px;font-weight:500}.rp_5ZMIxq_optionFields{border:0;border-top:.5px solid var(--dsw-alias-border-l4);min-width:0;margin:2px 0 0;padding:14px 0 0}.rp_5ZMIxq_optionFields>.rp_5ZMIxq_optionTitle{padding:0}.rp_5ZMIxq_questionActions,.rp_5ZMIxq_itemActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_questionActions{justify-content:space-between}.rp_5ZMIxq_itemActions{justify-content:flex-end;margin-top:8px}.rp_5ZMIxq_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 24px;font-size:13px}.rp_5ZMIxq_section .rp_5ZMIxq_empty{padding:0}.rp_5ZMIxq_tabsSpace{flex:auto}.rp_5ZMIxq_voiceInline{min-width:220px;color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_5ZMIxq_bar{border-bottom:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);flex:none;justify-content:flex-end;align-items:center;gap:8px;padding:6px 24px;display:flex}.rp_5ZMIxq_barText{color:var(--dsw-alias-label-secondary);margin-right:auto;font-size:12px}.rp_5ZMIxq_nameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:var(--dsw-alias-label-primary);font:inherit;padding:4px 8px;font-size:14px;line-height:22px}.rp_5ZMIxq_row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px 12px;display:grid}.rp_5ZMIxq_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5ZMIxq_wide{grid-column:1/-1}.rp_5ZMIxq_label,.rp_5ZMIxq_help{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_5ZMIxq_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px;font-size:13px}.rp_5ZMIxq_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:96px;color:inherit;font:inherit;resize:vertical;padding:6px 8px;font-size:13px;line-height:20px}.rp_5ZMIxq_goal{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:8px;padding:10px;display:flex}.rp_5ZMIxq_row>.rp_5ZMIxq_select{width:auto;min-width:110px}.rp_5ZMIxq_select:focus-visible,.rp_5ZMIxq_area:focus-visible,.rp_5ZMIxq_nameInput:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_5ZMIxq_sheet{padding-inline:16px}.rp_5ZMIxq_head{flex-direction:column}.rp_5ZMIxq_portraitBox,.rp_5ZMIxq_portrait{width:120px}.rp_5ZMIxq_portraitBox{flex-basis:120px;height:160px}.rp_5ZMIxq_bar{flex-wrap:wrap;padding-inline:16px}.rp_5ZMIxq_voiceInline{width:100%;min-width:0}}";
5468
+ const key$42 = "src/client/world-editor/CharactersPanel.module.css";
5469
+ let tag$42 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$42) + "]");
5470
+ if (tag$42 === null) {
5471
+ tag$42 = document.createElement("style");
5472
+ tag$42.dataset.plugin = "@dsh-agentic-roleplay/core";
5473
+ tag$42.dataset.pluginCss = key$42;
5474
+ document.head.appendChild(tag$42);
5319
5475
  }
5320
- tag$41.textContent = css$41;
5476
+ tag$42.textContent = css$42;
5321
5477
  var CharactersPanel_module_css_default = {
5322
- "sheet": "rp_5ZMIxq_sheet",
5323
- "help": "rp_5ZMIxq_help",
5324
- "error": "rp_5ZMIxq_error",
5325
- "select": "rp_5ZMIxq_select",
5326
- "row": "rp_5ZMIxq_row",
5327
- "body": "rp_5ZMIxq_body",
5478
+ "portrait": "rp_5ZMIxq_portrait",
5479
+ "tabsSpace": "rp_5ZMIxq_tabsSpace",
5480
+ "area": "rp_5ZMIxq_area",
5481
+ "portraitError": "rp_5ZMIxq_portraitError",
5482
+ "tab": "rp_5ZMIxq_tab",
5483
+ "barText": "rp_5ZMIxq_barText",
5328
5484
  "portraitBox": "rp_5ZMIxq_portraitBox",
5329
5485
  "voiceInline": "rp_5ZMIxq_voiceInline",
5330
- "area": "rp_5ZMIxq_area",
5486
+ "portraitAction": "rp_5ZMIxq_portraitAction",
5487
+ "placeholder": "rp_5ZMIxq_placeholder",
5488
+ "sectionTitle": "rp_5ZMIxq_sectionTitle",
5489
+ "meta": "rp_5ZMIxq_meta",
5490
+ "empty": "rp_5ZMIxq_empty",
5331
5491
  "head": "rp_5ZMIxq_head",
5332
- "question": "rp_5ZMIxq_question",
5333
- "wide": "rp_5ZMIxq_wide",
5334
- "nameInput": "rp_5ZMIxq_nameInput",
5335
- "tabOn": "rp_5ZMIxq_tabOn",
5336
5492
  "missing": "rp_5ZMIxq_missing",
5337
- "portraitError": "rp_5ZMIxq_portraitError",
5338
- "empty": "rp_5ZMIxq_empty",
5339
- "tabsSpace": "rp_5ZMIxq_tabsSpace",
5340
- "label": "rp_5ZMIxq_label",
5341
5493
  "tabs": "rp_5ZMIxq_tabs",
5342
- "barText": "rp_5ZMIxq_barText",
5343
5494
  "questionTitle": "rp_5ZMIxq_questionTitle",
5344
- "grid": "rp_5ZMIxq_grid",
5345
- "panel": "rp_5ZMIxq_panel",
5346
- "portraitHint": "rp_5ZMIxq_portraitHint",
5347
- "tab": "rp_5ZMIxq_tab",
5348
- "field": "rp_5ZMIxq_field",
5349
- "sectionTitle": "rp_5ZMIxq_sectionTitle",
5350
- "placeholder": "rp_5ZMIxq_placeholder",
5351
5495
  "itemActions": "rp_5ZMIxq_itemActions",
5352
- "goal": "rp_5ZMIxq_goal",
5496
+ "row": "rp_5ZMIxq_row",
5497
+ "section": "rp_5ZMIxq_section",
5498
+ "tabOn": "rp_5ZMIxq_tabOn",
5499
+ "select": "rp_5ZMIxq_select",
5500
+ "nameInput": "rp_5ZMIxq_nameInput",
5501
+ "field": "rp_5ZMIxq_field",
5502
+ "portraitHint": "rp_5ZMIxq_portraitHint",
5503
+ "initial": "rp_5ZMIxq_initial",
5353
5504
  "bar": "rp_5ZMIxq_bar",
5505
+ "grid": "rp_5ZMIxq_grid",
5506
+ "wide": "rp_5ZMIxq_wide",
5507
+ "label": "rp_5ZMIxq_label",
5508
+ "body": "rp_5ZMIxq_body",
5509
+ "sheet": "rp_5ZMIxq_sheet",
5510
+ "help": "rp_5ZMIxq_help",
5511
+ "error": "rp_5ZMIxq_error",
5512
+ "goal": "rp_5ZMIxq_goal",
5513
+ "question": "rp_5ZMIxq_question",
5514
+ "optionTitle": "rp_5ZMIxq_optionTitle",
5354
5515
  "questionActions": "rp_5ZMIxq_questionActions",
5355
- "portraitAction": "rp_5ZMIxq_portraitAction",
5356
- "section": "rp_5ZMIxq_section",
5357
- "meta": "rp_5ZMIxq_meta",
5358
5516
  "optionFields": "rp_5ZMIxq_optionFields",
5359
- "portrait": "rp_5ZMIxq_portrait",
5360
- "initial": "rp_5ZMIxq_initial",
5361
- "optionTitle": "rp_5ZMIxq_optionTitle"
5517
+ "panel": "rp_5ZMIxq_panel"
5362
5518
  };
5363
5519
  // src/client/world-editor/EditorTabs.tsx
5364
5520
  /** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
@@ -7066,50 +7222,50 @@ window.__ModuleLoader__.load({
7066
7222
  });
7067
7223
  }
7068
7224
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/RelationsPanel.module.css.mjs
7069
- const css$40 = ".rp_7pEHTW_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex;position:relative}.rp_7pEHTW_toolbar{border-bottom:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:4px;padding:8px 16px;display:flex}.rp_7pEHTW_filter{border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:4px 10px}.rp_7pEHTW_filterOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_filter:focus-visible,.rp_7pEHTW_edge:focus-visible,.rp_7pEHTW_graphEdge:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}.rp_7pEHTW_space{flex:1}.rp_7pEHTW_perspective{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_7pEHTW_perspective select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);max-width:180px;min-height:32px;color:inherit;padding:4px 8px}.rp_7pEHTW_workspace{flex:1 1 0;grid-template-columns:minmax(220px,34%) minmax(320px,1fr);min-height:0;display:grid}.rp_7pEHTW_list{border-right:.5px solid var(--dsw-alias-border-l3);overflow-y:auto}.rp_7pEHTW_edge{border:0;border-bottom:.5px solid var(--dsw-alias-border-l4);width:100%;min-height:48px;color:inherit;text-align:left;cursor:pointer;background:0 0;flex-direction:column;gap:2px;padding:8px 16px;display:flex}.rp_7pEHTW_edgeOn{background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_edgeTitle{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rp_7pEHTW_edgeKind{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_7pEHTW_empty{color:var(--dsw-alias-label-tertiary);padding:20px}.rp_7pEHTW_inspector{min-width:0;padding:24px 24px 240px;overflow-y:auto}.rp_7pEHTW_head h2{margin:0 0 8px;font-size:16px}.rp_7pEHTW_entities{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:6px;display:flex}.rp_7pEHTW_notice{color:var(--dsw-alias-label-secondary);margin:24px 0}.rp_7pEHTW_form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;display:grid}.rp_7pEHTW_form label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:5px;font-size:12px;display:flex}.rp_7pEHTW_form select,.rp_7pEHTW_form textarea{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:6px 8px}.rp_7pEHTW_form textarea{resize:vertical;min-height:96px}.rp_7pEHTW_form select:focus-visible,.rp_7pEHTW_form textarea:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_7pEHTW_wide{grid-column:1/-1}.rp_7pEHTW_metrics{grid-column:1/-1;grid-template-columns:repeat(4,minmax(90px,1fr));gap:10px;display:grid}.rp_7pEHTW_check{align-self:end;align-items:center;min-height:32px;flex-direction:row!important}.rp_7pEHTW_actions{border-top:.5px solid var(--dsw-alias-border-l4);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:28px;padding-top:12px;display:flex}.rp_7pEHTW_status{color:var(--dsw-alias-label-secondary);margin-right:auto}.rp_7pEHTW_error{color:var(--dsw-alias-state-error-primary);margin-right:auto}.rp_7pEHTW_graph{background:radial-gradient(circle, var(--dsw-alias-bg-layer-2), transparent 70%);flex:1 1 0;min-height:360px;position:relative;overflow:hidden}.rp_7pEHTW_graph svg{width:100%;height:100%;min-height:520px}.rp_7pEHTW_graphEdge{cursor:pointer;stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_graphEdge:hover,.rp_7pEHTW_graphEdgeOn{stroke:var(--dsw-alias-state-business-primary);stroke-width:4px}.rp_7pEHTW_node circle{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_node_character circle{fill:color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_location circle{fill:color-mix(in srgb, #4a9 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_item circle{fill:color-mix(in srgb, #c90 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_faction circle{fill:color-mix(in srgb, #96c 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node text{fill:var(--dsw-alias-label-primary);pointer-events:none;font-size:12px}.rp_7pEHTW_graphInspector{box-sizing:border-box;border-radius:var(--dsw-radius-panel);background:var(--dsw-alias-bg-layer-1);width:min(480px,100% - 40px);max-height:62%;box-shadow:var(--dsw-elevation-panel);border:0;padding:18px;position:absolute;bottom:20px;right:20px;overflow-y:auto}@media (width<=760px){.rp_7pEHTW_workspace{grid-template-columns:1fr}.rp_7pEHTW_list{border-right:0;border-bottom:.5px solid var(--dsw-alias-border-l3);max-height:220px}.rp_7pEHTW_inspector{padding-inline:16px}.rp_7pEHTW_form{grid-template-columns:1fr}.rp_7pEHTW_wide,.rp_7pEHTW_metrics{grid-column:1}.rp_7pEHTW_metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rp_7pEHTW_graphInspector{width:calc(100% - 24px);bottom:12px;right:12px}}@media (pointer:coarse){.rp_7pEHTW_filter{min-height:44px}}";
7070
- const key$40 = "src/client/world-editor/RelationsPanel.module.css";
7071
- let tag$40 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$40) + "]");
7072
- if (tag$40 === null) {
7073
- tag$40 = document.createElement("style");
7074
- tag$40.dataset.plugin = "@dsh-agentic-roleplay/core";
7075
- tag$40.dataset.pluginCss = key$40;
7076
- document.head.appendChild(tag$40);
7225
+ const css$41 = ".rp_7pEHTW_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex;position:relative}.rp_7pEHTW_toolbar{border-bottom:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:4px;padding:8px 16px;display:flex}.rp_7pEHTW_filter{border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:4px 10px}.rp_7pEHTW_filterOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_filter:focus-visible,.rp_7pEHTW_edge:focus-visible,.rp_7pEHTW_graphEdge:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}.rp_7pEHTW_space{flex:1}.rp_7pEHTW_perspective{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_7pEHTW_perspective select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);max-width:180px;min-height:32px;color:inherit;padding:4px 8px}.rp_7pEHTW_workspace{flex:1 1 0;grid-template-columns:minmax(220px,34%) minmax(320px,1fr);min-height:0;display:grid}.rp_7pEHTW_list{border-right:.5px solid var(--dsw-alias-border-l3);overflow-y:auto}.rp_7pEHTW_edge{border:0;border-bottom:.5px solid var(--dsw-alias-border-l4);width:100%;min-height:48px;color:inherit;text-align:left;cursor:pointer;background:0 0;flex-direction:column;gap:2px;padding:8px 16px;display:flex}.rp_7pEHTW_edgeOn{background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_edgeTitle{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rp_7pEHTW_edgeKind{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_7pEHTW_empty{color:var(--dsw-alias-label-tertiary);padding:20px}.rp_7pEHTW_inspector{min-width:0;padding:24px 24px 240px;overflow-y:auto}.rp_7pEHTW_head h2{margin:0 0 8px;font-size:16px}.rp_7pEHTW_entities{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:6px;display:flex}.rp_7pEHTW_notice{color:var(--dsw-alias-label-secondary);margin:24px 0}.rp_7pEHTW_form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;display:grid}.rp_7pEHTW_form label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:5px;font-size:12px;display:flex}.rp_7pEHTW_form select,.rp_7pEHTW_form textarea{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:6px 8px}.rp_7pEHTW_form textarea{resize:vertical;min-height:96px}.rp_7pEHTW_form select:focus-visible,.rp_7pEHTW_form textarea:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_7pEHTW_wide{grid-column:1/-1}.rp_7pEHTW_metrics{grid-column:1/-1;grid-template-columns:repeat(4,minmax(90px,1fr));gap:10px;display:grid}.rp_7pEHTW_check{align-self:end;align-items:center;min-height:32px;flex-direction:row!important}.rp_7pEHTW_actions{border-top:.5px solid var(--dsw-alias-border-l4);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:28px;padding-top:12px;display:flex}.rp_7pEHTW_status{color:var(--dsw-alias-label-secondary);margin-right:auto}.rp_7pEHTW_error{color:var(--dsw-alias-state-error-primary);margin-right:auto}.rp_7pEHTW_graph{background:radial-gradient(circle, var(--dsw-alias-bg-layer-2), transparent 70%);flex:1 1 0;min-height:360px;position:relative;overflow:hidden}.rp_7pEHTW_graph svg{width:100%;height:100%;min-height:520px}.rp_7pEHTW_graphEdge{cursor:pointer;stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_graphEdge:hover,.rp_7pEHTW_graphEdgeOn{stroke:var(--dsw-alias-state-business-primary);stroke-width:4px}.rp_7pEHTW_node circle{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_node_character circle{fill:color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_location circle{fill:color-mix(in srgb, #4a9 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_item circle{fill:color-mix(in srgb, #c90 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_faction circle{fill:color-mix(in srgb, #96c 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node text{fill:var(--dsw-alias-label-primary);pointer-events:none;font-size:12px}.rp_7pEHTW_graphInspector{box-sizing:border-box;border-radius:var(--dsw-radius-panel);background:var(--dsw-alias-bg-layer-1);width:min(480px,100% - 40px);max-height:62%;box-shadow:var(--dsw-elevation-panel);border:0;padding:18px;position:absolute;bottom:20px;right:20px;overflow-y:auto}@media (width<=760px){.rp_7pEHTW_workspace{grid-template-columns:1fr}.rp_7pEHTW_list{border-right:0;border-bottom:.5px solid var(--dsw-alias-border-l3);max-height:220px}.rp_7pEHTW_inspector{padding-inline:16px}.rp_7pEHTW_form{grid-template-columns:1fr}.rp_7pEHTW_wide,.rp_7pEHTW_metrics{grid-column:1}.rp_7pEHTW_metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rp_7pEHTW_graphInspector{width:calc(100% - 24px);bottom:12px;right:12px}}@media (pointer:coarse){.rp_7pEHTW_filter{min-height:44px}}";
7226
+ const key$41 = "src/client/world-editor/RelationsPanel.module.css";
7227
+ let tag$41 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$41) + "]");
7228
+ if (tag$41 === null) {
7229
+ tag$41 = document.createElement("style");
7230
+ tag$41.dataset.plugin = "@dsh-agentic-roleplay/core";
7231
+ tag$41.dataset.pluginCss = key$41;
7232
+ document.head.appendChild(tag$41);
7077
7233
  }
7078
- tag$40.textContent = css$40;
7234
+ tag$41.textContent = css$41;
7079
7235
  var RelationsPanel_module_css_default = {
7236
+ "toolbar": "rp_7pEHTW_toolbar",
7237
+ "workspace": "rp_7pEHTW_workspace",
7238
+ "graphEdge": "rp_7pEHTW_graphEdge",
7239
+ "edgeTitle": "rp_7pEHTW_edgeTitle",
7240
+ "head": "rp_7pEHTW_head",
7080
7241
  "notice": "rp_7pEHTW_notice",
7081
- "panel": "rp_7pEHTW_panel",
7082
- "node_character": "rp_7pEHTW_node_character",
7083
- "space": "rp_7pEHTW_space",
7084
- "inspector": "rp_7pEHTW_inspector",
7085
- "filterOn": "rp_7pEHTW_filterOn",
7086
- "node": "rp_7pEHTW_node",
7087
- "node_faction": "rp_7pEHTW_node_faction",
7242
+ "check": "rp_7pEHTW_check",
7243
+ "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
7088
7244
  "list": "rp_7pEHTW_list",
7245
+ "node_item": "rp_7pEHTW_node_item",
7246
+ "empty": "rp_7pEHTW_empty",
7247
+ "edgeOn": "rp_7pEHTW_edgeOn",
7248
+ "space": "rp_7pEHTW_space",
7089
7249
  "actions": "rp_7pEHTW_actions",
7090
- "node_location": "rp_7pEHTW_node_location",
7091
- "filter": "rp_7pEHTW_filter",
7092
- "workspace": "rp_7pEHTW_workspace",
7250
+ "node_faction": "rp_7pEHTW_node_faction",
7251
+ "metrics": "rp_7pEHTW_metrics",
7252
+ "inspector": "rp_7pEHTW_inspector",
7253
+ "edge": "rp_7pEHTW_edge",
7093
7254
  "graph": "rp_7pEHTW_graph",
7094
- "empty": "rp_7pEHTW_empty",
7255
+ "perspective": "rp_7pEHTW_perspective",
7256
+ "panel": "rp_7pEHTW_panel",
7257
+ "filter": "rp_7pEHTW_filter",
7258
+ "entities": "rp_7pEHTW_entities",
7259
+ "form": "rp_7pEHTW_form",
7260
+ "node_character": "rp_7pEHTW_node_character",
7261
+ "graphInspector": "rp_7pEHTW_graphInspector",
7262
+ "filterOn": "rp_7pEHTW_filterOn",
7095
7263
  "wide": "rp_7pEHTW_wide",
7096
- "edgeOn": "rp_7pEHTW_edgeOn",
7097
7264
  "error": "rp_7pEHTW_error",
7098
- "status": "rp_7pEHTW_status",
7099
- "perspective": "rp_7pEHTW_perspective",
7100
- "toolbar": "rp_7pEHTW_toolbar",
7101
- "head": "rp_7pEHTW_head",
7102
- "check": "rp_7pEHTW_check",
7103
7265
  "edgeKind": "rp_7pEHTW_edgeKind",
7104
- "edge": "rp_7pEHTW_edge",
7105
- "form": "rp_7pEHTW_form",
7106
- "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
7107
- "metrics": "rp_7pEHTW_metrics",
7108
- "graphEdge": "rp_7pEHTW_graphEdge",
7109
- "edgeTitle": "rp_7pEHTW_edgeTitle",
7110
- "entities": "rp_7pEHTW_entities",
7111
- "node_item": "rp_7pEHTW_node_item",
7112
- "graphInspector": "rp_7pEHTW_graphInspector"
7266
+ "node_location": "rp_7pEHTW_node_location",
7267
+ "status": "rp_7pEHTW_status",
7268
+ "node": "rp_7pEHTW_node"
7113
7269
  };
7114
7270
  // src/client/world-editor/RelationsPanel.tsx
7115
7271
  const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
@@ -8467,20 +8623,20 @@ window.__ModuleLoader__.load({
8467
8623
  }
8468
8624
  };
8469
8625
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/pack-frame/PackFrame.module.css.mjs
8470
- const css$39 = ".rp_h_sbFq_frame{background:0 0;border:0;width:100%;display:block}.rp_h_sbFq_fill{height:100%;min-height:0}.rp_h_sbFq_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px 24px;font-size:13px;line-height:20px}.rp_h_sbFq_problems{color:var(--dsw-alias-label-tertiary);margin:8px 0 0;padding-left:18px;font-size:12px}.rp_h_sbFq_hud{box-sizing:border-box;width:min(800px,100%);margin:0 auto 8px;padding:0 16px}.rp_h_sbFq_tab{flex-direction:column;flex:1 1 0;width:100%;min-height:0;display:flex}";
8471
- const key$39 = "src/client/widgets/pack-frame/PackFrame.module.css";
8472
- let tag$39 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$39) + "]");
8473
- if (tag$39 === null) {
8474
- tag$39 = document.createElement("style");
8475
- tag$39.dataset.plugin = "@dsh-agentic-roleplay/core";
8476
- tag$39.dataset.pluginCss = key$39;
8477
- document.head.appendChild(tag$39);
8626
+ const css$40 = ".rp_h_sbFq_frame{background:0 0;border:0;width:100%;display:block}.rp_h_sbFq_fill{height:100%;min-height:0}.rp_h_sbFq_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px 24px;font-size:13px;line-height:20px}.rp_h_sbFq_problems{color:var(--dsw-alias-label-tertiary);margin:8px 0 0;padding-left:18px;font-size:12px}.rp_h_sbFq_hud{box-sizing:border-box;width:min(800px,100%);margin:0 auto 8px;padding:0 16px}.rp_h_sbFq_tab{flex-direction:column;flex:1 1 0;width:100%;min-height:0;display:flex}";
8627
+ const key$40 = "src/client/widgets/pack-frame/PackFrame.module.css";
8628
+ let tag$40 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$40) + "]");
8629
+ if (tag$40 === null) {
8630
+ tag$40 = document.createElement("style");
8631
+ tag$40.dataset.plugin = "@dsh-agentic-roleplay/core";
8632
+ tag$40.dataset.pluginCss = key$40;
8633
+ document.head.appendChild(tag$40);
8478
8634
  }
8479
- tag$39.textContent = css$39;
8635
+ tag$40.textContent = css$40;
8480
8636
  var PackFrame_module_css_default = {
8481
- "frame": "rp_h_sbFq_frame",
8482
- "message": "rp_h_sbFq_message",
8483
8637
  "fill": "rp_h_sbFq_fill",
8638
+ "message": "rp_h_sbFq_message",
8639
+ "frame": "rp_h_sbFq_frame",
8484
8640
  "problems": "rp_h_sbFq_problems",
8485
8641
  "hud": "rp_h_sbFq_hud",
8486
8642
  "tab": "rp_h_sbFq_tab"
@@ -8733,25 +8889,31 @@ window.__ModuleLoader__.load({
8733
8889
  const savePackFile = async (world, pack, path, text, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/interface/file?${packQuery(world, pack, path)}`, init("PUT", signal, { text })))).problems;
8734
8890
  const removePackFile = async (world, pack, path, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/interface/file?${packQuery(world, pack, path)}`, init("DELETE", signal)))).problems;
8735
8891
  const createPack = async (world, pack, name, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/interface/pack?${packQuery(world, pack)}`, init("POST", signal, { name })))).problems;
8892
+ const loadCheckpoints = async (world, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints?${query(world)}`, init("GET", signal)))).checkpoints;
8893
+ const makeCheckpoint = async (world, label, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints?${query(world)}`, init("POST", signal, { label })));
8894
+ const compareCheckpoint = async (world, checkpoint, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints/diff?${query(world)}&checkpoint=${encodeURIComponent(checkpoint)}`, init("GET", signal)));
8895
+ const restoreCheckpoint = async (world, checkpoint, signal) => {
8896
+ await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints/restore?${query(world)}`, init("POST", signal, { checkpoint })));
8897
+ };
8736
8898
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/PacksPanel.module.css.mjs
8737
- const css$38 = ".rp_FLaP7q_controls{flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0;display:flex}.rp_FLaP7q_group{color:var(--dsw-alias-label-tertiary);align-items:center;gap:4px;font-size:12px;display:inline-flex}.rp_FLaP7q_stage{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-base);max-width:100%;overflow:hidden}.rp_FLaP7q_stageTall{height:420px}.rp_FLaP7q_log{color:var(--dsw-alias-label-secondary);margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_files{columns:2 220px;margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_note{color:var(--dsw-alias-label-tertiary);font-size:12px}";
8738
- const key$38 = "src/client/world-editor/PacksPanel.module.css";
8739
- let tag$38 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$38) + "]");
8740
- if (tag$38 === null) {
8741
- tag$38 = document.createElement("style");
8742
- tag$38.dataset.plugin = "@dsh-agentic-roleplay/core";
8743
- tag$38.dataset.pluginCss = key$38;
8744
- document.head.appendChild(tag$38);
8899
+ const css$39 = ".rp_FLaP7q_controls{flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0;display:flex}.rp_FLaP7q_group{color:var(--dsw-alias-label-tertiary);align-items:center;gap:4px;font-size:12px;display:inline-flex}.rp_FLaP7q_stage{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-base);max-width:100%;overflow:hidden}.rp_FLaP7q_stageTall{height:420px}.rp_FLaP7q_log{color:var(--dsw-alias-label-secondary);margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_files{columns:2 220px;margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_note{color:var(--dsw-alias-label-tertiary);font-size:12px}";
8900
+ const key$39 = "src/client/world-editor/PacksPanel.module.css";
8901
+ let tag$39 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$39) + "]");
8902
+ if (tag$39 === null) {
8903
+ tag$39 = document.createElement("style");
8904
+ tag$39.dataset.plugin = "@dsh-agentic-roleplay/core";
8905
+ tag$39.dataset.pluginCss = key$39;
8906
+ document.head.appendChild(tag$39);
8745
8907
  }
8746
- tag$38.textContent = css$38;
8908
+ tag$39.textContent = css$39;
8747
8909
  var PacksPanel_module_css_default = {
8748
- "controls": "rp_FLaP7q_controls",
8749
8910
  "stageTall": "rp_FLaP7q_stageTall",
8750
- "stage": "rp_FLaP7q_stage",
8751
- "log": "rp_FLaP7q_log",
8911
+ "note": "rp_FLaP7q_note",
8752
8912
  "group": "rp_FLaP7q_group",
8913
+ "controls": "rp_FLaP7q_controls",
8914
+ "log": "rp_FLaP7q_log",
8753
8915
  "files": "rp_FLaP7q_files",
8754
- "note": "rp_FLaP7q_note"
8916
+ "stage": "rp_FLaP7q_stage"
8755
8917
  };
8756
8918
  // src/client/world-editor/PacksPanel.tsx
8757
8919
  const WIDTHS = {
@@ -9251,6 +9413,234 @@ window.__ModuleLoader__.load({
9251
9413
  })]
9252
9414
  });
9253
9415
  }
9416
+ // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CheckpointsPanel.module.css.mjs
9417
+ const css$38 = ".rp_srazXG_list{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.rp_srazXG_item{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:6px;padding:8px 12px;display:flex}.rp_srazXG_head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_srazXG_what{font-size:13px;font-weight:500}.rp_srazXG_when{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_srazXG_buttons{flex-wrap:wrap;justify-content:flex-end;gap:4px;margin-inline-start:auto;display:flex}.rp_srazXG_diff{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;padding:0 0 0 16px;font-size:12px}.rp_srazXG_diffTitle{margin:4px 0 2px;font-size:12px;font-weight:500}.rp_srazXG_create{align-items:center;gap:8px;margin-top:12px;display:flex}.rp_srazXG_createInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);min-width:min(180px,100%);min-height:28px;color:inherit;font:inherit;flex:auto;padding:2px 8px;font-size:12px}.rp_srazXG_notice{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px}@media (width<=480px){.rp_srazXG_create{flex-wrap:wrap}.rp_srazXG_createInput{flex-basis:100%}}";
9418
+ const key$38 = "src/client/world-editor/CheckpointsPanel.module.css";
9419
+ let tag$38 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$38) + "]");
9420
+ if (tag$38 === null) {
9421
+ tag$38 = document.createElement("style");
9422
+ tag$38.dataset.plugin = "@dsh-agentic-roleplay/core";
9423
+ tag$38.dataset.pluginCss = key$38;
9424
+ document.head.appendChild(tag$38);
9425
+ }
9426
+ tag$38.textContent = css$38;
9427
+ var CheckpointsPanel_module_css_default = {
9428
+ "item": "rp_srazXG_item",
9429
+ "what": "rp_srazXG_what",
9430
+ "diff": "rp_srazXG_diff",
9431
+ "notice": "rp_srazXG_notice",
9432
+ "when": "rp_srazXG_when",
9433
+ "diffTitle": "rp_srazXG_diffTitle",
9434
+ "head": "rp_srazXG_head",
9435
+ "create": "rp_srazXG_create",
9436
+ "buttons": "rp_srazXG_buttons",
9437
+ "list": "rp_srazXG_list",
9438
+ "createInput": "rp_srazXG_createInput"
9439
+ };
9440
+ // src/client/world-editor/CheckpointsPanel.tsx
9441
+ const messageOf$12 = (error) => error instanceof Error ? error.message : String(error);
9442
+ /** The copies of a world's files kept for taking its authoring back: when each was made, how the world differs from it now, and putting the world back as it was. */
9443
+ function CheckpointsPanel({ t, worldId, actions, onRestored }) {
9444
+ const say = (0, react.useCallback)((key, values) => t(`cp_${key}`, values), [t]);
9445
+ const [list, setList] = (0, react.useState)();
9446
+ const [label, setLabel] = (0, react.useState)("");
9447
+ const [open, setOpen] = (0, react.useState)();
9448
+ const [confirming, setConfirming] = (0, react.useState)();
9449
+ const [busy, setBusy] = (0, react.useState)(false);
9450
+ const [error, setError] = (0, react.useState)();
9451
+ const [done, setDone] = (0, react.useState)(false);
9452
+ const read = (0, react.useCallback)((signal) => {
9453
+ loadCheckpoints(worldId, signal).then(setList, (failure) => {
9454
+ if (!signal.aborted) setList({ failed: messageOf$12(failure) });
9455
+ });
9456
+ }, [worldId]);
9457
+ (0, react.useEffect)(() => {
9458
+ const abort = new AbortController();
9459
+ read(abort.signal);
9460
+ return () => {
9461
+ abort.abort();
9462
+ };
9463
+ }, [read]);
9464
+ const run = (work) => {
9465
+ setBusy(true);
9466
+ setError(void 0);
9467
+ setDone(false);
9468
+ work().catch((failure) => {
9469
+ setError(messageOf$12(failure));
9470
+ }).finally(() => {
9471
+ setBusy(false);
9472
+ });
9473
+ };
9474
+ const create = () => run(async () => {
9475
+ await makeCheckpoint(worldId, label, new AbortController().signal);
9476
+ setLabel("");
9477
+ read(new AbortController().signal);
9478
+ });
9479
+ const compare = (id) => {
9480
+ if (open?.id === id) {
9481
+ setOpen(void 0);
9482
+ return;
9483
+ }
9484
+ setOpen({ id });
9485
+ run(async () => {
9486
+ const diff = await compareCheckpoint(worldId, id, new AbortController().signal);
9487
+ setOpen({
9488
+ id,
9489
+ diff
9490
+ });
9491
+ });
9492
+ };
9493
+ const restore = (id) => run(async () => {
9494
+ await restoreCheckpoint(worldId, id, new AbortController().signal);
9495
+ setConfirming(void 0);
9496
+ setOpen(void 0);
9497
+ setDone(true);
9498
+ read(new AbortController().signal);
9499
+ onRestored();
9500
+ });
9501
+ const reason = (entry) => entry.reason === "turn" ? say("reasonTurn", { turn: entry.turn ?? 0 }) : entry.reason === "before-restore" ? say("reasonBefore") : entry.label === "" ? say("reasonManual") : entry.label;
9502
+ const paths = (title, files) => files.length === 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9503
+ className: CheckpointsPanel_module_css_default.diffTitle,
9504
+ children: title
9505
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
9506
+ className: CheckpointsPanel_module_css_default.diff,
9507
+ children: files.map((path) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: path }, path))
9508
+ })] });
9509
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9510
+ className: CharactersPanel_module_css_default.panel,
9511
+ "data-testid": "roleplay-world-checkpoints",
9512
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9513
+ className: CharactersPanel_module_css_default.tabs,
9514
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: CharactersPanel_module_css_default.tabsSpace }), actions]
9515
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9516
+ className: CharactersPanel_module_css_default.body,
9517
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
9518
+ className: CharactersPanel_module_css_default.sheet,
9519
+ children: [
9520
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
9521
+ className: CharactersPanel_module_css_default.sectionTitle,
9522
+ children: say("title")
9523
+ }),
9524
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9525
+ className: CharactersPanel_module_css_default.help,
9526
+ children: say("help")
9527
+ }),
9528
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9529
+ className: CheckpointsPanel_module_css_default.create,
9530
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9531
+ className: CheckpointsPanel_module_css_default.createInput,
9532
+ value: label,
9533
+ placeholder: say("labelPlaceholder"),
9534
+ "aria-label": say("create"),
9535
+ disabled: busy,
9536
+ onChange: (event) => {
9537
+ setLabel(event.target.value);
9538
+ },
9539
+ onKeyDown: (event) => {
9540
+ if (event.key === "Enter") create();
9541
+ }
9542
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9543
+ variant: "outline",
9544
+ size: "sm",
9545
+ disabled: busy,
9546
+ onClick: create,
9547
+ children: say("create")
9548
+ })]
9549
+ }),
9550
+ error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9551
+ className: CharactersPanel_module_css_default.error,
9552
+ role: "alert",
9553
+ children: say("failed", { message: error })
9554
+ }),
9555
+ done && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9556
+ className: CheckpointsPanel_module_css_default.notice,
9557
+ role: "status",
9558
+ children: say("restored")
9559
+ }),
9560
+ list === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9561
+ className: CharactersPanel_module_css_default.empty,
9562
+ children: say("loading")
9563
+ }),
9564
+ list !== void 0 && "failed" in list && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9565
+ className: CharactersPanel_module_css_default.error,
9566
+ role: "alert",
9567
+ children: say("loadFailed", { message: list.failed })
9568
+ }),
9569
+ Array.isArray(list) && list.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9570
+ className: CharactersPanel_module_css_default.empty,
9571
+ children: say("empty")
9572
+ }),
9573
+ Array.isArray(list) && list.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
9574
+ className: CheckpointsPanel_module_css_default.list,
9575
+ children: list.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
9576
+ className: CheckpointsPanel_module_css_default.item,
9577
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9578
+ className: CheckpointsPanel_module_css_default.head,
9579
+ children: [
9580
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9581
+ className: CheckpointsPanel_module_css_default.what,
9582
+ children: reason(entry)
9583
+ }),
9584
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9585
+ className: CheckpointsPanel_module_css_default.when,
9586
+ children: [
9587
+ new Date(entry.at).toLocaleString(t("language")),
9588
+ " · ",
9589
+ say("files", { count: entry.files })
9590
+ ]
9591
+ }),
9592
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9593
+ className: CheckpointsPanel_module_css_default.buttons,
9594
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9595
+ variant: "outline",
9596
+ size: "sm",
9597
+ disabled: busy,
9598
+ onClick: () => {
9599
+ compare(entry.id);
9600
+ },
9601
+ children: open?.id === entry.id ? say("hideCompare") : say("compare")
9602
+ }), confirming === entry.id ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9603
+ variant: "primary",
9604
+ size: "sm",
9605
+ disabled: busy,
9606
+ onClick: () => {
9607
+ restore(entry.id);
9608
+ },
9609
+ children: busy ? say("working") : say("confirmRestore")
9610
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9611
+ variant: "ghost",
9612
+ size: "sm",
9613
+ disabled: busy,
9614
+ onClick: () => {
9615
+ setConfirming(void 0);
9616
+ },
9617
+ children: say("cancel")
9618
+ })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9619
+ variant: "outline",
9620
+ size: "sm",
9621
+ disabled: busy,
9622
+ onClick: () => {
9623
+ setConfirming(entry.id);
9624
+ },
9625
+ children: say("restore")
9626
+ })]
9627
+ })
9628
+ ]
9629
+ }), open?.id === entry.id && open.diff !== void 0 && (open.diff.changed.length + open.diff.added.length + open.diff.removed.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9630
+ className: CheckpointsPanel_module_css_default.when,
9631
+ children: say("same")
9632
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
9633
+ paths(say("changed"), open.diff.changed),
9634
+ paths(say("added"), open.diff.added),
9635
+ paths(say("removed"), open.diff.removed)
9636
+ ] }))]
9637
+ }, entry.id))
9638
+ })
9639
+ ]
9640
+ })
9641
+ })]
9642
+ });
9643
+ }
9254
9644
  // src/client/world-editor/trigger-text.ts
9255
9645
  function namesOf(world) {
9256
9646
  const by = (list) => {
@@ -9644,13 +10034,107 @@ window.__ModuleLoader__.load({
9644
10034
  });
9645
10035
  }
9646
10036
  // src/shared/opening.ts
9647
- /** Whether any part is spoken by a character: an opening with none is only narration, which a plain text says as well. */
9648
- const hasSpeech = (parts) => parts.some((part) => part.type === "utterance");
10037
+ /** The words of an opening as one text: its parts, a blank line between. */
10038
+ const partsText = (parts) => parts.flatMap((part) => part.type === "image" ? [] : [part.text]).join("\n\n");
10039
+ /** The folders of a world's `images/` that a story starts with a copy of; an opening may show a picture from any of them. */
10040
+ const IMAGE_FOLDERS = [
10041
+ "library",
10042
+ "characters",
10043
+ "locations",
10044
+ "items",
10045
+ "global"
10046
+ ];
10047
+ /** Whether a path names a picture of a world's `images/` that its stories carry: relative, in one of the copied folders, with no dot segments and no backslashes. */
10048
+ function isImagePath(path) {
10049
+ const segments = path.split("/");
10050
+ const extension = /\.([a-z0-9]+)$/i.exec(path)?.[1]?.toLowerCase();
10051
+ const served = extension === "png" || segments[0] === "library" && [
10052
+ "jpg",
10053
+ "jpeg",
10054
+ "webp",
10055
+ "gif",
10056
+ "avif"
10057
+ ].includes(extension ?? "");
10058
+ return path.length <= 300 && served && !path.includes("\\") && segments.length >= 2 && IMAGE_FOLDERS.includes(segments[0]) && segments.every((segment) => segment !== "" && segment !== "." && segment !== "..");
10059
+ }
10060
+ // src/client/widgets/gallery-view/gallery-api.ts
10061
+ const route = (target, path = "") => `${API_PREFIX}/${target.kind}/gallery${path}?id=${encodeURIComponent(target.id)}`;
10062
+ async function failure$1(response) {
10063
+ const body = await response.json().catch(() => void 0);
10064
+ return new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
10065
+ }
10066
+ async function loadGallery(target, signal) {
10067
+ const response = await fetch(route(target), {
10068
+ credentials: "same-origin",
10069
+ signal
10070
+ });
10071
+ if (!response.ok) throw await failure$1(response);
10072
+ return await response.json();
10073
+ }
10074
+ /** Adds a picture to the library. @returns its path. */
10075
+ async function uploadImage(target, file, signal) {
10076
+ const response = await fetch(route(target, "/upload"), {
10077
+ method: "POST",
10078
+ credentials: "same-origin",
10079
+ headers: {
10080
+ "x-file-name": encodeURIComponent(file.name),
10081
+ "content-type": "application/octet-stream"
10082
+ },
10083
+ body: file,
10084
+ signal
10085
+ });
10086
+ if (!response.ok) throw await failure$1(response);
10087
+ return (await response.json()).path;
10088
+ }
10089
+ async function updateImage(target, path, update, signal) {
10090
+ const response = await fetch(`${route(target)}&path=${encodeURIComponent(path)}`, {
10091
+ method: "PUT",
10092
+ credentials: "same-origin",
10093
+ headers: { "content-type": "application/json" },
10094
+ body: JSON.stringify(update),
10095
+ signal
10096
+ });
10097
+ if (!response.ok) throw await failure$1(response);
10098
+ return await response.json();
10099
+ }
10100
+ /** Has a model that reads images describe a picture of a world, replacing its description, tags and subjects. */
10101
+ async function describeImage(target, path, signal) {
10102
+ const response = await fetch(`${route(target, "/describe")}&path=${encodeURIComponent(path)}`, {
10103
+ method: "POST",
10104
+ credentials: "same-origin",
10105
+ signal
10106
+ });
10107
+ if (!response.ok) throw await failure$1(response);
10108
+ return await response.json();
10109
+ }
10110
+ const imageUrl = (target, image) => `${route(target, "/file")}&path=${encodeURIComponent(image.path)}&v=${encodeURIComponent(image.createdAt)}`;
9649
10111
  // src/client/world-editor/OpeningEditor.tsx
9650
- const words$1 = (parts) => parts.map((part) => part.text).join("\n\n");
10112
+ const words$1 = partsText;
10113
+ /** What a picture is called in a list: what it shows, else the name it was added under, else its path. */
10114
+ const nameOf$1 = (image) => image.description?.trim().slice(0, 70) || image.originalName || image.path;
9651
10115
  /** An opening, as plain narration or as ordered parts of narration and spoken lines; the person chooses the form and nothing is converted behind their back. */
9652
- function OpeningEditor({ t, value, characters, rows = 6, onChange }) {
10116
+ function OpeningEditor({ t, value, characters, worldId, rows = 6, onChange }) {
9653
10117
  const parts = value.parts;
10118
+ const [pictures, setPictures] = (0, react.useState)([]);
10119
+ const target = worldId === void 0 ? void 0 : {
10120
+ kind: "worlds",
10121
+ id: worldId
10122
+ };
10123
+ (0, react.useEffect)(() => {
10124
+ if (worldId === void 0) return;
10125
+ const abort = new AbortController();
10126
+ loadGallery({
10127
+ kind: "worlds",
10128
+ id: worldId
10129
+ }, abort.signal).then((contents) => {
10130
+ setPictures(contents.images.filter((image) => image.unreadable !== true && isImagePath(image.path)));
10131
+ }, () => {
10132
+ setPictures([]);
10133
+ });
10134
+ return () => {
10135
+ abort.abort();
10136
+ };
10137
+ }, [worldId]);
9654
10138
  if (parts === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9655
10139
  className: CharactersPanel_module_css_default.wide,
9656
10140
  children: [
@@ -9705,7 +10189,77 @@ window.__ModuleLoader__.load({
9705
10189
  className: CharactersPanel_module_css_default.help,
9706
10190
  children: t("op_partsHelp")
9707
10191
  }),
9708
- parts.map((part, at) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10192
+ parts.map((part, at) => part.type === "image" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10193
+ className: CharactersPanel_module_css_default.grid,
10194
+ "data-testid": "roleplay-opening-picture",
10195
+ children: [
10196
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
10197
+ className: CharactersPanel_module_css_default.field,
10198
+ children: [
10199
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10200
+ className: CharactersPanel_module_css_default.label,
10201
+ children: t("op_picture")
10202
+ }),
10203
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
10204
+ className: CharactersPanel_module_css_default.select,
10205
+ value: part.path,
10206
+ onChange: (event) => {
10207
+ change(at, {
10208
+ type: "image",
10209
+ path: event.target.value
10210
+ });
10211
+ },
10212
+ children: [!pictures.some((image) => image.path === part.path) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
10213
+ value: part.path,
10214
+ children: part.path
10215
+ }), pictures.map((image) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
10216
+ value: image.path,
10217
+ children: nameOf$1(image)
10218
+ }, image.path))]
10219
+ }),
10220
+ !pictures.some((image) => image.path === part.path) && pictures.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10221
+ className: CharactersPanel_module_css_default.help,
10222
+ children: t("op_pictureMissing")
10223
+ })
10224
+ ]
10225
+ }),
10226
+ target !== void 0 && pictures.find((image) => image.path === part.path) !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
10227
+ src: imageUrl(target, pictures.find((image) => image.path === part.path)),
10228
+ alt: "",
10229
+ style: {
10230
+ maxHeight: 72,
10231
+ maxWidth: 128,
10232
+ objectFit: "cover"
10233
+ }
10234
+ }),
10235
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10236
+ variant: "ghost",
10237
+ size: "sm",
10238
+ disabled: at === 0,
10239
+ onClick: () => {
10240
+ move(at, -1);
10241
+ },
10242
+ children: t("op_up")
10243
+ }),
10244
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10245
+ variant: "ghost",
10246
+ size: "sm",
10247
+ disabled: at === parts.length - 1,
10248
+ onClick: () => {
10249
+ move(at, 1);
10250
+ },
10251
+ children: t("op_down")
10252
+ }),
10253
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10254
+ variant: "ghost",
10255
+ size: "sm",
10256
+ onClick: () => {
10257
+ set(parts.filter((_, index) => index !== at));
10258
+ },
10259
+ children: t("op_remove")
10260
+ })
10261
+ ]
10262
+ }, at) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9709
10263
  className: CharactersPanel_module_css_default.grid,
9710
10264
  children: [
9711
10265
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
@@ -9814,8 +10368,21 @@ window.__ModuleLoader__.load({
9814
10368
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
9815
10369
  variant: "ghost",
9816
10370
  size: "sm",
9817
- disabled: hasSpeech(parts),
9818
- title: hasSpeech(parts) ? t("op_toPlainBlocked") : void 0,
10371
+ disabled: worldId === void 0 || pictures.length === 0,
10372
+ title: pictures.length === 0 ? t("op_noPictures") : t("op_choosePicture"),
10373
+ onClick: () => {
10374
+ set([...parts, {
10375
+ type: "image",
10376
+ path: pictures[0].path
10377
+ }]);
10378
+ },
10379
+ children: t("op_addImage")
10380
+ }),
10381
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10382
+ variant: "ghost",
10383
+ size: "sm",
10384
+ disabled: parts.some((part) => part.type !== "narration"),
10385
+ title: parts.some((part) => part.type !== "narration") ? t("op_toPlainBlockedMore") : void 0,
9819
10386
  onClick: () => {
9820
10387
  onChange({ text: words$1(parts) });
9821
10388
  },
@@ -10028,11 +10595,11 @@ window.__ModuleLoader__.load({
10028
10595
  tag$37.textContent = css$37;
10029
10596
  var SamplingFields_module_css_default = {
10030
10597
  "label": "rp_9vxYSG_label",
10598
+ "root": "rp_9vxYSG_root",
10031
10599
  "field": "rp_9vxYSG_field",
10032
10600
  "grid": "rp_9vxYSG_grid",
10033
- "input": "rp_9vxYSG_input",
10034
- "root": "rp_9vxYSG_root",
10035
- "help": "rp_9vxYSG_help"
10601
+ "help": "rp_9vxYSG_help",
10602
+ "input": "rp_9vxYSG_input"
10036
10603
  };
10037
10604
  // src/client/widgets/sampling-fields/SamplingFields.tsx
10038
10605
  const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
@@ -10463,7 +11030,7 @@ window.__ModuleLoader__.load({
10463
11030
  title: entry.title.trim(),
10464
11031
  ...entry.parts === void 0 ? { text: entry.text.trim() } : { parts: entry.parts },
10465
11032
  ...(entry.character ?? "") === "" ? {} : { character: entry.character }
10466
- })).filter((entry) => "text" in entry ? entry.text !== "" : entry.parts.some((part) => part.text.trim() !== ""));
11033
+ })).filter((entry) => "text" in entry ? entry.text !== "" : entry.parts.some((part) => part.type === "image" || part.text.trim() !== ""));
10467
11034
  if (JSON.stringify(cleaned(draft.alternates)) !== JSON.stringify(cleaned(saved.alternates))) edit["alternateOpenings"] = cleaned(draft.alternates);
10468
11035
  if (JSON.stringify(questionsOfDraft(draft.questions)) !== JSON.stringify(questionsOfDraft(saved.questions))) edit["startQuestions"] = questionsOfDraft(draft.questions);
10469
11036
  return edit;
@@ -10649,6 +11216,7 @@ window.__ModuleLoader__.load({
10649
11216
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OpeningEditor, {
10650
11217
  t,
10651
11218
  characters: cast,
11219
+ worldId,
10652
11220
  rows: 8,
10653
11221
  value: {
10654
11222
  text: draft.opening,
@@ -10712,6 +11280,7 @@ window.__ModuleLoader__.load({
10712
11280
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OpeningEditor, {
10713
11281
  t,
10714
11282
  characters: cast,
11283
+ worldId,
10715
11284
  rows: 5,
10716
11285
  value: {
10717
11286
  text: entry.text,
@@ -11885,16 +12454,16 @@ window.__ModuleLoader__.load({
11885
12454
  tag$36.textContent = css$36;
11886
12455
  var ToolSwitches_module_css_default = {
11887
12456
  "agentName": "rp_CjoFLq_agentName",
11888
- "toolText": "rp_CjoFLq_toolText",
11889
- "title": "rp_CjoFLq_title",
11890
- "help": "rp_CjoFLq_help",
11891
- "agent": "rp_CjoFLq_agent",
11892
12457
  "default": "rp_CjoFLq_default",
11893
- "external": "rp_CjoFLq_external",
11894
- "tool": "rp_CjoFLq_tool",
11895
- "root": "rp_CjoFLq_root",
12458
+ "agent": "rp_CjoFLq_agent",
11896
12459
  "error": "rp_CjoFLq_error",
11897
- "hint": "rp_CjoFLq_hint"
12460
+ "title": "rp_CjoFLq_title",
12461
+ "tool": "rp_CjoFLq_tool",
12462
+ "external": "rp_CjoFLq_external",
12463
+ "help": "rp_CjoFLq_help",
12464
+ "hint": "rp_CjoFLq_hint",
12465
+ "toolText": "rp_CjoFLq_toolText",
12466
+ "root": "rp_CjoFLq_root"
11898
12467
  };
11899
12468
  // src/client/widgets/tool-switches/ToolSwitches.tsx
11900
12469
  /**
@@ -13113,49 +13682,20 @@ window.__ModuleLoader__.load({
13113
13682
  page.removeEventListener?.("visibilitychange", listener);
13114
13683
  };
13115
13684
  }
13116
- // src/client/widgets/gallery-view/gallery-api.ts
13117
- const route = (target, path = "") => `${API_PREFIX}/${target.kind}/gallery${path}?id=${encodeURIComponent(target.id)}`;
13118
- async function failure$1(response) {
13119
- const body = await response.json().catch(() => void 0);
13120
- return new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
13121
- }
13122
- async function loadGallery(target, signal) {
13123
- const response = await fetch(route(target), {
13124
- credentials: "same-origin",
13125
- signal
13126
- });
13127
- if (!response.ok) throw await failure$1(response);
13128
- return await response.json();
13129
- }
13130
- /** Adds a picture to the library. @returns its path. */
13131
- async function uploadImage(target, file, signal) {
13132
- const response = await fetch(route(target, "/upload"), {
13133
- method: "POST",
13134
- credentials: "same-origin",
13135
- headers: {
13136
- "x-file-name": encodeURIComponent(file.name),
13137
- "content-type": "application/octet-stream"
13138
- },
13139
- body: file,
13140
- signal
13141
- });
13142
- if (!response.ok) throw await failure$1(response);
13143
- return (await response.json()).path;
13144
- }
13145
- async function updateImage(target, path, update, signal) {
13146
- const response = await fetch(`${route(target)}&path=${encodeURIComponent(path)}`, {
13147
- method: "PUT",
13148
- credentials: "same-origin",
13149
- headers: { "content-type": "application/json" },
13150
- body: JSON.stringify(update),
13151
- signal
13152
- });
13153
- if (!response.ok) throw await failure$1(response);
13154
- return await response.json();
13685
+ // src/client/widgets/gallery-view/polling.ts
13686
+ /** How often the list is read again while pictures are waiting to be described. */
13687
+ const POLL_MS$3 = 3e3;
13688
+ /** Whether a quiet read found nothing new, so the page keeps what it shows and nothing is drawn again. */
13689
+ const sameGallery = (a, b) => JSON.stringify(a) === JSON.stringify(b);
13690
+ /**
13691
+ * Whether a session's gallery has pictures being described in the background, which is what makes it read the list again by itself. A world's gallery never does: nothing describes its
13692
+ * pictures but the person pressing Describe, and the answer comes back to that press. A picture whose description failed is not waiting.
13693
+ */
13694
+ function awaitsDescriptions(kind, contents) {
13695
+ return kind !== "worlds" && contents !== void 0 && contents.images.some((image) => image.pending === true && contents.failures[image.path] === void 0);
13155
13696
  }
13156
- const imageUrl = (target, image) => `${route(target, "/file")}&path=${encodeURIComponent(image.path)}&v=${encodeURIComponent(image.createdAt)}`;
13157
13697
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/gallery-view/GalleryView.module.css.mjs
13158
- const css$34 = ".rp_9pSHmG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_9pSHmG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.rp_9pSHmG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_9pSHmG_select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_9pSHmG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_9pSHmG_cell{min-width:0}.rp_9pSHmG_thumb{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;flex-direction:column;padding:0;display:flex;overflow:hidden}.rp_9pSHmG_open{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}.rp_9pSHmG_thumb:hover{border-color:var(--dsw-alias-border-l4)}.rp_9pSHmG_image{aspect-ratio:1;object-fit:cover;background:var(--dsw-alias-bg-layer-3);width:100%;display:block}.rp_9pSHmG_caption{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-secondary);padding:6px 8px;font-size:12px;overflow:hidden}.rp_9pSHmG_detail{flex-direction:column;gap:12px;width:min(640px,100%);max-height:70vh;display:flex;overflow-y:auto}.rp_9pSHmG_large{border-radius:var(--dsw-radius-lg);object-fit:contain;max-width:100%;max-height:32vh;margin:0 auto;display:block}.rp_9pSHmG_facts{grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.rp_9pSHmG_facts dt{color:var(--dsw-alias-label-tertiary)}.rp_9pSHmG_facts dd{min-width:0;color:var(--dsw-alias-label-primary);margin:0}.rp_9pSHmG_pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}.rp_9pSHmG_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_9pSHmG_note{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_9pSHmG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_9pSHmG_status,.rp_9pSHmG_statusError{color:var(--dsw-alias-label-tertiary);padding:0 8px 6px;font-size:12px;line-height:16px}.rp_9pSHmG_statusError{color:var(--dsw-alias-state-error-primary)}.rp_9pSHmG_reusable{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:0 8px 6px;font-size:12px;display:flex}.rp_9pSHmG_reusable input{accent-color:var(--dsw-alias-state-business-primary);margin:0}.rp_9pSHmG_editButton{font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;margin:0 8px 4px;padding:0;font-size:12px}.rp_9pSHmG_edit{flex-direction:column;gap:12px;width:min(480px,100%);display:flex}.rp_9pSHmG_editField{flex-direction:column;gap:4px;display:flex}.rp_9pSHmG_editLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_9pSHmG_editHelp{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_editArea,.rp_9pSHmG_editInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}.rp_9pSHmG_editArea{resize:vertical;min-height:96px}.rp_9pSHmG_editArea:focus-visible,.rp_9pSHmG_editInput:focus-visible,.rp_9pSHmG_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_9pSHmG_page{padding-inline:16px}.rp_9pSHmG_toolbar{align-items:flex-start}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))}}";
13698
+ const css$34 = ".rp_9pSHmG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_9pSHmG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.rp_9pSHmG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_9pSHmG_select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_9pSHmG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_9pSHmG_cell{min-width:0}.rp_9pSHmG_thumb{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;flex-direction:column;padding:0;display:flex;overflow:hidden}.rp_9pSHmG_open{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}.rp_9pSHmG_thumb:hover{border-color:var(--dsw-alias-border-l4)}.rp_9pSHmG_image{aspect-ratio:1;object-fit:cover;background:var(--dsw-alias-bg-layer-3);width:100%;display:block}.rp_9pSHmG_caption{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-secondary);padding:6px 8px;font-size:12px;overflow:hidden}.rp_9pSHmG_detail{flex-direction:column;gap:12px;width:min(640px,100%);max-height:70vh;display:flex;overflow-y:auto}.rp_9pSHmG_large{border-radius:var(--dsw-radius-lg);object-fit:contain;max-width:100%;max-height:32vh;margin:0 auto;display:block}.rp_9pSHmG_facts{grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.rp_9pSHmG_facts dt{color:var(--dsw-alias-label-tertiary)}.rp_9pSHmG_facts dd{min-width:0;color:var(--dsw-alias-label-primary);margin:0}.rp_9pSHmG_pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}.rp_9pSHmG_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_9pSHmG_note{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_9pSHmG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_9pSHmG_footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;padding:0 8px 8px;display:flex}.rp_9pSHmG_buttons{flex-wrap:wrap;gap:4px;margin-inline-start:auto;display:flex}.rp_9pSHmG_status,.rp_9pSHmG_statusError{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:help;background:0 0;border:0;justify-content:center;align-items:center;padding:2px;display:inline-flex}.rp_9pSHmG_statusError{color:var(--dsw-alias-state-error-primary)}.rp_9pSHmG_status:focus-visible,.rp_9pSHmG_statusError:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_9pSHmG_reusable{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:0 8px 6px;font-size:12px;display:flex}.rp_9pSHmG_reusable input{accent-color:var(--dsw-alias-state-business-primary);margin:0}.rp_9pSHmG_edit{flex-direction:column;gap:12px;width:min(480px,100%);display:flex}.rp_9pSHmG_editField{flex-direction:column;gap:4px;display:flex}.rp_9pSHmG_editLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_9pSHmG_editHelp{overflow-wrap:anywhere;color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_editArea,.rp_9pSHmG_editInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}.rp_9pSHmG_editArea{resize:vertical;min-height:96px}.rp_9pSHmG_editArea:focus-visible,.rp_9pSHmG_editInput:focus-visible,.rp_9pSHmG_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_9pSHmG_page{padding-inline:16px}.rp_9pSHmG_toolbar{align-items:flex-start}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))}}";
13159
13699
  const key$34 = "src/client/widgets/gallery-view/GalleryView.module.css";
13160
13700
  let tag$34 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$34) + "]");
13161
13701
  if (tag$34 === null) {
@@ -13166,39 +13706,38 @@ window.__ModuleLoader__.load({
13166
13706
  }
13167
13707
  tag$34.textContent = css$34;
13168
13708
  var GalleryView_module_css_default = {
13169
- "tags": "rp_9pSHmG_tags",
13170
- "editLabel": "rp_9pSHmG_editLabel",
13171
- "editInput": "rp_9pSHmG_editInput",
13709
+ "reusable": "rp_9pSHmG_reusable",
13172
13710
  "editField": "rp_9pSHmG_editField",
13173
- "error": "rp_9pSHmG_error",
13174
- "edit": "rp_9pSHmG_edit",
13711
+ "count": "rp_9pSHmG_count",
13712
+ "editArea": "rp_9pSHmG_editArea",
13713
+ "statusError": "rp_9pSHmG_statusError",
13714
+ "tags": "rp_9pSHmG_tags",
13175
13715
  "editHelp": "rp_9pSHmG_editHelp",
13176
- "large": "rp_9pSHmG_large",
13177
- "open": "rp_9pSHmG_open",
13178
- "actions": "rp_9pSHmG_actions",
13179
- "page": "rp_9pSHmG_page",
13716
+ "edit": "rp_9pSHmG_edit",
13717
+ "select": "rp_9pSHmG_select",
13718
+ "error": "rp_9pSHmG_error",
13180
13719
  "status": "rp_9pSHmG_status",
13181
- "editArea": "rp_9pSHmG_editArea",
13182
- "image": "rp_9pSHmG_image",
13183
- "count": "rp_9pSHmG_count",
13720
+ "detail": "rp_9pSHmG_detail",
13184
13721
  "facts": "rp_9pSHmG_facts",
13185
- "toolbar": "rp_9pSHmG_toolbar",
13186
- "cell": "rp_9pSHmG_cell",
13722
+ "editInput": "rp_9pSHmG_editInput",
13723
+ "footer": "rp_9pSHmG_footer",
13724
+ "page": "rp_9pSHmG_page",
13725
+ "open": "rp_9pSHmG_open",
13187
13726
  "pre": "rp_9pSHmG_pre",
13188
- "detail": "rp_9pSHmG_detail",
13189
- "reusable": "rp_9pSHmG_reusable",
13190
- "grid": "rp_9pSHmG_grid",
13191
- "caption": "rp_9pSHmG_caption",
13727
+ "editLabel": "rp_9pSHmG_editLabel",
13728
+ "thumb": "rp_9pSHmG_thumb",
13729
+ "large": "rp_9pSHmG_large",
13730
+ "toolbar": "rp_9pSHmG_toolbar",
13192
13731
  "message": "rp_9pSHmG_message",
13193
- "select": "rp_9pSHmG_select",
13732
+ "image": "rp_9pSHmG_image",
13733
+ "grid": "rp_9pSHmG_grid",
13194
13734
  "note": "rp_9pSHmG_note",
13195
- "editButton": "rp_9pSHmG_editButton",
13196
- "statusError": "rp_9pSHmG_statusError",
13197
- "thumb": "rp_9pSHmG_thumb"
13735
+ "actions": "rp_9pSHmG_actions",
13736
+ "buttons": "rp_9pSHmG_buttons",
13737
+ "caption": "rp_9pSHmG_caption",
13738
+ "cell": "rp_9pSHmG_cell"
13198
13739
  };
13199
13740
  // src/client/widgets/gallery-view/GalleryView.tsx
13200
- /** How often the list is read again while pictures are waiting to be described. */
13201
- const POLL_MS$3 = 3e3;
13202
13741
  const messageOf$10 = (error) => error instanceof Error ? error.message : String(error);
13203
13742
  function EditDialog({ t, image, onSave, onClose }) {
13204
13743
  const [description, setDescription] = (0, react.useState)(image.description ?? "");
@@ -13270,6 +13809,18 @@ window.__ModuleLoader__.load({
13270
13809
  })
13271
13810
  ]
13272
13811
  }),
13812
+ image.cardLinks !== void 0 && image.cardLinks.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
13813
+ className: GalleryView_module_css_default.editField,
13814
+ title: t("cardSourceHelp"),
13815
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
13816
+ className: GalleryView_module_css_default.editLabel,
13817
+ children: t("cardSource")
13818
+ }), image.cardLinks.map((link) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
13819
+ className: GalleryView_module_css_default.editHelp,
13820
+ "data-testid": "roleplay-gallery-source",
13821
+ children: [link.url, link.pieces.length === 0 ? "" : ` (${link.pieces.join(", ")})`]
13822
+ }, link.url))]
13823
+ }),
13273
13824
  error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
13274
13825
  className: GalleryView_module_css_default.error,
13275
13826
  role: "alert",
@@ -13288,16 +13839,18 @@ window.__ModuleLoader__.load({
13288
13839
  const [notice, setNotice] = (0, react.useState)();
13289
13840
  const picker = (0, react.useRef)(null);
13290
13841
  const [editing, setEditing] = (0, react.useState)();
13291
- const read = (0, react.useCallback)((signal) => {
13292
- setRefreshing(true);
13842
+ const [describing, setDescribing] = (0, react.useState)(/* @__PURE__ */ new Set());
13843
+ const [describeFailures, setDescribeFailures] = (0, react.useState)({});
13844
+ const read = (0, react.useCallback)((signal, quiet = false) => {
13845
+ if (!quiet) setRefreshing(true);
13293
13846
  loadGallery(target, signal).then((contents) => {
13294
- setLoad({
13847
+ setLoad((current) => quiet && current.status === "ready" && sameGallery(current.contents, contents) ? current : {
13295
13848
  status: "ready",
13296
13849
  contents
13297
13850
  });
13298
13851
  setRefreshing(false);
13299
13852
  }, (failure) => {
13300
- if (!signal.aborted) {
13853
+ if (!signal.aborted && !quiet) {
13301
13854
  setLoad({
13302
13855
  status: "failed",
13303
13856
  message: messageOf$10(failure)
@@ -13313,26 +13866,22 @@ window.__ModuleLoader__.load({
13313
13866
  abort.abort();
13314
13867
  };
13315
13868
  }, [read]);
13316
- const waiting = load.status === "ready" && load.contents.images.some((image) => image.pending === true && load.contents.failures[image.path] === void 0);
13869
+ const waiting = awaitsDescriptions(target.kind, load.status === "ready" ? load.contents : void 0);
13317
13870
  (0, react.useEffect)(() => {
13318
13871
  if (!waiting) return;
13319
13872
  const abort = new AbortController();
13320
- const timer = window.setTimeout(() => {
13321
- if (pageVisible()) read(abort.signal);
13873
+ const timer = window.setInterval(() => {
13874
+ if (pageVisible()) read(abort.signal, true);
13322
13875
  }, POLL_MS$3);
13323
13876
  const off = onPageVisible(() => {
13324
- read(abort.signal);
13877
+ read(abort.signal, true);
13325
13878
  });
13326
13879
  return () => {
13327
- window.clearTimeout(timer);
13880
+ window.clearInterval(timer);
13328
13881
  off();
13329
13882
  abort.abort();
13330
13883
  };
13331
- }, [
13332
- waiting,
13333
- read,
13334
- load
13335
- ]);
13884
+ }, [waiting, read]);
13336
13885
  if (load.status === "loading") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
13337
13886
  className: GalleryView_module_css_default.message,
13338
13887
  children: t("loading")
@@ -13371,6 +13920,24 @@ window.__ModuleLoader__.load({
13371
13920
  setNotice(t("updateFailed", { message: messageOf$10(failure) }));
13372
13921
  });
13373
13922
  };
13923
+ const describe = (image) => {
13924
+ setDescribing((current) => new Set(current).add(image.path));
13925
+ setNotice(void 0);
13926
+ setDescribeFailures(({ [image.path]: _cleared, ...rest }) => rest);
13927
+ describeImage(target, image.path, new AbortController().signal).then(replace, (failure) => {
13928
+ setDescribeFailures((current) => ({
13929
+ ...current,
13930
+ [image.path]: messageOf$10(failure)
13931
+ }));
13932
+ setNotice(t("describeError", { message: messageOf$10(failure) }));
13933
+ }).finally(() => {
13934
+ setDescribing((current) => {
13935
+ const next = new Set(current);
13936
+ next.delete(image.path);
13937
+ return next;
13938
+ });
13939
+ });
13940
+ };
13374
13941
  const { images, failures } = load.contents;
13375
13942
  const labels = {
13376
13943
  description: t("description") ?? "",
@@ -13466,7 +14033,7 @@ window.__ModuleLoader__.load({
13466
14033
  className: GalleryView_module_css_default.grid,
13467
14034
  children: shown.map((image) => {
13468
14035
  const name = image.subjects.map((subject) => subject.name).join(", ") || image.originalName || image.path;
13469
- const failed = failures[image.path];
14036
+ const failed = describeFailures[image.path] ?? failures[image.path];
13470
14037
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
13471
14038
  className: GalleryView_module_css_default.cell,
13472
14039
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -13484,17 +14051,40 @@ window.__ModuleLoader__.load({
13484
14051
  className: GalleryView_module_css_default.caption,
13485
14052
  children: name
13486
14053
  }),
13487
- image.pending === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
13488
- className: failed === void 0 ? GalleryView_module_css_default.status : GalleryView_module_css_default.statusError,
13489
- children: failed === void 0 ? t(target.kind === "worlds" ? "pendingWorld" : "pending") : t("describeFailed", { message: failed })
13490
- }),
13491
- image.unreadable !== true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
13492
- type: "button",
13493
- className: GalleryView_module_css_default.editButton,
13494
- onClick: () => {
13495
- setEditing(image);
13496
- },
13497
- children: t("edit")
14054
+ (image.pending === true || image.unreadable !== true) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
14055
+ className: GalleryView_module_css_default.footer,
14056
+ children: [image.pending === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14057
+ role: failed === void 0 ? void 0 : "alert",
14058
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
14059
+ label: failed === void 0 ? t(target.kind === "worlds" ? "pendingWorld" : "pending") : t("describeFailed", { message: failed }),
14060
+ openOnClick: true,
14061
+ maxWidth: 360,
14062
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14063
+ type: "button",
14064
+ className: failed === void 0 ? GalleryView_module_css_default.status : GalleryView_module_css_default.statusError,
14065
+ "aria-label": failed === void 0 ? t(target.kind === "worlds" ? "pendingWorld" : "pending") : t("describeFailed", { message: failed }),
14066
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconInfo, {})
14067
+ })
14068
+ })
14069
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
14070
+ className: GalleryView_module_css_default.buttons,
14071
+ children: [image.unreadable !== true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
14072
+ variant: "outline",
14073
+ size: "sm",
14074
+ onClick: () => {
14075
+ setEditing(image);
14076
+ },
14077
+ children: t("edit")
14078
+ }), image.unreadable !== true && target.kind === "worlds" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
14079
+ variant: "outline",
14080
+ size: "sm",
14081
+ disabled: describing.has(image.path),
14082
+ onClick: () => {
14083
+ describe(image);
14084
+ },
14085
+ children: describing.has(image.path) ? t("describing") : t("describeNow")
14086
+ })]
14087
+ })]
13498
14088
  }),
13499
14089
  image.origin === "generated" && image.unreadable !== true && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
13500
14090
  className: GalleryView_module_css_default.reusable,
@@ -13537,13 +14127,13 @@ window.__ModuleLoader__.load({
13537
14127
  }
13538
14128
  tag$33.textContent = css$33;
13539
14129
  var WorldEditor_module_css_default = {
13540
- "drawerItem": "rp__swA3a_drawerItem",
13541
14130
  "drawerItemOn": "rp__swA3a_drawerItemOn",
13542
14131
  "content": "rp__swA3a_content",
13543
14132
  "view": "rp__swA3a_view",
13544
14133
  "message": "rp__swA3a_message",
13545
14134
  "warning": "rp__swA3a_warning",
13546
- "drawer": "rp__swA3a_drawer"
14135
+ "drawer": "rp__swA3a_drawer",
14136
+ "drawerItem": "rp__swA3a_drawerItem"
13547
14137
  };
13548
14138
  // src/client/world-editor/WorldEditor.tsx
13549
14139
  const SECTIONS = [
@@ -13646,6 +14236,12 @@ window.__ModuleLoader__.load({
13646
14236
  label: "sectionImages",
13647
14237
  built: true,
13648
14238
  ownFiles: true
14239
+ },
14240
+ {
14241
+ id: "checkpoints",
14242
+ label: "cp_title",
14243
+ built: true,
14244
+ ownFiles: true
13649
14245
  }
13650
14246
  ];
13651
14247
  /**
@@ -13829,6 +14425,18 @@ window.__ModuleLoader__.load({
13829
14425
  children: t("editorRefresh")
13830
14426
  })
13831
14427
  }),
14428
+ section === "checkpoints" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckpointsPanel, {
14429
+ t,
14430
+ worldId: source.worldId,
14431
+ onRestored: refresh,
14432
+ actions: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
14433
+ variant: "ghost",
14434
+ size: "sm",
14435
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRefresh, {}),
14436
+ onClick: refresh,
14437
+ children: t("editorRefresh")
14438
+ })
14439
+ }),
13832
14440
  section === "images" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GalleryView, {
13833
14441
  t: galleryText,
13834
14442
  target: {
@@ -13957,27 +14565,27 @@ window.__ModuleLoader__.load({
13957
14565
  }
13958
14566
  tag$32.textContent = css$32;
13959
14567
  var AvatarsPage_module_css_default = {
13960
- "field": "rp_pQOzEG_field",
13961
- "label": "rp_pQOzEG_label",
13962
- "toolbar": "rp_pQOzEG_toolbar",
13963
- "open": "rp_pQOzEG_open",
13964
- "portrait": "rp_pQOzEG_portrait",
13965
- "count": "rp_pQOzEG_count",
13966
- "name": "rp_pQOzEG_name",
13967
- "message": "rp_pQOzEG_message",
13968
14568
  "editHeader": "rp_pQOzEG_editHeader",
13969
- "form": "rp_pQOzEG_form",
13970
- "placeholder": "rp_pQOzEG_placeholder",
13971
- "summary": "rp_pQOzEG_summary",
13972
- "actions": "rp_pQOzEG_actions",
13973
- "text": "rp_pQOzEG_text",
14569
+ "message": "rp_pQOzEG_message",
14570
+ "card": "rp_pQOzEG_card",
14571
+ "count": "rp_pQOzEG_count",
13974
14572
  "editBody": "rp_pQOzEG_editBody",
14573
+ "text": "rp_pQOzEG_text",
14574
+ "form": "rp_pQOzEG_form",
14575
+ "grid": "rp_pQOzEG_grid",
14576
+ "portrait": "rp_pQOzEG_portrait",
13975
14577
  "error": "rp_pQOzEG_error",
14578
+ "editTitle": "rp_pQOzEG_editTitle",
13976
14579
  "page": "rp_pQOzEG_page",
14580
+ "toolbar": "rp_pQOzEG_toolbar",
14581
+ "field": "rp_pQOzEG_field",
14582
+ "label": "rp_pQOzEG_label",
13977
14583
  "viewport": "rp_pQOzEG_viewport",
13978
- "grid": "rp_pQOzEG_grid",
13979
- "card": "rp_pQOzEG_card",
13980
- "editTitle": "rp_pQOzEG_editTitle"
14584
+ "placeholder": "rp_pQOzEG_placeholder",
14585
+ "summary": "rp_pQOzEG_summary",
14586
+ "actions": "rp_pQOzEG_actions",
14587
+ "name": "rp_pQOzEG_name",
14588
+ "open": "rp_pQOzEG_open"
13981
14589
  };
13982
14590
  // src/client/pages/avatars/AvatarsPage.tsx
13983
14591
  const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
@@ -14245,7 +14853,7 @@ window.__ModuleLoader__.load({
14245
14853
  });
14246
14854
  }
14247
14855
  // src/client/widgets/sampling-fields/locales.ts
14248
- const dictionaries$24 = {
14856
+ const dictionaries$25 = {
14249
14857
  en: {
14250
14858
  sf_master: "Narrator temperature (0 to 2)",
14251
14859
  sf_characters: "Characters temperature (0 to 2)",
@@ -14336,7 +14944,7 @@ window.__ModuleLoader__.load({
14336
14944
  }
14337
14945
  };
14338
14946
  // src/client/widgets/tool-switches/locales.ts
14339
- const dictionaries$23 = {
14947
+ const dictionaries$24 = {
14340
14948
  en: {
14341
14949
  sw_title: "Tools",
14342
14950
  sw_help: "Which optional tools each kind of agent may use. A choice applies to every agent of that kind, not to one character. Tools this version does not know are left as they are and not shown.",
@@ -14643,7 +15251,7 @@ window.__ModuleLoader__.load({
14643
15251
  }
14644
15252
  };
14645
15253
  // src/client/widgets/gallery-view/locales.ts
14646
- const dictionaries$22 = {
15254
+ const dictionaries$23 = {
14647
15255
  en: {
14648
15256
  tab: "Gallery",
14649
15257
  notRoleplay: "This chat is not a roleplay session, so it has no gallery.",
@@ -14667,7 +15275,7 @@ window.__ModuleLoader__.load({
14667
15275
  reusable: "Reusable",
14668
15276
  reusableHint: "May be shown again in a later scene. Images you add are always reusable.",
14669
15277
  pending: "Waiting to be described…",
14670
- pendingWorld: "Not described yet: a session started from this world describes it, or describe it yourself.",
15278
+ pendingWorld: "Not described yet: a session started from this world describes it, or use Describe with AI or write it yourself.",
14671
15279
  describeFailed: "Could not be described: {message}",
14672
15280
  upload: "Add images",
14673
15281
  uploading: "Adding…",
@@ -14682,7 +15290,12 @@ window.__ModuleLoader__.load({
14682
15290
  saving: "Saving…",
14683
15291
  cancel: "Cancel",
14684
15292
  guideText: "Scene images, portraits and your own pictures, beside the chat",
14685
- back: "Back"
15293
+ back: "Back",
15294
+ describeNow: "Describe",
15295
+ describing: "Describing…",
15296
+ describeError: "Could not describe the picture: {message}",
15297
+ cardSource: "From the card",
15298
+ cardSourceHelp: "The address and card piece this picture was downloaded from."
14686
15299
  },
14687
15300
  zh: {
14688
15301
  tab: "图库",
@@ -14722,7 +15335,12 @@ window.__ModuleLoader__.load({
14722
15335
  saving: "正在保存…",
14723
15336
  cancel: "取消",
14724
15337
  guideText: "场景图、立绘和你自己的图片,与对话并排查看",
14725
- back: "返回"
15338
+ back: "返回",
15339
+ describeNow: "描述",
15340
+ describing: "正在描述…",
15341
+ describeError: "无法描述这张图片:{message}",
15342
+ cardSource: "来自角色卡",
15343
+ cardSourceHelp: "这张图片下载自的网址与角色卡片段。"
14726
15344
  },
14727
15345
  ja: {
14728
15346
  tab: "ギャラリー",
@@ -14762,7 +15380,12 @@ window.__ModuleLoader__.load({
14762
15380
  saving: "保存中…",
14763
15381
  cancel: "キャンセル",
14764
15382
  guideText: "場面画像、ポートレート、自分の画像をチャットの横で表示",
14765
- back: "戻る"
15383
+ back: "戻る",
15384
+ describeNow: "AI で説明",
15385
+ describing: "説明中…",
15386
+ describeError: "画像を説明できませんでした:{message}",
15387
+ cardSource: "カードから",
15388
+ cardSourceHelp: "この画像のダウンロード元のアドレスとカードの箇所。"
14766
15389
  },
14767
15390
  es: {
14768
15391
  tab: "Galería",
@@ -14802,7 +15425,12 @@ window.__ModuleLoader__.load({
14802
15425
  saving: "Guardando…",
14803
15426
  cancel: "Cancelar",
14804
15427
  guideText: "Escenas, retratos e imágenes propias junto al chat",
14805
- back: "Atrás"
15428
+ back: "Atrás",
15429
+ describeNow: "Describir con IA",
15430
+ describing: "Describiendo…",
15431
+ describeError: "No se pudo describir la imagen: {message}",
15432
+ cardSource: "De la tarjeta",
15433
+ cardSourceHelp: "La dirección y la parte de la tarjeta de donde se descargó esta imagen."
14806
15434
  },
14807
15435
  fr: {
14808
15436
  tab: "Galerie",
@@ -14842,7 +15470,12 @@ window.__ModuleLoader__.load({
14842
15470
  saving: "Enregistrement…",
14843
15471
  cancel: "Annuler",
14844
15472
  guideText: "Scènes, portraits et images personnelles à côté de la discussion",
14845
- back: "Retour"
15473
+ back: "Retour",
15474
+ describeNow: "Décrire avec l’IA",
15475
+ describing: "Description…",
15476
+ describeError: "Impossible de décrire l’image : {message}",
15477
+ cardSource: "De la carte",
15478
+ cardSourceHelp: "L’adresse et la partie de la carte d’où cette image a été téléchargée."
14846
15479
  },
14847
15480
  de: {
14848
15481
  tab: "Galerie",
@@ -14882,7 +15515,12 @@ window.__ModuleLoader__.load({
14882
15515
  saving: "Wird gespeichert…",
14883
15516
  cancel: "Abbrechen",
14884
15517
  guideText: "Szenenbilder, Porträts und eigene Bilder neben dem Chat",
14885
- back: "Zurück"
15518
+ back: "Zurück",
15519
+ describeNow: "Mit KI beschreiben",
15520
+ describing: "Wird beschrieben…",
15521
+ describeError: "Das Bild konnte nicht beschrieben werden: {message}",
15522
+ cardSource: "Aus der Karte",
15523
+ cardSourceHelp: "Die Adresse und der Kartenabschnitt, von denen dieses Bild heruntergeladen wurde."
14886
15524
  },
14887
15525
  ru: {
14888
15526
  tab: "Галерея",
@@ -14922,7 +15560,12 @@ window.__ModuleLoader__.load({
14922
15560
  saving: "Сохранение…",
14923
15561
  cancel: "Отмена",
14924
15562
  guideText: "Сцены, портреты и ваши изображения рядом с чатом",
14925
- back: "Назад"
15563
+ back: "Назад",
15564
+ describeNow: "Описать с помощью ИИ",
15565
+ describing: "Описываю…",
15566
+ describeError: "Не удалось описать изображение: {message}",
15567
+ cardSource: "Из карточки",
15568
+ cardSourceHelp: "Адрес и часть карточки, откуда загружено это изображение."
14926
15569
  },
14927
15570
  pt: {
14928
15571
  tab: "Galeria",
@@ -14962,11 +15605,16 @@ window.__ModuleLoader__.load({
14962
15605
  saving: "A guardar…",
14963
15606
  cancel: "Cancelar",
14964
15607
  guideText: "Cenas, retratos e imagens próprias junto à conversa",
14965
- back: "Voltar"
15608
+ back: "Voltar",
15609
+ describeNow: "Descrever com IA",
15610
+ describing: "A descrever…",
15611
+ describeError: "Não foi possível descrever a imagem: {message}",
15612
+ cardSource: "Do cartão",
15613
+ cardSourceHelp: "O endereço e a parte do cartão de onde esta imagem foi descarregada."
14966
15614
  }
14967
15615
  };
14968
15616
  // src/client/world-editor/dice-locales.ts
14969
- const dictionaries$21 = {
15617
+ const dictionaries$22 = {
14970
15618
  en: {
14971
15619
  help: "How uncertain attempts are settled. The game master rolls one of these checks and is told which band the roll fell in, so no number is ever made up. Each check says when it is used, the dice it rolls and what each result means; the bands together should cover every value the dice can give.",
14972
15620
  none: "This world has no checks. Its game master can still roll plain dice for things that have none.",
@@ -15257,7 +15905,7 @@ window.__ModuleLoader__.load({
15257
15905
  }
15258
15906
  };
15259
15907
  // src/client/world-editor/packs-locales.ts
15260
- const dictionaries$20 = {
15908
+ const dictionaries$21 = {
15261
15909
  en: {
15262
15910
  newPack: "New pack",
15263
15911
  newPackId: "Pack name (letters, digits, - and _)",
@@ -15691,6 +16339,209 @@ window.__ModuleLoader__.load({
15691
16339
  noSurfaces: "O pacote não tem superfícies para pré-visualizar."
15692
16340
  }
15693
16341
  };
16342
+ // src/client/world-editor/checkpoints-locales.ts
16343
+ const dictionaries$20 = {
16344
+ en: {
16345
+ title: "Checkpoints",
16346
+ help: "A copy of the world's files is made before the authoring assistant edits it, and whenever you ask. Compare one with the world as it is now, or restore it: the world goes back to that copy, and what was there is kept as a checkpoint too. Pictures are not copied, and stories already started keep their own copy of the world.",
16347
+ create: "Create a checkpoint",
16348
+ labelPlaceholder: "A name for it (optional)",
16349
+ loading: "Reading the checkpoints…",
16350
+ loadFailed: "Could not read the checkpoints: {message}",
16351
+ empty: "No checkpoints yet. One is made before the assistant's first edit of a turn.",
16352
+ reasonTurn: "Before the edits of turn {turn}",
16353
+ reasonBefore: "Before a restore",
16354
+ reasonManual: "Made on request",
16355
+ files: "Files: {count}",
16356
+ compare: "Compare with now",
16357
+ hideCompare: "Hide",
16358
+ restore: "Restore",
16359
+ confirmRestore: "Restore this one",
16360
+ cancel: "Cancel",
16361
+ working: "Working…",
16362
+ restored: "The world is back as it was at that checkpoint. The assistant is told at its next turn.",
16363
+ same: "The world is the same as this checkpoint.",
16364
+ changed: "Changed since",
16365
+ added: "Added since (a restore removes them)",
16366
+ removed: "Removed since (a restore brings them back)",
16367
+ failed: "{message}"
16368
+ },
16369
+ zh: {
16370
+ title: "检查点",
16371
+ help: "创作助手修改世界之前,以及你主动要求时,会保存一份世界文件的副本。可以把某个检查点与当前世界对比,或还原到它:世界回到那份副本,原来的内容也会保存为一个检查点。图片不会被复制,已经开始的故事保留它们自己的世界副本。",
16372
+ create: "创建检查点",
16373
+ labelPlaceholder: "名称(可选)",
16374
+ loading: "正在读取检查点…",
16375
+ loadFailed: "无法读取检查点:{message}",
16376
+ empty: "还没有检查点。助手在一个回合里第一次修改之前会自动创建一个。",
16377
+ reasonTurn: "第 {turn} 回合修改之前",
16378
+ reasonBefore: "还原之前",
16379
+ reasonManual: "应要求创建",
16380
+ files: "文件:{count}",
16381
+ compare: "与现在对比",
16382
+ hideCompare: "收起",
16383
+ restore: "还原",
16384
+ confirmRestore: "确认还原这一个",
16385
+ cancel: "取消",
16386
+ working: "处理中…",
16387
+ restored: "世界已回到该检查点时的样子。助手会在下一个回合得到通知。",
16388
+ same: "世界与这个检查点一致。",
16389
+ changed: "之后有改动",
16390
+ added: "之后新增(还原会删除它们)",
16391
+ removed: "之后被删除(还原会带回它们)",
16392
+ failed: "{message}"
16393
+ },
16394
+ ja: {
16395
+ title: "チェックポイント",
16396
+ help: "創作アシスタントが編集する前と、ご要望のたびに、ワールドのファイルのコピーを保存します。現在のワールドと比較したり、復元したりできます。復元すると、ワールドはそのコピーの状態に戻り、それまでの内容もチェックポイントとして残ります。画像はコピーされず、すでに始めたストーリーは自分のワールドのコピーを保持します。",
16397
+ create: "チェックポイントを作成",
16398
+ labelPlaceholder: "名前(任意)",
16399
+ loading: "チェックポイントを読み込み中…",
16400
+ loadFailed: "チェックポイントを読み込めません:{message}",
16401
+ empty: "まだチェックポイントはありません。アシスタントがターンで最初に編集する前に作成されます。",
16402
+ reasonTurn: "ターン {turn} の編集前",
16403
+ reasonBefore: "復元の前",
16404
+ reasonManual: "依頼により作成",
16405
+ files: "ファイル:{count}",
16406
+ compare: "現在と比較",
16407
+ hideCompare: "閉じる",
16408
+ restore: "復元",
16409
+ confirmRestore: "これを復元する",
16410
+ cancel: "キャンセル",
16411
+ working: "処理中…",
16412
+ restored: "ワールドはそのチェックポイントの状態に戻りました。アシスタントには次のターンで伝えられます。",
16413
+ same: "ワールドはこのチェックポイントと同じです。",
16414
+ changed: "その後に変更",
16415
+ added: "その後に追加(復元すると削除されます)",
16416
+ removed: "その後に削除(復元すると戻ります)",
16417
+ failed: "{message}"
16418
+ },
16419
+ es: {
16420
+ title: "Puntos de control",
16421
+ help: "Se guarda una copia de los archivos del mundo antes de que el asistente de creación lo edite y siempre que lo pida. Compárela con el mundo actual o restáurela: el mundo vuelve a esa copia y lo que había se conserva también como punto de control. Las imágenes no se copian y las historias ya iniciadas conservan su propia copia del mundo.",
16422
+ create: "Crear un punto de control",
16423
+ labelPlaceholder: "Un nombre (opcional)",
16424
+ loading: "Leyendo los puntos de control…",
16425
+ loadFailed: "No se pudieron leer los puntos de control: {message}",
16426
+ empty: "Aún no hay puntos de control. Se crea uno antes de la primera edición del asistente en un turno.",
16427
+ reasonTurn: "Antes de las ediciones del turno {turn}",
16428
+ reasonBefore: "Antes de una restauración",
16429
+ reasonManual: "Creado a petición",
16430
+ files: "Archivos: {count}",
16431
+ compare: "Comparar con ahora",
16432
+ hideCompare: "Ocultar",
16433
+ restore: "Restaurar",
16434
+ confirmRestore: "Restaurar este",
16435
+ cancel: "Cancelar",
16436
+ working: "Trabajando…",
16437
+ restored: "El mundo ha vuelto a como estaba en ese punto de control. Se avisará al asistente en su próximo turno.",
16438
+ same: "El mundo es igual que este punto de control.",
16439
+ changed: "Cambiado desde entonces",
16440
+ added: "Añadido desde entonces (restaurar lo elimina)",
16441
+ removed: "Eliminado desde entonces (restaurar lo recupera)",
16442
+ failed: "{message}"
16443
+ },
16444
+ fr: {
16445
+ title: "Points de contrôle",
16446
+ help: "Une copie des fichiers du monde est faite avant que l'assistant de création ne le modifie, et à chaque fois que vous le demandez. Comparez-la au monde actuel ou restaurez-la : le monde revient à cette copie, et ce qui s'y trouvait est aussi gardé comme point de contrôle. Les images ne sont pas copiées, et les histoires déjà commencées gardent leur propre copie du monde.",
16447
+ create: "Créer un point de contrôle",
16448
+ labelPlaceholder: "Un nom (facultatif)",
16449
+ loading: "Lecture des points de contrôle…",
16450
+ loadFailed: "Impossible de lire les points de contrôle : {message}",
16451
+ empty: "Aucun point de contrôle pour l'instant. Il s'en crée un avant la première modification de l'assistant dans un tour.",
16452
+ reasonTurn: "Avant les modifications du tour {turn}",
16453
+ reasonBefore: "Avant une restauration",
16454
+ reasonManual: "Créé à la demande",
16455
+ files: "Fichiers : {count}",
16456
+ compare: "Comparer à maintenant",
16457
+ hideCompare: "Masquer",
16458
+ restore: "Restaurer",
16459
+ confirmRestore: "Restaurer celui-ci",
16460
+ cancel: "Annuler",
16461
+ working: "En cours…",
16462
+ restored: "Le monde est revenu tel qu'il était à ce point de contrôle. L'assistant en sera informé à son prochain tour.",
16463
+ same: "Le monde est identique à ce point de contrôle.",
16464
+ changed: "Modifié depuis",
16465
+ added: "Ajouté depuis (une restauration le supprime)",
16466
+ removed: "Supprimé depuis (une restauration le ramène)",
16467
+ failed: "{message}"
16468
+ },
16469
+ de: {
16470
+ title: "Prüfpunkte",
16471
+ help: "Vor jeder Bearbeitung durch den Autorenassistenten und auf Wunsch wird eine Kopie der Weltdateien gespeichert. Vergleichen Sie sie mit der aktuellen Welt oder stellen Sie sie wieder her: Die Welt geht auf diese Kopie zurück, und der bisherige Stand bleibt ebenfalls als Prüfpunkt erhalten. Bilder werden nicht kopiert, und bereits gestartete Geschichten behalten ihre eigene Kopie der Welt.",
16472
+ create: "Prüfpunkt erstellen",
16473
+ labelPlaceholder: "Ein Name (optional)",
16474
+ loading: "Prüfpunkte werden gelesen…",
16475
+ loadFailed: "Prüfpunkte konnten nicht gelesen werden: {message}",
16476
+ empty: "Noch keine Prüfpunkte. Vor der ersten Bearbeitung des Assistenten in einem Zug wird einer angelegt.",
16477
+ reasonTurn: "Vor den Änderungen in Zug {turn}",
16478
+ reasonBefore: "Vor einer Wiederherstellung",
16479
+ reasonManual: "Auf Wunsch erstellt",
16480
+ files: "Dateien: {count}",
16481
+ compare: "Mit jetzt vergleichen",
16482
+ hideCompare: "Ausblenden",
16483
+ restore: "Wiederherstellen",
16484
+ confirmRestore: "Diesen wiederherstellen",
16485
+ cancel: "Abbrechen",
16486
+ working: "Wird ausgeführt…",
16487
+ restored: "Die Welt ist wieder so, wie sie an diesem Prüfpunkt war. Der Assistent erfährt es in seinem nächsten Zug.",
16488
+ same: "Die Welt entspricht diesem Prüfpunkt.",
16489
+ changed: "Seitdem geändert",
16490
+ added: "Seitdem hinzugefügt (eine Wiederherstellung entfernt sie)",
16491
+ removed: "Seitdem entfernt (eine Wiederherstellung bringt sie zurück)",
16492
+ failed: "{message}"
16493
+ },
16494
+ ru: {
16495
+ title: "Контрольные точки",
16496
+ help: "Копия файлов мира сохраняется перед правками ассистента по созданию и по вашему запросу. Сравните её с текущим миром или восстановите: мир вернётся к этой копии, а прежнее состояние тоже сохранится как контрольная точка. Изображения не копируются, а уже начатые истории хранят собственную копию мира.",
16497
+ create: "Создать контрольную точку",
16498
+ labelPlaceholder: "Название (необязательно)",
16499
+ loading: "Чтение контрольных точек…",
16500
+ loadFailed: "Не удалось прочитать контрольные точки: {message}",
16501
+ empty: "Контрольных точек пока нет. Она создаётся перед первой правкой ассистента в ходе.",
16502
+ reasonTurn: "Перед правками хода {turn}",
16503
+ reasonBefore: "Перед восстановлением",
16504
+ reasonManual: "Создана по запросу",
16505
+ files: "Файлов: {count}",
16506
+ compare: "Сравнить с текущим",
16507
+ hideCompare: "Скрыть",
16508
+ restore: "Восстановить",
16509
+ confirmRestore: "Восстановить эту",
16510
+ cancel: "Отмена",
16511
+ working: "Выполняется…",
16512
+ restored: "Мир вернулся к состоянию этой контрольной точки. Ассистенту сообщат в следующем ходе.",
16513
+ same: "Мир совпадает с этой контрольной точкой.",
16514
+ changed: "Изменено с тех пор",
16515
+ added: "Добавлено с тех пор (восстановление удалит)",
16516
+ removed: "Удалено с тех пор (восстановление вернёт)",
16517
+ failed: "{message}"
16518
+ },
16519
+ pt: {
16520
+ title: "Pontos de controlo",
16521
+ help: "É guardada uma cópia dos ficheiros do mundo antes de o assistente de criação o editar e sempre que o pedir. Compare-a com o mundo atual ou restaure-a: o mundo volta a essa cópia e o que lá estava fica também guardado como ponto de controlo. As imagens não são copiadas e as histórias já iniciadas mantêm a sua própria cópia do mundo.",
16522
+ create: "Criar um ponto de controlo",
16523
+ labelPlaceholder: "Um nome (opcional)",
16524
+ loading: "A ler os pontos de controlo…",
16525
+ loadFailed: "Não foi possível ler os pontos de controlo: {message}",
16526
+ empty: "Ainda não há pontos de controlo. É criado um antes da primeira edição do assistente num turno.",
16527
+ reasonTurn: "Antes das edições do turno {turn}",
16528
+ reasonBefore: "Antes de uma restauração",
16529
+ reasonManual: "Criado a pedido",
16530
+ files: "Ficheiros: {count}",
16531
+ compare: "Comparar com agora",
16532
+ hideCompare: "Ocultar",
16533
+ restore: "Restaurar",
16534
+ confirmRestore: "Restaurar este",
16535
+ cancel: "Cancelar",
16536
+ working: "A trabalhar…",
16537
+ restored: "O mundo voltou a ficar como estava nesse ponto de controlo. O assistente será avisado no próximo turno.",
16538
+ same: "O mundo é igual a este ponto de controlo.",
16539
+ changed: "Alterado desde então",
16540
+ added: "Adicionado desde então (restaurar remove-o)",
16541
+ removed: "Removido desde então (restaurar traz de volta)",
16542
+ failed: "{message}"
16543
+ }
16544
+ };
15694
16545
  // src/client/world-editor/opening-locales.ts
15695
16546
  const dictionaries$19 = {
15696
16547
  en: {
@@ -15708,7 +16559,13 @@ window.__ModuleLoader__.load({
15708
16559
  speech: "Spoken line",
15709
16560
  speaker: "Who speaks",
15710
16561
  noSpeaker: "Choose a character",
15711
- text: "Text"
16562
+ text: "Text",
16563
+ addImage: "Add a picture",
16564
+ picture: "Picture",
16565
+ choosePicture: "Choose a picture",
16566
+ noPictures: "The world has no pictures yet: add some in Images first.",
16567
+ pictureMissing: "This picture is not in the world's images any more",
16568
+ toPlainBlockedMore: "A picture or a spoken line needs parts: remove them first"
15712
16569
  },
15713
16570
  zh: {
15714
16571
  plainHelp: "纯文本只是叙述。拆分成多个部分后,才能给角色安排台词。",
@@ -15725,7 +16582,13 @@ window.__ModuleLoader__.load({
15725
16582
  speech: "台词",
15726
16583
  speaker: "说话者",
15727
16584
  noSpeaker: "选择角色",
15728
- text: "内容"
16585
+ text: "内容",
16586
+ addImage: "添加图片",
16587
+ picture: "图片",
16588
+ choosePicture: "选择图片",
16589
+ noPictures: "世界里还没有图片:请先在“图片”里添加。",
16590
+ pictureMissing: "这张图片已不在世界的图片里",
16591
+ toPlainBlockedMore: "图片或台词需要分成多个部分:请先移除它们"
15729
16592
  },
15730
16593
  ja: {
15731
16594
  plainHelp: "プレーンテキストはナレーションのみです。キャラクターのセリフを入れるにはパートに分けます。",
@@ -15742,7 +16605,13 @@ window.__ModuleLoader__.load({
15742
16605
  speech: "セリフ",
15743
16606
  speaker: "話し手",
15744
16607
  noSpeaker: "キャラクターを選択",
15745
- text: "本文"
16608
+ text: "本文",
16609
+ addImage: "画像を追加",
16610
+ picture: "画像",
16611
+ choosePicture: "画像を選択",
16612
+ noPictures: "このワールドにはまだ画像がありません。先に「画像」で追加してください。",
16613
+ pictureMissing: "この画像はワールドの画像にもうありません",
16614
+ toPlainBlockedMore: "画像やセリフにはパートが必要です。先に削除してください"
15746
16615
  },
15747
16616
  es: {
15748
16617
  plainHelp: "El texto sin formato es solo narración. Divídelo en partes para dar líneas a los personajes.",
@@ -15759,7 +16628,13 @@ window.__ModuleLoader__.load({
15759
16628
  speech: "Línea hablada",
15760
16629
  speaker: "Quién habla",
15761
16630
  noSpeaker: "Elige un personaje",
15762
- text: "Texto"
16631
+ text: "Texto",
16632
+ addImage: "Añadir una imagen",
16633
+ picture: "Imagen",
16634
+ choosePicture: "Elige una imagen",
16635
+ noPictures: "El mundo aún no tiene imágenes: añade algunas primero en Imágenes.",
16636
+ pictureMissing: "Esta imagen ya no está en las imágenes del mundo",
16637
+ toPlainBlockedMore: "Una imagen o una línea hablada necesita partes: quítalas primero"
15763
16638
  },
15764
16639
  fr: {
15765
16640
  plainHelp: "Le texte simple n’est que de la narration. Découpez-le en parties pour donner des répliques aux personnages.",
@@ -15776,7 +16651,13 @@ window.__ModuleLoader__.load({
15776
16651
  speech: "Réplique",
15777
16652
  speaker: "Qui parle",
15778
16653
  noSpeaker: "Choisir un personnage",
15779
- text: "Texte"
16654
+ text: "Texte",
16655
+ addImage: "Ajouter une image",
16656
+ picture: "Image",
16657
+ choosePicture: "Choisissez une image",
16658
+ noPictures: "Le monde n’a pas encore d’images : ajoutez-en d’abord dans Images.",
16659
+ pictureMissing: "Cette image n’est plus dans les images du monde",
16660
+ toPlainBlockedMore: "Une image ou une réplique demande des parties : retirez-les d’abord"
15780
16661
  },
15781
16662
  de: {
15782
16663
  plainHelp: "Reiner Text ist nur Erzählung. Teile ihn in Abschnitte, um Figuren Zeilen zu geben.",
@@ -15793,7 +16674,13 @@ window.__ModuleLoader__.load({
15793
16674
  speech: "Gesprochene Zeile",
15794
16675
  speaker: "Wer spricht",
15795
16676
  noSpeaker: "Figur wählen",
15796
- text: "Text"
16677
+ text: "Text",
16678
+ addImage: "Bild hinzufügen",
16679
+ picture: "Bild",
16680
+ choosePicture: "Bild wählen",
16681
+ noPictures: "Die Welt hat noch keine Bilder: Füge zuerst unter Bilder welche hinzu.",
16682
+ pictureMissing: "Dieses Bild ist nicht mehr in den Bildern der Welt",
16683
+ toPlainBlockedMore: "Ein Bild oder eine gesprochene Zeile braucht Teile: Entferne sie zuerst"
15797
16684
  },
15798
16685
  ru: {
15799
16686
  plainHelp: "Простой текст — это только повествование. Разбейте его на части, чтобы дать персонажам реплики.",
@@ -15810,7 +16697,13 @@ window.__ModuleLoader__.load({
15810
16697
  speech: "Реплика",
15811
16698
  speaker: "Кто говорит",
15812
16699
  noSpeaker: "Выберите персонажа",
15813
- text: "Текст"
16700
+ text: "Текст",
16701
+ addImage: "Добавить изображение",
16702
+ picture: "Изображение",
16703
+ choosePicture: "Выберите изображение",
16704
+ noPictures: "В мире пока нет изображений: сначала добавьте их в разделе «Изображения».",
16705
+ pictureMissing: "Этого изображения больше нет среди изображений мира",
16706
+ toPlainBlockedMore: "Изображение или реплика требуют частей: сначала удалите их"
15814
16707
  },
15815
16708
  pt: {
15816
16709
  plainHelp: "Texto simples é só narração. Divida em partes para dar falas aos personagens.",
@@ -15827,7 +16720,13 @@ window.__ModuleLoader__.load({
15827
16720
  speech: "Fala",
15828
16721
  speaker: "Quem fala",
15829
16722
  noSpeaker: "Escolha um personagem",
15830
- text: "Texto"
16723
+ text: "Texto",
16724
+ addImage: "Adicionar uma imagem",
16725
+ picture: "Imagem",
16726
+ choosePicture: "Escolha uma imagem",
16727
+ noPictures: "O mundo ainda não tem imagens: adicione algumas primeiro em Imagens.",
16728
+ pictureMissing: "Esta imagem já não está nas imagens do mundo",
16729
+ toPlainBlockedMore: "Uma imagem ou uma fala precisa de partes: remova-as primeiro"
15831
16730
  }
15832
16731
  };
15833
16732
  // src/client/world-editor/questions-locales.ts
@@ -17133,7 +18032,7 @@ window.__ModuleLoader__.load({
17133
18032
  relationCreate: "创建"
17134
18033
  }
17135
18034
  };
17136
- const dictionaries$16 = withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries({
18035
+ const dictionaries$16 = withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries({
17137
18036
  ...base$2,
17138
18037
  ja: {
17139
18038
  ...base$2.en,
@@ -19007,7 +19906,7 @@ window.__ModuleLoader__.load({
19007
19906
  wearableAt: "Usável em: {slot}",
19008
19907
  ownedBy: "Pertence a {owner}"
19009
19908
  }
19010
- }, prefixed(dictionaries$22, "gallery_")), prefixed(dictionaries$17, "trig_")), prefixed(dictionaries$20, "pk_")), prefixed(dictionaries$18, "sq_")), dictionaries$23), prefixed(dictionaries$21, "dice_")), dictionaries$24), prefixed(dictionaries$19, "op_"));
19909
+ }, prefixed(dictionaries$23, "gallery_")), prefixed(dictionaries$17, "trig_")), prefixed(dictionaries$21, "pk_")), prefixed(dictionaries$20, "cp_")), prefixed(dictionaries$18, "sq_")), dictionaries$24), prefixed(dictionaries$22, "dice_")), dictionaries$25), prefixed(dictionaries$19, "op_"));
19011
19910
  const dictionaries$15 = withDictionaries({
19012
19911
  en: {
19013
19912
  nav: "Avatars",
@@ -19249,37 +20148,37 @@ window.__ModuleLoader__.load({
19249
20148
  }
19250
20149
  tag$31.textContent = css$31;
19251
20150
  var LorebooksPage_module_css_default = {
19252
- "viewport": "rp_VV-Eha_viewport",
19253
- "help": "rp_VV-Eha_help",
19254
- "editHeader": "rp_VV-Eha_editHeader",
19255
- "editTitle": "rp_VV-Eha_editTitle",
19256
- "warning": "rp_VV-Eha_warning",
19257
- "name": "rp_VV-Eha_name",
19258
- "input": "rp_VV-Eha_input",
19259
- "label": "rp_VV-Eha_label",
19260
20151
  "card": "rp_VV-Eha_card",
19261
- "error": "rp_VV-Eha_error",
19262
- "cardActions": "rp_VV-Eha_cardActions",
19263
- "message": "rp_VV-Eha_message",
19264
- "meta": "rp_VV-Eha_meta",
19265
- "field": "rp_VV-Eha_field",
19266
- "area": "rp_VV-Eha_area",
19267
- "entryArea": "rp_VV-Eha_entryArea",
19268
- "grid": "rp_VV-Eha_grid",
20152
+ "name": "rp_VV-Eha_name",
19269
20153
  "section": "rp_VV-Eha_section",
19270
- "sectionTitle": "rp_VV-Eha_sectionTitle",
19271
- "page": "rp_VV-Eha_page",
19272
20154
  "head": "rp_VV-Eha_head",
19273
- "row": "rp_VV-Eha_row",
19274
- "ok": "rp_VV-Eha_ok",
20155
+ "page": "rp_VV-Eha_page",
20156
+ "warning": "rp_VV-Eha_warning",
20157
+ "input": "rp_VV-Eha_input",
20158
+ "sectionTitle": "rp_VV-Eha_sectionTitle",
20159
+ "count": "rp_VV-Eha_count",
19275
20160
  "select": "rp_VV-Eha_select",
19276
- "editBody": "rp_VV-Eha_editBody",
19277
20161
  "description": "rp_VV-Eha_description",
19278
- "toolbar": "rp_VV-Eha_toolbar",
19279
- "form": "rp_VV-Eha_form",
20162
+ "viewport": "rp_VV-Eha_viewport",
20163
+ "meta": "rp_VV-Eha_meta",
20164
+ "error": "rp_VV-Eha_error",
19280
20165
  "actions": "rp_VV-Eha_actions",
20166
+ "toolbar": "rp_VV-Eha_toolbar",
20167
+ "grid": "rp_VV-Eha_grid",
20168
+ "message": "rp_VV-Eha_message",
20169
+ "cardActions": "rp_VV-Eha_cardActions",
20170
+ "label": "rp_VV-Eha_label",
20171
+ "row": "rp_VV-Eha_row",
19281
20172
  "title": "rp_VV-Eha_title",
19282
- "count": "rp_VV-Eha_count"
20173
+ "entryArea": "rp_VV-Eha_entryArea",
20174
+ "area": "rp_VV-Eha_area",
20175
+ "form": "rp_VV-Eha_form",
20176
+ "editBody": "rp_VV-Eha_editBody",
20177
+ "ok": "rp_VV-Eha_ok",
20178
+ "help": "rp_VV-Eha_help",
20179
+ "field": "rp_VV-Eha_field",
20180
+ "editTitle": "rp_VV-Eha_editTitle",
20181
+ "editHeader": "rp_VV-Eha_editHeader"
19283
20182
  };
19284
20183
  // src/client/pages/lorebooks/LorebookEditor.tsx
19285
20184
  const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -20660,7 +21559,7 @@ window.__ModuleLoader__.load({
20660
21559
  kind_legend: "Lenda",
20661
21560
  kind_other: "Outro"
20662
21561
  }
20663
- }, dictionaries$26);
21562
+ }, dictionaries$27);
20664
21563
  // src/client/pages/lorebooks/lorebooks-controller.ts
20665
21564
  const messageOf$7 = (error) => error instanceof Error ? error.message : String(error);
20666
21565
  /** Reads the lorebook library from the host and makes, removes and opens its lorebooks. */
@@ -20781,35 +21680,35 @@ window.__ModuleLoader__.load({
20781
21680
  }
20782
21681
  tag$30.textContent = css$30;
20783
21682
  var PresetsPage_module_css_default = {
20784
- "section": "rp_ZK89ba_section",
20785
- "error": "rp_ZK89ba_error",
20786
- "label": "rp_ZK89ba_label",
20787
- "warning": "rp_ZK89ba_warning",
20788
- "message": "rp_ZK89ba_message",
20789
- "area": "rp_ZK89ba_area",
21683
+ "row": "rp_ZK89ba_row",
20790
21684
  "viewport": "rp_ZK89ba_viewport",
20791
- "ok": "rp_ZK89ba_ok",
21685
+ "field": "rp_ZK89ba_field",
21686
+ "help": "rp_ZK89ba_help",
21687
+ "count": "rp_ZK89ba_count",
20792
21688
  "title": "rp_ZK89ba_title",
20793
- "description": "rp_ZK89ba_description",
20794
- "grid": "rp_ZK89ba_grid",
20795
- "card": "rp_ZK89ba_card",
21689
+ "editTitle": "rp_ZK89ba_editTitle",
21690
+ "page": "rp_ZK89ba_page",
21691
+ "form": "rp_ZK89ba_form",
21692
+ "label": "rp_ZK89ba_label",
21693
+ "cardActions": "rp_ZK89ba_cardActions",
20796
21694
  "head": "rp_ZK89ba_head",
20797
- "name": "rp_ZK89ba_name",
20798
21695
  "sectionTitle": "rp_ZK89ba_sectionTitle",
20799
- "editHeader": "rp_ZK89ba_editHeader",
20800
- "row": "rp_ZK89ba_row",
20801
- "toolbar": "rp_ZK89ba_toolbar",
20802
21696
  "editBody": "rp_ZK89ba_editBody",
20803
- "actions": "rp_ZK89ba_actions",
20804
- "count": "rp_ZK89ba_count",
20805
- "page": "rp_ZK89ba_page",
20806
21697
  "meta": "rp_ZK89ba_meta",
21698
+ "toolbar": "rp_ZK89ba_toolbar",
21699
+ "message": "rp_ZK89ba_message",
21700
+ "editHeader": "rp_ZK89ba_editHeader",
21701
+ "ok": "rp_ZK89ba_ok",
21702
+ "description": "rp_ZK89ba_description",
21703
+ "name": "rp_ZK89ba_name",
21704
+ "section": "rp_ZK89ba_section",
21705
+ "card": "rp_ZK89ba_card",
21706
+ "warning": "rp_ZK89ba_warning",
21707
+ "area": "rp_ZK89ba_area",
20807
21708
  "input": "rp_ZK89ba_input",
20808
- "help": "rp_ZK89ba_help",
20809
- "field": "rp_ZK89ba_field",
20810
- "form": "rp_ZK89ba_form",
20811
- "editTitle": "rp_ZK89ba_editTitle",
20812
- "cardActions": "rp_ZK89ba_cardActions"
21709
+ "actions": "rp_ZK89ba_actions",
21710
+ "error": "rp_ZK89ba_error",
21711
+ "grid": "rp_ZK89ba_grid"
20813
21712
  };
20814
21713
  // src/client/pages/presets/PresetEditor.tsx
20815
21714
  const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -22129,7 +23028,7 @@ window.__ModuleLoader__.load({
22129
23028
  "prompt_roleplay/style": "Estilo narrativo",
22130
23029
  "prompt_roleplay/character-style": "Estilo das personagens"
22131
23030
  }
22132
- }, dictionaries$24), dictionaries$26);
23031
+ }, dictionaries$25), dictionaries$27);
22133
23032
  // src/client/pages/presets/presets-controller.ts
22134
23033
  const messageOf$4 = (error) => error instanceof Error ? error.message : String(error);
22135
23034
  /** Reads the preset library from the host and makes, removes and opens its presets. */
@@ -22298,34 +23197,34 @@ window.__ModuleLoader__.load({
22298
23197
  }
22299
23198
  tag$29.textContent = css$29;
22300
23199
  var PromptsPage_module_css_default = {
22301
- "sign": "rp_DLg_5G_sign",
22302
- "check": "rp_DLg_5G_check",
22303
- "editTitle": "rp_DLg_5G_editTitle",
22304
- "viewport": "rp_DLg_5G_viewport",
22305
- "ok": "rp_DLg_5G_ok",
22306
- "message": "rp_DLg_5G_message",
22307
- "help": "rp_DLg_5G_help",
22308
- "count": "rp_DLg_5G_count",
22309
- "editBody": "rp_DLg_5G_editBody",
22310
- "actions": "rp_DLg_5G_actions",
22311
- "toolbar": "rp_DLg_5G_toolbar",
22312
- "label": "rp_DLg_5G_label",
22313
- "list": "rp_DLg_5G_list",
22314
- "editHeader": "rp_DLg_5G_editHeader",
22315
- "spacer": "rp_DLg_5G_spacer",
22316
- "page": "rp_DLg_5G_page",
22317
- "group": "rp_DLg_5G_group",
22318
- "warning": "rp_DLg_5G_warning",
22319
23200
  "pane": "rp_DLg_5G_pane",
22320
- "row": "rp_DLg_5G_row",
22321
- "panes": "rp_DLg_5G_panes",
23201
+ "area": "rp_DLg_5G_area",
22322
23202
  "shipped": "rp_DLg_5G_shipped",
22323
23203
  "line": "rp_DLg_5G_line",
22324
- "rowLanguage": "rp_DLg_5G_rowLanguage",
23204
+ "label": "rp_DLg_5G_label",
23205
+ "check": "rp_DLg_5G_check",
23206
+ "spacer": "rp_DLg_5G_spacer",
22325
23207
  "missing": "rp_DLg_5G_missing",
23208
+ "actions": "rp_DLg_5G_actions",
23209
+ "group": "rp_DLg_5G_group",
23210
+ "rowLanguage": "rp_DLg_5G_rowLanguage",
23211
+ "rowName": "rp_DLg_5G_rowName",
23212
+ "help": "rp_DLg_5G_help",
23213
+ "editHeader": "rp_DLg_5G_editHeader",
22326
23214
  "error": "rp_DLg_5G_error",
22327
- "area": "rp_DLg_5G_area",
22328
- "rowName": "rp_DLg_5G_rowName"
23215
+ "sign": "rp_DLg_5G_sign",
23216
+ "message": "rp_DLg_5G_message",
23217
+ "warning": "rp_DLg_5G_warning",
23218
+ "panes": "rp_DLg_5G_panes",
23219
+ "row": "rp_DLg_5G_row",
23220
+ "ok": "rp_DLg_5G_ok",
23221
+ "count": "rp_DLg_5G_count",
23222
+ "viewport": "rp_DLg_5G_viewport",
23223
+ "toolbar": "rp_DLg_5G_toolbar",
23224
+ "list": "rp_DLg_5G_list",
23225
+ "editTitle": "rp_DLg_5G_editTitle",
23226
+ "editBody": "rp_DLg_5G_editBody",
23227
+ "page": "rp_DLg_5G_page"
22329
23228
  };
22330
23229
  // src/client/pages/prompts/PromptEditor.tsx
22331
23230
  const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -23186,10 +24085,10 @@ window.__ModuleLoader__.load({
23186
24085
  tag$26.textContent = css$26;
23187
24086
  var DeleteSessionDialog_module_css_default = {
23188
24087
  "choice": "rp_FifHrW_choice",
23189
- "error": "rp_FifHrW_error",
23190
- "body": "rp_FifHrW_body",
23191
24088
  "warning": "rp_FifHrW_warning",
23192
- "question": "rp_FifHrW_question"
24089
+ "body": "rp_FifHrW_body",
24090
+ "question": "rp_FifHrW_question",
24091
+ "error": "rp_FifHrW_error"
23193
24092
  };
23194
24093
  // src/client/pages/sessions/DeleteSessionDialog.tsx
23195
24094
  /** Asks for confirmation before a session and everything saved with it is removed. */
@@ -23714,27 +24613,27 @@ window.__ModuleLoader__.load({
23714
24613
  tag$25.textContent = css$25;
23715
24614
  var SessionsPage_module_css_default = {
23716
24615
  "turnsColumn": "rp_24z4eW_turnsColumn",
23717
- "table": "rp_24z4eW_table",
23718
- "name": "rp_24z4eW_name",
23719
- "message": "rp_24z4eW_message",
23720
- "number": "rp_24z4eW_number",
23721
- "scrolls": "rp_24z4eW_scrolls",
24616
+ "secondary": "rp_24z4eW_secondary",
23722
24617
  "actions": "rp_24z4eW_actions",
24618
+ "page": "rp_24z4eW_page",
23723
24619
  "notice": "rp_24z4eW_notice",
24620
+ "spin": "rp_24z4eW_spin",
24621
+ "message": "rp_24z4eW_message",
24622
+ "archived": "rp_24z4eW_archived",
23724
24623
  "fits": "rp_24z4eW_fits",
23725
- "timeColumn": "rp_24z4eW_timeColumn",
23726
- "count": "rp_24z4eW_count",
23727
24624
  "worldColumn": "rp_24z4eW_worldColumn",
24625
+ "number": "rp_24z4eW_number",
24626
+ "toolbar": "rp_24z4eW_toolbar",
24627
+ "count": "rp_24z4eW_count",
24628
+ "viewport": "rp_24z4eW_viewport",
24629
+ "name": "rp_24z4eW_name",
23728
24630
  "actionsColumn": "rp_24z4eW_actionsColumn",
23729
24631
  "nameColumn": "rp_24z4eW_nameColumn",
23730
- "page": "rp_24z4eW_page",
23731
24632
  "spinning": "rp_24z4eW_spinning",
23732
- "spin": "rp_24z4eW_spin",
23733
- "secondary": "rp_24z4eW_secondary",
23734
- "badge": "rp_24z4eW_badge",
23735
- "viewport": "rp_24z4eW_viewport",
23736
- "archived": "rp_24z4eW_archived",
23737
- "toolbar": "rp_24z4eW_toolbar"
24633
+ "scrolls": "rp_24z4eW_scrolls",
24634
+ "table": "rp_24z4eW_table",
24635
+ "timeColumn": "rp_24z4eW_timeColumn",
24636
+ "badge": "rp_24z4eW_badge"
23738
24637
  };
23739
24638
  // src/client/pages/sessions/SessionsPage.tsx
23740
24639
  /** The sessions as a table, one page at a time, the most recently played first. */
@@ -24473,29 +25372,29 @@ window.__ModuleLoader__.load({
24473
25372
  }
24474
25373
  tag$24.textContent = css$24;
24475
25374
  var SyncPage_module_css_default = {
24476
- "page": "rp_Gk-byG_page",
24477
- "choices": "rp_Gk-byG_choices",
24478
- "detailsColumn": "rp_Gk-byG_detailsColumn",
24479
- "table": "rp_Gk-byG_table",
24480
- "actions": "rp_Gk-byG_actions",
24481
- "kindColumn": "rp_Gk-byG_kindColumn",
24482
- "stateColumn": "rp_Gk-byG_stateColumn",
24483
- "conflict": "rp_Gk-byG_conflict",
24484
- "actionHeading": "rp_Gk-byG_actionHeading",
24485
- "unit": "rp_Gk-byG_unit",
24486
- "failed": "rp_Gk-byG_failed",
25375
+ "meta": "rp_Gk-byG_meta",
24487
25376
  "message": "rp_Gk-byG_message",
25377
+ "toolbar": "rp_Gk-byG_toolbar",
25378
+ "stateColumn": "rp_Gk-byG_stateColumn",
25379
+ "viewport": "rp_Gk-byG_viewport",
25380
+ "kindColumn": "rp_Gk-byG_kindColumn",
24488
25381
  "detail": "rp_Gk-byG_detail",
24489
- "meta": "rp_Gk-byG_meta",
24490
- "actionsColumn": "rp_Gk-byG_actionsColumn",
24491
- "syncedColumn": "rp_Gk-byG_syncedColumn",
24492
- "unitColumn": "rp_Gk-byG_unitColumn",
25382
+ "table": "rp_Gk-byG_table",
25383
+ "page": "rp_Gk-byG_page",
25384
+ "conflict": "rp_Gk-byG_conflict",
24493
25385
  "caption": "rp_Gk-byG_caption",
25386
+ "choices": "rp_Gk-byG_choices",
25387
+ "actionsColumn": "rp_Gk-byG_actionsColumn",
24494
25388
  "error": "rp_Gk-byG_error",
24495
25389
  "confirmation": "rp_Gk-byG_confirmation",
24496
- "toolbar": "rp_Gk-byG_toolbar",
24497
- "viewport": "rp_Gk-byG_viewport",
24498
- "problem": "rp_Gk-byG_problem"
25390
+ "syncedColumn": "rp_Gk-byG_syncedColumn",
25391
+ "problem": "rp_Gk-byG_problem",
25392
+ "actions": "rp_Gk-byG_actions",
25393
+ "unit": "rp_Gk-byG_unit",
25394
+ "actionHeading": "rp_Gk-byG_actionHeading",
25395
+ "unitColumn": "rp_Gk-byG_unitColumn",
25396
+ "failed": "rp_Gk-byG_failed",
25397
+ "detailsColumn": "rp_Gk-byG_detailsColumn"
24499
25398
  };
24500
25399
  // src/client/pages/sync/SyncPage.tsx
24501
25400
  const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
@@ -25320,14 +26219,14 @@ window.__ModuleLoader__.load({
25320
26219
  }
25321
26220
  tag$23.textContent = css$23;
25322
26221
  var Toast_module_css_default = {
25323
- "actionButton": "rp_jnVj9q_actionButton",
25324
- "success": "rp_jnVj9q_success",
25325
26222
  "prefix": "rp_jnVj9q_prefix",
26223
+ "actionButton": "rp_jnVj9q_actionButton",
26224
+ "banner": "rp_jnVj9q_banner",
26225
+ "text": "rp_jnVj9q_text",
25326
26226
  "rpToastEnter": "rp_jnVj9q_rpToastEnter",
25327
26227
  "action": "rp_jnVj9q_action",
25328
- "banner": "rp_jnVj9q_banner",
25329
26228
  "fading": "rp_jnVj9q_fading",
25330
- "text": "rp_jnVj9q_text"
26229
+ "success": "rp_jnVj9q_success"
25331
26230
  };
25332
26231
  // src/client/ui/Toast.tsx
25333
26232
  const FADE_MS = 200;
@@ -25385,7 +26284,7 @@ window.__ModuleLoader__.load({
25385
26284
  });
25386
26285
  }
25387
26286
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/world-card/WorldCard.module.css.mjs
25388
- const css$22 = ".rp_Bvxx5q_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;flex:auto;min-width:0;transition:border-color .12s;display:flex;position:relative;overflow:hidden}.rp_Bvxx5q_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_Bvxx5q_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_cover{background:var(--dsw-alias-bg-layer-3);flex:1 1 0;min-height:0;position:relative;overflow:hidden}.rp_Bvxx5q_image{object-fit:cover;width:100%;height:100%;display:block}.rp_Bvxx5q_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:40px;font-weight:500;display:flex}.rp_Bvxx5q_play{z-index:2;corner-shape:round;color:#fff;opacity:.6;cursor:pointer;background:#00000059;border:0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:opacity .12s,background-color .12s;display:flex;position:absolute;top:8px;right:8px}.rp_Bvxx5q_card:hover .rp_Bvxx5q_play,.rp_Bvxx5q_play:focus-visible{opacity:1}.rp_Bvxx5q_play:hover{background:#0000008c}.rp_Bvxx5q_play:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_info{flex-direction:column;flex:none;gap:4px;padding:8px 10px;display:flex}.rp_Bvxx5q_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.rp_Bvxx5q_tags{gap:4px;display:flex;overflow:hidden;mask-image:linear-gradient(90deg,#000 calc(100% - 20px),#0000)}.rp_Bvxx5q_tag{flex:none}.rp_Bvxx5q_openButton{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;width:100%;padding:0;position:absolute;inset:0}.rp_Bvxx5q_openButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}";
26287
+ const css$22 = ".rp_Bvxx5q_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;flex:auto;min-width:0;transition:border-color .12s;display:flex;position:relative;overflow:hidden}.rp_Bvxx5q_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_Bvxx5q_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_cover{background:var(--dsw-alias-bg-layer-3);flex:1 1 0;min-height:0;position:relative;overflow:hidden}.rp_Bvxx5q_image{object-fit:cover;width:100%;height:100%;display:block}.rp_Bvxx5q_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:40px;font-weight:500;display:flex}.rp_Bvxx5q_play{z-index:2;corner-shape:round;color:#fff;opacity:.6;cursor:pointer;background:#00000059;border:0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:opacity .12s,background-color .12s;display:flex;position:absolute;top:8px;right:8px}.rp_Bvxx5q_card:hover .rp_Bvxx5q_play,.rp_Bvxx5q_play:focus-visible{opacity:1}.rp_Bvxx5q_play:hover{background:#0000008c}.rp_Bvxx5q_play:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_info{flex-direction:column;flex:none;gap:4px;padding:8px 10px;display:flex}.rp_Bvxx5q_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.rp_Bvxx5q_tags{gap:4px;height:19px;display:flex;overflow:hidden;mask-image:linear-gradient(90deg,#000 calc(100% - 20px),#0000)}.rp_Bvxx5q_tag{flex:none}.rp_Bvxx5q_openButton{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;width:100%;padding:0;position:absolute;inset:0}.rp_Bvxx5q_openButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}";
25389
26288
  const key$22 = "src/client/widgets/world-card/WorldCard.module.css";
25390
26289
  let tag$22 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$22) + "]");
25391
26290
  if (tag$22 === null) {
@@ -25396,14 +26295,14 @@ window.__ModuleLoader__.load({
25396
26295
  }
25397
26296
  tag$22.textContent = css$22;
25398
26297
  var WorldCard_module_css_default = {
25399
- "play": "rp_Bvxx5q_play",
25400
- "name": "rp_Bvxx5q_name",
25401
- "card": "rp_Bvxx5q_card",
25402
- "image": "rp_Bvxx5q_image",
25403
26298
  "info": "rp_Bvxx5q_info",
25404
- "cover": "rp_Bvxx5q_cover",
26299
+ "card": "rp_Bvxx5q_card",
26300
+ "play": "rp_Bvxx5q_play",
25405
26301
  "tags": "rp_Bvxx5q_tags",
25406
26302
  "tag": "rp_Bvxx5q_tag",
26303
+ "cover": "rp_Bvxx5q_cover",
26304
+ "name": "rp_Bvxx5q_name",
26305
+ "image": "rp_Bvxx5q_image",
25407
26306
  "openButton": "rp_Bvxx5q_openButton",
25408
26307
  "placeholder": "rp_Bvxx5q_placeholder"
25409
26308
  };
@@ -25477,7 +26376,7 @@ window.__ModuleLoader__.load({
25477
26376
  "data-testid": "world-draft",
25478
26377
  children: draftLabel
25479
26378
  })]
25480
- }), world.tags.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
26379
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
25481
26380
  className: WorldCard_module_css_default.tags,
25482
26381
  children: world.tags.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
25483
26382
  tone: "neutral",
@@ -25502,10 +26401,10 @@ window.__ModuleLoader__.load({
25502
26401
  }
25503
26402
  tag$21.textContent = css$21;
25504
26403
  var AvatarChoices_module_css_default = {
25505
- "option": "rp_YCstOG_option",
25506
26404
  "name": "rp_YCstOG_name",
26405
+ "summary": "rp_YCstOG_summary",
25507
26406
  "text": "rp_YCstOG_text",
25508
- "summary": "rp_YCstOG_summary"
26407
+ "option": "rp_YCstOG_option"
25509
26408
  };
25510
26409
  // src/client/widgets/avatar-choices/AvatarChoices.tsx
25511
26410
  /** A list of avatars to tick: the ones brought into a world or a session. */
@@ -25543,18 +26442,18 @@ window.__ModuleLoader__.load({
25543
26442
  }
25544
26443
  tag$20.textContent = css$20;
25545
26444
  var StartSessionDialog_module_css_default = {
25546
- "optionText": "rp_AnbLKG_optionText",
25547
26445
  "optionSummary": "rp_AnbLKG_optionSummary",
25548
- "label": "rp_AnbLKG_label",
25549
- "advancedBody": "rp_AnbLKG_advancedBody",
25550
- "message": "rp_AnbLKG_message",
25551
26446
  "advanced": "rp_AnbLKG_advanced",
25552
26447
  "option": "rp_AnbLKG_option",
25553
- "field": "rp_AnbLKG_field",
25554
- "error": "rp_AnbLKG_error",
25555
- "advancedToggle": "rp_AnbLKG_advancedToggle",
26448
+ "advancedBody": "rp_AnbLKG_advancedBody",
26449
+ "label": "rp_AnbLKG_label",
26450
+ "form": "rp_AnbLKG_form",
25556
26451
  "optionName": "rp_AnbLKG_optionName",
25557
- "form": "rp_AnbLKG_form"
26452
+ "message": "rp_AnbLKG_message",
26453
+ "advancedToggle": "rp_AnbLKG_advancedToggle",
26454
+ "error": "rp_AnbLKG_error",
26455
+ "field": "rp_AnbLKG_field",
26456
+ "optionText": "rp_AnbLKG_optionText"
25558
26457
  };
25559
26458
  // src/client/pages/worlds/AddAvatarsDialog.tsx
25560
26459
  /** Asks which avatars become characters of a world's own files. */
@@ -25846,6 +26745,7 @@ window.__ModuleLoader__.load({
25846
26745
  mode: choice([
25847
26746
  "off",
25848
26747
  "manual",
26748
+ "important",
25849
26749
  "every-turn"
25850
26750
  ], "manual"),
25851
26751
  references: choice([
@@ -26478,6 +27378,10 @@ window.__ModuleLoader__.load({
26478
27378
  value: "manual",
26479
27379
  label: "imagesManual"
26480
27380
  },
27381
+ {
27382
+ value: "important",
27383
+ label: "imagesImportant"
27384
+ },
26481
27385
  {
26482
27386
  value: "every-turn",
26483
27387
  label: "imagesEveryTurn"
@@ -26929,9 +27833,9 @@ window.__ModuleLoader__.load({
26929
27833
  }
26930
27834
  tag$19.textContent = css$19;
26931
27835
  var SegmentedControl_module_css_default = {
26932
- "rpIndicator": "rp_wN4Tqa_rpIndicator",
26933
27836
  "rpControl": "rp_wN4Tqa_rpControl",
26934
- "rpTab": "rp_wN4Tqa_rpTab"
27837
+ "rpTab": "rp_wN4Tqa_rpTab",
27838
+ "rpIndicator": "rp_wN4Tqa_rpIndicator"
26935
27839
  };
26936
27840
  // src/client/ui/walk.ts
26937
27841
  /** Whether a key moves the selection inside a tablist. */
@@ -27024,15 +27928,15 @@ window.__ModuleLoader__.load({
27024
27928
  }
27025
27929
  tag$18.textContent = css$18;
27026
27930
  var SettingsFields_module_css_default = {
27027
- "area": "rp_Rhi3yq_area",
27028
27931
  "choiceField": "rp_Rhi3yq_choiceField",
27029
- "label": "rp_Rhi3yq_label",
27030
- "help": "rp_Rhi3yq_help",
27031
27932
  "error": "rp_Rhi3yq_error",
27032
- "group": "rp_Rhi3yq_group",
27933
+ "help": "rp_Rhi3yq_help",
27033
27934
  "field": "rp_Rhi3yq_field",
27034
- "groupTitle": "rp_Rhi3yq_groupTitle",
27035
- "row": "rp_Rhi3yq_row"
27935
+ "row": "rp_Rhi3yq_row",
27936
+ "group": "rp_Rhi3yq_group",
27937
+ "area": "rp_Rhi3yq_area",
27938
+ "label": "rp_Rhi3yq_label",
27939
+ "groupTitle": "rp_Rhi3yq_groupTitle"
27036
27940
  };
27037
27941
  // src/client/settings-form/SettingsFields.tsx
27038
27942
  /** The settings of a chat as editable fields: one control with its explanation under each. */
@@ -27338,9 +28242,9 @@ window.__ModuleLoader__.load({
27338
28242
  }
27339
28243
  tag$17.textContent = css$17;
27340
28244
  var TranslateBanner_module_css_default = {
27341
- "banner": "rp_Lx8vJa_banner",
27342
- "bannerActions": "rp_Lx8vJa_bannerActions",
27343
28245
  "error": "rp_Lx8vJa_error",
28246
+ "bannerActions": "rp_Lx8vJa_bannerActions",
28247
+ "banner": "rp_Lx8vJa_banner",
27344
28248
  "text": "rp_Lx8vJa_text"
27345
28249
  };
27346
28250
  // src/client/pages/worlds/TranslateBanner.tsx
@@ -27981,26 +28885,26 @@ window.__ModuleLoader__.load({
27981
28885
  }
27982
28886
  tag$16.textContent = css$16;
27983
28887
  var WorldsPage_module_css_default = {
27984
- "notice": "rp_FHUyRq_notice",
27985
- "spin": "rp_FHUyRq_spin",
28888
+ "toolbarActions": "rp_FHUyRq_toolbarActions",
28889
+ "viewport": "rp_FHUyRq_viewport",
28890
+ "spinning": "rp_FHUyRq_spinning",
28891
+ "fits": "rp_FHUyRq_fits",
28892
+ "toolbar": "rp_FHUyRq_toolbar",
28893
+ "editTitle": "rp_FHUyRq_editTitle",
27986
28894
  "editActions": "rp_FHUyRq_editActions",
27987
28895
  "editBody": "rp_FHUyRq_editBody",
27988
- "editHeader": "rp_FHUyRq_editHeader",
27989
28896
  "starter": "rp_FHUyRq_starter",
27990
- "message": "rp_FHUyRq_message",
28897
+ "grid": "rp_FHUyRq_grid",
27991
28898
  "count": "rp_FHUyRq_count",
27992
- "spinning": "rp_FHUyRq_spinning",
28899
+ "notice": "rp_FHUyRq_notice",
27993
28900
  "page": "rp_FHUyRq_page",
27994
- "info": "rp_FHUyRq_info",
27995
- "toolbar": "rp_FHUyRq_toolbar",
28901
+ "cell": "rp_FHUyRq_cell",
28902
+ "spin": "rp_FHUyRq_spin",
27996
28903
  "starters": "rp_FHUyRq_starters",
27997
- "toolbarActions": "rp_FHUyRq_toolbarActions",
28904
+ "info": "rp_FHUyRq_info",
27998
28905
  "scrolls": "rp_FHUyRq_scrolls",
27999
- "editTitle": "rp_FHUyRq_editTitle",
28000
- "grid": "rp_FHUyRq_grid",
28001
- "cell": "rp_FHUyRq_cell",
28002
- "fits": "rp_FHUyRq_fits",
28003
- "viewport": "rp_FHUyRq_viewport"
28906
+ "editHeader": "rp_FHUyRq_editHeader",
28907
+ "message": "rp_FHUyRq_message"
28004
28908
  };
28005
28909
  // src/client/pages/worlds/StarterWorlds.tsx
28006
28910
  /** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
@@ -29186,7 +30090,7 @@ window.__ModuleLoader__.load({
29186
30090
  suggestionsCount: "Suggested actions",
29187
30091
  suggestionsCountHelp: "After each turn, a helper writes this many things your character could do next from what you just read, in the background. Click one to put it in the input box (you can edit it before sending). 0 offers none and makes no model call.",
29188
30092
  imagesMode: "Scene illustrations",
29189
- imagesModeHelp: "Manual offers an image button beneath each delivered turn. Every turn also starts an image author in the background after the text appears. Off makes no image calls.",
30093
+ imagesModeHelp: "Manual offers an image button beneath each delivered turn. Every turn also starts an image author in the background after the text appears. When it matters asks a helper after each turn whether the moment is worth a picture, and makes one only if it is. Off makes no image calls.",
29190
30094
  imagesHighRes: "Hires fix",
29191
30095
  imagesHighResHelp: "Render each picture twice: first at the configured size, then again larger from that result, which adds detail while keeping the composition. Slower; only image services that can repaint an image do it, the others ignore it.",
29192
30096
  imagesReuse: "Reuse existing images",
@@ -29269,6 +30173,7 @@ window.__ModuleLoader__.load({
29269
30173
  imagesOff: "Off",
29270
30174
  imagesManual: "Manual",
29271
30175
  imagesEveryTurn: "Every turn",
30176
+ imagesImportant: "When it matters",
29272
30177
  imageReferences: "Canonical references",
29273
30178
  imageReferencesHelp: "Reference images improve consistency when the provider supports image editing. Require makes a missing reference before illustrating; Prefer uses those already present; Text only sends descriptions.",
29274
30179
  imageReferencesText: "Text only",
@@ -29436,7 +30341,7 @@ window.__ModuleLoader__.load({
29436
30341
  suggestionsCount: "行动建议数量",
29437
30342
  suggestionsCountHelp: "每轮结束后,一个助手会根据你刚读到的内容,在后台写出这么多条你的角色接下来可以做的事。点击其中一条即可填入输入框(发送前可以修改)。0 表示不提供,也不会调用模型。",
29438
30343
  imagesMode: "场景插图",
29439
- imagesModeHelp: "手动模式会在每轮叙述下方提供生成按钮;每轮模式还会在文字显示后于后台启动图像作者;关闭后不会调用图像服务。",
30344
+ imagesModeHelp: "手动模式会在每轮叙述下方提供生成按钮;每轮模式还会在文字显示后于后台启动图像作者;“重要时”会在每轮之后让助手判断这一刻值不值得配图,值得才生成;关闭后不会调用图像服务。",
29440
30345
  imagesHighRes: "高清修复",
29441
30346
  imagesHighResHelp: "每张图渲染两次:先按设定尺寸,再以该结果为基础放大重绘,保持构图并增加细节。更慢;只有支持图生图的图像服务才会执行,其他服务会忽略。",
29442
30347
  imagesReuse: "复用已有图像",
@@ -29519,6 +30424,7 @@ window.__ModuleLoader__.load({
29519
30424
  imagesOff: "关闭",
29520
30425
  imagesManual: "手动",
29521
30426
  imagesEveryTurn: "每轮",
30427
+ imagesImportant: "重要时",
29522
30428
  imageReferences: "规范参考图",
29523
30429
  imageReferencesHelp: "提供方支持图像编辑时,参考图可提高一致性。必须会先补齐缺少的参考图;优先只使用已有参考图;纯文本只发送描述。",
29524
30430
  imageReferencesText: "纯文本",
@@ -29707,6 +30613,7 @@ window.__ModuleLoader__.load({
29707
30613
  imagesOff: "オフ",
29708
30614
  imagesManual: "手動",
29709
30615
  imagesEveryTurn: "毎ターン",
30616
+ imagesImportant: "重要な場面だけ",
29710
30617
  imagesHighRes: "高解像度補正",
29711
30618
  imagesHighResHelp: "画像を設定サイズで作り、その結果を使って大きく描き直します。構図を保ちながら細部を増やせますが、遅くなります。画像編集に対応するサービスだけが実行し、ほかは無視します。",
29712
30619
  imagesReuse: "既存画像を再利用",
@@ -29958,6 +30865,7 @@ window.__ModuleLoader__.load({
29958
30865
  imagesOff: "Desactivadas",
29959
30866
  imagesManual: "Manual",
29960
30867
  imagesEveryTurn: "Cada turno",
30868
+ imagesImportant: "Cuando importa",
29961
30869
  imagesHighRes: "Mejora de alta resolución",
29962
30870
  imagesHighResHelp: "Renderiza cada imagen dos veces: primero al tamaño configurado y luego más grande a partir del resultado, para añadir detalle sin cambiar la composición. Es más lento y solo funciona con servicios capaces de repintar una imagen.",
29963
30871
  imagesReuse: "Reutilizar imágenes existentes",
@@ -30209,6 +31117,7 @@ window.__ModuleLoader__.load({
30209
31117
  imagesOff: "Désactivées",
30210
31118
  imagesManual: "Manuel",
30211
31119
  imagesEveryTurn: "Chaque tour",
31120
+ imagesImportant: "Quand c’est important",
30212
31121
  imagesHighRes: "Amélioration haute résolution",
30213
31122
  imagesHighResHelp: "Rend chaque image deux fois : d’abord à la taille configurée, puis en plus grand à partir du résultat, afin d’ajouter des détails sans changer la composition. Plus lent ; seuls les services capables de repeindre une image l’utilisent.",
30214
31123
  imagesReuse: "Réutiliser les images existantes",
@@ -30460,6 +31369,7 @@ window.__ModuleLoader__.load({
30460
31369
  imagesOff: "Aus",
30461
31370
  imagesManual: "Manuell",
30462
31371
  imagesEveryTurn: "Jeder Zug",
31372
+ imagesImportant: "Wenn es wichtig ist",
30463
31373
  imagesHighRes: "Hochauflösende Verfeinerung",
30464
31374
  imagesHighResHelp: "Rendert jedes Bild zweimal: zuerst in der eingestellten Größe, dann größer auf Grundlage des Ergebnisses. Das fügt Details hinzu und bewahrt die Komposition, ist aber langsamer. Nur Bilddienste mit Bearbeitung unterstützen es.",
30465
31375
  imagesReuse: "Vorhandene Bilder wiederverwenden",
@@ -30711,6 +31621,7 @@ window.__ModuleLoader__.load({
30711
31621
  imagesOff: "Выкл.",
30712
31622
  imagesManual: "Вручную",
30713
31623
  imagesEveryTurn: "Каждый ход",
31624
+ imagesImportant: "Только в важные моменты",
30714
31625
  imagesHighRes: "Повышение разрешения",
30715
31626
  imagesHighResHelp: "Создаёт каждое изображение дважды: сначала в заданном размере, затем крупнее на основе результата, добавляя детали и сохраняя композицию. Это медленнее и работает только со службами, умеющими перерисовывать изображение.",
30716
31627
  imagesReuse: "Повторно использовать изображения",
@@ -30962,6 +31873,7 @@ window.__ModuleLoader__.load({
30962
31873
  imagesOff: "Desligadas",
30963
31874
  imagesManual: "Manual",
30964
31875
  imagesEveryTurn: "Todos os turnos",
31876
+ imagesImportant: "Quando importa",
30965
31877
  imagesHighRes: "Melhoria de alta resolução",
30966
31878
  imagesHighResHelp: "Renderiza cada imagem duas vezes: primeiro no tamanho configurado e depois maior a partir do resultado, acrescentando pormenor sem alterar a composição. É mais lento e só funciona com serviços que conseguem repintar uma imagem.",
30967
31879
  imagesReuse: "Reutilizar imagens existentes",
@@ -32315,7 +33227,7 @@ window.__ModuleLoader__.load({
32315
33227
  startAvatars: "Levar avatares",
32316
33228
  startAvatarsHelp: "Selecione os avatares que pretende levar para esta sessão como personagens; também pode interpretá-los. O mundo não é alterado."
32317
33229
  }
32318
- }, dictionaries$9), dictionaries$16), dictionaries$26), dictionaries$27);
33230
+ }, dictionaries$9), dictionaries$16), dictionaries$27), dictionaries$28);
32319
33231
  // src/client/pages/worlds/worlds-controller.ts
32320
33232
  async function request$1(path, init, signal) {
32321
33233
  const response = await fetch(`${API_PREFIX}${path}`, {
@@ -32699,9 +33611,9 @@ window.__ModuleLoader__.load({
32699
33611
  tag$15.textContent = css$15;
32700
33612
  var BranchDialog_module_css_default = {
32701
33613
  "form": "rp_Dy1TaW_form",
33614
+ "error": "rp_Dy1TaW_error",
32702
33615
  "field": "rp_Dy1TaW_field",
32703
- "label": "rp_Dy1TaW_label",
32704
- "error": "rp_Dy1TaW_error"
33616
+ "label": "rp_Dy1TaW_label"
32705
33617
  };
32706
33618
  // src/client/branch/BranchDialog.tsx
32707
33619
  /** Asks for the name of a session that was just branched off another. */
@@ -32880,12 +33792,12 @@ window.__ModuleLoader__.load({
32880
33792
  }
32881
33793
  tag$14.textContent = css$14;
32882
33794
  var SidebarGuideEntry_module_css_default = {
32883
- "description": "rp_Okaj1q_description",
32884
- "entry": "rp_Okaj1q_entry",
32885
- "main": "rp_Okaj1q_main",
33795
+ "icon": "rp_Okaj1q_icon",
32886
33796
  "text": "rp_Okaj1q_text",
32887
- "title": "rp_Okaj1q_title",
32888
- "icon": "rp_Okaj1q_icon"
33797
+ "main": "rp_Okaj1q_main",
33798
+ "entry": "rp_Okaj1q_entry",
33799
+ "description": "rp_Okaj1q_description",
33800
+ "title": "rp_Okaj1q_title"
32889
33801
  };
32890
33802
  // src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
32891
33803
  /** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
@@ -32932,8 +33844,8 @@ window.__ModuleLoader__.load({
32932
33844
  }
32933
33845
  tag$13.textContent = css$13;
32934
33846
  var GalleryTab_module_css_default = {
32935
- "page": "rp_W688Pa_page",
32936
33847
  "message": "rp_W688Pa_message",
33848
+ "page": "rp_W688Pa_page",
32937
33849
  "bar": "rp_W688Pa_bar"
32938
33850
  };
32939
33851
  // src/client/gallery/GalleryTab.tsx
@@ -32988,7 +33900,7 @@ window.__ModuleLoader__.load({
32988
33900
  /** The gallery: a page of the right sidebar, so the pictures can be browsed while the story is read. */
32989
33901
  function registerGallery(ctx) {
32990
33902
  const t = ctx.locale.bind(NAMESPACE$7);
32991
- ctx.effect(() => ctx.locale.register(NAMESPACE$7, dictionaries$22), "roleplay: gallery dictionaries");
33903
+ ctx.effect(() => ctx.locale.register(NAMESPACE$7, dictionaries$23), "roleplay: gallery dictionaries");
32992
33904
  ctx.inject(["sidebarRight", "sidebarRightTabs"], (right) => {
32993
33905
  right.effect(() => right.sidebarRightTabs.register({
32994
33906
  id: GALLERY_ID,
@@ -33351,17 +34263,17 @@ window.__ModuleLoader__.load({
33351
34263
  }
33352
34264
  tag$12.textContent = css$12;
33353
34265
  var SidebarPage_module_css_default = {
33354
- "message": "rp_Ptco8a_message",
34266
+ "icon": "rp_Ptco8a_icon",
34267
+ "bar": "rp_Ptco8a_bar",
33355
34268
  "main": "rp_Ptco8a_main",
33356
- "title": "rp_Ptco8a_title",
33357
- "content": "rp_Ptco8a_content",
33358
34269
  "entry": "rp_Ptco8a_entry",
34270
+ "text": "rp_Ptco8a_text",
34271
+ "message": "rp_Ptco8a_message",
34272
+ "title": "rp_Ptco8a_title",
33359
34273
  "description": "rp_Ptco8a_description",
33360
- "name": "rp_Ptco8a_name",
33361
34274
  "page": "rp_Ptco8a_page",
33362
- "bar": "rp_Ptco8a_bar",
33363
- "icon": "rp_Ptco8a_icon",
33364
- "text": "rp_Ptco8a_text"
34275
+ "content": "rp_Ptco8a_content",
34276
+ "name": "rp_Ptco8a_name"
33365
34277
  };
33366
34278
  // src/client/interface/SidebarPage.tsx
33367
34279
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -33990,24 +34902,24 @@ window.__ModuleLoader__.load({
33990
34902
  }
33991
34903
  tag$11.textContent = css$11;
33992
34904
  var RecallTab_module_css_default = {
33993
- "error": "rp_jl9CIq_error",
33994
34905
  "item": "rp_jl9CIq_item",
33995
- "page": "rp_jl9CIq_page",
33996
- "hint": "rp_jl9CIq_hint",
33997
- "actions": "rp_jl9CIq_actions",
33998
- "bar": "rp_jl9CIq_bar",
33999
- "meta": "rp_jl9CIq_meta",
34906
+ "note": "rp_jl9CIq_note",
34000
34907
  "list": "rp_jl9CIq_list",
34001
- "body": "rp_jl9CIq_body",
34002
- "field": "rp_jl9CIq_field",
34003
34908
  "label": "rp_jl9CIq_label",
34004
- "form": "rp_jl9CIq_form",
34005
- "note": "rp_jl9CIq_note",
34006
- "person": "rp_jl9CIq_person",
34909
+ "error": "rp_jl9CIq_error",
34910
+ "meta": "rp_jl9CIq_meta",
34007
34911
  "area": "rp_jl9CIq_area",
34008
- "heading": "rp_jl9CIq_heading",
34912
+ "hint": "rp_jl9CIq_hint",
34913
+ "field": "rp_jl9CIq_field",
34914
+ "bar": "rp_jl9CIq_bar",
34915
+ "form": "rp_jl9CIq_form",
34009
34916
  "place": "rp_jl9CIq_place",
34010
- "name": "rp_jl9CIq_name"
34917
+ "body": "rp_jl9CIq_body",
34918
+ "page": "rp_jl9CIq_page",
34919
+ "person": "rp_jl9CIq_person",
34920
+ "actions": "rp_jl9CIq_actions",
34921
+ "name": "rp_jl9CIq_name",
34922
+ "heading": "rp_jl9CIq_heading"
34011
34923
  };
34012
34924
  // src/client/recall/RecallTab.tsx
34013
34925
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -34864,10 +35776,10 @@ window.__ModuleLoader__.load({
34864
35776
  tag$10.textContent = css$10;
34865
35777
  var ReferenceTab_module_css_default = {
34866
35778
  "page": "rp_7BGO2a_page",
34867
- "body": "rp_7BGO2a_body",
34868
- "message": "rp_7BGO2a_message",
35779
+ "bar": "rp_7BGO2a_bar",
34869
35780
  "nav": "rp_7BGO2a_nav",
34870
- "bar": "rp_7BGO2a_bar"
35781
+ "message": "rp_7BGO2a_message",
35782
+ "body": "rp_7BGO2a_body"
34871
35783
  };
34872
35784
  // src/client/reference/ReferenceTab.tsx
34873
35785
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -34987,29 +35899,29 @@ window.__ModuleLoader__.load({
34987
35899
  }
34988
35900
  tag$9.textContent = css$9;
34989
35901
  var Page_module_css_default = {
35902
+ "name": "rp_bG1sCa_name",
35903
+ "closedWay": "rp_bG1sCa_closedWay",
35904
+ "title": "rp_bG1sCa_title",
35905
+ "here": "rp_bG1sCa_here",
35906
+ "journal": "rp_bG1sCa_journal",
35907
+ "text": "rp_bG1sCa_text",
35908
+ "map": "rp_bG1sCa_map",
35909
+ "notes": "rp_bG1sCa_notes",
35910
+ "tag": "rp_bG1sCa_tag",
34990
35911
  "meta": "rp_bG1sCa_meta",
35912
+ "place": "rp_bG1sCa_place",
35913
+ "link": "rp_bG1sCa_link",
34991
35914
  "edgeLabel": "rp_bG1sCa_edgeLabel",
34992
- "list": "rp_bG1sCa_list",
34993
- "block": "rp_bG1sCa_block",
34994
- "here": "rp_bG1sCa_here",
34995
- "placeName": "rp_bG1sCa_placeName",
35915
+ "message": "rp_bG1sCa_message",
35916
+ "head": "rp_bG1sCa_head",
34996
35917
  "opened": "rp_bG1sCa_opened",
34997
- "title": "rp_bG1sCa_title",
34998
- "closedWay": "rp_bG1sCa_closedWay",
34999
- "place": "rp_bG1sCa_place",
35000
- "name": "rp_bG1sCa_name",
35001
- "heading": "rp_bG1sCa_heading",
35918
+ "way": "rp_bG1sCa_way",
35919
+ "block": "rp_bG1sCa_block",
35002
35920
  "sub": "rp_bG1sCa_sub",
35921
+ "list": "rp_bG1sCa_list",
35003
35922
  "entry": "rp_bG1sCa_entry",
35004
- "text": "rp_bG1sCa_text",
35005
- "message": "rp_bG1sCa_message",
35006
- "head": "rp_bG1sCa_head",
35007
- "link": "rp_bG1sCa_link",
35008
- "journal": "rp_bG1sCa_journal",
35009
- "notes": "rp_bG1sCa_notes",
35010
- "map": "rp_bG1sCa_map",
35011
- "tag": "rp_bG1sCa_tag",
35012
- "way": "rp_bG1sCa_way"
35923
+ "heading": "rp_bG1sCa_heading",
35924
+ "placeName": "rp_bG1sCa_placeName"
35013
35925
  };
35014
35926
  // src/client/reference/sections/Journal.tsx
35015
35927
  /** How long typing pauses before the notes are saved. */
@@ -36105,28 +37017,28 @@ window.__ModuleLoader__.load({
36105
37017
  }
36106
37018
  tag$8.textContent = css$8;
36107
37019
  var ChatSettingsView_module_css_default = {
36108
- "list": "rp_wLpbxW_list",
36109
- "message": "rp_wLpbxW_message",
36110
- "reasons": "rp_wLpbxW_reasons",
36111
- "table": "rp_wLpbxW_table",
36112
- "field": "rp_wLpbxW_field",
36113
- "view": "rp_wLpbxW_view",
36114
- "actions": "rp_wLpbxW_actions",
36115
37020
  "row": "rp_wLpbxW_row",
36116
- "tableViewport": "rp_wLpbxW_tableViewport",
36117
- "title": "rp_wLpbxW_title",
36118
- "help": "rp_wLpbxW_help",
36119
- "link": "rp_wLpbxW_link",
36120
- "activityBody": "rp_wLpbxW_activityBody",
36121
- "select": "rp_wLpbxW_select",
36122
- "notice": "rp_wLpbxW_notice",
36123
37021
  "pre": "rp_wLpbxW_pre",
36124
- "activity": "rp_wLpbxW_activity",
36125
- "error": "rp_wLpbxW_error",
37022
+ "view": "rp_wLpbxW_view",
37023
+ "activityBody": "rp_wLpbxW_activityBody",
37024
+ "link": "rp_wLpbxW_link",
37025
+ "reasons": "rp_wLpbxW_reasons",
36126
37026
  "description": "rp_wLpbxW_description",
36127
- "label": "rp_wLpbxW_label",
37027
+ "run": "rp_wLpbxW_run",
37028
+ "activity": "rp_wLpbxW_activity",
37029
+ "list": "rp_wLpbxW_list",
37030
+ "notice": "rp_wLpbxW_notice",
36128
37031
  "saved": "rp_wLpbxW_saved",
36129
- "run": "rp_wLpbxW_run"
37032
+ "title": "rp_wLpbxW_title",
37033
+ "select": "rp_wLpbxW_select",
37034
+ "help": "rp_wLpbxW_help",
37035
+ "label": "rp_wLpbxW_label",
37036
+ "tableViewport": "rp_wLpbxW_tableViewport",
37037
+ "field": "rp_wLpbxW_field",
37038
+ "error": "rp_wLpbxW_error",
37039
+ "table": "rp_wLpbxW_table",
37040
+ "actions": "rp_wLpbxW_actions",
37041
+ "message": "rp_wLpbxW_message"
36130
37042
  };
36131
37043
  // src/client/chat-settings/settings-api.ts
36132
37044
  /** The chat is not a roleplay session, so it has no settings. */
@@ -40617,7 +41529,7 @@ window.__ModuleLoader__.load({
40617
41529
  saved: "Guardado.",
40618
41530
  saveFailed: "Não foi possível guardar os ajustes: {message}"
40619
41531
  }
40620
- }, dictionaries$9), dictionaries$23), dictionaries$3);
41532
+ }, dictionaries$9), dictionaries$24), dictionaries$3);
40621
41533
  // src/client/chat-settings/index.ts
40622
41534
  const NAMESPACE$2 = "roleplay.chatSettings";
40623
41535
  const VIEW_ID = "roleplay-settings";
@@ -40659,11 +41571,11 @@ window.__ModuleLoader__.load({
40659
41571
  tag$7.textContent = css$7;
40660
41572
  var SettingsForm_module_css_default = {
40661
41573
  "readOnly": "rp_eL0Ehq_readOnly",
41574
+ "form": "rp_eL0Ehq_form",
41575
+ "unavailable": "rp_eL0Ehq_unavailable",
40662
41576
  "footer": "rp_eL0Ehq_footer",
40663
- "failed": "rp_eL0Ehq_failed",
40664
41577
  "save": "rp_eL0Ehq_save",
40665
- "form": "rp_eL0Ehq_form",
40666
- "unavailable": "rp_eL0Ehq_unavailable"
41578
+ "failed": "rp_eL0Ehq_failed"
40667
41579
  };
40668
41580
  // src/client/ui/SettingsForm.tsx
40669
41581
  /**
@@ -40720,17 +41632,17 @@ window.__ModuleLoader__.load({
40720
41632
  }
40721
41633
  tag$6.textContent = css$6;
40722
41634
  var SettingsValueField_module_css_default = {
41635
+ "label": "rp_AFBKEG_label",
40723
41636
  "input": "rp_AFBKEG_input",
40724
41637
  "hint": "rp_AFBKEG_hint",
41638
+ "badges": "rp_AFBKEG_badges",
41639
+ "reset": "rp_AFBKEG_reset",
41640
+ "help": "rp_AFBKEG_help",
40725
41641
  "head": "rp_AFBKEG_head",
40726
41642
  "labelGroup": "rp_AFBKEG_labelGroup",
40727
- "help": "rp_AFBKEG_help",
40728
- "label": "rp_AFBKEG_label",
40729
- "invalid": "rp_AFBKEG_invalid",
40730
41643
  "field": "rp_AFBKEG_field",
40731
- "badges": "rp_AFBKEG_badges",
40732
41644
  "helpButton": "rp_AFBKEG_helpButton",
40733
- "reset": "rp_AFBKEG_reset"
41645
+ "invalid": "rp_AFBKEG_invalid"
40734
41646
  };
40735
41647
  // src/client/ui/SettingsValueField.tsx
40736
41648
  /**
@@ -40816,15 +41728,15 @@ window.__ModuleLoader__.load({
40816
41728
  }
40817
41729
  tag$5.textContent = css$5;
40818
41730
  var CatalogueSettings_module_css_default = {
40819
- "title": "rp_KPhXDa_title",
41731
+ "problem": "rp_KPhXDa_problem",
40820
41732
  "keyArea": "rp_KPhXDa_keyArea",
41733
+ "title": "rp_KPhXDa_title",
41734
+ "hint": "rp_KPhXDa_hint",
41735
+ "field": "rp_KPhXDa_field",
40821
41736
  "label": "rp_KPhXDa_label",
40822
- "problem": "rp_KPhXDa_problem",
40823
41737
  "keyHint": "rp_KPhXDa_keyHint",
40824
41738
  "actions": "rp_KPhXDa_actions",
40825
- "field": "rp_KPhXDa_field",
40826
41739
  "section": "rp_KPhXDa_section",
40827
- "hint": "rp_KPhXDa_hint",
40828
41740
  "row": "rp_KPhXDa_row"
40829
41741
  };
40830
41742
  // src/client/settings/AuthoringToolSettings.tsx
@@ -41019,6 +41931,14 @@ window.__ModuleLoader__.load({
41019
41931
  max: 3650,
41020
41932
  placeholder: "30"
41021
41933
  },
41934
+ {
41935
+ field: "worldCheckpointsKept",
41936
+ group: "limits",
41937
+ kind: "integer",
41938
+ min: 1,
41939
+ max: 500,
41940
+ placeholder: "30"
41941
+ },
41022
41942
  {
41023
41943
  field: "autonomyTickSeconds",
41024
41944
  group: "limits",
@@ -41065,18 +41985,18 @@ window.__ModuleLoader__.load({
41065
41985
  }
41066
41986
  tag$4.textContent = css$4;
41067
41987
  var AssistantSettings_module_css_default = {
41068
- "fieldHint": "rp_ZwzM4q_fieldHint",
41988
+ "title": "rp_ZwzM4q_title",
41989
+ "invalid": "rp_ZwzM4q_invalid",
41069
41990
  "label": "rp_ZwzM4q_label",
41991
+ "badges": "rp_ZwzM4q_badges",
41992
+ "fieldHint": "rp_ZwzM4q_fieldHint",
41993
+ "hint": "rp_ZwzM4q_hint",
41070
41994
  "fields": "rp_ZwzM4q_fields",
41071
- "title": "rp_ZwzM4q_title",
41995
+ "head": "rp_ZwzM4q_head",
41072
41996
  "section": "rp_ZwzM4q_section",
41073
- "hint": "rp_ZwzM4q_hint",
41074
- "invalid": "rp_ZwzM4q_invalid",
41075
41997
  "field": "rp_ZwzM4q_field",
41076
- "head": "rp_ZwzM4q_head",
41077
- "select": "rp_ZwzM4q_select",
41078
41998
  "reset": "rp_ZwzM4q_reset",
41079
- "badges": "rp_ZwzM4q_badges"
41999
+ "select": "rp_ZwzM4q_select"
41080
42000
  };
41081
42001
  // src/client/settings/AssistantSettings.tsx
41082
42002
  function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
@@ -42140,6 +43060,8 @@ window.__ModuleLoader__.load({
42140
43060
  catalogueMaxBytesLabel: "Largest catalogue download (bytes)",
42141
43061
  catalogueMaxBytesHint: "The most a world downloaded from a catalogue may be, compressed and again unpacked. Default 268435456 (256 MB).",
42142
43062
  catalogueTrashDaysLabel: "Days to keep replaced files",
43063
+ worldCheckpointsKeptLabel: "Checkpoints kept per world",
43064
+ worldCheckpointsKeptHint: "How many copies of a world's files are kept, made before the authoring assistant edits it and when you ask for one. The oldest are deleted first. Pictures are not copied. Default 30.",
42143
43065
  autonomyTickSecondsLabel: "Seconds between looks at stories that go on without you",
42144
43066
  autonomyTickSecondsHint: "How often the stories that switched on \"the story goes on while I am away\" are looked at: characters take up their days, and one may write to you. 0 never looks; the least is 5. Default 30.",
42145
43067
  catalogueTrashDaysHint: "How long the files an update replaced stay in the trash folder before they are deleted. 0 keeps them for good. Default 30.",
@@ -42252,6 +43174,8 @@ window.__ModuleLoader__.load({
42252
43174
  catalogueMaxBytesLabel: "目录下载大小上限(字节)",
42253
43175
  catalogueMaxBytesHint: "从目录下载的世界的最大体积,压缩后和解压后都不得超过。默认 268435456(256 MB)。",
42254
43176
  catalogueTrashDaysLabel: "被替换文件的保留天数",
43177
+ worldCheckpointsKeptLabel: "每个世界保留的检查点数量",
43178
+ worldCheckpointsKeptHint: "在创作助手修改世界之前、以及你主动要求时,会保存一份世界文件的副本;这里设定保留多少份,最旧的先删除。图片不会被复制。默认 30。",
42255
43179
  autonomyTickSecondsLabel: "查看无人在场继续进行的故事的间隔(秒)",
42256
43180
  autonomyTickSecondsHint: "多久查看一次打开了“我不在时故事继续”的故事:角色按各自日程行事,其中一人可能给你写消息。0 表示从不查看,最短 5 秒。默认 30。",
42257
43181
  catalogueTrashDaysHint: "更新替换下来的文件在回收文件夹中保留多少天后删除。0 表示永久保留。默认 30。",
@@ -42399,6 +43323,8 @@ window.__ModuleLoader__.load({
42399
43323
  unavailable: "ロールプレイが読み込まれていないため、現在は設定できません。",
42400
43324
  save: "保存",
42401
43325
  saving: "保存中…",
43326
+ worldCheckpointsKeptLabel: "ワールドごとに保持するチェックポイント数",
43327
+ worldCheckpointsKeptHint: "ワールドのファイルのコピーを、創作アシスタントが編集する前とご要望の際に保存します。保持する数を指定します。古いものから削除されます。画像はコピーされません。既定は 30。",
42402
43328
  saveFailed: "この環境は値を受け付けませんでした。修正できるよう入力内容は残しています。"
42403
43329
  },
42404
43330
  es: {
@@ -42511,6 +43437,8 @@ window.__ModuleLoader__.load({
42511
43437
  unavailable: "Juego de rol no está cargado y no se puede configurar ahora.",
42512
43438
  save: "Guardar",
42513
43439
  saving: "Guardando…",
43440
+ worldCheckpointsKeptLabel: "Puntos de control por mundo",
43441
+ worldCheckpointsKeptHint: "Cuántas copias de los archivos de un mundo se conservan, hechas antes de que el asistente de creación lo edite y cuando usted lo pide. Se borran primero las más antiguas. Las imágenes no se copian. Por defecto 30.",
42514
43442
  saveFailed: "La instalación no aceptó estos valores; se han conservado para que los corrijas."
42515
43443
  },
42516
43444
  fr: {
@@ -42623,6 +43551,8 @@ window.__ModuleLoader__.load({
42623
43551
  unavailable: "Le jeu de rôle n’est pas chargé et ne peut pas être configuré actuellement.",
42624
43552
  save: "Enregistrer",
42625
43553
  saving: "Enregistrement…",
43554
+ worldCheckpointsKeptLabel: "Points de contrôle conservés par monde",
43555
+ worldCheckpointsKeptHint: "Combien de copies des fichiers d'un monde sont conservées, faites avant que l'assistant de création ne le modifie et à votre demande. Les plus anciennes sont supprimées en premier. Les images ne sont pas copiées. 30 par défaut.",
42626
43556
  saveFailed: "Le déploiement a refusé ces valeurs ; elles sont conservées pour correction."
42627
43557
  },
42628
43558
  de: {
@@ -42735,6 +43665,8 @@ window.__ModuleLoader__.load({
42735
43665
  unavailable: "Rollenspiel ist nicht geladen und kann derzeit nicht konfiguriert werden.",
42736
43666
  save: "Speichern",
42737
43667
  saving: "Wird gespeichert…",
43668
+ worldCheckpointsKeptLabel: "Gespeicherte Prüfpunkte pro Welt",
43669
+ worldCheckpointsKeptHint: "Wie viele Kopien der Dateien einer Welt behalten werden, angelegt bevor der Autorenassistent sie bearbeitet und auf Wunsch. Die ältesten werden zuerst gelöscht. Bilder werden nicht kopiert. Standard 30.",
42738
43670
  saveFailed: "Die Bereitstellung hat diese Werte abgelehnt; sie bleiben zur Korrektur erhalten."
42739
43671
  },
42740
43672
  ru: {
@@ -42847,6 +43779,8 @@ window.__ModuleLoader__.load({
42847
43779
  unavailable: "Ролевая игра не загружена, поэтому сейчас недоступна для настройки.",
42848
43780
  save: "Сохранить",
42849
43781
  saving: "Сохранение…",
43782
+ worldCheckpointsKeptLabel: "Контрольных точек на мир",
43783
+ worldCheckpointsKeptHint: "Сколько копий файлов мира хранится: они создаются перед правками ассистента по созданию и по вашему запросу. Сначала удаляются самые старые. Изображения не копируются. По умолчанию 30.",
42850
43784
  saveFailed: "Установка не приняла значения; они оставлены для исправления."
42851
43785
  },
42852
43786
  pt: {
@@ -42959,6 +43893,8 @@ window.__ModuleLoader__.load({
42959
43893
  unavailable: "O jogo de interpretação não está carregado e não pode ser configurado agora.",
42960
43894
  save: "Guardar",
42961
43895
  saving: "A guardar…",
43896
+ worldCheckpointsKeptLabel: "Pontos de controlo guardados por mundo",
43897
+ worldCheckpointsKeptHint: "Quantas cópias dos ficheiros de um mundo são guardadas, feitas antes de o assistente de criação o editar e quando o pedir. As mais antigas são apagadas primeiro. As imagens não são copiadas. Por omissão, 30.",
42962
43898
  saveFailed: "A instalação não aceitou estes valores; foram mantidos para correção."
42963
43899
  }
42964
43900
  };
@@ -43368,6 +44304,7 @@ window.__ModuleLoader__.load({
43368
44304
  if (typeof value !== "object" || value === null) return false;
43369
44305
  const segment = value;
43370
44306
  if (segment["type"] === "narration") return typeof segment["text"] === "string";
44307
+ if (segment["type"] === "image") return typeof segment["path"] === "string" && segment["path"] !== "";
43371
44308
  return segment["type"] === "utterance" && typeof segment["character"] === "string" && typeof segment["name"] === "string" && typeof segment["text"] === "string";
43372
44309
  }
43373
44310
  /** The output encoded in a tool result's text, or nothing when the text carries none. */
@@ -43501,7 +44438,7 @@ window.__ModuleLoader__.load({
43501
44438
  }
43502
44439
  };
43503
44440
  // \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/NarrationView.module.css.mjs
43504
- const css$3 = ".rp_NFPimG_output{flex-direction:column;gap:8px;min-width:0;margin:8px 0;display:flex}.rp_NFPimG_narration{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:22px}.rp_NFPimG_line{align-items:flex-start;gap:10px;min-width:0;display:flex}.rp_NFPimG_avatar{corner-shape:round;color:#fff;border-radius:14px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:500;display:flex}.rp_NFPimG_speech{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);flex-direction:column;gap:2px;min-width:0;max-width:100%;padding:6px 10px;display:flex}.rp_NFPimG_name{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.rp_NFPimG_words{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:20px}.rp_NFPimG_note{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_NFPimG_preview{opacity:.8}.rp_NFPimG_oocNote,.rp_NFPimG_oocRefused{border-left:2px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);margin:0;padding:6px 10px;font-size:12px;line-height:18px}.rp_NFPimG_oocRefused{border-left-color:var(--dsw-alias-state-error-primary)}.rp_NFPimG_oocLabel{font-weight:500}.rp_NFPimG_images{flex-direction:column;align-items:flex-start;gap:6px;margin:8px 0 12px;display:flex}.rp_NFPimG_sceneImage{object-fit:contain;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);width:auto;max-width:min(100%,480px);height:auto;max-height:50vh;display:block}.rp_NFPimG_imageButton{cursor:zoom-in;background:0 0;border:0;padding:0}.rp_NFPimG_imageStatus,.rp_NFPimG_imageError{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_NFPimG_imageError{color:var(--dsw-alias-state-error-primary)}.rp_NFPimG_playLine{color:var(--dsw-alias-label-secondary);cursor:pointer;vertical-align:middle;background:0 0;border:0;justify-content:center;align-items:center;width:28px;height:28px;margin:-5px -6px -5px 4px;padding:6px;display:inline-flex}.rp_NFPimG_playLine svg{width:14px;height:14px}.rp_NFPimG_playLine:disabled{cursor:wait;opacity:.5}.rp_NFPimG_playLine:hover{color:var(--dsw-alias-label-primary)}.rp_NFPimG_playLine:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}@media (pointer:coarse){.rp_NFPimG_playLine{width:44px;min-width:44px;height:44px;min-height:44px;margin-block:-13px}}.rp_NFPimG_dice{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_NFPimG_diceSummary{cursor:pointer;color:var(--dsw-alias-label-secondary)}.rp_NFPimG_diceList{margin:4px 0 0;padding:0 0 0 18px}.rp_NFPimG_avatarImage{object-fit:cover}.rp_NFPimG_actions{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}";
44441
+ const css$3 = ".rp_NFPimG_output{flex-direction:column;gap:8px;min-width:0;margin:8px 0;display:flex}.rp_NFPimG_picture{border-radius:var(--dsw-radius-sm);object-fit:contain;max-width:100%;max-height:420px;display:block}.rp_NFPimG_narration{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:22px}.rp_NFPimG_line{align-items:flex-start;gap:10px;min-width:0;display:flex}.rp_NFPimG_avatar{corner-shape:round;color:#fff;border-radius:14px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:500;display:flex}.rp_NFPimG_speech{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);flex-direction:column;gap:2px;min-width:0;max-width:100%;padding:6px 10px;display:flex}.rp_NFPimG_name{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.rp_NFPimG_words{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:20px}.rp_NFPimG_note{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_NFPimG_preview{opacity:.8}.rp_NFPimG_oocNote,.rp_NFPimG_oocRefused{border-left:2px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);margin:0;padding:6px 10px;font-size:12px;line-height:18px}.rp_NFPimG_oocRefused{border-left-color:var(--dsw-alias-state-error-primary)}.rp_NFPimG_oocLabel{font-weight:500}.rp_NFPimG_images{flex-direction:column;align-items:flex-start;gap:6px;margin:8px 0 12px;display:flex}.rp_NFPimG_sceneImage{object-fit:contain;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);width:auto;max-width:min(100%,480px);height:auto;max-height:50vh;display:block}.rp_NFPimG_imageButton{cursor:zoom-in;background:0 0;border:0;padding:0}.rp_NFPimG_imageStatus,.rp_NFPimG_imageError{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_NFPimG_imageError{color:var(--dsw-alias-state-error-primary)}.rp_NFPimG_playLine{color:var(--dsw-alias-label-secondary);cursor:pointer;vertical-align:middle;background:0 0;border:0;justify-content:center;align-items:center;width:28px;height:28px;margin:-5px -6px -5px 4px;padding:6px;display:inline-flex}.rp_NFPimG_playLine svg{width:14px;height:14px}.rp_NFPimG_playLine:disabled{cursor:wait;opacity:.5}.rp_NFPimG_playLine:hover{color:var(--dsw-alias-label-primary)}.rp_NFPimG_playLine:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}@media (pointer:coarse){.rp_NFPimG_playLine{width:44px;min-width:44px;height:44px;min-height:44px;margin-block:-13px}}.rp_NFPimG_dice{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_NFPimG_diceSummary{cursor:pointer;color:var(--dsw-alias-label-secondary)}.rp_NFPimG_diceList{margin:4px 0 0;padding:0 0 0 18px}.rp_NFPimG_avatarImage{object-fit:cover}.rp_NFPimG_actions{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}";
43505
44442
  const key$3 = "src/client/transcript/NarrationView.module.css";
43506
44443
  let tag$3 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$3) + "]");
43507
44444
  if (tag$3 === null) {
@@ -43512,29 +44449,30 @@ window.__ModuleLoader__.load({
43512
44449
  }
43513
44450
  tag$3.textContent = css$3;
43514
44451
  var NarrationView_module_css_default = {
43515
- "imageStatus": "rp_NFPimG_imageStatus",
43516
- "preview": "rp_NFPimG_preview",
43517
- "imageButton": "rp_NFPimG_imageButton",
43518
- "imageError": "rp_NFPimG_imageError",
44452
+ "dice": "rp_NFPimG_dice",
43519
44453
  "output": "rp_NFPimG_output",
43520
- "narration": "rp_NFPimG_narration",
43521
- "sceneImage": "rp_NFPimG_sceneImage",
43522
- "diceList": "rp_NFPimG_diceList",
44454
+ "avatar": "rp_NFPimG_avatar",
43523
44455
  "speech": "rp_NFPimG_speech",
44456
+ "line": "rp_NFPimG_line",
43524
44457
  "words": "rp_NFPimG_words",
43525
- "images": "rp_NFPimG_images",
44458
+ "preview": "rp_NFPimG_preview",
43526
44459
  "playLine": "rp_NFPimG_playLine",
44460
+ "picture": "rp_NFPimG_picture",
44461
+ "name": "rp_NFPimG_name",
44462
+ "note": "rp_NFPimG_note",
44463
+ "images": "rp_NFPimG_images",
44464
+ "imageButton": "rp_NFPimG_imageButton",
44465
+ "imageError": "rp_NFPimG_imageError",
44466
+ "diceList": "rp_NFPimG_diceList",
44467
+ "avatarImage": "rp_NFPimG_avatarImage",
44468
+ "narration": "rp_NFPimG_narration",
44469
+ "oocLabel": "rp_NFPimG_oocLabel",
43527
44470
  "oocNote": "rp_NFPimG_oocNote",
43528
44471
  "oocRefused": "rp_NFPimG_oocRefused",
43529
- "dice": "rp_NFPimG_dice",
44472
+ "sceneImage": "rp_NFPimG_sceneImage",
43530
44473
  "diceSummary": "rp_NFPimG_diceSummary",
43531
- "avatarImage": "rp_NFPimG_avatarImage",
43532
- "oocLabel": "rp_NFPimG_oocLabel",
43533
- "name": "rp_NFPimG_name",
43534
- "actions": "rp_NFPimG_actions",
43535
- "avatar": "rp_NFPimG_avatar",
43536
- "line": "rp_NFPimG_line",
43537
- "note": "rp_NFPimG_note"
44474
+ "imageStatus": "rp_NFPimG_imageStatus",
44475
+ "actions": "rp_NFPimG_actions"
43538
44476
  };
43539
44477
  // src/client/transcript/PreviewNode.tsx
43540
44478
  /**
@@ -43670,10 +44608,10 @@ window.__ModuleLoader__.load({
43670
44608
  const id = sessionId.startsWith("session-") ? sessionId.slice(8) : sessionId;
43671
44609
  const state = await (await fetch(`roleplay-api/sessions/world?id=${encodeURIComponent(id)}`)).json();
43672
44610
  const voices = new Map(state.characters.map((character) => [character.key, character.voice]));
43673
- const parts = segments.map((segment) => ({
44611
+ const parts = segments.flatMap((segment) => segment.type === "image" ? [] : [{
43674
44612
  text: segment.text,
43675
44613
  voice: segment.type === "utterance" ? voices.get(segment.character) : state.narrationVoice
43676
- }));
44614
+ }]);
43677
44615
  const response = await fetch("roleplay-api/speech/synthesize", {
43678
44616
  method: "POST",
43679
44617
  headers: { "content-type": "application/json" },
@@ -43739,7 +44677,15 @@ window.__ModuleLoader__.load({
43739
44677
  data.ooc.note
43740
44678
  ]
43741
44679
  }),
43742
- data.segments.map((segment, index) => segment.type === "narration" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
44680
+ data.segments.map((segment, index) => segment.type === "image" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
44681
+ className: NarrationView_module_css_default.picture,
44682
+ "data-rp": "picture",
44683
+ "data-testid": "roleplay-picture",
44684
+ src: `roleplay-api/sessions/gallery/file?id=${encodeURIComponent(sessionId.startsWith("session-") ? sessionId.slice(8) : sessionId)}&path=${encodeURIComponent(segment.path)}`,
44685
+ alt: "",
44686
+ loading: "lazy",
44687
+ decoding: "async"
44688
+ }, index) : segment.type === "narration" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
43743
44689
  className: NarrationView_module_css_default.narration,
43744
44690
  "data-rp": "prose",
43745
44691
  children: segment.text
@@ -43927,11 +44873,11 @@ window.__ModuleLoader__.load({
43927
44873
  }
43928
44874
  tag$2.textContent = css$2;
43929
44875
  var SuggestionsDock_module_css_default = {
43930
- "dock": "rp_rWH4DG_dock",
43931
- "chip": "rp_rWH4DG_chip",
43932
- "label": "rp_rWH4DG_label",
43933
44876
  "card": "rp_rWH4DG_card",
43934
- "lines": "rp_rWH4DG_lines"
44877
+ "lines": "rp_rWH4DG_lines",
44878
+ "chip": "rp_rWH4DG_chip",
44879
+ "dock": "rp_rWH4DG_dock",
44880
+ "label": "rp_rWH4DG_label"
43935
44881
  };
43936
44882
  // src/client/transcript/dock-fold.ts
43937
44883
  const KEY = "roleplay.dock.folded";
@@ -44129,10 +45075,10 @@ window.__ModuleLoader__.load({
44129
45075
  }
44130
45076
  tag$1.textContent = css$1;
44131
45077
  var Menu_module_css_default = {
44132
- "heading": "rp_6CY8oG_heading",
44133
- "item": "rp_6CY8oG_item",
44134
45078
  "chevron": "rp_6CY8oG_chevron",
44135
- "list": "rp_6CY8oG_list"
45079
+ "list": "rp_6CY8oG_list",
45080
+ "heading": "rp_6CY8oG_heading",
45081
+ "item": "rp_6CY8oG_item"
44136
45082
  };
44137
45083
  // src/client/ui/Menu.tsx
44138
45084
  const GAP = 4;
@@ -44267,17 +45213,17 @@ window.__ModuleLoader__.load({
44267
45213
  }
44268
45214
  tag.textContent = css;
44269
45215
  var TurnsDock_module_css_default = {
45216
+ "comparisonSubject": "rp_f4YLlq_comparisonSubject",
45217
+ "dock": "rp_f4YLlq_dock",
45218
+ "error": "rp_f4YLlq_error",
44270
45219
  "count": "rp_f4YLlq_count",
44271
45220
  "comparison": "rp_f4YLlq_comparison",
44272
- "button": "rp_f4YLlq_button",
44273
- "comparisonHead": "rp_f4YLlq_comparisonHead",
44274
45221
  "fold": "rp_f4YLlq_fold",
44275
- "comparisonLine": "rp_f4YLlq_comparisonLine",
44276
45222
  "group": "rp_f4YLlq_group",
44277
45223
  "select": "rp_f4YLlq_select",
44278
- "error": "rp_f4YLlq_error",
44279
- "dock": "rp_f4YLlq_dock",
44280
- "comparisonSubject": "rp_f4YLlq_comparisonSubject"
45224
+ "button": "rp_f4YLlq_button",
45225
+ "comparisonLine": "rp_f4YLlq_comparisonLine",
45226
+ "comparisonHead": "rp_f4YLlq_comparisonHead"
44281
45227
  };
44282
45228
  // src/client/transcript/withdrawn.ts
44283
45229
  /** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */