@dsh-agentic-roleplay/core 0.12.7 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{authoring-tools-Bi9YQ9QH.js → authoring-tools-CKV1UnN7.js} +1089 -129
- package/lib/authoring.js +130 -37
- package/lib/client.js +1251 -662
- package/lib/client.js.map +1 -1
- package/lib/doctor.js +1 -1
- package/lib/{gallery-BT5lf-T5.js → gallery-CT5uj50b.js} +2 -2
- package/lib/{hooks-DR-HqE50.js → hooks-CnxV2uEh.js} +43 -16
- package/lib/images.js +3 -3
- package/lib/index.js +336 -15
- package/lib/{interpreter-BYNrjYZo.js → interpreter-Cz5qsuXk.js} +3 -3
- package/lib/{lorebook-author-tools-BI-r8fEt.js → lorebook-author-tools-p3Nfpuxh.js} +6 -6
- package/lib/lorebook-authoring.js +5 -5
- package/lib/orchestration.js +15 -10
- package/lib/{pack-jail-Y1XPbqHw.js → pack-jail-KyZen_gy.js} +9 -9
- package/lib/{packs-DD-v-Epl.js → packs-DU171pDX.js} +2 -2
- package/lib/{presenter-agent-00sOVGI9.js → presenter-agent-CwDg0WE8.js} +2 -2
- package/lib/{preset-Bnx3jhUv.js → preset-BO8iWQ-n.js} +3 -3
- package/lib/{preset-author-tools-DYrBcieA.js → preset-author-tools-C83shASm.js} +6 -6
- package/lib/preset-authoring.js +5 -5
- package/lib/{reflection-DqxoV9xE.js → reflection-CXS87Di3.js} +6 -6
- package/lib/{serial-CS46qAvI.js → serial-xcAG57p_.js} +148 -38
- package/lib/{text-B-HsLdb-.js → text-KnqhN_Zv.js} +4 -1
- package/lib/{turn-guard-bZkxzRXJ.js → turn-guard-CfsGepCg.js} +2 -2
- package/package.json +2 -2
- package/prompts/en/import/next-stage-go.md +1 -0
- package/prompts/en/import/next-stage-paused.md +1 -0
- package/prompts/en/import/next-survey-paused.md +1 -0
- package/prompts/en/import/notice-staged.md +5 -0
- package/prompts/en/import/pause-stages.md +1 -0
- package/prompts/en/import/pause-survey.md +1 -0
- package/prompts/en/world/procedure.md +3 -0
- package/prompts/zh/import/next-stage-go.md +1 -0
- package/prompts/zh/import/next-stage-paused.md +1 -0
- package/prompts/zh/import/next-survey-paused.md +1 -0
- package/prompts/zh/import/notice-staged.md +5 -0
- package/prompts/zh/import/pause-stages.md +1 -0
- package/prompts/zh/import/pause-survey.md +1 -0
- package/prompts/zh/world/procedure.md +3 -0
package/lib/client.js
CHANGED
|
@@ -404,19 +404,19 @@ window.__ModuleLoader__.load({
|
|
|
404
404
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUsers, { size });
|
|
405
405
|
}
|
|
406
406
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/page-tabs/PageTabs.module.css.mjs
|
|
407
|
-
const css$
|
|
408
|
-
const key$
|
|
409
|
-
let tag$
|
|
410
|
-
if (tag$
|
|
411
|
-
tag$
|
|
412
|
-
tag$
|
|
413
|
-
tag$
|
|
414
|
-
document.head.appendChild(tag$
|
|
415
|
-
}
|
|
416
|
-
tag$
|
|
407
|
+
const css$54 = ".rp_LrKukW_tabs{scrollbar-width:none;gap:24px;margin-bottom:-1px;display:flex;overflow-x:auto}.rp_LrKukW_tabs::-webkit-scrollbar{display:none}.rp_LrKukW_tab{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:0;margin:0;padding:8px 0;font-size:13px;line-height:20px;box-shadow:inset 0 -2px #0000}.rp_LrKukW_tab:hover{color:var(--dsw-alias-label-primary)}.rp_LrKukW_tab[aria-selected=true]{color:var(--dsw-alias-state-business-primary);font-weight:500;box-shadow:inset 0 -2px}.rp_LrKukW_tab:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}";
|
|
408
|
+
const key$54 = "src/client/widgets/page-tabs/PageTabs.module.css";
|
|
409
|
+
let tag$54 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$54) + "]");
|
|
410
|
+
if (tag$54 === null) {
|
|
411
|
+
tag$54 = document.createElement("style");
|
|
412
|
+
tag$54.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
413
|
+
tag$54.dataset.pluginCss = key$54;
|
|
414
|
+
document.head.appendChild(tag$54);
|
|
415
|
+
}
|
|
416
|
+
tag$54.textContent = css$54;
|
|
417
417
|
var PageTabs_module_css_default = {
|
|
418
|
-
"
|
|
419
|
-
"
|
|
418
|
+
"tab": "rp_LrKukW_tab",
|
|
419
|
+
"tabs": "rp_LrKukW_tabs"
|
|
420
420
|
};
|
|
421
421
|
// src/client/widgets/page-tabs/PageTabs.tsx
|
|
422
422
|
/** Underlined text tabs; arrow keys, Home and End move between them. */
|
|
@@ -458,20 +458,20 @@ window.__ModuleLoader__.load({
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/RoleplayPanel.module.css.mjs
|
|
461
|
-
const css$
|
|
462
|
-
const key$
|
|
463
|
-
let tag$
|
|
464
|
-
if (tag$
|
|
465
|
-
tag$
|
|
466
|
-
tag$
|
|
467
|
-
tag$
|
|
468
|
-
document.head.appendChild(tag$
|
|
461
|
+
const css$53 = ".rp_ua5gBa_panel{min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;display:flex}.rp_ua5gBa_header{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;padding:12px 24px 0}.rp_ua5gBa_title{margin:0 0 4px;font-size:14px;font-weight:500;line-height:22px}.rp_ua5gBa_body{flex-direction:column;flex:1 1 0;min-height:0;padding:12px 24px 16px;display:flex}@media (width<=640px){.rp_ua5gBa_header,.rp_ua5gBa_body{padding-inline:16px}}";
|
|
462
|
+
const key$53 = "src/client/panel/RoleplayPanel.module.css";
|
|
463
|
+
let tag$53 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$53) + "]");
|
|
464
|
+
if (tag$53 === null) {
|
|
465
|
+
tag$53 = document.createElement("style");
|
|
466
|
+
tag$53.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
467
|
+
tag$53.dataset.pluginCss = key$53;
|
|
468
|
+
document.head.appendChild(tag$53);
|
|
469
469
|
}
|
|
470
|
-
tag$
|
|
470
|
+
tag$53.textContent = css$53;
|
|
471
471
|
var RoleplayPanel_module_css_default = {
|
|
472
472
|
"title": "rp_ua5gBa_title",
|
|
473
|
-
"panel": "rp_ua5gBa_panel",
|
|
474
473
|
"body": "rp_ua5gBa_body",
|
|
474
|
+
"panel": "rp_ua5gBa_panel",
|
|
475
475
|
"header": "rp_ua5gBa_header"
|
|
476
476
|
};
|
|
477
477
|
// src/client/panel/RoleplayPanel.tsx
|
|
@@ -517,7 +517,7 @@ window.__ModuleLoader__.load({
|
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
// src/client/panel/locales.ts
|
|
520
|
-
const dictionaries$
|
|
520
|
+
const dictionaries$29 = {
|
|
521
521
|
en: {
|
|
522
522
|
label: "Role Play",
|
|
523
523
|
heading: "DSH Agentic Role Play",
|
|
@@ -678,7 +678,7 @@ window.__ModuleLoader__.load({
|
|
|
678
678
|
/** Adds the Role Play entry to the sidebar and the main panel it opens. */
|
|
679
679
|
function registerPanel(ctx) {
|
|
680
680
|
const t = ctx.locale.bind(NAMESPACE$17);
|
|
681
|
-
ctx.effect(() => ctx.locale.register(NAMESPACE$17, dictionaries$
|
|
681
|
+
ctx.effect(() => ctx.locale.register(NAMESPACE$17, dictionaries$29), "roleplay: panel dictionaries");
|
|
682
682
|
const pages = createPagesSource(ctx);
|
|
683
683
|
ctx.effect(() => pages.start(), "roleplay: page list");
|
|
684
684
|
const handle = createPanelStore();
|
|
@@ -844,7 +844,7 @@ window.__ModuleLoader__.load({
|
|
|
844
844
|
return `${trimCharacters(baseUrl.trim(), "/", "end")}/versions/${encodeURIComponent(versionId)}/download`;
|
|
845
845
|
}
|
|
846
846
|
// src/client/pages/catalogue/catalogue-controller.ts
|
|
847
|
-
const messageOf$
|
|
847
|
+
const messageOf$16 = (error) => error instanceof Error ? error.message : String(error);
|
|
848
848
|
/** The configured catalogues as the host sees them, read again whenever the settings change. */
|
|
849
849
|
var CatalogueController = class {
|
|
850
850
|
openChat;
|
|
@@ -885,7 +885,7 @@ window.__ModuleLoader__.load({
|
|
|
885
885
|
} catch (error) {
|
|
886
886
|
if (this.abort.signal.aborted) return;
|
|
887
887
|
this.store.update((draft) => {
|
|
888
|
-
draft.error = messageOf$
|
|
888
|
+
draft.error = messageOf$16(error);
|
|
889
889
|
if (draft.status === "loading") draft.status = "failed";
|
|
890
890
|
});
|
|
891
891
|
}
|
|
@@ -895,25 +895,25 @@ window.__ModuleLoader__.load({
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Button.module.css.mjs
|
|
898
|
-
const css$
|
|
899
|
-
const key$
|
|
900
|
-
let tag$
|
|
901
|
-
if (tag$
|
|
902
|
-
tag$
|
|
903
|
-
tag$
|
|
904
|
-
tag$
|
|
905
|
-
document.head.appendChild(tag$
|
|
898
|
+
const css$52 = ".rp_wwotfa_rpButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;color:var(--dsw-alias-label-primary);background:0 0;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.rp_wwotfa_rpButton:disabled{cursor:not-allowed;opacity:.4}.rp_wwotfa_rpMd{height:36px}.rp_wwotfa_rpSm{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.rp_wwotfa_rpPrimary{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}@media (hover:hover){.rp_wwotfa_rpPrimary:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.rp_wwotfa_rpGhost:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.rp_wwotfa_rpGhost:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}.rp_wwotfa_rpOutline{box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsh-button-outline-color,var(--dsw-alias-border-l3));background:0 0;border:.5px solid #0000}@media (hover:hover){.rp_wwotfa_rpOutline:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.rp_wwotfa_rpToolbar{background:var(--dsw-alias-button-tool-bar-fill)}@media (hover:hover){.rp_wwotfa_rpToolbar:hover:not(:disabled){background:var(--dsw-alias-button-tool-bar-hover)}}.rp_wwotfa_rpIcon{justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}";
|
|
899
|
+
const key$52 = "src/client/ui/Button.module.css";
|
|
900
|
+
let tag$52 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$52) + "]");
|
|
901
|
+
if (tag$52 === null) {
|
|
902
|
+
tag$52 = document.createElement("style");
|
|
903
|
+
tag$52.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
904
|
+
tag$52.dataset.pluginCss = key$52;
|
|
905
|
+
document.head.appendChild(tag$52);
|
|
906
906
|
}
|
|
907
|
-
tag$
|
|
907
|
+
tag$52.textContent = css$52;
|
|
908
908
|
var Button_module_css_default = {
|
|
909
|
-
"
|
|
909
|
+
"rpButton": "rp_wwotfa_rpButton",
|
|
910
910
|
"rpIcon": "rp_wwotfa_rpIcon",
|
|
911
|
-
"
|
|
912
|
-
"rpGhost": "rp_wwotfa_rpGhost",
|
|
911
|
+
"rpToolbar": "rp_wwotfa_rpToolbar",
|
|
913
912
|
"rpMd": "rp_wwotfa_rpMd",
|
|
913
|
+
"rpGhost": "rp_wwotfa_rpGhost",
|
|
914
|
+
"rpSm": "rp_wwotfa_rpSm",
|
|
914
915
|
"rpPrimary": "rp_wwotfa_rpPrimary",
|
|
915
|
-
"
|
|
916
|
-
"rpButton": "rp_wwotfa_rpButton"
|
|
916
|
+
"rpOutline": "rp_wwotfa_rpOutline"
|
|
917
917
|
};
|
|
918
918
|
// src/client/ui/Button.tsx
|
|
919
919
|
/** Render a button; native button attributes pass through, and `icon` is a leading 16px node. */
|
|
@@ -936,16 +936,16 @@ window.__ModuleLoader__.load({
|
|
|
936
936
|
});
|
|
937
937
|
});
|
|
938
938
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Tag.module.css.mjs
|
|
939
|
-
const css$
|
|
940
|
-
const key$
|
|
941
|
-
let tag$
|
|
942
|
-
if (tag$
|
|
943
|
-
tag$
|
|
944
|
-
tag$
|
|
945
|
-
tag$
|
|
946
|
-
document.head.appendChild(tag$
|
|
939
|
+
const css$51 = ".rp_R752CG_rpTag{corner-shape:round;white-space:nowrap;border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.rp_R752CG_rpTag[data-tone=outline]{border:.5px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-tertiary)}.rp_R752CG_rpTag[data-tone=solid]{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}.rp_R752CG_rpTag[data-tone=neutral]{background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary)}.rp_R752CG_rpTag[data-tone=quiet]{color:var(--dsw-alias-label-tertiary)}.rp_R752CG_rpTag[data-tone=success]{background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 10%, transparent);color:var(--dsw-alias-state-success-primary)}.rp_R752CG_rpTag[data-tone=info]{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);color:var(--dsw-alias-state-business-primary)}.rp_R752CG_rpTag[data-tone=warning]{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 12%, transparent);color:var(--dsw-alias-state-warn-primary)}.rp_R752CG_rpTag[data-tone=danger]{background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);color:var(--dsw-alias-state-error-primary)}";
|
|
940
|
+
const key$51 = "src/client/ui/Tag.module.css";
|
|
941
|
+
let tag$51 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$51) + "]");
|
|
942
|
+
if (tag$51 === null) {
|
|
943
|
+
tag$51 = document.createElement("style");
|
|
944
|
+
tag$51.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
945
|
+
tag$51.dataset.pluginCss = key$51;
|
|
946
|
+
document.head.appendChild(tag$51);
|
|
947
947
|
}
|
|
948
|
-
tag$
|
|
948
|
+
tag$51.textContent = css$51;
|
|
949
949
|
var Tag_module_css_default = { "rpTag": "rp_R752CG_rpTag" };
|
|
950
950
|
// src/client/ui/Tag.tsx
|
|
951
951
|
/** Render a read-only tag; the label belongs to the render site. */
|
|
@@ -958,16 +958,16 @@ window.__ModuleLoader__.load({
|
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Tooltip.module.css.mjs
|
|
961
|
-
const css$
|
|
962
|
-
const key$
|
|
963
|
-
let tag$
|
|
964
|
-
if (tag$
|
|
965
|
-
tag$
|
|
966
|
-
tag$
|
|
967
|
-
tag$
|
|
968
|
-
document.head.appendChild(tag$
|
|
961
|
+
const css$50 = ".rp_ucrTbq_bubble{z-index:1200;box-sizing:border-box;border-radius:var(--dsw-radius-sm,6px);background:var(--dsw-alias-bg-layer-3,#202020f5);color:var(--dsw-alias-label-primary,white);box-shadow:var(--dsw-elevation-medium,0 4px 12px #0000003d);pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere;padding:6px 10px;font-size:12px;line-height:18px;position:fixed}";
|
|
962
|
+
const key$50 = "src/client/ui/Tooltip.module.css";
|
|
963
|
+
let tag$50 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$50) + "]");
|
|
964
|
+
if (tag$50 === null) {
|
|
965
|
+
tag$50 = document.createElement("style");
|
|
966
|
+
tag$50.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
967
|
+
tag$50.dataset.pluginCss = key$50;
|
|
968
|
+
document.head.appendChild(tag$50);
|
|
969
969
|
}
|
|
970
|
-
tag$
|
|
970
|
+
tag$50.textContent = css$50;
|
|
971
971
|
var Tooltip_module_css_default = { "bubble": "rp_ucrTbq_bubble" };
|
|
972
972
|
/**
|
|
973
973
|
* The viewport as the page measures it.
|
|
@@ -1134,16 +1134,16 @@ window.__ModuleLoader__.load({
|
|
|
1134
1134
|
})] });
|
|
1135
1135
|
}
|
|
1136
1136
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Switch.module.css.mjs
|
|
1137
|
-
const css$
|
|
1138
|
-
const key$
|
|
1139
|
-
let tag$
|
|
1140
|
-
if (tag$
|
|
1141
|
-
tag$
|
|
1142
|
-
tag$
|
|
1143
|
-
tag$
|
|
1144
|
-
document.head.appendChild(tag$
|
|
1137
|
+
const css$49 = ".rp_7MP8na_rpSwitch{box-sizing:border-box;corner-shape:round;background:var(--dsw-alias-border-l3);cursor:pointer;border:0;border-radius:999px;flex:none;width:36px;height:20px;padding:2px;position:relative}.rp_7MP8na_rpSwitch[aria-checked=true]{background:var(--dsw-alias-brand-primary)}.rp_7MP8na_rpSwitch:disabled{cursor:default;opacity:.5}.rp_7MP8na_rpSwitch:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_7MP8na_rpThumb{corner-shape:round;background:var(--dsw-alias-label-primary-foreground);border-radius:50%;width:16px;height:16px;transition:transform .12s;display:block}.rp_7MP8na_rpSwitch[aria-checked=false] .rp_7MP8na_rpThumb{background:var(--dsw-alias-switch-thumb)}.rp_7MP8na_rpSwitch[aria-checked=true] .rp_7MP8na_rpThumb{transform:translate(16px)}";
|
|
1138
|
+
const key$49 = "src/client/ui/Switch.module.css";
|
|
1139
|
+
let tag$49 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$49) + "]");
|
|
1140
|
+
if (tag$49 === null) {
|
|
1141
|
+
tag$49 = document.createElement("style");
|
|
1142
|
+
tag$49.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1143
|
+
tag$49.dataset.pluginCss = key$49;
|
|
1144
|
+
document.head.appendChild(tag$49);
|
|
1145
1145
|
}
|
|
1146
|
-
tag$
|
|
1146
|
+
tag$49.textContent = css$49;
|
|
1147
1147
|
var Switch_module_css_default = {
|
|
1148
1148
|
"rpSwitch": "rp_7MP8na_rpSwitch",
|
|
1149
1149
|
"rpThumb": "rp_7MP8na_rpThumb"
|
|
@@ -1169,20 +1169,20 @@ window.__ModuleLoader__.load({
|
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
1171
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Input.module.css.mjs
|
|
1172
|
-
const css$
|
|
1173
|
-
const key$
|
|
1174
|
-
let tag$
|
|
1175
|
-
if (tag$
|
|
1176
|
-
tag$
|
|
1177
|
-
tag$
|
|
1178
|
-
tag$
|
|
1179
|
-
document.head.appendChild(tag$
|
|
1172
|
+
const css$48 = ".rp_QU88dW_rpInputWrap{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);align-items:center;gap:6px;height:32px;padding:0 8px;display:inline-flex}.rp_QU88dW_rpInputWrap:focus-within{border-color:var(--dsw-alias-state-business-primary)}.rp_QU88dW_rpInputIcon{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;display:inline-flex}.rp_QU88dW_rpInput{min-width:0;color:var(--dsw-alias-label-primary);background:0 0;border:none;outline:none;flex:1;font-size:14px;line-height:22px}.rp_QU88dW_rpInput::placeholder{color:var(--dsw-alias-label-dimmed)}";
|
|
1173
|
+
const key$48 = "src/client/ui/Input.module.css";
|
|
1174
|
+
let tag$48 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$48) + "]");
|
|
1175
|
+
if (tag$48 === null) {
|
|
1176
|
+
tag$48 = document.createElement("style");
|
|
1177
|
+
tag$48.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1178
|
+
tag$48.dataset.pluginCss = key$48;
|
|
1179
|
+
document.head.appendChild(tag$48);
|
|
1180
1180
|
}
|
|
1181
|
-
tag$
|
|
1181
|
+
tag$48.textContent = css$48;
|
|
1182
1182
|
var Input_module_css_default = {
|
|
1183
|
+
"rpInputWrap": "rp_QU88dW_rpInputWrap",
|
|
1183
1184
|
"rpInput": "rp_QU88dW_rpInput",
|
|
1184
|
-
"rpInputIcon": "rp_QU88dW_rpInputIcon"
|
|
1185
|
-
"rpInputWrap": "rp_QU88dW_rpInputWrap"
|
|
1185
|
+
"rpInputIcon": "rp_QU88dW_rpInputIcon"
|
|
1186
1186
|
};
|
|
1187
1187
|
// src/client/ui/Input.tsx
|
|
1188
1188
|
/** Render a text input with an optional leading icon; input attributes pass through. */
|
|
@@ -1199,17 +1199,19 @@ window.__ModuleLoader__.load({
|
|
|
1199
1199
|
})]
|
|
1200
1200
|
});
|
|
1201
1201
|
});
|
|
1202
|
+
/** What the pause is for a card: the choice, or the default for its size. */
|
|
1203
|
+
const pauseOf = (choices, entries) => choices.pause ?? (entries >= 30 ? "stages" : "never");
|
|
1202
1204
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/language-select/LanguageSelect.module.css.mjs
|
|
1203
|
-
const css$
|
|
1204
|
-
const key$
|
|
1205
|
-
let tag$
|
|
1206
|
-
if (tag$
|
|
1207
|
-
tag$
|
|
1208
|
-
tag$
|
|
1209
|
-
tag$
|
|
1210
|
-
document.head.appendChild(tag$
|
|
1205
|
+
const css$47 = ".rp_uOuCXG_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px}.rp_uOuCXG_compact{width:auto;min-width:110px}";
|
|
1206
|
+
const key$47 = "src/client/widgets/language-select/LanguageSelect.module.css";
|
|
1207
|
+
let tag$47 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$47) + "]");
|
|
1208
|
+
if (tag$47 === null) {
|
|
1209
|
+
tag$47 = document.createElement("style");
|
|
1210
|
+
tag$47.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1211
|
+
tag$47.dataset.pluginCss = key$47;
|
|
1212
|
+
document.head.appendChild(tag$47);
|
|
1211
1213
|
}
|
|
1212
|
-
tag$
|
|
1214
|
+
tag$47.textContent = css$47;
|
|
1213
1215
|
var LanguageSelect_module_css_default = {
|
|
1214
1216
|
"select": "rp_uOuCXG_select",
|
|
1215
1217
|
"compact": "rp_uOuCXG_compact"
|
|
@@ -1262,45 +1264,47 @@ window.__ModuleLoader__.load({
|
|
|
1262
1264
|
});
|
|
1263
1265
|
}
|
|
1264
1266
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/import-card/ImportCard.module.css.mjs
|
|
1265
|
-
const css$
|
|
1266
|
-
const key$
|
|
1267
|
-
let tag$
|
|
1268
|
-
if (tag$
|
|
1269
|
-
tag$
|
|
1270
|
-
tag$
|
|
1271
|
-
tag$
|
|
1272
|
-
document.head.appendChild(tag$
|
|
1267
|
+
const css$46 = ".rp_5cvtma_page{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5cvtma_header{border-bottom:.5px solid var(--dsw-alias-border-l3);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_5cvtma_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_5cvtma_space{flex:auto;min-width:8px}.rp_5cvtma_error{color:var(--dsw-alias-state-error-primary);margin:0;padding:8px 16px;font-size:12px}.rp_5cvtma_body{box-sizing:border-box;flex-direction:column;flex:1 1 0;gap:20px;min-height:0;padding:20px 24px 40px;display:flex;overflow-y:auto}.rp_5cvtma_body>*{flex:none;width:100%;max-width:860px}.rp_5cvtma_top{align-items:flex-start;gap:20px;display:flex}.rp_5cvtma_picture{object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:0 0 120px;width:120px;height:160px}.rp_5cvtma_noPicture{box-sizing:border-box;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;font-size:12px;display:flex}.rp_5cvtma_about{flex-direction:column;flex:1 1 0;gap:8px;min-width:0;display:flex}.rp_5cvtma_label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:4px;font-size:12px;display:flex}.rp_5cvtma_tags{flex-wrap:wrap;gap:6px;display:flex}.rp_5cvtma_note{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_5cvtma_links{overflow-wrap:anywhere;padding-inline-start:20px}.rp_5cvtma_section{flex-direction:column;gap:8px;display:flex}.rp_5cvtma_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_5cvtma_row{align-items:center;gap:8px;display:flex}.rp_5cvtma_field,.rp_5cvtma_entry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg)}.rp_5cvtma_fieldHead,.rp_5cvtma_entryHead{box-sizing:border-box;width:100%;font:inherit;text-align:left;color:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:8px 10px;display:flex}.rp_5cvtma_fieldHead{cursor:pointer}.rp_5cvtma_fieldTitle,.rp_5cvtma_entryTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px}.rp_5cvtma_entryTitle{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.rp_5cvtma_fieldMeta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5cvtma_field .rp_5cvtma_note,.rp_5cvtma_entry .rp_5cvtma_note{padding:0 10px 6px}.rp_5cvtma_text{white-space:pre-wrap;word-break:break-word;max-height:320px;font:inherit;color:var(--dsw-alias-label-secondary);border-top:.5px solid var(--dsw-alias-border-l4);margin:0;padding:8px 10px 10px;font-size:12px;line-height:18px;overflow:auto}.rp_5cvtma_entryOff .rp_5cvtma_entryTitle{color:var(--dsw-alias-label-tertiary);text-decoration:line-through}.rp_5cvtma_choice{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}@media (width<=640px){.rp_5cvtma_body{padding-inline:16px}.rp_5cvtma_top{flex-direction:column}.rp_5cvtma_picture{width:96px;height:128px}.rp_5cvtma_row{flex-wrap:wrap}}.rp_5cvtma_choice input{margin-top:3px}.rp_5cvtma_choiceText{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5cvtma_preview{white-space:pre-wrap;word-break:break-word;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_5cvtma_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px;font-size:12px}";
|
|
1268
|
+
const key$46 = "src/client/widgets/import-card/ImportCard.module.css";
|
|
1269
|
+
let tag$46 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$46) + "]");
|
|
1270
|
+
if (tag$46 === null) {
|
|
1271
|
+
tag$46 = document.createElement("style");
|
|
1272
|
+
tag$46.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1273
|
+
tag$46.dataset.pluginCss = key$46;
|
|
1274
|
+
document.head.appendChild(tag$46);
|
|
1273
1275
|
}
|
|
1274
|
-
tag$
|
|
1276
|
+
tag$46.textContent = css$46;
|
|
1275
1277
|
var ImportCard_module_css_default = {
|
|
1276
|
-
"
|
|
1277
|
-
"
|
|
1278
|
-
"label": "rp_5cvtma_label",
|
|
1278
|
+
"entryHead": "rp_5cvtma_entryHead",
|
|
1279
|
+
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
1279
1280
|
"body": "rp_5cvtma_body",
|
|
1280
|
-
"
|
|
1281
|
-
"
|
|
1282
|
-
"field": "rp_5cvtma_field",
|
|
1283
|
-
"about": "rp_5cvtma_about",
|
|
1281
|
+
"label": "rp_5cvtma_label",
|
|
1282
|
+
"select": "rp_5cvtma_select",
|
|
1284
1283
|
"title": "rp_5cvtma_title",
|
|
1285
|
-
"
|
|
1284
|
+
"space": "rp_5cvtma_space",
|
|
1286
1285
|
"heading": "rp_5cvtma_heading",
|
|
1287
|
-
"section": "rp_5cvtma_section",
|
|
1288
|
-
"header": "rp_5cvtma_header",
|
|
1289
|
-
"tags": "rp_5cvtma_tags",
|
|
1290
|
-
"note": "rp_5cvtma_note",
|
|
1291
1286
|
"row": "rp_5cvtma_row",
|
|
1292
|
-
"
|
|
1293
|
-
"
|
|
1294
|
-
"
|
|
1295
|
-
"
|
|
1296
|
-
"
|
|
1297
|
-
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
1287
|
+
"error": "rp_5cvtma_error",
|
|
1288
|
+
"tags": "rp_5cvtma_tags",
|
|
1289
|
+
"page": "rp_5cvtma_page",
|
|
1290
|
+
"links": "rp_5cvtma_links",
|
|
1291
|
+
"field": "rp_5cvtma_field",
|
|
1298
1292
|
"top": "rp_5cvtma_top",
|
|
1299
1293
|
"noPicture": "rp_5cvtma_noPicture",
|
|
1294
|
+
"choice": "rp_5cvtma_choice",
|
|
1295
|
+
"header": "rp_5cvtma_header",
|
|
1296
|
+
"entry": "rp_5cvtma_entry",
|
|
1297
|
+
"text": "rp_5cvtma_text",
|
|
1298
|
+
"about": "rp_5cvtma_about",
|
|
1300
1299
|
"entryTitle": "rp_5cvtma_entryTitle",
|
|
1301
|
-
"
|
|
1300
|
+
"picture": "rp_5cvtma_picture",
|
|
1301
|
+
"note": "rp_5cvtma_note",
|
|
1302
1302
|
"entryOff": "rp_5cvtma_entryOff",
|
|
1303
|
-
"choiceText": "rp_5cvtma_choiceText"
|
|
1303
|
+
"choiceText": "rp_5cvtma_choiceText",
|
|
1304
|
+
"section": "rp_5cvtma_section",
|
|
1305
|
+
"fieldHead": "rp_5cvtma_fieldHead",
|
|
1306
|
+
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
1307
|
+
"preview": "rp_5cvtma_preview"
|
|
1304
1308
|
};
|
|
1305
1309
|
// src/client/widgets/import-card/ImportCard.tsx
|
|
1306
1310
|
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
@@ -1352,6 +1356,7 @@ window.__ModuleLoader__.load({
|
|
|
1352
1356
|
const [off, setOff] = (0, react.useState)(() => new Set(preview.choices.disabledEntries));
|
|
1353
1357
|
const [opening, setOpening] = (0, react.useState)(preview.choices.opening);
|
|
1354
1358
|
const [fetchPictures, setFetchPictures] = (0, react.useState)(preview.choices.fetchPictures !== false);
|
|
1359
|
+
const [pause, setPause] = (0, react.useState)(() => pauseOf(preview.choices, entries.length));
|
|
1355
1360
|
const [open, setOpen] = (0, react.useState)(/* @__PURE__ */ new Set());
|
|
1356
1361
|
const [update, setUpdate] = (0, react.useState)(() => initialUpdate ?? defaultTarget(preview.targets));
|
|
1357
1362
|
const [promptLanguage, setPromptLanguage] = (0, react.useState)(() => primaryLanguage(language));
|
|
@@ -1387,6 +1392,7 @@ window.__ModuleLoader__.load({
|
|
|
1387
1392
|
name: name.trim(),
|
|
1388
1393
|
disabledEntries: [...off],
|
|
1389
1394
|
opening,
|
|
1395
|
+
pause,
|
|
1390
1396
|
...fetchPictures ? {} : { fetchPictures: false }
|
|
1391
1397
|
});
|
|
1392
1398
|
const start = () => {
|
|
@@ -1716,6 +1722,43 @@ window.__ModuleLoader__.load({
|
|
|
1716
1722
|
})
|
|
1717
1723
|
]
|
|
1718
1724
|
}),
|
|
1725
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
1726
|
+
className: ImportCard_module_css_default.section,
|
|
1727
|
+
"data-testid": "roleplay-import-pause",
|
|
1728
|
+
children: [
|
|
1729
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
1730
|
+
className: ImportCard_module_css_default.heading,
|
|
1731
|
+
children: t("ic_pause")
|
|
1732
|
+
}),
|
|
1733
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
1734
|
+
className: ImportCard_module_css_default.note,
|
|
1735
|
+
children: t("ic_pauseHelp")
|
|
1736
|
+
}),
|
|
1737
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
1738
|
+
className: ImportCard_module_css_default.select,
|
|
1739
|
+
"aria-label": t("ic_pause"),
|
|
1740
|
+
value: pause,
|
|
1741
|
+
disabled: starting,
|
|
1742
|
+
onChange: (event) => {
|
|
1743
|
+
setPause(event.target.value);
|
|
1744
|
+
},
|
|
1745
|
+
children: [
|
|
1746
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1747
|
+
value: "never",
|
|
1748
|
+
children: t("ic_pauseNever")
|
|
1749
|
+
}),
|
|
1750
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1751
|
+
value: "survey",
|
|
1752
|
+
children: t("ic_pauseSurvey")
|
|
1753
|
+
}),
|
|
1754
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1755
|
+
value: "stages",
|
|
1756
|
+
children: t("ic_pauseStages")
|
|
1757
|
+
})
|
|
1758
|
+
]
|
|
1759
|
+
})
|
|
1760
|
+
]
|
|
1761
|
+
}),
|
|
1719
1762
|
(card.urls ?? []).length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
1720
1763
|
className: ImportCard_module_css_default.section,
|
|
1721
1764
|
"data-testid": "roleplay-import-links",
|
|
@@ -1750,7 +1793,7 @@ window.__ModuleLoader__.load({
|
|
|
1750
1793
|
className: ImportCard_module_css_default.note,
|
|
1751
1794
|
children: t("ic_linksShow")
|
|
1752
1795
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
1753
|
-
className: ImportCard_module_css_default.note
|
|
1796
|
+
className: `${ImportCard_module_css_default.note} ${ImportCard_module_css_default.links}`,
|
|
1754
1797
|
children: (card.urls ?? []).map((url) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: url }, url))
|
|
1755
1798
|
})] })
|
|
1756
1799
|
]
|
|
@@ -1838,28 +1881,28 @@ window.__ModuleLoader__.load({
|
|
|
1838
1881
|
});
|
|
1839
1882
|
}
|
|
1840
1883
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/ui/Modal.module.css.mjs
|
|
1841
|
-
const css$
|
|
1842
|
-
const key$
|
|
1843
|
-
let tag$
|
|
1844
|
-
if (tag$
|
|
1845
|
-
tag$
|
|
1846
|
-
tag$
|
|
1847
|
-
tag$
|
|
1848
|
-
document.head.appendChild(tag$
|
|
1884
|
+
const css$45 = ".rp_46MuuW_root{z-index:1000;pointer-events:auto;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.rp_46MuuW_mask{backdrop-filter:var(--dsw-mask-blur,blur(8px));position:absolute;inset:0}.rp_46MuuW_mask:after{content:\"\";background:var(--dsw-alias-bg-mask-1,#0006);animation:rp_46MuuW_rpModalEnter var(--ds-transition-duration,.12s) var(--ds-ease-in-out,ease);position:absolute;inset:0}.rp_46MuuW_dialog{box-sizing:border-box;z-index:1;border-radius:var(--dsw-radius-panel,12px);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(380px,100%);max-height:100%;box-shadow:var(--dsw-elevation-prominent,0 12px 32px #0000003d);animation:rp_46MuuW_rpModalEnter var(--ds-transition-duration,.12s) var(--ds-ease-in-out,ease);border:0;flex-direction:column;gap:20px;padding:0 0 24px;display:flex;position:relative;overflow:hidden}@keyframes rp_46MuuW_rpModalEnter{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.rp_46MuuW_mask:after,.rp_46MuuW_dialog{animation:none}}.rp_46MuuW_dialog:focus{outline:none}.rp_46MuuW_content{flex-direction:column;width:100%;min-height:0;display:flex;overflow:auto}.rp_46MuuW_header{justify-content:space-between;align-items:center;gap:8px;padding:22px 14px 12px 24px;display:flex}.rp_46MuuW_title{color:var(--dsw-alias-label-primary,inherit);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_46MuuW_close{border-radius:var(--dsw-radius-sm,6px);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary,inherit);background:0 0;border:none;flex:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover){.rp_46MuuW_close:hover{background:var(--dsw-alias-interactive-bg-hover,#0000000f)}}.rp_46MuuW_description{color:var(--dsw-alias-label-primary,inherit);margin:0;padding:0 24px;font-size:14px;font-weight:400;line-height:22px}.rp_46MuuW_body{flex-direction:column;min-width:0;margin-top:20px;padding:0 24px;display:flex}.rp_46MuuW_footer{justify-content:flex-end;align-items:center;gap:8px;padding:0 24px;display:flex}";
|
|
1885
|
+
const key$45 = "src/client/ui/Modal.module.css";
|
|
1886
|
+
let tag$45 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$45) + "]");
|
|
1887
|
+
if (tag$45 === null) {
|
|
1888
|
+
tag$45 = document.createElement("style");
|
|
1889
|
+
tag$45.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
1890
|
+
tag$45.dataset.pluginCss = key$45;
|
|
1891
|
+
document.head.appendChild(tag$45);
|
|
1849
1892
|
}
|
|
1850
|
-
tag$
|
|
1893
|
+
tag$45.textContent = css$45;
|
|
1851
1894
|
var Modal_module_css_default = {
|
|
1852
|
-
"
|
|
1895
|
+
"footer": "rp_46MuuW_footer",
|
|
1853
1896
|
"dialog": "rp_46MuuW_dialog",
|
|
1854
|
-
"close": "rp_46MuuW_close",
|
|
1855
1897
|
"content": "rp_46MuuW_content",
|
|
1856
|
-
"
|
|
1898
|
+
"title": "rp_46MuuW_title",
|
|
1857
1899
|
"rpModalEnter": "rp_46MuuW_rpModalEnter",
|
|
1858
|
-
"
|
|
1859
|
-
"description": "rp_46MuuW_description",
|
|
1860
|
-
"footer": "rp_46MuuW_footer",
|
|
1900
|
+
"close": "rp_46MuuW_close",
|
|
1861
1901
|
"root": "rp_46MuuW_root",
|
|
1862
|
-
"
|
|
1902
|
+
"mask": "rp_46MuuW_mask",
|
|
1903
|
+
"description": "rp_46MuuW_description",
|
|
1904
|
+
"body": "rp_46MuuW_body",
|
|
1905
|
+
"header": "rp_46MuuW_header"
|
|
1863
1906
|
};
|
|
1864
1907
|
// src/client/ui/Modal.tsx
|
|
1865
1908
|
const FOCUSABLE = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
|
|
@@ -1985,49 +2028,49 @@ window.__ModuleLoader__.load({
|
|
|
1985
2028
|
});
|
|
1986
2029
|
}
|
|
1987
2030
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/catalogue/CataloguePage.module.css.mjs
|
|
1988
|
-
const css$
|
|
1989
|
-
const key$
|
|
1990
|
-
let tag$
|
|
1991
|
-
if (tag$
|
|
1992
|
-
tag$
|
|
1993
|
-
tag$
|
|
1994
|
-
tag$
|
|
1995
|
-
document.head.appendChild(tag$
|
|
2031
|
+
const css$44 = ".rp_qK1u-G_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_qK1u-G_toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:8px;min-height:32px;display:flex}.rp_qK1u-G_spacer{flex:auto}.rp_qK1u-G_select,.rp_qK1u-G_search{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_qK1u-G_search{min-width:200px}.rp_qK1u-G_select:focus-visible,.rp_qK1u-G_search:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_qK1u-G_status{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.rp_qK1u-G_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_qK1u-G_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_qK1u-G_grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_qK1u-G_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);min-width:0;font:inherit;text-align:left;color:inherit;background:var(--dsw-alias-settings-card-fill);cursor:pointer;flex-direction:column;padding:0;transition:border-color .12s;display:flex;overflow:hidden}.rp_qK1u-G_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_qK1u-G_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_qK1u-G_cover{aspect-ratio:4/3;background:var(--dsw-alias-bg-layer-3)}.rp_qK1u-G_image{object-fit:cover;width:100%;height:100%;display:block}.rp_qK1u-G_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:36px;font-weight:500;display:flex}.rp_qK1u-G_body{flex-direction:column;gap:4px;padding:8px 10px 10px;display:flex}.rp_qK1u-G_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_qK1u-G_meta{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_qK1u-G_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_qK1u-G_more{justify-content:center;padding:12px 0;display:flex}.rp_qK1u-G_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_qK1u-G_form{flex-direction:column;gap:8px;display:flex}.rp_qK1u-G_field{flex-direction:column;gap:4px;display:flex}.rp_qK1u-G_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_qK1u-G_detail{flex-direction:column;gap:8px;font-size:13px;display:flex}.rp_qK1u-G_description{white-space:pre-wrap;max-height:240px;color:var(--dsw-alias-label-secondary);margin:0;overflow-y:auto}.rp_qK1u-G_success{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_qK1u-G_kinds{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;gap:16px;display:flex}.rp_qK1u-G_kind{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:4px 0 6px;font-size:13px}.rp_qK1u-G_kind[aria-selected=true]{border-bottom-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_qK1u-G_kind:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_qK1u-G_updates{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.rp_qK1u-G_update{border:.5px solid var(--dsw-alias-state-business-primary);border-radius:var(--dsw-radius-sm);font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;padding:2px 8px}.rp_qK1u-G_warning{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);flex-direction:column;gap:8px;padding:8px 12px;font-size:12px;display:flex}.rp_qK1u-G_warning p{margin:0}.rp_qK1u-G_changes{font-family:var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-tertiary);margin:0;padding-left:16px;font-size:12px}.rp_qK1u-G_actions{flex-wrap:wrap;gap:8px;display:flex}";
|
|
2032
|
+
const key$44 = "src/client/pages/catalogue/CataloguePage.module.css";
|
|
2033
|
+
let tag$44 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$44) + "]");
|
|
2034
|
+
if (tag$44 === null) {
|
|
2035
|
+
tag$44 = document.createElement("style");
|
|
2036
|
+
tag$44.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
2037
|
+
tag$44.dataset.pluginCss = key$44;
|
|
2038
|
+
document.head.appendChild(tag$44);
|
|
1996
2039
|
}
|
|
1997
|
-
tag$
|
|
2040
|
+
tag$44.textContent = css$44;
|
|
1998
2041
|
var CataloguePage_module_css_default = {
|
|
1999
|
-
"image": "rp_qK1u-G_image",
|
|
2000
|
-
"name": "rp_qK1u-G_name",
|
|
2001
|
-
"detail": "rp_qK1u-G_detail",
|
|
2002
|
-
"grid": "rp_qK1u-G_grid",
|
|
2003
|
-
"search": "rp_qK1u-G_search",
|
|
2004
|
-
"actions": "rp_qK1u-G_actions",
|
|
2005
|
-
"notice": "rp_qK1u-G_notice",
|
|
2006
|
-
"meta": "rp_qK1u-G_meta",
|
|
2007
|
-
"select": "rp_qK1u-G_select",
|
|
2008
|
-
"update": "rp_qK1u-G_update",
|
|
2009
|
-
"changes": "rp_qK1u-G_changes",
|
|
2010
|
-
"page": "rp_qK1u-G_page",
|
|
2011
|
-
"cover": "rp_qK1u-G_cover",
|
|
2012
2042
|
"card": "rp_qK1u-G_card",
|
|
2013
|
-
"
|
|
2014
|
-
"
|
|
2043
|
+
"page": "rp_qK1u-G_page",
|
|
2044
|
+
"spacer": "rp_qK1u-G_spacer",
|
|
2045
|
+
"message": "rp_qK1u-G_message",
|
|
2046
|
+
"changes": "rp_qK1u-G_changes",
|
|
2047
|
+
"select": "rp_qK1u-G_select",
|
|
2015
2048
|
"success": "rp_qK1u-G_success",
|
|
2016
|
-
"
|
|
2017
|
-
"label": "rp_qK1u-G_label",
|
|
2018
|
-
"description": "rp_qK1u-G_description",
|
|
2049
|
+
"updates": "rp_qK1u-G_updates",
|
|
2019
2050
|
"form": "rp_qK1u-G_form",
|
|
2020
|
-
"
|
|
2021
|
-
"more": "rp_qK1u-G_more",
|
|
2022
|
-
"message": "rp_qK1u-G_message",
|
|
2023
|
-
"body": "rp_qK1u-G_body",
|
|
2051
|
+
"image": "rp_qK1u-G_image",
|
|
2024
2052
|
"field": "rp_qK1u-G_field",
|
|
2053
|
+
"status": "rp_qK1u-G_status",
|
|
2054
|
+
"warning": "rp_qK1u-G_warning",
|
|
2055
|
+
"update": "rp_qK1u-G_update",
|
|
2056
|
+
"actions": "rp_qK1u-G_actions",
|
|
2057
|
+
"body": "rp_qK1u-G_body",
|
|
2058
|
+
"placeholder": "rp_qK1u-G_placeholder",
|
|
2059
|
+
"notice": "rp_qK1u-G_notice",
|
|
2060
|
+
"grid": "rp_qK1u-G_grid",
|
|
2061
|
+
"name": "rp_qK1u-G_name",
|
|
2025
2062
|
"viewport": "rp_qK1u-G_viewport",
|
|
2026
|
-
"
|
|
2063
|
+
"kind": "rp_qK1u-G_kind",
|
|
2064
|
+
"meta": "rp_qK1u-G_meta",
|
|
2027
2065
|
"toolbar": "rp_qK1u-G_toolbar",
|
|
2066
|
+
"cover": "rp_qK1u-G_cover",
|
|
2028
2067
|
"tags": "rp_qK1u-G_tags",
|
|
2029
|
-
"
|
|
2030
|
-
"
|
|
2068
|
+
"more": "rp_qK1u-G_more",
|
|
2069
|
+
"detail": "rp_qK1u-G_detail",
|
|
2070
|
+
"search": "rp_qK1u-G_search",
|
|
2071
|
+
"label": "rp_qK1u-G_label",
|
|
2072
|
+
"kinds": "rp_qK1u-G_kinds",
|
|
2073
|
+
"description": "rp_qK1u-G_description"
|
|
2031
2074
|
};
|
|
2032
2075
|
// src/client/pages/catalogue/ImportUrlDialog.tsx
|
|
2033
2076
|
/** Installs a world from the address of its archive, or opens the resource a page address of a configured catalogue names; an address on a configured catalogue's site is asked for with that catalogue's key. */
|
|
@@ -2220,33 +2263,33 @@ window.__ModuleLoader__.load({
|
|
|
2220
2263
|
};
|
|
2221
2264
|
const SAMPLING_KEYS = Object.keys(SAMPLING_RANGES);
|
|
2222
2265
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/import-selection/ImportSelection.module.css.mjs
|
|
2223
|
-
const css$
|
|
2224
|
-
const key$
|
|
2225
|
-
let tag$
|
|
2226
|
-
if (tag$
|
|
2227
|
-
tag$
|
|
2228
|
-
tag$
|
|
2229
|
-
tag$
|
|
2230
|
-
document.head.appendChild(tag$
|
|
2266
|
+
const css$43 = ".rp_Jx0l4q_body{flex-direction:column;gap:12px;min-width:min(640px,100%);max-height:calc(100vh - 220px);display:flex;overflow-y:auto}.rp_Jx0l4q_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_Jx0l4q_bar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_Jx0l4q_count{color:var(--dsw-alias-label-tertiary);margin-right:auto;font-size:12px}.rp_Jx0l4q_list{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;max-height:max(120px,min(420px,100vh - 560px));margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.rp_Jx0l4q_row{border-bottom:.5px solid var(--dsw-alias-border-l3);gap:8px;padding:6px 8px;display:flex}.rp_Jx0l4q_row:last-child{border-bottom:0}.rp_Jx0l4q_row[data-usable=false]{opacity:.55}.rp_Jx0l4q_text{min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;gap:2px;font-size:13px;display:flex}.rp_Jx0l4q_meta{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px}.rp_Jx0l4q_note{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Jx0l4q_full{max-height:200px;font:12px/18px var(--dsw-font-mono,monospace);white-space:pre-wrap;overflow-wrap:anywhere;background:var(--dsw-alias-bg-layer-1);border-radius:var(--dsw-radius-sm);margin:4px 0 0;padding:6px 8px;overflow:auto}.rp_Jx0l4q_sampling{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:4px;padding:8px;display:flex}.rp_Jx0l4q_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Jx0l4q_extra{display:block}";
|
|
2267
|
+
const key$43 = "src/client/widgets/import-selection/ImportSelection.module.css";
|
|
2268
|
+
let tag$43 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$43) + "]");
|
|
2269
|
+
if (tag$43 === null) {
|
|
2270
|
+
tag$43 = document.createElement("style");
|
|
2271
|
+
tag$43.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
2272
|
+
tag$43.dataset.pluginCss = key$43;
|
|
2273
|
+
document.head.appendChild(tag$43);
|
|
2231
2274
|
}
|
|
2232
|
-
tag$
|
|
2275
|
+
tag$43.textContent = css$43;
|
|
2233
2276
|
var ImportSelection_module_css_default = {
|
|
2234
|
-
"body": "rp_Jx0l4q_body",
|
|
2235
2277
|
"row": "rp_Jx0l4q_row",
|
|
2236
|
-
"
|
|
2237
|
-
"count": "rp_Jx0l4q_count",
|
|
2278
|
+
"list": "rp_Jx0l4q_list",
|
|
2238
2279
|
"note": "rp_Jx0l4q_note",
|
|
2280
|
+
"full": "rp_Jx0l4q_full",
|
|
2239
2281
|
"meta": "rp_Jx0l4q_meta",
|
|
2240
|
-
"
|
|
2282
|
+
"extra": "rp_Jx0l4q_extra",
|
|
2283
|
+
"count": "rp_Jx0l4q_count",
|
|
2284
|
+
"body": "rp_Jx0l4q_body",
|
|
2285
|
+
"bar": "rp_Jx0l4q_bar",
|
|
2241
2286
|
"sampling": "rp_Jx0l4q_sampling",
|
|
2287
|
+
"error": "rp_Jx0l4q_error",
|
|
2242
2288
|
"help": "rp_Jx0l4q_help",
|
|
2243
|
-
"
|
|
2244
|
-
"list": "rp_Jx0l4q_list",
|
|
2245
|
-
"text": "rp_Jx0l4q_text",
|
|
2246
|
-
"extra": "rp_Jx0l4q_extra"
|
|
2289
|
+
"text": "rp_Jx0l4q_text"
|
|
2247
2290
|
};
|
|
2248
2291
|
// src/client/widgets/import-selection/ImportSelection.tsx
|
|
2249
|
-
const messageOf$
|
|
2292
|
+
const messageOf$15 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
2250
2293
|
/**
|
|
2251
2294
|
* The choice of what an imported preset or lorebook brings: every item the file offers, each ticked or not, and the file's sampling. Only the ticked items reach the conversion.
|
|
2252
2295
|
* What the caller needs besides the choice (a name for the new library entry) goes in as `children`.
|
|
@@ -2281,7 +2324,7 @@ window.__ModuleLoader__.load({
|
|
|
2281
2324
|
language
|
|
2282
2325
|
}).then(onClose, (problem) => {
|
|
2283
2326
|
setBusy(false);
|
|
2284
|
-
setFailure(messageOf$
|
|
2327
|
+
setFailure(messageOf$15(problem));
|
|
2285
2328
|
});
|
|
2286
2329
|
};
|
|
2287
2330
|
const ignored = [["regexScripts", preview.ignored?.regexScripts], ["scripts", preview.ignored?.scripts]].flatMap(([key, count]) => typeof count === "number" && count > 0 ? [t(`is_ignored_${key}`, { count: String(count) })] : []);
|
|
@@ -2502,7 +2545,7 @@ window.__ModuleLoader__.load({
|
|
|
2502
2545
|
const date = new Date(iso);
|
|
2503
2546
|
return Number.isNaN(date.getTime()) ? iso : date.toLocaleDateString();
|
|
2504
2547
|
};
|
|
2505
|
-
const messageOf$
|
|
2548
|
+
const messageOf$14 = (problem) => problem instanceof Error ? problem.message : String(problem);
|
|
2506
2549
|
/** One entry of a catalogue: what it says about itself, its releases, and installing, updating or converting one of them. */
|
|
2507
2550
|
function WorldDialog({ t, source, id, name, kind, onClose, onChanged, openChat, onReview }) {
|
|
2508
2551
|
const [detail, setDetail] = (0, react.useState)();
|
|
@@ -2519,7 +2562,7 @@ window.__ModuleLoader__.load({
|
|
|
2519
2562
|
setDetail(loaded);
|
|
2520
2563
|
setVersionId(loaded.versions[0]?.id ?? "");
|
|
2521
2564
|
}, (problem) => {
|
|
2522
|
-
if (!abort.signal.aborted) setError(messageOf$
|
|
2565
|
+
if (!abort.signal.aborted) setError(messageOf$14(problem));
|
|
2523
2566
|
});
|
|
2524
2567
|
return () => {
|
|
2525
2568
|
abort.abort();
|
|
@@ -2556,7 +2599,7 @@ window.__ModuleLoader__.load({
|
|
|
2556
2599
|
}, (problem) => {
|
|
2557
2600
|
setBusy(void 0);
|
|
2558
2601
|
if (problem instanceof InstallConflict && problem.reason !== "exists") setConflict(problem);
|
|
2559
|
-
else setFailure(t("installFailed", { message: messageOf$
|
|
2602
|
+
else setFailure(t("installFailed", { message: messageOf$14(problem) }));
|
|
2560
2603
|
});
|
|
2561
2604
|
};
|
|
2562
2605
|
const runConvert = () => {
|
|
@@ -2572,7 +2615,7 @@ window.__ModuleLoader__.load({
|
|
|
2572
2615
|
});
|
|
2573
2616
|
}, (problem) => {
|
|
2574
2617
|
setBusy(void 0);
|
|
2575
|
-
setFailure(t("convertFailed", { message: messageOf$
|
|
2618
|
+
setFailure(t("convertFailed", { message: messageOf$14(problem) }));
|
|
2576
2619
|
});
|
|
2577
2620
|
};
|
|
2578
2621
|
const stage = (kind) => {
|
|
@@ -2584,7 +2627,7 @@ window.__ModuleLoader__.load({
|
|
|
2584
2627
|
setSelecting(preview);
|
|
2585
2628
|
}, (problem) => {
|
|
2586
2629
|
setBusy(void 0);
|
|
2587
|
-
setFailure(t(kind === "preset" ? "importPresetFailed" : "importLorebookFailed", { message: messageOf$
|
|
2630
|
+
setFailure(t(kind === "preset" ? "importPresetFailed" : "importLorebookFailed", { message: messageOf$14(problem) }));
|
|
2588
2631
|
});
|
|
2589
2632
|
};
|
|
2590
2633
|
const runPreset = () => {
|
|
@@ -3269,7 +3312,7 @@ window.__ModuleLoader__.load({
|
|
|
3269
3312
|
return Object.fromEntries(Object.keys(dictionaries).map((locale) => [locale, Object.fromEntries(Object.entries(dictionaries[locale]).map(([key, value]) => [`${prefix}${key}`, value]))]));
|
|
3270
3313
|
}
|
|
3271
3314
|
// src/client/widgets/import-card/locales.ts
|
|
3272
|
-
const dictionaries$
|
|
3315
|
+
const dictionaries$28 = {
|
|
3273
3316
|
en: {
|
|
3274
3317
|
ic_promptLanguage: "Language of the prompts",
|
|
3275
3318
|
ic_promptLanguageHelp: "The language the import assistant works in and writes the world's prompts in. It starts as your interface language. English and Chinese have prompts of their own; any other language uses the English ones and asks the models to write in it.",
|
|
@@ -3325,7 +3368,12 @@ window.__ModuleLoader__.load({
|
|
|
3325
3368
|
ic_links: "Web addresses",
|
|
3326
3369
|
ic_linksHelp: "The card contains {count} web addresses. Those that look like pictures are downloaded into the world's image library while it is imported; nothing else is fetched, and no script of the card is run.",
|
|
3327
3370
|
ic_fetchPictures: "Download the pictures these addresses point to",
|
|
3328
|
-
ic_linksShow: "Show the addresses"
|
|
3371
|
+
ic_linksShow: "Show the addresses",
|
|
3372
|
+
ic_pause: "How the import goes",
|
|
3373
|
+
ic_pauseHelp: "The assistant imports the card in steps: it reads it (the survey), then writes the places, characters and the rest one stage at a time. Choose where it stops to report and to ask you.",
|
|
3374
|
+
ic_pauseNever: "Do it all in one go",
|
|
3375
|
+
ic_pauseSurvey: "Stop after the survey, then go on by itself",
|
|
3376
|
+
ic_pauseStages: "Stop after the survey and after every stage"
|
|
3329
3377
|
},
|
|
3330
3378
|
zh: {
|
|
3331
3379
|
ic_promptLanguage: "提示词语言",
|
|
@@ -3382,7 +3430,12 @@ window.__ModuleLoader__.load({
|
|
|
3382
3430
|
ic_links: "网址",
|
|
3383
3431
|
ic_linksHelp: "这张卡片包含 {count} 个网址。导入时,看起来是图片的会下载到世界的图片库;其他内容一概不会获取,卡片里的脚本也不会运行。",
|
|
3384
3432
|
ic_fetchPictures: "下载这些网址指向的图片",
|
|
3385
|
-
ic_linksShow: "显示网址"
|
|
3433
|
+
ic_linksShow: "显示网址",
|
|
3434
|
+
ic_pause: "导入的方式",
|
|
3435
|
+
ic_pauseHelp: "助手分步骤导入卡片:先读卡片(调查),再一个阶段一个阶段地写出地点、角色等。请选择它在哪些地方停下来向你汇报并征求意见。",
|
|
3436
|
+
ic_pauseNever: "一次全部完成",
|
|
3437
|
+
ic_pauseSurvey: "调查之后停下,之后自动继续",
|
|
3438
|
+
ic_pauseStages: "调查之后和每个阶段之后都停下"
|
|
3386
3439
|
},
|
|
3387
3440
|
ja: {
|
|
3388
3441
|
ic_promptLanguage: "プロンプトの言語",
|
|
@@ -3439,7 +3492,12 @@ window.__ModuleLoader__.load({
|
|
|
3439
3492
|
ic_links: "Web アドレス",
|
|
3440
3493
|
ic_linksHelp: "このカードには {count} 件の Web アドレスがあります。画像のように見えるものは、読み込み中にワールドの画像ライブラリへダウンロードされます。それ以外は取得せず、カードのスクリプトも実行しません。",
|
|
3441
3494
|
ic_fetchPictures: "これらのアドレスが指す画像をダウンロードする",
|
|
3442
|
-
ic_linksShow: "アドレスを表示"
|
|
3495
|
+
ic_linksShow: "アドレスを表示",
|
|
3496
|
+
ic_pause: "インポートの進め方",
|
|
3497
|
+
ic_pauseHelp: "アシスタントはカードを段階的に取り込みます。まず読み取り(調査)、その後、場所や登場人物などを一段階ずつ書きます。どこで止まって報告し、確認するかを選んでください。",
|
|
3498
|
+
ic_pauseNever: "一度にすべて行う",
|
|
3499
|
+
ic_pauseSurvey: "調査のあとで止まり、その後は自動で続ける",
|
|
3500
|
+
ic_pauseStages: "調査のあと、そして各段階のあとで止まる"
|
|
3443
3501
|
},
|
|
3444
3502
|
es: {
|
|
3445
3503
|
ic_promptLanguage: "Idioma de las instrucciones",
|
|
@@ -3496,7 +3554,12 @@ window.__ModuleLoader__.load({
|
|
|
3496
3554
|
ic_links: "Direcciones web",
|
|
3497
3555
|
ic_linksHelp: "La tarjeta contiene {count} direcciones web. Las que parecen imágenes se descargan en la biblioteca de imágenes del mundo durante la importación; no se obtiene nada más y no se ejecuta ningún script de la tarjeta.",
|
|
3498
3556
|
ic_fetchPictures: "Descargar las imágenes a las que apuntan estas direcciones",
|
|
3499
|
-
ic_linksShow: "Mostrar las direcciones"
|
|
3557
|
+
ic_linksShow: "Mostrar las direcciones",
|
|
3558
|
+
ic_pause: "Cómo se hace la importación",
|
|
3559
|
+
ic_pauseHelp: "El asistente importa la tarjeta por pasos: la lee (el sondeo) y luego escribe los lugares, los personajes y lo demás, una etapa cada vez. Elige dónde se detiene para informarte y preguntarte.",
|
|
3560
|
+
ic_pauseNever: "Todo de una vez",
|
|
3561
|
+
ic_pauseSurvey: "Parar tras el sondeo y seguir solo",
|
|
3562
|
+
ic_pauseStages: "Parar tras el sondeo y tras cada etapa"
|
|
3500
3563
|
},
|
|
3501
3564
|
fr: {
|
|
3502
3565
|
ic_promptLanguage: "Langue des instructions",
|
|
@@ -3553,7 +3616,12 @@ window.__ModuleLoader__.load({
|
|
|
3553
3616
|
ic_links: "Adresses web",
|
|
3554
3617
|
ic_linksHelp: "La carte contient {count} adresses web. Celles qui ressemblent à des images sont téléchargées dans la bibliothèque d’images du monde pendant l’importation ; rien d’autre n’est récupéré et aucun script de la carte n’est exécuté.",
|
|
3555
3618
|
ic_fetchPictures: "Télécharger les images vers lesquelles ces adresses pointent",
|
|
3556
|
-
ic_linksShow: "Afficher les adresses"
|
|
3619
|
+
ic_linksShow: "Afficher les adresses",
|
|
3620
|
+
ic_pause: "Déroulement de l'import",
|
|
3621
|
+
ic_pauseHelp: "L'assistant importe la carte par étapes : il la lit (l'examen), puis écrit les lieux, les personnages et le reste, une étape à la fois. Choisissez où il s'arrête pour faire le point et vous demander.",
|
|
3622
|
+
ic_pauseNever: "Tout d'un coup",
|
|
3623
|
+
ic_pauseSurvey: "S'arrêter après l'examen, puis continuer seul",
|
|
3624
|
+
ic_pauseStages: "S'arrêter après l'examen et après chaque étape"
|
|
3557
3625
|
},
|
|
3558
3626
|
de: {
|
|
3559
3627
|
ic_promptLanguage: "Sprache der Anweisungen",
|
|
@@ -3610,7 +3678,12 @@ window.__ModuleLoader__.load({
|
|
|
3610
3678
|
ic_links: "Webadressen",
|
|
3611
3679
|
ic_linksHelp: "Die Karte enthält {count} Webadressen. Solche, die nach Bildern aussehen, werden beim Import in die Bildbibliothek der Welt heruntergeladen; sonst wird nichts abgerufen, und kein Skript der Karte wird ausgeführt.",
|
|
3612
3680
|
ic_fetchPictures: "Bilder herunterladen, auf die diese Adressen zeigen",
|
|
3613
|
-
ic_linksShow: "Adressen anzeigen"
|
|
3681
|
+
ic_linksShow: "Adressen anzeigen",
|
|
3682
|
+
ic_pause: "Ablauf des Imports",
|
|
3683
|
+
ic_pauseHelp: "Der Assistent importiert die Karte in Schritten: Er liest sie (die Bestandsaufnahme) und schreibt dann Orte, Figuren und den Rest, eine Phase nach der anderen. Wählen Sie, wo er anhält, um zu berichten und zu fragen.",
|
|
3684
|
+
ic_pauseNever: "Alles in einem Zug",
|
|
3685
|
+
ic_pauseSurvey: "Nach der Bestandsaufnahme anhalten, dann selbstständig weitermachen",
|
|
3686
|
+
ic_pauseStages: "Nach der Bestandsaufnahme und nach jeder Phase anhalten"
|
|
3614
3687
|
},
|
|
3615
3688
|
ru: {
|
|
3616
3689
|
ic_promptLanguage: "Язык инструкций",
|
|
@@ -3667,7 +3740,12 @@ window.__ModuleLoader__.load({
|
|
|
3667
3740
|
ic_links: "Веб-адреса",
|
|
3668
3741
|
ic_linksHelp: "В карточке {count} веб-адресов. Те, что похожи на изображения, при импорте загружаются в библиотеку изображений мира; ничего другого не запрашивается, и скрипты карточки не выполняются.",
|
|
3669
3742
|
ic_fetchPictures: "Загружать изображения, на которые указывают эти адреса",
|
|
3670
|
-
ic_linksShow: "Показать адреса"
|
|
3743
|
+
ic_linksShow: "Показать адреса",
|
|
3744
|
+
ic_pause: "Как проходит импорт",
|
|
3745
|
+
ic_pauseHelp: "Ассистент импортирует карточку по шагам: сначала читает её (обзор), затем по этапам пишет места, персонажей и остальное. Выберите, где он будет останавливаться, чтобы отчитаться и спросить вас.",
|
|
3746
|
+
ic_pauseNever: "Всё за один раз",
|
|
3747
|
+
ic_pauseSurvey: "Остановиться после обзора, затем продолжить самому",
|
|
3748
|
+
ic_pauseStages: "Останавливаться после обзора и после каждого этапа"
|
|
3671
3749
|
},
|
|
3672
3750
|
pt: {
|
|
3673
3751
|
ic_promptLanguage: "Idioma das instruções",
|
|
@@ -3724,11 +3802,16 @@ window.__ModuleLoader__.load({
|
|
|
3724
3802
|
ic_links: "Endereços web",
|
|
3725
3803
|
ic_linksHelp: "O cartão contém {count} endereços web. Os que parecem imagens são transferidos para a biblioteca de imagens do mundo durante a importação; nada mais é obtido e nenhum script do cartão é executado.",
|
|
3726
3804
|
ic_fetchPictures: "Transferir as imagens para as quais estes endereços apontam",
|
|
3727
|
-
ic_linksShow: "Mostrar os endereços"
|
|
3805
|
+
ic_linksShow: "Mostrar os endereços",
|
|
3806
|
+
ic_pause: "Como a importação decorre",
|
|
3807
|
+
ic_pauseHelp: "O assistente importa o cartão por passos: lê-o (o levantamento) e depois escreve os lugares, as personagens e o resto, uma etapa de cada vez. Escolha onde ele pára para informar e perguntar.",
|
|
3808
|
+
ic_pauseNever: "Tudo de uma vez",
|
|
3809
|
+
ic_pauseSurvey: "Parar após o levantamento e continuar sozinho",
|
|
3810
|
+
ic_pauseStages: "Parar após o levantamento e após cada etapa"
|
|
3728
3811
|
}
|
|
3729
3812
|
};
|
|
3730
3813
|
// src/client/widgets/import-selection/locales.ts
|
|
3731
|
-
const dictionaries$
|
|
3814
|
+
const dictionaries$27 = {
|
|
3732
3815
|
en: {
|
|
3733
3816
|
is_title_preset: "Choose what to import from {name}",
|
|
3734
3817
|
is_title_lorebook: "Choose what to import from {name}",
|
|
@@ -4074,7 +4157,7 @@ window.__ModuleLoader__.load({
|
|
|
4074
4157
|
is_failed: "Não foi possível importar: {message}"
|
|
4075
4158
|
}
|
|
4076
4159
|
};
|
|
4077
|
-
const dictionaries$
|
|
4160
|
+
const dictionaries$26 = withDictionaries(withDictionaries({
|
|
4078
4161
|
en: {
|
|
4079
4162
|
nav: "Catalogue",
|
|
4080
4163
|
loading: "Loading worlds…",
|
|
@@ -4843,13 +4926,13 @@ window.__ModuleLoader__.load({
|
|
|
4843
4926
|
convertNotStarted: "O mundo «{name}» foi criado, mas a conversão não começou: {failure}. Abra a conversa de criação e envie manualmente a mensagem de importação.",
|
|
4844
4927
|
openChat: "Abrir a conversa"
|
|
4845
4928
|
}
|
|
4846
|
-
}, dictionaries$
|
|
4929
|
+
}, dictionaries$27), dictionaries$28);
|
|
4847
4930
|
// src/client/pages/catalogue/index.ts
|
|
4848
4931
|
const NAMESPACE$16 = "roleplay.catalogue";
|
|
4849
4932
|
/** Adds the Catalogue page to the Role Play panel: worlds of the catalogues set up in the settings. */
|
|
4850
4933
|
function registerCataloguePage(ctx) {
|
|
4851
4934
|
const t = ctx.locale.bind(NAMESPACE$16);
|
|
4852
|
-
ctx.effect(() => ctx.locale.register(NAMESPACE$16, dictionaries$
|
|
4935
|
+
ctx.effect(() => ctx.locale.register(NAMESPACE$16, dictionaries$26), "roleplay: catalogue dictionaries");
|
|
4853
4936
|
const catalogue = new CatalogueController(createChatOpener(ctx));
|
|
4854
4937
|
ctx.effect(() => () => {
|
|
4855
4938
|
catalogue.dispose();
|
|
@@ -4930,7 +5013,7 @@ window.__ModuleLoader__.load({
|
|
|
4930
5013
|
return (await response.json()).added;
|
|
4931
5014
|
}
|
|
4932
5015
|
// src/client/pages/avatars/avatars-controller.ts
|
|
4933
|
-
const messageOf$
|
|
5016
|
+
const messageOf$13 = (error) => error instanceof Error ? error.message : String(error);
|
|
4934
5017
|
/** Reads the player avatars from the host and makes and removes them. */
|
|
4935
5018
|
var AvatarsController = class {
|
|
4936
5019
|
store = createSnapshotStore({
|
|
@@ -4977,7 +5060,7 @@ window.__ModuleLoader__.load({
|
|
|
4977
5060
|
} catch (error) {
|
|
4978
5061
|
if (this.abort.signal.aborted) return;
|
|
4979
5062
|
this.store.update((draft) => {
|
|
4980
|
-
draft.error = messageOf$
|
|
5063
|
+
draft.error = messageOf$13(error);
|
|
4981
5064
|
if (draft.avatars === void 0) draft.status = "failed";
|
|
4982
5065
|
});
|
|
4983
5066
|
} finally {
|
|
@@ -5381,57 +5464,57 @@ window.__ModuleLoader__.load({
|
|
|
5381
5464
|
}
|
|
5382
5465
|
const isDirty = (character, draft) => Object.keys(editOf$1(character, draft)).length > 0;
|
|
5383
5466
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CharactersPanel.module.css.mjs
|
|
5384
|
-
const css$
|
|
5385
|
-
const key$
|
|
5386
|
-
let tag$
|
|
5387
|
-
if (tag$
|
|
5388
|
-
tag$
|
|
5389
|
-
tag$
|
|
5390
|
-
tag$
|
|
5391
|
-
document.head.appendChild(tag$
|
|
5467
|
+
const css$42 = ".rp_5ZMIxq_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5ZMIxq_tabs{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;gap:4px;padding:0 24px;display:flex;overflow-x:auto}.rp_5ZMIxq_tab{font:inherit;white-space:nowrap;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;margin-bottom:-1px;padding:12px 10px 10px;font-size:13px;line-height:20px}.rp_5ZMIxq_tabOn{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_5ZMIxq_body{flex:1 1 0;min-height:0;overflow-y:auto}.rp_5ZMIxq_sheet{box-sizing:border-box;flex-direction:column;gap:20px;max-width:760px;padding:24px 24px 240px;display:flex}.rp_5ZMIxq_head{align-items:flex-start;gap:20px;display:flex}.rp_5ZMIxq_portrait{aspect-ratio:3/4;object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);width:150px;height:auto;display:block}.rp_5ZMIxq_portraitBox{border-radius:var(--dsw-radius-lg);width:150px;height:200px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:0 0 150px;padding:0;display:block;position:relative}.rp_5ZMIxq_portraitBox:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_5ZMIxq_portraitBox:disabled{cursor:not-allowed}.rp_5ZMIxq_portraitAction{box-sizing:border-box;border-radius:0 0 var(--dsw-radius-lg) var(--dsw-radius-lg);color:#fff;text-align:center;opacity:0;background:#0000009e;padding:7px 6px;font-size:12px;line-height:16px;transition:opacity .12s;position:absolute;bottom:1px;left:1px;right:1px}.rp_5ZMIxq_portraitBox:hover .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:focus-visible .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:disabled .rp_5ZMIxq_portraitAction{opacity:1}.rp_5ZMIxq_portraitError,.rp_5ZMIxq_portraitHint{margin:12px 24px 0;font-size:12px}.rp_5ZMIxq_portraitError{color:var(--dsw-alias-state-danger-primary)}.rp_5ZMIxq_portraitHint{color:var(--dsw-alias-label-secondary)}.rp_5ZMIxq_placeholder{box-sizing:border-box;color:var(--dsw-alias-label-secondary);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_initial{opacity:.6;font-size:48px;font-weight:500;line-height:1}.rp_5ZMIxq_missing{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_meta{flex-direction:column;flex:1 1 0;gap:10px;min-width:0;display:flex}.rp_5ZMIxq_section{border-top:.5px solid var(--dsw-alias-border-l4);flex-direction:column;gap:6px;padding-top:16px;display:flex}.rp_5ZMIxq_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:500;line-height:20px}.rp_5ZMIxq_question{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:14px;min-width:0;margin:4px 0 0;padding:14px;display:flex}.rp_5ZMIxq_questionTitle,.rp_5ZMIxq_optionTitle{color:var(--dsw-alias-label-secondary);padding:0 4px;font-size:12px;font-weight:500}.rp_5ZMIxq_optionFields{border:0;border-top:.5px solid var(--dsw-alias-border-l4);min-width:0;margin:2px 0 0;padding:14px 0 0}.rp_5ZMIxq_optionFields>.rp_5ZMIxq_optionTitle{padding:0}.rp_5ZMIxq_questionActions,.rp_5ZMIxq_itemActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_questionActions{justify-content:space-between}.rp_5ZMIxq_itemActions{justify-content:flex-end;margin-top:8px}.rp_5ZMIxq_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 24px;font-size:13px}.rp_5ZMIxq_section .rp_5ZMIxq_empty{padding:0}.rp_5ZMIxq_tabsSpace{flex:auto}.rp_5ZMIxq_voiceInline{min-width:220px;color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_5ZMIxq_bar{border-bottom:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);flex:none;justify-content:flex-end;align-items:center;gap:8px;padding:6px 24px;display:flex}.rp_5ZMIxq_barText{color:var(--dsw-alias-label-secondary);margin-right:auto;font-size:12px}.rp_5ZMIxq_nameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:var(--dsw-alias-label-primary);font:inherit;padding:4px 8px;font-size:14px;line-height:22px}.rp_5ZMIxq_row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px 12px;display:grid}.rp_5ZMIxq_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5ZMIxq_wide{grid-column:1/-1}.rp_5ZMIxq_label,.rp_5ZMIxq_help{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_5ZMIxq_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px;font-size:13px}.rp_5ZMIxq_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:96px;color:inherit;font:inherit;resize:vertical;padding:6px 8px;font-size:13px;line-height:20px}.rp_5ZMIxq_goal{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:8px;padding:10px;display:flex}.rp_5ZMIxq_row>.rp_5ZMIxq_select{width:auto;min-width:110px}.rp_5ZMIxq_select:focus-visible,.rp_5ZMIxq_area:focus-visible,.rp_5ZMIxq_nameInput:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_5ZMIxq_sheet{padding-inline:16px}.rp_5ZMIxq_head{flex-direction:column}.rp_5ZMIxq_portraitBox,.rp_5ZMIxq_portrait{width:120px}.rp_5ZMIxq_portraitBox{flex-basis:120px;height:160px}.rp_5ZMIxq_bar{flex-wrap:wrap;padding-inline:16px}.rp_5ZMIxq_voiceInline{width:100%;min-width:0}}";
|
|
5468
|
+
const key$42 = "src/client/world-editor/CharactersPanel.module.css";
|
|
5469
|
+
let tag$42 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$42) + "]");
|
|
5470
|
+
if (tag$42 === null) {
|
|
5471
|
+
tag$42 = document.createElement("style");
|
|
5472
|
+
tag$42.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
5473
|
+
tag$42.dataset.pluginCss = key$42;
|
|
5474
|
+
document.head.appendChild(tag$42);
|
|
5392
5475
|
}
|
|
5393
|
-
tag$
|
|
5476
|
+
tag$42.textContent = css$42;
|
|
5394
5477
|
var CharactersPanel_module_css_default = {
|
|
5395
|
-
"
|
|
5396
|
-
"
|
|
5397
|
-
"bar": "rp_5ZMIxq_bar",
|
|
5398
|
-
"help": "rp_5ZMIxq_help",
|
|
5399
|
-
"head": "rp_5ZMIxq_head",
|
|
5400
|
-
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5401
|
-
"barText": "rp_5ZMIxq_barText",
|
|
5402
|
-
"panel": "rp_5ZMIxq_panel",
|
|
5403
|
-
"tab": "rp_5ZMIxq_tab",
|
|
5404
|
-
"initial": "rp_5ZMIxq_initial",
|
|
5405
|
-
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5406
|
-
"questionActions": "rp_5ZMIxq_questionActions",
|
|
5478
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
5479
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
5407
5480
|
"area": "rp_5ZMIxq_area",
|
|
5408
|
-
"
|
|
5409
|
-
"
|
|
5481
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
5482
|
+
"tab": "rp_5ZMIxq_tab",
|
|
5483
|
+
"barText": "rp_5ZMIxq_barText",
|
|
5484
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5410
5485
|
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
5411
|
-
"error": "rp_5ZMIxq_error",
|
|
5412
|
-
"missing": "rp_5ZMIxq_missing",
|
|
5413
|
-
"select": "rp_5ZMIxq_select",
|
|
5414
5486
|
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
5415
|
-
"
|
|
5416
|
-
"section": "rp_5ZMIxq_section",
|
|
5417
|
-
"empty": "rp_5ZMIxq_empty",
|
|
5418
|
-
"grid": "rp_5ZMIxq_grid",
|
|
5419
|
-
"question": "rp_5ZMIxq_question",
|
|
5420
|
-
"field": "rp_5ZMIxq_field",
|
|
5421
|
-
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
5422
|
-
"goal": "rp_5ZMIxq_goal",
|
|
5423
|
-
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
5487
|
+
"placeholder": "rp_5ZMIxq_placeholder",
|
|
5424
5488
|
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
5425
|
-
"
|
|
5426
|
-
"
|
|
5489
|
+
"meta": "rp_5ZMIxq_meta",
|
|
5490
|
+
"empty": "rp_5ZMIxq_empty",
|
|
5491
|
+
"head": "rp_5ZMIxq_head",
|
|
5492
|
+
"missing": "rp_5ZMIxq_missing",
|
|
5493
|
+
"tabs": "rp_5ZMIxq_tabs",
|
|
5427
5494
|
"questionTitle": "rp_5ZMIxq_questionTitle",
|
|
5495
|
+
"itemActions": "rp_5ZMIxq_itemActions",
|
|
5428
5496
|
"row": "rp_5ZMIxq_row",
|
|
5497
|
+
"section": "rp_5ZMIxq_section",
|
|
5498
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
5499
|
+
"select": "rp_5ZMIxq_select",
|
|
5500
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
5501
|
+
"field": "rp_5ZMIxq_field",
|
|
5502
|
+
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
5503
|
+
"initial": "rp_5ZMIxq_initial",
|
|
5504
|
+
"bar": "rp_5ZMIxq_bar",
|
|
5505
|
+
"grid": "rp_5ZMIxq_grid",
|
|
5429
5506
|
"wide": "rp_5ZMIxq_wide",
|
|
5430
|
-
"
|
|
5431
|
-
"
|
|
5432
|
-
"
|
|
5433
|
-
"
|
|
5434
|
-
"
|
|
5507
|
+
"label": "rp_5ZMIxq_label",
|
|
5508
|
+
"body": "rp_5ZMIxq_body",
|
|
5509
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
5510
|
+
"help": "rp_5ZMIxq_help",
|
|
5511
|
+
"error": "rp_5ZMIxq_error",
|
|
5512
|
+
"goal": "rp_5ZMIxq_goal",
|
|
5513
|
+
"question": "rp_5ZMIxq_question",
|
|
5514
|
+
"optionTitle": "rp_5ZMIxq_optionTitle",
|
|
5515
|
+
"questionActions": "rp_5ZMIxq_questionActions",
|
|
5516
|
+
"optionFields": "rp_5ZMIxq_optionFields",
|
|
5517
|
+
"panel": "rp_5ZMIxq_panel"
|
|
5435
5518
|
};
|
|
5436
5519
|
// src/client/world-editor/EditorTabs.tsx
|
|
5437
5520
|
/** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
|
|
@@ -7139,50 +7222,50 @@ window.__ModuleLoader__.load({
|
|
|
7139
7222
|
});
|
|
7140
7223
|
}
|
|
7141
7224
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/RelationsPanel.module.css.mjs
|
|
7142
|
-
const css$
|
|
7143
|
-
const key$
|
|
7144
|
-
let tag$
|
|
7145
|
-
if (tag$
|
|
7146
|
-
tag$
|
|
7147
|
-
tag$
|
|
7148
|
-
tag$
|
|
7149
|
-
document.head.appendChild(tag$
|
|
7225
|
+
const css$41 = ".rp_7pEHTW_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex;position:relative}.rp_7pEHTW_toolbar{border-bottom:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:4px;padding:8px 16px;display:flex}.rp_7pEHTW_filter{border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:4px 10px}.rp_7pEHTW_filterOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_filter:focus-visible,.rp_7pEHTW_edge:focus-visible,.rp_7pEHTW_graphEdge:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}.rp_7pEHTW_space{flex:1}.rp_7pEHTW_perspective{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_7pEHTW_perspective select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);max-width:180px;min-height:32px;color:inherit;padding:4px 8px}.rp_7pEHTW_workspace{flex:1 1 0;grid-template-columns:minmax(220px,34%) minmax(320px,1fr);min-height:0;display:grid}.rp_7pEHTW_list{border-right:.5px solid var(--dsw-alias-border-l3);overflow-y:auto}.rp_7pEHTW_edge{border:0;border-bottom:.5px solid var(--dsw-alias-border-l4);width:100%;min-height:48px;color:inherit;text-align:left;cursor:pointer;background:0 0;flex-direction:column;gap:2px;padding:8px 16px;display:flex}.rp_7pEHTW_edgeOn{background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_edgeTitle{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rp_7pEHTW_edgeKind{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_7pEHTW_empty{color:var(--dsw-alias-label-tertiary);padding:20px}.rp_7pEHTW_inspector{min-width:0;padding:24px 24px 240px;overflow-y:auto}.rp_7pEHTW_head h2{margin:0 0 8px;font-size:16px}.rp_7pEHTW_entities{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:6px;display:flex}.rp_7pEHTW_notice{color:var(--dsw-alias-label-secondary);margin:24px 0}.rp_7pEHTW_form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;display:grid}.rp_7pEHTW_form label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:5px;font-size:12px;display:flex}.rp_7pEHTW_form select,.rp_7pEHTW_form textarea{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:6px 8px}.rp_7pEHTW_form textarea{resize:vertical;min-height:96px}.rp_7pEHTW_form select:focus-visible,.rp_7pEHTW_form textarea:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_7pEHTW_wide{grid-column:1/-1}.rp_7pEHTW_metrics{grid-column:1/-1;grid-template-columns:repeat(4,minmax(90px,1fr));gap:10px;display:grid}.rp_7pEHTW_check{align-self:end;align-items:center;min-height:32px;flex-direction:row!important}.rp_7pEHTW_actions{border-top:.5px solid var(--dsw-alias-border-l4);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:28px;padding-top:12px;display:flex}.rp_7pEHTW_status{color:var(--dsw-alias-label-secondary);margin-right:auto}.rp_7pEHTW_error{color:var(--dsw-alias-state-error-primary);margin-right:auto}.rp_7pEHTW_graph{background:radial-gradient(circle, var(--dsw-alias-bg-layer-2), transparent 70%);flex:1 1 0;min-height:360px;position:relative;overflow:hidden}.rp_7pEHTW_graph svg{width:100%;height:100%;min-height:520px}.rp_7pEHTW_graphEdge{cursor:pointer;stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_graphEdge:hover,.rp_7pEHTW_graphEdgeOn{stroke:var(--dsw-alias-state-business-primary);stroke-width:4px}.rp_7pEHTW_node circle{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_node_character circle{fill:color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_location circle{fill:color-mix(in srgb, #4a9 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_item circle{fill:color-mix(in srgb, #c90 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_faction circle{fill:color-mix(in srgb, #96c 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node text{fill:var(--dsw-alias-label-primary);pointer-events:none;font-size:12px}.rp_7pEHTW_graphInspector{box-sizing:border-box;border-radius:var(--dsw-radius-panel);background:var(--dsw-alias-bg-layer-1);width:min(480px,100% - 40px);max-height:62%;box-shadow:var(--dsw-elevation-panel);border:0;padding:18px;position:absolute;bottom:20px;right:20px;overflow-y:auto}@media (width<=760px){.rp_7pEHTW_workspace{grid-template-columns:1fr}.rp_7pEHTW_list{border-right:0;border-bottom:.5px solid var(--dsw-alias-border-l3);max-height:220px}.rp_7pEHTW_inspector{padding-inline:16px}.rp_7pEHTW_form{grid-template-columns:1fr}.rp_7pEHTW_wide,.rp_7pEHTW_metrics{grid-column:1}.rp_7pEHTW_metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rp_7pEHTW_graphInspector{width:calc(100% - 24px);bottom:12px;right:12px}}@media (pointer:coarse){.rp_7pEHTW_filter{min-height:44px}}";
|
|
7226
|
+
const key$41 = "src/client/world-editor/RelationsPanel.module.css";
|
|
7227
|
+
let tag$41 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$41) + "]");
|
|
7228
|
+
if (tag$41 === null) {
|
|
7229
|
+
tag$41 = document.createElement("style");
|
|
7230
|
+
tag$41.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
7231
|
+
tag$41.dataset.pluginCss = key$41;
|
|
7232
|
+
document.head.appendChild(tag$41);
|
|
7150
7233
|
}
|
|
7151
|
-
tag$
|
|
7234
|
+
tag$41.textContent = css$41;
|
|
7152
7235
|
var RelationsPanel_module_css_default = {
|
|
7153
|
-
"filterOn": "rp_7pEHTW_filterOn",
|
|
7154
|
-
"workspace": "rp_7pEHTW_workspace",
|
|
7155
|
-
"node": "rp_7pEHTW_node",
|
|
7156
|
-
"list": "rp_7pEHTW_list",
|
|
7157
|
-
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
7158
|
-
"node_location": "rp_7pEHTW_node_location",
|
|
7159
|
-
"form": "rp_7pEHTW_form",
|
|
7160
|
-
"entities": "rp_7pEHTW_entities",
|
|
7161
|
-
"actions": "rp_7pEHTW_actions",
|
|
7162
7236
|
"toolbar": "rp_7pEHTW_toolbar",
|
|
7163
|
-
"
|
|
7237
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
7238
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
7164
7239
|
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
7165
|
-
"
|
|
7240
|
+
"head": "rp_7pEHTW_head",
|
|
7241
|
+
"notice": "rp_7pEHTW_notice",
|
|
7166
7242
|
"check": "rp_7pEHTW_check",
|
|
7167
|
-
"
|
|
7243
|
+
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
7244
|
+
"list": "rp_7pEHTW_list",
|
|
7245
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
7168
7246
|
"empty": "rp_7pEHTW_empty",
|
|
7169
|
-
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
7170
7247
|
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
7171
|
-
"filter": "rp_7pEHTW_filter",
|
|
7172
|
-
"node_item": "rp_7pEHTW_node_item",
|
|
7173
7248
|
"space": "rp_7pEHTW_space",
|
|
7174
|
-
"
|
|
7175
|
-
"
|
|
7176
|
-
"
|
|
7249
|
+
"actions": "rp_7pEHTW_actions",
|
|
7250
|
+
"node_faction": "rp_7pEHTW_node_faction",
|
|
7251
|
+
"metrics": "rp_7pEHTW_metrics",
|
|
7252
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
7253
|
+
"edge": "rp_7pEHTW_edge",
|
|
7177
7254
|
"graph": "rp_7pEHTW_graph",
|
|
7178
7255
|
"perspective": "rp_7pEHTW_perspective",
|
|
7179
|
-
"
|
|
7180
|
-
"
|
|
7256
|
+
"panel": "rp_7pEHTW_panel",
|
|
7257
|
+
"filter": "rp_7pEHTW_filter",
|
|
7258
|
+
"entities": "rp_7pEHTW_entities",
|
|
7259
|
+
"form": "rp_7pEHTW_form",
|
|
7260
|
+
"node_character": "rp_7pEHTW_node_character",
|
|
7261
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
7262
|
+
"filterOn": "rp_7pEHTW_filterOn",
|
|
7181
7263
|
"wide": "rp_7pEHTW_wide",
|
|
7182
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
7183
7264
|
"error": "rp_7pEHTW_error",
|
|
7184
|
-
"
|
|
7185
|
-
"
|
|
7265
|
+
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
7266
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
7267
|
+
"status": "rp_7pEHTW_status",
|
|
7268
|
+
"node": "rp_7pEHTW_node"
|
|
7186
7269
|
};
|
|
7187
7270
|
// src/client/world-editor/RelationsPanel.tsx
|
|
7188
7271
|
const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
|
|
@@ -8540,22 +8623,22 @@ window.__ModuleLoader__.load({
|
|
|
8540
8623
|
}
|
|
8541
8624
|
};
|
|
8542
8625
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/pack-frame/PackFrame.module.css.mjs
|
|
8543
|
-
const css$
|
|
8544
|
-
const key$
|
|
8545
|
-
let tag$
|
|
8546
|
-
if (tag$
|
|
8547
|
-
tag$
|
|
8548
|
-
tag$
|
|
8549
|
-
tag$
|
|
8550
|
-
document.head.appendChild(tag$
|
|
8626
|
+
const css$40 = ".rp_h_sbFq_frame{background:0 0;border:0;width:100%;display:block}.rp_h_sbFq_fill{height:100%;min-height:0}.rp_h_sbFq_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px 24px;font-size:13px;line-height:20px}.rp_h_sbFq_problems{color:var(--dsw-alias-label-tertiary);margin:8px 0 0;padding-left:18px;font-size:12px}.rp_h_sbFq_hud{box-sizing:border-box;width:min(800px,100%);margin:0 auto 8px;padding:0 16px}.rp_h_sbFq_tab{flex-direction:column;flex:1 1 0;width:100%;min-height:0;display:flex}";
|
|
8627
|
+
const key$40 = "src/client/widgets/pack-frame/PackFrame.module.css";
|
|
8628
|
+
let tag$40 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$40) + "]");
|
|
8629
|
+
if (tag$40 === null) {
|
|
8630
|
+
tag$40 = document.createElement("style");
|
|
8631
|
+
tag$40.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8632
|
+
tag$40.dataset.pluginCss = key$40;
|
|
8633
|
+
document.head.appendChild(tag$40);
|
|
8551
8634
|
}
|
|
8552
|
-
tag$
|
|
8635
|
+
tag$40.textContent = css$40;
|
|
8553
8636
|
var PackFrame_module_css_default = {
|
|
8554
8637
|
"fill": "rp_h_sbFq_fill",
|
|
8638
|
+
"message": "rp_h_sbFq_message",
|
|
8555
8639
|
"frame": "rp_h_sbFq_frame",
|
|
8556
8640
|
"problems": "rp_h_sbFq_problems",
|
|
8557
8641
|
"hud": "rp_h_sbFq_hud",
|
|
8558
|
-
"message": "rp_h_sbFq_message",
|
|
8559
8642
|
"tab": "rp_h_sbFq_tab"
|
|
8560
8643
|
};
|
|
8561
8644
|
// src/client/widgets/pack-frame/theme.ts
|
|
@@ -8806,25 +8889,31 @@ window.__ModuleLoader__.load({
|
|
|
8806
8889
|
const savePackFile = async (world, pack, path, text, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/interface/file?${packQuery(world, pack, path)}`, init("PUT", signal, { text })))).problems;
|
|
8807
8890
|
const removePackFile = async (world, pack, path, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/interface/file?${packQuery(world, pack, path)}`, init("DELETE", signal)))).problems;
|
|
8808
8891
|
const createPack = async (world, pack, name, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/interface/pack?${packQuery(world, pack)}`, init("POST", signal, { name })))).problems;
|
|
8892
|
+
const loadCheckpoints = async (world, signal) => (await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints?${query(world)}`, init("GET", signal)))).checkpoints;
|
|
8893
|
+
const makeCheckpoint = async (world, label, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints?${query(world)}`, init("POST", signal, { label })));
|
|
8894
|
+
const compareCheckpoint = async (world, checkpoint, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints/diff?${query(world)}&checkpoint=${encodeURIComponent(checkpoint)}`, init("GET", signal)));
|
|
8895
|
+
const restoreCheckpoint = async (world, checkpoint, signal) => {
|
|
8896
|
+
await read$2(await fetch(`${API_PREFIX}/worlds/checkpoints/restore?${query(world)}`, init("POST", signal, { checkpoint })));
|
|
8897
|
+
};
|
|
8809
8898
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/PacksPanel.module.css.mjs
|
|
8810
|
-
const css$
|
|
8811
|
-
const key$
|
|
8812
|
-
let tag$
|
|
8813
|
-
if (tag$
|
|
8814
|
-
tag$
|
|
8815
|
-
tag$
|
|
8816
|
-
tag$
|
|
8817
|
-
document.head.appendChild(tag$
|
|
8899
|
+
const css$39 = ".rp_FLaP7q_controls{flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0;display:flex}.rp_FLaP7q_group{color:var(--dsw-alias-label-tertiary);align-items:center;gap:4px;font-size:12px;display:inline-flex}.rp_FLaP7q_stage{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-base);max-width:100%;overflow:hidden}.rp_FLaP7q_stageTall{height:420px}.rp_FLaP7q_log{color:var(--dsw-alias-label-secondary);margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_files{columns:2 220px;margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_note{color:var(--dsw-alias-label-tertiary);font-size:12px}";
|
|
8900
|
+
const key$39 = "src/client/world-editor/PacksPanel.module.css";
|
|
8901
|
+
let tag$39 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$39) + "]");
|
|
8902
|
+
if (tag$39 === null) {
|
|
8903
|
+
tag$39 = document.createElement("style");
|
|
8904
|
+
tag$39.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8905
|
+
tag$39.dataset.pluginCss = key$39;
|
|
8906
|
+
document.head.appendChild(tag$39);
|
|
8818
8907
|
}
|
|
8819
|
-
tag$
|
|
8908
|
+
tag$39.textContent = css$39;
|
|
8820
8909
|
var PacksPanel_module_css_default = {
|
|
8821
|
-
"files": "rp_FLaP7q_files",
|
|
8822
|
-
"log": "rp_FLaP7q_log",
|
|
8823
|
-
"note": "rp_FLaP7q_note",
|
|
8824
8910
|
"stageTall": "rp_FLaP7q_stageTall",
|
|
8911
|
+
"note": "rp_FLaP7q_note",
|
|
8825
8912
|
"group": "rp_FLaP7q_group",
|
|
8826
|
-
"
|
|
8827
|
-
"
|
|
8913
|
+
"controls": "rp_FLaP7q_controls",
|
|
8914
|
+
"log": "rp_FLaP7q_log",
|
|
8915
|
+
"files": "rp_FLaP7q_files",
|
|
8916
|
+
"stage": "rp_FLaP7q_stage"
|
|
8828
8917
|
};
|
|
8829
8918
|
// src/client/world-editor/PacksPanel.tsx
|
|
8830
8919
|
const WIDTHS = {
|
|
@@ -9324,6 +9413,234 @@ window.__ModuleLoader__.load({
|
|
|
9324
9413
|
})]
|
|
9325
9414
|
});
|
|
9326
9415
|
}
|
|
9416
|
+
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CheckpointsPanel.module.css.mjs
|
|
9417
|
+
const css$38 = ".rp_srazXG_list{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.rp_srazXG_item{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:6px;padding:8px 12px;display:flex}.rp_srazXG_head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_srazXG_what{font-size:13px;font-weight:500}.rp_srazXG_when{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_srazXG_buttons{flex-wrap:wrap;justify-content:flex-end;gap:4px;margin-inline-start:auto;display:flex}.rp_srazXG_diff{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;padding:0 0 0 16px;font-size:12px}.rp_srazXG_diffTitle{margin:4px 0 2px;font-size:12px;font-weight:500}.rp_srazXG_create{align-items:center;gap:8px;margin-top:12px;display:flex}.rp_srazXG_createInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);min-width:min(180px,100%);min-height:28px;color:inherit;font:inherit;flex:auto;padding:2px 8px;font-size:12px}.rp_srazXG_notice{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px}@media (width<=480px){.rp_srazXG_create{flex-wrap:wrap}.rp_srazXG_createInput{flex-basis:100%}}";
|
|
9418
|
+
const key$38 = "src/client/world-editor/CheckpointsPanel.module.css";
|
|
9419
|
+
let tag$38 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$38) + "]");
|
|
9420
|
+
if (tag$38 === null) {
|
|
9421
|
+
tag$38 = document.createElement("style");
|
|
9422
|
+
tag$38.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
9423
|
+
tag$38.dataset.pluginCss = key$38;
|
|
9424
|
+
document.head.appendChild(tag$38);
|
|
9425
|
+
}
|
|
9426
|
+
tag$38.textContent = css$38;
|
|
9427
|
+
var CheckpointsPanel_module_css_default = {
|
|
9428
|
+
"item": "rp_srazXG_item",
|
|
9429
|
+
"what": "rp_srazXG_what",
|
|
9430
|
+
"diff": "rp_srazXG_diff",
|
|
9431
|
+
"notice": "rp_srazXG_notice",
|
|
9432
|
+
"when": "rp_srazXG_when",
|
|
9433
|
+
"diffTitle": "rp_srazXG_diffTitle",
|
|
9434
|
+
"head": "rp_srazXG_head",
|
|
9435
|
+
"create": "rp_srazXG_create",
|
|
9436
|
+
"buttons": "rp_srazXG_buttons",
|
|
9437
|
+
"list": "rp_srazXG_list",
|
|
9438
|
+
"createInput": "rp_srazXG_createInput"
|
|
9439
|
+
};
|
|
9440
|
+
// src/client/world-editor/CheckpointsPanel.tsx
|
|
9441
|
+
const messageOf$12 = (error) => error instanceof Error ? error.message : String(error);
|
|
9442
|
+
/** The copies of a world's files kept for taking its authoring back: when each was made, how the world differs from it now, and putting the world back as it was. */
|
|
9443
|
+
function CheckpointsPanel({ t, worldId, actions, onRestored }) {
|
|
9444
|
+
const say = (0, react.useCallback)((key, values) => t(`cp_${key}`, values), [t]);
|
|
9445
|
+
const [list, setList] = (0, react.useState)();
|
|
9446
|
+
const [label, setLabel] = (0, react.useState)("");
|
|
9447
|
+
const [open, setOpen] = (0, react.useState)();
|
|
9448
|
+
const [confirming, setConfirming] = (0, react.useState)();
|
|
9449
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
9450
|
+
const [error, setError] = (0, react.useState)();
|
|
9451
|
+
const [done, setDone] = (0, react.useState)(false);
|
|
9452
|
+
const read = (0, react.useCallback)((signal) => {
|
|
9453
|
+
loadCheckpoints(worldId, signal).then(setList, (failure) => {
|
|
9454
|
+
if (!signal.aborted) setList({ failed: messageOf$12(failure) });
|
|
9455
|
+
});
|
|
9456
|
+
}, [worldId]);
|
|
9457
|
+
(0, react.useEffect)(() => {
|
|
9458
|
+
const abort = new AbortController();
|
|
9459
|
+
read(abort.signal);
|
|
9460
|
+
return () => {
|
|
9461
|
+
abort.abort();
|
|
9462
|
+
};
|
|
9463
|
+
}, [read]);
|
|
9464
|
+
const run = (work) => {
|
|
9465
|
+
setBusy(true);
|
|
9466
|
+
setError(void 0);
|
|
9467
|
+
setDone(false);
|
|
9468
|
+
work().catch((failure) => {
|
|
9469
|
+
setError(messageOf$12(failure));
|
|
9470
|
+
}).finally(() => {
|
|
9471
|
+
setBusy(false);
|
|
9472
|
+
});
|
|
9473
|
+
};
|
|
9474
|
+
const create = () => run(async () => {
|
|
9475
|
+
await makeCheckpoint(worldId, label, new AbortController().signal);
|
|
9476
|
+
setLabel("");
|
|
9477
|
+
read(new AbortController().signal);
|
|
9478
|
+
});
|
|
9479
|
+
const compare = (id) => {
|
|
9480
|
+
if (open?.id === id) {
|
|
9481
|
+
setOpen(void 0);
|
|
9482
|
+
return;
|
|
9483
|
+
}
|
|
9484
|
+
setOpen({ id });
|
|
9485
|
+
run(async () => {
|
|
9486
|
+
const diff = await compareCheckpoint(worldId, id, new AbortController().signal);
|
|
9487
|
+
setOpen({
|
|
9488
|
+
id,
|
|
9489
|
+
diff
|
|
9490
|
+
});
|
|
9491
|
+
});
|
|
9492
|
+
};
|
|
9493
|
+
const restore = (id) => run(async () => {
|
|
9494
|
+
await restoreCheckpoint(worldId, id, new AbortController().signal);
|
|
9495
|
+
setConfirming(void 0);
|
|
9496
|
+
setOpen(void 0);
|
|
9497
|
+
setDone(true);
|
|
9498
|
+
read(new AbortController().signal);
|
|
9499
|
+
onRestored();
|
|
9500
|
+
});
|
|
9501
|
+
const reason = (entry) => entry.reason === "turn" ? say("reasonTurn", { turn: entry.turn ?? 0 }) : entry.reason === "before-restore" ? say("reasonBefore") : entry.label === "" ? say("reasonManual") : entry.label;
|
|
9502
|
+
const paths = (title, files) => files.length === 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9503
|
+
className: CheckpointsPanel_module_css_default.diffTitle,
|
|
9504
|
+
children: title
|
|
9505
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
9506
|
+
className: CheckpointsPanel_module_css_default.diff,
|
|
9507
|
+
children: files.map((path) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: path }, path))
|
|
9508
|
+
})] });
|
|
9509
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9510
|
+
className: CharactersPanel_module_css_default.panel,
|
|
9511
|
+
"data-testid": "roleplay-world-checkpoints",
|
|
9512
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9513
|
+
className: CharactersPanel_module_css_default.tabs,
|
|
9514
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: CharactersPanel_module_css_default.tabsSpace }), actions]
|
|
9515
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9516
|
+
className: CharactersPanel_module_css_default.body,
|
|
9517
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
|
|
9518
|
+
className: CharactersPanel_module_css_default.sheet,
|
|
9519
|
+
children: [
|
|
9520
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
9521
|
+
className: CharactersPanel_module_css_default.sectionTitle,
|
|
9522
|
+
children: say("title")
|
|
9523
|
+
}),
|
|
9524
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9525
|
+
className: CharactersPanel_module_css_default.help,
|
|
9526
|
+
children: say("help")
|
|
9527
|
+
}),
|
|
9528
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9529
|
+
className: CheckpointsPanel_module_css_default.create,
|
|
9530
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9531
|
+
className: CheckpointsPanel_module_css_default.createInput,
|
|
9532
|
+
value: label,
|
|
9533
|
+
placeholder: say("labelPlaceholder"),
|
|
9534
|
+
"aria-label": say("create"),
|
|
9535
|
+
disabled: busy,
|
|
9536
|
+
onChange: (event) => {
|
|
9537
|
+
setLabel(event.target.value);
|
|
9538
|
+
},
|
|
9539
|
+
onKeyDown: (event) => {
|
|
9540
|
+
if (event.key === "Enter") create();
|
|
9541
|
+
}
|
|
9542
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9543
|
+
variant: "outline",
|
|
9544
|
+
size: "sm",
|
|
9545
|
+
disabled: busy,
|
|
9546
|
+
onClick: create,
|
|
9547
|
+
children: say("create")
|
|
9548
|
+
})]
|
|
9549
|
+
}),
|
|
9550
|
+
error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9551
|
+
className: CharactersPanel_module_css_default.error,
|
|
9552
|
+
role: "alert",
|
|
9553
|
+
children: say("failed", { message: error })
|
|
9554
|
+
}),
|
|
9555
|
+
done && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9556
|
+
className: CheckpointsPanel_module_css_default.notice,
|
|
9557
|
+
role: "status",
|
|
9558
|
+
children: say("restored")
|
|
9559
|
+
}),
|
|
9560
|
+
list === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9561
|
+
className: CharactersPanel_module_css_default.empty,
|
|
9562
|
+
children: say("loading")
|
|
9563
|
+
}),
|
|
9564
|
+
list !== void 0 && "failed" in list && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9565
|
+
className: CharactersPanel_module_css_default.error,
|
|
9566
|
+
role: "alert",
|
|
9567
|
+
children: say("loadFailed", { message: list.failed })
|
|
9568
|
+
}),
|
|
9569
|
+
Array.isArray(list) && list.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9570
|
+
className: CharactersPanel_module_css_default.empty,
|
|
9571
|
+
children: say("empty")
|
|
9572
|
+
}),
|
|
9573
|
+
Array.isArray(list) && list.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
9574
|
+
className: CheckpointsPanel_module_css_default.list,
|
|
9575
|
+
children: list.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
9576
|
+
className: CheckpointsPanel_module_css_default.item,
|
|
9577
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9578
|
+
className: CheckpointsPanel_module_css_default.head,
|
|
9579
|
+
children: [
|
|
9580
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9581
|
+
className: CheckpointsPanel_module_css_default.what,
|
|
9582
|
+
children: reason(entry)
|
|
9583
|
+
}),
|
|
9584
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
9585
|
+
className: CheckpointsPanel_module_css_default.when,
|
|
9586
|
+
children: [
|
|
9587
|
+
new Date(entry.at).toLocaleString(t("language")),
|
|
9588
|
+
" · ",
|
|
9589
|
+
say("files", { count: entry.files })
|
|
9590
|
+
]
|
|
9591
|
+
}),
|
|
9592
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
9593
|
+
className: CheckpointsPanel_module_css_default.buttons,
|
|
9594
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9595
|
+
variant: "outline",
|
|
9596
|
+
size: "sm",
|
|
9597
|
+
disabled: busy,
|
|
9598
|
+
onClick: () => {
|
|
9599
|
+
compare(entry.id);
|
|
9600
|
+
},
|
|
9601
|
+
children: open?.id === entry.id ? say("hideCompare") : say("compare")
|
|
9602
|
+
}), confirming === entry.id ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9603
|
+
variant: "primary",
|
|
9604
|
+
size: "sm",
|
|
9605
|
+
disabled: busy,
|
|
9606
|
+
onClick: () => {
|
|
9607
|
+
restore(entry.id);
|
|
9608
|
+
},
|
|
9609
|
+
children: busy ? say("working") : say("confirmRestore")
|
|
9610
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9611
|
+
variant: "ghost",
|
|
9612
|
+
size: "sm",
|
|
9613
|
+
disabled: busy,
|
|
9614
|
+
onClick: () => {
|
|
9615
|
+
setConfirming(void 0);
|
|
9616
|
+
},
|
|
9617
|
+
children: say("cancel")
|
|
9618
|
+
})] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9619
|
+
variant: "outline",
|
|
9620
|
+
size: "sm",
|
|
9621
|
+
disabled: busy,
|
|
9622
|
+
onClick: () => {
|
|
9623
|
+
setConfirming(entry.id);
|
|
9624
|
+
},
|
|
9625
|
+
children: say("restore")
|
|
9626
|
+
})]
|
|
9627
|
+
})
|
|
9628
|
+
]
|
|
9629
|
+
}), open?.id === entry.id && open.diff !== void 0 && (open.diff.changed.length + open.diff.added.length + open.diff.removed.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9630
|
+
className: CheckpointsPanel_module_css_default.when,
|
|
9631
|
+
children: say("same")
|
|
9632
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
9633
|
+
paths(say("changed"), open.diff.changed),
|
|
9634
|
+
paths(say("added"), open.diff.added),
|
|
9635
|
+
paths(say("removed"), open.diff.removed)
|
|
9636
|
+
] }))]
|
|
9637
|
+
}, entry.id))
|
|
9638
|
+
})
|
|
9639
|
+
]
|
|
9640
|
+
})
|
|
9641
|
+
})]
|
|
9642
|
+
});
|
|
9643
|
+
}
|
|
9327
9644
|
// src/client/world-editor/trigger-text.ts
|
|
9328
9645
|
function namesOf(world) {
|
|
9329
9646
|
const by = (list) => {
|
|
@@ -10277,12 +10594,12 @@ window.__ModuleLoader__.load({
|
|
|
10277
10594
|
}
|
|
10278
10595
|
tag$37.textContent = css$37;
|
|
10279
10596
|
var SamplingFields_module_css_default = {
|
|
10280
|
-
"root": "rp_9vxYSG_root",
|
|
10281
|
-
"input": "rp_9vxYSG_input",
|
|
10282
10597
|
"label": "rp_9vxYSG_label",
|
|
10283
|
-
"
|
|
10598
|
+
"root": "rp_9vxYSG_root",
|
|
10284
10599
|
"field": "rp_9vxYSG_field",
|
|
10285
|
-
"
|
|
10600
|
+
"grid": "rp_9vxYSG_grid",
|
|
10601
|
+
"help": "rp_9vxYSG_help",
|
|
10602
|
+
"input": "rp_9vxYSG_input"
|
|
10286
10603
|
};
|
|
10287
10604
|
// src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
10288
10605
|
const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
|
|
@@ -12136,17 +12453,17 @@ window.__ModuleLoader__.load({
|
|
|
12136
12453
|
}
|
|
12137
12454
|
tag$36.textContent = css$36;
|
|
12138
12455
|
var ToolSwitches_module_css_default = {
|
|
12139
|
-
"
|
|
12140
|
-
"help": "rp_CjoFLq_help",
|
|
12141
|
-
"error": "rp_CjoFLq_error",
|
|
12142
|
-
"root": "rp_CjoFLq_root",
|
|
12143
|
-
"toolText": "rp_CjoFLq_toolText",
|
|
12144
|
-
"agent": "rp_CjoFLq_agent",
|
|
12145
|
-
"hint": "rp_CjoFLq_hint",
|
|
12456
|
+
"agentName": "rp_CjoFLq_agentName",
|
|
12146
12457
|
"default": "rp_CjoFLq_default",
|
|
12458
|
+
"agent": "rp_CjoFLq_agent",
|
|
12459
|
+
"error": "rp_CjoFLq_error",
|
|
12147
12460
|
"title": "rp_CjoFLq_title",
|
|
12461
|
+
"tool": "rp_CjoFLq_tool",
|
|
12148
12462
|
"external": "rp_CjoFLq_external",
|
|
12149
|
-
"
|
|
12463
|
+
"help": "rp_CjoFLq_help",
|
|
12464
|
+
"hint": "rp_CjoFLq_hint",
|
|
12465
|
+
"toolText": "rp_CjoFLq_toolText",
|
|
12466
|
+
"root": "rp_CjoFLq_root"
|
|
12150
12467
|
};
|
|
12151
12468
|
// src/client/widgets/tool-switches/ToolSwitches.tsx
|
|
12152
12469
|
/**
|
|
@@ -13235,9 +13552,9 @@ window.__ModuleLoader__.load({
|
|
|
13235
13552
|
}
|
|
13236
13553
|
tag$35.textContent = css$35;
|
|
13237
13554
|
var ImageLightbox_module_css_default = {
|
|
13555
|
+
"close": "rp_O6oWuW_close",
|
|
13238
13556
|
"root": "rp_O6oWuW_root",
|
|
13239
|
-
"image": "rp_O6oWuW_image"
|
|
13240
|
-
"close": "rp_O6oWuW_close"
|
|
13557
|
+
"image": "rp_O6oWuW_image"
|
|
13241
13558
|
};
|
|
13242
13559
|
// src/client/ui/ImageLightbox.tsx
|
|
13243
13560
|
/**
|
|
@@ -13365,8 +13682,20 @@ window.__ModuleLoader__.load({
|
|
|
13365
13682
|
page.removeEventListener?.("visibilitychange", listener);
|
|
13366
13683
|
};
|
|
13367
13684
|
}
|
|
13685
|
+
// src/client/widgets/gallery-view/polling.ts
|
|
13686
|
+
/** How often the list is read again while pictures are waiting to be described. */
|
|
13687
|
+
const POLL_MS$3 = 3e3;
|
|
13688
|
+
/** Whether a quiet read found nothing new, so the page keeps what it shows and nothing is drawn again. */
|
|
13689
|
+
const sameGallery = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
13690
|
+
/**
|
|
13691
|
+
* Whether a session's gallery has pictures being described in the background, which is what makes it read the list again by itself. A world's gallery never does: nothing describes its
|
|
13692
|
+
* pictures but the person pressing Describe, and the answer comes back to that press. A picture whose description failed is not waiting.
|
|
13693
|
+
*/
|
|
13694
|
+
function awaitsDescriptions(kind, contents) {
|
|
13695
|
+
return kind !== "worlds" && contents !== void 0 && contents.images.some((image) => image.pending === true && contents.failures[image.path] === void 0);
|
|
13696
|
+
}
|
|
13368
13697
|
// \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/gallery-view/GalleryView.module.css.mjs
|
|
13369
|
-
const css$34 = ".rp_9pSHmG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_9pSHmG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.rp_9pSHmG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_9pSHmG_select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_9pSHmG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_9pSHmG_cell{min-width:0}.rp_9pSHmG_thumb{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;flex-direction:column;padding:0;display:flex;overflow:hidden}.rp_9pSHmG_open{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}.rp_9pSHmG_thumb:hover{border-color:var(--dsw-alias-border-l4)}.rp_9pSHmG_image{aspect-ratio:1;object-fit:cover;background:var(--dsw-alias-bg-layer-3);width:100%;display:block}.rp_9pSHmG_caption{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-secondary);padding:6px 8px;font-size:12px;overflow:hidden}.rp_9pSHmG_detail{flex-direction:column;gap:12px;width:min(640px,100%);max-height:70vh;display:flex;overflow-y:auto}.rp_9pSHmG_large{border-radius:var(--dsw-radius-lg);object-fit:contain;max-width:100%;max-height:32vh;margin:0 auto;display:block}.rp_9pSHmG_facts{grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.rp_9pSHmG_facts dt{color:var(--dsw-alias-label-tertiary)}.rp_9pSHmG_facts dd{min-width:0;color:var(--dsw-alias-label-primary);margin:0}.rp_9pSHmG_pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}.rp_9pSHmG_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_9pSHmG_note{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_9pSHmG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_9pSHmG_status,.rp_9pSHmG_statusError{color:var(--dsw-alias-label-tertiary);
|
|
13698
|
+
const css$34 = ".rp_9pSHmG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_9pSHmG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.rp_9pSHmG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_9pSHmG_select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_9pSHmG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_9pSHmG_cell{min-width:0}.rp_9pSHmG_thumb{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;flex-direction:column;padding:0;display:flex;overflow:hidden}.rp_9pSHmG_open{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}.rp_9pSHmG_thumb:hover{border-color:var(--dsw-alias-border-l4)}.rp_9pSHmG_image{aspect-ratio:1;object-fit:cover;background:var(--dsw-alias-bg-layer-3);width:100%;display:block}.rp_9pSHmG_caption{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-secondary);padding:6px 8px;font-size:12px;overflow:hidden}.rp_9pSHmG_detail{flex-direction:column;gap:12px;width:min(640px,100%);max-height:70vh;display:flex;overflow-y:auto}.rp_9pSHmG_large{border-radius:var(--dsw-radius-lg);object-fit:contain;max-width:100%;max-height:32vh;margin:0 auto;display:block}.rp_9pSHmG_facts{grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.rp_9pSHmG_facts dt{color:var(--dsw-alias-label-tertiary)}.rp_9pSHmG_facts dd{min-width:0;color:var(--dsw-alias-label-primary);margin:0}.rp_9pSHmG_pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}.rp_9pSHmG_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_9pSHmG_note{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_9pSHmG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_9pSHmG_footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;padding:0 8px 8px;display:flex}.rp_9pSHmG_buttons{flex-wrap:wrap;gap:4px;margin-inline-start:auto;display:flex}.rp_9pSHmG_status,.rp_9pSHmG_statusError{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:help;background:0 0;border:0;justify-content:center;align-items:center;padding:2px;display:inline-flex}.rp_9pSHmG_statusError{color:var(--dsw-alias-state-error-primary)}.rp_9pSHmG_status:focus-visible,.rp_9pSHmG_statusError:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_9pSHmG_reusable{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:0 8px 6px;font-size:12px;display:flex}.rp_9pSHmG_reusable input{accent-color:var(--dsw-alias-state-business-primary);margin:0}.rp_9pSHmG_edit{flex-direction:column;gap:12px;width:min(480px,100%);display:flex}.rp_9pSHmG_editField{flex-direction:column;gap:4px;display:flex}.rp_9pSHmG_editLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_9pSHmG_editHelp{overflow-wrap:anywhere;color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_editArea,.rp_9pSHmG_editInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}.rp_9pSHmG_editArea{resize:vertical;min-height:96px}.rp_9pSHmG_editArea:focus-visible,.rp_9pSHmG_editInput:focus-visible,.rp_9pSHmG_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_9pSHmG_page{padding-inline:16px}.rp_9pSHmG_toolbar{align-items:flex-start}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))}}";
|
|
13370
13699
|
const key$34 = "src/client/widgets/gallery-view/GalleryView.module.css";
|
|
13371
13700
|
let tag$34 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$34) + "]");
|
|
13372
13701
|
if (tag$34 === null) {
|
|
@@ -13377,39 +13706,38 @@ window.__ModuleLoader__.load({
|
|
|
13377
13706
|
}
|
|
13378
13707
|
tag$34.textContent = css$34;
|
|
13379
13708
|
var GalleryView_module_css_default = {
|
|
13380
|
-
"
|
|
13381
|
-
"
|
|
13382
|
-
"open": "rp_9pSHmG_open",
|
|
13383
|
-
"error": "rp_9pSHmG_error",
|
|
13384
|
-
"facts": "rp_9pSHmG_facts",
|
|
13385
|
-
"editArea": "rp_9pSHmG_editArea",
|
|
13386
|
-
"toolbar": "rp_9pSHmG_toolbar",
|
|
13709
|
+
"reusable": "rp_9pSHmG_reusable",
|
|
13710
|
+
"editField": "rp_9pSHmG_editField",
|
|
13387
13711
|
"count": "rp_9pSHmG_count",
|
|
13388
|
-
"
|
|
13712
|
+
"editArea": "rp_9pSHmG_editArea",
|
|
13713
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
13714
|
+
"tags": "rp_9pSHmG_tags",
|
|
13389
13715
|
"editHelp": "rp_9pSHmG_editHelp",
|
|
13390
|
-
"status": "rp_9pSHmG_status",
|
|
13391
|
-
"image": "rp_9pSHmG_image",
|
|
13392
|
-
"note": "rp_9pSHmG_note",
|
|
13393
13716
|
"edit": "rp_9pSHmG_edit",
|
|
13394
13717
|
"select": "rp_9pSHmG_select",
|
|
13395
|
-
"
|
|
13718
|
+
"error": "rp_9pSHmG_error",
|
|
13719
|
+
"status": "rp_9pSHmG_status",
|
|
13720
|
+
"detail": "rp_9pSHmG_detail",
|
|
13721
|
+
"facts": "rp_9pSHmG_facts",
|
|
13396
13722
|
"editInput": "rp_9pSHmG_editInput",
|
|
13397
|
-
"
|
|
13398
|
-
"
|
|
13723
|
+
"footer": "rp_9pSHmG_footer",
|
|
13724
|
+
"page": "rp_9pSHmG_page",
|
|
13725
|
+
"open": "rp_9pSHmG_open",
|
|
13399
13726
|
"pre": "rp_9pSHmG_pre",
|
|
13400
|
-
"
|
|
13401
|
-
"editField": "rp_9pSHmG_editField",
|
|
13402
|
-
"tags": "rp_9pSHmG_tags",
|
|
13403
|
-
"statusError": "rp_9pSHmG_statusError",
|
|
13404
|
-
"grid": "rp_9pSHmG_grid",
|
|
13405
|
-
"cell": "rp_9pSHmG_cell",
|
|
13727
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
13406
13728
|
"thumb": "rp_9pSHmG_thumb",
|
|
13729
|
+
"large": "rp_9pSHmG_large",
|
|
13730
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
13731
|
+
"message": "rp_9pSHmG_message",
|
|
13732
|
+
"image": "rp_9pSHmG_image",
|
|
13733
|
+
"grid": "rp_9pSHmG_grid",
|
|
13734
|
+
"note": "rp_9pSHmG_note",
|
|
13735
|
+
"actions": "rp_9pSHmG_actions",
|
|
13736
|
+
"buttons": "rp_9pSHmG_buttons",
|
|
13407
13737
|
"caption": "rp_9pSHmG_caption",
|
|
13408
|
-
"
|
|
13738
|
+
"cell": "rp_9pSHmG_cell"
|
|
13409
13739
|
};
|
|
13410
13740
|
// src/client/widgets/gallery-view/GalleryView.tsx
|
|
13411
|
-
/** How often the list is read again while pictures are waiting to be described. */
|
|
13412
|
-
const POLL_MS$3 = 3e3;
|
|
13413
13741
|
const messageOf$10 = (error) => error instanceof Error ? error.message : String(error);
|
|
13414
13742
|
function EditDialog({ t, image, onSave, onClose }) {
|
|
13415
13743
|
const [description, setDescription] = (0, react.useState)(image.description ?? "");
|
|
@@ -13512,16 +13840,17 @@ window.__ModuleLoader__.load({
|
|
|
13512
13840
|
const picker = (0, react.useRef)(null);
|
|
13513
13841
|
const [editing, setEditing] = (0, react.useState)();
|
|
13514
13842
|
const [describing, setDescribing] = (0, react.useState)(/* @__PURE__ */ new Set());
|
|
13515
|
-
const
|
|
13516
|
-
|
|
13843
|
+
const [describeFailures, setDescribeFailures] = (0, react.useState)({});
|
|
13844
|
+
const read = (0, react.useCallback)((signal, quiet = false) => {
|
|
13845
|
+
if (!quiet) setRefreshing(true);
|
|
13517
13846
|
loadGallery(target, signal).then((contents) => {
|
|
13518
|
-
setLoad({
|
|
13847
|
+
setLoad((current) => quiet && current.status === "ready" && sameGallery(current.contents, contents) ? current : {
|
|
13519
13848
|
status: "ready",
|
|
13520
13849
|
contents
|
|
13521
13850
|
});
|
|
13522
13851
|
setRefreshing(false);
|
|
13523
13852
|
}, (failure) => {
|
|
13524
|
-
if (!signal.aborted) {
|
|
13853
|
+
if (!signal.aborted && !quiet) {
|
|
13525
13854
|
setLoad({
|
|
13526
13855
|
status: "failed",
|
|
13527
13856
|
message: messageOf$10(failure)
|
|
@@ -13537,26 +13866,22 @@ window.__ModuleLoader__.load({
|
|
|
13537
13866
|
abort.abort();
|
|
13538
13867
|
};
|
|
13539
13868
|
}, [read]);
|
|
13540
|
-
const waiting = load.status === "ready"
|
|
13869
|
+
const waiting = awaitsDescriptions(target.kind, load.status === "ready" ? load.contents : void 0);
|
|
13541
13870
|
(0, react.useEffect)(() => {
|
|
13542
13871
|
if (!waiting) return;
|
|
13543
13872
|
const abort = new AbortController();
|
|
13544
|
-
const timer = window.
|
|
13545
|
-
if (pageVisible()) read(abort.signal);
|
|
13873
|
+
const timer = window.setInterval(() => {
|
|
13874
|
+
if (pageVisible()) read(abort.signal, true);
|
|
13546
13875
|
}, POLL_MS$3);
|
|
13547
13876
|
const off = onPageVisible(() => {
|
|
13548
|
-
read(abort.signal);
|
|
13877
|
+
read(abort.signal, true);
|
|
13549
13878
|
});
|
|
13550
13879
|
return () => {
|
|
13551
|
-
window.
|
|
13880
|
+
window.clearInterval(timer);
|
|
13552
13881
|
off();
|
|
13553
13882
|
abort.abort();
|
|
13554
13883
|
};
|
|
13555
|
-
}, [
|
|
13556
|
-
waiting,
|
|
13557
|
-
read,
|
|
13558
|
-
load
|
|
13559
|
-
]);
|
|
13884
|
+
}, [waiting, read]);
|
|
13560
13885
|
if (load.status === "loading") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
13561
13886
|
className: GalleryView_module_css_default.message,
|
|
13562
13887
|
children: t("loading")
|
|
@@ -13598,7 +13923,12 @@ window.__ModuleLoader__.load({
|
|
|
13598
13923
|
const describe = (image) => {
|
|
13599
13924
|
setDescribing((current) => new Set(current).add(image.path));
|
|
13600
13925
|
setNotice(void 0);
|
|
13926
|
+
setDescribeFailures(({ [image.path]: _cleared, ...rest }) => rest);
|
|
13601
13927
|
describeImage(target, image.path, new AbortController().signal).then(replace, (failure) => {
|
|
13928
|
+
setDescribeFailures((current) => ({
|
|
13929
|
+
...current,
|
|
13930
|
+
[image.path]: messageOf$10(failure)
|
|
13931
|
+
}));
|
|
13602
13932
|
setNotice(t("describeError", { message: messageOf$10(failure) }));
|
|
13603
13933
|
}).finally(() => {
|
|
13604
13934
|
setDescribing((current) => {
|
|
@@ -13703,7 +14033,7 @@ window.__ModuleLoader__.load({
|
|
|
13703
14033
|
className: GalleryView_module_css_default.grid,
|
|
13704
14034
|
children: shown.map((image) => {
|
|
13705
14035
|
const name = image.subjects.map((subject) => subject.name).join(", ") || image.originalName || image.path;
|
|
13706
|
-
const failed = failures[image.path];
|
|
14036
|
+
const failed = describeFailures[image.path] ?? failures[image.path];
|
|
13707
14037
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
13708
14038
|
className: GalleryView_module_css_default.cell,
|
|
13709
14039
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -13721,26 +14051,40 @@ window.__ModuleLoader__.load({
|
|
|
13721
14051
|
className: GalleryView_module_css_default.caption,
|
|
13722
14052
|
children: name
|
|
13723
14053
|
}),
|
|
13724
|
-
image.pending === true && /* @__PURE__ */ (0, react_jsx_runtime.
|
|
13725
|
-
className:
|
|
13726
|
-
children:
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
14054
|
+
(image.pending === true || image.unreadable !== true) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
14055
|
+
className: GalleryView_module_css_default.footer,
|
|
14056
|
+
children: [image.pending === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
14057
|
+
role: failed === void 0 ? void 0 : "alert",
|
|
14058
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
|
|
14059
|
+
label: failed === void 0 ? t(target.kind === "worlds" ? "pendingWorld" : "pending") : t("describeFailed", { message: failed }),
|
|
14060
|
+
openOnClick: true,
|
|
14061
|
+
maxWidth: 360,
|
|
14062
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
14063
|
+
type: "button",
|
|
14064
|
+
className: failed === void 0 ? GalleryView_module_css_default.status : GalleryView_module_css_default.statusError,
|
|
14065
|
+
"aria-label": failed === void 0 ? t(target.kind === "worlds" ? "pendingWorld" : "pending") : t("describeFailed", { message: failed }),
|
|
14066
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconInfo, {})
|
|
14067
|
+
})
|
|
14068
|
+
})
|
|
14069
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
14070
|
+
className: GalleryView_module_css_default.buttons,
|
|
14071
|
+
children: [image.unreadable !== true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
14072
|
+
variant: "outline",
|
|
14073
|
+
size: "sm",
|
|
14074
|
+
onClick: () => {
|
|
14075
|
+
setEditing(image);
|
|
14076
|
+
},
|
|
14077
|
+
children: t("edit")
|
|
14078
|
+
}), image.unreadable !== true && target.kind === "worlds" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
14079
|
+
variant: "outline",
|
|
14080
|
+
size: "sm",
|
|
14081
|
+
disabled: describing.has(image.path),
|
|
14082
|
+
onClick: () => {
|
|
14083
|
+
describe(image);
|
|
14084
|
+
},
|
|
14085
|
+
children: describing.has(image.path) ? t("describing") : t("describeNow")
|
|
14086
|
+
})]
|
|
14087
|
+
})]
|
|
13744
14088
|
}),
|
|
13745
14089
|
image.origin === "generated" && image.unreadable !== true && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
13746
14090
|
className: GalleryView_module_css_default.reusable,
|
|
@@ -13783,13 +14127,13 @@ window.__ModuleLoader__.load({
|
|
|
13783
14127
|
}
|
|
13784
14128
|
tag$33.textContent = css$33;
|
|
13785
14129
|
var WorldEditor_module_css_default = {
|
|
13786
|
-
"view": "rp__swA3a_view",
|
|
13787
|
-
"drawer": "rp__swA3a_drawer",
|
|
13788
|
-
"warning": "rp__swA3a_warning",
|
|
13789
14130
|
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
13790
|
-
"drawerItem": "rp__swA3a_drawerItem",
|
|
13791
14131
|
"content": "rp__swA3a_content",
|
|
13792
|
-
"
|
|
14132
|
+
"view": "rp__swA3a_view",
|
|
14133
|
+
"message": "rp__swA3a_message",
|
|
14134
|
+
"warning": "rp__swA3a_warning",
|
|
14135
|
+
"drawer": "rp__swA3a_drawer",
|
|
14136
|
+
"drawerItem": "rp__swA3a_drawerItem"
|
|
13793
14137
|
};
|
|
13794
14138
|
// src/client/world-editor/WorldEditor.tsx
|
|
13795
14139
|
const SECTIONS = [
|
|
@@ -13892,6 +14236,12 @@ window.__ModuleLoader__.load({
|
|
|
13892
14236
|
label: "sectionImages",
|
|
13893
14237
|
built: true,
|
|
13894
14238
|
ownFiles: true
|
|
14239
|
+
},
|
|
14240
|
+
{
|
|
14241
|
+
id: "checkpoints",
|
|
14242
|
+
label: "cp_title",
|
|
14243
|
+
built: true,
|
|
14244
|
+
ownFiles: true
|
|
13895
14245
|
}
|
|
13896
14246
|
];
|
|
13897
14247
|
/**
|
|
@@ -14075,6 +14425,18 @@ window.__ModuleLoader__.load({
|
|
|
14075
14425
|
children: t("editorRefresh")
|
|
14076
14426
|
})
|
|
14077
14427
|
}),
|
|
14428
|
+
section === "checkpoints" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckpointsPanel, {
|
|
14429
|
+
t,
|
|
14430
|
+
worldId: source.worldId,
|
|
14431
|
+
onRestored: refresh,
|
|
14432
|
+
actions: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
14433
|
+
variant: "ghost",
|
|
14434
|
+
size: "sm",
|
|
14435
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRefresh, {}),
|
|
14436
|
+
onClick: refresh,
|
|
14437
|
+
children: t("editorRefresh")
|
|
14438
|
+
})
|
|
14439
|
+
}),
|
|
14078
14440
|
section === "images" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GalleryView, {
|
|
14079
14441
|
t: galleryText,
|
|
14080
14442
|
target: {
|
|
@@ -14203,27 +14565,27 @@ window.__ModuleLoader__.load({
|
|
|
14203
14565
|
}
|
|
14204
14566
|
tag$32.textContent = css$32;
|
|
14205
14567
|
var AvatarsPage_module_css_default = {
|
|
14206
|
-
"
|
|
14207
|
-
"
|
|
14568
|
+
"editHeader": "rp_pQOzEG_editHeader",
|
|
14569
|
+
"message": "rp_pQOzEG_message",
|
|
14570
|
+
"card": "rp_pQOzEG_card",
|
|
14208
14571
|
"count": "rp_pQOzEG_count",
|
|
14572
|
+
"editBody": "rp_pQOzEG_editBody",
|
|
14209
14573
|
"text": "rp_pQOzEG_text",
|
|
14210
|
-
"
|
|
14211
|
-
"
|
|
14574
|
+
"form": "rp_pQOzEG_form",
|
|
14575
|
+
"grid": "rp_pQOzEG_grid",
|
|
14212
14576
|
"portrait": "rp_pQOzEG_portrait",
|
|
14213
|
-
"viewport": "rp_pQOzEG_viewport",
|
|
14214
|
-
"message": "rp_pQOzEG_message",
|
|
14215
14577
|
"error": "rp_pQOzEG_error",
|
|
14216
14578
|
"editTitle": "rp_pQOzEG_editTitle",
|
|
14217
|
-
"editBody": "rp_pQOzEG_editBody",
|
|
14218
|
-
"summary": "rp_pQOzEG_summary",
|
|
14219
|
-
"editHeader": "rp_pQOzEG_editHeader",
|
|
14220
|
-
"form": "rp_pQOzEG_form",
|
|
14221
|
-
"card": "rp_pQOzEG_card",
|
|
14222
|
-
"open": "rp_pQOzEG_open",
|
|
14223
|
-
"field": "rp_pQOzEG_field",
|
|
14224
14579
|
"page": "rp_pQOzEG_page",
|
|
14580
|
+
"toolbar": "rp_pQOzEG_toolbar",
|
|
14581
|
+
"field": "rp_pQOzEG_field",
|
|
14225
14582
|
"label": "rp_pQOzEG_label",
|
|
14226
|
-
"
|
|
14583
|
+
"viewport": "rp_pQOzEG_viewport",
|
|
14584
|
+
"placeholder": "rp_pQOzEG_placeholder",
|
|
14585
|
+
"summary": "rp_pQOzEG_summary",
|
|
14586
|
+
"actions": "rp_pQOzEG_actions",
|
|
14587
|
+
"name": "rp_pQOzEG_name",
|
|
14588
|
+
"open": "rp_pQOzEG_open"
|
|
14227
14589
|
};
|
|
14228
14590
|
// src/client/pages/avatars/AvatarsPage.tsx
|
|
14229
14591
|
const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
|
|
@@ -14491,7 +14853,7 @@ window.__ModuleLoader__.load({
|
|
|
14491
14853
|
});
|
|
14492
14854
|
}
|
|
14493
14855
|
// src/client/widgets/sampling-fields/locales.ts
|
|
14494
|
-
const dictionaries$
|
|
14856
|
+
const dictionaries$25 = {
|
|
14495
14857
|
en: {
|
|
14496
14858
|
sf_master: "Narrator temperature (0 to 2)",
|
|
14497
14859
|
sf_characters: "Characters temperature (0 to 2)",
|
|
@@ -14582,7 +14944,7 @@ window.__ModuleLoader__.load({
|
|
|
14582
14944
|
}
|
|
14583
14945
|
};
|
|
14584
14946
|
// src/client/widgets/tool-switches/locales.ts
|
|
14585
|
-
const dictionaries$
|
|
14947
|
+
const dictionaries$24 = {
|
|
14586
14948
|
en: {
|
|
14587
14949
|
sw_title: "Tools",
|
|
14588
14950
|
sw_help: "Which optional tools each kind of agent may use. A choice applies to every agent of that kind, not to one character. Tools this version does not know are left as they are and not shown.",
|
|
@@ -14889,7 +15251,7 @@ window.__ModuleLoader__.load({
|
|
|
14889
15251
|
}
|
|
14890
15252
|
};
|
|
14891
15253
|
// src/client/widgets/gallery-view/locales.ts
|
|
14892
|
-
const dictionaries$
|
|
15254
|
+
const dictionaries$23 = {
|
|
14893
15255
|
en: {
|
|
14894
15256
|
tab: "Gallery",
|
|
14895
15257
|
notRoleplay: "This chat is not a roleplay session, so it has no gallery.",
|
|
@@ -14929,7 +15291,7 @@ window.__ModuleLoader__.load({
|
|
|
14929
15291
|
cancel: "Cancel",
|
|
14930
15292
|
guideText: "Scene images, portraits and your own pictures, beside the chat",
|
|
14931
15293
|
back: "Back",
|
|
14932
|
-
describeNow: "Describe
|
|
15294
|
+
describeNow: "Describe",
|
|
14933
15295
|
describing: "Describing…",
|
|
14934
15296
|
describeError: "Could not describe the picture: {message}",
|
|
14935
15297
|
cardSource: "From the card",
|
|
@@ -14974,7 +15336,7 @@ window.__ModuleLoader__.load({
|
|
|
14974
15336
|
cancel: "取消",
|
|
14975
15337
|
guideText: "场景图、立绘和你自己的图片,与对话并排查看",
|
|
14976
15338
|
back: "返回",
|
|
14977
|
-
describeNow: "
|
|
15339
|
+
describeNow: "描述",
|
|
14978
15340
|
describing: "正在描述…",
|
|
14979
15341
|
describeError: "无法描述这张图片:{message}",
|
|
14980
15342
|
cardSource: "来自角色卡",
|
|
@@ -15252,7 +15614,7 @@ window.__ModuleLoader__.load({
|
|
|
15252
15614
|
}
|
|
15253
15615
|
};
|
|
15254
15616
|
// src/client/world-editor/dice-locales.ts
|
|
15255
|
-
const dictionaries$
|
|
15617
|
+
const dictionaries$22 = {
|
|
15256
15618
|
en: {
|
|
15257
15619
|
help: "How uncertain attempts are settled. The game master rolls one of these checks and is told which band the roll fell in, so no number is ever made up. Each check says when it is used, the dice it rolls and what each result means; the bands together should cover every value the dice can give.",
|
|
15258
15620
|
none: "This world has no checks. Its game master can still roll plain dice for things that have none.",
|
|
@@ -15543,7 +15905,7 @@ window.__ModuleLoader__.load({
|
|
|
15543
15905
|
}
|
|
15544
15906
|
};
|
|
15545
15907
|
// src/client/world-editor/packs-locales.ts
|
|
15546
|
-
const dictionaries$
|
|
15908
|
+
const dictionaries$21 = {
|
|
15547
15909
|
en: {
|
|
15548
15910
|
newPack: "New pack",
|
|
15549
15911
|
newPackId: "Pack name (letters, digits, - and _)",
|
|
@@ -15977,6 +16339,209 @@ window.__ModuleLoader__.load({
|
|
|
15977
16339
|
noSurfaces: "O pacote não tem superfícies para pré-visualizar."
|
|
15978
16340
|
}
|
|
15979
16341
|
};
|
|
16342
|
+
// src/client/world-editor/checkpoints-locales.ts
|
|
16343
|
+
const dictionaries$20 = {
|
|
16344
|
+
en: {
|
|
16345
|
+
title: "Checkpoints",
|
|
16346
|
+
help: "A copy of the world's files is made before the authoring assistant edits it, and whenever you ask. Compare one with the world as it is now, or restore it: the world goes back to that copy, and what was there is kept as a checkpoint too. Pictures are not copied, and stories already started keep their own copy of the world.",
|
|
16347
|
+
create: "Create a checkpoint",
|
|
16348
|
+
labelPlaceholder: "A name for it (optional)",
|
|
16349
|
+
loading: "Reading the checkpoints…",
|
|
16350
|
+
loadFailed: "Could not read the checkpoints: {message}",
|
|
16351
|
+
empty: "No checkpoints yet. One is made before the assistant's first edit of a turn.",
|
|
16352
|
+
reasonTurn: "Before the edits of turn {turn}",
|
|
16353
|
+
reasonBefore: "Before a restore",
|
|
16354
|
+
reasonManual: "Made on request",
|
|
16355
|
+
files: "Files: {count}",
|
|
16356
|
+
compare: "Compare with now",
|
|
16357
|
+
hideCompare: "Hide",
|
|
16358
|
+
restore: "Restore",
|
|
16359
|
+
confirmRestore: "Restore this one",
|
|
16360
|
+
cancel: "Cancel",
|
|
16361
|
+
working: "Working…",
|
|
16362
|
+
restored: "The world is back as it was at that checkpoint. The assistant is told at its next turn.",
|
|
16363
|
+
same: "The world is the same as this checkpoint.",
|
|
16364
|
+
changed: "Changed since",
|
|
16365
|
+
added: "Added since (a restore removes them)",
|
|
16366
|
+
removed: "Removed since (a restore brings them back)",
|
|
16367
|
+
failed: "{message}"
|
|
16368
|
+
},
|
|
16369
|
+
zh: {
|
|
16370
|
+
title: "检查点",
|
|
16371
|
+
help: "创作助手修改世界之前,以及你主动要求时,会保存一份世界文件的副本。可以把某个检查点与当前世界对比,或还原到它:世界回到那份副本,原来的内容也会保存为一个检查点。图片不会被复制,已经开始的故事保留它们自己的世界副本。",
|
|
16372
|
+
create: "创建检查点",
|
|
16373
|
+
labelPlaceholder: "名称(可选)",
|
|
16374
|
+
loading: "正在读取检查点…",
|
|
16375
|
+
loadFailed: "无法读取检查点:{message}",
|
|
16376
|
+
empty: "还没有检查点。助手在一个回合里第一次修改之前会自动创建一个。",
|
|
16377
|
+
reasonTurn: "第 {turn} 回合修改之前",
|
|
16378
|
+
reasonBefore: "还原之前",
|
|
16379
|
+
reasonManual: "应要求创建",
|
|
16380
|
+
files: "文件:{count}",
|
|
16381
|
+
compare: "与现在对比",
|
|
16382
|
+
hideCompare: "收起",
|
|
16383
|
+
restore: "还原",
|
|
16384
|
+
confirmRestore: "确认还原这一个",
|
|
16385
|
+
cancel: "取消",
|
|
16386
|
+
working: "处理中…",
|
|
16387
|
+
restored: "世界已回到该检查点时的样子。助手会在下一个回合得到通知。",
|
|
16388
|
+
same: "世界与这个检查点一致。",
|
|
16389
|
+
changed: "之后有改动",
|
|
16390
|
+
added: "之后新增(还原会删除它们)",
|
|
16391
|
+
removed: "之后被删除(还原会带回它们)",
|
|
16392
|
+
failed: "{message}"
|
|
16393
|
+
},
|
|
16394
|
+
ja: {
|
|
16395
|
+
title: "チェックポイント",
|
|
16396
|
+
help: "創作アシスタントが編集する前と、ご要望のたびに、ワールドのファイルのコピーを保存します。現在のワールドと比較したり、復元したりできます。復元すると、ワールドはそのコピーの状態に戻り、それまでの内容もチェックポイントとして残ります。画像はコピーされず、すでに始めたストーリーは自分のワールドのコピーを保持します。",
|
|
16397
|
+
create: "チェックポイントを作成",
|
|
16398
|
+
labelPlaceholder: "名前(任意)",
|
|
16399
|
+
loading: "チェックポイントを読み込み中…",
|
|
16400
|
+
loadFailed: "チェックポイントを読み込めません:{message}",
|
|
16401
|
+
empty: "まだチェックポイントはありません。アシスタントがターンで最初に編集する前に作成されます。",
|
|
16402
|
+
reasonTurn: "ターン {turn} の編集前",
|
|
16403
|
+
reasonBefore: "復元の前",
|
|
16404
|
+
reasonManual: "依頼により作成",
|
|
16405
|
+
files: "ファイル:{count}",
|
|
16406
|
+
compare: "現在と比較",
|
|
16407
|
+
hideCompare: "閉じる",
|
|
16408
|
+
restore: "復元",
|
|
16409
|
+
confirmRestore: "これを復元する",
|
|
16410
|
+
cancel: "キャンセル",
|
|
16411
|
+
working: "処理中…",
|
|
16412
|
+
restored: "ワールドはそのチェックポイントの状態に戻りました。アシスタントには次のターンで伝えられます。",
|
|
16413
|
+
same: "ワールドはこのチェックポイントと同じです。",
|
|
16414
|
+
changed: "その後に変更",
|
|
16415
|
+
added: "その後に追加(復元すると削除されます)",
|
|
16416
|
+
removed: "その後に削除(復元すると戻ります)",
|
|
16417
|
+
failed: "{message}"
|
|
16418
|
+
},
|
|
16419
|
+
es: {
|
|
16420
|
+
title: "Puntos de control",
|
|
16421
|
+
help: "Se guarda una copia de los archivos del mundo antes de que el asistente de creación lo edite y siempre que lo pida. Compárela con el mundo actual o restáurela: el mundo vuelve a esa copia y lo que había se conserva también como punto de control. Las imágenes no se copian y las historias ya iniciadas conservan su propia copia del mundo.",
|
|
16422
|
+
create: "Crear un punto de control",
|
|
16423
|
+
labelPlaceholder: "Un nombre (opcional)",
|
|
16424
|
+
loading: "Leyendo los puntos de control…",
|
|
16425
|
+
loadFailed: "No se pudieron leer los puntos de control: {message}",
|
|
16426
|
+
empty: "Aún no hay puntos de control. Se crea uno antes de la primera edición del asistente en un turno.",
|
|
16427
|
+
reasonTurn: "Antes de las ediciones del turno {turn}",
|
|
16428
|
+
reasonBefore: "Antes de una restauración",
|
|
16429
|
+
reasonManual: "Creado a petición",
|
|
16430
|
+
files: "Archivos: {count}",
|
|
16431
|
+
compare: "Comparar con ahora",
|
|
16432
|
+
hideCompare: "Ocultar",
|
|
16433
|
+
restore: "Restaurar",
|
|
16434
|
+
confirmRestore: "Restaurar este",
|
|
16435
|
+
cancel: "Cancelar",
|
|
16436
|
+
working: "Trabajando…",
|
|
16437
|
+
restored: "El mundo ha vuelto a como estaba en ese punto de control. Se avisará al asistente en su próximo turno.",
|
|
16438
|
+
same: "El mundo es igual que este punto de control.",
|
|
16439
|
+
changed: "Cambiado desde entonces",
|
|
16440
|
+
added: "Añadido desde entonces (restaurar lo elimina)",
|
|
16441
|
+
removed: "Eliminado desde entonces (restaurar lo recupera)",
|
|
16442
|
+
failed: "{message}"
|
|
16443
|
+
},
|
|
16444
|
+
fr: {
|
|
16445
|
+
title: "Points de contrôle",
|
|
16446
|
+
help: "Une copie des fichiers du monde est faite avant que l'assistant de création ne le modifie, et à chaque fois que vous le demandez. Comparez-la au monde actuel ou restaurez-la : le monde revient à cette copie, et ce qui s'y trouvait est aussi gardé comme point de contrôle. Les images ne sont pas copiées, et les histoires déjà commencées gardent leur propre copie du monde.",
|
|
16447
|
+
create: "Créer un point de contrôle",
|
|
16448
|
+
labelPlaceholder: "Un nom (facultatif)",
|
|
16449
|
+
loading: "Lecture des points de contrôle…",
|
|
16450
|
+
loadFailed: "Impossible de lire les points de contrôle : {message}",
|
|
16451
|
+
empty: "Aucun point de contrôle pour l'instant. Il s'en crée un avant la première modification de l'assistant dans un tour.",
|
|
16452
|
+
reasonTurn: "Avant les modifications du tour {turn}",
|
|
16453
|
+
reasonBefore: "Avant une restauration",
|
|
16454
|
+
reasonManual: "Créé à la demande",
|
|
16455
|
+
files: "Fichiers : {count}",
|
|
16456
|
+
compare: "Comparer à maintenant",
|
|
16457
|
+
hideCompare: "Masquer",
|
|
16458
|
+
restore: "Restaurer",
|
|
16459
|
+
confirmRestore: "Restaurer celui-ci",
|
|
16460
|
+
cancel: "Annuler",
|
|
16461
|
+
working: "En cours…",
|
|
16462
|
+
restored: "Le monde est revenu tel qu'il était à ce point de contrôle. L'assistant en sera informé à son prochain tour.",
|
|
16463
|
+
same: "Le monde est identique à ce point de contrôle.",
|
|
16464
|
+
changed: "Modifié depuis",
|
|
16465
|
+
added: "Ajouté depuis (une restauration le supprime)",
|
|
16466
|
+
removed: "Supprimé depuis (une restauration le ramène)",
|
|
16467
|
+
failed: "{message}"
|
|
16468
|
+
},
|
|
16469
|
+
de: {
|
|
16470
|
+
title: "Prüfpunkte",
|
|
16471
|
+
help: "Vor jeder Bearbeitung durch den Autorenassistenten und auf Wunsch wird eine Kopie der Weltdateien gespeichert. Vergleichen Sie sie mit der aktuellen Welt oder stellen Sie sie wieder her: Die Welt geht auf diese Kopie zurück, und der bisherige Stand bleibt ebenfalls als Prüfpunkt erhalten. Bilder werden nicht kopiert, und bereits gestartete Geschichten behalten ihre eigene Kopie der Welt.",
|
|
16472
|
+
create: "Prüfpunkt erstellen",
|
|
16473
|
+
labelPlaceholder: "Ein Name (optional)",
|
|
16474
|
+
loading: "Prüfpunkte werden gelesen…",
|
|
16475
|
+
loadFailed: "Prüfpunkte konnten nicht gelesen werden: {message}",
|
|
16476
|
+
empty: "Noch keine Prüfpunkte. Vor der ersten Bearbeitung des Assistenten in einem Zug wird einer angelegt.",
|
|
16477
|
+
reasonTurn: "Vor den Änderungen in Zug {turn}",
|
|
16478
|
+
reasonBefore: "Vor einer Wiederherstellung",
|
|
16479
|
+
reasonManual: "Auf Wunsch erstellt",
|
|
16480
|
+
files: "Dateien: {count}",
|
|
16481
|
+
compare: "Mit jetzt vergleichen",
|
|
16482
|
+
hideCompare: "Ausblenden",
|
|
16483
|
+
restore: "Wiederherstellen",
|
|
16484
|
+
confirmRestore: "Diesen wiederherstellen",
|
|
16485
|
+
cancel: "Abbrechen",
|
|
16486
|
+
working: "Wird ausgeführt…",
|
|
16487
|
+
restored: "Die Welt ist wieder so, wie sie an diesem Prüfpunkt war. Der Assistent erfährt es in seinem nächsten Zug.",
|
|
16488
|
+
same: "Die Welt entspricht diesem Prüfpunkt.",
|
|
16489
|
+
changed: "Seitdem geändert",
|
|
16490
|
+
added: "Seitdem hinzugefügt (eine Wiederherstellung entfernt sie)",
|
|
16491
|
+
removed: "Seitdem entfernt (eine Wiederherstellung bringt sie zurück)",
|
|
16492
|
+
failed: "{message}"
|
|
16493
|
+
},
|
|
16494
|
+
ru: {
|
|
16495
|
+
title: "Контрольные точки",
|
|
16496
|
+
help: "Копия файлов мира сохраняется перед правками ассистента по созданию и по вашему запросу. Сравните её с текущим миром или восстановите: мир вернётся к этой копии, а прежнее состояние тоже сохранится как контрольная точка. Изображения не копируются, а уже начатые истории хранят собственную копию мира.",
|
|
16497
|
+
create: "Создать контрольную точку",
|
|
16498
|
+
labelPlaceholder: "Название (необязательно)",
|
|
16499
|
+
loading: "Чтение контрольных точек…",
|
|
16500
|
+
loadFailed: "Не удалось прочитать контрольные точки: {message}",
|
|
16501
|
+
empty: "Контрольных точек пока нет. Она создаётся перед первой правкой ассистента в ходе.",
|
|
16502
|
+
reasonTurn: "Перед правками хода {turn}",
|
|
16503
|
+
reasonBefore: "Перед восстановлением",
|
|
16504
|
+
reasonManual: "Создана по запросу",
|
|
16505
|
+
files: "Файлов: {count}",
|
|
16506
|
+
compare: "Сравнить с текущим",
|
|
16507
|
+
hideCompare: "Скрыть",
|
|
16508
|
+
restore: "Восстановить",
|
|
16509
|
+
confirmRestore: "Восстановить эту",
|
|
16510
|
+
cancel: "Отмена",
|
|
16511
|
+
working: "Выполняется…",
|
|
16512
|
+
restored: "Мир вернулся к состоянию этой контрольной точки. Ассистенту сообщат в следующем ходе.",
|
|
16513
|
+
same: "Мир совпадает с этой контрольной точкой.",
|
|
16514
|
+
changed: "Изменено с тех пор",
|
|
16515
|
+
added: "Добавлено с тех пор (восстановление удалит)",
|
|
16516
|
+
removed: "Удалено с тех пор (восстановление вернёт)",
|
|
16517
|
+
failed: "{message}"
|
|
16518
|
+
},
|
|
16519
|
+
pt: {
|
|
16520
|
+
title: "Pontos de controlo",
|
|
16521
|
+
help: "É guardada uma cópia dos ficheiros do mundo antes de o assistente de criação o editar e sempre que o pedir. Compare-a com o mundo atual ou restaure-a: o mundo volta a essa cópia e o que lá estava fica também guardado como ponto de controlo. As imagens não são copiadas e as histórias já iniciadas mantêm a sua própria cópia do mundo.",
|
|
16522
|
+
create: "Criar um ponto de controlo",
|
|
16523
|
+
labelPlaceholder: "Um nome (opcional)",
|
|
16524
|
+
loading: "A ler os pontos de controlo…",
|
|
16525
|
+
loadFailed: "Não foi possível ler os pontos de controlo: {message}",
|
|
16526
|
+
empty: "Ainda não há pontos de controlo. É criado um antes da primeira edição do assistente num turno.",
|
|
16527
|
+
reasonTurn: "Antes das edições do turno {turn}",
|
|
16528
|
+
reasonBefore: "Antes de uma restauração",
|
|
16529
|
+
reasonManual: "Criado a pedido",
|
|
16530
|
+
files: "Ficheiros: {count}",
|
|
16531
|
+
compare: "Comparar com agora",
|
|
16532
|
+
hideCompare: "Ocultar",
|
|
16533
|
+
restore: "Restaurar",
|
|
16534
|
+
confirmRestore: "Restaurar este",
|
|
16535
|
+
cancel: "Cancelar",
|
|
16536
|
+
working: "A trabalhar…",
|
|
16537
|
+
restored: "O mundo voltou a ficar como estava nesse ponto de controlo. O assistente será avisado no próximo turno.",
|
|
16538
|
+
same: "O mundo é igual a este ponto de controlo.",
|
|
16539
|
+
changed: "Alterado desde então",
|
|
16540
|
+
added: "Adicionado desde então (restaurar remove-o)",
|
|
16541
|
+
removed: "Removido desde então (restaurar traz de volta)",
|
|
16542
|
+
failed: "{message}"
|
|
16543
|
+
}
|
|
16544
|
+
};
|
|
15980
16545
|
// src/client/world-editor/opening-locales.ts
|
|
15981
16546
|
const dictionaries$19 = {
|
|
15982
16547
|
en: {
|
|
@@ -17467,7 +18032,7 @@ window.__ModuleLoader__.load({
|
|
|
17467
18032
|
relationCreate: "创建"
|
|
17468
18033
|
}
|
|
17469
18034
|
};
|
|
17470
|
-
const dictionaries$16 = withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries({
|
|
18035
|
+
const dictionaries$16 = withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries(withDictionaries({
|
|
17471
18036
|
...base$2,
|
|
17472
18037
|
ja: {
|
|
17473
18038
|
...base$2.en,
|
|
@@ -19341,7 +19906,7 @@ window.__ModuleLoader__.load({
|
|
|
19341
19906
|
wearableAt: "Usável em: {slot}",
|
|
19342
19907
|
ownedBy: "Pertence a {owner}"
|
|
19343
19908
|
}
|
|
19344
|
-
}, prefixed(dictionaries$
|
|
19909
|
+
}, prefixed(dictionaries$23, "gallery_")), prefixed(dictionaries$17, "trig_")), prefixed(dictionaries$21, "pk_")), prefixed(dictionaries$20, "cp_")), prefixed(dictionaries$18, "sq_")), dictionaries$24), prefixed(dictionaries$22, "dice_")), dictionaries$25), prefixed(dictionaries$19, "op_"));
|
|
19345
19910
|
const dictionaries$15 = withDictionaries({
|
|
19346
19911
|
en: {
|
|
19347
19912
|
nav: "Avatars",
|
|
@@ -19583,37 +20148,37 @@ window.__ModuleLoader__.load({
|
|
|
19583
20148
|
}
|
|
19584
20149
|
tag$31.textContent = css$31;
|
|
19585
20150
|
var LorebooksPage_module_css_default = {
|
|
19586
|
-
"
|
|
19587
|
-
"
|
|
19588
|
-
"page": "rp_VV-Eha_page",
|
|
19589
|
-
"form": "rp_VV-Eha_form",
|
|
19590
|
-
"message": "rp_VV-Eha_message",
|
|
19591
|
-
"actions": "rp_VV-Eha_actions",
|
|
19592
|
-
"editTitle": "rp_VV-Eha_editTitle",
|
|
19593
|
-
"select": "rp_VV-Eha_select",
|
|
19594
|
-
"toolbar": "rp_VV-Eha_toolbar",
|
|
19595
|
-
"editBody": "rp_VV-Eha_editBody",
|
|
20151
|
+
"card": "rp_VV-Eha_card",
|
|
20152
|
+
"name": "rp_VV-Eha_name",
|
|
19596
20153
|
"section": "rp_VV-Eha_section",
|
|
20154
|
+
"head": "rp_VV-Eha_head",
|
|
20155
|
+
"page": "rp_VV-Eha_page",
|
|
20156
|
+
"warning": "rp_VV-Eha_warning",
|
|
20157
|
+
"input": "rp_VV-Eha_input",
|
|
19597
20158
|
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
19598
|
-
"
|
|
20159
|
+
"count": "rp_VV-Eha_count",
|
|
20160
|
+
"select": "rp_VV-Eha_select",
|
|
20161
|
+
"description": "rp_VV-Eha_description",
|
|
19599
20162
|
"viewport": "rp_VV-Eha_viewport",
|
|
19600
20163
|
"meta": "rp_VV-Eha_meta",
|
|
19601
|
-
"warning": "rp_VV-Eha_warning",
|
|
19602
|
-
"name": "rp_VV-Eha_name",
|
|
19603
|
-
"area": "rp_VV-Eha_area",
|
|
19604
|
-
"card": "rp_VV-Eha_card",
|
|
19605
|
-
"description": "rp_VV-Eha_description",
|
|
19606
|
-
"ok": "rp_VV-Eha_ok",
|
|
19607
|
-
"head": "rp_VV-Eha_head",
|
|
19608
|
-
"entryArea": "rp_VV-Eha_entryArea",
|
|
19609
|
-
"editHeader": "rp_VV-Eha_editHeader",
|
|
19610
20164
|
"error": "rp_VV-Eha_error",
|
|
19611
|
-
"
|
|
20165
|
+
"actions": "rp_VV-Eha_actions",
|
|
20166
|
+
"toolbar": "rp_VV-Eha_toolbar",
|
|
20167
|
+
"grid": "rp_VV-Eha_grid",
|
|
20168
|
+
"message": "rp_VV-Eha_message",
|
|
19612
20169
|
"cardActions": "rp_VV-Eha_cardActions",
|
|
19613
|
-
"
|
|
20170
|
+
"label": "rp_VV-Eha_label",
|
|
20171
|
+
"row": "rp_VV-Eha_row",
|
|
20172
|
+
"title": "rp_VV-Eha_title",
|
|
20173
|
+
"entryArea": "rp_VV-Eha_entryArea",
|
|
20174
|
+
"area": "rp_VV-Eha_area",
|
|
20175
|
+
"form": "rp_VV-Eha_form",
|
|
20176
|
+
"editBody": "rp_VV-Eha_editBody",
|
|
20177
|
+
"ok": "rp_VV-Eha_ok",
|
|
19614
20178
|
"help": "rp_VV-Eha_help",
|
|
19615
|
-
"
|
|
19616
|
-
"
|
|
20179
|
+
"field": "rp_VV-Eha_field",
|
|
20180
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
20181
|
+
"editHeader": "rp_VV-Eha_editHeader"
|
|
19617
20182
|
};
|
|
19618
20183
|
// src/client/pages/lorebooks/LorebookEditor.tsx
|
|
19619
20184
|
const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -20994,7 +21559,7 @@ window.__ModuleLoader__.load({
|
|
|
20994
21559
|
kind_legend: "Lenda",
|
|
20995
21560
|
kind_other: "Outro"
|
|
20996
21561
|
}
|
|
20997
|
-
}, dictionaries$
|
|
21562
|
+
}, dictionaries$27);
|
|
20998
21563
|
// src/client/pages/lorebooks/lorebooks-controller.ts
|
|
20999
21564
|
const messageOf$7 = (error) => error instanceof Error ? error.message : String(error);
|
|
21000
21565
|
/** Reads the lorebook library from the host and makes, removes and opens its lorebooks. */
|
|
@@ -21115,35 +21680,35 @@ window.__ModuleLoader__.load({
|
|
|
21115
21680
|
}
|
|
21116
21681
|
tag$30.textContent = css$30;
|
|
21117
21682
|
var PresetsPage_module_css_default = {
|
|
21118
|
-
"
|
|
21119
|
-
"
|
|
21683
|
+
"row": "rp_ZK89ba_row",
|
|
21684
|
+
"viewport": "rp_ZK89ba_viewport",
|
|
21685
|
+
"field": "rp_ZK89ba_field",
|
|
21686
|
+
"help": "rp_ZK89ba_help",
|
|
21687
|
+
"count": "rp_ZK89ba_count",
|
|
21120
21688
|
"title": "rp_ZK89ba_title",
|
|
21121
|
-
"grid": "rp_ZK89ba_grid",
|
|
21122
|
-
"actions": "rp_ZK89ba_actions",
|
|
21123
|
-
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
21124
21689
|
"editTitle": "rp_ZK89ba_editTitle",
|
|
21125
|
-
"
|
|
21126
|
-
"
|
|
21127
|
-
"error": "rp_ZK89ba_error",
|
|
21128
|
-
"area": "rp_ZK89ba_area",
|
|
21690
|
+
"page": "rp_ZK89ba_page",
|
|
21691
|
+
"form": "rp_ZK89ba_form",
|
|
21129
21692
|
"label": "rp_ZK89ba_label",
|
|
21693
|
+
"cardActions": "rp_ZK89ba_cardActions",
|
|
21694
|
+
"head": "rp_ZK89ba_head",
|
|
21695
|
+
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
21696
|
+
"editBody": "rp_ZK89ba_editBody",
|
|
21130
21697
|
"meta": "rp_ZK89ba_meta",
|
|
21698
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
21699
|
+
"message": "rp_ZK89ba_message",
|
|
21700
|
+
"editHeader": "rp_ZK89ba_editHeader",
|
|
21701
|
+
"ok": "rp_ZK89ba_ok",
|
|
21702
|
+
"description": "rp_ZK89ba_description",
|
|
21131
21703
|
"name": "rp_ZK89ba_name",
|
|
21132
|
-
"viewport": "rp_ZK89ba_viewport",
|
|
21133
21704
|
"section": "rp_ZK89ba_section",
|
|
21134
21705
|
"card": "rp_ZK89ba_card",
|
|
21135
|
-
"
|
|
21706
|
+
"warning": "rp_ZK89ba_warning",
|
|
21707
|
+
"area": "rp_ZK89ba_area",
|
|
21136
21708
|
"input": "rp_ZK89ba_input",
|
|
21137
|
-
"
|
|
21138
|
-
"
|
|
21139
|
-
"
|
|
21140
|
-
"field": "rp_ZK89ba_field",
|
|
21141
|
-
"count": "rp_ZK89ba_count",
|
|
21142
|
-
"description": "rp_ZK89ba_description",
|
|
21143
|
-
"editBody": "rp_ZK89ba_editBody",
|
|
21144
|
-
"help": "rp_ZK89ba_help",
|
|
21145
|
-
"row": "rp_ZK89ba_row",
|
|
21146
|
-
"form": "rp_ZK89ba_form"
|
|
21709
|
+
"actions": "rp_ZK89ba_actions",
|
|
21710
|
+
"error": "rp_ZK89ba_error",
|
|
21711
|
+
"grid": "rp_ZK89ba_grid"
|
|
21147
21712
|
};
|
|
21148
21713
|
// src/client/pages/presets/PresetEditor.tsx
|
|
21149
21714
|
const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -22463,7 +23028,7 @@ window.__ModuleLoader__.load({
|
|
|
22463
23028
|
"prompt_roleplay/style": "Estilo narrativo",
|
|
22464
23029
|
"prompt_roleplay/character-style": "Estilo das personagens"
|
|
22465
23030
|
}
|
|
22466
|
-
}, dictionaries$
|
|
23031
|
+
}, dictionaries$25), dictionaries$27);
|
|
22467
23032
|
// src/client/pages/presets/presets-controller.ts
|
|
22468
23033
|
const messageOf$4 = (error) => error instanceof Error ? error.message : String(error);
|
|
22469
23034
|
/** Reads the preset library from the host and makes, removes and opens its presets. */
|
|
@@ -22632,34 +23197,34 @@ window.__ModuleLoader__.load({
|
|
|
22632
23197
|
}
|
|
22633
23198
|
tag$29.textContent = css$29;
|
|
22634
23199
|
var PromptsPage_module_css_default = {
|
|
22635
|
-
"label": "rp_DLg_5G_label",
|
|
22636
|
-
"sign": "rp_DLg_5G_sign",
|
|
22637
|
-
"message": "rp_DLg_5G_message",
|
|
22638
|
-
"shipped": "rp_DLg_5G_shipped",
|
|
22639
|
-
"actions": "rp_DLg_5G_actions",
|
|
22640
|
-
"help": "rp_DLg_5G_help",
|
|
22641
|
-
"editBody": "rp_DLg_5G_editBody",
|
|
22642
|
-
"count": "rp_DLg_5G_count",
|
|
22643
|
-
"list": "rp_DLg_5G_list",
|
|
22644
|
-
"check": "rp_DLg_5G_check",
|
|
22645
|
-
"rowName": "rp_DLg_5G_rowName",
|
|
22646
|
-
"toolbar": "rp_DLg_5G_toolbar",
|
|
22647
|
-
"spacer": "rp_DLg_5G_spacer",
|
|
22648
|
-
"editTitle": "rp_DLg_5G_editTitle",
|
|
22649
|
-
"editHeader": "rp_DLg_5G_editHeader",
|
|
22650
23200
|
"pane": "rp_DLg_5G_pane",
|
|
22651
|
-
"viewport": "rp_DLg_5G_viewport",
|
|
22652
23201
|
"area": "rp_DLg_5G_area",
|
|
23202
|
+
"shipped": "rp_DLg_5G_shipped",
|
|
22653
23203
|
"line": "rp_DLg_5G_line",
|
|
23204
|
+
"label": "rp_DLg_5G_label",
|
|
23205
|
+
"check": "rp_DLg_5G_check",
|
|
23206
|
+
"spacer": "rp_DLg_5G_spacer",
|
|
23207
|
+
"missing": "rp_DLg_5G_missing",
|
|
23208
|
+
"actions": "rp_DLg_5G_actions",
|
|
23209
|
+
"group": "rp_DLg_5G_group",
|
|
22654
23210
|
"rowLanguage": "rp_DLg_5G_rowLanguage",
|
|
23211
|
+
"rowName": "rp_DLg_5G_rowName",
|
|
23212
|
+
"help": "rp_DLg_5G_help",
|
|
23213
|
+
"editHeader": "rp_DLg_5G_editHeader",
|
|
22655
23214
|
"error": "rp_DLg_5G_error",
|
|
22656
|
-
"
|
|
22657
|
-
"
|
|
22658
|
-
"page": "rp_DLg_5G_page",
|
|
23215
|
+
"sign": "rp_DLg_5G_sign",
|
|
23216
|
+
"message": "rp_DLg_5G_message",
|
|
22659
23217
|
"warning": "rp_DLg_5G_warning",
|
|
22660
|
-
"ok": "rp_DLg_5G_ok",
|
|
22661
23218
|
"panes": "rp_DLg_5G_panes",
|
|
22662
|
-
"row": "rp_DLg_5G_row"
|
|
23219
|
+
"row": "rp_DLg_5G_row",
|
|
23220
|
+
"ok": "rp_DLg_5G_ok",
|
|
23221
|
+
"count": "rp_DLg_5G_count",
|
|
23222
|
+
"viewport": "rp_DLg_5G_viewport",
|
|
23223
|
+
"toolbar": "rp_DLg_5G_toolbar",
|
|
23224
|
+
"list": "rp_DLg_5G_list",
|
|
23225
|
+
"editTitle": "rp_DLg_5G_editTitle",
|
|
23226
|
+
"editBody": "rp_DLg_5G_editBody",
|
|
23227
|
+
"page": "rp_DLg_5G_page"
|
|
22663
23228
|
};
|
|
22664
23229
|
// src/client/pages/prompts/PromptEditor.tsx
|
|
22665
23230
|
const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -23449,8 +24014,8 @@ window.__ModuleLoader__.load({
|
|
|
23449
24014
|
}
|
|
23450
24015
|
tag$28.textContent = css$28;
|
|
23451
24016
|
var Pager_module_css_default = {
|
|
23452
|
-
"
|
|
23453
|
-
"
|
|
24017
|
+
"position": "rp_KBAD0W_position",
|
|
24018
|
+
"pager": "rp_KBAD0W_pager"
|
|
23454
24019
|
};
|
|
23455
24020
|
// src/client/widgets/pager/Pager.tsx
|
|
23456
24021
|
/** Previous and next buttons around the current position; the owner supplies every label. */
|
|
@@ -23519,10 +24084,10 @@ window.__ModuleLoader__.load({
|
|
|
23519
24084
|
}
|
|
23520
24085
|
tag$26.textContent = css$26;
|
|
23521
24086
|
var DeleteSessionDialog_module_css_default = {
|
|
23522
|
-
"
|
|
24087
|
+
"choice": "rp_FifHrW_choice",
|
|
23523
24088
|
"warning": "rp_FifHrW_warning",
|
|
23524
24089
|
"body": "rp_FifHrW_body",
|
|
23525
|
-
"
|
|
24090
|
+
"question": "rp_FifHrW_question",
|
|
23526
24091
|
"error": "rp_FifHrW_error"
|
|
23527
24092
|
};
|
|
23528
24093
|
// src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
@@ -24047,28 +24612,28 @@ window.__ModuleLoader__.load({
|
|
|
24047
24612
|
}
|
|
24048
24613
|
tag$25.textContent = css$25;
|
|
24049
24614
|
var SessionsPage_module_css_default = {
|
|
24050
|
-
"
|
|
24615
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
24616
|
+
"secondary": "rp_24z4eW_secondary",
|
|
24051
24617
|
"actions": "rp_24z4eW_actions",
|
|
24052
|
-
"
|
|
24053
|
-
"
|
|
24618
|
+
"page": "rp_24z4eW_page",
|
|
24619
|
+
"notice": "rp_24z4eW_notice",
|
|
24620
|
+
"spin": "rp_24z4eW_spin",
|
|
24054
24621
|
"message": "rp_24z4eW_message",
|
|
24055
|
-
"
|
|
24622
|
+
"archived": "rp_24z4eW_archived",
|
|
24623
|
+
"fits": "rp_24z4eW_fits",
|
|
24056
24624
|
"worldColumn": "rp_24z4eW_worldColumn",
|
|
24057
|
-
"
|
|
24625
|
+
"number": "rp_24z4eW_number",
|
|
24058
24626
|
"toolbar": "rp_24z4eW_toolbar",
|
|
24059
|
-
"
|
|
24627
|
+
"count": "rp_24z4eW_count",
|
|
24060
24628
|
"viewport": "rp_24z4eW_viewport",
|
|
24061
|
-
"
|
|
24062
|
-
"notice": "rp_24z4eW_notice",
|
|
24063
|
-
"archived": "rp_24z4eW_archived",
|
|
24064
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
24065
|
-
"page": "rp_24z4eW_page",
|
|
24629
|
+
"name": "rp_24z4eW_name",
|
|
24066
24630
|
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
24067
|
-
"
|
|
24631
|
+
"nameColumn": "rp_24z4eW_nameColumn",
|
|
24068
24632
|
"spinning": "rp_24z4eW_spinning",
|
|
24633
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
24069
24634
|
"table": "rp_24z4eW_table",
|
|
24070
|
-
"
|
|
24071
|
-
"
|
|
24635
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
24636
|
+
"badge": "rp_24z4eW_badge"
|
|
24072
24637
|
};
|
|
24073
24638
|
// src/client/pages/sessions/SessionsPage.tsx
|
|
24074
24639
|
/** The sessions as a table, one page at a time, the most recently played first. */
|
|
@@ -24808,28 +25373,28 @@ window.__ModuleLoader__.load({
|
|
|
24808
25373
|
tag$24.textContent = css$24;
|
|
24809
25374
|
var SyncPage_module_css_default = {
|
|
24810
25375
|
"meta": "rp_Gk-byG_meta",
|
|
25376
|
+
"message": "rp_Gk-byG_message",
|
|
25377
|
+
"toolbar": "rp_Gk-byG_toolbar",
|
|
25378
|
+
"stateColumn": "rp_Gk-byG_stateColumn",
|
|
25379
|
+
"viewport": "rp_Gk-byG_viewport",
|
|
25380
|
+
"kindColumn": "rp_Gk-byG_kindColumn",
|
|
25381
|
+
"detail": "rp_Gk-byG_detail",
|
|
25382
|
+
"table": "rp_Gk-byG_table",
|
|
25383
|
+
"page": "rp_Gk-byG_page",
|
|
24811
25384
|
"conflict": "rp_Gk-byG_conflict",
|
|
25385
|
+
"caption": "rp_Gk-byG_caption",
|
|
25386
|
+
"choices": "rp_Gk-byG_choices",
|
|
25387
|
+
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
24812
25388
|
"error": "rp_Gk-byG_error",
|
|
25389
|
+
"confirmation": "rp_Gk-byG_confirmation",
|
|
25390
|
+
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
24813
25391
|
"problem": "rp_Gk-byG_problem",
|
|
24814
|
-
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
24815
|
-
"kindColumn": "rp_Gk-byG_kindColumn",
|
|
24816
|
-
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
24817
25392
|
"actions": "rp_Gk-byG_actions",
|
|
24818
|
-
"viewport": "rp_Gk-byG_viewport",
|
|
24819
|
-
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
24820
25393
|
"unit": "rp_Gk-byG_unit",
|
|
24821
|
-
"
|
|
24822
|
-
"
|
|
24823
|
-
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
24824
|
-
"choices": "rp_Gk-byG_choices",
|
|
24825
|
-
"page": "rp_Gk-byG_page",
|
|
25394
|
+
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
25395
|
+
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
24826
25396
|
"failed": "rp_Gk-byG_failed",
|
|
24827
|
-
"
|
|
24828
|
-
"detail": "rp_Gk-byG_detail",
|
|
24829
|
-
"message": "rp_Gk-byG_message",
|
|
24830
|
-
"table": "rp_Gk-byG_table",
|
|
24831
|
-
"caption": "rp_Gk-byG_caption",
|
|
24832
|
-
"stateColumn": "rp_Gk-byG_stateColumn"
|
|
25397
|
+
"detailsColumn": "rp_Gk-byG_detailsColumn"
|
|
24833
25398
|
};
|
|
24834
25399
|
// src/client/pages/sync/SyncPage.tsx
|
|
24835
25400
|
const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
|
|
@@ -25654,14 +26219,14 @@ window.__ModuleLoader__.load({
|
|
|
25654
26219
|
}
|
|
25655
26220
|
tag$23.textContent = css$23;
|
|
25656
26221
|
var Toast_module_css_default = {
|
|
25657
|
-
"rpToastEnter": "rp_jnVj9q_rpToastEnter",
|
|
25658
26222
|
"prefix": "rp_jnVj9q_prefix",
|
|
25659
|
-
"fading": "rp_jnVj9q_fading",
|
|
25660
|
-
"action": "rp_jnVj9q_action",
|
|
25661
|
-
"success": "rp_jnVj9q_success",
|
|
25662
26223
|
"actionButton": "rp_jnVj9q_actionButton",
|
|
25663
26224
|
"banner": "rp_jnVj9q_banner",
|
|
25664
|
-
"text": "rp_jnVj9q_text"
|
|
26225
|
+
"text": "rp_jnVj9q_text",
|
|
26226
|
+
"rpToastEnter": "rp_jnVj9q_rpToastEnter",
|
|
26227
|
+
"action": "rp_jnVj9q_action",
|
|
26228
|
+
"fading": "rp_jnVj9q_fading",
|
|
26229
|
+
"success": "rp_jnVj9q_success"
|
|
25665
26230
|
};
|
|
25666
26231
|
// src/client/ui/Toast.tsx
|
|
25667
26232
|
const FADE_MS = 200;
|
|
@@ -25730,16 +26295,16 @@ window.__ModuleLoader__.load({
|
|
|
25730
26295
|
}
|
|
25731
26296
|
tag$22.textContent = css$22;
|
|
25732
26297
|
var WorldCard_module_css_default = {
|
|
25733
|
-
"tag": "rp_Bvxx5q_tag",
|
|
25734
26298
|
"info": "rp_Bvxx5q_info",
|
|
25735
|
-
"
|
|
25736
|
-
"
|
|
26299
|
+
"card": "rp_Bvxx5q_card",
|
|
26300
|
+
"play": "rp_Bvxx5q_play",
|
|
25737
26301
|
"tags": "rp_Bvxx5q_tags",
|
|
25738
|
-
"
|
|
26302
|
+
"tag": "rp_Bvxx5q_tag",
|
|
26303
|
+
"cover": "rp_Bvxx5q_cover",
|
|
26304
|
+
"name": "rp_Bvxx5q_name",
|
|
25739
26305
|
"image": "rp_Bvxx5q_image",
|
|
25740
|
-
"
|
|
25741
|
-
"
|
|
25742
|
-
"name": "rp_Bvxx5q_name"
|
|
26306
|
+
"openButton": "rp_Bvxx5q_openButton",
|
|
26307
|
+
"placeholder": "rp_Bvxx5q_placeholder"
|
|
25743
26308
|
};
|
|
25744
26309
|
// src/client/widgets/world-card/WorldCard.tsx
|
|
25745
26310
|
/** Stable hue per name, so a world without a cover keeps the same colour. */
|
|
@@ -25836,10 +26401,10 @@ window.__ModuleLoader__.load({
|
|
|
25836
26401
|
}
|
|
25837
26402
|
tag$21.textContent = css$21;
|
|
25838
26403
|
var AvatarChoices_module_css_default = {
|
|
25839
|
-
"
|
|
25840
|
-
"option": "rp_YCstOG_option",
|
|
26404
|
+
"name": "rp_YCstOG_name",
|
|
25841
26405
|
"summary": "rp_YCstOG_summary",
|
|
25842
|
-
"
|
|
26406
|
+
"text": "rp_YCstOG_text",
|
|
26407
|
+
"option": "rp_YCstOG_option"
|
|
25843
26408
|
};
|
|
25844
26409
|
// src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
25845
26410
|
/** A list of avatars to tick: the ones brought into a world or a session. */
|
|
@@ -25877,18 +26442,18 @@ window.__ModuleLoader__.load({
|
|
|
25877
26442
|
}
|
|
25878
26443
|
tag$20.textContent = css$20;
|
|
25879
26444
|
var StartSessionDialog_module_css_default = {
|
|
25880
|
-
"optionText": "rp_AnbLKG_optionText",
|
|
25881
|
-
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
25882
|
-
"form": "rp_AnbLKG_form",
|
|
25883
|
-
"option": "rp_AnbLKG_option",
|
|
25884
|
-
"field": "rp_AnbLKG_field",
|
|
25885
26445
|
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
25886
|
-
"
|
|
26446
|
+
"advanced": "rp_AnbLKG_advanced",
|
|
26447
|
+
"option": "rp_AnbLKG_option",
|
|
25887
26448
|
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
25888
26449
|
"label": "rp_AnbLKG_label",
|
|
26450
|
+
"form": "rp_AnbLKG_form",
|
|
25889
26451
|
"optionName": "rp_AnbLKG_optionName",
|
|
25890
|
-
"
|
|
25891
|
-
"
|
|
26452
|
+
"message": "rp_AnbLKG_message",
|
|
26453
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
26454
|
+
"error": "rp_AnbLKG_error",
|
|
26455
|
+
"field": "rp_AnbLKG_field",
|
|
26456
|
+
"optionText": "rp_AnbLKG_optionText"
|
|
25892
26457
|
};
|
|
25893
26458
|
// src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
25894
26459
|
/** Asks which avatars become characters of a world's own files. */
|
|
@@ -27363,14 +27928,14 @@ window.__ModuleLoader__.load({
|
|
|
27363
27928
|
}
|
|
27364
27929
|
tag$18.textContent = css$18;
|
|
27365
27930
|
var SettingsFields_module_css_default = {
|
|
27366
|
-
"help": "rp_Rhi3yq_help",
|
|
27367
|
-
"row": "rp_Rhi3yq_row",
|
|
27368
|
-
"label": "rp_Rhi3yq_label",
|
|
27369
27931
|
"choiceField": "rp_Rhi3yq_choiceField",
|
|
27932
|
+
"error": "rp_Rhi3yq_error",
|
|
27933
|
+
"help": "rp_Rhi3yq_help",
|
|
27370
27934
|
"field": "rp_Rhi3yq_field",
|
|
27371
|
-
"
|
|
27935
|
+
"row": "rp_Rhi3yq_row",
|
|
27372
27936
|
"group": "rp_Rhi3yq_group",
|
|
27373
|
-
"
|
|
27937
|
+
"area": "rp_Rhi3yq_area",
|
|
27938
|
+
"label": "rp_Rhi3yq_label",
|
|
27374
27939
|
"groupTitle": "rp_Rhi3yq_groupTitle"
|
|
27375
27940
|
};
|
|
27376
27941
|
// src/client/settings-form/SettingsFields.tsx
|
|
@@ -27679,8 +28244,8 @@ window.__ModuleLoader__.load({
|
|
|
27679
28244
|
var TranslateBanner_module_css_default = {
|
|
27680
28245
|
"error": "rp_Lx8vJa_error",
|
|
27681
28246
|
"bannerActions": "rp_Lx8vJa_bannerActions",
|
|
27682
|
-
"
|
|
27683
|
-
"
|
|
28247
|
+
"banner": "rp_Lx8vJa_banner",
|
|
28248
|
+
"text": "rp_Lx8vJa_text"
|
|
27684
28249
|
};
|
|
27685
28250
|
// src/client/pages/worlds/TranslateBanner.tsx
|
|
27686
28251
|
/** 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. */
|
|
@@ -28320,26 +28885,26 @@ window.__ModuleLoader__.load({
|
|
|
28320
28885
|
}
|
|
28321
28886
|
tag$16.textContent = css$16;
|
|
28322
28887
|
var WorldsPage_module_css_default = {
|
|
28323
|
-
"
|
|
28324
|
-
"
|
|
28325
|
-
"
|
|
28888
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
28889
|
+
"viewport": "rp_FHUyRq_viewport",
|
|
28890
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
28891
|
+
"fits": "rp_FHUyRq_fits",
|
|
28326
28892
|
"toolbar": "rp_FHUyRq_toolbar",
|
|
28893
|
+
"editTitle": "rp_FHUyRq_editTitle",
|
|
28894
|
+
"editActions": "rp_FHUyRq_editActions",
|
|
28895
|
+
"editBody": "rp_FHUyRq_editBody",
|
|
28896
|
+
"starter": "rp_FHUyRq_starter",
|
|
28897
|
+
"grid": "rp_FHUyRq_grid",
|
|
28327
28898
|
"count": "rp_FHUyRq_count",
|
|
28328
28899
|
"notice": "rp_FHUyRq_notice",
|
|
28329
28900
|
"page": "rp_FHUyRq_page",
|
|
28330
|
-
"scrolls": "rp_FHUyRq_scrolls",
|
|
28331
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
28332
|
-
"spin": "rp_FHUyRq_spin",
|
|
28333
28901
|
"cell": "rp_FHUyRq_cell",
|
|
28334
|
-
"
|
|
28335
|
-
"info": "rp_FHUyRq_info",
|
|
28336
|
-
"editBody": "rp_FHUyRq_editBody",
|
|
28902
|
+
"spin": "rp_FHUyRq_spin",
|
|
28337
28903
|
"starters": "rp_FHUyRq_starters",
|
|
28338
|
-
"
|
|
28339
|
-
"
|
|
28340
|
-
"
|
|
28341
|
-
"
|
|
28342
|
-
"fits": "rp_FHUyRq_fits"
|
|
28904
|
+
"info": "rp_FHUyRq_info",
|
|
28905
|
+
"scrolls": "rp_FHUyRq_scrolls",
|
|
28906
|
+
"editHeader": "rp_FHUyRq_editHeader",
|
|
28907
|
+
"message": "rp_FHUyRq_message"
|
|
28343
28908
|
};
|
|
28344
28909
|
// src/client/pages/worlds/StarterWorlds.tsx
|
|
28345
28910
|
/** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
|
|
@@ -32662,7 +33227,7 @@ window.__ModuleLoader__.load({
|
|
|
32662
33227
|
startAvatars: "Levar avatares",
|
|
32663
33228
|
startAvatarsHelp: "Selecione os avatares que pretende levar para esta sessão como personagens; também pode interpretá-los. O mundo não é alterado."
|
|
32664
33229
|
}
|
|
32665
|
-
}, dictionaries$9), dictionaries$16), dictionaries$
|
|
33230
|
+
}, dictionaries$9), dictionaries$16), dictionaries$27), dictionaries$28);
|
|
32666
33231
|
// src/client/pages/worlds/worlds-controller.ts
|
|
32667
33232
|
async function request$1(path, init, signal) {
|
|
32668
33233
|
const response = await fetch(`${API_PREFIX}${path}`, {
|
|
@@ -33045,10 +33610,10 @@ window.__ModuleLoader__.load({
|
|
|
33045
33610
|
}
|
|
33046
33611
|
tag$15.textContent = css$15;
|
|
33047
33612
|
var BranchDialog_module_css_default = {
|
|
33613
|
+
"form": "rp_Dy1TaW_form",
|
|
33048
33614
|
"error": "rp_Dy1TaW_error",
|
|
33049
|
-
"label": "rp_Dy1TaW_label",
|
|
33050
33615
|
"field": "rp_Dy1TaW_field",
|
|
33051
|
-
"
|
|
33616
|
+
"label": "rp_Dy1TaW_label"
|
|
33052
33617
|
};
|
|
33053
33618
|
// src/client/branch/BranchDialog.tsx
|
|
33054
33619
|
/** Asks for the name of a session that was just branched off another. */
|
|
@@ -33227,11 +33792,11 @@ window.__ModuleLoader__.load({
|
|
|
33227
33792
|
}
|
|
33228
33793
|
tag$14.textContent = css$14;
|
|
33229
33794
|
var SidebarGuideEntry_module_css_default = {
|
|
33230
|
-
"description": "rp_Okaj1q_description",
|
|
33231
|
-
"entry": "rp_Okaj1q_entry",
|
|
33232
33795
|
"icon": "rp_Okaj1q_icon",
|
|
33233
33796
|
"text": "rp_Okaj1q_text",
|
|
33234
33797
|
"main": "rp_Okaj1q_main",
|
|
33798
|
+
"entry": "rp_Okaj1q_entry",
|
|
33799
|
+
"description": "rp_Okaj1q_description",
|
|
33235
33800
|
"title": "rp_Okaj1q_title"
|
|
33236
33801
|
};
|
|
33237
33802
|
// src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
|
|
@@ -33279,9 +33844,9 @@ window.__ModuleLoader__.load({
|
|
|
33279
33844
|
}
|
|
33280
33845
|
tag$13.textContent = css$13;
|
|
33281
33846
|
var GalleryTab_module_css_default = {
|
|
33282
|
-
"bar": "rp_W688Pa_bar",
|
|
33283
33847
|
"message": "rp_W688Pa_message",
|
|
33284
|
-
"page": "rp_W688Pa_page"
|
|
33848
|
+
"page": "rp_W688Pa_page",
|
|
33849
|
+
"bar": "rp_W688Pa_bar"
|
|
33285
33850
|
};
|
|
33286
33851
|
// src/client/gallery/GalleryTab.tsx
|
|
33287
33852
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -33335,7 +33900,7 @@ window.__ModuleLoader__.load({
|
|
|
33335
33900
|
/** The gallery: a page of the right sidebar, so the pictures can be browsed while the story is read. */
|
|
33336
33901
|
function registerGallery(ctx) {
|
|
33337
33902
|
const t = ctx.locale.bind(NAMESPACE$7);
|
|
33338
|
-
ctx.effect(() => ctx.locale.register(NAMESPACE$7, dictionaries$
|
|
33903
|
+
ctx.effect(() => ctx.locale.register(NAMESPACE$7, dictionaries$23), "roleplay: gallery dictionaries");
|
|
33339
33904
|
ctx.inject(["sidebarRight", "sidebarRightTabs"], (right) => {
|
|
33340
33905
|
right.effect(() => right.sidebarRightTabs.register({
|
|
33341
33906
|
id: GALLERY_ID,
|
|
@@ -33698,17 +34263,17 @@ window.__ModuleLoader__.load({
|
|
|
33698
34263
|
}
|
|
33699
34264
|
tag$12.textContent = css$12;
|
|
33700
34265
|
var SidebarPage_module_css_default = {
|
|
33701
|
-
"
|
|
33702
|
-
"
|
|
33703
|
-
"name": "rp_Ptco8a_name",
|
|
33704
|
-
"content": "rp_Ptco8a_content",
|
|
34266
|
+
"icon": "rp_Ptco8a_icon",
|
|
34267
|
+
"bar": "rp_Ptco8a_bar",
|
|
33705
34268
|
"main": "rp_Ptco8a_main",
|
|
33706
|
-
"message": "rp_Ptco8a_message",
|
|
33707
34269
|
"entry": "rp_Ptco8a_entry",
|
|
33708
|
-
"
|
|
34270
|
+
"text": "rp_Ptco8a_text",
|
|
34271
|
+
"message": "rp_Ptco8a_message",
|
|
33709
34272
|
"title": "rp_Ptco8a_title",
|
|
33710
34273
|
"description": "rp_Ptco8a_description",
|
|
33711
|
-
"
|
|
34274
|
+
"page": "rp_Ptco8a_page",
|
|
34275
|
+
"content": "rp_Ptco8a_content",
|
|
34276
|
+
"name": "rp_Ptco8a_name"
|
|
33712
34277
|
};
|
|
33713
34278
|
// src/client/interface/SidebarPage.tsx
|
|
33714
34279
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -34337,24 +34902,24 @@ window.__ModuleLoader__.load({
|
|
|
34337
34902
|
}
|
|
34338
34903
|
tag$11.textContent = css$11;
|
|
34339
34904
|
var RecallTab_module_css_default = {
|
|
34340
|
-
"
|
|
34341
|
-
"body": "rp_jl9CIq_body",
|
|
34342
|
-
"field": "rp_jl9CIq_field",
|
|
34343
|
-
"label": "rp_jl9CIq_label",
|
|
34344
|
-
"hint": "rp_jl9CIq_hint",
|
|
34345
|
-
"person": "rp_jl9CIq_person",
|
|
34905
|
+
"item": "rp_jl9CIq_item",
|
|
34346
34906
|
"note": "rp_jl9CIq_note",
|
|
34907
|
+
"list": "rp_jl9CIq_list",
|
|
34908
|
+
"label": "rp_jl9CIq_label",
|
|
34909
|
+
"error": "rp_jl9CIq_error",
|
|
34347
34910
|
"meta": "rp_jl9CIq_meta",
|
|
34348
|
-
"
|
|
34911
|
+
"area": "rp_jl9CIq_area",
|
|
34912
|
+
"hint": "rp_jl9CIq_hint",
|
|
34913
|
+
"field": "rp_jl9CIq_field",
|
|
34349
34914
|
"bar": "rp_jl9CIq_bar",
|
|
34350
|
-
"error": "rp_jl9CIq_error",
|
|
34351
|
-
"name": "rp_jl9CIq_name",
|
|
34352
|
-
"list": "rp_jl9CIq_list",
|
|
34353
|
-
"item": "rp_jl9CIq_item",
|
|
34354
34915
|
"form": "rp_jl9CIq_form",
|
|
34916
|
+
"place": "rp_jl9CIq_place",
|
|
34917
|
+
"body": "rp_jl9CIq_body",
|
|
34918
|
+
"page": "rp_jl9CIq_page",
|
|
34919
|
+
"person": "rp_jl9CIq_person",
|
|
34355
34920
|
"actions": "rp_jl9CIq_actions",
|
|
34356
|
-
"
|
|
34357
|
-
"
|
|
34921
|
+
"name": "rp_jl9CIq_name",
|
|
34922
|
+
"heading": "rp_jl9CIq_heading"
|
|
34358
34923
|
};
|
|
34359
34924
|
// src/client/recall/RecallTab.tsx
|
|
34360
34925
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -35210,11 +35775,11 @@ window.__ModuleLoader__.load({
|
|
|
35210
35775
|
}
|
|
35211
35776
|
tag$10.textContent = css$10;
|
|
35212
35777
|
var ReferenceTab_module_css_default = {
|
|
35778
|
+
"page": "rp_7BGO2a_page",
|
|
35213
35779
|
"bar": "rp_7BGO2a_bar",
|
|
35214
|
-
"body": "rp_7BGO2a_body",
|
|
35215
|
-
"message": "rp_7BGO2a_message",
|
|
35216
35780
|
"nav": "rp_7BGO2a_nav",
|
|
35217
|
-
"
|
|
35781
|
+
"message": "rp_7BGO2a_message",
|
|
35782
|
+
"body": "rp_7BGO2a_body"
|
|
35218
35783
|
};
|
|
35219
35784
|
// src/client/reference/ReferenceTab.tsx
|
|
35220
35785
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -35334,29 +35899,29 @@ window.__ModuleLoader__.load({
|
|
|
35334
35899
|
}
|
|
35335
35900
|
tag$9.textContent = css$9;
|
|
35336
35901
|
var Page_module_css_default = {
|
|
35337
|
-
"meta": "rp_bG1sCa_meta",
|
|
35338
35902
|
"name": "rp_bG1sCa_name",
|
|
35339
|
-
"place": "rp_bG1sCa_place",
|
|
35340
|
-
"journal": "rp_bG1sCa_journal",
|
|
35341
|
-
"edgeLabel": "rp_bG1sCa_edgeLabel",
|
|
35342
35903
|
"closedWay": "rp_bG1sCa_closedWay",
|
|
35343
|
-
"
|
|
35344
|
-
"
|
|
35904
|
+
"title": "rp_bG1sCa_title",
|
|
35905
|
+
"here": "rp_bG1sCa_here",
|
|
35906
|
+
"journal": "rp_bG1sCa_journal",
|
|
35345
35907
|
"text": "rp_bG1sCa_text",
|
|
35346
|
-
"
|
|
35908
|
+
"map": "rp_bG1sCa_map",
|
|
35347
35909
|
"notes": "rp_bG1sCa_notes",
|
|
35348
|
-
"
|
|
35349
|
-
"
|
|
35910
|
+
"tag": "rp_bG1sCa_tag",
|
|
35911
|
+
"meta": "rp_bG1sCa_meta",
|
|
35912
|
+
"place": "rp_bG1sCa_place",
|
|
35913
|
+
"link": "rp_bG1sCa_link",
|
|
35914
|
+
"edgeLabel": "rp_bG1sCa_edgeLabel",
|
|
35915
|
+
"message": "rp_bG1sCa_message",
|
|
35350
35916
|
"head": "rp_bG1sCa_head",
|
|
35351
|
-
"
|
|
35352
|
-
"
|
|
35353
|
-
"placeName": "rp_bG1sCa_placeName",
|
|
35917
|
+
"opened": "rp_bG1sCa_opened",
|
|
35918
|
+
"way": "rp_bG1sCa_way",
|
|
35354
35919
|
"block": "rp_bG1sCa_block",
|
|
35355
35920
|
"sub": "rp_bG1sCa_sub",
|
|
35356
|
-
"
|
|
35921
|
+
"list": "rp_bG1sCa_list",
|
|
35922
|
+
"entry": "rp_bG1sCa_entry",
|
|
35357
35923
|
"heading": "rp_bG1sCa_heading",
|
|
35358
|
-
"
|
|
35359
|
-
"message": "rp_bG1sCa_message"
|
|
35924
|
+
"placeName": "rp_bG1sCa_placeName"
|
|
35360
35925
|
};
|
|
35361
35926
|
// src/client/reference/sections/Journal.tsx
|
|
35362
35927
|
/** How long typing pauses before the notes are saved. */
|
|
@@ -36452,27 +37017,27 @@ window.__ModuleLoader__.load({
|
|
|
36452
37017
|
}
|
|
36453
37018
|
tag$8.textContent = css$8;
|
|
36454
37019
|
var ChatSettingsView_module_css_default = {
|
|
36455
|
-
"
|
|
36456
|
-
"label": "rp_wLpbxW_label",
|
|
36457
|
-
"select": "rp_wLpbxW_select",
|
|
36458
|
-
"notice": "rp_wLpbxW_notice",
|
|
37020
|
+
"row": "rp_wLpbxW_row",
|
|
36459
37021
|
"pre": "rp_wLpbxW_pre",
|
|
36460
|
-
"
|
|
37022
|
+
"view": "rp_wLpbxW_view",
|
|
37023
|
+
"activityBody": "rp_wLpbxW_activityBody",
|
|
37024
|
+
"link": "rp_wLpbxW_link",
|
|
36461
37025
|
"reasons": "rp_wLpbxW_reasons",
|
|
36462
|
-
"list": "rp_wLpbxW_list",
|
|
36463
37026
|
"description": "rp_wLpbxW_description",
|
|
37027
|
+
"run": "rp_wLpbxW_run",
|
|
37028
|
+
"activity": "rp_wLpbxW_activity",
|
|
37029
|
+
"list": "rp_wLpbxW_list",
|
|
37030
|
+
"notice": "rp_wLpbxW_notice",
|
|
37031
|
+
"saved": "rp_wLpbxW_saved",
|
|
37032
|
+
"title": "rp_wLpbxW_title",
|
|
37033
|
+
"select": "rp_wLpbxW_select",
|
|
36464
37034
|
"help": "rp_wLpbxW_help",
|
|
36465
|
-
"
|
|
37035
|
+
"label": "rp_wLpbxW_label",
|
|
36466
37036
|
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
36467
|
-
"activity": "rp_wLpbxW_activity",
|
|
36468
|
-
"run": "rp_wLpbxW_run",
|
|
36469
|
-
"view": "rp_wLpbxW_view",
|
|
36470
|
-
"error": "rp_wLpbxW_error",
|
|
36471
|
-
"activityBody": "rp_wLpbxW_activityBody",
|
|
36472
37037
|
"field": "rp_wLpbxW_field",
|
|
36473
|
-
"
|
|
36474
|
-
"
|
|
36475
|
-
"
|
|
37038
|
+
"error": "rp_wLpbxW_error",
|
|
37039
|
+
"table": "rp_wLpbxW_table",
|
|
37040
|
+
"actions": "rp_wLpbxW_actions",
|
|
36476
37041
|
"message": "rp_wLpbxW_message"
|
|
36477
37042
|
};
|
|
36478
37043
|
// src/client/chat-settings/settings-api.ts
|
|
@@ -40964,7 +41529,7 @@ window.__ModuleLoader__.load({
|
|
|
40964
41529
|
saved: "Guardado.",
|
|
40965
41530
|
saveFailed: "Não foi possível guardar os ajustes: {message}"
|
|
40966
41531
|
}
|
|
40967
|
-
}, dictionaries$9), dictionaries$
|
|
41532
|
+
}, dictionaries$9), dictionaries$24), dictionaries$3);
|
|
40968
41533
|
// src/client/chat-settings/index.ts
|
|
40969
41534
|
const NAMESPACE$2 = "roleplay.chatSettings";
|
|
40970
41535
|
const VIEW_ID = "roleplay-settings";
|
|
@@ -41005,12 +41570,12 @@ window.__ModuleLoader__.load({
|
|
|
41005
41570
|
}
|
|
41006
41571
|
tag$7.textContent = css$7;
|
|
41007
41572
|
var SettingsForm_module_css_default = {
|
|
41573
|
+
"readOnly": "rp_eL0Ehq_readOnly",
|
|
41008
41574
|
"form": "rp_eL0Ehq_form",
|
|
41009
41575
|
"unavailable": "rp_eL0Ehq_unavailable",
|
|
41010
|
-
"failed": "rp_eL0Ehq_failed",
|
|
41011
41576
|
"footer": "rp_eL0Ehq_footer",
|
|
41012
41577
|
"save": "rp_eL0Ehq_save",
|
|
41013
|
-
"
|
|
41578
|
+
"failed": "rp_eL0Ehq_failed"
|
|
41014
41579
|
};
|
|
41015
41580
|
// src/client/ui/SettingsForm.tsx
|
|
41016
41581
|
/**
|
|
@@ -41067,17 +41632,17 @@ window.__ModuleLoader__.load({
|
|
|
41067
41632
|
}
|
|
41068
41633
|
tag$6.textContent = css$6;
|
|
41069
41634
|
var SettingsValueField_module_css_default = {
|
|
41070
|
-
"field": "rp_AFBKEG_field",
|
|
41071
|
-
"help": "rp_AFBKEG_help",
|
|
41072
|
-
"reset": "rp_AFBKEG_reset",
|
|
41073
|
-
"helpButton": "rp_AFBKEG_helpButton",
|
|
41074
|
-
"input": "rp_AFBKEG_input",
|
|
41075
|
-
"invalid": "rp_AFBKEG_invalid",
|
|
41076
41635
|
"label": "rp_AFBKEG_label",
|
|
41636
|
+
"input": "rp_AFBKEG_input",
|
|
41077
41637
|
"hint": "rp_AFBKEG_hint",
|
|
41078
41638
|
"badges": "rp_AFBKEG_badges",
|
|
41639
|
+
"reset": "rp_AFBKEG_reset",
|
|
41640
|
+
"help": "rp_AFBKEG_help",
|
|
41079
41641
|
"head": "rp_AFBKEG_head",
|
|
41080
|
-
"labelGroup": "rp_AFBKEG_labelGroup"
|
|
41642
|
+
"labelGroup": "rp_AFBKEG_labelGroup",
|
|
41643
|
+
"field": "rp_AFBKEG_field",
|
|
41644
|
+
"helpButton": "rp_AFBKEG_helpButton",
|
|
41645
|
+
"invalid": "rp_AFBKEG_invalid"
|
|
41081
41646
|
};
|
|
41082
41647
|
// src/client/ui/SettingsValueField.tsx
|
|
41083
41648
|
/**
|
|
@@ -41163,16 +41728,16 @@ window.__ModuleLoader__.load({
|
|
|
41163
41728
|
}
|
|
41164
41729
|
tag$5.textContent = css$5;
|
|
41165
41730
|
var CatalogueSettings_module_css_default = {
|
|
41166
|
-
"
|
|
41167
|
-
"actions": "rp_KPhXDa_actions",
|
|
41168
|
-
"keyHint": "rp_KPhXDa_keyHint",
|
|
41731
|
+
"problem": "rp_KPhXDa_problem",
|
|
41169
41732
|
"keyArea": "rp_KPhXDa_keyArea",
|
|
41170
41733
|
"title": "rp_KPhXDa_title",
|
|
41171
|
-
"row": "rp_KPhXDa_row",
|
|
41172
|
-
"problem": "rp_KPhXDa_problem",
|
|
41173
|
-
"field": "rp_KPhXDa_field",
|
|
41174
41734
|
"hint": "rp_KPhXDa_hint",
|
|
41175
|
-
"
|
|
41735
|
+
"field": "rp_KPhXDa_field",
|
|
41736
|
+
"label": "rp_KPhXDa_label",
|
|
41737
|
+
"keyHint": "rp_KPhXDa_keyHint",
|
|
41738
|
+
"actions": "rp_KPhXDa_actions",
|
|
41739
|
+
"section": "rp_KPhXDa_section",
|
|
41740
|
+
"row": "rp_KPhXDa_row"
|
|
41176
41741
|
};
|
|
41177
41742
|
// src/client/settings/AuthoringToolSettings.tsx
|
|
41178
41743
|
const boardOf = (text) => {
|
|
@@ -41366,6 +41931,14 @@ window.__ModuleLoader__.load({
|
|
|
41366
41931
|
max: 3650,
|
|
41367
41932
|
placeholder: "30"
|
|
41368
41933
|
},
|
|
41934
|
+
{
|
|
41935
|
+
field: "worldCheckpointsKept",
|
|
41936
|
+
group: "limits",
|
|
41937
|
+
kind: "integer",
|
|
41938
|
+
min: 1,
|
|
41939
|
+
max: 500,
|
|
41940
|
+
placeholder: "30"
|
|
41941
|
+
},
|
|
41369
41942
|
{
|
|
41370
41943
|
field: "autonomyTickSeconds",
|
|
41371
41944
|
group: "limits",
|
|
@@ -41412,18 +41985,18 @@ window.__ModuleLoader__.load({
|
|
|
41412
41985
|
}
|
|
41413
41986
|
tag$4.textContent = css$4;
|
|
41414
41987
|
var AssistantSettings_module_css_default = {
|
|
41988
|
+
"title": "rp_ZwzM4q_title",
|
|
41415
41989
|
"invalid": "rp_ZwzM4q_invalid",
|
|
41990
|
+
"label": "rp_ZwzM4q_label",
|
|
41991
|
+
"badges": "rp_ZwzM4q_badges",
|
|
41416
41992
|
"fieldHint": "rp_ZwzM4q_fieldHint",
|
|
41417
41993
|
"hint": "rp_ZwzM4q_hint",
|
|
41418
41994
|
"fields": "rp_ZwzM4q_fields",
|
|
41419
41995
|
"head": "rp_ZwzM4q_head",
|
|
41420
|
-
"select": "rp_ZwzM4q_select",
|
|
41421
|
-
"label": "rp_ZwzM4q_label",
|
|
41422
|
-
"badges": "rp_ZwzM4q_badges",
|
|
41423
41996
|
"section": "rp_ZwzM4q_section",
|
|
41424
|
-
"title": "rp_ZwzM4q_title",
|
|
41425
41997
|
"field": "rp_ZwzM4q_field",
|
|
41426
|
-
"reset": "rp_ZwzM4q_reset"
|
|
41998
|
+
"reset": "rp_ZwzM4q_reset",
|
|
41999
|
+
"select": "rp_ZwzM4q_select"
|
|
41427
42000
|
};
|
|
41428
42001
|
// src/client/settings/AssistantSettings.tsx
|
|
41429
42002
|
function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
|
|
@@ -42487,6 +43060,8 @@ window.__ModuleLoader__.load({
|
|
|
42487
43060
|
catalogueMaxBytesLabel: "Largest catalogue download (bytes)",
|
|
42488
43061
|
catalogueMaxBytesHint: "The most a world downloaded from a catalogue may be, compressed and again unpacked. Default 268435456 (256 MB).",
|
|
42489
43062
|
catalogueTrashDaysLabel: "Days to keep replaced files",
|
|
43063
|
+
worldCheckpointsKeptLabel: "Checkpoints kept per world",
|
|
43064
|
+
worldCheckpointsKeptHint: "How many copies of a world's files are kept, made before the authoring assistant edits it and when you ask for one. The oldest are deleted first. Pictures are not copied. Default 30.",
|
|
42490
43065
|
autonomyTickSecondsLabel: "Seconds between looks at stories that go on without you",
|
|
42491
43066
|
autonomyTickSecondsHint: "How often the stories that switched on \"the story goes on while I am away\" are looked at: characters take up their days, and one may write to you. 0 never looks; the least is 5. Default 30.",
|
|
42492
43067
|
catalogueTrashDaysHint: "How long the files an update replaced stay in the trash folder before they are deleted. 0 keeps them for good. Default 30.",
|
|
@@ -42599,6 +43174,8 @@ window.__ModuleLoader__.load({
|
|
|
42599
43174
|
catalogueMaxBytesLabel: "目录下载大小上限(字节)",
|
|
42600
43175
|
catalogueMaxBytesHint: "从目录下载的世界的最大体积,压缩后和解压后都不得超过。默认 268435456(256 MB)。",
|
|
42601
43176
|
catalogueTrashDaysLabel: "被替换文件的保留天数",
|
|
43177
|
+
worldCheckpointsKeptLabel: "每个世界保留的检查点数量",
|
|
43178
|
+
worldCheckpointsKeptHint: "在创作助手修改世界之前、以及你主动要求时,会保存一份世界文件的副本;这里设定保留多少份,最旧的先删除。图片不会被复制。默认 30。",
|
|
42602
43179
|
autonomyTickSecondsLabel: "查看无人在场继续进行的故事的间隔(秒)",
|
|
42603
43180
|
autonomyTickSecondsHint: "多久查看一次打开了“我不在时故事继续”的故事:角色按各自日程行事,其中一人可能给你写消息。0 表示从不查看,最短 5 秒。默认 30。",
|
|
42604
43181
|
catalogueTrashDaysHint: "更新替换下来的文件在回收文件夹中保留多少天后删除。0 表示永久保留。默认 30。",
|
|
@@ -42746,6 +43323,8 @@ window.__ModuleLoader__.load({
|
|
|
42746
43323
|
unavailable: "ロールプレイが読み込まれていないため、現在は設定できません。",
|
|
42747
43324
|
save: "保存",
|
|
42748
43325
|
saving: "保存中…",
|
|
43326
|
+
worldCheckpointsKeptLabel: "ワールドごとに保持するチェックポイント数",
|
|
43327
|
+
worldCheckpointsKeptHint: "ワールドのファイルのコピーを、創作アシスタントが編集する前とご要望の際に保存します。保持する数を指定します。古いものから削除されます。画像はコピーされません。既定は 30。",
|
|
42749
43328
|
saveFailed: "この環境は値を受け付けませんでした。修正できるよう入力内容は残しています。"
|
|
42750
43329
|
},
|
|
42751
43330
|
es: {
|
|
@@ -42858,6 +43437,8 @@ window.__ModuleLoader__.load({
|
|
|
42858
43437
|
unavailable: "Juego de rol no está cargado y no se puede configurar ahora.",
|
|
42859
43438
|
save: "Guardar",
|
|
42860
43439
|
saving: "Guardando…",
|
|
43440
|
+
worldCheckpointsKeptLabel: "Puntos de control por mundo",
|
|
43441
|
+
worldCheckpointsKeptHint: "Cuántas copias de los archivos de un mundo se conservan, hechas antes de que el asistente de creación lo edite y cuando usted lo pide. Se borran primero las más antiguas. Las imágenes no se copian. Por defecto 30.",
|
|
42861
43442
|
saveFailed: "La instalación no aceptó estos valores; se han conservado para que los corrijas."
|
|
42862
43443
|
},
|
|
42863
43444
|
fr: {
|
|
@@ -42970,6 +43551,8 @@ window.__ModuleLoader__.load({
|
|
|
42970
43551
|
unavailable: "Le jeu de rôle n’est pas chargé et ne peut pas être configuré actuellement.",
|
|
42971
43552
|
save: "Enregistrer",
|
|
42972
43553
|
saving: "Enregistrement…",
|
|
43554
|
+
worldCheckpointsKeptLabel: "Points de contrôle conservés par monde",
|
|
43555
|
+
worldCheckpointsKeptHint: "Combien de copies des fichiers d'un monde sont conservées, faites avant que l'assistant de création ne le modifie et à votre demande. Les plus anciennes sont supprimées en premier. Les images ne sont pas copiées. 30 par défaut.",
|
|
42973
43556
|
saveFailed: "Le déploiement a refusé ces valeurs ; elles sont conservées pour correction."
|
|
42974
43557
|
},
|
|
42975
43558
|
de: {
|
|
@@ -43082,6 +43665,8 @@ window.__ModuleLoader__.load({
|
|
|
43082
43665
|
unavailable: "Rollenspiel ist nicht geladen und kann derzeit nicht konfiguriert werden.",
|
|
43083
43666
|
save: "Speichern",
|
|
43084
43667
|
saving: "Wird gespeichert…",
|
|
43668
|
+
worldCheckpointsKeptLabel: "Gespeicherte Prüfpunkte pro Welt",
|
|
43669
|
+
worldCheckpointsKeptHint: "Wie viele Kopien der Dateien einer Welt behalten werden, angelegt bevor der Autorenassistent sie bearbeitet und auf Wunsch. Die ältesten werden zuerst gelöscht. Bilder werden nicht kopiert. Standard 30.",
|
|
43085
43670
|
saveFailed: "Die Bereitstellung hat diese Werte abgelehnt; sie bleiben zur Korrektur erhalten."
|
|
43086
43671
|
},
|
|
43087
43672
|
ru: {
|
|
@@ -43194,6 +43779,8 @@ window.__ModuleLoader__.load({
|
|
|
43194
43779
|
unavailable: "Ролевая игра не загружена, поэтому сейчас недоступна для настройки.",
|
|
43195
43780
|
save: "Сохранить",
|
|
43196
43781
|
saving: "Сохранение…",
|
|
43782
|
+
worldCheckpointsKeptLabel: "Контрольных точек на мир",
|
|
43783
|
+
worldCheckpointsKeptHint: "Сколько копий файлов мира хранится: они создаются перед правками ассистента по созданию и по вашему запросу. Сначала удаляются самые старые. Изображения не копируются. По умолчанию 30.",
|
|
43197
43784
|
saveFailed: "Установка не приняла значения; они оставлены для исправления."
|
|
43198
43785
|
},
|
|
43199
43786
|
pt: {
|
|
@@ -43306,6 +43893,8 @@ window.__ModuleLoader__.load({
|
|
|
43306
43893
|
unavailable: "O jogo de interpretação não está carregado e não pode ser configurado agora.",
|
|
43307
43894
|
save: "Guardar",
|
|
43308
43895
|
saving: "A guardar…",
|
|
43896
|
+
worldCheckpointsKeptLabel: "Pontos de controlo guardados por mundo",
|
|
43897
|
+
worldCheckpointsKeptHint: "Quantas cópias dos ficheiros de um mundo são guardadas, feitas antes de o assistente de criação o editar e quando o pedir. As mais antigas são apagadas primeiro. As imagens não são copiadas. Por omissão, 30.",
|
|
43309
43898
|
saveFailed: "A instalação não aceitou estes valores; foram mantidos para correção."
|
|
43310
43899
|
}
|
|
43311
43900
|
};
|
|
@@ -43860,30 +44449,30 @@ window.__ModuleLoader__.load({
|
|
|
43860
44449
|
}
|
|
43861
44450
|
tag$3.textContent = css$3;
|
|
43862
44451
|
var NarrationView_module_css_default = {
|
|
43863
|
-
"
|
|
44452
|
+
"dice": "rp_NFPimG_dice",
|
|
44453
|
+
"output": "rp_NFPimG_output",
|
|
43864
44454
|
"avatar": "rp_NFPimG_avatar",
|
|
43865
44455
|
"speech": "rp_NFPimG_speech",
|
|
43866
|
-
"
|
|
43867
|
-
"
|
|
43868
|
-
"oocLabel": "rp_NFPimG_oocLabel",
|
|
44456
|
+
"line": "rp_NFPimG_line",
|
|
44457
|
+
"words": "rp_NFPimG_words",
|
|
43869
44458
|
"preview": "rp_NFPimG_preview",
|
|
44459
|
+
"playLine": "rp_NFPimG_playLine",
|
|
44460
|
+
"picture": "rp_NFPimG_picture",
|
|
44461
|
+
"name": "rp_NFPimG_name",
|
|
43870
44462
|
"note": "rp_NFPimG_note",
|
|
43871
|
-
"sceneImage": "rp_NFPimG_sceneImage",
|
|
43872
|
-
"oocRefused": "rp_NFPimG_oocRefused",
|
|
43873
44463
|
"images": "rp_NFPimG_images",
|
|
43874
|
-
"
|
|
43875
|
-
"
|
|
43876
|
-
"
|
|
43877
|
-
"imageStatus": "rp_NFPimG_imageStatus",
|
|
44464
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
44465
|
+
"imageError": "rp_NFPimG_imageError",
|
|
44466
|
+
"diceList": "rp_NFPimG_diceList",
|
|
43878
44467
|
"avatarImage": "rp_NFPimG_avatarImage",
|
|
44468
|
+
"narration": "rp_NFPimG_narration",
|
|
44469
|
+
"oocLabel": "rp_NFPimG_oocLabel",
|
|
44470
|
+
"oocNote": "rp_NFPimG_oocNote",
|
|
44471
|
+
"oocRefused": "rp_NFPimG_oocRefused",
|
|
44472
|
+
"sceneImage": "rp_NFPimG_sceneImage",
|
|
43879
44473
|
"diceSummary": "rp_NFPimG_diceSummary",
|
|
43880
|
-
"
|
|
43881
|
-
"
|
|
43882
|
-
"imageError": "rp_NFPimG_imageError",
|
|
43883
|
-
"output": "rp_NFPimG_output",
|
|
43884
|
-
"playLine": "rp_NFPimG_playLine",
|
|
43885
|
-
"name": "rp_NFPimG_name",
|
|
43886
|
-
"oocNote": "rp_NFPimG_oocNote"
|
|
44474
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
44475
|
+
"actions": "rp_NFPimG_actions"
|
|
43887
44476
|
};
|
|
43888
44477
|
// src/client/transcript/PreviewNode.tsx
|
|
43889
44478
|
/**
|
|
@@ -44284,11 +44873,11 @@ window.__ModuleLoader__.load({
|
|
|
44284
44873
|
}
|
|
44285
44874
|
tag$2.textContent = css$2;
|
|
44286
44875
|
var SuggestionsDock_module_css_default = {
|
|
44287
|
-
"label": "rp_rWH4DG_label",
|
|
44288
|
-
"dock": "rp_rWH4DG_dock",
|
|
44289
|
-
"chip": "rp_rWH4DG_chip",
|
|
44290
44876
|
"card": "rp_rWH4DG_card",
|
|
44291
|
-
"lines": "rp_rWH4DG_lines"
|
|
44877
|
+
"lines": "rp_rWH4DG_lines",
|
|
44878
|
+
"chip": "rp_rWH4DG_chip",
|
|
44879
|
+
"dock": "rp_rWH4DG_dock",
|
|
44880
|
+
"label": "rp_rWH4DG_label"
|
|
44292
44881
|
};
|
|
44293
44882
|
// src/client/transcript/dock-fold.ts
|
|
44294
44883
|
const KEY = "roleplay.dock.folded";
|
|
@@ -44487,9 +45076,9 @@ window.__ModuleLoader__.load({
|
|
|
44487
45076
|
tag$1.textContent = css$1;
|
|
44488
45077
|
var Menu_module_css_default = {
|
|
44489
45078
|
"chevron": "rp_6CY8oG_chevron",
|
|
45079
|
+
"list": "rp_6CY8oG_list",
|
|
44490
45080
|
"heading": "rp_6CY8oG_heading",
|
|
44491
|
-
"item": "rp_6CY8oG_item"
|
|
44492
|
-
"list": "rp_6CY8oG_list"
|
|
45081
|
+
"item": "rp_6CY8oG_item"
|
|
44493
45082
|
};
|
|
44494
45083
|
// src/client/ui/Menu.tsx
|
|
44495
45084
|
const GAP = 4;
|
|
@@ -44624,17 +45213,17 @@ window.__ModuleLoader__.load({
|
|
|
44624
45213
|
}
|
|
44625
45214
|
tag.textContent = css;
|
|
44626
45215
|
var TurnsDock_module_css_default = {
|
|
45216
|
+
"comparisonSubject": "rp_f4YLlq_comparisonSubject",
|
|
45217
|
+
"dock": "rp_f4YLlq_dock",
|
|
44627
45218
|
"error": "rp_f4YLlq_error",
|
|
44628
|
-
"fold": "rp_f4YLlq_fold",
|
|
44629
45219
|
"count": "rp_f4YLlq_count",
|
|
44630
|
-
"comparisonSubject": "rp_f4YLlq_comparisonSubject",
|
|
44631
45220
|
"comparison": "rp_f4YLlq_comparison",
|
|
45221
|
+
"fold": "rp_f4YLlq_fold",
|
|
44632
45222
|
"group": "rp_f4YLlq_group",
|
|
45223
|
+
"select": "rp_f4YLlq_select",
|
|
44633
45224
|
"button": "rp_f4YLlq_button",
|
|
44634
|
-
"dock": "rp_f4YLlq_dock",
|
|
44635
|
-
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
44636
45225
|
"comparisonLine": "rp_f4YLlq_comparisonLine",
|
|
44637
|
-
"
|
|
45226
|
+
"comparisonHead": "rp_f4YLlq_comparisonHead"
|
|
44638
45227
|
};
|
|
44639
45228
|
// src/client/transcript/withdrawn.ts
|
|
44640
45229
|
/** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */
|