@dsh-agentic-roleplay/core 0.11.0 → 0.12.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/{access-CXtaZNbx.js → access-DAw54-NI.js} +6 -15
- package/lib/{authoring-tools--6V1pIIL.js → authoring-tools-4NgDhIJV.js} +116 -13
- package/lib/authoring.js +38 -8
- package/lib/{child-C9nPIy9j.js → child-D3QUNb3m.js} +121 -2
- package/lib/client.js +1389 -475
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +3 -3
- package/lib/doctor.js +3 -3
- package/lib/{gallery-CtG-bDzz.js → gallery-Ct6nm4UQ.js} +3 -3
- package/lib/{generator-nLoPM5MF.js → generator-CI8fOnXy.js} +9 -3
- package/lib/helper.js +22 -1
- package/lib/{hooks-DORky4KT.js → hooks-BNeoGMHZ.js} +1342 -293
- package/lib/images.js +4 -4
- package/lib/index.js +444 -24
- package/lib/jail-BIF79PJO.js +107 -0
- package/lib/{library-CH-ahlm0.js → library-BF9ZMSFz.js} +3 -3
- package/lib/{lorebook-author-tools-BrVde1N-.js → lorebook-author-tools-DBk-V0hp.js} +7 -7
- package/lib/lorebook-authoring.js +4 -4
- package/lib/{narration-B0hConSw.js → narration-xvErE2yp.js} +34 -3
- package/lib/orchestration.js +915 -59
- package/lib/{pack-jail-Bk82pX9t.js → pack-jail-C8EyX9Ix.js} +18 -14
- package/lib/{packs-ELfh8yh1.js → packs-S0SzrVv-.js} +2 -2
- package/lib/{presenter-agent-UKbKYXMO.js → presenter-agent-Bc478nTA.js} +11 -8
- package/lib/{preset-D9Sfc8sf.js → preset-SJZyw0kt.js} +4 -4
- package/lib/{preset-author-tools-B3pFL1-e.js → preset-author-tools-CzogjK42.js} +7 -7
- package/lib/preset-authoring.js +5 -5
- package/lib/{presets-BRt4Xsy4.js → presets-DQ5rioMh.js} +251 -49
- package/lib/{reflection-CHiHsY4Y.js → reflection-buQiSdvq.js} +17 -609
- package/lib/service-mRKwpWjX.js +140 -0
- package/lib/{text-CzqhC8sT.js → text-Dfv8S8eq.js} +36 -2
- package/lib/{turn-guard-B53qOWEU.js → turn-guard-BSAba8sp.js} +3 -3
- package/package.json +3 -3
- package/prompts/en/import/finish-ok.md +1 -1
- package/prompts/en/import/generator.md +1 -1
- package/prompts/en/import/style.md +1 -1
- package/prompts/en/import/variables.md +3 -1
- package/prompts/en/roleplay/character-decide.md +1 -1
- package/prompts/en/roleplay/character-lookup.md +1 -1
- package/prompts/en/roleplay/decide-errand.md +1 -0
- package/prompts/en/roleplay/decide-message.md +1 -0
- package/prompts/en/roleplay/decide-reuse.md +3 -0
- package/prompts/en/roleplay/decide-variable.md +1 -0
- package/prompts/en/roleplay/dream.md +1 -0
- package/prompts/en/roleplay/gate-repeat.md +1 -0
- package/prompts/en/roleplay/image-presenter.md +1 -0
- package/prompts/en/roleplay/track-values.md +1 -0
- package/prompts/en/roleplay/track-variables.md +1 -0
- package/prompts/zh/import/finish-ok.md +1 -1
- package/prompts/zh/import/generator.md +1 -1
- package/prompts/zh/import/style.md +1 -1
- package/prompts/zh/import/variables.md +3 -1
- package/prompts/zh/roleplay/character-decide.md +1 -1
- package/prompts/zh/roleplay/character-lookup.md +1 -1
- package/prompts/zh/roleplay/decide-errand.md +1 -0
- package/prompts/zh/roleplay/decide-message.md +1 -0
- package/prompts/zh/roleplay/decide-reuse.md +3 -0
- package/prompts/zh/roleplay/decide-variable.md +1 -0
- package/prompts/zh/roleplay/dream.md +1 -0
- package/prompts/zh/roleplay/gate-repeat.md +1 -0
- package/prompts/zh/roleplay/image-presenter.md +1 -0
- package/prompts/zh/roleplay/track-values.md +1 -0
- package/prompts/zh/roleplay/track-variables.md +1 -0
package/lib/client.js
CHANGED
|
@@ -35,8 +35,8 @@ window.__ModuleLoader__.load({
|
|
|
35
35
|
}
|
|
36
36
|
tag$40.textContent = css$40;
|
|
37
37
|
var PageTabs_module_css_default = {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"tab": "rp_LrKukW_tab",
|
|
39
|
+
"tabs": "rp_LrKukW_tabs"
|
|
40
40
|
};
|
|
41
41
|
// src/client/widgets/page-tabs/PageTabs.tsx
|
|
42
42
|
/** Underlined text tabs; arrow keys, Home and End move between them. */
|
|
@@ -89,10 +89,10 @@ window.__ModuleLoader__.load({
|
|
|
89
89
|
}
|
|
90
90
|
tag$39.textContent = css$39;
|
|
91
91
|
var RoleplayPanel_module_css_default = {
|
|
92
|
-
"title": "rp_ua5gBa_title",
|
|
93
|
-
"body": "rp_ua5gBa_body",
|
|
94
92
|
"panel": "rp_ua5gBa_panel",
|
|
95
|
-
"header": "rp_ua5gBa_header"
|
|
93
|
+
"header": "rp_ua5gBa_header",
|
|
94
|
+
"body": "rp_ua5gBa_body",
|
|
95
|
+
"title": "rp_ua5gBa_title"
|
|
96
96
|
};
|
|
97
97
|
// src/client/panel/RoleplayPanel.tsx
|
|
98
98
|
/** Header, page navigation and the selected page. */
|
|
@@ -427,34 +427,34 @@ window.__ModuleLoader__.load({
|
|
|
427
427
|
}
|
|
428
428
|
tag$38.textContent = css$38;
|
|
429
429
|
var ImportCard_module_css_default = {
|
|
430
|
-
"entryHead": "rp_5cvtma_entryHead",
|
|
431
|
-
"about": "rp_5cvtma_about",
|
|
432
430
|
"section": "rp_5cvtma_section",
|
|
433
|
-
"
|
|
434
|
-
"picture": "rp_5cvtma_picture",
|
|
435
|
-
"body": "rp_5cvtma_body",
|
|
431
|
+
"page": "rp_5cvtma_page",
|
|
436
432
|
"row": "rp_5cvtma_row",
|
|
437
|
-
"entry": "rp_5cvtma_entry",
|
|
438
433
|
"error": "rp_5cvtma_error",
|
|
439
|
-
"
|
|
440
|
-
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
441
|
-
"tags": "rp_5cvtma_tags",
|
|
442
|
-
"text": "rp_5cvtma_text",
|
|
443
|
-
"entryOff": "rp_5cvtma_entryOff",
|
|
444
|
-
"entryTitle": "rp_5cvtma_entryTitle",
|
|
445
|
-
"choice": "rp_5cvtma_choice",
|
|
446
|
-
"choiceText": "rp_5cvtma_choiceText",
|
|
447
|
-
"top": "rp_5cvtma_top",
|
|
448
|
-
"preview": "rp_5cvtma_preview",
|
|
449
|
-
"heading": "rp_5cvtma_heading",
|
|
450
|
-
"page": "rp_5cvtma_page",
|
|
434
|
+
"entry": "rp_5cvtma_entry",
|
|
451
435
|
"header": "rp_5cvtma_header",
|
|
436
|
+
"space": "rp_5cvtma_space",
|
|
452
437
|
"noPicture": "rp_5cvtma_noPicture",
|
|
453
438
|
"label": "rp_5cvtma_label",
|
|
454
|
-
"
|
|
439
|
+
"fieldHead": "rp_5cvtma_fieldHead",
|
|
440
|
+
"choice": "rp_5cvtma_choice",
|
|
441
|
+
"body": "rp_5cvtma_body",
|
|
442
|
+
"picture": "rp_5cvtma_picture",
|
|
443
|
+
"field": "rp_5cvtma_field",
|
|
444
|
+
"choiceText": "rp_5cvtma_choiceText",
|
|
445
|
+
"entryOff": "rp_5cvtma_entryOff",
|
|
455
446
|
"note": "rp_5cvtma_note",
|
|
447
|
+
"heading": "rp_5cvtma_heading",
|
|
448
|
+
"preview": "rp_5cvtma_preview",
|
|
449
|
+
"top": "rp_5cvtma_top",
|
|
450
|
+
"about": "rp_5cvtma_about",
|
|
451
|
+
"entryHead": "rp_5cvtma_entryHead",
|
|
452
|
+
"entryTitle": "rp_5cvtma_entryTitle",
|
|
453
|
+
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
454
|
+
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
456
455
|
"title": "rp_5cvtma_title",
|
|
457
|
-
"
|
|
456
|
+
"text": "rp_5cvtma_text",
|
|
457
|
+
"tags": "rp_5cvtma_tags"
|
|
458
458
|
};
|
|
459
459
|
// src/client/widgets/import-card/ImportCard.tsx
|
|
460
460
|
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
@@ -943,38 +943,38 @@ window.__ModuleLoader__.load({
|
|
|
943
943
|
}
|
|
944
944
|
tag$37.textContent = css$37;
|
|
945
945
|
var CataloguePage_module_css_default = {
|
|
946
|
-
"
|
|
947
|
-
"cover": "rp_qK1u-G_cover",
|
|
948
|
-
"label": "rp_qK1u-G_label",
|
|
949
|
-
"meta": "rp_qK1u-G_meta",
|
|
950
|
-
"status": "rp_qK1u-G_status",
|
|
946
|
+
"detail": "rp_qK1u-G_detail",
|
|
951
947
|
"form": "rp_qK1u-G_form",
|
|
952
|
-
"success": "rp_qK1u-G_success",
|
|
953
|
-
"message": "rp_qK1u-G_message",
|
|
954
|
-
"image": "rp_qK1u-G_image",
|
|
955
948
|
"search": "rp_qK1u-G_search",
|
|
956
|
-
"
|
|
957
|
-
"
|
|
958
|
-
"
|
|
959
|
-
"name": "rp_qK1u-G_name",
|
|
960
|
-
"field": "rp_qK1u-G_field",
|
|
949
|
+
"changes": "rp_qK1u-G_changes",
|
|
950
|
+
"actions": "rp_qK1u-G_actions",
|
|
951
|
+
"toolbar": "rp_qK1u-G_toolbar",
|
|
961
952
|
"update": "rp_qK1u-G_update",
|
|
962
|
-
"
|
|
953
|
+
"tags": "rp_qK1u-G_tags",
|
|
954
|
+
"name": "rp_qK1u-G_name",
|
|
963
955
|
"notice": "rp_qK1u-G_notice",
|
|
964
|
-
"more": "rp_qK1u-G_more",
|
|
965
|
-
"spacer": "rp_qK1u-G_spacer",
|
|
966
|
-
"toolbar": "rp_qK1u-G_toolbar",
|
|
967
956
|
"grid": "rp_qK1u-G_grid",
|
|
968
|
-
"
|
|
969
|
-
"
|
|
957
|
+
"kinds": "rp_qK1u-G_kinds",
|
|
958
|
+
"page": "rp_qK1u-G_page",
|
|
959
|
+
"spacer": "rp_qK1u-G_spacer",
|
|
960
|
+
"viewport": "rp_qK1u-G_viewport",
|
|
961
|
+
"field": "rp_qK1u-G_field",
|
|
970
962
|
"warning": "rp_qK1u-G_warning",
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"
|
|
963
|
+
"meta": "rp_qK1u-G_meta",
|
|
964
|
+
"success": "rp_qK1u-G_success",
|
|
965
|
+
"cover": "rp_qK1u-G_cover",
|
|
966
|
+
"updates": "rp_qK1u-G_updates",
|
|
974
967
|
"kind": "rp_qK1u-G_kind",
|
|
968
|
+
"card": "rp_qK1u-G_card",
|
|
975
969
|
"description": "rp_qK1u-G_description",
|
|
976
|
-
"
|
|
977
|
-
"
|
|
970
|
+
"message": "rp_qK1u-G_message",
|
|
971
|
+
"body": "rp_qK1u-G_body",
|
|
972
|
+
"placeholder": "rp_qK1u-G_placeholder",
|
|
973
|
+
"select": "rp_qK1u-G_select",
|
|
974
|
+
"image": "rp_qK1u-G_image",
|
|
975
|
+
"more": "rp_qK1u-G_more",
|
|
976
|
+
"status": "rp_qK1u-G_status",
|
|
977
|
+
"label": "rp_qK1u-G_label"
|
|
978
978
|
};
|
|
979
979
|
// src/client/pages/catalogue/ImportUrlDialog.tsx
|
|
980
980
|
/** 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. */
|
|
@@ -1046,7 +1046,7 @@ window.__ModuleLoader__.load({
|
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
// src/client/import-selection-api.ts
|
|
1049
|
-
async function reply$
|
|
1049
|
+
async function reply$6(response) {
|
|
1050
1050
|
if (!response.ok) {
|
|
1051
1051
|
const body = await response.json().catch(() => void 0);
|
|
1052
1052
|
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
@@ -1062,7 +1062,7 @@ window.__ModuleLoader__.load({
|
|
|
1062
1062
|
});
|
|
1063
1063
|
/** Sends a preset or lorebook file to the host to be read: the answer is what it offers to import. */
|
|
1064
1064
|
async function stageFile(kind, file, signal) {
|
|
1065
|
-
return await reply$
|
|
1065
|
+
return await reply$6(await fetch(`${API_PREFIX}/import/stage?kind=${kind}`, {
|
|
1066
1066
|
method: "POST",
|
|
1067
1067
|
credentials: "same-origin",
|
|
1068
1068
|
headers: {
|
|
@@ -1075,7 +1075,7 @@ window.__ModuleLoader__.load({
|
|
|
1075
1075
|
}
|
|
1076
1076
|
/** The same for a release of a catalogue, which the host downloads. */
|
|
1077
1077
|
async function stageRelease(kind, source, versionId, signal) {
|
|
1078
|
-
return await reply$
|
|
1078
|
+
return await reply$6(await fetch(`${API_PREFIX}/catalogue/stage`, post$1({
|
|
1079
1079
|
source,
|
|
1080
1080
|
versionId,
|
|
1081
1081
|
kind
|
|
@@ -1083,20 +1083,20 @@ window.__ModuleLoader__.load({
|
|
|
1083
1083
|
}
|
|
1084
1084
|
/** Imports a staged preset into a new library preset, named `name`, or after `title` when there is no name; its authoring chat turns the chosen prompts into the preset's own. */
|
|
1085
1085
|
async function importStagedPreset(choice, extra, signal) {
|
|
1086
|
-
return await reply$
|
|
1086
|
+
return await reply$6(await fetch(`${API_PREFIX}/presets/import/staged`, post$1({
|
|
1087
1087
|
...choice,
|
|
1088
1088
|
...extra
|
|
1089
1089
|
}, signal)));
|
|
1090
1090
|
}
|
|
1091
1091
|
async function importStagedLorebook(choice, extra, signal) {
|
|
1092
|
-
return await reply$
|
|
1092
|
+
return await reply$6(await fetch(`${API_PREFIX}/lorebooks/import/staged`, post$1({
|
|
1093
1093
|
...choice,
|
|
1094
1094
|
...extra
|
|
1095
1095
|
}, signal)));
|
|
1096
1096
|
}
|
|
1097
1097
|
/** Imports a staged preset into a world, whose authoring chat turns the chosen prompts into the world's prose prompts. */
|
|
1098
1098
|
async function importStagedToWorld(worldId, choice, language) {
|
|
1099
|
-
return await reply$
|
|
1099
|
+
return await reply$6(await fetch(`${API_PREFIX}/worlds/import/preset/staged`, post$1({
|
|
1100
1100
|
...choice,
|
|
1101
1101
|
worldId,
|
|
1102
1102
|
language
|
|
@@ -1104,21 +1104,21 @@ window.__ModuleLoader__.load({
|
|
|
1104
1104
|
}
|
|
1105
1105
|
/** Imports the chosen entries of a staged lorebook as they are, with no assistant; the answer names the new lorebook. */
|
|
1106
1106
|
async function importVerbatimLorebook(choice, extra, signal) {
|
|
1107
|
-
return await reply$
|
|
1107
|
+
return await reply$6(await fetch(`${API_PREFIX}/lorebooks/import/verbatim`, post$1({
|
|
1108
1108
|
...choice,
|
|
1109
1109
|
...extra
|
|
1110
1110
|
}, signal)));
|
|
1111
1111
|
}
|
|
1112
1112
|
/** Imports the chosen prompts of a staged preset as they are, with no assistant; the answer names the new preset. */
|
|
1113
1113
|
async function importVerbatimPreset(choice, extra, signal) {
|
|
1114
|
-
return await reply$
|
|
1114
|
+
return await reply$6(await fetch(`${API_PREFIX}/presets/import/verbatim`, post$1({
|
|
1115
1115
|
...choice,
|
|
1116
1116
|
...extra
|
|
1117
1117
|
}, signal)));
|
|
1118
1118
|
}
|
|
1119
1119
|
/** Puts the chosen prompts of a staged preset into a world as its narration style, word for word, with no assistant. */
|
|
1120
1120
|
async function importVerbatimToWorld(worldId, choice, signal) {
|
|
1121
|
-
return await reply$
|
|
1121
|
+
return await reply$6(await fetch(`${API_PREFIX}/worlds/import/preset/verbatim`, post$1({
|
|
1122
1122
|
...choice,
|
|
1123
1123
|
worldId
|
|
1124
1124
|
}, signal)));
|
|
@@ -1178,18 +1178,18 @@ window.__ModuleLoader__.load({
|
|
|
1178
1178
|
}
|
|
1179
1179
|
tag$36.textContent = css$36;
|
|
1180
1180
|
var ImportSelection_module_css_default = {
|
|
1181
|
-
"help": "rp_Jx0l4q_help",
|
|
1182
|
-
"row": "rp_Jx0l4q_row",
|
|
1183
|
-
"bar": "rp_Jx0l4q_bar",
|
|
1184
|
-
"count": "rp_Jx0l4q_count",
|
|
1185
|
-
"note": "rp_Jx0l4q_note",
|
|
1186
|
-
"error": "rp_Jx0l4q_error",
|
|
1187
|
-
"sampling": "rp_Jx0l4q_sampling",
|
|
1188
|
-
"body": "rp_Jx0l4q_body",
|
|
1189
|
-
"extra": "rp_Jx0l4q_extra",
|
|
1190
1181
|
"text": "rp_Jx0l4q_text",
|
|
1182
|
+
"count": "rp_Jx0l4q_count",
|
|
1191
1183
|
"meta": "rp_Jx0l4q_meta",
|
|
1184
|
+
"bar": "rp_Jx0l4q_bar",
|
|
1192
1185
|
"full": "rp_Jx0l4q_full",
|
|
1186
|
+
"body": "rp_Jx0l4q_body",
|
|
1187
|
+
"sampling": "rp_Jx0l4q_sampling",
|
|
1188
|
+
"error": "rp_Jx0l4q_error",
|
|
1189
|
+
"row": "rp_Jx0l4q_row",
|
|
1190
|
+
"note": "rp_Jx0l4q_note",
|
|
1191
|
+
"extra": "rp_Jx0l4q_extra",
|
|
1192
|
+
"help": "rp_Jx0l4q_help",
|
|
1193
1193
|
"list": "rp_Jx0l4q_list"
|
|
1194
1194
|
};
|
|
1195
1195
|
// src/client/widgets/import-selection/ImportSelection.tsx
|
|
@@ -2889,6 +2889,7 @@ window.__ModuleLoader__.load({
|
|
|
2889
2889
|
{
|
|
2890
2890
|
key: "valence",
|
|
2891
2891
|
name: "Valence",
|
|
2892
|
+
update: "",
|
|
2892
2893
|
description: "How pleasant its mood is: -1 very unpleasant, 0 neutral, 1 very pleasant.",
|
|
2893
2894
|
labels: [
|
|
2894
2895
|
{
|
|
@@ -2916,6 +2917,7 @@ window.__ModuleLoader__.load({
|
|
|
2916
2917
|
{
|
|
2917
2918
|
key: "arousal",
|
|
2918
2919
|
name: "Arousal",
|
|
2920
|
+
update: "",
|
|
2919
2921
|
description: "How worked up it is: -1 drowsy, 0 ordinary, 1 frantic.",
|
|
2920
2922
|
labels: [
|
|
2921
2923
|
{
|
|
@@ -2943,6 +2945,7 @@ window.__ModuleLoader__.load({
|
|
|
2943
2945
|
{
|
|
2944
2946
|
key: "dominance",
|
|
2945
2947
|
name: "Dominance",
|
|
2948
|
+
update: "",
|
|
2946
2949
|
description: "How much in control it feels: -1 helpless, 0 even, 1 commanding.",
|
|
2947
2950
|
labels: [
|
|
2948
2951
|
{
|
|
@@ -3119,46 +3122,46 @@ window.__ModuleLoader__.load({
|
|
|
3119
3122
|
}
|
|
3120
3123
|
tag$35.textContent = css$35;
|
|
3121
3124
|
var CharactersPanel_module_css_default = {
|
|
3122
|
-
"question": "rp_5ZMIxq_question",
|
|
3123
|
-
"placeholder": "rp_5ZMIxq_placeholder",
|
|
3124
|
-
"optionTitle": "rp_5ZMIxq_optionTitle",
|
|
3125
|
-
"row": "rp_5ZMIxq_row",
|
|
3126
3125
|
"tabs": "rp_5ZMIxq_tabs",
|
|
3127
|
-
"
|
|
3128
|
-
"label": "rp_5ZMIxq_label",
|
|
3129
|
-
"select": "rp_5ZMIxq_select",
|
|
3130
|
-
"bar": "rp_5ZMIxq_bar",
|
|
3131
|
-
"field": "rp_5ZMIxq_field",
|
|
3132
|
-
"area": "rp_5ZMIxq_area",
|
|
3133
|
-
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
3126
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
3134
3127
|
"initial": "rp_5ZMIxq_initial",
|
|
3128
|
+
"row": "rp_5ZMIxq_row",
|
|
3129
|
+
"questionActions": "rp_5ZMIxq_questionActions",
|
|
3130
|
+
"body": "rp_5ZMIxq_body",
|
|
3131
|
+
"barText": "rp_5ZMIxq_barText",
|
|
3132
|
+
"empty": "rp_5ZMIxq_empty",
|
|
3133
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
3134
|
+
"tab": "rp_5ZMIxq_tab",
|
|
3135
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
3136
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
3135
3137
|
"itemActions": "rp_5ZMIxq_itemActions",
|
|
3138
|
+
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
3139
|
+
"questionTitle": "rp_5ZMIxq_questionTitle",
|
|
3140
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
3141
|
+
"field": "rp_5ZMIxq_field",
|
|
3142
|
+
"bar": "rp_5ZMIxq_bar",
|
|
3136
3143
|
"help": "rp_5ZMIxq_help",
|
|
3137
|
-
"grid": "rp_5ZMIxq_grid",
|
|
3138
3144
|
"error": "rp_5ZMIxq_error",
|
|
3139
|
-
"
|
|
3140
|
-
"
|
|
3145
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
3146
|
+
"question": "rp_5ZMIxq_question",
|
|
3147
|
+
"panel": "rp_5ZMIxq_panel",
|
|
3148
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
3149
|
+
"goal": "rp_5ZMIxq_goal",
|
|
3141
3150
|
"head": "rp_5ZMIxq_head",
|
|
3142
|
-
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
3143
|
-
"meta": "rp_5ZMIxq_meta",
|
|
3144
|
-
"body": "rp_5ZMIxq_body",
|
|
3145
|
-
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
3146
3151
|
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
3147
|
-
"
|
|
3152
|
+
"meta": "rp_5ZMIxq_meta",
|
|
3153
|
+
"select": "rp_5ZMIxq_select",
|
|
3148
3154
|
"missing": "rp_5ZMIxq_missing",
|
|
3155
|
+
"grid": "rp_5ZMIxq_grid",
|
|
3156
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
3157
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
3149
3158
|
"wide": "rp_5ZMIxq_wide",
|
|
3150
|
-
"
|
|
3151
|
-
"
|
|
3152
|
-
"
|
|
3153
|
-
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
3154
|
-
"empty": "rp_5ZMIxq_empty",
|
|
3155
|
-
"questionTitle": "rp_5ZMIxq_questionTitle",
|
|
3159
|
+
"label": "rp_5ZMIxq_label",
|
|
3160
|
+
"optionFields": "rp_5ZMIxq_optionFields",
|
|
3161
|
+
"optionTitle": "rp_5ZMIxq_optionTitle",
|
|
3156
3162
|
"section": "rp_5ZMIxq_section",
|
|
3157
|
-
"
|
|
3158
|
-
"
|
|
3159
|
-
"questionActions": "rp_5ZMIxq_questionActions",
|
|
3160
|
-
"nameInput": "rp_5ZMIxq_nameInput",
|
|
3161
|
-
"portraitError": "rp_5ZMIxq_portraitError"
|
|
3163
|
+
"area": "rp_5ZMIxq_area",
|
|
3164
|
+
"placeholder": "rp_5ZMIxq_placeholder"
|
|
3162
3165
|
};
|
|
3163
3166
|
// src/client/world-editor/EditorTabs.tsx
|
|
3164
3167
|
/** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
|
|
@@ -4877,39 +4880,39 @@ window.__ModuleLoader__.load({
|
|
|
4877
4880
|
}
|
|
4878
4881
|
tag$34.textContent = css$34;
|
|
4879
4882
|
var RelationsPanel_module_css_default = {
|
|
4883
|
+
"node": "rp_7pEHTW_node",
|
|
4884
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
4880
4885
|
"panel": "rp_7pEHTW_panel",
|
|
4881
|
-
"
|
|
4886
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
4887
|
+
"list": "rp_7pEHTW_list",
|
|
4888
|
+
"notice": "rp_7pEHTW_notice",
|
|
4882
4889
|
"wide": "rp_7pEHTW_wide",
|
|
4890
|
+
"node_character": "rp_7pEHTW_node_character",
|
|
4891
|
+
"filterOn": "rp_7pEHTW_filterOn",
|
|
4892
|
+
"head": "rp_7pEHTW_head",
|
|
4893
|
+
"check": "rp_7pEHTW_check",
|
|
4883
4894
|
"metrics": "rp_7pEHTW_metrics",
|
|
4884
4895
|
"node_faction": "rp_7pEHTW_node_faction",
|
|
4885
|
-
"
|
|
4886
|
-
"actions": "rp_7pEHTW_actions",
|
|
4887
|
-
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
4888
|
-
"status": "rp_7pEHTW_status",
|
|
4896
|
+
"error": "rp_7pEHTW_error",
|
|
4889
4897
|
"empty": "rp_7pEHTW_empty",
|
|
4890
|
-
"
|
|
4891
|
-
"
|
|
4892
|
-
"workspace": "rp_7pEHTW_workspace",
|
|
4898
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
4899
|
+
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
4893
4900
|
"filter": "rp_7pEHTW_filter",
|
|
4894
|
-
"list": "rp_7pEHTW_list",
|
|
4895
|
-
"node_character": "rp_7pEHTW_node_character",
|
|
4896
4901
|
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
4897
|
-
"
|
|
4898
|
-
"
|
|
4899
|
-
"
|
|
4900
|
-
"
|
|
4902
|
+
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
4903
|
+
"status": "rp_7pEHTW_status",
|
|
4904
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
4905
|
+
"form": "rp_7pEHTW_form",
|
|
4901
4906
|
"graph": "rp_7pEHTW_graph",
|
|
4902
|
-
"node_item": "rp_7pEHTW_node_item",
|
|
4903
|
-
"notice": "rp_7pEHTW_notice",
|
|
4904
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
4905
|
-
"check": "rp_7pEHTW_check",
|
|
4906
4907
|
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
4907
|
-
"
|
|
4908
|
-
"
|
|
4908
|
+
"actions": "rp_7pEHTW_actions",
|
|
4909
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
4910
|
+
"space": "rp_7pEHTW_space",
|
|
4911
|
+
"perspective": "rp_7pEHTW_perspective",
|
|
4909
4912
|
"entities": "rp_7pEHTW_entities",
|
|
4910
|
-
"
|
|
4911
|
-
"
|
|
4912
|
-
"
|
|
4913
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
4914
|
+
"toolbar": "rp_7pEHTW_toolbar",
|
|
4915
|
+
"edge": "rp_7pEHTW_edge"
|
|
4913
4916
|
};
|
|
4914
4917
|
// src/client/world-editor/RelationsPanel.tsx
|
|
4915
4918
|
const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
|
|
@@ -6173,7 +6176,7 @@ window.__ModuleLoader__.load({
|
|
|
6173
6176
|
const { min, max } = STRIP_HEIGHTS[surface];
|
|
6174
6177
|
return Math.min(max, Math.max(min, Math.round(height)));
|
|
6175
6178
|
}
|
|
6176
|
-
const text$
|
|
6179
|
+
const text$3 = (params, name) => {
|
|
6177
6180
|
const value = params[name];
|
|
6178
6181
|
if (typeof value !== "string") throw new Error(`${name} must be text`);
|
|
6179
6182
|
return value;
|
|
@@ -6203,7 +6206,7 @@ window.__ModuleLoader__.load({
|
|
|
6203
6206
|
if (!this.env.actions.includes(action)) throw new Error(`the pack did not ask for "${action}" in its pack.json actions`);
|
|
6204
6207
|
}
|
|
6205
6208
|
words(params) {
|
|
6206
|
-
const words = text$
|
|
6209
|
+
const words = text$3(params, "text").trim();
|
|
6207
6210
|
if (words === "") throw new Error("there are no words");
|
|
6208
6211
|
if (words.length > 2e3) throw new Error(`words are at most ${MAX_WORDS} characters`);
|
|
6209
6212
|
return words;
|
|
@@ -6249,12 +6252,12 @@ window.__ModuleLoader__.load({
|
|
|
6249
6252
|
await this.env.open(surface);
|
|
6250
6253
|
return null;
|
|
6251
6254
|
}
|
|
6252
|
-
case "storage.get": return await this.env.storage("get", text$
|
|
6255
|
+
case "storage.get": return await this.env.storage("get", text$3(params, "key"));
|
|
6253
6256
|
case "storage.set":
|
|
6254
|
-
await this.env.storage("set", text$
|
|
6257
|
+
await this.env.storage("set", text$3(params, "key"), params["value"]);
|
|
6255
6258
|
return null;
|
|
6256
6259
|
case "storage.remove":
|
|
6257
|
-
await this.env.storage("remove", text$
|
|
6260
|
+
await this.env.storage("remove", text$3(params, "key"));
|
|
6258
6261
|
return null;
|
|
6259
6262
|
case "history": {
|
|
6260
6263
|
const asked = params["limit"];
|
|
@@ -6278,12 +6281,12 @@ window.__ModuleLoader__.load({
|
|
|
6278
6281
|
}
|
|
6279
6282
|
tag$33.textContent = css$33;
|
|
6280
6283
|
var PackFrame_module_css_default = {
|
|
6284
|
+
"message": "rp_h_sbFq_message",
|
|
6281
6285
|
"fill": "rp_h_sbFq_fill",
|
|
6282
|
-
"frame": "rp_h_sbFq_frame",
|
|
6283
6286
|
"hud": "rp_h_sbFq_hud",
|
|
6284
|
-
"
|
|
6287
|
+
"tab": "rp_h_sbFq_tab",
|
|
6285
6288
|
"problems": "rp_h_sbFq_problems",
|
|
6286
|
-
"
|
|
6289
|
+
"frame": "rp_h_sbFq_frame"
|
|
6287
6290
|
};
|
|
6288
6291
|
// src/client/widgets/pack-frame/theme.ts
|
|
6289
6292
|
/** The colours of DSH a surface is given, so that it looks right in light and dark. */
|
|
@@ -6542,13 +6545,13 @@ window.__ModuleLoader__.load({
|
|
|
6542
6545
|
}
|
|
6543
6546
|
tag$32.textContent = css$32;
|
|
6544
6547
|
var PacksPanel_module_css_default = {
|
|
6548
|
+
"stageTall": "rp_FLaP7q_stageTall",
|
|
6545
6549
|
"group": "rp_FLaP7q_group",
|
|
6546
|
-
"
|
|
6547
|
-
"note": "rp_FLaP7q_note",
|
|
6550
|
+
"files": "rp_FLaP7q_files",
|
|
6548
6551
|
"stage": "rp_FLaP7q_stage",
|
|
6549
|
-
"stageTall": "rp_FLaP7q_stageTall",
|
|
6550
6552
|
"log": "rp_FLaP7q_log",
|
|
6551
|
-
"
|
|
6553
|
+
"note": "rp_FLaP7q_note",
|
|
6554
|
+
"controls": "rp_FLaP7q_controls"
|
|
6552
6555
|
};
|
|
6553
6556
|
// src/client/world-editor/PacksPanel.tsx
|
|
6554
6557
|
const WIDTHS = {
|
|
@@ -7441,7 +7444,7 @@ window.__ModuleLoader__.load({
|
|
|
7441
7444
|
});
|
|
7442
7445
|
}
|
|
7443
7446
|
// src/client/lorebooks-api.ts
|
|
7444
|
-
async function reply$
|
|
7447
|
+
async function reply$5(response) {
|
|
7445
7448
|
if (!response.ok) {
|
|
7446
7449
|
const body = await response.json().catch(() => void 0);
|
|
7447
7450
|
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
@@ -7456,38 +7459,38 @@ window.__ModuleLoader__.load({
|
|
|
7456
7459
|
});
|
|
7457
7460
|
const named = (name) => `name=${encodeURIComponent(name)}`;
|
|
7458
7461
|
async function listLorebooks(signal) {
|
|
7459
|
-
return await reply$
|
|
7462
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks`, {
|
|
7460
7463
|
credentials: "same-origin",
|
|
7461
7464
|
signal
|
|
7462
7465
|
}));
|
|
7463
7466
|
}
|
|
7464
7467
|
async function readLorebook(name, signal) {
|
|
7465
|
-
return await reply$
|
|
7468
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks/item?${named(name)}`, {
|
|
7466
7469
|
credentials: "same-origin",
|
|
7467
7470
|
signal
|
|
7468
7471
|
}));
|
|
7469
7472
|
}
|
|
7470
7473
|
async function createLorebook(request, signal) {
|
|
7471
|
-
return await reply$
|
|
7474
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks`, {
|
|
7472
7475
|
...json$2("POST", request),
|
|
7473
7476
|
signal
|
|
7474
7477
|
}));
|
|
7475
7478
|
}
|
|
7476
7479
|
async function updateLorebookInfo(name, change, signal) {
|
|
7477
|
-
return await reply$
|
|
7480
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks/item?${named(name)}`, {
|
|
7478
7481
|
...json$2("PUT", change),
|
|
7479
7482
|
signal
|
|
7480
7483
|
}));
|
|
7481
7484
|
}
|
|
7482
7485
|
async function writeLorebookEntry(name, entry, signal) {
|
|
7483
7486
|
const { id, ...rest } = entry;
|
|
7484
|
-
return await reply$
|
|
7487
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks/entry?${named(name)}&id=${encodeURIComponent(id)}`, {
|
|
7485
7488
|
...json$2("PUT", rest),
|
|
7486
7489
|
signal
|
|
7487
7490
|
}));
|
|
7488
7491
|
}
|
|
7489
7492
|
async function removeLorebookEntry(name, id, signal) {
|
|
7490
|
-
return await reply$
|
|
7493
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks/entry?${named(name)}&id=${encodeURIComponent(id)}`, {
|
|
7491
7494
|
method: "DELETE",
|
|
7492
7495
|
credentials: "same-origin",
|
|
7493
7496
|
signal
|
|
@@ -7499,37 +7502,37 @@ window.__ModuleLoader__.load({
|
|
|
7499
7502
|
credentials: "same-origin",
|
|
7500
7503
|
signal
|
|
7501
7504
|
});
|
|
7502
|
-
if (!response.ok) await reply$
|
|
7505
|
+
if (!response.ok) await reply$5(response);
|
|
7503
7506
|
}
|
|
7504
7507
|
/** Opens the authoring chat of a lorebook. */
|
|
7505
7508
|
async function authorLorebook(name, language, signal) {
|
|
7506
|
-
return await reply$
|
|
7509
|
+
return await reply$5(await fetch(`${API_PREFIX}/lorebooks/authoring?${named(name)}`, {
|
|
7507
7510
|
...json$2("POST", { language }),
|
|
7508
7511
|
signal
|
|
7509
7512
|
}));
|
|
7510
7513
|
}
|
|
7511
7514
|
async function loadStoryLorebooks(session, signal) {
|
|
7512
|
-
return await reply$
|
|
7515
|
+
return await reply$5(await fetch(`${API_PREFIX}/sessions/lorebooks?id=${encodeURIComponent(session)}`, {
|
|
7513
7516
|
credentials: "same-origin",
|
|
7514
7517
|
signal
|
|
7515
7518
|
}));
|
|
7516
7519
|
}
|
|
7517
7520
|
/** Copies a library lorebook into the chat's story; the notes say what could not be carried over. */
|
|
7518
7521
|
async function addStoryLorebook(session, name, signal) {
|
|
7519
|
-
return await reply$
|
|
7522
|
+
return await reply$5(await fetch(`${API_PREFIX}/sessions/lorebooks?id=${encodeURIComponent(session)}`, {
|
|
7520
7523
|
...json$2("POST", { name }),
|
|
7521
7524
|
signal
|
|
7522
7525
|
}));
|
|
7523
7526
|
}
|
|
7524
7527
|
async function removeStoryLorebook(session, name, signal) {
|
|
7525
|
-
return await reply$
|
|
7528
|
+
return await reply$5(await fetch(`${API_PREFIX}/sessions/lorebooks?id=${encodeURIComponent(session)}&${named(name)}`, {
|
|
7526
7529
|
method: "DELETE",
|
|
7527
7530
|
credentials: "same-origin",
|
|
7528
7531
|
signal
|
|
7529
7532
|
}));
|
|
7530
7533
|
}
|
|
7531
7534
|
// src/client/presets-api.ts
|
|
7532
|
-
async function reply$
|
|
7535
|
+
async function reply$4(response) {
|
|
7533
7536
|
if (!response.ok) {
|
|
7534
7537
|
const body = await response.json().catch(() => void 0);
|
|
7535
7538
|
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
@@ -7543,75 +7546,75 @@ window.__ModuleLoader__.load({
|
|
|
7543
7546
|
body: JSON.stringify(body)
|
|
7544
7547
|
});
|
|
7545
7548
|
async function listPresets(signal) {
|
|
7546
|
-
return await reply$
|
|
7549
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets`, {
|
|
7547
7550
|
credentials: "same-origin",
|
|
7548
7551
|
signal
|
|
7549
7552
|
}));
|
|
7550
7553
|
}
|
|
7551
7554
|
/** Makes a preset of the prose prompts a world carries. */
|
|
7552
7555
|
async function savePresetFromWorld(request, signal) {
|
|
7553
|
-
return await reply$
|
|
7556
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets`, {
|
|
7554
7557
|
...json$1("POST", request),
|
|
7555
7558
|
signal
|
|
7556
7559
|
}));
|
|
7557
7560
|
}
|
|
7558
7561
|
async function loadPresetStatus(session, signal) {
|
|
7559
|
-
return await reply$
|
|
7562
|
+
return await reply$4(await fetch(`${API_PREFIX}/sessions/preset?id=${encodeURIComponent(session)}`, {
|
|
7560
7563
|
credentials: "same-origin",
|
|
7561
7564
|
signal
|
|
7562
7565
|
}));
|
|
7563
7566
|
}
|
|
7564
7567
|
/** Puts a preset into the chat's story, or takes its preset out when no name is given. */
|
|
7565
7568
|
async function applyPreset(session, name, signal) {
|
|
7566
|
-
return await reply$
|
|
7569
|
+
return await reply$4(await fetch(`${API_PREFIX}/sessions/preset?id=${encodeURIComponent(session)}`, {
|
|
7567
7570
|
...json$1("POST", name === void 0 ? {} : { name }),
|
|
7568
7571
|
signal
|
|
7569
7572
|
}));
|
|
7570
7573
|
}
|
|
7571
7574
|
const empty = async (response) => {
|
|
7572
|
-
if (!response.ok) await reply$
|
|
7575
|
+
if (!response.ok) await reply$4(response);
|
|
7573
7576
|
};
|
|
7574
7577
|
async function readPreset(name, signal) {
|
|
7575
|
-
return await reply$
|
|
7578
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets/item?name=${encodeURIComponent(name)}`, {
|
|
7576
7579
|
credentials: "same-origin",
|
|
7577
7580
|
signal
|
|
7578
7581
|
}));
|
|
7579
7582
|
}
|
|
7580
7583
|
/** Makes a preset holding the shipped prose prompts, as a starting point to edit. */
|
|
7581
7584
|
async function createPreset(request, signal) {
|
|
7582
|
-
return await reply$
|
|
7585
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets`, {
|
|
7583
7586
|
...json$1("POST", request),
|
|
7584
7587
|
signal
|
|
7585
7588
|
}));
|
|
7586
7589
|
}
|
|
7587
7590
|
async function updatePresetInfo(name, change, signal) {
|
|
7588
|
-
return await reply$
|
|
7591
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets/item?name=${encodeURIComponent(name)}`, {
|
|
7589
7592
|
...json$1("PUT", change),
|
|
7590
7593
|
signal
|
|
7591
7594
|
}));
|
|
7592
7595
|
}
|
|
7593
7596
|
/** The prompts with rules of the game that the preset could take over from the shipped ones. */
|
|
7594
7597
|
async function listRulesPrompts(name, language, signal) {
|
|
7595
|
-
return await reply$
|
|
7598
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets/prompts?name=${encodeURIComponent(name)}&language=${encodeURIComponent(language)}`, {
|
|
7596
7599
|
credentials: "same-origin",
|
|
7597
7600
|
signal
|
|
7598
7601
|
}));
|
|
7599
7602
|
}
|
|
7600
7603
|
/** A prompt as a story with the preset gets it: the preset's own, else the shipped one. */
|
|
7601
7604
|
async function readPresetPrompt(name, language, id, signal) {
|
|
7602
|
-
return (await reply$
|
|
7605
|
+
return (await reply$4(await fetch(`${API_PREFIX}/presets/prompt?name=${encodeURIComponent(name)}&language=${encodeURIComponent(language)}&id=${encodeURIComponent(id)}`, {
|
|
7603
7606
|
credentials: "same-origin",
|
|
7604
7607
|
signal
|
|
7605
7608
|
}))).text;
|
|
7606
7609
|
}
|
|
7607
7610
|
async function writePresetPrompt(name, language, id, text, signal) {
|
|
7608
|
-
return await reply$
|
|
7611
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets/prompt?name=${encodeURIComponent(name)}&language=${encodeURIComponent(language)}&id=${encodeURIComponent(id)}`, {
|
|
7609
7612
|
...json$1("PUT", { text }),
|
|
7610
7613
|
signal
|
|
7611
7614
|
}));
|
|
7612
7615
|
}
|
|
7613
7616
|
async function removePresetPrompt(name, language, id, signal) {
|
|
7614
|
-
return await reply$
|
|
7617
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets/prompt?name=${encodeURIComponent(name)}&language=${encodeURIComponent(language)}&id=${encodeURIComponent(id)}`, {
|
|
7615
7618
|
method: "DELETE",
|
|
7616
7619
|
credentials: "same-origin",
|
|
7617
7620
|
signal
|
|
@@ -7626,7 +7629,7 @@ window.__ModuleLoader__.load({
|
|
|
7626
7629
|
}
|
|
7627
7630
|
/** Opens the authoring chat of a preset. */
|
|
7628
7631
|
async function authorPreset(name, language, signal) {
|
|
7629
|
-
return await reply$
|
|
7632
|
+
return await reply$4(await fetch(`${API_PREFIX}/presets/authoring?name=${encodeURIComponent(name)}`, {
|
|
7630
7633
|
...json$1("POST", { language }),
|
|
7631
7634
|
signal
|
|
7632
7635
|
}));
|
|
@@ -7643,12 +7646,12 @@ window.__ModuleLoader__.load({
|
|
|
7643
7646
|
}
|
|
7644
7647
|
tag$31.textContent = css$31;
|
|
7645
7648
|
var SamplingFields_module_css_default = {
|
|
7649
|
+
"field": "rp_9vxYSG_field",
|
|
7646
7650
|
"label": "rp_9vxYSG_label",
|
|
7647
|
-
"grid": "rp_9vxYSG_grid",
|
|
7648
7651
|
"input": "rp_9vxYSG_input",
|
|
7649
7652
|
"help": "rp_9vxYSG_help",
|
|
7650
|
-
"
|
|
7651
|
-
"
|
|
7653
|
+
"root": "rp_9vxYSG_root",
|
|
7654
|
+
"grid": "rp_9vxYSG_grid"
|
|
7652
7655
|
};
|
|
7653
7656
|
// src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
7654
7657
|
const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
|
|
@@ -8042,6 +8045,7 @@ window.__ModuleLoader__.load({
|
|
|
8042
8045
|
timeZone: info.timeZone,
|
|
8043
8046
|
startingTime: info.startingTime,
|
|
8044
8047
|
version: info.version,
|
|
8048
|
+
autonomy: info.autonomy,
|
|
8045
8049
|
preset: info.preset,
|
|
8046
8050
|
lorebooks: info.lorebooks,
|
|
8047
8051
|
sampling: samplingTexts(info.sampling),
|
|
@@ -8064,6 +8068,7 @@ window.__ModuleLoader__.load({
|
|
|
8064
8068
|
"version",
|
|
8065
8069
|
"preset"
|
|
8066
8070
|
]) if (draft[key].trim() !== saved[key].trim()) edit[key] = draft[key];
|
|
8071
|
+
if (draft.autonomy !== saved.autonomy) edit["autonomy"] = draft.autonomy;
|
|
8067
8072
|
if (JSON.stringify(draft.lorebooks) !== JSON.stringify(saved.lorebooks)) edit["lorebooks"] = draft.lorebooks;
|
|
8068
8073
|
if (JSON.stringify(samplingOfTexts(draft.sampling)) !== JSON.stringify(samplingOfTexts(saved.sampling))) edit["sampling"] = samplingOfTexts(draft.sampling);
|
|
8069
8074
|
if (JSON.stringify(words(draft.tags)) !== JSON.stringify(words(saved.tags))) edit["tags"] = words(draft.tags);
|
|
@@ -8373,6 +8378,31 @@ window.__ModuleLoader__.load({
|
|
|
8373
8378
|
field("authorUrl", "infoAuthorUrl", void 0, { placeholder: "https://" }),
|
|
8374
8379
|
field("timeZone", "infoTimeZone", "infoTimeZoneHelp", { placeholder: "Europe/London" }),
|
|
8375
8380
|
field("startingTime", "infoStartingTime", "infoStartingTimeHelp", { placeholder: "1912-04-14T23:40:00" }),
|
|
8381
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
8382
|
+
className: CharactersPanel_module_css_default.field,
|
|
8383
|
+
children: [
|
|
8384
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8385
|
+
className: CharactersPanel_module_css_default.label,
|
|
8386
|
+
children: t("infoAutonomy")
|
|
8387
|
+
}),
|
|
8388
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
8389
|
+
type: "checkbox",
|
|
8390
|
+
checked: draft.autonomy,
|
|
8391
|
+
"data-testid": "roleplay-world-autonomy",
|
|
8392
|
+
onChange: (event) => {
|
|
8393
|
+
setDraft({
|
|
8394
|
+
...draft,
|
|
8395
|
+
autonomy: event.target.checked
|
|
8396
|
+
});
|
|
8397
|
+
setStatus({ state: "idle" });
|
|
8398
|
+
}
|
|
8399
|
+
}),
|
|
8400
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8401
|
+
className: CharactersPanel_module_css_default.help,
|
|
8402
|
+
children: t("infoAutonomyHelp")
|
|
8403
|
+
})
|
|
8404
|
+
]
|
|
8405
|
+
}),
|
|
8376
8406
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
8377
8407
|
className: CharactersPanel_module_css_default.field,
|
|
8378
8408
|
children: [
|
|
@@ -9022,6 +9052,24 @@ window.__ModuleLoader__.load({
|
|
|
9022
9052
|
t("routineInterruptible")
|
|
9023
9053
|
] })
|
|
9024
9054
|
}),
|
|
9055
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
9056
|
+
className: CharactersPanel_module_css_default.field,
|
|
9057
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
9058
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9059
|
+
type: "checkbox",
|
|
9060
|
+
checked: window.sleep === true,
|
|
9061
|
+
onChange: (event) => {
|
|
9062
|
+
const { sleep: _s, ...rest } = window;
|
|
9063
|
+
change(draft.map((item, at) => at === index ? {
|
|
9064
|
+
...rest,
|
|
9065
|
+
...event.target.checked ? { sleep: true } : {}
|
|
9066
|
+
} : item));
|
|
9067
|
+
}
|
|
9068
|
+
}),
|
|
9069
|
+
" ",
|
|
9070
|
+
t("routineSleep")
|
|
9071
|
+
] })
|
|
9072
|
+
}),
|
|
9025
9073
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
9026
9074
|
variant: "ghost",
|
|
9027
9075
|
size: "sm",
|
|
@@ -9406,17 +9454,17 @@ window.__ModuleLoader__.load({
|
|
|
9406
9454
|
}
|
|
9407
9455
|
tag$30.textContent = css$30;
|
|
9408
9456
|
var ToolSwitches_module_css_default = {
|
|
9457
|
+
"help": "rp_CjoFLq_help",
|
|
9409
9458
|
"toolText": "rp_CjoFLq_toolText",
|
|
9410
|
-
"
|
|
9411
|
-
"
|
|
9459
|
+
"root": "rp_CjoFLq_root",
|
|
9460
|
+
"default": "rp_CjoFLq_default",
|
|
9412
9461
|
"external": "rp_CjoFLq_external",
|
|
9413
|
-
"help": "rp_CjoFLq_help",
|
|
9414
|
-
"title": "rp_CjoFLq_title",
|
|
9415
9462
|
"agent": "rp_CjoFLq_agent",
|
|
9416
|
-
"
|
|
9417
|
-
"root": "rp_CjoFLq_root",
|
|
9463
|
+
"title": "rp_CjoFLq_title",
|
|
9418
9464
|
"hint": "rp_CjoFLq_hint",
|
|
9419
|
-
"agentName": "rp_CjoFLq_agentName"
|
|
9465
|
+
"agentName": "rp_CjoFLq_agentName",
|
|
9466
|
+
"error": "rp_CjoFLq_error",
|
|
9467
|
+
"tool": "rp_CjoFLq_tool"
|
|
9420
9468
|
};
|
|
9421
9469
|
// src/client/widgets/tool-switches/ToolSwitches.tsx
|
|
9422
9470
|
/**
|
|
@@ -9991,6 +10039,7 @@ window.__ModuleLoader__.load({
|
|
|
9991
10039
|
subject: "character",
|
|
9992
10040
|
visibility: "public",
|
|
9993
10041
|
description: "",
|
|
10042
|
+
update: "",
|
|
9994
10043
|
min: "",
|
|
9995
10044
|
max: "",
|
|
9996
10045
|
integer: false,
|
|
@@ -10008,6 +10057,7 @@ window.__ModuleLoader__.load({
|
|
|
10008
10057
|
subject: value.subject,
|
|
10009
10058
|
visibility: value.visibility,
|
|
10010
10059
|
description: value.description ?? "",
|
|
10060
|
+
update: value.update ?? "",
|
|
10011
10061
|
min: value.min === void 0 ? "" : String(value.min),
|
|
10012
10062
|
max: value.max === void 0 ? "" : String(value.max),
|
|
10013
10063
|
integer: value.integer === true,
|
|
@@ -10043,6 +10093,7 @@ window.__ModuleLoader__.load({
|
|
|
10043
10093
|
subject: draft.subject,
|
|
10044
10094
|
visibility: draft.visibility,
|
|
10045
10095
|
...draft.description.trim() === "" ? {} : { description: draft.description.trim() },
|
|
10096
|
+
...draft.update.trim() === "" ? {} : { update: draft.update.trim() },
|
|
10046
10097
|
...draft.kind === "number" && min !== void 0 ? { min } : {},
|
|
10047
10098
|
...draft.kind === "number" && max !== void 0 ? { max } : {},
|
|
10048
10099
|
...draft.kind === "number" && draft.integer ? { integer: true } : {},
|
|
@@ -10216,6 +10267,7 @@ window.__ModuleLoader__.load({
|
|
|
10216
10267
|
})]
|
|
10217
10268
|
}),
|
|
10218
10269
|
text(index, "description", "description", true),
|
|
10270
|
+
text(index, "update", "variableUpdate", true),
|
|
10219
10271
|
entry.kind === "number" && text(index, "min", "variableMin"),
|
|
10220
10272
|
entry.kind === "number" && text(index, "max", "variableMax"),
|
|
10221
10273
|
text(index, "default", "variableDefault"),
|
|
@@ -10419,34 +10471,34 @@ window.__ModuleLoader__.load({
|
|
|
10419
10471
|
}
|
|
10420
10472
|
tag$29.textContent = css$29;
|
|
10421
10473
|
var GalleryView_module_css_default = {
|
|
10422
|
-
"editInput": "rp_9pSHmG_editInput",
|
|
10423
|
-
"select": "rp_9pSHmG_select",
|
|
10424
|
-
"editButton": "rp_9pSHmG_editButton",
|
|
10425
|
-
"editArea": "rp_9pSHmG_editArea",
|
|
10426
|
-
"thumb": "rp_9pSHmG_thumb",
|
|
10427
|
-
"caption": "rp_9pSHmG_caption",
|
|
10428
|
-
"status": "rp_9pSHmG_status",
|
|
10429
|
-
"edit": "rp_9pSHmG_edit",
|
|
10430
|
-
"error": "rp_9pSHmG_error",
|
|
10431
|
-
"grid": "rp_9pSHmG_grid",
|
|
10432
10474
|
"count": "rp_9pSHmG_count",
|
|
10433
|
-
"
|
|
10475
|
+
"status": "rp_9pSHmG_status",
|
|
10476
|
+
"actions": "rp_9pSHmG_actions",
|
|
10434
10477
|
"facts": "rp_9pSHmG_facts",
|
|
10435
|
-
"
|
|
10436
|
-
"
|
|
10478
|
+
"edit": "rp_9pSHmG_edit",
|
|
10479
|
+
"caption": "rp_9pSHmG_caption",
|
|
10480
|
+
"page": "rp_9pSHmG_page",
|
|
10437
10481
|
"large": "rp_9pSHmG_large",
|
|
10482
|
+
"editArea": "rp_9pSHmG_editArea",
|
|
10483
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
10438
10484
|
"image": "rp_9pSHmG_image",
|
|
10439
|
-
"
|
|
10440
|
-
"note": "rp_9pSHmG_note",
|
|
10441
|
-
"statusError": "rp_9pSHmG_statusError",
|
|
10442
|
-
"actions": "rp_9pSHmG_actions",
|
|
10443
|
-
"editHelp": "rp_9pSHmG_editHelp",
|
|
10485
|
+
"detail": "rp_9pSHmG_detail",
|
|
10444
10486
|
"tags": "rp_9pSHmG_tags",
|
|
10445
10487
|
"toolbar": "rp_9pSHmG_toolbar",
|
|
10446
10488
|
"editLabel": "rp_9pSHmG_editLabel",
|
|
10447
|
-
"
|
|
10489
|
+
"error": "rp_9pSHmG_error",
|
|
10490
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
10491
|
+
"editHelp": "rp_9pSHmG_editHelp",
|
|
10492
|
+
"editInput": "rp_9pSHmG_editInput",
|
|
10448
10493
|
"open": "rp_9pSHmG_open",
|
|
10449
|
-
"
|
|
10494
|
+
"select": "rp_9pSHmG_select",
|
|
10495
|
+
"thumb": "rp_9pSHmG_thumb",
|
|
10496
|
+
"note": "rp_9pSHmG_note",
|
|
10497
|
+
"editField": "rp_9pSHmG_editField",
|
|
10498
|
+
"message": "rp_9pSHmG_message",
|
|
10499
|
+
"pre": "rp_9pSHmG_pre",
|
|
10500
|
+
"grid": "rp_9pSHmG_grid",
|
|
10501
|
+
"cell": "rp_9pSHmG_cell",
|
|
10450
10502
|
"reusable": "rp_9pSHmG_reusable"
|
|
10451
10503
|
};
|
|
10452
10504
|
// src/client/widgets/gallery-view/GalleryView.tsx
|
|
@@ -10786,13 +10838,13 @@ window.__ModuleLoader__.load({
|
|
|
10786
10838
|
}
|
|
10787
10839
|
tag$28.textContent = css$28;
|
|
10788
10840
|
var WorldEditor_module_css_default = {
|
|
10789
|
-
"view": "rp__swA3a_view",
|
|
10790
|
-
"message": "rp__swA3a_message",
|
|
10791
|
-
"warning": "rp__swA3a_warning",
|
|
10792
|
-
"drawer": "rp__swA3a_drawer",
|
|
10793
10841
|
"drawerItem": "rp__swA3a_drawerItem",
|
|
10842
|
+
"drawer": "rp__swA3a_drawer",
|
|
10843
|
+
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
10794
10844
|
"content": "rp__swA3a_content",
|
|
10795
|
-
"
|
|
10845
|
+
"message": "rp__swA3a_message",
|
|
10846
|
+
"view": "rp__swA3a_view",
|
|
10847
|
+
"warning": "rp__swA3a_warning"
|
|
10796
10848
|
};
|
|
10797
10849
|
// src/client/world-editor/WorldEditor.tsx
|
|
10798
10850
|
const SECTIONS = [
|
|
@@ -11186,27 +11238,27 @@ window.__ModuleLoader__.load({
|
|
|
11186
11238
|
}
|
|
11187
11239
|
tag$27.textContent = css$27;
|
|
11188
11240
|
var AvatarsPage_module_css_default = {
|
|
11189
|
-
"
|
|
11190
|
-
"
|
|
11241
|
+
"grid": "rp_pQOzEG_grid",
|
|
11242
|
+
"card": "rp_pQOzEG_card",
|
|
11191
11243
|
"editHeader": "rp_pQOzEG_editHeader",
|
|
11244
|
+
"editTitle": "rp_pQOzEG_editTitle",
|
|
11192
11245
|
"form": "rp_pQOzEG_form",
|
|
11246
|
+
"label": "rp_pQOzEG_label",
|
|
11247
|
+
"open": "rp_pQOzEG_open",
|
|
11248
|
+
"name": "rp_pQOzEG_name",
|
|
11249
|
+
"portrait": "rp_pQOzEG_portrait",
|
|
11250
|
+
"error": "rp_pQOzEG_error",
|
|
11193
11251
|
"field": "rp_pQOzEG_field",
|
|
11252
|
+
"editBody": "rp_pQOzEG_editBody",
|
|
11194
11253
|
"count": "rp_pQOzEG_count",
|
|
11195
|
-
"
|
|
11196
|
-
"editTitle": "rp_pQOzEG_editTitle",
|
|
11197
|
-
"grid": "rp_pQOzEG_grid",
|
|
11254
|
+
"summary": "rp_pQOzEG_summary",
|
|
11198
11255
|
"text": "rp_pQOzEG_text",
|
|
11199
11256
|
"viewport": "rp_pQOzEG_viewport",
|
|
11200
|
-
"placeholder": "rp_pQOzEG_placeholder",
|
|
11201
|
-
"card": "rp_pQOzEG_card",
|
|
11202
11257
|
"message": "rp_pQOzEG_message",
|
|
11203
|
-
"
|
|
11204
|
-
"portrait": "rp_pQOzEG_portrait",
|
|
11205
|
-
"editBody": "rp_pQOzEG_editBody",
|
|
11258
|
+
"page": "rp_pQOzEG_page",
|
|
11206
11259
|
"toolbar": "rp_pQOzEG_toolbar",
|
|
11207
11260
|
"actions": "rp_pQOzEG_actions",
|
|
11208
|
-
"
|
|
11209
|
-
"error": "rp_pQOzEG_error"
|
|
11261
|
+
"placeholder": "rp_pQOzEG_placeholder"
|
|
11210
11262
|
};
|
|
11211
11263
|
// src/client/pages/avatars/AvatarsPage.tsx
|
|
11212
11264
|
const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
|
|
@@ -11702,6 +11754,7 @@ window.__ModuleLoader__.load({
|
|
|
11702
11754
|
routineFeature: "Spot in the place",
|
|
11703
11755
|
routinePosition: "Where exactly",
|
|
11704
11756
|
routineInterruptible: "Would drop it for something that comes up",
|
|
11757
|
+
routineSleep: "Asleep in this window",
|
|
11705
11758
|
routineRemove: "Remove window",
|
|
11706
11759
|
routineAdd: "Add a window",
|
|
11707
11760
|
day_mon: "Mon",
|
|
@@ -11762,6 +11815,8 @@ window.__ModuleLoader__.load({
|
|
|
11762
11815
|
infoAuthorUrl: "Author link",
|
|
11763
11816
|
infoTimeZone: "Time zone",
|
|
11764
11817
|
infoTimeZoneHelp: "An IANA name such as Europe/London. Empty means UTC.",
|
|
11818
|
+
infoAutonomy: "Stories go on while the player is away",
|
|
11819
|
+
infoAutonomyHelp: "Off unless you switch it on. A story of this world then starts on the real clock with the characters keeping to their days while nobody plays, and one may write to the player; the player can still turn it off for their story, and it stops by itself after a few things with no reply.",
|
|
11765
11820
|
infoStartingTime: "Story starts at",
|
|
11766
11821
|
infoStartingTimeHelp: "Date and time in that zone, like 1912-04-14T23:40:00.",
|
|
11767
11822
|
promptsLanguage: "Language",
|
|
@@ -11890,6 +11945,7 @@ window.__ModuleLoader__.load({
|
|
|
11890
11945
|
invalidPlayable: "A playable character must be a person and not a background character.",
|
|
11891
11946
|
invalidPriority: "A number from 0 to 1.",
|
|
11892
11947
|
back: "Back to the worlds",
|
|
11948
|
+
variableUpdate: "When and how it changes",
|
|
11893
11949
|
noPlaces: "This story has no places.",
|
|
11894
11950
|
noThings: "This story has no things.",
|
|
11895
11951
|
description: "Description",
|
|
@@ -12000,6 +12056,7 @@ window.__ModuleLoader__.load({
|
|
|
12000
12056
|
routineFeature: "地点中的位置",
|
|
12001
12057
|
routinePosition: "具体位置",
|
|
12002
12058
|
routineInterruptible: "有事发生时会放下它",
|
|
12059
|
+
routineSleep: "这个时段在睡觉",
|
|
12003
12060
|
routineRemove: "移除时段",
|
|
12004
12061
|
routineAdd: "添加时段",
|
|
12005
12062
|
day_mon: "周一",
|
|
@@ -12060,6 +12117,8 @@ window.__ModuleLoader__.load({
|
|
|
12060
12117
|
infoAuthorUrl: "作者链接",
|
|
12061
12118
|
infoTimeZone: "时区",
|
|
12062
12119
|
infoTimeZoneHelp: "IANA 名称,例如 Europe/London;留空为 UTC。",
|
|
12120
|
+
infoAutonomy: "玩家不在时故事继续",
|
|
12121
|
+
infoAutonomyHelp: "默认关闭,需要你打开。这个世界的故事会使用真实时钟,没人玩的时候角色按各自日程行事,其中一人可能给玩家写消息;玩家仍可为自己的故事关闭它,没有回复时它会在几件事之后自动停下。",
|
|
12063
12122
|
infoStartingTime: "故事开始于",
|
|
12064
12123
|
infoStartingTimeHelp: "该时区的日期和时间,例如 1912-04-14T23:40:00。",
|
|
12065
12124
|
promptsLanguage: "语言",
|
|
@@ -12188,6 +12247,7 @@ window.__ModuleLoader__.load({
|
|
|
12188
12247
|
invalidPlayable: "可扮演的角色必须是个人,且不能是背景角色。",
|
|
12189
12248
|
invalidPriority: "请填 0 到 1 之间的数。",
|
|
12190
12249
|
back: "返回世界列表",
|
|
12250
|
+
variableUpdate: "何时、如何变化",
|
|
12191
12251
|
noPlaces: "这个故事没有地点。",
|
|
12192
12252
|
noThings: "这个故事没有物品。",
|
|
12193
12253
|
description: "描述",
|
|
@@ -12695,37 +12755,37 @@ window.__ModuleLoader__.load({
|
|
|
12695
12755
|
}
|
|
12696
12756
|
tag$26.textContent = css$26;
|
|
12697
12757
|
var LorebooksPage_module_css_default = {
|
|
12758
|
+
"grid": "rp_VV-Eha_grid",
|
|
12759
|
+
"field": "rp_VV-Eha_field",
|
|
12760
|
+
"message": "rp_VV-Eha_message",
|
|
12698
12761
|
"entryArea": "rp_VV-Eha_entryArea",
|
|
12699
|
-
"
|
|
12700
|
-
"count": "rp_VV-Eha_count",
|
|
12701
|
-
"name": "rp_VV-Eha_name",
|
|
12702
|
-
"section": "rp_VV-Eha_section",
|
|
12703
|
-
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
12704
|
-
"card": "rp_VV-Eha_card",
|
|
12705
|
-
"cardActions": "rp_VV-Eha_cardActions",
|
|
12762
|
+
"help": "rp_VV-Eha_help",
|
|
12706
12763
|
"title": "rp_VV-Eha_title",
|
|
12707
12764
|
"ok": "rp_VV-Eha_ok",
|
|
12708
|
-
"
|
|
12709
|
-
"
|
|
12710
|
-
"
|
|
12711
|
-
"
|
|
12712
|
-
"
|
|
12713
|
-
"
|
|
12714
|
-
"
|
|
12715
|
-
"actions": "rp_VV-Eha_actions",
|
|
12765
|
+
"cardActions": "rp_VV-Eha_cardActions",
|
|
12766
|
+
"card": "rp_VV-Eha_card",
|
|
12767
|
+
"name": "rp_VV-Eha_name",
|
|
12768
|
+
"warning": "rp_VV-Eha_warning",
|
|
12769
|
+
"meta": "rp_VV-Eha_meta",
|
|
12770
|
+
"description": "rp_VV-Eha_description",
|
|
12771
|
+
"viewport": "rp_VV-Eha_viewport",
|
|
12716
12772
|
"input": "rp_VV-Eha_input",
|
|
12773
|
+
"actions": "rp_VV-Eha_actions",
|
|
12774
|
+
"editHeader": "rp_VV-Eha_editHeader",
|
|
12775
|
+
"form": "rp_VV-Eha_form",
|
|
12776
|
+
"select": "rp_VV-Eha_select",
|
|
12777
|
+
"count": "rp_VV-Eha_count",
|
|
12778
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
12779
|
+
"section": "rp_VV-Eha_section",
|
|
12717
12780
|
"label": "rp_VV-Eha_label",
|
|
12718
12781
|
"toolbar": "rp_VV-Eha_toolbar",
|
|
12719
|
-
"
|
|
12720
|
-
"
|
|
12721
|
-
"
|
|
12722
|
-
"
|
|
12723
|
-
"grid": "rp_VV-Eha_grid",
|
|
12724
|
-
"error": "rp_VV-Eha_error",
|
|
12725
|
-
"form": "rp_VV-Eha_form",
|
|
12726
|
-
"meta": "rp_VV-Eha_meta",
|
|
12782
|
+
"row": "rp_VV-Eha_row",
|
|
12783
|
+
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
12784
|
+
"page": "rp_VV-Eha_page",
|
|
12785
|
+
"area": "rp_VV-Eha_area",
|
|
12727
12786
|
"head": "rp_VV-Eha_head",
|
|
12728
|
-
"
|
|
12787
|
+
"error": "rp_VV-Eha_error",
|
|
12788
|
+
"editBody": "rp_VV-Eha_editBody"
|
|
12729
12789
|
};
|
|
12730
12790
|
// src/client/pages/lorebooks/LorebookEditor.tsx
|
|
12731
12791
|
const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -13764,35 +13824,35 @@ window.__ModuleLoader__.load({
|
|
|
13764
13824
|
}
|
|
13765
13825
|
tag$25.textContent = css$25;
|
|
13766
13826
|
var PresetsPage_module_css_default = {
|
|
13767
|
-
"
|
|
13768
|
-
"
|
|
13769
|
-
"meta": "rp_ZK89ba_meta",
|
|
13770
|
-
"warning": "rp_ZK89ba_warning",
|
|
13771
|
-
"page": "rp_ZK89ba_page",
|
|
13772
|
-
"viewport": "rp_ZK89ba_viewport",
|
|
13773
|
-
"name": "rp_ZK89ba_name",
|
|
13774
|
-
"editHeader": "rp_ZK89ba_editHeader",
|
|
13827
|
+
"title": "rp_ZK89ba_title",
|
|
13828
|
+
"editTitle": "rp_ZK89ba_editTitle",
|
|
13775
13829
|
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
13776
13830
|
"card": "rp_ZK89ba_card",
|
|
13777
|
-
"
|
|
13778
|
-
"
|
|
13779
|
-
"head": "rp_ZK89ba_head",
|
|
13831
|
+
"help": "rp_ZK89ba_help",
|
|
13832
|
+
"warning": "rp_ZK89ba_warning",
|
|
13780
13833
|
"cardActions": "rp_ZK89ba_cardActions",
|
|
13781
|
-
"
|
|
13782
|
-
"
|
|
13783
|
-
"row": "rp_ZK89ba_row",
|
|
13784
|
-
"label": "rp_ZK89ba_label",
|
|
13785
|
-
"toolbar": "rp_ZK89ba_toolbar",
|
|
13786
|
-
"description": "rp_ZK89ba_description",
|
|
13787
|
-
"editBody": "rp_ZK89ba_editBody",
|
|
13834
|
+
"ok": "rp_ZK89ba_ok",
|
|
13835
|
+
"page": "rp_ZK89ba_page",
|
|
13788
13836
|
"section": "rp_ZK89ba_section",
|
|
13837
|
+
"meta": "rp_ZK89ba_meta",
|
|
13838
|
+
"actions": "rp_ZK89ba_actions",
|
|
13839
|
+
"editHeader": "rp_ZK89ba_editHeader",
|
|
13840
|
+
"name": "rp_ZK89ba_name",
|
|
13841
|
+
"label": "rp_ZK89ba_label",
|
|
13842
|
+
"grid": "rp_ZK89ba_grid",
|
|
13843
|
+
"viewport": "rp_ZK89ba_viewport",
|
|
13844
|
+
"error": "rp_ZK89ba_error",
|
|
13789
13845
|
"field": "rp_ZK89ba_field",
|
|
13790
13846
|
"area": "rp_ZK89ba_area",
|
|
13791
|
-
"error": "rp_ZK89ba_error",
|
|
13792
|
-
"grid": "rp_ZK89ba_grid",
|
|
13793
|
-
"help": "rp_ZK89ba_help",
|
|
13794
13847
|
"form": "rp_ZK89ba_form",
|
|
13795
|
-
"input": "rp_ZK89ba_input"
|
|
13848
|
+
"input": "rp_ZK89ba_input",
|
|
13849
|
+
"message": "rp_ZK89ba_message",
|
|
13850
|
+
"row": "rp_ZK89ba_row",
|
|
13851
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
13852
|
+
"head": "rp_ZK89ba_head",
|
|
13853
|
+
"count": "rp_ZK89ba_count",
|
|
13854
|
+
"description": "rp_ZK89ba_description",
|
|
13855
|
+
"editBody": "rp_ZK89ba_editBody"
|
|
13796
13856
|
};
|
|
13797
13857
|
// src/client/pages/presets/PresetEditor.tsx
|
|
13798
13858
|
const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -14821,7 +14881,7 @@ window.__ModuleLoader__.load({
|
|
|
14821
14881
|
}, PresetsPage));
|
|
14822
14882
|
}
|
|
14823
14883
|
// src/client/prompts-api.ts
|
|
14824
|
-
async function reply$
|
|
14884
|
+
async function reply$3(response) {
|
|
14825
14885
|
if (!response.ok) {
|
|
14826
14886
|
const body = await response.json().catch(() => void 0);
|
|
14827
14887
|
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
@@ -14830,19 +14890,19 @@ window.__ModuleLoader__.load({
|
|
|
14830
14890
|
}
|
|
14831
14891
|
const address$1 = (id, language, suffix = "") => `${API_PREFIX}/prompts/item${suffix}?id=${encodeURIComponent(id)}&language=${encodeURIComponent(language)}`;
|
|
14832
14892
|
async function listPrompts(signal) {
|
|
14833
|
-
return await reply$
|
|
14893
|
+
return await reply$3(await fetch(`${API_PREFIX}/prompts`, {
|
|
14834
14894
|
credentials: "same-origin",
|
|
14835
14895
|
signal
|
|
14836
14896
|
}));
|
|
14837
14897
|
}
|
|
14838
14898
|
async function readPrompt(id, language, signal) {
|
|
14839
|
-
return await reply$
|
|
14899
|
+
return await reply$3(await fetch(address$1(id, language), {
|
|
14840
14900
|
credentials: "same-origin",
|
|
14841
14901
|
signal
|
|
14842
14902
|
}));
|
|
14843
14903
|
}
|
|
14844
14904
|
async function savePrompt(id, language, text, signal) {
|
|
14845
|
-
return await reply$
|
|
14905
|
+
return await reply$3(await fetch(address$1(id, language), {
|
|
14846
14906
|
method: "PUT",
|
|
14847
14907
|
credentials: "same-origin",
|
|
14848
14908
|
headers: { "content-type": "application/json" },
|
|
@@ -14852,7 +14912,7 @@ window.__ModuleLoader__.load({
|
|
|
14852
14912
|
}
|
|
14853
14913
|
/** Replaces the file with the shipped text; the host keeps the old file in the trash. */
|
|
14854
14914
|
async function resetPrompt(id, language, signal) {
|
|
14855
|
-
return await reply$
|
|
14915
|
+
return await reply$3(await fetch(address$1(id, language, "/reset"), {
|
|
14856
14916
|
method: "POST",
|
|
14857
14917
|
credentials: "same-origin",
|
|
14858
14918
|
signal
|
|
@@ -14885,33 +14945,33 @@ window.__ModuleLoader__.load({
|
|
|
14885
14945
|
tag$24.textContent = css$24;
|
|
14886
14946
|
var PromptsPage_module_css_default = {
|
|
14887
14947
|
"error": "rp_DLg_5G_error",
|
|
14888
|
-
"group": "rp_DLg_5G_group",
|
|
14889
|
-
"count": "rp_DLg_5G_count",
|
|
14890
|
-
"panes": "rp_DLg_5G_panes",
|
|
14891
|
-
"label": "rp_DLg_5G_label",
|
|
14892
14948
|
"row": "rp_DLg_5G_row",
|
|
14893
|
-
"shipped": "rp_DLg_5G_shipped",
|
|
14894
|
-
"line": "rp_DLg_5G_line",
|
|
14895
|
-
"rowName": "rp_DLg_5G_rowName",
|
|
14896
|
-
"actions": "rp_DLg_5G_actions",
|
|
14897
|
-
"check": "rp_DLg_5G_check",
|
|
14898
14949
|
"editBody": "rp_DLg_5G_editBody",
|
|
14899
|
-
"
|
|
14950
|
+
"pane": "rp_DLg_5G_pane",
|
|
14900
14951
|
"help": "rp_DLg_5G_help",
|
|
14952
|
+
"ok": "rp_DLg_5G_ok",
|
|
14901
14953
|
"editTitle": "rp_DLg_5G_editTitle",
|
|
14902
|
-
"
|
|
14903
|
-
"
|
|
14954
|
+
"panes": "rp_DLg_5G_panes",
|
|
14955
|
+
"sign": "rp_DLg_5G_sign",
|
|
14956
|
+
"viewport": "rp_DLg_5G_viewport",
|
|
14957
|
+
"list": "rp_DLg_5G_list",
|
|
14958
|
+
"area": "rp_DLg_5G_area",
|
|
14959
|
+
"missing": "rp_DLg_5G_missing",
|
|
14960
|
+
"rowName": "rp_DLg_5G_rowName",
|
|
14904
14961
|
"message": "rp_DLg_5G_message",
|
|
14962
|
+
"actions": "rp_DLg_5G_actions",
|
|
14963
|
+
"shipped": "rp_DLg_5G_shipped",
|
|
14964
|
+
"page": "rp_DLg_5G_page",
|
|
14965
|
+
"count": "rp_DLg_5G_count",
|
|
14966
|
+
"editHeader": "rp_DLg_5G_editHeader",
|
|
14967
|
+
"check": "rp_DLg_5G_check",
|
|
14905
14968
|
"toolbar": "rp_DLg_5G_toolbar",
|
|
14969
|
+
"group": "rp_DLg_5G_group",
|
|
14970
|
+
"rowLanguage": "rp_DLg_5G_rowLanguage",
|
|
14906
14971
|
"spacer": "rp_DLg_5G_spacer",
|
|
14907
|
-
"
|
|
14908
|
-
"
|
|
14909
|
-
"
|
|
14910
|
-
"area": "rp_DLg_5G_area",
|
|
14911
|
-
"sign": "rp_DLg_5G_sign",
|
|
14912
|
-
"missing": "rp_DLg_5G_missing",
|
|
14913
|
-
"viewport": "rp_DLg_5G_viewport",
|
|
14914
|
-
"list": "rp_DLg_5G_list"
|
|
14972
|
+
"label": "rp_DLg_5G_label",
|
|
14973
|
+
"line": "rp_DLg_5G_line",
|
|
14974
|
+
"warning": "rp_DLg_5G_warning"
|
|
14915
14975
|
};
|
|
14916
14976
|
// src/client/pages/prompts/PromptEditor.tsx
|
|
14917
14977
|
const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -15465,8 +15525,8 @@ window.__ModuleLoader__.load({
|
|
|
15465
15525
|
}
|
|
15466
15526
|
tag$23.textContent = css$23;
|
|
15467
15527
|
var Pager_module_css_default = {
|
|
15468
|
-
"
|
|
15469
|
-
"
|
|
15528
|
+
"pager": "rp_KBAD0W_pager",
|
|
15529
|
+
"position": "rp_KBAD0W_position"
|
|
15470
15530
|
};
|
|
15471
15531
|
// src/client/widgets/pager/Pager.tsx
|
|
15472
15532
|
/** Previous and next buttons around the current position; the owner supplies every label. */
|
|
@@ -15535,11 +15595,11 @@ window.__ModuleLoader__.load({
|
|
|
15535
15595
|
}
|
|
15536
15596
|
tag$21.textContent = css$21;
|
|
15537
15597
|
var DeleteSessionDialog_module_css_default = {
|
|
15538
|
-
"body": "rp_FifHrW_body",
|
|
15539
15598
|
"warning": "rp_FifHrW_warning",
|
|
15540
|
-
"choice": "rp_FifHrW_choice",
|
|
15541
15599
|
"question": "rp_FifHrW_question",
|
|
15542
|
-
"error": "rp_FifHrW_error"
|
|
15600
|
+
"error": "rp_FifHrW_error",
|
|
15601
|
+
"body": "rp_FifHrW_body",
|
|
15602
|
+
"choice": "rp_FifHrW_choice"
|
|
15543
15603
|
};
|
|
15544
15604
|
// src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
15545
15605
|
/** Asks for confirmation before a session and everything saved with it is removed. */
|
|
@@ -15673,7 +15733,7 @@ window.__ModuleLoader__.load({
|
|
|
15673
15733
|
const SYNC_PASSWORD_REF = "ROLEPLAY_SYNC_RCLONE_CONFIG_PASS";
|
|
15674
15734
|
const SYNC_CHANGED = "roleplay-sync-changed";
|
|
15675
15735
|
// src/client/sync-api.ts
|
|
15676
|
-
async function reply$
|
|
15736
|
+
async function reply$2(response) {
|
|
15677
15737
|
if (!response.ok) {
|
|
15678
15738
|
const body = await response.json().catch(() => void 0);
|
|
15679
15739
|
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
@@ -15687,20 +15747,20 @@ window.__ModuleLoader__.load({
|
|
|
15687
15747
|
body: JSON.stringify(body)
|
|
15688
15748
|
});
|
|
15689
15749
|
async function loadSyncStatus(signal) {
|
|
15690
|
-
return await reply$
|
|
15750
|
+
return await reply$2(await fetch(`${API_PREFIX}/sync/status`, {
|
|
15691
15751
|
credentials: "same-origin",
|
|
15692
15752
|
signal
|
|
15693
15753
|
}));
|
|
15694
15754
|
}
|
|
15695
15755
|
/** Syncs every unit, or only the named ones; resolves when the run is over. */
|
|
15696
15756
|
async function runSync(units, signal) {
|
|
15697
|
-
return await reply$
|
|
15757
|
+
return await reply$2(await fetch(`${API_PREFIX}/sync/run`, {
|
|
15698
15758
|
...json("POST", units === void 0 ? {} : { units }),
|
|
15699
15759
|
signal
|
|
15700
15760
|
}));
|
|
15701
15761
|
}
|
|
15702
15762
|
async function resolveSync(unit, side, signal) {
|
|
15703
|
-
return await reply$
|
|
15763
|
+
return await reply$2(await fetch(`${API_PREFIX}/sync/resolve`, {
|
|
15704
15764
|
...json("POST", {
|
|
15705
15765
|
unit,
|
|
15706
15766
|
side
|
|
@@ -15710,27 +15770,27 @@ window.__ModuleLoader__.load({
|
|
|
15710
15770
|
}
|
|
15711
15771
|
/** Stops syncing a unit that was deleted here; the remote's copy stays and is not brought back until `restoreSync`. */
|
|
15712
15772
|
async function forgetSync(unit, signal) {
|
|
15713
|
-
await reply$
|
|
15773
|
+
await reply$2(await fetch(`${API_PREFIX}/sync/forget`, {
|
|
15714
15774
|
...json("POST", { unit }),
|
|
15715
15775
|
signal
|
|
15716
15776
|
}));
|
|
15717
15777
|
}
|
|
15718
15778
|
/** Lets a unit that was forgotten sync again, which brings the remote's copy back on the next run. */
|
|
15719
15779
|
async function restoreSync(unit, signal) {
|
|
15720
|
-
await reply$
|
|
15780
|
+
await reply$2(await fetch(`${API_PREFIX}/sync/restore`, {
|
|
15721
15781
|
...json("POST", { unit }),
|
|
15722
15782
|
signal
|
|
15723
15783
|
}));
|
|
15724
15784
|
}
|
|
15725
15785
|
async function describePassword(reference, signal) {
|
|
15726
|
-
return await reply$
|
|
15786
|
+
return await reply$2(await fetch(`${API_PREFIX}/sync/password?ref=${encodeURIComponent(reference)}`, {
|
|
15727
15787
|
credentials: "same-origin",
|
|
15728
15788
|
signal
|
|
15729
15789
|
}));
|
|
15730
15790
|
}
|
|
15731
15791
|
/** Stores the password of the rclone configuration file, or removes it when the value is empty; the value is never sent back. */
|
|
15732
15792
|
async function storePassword(reference, value, signal) {
|
|
15733
|
-
const status = await reply$
|
|
15793
|
+
const status = await reply$2(await fetch(`${API_PREFIX}/sync/password`, {
|
|
15734
15794
|
...json("PUT", {
|
|
15735
15795
|
ref: reference,
|
|
15736
15796
|
value
|
|
@@ -16063,28 +16123,28 @@ window.__ModuleLoader__.load({
|
|
|
16063
16123
|
}
|
|
16064
16124
|
tag$20.textContent = css$20;
|
|
16065
16125
|
var SessionsPage_module_css_default = {
|
|
16066
|
-
"table": "rp_24z4eW_table",
|
|
16067
|
-
"name": "rp_24z4eW_name",
|
|
16068
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
16069
|
-
"count": "rp_24z4eW_count",
|
|
16070
|
-
"page": "rp_24z4eW_page",
|
|
16071
|
-
"fits": "rp_24z4eW_fits",
|
|
16072
|
-
"spinning": "rp_24z4eW_spinning",
|
|
16073
|
-
"actions": "rp_24z4eW_actions",
|
|
16074
|
-
"spin": "rp_24z4eW_spin",
|
|
16075
16126
|
"badge": "rp_24z4eW_badge",
|
|
16076
|
-
"toolbar": "rp_24z4eW_toolbar",
|
|
16077
16127
|
"notice": "rp_24z4eW_notice",
|
|
16078
|
-
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
16079
|
-
"secondary": "rp_24z4eW_secondary",
|
|
16080
|
-
"viewport": "rp_24z4eW_viewport",
|
|
16081
|
-
"worldColumn": "rp_24z4eW_worldColumn",
|
|
16082
|
-
"message": "rp_24z4eW_message",
|
|
16083
16128
|
"nameColumn": "rp_24z4eW_nameColumn",
|
|
16129
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
16130
|
+
"page": "rp_24z4eW_page",
|
|
16084
16131
|
"archived": "rp_24z4eW_archived",
|
|
16132
|
+
"spinning": "rp_24z4eW_spinning",
|
|
16133
|
+
"message": "rp_24z4eW_message",
|
|
16134
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
16135
|
+
"secondary": "rp_24z4eW_secondary",
|
|
16085
16136
|
"number": "rp_24z4eW_number",
|
|
16086
|
-
"
|
|
16087
|
-
"
|
|
16137
|
+
"toolbar": "rp_24z4eW_toolbar",
|
|
16138
|
+
"fits": "rp_24z4eW_fits",
|
|
16139
|
+
"name": "rp_24z4eW_name",
|
|
16140
|
+
"actions": "rp_24z4eW_actions",
|
|
16141
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
16142
|
+
"count": "rp_24z4eW_count",
|
|
16143
|
+
"viewport": "rp_24z4eW_viewport",
|
|
16144
|
+
"spin": "rp_24z4eW_spin",
|
|
16145
|
+
"table": "rp_24z4eW_table",
|
|
16146
|
+
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
16147
|
+
"worldColumn": "rp_24z4eW_worldColumn"
|
|
16088
16148
|
};
|
|
16089
16149
|
// src/client/pages/sessions/SessionsPage.tsx
|
|
16090
16150
|
/** The sessions as a table, one page at a time, the most recently played first. */
|
|
@@ -16505,29 +16565,29 @@ window.__ModuleLoader__.load({
|
|
|
16505
16565
|
}
|
|
16506
16566
|
tag$19.textContent = css$19;
|
|
16507
16567
|
var SyncPage_module_css_default = {
|
|
16568
|
+
"page": "rp_Gk-byG_page",
|
|
16508
16569
|
"kindColumn": "rp_Gk-byG_kindColumn",
|
|
16570
|
+
"choices": "rp_Gk-byG_choices",
|
|
16571
|
+
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
16509
16572
|
"actions": "rp_Gk-byG_actions",
|
|
16510
|
-
"
|
|
16573
|
+
"message": "rp_Gk-byG_message",
|
|
16511
16574
|
"confirmation": "rp_Gk-byG_confirmation",
|
|
16575
|
+
"meta": "rp_Gk-byG_meta",
|
|
16576
|
+
"toolbar": "rp_Gk-byG_toolbar",
|
|
16577
|
+
"problem": "rp_Gk-byG_problem",
|
|
16578
|
+
"stateColumn": "rp_Gk-byG_stateColumn",
|
|
16579
|
+
"detail": "rp_Gk-byG_detail",
|
|
16512
16580
|
"actionHeading": "rp_Gk-byG_actionHeading",
|
|
16581
|
+
"unitColumn": "rp_Gk-byG_unitColumn",
|
|
16513
16582
|
"viewport": "rp_Gk-byG_viewport",
|
|
16514
|
-
"
|
|
16515
|
-
"unit": "rp_Gk-byG_unit",
|
|
16516
|
-
"toolbar": "rp_Gk-byG_toolbar",
|
|
16583
|
+
"detailsColumn": "rp_Gk-byG_detailsColumn",
|
|
16517
16584
|
"failed": "rp_Gk-byG_failed",
|
|
16518
|
-
"stateColumn": "rp_Gk-byG_stateColumn",
|
|
16519
|
-
"syncedColumn": "rp_Gk-byG_syncedColumn",
|
|
16520
|
-
"choices": "rp_Gk-byG_choices",
|
|
16521
16585
|
"error": "rp_Gk-byG_error",
|
|
16522
|
-
"
|
|
16523
|
-
"message": "rp_Gk-byG_message",
|
|
16524
|
-
"problem": "rp_Gk-byG_problem",
|
|
16586
|
+
"table": "rp_Gk-byG_table",
|
|
16525
16587
|
"caption": "rp_Gk-byG_caption",
|
|
16526
16588
|
"conflict": "rp_Gk-byG_conflict",
|
|
16527
|
-
"
|
|
16528
|
-
"
|
|
16529
|
-
"actionsColumn": "rp_Gk-byG_actionsColumn",
|
|
16530
|
-
"detailsColumn": "rp_Gk-byG_detailsColumn"
|
|
16589
|
+
"unit": "rp_Gk-byG_unit",
|
|
16590
|
+
"syncedColumn": "rp_Gk-byG_syncedColumn"
|
|
16531
16591
|
};
|
|
16532
16592
|
// src/client/pages/sync/SyncPage.tsx
|
|
16533
16593
|
const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
|
|
@@ -17040,16 +17100,16 @@ window.__ModuleLoader__.load({
|
|
|
17040
17100
|
}
|
|
17041
17101
|
tag$18.textContent = css$18;
|
|
17042
17102
|
var WorldCard_module_css_default = {
|
|
17043
|
-
"
|
|
17044
|
-
"play": "rp_Bvxx5q_play",
|
|
17045
|
-
"name": "rp_Bvxx5q_name",
|
|
17103
|
+
"card": "rp_Bvxx5q_card",
|
|
17046
17104
|
"image": "rp_Bvxx5q_image",
|
|
17047
17105
|
"placeholder": "rp_Bvxx5q_placeholder",
|
|
17106
|
+
"play": "rp_Bvxx5q_play",
|
|
17107
|
+
"name": "rp_Bvxx5q_name",
|
|
17048
17108
|
"cover": "rp_Bvxx5q_cover",
|
|
17049
|
-
"tags": "rp_Bvxx5q_tags",
|
|
17050
|
-
"openButton": "rp_Bvxx5q_openButton",
|
|
17051
17109
|
"tag": "rp_Bvxx5q_tag",
|
|
17052
|
-
"
|
|
17110
|
+
"info": "rp_Bvxx5q_info",
|
|
17111
|
+
"tags": "rp_Bvxx5q_tags",
|
|
17112
|
+
"openButton": "rp_Bvxx5q_openButton"
|
|
17053
17113
|
};
|
|
17054
17114
|
// src/client/widgets/world-card/WorldCard.tsx
|
|
17055
17115
|
/** Stable hue per name, so a world without a cover keeps the same colour. */
|
|
@@ -17147,9 +17207,9 @@ window.__ModuleLoader__.load({
|
|
|
17147
17207
|
tag$17.textContent = css$17;
|
|
17148
17208
|
var AvatarChoices_module_css_default = {
|
|
17149
17209
|
"option": "rp_YCstOG_option",
|
|
17150
|
-
"summary": "rp_YCstOG_summary",
|
|
17151
17210
|
"name": "rp_YCstOG_name",
|
|
17152
|
-
"text": "rp_YCstOG_text"
|
|
17211
|
+
"text": "rp_YCstOG_text",
|
|
17212
|
+
"summary": "rp_YCstOG_summary"
|
|
17153
17213
|
};
|
|
17154
17214
|
// src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
17155
17215
|
/** A list of avatars to tick: the ones brought into a world or a session. */
|
|
@@ -17187,18 +17247,18 @@ window.__ModuleLoader__.load({
|
|
|
17187
17247
|
}
|
|
17188
17248
|
tag$16.textContent = css$16;
|
|
17189
17249
|
var StartSessionDialog_module_css_default = {
|
|
17190
|
-
"
|
|
17191
|
-
"
|
|
17250
|
+
"option": "rp_AnbLKG_option",
|
|
17251
|
+
"optionText": "rp_AnbLKG_optionText",
|
|
17192
17252
|
"optionName": "rp_AnbLKG_optionName",
|
|
17193
|
-
"
|
|
17194
|
-
"form": "rp_AnbLKG_form",
|
|
17195
|
-
"optionText": "rp_AnbLKG_optionText",
|
|
17196
|
-
"label": "rp_AnbLKG_label",
|
|
17253
|
+
"message": "rp_AnbLKG_message",
|
|
17197
17254
|
"advanced": "rp_AnbLKG_advanced",
|
|
17198
|
-
"option": "rp_AnbLKG_option",
|
|
17199
17255
|
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
17200
|
-
"
|
|
17201
|
-
"
|
|
17256
|
+
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
17257
|
+
"label": "rp_AnbLKG_label",
|
|
17258
|
+
"form": "rp_AnbLKG_form",
|
|
17259
|
+
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
17260
|
+
"error": "rp_AnbLKG_error",
|
|
17261
|
+
"field": "rp_AnbLKG_field"
|
|
17202
17262
|
};
|
|
17203
17263
|
// src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
17204
17264
|
/** Asks which avatars become characters of a world's own files. */
|
|
@@ -17293,8 +17353,13 @@ window.__ModuleLoader__.load({
|
|
|
17293
17353
|
"reflection",
|
|
17294
17354
|
"agency",
|
|
17295
17355
|
"refusal",
|
|
17356
|
+
"repeats",
|
|
17296
17357
|
"rules",
|
|
17297
|
-
"secrets"
|
|
17358
|
+
"secrets",
|
|
17359
|
+
"messages",
|
|
17360
|
+
"errands",
|
|
17361
|
+
"variables",
|
|
17362
|
+
"reuse"
|
|
17298
17363
|
];
|
|
17299
17364
|
const EXTRA_MODES = ["off", "on"];
|
|
17300
17365
|
/**
|
|
@@ -17312,6 +17377,12 @@ window.__ModuleLoader__.load({
|
|
|
17312
17377
|
];
|
|
17313
17378
|
/** What a gate can be set to: the modes of any site, or off. */
|
|
17314
17379
|
const GATE_MODES = ["off", ...DECISION_MODES];
|
|
17380
|
+
/** What the repeat check can be set to: a gate's modes, or `strict`, which refuses every repeated sentence by code alone, with no model, and so may refuse a repeat that was meant. */
|
|
17381
|
+
const REPEAT_MODES = [
|
|
17382
|
+
"off",
|
|
17383
|
+
"strict",
|
|
17384
|
+
...DECISION_MODES
|
|
17385
|
+
];
|
|
17315
17386
|
// src/shared/rules.ts
|
|
17316
17387
|
/** The longest text of the player's own rules. */
|
|
17317
17388
|
const MAX_OWN_RULES = 2e3;
|
|
@@ -17342,7 +17413,7 @@ window.__ModuleLoader__.load({
|
|
|
17342
17413
|
options,
|
|
17343
17414
|
fallback
|
|
17344
17415
|
});
|
|
17345
|
-
const text$
|
|
17416
|
+
const text$2 = (max, fallback) => ({
|
|
17346
17417
|
kind: "text",
|
|
17347
17418
|
max,
|
|
17348
17419
|
fallback
|
|
@@ -17378,7 +17449,7 @@ window.__ModuleLoader__.load({
|
|
|
17378
17449
|
},
|
|
17379
17450
|
clock: {
|
|
17380
17451
|
mode: choice(CLOCK_MODES, "simulated"),
|
|
17381
|
-
timeZone: text$
|
|
17452
|
+
timeZone: text$2(64, ""),
|
|
17382
17453
|
roundSeconds: integer(0, 3600, 30),
|
|
17383
17454
|
maxSkipDays: integer(1, 3650, 30)
|
|
17384
17455
|
},
|
|
@@ -17390,6 +17461,18 @@ window.__ModuleLoader__.load({
|
|
|
17390
17461
|
joint: flag(true),
|
|
17391
17462
|
summary: flag(true)
|
|
17392
17463
|
},
|
|
17464
|
+
schedule: { enabled: flag(true) },
|
|
17465
|
+
autonomy: {
|
|
17466
|
+
enabled: flag(false),
|
|
17467
|
+
messages: flag(true),
|
|
17468
|
+
maxUnanswered: integer(1, 20, 3),
|
|
17469
|
+
idleMinutes: integer(1, 10080, 15),
|
|
17470
|
+
awayHours: integer(1, 720, 12),
|
|
17471
|
+
chance: ratio(0, 1, .05),
|
|
17472
|
+
decay: ratio(0, 1, .5),
|
|
17473
|
+
transitionChance: ratio(0, 1, .4),
|
|
17474
|
+
messageGapMinutes: integer(5, 10080, 180)
|
|
17475
|
+
},
|
|
17393
17476
|
sampling: {
|
|
17394
17477
|
master: ratio(0, 2, .7),
|
|
17395
17478
|
characters: ratio(0, 2, .8),
|
|
@@ -17408,8 +17491,8 @@ window.__ModuleLoader__.load({
|
|
|
17408
17491
|
shortMaxTokens: integer(256, 64e3, 2e3),
|
|
17409
17492
|
headroom: ratio(1, 10, 2)
|
|
17410
17493
|
},
|
|
17411
|
-
prompts: { language: text$
|
|
17412
|
-
reasoning: { children: text$
|
|
17494
|
+
prompts: { language: text$2(8, "en") },
|
|
17495
|
+
reasoning: { children: text$2(40, "") },
|
|
17413
17496
|
factions: {
|
|
17414
17497
|
perTurn: integer(0, 3, 1),
|
|
17415
17498
|
everyDays: integer(1, 365, 3)
|
|
@@ -17424,11 +17507,11 @@ window.__ModuleLoader__.load({
|
|
|
17424
17507
|
minNew: integer(1, 50, 4)
|
|
17425
17508
|
},
|
|
17426
17509
|
models: {
|
|
17427
|
-
characters: text$
|
|
17428
|
-
background: text$
|
|
17429
|
-
records: text$
|
|
17430
|
-
suggestions: text$
|
|
17431
|
-
authoring: text$
|
|
17510
|
+
characters: text$2(200, ""),
|
|
17511
|
+
background: text$2(200, ""),
|
|
17512
|
+
records: text$2(200, ""),
|
|
17513
|
+
suggestions: text$2(200, ""),
|
|
17514
|
+
authoring: text$2(200, "")
|
|
17432
17515
|
},
|
|
17433
17516
|
triggers: {
|
|
17434
17517
|
enabled: flag(true),
|
|
@@ -17442,17 +17525,25 @@ window.__ModuleLoader__.load({
|
|
|
17442
17525
|
reflection: choice(DECISION_MODES, "llm"),
|
|
17443
17526
|
agency: choice(GATE_MODES, "off"),
|
|
17444
17527
|
refusal: choice(GATE_MODES, "off"),
|
|
17528
|
+
repeats: choice(REPEAT_MODES, "off"),
|
|
17529
|
+
repeatTurns: integer(1, 30, 6),
|
|
17530
|
+
repeatChars: integer(6, 60, 12),
|
|
17445
17531
|
rules: choice(EXTRA_MODES, "off"),
|
|
17446
17532
|
secrets: choice(EXTRA_MODES, "off"),
|
|
17533
|
+
messages: choice(EXTRA_MODES, "off"),
|
|
17534
|
+
errands: choice(EXTRA_MODES, "on"),
|
|
17535
|
+
variables: choice(GATE_MODES, "llm"),
|
|
17536
|
+
reuse: choice(EXTRA_MODES, "off"),
|
|
17447
17537
|
gateThreshold: ratio(.1, .95, .5),
|
|
17538
|
+
reuseThreshold: ratio(.1, .95, .85),
|
|
17448
17539
|
confidence: ratio(0, 1, .7)
|
|
17449
17540
|
},
|
|
17450
|
-
interface: { pack: text$
|
|
17541
|
+
interface: { pack: text$2(60, "") },
|
|
17451
17542
|
rewind: {
|
|
17452
17543
|
keepSnapshots: integer(0, 500, 30),
|
|
17453
17544
|
rolls: choice(["reroll", "keep"], "reroll")
|
|
17454
17545
|
},
|
|
17455
|
-
rules: { own: text$
|
|
17546
|
+
rules: { own: text$2(MAX_OWN_RULES, "") },
|
|
17456
17547
|
preview: { enabled: flag(true) },
|
|
17457
17548
|
suggestions: { count: integer(0, 5, 3) },
|
|
17458
17549
|
images: {
|
|
@@ -17469,8 +17560,8 @@ window.__ModuleLoader__.load({
|
|
|
17469
17560
|
reuse: flag(true),
|
|
17470
17561
|
highRes: flag(false),
|
|
17471
17562
|
interpret: flag(true),
|
|
17472
|
-
interpreterModel: text$
|
|
17473
|
-
captioner: text$
|
|
17563
|
+
interpreterModel: text$2(200, ""),
|
|
17564
|
+
captioner: text$2(200, "")
|
|
17474
17565
|
},
|
|
17475
17566
|
dice: { visibility: choice(["hidden", "card"], "card") },
|
|
17476
17567
|
tools: switchboard(),
|
|
@@ -17848,6 +17939,91 @@ window.__ModuleLoader__.load({
|
|
|
17848
17939
|
}
|
|
17849
17940
|
]
|
|
17850
17941
|
},
|
|
17942
|
+
{
|
|
17943
|
+
path: ["decisions", "repeats"],
|
|
17944
|
+
kind: "choice",
|
|
17945
|
+
label: "decisionsRepeats",
|
|
17946
|
+
help: "decisionsRepeatsHelp",
|
|
17947
|
+
choices: [
|
|
17948
|
+
{
|
|
17949
|
+
value: "off",
|
|
17950
|
+
label: "decisionOff"
|
|
17951
|
+
},
|
|
17952
|
+
{
|
|
17953
|
+
value: "strict",
|
|
17954
|
+
label: "decisionStrict"
|
|
17955
|
+
},
|
|
17956
|
+
{
|
|
17957
|
+
value: "llm",
|
|
17958
|
+
label: "decisionLlm"
|
|
17959
|
+
},
|
|
17960
|
+
{
|
|
17961
|
+
value: "decision",
|
|
17962
|
+
label: "decisionDecision"
|
|
17963
|
+
},
|
|
17964
|
+
{
|
|
17965
|
+
value: "hybrid",
|
|
17966
|
+
label: "decisionHybrid"
|
|
17967
|
+
},
|
|
17968
|
+
{
|
|
17969
|
+
value: "shadow",
|
|
17970
|
+
label: "decisionShadow"
|
|
17971
|
+
}
|
|
17972
|
+
]
|
|
17973
|
+
},
|
|
17974
|
+
{
|
|
17975
|
+
path: ["decisions", "repeatTurns"],
|
|
17976
|
+
kind: "integer",
|
|
17977
|
+
label: "decisionsRepeatTurns",
|
|
17978
|
+
help: "decisionsRepeatTurnsHelp"
|
|
17979
|
+
},
|
|
17980
|
+
{
|
|
17981
|
+
path: ["decisions", "repeatChars"],
|
|
17982
|
+
kind: "integer",
|
|
17983
|
+
label: "decisionsRepeatChars",
|
|
17984
|
+
help: "decisionsRepeatCharsHelp"
|
|
17985
|
+
},
|
|
17986
|
+
{
|
|
17987
|
+
path: ["decisions", "variables"],
|
|
17988
|
+
kind: "choice",
|
|
17989
|
+
label: "decisionsVariables",
|
|
17990
|
+
help: "decisionsVariablesHelp",
|
|
17991
|
+
choices: [
|
|
17992
|
+
{
|
|
17993
|
+
value: "off",
|
|
17994
|
+
label: "decisionOff"
|
|
17995
|
+
},
|
|
17996
|
+
{
|
|
17997
|
+
value: "llm",
|
|
17998
|
+
label: "decisionLlm"
|
|
17999
|
+
},
|
|
18000
|
+
{
|
|
18001
|
+
value: "decision",
|
|
18002
|
+
label: "decisionDecision"
|
|
18003
|
+
},
|
|
18004
|
+
{
|
|
18005
|
+
value: "hybrid",
|
|
18006
|
+
label: "decisionHybrid"
|
|
18007
|
+
},
|
|
18008
|
+
{
|
|
18009
|
+
value: "shadow",
|
|
18010
|
+
label: "decisionShadow"
|
|
18011
|
+
}
|
|
18012
|
+
]
|
|
18013
|
+
},
|
|
18014
|
+
{
|
|
18015
|
+
path: ["decisions", "reuse"],
|
|
18016
|
+
kind: "choice",
|
|
18017
|
+
label: "decisionsReuse",
|
|
18018
|
+
help: "decisionsReuseHelp",
|
|
18019
|
+
choices: [{
|
|
18020
|
+
value: "off",
|
|
18021
|
+
label: "decisionOff"
|
|
18022
|
+
}, {
|
|
18023
|
+
value: "on",
|
|
18024
|
+
label: "decisionOn"
|
|
18025
|
+
}]
|
|
18026
|
+
},
|
|
17851
18027
|
{
|
|
17852
18028
|
path: ["decisions", "rules"],
|
|
17853
18029
|
kind: "choice",
|
|
@@ -17861,6 +18037,32 @@ window.__ModuleLoader__.load({
|
|
|
17861
18037
|
label: "decisionOn"
|
|
17862
18038
|
}]
|
|
17863
18039
|
},
|
|
18040
|
+
{
|
|
18041
|
+
path: ["decisions", "errands"],
|
|
18042
|
+
kind: "choice",
|
|
18043
|
+
label: "decisionsErrands",
|
|
18044
|
+
help: "decisionsErrandsHelp",
|
|
18045
|
+
choices: [{
|
|
18046
|
+
value: "off",
|
|
18047
|
+
label: "decisionOff"
|
|
18048
|
+
}, {
|
|
18049
|
+
value: "on",
|
|
18050
|
+
label: "decisionOn"
|
|
18051
|
+
}]
|
|
18052
|
+
},
|
|
18053
|
+
{
|
|
18054
|
+
path: ["decisions", "messages"],
|
|
18055
|
+
kind: "choice",
|
|
18056
|
+
label: "decisionsMessages",
|
|
18057
|
+
help: "decisionsMessagesHelp",
|
|
18058
|
+
choices: [{
|
|
18059
|
+
value: "off",
|
|
18060
|
+
label: "decisionOff"
|
|
18061
|
+
}, {
|
|
18062
|
+
value: "on",
|
|
18063
|
+
label: "decisionOn"
|
|
18064
|
+
}]
|
|
18065
|
+
},
|
|
17864
18066
|
{
|
|
17865
18067
|
path: ["decisions", "secrets"],
|
|
17866
18068
|
kind: "choice",
|
|
@@ -17880,6 +18082,12 @@ window.__ModuleLoader__.load({
|
|
|
17880
18082
|
label: "decisionsGateThreshold",
|
|
17881
18083
|
help: "decisionsGateThresholdHelp"
|
|
17882
18084
|
},
|
|
18085
|
+
{
|
|
18086
|
+
path: ["decisions", "reuseThreshold"],
|
|
18087
|
+
kind: "decimal",
|
|
18088
|
+
label: "decisionsReuseThreshold",
|
|
18089
|
+
help: "decisionsReuseThresholdHelp"
|
|
18090
|
+
},
|
|
17883
18091
|
{
|
|
17884
18092
|
path: ["decisions", "confidence"],
|
|
17885
18093
|
kind: "decimal",
|
|
@@ -18167,6 +18375,66 @@ window.__ModuleLoader__.load({
|
|
|
18167
18375
|
label: "offstageSummary",
|
|
18168
18376
|
help: "offstageSummaryHelp"
|
|
18169
18377
|
},
|
|
18378
|
+
{
|
|
18379
|
+
path: ["schedule", "enabled"],
|
|
18380
|
+
kind: "flag",
|
|
18381
|
+
label: "scheduleEnabled",
|
|
18382
|
+
help: "scheduleEnabledHelp"
|
|
18383
|
+
},
|
|
18384
|
+
{
|
|
18385
|
+
path: ["autonomy", "enabled"],
|
|
18386
|
+
kind: "flag",
|
|
18387
|
+
label: "autonomyEnabled",
|
|
18388
|
+
help: "autonomyEnabledHelp"
|
|
18389
|
+
},
|
|
18390
|
+
{
|
|
18391
|
+
path: ["autonomy", "messages"],
|
|
18392
|
+
kind: "flag",
|
|
18393
|
+
label: "autonomyMessages",
|
|
18394
|
+
help: "autonomyMessagesHelp"
|
|
18395
|
+
},
|
|
18396
|
+
{
|
|
18397
|
+
path: ["autonomy", "maxUnanswered"],
|
|
18398
|
+
kind: "integer",
|
|
18399
|
+
label: "autonomyMaxUnanswered",
|
|
18400
|
+
help: "autonomyMaxUnansweredHelp"
|
|
18401
|
+
},
|
|
18402
|
+
{
|
|
18403
|
+
path: ["autonomy", "idleMinutes"],
|
|
18404
|
+
kind: "integer",
|
|
18405
|
+
label: "autonomyIdleMinutes",
|
|
18406
|
+
help: "autonomyIdleMinutesHelp"
|
|
18407
|
+
},
|
|
18408
|
+
{
|
|
18409
|
+
path: ["autonomy", "awayHours"],
|
|
18410
|
+
kind: "integer",
|
|
18411
|
+
label: "autonomyAwayHours",
|
|
18412
|
+
help: "autonomyAwayHoursHelp"
|
|
18413
|
+
},
|
|
18414
|
+
{
|
|
18415
|
+
path: ["autonomy", "chance"],
|
|
18416
|
+
kind: "decimal",
|
|
18417
|
+
label: "autonomyChance",
|
|
18418
|
+
help: "autonomyChanceHelp"
|
|
18419
|
+
},
|
|
18420
|
+
{
|
|
18421
|
+
path: ["autonomy", "decay"],
|
|
18422
|
+
kind: "decimal",
|
|
18423
|
+
label: "autonomyDecay",
|
|
18424
|
+
help: "autonomyDecayHelp"
|
|
18425
|
+
},
|
|
18426
|
+
{
|
|
18427
|
+
path: ["autonomy", "transitionChance"],
|
|
18428
|
+
kind: "decimal",
|
|
18429
|
+
label: "autonomyTransition",
|
|
18430
|
+
help: "autonomyTransitionHelp"
|
|
18431
|
+
},
|
|
18432
|
+
{
|
|
18433
|
+
path: ["autonomy", "messageGapMinutes"],
|
|
18434
|
+
kind: "integer",
|
|
18435
|
+
label: "autonomyMessageGap",
|
|
18436
|
+
help: "autonomyMessageGapHelp"
|
|
18437
|
+
},
|
|
18170
18438
|
{
|
|
18171
18439
|
path: ["context", "limitTokens"],
|
|
18172
18440
|
kind: "integer",
|
|
@@ -18310,7 +18578,7 @@ window.__ModuleLoader__.load({
|
|
|
18310
18578
|
}
|
|
18311
18579
|
return next;
|
|
18312
18580
|
}
|
|
18313
|
-
// ../../node_modules/.pnpm/@dsh-ai-providers+core@0.
|
|
18581
|
+
// ../../node_modules/.pnpm/@dsh-ai-providers+core@0.7.0_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-llm@0.2.2-rc.1_@deepseek-ai+cordis@4.0.5_/node_modules/@dsh-ai-providers/core/lib/index.js
|
|
18314
18582
|
/**
|
|
18315
18583
|
* The browser API of the main plugin, which the UI of the main plugin and of every vendor plugin
|
|
18316
18584
|
* uses. Paths are relative to the prefix, and the browser calls them with relative URLs so that a
|
|
@@ -18370,14 +18638,14 @@ window.__ModuleLoader__.load({
|
|
|
18370
18638
|
}
|
|
18371
18639
|
tag$15.textContent = css$15;
|
|
18372
18640
|
var SettingsFields_module_css_default = {
|
|
18373
|
-
"group": "rp_Rhi3yq_group",
|
|
18374
|
-
"field": "rp_Rhi3yq_field",
|
|
18375
18641
|
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
18376
|
-
"help": "rp_Rhi3yq_help",
|
|
18377
|
-
"area": "rp_Rhi3yq_area",
|
|
18378
|
-
"label": "rp_Rhi3yq_label",
|
|
18379
18642
|
"error": "rp_Rhi3yq_error",
|
|
18380
|
-
"
|
|
18643
|
+
"field": "rp_Rhi3yq_field",
|
|
18644
|
+
"row": "rp_Rhi3yq_row",
|
|
18645
|
+
"label": "rp_Rhi3yq_label",
|
|
18646
|
+
"area": "rp_Rhi3yq_area",
|
|
18647
|
+
"help": "rp_Rhi3yq_help",
|
|
18648
|
+
"group": "rp_Rhi3yq_group"
|
|
18381
18649
|
};
|
|
18382
18650
|
// src/client/settings-form/SettingsFields.tsx
|
|
18383
18651
|
/** The settings of a chat as editable fields: one control with its explanation under each. */
|
|
@@ -18678,9 +18946,9 @@ window.__ModuleLoader__.load({
|
|
|
18678
18946
|
}
|
|
18679
18947
|
tag$14.textContent = css$14;
|
|
18680
18948
|
var TranslateBanner_module_css_default = {
|
|
18949
|
+
"banner": "rp_Lx8vJa_banner",
|
|
18681
18950
|
"error": "rp_Lx8vJa_error",
|
|
18682
18951
|
"text": "rp_Lx8vJa_text",
|
|
18683
|
-
"banner": "rp_Lx8vJa_banner",
|
|
18684
18952
|
"bannerActions": "rp_Lx8vJa_bannerActions"
|
|
18685
18953
|
};
|
|
18686
18954
|
// src/client/pages/worlds/TranslateBanner.tsx
|
|
@@ -19303,26 +19571,26 @@ window.__ModuleLoader__.load({
|
|
|
19303
19571
|
}
|
|
19304
19572
|
tag$13.textContent = css$13;
|
|
19305
19573
|
var WorldsPage_module_css_default = {
|
|
19306
|
-
"
|
|
19307
|
-
"
|
|
19308
|
-
"message": "rp_FHUyRq_message",
|
|
19574
|
+
"grid": "rp_FHUyRq_grid",
|
|
19575
|
+
"cell": "rp_FHUyRq_cell",
|
|
19309
19576
|
"starters": "rp_FHUyRq_starters",
|
|
19310
|
-
"page": "rp_FHUyRq_page",
|
|
19311
|
-
"starter": "rp_FHUyRq_starter",
|
|
19312
|
-
"fits": "rp_FHUyRq_fits",
|
|
19313
19577
|
"editTitle": "rp_FHUyRq_editTitle",
|
|
19578
|
+
"starter": "rp_FHUyRq_starter",
|
|
19579
|
+
"editBody": "rp_FHUyRq_editBody",
|
|
19314
19580
|
"toolbar": "rp_FHUyRq_toolbar",
|
|
19315
19581
|
"notice": "rp_FHUyRq_notice",
|
|
19316
|
-
"
|
|
19582
|
+
"viewport": "rp_FHUyRq_viewport",
|
|
19583
|
+
"page": "rp_FHUyRq_page",
|
|
19584
|
+
"editActions": "rp_FHUyRq_editActions",
|
|
19317
19585
|
"editHeader": "rp_FHUyRq_editHeader",
|
|
19318
19586
|
"scrolls": "rp_FHUyRq_scrolls",
|
|
19319
|
-
"count": "rp_FHUyRq_count",
|
|
19320
|
-
"cell": "rp_FHUyRq_cell",
|
|
19321
|
-
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
19322
19587
|
"spinning": "rp_FHUyRq_spinning",
|
|
19323
|
-
"
|
|
19324
|
-
"
|
|
19325
|
-
"
|
|
19588
|
+
"message": "rp_FHUyRq_message",
|
|
19589
|
+
"fits": "rp_FHUyRq_fits",
|
|
19590
|
+
"spin": "rp_FHUyRq_spin",
|
|
19591
|
+
"count": "rp_FHUyRq_count",
|
|
19592
|
+
"info": "rp_FHUyRq_info",
|
|
19593
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions"
|
|
19326
19594
|
};
|
|
19327
19595
|
// src/client/pages/worlds/StarterWorlds.tsx
|
|
19328
19596
|
/** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
|
|
@@ -20496,12 +20764,25 @@ window.__ModuleLoader__.load({
|
|
|
20496
20764
|
decisionsReflectionHelp: "Who checks whether what a character took in since contradicts one of their beliefs, before the reflection pass. The same choices as for trigger statements. Doubts are raised only on answers the decision model is sure of.",
|
|
20497
20765
|
decisionsAgency: "Checking the narration for speaking for you",
|
|
20498
20766
|
decisionsAgencyHelp: "Checks each narration for words, actions, thoughts or feelings given to your character that your message did not state, and sends it back to the game master to rewrite (at most twice, then it is delivered as it is). Off by default: a check costs a request to the language model or a fast call to a decision model in every turn. The choices are the same as for trigger statements; the decision model counts a fault only when it is sure.",
|
|
20767
|
+
decisionsVariables: "Looking at the tracked values after each turn",
|
|
20768
|
+
decisionsVariablesHelp: "After each turn, asks about every value the story tracks (fatigue, unrest, an injury) and the people it applies to whether what happened changed it, and sets the new value of those that did. The game master changes a value only when it thinks of it; this makes sure each one is looked at. Each value should say in its description when and how it changes. Language model: one request. Decision model: one cheap question for each value. Off by default.",
|
|
20769
|
+
decisionsReuse: "Showing a stored picture when it fits",
|
|
20770
|
+
decisionsReuseHelp: "Before a scene picture is made on its own after a turn, the decision model is asked about the description of each close stored picture (those you brought and those marked reusable): does it show this moment? If one does, it is shown again and nothing is made. Without a decision model nothing changes. Off by default.",
|
|
20499
20771
|
decisionsRefusal: "Checking the output for stepping out of the story",
|
|
20500
20772
|
decisionsRefusalHelp: "Checks each output for a refusal to continue, an apology, a content warning, a disclaimer or a remark to you outside the story, which some hosted models add, and sends it back to the game master to write as the story (at most twice, then it is delivered as it is). Off by default. The same choices as for the check above.",
|
|
20773
|
+
decisionsRepeats: "Checking the narration for repeated sentences",
|
|
20774
|
+
decisionsRepeatsHelp: "Looks for a sentence the narration already told in one of the last turns, and sends it back to the game master to say differently (at most twice, then it is delivered as it is). Only sentences found by comparing words are asked about: the decision model or the language model says whether the repeat is meant (a refrain, a catchphrase, a ritual) or stale filler. \"Strict\" needs no model at all and sends back every repeat, so it is the cheapest, and it may refuse a repeat that was meant: use it only for a world with nothing that should repeat. Off by default.",
|
|
20775
|
+
decisionsRepeatTurns: "Turns compared for repeats",
|
|
20776
|
+
decisionsRepeatTurnsHelp: "How many of the turns before this one a sentence is compared against, from 1 to 30.",
|
|
20777
|
+
decisionsRepeatChars: "Shortest sentence that counts as a repeat",
|
|
20778
|
+
decisionsRepeatCharsHelp: "In characters, from 6 to 60. Shorter sentences (a name, \"Yes.\") may come back.",
|
|
20779
|
+
decisionStrict: "Strict: every repeat, no model",
|
|
20501
20780
|
decisionsRules: "Checking actions against the rules",
|
|
20502
20781
|
decisionsRulesHelp: "When the game master judges your action allowed, a decision model also checks it against every rule of the world and your own rules in one fast pass. A rule it thinks is broken is put to the game master once, to judge again. Only a decision model does this: off by default, and off the story plays as it always did. Needs a decision service; without one nothing is checked.",
|
|
20503
20782
|
decisionsSecrets: "Checking the output for giving away secrets",
|
|
20504
20783
|
decisionsSecretsHelp: "A decision model checks each output for stating hidden lore that your character does not know (lore listed for other characters only) and sends it back to the game master to rewrite (at most twice, then it is delivered as it is). A revelation the story means to make can still go through the second time. Off by default, and off nothing changes. Needs a decision service; without one nothing is checked.",
|
|
20784
|
+
decisionsReuseThreshold: "Probability that counts as a fitting picture",
|
|
20785
|
+
decisionsReuseThresholdHelp: "For picture reuse: the probability from which the decision model's answer that a stored picture shows the moment counts as a yes, from 0.1 to 0.95. Measured with a 9B decision model, 0.5 showed a wrong picture in 6 of 72 asks, 0.8 to 0.9 none; 0.93 and above finds too few. Raise it if a wrong picture is shown, lower it if no picture is ever reused.",
|
|
20505
20786
|
decisionsGateThreshold: "Probability that counts as a fault",
|
|
20506
20787
|
decisionsGateThresholdHelp: "For the two checks above: the probability from which the decision model's answer counts as a fault, from 0.1 to 0.95; a little below it (0.15) the model is not sure, and the language model is asked in the mixed mode. Decision models give a rare fault a low probability even when they see it, so this is not the confidence below. Lower it if faults are missed, raise it if clean passages are sent back; the comparing mode shows the probabilities of the disagreements.",
|
|
20507
20788
|
decisionOff: "Off",
|
|
@@ -20563,6 +20844,30 @@ window.__ModuleLoader__.load({
|
|
|
20563
20844
|
interfacePackHelp: "The interface pack this story uses. Empty uses the first pack the story carries; \"none\" turns packs off and shows the plain chat; a name picks that pack of the story, or of your roleplay folder's ui folder.",
|
|
20564
20845
|
diagnosticsKeepRuns: "Keep what the helpers were told",
|
|
20565
20846
|
diagnosticsKeepRunsHelp: "Each helper run (a character, the record keeper, the suggestions) keeps its instructions, what it was asked, its tool calls and its result, for the latest 60 runs. Open a run in the activity list to see why it said or wrote what it did. The texts include what the characters know in private, so leave it off unless you are looking for a problem.",
|
|
20847
|
+
scheduleEnabled: "Characters keep to their days",
|
|
20848
|
+
scheduleEnabledHelp: "On by default. The characters who have a daily routine are where it puts them and sleep when it says so, and what you do can take them off it for a while (they pick it up again at the next change in their day). Off, nobody keeps a routine or sleeps, and nothing moves by itself: for a story whose characters have no days to keep.",
|
|
20849
|
+
autonomyEnabled: "The story goes on while I am away",
|
|
20850
|
+
autonomyEnabledHelp: "Off by default. On, and with the real clock, the characters keep to their days while you are not in the chat (they are where their routines have them, and the story knows it when you come back) and may write to you. It costs model requests while nobody is reading, and stops by itself after the limit below until you write.",
|
|
20851
|
+
autonomyMessages: "Characters may write to me",
|
|
20852
|
+
autonomyMessagesHelp: "While you are away, a character who is awake and who knows you may write a short message, shown beside the story and told to the story at your next message. Needs the setting above.",
|
|
20853
|
+
autonomyMaxUnanswered: "Most things in a row without a reply from me",
|
|
20854
|
+
autonomyMaxUnansweredHelp: "After this many things the characters did on their own with no message from you in between, nothing more runs until you write: a story left alone does not keep asking the model.",
|
|
20855
|
+
autonomyAwayHours: "Hours away after which nothing more happens",
|
|
20856
|
+
autonomyAwayHoursHelp: "A player who has been gone this long is not written to any more, until they come back and write.",
|
|
20857
|
+
autonomyChance: "Chance of a message at each look",
|
|
20858
|
+
autonomyChanceHelp: "Once the idle time has passed, at each look (every 30 seconds by default) this is the chance that someone writes. Each message already sent with no reply multiplies it by the easing-off below, so a story left alone gets a couple of messages and then goes quiet. A decision model, when one is on below, also says whether the character has a reason to write; without one chance alone decides.",
|
|
20859
|
+
autonomyDecay: "Easing off for each unanswered message",
|
|
20860
|
+
autonomyDecayHelp: "From 0 (one message and then quiet) to 1 (no easing off): what each message sent with no reply multiplies the chance by.",
|
|
20861
|
+
autonomyTransition: "Chance when a character's day changes",
|
|
20862
|
+
autonomyTransitionHelp: "The chance that a character whose day has just changed (work is over, it woke up) writes at that look, on top of the chance above.",
|
|
20863
|
+
decisionsErrands: "Keeping characters who wait for you",
|
|
20864
|
+
decisionsErrandsHelp: "After each turn a decision model says which characters were told, or chose, to stay, wait or watch until you come back to them, or to go on an errand that ends with you. They then stay where the story left them, whatever their routine says, until you are with them again or a day has passed. On by default. Needs a decision service; without one, or when it fails, only what the game master marks keeps a character waiting.",
|
|
20865
|
+
decisionsMessages: "Checking that a character has a reason to write",
|
|
20866
|
+
decisionsMessagesHelp: "When chance has picked a character to write to you while you are away, a decision model first says whether that character has a reason to write now, from what it is doing and what just changed. Off by default. Needs a decision service; without one, or when it fails, chance alone decides.",
|
|
20867
|
+
autonomyIdleMinutes: "Minutes away before characters act",
|
|
20868
|
+
autonomyIdleMinutesHelp: "The characters act on their own only after you have been away this long.",
|
|
20869
|
+
autonomyMessageGap: "Minutes between messages from one character",
|
|
20870
|
+
autonomyMessageGapHelp: "The least time between two messages from the same character.",
|
|
20566
20871
|
offstageJoint: "Meetings happen between people",
|
|
20567
20872
|
offstageJointHelp: "The people of one off-stage commitment decide one after another, each told who has already meant to come, so they meet instead of each guessing. It takes longer in the background but asks the same number of times. Off: each decides alone, all at once.",
|
|
20568
20873
|
offstageSummary: "Tell me what happened meanwhile",
|
|
@@ -20709,12 +21014,25 @@ window.__ModuleLoader__.load({
|
|
|
20709
21014
|
decisionsReflectionHelp: "由谁在反思之前检查角色此后接收到的内容是否与其某个信念矛盾。选项与触发器陈述相同。只有决策模型有把握的答案才会引起怀疑。",
|
|
20710
21015
|
decisionsAgency: "检查叙述是否替你说话",
|
|
20711
21016
|
decisionsAgencyHelp: "检查每段叙述是否给了你的角色你的消息中没有写到的话语、动作、想法或感受,如有则退回给游戏主持人重写(最多两次,之后原样交付)。默认关闭:每个回合都要多一次语言模型请求,或一次决策模型的快速调用。选项与触发器陈述相同;决策模型只在有把握时才认定有问题。",
|
|
21017
|
+
decisionsVariables: "每回合之后检查被追踪的数值",
|
|
21018
|
+
decisionsVariablesHelp: "每个回合之后,针对故事追踪的每个数值(疲劳、骚动、伤势)和它适用的每个人,询问刚才发生的事是否改变了它,并为改变了的数值设定新值。主持人只有想到时才会改动数值;这样可以保证每个数值都被检查到。每个数值的描述里最好写明它何时、如何变化。语言模型:一次请求。决策模型:每个数值一个廉价的问题。默认关闭。",
|
|
21019
|
+
decisionsReuse: "有合适的已存图片就直接展示",
|
|
21020
|
+
decisionsReuseHelp: "回合结束后自动生成场景图之前,先让决策模型逐个判断相近的已存图片(你上传的和标记为可复用的)的描述:它是否表现了这一刻?如果有,就再次展示它,不再生成。没有决策模型时不起作用。默认关闭。",
|
|
20712
21021
|
decisionsRefusal: "检查输出是否跳出了故事",
|
|
20713
21022
|
decisionsRefusalHelp: "检查每次输出里有没有拒绝继续、道歉、内容警告、免责声明或对你说的故事之外的话(有些托管模型会加上这些),如有则退回给游戏主持人按故事重写(最多两次,之后原样交付)。默认关闭。选项与上一项相同。",
|
|
21023
|
+
decisionsRepeats: "检查旁白里的重复句子",
|
|
21024
|
+
decisionsRepeatsHelp: "查找旁白在最近几个回合里已经讲过的句子,退回给游戏主持人换一种说法(最多两次,之后原样交付)。只有通过比对文字找到的句子才会被判断:由决策模型或语言模型说明这次重复是有意的(叠句、口头禅、仪式)还是陈词滥调。“严格”完全不用模型,把每个重复都退回,所以最省,但可能退回有意的重复:只在没有任何东西该重复的世界里使用。默认关闭。",
|
|
21025
|
+
decisionsRepeatTurns: "比对重复的回合数",
|
|
21026
|
+
decisionsRepeatTurnsHelp: "一个句子与本回合之前多少个回合比对,取值 1 到 30。",
|
|
21027
|
+
decisionsRepeatChars: "算作重复的最短句子",
|
|
21028
|
+
decisionsRepeatCharsHelp: "以字符数计,取值 6 到 60。更短的句子(一个名字、“好。”)可以再次出现。",
|
|
21029
|
+
decisionStrict: "严格:每个重复都退回,不用模型",
|
|
20714
21030
|
decisionsRules: "按规则检查行动",
|
|
20715
21031
|
decisionsRulesHelp: "当游戏主持人判定你的行动可行时,决策模型会再一次快速地把它与世界的每条规则以及你自己的规则逐条对照。它认为被违反的规则会交给游戏主持人重新判断一次。只有决策模型能做这件事:默认关闭,关闭时故事与以往完全一样。需要决策服务;没有时不做任何检查。",
|
|
20716
21032
|
decisionsSecrets: "检查输出是否泄露秘密",
|
|
20717
21033
|
decisionsSecretsHelp: "决策模型检查每次输出有没有写出你的角色不知道的隐藏背景(只列给其他角色的背景),如有则退回给游戏主持人重写(最多两次,之后原样交付)。故事有意安排的揭示,第二次仍可通过。默认关闭,关闭时没有任何变化。需要决策服务;没有时不做任何检查。",
|
|
21034
|
+
decisionsReuseThreshold: "算作合适图片的概率",
|
|
21035
|
+
decisionsReuseThresholdHelp: "针对图片复用:决策模型认为已存图片符合当前时刻的答案达到多大概率才算“是”,取值 0.1 到 0.95。用 9B 决策模型实测:0.5 时 72 次询问中有 6 次选错图片,0.8 到 0.9 没有;0.93 及以上找到的太少。选错了图片就调高,从不复用就调低。",
|
|
20718
21036
|
decisionsGateThreshold: "算作问题的概率",
|
|
20719
21037
|
decisionsGateThresholdHelp: "针对上面两项检查:决策模型的答案达到多大概率才算有问题,取值 0.1 到 0.95;略低于它(低 0.15 以内)时模型没有把握,混合模式下会交给语言模型。决策模型即使看出了罕见的问题,给出的概率也偏低,所以这不是下面的“所需把握”。漏掉问题就调低,把正常的文字退回去就调高;对比模式会显示分歧的概率。",
|
|
20720
21038
|
decisionOff: "关闭",
|
|
@@ -20776,6 +21094,30 @@ window.__ModuleLoader__.load({
|
|
|
20776
21094
|
interfacePackHelp: "此故事使用的界面包。留空则使用故事自带的第一个包;填 \"none\" 则关闭界面包并显示普通聊天;填名称则选用故事中的该包,或角色扮演目录 ui 文件夹中的该包。",
|
|
20777
21095
|
diagnosticsKeepRuns: "保留助手收到的内容",
|
|
20778
21096
|
diagnosticsKeepRunsHelp: "每次助手运行(角色、记录员、建议)都会保存它的指令、被问的内容、工具调用和结果,保留最近 60 次。在活动列表中打开一次运行,可查看它为何那样说或写。内容包含角色私下所知的信息,因此除非要排查问题,请保持关闭。",
|
|
21097
|
+
scheduleEnabled: "角色按各自的日程生活",
|
|
21098
|
+
scheduleEnabledHelp: "默认开启。有日常作息的角色会在作息安排的地方,并在作息规定时睡觉;你的行动可以让他们暂时偏离作息(到他们一天中的下一个变化时再回到作息)。关闭后,没有人遵循作息或睡觉,也不会有任何东西自行移动:适合角色没有日程的故事。",
|
|
21099
|
+
autonomyEnabled: "我不在时故事继续",
|
|
21100
|
+
autonomyEnabledHelp: "默认关闭。开启并使用真实时钟时,你不在聊天里,角色们仍按各自的日程行事(他们在日程所在的地方,你回来时故事知道这一点),也可能给你发消息。你不在时会消耗模型请求,达到下面的上限后自动停止,直到你再发言。",
|
|
21101
|
+
autonomyMessages: "角色可以给我发消息",
|
|
21102
|
+
autonomyMessagesHelp: "你不在时,醒着且认识你的角色可能发一条简短的消息,显示在故事旁,并在你的下一条消息时告知故事。需要上面的设置。",
|
|
21103
|
+
autonomyMaxUnanswered: "没有我回复时连续最多做几件事",
|
|
21104
|
+
autonomyMaxUnansweredHelp: "角色自行做了这么多件事而你没有任何消息之后,不再运行任何东西,直到你发言:无人理会的故事不会一直请求模型。",
|
|
21105
|
+
autonomyAwayHours: "离开多少小时后不再发生任何事",
|
|
21106
|
+
autonomyAwayHoursHelp: "玩家离开这么久之后,不再给他们写消息,直到他们回来并发言。",
|
|
21107
|
+
autonomyChance: "每次查看时发消息的概率",
|
|
21108
|
+
autonomyChanceHelp: "空闲时间过去之后,每次查看(默认每 30 秒一次)有这么大的概率有人写消息。每条已发出而没有回复的消息,会让它乘以下面的递减系数,所以无人理会的故事会有几条消息然后安静下来。若下面开启了决策模型,它还会判断该角色此刻是否有理由写消息;没有决策模型时只由概率决定。",
|
|
21109
|
+
autonomyDecay: "每条未回复消息的递减系数",
|
|
21110
|
+
autonomyDecayHelp: "从 0(一条消息之后就安静)到 1(不递减):每条已发出而没有回复的消息使概率乘以它。",
|
|
21111
|
+
autonomyTransition: "角色日程转换时的概率",
|
|
21112
|
+
autonomyTransitionHelp: "刚刚换了日程的角色(下班了、醒来了)在那次查看时写消息的概率,与上面的概率叠加。",
|
|
21113
|
+
decisionsErrands: "让等你的角色留在原地",
|
|
21114
|
+
decisionsErrandsHelp: "每回合结束后,决策模型会判断哪些角色被吩咐或自己决定留下、等候或守望,直到你回到他们身边,或去办一件以回到你身边为结束的差事。之后无论日程怎么说,他们都留在故事让他们停留的地方,直到你再次与他们在一起,或过了一天。默认开启。需要决策服务;没有时或失败时,只有游戏主持人标记过的角色才会继续等候。",
|
|
21115
|
+
decisionsMessages: "检查角色是否有理由写消息",
|
|
21116
|
+
decisionsMessagesHelp: "当概率选中某个角色在你不在时给你写消息,决策模型会先根据它正在做的事和刚刚发生的变化,判断它此刻是否有理由写。默认关闭。需要决策服务;没有时或失败时只由概率决定。",
|
|
21117
|
+
autonomyIdleMinutes: "离开多少分钟后角色才行动",
|
|
21118
|
+
autonomyIdleMinutesHelp: "只有你离开这么久之后,角色才会自行行动。",
|
|
21119
|
+
autonomyMessageGap: "同一角色两条消息之间的最短分钟数",
|
|
21120
|
+
autonomyMessageGapHelp: "同一角色两条消息之间的最短间隔。",
|
|
20779
21121
|
offstageJoint: "约定在人与人之间发生",
|
|
20780
21122
|
offstageJointHelp: "同一个台下约定的人依次决定,后者会被告知谁已决定前来,因此他们会碰面而不是各自猜测。后台耗时更长,但请求次数不变。关闭则各自同时独立决定。",
|
|
20781
21123
|
offstageSummary: "告诉我期间发生了什么",
|
|
@@ -21491,9 +21833,9 @@ window.__ModuleLoader__.load({
|
|
|
21491
21833
|
}
|
|
21492
21834
|
tag$12.textContent = css$12;
|
|
21493
21835
|
var BranchDialog_module_css_default = {
|
|
21836
|
+
"form": "rp_Dy1TaW_form",
|
|
21494
21837
|
"field": "rp_Dy1TaW_field",
|
|
21495
21838
|
"error": "rp_Dy1TaW_error",
|
|
21496
|
-
"form": "rp_Dy1TaW_form",
|
|
21497
21839
|
"label": "rp_Dy1TaW_label"
|
|
21498
21840
|
};
|
|
21499
21841
|
// src/client/branch/BranchDialog.tsx
|
|
@@ -21612,12 +21954,12 @@ window.__ModuleLoader__.load({
|
|
|
21612
21954
|
}
|
|
21613
21955
|
tag$11.textContent = css$11;
|
|
21614
21956
|
var SidebarGuideEntry_module_css_default = {
|
|
21615
|
-
"entry": "rp_Okaj1q_entry",
|
|
21616
21957
|
"main": "rp_Okaj1q_main",
|
|
21617
21958
|
"icon": "rp_Okaj1q_icon",
|
|
21618
|
-
"
|
|
21959
|
+
"entry": "rp_Okaj1q_entry",
|
|
21619
21960
|
"text": "rp_Okaj1q_text",
|
|
21620
|
-
"description": "rp_Okaj1q_description"
|
|
21961
|
+
"description": "rp_Okaj1q_description",
|
|
21962
|
+
"title": "rp_Okaj1q_title"
|
|
21621
21963
|
};
|
|
21622
21964
|
// src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
|
|
21623
21965
|
/** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
|
|
@@ -21664,9 +22006,9 @@ window.__ModuleLoader__.load({
|
|
|
21664
22006
|
}
|
|
21665
22007
|
tag$10.textContent = css$10;
|
|
21666
22008
|
var GalleryTab_module_css_default = {
|
|
22009
|
+
"bar": "rp_W688Pa_bar",
|
|
21667
22010
|
"message": "rp_W688Pa_message",
|
|
21668
|
-
"page": "rp_W688Pa_page"
|
|
21669
|
-
"bar": "rp_W688Pa_bar"
|
|
22011
|
+
"page": "rp_W688Pa_page"
|
|
21670
22012
|
};
|
|
21671
22013
|
// src/client/gallery/GalleryTab.tsx
|
|
21672
22014
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -22055,17 +22397,17 @@ window.__ModuleLoader__.load({
|
|
|
22055
22397
|
}
|
|
22056
22398
|
tag$9.textContent = css$9;
|
|
22057
22399
|
var SidebarPage_module_css_default = {
|
|
22058
|
-
"
|
|
22059
|
-
"title": "rp_Ptco8a_title",
|
|
22060
|
-
"page": "rp_Ptco8a_page",
|
|
22061
|
-
"content": "rp_Ptco8a_content",
|
|
22400
|
+
"bar": "rp_Ptco8a_bar",
|
|
22062
22401
|
"icon": "rp_Ptco8a_icon",
|
|
22063
22402
|
"message": "rp_Ptco8a_message",
|
|
22064
|
-
"
|
|
22403
|
+
"main": "rp_Ptco8a_main",
|
|
22065
22404
|
"name": "rp_Ptco8a_name",
|
|
22066
22405
|
"entry": "rp_Ptco8a_entry",
|
|
22067
|
-
"
|
|
22068
|
-
"
|
|
22406
|
+
"text": "rp_Ptco8a_text",
|
|
22407
|
+
"title": "rp_Ptco8a_title",
|
|
22408
|
+
"page": "rp_Ptco8a_page",
|
|
22409
|
+
"description": "rp_Ptco8a_description",
|
|
22410
|
+
"content": "rp_Ptco8a_content"
|
|
22069
22411
|
};
|
|
22070
22412
|
// src/client/interface/SidebarPage.tsx
|
|
22071
22413
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -22406,23 +22748,23 @@ window.__ModuleLoader__.load({
|
|
|
22406
22748
|
tag$8.textContent = css$8;
|
|
22407
22749
|
var RecallTab_module_css_default = {
|
|
22408
22750
|
"item": "rp_jl9CIq_item",
|
|
22409
|
-
"actions": "rp_jl9CIq_actions",
|
|
22410
|
-
"meta": "rp_jl9CIq_meta",
|
|
22411
|
-
"bar": "rp_jl9CIq_bar",
|
|
22412
|
-
"heading": "rp_jl9CIq_heading",
|
|
22413
|
-
"note": "rp_jl9CIq_note",
|
|
22414
|
-
"error": "rp_jl9CIq_error",
|
|
22415
|
-
"form": "rp_jl9CIq_form",
|
|
22416
|
-
"area": "rp_jl9CIq_area",
|
|
22417
22751
|
"body": "rp_jl9CIq_body",
|
|
22752
|
+
"name": "rp_jl9CIq_name",
|
|
22753
|
+
"meta": "rp_jl9CIq_meta",
|
|
22418
22754
|
"person": "rp_jl9CIq_person",
|
|
22419
|
-
"page": "rp_jl9CIq_page",
|
|
22420
|
-
"label": "rp_jl9CIq_label",
|
|
22421
|
-
"hint": "rp_jl9CIq_hint",
|
|
22422
22755
|
"field": "rp_jl9CIq_field",
|
|
22756
|
+
"area": "rp_jl9CIq_area",
|
|
22757
|
+
"error": "rp_jl9CIq_error",
|
|
22758
|
+
"label": "rp_jl9CIq_label",
|
|
22759
|
+
"bar": "rp_jl9CIq_bar",
|
|
22760
|
+
"note": "rp_jl9CIq_note",
|
|
22761
|
+
"actions": "rp_jl9CIq_actions",
|
|
22423
22762
|
"place": "rp_jl9CIq_place",
|
|
22424
22763
|
"list": "rp_jl9CIq_list",
|
|
22425
|
-
"
|
|
22764
|
+
"heading": "rp_jl9CIq_heading",
|
|
22765
|
+
"form": "rp_jl9CIq_form",
|
|
22766
|
+
"page": "rp_jl9CIq_page",
|
|
22767
|
+
"hint": "rp_jl9CIq_hint"
|
|
22426
22768
|
};
|
|
22427
22769
|
// src/client/recall/RecallTab.tsx
|
|
22428
22770
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -22675,6 +23017,11 @@ window.__ModuleLoader__.load({
|
|
|
22675
23017
|
notRoleplay: "This chat is not a roleplay session, so it has no reference.",
|
|
22676
23018
|
loading: "Loading…",
|
|
22677
23019
|
failed: "Could not load this page: {message}",
|
|
23020
|
+
status: "Status",
|
|
23021
|
+
noStatus: "Nothing is tracked yet.",
|
|
23022
|
+
statusWorld: "The world",
|
|
23023
|
+
statusYou: "you",
|
|
23024
|
+
statusHint: "Every tracked value you can read: the world's, yours, this place's, and those of the people and things you know of.",
|
|
22678
23025
|
profile: "Profile",
|
|
22679
23026
|
noProfile: "There is no character of yours in this story yet.",
|
|
22680
23027
|
aliases: "Also called {list}",
|
|
@@ -22745,6 +23092,11 @@ window.__ModuleLoader__.load({
|
|
|
22745
23092
|
notRoleplay: "此对话不是角色扮演存档,没有资料。",
|
|
22746
23093
|
loading: "正在加载…",
|
|
22747
23094
|
failed: "无法加载此页:{message}",
|
|
23095
|
+
status: "状态",
|
|
23096
|
+
noStatus: "暂时没有被追踪的数值。",
|
|
23097
|
+
statusWorld: "世界",
|
|
23098
|
+
statusYou: "你",
|
|
23099
|
+
statusHint: "你能看到的所有被追踪的数值:世界的、你自己的、此地的,以及你认识的人和物品的。",
|
|
22748
23100
|
profile: "档案",
|
|
22749
23101
|
noProfile: "这个故事里还没有你的角色。",
|
|
22750
23102
|
aliases: "又称{list}",
|
|
@@ -22820,9 +23172,9 @@ window.__ModuleLoader__.load({
|
|
|
22820
23172
|
var ReferenceTab_module_css_default = {
|
|
22821
23173
|
"bar": "rp_7BGO2a_bar",
|
|
22822
23174
|
"page": "rp_7BGO2a_page",
|
|
22823
|
-
"nav": "rp_7BGO2a_nav",
|
|
22824
23175
|
"body": "rp_7BGO2a_body",
|
|
22825
|
-
"message": "rp_7BGO2a_message"
|
|
23176
|
+
"message": "rp_7BGO2a_message",
|
|
23177
|
+
"nav": "rp_7BGO2a_nav"
|
|
22826
23178
|
};
|
|
22827
23179
|
// src/client/reference/ReferenceTab.tsx
|
|
22828
23180
|
/** The kind of the tab type, and the identity it registers its card and body under. */
|
|
@@ -22942,28 +23294,28 @@ window.__ModuleLoader__.load({
|
|
|
22942
23294
|
}
|
|
22943
23295
|
tag$6.textContent = css$6;
|
|
22944
23296
|
var Page_module_css_default = {
|
|
22945
|
-
"
|
|
22946
|
-
"
|
|
22947
|
-
"
|
|
22948
|
-
"
|
|
22949
|
-
"
|
|
23297
|
+
"placeName": "rp_bG1sCa_placeName",
|
|
23298
|
+
"title": "rp_bG1sCa_title",
|
|
23299
|
+
"entry": "rp_bG1sCa_entry",
|
|
23300
|
+
"place": "rp_bG1sCa_place",
|
|
23301
|
+
"meta": "rp_bG1sCa_meta",
|
|
22950
23302
|
"text": "rp_bG1sCa_text",
|
|
22951
|
-
"block": "rp_bG1sCa_block",
|
|
22952
23303
|
"head": "rp_bG1sCa_head",
|
|
23304
|
+
"message": "rp_bG1sCa_message",
|
|
22953
23305
|
"map": "rp_bG1sCa_map",
|
|
22954
|
-
"meta": "rp_bG1sCa_meta",
|
|
22955
|
-
"place": "rp_bG1sCa_place",
|
|
22956
|
-
"placeName": "rp_bG1sCa_placeName",
|
|
22957
|
-
"closedWay": "rp_bG1sCa_closedWay",
|
|
22958
|
-
"way": "rp_bG1sCa_way",
|
|
22959
|
-
"title": "rp_bG1sCa_title",
|
|
22960
23306
|
"name": "rp_bG1sCa_name",
|
|
23307
|
+
"block": "rp_bG1sCa_block",
|
|
23308
|
+
"list": "rp_bG1sCa_list",
|
|
23309
|
+
"way": "rp_bG1sCa_way",
|
|
23310
|
+
"journal": "rp_bG1sCa_journal",
|
|
23311
|
+
"link": "rp_bG1sCa_link",
|
|
22961
23312
|
"sub": "rp_bG1sCa_sub",
|
|
23313
|
+
"notes": "rp_bG1sCa_notes",
|
|
23314
|
+
"closedWay": "rp_bG1sCa_closedWay",
|
|
22962
23315
|
"here": "rp_bG1sCa_here",
|
|
22963
|
-
"
|
|
22964
|
-
"
|
|
22965
|
-
"
|
|
22966
|
-
"journal": "rp_bG1sCa_journal"
|
|
23316
|
+
"heading": "rp_bG1sCa_heading",
|
|
23317
|
+
"tag": "rp_bG1sCa_tag",
|
|
23318
|
+
"opened": "rp_bG1sCa_opened"
|
|
22967
23319
|
};
|
|
22968
23320
|
// src/client/reference/sections/Journal.tsx
|
|
22969
23321
|
/** How long typing pauses before the notes are saved. */
|
|
@@ -23385,6 +23737,43 @@ window.__ModuleLoader__.load({
|
|
|
23385
23737
|
}
|
|
23386
23738
|
// src/client/reference/sections/sections.tsx
|
|
23387
23739
|
const unit = (count) => count === 1 ? "" : ` ×${count}`;
|
|
23740
|
+
/** Every tracked value the player may read, one block for each subject that has any. */
|
|
23741
|
+
function StatusPage({ t, sessionId, visible }) {
|
|
23742
|
+
const { reading } = useReference(sessionId, "status", visible);
|
|
23743
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Page, {
|
|
23744
|
+
reading,
|
|
23745
|
+
className: Page_module_css_default.message ?? "",
|
|
23746
|
+
loading: t("loading"),
|
|
23747
|
+
failed: (message) => t("failed", { message }),
|
|
23748
|
+
empty: t("noStatus"),
|
|
23749
|
+
children: (groups) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
23750
|
+
className: Page_module_css_default.meta,
|
|
23751
|
+
children: t("statusHint")
|
|
23752
|
+
}), groups.map((group) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Block, {
|
|
23753
|
+
title: group.name ?? t("statusWorld"),
|
|
23754
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23755
|
+
className: Page_module_css_default.head,
|
|
23756
|
+
children: [group.subject === "player" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
23757
|
+
className: Page_module_css_default.tag,
|
|
23758
|
+
children: t("statusYou")
|
|
23759
|
+
}), group.subject !== "player" && group.here === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
23760
|
+
className: Page_module_css_default.tag,
|
|
23761
|
+
children: t("here")
|
|
23762
|
+
})]
|
|
23763
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
23764
|
+
className: Page_module_css_default.list,
|
|
23765
|
+
children: group.values.map((value) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
23766
|
+
className: Page_module_css_default.text,
|
|
23767
|
+
children: [
|
|
23768
|
+
value.name,
|
|
23769
|
+
": ",
|
|
23770
|
+
value.value
|
|
23771
|
+
]
|
|
23772
|
+
}, value.name))
|
|
23773
|
+
})]
|
|
23774
|
+
}, `${group.subject}-${group.key ?? ""}-${group.here === true ? "here" : ""}`))] })
|
|
23775
|
+
});
|
|
23776
|
+
}
|
|
23388
23777
|
function PeoplePage({ t, sessionId, visible }) {
|
|
23389
23778
|
const { reading } = useReference(sessionId, "people", visible);
|
|
23390
23779
|
const [open, setOpen] = (0, react.useState)();
|
|
@@ -23818,6 +24207,12 @@ window.__ModuleLoader__.load({
|
|
|
23818
24207
|
const sections = createSlotList(ctx, "roleplay.reference.section");
|
|
23819
24208
|
ctx.effect(() => sections.start(), "roleplay: reference page list");
|
|
23820
24209
|
const pages = [
|
|
24210
|
+
{
|
|
24211
|
+
id: "status",
|
|
24212
|
+
order: 3,
|
|
24213
|
+
label: "status",
|
|
24214
|
+
component: StatusPage
|
|
24215
|
+
},
|
|
23821
24216
|
{
|
|
23822
24217
|
id: "profile",
|
|
23823
24218
|
order: 5,
|
|
@@ -24003,28 +24398,28 @@ window.__ModuleLoader__.load({
|
|
|
24003
24398
|
}
|
|
24004
24399
|
tag$5.textContent = css$5;
|
|
24005
24400
|
var ChatSettingsView_module_css_default = {
|
|
24006
|
-
"view": "rp_wLpbxW_view",
|
|
24007
24401
|
"saved": "rp_wLpbxW_saved",
|
|
24008
|
-
"help": "rp_wLpbxW_help",
|
|
24009
24402
|
"description": "rp_wLpbxW_description",
|
|
24010
24403
|
"error": "rp_wLpbxW_error",
|
|
24011
|
-
"table": "rp_wLpbxW_table",
|
|
24012
|
-
"link": "rp_wLpbxW_link",
|
|
24013
|
-
"reasons": "rp_wLpbxW_reasons",
|
|
24014
|
-
"list": "rp_wLpbxW_list",
|
|
24015
24404
|
"field": "rp_wLpbxW_field",
|
|
24016
|
-
"activity": "rp_wLpbxW_activity",
|
|
24017
|
-
"message": "rp_wLpbxW_message",
|
|
24018
|
-
"select": "rp_wLpbxW_select",
|
|
24019
|
-
"notice": "rp_wLpbxW_notice",
|
|
24020
|
-
"row": "rp_wLpbxW_row",
|
|
24021
|
-
"run": "rp_wLpbxW_run",
|
|
24022
24405
|
"label": "rp_wLpbxW_label",
|
|
24023
|
-
"
|
|
24024
|
-
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
24406
|
+
"link": "rp_wLpbxW_link",
|
|
24025
24407
|
"title": "rp_wLpbxW_title",
|
|
24408
|
+
"table": "rp_wLpbxW_table",
|
|
24409
|
+
"run": "rp_wLpbxW_run",
|
|
24410
|
+
"help": "rp_wLpbxW_help",
|
|
24411
|
+
"pre": "rp_wLpbxW_pre",
|
|
24412
|
+
"reasons": "rp_wLpbxW_reasons",
|
|
24413
|
+
"select": "rp_wLpbxW_select",
|
|
24414
|
+
"activity": "rp_wLpbxW_activity",
|
|
24415
|
+
"message": "rp_wLpbxW_message",
|
|
24416
|
+
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
24417
|
+
"view": "rp_wLpbxW_view",
|
|
24418
|
+
"actions": "rp_wLpbxW_actions",
|
|
24026
24419
|
"activityBody": "rp_wLpbxW_activityBody",
|
|
24027
|
-
"
|
|
24420
|
+
"notice": "rp_wLpbxW_notice",
|
|
24421
|
+
"row": "rp_wLpbxW_row",
|
|
24422
|
+
"list": "rp_wLpbxW_list"
|
|
24028
24423
|
};
|
|
24029
24424
|
// src/client/chat-settings/settings-api.ts
|
|
24030
24425
|
/** The chat is not a roleplay session, so it has no settings. */
|
|
@@ -24149,15 +24544,21 @@ window.__ModuleLoader__.load({
|
|
|
24149
24544
|
decision: "decisionDecision",
|
|
24150
24545
|
hybrid: "decisionHybrid",
|
|
24151
24546
|
shadow: "decisionShadow",
|
|
24547
|
+
strict: "decisionStrict",
|
|
24152
24548
|
on: "decisionOn"
|
|
24153
24549
|
};
|
|
24154
24550
|
const SITE_LABEL = {
|
|
24551
|
+
reuse: "decisionsSiteReuse",
|
|
24552
|
+
errands: "decisionsSiteErrands",
|
|
24553
|
+
variables: "decisionsSiteVariables",
|
|
24155
24554
|
triggers: "decisionsSiteTriggers",
|
|
24156
24555
|
reflection: "decisionsSiteReflection",
|
|
24157
24556
|
agency: "decisionsSiteAgency",
|
|
24158
24557
|
refusal: "decisionsSiteRefusal",
|
|
24558
|
+
repeats: "decisionsSiteRepeats",
|
|
24159
24559
|
rules: "decisionsSiteRules",
|
|
24160
|
-
secrets: "decisionsSiteSecrets"
|
|
24560
|
+
secrets: "decisionsSiteSecrets",
|
|
24561
|
+
messages: "decisionsSiteMessages"
|
|
24161
24562
|
};
|
|
24162
24563
|
/** Whether a decision model is there, and how the sites set to use one have done in this story. */
|
|
24163
24564
|
function DecisionsSection({ t, session, modes }) {
|
|
@@ -24326,7 +24727,7 @@ window.__ModuleLoader__.load({
|
|
|
24326
24727
|
});
|
|
24327
24728
|
}
|
|
24328
24729
|
// src/client/chat-settings/InterfaceSection.tsx
|
|
24329
|
-
const message$
|
|
24730
|
+
const message$5 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
24330
24731
|
/**
|
|
24331
24732
|
* The interface pack of the story: which one is in use or why none is, a choice of the packs the story could use (kept
|
|
24332
24733
|
* with the other settings, so it is saved with them), and, when the world's packs are not what the story copied, a way
|
|
@@ -24344,7 +24745,7 @@ window.__ModuleLoader__.load({
|
|
|
24344
24745
|
setStatus(next);
|
|
24345
24746
|
setFailure(void 0);
|
|
24346
24747
|
}, (error) => {
|
|
24347
|
-
if (!abort.signal.aborted) setFailure(message$
|
|
24748
|
+
if (!abort.signal.aborted) setFailure(message$5(error));
|
|
24348
24749
|
});
|
|
24349
24750
|
return () => {
|
|
24350
24751
|
abort.abort();
|
|
@@ -24365,7 +24766,7 @@ window.__ModuleLoader__.load({
|
|
|
24365
24766
|
setVersion((number) => number + 1);
|
|
24366
24767
|
}, (error) => {
|
|
24367
24768
|
setReport(void 0);
|
|
24368
|
-
setFailure(t("packSyncFailed", { message: message$
|
|
24769
|
+
setFailure(t("packSyncFailed", { message: message$5(error) }));
|
|
24369
24770
|
});
|
|
24370
24771
|
};
|
|
24371
24772
|
if (status === void 0) return failure === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
@@ -24479,7 +24880,7 @@ window.__ModuleLoader__.load({
|
|
|
24479
24880
|
});
|
|
24480
24881
|
}
|
|
24481
24882
|
// src/client/chat-settings/LorebookSection.tsx
|
|
24482
|
-
const message$
|
|
24883
|
+
const message$4 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
24483
24884
|
/** The lorebooks the story holds, with a way to add one from the library or take one out. */
|
|
24484
24885
|
function LorebookSection({ t, session, disabled }) {
|
|
24485
24886
|
const [status, setStatus] = (0, react.useState)();
|
|
@@ -24494,7 +24895,7 @@ window.__ModuleLoader__.load({
|
|
|
24494
24895
|
setStatus(next);
|
|
24495
24896
|
setFailure(void 0);
|
|
24496
24897
|
}, (error) => {
|
|
24497
|
-
if (!abort.signal.aborted) setFailure(message$
|
|
24898
|
+
if (!abort.signal.aborted) setFailure(message$4(error));
|
|
24498
24899
|
});
|
|
24499
24900
|
return () => {
|
|
24500
24901
|
abort.abort();
|
|
@@ -24510,7 +24911,7 @@ window.__ModuleLoader__.load({
|
|
|
24510
24911
|
const refused = (error) => {
|
|
24511
24912
|
setReport([]);
|
|
24512
24913
|
setLeaving(void 0);
|
|
24513
|
-
setFailure(t("lorebookFailed", { message: message$
|
|
24914
|
+
setFailure(t("lorebookFailed", { message: message$4(error) }));
|
|
24514
24915
|
};
|
|
24515
24916
|
const add = () => {
|
|
24516
24917
|
addStoryLorebook(session, choice, new AbortController().signal).then((added) => {
|
|
@@ -24611,6 +25012,150 @@ window.__ModuleLoader__.load({
|
|
|
24611
25012
|
]
|
|
24612
25013
|
});
|
|
24613
25014
|
}
|
|
25015
|
+
// src/client/folders-api.ts
|
|
25016
|
+
async function reply$1(response) {
|
|
25017
|
+
if (!response.ok) {
|
|
25018
|
+
const body = await response.json().catch(() => void 0);
|
|
25019
|
+
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
25020
|
+
}
|
|
25021
|
+
return await response.json();
|
|
25022
|
+
}
|
|
25023
|
+
async function loadStoryFolders(session, signal) {
|
|
25024
|
+
return await reply$1(await fetch(`${API_PREFIX}/sessions/folders?id=${encodeURIComponent(session)}`, {
|
|
25025
|
+
credentials: "same-origin",
|
|
25026
|
+
signal
|
|
25027
|
+
}));
|
|
25028
|
+
}
|
|
25029
|
+
async function saveStoryFolders(session, folders, signal) {
|
|
25030
|
+
return await reply$1(await fetch(`${API_PREFIX}/sessions/folders?id=${encodeURIComponent(session)}`, {
|
|
25031
|
+
method: "PUT",
|
|
25032
|
+
credentials: "same-origin",
|
|
25033
|
+
headers: { "content-type": "application/json" },
|
|
25034
|
+
body: JSON.stringify({ folders }),
|
|
25035
|
+
signal
|
|
25036
|
+
}));
|
|
25037
|
+
}
|
|
25038
|
+
// src/client/chat-settings/FoldersSection.tsx
|
|
25039
|
+
const message$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
25040
|
+
/** The folders the file tools of this story reach: the workspace every story shares, and the folders this story was given. */
|
|
25041
|
+
function FoldersSection({ t, session, disabled }) {
|
|
25042
|
+
const [status, setStatus] = (0, react.useState)();
|
|
25043
|
+
const [path, setPath] = (0, react.useState)("");
|
|
25044
|
+
const [access, setAccess] = (0, react.useState)("read");
|
|
25045
|
+
const [failure, setFailure] = (0, react.useState)();
|
|
25046
|
+
(0, react.useEffect)(() => {
|
|
25047
|
+
const abort = new AbortController();
|
|
25048
|
+
loadStoryFolders(session, abort.signal).then((next) => {
|
|
25049
|
+
setStatus(next);
|
|
25050
|
+
setFailure(void 0);
|
|
25051
|
+
}, (error) => {
|
|
25052
|
+
if (!abort.signal.aborted) setFailure(message$3(error));
|
|
25053
|
+
});
|
|
25054
|
+
return () => {
|
|
25055
|
+
abort.abort();
|
|
25056
|
+
};
|
|
25057
|
+
}, [session]);
|
|
25058
|
+
const save = (folders) => {
|
|
25059
|
+
saveStoryFolders(session, folders, new AbortController().signal).then((next) => {
|
|
25060
|
+
setStatus(next);
|
|
25061
|
+
setPath("");
|
|
25062
|
+
setFailure(void 0);
|
|
25063
|
+
}, (error) => {
|
|
25064
|
+
setFailure(t("foldersFailed", { message: message$3(error) }));
|
|
25065
|
+
});
|
|
25066
|
+
};
|
|
25067
|
+
if (status === void 0) return failure === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
25068
|
+
className: ChatSettingsView_module_css_default.error,
|
|
25069
|
+
role: "alert",
|
|
25070
|
+
children: t("foldersLoadFailed", { message: failure })
|
|
25071
|
+
});
|
|
25072
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
25073
|
+
className: ChatSettingsView_module_css_default.activity,
|
|
25074
|
+
"data-testid": "roleplay-folders",
|
|
25075
|
+
children: [
|
|
25076
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("foldersTitle") }),
|
|
25077
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
25078
|
+
className: ChatSettingsView_module_css_default.description,
|
|
25079
|
+
children: t("foldersHelp", { workspace: status.workspace })
|
|
25080
|
+
}),
|
|
25081
|
+
status.folders.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
25082
|
+
className: ChatSettingsView_module_css_default.description,
|
|
25083
|
+
children: t("foldersNone")
|
|
25084
|
+
}),
|
|
25085
|
+
status.folders.map((folder) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
25086
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(folder.access === "write" ? "foldersRowWrite" : "foldersRowRead", { path: folder.path }) }),
|
|
25087
|
+
" ",
|
|
25088
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
25089
|
+
variant: "ghost",
|
|
25090
|
+
size: "sm",
|
|
25091
|
+
disabled,
|
|
25092
|
+
onClick: () => {
|
|
25093
|
+
save(status.folders.filter((other) => other.path !== folder.path));
|
|
25094
|
+
},
|
|
25095
|
+
children: t("foldersRemove")
|
|
25096
|
+
})
|
|
25097
|
+
] }, folder.path)),
|
|
25098
|
+
status.folders.length < status.limit && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
25099
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
25100
|
+
className: ChatSettingsView_module_css_default.field,
|
|
25101
|
+
style: { maxWidth: "none" },
|
|
25102
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
25103
|
+
className: ChatSettingsView_module_css_default.label,
|
|
25104
|
+
children: t("foldersPath")
|
|
25105
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
25106
|
+
className: ChatSettingsView_module_css_default.select,
|
|
25107
|
+
type: "text",
|
|
25108
|
+
value: path,
|
|
25109
|
+
disabled,
|
|
25110
|
+
placeholder: "/home/…",
|
|
25111
|
+
onChange: (event) => {
|
|
25112
|
+
setPath(event.target.value);
|
|
25113
|
+
}
|
|
25114
|
+
})]
|
|
25115
|
+
}),
|
|
25116
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
25117
|
+
className: ChatSettingsView_module_css_default.field,
|
|
25118
|
+
style: { maxWidth: "none" },
|
|
25119
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
25120
|
+
className: ChatSettingsView_module_css_default.label,
|
|
25121
|
+
children: t("foldersAccess")
|
|
25122
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
25123
|
+
className: ChatSettingsView_module_css_default.select,
|
|
25124
|
+
value: access,
|
|
25125
|
+
disabled,
|
|
25126
|
+
onChange: (event) => {
|
|
25127
|
+
setAccess(event.target.value);
|
|
25128
|
+
},
|
|
25129
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
25130
|
+
value: "read",
|
|
25131
|
+
children: t("foldersRead")
|
|
25132
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
25133
|
+
value: "write",
|
|
25134
|
+
children: t("foldersWrite")
|
|
25135
|
+
})]
|
|
25136
|
+
})]
|
|
25137
|
+
}),
|
|
25138
|
+
path.trim() !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
25139
|
+
variant: "ghost",
|
|
25140
|
+
size: "sm",
|
|
25141
|
+
disabled,
|
|
25142
|
+
onClick: () => {
|
|
25143
|
+
save([...status.folders, {
|
|
25144
|
+
path: path.trim(),
|
|
25145
|
+
access
|
|
25146
|
+
}]);
|
|
25147
|
+
},
|
|
25148
|
+
children: t("foldersAdd")
|
|
25149
|
+
}) })
|
|
25150
|
+
] }),
|
|
25151
|
+
failure !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
25152
|
+
className: ChatSettingsView_module_css_default.error,
|
|
25153
|
+
role: "alert",
|
|
25154
|
+
children: failure
|
|
25155
|
+
})
|
|
25156
|
+
]
|
|
25157
|
+
});
|
|
25158
|
+
}
|
|
24614
25159
|
// src/client/chat-settings/PresetSection.tsx
|
|
24615
25160
|
const message$2 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
24616
25161
|
/** The writing preset the story's prompts came from, whether it still matches the library, and a way to switch or take it out. */
|
|
@@ -25888,6 +26433,11 @@ window.__ModuleLoader__.load({
|
|
|
25888
26433
|
session,
|
|
25889
26434
|
disabled: saving
|
|
25890
26435
|
}),
|
|
26436
|
+
session !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FoldersSection, {
|
|
26437
|
+
t,
|
|
26438
|
+
session,
|
|
26439
|
+
disabled: saving
|
|
26440
|
+
}),
|
|
25891
26441
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToolSwitches, {
|
|
25892
26442
|
board: payload.settings.tools,
|
|
25893
26443
|
onChange: setTools,
|
|
@@ -26000,12 +26550,17 @@ window.__ModuleLoader__.load({
|
|
|
26000
26550
|
decisionsAgreement: "Agreement",
|
|
26001
26551
|
decisionsDecisionTime: "Decision model per run",
|
|
26002
26552
|
decisionsLlmTime: "Language model per run",
|
|
26553
|
+
decisionsSiteRepeats: "Repeated sentences",
|
|
26554
|
+
decisionsSiteVariables: "Tracked values",
|
|
26555
|
+
decisionsSiteReuse: "Stored pictures",
|
|
26003
26556
|
decisionsSiteTriggers: "Trigger statements",
|
|
26004
26557
|
decisionsSiteReflection: "Belief checks",
|
|
26005
26558
|
decisionsSiteAgency: "Narration speaking for you",
|
|
26006
26559
|
decisionsSiteRefusal: "Output out of the story",
|
|
26007
26560
|
decisionsSiteRules: "Actions against the rules",
|
|
26008
26561
|
decisionsSiteSecrets: "Output giving away secrets",
|
|
26562
|
+
decisionsSiteMessages: "Messages while you are away",
|
|
26563
|
+
decisionsSiteErrands: "Characters who wait for you",
|
|
26009
26564
|
decisionsProblem: "{site}: the decision model could not be used the last time ({message}).",
|
|
26010
26565
|
decisionsSamples: "{site}: latest disagreements",
|
|
26011
26566
|
decisionsSample: "Turn {turn}: {what} (decision model {probability}% yes, so {decision}; language model {llm})",
|
|
@@ -26161,6 +26716,19 @@ window.__ModuleLoader__.load({
|
|
|
26161
26716
|
lorebookRemoved: "Done: {count} entries removed.",
|
|
26162
26717
|
lorebookFailed: "Could not change the lorebooks: {message}",
|
|
26163
26718
|
lorebookLoadFailed: "Could not read the lorebooks: {message}",
|
|
26719
|
+
foldersTitle: "Folders for the file tools",
|
|
26720
|
+
foldersHelp: "When the file tools are switched on for an agent of this story, they reach only the workspace every story shares ({workspace}) and the folders given here, always by whole path. Give a folder read-only unless the agent should change it. Shell and terminal tools are not held to these folders.",
|
|
26721
|
+
foldersNone: "No other folder is given to this story.",
|
|
26722
|
+
foldersRowRead: "{path} (read only)",
|
|
26723
|
+
foldersRowWrite: "{path} (read and write)",
|
|
26724
|
+
foldersRemove: "Remove",
|
|
26725
|
+
foldersPath: "Folder (whole path)",
|
|
26726
|
+
foldersAccess: "Access",
|
|
26727
|
+
foldersRead: "Read only",
|
|
26728
|
+
foldersWrite: "Read and write",
|
|
26729
|
+
foldersAdd: "Give this folder",
|
|
26730
|
+
foldersFailed: "The folder was not given: {message}",
|
|
26731
|
+
foldersLoadFailed: "Could not read the folders: {message}",
|
|
26164
26732
|
packTitle: "Interface pack",
|
|
26165
26733
|
packHelp: "A pack changes how this story looks and can add a status strip, buttons, an opening card, a backdrop or a tab. A world can carry packs; yours go in the ui folder of your roleplay folder.",
|
|
26166
26734
|
packActive: "In use: {name}",
|
|
@@ -26209,12 +26777,17 @@ window.__ModuleLoader__.load({
|
|
|
26209
26777
|
decisionsAgreement: "一致率",
|
|
26210
26778
|
decisionsDecisionTime: "决策模型每次",
|
|
26211
26779
|
decisionsLlmTime: "语言模型每次",
|
|
26780
|
+
decisionsSiteRepeats: "重复的句子",
|
|
26781
|
+
decisionsSiteVariables: "被追踪的数值",
|
|
26782
|
+
decisionsSiteReuse: "已存图片",
|
|
26212
26783
|
decisionsSiteTriggers: "触发器陈述",
|
|
26213
26784
|
decisionsSiteReflection: "信念检查",
|
|
26214
26785
|
decisionsSiteAgency: "叙述替你说话",
|
|
26215
26786
|
decisionsSiteRefusal: "输出跳出故事",
|
|
26216
26787
|
decisionsSiteRules: "按规则检查行动",
|
|
26217
26788
|
decisionsSiteSecrets: "输出泄露秘密",
|
|
26789
|
+
decisionsSiteMessages: "你不在时的消息",
|
|
26790
|
+
decisionsSiteErrands: "等你的角色",
|
|
26218
26791
|
decisionsProblem: "{site}:上一次无法使用决策模型({message})。",
|
|
26219
26792
|
decisionsSamples: "{site}:最近的分歧",
|
|
26220
26793
|
decisionsSample: "第 {turn} 回合:{what}(决策模型认为 {probability}% 为是,因此为{decision};语言模型为{llm})",
|
|
@@ -26370,6 +26943,19 @@ window.__ModuleLoader__.load({
|
|
|
26370
26943
|
lorebookRemoved: "完成:删除了 {count} 条。",
|
|
26371
26944
|
lorebookFailed: "无法更改世界书:{message}",
|
|
26372
26945
|
lorebookLoadFailed: "无法读取世界书:{message}",
|
|
26946
|
+
foldersTitle: "文件工具可用的文件夹",
|
|
26947
|
+
foldersHelp: "这个故事里的某个智能体打开文件工具后,只能访问所有故事共用的工作区({workspace})和这里给出的文件夹,并且一律使用完整路径。除非智能体需要修改,否则只给只读。终端和命令行工具不受这些文件夹限制。",
|
|
26948
|
+
foldersNone: "没有给这个故事其他文件夹。",
|
|
26949
|
+
foldersRowRead: "{path}(只读)",
|
|
26950
|
+
foldersRowWrite: "{path}(可读可写)",
|
|
26951
|
+
foldersRemove: "移除",
|
|
26952
|
+
foldersPath: "文件夹(完整路径)",
|
|
26953
|
+
foldersAccess: "权限",
|
|
26954
|
+
foldersRead: "只读",
|
|
26955
|
+
foldersWrite: "可读可写",
|
|
26956
|
+
foldersAdd: "给出这个文件夹",
|
|
26957
|
+
foldersFailed: "没有给出这个文件夹:{message}",
|
|
26958
|
+
foldersLoadFailed: "无法读取文件夹:{message}",
|
|
26373
26959
|
packTitle: "界面包",
|
|
26374
26960
|
packHelp: "界面包会改变此故事的外观,并可添加状态条、按钮、开场卡片、背景或标签页。世界可以自带界面包;你自己的放在角色扮演目录的 ui 文件夹中。",
|
|
26375
26961
|
packActive: "使用中:{name}",
|
|
@@ -26437,14 +27023,14 @@ window.__ModuleLoader__.load({
|
|
|
26437
27023
|
tag$4.textContent = css$4;
|
|
26438
27024
|
var CatalogueSettings_module_css_default = {
|
|
26439
27025
|
"problem": "rp_KPhXDa_problem",
|
|
26440
|
-
"
|
|
26441
|
-
"title": "rp_KPhXDa_title",
|
|
27026
|
+
"keyArea": "rp_KPhXDa_keyArea",
|
|
26442
27027
|
"row": "rp_KPhXDa_row",
|
|
26443
27028
|
"label": "rp_KPhXDa_label",
|
|
27029
|
+
"title": "rp_KPhXDa_title",
|
|
27030
|
+
"hint": "rp_KPhXDa_hint",
|
|
27031
|
+
"actions": "rp_KPhXDa_actions",
|
|
26444
27032
|
"keyHint": "rp_KPhXDa_keyHint",
|
|
26445
27033
|
"field": "rp_KPhXDa_field",
|
|
26446
|
-
"actions": "rp_KPhXDa_actions",
|
|
26447
|
-
"keyArea": "rp_KPhXDa_keyArea",
|
|
26448
27034
|
"section": "rp_KPhXDa_section"
|
|
26449
27035
|
};
|
|
26450
27036
|
// src/client/settings/AuthoringToolSettings.tsx
|
|
@@ -26638,6 +27224,14 @@ window.__ModuleLoader__.load({
|
|
|
26638
27224
|
min: 0,
|
|
26639
27225
|
max: 3650,
|
|
26640
27226
|
placeholder: "30"
|
|
27227
|
+
},
|
|
27228
|
+
{
|
|
27229
|
+
field: "autonomyTickSeconds",
|
|
27230
|
+
group: "limits",
|
|
27231
|
+
kind: "integer",
|
|
27232
|
+
min: 0,
|
|
27233
|
+
max: 3600,
|
|
27234
|
+
placeholder: "30"
|
|
26641
27235
|
}
|
|
26642
27236
|
];
|
|
26643
27237
|
/** A draft is empty (the default), or a value the host accepts; anything else cannot be saved. */
|
|
@@ -26677,18 +27271,18 @@ window.__ModuleLoader__.load({
|
|
|
26677
27271
|
}
|
|
26678
27272
|
tag$3.textContent = css$3;
|
|
26679
27273
|
var AssistantSettings_module_css_default = {
|
|
26680
|
-
"
|
|
26681
|
-
"
|
|
27274
|
+
"head": "rp_ZwzM4q_head",
|
|
27275
|
+
"badges": "rp_ZwzM4q_badges",
|
|
27276
|
+
"fields": "rp_ZwzM4q_fields",
|
|
26682
27277
|
"fieldHint": "rp_ZwzM4q_fieldHint",
|
|
26683
|
-
"
|
|
26684
|
-
"
|
|
27278
|
+
"reset": "rp_ZwzM4q_reset",
|
|
27279
|
+
"select": "rp_ZwzM4q_select",
|
|
26685
27280
|
"title": "rp_ZwzM4q_title",
|
|
27281
|
+
"label": "rp_ZwzM4q_label",
|
|
27282
|
+
"field": "rp_ZwzM4q_field",
|
|
26686
27283
|
"invalid": "rp_ZwzM4q_invalid",
|
|
26687
|
-
"
|
|
26688
|
-
"
|
|
26689
|
-
"select": "rp_ZwzM4q_select",
|
|
26690
|
-
"badges": "rp_ZwzM4q_badges",
|
|
26691
|
-
"reset": "rp_ZwzM4q_reset"
|
|
27284
|
+
"hint": "rp_ZwzM4q_hint",
|
|
27285
|
+
"section": "rp_ZwzM4q_section"
|
|
26692
27286
|
};
|
|
26693
27287
|
// src/client/settings/AssistantSettings.tsx
|
|
26694
27288
|
function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
|
|
@@ -27123,6 +27717,250 @@ window.__ModuleLoader__.load({
|
|
|
27123
27717
|
]
|
|
27124
27718
|
});
|
|
27125
27719
|
}
|
|
27720
|
+
// src/shared/offload.ts
|
|
27721
|
+
/** The kinds of model a story uses that may have to share one machine's memory. `main` is whatever model the chat itself is set to. */
|
|
27722
|
+
const OFFLOAD_ROLES = [
|
|
27723
|
+
"main",
|
|
27724
|
+
"embedding",
|
|
27725
|
+
"reranker",
|
|
27726
|
+
"decision",
|
|
27727
|
+
"image",
|
|
27728
|
+
"speech"
|
|
27729
|
+
];
|
|
27730
|
+
const isRole = (value) => OFFLOAD_ROLES.includes(value);
|
|
27731
|
+
const text$1 = (value) => typeof value === "string" ? value.trim() : "";
|
|
27732
|
+
/** The configuration as written, brought to its shape: unknown roles and blank entries are dropped, a group lists each role once and has at least two. */
|
|
27733
|
+
function offloadOf(value) {
|
|
27734
|
+
const row = typeof value === "object" && value !== null ? value : {};
|
|
27735
|
+
const models = {};
|
|
27736
|
+
const given = typeof row["models"] === "object" && row["models"] !== null ? row["models"] : {};
|
|
27737
|
+
for (const role of OFFLOAD_ROLES) {
|
|
27738
|
+
if (role === "main") continue;
|
|
27739
|
+
const entry = given[role];
|
|
27740
|
+
if (typeof entry !== "object" || entry === null) continue;
|
|
27741
|
+
const route = text$1(entry["route"]);
|
|
27742
|
+
const model = text$1(entry["model"]);
|
|
27743
|
+
if (route !== "" || model !== "") models[role] = {
|
|
27744
|
+
route,
|
|
27745
|
+
model
|
|
27746
|
+
};
|
|
27747
|
+
}
|
|
27748
|
+
return {
|
|
27749
|
+
models,
|
|
27750
|
+
groups: (Array.isArray(row["groups"]) ? row["groups"] : []).map((group) => OFFLOAD_ROLES.filter((role) => Array.isArray(group) && group.some((member) => isRole(member) && member === role))).filter((group) => group.length >= 2)
|
|
27751
|
+
};
|
|
27752
|
+
}
|
|
27753
|
+
/** What stops the setting from working: a role in a group needs the route and the model it is served as. The first one found, or none. */
|
|
27754
|
+
function offloadProblem(config) {
|
|
27755
|
+
for (const role of OFFLOAD_ROLES) {
|
|
27756
|
+
if (role === "main" || !config.groups.some((group) => group.includes(role))) continue;
|
|
27757
|
+
const model = config.models[role];
|
|
27758
|
+
if (model === void 0 || model.route === "") return {
|
|
27759
|
+
role,
|
|
27760
|
+
missing: "route"
|
|
27761
|
+
};
|
|
27762
|
+
if (model.model === "") return {
|
|
27763
|
+
role,
|
|
27764
|
+
missing: "model"
|
|
27765
|
+
};
|
|
27766
|
+
}
|
|
27767
|
+
}
|
|
27768
|
+
// src/client/settings/offload.ts
|
|
27769
|
+
/** The roles that are served as a model of their own; `main` is the chat's. */
|
|
27770
|
+
const SERVED_ROLES = OFFLOAD_ROLES.filter((role) => role !== "main");
|
|
27771
|
+
const roleOf = (value) => OFFLOAD_ROLES.includes(value);
|
|
27772
|
+
/** The draft of the setting is its JSON text, written only by the form; what is not a role or a text is left out. */
|
|
27773
|
+
function offloadDraftOf(text) {
|
|
27774
|
+
let value;
|
|
27775
|
+
try {
|
|
27776
|
+
value = JSON.parse(text === "" ? "{}" : text);
|
|
27777
|
+
} catch {
|
|
27778
|
+
value = {};
|
|
27779
|
+
}
|
|
27780
|
+
const row = typeof value === "object" && value !== null ? value : {};
|
|
27781
|
+
const given = typeof row["models"] === "object" && row["models"] !== null ? row["models"] : {};
|
|
27782
|
+
const models = {};
|
|
27783
|
+
for (const role of SERVED_ROLES) {
|
|
27784
|
+
const entry = given[role];
|
|
27785
|
+
if (typeof entry !== "object" || entry === null) continue;
|
|
27786
|
+
const { route, model } = entry;
|
|
27787
|
+
models[role] = {
|
|
27788
|
+
route: typeof route === "string" ? route : "",
|
|
27789
|
+
model: typeof model === "string" ? model : ""
|
|
27790
|
+
};
|
|
27791
|
+
}
|
|
27792
|
+
return {
|
|
27793
|
+
models,
|
|
27794
|
+
groups: (Array.isArray(row["groups"]) ? row["groups"] : []).map((group) => Array.isArray(group) ? group.filter(roleOf) : [])
|
|
27795
|
+
};
|
|
27796
|
+
}
|
|
27797
|
+
const offloadProblemOf = (draft) => offloadProblem(offloadOf(draft));
|
|
27798
|
+
const offloadField = {
|
|
27799
|
+
field: "offload",
|
|
27800
|
+
format: (value) => JSON.stringify(offloadOf(value)),
|
|
27801
|
+
parse: (text) => {
|
|
27802
|
+
const config = offloadOf(offloadDraftOf(text));
|
|
27803
|
+
if (offloadProblem(config) !== void 0) return void 0;
|
|
27804
|
+
return config.groups.length === 0 ? { kind: "clear" } : {
|
|
27805
|
+
kind: "set",
|
|
27806
|
+
value: config
|
|
27807
|
+
};
|
|
27808
|
+
}
|
|
27809
|
+
};
|
|
27810
|
+
// src/client/settings/OffloadSettings.tsx
|
|
27811
|
+
const ROLE_TEXT = {
|
|
27812
|
+
main: "offloadRole_main",
|
|
27813
|
+
embedding: "offloadRole_embedding",
|
|
27814
|
+
reranker: "offloadRole_reranker",
|
|
27815
|
+
decision: "offloadRole_decision",
|
|
27816
|
+
image: "offloadRole_image",
|
|
27817
|
+
speech: "offloadRole_speech"
|
|
27818
|
+
};
|
|
27819
|
+
/**
|
|
27820
|
+
* Which models cannot stay loaded together. Each group is a set of roles of which only one is kept in memory: before one is used the others are
|
|
27821
|
+
* unloaded from the server. A role that is in a group also says where it is served.
|
|
27822
|
+
*/
|
|
27823
|
+
function OffloadSettings({ t, text, disabled, onEdit }) {
|
|
27824
|
+
const draft = offloadDraftOf(text);
|
|
27825
|
+
const write = (next) => {
|
|
27826
|
+
onEdit(JSON.stringify(next));
|
|
27827
|
+
};
|
|
27828
|
+
const problem = offloadProblemOf(draft);
|
|
27829
|
+
const grouped = new Set(draft.groups.flat());
|
|
27830
|
+
const toggle = (index, role, on) => {
|
|
27831
|
+
write({
|
|
27832
|
+
...draft,
|
|
27833
|
+
groups: draft.groups.map((group, at) => at !== index ? group : OFFLOAD_ROLES.filter((member) => member === role ? on : group.includes(member)))
|
|
27834
|
+
});
|
|
27835
|
+
};
|
|
27836
|
+
const place = (role, patch) => {
|
|
27837
|
+
write({
|
|
27838
|
+
...draft,
|
|
27839
|
+
models: {
|
|
27840
|
+
...draft.models,
|
|
27841
|
+
[role]: {
|
|
27842
|
+
route: "",
|
|
27843
|
+
model: "",
|
|
27844
|
+
...draft.models[role],
|
|
27845
|
+
...patch
|
|
27846
|
+
}
|
|
27847
|
+
}
|
|
27848
|
+
});
|
|
27849
|
+
};
|
|
27850
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
27851
|
+
className: CatalogueSettings_module_css_default.section,
|
|
27852
|
+
"data-testid": "roleplay-offload-settings",
|
|
27853
|
+
children: [
|
|
27854
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
27855
|
+
className: CatalogueSettings_module_css_default.title,
|
|
27856
|
+
children: t("offload")
|
|
27857
|
+
}),
|
|
27858
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
27859
|
+
className: CatalogueSettings_module_css_default.hint,
|
|
27860
|
+
children: t("offloadHint")
|
|
27861
|
+
}),
|
|
27862
|
+
draft.groups.map((group, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27863
|
+
className: CatalogueSettings_module_css_default.row,
|
|
27864
|
+
"data-testid": "offload-group",
|
|
27865
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27866
|
+
className: CatalogueSettings_module_css_default.field,
|
|
27867
|
+
style: {
|
|
27868
|
+
gridColumn: "1 / -1",
|
|
27869
|
+
flexDirection: "row",
|
|
27870
|
+
flexWrap: "wrap",
|
|
27871
|
+
gap: 12
|
|
27872
|
+
},
|
|
27873
|
+
children: [OFFLOAD_ROLES.map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
27874
|
+
className: CatalogueSettings_module_css_default.keyHint,
|
|
27875
|
+
style: {
|
|
27876
|
+
display: "flex",
|
|
27877
|
+
gap: 6,
|
|
27878
|
+
alignItems: "center"
|
|
27879
|
+
},
|
|
27880
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
27881
|
+
type: "checkbox",
|
|
27882
|
+
checked: group.includes(role),
|
|
27883
|
+
disabled,
|
|
27884
|
+
"data-role": role,
|
|
27885
|
+
onChange: (event) => {
|
|
27886
|
+
toggle(index, role, event.target.checked);
|
|
27887
|
+
}
|
|
27888
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(ROLE_TEXT[role]) })]
|
|
27889
|
+
}, role)), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
27890
|
+
variant: "ghost",
|
|
27891
|
+
size: "sm",
|
|
27892
|
+
disabled,
|
|
27893
|
+
onClick: () => {
|
|
27894
|
+
write({
|
|
27895
|
+
...draft,
|
|
27896
|
+
groups: draft.groups.filter((_, at) => at !== index)
|
|
27897
|
+
});
|
|
27898
|
+
},
|
|
27899
|
+
children: t("offloadRemove")
|
|
27900
|
+
})]
|
|
27901
|
+
})
|
|
27902
|
+
}, index)),
|
|
27903
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27904
|
+
className: CatalogueSettings_module_css_default.actions,
|
|
27905
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
27906
|
+
variant: "outline",
|
|
27907
|
+
size: "sm",
|
|
27908
|
+
disabled,
|
|
27909
|
+
onClick: () => {
|
|
27910
|
+
write({
|
|
27911
|
+
...draft,
|
|
27912
|
+
groups: [...draft.groups, []]
|
|
27913
|
+
});
|
|
27914
|
+
},
|
|
27915
|
+
children: t("offloadAdd")
|
|
27916
|
+
})
|
|
27917
|
+
}),
|
|
27918
|
+
SERVED_ROLES.filter((role) => grouped.has(role)).map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27919
|
+
className: CatalogueSettings_module_css_default.row,
|
|
27920
|
+
"data-testid": `offload-model-${role}`,
|
|
27921
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
27922
|
+
className: CatalogueSettings_module_css_default.field,
|
|
27923
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
27924
|
+
className: CatalogueSettings_module_css_default.label,
|
|
27925
|
+
children: [
|
|
27926
|
+
t(ROLE_TEXT[role]),
|
|
27927
|
+
": ",
|
|
27928
|
+
t("offloadRoute")
|
|
27929
|
+
]
|
|
27930
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
27931
|
+
value: draft.models[role]?.route ?? "",
|
|
27932
|
+
disabled,
|
|
27933
|
+
onChange: (event) => {
|
|
27934
|
+
place(role, { route: event.target.value });
|
|
27935
|
+
}
|
|
27936
|
+
})]
|
|
27937
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
27938
|
+
className: CatalogueSettings_module_css_default.field,
|
|
27939
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27940
|
+
className: CatalogueSettings_module_css_default.label,
|
|
27941
|
+
children: t("offloadModel")
|
|
27942
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
27943
|
+
value: draft.models[role]?.model ?? "",
|
|
27944
|
+
disabled,
|
|
27945
|
+
onChange: (event) => {
|
|
27946
|
+
place(role, { model: event.target.value });
|
|
27947
|
+
}
|
|
27948
|
+
})]
|
|
27949
|
+
})]
|
|
27950
|
+
}, role)),
|
|
27951
|
+
problem !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
27952
|
+
className: CatalogueSettings_module_css_default.problem,
|
|
27953
|
+
role: "alert",
|
|
27954
|
+
children: [
|
|
27955
|
+
t(problem.missing === "route" ? "offloadProblemRoute" : "offloadProblemModel"),
|
|
27956
|
+
" (",
|
|
27957
|
+
t(ROLE_TEXT[problem.role]),
|
|
27958
|
+
")"
|
|
27959
|
+
]
|
|
27960
|
+
})
|
|
27961
|
+
]
|
|
27962
|
+
});
|
|
27963
|
+
}
|
|
27126
27964
|
// src/client/settings/setup-api.ts
|
|
27127
27965
|
/** The ids of the plugin rows the profile holds more than once; empty when the profile is as it should be. */
|
|
27128
27966
|
async function loadRedundantLayers(signal) {
|
|
@@ -27508,7 +28346,23 @@ window.__ModuleLoader__.load({
|
|
|
27508
28346
|
catalogueMaxBytesLabel: "Largest catalogue download (bytes)",
|
|
27509
28347
|
catalogueMaxBytesHint: "The most a world downloaded from a catalogue may be, compressed and again unpacked. Default 268435456 (256 MB).",
|
|
27510
28348
|
catalogueTrashDaysLabel: "Days to keep replaced files",
|
|
28349
|
+
autonomyTickSecondsLabel: "Seconds between looks at stories that go on without you",
|
|
28350
|
+
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.",
|
|
27511
28351
|
catalogueTrashDaysHint: "How long the files an update replaced stay in the trash folder before they are deleted. 0 keeps them for good. Default 30.",
|
|
28352
|
+
offload: "Models that cannot be loaded together",
|
|
28353
|
+
offloadHint: "When the models of a story do not fit in memory at once, put the ones that exclude each other in a group: before one of them is used, the server unloads the others, and loads what is asked of it again on its own. Every switch costs the time of loading a model, so group a large model with another only when you have to, and leave this empty when everything fits. The chat's own model is \"Story model\"; the others need the route of the model server (as set in the AI providers) and the model's name there. Unloading needs a provider that supports it (LocalAI and Ollama do).",
|
|
28354
|
+
offloadAdd: "Add a group",
|
|
28355
|
+
offloadRemove: "Remove group",
|
|
28356
|
+
offloadRoute: "Route",
|
|
28357
|
+
offloadModel: "Model name",
|
|
28358
|
+
offloadProblemRoute: "Give the route this model is served on.",
|
|
28359
|
+
offloadProblemModel: "Give the name of this model on its server.",
|
|
28360
|
+
offloadRole_main: "Story model",
|
|
28361
|
+
offloadRole_embedding: "Embeddings",
|
|
28362
|
+
offloadRole_reranker: "Reranker",
|
|
28363
|
+
offloadRole_decision: "Decision model",
|
|
28364
|
+
offloadRole_image: "Images",
|
|
28365
|
+
offloadRole_speech: "Speech",
|
|
27512
28366
|
sync: "Sync with other devices",
|
|
27513
28367
|
syncHint: "Keeps the data folder in step with a folder on a remote, through rclone: each world, each session and each shared folder is synced as one unit and is left alone while it syncs. Leave the remote empty to keep sync off. The sync page lists the units.",
|
|
27514
28368
|
syncRemote: "Remote and folder",
|
|
@@ -27604,7 +28458,23 @@ window.__ModuleLoader__.load({
|
|
|
27604
28458
|
catalogueMaxBytesLabel: "目录下载大小上限(字节)",
|
|
27605
28459
|
catalogueMaxBytesHint: "从目录下载的世界的最大体积,压缩后和解压后都不得超过。默认 268435456(256 MB)。",
|
|
27606
28460
|
catalogueTrashDaysLabel: "被替换文件的保留天数",
|
|
28461
|
+
autonomyTickSecondsLabel: "查看无人在场继续进行的故事的间隔(秒)",
|
|
28462
|
+
autonomyTickSecondsHint: "多久查看一次打开了“我不在时故事继续”的故事:角色按各自日程行事,其中一人可能给你写消息。0 表示从不查看,最短 5 秒。默认 30。",
|
|
27607
28463
|
catalogueTrashDaysHint: "更新替换下来的文件在回收文件夹中保留多少天后删除。0 表示永久保留。默认 30。",
|
|
28464
|
+
offload: "不能同时加载的模型",
|
|
28465
|
+
offloadHint: "如果故事用到的模型无法同时放进内存,就把互相排斥的模型放进同一组:使用其中一个之前,服务器会先卸载其他的,之后再被请求时会自行重新加载。每次切换都要花一次加载模型的时间,所以只在不得不这样做时才把大模型和别的模型分在一组;如果所有模型都放得下,请留空。聊天本身使用的模型是“故事模型”;其他模型需要填模型服务器的路由(在 AI 提供方中设置的那个)以及模型在服务器上的名称。卸载需要提供方支持(LocalAI 和 Ollama 支持)。",
|
|
28466
|
+
offloadAdd: "添加一组",
|
|
28467
|
+
offloadRemove: "删除这一组",
|
|
28468
|
+
offloadRoute: "路由",
|
|
28469
|
+
offloadModel: "模型名称",
|
|
28470
|
+
offloadProblemRoute: "请填写这个模型所在的路由。",
|
|
28471
|
+
offloadProblemModel: "请填写这个模型在服务器上的名称。",
|
|
28472
|
+
offloadRole_main: "故事模型",
|
|
28473
|
+
offloadRole_embedding: "向量嵌入",
|
|
28474
|
+
offloadRole_reranker: "重排序",
|
|
28475
|
+
offloadRole_decision: "决策模型",
|
|
28476
|
+
offloadRole_image: "图像",
|
|
28477
|
+
offloadRole_speech: "语音",
|
|
27608
28478
|
sync: "与其他设备同步",
|
|
27609
28479
|
syncHint: "通过 rclone 让数据文件夹与远端的一个文件夹保持一致:每个世界、每个会话和每个共享文件夹各自作为一个单元同步,同步期间不会被改动。远端留空即关闭同步。“同步”页面会列出各个单元。",
|
|
27610
28480
|
syncRemote: "远端和文件夹",
|
|
@@ -27682,6 +28552,14 @@ window.__ModuleLoader__.load({
|
|
|
27682
28552
|
props.edit("sync", text);
|
|
27683
28553
|
}
|
|
27684
28554
|
}),
|
|
28555
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(OffloadSettings, {
|
|
28556
|
+
t,
|
|
28557
|
+
text: state.offload.text,
|
|
28558
|
+
disabled: !state.writable,
|
|
28559
|
+
onEdit: (text) => {
|
|
28560
|
+
props.edit("offload", text);
|
|
28561
|
+
}
|
|
28562
|
+
}),
|
|
27685
28563
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AssistantSettings, {
|
|
27686
28564
|
t,
|
|
27687
28565
|
group: "assistants",
|
|
@@ -27729,6 +28607,7 @@ window.__ModuleLoader__.load({
|
|
|
27729
28607
|
cataloguesField,
|
|
27730
28608
|
authoringToolsField,
|
|
27731
28609
|
syncField,
|
|
28610
|
+
offloadField,
|
|
27732
28611
|
...assistantFields
|
|
27733
28612
|
]);
|
|
27734
28613
|
this.store = this.form.bind(() => ({
|
|
@@ -27737,6 +28616,7 @@ window.__ModuleLoader__.load({
|
|
|
27737
28616
|
catalogues: this.form.field("catalogues"),
|
|
27738
28617
|
authoringTools: this.form.field("authoringTools"),
|
|
27739
28618
|
sync: this.form.field("sync"),
|
|
28619
|
+
offload: this.form.field("offload"),
|
|
27740
28620
|
assistants: Object.fromEntries(ASSISTANT_FIELDS.map((spec) => [spec.field, this.form.field(spec.field)]))
|
|
27741
28621
|
}));
|
|
27742
28622
|
}
|
|
@@ -27934,28 +28814,28 @@ window.__ModuleLoader__.load({
|
|
|
27934
28814
|
}
|
|
27935
28815
|
tag$2.textContent = css$2;
|
|
27936
28816
|
var NarrationView_module_css_default = {
|
|
27937
|
-
"
|
|
27938
|
-
"
|
|
27939
|
-
"
|
|
27940
|
-
"dice": "rp_NFPimG_dice",
|
|
27941
|
-
"images": "rp_NFPimG_images",
|
|
27942
|
-
"imageButton": "rp_NFPimG_imageButton",
|
|
27943
|
-
"narration": "rp_NFPimG_narration",
|
|
27944
|
-
"line": "rp_NFPimG_line",
|
|
27945
|
-
"speech": "rp_NFPimG_speech",
|
|
28817
|
+
"diceSummary": "rp_NFPimG_diceSummary",
|
|
28818
|
+
"oocRefused": "rp_NFPimG_oocRefused",
|
|
28819
|
+
"name": "rp_NFPimG_name",
|
|
27946
28820
|
"imageError": "rp_NFPimG_imageError",
|
|
27947
|
-
"playLine": "rp_NFPimG_playLine",
|
|
27948
28821
|
"preview": "rp_NFPimG_preview",
|
|
27949
|
-
"playAll": "rp_NFPimG_playAll",
|
|
27950
28822
|
"words": "rp_NFPimG_words",
|
|
28823
|
+
"diceList": "rp_NFPimG_diceList",
|
|
27951
28824
|
"output": "rp_NFPimG_output",
|
|
27952
|
-
"name": "rp_NFPimG_name",
|
|
27953
28825
|
"oocNote": "rp_NFPimG_oocNote",
|
|
27954
28826
|
"avatar": "rp_NFPimG_avatar",
|
|
27955
|
-
"
|
|
27956
|
-
"
|
|
28827
|
+
"images": "rp_NFPimG_images",
|
|
28828
|
+
"note": "rp_NFPimG_note",
|
|
27957
28829
|
"imageStatus": "rp_NFPimG_imageStatus",
|
|
27958
|
-
"
|
|
28830
|
+
"playAll": "rp_NFPimG_playAll",
|
|
28831
|
+
"playLine": "rp_NFPimG_playLine",
|
|
28832
|
+
"speech": "rp_NFPimG_speech",
|
|
28833
|
+
"line": "rp_NFPimG_line",
|
|
28834
|
+
"narration": "rp_NFPimG_narration",
|
|
28835
|
+
"oocLabel": "rp_NFPimG_oocLabel",
|
|
28836
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
28837
|
+
"dice": "rp_NFPimG_dice",
|
|
28838
|
+
"sceneImage": "rp_NFPimG_sceneImage"
|
|
27959
28839
|
};
|
|
27960
28840
|
// src/client/transcript/PreviewNode.tsx
|
|
27961
28841
|
/**
|
|
@@ -28215,16 +29095,18 @@ window.__ModuleLoader__.load({
|
|
|
28215
29095
|
}
|
|
28216
29096
|
tag$1.textContent = css$1;
|
|
28217
29097
|
var SuggestionsDock_module_css_default = {
|
|
28218
|
-
"card": "rp_rWH4DG_card",
|
|
28219
|
-
"chip": "rp_rWH4DG_chip",
|
|
28220
|
-
"dock": "rp_rWH4DG_dock",
|
|
28221
29098
|
"lines": "rp_rWH4DG_lines",
|
|
29099
|
+
"dock": "rp_rWH4DG_dock",
|
|
29100
|
+
"chip": "rp_rWH4DG_chip",
|
|
29101
|
+
"card": "rp_rWH4DG_card",
|
|
28222
29102
|
"label": "rp_rWH4DG_label"
|
|
28223
29103
|
};
|
|
28224
29104
|
// src/client/transcript/SuggestionsDock.tsx
|
|
28225
29105
|
/** The suggestions are made after the output is shown, so they are asked for until they are there. */
|
|
28226
29106
|
const POLL_MS = 2e3;
|
|
28227
29107
|
const GIVE_UP_AFTER = 45;
|
|
29108
|
+
/** Messages from characters arrive while nobody is playing, so they are looked for all the while the dock is open, slowly. */
|
|
29109
|
+
const MESSAGE_POLL_MS = 3e4;
|
|
28228
29110
|
/**
|
|
28229
29111
|
* What the player could do next, as chips stacked above the input; clicking one fills the input (the player may
|
|
28230
29112
|
* edit it before sending). They are made in the background once the output of a turn is shown, so the dock asks
|
|
@@ -28243,6 +29125,25 @@ window.__ModuleLoader__.load({
|
|
|
28243
29125
|
const [meanwhile, setMeanwhile] = (0, react.useState)([]);
|
|
28244
29126
|
const [unfinished, setUnfinished] = (0, react.useState)([]);
|
|
28245
29127
|
const [unwritten, setUnwritten] = (0, react.useState)(0);
|
|
29128
|
+
const [messages, setMessages] = (0, react.useState)([]);
|
|
29129
|
+
(0, react.useEffect)(() => {
|
|
29130
|
+
let stopped = false;
|
|
29131
|
+
const look = () => {
|
|
29132
|
+
notes().then((found) => {
|
|
29133
|
+
if (stopped) return;
|
|
29134
|
+
const lines = found.find((note) => note.kind === "message")?.lines ?? [];
|
|
29135
|
+
setMessages((previous) => previous.join("\n") === lines.join("\n") ? previous : lines);
|
|
29136
|
+
}).catch((error) => {
|
|
29137
|
+
console.warn("roleplay: the notes could not be read", error);
|
|
29138
|
+
});
|
|
29139
|
+
};
|
|
29140
|
+
look();
|
|
29141
|
+
const timer = setInterval(look, MESSAGE_POLL_MS);
|
|
29142
|
+
return () => {
|
|
29143
|
+
stopped = true;
|
|
29144
|
+
clearInterval(timer);
|
|
29145
|
+
};
|
|
29146
|
+
}, [notes]);
|
|
28246
29147
|
(0, react.useEffect)(() => {
|
|
28247
29148
|
setOffered([]);
|
|
28248
29149
|
setMeanwhile([]);
|
|
@@ -28275,7 +29176,7 @@ window.__ModuleLoader__.load({
|
|
|
28275
29176
|
if (timer !== void 0) clearTimeout(timer);
|
|
28276
29177
|
};
|
|
28277
29178
|
}, [latest, notes]);
|
|
28278
|
-
if (running || offered.length === 0 && meanwhile.length === 0 && unfinished.length === 0 && unwritten === 0) return null;
|
|
29179
|
+
if (running || offered.length === 0 && meanwhile.length === 0 && unfinished.length === 0 && unwritten === 0 && messages.length === 0) return null;
|
|
28279
29180
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
28280
29181
|
className: SuggestionsDock_module_css_default.dock,
|
|
28281
29182
|
"data-testid": "roleplay-suggestions",
|
|
@@ -28297,6 +29198,17 @@ window.__ModuleLoader__.load({
|
|
|
28297
29198
|
children: unfinished.map((line) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: line }, line))
|
|
28298
29199
|
})]
|
|
28299
29200
|
}),
|
|
29201
|
+
messages.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
29202
|
+
className: SuggestionsDock_module_css_default.card,
|
|
29203
|
+
"data-testid": "roleplay-messages",
|
|
29204
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
29205
|
+
className: SuggestionsDock_module_css_default.label,
|
|
29206
|
+
children: t("messagesAway")
|
|
29207
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
29208
|
+
className: SuggestionsDock_module_css_default.lines,
|
|
29209
|
+
children: messages.map((line) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: line }, line))
|
|
29210
|
+
})]
|
|
29211
|
+
}),
|
|
28300
29212
|
meanwhile.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
28301
29213
|
className: SuggestionsDock_module_css_default.card,
|
|
28302
29214
|
"data-testid": "roleplay-meanwhile",
|
|
@@ -28337,16 +29249,16 @@ window.__ModuleLoader__.load({
|
|
|
28337
29249
|
}
|
|
28338
29250
|
tag.textContent = css;
|
|
28339
29251
|
var TurnsDock_module_css_default = {
|
|
28340
|
-
"dock": "rp_f4YLlq_dock",
|
|
28341
|
-
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
28342
29252
|
"button": "rp_f4YLlq_button",
|
|
28343
|
-
"error": "rp_f4YLlq_error",
|
|
28344
|
-
"group": "rp_f4YLlq_group",
|
|
28345
29253
|
"count": "rp_f4YLlq_count",
|
|
29254
|
+
"comparisonSubject": "rp_f4YLlq_comparisonSubject",
|
|
29255
|
+
"group": "rp_f4YLlq_group",
|
|
29256
|
+
"error": "rp_f4YLlq_error",
|
|
28346
29257
|
"select": "rp_f4YLlq_select",
|
|
29258
|
+
"dock": "rp_f4YLlq_dock",
|
|
29259
|
+
"comparisonHead": "rp_f4YLlq_comparisonHead",
|
|
28347
29260
|
"comparison": "rp_f4YLlq_comparison",
|
|
28348
|
-
"comparisonLine": "rp_f4YLlq_comparisonLine"
|
|
28349
|
-
"comparisonSubject": "rp_f4YLlq_comparisonSubject"
|
|
29261
|
+
"comparisonLine": "rp_f4YLlq_comparisonLine"
|
|
28350
29262
|
};
|
|
28351
29263
|
// src/client/transcript/withdrawn.ts
|
|
28352
29264
|
/** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */
|
|
@@ -28725,6 +29637,7 @@ window.__ModuleLoader__.load({
|
|
|
28725
29637
|
repaired: "Corrected so that every spoken line is exactly what the character said.",
|
|
28726
29638
|
suggestions: "You could",
|
|
28727
29639
|
meanwhile: "Meanwhile",
|
|
29640
|
+
messagesAway: "Messages while you were away",
|
|
28728
29641
|
worldFindings: "Unfinished in this world",
|
|
28729
29642
|
suggestionHint: "Put it in the input box",
|
|
28730
29643
|
sceneImage: "Illustration of this scene",
|
|
@@ -28778,6 +29691,7 @@ window.__ModuleLoader__.load({
|
|
|
28778
29691
|
repaired: "已修正,确保每句台词与角色原话一致。",
|
|
28779
29692
|
suggestions: "你可以",
|
|
28780
29693
|
meanwhile: "与此同时",
|
|
29694
|
+
messagesAway: "你不在时的消息",
|
|
28781
29695
|
worldFindings: "这个世界尚未完善之处",
|
|
28782
29696
|
suggestionHint: "填入输入框",
|
|
28783
29697
|
sceneImage: "本场景插图",
|