@dsh-agentic-roleplay/core 0.7.3 → 0.8.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 (53) hide show
  1. package/README.md +1 -1
  2. package/lib/{authoring-tools-CIsWbq0B.js → authoring-tools-DNnx0Nts.js} +1774 -4517
  3. package/lib/authoring.js +51 -9
  4. package/lib/{child-CyCViUKa.js → child-D6mpkkCE.js} +130 -6
  5. package/lib/client.js +661 -427
  6. package/lib/client.js.map +1 -1
  7. package/lib/compaction.js +2 -2
  8. package/lib/doctor.js +2 -2
  9. package/lib/{gallery-DmBZ2L5l.js → gallery-D9nG3C78.js} +2 -2
  10. package/lib/{generator-BmdoTIL2.js → generator-r1Czm7oi.js} +2 -2
  11. package/lib/helper.js +1 -1
  12. package/lib/{hooks-C8eELrni.js → hooks-BQCzgggH.js} +92 -8
  13. package/lib/images.js +4 -4
  14. package/lib/index.js +920 -739
  15. package/lib/{library-lVNf9qG_.js → library-zI-2tG7h.js} +25 -8
  16. package/lib/{lorebook-author-tools-BDOs4i5C.js → lorebook-author-tools-ywaYicwd.js} +7 -7
  17. package/lib/lorebook-authoring.js +4 -4
  18. package/lib/{narration-DvFBqmqe.js → narration-CnBlVure.js} +52 -8
  19. package/lib/orchestration.js +95 -18
  20. package/lib/{pack-jail-DeTscGT2.js → pack-jail-5EJ-WYyW.js} +30 -68
  21. package/lib/{packs-CY8ms8v_.js → packs-Cv8hanXJ.js} +2 -2
  22. package/lib/{presenter-agent-cFR4sos3.js → presenter-agent-BSaMSd3G.js} +6 -6
  23. package/lib/{preset-n4-j6k4S.js → preset-CWI3-0r1.js} +4 -3
  24. package/lib/{preset-author-tools-2m4BLtws.js → preset-author-tools-BrJYa2cr.js} +7 -7
  25. package/lib/preset-authoring.js +5 -5
  26. package/lib/presets-MwOSMMyu.js +3998 -0
  27. package/lib/{reflection-CJB5s0ip.js → reflection-zSaMsjKj.js} +127 -127
  28. package/lib/{text-Cwl5s0j0.js → text-BzudpQLS.js} +9 -1
  29. package/lib/{turn-guard-BvCs1VxB.js → turn-guard-Cv8pfHEA.js} +6 -2
  30. package/package.json +2 -2
  31. package/prompts/en/import/casting.md +14 -0
  32. package/prompts/en/import/classifier.md +9 -0
  33. package/prompts/en/import/finish-draft.md +1 -0
  34. package/prompts/en/import/generator.md +8 -0
  35. package/prompts/en/import/notice-repair.md +4 -0
  36. package/prompts/en/import/repair-again.md +3 -0
  37. package/prompts/en/import/roster.md +1 -0
  38. package/prompts/en/import/variables.md +1 -0
  39. package/prompts/en/roleplay/game-master.md +3 -0
  40. package/prompts/en/roleplay/standing.md +1 -0
  41. package/prompts/en/world/author.md +1 -1
  42. package/prompts/zh/import/casting.md +14 -0
  43. package/prompts/zh/import/classifier.md +9 -0
  44. package/prompts/zh/import/finish-draft.md +1 -0
  45. package/prompts/zh/import/generator.md +8 -0
  46. package/prompts/zh/import/notice-repair.md +4 -0
  47. package/prompts/zh/import/repair-again.md +3 -0
  48. package/prompts/zh/import/roster.md +1 -0
  49. package/prompts/zh/import/variables.md +1 -0
  50. package/prompts/zh/roleplay/game-master.md +3 -0
  51. package/prompts/zh/roleplay/standing.md +1 -0
  52. package/prompts/zh/world/author.md +1 -1
  53. package/lib/route-C6SHz9j2.js +0 -518
