@dsh-agentic-roleplay/core 0.12.1 → 0.12.3
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/cordis.patch.yml +108 -0
- package/lib/{access-DifaiHrI.js → access-Csp80TFX.js} +2 -2
- package/lib/{authoring-tools-VOaXzr_R.js → authoring-tools-hacA5fG-.js} +1910 -1853
- package/lib/authoring.js +42 -34
- package/lib/{child-DzZ-aI6k.js → child-DTdY14S9.js} +45 -6
- package/lib/client.js +830 -571
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +3 -3
- package/lib/{dev-context-Bdm-eVer.js → dev-context-Cgv_wZbG.js} +12 -2
- package/lib/doctor.js +5 -4
- package/lib/{gallery-Ctz-UoFk.js → gallery-BNg0rPTp.js} +3 -3
- package/lib/{generator-Cv6WWmZT.js → generator-9-5at9cZ.js} +2 -2
- package/lib/helper.js +4 -10
- package/lib/{hooks-BdR3mBeM.js → hooks-DlrFO4aQ.js} +216 -45
- package/lib/images.js +4 -4
- package/lib/index.js +67 -45
- package/lib/{jail-Cp4zEfip.js → jail-DVbPSC0R.js} +2 -2
- package/lib/{library-BU2A_Dx8.js → library-DTxakw0z.js} +2 -2
- package/lib/{lorebook-author-tools-DUKcQu8P.js → lorebook-author-tools-dupq-kb_.js} +6 -6
- package/lib/lorebook-authoring.js +7 -6
- package/lib/{narration-CDsJ5wxH.js → narration--K2XVIHI.js} +2 -2
- package/lib/orchestration.js +12 -12
- package/lib/{pack-jail-CzHQu0n3.js → pack-jail-Bq0fzKi4.js} +43 -16
- package/lib/{packs-BZ-45J4-.js → packs-D-7EU3yU.js} +2 -2
- package/lib/{presenter-agent-C2ZkoxZu.js → presenter-agent-vFOxIuWv.js} +6 -6
- package/lib/{preset-BPnRPW-1.js → preset-RHcOG55T.js} +4 -4
- package/lib/{preset-author-tools-DBqPwn-o.js → preset-author-tools-Dwxnpv6V.js} +6 -6
- package/lib/preset-authoring.js +7 -6
- package/lib/{reflection-Cuy0YLv0.js → reflection-DibpEUQK.js} +7 -7
- package/lib/{serial-BZNeK57v.js → serial-CDGoXYh-.js} +1317 -1276
- package/lib/{turn-guard-xaFxYc1T.js → turn-guard-DDxikrq7.js} +3 -3
- package/package.json +4 -3
package/lib/client.js
CHANGED
|
@@ -405,19 +405,19 @@ window.__ModuleLoader__.load({
|
|
|
405
405
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUsers, { size });
|
|
406
406
|
}
|
|
407
407
|
// \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$
|
|
408
|
+
const css$52 = ".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)}";
|
|
409
|
+
const key$52 = "src/client/widgets/page-tabs/PageTabs.module.css";
|
|
410
|
+
let tag$52 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$52) + "]");
|
|
411
|
+
if (tag$52 === null) {
|
|
412
|
+
tag$52 = document.createElement("style");
|
|
413
|
+
tag$52.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
414
|
+
tag$52.dataset.pluginCss = key$52;
|
|
415
|
+
document.head.appendChild(tag$52);
|
|
416
|
+
}
|
|
417
|
+
tag$52.textContent = css$52;
|
|
418
418
|
var PageTabs_module_css_default = {
|
|
419
|
-
"
|
|
420
|
-
"
|
|
419
|
+
"tabs": "rp_LrKukW_tabs",
|
|
420
|
+
"tab": "rp_LrKukW_tab"
|
|
421
421
|
};
|
|
422
422
|
// src/client/widgets/page-tabs/PageTabs.tsx
|
|
423
423
|
/** Underlined text tabs; arrow keys, Home and End move between them. */
|
|
@@ -459,21 +459,21 @@ window.__ModuleLoader__.load({
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
// \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$
|
|
462
|
+
const css$51 = ".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}}";
|
|
463
|
+
const key$51 = "src/client/panel/RoleplayPanel.module.css";
|
|
464
|
+
let tag$51 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$51) + "]");
|
|
465
|
+
if (tag$51 === null) {
|
|
466
|
+
tag$51 = document.createElement("style");
|
|
467
|
+
tag$51.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
468
|
+
tag$51.dataset.pluginCss = key$51;
|
|
469
|
+
document.head.appendChild(tag$51);
|
|
470
470
|
}
|
|
471
|
-
tag$
|
|
471
|
+
tag$51.textContent = css$51;
|
|
472
472
|
var RoleplayPanel_module_css_default = {
|
|
473
|
-
"header": "rp_ua5gBa_header",
|
|
474
|
-
"body": "rp_ua5gBa_body",
|
|
475
473
|
"panel": "rp_ua5gBa_panel",
|
|
476
|
-
"title": "rp_ua5gBa_title"
|
|
474
|
+
"title": "rp_ua5gBa_title",
|
|
475
|
+
"body": "rp_ua5gBa_body",
|
|
476
|
+
"header": "rp_ua5gBa_header"
|
|
477
477
|
};
|
|
478
478
|
// src/client/panel/RoleplayPanel.tsx
|
|
479
479
|
/** Header, page navigation and the selected page. */
|
|
@@ -891,25 +891,25 @@ window.__ModuleLoader__.load({
|
|
|
891
891
|
}
|
|
892
892
|
};
|
|
893
893
|
// \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$
|
|
894
|
+
const css$50 = ".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}";
|
|
895
|
+
const key$50 = "src/client/ui/Button.module.css";
|
|
896
|
+
let tag$50 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$50) + "]");
|
|
897
|
+
if (tag$50 === null) {
|
|
898
|
+
tag$50 = document.createElement("style");
|
|
899
|
+
tag$50.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
900
|
+
tag$50.dataset.pluginCss = key$50;
|
|
901
|
+
document.head.appendChild(tag$50);
|
|
902
902
|
}
|
|
903
|
-
tag$
|
|
903
|
+
tag$50.textContent = css$50;
|
|
904
904
|
var Button_module_css_default = {
|
|
905
905
|
"rpButton": "rp_wwotfa_rpButton",
|
|
906
906
|
"rpToolbar": "rp_wwotfa_rpToolbar",
|
|
907
|
-
"rpIcon": "rp_wwotfa_rpIcon",
|
|
908
907
|
"rpOutline": "rp_wwotfa_rpOutline",
|
|
908
|
+
"rpGhost": "rp_wwotfa_rpGhost",
|
|
909
|
+
"rpPrimary": "rp_wwotfa_rpPrimary",
|
|
909
910
|
"rpMd": "rp_wwotfa_rpMd",
|
|
910
911
|
"rpSm": "rp_wwotfa_rpSm",
|
|
911
|
-
"
|
|
912
|
-
"rpGhost": "rp_wwotfa_rpGhost"
|
|
912
|
+
"rpIcon": "rp_wwotfa_rpIcon"
|
|
913
913
|
};
|
|
914
914
|
// src/client/ui/Button.tsx
|
|
915
915
|
/** Render a button; native button attributes pass through, and `icon` is a leading 16px node. */
|
|
@@ -932,16 +932,16 @@ window.__ModuleLoader__.load({
|
|
|
932
932
|
});
|
|
933
933
|
});
|
|
934
934
|
// \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$
|
|
935
|
+
const css$49 = ".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)}";
|
|
936
|
+
const key$49 = "src/client/ui/Tag.module.css";
|
|
937
|
+
let tag$49 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$49) + "]");
|
|
938
|
+
if (tag$49 === null) {
|
|
939
|
+
tag$49 = document.createElement("style");
|
|
940
|
+
tag$49.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
941
|
+
tag$49.dataset.pluginCss = key$49;
|
|
942
|
+
document.head.appendChild(tag$49);
|
|
943
943
|
}
|
|
944
|
-
tag$
|
|
944
|
+
tag$49.textContent = css$49;
|
|
945
945
|
var Tag_module_css_default = { "rpTag": "rp_R752CG_rpTag" };
|
|
946
946
|
// src/client/ui/Tag.tsx
|
|
947
947
|
/** Render a read-only tag; the label belongs to the render site. */
|
|
@@ -954,16 +954,16 @@ window.__ModuleLoader__.load({
|
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
// \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$
|
|
957
|
+
const css$48 = ".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}";
|
|
958
|
+
const key$48 = "src/client/ui/Tooltip.module.css";
|
|
959
|
+
let tag$48 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$48) + "]");
|
|
960
|
+
if (tag$48 === null) {
|
|
961
|
+
tag$48 = document.createElement("style");
|
|
962
|
+
tag$48.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
963
|
+
tag$48.dataset.pluginCss = key$48;
|
|
964
|
+
document.head.appendChild(tag$48);
|
|
965
965
|
}
|
|
966
|
-
tag$
|
|
966
|
+
tag$48.textContent = css$48;
|
|
967
967
|
var Tooltip_module_css_default = { "bubble": "rp_ucrTbq_bubble" };
|
|
968
968
|
/**
|
|
969
969
|
* The viewport as the page measures it.
|
|
@@ -1130,19 +1130,19 @@ window.__ModuleLoader__.load({
|
|
|
1130
1130
|
})] });
|
|
1131
1131
|
}
|
|
1132
1132
|
// \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$
|
|
1133
|
+
const css$47 = ".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)}";
|
|
1134
|
+
const key$47 = "src/client/ui/Switch.module.css";
|
|
1135
|
+
let tag$47 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$47) + "]");
|
|
1136
|
+
if (tag$47 === null) {
|
|
1137
|
+
tag$47 = document.createElement("style");
|
|
1138
|
+
tag$47.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1139
|
+
tag$47.dataset.pluginCss = key$47;
|
|
1140
|
+
document.head.appendChild(tag$47);
|
|
1141
1141
|
}
|
|
1142
|
-
tag$
|
|
1142
|
+
tag$47.textContent = css$47;
|
|
1143
1143
|
var Switch_module_css_default = {
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1144
|
+
"rpThumb": "rp_7MP8na_rpThumb",
|
|
1145
|
+
"rpSwitch": "rp_7MP8na_rpSwitch"
|
|
1146
1146
|
};
|
|
1147
1147
|
// src/client/ui/Switch.tsx
|
|
1148
1148
|
/**
|
|
@@ -1165,20 +1165,20 @@ window.__ModuleLoader__.load({
|
|
|
1165
1165
|
});
|
|
1166
1166
|
}
|
|
1167
1167
|
// \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$
|
|
1168
|
+
const css$46 = ".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)}";
|
|
1169
|
+
const key$46 = "src/client/ui/Input.module.css";
|
|
1170
|
+
let tag$46 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$46) + "]");
|
|
1171
|
+
if (tag$46 === null) {
|
|
1172
|
+
tag$46 = document.createElement("style");
|
|
1173
|
+
tag$46.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1174
|
+
tag$46.dataset.pluginCss = key$46;
|
|
1175
|
+
document.head.appendChild(tag$46);
|
|
1176
1176
|
}
|
|
1177
|
-
tag$
|
|
1177
|
+
tag$46.textContent = css$46;
|
|
1178
1178
|
var Input_module_css_default = {
|
|
1179
|
-
"
|
|
1179
|
+
"rpInput": "rp_QU88dW_rpInput",
|
|
1180
1180
|
"rpInputWrap": "rp_QU88dW_rpInputWrap",
|
|
1181
|
-
"
|
|
1181
|
+
"rpInputIcon": "rp_QU88dW_rpInputIcon"
|
|
1182
1182
|
};
|
|
1183
1183
|
// src/client/ui/Input.tsx
|
|
1184
1184
|
/** Render a text input with an optional leading icon; input attributes pass through. */
|
|
@@ -1195,6 +1195,68 @@ window.__ModuleLoader__.load({
|
|
|
1195
1195
|
})]
|
|
1196
1196
|
});
|
|
1197
1197
|
});
|
|
1198
|
+
// \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$45 = ".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}";
|
|
1200
|
+
const key$45 = "src/client/widgets/language-select/LanguageSelect.module.css";
|
|
1201
|
+
let tag$45 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$45) + "]");
|
|
1202
|
+
if (tag$45 === null) {
|
|
1203
|
+
tag$45 = document.createElement("style");
|
|
1204
|
+
tag$45.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1205
|
+
tag$45.dataset.pluginCss = key$45;
|
|
1206
|
+
document.head.appendChild(tag$45);
|
|
1207
|
+
}
|
|
1208
|
+
tag$45.textContent = css$45;
|
|
1209
|
+
var LanguageSelect_module_css_default = {
|
|
1210
|
+
"compact": "rp_uOuCXG_compact",
|
|
1211
|
+
"select": "rp_uOuCXG_select"
|
|
1212
|
+
};
|
|
1213
|
+
// src/client/widgets/language-select/LanguageSelect.tsx
|
|
1214
|
+
/** The languages offered for the prompts of an import or an assistant; the interface's own language is added when it is none of them. */
|
|
1215
|
+
const PROMPT_LANGUAGES$1 = [
|
|
1216
|
+
"en",
|
|
1217
|
+
"zh",
|
|
1218
|
+
"ja",
|
|
1219
|
+
"ko",
|
|
1220
|
+
"es",
|
|
1221
|
+
"fr",
|
|
1222
|
+
"de",
|
|
1223
|
+
"pt",
|
|
1224
|
+
"ru",
|
|
1225
|
+
"it"
|
|
1226
|
+
];
|
|
1227
|
+
/** `zh-CN` and `ZH` are both `zh`. */
|
|
1228
|
+
const primaryLanguage = (tag) => tag.trim().toLowerCase().split(/[-_]/)[0] ?? "";
|
|
1229
|
+
/** A language by name, in the language given (the interface's); the tag itself when the browser does not know it. */
|
|
1230
|
+
function languageLabel(tag, inLanguage) {
|
|
1231
|
+
try {
|
|
1232
|
+
return new Intl.DisplayNames([inLanguage], { type: "language" }).of(tag) ?? tag;
|
|
1233
|
+
} catch {
|
|
1234
|
+
return tag;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
/** Chooses the language of prompts and assistants. `interfaceLanguage` names the language the names are shown in and is always among the choices. */
|
|
1238
|
+
function LanguageSelect({ value, onChange, interfaceLanguage, label, title, compact = false, disabled = false, testId }) {
|
|
1239
|
+
const choices = [...new Set([
|
|
1240
|
+
...PROMPT_LANGUAGES$1,
|
|
1241
|
+
primaryLanguage(interfaceLanguage),
|
|
1242
|
+
primaryLanguage(value)
|
|
1243
|
+
].filter((tag) => tag !== ""))];
|
|
1244
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
1245
|
+
className: compact ? `${LanguageSelect_module_css_default.select} ${LanguageSelect_module_css_default.compact}` : LanguageSelect_module_css_default.select,
|
|
1246
|
+
"aria-label": label,
|
|
1247
|
+
...title === void 0 ? {} : { title },
|
|
1248
|
+
value: primaryLanguage(value),
|
|
1249
|
+
disabled,
|
|
1250
|
+
...testId === void 0 ? {} : { "data-testid": testId },
|
|
1251
|
+
onChange: (event) => {
|
|
1252
|
+
onChange(event.target.value);
|
|
1253
|
+
},
|
|
1254
|
+
children: choices.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1255
|
+
value: tag,
|
|
1256
|
+
children: languageLabel(tag, interfaceLanguage)
|
|
1257
|
+
}, tag))
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1198
1260
|
// \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
|
|
1199
1261
|
const css$44 = ".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}";
|
|
1200
1262
|
const key$44 = "src/client/widgets/import-card/ImportCard.module.css";
|
|
@@ -1207,34 +1269,34 @@ window.__ModuleLoader__.load({
|
|
|
1207
1269
|
}
|
|
1208
1270
|
tag$44.textContent = css$44;
|
|
1209
1271
|
var ImportCard_module_css_default = {
|
|
1272
|
+
"page": "rp_5cvtma_page",
|
|
1273
|
+
"section": "rp_5cvtma_section",
|
|
1274
|
+
"error": "rp_5cvtma_error",
|
|
1275
|
+
"about": "rp_5cvtma_about",
|
|
1276
|
+
"entry": "rp_5cvtma_entry",
|
|
1277
|
+
"entryOff": "rp_5cvtma_entryOff",
|
|
1278
|
+
"title": "rp_5cvtma_title",
|
|
1210
1279
|
"picture": "rp_5cvtma_picture",
|
|
1211
1280
|
"top": "rp_5cvtma_top",
|
|
1212
|
-
"title": "rp_5cvtma_title",
|
|
1213
|
-
"entryOff": "rp_5cvtma_entryOff",
|
|
1214
|
-
"note": "rp_5cvtma_note",
|
|
1215
1281
|
"choice": "rp_5cvtma_choice",
|
|
1216
|
-
"body": "rp_5cvtma_body",
|
|
1217
|
-
"entry": "rp_5cvtma_entry",
|
|
1218
|
-
"choiceText": "rp_5cvtma_choiceText",
|
|
1219
|
-
"page": "rp_5cvtma_page",
|
|
1220
1282
|
"noPicture": "rp_5cvtma_noPicture",
|
|
1221
|
-
"
|
|
1222
|
-
"fieldHead": "rp_5cvtma_fieldHead",
|
|
1223
|
-
"entryHead": "rp_5cvtma_entryHead",
|
|
1283
|
+
"text": "rp_5cvtma_text",
|
|
1224
1284
|
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
1225
|
-
"
|
|
1226
|
-
"heading": "rp_5cvtma_heading",
|
|
1227
|
-
"header": "rp_5cvtma_header",
|
|
1228
|
-
"about": "rp_5cvtma_about",
|
|
1285
|
+
"tags": "rp_5cvtma_tags",
|
|
1229
1286
|
"space": "rp_5cvtma_space",
|
|
1287
|
+
"header": "rp_5cvtma_header",
|
|
1288
|
+
"note": "rp_5cvtma_note",
|
|
1289
|
+
"body": "rp_5cvtma_body",
|
|
1230
1290
|
"row": "rp_5cvtma_row",
|
|
1231
|
-
"tags": "rp_5cvtma_tags",
|
|
1232
|
-
"section": "rp_5cvtma_section",
|
|
1233
1291
|
"field": "rp_5cvtma_field",
|
|
1234
|
-
"entryTitle": "rp_5cvtma_entryTitle",
|
|
1235
1292
|
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
1236
|
-
"
|
|
1237
|
-
"
|
|
1293
|
+
"choiceText": "rp_5cvtma_choiceText",
|
|
1294
|
+
"fieldHead": "rp_5cvtma_fieldHead",
|
|
1295
|
+
"entryHead": "rp_5cvtma_entryHead",
|
|
1296
|
+
"label": "rp_5cvtma_label",
|
|
1297
|
+
"preview": "rp_5cvtma_preview",
|
|
1298
|
+
"heading": "rp_5cvtma_heading",
|
|
1299
|
+
"entryTitle": "rp_5cvtma_entryTitle"
|
|
1238
1300
|
};
|
|
1239
1301
|
// src/client/widgets/import-card/ImportCard.tsx
|
|
1240
1302
|
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
@@ -1277,7 +1339,7 @@ window.__ModuleLoader__.load({
|
|
|
1277
1339
|
* What a card holds, for the person to look through and decide what becomes of it: which lorebook entries are read at all, and which greeting opens the story.
|
|
1278
1340
|
* The caller says what starting and cancelling do, because a card comes from a file or from a catalogue.
|
|
1279
1341
|
*/
|
|
1280
|
-
function ImportCard({ t, preview, initialUpdate, start: begin, startPlain, discard, onCancelled, onStarted, onImportedPlain }) {
|
|
1342
|
+
function ImportCard({ t, language, preview, initialUpdate, start: begin, startPlain, discard, onCancelled, onStarted, onImportedPlain }) {
|
|
1281
1343
|
const { card } = preview;
|
|
1282
1344
|
const entries = card.book?.entries ?? [];
|
|
1283
1345
|
const dialect = preview.dialect;
|
|
@@ -1287,6 +1349,7 @@ window.__ModuleLoader__.load({
|
|
|
1287
1349
|
const [opening, setOpening] = (0, react.useState)(preview.choices.opening);
|
|
1288
1350
|
const [open, setOpen] = (0, react.useState)(/* @__PURE__ */ new Set());
|
|
1289
1351
|
const [update, setUpdate] = (0, react.useState)(() => initialUpdate ?? defaultTarget(preview.targets));
|
|
1352
|
+
const [promptLanguage, setPromptLanguage] = (0, react.useState)(() => primaryLanguage(language));
|
|
1290
1353
|
const [starting, setStarting] = (0, react.useState)(false);
|
|
1291
1354
|
const [error, setError] = (0, react.useState)();
|
|
1292
1355
|
const others = (preview.targets ?? []).filter((target) => !target.sameName);
|
|
@@ -1324,7 +1387,7 @@ window.__ModuleLoader__.load({
|
|
|
1324
1387
|
if (name.trim() === "" || starting) return;
|
|
1325
1388
|
setStarting(true);
|
|
1326
1389
|
setError(void 0);
|
|
1327
|
-
begin(choices(), update).then((started) => {
|
|
1390
|
+
begin(choices(), update, promptLanguage).then((started) => {
|
|
1328
1391
|
onStarted(started.chatSessionId, started.started);
|
|
1329
1392
|
}, (failure) => {
|
|
1330
1393
|
setStarting(false);
|
|
@@ -1335,7 +1398,7 @@ window.__ModuleLoader__.load({
|
|
|
1335
1398
|
if (name.trim() === "" || starting || startPlain === void 0) return;
|
|
1336
1399
|
setStarting(true);
|
|
1337
1400
|
setError(void 0);
|
|
1338
|
-
startPlain(choices()).then((done) => {
|
|
1401
|
+
startPlain(choices(), promptLanguage).then((done) => {
|
|
1339
1402
|
onImportedPlain?.(done.worldId, done.draft);
|
|
1340
1403
|
}, (failure) => {
|
|
1341
1404
|
setStarting(false);
|
|
@@ -1418,6 +1481,24 @@ window.__ModuleLoader__.load({
|
|
|
1418
1481
|
}
|
|
1419
1482
|
})]
|
|
1420
1483
|
}),
|
|
1484
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
1485
|
+
className: ImportCard_module_css_default.label,
|
|
1486
|
+
children: [
|
|
1487
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("ic_promptLanguage") }),
|
|
1488
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
1489
|
+
value: promptLanguage,
|
|
1490
|
+
onChange: setPromptLanguage,
|
|
1491
|
+
interfaceLanguage: language,
|
|
1492
|
+
label: t("ic_promptLanguage"),
|
|
1493
|
+
disabled: starting,
|
|
1494
|
+
testId: "roleplay-import-language"
|
|
1495
|
+
}),
|
|
1496
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1497
|
+
className: ImportCard_module_css_default.note,
|
|
1498
|
+
children: t("ic_promptLanguageHelp")
|
|
1499
|
+
})
|
|
1500
|
+
]
|
|
1501
|
+
}),
|
|
1421
1502
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
1422
1503
|
className: ImportCard_module_css_default.note,
|
|
1423
1504
|
children: [t("ic_source", {
|
|
@@ -1723,17 +1804,17 @@ window.__ModuleLoader__.load({
|
|
|
1723
1804
|
}
|
|
1724
1805
|
tag$43.textContent = css$43;
|
|
1725
1806
|
var Modal_module_css_default = {
|
|
1726
|
-
"dialog": "rp_46MuuW_dialog",
|
|
1727
|
-
"title": "rp_46MuuW_title",
|
|
1728
1807
|
"description": "rp_46MuuW_description",
|
|
1729
|
-
"content": "rp_46MuuW_content",
|
|
1730
|
-
"header": "rp_46MuuW_header",
|
|
1731
|
-
"footer": "rp_46MuuW_footer",
|
|
1732
|
-
"rpModalEnter": "rp_46MuuW_rpModalEnter",
|
|
1733
1808
|
"mask": "rp_46MuuW_mask",
|
|
1809
|
+
"header": "rp_46MuuW_header",
|
|
1734
1810
|
"root": "rp_46MuuW_root",
|
|
1735
|
-
"
|
|
1736
|
-
"body": "rp_46MuuW_body"
|
|
1811
|
+
"title": "rp_46MuuW_title",
|
|
1812
|
+
"body": "rp_46MuuW_body",
|
|
1813
|
+
"rpModalEnter": "rp_46MuuW_rpModalEnter",
|
|
1814
|
+
"dialog": "rp_46MuuW_dialog",
|
|
1815
|
+
"footer": "rp_46MuuW_footer",
|
|
1816
|
+
"content": "rp_46MuuW_content",
|
|
1817
|
+
"close": "rp_46MuuW_close"
|
|
1737
1818
|
};
|
|
1738
1819
|
// src/client/ui/Modal.tsx
|
|
1739
1820
|
const FOCUSABLE = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
|
|
@@ -1870,38 +1951,38 @@ window.__ModuleLoader__.load({
|
|
|
1870
1951
|
}
|
|
1871
1952
|
tag$42.textContent = css$42;
|
|
1872
1953
|
var CataloguePage_module_css_default = {
|
|
1873
|
-
"
|
|
1954
|
+
"detail": "rp_qK1u-G_detail",
|
|
1955
|
+
"notice": "rp_qK1u-G_notice",
|
|
1956
|
+
"changes": "rp_qK1u-G_changes",
|
|
1957
|
+
"placeholder": "rp_qK1u-G_placeholder",
|
|
1958
|
+
"form": "rp_qK1u-G_form",
|
|
1959
|
+
"select": "rp_qK1u-G_select",
|
|
1960
|
+
"message": "rp_qK1u-G_message",
|
|
1874
1961
|
"toolbar": "rp_qK1u-G_toolbar",
|
|
1962
|
+
"description": "rp_qK1u-G_description",
|
|
1875
1963
|
"cover": "rp_qK1u-G_cover",
|
|
1876
|
-
"
|
|
1877
|
-
"
|
|
1878
|
-
"
|
|
1879
|
-
"
|
|
1880
|
-
"tags": "rp_qK1u-G_tags",
|
|
1964
|
+
"label": "rp_qK1u-G_label",
|
|
1965
|
+
"grid": "rp_qK1u-G_grid",
|
|
1966
|
+
"kinds": "rp_qK1u-G_kinds",
|
|
1967
|
+
"more": "rp_qK1u-G_more",
|
|
1881
1968
|
"actions": "rp_qK1u-G_actions",
|
|
1969
|
+
"update": "rp_qK1u-G_update",
|
|
1970
|
+
"warning": "rp_qK1u-G_warning",
|
|
1971
|
+
"meta": "rp_qK1u-G_meta",
|
|
1972
|
+
"viewport": "rp_qK1u-G_viewport",
|
|
1882
1973
|
"body": "rp_qK1u-G_body",
|
|
1883
|
-
"
|
|
1884
|
-
"
|
|
1885
|
-
"
|
|
1886
|
-
"page": "rp_qK1u-G_page",
|
|
1974
|
+
"search": "rp_qK1u-G_search",
|
|
1975
|
+
"field": "rp_qK1u-G_field",
|
|
1976
|
+
"image": "rp_qK1u-G_image",
|
|
1887
1977
|
"status": "rp_qK1u-G_status",
|
|
1888
|
-
"update": "rp_qK1u-G_update",
|
|
1889
|
-
"more": "rp_qK1u-G_more",
|
|
1890
|
-
"description": "rp_qK1u-G_description",
|
|
1891
1978
|
"updates": "rp_qK1u-G_updates",
|
|
1892
|
-
"
|
|
1893
|
-
"message": "rp_qK1u-G_message",
|
|
1894
|
-
"kind": "rp_qK1u-G_kind",
|
|
1895
|
-
"kinds": "rp_qK1u-G_kinds",
|
|
1896
|
-
"label": "rp_qK1u-G_label",
|
|
1979
|
+
"page": "rp_qK1u-G_page",
|
|
1897
1980
|
"card": "rp_qK1u-G_card",
|
|
1898
|
-
"
|
|
1899
|
-
"
|
|
1900
|
-
"
|
|
1901
|
-
"
|
|
1902
|
-
"
|
|
1903
|
-
"select": "rp_qK1u-G_select",
|
|
1904
|
-
"search": "rp_qK1u-G_search"
|
|
1981
|
+
"kind": "rp_qK1u-G_kind",
|
|
1982
|
+
"name": "rp_qK1u-G_name",
|
|
1983
|
+
"success": "rp_qK1u-G_success",
|
|
1984
|
+
"tags": "rp_qK1u-G_tags",
|
|
1985
|
+
"spacer": "rp_qK1u-G_spacer"
|
|
1905
1986
|
};
|
|
1906
1987
|
// src/client/pages/catalogue/ImportUrlDialog.tsx
|
|
1907
1988
|
/** 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. */
|
|
@@ -2105,19 +2186,19 @@ window.__ModuleLoader__.load({
|
|
|
2105
2186
|
}
|
|
2106
2187
|
tag$41.textContent = css$41;
|
|
2107
2188
|
var ImportSelection_module_css_default = {
|
|
2108
|
-
"help": "rp_Jx0l4q_help",
|
|
2109
2189
|
"meta": "rp_Jx0l4q_meta",
|
|
2110
|
-
"
|
|
2111
|
-
"full": "rp_Jx0l4q_full",
|
|
2112
|
-
"error": "rp_Jx0l4q_error",
|
|
2190
|
+
"sampling": "rp_Jx0l4q_sampling",
|
|
2113
2191
|
"note": "rp_Jx0l4q_note",
|
|
2114
|
-
"
|
|
2192
|
+
"error": "rp_Jx0l4q_error",
|
|
2193
|
+
"extra": "rp_Jx0l4q_extra",
|
|
2115
2194
|
"count": "rp_Jx0l4q_count",
|
|
2116
|
-
"bar": "rp_Jx0l4q_bar",
|
|
2117
2195
|
"text": "rp_Jx0l4q_text",
|
|
2118
|
-
"
|
|
2119
|
-
"
|
|
2120
|
-
"
|
|
2196
|
+
"help": "rp_Jx0l4q_help",
|
|
2197
|
+
"bar": "rp_Jx0l4q_bar",
|
|
2198
|
+
"body": "rp_Jx0l4q_body",
|
|
2199
|
+
"row": "rp_Jx0l4q_row",
|
|
2200
|
+
"full": "rp_Jx0l4q_full",
|
|
2201
|
+
"list": "rp_Jx0l4q_list"
|
|
2121
2202
|
};
|
|
2122
2203
|
// src/client/widgets/import-selection/ImportSelection.tsx
|
|
2123
2204
|
const messageOf$14 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -2125,11 +2206,12 @@ window.__ModuleLoader__.load({
|
|
|
2125
2206
|
* The choice of what an imported preset or lorebook brings: every item the file offers, each ticked or not, and the file's sampling. Only the ticked items reach the conversion.
|
|
2126
2207
|
* What the caller needs besides the choice (a name for the new library entry) goes in as `children`.
|
|
2127
2208
|
*/
|
|
2128
|
-
function ImportSelectionDialog({ preview, t, onConfirm, onClose, canConfirm = true, canVerbatim = preview.kind === "lorebook", children }) {
|
|
2209
|
+
function ImportSelectionDialog({ preview, t, interfaceLanguage, onConfirm, onClose, canConfirm = true, canVerbatim = preview.kind === "lorebook", children }) {
|
|
2129
2210
|
const asFile = () => new Set(preview.items.filter((item) => item.enabled).map((item) => item.id));
|
|
2130
2211
|
const [ticked, setTicked] = (0, react.useState)(asFile);
|
|
2131
2212
|
const [keepSampling, setKeepSampling] = (0, react.useState)(true);
|
|
2132
2213
|
const [verbatim, setVerbatim] = (0, react.useState)(false);
|
|
2214
|
+
const [language, setLanguage] = (0, react.useState)(() => primaryLanguage(interfaceLanguage));
|
|
2133
2215
|
const [knownBy, setKnownBy] = (0, react.useState)("master");
|
|
2134
2216
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
2135
2217
|
const [failure, setFailure] = (0, react.useState)();
|
|
@@ -2150,7 +2232,8 @@ window.__ModuleLoader__.load({
|
|
|
2150
2232
|
sampling: keepSampling
|
|
2151
2233
|
}, {
|
|
2152
2234
|
verbatim: verbatim && canVerbatim,
|
|
2153
|
-
knownBy
|
|
2235
|
+
knownBy,
|
|
2236
|
+
language
|
|
2154
2237
|
}).then(onClose, (problem) => {
|
|
2155
2238
|
setBusy(false);
|
|
2156
2239
|
setFailure(messageOf$14(problem));
|
|
@@ -2294,6 +2377,27 @@ window.__ModuleLoader__.load({
|
|
|
2294
2377
|
})
|
|
2295
2378
|
] })
|
|
2296
2379
|
}),
|
|
2380
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2381
|
+
className: ImportSelection_module_css_default.sampling,
|
|
2382
|
+
children: [
|
|
2383
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
2384
|
+
className: ImportSelection_module_css_default.meta,
|
|
2385
|
+
children: t("is_language")
|
|
2386
|
+
}),
|
|
2387
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
2388
|
+
value: language,
|
|
2389
|
+
onChange: setLanguage,
|
|
2390
|
+
interfaceLanguage,
|
|
2391
|
+
label: t("is_language"),
|
|
2392
|
+
disabled: busy || verbatim && canVerbatim,
|
|
2393
|
+
testId: "roleplay-import-language"
|
|
2394
|
+
}),
|
|
2395
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2396
|
+
className: ImportSelection_module_css_default.meta,
|
|
2397
|
+
children: t("is_languageHelp")
|
|
2398
|
+
})
|
|
2399
|
+
]
|
|
2400
|
+
}),
|
|
2297
2401
|
canVerbatim && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2298
2402
|
className: ImportSelection_module_css_default.sampling,
|
|
2299
2403
|
children: [
|
|
@@ -2471,7 +2575,7 @@ window.__ModuleLoader__.load({
|
|
|
2471
2575
|
}
|
|
2472
2576
|
openChat((await (selecting?.kind === "lorebook" ? importStagedLorebook : importStagedPreset)(choice, {
|
|
2473
2577
|
title: detail?.name ?? name,
|
|
2474
|
-
language:
|
|
2578
|
+
language: options.language
|
|
2475
2579
|
})).chatSessionId);
|
|
2476
2580
|
onClose();
|
|
2477
2581
|
};
|
|
@@ -2664,6 +2768,7 @@ window.__ModuleLoader__.load({
|
|
|
2664
2768
|
}), selecting !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportSelectionDialog, {
|
|
2665
2769
|
preview: selecting,
|
|
2666
2770
|
t,
|
|
2771
|
+
interfaceLanguage: t("language"),
|
|
2667
2772
|
canVerbatim: true,
|
|
2668
2773
|
onClose: () => {
|
|
2669
2774
|
setSelecting(void 0);
|
|
@@ -2787,12 +2892,13 @@ window.__ModuleLoader__.load({
|
|
|
2787
2892
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportCard, {
|
|
2788
2893
|
t,
|
|
2789
2894
|
preview: reviewing.preview,
|
|
2790
|
-
|
|
2895
|
+
language: t("language"),
|
|
2896
|
+
start: (choices, update, language) => convertStaged({
|
|
2791
2897
|
source: reviewing.source,
|
|
2792
2898
|
versionId: reviewing.versionId,
|
|
2793
2899
|
id: reviewing.preview.id,
|
|
2794
2900
|
choices,
|
|
2795
|
-
language
|
|
2901
|
+
language,
|
|
2796
2902
|
...update === void 0 ? {} : { update }
|
|
2797
2903
|
}),
|
|
2798
2904
|
discard: () => discardCard(reviewing.preview.id),
|
|
@@ -3120,6 +3226,8 @@ window.__ModuleLoader__.load({
|
|
|
3120
3226
|
// src/client/widgets/import-card/locales.ts
|
|
3121
3227
|
const dictionaries$26 = {
|
|
3122
3228
|
en: {
|
|
3229
|
+
ic_promptLanguage: "Language of the prompts",
|
|
3230
|
+
ic_promptLanguageHelp: "The language the import assistant works in and writes the world's prompts in. It starts as your interface language. English and Chinese have prompts of their own; any other language uses the English ones and asks the models to write in it.",
|
|
3123
3231
|
ic_title: "Import a character card",
|
|
3124
3232
|
ic_updateTitle: "Update a world from a newer card",
|
|
3125
3233
|
ic_target: "Update a world, or import a new one",
|
|
@@ -3171,6 +3279,8 @@ window.__ModuleLoader__.load({
|
|
|
3171
3279
|
ic_empty: "(empty)"
|
|
3172
3280
|
},
|
|
3173
3281
|
zh: {
|
|
3282
|
+
ic_promptLanguage: "提示词语言",
|
|
3283
|
+
ic_promptLanguageHelp: "导入助手使用的语言,也是它为世界撰写提示词时所用的语言。默认是界面语言。英文和中文有专属提示词;其他语言使用英文提示词,并要求模型用该语言写作。",
|
|
3174
3284
|
ic_title: "导入角色卡",
|
|
3175
3285
|
ic_updateTitle: "用新版角色卡更新世界",
|
|
3176
3286
|
ic_target: "更新已有世界,或导入为新世界",
|
|
@@ -3222,6 +3332,8 @@ window.__ModuleLoader__.load({
|
|
|
3222
3332
|
ic_empty: "(空)"
|
|
3223
3333
|
},
|
|
3224
3334
|
ja: {
|
|
3335
|
+
ic_promptLanguage: "プロンプトの言語",
|
|
3336
|
+
ic_promptLanguageHelp: "読み込みアシスタントが使い、ワールドのプロンプトを書く言語です。初期値はインターフェースの言語です。英語と中国語には専用のプロンプトがあり、それ以外の言語では英語のプロンプトを使って、その言語で書くようモデルに求めます。",
|
|
3225
3337
|
ic_title: "キャラクターカードを読み込む",
|
|
3226
3338
|
ic_updateTitle: "新しいカードでワールドを更新",
|
|
3227
3339
|
ic_target: "ワールドを更新するか、新規読み込み",
|
|
@@ -3273,6 +3385,8 @@ window.__ModuleLoader__.load({
|
|
|
3273
3385
|
ic_empty: "(空)"
|
|
3274
3386
|
},
|
|
3275
3387
|
es: {
|
|
3388
|
+
ic_promptLanguage: "Idioma de las instrucciones",
|
|
3389
|
+
ic_promptLanguageHelp: "El idioma en que trabaja el asistente de importación y en que escribe las instrucciones del mundo. Empieza siendo el de tu interfaz. El inglés y el chino tienen instrucciones propias; cualquier otro idioma usa las inglesas y pide a los modelos que escriban en él.",
|
|
3276
3390
|
ic_title: "Importar una tarjeta de personaje",
|
|
3277
3391
|
ic_updateTitle: "Actualizar un mundo con una tarjeta nueva",
|
|
3278
3392
|
ic_target: "Actualizar un mundo o importar uno nuevo",
|
|
@@ -3324,6 +3438,8 @@ window.__ModuleLoader__.load({
|
|
|
3324
3438
|
ic_empty: "(vacío)"
|
|
3325
3439
|
},
|
|
3326
3440
|
fr: {
|
|
3441
|
+
ic_promptLanguage: "Langue des instructions",
|
|
3442
|
+
ic_promptLanguageHelp: "La langue dans laquelle l’assistant d’import travaille et écrit les instructions du monde. Par défaut, celle de votre interface. L’anglais et le chinois ont leurs propres instructions ; toute autre langue utilise les anglaises et demande aux modèles d’écrire dans cette langue.",
|
|
3327
3443
|
ic_title: "Importer une carte de personnage",
|
|
3328
3444
|
ic_updateTitle: "Mettre un monde à jour avec une carte récente",
|
|
3329
3445
|
ic_target: "Mettre un monde à jour ou en importer un nouveau",
|
|
@@ -3375,6 +3491,8 @@ window.__ModuleLoader__.load({
|
|
|
3375
3491
|
ic_empty: "(vide)"
|
|
3376
3492
|
},
|
|
3377
3493
|
de: {
|
|
3494
|
+
ic_promptLanguage: "Sprache der Anweisungen",
|
|
3495
|
+
ic_promptLanguageHelp: "Die Sprache, in der der Import-Assistent arbeitet und die Anweisungen der Welt schreibt. Voreingestellt ist die Sprache Ihrer Oberfläche. Englisch und Chinesisch haben eigene Anweisungen; jede andere Sprache nutzt die englischen und bittet die Modelle, darin zu schreiben.",
|
|
3378
3496
|
ic_title: "Charakterkarte importieren",
|
|
3379
3497
|
ic_updateTitle: "Welt mit neuerer Karte aktualisieren",
|
|
3380
3498
|
ic_target: "Eine Welt aktualisieren oder neu importieren",
|
|
@@ -3426,6 +3544,8 @@ window.__ModuleLoader__.load({
|
|
|
3426
3544
|
ic_empty: "(leer)"
|
|
3427
3545
|
},
|
|
3428
3546
|
ru: {
|
|
3547
|
+
ic_promptLanguage: "Язык инструкций",
|
|
3548
|
+
ic_promptLanguageHelp: "Язык, на котором работает помощник импорта и пишет инструкции мира. По умолчанию — язык интерфейса. У английского и китайского есть свои инструкции; для остальных берутся английские, а модели просят писать на этом языке.",
|
|
3429
3549
|
ic_title: "Импорт карточки персонажа",
|
|
3430
3550
|
ic_updateTitle: "Обновление мира по новой карточке",
|
|
3431
3551
|
ic_target: "Обновить мир или импортировать новый",
|
|
@@ -3477,6 +3597,8 @@ window.__ModuleLoader__.load({
|
|
|
3477
3597
|
ic_empty: "(пусто)"
|
|
3478
3598
|
},
|
|
3479
3599
|
pt: {
|
|
3600
|
+
ic_promptLanguage: "Idioma das instruções",
|
|
3601
|
+
ic_promptLanguageHelp: "O idioma em que o assistente de importação trabalha e escreve as instruções do mundo. Começa como o da sua interface. O inglês e o chinês têm instruções próprias; qualquer outro idioma usa as em inglês e pede aos modelos que escrevam nele.",
|
|
3480
3602
|
ic_title: "Importar um cartão de personagem",
|
|
3481
3603
|
ic_updateTitle: "Atualizar um mundo com um cartão mais recente",
|
|
3482
3604
|
ic_target: "Atualizar um mundo ou importar um novo",
|
|
@@ -3568,6 +3690,8 @@ window.__ModuleLoader__.load({
|
|
|
3568
3690
|
is_import: "Import",
|
|
3569
3691
|
is_importing: "Importing…",
|
|
3570
3692
|
is_cancel: "Cancel",
|
|
3693
|
+
is_language: "Language of the prompts",
|
|
3694
|
+
is_languageHelp: "The language the assistant works in and writes the prompts in. It starts as your interface language. English and Chinese have prompts of their own; any other language uses the English ones and asks the models to write in it. A direct import (without the assistant) ignores it.",
|
|
3571
3695
|
is_close: "Close",
|
|
3572
3696
|
is_failed: "Could not import: {message}"
|
|
3573
3697
|
},
|
|
@@ -3609,6 +3733,8 @@ window.__ModuleLoader__.load({
|
|
|
3609
3733
|
is_import: "导入",
|
|
3610
3734
|
is_importing: "正在导入…",
|
|
3611
3735
|
is_cancel: "取消",
|
|
3736
|
+
is_language: "提示词语言",
|
|
3737
|
+
is_languageHelp: "助手使用的语言,也是它撰写提示词时所用的语言。默认是界面语言。英文和中文有专属提示词;其他语言使用英文提示词,并要求模型用该语言写作。不经助手的直接导入不使用此项。",
|
|
3612
3738
|
is_close: "关闭",
|
|
3613
3739
|
is_failed: "无法导入:{message}"
|
|
3614
3740
|
},
|
|
@@ -3650,6 +3776,8 @@ window.__ModuleLoader__.load({
|
|
|
3650
3776
|
is_import: "読み込む",
|
|
3651
3777
|
is_importing: "読み込み中…",
|
|
3652
3778
|
is_cancel: "キャンセル",
|
|
3779
|
+
is_language: "プロンプトの言語",
|
|
3780
|
+
is_languageHelp: "アシスタントが使い、プロンプトを書く言語です。初期値はインターフェースの言語です。英語と中国語には専用のプロンプトがあり、それ以外の言語では英語のプロンプトを使って、その言語で書くようモデルに求めます。アシスタントを使わない直接の読み込みでは使われません。",
|
|
3653
3781
|
is_close: "閉じる",
|
|
3654
3782
|
is_failed: "読み込めませんでした:{message}"
|
|
3655
3783
|
},
|
|
@@ -3691,6 +3819,8 @@ window.__ModuleLoader__.load({
|
|
|
3691
3819
|
is_import: "Importar",
|
|
3692
3820
|
is_importing: "Importando…",
|
|
3693
3821
|
is_cancel: "Cancelar",
|
|
3822
|
+
is_language: "Idioma de las instrucciones",
|
|
3823
|
+
is_languageHelp: "El idioma en que trabaja el asistente y en que escribe las instrucciones. Empieza siendo el de tu interfaz. El inglés y el chino tienen instrucciones propias; cualquier otro idioma usa las inglesas y pide a los modelos que escriban en él. Una importación directa (sin asistente) no lo usa.",
|
|
3694
3824
|
is_close: "Cerrar",
|
|
3695
3825
|
is_failed: "No se ha podido importar: {message}"
|
|
3696
3826
|
},
|
|
@@ -3732,6 +3862,8 @@ window.__ModuleLoader__.load({
|
|
|
3732
3862
|
is_import: "Importer",
|
|
3733
3863
|
is_importing: "Importation…",
|
|
3734
3864
|
is_cancel: "Annuler",
|
|
3865
|
+
is_language: "Langue des instructions",
|
|
3866
|
+
is_languageHelp: "La langue dans laquelle l’assistant travaille et écrit les instructions. Par défaut, celle de votre interface. L’anglais et le chinois ont leurs propres instructions ; toute autre langue utilise les anglaises et demande aux modèles d’écrire dans cette langue. Un import direct (sans assistant) l’ignore.",
|
|
3735
3867
|
is_close: "Fermer",
|
|
3736
3868
|
is_failed: "Impossible d’importer : {message}"
|
|
3737
3869
|
},
|
|
@@ -3773,6 +3905,8 @@ window.__ModuleLoader__.load({
|
|
|
3773
3905
|
is_import: "Importieren",
|
|
3774
3906
|
is_importing: "Wird importiert…",
|
|
3775
3907
|
is_cancel: "Abbrechen",
|
|
3908
|
+
is_language: "Sprache der Anweisungen",
|
|
3909
|
+
is_languageHelp: "Die Sprache, in der der Assistent arbeitet und die Anweisungen schreibt. Voreingestellt ist die Sprache Ihrer Oberfläche. Englisch und Chinesisch haben eigene Anweisungen; jede andere Sprache nutzt die englischen und bittet die Modelle, darin zu schreiben. Ein direkter Import (ohne Assistent) ignoriert sie.",
|
|
3776
3910
|
is_close: "Schließen",
|
|
3777
3911
|
is_failed: "Import fehlgeschlagen: {message}"
|
|
3778
3912
|
},
|
|
@@ -3814,6 +3948,8 @@ window.__ModuleLoader__.load({
|
|
|
3814
3948
|
is_import: "Импортировать",
|
|
3815
3949
|
is_importing: "Импорт…",
|
|
3816
3950
|
is_cancel: "Отмена",
|
|
3951
|
+
is_language: "Язык инструкций",
|
|
3952
|
+
is_languageHelp: "Язык, на котором работает помощник и пишет инструкции. По умолчанию — язык интерфейса. У английского и китайского есть свои инструкции; для остальных берутся английские, а модели просят писать на этом языке. Прямой импорт (без помощника) его не использует.",
|
|
3817
3953
|
is_close: "Закрыть",
|
|
3818
3954
|
is_failed: "Не удалось импортировать: {message}"
|
|
3819
3955
|
},
|
|
@@ -3855,6 +3991,8 @@ window.__ModuleLoader__.load({
|
|
|
3855
3991
|
is_import: "Importar",
|
|
3856
3992
|
is_importing: "A importar…",
|
|
3857
3993
|
is_cancel: "Cancelar",
|
|
3994
|
+
is_language: "Idioma das instruções",
|
|
3995
|
+
is_languageHelp: "O idioma em que o assistente trabalha e escreve as instruções. Começa como o da sua interface. O inglês e o chinês têm instruções próprias; qualquer outro idioma usa as em inglês e pede aos modelos que escrevam nele. Uma importação direta (sem assistente) não o usa.",
|
|
3858
3996
|
is_close: "Fechar",
|
|
3859
3997
|
is_failed: "Não foi possível importar: {message}"
|
|
3860
3998
|
}
|
|
@@ -5177,46 +5315,46 @@ window.__ModuleLoader__.load({
|
|
|
5177
5315
|
}
|
|
5178
5316
|
tag$40.textContent = css$40;
|
|
5179
5317
|
var CharactersPanel_module_css_default = {
|
|
5180
|
-
"
|
|
5318
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
5319
|
+
"select": "rp_5ZMIxq_select",
|
|
5320
|
+
"area": "rp_5ZMIxq_area",
|
|
5321
|
+
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
5322
|
+
"questionTitle": "rp_5ZMIxq_questionTitle",
|
|
5323
|
+
"field": "rp_5ZMIxq_field",
|
|
5324
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
5181
5325
|
"tabs": "rp_5ZMIxq_tabs",
|
|
5182
|
-
"
|
|
5326
|
+
"barText": "rp_5ZMIxq_barText",
|
|
5327
|
+
"row": "rp_5ZMIxq_row",
|
|
5328
|
+
"panel": "rp_5ZMIxq_panel",
|
|
5329
|
+
"placeholder": "rp_5ZMIxq_placeholder",
|
|
5330
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5331
|
+
"itemActions": "rp_5ZMIxq_itemActions",
|
|
5332
|
+
"empty": "rp_5ZMIxq_empty",
|
|
5333
|
+
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5334
|
+
"missing": "rp_5ZMIxq_missing",
|
|
5183
5335
|
"questionActions": "rp_5ZMIxq_questionActions",
|
|
5184
|
-
"bar": "rp_5ZMIxq_bar",
|
|
5185
|
-
"initial": "rp_5ZMIxq_initial",
|
|
5186
|
-
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
5187
5336
|
"label": "rp_5ZMIxq_label",
|
|
5337
|
+
"meta": "rp_5ZMIxq_meta",
|
|
5338
|
+
"section": "rp_5ZMIxq_section",
|
|
5188
5339
|
"help": "rp_5ZMIxq_help",
|
|
5189
|
-
"head": "rp_5ZMIxq_head",
|
|
5190
|
-
"questionTitle": "rp_5ZMIxq_questionTitle",
|
|
5191
|
-
"optionTitle": "rp_5ZMIxq_optionTitle",
|
|
5192
|
-
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5193
|
-
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
5194
|
-
"missing": "rp_5ZMIxq_missing",
|
|
5195
|
-
"sheet": "rp_5ZMIxq_sheet",
|
|
5196
|
-
"body": "rp_5ZMIxq_body",
|
|
5197
|
-
"field": "rp_5ZMIxq_field",
|
|
5198
5340
|
"goal": "rp_5ZMIxq_goal",
|
|
5199
|
-
"empty": "rp_5ZMIxq_empty",
|
|
5200
|
-
"placeholder": "rp_5ZMIxq_placeholder",
|
|
5201
|
-
"area": "rp_5ZMIxq_area",
|
|
5202
|
-
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5203
|
-
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
5204
|
-
"barText": "rp_5ZMIxq_barText",
|
|
5205
|
-
"question": "rp_5ZMIxq_question",
|
|
5206
|
-
"itemActions": "rp_5ZMIxq_itemActions",
|
|
5207
|
-
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5208
|
-
"error": "rp_5ZMIxq_error",
|
|
5209
5341
|
"tab": "rp_5ZMIxq_tab",
|
|
5210
|
-
"
|
|
5211
|
-
"
|
|
5212
|
-
"portrait": "rp_5ZMIxq_portrait",
|
|
5213
|
-
"section": "rp_5ZMIxq_section",
|
|
5214
|
-
"panel": "rp_5ZMIxq_panel",
|
|
5215
|
-
"row": "rp_5ZMIxq_row",
|
|
5216
|
-
"tabOn": "rp_5ZMIxq_tabOn",
|
|
5217
|
-
"portraitError": "rp_5ZMIxq_portraitError",
|
|
5342
|
+
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
5343
|
+
"body": "rp_5ZMIxq_body",
|
|
5218
5344
|
"wide": "rp_5ZMIxq_wide",
|
|
5219
|
-
"
|
|
5345
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
5346
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
5347
|
+
"question": "rp_5ZMIxq_question",
|
|
5348
|
+
"optionTitle": "rp_5ZMIxq_optionTitle",
|
|
5349
|
+
"grid": "rp_5ZMIxq_grid",
|
|
5350
|
+
"error": "rp_5ZMIxq_error",
|
|
5351
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5352
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
5353
|
+
"initial": "rp_5ZMIxq_initial",
|
|
5354
|
+
"bar": "rp_5ZMIxq_bar",
|
|
5355
|
+
"head": "rp_5ZMIxq_head",
|
|
5356
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
5357
|
+
"sheet": "rp_5ZMIxq_sheet"
|
|
5220
5358
|
};
|
|
5221
5359
|
// src/client/world-editor/EditorTabs.tsx
|
|
5222
5360
|
/** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
|
|
@@ -6935,39 +7073,39 @@ window.__ModuleLoader__.load({
|
|
|
6935
7073
|
}
|
|
6936
7074
|
tag$39.textContent = css$39;
|
|
6937
7075
|
var RelationsPanel_module_css_default = {
|
|
6938
|
-
"filter": "rp_7pEHTW_filter",
|
|
6939
|
-
"perspective": "rp_7pEHTW_perspective",
|
|
6940
|
-
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
6941
|
-
"node_item": "rp_7pEHTW_node_item",
|
|
6942
|
-
"toolbar": "rp_7pEHTW_toolbar",
|
|
6943
|
-
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
6944
|
-
"space": "rp_7pEHTW_space",
|
|
6945
|
-
"edge": "rp_7pEHTW_edge",
|
|
6946
|
-
"node_faction": "rp_7pEHTW_node_faction",
|
|
6947
|
-
"inspector": "rp_7pEHTW_inspector",
|
|
6948
|
-
"actions": "rp_7pEHTW_actions",
|
|
6949
|
-
"node": "rp_7pEHTW_node",
|
|
6950
|
-
"notice": "rp_7pEHTW_notice",
|
|
6951
7076
|
"metrics": "rp_7pEHTW_metrics",
|
|
7077
|
+
"notice": "rp_7pEHTW_notice",
|
|
6952
7078
|
"entities": "rp_7pEHTW_entities",
|
|
6953
|
-
"
|
|
6954
|
-
"wide": "rp_7pEHTW_wide",
|
|
6955
|
-
"panel": "rp_7pEHTW_panel",
|
|
6956
|
-
"filterOn": "rp_7pEHTW_filterOn",
|
|
6957
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
6958
|
-
"workspace": "rp_7pEHTW_workspace",
|
|
6959
|
-
"status": "rp_7pEHTW_status",
|
|
7079
|
+
"space": "rp_7pEHTW_space",
|
|
6960
7080
|
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
6961
|
-
"
|
|
7081
|
+
"filterOn": "rp_7pEHTW_filterOn",
|
|
7082
|
+
"toolbar": "rp_7pEHTW_toolbar",
|
|
6962
7083
|
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
7084
|
+
"node_character": "rp_7pEHTW_node_character",
|
|
6963
7085
|
"error": "rp_7pEHTW_error",
|
|
6964
|
-
"
|
|
7086
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
7087
|
+
"wide": "rp_7pEHTW_wide",
|
|
7088
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
7089
|
+
"edge": "rp_7pEHTW_edge",
|
|
6965
7090
|
"graph": "rp_7pEHTW_graph",
|
|
6966
|
-
"
|
|
6967
|
-
"
|
|
7091
|
+
"head": "rp_7pEHTW_head",
|
|
7092
|
+
"perspective": "rp_7pEHTW_perspective",
|
|
7093
|
+
"node_faction": "rp_7pEHTW_node_faction",
|
|
6968
7094
|
"list": "rp_7pEHTW_list",
|
|
7095
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
7096
|
+
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
7097
|
+
"form": "rp_7pEHTW_form",
|
|
7098
|
+
"check": "rp_7pEHTW_check",
|
|
7099
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
7100
|
+
"filter": "rp_7pEHTW_filter",
|
|
7101
|
+
"status": "rp_7pEHTW_status",
|
|
7102
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
7103
|
+
"panel": "rp_7pEHTW_panel",
|
|
7104
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
6969
7105
|
"empty": "rp_7pEHTW_empty",
|
|
6970
|
-
"
|
|
7106
|
+
"actions": "rp_7pEHTW_actions",
|
|
7107
|
+
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
7108
|
+
"node": "rp_7pEHTW_node"
|
|
6971
7109
|
};
|
|
6972
7110
|
// src/client/world-editor/RelationsPanel.tsx
|
|
6973
7111
|
const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
|
|
@@ -8337,11 +8475,11 @@ window.__ModuleLoader__.load({
|
|
|
8337
8475
|
tag$38.textContent = css$38;
|
|
8338
8476
|
var PackFrame_module_css_default = {
|
|
8339
8477
|
"hud": "rp_h_sbFq_hud",
|
|
8340
|
-
"tab": "rp_h_sbFq_tab",
|
|
8341
8478
|
"frame": "rp_h_sbFq_frame",
|
|
8342
|
-
"
|
|
8479
|
+
"problems": "rp_h_sbFq_problems",
|
|
8480
|
+
"tab": "rp_h_sbFq_tab",
|
|
8343
8481
|
"message": "rp_h_sbFq_message",
|
|
8344
|
-
"
|
|
8482
|
+
"fill": "rp_h_sbFq_fill"
|
|
8345
8483
|
};
|
|
8346
8484
|
// src/client/widgets/pack-frame/theme.ts
|
|
8347
8485
|
/** The colours of DSH a surface is given, so that it looks right in light and dark. */
|
|
@@ -8602,13 +8740,13 @@ window.__ModuleLoader__.load({
|
|
|
8602
8740
|
}
|
|
8603
8741
|
tag$37.textContent = css$37;
|
|
8604
8742
|
var PacksPanel_module_css_default = {
|
|
8743
|
+
"note": "rp_FLaP7q_note",
|
|
8744
|
+
"group": "rp_FLaP7q_group",
|
|
8745
|
+
"log": "rp_FLaP7q_log",
|
|
8605
8746
|
"stage": "rp_FLaP7q_stage",
|
|
8606
|
-
"stageTall": "rp_FLaP7q_stageTall",
|
|
8607
8747
|
"controls": "rp_FLaP7q_controls",
|
|
8608
|
-
"
|
|
8609
|
-
"files": "rp_FLaP7q_files"
|
|
8610
|
-
"note": "rp_FLaP7q_note",
|
|
8611
|
-
"log": "rp_FLaP7q_log"
|
|
8748
|
+
"stageTall": "rp_FLaP7q_stageTall",
|
|
8749
|
+
"files": "rp_FLaP7q_files"
|
|
8612
8750
|
};
|
|
8613
8751
|
// src/client/world-editor/PacksPanel.tsx
|
|
8614
8752
|
const WIDTHS = {
|
|
@@ -9703,12 +9841,12 @@ window.__ModuleLoader__.load({
|
|
|
9703
9841
|
}
|
|
9704
9842
|
tag$36.textContent = css$36;
|
|
9705
9843
|
var SamplingFields_module_css_default = {
|
|
9706
|
-
"
|
|
9844
|
+
"label": "rp_9vxYSG_label",
|
|
9707
9845
|
"root": "rp_9vxYSG_root",
|
|
9708
|
-
"help": "rp_9vxYSG_help",
|
|
9709
|
-
"grid": "rp_9vxYSG_grid",
|
|
9710
9846
|
"field": "rp_9vxYSG_field",
|
|
9711
|
-
"
|
|
9847
|
+
"input": "rp_9vxYSG_input",
|
|
9848
|
+
"help": "rp_9vxYSG_help",
|
|
9849
|
+
"grid": "rp_9vxYSG_grid"
|
|
9712
9850
|
};
|
|
9713
9851
|
// src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
9714
9852
|
const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
|
|
@@ -10102,6 +10240,7 @@ window.__ModuleLoader__.load({
|
|
|
10102
10240
|
timeZone: info.timeZone,
|
|
10103
10241
|
startingTime: info.startingTime,
|
|
10104
10242
|
version: info.version,
|
|
10243
|
+
language: info.language,
|
|
10105
10244
|
autonomy: info.autonomy,
|
|
10106
10245
|
preset: info.preset,
|
|
10107
10246
|
lorebooks: info.lorebooks,
|
|
@@ -10123,6 +10262,7 @@ window.__ModuleLoader__.load({
|
|
|
10123
10262
|
"timeZone",
|
|
10124
10263
|
"startingTime",
|
|
10125
10264
|
"version",
|
|
10265
|
+
"language",
|
|
10126
10266
|
"preset"
|
|
10127
10267
|
]) if (draft[key].trim() !== saved[key].trim()) edit[key] = draft[key];
|
|
10128
10268
|
if (draft.autonomy !== saved.autonomy) edit["autonomy"] = draft.autonomy;
|
|
@@ -10433,6 +10573,7 @@ window.__ModuleLoader__.load({
|
|
|
10433
10573
|
field("authorName", "infoAuthor"),
|
|
10434
10574
|
field("version", "infoVersion", "infoVersionHelp", { placeholder: "1.0" }),
|
|
10435
10575
|
field("authorUrl", "infoAuthorUrl", void 0, { placeholder: "https://" }),
|
|
10576
|
+
field("language", "infoLanguage", "infoLanguageHelp", { placeholder: "en, zh, ja" }),
|
|
10436
10577
|
field("timeZone", "infoTimeZone", "infoTimeZoneHelp", { placeholder: "Europe/London" }),
|
|
10437
10578
|
field("startingTime", "infoStartingTime", "infoStartingTimeHelp", { placeholder: "1912-04-14T23:40:00" }),
|
|
10438
10579
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
@@ -11511,16 +11652,16 @@ window.__ModuleLoader__.load({
|
|
|
11511
11652
|
}
|
|
11512
11653
|
tag$35.textContent = css$35;
|
|
11513
11654
|
var ToolSwitches_module_css_default = {
|
|
11514
|
-
"agentName": "rp_CjoFLq_agentName",
|
|
11515
|
-
"tool": "rp_CjoFLq_tool",
|
|
11516
|
-
"hint": "rp_CjoFLq_hint",
|
|
11517
|
-
"error": "rp_CjoFLq_error",
|
|
11518
11655
|
"agent": "rp_CjoFLq_agent",
|
|
11519
|
-
"title": "rp_CjoFLq_title",
|
|
11520
|
-
"help": "rp_CjoFLq_help",
|
|
11521
|
-
"toolText": "rp_CjoFLq_toolText",
|
|
11522
11656
|
"root": "rp_CjoFLq_root",
|
|
11657
|
+
"toolText": "rp_CjoFLq_toolText",
|
|
11658
|
+
"title": "rp_CjoFLq_title",
|
|
11659
|
+
"error": "rp_CjoFLq_error",
|
|
11660
|
+
"hint": "rp_CjoFLq_hint",
|
|
11523
11661
|
"default": "rp_CjoFLq_default",
|
|
11662
|
+
"tool": "rp_CjoFLq_tool",
|
|
11663
|
+
"agentName": "rp_CjoFLq_agentName",
|
|
11664
|
+
"help": "rp_CjoFLq_help",
|
|
11524
11665
|
"external": "rp_CjoFLq_external"
|
|
11525
11666
|
};
|
|
11526
11667
|
// src/client/widgets/tool-switches/ToolSwitches.tsx
|
|
@@ -12793,35 +12934,35 @@ window.__ModuleLoader__.load({
|
|
|
12793
12934
|
}
|
|
12794
12935
|
tag$33.textContent = css$33;
|
|
12795
12936
|
var GalleryView_module_css_default = {
|
|
12796
|
-
"editArea": "rp_9pSHmG_editArea",
|
|
12797
|
-
"thumb": "rp_9pSHmG_thumb",
|
|
12798
|
-
"large": "rp_9pSHmG_large",
|
|
12799
|
-
"page": "rp_9pSHmG_page",
|
|
12800
|
-
"actions": "rp_9pSHmG_actions",
|
|
12801
|
-
"editLabel": "rp_9pSHmG_editLabel",
|
|
12802
|
-
"open": "rp_9pSHmG_open",
|
|
12803
12937
|
"message": "rp_9pSHmG_message",
|
|
12804
|
-
"
|
|
12805
|
-
"
|
|
12806
|
-
"image": "rp_9pSHmG_image",
|
|
12938
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
12939
|
+
"error": "rp_9pSHmG_error",
|
|
12807
12940
|
"count": "rp_9pSHmG_count",
|
|
12941
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
12942
|
+
"open": "rp_9pSHmG_open",
|
|
12943
|
+
"editArea": "rp_9pSHmG_editArea",
|
|
12808
12944
|
"caption": "rp_9pSHmG_caption",
|
|
12809
|
-
"
|
|
12945
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
12946
|
+
"thumb": "rp_9pSHmG_thumb",
|
|
12947
|
+
"facts": "rp_9pSHmG_facts",
|
|
12948
|
+
"pre": "rp_9pSHmG_pre",
|
|
12949
|
+
"tags": "rp_9pSHmG_tags",
|
|
12950
|
+
"note": "rp_9pSHmG_note",
|
|
12810
12951
|
"reusable": "rp_9pSHmG_reusable",
|
|
12952
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
12811
12953
|
"edit": "rp_9pSHmG_edit",
|
|
12812
|
-
"
|
|
12813
|
-
"
|
|
12954
|
+
"grid": "rp_9pSHmG_grid",
|
|
12955
|
+
"image": "rp_9pSHmG_image",
|
|
12956
|
+
"editHelp": "rp_9pSHmG_editHelp",
|
|
12957
|
+
"editField": "rp_9pSHmG_editField",
|
|
12958
|
+
"cell": "rp_9pSHmG_cell",
|
|
12814
12959
|
"detail": "rp_9pSHmG_detail",
|
|
12815
|
-
"
|
|
12816
|
-
"
|
|
12960
|
+
"page": "rp_9pSHmG_page",
|
|
12961
|
+
"large": "rp_9pSHmG_large",
|
|
12962
|
+
"actions": "rp_9pSHmG_actions",
|
|
12963
|
+
"select": "rp_9pSHmG_select",
|
|
12817
12964
|
"editInput": "rp_9pSHmG_editInput",
|
|
12818
|
-
"
|
|
12819
|
-
"editButton": "rp_9pSHmG_editButton",
|
|
12820
|
-
"status": "rp_9pSHmG_status",
|
|
12821
|
-
"grid": "rp_9pSHmG_grid",
|
|
12822
|
-
"tags": "rp_9pSHmG_tags",
|
|
12823
|
-
"error": "rp_9pSHmG_error",
|
|
12824
|
-
"statusError": "rp_9pSHmG_statusError"
|
|
12965
|
+
"status": "rp_9pSHmG_status"
|
|
12825
12966
|
};
|
|
12826
12967
|
// src/client/widgets/gallery-view/GalleryView.tsx
|
|
12827
12968
|
/** How often the list is read again while pictures are waiting to be described. */
|
|
@@ -13165,12 +13306,12 @@ window.__ModuleLoader__.load({
|
|
|
13165
13306
|
tag$32.textContent = css$32;
|
|
13166
13307
|
var WorldEditor_module_css_default = {
|
|
13167
13308
|
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
13168
|
-
"
|
|
13309
|
+
"view": "rp__swA3a_view",
|
|
13310
|
+
"content": "rp__swA3a_content",
|
|
13169
13311
|
"warning": "rp__swA3a_warning",
|
|
13170
|
-
"drawerItem": "rp__swA3a_drawerItem",
|
|
13171
13312
|
"drawer": "rp__swA3a_drawer",
|
|
13172
|
-
"
|
|
13173
|
-
"
|
|
13313
|
+
"drawerItem": "rp__swA3a_drawerItem",
|
|
13314
|
+
"message": "rp__swA3a_message"
|
|
13174
13315
|
};
|
|
13175
13316
|
// src/client/world-editor/WorldEditor.tsx
|
|
13176
13317
|
const SECTIONS = [
|
|
@@ -13581,27 +13722,27 @@ window.__ModuleLoader__.load({
|
|
|
13581
13722
|
}
|
|
13582
13723
|
tag$31.textContent = css$31;
|
|
13583
13724
|
var AvatarsPage_module_css_default = {
|
|
13584
|
-
"
|
|
13585
|
-
"
|
|
13586
|
-
"card": "rp_pQOzEG_card",
|
|
13587
|
-
"portrait": "rp_pQOzEG_portrait",
|
|
13588
|
-
"editBody": "rp_pQOzEG_editBody",
|
|
13589
|
-
"placeholder": "rp_pQOzEG_placeholder",
|
|
13725
|
+
"editHeader": "rp_pQOzEG_editHeader",
|
|
13726
|
+
"text": "rp_pQOzEG_text",
|
|
13590
13727
|
"actions": "rp_pQOzEG_actions",
|
|
13591
13728
|
"viewport": "rp_pQOzEG_viewport",
|
|
13592
|
-
"
|
|
13593
|
-
"editTitle": "rp_pQOzEG_editTitle",
|
|
13594
|
-
"open": "rp_pQOzEG_open",
|
|
13729
|
+
"page": "rp_pQOzEG_page",
|
|
13595
13730
|
"summary": "rp_pQOzEG_summary",
|
|
13731
|
+
"portrait": "rp_pQOzEG_portrait",
|
|
13732
|
+
"placeholder": "rp_pQOzEG_placeholder",
|
|
13733
|
+
"error": "rp_pQOzEG_error",
|
|
13734
|
+
"editTitle": "rp_pQOzEG_editTitle",
|
|
13735
|
+
"editBody": "rp_pQOzEG_editBody",
|
|
13736
|
+
"message": "rp_pQOzEG_message",
|
|
13737
|
+
"form": "rp_pQOzEG_form",
|
|
13738
|
+
"grid": "rp_pQOzEG_grid",
|
|
13739
|
+
"label": "rp_pQOzEG_label",
|
|
13740
|
+
"card": "rp_pQOzEG_card",
|
|
13741
|
+
"count": "rp_pQOzEG_count",
|
|
13596
13742
|
"toolbar": "rp_pQOzEG_toolbar",
|
|
13597
13743
|
"name": "rp_pQOzEG_name",
|
|
13598
|
-
"grid": "rp_pQOzEG_grid",
|
|
13599
13744
|
"field": "rp_pQOzEG_field",
|
|
13600
|
-
"
|
|
13601
|
-
"error": "rp_pQOzEG_error",
|
|
13602
|
-
"editHeader": "rp_pQOzEG_editHeader",
|
|
13603
|
-
"form": "rp_pQOzEG_form",
|
|
13604
|
-
"label": "rp_pQOzEG_label"
|
|
13745
|
+
"open": "rp_pQOzEG_open"
|
|
13605
13746
|
};
|
|
13606
13747
|
// src/client/pages/avatars/AvatarsPage.tsx
|
|
13607
13748
|
const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
|
|
@@ -16094,6 +16235,8 @@ window.__ModuleLoader__.load({
|
|
|
16094
16235
|
infoLorebooksHelp: "Background knowledge from your library that a new story of this world starts with; the player can change the choice when starting.",
|
|
16095
16236
|
infoLorebookMissing: "{name} (not in your library)",
|
|
16096
16237
|
infoSampling: "Suggested sampling",
|
|
16238
|
+
infoLanguage: "Story language",
|
|
16239
|
+
infoLanguageHelp: "The language new stories of this world are played in (a tag such as en, zh or ja), whatever language your interface uses. Leave empty to follow your interface. A language without prompts of its own uses the English ones and asks the models to write in it. The player can still change it when starting.",
|
|
16097
16240
|
infoPreset: "Suggested preset",
|
|
16098
16241
|
infoPresetHelp: "The writing instructions from your library that a new story of this world starts with. The world's own prompts still come first, and the player can choose another when starting.",
|
|
16099
16242
|
infoPresetNone: "None",
|
|
@@ -16404,6 +16547,8 @@ window.__ModuleLoader__.load({
|
|
|
16404
16547
|
infoLorebooksHelp: "新故事默认带上的、来自你的库中的背景知识;玩家开始时可以更改。",
|
|
16405
16548
|
infoLorebookMissing: "{name}(库中没有)",
|
|
16406
16549
|
infoSampling: "建议的采样设置",
|
|
16550
|
+
infoLanguage: "故事语言",
|
|
16551
|
+
infoLanguageHelp: "此世界的新故事默认使用的语言(如 en、zh、ja),与你的界面语言无关。留空则跟随界面。没有专属提示词的语言会使用英文提示词,并要求模型用该语言写作。玩家开始时仍可更改。",
|
|
16407
16552
|
infoPreset: "建议的预设",
|
|
16408
16553
|
infoPresetHelp: "新故事默认使用的、来自你的库中的写作指令。世界自带的提示词仍然优先;玩家开始时也可以另选。",
|
|
16409
16554
|
infoPresetNone: "无",
|
|
@@ -16753,6 +16898,8 @@ window.__ModuleLoader__.load({
|
|
|
16753
16898
|
infoAlternateRemove: "削除",
|
|
16754
16899
|
infoLorebooks: "おすすめのロアブック",
|
|
16755
16900
|
infoSampling: "おすすめのサンプリング設定",
|
|
16901
|
+
infoLanguage: "ストーリーの言語",
|
|
16902
|
+
infoLanguageHelp: "このワールドの新しいストーリーを進める言語(en、zh、ja などのタグ)。インターフェースの言語とは無関係です。空欄ならインターフェースに合わせます。専用のプロンプトがない言語では英語のプロンプトを使い、その言語で書くようモデルに求めます。開始時に変更もできます。",
|
|
16756
16903
|
infoPreset: "おすすめのプリセット",
|
|
16757
16904
|
infoPresetNone: "なし",
|
|
16758
16905
|
infoStory: "作者と時間",
|
|
@@ -17064,6 +17211,8 @@ window.__ModuleLoader__.load({
|
|
|
17064
17211
|
infoAlternateRemove: "Eliminar",
|
|
17065
17212
|
infoLorebooks: "Libros de trasfondo sugeridos",
|
|
17066
17213
|
infoSampling: "Muestreo sugerido",
|
|
17214
|
+
infoLanguage: "Idioma de la historia",
|
|
17215
|
+
infoLanguageHelp: "El idioma en que se juegan las historias nuevas de este mundo (una etiqueta como en, zh o ja), sea cual sea el de tu interfaz. Vacío sigue tu interfaz. Un idioma sin instrucciones propias usa las inglesas y pide a los modelos que escriban en él. Quien juega puede cambiarlo al empezar.",
|
|
17067
17216
|
infoPreset: "Preajuste sugerido",
|
|
17068
17217
|
infoPresetNone: "Ninguno",
|
|
17069
17218
|
infoStory: "Autoría y tiempo",
|
|
@@ -17375,6 +17524,8 @@ window.__ModuleLoader__.load({
|
|
|
17375
17524
|
infoAlternateRemove: "Supprimer",
|
|
17376
17525
|
infoLorebooks: "Recueils de connaissances suggérés",
|
|
17377
17526
|
infoSampling: "Échantillonnage suggéré",
|
|
17527
|
+
infoLanguage: "Langue de l’histoire",
|
|
17528
|
+
infoLanguageHelp: "La langue dans laquelle les nouvelles histoires de ce monde se jouent (une balise comme en, zh ou ja), quelle que soit celle de votre interface. Vide : celle de l’interface. Une langue sans instructions propres utilise les anglaises et demande aux modèles d’écrire dans cette langue. Le joueur peut la changer au début.",
|
|
17378
17529
|
infoPreset: "Préréglage suggéré",
|
|
17379
17530
|
infoPresetNone: "Aucun",
|
|
17380
17531
|
infoStory: "Auteur et temps",
|
|
@@ -17686,6 +17837,8 @@ window.__ModuleLoader__.load({
|
|
|
17686
17837
|
infoAlternateRemove: "Entfernen",
|
|
17687
17838
|
infoLorebooks: "Empfohlene Wissensbücher",
|
|
17688
17839
|
infoSampling: "Empfohlenes Sampling",
|
|
17840
|
+
infoLanguage: "Sprache der Geschichte",
|
|
17841
|
+
infoLanguageHelp: "Die Sprache, in der neue Geschichten dieser Welt gespielt werden (ein Kürzel wie en, zh oder ja), unabhängig von der Sprache Ihrer Oberfläche. Leer folgt der Oberfläche. Eine Sprache ohne eigene Anweisungen nutzt die englischen und bittet die Modelle, darin zu schreiben. Beim Start lässt sie sich ändern.",
|
|
17689
17842
|
infoPreset: "Empfohlene Vorlage",
|
|
17690
17843
|
infoPresetNone: "Keine",
|
|
17691
17844
|
infoStory: "Urheber und Zeit",
|
|
@@ -17997,6 +18150,8 @@ window.__ModuleLoader__.load({
|
|
|
17997
18150
|
infoAlternateRemove: "Удалить",
|
|
17998
18151
|
infoLorebooks: "Рекомендуемые книги знаний",
|
|
17999
18152
|
infoSampling: "Рекомендуемые параметры генерации",
|
|
18153
|
+
infoLanguage: "Язык истории",
|
|
18154
|
+
infoLanguageHelp: "Язык, на котором играются новые истории этого мира (метка вроде en, zh или ja), независимо от языка интерфейса. Пусто — язык интерфейса. Для языка без своих инструкций берутся английские, а модели просят писать на нём. Игрок может изменить его при запуске.",
|
|
18000
18155
|
infoPreset: "Рекомендуемый пресет",
|
|
18001
18156
|
infoPresetNone: "Нет",
|
|
18002
18157
|
infoStory: "Автор и время",
|
|
@@ -18308,6 +18463,8 @@ window.__ModuleLoader__.load({
|
|
|
18308
18463
|
infoAlternateRemove: "Remover",
|
|
18309
18464
|
infoLorebooks: "Livros de conhecimento sugeridos",
|
|
18310
18465
|
infoSampling: "Amostragem sugerida",
|
|
18466
|
+
infoLanguage: "Idioma da história",
|
|
18467
|
+
infoLanguageHelp: "O idioma em que as novas histórias deste mundo são jogadas (uma etiqueta como en, zh ou ja), seja qual for o da sua interface. Vazio segue a interface. Um idioma sem instruções próprias usa as em inglês e pede aos modelos que escrevam nele. Quem joga pode mudá-lo ao começar.",
|
|
18311
18468
|
infoPreset: "Predefinição sugerida",
|
|
18312
18469
|
infoPresetNone: "Nenhuma",
|
|
18313
18470
|
infoStory: "Autoria e tempo",
|
|
@@ -18726,37 +18883,37 @@ window.__ModuleLoader__.load({
|
|
|
18726
18883
|
}
|
|
18727
18884
|
tag$30.textContent = css$30;
|
|
18728
18885
|
var LorebooksPage_module_css_default = {
|
|
18729
|
-
"
|
|
18730
|
-
"
|
|
18731
|
-
"
|
|
18732
|
-
"error": "rp_VV-Eha_error",
|
|
18886
|
+
"input": "rp_VV-Eha_input",
|
|
18887
|
+
"count": "rp_VV-Eha_count",
|
|
18888
|
+
"editBody": "rp_VV-Eha_editBody",
|
|
18733
18889
|
"cardActions": "rp_VV-Eha_cardActions",
|
|
18734
|
-
"row": "rp_VV-Eha_row",
|
|
18735
|
-
"meta": "rp_VV-Eha_meta",
|
|
18736
|
-
"area": "rp_VV-Eha_area",
|
|
18737
|
-
"editTitle": "rp_VV-Eha_editTitle",
|
|
18738
|
-
"head": "rp_VV-Eha_head",
|
|
18739
|
-
"page": "rp_VV-Eha_page",
|
|
18740
|
-
"actions": "rp_VV-Eha_actions",
|
|
18741
|
-
"toolbar": "rp_VV-Eha_toolbar",
|
|
18742
18890
|
"select": "rp_VV-Eha_select",
|
|
18743
|
-
"
|
|
18891
|
+
"description": "rp_VV-Eha_description",
|
|
18744
18892
|
"title": "rp_VV-Eha_title",
|
|
18745
|
-
"
|
|
18746
|
-
"
|
|
18747
|
-
"
|
|
18893
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
18894
|
+
"form": "rp_VV-Eha_form",
|
|
18895
|
+
"toolbar": "rp_VV-Eha_toolbar",
|
|
18748
18896
|
"label": "rp_VV-Eha_label",
|
|
18749
|
-
"
|
|
18750
|
-
"
|
|
18751
|
-
"message": "rp_VV-Eha_message",
|
|
18752
|
-
"warning": "rp_VV-Eha_warning",
|
|
18753
|
-
"name": "rp_VV-Eha_name",
|
|
18897
|
+
"area": "rp_VV-Eha_area",
|
|
18898
|
+
"help": "rp_VV-Eha_help",
|
|
18754
18899
|
"ok": "rp_VV-Eha_ok",
|
|
18900
|
+
"section": "rp_VV-Eha_section",
|
|
18901
|
+
"page": "rp_VV-Eha_page",
|
|
18902
|
+
"head": "rp_VV-Eha_head",
|
|
18903
|
+
"row": "rp_VV-Eha_row",
|
|
18755
18904
|
"card": "rp_VV-Eha_card",
|
|
18756
|
-
"
|
|
18757
|
-
"
|
|
18758
|
-
"
|
|
18759
|
-
"
|
|
18905
|
+
"editHeader": "rp_VV-Eha_editHeader",
|
|
18906
|
+
"grid": "rp_VV-Eha_grid",
|
|
18907
|
+
"warning": "rp_VV-Eha_warning",
|
|
18908
|
+
"entryArea": "rp_VV-Eha_entryArea",
|
|
18909
|
+
"meta": "rp_VV-Eha_meta",
|
|
18910
|
+
"error": "rp_VV-Eha_error",
|
|
18911
|
+
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
18912
|
+
"actions": "rp_VV-Eha_actions",
|
|
18913
|
+
"viewport": "rp_VV-Eha_viewport",
|
|
18914
|
+
"name": "rp_VV-Eha_name",
|
|
18915
|
+
"message": "rp_VV-Eha_message",
|
|
18916
|
+
"field": "rp_VV-Eha_field"
|
|
18760
18917
|
};
|
|
18761
18918
|
// src/client/pages/lorebooks/LorebookEditor.tsx
|
|
18762
18919
|
const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -19298,12 +19455,13 @@ window.__ModuleLoader__.load({
|
|
|
19298
19455
|
const [staging, setStaging] = (0, react.useState)(false);
|
|
19299
19456
|
const [notice, setNotice] = (0, react.useState)();
|
|
19300
19457
|
const picker = (0, react.useRef)(null);
|
|
19458
|
+
const [assistantLanguage, setAssistantLanguage] = (0, react.useState)(() => primaryLanguage(t("language")));
|
|
19301
19459
|
(0, react.useEffect)(() => {
|
|
19302
19460
|
load();
|
|
19303
19461
|
}, [load]);
|
|
19304
19462
|
const open = (name) => {
|
|
19305
19463
|
setNotice(void 0);
|
|
19306
|
-
author(name).catch((failure) => {
|
|
19464
|
+
author(name, assistantLanguage).catch((failure) => {
|
|
19307
19465
|
setNotice(t("authorFailed", { message: messageOf$8(failure) }));
|
|
19308
19466
|
});
|
|
19309
19467
|
};
|
|
@@ -19345,6 +19503,15 @@ window.__ModuleLoader__.load({
|
|
|
19345
19503
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19346
19504
|
className: LorebooksPage_module_css_default.actions,
|
|
19347
19505
|
children: [
|
|
19506
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
19507
|
+
compact: true,
|
|
19508
|
+
value: assistantLanguage,
|
|
19509
|
+
onChange: setAssistantLanguage,
|
|
19510
|
+
interfaceLanguage: t("language"),
|
|
19511
|
+
label: t("assistantLanguage"),
|
|
19512
|
+
title: t("assistantLanguageHelp"),
|
|
19513
|
+
testId: "roleplay-assistant-language"
|
|
19514
|
+
}),
|
|
19348
19515
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
19349
19516
|
ref: picker,
|
|
19350
19517
|
type: "file",
|
|
@@ -19477,6 +19644,7 @@ window.__ModuleLoader__.load({
|
|
|
19477
19644
|
staged !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportSelectionDialog, {
|
|
19478
19645
|
preview: staged,
|
|
19479
19646
|
t,
|
|
19647
|
+
interfaceLanguage: t("language"),
|
|
19480
19648
|
canConfirm: NAME$1.test(importName),
|
|
19481
19649
|
onClose: () => {
|
|
19482
19650
|
setStaged(void 0);
|
|
@@ -19490,7 +19658,7 @@ window.__ModuleLoader__.load({
|
|
|
19490
19658
|
}));
|
|
19491
19659
|
return;
|
|
19492
19660
|
}
|
|
19493
|
-
const result = await importStaged(choice, importName);
|
|
19661
|
+
const result = await importStaged(choice, importName, options.language);
|
|
19494
19662
|
if (!result.started) setNotice(t("importNotStarted", { message: result.failure ?? "" }));
|
|
19495
19663
|
},
|
|
19496
19664
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
@@ -19554,6 +19722,8 @@ window.__ModuleLoader__.load({
|
|
|
19554
19722
|
importFailed: "Could not import the lorebook: {message}",
|
|
19555
19723
|
importNotStarted: "The lorebook was kept, but the assistant could not be started: {message}. Open its authoring chat to continue.",
|
|
19556
19724
|
edit: "Edit",
|
|
19725
|
+
assistantLanguage: "Assistant language",
|
|
19726
|
+
assistantLanguageHelp: "The language the assistant works in and writes its prompts in. It starts as your interface language; English and Chinese have prompts of their own, any other language uses the English ones.",
|
|
19557
19727
|
author: "Edit with assistant",
|
|
19558
19728
|
authorFailed: "Could not open the authoring chat: {message}",
|
|
19559
19729
|
delete: "Delete",
|
|
@@ -19627,6 +19797,8 @@ window.__ModuleLoader__.load({
|
|
|
19627
19797
|
importFailed: "无法导入世界书:{message}",
|
|
19628
19798
|
importNotStarted: "世界书已保存,但助手没能启动:{message}。请打开它的创作聊天继续。",
|
|
19629
19799
|
edit: "编辑",
|
|
19800
|
+
assistantLanguage: "助手语言",
|
|
19801
|
+
assistantLanguageHelp: "助手使用的语言,也是它撰写提示词时所用的语言。默认是界面语言;英文和中文有专属提示词,其他语言使用英文提示词。",
|
|
19630
19802
|
author: "用助手编辑",
|
|
19631
19803
|
authorFailed: "无法打开创作聊天:{message}",
|
|
19632
19804
|
delete: "删除",
|
|
@@ -19700,6 +19872,8 @@ window.__ModuleLoader__.load({
|
|
|
19700
19872
|
importFailed: "ロアブックを読み込めませんでした:{message}",
|
|
19701
19873
|
importNotStarted: "ロアブックは保存しましたが、アシスタントを開始できませんでした:{message}。作成チャットを開いて続けてください。",
|
|
19702
19874
|
edit: "編集",
|
|
19875
|
+
assistantLanguage: "アシスタントの言語",
|
|
19876
|
+
assistantLanguageHelp: "アシスタントが使い、プロンプトを書く言語です。初期値はインターフェースの言語です。英語と中国語には専用のプロンプトがあり、他の言語では英語のプロンプトを使います。",
|
|
19703
19877
|
author: "アシスタントで編集",
|
|
19704
19878
|
authorFailed: "作成チャットを開けませんでした:{message}",
|
|
19705
19879
|
delete: "削除",
|
|
@@ -19773,6 +19947,8 @@ window.__ModuleLoader__.load({
|
|
|
19773
19947
|
importFailed: "No se ha podido importar el libro: {message}",
|
|
19774
19948
|
importNotStarted: "El libro se ha guardado, pero no se ha podido iniciar el asistente: {message}. Abre su chat de creación para continuar.",
|
|
19775
19949
|
edit: "Editar",
|
|
19950
|
+
assistantLanguage: "Idioma del asistente",
|
|
19951
|
+
assistantLanguageHelp: "El idioma en que trabaja el asistente y en que escribe sus instrucciones. Empieza siendo el de tu interfaz; el inglés y el chino tienen instrucciones propias, cualquier otro idioma usa las inglesas.",
|
|
19776
19952
|
author: "Editar con el asistente",
|
|
19777
19953
|
authorFailed: "No se ha podido abrir el chat de creación: {message}",
|
|
19778
19954
|
delete: "Eliminar",
|
|
@@ -19846,6 +20022,8 @@ window.__ModuleLoader__.load({
|
|
|
19846
20022
|
importFailed: "Impossible d’importer le recueil : {message}",
|
|
19847
20023
|
importNotStarted: "Le recueil a été conservé, mais l’assistant n’a pas pu démarrer : {message}. Ouvrez sa discussion de création pour continuer.",
|
|
19848
20024
|
edit: "Modifier",
|
|
20025
|
+
assistantLanguage: "Langue de l’assistant",
|
|
20026
|
+
assistantLanguageHelp: "La langue dans laquelle l’assistant travaille et écrit ses instructions. Par défaut, celle de votre interface ; l’anglais et le chinois ont leurs propres instructions, toute autre langue utilise les anglaises.",
|
|
19849
20027
|
author: "Modifier avec l’assistant",
|
|
19850
20028
|
authorFailed: "Impossible d’ouvrir la discussion de création : {message}",
|
|
19851
20029
|
delete: "Supprimer",
|
|
@@ -19919,6 +20097,8 @@ window.__ModuleLoader__.load({
|
|
|
19919
20097
|
importFailed: "Das Wissensbuch konnte nicht importiert werden: {message}",
|
|
19920
20098
|
importNotStarted: "Das Wissensbuch wurde behalten, aber der Assistent konnte nicht gestartet werden: {message}. Öffne den Autorenchat, um fortzufahren.",
|
|
19921
20099
|
edit: "Bearbeiten",
|
|
20100
|
+
assistantLanguage: "Sprache des Assistenten",
|
|
20101
|
+
assistantLanguageHelp: "Die Sprache, in der der Assistent arbeitet und seine Anweisungen schreibt. Voreingestellt ist die Sprache Ihrer Oberfläche; Englisch und Chinesisch haben eigene Anweisungen, jede andere Sprache nutzt die englischen.",
|
|
19922
20102
|
author: "Mit Assistent bearbeiten",
|
|
19923
20103
|
authorFailed: "Der Autorenchat konnte nicht geöffnet werden: {message}",
|
|
19924
20104
|
delete: "Löschen",
|
|
@@ -19992,6 +20172,8 @@ window.__ModuleLoader__.load({
|
|
|
19992
20172
|
importFailed: "Не удалось импортировать книгу: {message}",
|
|
19993
20173
|
importNotStarted: "Книга сохранена, но ассистента запустить не удалось: {message}. Откройте авторский чат, чтобы продолжить.",
|
|
19994
20174
|
edit: "Изменить",
|
|
20175
|
+
assistantLanguage: "Язык помощника",
|
|
20176
|
+
assistantLanguageHelp: "Язык, на котором работает помощник и пишет свои инструкции. По умолчанию — язык интерфейса; у английского и китайского есть свои инструкции, для остальных берутся английские.",
|
|
19995
20177
|
author: "Изменить с ассистентом",
|
|
19996
20178
|
authorFailed: "Не удалось открыть авторский чат: {message}",
|
|
19997
20179
|
delete: "Удалить",
|
|
@@ -20065,6 +20247,8 @@ window.__ModuleLoader__.load({
|
|
|
20065
20247
|
importFailed: "Não foi possível importar o livro: {message}",
|
|
20066
20248
|
importNotStarted: "O livro foi mantido, mas não foi possível iniciar o assistente: {message}. Abra a conversa de criação para continuar.",
|
|
20067
20249
|
edit: "Editar",
|
|
20250
|
+
assistantLanguage: "Idioma do assistente",
|
|
20251
|
+
assistantLanguageHelp: "O idioma em que o assistente trabalha e escreve as suas instruções. Começa como o da sua interface; o inglês e o chinês têm instruções próprias, qualquer outro idioma usa as em inglês.",
|
|
20068
20252
|
author: "Editar com o assistente",
|
|
20069
20253
|
authorFailed: "Não foi possível abrir a conversa de criação: {message}",
|
|
20070
20254
|
delete: "Eliminar",
|
|
@@ -20116,7 +20300,6 @@ window.__ModuleLoader__.load({
|
|
|
20116
20300
|
/** Reads the lorebook library from the host and makes, removes and opens its lorebooks. */
|
|
20117
20301
|
var LorebooksController = class {
|
|
20118
20302
|
openChat;
|
|
20119
|
-
language;
|
|
20120
20303
|
store = createSnapshotStore({
|
|
20121
20304
|
status: "idle",
|
|
20122
20305
|
refreshing: false
|
|
@@ -20142,8 +20325,8 @@ window.__ModuleLoader__.load({
|
|
|
20142
20325
|
await deleteLorebook(name, this.abort.signal);
|
|
20143
20326
|
await this.read(true);
|
|
20144
20327
|
},
|
|
20145
|
-
author: async (name) => {
|
|
20146
|
-
this.openChat((await authorLorebook(name,
|
|
20328
|
+
author: async (name, language) => {
|
|
20329
|
+
this.openChat((await authorLorebook(name, language, this.abort.signal)).chatSessionId);
|
|
20147
20330
|
},
|
|
20148
20331
|
stage: async (file) => await stageFile("lorebook", file, this.abort.signal),
|
|
20149
20332
|
importVerbatim: async (choice, name, knownBy) => {
|
|
@@ -20154,10 +20337,10 @@ window.__ModuleLoader__.load({
|
|
|
20154
20337
|
await this.read(true);
|
|
20155
20338
|
return made.entries;
|
|
20156
20339
|
},
|
|
20157
|
-
importStaged: async (choice, name) => {
|
|
20340
|
+
importStaged: async (choice, name, language) => {
|
|
20158
20341
|
const opened = await importStagedLorebook(choice, {
|
|
20159
20342
|
name,
|
|
20160
|
-
language
|
|
20343
|
+
language
|
|
20161
20344
|
}, this.abort.signal);
|
|
20162
20345
|
await this.read(true);
|
|
20163
20346
|
this.openChat(opened.chatSessionId);
|
|
@@ -20167,9 +20350,8 @@ window.__ModuleLoader__.load({
|
|
|
20167
20350
|
};
|
|
20168
20351
|
}
|
|
20169
20352
|
};
|
|
20170
|
-
constructor(openChat
|
|
20353
|
+
constructor(openChat) {
|
|
20171
20354
|
this.openChat = openChat;
|
|
20172
|
-
this.language = language;
|
|
20173
20355
|
}
|
|
20174
20356
|
inject() {
|
|
20175
20357
|
return this.face;
|
|
@@ -20208,7 +20390,7 @@ window.__ModuleLoader__.load({
|
|
|
20208
20390
|
function registerLorebooksPage(ctx) {
|
|
20209
20391
|
const t = ctx.locale.bind(NAMESPACE$14);
|
|
20210
20392
|
ctx.effect(() => ctx.locale.register(NAMESPACE$14, dictionaries$14), "roleplay: lorebooks dictionaries");
|
|
20211
|
-
const lorebooks = new LorebooksController(createChatOpener(ctx)
|
|
20393
|
+
const lorebooks = new LorebooksController(createChatOpener(ctx));
|
|
20212
20394
|
ctx.effect(() => () => {
|
|
20213
20395
|
lorebooks.dispose();
|
|
20214
20396
|
}, "roleplay: lorebooks requests");
|
|
@@ -20233,35 +20415,35 @@ window.__ModuleLoader__.load({
|
|
|
20233
20415
|
}
|
|
20234
20416
|
tag$29.textContent = css$29;
|
|
20235
20417
|
var PresetsPage_module_css_default = {
|
|
20236
|
-
"
|
|
20237
|
-
"toolbar": "rp_ZK89ba_toolbar",
|
|
20238
|
-
"row": "rp_ZK89ba_row",
|
|
20239
|
-
"warning": "rp_ZK89ba_warning",
|
|
20240
|
-
"viewport": "rp_ZK89ba_viewport",
|
|
20241
|
-
"ok": "rp_ZK89ba_ok",
|
|
20242
|
-
"card": "rp_ZK89ba_card",
|
|
20243
|
-
"cardActions": "rp_ZK89ba_cardActions",
|
|
20418
|
+
"actions": "rp_ZK89ba_actions",
|
|
20244
20419
|
"editTitle": "rp_ZK89ba_editTitle",
|
|
20245
|
-
"
|
|
20246
|
-
"editBody": "rp_ZK89ba_editBody",
|
|
20420
|
+
"message": "rp_ZK89ba_message",
|
|
20247
20421
|
"editHeader": "rp_ZK89ba_editHeader",
|
|
20248
|
-
"
|
|
20422
|
+
"ok": "rp_ZK89ba_ok",
|
|
20249
20423
|
"section": "rp_ZK89ba_section",
|
|
20250
|
-
"
|
|
20251
|
-
"
|
|
20424
|
+
"head": "rp_ZK89ba_head",
|
|
20425
|
+
"card": "rp_ZK89ba_card",
|
|
20426
|
+
"title": "rp_ZK89ba_title",
|
|
20252
20427
|
"field": "rp_ZK89ba_field",
|
|
20428
|
+
"editBody": "rp_ZK89ba_editBody",
|
|
20429
|
+
"row": "rp_ZK89ba_row",
|
|
20253
20430
|
"label": "rp_ZK89ba_label",
|
|
20254
|
-
"
|
|
20255
|
-
"
|
|
20256
|
-
"message": "rp_ZK89ba_message",
|
|
20257
|
-
"meta": "rp_ZK89ba_meta",
|
|
20258
|
-
"form": "rp_ZK89ba_form",
|
|
20431
|
+
"viewport": "rp_ZK89ba_viewport",
|
|
20432
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
20259
20433
|
"error": "rp_ZK89ba_error",
|
|
20434
|
+
"grid": "rp_ZK89ba_grid",
|
|
20435
|
+
"cardActions": "rp_ZK89ba_cardActions",
|
|
20436
|
+
"name": "rp_ZK89ba_name",
|
|
20437
|
+
"meta": "rp_ZK89ba_meta",
|
|
20260
20438
|
"help": "rp_ZK89ba_help",
|
|
20261
|
-
"
|
|
20262
|
-
"
|
|
20263
|
-
"
|
|
20264
|
-
"
|
|
20439
|
+
"count": "rp_ZK89ba_count",
|
|
20440
|
+
"form": "rp_ZK89ba_form",
|
|
20441
|
+
"page": "rp_ZK89ba_page",
|
|
20442
|
+
"description": "rp_ZK89ba_description",
|
|
20443
|
+
"input": "rp_ZK89ba_input",
|
|
20444
|
+
"warning": "rp_ZK89ba_warning",
|
|
20445
|
+
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
20446
|
+
"area": "rp_ZK89ba_area"
|
|
20265
20447
|
};
|
|
20266
20448
|
// src/client/pages/presets/PresetEditor.tsx
|
|
20267
20449
|
const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -20827,12 +21009,13 @@ window.__ModuleLoader__.load({
|
|
|
20827
21009
|
const [staging, setStaging] = (0, react.useState)(false);
|
|
20828
21010
|
const [notice, setNotice] = (0, react.useState)();
|
|
20829
21011
|
const picker = (0, react.useRef)(null);
|
|
21012
|
+
const [assistantLanguage, setAssistantLanguage] = (0, react.useState)(() => primaryLanguage(t("language")));
|
|
20830
21013
|
(0, react.useEffect)(() => {
|
|
20831
21014
|
load();
|
|
20832
21015
|
}, [load]);
|
|
20833
21016
|
const open = (name) => {
|
|
20834
21017
|
setNotice(void 0);
|
|
20835
|
-
author(name).catch((failure) => {
|
|
21018
|
+
author(name, assistantLanguage).catch((failure) => {
|
|
20836
21019
|
setNotice(t("authorFailed", { message: messageOf$5(failure) }));
|
|
20837
21020
|
});
|
|
20838
21021
|
};
|
|
@@ -20874,6 +21057,15 @@ window.__ModuleLoader__.load({
|
|
|
20874
21057
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20875
21058
|
className: PresetsPage_module_css_default.actions,
|
|
20876
21059
|
children: [
|
|
21060
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
21061
|
+
compact: true,
|
|
21062
|
+
value: assistantLanguage,
|
|
21063
|
+
onChange: setAssistantLanguage,
|
|
21064
|
+
interfaceLanguage: t("language"),
|
|
21065
|
+
label: t("assistantLanguage"),
|
|
21066
|
+
title: t("assistantLanguageHelp"),
|
|
21067
|
+
testId: "roleplay-assistant-language"
|
|
21068
|
+
}),
|
|
20877
21069
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
20878
21070
|
ref: picker,
|
|
20879
21071
|
type: "file",
|
|
@@ -21011,6 +21203,7 @@ window.__ModuleLoader__.load({
|
|
|
21011
21203
|
staged !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportSelectionDialog, {
|
|
21012
21204
|
preview: staged,
|
|
21013
21205
|
t,
|
|
21206
|
+
interfaceLanguage: t("language"),
|
|
21014
21207
|
canConfirm: NAME.test(importName),
|
|
21015
21208
|
canVerbatim: true,
|
|
21016
21209
|
onClose: () => {
|
|
@@ -21022,7 +21215,7 @@ window.__ModuleLoader__.load({
|
|
|
21022
21215
|
setNotice(t("importedVerbatim", { name: importName }));
|
|
21023
21216
|
return;
|
|
21024
21217
|
}
|
|
21025
|
-
const result = await importStaged(choice, importName);
|
|
21218
|
+
const result = await importStaged(choice, importName, options.language);
|
|
21026
21219
|
if (!result.started) setNotice(t("importNotStarted", { message: result.failure ?? "" }));
|
|
21027
21220
|
},
|
|
21028
21221
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
@@ -21086,6 +21279,8 @@ window.__ModuleLoader__.load({
|
|
|
21086
21279
|
importFailed: "Could not import the preset: {message}",
|
|
21087
21280
|
importNotStarted: "The preset was kept, but the assistant could not be started: {message}. Open its authoring chat to continue.",
|
|
21088
21281
|
edit: "Edit",
|
|
21282
|
+
assistantLanguage: "Assistant language",
|
|
21283
|
+
assistantLanguageHelp: "The language the assistant works in and writes its prompts in. It starts as your interface language; English and Chinese have prompts of their own, any other language uses the English ones.",
|
|
21089
21284
|
author: "Edit with assistant",
|
|
21090
21285
|
authorFailed: "Could not open the authoring chat: {message}",
|
|
21091
21286
|
delete: "Delete",
|
|
@@ -21148,6 +21343,8 @@ window.__ModuleLoader__.load({
|
|
|
21148
21343
|
importFailed: "无法导入预设:{message}",
|
|
21149
21344
|
importNotStarted: "预设已保存,但助手没能启动:{message}。请打开它的创作聊天继续。",
|
|
21150
21345
|
edit: "编辑",
|
|
21346
|
+
assistantLanguage: "助手语言",
|
|
21347
|
+
assistantLanguageHelp: "助手使用的语言,也是它撰写提示词时所用的语言。默认是界面语言;英文和中文有专属提示词,其他语言使用英文提示词。",
|
|
21151
21348
|
author: "用助手编辑",
|
|
21152
21349
|
authorFailed: "无法打开创作聊天:{message}",
|
|
21153
21350
|
delete: "删除",
|
|
@@ -21210,6 +21407,8 @@ window.__ModuleLoader__.load({
|
|
|
21210
21407
|
importFailed: "プリセットを読み込めませんでした:{message}",
|
|
21211
21408
|
importNotStarted: "プリセットは保存しましたが、アシスタントを開始できませんでした:{message}。作成チャットを開いて続けてください。",
|
|
21212
21409
|
edit: "編集",
|
|
21410
|
+
assistantLanguage: "アシスタントの言語",
|
|
21411
|
+
assistantLanguageHelp: "アシスタントが使い、プロンプトを書く言語です。初期値はインターフェースの言語です。英語と中国語には専用のプロンプトがあり、他の言語では英語のプロンプトを使います。",
|
|
21213
21412
|
author: "アシスタントで編集",
|
|
21214
21413
|
authorFailed: "作成チャットを開けませんでした:{message}",
|
|
21215
21414
|
delete: "削除",
|
|
@@ -21272,6 +21471,8 @@ window.__ModuleLoader__.load({
|
|
|
21272
21471
|
importFailed: "No se ha podido importar el preajuste: {message}",
|
|
21273
21472
|
importNotStarted: "El preajuste se ha guardado, pero no se ha podido iniciar el asistente: {message}. Abre su chat de creación para continuar.",
|
|
21274
21473
|
edit: "Editar",
|
|
21474
|
+
assistantLanguage: "Idioma del asistente",
|
|
21475
|
+
assistantLanguageHelp: "El idioma en que trabaja el asistente y en que escribe sus instrucciones. Empieza siendo el de tu interfaz; el inglés y el chino tienen instrucciones propias, cualquier otro idioma usa las inglesas.",
|
|
21275
21476
|
author: "Editar con el asistente",
|
|
21276
21477
|
authorFailed: "No se ha podido abrir el chat de creación: {message}",
|
|
21277
21478
|
delete: "Eliminar",
|
|
@@ -21334,6 +21535,8 @@ window.__ModuleLoader__.load({
|
|
|
21334
21535
|
importFailed: "Impossible d’importer le préréglage : {message}",
|
|
21335
21536
|
importNotStarted: "Le préréglage a été conservé, mais l’assistant n’a pas pu démarrer : {message}. Ouvrez sa discussion de création pour continuer.",
|
|
21336
21537
|
edit: "Modifier",
|
|
21538
|
+
assistantLanguage: "Langue de l’assistant",
|
|
21539
|
+
assistantLanguageHelp: "La langue dans laquelle l’assistant travaille et écrit ses instructions. Par défaut, celle de votre interface ; l’anglais et le chinois ont leurs propres instructions, toute autre langue utilise les anglaises.",
|
|
21337
21540
|
author: "Modifier avec l’assistant",
|
|
21338
21541
|
authorFailed: "Impossible d’ouvrir la discussion de création : {message}",
|
|
21339
21542
|
delete: "Supprimer",
|
|
@@ -21396,6 +21599,8 @@ window.__ModuleLoader__.load({
|
|
|
21396
21599
|
importFailed: "Die Vorlage konnte nicht importiert werden: {message}",
|
|
21397
21600
|
importNotStarted: "Die Vorlage wurde behalten, aber der Assistent konnte nicht gestartet werden: {message}. Öffne den Autorenchat, um fortzufahren.",
|
|
21398
21601
|
edit: "Bearbeiten",
|
|
21602
|
+
assistantLanguage: "Sprache des Assistenten",
|
|
21603
|
+
assistantLanguageHelp: "Die Sprache, in der der Assistent arbeitet und seine Anweisungen schreibt. Voreingestellt ist die Sprache Ihrer Oberfläche; Englisch und Chinesisch haben eigene Anweisungen, jede andere Sprache nutzt die englischen.",
|
|
21399
21604
|
author: "Mit Assistent bearbeiten",
|
|
21400
21605
|
authorFailed: "Der Autorenchat konnte nicht geöffnet werden: {message}",
|
|
21401
21606
|
delete: "Löschen",
|
|
@@ -21458,6 +21663,8 @@ window.__ModuleLoader__.load({
|
|
|
21458
21663
|
importFailed: "Не удалось импортировать пресет: {message}",
|
|
21459
21664
|
importNotStarted: "Пресет сохранён, но ассистента запустить не удалось: {message}. Откройте авторский чат, чтобы продолжить.",
|
|
21460
21665
|
edit: "Изменить",
|
|
21666
|
+
assistantLanguage: "Язык помощника",
|
|
21667
|
+
assistantLanguageHelp: "Язык, на котором работает помощник и пишет свои инструкции. По умолчанию — язык интерфейса; у английского и китайского есть свои инструкции, для остальных берутся английские.",
|
|
21461
21668
|
author: "Изменить с ассистентом",
|
|
21462
21669
|
authorFailed: "Не удалось открыть авторский чат: {message}",
|
|
21463
21670
|
delete: "Удалить",
|
|
@@ -21520,6 +21727,8 @@ window.__ModuleLoader__.load({
|
|
|
21520
21727
|
importFailed: "Não foi possível importar a predefinição: {message}",
|
|
21521
21728
|
importNotStarted: "A predefinição foi mantida, mas não foi possível iniciar o assistente: {message}. Abra a conversa de criação para continuar.",
|
|
21522
21729
|
edit: "Editar",
|
|
21730
|
+
assistantLanguage: "Idioma do assistente",
|
|
21731
|
+
assistantLanguageHelp: "O idioma em que o assistente trabalha e escreve as suas instruções. Começa como o da sua interface; o inglês e o chinês têm instruções próprias, qualquer outro idioma usa as em inglês.",
|
|
21523
21732
|
author: "Editar com o assistente",
|
|
21524
21733
|
authorFailed: "Não foi possível abrir a conversa de criação: {message}",
|
|
21525
21734
|
delete: "Eliminar",
|
|
@@ -21560,7 +21769,6 @@ window.__ModuleLoader__.load({
|
|
|
21560
21769
|
/** Reads the preset library from the host and makes, removes and opens its presets. */
|
|
21561
21770
|
var PresetsController = class {
|
|
21562
21771
|
openChat;
|
|
21563
|
-
language;
|
|
21564
21772
|
store = createSnapshotStore({
|
|
21565
21773
|
status: "idle",
|
|
21566
21774
|
refreshing: false
|
|
@@ -21586,18 +21794,18 @@ window.__ModuleLoader__.load({
|
|
|
21586
21794
|
await deletePreset(name, this.abort.signal);
|
|
21587
21795
|
await this.read(true);
|
|
21588
21796
|
},
|
|
21589
|
-
author: async (name) => {
|
|
21590
|
-
this.openChat((await authorPreset(name,
|
|
21797
|
+
author: async (name, language) => {
|
|
21798
|
+
this.openChat((await authorPreset(name, language, this.abort.signal)).chatSessionId);
|
|
21591
21799
|
},
|
|
21592
21800
|
stage: async (file) => await stageFile("preset", file, this.abort.signal),
|
|
21593
21801
|
importVerbatim: async (choice, name) => {
|
|
21594
21802
|
await importVerbatimPreset(choice, { name }, this.abort.signal);
|
|
21595
21803
|
await this.read(true);
|
|
21596
21804
|
},
|
|
21597
|
-
importStaged: async (choice, name) => {
|
|
21805
|
+
importStaged: async (choice, name, language) => {
|
|
21598
21806
|
const opened = await importStagedPreset(choice, {
|
|
21599
21807
|
name,
|
|
21600
|
-
language
|
|
21808
|
+
language
|
|
21601
21809
|
}, this.abort.signal);
|
|
21602
21810
|
await this.read(true);
|
|
21603
21811
|
this.openChat(opened.chatSessionId);
|
|
@@ -21607,9 +21815,8 @@ window.__ModuleLoader__.load({
|
|
|
21607
21815
|
};
|
|
21608
21816
|
}
|
|
21609
21817
|
};
|
|
21610
|
-
constructor(openChat
|
|
21818
|
+
constructor(openChat) {
|
|
21611
21819
|
this.openChat = openChat;
|
|
21612
|
-
this.language = language;
|
|
21613
21820
|
}
|
|
21614
21821
|
inject() {
|
|
21615
21822
|
return this.face;
|
|
@@ -21648,7 +21855,7 @@ window.__ModuleLoader__.load({
|
|
|
21648
21855
|
function registerPresetsPage(ctx) {
|
|
21649
21856
|
const t = ctx.locale.bind(NAMESPACE$13);
|
|
21650
21857
|
ctx.effect(() => ctx.locale.register(NAMESPACE$13, dictionaries$13), "roleplay: presets dictionaries");
|
|
21651
|
-
const presets = new PresetsController(createChatOpener(ctx)
|
|
21858
|
+
const presets = new PresetsController(createChatOpener(ctx));
|
|
21652
21859
|
ctx.effect(() => () => {
|
|
21653
21860
|
presets.dispose();
|
|
21654
21861
|
}, "roleplay: presets requests");
|
|
@@ -21714,7 +21921,7 @@ window.__ModuleLoader__.load({
|
|
|
21714
21921
|
};
|
|
21715
21922
|
}
|
|
21716
21923
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/prompts/PromptsPage.module.css.mjs
|
|
21717
|
-
const css$28 = ".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:
|
|
21924
|
+
const css$28 = ".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}}";
|
|
21718
21925
|
const key$28 = "src/client/pages/prompts/PromptsPage.module.css";
|
|
21719
21926
|
let tag$28 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$28) + "]");
|
|
21720
21927
|
if (tag$28 === null) {
|
|
@@ -21725,34 +21932,34 @@ window.__ModuleLoader__.load({
|
|
|
21725
21932
|
}
|
|
21726
21933
|
tag$28.textContent = css$28;
|
|
21727
21934
|
var PromptsPage_module_css_default = {
|
|
21728
|
-
"actions": "rp_DLg_5G_actions",
|
|
21729
|
-
"list": "rp_DLg_5G_list",
|
|
21730
|
-
"warning": "rp_DLg_5G_warning",
|
|
21731
|
-
"viewport": "rp_DLg_5G_viewport",
|
|
21732
|
-
"error": "rp_DLg_5G_error",
|
|
21733
|
-
"rowName": "rp_DLg_5G_rowName",
|
|
21734
|
-
"group": "rp_DLg_5G_group",
|
|
21735
|
-
"sign": "rp_DLg_5G_sign",
|
|
21736
21935
|
"row": "rp_DLg_5G_row",
|
|
21936
|
+
"shipped": "rp_DLg_5G_shipped",
|
|
21937
|
+
"sign": "rp_DLg_5G_sign",
|
|
21938
|
+
"message": "rp_DLg_5G_message",
|
|
21737
21939
|
"editHeader": "rp_DLg_5G_editHeader",
|
|
21738
|
-
"help": "rp_DLg_5G_help",
|
|
21739
21940
|
"editBody": "rp_DLg_5G_editBody",
|
|
21740
|
-
"
|
|
21741
|
-
"pane": "rp_DLg_5G_pane",
|
|
21742
|
-
"line": "rp_DLg_5G_line",
|
|
21941
|
+
"label": "rp_DLg_5G_label",
|
|
21743
21942
|
"check": "rp_DLg_5G_check",
|
|
21943
|
+
"group": "rp_DLg_5G_group",
|
|
21744
21944
|
"page": "rp_DLg_5G_page",
|
|
21745
|
-
"
|
|
21945
|
+
"warning": "rp_DLg_5G_warning",
|
|
21946
|
+
"pane": "rp_DLg_5G_pane",
|
|
21947
|
+
"list": "rp_DLg_5G_list",
|
|
21948
|
+
"actions": "rp_DLg_5G_actions",
|
|
21949
|
+
"error": "rp_DLg_5G_error",
|
|
21950
|
+
"toolbar": "rp_DLg_5G_toolbar",
|
|
21951
|
+
"help": "rp_DLg_5G_help",
|
|
21746
21952
|
"editTitle": "rp_DLg_5G_editTitle",
|
|
21953
|
+
"panes": "rp_DLg_5G_panes",
|
|
21954
|
+
"line": "rp_DLg_5G_line",
|
|
21955
|
+
"viewport": "rp_DLg_5G_viewport",
|
|
21747
21956
|
"area": "rp_DLg_5G_area",
|
|
21748
|
-
"
|
|
21749
|
-
"toolbar": "rp_DLg_5G_toolbar",
|
|
21750
|
-
"rowLanguage": "rp_DLg_5G_rowLanguage",
|
|
21751
|
-
"label": "rp_DLg_5G_label",
|
|
21752
|
-
"shipped": "rp_DLg_5G_shipped",
|
|
21753
|
-
"spacer": "rp_DLg_5G_spacer",
|
|
21957
|
+
"missing": "rp_DLg_5G_missing",
|
|
21754
21958
|
"count": "rp_DLg_5G_count",
|
|
21755
|
-
"
|
|
21959
|
+
"rowName": "rp_DLg_5G_rowName",
|
|
21960
|
+
"spacer": "rp_DLg_5G_spacer",
|
|
21961
|
+
"rowLanguage": "rp_DLg_5G_rowLanguage",
|
|
21962
|
+
"ok": "rp_DLg_5G_ok"
|
|
21756
21963
|
};
|
|
21757
21964
|
// src/client/pages/prompts/PromptEditor.tsx
|
|
21758
21965
|
const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -21782,6 +21989,13 @@ window.__ModuleLoader__.load({
|
|
|
21782
21989
|
abort.abort();
|
|
21783
21990
|
};
|
|
21784
21991
|
}, [id, language]);
|
|
21992
|
+
const area = (0, react.useRef)(null);
|
|
21993
|
+
(0, react.useLayoutEffect)(() => {
|
|
21994
|
+
const box = area.current;
|
|
21995
|
+
if (box === null) return;
|
|
21996
|
+
box.style.height = "0px";
|
|
21997
|
+
box.style.height = `${box.scrollHeight + 2}px`;
|
|
21998
|
+
}, [text, loaded]);
|
|
21785
21999
|
const comparison = (0, react.useMemo)(() => loaded === void 0 ? void 0 : compareLines(loaded.shipped, text), [loaded, text]);
|
|
21786
22000
|
if (loaded === void 0 || comparison === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
21787
22001
|
className: PromptsPage_module_css_default.message,
|
|
@@ -21862,6 +22076,7 @@ window.__ModuleLoader__.load({
|
|
|
21862
22076
|
className: PromptsPage_module_css_default.label,
|
|
21863
22077
|
children: t("yours")
|
|
21864
22078
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
|
|
22079
|
+
ref: area,
|
|
21865
22080
|
className: PromptsPage_module_css_default.area,
|
|
21866
22081
|
value: text,
|
|
21867
22082
|
"aria-label": t("yours"),
|
|
@@ -22604,11 +22819,11 @@ window.__ModuleLoader__.load({
|
|
|
22604
22819
|
}
|
|
22605
22820
|
tag$25.textContent = css$25;
|
|
22606
22821
|
var DeleteSessionDialog_module_css_default = {
|
|
22822
|
+
"error": "rp_FifHrW_error",
|
|
22607
22823
|
"choice": "rp_FifHrW_choice",
|
|
22608
22824
|
"question": "rp_FifHrW_question",
|
|
22609
22825
|
"warning": "rp_FifHrW_warning",
|
|
22610
|
-
"body": "rp_FifHrW_body"
|
|
22611
|
-
"error": "rp_FifHrW_error"
|
|
22826
|
+
"body": "rp_FifHrW_body"
|
|
22612
22827
|
};
|
|
22613
22828
|
// src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
22614
22829
|
/** Asks for confirmation before a session and everything saved with it is removed. */
|
|
@@ -23132,28 +23347,28 @@ window.__ModuleLoader__.load({
|
|
|
23132
23347
|
}
|
|
23133
23348
|
tag$24.textContent = css$24;
|
|
23134
23349
|
var SessionsPage_module_css_default = {
|
|
23135
|
-
"message": "rp_24z4eW_message",
|
|
23136
|
-
"secondary": "rp_24z4eW_secondary",
|
|
23137
23350
|
"count": "rp_24z4eW_count",
|
|
23138
|
-
"
|
|
23139
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
23351
|
+
"notice": "rp_24z4eW_notice",
|
|
23140
23352
|
"nameColumn": "rp_24z4eW_nameColumn",
|
|
23141
|
-
"
|
|
23142
|
-
"
|
|
23143
|
-
"badge": "rp_24z4eW_badge",
|
|
23353
|
+
"secondary": "rp_24z4eW_secondary",
|
|
23354
|
+
"message": "rp_24z4eW_message",
|
|
23144
23355
|
"fits": "rp_24z4eW_fits",
|
|
23145
|
-
"
|
|
23146
|
-
"
|
|
23147
|
-
"
|
|
23356
|
+
"badge": "rp_24z4eW_badge",
|
|
23357
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
23358
|
+
"table": "rp_24z4eW_table",
|
|
23148
23359
|
"page": "rp_24z4eW_page",
|
|
23149
23360
|
"toolbar": "rp_24z4eW_toolbar",
|
|
23150
|
-
"
|
|
23151
|
-
"
|
|
23152
|
-
"
|
|
23153
|
-
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
23154
|
-
"notice": "rp_24z4eW_notice",
|
|
23361
|
+
"worldColumn": "rp_24z4eW_worldColumn",
|
|
23362
|
+
"spin": "rp_24z4eW_spin",
|
|
23363
|
+
"spinning": "rp_24z4eW_spinning",
|
|
23155
23364
|
"name": "rp_24z4eW_name",
|
|
23156
|
-
"
|
|
23365
|
+
"viewport": "rp_24z4eW_viewport",
|
|
23366
|
+
"number": "rp_24z4eW_number",
|
|
23367
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
23368
|
+
"archived": "rp_24z4eW_archived",
|
|
23369
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
23370
|
+
"actions": "rp_24z4eW_actions",
|
|
23371
|
+
"actionsColumn": "rp_24z4eW_actionsColumn"
|
|
23157
23372
|
};
|
|
23158
23373
|
// src/client/pages/sessions/SessionsPage.tsx
|
|
23159
23374
|
/** The sessions as a table, one page at a time, the most recently played first. */
|
|
@@ -23892,29 +24107,29 @@ window.__ModuleLoader__.load({
|
|
|
23892
24107
|
}
|
|
23893
24108
|
tag$23.textContent = css$23;
|
|
23894
24109
|
var SyncPage_module_css_default = {
|
|
23895
|
-
"
|
|
24110
|
+
"problem": "rp_Gk-byG_problem",
|
|
23896
24111
|
"stateColumn": "rp_Gk-byG_stateColumn",
|
|
23897
|
-
"
|
|
23898
|
-
"
|
|
23899
|
-
"
|
|
24112
|
+
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
24113
|
+
"message": "rp_Gk-byG_message",
|
|
24114
|
+
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
24115
|
+
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
24116
|
+
"toolbar": "rp_Gk-byG_toolbar",
|
|
23900
24117
|
"error": "rp_Gk-byG_error",
|
|
23901
24118
|
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
23902
|
-
"
|
|
23903
|
-
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
24119
|
+
"viewport": "rp_Gk-byG_viewport",
|
|
23904
24120
|
"conflict": "rp_Gk-byG_conflict",
|
|
23905
|
-
"
|
|
23906
|
-
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
24121
|
+
"kindColumn": "rp_Gk-byG_kindColumn",
|
|
23907
24122
|
"actions": "rp_Gk-byG_actions",
|
|
23908
|
-
"
|
|
24123
|
+
"caption": "rp_Gk-byG_caption",
|
|
24124
|
+
"table": "rp_Gk-byG_table",
|
|
24125
|
+
"failed": "rp_Gk-byG_failed",
|
|
24126
|
+
"detail": "rp_Gk-byG_detail",
|
|
24127
|
+
"choices": "rp_Gk-byG_choices",
|
|
24128
|
+
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
23909
24129
|
"unit": "rp_Gk-byG_unit",
|
|
23910
24130
|
"page": "rp_Gk-byG_page",
|
|
23911
|
-
"toolbar": "rp_Gk-byG_toolbar",
|
|
23912
24131
|
"confirmation": "rp_Gk-byG_confirmation",
|
|
23913
|
-
"
|
|
23914
|
-
"failed": "rp_Gk-byG_failed",
|
|
23915
|
-
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
23916
|
-
"message": "rp_Gk-byG_message",
|
|
23917
|
-
"unitColumn": "rp_Gk-byG_unitColumn"
|
|
24132
|
+
"meta": "rp_Gk-byG_meta"
|
|
23918
24133
|
};
|
|
23919
24134
|
// src/client/pages/sync/SyncPage.tsx
|
|
23920
24135
|
const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
|
|
@@ -24739,14 +24954,14 @@ window.__ModuleLoader__.load({
|
|
|
24739
24954
|
}
|
|
24740
24955
|
tag$22.textContent = css$22;
|
|
24741
24956
|
var Toast_module_css_default = {
|
|
24742
|
-
"
|
|
24743
|
-
"actionButton": "rp_jnVj9q_actionButton",
|
|
24744
|
-
"rpToastEnter": "rp_jnVj9q_rpToastEnter",
|
|
24745
|
-
"prefix": "rp_jnVj9q_prefix",
|
|
24957
|
+
"fading": "rp_jnVj9q_fading",
|
|
24746
24958
|
"text": "rp_jnVj9q_text",
|
|
24959
|
+
"action": "rp_jnVj9q_action",
|
|
24747
24960
|
"banner": "rp_jnVj9q_banner",
|
|
24748
|
-
"
|
|
24749
|
-
"
|
|
24961
|
+
"prefix": "rp_jnVj9q_prefix",
|
|
24962
|
+
"actionButton": "rp_jnVj9q_actionButton",
|
|
24963
|
+
"success": "rp_jnVj9q_success",
|
|
24964
|
+
"rpToastEnter": "rp_jnVj9q_rpToastEnter"
|
|
24750
24965
|
};
|
|
24751
24966
|
// src/client/ui/Toast.tsx
|
|
24752
24967
|
const FADE_MS = 200;
|
|
@@ -24815,16 +25030,16 @@ window.__ModuleLoader__.load({
|
|
|
24815
25030
|
}
|
|
24816
25031
|
tag$21.textContent = css$21;
|
|
24817
25032
|
var WorldCard_module_css_default = {
|
|
25033
|
+
"play": "rp_Bvxx5q_play",
|
|
24818
25034
|
"placeholder": "rp_Bvxx5q_placeholder",
|
|
24819
|
-
"name": "rp_Bvxx5q_name",
|
|
24820
|
-
"openButton": "rp_Bvxx5q_openButton",
|
|
24821
|
-
"cover": "rp_Bvxx5q_cover",
|
|
24822
25035
|
"card": "rp_Bvxx5q_card",
|
|
24823
25036
|
"info": "rp_Bvxx5q_info",
|
|
24824
|
-
"
|
|
25037
|
+
"openButton": "rp_Bvxx5q_openButton",
|
|
24825
25038
|
"tags": "rp_Bvxx5q_tags",
|
|
25039
|
+
"tag": "rp_Bvxx5q_tag",
|
|
24826
25040
|
"image": "rp_Bvxx5q_image",
|
|
24827
|
-
"
|
|
25041
|
+
"cover": "rp_Bvxx5q_cover",
|
|
25042
|
+
"name": "rp_Bvxx5q_name"
|
|
24828
25043
|
};
|
|
24829
25044
|
// src/client/widgets/world-card/WorldCard.tsx
|
|
24830
25045
|
/** Stable hue per name, so a world without a cover keeps the same colour. */
|
|
@@ -24921,10 +25136,10 @@ window.__ModuleLoader__.load({
|
|
|
24921
25136
|
}
|
|
24922
25137
|
tag$20.textContent = css$20;
|
|
24923
25138
|
var AvatarChoices_module_css_default = {
|
|
24924
|
-
"summary": "rp_YCstOG_summary",
|
|
24925
|
-
"option": "rp_YCstOG_option",
|
|
24926
25139
|
"text": "rp_YCstOG_text",
|
|
24927
|
-
"name": "rp_YCstOG_name"
|
|
25140
|
+
"name": "rp_YCstOG_name",
|
|
25141
|
+
"summary": "rp_YCstOG_summary",
|
|
25142
|
+
"option": "rp_YCstOG_option"
|
|
24928
25143
|
};
|
|
24929
25144
|
// src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
24930
25145
|
/** A list of avatars to tick: the ones brought into a world or a session. */
|
|
@@ -24962,18 +25177,18 @@ window.__ModuleLoader__.load({
|
|
|
24962
25177
|
}
|
|
24963
25178
|
tag$19.textContent = css$19;
|
|
24964
25179
|
var StartSessionDialog_module_css_default = {
|
|
25180
|
+
"form": "rp_AnbLKG_form",
|
|
25181
|
+
"advanced": "rp_AnbLKG_advanced",
|
|
25182
|
+
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
25183
|
+
"field": "rp_AnbLKG_field",
|
|
25184
|
+
"optionText": "rp_AnbLKG_optionText",
|
|
25185
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
25186
|
+
"error": "rp_AnbLKG_error",
|
|
24965
25187
|
"label": "rp_AnbLKG_label",
|
|
25188
|
+
"option": "rp_AnbLKG_option",
|
|
24966
25189
|
"message": "rp_AnbLKG_message",
|
|
24967
25190
|
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
24968
|
-
"
|
|
24969
|
-
"advanced": "rp_AnbLKG_advanced",
|
|
24970
|
-
"error": "rp_AnbLKG_error",
|
|
24971
|
-
"optionName": "rp_AnbLKG_optionName",
|
|
24972
|
-
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
24973
|
-
"optionText": "rp_AnbLKG_optionText",
|
|
24974
|
-
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
24975
|
-
"form": "rp_AnbLKG_form",
|
|
24976
|
-
"field": "rp_AnbLKG_field"
|
|
25191
|
+
"optionName": "rp_AnbLKG_optionName"
|
|
24977
25192
|
};
|
|
24978
25193
|
// src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
24979
25194
|
/** Asks which avatars become characters of a world's own files. */
|
|
@@ -26354,8 +26569,8 @@ window.__ModuleLoader__.load({
|
|
|
26354
26569
|
tag$18.textContent = css$18;
|
|
26355
26570
|
var SegmentedControl_module_css_default = {
|
|
26356
26571
|
"rpControl": "rp_wN4Tqa_rpControl",
|
|
26357
|
-
"
|
|
26358
|
-
"
|
|
26572
|
+
"rpTab": "rp_wN4Tqa_rpTab",
|
|
26573
|
+
"rpIndicator": "rp_wN4Tqa_rpIndicator"
|
|
26359
26574
|
};
|
|
26360
26575
|
// src/client/ui/walk.ts
|
|
26361
26576
|
/** Whether a key moves the selection inside a tablist. */
|
|
@@ -26448,14 +26663,14 @@ window.__ModuleLoader__.load({
|
|
|
26448
26663
|
}
|
|
26449
26664
|
tag$17.textContent = css$17;
|
|
26450
26665
|
var SettingsFields_module_css_default = {
|
|
26451
|
-
"help": "rp_Rhi3yq_help",
|
|
26452
|
-
"error": "rp_Rhi3yq_error",
|
|
26453
|
-
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
26454
26666
|
"label": "rp_Rhi3yq_label",
|
|
26667
|
+
"field": "rp_Rhi3yq_field",
|
|
26455
26668
|
"row": "rp_Rhi3yq_row",
|
|
26669
|
+
"help": "rp_Rhi3yq_help",
|
|
26456
26670
|
"group": "rp_Rhi3yq_group",
|
|
26457
|
-
"
|
|
26458
|
-
"
|
|
26671
|
+
"area": "rp_Rhi3yq_area",
|
|
26672
|
+
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
26673
|
+
"error": "rp_Rhi3yq_error"
|
|
26459
26674
|
};
|
|
26460
26675
|
// src/client/settings-form/SettingsFields.tsx
|
|
26461
26676
|
/** The settings of a chat as editable fields: one control with its explanation under each. */
|
|
@@ -26721,13 +26936,16 @@ window.__ModuleLoader__.load({
|
|
|
26721
26936
|
}));
|
|
26722
26937
|
}
|
|
26723
26938
|
// src/client/pages/worlds/translate-api.ts
|
|
26724
|
-
/** The language a world
|
|
26725
|
-
async function
|
|
26726
|
-
const { language } = await answer$1(await fetch(`${API_PREFIX}/worlds/language?id=${encodeURIComponent(worldId)}`, {
|
|
26939
|
+
/** The language a world's words are in, and the language its file says its stories are played in, when it says one. */
|
|
26940
|
+
async function worldLanguages(worldId, signal) {
|
|
26941
|
+
const { language, declared } = await answer$1(await fetch(`${API_PREFIX}/worlds/language?id=${encodeURIComponent(worldId)}`, {
|
|
26727
26942
|
credentials: "same-origin",
|
|
26728
26943
|
...signal === void 0 ? {} : { signal }
|
|
26729
26944
|
}));
|
|
26730
|
-
return
|
|
26945
|
+
return {
|
|
26946
|
+
...language === null ? {} : { written: language },
|
|
26947
|
+
...declared === null ? {} : { declared }
|
|
26948
|
+
};
|
|
26731
26949
|
}
|
|
26732
26950
|
/** Opens the authoring chat of the world and has it make a translated copy. */
|
|
26733
26951
|
async function translateWorld(worldId, to, title, language) {
|
|
@@ -26742,6 +26960,8 @@ window.__ModuleLoader__.load({
|
|
|
26742
26960
|
})
|
|
26743
26961
|
}));
|
|
26744
26962
|
}
|
|
26963
|
+
/** The language a story is played in from a tag as written (`zh-CN`, `JA`): its primary subtag, lower case. */
|
|
26964
|
+
const playedLanguageOf = (code) => code.trim().toLowerCase().split(/[-_]/)[0] ?? "";
|
|
26745
26965
|
/** The language of the interface or of a setting, as one of the two the plugin writes in. */
|
|
26746
26966
|
const storyLanguageOf = (code) => code.trim().toLowerCase().startsWith("zh") ? "zh" : "en";
|
|
26747
26967
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/TranslateBanner.module.css.mjs
|
|
@@ -26756,25 +26976,38 @@ window.__ModuleLoader__.load({
|
|
|
26756
26976
|
}
|
|
26757
26977
|
tag$16.textContent = css$16;
|
|
26758
26978
|
var TranslateBanner_module_css_default = {
|
|
26759
|
-
"
|
|
26760
|
-
"error": "rp_Lx8vJa_error",
|
|
26979
|
+
"text": "rp_Lx8vJa_text",
|
|
26761
26980
|
"bannerActions": "rp_Lx8vJa_bannerActions",
|
|
26762
|
-
"
|
|
26981
|
+
"banner": "rp_Lx8vJa_banner",
|
|
26982
|
+
"error": "rp_Lx8vJa_error"
|
|
26763
26983
|
};
|
|
26764
26984
|
// src/client/pages/worlds/TranslateBanner.tsx
|
|
26765
|
-
|
|
26985
|
+
/** 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. */
|
|
26986
|
+
function languageName(t, language) {
|
|
26987
|
+
if (language === "zh") return t("languageChinese");
|
|
26988
|
+
if (language === "en") return t("languageEnglish");
|
|
26989
|
+
try {
|
|
26990
|
+
return new Intl.DisplayNames([t("language")], { type: "language" }).of(language) ?? language;
|
|
26991
|
+
} catch {
|
|
26992
|
+
return language;
|
|
26993
|
+
}
|
|
26994
|
+
}
|
|
26766
26995
|
/** The language a world is written in, read from the host; nothing while it is being read or when it cannot be told. */
|
|
26767
26996
|
function useWorldLanguage(worldId) {
|
|
26768
|
-
|
|
26997
|
+
return useWorldLanguages(worldId).written;
|
|
26998
|
+
}
|
|
26999
|
+
/** Both languages of a world: the one its words are in, and the one its file declares for its stories. */
|
|
27000
|
+
function useWorldLanguages(worldId) {
|
|
27001
|
+
const [languages, setLanguages] = (0, react.useState)({});
|
|
26769
27002
|
(0, react.useEffect)(() => {
|
|
26770
27003
|
const abort = new AbortController();
|
|
26771
|
-
|
|
26772
|
-
|
|
27004
|
+
setLanguages({});
|
|
27005
|
+
worldLanguages(worldId, abort.signal).then(setLanguages, () => void 0);
|
|
26773
27006
|
return () => {
|
|
26774
27007
|
abort.abort();
|
|
26775
27008
|
};
|
|
26776
27009
|
}, [worldId]);
|
|
26777
|
-
return
|
|
27010
|
+
return languages;
|
|
26778
27011
|
}
|
|
26779
27012
|
/** Says that a world is written in another language than the person's, and offers to translate it into a copy. */
|
|
26780
27013
|
function TranslateBanner({ t, worldId, worldName, openChat }) {
|
|
@@ -26848,17 +27081,17 @@ window.__ModuleLoader__.load({
|
|
|
26848
27081
|
const selected = players.find((player) => player.value === choice)?.value ?? players[0]?.value;
|
|
26849
27082
|
const chosenOpening = opening === "" ? void 0 : dialog.openings[Number(opening)];
|
|
26850
27083
|
const openingValid = chosenOpening !== void 0 && (chosenOpening.character === void 0 || chosenOpening.character === selected);
|
|
27084
|
+
const { written, declared } = useWorldLanguages(dialog.worldId);
|
|
26851
27085
|
const base = {
|
|
26852
27086
|
...DEFAULT_SETTINGS,
|
|
26853
|
-
prompts: { language: t("language") }
|
|
27087
|
+
prompts: { language: declared ?? t("language") }
|
|
26854
27088
|
};
|
|
26855
27089
|
const shown = {
|
|
26856
27090
|
...toDrafts(base, options),
|
|
26857
27091
|
...drafts
|
|
26858
27092
|
};
|
|
26859
|
-
const written = useWorldLanguage(dialog.worldId);
|
|
26860
27093
|
const chosen = shown["prompts.language"];
|
|
26861
|
-
const played =
|
|
27094
|
+
const played = playedLanguageOf(typeof chosen === "string" && chosen.trim() !== "" ? chosen : base.prompts.language);
|
|
26862
27095
|
const canStart = dialog.status === "ready" && selected !== void 0 && !dialog.submitting && problemsOf(shown, options).size === 0;
|
|
26863
27096
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Modal, {
|
|
26864
27097
|
open: true,
|
|
@@ -27381,26 +27614,26 @@ window.__ModuleLoader__.load({
|
|
|
27381
27614
|
}
|
|
27382
27615
|
tag$15.textContent = css$15;
|
|
27383
27616
|
var WorldsPage_module_css_default = {
|
|
27384
|
-
"count": "rp_FHUyRq_count",
|
|
27385
|
-
"fits": "rp_FHUyRq_fits",
|
|
27386
|
-
"grid": "rp_FHUyRq_grid",
|
|
27387
|
-
"editHeader": "rp_FHUyRq_editHeader",
|
|
27388
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
27389
|
-
"info": "rp_FHUyRq_info",
|
|
27390
|
-
"page": "rp_FHUyRq_page",
|
|
27391
|
-
"message": "rp_FHUyRq_message",
|
|
27392
27617
|
"viewport": "rp_FHUyRq_viewport",
|
|
27618
|
+
"page": "rp_FHUyRq_page",
|
|
27393
27619
|
"spin": "rp_FHUyRq_spin",
|
|
27620
|
+
"editHeader": "rp_FHUyRq_editHeader",
|
|
27394
27621
|
"starter": "rp_FHUyRq_starter",
|
|
27395
|
-
"editActions": "rp_FHUyRq_editActions",
|
|
27396
27622
|
"scrolls": "rp_FHUyRq_scrolls",
|
|
27623
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
27624
|
+
"starters": "rp_FHUyRq_starters",
|
|
27625
|
+
"cell": "rp_FHUyRq_cell",
|
|
27397
27626
|
"editBody": "rp_FHUyRq_editBody",
|
|
27627
|
+
"message": "rp_FHUyRq_message",
|
|
27628
|
+
"info": "rp_FHUyRq_info",
|
|
27629
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
27630
|
+
"fits": "rp_FHUyRq_fits",
|
|
27398
27631
|
"toolbar": "rp_FHUyRq_toolbar",
|
|
27399
|
-
"cell": "rp_FHUyRq_cell",
|
|
27400
|
-
"starters": "rp_FHUyRq_starters",
|
|
27401
|
-
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
27402
27632
|
"notice": "rp_FHUyRq_notice",
|
|
27403
|
-
"
|
|
27633
|
+
"count": "rp_FHUyRq_count",
|
|
27634
|
+
"grid": "rp_FHUyRq_grid",
|
|
27635
|
+
"editTitle": "rp_FHUyRq_editTitle",
|
|
27636
|
+
"editActions": "rp_FHUyRq_editActions"
|
|
27404
27637
|
};
|
|
27405
27638
|
// src/client/pages/worlds/StarterWorlds.tsx
|
|
27406
27639
|
/** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
|
|
@@ -27987,6 +28220,7 @@ window.__ModuleLoader__.load({
|
|
|
27987
28220
|
const viewport = (0, react.useRef)(null);
|
|
27988
28221
|
const { pageSize, scrolls } = pagingFor(useGridFit(viewport));
|
|
27989
28222
|
const [requestedStart, setRequestedStart] = (0, react.useState)(0);
|
|
28223
|
+
const [assistantLanguage, setAssistantLanguage] = (0, react.useState)(() => primaryLanguage(t("language")));
|
|
27990
28224
|
const [editing, setEditing] = (0, react.useState)();
|
|
27991
28225
|
const [creating, setCreating] = (0, react.useState)(false);
|
|
27992
28226
|
const [addingAvatars, setAddingAvatars] = (0, react.useState)(false);
|
|
@@ -28088,8 +28322,9 @@ window.__ModuleLoader__.load({
|
|
|
28088
28322
|
t,
|
|
28089
28323
|
preview: importing,
|
|
28090
28324
|
...updating === void 0 ? {} : { initialUpdate: updating },
|
|
28091
|
-
|
|
28092
|
-
|
|
28325
|
+
language: t("language"),
|
|
28326
|
+
start: (choices, update, language) => startImport(importing.id, choices, language, update),
|
|
28327
|
+
startPlain: (choices, language) => importWithoutModel(importing.id, choices, language),
|
|
28093
28328
|
onImportedPlain: (_world, draft) => {
|
|
28094
28329
|
setImporting(void 0);
|
|
28095
28330
|
setUpdating(void 0);
|
|
@@ -28198,12 +28433,21 @@ window.__ModuleLoader__.load({
|
|
|
28198
28433
|
},
|
|
28199
28434
|
children: t("addAvatars")
|
|
28200
28435
|
}),
|
|
28436
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LanguageSelect, {
|
|
28437
|
+
compact: true,
|
|
28438
|
+
value: assistantLanguage,
|
|
28439
|
+
onChange: setAssistantLanguage,
|
|
28440
|
+
interfaceLanguage: t("language"),
|
|
28441
|
+
label: t("assistantLanguage"),
|
|
28442
|
+
title: t("assistantLanguageHelp"),
|
|
28443
|
+
testId: "roleplay-assistant-language"
|
|
28444
|
+
}),
|
|
28201
28445
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
28202
28446
|
variant: "primary",
|
|
28203
28447
|
size: "sm",
|
|
28204
28448
|
disabled: state.authoring?.worldId === editing.id && state.authoring.error === void 0,
|
|
28205
28449
|
onClick: () => {
|
|
28206
|
-
openAuthoring(editing.id, t("authoringChatTitle", { name: editing.name }));
|
|
28450
|
+
openAuthoring(editing.id, t("authoringChatTitle", { name: editing.name }), assistantLanguage);
|
|
28207
28451
|
},
|
|
28208
28452
|
children: state.authoring?.worldId === editing.id && state.authoring.error === void 0 ? t("openingAuthor") : t("authorWorld")
|
|
28209
28453
|
})
|
|
@@ -28224,6 +28468,7 @@ window.__ModuleLoader__.load({
|
|
|
28224
28468
|
presetStaged !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportSelectionDialog, {
|
|
28225
28469
|
preview: presetStaged.preview,
|
|
28226
28470
|
t,
|
|
28471
|
+
interfaceLanguage: t("language"),
|
|
28227
28472
|
canVerbatim: true,
|
|
28228
28473
|
onClose: () => {
|
|
28229
28474
|
setPresetStaged(void 0);
|
|
@@ -28234,7 +28479,7 @@ window.__ModuleLoader__.load({
|
|
|
28234
28479
|
setPresetNotice(t(made.replaced ? "presetVerbatimReplaced" : "presetVerbatim", { name: made.preset }));
|
|
28235
28480
|
return;
|
|
28236
28481
|
}
|
|
28237
|
-
const opened = await importStagedToWorld(presetStaged.world, choice,
|
|
28482
|
+
const opened = await importStagedToWorld(presetStaged.world, choice, options.language);
|
|
28238
28483
|
if (!opened.started) setPresetNotice(t("presetNotStarted", { message: opened.failure ?? "" }));
|
|
28239
28484
|
openChat(opened.chatSessionId);
|
|
28240
28485
|
}
|
|
@@ -30615,6 +30860,8 @@ window.__ModuleLoader__.load({
|
|
|
30615
30860
|
pt_refusedCall: "Turn {turn}, {tool}: {note}",
|
|
30616
30861
|
pt_missing: "Character lookups with no matching world information: {count}.",
|
|
30617
30862
|
pt_missingLookup: "Turn {turn}, {character} looked for “{about}”",
|
|
30863
|
+
assistantLanguage: "Assistant language",
|
|
30864
|
+
assistantLanguageHelp: "The language the assistant works in and writes its prompts in. It starts as your interface language; English and Chinese have prompts of their own, any other language uses the English ones.",
|
|
30618
30865
|
authorWorld: "Author with AI",
|
|
30619
30866
|
openingAuthor: "Opening…",
|
|
30620
30867
|
authorWorldFailed: "Could not open the authoring chat: {message}",
|
|
@@ -30762,6 +31009,8 @@ window.__ModuleLoader__.load({
|
|
|
30762
31009
|
pt_refusedCall: "第 {turn} 回合,{tool}:{note}",
|
|
30763
31010
|
pt_missing: "角色查找了 {count} 样世界里没有记录的内容:",
|
|
30764
31011
|
pt_missingLookup: "第 {turn} 回合,{character} 查找了“{about}”",
|
|
31012
|
+
assistantLanguage: "助手语言",
|
|
31013
|
+
assistantLanguageHelp: "助手使用的语言,也是它撰写提示词时所用的语言。默认是界面语言;英文和中文有专属提示词,其他语言使用英文提示词。",
|
|
30765
31014
|
authorWorld: "使用 AI 编辑",
|
|
30766
31015
|
openingAuthor: "正在打开…",
|
|
30767
31016
|
authorWorldFailed: "无法打开世界编辑对话:{message}",
|
|
@@ -30909,6 +31158,8 @@ window.__ModuleLoader__.load({
|
|
|
30909
31158
|
pt_refusedCall: "ターン {turn}、{tool}:{note}",
|
|
30910
31159
|
pt_missing: "キャラクターがワールドに記録のないものを {count} 件検索:",
|
|
30911
31160
|
pt_missingLookup: "ターン {turn}、{character} が「{about}」を検索",
|
|
31161
|
+
assistantLanguage: "アシスタントの言語",
|
|
31162
|
+
assistantLanguageHelp: "アシスタントが使い、プロンプトを書く言語です。初期値はインターフェースの言語です。英語と中国語には専用のプロンプトがあり、他の言語では英語のプロンプトを使います。",
|
|
30912
31163
|
authorWorld: "AI で作成",
|
|
30913
31164
|
openingAuthor: "開いています…",
|
|
30914
31165
|
authorWorldFailed: "作成チャットを開けませんでした:{message}",
|
|
@@ -31056,6 +31307,8 @@ window.__ModuleLoader__.load({
|
|
|
31056
31307
|
pt_refusedCall: "Turno {turn}, {tool}: {note}",
|
|
31057
31308
|
pt_missing: "Consultas de personajes sin información en el mundo: {count}.",
|
|
31058
31309
|
pt_missingLookup: "Turno {turn}: {character} buscó «{about}»",
|
|
31310
|
+
assistantLanguage: "Idioma del asistente",
|
|
31311
|
+
assistantLanguageHelp: "El idioma en que trabaja el asistente y en que escribe sus instrucciones. Empieza siendo el de tu interfaz; el inglés y el chino tienen instrucciones propias, cualquier otro idioma usa las inglesas.",
|
|
31059
31312
|
authorWorld: "Crear con IA",
|
|
31060
31313
|
openingAuthor: "Abriendo…",
|
|
31061
31314
|
authorWorldFailed: "No se ha podido abrir el chat de creación: {message}",
|
|
@@ -31203,6 +31456,8 @@ window.__ModuleLoader__.load({
|
|
|
31203
31456
|
pt_refusedCall: "Tour {turn}, {tool} : {note}",
|
|
31204
31457
|
pt_missing: "Les personnages ont cherché {count} éléments absents du monde :",
|
|
31205
31458
|
pt_missingLookup: "Tour {turn}, {character} a cherché « {about} »",
|
|
31459
|
+
assistantLanguage: "Langue de l’assistant",
|
|
31460
|
+
assistantLanguageHelp: "La langue dans laquelle l’assistant travaille et écrit ses instructions. Par défaut, celle de votre interface ; l’anglais et le chinois ont leurs propres instructions, toute autre langue utilise les anglaises.",
|
|
31206
31461
|
authorWorld: "Créer avec l’IA",
|
|
31207
31462
|
openingAuthor: "Ouverture…",
|
|
31208
31463
|
authorWorldFailed: "Impossible d’ouvrir la discussion de création : {message}",
|
|
@@ -31350,6 +31605,8 @@ window.__ModuleLoader__.load({
|
|
|
31350
31605
|
pt_refusedCall: "Zug {turn}, {tool}: {note}",
|
|
31351
31606
|
pt_missing: "Figuren suchten nach {count} Dingen, zu denen die Welt nichts enthält:",
|
|
31352
31607
|
pt_missingLookup: "Zug {turn}: {character} suchte nach „{about}“",
|
|
31608
|
+
assistantLanguage: "Sprache des Assistenten",
|
|
31609
|
+
assistantLanguageHelp: "Die Sprache, in der der Assistent arbeitet und seine Anweisungen schreibt. Voreingestellt ist die Sprache Ihrer Oberfläche; Englisch und Chinesisch haben eigene Anweisungen, jede andere Sprache nutzt die englischen.",
|
|
31353
31610
|
authorWorld: "Mit KI verfassen",
|
|
31354
31611
|
openingAuthor: "Wird geöffnet…",
|
|
31355
31612
|
authorWorldFailed: "Der Autorenchat konnte nicht geöffnet werden: {message}",
|
|
@@ -31497,6 +31754,8 @@ window.__ModuleLoader__.load({
|
|
|
31497
31754
|
pt_refusedCall: "Ход {turn}, {tool}: {note}",
|
|
31498
31755
|
pt_missing: "Персонажи искали {count} элементов, о которых в мире нет сведений:",
|
|
31499
31756
|
pt_missingLookup: "Ход {turn}: {character} искал «{about}»",
|
|
31757
|
+
assistantLanguage: "Язык помощника",
|
|
31758
|
+
assistantLanguageHelp: "Язык, на котором работает помощник и пишет свои инструкции. По умолчанию — язык интерфейса; у английского и китайского есть свои инструкции, для остальных берутся английские.",
|
|
31500
31759
|
authorWorld: "Создать с ИИ",
|
|
31501
31760
|
openingAuthor: "Открытие…",
|
|
31502
31761
|
authorWorldFailed: "Не удалось открыть авторский чат: {message}",
|
|
@@ -31644,6 +31903,8 @@ window.__ModuleLoader__.load({
|
|
|
31644
31903
|
pt_refusedCall: "Ronda {turn}, {tool}: {note}",
|
|
31645
31904
|
pt_missing: "Consultas das personagens sem informação no mundo: {count}.",
|
|
31646
31905
|
pt_missingLookup: "Ronda {turn}: {character} procurou «{about}»",
|
|
31906
|
+
assistantLanguage: "Idioma do assistente",
|
|
31907
|
+
assistantLanguageHelp: "O idioma em que o assistente trabalha e escreve as suas instruções. Começa como o da sua interface; o inglês e o chinês têm instruções próprias, qualquer outro idioma usa as em inglês.",
|
|
31647
31908
|
authorWorld: "Criar com IA",
|
|
31648
31909
|
openingAuthor: "A abrir…",
|
|
31649
31910
|
authorWorldFailed: "Não foi possível abrir a conversa de criação: {message}",
|
|
@@ -31688,7 +31949,6 @@ window.__ModuleLoader__.load({
|
|
|
31688
31949
|
}
|
|
31689
31950
|
/** Loads the world list from the host, keeps it until the user refreshes, and starts sessions. */
|
|
31690
31951
|
var WorldsController = class {
|
|
31691
|
-
language;
|
|
31692
31952
|
store = createSnapshotStore({
|
|
31693
31953
|
status: "idle",
|
|
31694
31954
|
refreshing: false
|
|
@@ -31719,15 +31979,14 @@ window.__ModuleLoader__.load({
|
|
|
31719
31979
|
delete draft.started;
|
|
31720
31980
|
});
|
|
31721
31981
|
},
|
|
31722
|
-
openAuthoring: (worldId, title) => {
|
|
31723
|
-
this.openAuthoring(worldId, title);
|
|
31982
|
+
openAuthoring: (worldId, title, language) => {
|
|
31983
|
+
this.openAuthoring(worldId, title, language);
|
|
31724
31984
|
},
|
|
31725
31985
|
openChat: (chatSessionId) => {
|
|
31726
31986
|
this.openChat(chatSessionId);
|
|
31727
31987
|
}
|
|
31728
31988
|
};
|
|
31729
|
-
constructor(openChat
|
|
31730
|
-
this.language = language;
|
|
31989
|
+
constructor(openChat) {
|
|
31731
31990
|
this.openChat = openChat;
|
|
31732
31991
|
}
|
|
31733
31992
|
inject() {
|
|
@@ -31749,7 +32008,7 @@ window.__ModuleLoader__.load({
|
|
|
31749
32008
|
});
|
|
31750
32009
|
await this.run("/worlds/refresh", { method: "POST" });
|
|
31751
32010
|
}
|
|
31752
|
-
async openAuthoring(worldId, title) {
|
|
32011
|
+
async openAuthoring(worldId, title, language) {
|
|
31753
32012
|
const current = this.store.getSnapshot().authoring;
|
|
31754
32013
|
if (current?.worldId === worldId && current.error === void 0) return;
|
|
31755
32014
|
this.store.update((draft) => {
|
|
@@ -31761,7 +32020,7 @@ window.__ModuleLoader__.load({
|
|
|
31761
32020
|
headers: { "content-type": "application/json" },
|
|
31762
32021
|
body: JSON.stringify({
|
|
31763
32022
|
title,
|
|
31764
|
-
language
|
|
32023
|
+
language
|
|
31765
32024
|
})
|
|
31766
32025
|
}, this.abort.signal);
|
|
31767
32026
|
this.store.update((draft) => {
|
|
@@ -31922,7 +32181,7 @@ window.__ModuleLoader__.load({
|
|
|
31922
32181
|
function registerWorldsPage(ctx) {
|
|
31923
32182
|
const t = ctx.locale.bind(NAMESPACE$9);
|
|
31924
32183
|
ctx.effect(() => ctx.locale.register(NAMESPACE$9, dictionaries$8), "roleplay: worlds dictionaries");
|
|
31925
|
-
const worlds = new WorldsController(createChatOpener(ctx)
|
|
32184
|
+
const worlds = new WorldsController(createChatOpener(ctx));
|
|
31926
32185
|
ctx.effect(() => () => {
|
|
31927
32186
|
worlds.dispose();
|
|
31928
32187
|
}, "roleplay: worlds requests");
|
|
@@ -32041,8 +32300,8 @@ window.__ModuleLoader__.load({
|
|
|
32041
32300
|
var BranchDialog_module_css_default = {
|
|
32042
32301
|
"error": "rp_Dy1TaW_error",
|
|
32043
32302
|
"field": "rp_Dy1TaW_field",
|
|
32044
|
-
"
|
|
32045
|
-
"
|
|
32303
|
+
"label": "rp_Dy1TaW_label",
|
|
32304
|
+
"form": "rp_Dy1TaW_form"
|
|
32046
32305
|
};
|
|
32047
32306
|
// src/client/branch/BranchDialog.tsx
|
|
32048
32307
|
/** Asks for the name of a session that was just branched off another. */
|
|
@@ -32220,12 +32479,12 @@ window.__ModuleLoader__.load({
|
|
|
32220
32479
|
}
|
|
32221
32480
|
tag$13.textContent = css$13;
|
|
32222
32481
|
var SidebarGuideEntry_module_css_default = {
|
|
32223
|
-
"main": "rp_Okaj1q_main",
|
|
32224
|
-
"description": "rp_Okaj1q_description",
|
|
32225
32482
|
"entry": "rp_Okaj1q_entry",
|
|
32483
|
+
"icon": "rp_Okaj1q_icon",
|
|
32484
|
+
"description": "rp_Okaj1q_description",
|
|
32226
32485
|
"title": "rp_Okaj1q_title",
|
|
32227
32486
|
"text": "rp_Okaj1q_text",
|
|
32228
|
-
"
|
|
32487
|
+
"main": "rp_Okaj1q_main"
|
|
32229
32488
|
};
|
|
32230
32489
|
// src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
|
|
32231
32490
|
/** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
|
|
@@ -32691,17 +32950,17 @@ window.__ModuleLoader__.load({
|
|
|
32691
32950
|
}
|
|
32692
32951
|
tag$11.textContent = css$11;
|
|
32693
32952
|
var SidebarPage_module_css_default = {
|
|
32694
|
-
"content": "rp_Ptco8a_content",
|
|
32695
|
-
"entry": "rp_Ptco8a_entry",
|
|
32696
|
-
"message": "rp_Ptco8a_message",
|
|
32697
|
-
"name": "rp_Ptco8a_name",
|
|
32698
|
-
"description": "rp_Ptco8a_description",
|
|
32699
|
-
"bar": "rp_Ptco8a_bar",
|
|
32700
|
-
"icon": "rp_Ptco8a_icon",
|
|
32701
32953
|
"title": "rp_Ptco8a_title",
|
|
32954
|
+
"name": "rp_Ptco8a_name",
|
|
32702
32955
|
"page": "rp_Ptco8a_page",
|
|
32956
|
+
"bar": "rp_Ptco8a_bar",
|
|
32957
|
+
"entry": "rp_Ptco8a_entry",
|
|
32703
32958
|
"main": "rp_Ptco8a_main",
|
|
32704
|
-
"
|
|
32959
|
+
"icon": "rp_Ptco8a_icon",
|
|
32960
|
+
"text": "rp_Ptco8a_text",
|
|
32961
|
+
"description": "rp_Ptco8a_description",
|
|
32962
|
+
"message": "rp_Ptco8a_message",
|
|
32963
|
+
"content": "rp_Ptco8a_content"
|
|
32705
32964
|
};
|
|
32706
32965
|
// src/client/interface/SidebarPage.tsx
|
|
32707
32966
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -33330,24 +33589,24 @@ window.__ModuleLoader__.load({
|
|
|
33330
33589
|
}
|
|
33331
33590
|
tag$10.textContent = css$10;
|
|
33332
33591
|
var RecallTab_module_css_default = {
|
|
33592
|
+
"field": "rp_jl9CIq_field",
|
|
33593
|
+
"error": "rp_jl9CIq_error",
|
|
33594
|
+
"heading": "rp_jl9CIq_heading",
|
|
33595
|
+
"label": "rp_jl9CIq_label",
|
|
33333
33596
|
"hint": "rp_jl9CIq_hint",
|
|
33334
|
-
"
|
|
33597
|
+
"note": "rp_jl9CIq_note",
|
|
33598
|
+
"body": "rp_jl9CIq_body",
|
|
33335
33599
|
"item": "rp_jl9CIq_item",
|
|
33336
|
-
"
|
|
33337
|
-
"list": "rp_jl9CIq_list",
|
|
33338
|
-
"bar": "rp_jl9CIq_bar",
|
|
33339
|
-
"area": "rp_jl9CIq_area",
|
|
33600
|
+
"actions": "rp_jl9CIq_actions",
|
|
33340
33601
|
"name": "rp_jl9CIq_name",
|
|
33341
|
-
"error": "rp_jl9CIq_error",
|
|
33342
|
-
"body": "rp_jl9CIq_body",
|
|
33343
33602
|
"person": "rp_jl9CIq_person",
|
|
33344
|
-
"
|
|
33603
|
+
"bar": "rp_jl9CIq_bar",
|
|
33345
33604
|
"page": "rp_jl9CIq_page",
|
|
33346
|
-
"
|
|
33347
|
-
"
|
|
33348
|
-
"
|
|
33349
|
-
"
|
|
33350
|
-
"
|
|
33605
|
+
"list": "rp_jl9CIq_list",
|
|
33606
|
+
"area": "rp_jl9CIq_area",
|
|
33607
|
+
"place": "rp_jl9CIq_place",
|
|
33608
|
+
"meta": "rp_jl9CIq_meta",
|
|
33609
|
+
"form": "rp_jl9CIq_form"
|
|
33351
33610
|
};
|
|
33352
33611
|
// src/client/recall/RecallTab.tsx
|
|
33353
33612
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34204,10 +34463,10 @@ window.__ModuleLoader__.load({
|
|
|
34204
34463
|
tag$9.textContent = css$9;
|
|
34205
34464
|
var ReferenceTab_module_css_default = {
|
|
34206
34465
|
"bar": "rp_7BGO2a_bar",
|
|
34207
|
-
"nav": "rp_7BGO2a_nav",
|
|
34208
|
-
"message": "rp_7BGO2a_message",
|
|
34209
34466
|
"page": "rp_7BGO2a_page",
|
|
34210
|
-
"
|
|
34467
|
+
"nav": "rp_7BGO2a_nav",
|
|
34468
|
+
"body": "rp_7BGO2a_body",
|
|
34469
|
+
"message": "rp_7BGO2a_message"
|
|
34211
34470
|
};
|
|
34212
34471
|
// src/client/reference/ReferenceTab.tsx
|
|
34213
34472
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34327,28 +34586,28 @@ window.__ModuleLoader__.load({
|
|
|
34327
34586
|
}
|
|
34328
34587
|
tag$8.textContent = css$8;
|
|
34329
34588
|
var Page_module_css_default = {
|
|
34330
|
-
"list": "rp_bG1sCa_list",
|
|
34331
|
-
"meta": "rp_bG1sCa_meta",
|
|
34332
|
-
"journal": "rp_bG1sCa_journal",
|
|
34333
|
-
"here": "rp_bG1sCa_here",
|
|
34334
|
-
"entry": "rp_bG1sCa_entry",
|
|
34335
34589
|
"title": "rp_bG1sCa_title",
|
|
34336
|
-
"placeName": "rp_bG1sCa_placeName",
|
|
34337
|
-
"map": "rp_bG1sCa_map",
|
|
34338
|
-
"name": "rp_bG1sCa_name",
|
|
34339
34590
|
"way": "rp_bG1sCa_way",
|
|
34340
|
-
"
|
|
34341
|
-
"
|
|
34342
|
-
"
|
|
34591
|
+
"closedWay": "rp_bG1sCa_closedWay",
|
|
34592
|
+
"sub": "rp_bG1sCa_sub",
|
|
34593
|
+
"opened": "rp_bG1sCa_opened",
|
|
34343
34594
|
"message": "rp_bG1sCa_message",
|
|
34595
|
+
"entry": "rp_bG1sCa_entry",
|
|
34596
|
+
"here": "rp_bG1sCa_here",
|
|
34597
|
+
"meta": "rp_bG1sCa_meta",
|
|
34598
|
+
"name": "rp_bG1sCa_name",
|
|
34344
34599
|
"text": "rp_bG1sCa_text",
|
|
34345
|
-
"
|
|
34346
|
-
"
|
|
34347
|
-
"sub": "rp_bG1sCa_sub",
|
|
34600
|
+
"list": "rp_bG1sCa_list",
|
|
34601
|
+
"place": "rp_bG1sCa_place",
|
|
34348
34602
|
"link": "rp_bG1sCa_link",
|
|
34603
|
+
"placeName": "rp_bG1sCa_placeName",
|
|
34349
34604
|
"head": "rp_bG1sCa_head",
|
|
34350
|
-
"
|
|
34351
|
-
"
|
|
34605
|
+
"block": "rp_bG1sCa_block",
|
|
34606
|
+
"tag": "rp_bG1sCa_tag",
|
|
34607
|
+
"journal": "rp_bG1sCa_journal",
|
|
34608
|
+
"map": "rp_bG1sCa_map",
|
|
34609
|
+
"notes": "rp_bG1sCa_notes",
|
|
34610
|
+
"heading": "rp_bG1sCa_heading"
|
|
34352
34611
|
};
|
|
34353
34612
|
// src/client/reference/sections/Journal.tsx
|
|
34354
34613
|
/** How long typing pauses before the notes are saved. */
|
|
@@ -35444,28 +35703,28 @@ window.__ModuleLoader__.load({
|
|
|
35444
35703
|
}
|
|
35445
35704
|
tag$7.textContent = css$7;
|
|
35446
35705
|
var ChatSettingsView_module_css_default = {
|
|
35447
|
-
"field": "rp_wLpbxW_field",
|
|
35448
|
-
"activityBody": "rp_wLpbxW_activityBody",
|
|
35449
|
-
"description": "rp_wLpbxW_description",
|
|
35450
|
-
"view": "rp_wLpbxW_view",
|
|
35451
|
-
"notice": "rp_wLpbxW_notice",
|
|
35452
|
-
"help": "rp_wLpbxW_help",
|
|
35453
|
-
"activity": "rp_wLpbxW_activity",
|
|
35454
|
-
"link": "rp_wLpbxW_link",
|
|
35455
|
-
"label": "rp_wLpbxW_label",
|
|
35456
|
-
"actions": "rp_wLpbxW_actions",
|
|
35457
|
-
"reasons": "rp_wLpbxW_reasons",
|
|
35458
|
-
"run": "rp_wLpbxW_run",
|
|
35459
|
-
"saved": "rp_wLpbxW_saved",
|
|
35460
35706
|
"message": "rp_wLpbxW_message",
|
|
35707
|
+
"table": "rp_wLpbxW_table",
|
|
35708
|
+
"select": "rp_wLpbxW_select",
|
|
35709
|
+
"activity": "rp_wLpbxW_activity",
|
|
35461
35710
|
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
35711
|
+
"help": "rp_wLpbxW_help",
|
|
35462
35712
|
"list": "rp_wLpbxW_list",
|
|
35463
|
-
"
|
|
35713
|
+
"row": "rp_wLpbxW_row",
|
|
35464
35714
|
"pre": "rp_wLpbxW_pre",
|
|
35465
|
-
"
|
|
35715
|
+
"link": "rp_wLpbxW_link",
|
|
35466
35716
|
"error": "rp_wLpbxW_error",
|
|
35467
|
-
"
|
|
35468
|
-
"
|
|
35717
|
+
"run": "rp_wLpbxW_run",
|
|
35718
|
+
"reasons": "rp_wLpbxW_reasons",
|
|
35719
|
+
"activityBody": "rp_wLpbxW_activityBody",
|
|
35720
|
+
"notice": "rp_wLpbxW_notice",
|
|
35721
|
+
"saved": "rp_wLpbxW_saved",
|
|
35722
|
+
"title": "rp_wLpbxW_title",
|
|
35723
|
+
"field": "rp_wLpbxW_field",
|
|
35724
|
+
"label": "rp_wLpbxW_label",
|
|
35725
|
+
"actions": "rp_wLpbxW_actions",
|
|
35726
|
+
"description": "rp_wLpbxW_description",
|
|
35727
|
+
"view": "rp_wLpbxW_view"
|
|
35469
35728
|
};
|
|
35470
35729
|
// src/client/chat-settings/settings-api.ts
|
|
35471
35730
|
/** The chat is not a roleplay session, so it has no settings. */
|
|
@@ -39883,11 +40142,11 @@ window.__ModuleLoader__.load({
|
|
|
39883
40142
|
tag$6.textContent = css$6;
|
|
39884
40143
|
var SettingsForm_module_css_default = {
|
|
39885
40144
|
"failed": "rp_eL0Ehq_failed",
|
|
39886
|
-
"form": "rp_eL0Ehq_form",
|
|
39887
40145
|
"unavailable": "rp_eL0Ehq_unavailable",
|
|
40146
|
+
"form": "rp_eL0Ehq_form",
|
|
40147
|
+
"footer": "rp_eL0Ehq_footer",
|
|
39888
40148
|
"save": "rp_eL0Ehq_save",
|
|
39889
|
-
"readOnly": "rp_eL0Ehq_readOnly"
|
|
39890
|
-
"footer": "rp_eL0Ehq_footer"
|
|
40149
|
+
"readOnly": "rp_eL0Ehq_readOnly"
|
|
39891
40150
|
};
|
|
39892
40151
|
// src/client/ui/SettingsForm.tsx
|
|
39893
40152
|
/**
|
|
@@ -39944,17 +40203,17 @@ window.__ModuleLoader__.load({
|
|
|
39944
40203
|
}
|
|
39945
40204
|
tag$5.textContent = css$5;
|
|
39946
40205
|
var SettingsValueField_module_css_default = {
|
|
40206
|
+
"invalid": "rp_AFBKEG_invalid",
|
|
39947
40207
|
"head": "rp_AFBKEG_head",
|
|
39948
|
-
"badges": "rp_AFBKEG_badges",
|
|
39949
|
-
"input": "rp_AFBKEG_input",
|
|
39950
|
-
"helpButton": "rp_AFBKEG_helpButton",
|
|
39951
|
-
"reset": "rp_AFBKEG_reset",
|
|
39952
40208
|
"hint": "rp_AFBKEG_hint",
|
|
39953
|
-
"
|
|
39954
|
-
"label": "rp_AFBKEG_label",
|
|
40209
|
+
"input": "rp_AFBKEG_input",
|
|
39955
40210
|
"labelGroup": "rp_AFBKEG_labelGroup",
|
|
39956
40211
|
"help": "rp_AFBKEG_help",
|
|
39957
|
-
"
|
|
40212
|
+
"label": "rp_AFBKEG_label",
|
|
40213
|
+
"badges": "rp_AFBKEG_badges",
|
|
40214
|
+
"reset": "rp_AFBKEG_reset",
|
|
40215
|
+
"field": "rp_AFBKEG_field",
|
|
40216
|
+
"helpButton": "rp_AFBKEG_helpButton"
|
|
39958
40217
|
};
|
|
39959
40218
|
// src/client/ui/SettingsValueField.tsx
|
|
39960
40219
|
/**
|
|
@@ -40040,16 +40299,16 @@ window.__ModuleLoader__.load({
|
|
|
40040
40299
|
}
|
|
40041
40300
|
tag$4.textContent = css$4;
|
|
40042
40301
|
var CatalogueSettings_module_css_default = {
|
|
40043
|
-
"
|
|
40044
|
-
"hint": "rp_KPhXDa_hint",
|
|
40045
|
-
"row": "rp_KPhXDa_row",
|
|
40046
|
-
"keyHint": "rp_KPhXDa_keyHint",
|
|
40047
|
-
"section": "rp_KPhXDa_section",
|
|
40048
|
-
"keyArea": "rp_KPhXDa_keyArea",
|
|
40302
|
+
"problem": "rp_KPhXDa_problem",
|
|
40049
40303
|
"field": "rp_KPhXDa_field",
|
|
40050
40304
|
"title": "rp_KPhXDa_title",
|
|
40051
|
-
"
|
|
40052
|
-
"
|
|
40305
|
+
"keyArea": "rp_KPhXDa_keyArea",
|
|
40306
|
+
"keyHint": "rp_KPhXDa_keyHint",
|
|
40307
|
+
"row": "rp_KPhXDa_row",
|
|
40308
|
+
"label": "rp_KPhXDa_label",
|
|
40309
|
+
"actions": "rp_KPhXDa_actions",
|
|
40310
|
+
"section": "rp_KPhXDa_section",
|
|
40311
|
+
"hint": "rp_KPhXDa_hint"
|
|
40053
40312
|
};
|
|
40054
40313
|
// src/client/settings/AuthoringToolSettings.tsx
|
|
40055
40314
|
const boardOf = (text) => {
|
|
@@ -40289,17 +40548,17 @@ window.__ModuleLoader__.load({
|
|
|
40289
40548
|
}
|
|
40290
40549
|
tag$3.textContent = css$3;
|
|
40291
40550
|
var AssistantSettings_module_css_default = {
|
|
40292
|
-
"hint": "rp_ZwzM4q_hint",
|
|
40293
40551
|
"head": "rp_ZwzM4q_head",
|
|
40294
40552
|
"invalid": "rp_ZwzM4q_invalid",
|
|
40553
|
+
"fieldHint": "rp_ZwzM4q_fieldHint",
|
|
40295
40554
|
"title": "rp_ZwzM4q_title",
|
|
40296
|
-
"
|
|
40555
|
+
"fields": "rp_ZwzM4q_fields",
|
|
40297
40556
|
"field": "rp_ZwzM4q_field",
|
|
40298
40557
|
"section": "rp_ZwzM4q_section",
|
|
40299
|
-
"fields": "rp_ZwzM4q_fields",
|
|
40300
|
-
"badges": "rp_ZwzM4q_badges",
|
|
40301
40558
|
"reset": "rp_ZwzM4q_reset",
|
|
40302
|
-
"
|
|
40559
|
+
"label": "rp_ZwzM4q_label",
|
|
40560
|
+
"badges": "rp_ZwzM4q_badges",
|
|
40561
|
+
"hint": "rp_ZwzM4q_hint",
|
|
40303
40562
|
"select": "rp_ZwzM4q_select"
|
|
40304
40563
|
};
|
|
40305
40564
|
// src/client/settings/AssistantSettings.tsx
|
|
@@ -41356,7 +41615,7 @@ window.__ModuleLoader__.load({
|
|
|
41356
41615
|
importDecisionModel: "Decision model first",
|
|
41357
41616
|
assistantInvalidRange: "Enter a number from {min} to {max}.",
|
|
41358
41617
|
assistantInvalidChoice: "Choose one of the available options.",
|
|
41359
|
-
redundantLayers: "The profile selects
|
|
41618
|
+
redundantLayers: "The profile selects more than one Role Play bundle layer, so a Role Play plugin row exists twice and DSH refuses to save these settings. In your plugin manager keep one layer, either @dsh-agentic-roleplay/all or @dsh-agentic-roleplay/core (the state package needs none of its own), keep the packages installed, and restart.",
|
|
41360
41619
|
limits: "Upload and download limits",
|
|
41361
41620
|
limitsHint: "Size limits for what the plugin accepts, and how long it keeps what an update replaced. They apply at once.",
|
|
41362
41621
|
importMaxUploadBytesLabel: "Largest upload (bytes)",
|
|
@@ -41468,7 +41727,7 @@ window.__ModuleLoader__.load({
|
|
|
41468
41727
|
importDecisionModel: "优先使用决策模型",
|
|
41469
41728
|
assistantInvalidRange: "请输入 {min} 到 {max} 之间的数字。",
|
|
41470
41729
|
assistantInvalidChoice: "请选择一个可用选项。",
|
|
41471
|
-
redundantLayers: "
|
|
41730
|
+
redundantLayers: "配置档案选中了多个角色扮演套件层,导致角色扮演的插件行出现两次,DSH 因此拒绝保存这些设置。请在插件管理器中只保留一个层:@dsh-agentic-roleplay/all 或 @dsh-agentic-roleplay/core(状态包不需要单独的层);包保持安装,然后重启。",
|
|
41472
41731
|
limits: "上传与下载限制",
|
|
41473
41732
|
limitsHint: "插件接收内容的大小限制,以及更新后被替换的文件保留多久。立即生效。",
|
|
41474
41733
|
importMaxUploadBytesLabel: "上传大小上限(字节)",
|
|
@@ -41580,7 +41839,7 @@ window.__ModuleLoader__.load({
|
|
|
41580
41839
|
importDecisionModel: "判定モデルを先に使う",
|
|
41581
41840
|
assistantInvalidRange: "{min}~{max} の数値を入力してください。",
|
|
41582
41841
|
assistantInvalidChoice: "利用可能な選択肢から選んでください。",
|
|
41583
|
-
redundantLayers: "
|
|
41842
|
+
redundantLayers: "プロファイルが複数のロールプレイ用バンドル層を選んでいるため、プラグイン行が二重になり、DSH はこの設定を保存できません。プラグインマネージャーで @dsh-agentic-roleplay/all か @dsh-agentic-roleplay/core のどちらか一つだけを残してください(state パッケージに専用の層は不要です)。パッケージはインストールしたまま再起動してください。",
|
|
41584
41843
|
limits: "アップロードとダウンロードの制限",
|
|
41585
41844
|
limitsHint: "受け入れるサイズと、更新で置換したファイルの保存期間です。すぐ反映されます。",
|
|
41586
41845
|
importMaxUploadBytesLabel: "最大アップロード(バイト)",
|
|
@@ -41692,7 +41951,7 @@ window.__ModuleLoader__.load({
|
|
|
41692
41951
|
importDecisionModel: "Modelo de decisión primero",
|
|
41693
41952
|
assistantInvalidRange: "Introduce un número entre {min} y {max}.",
|
|
41694
41953
|
assistantInvalidChoice: "Elige una opción disponible.",
|
|
41695
|
-
redundantLayers: "El perfil selecciona una capa
|
|
41954
|
+
redundantLayers: "El perfil selecciona más de una capa del paquete de Juego de rol, por lo que una fila del complemento aparece dos veces y DSH no puede guardar estos ajustes. En el gestor de complementos deja una sola capa, @dsh-agentic-roleplay/all o @dsh-agentic-roleplay/core (el paquete state no necesita la suya), mantén los paquetes instalados y reinicia.",
|
|
41696
41955
|
limits: "Límites de subida y descarga",
|
|
41697
41956
|
limitsHint: "Límites de tamaño y tiempo de conservación de archivos sustituidos. Se aplican inmediatamente.",
|
|
41698
41957
|
importMaxUploadBytesLabel: "Subida máxima (bytes)",
|
|
@@ -41804,7 +42063,7 @@ window.__ModuleLoader__.load({
|
|
|
41804
42063
|
importDecisionModel: "Modèle de décision d’abord",
|
|
41805
42064
|
assistantInvalidRange: "Saisissez un nombre entre {min} et {max}.",
|
|
41806
42065
|
assistantInvalidChoice: "Choisissez une option disponible.",
|
|
41807
|
-
redundantLayers: "Le profil sélectionne
|
|
42066
|
+
redundantLayers: "Le profil sélectionne plusieurs couches du jeu de rôle : une ligne de plugin apparaît deux fois et DSH ne peut pas enregistrer ces réglages. Dans le gestionnaire de plugins, ne gardez qu’une couche, @dsh-agentic-roleplay/all ou @dsh-agentic-roleplay/core (le paquet state n’a pas besoin de la sienne), gardez les paquets installés et redémarrez.",
|
|
41808
42067
|
limits: "Limites de transfert",
|
|
41809
42068
|
limitsHint: "Limites de taille et durée de conservation des fichiers remplacés. Elles s’appliquent immédiatement.",
|
|
41810
42069
|
importMaxUploadBytesLabel: "Taille maximale d’un envoi (octets)",
|
|
@@ -41916,7 +42175,7 @@ window.__ModuleLoader__.load({
|
|
|
41916
42175
|
importDecisionModel: "Entscheidungsmodell zuerst",
|
|
41917
42176
|
assistantInvalidRange: "Gib eine Zahl von {min} bis {max} ein.",
|
|
41918
42177
|
assistantInvalidChoice: "Wähle eine verfügbare Option.",
|
|
41919
|
-
redundantLayers: "Das Profil wählt
|
|
42178
|
+
redundantLayers: "Das Profil wählt mehrere Rollenspiel-Bundle-Ebenen aus, daher steht eine Plugin-Zeile doppelt da und DSH kann diese Einstellungen nicht speichern. Behalten Sie im Plugin-Manager nur eine Ebene, entweder @dsh-agentic-roleplay/all oder @dsh-agentic-roleplay/core (das state-Paket braucht keine eigene), lassen Sie die Pakete installiert und starten Sie neu.",
|
|
41920
42179
|
limits: "Upload- und Downloadgrenzen",
|
|
41921
42180
|
limitsHint: "Größengrenzen und Aufbewahrungsdauer ersetzter Dateien. Gelten sofort.",
|
|
41922
42181
|
importMaxUploadBytesLabel: "Größter Upload (Byte)",
|
|
@@ -42028,7 +42287,7 @@ window.__ModuleLoader__.load({
|
|
|
42028
42287
|
importDecisionModel: "Сначала модель решений",
|
|
42029
42288
|
assistantInvalidRange: "Введите число от {min} до {max}.",
|
|
42030
42289
|
assistantInvalidChoice: "Выберите доступный вариант.",
|
|
42031
|
-
redundantLayers: "
|
|
42290
|
+
redundantLayers: "Профиль выбирает несколько слоёв ролевой игры, поэтому строка плагина встречается дважды, и DSH не может сохранить эти настройки. В менеджере плагинов оставьте один слой — @dsh-agentic-roleplay/all или @dsh-agentic-roleplay/core (пакету state собственный слой не нужен), пакеты оставьте установленными и перезапустите.",
|
|
42032
42291
|
limits: "Ограничения загрузки",
|
|
42033
42292
|
limitsHint: "Ограничения размера и срок хранения заменённых файлов. Действуют сразу.",
|
|
42034
42293
|
importMaxUploadBytesLabel: "Максимальная отправка (байт)",
|
|
@@ -42140,7 +42399,7 @@ window.__ModuleLoader__.load({
|
|
|
42140
42399
|
importDecisionModel: "Modelo de decisão primeiro",
|
|
42141
42400
|
assistantInvalidRange: "Introduza um número entre {min} e {max}.",
|
|
42142
42401
|
assistantInvalidChoice: "Escolha uma opção disponível.",
|
|
42143
|
-
redundantLayers: "O perfil seleciona uma camada
|
|
42402
|
+
redundantLayers: "O perfil seleciona mais de uma camada do pacote de Roleplay, por isso uma linha de plugin aparece duas vezes e o DSH não consegue guardar estas definições. No gestor de plugins, deixe só uma camada, @dsh-agentic-roleplay/all ou @dsh-agentic-roleplay/core (o pacote state não precisa da sua), mantenha os pacotes instalados e reinicie.",
|
|
42144
42403
|
limits: "Limites de carregamento",
|
|
42145
42404
|
limitsHint: "Limites de tamanho e duração de conservação dos ficheiros substituídos. Aplicam-se imediatamente.",
|
|
42146
42405
|
importMaxUploadBytesLabel: "Carregamento máximo (bytes)",
|
|
@@ -42736,28 +42995,28 @@ window.__ModuleLoader__.load({
|
|
|
42736
42995
|
}
|
|
42737
42996
|
tag$2.textContent = css$2;
|
|
42738
42997
|
var NarrationView_module_css_default = {
|
|
42739
|
-
"playAll": "rp_NFPimG_playAll",
|
|
42740
|
-
"name": "rp_NFPimG_name",
|
|
42741
|
-
"speech": "rp_NFPimG_speech",
|
|
42742
|
-
"oocRefused": "rp_NFPimG_oocRefused",
|
|
42743
|
-
"imageButton": "rp_NFPimG_imageButton",
|
|
42744
|
-
"words": "rp_NFPimG_words",
|
|
42745
|
-
"diceList": "rp_NFPimG_diceList",
|
|
42746
42998
|
"imageStatus": "rp_NFPimG_imageStatus",
|
|
42747
|
-
"
|
|
42999
|
+
"name": "rp_NFPimG_name",
|
|
42748
43000
|
"narration": "rp_NFPimG_narration",
|
|
42749
|
-
"output": "rp_NFPimG_output",
|
|
42750
43001
|
"preview": "rp_NFPimG_preview",
|
|
42751
|
-
"
|
|
42752
|
-
"
|
|
42753
|
-
"
|
|
43002
|
+
"oocRefused": "rp_NFPimG_oocRefused",
|
|
43003
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
43004
|
+
"imageError": "rp_NFPimG_imageError",
|
|
42754
43005
|
"images": "rp_NFPimG_images",
|
|
43006
|
+
"note": "rp_NFPimG_note",
|
|
43007
|
+
"oocNote": "rp_NFPimG_oocNote",
|
|
43008
|
+
"sceneImage": "rp_NFPimG_sceneImage",
|
|
42755
43009
|
"dice": "rp_NFPimG_dice",
|
|
42756
43010
|
"diceSummary": "rp_NFPimG_diceSummary",
|
|
42757
|
-
"note": "rp_NFPimG_note",
|
|
42758
|
-
"avatar": "rp_NFPimG_avatar",
|
|
42759
43011
|
"oocLabel": "rp_NFPimG_oocLabel",
|
|
42760
|
-
"
|
|
43012
|
+
"output": "rp_NFPimG_output",
|
|
43013
|
+
"speech": "rp_NFPimG_speech",
|
|
43014
|
+
"words": "rp_NFPimG_words",
|
|
43015
|
+
"playAll": "rp_NFPimG_playAll",
|
|
43016
|
+
"playLine": "rp_NFPimG_playLine",
|
|
43017
|
+
"avatar": "rp_NFPimG_avatar",
|
|
43018
|
+
"line": "rp_NFPimG_line",
|
|
43019
|
+
"diceList": "rp_NFPimG_diceList"
|
|
42761
43020
|
};
|
|
42762
43021
|
// src/client/transcript/PreviewNode.tsx
|
|
42763
43022
|
/**
|
|
@@ -43021,11 +43280,11 @@ window.__ModuleLoader__.load({
|
|
|
43021
43280
|
}
|
|
43022
43281
|
tag$1.textContent = css$1;
|
|
43023
43282
|
var SuggestionsDock_module_css_default = {
|
|
43283
|
+
"label": "rp_rWH4DG_label",
|
|
43024
43284
|
"card": "rp_rWH4DG_card",
|
|
43025
|
-
"chip": "rp_rWH4DG_chip",
|
|
43026
43285
|
"dock": "rp_rWH4DG_dock",
|
|
43027
|
-
"
|
|
43028
|
-
"
|
|
43286
|
+
"lines": "rp_rWH4DG_lines",
|
|
43287
|
+
"chip": "rp_rWH4DG_chip"
|
|
43029
43288
|
};
|
|
43030
43289
|
// src/client/transcript/SuggestionsDock.tsx
|
|
43031
43290
|
/** The suggestions are made after the output is shown, so they are asked for until they are there. */
|
|
@@ -43185,16 +43444,16 @@ window.__ModuleLoader__.load({
|
|
|
43185
43444
|
}
|
|
43186
43445
|
tag.textContent = css;
|
|
43187
43446
|
var TurnsDock_module_css_default = {
|
|
43188
|
-
"group": "rp_f4YLlq_group",
|
|
43189
|
-
"error": "rp_f4YLlq_error",
|
|
43190
|
-
"comparisonLine": "rp_f4YLlq_comparisonLine",
|
|
43191
43447
|
"comparison": "rp_f4YLlq_comparison",
|
|
43448
|
+
"error": "rp_f4YLlq_error",
|
|
43192
43449
|
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
43193
|
-
"dock": "rp_f4YLlq_dock",
|
|
43194
43450
|
"button": "rp_f4YLlq_button",
|
|
43451
|
+
"dock": "rp_f4YLlq_dock",
|
|
43452
|
+
"comparisonLine": "rp_f4YLlq_comparisonLine",
|
|
43195
43453
|
"select": "rp_f4YLlq_select",
|
|
43196
|
-
"
|
|
43197
|
-
"count": "rp_f4YLlq_count"
|
|
43454
|
+
"group": "rp_f4YLlq_group",
|
|
43455
|
+
"count": "rp_f4YLlq_count",
|
|
43456
|
+
"comparisonSubject": "rp_f4YLlq_comparisonSubject"
|
|
43198
43457
|
};
|
|
43199
43458
|
// src/client/transcript/withdrawn.ts
|
|
43200
43459
|
/** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */
|