@dsh-agentic-roleplay/core 0.11.0 → 0.11.1

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.
Files changed (43) hide show
  1. package/lib/{access-CXtaZNbx.js → access-Md1YTSX1.js} +4 -1
  2. package/lib/{authoring-tools--6V1pIIL.js → authoring-tools-BFdw7ahj.js} +72 -9
  3. package/lib/authoring.js +38 -8
  4. package/lib/client.js +761 -411
  5. package/lib/client.js.map +1 -1
  6. package/lib/compaction.js +2 -2
  7. package/lib/doctor.js +3 -3
  8. package/lib/{gallery-CtG-bDzz.js → gallery-BWHmjogd.js} +3 -3
  9. package/lib/{generator-nLoPM5MF.js → generator-QCdm8nUh.js} +9 -3
  10. package/lib/helper.js +9 -0
  11. package/lib/{hooks-DORky4KT.js → hooks-C2U1-8ur.js} +676 -15
  12. package/lib/images.js +4 -4
  13. package/lib/index.js +225 -19
  14. package/lib/{library-CH-ahlm0.js → library-4zmCAshR.js} +3 -3
  15. package/lib/{lorebook-author-tools-BrVde1N-.js → lorebook-author-tools-Bjfjt3bg.js} +7 -7
  16. package/lib/lorebook-authoring.js +4 -4
  17. package/lib/{narration-B0hConSw.js → narration-b_VBEUWn.js} +7 -3
  18. package/lib/orchestration.js +338 -28
  19. package/lib/{pack-jail-Bk82pX9t.js → pack-jail-Ci9bIeDI.js} +17 -14
  20. package/lib/{packs-ELfh8yh1.js → packs-CYkozh8Q.js} +2 -2
  21. package/lib/{presenter-agent-UKbKYXMO.js → presenter-agent-CqkAL03Q.js} +10 -7
  22. package/lib/{preset-D9Sfc8sf.js → preset-B-35yUmt.js} +3 -3
  23. package/lib/{preset-author-tools-B3pFL1-e.js → preset-author-tools-BUymqZM5.js} +7 -7
  24. package/lib/preset-authoring.js +5 -5
  25. package/lib/{presets-BRt4Xsy4.js → presets-_U-xroo0.js} +27 -8
  26. package/lib/{reflection-CHiHsY4Y.js → reflection-B9N0z3KY.js} +9 -608
  27. package/lib/{text-CzqhC8sT.js → text-C2AGl7Je.js} +11 -2
  28. package/lib/{turn-guard-B53qOWEU.js → turn-guard-C0M3rXEN.js} +2 -2
  29. package/package.json +2 -2
  30. package/prompts/en/import/variables.md +1 -0
  31. package/prompts/en/roleplay/character-decide.md +1 -1
  32. package/prompts/en/roleplay/decide-reuse.md +3 -0
  33. package/prompts/en/roleplay/decide-variable.md +1 -0
  34. package/prompts/en/roleplay/image-presenter.md +1 -0
  35. package/prompts/en/roleplay/track-values.md +1 -0
  36. package/prompts/en/roleplay/track-variables.md +1 -0
  37. package/prompts/zh/import/variables.md +1 -0
  38. package/prompts/zh/roleplay/character-decide.md +1 -1
  39. package/prompts/zh/roleplay/decide-reuse.md +3 -0
  40. package/prompts/zh/roleplay/decide-variable.md +1 -0
  41. package/prompts/zh/roleplay/image-presenter.md +1 -0
  42. package/prompts/zh/roleplay/track-values.md +1 -0
  43. package/prompts/zh/roleplay/track-variables.md +1 -0
package/lib/client.js CHANGED
@@ -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
92
  "body": "rp_ua5gBa_body",
94
93
  "panel": "rp_ua5gBa_panel",
95
- "header": "rp_ua5gBa_header"
94
+ "header": "rp_ua5gBa_header",
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
+ "tags": "rp_5cvtma_tags",
430
431
  "entryHead": "rp_5cvtma_entryHead",
431
- "about": "rp_5cvtma_about",
432
432
  "section": "rp_5cvtma_section",
433
- "field": "rp_5cvtma_field",
434
- "picture": "rp_5cvtma_picture",
435
- "body": "rp_5cvtma_body",
436
- "row": "rp_5cvtma_row",
433
+ "header": "rp_5cvtma_header",
437
434
  "entry": "rp_5cvtma_entry",
438
- "error": "rp_5cvtma_error",
439
- "fieldHead": "rp_5cvtma_fieldHead",
440
435
  "fieldMeta": "rp_5cvtma_fieldMeta",
441
- "tags": "rp_5cvtma_tags",
442
- "text": "rp_5cvtma_text",
443
- "entryOff": "rp_5cvtma_entryOff",
444
- "entryTitle": "rp_5cvtma_entryTitle",
436
+ "title": "rp_5cvtma_title",
445
437
  "choice": "rp_5cvtma_choice",
446
- "choiceText": "rp_5cvtma_choiceText",
447
- "top": "rp_5cvtma_top",
448
- "preview": "rp_5cvtma_preview",
449
438
  "heading": "rp_5cvtma_heading",
450
439
  "page": "rp_5cvtma_page",
451
- "header": "rp_5cvtma_header",
440
+ "error": "rp_5cvtma_error",
441
+ "choiceText": "rp_5cvtma_choiceText",
452
442
  "noPicture": "rp_5cvtma_noPicture",
453
- "label": "rp_5cvtma_label",
443
+ "entryOff": "rp_5cvtma_entryOff",
454
444
  "space": "rp_5cvtma_space",
445
+ "row": "rp_5cvtma_row",
446
+ "top": "rp_5cvtma_top",
447
+ "fieldHead": "rp_5cvtma_fieldHead",
448
+ "preview": "rp_5cvtma_preview",
449
+ "entryTitle": "rp_5cvtma_entryTitle",
450
+ "picture": "rp_5cvtma_picture",
451
+ "about": "rp_5cvtma_about",
455
452
  "note": "rp_5cvtma_note",
456
- "title": "rp_5cvtma_title",
457
- "fieldTitle": "rp_5cvtma_fieldTitle"
453
+ "field": "rp_5cvtma_field",
454
+ "fieldTitle": "rp_5cvtma_fieldTitle",
455
+ "body": "rp_5cvtma_body",
456
+ "label": "rp_5cvtma_label",
457
+ "text": "rp_5cvtma_text"
458
458
  };
459
459
  // src/client/widgets/import-card/ImportCard.tsx
460
460
  const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