package/lib/client.js CHANGED
@@ -37,8 +37,8 @@ window.__ModuleLoader__.load({
37
37
  }
38
38
  tag$34.textContent = css$34;
39
39
  var PageTabs_module_css_default = {
40
- "tabs": "rp_Poldga_tabs",
41
- "tab": "rp_Poldga_tab"
40
+ "tab": "rp_Poldga_tab",
41
+ "tabs": "rp_Poldga_tabs"
42
42
  };
43
43
  //#endregion
44
44
  //#region src/client/panel/PageTabs.tsx
@@ -93,10 +93,10 @@ window.__ModuleLoader__.load({
93
93
  }
94
94
  tag$33.textContent = css$33;
95
95
  var RoleplayPanel_module_css_default = {
96
- "title": "rp_ua5gBa_title",
96
+ "header": "rp_ua5gBa_header",
97
97
  "body": "rp_ua5gBa_body",
98
- "panel": "rp_ua5gBa_panel",
99
- "header": "rp_ua5gBa_header"
98
+ "title": "rp_ua5gBa_title",
99
+ "panel": "rp_ua5gBa_panel"
100
100
  };
101
101
  //#endregion
102
102
  //#region src/client/panel/RoleplayPanel.tsx
@@ -429,34 +429,34 @@ window.__ModuleLoader__.load({
429
429
  }
430
430
  tag$32.textContent = css$32;
431
431
  var ImportCard_module_css_default = {
432
- "fieldMeta": "rp_5cvtma_fieldMeta",
432
+ "title": "rp_5cvtma_title",
433
+ "row": "rp_5cvtma_row",
434
+ "picture": "rp_5cvtma_picture",
435
+ "field": "rp_5cvtma_field",
436
+ "entry": "rp_5cvtma_entry",
437
+ "noPicture": "rp_5cvtma_noPicture",
438
+ "fieldHead": "rp_5cvtma_fieldHead",
433
439
  "entryHead": "rp_5cvtma_entryHead",
434
- "tags": "rp_5cvtma_tags",
435
440
  "text": "rp_5cvtma_text",
436
- "entryOff": "rp_5cvtma_entryOff",
437
- "section": "rp_5cvtma_section",
438
- "error": "rp_5cvtma_error",
439
- "fieldHead": "rp_5cvtma_fieldHead",
440
441
  "fieldTitle": "rp_5cvtma_fieldTitle",
441
442
  "choice": "rp_5cvtma_choice",
443
+ "note": "rp_5cvtma_note",
444
+ "header": "rp_5cvtma_header",
445
+ "entryOff": "rp_5cvtma_entryOff",
446
+ "page": "rp_5cvtma_page",
442
447
  "choiceText": "rp_5cvtma_choiceText",
443
- "about": "rp_5cvtma_about",
444
- "title": "rp_5cvtma_title",
445
448
  "preview": "rp_5cvtma_preview",
446
- "space": "rp_5cvtma_space",
447
- "note": "rp_5cvtma_note",
449
+ "tags": "rp_5cvtma_tags",
450
+ "heading": "rp_5cvtma_heading",
451
+ "about": "rp_5cvtma_about",
448
452
  "body": "rp_5cvtma_body",
449
- "noPicture": "rp_5cvtma_noPicture",
450
453
  "label": "rp_5cvtma_label",
451
- "heading": "rp_5cvtma_heading",
452
- "page": "rp_5cvtma_page",
453
- "top": "rp_5cvtma_top",
454
- "row": "rp_5cvtma_row",
455
- "field": "rp_5cvtma_field",
456
- "entry": "rp_5cvtma_entry",
457
454
  "entryTitle": "rp_5cvtma_entryTitle",
458
- "picture": "rp_5cvtma_picture",
459
- "header": "rp_5cvtma_header"
455
+ "fieldMeta": "rp_5cvtma_fieldMeta",
456
+ "top": "rp_5cvtma_top",
457
+ "section": "rp_5cvtma_section",
458
+ "space": "rp_5cvtma_space",
459
+ "error": "rp_5cvtma_error"
460
460
  };
461
461
  //#endregion
462
462
  //#region src/client/widgets/import-card/ImportCard.tsx
@@ -918,38 +918,38 @@ window.__ModuleLoader__.load({
918
918
  }
919
919
  tag$31.textContent = css$31;
920
920
  var CataloguePage_module_css_default = {
921
+ "success": "rp_qK1u-G_success",
922
+ "image": "rp_qK1u-G_image",
921
923
  "update": "rp_qK1u-G_update",
922
- "card": "rp_qK1u-G_card",
924
+ "search": "rp_qK1u-G_search",
923
925
  "field": "rp_qK1u-G_field",
924
- "meta": "rp_qK1u-G_meta",
925
- "image": "rp_qK1u-G_image",
926
- "tags": "rp_qK1u-G_tags",
927
926
  "description": "rp_qK1u-G_description",
928
- "changes": "rp_qK1u-G_changes",
929
- "notice": "rp_qK1u-G_notice",
927
+ "kind": "rp_qK1u-G_kind",
928
+ "spacer": "rp_qK1u-G_spacer",
929
+ "warning": "rp_qK1u-G_warning",
930
+ "page": "rp_qK1u-G_page",
931
+ "status": "rp_qK1u-G_status",
932
+ "body": "rp_qK1u-G_body",
930
933
  "updates": "rp_qK1u-G_updates",
931
- "actions": "rp_qK1u-G_actions",
932
- "success": "rp_qK1u-G_success",
933
- "name": "rp_qK1u-G_name",
934
934
  "label": "rp_qK1u-G_label",
935
935
  "kinds": "rp_qK1u-G_kinds",
936
- "cover": "rp_qK1u-G_cover",
937
- "detail": "rp_qK1u-G_detail",
936
+ "grid": "rp_qK1u-G_grid",
937
+ "actions": "rp_qK1u-G_actions",
938
+ "tags": "rp_qK1u-G_tags",
938
939
  "select": "rp_qK1u-G_select",
939
- "status": "rp_qK1u-G_status",
940
940
  "placeholder": "rp_qK1u-G_placeholder",
941
+ "notice": "rp_qK1u-G_notice",
942
+ "changes": "rp_qK1u-G_changes",
943
+ "viewport": "rp_qK1u-G_viewport",
941
944
  "form": "rp_qK1u-G_form",
942
- "body": "rp_qK1u-G_body",
943
- "search": "rp_qK1u-G_search",
944
- "grid": "rp_qK1u-G_grid",
945
- "kind": "rp_qK1u-G_kind",
946
- "toolbar": "rp_qK1u-G_toolbar",
945
+ "name": "rp_qK1u-G_name",
947
946
  "message": "rp_qK1u-G_message",
948
- "page": "rp_qK1u-G_page",
949
- "spacer": "rp_qK1u-G_spacer",
950
- "warning": "rp_qK1u-G_warning",
951
- "viewport": "rp_qK1u-G_viewport",
952
- "more": "rp_qK1u-G_more"
947
+ "card": "rp_qK1u-G_card",
948
+ "more": "rp_qK1u-G_more",
949
+ "detail": "rp_qK1u-G_detail",
950
+ "meta": "rp_qK1u-G_meta",
951
+ "toolbar": "rp_qK1u-G_toolbar",
952
+ "cover": "rp_qK1u-G_cover"
953
953
  };
954
954
  //#endregion
955
955
  //#region src/client/pages/catalogue/ImportUrlDialog.tsx
@@ -1152,19 +1152,19 @@ window.__ModuleLoader__.load({
1152
1152
  }
1153
1153
  tag$30.textContent = css$30;
1154
1154
  var ImportSelection_module_css_default = {
1155
- "full": "rp_Jx0l4q_full",
1156
- "sampling": "rp_Jx0l4q_sampling",
1157
- "error": "rp_Jx0l4q_error",
1155
+ "text": "rp_Jx0l4q_text",
1156
+ "list": "rp_Jx0l4q_list",
1158
1157
  "extra": "rp_Jx0l4q_extra",
1159
- "meta": "rp_Jx0l4q_meta",
1160
1158
  "note": "rp_Jx0l4q_note",
1161
- "text": "rp_Jx0l4q_text",
1162
- "count": "rp_Jx0l4q_count",
1163
- "body": "rp_Jx0l4q_body",
1164
1159
  "help": "rp_Jx0l4q_help",
1160
+ "body": "rp_Jx0l4q_body",
1165
1161
  "bar": "rp_Jx0l4q_bar",
1166
- "list": "rp_Jx0l4q_list",
1167
- "row": "rp_Jx0l4q_row"
1162
+ "full": "rp_Jx0l4q_full",
1163
+ "sampling": "rp_Jx0l4q_sampling",
1164
+ "error": "rp_Jx0l4q_error",
1165
+ "meta": "rp_Jx0l4q_meta",
1166
+ "row": "rp_Jx0l4q_row",
1167
+ "count": "rp_Jx0l4q_count"
1168
1168
  };
1169
1169
  //#endregion
1170
1170
  //#region src/client/widgets/import-selection/ImportSelection.tsx
@@ -3061,40 +3061,40 @@ window.__ModuleLoader__.load({
3061
3061
  }
3062
3062
  tag$29.textContent = css$29;
3063
3063
  var CharactersPanel_module_css_default = {
3064
- "field": "rp_5ZMIxq_field",
3065
- "wide": "rp_5ZMIxq_wide",
3066
- "help": "rp_5ZMIxq_help",
3067
- "section": "rp_5ZMIxq_section",
3068
- "empty": "rp_5ZMIxq_empty",
3064
+ "sheet": "rp_5ZMIxq_sheet",
3069
3065
  "placeholder": "rp_5ZMIxq_placeholder",
3070
- "portraitAction": "rp_5ZMIxq_portraitAction",
3071
- "panel": "rp_5ZMIxq_panel",
3072
- "portraitBox": "rp_5ZMIxq_portraitBox",
3073
- "bar": "rp_5ZMIxq_bar",
3074
- "goal": "rp_5ZMIxq_goal",
3075
- "tabs": "rp_5ZMIxq_tabs",
3076
- "body": "rp_5ZMIxq_body",
3077
- "area": "rp_5ZMIxq_area",
3066
+ "empty": "rp_5ZMIxq_empty",
3067
+ "head": "rp_5ZMIxq_head",
3068
+ "label": "rp_5ZMIxq_label",
3078
3069
  "sectionTitle": "rp_5ZMIxq_sectionTitle",
3079
- "voiceInline": "rp_5ZMIxq_voiceInline",
3080
- "nameInput": "rp_5ZMIxq_nameInput",
3070
+ "body": "rp_5ZMIxq_body",
3071
+ "portraitBox": "rp_5ZMIxq_portraitBox",
3072
+ "section": "rp_5ZMIxq_section",
3073
+ "portraitError": "rp_5ZMIxq_portraitError",
3074
+ "help": "rp_5ZMIxq_help",
3075
+ "wide": "rp_5ZMIxq_wide",
3081
3076
  "tabsSpace": "rp_5ZMIxq_tabsSpace",
3082
- "initial": "rp_5ZMIxq_initial",
3083
- "select": "rp_5ZMIxq_select",
3084
3077
  "row": "rp_5ZMIxq_row",
3085
- "portraitError": "rp_5ZMIxq_portraitError",
3078
+ "initial": "rp_5ZMIxq_initial",
3079
+ "barText": "rp_5ZMIxq_barText",
3080
+ "tab": "rp_5ZMIxq_tab",
3086
3081
  "portraitHint": "rp_5ZMIxq_portraitHint",
3087
- "tabOn": "rp_5ZMIxq_tabOn",
3082
+ "tabs": "rp_5ZMIxq_tabs",
3083
+ "nameInput": "rp_5ZMIxq_nameInput",
3084
+ "error": "rp_5ZMIxq_error",
3085
+ "area": "rp_5ZMIxq_area",
3086
+ "field": "rp_5ZMIxq_field",
3087
+ "panel": "rp_5ZMIxq_panel",
3088
+ "portraitAction": "rp_5ZMIxq_portraitAction",
3089
+ "bar": "rp_5ZMIxq_bar",
3090
+ "meta": "rp_5ZMIxq_meta",
3088
3091
  "missing": "rp_5ZMIxq_missing",
3089
- "tab": "rp_5ZMIxq_tab",
3090
- "head": "rp_5ZMIxq_head",
3091
- "sheet": "rp_5ZMIxq_sheet",
3092
3092
  "grid": "rp_5ZMIxq_grid",
3093
- "meta": "rp_5ZMIxq_meta",
3094
- "barText": "rp_5ZMIxq_barText",
3095
- "error": "rp_5ZMIxq_error",
3096
- "label": "rp_5ZMIxq_label",
3097
- "portrait": "rp_5ZMIxq_portrait"
3093
+ "portrait": "rp_5ZMIxq_portrait",
3094
+ "goal": "rp_5ZMIxq_goal",
3095
+ "select": "rp_5ZMIxq_select",
3096
+ "voiceInline": "rp_5ZMIxq_voiceInline",
3097
+ "tabOn": "rp_5ZMIxq_tabOn"
3098
3098
  };
3099
3099
  //#endregion
3100
3100
  //#region src/client/world-editor/EditorTabs.tsx
@@ -4819,39 +4819,39 @@ window.__ModuleLoader__.load({
4819
4819
  }
4820
4820
  tag$28.textContent = css$28;
4821
4821
  var RelationsPanel_module_css_default = {
4822
- "toolbar": "rp_7pEHTW_toolbar",
4823
- "node_character": "rp_7pEHTW_node_character",
4824
- "head": "rp_7pEHTW_head",
4825
- "notice": "rp_7pEHTW_notice",
4822
+ "error": "rp_7pEHTW_error",
4826
4823
  "node_location": "rp_7pEHTW_node_location",
4827
- "graphEdge": "rp_7pEHTW_graphEdge",
4824
+ "node_faction": "rp_7pEHTW_node_faction",
4825
+ "edgeOn": "rp_7pEHTW_edgeOn",
4826
+ "workspace": "rp_7pEHTW_workspace",
4827
+ "node_item": "rp_7pEHTW_node_item",
4828
+ "entities": "rp_7pEHTW_entities",
4829
+ "node_character": "rp_7pEHTW_node_character",
4830
+ "space": "rp_7pEHTW_space",
4831
+ "list": "rp_7pEHTW_list",
4832
+ "node": "rp_7pEHTW_node",
4833
+ "filterOn": "rp_7pEHTW_filterOn",
4828
4834
  "edgeKind": "rp_7pEHTW_edgeKind",
4835
+ "notice": "rp_7pEHTW_notice",
4836
+ "graphInspector": "rp_7pEHTW_graphInspector",
4829
4837
  "actions": "rp_7pEHTW_actions",
4830
- "space": "rp_7pEHTW_space",
4831
- "node_item": "rp_7pEHTW_node_item",
4832
- "error": "rp_7pEHTW_error",
4833
- "workspace": "rp_7pEHTW_workspace",
4834
4838
  "check": "rp_7pEHTW_check",
4835
- "node_faction": "rp_7pEHTW_node_faction",
4836
- "node": "rp_7pEHTW_node",
4837
- "filter": "rp_7pEHTW_filter",
4838
- "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
4839
- "wide": "rp_7pEHTW_wide",
4839
+ "graphEdge": "rp_7pEHTW_graphEdge",
4840
4840
  "panel": "rp_7pEHTW_panel",
4841
- "graphInspector": "rp_7pEHTW_graphInspector",
4842
- "edgeOn": "rp_7pEHTW_edgeOn",
4843
- "form": "rp_7pEHTW_form",
4844
- "metrics": "rp_7pEHTW_metrics",
4845
- "edgeTitle": "rp_7pEHTW_edgeTitle",
4846
- "filterOn": "rp_7pEHTW_filterOn",
4847
- "empty": "rp_7pEHTW_empty",
4848
- "graph": "rp_7pEHTW_graph",
4849
4841
  "inspector": "rp_7pEHTW_inspector",
4842
+ "wide": "rp_7pEHTW_wide",
4843
+ "empty": "rp_7pEHTW_empty",
4844
+ "metrics": "rp_7pEHTW_metrics",
4845
+ "filter": "rp_7pEHTW_filter",
4846
+ "head": "rp_7pEHTW_head",
4847
+ "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
4848
+ "status": "rp_7pEHTW_status",
4850
4849
  "perspective": "rp_7pEHTW_perspective",
4851
- "list": "rp_7pEHTW_list",
4852
4850
  "edge": "rp_7pEHTW_edge",
4853
- "entities": "rp_7pEHTW_entities",
4854
- "status": "rp_7pEHTW_status"
4851
+ "edgeTitle": "rp_7pEHTW_edgeTitle",
4852
+ "form": "rp_7pEHTW_form",
4853
+ "graph": "rp_7pEHTW_graph",
4854
+ "toolbar": "rp_7pEHTW_toolbar"
4855
4855
  };
4856
4856
  //#endregion
4857
4857
  //#region src/client/world-editor/RelationsPanel.tsx
@@ -6226,12 +6226,12 @@ window.__ModuleLoader__.load({
6226
6226
  }
6227
6227
  tag$27.textContent = css$27;
6228
6228
  var PackFrame_module_css_default = {
6229
- "hud": "rp_h_sbFq_hud",
6230
6229
  "problems": "rp_h_sbFq_problems",
6231
- "frame": "rp_h_sbFq_frame",
6230
+ "message": "rp_h_sbFq_message",
6232
6231
  "tab": "rp_h_sbFq_tab",
6233
- "fill": "rp_h_sbFq_fill",
6234
- "message": "rp_h_sbFq_message"
6232
+ "frame": "rp_h_sbFq_frame",
6233
+ "hud": "rp_h_sbFq_hud",
6234
+ "fill": "rp_h_sbFq_fill"
6235
6235
  };
6236
6236
  //#endregion
6237
6237
  //#region src/client/widgets/pack-frame/theme.ts
@@ -6494,13 +6494,13 @@ window.__ModuleLoader__.load({
6494
6494
  }
6495
6495
  tag$26.textContent = css$26;
6496
6496
  var PacksPanel_module_css_default = {
6497
- "stageTall": "rp_FLaP7q_stageTall",
6498
6497
  "log": "rp_FLaP7q_log",
6498
+ "stageTall": "rp_FLaP7q_stageTall",
6499
+ "note": "rp_FLaP7q_note",
6499
6500
  "group": "rp_FLaP7q_group",
6500
- "files": "rp_FLaP7q_files",
6501
6501
  "controls": "rp_FLaP7q_controls",
6502
- "note": "rp_FLaP7q_note",
6503
- "stage": "rp_FLaP7q_stage"
6502
+ "stage": "rp_FLaP7q_stage",
6503
+ "files": "rp_FLaP7q_files"
6504
6504
  };
6505
6505
  //#endregion
6506
6506
  //#region src/client/world-editor/PacksPanel.tsx
@@ -7601,11 +7601,11 @@ window.__ModuleLoader__.load({
7601
7601
  }
7602
7602
  tag$25.textContent = css$25;
7603
7603
  var SamplingFields_module_css_default = {
7604
+ "field": "rp_9vxYSG_field",
7605
+ "grid": "rp_9vxYSG_grid",
7604
7606
  "root": "rp_9vxYSG_root",
7605
7607
  "label": "rp_9vxYSG_label",
7606
7608
  "input": "rp_9vxYSG_input",
7607
- "grid": "rp_9vxYSG_grid",
7608
- "field": "rp_9vxYSG_field",
7609
7609
  "help": "rp_9vxYSG_help"
7610
7610
  };
7611
7611
  //#endregion
@@ -9023,17 +9023,17 @@ window.__ModuleLoader__.load({
9023
9023
  }
9024
9024
  tag$24.textContent = css$24;
9025
9025
  var ToolSwitches_module_css_default = {
9026
- "error": "rp_CjoFLq_error",
9027
- "root": "rp_CjoFLq_root",
9028
- "agent": "rp_CjoFLq_agent",
9029
- "default": "rp_CjoFLq_default",
9030
9026
  "external": "rp_CjoFLq_external",
9027
+ "error": "rp_CjoFLq_error",
9028
+ "hint": "rp_CjoFLq_hint",
9031
9029
  "tool": "rp_CjoFLq_tool",
9032
- "toolText": "rp_CjoFLq_toolText",
9033
9030
  "help": "rp_CjoFLq_help",
9034
- "title": "rp_CjoFLq_title",
9035
- "hint": "rp_CjoFLq_hint",
9036
- "agentName": "rp_CjoFLq_agentName"
9031
+ "agentName": "rp_CjoFLq_agentName",
9032
+ "toolText": "rp_CjoFLq_toolText",
9033
+ "default": "rp_CjoFLq_default",
9034
+ "agent": "rp_CjoFLq_agent",
9035
+ "root": "rp_CjoFLq_root",
9036
+ "title": "rp_CjoFLq_title"
9037
9037
  };
9038
9038
  //#endregion
9039
9039
  //#region src/client/widgets/tool-switches/ToolSwitches.tsx
@@ -10044,35 +10044,35 @@ window.__ModuleLoader__.load({
10044
10044
  }
10045
10045
  tag$23.textContent = css$23;
10046
10046
  var GalleryView_module_css_default = {
10047
- "message": "rp_9pSHmG_message",
10047
+ "reusable": "rp_9pSHmG_reusable",
10048
+ "pre": "rp_9pSHmG_pre",
10048
10049
  "facts": "rp_9pSHmG_facts",
10049
- "editField": "rp_9pSHmG_editField",
10050
- "image": "rp_9pSHmG_image",
10051
- "tags": "rp_9pSHmG_tags",
10052
- "select": "rp_9pSHmG_select",
10053
- "status": "rp_9pSHmG_status",
10054
- "editInput": "rp_9pSHmG_editInput",
10055
- "large": "rp_9pSHmG_large",
10056
- "edit": "rp_9pSHmG_edit",
10057
10050
  "detail": "rp_9pSHmG_detail",
10058
- "note": "rp_9pSHmG_note",
10059
- "cell": "rp_9pSHmG_cell",
10060
- "thumb": "rp_9pSHmG_thumb",
10061
10051
  "actions": "rp_9pSHmG_actions",
10062
- "error": "rp_9pSHmG_error",
10063
- "toolbar": "rp_9pSHmG_toolbar",
10064
10052
  "editLabel": "rp_9pSHmG_editLabel",
10065
- "editArea": "rp_9pSHmG_editArea",
10053
+ "edit": "rp_9pSHmG_edit",
10054
+ "grid": "rp_9pSHmG_grid",
10055
+ "note": "rp_9pSHmG_note",
10056
+ "thumb": "rp_9pSHmG_thumb",
10057
+ "editInput": "rp_9pSHmG_editInput",
10058
+ "tags": "rp_9pSHmG_tags",
10059
+ "open": "rp_9pSHmG_open",
10066
10060
  "count": "rp_9pSHmG_count",
10061
+ "message": "rp_9pSHmG_message",
10067
10062
  "caption": "rp_9pSHmG_caption",
10068
- "pre": "rp_9pSHmG_pre",
10069
- "editHelp": "rp_9pSHmG_editHelp",
10070
- "grid": "rp_9pSHmG_grid",
10071
- "editButton": "rp_9pSHmG_editButton",
10072
10063
  "page": "rp_9pSHmG_page",
10073
- "open": "rp_9pSHmG_open",
10064
+ "large": "rp_9pSHmG_large",
10065
+ "select": "rp_9pSHmG_select",
10066
+ "cell": "rp_9pSHmG_cell",
10067
+ "editField": "rp_9pSHmG_editField",
10068
+ "status": "rp_9pSHmG_status",
10069
+ "editArea": "rp_9pSHmG_editArea",
10070
+ "error": "rp_9pSHmG_error",
10071
+ "editHelp": "rp_9pSHmG_editHelp",
10074
10072
  "statusError": "rp_9pSHmG_statusError",
10075
- "reusable": "rp_9pSHmG_reusable"
10073
+ "image": "rp_9pSHmG_image",
10074
+ "editButton": "rp_9pSHmG_editButton",
10075
+ "toolbar": "rp_9pSHmG_toolbar"
10076
10076
  };
10077
10077
  //#endregion
10078
10078
  //#region src/client/widgets/gallery-view/GalleryView.tsx
@@ -10413,13 +10413,13 @@ window.__ModuleLoader__.load({
10413
10413
  }
10414
10414
  tag$22.textContent = css$22;
10415
10415
  var WorldEditor_module_css_default = {
10416
+ "message": "rp__swA3a_message",
10417
+ "warning": "rp__swA3a_warning",
10418
+ "view": "rp__swA3a_view",
10416
10419
  "drawerItem": "rp__swA3a_drawerItem",
10417
10420
  "drawerItemOn": "rp__swA3a_drawerItemOn",
10418
- "content": "rp__swA3a_content",
10419
10421
  "drawer": "rp__swA3a_drawer",
10420
- "warning": "rp__swA3a_warning",
10421
- "view": "rp__swA3a_view",
10422
- "message": "rp__swA3a_message"
10422
+ "content": "rp__swA3a_content"
10423
10423
  };
10424
10424
  //#endregion
10425
10425
  //#region src/client/world-editor/WorldEditor.tsx
@@ -10815,27 +10815,27 @@ window.__ModuleLoader__.load({
10815
10815
  }
10816
10816
  tag$21.textContent = css$21;
10817
10817
  var AvatarsPage_module_css_default = {
10818
+ "text": "rp_pQOzEG_text",
10818
10819
  "portrait": "rp_pQOzEG_portrait",
10819
- "editTitle": "rp_pQOzEG_editTitle",
10820
- "editBody": "rp_pQOzEG_editBody",
10821
- "error": "rp_pQOzEG_error",
10822
- "name": "rp_pQOzEG_name",
10823
- "summary": "rp_pQOzEG_summary",
10824
- "placeholder": "rp_pQOzEG_placeholder",
10825
- "actions": "rp_pQOzEG_actions",
10826
10820
  "viewport": "rp_pQOzEG_viewport",
10827
- "toolbar": "rp_pQOzEG_toolbar",
10828
- "card": "rp_pQOzEG_card",
10821
+ "open": "rp_pQOzEG_open",
10822
+ "name": "rp_pQOzEG_name",
10823
+ "label": "rp_pQOzEG_label",
10824
+ "editHeader": "rp_pQOzEG_editHeader",
10829
10825
  "message": "rp_pQOzEG_message",
10826
+ "toolbar": "rp_pQOzEG_toolbar",
10827
+ "count": "rp_pQOzEG_count",
10830
10828
  "page": "rp_pQOzEG_page",
10831
- "editHeader": "rp_pQOzEG_editHeader",
10832
- "field": "rp_pQOzEG_field",
10833
- "label": "rp_pQOzEG_label",
10834
- "grid": "rp_pQOzEG_grid",
10829
+ "summary": "rp_pQOzEG_summary",
10830
+ "card": "rp_pQOzEG_card",
10831
+ "editBody": "rp_pQOzEG_editBody",
10835
10832
  "form": "rp_pQOzEG_form",
10836
- "count": "rp_pQOzEG_count",
10837
- "text": "rp_pQOzEG_text",
10838
- "open": "rp_pQOzEG_open"
10833
+ "placeholder": "rp_pQOzEG_placeholder",
10834
+ "grid": "rp_pQOzEG_grid",
10835
+ "actions": "rp_pQOzEG_actions",
10836
+ "editTitle": "rp_pQOzEG_editTitle",
10837
+ "error": "rp_pQOzEG_error",
10838
+ "field": "rp_pQOzEG_field"
10839
10839
  };
10840
10840
  //#endregion
10841
10841
  //#region src/client/pages/avatars/AvatarsPage.tsx
@@ -12281,37 +12281,37 @@ window.__ModuleLoader__.load({
12281
12281
  }
12282
12282
  tag$20.textContent = css$20;
12283
12283
  var LorebooksPage_module_css_default = {
12284
- "actions": "rp_VV-Eha_actions",
12285
- "title": "rp_VV-Eha_title",
12286
- "help": "rp_VV-Eha_help",
12287
- "field": "rp_VV-Eha_field",
12288
- "card": "rp_VV-Eha_card",
12289
- "error": "rp_VV-Eha_error",
12290
- "label": "rp_VV-Eha_label",
12291
- "meta": "rp_VV-Eha_meta",
12292
- "page": "rp_VV-Eha_page",
12293
12284
  "head": "rp_VV-Eha_head",
12294
- "count": "rp_VV-Eha_count",
12295
- "viewport": "rp_VV-Eha_viewport",
12296
- "editTitle": "rp_VV-Eha_editTitle",
12285
+ "label": "rp_VV-Eha_label",
12286
+ "row": "rp_VV-Eha_row",
12287
+ "input": "rp_VV-Eha_input",
12288
+ "sectionTitle": "rp_VV-Eha_sectionTitle",
12297
12289
  "warning": "rp_VV-Eha_warning",
12290
+ "page": "rp_VV-Eha_page",
12291
+ "card": "rp_VV-Eha_card",
12292
+ "form": "rp_VV-Eha_form",
12293
+ "select": "rp_VV-Eha_select",
12298
12294
  "section": "rp_VV-Eha_section",
12295
+ "title": "rp_VV-Eha_title",
12299
12296
  "toolbar": "rp_VV-Eha_toolbar",
12300
- "editHeader": "rp_VV-Eha_editHeader",
12301
- "editBody": "rp_VV-Eha_editBody",
12302
- "area": "rp_VV-Eha_area",
12303
12297
  "cardActions": "rp_VV-Eha_cardActions",
12304
- "input": "rp_VV-Eha_input",
12305
- "grid": "rp_VV-Eha_grid",
12306
- "sectionTitle": "rp_VV-Eha_sectionTitle",
12298
+ "count": "rp_VV-Eha_count",
12307
12299
  "name": "rp_VV-Eha_name",
12308
- "row": "rp_VV-Eha_row",
12309
- "form": "rp_VV-Eha_form",
12310
- "ok": "rp_VV-Eha_ok",
12311
12300
  "entryArea": "rp_VV-Eha_entryArea",
12301
+ "ok": "rp_VV-Eha_ok",
12302
+ "grid": "rp_VV-Eha_grid",
12303
+ "error": "rp_VV-Eha_error",
12304
+ "description": "rp_VV-Eha_description",
12305
+ "viewport": "rp_VV-Eha_viewport",
12312
12306
  "message": "rp_VV-Eha_message",
12313
- "select": "rp_VV-Eha_select",
12314
- "description": "rp_VV-Eha_description"
12307
+ "editBody": "rp_VV-Eha_editBody",
12308
+ "field": "rp_VV-Eha_field",
12309
+ "area": "rp_VV-Eha_area",
12310
+ "actions": "rp_VV-Eha_actions",
12311
+ "help": "rp_VV-Eha_help",
12312
+ "editHeader": "rp_VV-Eha_editHeader",
12313
+ "editTitle": "rp_VV-Eha_editTitle",
12314
+ "meta": "rp_VV-Eha_meta"
12315
12315
  };
12316
12316
  //#endregion
12317
12317
  //#region src/client/pages/lorebooks/LorebookEditor.tsx
@@ -13355,35 +13355,35 @@ window.__ModuleLoader__.load({
13355
13355
  }
13356
13356
  tag$19.textContent = css$19;
13357
13357
  var PresetsPage_module_css_default = {
13358
+ "page": "rp_ZK89ba_page",
13359
+ "count": "rp_ZK89ba_count",
13358
13360
  "grid": "rp_ZK89ba_grid",
13361
+ "toolbar": "rp_ZK89ba_toolbar",
13362
+ "card": "rp_ZK89ba_card",
13363
+ "head": "rp_ZK89ba_head",
13359
13364
  "actions": "rp_ZK89ba_actions",
13360
13365
  "name": "rp_ZK89ba_name",
13361
- "head": "rp_ZK89ba_head",
13362
13366
  "editHeader": "rp_ZK89ba_editHeader",
13363
- "label": "rp_ZK89ba_label",
13364
- "cardActions": "rp_ZK89ba_cardActions",
13365
- "card": "rp_ZK89ba_card",
13366
- "title": "rp_ZK89ba_title",
13367
- "form": "rp_ZK89ba_form",
13368
- "section": "rp_ZK89ba_section",
13369
- "field": "rp_ZK89ba_field",
13367
+ "message": "rp_ZK89ba_message",
13368
+ "error": "rp_ZK89ba_error",
13370
13369
  "warning": "rp_ZK89ba_warning",
13371
- "count": "rp_ZK89ba_count",
13372
- "row": "rp_ZK89ba_row",
13373
- "toolbar": "rp_ZK89ba_toolbar",
13374
- "page": "rp_ZK89ba_page",
13370
+ "sectionTitle": "rp_ZK89ba_sectionTitle",
13371
+ "title": "rp_ZK89ba_title",
13375
13372
  "area": "rp_ZK89ba_area",
13376
- "message": "rp_ZK89ba_message",
13373
+ "field": "rp_ZK89ba_field",
13377
13374
  "viewport": "rp_ZK89ba_viewport",
13378
- "error": "rp_ZK89ba_error",
13375
+ "input": "rp_ZK89ba_input",
13376
+ "editTitle": "rp_ZK89ba_editTitle",
13377
+ "label": "rp_ZK89ba_label",
13378
+ "form": "rp_ZK89ba_form",
13379
13379
  "help": "rp_ZK89ba_help",
13380
+ "description": "rp_ZK89ba_description",
13381
+ "row": "rp_ZK89ba_row",
13382
+ "section": "rp_ZK89ba_section",
13380
13383
  "meta": "rp_ZK89ba_meta",
13381
- "editTitle": "rp_ZK89ba_editTitle",
13382
- "ok": "rp_ZK89ba_ok",
13383
13384
  "editBody": "rp_ZK89ba_editBody",
13384
- "input": "rp_ZK89ba_input",
13385
- "description": "rp_ZK89ba_description",
13386
- "sectionTitle": "rp_ZK89ba_sectionTitle"
13385
+ "cardActions": "rp_ZK89ba_cardActions",
13386
+ "ok": "rp_ZK89ba_ok"
13387
13387
  };
13388
13388
  //#endregion
13389
13389
  //#region src/client/pages/presets/PresetEditor.tsx
@@ -14446,8 +14446,8 @@ window.__ModuleLoader__.load({
14446
14446
  }
14447
14447
  tag$18.textContent = css$18;
14448
14448
  var Pager_module_css_default = {
14449
- "pager": "rp_KBAD0W_pager",
14450
- "position": "rp_KBAD0W_position"
14449
+ "position": "rp_KBAD0W_position",
14450
+ "pager": "rp_KBAD0W_pager"
14451
14451
  };
14452
14452
  //#endregion
14453
14453
  //#region src/client/widgets/pager/Pager.tsx
@@ -14521,9 +14521,9 @@ window.__ModuleLoader__.load({
14521
14521
  tag$16.textContent = css$16;
14522
14522
  var DeleteSessionDialog_module_css_default = {
14523
14523
  "question": "rp_FifHrW_question",
14524
- "body": "rp_FifHrW_body",
14525
- "choice": "rp_FifHrW_choice",
14526
14524
  "error": "rp_FifHrW_error",
14525
+ "choice": "rp_FifHrW_choice",
14526
+ "body": "rp_FifHrW_body",
14527
14527
  "warning": "rp_FifHrW_warning"
14528
14528
  };
14529
14529
  //#endregion
@@ -14662,28 +14662,28 @@ window.__ModuleLoader__.load({
14662
14662
  }
14663
14663
  tag$15.textContent = css$15;
14664
14664
  var SessionsPage_module_css_default = {
14665
- "spinning": "rp_24z4eW_spinning",
14666
- "toolbar": "rp_24z4eW_toolbar",
14665
+ "worldColumn": "rp_24z4eW_worldColumn",
14666
+ "message": "rp_24z4eW_message",
14667
+ "turnsColumn": "rp_24z4eW_turnsColumn",
14668
+ "timeColumn": "rp_24z4eW_timeColumn",
14669
+ "fits": "rp_24z4eW_fits",
14670
+ "actionsColumn": "rp_24z4eW_actionsColumn",
14667
14671
  "spin": "rp_24z4eW_spin",
14672
+ "number": "rp_24z4eW_number",
14673
+ "name": "rp_24z4eW_name",
14674
+ "toolbar": "rp_24z4eW_toolbar",
14675
+ "table": "rp_24z4eW_table",
14668
14676
  "count": "rp_24z4eW_count",
14669
- "worldColumn": "rp_24z4eW_worldColumn",
14670
- "viewport": "rp_24z4eW_viewport",
14677
+ "archived": "rp_24z4eW_archived",
14671
14678
  "page": "rp_24z4eW_page",
14672
- "secondary": "rp_24z4eW_secondary",
14673
- "number": "rp_24z4eW_number",
14674
- "actions": "rp_24z4eW_actions",
14675
- "badge": "rp_24z4eW_badge",
14676
- "actionsColumn": "rp_24z4eW_actionsColumn",
14677
- "turnsColumn": "rp_24z4eW_turnsColumn",
14678
14679
  "scrolls": "rp_24z4eW_scrolls",
14679
- "table": "rp_24z4eW_table",
14680
- "message": "rp_24z4eW_message",
14681
- "name": "rp_24z4eW_name",
14682
14680
  "nameColumn": "rp_24z4eW_nameColumn",
14683
- "fits": "rp_24z4eW_fits",
14684
- "timeColumn": "rp_24z4eW_timeColumn",
14685
- "archived": "rp_24z4eW_archived",
14686
- "notice": "rp_24z4eW_notice"
14681
+ "badge": "rp_24z4eW_badge",
14682
+ "actions": "rp_24z4eW_actions",
14683
+ "secondary": "rp_24z4eW_secondary",
14684
+ "notice": "rp_24z4eW_notice",
14685
+ "viewport": "rp_24z4eW_viewport",
14686
+ "spinning": "rp_24z4eW_spinning"
14687
14687
  };
14688
14688
  //#endregion
14689
14689
  //#region src/client/pages/sessions/SessionsPage.tsx
@@ -15291,7 +15291,7 @@ window.__ModuleLoader__.load({
15291
15291
  }
15292
15292
  //#endregion
15293
15293
  //#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sync/SyncPage.module.css.mjs
15294
- const css$14 = ".rp_Gk-byG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_Gk-byG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_Gk-byG_meta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_Gk-byG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_Gk-byG_viewport{flex:1 1 0;min-height:0;overflow:auto}.rp_Gk-byG_table{border-collapse:collapse;width:100%;font-size:13px}.rp_Gk-byG_table th{text-align:left;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-layer-1);border-bottom:.5px solid var(--dsw-alias-border-l3);padding:6px 8px;font-size:12px;font-weight:400;position:sticky;top:0}.rp_Gk-byG_table td{vertical-align:top;border-bottom:.5px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-primary);padding:6px 8px}.rp_Gk-byG_unit{font-family:var(--dsw-font-mono,monospace);word-break:break-all;font-size:12px}.rp_Gk-byG_conflict{color:var(--dsw-alias-state-warn-primary,var(--dsw-alias-state-error-primary))}.rp_Gk-byG_failed{color:var(--dsw-alias-state-error-primary)}.rp_Gk-byG_detail{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;margin:0;font-size:12px;display:flex}.rp_Gk-byG_choices{flex-wrap:wrap;gap:4px;display:flex}.rp_Gk-byG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_Gk-byG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Gk-byG_problem{color:var(--dsw-alias-state-warn-primary,var(--dsw-alias-state-error-primary));margin:0;font-size:12px}.rp_Gk-byG_confirmation{max-width:60ch;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0}";
15294
+ const css$14 = ".rp_Gk-byG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_Gk-byG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_Gk-byG_meta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_Gk-byG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_Gk-byG_viewport{flex:1 1 0;min-height:0;overflow:auto}.rp_Gk-byG_table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:720px;font-size:13px}.rp_Gk-byG_unitColumn{width:18%}.rp_Gk-byG_kindColumn{width:13%}.rp_Gk-byG_stateColumn{width:14%}.rp_Gk-byG_syncedColumn{width:16%}.rp_Gk-byG_detailsColumn{width:29%}.rp_Gk-byG_actionsColumn{width:10%}.rp_Gk-byG_caption{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.rp_Gk-byG_table th{text-align:left;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-layer-1);border-bottom:.5px solid var(--dsw-alias-border-l3);padding:6px 8px;font-size:12px;font-weight:400;position:sticky;top:0}.rp_Gk-byG_table .rp_Gk-byG_actionHeading{text-align:right}.rp_Gk-byG_table td{vertical-align:top;border-bottom:.5px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-primary);padding:6px 8px}.rp_Gk-byG_table td:last-child{text-align:right}.rp_Gk-byG_unit{font-family:var(--dsw-font-mono,monospace);word-break:break-all;font-size:12px}.rp_Gk-byG_conflict{color:var(--dsw-alias-state-warn-primary,var(--dsw-alias-state-error-primary))}.rp_Gk-byG_failed{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;display:block}.rp_Gk-byG_detail{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;margin:0;font-size:12px;display:flex}.rp_Gk-byG_detail>span:first-child{overflow-wrap:anywhere}.rp_Gk-byG_choices{flex-wrap:wrap;gap:4px;display:flex}.rp_Gk-byG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_Gk-byG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Gk-byG_problem{color:var(--dsw-alias-state-warn-primary,var(--dsw-alias-state-error-primary));margin:0;font-size:12px}.rp_Gk-byG_confirmation{max-width:60ch;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0}";
15295
15295
  const key$14 = "src/client/pages/sync/SyncPage.module.css";
15296
15296
  let tag$14 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$14) + "]");
15297
15297
  if (tag$14 === null) {
@@ -15302,20 +15302,28 @@ window.__ModuleLoader__.load({
15302
15302
  }
15303
15303
  tag$14.textContent = css$14;
15304
15304
  var SyncPage_module_css_default = {
15305
- "meta": "rp_Gk-byG_meta",
15306
- "choices": "rp_Gk-byG_choices",
15305
+ "detailsColumn": "rp_Gk-byG_detailsColumn",
15306
+ "page": "rp_Gk-byG_page",
15307
+ "viewport": "rp_Gk-byG_viewport",
15308
+ "table": "rp_Gk-byG_table",
15309
+ "stateColumn": "rp_Gk-byG_stateColumn",
15310
+ "actionHeading": "rp_Gk-byG_actionHeading",
15311
+ "actions": "rp_Gk-byG_actions",
15312
+ "failed": "rp_Gk-byG_failed",
15307
15313
  "unit": "rp_Gk-byG_unit",
15314
+ "actionsColumn": "rp_Gk-byG_actionsColumn",
15315
+ "choices": "rp_Gk-byG_choices",
15308
15316
  "detail": "rp_Gk-byG_detail",
15309
15317
  "problem": "rp_Gk-byG_problem",
15310
- "error": "rp_Gk-byG_error",
15311
- "table": "rp_Gk-byG_table",
15312
- "message": "rp_Gk-byG_message",
15313
- "failed": "rp_Gk-byG_failed",
15314
- "conflict": "rp_Gk-byG_conflict",
15315
15318
  "confirmation": "rp_Gk-byG_confirmation",
15316
- "page": "rp_Gk-byG_page",
15317
- "viewport": "rp_Gk-byG_viewport",
15318
- "actions": "rp_Gk-byG_actions",
15319
+ "conflict": "rp_Gk-byG_conflict",
15320
+ "meta": "rp_Gk-byG_meta",
15321
+ "message": "rp_Gk-byG_message",
15322
+ "kindColumn": "rp_Gk-byG_kindColumn",
15323
+ "caption": "rp_Gk-byG_caption",
15324
+ "error": "rp_Gk-byG_error",
15325
+ "unitColumn": "rp_Gk-byG_unitColumn",
15326
+ "syncedColumn": "rp_Gk-byG_syncedColumn",
15319
15327
  "toolbar": "rp_Gk-byG_toolbar"
15320
15328
  };
15321
15329
  //#endregion
@@ -15502,42 +15510,76 @@ window.__ModuleLoader__.load({
15502
15510
  }),
15503
15511
  status !== void 0 && status.units.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
15504
15512
  className: SyncPage_module_css_default.table,
15505
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
15506
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("unit") }),
15507
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("kind") }),
15508
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("state") }),
15509
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("synced") }),
15510
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("details") }),
15511
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {})
15512
- ] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: status.units.map((unit) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
15513
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
15514
- className: SyncPage_module_css_default.unit,
15515
- children: unit.id
15513
+ children: [
15514
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
15515
+ className: SyncPage_module_css_default.caption,
15516
+ children: t("tableCaption")
15516
15517
  }),
15517
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: t(`kind_${unit.kind}`) }),
15518
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: t(`state_${unit.state}`) }),
15519
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: when(unit.at, t("never"), t("dateLocale")) }),
15520
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Details, {
15521
- t,
15522
- unit,
15523
- working: busy,
15524
- face: {
15525
- resolve,
15526
- forget,
15527
- restore
15528
- },
15529
- confirmDeletion: setDeletion
15530
- }) }),
15531
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
15532
- size: "sm",
15533
- variant: "ghost",
15534
- disabled: busy || status.problem !== void 0 || unit.state === "conflict" || unit.state === "ignored",
15535
- onClick: () => {
15536
- run(unit.id);
15537
- },
15538
- children: t("runOne")
15539
- }) })
15540
- ] }, unit.id)) })]
15518
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("colgroup", { children: [
15519
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", { className: SyncPage_module_css_default.unitColumn }),
15520
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", { className: SyncPage_module_css_default.kindColumn }),
15521
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", { className: SyncPage_module_css_default.stateColumn }),
15522
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", { className: SyncPage_module_css_default.syncedColumn }),
15523
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", { className: SyncPage_module_css_default.detailsColumn }),
15524
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", { className: SyncPage_module_css_default.actionsColumn })
15525
+ ] }),
15526
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
15527
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
15528
+ scope: "col",
15529
+ children: t("unit")
15530
+ }),
15531
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
15532
+ scope: "col",
15533
+ children: t("kind")
15534
+ }),
15535
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
15536
+ scope: "col",
15537
+ children: t("state")
15538
+ }),
15539
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
15540
+ scope: "col",
15541
+ children: t("synced")
15542
+ }),
15543
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
15544
+ scope: "col",
15545
+ children: t("details")
15546
+ }),
15547
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
15548
+ scope: "col",
15549
+ className: SyncPage_module_css_default.actionHeading,
15550
+ children: t("actions")
15551
+ })
15552
+ ] }) }),
15553
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: status.units.map((unit) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
15554
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
15555
+ className: SyncPage_module_css_default.unit,
15556
+ children: unit.id
15557
+ }),
15558
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: t(`kind_${unit.kind}`) }),
15559
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: t(`state_${unit.state}`) }),
15560
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: when(unit.at, t("never"), t("dateLocale")) }),
15561
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Details, {
15562
+ t,
15563
+ unit,
15564
+ working: busy,
15565
+ face: {
15566
+ resolve,
15567
+ forget,
15568
+ restore
15569
+ },
15570
+ confirmDeletion: setDeletion
15571
+ }) }),
15572
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
15573
+ size: "sm",
15574
+ variant: "ghost",
15575
+ disabled: busy || status.problem !== void 0 || unit.state === "conflict" || unit.state === "ignored",
15576
+ onClick: () => {
15577
+ run(unit.id);
15578
+ },
15579
+ children: t("runOne")
15580
+ }) })
15581
+ ] }, unit.id)) })
15582
+ ]
15541
15583
  })
