@dsh-agentic-roleplay/core 0.12.4 → 0.12.5
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-DjA0kvPM.js} +2 -2
- package/lib/{authoring-tools-B_qYKK8c.js → authoring-tools-DqAttdUN.js} +21 -14
- package/lib/authoring.js +8 -8
- package/lib/{child-DTdY14S9.js → child-SMvjNsb8.js} +63 -9
- package/lib/client.js +1637 -1189
- 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-Dahi5TkO.js} +3 -3
- package/lib/{generator-CTWQWbSW.js → generator-BvSZGpzy.js} +2 -2
- package/lib/helper.js +2 -2
- package/lib/{hooks-YXQZ9G2d.js → hooks-OLl-1AOS.js} +67 -28
- package/lib/images.js +4 -4
- package/lib/index.js +24 -18
- package/lib/{jail-DVbPSC0R.js → jail-CDW5iymd.js} +2 -2
- package/lib/{library-BmlHNCah.js → library-D6AcyxGZ.js} +3 -3
- package/lib/{lorebook-author-tools-C3rRpMt7.js → lorebook-author-tools-CXV1KD4Q.js} +7 -7
- package/lib/lorebook-authoring.js +5 -5
- package/lib/{narration--K2XVIHI.js → narration-Bnrvl0UQ.js} +2 -2
- package/lib/orchestration.js +37 -38
- package/lib/{pack-jail-VbcXiukr.js → pack-jail-CZAmlgE1.js} +15 -15
- package/lib/{packs-CzVh2ZNe.js → packs-DUVCSHqi.js} +2 -2
- package/lib/{presenter-agent-CF3fneuJ.js → presenter-agent-CGCJrg7V.js} +7 -6
- package/lib/{preset-C595KRUM.js → preset-BYfXYvp0.js} +4 -4
- package/lib/{preset-author-tools-CF_JKKTE.js → preset-author-tools-DYxTLm9U.js} +7 -7
- package/lib/preset-authoring.js +5 -5
- package/lib/{reflection-ByIQSOKC.js → reflection-C3zdufN9.js} +8 -8
- package/lib/{serial-ULGUKWsu.js → serial-Bh6gqb3f.js} +114 -25
- package/lib/{text-hiKTooVb.js → text-B-HsLdb-.js} +2 -1
- package/lib/{turn-guard-DXMeAJdv.js → turn-guard-CNFvmz_F.js} +3 -3
- package/package.json +2 -2
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,21 +458,21 @@ 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
|
-
"
|
|
476
|
-
"
|
|
473
|
+
"header": "rp_ua5gBa_header",
|
|
474
|
+
"panel": "rp_ua5gBa_panel",
|
|
475
|
+
"body": "rp_ua5gBa_body"
|
|
477
476
|
};
|
|
478
477
|
// src/client/panel/RoleplayPanel.tsx
|
|
479
478
|
/** Header, page navigation and the selected page. */
|
|
@@ -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
|
-
"
|
|
909
|
+
"rpGhost": "rp_wwotfa_rpGhost",
|
|
910
|
+
"rpToolbar": "rp_wwotfa_rpToolbar",
|
|
906
911
|
"rpButton": "rp_wwotfa_rpButton",
|
|
907
|
-
"
|
|
912
|
+
"rpMd": "rp_wwotfa_rpMd",
|
|
908
913
|
"rpSm": "rp_wwotfa_rpSm",
|
|
909
|
-
"
|
|
914
|
+
"rpPrimary": "rp_wwotfa_rpPrimary",
|
|
910
915
|
"rpOutline": "rp_wwotfa_rpOutline",
|
|
911
|
-
"
|
|
912
|
-
"rpMd": "rp_wwotfa_rpMd"
|
|
916
|
+
"rpIcon": "rp_wwotfa_rpIcon"
|
|
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,19 +1134,19 @@ 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
|
-
"
|
|
1145
|
-
"
|
|
1148
|
+
"rpSwitch": "rp_7MP8na_rpSwitch",
|
|
1149
|
+
"rpThumb": "rp_7MP8na_rpThumb"
|
|
1146
1150
|
};
|
|
1147
1151
|
// src/client/ui/Switch.tsx
|
|
1148
1152
|
/**
|
|
@@ -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
|
-
"
|
|
1273
|
-
"
|
|
1276
|
+
"choice": "rp_5cvtma_choice",
|
|
1277
|
+
"choiceText": "rp_5cvtma_choiceText",
|
|
1274
1278
|
"preview": "rp_5cvtma_preview",
|
|
1279
|
+
"space": "rp_5cvtma_space",
|
|
1280
|
+
"about": "rp_5cvtma_about",
|
|
1281
|
+
"page": "rp_5cvtma_page",
|
|
1275
1282
|
"title": "rp_5cvtma_title",
|
|
1276
|
-
"entryTitle": "rp_5cvtma_entryTitle",
|
|
1277
|
-
"section": "rp_5cvtma_section",
|
|
1278
|
-
"body": "rp_5cvtma_body",
|
|
1279
|
-
"picture": "rp_5cvtma_picture",
|
|
1280
|
-
"label": "rp_5cvtma_label",
|
|
1281
1283
|
"tags": "rp_5cvtma_tags",
|
|
1284
|
+
"section": "rp_5cvtma_section",
|
|
1285
|
+
"note": "rp_5cvtma_note",
|
|
1286
|
+
"row": "rp_5cvtma_row",
|
|
1282
1287
|
"fieldHead": "rp_5cvtma_fieldHead",
|
|
1283
|
-
"error": "rp_5cvtma_error",
|
|
1284
|
-
"entryOff": "rp_5cvtma_entryOff",
|
|
1285
1288
|
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
1286
|
-
"
|
|
1289
|
+
"error": "rp_5cvtma_error",
|
|
1290
|
+
"header": "rp_5cvtma_header",
|
|
1291
|
+
"entryHead": "rp_5cvtma_entryHead",
|
|
1287
1292
|
"noPicture": "rp_5cvtma_noPicture",
|
|
1288
|
-
"
|
|
1289
|
-
"note": "rp_5cvtma_note",
|
|
1290
|
-
"heading": "rp_5cvtma_heading",
|
|
1293
|
+
"picture": "rp_5cvtma_picture",
|
|
1291
1294
|
"entry": "rp_5cvtma_entry",
|
|
1292
|
-
"
|
|
1293
|
-
"
|
|
1294
|
-
"page": "rp_5cvtma_page",
|
|
1295
|
+
"top": "rp_5cvtma_top",
|
|
1296
|
+
"entryTitle": "rp_5cvtma_entryTitle",
|
|
1295
1297
|
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
1298
|
+
"entryOff": "rp_5cvtma_entryOff",
|
|
1299
|
+
"heading": "rp_5cvtma_heading",
|
|
1296
1300
|
"text": "rp_5cvtma_text",
|
|
1297
|
-
"
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
1301
|
+
"field": "rp_5cvtma_field",
|
|
1302
|
+
"label": "rp_5cvtma_label",
|
|
1303
|
+
"body": "rp_5cvtma_body"
|
|
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
|
-
"body": "rp_46MuuW_body",
|
|
1808
1811
|
"content": "rp_46MuuW_content",
|
|
1809
|
-
"
|
|
1812
|
+
"description": "rp_46MuuW_description",
|
|
1813
|
+
"mask": "rp_46MuuW_mask",
|
|
1814
|
+
"root": "rp_46MuuW_root",
|
|
1810
1815
|
"header": "rp_46MuuW_header",
|
|
1811
|
-
"title": "rp_46MuuW_title",
|
|
1812
1816
|
"close": "rp_46MuuW_close",
|
|
1813
|
-
"footer": "rp_46MuuW_footer",
|
|
1814
1817
|
"rpModalEnter": "rp_46MuuW_rpModalEnter",
|
|
1815
|
-
"
|
|
1816
|
-
"
|
|
1817
|
-
"
|
|
1818
|
+
"title": "rp_46MuuW_title",
|
|
1819
|
+
"body": "rp_46MuuW_body",
|
|
1820
|
+
"footer": "rp_46MuuW_footer",
|
|
1821
|
+
"dialog": "rp_46MuuW_dialog"
|
|
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
|
-
"
|
|
1955
|
-
"page": "rp_qK1u-G_page",
|
|
1956
|
-
"more": "rp_qK1u-G_more",
|
|
1957
|
-
"meta": "rp_qK1u-G_meta",
|
|
1958
|
-
"tags": "rp_qK1u-G_tags",
|
|
1958
|
+
"status": "rp_qK1u-G_status",
|
|
1959
1959
|
"kind": "rp_qK1u-G_kind",
|
|
1960
|
-
"body": "rp_qK1u-G_body",
|
|
1961
|
-
"viewport": "rp_qK1u-G_viewport",
|
|
1962
|
-
"field": "rp_qK1u-G_field",
|
|
1963
|
-
"card": "rp_qK1u-G_card",
|
|
1964
|
-
"grid": "rp_qK1u-G_grid",
|
|
1965
|
-
"image": "rp_qK1u-G_image",
|
|
1966
1960
|
"toolbar": "rp_qK1u-G_toolbar",
|
|
1961
|
+
"tags": "rp_qK1u-G_tags",
|
|
1967
1962
|
"form": "rp_qK1u-G_form",
|
|
1968
|
-
"
|
|
1969
|
-
"placeholder": "rp_qK1u-G_placeholder",
|
|
1970
|
-
"changes": "rp_qK1u-G_changes",
|
|
1971
|
-
"detail": "rp_qK1u-G_detail",
|
|
1972
|
-
"select": "rp_qK1u-G_select",
|
|
1963
|
+
"search": "rp_qK1u-G_search",
|
|
1973
1964
|
"message": "rp_qK1u-G_message",
|
|
1974
|
-
"
|
|
1975
|
-
"description": "rp_qK1u-G_description",
|
|
1976
|
-
"name": "rp_qK1u-G_name",
|
|
1965
|
+
"meta": "rp_qK1u-G_meta",
|
|
1977
1966
|
"spacer": "rp_qK1u-G_spacer",
|
|
1978
|
-
"
|
|
1979
|
-
"
|
|
1980
|
-
"status": "rp_qK1u-G_status",
|
|
1967
|
+
"page": "rp_qK1u-G_page",
|
|
1968
|
+
"grid": "rp_qK1u-G_grid",
|
|
1981
1969
|
"update": "rp_qK1u-G_update",
|
|
1982
|
-
"
|
|
1970
|
+
"field": "rp_qK1u-G_field",
|
|
1971
|
+
"viewport": "rp_qK1u-G_viewport",
|
|
1972
|
+
"select": "rp_qK1u-G_select",
|
|
1973
|
+
"name": "rp_qK1u-G_name",
|
|
1974
|
+
"updates": "rp_qK1u-G_updates",
|
|
1975
|
+
"cover": "rp_qK1u-G_cover",
|
|
1983
1976
|
"label": "rp_qK1u-G_label",
|
|
1977
|
+
"detail": "rp_qK1u-G_detail",
|
|
1978
|
+
"description": "rp_qK1u-G_description",
|
|
1979
|
+
"success": "rp_qK1u-G_success",
|
|
1980
|
+
"warning": "rp_qK1u-G_warning",
|
|
1981
|
+
"notice": "rp_qK1u-G_notice",
|
|
1982
|
+
"card": "rp_qK1u-G_card",
|
|
1984
1983
|
"actions": "rp_qK1u-G_actions",
|
|
1985
|
-
"
|
|
1984
|
+
"image": "rp_qK1u-G_image",
|
|
1985
|
+
"placeholder": "rp_qK1u-G_placeholder",
|
|
1986
|
+
"more": "rp_qK1u-G_more",
|
|
1987
|
+
"body": "rp_qK1u-G_body",
|
|
1988
|
+
"changes": "rp_qK1u-G_changes",
|
|
1989
|
+
"kinds": "rp_qK1u-G_kinds"
|
|
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",
|
|
2192
|
-
"list": "rp_Jx0l4q_list",
|
|
2193
|
-
"full": "rp_Jx0l4q_full",
|
|
2194
|
-
"text": "rp_Jx0l4q_text",
|
|
2195
|
-
"bar": "rp_Jx0l4q_bar",
|
|
2193
|
+
"meta": "rp_Jx0l4q_meta",
|
|
2196
2194
|
"note": "rp_Jx0l4q_note",
|
|
2195
|
+
"full": "rp_Jx0l4q_full",
|
|
2196
|
+
"help": "rp_Jx0l4q_help",
|
|
2197
2197
|
"sampling": "rp_Jx0l4q_sampling",
|
|
2198
2198
|
"error": "rp_Jx0l4q_error",
|
|
2199
|
+
"count": "rp_Jx0l4q_count",
|
|
2200
|
+
"extra": "rp_Jx0l4q_extra",
|
|
2201
|
+
"text": "rp_Jx0l4q_text",
|
|
2202
|
+
"bar": "rp_Jx0l4q_bar",
|
|
2199
2203
|
"body": "rp_Jx0l4q_body",
|
|
2200
|
-
"
|
|
2201
|
-
"
|
|
2204
|
+
"list": "rp_Jx0l4q_list",
|
|
2205
|
+
"row": "rp_Jx0l4q_row"
|
|
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
|
-
"
|
|
5322
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
5323
|
+
"initial": "rp_5ZMIxq_initial",
|
|
5324
|
+
"area": "rp_5ZMIxq_area",
|
|
5325
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
5326
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
5327
|
+
"label": "rp_5ZMIxq_label",
|
|
5328
|
+
"missing": "rp_5ZMIxq_missing",
|
|
5321
5329
|
"itemActions": "rp_5ZMIxq_itemActions",
|
|
5322
5330
|
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5323
|
-
"
|
|
5324
|
-
"
|
|
5331
|
+
"empty": "rp_5ZMIxq_empty",
|
|
5332
|
+
"help": "rp_5ZMIxq_help",
|
|
5333
|
+
"optionTitle": "rp_5ZMIxq_optionTitle",
|
|
5334
|
+
"section": "rp_5ZMIxq_section",
|
|
5335
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
5325
5336
|
"wide": "rp_5ZMIxq_wide",
|
|
5326
|
-
"
|
|
5327
|
-
"
|
|
5337
|
+
"panel": "rp_5ZMIxq_panel",
|
|
5338
|
+
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5339
|
+
"tabs": "rp_5ZMIxq_tabs",
|
|
5340
|
+
"select": "rp_5ZMIxq_select",
|
|
5341
|
+
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
5342
|
+
"meta": "rp_5ZMIxq_meta",
|
|
5328
5343
|
"row": "rp_5ZMIxq_row",
|
|
5329
|
-
"label": "rp_5ZMIxq_label",
|
|
5330
5344
|
"error": "rp_5ZMIxq_error",
|
|
5331
|
-
"body": "rp_5ZMIxq_body",
|
|
5332
|
-
"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
|
-
"head": "rp_5ZMIxq_head",
|
|
5339
|
-
"field": "rp_5ZMIxq_field",
|
|
5340
|
-
"tab": "rp_5ZMIxq_tab",
|
|
5341
5345
|
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
5342
|
-
"question": "rp_5ZMIxq_question",
|
|
5343
|
-
"select": "rp_5ZMIxq_select",
|
|
5344
|
-
"section": "rp_5ZMIxq_section",
|
|
5345
|
-
"tabOn": "rp_5ZMIxq_tabOn",
|
|
5346
5346
|
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
5347
|
+
"questionActions": "rp_5ZMIxq_questionActions",
|
|
5348
|
+
"tab": "rp_5ZMIxq_tab",
|
|
5347
5349
|
"bar": "rp_5ZMIxq_bar",
|
|
5348
|
-
"
|
|
5349
|
-
"
|
|
5350
|
-
"
|
|
5351
|
-
"portraitError": "rp_5ZMIxq_portraitError",
|
|
5350
|
+
"question": "rp_5ZMIxq_question",
|
|
5351
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
5352
|
+
"placeholder": "rp_5ZMIxq_placeholder",
|
|
5352
5353
|
"questionTitle": "rp_5ZMIxq_questionTitle",
|
|
5353
|
-
"
|
|
5354
|
-
"
|
|
5355
|
-
"
|
|
5356
|
-
"
|
|
5357
|
-
"
|
|
5354
|
+
"grid": "rp_5ZMIxq_grid",
|
|
5355
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5356
|
+
"barText": "rp_5ZMIxq_barText",
|
|
5357
|
+
"field": "rp_5ZMIxq_field",
|
|
5358
|
+
"goal": "rp_5ZMIxq_goal",
|
|
5359
|
+
"body": "rp_5ZMIxq_body",
|
|
5360
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
5361
|
+
"head": "rp_5ZMIxq_head"
|
|
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
|
-
"
|
|
7077
|
-
"
|
|
7080
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
7081
|
+
"empty": "rp_7pEHTW_empty",
|
|
7082
|
+
"edge": "rp_7pEHTW_edge",
|
|
7078
7083
|
"head": "rp_7pEHTW_head",
|
|
7079
|
-
"
|
|
7084
|
+
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
7085
|
+
"actions": "rp_7pEHTW_actions",
|
|
7086
|
+
"check": "rp_7pEHTW_check",
|
|
7087
|
+
"filter": "rp_7pEHTW_filter",
|
|
7088
|
+
"error": "rp_7pEHTW_error",
|
|
7080
7089
|
"workspace": "rp_7pEHTW_workspace",
|
|
7081
|
-
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
7082
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
7083
|
-
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
7084
7090
|
"notice": "rp_7pEHTW_notice",
|
|
7085
|
-
"
|
|
7086
|
-
"
|
|
7087
|
-
"
|
|
7088
|
-
"edge": "rp_7pEHTW_edge",
|
|
7091
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
7092
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
7093
|
+
"filterOn": "rp_7pEHTW_filterOn",
|
|
7089
7094
|
"perspective": "rp_7pEHTW_perspective",
|
|
7095
|
+
"entities": "rp_7pEHTW_entities",
|
|
7096
|
+
"status": "rp_7pEHTW_status",
|
|
7090
7097
|
"list": "rp_7pEHTW_list",
|
|
7098
|
+
"wide": "rp_7pEHTW_wide",
|
|
7099
|
+
"node": "rp_7pEHTW_node",
|
|
7100
|
+
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
7101
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
7102
|
+
"toolbar": "rp_7pEHTW_toolbar",
|
|
7103
|
+
"panel": "rp_7pEHTW_panel",
|
|
7104
|
+
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
7091
7105
|
"metrics": "rp_7pEHTW_metrics",
|
|
7092
|
-
"
|
|
7106
|
+
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
7093
7107
|
"space": "rp_7pEHTW_space",
|
|
7094
|
-
"
|
|
7095
|
-
"empty": "rp_7pEHTW_empty",
|
|
7096
|
-
"inspector": "rp_7pEHTW_inspector",
|
|
7097
|
-
"error": "rp_7pEHTW_error",
|
|
7098
|
-
"actions": "rp_7pEHTW_actions",
|
|
7099
|
-
"status": "rp_7pEHTW_status",
|
|
7100
|
-
"node_character": "rp_7pEHTW_node_character",
|
|
7101
|
-
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
7102
|
-
"node_location": "rp_7pEHTW_node_location",
|
|
7103
|
-
"node": "rp_7pEHTW_node",
|
|
7108
|
+
"form": "rp_7pEHTW_form",
|
|
7104
7109
|
"node_faction": "rp_7pEHTW_node_faction",
|
|
7105
|
-
"
|
|
7106
|
-
"
|
|
7107
|
-
"
|
|
7108
|
-
"filterOn": "rp_7pEHTW_filterOn"
|
|
7110
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
7111
|
+
"graph": "rp_7pEHTW_graph",
|
|
7112
|
+
"node_character": "rp_7pEHTW_node_character"
|
|
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
|
"fill": "rp_h_sbFq_fill",
|
|
8478
8482
|
"message": "rp_h_sbFq_message",
|
|
8479
|
-
"tab": "rp_h_sbFq_tab",
|
|
8480
8483
|
"problems": "rp_h_sbFq_problems",
|
|
8481
|
-
"
|
|
8482
|
-
"hud": "rp_h_sbFq_hud"
|
|
8484
|
+
"tab": "rp_h_sbFq_tab",
|
|
8485
|
+
"hud": "rp_h_sbFq_hud",
|
|
8486
|
+
"frame": "rp_h_sbFq_frame"
|
|
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
|
-
"group": "rp_FLaP7q_group",
|
|
8745
8748
|
"stage": "rp_FLaP7q_stage",
|
|
8749
|
+
"group": "rp_FLaP7q_group",
|
|
8750
|
+
"controls": "rp_FLaP7q_controls",
|
|
8746
8751
|
"stageTall": "rp_FLaP7q_stageTall",
|
|
8747
|
-
"log": "rp_FLaP7q_log",
|
|
8748
|
-
"note": "rp_FLaP7q_note",
|
|
8749
8752
|
"files": "rp_FLaP7q_files",
|
|
8750
|
-
"
|
|
8753
|
+
"note": "rp_FLaP7q_note",
|
|
8754
|
+
"log": "rp_FLaP7q_log"
|
|
8751
8755
|
};
|
|
8752
8756
|
// src/client/world-editor/PacksPanel.tsx
|
|
8753
8757
|
const WIDTHS = {
|
|
@@ -10012,23 +10016,23 @@ 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
|
-
"label": "rp_9vxYSG_label",
|
|
10028
|
-
"field": "rp_9vxYSG_field",
|
|
10029
10030
|
"grid": "rp_9vxYSG_grid",
|
|
10031
|
+
"field": "rp_9vxYSG_field",
|
|
10030
10032
|
"input": "rp_9vxYSG_input",
|
|
10031
|
-
"
|
|
10033
|
+
"label": "rp_9vxYSG_label",
|
|
10034
|
+
"help": "rp_9vxYSG_help",
|
|
10035
|
+
"root": "rp_9vxYSG_root"
|
|
10032
10036
|
};
|
|
10033
10037
|
// src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
10034
10038
|
const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
|
|
@@ -11869,26 +11873,26 @@ 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 = {
|
|
11887
|
+
"tool": "rp_CjoFLq_tool",
|
|
11888
|
+
"root": "rp_CjoFLq_root",
|
|
11889
|
+
"agentName": "rp_CjoFLq_agentName",
|
|
11890
|
+
"toolText": "rp_CjoFLq_toolText",
|
|
11891
|
+
"default": "rp_CjoFLq_default",
|
|
11883
11892
|
"help": "rp_CjoFLq_help",
|
|
11884
11893
|
"agent": "rp_CjoFLq_agent",
|
|
11885
|
-
"toolText": "rp_CjoFLq_toolText",
|
|
11886
11894
|
"error": "rp_CjoFLq_error",
|
|
11887
|
-
"root": "rp_CjoFLq_root",
|
|
11888
11895
|
"title": "rp_CjoFLq_title",
|
|
11889
|
-
"agentName": "rp_CjoFLq_agentName",
|
|
11890
|
-
"default": "rp_CjoFLq_default",
|
|
11891
|
-
"tool": "rp_CjoFLq_tool",
|
|
11892
11896
|
"hint": "rp_CjoFLq_hint",
|
|
11893
11897
|
"external": "rp_CjoFLq_external"
|
|
11894
11898
|
};
|
|
@@ -12968,16 +12972,16 @@ 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 = {
|
|
12982
12986
|
"root": "rp_O6oWuW_root",
|
|
12983
12987
|
"image": "rp_O6oWuW_image",
|
|
@@ -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
|
-
"cell": "rp_9pSHmG_cell",
|
|
13167
|
-
"grid": "rp_9pSHmG_grid",
|
|
13169
|
+
"error": "rp_9pSHmG_error",
|
|
13168
13170
|
"detail": "rp_9pSHmG_detail",
|
|
13169
|
-
"note": "rp_9pSHmG_note",
|
|
13170
|
-
"editField": "rp_9pSHmG_editField",
|
|
13171
|
-
"reusable": "rp_9pSHmG_reusable",
|
|
13172
|
-
"image": "rp_9pSHmG_image",
|
|
13173
|
-
"open": "rp_9pSHmG_open",
|
|
13174
13171
|
"editHelp": "rp_9pSHmG_editHelp",
|
|
13175
|
-
"
|
|
13172
|
+
"editInput": "rp_9pSHmG_editInput",
|
|
13173
|
+
"message": "rp_9pSHmG_message",
|
|
13174
|
+
"tags": "rp_9pSHmG_tags",
|
|
13175
|
+
"large": "rp_9pSHmG_large",
|
|
13176
|
+
"cell": "rp_9pSHmG_cell",
|
|
13177
|
+
"image": "rp_9pSHmG_image",
|
|
13178
|
+
"reusable": "rp_9pSHmG_reusable",
|
|
13176
13179
|
"thumb": "rp_9pSHmG_thumb",
|
|
13180
|
+
"caption": "rp_9pSHmG_caption",
|
|
13177
13181
|
"count": "rp_9pSHmG_count",
|
|
13182
|
+
"edit": "rp_9pSHmG_edit",
|
|
13183
|
+
"status": "rp_9pSHmG_status",
|
|
13184
|
+
"note": "rp_9pSHmG_note",
|
|
13185
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
13186
|
+
"actions": "rp_9pSHmG_actions",
|
|
13178
13187
|
"toolbar": "rp_9pSHmG_toolbar",
|
|
13179
|
-
"
|
|
13188
|
+
"grid": "rp_9pSHmG_grid",
|
|
13189
|
+
"open": "rp_9pSHmG_open",
|
|
13180
13190
|
"editButton": "rp_9pSHmG_editButton",
|
|
13181
|
-
"editInput": "rp_9pSHmG_editInput",
|
|
13182
|
-
"actions": "rp_9pSHmG_actions",
|
|
13183
|
-
"select": "rp_9pSHmG_select",
|
|
13184
|
-
"status": "rp_9pSHmG_status",
|
|
13185
13191
|
"editArea": "rp_9pSHmG_editArea",
|
|
13186
|
-
"
|
|
13187
|
-
"caption": "rp_9pSHmG_caption",
|
|
13188
|
-
"message": "rp_9pSHmG_message",
|
|
13189
|
-
"tags": "rp_9pSHmG_tags",
|
|
13190
|
-
"editLabel": "rp_9pSHmG_editLabel",
|
|
13191
|
-
"large": "rp_9pSHmG_large",
|
|
13192
|
+
"select": "rp_9pSHmG_select",
|
|
13192
13193
|
"facts": "rp_9pSHmG_facts",
|
|
13193
|
-
"
|
|
13194
|
+
"editField": "rp_9pSHmG_editField",
|
|
13195
|
+
"pre": "rp_9pSHmG_pre",
|
|
13196
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
13197
|
+
"page": "rp_9pSHmG_page"
|
|
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
|
-
"drawerItem": "rp__swA3a_drawerItem",
|
|
13540
13540
|
"view": "rp__swA3a_view",
|
|
13541
|
+
"message": "rp__swA3a_message",
|
|
13541
13542
|
"content": "rp__swA3a_content",
|
|
13542
|
-
"
|
|
13543
|
+
"drawer": "rp__swA3a_drawer",
|
|
13544
|
+
"warning": "rp__swA3a_warning",
|
|
13545
|
+
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
13546
|
+
"drawerItem": "rp__swA3a_drawerItem"
|
|
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
|
-
"card": "rp_pQOzEG_card",
|
|
13954
|
-
"toolbar": "rp_pQOzEG_toolbar",
|
|
13955
|
-
"portrait": "rp_pQOzEG_portrait",
|
|
13956
|
-
"page": "rp_pQOzEG_page",
|
|
13957
|
-
"viewport": "rp_pQOzEG_viewport",
|
|
13958
|
-
"placeholder": "rp_pQOzEG_placeholder",
|
|
13959
|
-
"actions": "rp_pQOzEG_actions",
|
|
13960
|
-
"summary": "rp_pQOzEG_summary",
|
|
13961
13960
|
"editHeader": "rp_pQOzEG_editHeader",
|
|
13962
|
-
"
|
|
13963
|
-
"editTitle": "rp_pQOzEG_editTitle",
|
|
13961
|
+
"actions": "rp_pQOzEG_actions",
|
|
13964
13962
|
"editBody": "rp_pQOzEG_editBody",
|
|
13963
|
+
"count": "rp_pQOzEG_count",
|
|
13964
|
+
"page": "rp_pQOzEG_page",
|
|
13965
|
+
"message": "rp_pQOzEG_message",
|
|
13966
|
+
"editTitle": "rp_pQOzEG_editTitle",
|
|
13965
13967
|
"error": "rp_pQOzEG_error",
|
|
13966
|
-
"form": "rp_pQOzEG_form",
|
|
13967
|
-
"label": "rp_pQOzEG_label",
|
|
13968
|
-
"open": "rp_pQOzEG_open",
|
|
13969
13968
|
"field": "rp_pQOzEG_field",
|
|
13970
13969
|
"name": "rp_pQOzEG_name",
|
|
13970
|
+
"summary": "rp_pQOzEG_summary",
|
|
13971
|
+
"placeholder": "rp_pQOzEG_placeholder",
|
|
13972
|
+
"viewport": "rp_pQOzEG_viewport",
|
|
13973
|
+
"open": "rp_pQOzEG_open",
|
|
13971
13974
|
"text": "rp_pQOzEG_text",
|
|
13972
|
-
"
|
|
13973
|
-
"
|
|
13975
|
+
"toolbar": "rp_pQOzEG_toolbar",
|
|
13976
|
+
"label": "rp_pQOzEG_label",
|
|
13977
|
+
"grid": "rp_pQOzEG_grid",
|
|
13978
|
+
"card": "rp_pQOzEG_card",
|
|
13979
|
+
"form": "rp_pQOzEG_form",
|
|
13980
|
+
"portrait": "rp_pQOzEG_portrait"
|
|
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
|
-
"page": "rp_VV-Eha_page",
|
|
19249
|
-
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
19252
|
+
"editHeader": "rp_VV-Eha_editHeader",
|
|
19253
|
+
"name": "rp_VV-Eha_name",
|
|
19254
|
+
"select": "rp_VV-Eha_select",
|
|
19250
19255
|
"message": "rp_VV-Eha_message",
|
|
19251
|
-
"
|
|
19252
|
-
"input": "rp_VV-Eha_input",
|
|
19256
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
19253
19257
|
"title": "rp_VV-Eha_title",
|
|
19254
|
-
"
|
|
19258
|
+
"grid": "rp_VV-Eha_grid",
|
|
19259
|
+
"section": "rp_VV-Eha_section",
|
|
19260
|
+
"viewport": "rp_VV-Eha_viewport",
|
|
19255
19261
|
"count": "rp_VV-Eha_count",
|
|
19256
|
-
"select": "rp_VV-Eha_select",
|
|
19257
|
-
"description": "rp_VV-Eha_description",
|
|
19258
19262
|
"card": "rp_VV-Eha_card",
|
|
19259
|
-
"grid": "rp_VV-Eha_grid",
|
|
19260
|
-
"toolbar": "rp_VV-Eha_toolbar",
|
|
19261
19263
|
"warning": "rp_VV-Eha_warning",
|
|
19262
19264
|
"label": "rp_VV-Eha_label",
|
|
19263
|
-
"
|
|
19264
|
-
"
|
|
19265
|
-
"editTitle": "rp_VV-Eha_editTitle",
|
|
19266
|
-
"section": "rp_VV-Eha_section",
|
|
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",
|
|
19265
|
+
"actions": "rp_VV-Eha_actions",
|
|
19266
|
+
"toolbar": "rp_VV-Eha_toolbar",
|
|
19272
19267
|
"meta": "rp_VV-Eha_meta",
|
|
19273
|
-
"entryArea": "rp_VV-Eha_entryArea",
|
|
19274
19268
|
"ok": "rp_VV-Eha_ok",
|
|
19275
|
-
"
|
|
19269
|
+
"input": "rp_VV-Eha_input",
|
|
19270
|
+
"entryArea": "rp_VV-Eha_entryArea",
|
|
19271
|
+
"editBody": "rp_VV-Eha_editBody",
|
|
19272
|
+
"row": "rp_VV-Eha_row",
|
|
19273
|
+
"field": "rp_VV-Eha_field",
|
|
19274
|
+
"page": "rp_VV-Eha_page",
|
|
19275
|
+
"help": "rp_VV-Eha_help",
|
|
19276
|
+
"form": "rp_VV-Eha_form",
|
|
19277
|
+
"cardActions": "rp_VV-Eha_cardActions",
|
|
19278
|
+
"area": "rp_VV-Eha_area",
|
|
19279
|
+
"error": "rp_VV-Eha_error",
|
|
19280
|
+
"description": "rp_VV-Eha_description",
|
|
19281
|
+
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
19282
|
+
"head": "rp_VV-Eha_head"
|
|
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
|
-
"
|
|
20778
|
-
"
|
|
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",
|
|
20784
|
+
"page": "rp_ZK89ba_page",
|
|
20785
|
+
"grid": "rp_ZK89ba_grid",
|
|
20785
20786
|
"head": "rp_ZK89ba_head",
|
|
20786
|
-
"field": "rp_ZK89ba_field",
|
|
20787
20787
|
"editTitle": "rp_ZK89ba_editTitle",
|
|
20788
|
-
"
|
|
20788
|
+
"name": "rp_ZK89ba_name",
|
|
20789
20789
|
"section": "rp_ZK89ba_section",
|
|
20790
|
-
"
|
|
20791
|
-
"
|
|
20792
|
-
"
|
|
20793
|
-
"editHeader": "rp_ZK89ba_editHeader",
|
|
20794
|
-
"warning": "rp_ZK89ba_warning",
|
|
20790
|
+
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
20791
|
+
"card": "rp_ZK89ba_card",
|
|
20792
|
+
"ok": "rp_ZK89ba_ok",
|
|
20795
20793
|
"title": "rp_ZK89ba_title",
|
|
20796
|
-
"page": "rp_ZK89ba_page",
|
|
20797
20794
|
"help": "rp_ZK89ba_help",
|
|
20798
|
-
"
|
|
20799
|
-
"
|
|
20800
|
-
"count": "rp_ZK89ba_count",
|
|
20801
|
-
"name": "rp_ZK89ba_name",
|
|
20802
|
-
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
20795
|
+
"meta": "rp_ZK89ba_meta",
|
|
20796
|
+
"cardActions": "rp_ZK89ba_cardActions",
|
|
20803
20797
|
"row": "rp_ZK89ba_row",
|
|
20798
|
+
"editBody": "rp_ZK89ba_editBody",
|
|
20799
|
+
"viewport": "rp_ZK89ba_viewport",
|
|
20800
|
+
"area": "rp_ZK89ba_area",
|
|
20804
20801
|
"form": "rp_ZK89ba_form",
|
|
20805
|
-
"input": "rp_ZK89ba_input"
|
|
20802
|
+
"input": "rp_ZK89ba_input",
|
|
20803
|
+
"message": "rp_ZK89ba_message",
|
|
20804
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
20805
|
+
"count": "rp_ZK89ba_count",
|
|
20806
|
+
"description": "rp_ZK89ba_description",
|
|
20807
|
+
"actions": "rp_ZK89ba_actions",
|
|
20808
|
+
"error": "rp_ZK89ba_error",
|
|
20809
|
+
"warning": "rp_ZK89ba_warning",
|
|
20810
|
+
"editHeader": "rp_ZK89ba_editHeader",
|
|
20811
|
+
"field": "rp_ZK89ba_field",
|
|
20812
|
+
"label": "rp_ZK89ba_label"
|
|
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 = {
|
|
22294
|
-
"editBody": "rp_DLg_5G_editBody",
|
|
22295
|
-
"rowName": "rp_DLg_5G_rowName",
|
|
22296
|
-
"list": "rp_DLg_5G_list",
|
|
22297
|
-
"page": "rp_DLg_5G_page",
|
|
22298
|
-
"sign": "rp_DLg_5G_sign",
|
|
22299
|
-
"editHeader": "rp_DLg_5G_editHeader",
|
|
22300
22301
|
"area": "rp_DLg_5G_area",
|
|
22301
|
-
"toolbar": "rp_DLg_5G_toolbar",
|
|
22302
22302
|
"panes": "rp_DLg_5G_panes",
|
|
22303
|
+
"toolbar": "rp_DLg_5G_toolbar",
|
|
22304
|
+
"list": "rp_DLg_5G_list",
|
|
22303
22305
|
"shipped": "rp_DLg_5G_shipped",
|
|
22304
|
-
"
|
|
22305
|
-
"row": "rp_DLg_5G_row",
|
|
22306
|
+
"rowLanguage": "rp_DLg_5G_rowLanguage",
|
|
22306
22307
|
"viewport": "rp_DLg_5G_viewport",
|
|
22308
|
+
"pane": "rp_DLg_5G_pane",
|
|
22309
|
+
"sign": "rp_DLg_5G_sign",
|
|
22310
|
+
"count": "rp_DLg_5G_count",
|
|
22311
|
+
"rowName": "rp_DLg_5G_rowName",
|
|
22312
|
+
"warning": "rp_DLg_5G_warning",
|
|
22307
22313
|
"line": "rp_DLg_5G_line",
|
|
22308
|
-
"
|
|
22314
|
+
"group": "rp_DLg_5G_group",
|
|
22315
|
+
"check": "rp_DLg_5G_check",
|
|
22316
|
+
"missing": "rp_DLg_5G_missing",
|
|
22317
|
+
"label": "rp_DLg_5G_label",
|
|
22318
|
+
"editHeader": "rp_DLg_5G_editHeader",
|
|
22319
|
+
"page": "rp_DLg_5G_page",
|
|
22309
22320
|
"message": "rp_DLg_5G_message",
|
|
22310
|
-
"warning": "rp_DLg_5G_warning",
|
|
22311
22321
|
"ok": "rp_DLg_5G_ok",
|
|
22312
|
-
"
|
|
22313
|
-
"
|
|
22314
|
-
"
|
|
22322
|
+
"help": "rp_DLg_5G_help",
|
|
22323
|
+
"editTitle": "rp_DLg_5G_editTitle",
|
|
22324
|
+
"editBody": "rp_DLg_5G_editBody",
|
|
22315
22325
|
"spacer": "rp_DLg_5G_spacer",
|
|
22326
|
+
"row": "rp_DLg_5G_row",
|
|
22316
22327
|
"actions": "rp_DLg_5G_actions",
|
|
22317
|
-
"
|
|
22318
|
-
"editTitle": "rp_DLg_5G_editTitle",
|
|
22319
|
-
"pane": "rp_DLg_5G_pane",
|
|
22320
|
-
"count": "rp_DLg_5G_count",
|
|
22321
|
-
"group": "rp_DLg_5G_group"
|
|
22328
|
+
"error": "rp_DLg_5G_error"
|
|
22322
22329
|
};
|
|
22323
22330
|
// src/client/pages/prompts/PromptEditor.tsx
|
|
22324
22331
|
const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -23097,16 +23104,16 @@ 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
23118
|
"pager": "rp_KBAD0W_pager",
|
|
23112
23119
|
"position": "rp_KBAD0W_position"
|
|
@@ -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
|
-
"
|
|
23188
|
+
"error": "rp_FifHrW_error",
|
|
23182
23189
|
"body": "rp_FifHrW_body",
|
|
23183
|
-
"choice": "rp_FifHrW_choice",
|
|
23184
23190
|
"question": "rp_FifHrW_question",
|
|
23185
|
-
"
|
|
23191
|
+
"warning": "rp_FifHrW_warning",
|
|
23192
|
+
"choice": "rp_FifHrW_choice"
|
|
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
|
-
"
|
|
23716
|
+
"secondary": "rp_24z4eW_secondary",
|
|
23717
|
+
"toolbar": "rp_24z4eW_toolbar",
|
|
23718
|
+
"message": "rp_24z4eW_message",
|
|
23719
|
+
"fits": "rp_24z4eW_fits",
|
|
23710
23720
|
"viewport": "rp_24z4eW_viewport",
|
|
23711
|
-
"
|
|
23721
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
23722
|
+
"spinning": "rp_24z4eW_spinning",
|
|
23723
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
23724
|
+
"name": "rp_24z4eW_name",
|
|
23712
23725
|
"count": "rp_24z4eW_count",
|
|
23713
|
-
"toolbar": "rp_24z4eW_toolbar",
|
|
23714
23726
|
"worldColumn": "rp_24z4eW_worldColumn",
|
|
23715
|
-
"name": "rp_24z4eW_name",
|
|
23716
|
-
"message": "rp_24z4eW_message",
|
|
23717
23727
|
"archived": "rp_24z4eW_archived",
|
|
23718
|
-
"
|
|
23719
|
-
"secondary": "rp_24z4eW_secondary",
|
|
23720
|
-
"timeColumn": "rp_24z4eW_timeColumn",
|
|
23721
|
-
"spinning": "rp_24z4eW_spinning",
|
|
23722
|
-
"spin": "rp_24z4eW_spin",
|
|
23723
|
-
"notice": "rp_24z4eW_notice",
|
|
23724
|
-
"table": "rp_24z4eW_table",
|
|
23725
|
-
"fits": "rp_24z4eW_fits",
|
|
23728
|
+
"page": "rp_24z4eW_page",
|
|
23726
23729
|
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
23727
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
23728
23730
|
"actions": "rp_24z4eW_actions",
|
|
23729
|
-
"
|
|
23730
|
-
"
|
|
23731
|
+
"number": "rp_24z4eW_number",
|
|
23732
|
+
"table": "rp_24z4eW_table",
|
|
23733
|
+
"notice": "rp_24z4eW_notice",
|
|
23734
|
+
"spin": "rp_24z4eW_spin",
|
|
23735
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
23736
|
+
"nameColumn": "rp_24z4eW_nameColumn",
|
|
23737
|
+
"badge": "rp_24z4eW_badge"
|
|
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 = {
|
|
24469
|
-
"kindColumn": "rp_Gk-byG_kindColumn",
|
|
24470
|
-
"message": "rp_Gk-byG_message",
|
|
24471
|
-
"actions": "rp_Gk-byG_actions",
|
|
24472
|
-
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
24473
|
-
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
24474
|
-
"page": "rp_Gk-byG_page",
|
|
24475
|
-
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
24476
|
-
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
24477
|
-
"failed": "rp_Gk-byG_failed",
|
|
24478
|
-
"unit": "rp_Gk-byG_unit",
|
|
24479
24476
|
"detail": "rp_Gk-byG_detail",
|
|
24480
|
-
"
|
|
24477
|
+
"unit": "rp_Gk-byG_unit",
|
|
24478
|
+
"failed": "rp_Gk-byG_failed",
|
|
24481
24479
|
"error": "rp_Gk-byG_error",
|
|
24482
|
-
"
|
|
24483
|
-
"
|
|
24480
|
+
"problem": "rp_Gk-byG_problem",
|
|
24481
|
+
"conflict": "rp_Gk-byG_conflict",
|
|
24482
|
+
"message": "rp_Gk-byG_message",
|
|
24484
24483
|
"choices": "rp_Gk-byG_choices",
|
|
24485
|
-
"
|
|
24486
|
-
"confirmation": "rp_Gk-byG_confirmation",
|
|
24484
|
+
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
24487
24485
|
"caption": "rp_Gk-byG_caption",
|
|
24488
|
-
"
|
|
24486
|
+
"viewport": "rp_Gk-byG_viewport",
|
|
24487
|
+
"kindColumn": "rp_Gk-byG_kindColumn",
|
|
24489
24488
|
"stateColumn": "rp_Gk-byG_stateColumn",
|
|
24490
|
-
"
|
|
24491
|
-
"
|
|
24489
|
+
"toolbar": "rp_Gk-byG_toolbar",
|
|
24490
|
+
"page": "rp_Gk-byG_page",
|
|
24491
|
+
"meta": "rp_Gk-byG_meta",
|
|
24492
|
+
"confirmation": "rp_Gk-byG_confirmation",
|
|
24493
|
+
"actions": "rp_Gk-byG_actions",
|
|
24494
|
+
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
24495
|
+
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
24496
|
+
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
24497
|
+
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
24498
|
+
"table": "rp_Gk-byG_table"
|
|
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 = {
|
|
25323
|
+
"text": "rp_jnVj9q_text",
|
|
25324
|
+
"rpToastEnter": "rp_jnVj9q_rpToastEnter",
|
|
25325
|
+
"actionButton": "rp_jnVj9q_actionButton",
|
|
25316
25326
|
"action": "rp_jnVj9q_action",
|
|
25317
|
-
"
|
|
25327
|
+
"fading": "rp_jnVj9q_fading",
|
|
25318
25328
|
"banner": "rp_jnVj9q_banner",
|
|
25319
25329
|
"success": "rp_jnVj9q_success",
|
|
25320
|
-
"
|
|
25321
|
-
"fading": "rp_jnVj9q_fading",
|
|
25322
|
-
"rpToastEnter": "rp_jnVj9q_rpToastEnter",
|
|
25323
|
-
"actionButton": "rp_jnVj9q_actionButton"
|
|
25330
|
+
"prefix": "rp_jnVj9q_prefix"
|
|
25324
25331
|
};
|
|
25325
25332
|
// src/client/ui/Toast.tsx
|
|
25326
25333
|
const FADE_MS = 200;
|
|
@@ -25378,27 +25385,27 @@ 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
|
-
"play": "rp_Bvxx5q_play",
|
|
25393
|
-
"card": "rp_Bvxx5q_card",
|
|
25394
|
-
"tag": "rp_Bvxx5q_tag",
|
|
25395
|
-
"name": "rp_Bvxx5q_name",
|
|
25396
25399
|
"tags": "rp_Bvxx5q_tags",
|
|
25397
|
-
"openButton": "rp_Bvxx5q_openButton",
|
|
25398
|
-
"cover": "rp_Bvxx5q_cover",
|
|
25399
25400
|
"info": "rp_Bvxx5q_info",
|
|
25401
|
+
"cover": "rp_Bvxx5q_cover",
|
|
25402
|
+
"name": "rp_Bvxx5q_name",
|
|
25403
|
+
"openButton": "rp_Bvxx5q_openButton",
|
|
25404
|
+
"card": "rp_Bvxx5q_card",
|
|
25405
|
+
"placeholder": "rp_Bvxx5q_placeholder",
|
|
25406
|
+
"play": "rp_Bvxx5q_play",
|
|
25400
25407
|
"image": "rp_Bvxx5q_image",
|
|
25401
|
-
"
|
|
25408
|
+
"tag": "rp_Bvxx5q_tag"
|
|
25402
25409
|
};
|
|
25403
25410
|
// src/client/widgets/world-card/WorldCard.tsx
|
|
25404
25411
|
/** Stable hue per name, so a world without a cover keeps the same colour. */
|
|
@@ -25484,21 +25491,21 @@ 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 = {
|
|
25505
|
+
"summary": "rp_YCstOG_summary",
|
|
25498
25506
|
"option": "rp_YCstOG_option",
|
|
25499
25507
|
"text": "rp_YCstOG_text",
|
|
25500
|
-
"name": "rp_YCstOG_name"
|
|
25501
|
-
"summary": "rp_YCstOG_summary"
|
|
25508
|
+
"name": "rp_YCstOG_name"
|
|
25502
25509
|
};
|
|
25503
25510
|
// src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
25504
25511
|
/** A list of avatars to tick: the ones brought into a world or a session. */
|
|
@@ -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
|
+
"error": "rp_AnbLKG_error",
|
|
25547
|
+
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
25539
25548
|
"label": "rp_AnbLKG_label",
|
|
25540
|
-
"form": "rp_AnbLKG_form",
|
|
25541
|
-
"option": "rp_AnbLKG_option",
|
|
25542
25549
|
"optionName": "rp_AnbLKG_optionName",
|
|
25550
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
25543
25551
|
"field": "rp_AnbLKG_field",
|
|
25544
|
-
"
|
|
25545
|
-
"message": "rp_AnbLKG_message",
|
|
25552
|
+
"option": "rp_AnbLKG_option",
|
|
25546
25553
|
"advanced": "rp_AnbLKG_advanced",
|
|
25547
|
-
"
|
|
25548
|
-
"
|
|
25554
|
+
"form": "rp_AnbLKG_form",
|
|
25555
|
+
"optionText": "rp_AnbLKG_optionText",
|
|
25549
25556
|
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
25550
|
-
"
|
|
25557
|
+
"message": "rp_AnbLKG_message"
|
|
25551
25558
|
};
|
|
25552
25559
|
// src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
25553
25560
|
/** Asks which avatars become characters of a world's own files. */
|
|
@@ -26916,20 +26923,20 @@ window.__ModuleLoader__.load({
|
|
|
26916
26923
|
return options;
|
|
26917
26924
|
}
|
|
26918
26925
|
// \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$
|
|
26926
|
+
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}}";
|
|
26927
|
+
const key$19 = "src/client/ui/SegmentedControl.module.css";
|
|
26928
|
+
let tag$19 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$19) + "]");
|
|
26929
|
+
if (tag$19 === null) {
|
|
26930
|
+
tag$19 = document.createElement("style");
|
|
26931
|
+
tag$19.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
26932
|
+
tag$19.dataset.pluginCss = key$19;
|
|
26933
|
+
document.head.appendChild(tag$19);
|
|
26927
26934
|
}
|
|
26928
|
-
tag$
|
|
26935
|
+
tag$19.textContent = css$19;
|
|
26929
26936
|
var SegmentedControl_module_css_default = {
|
|
26930
|
-
"rpIndicator": "rp_wN4Tqa_rpIndicator",
|
|
26931
26937
|
"rpTab": "rp_wN4Tqa_rpTab",
|
|
26932
|
-
"rpControl": "rp_wN4Tqa_rpControl"
|
|
26938
|
+
"rpControl": "rp_wN4Tqa_rpControl",
|
|
26939
|
+
"rpIndicator": "rp_wN4Tqa_rpIndicator"
|
|
26933
26940
|
};
|
|
26934
26941
|
// src/client/ui/walk.ts
|
|
26935
26942
|
/** Whether a key moves the selection inside a tablist. */
|
|
@@ -27011,25 +27018,26 @@ window.__ModuleLoader__.load({
|
|
|
27011
27018
|
});
|
|
27012
27019
|
}
|
|
27013
27020
|
// \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$
|
|
27021
|
+
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}";
|
|
27022
|
+
const key$18 = "src/client/settings-form/SettingsFields.module.css";
|
|
27023
|
+
let tag$18 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$18) + "]");
|
|
27024
|
+
if (tag$18 === null) {
|
|
27025
|
+
tag$18 = document.createElement("style");
|
|
27026
|
+
tag$18.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
27027
|
+
tag$18.dataset.pluginCss = key$18;
|
|
27028
|
+
document.head.appendChild(tag$18);
|
|
27022
27029
|
}
|
|
27023
|
-
tag$
|
|
27030
|
+
tag$18.textContent = css$18;
|
|
27024
27031
|
var SettingsFields_module_css_default = {
|
|
27025
|
-
"group": "rp_Rhi3yq_group",
|
|
27026
|
-
"field": "rp_Rhi3yq_field",
|
|
27027
27032
|
"row": "rp_Rhi3yq_row",
|
|
27028
|
-
"
|
|
27033
|
+
"choiceField": "rp_Rhi3yq_choiceField",
|
|
27029
27034
|
"label": "rp_Rhi3yq_label",
|
|
27030
27035
|
"help": "rp_Rhi3yq_help",
|
|
27031
27036
|
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
27032
|
-
"
|
|
27037
|
+
"field": "rp_Rhi3yq_field",
|
|
27038
|
+
"error": "rp_Rhi3yq_error",
|
|
27039
|
+
"group": "rp_Rhi3yq_group",
|
|
27040
|
+
"area": "rp_Rhi3yq_area"
|
|
27033
27041
|
};
|
|
27034
27042
|
// src/client/settings-form/SettingsFields.tsx
|
|
27035
27043
|
/** The settings of a chat as editable fields: one control with its explanation under each. */
|
|
@@ -27069,7 +27077,7 @@ window.__ModuleLoader__.load({
|
|
|
27069
27077
|
className: SettingsFields_module_css_default.row,
|
|
27070
27078
|
children: [
|
|
27071
27079
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
27072
|
-
className: SettingsFields_module_css_default.field,
|
|
27080
|
+
className: field.kind === "choice" ? `${SettingsFields_module_css_default.field} ${SettingsFields_module_css_default.choiceField}` : SettingsFields_module_css_default.field,
|
|
27073
27081
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27074
27082
|
className: SettingsFields_module_css_default.label,
|
|
27075
27083
|
children: t(field.label)
|
|
@@ -27324,21 +27332,21 @@ window.__ModuleLoader__.load({
|
|
|
27324
27332
|
/** The language of the interface or of a setting, as one of the two the plugin writes in. */
|
|
27325
27333
|
const storyLanguageOf = (code) => code.trim().toLowerCase().startsWith("zh") ? "zh" : "en";
|
|
27326
27334
|
// \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$
|
|
27335
|
+
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}";
|
|
27336
|
+
const key$17 = "src/client/pages/worlds/TranslateBanner.module.css";
|
|
27337
|
+
let tag$17 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$17) + "]");
|
|
27338
|
+
if (tag$17 === null) {
|
|
27339
|
+
tag$17 = document.createElement("style");
|
|
27340
|
+
tag$17.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
27341
|
+
tag$17.dataset.pluginCss = key$17;
|
|
27342
|
+
document.head.appendChild(tag$17);
|
|
27335
27343
|
}
|
|
27336
|
-
tag$
|
|
27344
|
+
tag$17.textContent = css$17;
|
|
27337
27345
|
var TranslateBanner_module_css_default = {
|
|
27338
|
-
"banner": "rp_Lx8vJa_banner",
|
|
27339
|
-
"bannerActions": "rp_Lx8vJa_bannerActions",
|
|
27340
27346
|
"error": "rp_Lx8vJa_error",
|
|
27341
|
-
"
|
|
27347
|
+
"bannerActions": "rp_Lx8vJa_bannerActions",
|
|
27348
|
+
"text": "rp_Lx8vJa_text",
|
|
27349
|
+
"banner": "rp_Lx8vJa_banner"
|
|
27342
27350
|
};
|
|
27343
27351
|
// src/client/pages/worlds/TranslateBanner.tsx
|
|
27344
27352
|
/** A language by name in the person's own language; the two the plugin has texts for use them, any other is named by the browser. */
|
|
@@ -27351,27 +27359,28 @@ window.__ModuleLoader__.load({
|
|
|
27351
27359
|
return language;
|
|
27352
27360
|
}
|
|
27353
27361
|
}
|
|
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
27362
|
/** Both languages of a world: the one its words are in, and the one its file declares for its stories. */
|
|
27359
|
-
function useWorldLanguages(worldId) {
|
|
27363
|
+
function useWorldLanguages(worldId, reload = 0) {
|
|
27360
27364
|
const [languages, setLanguages] = (0, react.useState)({});
|
|
27365
|
+
const previous = (0, react.useRef)(worldId);
|
|
27361
27366
|
(0, react.useEffect)(() => {
|
|
27367
|
+
if (worldId !== previous.current) {
|
|
27368
|
+
previous.current = worldId;
|
|
27369
|
+
setLanguages({});
|
|
27370
|
+
}
|
|
27371
|
+
if (worldId === "") return;
|
|
27362
27372
|
const abort = new AbortController();
|
|
27363
|
-
setLanguages({});
|
|
27364
27373
|
worldLanguages(worldId, abort.signal).then(setLanguages, () => void 0);
|
|
27365
27374
|
return () => {
|
|
27366
27375
|
abort.abort();
|
|
27367
27376
|
};
|
|
27368
|
-
}, [worldId]);
|
|
27369
|
-
return languages;
|
|
27377
|
+
}, [worldId, reload]);
|
|
27378
|
+
return previous.current === worldId ? languages : {};
|
|
27370
27379
|
}
|
|
27371
27380
|
/** 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 }) {
|
|
27381
|
+
function TranslateBanner({ t, worldId, worldName, openChat, reload = 0 }) {
|
|
27373
27382
|
const own = storyLanguageOf(t("language"));
|
|
27374
|
-
const written =
|
|
27383
|
+
const { written, declared } = useWorldLanguages(worldId, reload);
|
|
27375
27384
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
27376
27385
|
const [failure, setFailure] = (0, react.useState)();
|
|
27377
27386
|
if (written === void 0 || written === own) return null;
|
|
@@ -27393,7 +27402,11 @@ window.__ModuleLoader__.load({
|
|
|
27393
27402
|
"data-testid": "roleplay-translate-banner",
|
|
27394
27403
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27395
27404
|
className: TranslateBanner_module_css_default.text,
|
|
27396
|
-
children: t("
|
|
27405
|
+
children: declared !== void 0 && declared !== "" && declared.trim().toLowerCase().split(/[-_]/)[0] !== own ? t("translateDeclared", {
|
|
27406
|
+
from: languageName(t, written),
|
|
27407
|
+
declared: languageName(t, declared),
|
|
27408
|
+
to: languageName(t, own)
|
|
27409
|
+
}) : t("translateWarning", {
|
|
27397
27410
|
from: languageName(t, written),
|
|
27398
27411
|
to: languageName(t, own)
|
|
27399
27412
|
})
|
|
@@ -27962,37 +27975,37 @@ window.__ModuleLoader__.load({
|
|
|
27962
27975
|
}));
|
|
27963
27976
|
}
|
|
27964
27977
|
// \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$
|
|
27978
|
+
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}}";
|
|
27979
|
+
const key$16 = "src/client/pages/worlds/WorldsPage.module.css";
|
|
27980
|
+
let tag$16 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$16) + "]");
|
|
27981
|
+
if (tag$16 === null) {
|
|
27982
|
+
tag$16 = document.createElement("style");
|
|
27983
|
+
tag$16.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
27984
|
+
tag$16.dataset.pluginCss = key$16;
|
|
27985
|
+
document.head.appendChild(tag$16);
|
|
27973
27986
|
}
|
|
27974
|
-
tag$
|
|
27987
|
+
tag$16.textContent = css$16;
|
|
27975
27988
|
var WorldsPage_module_css_default = {
|
|
27989
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
27976
27990
|
"editTitle": "rp_FHUyRq_editTitle",
|
|
27977
|
-
"editActions": "rp_FHUyRq_editActions",
|
|
27978
|
-
"starter": "rp_FHUyRq_starter",
|
|
27979
27991
|
"toolbar": "rp_FHUyRq_toolbar",
|
|
27980
|
-
"editBody": "rp_FHUyRq_editBody",
|
|
27981
|
-
"grid": "rp_FHUyRq_grid",
|
|
27982
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
27983
|
-
"fits": "rp_FHUyRq_fits",
|
|
27984
27992
|
"message": "rp_FHUyRq_message",
|
|
27985
|
-
"
|
|
27986
|
-
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
27993
|
+
"editActions": "rp_FHUyRq_editActions",
|
|
27987
27994
|
"count": "rp_FHUyRq_count",
|
|
27995
|
+
"spin": "rp_FHUyRq_spin",
|
|
27988
27996
|
"info": "rp_FHUyRq_info",
|
|
27989
|
-
"
|
|
27997
|
+
"starters": "rp_FHUyRq_starters",
|
|
27998
|
+
"grid": "rp_FHUyRq_grid",
|
|
27999
|
+
"notice": "rp_FHUyRq_notice",
|
|
27990
28000
|
"page": "rp_FHUyRq_page",
|
|
27991
28001
|
"viewport": "rp_FHUyRq_viewport",
|
|
28002
|
+
"cell": "rp_FHUyRq_cell",
|
|
28003
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
28004
|
+
"editBody": "rp_FHUyRq_editBody",
|
|
27992
28005
|
"scrolls": "rp_FHUyRq_scrolls",
|
|
27993
|
-
"
|
|
27994
|
-
"
|
|
27995
|
-
"
|
|
28006
|
+
"starter": "rp_FHUyRq_starter",
|
|
28007
|
+
"editHeader": "rp_FHUyRq_editHeader",
|
|
28008
|
+
"fits": "rp_FHUyRq_fits"
|
|
27996
28009
|
};
|
|
27997
28010
|
// src/client/pages/worlds/StarterWorlds.tsx
|
|
27998
28011
|
/** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
|
|
@@ -28579,8 +28592,11 @@ window.__ModuleLoader__.load({
|
|
|
28579
28592
|
const viewport = (0, react.useRef)(null);
|
|
28580
28593
|
const { pageSize, scrolls } = pagingFor(useGridFit(viewport));
|
|
28581
28594
|
const [requestedStart, setRequestedStart] = (0, react.useState)(0);
|
|
28582
|
-
const [
|
|
28595
|
+
const [chosenAssistant, setChosenAssistant] = (0, react.useState)();
|
|
28596
|
+
const [languageVersion, setLanguageVersion] = (0, react.useState)(0);
|
|
28583
28597
|
const [editing, setEditing] = (0, react.useState)();
|
|
28598
|
+
const worldLanguages = useWorldLanguages(editing?.id ?? "", languageVersion);
|
|
28599
|
+
const assistantLanguage = chosenAssistant?.worldId === editing?.id && chosenAssistant !== void 0 ? chosenAssistant.language : primaryLanguage(worldLanguages.declared ?? t("language"));
|
|
28584
28600
|
const [creating, setCreating] = (0, react.useState)(false);
|
|
28585
28601
|
const [addingAvatars, setAddingAvatars] = (0, react.useState)(false);
|
|
28586
28602
|
const [editorVersion, setEditorVersion] = (0, react.useState)(0);
|
|
@@ -28795,7 +28811,12 @@ window.__ModuleLoader__.load({
|
|
|
28795
28811
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
28796
28812
|
compact: true,
|
|
28797
28813
|
value: assistantLanguage,
|
|
28798
|
-
onChange:
|
|
28814
|
+
onChange: (language) => {
|
|
28815
|
+
if (editing !== void 0) setChosenAssistant({
|
|
28816
|
+
worldId: editing.id,
|
|
28817
|
+
language
|
|
28818
|
+
});
|
|
28819
|
+
},
|
|
28799
28820
|
interfaceLanguage: t("language"),
|
|
28800
28821
|
label: t("assistantLanguage"),
|
|
28801
28822
|
title: t("assistantLanguageHelp"),
|
|
@@ -28861,7 +28882,8 @@ window.__ModuleLoader__.load({
|
|
|
28861
28882
|
t,
|
|
28862
28883
|
worldId: editing.id,
|
|
28863
28884
|
worldName: editing.name,
|
|
28864
|
-
openChat
|
|
28885
|
+
openChat,
|
|
28886
|
+
reload: languageVersion
|
|
28865
28887
|
}),
|
|
28866
28888
|
reverting && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RevertUpdateDialog, {
|
|
28867
28889
|
t,
|
|
@@ -28901,7 +28923,10 @@ window.__ModuleLoader__.load({
|
|
|
28901
28923
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorldEditor, {
|
|
28902
28924
|
t,
|
|
28903
28925
|
source,
|
|
28904
|
-
notEditable: t("worldMissing")
|
|
28926
|
+
notEditable: t("worldMissing"),
|
|
28927
|
+
onInfoSaved: () => {
|
|
28928
|
+
setLanguageVersion((version) => version + 1);
|
|
28929
|
+
}
|
|
28905
28930
|
}, editorVersion)
|
|
28906
28931
|
})
|
|
28907
28932
|
]
|
|
@@ -31226,6 +31251,7 @@ window.__ModuleLoader__.load({
|
|
|
31226
31251
|
authorWorldFailed: "Could not open the authoring chat: {message}",
|
|
31227
31252
|
authoringChatTitle: "Authoring {name}",
|
|
31228
31253
|
translateWarning: "This world is written in {from}, but you use {to}. Names, descriptions and the characters' speech may mix the two languages.",
|
|
31254
|
+
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
31255
|
translateAction: "Translate into {to}",
|
|
31230
31256
|
translateOpening: "Opening…",
|
|
31231
31257
|
translateChatTitle: "Translating {name}",
|
|
@@ -31375,6 +31401,7 @@ window.__ModuleLoader__.load({
|
|
|
31375
31401
|
authorWorldFailed: "无法打开世界编辑对话:{message}",
|
|
31376
31402
|
authoringChatTitle: "编辑{name}",
|
|
31377
31403
|
translateWarning: "这个世界是用{from}写的,而你使用的是{to}。名字、描述和角色的说话可能会两种语言混在一起。",
|
|
31404
|
+
translateDeclared: "这个世界是用{from}写的,并设为用{declared}开始故事,与你的界面语言({to})无关。如果希望世界使用你自己的语言,仍然可以把它翻译成{to}。",
|
|
31378
31405
|
translateAction: "翻译成{to}",
|
|
31379
31406
|
translateOpening: "正在打开…",
|
|
31380
31407
|
translateChatTitle: "翻译{name}",
|
|
@@ -31524,6 +31551,7 @@ window.__ModuleLoader__.load({
|
|
|
31524
31551
|
authorWorldFailed: "作成チャットを開けませんでした:{message}",
|
|
31525
31552
|
authoringChatTitle: "{name} を作成",
|
|
31526
31553
|
translateWarning: "このワールドは {from} で書かれていますが、使用言語は {to} です。名前、説明、キャラクターの台詞に両方の言語が混ざることがあります。",
|
|
31554
|
+
translateDeclared: "このワールドは{from}で書かれており、インターフェース言語({to})に関係なく{declared}でストーリーを始める設定です。自分の言語にしたい場合は、{to}に翻訳することもできます。",
|
|
31527
31555
|
translateAction: "{to} へ翻訳",
|
|
31528
31556
|
translateOpening: "開いています…",
|
|
31529
31557
|
translateChatTitle: "{name} を翻訳",
|
|
@@ -31673,6 +31701,7 @@ window.__ModuleLoader__.load({
|
|
|
31673
31701
|
authorWorldFailed: "No se ha podido abrir el chat de creación: {message}",
|
|
31674
31702
|
authoringChatTitle: "Creación de {name}",
|
|
31675
31703
|
translateWarning: "Este mundo está escrito en {from}, pero usas {to}. Los nombres, descripciones y diálogos pueden mezclar ambos idiomas.",
|
|
31704
|
+
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
31705
|
translateAction: "Traducir a {to}",
|
|
31677
31706
|
translateOpening: "Abriendo…",
|
|
31678
31707
|
translateChatTitle: "Traducción de {name}",
|
|
@@ -31822,6 +31851,7 @@ window.__ModuleLoader__.load({
|
|
|
31822
31851
|
authorWorldFailed: "Impossible d’ouvrir la discussion de création : {message}",
|
|
31823
31852
|
authoringChatTitle: "Création de {name}",
|
|
31824
31853
|
translateWarning: "Ce monde est écrit en {from}, mais vous utilisez {to}. Les noms, descriptions et dialogues peuvent mélanger les deux langues.",
|
|
31854
|
+
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
31855
|
translateAction: "Traduire en {to}",
|
|
31826
31856
|
translateOpening: "Ouverture…",
|
|
31827
31857
|
translateChatTitle: "Traduction de {name}",
|
|
@@ -31971,6 +32001,7 @@ window.__ModuleLoader__.load({
|
|
|
31971
32001
|
authorWorldFailed: "Der Autorenchat konnte nicht geöffnet werden: {message}",
|
|
31972
32002
|
authoringChatTitle: "{name} verfassen",
|
|
31973
32003
|
translateWarning: "Diese Welt ist auf {from} geschrieben, du verwendest aber {to}. Namen, Beschreibungen und Dialoge können beide Sprachen mischen.",
|
|
32004
|
+
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
32005
|
translateAction: "Ins {to} übersetzen",
|
|
31975
32006
|
translateOpening: "Wird geöffnet…",
|
|
31976
32007
|
translateChatTitle: "{name} übersetzen",
|
|
@@ -32120,6 +32151,7 @@ window.__ModuleLoader__.load({
|
|
|
32120
32151
|
authorWorldFailed: "Не удалось открыть авторский чат: {message}",
|
|
32121
32152
|
authoringChatTitle: "Создание {name}",
|
|
32122
32153
|
translateWarning: "Этот мир написан на {from}, а вы используете {to}. Названия, описания и речь персонажей могут смешивать языки.",
|
|
32154
|
+
translateDeclared: "Этот мир написан на языке «{from}» и настроен начинать истории на языке «{declared}» независимо от языка вашего интерфейса ({to}). При желании его всё равно можно перевести на «{to}».",
|
|
32123
32155
|
translateAction: "Перевести на {to}",
|
|
32124
32156
|
translateOpening: "Открытие…",
|
|
32125
32157
|
translateChatTitle: "Перевод {name}",
|
|
@@ -32269,6 +32301,7 @@ window.__ModuleLoader__.load({
|
|
|
32269
32301
|
authorWorldFailed: "Não foi possível abrir a conversa de criação: {message}",
|
|
32270
32302
|
authoringChatTitle: "Criação de {name}",
|
|
32271
32303
|
translateWarning: "Este mundo está escrito em {from}, mas utiliza {to}. Os nomes, as descrições e as falas podem misturar as duas línguas.",
|
|
32304
|
+
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
32305
|
translateAction: "Traduzir para {to}",
|
|
32273
32306
|
translateOpening: "A abrir…",
|
|
32274
32307
|
translateChatTitle: "Tradução de {name}",
|
|
@@ -32646,21 +32679,21 @@ window.__ModuleLoader__.load({
|
|
|
32646
32679
|
}
|
|
32647
32680
|
};
|
|
32648
32681
|
// \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$
|
|
32682
|
+
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}";
|
|
32683
|
+
const key$15 = "src/client/branch/BranchDialog.module.css";
|
|
32684
|
+
let tag$15 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$15) + "]");
|
|
32685
|
+
if (tag$15 === null) {
|
|
32686
|
+
tag$15 = document.createElement("style");
|
|
32687
|
+
tag$15.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
32688
|
+
tag$15.dataset.pluginCss = key$15;
|
|
32689
|
+
document.head.appendChild(tag$15);
|
|
32657
32690
|
}
|
|
32658
|
-
tag$
|
|
32691
|
+
tag$15.textContent = css$15;
|
|
32659
32692
|
var BranchDialog_module_css_default = {
|
|
32660
|
-
"error": "rp_Dy1TaW_error",
|
|
32661
|
-
"form": "rp_Dy1TaW_form",
|
|
32662
32693
|
"label": "rp_Dy1TaW_label",
|
|
32663
|
-
"field": "rp_Dy1TaW_field"
|
|
32694
|
+
"field": "rp_Dy1TaW_field",
|
|
32695
|
+
"error": "rp_Dy1TaW_error",
|
|
32696
|
+
"form": "rp_Dy1TaW_form"
|
|
32664
32697
|
};
|
|
32665
32698
|
// src/client/branch/BranchDialog.tsx
|
|
32666
32699
|
/** Asks for the name of a session that was just branched off another. */
|
|
@@ -32827,23 +32860,23 @@ window.__ModuleLoader__.load({
|
|
|
32827
32860
|
}, BranchDialog));
|
|
32828
32861
|
}
|
|
32829
32862
|
// \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$
|
|
32863
|
+
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}";
|
|
32864
|
+
const key$14 = "src/client/widgets/sidebar-guide/SidebarGuideEntry.module.css";
|
|
32865
|
+
let tag$14 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$14) + "]");
|
|
32866
|
+
if (tag$14 === null) {
|
|
32867
|
+
tag$14 = document.createElement("style");
|
|
32868
|
+
tag$14.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
32869
|
+
tag$14.dataset.pluginCss = key$14;
|
|
32870
|
+
document.head.appendChild(tag$14);
|
|
32838
32871
|
}
|
|
32839
|
-
tag$
|
|
32872
|
+
tag$14.textContent = css$14;
|
|
32840
32873
|
var SidebarGuideEntry_module_css_default = {
|
|
32874
|
+
"text": "rp_Okaj1q_text",
|
|
32875
|
+
"icon": "rp_Okaj1q_icon",
|
|
32841
32876
|
"description": "rp_Okaj1q_description",
|
|
32842
|
-
"title": "rp_Okaj1q_title",
|
|
32843
|
-
"entry": "rp_Okaj1q_entry",
|
|
32844
32877
|
"main": "rp_Okaj1q_main",
|
|
32845
|
-
"
|
|
32846
|
-
"
|
|
32878
|
+
"entry": "rp_Okaj1q_entry",
|
|
32879
|
+
"title": "rp_Okaj1q_title"
|
|
32847
32880
|
};
|
|
32848
32881
|
// src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
|
|
32849
32882
|
/** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
|
|
@@ -32879,20 +32912,20 @@ window.__ModuleLoader__.load({
|
|
|
32879
32912
|
});
|
|
32880
32913
|
}
|
|
32881
32914
|
// \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$
|
|
32915
|
+
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}";
|
|
32916
|
+
const key$13 = "src/client/gallery/GalleryTab.module.css";
|
|
32917
|
+
let tag$13 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$13) + "]");
|
|
32918
|
+
if (tag$13 === null) {
|
|
32919
|
+
tag$13 = document.createElement("style");
|
|
32920
|
+
tag$13.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
32921
|
+
tag$13.dataset.pluginCss = key$13;
|
|
32922
|
+
document.head.appendChild(tag$13);
|
|
32890
32923
|
}
|
|
32891
|
-
tag$
|
|
32924
|
+
tag$13.textContent = css$13;
|
|
32892
32925
|
var GalleryTab_module_css_default = {
|
|
32893
|
-
"bar": "rp_W688Pa_bar",
|
|
32894
32926
|
"page": "rp_W688Pa_page",
|
|
32895
|
-
"message": "rp_W688Pa_message"
|
|
32927
|
+
"message": "rp_W688Pa_message",
|
|
32928
|
+
"bar": "rp_W688Pa_bar"
|
|
32896
32929
|
};
|
|
32897
32930
|
// src/client/gallery/GalleryTab.tsx
|
|
32898
32931
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -33298,28 +33331,28 @@ window.__ModuleLoader__.load({
|
|
|
33298
33331
|
});
|
|
33299
33332
|
}
|
|
33300
33333
|
// \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$
|
|
33334
|
+
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}";
|
|
33335
|
+
const key$12 = "src/client/interface/SidebarPage.module.css";
|
|
33336
|
+
let tag$12 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$12) + "]");
|
|
33337
|
+
if (tag$12 === null) {
|
|
33338
|
+
tag$12 = document.createElement("style");
|
|
33339
|
+
tag$12.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
33340
|
+
tag$12.dataset.pluginCss = key$12;
|
|
33341
|
+
document.head.appendChild(tag$12);
|
|
33309
33342
|
}
|
|
33310
|
-
tag$
|
|
33343
|
+
tag$12.textContent = css$12;
|
|
33311
33344
|
var SidebarPage_module_css_default = {
|
|
33312
|
-
"
|
|
33345
|
+
"content": "rp_Ptco8a_content",
|
|
33346
|
+
"page": "rp_Ptco8a_page",
|
|
33313
33347
|
"name": "rp_Ptco8a_name",
|
|
33314
|
-
"entry": "rp_Ptco8a_entry",
|
|
33315
|
-
"text": "rp_Ptco8a_text",
|
|
33316
|
-
"title": "rp_Ptco8a_title",
|
|
33317
33348
|
"bar": "rp_Ptco8a_bar",
|
|
33318
|
-
"
|
|
33349
|
+
"title": "rp_Ptco8a_title",
|
|
33319
33350
|
"description": "rp_Ptco8a_description",
|
|
33320
|
-
"
|
|
33321
|
-
"
|
|
33322
|
-
"
|
|
33351
|
+
"entry": "rp_Ptco8a_entry",
|
|
33352
|
+
"text": "rp_Ptco8a_text",
|
|
33353
|
+
"message": "rp_Ptco8a_message",
|
|
33354
|
+
"icon": "rp_Ptco8a_icon",
|
|
33355
|
+
"main": "rp_Ptco8a_main"
|
|
33323
33356
|
};
|
|
33324
33357
|
// src/client/interface/SidebarPage.tsx
|
|
33325
33358
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -33937,35 +33970,35 @@ window.__ModuleLoader__.load({
|
|
|
33937
33970
|
}));
|
|
33938
33971
|
}
|
|
33939
33972
|
// \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$
|
|
33973
|
+
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}";
|
|
33974
|
+
const key$11 = "src/client/recall/RecallTab.module.css";
|
|
33975
|
+
let tag$11 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$11) + "]");
|
|
33976
|
+
if (tag$11 === null) {
|
|
33977
|
+
tag$11 = document.createElement("style");
|
|
33978
|
+
tag$11.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
33979
|
+
tag$11.dataset.pluginCss = key$11;
|
|
33980
|
+
document.head.appendChild(tag$11);
|
|
33948
33981
|
}
|
|
33949
|
-
tag$
|
|
33982
|
+
tag$11.textContent = css$11;
|
|
33950
33983
|
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
|
-
"error": "rp_jl9CIq_error",
|
|
33957
33984
|
"form": "rp_jl9CIq_form",
|
|
33958
33985
|
"list": "rp_jl9CIq_list",
|
|
33959
|
-
"person": "rp_jl9CIq_person",
|
|
33960
|
-
"page": "rp_jl9CIq_page",
|
|
33961
33986
|
"item": "rp_jl9CIq_item",
|
|
33962
|
-
"actions": "rp_jl9CIq_actions",
|
|
33963
33987
|
"hint": "rp_jl9CIq_hint",
|
|
33964
|
-
"
|
|
33988
|
+
"area": "rp_jl9CIq_area",
|
|
33989
|
+
"actions": "rp_jl9CIq_actions",
|
|
33990
|
+
"heading": "rp_jl9CIq_heading",
|
|
33991
|
+
"place": "rp_jl9CIq_place",
|
|
33992
|
+
"body": "rp_jl9CIq_body",
|
|
33993
|
+
"label": "rp_jl9CIq_label",
|
|
33965
33994
|
"bar": "rp_jl9CIq_bar",
|
|
33966
|
-
"
|
|
33995
|
+
"page": "rp_jl9CIq_page",
|
|
33996
|
+
"name": "rp_jl9CIq_name",
|
|
33967
33997
|
"field": "rp_jl9CIq_field",
|
|
33968
|
-
"
|
|
33998
|
+
"meta": "rp_jl9CIq_meta",
|
|
33999
|
+
"error": "rp_jl9CIq_error",
|
|
34000
|
+
"person": "rp_jl9CIq_person",
|
|
34001
|
+
"note": "rp_jl9CIq_note"
|
|
33969
34002
|
};
|
|
33970
34003
|
// src/client/recall/RecallTab.tsx
|
|
33971
34004
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34810,22 +34843,22 @@ window.__ModuleLoader__.load({
|
|
|
34810
34843
|
}
|
|
34811
34844
|
};
|
|
34812
34845
|
// \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$
|
|
34846
|
+
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}";
|
|
34847
|
+
const key$10 = "src/client/reference/ReferenceTab.module.css";
|
|
34848
|
+
let tag$10 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$10) + "]");
|
|
34849
|
+
if (tag$10 === null) {
|
|
34850
|
+
tag$10 = document.createElement("style");
|
|
34851
|
+
tag$10.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
34852
|
+
tag$10.dataset.pluginCss = key$10;
|
|
34853
|
+
document.head.appendChild(tag$10);
|
|
34821
34854
|
}
|
|
34822
|
-
tag$
|
|
34855
|
+
tag$10.textContent = css$10;
|
|
34823
34856
|
var ReferenceTab_module_css_default = {
|
|
34857
|
+
"page": "rp_7BGO2a_page",
|
|
34824
34858
|
"bar": "rp_7BGO2a_bar",
|
|
34825
34859
|
"nav": "rp_7BGO2a_nav",
|
|
34826
|
-
"message": "rp_7BGO2a_message",
|
|
34827
34860
|
"body": "rp_7BGO2a_body",
|
|
34828
|
-
"
|
|
34861
|
+
"message": "rp_7BGO2a_message"
|
|
34829
34862
|
};
|
|
34830
34863
|
// src/client/reference/ReferenceTab.tsx
|
|
34831
34864
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34934,39 +34967,40 @@ window.__ModuleLoader__.load({
|
|
|
34934
34967
|
return await response.json();
|
|
34935
34968
|
}
|
|
34936
34969
|
// \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$
|
|
34970
|
+
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}";
|
|
34971
|
+
const key$9 = "src/client/reference/sections/Page.module.css";
|
|
34972
|
+
let tag$9 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$9) + "]");
|
|
34973
|
+
if (tag$9 === null) {
|
|
34974
|
+
tag$9 = document.createElement("style");
|
|
34975
|
+
tag$9.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
34976
|
+
tag$9.dataset.pluginCss = key$9;
|
|
34977
|
+
document.head.appendChild(tag$9);
|
|
34945
34978
|
}
|
|
34946
|
-
tag$
|
|
34979
|
+
tag$9.textContent = css$9;
|
|
34947
34980
|
var Page_module_css_default = {
|
|
34948
|
-
"
|
|
34949
|
-
"
|
|
34950
|
-
"
|
|
34951
|
-
"
|
|
34952
|
-
"name": "rp_bG1sCa_name",
|
|
34953
|
-
"closedWay": "rp_bG1sCa_closedWay",
|
|
34981
|
+
"link": "rp_bG1sCa_link",
|
|
34982
|
+
"head": "rp_bG1sCa_head",
|
|
34983
|
+
"text": "rp_bG1sCa_text",
|
|
34984
|
+
"heading": "rp_bG1sCa_heading",
|
|
34954
34985
|
"place": "rp_bG1sCa_place",
|
|
34955
|
-
"
|
|
34956
|
-
"way": "rp_bG1sCa_way",
|
|
34986
|
+
"edgeLabel": "rp_bG1sCa_edgeLabel",
|
|
34957
34987
|
"journal": "rp_bG1sCa_journal",
|
|
34958
|
-
"
|
|
34959
|
-
"
|
|
34960
|
-
"link": "rp_bG1sCa_link",
|
|
34961
|
-
"list": "rp_bG1sCa_list",
|
|
34988
|
+
"name": "rp_bG1sCa_name",
|
|
34989
|
+
"closedWay": "rp_bG1sCa_closedWay",
|
|
34962
34990
|
"here": "rp_bG1sCa_here",
|
|
34963
|
-
"
|
|
34991
|
+
"title": "rp_bG1sCa_title",
|
|
34964
34992
|
"meta": "rp_bG1sCa_meta",
|
|
34993
|
+
"map": "rp_bG1sCa_map",
|
|
34994
|
+
"entry": "rp_bG1sCa_entry",
|
|
34995
|
+
"way": "rp_bG1sCa_way",
|
|
34996
|
+
"list": "rp_bG1sCa_list",
|
|
34997
|
+
"placeName": "rp_bG1sCa_placeName",
|
|
34998
|
+
"sub": "rp_bG1sCa_sub",
|
|
34999
|
+
"block": "rp_bG1sCa_block",
|
|
34965
35000
|
"opened": "rp_bG1sCa_opened",
|
|
34966
|
-
"
|
|
34967
|
-
"
|
|
34968
|
-
"
|
|
34969
|
-
"title": "rp_bG1sCa_title"
|
|
35001
|
+
"tag": "rp_bG1sCa_tag",
|
|
35002
|
+
"notes": "rp_bG1sCa_notes",
|
|
35003
|
+
"message": "rp_bG1sCa_message"
|
|
34970
35004
|
};
|
|
34971
35005
|
// src/client/reference/sections/Journal.tsx
|
|
34972
35006
|
/** How long typing pauses before the notes are saved. */
|
|
@@ -35134,13 +35168,13 @@ window.__ModuleLoader__.load({
|
|
|
35134
35168
|
return out;
|
|
35135
35169
|
}
|
|
35136
35170
|
const RING = 210;
|
|
35137
|
-
const MARGIN = 16;
|
|
35171
|
+
const MARGIN$1 = 16;
|
|
35138
35172
|
/** 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
35173
|
function layoutRelations(keys) {
|
|
35140
35174
|
const radius = Math.max(RING, Math.ceil(keys.length * 132 / (2 * Math.PI)));
|
|
35141
35175
|
const centre = {
|
|
35142
|
-
x: MARGIN + radius + 60,
|
|
35143
|
-
y: MARGIN + radius + 13
|
|
35176
|
+
x: MARGIN$1 + radius + 60,
|
|
35177
|
+
y: MARGIN$1 + radius + 13
|
|
35144
35178
|
};
|
|
35145
35179
|
return {
|
|
35146
35180
|
nodes: keys.map((key, index) => {
|
|
@@ -35272,7 +35306,7 @@ window.__ModuleLoader__.load({
|
|
|
35272
35306
|
x2: node.x,
|
|
35273
35307
|
y2: node.y
|
|
35274
35308
|
}), person.label !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("text", {
|
|
35275
|
-
className: Page_module_css_default.
|
|
35309
|
+
className: Page_module_css_default.edgeLabel,
|
|
35276
35310
|
x: (layout.centre.x + node.x) / 2,
|
|
35277
35311
|
y: (layout.centre.y + node.y) / 2 - 4,
|
|
35278
35312
|
textAnchor: "middle",
|
|
@@ -36051,39 +36085,39 @@ window.__ModuleLoader__.load({
|
|
|
36051
36085
|
});
|
|
36052
36086
|
}
|
|
36053
36087
|
// \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$
|
|
36088
|
+
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}}";
|
|
36089
|
+
const key$8 = "src/client/chat-settings/ChatSettingsView.module.css";
|
|
36090
|
+
let tag$8 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$8) + "]");
|
|
36091
|
+
if (tag$8 === null) {
|
|
36092
|
+
tag$8 = document.createElement("style");
|
|
36093
|
+
tag$8.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
36094
|
+
tag$8.dataset.pluginCss = key$8;
|
|
36095
|
+
document.head.appendChild(tag$8);
|
|
36062
36096
|
}
|
|
36063
|
-
tag$
|
|
36097
|
+
tag$8.textContent = css$8;
|
|
36064
36098
|
var ChatSettingsView_module_css_default = {
|
|
36065
36099
|
"message": "rp_wLpbxW_message",
|
|
36066
|
-
"
|
|
36067
|
-
"list": "rp_wLpbxW_list",
|
|
36068
|
-
"help": "rp_wLpbxW_help",
|
|
36100
|
+
"activity": "rp_wLpbxW_activity",
|
|
36069
36101
|
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
36070
|
-
"
|
|
36071
|
-
"view": "rp_wLpbxW_view",
|
|
36072
|
-
"run": "rp_wLpbxW_run",
|
|
36102
|
+
"description": "rp_wLpbxW_description",
|
|
36073
36103
|
"pre": "rp_wLpbxW_pre",
|
|
36074
|
-
"
|
|
36104
|
+
"actions": "rp_wLpbxW_actions",
|
|
36105
|
+
"row": "rp_wLpbxW_row",
|
|
36075
36106
|
"saved": "rp_wLpbxW_saved",
|
|
36107
|
+
"view": "rp_wLpbxW_view",
|
|
36076
36108
|
"activityBody": "rp_wLpbxW_activityBody",
|
|
36109
|
+
"select": "rp_wLpbxW_select",
|
|
36110
|
+
"link": "rp_wLpbxW_link",
|
|
36111
|
+
"list": "rp_wLpbxW_list",
|
|
36077
36112
|
"field": "rp_wLpbxW_field",
|
|
36078
|
-
"
|
|
36079
|
-
"
|
|
36080
|
-
"title": "rp_wLpbxW_title",
|
|
36081
|
-
"notice": "rp_wLpbxW_notice",
|
|
36082
|
-
"table": "rp_wLpbxW_table",
|
|
36113
|
+
"label": "rp_wLpbxW_label",
|
|
36114
|
+
"error": "rp_wLpbxW_error",
|
|
36083
36115
|
"reasons": "rp_wLpbxW_reasons",
|
|
36084
|
-
"
|
|
36085
|
-
"
|
|
36086
|
-
"
|
|
36116
|
+
"table": "rp_wLpbxW_table",
|
|
36117
|
+
"help": "rp_wLpbxW_help",
|
|
36118
|
+
"notice": "rp_wLpbxW_notice",
|
|
36119
|
+
"title": "rp_wLpbxW_title",
|
|
36120
|
+
"run": "rp_wLpbxW_run"
|
|
36087
36121
|
};
|
|
36088
36122
|
// src/client/chat-settings/settings-api.ts
|
|
36089
36123
|
/** The chat is not a roleplay session, so it has no settings. */
|
|
@@ -37947,6 +37981,33 @@ window.__ModuleLoader__.load({
|
|
|
37947
37981
|
// src/client/chat-settings/ActivityList.tsx
|
|
37948
37982
|
const seconds = (ms) => `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)} s`;
|
|
37949
37983
|
const count = (value) => value.toLocaleString();
|
|
37984
|
+
function failureText(t, failure) {
|
|
37985
|
+
if (typeof failure === "string") return failure;
|
|
37986
|
+
switch (failure.key) {
|
|
37987
|
+
case "cancelled": return t("failureCancelled");
|
|
37988
|
+
case "timeout": return t("failureTimeout", { minutes: failure.minutes });
|
|
37989
|
+
case "tokenLimit": return failure.limit === void 0 ? t("failureModelTokenLimit", { tool: failure.tool }) : t("failureTokenLimit", {
|
|
37990
|
+
limit: failure.limit,
|
|
37991
|
+
tool: failure.tool
|
|
37992
|
+
});
|
|
37993
|
+
case "answeredInThinking": return t("failureAnsweredInThinking");
|
|
37994
|
+
case "resultRefused": return t("failureResultRefused", {
|
|
37995
|
+
count: failure.count,
|
|
37996
|
+
reason: failure.reason
|
|
37997
|
+
});
|
|
37998
|
+
case "callLimit": {
|
|
37999
|
+
const reason = t("failureCallLimit", { budget: failure.budget });
|
|
38000
|
+
return failure.tool === void 0 || failure.outcome === void 0 ? reason : t("failureCallLimitLast", {
|
|
38001
|
+
reason,
|
|
38002
|
+
tool: failure.tool,
|
|
38003
|
+
outcome: failure.outcome
|
|
38004
|
+
});
|
|
38005
|
+
}
|
|
38006
|
+
case "agentFailed": return t("failureAgent", { message: failure.message });
|
|
38007
|
+
case "noResult": return t("failureNoResult", { calls: failure.calls });
|
|
38008
|
+
case "unexpected": return t("failureUnexpected", { message: failure.message });
|
|
38009
|
+
}
|
|
38010
|
+
}
|
|
37950
38011
|
/** Fresh input plus output, and beside it what came from the service's cache, or that the service does not say. */
|
|
37951
38012
|
const tokenText = (t, tokens) => {
|
|
37952
38013
|
const notes = [...tokens.cached > 0 ? [t("usageCached", { count: count(tokens.cached) })] : [], ...(tokens.unreported ?? 0) > 0 ? [t("usageUnreported")] : []];
|
|
@@ -38090,8 +38151,8 @@ window.__ModuleLoader__.load({
|
|
|
38090
38151
|
] }),
|
|
38091
38152
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
38092
38153
|
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 })
|
|
38154
|
+
title: entry.error === void 0 ? void 0 : failureText(t, entry.error),
|
|
38155
|
+
children: entry.error === void 0 ? t("activityDone") : t("activityFailed", { reason: failureText(t, entry.error) })
|
|
38095
38156
|
}),
|
|
38096
38157
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: entry.run === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
38097
38158
|
type: "button",
|
|
@@ -38762,6 +38823,17 @@ window.__ModuleLoader__.load({
|
|
|
38762
38823
|
whyLinked: "came to mind with another memory (shares {people} people, {tags} tags{place})",
|
|
38763
38824
|
whyLinkedPlace: ", the place",
|
|
38764
38825
|
runNoResult: "It submitted no result.",
|
|
38826
|
+
failureCancelled: "cancelled",
|
|
38827
|
+
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.",
|
|
38828
|
+
failureTokenLimit: "reached the {limit}-token limit without calling {tool} and was stopped",
|
|
38829
|
+
failureModelTokenLimit: "reached the model’s output limit without calling {tool} and was stopped",
|
|
38830
|
+
failureAnsweredInThinking: "wrote its answer in hidden reasoning instead of submitting a result",
|
|
38831
|
+
failureResultRefused: "had its result refused {count} times and was stopped. Last reason: {reason}",
|
|
38832
|
+
failureCallLimit: "passed its {budget}-call limit, or kept repeating a failed call, without submitting a result and was stopped",
|
|
38833
|
+
failureCallLimitLast: "{reason}. Last failed call: {tool}: {outcome}",
|
|
38834
|
+
failureAgent: "failed: {message}",
|
|
38835
|
+
failureNoResult: "stopped without submitting a result after {calls} calls",
|
|
38836
|
+
failureUnexpected: "{message}",
|
|
38765
38837
|
vectorsTitle: "Search by meaning",
|
|
38766
38838
|
vectorsUnavailable: "Vector search is not available here, so memories are found by their words only.",
|
|
38767
38839
|
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 +39061,17 @@ window.__ModuleLoader__.load({
|
|
|
38989
39061
|
whyLinked: "与另一条记忆一同想起(共有 {people} 个人物、{tags} 个标签{place})",
|
|
38990
39062
|
whyLinkedPlace: "、地点",
|
|
38991
39063
|
runNoResult: "它没有提交结果。",
|
|
39064
|
+
failureCancelled: "已取消",
|
|
39065
|
+
failureTimeout: "{minutes} 分钟内没有返回结果,已停止。模型可能仍在思考;请降低思考级别,或在设置中延长时限。",
|
|
39066
|
+
failureTokenLimit: "达到 {limit} 个词元的上限仍未调用 {tool},已停止",
|
|
39067
|
+
failureModelTokenLimit: "达到模型的输出上限仍未调用 {tool},已停止",
|
|
39068
|
+
failureAnsweredInThinking: "把答案写进了隐藏的思考过程,没有提交结果",
|
|
39069
|
+
failureResultRefused: "结果被拒绝 {count} 次后已停止。最后一次原因:{reason}",
|
|
39070
|
+
failureCallLimit: "超过 {budget} 次调用,或不断重复失败的调用,仍未提交结果,已停止",
|
|
39071
|
+
failureCallLimitLast: "{reason}。最后一次失败的调用:{tool}:{outcome}",
|
|
39072
|
+
failureAgent: "运行失败:{message}",
|
|
39073
|
+
failureNoResult: "调用 {calls} 次后仍未提交结果,已停止",
|
|
39074
|
+
failureUnexpected: "{message}",
|
|
38992
39075
|
vectorsTitle: "按含义检索",
|
|
38993
39076
|
vectorsUnavailable: "此处无法使用向量检索,记忆只按字词查找。",
|
|
38994
39077
|
vectorsNone: "尚未存储向量({pending} 条文本等待中)。选择嵌入模型并在故事检索时会在后台生成。",
|
|
@@ -39211,6 +39294,17 @@ window.__ModuleLoader__.load({
|
|
|
39211
39294
|
runResult: "結果",
|
|
39212
39295
|
runRecalled: "思い出した内容と理由",
|
|
39213
39296
|
runNoResult: "結果は送信されませんでした。",
|
|
39297
|
+
failureCancelled: "キャンセルされました",
|
|
39298
|
+
failureTimeout: "{minutes}分以内に結果が得られなかったため停止しました。思考レベルを下げるか、設定で制限時間を延ばしてください。",
|
|
39299
|
+
failureTokenLimit: "{limit}トークンの上限に達しても{tool}を呼び出さなかったため停止しました",
|
|
39300
|
+
failureModelTokenLimit: "モデルの出力上限に達しても{tool}を呼び出さなかったため停止しました",
|
|
39301
|
+
failureAnsweredInThinking: "回答を非表示の思考内に書き、結果を送信しませんでした",
|
|
39302
|
+
failureResultRefused: "結果が{count}回拒否されたため停止しました。最後の理由:{reason}",
|
|
39303
|
+
failureCallLimit: "{budget}回の呼び出し上限を超えたか、失敗した呼び出しを繰り返し、結果を送信しなかったため停止しました",
|
|
39304
|
+
failureCallLimitLast: "{reason}。最後に失敗した呼び出し:{tool}:{outcome}",
|
|
39305
|
+
failureAgent: "失敗しました:{message}",
|
|
39306
|
+
failureNoResult: "{calls}回呼び出した後も結果を送信せず停止しました",
|
|
39307
|
+
failureUnexpected: "{message}",
|
|
39214
39308
|
whyCues: "手がかり:人物 {people}、語 {words}、場所 {place}",
|
|
39215
39309
|
whyIndex: "語の検索 {value}",
|
|
39216
39310
|
whyMeaning: "意味検索 {value}",
|
|
@@ -39439,6 +39533,17 @@ window.__ModuleLoader__.load({
|
|
|
39439
39533
|
runResult: "Resultado",
|
|
39440
39534
|
runRecalled: "Qué recordó y por qué",
|
|
39441
39535
|
runNoResult: "No envió ningún resultado.",
|
|
39536
|
+
failureCancelled: "cancelado",
|
|
39537
|
+
failureTimeout: "se detuvo tras {minutes} minutos sin resultado. Reduce el nivel de razonamiento o amplía el límite en Ajustes.",
|
|
39538
|
+
failureTokenLimit: "alcanzó el límite de {limit} tokens sin llamar a {tool} y se detuvo",
|
|
39539
|
+
failureModelTokenLimit: "alcanzó el límite de salida del modelo sin llamar a {tool} y se detuvo",
|
|
39540
|
+
failureAnsweredInThinking: "escribió la respuesta en el razonamiento oculto en vez de enviar un resultado",
|
|
39541
|
+
failureResultRefused: "su resultado fue rechazado {count} veces y se detuvo. Último motivo: {reason}",
|
|
39542
|
+
failureCallLimit: "superó el límite de {budget} llamadas, o repitió una llamada fallida, sin enviar un resultado y se detuvo",
|
|
39543
|
+
failureCallLimitLast: "{reason}. Última llamada fallida: {tool}: {outcome}",
|
|
39544
|
+
failureAgent: "falló: {message}",
|
|
39545
|
+
failureNoResult: "se detuvo sin enviar un resultado tras {calls} llamadas",
|
|
39546
|
+
failureUnexpected: "{message}",
|
|
39442
39547
|
whyCues: "pistas: nombres {people}, palabras {words}, lugar {place}",
|
|
39443
39548
|
whyIndex: "búsqueda por palabras {value}",
|
|
39444
39549
|
whyMeaning: "búsqueda por significado {value}",
|
|
@@ -39667,6 +39772,17 @@ window.__ModuleLoader__.load({
|
|
|
39667
39772
|
runResult: "Résultat",
|
|
39668
39773
|
runRecalled: "Ce qui lui a été rappelé et pourquoi",
|
|
39669
39774
|
runNoResult: "Aucun résultat n’a été envoyé.",
|
|
39775
|
+
failureCancelled: "annulé",
|
|
39776
|
+
failureTimeout: "arrêté après {minutes} minutes sans résultat. Réduisez le niveau de raisonnement ou augmentez la limite dans les réglages.",
|
|
39777
|
+
failureTokenLimit: "a atteint la limite de {limit} jetons sans appeler {tool}, puis a été arrêté",
|
|
39778
|
+
failureModelTokenLimit: "a atteint la limite de sortie du modèle sans appeler {tool}, puis a été arrêté",
|
|
39779
|
+
failureAnsweredInThinking: "a écrit sa réponse dans le raisonnement masqué au lieu d’envoyer un résultat",
|
|
39780
|
+
failureResultRefused: "a vu son résultat refusé {count} fois et a été arrêté. Dernière raison : {reason}",
|
|
39781
|
+
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é",
|
|
39782
|
+
failureCallLimitLast: "{reason}. Dernier appel en échec : {tool} : {outcome}",
|
|
39783
|
+
failureAgent: "a échoué : {message}",
|
|
39784
|
+
failureNoResult: "s’est arrêté sans envoyer de résultat après {calls} appels",
|
|
39785
|
+
failureUnexpected: "{message}",
|
|
39670
39786
|
whyCues: "indices : noms {people}, mots {words}, lieu {place}",
|
|
39671
39787
|
whyIndex: "recherche par mots {value}",
|
|
39672
39788
|
whyMeaning: "recherche par sens {value}",
|
|
@@ -39895,6 +40011,17 @@ window.__ModuleLoader__.load({
|
|
|
39895
40011
|
runResult: "Ergebnis",
|
|
39896
40012
|
runRecalled: "Woran erinnert wurde und warum",
|
|
39897
40013
|
runNoResult: "Es wurde kein Ergebnis übermittelt.",
|
|
40014
|
+
failureCancelled: "abgebrochen",
|
|
40015
|
+
failureTimeout: "nach {minutes} Minuten ohne Ergebnis beendet. Verringern Sie die Denkstufe oder erhöhen Sie das Zeitlimit in den Einstellungen.",
|
|
40016
|
+
failureTokenLimit: "erreichte das Limit von {limit} Tokens, ohne {tool} aufzurufen, und wurde beendet",
|
|
40017
|
+
failureModelTokenLimit: "erreichte das Ausgabelimit des Modells, ohne {tool} aufzurufen, und wurde beendet",
|
|
40018
|
+
failureAnsweredInThinking: "schrieb die Antwort in den ausgeblendeten Gedankengang, statt ein Ergebnis zu übermitteln",
|
|
40019
|
+
failureResultRefused: "das Ergebnis wurde {count}-mal abgelehnt; der Lauf wurde beendet. Letzter Grund: {reason}",
|
|
40020
|
+
failureCallLimit: "überschritt das Limit von {budget} Aufrufen oder wiederholte einen fehlgeschlagenen Aufruf, ohne ein Ergebnis zu übermitteln, und wurde beendet",
|
|
40021
|
+
failureCallLimitLast: "{reason}. Letzter fehlgeschlagener Aufruf: {tool}: {outcome}",
|
|
40022
|
+
failureAgent: "fehlgeschlagen: {message}",
|
|
40023
|
+
failureNoResult: "nach {calls} Aufrufen ohne Ergebnis beendet",
|
|
40024
|
+
failureUnexpected: "{message}",
|
|
39898
40025
|
whyCues: "Hinweise: Namen {people}, Wörter {words}, Ort {place}",
|
|
39899
40026
|
whyIndex: "Wortsuche {value}",
|
|
39900
40027
|
whyMeaning: "Bedeutungssuche {value}",
|
|
@@ -40123,6 +40250,17 @@ window.__ModuleLoader__.load({
|
|
|
40123
40250
|
runResult: "Результат",
|
|
40124
40251
|
runRecalled: "Что было напомнено и почему",
|
|
40125
40252
|
runNoResult: "Результат не был отправлен.",
|
|
40253
|
+
failureCancelled: "отменено",
|
|
40254
|
+
failureTimeout: "остановлен через {minutes} мин. без результата. Уменьшите уровень рассуждений или увеличьте лимит времени в настройках.",
|
|
40255
|
+
failureTokenLimit: "достиг лимита в {limit} токенов, не вызвав {tool}, и был остановлен",
|
|
40256
|
+
failureModelTokenLimit: "достиг лимита вывода модели, не вызвав {tool}, и был остановлен",
|
|
40257
|
+
failureAnsweredInThinking: "записал ответ в скрытые рассуждения вместо отправки результата",
|
|
40258
|
+
failureResultRefused: "результат был отклонён {count} раз, после чего запуск остановили. Последняя причина: {reason}",
|
|
40259
|
+
failureCallLimit: "превысил лимит в {budget} вызовов или повторял неудачный вызов, не отправив результат, и был остановлен",
|
|
40260
|
+
failureCallLimitLast: "{reason}. Последний неудачный вызов: {tool}: {outcome}",
|
|
40261
|
+
failureAgent: "завершился ошибкой: {message}",
|
|
40262
|
+
failureNoResult: "остановился после {calls} вызовов, не отправив результат",
|
|
40263
|
+
failureUnexpected: "{message}",
|
|
40126
40264
|
whyCues: "подсказки: имена {people}, слова {words}, место {place}",
|
|
40127
40265
|
whyIndex: "поиск по словам {value}",
|
|
40128
40266
|
whyMeaning: "поиск по смыслу {value}",
|
|
@@ -40351,6 +40489,17 @@ window.__ModuleLoader__.load({
|
|
|
40351
40489
|
runResult: "Resultado",
|
|
40352
40490
|
runRecalled: "O que foi recordado e porquê",
|
|
40353
40491
|
runNoResult: "Não foi enviado qualquer resultado.",
|
|
40492
|
+
failureCancelled: "cancelado",
|
|
40493
|
+
failureTimeout: "parou após {minutes} minutos sem resultado. Reduza o nível de raciocínio ou aumente o limite nas definições.",
|
|
40494
|
+
failureTokenLimit: "atingiu o limite de {limit} tokens sem chamar {tool} e foi parado",
|
|
40495
|
+
failureModelTokenLimit: "atingiu o limite de saída do modelo sem chamar {tool} e foi parado",
|
|
40496
|
+
failureAnsweredInThinking: "escreveu a resposta no raciocínio oculto em vez de enviar um resultado",
|
|
40497
|
+
failureResultRefused: "o resultado foi recusado {count} vezes e a execução foi parada. Último motivo: {reason}",
|
|
40498
|
+
failureCallLimit: "ultrapassou o limite de {budget} chamadas, ou repetiu uma chamada falhada, sem enviar um resultado e foi parado",
|
|
40499
|
+
failureCallLimitLast: "{reason}. Última chamada falhada: {tool}: {outcome}",
|
|
40500
|
+
failureAgent: "falhou: {message}",
|
|
40501
|
+
failureNoResult: "parou sem enviar um resultado após {calls} chamadas",
|
|
40502
|
+
failureUnexpected: "{message}",
|
|
40354
40503
|
whyCues: "pistas: nomes {people}, palavras {words}, local {place}",
|
|
40355
40504
|
whyIndex: "pesquisa por palavras {value}",
|
|
40356
40505
|
whyMeaning: "pesquisa por significado {value}",
|
|
@@ -40489,23 +40638,23 @@ window.__ModuleLoader__.load({
|
|
|
40489
40638
|
});
|
|
40490
40639
|
}
|
|
40491
40640
|
// \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$
|
|
40641
|
+
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}";
|
|
40642
|
+
const key$7 = "src/client/ui/SettingsForm.module.css";
|
|
40643
|
+
let tag$7 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$7) + "]");
|
|
40644
|
+
if (tag$7 === null) {
|
|
40645
|
+
tag$7 = document.createElement("style");
|
|
40646
|
+
tag$7.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
40647
|
+
tag$7.dataset.pluginCss = key$7;
|
|
40648
|
+
document.head.appendChild(tag$7);
|
|
40500
40649
|
}
|
|
40501
|
-
tag$
|
|
40650
|
+
tag$7.textContent = css$7;
|
|
40502
40651
|
var SettingsForm_module_css_default = {
|
|
40503
|
-
"form": "rp_eL0Ehq_form",
|
|
40504
40652
|
"failed": "rp_eL0Ehq_failed",
|
|
40505
|
-
"
|
|
40653
|
+
"readOnly": "rp_eL0Ehq_readOnly",
|
|
40506
40654
|
"unavailable": "rp_eL0Ehq_unavailable",
|
|
40655
|
+
"form": "rp_eL0Ehq_form",
|
|
40507
40656
|
"footer": "rp_eL0Ehq_footer",
|
|
40508
|
-
"
|
|
40657
|
+
"save": "rp_eL0Ehq_save"
|
|
40509
40658
|
};
|
|
40510
40659
|
// src/client/ui/SettingsForm.tsx
|
|
40511
40660
|
/**
|
|
@@ -40551,27 +40700,27 @@ window.__ModuleLoader__.load({
|
|
|
40551
40700
|
});
|
|
40552
40701
|
}
|
|
40553
40702
|
// \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$
|
|
40703
|
+
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}";
|
|
40704
|
+
const key$6 = "src/client/ui/SettingsValueField.module.css";
|
|
40705
|
+
let tag$6 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$6) + "]");
|
|
40706
|
+
if (tag$6 === null) {
|
|
40707
|
+
tag$6 = document.createElement("style");
|
|
40708
|
+
tag$6.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
40709
|
+
tag$6.dataset.pluginCss = key$6;
|
|
40710
|
+
document.head.appendChild(tag$6);
|
|
40562
40711
|
}
|
|
40563
|
-
tag$
|
|
40712
|
+
tag$6.textContent = css$6;
|
|
40564
40713
|
var SettingsValueField_module_css_default = {
|
|
40565
|
-
"head": "rp_AFBKEG_head",
|
|
40566
|
-
"label": "rp_AFBKEG_label",
|
|
40567
40714
|
"reset": "rp_AFBKEG_reset",
|
|
40568
|
-
"
|
|
40569
|
-
"input": "rp_AFBKEG_input",
|
|
40570
|
-
"help": "rp_AFBKEG_help",
|
|
40715
|
+
"head": "rp_AFBKEG_head",
|
|
40571
40716
|
"hint": "rp_AFBKEG_hint",
|
|
40572
40717
|
"badges": "rp_AFBKEG_badges",
|
|
40718
|
+
"helpButton": "rp_AFBKEG_helpButton",
|
|
40573
40719
|
"field": "rp_AFBKEG_field",
|
|
40720
|
+
"help": "rp_AFBKEG_help",
|
|
40574
40721
|
"labelGroup": "rp_AFBKEG_labelGroup",
|
|
40722
|
+
"input": "rp_AFBKEG_input",
|
|
40723
|
+
"label": "rp_AFBKEG_label",
|
|
40575
40724
|
"invalid": "rp_AFBKEG_invalid"
|
|
40576
40725
|
};
|
|
40577
40726
|
// src/client/ui/SettingsValueField.tsx
|
|
@@ -40647,27 +40796,27 @@ window.__ModuleLoader__.load({
|
|
|
40647
40796
|
});
|
|
40648
40797
|
}
|
|
40649
40798
|
// \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$
|
|
40799
|
+
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}}";
|
|
40800
|
+
const key$5 = "src/client/settings/CatalogueSettings.module.css";
|
|
40801
|
+
let tag$5 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$5) + "]");
|
|
40802
|
+
if (tag$5 === null) {
|
|
40803
|
+
tag$5 = document.createElement("style");
|
|
40804
|
+
tag$5.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
40805
|
+
tag$5.dataset.pluginCss = key$5;
|
|
40806
|
+
document.head.appendChild(tag$5);
|
|
40658
40807
|
}
|
|
40659
|
-
tag$
|
|
40808
|
+
tag$5.textContent = css$5;
|
|
40660
40809
|
var CatalogueSettings_module_css_default = {
|
|
40661
|
-
"row": "rp_KPhXDa_row",
|
|
40662
40810
|
"keyHint": "rp_KPhXDa_keyHint",
|
|
40663
|
-
"
|
|
40664
|
-
"title": "rp_KPhXDa_title",
|
|
40665
|
-
"field": "rp_KPhXDa_field",
|
|
40811
|
+
"actions": "rp_KPhXDa_actions",
|
|
40666
40812
|
"label": "rp_KPhXDa_label",
|
|
40667
40813
|
"keyArea": "rp_KPhXDa_keyArea",
|
|
40668
|
-
"
|
|
40814
|
+
"field": "rp_KPhXDa_field",
|
|
40815
|
+
"hint": "rp_KPhXDa_hint",
|
|
40816
|
+
"problem": "rp_KPhXDa_problem",
|
|
40817
|
+
"row": "rp_KPhXDa_row",
|
|
40669
40818
|
"section": "rp_KPhXDa_section",
|
|
40670
|
-
"
|
|
40819
|
+
"title": "rp_KPhXDa_title"
|
|
40671
40820
|
};
|
|
40672
40821
|
// src/client/settings/AuthoringToolSettings.tsx
|
|
40673
40822
|
const boardOf = (text) => {
|
|
@@ -40896,29 +41045,29 @@ window.__ModuleLoader__.load({
|
|
|
40896
41045
|
parse: (draft) => parseDraft(spec, draft)
|
|
40897
41046
|
}));
|
|
40898
41047
|
// \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$
|
|
41048
|
+
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}}";
|
|
41049
|
+
const key$4 = "src/client/settings/AssistantSettings.module.css";
|
|
41050
|
+
let tag$4 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$4) + "]");
|
|
41051
|
+
if (tag$4 === null) {
|
|
41052
|
+
tag$4 = document.createElement("style");
|
|
41053
|
+
tag$4.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
41054
|
+
tag$4.dataset.pluginCss = key$4;
|
|
41055
|
+
document.head.appendChild(tag$4);
|
|
40907
41056
|
}
|
|
40908
|
-
tag$
|
|
41057
|
+
tag$4.textContent = css$4;
|
|
40909
41058
|
var AssistantSettings_module_css_default = {
|
|
40910
|
-
"
|
|
40911
|
-
"
|
|
40912
|
-
"invalid": "rp_ZwzM4q_invalid",
|
|
40913
|
-
"fields": "rp_ZwzM4q_fields",
|
|
41059
|
+
"field": "rp_ZwzM4q_field",
|
|
41060
|
+
"section": "rp_ZwzM4q_section",
|
|
40914
41061
|
"reset": "rp_ZwzM4q_reset",
|
|
41062
|
+
"title": "rp_ZwzM4q_title",
|
|
40915
41063
|
"select": "rp_ZwzM4q_select",
|
|
40916
|
-
"
|
|
41064
|
+
"head": "rp_ZwzM4q_head",
|
|
40917
41065
|
"hint": "rp_ZwzM4q_hint",
|
|
40918
|
-
"
|
|
41066
|
+
"fieldHint": "rp_ZwzM4q_fieldHint",
|
|
40919
41067
|
"badges": "rp_ZwzM4q_badges",
|
|
40920
|
-
"
|
|
40921
|
-
"
|
|
41068
|
+
"invalid": "rp_ZwzM4q_invalid",
|
|
41069
|
+
"fields": "rp_ZwzM4q_fields",
|
|
41070
|
+
"label": "rp_ZwzM4q_label"
|
|
40922
41071
|
};
|
|
40923
41072
|
// src/client/settings/AssistantSettings.tsx
|
|
40924
41073
|
function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
|
|
@@ -43343,39 +43492,40 @@ window.__ModuleLoader__.load({
|
|
|
43343
43492
|
}
|
|
43344
43493
|
};
|
|
43345
43494
|
// \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$
|
|
43495
|
+
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}";
|
|
43496
|
+
const key$3 = "src/client/transcript/NarrationView.module.css";
|
|
43497
|
+
let tag$3 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$3) + "]");
|
|
43498
|
+
if (tag$3 === null) {
|
|
43499
|
+
tag$3 = document.createElement("style");
|
|
43500
|
+
tag$3.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
43501
|
+
tag$3.dataset.pluginCss = key$3;
|
|
43502
|
+
document.head.appendChild(tag$3);
|
|
43354
43503
|
}
|
|
43355
|
-
tag$
|
|
43504
|
+
tag$3.textContent = css$3;
|
|
43356
43505
|
var NarrationView_module_css_default = {
|
|
43506
|
+
"narration": "rp_NFPimG_narration",
|
|
43357
43507
|
"oocNote": "rp_NFPimG_oocNote",
|
|
43358
|
-
"
|
|
43359
|
-
"images": "rp_NFPimG_images",
|
|
43360
|
-
"name": "rp_NFPimG_name",
|
|
43361
|
-
"line": "rp_NFPimG_line",
|
|
43362
|
-
"sceneImage": "rp_NFPimG_sceneImage",
|
|
43508
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
43363
43509
|
"preview": "rp_NFPimG_preview",
|
|
43364
|
-
"
|
|
43365
|
-
"playAll": "rp_NFPimG_playAll",
|
|
43366
|
-
"speech": "rp_NFPimG_speech",
|
|
43367
|
-
"diceSummary": "rp_NFPimG_diceSummary",
|
|
43368
|
-
"dice": "rp_NFPimG_dice",
|
|
43510
|
+
"actions": "rp_NFPimG_actions",
|
|
43369
43511
|
"oocLabel": "rp_NFPimG_oocLabel",
|
|
43370
|
-
"
|
|
43371
|
-
"note": "rp_NFPimG_note",
|
|
43372
|
-
"playLine": "rp_NFPimG_playLine",
|
|
43373
|
-
"narration": "rp_NFPimG_narration",
|
|
43512
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
43374
43513
|
"oocRefused": "rp_NFPimG_oocRefused",
|
|
43375
43514
|
"imageError": "rp_NFPimG_imageError",
|
|
43376
|
-
"
|
|
43515
|
+
"speech": "rp_NFPimG_speech",
|
|
43516
|
+
"name": "rp_NFPimG_name",
|
|
43517
|
+
"sceneImage": "rp_NFPimG_sceneImage",
|
|
43518
|
+
"diceList": "rp_NFPimG_diceList",
|
|
43519
|
+
"output": "rp_NFPimG_output",
|
|
43520
|
+
"words": "rp_NFPimG_words",
|
|
43521
|
+
"playLine": "rp_NFPimG_playLine",
|
|
43522
|
+
"line": "rp_NFPimG_line",
|
|
43523
|
+
"note": "rp_NFPimG_note",
|
|
43377
43524
|
"avatar": "rp_NFPimG_avatar",
|
|
43378
|
-
"
|
|
43525
|
+
"images": "rp_NFPimG_images",
|
|
43526
|
+
"dice": "rp_NFPimG_dice",
|
|
43527
|
+
"diceSummary": "rp_NFPimG_diceSummary",
|
|
43528
|
+
"avatarImage": "rp_NFPimG_avatarImage"
|
|
43379
43529
|
};
|
|
43380
43530
|
// src/client/transcript/PreviewNode.tsx
|
|
43381
43531
|
/**
|
|
@@ -43393,6 +43543,52 @@ window.__ModuleLoader__.load({
|
|
|
43393
43543
|
})
|
|
43394
43544
|
});
|
|
43395
43545
|
}
|
|
43546
|
+
// src/client/media-capabilities.ts
|
|
43547
|
+
/** A choice in the provider settings takes effect without a restart, so the answer is asked for again after a short while. */
|
|
43548
|
+
const FRESH_MS = 15e3;
|
|
43549
|
+
let asked;
|
|
43550
|
+
function mediaCapabilities() {
|
|
43551
|
+
if (asked !== void 0 && Date.now() - asked.at < FRESH_MS) return asked.value;
|
|
43552
|
+
const value = fetch("roleplay-api/speech/capabilities", { credentials: "same-origin" }).then(async (response) => {
|
|
43553
|
+
if (!response.ok) throw new Error(String(response.status));
|
|
43554
|
+
const body = await response.json();
|
|
43555
|
+
return {
|
|
43556
|
+
synthesis: body.synthesis === true,
|
|
43557
|
+
images: body.images === true
|
|
43558
|
+
};
|
|
43559
|
+
}).catch(() => ({
|
|
43560
|
+
synthesis: true,
|
|
43561
|
+
images: true
|
|
43562
|
+
}));
|
|
43563
|
+
asked = {
|
|
43564
|
+
at: Date.now(),
|
|
43565
|
+
value
|
|
43566
|
+
};
|
|
43567
|
+
return value;
|
|
43568
|
+
}
|
|
43569
|
+
/**
|
|
43570
|
+
* 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.
|
|
43571
|
+
*/
|
|
43572
|
+
function watchMediaCapabilities(notify) {
|
|
43573
|
+
let stopped = false;
|
|
43574
|
+
const load = () => {
|
|
43575
|
+
mediaCapabilities().then((value) => {
|
|
43576
|
+
if (!stopped) notify(value);
|
|
43577
|
+
}, () => void 0);
|
|
43578
|
+
};
|
|
43579
|
+
load();
|
|
43580
|
+
const timer = setInterval(load, FRESH_MS);
|
|
43581
|
+
return () => {
|
|
43582
|
+
stopped = true;
|
|
43583
|
+
clearInterval(timer);
|
|
43584
|
+
};
|
|
43585
|
+
}
|
|
43586
|
+
/** The capabilities, or nothing until the host has answered, so that a control that may not belong is not shown and taken away again. */
|
|
43587
|
+
function useMediaCapabilities() {
|
|
43588
|
+
const [found, setFound] = (0, react.useState)();
|
|
43589
|
+
(0, react.useEffect)(() => watchMediaCapabilities(setFound), []);
|
|
43590
|
+
return found;
|
|
43591
|
+
}
|
|
43396
43592
|
// src/client/transcript/NarrationView.tsx
|
|
43397
43593
|
/** A steady colour per speaker, so a character looks the same wherever it speaks. */
|
|
43398
43594
|
function hueOf(name) {
|
|
@@ -43400,8 +43596,35 @@ window.__ModuleLoader__.load({
|
|
|
43400
43596
|
for (const char of name) hash = (hash * 31 + char.charCodeAt(0)) % 360;
|
|
43401
43597
|
return hash;
|
|
43402
43598
|
}
|
|
43403
|
-
/**
|
|
43404
|
-
|
|
43599
|
+
/** Characters whose portrait the host has none of, so that each line does not ask again. */
|
|
43600
|
+
const withoutPortrait = /* @__PURE__ */ new Set();
|
|
43601
|
+
/** 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. */
|
|
43602
|
+
function Avatar({ sessionId, character, name }) {
|
|
43603
|
+
const story = sessionId.startsWith("session-") ? sessionId.slice(8) : sessionId;
|
|
43604
|
+
const key = `${story}/${character}`;
|
|
43605
|
+
const [missing, setMissing] = (0, react.useState)(withoutPortrait.has(key));
|
|
43606
|
+
if (!missing) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
43607
|
+
className: `${NarrationView_module_css_default.avatar} ${NarrationView_module_css_default.avatarImage}`,
|
|
43608
|
+
"data-rp": "avatar",
|
|
43609
|
+
src: `roleplay-api/sessions/world/character/portrait/file?id=${encodeURIComponent(story)}&key=${encodeURIComponent(character)}`,
|
|
43610
|
+
alt: "",
|
|
43611
|
+
"aria-hidden": "true",
|
|
43612
|
+
decoding: "async",
|
|
43613
|
+
onError: () => {
|
|
43614
|
+
withoutPortrait.add(key);
|
|
43615
|
+
setMissing(true);
|
|
43616
|
+
}
|
|
43617
|
+
});
|
|
43618
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
43619
|
+
className: NarrationView_module_css_default.avatar,
|
|
43620
|
+
"data-rp": "avatar",
|
|
43621
|
+
style: { background: `hsl(${hueOf(name)} 32% 40%)` },
|
|
43622
|
+
"aria-hidden": "true",
|
|
43623
|
+
children: Array.from(name)[0]?.toUpperCase()
|
|
43624
|
+
});
|
|
43625
|
+
}
|
|
43626
|
+
/** 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. */
|
|
43627
|
+
function useNarrationPlayer(sessionId) {
|
|
43405
43628
|
const [playing, setPlaying] = (0, react.useState)(false);
|
|
43406
43629
|
const play = async (segments) => {
|
|
43407
43630
|
setPlaying(true);
|
|
@@ -43435,25 +43658,36 @@ window.__ModuleLoader__.load({
|
|
|
43435
43658
|
setPlaying(false);
|
|
43436
43659
|
}
|
|
43437
43660
|
};
|
|
43661
|
+
return {
|
|
43662
|
+
playing,
|
|
43663
|
+
play
|
|
43664
|
+
};
|
|
43665
|
+
}
|
|
43666
|
+
/** The button that plays a whole turn; it sits beside the picture button under the turn. */
|
|
43667
|
+
function PlayTurn({ data, player, t }) {
|
|
43668
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Button, {
|
|
43669
|
+
size: "sm",
|
|
43670
|
+
disabled: player.playing,
|
|
43671
|
+
title: t("speakAll"),
|
|
43672
|
+
onClick: () => {
|
|
43673
|
+
player.play(data.segments);
|
|
43674
|
+
},
|
|
43675
|
+
children: [
|
|
43676
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlay, { "aria-hidden": "true" }),
|
|
43677
|
+
" ",
|
|
43678
|
+
t(player.playing ? "speaking" : "speakAll")
|
|
43679
|
+
]
|
|
43680
|
+
});
|
|
43681
|
+
}
|
|
43682
|
+
/** What the player reads for one turn: the characters' words and the narration between them. */
|
|
43683
|
+
function NarrationView({ data, sessionId, t, player }) {
|
|
43684
|
+
const { playing, play } = player;
|
|
43685
|
+
const speech = useMediaCapabilities()?.synthesis === true;
|
|
43438
43686
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43439
43687
|
className: NarrationView_module_css_default.output,
|
|
43440
43688
|
"data-testid": "roleplay-narration",
|
|
43441
43689
|
"data-rp": "narration",
|
|
43442
43690
|
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
43691
|
data.ooc !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
43458
43692
|
className: data.ooc.legal ? NarrationView_module_css_default.oocNote : NarrationView_module_css_default.oocRefused,
|
|
43459
43693
|
"data-testid": "roleplay-ooc",
|
|
@@ -43475,18 +43709,16 @@ window.__ModuleLoader__.load({
|
|
|
43475
43709
|
className: NarrationView_module_css_default.line,
|
|
43476
43710
|
"data-testid": "roleplay-utterance",
|
|
43477
43711
|
"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()
|
|
43712
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Avatar, {
|
|
43713
|
+
sessionId,
|
|
43714
|
+
character: segment.character,
|
|
43715
|
+
name: segment.name
|
|
43484
43716
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43485
43717
|
className: NarrationView_module_css_default.speech,
|
|
43486
43718
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
43487
43719
|
className: NarrationView_module_css_default.name,
|
|
43488
43720
|
"data-rp": "speaker",
|
|
43489
|
-
children: [segment.name, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43721
|
+
children: [segment.name, speech && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43490
43722
|
type: "button",
|
|
43491
43723
|
className: NarrationView_module_css_default.playLine,
|
|
43492
43724
|
disabled: playing,
|
|
@@ -43534,7 +43766,9 @@ window.__ModuleLoader__.load({
|
|
|
43534
43766
|
if (!response.ok) throw new Error((await response.json().catch(() => ({}))).message ?? `image request failed (${response.status})`);
|
|
43535
43767
|
return await response.json();
|
|
43536
43768
|
}
|
|
43537
|
-
|
|
43769
|
+
/** 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). */
|
|
43770
|
+
function SceneImages({ chat, node, t, leading }) {
|
|
43771
|
+
const capabilities = useMediaCapabilities();
|
|
43538
43772
|
const [status, setStatus] = (0, react.useState)();
|
|
43539
43773
|
const [error, setError] = (0, react.useState)();
|
|
43540
43774
|
const refresh = (0, react.useCallback)(() => {
|
|
@@ -43546,8 +43780,8 @@ window.__ModuleLoader__.load({
|
|
|
43546
43780
|
});
|
|
43547
43781
|
}, [chat, node]);
|
|
43548
43782
|
(0, react.useEffect)(() => {
|
|
43549
|
-
refresh();
|
|
43550
|
-
}, [refresh]);
|
|
43783
|
+
if (node !== void 0) refresh();
|
|
43784
|
+
}, [refresh, node]);
|
|
43551
43785
|
(0, react.useEffect)(() => {
|
|
43552
43786
|
if (status?.state !== "generating") return;
|
|
43553
43787
|
const timer = window.setTimeout(() => {
|
|
@@ -43570,12 +43804,14 @@ window.__ModuleLoader__.load({
|
|
|
43570
43804
|
refresh();
|
|
43571
43805
|
});
|
|
43572
43806
|
};
|
|
43573
|
-
|
|
43807
|
+
const canGenerate = node !== void 0 && capabilities?.images === true && status !== void 0 && status.mode !== "off";
|
|
43808
|
+
const pictures = status?.images ?? [];
|
|
43809
|
+
if (leading === void 0 && !canGenerate && pictures.length === 0 && (error ?? status?.message) === void 0) return null;
|
|
43574
43810
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43575
43811
|
className: NarrationView_module_css_default.images,
|
|
43576
43812
|
"data-testid": "roleplay-scene-images",
|
|
43577
43813
|
children: [
|
|
43578
|
-
|
|
43814
|
+
pictures.map((image) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MediaImage, {
|
|
43579
43815
|
src: image.url,
|
|
43580
43816
|
alt: t("sceneImage") ?? "",
|
|
43581
43817
|
details: image.details,
|
|
@@ -43591,19 +43827,25 @@ window.__ModuleLoader__.load({
|
|
|
43591
43827
|
className: NarrationView_module_css_default.sceneImage ?? "",
|
|
43592
43828
|
onOpenClassName: NarrationView_module_css_default.imageButton ?? ""
|
|
43593
43829
|
}, image.serial)),
|
|
43594
|
-
|
|
43595
|
-
className: NarrationView_module_css_default.
|
|
43596
|
-
children:
|
|
43597
|
-
|
|
43598
|
-
|
|
43599
|
-
|
|
43600
|
-
|
|
43601
|
-
|
|
43602
|
-
|
|
43603
|
-
|
|
43604
|
-
|
|
43605
|
-
|
|
43606
|
-
|
|
43830
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43831
|
+
className: NarrationView_module_css_default.actions,
|
|
43832
|
+
children: [
|
|
43833
|
+
leading,
|
|
43834
|
+
canGenerate && status.state === "generating" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
43835
|
+
className: NarrationView_module_css_default.imageStatus,
|
|
43836
|
+
children: t("imageGenerating")
|
|
43837
|
+
}),
|
|
43838
|
+
canGenerate && (status.state === "absent" || status.state === "failed") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
43839
|
+
size: "sm",
|
|
43840
|
+
onClick: generate,
|
|
43841
|
+
children: status.state === "failed" ? t("imageRetry") : t("imageGenerate")
|
|
43842
|
+
}),
|
|
43843
|
+
canGenerate && status.state === "ready" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
43844
|
+
size: "sm",
|
|
43845
|
+
onClick: generate,
|
|
43846
|
+
children: t("imageAnother")
|
|
43847
|
+
})
|
|
43848
|
+
]
|
|
43607
43849
|
}),
|
|
43608
43850
|
(error ?? status?.message) !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
43609
43851
|
className: NarrationView_module_css_default.imageError,
|
|
@@ -43616,35 +43858,79 @@ window.__ModuleLoader__.load({
|
|
|
43616
43858
|
/** The output of a turn inside the normal Chat; the Chat gives its own translator, so ours comes from outside. */
|
|
43617
43859
|
function narrationNode(t) {
|
|
43618
43860
|
return function NarrationNode({ node, sessionId }) {
|
|
43861
|
+
const player = useNarrationPlayer(sessionId);
|
|
43862
|
+
const play = useMediaCapabilities()?.synthesis === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlayTurn, {
|
|
43863
|
+
data: node.data,
|
|
43864
|
+
player,
|
|
43865
|
+
t
|
|
43866
|
+
}) : void 0;
|
|
43619
43867
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NarrationView, {
|
|
43620
43868
|
data: node.data,
|
|
43621
43869
|
sessionId,
|
|
43622
|
-
t
|
|
43623
|
-
|
|
43870
|
+
t,
|
|
43871
|
+
player
|
|
43872
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SceneImages, {
|
|
43624
43873
|
chat: sessionId,
|
|
43625
43874
|
node: node.data.timelineNode,
|
|
43626
|
-
t
|
|
43875
|
+
t,
|
|
43876
|
+
leading: play
|
|
43627
43877
|
})] });
|
|
43628
43878
|
};
|
|
43629
43879
|
}
|
|
43630
43880
|
// \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$
|
|
43881
|
+
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}}";
|
|
43882
|
+
const key$2 = "src/client/transcript/SuggestionsDock.module.css";
|
|
43883
|
+
let tag$2 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$2) + "]");
|
|
43884
|
+
if (tag$2 === null) {
|
|
43885
|
+
tag$2 = document.createElement("style");
|
|
43886
|
+
tag$2.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
43887
|
+
tag$2.dataset.pluginCss = key$2;
|
|
43888
|
+
document.head.appendChild(tag$2);
|
|
43639
43889
|
}
|
|
43640
|
-
tag$
|
|
43890
|
+
tag$2.textContent = css$2;
|
|
43641
43891
|
var SuggestionsDock_module_css_default = {
|
|
43642
|
-
"chip": "rp_rWH4DG_chip",
|
|
43643
43892
|
"dock": "rp_rWH4DG_dock",
|
|
43893
|
+
"chip": "rp_rWH4DG_chip",
|
|
43644
43894
|
"label": "rp_rWH4DG_label",
|
|
43645
43895
|
"card": "rp_rWH4DG_card",
|
|
43646
43896
|
"lines": "rp_rWH4DG_lines"
|
|
43647
43897
|
};
|
|
43898
|
+
// src/client/transcript/dock-fold.ts
|
|
43899
|
+
const KEY = "roleplay.dock.folded";
|
|
43900
|
+
/** The browser's storage, which is missing where there is no page and may refuse in a private window. */
|
|
43901
|
+
const storage = () => globalThis.localStorage;
|
|
43902
|
+
/** Whether the person has folded the story tools away, as this browser last said. */
|
|
43903
|
+
function readFolded() {
|
|
43904
|
+
try {
|
|
43905
|
+
return storage()?.getItem(KEY) === "1";
|
|
43906
|
+
} catch {
|
|
43907
|
+
return false;
|
|
43908
|
+
}
|
|
43909
|
+
}
|
|
43910
|
+
function writeFolded(folded) {
|
|
43911
|
+
try {
|
|
43912
|
+
storage()?.setItem(KEY, folded ? "1" : "0");
|
|
43913
|
+
} catch {}
|
|
43914
|
+
}
|
|
43915
|
+
let folded = readFolded();
|
|
43916
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
43917
|
+
/** Tells the docks when the choice changes; the store the hook reads. */
|
|
43918
|
+
function subscribeFolded(listener) {
|
|
43919
|
+
listeners.add(listener);
|
|
43920
|
+
return () => {
|
|
43921
|
+
listeners.delete(listener);
|
|
43922
|
+
};
|
|
43923
|
+
}
|
|
43924
|
+
/** Flips the choice, keeps it in this browser for every story, and tells the docks. */
|
|
43925
|
+
function toggleFolded() {
|
|
43926
|
+
folded = !folded;
|
|
43927
|
+
writeFolded(folded);
|
|
43928
|
+
for (const listener of listeners) listener();
|
|
43929
|
+
}
|
|
43930
|
+
/** 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. */
|
|
43931
|
+
function useDockFolded() {
|
|
43932
|
+
return [(0, react.useSyncExternalStore)(subscribeFolded, () => folded), toggleFolded];
|
|
43933
|
+
}
|
|
43648
43934
|
// src/client/transcript/SuggestionsDock.tsx
|
|
43649
43935
|
/** The suggestions are made after the output is shown, so they are asked for until they are there. */
|
|
43650
43936
|
const POLL_MS = 2e3;
|
|
@@ -43659,6 +43945,7 @@ window.__ModuleLoader__.load({
|
|
|
43659
43945
|
*/
|
|
43660
43946
|
function SuggestionsDock({ useChat, useSession, pick, notes, t }) {
|
|
43661
43947
|
const running = useSession((session) => session.running);
|
|
43948
|
+
const [folded] = useDockFolded();
|
|
43662
43949
|
const latest = useChat((chat) => {
|
|
43663
43950
|
const nodes = [...chat.nodes.values()];
|
|
43664
43951
|
const output = nodes.filter((node) => node.kind === NARRATION_NODE).reduce((best, node) => (node.anchorSeq ?? 0) >= (best?.anchorSeq ?? -1) ? node : best, void 0);
|
|
@@ -43730,7 +44017,8 @@ window.__ModuleLoader__.load({
|
|
|
43730
44017
|
if (timer !== void 0) clearTimeout(timer);
|
|
43731
44018
|
};
|
|
43732
44019
|
}, [latest, notes]);
|
|
43733
|
-
|
|
44020
|
+
const shownOffers = folded ? 0 : offered.length;
|
|
44021
|
+
if (running || shownOffers === 0 && meanwhile.length === 0 && unfinished.length === 0 && unwritten === 0 && messages.length === 0) return null;
|
|
43734
44022
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43735
44023
|
className: SuggestionsDock_module_css_default.dock,
|
|
43736
44024
|
"data-testid": "roleplay-suggestions",
|
|
@@ -43774,11 +44062,11 @@ window.__ModuleLoader__.load({
|
|
|
43774
44062
|
children: meanwhile.map((line) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: line }, line))
|
|
43775
44063
|
})]
|
|
43776
44064
|
}),
|
|
43777
|
-
offered.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44065
|
+
!folded && offered.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
43778
44066
|
className: SuggestionsDock_module_css_default.label,
|
|
43779
44067
|
children: t("suggestions")
|
|
43780
44068
|
}),
|
|
43781
|
-
offered.map((text) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44069
|
+
!folded && offered.map((text) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
43782
44070
|
type: "button",
|
|
43783
44071
|
className: SuggestionsDock_module_css_default.chip,
|
|
43784
44072
|
"data-rp": "suggestion",
|
|
@@ -43791,8 +44079,146 @@ window.__ModuleLoader__.load({
|
|
|
43791
44079
|
]
|
|
43792
44080
|
});
|
|
43793
44081
|
}
|
|
44082
|
+
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Menu.module.css.mjs
|
|
44083
|
+
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}}";
|
|
44084
|
+
const key$1 = "src/client/ui/Menu.module.css";
|
|
44085
|
+
let tag$1 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$1) + "]");
|
|
44086
|
+
if (tag$1 === null) {
|
|
44087
|
+
tag$1 = document.createElement("style");
|
|
44088
|
+
tag$1.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
44089
|
+
tag$1.dataset.pluginCss = key$1;
|
|
44090
|
+
document.head.appendChild(tag$1);
|
|
44091
|
+
}
|
|
44092
|
+
tag$1.textContent = css$1;
|
|
44093
|
+
var Menu_module_css_default = {
|
|
44094
|
+
"chevron": "rp_6CY8oG_chevron",
|
|
44095
|
+
"list": "rp_6CY8oG_list",
|
|
44096
|
+
"heading": "rp_6CY8oG_heading",
|
|
44097
|
+
"item": "rp_6CY8oG_item"
|
|
44098
|
+
};
|
|
44099
|
+
// src/client/ui/Menu.tsx
|
|
44100
|
+
const GAP = 4;
|
|
44101
|
+
const MARGIN = 8;
|
|
44102
|
+
/**
|
|
44103
|
+
* 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
|
|
44104
|
+
* 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.
|
|
44105
|
+
*/
|
|
44106
|
+
function Menu({ label, entries, onSelect, triggerClassName, title, disabled = false }) {
|
|
44107
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
44108
|
+
const [place, setPlace] = (0, react.useState)();
|
|
44109
|
+
const trigger = (0, react.useRef)(null);
|
|
44110
|
+
const list = (0, react.useRef)(null);
|
|
44111
|
+
const close = (0, react.useCallback)((refocus) => {
|
|
44112
|
+
setOpen(false);
|
|
44113
|
+
setPlace(void 0);
|
|
44114
|
+
if (refocus) trigger.current?.focus();
|
|
44115
|
+
}, []);
|
|
44116
|
+
(0, react.useLayoutEffect)(() => {
|
|
44117
|
+
if (!open || trigger.current === null) return;
|
|
44118
|
+
const box = trigger.current.getBoundingClientRect();
|
|
44119
|
+
const above = box.top - MARGIN;
|
|
44120
|
+
const below = window.innerHeight - box.bottom - MARGIN;
|
|
44121
|
+
const up = above > below;
|
|
44122
|
+
const width = list.current?.offsetWidth ?? 240;
|
|
44123
|
+
const left = Math.max(MARGIN, Math.min(box.left, window.innerWidth - width - MARGIN));
|
|
44124
|
+
setPlace(up ? {
|
|
44125
|
+
left,
|
|
44126
|
+
bottom: window.innerHeight - box.top + GAP,
|
|
44127
|
+
maxHeight: Math.max(120, above - GAP)
|
|
44128
|
+
} : {
|
|
44129
|
+
left,
|
|
44130
|
+
top: box.bottom + GAP,
|
|
44131
|
+
maxHeight: Math.max(120, below - GAP)
|
|
44132
|
+
});
|
|
44133
|
+
}, [open]);
|
|
44134
|
+
(0, react.useEffect)(() => {
|
|
44135
|
+
if (!open) return;
|
|
44136
|
+
const outside = (event) => {
|
|
44137
|
+
const target = event.target;
|
|
44138
|
+
if (list.current?.contains(target) === true || trigger.current?.contains(target) === true) return;
|
|
44139
|
+
close(false);
|
|
44140
|
+
};
|
|
44141
|
+
const away = () => {
|
|
44142
|
+
close(false);
|
|
44143
|
+
};
|
|
44144
|
+
document.addEventListener("pointerdown", outside, true);
|
|
44145
|
+
window.addEventListener("resize", away);
|
|
44146
|
+
window.addEventListener("scroll", away, true);
|
|
44147
|
+
return () => {
|
|
44148
|
+
document.removeEventListener("pointerdown", outside, true);
|
|
44149
|
+
window.removeEventListener("resize", away);
|
|
44150
|
+
window.removeEventListener("scroll", away, true);
|
|
44151
|
+
};
|
|
44152
|
+
}, [open, close]);
|
|
44153
|
+
(0, react.useEffect)(() => {
|
|
44154
|
+
if (place !== void 0) list.current?.querySelector("button:not(:disabled)")?.focus();
|
|
44155
|
+
}, [place]);
|
|
44156
|
+
const move = (from, step) => {
|
|
44157
|
+
const buttons = [...list.current?.querySelectorAll("button:not(:disabled)") ?? []];
|
|
44158
|
+
buttons[(buttons.indexOf(from) + step + buttons.length) % buttons.length]?.focus();
|
|
44159
|
+
};
|
|
44160
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
44161
|
+
ref: trigger,
|
|
44162
|
+
type: "button",
|
|
44163
|
+
className: triggerClassName,
|
|
44164
|
+
disabled,
|
|
44165
|
+
...title === void 0 ? {} : { title },
|
|
44166
|
+
"aria-haspopup": "menu",
|
|
44167
|
+
"aria-expanded": open,
|
|
44168
|
+
onClick: () => {
|
|
44169
|
+
if (open) close(false);
|
|
44170
|
+
else setOpen(true);
|
|
44171
|
+
},
|
|
44172
|
+
children: [
|
|
44173
|
+
label,
|
|
44174
|
+
" ",
|
|
44175
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44176
|
+
"aria-hidden": "true",
|
|
44177
|
+
className: Menu_module_css_default.chevron,
|
|
44178
|
+
children: "▾"
|
|
44179
|
+
})
|
|
44180
|
+
]
|
|
44181
|
+
}), open && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
44182
|
+
ref: list,
|
|
44183
|
+
className: Menu_module_css_default.list,
|
|
44184
|
+
role: "menu",
|
|
44185
|
+
tabIndex: -1,
|
|
44186
|
+
style: {
|
|
44187
|
+
left: place?.left ?? 0,
|
|
44188
|
+
...place?.top === void 0 ? {} : { top: place.top },
|
|
44189
|
+
...place?.bottom === void 0 ? {} : { bottom: place.bottom },
|
|
44190
|
+
maxHeight: place?.maxHeight ?? 320,
|
|
44191
|
+
visibility: place === void 0 ? "hidden" : "visible"
|
|
44192
|
+
},
|
|
44193
|
+
onKeyDown: (event) => {
|
|
44194
|
+
if (event.key === "Escape") {
|
|
44195
|
+
event.preventDefault();
|
|
44196
|
+
close(true);
|
|
44197
|
+
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
44198
|
+
event.preventDefault();
|
|
44199
|
+
move(event.target, event.key === "ArrowDown" ? 1 : -1);
|
|
44200
|
+
}
|
|
44201
|
+
},
|
|
44202
|
+
children: entries.map((entry, index) => "heading" in entry ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
44203
|
+
className: Menu_module_css_default.heading,
|
|
44204
|
+
role: "presentation",
|
|
44205
|
+
children: entry.heading
|
|
44206
|
+
}, `heading-${index}`) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44207
|
+
type: "button",
|
|
44208
|
+
role: "menuitem",
|
|
44209
|
+
className: Menu_module_css_default.item,
|
|
44210
|
+
disabled: entry.disabled === true,
|
|
44211
|
+
...entry.title === void 0 ? {} : { title: entry.title },
|
|
44212
|
+
onClick: () => {
|
|
44213
|
+
close(true);
|
|
44214
|
+
onSelect(entry.key);
|
|
44215
|
+
},
|
|
44216
|
+
children: entry.label
|
|
44217
|
+
}, entry.key))
|
|
44218
|
+
})] });
|
|
44219
|
+
}
|
|
43794
44220
|
// \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:
|
|
44221
|
+
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
44222
|
const key = "src/client/transcript/TurnsDock.module.css";
|
|
43797
44223
|
let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(key) + "]");
|
|
43798
44224
|
if (tag === null) {
|
|
@@ -43803,16 +44229,17 @@ window.__ModuleLoader__.load({
|
|
|
43803
44229
|
}
|
|
43804
44230
|
tag.textContent = css;
|
|
43805
44231
|
var TurnsDock_module_css_default = {
|
|
43806
|
-
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
43807
|
-
"select": "rp_f4YLlq_select",
|
|
43808
|
-
"comparisonLine": "rp_f4YLlq_comparisonLine",
|
|
43809
|
-
"group": "rp_f4YLlq_group",
|
|
43810
|
-
"comparisonSubject": "rp_f4YLlq_comparisonSubject",
|
|
43811
|
-
"button": "rp_f4YLlq_button",
|
|
43812
|
-
"comparison": "rp_f4YLlq_comparison",
|
|
43813
44232
|
"dock": "rp_f4YLlq_dock",
|
|
44233
|
+
"comparison": "rp_f4YLlq_comparison",
|
|
44234
|
+
"fold": "rp_f4YLlq_fold",
|
|
44235
|
+
"comparisonLine": "rp_f4YLlq_comparisonLine",
|
|
43814
44236
|
"error": "rp_f4YLlq_error",
|
|
43815
|
-
"
|
|
44237
|
+
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
44238
|
+
"comparisonSubject": "rp_f4YLlq_comparisonSubject",
|
|
44239
|
+
"group": "rp_f4YLlq_group",
|
|
44240
|
+
"count": "rp_f4YLlq_count",
|
|
44241
|
+
"select": "rp_f4YLlq_select",
|
|
44242
|
+
"button": "rp_f4YLlq_button"
|
|
43816
44243
|
};
|
|
43817
44244
|
// src/client/transcript/withdrawn.ts
|
|
43818
44245
|
/** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */
|
|
@@ -43830,11 +44257,17 @@ window.__ModuleLoader__.load({
|
|
|
43830
44257
|
*/
|
|
43831
44258
|
function TurnsDock({ useChat, useSession, timeline, move, mark, compare, fill, branch, t }) {
|
|
43832
44259
|
const running = useSession((session) => session.running);
|
|
44260
|
+
const [folded, toggleFolded] = useDockFolded();
|
|
43833
44261
|
const [view, setView] = (0, react.useState)();
|
|
43834
44262
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
43835
44263
|
const [problem, setProblem] = (0, react.useState)();
|
|
43836
44264
|
const [refresh, setRefresh] = (0, react.useState)(0);
|
|
43837
44265
|
const [naming, setNaming] = (0, react.useState)();
|
|
44266
|
+
const nameInput = (0, react.useRef)(null);
|
|
44267
|
+
const editing = naming !== void 0;
|
|
44268
|
+
(0, react.useEffect)(() => {
|
|
44269
|
+
if (editing) nameInput.current?.focus();
|
|
44270
|
+
}, [editing]);
|
|
43838
44271
|
const [comparison, setComparison] = (0, react.useState)();
|
|
43839
44272
|
const marks = useChat((chat) => {
|
|
43840
44273
|
const nodes = [...chat.nodes.values()];
|
|
@@ -43899,220 +44332,211 @@ window.__ModuleLoader__.load({
|
|
|
43899
44332
|
"data-rp": "turns",
|
|
43900
44333
|
children: [
|
|
43901
44334
|
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", {
|
|
44335
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
43936
44336
|
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
|
-
},
|
|
44337
|
+
className: `${TurnsDock_module_css_default.button ?? ""} ${TurnsDock_module_css_default.fold ?? ""}`,
|
|
44338
|
+
"aria-expanded": !folded,
|
|
44339
|
+
title: folded ? t("dockShow") : t("dockHide"),
|
|
44340
|
+
onClick: toggleFolded,
|
|
43957
44341
|
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
|
-
})
|
|
44342
|
+
folded ? "▸" : "▾",
|
|
44343
|
+
" ",
|
|
44344
|
+
t("dockTools")
|
|
43976
44345
|
]
|
|
43977
44346
|
}),
|
|
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
|
-
|
|
44347
|
+
folded ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
44348
|
+
alternatives.length > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
44349
|
+
className: TurnsDock_module_css_default.group,
|
|
44350
|
+
children: [
|
|
44351
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44352
|
+
type: "button",
|
|
44353
|
+
className: TurnsDock_module_css_default.button,
|
|
44354
|
+
disabled: off || at <= 0,
|
|
44355
|
+
title: t("swapPrevious"),
|
|
44356
|
+
onClick: () => {
|
|
44357
|
+
act(alternatives[at - 1]);
|
|
44358
|
+
},
|
|
44359
|
+
children: "◀"
|
|
44360
|
+
}),
|
|
44361
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
44362
|
+
className: TurnsDock_module_css_default.count,
|
|
44363
|
+
children: [
|
|
44364
|
+
at + 1,
|
|
44365
|
+
"/",
|
|
44366
|
+
alternatives.length
|
|
44367
|
+
]
|
|
44368
|
+
}),
|
|
44369
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44370
|
+
type: "button",
|
|
44371
|
+
className: TurnsDock_module_css_default.button,
|
|
44372
|
+
disabled: off || at >= alternatives.length - 1,
|
|
44373
|
+
title: t("swapNext"),
|
|
44374
|
+
onClick: () => {
|
|
44375
|
+
act(alternatives[at + 1]);
|
|
44376
|
+
},
|
|
44377
|
+
children: "▶"
|
|
44378
|
+
})
|
|
44379
|
+
]
|
|
44380
|
+
}),
|
|
44381
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44382
|
+
type: "button",
|
|
44383
|
+
className: TurnsDock_module_css_default.button,
|
|
44384
|
+
disabled: off || parent !== START && !view.path.at(-2)?.restorable,
|
|
44385
|
+
title: t("regenerateHint"),
|
|
44386
|
+
onClick: () => {
|
|
44387
|
+
act(parent, (draft) => {
|
|
44388
|
+
if (draft !== void 0) fill(draft, true);
|
|
44389
|
+
});
|
|
44390
|
+
},
|
|
44391
|
+
children: t("regenerate")
|
|
44392
|
+
}),
|
|
44393
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
44394
|
+
triggerClassName: TurnsDock_module_css_default.button ?? "",
|
|
44395
|
+
label: t("rewind"),
|
|
44396
|
+
disabled: off,
|
|
44397
|
+
onSelect: (key) => {
|
|
44398
|
+
act(key, (draft) => {
|
|
44399
|
+
if (draft !== void 0) fill(draft, false);
|
|
44400
|
+
});
|
|
44401
|
+
},
|
|
44402
|
+
entries: [...checkpoints.map((turn) => ({
|
|
44403
|
+
key: turn.id,
|
|
44404
|
+
label: `◆ ${turn.label}`,
|
|
44405
|
+
title: turn.note
|
|
44406
|
+
})), ...[...view.path].reverse().map((turn, index, list) => ({
|
|
44407
|
+
key: list[index + 1]?.id ?? START,
|
|
44408
|
+
label: `${t("before")} ${label(turn.player)}`,
|
|
44409
|
+
disabled: !(index === list.length - 1 || list[index + 1].restorable)
|
|
44410
|
+
}))]
|
|
44411
|
+
}),
|
|
44412
|
+
naming === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44413
|
+
type: "button",
|
|
44414
|
+
className: TurnsDock_module_css_default.button,
|
|
44415
|
+
disabled: off,
|
|
44416
|
+
title: last.label === void 0 ? t("checkpointHint") : t("checkpointNamed", { name: last.label }),
|
|
44417
|
+
onClick: () => {
|
|
44418
|
+
setNaming(last.label ?? "");
|
|
44419
|
+
},
|
|
44420
|
+
children: t("checkpoint")
|
|
44421
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
44422
|
+
className: TurnsDock_module_css_default.group,
|
|
44423
|
+
children: [
|
|
44424
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
44425
|
+
ref: nameInput,
|
|
44426
|
+
className: TurnsDock_module_css_default.select,
|
|
44427
|
+
maxLength: 80,
|
|
44428
|
+
value: naming,
|
|
44429
|
+
placeholder: t("checkpointName"),
|
|
44430
|
+
"aria-label": t("checkpointName"),
|
|
44431
|
+
onChange: (event) => {
|
|
44432
|
+
setNaming(event.target.value);
|
|
44433
|
+
},
|
|
44434
|
+
onKeyDown: (event) => {
|
|
44435
|
+
if (event.key === "Enter") save();
|
|
44436
|
+
if (event.key === "Escape") setNaming(void 0);
|
|
44437
|
+
}
|
|
44438
|
+
}),
|
|
44439
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44440
|
+
type: "button",
|
|
44441
|
+
className: TurnsDock_module_css_default.button,
|
|
44442
|
+
disabled: off || naming.trim() === "",
|
|
44443
|
+
onClick: save,
|
|
44444
|
+
children: t("checkpointSave")
|
|
44445
|
+
}),
|
|
44446
|
+
last.label !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44447
|
+
type: "button",
|
|
44448
|
+
className: TurnsDock_module_css_default.button,
|
|
44449
|
+
disabled: off,
|
|
44450
|
+
onClick: () => {
|
|
44451
|
+
setBusy(true);
|
|
44452
|
+
mark(last.id, "").then(() => {
|
|
44453
|
+
setNaming(void 0);
|
|
44454
|
+
setRefresh((count) => count + 1);
|
|
44455
|
+
}).catch((error) => {
|
|
44456
|
+
setProblem(error instanceof Error ? error.message : String(error));
|
|
44457
|
+
}).finally(() => {
|
|
44458
|
+
setBusy(false);
|
|
44459
|
+
});
|
|
44460
|
+
},
|
|
44461
|
+
children: t("checkpointRemove")
|
|
44462
|
+
}),
|
|
44463
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44464
|
+
type: "button",
|
|
44465
|
+
className: TurnsDock_module_css_default.button,
|
|
44466
|
+
onClick: () => {
|
|
44019
44467
|
setNaming(void 0);
|
|
44020
|
-
|
|
44021
|
-
|
|
44022
|
-
|
|
44023
|
-
|
|
44024
|
-
|
|
44025
|
-
|
|
44026
|
-
|
|
44027
|
-
|
|
44028
|
-
|
|
44029
|
-
|
|
44030
|
-
|
|
44031
|
-
|
|
44032
|
-
|
|
44033
|
-
|
|
44468
|
+
},
|
|
44469
|
+
children: t("checkpointCancel")
|
|
44470
|
+
})
|
|
44471
|
+
]
|
|
44472
|
+
}),
|
|
44473
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
44474
|
+
triggerClassName: TurnsDock_module_css_default.button ?? "",
|
|
44475
|
+
label: t("branch"),
|
|
44476
|
+
title: t("branchHint"),
|
|
44477
|
+
disabled: off,
|
|
44478
|
+
onSelect: (key) => {
|
|
44479
|
+
const at = Number(key);
|
|
44480
|
+
if (!Number.isInteger(at)) return;
|
|
44481
|
+
setBusy(true);
|
|
44482
|
+
setProblem(void 0);
|
|
44483
|
+
branch(at).catch((error) => {
|
|
44484
|
+
setProblem(t("branchFailed", { message: error instanceof Error ? error.message : String(error) }));
|
|
44485
|
+
}).finally(() => {
|
|
44486
|
+
setBusy(false);
|
|
44487
|
+
});
|
|
44488
|
+
},
|
|
44489
|
+
entries: [...view.path].reverse().map((turn) => ({
|
|
44490
|
+
key: String(turn.endSeq ?? ""),
|
|
44491
|
+
label: `${t("after")} ${label(turn.player)}`,
|
|
44492
|
+
disabled: turn.endSeq === void 0
|
|
44493
|
+
}))
|
|
44494
|
+
}),
|
|
44495
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
44496
|
+
triggerClassName: TurnsDock_module_css_default.button ?? "",
|
|
44497
|
+
label: t("compare"),
|
|
44498
|
+
title: t("compareHint"),
|
|
44499
|
+
disabled: off,
|
|
44500
|
+
onSelect: (turn) => {
|
|
44501
|
+
setBusy(true);
|
|
44502
|
+
setProblem(void 0);
|
|
44503
|
+
compare(turn).then(setComparison).catch((error) => {
|
|
44504
|
+
setProblem(error instanceof Error ? error.message : String(error));
|
|
44505
|
+
}).finally(() => {
|
|
44506
|
+
setBusy(false);
|
|
44507
|
+
});
|
|
44508
|
+
},
|
|
44509
|
+
entries: [
|
|
44510
|
+
...checkpoints.map((turn) => ({
|
|
44511
|
+
key: turn.id,
|
|
44512
|
+
label: `◆ ${turn.label}`,
|
|
44513
|
+
disabled: !turn.restorable
|
|
44514
|
+
})),
|
|
44515
|
+
{
|
|
44516
|
+
key: START,
|
|
44517
|
+
label: t("compareStart"),
|
|
44518
|
+
disabled: !view.canStart
|
|
44034
44519
|
},
|
|
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
|
-
}),
|
|
44520
|
+
...[...view.path].reverse().map((turn) => ({
|
|
44521
|
+
key: turn.id,
|
|
44522
|
+
label: `${t("after")} ${label(turn.player)}`,
|
|
44523
|
+
disabled: !turn.restorable
|
|
44524
|
+
}))
|
|
44525
|
+
]
|
|
44526
|
+
}),
|
|
44527
|
+
view.forward.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44528
|
+
type: "button",
|
|
44529
|
+
className: TurnsDock_module_css_default.button,
|
|
44530
|
+
disabled: off || !view.forward.at(-1).restorable,
|
|
44531
|
+
title: t("redoHint"),
|
|
44532
|
+
onClick: () => {
|
|
44533
|
+
act(view.forward.at(-1).id, () => {
|
|
44534
|
+
fill("", false);
|
|
44535
|
+
});
|
|
44536
|
+
},
|
|
44537
|
+
children: t("redo")
|
|
44538
|
+
})
|
|
44539
|
+
] }),
|
|
44116
44540
|
problem !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44117
44541
|
className: TurnsDock_module_css_default.error,
|
|
44118
44542
|
children: problem
|
|
@@ -44156,6 +44580,9 @@ window.__ModuleLoader__.load({
|
|
|
44156
44580
|
// src/client/transcript/locales.ts
|
|
44157
44581
|
const dictionaries = {
|
|
44158
44582
|
en: {
|
|
44583
|
+
dockTools: "Story tools",
|
|
44584
|
+
dockHide: "Hide the story tools",
|
|
44585
|
+
dockShow: "Show the story tools",
|
|
44159
44586
|
unwritten: "{count} rounds not yet written into the story's memory",
|
|
44160
44587
|
speakAll: "Play narration",
|
|
44161
44588
|
speakLine: "Play this line",
|
|
@@ -44210,6 +44637,9 @@ window.__ModuleLoader__.load({
|
|
|
44210
44637
|
dicePlayer: "You rolled:"
|
|
44211
44638
|
},
|
|
44212
44639
|
zh: {
|
|
44640
|
+
dockTools: "故事工具",
|
|
44641
|
+
dockHide: "收起故事工具",
|
|
44642
|
+
dockShow: "展开故事工具",
|
|
44213
44643
|
unwritten: "有 {count} 个回合尚未写入故事记忆",
|
|
44214
44644
|
speakAll: "播放整段",
|
|
44215
44645
|
speakLine: "播放这句台词",
|
|
@@ -44264,6 +44694,9 @@ window.__ModuleLoader__.load({
|
|
|
44264
44694
|
dicePlayer: "你掷出:"
|
|
44265
44695
|
},
|
|
44266
44696
|
ja: {
|
|
44697
|
+
dockTools: "ストーリーツール",
|
|
44698
|
+
dockHide: "ストーリーツールを隠す",
|
|
44699
|
+
dockShow: "ストーリーツールを表示",
|
|
44267
44700
|
unwritten: "まだ物語の記憶に書き込まれていないラウンド:{count}",
|
|
44268
44701
|
speakAll: "ナレーションを再生",
|
|
44269
44702
|
speakLine: "この台詞を再生",
|
|
@@ -44318,6 +44751,9 @@ window.__ModuleLoader__.load({
|
|
|
44318
44751
|
dicePlayer: "あなたの出目:"
|
|
44319
44752
|
},
|
|
44320
44753
|
es: {
|
|
44754
|
+
dockTools: "Herramientas de la historia",
|
|
44755
|
+
dockHide: "Ocultar las herramientas de la historia",
|
|
44756
|
+
dockShow: "Mostrar las herramientas de la historia",
|
|
44321
44757
|
unwritten: "{count} rondas aún sin guardar en la memoria de la historia",
|
|
44322
44758
|
speakAll: "Reproducir la narración",
|
|
44323
44759
|
speakLine: "Reproducir esta frase",
|
|
@@ -44372,6 +44808,9 @@ window.__ModuleLoader__.load({
|
|
|
44372
44808
|
dicePlayer: "Has sacado:"
|
|
44373
44809
|
},
|
|
44374
44810
|
fr: {
|
|
44811
|
+
dockTools: "Outils de l’histoire",
|
|
44812
|
+
dockHide: "Masquer les outils de l’histoire",
|
|
44813
|
+
dockShow: "Afficher les outils de l’histoire",
|
|
44375
44814
|
unwritten: "{count} tours pas encore inscrits dans la mémoire de l’histoire",
|
|
44376
44815
|
speakAll: "Lire la narration",
|
|
44377
44816
|
speakLine: "Lire cette réplique",
|
|
@@ -44426,6 +44865,9 @@ window.__ModuleLoader__.load({
|
|
|
44426
44865
|
dicePlayer: "Votre résultat :"
|
|
44427
44866
|
},
|
|
44428
44867
|
de: {
|
|
44868
|
+
dockTools: "Geschichts-Werkzeuge",
|
|
44869
|
+
dockHide: "Geschichts-Werkzeuge ausblenden",
|
|
44870
|
+
dockShow: "Geschichts-Werkzeuge einblenden",
|
|
44429
44871
|
unwritten: "{count} Runde(n) noch nicht im Gedächtnis der Geschichte festgehalten",
|
|
44430
44872
|
speakAll: "Erzählung abspielen",
|
|
44431
44873
|
speakLine: "Diese Zeile abspielen",
|
|
@@ -44480,6 +44922,9 @@ window.__ModuleLoader__.load({
|
|
|
44480
44922
|
dicePlayer: "Du hast gewürfelt:"
|
|
44481
44923
|
},
|
|
44482
44924
|
ru: {
|
|
44925
|
+
dockTools: "Инструменты истории",
|
|
44926
|
+
dockHide: "Скрыть инструменты истории",
|
|
44927
|
+
dockShow: "Показать инструменты истории",
|
|
44483
44928
|
unwritten: "Раундов, ещё не записанных в память истории: {count}",
|
|
44484
44929
|
speakAll: "Озвучить повествование",
|
|
44485
44930
|
speakLine: "Озвучить эту реплику",
|
|
@@ -44534,6 +44979,9 @@ window.__ModuleLoader__.load({
|
|
|
44534
44979
|
dicePlayer: "Ваш бросок:"
|
|
44535
44980
|
},
|
|
44536
44981
|
pt: {
|
|
44982
|
+
dockTools: "Ferramentas da história",
|
|
44983
|
+
dockHide: "Ocultar as ferramentas da história",
|
|
44984
|
+
dockShow: "Mostrar as ferramentas da história",
|
|
44537
44985
|
unwritten: "{count} rondas ainda não guardadas na memória da história",
|
|
44538
44986
|
speakAll: "Reproduzir narração",
|
|
44539
44987
|
speakLine: "Reproduzir esta fala",
|