@dsh-agentic-roleplay/core 0.12.4 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{access-Csp80TFX.js → access-5vtPAT3O.js} +2 -2
- package/lib/{authoring-tools-B_qYKK8c.js → authoring-tools-BpkpGMSO.js} +21 -14
- package/lib/authoring.js +8 -8
- package/lib/{child-DTdY14S9.js → child-Bfj7-Iuo.js} +73 -21
- package/lib/client.js +1688 -1213
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +3 -3
- package/lib/doctor.js +3 -3
- package/lib/{gallery-Bu6eZMKk.js → gallery-D0h0X7Jy.js} +3 -3
- package/lib/{generator-CTWQWbSW.js → generator-CAJkevKl.js} +2 -2
- package/lib/helper.js +2 -2
- package/lib/{hooks-YXQZ9G2d.js → hooks-P_--KSFl.js} +67 -28
- package/lib/images.js +4 -4
- package/lib/index.js +70 -18
- package/lib/{jail-DVbPSC0R.js → jail-D83JnxKg.js} +2 -2
- package/lib/{library-BmlHNCah.js → library-CnWOHwQl.js} +3 -3
- package/lib/{lorebook-author-tools-C3rRpMt7.js → lorebook-author-tools-CWZ6WRN-.js} +7 -7
- package/lib/lorebook-authoring.js +5 -5
- package/lib/{narration--K2XVIHI.js → narration-DAHmte8p.js} +2 -2
- package/lib/orchestration.js +37 -38
- package/lib/{pack-jail-VbcXiukr.js → pack-jail-DSTyLhMc.js} +15 -15
- package/lib/{packs-CzVh2ZNe.js → packs-D9_N8kDF.js} +2 -2
- package/lib/{presenter-agent-CF3fneuJ.js → presenter-agent-BTpJxmGi.js} +7 -6
- package/lib/{preset-C595KRUM.js → preset-B69AXtip.js} +4 -4
- package/lib/{preset-author-tools-CF_JKKTE.js → preset-author-tools-BJtt7D0J.js} +7 -7
- package/lib/preset-authoring.js +5 -5
- package/lib/{reflection-ByIQSOKC.js → reflection-2uzE3U-v.js} +9 -9
- package/lib/{serial-ULGUKWsu.js → serial-DnVqMDe5.js} +114 -25
- package/lib/{text-hiKTooVb.js → text-B-HsLdb-.js} +2 -1
- package/lib/{turn-guard-DXMeAJdv.js → turn-guard-D4YHE00t.js} +3 -3
- package/package.json +31 -31
package/lib/client.js
CHANGED
|
@@ -6,7 +6,6 @@ window.__ModuleLoader__.load({
|
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react = require("react");
|
|
9
|
-
let _deepseek_ai_dsh_client_ui_slots = require("@deepseek-ai/dsh-client-ui-slots");
|
|
10
9
|
let react_dom = require("react-dom");
|
|
11
10
|
// src/shared/ids.ts
|
|
12
11
|
/**
|
|
@@ -405,19 +404,19 @@ window.__ModuleLoader__.load({
|
|
|
405
404
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUsers, { size });
|
|
406
405
|
}
|
|
407
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
|
|
408
|
-
const css$
|
|
409
|
-
const key$
|
|
410
|
-
let tag$
|
|
411
|
-
if (tag$
|
|
412
|
-
tag$
|
|
413
|
-
tag$
|
|
414
|
-
tag$
|
|
415
|
-
document.head.appendChild(tag$
|
|
416
|
-
}
|
|
417
|
-
tag$
|
|
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;
|
|
418
417
|
var PageTabs_module_css_default = {
|
|
419
|
-
"
|
|
420
|
-
"
|
|
418
|
+
"tabs": "rp_LrKukW_tabs",
|
|
419
|
+
"tab": "rp_LrKukW_tab"
|
|
421
420
|
};
|
|
422
421
|
// src/client/widgets/page-tabs/PageTabs.tsx
|
|
423
422
|
/** Underlined text tabs; arrow keys, Home and End move between them. */
|
|
@@ -459,20 +458,20 @@ window.__ModuleLoader__.load({
|
|
|
459
458
|
});
|
|
460
459
|
}
|
|
461
460
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/RoleplayPanel.module.css.mjs
|
|
462
|
-
const css$
|
|
463
|
-
const key$
|
|
464
|
-
let tag$
|
|
465
|
-
if (tag$
|
|
466
|
-
tag$
|
|
467
|
-
tag$
|
|
468
|
-
tag$
|
|
469
|
-
document.head.appendChild(tag$
|
|
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);
|
|
470
469
|
}
|
|
471
|
-
tag$
|
|
470
|
+
tag$52.textContent = css$52;
|
|
472
471
|
var RoleplayPanel_module_css_default = {
|
|
473
|
-
"panel": "rp_ua5gBa_panel",
|
|
474
472
|
"title": "rp_ua5gBa_title",
|
|
475
473
|
"body": "rp_ua5gBa_body",
|
|
474
|
+
"panel": "rp_ua5gBa_panel",
|
|
476
475
|
"header": "rp_ua5gBa_header"
|
|
477
476
|
};
|
|
478
477
|
// src/client/panel/RoleplayPanel.tsx
|
|
@@ -626,6 +625,11 @@ window.__ModuleLoader__.load({
|
|
|
626
625
|
}
|
|
627
626
|
// src/client/widgets/slot-list/slot-list.ts
|
|
628
627
|
/**
|
|
628
|
+
* The label of a slot entry, which is either text or a thunk re-evaluated whenever the language changes. DSH exposes the same one-line rule as `resolveSlotLabel`, but reading it would make
|
|
629
|
+
* the client load a Harness module at run time.
|
|
630
|
+
*/
|
|
631
|
+
const labelOf$1 = (label) => typeof label === "function" ? label() : label;
|
|
632
|
+
/**
|
|
629
633
|
* The entries registered into a list slot, ordered, with their current labels.
|
|
630
634
|
* Labels are functions of the active language, so the list is rebuilt when either the registrations or the language change.
|
|
631
635
|
*/
|
|
@@ -635,7 +639,7 @@ window.__ModuleLoader__.load({
|
|
|
635
639
|
const next = ctx.slots.entriesOfSlot(slot).map(({ options }) => ({
|
|
636
640
|
id: options.id,
|
|
637
641
|
order: options.order ?? 0,
|
|
638
|
-
label: (
|
|
642
|
+
label: labelOf$1(options.label) ?? options.id
|
|
639
643
|
})).sort((a, b) => a.order - b.order).map(({ id, label }) => ({
|
|
640
644
|
id,
|
|
641
645
|
label
|
|
@@ -891,25 +895,25 @@ window.__ModuleLoader__.load({
|
|
|
891
895
|
}
|
|
892
896
|
};
|
|
893
897
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Button.module.css.mjs
|
|
894
|
-
const css$
|
|
895
|
-
const key$
|
|
896
|
-
let tag$
|
|
897
|
-
if (tag$
|
|
898
|
-
tag$
|
|
899
|
-
tag$
|
|
900
|
-
tag$
|
|
901
|
-
document.head.appendChild(tag$
|
|
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);
|
|
902
906
|
}
|
|
903
|
-
tag$
|
|
907
|
+
tag$51.textContent = css$51;
|
|
904
908
|
var Button_module_css_default = {
|
|
905
|
-
"rpPrimary": "rp_wwotfa_rpPrimary",
|
|
906
|
-
"rpButton": "rp_wwotfa_rpButton",
|
|
907
|
-
"rpIcon": "rp_wwotfa_rpIcon",
|
|
908
909
|
"rpSm": "rp_wwotfa_rpSm",
|
|
909
|
-
"rpToolbar": "rp_wwotfa_rpToolbar",
|
|
910
|
-
"rpOutline": "rp_wwotfa_rpOutline",
|
|
911
910
|
"rpGhost": "rp_wwotfa_rpGhost",
|
|
912
|
-
"
|
|
911
|
+
"rpToolbar": "rp_wwotfa_rpToolbar",
|
|
912
|
+
"rpButton": "rp_wwotfa_rpButton",
|
|
913
|
+
"rpPrimary": "rp_wwotfa_rpPrimary",
|
|
914
|
+
"rpMd": "rp_wwotfa_rpMd",
|
|
915
|
+
"rpIcon": "rp_wwotfa_rpIcon",
|
|
916
|
+
"rpOutline": "rp_wwotfa_rpOutline"
|
|
913
917
|
};
|
|
914
918
|
// src/client/ui/Button.tsx
|
|
915
919
|
/** Render a button; native button attributes pass through, and `icon` is a leading 16px node. */
|
|
@@ -932,16 +936,16 @@ window.__ModuleLoader__.load({
|
|
|
932
936
|
});
|
|
933
937
|
});
|
|
934
938
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Tag.module.css.mjs
|
|
935
|
-
const css$
|
|
936
|
-
const key$
|
|
937
|
-
let tag$
|
|
938
|
-
if (tag$
|
|
939
|
-
tag$
|
|
940
|
-
tag$
|
|
941
|
-
tag$
|
|
942
|
-
document.head.appendChild(tag$
|
|
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);
|
|
943
947
|
}
|
|
944
|
-
tag$
|
|
948
|
+
tag$50.textContent = css$50;
|
|
945
949
|
var Tag_module_css_default = { "rpTag": "rp_R752CG_rpTag" };
|
|
946
950
|
// src/client/ui/Tag.tsx
|
|
947
951
|
/** Render a read-only tag; the label belongs to the render site. */
|
|
@@ -954,16 +958,16 @@ window.__ModuleLoader__.load({
|
|
|
954
958
|
});
|
|
955
959
|
}
|
|
956
960
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Tooltip.module.css.mjs
|
|
957
|
-
const css$
|
|
958
|
-
const key$
|
|
959
|
-
let tag$
|
|
960
|
-
if (tag$
|
|
961
|
-
tag$
|
|
962
|
-
tag$
|
|
963
|
-
tag$
|
|
964
|
-
document.head.appendChild(tag$
|
|
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);
|
|
965
969
|
}
|
|
966
|
-
tag$
|
|
970
|
+
tag$49.textContent = css$49;
|
|
967
971
|
var Tooltip_module_css_default = { "bubble": "rp_ucrTbq_bubble" };
|
|
968
972
|
/**
|
|
969
973
|
* The viewport as the page measures it.
|
|
@@ -1130,16 +1134,16 @@ window.__ModuleLoader__.load({
|
|
|
1130
1134
|
})] });
|
|
1131
1135
|
}
|
|
1132
1136
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Switch.module.css.mjs
|
|
1133
|
-
const css$
|
|
1134
|
-
const key$
|
|
1135
|
-
let tag$
|
|
1136
|
-
if (tag$
|
|
1137
|
-
tag$
|
|
1138
|
-
tag$
|
|
1139
|
-
tag$
|
|
1140
|
-
document.head.appendChild(tag$
|
|
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);
|
|
1141
1145
|
}
|
|
1142
|
-
tag$
|
|
1146
|
+
tag$48.textContent = css$48;
|
|
1143
1147
|
var Switch_module_css_default = {
|
|
1144
1148
|
"rpThumb": "rp_7MP8na_rpThumb",
|
|
1145
1149
|
"rpSwitch": "rp_7MP8na_rpSwitch"
|
|
@@ -1165,19 +1169,19 @@ window.__ModuleLoader__.load({
|
|
|
1165
1169
|
});
|
|
1166
1170
|
}
|
|
1167
1171
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Input.module.css.mjs
|
|
1168
|
-
const css$
|
|
1169
|
-
const key$
|
|
1170
|
-
let tag$
|
|
1171
|
-
if (tag$
|
|
1172
|
-
tag$
|
|
1173
|
-
tag$
|
|
1174
|
-
tag$
|
|
1175
|
-
document.head.appendChild(tag$
|
|
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);
|
|
1176
1180
|
}
|
|
1177
|
-
tag$
|
|
1181
|
+
tag$47.textContent = css$47;
|
|
1178
1182
|
var Input_module_css_default = {
|
|
1179
|
-
"rpInput": "rp_QU88dW_rpInput",
|
|
1180
1183
|
"rpInputIcon": "rp_QU88dW_rpInputIcon",
|
|
1184
|
+
"rpInput": "rp_QU88dW_rpInput",
|
|
1181
1185
|
"rpInputWrap": "rp_QU88dW_rpInputWrap"
|
|
1182
1186
|
};
|
|
1183
1187
|
// src/client/ui/Input.tsx
|
|
@@ -1196,16 +1200,16 @@ window.__ModuleLoader__.load({
|
|
|
1196
1200
|
});
|
|
1197
1201
|
});
|
|
1198
1202
|
// \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
|
|
1199
|
-
const css$
|
|
1200
|
-
const key$
|
|
1201
|
-
let tag$
|
|
1202
|
-
if (tag$
|
|
1203
|
-
tag$
|
|
1204
|
-
tag$
|
|
1205
|
-
tag$
|
|
1206
|
-
document.head.appendChild(tag$
|
|
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);
|
|
1207
1211
|
}
|
|
1208
|
-
tag$
|
|
1212
|
+
tag$46.textContent = css$46;
|
|
1209
1213
|
var LanguageSelect_module_css_default = {
|
|
1210
1214
|
"select": "rp_uOuCXG_select",
|
|
1211
1215
|
"compact": "rp_uOuCXG_compact"
|
|
@@ -1258,45 +1262,45 @@ window.__ModuleLoader__.load({
|
|
|
1258
1262
|
});
|
|
1259
1263
|
}
|
|
1260
1264
|
// \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
|
|
1261
|
-
const css$
|
|
1262
|
-
const key$
|
|
1263
|
-
let tag$
|
|
1264
|
-
if (tag$
|
|
1265
|
-
tag$
|
|
1266
|
-
tag$
|
|
1267
|
-
tag$
|
|
1268
|
-
document.head.appendChild(tag$
|
|
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);
|
|
1269
1273
|
}
|
|
1270
|
-
tag$
|
|
1274
|
+
tag$45.textContent = css$45;
|
|
1271
1275
|
var ImportCard_module_css_default = {
|
|
1272
|
-
"
|
|
1276
|
+
"title": "rp_5cvtma_title",
|
|
1277
|
+
"top": "rp_5cvtma_top",
|
|
1278
|
+
"heading": "rp_5cvtma_heading",
|
|
1273
1279
|
"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",
|
|
1274
1286
|
"preview": "rp_5cvtma_preview",
|
|
1275
|
-
"
|
|
1287
|
+
"note": "rp_5cvtma_note",
|
|
1288
|
+
"about": "rp_5cvtma_about",
|
|
1276
1289
|
"entryTitle": "rp_5cvtma_entryTitle",
|
|
1277
|
-
"
|
|
1278
|
-
"body": "rp_5cvtma_body",
|
|
1290
|
+
"text": "rp_5cvtma_text",
|
|
1279
1291
|
"picture": "rp_5cvtma_picture",
|
|
1280
|
-
"label": "rp_5cvtma_label",
|
|
1281
|
-
"tags": "rp_5cvtma_tags",
|
|
1282
|
-
"fieldHead": "rp_5cvtma_fieldHead",
|
|
1283
|
-
"error": "rp_5cvtma_error",
|
|
1284
|
-
"entryOff": "rp_5cvtma_entryOff",
|
|
1285
1292
|
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
1286
|
-
"
|
|
1287
|
-
"noPicture": "rp_5cvtma_noPicture",
|
|
1288
|
-
"top": "rp_5cvtma_top",
|
|
1289
|
-
"note": "rp_5cvtma_note",
|
|
1290
|
-
"heading": "rp_5cvtma_heading",
|
|
1291
|
-
"entry": "rp_5cvtma_entry",
|
|
1292
|
-
"row": "rp_5cvtma_row",
|
|
1293
|
+
"section": "rp_5cvtma_section",
|
|
1293
1294
|
"entryHead": "rp_5cvtma_entryHead",
|
|
1294
|
-
"
|
|
1295
|
-
"
|
|
1296
|
-
"
|
|
1295
|
+
"choice": "rp_5cvtma_choice",
|
|
1296
|
+
"row": "rp_5cvtma_row",
|
|
1297
|
+
"entry": "rp_5cvtma_entry",
|
|
1297
1298
|
"header": "rp_5cvtma_header",
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
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"
|
|
1300
1304
|
};
|
|
1301
1305
|
// src/client/widgets/import-card/ImportCard.tsx
|
|
1302
1306
|
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
@@ -1793,28 +1797,28 @@ window.__ModuleLoader__.load({
|
|
|
1793
1797
|
});
|
|
1794
1798
|
}
|
|
1795
1799
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Modal.module.css.mjs
|
|
1796
|
-
const css$
|
|
1797
|
-
const key$
|
|
1798
|
-
let tag$
|
|
1799
|
-
if (tag$
|
|
1800
|
-
tag$
|
|
1801
|
-
tag$
|
|
1802
|
-
tag$
|
|
1803
|
-
document.head.appendChild(tag$
|
|
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);
|
|
1804
1808
|
}
|
|
1805
|
-
tag$
|
|
1809
|
+
tag$44.textContent = css$44;
|
|
1806
1810
|
var Modal_module_css_default = {
|
|
1807
|
-
"
|
|
1808
|
-
"
|
|
1811
|
+
"footer": "rp_46MuuW_footer",
|
|
1812
|
+
"description": "rp_46MuuW_description",
|
|
1809
1813
|
"dialog": "rp_46MuuW_dialog",
|
|
1810
|
-
"header": "rp_46MuuW_header",
|
|
1811
|
-
"title": "rp_46MuuW_title",
|
|
1812
1814
|
"close": "rp_46MuuW_close",
|
|
1813
|
-
"footer": "rp_46MuuW_footer",
|
|
1814
1815
|
"rpModalEnter": "rp_46MuuW_rpModalEnter",
|
|
1816
|
+
"content": "rp_46MuuW_content",
|
|
1817
|
+
"header": "rp_46MuuW_header",
|
|
1818
|
+
"title": "rp_46MuuW_title",
|
|
1819
|
+
"body": "rp_46MuuW_body",
|
|
1815
1820
|
"root": "rp_46MuuW_root",
|
|
1816
|
-
"mask": "rp_46MuuW_mask"
|
|
1817
|
-
"description": "rp_46MuuW_description"
|
|
1821
|
+
"mask": "rp_46MuuW_mask"
|
|
1818
1822
|
};
|
|
1819
1823
|
// src/client/ui/Modal.tsx
|
|
1820
1824
|
const FOCUSABLE = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
|
|
@@ -1940,49 +1944,49 @@ window.__ModuleLoader__.load({
|
|
|
1940
1944
|
});
|
|
1941
1945
|
}
|
|
1942
1946
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/catalogue/CataloguePage.module.css.mjs
|
|
1943
|
-
const css$
|
|
1944
|
-
const key$
|
|
1945
|
-
let tag$
|
|
1946
|
-
if (tag$
|
|
1947
|
-
tag$
|
|
1948
|
-
tag$
|
|
1949
|
-
tag$
|
|
1950
|
-
document.head.appendChild(tag$
|
|
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);
|
|
1951
1955
|
}
|
|
1952
|
-
tag$
|
|
1956
|
+
tag$43.textContent = css$43;
|
|
1953
1957
|
var CataloguePage_module_css_default = {
|
|
1954
|
-
"updates": "rp_qK1u-G_updates",
|
|
1955
|
-
"page": "rp_qK1u-G_page",
|
|
1956
|
-
"more": "rp_qK1u-G_more",
|
|
1957
|
-
"meta": "rp_qK1u-G_meta",
|
|
1958
|
-
"tags": "rp_qK1u-G_tags",
|
|
1959
1958
|
"kind": "rp_qK1u-G_kind",
|
|
1960
|
-
"
|
|
1961
|
-
"viewport": "rp_qK1u-G_viewport",
|
|
1959
|
+
"page": "rp_qK1u-G_page",
|
|
1962
1960
|
"field": "rp_qK1u-G_field",
|
|
1961
|
+
"search": "rp_qK1u-G_search",
|
|
1962
|
+
"status": "rp_qK1u-G_status",
|
|
1963
|
+
"success": "rp_qK1u-G_success",
|
|
1963
1964
|
"card": "rp_qK1u-G_card",
|
|
1964
|
-
"
|
|
1965
|
-
"image": "rp_qK1u-G_image",
|
|
1966
|
-
"toolbar": "rp_qK1u-G_toolbar",
|
|
1967
|
-
"form": "rp_qK1u-G_form",
|
|
1965
|
+
"label": "rp_qK1u-G_label",
|
|
1968
1966
|
"cover": "rp_qK1u-G_cover",
|
|
1967
|
+
"updates": "rp_qK1u-G_updates",
|
|
1968
|
+
"select": "rp_qK1u-G_select",
|
|
1969
|
+
"update": "rp_qK1u-G_update",
|
|
1970
|
+
"description": "rp_qK1u-G_description",
|
|
1969
1971
|
"placeholder": "rp_qK1u-G_placeholder",
|
|
1970
|
-
"
|
|
1972
|
+
"more": "rp_qK1u-G_more",
|
|
1971
1973
|
"detail": "rp_qK1u-G_detail",
|
|
1972
|
-
"
|
|
1973
|
-
"
|
|
1974
|
+
"warning": "rp_qK1u-G_warning",
|
|
1975
|
+
"actions": "rp_qK1u-G_actions",
|
|
1976
|
+
"tags": "rp_qK1u-G_tags",
|
|
1977
|
+
"viewport": "rp_qK1u-G_viewport",
|
|
1978
|
+
"kinds": "rp_qK1u-G_kinds",
|
|
1974
1979
|
"notice": "rp_qK1u-G_notice",
|
|
1975
|
-
"
|
|
1980
|
+
"changes": "rp_qK1u-G_changes",
|
|
1981
|
+
"toolbar": "rp_qK1u-G_toolbar",
|
|
1982
|
+
"grid": "rp_qK1u-G_grid",
|
|
1983
|
+
"body": "rp_qK1u-G_body",
|
|
1976
1984
|
"name": "rp_qK1u-G_name",
|
|
1977
1985
|
"spacer": "rp_qK1u-G_spacer",
|
|
1978
|
-
"
|
|
1979
|
-
"
|
|
1980
|
-
"
|
|
1981
|
-
"
|
|
1982
|
-
"kinds": "rp_qK1u-G_kinds",
|
|
1983
|
-
"label": "rp_qK1u-G_label",
|
|
1984
|
-
"actions": "rp_qK1u-G_actions",
|
|
1985
|
-
"success": "rp_qK1u-G_success"
|
|
1986
|
+
"meta": "rp_qK1u-G_meta",
|
|
1987
|
+
"image": "rp_qK1u-G_image",
|
|
1988
|
+
"message": "rp_qK1u-G_message",
|
|
1989
|
+
"form": "rp_qK1u-G_form"
|
|
1986
1990
|
};
|
|
1987
1991
|
// src/client/pages/catalogue/ImportUrlDialog.tsx
|
|
1988
1992
|
/** 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. */
|
|
@@ -2175,30 +2179,30 @@ window.__ModuleLoader__.load({
|
|
|
2175
2179
|
};
|
|
2176
2180
|
const SAMPLING_KEYS = Object.keys(SAMPLING_RANGES);
|
|
2177
2181
|
// \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
|
|
2178
|
-
const css$
|
|
2179
|
-
const key$
|
|
2180
|
-
let tag$
|
|
2181
|
-
if (tag$
|
|
2182
|
-
tag$
|
|
2183
|
-
tag$
|
|
2184
|
-
tag$
|
|
2185
|
-
document.head.appendChild(tag$
|
|
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);
|
|
2186
2190
|
}
|
|
2187
|
-
tag$
|
|
2191
|
+
tag$42.textContent = css$42;
|
|
2188
2192
|
var ImportSelection_module_css_default = {
|
|
2189
|
-
"
|
|
2190
|
-
"row": "rp_Jx0l4q_row",
|
|
2191
|
-
"count": "rp_Jx0l4q_count",
|
|
2193
|
+
"body": "rp_Jx0l4q_body",
|
|
2192
2194
|
"list": "rp_Jx0l4q_list",
|
|
2193
|
-
"
|
|
2195
|
+
"meta": "rp_Jx0l4q_meta",
|
|
2196
|
+
"sampling": "rp_Jx0l4q_sampling",
|
|
2197
|
+
"note": "rp_Jx0l4q_note",
|
|
2198
|
+
"count": "rp_Jx0l4q_count",
|
|
2199
|
+
"help": "rp_Jx0l4q_help",
|
|
2200
|
+
"row": "rp_Jx0l4q_row",
|
|
2194
2201
|
"text": "rp_Jx0l4q_text",
|
|
2195
2202
|
"bar": "rp_Jx0l4q_bar",
|
|
2196
|
-
"
|
|
2197
|
-
"sampling": "rp_Jx0l4q_sampling",
|
|
2203
|
+
"full": "rp_Jx0l4q_full",
|
|
2198
2204
|
"error": "rp_Jx0l4q_error",
|
|
2199
|
-
"
|
|
2200
|
-
"help": "rp_Jx0l4q_help",
|
|
2201
|
-
"meta": "rp_Jx0l4q_meta"
|
|
2205
|
+
"extra": "rp_Jx0l4q_extra"
|
|
2202
2206
|
};
|
|
2203
2207
|
// src/client/widgets/import-selection/ImportSelection.tsx
|
|
2204
2208
|
const messageOf$14 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -5304,57 +5308,57 @@ window.__ModuleLoader__.load({
|
|
|
5304
5308
|
}
|
|
5305
5309
|
const isDirty = (character, draft) => Object.keys(editOf$1(character, draft)).length > 0;
|
|
5306
5310
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CharactersPanel.module.css.mjs
|
|
5307
|
-
const css$
|
|
5308
|
-
const key$
|
|
5309
|
-
let tag$
|
|
5310
|
-
if (tag$
|
|
5311
|
-
tag$
|
|
5312
|
-
tag$
|
|
5313
|
-
tag$
|
|
5314
|
-
document.head.appendChild(tag$
|
|
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);
|
|
5315
5319
|
}
|
|
5316
|
-
tag$
|
|
5320
|
+
tag$41.textContent = css$41;
|
|
5317
5321
|
var CharactersPanel_module_css_default = {
|
|
5318
|
-
"
|
|
5319
|
-
"
|
|
5320
|
-
"empty": "rp_5ZMIxq_empty",
|
|
5321
|
-
"itemActions": "rp_5ZMIxq_itemActions",
|
|
5322
|
-
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5323
|
-
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5324
|
-
"placeholder": "rp_5ZMIxq_placeholder",
|
|
5325
|
-
"wide": "rp_5ZMIxq_wide",
|
|
5326
|
-
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
5327
|
-
"barText": "rp_5ZMIxq_barText",
|
|
5328
|
-
"row": "rp_5ZMIxq_row",
|
|
5329
|
-
"label": "rp_5ZMIxq_label",
|
|
5322
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
5323
|
+
"help": "rp_5ZMIxq_help",
|
|
5330
5324
|
"error": "rp_5ZMIxq_error",
|
|
5325
|
+
"select": "rp_5ZMIxq_select",
|
|
5326
|
+
"row": "rp_5ZMIxq_row",
|
|
5331
5327
|
"body": "rp_5ZMIxq_body",
|
|
5328
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5329
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
5332
5330
|
"area": "rp_5ZMIxq_area",
|
|
5333
|
-
"goal": "rp_5ZMIxq_goal",
|
|
5334
|
-
"portrait": "rp_5ZMIxq_portrait",
|
|
5335
|
-
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
5336
|
-
"sheet": "rp_5ZMIxq_sheet",
|
|
5337
|
-
"help": "rp_5ZMIxq_help",
|
|
5338
5331
|
"head": "rp_5ZMIxq_head",
|
|
5339
|
-
"field": "rp_5ZMIxq_field",
|
|
5340
|
-
"tab": "rp_5ZMIxq_tab",
|
|
5341
|
-
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
5342
5332
|
"question": "rp_5ZMIxq_question",
|
|
5343
|
-
"
|
|
5344
|
-
"
|
|
5333
|
+
"wide": "rp_5ZMIxq_wide",
|
|
5334
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5345
5335
|
"tabOn": "rp_5ZMIxq_tabOn",
|
|
5346
|
-
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
5347
|
-
"bar": "rp_5ZMIxq_bar",
|
|
5348
5336
|
"missing": "rp_5ZMIxq_missing",
|
|
5349
|
-
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5350
|
-
"panel": "rp_5ZMIxq_panel",
|
|
5351
5337
|
"portraitError": "rp_5ZMIxq_portraitError",
|
|
5352
|
-
"
|
|
5353
|
-
"
|
|
5338
|
+
"empty": "rp_5ZMIxq_empty",
|
|
5339
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
5340
|
+
"label": "rp_5ZMIxq_label",
|
|
5354
5341
|
"tabs": "rp_5ZMIxq_tabs",
|
|
5355
|
-
"
|
|
5342
|
+
"barText": "rp_5ZMIxq_barText",
|
|
5343
|
+
"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
|
+
"itemActions": "rp_5ZMIxq_itemActions",
|
|
5352
|
+
"goal": "rp_5ZMIxq_goal",
|
|
5353
|
+
"bar": "rp_5ZMIxq_bar",
|
|
5356
5354
|
"questionActions": "rp_5ZMIxq_questionActions",
|
|
5357
|
-
"
|
|
5355
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
5356
|
+
"section": "rp_5ZMIxq_section",
|
|
5357
|
+
"meta": "rp_5ZMIxq_meta",
|
|
5358
|
+
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5359
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
5360
|
+
"initial": "rp_5ZMIxq_initial",
|
|
5361
|
+
"optionTitle": "rp_5ZMIxq_optionTitle"
|
|
5358
5362
|
};
|
|
5359
5363
|
// src/client/world-editor/EditorTabs.tsx
|
|
5360
5364
|
/** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
|
|
@@ -7062,50 +7066,50 @@ window.__ModuleLoader__.load({
|
|
|
7062
7066
|
});
|
|
7063
7067
|
}
|
|
7064
7068
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/RelationsPanel.module.css.mjs
|
|
7065
|
-
const css$
|
|
7066
|
-
const key$
|
|
7067
|
-
let tag$
|
|
7068
|
-
if (tag$
|
|
7069
|
-
tag$
|
|
7070
|
-
tag$
|
|
7071
|
-
tag$
|
|
7072
|
-
document.head.appendChild(tag$
|
|
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);
|
|
7073
7077
|
}
|
|
7074
|
-
tag$
|
|
7078
|
+
tag$40.textContent = css$40;
|
|
7075
7079
|
var RelationsPanel_module_css_default = {
|
|
7076
|
-
"node_item": "rp_7pEHTW_node_item",
|
|
7077
|
-
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
7078
|
-
"head": "rp_7pEHTW_head",
|
|
7079
|
-
"wide": "rp_7pEHTW_wide",
|
|
7080
|
-
"workspace": "rp_7pEHTW_workspace",
|
|
7081
|
-
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
7082
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
7083
|
-
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
7084
7080
|
"notice": "rp_7pEHTW_notice",
|
|
7085
|
-
"
|
|
7086
|
-
"
|
|
7087
|
-
"
|
|
7088
|
-
"
|
|
7089
|
-
"
|
|
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",
|
|
7090
7088
|
"list": "rp_7pEHTW_list",
|
|
7091
|
-
"
|
|
7089
|
+
"actions": "rp_7pEHTW_actions",
|
|
7090
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
7092
7091
|
"filter": "rp_7pEHTW_filter",
|
|
7093
|
-
"
|
|
7092
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
7094
7093
|
"graph": "rp_7pEHTW_graph",
|
|
7095
7094
|
"empty": "rp_7pEHTW_empty",
|
|
7096
|
-
"
|
|
7095
|
+
"wide": "rp_7pEHTW_wide",
|
|
7096
|
+
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
7097
7097
|
"error": "rp_7pEHTW_error",
|
|
7098
|
-
"actions": "rp_7pEHTW_actions",
|
|
7099
7098
|
"status": "rp_7pEHTW_status",
|
|
7100
|
-
"
|
|
7101
|
-
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
7102
|
-
"node_location": "rp_7pEHTW_node_location",
|
|
7103
|
-
"node": "rp_7pEHTW_node",
|
|
7104
|
-
"node_faction": "rp_7pEHTW_node_faction",
|
|
7105
|
-
"check": "rp_7pEHTW_check",
|
|
7106
|
-
"panel": "rp_7pEHTW_panel",
|
|
7099
|
+
"perspective": "rp_7pEHTW_perspective",
|
|
7107
7100
|
"toolbar": "rp_7pEHTW_toolbar",
|
|
7108
|
-
"
|
|
7101
|
+
"head": "rp_7pEHTW_head",
|
|
7102
|
+
"check": "rp_7pEHTW_check",
|
|
7103
|
+
"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"
|
|
7109
7113
|
};
|
|
7110
7114
|
// src/client/world-editor/RelationsPanel.tsx
|
|
7111
7115
|
const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
|
|
@@ -8463,23 +8467,23 @@ window.__ModuleLoader__.load({
|
|
|
8463
8467
|
}
|
|
8464
8468
|
};
|
|
8465
8469
|
// \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
|
|
8466
|
-
const css$
|
|
8467
|
-
const key$
|
|
8468
|
-
let tag$
|
|
8469
|
-
if (tag$
|
|
8470
|
-
tag$
|
|
8471
|
-
tag$
|
|
8472
|
-
tag$
|
|
8473
|
-
document.head.appendChild(tag$
|
|
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);
|
|
8474
8478
|
}
|
|
8475
|
-
tag$
|
|
8479
|
+
tag$39.textContent = css$39;
|
|
8476
8480
|
var PackFrame_module_css_default = {
|
|
8477
|
-
"
|
|
8481
|
+
"frame": "rp_h_sbFq_frame",
|
|
8478
8482
|
"message": "rp_h_sbFq_message",
|
|
8479
|
-
"
|
|
8483
|
+
"fill": "rp_h_sbFq_fill",
|
|
8480
8484
|
"problems": "rp_h_sbFq_problems",
|
|
8481
|
-
"
|
|
8482
|
-
"
|
|
8485
|
+
"hud": "rp_h_sbFq_hud",
|
|
8486
|
+
"tab": "rp_h_sbFq_tab"
|
|
8483
8487
|
};
|
|
8484
8488
|
// src/client/widgets/pack-frame/theme.ts
|
|
8485
8489
|
/** The colours of DSH a surface is given, so that it looks right in light and dark. */
|
|
@@ -8730,24 +8734,24 @@ window.__ModuleLoader__.load({
|
|
|
8730
8734
|
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;
|
|
8731
8735
|
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;
|
|
8732
8736
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/PacksPanel.module.css.mjs
|
|
8733
|
-
const css$
|
|
8734
|
-
const key$
|
|
8735
|
-
let tag$
|
|
8736
|
-
if (tag$
|
|
8737
|
-
tag$
|
|
8738
|
-
tag$
|
|
8739
|
-
tag$
|
|
8740
|
-
document.head.appendChild(tag$
|
|
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);
|
|
8741
8745
|
}
|
|
8742
|
-
tag$
|
|
8746
|
+
tag$38.textContent = css$38;
|
|
8743
8747
|
var PacksPanel_module_css_default = {
|
|
8744
|
-
"
|
|
8745
|
-
"stage": "rp_FLaP7q_stage",
|
|
8748
|
+
"controls": "rp_FLaP7q_controls",
|
|
8746
8749
|
"stageTall": "rp_FLaP7q_stageTall",
|
|
8750
|
+
"stage": "rp_FLaP7q_stage",
|
|
8747
8751
|
"log": "rp_FLaP7q_log",
|
|
8748
|
-
"
|
|
8752
|
+
"group": "rp_FLaP7q_group",
|
|
8749
8753
|
"files": "rp_FLaP7q_files",
|
|
8750
|
-
"
|
|
8754
|
+
"note": "rp_FLaP7q_note"
|
|
8751
8755
|
};
|
|
8752
8756
|
// src/client/world-editor/PacksPanel.tsx
|
|
8753
8757
|
const WIDTHS = {
|
|
@@ -10012,22 +10016,22 @@ window.__ModuleLoader__.load({
|
|
|
10012
10016
|
}));
|
|
10013
10017
|
}
|
|
10014
10018
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/sampling-fields/SamplingFields.module.css.mjs
|
|
10015
|
-
const css$
|
|
10016
|
-
const key$
|
|
10017
|
-
let tag$
|
|
10018
|
-
if (tag$
|
|
10019
|
-
tag$
|
|
10020
|
-
tag$
|
|
10021
|
-
tag$
|
|
10022
|
-
document.head.appendChild(tag$
|
|
10019
|
+
const css$37 = ".rp_9vxYSG_root{flex-direction:column;gap:8px;display:flex}.rp_9vxYSG_grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px 12px;display:grid}.rp_9vxYSG_field{flex-direction:column;gap:4px;display:flex}.rp_9vxYSG_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9vxYSG_input{font:inherit;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:inherit;background:0 0;min-width:0;padding:4px 8px;font-size:13px}.rp_9vxYSG_input:disabled{opacity:.6}.rp_9vxYSG_help{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}";
|
|
10020
|
+
const key$37 = "src/client/widgets/sampling-fields/SamplingFields.module.css";
|
|
10021
|
+
let tag$37 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$37) + "]");
|
|
10022
|
+
if (tag$37 === null) {
|
|
10023
|
+
tag$37 = document.createElement("style");
|
|
10024
|
+
tag$37.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
10025
|
+
tag$37.dataset.pluginCss = key$37;
|
|
10026
|
+
document.head.appendChild(tag$37);
|
|
10023
10027
|
}
|
|
10024
|
-
tag$
|
|
10028
|
+
tag$37.textContent = css$37;
|
|
10025
10029
|
var SamplingFields_module_css_default = {
|
|
10026
|
-
"root": "rp_9vxYSG_root",
|
|
10027
10030
|
"label": "rp_9vxYSG_label",
|
|
10028
10031
|
"field": "rp_9vxYSG_field",
|
|
10029
10032
|
"grid": "rp_9vxYSG_grid",
|
|
10030
10033
|
"input": "rp_9vxYSG_input",
|
|
10034
|
+
"root": "rp_9vxYSG_root",
|
|
10031
10035
|
"help": "rp_9vxYSG_help"
|
|
10032
10036
|
};
|
|
10033
10037
|
// src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
@@ -11869,28 +11873,28 @@ window.__ModuleLoader__.load({
|
|
|
11869
11873
|
return next;
|
|
11870
11874
|
}
|
|
11871
11875
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/tool-switches/ToolSwitches.module.css.mjs
|
|
11872
|
-
const css$
|
|
11873
|
-
const key$
|
|
11874
|
-
let tag$
|
|
11875
|
-
if (tag$
|
|
11876
|
-
tag$
|
|
11877
|
-
tag$
|
|
11878
|
-
tag$
|
|
11879
|
-
document.head.appendChild(tag$
|
|
11876
|
+
const css$36 = ".rp_CjoFLq_root{flex-direction:column;gap:12px;display:flex}.rp_CjoFLq_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_CjoFLq_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_CjoFLq_agent{border-top:1px solid var(--dsw-alias-border-l3);flex-direction:column;gap:6px;padding:8px 0;display:flex}.rp_CjoFLq_agentName{font-size:14px;font-weight:500}.rp_CjoFLq_hint{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_CjoFLq_tool{cursor:pointer;align-items:flex-start;gap:8px;font-size:13px;display:flex}.rp_CjoFLq_tool input{margin-top:3px}.rp_CjoFLq_toolText{flex-direction:column;display:flex}.rp_CjoFLq_default{color:var(--dsw-alias-label-tertiary);margin-left:6px;font-size:12px}.rp_CjoFLq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_CjoFLq_external{flex-direction:column;gap:6px;margin-top:4px;display:flex}.rp_CjoFLq_external>summary{cursor:pointer}";
|
|
11877
|
+
const key$36 = "src/client/widgets/tool-switches/ToolSwitches.module.css";
|
|
11878
|
+
let tag$36 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$36) + "]");
|
|
11879
|
+
if (tag$36 === null) {
|
|
11880
|
+
tag$36 = document.createElement("style");
|
|
11881
|
+
tag$36.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
11882
|
+
tag$36.dataset.pluginCss = key$36;
|
|
11883
|
+
document.head.appendChild(tag$36);
|
|
11880
11884
|
}
|
|
11881
|
-
tag$
|
|
11885
|
+
tag$36.textContent = css$36;
|
|
11882
11886
|
var ToolSwitches_module_css_default = {
|
|
11883
|
-
"
|
|
11884
|
-
"agent": "rp_CjoFLq_agent",
|
|
11887
|
+
"agentName": "rp_CjoFLq_agentName",
|
|
11885
11888
|
"toolText": "rp_CjoFLq_toolText",
|
|
11886
|
-
"error": "rp_CjoFLq_error",
|
|
11887
|
-
"root": "rp_CjoFLq_root",
|
|
11888
11889
|
"title": "rp_CjoFLq_title",
|
|
11889
|
-
"
|
|
11890
|
+
"help": "rp_CjoFLq_help",
|
|
11891
|
+
"agent": "rp_CjoFLq_agent",
|
|
11890
11892
|
"default": "rp_CjoFLq_default",
|
|
11893
|
+
"external": "rp_CjoFLq_external",
|
|
11891
11894
|
"tool": "rp_CjoFLq_tool",
|
|
11892
|
-
"
|
|
11893
|
-
"
|
|
11895
|
+
"root": "rp_CjoFLq_root",
|
|
11896
|
+
"error": "rp_CjoFLq_error",
|
|
11897
|
+
"hint": "rp_CjoFLq_hint"
|
|
11894
11898
|
};
|
|
11895
11899
|
// src/client/widgets/tool-switches/ToolSwitches.tsx
|
|
11896
11900
|
/**
|
|
@@ -12968,20 +12972,20 @@ window.__ModuleLoader__.load({
|
|
|
12968
12972
|
});
|
|
12969
12973
|
}
|
|
12970
12974
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/ImageLightbox.module.css.mjs
|
|
12971
|
-
const css$
|
|
12972
|
-
const key$
|
|
12973
|
-
let tag$
|
|
12974
|
-
if (tag$
|
|
12975
|
-
tag$
|
|
12976
|
-
tag$
|
|
12977
|
-
tag$
|
|
12978
|
-
document.head.appendChild(tag$
|
|
12975
|
+
const css$35 = ".rp_O6oWuW_root{z-index:1400;background:var(--dsw-alias-bg-mask-1,#000000b8);justify-content:center;align-items:center;padding:32px;display:flex;position:fixed;inset:0}.rp_O6oWuW_image{object-fit:contain;border-radius:var(--dsw-radius-sm,6px);max-width:100%;max-height:100%;box-shadow:var(--dsw-elevation-prominent,0 12px 32px #00000052)}.rp_O6oWuW_close{border-radius:var(--dsw-radius-sm,6px);background:var(--dsw-alias-bg-layer-2,#202020e0);width:32px;height:32px;color:var(--dsw-alias-label-primary,white);cursor:pointer;border:none;justify-content:center;align-items:center;display:inline-flex;position:absolute;top:16px;right:16px}.rp_O6oWuW_close:hover{background:var(--dsw-alias-interactive-bg-hover,#ffffff1f)}";
|
|
12976
|
+
const key$35 = "src/client/ui/ImageLightbox.module.css";
|
|
12977
|
+
let tag$35 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$35) + "]");
|
|
12978
|
+
if (tag$35 === null) {
|
|
12979
|
+
tag$35 = document.createElement("style");
|
|
12980
|
+
tag$35.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
12981
|
+
tag$35.dataset.pluginCss = key$35;
|
|
12982
|
+
document.head.appendChild(tag$35);
|
|
12979
12983
|
}
|
|
12980
|
-
tag$
|
|
12984
|
+
tag$35.textContent = css$35;
|
|
12981
12985
|
var ImageLightbox_module_css_default = {
|
|
12986
|
+
"close": "rp_O6oWuW_close",
|
|
12982
12987
|
"root": "rp_O6oWuW_root",
|
|
12983
|
-
"image": "rp_O6oWuW_image"
|
|
12984
|
-
"close": "rp_O6oWuW_close"
|
|
12988
|
+
"image": "rp_O6oWuW_image"
|
|
12985
12989
|
};
|
|
12986
12990
|
// src/client/ui/ImageLightbox.tsx
|
|
12987
12991
|
/**
|
|
@@ -13151,46 +13155,46 @@ window.__ModuleLoader__.load({
|
|
|
13151
13155
|
}
|
|
13152
13156
|
const imageUrl = (target, image) => `${route(target, "/file")}&path=${encodeURIComponent(image.path)}&v=${encodeURIComponent(image.createdAt)}`;
|
|
13153
13157
|
// \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
|
|
13154
|
-
const css$
|
|
13155
|
-
const key$
|
|
13156
|
-
let tag$
|
|
13157
|
-
if (tag$
|
|
13158
|
-
tag$
|
|
13159
|
-
tag$
|
|
13160
|
-
tag$
|
|
13161
|
-
document.head.appendChild(tag$
|
|
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))}}";
|
|
13159
|
+
const key$34 = "src/client/widgets/gallery-view/GalleryView.module.css";
|
|
13160
|
+
let tag$34 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$34) + "]");
|
|
13161
|
+
if (tag$34 === null) {
|
|
13162
|
+
tag$34 = document.createElement("style");
|
|
13163
|
+
tag$34.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
13164
|
+
tag$34.dataset.pluginCss = key$34;
|
|
13165
|
+
document.head.appendChild(tag$34);
|
|
13162
13166
|
}
|
|
13163
|
-
tag$
|
|
13167
|
+
tag$34.textContent = css$34;
|
|
13164
13168
|
var GalleryView_module_css_default = {
|
|
13165
|
-
"
|
|
13166
|
-
"
|
|
13167
|
-
"
|
|
13168
|
-
"detail": "rp_9pSHmG_detail",
|
|
13169
|
-
"note": "rp_9pSHmG_note",
|
|
13169
|
+
"tags": "rp_9pSHmG_tags",
|
|
13170
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
13171
|
+
"editInput": "rp_9pSHmG_editInput",
|
|
13170
13172
|
"editField": "rp_9pSHmG_editField",
|
|
13171
|
-
"
|
|
13172
|
-
"
|
|
13173
|
-
"open": "rp_9pSHmG_open",
|
|
13173
|
+
"error": "rp_9pSHmG_error",
|
|
13174
|
+
"edit": "rp_9pSHmG_edit",
|
|
13174
13175
|
"editHelp": "rp_9pSHmG_editHelp",
|
|
13175
|
-
"
|
|
13176
|
-
"
|
|
13177
|
-
"count": "rp_9pSHmG_count",
|
|
13178
|
-
"toolbar": "rp_9pSHmG_toolbar",
|
|
13179
|
-
"statusError": "rp_9pSHmG_statusError",
|
|
13180
|
-
"editButton": "rp_9pSHmG_editButton",
|
|
13181
|
-
"editInput": "rp_9pSHmG_editInput",
|
|
13176
|
+
"large": "rp_9pSHmG_large",
|
|
13177
|
+
"open": "rp_9pSHmG_open",
|
|
13182
13178
|
"actions": "rp_9pSHmG_actions",
|
|
13183
|
-
"
|
|
13179
|
+
"page": "rp_9pSHmG_page",
|
|
13184
13180
|
"status": "rp_9pSHmG_status",
|
|
13185
13181
|
"editArea": "rp_9pSHmG_editArea",
|
|
13186
|
-
"
|
|
13182
|
+
"image": "rp_9pSHmG_image",
|
|
13183
|
+
"count": "rp_9pSHmG_count",
|
|
13184
|
+
"facts": "rp_9pSHmG_facts",
|
|
13185
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
13186
|
+
"cell": "rp_9pSHmG_cell",
|
|
13187
|
+
"pre": "rp_9pSHmG_pre",
|
|
13188
|
+
"detail": "rp_9pSHmG_detail",
|
|
13189
|
+
"reusable": "rp_9pSHmG_reusable",
|
|
13190
|
+
"grid": "rp_9pSHmG_grid",
|
|
13187
13191
|
"caption": "rp_9pSHmG_caption",
|
|
13188
13192
|
"message": "rp_9pSHmG_message",
|
|
13189
|
-
"
|
|
13190
|
-
"
|
|
13191
|
-
"
|
|
13192
|
-
"
|
|
13193
|
-
"
|
|
13193
|
+
"select": "rp_9pSHmG_select",
|
|
13194
|
+
"note": "rp_9pSHmG_note",
|
|
13195
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
13196
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
13197
|
+
"thumb": "rp_9pSHmG_thumb"
|
|
13194
13198
|
};
|
|
13195
13199
|
// src/client/widgets/gallery-view/GalleryView.tsx
|
|
13196
13200
|
/** How often the list is read again while pictures are waiting to be described. */
|
|
@@ -13522,24 +13526,24 @@ window.__ModuleLoader__.load({
|
|
|
13522
13526
|
});
|
|
13523
13527
|
}
|
|
13524
13528
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/WorldEditor.module.css.mjs
|
|
13525
|
-
const css$
|
|
13526
|
-
const key$
|
|
13527
|
-
let tag$
|
|
13528
|
-
if (tag$
|
|
13529
|
-
tag$
|
|
13530
|
-
tag$
|
|
13531
|
-
tag$
|
|
13532
|
-
document.head.appendChild(tag$
|
|
13529
|
+
const css$33 = ".rp__swA3a_view{flex:1 1 0;width:100%;min-height:0;display:flex}.rp__swA3a_message{color:var(--dsw-alias-label-secondary);margin:0;padding:24px;font-size:13px}.rp__swA3a_warning{color:var(--dsw-alias-label-primary);border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);margin:0 0 12px;padding:8px 12px;font-size:13px}.rp__swA3a_drawer{box-sizing:border-box;border-right:.5px solid var(--dsw-alias-border-l3);flex-direction:column;flex:0 0 168px;gap:2px;padding:16px 8px;display:flex}.rp__swA3a_drawerItem{border-radius:var(--dsw-radius-md);width:100%;font:inherit;text-align:left;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:6px 12px;font-size:13px;line-height:20px;display:block}@media (width<=720px){.rp__swA3a_view{flex-direction:column}.rp__swA3a_drawer{border-right:0;border-bottom:.5px solid var(--dsw-alias-border-l3);flex-direction:row;flex:none;width:100%;padding:8px;overflow-x:auto}.rp__swA3a_drawerItem{white-space:nowrap;flex:none;width:auto}}.rp__swA3a_drawerItem:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.rp__swA3a_drawerItemOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2);font-weight:500}.rp__swA3a_content{flex-direction:column;flex:1 1 0;min-width:0;min-height:0;display:flex}";
|
|
13530
|
+
const key$33 = "src/client/world-editor/WorldEditor.module.css";
|
|
13531
|
+
let tag$33 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$33) + "]");
|
|
13532
|
+
if (tag$33 === null) {
|
|
13533
|
+
tag$33 = document.createElement("style");
|
|
13534
|
+
tag$33.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
13535
|
+
tag$33.dataset.pluginCss = key$33;
|
|
13536
|
+
document.head.appendChild(tag$33);
|
|
13533
13537
|
}
|
|
13534
|
-
tag$
|
|
13538
|
+
tag$33.textContent = css$33;
|
|
13535
13539
|
var WorldEditor_module_css_default = {
|
|
13536
|
-
"drawer": "rp__swA3a_drawer",
|
|
13537
|
-
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
13538
|
-
"warning": "rp__swA3a_warning",
|
|
13539
13540
|
"drawerItem": "rp__swA3a_drawerItem",
|
|
13540
|
-
"
|
|
13541
|
+
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
13541
13542
|
"content": "rp__swA3a_content",
|
|
13542
|
-
"
|
|
13543
|
+
"view": "rp__swA3a_view",
|
|
13544
|
+
"message": "rp__swA3a_message",
|
|
13545
|
+
"warning": "rp__swA3a_warning",
|
|
13546
|
+
"drawer": "rp__swA3a_drawer"
|
|
13543
13547
|
};
|
|
13544
13548
|
// src/client/world-editor/WorldEditor.tsx
|
|
13545
13549
|
const SECTIONS = [
|
|
@@ -13648,7 +13652,7 @@ window.__ModuleLoader__.load({
|
|
|
13648
13652
|
* The world as it can be authored: a drawer of its parts and the part that is open. It reads from and saves to a source, so the same
|
|
13649
13653
|
* editor serves the story of a session and the files of a world.
|
|
13650
13654
|
*/
|
|
13651
|
-
function WorldEditor({ t, source, notEditable, only, warnNoPlayable = true, focus }) {
|
|
13655
|
+
function WorldEditor({ t, source, notEditable, only, warnNoPlayable = true, focus, onInfoSaved }) {
|
|
13652
13656
|
const [load, setLoad] = (0, react.useState)({ status: "loading" });
|
|
13653
13657
|
const [section, setSection] = (0, react.useState)(only?.[0] ?? (focus !== void 0 || source.worldId === void 0 ? "characters" : "info"));
|
|
13654
13658
|
const sections = SECTIONS.filter((entry) => (only === void 0 || only.includes(entry.id)) && (!("ownFiles" in entry) || source.worldId !== void 0));
|
|
@@ -13724,7 +13728,10 @@ window.__ModuleLoader__.load({
|
|
|
13724
13728
|
section === "info" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InfoPanel, {
|
|
13725
13729
|
t,
|
|
13726
13730
|
worldId: source.worldId,
|
|
13727
|
-
onSaved:
|
|
13731
|
+
onSaved: () => {
|
|
13732
|
+
refresh();
|
|
13733
|
+
onInfoSaved?.();
|
|
13734
|
+
},
|
|
13728
13735
|
actions: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13729
13736
|
variant: "ghost",
|
|
13730
13737
|
size: "sm",
|
|
@@ -13939,38 +13946,38 @@ window.__ModuleLoader__.load({
|
|
|
13939
13946
|
});
|
|
13940
13947
|
}
|
|
13941
13948
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/avatars/AvatarsPage.module.css.mjs
|
|
13942
|
-
const css$
|
|
13943
|
-
const key$
|
|
13944
|
-
let tag$
|
|
13945
|
-
if (tag$
|
|
13946
|
-
tag$
|
|
13947
|
-
tag$
|
|
13948
|
-
tag$
|
|
13949
|
-
document.head.appendChild(tag$
|
|
13949
|
+
const css$32 = ".rp_pQOzEG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_pQOzEG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_pQOzEG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_pQOzEG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_pQOzEG_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_pQOzEG_grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_pQOzEG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);align-items:center;gap:4px;min-width:0;padding-right:8px;display:flex}.rp_pQOzEG_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_pQOzEG_open{min-width:0;font:inherit;text-align:left;color:inherit;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:12px;padding:10px 0 10px 10px;display:flex}.rp_pQOzEG_open:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_pQOzEG_portrait,.rp_pQOzEG_placeholder{border-radius:var(--dsw-radius-lg);object-fit:cover;flex:none;width:48px;height:48px}.rp_pQOzEG_placeholder{color:var(--dsw-alias-label-secondary);justify-content:center;align-items:center;font-size:20px;font-weight:500;display:flex}.rp_pQOzEG_text{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_pQOzEG_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_pQOzEG_summary{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.rp_pQOzEG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_pQOzEG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_pQOzEG_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_pQOzEG_editTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_pQOzEG_editBody{flex:1 1 0;min-height:0;display:flex}.rp_pQOzEG_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_pQOzEG_field{flex-direction:column;gap:6px;min-width:0;display:flex}.rp_pQOzEG_label{color:var(--dsw-alias-label-secondary);font-size:12px}@media (width<=640px){.rp_pQOzEG_toolbar{align-items:flex-start}.rp_pQOzEG_count{padding-top:6px}.rp_pQOzEG_grid{grid-template-columns:1fr}.rp_pQOzEG_form{min-width:0}}";
|
|
13950
|
+
const key$32 = "src/client/pages/avatars/AvatarsPage.module.css";
|
|
13951
|
+
let tag$32 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$32) + "]");
|
|
13952
|
+
if (tag$32 === null) {
|
|
13953
|
+
tag$32 = document.createElement("style");
|
|
13954
|
+
tag$32.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
13955
|
+
tag$32.dataset.pluginCss = key$32;
|
|
13956
|
+
document.head.appendChild(tag$32);
|
|
13950
13957
|
}
|
|
13951
|
-
tag$
|
|
13958
|
+
tag$32.textContent = css$32;
|
|
13952
13959
|
var AvatarsPage_module_css_default = {
|
|
13953
|
-
"
|
|
13960
|
+
"field": "rp_pQOzEG_field",
|
|
13961
|
+
"label": "rp_pQOzEG_label",
|
|
13954
13962
|
"toolbar": "rp_pQOzEG_toolbar",
|
|
13963
|
+
"open": "rp_pQOzEG_open",
|
|
13955
13964
|
"portrait": "rp_pQOzEG_portrait",
|
|
13956
|
-
"
|
|
13957
|
-
"
|
|
13965
|
+
"count": "rp_pQOzEG_count",
|
|
13966
|
+
"name": "rp_pQOzEG_name",
|
|
13967
|
+
"message": "rp_pQOzEG_message",
|
|
13968
|
+
"editHeader": "rp_pQOzEG_editHeader",
|
|
13969
|
+
"form": "rp_pQOzEG_form",
|
|
13958
13970
|
"placeholder": "rp_pQOzEG_placeholder",
|
|
13959
|
-
"actions": "rp_pQOzEG_actions",
|
|
13960
13971
|
"summary": "rp_pQOzEG_summary",
|
|
13961
|
-
"
|
|
13962
|
-
"
|
|
13963
|
-
"editTitle": "rp_pQOzEG_editTitle",
|
|
13972
|
+
"actions": "rp_pQOzEG_actions",
|
|
13973
|
+
"text": "rp_pQOzEG_text",
|
|
13964
13974
|
"editBody": "rp_pQOzEG_editBody",
|
|
13965
13975
|
"error": "rp_pQOzEG_error",
|
|
13966
|
-
"
|
|
13967
|
-
"
|
|
13968
|
-
"
|
|
13969
|
-
"
|
|
13970
|
-
"
|
|
13971
|
-
"text": "rp_pQOzEG_text",
|
|
13972
|
-
"count": "rp_pQOzEG_count",
|
|
13973
|
-
"message": "rp_pQOzEG_message"
|
|
13976
|
+
"page": "rp_pQOzEG_page",
|
|
13977
|
+
"viewport": "rp_pQOzEG_viewport",
|
|
13978
|
+
"grid": "rp_pQOzEG_grid",
|
|
13979
|
+
"card": "rp_pQOzEG_card",
|
|
13980
|
+
"editTitle": "rp_pQOzEG_editTitle"
|
|
13974
13981
|
};
|
|
13975
13982
|
// src/client/pages/avatars/AvatarsPage.tsx
|
|
13976
13983
|
const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
|
|
@@ -19231,48 +19238,48 @@ window.__ModuleLoader__.load({
|
|
|
19231
19238
|
}, AvatarsPage));
|
|
19232
19239
|
}
|
|
19233
19240
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/lorebooks/LorebooksPage.module.css.mjs
|
|
19234
|
-
const css$
|
|
19235
|
-
const key$
|
|
19236
|
-
let tag$
|
|
19237
|
-
if (tag$
|
|
19238
|
-
tag$
|
|
19239
|
-
tag$
|
|
19240
|
-
tag$
|
|
19241
|
-
document.head.appendChild(tag$
|
|
19241
|
+
const css$31 = ".rp_VV-Eha_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_VV-Eha_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_VV-Eha_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_VV-Eha_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_VV-Eha_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_VV-Eha_grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_VV-Eha_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;gap:8px;min-width:0;padding:12px;display:flex}.rp_VV-Eha_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_VV-Eha_head{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_VV-Eha_title{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_VV-Eha_name{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_VV-Eha_description{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.rp_VV-Eha_meta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_VV-Eha_cardActions{flex-wrap:wrap;gap:4px;margin-top:auto;display:flex}.rp_VV-Eha_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_VV-Eha_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_VV-Eha_warning{color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-error-primary));margin:0;font-size:12px}.rp_VV-Eha_ok{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_VV-Eha_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_VV-Eha_editTitle{color:var(--dsw-alias-label-primary);flex:auto;font-size:14px;font-weight:500}.rp_VV-Eha_editBody{flex-direction:column;flex:1 1 0;gap:24px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_VV-Eha_section{flex-direction:column;gap:12px;max-width:720px;display:flex}.rp_VV-Eha_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_VV-Eha_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_VV-Eha_row{flex-wrap:wrap;gap:12px;display:flex}.rp_VV-Eha_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_VV-Eha_field{flex-direction:column;flex:200px;gap:6px;min-width:0;display:flex}.rp_VV-Eha_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_VV-Eha_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:280px;font:13px/20px var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-primary);resize:vertical;padding:8px}.rp_VV-Eha_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);width:100%;font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}@media (width<=640px){.rp_VV-Eha_grid{grid-template-columns:1fr}.rp_VV-Eha_form{min-width:0}.rp_VV-Eha_editBody{padding:16px}}.rp_VV-Eha_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);padding:4px 6px;font-size:13px}.rp_VV-Eha_entryArea{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:200px;font:inherit;color:var(--dsw-alias-label-primary);resize:vertical;padding:8px;font-size:13px;line-height:20px}";
|
|
19242
|
+
const key$31 = "src/client/pages/lorebooks/LorebooksPage.module.css";
|
|
19243
|
+
let tag$31 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$31) + "]");
|
|
19244
|
+
if (tag$31 === null) {
|
|
19245
|
+
tag$31 = document.createElement("style");
|
|
19246
|
+
tag$31.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
19247
|
+
tag$31.dataset.pluginCss = key$31;
|
|
19248
|
+
document.head.appendChild(tag$31);
|
|
19242
19249
|
}
|
|
19243
|
-
tag$
|
|
19250
|
+
tag$31.textContent = css$31;
|
|
19244
19251
|
var LorebooksPage_module_css_default = {
|
|
19245
|
-
"
|
|
19246
|
-
"
|
|
19247
|
-
"
|
|
19248
|
-
"
|
|
19249
|
-
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
19250
|
-
"message": "rp_VV-Eha_message",
|
|
19251
|
-
"actions": "rp_VV-Eha_actions",
|
|
19252
|
-
"input": "rp_VV-Eha_input",
|
|
19253
|
-
"title": "rp_VV-Eha_title",
|
|
19254
|
-
"cardActions": "rp_VV-Eha_cardActions",
|
|
19255
|
-
"count": "rp_VV-Eha_count",
|
|
19256
|
-
"select": "rp_VV-Eha_select",
|
|
19257
|
-
"description": "rp_VV-Eha_description",
|
|
19258
|
-
"card": "rp_VV-Eha_card",
|
|
19259
|
-
"grid": "rp_VV-Eha_grid",
|
|
19260
|
-
"toolbar": "rp_VV-Eha_toolbar",
|
|
19252
|
+
"viewport": "rp_VV-Eha_viewport",
|
|
19253
|
+
"help": "rp_VV-Eha_help",
|
|
19254
|
+
"editHeader": "rp_VV-Eha_editHeader",
|
|
19255
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
19261
19256
|
"warning": "rp_VV-Eha_warning",
|
|
19257
|
+
"name": "rp_VV-Eha_name",
|
|
19258
|
+
"input": "rp_VV-Eha_input",
|
|
19262
19259
|
"label": "rp_VV-Eha_label",
|
|
19263
|
-
"
|
|
19260
|
+
"card": "rp_VV-Eha_card",
|
|
19264
19261
|
"error": "rp_VV-Eha_error",
|
|
19265
|
-
"
|
|
19266
|
-
"
|
|
19267
|
-
"row": "rp_VV-Eha_row",
|
|
19268
|
-
"form": "rp_VV-Eha_form",
|
|
19269
|
-
"help": "rp_VV-Eha_help",
|
|
19270
|
-
"name": "rp_VV-Eha_name",
|
|
19271
|
-
"editHeader": "rp_VV-Eha_editHeader",
|
|
19262
|
+
"cardActions": "rp_VV-Eha_cardActions",
|
|
19263
|
+
"message": "rp_VV-Eha_message",
|
|
19272
19264
|
"meta": "rp_VV-Eha_meta",
|
|
19265
|
+
"field": "rp_VV-Eha_field",
|
|
19266
|
+
"area": "rp_VV-Eha_area",
|
|
19273
19267
|
"entryArea": "rp_VV-Eha_entryArea",
|
|
19268
|
+
"grid": "rp_VV-Eha_grid",
|
|
19269
|
+
"section": "rp_VV-Eha_section",
|
|
19270
|
+
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
19271
|
+
"page": "rp_VV-Eha_page",
|
|
19272
|
+
"head": "rp_VV-Eha_head",
|
|
19273
|
+
"row": "rp_VV-Eha_row",
|
|
19274
19274
|
"ok": "rp_VV-Eha_ok",
|
|
19275
|
-
"
|
|
19275
|
+
"select": "rp_VV-Eha_select",
|
|
19276
|
+
"editBody": "rp_VV-Eha_editBody",
|
|
19277
|
+
"description": "rp_VV-Eha_description",
|
|
19278
|
+
"toolbar": "rp_VV-Eha_toolbar",
|
|
19279
|
+
"form": "rp_VV-Eha_form",
|
|
19280
|
+
"actions": "rp_VV-Eha_actions",
|
|
19281
|
+
"title": "rp_VV-Eha_title",
|
|
19282
|
+
"count": "rp_VV-Eha_count"
|
|
19276
19283
|
};
|
|
19277
19284
|
// src/client/pages/lorebooks/LorebookEditor.tsx
|
|
19278
19285
|
const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -20763,46 +20770,46 @@ window.__ModuleLoader__.load({
|
|
|
20763
20770
|
}, LorebooksPage));
|
|
20764
20771
|
}
|
|
20765
20772
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/presets/PresetsPage.module.css.mjs
|
|
20766
|
-
const css$
|
|
20767
|
-
const key$
|
|
20768
|
-
let tag$
|
|
20769
|
-
if (tag$
|
|
20770
|
-
tag$
|
|
20771
|
-
tag$
|
|
20772
|
-
tag$
|
|
20773
|
-
document.head.appendChild(tag$
|
|
20773
|
+
const css$30 = ".rp_ZK89ba_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_ZK89ba_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_ZK89ba_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_ZK89ba_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_ZK89ba_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_ZK89ba_grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_ZK89ba_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;gap:8px;min-width:0;padding:12px;display:flex}.rp_ZK89ba_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_ZK89ba_head{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_ZK89ba_title{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_ZK89ba_name{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_ZK89ba_description{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.rp_ZK89ba_meta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_ZK89ba_cardActions{flex-wrap:wrap;gap:4px;margin-top:auto;display:flex}.rp_ZK89ba_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_ZK89ba_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_ZK89ba_warning{color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-error-primary));margin:0;font-size:12px}.rp_ZK89ba_ok{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_ZK89ba_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_ZK89ba_editTitle{color:var(--dsw-alias-label-primary);flex:auto;font-size:14px;font-weight:500}.rp_ZK89ba_editBody{flex-direction:column;flex:1 1 0;gap:24px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_ZK89ba_section{flex-direction:column;gap:12px;max-width:720px;display:flex}.rp_ZK89ba_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_ZK89ba_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_ZK89ba_row{flex-wrap:wrap;gap:12px;display:flex}.rp_ZK89ba_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_ZK89ba_field{flex-direction:column;flex:200px;gap:6px;min-width:0;display:flex}.rp_ZK89ba_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_ZK89ba_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:280px;font:13px/20px var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-primary);resize:vertical;padding:8px}.rp_ZK89ba_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);width:100%;font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}@media (width<=640px){.rp_ZK89ba_grid{grid-template-columns:1fr}.rp_ZK89ba_form{min-width:0}.rp_ZK89ba_editBody{padding:16px}}";
|
|
20774
|
+
const key$30 = "src/client/pages/presets/PresetsPage.module.css";
|
|
20775
|
+
let tag$30 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$30) + "]");
|
|
20776
|
+
if (tag$30 === null) {
|
|
20777
|
+
tag$30 = document.createElement("style");
|
|
20778
|
+
tag$30.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
20779
|
+
tag$30.dataset.pluginCss = key$30;
|
|
20780
|
+
document.head.appendChild(tag$30);
|
|
20774
20781
|
}
|
|
20775
|
-
tag$
|
|
20782
|
+
tag$30.textContent = css$30;
|
|
20776
20783
|
var PresetsPage_module_css_default = {
|
|
20777
|
-
"viewport": "rp_ZK89ba_viewport",
|
|
20778
|
-
"actions": "rp_ZK89ba_actions",
|
|
20779
|
-
"editBody": "rp_ZK89ba_editBody",
|
|
20780
|
-
"card": "rp_ZK89ba_card",
|
|
20781
|
-
"description": "rp_ZK89ba_description",
|
|
20782
|
-
"cardActions": "rp_ZK89ba_cardActions",
|
|
20783
|
-
"error": "rp_ZK89ba_error",
|
|
20784
|
-
"ok": "rp_ZK89ba_ok",
|
|
20785
|
-
"head": "rp_ZK89ba_head",
|
|
20786
|
-
"field": "rp_ZK89ba_field",
|
|
20787
|
-
"editTitle": "rp_ZK89ba_editTitle",
|
|
20788
|
-
"toolbar": "rp_ZK89ba_toolbar",
|
|
20789
20784
|
"section": "rp_ZK89ba_section",
|
|
20790
|
-
"
|
|
20791
|
-
"grid": "rp_ZK89ba_grid",
|
|
20792
|
-
"meta": "rp_ZK89ba_meta",
|
|
20793
|
-
"editHeader": "rp_ZK89ba_editHeader",
|
|
20794
|
-
"warning": "rp_ZK89ba_warning",
|
|
20795
|
-
"title": "rp_ZK89ba_title",
|
|
20796
|
-
"page": "rp_ZK89ba_page",
|
|
20797
|
-
"help": "rp_ZK89ba_help",
|
|
20785
|
+
"error": "rp_ZK89ba_error",
|
|
20798
20786
|
"label": "rp_ZK89ba_label",
|
|
20787
|
+
"warning": "rp_ZK89ba_warning",
|
|
20799
20788
|
"message": "rp_ZK89ba_message",
|
|
20800
|
-
"
|
|
20789
|
+
"area": "rp_ZK89ba_area",
|
|
20790
|
+
"viewport": "rp_ZK89ba_viewport",
|
|
20791
|
+
"ok": "rp_ZK89ba_ok",
|
|
20792
|
+
"title": "rp_ZK89ba_title",
|
|
20793
|
+
"description": "rp_ZK89ba_description",
|
|
20794
|
+
"grid": "rp_ZK89ba_grid",
|
|
20795
|
+
"card": "rp_ZK89ba_card",
|
|
20796
|
+
"head": "rp_ZK89ba_head",
|
|
20801
20797
|
"name": "rp_ZK89ba_name",
|
|
20802
20798
|
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
20799
|
+
"editHeader": "rp_ZK89ba_editHeader",
|
|
20803
20800
|
"row": "rp_ZK89ba_row",
|
|
20801
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
20802
|
+
"editBody": "rp_ZK89ba_editBody",
|
|
20803
|
+
"actions": "rp_ZK89ba_actions",
|
|
20804
|
+
"count": "rp_ZK89ba_count",
|
|
20805
|
+
"page": "rp_ZK89ba_page",
|
|
20806
|
+
"meta": "rp_ZK89ba_meta",
|
|
20807
|
+
"input": "rp_ZK89ba_input",
|
|
20808
|
+
"help": "rp_ZK89ba_help",
|
|
20809
|
+
"field": "rp_ZK89ba_field",
|
|
20804
20810
|
"form": "rp_ZK89ba_form",
|
|
20805
|
-
"
|
|
20811
|
+
"editTitle": "rp_ZK89ba_editTitle",
|
|
20812
|
+
"cardActions": "rp_ZK89ba_cardActions"
|
|
20806
20813
|
};
|
|
20807
20814
|
// src/client/pages/presets/PresetEditor.tsx
|
|
20808
20815
|
const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -22280,45 +22287,45 @@ window.__ModuleLoader__.load({
|
|
|
22280
22287
|
};
|
|
22281
22288
|
}
|
|
22282
22289
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/prompts/PromptsPage.module.css.mjs
|
|
22283
|
-
const css$
|
|
22284
|
-
const key$
|
|
22285
|
-
let tag$
|
|
22286
|
-
if (tag$
|
|
22287
|
-
tag$
|
|
22288
|
-
tag$
|
|
22289
|
-
tag$
|
|
22290
|
-
document.head.appendChild(tag$
|
|
22290
|
+
const css$29 = ".rp_DLg_5G_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_DLg_5G_toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:12px;min-height:28px;display:flex}.rp_DLg_5G_toolbar select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);max-width:100%;min-height:30px;color:var(--dsw-alias-label-primary);font:inherit;font-size:12px}.rp_DLg_5G_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_DLg_5G_spacer{flex:auto}.rp_DLg_5G_check{color:var(--dsw-alias-label-secondary);align-items:center;gap:6px;font-size:12px;display:inline-flex}.rp_DLg_5G_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}.rp_DLg_5G_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_DLg_5G_group{color:var(--dsw-alias-label-tertiary);margin:12px 0 4px;font-size:12px;font-weight:500}.rp_DLg_5G_list{margin:0;padding:0;list-style:none}.rp_DLg_5G_row{border:none;border-bottom:.5px solid var(--dsw-alias-border-l3);width:100%;font:inherit;text-align:left;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;align-items:center;gap:8px;padding:6px 4px;font-size:13px;display:flex}.rp_DLg_5G_row:hover{color:var(--dsw-alias-state-business-primary)}.rp_DLg_5G_row:focus-visible{border-radius:var(--dsw-radius-sm);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-2px;position:relative}.rp_DLg_5G_rowName{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.rp_DLg_5G_rowLanguage{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_DLg_5G_sign{text-align:center;min-width:14px;color:var(--dsw-alias-state-business-primary);font-size:13px;font-weight:500}.rp_DLg_5G_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_DLg_5G_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_DLg_5G_warning{color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-error-primary));margin:0;font-size:12px}.rp_DLg_5G_ok{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_DLg_5G_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_DLg_5G_editTitle{color:var(--dsw-alias-label-primary);flex:auto;font-size:14px;font-weight:500}.rp_DLg_5G_editBody{flex-direction:column;flex:1 1 0;gap:12px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_DLg_5G_panes{grid-template-columns:1fr 1fr;align-items:stretch;gap:16px;display:grid}.rp_DLg_5G_pane{flex-direction:column;gap:6px;min-width:0;display:flex}.rp_DLg_5G_label{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:500}.rp_DLg_5G_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:260px;font:13px/20px var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-primary);resize:none;flex:auto;padding:8px;overflow:hidden}.rp_DLg_5G_area:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}.rp_DLg_5G_shipped{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);min-height:260px;font:13px/20px var(--dsw-font-mono,monospace);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary);flex:auto;margin:0;padding:8px;overflow-x:auto}.rp_DLg_5G_line{min-height:20px;display:block}.rp_DLg_5G_missing{background:var(--dsw-alias-state-business-bg,#648cff24);color:var(--dsw-alias-label-primary)}.rp_DLg_5G_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}@media (width<=900px){.rp_DLg_5G_panes{grid-template-columns:1fr}.rp_DLg_5G_editBody{padding:16px}}@media (width<=520px){.rp_DLg_5G_toolbar{align-items:stretch}.rp_DLg_5G_toolbar select{flex:140px}.rp_DLg_5G_spacer{display:none}.rp_DLg_5G_editHeader{flex-wrap:wrap;padding-inline:12px}.rp_DLg_5G_editTitle{overflow-wrap:anywhere}}";
|
|
22291
|
+
const key$29 = "src/client/pages/prompts/PromptsPage.module.css";
|
|
22292
|
+
let tag$29 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$29) + "]");
|
|
22293
|
+
if (tag$29 === null) {
|
|
22294
|
+
tag$29 = document.createElement("style");
|
|
22295
|
+
tag$29.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
22296
|
+
tag$29.dataset.pluginCss = key$29;
|
|
22297
|
+
document.head.appendChild(tag$29);
|
|
22291
22298
|
}
|
|
22292
|
-
tag$
|
|
22299
|
+
tag$29.textContent = css$29;
|
|
22293
22300
|
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",
|
|
22294
22309
|
"editBody": "rp_DLg_5G_editBody",
|
|
22295
|
-
"
|
|
22310
|
+
"actions": "rp_DLg_5G_actions",
|
|
22311
|
+
"toolbar": "rp_DLg_5G_toolbar",
|
|
22312
|
+
"label": "rp_DLg_5G_label",
|
|
22296
22313
|
"list": "rp_DLg_5G_list",
|
|
22297
|
-
"page": "rp_DLg_5G_page",
|
|
22298
|
-
"sign": "rp_DLg_5G_sign",
|
|
22299
22314
|
"editHeader": "rp_DLg_5G_editHeader",
|
|
22300
|
-
"
|
|
22301
|
-
"
|
|
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
|
+
"pane": "rp_DLg_5G_pane",
|
|
22320
|
+
"row": "rp_DLg_5G_row",
|
|
22302
22321
|
"panes": "rp_DLg_5G_panes",
|
|
22303
22322
|
"shipped": "rp_DLg_5G_shipped",
|
|
22304
|
-
"label": "rp_DLg_5G_label",
|
|
22305
|
-
"row": "rp_DLg_5G_row",
|
|
22306
|
-
"viewport": "rp_DLg_5G_viewport",
|
|
22307
22323
|
"line": "rp_DLg_5G_line",
|
|
22308
|
-
"help": "rp_DLg_5G_help",
|
|
22309
|
-
"message": "rp_DLg_5G_message",
|
|
22310
|
-
"warning": "rp_DLg_5G_warning",
|
|
22311
|
-
"ok": "rp_DLg_5G_ok",
|
|
22312
|
-
"missing": "rp_DLg_5G_missing",
|
|
22313
22324
|
"rowLanguage": "rp_DLg_5G_rowLanguage",
|
|
22325
|
+
"missing": "rp_DLg_5G_missing",
|
|
22314
22326
|
"error": "rp_DLg_5G_error",
|
|
22315
|
-
"
|
|
22316
|
-
"
|
|
22317
|
-
"check": "rp_DLg_5G_check",
|
|
22318
|
-
"editTitle": "rp_DLg_5G_editTitle",
|
|
22319
|
-
"pane": "rp_DLg_5G_pane",
|
|
22320
|
-
"count": "rp_DLg_5G_count",
|
|
22321
|
-
"group": "rp_DLg_5G_group"
|
|
22327
|
+
"area": "rp_DLg_5G_area",
|
|
22328
|
+
"rowName": "rp_DLg_5G_rowName"
|
|
22322
22329
|
};
|
|
22323
22330
|
// src/client/pages/prompts/PromptEditor.tsx
|
|
22324
22331
|
const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -23097,19 +23104,19 @@ window.__ModuleLoader__.load({
|
|
|
23097
23104
|
return Math.min(Math.floor(Math.max(0, index) / pageSize), lastPage) * pageSize;
|
|
23098
23105
|
}
|
|
23099
23106
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/pager/Pager.module.css.mjs
|
|
23100
|
-
const css$
|
|
23101
|
-
const key$
|
|
23102
|
-
let tag$
|
|
23103
|
-
if (tag$
|
|
23104
|
-
tag$
|
|
23105
|
-
tag$
|
|
23106
|
-
tag$
|
|
23107
|
-
document.head.appendChild(tag$
|
|
23107
|
+
const css$28 = ".rp_KBAD0W_pager{flex:none;justify-content:center;align-items:center;gap:8px;display:flex}.rp_KBAD0W_position{text-align:center;min-width:120px;color:var(--dsw-alias-label-tertiary);font-size:12px}";
|
|
23108
|
+
const key$28 = "src/client/widgets/pager/Pager.module.css";
|
|
23109
|
+
let tag$28 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$28) + "]");
|
|
23110
|
+
if (tag$28 === null) {
|
|
23111
|
+
tag$28 = document.createElement("style");
|
|
23112
|
+
tag$28.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
23113
|
+
tag$28.dataset.pluginCss = key$28;
|
|
23114
|
+
document.head.appendChild(tag$28);
|
|
23108
23115
|
}
|
|
23109
|
-
tag$
|
|
23116
|
+
tag$28.textContent = css$28;
|
|
23110
23117
|
var Pager_module_css_default = {
|
|
23111
|
-
"
|
|
23112
|
-
"
|
|
23118
|
+
"position": "rp_KBAD0W_position",
|
|
23119
|
+
"pager": "rp_KBAD0W_pager"
|
|
23113
23120
|
};
|
|
23114
23121
|
// src/client/widgets/pager/Pager.tsx
|
|
23115
23122
|
/** Previous and next buttons around the current position; the owner supplies every label. */
|
|
@@ -23142,16 +23149,16 @@ window.__ModuleLoader__.load({
|
|
|
23142
23149
|
});
|
|
23143
23150
|
}
|
|
23144
23151
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/problem-list/ProblemList.module.css.mjs
|
|
23145
|
-
const css$
|
|
23146
|
-
const key$
|
|
23147
|
-
let tag$
|
|
23148
|
-
if (tag$
|
|
23149
|
-
tag$
|
|
23150
|
-
tag$
|
|
23151
|
-
tag$
|
|
23152
|
-
document.head.appendChild(tag$
|
|
23152
|
+
const css$27 = ".rp_LZh3Iq_problems{color:var(--dsw-alias-state-warn-primary);flex:none;font-size:12px}.rp_LZh3Iq_problems summary{cursor:pointer}.rp_LZh3Iq_problems ul{color:var(--dsw-alias-label-secondary);margin:8px 0 0;padding-left:20px}.rp_LZh3Iq_problems code{font-family:var(--dsw-font-mono);color:var(--dsw-alias-label-primary)}";
|
|
23153
|
+
const key$27 = "src/client/widgets/problem-list/ProblemList.module.css";
|
|
23154
|
+
let tag$27 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$27) + "]");
|
|
23155
|
+
if (tag$27 === null) {
|
|
23156
|
+
tag$27 = document.createElement("style");
|
|
23157
|
+
tag$27.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
23158
|
+
tag$27.dataset.pluginCss = key$27;
|
|
23159
|
+
document.head.appendChild(tag$27);
|
|
23153
23160
|
}
|
|
23154
|
-
tag$
|
|
23161
|
+
tag$27.textContent = css$27;
|
|
23155
23162
|
var ProblemList_module_css_default = { "problems": "rp_LZh3Iq_problems" };
|
|
23156
23163
|
// src/client/widgets/problem-list/ProblemList.tsx
|
|
23157
23164
|
/** A collapsed list of what went wrong while reading files; renders nothing when nothing did. */
|
|
@@ -23167,22 +23174,22 @@ window.__ModuleLoader__.load({
|
|
|
23167
23174
|
});
|
|
23168
23175
|
}
|
|
23169
23176
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sessions/DeleteSessionDialog.module.css.mjs
|
|
23170
|
-
const css$
|
|
23171
|
-
const key$
|
|
23172
|
-
let tag$
|
|
23173
|
-
if (tag$
|
|
23174
|
-
tag$
|
|
23175
|
-
tag$
|
|
23176
|
-
tag$
|
|
23177
|
-
document.head.appendChild(tag$
|
|
23177
|
+
const css$26 = ".rp_FifHrW_body{flex-direction:column;gap:8px;min-width:min(380px,100%);display:flex}.rp_FifHrW_body p{margin:0}.rp_FifHrW_question{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;font-size:13px;line-height:20px}.rp_FifHrW_warning{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_FifHrW_choice{color:var(--dsw-alias-label-primary);border:0;flex-direction:column;gap:4px;margin:4px 0 0;padding:0;font-size:13px;line-height:20px;display:flex}.rp_FifHrW_choice legend{color:var(--dsw-alias-label-tertiary);margin-bottom:4px;padding:0;font-size:12px}.rp_FifHrW_error{color:var(--dsw-alias-state-error-primary);font-size:12px}";
|
|
23178
|
+
const key$26 = "src/client/pages/sessions/DeleteSessionDialog.module.css";
|
|
23179
|
+
let tag$26 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$26) + "]");
|
|
23180
|
+
if (tag$26 === null) {
|
|
23181
|
+
tag$26 = document.createElement("style");
|
|
23182
|
+
tag$26.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
23183
|
+
tag$26.dataset.pluginCss = key$26;
|
|
23184
|
+
document.head.appendChild(tag$26);
|
|
23178
23185
|
}
|
|
23179
|
-
tag$
|
|
23186
|
+
tag$26.textContent = css$26;
|
|
23180
23187
|
var DeleteSessionDialog_module_css_default = {
|
|
23181
|
-
"warning": "rp_FifHrW_warning",
|
|
23182
|
-
"body": "rp_FifHrW_body",
|
|
23183
23188
|
"choice": "rp_FifHrW_choice",
|
|
23184
|
-
"
|
|
23185
|
-
"
|
|
23189
|
+
"error": "rp_FifHrW_error",
|
|
23190
|
+
"body": "rp_FifHrW_body",
|
|
23191
|
+
"warning": "rp_FifHrW_warning",
|
|
23192
|
+
"question": "rp_FifHrW_question"
|
|
23186
23193
|
};
|
|
23187
23194
|
// src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
23188
23195
|
/** Asks for confirmation before a session and everything saved with it is removed. */
|
|
@@ -23695,39 +23702,39 @@ window.__ModuleLoader__.load({
|
|
|
23695
23702
|
return useFit(viewport, rowFit);
|
|
23696
23703
|
}
|
|
23697
23704
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sessions/SessionsPage.module.css.mjs
|
|
23698
|
-
const css$
|
|
23699
|
-
const key$
|
|
23700
|
-
let tag$
|
|
23701
|
-
if (tag$
|
|
23702
|
-
tag$
|
|
23703
|
-
tag$
|
|
23704
|
-
tag$
|
|
23705
|
-
document.head.appendChild(tag$
|
|
23705
|
+
const css$25 = ".rp_24z4eW_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_24z4eW_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_24z4eW_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_24z4eW_spinning{animation:.9s linear infinite rp_24z4eW_spin}@keyframes rp_24z4eW_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_24z4eW_spinning{animation:none}}.rp_24z4eW_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_24z4eW_viewport{--rp-row-height:40px;--rp-header-height:32px;flex:1 1 0;min-height:0;overflow-x:auto}.rp_24z4eW_scrolls{overflow-y:auto}.rp_24z4eW_fits{overflow-y:hidden}.rp_24z4eW_table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:720px}.rp_24z4eW_actionsColumn{width:104px}.rp_24z4eW_nameColumn{width:30%}.rp_24z4eW_worldColumn{width:26%}.rp_24z4eW_timeColumn{width:16%}.rp_24z4eW_turnsColumn{width:10%}.rp_24z4eW_table th{height:var(--rp-header-height);border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);text-align:left;color:var(--dsw-alias-label-tertiary);padding:0 12px;font-size:12px;font-weight:400;position:sticky;top:0}.rp_24z4eW_table td{height:var(--rp-row-height);border-bottom:.5px solid var(--dsw-alias-border-l1);text-overflow:ellipsis;white-space:nowrap;padding:0 12px;font-size:13px;overflow:hidden}.rp_24z4eW_name{color:var(--dsw-alias-label-primary);font-weight:500}.rp_24z4eW_secondary{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_24z4eW_table .rp_24z4eW_number{text-align:right}.rp_24z4eW_table .rp_24z4eW_actions{text-align:center;white-space:nowrap;padding:0 8px}.rp_24z4eW_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_24z4eW_archived td{opacity:.6}.rp_24z4eW_badge{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);margin-left:6px;padding:0 6px;font-size:12px}@media (width<=640px){.rp_24z4eW_viewport{--rp-row-height:196px;--rp-header-height:0px;overflow-x:hidden}.rp_24z4eW_table,.rp_24z4eW_table tbody,.rp_24z4eW_table tr,.rp_24z4eW_table td{width:100%;display:block}.rp_24z4eW_table{min-width:0}.rp_24z4eW_table colgroup,.rp_24z4eW_table thead{display:none}.rp_24z4eW_table tr{box-sizing:border-box;min-height:var(--rp-row-height);border-bottom:.5px solid var(--dsw-alias-border-l2);padding:10px 12px}.rp_24z4eW_table td{box-sizing:border-box;text-align:start;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;border:0;grid-template-columns:minmax(88px,34%) minmax(0,1fr);align-items:baseline;height:auto;min-height:24px;padding:2px 0;display:grid;overflow:visible}.rp_24z4eW_table td:before{content:attr(data-label);color:var(--dsw-alias-label-tertiary);padding-inline-end:10px;font-size:12px;font-weight:400}.rp_24z4eW_table .rp_24z4eW_number{text-align:start}.rp_24z4eW_table .rp_24z4eW_actions{justify-content:flex-end;min-height:36px;padding-top:4px;display:flex}.rp_24z4eW_table .rp_24z4eW_actions:before{margin-inline-end:auto}}";
|
|
23706
|
+
const key$25 = "src/client/pages/sessions/SessionsPage.module.css";
|
|
23707
|
+
let tag$25 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$25) + "]");
|
|
23708
|
+
if (tag$25 === null) {
|
|
23709
|
+
tag$25 = document.createElement("style");
|
|
23710
|
+
tag$25.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
23711
|
+
tag$25.dataset.pluginCss = key$25;
|
|
23712
|
+
document.head.appendChild(tag$25);
|
|
23706
23713
|
}
|
|
23707
|
-
tag$
|
|
23714
|
+
tag$25.textContent = css$25;
|
|
23708
23715
|
var SessionsPage_module_css_default = {
|
|
23709
|
-
"
|
|
23710
|
-
"
|
|
23711
|
-
"number": "rp_24z4eW_number",
|
|
23712
|
-
"count": "rp_24z4eW_count",
|
|
23713
|
-
"toolbar": "rp_24z4eW_toolbar",
|
|
23714
|
-
"worldColumn": "rp_24z4eW_worldColumn",
|
|
23716
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
23717
|
+
"table": "rp_24z4eW_table",
|
|
23715
23718
|
"name": "rp_24z4eW_name",
|
|
23716
23719
|
"message": "rp_24z4eW_message",
|
|
23717
|
-
"
|
|
23718
|
-
"
|
|
23719
|
-
"
|
|
23720
|
-
"timeColumn": "rp_24z4eW_timeColumn",
|
|
23721
|
-
"spinning": "rp_24z4eW_spinning",
|
|
23722
|
-
"spin": "rp_24z4eW_spin",
|
|
23720
|
+
"number": "rp_24z4eW_number",
|
|
23721
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
23722
|
+
"actions": "rp_24z4eW_actions",
|
|
23723
23723
|
"notice": "rp_24z4eW_notice",
|
|
23724
|
-
"table": "rp_24z4eW_table",
|
|
23725
23724
|
"fits": "rp_24z4eW_fits",
|
|
23725
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
23726
|
+
"count": "rp_24z4eW_count",
|
|
23727
|
+
"worldColumn": "rp_24z4eW_worldColumn",
|
|
23726
23728
|
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
23727
|
-
"
|
|
23728
|
-
"
|
|
23729
|
-
"
|
|
23730
|
-
"
|
|
23729
|
+
"nameColumn": "rp_24z4eW_nameColumn",
|
|
23730
|
+
"page": "rp_24z4eW_page",
|
|
23731
|
+
"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"
|
|
23731
23738
|
};
|
|
23732
23739
|
// src/client/pages/sessions/SessionsPage.tsx
|
|
23733
23740
|
/** The sessions as a table, one page at a time, the most recently played first. */
|
|
@@ -24455,40 +24462,40 @@ window.__ModuleLoader__.load({
|
|
|
24455
24462
|
}, SessionsPage));
|
|
24456
24463
|
}
|
|
24457
24464
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sync/SyncPage.module.css.mjs
|
|
24458
|
-
const css$
|
|
24459
|
-
const key$
|
|
24460
|
-
let tag$
|
|
24461
|
-
if (tag$
|
|
24462
|
-
tag$
|
|
24463
|
-
tag$
|
|
24464
|
-
tag$
|
|
24465
|
-
document.head.appendChild(tag$
|
|
24465
|
+
const css$24 = ".rp_Gk-byG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_Gk-byG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_Gk-byG_meta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_Gk-byG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_Gk-byG_viewport{flex:1 1 0;min-height:0;overflow:auto}.rp_Gk-byG_table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:720px;font-size:13px}.rp_Gk-byG_unitColumn{width:18%}.rp_Gk-byG_kindColumn{width:13%}.rp_Gk-byG_stateColumn{width:14%}.rp_Gk-byG_syncedColumn{width:16%}.rp_Gk-byG_detailsColumn{width:29%}.rp_Gk-byG_actionsColumn{width:10%}.rp_Gk-byG_caption{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.rp_Gk-byG_table th{text-align:left;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-layer-1);border-bottom:.5px solid var(--dsw-alias-border-l3);padding:6px 8px;font-size:12px;font-weight:400;position:sticky;top:0}.rp_Gk-byG_table .rp_Gk-byG_actionHeading{text-align:right}.rp_Gk-byG_table td{vertical-align:top;border-bottom:.5px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-primary);padding:6px 8px}.rp_Gk-byG_table td:last-child{text-align:right}.rp_Gk-byG_unit{font-family:var(--dsw-font-mono,monospace);word-break:break-all;font-size:12px}.rp_Gk-byG_conflict{color:var(--dsw-alias-state-warn-primary,var(--dsw-alias-state-error-primary))}.rp_Gk-byG_failed{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;display:block}.rp_Gk-byG_detail{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;margin:0;font-size:12px;display:flex}.rp_Gk-byG_detail>span:first-child{overflow-wrap:anywhere}.rp_Gk-byG_choices{flex-wrap:wrap;gap:4px;display:flex}.rp_Gk-byG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_Gk-byG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Gk-byG_problem{color:var(--dsw-alias-state-warn-primary,var(--dsw-alias-state-error-primary));margin:0;font-size:12px}.rp_Gk-byG_confirmation{max-width:60ch;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0}";
|
|
24466
|
+
const key$24 = "src/client/pages/sync/SyncPage.module.css";
|
|
24467
|
+
let tag$24 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$24) + "]");
|
|
24468
|
+
if (tag$24 === null) {
|
|
24469
|
+
tag$24 = document.createElement("style");
|
|
24470
|
+
tag$24.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
24471
|
+
tag$24.dataset.pluginCss = key$24;
|
|
24472
|
+
document.head.appendChild(tag$24);
|
|
24466
24473
|
}
|
|
24467
|
-
tag$
|
|
24474
|
+
tag$24.textContent = css$24;
|
|
24468
24475
|
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",
|
|
24469
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",
|
|
24470
24487
|
"message": "rp_Gk-byG_message",
|
|
24471
|
-
"
|
|
24488
|
+
"detail": "rp_Gk-byG_detail",
|
|
24489
|
+
"meta": "rp_Gk-byG_meta",
|
|
24472
24490
|
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
24473
24491
|
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
24474
|
-
"page": "rp_Gk-byG_page",
|
|
24475
|
-
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
24476
24492
|
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
24477
|
-
"
|
|
24478
|
-
"unit": "rp_Gk-byG_unit",
|
|
24479
|
-
"detail": "rp_Gk-byG_detail",
|
|
24480
|
-
"toolbar": "rp_Gk-byG_toolbar",
|
|
24493
|
+
"caption": "rp_Gk-byG_caption",
|
|
24481
24494
|
"error": "rp_Gk-byG_error",
|
|
24482
|
-
"viewport": "rp_Gk-byG_viewport",
|
|
24483
|
-
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
24484
|
-
"choices": "rp_Gk-byG_choices",
|
|
24485
|
-
"table": "rp_Gk-byG_table",
|
|
24486
24495
|
"confirmation": "rp_Gk-byG_confirmation",
|
|
24487
|
-
"
|
|
24488
|
-
"
|
|
24489
|
-
"
|
|
24490
|
-
"conflict": "rp_Gk-byG_conflict",
|
|
24491
|
-
"meta": "rp_Gk-byG_meta"
|
|
24496
|
+
"toolbar": "rp_Gk-byG_toolbar",
|
|
24497
|
+
"viewport": "rp_Gk-byG_viewport",
|
|
24498
|
+
"problem": "rp_Gk-byG_problem"
|
|
24492
24499
|
};
|
|
24493
24500
|
// src/client/pages/sync/SyncPage.tsx
|
|
24494
24501
|
const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
|
|
@@ -25302,25 +25309,25 @@ window.__ModuleLoader__.load({
|
|
|
25302
25309
|
}, SyncPage));
|
|
25303
25310
|
}
|
|
25304
25311
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Toast.module.css.mjs
|
|
25305
|
-
const css$
|
|
25306
|
-
const key$
|
|
25307
|
-
let tag$
|
|
25308
|
-
if (tag$
|
|
25309
|
-
tag$
|
|
25310
|
-
tag$
|
|
25311
|
-
tag$
|
|
25312
|
-
document.head.appendChild(tag$
|
|
25312
|
+
const css$23 = ".rp_jnVj9q_banner{z-index:1300;box-sizing:border-box;border-radius:var(--dsw-radius-panel,12px);background:var(--dsw-alias-bg-layer-3,#202020f5);max-width:min(560px,100vw - 32px);color:var(--dsw-alias-label-primary,white);box-shadow:var(--dsw-elevation-prominent,0 12px 32px #0000003d);animation:rp_jnVj9q_rpToastEnter var(--ds-transition-duration,.16s) var(--ds-ease-in-out,ease);align-items:center;gap:8px;padding:10px 14px;font-size:13px;line-height:20px;display:flex;position:fixed;top:16px;left:50%;transform:translate(-50%)}.rp_jnVj9q_fading{opacity:0;transition:opacity .2s var(--ds-ease-in-out,ease)}@keyframes rp_jnVj9q_rpToastEnter{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}@media (prefers-reduced-motion:reduce){.rp_jnVj9q_banner{animation:none}.rp_jnVj9q_fading{transition:none}}.rp_jnVj9q_text{overflow-wrap:anywhere}.rp_jnVj9q_success{color:var(--dsw-alias-accent-green,#3fb950);flex:none}.rp_jnVj9q_action{flex:none;gap:4px;display:inline-flex}.rp_jnVj9q_prefix{opacity:.7}.rp_jnVj9q_actionButton{color:var(--dsw-alias-brand-primary,#4c8dff);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.rp_jnVj9q_actionButton:hover{text-decoration:underline}";
|
|
25313
|
+
const key$23 = "src/client/ui/Toast.module.css";
|
|
25314
|
+
let tag$23 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$23) + "]");
|
|
25315
|
+
if (tag$23 === null) {
|
|
25316
|
+
tag$23 = document.createElement("style");
|
|
25317
|
+
tag$23.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
25318
|
+
tag$23.dataset.pluginCss = key$23;
|
|
25319
|
+
document.head.appendChild(tag$23);
|
|
25313
25320
|
}
|
|
25314
|
-
tag$
|
|
25321
|
+
tag$23.textContent = css$23;
|
|
25315
25322
|
var Toast_module_css_default = {
|
|
25316
|
-
"
|
|
25323
|
+
"actionButton": "rp_jnVj9q_actionButton",
|
|
25324
|
+
"success": "rp_jnVj9q_success",
|
|
25317
25325
|
"prefix": "rp_jnVj9q_prefix",
|
|
25326
|
+
"rpToastEnter": "rp_jnVj9q_rpToastEnter",
|
|
25327
|
+
"action": "rp_jnVj9q_action",
|
|
25318
25328
|
"banner": "rp_jnVj9q_banner",
|
|
25319
|
-
"success": "rp_jnVj9q_success",
|
|
25320
|
-
"text": "rp_jnVj9q_text",
|
|
25321
25329
|
"fading": "rp_jnVj9q_fading",
|
|
25322
|
-
"
|
|
25323
|
-
"actionButton": "rp_jnVj9q_actionButton"
|
|
25330
|
+
"text": "rp_jnVj9q_text"
|
|
25324
25331
|
};
|
|
25325
25332
|
// src/client/ui/Toast.tsx
|
|
25326
25333
|
const FADE_MS = 200;
|
|
@@ -25378,26 +25385,26 @@ window.__ModuleLoader__.load({
|
|
|
25378
25385
|
});
|
|
25379
25386
|
}
|
|
25380
25387
|
// \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
|
|
25381
|
-
const css$
|
|
25382
|
-
const key$
|
|
25383
|
-
let tag$
|
|
25384
|
-
if (tag$
|
|
25385
|
-
tag$
|
|
25386
|
-
tag$
|
|
25387
|
-
tag$
|
|
25388
|
-
document.head.appendChild(tag$
|
|
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}";
|
|
25389
|
+
const key$22 = "src/client/widgets/world-card/WorldCard.module.css";
|
|
25390
|
+
let tag$22 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$22) + "]");
|
|
25391
|
+
if (tag$22 === null) {
|
|
25392
|
+
tag$22 = document.createElement("style");
|
|
25393
|
+
tag$22.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
25394
|
+
tag$22.dataset.pluginCss = key$22;
|
|
25395
|
+
document.head.appendChild(tag$22);
|
|
25389
25396
|
}
|
|
25390
|
-
tag$
|
|
25397
|
+
tag$22.textContent = css$22;
|
|
25391
25398
|
var WorldCard_module_css_default = {
|
|
25392
25399
|
"play": "rp_Bvxx5q_play",
|
|
25393
|
-
"card": "rp_Bvxx5q_card",
|
|
25394
|
-
"tag": "rp_Bvxx5q_tag",
|
|
25395
25400
|
"name": "rp_Bvxx5q_name",
|
|
25401
|
+
"card": "rp_Bvxx5q_card",
|
|
25402
|
+
"image": "rp_Bvxx5q_image",
|
|
25403
|
+
"info": "rp_Bvxx5q_info",
|
|
25404
|
+
"cover": "rp_Bvxx5q_cover",
|
|
25396
25405
|
"tags": "rp_Bvxx5q_tags",
|
|
25406
|
+
"tag": "rp_Bvxx5q_tag",
|
|
25397
25407
|
"openButton": "rp_Bvxx5q_openButton",
|
|
25398
|
-
"cover": "rp_Bvxx5q_cover",
|
|
25399
|
-
"info": "rp_Bvxx5q_info",
|
|
25400
|
-
"image": "rp_Bvxx5q_image",
|
|
25401
25408
|
"placeholder": "rp_Bvxx5q_placeholder"
|
|
25402
25409
|
};
|
|
25403
25410
|
// src/client/widgets/world-card/WorldCard.tsx
|
|
@@ -25484,20 +25491,20 @@ window.__ModuleLoader__.load({
|
|
|
25484
25491
|
});
|
|
25485
25492
|
}
|
|
25486
25493
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/avatar-choices/AvatarChoices.module.css.mjs
|
|
25487
|
-
const css$
|
|
25488
|
-
const key$
|
|
25489
|
-
let tag$
|
|
25490
|
-
if (tag$
|
|
25491
|
-
tag$
|
|
25492
|
-
tag$
|
|
25493
|
-
tag$
|
|
25494
|
-
document.head.appendChild(tag$
|
|
25494
|
+
const css$21 = ".rp_YCstOG_option{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_YCstOG_option:has(input:checked){border-color:var(--dsw-alias-state-business-primary)}.rp_YCstOG_option input{accent-color:var(--dsw-alias-state-business-primary);margin:3px 0 0}.rp_YCstOG_text{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_YCstOG_name{font-size:13px;font-weight:500}.rp_YCstOG_summary{color:var(--dsw-alias-label-secondary);font-size:12px}";
|
|
25495
|
+
const key$21 = "src/client/widgets/avatar-choices/AvatarChoices.module.css";
|
|
25496
|
+
let tag$21 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$21) + "]");
|
|
25497
|
+
if (tag$21 === null) {
|
|
25498
|
+
tag$21 = document.createElement("style");
|
|
25499
|
+
tag$21.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
25500
|
+
tag$21.dataset.pluginCss = key$21;
|
|
25501
|
+
document.head.appendChild(tag$21);
|
|
25495
25502
|
}
|
|
25496
|
-
tag$
|
|
25503
|
+
tag$21.textContent = css$21;
|
|
25497
25504
|
var AvatarChoices_module_css_default = {
|
|
25498
25505
|
"option": "rp_YCstOG_option",
|
|
25499
|
-
"text": "rp_YCstOG_text",
|
|
25500
25506
|
"name": "rp_YCstOG_name",
|
|
25507
|
+
"text": "rp_YCstOG_text",
|
|
25501
25508
|
"summary": "rp_YCstOG_summary"
|
|
25502
25509
|
};
|
|
25503
25510
|
// src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
@@ -25525,29 +25532,29 @@ window.__ModuleLoader__.load({
|
|
|
25525
25532
|
}, avatar.key)) });
|
|
25526
25533
|
}
|
|
25527
25534
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/StartSessionDialog.module.css.mjs
|
|
25528
|
-
const css$
|
|
25529
|
-
const key$
|
|
25530
|
-
let tag$
|
|
25531
|
-
if (tag$
|
|
25532
|
-
tag$
|
|
25533
|
-
tag$
|
|
25534
|
-
tag$
|
|
25535
|
-
document.head.appendChild(tag$
|
|
25535
|
+
const css$20 = ".rp_AnbLKG_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_AnbLKG_field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.rp_AnbLKG_label{color:var(--dsw-alias-label-secondary);padding:0;font-size:12px}.rp_AnbLKG_option{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_AnbLKG_option:has(input:checked){border-color:var(--dsw-alias-state-business-primary)}.rp_AnbLKG_option input{accent-color:var(--dsw-alias-state-business-primary);margin:3px 0 0}.rp_AnbLKG_optionText{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_AnbLKG_optionName{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px}.rp_AnbLKG_optionSummary{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_AnbLKG_message{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_AnbLKG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_AnbLKG_advanced{flex-direction:column;gap:8px;display:flex}.rp_AnbLKG_advancedToggle{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:6px;padding:0;font-size:12px;display:inline-flex}.rp_AnbLKG_advancedToggle:hover{color:var(--dsw-alias-label-primary)}.rp_AnbLKG_advancedBody{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:12px;max-height:320px;padding:12px;display:flex;overflow-y:auto}@media (width<=520px){.rp_AnbLKG_form{min-width:0}}";
|
|
25536
|
+
const key$20 = "src/client/pages/worlds/StartSessionDialog.module.css";
|
|
25537
|
+
let tag$20 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$20) + "]");
|
|
25538
|
+
if (tag$20 === null) {
|
|
25539
|
+
tag$20 = document.createElement("style");
|
|
25540
|
+
tag$20.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
25541
|
+
tag$20.dataset.pluginCss = key$20;
|
|
25542
|
+
document.head.appendChild(tag$20);
|
|
25536
25543
|
}
|
|
25537
|
-
tag$
|
|
25544
|
+
tag$20.textContent = css$20;
|
|
25538
25545
|
var StartSessionDialog_module_css_default = {
|
|
25546
|
+
"optionText": "rp_AnbLKG_optionText",
|
|
25547
|
+
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
25539
25548
|
"label": "rp_AnbLKG_label",
|
|
25540
|
-
"
|
|
25549
|
+
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
25550
|
+
"message": "rp_AnbLKG_message",
|
|
25551
|
+
"advanced": "rp_AnbLKG_advanced",
|
|
25541
25552
|
"option": "rp_AnbLKG_option",
|
|
25542
|
-
"optionName": "rp_AnbLKG_optionName",
|
|
25543
25553
|
"field": "rp_AnbLKG_field",
|
|
25544
25554
|
"error": "rp_AnbLKG_error",
|
|
25545
|
-
"message": "rp_AnbLKG_message",
|
|
25546
|
-
"advanced": "rp_AnbLKG_advanced",
|
|
25547
25555
|
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
25548
|
-
"
|
|
25549
|
-
"
|
|
25550
|
-
"optionText": "rp_AnbLKG_optionText"
|
|
25556
|
+
"optionName": "rp_AnbLKG_optionName",
|
|
25557
|
+
"form": "rp_AnbLKG_form"
|
|
25551
25558
|
};
|
|
25552
25559
|
// src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
25553
25560
|
/** Asks which avatars become characters of a world's own files. */
|
|
@@ -26867,13 +26874,8 @@ window.__ModuleLoader__.load({
|
|
|
26867
26874
|
}
|
|
26868
26875
|
return next;
|
|
26869
26876
|
}
|
|
26870
|
-
|
|
26871
|
-
|
|
26872
|
-
* The browser API of the main plugin, which the UI of the main plugin and of every vendor plugin
|
|
26873
|
-
* uses. Paths are relative to the prefix, and the browser calls them with relative URLs so that a
|
|
26874
|
-
* mounted deployment works.
|
|
26875
|
-
*/
|
|
26876
|
-
const AI_API_PREFIX = "ai-api";
|
|
26877
|
+
/** What the browser prepends to a route: absolute, so a mounted deployment resolves it against the origin. */
|
|
26878
|
+
const AI_API_PREFIX = `/api/ai-api`;
|
|
26877
26879
|
const AI_API_ROUTES = {
|
|
26878
26880
|
capabilities: "/capabilities",
|
|
26879
26881
|
credentials: "/credentials",
|
|
@@ -26916,20 +26918,20 @@ window.__ModuleLoader__.load({
|
|
|
26916
26918
|
return options;
|
|
26917
26919
|
}
|
|
26918
26920
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/SegmentedControl.module.css.mjs
|
|
26919
|
-
const css$
|
|
26920
|
-
const key$
|
|
26921
|
-
let tag$
|
|
26922
|
-
if (tag$
|
|
26923
|
-
tag$
|
|
26924
|
-
tag$
|
|
26925
|
-
tag$
|
|
26926
|
-
document.head.appendChild(tag$
|
|
26921
|
+
const css$19 = ".rp_wN4Tqa_rpControl{box-sizing:border-box;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover);grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:2px;width:100%;max-width:100%;padding:4px;display:grid;position:relative}.rp_wN4Tqa_rpIndicator{width:calc((100% - 8px - 2px * (var(--rp-segment-count) - 1)) / var(--rp-segment-count));border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-1);height:calc(100% - 8px);box-shadow:var(--dsw-elevation-soft);transform:translateX(calc(var(--rp-segment-index) * (100% + 2px)));pointer-events:none;border:0;transition:transform .16s;position:absolute;top:4px;left:4px}.rp_wN4Tqa_rpTab{box-sizing:border-box;z-index:1;border-radius:var(--dsw-radius-sm);min-width:0;min-height:28px;color:var(--dsw-alias-label-secondary);font:inherit;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer;background:0 0;border:0;padding:4px 8px;font-size:13px;font-weight:500;line-height:18px;transition:color .12s;position:relative}.rp_wN4Tqa_rpTab[aria-selected=true]{color:var(--dsw-alias-label-primary)}@media (hover:hover){.rp_wN4Tqa_rpTab:hover:not(:disabled){color:var(--dsw-alias-label-primary)}}.rp_wN4Tqa_rpTab:disabled{cursor:default;opacity:.4}.rp_wN4Tqa_rpTab:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}@media (prefers-reduced-motion:reduce){.rp_wN4Tqa_rpIndicator,.rp_wN4Tqa_rpTab{transition:none}}";
|
|
26922
|
+
const key$19 = "src/client/ui/SegmentedControl.module.css";
|
|
26923
|
+
let tag$19 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$19) + "]");
|
|
26924
|
+
if (tag$19 === null) {
|
|
26925
|
+
tag$19 = document.createElement("style");
|
|
26926
|
+
tag$19.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
26927
|
+
tag$19.dataset.pluginCss = key$19;
|
|
26928
|
+
document.head.appendChild(tag$19);
|
|
26927
26929
|
}
|
|
26928
|
-
tag$
|
|
26930
|
+
tag$19.textContent = css$19;
|
|
26929
26931
|
var SegmentedControl_module_css_default = {
|
|
26930
26932
|
"rpIndicator": "rp_wN4Tqa_rpIndicator",
|
|
26931
|
-
"
|
|
26932
|
-
"
|
|
26933
|
+
"rpControl": "rp_wN4Tqa_rpControl",
|
|
26934
|
+
"rpTab": "rp_wN4Tqa_rpTab"
|
|
26933
26935
|
};
|
|
26934
26936
|
// src/client/ui/walk.ts
|
|
26935
26937
|
/** Whether a key moves the selection inside a tablist. */
|
|
@@ -27011,25 +27013,26 @@ window.__ModuleLoader__.load({
|
|
|
27011
27013
|
});
|
|
27012
27014
|
}
|
|
27013
27015
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/settings-form/SettingsFields.module.css.mjs
|
|
27014
|
-
const css$
|
|
27015
|
-
const key$
|
|
27016
|
-
let tag$
|
|
27017
|
-
if (tag$
|
|
27018
|
-
tag$
|
|
27019
|
-
tag$
|
|
27020
|
-
tag$
|
|
27021
|
-
document.head.appendChild(tag$
|
|
27016
|
+
const css$18 = ".rp_Rhi3yq_row{flex-direction:column;gap:6px;display:flex}.rp_Rhi3yq_field{flex-direction:column;gap:6px;width:min(100%,320px);display:flex}.rp_Rhi3yq_choiceField{width:min(100%,480px)}.rp_Rhi3yq_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Rhi3yq_help{max-width:560px;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_Rhi3yq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Rhi3yq_group{border-top:.5px solid var(--dsw-alias-border-l3);flex-direction:column;gap:12px;padding-top:12px;display:flex}.rp_Rhi3yq_groupTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_Rhi3yq_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%;max-width:560px;min-height:96px;color:inherit;font:inherit;resize:vertical;padding:6px 8px;font-size:13px}.rp_Rhi3yq_area:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}";
|
|
27017
|
+
const key$18 = "src/client/settings-form/SettingsFields.module.css";
|
|
27018
|
+
let tag$18 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$18) + "]");
|
|
27019
|
+
if (tag$18 === null) {
|
|
27020
|
+
tag$18 = document.createElement("style");
|
|
27021
|
+
tag$18.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
27022
|
+
tag$18.dataset.pluginCss = key$18;
|
|
27023
|
+
document.head.appendChild(tag$18);
|
|
27022
27024
|
}
|
|
27023
|
-
tag$
|
|
27025
|
+
tag$18.textContent = css$18;
|
|
27024
27026
|
var SettingsFields_module_css_default = {
|
|
27025
|
-
"group": "rp_Rhi3yq_group",
|
|
27026
|
-
"field": "rp_Rhi3yq_field",
|
|
27027
|
-
"row": "rp_Rhi3yq_row",
|
|
27028
27027
|
"area": "rp_Rhi3yq_area",
|
|
27028
|
+
"choiceField": "rp_Rhi3yq_choiceField",
|
|
27029
27029
|
"label": "rp_Rhi3yq_label",
|
|
27030
27030
|
"help": "rp_Rhi3yq_help",
|
|
27031
|
+
"error": "rp_Rhi3yq_error",
|
|
27032
|
+
"group": "rp_Rhi3yq_group",
|
|
27033
|
+
"field": "rp_Rhi3yq_field",
|
|
27031
27034
|
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
27032
|
-
"
|
|
27035
|
+
"row": "rp_Rhi3yq_row"
|
|
27033
27036
|
};
|
|
27034
27037
|
// src/client/settings-form/SettingsFields.tsx
|
|
27035
27038
|
/** The settings of a chat as editable fields: one control with its explanation under each. */
|
|
@@ -27069,7 +27072,7 @@ window.__ModuleLoader__.load({
|
|
|
27069
27072
|
className: SettingsFields_module_css_default.row,
|
|
27070
27073
|
children: [
|
|
27071
27074
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
27072
|
-
className: SettingsFields_module_css_default.field,
|
|
27075
|
+
className: field.kind === "choice" ? `${SettingsFields_module_css_default.field} ${SettingsFields_module_css_default.choiceField}` : SettingsFields_module_css_default.field,
|
|
27073
27076
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27074
27077
|
className: SettingsFields_module_css_default.label,
|
|
27075
27078
|
children: t(field.label)
|
|
@@ -27324,16 +27327,16 @@ window.__ModuleLoader__.load({
|
|
|
27324
27327
|
/** The language of the interface or of a setting, as one of the two the plugin writes in. */
|
|
27325
27328
|
const storyLanguageOf = (code) => code.trim().toLowerCase().startsWith("zh") ? "zh" : "en";
|
|
27326
27329
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/TranslateBanner.module.css.mjs
|
|
27327
|
-
const css$
|
|
27328
|
-
const key$
|
|
27329
|
-
let tag$
|
|
27330
|
-
if (tag$
|
|
27331
|
-
tag$
|
|
27332
|
-
tag$
|
|
27333
|
-
tag$
|
|
27334
|
-
document.head.appendChild(tag$
|
|
27330
|
+
const css$17 = ".rp_Lx8vJa_banner{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 8px;padding:8px 12px;font-size:12px;line-height:18px;display:flex}.rp_Lx8vJa_text{flex:360px;min-width:0}.rp_Lx8vJa_text ul{margin:4px 0 0;padding-left:20px}.rp_Lx8vJa_bannerActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;gap:8px;display:flex}.rp_Lx8vJa_error{color:var(--dsw-alias-state-error-primary);margin:0 0 8px;font-size:12px}";
|
|
27331
|
+
const key$17 = "src/client/pages/worlds/TranslateBanner.module.css";
|
|
27332
|
+
let tag$17 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$17) + "]");
|
|
27333
|
+
if (tag$17 === null) {
|
|
27334
|
+
tag$17 = document.createElement("style");
|
|
27335
|
+
tag$17.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
27336
|
+
tag$17.dataset.pluginCss = key$17;
|
|
27337
|
+
document.head.appendChild(tag$17);
|
|
27335
27338
|
}
|
|
27336
|
-
tag$
|
|
27339
|
+
tag$17.textContent = css$17;
|
|
27337
27340
|
var TranslateBanner_module_css_default = {
|
|
27338
27341
|
"banner": "rp_Lx8vJa_banner",
|
|
27339
27342
|
"bannerActions": "rp_Lx8vJa_bannerActions",
|
|
@@ -27351,27 +27354,28 @@ window.__ModuleLoader__.load({
|
|
|
27351
27354
|
return language;
|
|
27352
27355
|
}
|
|
27353
27356
|
}
|
|
27354
|
-
/** The language a world is written in, read from the host; nothing while it is being read or when it cannot be told. */
|
|
27355
|
-
function useWorldLanguage(worldId) {
|
|
27356
|
-
return useWorldLanguages(worldId).written;
|
|
27357
|
-
}
|
|
27358
27357
|
/** Both languages of a world: the one its words are in, and the one its file declares for its stories. */
|
|
27359
|
-
function useWorldLanguages(worldId) {
|
|
27358
|
+
function useWorldLanguages(worldId, reload = 0) {
|
|
27360
27359
|
const [languages, setLanguages] = (0, react.useState)({});
|
|
27360
|
+
const previous = (0, react.useRef)(worldId);
|
|
27361
27361
|
(0, react.useEffect)(() => {
|
|
27362
|
+
if (worldId !== previous.current) {
|
|
27363
|
+
previous.current = worldId;
|
|
27364
|
+
setLanguages({});
|
|
27365
|
+
}
|
|
27366
|
+
if (worldId === "") return;
|
|
27362
27367
|
const abort = new AbortController();
|
|
27363
|
-
setLanguages({});
|
|
27364
27368
|
worldLanguages(worldId, abort.signal).then(setLanguages, () => void 0);
|
|
27365
27369
|
return () => {
|
|
27366
27370
|
abort.abort();
|
|
27367
27371
|
};
|
|
27368
|
-
}, [worldId]);
|
|
27369
|
-
return languages;
|
|
27372
|
+
}, [worldId, reload]);
|
|
27373
|
+
return previous.current === worldId ? languages : {};
|
|
27370
27374
|
}
|
|
27371
27375
|
/** Says that a world is written in another language than the person's, and offers to translate it into a copy. */
|
|
27372
|
-
function TranslateBanner({ t, worldId, worldName, openChat }) {
|
|
27376
|
+
function TranslateBanner({ t, worldId, worldName, openChat, reload = 0 }) {
|
|
27373
27377
|
const own = storyLanguageOf(t("language"));
|
|
27374
|
-
const written =
|
|
27378
|
+
const { written, declared } = useWorldLanguages(worldId, reload);
|
|
27375
27379
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
27376
27380
|
const [failure, setFailure] = (0, react.useState)();
|
|
27377
27381
|
if (written === void 0 || written === own) return null;
|
|
@@ -27393,7 +27397,11 @@ window.__ModuleLoader__.load({
|
|
|
27393
27397
|
"data-testid": "roleplay-translate-banner",
|
|
27394
27398
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27395
27399
|
className: TranslateBanner_module_css_default.text,
|
|
27396
|
-
children: t("
|
|
27400
|
+
children: declared !== void 0 && declared !== "" && declared.trim().toLowerCase().split(/[-_]/)[0] !== own ? t("translateDeclared", {
|
|
27401
|
+
from: languageName(t, written),
|
|
27402
|
+
declared: languageName(t, declared),
|
|
27403
|
+
to: languageName(t, own)
|
|
27404
|
+
}) : t("translateWarning", {
|
|
27397
27405
|
from: languageName(t, written),
|
|
27398
27406
|
to: languageName(t, own)
|
|
27399
27407
|
})
|
|
@@ -27962,37 +27970,37 @@ window.__ModuleLoader__.load({
|
|
|
27962
27970
|
}));
|
|
27963
27971
|
}
|
|
27964
27972
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/WorldsPage.module.css.mjs
|
|
27965
|
-
const css$
|
|
27966
|
-
const key$
|
|
27967
|
-
let tag$
|
|
27968
|
-
if (tag$
|
|
27969
|
-
tag$
|
|
27970
|
-
tag$
|
|
27971
|
-
tag$
|
|
27972
|
-
document.head.appendChild(tag$
|
|
27973
|
+
const css$16 = ".rp_FHUyRq_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_FHUyRq_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_FHUyRq_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_FHUyRq_toolbarActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.rp_FHUyRq_spinning{animation:.9s linear infinite rp_FHUyRq_spin}@keyframes rp_FHUyRq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_FHUyRq_spinning{animation:none}}.rp_FHUyRq_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_FHUyRq_info{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_FHUyRq_viewport{--rp-card-width:168px;--rp-card-height:288px;--rp-card-gap:16px;flex:1 1 0;min-height:0;padding:4px}.rp_FHUyRq_scrolls{overflow-y:auto}.rp_FHUyRq_fits{overflow:hidden}.rp_FHUyRq_grid{grid-auto-rows:var(--rp-card-height);grid-template-columns:repeat(auto-fill, var(--rp-card-width));gap:var(--rp-card-gap);margin:0;padding:0;list-style:none;display:grid}.rp_FHUyRq_cell{min-width:0;display:flex}.rp_FHUyRq_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_FHUyRq_editHeader{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_FHUyRq_editTitle{min-width:0;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;flex:180px;font-size:14px;font-weight:500;overflow:hidden}.rp_FHUyRq_editActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;gap:8px;display:flex}.rp_FHUyRq_editBody{flex:1 1 0;min-height:0;display:flex}.rp_FHUyRq_starters{flex-direction:column;align-items:center;gap:8px;padding-bottom:24px;display:flex}.rp_FHUyRq_starter{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);text-align:center;max-width:480px;color:var(--dsw-alias-label-secondary);flex-direction:column;align-items:center;gap:6px;padding:12px 16px;font-size:13px;display:flex}@media (width<=640px){.rp_FHUyRq_toolbar{align-items:flex-start}.rp_FHUyRq_count{padding-top:6px}.rp_FHUyRq_toolbarActions{max-width:75%}.rp_FHUyRq_editTitle{text-overflow:ellipsis;white-space:nowrap;flex:calc(100% - 96px);overflow:hidden}.rp_FHUyRq_editActions{flex:0 0 100%;justify-content:flex-start}}";
|
|
27974
|
+
const key$16 = "src/client/pages/worlds/WorldsPage.module.css";
|
|
27975
|
+
let tag$16 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$16) + "]");
|
|
27976
|
+
if (tag$16 === null) {
|
|
27977
|
+
tag$16 = document.createElement("style");
|
|
27978
|
+
tag$16.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
27979
|
+
tag$16.dataset.pluginCss = key$16;
|
|
27980
|
+
document.head.appendChild(tag$16);
|
|
27973
27981
|
}
|
|
27974
|
-
tag$
|
|
27982
|
+
tag$16.textContent = css$16;
|
|
27975
27983
|
var WorldsPage_module_css_default = {
|
|
27976
|
-
"
|
|
27984
|
+
"notice": "rp_FHUyRq_notice",
|
|
27985
|
+
"spin": "rp_FHUyRq_spin",
|
|
27977
27986
|
"editActions": "rp_FHUyRq_editActions",
|
|
27978
|
-
"starter": "rp_FHUyRq_starter",
|
|
27979
|
-
"toolbar": "rp_FHUyRq_toolbar",
|
|
27980
27987
|
"editBody": "rp_FHUyRq_editBody",
|
|
27981
|
-
"grid": "rp_FHUyRq_grid",
|
|
27982
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
27983
|
-
"fits": "rp_FHUyRq_fits",
|
|
27984
|
-
"message": "rp_FHUyRq_message",
|
|
27985
27988
|
"editHeader": "rp_FHUyRq_editHeader",
|
|
27986
|
-
"
|
|
27989
|
+
"starter": "rp_FHUyRq_starter",
|
|
27990
|
+
"message": "rp_FHUyRq_message",
|
|
27987
27991
|
"count": "rp_FHUyRq_count",
|
|
27988
|
-
"
|
|
27989
|
-
"cell": "rp_FHUyRq_cell",
|
|
27992
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
27990
27993
|
"page": "rp_FHUyRq_page",
|
|
27991
|
-
"
|
|
27992
|
-
"
|
|
27994
|
+
"info": "rp_FHUyRq_info",
|
|
27995
|
+
"toolbar": "rp_FHUyRq_toolbar",
|
|
27993
27996
|
"starters": "rp_FHUyRq_starters",
|
|
27994
|
-
"
|
|
27995
|
-
"
|
|
27997
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
27998
|
+
"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"
|
|
27996
28004
|
};
|
|
27997
28005
|
// src/client/pages/worlds/StarterWorlds.tsx
|
|
27998
28006
|
/** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
|
|
@@ -28579,8 +28587,11 @@ window.__ModuleLoader__.load({
|
|
|
28579
28587
|
const viewport = (0, react.useRef)(null);
|
|
28580
28588
|
const { pageSize, scrolls } = pagingFor(useGridFit(viewport));
|
|
28581
28589
|
const [requestedStart, setRequestedStart] = (0, react.useState)(0);
|
|
28582
|
-
const [
|
|
28590
|
+
const [chosenAssistant, setChosenAssistant] = (0, react.useState)();
|
|
28591
|
+
const [languageVersion, setLanguageVersion] = (0, react.useState)(0);
|
|
28583
28592
|
const [editing, setEditing] = (0, react.useState)();
|
|
28593
|
+
const worldLanguages = useWorldLanguages(editing?.id ?? "", languageVersion);
|
|
28594
|
+
const assistantLanguage = chosenAssistant?.worldId === editing?.id && chosenAssistant !== void 0 ? chosenAssistant.language : primaryLanguage(worldLanguages.declared ?? t("language"));
|
|
28584
28595
|
const [creating, setCreating] = (0, react.useState)(false);
|
|
28585
28596
|
const [addingAvatars, setAddingAvatars] = (0, react.useState)(false);
|
|
28586
28597
|
const [editorVersion, setEditorVersion] = (0, react.useState)(0);
|
|
@@ -28795,7 +28806,12 @@ window.__ModuleLoader__.load({
|
|
|
28795
28806
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
28796
28807
|
compact: true,
|
|
28797
28808
|
value: assistantLanguage,
|
|
28798
|
-
onChange:
|
|
28809
|
+
onChange: (language) => {
|
|
28810
|
+
if (editing !== void 0) setChosenAssistant({
|
|
28811
|
+
worldId: editing.id,
|
|
28812
|
+
language
|
|
28813
|
+
});
|
|
28814
|
+
},
|
|
28799
28815
|
interfaceLanguage: t("language"),
|
|
28800
28816
|
label: t("assistantLanguage"),
|
|
28801
28817
|
title: t("assistantLanguageHelp"),
|
|
@@ -28861,7 +28877,8 @@ window.__ModuleLoader__.load({
|
|
|
28861
28877
|
t,
|
|
28862
28878
|
worldId: editing.id,
|
|
28863
28879
|
worldName: editing.name,
|
|
28864
|
-
openChat
|
|
28880
|
+
openChat,
|
|
28881
|
+
reload: languageVersion
|
|
28865
28882
|
}),
|
|
28866
28883
|
reverting && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RevertUpdateDialog, {
|
|
28867
28884
|
t,
|
|
@@ -28901,7 +28918,10 @@ window.__ModuleLoader__.load({
|
|
|
28901
28918
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorldEditor, {
|
|
28902
28919
|
t,
|
|
28903
28920
|
source,
|
|
28904
|
-
notEditable: t("worldMissing")
|
|
28921
|
+
notEditable: t("worldMissing"),
|
|
28922
|
+
onInfoSaved: () => {
|
|
28923
|
+
setLanguageVersion((version) => version + 1);
|
|
28924
|
+
}
|
|
28905
28925
|
}, editorVersion)
|
|
28906
28926
|
})
|
|
28907
28927
|
]
|
|
@@ -31226,6 +31246,7 @@ window.__ModuleLoader__.load({
|
|
|
31226
31246
|
authorWorldFailed: "Could not open the authoring chat: {message}",
|
|
31227
31247
|
authoringChatTitle: "Authoring {name}",
|
|
31228
31248
|
translateWarning: "This world is written in {from}, but you use {to}. Names, descriptions and the characters' speech may mix the two languages.",
|
|
31249
|
+
translateDeclared: "This world is written in {from} and is set to start stories in {declared}, whatever your interface language ({to}) is. You can still translate it into {to} if you want the world in your own language.",
|
|
31229
31250
|
translateAction: "Translate into {to}",
|
|
31230
31251
|
translateOpening: "Opening…",
|
|
31231
31252
|
translateChatTitle: "Translating {name}",
|
|
@@ -31375,6 +31396,7 @@ window.__ModuleLoader__.load({
|
|
|
31375
31396
|
authorWorldFailed: "无法打开世界编辑对话:{message}",
|
|
31376
31397
|
authoringChatTitle: "编辑{name}",
|
|
31377
31398
|
translateWarning: "这个世界是用{from}写的,而你使用的是{to}。名字、描述和角色的说话可能会两种语言混在一起。",
|
|
31399
|
+
translateDeclared: "这个世界是用{from}写的,并设为用{declared}开始故事,与你的界面语言({to})无关。如果希望世界使用你自己的语言,仍然可以把它翻译成{to}。",
|
|
31378
31400
|
translateAction: "翻译成{to}",
|
|
31379
31401
|
translateOpening: "正在打开…",
|
|
31380
31402
|
translateChatTitle: "翻译{name}",
|
|
@@ -31524,6 +31546,7 @@ window.__ModuleLoader__.load({
|
|
|
31524
31546
|
authorWorldFailed: "作成チャットを開けませんでした:{message}",
|
|
31525
31547
|
authoringChatTitle: "{name} を作成",
|
|
31526
31548
|
translateWarning: "このワールドは {from} で書かれていますが、使用言語は {to} です。名前、説明、キャラクターの台詞に両方の言語が混ざることがあります。",
|
|
31549
|
+
translateDeclared: "このワールドは{from}で書かれており、インターフェース言語({to})に関係なく{declared}でストーリーを始める設定です。自分の言語にしたい場合は、{to}に翻訳することもできます。",
|
|
31527
31550
|
translateAction: "{to} へ翻訳",
|
|
31528
31551
|
translateOpening: "開いています…",
|
|
31529
31552
|
translateChatTitle: "{name} を翻訳",
|
|
@@ -31673,6 +31696,7 @@ window.__ModuleLoader__.load({
|
|
|
31673
31696
|
authorWorldFailed: "No se ha podido abrir el chat de creación: {message}",
|
|
31674
31697
|
authoringChatTitle: "Creación de {name}",
|
|
31675
31698
|
translateWarning: "Este mundo está escrito en {from}, pero usas {to}. Los nombres, descripciones y diálogos pueden mezclar ambos idiomas.",
|
|
31699
|
+
translateDeclared: "Este mundo está escrito en {from} y está configurado para iniciar historias en {declared}, sea cual sea el idioma de tu interfaz ({to}). Aun así, puedes traducirlo a {to} si quieres el mundo en tu idioma.",
|
|
31676
31700
|
translateAction: "Traducir a {to}",
|
|
31677
31701
|
translateOpening: "Abriendo…",
|
|
31678
31702
|
translateChatTitle: "Traducción de {name}",
|
|
@@ -31822,6 +31846,7 @@ window.__ModuleLoader__.load({
|
|
|
31822
31846
|
authorWorldFailed: "Impossible d’ouvrir la discussion de création : {message}",
|
|
31823
31847
|
authoringChatTitle: "Création de {name}",
|
|
31824
31848
|
translateWarning: "Ce monde est écrit en {from}, mais vous utilisez {to}. Les noms, descriptions et dialogues peuvent mélanger les deux langues.",
|
|
31849
|
+
translateDeclared: "Ce monde est écrit en {from} et configuré pour démarrer les histoires en {declared}, quelle que soit la langue de votre interface ({to}). Vous pouvez tout de même le traduire en {to} si vous voulez le monde dans votre langue.",
|
|
31825
31850
|
translateAction: "Traduire en {to}",
|
|
31826
31851
|
translateOpening: "Ouverture…",
|
|
31827
31852
|
translateChatTitle: "Traduction de {name}",
|
|
@@ -31971,6 +31996,7 @@ window.__ModuleLoader__.load({
|
|
|
31971
31996
|
authorWorldFailed: "Der Autorenchat konnte nicht geöffnet werden: {message}",
|
|
31972
31997
|
authoringChatTitle: "{name} verfassen",
|
|
31973
31998
|
translateWarning: "Diese Welt ist auf {from} geschrieben, du verwendest aber {to}. Namen, Beschreibungen und Dialoge können beide Sprachen mischen.",
|
|
31999
|
+
translateDeclared: "Diese Welt ist auf {from} geschrieben und startet Geschichten auf {declared}, unabhängig von deiner Oberflächensprache ({to}). Du kannst sie trotzdem ins {to} übersetzen, wenn du die Welt in deiner Sprache haben möchtest.",
|
|
31974
32000
|
translateAction: "Ins {to} übersetzen",
|
|
31975
32001
|
translateOpening: "Wird geöffnet…",
|
|
31976
32002
|
translateChatTitle: "{name} übersetzen",
|
|
@@ -32120,6 +32146,7 @@ window.__ModuleLoader__.load({
|
|
|
32120
32146
|
authorWorldFailed: "Не удалось открыть авторский чат: {message}",
|
|
32121
32147
|
authoringChatTitle: "Создание {name}",
|
|
32122
32148
|
translateWarning: "Этот мир написан на {from}, а вы используете {to}. Названия, описания и речь персонажей могут смешивать языки.",
|
|
32149
|
+
translateDeclared: "Этот мир написан на языке «{from}» и настроен начинать истории на языке «{declared}» независимо от языка вашего интерфейса ({to}). При желании его всё равно можно перевести на «{to}».",
|
|
32123
32150
|
translateAction: "Перевести на {to}",
|
|
32124
32151
|
translateOpening: "Открытие…",
|
|
32125
32152
|
translateChatTitle: "Перевод {name}",
|
|
@@ -32269,6 +32296,7 @@ window.__ModuleLoader__.load({
|
|
|
32269
32296
|
authorWorldFailed: "Não foi possível abrir a conversa de criação: {message}",
|
|
32270
32297
|
authoringChatTitle: "Criação de {name}",
|
|
32271
32298
|
translateWarning: "Este mundo está escrito em {from}, mas utiliza {to}. Os nomes, as descrições e as falas podem misturar as duas línguas.",
|
|
32299
|
+
translateDeclared: "Este mundo está escrito em {from} e está definido para iniciar histórias em {declared}, seja qual for o idioma da sua interface ({to}). Ainda pode traduzi-lo para {to} se quiser o mundo no seu idioma.",
|
|
32272
32300
|
translateAction: "Traduzir para {to}",
|
|
32273
32301
|
translateOpening: "A abrir…",
|
|
32274
32302
|
translateChatTitle: "Tradução de {name}",
|
|
@@ -32606,7 +32634,20 @@ window.__ModuleLoader__.load({
|
|
|
32606
32634
|
look();
|
|
32607
32635
|
return list.subscribe(look);
|
|
32608
32636
|
}
|
|
32637
|
+
/** Follows the branches the transcript's Branch control makes: DSH's fork no longer says which chat it came from, so the control says so. */
|
|
32638
|
+
listen() {
|
|
32639
|
+
const heard = (event) => {
|
|
32640
|
+
const chat = event.detail?.chat;
|
|
32641
|
+
if (typeof chat === "string" && roleplaySessionOf(chat) !== void 0) this.ask(chat);
|
|
32642
|
+
};
|
|
32643
|
+
const page = globalThis.window;
|
|
32644
|
+
page?.addEventListener("roleplay:branched", heard);
|
|
32645
|
+
return () => {
|
|
32646
|
+
page?.removeEventListener("roleplay:branched", heard);
|
|
32647
|
+
};
|
|
32648
|
+
}
|
|
32609
32649
|
async ask(chat) {
|
|
32650
|
+
if (this.store.getSnapshot().pending !== void 0) return;
|
|
32610
32651
|
const response = await fetch(`${API_PREFIX}/sessions`);
|
|
32611
32652
|
if (!response.ok) return;
|
|
32612
32653
|
const session = (await response.json()).sessions.find((candidate) => candidate.chatSessionId === chat);
|
|
@@ -32646,21 +32687,21 @@ window.__ModuleLoader__.load({
|
|
|
32646
32687
|
}
|
|
32647
32688
|
};
|
|
32648
32689
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/branch/BranchDialog.module.css.mjs
|
|
32649
|
-
const css$
|
|
32650
|
-
const key$
|
|
32651
|
-
let tag$
|
|
32652
|
-
if (tag$
|
|
32653
|
-
tag$
|
|
32654
|
-
tag$
|
|
32655
|
-
tag$
|
|
32656
|
-
document.head.appendChild(tag$
|
|
32690
|
+
const css$15 = ".rp_Dy1TaW_form{flex-direction:column;gap:12px;min-width:min(420px,100%);display:flex}.rp_Dy1TaW_field{flex-direction:column;gap:6px;min-width:0;display:flex}.rp_Dy1TaW_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Dy1TaW_error{color:var(--dsw-alias-state-danger-primary);margin:0;font-size:12px}";
|
|
32691
|
+
const key$15 = "src/client/branch/BranchDialog.module.css";
|
|
32692
|
+
let tag$15 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$15) + "]");
|
|
32693
|
+
if (tag$15 === null) {
|
|
32694
|
+
tag$15 = document.createElement("style");
|
|
32695
|
+
tag$15.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
32696
|
+
tag$15.dataset.pluginCss = key$15;
|
|
32697
|
+
document.head.appendChild(tag$15);
|
|
32657
32698
|
}
|
|
32658
|
-
tag$
|
|
32699
|
+
tag$15.textContent = css$15;
|
|
32659
32700
|
var BranchDialog_module_css_default = {
|
|
32660
|
-
"error": "rp_Dy1TaW_error",
|
|
32661
32701
|
"form": "rp_Dy1TaW_form",
|
|
32702
|
+
"field": "rp_Dy1TaW_field",
|
|
32662
32703
|
"label": "rp_Dy1TaW_label",
|
|
32663
|
-
"
|
|
32704
|
+
"error": "rp_Dy1TaW_error"
|
|
32664
32705
|
};
|
|
32665
32706
|
// src/client/branch/BranchDialog.tsx
|
|
32666
32707
|
/** Asks for the name of a session that was just branched off another. */
|
|
@@ -32815,6 +32856,7 @@ window.__ModuleLoader__.load({
|
|
|
32815
32856
|
function registerBranchNaming(ctx) {
|
|
32816
32857
|
ctx.effect(() => ctx.locale.register(NAMESPACE$8, dictionaries$7), "roleplay: branch dictionaries");
|
|
32817
32858
|
const branches = new BranchController();
|
|
32859
|
+
ctx.effect(() => branches.listen(), "roleplay: branch listener");
|
|
32818
32860
|
ctx.inject(["sessions"], (inner) => {
|
|
32819
32861
|
const sessions = inner.get("sessions");
|
|
32820
32862
|
if (sessions !== void 0) inner.effect(() => branches.watch(sessions.list), "roleplay: branch watch");
|
|
@@ -32827,23 +32869,23 @@ window.__ModuleLoader__.load({
|
|
|
32827
32869
|
}, BranchDialog));
|
|
32828
32870
|
}
|
|
32829
32871
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/sidebar-guide/SidebarGuideEntry.module.css.mjs
|
|
32830
|
-
const css$
|
|
32831
|
-
const key$
|
|
32832
|
-
let tag$
|
|
32833
|
-
if (tag$
|
|
32834
|
-
tag$
|
|
32835
|
-
tag$
|
|
32836
|
-
tag$
|
|
32837
|
-
document.head.appendChild(tag$
|
|
32872
|
+
const css$14 = ".rp_Okaj1q_entry{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsl-guide-entry-radius,var(--dsw-radius-sm));background:var(--dsw-alias-bg-layer-1);align-items:center;gap:14px;width:100%;min-height:56px;padding:14px 20px;display:flex;position:relative;overflow:hidden}.rp_Okaj1q_main{border-radius:0;width:100%;height:100%;position:absolute;inset:0}.rp_Okaj1q_icon{width:26px;height:26px;color:var(--dsw-alias-label-secondary);pointer-events:none;flex:none;justify-content:center;align-items:center;display:flex;position:relative}.rp_Okaj1q_text{pointer-events:none;flex-direction:column;flex:1;gap:3px;min-width:0;display:flex;position:relative}.rp_Okaj1q_title{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;overflow:hidden}.rp_Okaj1q_description{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4;overflow:hidden}";
|
|
32873
|
+
const key$14 = "src/client/widgets/sidebar-guide/SidebarGuideEntry.module.css";
|
|
32874
|
+
let tag$14 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$14) + "]");
|
|
32875
|
+
if (tag$14 === null) {
|
|
32876
|
+
tag$14 = document.createElement("style");
|
|
32877
|
+
tag$14.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
32878
|
+
tag$14.dataset.pluginCss = key$14;
|
|
32879
|
+
document.head.appendChild(tag$14);
|
|
32838
32880
|
}
|
|
32839
|
-
tag$
|
|
32881
|
+
tag$14.textContent = css$14;
|
|
32840
32882
|
var SidebarGuideEntry_module_css_default = {
|
|
32841
32883
|
"description": "rp_Okaj1q_description",
|
|
32842
|
-
"title": "rp_Okaj1q_title",
|
|
32843
32884
|
"entry": "rp_Okaj1q_entry",
|
|
32844
32885
|
"main": "rp_Okaj1q_main",
|
|
32845
|
-
"
|
|
32846
|
-
"
|
|
32886
|
+
"text": "rp_Okaj1q_text",
|
|
32887
|
+
"title": "rp_Okaj1q_title",
|
|
32888
|
+
"icon": "rp_Okaj1q_icon"
|
|
32847
32889
|
};
|
|
32848
32890
|
// src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
|
|
32849
32891
|
/** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
|
|
@@ -32879,20 +32921,20 @@ window.__ModuleLoader__.load({
|
|
|
32879
32921
|
});
|
|
32880
32922
|
}
|
|
32881
32923
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/gallery/GalleryTab.module.css.mjs
|
|
32882
|
-
const css$
|
|
32883
|
-
const key$
|
|
32884
|
-
let tag$
|
|
32885
|
-
if (tag$
|
|
32886
|
-
tag$
|
|
32887
|
-
tag$
|
|
32888
|
-
tag$
|
|
32889
|
-
document.head.appendChild(tag$
|
|
32924
|
+
const css$13 = ".rp_W688Pa_page{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.rp_W688Pa_bar{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:4px 8px;display:flex}.rp_W688Pa_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:24px;font-size:13px}";
|
|
32925
|
+
const key$13 = "src/client/gallery/GalleryTab.module.css";
|
|
32926
|
+
let tag$13 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$13) + "]");
|
|
32927
|
+
if (tag$13 === null) {
|
|
32928
|
+
tag$13 = document.createElement("style");
|
|
32929
|
+
tag$13.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
32930
|
+
tag$13.dataset.pluginCss = key$13;
|
|
32931
|
+
document.head.appendChild(tag$13);
|
|
32890
32932
|
}
|
|
32891
|
-
tag$
|
|
32933
|
+
tag$13.textContent = css$13;
|
|
32892
32934
|
var GalleryTab_module_css_default = {
|
|
32893
|
-
"bar": "rp_W688Pa_bar",
|
|
32894
32935
|
"page": "rp_W688Pa_page",
|
|
32895
|
-
"message": "rp_W688Pa_message"
|
|
32936
|
+
"message": "rp_W688Pa_message",
|
|
32937
|
+
"bar": "rp_W688Pa_bar"
|
|
32896
32938
|
};
|
|
32897
32939
|
// src/client/gallery/GalleryTab.tsx
|
|
32898
32940
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -33298,28 +33340,28 @@ window.__ModuleLoader__.load({
|
|
|
33298
33340
|
});
|
|
33299
33341
|
}
|
|
33300
33342
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/interface/SidebarPage.module.css.mjs
|
|
33301
|
-
const css$
|
|
33302
|
-
const key$
|
|
33303
|
-
let tag$
|
|
33304
|
-
if (tag$
|
|
33305
|
-
tag$
|
|
33306
|
-
tag$
|
|
33307
|
-
tag$
|
|
33308
|
-
document.head.appendChild(tag$
|
|
33343
|
+
const css$12 = ".rp_Ptco8a_page{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.rp_Ptco8a_bar{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:4px 8px;display:flex}.rp_Ptco8a_name{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.rp_Ptco8a_content{flex:1 1 0;min-height:0;position:relative}.rp_Ptco8a_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px;font-size:13px;line-height:20px}.rp_Ptco8a_entry{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsl-guide-entry-radius,var(--dsw-radius-sm));background:var(--dsw-alias-bg-layer-1);align-items:center;gap:14px;width:100%;min-height:56px;padding:14px 20px;display:flex;position:relative;overflow:hidden}.rp_Ptco8a_main{border-radius:0;width:100%;height:100%;position:absolute;inset:0}.rp_Ptco8a_icon{width:26px;height:26px;color:var(--dsw-alias-label-secondary);pointer-events:none;flex:none;justify-content:center;align-items:center;display:flex;position:relative}.rp_Ptco8a_text{pointer-events:none;flex-direction:column;flex:1;gap:3px;min-width:0;display:flex;position:relative}.rp_Ptco8a_title{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;overflow:hidden}.rp_Ptco8a_description{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4;overflow:hidden}";
|
|
33344
|
+
const key$12 = "src/client/interface/SidebarPage.module.css";
|
|
33345
|
+
let tag$12 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$12) + "]");
|
|
33346
|
+
if (tag$12 === null) {
|
|
33347
|
+
tag$12 = document.createElement("style");
|
|
33348
|
+
tag$12.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
33349
|
+
tag$12.dataset.pluginCss = key$12;
|
|
33350
|
+
document.head.appendChild(tag$12);
|
|
33309
33351
|
}
|
|
33310
|
-
tag$
|
|
33352
|
+
tag$12.textContent = css$12;
|
|
33311
33353
|
var SidebarPage_module_css_default = {
|
|
33312
33354
|
"message": "rp_Ptco8a_message",
|
|
33313
|
-
"
|
|
33314
|
-
"entry": "rp_Ptco8a_entry",
|
|
33315
|
-
"text": "rp_Ptco8a_text",
|
|
33355
|
+
"main": "rp_Ptco8a_main",
|
|
33316
33356
|
"title": "rp_Ptco8a_title",
|
|
33317
|
-
"bar": "rp_Ptco8a_bar",
|
|
33318
|
-
"page": "rp_Ptco8a_page",
|
|
33319
|
-
"description": "rp_Ptco8a_description",
|
|
33320
33357
|
"content": "rp_Ptco8a_content",
|
|
33321
|
-
"
|
|
33322
|
-
"
|
|
33358
|
+
"entry": "rp_Ptco8a_entry",
|
|
33359
|
+
"description": "rp_Ptco8a_description",
|
|
33360
|
+
"name": "rp_Ptco8a_name",
|
|
33361
|
+
"page": "rp_Ptco8a_page",
|
|
33362
|
+
"bar": "rp_Ptco8a_bar",
|
|
33363
|
+
"icon": "rp_Ptco8a_icon",
|
|
33364
|
+
"text": "rp_Ptco8a_text"
|
|
33323
33365
|
};
|
|
33324
33366
|
// src/client/interface/SidebarPage.tsx
|
|
33325
33367
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -33937,35 +33979,35 @@ window.__ModuleLoader__.load({
|
|
|
33937
33979
|
}));
|
|
33938
33980
|
}
|
|
33939
33981
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/recall/RecallTab.module.css.mjs
|
|
33940
|
-
const css$
|
|
33941
|
-
const key$
|
|
33942
|
-
let tag$
|
|
33943
|
-
if (tag$
|
|
33944
|
-
tag$
|
|
33945
|
-
tag$
|
|
33946
|
-
tag$
|
|
33947
|
-
document.head.appendChild(tag$
|
|
33982
|
+
const css$11 = ".rp_jl9CIq_page{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.rp_jl9CIq_bar{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:4px 8px;display:flex}.rp_jl9CIq_name{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.rp_jl9CIq_body{flex:1 1 0;min-height:0;padding:12px 16px 24px;overflow-y:auto}.rp_jl9CIq_form{flex-direction:column;gap:8px;display:flex}.rp_jl9CIq_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_jl9CIq_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_jl9CIq_field{box-sizing:border-box;width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);padding:6px 8px;font-size:13px}.rp_jl9CIq_area{resize:vertical;min-height:84px}.rp_jl9CIq_actions{align-items:center;gap:8px;display:flex}.rp_jl9CIq_error{color:var(--dsw-alias-state-error-primary,#d33);margin:0;font-size:13px}.rp_jl9CIq_note{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px;line-height:18px}.rp_jl9CIq_person{border-top:.5px solid var(--dsw-alias-border-l3);margin-top:16px;padding-top:12px}.rp_jl9CIq_heading{align-items:baseline;gap:8px;font-size:14px;font-weight:500;display:flex}.rp_jl9CIq_place{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400}.rp_jl9CIq_list{flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none;display:flex}.rp_jl9CIq_item{font-size:13px;line-height:20px}.rp_jl9CIq_meta{color:var(--dsw-alias-label-tertiary);font-size:12px;display:block}";
|
|
33983
|
+
const key$11 = "src/client/recall/RecallTab.module.css";
|
|
33984
|
+
let tag$11 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$11) + "]");
|
|
33985
|
+
if (tag$11 === null) {
|
|
33986
|
+
tag$11 = document.createElement("style");
|
|
33987
|
+
tag$11.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
33988
|
+
tag$11.dataset.pluginCss = key$11;
|
|
33989
|
+
document.head.appendChild(tag$11);
|
|
33948
33990
|
}
|
|
33949
|
-
tag$
|
|
33991
|
+
tag$11.textContent = css$11;
|
|
33950
33992
|
var RecallTab_module_css_default = {
|
|
33951
|
-
"body": "rp_jl9CIq_body",
|
|
33952
|
-
"place": "rp_jl9CIq_place",
|
|
33953
|
-
"label": "rp_jl9CIq_label",
|
|
33954
|
-
"meta": "rp_jl9CIq_meta",
|
|
33955
|
-
"heading": "rp_jl9CIq_heading",
|
|
33956
33993
|
"error": "rp_jl9CIq_error",
|
|
33957
|
-
"form": "rp_jl9CIq_form",
|
|
33958
|
-
"list": "rp_jl9CIq_list",
|
|
33959
|
-
"person": "rp_jl9CIq_person",
|
|
33960
|
-
"page": "rp_jl9CIq_page",
|
|
33961
33994
|
"item": "rp_jl9CIq_item",
|
|
33962
|
-
"
|
|
33995
|
+
"page": "rp_jl9CIq_page",
|
|
33963
33996
|
"hint": "rp_jl9CIq_hint",
|
|
33964
|
-
"
|
|
33997
|
+
"actions": "rp_jl9CIq_actions",
|
|
33965
33998
|
"bar": "rp_jl9CIq_bar",
|
|
33966
|
-
"
|
|
33999
|
+
"meta": "rp_jl9CIq_meta",
|
|
34000
|
+
"list": "rp_jl9CIq_list",
|
|
34001
|
+
"body": "rp_jl9CIq_body",
|
|
33967
34002
|
"field": "rp_jl9CIq_field",
|
|
33968
|
-
"
|
|
34003
|
+
"label": "rp_jl9CIq_label",
|
|
34004
|
+
"form": "rp_jl9CIq_form",
|
|
34005
|
+
"note": "rp_jl9CIq_note",
|
|
34006
|
+
"person": "rp_jl9CIq_person",
|
|
34007
|
+
"area": "rp_jl9CIq_area",
|
|
34008
|
+
"heading": "rp_jl9CIq_heading",
|
|
34009
|
+
"place": "rp_jl9CIq_place",
|
|
34010
|
+
"name": "rp_jl9CIq_name"
|
|
33969
34011
|
};
|
|
33970
34012
|
// src/client/recall/RecallTab.tsx
|
|
33971
34013
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34810,22 +34852,22 @@ window.__ModuleLoader__.load({
|
|
|
34810
34852
|
}
|
|
34811
34853
|
};
|
|
34812
34854
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/reference/ReferenceTab.module.css.mjs
|
|
34813
|
-
const css$
|
|
34814
|
-
const key$
|
|
34815
|
-
let tag$
|
|
34816
|
-
if (tag$
|
|
34817
|
-
tag$
|
|
34818
|
-
tag$
|
|
34819
|
-
tag$
|
|
34820
|
-
document.head.appendChild(tag$
|
|
34855
|
+
const css$10 = ".rp_7BGO2a_page{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.rp_7BGO2a_bar{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:4px 8px;display:flex}.rp_7BGO2a_nav{flex:none;padding:0 16px}.rp_7BGO2a_body{flex:1 1 0;min-height:0;padding:4px 16px 24px;overflow-y:auto}.rp_7BGO2a_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:24px;font-size:13px}";
|
|
34856
|
+
const key$10 = "src/client/reference/ReferenceTab.module.css";
|
|
34857
|
+
let tag$10 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$10) + "]");
|
|
34858
|
+
if (tag$10 === null) {
|
|
34859
|
+
tag$10 = document.createElement("style");
|
|
34860
|
+
tag$10.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
34861
|
+
tag$10.dataset.pluginCss = key$10;
|
|
34862
|
+
document.head.appendChild(tag$10);
|
|
34821
34863
|
}
|
|
34822
|
-
tag$
|
|
34864
|
+
tag$10.textContent = css$10;
|
|
34823
34865
|
var ReferenceTab_module_css_default = {
|
|
34824
|
-
"
|
|
34825
|
-
"nav": "rp_7BGO2a_nav",
|
|
34826
|
-
"message": "rp_7BGO2a_message",
|
|
34866
|
+
"page": "rp_7BGO2a_page",
|
|
34827
34867
|
"body": "rp_7BGO2a_body",
|
|
34828
|
-
"
|
|
34868
|
+
"message": "rp_7BGO2a_message",
|
|
34869
|
+
"nav": "rp_7BGO2a_nav",
|
|
34870
|
+
"bar": "rp_7BGO2a_bar"
|
|
34829
34871
|
};
|
|
34830
34872
|
// src/client/reference/ReferenceTab.tsx
|
|
34831
34873
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34934,39 +34976,40 @@ window.__ModuleLoader__.load({
|
|
|
34934
34976
|
return await response.json();
|
|
34935
34977
|
}
|
|
34936
34978
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/reference/sections/Page.module.css.mjs
|
|
34937
|
-
const css$
|
|
34938
|
-
const key$
|
|
34939
|
-
let tag$
|
|
34940
|
-
if (tag$
|
|
34941
|
-
tag$
|
|
34942
|
-
tag$
|
|
34943
|
-
tag$
|
|
34944
|
-
document.head.appendChild(tag$
|
|
34979
|
+
const css$9 = ".rp_bG1sCa_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:24px 0;font-size:13px;line-height:20px}.rp_bG1sCa_list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.rp_bG1sCa_entry{border-bottom:.5px solid var(--dsw-alias-border-l3);padding:10px 0}.rp_bG1sCa_entry:last-child{border-bottom:none}.rp_bG1sCa_head{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.rp_bG1sCa_name{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_bG1sCa_tag{color:var(--dsw-alias-state-business-primary);font-size:12px}.rp_bG1sCa_sub{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_bG1sCa_text{color:var(--dsw-alias-label-secondary);margin:4px 0 0;font-size:13px;line-height:20px}.rp_bG1sCa_meta{color:var(--dsw-alias-label-tertiary);margin:4px 0 0;font-size:12px;line-height:18px}.rp_bG1sCa_block{margin-top:16px}.rp_bG1sCa_heading{color:var(--dsw-alias-label-tertiary);margin:0 0 4px;font-size:12px;font-weight:500}.rp_bG1sCa_title{color:var(--dsw-alias-label-primary);font-size:16px;font-weight:500;line-height:24px}.rp_bG1sCa_link{font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:14px;font-weight:500}.rp_bG1sCa_link:hover{color:var(--dsw-alias-state-business-primary)}.rp_bG1sCa_link:focus-visible{border-radius:var(--dsw-radius-sm);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_bG1sCa_opened{border-left:.5px solid var(--dsw-alias-border-l3);margin-top:8px;padding:4px 0 4px 12px}.rp_bG1sCa_map{padding:8px 0;overflow-x:auto}.rp_bG1sCa_way{stroke:var(--dsw-alias-border-l4);stroke-width:1px}.rp_bG1sCa_closedWay{stroke:var(--dsw-alias-border-l4);stroke-width:1px;stroke-dasharray:3 3}.rp_bG1sCa_place{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-border-l4);stroke-width:.5px}.rp_bG1sCa_here{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-state-business-primary);stroke-width:1.5px}.rp_bG1sCa_placeName{fill:var(--dsw-alias-label-primary);font-size:12px}.rp_bG1sCa_edgeLabel{fill:var(--dsw-alias-label-secondary);font-size:12px}.rp_bG1sCa_journal{flex-direction:column;gap:6px;height:100%;display:flex}.rp_bG1sCa_notes{box-sizing:border-box;width:100%;min-height:220px;font:inherit;resize:vertical;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex:none;padding:8px;font-size:13px;line-height:20px}";
|
|
34980
|
+
const key$9 = "src/client/reference/sections/Page.module.css";
|
|
34981
|
+
let tag$9 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$9) + "]");
|
|
34982
|
+
if (tag$9 === null) {
|
|
34983
|
+
tag$9 = document.createElement("style");
|
|
34984
|
+
tag$9.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
34985
|
+
tag$9.dataset.pluginCss = key$9;
|
|
34986
|
+
document.head.appendChild(tag$9);
|
|
34945
34987
|
}
|
|
34946
|
-
tag$
|
|
34988
|
+
tag$9.textContent = css$9;
|
|
34947
34989
|
var Page_module_css_default = {
|
|
34948
|
-
"
|
|
34949
|
-
"
|
|
34950
|
-
"sub": "rp_bG1sCa_sub",
|
|
34951
|
-
"message": "rp_bG1sCa_message",
|
|
34952
|
-
"name": "rp_bG1sCa_name",
|
|
34953
|
-
"closedWay": "rp_bG1sCa_closedWay",
|
|
34954
|
-
"place": "rp_bG1sCa_place",
|
|
34955
|
-
"placeName": "rp_bG1sCa_placeName",
|
|
34956
|
-
"way": "rp_bG1sCa_way",
|
|
34957
|
-
"journal": "rp_bG1sCa_journal",
|
|
34958
|
-
"block": "rp_bG1sCa_block",
|
|
34959
|
-
"tag": "rp_bG1sCa_tag",
|
|
34960
|
-
"link": "rp_bG1sCa_link",
|
|
34990
|
+
"meta": "rp_bG1sCa_meta",
|
|
34991
|
+
"edgeLabel": "rp_bG1sCa_edgeLabel",
|
|
34961
34992
|
"list": "rp_bG1sCa_list",
|
|
34993
|
+
"block": "rp_bG1sCa_block",
|
|
34962
34994
|
"here": "rp_bG1sCa_here",
|
|
34963
|
-
"
|
|
34964
|
-
"meta": "rp_bG1sCa_meta",
|
|
34995
|
+
"placeName": "rp_bG1sCa_placeName",
|
|
34965
34996
|
"opened": "rp_bG1sCa_opened",
|
|
34966
|
-
"
|
|
34967
|
-
"
|
|
34997
|
+
"title": "rp_bG1sCa_title",
|
|
34998
|
+
"closedWay": "rp_bG1sCa_closedWay",
|
|
34999
|
+
"place": "rp_bG1sCa_place",
|
|
35000
|
+
"name": "rp_bG1sCa_name",
|
|
34968
35001
|
"heading": "rp_bG1sCa_heading",
|
|
34969
|
-
"
|
|
35002
|
+
"sub": "rp_bG1sCa_sub",
|
|
35003
|
+
"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"
|
|
34970
35013
|
};
|
|
34971
35014
|
// src/client/reference/sections/Journal.tsx
|
|
34972
35015
|
/** How long typing pauses before the notes are saved. */
|
|
@@ -35134,13 +35177,13 @@ window.__ModuleLoader__.load({
|
|
|
35134
35177
|
return out;
|
|
35135
35178
|
}
|
|
35136
35179
|
const RING = 210;
|
|
35137
|
-
const MARGIN = 16;
|
|
35180
|
+
const MARGIN$1 = 16;
|
|
35138
35181
|
/** The people the player's character has met on a ring around the character, nearest the top first in the order given; the ring widens when many are met. */
|
|
35139
35182
|
function layoutRelations(keys) {
|
|
35140
35183
|
const radius = Math.max(RING, Math.ceil(keys.length * 132 / (2 * Math.PI)));
|
|
35141
35184
|
const centre = {
|
|
35142
|
-
x: MARGIN + radius + 60,
|
|
35143
|
-
y: MARGIN + radius + 13
|
|
35185
|
+
x: MARGIN$1 + radius + 60,
|
|
35186
|
+
y: MARGIN$1 + radius + 13
|
|
35144
35187
|
};
|
|
35145
35188
|
return {
|
|
35146
35189
|
nodes: keys.map((key, index) => {
|
|
@@ -35272,7 +35315,7 @@ window.__ModuleLoader__.load({
|
|
|
35272
35315
|
x2: node.x,
|
|
35273
35316
|
y2: node.y
|
|
35274
35317
|
}), person.label !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("text", {
|
|
35275
|
-
className: Page_module_css_default.
|
|
35318
|
+
className: Page_module_css_default.edgeLabel,
|
|
35276
35319
|
x: (layout.centre.x + node.x) / 2,
|
|
35277
35320
|
y: (layout.centre.y + node.y) / 2 - 4,
|
|
35278
35321
|
textAnchor: "middle",
|
|
@@ -36051,39 +36094,39 @@ window.__ModuleLoader__.load({
|
|
|
36051
36094
|
});
|
|
36052
36095
|
}
|
|
36053
36096
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/chat-settings/ChatSettingsView.module.css.mjs
|
|
36054
|
-
const css$
|
|
36055
|
-
const key$
|
|
36056
|
-
let tag$
|
|
36057
|
-
if (tag$
|
|
36058
|
-
tag$
|
|
36059
|
-
tag$
|
|
36060
|
-
tag$
|
|
36061
|
-
document.head.appendChild(tag$
|
|
36097
|
+
const css$8 = ".rp_wLpbxW_view{box-sizing:border-box;flex-direction:column;gap:16px;width:100%;max-width:720px;margin:0 auto;padding:24px 24px 240px;display:flex}.rp_wLpbxW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_wLpbxW_description{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_wLpbxW_field{flex-direction:column;gap:6px;width:min(100%,320px);display:flex}.rp_wLpbxW_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_wLpbxW_help{max-width:560px;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_wLpbxW_actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.rp_wLpbxW_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:40px 0;font-size:13px}.rp_wLpbxW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_wLpbxW_saved{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_wLpbxW_row{flex-direction:column;gap:6px;display:flex}.rp_wLpbxW_notice{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);margin:0;padding:8px 12px;font-size:12px}.rp_wLpbxW_activity{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;font-size:13px;display:flex}.rp_wLpbxW_activity summary{cursor:pointer;color:var(--dsw-alias-label-primary);font-weight:500}.rp_wLpbxW_activityBody{flex-direction:column;gap:8px;padding-top:8px;display:flex}.rp_wLpbxW_link{font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0;font-size:12px}.rp_wLpbxW_table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;min-width:920px;font-size:12px}.rp_wLpbxW_tableViewport{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);max-width:100%;overflow-x:auto}.rp_wLpbxW_tableViewport:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_wLpbxW_table th,.rp_wLpbxW_table td{border-bottom:.5px solid var(--dsw-alias-border-l4);text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:6px 10px}.rp_wLpbxW_table th{color:var(--dsw-alias-label-tertiary);font-weight:400}.rp_wLpbxW_table tbody th{color:var(--dsw-alias-label-primary);font-weight:500}.rp_wLpbxW_table tbody tr:last-child>*{border-bottom:0}.rp_wLpbxW_table th:first-child,.rp_wLpbxW_table td:first-child,.rp_wLpbxW_table th:nth-child(3),.rp_wLpbxW_table td:nth-child(3),.rp_wLpbxW_table th:nth-child(4),.rp_wLpbxW_table td:nth-child(4),.rp_wLpbxW_table th:nth-child(5),.rp_wLpbxW_table td:nth-child(5){white-space:nowrap}.rp_wLpbxW_run{flex-direction:column;gap:4px;padding:4px 0 8px;display:flex}.rp_wLpbxW_pre{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-markdown-code-block);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;margin:4px 0;padding:6px 8px;font-size:12px;overflow:auto}.rp_wLpbxW_reasons{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:4px 0;padding-left:20px;font-size:12px}.rp_wLpbxW_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%;max-width:320px;height:32px;color:var(--dsw-alias-label-primary);font:inherit;padding:0 8px;font-size:13px}.rp_wLpbxW_list{color:var(--dsw-alias-label-tertiary);margin:0;padding-left:18px;font-size:12px;line-height:18px}@media (width<=640px){.rp_wLpbxW_view{padding-inline:16px}}";
|
|
36098
|
+
const key$8 = "src/client/chat-settings/ChatSettingsView.module.css";
|
|
36099
|
+
let tag$8 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$8) + "]");
|
|
36100
|
+
if (tag$8 === null) {
|
|
36101
|
+
tag$8 = document.createElement("style");
|
|
36102
|
+
tag$8.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
36103
|
+
tag$8.dataset.pluginCss = key$8;
|
|
36104
|
+
document.head.appendChild(tag$8);
|
|
36062
36105
|
}
|
|
36063
|
-
tag$
|
|
36106
|
+
tag$8.textContent = css$8;
|
|
36064
36107
|
var ChatSettingsView_module_css_default = {
|
|
36065
|
-
"message": "rp_wLpbxW_message",
|
|
36066
|
-
"description": "rp_wLpbxW_description",
|
|
36067
36108
|
"list": "rp_wLpbxW_list",
|
|
36068
|
-
"
|
|
36069
|
-
"
|
|
36070
|
-
"
|
|
36071
|
-
"view": "rp_wLpbxW_view",
|
|
36072
|
-
"run": "rp_wLpbxW_run",
|
|
36073
|
-
"pre": "rp_wLpbxW_pre",
|
|
36074
|
-
"error": "rp_wLpbxW_error",
|
|
36075
|
-
"saved": "rp_wLpbxW_saved",
|
|
36076
|
-
"activityBody": "rp_wLpbxW_activityBody",
|
|
36109
|
+
"message": "rp_wLpbxW_message",
|
|
36110
|
+
"reasons": "rp_wLpbxW_reasons",
|
|
36111
|
+
"table": "rp_wLpbxW_table",
|
|
36077
36112
|
"field": "rp_wLpbxW_field",
|
|
36113
|
+
"view": "rp_wLpbxW_view",
|
|
36078
36114
|
"actions": "rp_wLpbxW_actions",
|
|
36079
|
-
"activity": "rp_wLpbxW_activity",
|
|
36080
|
-
"title": "rp_wLpbxW_title",
|
|
36081
|
-
"notice": "rp_wLpbxW_notice",
|
|
36082
|
-
"table": "rp_wLpbxW_table",
|
|
36083
|
-
"reasons": "rp_wLpbxW_reasons",
|
|
36084
36115
|
"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",
|
|
36085
36121
|
"select": "rp_wLpbxW_select",
|
|
36086
|
-
"
|
|
36122
|
+
"notice": "rp_wLpbxW_notice",
|
|
36123
|
+
"pre": "rp_wLpbxW_pre",
|
|
36124
|
+
"activity": "rp_wLpbxW_activity",
|
|
36125
|
+
"error": "rp_wLpbxW_error",
|
|
36126
|
+
"description": "rp_wLpbxW_description",
|
|
36127
|
+
"label": "rp_wLpbxW_label",
|
|
36128
|
+
"saved": "rp_wLpbxW_saved",
|
|
36129
|
+
"run": "rp_wLpbxW_run"
|
|
36087
36130
|
};
|
|
36088
36131
|
// src/client/chat-settings/settings-api.ts
|
|
36089
36132
|
/** The chat is not a roleplay session, so it has no settings. */
|
|
@@ -37947,6 +37990,33 @@ window.__ModuleLoader__.load({
|
|
|
37947
37990
|
// src/client/chat-settings/ActivityList.tsx
|
|
37948
37991
|
const seconds = (ms) => `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)} s`;
|
|
37949
37992
|
const count = (value) => value.toLocaleString();
|
|
37993
|
+
function failureText(t, failure) {
|
|
37994
|
+
if (typeof failure === "string") return failure;
|
|
37995
|
+
switch (failure.key) {
|
|
37996
|
+
case "cancelled": return t("failureCancelled");
|
|
37997
|
+
case "timeout": return t("failureTimeout", { minutes: failure.minutes });
|
|
37998
|
+
case "tokenLimit": return failure.limit === void 0 ? t("failureModelTokenLimit", { tool: failure.tool }) : t("failureTokenLimit", {
|
|
37999
|
+
limit: failure.limit,
|
|
38000
|
+
tool: failure.tool
|
|
38001
|
+
});
|
|
38002
|
+
case "answeredInThinking": return t("failureAnsweredInThinking");
|
|
38003
|
+
case "resultRefused": return t("failureResultRefused", {
|
|
38004
|
+
count: failure.count,
|
|
38005
|
+
reason: failure.reason
|
|
38006
|
+
});
|
|
38007
|
+
case "callLimit": {
|
|
38008
|
+
const reason = t("failureCallLimit", { budget: failure.budget });
|
|
38009
|
+
return failure.tool === void 0 || failure.outcome === void 0 ? reason : t("failureCallLimitLast", {
|
|
38010
|
+
reason,
|
|
38011
|
+
tool: failure.tool,
|
|
38012
|
+
outcome: failure.outcome
|
|
38013
|
+
});
|
|
38014
|
+
}
|
|
38015
|
+
case "agentFailed": return t("failureAgent", { message: failure.message });
|
|
38016
|
+
case "noResult": return t("failureNoResult", { calls: failure.calls });
|
|
38017
|
+
case "unexpected": return t("failureUnexpected", { message: failure.message });
|
|
38018
|
+
}
|
|
38019
|
+
}
|
|
37950
38020
|
/** Fresh input plus output, and beside it what came from the service's cache, or that the service does not say. */
|
|
37951
38021
|
const tokenText = (t, tokens) => {
|
|
37952
38022
|
const notes = [...tokens.cached > 0 ? [t("usageCached", { count: count(tokens.cached) })] : [], ...(tokens.unreported ?? 0) > 0 ? [t("usageUnreported")] : []];
|
|
@@ -38090,8 +38160,8 @@ window.__ModuleLoader__.load({
|
|
|
38090
38160
|
] }),
|
|
38091
38161
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
38092
38162
|
className: entry.error === void 0 ? void 0 : ChatSettingsView_module_css_default.error,
|
|
38093
|
-
title: entry.error,
|
|
38094
|
-
children: entry.error === void 0 ? t("activityDone") : t("activityFailed", { reason: entry.error })
|
|
38163
|
+
title: entry.error === void 0 ? void 0 : failureText(t, entry.error),
|
|
38164
|
+
children: entry.error === void 0 ? t("activityDone") : t("activityFailed", { reason: failureText(t, entry.error) })
|
|
38095
38165
|
}),
|
|
38096
38166
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: entry.run === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
38097
38167
|
type: "button",
|
|
@@ -38762,6 +38832,17 @@ window.__ModuleLoader__.load({
|
|
|
38762
38832
|
whyLinked: "came to mind with another memory (shares {people} people, {tags} tags{place})",
|
|
38763
38833
|
whyLinkedPlace: ", the place",
|
|
38764
38834
|
runNoResult: "It submitted no result.",
|
|
38835
|
+
failureCancelled: "cancelled",
|
|
38836
|
+
failureTimeout: "stopped after {minutes} minutes without a result. The model may still be thinking; lower its reasoning level or raise the time limit in Settings.",
|
|
38837
|
+
failureTokenLimit: "reached the {limit}-token limit without calling {tool} and was stopped",
|
|
38838
|
+
failureModelTokenLimit: "reached the model’s output limit without calling {tool} and was stopped",
|
|
38839
|
+
failureAnsweredInThinking: "wrote its answer in hidden reasoning instead of submitting a result",
|
|
38840
|
+
failureResultRefused: "had its result refused {count} times and was stopped. Last reason: {reason}",
|
|
38841
|
+
failureCallLimit: "passed its {budget}-call limit, or kept repeating a failed call, without submitting a result and was stopped",
|
|
38842
|
+
failureCallLimitLast: "{reason}. Last failed call: {tool}: {outcome}",
|
|
38843
|
+
failureAgent: "failed: {message}",
|
|
38844
|
+
failureNoResult: "stopped without submitting a result after {calls} calls",
|
|
38845
|
+
failureUnexpected: "{message}",
|
|
38765
38846
|
vectorsTitle: "Search by meaning",
|
|
38766
38847
|
vectorsUnavailable: "Vector search is not available here, so memories are found by their words only.",
|
|
38767
38848
|
vectorsNone: "No vectors are stored yet ({pending} texts waiting). They are made in the background once an embedding model is selected and the story searches.",
|
|
@@ -38989,6 +39070,17 @@ window.__ModuleLoader__.load({
|
|
|
38989
39070
|
whyLinked: "与另一条记忆一同想起(共有 {people} 个人物、{tags} 个标签{place})",
|
|
38990
39071
|
whyLinkedPlace: "、地点",
|
|
38991
39072
|
runNoResult: "它没有提交结果。",
|
|
39073
|
+
failureCancelled: "已取消",
|
|
39074
|
+
failureTimeout: "{minutes} 分钟内没有返回结果,已停止。模型可能仍在思考;请降低思考级别,或在设置中延长时限。",
|
|
39075
|
+
failureTokenLimit: "达到 {limit} 个词元的上限仍未调用 {tool},已停止",
|
|
39076
|
+
failureModelTokenLimit: "达到模型的输出上限仍未调用 {tool},已停止",
|
|
39077
|
+
failureAnsweredInThinking: "把答案写进了隐藏的思考过程,没有提交结果",
|
|
39078
|
+
failureResultRefused: "结果被拒绝 {count} 次后已停止。最后一次原因:{reason}",
|
|
39079
|
+
failureCallLimit: "超过 {budget} 次调用,或不断重复失败的调用,仍未提交结果,已停止",
|
|
39080
|
+
failureCallLimitLast: "{reason}。最后一次失败的调用:{tool}:{outcome}",
|
|
39081
|
+
failureAgent: "运行失败:{message}",
|
|
39082
|
+
failureNoResult: "调用 {calls} 次后仍未提交结果,已停止",
|
|
39083
|
+
failureUnexpected: "{message}",
|
|
38992
39084
|
vectorsTitle: "按含义检索",
|
|
38993
39085
|
vectorsUnavailable: "此处无法使用向量检索,记忆只按字词查找。",
|
|
38994
39086
|
vectorsNone: "尚未存储向量({pending} 条文本等待中)。选择嵌入模型并在故事检索时会在后台生成。",
|
|
@@ -39211,6 +39303,17 @@ window.__ModuleLoader__.load({
|
|
|
39211
39303
|
runResult: "結果",
|
|
39212
39304
|
runRecalled: "思い出した内容と理由",
|
|
39213
39305
|
runNoResult: "結果は送信されませんでした。",
|
|
39306
|
+
failureCancelled: "キャンセルされました",
|
|
39307
|
+
failureTimeout: "{minutes}分以内に結果が得られなかったため停止しました。思考レベルを下げるか、設定で制限時間を延ばしてください。",
|
|
39308
|
+
failureTokenLimit: "{limit}トークンの上限に達しても{tool}を呼び出さなかったため停止しました",
|
|
39309
|
+
failureModelTokenLimit: "モデルの出力上限に達しても{tool}を呼び出さなかったため停止しました",
|
|
39310
|
+
failureAnsweredInThinking: "回答を非表示の思考内に書き、結果を送信しませんでした",
|
|
39311
|
+
failureResultRefused: "結果が{count}回拒否されたため停止しました。最後の理由:{reason}",
|
|
39312
|
+
failureCallLimit: "{budget}回の呼び出し上限を超えたか、失敗した呼び出しを繰り返し、結果を送信しなかったため停止しました",
|
|
39313
|
+
failureCallLimitLast: "{reason}。最後に失敗した呼び出し:{tool}:{outcome}",
|
|
39314
|
+
failureAgent: "失敗しました:{message}",
|
|
39315
|
+
failureNoResult: "{calls}回呼び出した後も結果を送信せず停止しました",
|
|
39316
|
+
failureUnexpected: "{message}",
|
|
39214
39317
|
whyCues: "手がかり:人物 {people}、語 {words}、場所 {place}",
|
|
39215
39318
|
whyIndex: "語の検索 {value}",
|
|
39216
39319
|
whyMeaning: "意味検索 {value}",
|
|
@@ -39439,6 +39542,17 @@ window.__ModuleLoader__.load({
|
|
|
39439
39542
|
runResult: "Resultado",
|
|
39440
39543
|
runRecalled: "Qué recordó y por qué",
|
|
39441
39544
|
runNoResult: "No envió ningún resultado.",
|
|
39545
|
+
failureCancelled: "cancelado",
|
|
39546
|
+
failureTimeout: "se detuvo tras {minutes} minutos sin resultado. Reduce el nivel de razonamiento o amplía el límite en Ajustes.",
|
|
39547
|
+
failureTokenLimit: "alcanzó el límite de {limit} tokens sin llamar a {tool} y se detuvo",
|
|
39548
|
+
failureModelTokenLimit: "alcanzó el límite de salida del modelo sin llamar a {tool} y se detuvo",
|
|
39549
|
+
failureAnsweredInThinking: "escribió la respuesta en el razonamiento oculto en vez de enviar un resultado",
|
|
39550
|
+
failureResultRefused: "su resultado fue rechazado {count} veces y se detuvo. Último motivo: {reason}",
|
|
39551
|
+
failureCallLimit: "superó el límite de {budget} llamadas, o repitió una llamada fallida, sin enviar un resultado y se detuvo",
|
|
39552
|
+
failureCallLimitLast: "{reason}. Última llamada fallida: {tool}: {outcome}",
|
|
39553
|
+
failureAgent: "falló: {message}",
|
|
39554
|
+
failureNoResult: "se detuvo sin enviar un resultado tras {calls} llamadas",
|
|
39555
|
+
failureUnexpected: "{message}",
|
|
39442
39556
|
whyCues: "pistas: nombres {people}, palabras {words}, lugar {place}",
|
|
39443
39557
|
whyIndex: "búsqueda por palabras {value}",
|
|
39444
39558
|
whyMeaning: "búsqueda por significado {value}",
|
|
@@ -39667,6 +39781,17 @@ window.__ModuleLoader__.load({
|
|
|
39667
39781
|
runResult: "Résultat",
|
|
39668
39782
|
runRecalled: "Ce qui lui a été rappelé et pourquoi",
|
|
39669
39783
|
runNoResult: "Aucun résultat n’a été envoyé.",
|
|
39784
|
+
failureCancelled: "annulé",
|
|
39785
|
+
failureTimeout: "arrêté après {minutes} minutes sans résultat. Réduisez le niveau de raisonnement ou augmentez la limite dans les réglages.",
|
|
39786
|
+
failureTokenLimit: "a atteint la limite de {limit} jetons sans appeler {tool}, puis a été arrêté",
|
|
39787
|
+
failureModelTokenLimit: "a atteint la limite de sortie du modèle sans appeler {tool}, puis a été arrêté",
|
|
39788
|
+
failureAnsweredInThinking: "a écrit sa réponse dans le raisonnement masqué au lieu d’envoyer un résultat",
|
|
39789
|
+
failureResultRefused: "a vu son résultat refusé {count} fois et a été arrêté. Dernière raison : {reason}",
|
|
39790
|
+
failureCallLimit: "a dépassé sa limite de {budget} appels, ou répété un appel en échec, sans envoyer de résultat et a été arrêté",
|
|
39791
|
+
failureCallLimitLast: "{reason}. Dernier appel en échec : {tool} : {outcome}",
|
|
39792
|
+
failureAgent: "a échoué : {message}",
|
|
39793
|
+
failureNoResult: "s’est arrêté sans envoyer de résultat après {calls} appels",
|
|
39794
|
+
failureUnexpected: "{message}",
|
|
39670
39795
|
whyCues: "indices : noms {people}, mots {words}, lieu {place}",
|
|
39671
39796
|
whyIndex: "recherche par mots {value}",
|
|
39672
39797
|
whyMeaning: "recherche par sens {value}",
|
|
@@ -39895,6 +40020,17 @@ window.__ModuleLoader__.load({
|
|
|
39895
40020
|
runResult: "Ergebnis",
|
|
39896
40021
|
runRecalled: "Woran erinnert wurde und warum",
|
|
39897
40022
|
runNoResult: "Es wurde kein Ergebnis übermittelt.",
|
|
40023
|
+
failureCancelled: "abgebrochen",
|
|
40024
|
+
failureTimeout: "nach {minutes} Minuten ohne Ergebnis beendet. Verringern Sie die Denkstufe oder erhöhen Sie das Zeitlimit in den Einstellungen.",
|
|
40025
|
+
failureTokenLimit: "erreichte das Limit von {limit} Tokens, ohne {tool} aufzurufen, und wurde beendet",
|
|
40026
|
+
failureModelTokenLimit: "erreichte das Ausgabelimit des Modells, ohne {tool} aufzurufen, und wurde beendet",
|
|
40027
|
+
failureAnsweredInThinking: "schrieb die Antwort in den ausgeblendeten Gedankengang, statt ein Ergebnis zu übermitteln",
|
|
40028
|
+
failureResultRefused: "das Ergebnis wurde {count}-mal abgelehnt; der Lauf wurde beendet. Letzter Grund: {reason}",
|
|
40029
|
+
failureCallLimit: "überschritt das Limit von {budget} Aufrufen oder wiederholte einen fehlgeschlagenen Aufruf, ohne ein Ergebnis zu übermitteln, und wurde beendet",
|
|
40030
|
+
failureCallLimitLast: "{reason}. Letzter fehlgeschlagener Aufruf: {tool}: {outcome}",
|
|
40031
|
+
failureAgent: "fehlgeschlagen: {message}",
|
|
40032
|
+
failureNoResult: "nach {calls} Aufrufen ohne Ergebnis beendet",
|
|
40033
|
+
failureUnexpected: "{message}",
|
|
39898
40034
|
whyCues: "Hinweise: Namen {people}, Wörter {words}, Ort {place}",
|
|
39899
40035
|
whyIndex: "Wortsuche {value}",
|
|
39900
40036
|
whyMeaning: "Bedeutungssuche {value}",
|
|
@@ -40123,6 +40259,17 @@ window.__ModuleLoader__.load({
|
|
|
40123
40259
|
runResult: "Результат",
|
|
40124
40260
|
runRecalled: "Что было напомнено и почему",
|
|
40125
40261
|
runNoResult: "Результат не был отправлен.",
|
|
40262
|
+
failureCancelled: "отменено",
|
|
40263
|
+
failureTimeout: "остановлен через {minutes} мин. без результата. Уменьшите уровень рассуждений или увеличьте лимит времени в настройках.",
|
|
40264
|
+
failureTokenLimit: "достиг лимита в {limit} токенов, не вызвав {tool}, и был остановлен",
|
|
40265
|
+
failureModelTokenLimit: "достиг лимита вывода модели, не вызвав {tool}, и был остановлен",
|
|
40266
|
+
failureAnsweredInThinking: "записал ответ в скрытые рассуждения вместо отправки результата",
|
|
40267
|
+
failureResultRefused: "результат был отклонён {count} раз, после чего запуск остановили. Последняя причина: {reason}",
|
|
40268
|
+
failureCallLimit: "превысил лимит в {budget} вызовов или повторял неудачный вызов, не отправив результат, и был остановлен",
|
|
40269
|
+
failureCallLimitLast: "{reason}. Последний неудачный вызов: {tool}: {outcome}",
|
|
40270
|
+
failureAgent: "завершился ошибкой: {message}",
|
|
40271
|
+
failureNoResult: "остановился после {calls} вызовов, не отправив результат",
|
|
40272
|
+
failureUnexpected: "{message}",
|
|
40126
40273
|
whyCues: "подсказки: имена {people}, слова {words}, место {place}",
|
|
40127
40274
|
whyIndex: "поиск по словам {value}",
|
|
40128
40275
|
whyMeaning: "поиск по смыслу {value}",
|
|
@@ -40351,6 +40498,17 @@ window.__ModuleLoader__.load({
|
|
|
40351
40498
|
runResult: "Resultado",
|
|
40352
40499
|
runRecalled: "O que foi recordado e porquê",
|
|
40353
40500
|
runNoResult: "Não foi enviado qualquer resultado.",
|
|
40501
|
+
failureCancelled: "cancelado",
|
|
40502
|
+
failureTimeout: "parou após {minutes} minutos sem resultado. Reduza o nível de raciocínio ou aumente o limite nas definições.",
|
|
40503
|
+
failureTokenLimit: "atingiu o limite de {limit} tokens sem chamar {tool} e foi parado",
|
|
40504
|
+
failureModelTokenLimit: "atingiu o limite de saída do modelo sem chamar {tool} e foi parado",
|
|
40505
|
+
failureAnsweredInThinking: "escreveu a resposta no raciocínio oculto em vez de enviar um resultado",
|
|
40506
|
+
failureResultRefused: "o resultado foi recusado {count} vezes e a execução foi parada. Último motivo: {reason}",
|
|
40507
|
+
failureCallLimit: "ultrapassou o limite de {budget} chamadas, ou repetiu uma chamada falhada, sem enviar um resultado e foi parado",
|
|
40508
|
+
failureCallLimitLast: "{reason}. Última chamada falhada: {tool}: {outcome}",
|
|
40509
|
+
failureAgent: "falhou: {message}",
|
|
40510
|
+
failureNoResult: "parou sem enviar um resultado após {calls} chamadas",
|
|
40511
|
+
failureUnexpected: "{message}",
|
|
40354
40512
|
whyCues: "pistas: nomes {people}, palavras {words}, local {place}",
|
|
40355
40513
|
whyIndex: "pesquisa por palavras {value}",
|
|
40356
40514
|
whyMeaning: "pesquisa por significado {value}",
|
|
@@ -40489,23 +40647,23 @@ window.__ModuleLoader__.load({
|
|
|
40489
40647
|
});
|
|
40490
40648
|
}
|
|
40491
40649
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/SettingsForm.module.css.mjs
|
|
40492
|
-
const css$
|
|
40493
|
-
const key$
|
|
40494
|
-
let tag$
|
|
40495
|
-
if (tag$
|
|
40496
|
-
tag$
|
|
40497
|
-
tag$
|
|
40498
|
-
tag$
|
|
40499
|
-
document.head.appendChild(tag$
|
|
40650
|
+
const css$7 = ".rp_eL0Ehq_form{flex-direction:column;display:flex}.rp_eL0Ehq_readOnly,.rp_eL0Ehq_unavailable{color:var(--dsw-alias-label-tertiary);margin:0 0 12px;font-size:12px;line-height:1.5}.rp_eL0Ehq_footer{align-items:center;gap:8px;padding-top:16px;display:flex}.rp_eL0Ehq_failed{min-width:0;color:var(--dsw-alias-label-error);flex:1;margin:0;font-size:12px;line-height:1.5}.rp_eL0Ehq_save{appearance:none;border-radius:var(--dsw-radius-md);font:inherit;cursor:pointer;background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3);border:1px solid #0000;padding:5px 14px;font-size:13px;line-height:1.5}.rp_eL0Ehq_save:disabled{opacity:.4;cursor:default}.rp_eL0Ehq_save:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}";
|
|
40651
|
+
const key$7 = "src/client/ui/SettingsForm.module.css";
|
|
40652
|
+
let tag$7 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$7) + "]");
|
|
40653
|
+
if (tag$7 === null) {
|
|
40654
|
+
tag$7 = document.createElement("style");
|
|
40655
|
+
tag$7.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
40656
|
+
tag$7.dataset.pluginCss = key$7;
|
|
40657
|
+
document.head.appendChild(tag$7);
|
|
40500
40658
|
}
|
|
40501
|
-
tag$
|
|
40659
|
+
tag$7.textContent = css$7;
|
|
40502
40660
|
var SettingsForm_module_css_default = {
|
|
40503
|
-
"
|
|
40661
|
+
"readOnly": "rp_eL0Ehq_readOnly",
|
|
40662
|
+
"footer": "rp_eL0Ehq_footer",
|
|
40504
40663
|
"failed": "rp_eL0Ehq_failed",
|
|
40505
40664
|
"save": "rp_eL0Ehq_save",
|
|
40506
|
-
"
|
|
40507
|
-
"
|
|
40508
|
-
"readOnly": "rp_eL0Ehq_readOnly"
|
|
40665
|
+
"form": "rp_eL0Ehq_form",
|
|
40666
|
+
"unavailable": "rp_eL0Ehq_unavailable"
|
|
40509
40667
|
};
|
|
40510
40668
|
// src/client/ui/SettingsForm.tsx
|
|
40511
40669
|
/**
|
|
@@ -40551,28 +40709,28 @@ window.__ModuleLoader__.load({
|
|
|
40551
40709
|
});
|
|
40552
40710
|
}
|
|
40553
40711
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/SettingsValueField.module.css.mjs
|
|
40554
|
-
const css$
|
|
40555
|
-
const key$
|
|
40556
|
-
let tag$
|
|
40557
|
-
if (tag$
|
|
40558
|
-
tag$
|
|
40559
|
-
tag$
|
|
40560
|
-
tag$
|
|
40561
|
-
document.head.appendChild(tag$
|
|
40712
|
+
const css$6 = ".rp_AFBKEG_field{flex-direction:column;gap:6px;padding:12px 0;display:flex}.rp_AFBKEG_field+.rp_AFBKEG_field{border-top:.5px solid var(--dsw-alias-border-l2)}.rp_AFBKEG_head{align-items:center;gap:8px;display:flex}.rp_AFBKEG_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:13px;font-weight:500;line-height:1.5}.rp_AFBKEG_labelGroup{flex:1;align-items:center;gap:4px;min-width:0;display:flex}.rp_AFBKEG_labelGroup>.rp_AFBKEG_label{flex:0 auto}.rp_AFBKEG_helpButton{border-radius:var(--dsw-radius-sm);width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.rp_AFBKEG_helpButton[aria-expanded=true]{background:var(--dsw-alias-bg-layer-4);color:var(--dsw-alias-label-secondary)}@media (hover:hover){.rp_AFBKEG_helpButton:hover{background:var(--dsw-alias-bg-layer-4);color:var(--dsw-alias-label-secondary)}}.rp_AFBKEG_helpButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.rp_AFBKEG_help{color:var(--dsw-alias-label-secondary);padding:10px 0 0;font-size:12px;line-height:1.6}.rp_AFBKEG_help>p{margin:0}.rp_AFBKEG_help>p+p{margin-top:8px}.rp_AFBKEG_badges{align-items:center;gap:8px;display:inline-flex}.rp_AFBKEG_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}@media (hover:hover){.rp_AFBKEG_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}}.rp_AFBKEG_reset:disabled{cursor:default}.rp_AFBKEG_input{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);padding:0 12px;font-size:13px;line-height:1.5}.rp_AFBKEG_input:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_AFBKEG_input:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.rp_AFBKEG_input[aria-invalid=true]{border-color:var(--dsw-alias-state-error-primary)}.rp_AFBKEG_invalid{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:1.5}.rp_AFBKEG_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}";
|
|
40713
|
+
const key$6 = "src/client/ui/SettingsValueField.module.css";
|
|
40714
|
+
let tag$6 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$6) + "]");
|
|
40715
|
+
if (tag$6 === null) {
|
|
40716
|
+
tag$6 = document.createElement("style");
|
|
40717
|
+
tag$6.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
40718
|
+
tag$6.dataset.pluginCss = key$6;
|
|
40719
|
+
document.head.appendChild(tag$6);
|
|
40562
40720
|
}
|
|
40563
|
-
tag$
|
|
40721
|
+
tag$6.textContent = css$6;
|
|
40564
40722
|
var SettingsValueField_module_css_default = {
|
|
40565
|
-
"head": "rp_AFBKEG_head",
|
|
40566
|
-
"label": "rp_AFBKEG_label",
|
|
40567
|
-
"reset": "rp_AFBKEG_reset",
|
|
40568
|
-
"helpButton": "rp_AFBKEG_helpButton",
|
|
40569
40723
|
"input": "rp_AFBKEG_input",
|
|
40570
|
-
"help": "rp_AFBKEG_help",
|
|
40571
40724
|
"hint": "rp_AFBKEG_hint",
|
|
40572
|
-
"
|
|
40573
|
-
"field": "rp_AFBKEG_field",
|
|
40725
|
+
"head": "rp_AFBKEG_head",
|
|
40574
40726
|
"labelGroup": "rp_AFBKEG_labelGroup",
|
|
40575
|
-
"
|
|
40727
|
+
"help": "rp_AFBKEG_help",
|
|
40728
|
+
"label": "rp_AFBKEG_label",
|
|
40729
|
+
"invalid": "rp_AFBKEG_invalid",
|
|
40730
|
+
"field": "rp_AFBKEG_field",
|
|
40731
|
+
"badges": "rp_AFBKEG_badges",
|
|
40732
|
+
"helpButton": "rp_AFBKEG_helpButton",
|
|
40733
|
+
"reset": "rp_AFBKEG_reset"
|
|
40576
40734
|
};
|
|
40577
40735
|
// src/client/ui/SettingsValueField.tsx
|
|
40578
40736
|
/**
|
|
@@ -40647,27 +40805,27 @@ window.__ModuleLoader__.load({
|
|
|
40647
40805
|
});
|
|
40648
40806
|
}
|
|
40649
40807
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/settings/CatalogueSettings.module.css.mjs
|
|
40650
|
-
const css$
|
|
40651
|
-
const key$
|
|
40652
|
-
let tag$
|
|
40653
|
-
if (tag$
|
|
40654
|
-
tag$
|
|
40655
|
-
tag$
|
|
40656
|
-
tag$
|
|
40657
|
-
document.head.appendChild(tag$
|
|
40808
|
+
const css$5 = ".rp_KPhXDa_section{flex-direction:column;gap:8px;margin-top:24px;display:flex}.rp_KPhXDa_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_KPhXDa_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_KPhXDa_row{border-bottom:.5px solid var(--dsw-alias-border-l3);grid-template-columns:minmax(80px,1fr) minmax(160px,2fr) auto;align-items:end;gap:8px;padding-bottom:8px;display:grid}.rp_KPhXDa_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_KPhXDa_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_KPhXDa_problem{color:var(--dsw-alias-state-error-primary);grid-column:1/-1;margin:0;font-size:12px}.rp_KPhXDa_keyHint{color:var(--dsw-alias-label-tertiary);grid-column:1/-1;margin:0;font-size:12px}.rp_KPhXDa_actions{flex-wrap:wrap;gap:8px;display:flex}.rp_KPhXDa_keyArea{grid-column:1/-1;grid-template-columns:minmax(120px,1fr) minmax(160px,2fr) auto;align-items:end;gap:8px;display:grid}@media (width<=720px){.rp_KPhXDa_row,.rp_KPhXDa_keyArea{grid-template-columns:minmax(0,1fr);align-items:stretch}.rp_KPhXDa_actions{justify-content:flex-start}}";
|
|
40809
|
+
const key$5 = "src/client/settings/CatalogueSettings.module.css";
|
|
40810
|
+
let tag$5 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$5) + "]");
|
|
40811
|
+
if (tag$5 === null) {
|
|
40812
|
+
tag$5 = document.createElement("style");
|
|
40813
|
+
tag$5.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
40814
|
+
tag$5.dataset.pluginCss = key$5;
|
|
40815
|
+
document.head.appendChild(tag$5);
|
|
40658
40816
|
}
|
|
40659
|
-
tag$
|
|
40817
|
+
tag$5.textContent = css$5;
|
|
40660
40818
|
var CatalogueSettings_module_css_default = {
|
|
40661
|
-
"row": "rp_KPhXDa_row",
|
|
40662
|
-
"keyHint": "rp_KPhXDa_keyHint",
|
|
40663
|
-
"problem": "rp_KPhXDa_problem",
|
|
40664
40819
|
"title": "rp_KPhXDa_title",
|
|
40665
|
-
"field": "rp_KPhXDa_field",
|
|
40666
|
-
"label": "rp_KPhXDa_label",
|
|
40667
40820
|
"keyArea": "rp_KPhXDa_keyArea",
|
|
40821
|
+
"label": "rp_KPhXDa_label",
|
|
40822
|
+
"problem": "rp_KPhXDa_problem",
|
|
40823
|
+
"keyHint": "rp_KPhXDa_keyHint",
|
|
40668
40824
|
"actions": "rp_KPhXDa_actions",
|
|
40825
|
+
"field": "rp_KPhXDa_field",
|
|
40669
40826
|
"section": "rp_KPhXDa_section",
|
|
40670
|
-
"hint": "rp_KPhXDa_hint"
|
|
40827
|
+
"hint": "rp_KPhXDa_hint",
|
|
40828
|
+
"row": "rp_KPhXDa_row"
|
|
40671
40829
|
};
|
|
40672
40830
|
// src/client/settings/AuthoringToolSettings.tsx
|
|
40673
40831
|
const boardOf = (text) => {
|
|
@@ -40896,29 +41054,29 @@ window.__ModuleLoader__.load({
|
|
|
40896
41054
|
parse: (draft) => parseDraft(spec, draft)
|
|
40897
41055
|
}));
|
|
40898
41056
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/settings/AssistantSettings.module.css.mjs
|
|
40899
|
-
const css$
|
|
40900
|
-
const key$
|
|
40901
|
-
let tag$
|
|
40902
|
-
if (tag$
|
|
40903
|
-
tag$
|
|
40904
|
-
tag$
|
|
40905
|
-
tag$
|
|
40906
|
-
document.head.appendChild(tag$
|
|
41057
|
+
const css$4 = ".rp_ZwzM4q_section{flex-direction:column;gap:8px;margin-top:24px;display:flex}.rp_ZwzM4q_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_ZwzM4q_hint,.rp_ZwzM4q_fieldHint,.rp_ZwzM4q_invalid{margin:0;font-size:12px;line-height:18px}.rp_ZwzM4q_hint{color:var(--dsw-alias-label-secondary);font-size:13px}.rp_ZwzM4q_fields{min-width:0}.rp_ZwzM4q_fields>*+*{border-top:.5px solid var(--dsw-alias-border-l2)}.rp_ZwzM4q_field{flex-direction:column;gap:6px;padding:12px 0;display:flex}.rp_ZwzM4q_head,.rp_ZwzM4q_badges{align-items:center;gap:8px;display:flex}.rp_ZwzM4q_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:13px;font-weight:500;line-height:20px}.rp_ZwzM4q_reset{color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:12px}.rp_ZwzM4q_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}.rp_ZwzM4q_reset:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_ZwzM4q_select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-3);width:100%;height:34px;color:var(--dsw-alias-label-primary);font:inherit;padding:0 12px;font-size:13px}.rp_ZwzM4q_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_ZwzM4q_select[aria-invalid=true]{border-color:var(--dsw-alias-state-error-primary)}.rp_ZwzM4q_fieldHint{color:var(--dsw-alias-label-tertiary)}.rp_ZwzM4q_invalid{color:var(--dsw-alias-state-error-primary)}@media (width<=520px){.rp_ZwzM4q_head{align-items:flex-start}.rp_ZwzM4q_badges{flex-wrap:wrap;justify-content:flex-end}}";
|
|
41058
|
+
const key$4 = "src/client/settings/AssistantSettings.module.css";
|
|
41059
|
+
let tag$4 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$4) + "]");
|
|
41060
|
+
if (tag$4 === null) {
|
|
41061
|
+
tag$4 = document.createElement("style");
|
|
41062
|
+
tag$4.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
41063
|
+
tag$4.dataset.pluginCss = key$4;
|
|
41064
|
+
document.head.appendChild(tag$4);
|
|
40907
41065
|
}
|
|
40908
|
-
tag$
|
|
41066
|
+
tag$4.textContent = css$4;
|
|
40909
41067
|
var AssistantSettings_module_css_default = {
|
|
40910
|
-
"head": "rp_ZwzM4q_head",
|
|
40911
41068
|
"fieldHint": "rp_ZwzM4q_fieldHint",
|
|
40912
|
-
"
|
|
41069
|
+
"label": "rp_ZwzM4q_label",
|
|
40913
41070
|
"fields": "rp_ZwzM4q_fields",
|
|
40914
|
-
"
|
|
40915
|
-
"select": "rp_ZwzM4q_select",
|
|
41071
|
+
"title": "rp_ZwzM4q_title",
|
|
40916
41072
|
"section": "rp_ZwzM4q_section",
|
|
40917
41073
|
"hint": "rp_ZwzM4q_hint",
|
|
41074
|
+
"invalid": "rp_ZwzM4q_invalid",
|
|
40918
41075
|
"field": "rp_ZwzM4q_field",
|
|
40919
|
-
"
|
|
40920
|
-
"
|
|
40921
|
-
"
|
|
41076
|
+
"head": "rp_ZwzM4q_head",
|
|
41077
|
+
"select": "rp_ZwzM4q_select",
|
|
41078
|
+
"reset": "rp_ZwzM4q_reset",
|
|
41079
|
+
"badges": "rp_ZwzM4q_badges"
|
|
40922
41080
|
};
|
|
40923
41081
|
// src/client/settings/AssistantSettings.tsx
|
|
40924
41082
|
function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
|
|
@@ -43343,39 +43501,40 @@ window.__ModuleLoader__.load({
|
|
|
43343
43501
|
}
|
|
43344
43502
|
};
|
|
43345
43503
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/NarrationView.module.css.mjs
|
|
43346
|
-
const css$
|
|
43347
|
-
const key$
|
|
43348
|
-
let tag$
|
|
43349
|
-
if (tag$
|
|
43350
|
-
tag$
|
|
43351
|
-
tag$
|
|
43352
|
-
tag$
|
|
43353
|
-
document.head.appendChild(tag$
|
|
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}";
|
|
43505
|
+
const key$3 = "src/client/transcript/NarrationView.module.css";
|
|
43506
|
+
let tag$3 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$3) + "]");
|
|
43507
|
+
if (tag$3 === null) {
|
|
43508
|
+
tag$3 = document.createElement("style");
|
|
43509
|
+
tag$3.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
43510
|
+
tag$3.dataset.pluginCss = key$3;
|
|
43511
|
+
document.head.appendChild(tag$3);
|
|
43354
43512
|
}
|
|
43355
|
-
tag$
|
|
43513
|
+
tag$3.textContent = css$3;
|
|
43356
43514
|
var NarrationView_module_css_default = {
|
|
43357
|
-
"
|
|
43358
|
-
"words": "rp_NFPimG_words",
|
|
43359
|
-
"images": "rp_NFPimG_images",
|
|
43360
|
-
"name": "rp_NFPimG_name",
|
|
43361
|
-
"line": "rp_NFPimG_line",
|
|
43362
|
-
"sceneImage": "rp_NFPimG_sceneImage",
|
|
43515
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
43363
43516
|
"preview": "rp_NFPimG_preview",
|
|
43517
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
43518
|
+
"imageError": "rp_NFPimG_imageError",
|
|
43364
43519
|
"output": "rp_NFPimG_output",
|
|
43365
|
-
"
|
|
43366
|
-
"
|
|
43367
|
-
"diceSummary": "rp_NFPimG_diceSummary",
|
|
43368
|
-
"dice": "rp_NFPimG_dice",
|
|
43369
|
-
"oocLabel": "rp_NFPimG_oocLabel",
|
|
43520
|
+
"narration": "rp_NFPimG_narration",
|
|
43521
|
+
"sceneImage": "rp_NFPimG_sceneImage",
|
|
43370
43522
|
"diceList": "rp_NFPimG_diceList",
|
|
43371
|
-
"
|
|
43523
|
+
"speech": "rp_NFPimG_speech",
|
|
43524
|
+
"words": "rp_NFPimG_words",
|
|
43525
|
+
"images": "rp_NFPimG_images",
|
|
43372
43526
|
"playLine": "rp_NFPimG_playLine",
|
|
43373
|
-
"
|
|
43527
|
+
"oocNote": "rp_NFPimG_oocNote",
|
|
43374
43528
|
"oocRefused": "rp_NFPimG_oocRefused",
|
|
43375
|
-
"
|
|
43376
|
-
"
|
|
43529
|
+
"dice": "rp_NFPimG_dice",
|
|
43530
|
+
"diceSummary": "rp_NFPimG_diceSummary",
|
|
43531
|
+
"avatarImage": "rp_NFPimG_avatarImage",
|
|
43532
|
+
"oocLabel": "rp_NFPimG_oocLabel",
|
|
43533
|
+
"name": "rp_NFPimG_name",
|
|
43534
|
+
"actions": "rp_NFPimG_actions",
|
|
43377
43535
|
"avatar": "rp_NFPimG_avatar",
|
|
43378
|
-
"
|
|
43536
|
+
"line": "rp_NFPimG_line",
|
|
43537
|
+
"note": "rp_NFPimG_note"
|
|
43379
43538
|
};
|
|
43380
43539
|
// src/client/transcript/PreviewNode.tsx
|
|
43381
43540
|
/**
|
|
@@ -43393,6 +43552,81 @@ window.__ModuleLoader__.load({
|
|
|
43393
43552
|
})
|
|
43394
43553
|
});
|
|
43395
43554
|
}
|
|
43555
|
+
// src/client/transcript/branching.ts
|
|
43556
|
+
/** Told to the window when a branch has its session, so that the player can be asked to name it; the branch feature listens. */
|
|
43557
|
+
const BRANCHED_EVENT = "roleplay:branched";
|
|
43558
|
+
/**
|
|
43559
|
+
* Branches a roleplay chat after the turn that ended at `atSeq`, and shows the new chat.
|
|
43560
|
+
* Resolved on use, so a client without the services fails at the click.
|
|
43561
|
+
*/
|
|
43562
|
+
async function branchAt(scope, chat, atSeq) {
|
|
43563
|
+
const sessions = scope.get("sessions");
|
|
43564
|
+
const workspace = scope.get("uiWorkspace");
|
|
43565
|
+
if (sessions === void 0 || workspace === void 0) throw new Error("branching is not available in this client");
|
|
43566
|
+
const branch = await sessions.fork({
|
|
43567
|
+
sessionId: chat,
|
|
43568
|
+
atSeq,
|
|
43569
|
+
increaseTitle: true
|
|
43570
|
+
});
|
|
43571
|
+
const response = await fetch("roleplay-api/sessions/branch", {
|
|
43572
|
+
method: "POST",
|
|
43573
|
+
headers: { "content-type": "application/json" },
|
|
43574
|
+
body: JSON.stringify({
|
|
43575
|
+
chat: branch,
|
|
43576
|
+
parent: chat,
|
|
43577
|
+
atSeq
|
|
43578
|
+
})
|
|
43579
|
+
});
|
|
43580
|
+
if (!response.ok) throw new Error((await response.json().catch(() => ({}))).message ?? `the branch could not be made (${response.status})`);
|
|
43581
|
+
globalThis.window?.dispatchEvent(new CustomEvent(BRANCHED_EVENT, { detail: { chat: branch } }));
|
|
43582
|
+
workspace.openSession(branch);
|
|
43583
|
+
}
|
|
43584
|
+
// src/client/media-capabilities.ts
|
|
43585
|
+
/** A choice in the provider settings takes effect without a restart, so the answer is asked for again after a short while. */
|
|
43586
|
+
const FRESH_MS = 15e3;
|
|
43587
|
+
let asked;
|
|
43588
|
+
function mediaCapabilities() {
|
|
43589
|
+
if (asked !== void 0 && Date.now() - asked.at < FRESH_MS) return asked.value;
|
|
43590
|
+
const value = fetch("roleplay-api/speech/capabilities", { credentials: "same-origin" }).then(async (response) => {
|
|
43591
|
+
if (!response.ok) throw new Error(String(response.status));
|
|
43592
|
+
const body = await response.json();
|
|
43593
|
+
return {
|
|
43594
|
+
synthesis: body.synthesis === true,
|
|
43595
|
+
images: body.images === true
|
|
43596
|
+
};
|
|
43597
|
+
}).catch(() => ({
|
|
43598
|
+
synthesis: true,
|
|
43599
|
+
images: true
|
|
43600
|
+
}));
|
|
43601
|
+
asked = {
|
|
43602
|
+
at: Date.now(),
|
|
43603
|
+
value
|
|
43604
|
+
};
|
|
43605
|
+
return value;
|
|
43606
|
+
}
|
|
43607
|
+
/**
|
|
43608
|
+
* The capabilities, asked for now and then again, and told to `notify` as they change; the returned function stops the asking. Plain, so that a test can watch it without a page.
|
|
43609
|
+
*/
|
|
43610
|
+
function watchMediaCapabilities(notify) {
|
|
43611
|
+
let stopped = false;
|
|
43612
|
+
const load = () => {
|
|
43613
|
+
mediaCapabilities().then((value) => {
|
|
43614
|
+
if (!stopped) notify(value);
|
|
43615
|
+
}, () => void 0);
|
|
43616
|
+
};
|
|
43617
|
+
load();
|
|
43618
|
+
const timer = setInterval(load, FRESH_MS);
|
|
43619
|
+
return () => {
|
|
43620
|
+
stopped = true;
|
|
43621
|
+
clearInterval(timer);
|
|
43622
|
+
};
|
|
43623
|
+
}
|
|
43624
|
+
/** The capabilities, or nothing until the host has answered, so that a control that may not belong is not shown and taken away again. */
|
|
43625
|
+
function useMediaCapabilities() {
|
|
43626
|
+
const [found, setFound] = (0, react.useState)();
|
|
43627
|
+
(0, react.useEffect)(() => watchMediaCapabilities(setFound), []);
|
|
43628
|
+
return found;
|
|
43629
|
+
}
|
|
43396
43630
|
// src/client/transcript/NarrationView.tsx
|
|
43397
43631
|
/** A steady colour per speaker, so a character looks the same wherever it speaks. */
|
|
43398
43632
|
function hueOf(name) {
|
|
@@ -43400,8 +43634,35 @@ window.__ModuleLoader__.load({
|
|
|
43400
43634
|
for (const char of name) hash = (hash * 31 + char.charCodeAt(0)) % 360;
|
|
43401
43635
|
return hash;
|
|
43402
43636
|
}
|
|
43403
|
-
/**
|
|
43404
|
-
|
|
43637
|
+
/** Characters whose portrait the host has none of, so that each line does not ask again. */
|
|
43638
|
+
const withoutPortrait = /* @__PURE__ */ new Set();
|
|
43639
|
+
/** The round picture of a speaker: its portrait when it has one (the story's canonical reference image), else the first letter on a colour of its own. */
|
|
43640
|
+
function Avatar({ sessionId, character, name }) {
|
|
43641
|
+
const story = sessionId.startsWith("session-") ? sessionId.slice(8) : sessionId;
|
|
43642
|
+
const key = `${story}/${character}`;
|
|
43643
|
+
const [missing, setMissing] = (0, react.useState)(withoutPortrait.has(key));
|
|
43644
|
+
if (!missing) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
43645
|
+
className: `${NarrationView_module_css_default.avatar} ${NarrationView_module_css_default.avatarImage}`,
|
|
43646
|
+
"data-rp": "avatar",
|
|
43647
|
+
src: `roleplay-api/sessions/world/character/portrait/file?id=${encodeURIComponent(story)}&key=${encodeURIComponent(character)}`,
|
|
43648
|
+
alt: "",
|
|
43649
|
+
"aria-hidden": "true",
|
|
43650
|
+
decoding: "async",
|
|
43651
|
+
onError: () => {
|
|
43652
|
+
withoutPortrait.add(key);
|
|
43653
|
+
setMissing(true);
|
|
43654
|
+
}
|
|
43655
|
+
});
|
|
43656
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
43657
|
+
className: NarrationView_module_css_default.avatar,
|
|
43658
|
+
"data-rp": "avatar",
|
|
43659
|
+
style: { background: `hsl(${hueOf(name)} 32% 40%)` },
|
|
43660
|
+
"aria-hidden": "true",
|
|
43661
|
+
children: Array.from(name)[0]?.toUpperCase()
|
|
43662
|
+
});
|
|
43663
|
+
}
|
|
43664
|
+
/** Plays the segments of a turn as speech, narration and each speaker with its own voice; `playing` is true while the audio is being made or played. */
|
|
43665
|
+
function useNarrationPlayer(sessionId) {
|
|
43405
43666
|
const [playing, setPlaying] = (0, react.useState)(false);
|
|
43406
43667
|
const play = async (segments) => {
|
|
43407
43668
|
setPlaying(true);
|
|
@@ -43435,25 +43696,36 @@ window.__ModuleLoader__.load({
|
|
|
43435
43696
|
setPlaying(false);
|
|
43436
43697
|
}
|
|
43437
43698
|
};
|
|
43699
|
+
return {
|
|
43700
|
+
playing,
|
|
43701
|
+
play
|
|
43702
|
+
};
|
|
43703
|
+
}
|
|
43704
|
+
/** The button that plays a whole turn; it sits beside the picture button under the turn. */
|
|
43705
|
+
function PlayTurn({ data, player, t }) {
|
|
43706
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Button, {
|
|
43707
|
+
size: "sm",
|
|
43708
|
+
disabled: player.playing,
|
|
43709
|
+
title: t("speakAll"),
|
|
43710
|
+
onClick: () => {
|
|
43711
|
+
player.play(data.segments);
|
|
43712
|
+
},
|
|
43713
|
+
children: [
|
|
43714
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlay, { "aria-hidden": "true" }),
|
|
43715
|
+
" ",
|
|
43716
|
+
t(player.playing ? "speaking" : "speakAll")
|
|
43717
|
+
]
|
|
43718
|
+
});
|
|
43719
|
+
}
|
|
43720
|
+
/** What the player reads for one turn: the characters' words and the narration between them. */
|
|
43721
|
+
function NarrationView({ data, sessionId, t, player }) {
|
|
43722
|
+
const { playing, play } = player;
|
|
43723
|
+
const speech = useMediaCapabilities()?.synthesis === true;
|
|
43438
43724
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43439
43725
|
className: NarrationView_module_css_default.output,
|
|
43440
43726
|
"data-testid": "roleplay-narration",
|
|
43441
43727
|
"data-rp": "narration",
|
|
43442
43728
|
children: [
|
|
43443
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
43444
|
-
type: "button",
|
|
43445
|
-
className: NarrationView_module_css_default.playAll,
|
|
43446
|
-
disabled: playing,
|
|
43447
|
-
title: t("speakAll"),
|
|
43448
|
-
onClick: () => {
|
|
43449
|
-
play(data.segments);
|
|
43450
|
-
},
|
|
43451
|
-
children: [
|
|
43452
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlay, { "aria-hidden": "true" }),
|
|
43453
|
-
" ",
|
|
43454
|
-
t(playing ? "speaking" : "speakAll")
|
|
43455
|
-
]
|
|
43456
|
-
}),
|
|
43457
43729
|
data.ooc !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
43458
43730
|
className: data.ooc.legal ? NarrationView_module_css_default.oocNote : NarrationView_module_css_default.oocRefused,
|
|
43459
43731
|
"data-testid": "roleplay-ooc",
|
|
@@ -43475,18 +43747,16 @@ window.__ModuleLoader__.load({
|
|
|
43475
43747
|
className: NarrationView_module_css_default.line,
|
|
43476
43748
|
"data-testid": "roleplay-utterance",
|
|
43477
43749
|
"data-rp": "utterance",
|
|
43478
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
43479
|
-
|
|
43480
|
-
|
|
43481
|
-
|
|
43482
|
-
"aria-hidden": "true",
|
|
43483
|
-
children: Array.from(segment.name)[0]?.toUpperCase()
|
|
43750
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Avatar, {
|
|
43751
|
+
sessionId,
|
|
43752
|
+
character: segment.character,
|
|
43753
|
+
name: segment.name
|
|
43484
43754
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43485
43755
|
className: NarrationView_module_css_default.speech,
|
|
43486
43756
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
43487
43757
|
className: NarrationView_module_css_default.name,
|
|
43488
43758
|
"data-rp": "speaker",
|
|
43489
|
-
children: [segment.name, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43759
|
+
children: [segment.name, speech && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43490
43760
|
type: "button",
|
|
43491
43761
|
className: NarrationView_module_css_default.playLine,
|
|
43492
43762
|
disabled: playing,
|
|
@@ -43534,7 +43804,9 @@ window.__ModuleLoader__.load({
|
|
|
43534
43804
|
if (!response.ok) throw new Error((await response.json().catch(() => ({}))).message ?? `image request failed (${response.status})`);
|
|
43535
43805
|
return await response.json();
|
|
43536
43806
|
}
|
|
43537
|
-
|
|
43807
|
+
/** The pictures of a turn and the buttons under it: the one that plays the turn (`leading`, when speech is available) and the one that makes a picture (when an image service is selected). */
|
|
43808
|
+
function SceneImages({ chat, node, t, leading }) {
|
|
43809
|
+
const capabilities = useMediaCapabilities();
|
|
43538
43810
|
const [status, setStatus] = (0, react.useState)();
|
|
43539
43811
|
const [error, setError] = (0, react.useState)();
|
|
43540
43812
|
const refresh = (0, react.useCallback)(() => {
|
|
@@ -43546,8 +43818,8 @@ window.__ModuleLoader__.load({
|
|
|
43546
43818
|
});
|
|
43547
43819
|
}, [chat, node]);
|
|
43548
43820
|
(0, react.useEffect)(() => {
|
|
43549
|
-
refresh();
|
|
43550
|
-
}, [refresh]);
|
|
43821
|
+
if (node !== void 0) refresh();
|
|
43822
|
+
}, [refresh, node]);
|
|
43551
43823
|
(0, react.useEffect)(() => {
|
|
43552
43824
|
if (status?.state !== "generating") return;
|
|
43553
43825
|
const timer = window.setTimeout(() => {
|
|
@@ -43570,12 +43842,14 @@ window.__ModuleLoader__.load({
|
|
|
43570
43842
|
refresh();
|
|
43571
43843
|
});
|
|
43572
43844
|
};
|
|
43573
|
-
|
|
43845
|
+
const canGenerate = node !== void 0 && capabilities?.images === true && status !== void 0 && status.mode !== "off";
|
|
43846
|
+
const pictures = status?.images ?? [];
|
|
43847
|
+
if (leading === void 0 && !canGenerate && pictures.length === 0 && (error ?? status?.message) === void 0) return null;
|
|
43574
43848
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43575
43849
|
className: NarrationView_module_css_default.images,
|
|
43576
43850
|
"data-testid": "roleplay-scene-images",
|
|
43577
43851
|
children: [
|
|
43578
|
-
|
|
43852
|
+
pictures.map((image) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MediaImage, {
|
|
43579
43853
|
src: image.url,
|
|
43580
43854
|
alt: t("sceneImage") ?? "",
|
|
43581
43855
|
details: image.details,
|
|
@@ -43591,19 +43865,25 @@ window.__ModuleLoader__.load({
|
|
|
43591
43865
|
className: NarrationView_module_css_default.sceneImage ?? "",
|
|
43592
43866
|
onOpenClassName: NarrationView_module_css_default.imageButton ?? ""
|
|
43593
43867
|
}, image.serial)),
|
|
43594
|
-
|
|
43595
|
-
className: NarrationView_module_css_default.
|
|
43596
|
-
children:
|
|
43597
|
-
|
|
43598
|
-
|
|
43599
|
-
|
|
43600
|
-
|
|
43601
|
-
|
|
43602
|
-
|
|
43603
|
-
|
|
43604
|
-
|
|
43605
|
-
|
|
43606
|
-
|
|
43868
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43869
|
+
className: NarrationView_module_css_default.actions,
|
|
43870
|
+
children: [
|
|
43871
|
+
leading,
|
|
43872
|
+
canGenerate && status.state === "generating" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
43873
|
+
className: NarrationView_module_css_default.imageStatus,
|
|
43874
|
+
children: t("imageGenerating")
|
|
43875
|
+
}),
|
|
43876
|
+
canGenerate && (status.state === "absent" || status.state === "failed") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
43877
|
+
size: "sm",
|
|
43878
|
+
onClick: generate,
|
|
43879
|
+
children: status.state === "failed" ? t("imageRetry") : t("imageGenerate")
|
|
43880
|
+
}),
|
|
43881
|
+
canGenerate && status.state === "ready" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
43882
|
+
size: "sm",
|
|
43883
|
+
onClick: generate,
|
|
43884
|
+
children: t("imageAnother")
|
|
43885
|
+
})
|
|
43886
|
+
]
|
|
43607
43887
|
}),
|
|
43608
43888
|
(error ?? status?.message) !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
43609
43889
|
className: NarrationView_module_css_default.imageError,
|
|
@@ -43616,35 +43896,79 @@ window.__ModuleLoader__.load({
|
|
|
43616
43896
|
/** The output of a turn inside the normal Chat; the Chat gives its own translator, so ours comes from outside. */
|
|
43617
43897
|
function narrationNode(t) {
|
|
43618
43898
|
return function NarrationNode({ node, sessionId }) {
|
|
43899
|
+
const player = useNarrationPlayer(sessionId);
|
|
43900
|
+
const play = useMediaCapabilities()?.synthesis === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlayTurn, {
|
|
43901
|
+
data: node.data,
|
|
43902
|
+
player,
|
|
43903
|
+
t
|
|
43904
|
+
}) : void 0;
|
|
43619
43905
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NarrationView, {
|
|
43620
43906
|
data: node.data,
|
|
43621
43907
|
sessionId,
|
|
43622
|
-
t
|
|
43623
|
-
|
|
43908
|
+
t,
|
|
43909
|
+
player
|
|
43910
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SceneImages, {
|
|
43624
43911
|
chat: sessionId,
|
|
43625
43912
|
node: node.data.timelineNode,
|
|
43626
|
-
t
|
|
43913
|
+
t,
|
|
43914
|
+
leading: play
|
|
43627
43915
|
})] });
|
|
43628
43916
|
};
|
|
43629
43917
|
}
|
|
43630
43918
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/SuggestionsDock.module.css.mjs
|
|
43631
|
-
const css$
|
|
43632
|
-
const key$
|
|
43633
|
-
let tag$
|
|
43634
|
-
if (tag$
|
|
43635
|
-
tag$
|
|
43636
|
-
tag$
|
|
43637
|
-
tag$
|
|
43638
|
-
document.head.appendChild(tag$
|
|
43919
|
+
const css$2 = ".rp_rWH4DG_dock{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:4px;width:min(800px,100%);min-width:0;margin:4px auto 8px;padding:0 16px;display:flex}.rp_rWH4DG_label{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px}.rp_rWH4DG_chip{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:var(--dsw-alias-label-secondary);font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere;padding:5px 10px;font-size:13px;line-height:20px}.rp_rWH4DG_chip:hover,.rp_rWH4DG_chip:focus-visible{border-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);outline:none}.rp_rWH4DG_card{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);flex-direction:column;gap:2px;padding:6px 10px;display:flex}.rp_rWH4DG_lines{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;padding-left:16px;font-size:13px;line-height:20px}@media (pointer:coarse){.rp_rWH4DG_chip{min-height:44px}}";
|
|
43920
|
+
const key$2 = "src/client/transcript/SuggestionsDock.module.css";
|
|
43921
|
+
let tag$2 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$2) + "]");
|
|
43922
|
+
if (tag$2 === null) {
|
|
43923
|
+
tag$2 = document.createElement("style");
|
|
43924
|
+
tag$2.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
43925
|
+
tag$2.dataset.pluginCss = key$2;
|
|
43926
|
+
document.head.appendChild(tag$2);
|
|
43639
43927
|
}
|
|
43640
|
-
tag$
|
|
43928
|
+
tag$2.textContent = css$2;
|
|
43641
43929
|
var SuggestionsDock_module_css_default = {
|
|
43642
|
-
"chip": "rp_rWH4DG_chip",
|
|
43643
43930
|
"dock": "rp_rWH4DG_dock",
|
|
43931
|
+
"chip": "rp_rWH4DG_chip",
|
|
43644
43932
|
"label": "rp_rWH4DG_label",
|
|
43645
43933
|
"card": "rp_rWH4DG_card",
|
|
43646
43934
|
"lines": "rp_rWH4DG_lines"
|
|
43647
43935
|
};
|
|
43936
|
+
// src/client/transcript/dock-fold.ts
|
|
43937
|
+
const KEY = "roleplay.dock.folded";
|
|
43938
|
+
/** The browser's storage, which is missing where there is no page and may refuse in a private window. */
|
|
43939
|
+
const storage = () => globalThis.localStorage;
|
|
43940
|
+
/** Whether the person has folded the story tools away, as this browser last said. */
|
|
43941
|
+
function readFolded() {
|
|
43942
|
+
try {
|
|
43943
|
+
return storage()?.getItem(KEY) === "1";
|
|
43944
|
+
} catch {
|
|
43945
|
+
return false;
|
|
43946
|
+
}
|
|
43947
|
+
}
|
|
43948
|
+
function writeFolded(folded) {
|
|
43949
|
+
try {
|
|
43950
|
+
storage()?.setItem(KEY, folded ? "1" : "0");
|
|
43951
|
+
} catch {}
|
|
43952
|
+
}
|
|
43953
|
+
let folded = readFolded();
|
|
43954
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
43955
|
+
/** Tells the docks when the choice changes; the store the hook reads. */
|
|
43956
|
+
function subscribeFolded(listener) {
|
|
43957
|
+
listeners.add(listener);
|
|
43958
|
+
return () => {
|
|
43959
|
+
listeners.delete(listener);
|
|
43960
|
+
};
|
|
43961
|
+
}
|
|
43962
|
+
/** Flips the choice, keeps it in this browser for every story, and tells the docks. */
|
|
43963
|
+
function toggleFolded() {
|
|
43964
|
+
folded = !folded;
|
|
43965
|
+
writeFolded(folded);
|
|
43966
|
+
for (const listener of listeners) listener();
|
|
43967
|
+
}
|
|
43968
|
+
/** Whether the person has folded the story tools (the turn buttons and the suggested replies) away; it is kept in this browser only, for every story. */
|
|
43969
|
+
function useDockFolded() {
|
|
43970
|
+
return [(0, react.useSyncExternalStore)(subscribeFolded, () => folded), toggleFolded];
|
|
43971
|
+
}
|
|
43648
43972
|
// src/client/transcript/SuggestionsDock.tsx
|
|
43649
43973
|
/** The suggestions are made after the output is shown, so they are asked for until they are there. */
|
|
43650
43974
|
const POLL_MS = 2e3;
|
|
@@ -43659,6 +43983,7 @@ window.__ModuleLoader__.load({
|
|
|
43659
43983
|
*/
|
|
43660
43984
|
function SuggestionsDock({ useChat, useSession, pick, notes, t }) {
|
|
43661
43985
|
const running = useSession((session) => session.running);
|
|
43986
|
+
const [folded] = useDockFolded();
|
|
43662
43987
|
const latest = useChat((chat) => {
|
|
43663
43988
|
const nodes = [...chat.nodes.values()];
|
|
43664
43989
|
const output = nodes.filter((node) => node.kind === NARRATION_NODE).reduce((best, node) => (node.anchorSeq ?? 0) >= (best?.anchorSeq ?? -1) ? node : best, void 0);
|
|
@@ -43730,7 +44055,8 @@ window.__ModuleLoader__.load({
|
|
|
43730
44055
|
if (timer !== void 0) clearTimeout(timer);
|
|
43731
44056
|
};
|
|
43732
44057
|
}, [latest, notes]);
|
|
43733
|
-
|
|
44058
|
+
const shownOffers = folded ? 0 : offered.length;
|
|
44059
|
+
if (running || shownOffers === 0 && meanwhile.length === 0 && unfinished.length === 0 && unwritten === 0 && messages.length === 0) return null;
|
|
43734
44060
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43735
44061
|
className: SuggestionsDock_module_css_default.dock,
|
|
43736
44062
|
"data-testid": "roleplay-suggestions",
|
|
@@ -43774,11 +44100,11 @@ window.__ModuleLoader__.load({
|
|
|
43774
44100
|
children: meanwhile.map((line) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: line }, line))
|
|
43775
44101
|
})]
|
|
43776
44102
|
}),
|
|
43777
|
-
offered.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44103
|
+
!folded && offered.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
43778
44104
|
className: SuggestionsDock_module_css_default.label,
|
|
43779
44105
|
children: t("suggestions")
|
|
43780
44106
|
}),
|
|
43781
|
-
offered.map((text) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44107
|
+
!folded && offered.map((text) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43782
44108
|
type: "button",
|
|
43783
44109
|
className: SuggestionsDock_module_css_default.chip,
|
|
43784
44110
|
"data-rp": "suggestion",
|
|
@@ -43791,8 +44117,146 @@ window.__ModuleLoader__.load({
|
|
|
43791
44117
|
]
|
|
43792
44118
|
});
|
|
43793
44119
|
}
|
|
44120
|
+
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Menu.module.css.mjs
|
|
44121
|
+
const css$1 = ".rp_6CY8oG_chevron{opacity:.7;font-size:10px}.rp_6CY8oG_list{z-index:1200;box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm,8px);background:var(--dsw-alias-bg-layer-2,Canvas);min-width:180px;max-width:min(360px,100vw - 16px);color:var(--dsw-alias-label-primary,CanvasText);box-shadow:var(--dsw-elevation-medium,0 4px 12px #0000003d);flex-direction:column;padding:4px;font-size:12px;display:flex;position:fixed;overflow-y:auto}.rp_6CY8oG_heading{color:var(--dsw-alias-label-tertiary);padding:6px 8px 2px;font-size:11px}.rp_6CY8oG_item{box-sizing:border-box;border-radius:calc(var(--dsw-radius-sm,8px) - 2px);width:100%;min-height:28px;color:inherit;font:inherit;text-align:start;overflow-wrap:anywhere;cursor:pointer;background:0 0;border:0;padding:4px 8px;line-height:18px}.rp_6CY8oG_item:hover:not(:disabled),.rp_6CY8oG_item:focus-visible{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent);color:var(--dsw-alias-state-business-primary);outline:none}.rp_6CY8oG_item:disabled{opacity:.45;cursor:default}@media (pointer:coarse){.rp_6CY8oG_item{min-height:44px}}";
|
|
44122
|
+
const key$1 = "src/client/ui/Menu.module.css";
|
|
44123
|
+
let tag$1 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$1) + "]");
|
|
44124
|
+
if (tag$1 === null) {
|
|
44125
|
+
tag$1 = document.createElement("style");
|
|
44126
|
+
tag$1.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
44127
|
+
tag$1.dataset.pluginCss = key$1;
|
|
44128
|
+
document.head.appendChild(tag$1);
|
|
44129
|
+
}
|
|
44130
|
+
tag$1.textContent = css$1;
|
|
44131
|
+
var Menu_module_css_default = {
|
|
44132
|
+
"heading": "rp_6CY8oG_heading",
|
|
44133
|
+
"item": "rp_6CY8oG_item",
|
|
44134
|
+
"chevron": "rp_6CY8oG_chevron",
|
|
44135
|
+
"list": "rp_6CY8oG_list"
|
|
44136
|
+
};
|
|
44137
|
+
// src/client/ui/Menu.tsx
|
|
44138
|
+
const GAP = 4;
|
|
44139
|
+
const MARGIN = 8;
|
|
44140
|
+
/**
|
|
44141
|
+
* A button that opens a list of choices, drawn with the theme's own colours (a native select takes the browser's, which does not follow a dark theme). The list is placed from the trigger's
|
|
44142
|
+
* rectangle on the side with more room, kept inside the window, and closes on a choice, Escape, a click elsewhere, or when the page moves.
|
|
44143
|
+
*/
|
|
44144
|
+
function Menu({ label, entries, onSelect, triggerClassName, title, disabled = false }) {
|
|
44145
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
44146
|
+
const [place, setPlace] = (0, react.useState)();
|
|
44147
|
+
const trigger = (0, react.useRef)(null);
|
|
44148
|
+
const list = (0, react.useRef)(null);
|
|
44149
|
+
const close = (0, react.useCallback)((refocus) => {
|
|
44150
|
+
setOpen(false);
|
|
44151
|
+
setPlace(void 0);
|
|
44152
|
+
if (refocus) trigger.current?.focus();
|
|
44153
|
+
}, []);
|
|
44154
|
+
(0, react.useLayoutEffect)(() => {
|
|
44155
|
+
if (!open || trigger.current === null) return;
|
|
44156
|
+
const box = trigger.current.getBoundingClientRect();
|
|
44157
|
+
const above = box.top - MARGIN;
|
|
44158
|
+
const below = window.innerHeight - box.bottom - MARGIN;
|
|
44159
|
+
const up = above > below;
|
|
44160
|
+
const width = list.current?.offsetWidth ?? 240;
|
|
44161
|
+
const left = Math.max(MARGIN, Math.min(box.left, window.innerWidth - width - MARGIN));
|
|
44162
|
+
setPlace(up ? {
|
|
44163
|
+
left,
|
|
44164
|
+
bottom: window.innerHeight - box.top + GAP,
|
|
44165
|
+
maxHeight: Math.max(120, above - GAP)
|
|
44166
|
+
} : {
|
|
44167
|
+
left,
|
|
44168
|
+
top: box.bottom + GAP,
|
|
44169
|
+
maxHeight: Math.max(120, below - GAP)
|
|
44170
|
+
});
|
|
44171
|
+
}, [open]);
|
|
44172
|
+
(0, react.useEffect)(() => {
|
|
44173
|
+
if (!open) return;
|
|
44174
|
+
const outside = (event) => {
|
|
44175
|
+
const target = event.target;
|
|
44176
|
+
if (list.current?.contains(target) === true || trigger.current?.contains(target) === true) return;
|
|
44177
|
+
close(false);
|
|
44178
|
+
};
|
|
44179
|
+
const away = () => {
|
|
44180
|
+
close(false);
|
|
44181
|
+
};
|
|
44182
|
+
document.addEventListener("pointerdown", outside, true);
|
|
44183
|
+
window.addEventListener("resize", away);
|
|
44184
|
+
window.addEventListener("scroll", away, true);
|
|
44185
|
+
return () => {
|
|
44186
|
+
document.removeEventListener("pointerdown", outside, true);
|
|
44187
|
+
window.removeEventListener("resize", away);
|
|
44188
|
+
window.removeEventListener("scroll", away, true);
|
|
44189
|
+
};
|
|
44190
|
+
}, [open, close]);
|
|
44191
|
+
(0, react.useEffect)(() => {
|
|
44192
|
+
if (place !== void 0) list.current?.querySelector("button:not(:disabled)")?.focus();
|
|
44193
|
+
}, [place]);
|
|
44194
|
+
const move = (from, step) => {
|
|
44195
|
+
const buttons = [...list.current?.querySelectorAll("button:not(:disabled)") ?? []];
|
|
44196
|
+
buttons[(buttons.indexOf(from) + step + buttons.length) % buttons.length]?.focus();
|
|
44197
|
+
};
|
|
44198
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
44199
|
+
ref: trigger,
|
|
44200
|
+
type: "button",
|
|
44201
|
+
className: triggerClassName,
|
|
44202
|
+
disabled,
|
|
44203
|
+
...title === void 0 ? {} : { title },
|
|
44204
|
+
"aria-haspopup": "menu",
|
|
44205
|
+
"aria-expanded": open,
|
|
44206
|
+
onClick: () => {
|
|
44207
|
+
if (open) close(false);
|
|
44208
|
+
else setOpen(true);
|
|
44209
|
+
},
|
|
44210
|
+
children: [
|
|
44211
|
+
label,
|
|
44212
|
+
" ",
|
|
44213
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44214
|
+
"aria-hidden": "true",
|
|
44215
|
+
className: Menu_module_css_default.chevron,
|
|
44216
|
+
children: "▾"
|
|
44217
|
+
})
|
|
44218
|
+
]
|
|
44219
|
+
}), open && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
44220
|
+
ref: list,
|
|
44221
|
+
className: Menu_module_css_default.list,
|
|
44222
|
+
role: "menu",
|
|
44223
|
+
tabIndex: -1,
|
|
44224
|
+
style: {
|
|
44225
|
+
left: place?.left ?? 0,
|
|
44226
|
+
...place?.top === void 0 ? {} : { top: place.top },
|
|
44227
|
+
...place?.bottom === void 0 ? {} : { bottom: place.bottom },
|
|
44228
|
+
maxHeight: place?.maxHeight ?? 320,
|
|
44229
|
+
visibility: place === void 0 ? "hidden" : "visible"
|
|
44230
|
+
},
|
|
44231
|
+
onKeyDown: (event) => {
|
|
44232
|
+
if (event.key === "Escape") {
|
|
44233
|
+
event.preventDefault();
|
|
44234
|
+
close(true);
|
|
44235
|
+
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
44236
|
+
event.preventDefault();
|
|
44237
|
+
move(event.target, event.key === "ArrowDown" ? 1 : -1);
|
|
44238
|
+
}
|
|
44239
|
+
},
|
|
44240
|
+
children: entries.map((entry, index) => "heading" in entry ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
44241
|
+
className: Menu_module_css_default.heading,
|
|
44242
|
+
role: "presentation",
|
|
44243
|
+
children: entry.heading
|
|
44244
|
+
}, `heading-${index}`) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44245
|
+
type: "button",
|
|
44246
|
+
role: "menuitem",
|
|
44247
|
+
className: Menu_module_css_default.item,
|
|
44248
|
+
disabled: entry.disabled === true,
|
|
44249
|
+
...entry.title === void 0 ? {} : { title: entry.title },
|
|
44250
|
+
onClick: () => {
|
|
44251
|
+
close(true);
|
|
44252
|
+
onSelect(entry.key);
|
|
44253
|
+
},
|
|
44254
|
+
children: entry.label
|
|
44255
|
+
}, entry.key))
|
|
44256
|
+
})] });
|
|
44257
|
+
}
|
|
43794
44258
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/TurnsDock.module.css.mjs
|
|
43795
|
-
const css = ".rp_f4YLlq_dock{box-sizing:border-box;width:min(800px,100%);min-width:0;color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:4px 8px;margin:
|
|
44259
|
+
const css = ".rp_f4YLlq_dock{box-sizing:border-box;width:min(800px,100%);min-width:0;color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:4px 8px;margin:8px auto;padding:0 16px;font-size:12px;display:flex}.rp_f4YLlq_group{align-items:center;gap:2px;display:flex}.rp_f4YLlq_button{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--dsw-alias-label-secondary);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;padding:2px 10px;line-height:18px}.rp_f4YLlq_button:hover:not(:disabled),.rp_f4YLlq_button:focus-visible{border-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);outline:none}.rp_f4YLlq_button:disabled{opacity:.5;cursor:default}.rp_f4YLlq_count{text-align:center;min-width:32px}.rp_f4YLlq_select{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);min-width:96px;max-width:220px;min-height:28px;color:var(--dsw-alias-label-secondary);font:inherit;background:0 0;padding:2px 6px}.rp_f4YLlq_error{color:var(--dsw-alias-state-error-primary)}@media (pointer:coarse){.rp_f4YLlq_button,.rp_f4YLlq_select{min-height:44px}}.rp_f4YLlq_comparison{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex:100%;max-height:160px;padding:6px 10px;overflow-y:auto}.rp_f4YLlq_comparisonHead{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;display:flex}.rp_f4YLlq_comparisonLine{margin:0;line-height:18px}.rp_f4YLlq_comparisonSubject{color:var(--dsw-alias-label-secondary)}.rp_f4YLlq_fold{border-color:#0000;padding-inline:6px}";
|
|
43796
44260
|
const key = "src/client/transcript/TurnsDock.module.css";
|
|
43797
44261
|
let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(key) + "]");
|
|
43798
44262
|
if (tag === null) {
|
|
@@ -43803,16 +44267,17 @@ window.__ModuleLoader__.load({
|
|
|
43803
44267
|
}
|
|
43804
44268
|
tag.textContent = css;
|
|
43805
44269
|
var TurnsDock_module_css_default = {
|
|
44270
|
+
"count": "rp_f4YLlq_count",
|
|
44271
|
+
"comparison": "rp_f4YLlq_comparison",
|
|
44272
|
+
"button": "rp_f4YLlq_button",
|
|
43806
44273
|
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
43807
|
-
"
|
|
44274
|
+
"fold": "rp_f4YLlq_fold",
|
|
43808
44275
|
"comparisonLine": "rp_f4YLlq_comparisonLine",
|
|
43809
44276
|
"group": "rp_f4YLlq_group",
|
|
43810
|
-
"
|
|
43811
|
-
"button": "rp_f4YLlq_button",
|
|
43812
|
-
"comparison": "rp_f4YLlq_comparison",
|
|
43813
|
-
"dock": "rp_f4YLlq_dock",
|
|
44277
|
+
"select": "rp_f4YLlq_select",
|
|
43814
44278
|
"error": "rp_f4YLlq_error",
|
|
43815
|
-
"
|
|
44279
|
+
"dock": "rp_f4YLlq_dock",
|
|
44280
|
+
"comparisonSubject": "rp_f4YLlq_comparisonSubject"
|
|
43816
44281
|
};
|
|
43817
44282
|
// src/client/transcript/withdrawn.ts
|
|
43818
44283
|
/** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */
|
|
@@ -43830,11 +44295,17 @@ window.__ModuleLoader__.load({
|
|
|
43830
44295
|
*/
|
|
43831
44296
|
function TurnsDock({ useChat, useSession, timeline, move, mark, compare, fill, branch, t }) {
|
|
43832
44297
|
const running = useSession((session) => session.running);
|
|
44298
|
+
const [folded, toggleFolded] = useDockFolded();
|
|
43833
44299
|
const [view, setView] = (0, react.useState)();
|
|
43834
44300
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
43835
44301
|
const [problem, setProblem] = (0, react.useState)();
|
|
43836
44302
|
const [refresh, setRefresh] = (0, react.useState)(0);
|
|
43837
44303
|
const [naming, setNaming] = (0, react.useState)();
|
|
44304
|
+
const nameInput = (0, react.useRef)(null);
|
|
44305
|
+
const editing = naming !== void 0;
|
|
44306
|
+
(0, react.useEffect)(() => {
|
|
44307
|
+
if (editing) nameInput.current?.focus();
|
|
44308
|
+
}, [editing]);
|
|
43838
44309
|
const [comparison, setComparison] = (0, react.useState)();
|
|
43839
44310
|
const marks = useChat((chat) => {
|
|
43840
44311
|
const nodes = [...chat.nodes.values()];
|
|
@@ -43899,220 +44370,211 @@ window.__ModuleLoader__.load({
|
|
|
43899
44370
|
"data-rp": "turns",
|
|
43900
44371
|
children: [
|
|
43901
44372
|
style,
|
|
43902
|
-
|
|
43903
|
-
className: TurnsDock_module_css_default.group,
|
|
43904
|
-
children: [
|
|
43905
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43906
|
-
type: "button",
|
|
43907
|
-
className: TurnsDock_module_css_default.button,
|
|
43908
|
-
disabled: off || at <= 0,
|
|
43909
|
-
title: t("swapPrevious"),
|
|
43910
|
-
onClick: () => {
|
|
43911
|
-
act(alternatives[at - 1]);
|
|
43912
|
-
},
|
|
43913
|
-
children: "◀"
|
|
43914
|
-
}),
|
|
43915
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
43916
|
-
className: TurnsDock_module_css_default.count,
|
|
43917
|
-
children: [
|
|
43918
|
-
at + 1,
|
|
43919
|
-
"/",
|
|
43920
|
-
alternatives.length
|
|
43921
|
-
]
|
|
43922
|
-
}),
|
|
43923
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43924
|
-
type: "button",
|
|
43925
|
-
className: TurnsDock_module_css_default.button,
|
|
43926
|
-
disabled: off || at >= alternatives.length - 1,
|
|
43927
|
-
title: t("swapNext"),
|
|
43928
|
-
onClick: () => {
|
|
43929
|
-
act(alternatives[at + 1]);
|
|
43930
|
-
},
|
|
43931
|
-
children: "▶"
|
|
43932
|
-
})
|
|
43933
|
-
]
|
|
43934
|
-
}),
|
|
43935
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44373
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
43936
44374
|
type: "button",
|
|
43937
|
-
className: TurnsDock_module_css_default.button
|
|
43938
|
-
|
|
43939
|
-
title: t("
|
|
43940
|
-
onClick:
|
|
43941
|
-
act(parent, (draft) => {
|
|
43942
|
-
if (draft !== void 0) fill(draft, true);
|
|
43943
|
-
});
|
|
43944
|
-
},
|
|
43945
|
-
children: t("regenerate")
|
|
43946
|
-
}),
|
|
43947
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
43948
|
-
className: TurnsDock_module_css_default.select,
|
|
43949
|
-
disabled: off,
|
|
43950
|
-
value: "",
|
|
43951
|
-
"aria-label": t("rewind"),
|
|
43952
|
-
onChange: (event) => {
|
|
43953
|
-
if (event.target.value !== "") act(event.target.value, (draft) => {
|
|
43954
|
-
if (draft !== void 0) fill(draft, false);
|
|
43955
|
-
});
|
|
43956
|
-
},
|
|
44375
|
+
className: `${TurnsDock_module_css_default.button ?? ""} ${TurnsDock_module_css_default.fold ?? ""}`,
|
|
44376
|
+
"aria-expanded": !folded,
|
|
44377
|
+
title: folded ? t("dockShow") : t("dockHide"),
|
|
44378
|
+
onClick: toggleFolded,
|
|
43957
44379
|
children: [
|
|
43958
|
-
|
|
43959
|
-
|
|
43960
|
-
|
|
43961
|
-
}),
|
|
43962
|
-
checkpoints.map((turn) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
43963
|
-
value: turn.id,
|
|
43964
|
-
title: turn.note,
|
|
43965
|
-
children: `◆ ${turn.label}`
|
|
43966
|
-
}, `checkpoint-${turn.id}`)),
|
|
43967
|
-
[...view.path].reverse().map((turn, index, list) => {
|
|
43968
|
-
const before = list[index + 1]?.id ?? START;
|
|
43969
|
-
const restorable = index === list.length - 1 || list[index + 1].restorable;
|
|
43970
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
43971
|
-
value: before,
|
|
43972
|
-
disabled: !restorable,
|
|
43973
|
-
children: `${t("before")} ${label(turn.player)}`
|
|
43974
|
-
}, turn.id);
|
|
43975
|
-
})
|
|
44380
|
+
folded ? "▸" : "▾",
|
|
44381
|
+
" ",
|
|
44382
|
+
t("dockTools")
|
|
43976
44383
|
]
|
|
43977
44384
|
}),
|
|
43978
|
-
|
|
43979
|
-
|
|
43980
|
-
|
|
43981
|
-
|
|
43982
|
-
|
|
43983
|
-
|
|
43984
|
-
|
|
43985
|
-
|
|
43986
|
-
|
|
43987
|
-
|
|
43988
|
-
|
|
43989
|
-
|
|
43990
|
-
|
|
43991
|
-
|
|
43992
|
-
|
|
43993
|
-
|
|
43994
|
-
|
|
43995
|
-
|
|
43996
|
-
|
|
43997
|
-
|
|
43998
|
-
|
|
43999
|
-
},
|
|
44000
|
-
|
|
44001
|
-
|
|
44002
|
-
|
|
44003
|
-
|
|
44004
|
-
|
|
44005
|
-
|
|
44006
|
-
|
|
44007
|
-
|
|
44008
|
-
|
|
44009
|
-
|
|
44010
|
-
|
|
44011
|
-
|
|
44012
|
-
|
|
44013
|
-
|
|
44014
|
-
|
|
44015
|
-
|
|
44016
|
-
|
|
44017
|
-
|
|
44018
|
-
|
|
44385
|
+
folded ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
44386
|
+
alternatives.length > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
44387
|
+
className: TurnsDock_module_css_default.group,
|
|
44388
|
+
children: [
|
|
44389
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44390
|
+
type: "button",
|
|
44391
|
+
className: TurnsDock_module_css_default.button,
|
|
44392
|
+
disabled: off || at <= 0,
|
|
44393
|
+
title: t("swapPrevious"),
|
|
44394
|
+
onClick: () => {
|
|
44395
|
+
act(alternatives[at - 1]);
|
|
44396
|
+
},
|
|
44397
|
+
children: "◀"
|
|
44398
|
+
}),
|
|
44399
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
44400
|
+
className: TurnsDock_module_css_default.count,
|
|
44401
|
+
children: [
|
|
44402
|
+
at + 1,
|
|
44403
|
+
"/",
|
|
44404
|
+
alternatives.length
|
|
44405
|
+
]
|
|
44406
|
+
}),
|
|
44407
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44408
|
+
type: "button",
|
|
44409
|
+
className: TurnsDock_module_css_default.button,
|
|
44410
|
+
disabled: off || at >= alternatives.length - 1,
|
|
44411
|
+
title: t("swapNext"),
|
|
44412
|
+
onClick: () => {
|
|
44413
|
+
act(alternatives[at + 1]);
|
|
44414
|
+
},
|
|
44415
|
+
children: "▶"
|
|
44416
|
+
})
|
|
44417
|
+
]
|
|
44418
|
+
}),
|
|
44419
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44420
|
+
type: "button",
|
|
44421
|
+
className: TurnsDock_module_css_default.button,
|
|
44422
|
+
disabled: off || parent !== START && !view.path.at(-2)?.restorable,
|
|
44423
|
+
title: t("regenerateHint"),
|
|
44424
|
+
onClick: () => {
|
|
44425
|
+
act(parent, (draft) => {
|
|
44426
|
+
if (draft !== void 0) fill(draft, true);
|
|
44427
|
+
});
|
|
44428
|
+
},
|
|
44429
|
+
children: t("regenerate")
|
|
44430
|
+
}),
|
|
44431
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
44432
|
+
triggerClassName: TurnsDock_module_css_default.button ?? "",
|
|
44433
|
+
label: t("rewind"),
|
|
44434
|
+
disabled: off,
|
|
44435
|
+
onSelect: (key) => {
|
|
44436
|
+
act(key, (draft) => {
|
|
44437
|
+
if (draft !== void 0) fill(draft, false);
|
|
44438
|
+
});
|
|
44439
|
+
},
|
|
44440
|
+
entries: [...checkpoints.map((turn) => ({
|
|
44441
|
+
key: turn.id,
|
|
44442
|
+
label: `◆ ${turn.label}`,
|
|
44443
|
+
title: turn.note
|
|
44444
|
+
})), ...[...view.path].reverse().map((turn, index, list) => ({
|
|
44445
|
+
key: list[index + 1]?.id ?? START,
|
|
44446
|
+
label: `${t("before")} ${label(turn.player)}`,
|
|
44447
|
+
disabled: !(index === list.length - 1 || list[index + 1].restorable)
|
|
44448
|
+
}))]
|
|
44449
|
+
}),
|
|
44450
|
+
naming === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44451
|
+
type: "button",
|
|
44452
|
+
className: TurnsDock_module_css_default.button,
|
|
44453
|
+
disabled: off,
|
|
44454
|
+
title: last.label === void 0 ? t("checkpointHint") : t("checkpointNamed", { name: last.label }),
|
|
44455
|
+
onClick: () => {
|
|
44456
|
+
setNaming(last.label ?? "");
|
|
44457
|
+
},
|
|
44458
|
+
children: t("checkpoint")
|
|
44459
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
44460
|
+
className: TurnsDock_module_css_default.group,
|
|
44461
|
+
children: [
|
|
44462
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
44463
|
+
ref: nameInput,
|
|
44464
|
+
className: TurnsDock_module_css_default.select,
|
|
44465
|
+
maxLength: 80,
|
|
44466
|
+
value: naming,
|
|
44467
|
+
placeholder: t("checkpointName"),
|
|
44468
|
+
"aria-label": t("checkpointName"),
|
|
44469
|
+
onChange: (event) => {
|
|
44470
|
+
setNaming(event.target.value);
|
|
44471
|
+
},
|
|
44472
|
+
onKeyDown: (event) => {
|
|
44473
|
+
if (event.key === "Enter") save();
|
|
44474
|
+
if (event.key === "Escape") setNaming(void 0);
|
|
44475
|
+
}
|
|
44476
|
+
}),
|
|
44477
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44478
|
+
type: "button",
|
|
44479
|
+
className: TurnsDock_module_css_default.button,
|
|
44480
|
+
disabled: off || naming.trim() === "",
|
|
44481
|
+
onClick: save,
|
|
44482
|
+
children: t("checkpointSave")
|
|
44483
|
+
}),
|
|
44484
|
+
last.label !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44485
|
+
type: "button",
|
|
44486
|
+
className: TurnsDock_module_css_default.button,
|
|
44487
|
+
disabled: off,
|
|
44488
|
+
onClick: () => {
|
|
44489
|
+
setBusy(true);
|
|
44490
|
+
mark(last.id, "").then(() => {
|
|
44491
|
+
setNaming(void 0);
|
|
44492
|
+
setRefresh((count) => count + 1);
|
|
44493
|
+
}).catch((error) => {
|
|
44494
|
+
setProblem(error instanceof Error ? error.message : String(error));
|
|
44495
|
+
}).finally(() => {
|
|
44496
|
+
setBusy(false);
|
|
44497
|
+
});
|
|
44498
|
+
},
|
|
44499
|
+
children: t("checkpointRemove")
|
|
44500
|
+
}),
|
|
44501
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44502
|
+
type: "button",
|
|
44503
|
+
className: TurnsDock_module_css_default.button,
|
|
44504
|
+
onClick: () => {
|
|
44019
44505
|
setNaming(void 0);
|
|
44020
|
-
|
|
44021
|
-
|
|
44022
|
-
|
|
44023
|
-
|
|
44024
|
-
|
|
44025
|
-
|
|
44026
|
-
|
|
44027
|
-
|
|
44028
|
-
|
|
44029
|
-
|
|
44030
|
-
|
|
44031
|
-
|
|
44032
|
-
|
|
44033
|
-
|
|
44506
|
+
},
|
|
44507
|
+
children: t("checkpointCancel")
|
|
44508
|
+
})
|
|
44509
|
+
]
|
|
44510
|
+
}),
|
|
44511
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
44512
|
+
triggerClassName: TurnsDock_module_css_default.button ?? "",
|
|
44513
|
+
label: t("branch"),
|
|
44514
|
+
title: t("branchHint"),
|
|
44515
|
+
disabled: off,
|
|
44516
|
+
onSelect: (key) => {
|
|
44517
|
+
const at = Number(key);
|
|
44518
|
+
if (!Number.isInteger(at)) return;
|
|
44519
|
+
setBusy(true);
|
|
44520
|
+
setProblem(void 0);
|
|
44521
|
+
branch(at).catch((error) => {
|
|
44522
|
+
setProblem(t("branchFailed", { message: error instanceof Error ? error.message : String(error) }));
|
|
44523
|
+
}).finally(() => {
|
|
44524
|
+
setBusy(false);
|
|
44525
|
+
});
|
|
44526
|
+
},
|
|
44527
|
+
entries: [...view.path].reverse().map((turn) => ({
|
|
44528
|
+
key: String(turn.endSeq ?? ""),
|
|
44529
|
+
label: `${t("after")} ${label(turn.player)}`,
|
|
44530
|
+
disabled: turn.endSeq === void 0
|
|
44531
|
+
}))
|
|
44532
|
+
}),
|
|
44533
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
44534
|
+
triggerClassName: TurnsDock_module_css_default.button ?? "",
|
|
44535
|
+
label: t("compare"),
|
|
44536
|
+
title: t("compareHint"),
|
|
44537
|
+
disabled: off,
|
|
44538
|
+
onSelect: (turn) => {
|
|
44539
|
+
setBusy(true);
|
|
44540
|
+
setProblem(void 0);
|
|
44541
|
+
compare(turn).then(setComparison).catch((error) => {
|
|
44542
|
+
setProblem(error instanceof Error ? error.message : String(error));
|
|
44543
|
+
}).finally(() => {
|
|
44544
|
+
setBusy(false);
|
|
44545
|
+
});
|
|
44546
|
+
},
|
|
44547
|
+
entries: [
|
|
44548
|
+
...checkpoints.map((turn) => ({
|
|
44549
|
+
key: turn.id,
|
|
44550
|
+
label: `◆ ${turn.label}`,
|
|
44551
|
+
disabled: !turn.restorable
|
|
44552
|
+
})),
|
|
44553
|
+
{
|
|
44554
|
+
key: START,
|
|
44555
|
+
label: t("compareStart"),
|
|
44556
|
+
disabled: !view.canStart
|
|
44034
44557
|
},
|
|
44035
|
-
|
|
44036
|
-
|
|
44037
|
-
|
|
44038
|
-
|
|
44039
|
-
|
|
44040
|
-
|
|
44041
|
-
|
|
44042
|
-
|
|
44043
|
-
|
|
44044
|
-
|
|
44045
|
-
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
|
|
44050
|
-
|
|
44051
|
-
|
|
44052
|
-
|
|
44053
|
-
|
|
44054
|
-
|
|
44055
|
-
},
|
|
44056
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
44057
|
-
value: "",
|
|
44058
|
-
children: t("branch")
|
|
44059
|
-
}), [...view.path].reverse().map((turn) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
44060
|
-
value: turn.endSeq ?? "",
|
|
44061
|
-
disabled: turn.endSeq === void 0,
|
|
44062
|
-
children: `${t("after")} ${label(turn.player)}`
|
|
44063
|
-
}, turn.id))]
|
|
44064
|
-
}),
|
|
44065
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
44066
|
-
className: TurnsDock_module_css_default.select,
|
|
44067
|
-
disabled: off,
|
|
44068
|
-
value: "",
|
|
44069
|
-
title: t("compareHint"),
|
|
44070
|
-
"aria-label": t("compare"),
|
|
44071
|
-
onChange: (event) => {
|
|
44072
|
-
const turn = event.target.value;
|
|
44073
|
-
if (turn === "") return;
|
|
44074
|
-
setBusy(true);
|
|
44075
|
-
setProblem(void 0);
|
|
44076
|
-
compare(turn).then(setComparison).catch((error) => {
|
|
44077
|
-
setProblem(error instanceof Error ? error.message : String(error));
|
|
44078
|
-
}).finally(() => {
|
|
44079
|
-
setBusy(false);
|
|
44080
|
-
});
|
|
44081
|
-
},
|
|
44082
|
-
children: [
|
|
44083
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
44084
|
-
value: "",
|
|
44085
|
-
children: t("compare")
|
|
44086
|
-
}),
|
|
44087
|
-
checkpoints.map((turn) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
44088
|
-
value: turn.id,
|
|
44089
|
-
disabled: !turn.restorable,
|
|
44090
|
-
children: `◆ ${turn.label}`
|
|
44091
|
-
}, `compare-${turn.id}`)),
|
|
44092
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
44093
|
-
value: START,
|
|
44094
|
-
disabled: !view.canStart,
|
|
44095
|
-
children: t("compareStart")
|
|
44096
|
-
}),
|
|
44097
|
-
[...view.path].reverse().map((turn) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
44098
|
-
value: turn.id,
|
|
44099
|
-
disabled: !turn.restorable,
|
|
44100
|
-
children: `${t("after")} ${label(turn.player)}`
|
|
44101
|
-
}, `compare-turn-${turn.id}`))
|
|
44102
|
-
]
|
|
44103
|
-
}),
|
|
44104
|
-
view.forward.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44105
|
-
type: "button",
|
|
44106
|
-
className: TurnsDock_module_css_default.button,
|
|
44107
|
-
disabled: off || !view.forward.at(-1).restorable,
|
|
44108
|
-
title: t("redoHint"),
|
|
44109
|
-
onClick: () => {
|
|
44110
|
-
act(view.forward.at(-1).id, () => {
|
|
44111
|
-
fill("", false);
|
|
44112
|
-
});
|
|
44113
|
-
},
|
|
44114
|
-
children: t("redo")
|
|
44115
|
-
}),
|
|
44558
|
+
...[...view.path].reverse().map((turn) => ({
|
|
44559
|
+
key: turn.id,
|
|
44560
|
+
label: `${t("after")} ${label(turn.player)}`,
|
|
44561
|
+
disabled: !turn.restorable
|
|
44562
|
+
}))
|
|
44563
|
+
]
|
|
44564
|
+
}),
|
|
44565
|
+
view.forward.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44566
|
+
type: "button",
|
|
44567
|
+
className: TurnsDock_module_css_default.button,
|
|
44568
|
+
disabled: off || !view.forward.at(-1).restorable,
|
|
44569
|
+
title: t("redoHint"),
|
|
44570
|
+
onClick: () => {
|
|
44571
|
+
act(view.forward.at(-1).id, () => {
|
|
44572
|
+
fill("", false);
|
|
44573
|
+
});
|
|
44574
|
+
},
|
|
44575
|
+
children: t("redo")
|
|
44576
|
+
})
|
|
44577
|
+
] }),
|
|
44116
44578
|
problem !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44117
44579
|
className: TurnsDock_module_css_default.error,
|
|
44118
44580
|
children: problem
|
|
@@ -44156,6 +44618,9 @@ window.__ModuleLoader__.load({
|
|
|
44156
44618
|
// src/client/transcript/locales.ts
|
|
44157
44619
|
const dictionaries = {
|
|
44158
44620
|
en: {
|
|
44621
|
+
dockTools: "Story tools",
|
|
44622
|
+
dockHide: "Hide the story tools",
|
|
44623
|
+
dockShow: "Show the story tools",
|
|
44159
44624
|
unwritten: "{count} rounds not yet written into the story's memory",
|
|
44160
44625
|
speakAll: "Play narration",
|
|
44161
44626
|
speakLine: "Play this line",
|
|
@@ -44210,6 +44675,9 @@ window.__ModuleLoader__.load({
|
|
|
44210
44675
|
dicePlayer: "You rolled:"
|
|
44211
44676
|
},
|
|
44212
44677
|
zh: {
|
|
44678
|
+
dockTools: "故事工具",
|
|
44679
|
+
dockHide: "收起故事工具",
|
|
44680
|
+
dockShow: "展开故事工具",
|
|
44213
44681
|
unwritten: "有 {count} 个回合尚未写入故事记忆",
|
|
44214
44682
|
speakAll: "播放整段",
|
|
44215
44683
|
speakLine: "播放这句台词",
|
|
@@ -44264,6 +44732,9 @@ window.__ModuleLoader__.load({
|
|
|
44264
44732
|
dicePlayer: "你掷出:"
|
|
44265
44733
|
},
|
|
44266
44734
|
ja: {
|
|
44735
|
+
dockTools: "ストーリーツール",
|
|
44736
|
+
dockHide: "ストーリーツールを隠す",
|
|
44737
|
+
dockShow: "ストーリーツールを表示",
|
|
44267
44738
|
unwritten: "まだ物語の記憶に書き込まれていないラウンド:{count}",
|
|
44268
44739
|
speakAll: "ナレーションを再生",
|
|
44269
44740
|
speakLine: "この台詞を再生",
|
|
@@ -44318,6 +44789,9 @@ window.__ModuleLoader__.load({
|
|
|
44318
44789
|
dicePlayer: "あなたの出目:"
|
|
44319
44790
|
},
|
|
44320
44791
|
es: {
|
|
44792
|
+
dockTools: "Herramientas de la historia",
|
|
44793
|
+
dockHide: "Ocultar las herramientas de la historia",
|
|
44794
|
+
dockShow: "Mostrar las herramientas de la historia",
|
|
44321
44795
|
unwritten: "{count} rondas aún sin guardar en la memoria de la historia",
|
|
44322
44796
|
speakAll: "Reproducir la narración",
|
|
44323
44797
|
speakLine: "Reproducir esta frase",
|
|
@@ -44372,6 +44846,9 @@ window.__ModuleLoader__.load({
|
|
|
44372
44846
|
dicePlayer: "Has sacado:"
|
|
44373
44847
|
},
|
|
44374
44848
|
fr: {
|
|
44849
|
+
dockTools: "Outils de l’histoire",
|
|
44850
|
+
dockHide: "Masquer les outils de l’histoire",
|
|
44851
|
+
dockShow: "Afficher les outils de l’histoire",
|
|
44375
44852
|
unwritten: "{count} tours pas encore inscrits dans la mémoire de l’histoire",
|
|
44376
44853
|
speakAll: "Lire la narration",
|
|
44377
44854
|
speakLine: "Lire cette réplique",
|
|
@@ -44426,6 +44903,9 @@ window.__ModuleLoader__.load({
|
|
|
44426
44903
|
dicePlayer: "Votre résultat :"
|
|
44427
44904
|
},
|
|
44428
44905
|
de: {
|
|
44906
|
+
dockTools: "Geschichts-Werkzeuge",
|
|
44907
|
+
dockHide: "Geschichts-Werkzeuge ausblenden",
|
|
44908
|
+
dockShow: "Geschichts-Werkzeuge einblenden",
|
|
44429
44909
|
unwritten: "{count} Runde(n) noch nicht im Gedächtnis der Geschichte festgehalten",
|
|
44430
44910
|
speakAll: "Erzählung abspielen",
|
|
44431
44911
|
speakLine: "Diese Zeile abspielen",
|
|
@@ -44480,6 +44960,9 @@ window.__ModuleLoader__.load({
|
|
|
44480
44960
|
dicePlayer: "Du hast gewürfelt:"
|
|
44481
44961
|
},
|
|
44482
44962
|
ru: {
|
|
44963
|
+
dockTools: "Инструменты истории",
|
|
44964
|
+
dockHide: "Скрыть инструменты истории",
|
|
44965
|
+
dockShow: "Показать инструменты истории",
|
|
44483
44966
|
unwritten: "Раундов, ещё не записанных в память истории: {count}",
|
|
44484
44967
|
speakAll: "Озвучить повествование",
|
|
44485
44968
|
speakLine: "Озвучить эту реплику",
|
|
@@ -44534,6 +45017,9 @@ window.__ModuleLoader__.load({
|
|
|
44534
45017
|
dicePlayer: "Ваш бросок:"
|
|
44535
45018
|
},
|
|
44536
45019
|
pt: {
|
|
45020
|
+
dockTools: "Ferramentas da história",
|
|
45021
|
+
dockHide: "Ocultar as ferramentas da história",
|
|
45022
|
+
dockShow: "Mostrar as ferramentas da história",
|
|
44537
45023
|
unwritten: "{count} rondas ainda não guardadas na memória da história",
|
|
44538
45024
|
speakAll: "Reproduzir narração",
|
|
44539
45025
|
speakLine: "Reproduzir esta fala",
|
|
@@ -44633,17 +45119,6 @@ window.__ModuleLoader__.load({
|
|
|
44633
45119
|
if (!response.ok) throw new Error((await response.json().catch(() => ({}))).message ?? `the states could not be compared (${response.status})`);
|
|
44634
45120
|
return await response.json();
|
|
44635
45121
|
}
|
|
44636
|
-
/** Branches a roleplay chat after the turn that ended at `atSeq`, and shows the new chat. Resolved on use, so a client without the services fails at the click. */
|
|
44637
|
-
async function branchAt(scope, chat, atSeq) {
|
|
44638
|
-
const sessions = scope.get("sessions");
|
|
44639
|
-
const workspace = scope.get("uiWorkspace");
|
|
44640
|
-
if (sessions === void 0 || workspace === void 0) throw new Error("branching is not available in this client");
|
|
44641
|
-
workspace.openSession(await sessions.fork({
|
|
44642
|
-
sessionId: chat,
|
|
44643
|
-
atSeq,
|
|
44644
|
-
increaseTitle: true
|
|
44645
|
-
}));
|
|
44646
|
-
}
|
|
44647
45122
|
/** The notes the host keeps for the player beside the story; none for a chat that is not a roleplay session. */
|
|
44648
45123
|
async function notesOf(chat) {
|
|
44649
45124
|
const id = roleplaySessionOf(chat);
|