15542
15584
  ]
15543
15585
  }),
@@ -15595,6 +15637,8 @@ window.__ModuleLoader__.load({
15595
15637
  state: "State",
15596
15638
  synced: "Last synced",
15597
15639
  details: "Details",
15640
+ actions: "Actions",
15641
+ tableCaption: "Roleplay content sync status",
15598
15642
  kind_world: "World",
15599
15643
  kind_session: "Session",
15600
15644
  kind_shared: "Shared folder",
@@ -15644,6 +15688,8 @@ window.__ModuleLoader__.load({
15644
15688
  state: "状态",
15645
15689
  synced: "上次同步",
15646
15690
  details: "详情",
15691
+ actions: "操作",
15692
+ tableCaption: "角色扮演内容同步状态",
15647
15693
  kind_world: "世界",
15648
15694
  kind_session: "会话",
15649
15695
  kind_shared: "共享文件夹",
@@ -15796,16 +15842,16 @@ window.__ModuleLoader__.load({
15796
15842
  }
15797
15843
  tag$13.textContent = css$13;
15798
15844
  var WorldCard_module_css_default = {
15845
+ "name": "rp_Bvxx5q_name",
15799
15846
  "image": "rp_Bvxx5q_image",
15847
+ "card": "rp_Bvxx5q_card",
15848
+ "placeholder": "rp_Bvxx5q_placeholder",
15800
15849
  "info": "rp_Bvxx5q_info",
15850
+ "play": "rp_Bvxx5q_play",
15801
15851
  "tags": "rp_Bvxx5q_tags",
15802
15852
  "tag": "rp_Bvxx5q_tag",
15803
- "name": "rp_Bvxx5q_name",
15804
15853
  "cover": "rp_Bvxx5q_cover",
15805
- "openButton": "rp_Bvxx5q_openButton",
15806
- "play": "rp_Bvxx5q_play",
15807
- "card": "rp_Bvxx5q_card",
15808
- "placeholder": "rp_Bvxx5q_placeholder"
15854
+ "openButton": "rp_Bvxx5q_openButton"
15809
15855
  };
15810
15856
  //#endregion
15811
15857
  //#region src/client/widgets/world-card/WorldCard.tsx
@@ -15816,7 +15862,7 @@ window.__ModuleLoader__.load({
15816
15862
  return hash;
15817
15863
  }
15818
15864
  /** A world as a card. It fills the grid cell it is placed in. */
15819
- function WorldCard({ world, playLabel, openLabel, onPlay, onOpen }) {
15865
+ function WorldCard({ world, playLabel, openLabel, draftLabel, onPlay, onOpen }) {
15820
15866
  const coverSrc = world.coverVersion === void 0 ? void 0 : worldCoverPath(world.id, world.coverVersion);
15821
15867
  const [failedSrc, setFailedSrc] = (0, react.useState)();
15822
15868
  const showCover = coverSrc !== void 0 && coverSrc !== failedSrc;
@@ -15870,9 +15916,14 @@ window.__ModuleLoader__.load({
15870
15916
  }),
15871
15917
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15872
15918
  className: WorldCard_module_css_default.info,
15873
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
15919
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15874
15920
  className: WorldCard_module_css_default.name,
15875
- children: world.name
15921
+ children: [world.name, draftLabel !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
15922
+ tone: "warning",
15923
+ className: WorldCard_module_css_default.tag,
15924
+ "data-testid": "world-draft",
15925
+ children: draftLabel
15926
+ })]
15876
15927
  }), world.tags.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
15877
15928
  className: WorldCard_module_css_default.tags,
15878
15929
  children: world.tags.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
@@ -15899,9 +15950,9 @@ window.__ModuleLoader__.load({
15899
15950
  }
15900
15951
  tag$12.textContent = css$12;
15901
15952
  var AvatarChoices_module_css_default = {
15953
+ "summary": "rp_YCstOG_summary",
15902
15954
  "option": "rp_YCstOG_option",
15903
15955
  "text": "rp_YCstOG_text",
15904
- "summary": "rp_YCstOG_summary",
15905
15956
  "name": "rp_YCstOG_name"
15906
15957
  };
15907
15958
  //#endregion
@@ -15943,17 +15994,17 @@ window.__ModuleLoader__.load({
15943
15994
  tag$11.textContent = css$11;
15944
15995
  var StartSessionDialog_module_css_default = {
15945
15996
  "form": "rp_AnbLKG_form",
15946
- "optionText": "rp_AnbLKG_optionText",
15947
- "field": "rp_AnbLKG_field",
15948
- "optionName": "rp_AnbLKG_optionName",
15949
- "message": "rp_AnbLKG_message",
15950
15997
  "advanced": "rp_AnbLKG_advanced",
15998
+ "error": "rp_AnbLKG_error",
15999
+ "optionText": "rp_AnbLKG_optionText",
15951
16000
  "advancedToggle": "rp_AnbLKG_advancedToggle",
15952
16001
  "optionSummary": "rp_AnbLKG_optionSummary",
16002
+ "label": "rp_AnbLKG_label",
16003
+ "message": "rp_AnbLKG_message",
16004
+ "optionName": "rp_AnbLKG_optionName",
15953
16005
  "option": "rp_AnbLKG_option",
15954
16006
  "advancedBody": "rp_AnbLKG_advancedBody",
15955
- "label": "rp_AnbLKG_label",
15956
- "error": "rp_AnbLKG_error"
16007
+ "field": "rp_AnbLKG_field"
15957
16008
  };
15958
16009
  //#endregion
15959
16010
  //#region src/client/pages/worlds/AddAvatarsDialog.tsx
@@ -17117,14 +17168,14 @@ window.__ModuleLoader__.load({
17117
17168
  }
17118
17169
  tag$10.textContent = css$10;
17119
17170
  var SettingsFields_module_css_default = {
17120
- "groupTitle": "rp_Rhi3yq_groupTitle",
17121
- "row": "rp_Rhi3yq_row",
17122
- "group": "rp_Rhi3yq_group",
17123
- "label": "rp_Rhi3yq_label",
17124
17171
  "help": "rp_Rhi3yq_help",
17125
17172
  "error": "rp_Rhi3yq_error",
17173
+ "groupTitle": "rp_Rhi3yq_groupTitle",
17174
+ "group": "rp_Rhi3yq_group",
17126
17175
  "area": "rp_Rhi3yq_area",
17127
- "field": "rp_Rhi3yq_field"
17176
+ "row": "rp_Rhi3yq_row",
17177
+ "field": "rp_Rhi3yq_field",
17178
+ "label": "rp_Rhi3yq_label"
17128
17179
  };
17129
17180
  //#endregion
17130
17181
  //#region src/client/settings-form/SettingsFields.tsx
@@ -17352,6 +17403,25 @@ window.__ModuleLoader__.load({
17352
17403
  credentials: "same-origin"
17353
17404
  }));
17354
17405
  }
17406
+ /** Whether a world is a draft (an import written but not yet able to start), and what is wrong with it. */
17407
+ async function draftStatus(worldId, signal) {
17408
+ return await answer$1(await fetch(`${API_PREFIX}/worlds/import/draft?id=${encodeURIComponent(worldId)}`, {
17409
+ credentials: "same-origin",
17410
+ ...signal === void 0 ? {} : { signal }
17411
+ }));
17412
+ }
17413
+ /** What the person decides about a draft: have the assistant try again, keep it as it is, or discard it. */
17414
+ async function decideDraft(worldId, action, language) {
17415
+ return await answer$1(await fetch(`${API_PREFIX}/worlds/import/draft?id=${encodeURIComponent(worldId)}`, {
17416
+ method: "POST",
17417
+ credentials: "same-origin",
17418
+ headers: { "content-type": "application/json" },
17419
+ body: JSON.stringify({
17420
+ action,
17421
+ language
17422
+ })
17423
+ }));
17424
+ }
17355
17425
  //#endregion
17356
17426
  //#region src/client/pages/worlds/translate-api.ts
17357
17427
  /** The language a world is written in, or nothing when it has too little text to tell. */
@@ -17379,7 +17449,7 @@ window.__ModuleLoader__.load({
17379
17449
  const storyLanguageOf = (code) => code.trim().toLowerCase().startsWith("zh") ? "zh" : "en";
17380
17450
  //#endregion
17381
17451
  //#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/TranslateBanner.module.css.mjs
17382
- const css$9 = ".rp_Lx8vJa_banner{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);align-items:center;gap:12px;margin:0 0 8px;padding:8px 12px;font-size:12px;line-height:18px;display:flex}.rp_Lx8vJa_text{flex:auto}.rp_Lx8vJa_error{color:var(--dsw-alias-state-error-primary);margin:0 0 8px;font-size:12px}";
17452
+ const css$9 = ".rp_Lx8vJa_banner{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 8px;padding:8px 12px;font-size:12px;line-height:18px;display:flex}.rp_Lx8vJa_text{flex:360px;min-width:0}.rp_Lx8vJa_text ul{margin:4px 0 0;padding-left:20px}.rp_Lx8vJa_bannerActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;gap:8px;display:flex}.rp_Lx8vJa_error{color:var(--dsw-alias-state-error-primary);margin:0 0 8px;font-size:12px}";
17383
17453
  const key$9 = "src/client/pages/worlds/TranslateBanner.module.css";
17384
17454
  let tag$9 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$9) + "]");
17385
17455
  if (tag$9 === null) {
@@ -17390,9 +17460,10 @@ window.__ModuleLoader__.load({
17390
17460
  }
17391
17461
  tag$9.textContent = css$9;
17392
17462
  var TranslateBanner_module_css_default = {
17463
+ "bannerActions": "rp_Lx8vJa_bannerActions",
17464
+ "banner": "rp_Lx8vJa_banner",
17393
17465
  "error": "rp_Lx8vJa_error",
17394
- "text": "rp_Lx8vJa_text",
17395
- "banner": "rp_Lx8vJa_banner"
17466
+ "text": "rp_Lx8vJa_text"
17396
17467
  };
17397
17468
  //#endregion
17398
17469
  //#region src/client/pages/worlds/TranslateBanner.tsx
@@ -17972,7 +18043,7 @@ window.__ModuleLoader__.load({
17972
18043
  }
17973
18044
  //#endregion
17974
18045
  //#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/WorldsPage.module.css.mjs
17975
- const css$8 = ".rp_FHUyRq_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_FHUyRq_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_FHUyRq_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_FHUyRq_toolbarActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.rp_FHUyRq_spinning{animation:.9s linear infinite rp_FHUyRq_spin}@keyframes rp_FHUyRq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_FHUyRq_spinning{animation:none}}.rp_FHUyRq_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_FHUyRq_viewport{--rp-card-width:168px;--rp-card-height:288px;--rp-card-gap:16px;flex:1 1 0;min-height:0;padding:4px}.rp_FHUyRq_scrolls{overflow-y:auto}.rp_FHUyRq_fits{overflow:hidden}.rp_FHUyRq_grid{grid-auto-rows:var(--rp-card-height);grid-template-columns:repeat(auto-fill, var(--rp-card-width));gap:var(--rp-card-gap);margin:0;padding:0;list-style:none;display:grid}.rp_FHUyRq_cell{min-width:0;display:flex}.rp_FHUyRq_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_FHUyRq_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_FHUyRq_editTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_FHUyRq_authorButton{margin-left:auto}.rp_FHUyRq_editBody{flex:1 1 0;min-height:0;display:flex}.rp_FHUyRq_starters{flex-direction:column;align-items:center;gap:8px;padding-bottom:24px;display:flex}.rp_FHUyRq_starter{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);text-align:center;max-width:480px;color:var(--dsw-alias-label-secondary);flex-direction:column;align-items:center;gap:6px;padding:12px 16px;font-size:13px;display:flex}@media (width<=640px){.rp_FHUyRq_toolbar{align-items:flex-start}.rp_FHUyRq_count{padding-top:6px}.rp_FHUyRq_toolbarActions{max-width:75%}.rp_FHUyRq_editTitle{text-overflow:ellipsis;white-space:nowrap;flex:calc(100% - 96px);overflow:hidden}.rp_FHUyRq_authorButton{margin-left:0}}";
18046
+ const css$8 = ".rp_FHUyRq_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_FHUyRq_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_FHUyRq_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_FHUyRq_toolbarActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.rp_FHUyRq_spinning{animation:.9s linear infinite rp_FHUyRq_spin}@keyframes rp_FHUyRq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_FHUyRq_spinning{animation:none}}.rp_FHUyRq_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_FHUyRq_viewport{--rp-card-width:168px;--rp-card-height:288px;--rp-card-gap:16px;flex:1 1 0;min-height:0;padding:4px}.rp_FHUyRq_scrolls{overflow-y:auto}.rp_FHUyRq_fits{overflow:hidden}.rp_FHUyRq_grid{grid-auto-rows:var(--rp-card-height);grid-template-columns:repeat(auto-fill, var(--rp-card-width));gap:var(--rp-card-gap);margin:0;padding:0;list-style:none;display:grid}.rp_FHUyRq_cell{min-width:0;display:flex}.rp_FHUyRq_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_FHUyRq_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_FHUyRq_editTitle{min-width:0;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;flex:180px;font-size:14px;font-weight:500;overflow:hidden}.rp_FHUyRq_editActions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;gap:8px;display:flex}.rp_FHUyRq_editBody{flex:1 1 0;min-height:0;display:flex}.rp_FHUyRq_starters{flex-direction:column;align-items:center;gap:8px;padding-bottom:24px;display:flex}.rp_FHUyRq_starter{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);text-align:center;max-width:480px;color:var(--dsw-alias-label-secondary);flex-direction:column;align-items:center;gap:6px;padding:12px 16px;font-size:13px;display:flex}@media (width<=640px){.rp_FHUyRq_toolbar{align-items:flex-start}.rp_FHUyRq_count{padding-top:6px}.rp_FHUyRq_toolbarActions{max-width:75%}.rp_FHUyRq_editTitle{text-overflow:ellipsis;white-space:nowrap;flex:calc(100% - 96px);overflow:hidden}.rp_FHUyRq_editActions{flex:0 0 100%;justify-content:flex-start}}";
17976
18047
  const key$8 = "src/client/pages/worlds/WorldsPage.module.css";
17977
18048
  let tag$8 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$8) + "]");
17978
18049
  if (tag$8 === null) {
@@ -17983,25 +18054,25 @@ window.__ModuleLoader__.load({
17983
18054
  }
17984
18055
  tag$8.textContent = css$8;
17985
18056
  var WorldsPage_module_css_default = {
18057
+ "starters": "rp_FHUyRq_starters",
18058
+ "editHeader": "rp_FHUyRq_editHeader",
18059
+ "scrolls": "rp_FHUyRq_scrolls",
18060
+ "spinning": "rp_FHUyRq_spinning",
18061
+ "page": "rp_FHUyRq_page",
17986
18062
  "count": "rp_FHUyRq_count",
18063
+ "viewport": "rp_FHUyRq_viewport",
18064
+ "grid": "rp_FHUyRq_grid",
17987
18065
  "message": "rp_FHUyRq_message",
17988
- "toolbarActions": "rp_FHUyRq_toolbarActions",
17989
- "editBody": "rp_FHUyRq_editBody",
17990
- "cell": "rp_FHUyRq_cell",
17991
- "page": "rp_FHUyRq_page",
17992
- "spin": "rp_FHUyRq_spin",
17993
18066
  "fits": "rp_FHUyRq_fits",
17994
- "grid": "rp_FHUyRq_grid",
17995
- "toolbar": "rp_FHUyRq_toolbar",
17996
- "editHeader": "rp_FHUyRq_editHeader",
17997
- "spinning": "rp_FHUyRq_spinning",
17998
- "scrolls": "rp_FHUyRq_scrolls",
17999
- "authorButton": "rp_FHUyRq_authorButton",
18000
18067
  "editTitle": "rp_FHUyRq_editTitle",
18001
18068
  "starter": "rp_FHUyRq_starter",
18002
- "viewport": "rp_FHUyRq_viewport",
18069
+ "toolbarActions": "rp_FHUyRq_toolbarActions",
18070
+ "cell": "rp_FHUyRq_cell",
18003
18071
  "notice": "rp_FHUyRq_notice",
18004
- "starters": "rp_FHUyRq_starters"
18072
+ "spin": "rp_FHUyRq_spin",
18073
+ "editActions": "rp_FHUyRq_editActions",
18074
+ "toolbar": "rp_FHUyRq_toolbar",
18075
+ "editBody": "rp_FHUyRq_editBody"
18005
18076
  };
18006
18077
  //#endregion
18007
18078
  //#region src/client/pages/worlds/StarterWorlds.tsx
@@ -18059,6 +18130,105 @@ window.__ModuleLoader__.load({
18059
18130
  });
18060
18131
  }
18061
18132
  //#endregion
18133
+ //#region src/client/pages/worlds/DraftBanner.tsx
18134
+ /** The most problems the banner lists: the rest are counted. */
18135
+ const SHOWN = 5;
18136
+ /** Says that a world is an import written as a draft, what is wrong with it, and lets the person have it repaired, keep it as it is or discard it. */
18137
+ function DraftBanner({ t, worldId, version, openChat, onChanged, onDiscarded }) {
18138
+ const [status, setStatus] = (0, react.useState)();
18139
+ const [busy, setBusy] = (0, react.useState)(false);
18140
+ const [confirming, setConfirming] = (0, react.useState)(false);
18141
+ const [failure, setFailure] = (0, react.useState)();
18142
+ (0, react.useEffect)(() => {
18143
+ const abort = new AbortController();
18144
+ setStatus(void 0);
18145
+ setFailure(void 0);
18146
+ draftStatus(worldId, abort.signal).then(setStatus, (error) => {
18147
+ if (!abort.signal.aborted) setFailure(t("draftFailed", { message: error instanceof Error ? error.message : String(error) }));
18148
+ });
18149
+ return () => {
18150
+ abort.abort();
18151
+ };
18152
+ }, [worldId, version]);
18153
+ if (status?.draft !== true) return failure === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
18154
+ className: TranslateBanner_module_css_default.error,
18155
+ role: "alert",
18156
+ children: failure
18157
+ });
18158
+ const decide = (action) => {
18159
+ setBusy(true);
18160
+ setFailure(void 0);
18161
+ decideDraft(worldId, action, t("language")).then((done) => {
18162
+ setBusy(false);
18163
+ setConfirming(false);
18164
+ if (action === "discard") onDiscarded();
18165
+ else onChanged();
18166
+ if (action === "ask" && done.started !== void 0) openChat(done.started.chatSessionId);
18167
+ }, (error) => {
18168
+ setBusy(false);
18169
+ setFailure(t("draftFailed", { message: error instanceof Error ? error.message : String(error) }));
18170
+ });
18171
+ };
18172
+ const problems = status.check?.problems ?? [];
18173
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18174
+ className: TranslateBanner_module_css_default.banner,
18175
+ role: "note",
18176
+ "data-testid": "roleplay-draft-banner",
18177
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18178
+ className: TranslateBanner_module_css_default.text,
18179
+ children: [
18180
+ t("draftWarning"),
18181
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", { children: problems.slice(0, SHOWN).map((problem) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", { children: [
18182
+ problem.where,
18183
+ ": ",
18184
+ problem.message
18185
+ ] }, `${problem.where}:${problem.message}`)) }),
18186
+ problems.length + (status.check?.more ?? 0) > SHOWN && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("draftMore", { count: problems.length + (status.check?.more ?? 0) - SHOWN }) }),
18187
+ confirming && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18188
+ role: "alert",
18189
+ children: t("draftDiscardConfirm")
18190
+ })
18191
+ ]
18192
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18193
+ className: TranslateBanner_module_css_default.bannerActions,
18194
+ children: [
18195
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18196
+ variant: "primary",
18197
+ size: "sm",
18198
+ disabled: busy,
18199
+ onClick: () => {
18200
+ decide("ask");
18201
+ },
18202
+ children: busy ? t("draftBusy") : t("draftAsk")
18203
+ }),
18204
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18205
+ variant: "outline",
18206
+ size: "sm",
18207
+ disabled: busy,
18208
+ onClick: () => {
18209
+ decide("keep");
18210
+ },
18211
+ children: t("draftKeep")
18212
+ }),
18213
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18214
+ variant: "outline",
18215
+ size: "sm",
18216
+ disabled: busy,
18217
+ onClick: () => {
18218
+ if (confirming) decide("discard");
18219
+ else setConfirming(true);
18220
+ },
18221
+ children: t("draftDiscard")
18222
+ })
18223
+ ]
18224
+ })]
18225
+ }), failure !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
18226
+ className: TranslateBanner_module_css_default.error,
18227
+ role: "alert",
18228
+ children: failure
18229
+ })] });
18230
+ }
18231
+ //#endregion
18062
18232
  //#region src/client/pages/worlds/RevertUpdateDialog.tsx
