@dsh-agentic-roleplay/core 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/{authoring-tools-BKltdiea.js → authoring-tools-CIsWbq0B.js} +197 -20
- package/lib/authoring.js +410 -32
- package/lib/client.js +679 -347
- package/lib/client.js.map +1 -1
- package/lib/doctor.js +1 -1
- package/lib/{gallery-BxZGOgMb.js → gallery-DmBZ2L5l.js} +2 -2
- package/lib/{generator-BFmSYvR8.js → generator-BmdoTIL2.js} +2 -2
- package/lib/{hooks-HnqXO8mM.js → hooks-C8eELrni.js} +2 -2
- package/lib/images.js +4 -4
- package/lib/index.js +111 -566
- package/lib/{library-BGxPKs9a.js → library-lVNf9qG_.js} +37 -4
- package/lib/{lorebook-author-tools-BAnUyRtS.js → lorebook-author-tools-BDOs4i5C.js} +6 -6
- package/lib/lorebook-authoring.js +3 -3
- package/lib/orchestration.js +8 -8
- package/lib/{pack-jail-DLGguGS3.js → pack-jail-DeTscGT2.js} +1255 -12
- package/lib/{packs-jowC-MN_.js → packs-CY8ms8v_.js} +2 -2
- package/lib/{presenter-agent-DvZtnf0Q.js → presenter-agent-cFR4sos3.js} +4 -4
- package/lib/{preset-author-tools-C26kj6t5.js → preset-author-tools-2m4BLtws.js} +6 -6
- package/lib/preset-authoring.js +4 -4
- package/lib/{preset-CXbC0NeU.js → preset-n4-j6k4S.js} +2 -2
- package/lib/{reflection-CvOZGjmn.js → reflection-CJB5s0ip.js} +6 -6
- package/lib/{route-DRTJ_vcA.js → route-C6SHz9j2.js} +2 -2
- package/lib/{text-JbWfTHbr.js → text-Cwl5s0j0.js} +3 -1
- package/package.json +2 -2
- package/prompts/en/import/finish-ok.md +1 -1
- package/prompts/en/world/procedure.md +1 -1
- package/prompts/zh/import/finish-ok.md +1 -1
- package/prompts/zh/world/procedure.md +1 -1
package/lib/client.js
CHANGED
|
@@ -94,9 +94,9 @@ window.__ModuleLoader__.load({
|
|
|
94
94
|
tag$33.textContent = css$33;
|
|
95
95
|
var RoleplayPanel_module_css_default = {
|
|
96
96
|
"title": "rp_ua5gBa_title",
|
|
97
|
+
"body": "rp_ua5gBa_body",
|
|
97
98
|
"panel": "rp_ua5gBa_panel",
|
|
98
|
-
"header": "rp_ua5gBa_header"
|
|
99
|
-
"body": "rp_ua5gBa_body"
|
|
99
|
+
"header": "rp_ua5gBa_header"
|
|
100
100
|
};
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/client/panel/RoleplayPanel.tsx
|
|
@@ -429,38 +429,41 @@ window.__ModuleLoader__.load({
|
|
|
429
429
|
}
|
|
430
430
|
tag$32.textContent = css$32;
|
|
431
431
|
var ImportCard_module_css_default = {
|
|
432
|
-
"preview": "rp_5cvtma_preview",
|
|
433
|
-
"error": "rp_5cvtma_error",
|
|
434
|
-
"entry": "rp_5cvtma_entry",
|
|
435
432
|
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
433
|
+
"entryHead": "rp_5cvtma_entryHead",
|
|
434
|
+
"tags": "rp_5cvtma_tags",
|
|
435
|
+
"text": "rp_5cvtma_text",
|
|
436
436
|
"entryOff": "rp_5cvtma_entryOff",
|
|
437
|
-
"
|
|
437
|
+
"section": "rp_5cvtma_section",
|
|
438
|
+
"error": "rp_5cvtma_error",
|
|
439
|
+
"fieldHead": "rp_5cvtma_fieldHead",
|
|
440
|
+
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
438
441
|
"choice": "rp_5cvtma_choice",
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
"label": "rp_5cvtma_label",
|
|
442
|
-
"picture": "rp_5cvtma_picture",
|
|
442
|
+
"choiceText": "rp_5cvtma_choiceText",
|
|
443
|
+
"about": "rp_5cvtma_about",
|
|
443
444
|
"title": "rp_5cvtma_title",
|
|
444
|
-
"
|
|
445
|
-
"field": "rp_5cvtma_field",
|
|
446
|
-
"tags": "rp_5cvtma_tags",
|
|
447
|
-
"header": "rp_5cvtma_header",
|
|
445
|
+
"preview": "rp_5cvtma_preview",
|
|
448
446
|
"space": "rp_5cvtma_space",
|
|
449
|
-
"top": "rp_5cvtma_top",
|
|
450
|
-
"heading": "rp_5cvtma_heading",
|
|
451
|
-
"section": "rp_5cvtma_section",
|
|
452
447
|
"note": "rp_5cvtma_note",
|
|
448
|
+
"body": "rp_5cvtma_body",
|
|
453
449
|
"noPicture": "rp_5cvtma_noPicture",
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
450
|
+
"label": "rp_5cvtma_label",
|
|
451
|
+
"heading": "rp_5cvtma_heading",
|
|
452
|
+
"page": "rp_5cvtma_page",
|
|
453
|
+
"top": "rp_5cvtma_top",
|
|
457
454
|
"row": "rp_5cvtma_row",
|
|
458
|
-
"
|
|
459
|
-
"
|
|
455
|
+
"field": "rp_5cvtma_field",
|
|
456
|
+
"entry": "rp_5cvtma_entry",
|
|
457
|
+
"entryTitle": "rp_5cvtma_entryTitle",
|
|
458
|
+
"picture": "rp_5cvtma_picture",
|
|
459
|
+
"header": "rp_5cvtma_header"
|
|
460
460
|
};
|
|
461
461
|
//#endregion
|
|
462
462
|
//#region src/client/widgets/import-card/ImportCard.tsx
|
|
463
463
|
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
464
|
+
/** What the person is offered first: updating the world of that name nobody changed, otherwise a new world. */
|
|
465
|
+
const defaultTarget = (targets) => targets?.find((target) => target.sameName && target.edited === "no")?.worldId;
|
|
466
|
+
const editedNote = (target, t) => target.edited === "no" ? t("ic_targetClean") : target.edited === "yes" ? t("ic_targetEdited", { files: target.changes.join(", ") }) : t("ic_targetUnknown");
|
|
464
467
|
const same$1 = (a, b) => a.kind === b.kind && (a.kind !== "alternate" || b.kind === "alternate" && a.index === b.index);
|
|
465
468
|
function Text({ label, text, t, note }) {
|
|
466
469
|
const [open, setOpen] = (0, react.useState)(false);
|
|
@@ -497,15 +500,18 @@ window.__ModuleLoader__.load({
|
|
|
497
500
|
* What a card holds, for the person to look through and decide what becomes of it: which lorebook entries are read at all, and which greeting opens the story.
|
|
498
501
|
* The caller says what starting and cancelling do, because a card comes from a file or from a catalogue.
|
|
499
502
|
*/
|
|
500
|
-
function ImportCard({ t, preview, start: begin, discard, onCancelled, onStarted }) {
|
|
503
|
+
function ImportCard({ t, preview, initialUpdate, start: begin, discard, onCancelled, onStarted }) {
|
|
501
504
|
const { card } = preview;
|
|
502
505
|
const entries = card.book?.entries ?? [];
|
|
503
506
|
const [name, setName] = (0, react.useState)(preview.choices.name);
|
|
504
507
|
const [off, setOff] = (0, react.useState)(() => new Set(preview.choices.disabledEntries));
|
|
505
508
|
const [opening, setOpening] = (0, react.useState)(preview.choices.opening);
|
|
506
509
|
const [open, setOpen] = (0, react.useState)(/* @__PURE__ */ new Set());
|
|
510
|
+
const [update, setUpdate] = (0, react.useState)(() => initialUpdate ?? defaultTarget(preview.targets));
|
|
507
511
|
const [starting, setStarting] = (0, react.useState)(false);
|
|
508
512
|
const [error, setError] = (0, react.useState)();
|
|
513
|
+
const others = (preview.targets ?? []).filter((target) => !target.sameName);
|
|
514
|
+
const chosenOther = others.find((target) => target.worldId === update);
|
|
509
515
|
const greetings = [...card.firstMessage.trim() === "" ? [] : [{
|
|
510
516
|
choice: { kind: "first" },
|
|
511
517
|
label: t("ic_openingFirst"),
|
|
@@ -539,7 +545,7 @@ window.__ModuleLoader__.load({
|
|
|
539
545
|
if (name.trim() === "" || starting) return;
|
|
540
546
|
setStarting(true);
|
|
541
547
|
setError(void 0);
|
|
542
|
-
begin(choices()).then((started) => {
|
|
548
|
+
begin(choices(), update).then((started) => {
|
|
543
549
|
onStarted(started.chatSessionId, started.started);
|
|
544
550
|
}, (failure) => {
|
|
545
551
|
setStarting(false);
|
|
@@ -559,7 +565,7 @@ window.__ModuleLoader__.load({
|
|
|
559
565
|
children: [
|
|
560
566
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
561
567
|
className: ImportCard_module_css_default.title,
|
|
562
|
-
children: t("ic_title")
|
|
568
|
+
children: update === void 0 ? t("ic_title") : t("ic_updateTitle")
|
|
563
569
|
}),
|
|
564
570
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: ImportCard_module_css_default.space }),
|
|
565
571
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
@@ -574,7 +580,7 @@ window.__ModuleLoader__.load({
|
|
|
574
580
|
size: "sm",
|
|
575
581
|
disabled: name.trim() === "" || starting,
|
|
576
582
|
onClick: start,
|
|
577
|
-
children: starting ? t("ic_starting") : t("ic_start")
|
|
583
|
+
children: starting ? t("ic_starting") : update === void 0 ? t("ic_start") : t("ic_update")
|
|
578
584
|
})
|
|
579
585
|
]
|
|
580
586
|
}),
|
|
@@ -605,6 +611,7 @@ window.__ModuleLoader__.load({
|
|
|
605
611
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("ic_worldName") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
606
612
|
value: name,
|
|
607
613
|
maxLength: 200,
|
|
614
|
+
disabled: update !== void 0,
|
|
608
615
|
onChange: (event) => {
|
|
609
616
|
setName(event.target.value);
|
|
610
617
|
}
|
|
@@ -628,6 +635,102 @@ window.__ModuleLoader__.load({
|
|
|
628
635
|
]
|
|
629
636
|
})]
|
|
630
637
|
}),
|
|
638
|
+
preview.targets !== void 0 && preview.targets.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
639
|
+
className: ImportCard_module_css_default.section,
|
|
640
|
+
children: [
|
|
641
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
642
|
+
className: ImportCard_module_css_default.heading,
|
|
643
|
+
children: t("ic_target")
|
|
644
|
+
}),
|
|
645
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
646
|
+
className: ImportCard_module_css_default.note,
|
|
647
|
+
children: t("ic_targetHelp")
|
|
648
|
+
}),
|
|
649
|
+
preview.targets.filter((target) => target.sameName).map((target) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
650
|
+
className: ImportCard_module_css_default.choice,
|
|
651
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
652
|
+
type: "radio",
|
|
653
|
+
name: "target",
|
|
654
|
+
"aria-label": t("ic_targetUpdate", { name: target.name }),
|
|
655
|
+
checked: update === target.worldId,
|
|
656
|
+
onChange: () => {
|
|
657
|
+
setUpdate(target.worldId);
|
|
658
|
+
}
|
|
659
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
660
|
+
className: ImportCard_module_css_default.choiceText,
|
|
661
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
662
|
+
className: ImportCard_module_css_default.fieldTitle,
|
|
663
|
+
children: t("ic_targetUpdate", { name: target.name })
|
|
664
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
665
|
+
className: ImportCard_module_css_default.preview,
|
|
666
|
+
children: editedNote(target, t)
|
|
667
|
+
})]
|
|
668
|
+
})]
|
|
669
|
+
}, target.worldId)),
|
|
670
|
+
others.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
671
|
+
className: ImportCard_module_css_default.choice,
|
|
672
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
673
|
+
type: "radio",
|
|
674
|
+
name: "target",
|
|
675
|
+
"aria-label": t("ic_targetOther"),
|
|
676
|
+
checked: chosenOther !== void 0,
|
|
677
|
+
onChange: () => {
|
|
678
|
+
setUpdate(others[0]?.worldId);
|
|
679
|
+
}
|
|
680
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
681
|
+
className: ImportCard_module_css_default.choiceText,
|
|
682
|
+
children: [
|
|
683
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
684
|
+
className: ImportCard_module_css_default.fieldTitle,
|
|
685
|
+
children: t("ic_targetOther")
|
|
686
|
+
}),
|
|
687
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
688
|
+
"aria-label": t("ic_targetOtherChoose"),
|
|
689
|
+
"data-testid": "roleplay-import-other",
|
|
690
|
+
disabled: chosenOther === void 0,
|
|
691
|
+
value: chosenOther?.worldId ?? "",
|
|
692
|
+
onChange: (event) => {
|
|
693
|
+
setUpdate(event.target.value);
|
|
694
|
+
},
|
|
695
|
+
children: [chosenOther === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
696
|
+
value: "",
|
|
697
|
+
children: t("ic_targetOtherChoose")
|
|
698
|
+
}), others.map((target) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
699
|
+
value: target.worldId,
|
|
700
|
+
children: target.name
|
|
701
|
+
}, target.worldId))]
|
|
702
|
+
}),
|
|
703
|
+
chosenOther !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
704
|
+
className: ImportCard_module_css_default.preview,
|
|
705
|
+
children: [
|
|
706
|
+
t("ic_targetKeepsName"),
|
|
707
|
+
" ",
|
|
708
|
+
editedNote(chosenOther, t)
|
|
709
|
+
]
|
|
710
|
+
})
|
|
711
|
+
]
|
|
712
|
+
})]
|
|
713
|
+
}),
|
|
714
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
715
|
+
className: ImportCard_module_css_default.choice,
|
|
716
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
717
|
+
type: "radio",
|
|
718
|
+
name: "target",
|
|
719
|
+
"aria-label": t("ic_targetNew"),
|
|
720
|
+
checked: update === void 0,
|
|
721
|
+
onChange: () => {
|
|
722
|
+
setUpdate(void 0);
|
|
723
|
+
}
|
|
724
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
725
|
+
className: ImportCard_module_css_default.choiceText,
|
|
726
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
727
|
+
className: ImportCard_module_css_default.fieldTitle,
|
|
728
|
+
children: t("ic_targetNew")
|
|
729
|
+
})
|
|
730
|
+
})]
|
|
731
|
+
})
|
|
732
|
+
]
|
|
733
|
+
}),
|
|
631
734
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
632
735
|
className: ImportCard_module_css_default.section,
|
|
633
736
|
children: [
|
|
@@ -815,38 +918,38 @@ window.__ModuleLoader__.load({
|
|
|
815
918
|
}
|
|
816
919
|
tag$31.textContent = css$31;
|
|
817
920
|
var CataloguePage_module_css_default = {
|
|
818
|
-
"
|
|
819
|
-
"
|
|
820
|
-
"
|
|
821
|
-
"
|
|
921
|
+
"update": "rp_qK1u-G_update",
|
|
922
|
+
"card": "rp_qK1u-G_card",
|
|
923
|
+
"field": "rp_qK1u-G_field",
|
|
924
|
+
"meta": "rp_qK1u-G_meta",
|
|
925
|
+
"image": "rp_qK1u-G_image",
|
|
926
|
+
"tags": "rp_qK1u-G_tags",
|
|
822
927
|
"description": "rp_qK1u-G_description",
|
|
823
|
-
"
|
|
824
|
-
"
|
|
825
|
-
"status": "rp_qK1u-G_status",
|
|
826
|
-
"message": "rp_qK1u-G_message",
|
|
928
|
+
"changes": "rp_qK1u-G_changes",
|
|
929
|
+
"notice": "rp_qK1u-G_notice",
|
|
827
930
|
"updates": "rp_qK1u-G_updates",
|
|
828
|
-
"viewport": "rp_qK1u-G_viewport",
|
|
829
|
-
"grid": "rp_qK1u-G_grid",
|
|
830
|
-
"field": "rp_qK1u-G_field",
|
|
831
931
|
"actions": "rp_qK1u-G_actions",
|
|
832
|
-
"
|
|
833
|
-
"
|
|
932
|
+
"success": "rp_qK1u-G_success",
|
|
933
|
+
"name": "rp_qK1u-G_name",
|
|
934
|
+
"label": "rp_qK1u-G_label",
|
|
834
935
|
"kinds": "rp_qK1u-G_kinds",
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
"update": "rp_qK1u-G_update",
|
|
936
|
+
"cover": "rp_qK1u-G_cover",
|
|
937
|
+
"detail": "rp_qK1u-G_detail",
|
|
838
938
|
"select": "rp_qK1u-G_select",
|
|
839
|
-
"
|
|
840
|
-
"
|
|
939
|
+
"status": "rp_qK1u-G_status",
|
|
940
|
+
"placeholder": "rp_qK1u-G_placeholder",
|
|
941
|
+
"form": "rp_qK1u-G_form",
|
|
942
|
+
"body": "rp_qK1u-G_body",
|
|
943
|
+
"search": "rp_qK1u-G_search",
|
|
944
|
+
"grid": "rp_qK1u-G_grid",
|
|
841
945
|
"kind": "rp_qK1u-G_kind",
|
|
842
|
-
"image": "rp_qK1u-G_image",
|
|
843
|
-
"notice": "rp_qK1u-G_notice",
|
|
844
|
-
"success": "rp_qK1u-G_success",
|
|
845
946
|
"toolbar": "rp_qK1u-G_toolbar",
|
|
846
|
-
"
|
|
847
|
-
"
|
|
947
|
+
"message": "rp_qK1u-G_message",
|
|
948
|
+
"page": "rp_qK1u-G_page",
|
|
949
|
+
"spacer": "rp_qK1u-G_spacer",
|
|
848
950
|
"warning": "rp_qK1u-G_warning",
|
|
849
|
-
"
|
|
951
|
+
"viewport": "rp_qK1u-G_viewport",
|
|
952
|
+
"more": "rp_qK1u-G_more"
|
|
850
953
|
};
|
|
851
954
|
//#endregion
|
|
852
955
|
//#region src/client/pages/catalogue/ImportUrlDialog.tsx
|
|
@@ -1049,19 +1152,19 @@ window.__ModuleLoader__.load({
|
|
|
1049
1152
|
}
|
|
1050
1153
|
tag$30.textContent = css$30;
|
|
1051
1154
|
var ImportSelection_module_css_default = {
|
|
1052
|
-
"error": "rp_Jx0l4q_error",
|
|
1053
|
-
"help": "rp_Jx0l4q_help",
|
|
1054
|
-
"list": "rp_Jx0l4q_list",
|
|
1055
|
-
"note": "rp_Jx0l4q_note",
|
|
1056
1155
|
"full": "rp_Jx0l4q_full",
|
|
1057
|
-
"meta": "rp_Jx0l4q_meta",
|
|
1058
|
-
"extra": "rp_Jx0l4q_extra",
|
|
1059
1156
|
"sampling": "rp_Jx0l4q_sampling",
|
|
1060
|
-
"
|
|
1157
|
+
"error": "rp_Jx0l4q_error",
|
|
1158
|
+
"extra": "rp_Jx0l4q_extra",
|
|
1159
|
+
"meta": "rp_Jx0l4q_meta",
|
|
1160
|
+
"note": "rp_Jx0l4q_note",
|
|
1061
1161
|
"text": "rp_Jx0l4q_text",
|
|
1162
|
+
"count": "rp_Jx0l4q_count",
|
|
1062
1163
|
"body": "rp_Jx0l4q_body",
|
|
1164
|
+
"help": "rp_Jx0l4q_help",
|
|
1063
1165
|
"bar": "rp_Jx0l4q_bar",
|
|
1064
|
-
"
|
|
1166
|
+
"list": "rp_Jx0l4q_list",
|
|
1167
|
+
"row": "rp_Jx0l4q_row"
|
|
1065
1168
|
};
|
|
1066
1169
|
//#endregion
|
|
1067
1170
|
//#region src/client/widgets/import-selection/ImportSelection.tsx
|
|
@@ -1731,12 +1834,13 @@ window.__ModuleLoader__.load({
|
|
|
1731
1834
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportCard, {
|
|
1732
1835
|
t,
|
|
1733
1836
|
preview: reviewing.preview,
|
|
1734
|
-
start: (choices) => convertStaged({
|
|
1837
|
+
start: (choices, update) => convertStaged({
|
|
1735
1838
|
source: reviewing.source,
|
|
1736
1839
|
versionId: reviewing.versionId,
|
|
1737
1840
|
id: reviewing.preview.id,
|
|
1738
1841
|
choices,
|
|
1739
|
-
language: t("language")
|
|
1842
|
+
language: t("language"),
|
|
1843
|
+
...update === void 0 ? {} : { update }
|
|
1740
1844
|
}),
|
|
1741
1845
|
discard: () => discardCard(reviewing.preview.id),
|
|
1742
1846
|
onCancelled: () => {
|
|
@@ -2034,6 +2138,18 @@ window.__ModuleLoader__.load({
|
|
|
2034
2138
|
const dictionaries$21 = {
|
|
2035
2139
|
en: {
|
|
2036
2140
|
ic_title: "Import a character card",
|
|
2141
|
+
ic_updateTitle: "Update a world from a newer card",
|
|
2142
|
+
ic_target: "Update a world, or import a new one",
|
|
2143
|
+
ic_targetHelp: "A world that was imported from a card can be brought up to date with this version by the assistant, instead of importing everything again. Every change it makes asks for your approval unless you turned that off.",
|
|
2144
|
+
ic_targetOther: "Update another world",
|
|
2145
|
+
ic_targetOtherChoose: "Which world",
|
|
2146
|
+
ic_targetKeepsName: "The world keeps its own name.",
|
|
2147
|
+
ic_targetUpdate: "Update “{name}” from this card",
|
|
2148
|
+
ic_targetNew: "Import as a new world",
|
|
2149
|
+
ic_targetClean: "Not changed since the import: the assistant edits it, and you approve each change.",
|
|
2150
|
+
ic_targetEdited: "You changed it since the import ({files}). A copy is safer; an update keeps those edits where it can.",
|
|
2151
|
+
ic_targetUnknown: "Imported before changes were recorded, so it cannot be told whether you edited it. A copy is safer.",
|
|
2152
|
+
ic_update: "Update",
|
|
2037
2153
|
ic_source: "A {spec} card{converted}.",
|
|
2038
2154
|
ic_worldName: "Name of the new world",
|
|
2039
2155
|
ic_noPicture: "No picture",
|
|
@@ -2068,6 +2184,18 @@ window.__ModuleLoader__.load({
|
|
|
2068
2184
|
},
|
|
2069
2185
|
zh: {
|
|
2070
2186
|
ic_title: "导入角色卡",
|
|
2187
|
+
ic_updateTitle: "用新版角色卡更新世界",
|
|
2188
|
+
ic_target: "更新已有世界,或导入为新世界",
|
|
2189
|
+
ic_targetHelp: "由角色卡导入的世界,可以让助手按这个版本更新到最新,而不必重新导入全部内容。除非你关闭了确认,助手的每项改动都需要你批准。",
|
|
2190
|
+
ic_targetOther: "更新另一个世界",
|
|
2191
|
+
ic_targetOtherChoose: "选择世界",
|
|
2192
|
+
ic_targetKeepsName: "世界保留它自己的名字。",
|
|
2193
|
+
ic_targetUpdate: "用这张卡更新“{name}”",
|
|
2194
|
+
ic_targetNew: "作为新世界导入",
|
|
2195
|
+
ic_targetClean: "导入后没有被修改过:由助手修改,每项改动都需要你批准。",
|
|
2196
|
+
ic_targetEdited: "导入后你修改过它({files})。建议另存为副本;更新会尽量保留这些修改。",
|
|
2197
|
+
ic_targetUnknown: "导入时尚未记录文件状态,无法判断你是否修改过。建议另存为副本。",
|
|
2198
|
+
ic_update: "更新",
|
|
2071
2199
|
ic_source: "{spec} 角色卡{converted}。",
|
|
2072
2200
|
ic_worldName: "新世界的名称",
|
|
2073
2201
|
ic_noPicture: "没有图片",
|
|
@@ -2274,8 +2402,8 @@ window.__ModuleLoader__.load({
|
|
|
2274
2402
|
updatesProblem: "Could not check \"{name}\" for updates: {message}",
|
|
2275
2403
|
convert: "Review and convert",
|
|
2276
2404
|
converting: "Converting…",
|
|
2277
|
-
convertNote: "A character card
|
|
2278
|
-
convertedBefore: "You converted this card before ({names}).
|
|
2405
|
+
convertNote: "A character card can become a new world, or update a world that was imported from an earlier version of the card. A new conversion makes its own world; an update is applied by that world's authoring agent and keeps a recoverable copy of the previous files.",
|
|
2406
|
+
convertedBefore: "You converted this card before ({names}). You can make another world, or update a world that was imported from a card.",
|
|
2279
2407
|
convertFailed: "Could not convert: {message}",
|
|
2280
2408
|
convertNotStartedShort: "The world was made, but the conversion has not started: open its authoring chat and send the import message yourself.",
|
|
2281
2409
|
convertNotStarted: "The world \"{name}\" was made, but the conversion did not start: {failure}. Open its authoring chat to send the import message yourself.",
|
|
@@ -2367,8 +2495,8 @@ window.__ModuleLoader__.load({
|
|
|
2367
2495
|
updatesProblem: "无法检查“{name}”的更新:{message}",
|
|
2368
2496
|
convert: "查看并转换",
|
|
2369
2497
|
converting: "转换中…",
|
|
2370
|
-
convertNote: "
|
|
2371
|
-
convertedBefore: "你以前转换过这张卡({names}
|
|
2498
|
+
convertNote: "角色卡既可以转换为新世界,也可以更新由旧版角色卡导入的世界。新转换会创建独立世界;更新由该世界的创作助手执行,并保留可恢复的旧文件。",
|
|
2499
|
+
convertedBefore: "你以前转换过这张卡({names})。你可以再创建一个世界,也可以更新由角色卡导入的世界。",
|
|
2372
2500
|
convertFailed: "无法转换:{message}",
|
|
2373
2501
|
convertNotStartedShort: "世界已创建,但转换没有开始:请打开它的创作对话,自己发送导入消息。",
|
|
2374
2502
|
convertNotStarted: "世界“{name}”已创建,但转换没有开始:{failure}。请打开它的创作对话,自己发送导入消息。",
|
|
@@ -2933,40 +3061,40 @@ window.__ModuleLoader__.load({
|
|
|
2933
3061
|
}
|
|
2934
3062
|
tag$29.textContent = css$29;
|
|
2935
3063
|
var CharactersPanel_module_css_default = {
|
|
2936
|
-
"head": "rp_5ZMIxq_head",
|
|
2937
|
-
"nameInput": "rp_5ZMIxq_nameInput",
|
|
2938
3064
|
"field": "rp_5ZMIxq_field",
|
|
2939
|
-
"
|
|
2940
|
-
"
|
|
2941
|
-
"
|
|
2942
|
-
"
|
|
2943
|
-
"
|
|
2944
|
-
"
|
|
2945
|
-
"portrait": "rp_5ZMIxq_portrait",
|
|
2946
|
-
"missing": "rp_5ZMIxq_missing",
|
|
2947
|
-
"sheet": "rp_5ZMIxq_sheet",
|
|
3065
|
+
"wide": "rp_5ZMIxq_wide",
|
|
3066
|
+
"help": "rp_5ZMIxq_help",
|
|
3067
|
+
"section": "rp_5ZMIxq_section",
|
|
3068
|
+
"empty": "rp_5ZMIxq_empty",
|
|
3069
|
+
"placeholder": "rp_5ZMIxq_placeholder",
|
|
3070
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
2948
3071
|
"panel": "rp_5ZMIxq_panel",
|
|
3072
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
3073
|
+
"bar": "rp_5ZMIxq_bar",
|
|
3074
|
+
"goal": "rp_5ZMIxq_goal",
|
|
3075
|
+
"tabs": "rp_5ZMIxq_tabs",
|
|
2949
3076
|
"body": "rp_5ZMIxq_body",
|
|
3077
|
+
"area": "rp_5ZMIxq_area",
|
|
3078
|
+
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
2950
3079
|
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
2951
|
-
"
|
|
3080
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
3081
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
2952
3082
|
"initial": "rp_5ZMIxq_initial",
|
|
2953
|
-
"wide": "rp_5ZMIxq_wide",
|
|
2954
|
-
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
2955
|
-
"portraitError": "rp_5ZMIxq_portraitError",
|
|
2956
|
-
"area": "rp_5ZMIxq_area",
|
|
2957
|
-
"tab": "rp_5ZMIxq_tab",
|
|
2958
3083
|
"select": "rp_5ZMIxq_select",
|
|
2959
|
-
"
|
|
2960
|
-
"
|
|
3084
|
+
"row": "rp_5ZMIxq_row",
|
|
3085
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
2961
3086
|
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
2962
|
-
"
|
|
2963
|
-
"
|
|
2964
|
-
"
|
|
2965
|
-
"
|
|
3087
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
3088
|
+
"missing": "rp_5ZMIxq_missing",
|
|
3089
|
+
"tab": "rp_5ZMIxq_tab",
|
|
3090
|
+
"head": "rp_5ZMIxq_head",
|
|
3091
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
3092
|
+
"grid": "rp_5ZMIxq_grid",
|
|
2966
3093
|
"meta": "rp_5ZMIxq_meta",
|
|
2967
|
-
"
|
|
3094
|
+
"barText": "rp_5ZMIxq_barText",
|
|
2968
3095
|
"error": "rp_5ZMIxq_error",
|
|
2969
|
-
"
|
|
3096
|
+
"label": "rp_5ZMIxq_label",
|
|
3097
|
+
"portrait": "rp_5ZMIxq_portrait"
|
|
2970
3098
|
};
|
|
2971
3099
|
//#endregion
|
|
2972
3100
|
//#region src/client/world-editor/EditorTabs.tsx
|
|
@@ -4691,39 +4819,39 @@ window.__ModuleLoader__.load({
|
|
|
4691
4819
|
}
|
|
4692
4820
|
tag$28.textContent = css$28;
|
|
4693
4821
|
var RelationsPanel_module_css_default = {
|
|
4694
|
-
"
|
|
4695
|
-
"form": "rp_7pEHTW_form",
|
|
4822
|
+
"toolbar": "rp_7pEHTW_toolbar",
|
|
4696
4823
|
"node_character": "rp_7pEHTW_node_character",
|
|
4824
|
+
"head": "rp_7pEHTW_head",
|
|
4825
|
+
"notice": "rp_7pEHTW_notice",
|
|
4826
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
4827
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
4828
|
+
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
4829
|
+
"actions": "rp_7pEHTW_actions",
|
|
4830
|
+
"space": "rp_7pEHTW_space",
|
|
4831
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
4832
|
+
"error": "rp_7pEHTW_error",
|
|
4833
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
4834
|
+
"check": "rp_7pEHTW_check",
|
|
4697
4835
|
"node_faction": "rp_7pEHTW_node_faction",
|
|
4698
|
-
"panel": "rp_7pEHTW_panel",
|
|
4699
4836
|
"node": "rp_7pEHTW_node",
|
|
4700
|
-
"workspace": "rp_7pEHTW_workspace",
|
|
4701
4837
|
"filter": "rp_7pEHTW_filter",
|
|
4702
|
-
"
|
|
4703
|
-
"perspective": "rp_7pEHTW_perspective",
|
|
4704
|
-
"notice": "rp_7pEHTW_notice",
|
|
4838
|
+
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
4705
4839
|
"wide": "rp_7pEHTW_wide",
|
|
4706
|
-
"
|
|
4707
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
4708
|
-
"edge": "rp_7pEHTW_edge",
|
|
4840
|
+
"panel": "rp_7pEHTW_panel",
|
|
4709
4841
|
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
4710
4842
|
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
4711
|
-
"
|
|
4712
|
-
"node_location": "rp_7pEHTW_node_location",
|
|
4713
|
-
"toolbar": "rp_7pEHTW_toolbar",
|
|
4714
|
-
"list": "rp_7pEHTW_list",
|
|
4715
|
-
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
4716
|
-
"actions": "rp_7pEHTW_actions",
|
|
4717
|
-
"status": "rp_7pEHTW_status",
|
|
4718
|
-
"inspector": "rp_7pEHTW_inspector",
|
|
4843
|
+
"form": "rp_7pEHTW_form",
|
|
4719
4844
|
"metrics": "rp_7pEHTW_metrics",
|
|
4845
|
+
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
4846
|
+
"filterOn": "rp_7pEHTW_filterOn",
|
|
4720
4847
|
"empty": "rp_7pEHTW_empty",
|
|
4721
4848
|
"graph": "rp_7pEHTW_graph",
|
|
4722
|
-
"
|
|
4849
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
4850
|
+
"perspective": "rp_7pEHTW_perspective",
|
|
4851
|
+
"list": "rp_7pEHTW_list",
|
|
4852
|
+
"edge": "rp_7pEHTW_edge",
|
|
4723
4853
|
"entities": "rp_7pEHTW_entities",
|
|
4724
|
-
"
|
|
4725
|
-
"check": "rp_7pEHTW_check",
|
|
4726
|
-
"edgeKind": "rp_7pEHTW_edgeKind"
|
|
4854
|
+
"status": "rp_7pEHTW_status"
|
|
4727
4855
|
};
|
|
4728
4856
|
//#endregion
|
|
4729
4857
|
//#region src/client/world-editor/RelationsPanel.tsx
|
|
@@ -6098,12 +6226,12 @@ window.__ModuleLoader__.load({
|
|
|
6098
6226
|
}
|
|
6099
6227
|
tag$27.textContent = css$27;
|
|
6100
6228
|
var PackFrame_module_css_default = {
|
|
6101
|
-
"frame": "rp_h_sbFq_frame",
|
|
6102
|
-
"problems": "rp_h_sbFq_problems",
|
|
6103
6229
|
"hud": "rp_h_sbFq_hud",
|
|
6104
|
-
"
|
|
6230
|
+
"problems": "rp_h_sbFq_problems",
|
|
6231
|
+
"frame": "rp_h_sbFq_frame",
|
|
6105
6232
|
"tab": "rp_h_sbFq_tab",
|
|
6106
|
-
"fill": "rp_h_sbFq_fill"
|
|
6233
|
+
"fill": "rp_h_sbFq_fill",
|
|
6234
|
+
"message": "rp_h_sbFq_message"
|
|
6107
6235
|
};
|
|
6108
6236
|
//#endregion
|
|
6109
6237
|
//#region src/client/widgets/pack-frame/theme.ts
|
|
@@ -6366,13 +6494,13 @@ window.__ModuleLoader__.load({
|
|
|
6366
6494
|
}
|
|
6367
6495
|
tag$26.textContent = css$26;
|
|
6368
6496
|
var PacksPanel_module_css_default = {
|
|
6369
|
-
"files": "rp_FLaP7q_files",
|
|
6370
6497
|
"stageTall": "rp_FLaP7q_stageTall",
|
|
6371
|
-
"
|
|
6372
|
-
"stage": "rp_FLaP7q_stage",
|
|
6373
|
-
"controls": "rp_FLaP7q_controls",
|
|
6498
|
+
"log": "rp_FLaP7q_log",
|
|
6374
6499
|
"group": "rp_FLaP7q_group",
|
|
6375
|
-
"
|
|
6500
|
+
"files": "rp_FLaP7q_files",
|
|
6501
|
+
"controls": "rp_FLaP7q_controls",
|
|
6502
|
+
"note": "rp_FLaP7q_note",
|
|
6503
|
+
"stage": "rp_FLaP7q_stage"
|
|
6376
6504
|
};
|
|
6377
6505
|
//#endregion
|
|
6378
6506
|
//#region src/client/world-editor/PacksPanel.tsx
|
|
@@ -7473,12 +7601,12 @@ window.__ModuleLoader__.load({
|
|
|
7473
7601
|
}
|
|
7474
7602
|
tag$25.textContent = css$25;
|
|
7475
7603
|
var SamplingFields_module_css_default = {
|
|
7476
|
-
"
|
|
7604
|
+
"root": "rp_9vxYSG_root",
|
|
7477
7605
|
"label": "rp_9vxYSG_label",
|
|
7478
|
-
"grid": "rp_9vxYSG_grid",
|
|
7479
7606
|
"input": "rp_9vxYSG_input",
|
|
7480
|
-
"
|
|
7481
|
-
"
|
|
7607
|
+
"grid": "rp_9vxYSG_grid",
|
|
7608
|
+
"field": "rp_9vxYSG_field",
|
|
7609
|
+
"help": "rp_9vxYSG_help"
|
|
7482
7610
|
};
|
|
7483
7611
|
//#endregion
|
|
7484
7612
|
//#region src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
@@ -8895,17 +9023,17 @@ window.__ModuleLoader__.load({
|
|
|
8895
9023
|
}
|
|
8896
9024
|
tag$24.textContent = css$24;
|
|
8897
9025
|
var ToolSwitches_module_css_default = {
|
|
9026
|
+
"error": "rp_CjoFLq_error",
|
|
9027
|
+
"root": "rp_CjoFLq_root",
|
|
9028
|
+
"agent": "rp_CjoFLq_agent",
|
|
8898
9029
|
"default": "rp_CjoFLq_default",
|
|
8899
9030
|
"external": "rp_CjoFLq_external",
|
|
8900
|
-
"
|
|
8901
|
-
"agent": "rp_CjoFLq_agent",
|
|
8902
|
-
"root": "rp_CjoFLq_root",
|
|
9031
|
+
"tool": "rp_CjoFLq_tool",
|
|
8903
9032
|
"toolText": "rp_CjoFLq_toolText",
|
|
9033
|
+
"help": "rp_CjoFLq_help",
|
|
8904
9034
|
"title": "rp_CjoFLq_title",
|
|
8905
|
-
"agentName": "rp_CjoFLq_agentName",
|
|
8906
9035
|
"hint": "rp_CjoFLq_hint",
|
|
8907
|
-
"
|
|
8908
|
-
"error": "rp_CjoFLq_error"
|
|
9036
|
+
"agentName": "rp_CjoFLq_agentName"
|
|
8909
9037
|
};
|
|
8910
9038
|
//#endregion
|
|
8911
9039
|
//#region src/client/widgets/tool-switches/ToolSwitches.tsx
|
|
@@ -9916,35 +10044,35 @@ window.__ModuleLoader__.load({
|
|
|
9916
10044
|
}
|
|
9917
10045
|
tag$23.textContent = css$23;
|
|
9918
10046
|
var GalleryView_module_css_default = {
|
|
9919
|
-
"select": "rp_9pSHmG_select",
|
|
9920
10047
|
"message": "rp_9pSHmG_message",
|
|
9921
10048
|
"facts": "rp_9pSHmG_facts",
|
|
9922
|
-
"
|
|
10049
|
+
"editField": "rp_9pSHmG_editField",
|
|
9923
10050
|
"image": "rp_9pSHmG_image",
|
|
9924
|
-
"
|
|
9925
|
-
"
|
|
9926
|
-
"editHelp": "rp_9pSHmG_editHelp",
|
|
9927
|
-
"editLabel": "rp_9pSHmG_editLabel",
|
|
9928
|
-
"editButton": "rp_9pSHmG_editButton",
|
|
9929
|
-
"grid": "rp_9pSHmG_grid",
|
|
9930
|
-
"large": "rp_9pSHmG_large",
|
|
9931
|
-
"statusError": "rp_9pSHmG_statusError",
|
|
10051
|
+
"tags": "rp_9pSHmG_tags",
|
|
10052
|
+
"select": "rp_9pSHmG_select",
|
|
9932
10053
|
"status": "rp_9pSHmG_status",
|
|
9933
|
-
"editArea": "rp_9pSHmG_editArea",
|
|
9934
|
-
"cell": "rp_9pSHmG_cell",
|
|
9935
10054
|
"editInput": "rp_9pSHmG_editInput",
|
|
9936
|
-
"
|
|
9937
|
-
"open": "rp_9pSHmG_open",
|
|
9938
|
-
"error": "rp_9pSHmG_error",
|
|
9939
|
-
"actions": "rp_9pSHmG_actions",
|
|
10055
|
+
"large": "rp_9pSHmG_large",
|
|
9940
10056
|
"edit": "rp_9pSHmG_edit",
|
|
9941
|
-
"
|
|
10057
|
+
"detail": "rp_9pSHmG_detail",
|
|
9942
10058
|
"note": "rp_9pSHmG_note",
|
|
9943
|
-
"
|
|
9944
|
-
"editField": "rp_9pSHmG_editField",
|
|
10059
|
+
"cell": "rp_9pSHmG_cell",
|
|
9945
10060
|
"thumb": "rp_9pSHmG_thumb",
|
|
9946
|
-
"
|
|
9947
|
-
"
|
|
10061
|
+
"actions": "rp_9pSHmG_actions",
|
|
10062
|
+
"error": "rp_9pSHmG_error",
|
|
10063
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
10064
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
10065
|
+
"editArea": "rp_9pSHmG_editArea",
|
|
10066
|
+
"count": "rp_9pSHmG_count",
|
|
10067
|
+
"caption": "rp_9pSHmG_caption",
|
|
10068
|
+
"pre": "rp_9pSHmG_pre",
|
|
10069
|
+
"editHelp": "rp_9pSHmG_editHelp",
|
|
10070
|
+
"grid": "rp_9pSHmG_grid",
|
|
10071
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
10072
|
+
"page": "rp_9pSHmG_page",
|
|
10073
|
+
"open": "rp_9pSHmG_open",
|
|
10074
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
10075
|
+
"reusable": "rp_9pSHmG_reusable"
|
|
9948
10076
|
};
|
|
9949
10077
|
//#endregion
|
|
9950
10078
|
//#region src/client/widgets/gallery-view/GalleryView.tsx
|
|
@@ -10285,12 +10413,12 @@ window.__ModuleLoader__.load({
|
|
|
10285
10413
|
}
|
|
10286
10414
|
tag$22.textContent = css$22;
|
|
10287
10415
|
var WorldEditor_module_css_default = {
|
|
10288
|
-
"warning": "rp__swA3a_warning",
|
|
10289
10416
|
"drawerItem": "rp__swA3a_drawerItem",
|
|
10290
|
-
"drawer": "rp__swA3a_drawer",
|
|
10291
|
-
"view": "rp__swA3a_view",
|
|
10292
10417
|
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
10293
10418
|
"content": "rp__swA3a_content",
|
|
10419
|
+
"drawer": "rp__swA3a_drawer",
|
|
10420
|
+
"warning": "rp__swA3a_warning",
|
|
10421
|
+
"view": "rp__swA3a_view",
|
|
10294
10422
|
"message": "rp__swA3a_message"
|
|
10295
10423
|
};
|
|
10296
10424
|
//#endregion
|
|
@@ -10687,27 +10815,27 @@ window.__ModuleLoader__.load({
|
|
|
10687
10815
|
}
|
|
10688
10816
|
tag$21.textContent = css$21;
|
|
10689
10817
|
var AvatarsPage_module_css_default = {
|
|
10690
|
-
"
|
|
10691
|
-
"
|
|
10692
|
-
"
|
|
10693
|
-
"
|
|
10694
|
-
"placeholder": "rp_pQOzEG_placeholder",
|
|
10818
|
+
"portrait": "rp_pQOzEG_portrait",
|
|
10819
|
+
"editTitle": "rp_pQOzEG_editTitle",
|
|
10820
|
+
"editBody": "rp_pQOzEG_editBody",
|
|
10821
|
+
"error": "rp_pQOzEG_error",
|
|
10695
10822
|
"name": "rp_pQOzEG_name",
|
|
10696
|
-
"viewport": "rp_pQOzEG_viewport",
|
|
10697
10823
|
"summary": "rp_pQOzEG_summary",
|
|
10698
|
-
"
|
|
10699
|
-
"message": "rp_pQOzEG_message",
|
|
10700
|
-
"portrait": "rp_pQOzEG_portrait",
|
|
10824
|
+
"placeholder": "rp_pQOzEG_placeholder",
|
|
10701
10825
|
"actions": "rp_pQOzEG_actions",
|
|
10826
|
+
"viewport": "rp_pQOzEG_viewport",
|
|
10827
|
+
"toolbar": "rp_pQOzEG_toolbar",
|
|
10828
|
+
"card": "rp_pQOzEG_card",
|
|
10829
|
+
"message": "rp_pQOzEG_message",
|
|
10830
|
+
"page": "rp_pQOzEG_page",
|
|
10702
10831
|
"editHeader": "rp_pQOzEG_editHeader",
|
|
10703
|
-
"
|
|
10832
|
+
"field": "rp_pQOzEG_field",
|
|
10704
10833
|
"label": "rp_pQOzEG_label",
|
|
10834
|
+
"grid": "rp_pQOzEG_grid",
|
|
10835
|
+
"form": "rp_pQOzEG_form",
|
|
10705
10836
|
"count": "rp_pQOzEG_count",
|
|
10706
|
-
"editBody": "rp_pQOzEG_editBody",
|
|
10707
10837
|
"text": "rp_pQOzEG_text",
|
|
10708
|
-
"
|
|
10709
|
-
"form": "rp_pQOzEG_form",
|
|
10710
|
-
"grid": "rp_pQOzEG_grid"
|
|
10838
|
+
"open": "rp_pQOzEG_open"
|
|
10711
10839
|
};
|
|
10712
10840
|
//#endregion
|
|
10713
10841
|
//#region src/client/pages/avatars/AvatarsPage.tsx
|
|
@@ -12153,37 +12281,37 @@ window.__ModuleLoader__.load({
|
|
|
12153
12281
|
}
|
|
12154
12282
|
tag$20.textContent = css$20;
|
|
12155
12283
|
var LorebooksPage_module_css_default = {
|
|
12284
|
+
"actions": "rp_VV-Eha_actions",
|
|
12285
|
+
"title": "rp_VV-Eha_title",
|
|
12156
12286
|
"help": "rp_VV-Eha_help",
|
|
12157
|
-
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
12158
|
-
"row": "rp_VV-Eha_row",
|
|
12159
|
-
"form": "rp_VV-Eha_form",
|
|
12160
12287
|
"field": "rp_VV-Eha_field",
|
|
12161
|
-
"select": "rp_VV-Eha_select",
|
|
12162
|
-
"title": "rp_VV-Eha_title",
|
|
12163
|
-
"ok": "rp_VV-Eha_ok",
|
|
12164
|
-
"cardActions": "rp_VV-Eha_cardActions",
|
|
12165
12288
|
"card": "rp_VV-Eha_card",
|
|
12289
|
+
"error": "rp_VV-Eha_error",
|
|
12290
|
+
"label": "rp_VV-Eha_label",
|
|
12291
|
+
"meta": "rp_VV-Eha_meta",
|
|
12292
|
+
"page": "rp_VV-Eha_page",
|
|
12293
|
+
"head": "rp_VV-Eha_head",
|
|
12294
|
+
"count": "rp_VV-Eha_count",
|
|
12166
12295
|
"viewport": "rp_VV-Eha_viewport",
|
|
12296
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
12167
12297
|
"warning": "rp_VV-Eha_warning",
|
|
12168
|
-
"
|
|
12169
|
-
"entryArea": "rp_VV-Eha_entryArea",
|
|
12170
|
-
"message": "rp_VV-Eha_message",
|
|
12171
|
-
"editBody": "rp_VV-Eha_editBody",
|
|
12172
|
-
"description": "rp_VV-Eha_description",
|
|
12173
|
-
"error": "rp_VV-Eha_error",
|
|
12298
|
+
"section": "rp_VV-Eha_section",
|
|
12174
12299
|
"toolbar": "rp_VV-Eha_toolbar",
|
|
12300
|
+
"editHeader": "rp_VV-Eha_editHeader",
|
|
12301
|
+
"editBody": "rp_VV-Eha_editBody",
|
|
12175
12302
|
"area": "rp_VV-Eha_area",
|
|
12176
|
-
"
|
|
12177
|
-
"section": "rp_VV-Eha_section",
|
|
12303
|
+
"cardActions": "rp_VV-Eha_cardActions",
|
|
12178
12304
|
"input": "rp_VV-Eha_input",
|
|
12179
|
-
"editHeader": "rp_VV-Eha_editHeader",
|
|
12180
|
-
"count": "rp_VV-Eha_count",
|
|
12181
|
-
"editTitle": "rp_VV-Eha_editTitle",
|
|
12182
|
-
"page": "rp_VV-Eha_page",
|
|
12183
|
-
"actions": "rp_VV-Eha_actions",
|
|
12184
|
-
"head": "rp_VV-Eha_head",
|
|
12185
12305
|
"grid": "rp_VV-Eha_grid",
|
|
12186
|
-
"
|
|
12306
|
+
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
12307
|
+
"name": "rp_VV-Eha_name",
|
|
12308
|
+
"row": "rp_VV-Eha_row",
|
|
12309
|
+
"form": "rp_VV-Eha_form",
|
|
12310
|
+
"ok": "rp_VV-Eha_ok",
|
|
12311
|
+
"entryArea": "rp_VV-Eha_entryArea",
|
|
12312
|
+
"message": "rp_VV-Eha_message",
|
|
12313
|
+
"select": "rp_VV-Eha_select",
|
|
12314
|
+
"description": "rp_VV-Eha_description"
|
|
12187
12315
|
};
|
|
12188
12316
|
//#endregion
|
|
12189
12317
|
//#region src/client/pages/lorebooks/LorebookEditor.tsx
|
|
@@ -13227,35 +13355,35 @@ window.__ModuleLoader__.load({
|
|
|
13227
13355
|
}
|
|
13228
13356
|
tag$19.textContent = css$19;
|
|
13229
13357
|
var PresetsPage_module_css_default = {
|
|
13230
|
-
"
|
|
13358
|
+
"grid": "rp_ZK89ba_grid",
|
|
13359
|
+
"actions": "rp_ZK89ba_actions",
|
|
13360
|
+
"name": "rp_ZK89ba_name",
|
|
13361
|
+
"head": "rp_ZK89ba_head",
|
|
13362
|
+
"editHeader": "rp_ZK89ba_editHeader",
|
|
13363
|
+
"label": "rp_ZK89ba_label",
|
|
13364
|
+
"cardActions": "rp_ZK89ba_cardActions",
|
|
13365
|
+
"card": "rp_ZK89ba_card",
|
|
13366
|
+
"title": "rp_ZK89ba_title",
|
|
13231
13367
|
"form": "rp_ZK89ba_form",
|
|
13368
|
+
"section": "rp_ZK89ba_section",
|
|
13369
|
+
"field": "rp_ZK89ba_field",
|
|
13370
|
+
"warning": "rp_ZK89ba_warning",
|
|
13371
|
+
"count": "rp_ZK89ba_count",
|
|
13232
13372
|
"row": "rp_ZK89ba_row",
|
|
13233
|
-
"
|
|
13234
|
-
"ok": "rp_ZK89ba_ok",
|
|
13373
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
13235
13374
|
"page": "rp_ZK89ba_page",
|
|
13236
|
-
"
|
|
13237
|
-
"label": "rp_ZK89ba_label",
|
|
13238
|
-
"description": "rp_ZK89ba_description",
|
|
13239
|
-
"error": "rp_ZK89ba_error",
|
|
13240
|
-
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
13375
|
+
"area": "rp_ZK89ba_area",
|
|
13241
13376
|
"message": "rp_ZK89ba_message",
|
|
13242
|
-
"help": "rp_ZK89ba_help",
|
|
13243
|
-
"card": "rp_ZK89ba_card",
|
|
13244
|
-
"count": "rp_ZK89ba_count",
|
|
13245
13377
|
"viewport": "rp_ZK89ba_viewport",
|
|
13378
|
+
"error": "rp_ZK89ba_error",
|
|
13379
|
+
"help": "rp_ZK89ba_help",
|
|
13246
13380
|
"meta": "rp_ZK89ba_meta",
|
|
13381
|
+
"editTitle": "rp_ZK89ba_editTitle",
|
|
13382
|
+
"ok": "rp_ZK89ba_ok",
|
|
13247
13383
|
"editBody": "rp_ZK89ba_editBody",
|
|
13248
|
-
"editHeader": "rp_ZK89ba_editHeader",
|
|
13249
|
-
"toolbar": "rp_ZK89ba_toolbar",
|
|
13250
|
-
"name": "rp_ZK89ba_name",
|
|
13251
|
-
"actions": "rp_ZK89ba_actions",
|
|
13252
|
-
"field": "rp_ZK89ba_field",
|
|
13253
|
-
"area": "rp_ZK89ba_area",
|
|
13254
|
-
"head": "rp_ZK89ba_head",
|
|
13255
|
-
"grid": "rp_ZK89ba_grid",
|
|
13256
|
-
"section": "rp_ZK89ba_section",
|
|
13257
13384
|
"input": "rp_ZK89ba_input",
|
|
13258
|
-
"
|
|
13385
|
+
"description": "rp_ZK89ba_description",
|
|
13386
|
+
"sectionTitle": "rp_ZK89ba_sectionTitle"
|
|
13259
13387
|
};
|
|
13260
13388
|
//#endregion
|
|
13261
13389
|
//#region src/client/pages/presets/PresetEditor.tsx
|
|
@@ -14392,11 +14520,11 @@ window.__ModuleLoader__.load({
|
|
|
14392
14520
|
}
|
|
14393
14521
|
tag$16.textContent = css$16;
|
|
14394
14522
|
var DeleteSessionDialog_module_css_default = {
|
|
14395
|
-
"
|
|
14523
|
+
"question": "rp_FifHrW_question",
|
|
14396
14524
|
"body": "rp_FifHrW_body",
|
|
14397
14525
|
"choice": "rp_FifHrW_choice",
|
|
14398
|
-
"
|
|
14399
|
-
"
|
|
14526
|
+
"error": "rp_FifHrW_error",
|
|
14527
|
+
"warning": "rp_FifHrW_warning"
|
|
14400
14528
|
};
|
|
14401
14529
|
//#endregion
|
|
14402
14530
|
//#region src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
@@ -14534,28 +14662,28 @@ window.__ModuleLoader__.load({
|
|
|
14534
14662
|
}
|
|
14535
14663
|
tag$15.textContent = css$15;
|
|
14536
14664
|
var SessionsPage_module_css_default = {
|
|
14665
|
+
"spinning": "rp_24z4eW_spinning",
|
|
14666
|
+
"toolbar": "rp_24z4eW_toolbar",
|
|
14667
|
+
"spin": "rp_24z4eW_spin",
|
|
14668
|
+
"count": "rp_24z4eW_count",
|
|
14537
14669
|
"worldColumn": "rp_24z4eW_worldColumn",
|
|
14670
|
+
"viewport": "rp_24z4eW_viewport",
|
|
14538
14671
|
"page": "rp_24z4eW_page",
|
|
14539
|
-
"
|
|
14540
|
-
"
|
|
14541
|
-
"archived": "rp_24z4eW_archived",
|
|
14672
|
+
"secondary": "rp_24z4eW_secondary",
|
|
14673
|
+
"number": "rp_24z4eW_number",
|
|
14542
14674
|
"actions": "rp_24z4eW_actions",
|
|
14543
14675
|
"badge": "rp_24z4eW_badge",
|
|
14544
|
-
"
|
|
14545
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
14546
|
-
"spin": "rp_24z4eW_spin",
|
|
14676
|
+
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
14547
14677
|
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
14548
|
-
"
|
|
14549
|
-
"toolbar": "rp_24z4eW_toolbar",
|
|
14550
|
-
"message": "rp_24z4eW_message",
|
|
14678
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
14551
14679
|
"table": "rp_24z4eW_table",
|
|
14552
|
-
"
|
|
14553
|
-
"count": "rp_24z4eW_count",
|
|
14554
|
-
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
14555
|
-
"spinning": "rp_24z4eW_spinning",
|
|
14680
|
+
"message": "rp_24z4eW_message",
|
|
14556
14681
|
"name": "rp_24z4eW_name",
|
|
14557
|
-
"
|
|
14558
|
-
"fits": "rp_24z4eW_fits"
|
|
14682
|
+
"nameColumn": "rp_24z4eW_nameColumn",
|
|
14683
|
+
"fits": "rp_24z4eW_fits",
|
|
14684
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
14685
|
+
"archived": "rp_24z4eW_archived",
|
|
14686
|
+
"notice": "rp_24z4eW_notice"
|
|
14559
14687
|
};
|
|
14560
14688
|
//#endregion
|
|
14561
14689
|
//#region src/client/pages/sessions/SessionsPage.tsx
|
|
@@ -15174,21 +15302,21 @@ window.__ModuleLoader__.load({
|
|
|
15174
15302
|
}
|
|
15175
15303
|
tag$14.textContent = css$14;
|
|
15176
15304
|
var SyncPage_module_css_default = {
|
|
15305
|
+
"meta": "rp_Gk-byG_meta",
|
|
15177
15306
|
"choices": "rp_Gk-byG_choices",
|
|
15178
|
-
"conflict": "rp_Gk-byG_conflict",
|
|
15179
|
-
"message": "rp_Gk-byG_message",
|
|
15180
|
-
"confirmation": "rp_Gk-byG_confirmation",
|
|
15181
|
-
"toolbar": "rp_Gk-byG_toolbar",
|
|
15182
15307
|
"unit": "rp_Gk-byG_unit",
|
|
15183
|
-
"viewport": "rp_Gk-byG_viewport",
|
|
15184
15308
|
"detail": "rp_Gk-byG_detail",
|
|
15185
|
-
"
|
|
15186
|
-
"actions": "rp_Gk-byG_actions",
|
|
15187
|
-
"table": "rp_Gk-byG_table",
|
|
15188
|
-
"page": "rp_Gk-byG_page",
|
|
15309
|
+
"problem": "rp_Gk-byG_problem",
|
|
15189
15310
|
"error": "rp_Gk-byG_error",
|
|
15311
|
+
"table": "rp_Gk-byG_table",
|
|
15312
|
+
"message": "rp_Gk-byG_message",
|
|
15190
15313
|
"failed": "rp_Gk-byG_failed",
|
|
15191
|
-
"
|
|
15314
|
+
"conflict": "rp_Gk-byG_conflict",
|
|
15315
|
+
"confirmation": "rp_Gk-byG_confirmation",
|
|
15316
|
+
"page": "rp_Gk-byG_page",
|
|
15317
|
+
"viewport": "rp_Gk-byG_viewport",
|
|
15318
|
+
"actions": "rp_Gk-byG_actions",
|
|
15319
|
+
"toolbar": "rp_Gk-byG_toolbar"
|
|
15192
15320
|
};
|
|
15193
15321
|
//#endregion
|
|
15194
15322
|
//#region src/client/pages/sync/SyncPage.tsx
|
|
@@ -15668,16 +15796,16 @@ window.__ModuleLoader__.load({
|
|
|
15668
15796
|
}
|
|
15669
15797
|
tag$13.textContent = css$13;
|
|
15670
15798
|
var WorldCard_module_css_default = {
|
|
15671
|
-
"name": "rp_Bvxx5q_name",
|
|
15672
|
-
"play": "rp_Bvxx5q_play",
|
|
15673
15799
|
"image": "rp_Bvxx5q_image",
|
|
15674
|
-
"card": "rp_Bvxx5q_card",
|
|
15675
|
-
"openButton": "rp_Bvxx5q_openButton",
|
|
15676
15800
|
"info": "rp_Bvxx5q_info",
|
|
15677
|
-
"cover": "rp_Bvxx5q_cover",
|
|
15678
15801
|
"tags": "rp_Bvxx5q_tags",
|
|
15679
|
-
"
|
|
15680
|
-
"
|
|
15802
|
+
"tag": "rp_Bvxx5q_tag",
|
|
15803
|
+
"name": "rp_Bvxx5q_name",
|
|
15804
|
+
"cover": "rp_Bvxx5q_cover",
|
|
15805
|
+
"openButton": "rp_Bvxx5q_openButton",
|
|
15806
|
+
"play": "rp_Bvxx5q_play",
|
|
15807
|
+
"card": "rp_Bvxx5q_card",
|
|
15808
|
+
"placeholder": "rp_Bvxx5q_placeholder"
|
|
15681
15809
|
};
|
|
15682
15810
|
//#endregion
|
|
15683
15811
|
//#region src/client/widgets/world-card/WorldCard.tsx
|
|
@@ -15773,8 +15901,8 @@ window.__ModuleLoader__.load({
|
|
|
15773
15901
|
var AvatarChoices_module_css_default = {
|
|
15774
15902
|
"option": "rp_YCstOG_option",
|
|
15775
15903
|
"text": "rp_YCstOG_text",
|
|
15776
|
-
"
|
|
15777
|
-
"
|
|
15904
|
+
"summary": "rp_YCstOG_summary",
|
|
15905
|
+
"name": "rp_YCstOG_name"
|
|
15778
15906
|
};
|
|
15779
15907
|
//#endregion
|
|
15780
15908
|
//#region src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
@@ -15814,18 +15942,18 @@ window.__ModuleLoader__.load({
|
|
|
15814
15942
|
}
|
|
15815
15943
|
tag$11.textContent = css$11;
|
|
15816
15944
|
var StartSessionDialog_module_css_default = {
|
|
15817
|
-
"
|
|
15818
|
-
"option": "rp_AnbLKG_option",
|
|
15819
|
-
"label": "rp_AnbLKG_label",
|
|
15820
|
-
"error": "rp_AnbLKG_error",
|
|
15821
|
-
"advanced": "rp_AnbLKG_advanced",
|
|
15822
|
-
"optionName": "rp_AnbLKG_optionName",
|
|
15823
|
-
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
15945
|
+
"form": "rp_AnbLKG_form",
|
|
15824
15946
|
"optionText": "rp_AnbLKG_optionText",
|
|
15825
15947
|
"field": "rp_AnbLKG_field",
|
|
15826
|
-
"
|
|
15948
|
+
"optionName": "rp_AnbLKG_optionName",
|
|
15949
|
+
"message": "rp_AnbLKG_message",
|
|
15950
|
+
"advanced": "rp_AnbLKG_advanced",
|
|
15951
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
15827
15952
|
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
15828
|
-
"
|
|
15953
|
+
"option": "rp_AnbLKG_option",
|
|
15954
|
+
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
15955
|
+
"label": "rp_AnbLKG_label",
|
|
15956
|
+
"error": "rp_AnbLKG_error"
|
|
15829
15957
|
};
|
|
15830
15958
|
//#endregion
|
|
15831
15959
|
//#region src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
@@ -16989,14 +17117,14 @@ window.__ModuleLoader__.load({
|
|
|
16989
17117
|
}
|
|
16990
17118
|
tag$10.textContent = css$10;
|
|
16991
17119
|
var SettingsFields_module_css_default = {
|
|
17120
|
+
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
17121
|
+
"row": "rp_Rhi3yq_row",
|
|
17122
|
+
"group": "rp_Rhi3yq_group",
|
|
16992
17123
|
"label": "rp_Rhi3yq_label",
|
|
16993
|
-
"area": "rp_Rhi3yq_area",
|
|
16994
|
-
"field": "rp_Rhi3yq_field",
|
|
16995
17124
|
"help": "rp_Rhi3yq_help",
|
|
16996
17125
|
"error": "rp_Rhi3yq_error",
|
|
16997
|
-
"
|
|
16998
|
-
"
|
|
16999
|
-
"groupTitle": "rp_Rhi3yq_groupTitle"
|
|
17126
|
+
"area": "rp_Rhi3yq_area",
|
|
17127
|
+
"field": "rp_Rhi3yq_field"
|
|
17000
17128
|
};
|
|
17001
17129
|
//#endregion
|
|
17002
17130
|
//#region src/client/settings-form/SettingsFields.tsx
|
|
@@ -17195,14 +17323,15 @@ window.__ModuleLoader__.load({
|
|
|
17195
17323
|
body: file
|
|
17196
17324
|
}));
|
|
17197
17325
|
}
|
|
17198
|
-
async function startImport(id, choices, language) {
|
|
17326
|
+
async function startImport(id, choices, language, update) {
|
|
17199
17327
|
return await answer$1(await fetch(`${API_PREFIX}/worlds/import/start?id=${encodeURIComponent(id)}`, {
|
|
17200
17328
|
method: "POST",
|
|
17201
17329
|
credentials: "same-origin",
|
|
17202
17330
|
headers: { "content-type": "application/json" },
|
|
17203
17331
|
body: JSON.stringify({
|
|
17204
17332
|
...choices,
|
|
17205
|
-
language
|
|
17333
|
+
language,
|
|
17334
|
+
...update === void 0 ? {} : { update }
|
|
17206
17335
|
})
|
|
17207
17336
|
}));
|
|
17208
17337
|
}
|
|
@@ -17212,6 +17341,17 @@ window.__ModuleLoader__.load({
|
|
|
17212
17341
|
credentials: "same-origin"
|
|
17213
17342
|
});
|
|
17214
17343
|
}
|
|
17344
|
+
/** Whether a world can be updated from a newer card, and whether its last update can be undone. */
|
|
17345
|
+
async function updateStatus(worldId) {
|
|
17346
|
+
return await answer$1(await fetch(`${API_PREFIX}/worlds/import/update?id=${encodeURIComponent(worldId)}`, { credentials: "same-origin" }));
|
|
17347
|
+
}
|
|
17348
|
+
/** Returns a world to what it was before its last card update; the answer says where what it held is kept. */
|
|
17349
|
+
async function revertUpdate(worldId) {
|
|
17350
|
+
return await answer$1(await fetch(`${API_PREFIX}/worlds/import/update?id=${encodeURIComponent(worldId)}`, {
|
|
17351
|
+
method: "DELETE",
|
|
17352
|
+
credentials: "same-origin"
|
|
17353
|
+
}));
|
|
17354
|
+
}
|
|
17215
17355
|
//#endregion
|
|
17216
17356
|
//#region src/client/pages/worlds/translate-api.ts
|
|
17217
17357
|
/** The language a world is written in, or nothing when it has too little text to tell. */
|
|
@@ -17250,9 +17390,9 @@ window.__ModuleLoader__.load({
|
|
|
17250
17390
|
}
|
|
17251
17391
|
tag$9.textContent = css$9;
|
|
17252
17392
|
var TranslateBanner_module_css_default = {
|
|
17253
|
-
"
|
|
17393
|
+
"error": "rp_Lx8vJa_error",
|
|
17254
17394
|
"text": "rp_Lx8vJa_text",
|
|
17255
|
-
"
|
|
17395
|
+
"banner": "rp_Lx8vJa_banner"
|
|
17256
17396
|
};
|
|
17257
17397
|
//#endregion
|
|
17258
17398
|
//#region src/client/pages/worlds/TranslateBanner.tsx
|
|
@@ -17843,25 +17983,25 @@ window.__ModuleLoader__.load({
|
|
|
17843
17983
|
}
|
|
17844
17984
|
tag$8.textContent = css$8;
|
|
17845
17985
|
var WorldsPage_module_css_default = {
|
|
17986
|
+
"count": "rp_FHUyRq_count",
|
|
17987
|
+
"message": "rp_FHUyRq_message",
|
|
17988
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
17846
17989
|
"editBody": "rp_FHUyRq_editBody",
|
|
17847
|
-
"spin": "rp_FHUyRq_spin",
|
|
17848
17990
|
"cell": "rp_FHUyRq_cell",
|
|
17991
|
+
"page": "rp_FHUyRq_page",
|
|
17992
|
+
"spin": "rp_FHUyRq_spin",
|
|
17993
|
+
"fits": "rp_FHUyRq_fits",
|
|
17994
|
+
"grid": "rp_FHUyRq_grid",
|
|
17849
17995
|
"toolbar": "rp_FHUyRq_toolbar",
|
|
17996
|
+
"editHeader": "rp_FHUyRq_editHeader",
|
|
17997
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
17850
17998
|
"scrolls": "rp_FHUyRq_scrolls",
|
|
17999
|
+
"authorButton": "rp_FHUyRq_authorButton",
|
|
17851
18000
|
"editTitle": "rp_FHUyRq_editTitle",
|
|
17852
18001
|
"starter": "rp_FHUyRq_starter",
|
|
17853
|
-
"count": "rp_FHUyRq_count",
|
|
17854
|
-
"page": "rp_FHUyRq_page",
|
|
17855
|
-
"grid": "rp_FHUyRq_grid",
|
|
17856
|
-
"fits": "rp_FHUyRq_fits",
|
|
17857
18002
|
"viewport": "rp_FHUyRq_viewport",
|
|
17858
|
-
"authorButton": "rp_FHUyRq_authorButton",
|
|
17859
18003
|
"notice": "rp_FHUyRq_notice",
|
|
17860
|
-
"
|
|
17861
|
-
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
17862
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
17863
|
-
"starters": "rp_FHUyRq_starters",
|
|
17864
|
-
"message": "rp_FHUyRq_message"
|
|
18004
|
+
"starters": "rp_FHUyRq_starters"
|
|
17865
18005
|
};
|
|
17866
18006
|
//#endregion
|
|
17867
18007
|
//#region src/client/pages/worlds/StarterWorlds.tsx
|
|
@@ -17919,6 +18059,46 @@ window.__ModuleLoader__.load({
|
|
|
17919
18059
|
});
|
|
17920
18060
|
}
|
|
17921
18061
|
//#endregion
|
|
18062
|
+
//#region src/client/pages/worlds/RevertUpdateDialog.tsx
|
|
18063
|
+
/** Asks before a world goes back to how it was before its last card update. */
|
|
18064
|
+
function RevertUpdateDialog({ t, revert, onDone, onClose }) {
|
|
18065
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
18066
|
+
const [error, setError] = (0, react.useState)();
|
|
18067
|
+
const confirm = () => {
|
|
18068
|
+
setBusy(true);
|
|
18069
|
+
setError(void 0);
|
|
18070
|
+
revert().then((done) => {
|
|
18071
|
+
onDone(done.keptIn);
|
|
18072
|
+
}, (failure) => {
|
|
18073
|
+
setBusy(false);
|
|
18074
|
+
setError(t("revertFailed", { message: failure instanceof Error ? failure.message : String(failure) }));
|
|
18075
|
+
});
|
|
18076
|
+
};
|
|
18077
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
18078
|
+
open: true,
|
|
18079
|
+
onClose,
|
|
18080
|
+
title: t("revertTitle"),
|
|
18081
|
+
description: t("revertHelp"),
|
|
18082
|
+
closeLabel: t("close"),
|
|
18083
|
+
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
18084
|
+
variant: "ghost",
|
|
18085
|
+
disabled: busy,
|
|
18086
|
+
onClick: onClose,
|
|
18087
|
+
children: t("cancel")
|
|
18088
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
18089
|
+
variant: "primary",
|
|
18090
|
+
disabled: busy,
|
|
18091
|
+
onClick: confirm,
|
|
18092
|
+
children: busy ? t("reverting") : t("revertConfirm")
|
|
18093
|
+
})] }),
|
|
18094
|
+
children: error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
18095
|
+
className: StartSessionDialog_module_css_default.error,
|
|
18096
|
+
role: "alert",
|
|
18097
|
+
children: error
|
|
18098
|
+
})
|
|
18099
|
+
});
|
|
18100
|
+
}
|
|
18101
|
+
//#endregion
|
|
17922
18102
|
//#region src/client/pages/worlds/WorldsPage.tsx
|
|
17923
18103
|
/** The worlds, one page of cards at a time. */
|
|
17924
18104
|
function WorldsPage({ t, useWorlds, load, refresh, openStartDialog, closeStartDialog, startSession, dismissStarted, openAuthoring, openChat }) {
|
|
@@ -17931,6 +18111,11 @@ window.__ModuleLoader__.load({
|
|
|
17931
18111
|
const [addingAvatars, setAddingAvatars] = (0, react.useState)(false);
|
|
17932
18112
|
const [editorVersion, setEditorVersion] = (0, react.useState)(0);
|
|
17933
18113
|
const [importing, setImporting] = (0, react.useState)();
|
|
18114
|
+
const [updating, setUpdating] = (0, react.useState)();
|
|
18115
|
+
const [cardStatus, setCardStatus] = (0, react.useState)();
|
|
18116
|
+
const [reverting, setReverting] = (0, react.useState)(false);
|
|
18117
|
+
const updatePicker = (0, react.useRef)(null);
|
|
18118
|
+
const [updateBusy, setUpdateBusy] = (0, react.useState)(false);
|
|
17934
18119
|
const [uploading, setUploading] = (0, react.useState)(false);
|
|
17935
18120
|
const [importNotice, setImportNotice] = (0, react.useState)();
|
|
17936
18121
|
const picker = (0, react.useRef)(null);
|
|
@@ -17942,6 +18127,21 @@ window.__ModuleLoader__.load({
|
|
|
17942
18127
|
(0, react.useEffect)(() => {
|
|
17943
18128
|
load();
|
|
17944
18129
|
}, [load]);
|
|
18130
|
+
(0, react.useEffect)(() => {
|
|
18131
|
+
setCardStatus(void 0);
|
|
18132
|
+
if (editing === void 0) return;
|
|
18133
|
+
let current = true;
|
|
18134
|
+
updateStatus(editing.id).then((status) => {
|
|
18135
|
+
if (current) setCardStatus(status);
|
|
18136
|
+
}, () => void 0);
|
|
18137
|
+
return () => {
|
|
18138
|
+
current = false;
|
|
18139
|
+
};
|
|
18140
|
+
}, [
|
|
18141
|
+
editing?.id,
|
|
18142
|
+
editorVersion,
|
|
18143
|
+
importing === void 0
|
|
18144
|
+
]);
|
|
17945
18145
|
const worlds = state.payload?.worlds ?? [];
|
|
17946
18146
|
const start = pageStart(requestedStart, worlds.length, pageSize);
|
|
17947
18147
|
const pages = pageCount(worlds.length, pageSize);
|
|
@@ -17963,6 +18163,24 @@ window.__ModuleLoader__.load({
|
|
|
17963
18163
|
setImportNotice(t("importUploadFailed", { message: failure instanceof Error ? failure.message : String(failure) }));
|
|
17964
18164
|
});
|
|
17965
18165
|
};
|
|
18166
|
+
const chooseUpdateCard = (world, file) => {
|
|
18167
|
+
if (file === void 0) return;
|
|
18168
|
+
setUpdateBusy(true);
|
|
18169
|
+
setPresetNotice(void 0);
|
|
18170
|
+
uploadCard(file).then((preview) => {
|
|
18171
|
+
setUpdateBusy(false);
|
|
18172
|
+
if (preview.targets?.some((target) => target.worldId === world) !== true) {
|
|
18173
|
+
discardImport(preview.id);
|
|
18174
|
+
setPresetNotice(t("updateNotFromCard"));
|
|
18175
|
+
return;
|
|
18176
|
+
}
|
|
18177
|
+
setUpdating(world);
|
|
18178
|
+
setImporting(preview);
|
|
18179
|
+
}, (failure) => {
|
|
18180
|
+
setUpdateBusy(false);
|
|
18181
|
+
setPresetNotice(t("importUploadFailed", { message: failure instanceof Error ? failure.message : String(failure) }));
|
|
18182
|
+
});
|
|
18183
|
+
};
|
|
17966
18184
|
const choosePreset = (world, file) => {
|
|
17967
18185
|
if (file === void 0) return;
|
|
17968
18186
|
setPresetBusy(true);
|
|
@@ -17984,13 +18202,16 @@ window.__ModuleLoader__.load({
|
|
|
17984
18202
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImportCard, {
|
|
17985
18203
|
t,
|
|
17986
18204
|
preview: importing,
|
|
17987
|
-
|
|
18205
|
+
...updating === void 0 ? {} : { initialUpdate: updating },
|
|
18206
|
+
start: (choices, update) => startImport(importing.id, choices, t("language"), update),
|
|
17988
18207
|
discard: () => discardImport(importing.id),
|
|
17989
18208
|
onCancelled: () => {
|
|
17990
18209
|
setImporting(void 0);
|
|
18210
|
+
setUpdating(void 0);
|
|
17991
18211
|
},
|
|
17992
18212
|
onStarted: (chat, started) => {
|
|
17993
18213
|
setImporting(void 0);
|
|
18214
|
+
setUpdating(void 0);
|
|
17994
18215
|
refresh();
|
|
17995
18216
|
if (!started) setImportNotice(t("importNotStarted"));
|
|
17996
18217
|
openChat(chat);
|
|
@@ -18017,6 +18238,34 @@ window.__ModuleLoader__.load({
|
|
|
18017
18238
|
className: WorldsPage_module_css_default.editTitle,
|
|
18018
18239
|
children: editing.name
|
|
18019
18240
|
}),
|
|
18241
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
18242
|
+
ref: updatePicker,
|
|
18243
|
+
type: "file",
|
|
18244
|
+
accept: ".png,.json,image/png,application/json",
|
|
18245
|
+
hidden: true,
|
|
18246
|
+
"data-testid": "roleplay-update-input",
|
|
18247
|
+
onChange: (event) => {
|
|
18248
|
+
chooseUpdateCard(editing.id, event.target.files?.[0]);
|
|
18249
|
+
event.target.value = "";
|
|
18250
|
+
}
|
|
18251
|
+
}),
|
|
18252
|
+
cardStatus?.fromCard === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
18253
|
+
variant: "outline",
|
|
18254
|
+
size: "sm",
|
|
18255
|
+
disabled: updateBusy,
|
|
18256
|
+
onClick: () => {
|
|
18257
|
+
updatePicker.current?.click();
|
|
18258
|
+
},
|
|
18259
|
+
children: updateBusy ? t("updateReading") : t("updateFromCard")
|
|
18260
|
+
}),
|
|
18261
|
+
cardStatus?.revertible === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
18262
|
+
variant: "outline",
|
|
18263
|
+
size: "sm",
|
|
18264
|
+
onClick: () => {
|
|
18265
|
+
setReverting(true);
|
|
18266
|
+
},
|
|
18267
|
+
children: t("revertUpdate")
|
|
18268
|
+
}),
|
|
18020
18269
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
18021
18270
|
ref: presetPicker,
|
|
18022
18271
|
type: "file",
|
|
@@ -18091,6 +18340,19 @@ window.__ModuleLoader__.load({
|
|
|
18091
18340
|
worldName: editing.name,
|
|
18092
18341
|
openChat
|
|
18093
18342
|
}),
|
|
18343
|
+
reverting && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RevertUpdateDialog, {
|
|
18344
|
+
t,
|
|
18345
|
+
onClose: () => {
|
|
18346
|
+
setReverting(false);
|
|
18347
|
+
},
|
|
18348
|
+
revert: () => revertUpdate(editing.id),
|
|
18349
|
+
onDone: (keptIn) => {
|
|
18350
|
+
setReverting(false);
|
|
18351
|
+
setPresetNotice(t("revertDone", { folder: keptIn }));
|
|
18352
|
+
setEditorVersion((version) => version + 1);
|
|
18353
|
+
refresh();
|
|
18354
|
+
}
|
|
18355
|
+
}),
|
|
18094
18356
|
addingAvatars && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddAvatarsDialog, {
|
|
18095
18357
|
t,
|
|
18096
18358
|
worldId: editing.id,
|
|
@@ -18750,6 +19012,16 @@ window.__ModuleLoader__.load({
|
|
|
18750
19012
|
worldPresetNone: "None",
|
|
18751
19013
|
worldPresetHelp: "Writing instructions from your library for new stories of this world. It can be changed later in the editor.",
|
|
18752
19014
|
createWorldFailed: "Could not create the world: {message}",
|
|
19015
|
+
updateFromCard: "Update from card",
|
|
19016
|
+
updateReading: "Reading the card…",
|
|
19017
|
+
updateNotFromCard: "This world was not made from a character card, so a card cannot update it.",
|
|
19018
|
+
revertUpdate: "Undo card update",
|
|
19019
|
+
revertTitle: "Undo the last card update?",
|
|
19020
|
+
revertHelp: "The world goes back to how it was before the update, including the card it was made from. What it holds now is kept in the world's .trash folder, so changes you made since can still be found. Pictures are not part of this.",
|
|
19021
|
+
revertConfirm: "Undo the update",
|
|
19022
|
+
reverting: "Undoing…",
|
|
19023
|
+
revertFailed: "Could not undo the update: {message}",
|
|
19024
|
+
revertDone: "The world is back to how it was before the update. What it held is in {folder}.",
|
|
18753
19025
|
importPreset: "Import narration preset",
|
|
18754
19026
|
presetVerbatim: "Put the chosen prompts of \"{name}\" into the world as its narration style, word for word. Check them in the Prompts section.",
|
|
18755
19027
|
presetVerbatimReplaced: "Put the chosen prompts of \"{name}\" into the world as its narration style, word for word. The style it had before is in the world's trash folder. Check the new one in the Prompts section.",
|
|
@@ -18844,6 +19116,16 @@ window.__ModuleLoader__.load({
|
|
|
18844
19116
|
worldPresetNone: "无",
|
|
18845
19117
|
worldPresetHelp: "库中的写作指令,供这个世界的新故事使用;之后可在编辑器中修改。",
|
|
18846
19118
|
createWorldFailed: "无法创建世界:{message}",
|
|
19119
|
+
updateFromCard: "用角色卡更新",
|
|
19120
|
+
updateReading: "正在读取角色卡…",
|
|
19121
|
+
updateNotFromCard: "这个世界不是由角色卡导入的,无法用角色卡更新。",
|
|
19122
|
+
revertUpdate: "撤销卡片更新",
|
|
19123
|
+
revertTitle: "撤销上一次卡片更新?",
|
|
19124
|
+
revertHelp: "世界会回到更新之前的样子,包括它所依据的角色卡。现在的内容会保存在世界的 .trash 文件夹里,之后做的修改仍然可以找回。图片不在撤销范围内。",
|
|
19125
|
+
revertConfirm: "撤销更新",
|
|
19126
|
+
reverting: "正在撤销…",
|
|
19127
|
+
revertFailed: "无法撤销更新:{message}",
|
|
19128
|
+
revertDone: "世界已回到更新之前的样子。原来的内容保存在 {folder}。",
|
|
18847
19129
|
importPreset: "导入叙述预设",
|
|
18848
19130
|
presetVerbatim: "已将“{name}”所选提示原文放入世界,作为它的叙述风格。请在“提示词”部分检查。",
|
|
18849
19131
|
presetVerbatimReplaced: "已将“{name}”所选提示原文放入世界,作为它的叙述风格。原来的风格保存在世界的回收文件夹里。请在“提示词”部分检查新的风格。",
|
|
@@ -19247,10 +19529,10 @@ window.__ModuleLoader__.load({
|
|
|
19247
19529
|
}
|
|
19248
19530
|
tag$7.textContent = css$7;
|
|
19249
19531
|
var BranchDialog_module_css_default = {
|
|
19250
|
-
"form": "rp_Dy1TaW_form",
|
|
19251
19532
|
"field": "rp_Dy1TaW_field",
|
|
19533
|
+
"label": "rp_Dy1TaW_label",
|
|
19252
19534
|
"error": "rp_Dy1TaW_error",
|
|
19253
|
-
"
|
|
19535
|
+
"form": "rp_Dy1TaW_form"
|
|
19254
19536
|
};
|
|
19255
19537
|
//#endregion
|
|
19256
19538
|
//#region src/client/branch/BranchDialog.tsx
|
|
@@ -19719,17 +20001,17 @@ window.__ModuleLoader__.load({
|
|
|
19719
20001
|
}
|
|
19720
20002
|
tag$6.textContent = css$6;
|
|
19721
20003
|
var SidebarPage_module_css_default = {
|
|
19722
|
-
"
|
|
19723
|
-
"
|
|
19724
|
-
"
|
|
20004
|
+
"page": "rp_Ptco8a_page",
|
|
20005
|
+
"content": "rp_Ptco8a_content",
|
|
20006
|
+
"name": "rp_Ptco8a_name",
|
|
19725
20007
|
"text": "rp_Ptco8a_text",
|
|
20008
|
+
"entry": "rp_Ptco8a_entry",
|
|
19726
20009
|
"title": "rp_Ptco8a_title",
|
|
19727
|
-
"
|
|
19728
|
-
"
|
|
20010
|
+
"main": "rp_Ptco8a_main",
|
|
20011
|
+
"icon": "rp_Ptco8a_icon",
|
|
19729
20012
|
"bar": "rp_Ptco8a_bar",
|
|
19730
|
-
"
|
|
19731
|
-
"
|
|
19732
|
-
"main": "rp_Ptco8a_main"
|
|
20013
|
+
"description": "rp_Ptco8a_description",
|
|
20014
|
+
"message": "rp_Ptco8a_message"
|
|
19733
20015
|
};
|
|
19734
20016
|
//#endregion
|
|
19735
20017
|
//#region src/client/interface/SidebarPage.tsx
|
|
@@ -20058,26 +20340,26 @@ window.__ModuleLoader__.load({
|
|
|
20058
20340
|
tag$5.textContent = css$5;
|
|
20059
20341
|
var ChatSettingsView_module_css_default = {
|
|
20060
20342
|
"table": "rp_wLpbxW_table",
|
|
20343
|
+
"description": "rp_wLpbxW_description",
|
|
20344
|
+
"title": "rp_wLpbxW_title",
|
|
20345
|
+
"notice": "rp_wLpbxW_notice",
|
|
20061
20346
|
"help": "rp_wLpbxW_help",
|
|
20347
|
+
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
20062
20348
|
"select": "rp_wLpbxW_select",
|
|
20349
|
+
"error": "rp_wLpbxW_error",
|
|
20350
|
+
"reasons": "rp_wLpbxW_reasons",
|
|
20351
|
+
"list": "rp_wLpbxW_list",
|
|
20352
|
+
"pre": "rp_wLpbxW_pre",
|
|
20353
|
+
"saved": "rp_wLpbxW_saved",
|
|
20063
20354
|
"field": "rp_wLpbxW_field",
|
|
20064
|
-
"
|
|
20065
|
-
"notice": "rp_wLpbxW_notice",
|
|
20066
|
-
"view": "rp_wLpbxW_view",
|
|
20355
|
+
"link": "rp_wLpbxW_link",
|
|
20067
20356
|
"label": "rp_wLpbxW_label",
|
|
20068
|
-
"
|
|
20357
|
+
"view": "rp_wLpbxW_view",
|
|
20358
|
+
"actions": "rp_wLpbxW_actions",
|
|
20069
20359
|
"row": "rp_wLpbxW_row",
|
|
20070
|
-
"
|
|
20071
|
-
"link": "rp_wLpbxW_link",
|
|
20072
|
-
"description": "rp_wLpbxW_description",
|
|
20073
|
-
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
20360
|
+
"activityBody": "rp_wLpbxW_activityBody",
|
|
20074
20361
|
"run": "rp_wLpbxW_run",
|
|
20075
|
-
"pre": "rp_wLpbxW_pre",
|
|
20076
|
-
"reasons": "rp_wLpbxW_reasons",
|
|
20077
|
-
"actions": "rp_wLpbxW_actions",
|
|
20078
20362
|
"message": "rp_wLpbxW_message",
|
|
20079
|
-
"saved": "rp_wLpbxW_saved",
|
|
20080
|
-
"list": "rp_wLpbxW_list",
|
|
20081
20363
|
"activity": "rp_wLpbxW_activity"
|
|
20082
20364
|
};
|
|
20083
20365
|
//#endregion
|
|
@@ -21829,16 +22111,16 @@ window.__ModuleLoader__.load({
|
|
|
21829
22111
|
}
|
|
21830
22112
|
tag$4.textContent = css$4;
|
|
21831
22113
|
var CatalogueSettings_module_css_default = {
|
|
21832
|
-
"field": "rp_KPhXDa_field",
|
|
21833
|
-
"keyHint": "rp_KPhXDa_keyHint",
|
|
21834
|
-
"actions": "rp_KPhXDa_actions",
|
|
21835
|
-
"section": "rp_KPhXDa_section",
|
|
21836
|
-
"keyArea": "rp_KPhXDa_keyArea",
|
|
21837
|
-
"title": "rp_KPhXDa_title",
|
|
21838
22114
|
"row": "rp_KPhXDa_row",
|
|
21839
|
-
"
|
|
22115
|
+
"keyArea": "rp_KPhXDa_keyArea",
|
|
22116
|
+
"section": "rp_KPhXDa_section",
|
|
21840
22117
|
"label": "rp_KPhXDa_label",
|
|
21841
|
-
"
|
|
22118
|
+
"actions": "rp_KPhXDa_actions",
|
|
22119
|
+
"field": "rp_KPhXDa_field",
|
|
22120
|
+
"hint": "rp_KPhXDa_hint",
|
|
22121
|
+
"keyHint": "rp_KPhXDa_keyHint",
|
|
22122
|
+
"problem": "rp_KPhXDa_problem",
|
|
22123
|
+
"title": "rp_KPhXDa_title"
|
|
21842
22124
|
};
|
|
21843
22125
|
//#endregion
|
|
21844
22126
|
//#region src/client/settings/AuthoringToolSettings.tsx
|
|
@@ -21975,6 +22257,7 @@ window.__ModuleLoader__.load({
|
|
|
21975
22257
|
group: "assistants",
|
|
21976
22258
|
kind: "choice",
|
|
21977
22259
|
choices: ["llm", "decision"],
|
|
22260
|
+
labels: ["importDecisionLlm", "importDecisionModel"],
|
|
21978
22261
|
placeholder: "llm"
|
|
21979
22262
|
},
|
|
21980
22263
|
{
|
|
@@ -21985,6 +22268,14 @@ window.__ModuleLoader__.load({
|
|
|
21985
22268
|
max: 1,
|
|
21986
22269
|
placeholder: "0.7"
|
|
21987
22270
|
},
|
|
22271
|
+
{
|
|
22272
|
+
field: "authoringApproval",
|
|
22273
|
+
group: "assistants",
|
|
22274
|
+
kind: "choice",
|
|
22275
|
+
choices: ["ask", "auto"],
|
|
22276
|
+
labels: ["authoringApprovalAsk", "authoringApprovalAuto"],
|
|
22277
|
+
placeholder: "ask"
|
|
22278
|
+
},
|
|
21988
22279
|
{
|
|
21989
22280
|
field: "importMaxUploadBytes",
|
|
21990
22281
|
group: "limits",
|
|
@@ -22048,18 +22339,18 @@ window.__ModuleLoader__.load({
|
|
|
22048
22339
|
}
|
|
22049
22340
|
tag$3.textContent = css$3;
|
|
22050
22341
|
var AssistantSettings_module_css_default = {
|
|
22051
|
-
"label": "rp_ZwzM4q_label",
|
|
22052
|
-
"head": "rp_ZwzM4q_head",
|
|
22053
22342
|
"reset": "rp_ZwzM4q_reset",
|
|
22343
|
+
"fields": "rp_ZwzM4q_fields",
|
|
22344
|
+
"field": "rp_ZwzM4q_field",
|
|
22054
22345
|
"select": "rp_ZwzM4q_select",
|
|
22055
22346
|
"title": "rp_ZwzM4q_title",
|
|
22056
22347
|
"fieldHint": "rp_ZwzM4q_fieldHint",
|
|
22348
|
+
"section": "rp_ZwzM4q_section",
|
|
22349
|
+
"head": "rp_ZwzM4q_head",
|
|
22057
22350
|
"badges": "rp_ZwzM4q_badges",
|
|
22058
22351
|
"hint": "rp_ZwzM4q_hint",
|
|
22059
|
-
"
|
|
22060
|
-
"
|
|
22061
|
-
"section": "rp_ZwzM4q_section",
|
|
22062
|
-
"fields": "rp_ZwzM4q_fields"
|
|
22352
|
+
"label": "rp_ZwzM4q_label",
|
|
22353
|
+
"invalid": "rp_ZwzM4q_invalid"
|
|
22063
22354
|
};
|
|
22064
22355
|
//#endregion
|
|
22065
22356
|
//#region src/client/settings/AssistantSettings.tsx
|
|
@@ -22100,20 +22391,13 @@ window.__ModuleLoader__.load({
|
|
|
22100
22391
|
onChange: (event) => {
|
|
22101
22392
|
onEdit(event.target.value);
|
|
22102
22393
|
},
|
|
22103
|
-
children: [
|
|
22104
|
-
|
|
22105
|
-
|
|
22106
|
-
|
|
22107
|
-
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
children: t("importDecisionLlm")
|
|
22111
|
-
}),
|
|
22112
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
22113
|
-
value: "decision",
|
|
22114
|
-
children: t("importDecisionModel")
|
|
22115
|
-
})
|
|
22116
|
-
]
|
|
22394
|
+
children: [!known && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
22395
|
+
value: state.text,
|
|
22396
|
+
children: state.text
|
|
22397
|
+
}), spec.choices.map((choice, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
22398
|
+
value: choice,
|
|
22399
|
+
children: t(spec.labels[index])
|
|
22400
|
+
}, choice))]
|
|
22117
22401
|
}),
|
|
22118
22402
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
22119
22403
|
id: messageId,
|
|
@@ -22534,6 +22818,43 @@ window.__ModuleLoader__.load({
|
|
|
22534
22818
|
});
|
|
22535
22819
|
}
|
|
22536
22820
|
//#endregion
|
|
22821
|
+
//#region src/client/settings/setup-api.ts
|
|
22822
|
+
/** The ids of the plugin rows the profile holds more than once; empty when the profile is as it should be. */
|
|
22823
|
+
async function loadRedundantLayers(signal) {
|
|
22824
|
+
const response = await fetch(`${API_PREFIX}/setup`, {
|
|
22825
|
+
credentials: "same-origin",
|
|
22826
|
+
signal
|
|
22827
|
+
});
|
|
22828
|
+
if (!response.ok) throw new Error(`${response.status} ${response.statusText}`.trim());
|
|
22829
|
+
const body = await response.json();
|
|
22830
|
+
return Array.isArray(body.redundantLayers) ? body.redundantLayers.filter((id) => typeof id === "string") : [];
|
|
22831
|
+
}
|
|
22832
|
+
//#endregion
|
|
22833
|
+
//#region src/client/settings/SetupNotice.tsx
|
|
22834
|
+
/** Says why the settings cannot be saved when the profile holds a plugin row twice; nothing is shown otherwise. */
|
|
22835
|
+
function SetupNotice({ t }) {
|
|
22836
|
+
const [rows, setRows] = (0, react.useState)([]);
|
|
22837
|
+
(0, react.useEffect)(() => {
|
|
22838
|
+
const abort = new AbortController();
|
|
22839
|
+
loadRedundantLayers(abort.signal).then(setRows, () => void 0);
|
|
22840
|
+
return () => {
|
|
22841
|
+
abort.abort();
|
|
22842
|
+
};
|
|
22843
|
+
}, []);
|
|
22844
|
+
if (rows.length === 0) return null;
|
|
22845
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
22846
|
+
className: CatalogueSettings_module_css_default.problem,
|
|
22847
|
+
role: "alert",
|
|
22848
|
+
"data-testid": "roleplay-redundant-layers",
|
|
22849
|
+
children: [
|
|
22850
|
+
t("redundantLayers"),
|
|
22851
|
+
" (",
|
|
22852
|
+
rows.join(", "),
|
|
22853
|
+
")"
|
|
22854
|
+
]
|
|
22855
|
+
});
|
|
22856
|
+
}
|
|
22857
|
+
//#endregion
|
|
22537
22858
|
//#region src/client/settings/sync.ts
|
|
22538
22859
|
const text = (value) => typeof value === "string" ? value : "";
|
|
22539
22860
|
function syncOf(value) {
|
|
@@ -22866,10 +23187,15 @@ window.__ModuleLoader__.load({
|
|
|
22866
23187
|
importDecisionsHint: "Use the language model for every piece of a card, or let the selected decision model settle pieces that are only instructions or notes first. Anything it is unsure about still goes to the language model. The language model is the default.",
|
|
22867
23188
|
importConfidenceLabel: "Decision model confidence",
|
|
22868
23189
|
importConfidenceHint: "How sure the decision model must be before its answer is taken, from 0 to 1. Default 0.7.",
|
|
23190
|
+
authoringApprovalLabel: "Changes by the world authoring chat",
|
|
23191
|
+
authoringApprovalHint: "Ask shows each change to the world and waits for your answer. Automatic makes the changes at once; anything it replaces or deletes is kept in the world's .trash folder. Imports always make their own changes without asking. Ask is the default.",
|
|
23192
|
+
authoringApprovalAsk: "Ask for each change",
|
|
23193
|
+
authoringApprovalAuto: "Make changes automatically",
|
|
22869
23194
|
importDecisionLlm: "Language model",
|
|
22870
23195
|
importDecisionModel: "Decision model first",
|
|
22871
23196
|
assistantInvalidRange: "Enter a number from {min} to {max}.",
|
|
22872
23197
|
assistantInvalidChoice: "Choose one of the available options.",
|
|
23198
|
+
redundantLayers: "The profile selects the bundle layer of a single Role Play package next to the \"all\" bundle, so a Role Play plugin row exists twice and DSH refuses to save these settings. Deselect the other Role Play layers in your plugin manager (keep the packages installed), leave only @dsh-agentic-roleplay/all, and restart.",
|
|
22873
23199
|
limits: "Upload and download limits",
|
|
22874
23200
|
limitsHint: "Size limits for what the plugin accepts, and how long it keeps what an update replaced. They apply at once.",
|
|
22875
23201
|
importMaxUploadBytesLabel: "Largest upload (bytes)",
|
|
@@ -22953,10 +23279,15 @@ window.__ModuleLoader__.load({
|
|
|
22953
23279
|
importDecisionsHint: "可以让语言模型判断卡片的每个片段,也可以先由所选的决策模型处理仅包含指令或说明的片段;它没把握的内容仍交给语言模型。默认使用语言模型。",
|
|
22954
23280
|
importConfidenceLabel: "决策模型的把握程度",
|
|
22955
23281
|
importConfidenceHint: "决策模型要有多大把握才采纳它的回答,0 到 1。默认 0.7。",
|
|
23282
|
+
authoringApprovalLabel: "世界创作对话的修改",
|
|
23283
|
+
authoringApprovalHint: "“逐项询问”会展示每一处对世界的修改并等待你回答;“自动修改”则直接修改,被替换或删除的内容保存在世界的 .trash 文件夹中。导入始终无需询问就自行修改。默认逐项询问。",
|
|
23284
|
+
authoringApprovalAsk: "逐项询问",
|
|
23285
|
+
authoringApprovalAuto: "自动修改",
|
|
22956
23286
|
importDecisionLlm: "语言模型",
|
|
22957
23287
|
importDecisionModel: "优先使用决策模型",
|
|
22958
23288
|
assistantInvalidRange: "请输入 {min} 到 {max} 之间的数字。",
|
|
22959
23289
|
assistantInvalidChoice: "请选择一个可用选项。",
|
|
23290
|
+
redundantLayers: "配置档案在选中「all」套件的同时,还选中了某个角色扮演单包的套件层,导致角色扮演的插件行出现两次,DSH 因此拒绝保存这些设置。请在插件管理器中取消选中其他角色扮演层(包保持安装),只留下 @dsh-agentic-roleplay/all,然后重启。",
|
|
22960
23291
|
limits: "上传与下载限制",
|
|
22961
23292
|
limitsHint: "插件接收内容的大小限制,以及更新后被替换的文件保留多久。立即生效。",
|
|
22962
23293
|
importMaxUploadBytesLabel: "上传大小上限(字节)",
|
|
@@ -23003,6 +23334,7 @@ window.__ModuleLoader__.load({
|
|
|
23003
23334
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
23004
23335
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", { children: t("title") }),
|
|
23005
23336
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("description") }),
|
|
23337
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SetupNotice, { t }),
|
|
23006
23338
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.SettingsForm, {
|
|
23007
23339
|
labels: formLabels(t),
|
|
23008
23340
|
state,
|
|
@@ -23299,28 +23631,28 @@ window.__ModuleLoader__.load({
|
|
|
23299
23631
|
}
|
|
23300
23632
|
tag$2.textContent = css$2;
|
|
23301
23633
|
var NarrationView_module_css_default = {
|
|
23302
|
-
"
|
|
23634
|
+
"oocLabel": "rp_NFPimG_oocLabel",
|
|
23635
|
+
"oocRefused": "rp_NFPimG_oocRefused",
|
|
23636
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
23637
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
23303
23638
|
"line": "rp_NFPimG_line",
|
|
23304
|
-
"
|
|
23305
|
-
"diceList": "rp_NFPimG_diceList",
|
|
23639
|
+
"output": "rp_NFPimG_output",
|
|
23306
23640
|
"imageError": "rp_NFPimG_imageError",
|
|
23307
|
-
"words": "rp_NFPimG_words",
|
|
23308
|
-
"imageButton": "rp_NFPimG_imageButton",
|
|
23309
|
-
"playLine": "rp_NFPimG_playLine",
|
|
23310
|
-
"narration": "rp_NFPimG_narration",
|
|
23311
|
-
"oocLabel": "rp_NFPimG_oocLabel",
|
|
23312
23641
|
"note": "rp_NFPimG_note",
|
|
23313
|
-
"speech": "rp_NFPimG_speech",
|
|
23314
|
-
"name": "rp_NFPimG_name",
|
|
23315
|
-
"imageStatus": "rp_NFPimG_imageStatus",
|
|
23316
23642
|
"dice": "rp_NFPimG_dice",
|
|
23317
23643
|
"diceSummary": "rp_NFPimG_diceSummary",
|
|
23318
|
-
"output": "rp_NFPimG_output",
|
|
23319
|
-
"preview": "rp_NFPimG_preview",
|
|
23320
23644
|
"sceneImage": "rp_NFPimG_sceneImage",
|
|
23321
|
-
"
|
|
23645
|
+
"playAll": "rp_NFPimG_playAll",
|
|
23646
|
+
"playLine": "rp_NFPimG_playLine",
|
|
23647
|
+
"diceList": "rp_NFPimG_diceList",
|
|
23648
|
+
"speech": "rp_NFPimG_speech",
|
|
23649
|
+
"words": "rp_NFPimG_words",
|
|
23650
|
+
"narration": "rp_NFPimG_narration",
|
|
23651
|
+
"avatar": "rp_NFPimG_avatar",
|
|
23652
|
+
"name": "rp_NFPimG_name",
|
|
23322
23653
|
"images": "rp_NFPimG_images",
|
|
23323
|
-
"
|
|
23654
|
+
"preview": "rp_NFPimG_preview",
|
|
23655
|
+
"oocNote": "rp_NFPimG_oocNote"
|
|
23324
23656
|
};
|
|
23325
23657
|
//#endregion
|
|
23326
23658
|
//#region src/client/transcript/PreviewNode.tsx
|
|
@@ -23585,9 +23917,9 @@ window.__ModuleLoader__.load({
|
|
|
23585
23917
|
}
|
|
23586
23918
|
tag$1.textContent = css$1;
|
|
23587
23919
|
var SuggestionsDock_module_css_default = {
|
|
23588
|
-
"chip": "rp_rWH4DG_chip",
|
|
23589
23920
|
"dock": "rp_rWH4DG_dock",
|
|
23590
23921
|
"card": "rp_rWH4DG_card",
|
|
23922
|
+
"chip": "rp_rWH4DG_chip",
|
|
23591
23923
|
"label": "rp_rWH4DG_label",
|
|
23592
23924
|
"lines": "rp_rWH4DG_lines"
|
|
23593
23925
|
};
|
|
@@ -23709,11 +24041,11 @@ window.__ModuleLoader__.load({
|
|
|
23709
24041
|
}
|
|
23710
24042
|
tag.textContent = css;
|
|
23711
24043
|
var TurnsDock_module_css_default = {
|
|
24044
|
+
"dock": "rp_f4YLlq_dock",
|
|
24045
|
+
"select": "rp_f4YLlq_select",
|
|
23712
24046
|
"count": "rp_f4YLlq_count",
|
|
23713
24047
|
"group": "rp_f4YLlq_group",
|
|
23714
|
-
"dock": "rp_f4YLlq_dock",
|
|
23715
24048
|
"button": "rp_f4YLlq_button",
|
|
23716
|
-
"select": "rp_f4YLlq_select",
|
|
23717
24049
|
"error": "rp_f4YLlq_error"
|
|
23718
24050
|
};
|
|
23719
24051
|
//#endregion
|