@@ -944,37 +944,37 @@ window.__ModuleLoader__.load({
944
944
  tag$37.textContent = css$37;
945
945
  var CataloguePage_module_css_default = {
946
946
  "kinds": "rp_qK1u-G_kinds",
947
+ "image": "rp_qK1u-G_image",
948
+ "toolbar": "rp_qK1u-G_toolbar",
949
+ "warning": "rp_qK1u-G_warning",
947
950
  "cover": "rp_qK1u-G_cover",
948
- "label": "rp_qK1u-G_label",
949
- "meta": "rp_qK1u-G_meta",
951
+ "body": "rp_qK1u-G_body",
950
952
  "status": "rp_qK1u-G_status",
951
- "form": "rp_qK1u-G_form",
952
- "success": "rp_qK1u-G_success",
953
+ "updates": "rp_qK1u-G_updates",
954
+ "page": "rp_qK1u-G_page",
955
+ "changes": "rp_qK1u-G_changes",
953
956
  "message": "rp_qK1u-G_message",
954
- "image": "rp_qK1u-G_image",
955
957
  "search": "rp_qK1u-G_search",
956
- "card": "rp_qK1u-G_card",
957
- "placeholder": "rp_qK1u-G_placeholder",
958
- "viewport": "rp_qK1u-G_viewport",
959
- "name": "rp_qK1u-G_name",
960
958
  "field": "rp_qK1u-G_field",
959
+ "more": "rp_qK1u-G_more",
960
+ "description": "rp_qK1u-G_description",
961
+ "actions": "rp_qK1u-G_actions",
961
962
  "update": "rp_qK1u-G_update",
962
- "select": "rp_qK1u-G_select",
963
+ "grid": "rp_qK1u-G_grid",
964
+ "meta": "rp_qK1u-G_meta",
963
965
  "notice": "rp_qK1u-G_notice",
964
- "more": "rp_qK1u-G_more",
965
966
  "spacer": "rp_qK1u-G_spacer",
966
- "toolbar": "rp_qK1u-G_toolbar",
967
- "grid": "rp_qK1u-G_grid",
968
- "updates": "rp_qK1u-G_updates",
969
- "detail": "rp_qK1u-G_detail",
970
- "warning": "rp_qK1u-G_warning",
971
- "actions": "rp_qK1u-G_actions",
972
- "changes": "rp_qK1u-G_changes",
973
- "body": "rp_qK1u-G_body",
967
+ "tags": "rp_qK1u-G_tags",
968
+ "viewport": "rp_qK1u-G_viewport",
974
969
  "kind": "rp_qK1u-G_kind",
975
- "description": "rp_qK1u-G_description",
976
- "page": "rp_qK1u-G_page",
977
- "tags": "rp_qK1u-G_tags"
970
+ "placeholder": "rp_qK1u-G_placeholder",
971
+ "name": "rp_qK1u-G_name",
972
+ "success": "rp_qK1u-G_success",
973
+ "form": "rp_qK1u-G_form",
974
+ "detail": "rp_qK1u-G_detail",
975
+ "card": "rp_qK1u-G_card",
976
+ "select": "rp_qK1u-G_select",
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. */
@@ -1178,19 +1178,19 @@ 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
1181
  "bar": "rp_Jx0l4q_bar",
1184
- "count": "rp_Jx0l4q_count",
1185
- "note": "rp_Jx0l4q_note",
1186
1182
  "error": "rp_Jx0l4q_error",
1187
- "sampling": "rp_Jx0l4q_sampling",
1188
1183
  "body": "rp_Jx0l4q_body",
1189
- "extra": "rp_Jx0l4q_extra",
1184
+ "count": "rp_Jx0l4q_count",
1185
+ "row": "rp_Jx0l4q_row",
1186
+ "list": "rp_Jx0l4q_list",
1190
1187
  "text": "rp_Jx0l4q_text",
1188
+ "help": "rp_Jx0l4q_help",
1191
1189
  "meta": "rp_Jx0l4q_meta",
1190
+ "note": "rp_Jx0l4q_note",
1192
1191
  "full": "rp_Jx0l4q_full",
1193
- "list": "rp_Jx0l4q_list"
1192
+ "sampling": "rp_Jx0l4q_sampling",
1193
+ "extra": "rp_Jx0l4q_extra"
1194
1194
  };
1195
1195
  // src/client/widgets/import-selection/ImportSelection.tsx
1196
1196
  const messageOf$14 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -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
- "tabs": "rp_5ZMIxq_tabs",
3127
- "sectionTitle": "rp_5ZMIxq_sectionTitle",
3128
- "label": "rp_5ZMIxq_label",
3129
- "select": "rp_5ZMIxq_select",
3125
+ "grid": "rp_5ZMIxq_grid",
3126
+ "questionTitle": "rp_5ZMIxq_questionTitle",
3127
+ "portraitAction": "rp_5ZMIxq_portraitAction",
3128
+ "portrait": "rp_5ZMIxq_portrait",
3130
3129
  "bar": "rp_5ZMIxq_bar",
3131
3130
  "field": "rp_5ZMIxq_field",
3132
- "area": "rp_5ZMIxq_area",
3133
- "portraitBox": "rp_5ZMIxq_portraitBox",
3134
- "initial": "rp_5ZMIxq_initial",
3131
+ "label": "rp_5ZMIxq_label",
3132
+ "tabOn": "rp_5ZMIxq_tabOn",
3133
+ "body": "rp_5ZMIxq_body",
3134
+ "wide": "rp_5ZMIxq_wide",
3135
+ "missing": "rp_5ZMIxq_missing",
3135
3136
  "itemActions": "rp_5ZMIxq_itemActions",
3136
- "help": "rp_5ZMIxq_help",
3137
- "grid": "rp_5ZMIxq_grid",
3138
- "error": "rp_5ZMIxq_error",
3139
- "tab": "rp_5ZMIxq_tab",
3140
3137
  "optionFields": "rp_5ZMIxq_optionFields",
3141
- "head": "rp_5ZMIxq_head",
3142
- "portraitAction": "rp_5ZMIxq_portraitAction",
3143
- "meta": "rp_5ZMIxq_meta",
3144
- "body": "rp_5ZMIxq_body",
3138
+ "sectionTitle": "rp_5ZMIxq_sectionTitle",
3139
+ "initial": "rp_5ZMIxq_initial",
3145
3140
  "tabsSpace": "rp_5ZMIxq_tabsSpace",
3146
- "portraitHint": "rp_5ZMIxq_portraitHint",
3147
3141
  "goal": "rp_5ZMIxq_goal",
3148
- "missing": "rp_5ZMIxq_missing",
3149
- "wide": "rp_5ZMIxq_wide",
3150
- "barText": "rp_5ZMIxq_barText",
3151
- "tabOn": "rp_5ZMIxq_tabOn",
3142
+ "head": "rp_5ZMIxq_head",
3143
+ "portraitBox": "rp_5ZMIxq_portraitBox",
3144
+ "questionActions": "rp_5ZMIxq_questionActions",
3152
3145
  "panel": "rp_5ZMIxq_panel",
3146
+ "meta": "rp_5ZMIxq_meta",
3147
+ "sheet": "rp_5ZMIxq_sheet",
3148
+ "portraitError": "rp_5ZMIxq_portraitError",
3149
+ "portraitHint": "rp_5ZMIxq_portraitHint",
3150
+ "question": "rp_5ZMIxq_question",
3151
+ "nameInput": "rp_5ZMIxq_nameInput",
3153
3152
  "voiceInline": "rp_5ZMIxq_voiceInline",
3153
+ "select": "rp_5ZMIxq_select",
3154
+ "tabs": "rp_5ZMIxq_tabs",
3154
3155
  "empty": "rp_5ZMIxq_empty",
3155
- "questionTitle": "rp_5ZMIxq_questionTitle",
3156
+ "help": "rp_5ZMIxq_help",
3156
3157
  "section": "rp_5ZMIxq_section",
3157
- "sheet": "rp_5ZMIxq_sheet",
3158
- "portrait": "rp_5ZMIxq_portrait",
3159
- "questionActions": "rp_5ZMIxq_questionActions",
3160
- "nameInput": "rp_5ZMIxq_nameInput",
3161
- "portraitError": "rp_5ZMIxq_portraitError"
3158
+ "tab": "rp_5ZMIxq_tab",
3159
+ "error": "rp_5ZMIxq_error",
3160
+ "area": "rp_5ZMIxq_area",
3161
+ "placeholder": "rp_5ZMIxq_placeholder",
3162
+ "barText": "rp_5ZMIxq_barText",
3163
+ "optionTitle": "rp_5ZMIxq_optionTitle",
3164
+ "row": "rp_5ZMIxq_row"
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 = {
4880
- "panel": "rp_7pEHTW_panel",
4881
- "edgeOn": "rp_7pEHTW_edgeOn",
4882
- "wide": "rp_7pEHTW_wide",
4883
- "metrics": "rp_7pEHTW_metrics",
4884
- "node_faction": "rp_7pEHTW_node_faction",
4885
4883
  "form": "rp_7pEHTW_form",
4886
- "actions": "rp_7pEHTW_actions",
4887
- "graphInspector": "rp_7pEHTW_graphInspector",
4888
- "status": "rp_7pEHTW_status",
4889
- "empty": "rp_7pEHTW_empty",
4890
- "head": "rp_7pEHTW_head",
4884
+ "node_character": "rp_7pEHTW_node_character",
4885
+ "check": "rp_7pEHTW_check",
4886
+ "node_location": "rp_7pEHTW_node_location",
4891
4887
  "toolbar": "rp_7pEHTW_toolbar",
4888
+ "inspector": "rp_7pEHTW_inspector",
4892
4889
  "workspace": "rp_7pEHTW_workspace",
4893
- "filter": "rp_7pEHTW_filter",
4894
- "list": "rp_7pEHTW_list",
4895
- "node_character": "rp_7pEHTW_node_character",
4890
+ "empty": "rp_7pEHTW_empty",
4896
4891
  "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
4897
- "perspective": "rp_7pEHTW_perspective",
4898
- "node_location": "rp_7pEHTW_node_location",
4899
- "node": "rp_7pEHTW_node",
4900
- "filterOn": "rp_7pEHTW_filterOn",
4901
- "graph": "rp_7pEHTW_graph",
4902
- "node_item": "rp_7pEHTW_node_item",
4903
- "notice": "rp_7pEHTW_notice",
4892
+ "node_faction": "rp_7pEHTW_node_faction",
4904
4893
  "graphEdge": "rp_7pEHTW_graphEdge",
4905
- "check": "rp_7pEHTW_check",
4906
4894
  "edgeKind": "rp_7pEHTW_edgeKind",
4907
- "error": "rp_7pEHTW_error",
4895
+ "node": "rp_7pEHTW_node",
4896
+ "filterOn": "rp_7pEHTW_filterOn",
4897
+ "perspective": "rp_7pEHTW_perspective",
4898
+ "edge": "rp_7pEHTW_edge",
4899
+ "space": "rp_7pEHTW_space",
4908
4900
  "edgeTitle": "rp_7pEHTW_edgeTitle",
4901
+ "graphInspector": "rp_7pEHTW_graphInspector",
4902
+ "filter": "rp_7pEHTW_filter",
4903
+ "edgeOn": "rp_7pEHTW_edgeOn",
4904
+ "list": "rp_7pEHTW_list",
4909
4905
  "entities": "rp_7pEHTW_entities",
4910
- "inspector": "rp_7pEHTW_inspector",
4911
- "edge": "rp_7pEHTW_edge",
4912
- "space": "rp_7pEHTW_space"
4906
+ "actions": "rp_7pEHTW_actions",
4907
+ "panel": "rp_7pEHTW_panel",
4908
+ "notice": "rp_7pEHTW_notice",
4909
+ "error": "rp_7pEHTW_error",
4910
+ "metrics": "rp_7pEHTW_metrics",
4911
+ "wide": "rp_7pEHTW_wide",
4912
+ "node_item": "rp_7pEHTW_node_item",
4913
+ "status": "rp_7pEHTW_status",
4914
+ "graph": "rp_7pEHTW_graph",
4915
+ "head": "rp_7pEHTW_head"
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$2 = (params, name) => {
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$2(params, "text").trim();
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$2(params, "key"));
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$2(params, "key"), params["value"]);
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$2(params, "key"));
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",
6286
+ "tab": "rp_h_sbFq_tab",
6282
6287
  "frame": "rp_h_sbFq_frame",
6283
- "hud": "rp_h_sbFq_hud",
6284
- "message": "rp_h_sbFq_message",
6285
6288
  "problems": "rp_h_sbFq_problems",
6286
- "tab": "rp_h_sbFq_tab"
6289
+ "hud": "rp_h_sbFq_hud"
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 = {
6545
- "group": "rp_FLaP7q_group",
6548
+ "stage": "rp_FLaP7q_stage",
6549
+ "log": "rp_FLaP7q_log",
6550
+ "files": "rp_FLaP7q_files",
6546
6551
  "controls": "rp_FLaP7q_controls",
6547
6552
  "note": "rp_FLaP7q_note",
6548
- "stage": "rp_FLaP7q_stage",
6549
6553
  "stageTall": "rp_FLaP7q_stageTall",
6550
- "log": "rp_FLaP7q_log",
6551
- "files": "rp_FLaP7q_files"
6554
+ "group": "rp_FLaP7q_group"
6552
6555
  };
6553
6556
  // src/client/world-editor/PacksPanel.tsx
6554
6557
  const WIDTHS = {
@@ -7643,12 +7646,12 @@ window.__ModuleLoader__.load({
7643
7646
  }
7644
7647
  tag$31.textContent = css$31;
7645
7648
  var SamplingFields_module_css_default = {
7649
+ "input": "rp_9vxYSG_input",
7646
7650
  "label": "rp_9vxYSG_label",
7651
+ "root": "rp_9vxYSG_root",
7647
7652
  "grid": "rp_9vxYSG_grid",
7648
- "input": "rp_9vxYSG_input",
7649
- "help": "rp_9vxYSG_help",
7650
7653
  "field": "rp_9vxYSG_field",
7651
- "root": "rp_9vxYSG_root"
7654
+ "help": "rp_9vxYSG_help"
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() ?? ""]));
@@ -9406,17 +9409,17 @@ window.__ModuleLoader__.load({
9406
9409
  }
9407
9410
  tag$30.textContent = css$30;
9408
9411
  var ToolSwitches_module_css_default = {
9409
- "toolText": "rp_CjoFLq_toolText",
9410
- "error": "rp_CjoFLq_error",
9412
+ "default": "rp_CjoFLq_default",
9413
+ "agent": "rp_CjoFLq_agent",
9411
9414
  "tool": "rp_CjoFLq_tool",
9412
- "external": "rp_CjoFLq_external",
9415
+ "hint": "rp_CjoFLq_hint",
9416
+ "error": "rp_CjoFLq_error",
9413
9417
  "help": "rp_CjoFLq_help",
9414
9418
  "title": "rp_CjoFLq_title",
9415
- "agent": "rp_CjoFLq_agent",
9416
- "default": "rp_CjoFLq_default",
9417
9419
  "root": "rp_CjoFLq_root",
9418
- "hint": "rp_CjoFLq_hint",
9419
- "agentName": "rp_CjoFLq_agentName"
9420
+ "agentName": "rp_CjoFLq_agentName",
9421
+ "toolText": "rp_CjoFLq_toolText",
9422
+ "external": "rp_CjoFLq_external"
9420
9423
  };
9421
9424
  // src/client/widgets/tool-switches/ToolSwitches.tsx
9422
9425
  /**
@@ -9991,6 +9994,7 @@ window.__ModuleLoader__.load({
9991
9994
  subject: "character",
9992
9995
  visibility: "public",
9993
9996
  description: "",
9997
+ update: "",
9994
9998
  min: "",
9995
9999
  max: "",
9996
10000
  integer: false,
@@ -10008,6 +10012,7 @@ window.__ModuleLoader__.load({
10008
10012
  subject: value.subject,
10009
10013
  visibility: value.visibility,
10010
10014
  description: value.description ?? "",
10015
+ update: value.update ?? "",
10011
10016
  min: value.min === void 0 ? "" : String(value.min),
10012
10017
  max: value.max === void 0 ? "" : String(value.max),
10013
10018
  integer: value.integer === true,
@@ -10043,6 +10048,7 @@ window.__ModuleLoader__.load({
10043
10048
  subject: draft.subject,
10044
10049
  visibility: draft.visibility,
10045
10050
  ...draft.description.trim() === "" ? {} : { description: draft.description.trim() },
10051
+ ...draft.update.trim() === "" ? {} : { update: draft.update.trim() },
10046
10052
  ...draft.kind === "number" && min !== void 0 ? { min } : {},
10047
10053
  ...draft.kind === "number" && max !== void 0 ? { max } : {},
10048
10054
  ...draft.kind === "number" && draft.integer ? { integer: true } : {},
@@ -10216,6 +10222,7 @@ window.__ModuleLoader__.load({
10216
10222
  })]
10217
10223
  }),
10218
10224
  text(index, "description", "description", true),
10225
+ text(index, "update", "variableUpdate", true),
10219
10226
  entry.kind === "number" && text(index, "min", "variableMin"),
10220
10227
  entry.kind === "number" && text(index, "max", "variableMax"),
10221
10228
  text(index, "default", "variableDefault"),
@@ -10419,35 +10426,35 @@ window.__ModuleLoader__.load({
10419
10426
  }
10420
10427
  tag$29.textContent = css$29;
10421
10428
  var GalleryView_module_css_default = {
10422
- "editInput": "rp_9pSHmG_editInput",
10429
+ "cell": "rp_9pSHmG_cell",
10430
+ "note": "rp_9pSHmG_note",
10423
10431
  "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",
10432
+ "editHelp": "rp_9pSHmG_editHelp",
10433
+ "detail": "rp_9pSHmG_detail",
10429
10434
  "edit": "rp_9pSHmG_edit",
10430
- "error": "rp_9pSHmG_error",
10431
- "grid": "rp_9pSHmG_grid",
10432
- "count": "rp_9pSHmG_count",
10433
- "cell": "rp_9pSHmG_cell",
10434
- "facts": "rp_9pSHmG_facts",
10435
- "message": "rp_9pSHmG_message",
10436
- "editField": "rp_9pSHmG_editField",
10435
+ "thumb": "rp_9pSHmG_thumb",
10437
10436
  "large": "rp_9pSHmG_large",
10438
- "image": "rp_9pSHmG_image",
10439
- "pre": "rp_9pSHmG_pre",
10440
- "note": "rp_9pSHmG_note",
10437
+ "editArea": "rp_9pSHmG_editArea",
10441
10438
  "statusError": "rp_9pSHmG_statusError",
10442
- "actions": "rp_9pSHmG_actions",
10443
- "editHelp": "rp_9pSHmG_editHelp",
10439
+ "image": "rp_9pSHmG_image",
10444
10440
  "tags": "rp_9pSHmG_tags",
10441
+ "message": "rp_9pSHmG_message",
10445
10442
  "toolbar": "rp_9pSHmG_toolbar",
10446
- "editLabel": "rp_9pSHmG_editLabel",
10447
- "page": "rp_9pSHmG_page",
10443
+ "error": "rp_9pSHmG_error",
10444
+ "status": "rp_9pSHmG_status",
10445
+ "caption": "rp_9pSHmG_caption",
10448
10446
  "open": "rp_9pSHmG_open",
10449
- "detail": "rp_9pSHmG_detail",
10450
- "reusable": "rp_9pSHmG_reusable"
10447
+ "actions": "rp_9pSHmG_actions",
10448
+ "editInput": "rp_9pSHmG_editInput",
10449
+ "pre": "rp_9pSHmG_pre",
10450
+ "editField": "rp_9pSHmG_editField",
10451
+ "count": "rp_9pSHmG_count",
10452
+ "page": "rp_9pSHmG_page",
10453
+ "facts": "rp_9pSHmG_facts",
10454
+ "reusable": "rp_9pSHmG_reusable",
10455
+ "editButton": "rp_9pSHmG_editButton",
10456
+ "grid": "rp_9pSHmG_grid",
10457
+ "editLabel": "rp_9pSHmG_editLabel"
10451
10458
  };
10452
10459
  // src/client/widgets/gallery-view/GalleryView.tsx
10453
10460
  /** How often the list is read again while pictures are waiting to be described. */
@@ -10786,13 +10793,13 @@ window.__ModuleLoader__.load({
10786
10793
  }
10787
10794
  tag$28.textContent = css$28;
10788
10795
  var WorldEditor_module_css_default = {
10789
- "view": "rp__swA3a_view",
10790
- "message": "rp__swA3a_message",
10791
10796
  "warning": "rp__swA3a_warning",
10792
10797
  "drawer": "rp__swA3a_drawer",
10793
10798
  "drawerItem": "rp__swA3a_drawerItem",
10799
+ "drawerItemOn": "rp__swA3a_drawerItemOn",
10800
+ "view": "rp__swA3a_view",
10794
10801
  "content": "rp__swA3a_content",
10795
- "drawerItemOn": "rp__swA3a_drawerItemOn"
10802
+ "message": "rp__swA3a_message"
10796
10803
  };
10797
10804
  // src/client/world-editor/WorldEditor.tsx
10798
10805
  const SECTIONS = [
@@ -11186,27 +11193,27 @@ window.__ModuleLoader__.load({
11186
11193
  }
11187
11194
  tag$27.textContent = css$27;
11188
11195
  var AvatarsPage_module_css_default = {
11196
+ "placeholder": "rp_pQOzEG_placeholder",
11189
11197
  "page": "rp_pQOzEG_page",
11190
11198
  "open": "rp_pQOzEG_open",
11191
- "editHeader": "rp_pQOzEG_editHeader",
11192
- "form": "rp_pQOzEG_form",
11193
- "field": "rp_pQOzEG_field",
11194
- "count": "rp_pQOzEG_count",
11199
+ "actions": "rp_pQOzEG_actions",
11200
+ "toolbar": "rp_pQOzEG_toolbar",
11201
+ "card": "rp_pQOzEG_card",
11195
11202
  "name": "rp_pQOzEG_name",
11196
- "editTitle": "rp_pQOzEG_editTitle",
11197
11203
  "grid": "rp_pQOzEG_grid",
11198
- "text": "rp_pQOzEG_text",
11199
11204
  "viewport": "rp_pQOzEG_viewport",
11200
- "placeholder": "rp_pQOzEG_placeholder",
11201
- "card": "rp_pQOzEG_card",
11202
11205
  "message": "rp_pQOzEG_message",
11203
- "summary": "rp_pQOzEG_summary",
11204
- "portrait": "rp_pQOzEG_portrait",
11206
+ "count": "rp_pQOzEG_count",
11207
+ "editHeader": "rp_pQOzEG_editHeader",
11205
11208
  "editBody": "rp_pQOzEG_editBody",
11206
- "toolbar": "rp_pQOzEG_toolbar",
11207
- "actions": "rp_pQOzEG_actions",
11209
+ "text": "rp_pQOzEG_text",
11210
+ "summary": "rp_pQOzEG_summary",
11211
+ "error": "rp_pQOzEG_error",
11212
+ "editTitle": "rp_pQOzEG_editTitle",
11213
+ "field": "rp_pQOzEG_field",
11214
+ "form": "rp_pQOzEG_form",
11208
11215
  "label": "rp_pQOzEG_label",
11209
- "error": "rp_pQOzEG_error"
11216
+ "portrait": "rp_pQOzEG_portrait"
11210
11217
  };
11211
11218
  // src/client/pages/avatars/AvatarsPage.tsx
11212
11219
  const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
@@ -11890,6 +11897,7 @@ window.__ModuleLoader__.load({
11890
11897
  invalidPlayable: "A playable character must be a person and not a background character.",
11891
11898
  invalidPriority: "A number from 0 to 1.",
11892
11899
  back: "Back to the worlds",
11900
+ variableUpdate: "When and how it changes",
11893
11901
  noPlaces: "This story has no places.",
11894
11902
  noThings: "This story has no things.",
11895
11903
  description: "Description",
@@ -12188,6 +12196,7 @@ window.__ModuleLoader__.load({
12188
12196
  invalidPlayable: "可扮演的角色必须是个人,且不能是背景角色。",
12189
12197
  invalidPriority: "请填 0 到 1 之间的数。",
12190
12198
  back: "返回世界列表",
12199
+ variableUpdate: "何时、如何变化",
12191
12200
  noPlaces: "这个故事没有地点。",
12192
12201
  noThings: "这个故事没有物品。",
12193
12202
  description: "描述",
@@ -12695,37 +12704,37 @@ window.__ModuleLoader__.load({
12695
12704
  }
12696
12705
  tag$26.textContent = css$26;
12697
12706
  var LorebooksPage_module_css_default = {
12698
- "entryArea": "rp_VV-Eha_entryArea",
12699
- "viewport": "rp_VV-Eha_viewport",
12700
- "count": "rp_VV-Eha_count",
12701
- "name": "rp_VV-Eha_name",
12707
+ "title": "rp_VV-Eha_title",
12708
+ "page": "rp_VV-Eha_page",
12702
12709
  "section": "rp_VV-Eha_section",
12703
- "sectionTitle": "rp_VV-Eha_sectionTitle",
12704
- "card": "rp_VV-Eha_card",
12710
+ "meta": "rp_VV-Eha_meta",
12711
+ "message": "rp_VV-Eha_message",
12712
+ "form": "rp_VV-Eha_form",
12713
+ "label": "rp_VV-Eha_label",
12714
+ "editHeader": "rp_VV-Eha_editHeader",
12715
+ "toolbar": "rp_VV-Eha_toolbar",
12716
+ "viewport": "rp_VV-Eha_viewport",
12717
+ "input": "rp_VV-Eha_input",
12705
12718
  "cardActions": "rp_VV-Eha_cardActions",
12706
- "title": "rp_VV-Eha_title",
12707
12719
  "ok": "rp_VV-Eha_ok",
12708
- "row": "rp_VV-Eha_row",
12709
- "select": "rp_VV-Eha_select",
12710
- "area": "rp_VV-Eha_area",
12711
12720
  "field": "rp_VV-Eha_field",
12712
- "editHeader": "rp_VV-Eha_editHeader",
12713
- "message": "rp_VV-Eha_message",
12714
- "page": "rp_VV-Eha_page",
12721
+ "editBody": "rp_VV-Eha_editBody",
12722
+ "description": "rp_VV-Eha_description",
12715
12723
  "actions": "rp_VV-Eha_actions",
12716
- "input": "rp_VV-Eha_input",
12717
- "label": "rp_VV-Eha_label",
12718
- "toolbar": "rp_VV-Eha_toolbar",
12719
12724
  "help": "rp_VV-Eha_help",
12720
12725
  "editTitle": "rp_VV-Eha_editTitle",
12721
- "editBody": "rp_VV-Eha_editBody",
12722
- "warning": "rp_VV-Eha_warning",
12726
+ "row": "rp_VV-Eha_row",
12727
+ "area": "rp_VV-Eha_area",
12728
+ "select": "rp_VV-Eha_select",
12723
12729
  "grid": "rp_VV-Eha_grid",
12730
+ "card": "rp_VV-Eha_card",
12724
12731
  "error": "rp_VV-Eha_error",
12725
- "form": "rp_VV-Eha_form",
12726
- "meta": "rp_VV-Eha_meta",
12732
+ "sectionTitle": "rp_VV-Eha_sectionTitle",
12733
+ "count": "rp_VV-Eha_count",
12734
+ "entryArea": "rp_VV-Eha_entryArea",
12735
+ "name": "rp_VV-Eha_name",
12727
12736
  "head": "rp_VV-Eha_head",
12728
- "description": "rp_VV-Eha_description"
12737
+ "warning": "rp_VV-Eha_warning"
12729
12738
  };
12730
12739
  // src/client/pages/lorebooks/LorebookEditor.tsx
12731
12740
  const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -13764,35 +13773,35 @@ window.__ModuleLoader__.load({
13764
13773
  }
13765
13774
  tag$25.textContent = css$25;
13766
13775
  var PresetsPage_module_css_default = {
13776
+ "field": "rp_ZK89ba_field",
13777
+ "input": "rp_ZK89ba_input",
13778
+ "row": "rp_ZK89ba_row",
13779
+ "name": "rp_ZK89ba_name",
13780
+ "label": "rp_ZK89ba_label",
13781
+ "page": "rp_ZK89ba_page",
13782
+ "grid": "rp_ZK89ba_grid",
13783
+ "editBody": "rp_ZK89ba_editBody",
13784
+ "ok": "rp_ZK89ba_ok",
13785
+ "help": "rp_ZK89ba_help",
13786
+ "error": "rp_ZK89ba_error",
13787
+ "toolbar": "rp_ZK89ba_toolbar",
13767
13788
  "actions": "rp_ZK89ba_actions",
13768
- "message": "rp_ZK89ba_message",
13769
13789
  "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",
13775
- "sectionTitle": "rp_ZK89ba_sectionTitle",
13790
+ "area": "rp_ZK89ba_area",
13776
13791
  "card": "rp_ZK89ba_card",
13777
- "editTitle": "rp_ZK89ba_editTitle",
13778
- "ok": "rp_ZK89ba_ok",
13792
+ "message": "rp_ZK89ba_message",
13793
+ "section": "rp_ZK89ba_section",
13794
+ "title": "rp_ZK89ba_title",
13779
13795
  "head": "rp_ZK89ba_head",
13796
+ "form": "rp_ZK89ba_form",
13797
+ "description": "rp_ZK89ba_description",
13780
13798
  "cardActions": "rp_ZK89ba_cardActions",
13799
+ "warning": "rp_ZK89ba_warning",
13781
13800
  "count": "rp_ZK89ba_count",
13782
- "title": "rp_ZK89ba_title",
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",
13788
- "section": "rp_ZK89ba_section",
13789
- "field": "rp_ZK89ba_field",
13790
- "area": "rp_ZK89ba_area",
13791
- "error": "rp_ZK89ba_error",
13792
- "grid": "rp_ZK89ba_grid",
13793
- "help": "rp_ZK89ba_help",
13794
- "form": "rp_ZK89ba_form",
13795
- "input": "rp_ZK89ba_input"
13801
+ "editHeader": "rp_ZK89ba_editHeader",
13802
+ "editTitle": "rp_ZK89ba_editTitle",
13803
+ "sectionTitle": "rp_ZK89ba_sectionTitle",
13804
+ "viewport": "rp_ZK89ba_viewport"
13796
13805
  };
13797
13806
  // src/client/pages/presets/PresetEditor.tsx
13798
13807
  const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -14884,34 +14893,34 @@ window.__ModuleLoader__.load({
14884
14893
  }
14885
14894
  tag$24.textContent = css$24;
14886
14895
  var PromptsPage_module_css_default = {
14887
- "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
- "row": "rp_DLg_5G_row",
14893
- "shipped": "rp_DLg_5G_shipped",
14894
- "line": "rp_DLg_5G_line",
14895
- "rowName": "rp_DLg_5G_rowName",
14896
14896
  "actions": "rp_DLg_5G_actions",
14897
- "check": "rp_DLg_5G_check",
14897
+ "count": "rp_DLg_5G_count",
14898
14898
  "editBody": "rp_DLg_5G_editBody",
14899
- "editHeader": "rp_DLg_5G_editHeader",
14900
- "help": "rp_DLg_5G_help",
14901
- "editTitle": "rp_DLg_5G_editTitle",
14902
14899
  "warning": "rp_DLg_5G_warning",
14903
- "rowLanguage": "rp_DLg_5G_rowLanguage",
14904
14900
  "message": "rp_DLg_5G_message",
14905
- "toolbar": "rp_DLg_5G_toolbar",
14906
14901
  "spacer": "rp_DLg_5G_spacer",
14902
+ "viewport": "rp_DLg_5G_viewport",
14903
+ "check": "rp_DLg_5G_check",
14904
+ "group": "rp_DLg_5G_group",
14907
14905
  "ok": "rp_DLg_5G_ok",
14908
- "pane": "rp_DLg_5G_pane",
14909
14906
  "page": "rp_DLg_5G_page",
14910
- "area": "rp_DLg_5G_area",
14907
+ "editHeader": "rp_DLg_5G_editHeader",
14908
+ "row": "rp_DLg_5G_row",
14911
14909
  "sign": "rp_DLg_5G_sign",
14910
+ "rowName": "rp_DLg_5G_rowName",
14911
+ "area": "rp_DLg_5G_area",
14912
+ "shipped": "rp_DLg_5G_shipped",
14913
+ "line": "rp_DLg_5G_line",
14914
+ "editTitle": "rp_DLg_5G_editTitle",
14915
+ "label": "rp_DLg_5G_label",
14916
+ "rowLanguage": "rp_DLg_5G_rowLanguage",
14917
+ "toolbar": "rp_DLg_5G_toolbar",
14918
+ "help": "rp_DLg_5G_help",
14919
+ "error": "rp_DLg_5G_error",
14912
14920
  "missing": "rp_DLg_5G_missing",
14913
- "viewport": "rp_DLg_5G_viewport",
14914
- "list": "rp_DLg_5G_list"
14921
+ "list": "rp_DLg_5G_list",
14922
+ "panes": "rp_DLg_5G_panes",
14923
+ "pane": "rp_DLg_5G_pane"
14915
14924
  };
14916
14925
  // src/client/pages/prompts/PromptEditor.tsx
14917
14926
  const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -15535,11 +15544,11 @@ window.__ModuleLoader__.load({
15535
15544
  }
15536
15545
  tag$21.textContent = css$21;
15537
15546
  var DeleteSessionDialog_module_css_default = {
15547
+ "error": "rp_FifHrW_error",
15538
15548
  "body": "rp_FifHrW_body",
15539
- "warning": "rp_FifHrW_warning",
15540
- "choice": "rp_FifHrW_choice",
15541
15549
  "question": "rp_FifHrW_question",
15542
- "error": "rp_FifHrW_error"
15550
+ "choice": "rp_FifHrW_choice",
15551
+ "warning": "rp_FifHrW_warning"
15543
15552
  };
15544
15553
  // src/client/pages/sessions/DeleteSessionDialog.tsx
15545
15554
  /** Asks for confirmation before a session and everything saved with it is removed. */
@@ -16063,28 +16072,28 @@ window.__ModuleLoader__.load({
16063
16072
  }
16064
16073
  tag$20.textContent = css$20;
16065
16074
  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
- "badge": "rp_24z4eW_badge",
16076
- "toolbar": "rp_24z4eW_toolbar",
16077
16075
  "notice": "rp_24z4eW_notice",
16078
- "actionsColumn": "rp_24z4eW_actionsColumn",
16079
- "secondary": "rp_24z4eW_secondary",
16076
+ "page": "rp_24z4eW_page",
16077
+ "count": "rp_24z4eW_count",
16080
16078
  "viewport": "rp_24z4eW_viewport",
16079
+ "table": "rp_24z4eW_table",
16080
+ "nameColumn": "rp_24z4eW_nameColumn",
16081
16081
  "worldColumn": "rp_24z4eW_worldColumn",
16082
+ "secondary": "rp_24z4eW_secondary",
16083
+ "name": "rp_24z4eW_name",
16084
+ "actions": "rp_24z4eW_actions",
16082
16085
  "message": "rp_24z4eW_message",
16083
- "nameColumn": "rp_24z4eW_nameColumn",
16086
+ "timeColumn": "rp_24z4eW_timeColumn",
16084
16087
  "archived": "rp_24z4eW_archived",
16085
- "number": "rp_24z4eW_number",
16088
+ "badge": "rp_24z4eW_badge",
16089
+ "spin": "rp_24z4eW_spin",
16090
+ "fits": "rp_24z4eW_fits",
16091
+ "actionsColumn": "rp_24z4eW_actionsColumn",
16086
16092
  "turnsColumn": "rp_24z4eW_turnsColumn",
16087
- "timeColumn": "rp_24z4eW_timeColumn"
16093
+ "spinning": "rp_24z4eW_spinning",
16094
+ "number": "rp_24z4eW_number",
16095
+ "toolbar": "rp_24z4eW_toolbar",
16096
+ "scrolls": "rp_24z4eW_scrolls"
16088
16097
  };
16089
16098
  // src/client/pages/sessions/SessionsPage.tsx
16090
16099
  /** The sessions as a table, one page at a time, the most recently played first. */
@@ -16505,29 +16514,29 @@ window.__ModuleLoader__.load({
16505
16514
  }
16506
16515
  tag$19.textContent = css$19;
16507
16516
  var SyncPage_module_css_default = {
16517
+ "meta": "rp_Gk-byG_meta",
16508
16518
  "kindColumn": "rp_Gk-byG_kindColumn",
16509
- "actions": "rp_Gk-byG_actions",
16510
- "detail": "rp_Gk-byG_detail",
16511
- "confirmation": "rp_Gk-byG_confirmation",
16512
- "actionHeading": "rp_Gk-byG_actionHeading",
16513
- "viewport": "rp_Gk-byG_viewport",
16514
- "table": "rp_Gk-byG_table",
16515
- "unit": "rp_Gk-byG_unit",
16516
- "toolbar": "rp_Gk-byG_toolbar",
16519
+ "actionsColumn": "rp_Gk-byG_actionsColumn",
16517
16520
  "failed": "rp_Gk-byG_failed",
16518
- "stateColumn": "rp_Gk-byG_stateColumn",
16519
- "syncedColumn": "rp_Gk-byG_syncedColumn",
16521
+ "unitColumn": "rp_Gk-byG_unitColumn",
16522
+ "conflict": "rp_Gk-byG_conflict",
16520
16523
  "choices": "rp_Gk-byG_choices",
16521
- "error": "rp_Gk-byG_error",
16522
- "meta": "rp_Gk-byG_meta",
16524
+ "caption": "rp_Gk-byG_caption",
16523
16525
  "message": "rp_Gk-byG_message",
16526
+ "error": "rp_Gk-byG_error",
16527
+ "syncedColumn": "rp_Gk-byG_syncedColumn",
16528
+ "stateColumn": "rp_Gk-byG_stateColumn",
16529
+ "actions": "rp_Gk-byG_actions",
16530
+ "toolbar": "rp_Gk-byG_toolbar",
16531
+ "detail": "rp_Gk-byG_detail",
16532
+ "actionHeading": "rp_Gk-byG_actionHeading",
16524
16533
  "problem": "rp_Gk-byG_problem",
16525
- "caption": "rp_Gk-byG_caption",
16526
- "conflict": "rp_Gk-byG_conflict",
16534
+ "detailsColumn": "rp_Gk-byG_detailsColumn",
16535
+ "table": "rp_Gk-byG_table",
16527
16536
  "page": "rp_Gk-byG_page",
16528
- "unitColumn": "rp_Gk-byG_unitColumn",
16529
- "actionsColumn": "rp_Gk-byG_actionsColumn",
16530
- "detailsColumn": "rp_Gk-byG_detailsColumn"
16537
+ "viewport": "rp_Gk-byG_viewport",
16538
+ "unit": "rp_Gk-byG_unit",
16539
+ "confirmation": "rp_Gk-byG_confirmation"
16531
16540
  };
16532
16541
  // src/client/pages/sync/SyncPage.tsx
16533
16542
  const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
@@ -17040,16 +17049,16 @@ window.__ModuleLoader__.load({
17040
17049
  }
17041
17050
  tag$18.textContent = css$18;
17042
17051
  var WorldCard_module_css_default = {
17043
- "info": "rp_Bvxx5q_info",
17044
- "play": "rp_Bvxx5q_play",
17045
17052
  "name": "rp_Bvxx5q_name",
17046
- "image": "rp_Bvxx5q_image",
17047
- "placeholder": "rp_Bvxx5q_placeholder",
17048
- "cover": "rp_Bvxx5q_cover",
17053
+ "card": "rp_Bvxx5q_card",
17049
17054
  "tags": "rp_Bvxx5q_tags",
17055
+ "placeholder": "rp_Bvxx5q_placeholder",
17056
+ "play": "rp_Bvxx5q_play",
17057
+ "info": "rp_Bvxx5q_info",
17050
17058
  "openButton": "rp_Bvxx5q_openButton",
17059
+ "cover": "rp_Bvxx5q_cover",
17051
17060
  "tag": "rp_Bvxx5q_tag",
17052
- "card": "rp_Bvxx5q_card"
17061
+ "image": "rp_Bvxx5q_image"
17053
17062
  };
17054
17063
  // src/client/widgets/world-card/WorldCard.tsx
17055
17064
  /** Stable hue per name, so a world without a cover keeps the same colour. */
@@ -17146,10 +17155,10 @@ window.__ModuleLoader__.load({
17146
17155
  }
17147
17156
  tag$17.textContent = css$17;
17148
17157
  var AvatarChoices_module_css_default = {
17149
- "option": "rp_YCstOG_option",
17158
+ "text": "rp_YCstOG_text",
17150
17159
  "summary": "rp_YCstOG_summary",
17151
17160
  "name": "rp_YCstOG_name",
17152
- "text": "rp_YCstOG_text"
17161
+ "option": "rp_YCstOG_option"
17153
17162
  };
17154
17163
  // src/client/widgets/avatar-choices/AvatarChoices.tsx
17155
17164
  /** A list of avatars to tick: the ones brought into a world or a session. */
@@ -17187,18 +17196,18 @@ window.__ModuleLoader__.load({
17187
17196
  }
17188
17197
  tag$16.textContent = css$16;
17189
17198
  var StartSessionDialog_module_css_default = {
17190
- "error": "rp_AnbLKG_error",
17191
- "field": "rp_AnbLKG_field",
17192
- "optionName": "rp_AnbLKG_optionName",
17193
- "optionSummary": "rp_AnbLKG_optionSummary",
17199
+ "advancedToggle": "rp_AnbLKG_advancedToggle",
17194
17200
  "form": "rp_AnbLKG_form",
17195
- "optionText": "rp_AnbLKG_optionText",
17196
- "label": "rp_AnbLKG_label",
17197
- "advanced": "rp_AnbLKG_advanced",
17201
+ "advancedBody": "rp_AnbLKG_advancedBody",
17202
+ "optionName": "rp_AnbLKG_optionName",
17198
17203
  "option": "rp_AnbLKG_option",
17199
- "advancedToggle": "rp_AnbLKG_advancedToggle",
17204
+ "error": "rp_AnbLKG_error",
17200
17205
  "message": "rp_AnbLKG_message",
17201
- "advancedBody": "rp_AnbLKG_advancedBody"
17206
+ "advanced": "rp_AnbLKG_advanced",
17207
+ "label": "rp_AnbLKG_label",
17208
+ "field": "rp_AnbLKG_field",
17209
+ "optionText": "rp_AnbLKG_optionText",
17210
+ "optionSummary": "rp_AnbLKG_optionSummary"
17202
17211
  };
17203
17212
  // src/client/pages/worlds/AddAvatarsDialog.tsx
17204
17213
  /** Asks which avatars become characters of a world's own files. */
@@ -17294,7 +17303,9 @@ window.__ModuleLoader__.load({
17294
17303
  "agency",
17295
17304
  "refusal",
17296
17305
  "rules",
17297
- "secrets"
17306
+ "secrets",
17307
+ "variables",
17308
+ "reuse"
17298
17309
  ];
17299
17310
  const EXTRA_MODES = ["off", "on"];
17300
17311
  /**
@@ -17342,7 +17353,7 @@ window.__ModuleLoader__.load({
17342
17353
  options,
17343
17354
  fallback
17344
17355
  });
17345
- const text$1 = (max, fallback) => ({
17356
+ const text$2 = (max, fallback) => ({
17346
17357
  kind: "text",
17347
17358
  max,
17348
17359
  fallback
@@ -17378,7 +17389,7 @@ window.__ModuleLoader__.load({
17378
17389
  },
17379
17390
  clock: {
17380
17391
  mode: choice(CLOCK_MODES, "simulated"),
17381
- timeZone: text$1(64, ""),
17392
+ timeZone: text$2(64, ""),
17382
17393
  roundSeconds: integer(0, 3600, 30),
17383
17394
  maxSkipDays: integer(1, 3650, 30)
17384
17395
  },
@@ -17408,8 +17419,8 @@ window.__ModuleLoader__.load({
17408
17419
  shortMaxTokens: integer(256, 64e3, 2e3),
17409
17420
  headroom: ratio(1, 10, 2)
17410
17421
  },
17411
- prompts: { language: text$1(8, "en") },
17412
- reasoning: { children: text$1(40, "") },
17422
+ prompts: { language: text$2(8, "en") },
17423
+ reasoning: { children: text$2(40, "") },
17413
17424
  factions: {
17414
17425
  perTurn: integer(0, 3, 1),
17415
17426
  everyDays: integer(1, 365, 3)
@@ -17424,11 +17435,11 @@ window.__ModuleLoader__.load({
17424
17435
  minNew: integer(1, 50, 4)
17425
17436
  },
17426
17437
  models: {
17427
- characters: text$1(200, ""),
17428
- background: text$1(200, ""),
17429
- records: text$1(200, ""),
17430
- suggestions: text$1(200, ""),
17431
- authoring: text$1(200, "")
17438
+ characters: text$2(200, ""),
17439
+ background: text$2(200, ""),
17440
+ records: text$2(200, ""),
17441
+ suggestions: text$2(200, ""),
17442
+ authoring: text$2(200, "")
17432
17443
  },
17433
17444
  triggers: {
17434
17445
  enabled: flag(true),
@@ -17444,15 +17455,17 @@ window.__ModuleLoader__.load({
17444
17455
  refusal: choice(GATE_MODES, "off"),
17445
17456
  rules: choice(EXTRA_MODES, "off"),
17446
17457
  secrets: choice(EXTRA_MODES, "off"),
17458
+ variables: choice(GATE_MODES, "llm"),
17459
+ reuse: choice(EXTRA_MODES, "off"),
17447
17460
  gateThreshold: ratio(.1, .95, .5),
17448
17461
  confidence: ratio(0, 1, .7)
17449
17462
  },
17450
- interface: { pack: text$1(60, "") },
17463
+ interface: { pack: text$2(60, "") },
17451
17464
  rewind: {
17452
17465
  keepSnapshots: integer(0, 500, 30),
17453
17466
  rolls: choice(["reroll", "keep"], "reroll")
17454
17467
  },
17455
- rules: { own: text$1(MAX_OWN_RULES, "") },
17468
+ rules: { own: text$2(MAX_OWN_RULES, "") },
17456
17469
  preview: { enabled: flag(true) },
17457
17470
  suggestions: { count: integer(0, 5, 3) },
17458
17471
  images: {
@@ -17469,8 +17482,8 @@ window.__ModuleLoader__.load({
17469
17482
  reuse: flag(true),
17470
17483
  highRes: flag(false),
17471
17484
  interpret: flag(true),
17472
- interpreterModel: text$1(200, ""),
17473
- captioner: text$1(200, "")
17485
+ interpreterModel: text$2(200, ""),
17486
+ captioner: text$2(200, "")
17474
17487
  },
17475
17488
  dice: { visibility: choice(["hidden", "card"], "card") },
17476
17489
  tools: switchboard(),
@@ -17848,6 +17861,47 @@ window.__ModuleLoader__.load({
17848
17861
  }
17849
17862
  ]
17850
17863
  },
17864
+ {
17865
+ path: ["decisions", "variables"],
17866
+ kind: "choice",
17867
+ label: "decisionsVariables",
17868
+ help: "decisionsVariablesHelp",
17869
+ choices: [
17870
+ {
17871
+ value: "off",
17872
+ label: "decisionOff"
17873
+ },
17874
+ {
17875
+ value: "llm",
17876
+ label: "decisionLlm"
17877
+ },
17878
+ {
17879
+ value: "decision",
17880
+ label: "decisionDecision"
17881
+ },
17882
+ {
17883
+ value: "hybrid",
17884
+ label: "decisionHybrid"
17885
+ },
17886
+ {
17887
+ value: "shadow",
17888
+ label: "decisionShadow"
17889
+ }
17890
+ ]
17891
+ },
17892
+ {
17893
+ path: ["decisions", "reuse"],
17894
+ kind: "choice",
17895
+ label: "decisionsReuse",
17896
+ help: "decisionsReuseHelp",
17897
+ choices: [{
17898
+ value: "off",
17899
+ label: "decisionOff"
17900
+ }, {
17901
+ value: "on",
17902
+ label: "decisionOn"
17903
+ }]
17904
+ },
17851
17905
  {
17852
17906
  path: ["decisions", "rules"],
17853
17907
  kind: "choice",
@@ -18370,14 +18424,14 @@ window.__ModuleLoader__.load({
18370
18424
  }
18371
18425
  tag$15.textContent = css$15;
18372
18426
  var SettingsFields_module_css_default = {
18373
- "group": "rp_Rhi3yq_group",
18427
+ "error": "rp_Rhi3yq_error",
18374
18428
  "field": "rp_Rhi3yq_field",
18429
+ "label": "rp_Rhi3yq_label",
18375
18430
  "groupTitle": "rp_Rhi3yq_groupTitle",
18376
18431
  "help": "rp_Rhi3yq_help",
18377
- "area": "rp_Rhi3yq_area",
18378
- "label": "rp_Rhi3yq_label",
18379
- "error": "rp_Rhi3yq_error",
18380
- "row": "rp_Rhi3yq_row"
18432
+ "row": "rp_Rhi3yq_row",
18433
+ "group": "rp_Rhi3yq_group",
18434
+ "area": "rp_Rhi3yq_area"
18381
18435
  };
18382
18436
  // src/client/settings-form/SettingsFields.tsx
18383
18437
  /** The settings of a chat as editable fields: one control with its explanation under each. */
@@ -18678,10 +18732,10 @@ window.__ModuleLoader__.load({
18678
18732
  }
18679
18733
  tag$14.textContent = css$14;
18680
18734
  var TranslateBanner_module_css_default = {
18681
- "error": "rp_Lx8vJa_error",
18682
- "text": "rp_Lx8vJa_text",
18683
18735
  "banner": "rp_Lx8vJa_banner",
18684
- "bannerActions": "rp_Lx8vJa_bannerActions"
18736
+ "bannerActions": "rp_Lx8vJa_bannerActions",
18737
+ "error": "rp_Lx8vJa_error",
18738
+ "text": "rp_Lx8vJa_text"
18685
18739
  };
18686
18740
  // src/client/pages/worlds/TranslateBanner.tsx
18687
18741
  const languageName = (t, language) => language === "zh" ? t("languageChinese") : t("languageEnglish");
@@ -19303,26 +19357,26 @@ window.__ModuleLoader__.load({
19303
19357
  }
19304
19358
  tag$13.textContent = css$13;
19305
19359
  var WorldsPage_module_css_default = {
19306
- "editBody": "rp_FHUyRq_editBody",
19307
- "info": "rp_FHUyRq_info",
19308
- "message": "rp_FHUyRq_message",
19309
- "starters": "rp_FHUyRq_starters",
19310
19360
  "page": "rp_FHUyRq_page",
19311
- "starter": "rp_FHUyRq_starter",
19312
- "fits": "rp_FHUyRq_fits",
19313
- "editTitle": "rp_FHUyRq_editTitle",
19361
+ "spinning": "rp_FHUyRq_spinning",
19362
+ "grid": "rp_FHUyRq_grid",
19363
+ "info": "rp_FHUyRq_info",
19364
+ "editTitle": "rp_FHUyRq_editTitle",
19365
+ "scrolls": "rp_FHUyRq_scrolls",
19366
+ "fits": "rp_FHUyRq_fits",
19367
+ "editActions": "rp_FHUyRq_editActions",
19368
+ "toolbarActions": "rp_FHUyRq_toolbarActions",
19369
+ "editBody": "rp_FHUyRq_editBody",
19370
+ "starter": "rp_FHUyRq_starter",
19314
19371
  "toolbar": "rp_FHUyRq_toolbar",
19315
- "notice": "rp_FHUyRq_notice",
19372
+ "cell": "rp_FHUyRq_cell",
19316
19373
  "spin": "rp_FHUyRq_spin",
19317
- "editHeader": "rp_FHUyRq_editHeader",
19318
- "scrolls": "rp_FHUyRq_scrolls",
19374
+ "message": "rp_FHUyRq_message",
19319
19375
  "count": "rp_FHUyRq_count",
19320
- "cell": "rp_FHUyRq_cell",
19321
- "toolbarActions": "rp_FHUyRq_toolbarActions",
19322
- "spinning": "rp_FHUyRq_spinning",
19376
+ "editHeader": "rp_FHUyRq_editHeader",
19377
+ "starters": "rp_FHUyRq_starters",
19323
19378
  "viewport": "rp_FHUyRq_viewport",
19324
- "grid": "rp_FHUyRq_grid",
19325
- "editActions": "rp_FHUyRq_editActions"
19379
+ "notice": "rp_FHUyRq_notice"
19326
19380
  };
19327
19381
  // src/client/pages/worlds/StarterWorlds.tsx
19328
19382
  /** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
@@ -20496,6 +20550,10 @@ window.__ModuleLoader__.load({
20496
20550
  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
20551
  decisionsAgency: "Checking the narration for speaking for you",
20498
20552
  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.",
20553
+ decisionsVariables: "Looking at the tracked values after each turn",
20554
+ 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.",
20555
+ decisionsReuse: "Showing a stored picture when it fits",
20556
+ 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
20557
  decisionsRefusal: "Checking the output for stepping out of the story",
20500
20558
  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.",
20501
20559
  decisionsRules: "Checking actions against the rules",
@@ -20709,6 +20767,10 @@ window.__ModuleLoader__.load({
20709
20767
  decisionsReflectionHelp: "由谁在反思之前检查角色此后接收到的内容是否与其某个信念矛盾。选项与触发器陈述相同。只有决策模型有把握的答案才会引起怀疑。",
20710
20768
  decisionsAgency: "检查叙述是否替你说话",
20711
20769
  decisionsAgencyHelp: "检查每段叙述是否给了你的角色你的消息中没有写到的话语、动作、想法或感受,如有则退回给游戏主持人重写(最多两次,之后原样交付)。默认关闭:每个回合都要多一次语言模型请求,或一次决策模型的快速调用。选项与触发器陈述相同;决策模型只在有把握时才认定有问题。",
20770
+ decisionsVariables: "每回合之后检查被追踪的数值",
20771
+ decisionsVariablesHelp: "每个回合之后,针对故事追踪的每个数值(疲劳、骚动、伤势)和它适用的每个人,询问刚才发生的事是否改变了它,并为改变了的数值设定新值。主持人只有想到时才会改动数值;这样可以保证每个数值都被检查到。每个数值的描述里最好写明它何时、如何变化。语言模型:一次请求。决策模型:每个数值一个廉价的问题。默认关闭。",
20772
+ decisionsReuse: "有合适的已存图片就直接展示",
20773
+ decisionsReuseHelp: "回合结束后自动生成场景图之前,先让决策模型逐个判断相近的已存图片(你上传的和标记为可复用的)的描述:它是否表现了这一刻?如果有,就再次展示它,不再生成。没有决策模型时不起作用。默认关闭。",
20712
20774
  decisionsRefusal: "检查输出是否跳出了故事",
20713
20775
  decisionsRefusalHelp: "检查每次输出里有没有拒绝继续、道歉、内容警告、免责声明或对你说的故事之外的话(有些托管模型会加上这些),如有则退回给游戏主持人按故事重写(最多两次,之后原样交付)。默认关闭。选项与上一项相同。",
20714
20776
  decisionsRules: "按规则检查行动",
@@ -21492,8 +21554,8 @@ window.__ModuleLoader__.load({
21492
21554
  tag$12.textContent = css$12;
21493
21555
  var BranchDialog_module_css_default = {
21494
21556
  "field": "rp_Dy1TaW_field",
21495
- "error": "rp_Dy1TaW_error",
21496
21557
  "form": "rp_Dy1TaW_form",
21558
+ "error": "rp_Dy1TaW_error",
21497
21559
  "label": "rp_Dy1TaW_label"
21498
21560
  };
21499
21561
  // src/client/branch/BranchDialog.tsx
@@ -21615,8 +21677,8 @@ window.__ModuleLoader__.load({
21615
21677
  "entry": "rp_Okaj1q_entry",
21616
21678
  "main": "rp_Okaj1q_main",
21617
21679
  "icon": "rp_Okaj1q_icon",
21618
- "title": "rp_Okaj1q_title",
21619
21680
  "text": "rp_Okaj1q_text",
21681
+ "title": "rp_Okaj1q_title",
21620
21682
  "description": "rp_Okaj1q_description"
21621
21683
  };
21622
21684
  // src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
@@ -21664,9 +21726,9 @@ window.__ModuleLoader__.load({
21664
21726
  }
21665
21727
  tag$10.textContent = css$10;
21666
21728
  var GalleryTab_module_css_default = {
21667
- "message": "rp_W688Pa_message",
21668
21729
  "page": "rp_W688Pa_page",
21669
- "bar": "rp_W688Pa_bar"
21730
+ "bar": "rp_W688Pa_bar",
21731
+ "message": "rp_W688Pa_message"
21670
21732
  };
21671
21733
  // src/client/gallery/GalleryTab.tsx
21672
21734
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -22055,17 +22117,17 @@ window.__ModuleLoader__.load({
22055
22117
  }
22056
22118
  tag$9.textContent = css$9;
22057
22119
  var SidebarPage_module_css_default = {
22120
+ "main": "rp_Ptco8a_main",
22121
+ "icon": "rp_Ptco8a_icon",
22058
22122
  "text": "rp_Ptco8a_text",
22059
- "title": "rp_Ptco8a_title",
22123
+ "description": "rp_Ptco8a_description",
22060
22124
  "page": "rp_Ptco8a_page",
22061
22125
  "content": "rp_Ptco8a_content",
22062
- "icon": "rp_Ptco8a_icon",
22126
+ "bar": "rp_Ptco8a_bar",
22063
22127
  "message": "rp_Ptco8a_message",
22064
- "description": "rp_Ptco8a_description",
22128
+ "title": "rp_Ptco8a_title",
22065
22129
  "name": "rp_Ptco8a_name",
22066
- "entry": "rp_Ptco8a_entry",
22067
- "main": "rp_Ptco8a_main",
22068
- "bar": "rp_Ptco8a_bar"
22130
+ "entry": "rp_Ptco8a_entry"
22069
22131
  };
22070
22132
  // src/client/interface/SidebarPage.tsx
22071
22133
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -22405,24 +22467,24 @@ window.__ModuleLoader__.load({
22405
22467
  }
22406
22468
  tag$8.textContent = css$8;
22407
22469
  var RecallTab_module_css_default = {
22408
- "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",
22470
+ "person": "rp_jl9CIq_person",
22415
22471
  "form": "rp_jl9CIq_form",
22472
+ "error": "rp_jl9CIq_error",
22473
+ "field": "rp_jl9CIq_field",
22416
22474
  "area": "rp_jl9CIq_area",
22417
- "body": "rp_jl9CIq_body",
22418
- "person": "rp_jl9CIq_person",
22419
22475
  "page": "rp_jl9CIq_page",
22420
- "label": "rp_jl9CIq_label",
22476
+ "body": "rp_jl9CIq_body",
22477
+ "name": "rp_jl9CIq_name",
22478
+ "actions": "rp_jl9CIq_actions",
22479
+ "bar": "rp_jl9CIq_bar",
22421
22480
  "hint": "rp_jl9CIq_hint",
22422
- "field": "rp_jl9CIq_field",
22423
- "place": "rp_jl9CIq_place",
22481
+ "note": "rp_jl9CIq_note",
22424
22482
  "list": "rp_jl9CIq_list",
22425
- "name": "rp_jl9CIq_name"
22483
+ "place": "rp_jl9CIq_place",
22484
+ "item": "rp_jl9CIq_item",
22485
+ "heading": "rp_jl9CIq_heading",
22486
+ "meta": "rp_jl9CIq_meta",
22487
+ "label": "rp_jl9CIq_label"
22426
22488
  };
22427
22489
  // src/client/recall/RecallTab.tsx
22428
22490
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -22818,11 +22880,11 @@ window.__ModuleLoader__.load({
22818
22880
  }
22819
22881
  tag$7.textContent = css$7;
22820
22882
  var ReferenceTab_module_css_default = {
22821
- "bar": "rp_7BGO2a_bar",
22883
+ "message": "rp_7BGO2a_message",
22822
22884
  "page": "rp_7BGO2a_page",
22823
- "nav": "rp_7BGO2a_nav",
22824
22885
  "body": "rp_7BGO2a_body",
22825
- "message": "rp_7BGO2a_message"
22886
+ "nav": "rp_7BGO2a_nav",
22887
+ "bar": "rp_7BGO2a_bar"
22826
22888
  };
22827
22889
  // src/client/reference/ReferenceTab.tsx
22828
22890
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -22942,28 +23004,28 @@ window.__ModuleLoader__.load({
22942
23004
  }
22943
23005
  tag$6.textContent = css$6;
22944
23006
  var Page_module_css_default = {
23007
+ "entry": "rp_bG1sCa_entry",
22945
23008
  "list": "rp_bG1sCa_list",
23009
+ "text": "rp_bG1sCa_text",
23010
+ "meta": "rp_bG1sCa_meta",
22946
23011
  "heading": "rp_bG1sCa_heading",
22947
23012
  "notes": "rp_bG1sCa_notes",
22948
- "tag": "rp_bG1sCa_tag",
23013
+ "way": "rp_bG1sCa_way",
23014
+ "sub": "rp_bG1sCa_sub",
22949
23015
  "link": "rp_bG1sCa_link",
22950
- "text": "rp_bG1sCa_text",
22951
- "block": "rp_bG1sCa_block",
22952
- "head": "rp_bG1sCa_head",
22953
- "map": "rp_bG1sCa_map",
22954
- "meta": "rp_bG1sCa_meta",
23016
+ "opened": "rp_bG1sCa_opened",
23017
+ "tag": "rp_bG1sCa_tag",
22955
23018
  "place": "rp_bG1sCa_place",
22956
23019
  "placeName": "rp_bG1sCa_placeName",
22957
- "closedWay": "rp_bG1sCa_closedWay",
22958
- "way": "rp_bG1sCa_way",
22959
- "title": "rp_bG1sCa_title",
23020
+ "head": "rp_bG1sCa_head",
23021
+ "message": "rp_bG1sCa_message",
22960
23022
  "name": "rp_bG1sCa_name",
22961
- "sub": "rp_bG1sCa_sub",
23023
+ "title": "rp_bG1sCa_title",
23024
+ "block": "rp_bG1sCa_block",
23025
+ "closedWay": "rp_bG1sCa_closedWay",
22962
23026
  "here": "rp_bG1sCa_here",
22963
- "opened": "rp_bG1sCa_opened",
22964
- "entry": "rp_bG1sCa_entry",
22965
- "message": "rp_bG1sCa_message",
22966
- "journal": "rp_bG1sCa_journal"
23027
+ "journal": "rp_bG1sCa_journal",
23028
+ "map": "rp_bG1sCa_map"
22967
23029
  };
22968
23030
  // src/client/reference/sections/Journal.tsx
22969
23031
  /** How long typing pauses before the notes are saved. */
@@ -24003,28 +24065,28 @@ window.__ModuleLoader__.load({
24003
24065
  }
24004
24066
  tag$5.textContent = css$5;
24005
24067
  var ChatSettingsView_module_css_default = {
24006
- "view": "rp_wLpbxW_view",
24007
- "saved": "rp_wLpbxW_saved",
24008
- "help": "rp_wLpbxW_help",
24009
- "description": "rp_wLpbxW_description",
24010
- "error": "rp_wLpbxW_error",
24011
- "table": "rp_wLpbxW_table",
24012
24068
  "link": "rp_wLpbxW_link",
24013
- "reasons": "rp_wLpbxW_reasons",
24014
- "list": "rp_wLpbxW_list",
24069
+ "title": "rp_wLpbxW_title",
24015
24070
  "field": "rp_wLpbxW_field",
24016
24071
  "activity": "rp_wLpbxW_activity",
24072
+ "reasons": "rp_wLpbxW_reasons",
24073
+ "saved": "rp_wLpbxW_saved",
24074
+ "pre": "rp_wLpbxW_pre",
24075
+ "actions": "rp_wLpbxW_actions",
24076
+ "list": "rp_wLpbxW_list",
24077
+ "label": "rp_wLpbxW_label",
24078
+ "help": "rp_wLpbxW_help",
24017
24079
  "message": "rp_wLpbxW_message",
24018
- "select": "rp_wLpbxW_select",
24019
- "notice": "rp_wLpbxW_notice",
24020
- "row": "rp_wLpbxW_row",
24080
+ "table": "rp_wLpbxW_table",
24021
24081
  "run": "rp_wLpbxW_run",
24022
- "label": "rp_wLpbxW_label",
24023
- "actions": "rp_wLpbxW_actions",
24024
- "tableViewport": "rp_wLpbxW_tableViewport",
24025
- "title": "rp_wLpbxW_title",
24082
+ "error": "rp_wLpbxW_error",
24083
+ "view": "rp_wLpbxW_view",
24084
+ "row": "rp_wLpbxW_row",
24085
+ "notice": "rp_wLpbxW_notice",
24026
24086
  "activityBody": "rp_wLpbxW_activityBody",
24027
- "pre": "rp_wLpbxW_pre"
24087
+ "tableViewport": "rp_wLpbxW_tableViewport",
24088
+ "description": "rp_wLpbxW_description",
24089
+ "select": "rp_wLpbxW_select"
24028
24090
  };
24029
24091
  // src/client/chat-settings/settings-api.ts
24030
24092
  /** The chat is not a roleplay session, so it has no settings. */
@@ -24152,6 +24214,8 @@ window.__ModuleLoader__.load({
24152
24214
  on: "decisionOn"
24153
24215
  };
24154
24216
  const SITE_LABEL = {
24217
+ reuse: "decisionsSiteReuse",
24218
+ variables: "decisionsSiteVariables",
24155
24219
  triggers: "decisionsSiteTriggers",
24156
24220
  reflection: "decisionsSiteReflection",
24157
24221
  agency: "decisionsSiteAgency",
@@ -26000,6 +26064,8 @@ window.__ModuleLoader__.load({
26000
26064
  decisionsAgreement: "Agreement",
26001
26065
  decisionsDecisionTime: "Decision model per run",
26002
26066
  decisionsLlmTime: "Language model per run",
26067
+ decisionsSiteVariables: "Tracked values",
26068
+ decisionsSiteReuse: "Stored pictures",
26003
26069
  decisionsSiteTriggers: "Trigger statements",
26004
26070
  decisionsSiteReflection: "Belief checks",
26005
26071
  decisionsSiteAgency: "Narration speaking for you",
@@ -26209,6 +26275,8 @@ window.__ModuleLoader__.load({
26209
26275
  decisionsAgreement: "一致率",
26210
26276
  decisionsDecisionTime: "决策模型每次",
26211
26277
  decisionsLlmTime: "语言模型每次",
26278
+ decisionsSiteVariables: "被追踪的数值",
26279
+ decisionsSiteReuse: "已存图片",
26212
26280
  decisionsSiteTriggers: "触发器陈述",
26213
26281
  decisionsSiteReflection: "信念检查",
26214
26282
  decisionsSiteAgency: "叙述替你说话",
@@ -26436,16 +26504,16 @@ window.__ModuleLoader__.load({
26436
26504
  }
26437
26505
  tag$4.textContent = css$4;
26438
26506
  var CatalogueSettings_module_css_default = {
26439
- "problem": "rp_KPhXDa_problem",
26440
- "hint": "rp_KPhXDa_hint",
26441
- "title": "rp_KPhXDa_title",
26442
26507
  "row": "rp_KPhXDa_row",
26508
+ "title": "rp_KPhXDa_title",
26509
+ "keyArea": "rp_KPhXDa_keyArea",
26443
26510
  "label": "rp_KPhXDa_label",
26444
- "keyHint": "rp_KPhXDa_keyHint",
26445
- "field": "rp_KPhXDa_field",
26446
26511
  "actions": "rp_KPhXDa_actions",
26447
- "keyArea": "rp_KPhXDa_keyArea",
26448
- "section": "rp_KPhXDa_section"
26512
+ "problem": "rp_KPhXDa_problem",
26513
+ "section": "rp_KPhXDa_section",
26514
+ "keyHint": "rp_KPhXDa_keyHint",
26515
+ "hint": "rp_KPhXDa_hint",
26516
+ "field": "rp_KPhXDa_field"
26449
26517
  };
26450
26518
  // src/client/settings/AuthoringToolSettings.tsx
26451
26519
  const boardOf = (text) => {
@@ -26677,18 +26745,18 @@ window.__ModuleLoader__.load({
26677
26745
  }
26678
26746
  tag$3.textContent = css$3;
26679
26747
  var AssistantSettings_module_css_default = {
26680
- "hint": "rp_ZwzM4q_hint",
26748
+ "head": "rp_ZwzM4q_head",
26749
+ "badges": "rp_ZwzM4q_badges",
26681
26750
  "label": "rp_ZwzM4q_label",
26682
- "fieldHint": "rp_ZwzM4q_fieldHint",
26683
- "field": "rp_ZwzM4q_field",
26684
- "section": "rp_ZwzM4q_section",
26751
+ "reset": "rp_ZwzM4q_reset",
26752
+ "select": "rp_ZwzM4q_select",
26685
26753
  "title": "rp_ZwzM4q_title",
26754
+ "section": "rp_ZwzM4q_section",
26686
26755
  "invalid": "rp_ZwzM4q_invalid",
26687
26756
  "fields": "rp_ZwzM4q_fields",
26688
- "head": "rp_ZwzM4q_head",
26689
- "select": "rp_ZwzM4q_select",
26690
- "badges": "rp_ZwzM4q_badges",
26691
- "reset": "rp_ZwzM4q_reset"
26757
+ "fieldHint": "rp_ZwzM4q_fieldHint",
26758
+ "field": "rp_ZwzM4q_field",
26759
+ "hint": "rp_ZwzM4q_hint"
26692
26760
  };
26693
26761
  // src/client/settings/AssistantSettings.tsx
26694
26762
  function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
@@ -27123,6 +27191,250 @@ window.__ModuleLoader__.load({
27123
27191
  ]
27124
27192
  });
27125
27193
  }
27194
+ // src/shared/offload.ts
27195
+ /** 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. */
27196
+ const OFFLOAD_ROLES = [
27197
+ "main",
27198
+ "embedding",
27199
+ "reranker",
27200
+ "decision",
27201
+ "image",
27202
+ "speech"
27203
+ ];
27204
+ const isRole = (value) => OFFLOAD_ROLES.includes(value);
27205
+ const text$1 = (value) => typeof value === "string" ? value.trim() : "";
27206
+ /** 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. */
27207
+ function offloadOf(value) {
27208
+ const row = typeof value === "object" && value !== null ? value : {};
27209
+ const models = {};
27210
+ const given = typeof row["models"] === "object" && row["models"] !== null ? row["models"] : {};
27211
+ for (const role of OFFLOAD_ROLES) {
27212
+ if (role === "main") continue;
27213
+ const entry = given[role];
27214
+ if (typeof entry !== "object" || entry === null) continue;
27215
+ const route = text$1(entry["route"]);
27216
+ const model = text$1(entry["model"]);
27217
+ if (route !== "" || model !== "") models[role] = {
27218
+ route,
27219
+ model
27220
+ };
27221
+ }
27222
+ return {
27223
+ models,
27224
+ 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)
27225
+ };
27226
+ }
27227
+ /** 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. */
27228
+ function offloadProblem(config) {
27229
+ for (const role of OFFLOAD_ROLES) {
27230
+ if (role === "main" || !config.groups.some((group) => group.includes(role))) continue;
27231
+ const model = config.models[role];
27232
+ if (model === void 0 || model.route === "") return {
27233
+ role,
27234
+ missing: "route"
27235
+ };
27236
+ if (model.model === "") return {
27237
+ role,
27238
+ missing: "model"
27239
+ };
27240
+ }
27241
+ }
27242
+ // src/client/settings/offload.ts
27243
+ /** The roles that are served as a model of their own; `main` is the chat's. */
27244
+ const SERVED_ROLES = OFFLOAD_ROLES.filter((role) => role !== "main");
27245
+ const roleOf = (value) => OFFLOAD_ROLES.includes(value);
27246
+ /** 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. */
27247
+ function offloadDraftOf(text) {
27248
+ let value;
27249
+ try {
27250
+ value = JSON.parse(text === "" ? "{}" : text);
27251
+ } catch {
27252
+ value = {};
27253
+ }
27254
+ const row = typeof value === "object" && value !== null ? value : {};
27255
+ const given = typeof row["models"] === "object" && row["models"] !== null ? row["models"] : {};
27256
+ const models = {};
27257
+ for (const role of SERVED_ROLES) {
27258
+ const entry = given[role];
27259
+ if (typeof entry !== "object" || entry === null) continue;
27260
+ const { route, model } = entry;
27261
+ models[role] = {
27262
+ route: typeof route === "string" ? route : "",
27263
+ model: typeof model === "string" ? model : ""
27264
+ };
27265
+ }
27266
+ return {
27267
+ models,
27268
+ groups: (Array.isArray(row["groups"]) ? row["groups"] : []).map((group) => Array.isArray(group) ? group.filter(roleOf) : [])
27269
+ };
27270
+ }
27271
+ const offloadProblemOf = (draft) => offloadProblem(offloadOf(draft));
27272
+ const offloadField = {
27273
+ field: "offload",
27274
+ format: (value) => JSON.stringify(offloadOf(value)),
27275
+ parse: (text) => {
27276
+ const config = offloadOf(offloadDraftOf(text));
27277
+ if (offloadProblem(config) !== void 0) return void 0;
27278
+ return config.groups.length === 0 ? { kind: "clear" } : {
27279
+ kind: "set",
27280
+ value: config
27281
+ };
27282
+ }
27283
+ };
27284
+ // src/client/settings/OffloadSettings.tsx
27285
+ const ROLE_TEXT = {
27286
+ main: "offloadRole_main",
27287
+ embedding: "offloadRole_embedding",
27288
+ reranker: "offloadRole_reranker",
27289
+ decision: "offloadRole_decision",
27290
+ image: "offloadRole_image",
27291
+ speech: "offloadRole_speech"
27292
+ };
27293
+ /**
27294
+ * 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
27295
+ * unloaded from the server. A role that is in a group also says where it is served.
27296
+ */
27297
+ function OffloadSettings({ t, text, disabled, onEdit }) {
27298
+ const draft = offloadDraftOf(text);
27299
+ const write = (next) => {
27300
+ onEdit(JSON.stringify(next));
27301
+ };
27302
+ const problem = offloadProblemOf(draft);
27303
+ const grouped = new Set(draft.groups.flat());
27304
+ const toggle = (index, role, on) => {
27305
+ write({
27306
+ ...draft,
27307
+ groups: draft.groups.map((group, at) => at !== index ? group : OFFLOAD_ROLES.filter((member) => member === role ? on : group.includes(member)))
27308
+ });
27309
+ };
27310
+ const place = (role, patch) => {
27311
+ write({
27312
+ ...draft,
27313
+ models: {
27314
+ ...draft.models,
27315
+ [role]: {
27316
+ route: "",
27317
+ model: "",
27318
+ ...draft.models[role],
27319
+ ...patch
27320
+ }
27321
+ }
27322
+ });
27323
+ };
27324
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
27325
+ className: CatalogueSettings_module_css_default.section,
27326
+ "data-testid": "roleplay-offload-settings",
27327
+ children: [
27328
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
27329
+ className: CatalogueSettings_module_css_default.title,
27330
+ children: t("offload")
27331
+ }),
27332
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
27333
+ className: CatalogueSettings_module_css_default.hint,
27334
+ children: t("offloadHint")
27335
+ }),
27336
+ draft.groups.map((group, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
27337
+ className: CatalogueSettings_module_css_default.row,
27338
+ "data-testid": "offload-group",
27339
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
27340
+ className: CatalogueSettings_module_css_default.field,
27341
+ style: {
27342
+ gridColumn: "1 / -1",
27343
+ flexDirection: "row",
27344
+ flexWrap: "wrap",
27345
+ gap: 12
27346
+ },
27347
+ children: [OFFLOAD_ROLES.map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
27348
+ className: CatalogueSettings_module_css_default.keyHint,
27349
+ style: {
27350
+ display: "flex",
27351
+ gap: 6,
27352
+ alignItems: "center"
27353
+ },
27354
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
27355
+ type: "checkbox",
27356
+ checked: group.includes(role),
27357
+ disabled,
27358
+ "data-role": role,
27359
+ onChange: (event) => {
27360
+ toggle(index, role, event.target.checked);
27361
+ }
27362
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(ROLE_TEXT[role]) })]
27363
+ }, role)), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
27364
+ variant: "ghost",
27365
+ size: "sm",
27366
+ disabled,
27367
+ onClick: () => {
27368
+ write({
27369
+ ...draft,
27370
+ groups: draft.groups.filter((_, at) => at !== index)
27371
+ });
27372
+ },
27373
+ children: t("offloadRemove")
27374
+ })]
27375
+ })
27376
+ }, index)),
27377
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
27378
+ className: CatalogueSettings_module_css_default.actions,
27379
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
27380
+ variant: "outline",
27381
+ size: "sm",
27382
+ disabled,
27383
+ onClick: () => {
27384
+ write({
27385
+ ...draft,
27386
+ groups: [...draft.groups, []]
27387
+ });
27388
+ },
27389
+ children: t("offloadAdd")
27390
+ })
27391
+ }),
27392
+ SERVED_ROLES.filter((role) => grouped.has(role)).map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
27393
+ className: CatalogueSettings_module_css_default.row,
27394
+ "data-testid": `offload-model-${role}`,
27395
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
27396
+ className: CatalogueSettings_module_css_default.field,
27397
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
27398
+ className: CatalogueSettings_module_css_default.label,
27399
+ children: [
27400
+ t(ROLE_TEXT[role]),
27401
+ ": ",
27402
+ t("offloadRoute")
27403
+ ]
27404
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
27405
+ value: draft.models[role]?.route ?? "",
27406
+ disabled,
27407
+ onChange: (event) => {
27408
+ place(role, { route: event.target.value });
27409
+ }
27410
+ })]
27411
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
27412
+ className: CatalogueSettings_module_css_default.field,
27413
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
27414
+ className: CatalogueSettings_module_css_default.label,
27415
+ children: t("offloadModel")
27416
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
27417
+ value: draft.models[role]?.model ?? "",
27418
+ disabled,
27419
+ onChange: (event) => {
27420
+ place(role, { model: event.target.value });
27421
+ }
27422
+ })]
27423
+ })]
27424
+ }, role)),
27425
+ problem !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
27426
+ className: CatalogueSettings_module_css_default.problem,
27427
+ role: "alert",
27428
+ children: [
27429
+ t(problem.missing === "route" ? "offloadProblemRoute" : "offloadProblemModel"),
27430
+ " (",
27431
+ t(ROLE_TEXT[problem.role]),
27432
+ ")"
27433
+ ]
27434
+ })
27435
+ ]
27436
+ });
27437
+ }
27126
27438
  // src/client/settings/setup-api.ts