18063
18233
  /** Asks before a world goes back to how it was before its last card update. */
18064
18234
  function RevertUpdateDialog({ t, revert, onDone, onClose }) {
@@ -18249,23 +18419,6 @@ window.__ModuleLoader__.load({
18249
18419
  event.target.value = "";
18250
18420
  }
18251
18421
  }),
18252
- cardStatus?.fromCard === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18253
- variant: "outline",
18254
- size: "sm",
18255
- disabled: updateBusy,
18256
- onClick: () => {
18257
- updatePicker.current?.click();
18258
- },
18259
- children: updateBusy ? t("updateReading") : t("updateFromCard")
18260
- }),
18261
- cardStatus?.revertible === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18262
- variant: "outline",
18263
- size: "sm",
18264
- onClick: () => {
18265
- setReverting(true);
18266
- },
18267
- children: t("revertUpdate")
18268
- }),
18269
18422
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
18270
18423
  ref: presetPicker,
18271
18424
  type: "file",
@@ -18277,32 +18430,53 @@ window.__ModuleLoader__.load({
18277
18430
  event.target.value = "";
18278
18431
  }
18279
18432
  }),
18280
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18281
- className: WorldsPage_module_css_default.authorButton,
18282
- variant: "outline",
18283
- size: "sm",
18284
- disabled: presetBusy,
18285
- onClick: () => {
18286
- presetPicker.current?.click();
18287
- },
18288
- children: presetBusy ? t("presetReading") : t("importPreset")
18289
- }),
18290
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18291
- variant: "outline",
18292
- size: "sm",
18293
- onClick: () => {
18294
- setAddingAvatars(true);
18295
- },
18296
- children: t("addAvatars")
18297
- }),
18298
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18299
- variant: "primary",
18300
- size: "sm",
18301
- disabled: state.authoring?.worldId === editing.id && state.authoring.error === void 0,
18302
- onClick: () => {
18303
- openAuthoring(editing.id, t("authoringChatTitle", { name: editing.name }));
18304
- },
18305
- children: state.authoring?.worldId === editing.id && state.authoring.error === void 0 ? t("openingAuthor") : t("authorWorld")
18433
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18434
+ className: WorldsPage_module_css_default.editActions,
18435
+ children: [
18436
+ cardStatus?.fromCard === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18437
+ variant: "outline",
18438
+ size: "sm",
18439
+ disabled: updateBusy,
18440
+ onClick: () => {
18441
+ updatePicker.current?.click();
18442
+ },
18443
+ children: updateBusy ? t("updateReading") : t("updateFromCard")
18444
+ }),
18445
+ cardStatus?.revertible === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18446
+ variant: "outline",
18447
+ size: "sm",
18448
+ onClick: () => {
18449
+ setReverting(true);
18450
+ },
18451
+ children: t("revertUpdate")
18452
+ }),
18453
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18454
+ variant: "outline",
18455
+ size: "sm",
18456
+ disabled: presetBusy,
18457
+ onClick: () => {
18458
+ presetPicker.current?.click();
18459
+ },
18460
+ children: presetBusy ? t("presetReading") : t("importPreset")
18461
+ }),
18462
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18463
+ variant: "outline",
18464
+ size: "sm",
18465
+ onClick: () => {
18466
+ setAddingAvatars(true);
18467
+ },
18468
+ children: t("addAvatars")
18469
+ }),
18470
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
18471
+ variant: "primary",
18472
+ size: "sm",
18473
+ disabled: state.authoring?.worldId === editing.id && state.authoring.error === void 0,
18474
+ onClick: () => {
18475
+ openAuthoring(editing.id, t("authoringChatTitle", { name: editing.name }));
18476
+ },
18477
+ children: state.authoring?.worldId === editing.id && state.authoring.error === void 0 ? t("openingAuthor") : t("authorWorld")
18478
+ })
18479
+ ]
18306
18480
  })
18307
18481
  ]
18308
18482
  }),
@@ -18334,6 +18508,20 @@ window.__ModuleLoader__.load({
18334
18508
  openChat(opened.chatSessionId);
18335
18509
  }
18336
18510
  }),
18511
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DraftBanner, {
18512
+ t,
18513
+ worldId: editing.id,
18514
+ version: editorVersion,
18515
+ openChat,
18516
+ onChanged: () => {
18517
+ refresh();
18518
+ setEditorVersion((version) => version + 1);
18519
+ },
18520
+ onDiscarded: () => {
18521
+ refresh();
18522
+ setEditing(void 0);
18523
+ }
18524
+ }),
18337
18525
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TranslateBanner, {
18338
18526
  t,
18339
18527
  worldId: editing.id,
@@ -18464,9 +18652,9 @@ window.__ModuleLoader__.load({
18464
18652
  world,
18465
18653
  playLabel: t("play"),
18466
18654
  openLabel: t("openWorld", { name: world.name }),
18467
- onPlay: () => {
18655
+ ...world.draft === true ? { draftLabel: t("draftBadge") } : { onPlay: () => {
18468
18656
  openStartDialog(world.id, world.name);
18469
- },
18657
+ } },
18470
18658
  onOpen: () => {
18471
18659
  setEditing({
18472
18660
  id: world.id,
@@ -18995,7 +19183,7 @@ window.__ModuleLoader__.load({
18995
19183
  startTimeHelp: "Local time in {zone}, like 1912-04-14T23:40:00. Leave empty for the world's own start. Not used when the story follows the real clock.",
18996
19184
  loadingCharacters: "Loading characters…",
18997
19185
  charactersFailed: "Could not load the characters: {message}",
18998
- noPlayable: "This world has no playable characters, so a session cannot be started.",
19186
+ noPlayable: "This world has no playable character of its own. Bring one of your avatars to play it; make one on the Avatars tab first if you have none.",
18999
19187
  start: "Start",
19000
19188
  starting: "Starting…",
19001
19189
  cancel: "Cancel",
@@ -19015,6 +19203,15 @@ window.__ModuleLoader__.load({
19015
19203
  updateFromCard: "Update from card",
19016
19204
  updateReading: "Reading the card…",
19017
19205
  updateNotFromCard: "This world was not made from a character card, so a card cannot update it.",
19206
+ draftBadge: "Draft",
19207
+ draftWarning: "This import was written as a draft because the world would not start yet. Its problems:",
19208
+ draftAsk: "Ask the assistant to repair it",
19209
+ draftKeep: "Keep as it is",
19210
+ draftDiscard: "Discard",
19211
+ draftDiscardConfirm: "Discard this world? It goes to the trash folder of the roleplay root.",
19212
+ draftBusy: "Working…",
19213
+ draftFailed: "Could not do that: {message}",
19214
+ draftMore: "and {count} more",
19018
19215
  revertUpdate: "Undo card update",
19019
19216
  revertTitle: "Undo the last card update?",
19020
19217
  revertHelp: "The world goes back to how it was before the update, including the card it was made from. What it holds now is kept in the world's .trash folder, so changes you made since can still be found. Pictures are not part of this.",
@@ -19099,7 +19296,7 @@ window.__ModuleLoader__.load({
19099
19296
  startTimeHelp: "{zone} 的本地时间,例如 1912-04-14T23:40:00。留空则使用世界自带的开始时间。故事跟随真实时钟时不适用。",
19100
19297
  loadingCharacters: "正在加载角色…",
19101
19298
  charactersFailed: "无法加载角色:{message}",
19102
- noPlayable: "这张世界卡没有可扮演的角色,无法开始存档。",
19299
+ noPlayable: "这个世界自己没有可扮演的角色。请带上你的一个角色形象来扮演;如果还没有,先到“角色形象”标签页做一个。",
19103
19300
  start: "开始",
19104
19301
  starting: "正在开始…",
19105
19302
  cancel: "取消",
@@ -19119,6 +19316,15 @@ window.__ModuleLoader__.load({
19119
19316
  updateFromCard: "用角色卡更新",
19120
19317
  updateReading: "正在读取角色卡…",
19121
19318
  updateNotFromCard: "这个世界不是由角色卡导入的,无法用角色卡更新。",
19319
+ draftBadge: "草稿",
19320
+ draftWarning: "这次导入作为草稿写入,因为这个世界目前还无法开始。它的问题:",
19321
+ draftAsk: "请助手修复",
19322
+ draftKeep: "保持现状",
19323
+ draftDiscard: "丢弃",
19324
+ draftDiscardConfirm: "丢弃这个世界吗?它会被移到角色扮演根目录的回收文件夹。",
19325
+ draftBusy: "处理中…",
19326
+ draftFailed: "无法完成:{message}",
19327
+ draftMore: "还有 {count} 个",
19122
19328
  revertUpdate: "撤销卡片更新",
19123
19329
  revertTitle: "撤销上一次卡片更新?",
19124
19330
  revertHelp: "世界会回到更新之前的样子,包括它所依据的角色卡。现在的内容会保存在世界的 .trash 文件夹里,之后做的修改仍然可以找回。图片不在撤销范围内。",
@@ -19530,9 +19736,9 @@ window.__ModuleLoader__.load({
19530
19736
  tag$7.textContent = css$7;
19531
19737
  var BranchDialog_module_css_default = {
19532
19738
  "field": "rp_Dy1TaW_field",
19739
+ "form": "rp_Dy1TaW_form",
19533
19740
  "label": "rp_Dy1TaW_label",
19534
- "error": "rp_Dy1TaW_error",
19535
- "form": "rp_Dy1TaW_form"
19741
+ "error": "rp_Dy1TaW_error"
19536
19742
  };
19537
19743
  //#endregion
19538
19744
  //#region src/client/branch/BranchDialog.tsx
@@ -20001,17 +20207,17 @@ window.__ModuleLoader__.load({
20001
20207
  }
20002
20208
  tag$6.textContent = css$6;
20003
20209
  var SidebarPage_module_css_default = {
20004
- "page": "rp_Ptco8a_page",
20005
- "content": "rp_Ptco8a_content",
20006
- "name": "rp_Ptco8a_name",
20007
- "text": "rp_Ptco8a_text",
20210
+ "bar": "rp_Ptco8a_bar",
20211
+ "message": "rp_Ptco8a_message",
20008
20212
  "entry": "rp_Ptco8a_entry",
20009
- "title": "rp_Ptco8a_title",
20010
20213
  "main": "rp_Ptco8a_main",
20214
+ "name": "rp_Ptco8a_name",
20215
+ "page": "rp_Ptco8a_page",
20216
+ "content": "rp_Ptco8a_content",
20011
20217
  "icon": "rp_Ptco8a_icon",
20012
- "bar": "rp_Ptco8a_bar",
20013
- "description": "rp_Ptco8a_description",
20014
- "message": "rp_Ptco8a_message"
20218
+ "title": "rp_Ptco8a_title",
20219
+ "text": "rp_Ptco8a_text",
20220
+ "description": "rp_Ptco8a_description"
20015
20221
  };
20016
20222
  //#endregion
20017
20223
  //#region src/client/interface/SidebarPage.tsx
@@ -20339,28 +20545,28 @@ window.__ModuleLoader__.load({
20339
20545
  }
20340
20546
  tag$5.textContent = css$5;
20341
20547
  var ChatSettingsView_module_css_default = {
20342
- "table": "rp_wLpbxW_table",
20343
- "description": "rp_wLpbxW_description",
20344
- "title": "rp_wLpbxW_title",
20345
- "notice": "rp_wLpbxW_notice",
20346
- "help": "rp_wLpbxW_help",
20347
- "tableViewport": "rp_wLpbxW_tableViewport",
20348
- "select": "rp_wLpbxW_select",
20349
- "error": "rp_wLpbxW_error",
20350
- "reasons": "rp_wLpbxW_reasons",
20351
- "list": "rp_wLpbxW_list",
20352
20548
  "pre": "rp_wLpbxW_pre",
20353
- "saved": "rp_wLpbxW_saved",
20354
- "field": "rp_wLpbxW_field",
20355
- "link": "rp_wLpbxW_link",
20356
- "label": "rp_wLpbxW_label",
20549
+ "list": "rp_wLpbxW_list",
20357
20550
  "view": "rp_wLpbxW_view",
20551
+ "table": "rp_wLpbxW_table",
20552
+ "reasons": "rp_wLpbxW_reasons",
20358
20553
  "actions": "rp_wLpbxW_actions",
20554
+ "field": "rp_wLpbxW_field",
20555
+ "message": "rp_wLpbxW_message",
20556
+ "saved": "rp_wLpbxW_saved",
20557
+ "error": "rp_wLpbxW_error",
20359
20558
  "row": "rp_wLpbxW_row",
20360
- "activityBody": "rp_wLpbxW_activityBody",
20559
+ "label": "rp_wLpbxW_label",
20560
+ "notice": "rp_wLpbxW_notice",
20361
20561
  "run": "rp_wLpbxW_run",
20362
- "message": "rp_wLpbxW_message",
20363
- "activity": "rp_wLpbxW_activity"
20562
+ "description": "rp_wLpbxW_description",
20563
+ "link": "rp_wLpbxW_link",
20564
+ "title": "rp_wLpbxW_title",
20565
+ "tableViewport": "rp_wLpbxW_tableViewport",
20566
+ "activityBody": "rp_wLpbxW_activityBody",
20567
+ "select": "rp_wLpbxW_select",
20568
+ "activity": "rp_wLpbxW_activity",
20569
+ "help": "rp_wLpbxW_help"
20364
20570
  };
20365
20571
  //#endregion
20366
20572
  //#region src/client/chat-settings/settings-api.ts
@@ -22111,16 +22317,16 @@ window.__ModuleLoader__.load({
22111
22317
  }
22112
22318
  tag$4.textContent = css$4;
22113
22319
  var CatalogueSettings_module_css_default = {
22114
- "row": "rp_KPhXDa_row",
22115
22320
  "keyArea": "rp_KPhXDa_keyArea",
22321
+ "hint": "rp_KPhXDa_hint",
22116
22322
  "section": "rp_KPhXDa_section",
22117
22323
  "label": "rp_KPhXDa_label",
22324
+ "title": "rp_KPhXDa_title",
22325
+ "keyHint": "rp_KPhXDa_keyHint",
22118
22326
  "actions": "rp_KPhXDa_actions",
22327
+ "row": "rp_KPhXDa_row",
22119
22328
  "field": "rp_KPhXDa_field",
22120
- "hint": "rp_KPhXDa_hint",
22121
- "keyHint": "rp_KPhXDa_keyHint",
22122
- "problem": "rp_KPhXDa_problem",
22123
- "title": "rp_KPhXDa_title"
22329
+ "problem": "rp_KPhXDa_problem"
22124
22330
  };
22125
22331
  //#endregion
22126
22332
  //#region src/client/settings/AuthoringToolSettings.tsx
@@ -22228,13 +22434,29 @@ window.__ModuleLoader__.load({
22228
22434
  max: 2,
22229
22435
  placeholder: "0.2"
22230
22436
  },
22437
+ {
22438
+ field: "importStructuredOutput",
22439
+ group: "assistants",
22440
+ kind: "choice",
22441
+ choices: ["tool", "schema"],
22442
+ labels: ["importStructuredTool", "importStructuredSchema"],
22443
+ placeholder: "tool"
22444
+ },
22231
22445
  {
22232
22446
  field: "importMaxTokens",
22233
22447
  group: "assistants",
22234
22448
  kind: "integer",
22235
- min: 1e3,
22236
- max: 2e5,
22237
- placeholder: "16000"
22449
+ min: 0,
22450
+ max: 1e6,
22451
+ placeholder: "0"
22452
+ },
22453
+ {
22454
+ field: "importVariablesPerRequest",
22455
+ group: "assistants",
22456
+ kind: "integer",
22457
+ min: 5,
22458
+ max: 500,
22459
+ placeholder: "25"
22238
22460
  },
22239
22461
  {
22240
22462
  field: "importTimeoutMinutes",
@@ -22339,18 +22561,18 @@ window.__ModuleLoader__.load({
22339
22561
  }
22340
22562
  tag$3.textContent = css$3;
22341
22563
  var AssistantSettings_module_css_default = {
22564
+ "section": "rp_ZwzM4q_section",
22565
+ "invalid": "rp_ZwzM4q_invalid",
22342
22566
  "reset": "rp_ZwzM4q_reset",
22567
+ "title": "rp_ZwzM4q_title",
22568
+ "badges": "rp_ZwzM4q_badges",
22343
22569
  "fields": "rp_ZwzM4q_fields",
22344
- "field": "rp_ZwzM4q_field",
22345
22570
  "select": "rp_ZwzM4q_select",
22346
- "title": "rp_ZwzM4q_title",
22571
+ "hint": "rp_ZwzM4q_hint",
22347
22572
  "fieldHint": "rp_ZwzM4q_fieldHint",
22348
- "section": "rp_ZwzM4q_section",
22573
+ "field": "rp_ZwzM4q_field",
22349
22574
  "head": "rp_ZwzM4q_head",
22350
- "badges": "rp_ZwzM4q_badges",
22351
- "hint": "rp_ZwzM4q_hint",
22352
- "label": "rp_ZwzM4q_label",
22353
- "invalid": "rp_ZwzM4q_invalid"
22575
+ "label": "rp_ZwzM4q_label"
22354
22576
  };
22355
22577
  //#endregion
22356
22578
  //#region src/client/settings/AssistantSettings.tsx
@@ -23178,7 +23400,13 @@ window.__ModuleLoader__.load({
23178
23400
  importTemperatureLabel: "Temperature",
23179
23401
  importTemperatureHint: "How freely they write, from 0 to 2. Low, because they copy and sort what a card says. Default 0.2.",
23180
23402
  importMaxTokensLabel: "Most tokens per request",
23181
- importMaxTokensHint: "The most one model request of a helper may produce, thinking included. Default 16000.",
23403
+ importMaxTokensHint: "The most one model request of a helper may produce, thinking included. 0 (the default) is a tenth of the model's context window, at least 16000.",
23404
+ importStructuredOutputLabel: "How helpers give their result",
23405
+ importStructuredOutputHint: "Call a tool (works with every model), or reply with JSON the endpoint constrains to the result's shape (the model cannot ramble first; needs an OpenAI-compatible endpoint that takes a JSON schema, such as LocalAI, vLLM or OpenAI). Default: call a tool.",
23406
+ importStructuredTool: "Call a tool",
23407
+ importStructuredSchema: "Constrained JSON reply",
23408
+ importVariablesPerRequestLabel: "Tracked values per request",
23409
+ importVariablesPerRequestHint: "How many tracked values (meters, stats, flags) one request is asked to declare, 5 to 500. A card that tracks more is asked again for the rest. Default 25.",
23182
23410
  importTimeoutMinutesLabel: "Minutes before a helper is stopped",
23183
23411
  importTimeoutMinutesHint: "A helper that has not given its result after this long is stopped and the step reports why, so a run-away helper never holds an import for hours. 0 never stops it. Default 15.",
23184
23412
  importConcurrencyLabel: "Helpers at once",
@@ -23270,7 +23498,13 @@ window.__ModuleLoader__.load({
23270
23498
  importTemperatureLabel: "温度",
23271
23499
  importTemperatureHint: "它们写作的自由度,0 到 2。取低值,因为它们是在抄写和整理卡片的内容。默认 0.2。",
23272
23500
  importMaxTokensLabel: "每次请求的最大 token 数",
23273
- importMaxTokensHint: "助手一次模型请求最多产生的 token 数,包括思考。默认 16000。",
23501
+ importMaxTokensHint: "助手一次模型请求最多产生的 token 数,包括思考。0(默认)表示模型上下文窗口的十分之一,至少 16000。",
23502
+ importStructuredOutputLabel: "助手如何给出结果",
23503
+ importStructuredOutputHint: "调用工具(所有模型都可用),或用端点按结果结构约束的 JSON 回复(模型不会先写一大段分析;需要支持 JSON schema 的 OpenAI 兼容端点,如 LocalAI、vLLM 或 OpenAI)。默认:调用工具。",
23504
+ importStructuredTool: "调用工具",
23505
+ importStructuredSchema: "约束 JSON 回复",
23506
+ importVariablesPerRequestLabel: "每次请求声明的追踪数值数",
23507
+ importVariablesPerRequestHint: "一次请求最多要求声明多少个追踪数值(量表、属性、标记),5 到 500。追踪更多的卡片会再次询问其余的。默认 25。",
23274
23508
  importTimeoutMinutesLabel: "助手的时限(分钟)",
23275
23509
  importTimeoutMinutesHint: "助手超过这个时间仍没有给出结果就会被停止,该步骤会说明原因,因此失控的助手不会让导入卡上几个小时。0 表示不限制。默认 15。",
23276
23510
  importConcurrencyLabel: "同时运行的助手数",
@@ -23631,28 +23865,28 @@ window.__ModuleLoader__.load({
23631
23865
  }
23632
23866
  tag$2.textContent = css$2;
23633
23867
  var NarrationView_module_css_default = {
23634
- "oocLabel": "rp_NFPimG_oocLabel",
23635
- "oocRefused": "rp_NFPimG_oocRefused",
23636
- "imageButton": "rp_NFPimG_imageButton",
23637
- "imageStatus": "rp_NFPimG_imageStatus",
23638
- "line": "rp_NFPimG_line",
23639
- "output": "rp_NFPimG_output",
23640
- "imageError": "rp_NFPimG_imageError",
23641
- "note": "rp_NFPimG_note",
23642
- "dice": "rp_NFPimG_dice",
23643
23868
  "diceSummary": "rp_NFPimG_diceSummary",
23644
- "sceneImage": "rp_NFPimG_sceneImage",
23869
+ "words": "rp_NFPimG_words",
23870
+ "name": "rp_NFPimG_name",
23645
23871
  "playAll": "rp_NFPimG_playAll",
23646
23872
  "playLine": "rp_NFPimG_playLine",
23647
- "diceList": "rp_NFPimG_diceList",
23873
+ "line": "rp_NFPimG_line",
23648
23874
  "speech": "rp_NFPimG_speech",
23649
- "words": "rp_NFPimG_words",
23650
- "narration": "rp_NFPimG_narration",
23875
+ "preview": "rp_NFPimG_preview",
23876
+ "imageStatus": "rp_NFPimG_imageStatus",
23877
+ "note": "rp_NFPimG_note",
23878
+ "output": "rp_NFPimG_output",
23879
+ "imageError": "rp_NFPimG_imageError",
23651
23880
  "avatar": "rp_NFPimG_avatar",
23652
- "name": "rp_NFPimG_name",
23881
+ "oocNote": "rp_NFPimG_oocNote",
23653
23882
  "images": "rp_NFPimG_images",
23654
- "preview": "rp_NFPimG_preview",
23655
- "oocNote": "rp_NFPimG_oocNote"
23883
+ "oocRefused": "rp_NFPimG_oocRefused",
23884
+ "sceneImage": "rp_NFPimG_sceneImage",
23885
+ "imageButton": "rp_NFPimG_imageButton",
23886
+ "dice": "rp_NFPimG_dice",
23887
+ "narration": "rp_NFPimG_narration",
23888
+ "oocLabel": "rp_NFPimG_oocLabel",
23889
+ "diceList": "rp_NFPimG_diceList"
23656
23890
  };
23657
23891
  //#endregion
23658
23892
  //#region src/client/transcript/PreviewNode.tsx
@@ -23917,11 +24151,11 @@ window.__ModuleLoader__.load({
23917
24151
  }
23918
24152
  tag$1.textContent = css$1;
23919
24153
  var SuggestionsDock_module_css_default = {
23920
- "dock": "rp_rWH4DG_dock",
23921
- "card": "rp_rWH4DG_card",
23922
- "chip": "rp_rWH4DG_chip",
24154
+ "lines": "rp_rWH4DG_lines",
23923
24155
  "label": "rp_rWH4DG_label",
23924
- "lines": "rp_rWH4DG_lines"
24156
+ "chip": "rp_rWH4DG_chip",
24157
+ "dock": "rp_rWH4DG_dock",
24158
+ "card": "rp_rWH4DG_card"
23925
24159
  };
23926
24160
  //#endregion
23927
24161
  //#region src/client/transcript/SuggestionsDock.tsx
@@ -24041,12 +24275,12 @@ window.__ModuleLoader__.load({
24041
24275
  }
24042
24276
  tag.textContent = css;
24043
24277
  var TurnsDock_module_css_default = {
24044
- "dock": "rp_f4YLlq_dock",
24045
- "select": "rp_f4YLlq_select",
24046
24278
  "count": "rp_f4YLlq_count",
24047
- "group": "rp_f4YLlq_group",
24048
24279
  "button": "rp_f4YLlq_button",
24049
- "error": "rp_f4YLlq_error"
24280
+ "select": "rp_f4YLlq_select",
24281
+ "error": "rp_f4YLlq_error",
24282
+ "group": "rp_f4YLlq_group",
24283
+ "dock": "rp_f4YLlq_dock"
24050
24284
  };
24051
24285
  //#endregion
24052
24286
  //#region src/client/transcript/withdrawn.ts