27127
27439
  /** The ids of the plugin rows the profile holds more than once; empty when the profile is as it should be. */
27128
27440
  async function loadRedundantLayers(signal) {
@@ -27509,6 +27821,20 @@ window.__ModuleLoader__.load({
27509
27821
  catalogueMaxBytesHint: "The most a world downloaded from a catalogue may be, compressed and again unpacked. Default 268435456 (256 MB).",
27510
27822
  catalogueTrashDaysLabel: "Days to keep replaced files",
27511
27823
  catalogueTrashDaysHint: "How long the files an update replaced stay in the trash folder before they are deleted. 0 keeps them for good. Default 30.",
27824
+ offload: "Models that cannot be loaded together",
27825
+ 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).",
27826
+ offloadAdd: "Add a group",
27827
+ offloadRemove: "Remove group",
27828
+ offloadRoute: "Route",
27829
+ offloadModel: "Model name",
27830
+ offloadProblemRoute: "Give the route this model is served on.",
27831
+ offloadProblemModel: "Give the name of this model on its server.",
27832
+ offloadRole_main: "Story model",
27833
+ offloadRole_embedding: "Embeddings",
27834
+ offloadRole_reranker: "Reranker",
27835
+ offloadRole_decision: "Decision model",
27836
+ offloadRole_image: "Images",
27837
+ offloadRole_speech: "Speech",
27512
27838
  sync: "Sync with other devices",
27513
27839
  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
27840
  syncRemote: "Remote and folder",
@@ -27605,6 +27931,20 @@ window.__ModuleLoader__.load({
27605
27931
  catalogueMaxBytesHint: "从目录下载的世界的最大体积,压缩后和解压后都不得超过。默认 268435456(256 MB)。",
27606
27932
  catalogueTrashDaysLabel: "被替换文件的保留天数",
27607
27933
  catalogueTrashDaysHint: "更新替换下来的文件在回收文件夹中保留多少天后删除。0 表示永久保留。默认 30。",
27934
+ offload: "不能同时加载的模型",
27935
+ offloadHint: "如果故事用到的模型无法同时放进内存,就把互相排斥的模型放进同一组:使用其中一个之前,服务器会先卸载其他的,之后再被请求时会自行重新加载。每次切换都要花一次加载模型的时间,所以只在不得不这样做时才把大模型和别的模型分在一组;如果所有模型都放得下,请留空。聊天本身使用的模型是“故事模型”;其他模型需要填模型服务器的路由(在 AI 提供方中设置的那个)以及模型在服务器上的名称。卸载需要提供方支持(LocalAI 和 Ollama 支持)。",
27936
+ offloadAdd: "添加一组",
27937
+ offloadRemove: "删除这一组",
27938
+ offloadRoute: "路由",
27939
+ offloadModel: "模型名称",
27940
+ offloadProblemRoute: "请填写这个模型所在的路由。",
27941
+ offloadProblemModel: "请填写这个模型在服务器上的名称。",
27942
+ offloadRole_main: "故事模型",
27943
+ offloadRole_embedding: "向量嵌入",
27944
+ offloadRole_reranker: "重排序",
27945
+ offloadRole_decision: "决策模型",
27946
+ offloadRole_image: "图像",
27947
+ offloadRole_speech: "语音",
27608
27948
  sync: "与其他设备同步",
27609
27949
  syncHint: "通过 rclone 让数据文件夹与远端的一个文件夹保持一致:每个世界、每个会话和每个共享文件夹各自作为一个单元同步,同步期间不会被改动。远端留空即关闭同步。“同步”页面会列出各个单元。",
27610
27950
  syncRemote: "远端和文件夹",
@@ -27682,6 +28022,14 @@ window.__ModuleLoader__.load({
27682
28022
  props.edit("sync", text);
27683
28023
  }
27684
28024
  }),
28025
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OffloadSettings, {
28026
+ t,
28027
+ text: state.offload.text,
28028
+ disabled: !state.writable,
28029
+ onEdit: (text) => {
28030
+ props.edit("offload", text);
28031
+ }
28032
+ }),
27685
28033
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AssistantSettings, {
27686
28034
  t,
27687
28035
  group: "assistants",
@@ -27729,6 +28077,7 @@ window.__ModuleLoader__.load({
27729
28077
  cataloguesField,
27730
28078
  authoringToolsField,
27731
28079
  syncField,
28080
+ offloadField,
27732
28081
  ...assistantFields
27733
28082
  ]);
27734
28083
  this.store = this.form.bind(() => ({
@@ -27737,6 +28086,7 @@ window.__ModuleLoader__.load({
27737
28086
  catalogues: this.form.field("catalogues"),
27738
28087
  authoringTools: this.form.field("authoringTools"),
27739
28088
  sync: this.form.field("sync"),
28089
+ offload: this.form.field("offload"),
27740
28090
  assistants: Object.fromEntries(ASSISTANT_FIELDS.map((spec) => [spec.field, this.form.field(spec.field)]))
27741
28091
  }));
27742
28092
  }
@@ -27934,28 +28284,28 @@ window.__ModuleLoader__.load({
27934
28284
  }
27935
28285
  tag$2.textContent = css$2;
27936
28286
  var NarrationView_module_css_default = {
27937
- "oocLabel": "rp_NFPimG_oocLabel",
27938
- "diceList": "rp_NFPimG_diceList",
27939
- "note": "rp_NFPimG_note",
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",
28287
+ "oocNote": "rp_NFPimG_oocNote",
27945
28288
  "speech": "rp_NFPimG_speech",
27946
- "imageError": "rp_NFPimG_imageError",
27947
- "playLine": "rp_NFPimG_playLine",
27948
28289
  "preview": "rp_NFPimG_preview",
28290
+ "imageStatus": "rp_NFPimG_imageStatus",
28291
+ "name": "rp_NFPimG_name",
28292
+ "note": "rp_NFPimG_note",
27949
28293
  "playAll": "rp_NFPimG_playAll",
27950
- "words": "rp_NFPimG_words",
28294
+ "line": "rp_NFPimG_line",
28295
+ "sceneImage": "rp_NFPimG_sceneImage",
28296
+ "imageButton": "rp_NFPimG_imageButton",
28297
+ "dice": "rp_NFPimG_dice",
28298
+ "oocLabel": "rp_NFPimG_oocLabel",
28299
+ "narration": "rp_NFPimG_narration",
28300
+ "images": "rp_NFPimG_images",
27951
28301
  "output": "rp_NFPimG_output",
27952
- "name": "rp_NFPimG_name",
27953
- "oocNote": "rp_NFPimG_oocNote",
28302
+ "playLine": "rp_NFPimG_playLine",
28303
+ "diceSummary": "rp_NFPimG_diceSummary",
27954
28304
  "avatar": "rp_NFPimG_avatar",
28305
+ "words": "rp_NFPimG_words",
27955
28306
  "oocRefused": "rp_NFPimG_oocRefused",
27956
- "sceneImage": "rp_NFPimG_sceneImage",
27957
- "imageStatus": "rp_NFPimG_imageStatus",
27958
- "diceSummary": "rp_NFPimG_diceSummary"
28307
+ "imageError": "rp_NFPimG_imageError",
28308
+ "diceList": "rp_NFPimG_diceList"
27959
28309
  };
27960
28310
  // src/client/transcript/PreviewNode.tsx
27961
28311
  /**
@@ -28215,10 +28565,10 @@ window.__ModuleLoader__.load({
28215
28565
  }
28216
28566
  tag$1.textContent = css$1;
28217
28567
  var SuggestionsDock_module_css_default = {
28218
- "card": "rp_rWH4DG_card",
28219
28568
  "chip": "rp_rWH4DG_chip",
28220
- "dock": "rp_rWH4DG_dock",
28569
+ "card": "rp_rWH4DG_card",
28221
28570
  "lines": "rp_rWH4DG_lines",
28571
+ "dock": "rp_rWH4DG_dock",
28222
28572
  "label": "rp_rWH4DG_label"
28223
28573
  };
28224
28574
  // src/client/transcript/SuggestionsDock.tsx
@@ -28338,15 +28688,15 @@ window.__ModuleLoader__.load({
28338
28688
  tag.textContent = css;
28339
28689
  var TurnsDock_module_css_default = {
28340
28690
  "dock": "rp_f4YLlq_dock",
28341
- "comparisonHead": "rp_f4YLlq_comparisonHead",
28342
28691
  "button": "rp_f4YLlq_button",
28343
- "error": "rp_f4YLlq_error",
28344
28692
  "group": "rp_f4YLlq_group",
28693
+ "comparisonSubject": "rp_f4YLlq_comparisonSubject",
28694
+ "comparison": "rp_f4YLlq_comparison",
28695
+ "error": "rp_f4YLlq_error",
28696
+ "comparisonHead": "rp_f4YLlq_comparisonHead",
28345
28697
  "count": "rp_f4YLlq_count",
28346
28698
  "select": "rp_f4YLlq_select",
28347
- "comparison": "rp_f4YLlq_comparison",
28348
- "comparisonLine": "rp_f4YLlq_comparisonLine",
28349
- "comparisonSubject": "rp_f4YLlq_comparisonSubject"
28699
+ "comparisonLine": "rp_f4YLlq_comparisonLine"
28350
28700
  };
28351
28701
  // src/client/transcript/withdrawn.ts
28352
28702
  /** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */