@dsh-agentic-roleplay/core 0.3.0 → 0.3.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.
- package/lib/authoring.js +18 -223
- package/lib/client.js +903 -478
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +1 -1
- package/lib/{deliver--uMhC6oO.js → deliver-BDW5WZvc.js} +579 -195
- package/lib/{documents-7GMc5NnW.js → documents-DtlY2IRt.js} +857 -12
- package/lib/{gallery-DUeBMHQX.js → gallery-DACG5eh2.js} +2 -2
- package/lib/{generator-HPifO3Kk.js → generator-DGYcLMp7.js} +2 -2
- package/lib/images.js +3 -3
- package/lib/index.js +181 -11
- package/lib/{narration-CKZTk5UE.js → narration-5ig7Dg28.js} +3 -2
- package/lib/orchestration.js +366 -274
- package/lib/{packs-alJTiDM2.js → packs-CkRZDCsV.js} +49 -5
- package/lib/{presenter-agent-PX1WVaJB.js → presenter-agent-PK9JYExk.js} +3 -3
- package/package.json +4 -4
- package/packs/scene/strip.js +1 -1
- package/prompts/en/roleplay/character-decide.md +1 -1
- package/prompts/en/roleplay/character-rules.md +1 -1
- package/prompts/en/roleplay/chronicler.md +1 -1
- package/prompts/en/roleplay/game-master.md +1 -1
- package/prompts/en/roleplay/reflection.md +2 -2
- package/prompts/en/roleplay/style.md +1 -1
- package/prompts/en/roleplay/suggester.md +1 -1
- package/prompts/en/translate/document.md +6 -0
- package/prompts/en/translate/glossary.md +5 -0
- package/prompts/en/translate/notice.md +2 -0
- package/prompts/zh/roleplay/character-decide.md +1 -1
- package/prompts/zh/roleplay/character-rules.md +1 -1
- package/prompts/zh/roleplay/chronicler.md +1 -1
- package/prompts/zh/roleplay/game-master.md +1 -1
- package/prompts/zh/roleplay/reflection.md +2 -2
- package/prompts/zh/roleplay/style.md +1 -1
- package/prompts/zh/roleplay/suggester.md +1 -1
- package/prompts/zh/translate/document.md +6 -0
- package/prompts/zh/translate/glossary.md +5 -0
- package/prompts/zh/translate/notice.md +2 -0
package/lib/client.js
CHANGED
|
@@ -26,19 +26,19 @@ window.__ModuleLoader__.load({
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/PageTabs.module.css.mjs
|
|
29
|
-
const css$
|
|
30
|
-
const key$
|
|
31
|
-
let tag$
|
|
32
|
-
if (tag$
|
|
33
|
-
tag$
|
|
34
|
-
tag$
|
|
35
|
-
tag$
|
|
36
|
-
document.head.appendChild(tag$
|
|
37
|
-
}
|
|
38
|
-
tag$
|
|
29
|
+
const css$25 = ".rp_Poldga_tabs{scrollbar-width:none;gap:24px;margin-bottom:-1px;display:flex;overflow-x:auto}.rp_Poldga_tabs::-webkit-scrollbar{display:none}.rp_Poldga_tab{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:0;margin:0;padding:8px 0;font-size:13px;line-height:20px;box-shadow:inset 0 -2px #0000}.rp_Poldga_tab:hover{color:var(--dsw-alias-label-primary)}.rp_Poldga_tab[aria-selected=true]{color:var(--dsw-alias-state-business-primary);font-weight:500;box-shadow:inset 0 -2px}.rp_Poldga_tab:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}";
|
|
30
|
+
const key$25 = "src/client/panel/PageTabs.module.css";
|
|
31
|
+
let tag$25 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$25) + "]");
|
|
32
|
+
if (tag$25 === null) {
|
|
33
|
+
tag$25 = document.createElement("style");
|
|
34
|
+
tag$25.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
35
|
+
tag$25.dataset.pluginCss = key$25;
|
|
36
|
+
document.head.appendChild(tag$25);
|
|
37
|
+
}
|
|
38
|
+
tag$25.textContent = css$25;
|
|
39
39
|
var PageTabs_module_css_default = {
|
|
40
|
-
"
|
|
41
|
-
"
|
|
40
|
+
"tab": "rp_Poldga_tab",
|
|
41
|
+
"tabs": "rp_Poldga_tabs"
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/client/panel/PageTabs.tsx
|
|
@@ -82,21 +82,21 @@ window.__ModuleLoader__.load({
|
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/RoleplayPanel.module.css.mjs
|
|
85
|
-
const css$
|
|
86
|
-
const key$
|
|
87
|
-
let tag$
|
|
88
|
-
if (tag$
|
|
89
|
-
tag$
|
|
90
|
-
tag$
|
|
91
|
-
tag$
|
|
92
|
-
document.head.appendChild(tag$
|
|
85
|
+
const css$24 = ".rp_ua5gBa_panel{min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;display:flex}.rp_ua5gBa_header{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;padding:12px 24px 0}.rp_ua5gBa_title{margin:0 0 4px;font-size:14px;font-weight:500;line-height:22px}.rp_ua5gBa_body{flex-direction:column;flex:1 1 0;min-height:0;padding:12px 24px 16px;display:flex}@media (width<=640px){.rp_ua5gBa_header,.rp_ua5gBa_body{padding-inline:16px}}";
|
|
86
|
+
const key$24 = "src/client/panel/RoleplayPanel.module.css";
|
|
87
|
+
let tag$24 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$24) + "]");
|
|
88
|
+
if (tag$24 === null) {
|
|
89
|
+
tag$24 = document.createElement("style");
|
|
90
|
+
tag$24.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
91
|
+
tag$24.dataset.pluginCss = key$24;
|
|
92
|
+
document.head.appendChild(tag$24);
|
|
93
93
|
}
|
|
94
|
-
tag$
|
|
94
|
+
tag$24.textContent = css$24;
|
|
95
95
|
var RoleplayPanel_module_css_default = {
|
|
96
|
-
"panel": "rp_ua5gBa_panel",
|
|
97
96
|
"body": "rp_ua5gBa_body",
|
|
98
97
|
"title": "rp_ua5gBa_title",
|
|
99
|
-
"header": "rp_ua5gBa_header"
|
|
98
|
+
"header": "rp_ua5gBa_header",
|
|
99
|
+
"panel": "rp_ua5gBa_panel"
|
|
100
100
|
};
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/client/panel/RoleplayPanel.tsx
|
|
@@ -734,51 +734,51 @@ window.__ModuleLoader__.load({
|
|
|
734
734
|
const isDirty = (character, draft) => Object.keys(editOf$1(character, draft)).length > 0;
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CharactersPanel.module.css.mjs
|
|
737
|
-
const css$
|
|
738
|
-
const key$
|
|
739
|
-
let tag$
|
|
740
|
-
if (tag$
|
|
741
|
-
tag$
|
|
742
|
-
tag$
|
|
743
|
-
tag$
|
|
744
|
-
document.head.appendChild(tag$
|
|
737
|
+
const css$23 = ".rp_5ZMIxq_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5ZMIxq_tabs{border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;gap:4px;padding:0 24px;display:flex;overflow-x:auto}.rp_5ZMIxq_tab{font:inherit;white-space:nowrap;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;margin-bottom:-1px;padding:12px 10px 10px;font-size:13px;line-height:20px}.rp_5ZMIxq_tabOn{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_5ZMIxq_body{flex:1 1 0;min-height:0;overflow-y:auto}.rp_5ZMIxq_sheet{box-sizing:border-box;flex-direction:column;gap:20px;max-width:760px;padding:24px 24px 240px;display:flex}.rp_5ZMIxq_head{align-items:flex-start;gap:20px;display:flex}.rp_5ZMIxq_portrait{aspect-ratio:3/4;object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);width:150px;height:auto;display:block}.rp_5ZMIxq_portraitBox{border-radius:var(--dsw-radius-lg);width:150px;height:200px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:0 0 150px;padding:0;display:block;position:relative}.rp_5ZMIxq_portraitBox:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_5ZMIxq_portraitBox:disabled{cursor:not-allowed}.rp_5ZMIxq_portraitAction{box-sizing:border-box;border-radius:0 0 var(--dsw-radius-lg) var(--dsw-radius-lg);color:#fff;text-align:center;opacity:0;background:#0000009e;padding:7px 6px;font-size:12px;line-height:16px;transition:opacity .12s;position:absolute;bottom:1px;left:1px;right:1px}.rp_5ZMIxq_portraitBox:hover .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:focus-visible .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:disabled .rp_5ZMIxq_portraitAction{opacity:1}.rp_5ZMIxq_portraitError,.rp_5ZMIxq_portraitHint{margin:12px 24px 0;font-size:12px}.rp_5ZMIxq_portraitError{color:var(--dsw-alias-state-danger-primary)}.rp_5ZMIxq_portraitHint{color:var(--dsw-alias-label-secondary)}.rp_5ZMIxq_placeholder{box-sizing:border-box;color:var(--dsw-alias-label-secondary);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_initial{opacity:.6;font-size:48px;font-weight:500;line-height:1}.rp_5ZMIxq_missing{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_meta{flex-direction:column;flex:1 1 0;gap:10px;min-width:0;display:flex}.rp_5ZMIxq_section{border-top:.5px solid var(--dsw-alias-border-l4);flex-direction:column;gap:6px;padding-top:16px;display:flex}.rp_5ZMIxq_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:500;line-height:20px}.rp_5ZMIxq_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 24px;font-size:13px}.rp_5ZMIxq_section .rp_5ZMIxq_empty{padding:0}.rp_5ZMIxq_tabsSpace{flex:auto}.rp_5ZMIxq_voiceInline{min-width:220px;color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_5ZMIxq_bar{border-bottom:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);flex:none;justify-content:flex-end;align-items:center;gap:8px;padding:6px 24px;display:flex}.rp_5ZMIxq_barText{color:var(--dsw-alias-label-secondary);margin-right:auto;font-size:12px}.rp_5ZMIxq_nameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:var(--dsw-alias-label-primary);font:inherit;padding:4px 8px;font-size:14px;line-height:22px}.rp_5ZMIxq_row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px 12px;display:grid}.rp_5ZMIxq_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5ZMIxq_wide{grid-column:1/-1}.rp_5ZMIxq_label,.rp_5ZMIxq_help{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_5ZMIxq_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:4px 8px;font-size:13px}.rp_5ZMIxq_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:96px;color:inherit;font:inherit;resize:vertical;padding:6px 8px;font-size:13px;line-height:20px}.rp_5ZMIxq_goal{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);flex-direction:column;gap:8px;padding:10px;display:flex}.rp_5ZMIxq_row>.rp_5ZMIxq_select{width:auto;min-width:110px}.rp_5ZMIxq_select:focus-visible,.rp_5ZMIxq_area:focus-visible,.rp_5ZMIxq_nameInput:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_5ZMIxq_sheet{padding-inline:16px}.rp_5ZMIxq_head{flex-direction:column}.rp_5ZMIxq_portraitBox,.rp_5ZMIxq_portrait{width:120px}.rp_5ZMIxq_portraitBox{flex-basis:120px;height:160px}.rp_5ZMIxq_bar{flex-wrap:wrap;padding-inline:16px}.rp_5ZMIxq_voiceInline{width:100%;min-width:0}}";
|
|
738
|
+
const key$23 = "src/client/world-editor/CharactersPanel.module.css";
|
|
739
|
+
let tag$23 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$23) + "]");
|
|
740
|
+
if (tag$23 === null) {
|
|
741
|
+
tag$23 = document.createElement("style");
|
|
742
|
+
tag$23.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
743
|
+
tag$23.dataset.pluginCss = key$23;
|
|
744
|
+
document.head.appendChild(tag$23);
|
|
745
745
|
}
|
|
746
|
-
tag$
|
|
746
|
+
tag$23.textContent = css$23;
|
|
747
747
|
var CharactersPanel_module_css_default = {
|
|
748
|
-
"help": "rp_5ZMIxq_help",
|
|
749
|
-
"field": "rp_5ZMIxq_field",
|
|
750
|
-
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
751
|
-
"area": "rp_5ZMIxq_area",
|
|
752
|
-
"placeholder": "rp_5ZMIxq_placeholder",
|
|
753
|
-
"bar": "rp_5ZMIxq_bar",
|
|
754
748
|
"tabs": "rp_5ZMIxq_tabs",
|
|
749
|
+
"body": "rp_5ZMIxq_body",
|
|
750
|
+
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
751
|
+
"empty": "rp_5ZMIxq_empty",
|
|
752
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
753
|
+
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
755
754
|
"meta": "rp_5ZMIxq_meta",
|
|
756
|
-
"
|
|
755
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
756
|
+
"help": "rp_5ZMIxq_help",
|
|
757
|
+
"grid": "rp_5ZMIxq_grid",
|
|
757
758
|
"initial": "rp_5ZMIxq_initial",
|
|
759
|
+
"field": "rp_5ZMIxq_field",
|
|
760
|
+
"placeholder": "rp_5ZMIxq_placeholder",
|
|
758
761
|
"nameInput": "rp_5ZMIxq_nameInput",
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
"
|
|
762
|
-
"empty": "rp_5ZMIxq_empty",
|
|
763
|
-
"body": "rp_5ZMIxq_body",
|
|
762
|
+
"bar": "rp_5ZMIxq_bar",
|
|
763
|
+
"label": "rp_5ZMIxq_label",
|
|
764
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
764
765
|
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
766
|
+
"area": "rp_5ZMIxq_area",
|
|
767
|
+
"panel": "rp_5ZMIxq_panel",
|
|
768
|
+
"row": "rp_5ZMIxq_row",
|
|
769
|
+
"error": "rp_5ZMIxq_error",
|
|
770
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
771
|
+
"wide": "rp_5ZMIxq_wide",
|
|
772
|
+
"tab": "rp_5ZMIxq_tab",
|
|
765
773
|
"select": "rp_5ZMIxq_select",
|
|
766
|
-
"
|
|
767
|
-
"
|
|
768
|
-
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
769
|
-
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
774
|
+
"goal": "rp_5ZMIxq_goal",
|
|
775
|
+
"missing": "rp_5ZMIxq_missing",
|
|
770
776
|
"barText": "rp_5ZMIxq_barText",
|
|
771
|
-
"portraitError": "rp_5ZMIxq_portraitError",
|
|
772
|
-
"grid": "rp_5ZMIxq_grid",
|
|
773
|
-
"wide": "rp_5ZMIxq_wide",
|
|
774
|
-
"sheet": "rp_5ZMIxq_sheet",
|
|
775
|
-
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
776
|
-
"label": "rp_5ZMIxq_label",
|
|
777
777
|
"tabOn": "rp_5ZMIxq_tabOn",
|
|
778
|
-
"
|
|
779
|
-
"
|
|
780
|
-
"
|
|
781
|
-
"
|
|
778
|
+
"head": "rp_5ZMIxq_head",
|
|
779
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
780
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
781
|
+
"section": "rp_5ZMIxq_section"
|
|
782
782
|
};
|
|
783
783
|
//#endregion
|
|
784
784
|
//#region src/client/world-editor/EditorTabs.tsx
|
|
@@ -2379,50 +2379,50 @@ window.__ModuleLoader__.load({
|
|
|
2379
2379
|
}
|
|
2380
2380
|
//#endregion
|
|
2381
2381
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/RelationsPanel.module.css.mjs
|
|
2382
|
-
const css$
|
|
2383
|
-
const key$
|
|
2384
|
-
let tag$
|
|
2385
|
-
if (tag$
|
|
2386
|
-
tag$
|
|
2387
|
-
tag$
|
|
2388
|
-
tag$
|
|
2389
|
-
document.head.appendChild(tag$
|
|
2382
|
+
const css$22 = ".rp_7pEHTW_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex;position:relative}.rp_7pEHTW_toolbar{border-bottom:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:4px;padding:8px 16px;display:flex}.rp_7pEHTW_filter{border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:4px 10px}.rp_7pEHTW_filterOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_filter:focus-visible,.rp_7pEHTW_edge:focus-visible,.rp_7pEHTW_graphEdge:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}.rp_7pEHTW_space{flex:1}.rp_7pEHTW_perspective{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_7pEHTW_perspective select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);max-width:180px;min-height:32px;color:inherit;padding:4px 8px}.rp_7pEHTW_workspace{flex:1 1 0;grid-template-columns:minmax(220px,34%) minmax(320px,1fr);min-height:0;display:grid}.rp_7pEHTW_list{border-right:.5px solid var(--dsw-alias-border-l3);overflow-y:auto}.rp_7pEHTW_edge{border:0;border-bottom:.5px solid var(--dsw-alias-border-l4);width:100%;min-height:48px;color:inherit;text-align:left;cursor:pointer;background:0 0;flex-direction:column;gap:2px;padding:8px 16px;display:flex}.rp_7pEHTW_edgeOn{background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_edgeTitle{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rp_7pEHTW_edgeKind{color:var(--dsw-alias-label-tertiary);font-size:11px}.rp_7pEHTW_empty{color:var(--dsw-alias-label-tertiary);padding:20px}.rp_7pEHTW_inspector{min-width:0;padding:24px 24px 240px;overflow-y:auto}.rp_7pEHTW_head h2{margin:0 0 8px;font-size:17px}.rp_7pEHTW_entities{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:6px;display:flex}.rp_7pEHTW_notice{color:var(--dsw-alias-label-secondary);margin:24px 0}.rp_7pEHTW_form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;display:grid}.rp_7pEHTW_form label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:5px;font-size:12px;display:flex}.rp_7pEHTW_form select,.rp_7pEHTW_form textarea{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:32px;color:inherit;font:inherit;padding:6px 8px}.rp_7pEHTW_form textarea{resize:vertical;min-height:96px}.rp_7pEHTW_form select:focus-visible,.rp_7pEHTW_form textarea:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_7pEHTW_wide{grid-column:1/-1}.rp_7pEHTW_metrics{grid-column:1/-1;grid-template-columns:repeat(4,minmax(90px,1fr));gap:10px;display:grid}.rp_7pEHTW_check{align-self:end;align-items:center;min-height:32px;flex-direction:row!important}.rp_7pEHTW_actions{border-top:.5px solid var(--dsw-alias-border-l4);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:28px;padding-top:12px;display:flex}.rp_7pEHTW_status{color:var(--dsw-alias-label-secondary);margin-right:auto}.rp_7pEHTW_error{color:var(--dsw-alias-state-error-primary);margin-right:auto}.rp_7pEHTW_graph{background:radial-gradient(circle, var(--dsw-alias-bg-layer-2), transparent 70%);flex:1 1 0;min-height:360px;position:relative;overflow:hidden}.rp_7pEHTW_graph svg{width:100%;height:100%;min-height:520px}.rp_7pEHTW_graphEdge{cursor:pointer;stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_graphEdge:hover,.rp_7pEHTW_graphEdgeOn{stroke:var(--dsw-alias-state-business-primary);stroke-width:4px}.rp_7pEHTW_node circle{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_node_character circle{fill:color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_location circle{fill:color-mix(in srgb, #4a9 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_item circle{fill:color-mix(in srgb, #c90 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_faction circle{fill:color-mix(in srgb, #96c 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node text{fill:var(--dsw-alias-label-primary);pointer-events:none;font-size:11px}.rp_7pEHTW_graphInspector{box-sizing:border-box;border-radius:var(--dsw-radius-panel);background:var(--dsw-alias-bg-layer-1);width:min(480px,100% - 40px);max-height:62%;box-shadow:var(--dsw-elevation-panel);border:0;padding:18px;position:absolute;bottom:20px;right:20px;overflow-y:auto}@media (width<=760px){.rp_7pEHTW_workspace{grid-template-columns:1fr}.rp_7pEHTW_list{border-right:0;border-bottom:.5px solid var(--dsw-alias-border-l3);max-height:220px}.rp_7pEHTW_inspector{padding-inline:16px}.rp_7pEHTW_form{grid-template-columns:1fr}.rp_7pEHTW_wide,.rp_7pEHTW_metrics{grid-column:1}.rp_7pEHTW_metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rp_7pEHTW_graphInspector{width:calc(100% - 24px);bottom:12px;right:12px}}@media (pointer:coarse){.rp_7pEHTW_filter{min-height:44px}}";
|
|
2383
|
+
const key$22 = "src/client/world-editor/RelationsPanel.module.css";
|
|
2384
|
+
let tag$22 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$22) + "]");
|
|
2385
|
+
if (tag$22 === null) {
|
|
2386
|
+
tag$22 = document.createElement("style");
|
|
2387
|
+
tag$22.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
2388
|
+
tag$22.dataset.pluginCss = key$22;
|
|
2389
|
+
document.head.appendChild(tag$22);
|
|
2390
2390
|
}
|
|
2391
|
-
tag$
|
|
2391
|
+
tag$22.textContent = css$22;
|
|
2392
2392
|
var RelationsPanel_module_css_default = {
|
|
2393
|
-
"
|
|
2394
|
-
"check": "rp_7pEHTW_check",
|
|
2393
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
2395
2394
|
"head": "rp_7pEHTW_head",
|
|
2396
|
-
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
2397
|
-
"graph": "rp_7pEHTW_graph",
|
|
2398
2395
|
"space": "rp_7pEHTW_space",
|
|
2399
|
-
"
|
|
2396
|
+
"filter": "rp_7pEHTW_filter",
|
|
2397
|
+
"node_character": "rp_7pEHTW_node_character",
|
|
2398
|
+
"metrics": "rp_7pEHTW_metrics",
|
|
2399
|
+
"form": "rp_7pEHTW_form",
|
|
2400
|
+
"status": "rp_7pEHTW_status",
|
|
2400
2401
|
"node_item": "rp_7pEHTW_node_item",
|
|
2401
|
-
"list": "rp_7pEHTW_list",
|
|
2402
|
-
"node_faction": "rp_7pEHTW_node_faction",
|
|
2403
|
-
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
2404
|
-
"node_location": "rp_7pEHTW_node_location",
|
|
2405
|
-
"notice": "rp_7pEHTW_notice",
|
|
2406
|
-
"filterOn": "rp_7pEHTW_filterOn",
|
|
2407
|
-
"empty": "rp_7pEHTW_empty",
|
|
2408
|
-
"error": "rp_7pEHTW_error",
|
|
2409
|
-
"actions": "rp_7pEHTW_actions",
|
|
2410
2402
|
"toolbar": "rp_7pEHTW_toolbar",
|
|
2411
|
-
"
|
|
2403
|
+
"edge": "rp_7pEHTW_edge",
|
|
2404
|
+
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
2405
|
+
"check": "rp_7pEHTW_check",
|
|
2412
2406
|
"entities": "rp_7pEHTW_entities",
|
|
2407
|
+
"graph": "rp_7pEHTW_graph",
|
|
2408
|
+
"filterOn": "rp_7pEHTW_filterOn",
|
|
2413
2409
|
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
2410
|
+
"list": "rp_7pEHTW_list",
|
|
2411
|
+
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
2412
|
+
"actions": "rp_7pEHTW_actions",
|
|
2413
|
+
"error": "rp_7pEHTW_error",
|
|
2414
|
+
"wide": "rp_7pEHTW_wide",
|
|
2415
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
2414
2416
|
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
2415
|
-
"
|
|
2417
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
2418
|
+
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
2416
2419
|
"perspective": "rp_7pEHTW_perspective",
|
|
2420
|
+
"node_faction": "rp_7pEHTW_node_faction",
|
|
2421
|
+
"empty": "rp_7pEHTW_empty",
|
|
2417
2422
|
"panel": "rp_7pEHTW_panel",
|
|
2418
|
-
"edge": "rp_7pEHTW_edge",
|
|
2419
|
-
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
2420
|
-
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
2421
|
-
"form": "rp_7pEHTW_form",
|
|
2422
2423
|
"inspector": "rp_7pEHTW_inspector",
|
|
2423
|
-
"
|
|
2424
|
-
"
|
|
2425
|
-
"wide": "rp_7pEHTW_wide"
|
|
2424
|
+
"node": "rp_7pEHTW_node",
|
|
2425
|
+
"notice": "rp_7pEHTW_notice"
|
|
2426
2426
|
};
|
|
2427
2427
|
//#endregion
|
|
2428
2428
|
//#region src/client/world-editor/RelationsPanel.tsx
|
|
@@ -3739,23 +3739,23 @@ window.__ModuleLoader__.load({
|
|
|
3739
3739
|
};
|
|
3740
3740
|
//#endregion
|
|
3741
3741
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/pack-frame/PackFrame.module.css.mjs
|
|
3742
|
-
const css$
|
|
3743
|
-
const key$
|
|
3744
|
-
let tag$
|
|
3745
|
-
if (tag$
|
|
3746
|
-
tag$
|
|
3747
|
-
tag$
|
|
3748
|
-
tag$
|
|
3749
|
-
document.head.appendChild(tag$
|
|
3742
|
+
const css$21 = ".rp_h_sbFq_frame{background:0 0;border:0;width:100%;display:block}.rp_h_sbFq_fill{height:100%;min-height:0}.rp_h_sbFq_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px 24px;font-size:13px;line-height:20px}.rp_h_sbFq_problems{color:var(--dsw-alias-label-tertiary);margin:8px 0 0;padding-left:18px;font-size:12px}.rp_h_sbFq_hud{box-sizing:border-box;width:min(800px,100%);margin:0 auto 8px;padding:0 16px}.rp_h_sbFq_tab{flex-direction:column;flex:1 1 0;width:100%;min-height:0;display:flex}";
|
|
3743
|
+
const key$21 = "src/client/widgets/pack-frame/PackFrame.module.css";
|
|
3744
|
+
let tag$21 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$21) + "]");
|
|
3745
|
+
if (tag$21 === null) {
|
|
3746
|
+
tag$21 = document.createElement("style");
|
|
3747
|
+
tag$21.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
3748
|
+
tag$21.dataset.pluginCss = key$21;
|
|
3749
|
+
document.head.appendChild(tag$21);
|
|
3750
3750
|
}
|
|
3751
|
-
tag$
|
|
3751
|
+
tag$21.textContent = css$21;
|
|
3752
3752
|
var PackFrame_module_css_default = {
|
|
3753
|
-
"message": "rp_h_sbFq_message",
|
|
3754
|
-
"problems": "rp_h_sbFq_problems",
|
|
3755
|
-
"hud": "rp_h_sbFq_hud",
|
|
3756
3753
|
"fill": "rp_h_sbFq_fill",
|
|
3754
|
+
"problems": "rp_h_sbFq_problems",
|
|
3755
|
+
"message": "rp_h_sbFq_message",
|
|
3757
3756
|
"tab": "rp_h_sbFq_tab",
|
|
3758
|
-
"frame": "rp_h_sbFq_frame"
|
|
3757
|
+
"frame": "rp_h_sbFq_frame",
|
|
3758
|
+
"hud": "rp_h_sbFq_hud"
|
|
3759
3759
|
};
|
|
3760
3760
|
//#endregion
|
|
3761
3761
|
//#region src/client/widgets/pack-frame/theme.ts
|
|
@@ -3979,30 +3979,32 @@ window.__ModuleLoader__.load({
|
|
|
3979
3979
|
};
|
|
3980
3980
|
const loadRoutines = async (world, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/routines?${query(world)}`, init("GET", signal)));
|
|
3981
3981
|
const saveRoutine = async (world, key, windows, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/routines/item?${query(world)}&key=${encodeURIComponent(key)}`, init("PUT", signal, { windows })));
|
|
3982
|
+
const loadCalendar = async (world, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/calendar?${query(world)}`, init("GET", signal)));
|
|
3983
|
+
const saveCalendar = async (world, calendar, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/calendar?${query(world)}`, init("PUT", signal, calendar)));
|
|
3982
3984
|
const loadVariables = async (world, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/variables?${query(world)}`, init("GET", signal)));
|
|
3983
3985
|
const saveVariables = async (world, variables, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/variables?${query(world)}`, init("PUT", signal, { variables })));
|
|
3984
3986
|
const loadWorldPacks = async (world, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/interface?${query(world)}`, init("GET", signal)));
|
|
3985
3987
|
const loadPackPreview = async (world, pack, signal) => await read$2(await fetch(`${API_PREFIX}/worlds/interface/preview?${query(world)}&pack=${encodeURIComponent(pack)}`, init("GET", signal)));
|
|
3986
3988
|
//#endregion
|
|
3987
3989
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/PacksPanel.module.css.mjs
|
|
3988
|
-
const css$
|
|
3989
|
-
const key$
|
|
3990
|
-
let tag$
|
|
3991
|
-
if (tag$
|
|
3992
|
-
tag$
|
|
3993
|
-
tag$
|
|
3994
|
-
tag$
|
|
3995
|
-
document.head.appendChild(tag$
|
|
3990
|
+
const css$20 = ".rp_FLaP7q_controls{flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0;display:flex}.rp_FLaP7q_group{color:var(--dsw-alias-label-tertiary);align-items:center;gap:4px;font-size:12px;display:inline-flex}.rp_FLaP7q_stage{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-base);max-width:100%;overflow:hidden}.rp_FLaP7q_stageTall{height:420px}.rp_FLaP7q_log{color:var(--dsw-alias-label-secondary);margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_files{columns:2 220px;margin:4px 0 0;padding-left:16px;font-size:12px}.rp_FLaP7q_note{color:var(--dsw-alias-label-tertiary);font-size:12px}";
|
|
3991
|
+
const key$20 = "src/client/world-editor/PacksPanel.module.css";
|
|
3992
|
+
let tag$20 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$20) + "]");
|
|
3993
|
+
if (tag$20 === null) {
|
|
3994
|
+
tag$20 = document.createElement("style");
|
|
3995
|
+
tag$20.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
3996
|
+
tag$20.dataset.pluginCss = key$20;
|
|
3997
|
+
document.head.appendChild(tag$20);
|
|
3996
3998
|
}
|
|
3997
|
-
tag$
|
|
3999
|
+
tag$20.textContent = css$20;
|
|
3998
4000
|
var PacksPanel_module_css_default = {
|
|
3999
|
-
"note": "rp_FLaP7q_note",
|
|
4000
|
-
"stageTall": "rp_FLaP7q_stageTall",
|
|
4001
4001
|
"group": "rp_FLaP7q_group",
|
|
4002
|
-
"stage": "rp_FLaP7q_stage",
|
|
4003
|
-
"log": "rp_FLaP7q_log",
|
|
4004
4002
|
"controls": "rp_FLaP7q_controls",
|
|
4005
|
-
"
|
|
4003
|
+
"note": "rp_FLaP7q_note",
|
|
4004
|
+
"files": "rp_FLaP7q_files",
|
|
4005
|
+
"stage": "rp_FLaP7q_stage",
|
|
4006
|
+
"stageTall": "rp_FLaP7q_stageTall",
|
|
4007
|
+
"log": "rp_FLaP7q_log"
|
|
4006
4008
|
};
|
|
4007
4009
|
//#endregion
|
|
4008
4010
|
//#region src/client/world-editor/PacksPanel.tsx
|
|
@@ -4441,7 +4443,7 @@ window.__ModuleLoader__.load({
|
|
|
4441
4443
|
}
|
|
4442
4444
|
//#endregion
|
|
4443
4445
|
//#region src/client/world-editor/InfoPanel.tsx
|
|
4444
|
-
const draftOf$
|
|
4446
|
+
const draftOf$2 = (info) => ({
|
|
4445
4447
|
name: info.name,
|
|
4446
4448
|
description: info.description,
|
|
4447
4449
|
tags: info.tags.join(", "),
|
|
@@ -4488,8 +4490,8 @@ window.__ModuleLoader__.load({
|
|
|
4488
4490
|
const abort = new AbortController();
|
|
4489
4491
|
loadInfo(worldId, abort.signal).then((value) => {
|
|
4490
4492
|
setInfo(value);
|
|
4491
|
-
setSaved(draftOf$
|
|
4492
|
-
setDraft(draftOf$
|
|
4493
|
+
setSaved(draftOf$2(value));
|
|
4494
|
+
setDraft(draftOf$2(value));
|
|
4493
4495
|
}, (failure) => {
|
|
4494
4496
|
if (!abort.signal.aborted) setStatus({
|
|
4495
4497
|
state: "failed",
|
|
@@ -4525,8 +4527,8 @@ window.__ModuleLoader__.load({
|
|
|
4525
4527
|
setStatus({ state: "saving" });
|
|
4526
4528
|
saveInfo(worldId, edit, new AbortController().signal).then((value) => {
|
|
4527
4529
|
setInfo(value);
|
|
4528
|
-
setSaved(draftOf$
|
|
4529
|
-
setDraft(draftOf$
|
|
4530
|
+
setSaved(draftOf$2(value));
|
|
4531
|
+
setDraft(draftOf$2(value));
|
|
4530
4532
|
setStatus({ state: "saved" });
|
|
4531
4533
|
onSaved();
|
|
4532
4534
|
}, (failure) => {
|
|
@@ -5112,6 +5114,32 @@ window.__ModuleLoader__.load({
|
|
|
5112
5114
|
})
|
|
5113
5115
|
]
|
|
5114
5116
|
}),
|
|
5117
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
5118
|
+
className: `${CharactersPanel_module_css_default.field} ${CharactersPanel_module_css_default.wide}`,
|
|
5119
|
+
children: [
|
|
5120
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5121
|
+
className: CharactersPanel_module_css_default.label,
|
|
5122
|
+
children: t("routineOn")
|
|
5123
|
+
}),
|
|
5124
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
5125
|
+
className: CharactersPanel_module_css_default.nameInput,
|
|
5126
|
+
value: (window.on ?? []).join(", "),
|
|
5127
|
+
placeholder: "dec, 12-24, season:winter, !holiday:festival",
|
|
5128
|
+
onChange: (event) => {
|
|
5129
|
+
const on = event.target.value.split(",").map((part) => part.trim()).filter((part) => part !== "");
|
|
5130
|
+
const { on: _o, ...rest } = window;
|
|
5131
|
+
change(draft.map((item, at) => at === index ? {
|
|
5132
|
+
...rest,
|
|
5133
|
+
...on.length === 0 ? {} : { on }
|
|
5134
|
+
} : item));
|
|
5135
|
+
}
|
|
5136
|
+
}),
|
|
5137
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5138
|
+
className: CharactersPanel_module_css_default.help,
|
|
5139
|
+
children: t("routineOnHelp")
|
|
5140
|
+
})
|
|
5141
|
+
]
|
|
5142
|
+
}),
|
|
5115
5143
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
5116
5144
|
className: CharactersPanel_module_css_default.field,
|
|
5117
5145
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -5224,69 +5252,277 @@ window.__ModuleLoader__.load({
|
|
|
5224
5252
|
});
|
|
5225
5253
|
}
|
|
5226
5254
|
//#endregion
|
|
5227
|
-
//#region src/client/world-editor/
|
|
5228
|
-
const
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
description: "",
|
|
5236
|
-
min: "",
|
|
5237
|
-
max: "",
|
|
5238
|
-
integer: false,
|
|
5239
|
-
baseline: false,
|
|
5240
|
-
always: false,
|
|
5241
|
-
default: "",
|
|
5242
|
-
only: "",
|
|
5243
|
-
options: "",
|
|
5244
|
-
bands: ""
|
|
5245
|
-
};
|
|
5246
|
-
const draftOf = (value) => ({
|
|
5247
|
-
key: value.key,
|
|
5248
|
-
name: value.name,
|
|
5249
|
-
kind: value.kind,
|
|
5250
|
-
subject: value.subject,
|
|
5251
|
-
visibility: value.visibility,
|
|
5252
|
-
description: value.description ?? "",
|
|
5253
|
-
min: value.min === void 0 ? "" : String(value.min),
|
|
5254
|
-
max: value.max === void 0 ? "" : String(value.max),
|
|
5255
|
-
integer: value.integer === true,
|
|
5256
|
-
baseline: value.baseline === true,
|
|
5257
|
-
always: value.always === true,
|
|
5258
|
-
default: value.default === void 0 ? "" : String(value.default),
|
|
5259
|
-
only: (value.only ?? []).join(", "),
|
|
5260
|
-
options: (value.options ?? []).join(", "),
|
|
5261
|
-
bands: (value.bands ?? []).map((band) => `${band.up_to}: ${band.label}`).join("\n")
|
|
5255
|
+
//#region src/client/world-editor/CalendarPanel.tsx
|
|
5256
|
+
const draftOf$1 = (calendar) => ({
|
|
5257
|
+
hemisphere: calendar.hemisphere,
|
|
5258
|
+
holidays: calendar.holidays.map((holiday) => ({
|
|
5259
|
+
id: holiday.id,
|
|
5260
|
+
name: holiday.name,
|
|
5261
|
+
on: holiday.on.join(", ")
|
|
5262
|
+
}))
|
|
5262
5263
|
});
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5264
|
+
const documentOf = (draft) => ({
|
|
5265
|
+
hemisphere: draft.hemisphere,
|
|
5266
|
+
holidays: draft.holidays.map((holiday) => ({
|
|
5267
|
+
id: holiday.id.trim(),
|
|
5268
|
+
name: holiday.name.trim(),
|
|
5269
|
+
on: holiday.on.split(/[,,\n]/).map((day) => day.trim()).filter((day) => day !== "")
|
|
5270
|
+
}))
|
|
5271
|
+
});
|
|
5272
|
+
/** The calendar of a world: which hemisphere its seasons follow, and its holidays, each told by the days it falls on. */
|
|
5273
|
+
function CalendarPanel({ t, worldId, actions }) {
|
|
5274
|
+
const [saved, setSaved] = (0, react.useState)();
|
|
5275
|
+
const [draft, setDraft] = (0, react.useState)({
|
|
5276
|
+
hemisphere: "north",
|
|
5277
|
+
holidays: []
|
|
5274
5278
|
});
|
|
5275
|
-
const [
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5279
|
+
const [status, setStatus] = (0, react.useState)({ state: "idle" });
|
|
5280
|
+
(0, react.useEffect)(() => {
|
|
5281
|
+
const abort = new AbortController();
|
|
5282
|
+
loadCalendar(worldId, abort.signal).then((value) => {
|
|
5283
|
+
const next = draftOf$1(value);
|
|
5284
|
+
setSaved(next);
|
|
5285
|
+
setDraft(next);
|
|
5286
|
+
}, (failure) => {
|
|
5287
|
+
if (!abort.signal.aborted) setStatus({
|
|
5288
|
+
state: "failed",
|
|
5289
|
+
message: failure instanceof Error ? failure.message : String(failure)
|
|
5290
|
+
});
|
|
5291
|
+
});
|
|
5292
|
+
return () => {
|
|
5293
|
+
abort.abort();
|
|
5294
|
+
};
|
|
5295
|
+
}, [worldId]);
|
|
5296
|
+
if (saved === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
5297
|
+
className: CharactersPanel_module_css_default.empty,
|
|
5298
|
+
role: status.state === "failed" ? "alert" : void 0,
|
|
5299
|
+
children: status.state === "failed" ? t("saveFailed", { message: status.message ?? "" }) : t("editorLoading")
|
|
5300
|
+
});
|
|
5301
|
+
const dirty = JSON.stringify(documentOf(draft)) !== JSON.stringify(documentOf(saved));
|
|
5302
|
+
const change = (next) => {
|
|
5303
|
+
setDraft(next);
|
|
5304
|
+
setStatus({ state: "idle" });
|
|
5305
|
+
};
|
|
5306
|
+
const patch = (index, fields) => {
|
|
5307
|
+
change({
|
|
5308
|
+
...draft,
|
|
5309
|
+
holidays: draft.holidays.map((entry, at) => at === index ? {
|
|
5310
|
+
...entry,
|
|
5311
|
+
...fields
|
|
5312
|
+
} : entry)
|
|
5313
|
+
});
|
|
5314
|
+
};
|
|
5315
|
+
const save = () => {
|
|
5316
|
+
setStatus({ state: "saving" });
|
|
5317
|
+
saveCalendar(worldId, documentOf(draft), new AbortController().signal).then((value) => {
|
|
5318
|
+
const next = draftOf$1(value);
|
|
5319
|
+
setSaved(next);
|
|
5320
|
+
setDraft(next);
|
|
5321
|
+
setStatus({ state: "saved" });
|
|
5322
|
+
}, (failure) => {
|
|
5323
|
+
setStatus({
|
|
5324
|
+
state: "failed",
|
|
5325
|
+
message: failure instanceof Error ? failure.message : String(failure)
|
|
5326
|
+
});
|
|
5327
|
+
});
|
|
5328
|
+
};
|
|
5329
|
+
const field = (index, key, label, wide = false, placeholder) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
5330
|
+
className: `${CharactersPanel_module_css_default.field} ${wide ? CharactersPanel_module_css_default.wide : ""}`,
|
|
5331
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5332
|
+
className: CharactersPanel_module_css_default.label,
|
|
5333
|
+
children: t(label)
|
|
5334
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
5335
|
+
className: CharactersPanel_module_css_default.nameInput,
|
|
5336
|
+
value: draft.holidays[index][key],
|
|
5337
|
+
placeholder,
|
|
5338
|
+
onChange: (event) => {
|
|
5339
|
+
patch(index, { [key]: event.target.value });
|
|
5340
|
+
}
|
|
5341
|
+
})]
|
|
5342
|
+
});
|
|
5343
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5344
|
+
className: CharactersPanel_module_css_default.panel,
|
|
5345
|
+
"data-testid": "roleplay-calendar",
|
|
5346
|
+
children: [
|
|
5347
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5348
|
+
className: CharactersPanel_module_css_default.tabs,
|
|
5349
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: CharactersPanel_module_css_default.tabsSpace }), actions]
|
|
5350
|
+
}),
|
|
5351
|
+
(dirty || status.state !== "idle") && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5352
|
+
className: CharactersPanel_module_css_default.bar,
|
|
5353
|
+
role: "status",
|
|
5354
|
+
children: [
|
|
5355
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5356
|
+
className: status.state === "failed" ? CharactersPanel_module_css_default.error : CharactersPanel_module_css_default.barText,
|
|
5357
|
+
children: status.state === "failed" ? t("saveFailed", { message: status.message ?? "" }) : dirty ? t("unsaved") : t("saved")
|
|
5358
|
+
}),
|
|
5359
|
+
dirty && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5360
|
+
variant: "ghost",
|
|
5361
|
+
size: "sm",
|
|
5362
|
+
onClick: () => {
|
|
5363
|
+
setDraft(saved);
|
|
5364
|
+
setStatus({ state: "idle" });
|
|
5365
|
+
},
|
|
5366
|
+
children: t("reset")
|
|
5367
|
+
}),
|
|
5368
|
+
dirty && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5369
|
+
variant: "primary",
|
|
5370
|
+
size: "sm",
|
|
5371
|
+
disabled: status.state === "saving",
|
|
5372
|
+
onClick: save,
|
|
5373
|
+
children: status.state === "saving" ? t("saving") : t("save")
|
|
5374
|
+
})
|
|
5375
|
+
]
|
|
5376
|
+
}),
|
|
5377
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5378
|
+
className: CharactersPanel_module_css_default.body,
|
|
5379
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
|
|
5380
|
+
className: CharactersPanel_module_css_default.sheet,
|
|
5381
|
+
children: [
|
|
5382
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5383
|
+
className: CharactersPanel_module_css_default.help,
|
|
5384
|
+
children: t("calendarHelp")
|
|
5385
|
+
}),
|
|
5386
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("section", {
|
|
5387
|
+
className: CharactersPanel_module_css_default.section,
|
|
5388
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5389
|
+
className: CharactersPanel_module_css_default.grid,
|
|
5390
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
5391
|
+
className: CharactersPanel_module_css_default.field,
|
|
5392
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5393
|
+
className: CharactersPanel_module_css_default.label,
|
|
5394
|
+
children: t("calendarHemisphere")
|
|
5395
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
5396
|
+
value: draft.hemisphere,
|
|
5397
|
+
onChange: (event) => {
|
|
5398
|
+
change({
|
|
5399
|
+
...draft,
|
|
5400
|
+
hemisphere: event.target.value
|
|
5401
|
+
});
|
|
5402
|
+
},
|
|
5403
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
5404
|
+
value: "north",
|
|
5405
|
+
children: t("hemisphereNorth")
|
|
5406
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
5407
|
+
value: "south",
|
|
5408
|
+
children: t("hemisphereSouth")
|
|
5409
|
+
})]
|
|
5410
|
+
})]
|
|
5411
|
+
})
|
|
5412
|
+
})
|
|
5413
|
+
}),
|
|
5414
|
+
draft.holidays.map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("section", {
|
|
5415
|
+
className: CharactersPanel_module_css_default.section,
|
|
5416
|
+
"data-testid": "roleplay-holiday",
|
|
5417
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5418
|
+
className: CharactersPanel_module_css_default.grid,
|
|
5419
|
+
children: [
|
|
5420
|
+
field(index, "id", "holidayId"),
|
|
5421
|
+
field(index, "name", "holidayName"),
|
|
5422
|
+
field(index, "on", "holidayOn", true, "09-21, nth:fri:last"),
|
|
5423
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5424
|
+
variant: "ghost",
|
|
5425
|
+
size: "sm",
|
|
5426
|
+
onClick: () => {
|
|
5427
|
+
change({
|
|
5428
|
+
...draft,
|
|
5429
|
+
holidays: draft.holidays.filter((__, at) => at !== index)
|
|
5430
|
+
});
|
|
5431
|
+
},
|
|
5432
|
+
children: t("holidayRemove")
|
|
5433
|
+
})
|
|
5434
|
+
]
|
|
5435
|
+
})
|
|
5436
|
+
}, index)),
|
|
5437
|
+
draft.holidays.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
5438
|
+
className: CharactersPanel_module_css_default.empty,
|
|
5439
|
+
children: t("holidaysNone")
|
|
5440
|
+
}),
|
|
5441
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5442
|
+
variant: "ghost",
|
|
5443
|
+
size: "sm",
|
|
5444
|
+
onClick: () => {
|
|
5445
|
+
change({
|
|
5446
|
+
...draft,
|
|
5447
|
+
holidays: [...draft.holidays, {
|
|
5448
|
+
id: "",
|
|
5449
|
+
name: "",
|
|
5450
|
+
on: ""
|
|
5451
|
+
}]
|
|
5452
|
+
});
|
|
5453
|
+
},
|
|
5454
|
+
children: t("holidayAdd")
|
|
5455
|
+
})
|
|
5456
|
+
]
|
|
5457
|
+
})
|
|
5458
|
+
})
|
|
5459
|
+
]
|
|
5460
|
+
});
|
|
5461
|
+
}
|
|
5462
|
+
//#endregion
|
|
5463
|
+
//#region src/client/world-editor/variables-draft.ts
|
|
5464
|
+
const list = (value) => value.split(/[,,\n]/).map((entry) => entry.trim()).filter((entry) => entry !== "");
|
|
5465
|
+
const NEW = {
|
|
5466
|
+
key: "",
|
|
5467
|
+
name: "",
|
|
5468
|
+
kind: "number",
|
|
5469
|
+
subject: "character",
|
|
5470
|
+
visibility: "public",
|
|
5471
|
+
description: "",
|
|
5472
|
+
min: "",
|
|
5473
|
+
max: "",
|
|
5474
|
+
integer: false,
|
|
5475
|
+
baseline: false,
|
|
5476
|
+
always: false,
|
|
5477
|
+
default: "",
|
|
5478
|
+
only: "",
|
|
5479
|
+
options: "",
|
|
5480
|
+
bands: ""
|
|
5481
|
+
};
|
|
5482
|
+
const draftOf = (value) => ({
|
|
5483
|
+
key: value.key,
|
|
5484
|
+
name: value.name,
|
|
5485
|
+
kind: value.kind,
|
|
5486
|
+
subject: value.subject,
|
|
5487
|
+
visibility: value.visibility,
|
|
5488
|
+
description: value.description ?? "",
|
|
5489
|
+
min: value.min === void 0 ? "" : String(value.min),
|
|
5490
|
+
max: value.max === void 0 ? "" : String(value.max),
|
|
5491
|
+
integer: value.integer === true,
|
|
5492
|
+
baseline: value.baseline === true,
|
|
5493
|
+
always: value.always === true,
|
|
5494
|
+
default: value.default === void 0 ? "" : String(value.default),
|
|
5495
|
+
only: (value.only ?? []).join(", "),
|
|
5496
|
+
options: (value.options ?? []).join(", "),
|
|
5497
|
+
bands: (value.bands ?? []).map((band) => `${band.up_to}: ${band.label}`).join("\n")
|
|
5498
|
+
});
|
|
5499
|
+
/** The declaration as it will be sent: a default is a number, true/false or text according to the kind; bands are `up to: label` lines. */
|
|
5500
|
+
function declarationOf(draft) {
|
|
5501
|
+
const number = (text) => text.trim() === "" || !Number.isFinite(Number(text)) ? void 0 : Number(text);
|
|
5502
|
+
const defaultValue = draft.default.trim() === "" ? void 0 : draft.kind === "number" ? number(draft.default) ?? draft.default.trim() : draft.kind === "flag" ? draft.default.trim() === "true" : draft.default.trim();
|
|
5503
|
+
const bands = draft.bands.split("\n").flatMap((line) => {
|
|
5504
|
+
const at = line.indexOf(":");
|
|
5505
|
+
const upTo = at < 0 ? void 0 : number(line.slice(0, at));
|
|
5506
|
+
return upTo === void 0 ? [] : [{
|
|
5507
|
+
up_to: upTo,
|
|
5508
|
+
label: line.slice(at + 1).trim()
|
|
5509
|
+
}];
|
|
5510
|
+
});
|
|
5511
|
+
const [min, max, only, options] = [
|
|
5512
|
+
number(draft.min),
|
|
5513
|
+
number(draft.max),
|
|
5514
|
+
list(draft.only),
|
|
5515
|
+
list(draft.options)
|
|
5516
|
+
];
|
|
5517
|
+
return {
|
|
5518
|
+
key: draft.key.trim(),
|
|
5519
|
+
name: draft.name.trim(),
|
|
5520
|
+
kind: draft.kind,
|
|
5521
|
+
subject: draft.subject,
|
|
5522
|
+
visibility: draft.visibility,
|
|
5523
|
+
...draft.description.trim() === "" ? {} : { description: draft.description.trim() },
|
|
5524
|
+
...draft.kind === "number" && min !== void 0 ? { min } : {},
|
|
5525
|
+
...draft.kind === "number" && max !== void 0 ? { max } : {},
|
|
5290
5526
|
...draft.kind === "number" && draft.integer ? { integer: true } : {},
|
|
5291
5527
|
...draft.baseline ? { baseline: true } : {},
|
|
5292
5528
|
...draft.always ? { always: true } : {},
|
|
@@ -5654,46 +5890,46 @@ window.__ModuleLoader__.load({
|
|
|
5654
5890
|
const imageUrl = (target, image) => `${route(target, "/file")}&path=${encodeURIComponent(image.path)}&v=${encodeURIComponent(image.createdAt)}`;
|
|
5655
5891
|
//#endregion
|
|
5656
5892
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/gallery-view/GalleryView.module.css.mjs
|
|
5657
|
-
const css$
|
|
5658
|
-
const key$
|
|
5659
|
-
let tag$
|
|
5660
|
-
if (tag$
|
|
5661
|
-
tag$
|
|
5662
|
-
tag$
|
|
5663
|
-
tag$
|
|
5664
|
-
document.head.appendChild(tag$
|
|
5893
|
+
const css$19 = ".rp_9pSHmG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;padding:16px 24px;display:flex;overflow-y:auto}.rp_9pSHmG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.rp_9pSHmG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_9pSHmG_select{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);height:32px;font:inherit;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);padding:0 8px;font-size:12px}.rp_9pSHmG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_9pSHmG_cell{min-width:0}.rp_9pSHmG_thumb{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;flex-direction:column;padding:0;display:flex;overflow:hidden}.rp_9pSHmG_open{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}.rp_9pSHmG_thumb:hover{border-color:var(--dsw-alias-border-l4)}.rp_9pSHmG_image{aspect-ratio:1;object-fit:cover;background:var(--dsw-alias-bg-layer-3);width:100%;display:block}.rp_9pSHmG_caption{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-secondary);padding:6px 8px;font-size:12px;overflow:hidden}.rp_9pSHmG_detail{flex-direction:column;gap:12px;width:min(640px,100%);max-height:70vh;display:flex;overflow-y:auto}.rp_9pSHmG_large{border-radius:var(--dsw-radius-lg);object-fit:contain;max-width:100%;max-height:32vh;margin:0 auto;display:block}.rp_9pSHmG_facts{grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.rp_9pSHmG_facts dt{color:var(--dsw-alias-label-tertiary)}.rp_9pSHmG_facts dd{min-width:0;color:var(--dsw-alias-label-primary);margin:0}.rp_9pSHmG_pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}.rp_9pSHmG_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_9pSHmG_note{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_9pSHmG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_9pSHmG_status,.rp_9pSHmG_statusError{color:var(--dsw-alias-label-tertiary);padding:0 8px 6px;font-size:11px;line-height:16px}.rp_9pSHmG_statusError{color:var(--dsw-alias-state-error-primary)}.rp_9pSHmG_reusable{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:0 8px 6px;font-size:11px;display:flex}.rp_9pSHmG_reusable input{accent-color:var(--dsw-alias-state-business-primary);margin:0}.rp_9pSHmG_editButton{font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;margin:0 8px 4px;padding:0;font-size:11px}.rp_9pSHmG_edit{flex-direction:column;gap:12px;width:min(480px,100%);display:flex}.rp_9pSHmG_editField{flex-direction:column;gap:4px;display:flex}.rp_9pSHmG_editLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_9pSHmG_editHelp{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_editArea,.rp_9pSHmG_editInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}.rp_9pSHmG_editArea{resize:vertical;min-height:96px}.rp_9pSHmG_editArea:focus-visible,.rp_9pSHmG_editInput:focus-visible,.rp_9pSHmG_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}@media (width<=640px){.rp_9pSHmG_page{padding-inline:16px}.rp_9pSHmG_toolbar{align-items:flex-start}.rp_9pSHmG_grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))}}";
|
|
5894
|
+
const key$19 = "src/client/widgets/gallery-view/GalleryView.module.css";
|
|
5895
|
+
let tag$19 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$19) + "]");
|
|
5896
|
+
if (tag$19 === null) {
|
|
5897
|
+
tag$19 = document.createElement("style");
|
|
5898
|
+
tag$19.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
5899
|
+
tag$19.dataset.pluginCss = key$19;
|
|
5900
|
+
document.head.appendChild(tag$19);
|
|
5665
5901
|
}
|
|
5666
|
-
tag$
|
|
5902
|
+
tag$19.textContent = css$19;
|
|
5667
5903
|
var GalleryView_module_css_default = {
|
|
5668
|
-
"caption": "rp_9pSHmG_caption",
|
|
5669
|
-
"thumb": "rp_9pSHmG_thumb",
|
|
5670
|
-
"message": "rp_9pSHmG_message",
|
|
5671
5904
|
"editField": "rp_9pSHmG_editField",
|
|
5905
|
+
"large": "rp_9pSHmG_large",
|
|
5906
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
5907
|
+
"count": "rp_9pSHmG_count",
|
|
5908
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
5909
|
+
"message": "rp_9pSHmG_message",
|
|
5672
5910
|
"facts": "rp_9pSHmG_facts",
|
|
5673
|
-
"
|
|
5674
|
-
"
|
|
5675
|
-
"editHelp": "rp_9pSHmG_editHelp",
|
|
5676
|
-
"status": "rp_9pSHmG_status",
|
|
5911
|
+
"image": "rp_9pSHmG_image",
|
|
5912
|
+
"select": "rp_9pSHmG_select",
|
|
5677
5913
|
"reusable": "rp_9pSHmG_reusable",
|
|
5678
|
-
"
|
|
5679
|
-
"page": "rp_9pSHmG_page",
|
|
5680
|
-
"pre": "rp_9pSHmG_pre",
|
|
5681
|
-
"actions": "rp_9pSHmG_actions",
|
|
5914
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
5682
5915
|
"error": "rp_9pSHmG_error",
|
|
5683
|
-
"
|
|
5684
|
-
"
|
|
5916
|
+
"pre": "rp_9pSHmG_pre",
|
|
5917
|
+
"editHelp": "rp_9pSHmG_editHelp",
|
|
5918
|
+
"caption": "rp_9pSHmG_caption",
|
|
5919
|
+
"detail": "rp_9pSHmG_detail",
|
|
5920
|
+
"editInput": "rp_9pSHmG_editInput",
|
|
5685
5921
|
"tags": "rp_9pSHmG_tags",
|
|
5922
|
+
"editArea": "rp_9pSHmG_editArea",
|
|
5923
|
+
"page": "rp_9pSHmG_page",
|
|
5924
|
+
"grid": "rp_9pSHmG_grid",
|
|
5925
|
+
"thumb": "rp_9pSHmG_thumb",
|
|
5926
|
+
"cell": "rp_9pSHmG_cell",
|
|
5686
5927
|
"note": "rp_9pSHmG_note",
|
|
5687
|
-
"
|
|
5688
|
-
"
|
|
5689
|
-
"image": "rp_9pSHmG_image",
|
|
5690
|
-
"select": "rp_9pSHmG_select",
|
|
5928
|
+
"actions": "rp_9pSHmG_actions",
|
|
5929
|
+
"open": "rp_9pSHmG_open",
|
|
5691
5930
|
"edit": "rp_9pSHmG_edit",
|
|
5692
5931
|
"statusError": "rp_9pSHmG_statusError",
|
|
5693
|
-
"
|
|
5694
|
-
"grid": "rp_9pSHmG_grid",
|
|
5695
|
-
"detail": "rp_9pSHmG_detail",
|
|
5696
|
-
"cell": "rp_9pSHmG_cell"
|
|
5932
|
+
"status": "rp_9pSHmG_status"
|
|
5697
5933
|
};
|
|
5698
5934
|
//#endregion
|
|
5699
5935
|
//#region src/client/widgets/gallery-view/GalleryView.tsx
|
|
@@ -6023,24 +6259,24 @@ window.__ModuleLoader__.load({
|
|
|
6023
6259
|
}
|
|
6024
6260
|
//#endregion
|
|
6025
6261
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/WorldEditor.module.css.mjs
|
|
6026
|
-
const css$
|
|
6027
|
-
const key$
|
|
6028
|
-
let tag$
|
|
6029
|
-
if (tag$
|
|
6030
|
-
tag$
|
|
6031
|
-
tag$
|
|
6032
|
-
tag$
|
|
6033
|
-
document.head.appendChild(tag$
|
|
6262
|
+
const css$18 = ".rp__swA3a_view{flex:1 1 0;width:100%;min-height:0;display:flex}.rp__swA3a_message{color:var(--dsw-alias-label-secondary);margin:0;padding:24px;font-size:13px}.rp__swA3a_warning{color:var(--dsw-alias-label-primary);border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);margin:0 0 12px;padding:8px 12px;font-size:13px}.rp__swA3a_drawer{box-sizing:border-box;border-right:.5px solid var(--dsw-alias-border-l3);flex-direction:column;flex:0 0 168px;gap:2px;padding:16px 8px;display:flex}.rp__swA3a_drawerItem{border-radius:var(--dsw-radius-md);width:100%;font:inherit;text-align:left;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:6px 12px;font-size:13px;line-height:20px;display:block}@media (width<=720px){.rp__swA3a_view{flex-direction:column}.rp__swA3a_drawer{border-right:0;border-bottom:.5px solid var(--dsw-alias-border-l3);flex-direction:row;flex:none;width:100%;padding:8px;overflow-x:auto}.rp__swA3a_drawerItem{white-space:nowrap;flex:none;width:auto}}.rp__swA3a_drawerItem:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.rp__swA3a_drawerItemOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2);font-weight:500}.rp__swA3a_content{flex-direction:column;flex:1 1 0;min-width:0;min-height:0;display:flex}";
|
|
6263
|
+
const key$18 = "src/client/world-editor/WorldEditor.module.css";
|
|
6264
|
+
let tag$18 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$18) + "]");
|
|
6265
|
+
if (tag$18 === null) {
|
|
6266
|
+
tag$18 = document.createElement("style");
|
|
6267
|
+
tag$18.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
6268
|
+
tag$18.dataset.pluginCss = key$18;
|
|
6269
|
+
document.head.appendChild(tag$18);
|
|
6034
6270
|
}
|
|
6035
|
-
tag$
|
|
6271
|
+
tag$18.textContent = css$18;
|
|
6036
6272
|
var WorldEditor_module_css_default = {
|
|
6273
|
+
"drawerItem": "rp__swA3a_drawerItem",
|
|
6037
6274
|
"view": "rp__swA3a_view",
|
|
6038
|
-
"drawer": "rp__swA3a_drawer",
|
|
6039
6275
|
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
6040
|
-
"drawerItem": "rp__swA3a_drawerItem",
|
|
6041
6276
|
"content": "rp__swA3a_content",
|
|
6042
6277
|
"warning": "rp__swA3a_warning",
|
|
6043
|
-
"message": "rp__swA3a_message"
|
|
6278
|
+
"message": "rp__swA3a_message",
|
|
6279
|
+
"drawer": "rp__swA3a_drawer"
|
|
6044
6280
|
};
|
|
6045
6281
|
//#endregion
|
|
6046
6282
|
//#region src/client/world-editor/WorldEditor.tsx
|
|
@@ -6097,6 +6333,12 @@ window.__ModuleLoader__.load({
|
|
|
6097
6333
|
built: true,
|
|
6098
6334
|
ownFiles: true
|
|
6099
6335
|
},
|
|
6336
|
+
{
|
|
6337
|
+
id: "calendar",
|
|
6338
|
+
label: "sectionCalendar",
|
|
6339
|
+
built: true,
|
|
6340
|
+
ownFiles: true
|
|
6341
|
+
},
|
|
6100
6342
|
{
|
|
6101
6343
|
id: "variables",
|
|
6102
6344
|
label: "sectionVariables",
|
|
@@ -6234,6 +6476,17 @@ window.__ModuleLoader__.load({
|
|
|
6234
6476
|
children: t("editorRefresh")
|
|
6235
6477
|
})
|
|
6236
6478
|
}),
|
|
6479
|
+
section === "calendar" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarPanel, {
|
|
6480
|
+
t,
|
|
6481
|
+
worldId: source.worldId,
|
|
6482
|
+
actions: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
6483
|
+
variant: "ghost",
|
|
6484
|
+
size: "sm",
|
|
6485
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, {}),
|
|
6486
|
+
onClick: refresh,
|
|
6487
|
+
children: t("editorRefresh")
|
|
6488
|
+
})
|
|
6489
|
+
}),
|
|
6237
6490
|
section === "variables" && source.worldId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VariablesPanel, {
|
|
6238
6491
|
t,
|
|
6239
6492
|
worldId: source.worldId,
|
|
@@ -6372,38 +6625,38 @@ window.__ModuleLoader__.load({
|
|
|
6372
6625
|
}
|
|
6373
6626
|
//#endregion
|
|
6374
6627
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/avatars/AvatarsPage.module.css.mjs
|
|
6375
|
-
const css$
|
|
6376
|
-
const key$
|
|
6377
|
-
let tag$
|
|
6378
|
-
if (tag$
|
|
6379
|
-
tag$
|
|
6380
|
-
tag$
|
|
6381
|
-
tag$
|
|
6382
|
-
document.head.appendChild(tag$
|
|
6628
|
+
const css$17 = ".rp_pQOzEG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_pQOzEG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_pQOzEG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_pQOzEG_actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_pQOzEG_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_pQOzEG_grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_pQOzEG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);align-items:center;gap:4px;min-width:0;padding-right:8px;display:flex}.rp_pQOzEG_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_pQOzEG_open{min-width:0;font:inherit;text-align:left;color:inherit;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:12px;padding:10px 0 10px 10px;display:flex}.rp_pQOzEG_open:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_pQOzEG_portrait,.rp_pQOzEG_placeholder{border-radius:var(--dsw-radius-lg);object-fit:cover;flex:none;width:48px;height:48px}.rp_pQOzEG_placeholder{color:var(--dsw-alias-label-secondary);justify-content:center;align-items:center;font-size:20px;font-weight:500;display:flex}.rp_pQOzEG_text{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_pQOzEG_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_pQOzEG_summary{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.rp_pQOzEG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_pQOzEG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_pQOzEG_editHeader{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_pQOzEG_editTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_pQOzEG_editBody{flex:1 1 0;min-height:0;display:flex}.rp_pQOzEG_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_pQOzEG_field{flex-direction:column;gap:6px;min-width:0;display:flex}.rp_pQOzEG_label{color:var(--dsw-alias-label-secondary);font-size:12px}@media (width<=640px){.rp_pQOzEG_toolbar{align-items:flex-start}.rp_pQOzEG_count{padding-top:6px}.rp_pQOzEG_grid{grid-template-columns:1fr}.rp_pQOzEG_form{min-width:0}}";
|
|
6629
|
+
const key$17 = "src/client/pages/avatars/AvatarsPage.module.css";
|
|
6630
|
+
let tag$17 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$17) + "]");
|
|
6631
|
+
if (tag$17 === null) {
|
|
6632
|
+
tag$17 = document.createElement("style");
|
|
6633
|
+
tag$17.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
6634
|
+
tag$17.dataset.pluginCss = key$17;
|
|
6635
|
+
document.head.appendChild(tag$17);
|
|
6383
6636
|
}
|
|
6384
|
-
tag$
|
|
6637
|
+
tag$17.textContent = css$17;
|
|
6385
6638
|
var AvatarsPage_module_css_default = {
|
|
6386
6639
|
"text": "rp_pQOzEG_text",
|
|
6387
|
-
"open": "rp_pQOzEG_open",
|
|
6388
|
-
"portrait": "rp_pQOzEG_portrait",
|
|
6389
|
-
"form": "rp_pQOzEG_form",
|
|
6390
|
-
"field": "rp_pQOzEG_field",
|
|
6391
6640
|
"name": "rp_pQOzEG_name",
|
|
6392
|
-
"
|
|
6393
|
-
"
|
|
6394
|
-
"label": "rp_pQOzEG_label",
|
|
6641
|
+
"editHeader": "rp_pQOzEG_editHeader",
|
|
6642
|
+
"grid": "rp_pQOzEG_grid",
|
|
6395
6643
|
"editBody": "rp_pQOzEG_editBody",
|
|
6396
6644
|
"viewport": "rp_pQOzEG_viewport",
|
|
6397
|
-
"
|
|
6398
|
-
"placeholder": "rp_pQOzEG_placeholder",
|
|
6399
|
-
"count": "rp_pQOzEG_count",
|
|
6400
|
-
"actions": "rp_pQOzEG_actions",
|
|
6401
|
-
"card": "rp_pQOzEG_card",
|
|
6402
|
-
"error": "rp_pQOzEG_error",
|
|
6645
|
+
"portrait": "rp_pQOzEG_portrait",
|
|
6403
6646
|
"page": "rp_pQOzEG_page",
|
|
6404
|
-
"
|
|
6647
|
+
"count": "rp_pQOzEG_count",
|
|
6648
|
+
"message": "rp_pQOzEG_message",
|
|
6649
|
+
"open": "rp_pQOzEG_open",
|
|
6405
6650
|
"editTitle": "rp_pQOzEG_editTitle",
|
|
6406
|
-
"
|
|
6651
|
+
"card": "rp_pQOzEG_card",
|
|
6652
|
+
"form": "rp_pQOzEG_form",
|
|
6653
|
+
"actions": "rp_pQOzEG_actions",
|
|
6654
|
+
"field": "rp_pQOzEG_field",
|
|
6655
|
+
"label": "rp_pQOzEG_label",
|
|
6656
|
+
"toolbar": "rp_pQOzEG_toolbar",
|
|
6657
|
+
"placeholder": "rp_pQOzEG_placeholder",
|
|
6658
|
+
"summary": "rp_pQOzEG_summary",
|
|
6659
|
+
"error": "rp_pQOzEG_error"
|
|
6407
6660
|
};
|
|
6408
6661
|
//#endregion
|
|
6409
6662
|
//#region src/client/pages/avatars/AvatarsPage.tsx
|
|
@@ -6777,6 +7030,17 @@ window.__ModuleLoader__.load({
|
|
|
6777
7030
|
infoOpening: "Opening message",
|
|
6778
7031
|
infoOpeningHelp: "What the story begins with, before the player says anything. Leave empty for none.",
|
|
6779
7032
|
infoOpeningParts: "This opening has lines spoken by characters, so it cannot be edited here as plain text. Change it in the file, or ask the authoring assistant.",
|
|
7033
|
+
sectionCalendar: "Calendar",
|
|
7034
|
+
calendarHelp: "The seasons follow the hemisphere, and a holiday is told by the days it falls on: a date (09-21), a span (12-20..01-05), a weekday of the month (nth:fri:last), a month or a season. Routines, triggers and the time shown to the models can name a holiday with holiday:<id>.",
|
|
7035
|
+
calendarHemisphere: "Seasons follow",
|
|
7036
|
+
hemisphereNorth: "The northern hemisphere",
|
|
7037
|
+
hemisphereSouth: "The southern hemisphere",
|
|
7038
|
+
holidayId: "Id",
|
|
7039
|
+
holidayName: "Name",
|
|
7040
|
+
holidayOn: "Days",
|
|
7041
|
+
holidayAdd: "Add a holiday",
|
|
7042
|
+
holidayRemove: "Remove",
|
|
7043
|
+
holidaysNone: "This world names no holidays.",
|
|
6780
7044
|
sectionRoutines: "Daily life",
|
|
6781
7045
|
sectionVariables: "Tracked values",
|
|
6782
7046
|
routinesNoCharacters: "This world has no characters yet.",
|
|
@@ -6785,6 +7049,8 @@ window.__ModuleLoader__.load({
|
|
|
6785
7049
|
routineTo: "Until",
|
|
6786
7050
|
routineActivity: "Activity",
|
|
6787
7051
|
routineDays: "Days",
|
|
7052
|
+
routineOn: "Other days",
|
|
7053
|
+
routineOnHelp: "Months (dec), dates (12-24), stretches (12-20..01-05), dom:1, nth:mon:1 (first Monday), season:winter, holiday:<id> of the world's calendar.json; a ! before one leaves that day out. Empty means no restriction.",
|
|
6788
7054
|
routineDaysHelp: "None ticked means every day. A window that ends before it starts runs past midnight.",
|
|
6789
7055
|
routinePlace: "Place",
|
|
6790
7056
|
routineNoPlace: "None",
|
|
@@ -7035,6 +7301,17 @@ window.__ModuleLoader__.load({
|
|
|
7035
7301
|
infoOpening: "开场白",
|
|
7036
7302
|
infoOpeningHelp: "玩家开口之前故事的开头。留空表示没有。",
|
|
7037
7303
|
infoOpeningParts: "这段开场白含有角色说的话,因此不能在这里按纯文本编辑。请在文件中修改,或请创作助手处理。",
|
|
7304
|
+
sectionCalendar: "日历",
|
|
7305
|
+
calendarHelp: "季节随半球而定;节日用它所在的日子来表示:某个日期(09-21)、一段日期(12-20..01-05)、某月的第几个星期几(nth:fri:last)、整个月或某个季节。日常、触发器和提供给模型的时间都可以用 holiday:<id> 引用节日。",
|
|
7306
|
+
calendarHemisphere: "季节依据",
|
|
7307
|
+
hemisphereNorth: "北半球",
|
|
7308
|
+
hemisphereSouth: "南半球",
|
|
7309
|
+
holidayId: "标识",
|
|
7310
|
+
holidayName: "名称",
|
|
7311
|
+
holidayOn: "日子",
|
|
7312
|
+
holidayAdd: "添加节日",
|
|
7313
|
+
holidayRemove: "删除",
|
|
7314
|
+
holidaysNone: "这个世界没有设定节日。",
|
|
7038
7315
|
sectionRoutines: "日常",
|
|
7039
7316
|
sectionVariables: "追踪数值",
|
|
7040
7317
|
routinesNoCharacters: "这个世界还没有角色。",
|
|
@@ -7043,6 +7320,8 @@ window.__ModuleLoader__.load({
|
|
|
7043
7320
|
routineTo: "到",
|
|
7044
7321
|
routineActivity: "活动",
|
|
7045
7322
|
routineDays: "星期",
|
|
7323
|
+
routineOn: "其他日子",
|
|
7324
|
+
routineOnHelp: "月份(dec)、日期(12-24)、日期范围(12-20..01-05)、dom:1、nth:mon:1(每月第一个星期一)、season:winter、世界 calendar.json 中的 holiday:<id>;前面加 ! 表示排除该日。留空表示不限制。",
|
|
7046
7325
|
routineDaysHelp: "都不勾选表示每天。结束早于开始的时段会跨过午夜。",
|
|
7047
7326
|
routinePlace: "地点",
|
|
7048
7327
|
routineNoPlace: "无",
|
|
@@ -7562,19 +7841,19 @@ window.__ModuleLoader__.load({
|
|
|
7562
7841
|
}
|
|
7563
7842
|
//#endregion
|
|
7564
7843
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/pager/Pager.module.css.mjs
|
|
7565
|
-
const css$
|
|
7566
|
-
const key$
|
|
7567
|
-
let tag$
|
|
7568
|
-
if (tag$
|
|
7569
|
-
tag$
|
|
7570
|
-
tag$
|
|
7571
|
-
tag$
|
|
7572
|
-
document.head.appendChild(tag$
|
|
7844
|
+
const css$16 = ".rp_KBAD0W_pager{flex:none;justify-content:center;align-items:center;gap:8px;display:flex}.rp_KBAD0W_position{text-align:center;min-width:120px;color:var(--dsw-alias-label-tertiary);font-size:12px}";
|
|
7845
|
+
const key$16 = "src/client/widgets/pager/Pager.module.css";
|
|
7846
|
+
let tag$16 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$16) + "]");
|
|
7847
|
+
if (tag$16 === null) {
|
|
7848
|
+
tag$16 = document.createElement("style");
|
|
7849
|
+
tag$16.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
7850
|
+
tag$16.dataset.pluginCss = key$16;
|
|
7851
|
+
document.head.appendChild(tag$16);
|
|
7573
7852
|
}
|
|
7574
|
-
tag$
|
|
7853
|
+
tag$16.textContent = css$16;
|
|
7575
7854
|
var Pager_module_css_default = {
|
|
7576
|
-
"
|
|
7577
|
-
"
|
|
7855
|
+
"pager": "rp_KBAD0W_pager",
|
|
7856
|
+
"position": "rp_KBAD0W_position"
|
|
7578
7857
|
};
|
|
7579
7858
|
//#endregion
|
|
7580
7859
|
//#region src/client/widgets/pager/Pager.tsx
|
|
@@ -7609,16 +7888,16 @@ window.__ModuleLoader__.load({
|
|
|
7609
7888
|
}
|
|
7610
7889
|
//#endregion
|
|
7611
7890
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/problem-list/ProblemList.module.css.mjs
|
|
7612
|
-
const css$
|
|
7613
|
-
const key$
|
|
7614
|
-
let tag$
|
|
7615
|
-
if (tag$
|
|
7616
|
-
tag$
|
|
7617
|
-
tag$
|
|
7618
|
-
tag$
|
|
7619
|
-
document.head.appendChild(tag$
|
|
7891
|
+
const css$15 = ".rp_LZh3Iq_problems{color:var(--dsw-alias-state-warn-primary);flex:none;font-size:12px}.rp_LZh3Iq_problems summary{cursor:pointer}.rp_LZh3Iq_problems ul{color:var(--dsw-alias-label-secondary);margin:8px 0 0;padding-left:20px}.rp_LZh3Iq_problems code{font-family:var(--dsw-font-mono);color:var(--dsw-alias-label-primary)}";
|
|
7892
|
+
const key$15 = "src/client/widgets/problem-list/ProblemList.module.css";
|
|
7893
|
+
let tag$15 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$15) + "]");
|
|
7894
|
+
if (tag$15 === null) {
|
|
7895
|
+
tag$15 = document.createElement("style");
|
|
7896
|
+
tag$15.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
7897
|
+
tag$15.dataset.pluginCss = key$15;
|
|
7898
|
+
document.head.appendChild(tag$15);
|
|
7620
7899
|
}
|
|
7621
|
-
tag$
|
|
7900
|
+
tag$15.textContent = css$15;
|
|
7622
7901
|
var ProblemList_module_css_default = { "problems": "rp_LZh3Iq_problems" };
|
|
7623
7902
|
//#endregion
|
|
7624
7903
|
//#region src/client/widgets/problem-list/ProblemList.tsx
|
|
@@ -7636,20 +7915,20 @@ window.__ModuleLoader__.load({
|
|
|
7636
7915
|
}
|
|
7637
7916
|
//#endregion
|
|
7638
7917
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sessions/DeleteSessionDialog.module.css.mjs
|
|
7639
|
-
const css$
|
|
7640
|
-
const key$
|
|
7641
|
-
let tag$
|
|
7642
|
-
if (tag$
|
|
7643
|
-
tag$
|
|
7644
|
-
tag$
|
|
7645
|
-
tag$
|
|
7646
|
-
document.head.appendChild(tag$
|
|
7918
|
+
const css$14 = ".rp_FifHrW_body{flex-direction:column;gap:8px;min-width:min(380px,100%);display:flex}.rp_FifHrW_body p{margin:0}.rp_FifHrW_question{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;font-size:13px;line-height:20px}.rp_FifHrW_warning{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_FifHrW_error{color:var(--dsw-alias-state-error-primary);font-size:12px}";
|
|
7919
|
+
const key$14 = "src/client/pages/sessions/DeleteSessionDialog.module.css";
|
|
7920
|
+
let tag$14 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$14) + "]");
|
|
7921
|
+
if (tag$14 === null) {
|
|
7922
|
+
tag$14 = document.createElement("style");
|
|
7923
|
+
tag$14.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
7924
|
+
tag$14.dataset.pluginCss = key$14;
|
|
7925
|
+
document.head.appendChild(tag$14);
|
|
7647
7926
|
}
|
|
7648
|
-
tag$
|
|
7927
|
+
tag$14.textContent = css$14;
|
|
7649
7928
|
var DeleteSessionDialog_module_css_default = {
|
|
7929
|
+
"question": "rp_FifHrW_question",
|
|
7650
7930
|
"warning": "rp_FifHrW_warning",
|
|
7651
7931
|
"body": "rp_FifHrW_body",
|
|
7652
|
-
"question": "rp_FifHrW_question",
|
|
7653
7932
|
"error": "rp_FifHrW_error"
|
|
7654
7933
|
};
|
|
7655
7934
|
//#endregion
|
|
@@ -7746,39 +8025,39 @@ window.__ModuleLoader__.load({
|
|
|
7746
8025
|
}
|
|
7747
8026
|
//#endregion
|
|
7748
8027
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sessions/SessionsPage.module.css.mjs
|
|
7749
|
-
const css$
|
|
7750
|
-
const key$
|
|
7751
|
-
let tag$
|
|
7752
|
-
if (tag$
|
|
7753
|
-
tag$
|
|
7754
|
-
tag$
|
|
7755
|
-
tag$
|
|
7756
|
-
document.head.appendChild(tag$
|
|
8028
|
+
const css$13 = ".rp_24z4eW_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_24z4eW_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_24z4eW_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_24z4eW_spinning{animation:.9s linear infinite rp_24z4eW_spin}@keyframes rp_24z4eW_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_24z4eW_spinning{animation:none}}.rp_24z4eW_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_24z4eW_viewport{--rp-row-height:40px;--rp-header-height:32px;flex:1 1 0;min-height:0;overflow-x:auto}.rp_24z4eW_scrolls{overflow-y:auto}.rp_24z4eW_fits{overflow-y:hidden}.rp_24z4eW_table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:720px}.rp_24z4eW_actionsColumn{width:104px}.rp_24z4eW_nameColumn{width:30%}.rp_24z4eW_worldColumn{width:26%}.rp_24z4eW_timeColumn{width:16%}.rp_24z4eW_turnsColumn{width:10%}.rp_24z4eW_table th{height:var(--rp-header-height);border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);text-align:left;color:var(--dsw-alias-label-tertiary);padding:0 12px;font-size:12px;font-weight:400;position:sticky;top:0}.rp_24z4eW_table td{height:var(--rp-row-height);border-bottom:.5px solid var(--dsw-alias-border-l1);text-overflow:ellipsis;white-space:nowrap;padding:0 12px;font-size:13px;overflow:hidden}.rp_24z4eW_name{color:var(--dsw-alias-label-primary);font-weight:500}.rp_24z4eW_secondary{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_24z4eW_table .rp_24z4eW_number{text-align:right}.rp_24z4eW_table .rp_24z4eW_actions{text-align:center;white-space:nowrap;padding:0 8px}.rp_24z4eW_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_24z4eW_archived td{opacity:.6}.rp_24z4eW_badge{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);margin-left:6px;padding:0 6px;font-size:11px}@media (width<=640px){.rp_24z4eW_viewport{--rp-row-height:196px;--rp-header-height:0px;overflow-x:hidden}.rp_24z4eW_table,.rp_24z4eW_table tbody,.rp_24z4eW_table tr,.rp_24z4eW_table td{width:100%;display:block}.rp_24z4eW_table{min-width:0}.rp_24z4eW_table colgroup,.rp_24z4eW_table thead{display:none}.rp_24z4eW_table tr{box-sizing:border-box;min-height:var(--rp-row-height);border-bottom:.5px solid var(--dsw-alias-border-l2);padding:10px 12px}.rp_24z4eW_table td{box-sizing:border-box;text-align:start;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;border:0;grid-template-columns:minmax(88px,34%) minmax(0,1fr);align-items:baseline;height:auto;min-height:24px;padding:2px 0;display:grid;overflow:visible}.rp_24z4eW_table td:before{content:attr(data-label);color:var(--dsw-alias-label-tertiary);padding-inline-end:10px;font-size:11px;font-weight:400}.rp_24z4eW_table .rp_24z4eW_number{text-align:start}.rp_24z4eW_table .rp_24z4eW_actions{justify-content:flex-end;min-height:36px;padding-top:4px;display:flex}.rp_24z4eW_table .rp_24z4eW_actions:before{margin-inline-end:auto}}";
|
|
8029
|
+
const key$13 = "src/client/pages/sessions/SessionsPage.module.css";
|
|
8030
|
+
let tag$13 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$13) + "]");
|
|
8031
|
+
if (tag$13 === null) {
|
|
8032
|
+
tag$13 = document.createElement("style");
|
|
8033
|
+
tag$13.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8034
|
+
tag$13.dataset.pluginCss = key$13;
|
|
8035
|
+
document.head.appendChild(tag$13);
|
|
7757
8036
|
}
|
|
7758
|
-
tag$
|
|
8037
|
+
tag$13.textContent = css$13;
|
|
7759
8038
|
var SessionsPage_module_css_default = {
|
|
7760
|
-
"
|
|
7761
|
-
"message": "rp_24z4eW_message",
|
|
7762
|
-
"fits": "rp_24z4eW_fits",
|
|
7763
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
7764
|
-
"viewport": "rp_24z4eW_viewport",
|
|
8039
|
+
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
7765
8040
|
"name": "rp_24z4eW_name",
|
|
7766
|
-
"
|
|
7767
|
-
"
|
|
7768
|
-
"
|
|
8041
|
+
"page": "rp_24z4eW_page",
|
|
8042
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
8043
|
+
"badge": "rp_24z4eW_badge",
|
|
7769
8044
|
"toolbar": "rp_24z4eW_toolbar",
|
|
8045
|
+
"spinning": "rp_24z4eW_spinning",
|
|
8046
|
+
"table": "rp_24z4eW_table",
|
|
7770
8047
|
"nameColumn": "rp_24z4eW_nameColumn",
|
|
7771
|
-
"page": "rp_24z4eW_page",
|
|
7772
|
-
"count": "rp_24z4eW_count",
|
|
7773
|
-
"spin": "rp_24z4eW_spin",
|
|
7774
|
-
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
7775
|
-
"worldColumn": "rp_24z4eW_worldColumn",
|
|
7776
8048
|
"timeColumn": "rp_24z4eW_timeColumn",
|
|
7777
|
-
"
|
|
8049
|
+
"archived": "rp_24z4eW_archived",
|
|
8050
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
7778
8051
|
"secondary": "rp_24z4eW_secondary",
|
|
7779
|
-
"
|
|
8052
|
+
"message": "rp_24z4eW_message",
|
|
8053
|
+
"spin": "rp_24z4eW_spin",
|
|
8054
|
+
"fits": "rp_24z4eW_fits",
|
|
8055
|
+
"number": "rp_24z4eW_number",
|
|
7780
8056
|
"actions": "rp_24z4eW_actions",
|
|
7781
|
-
"
|
|
8057
|
+
"count": "rp_24z4eW_count",
|
|
8058
|
+
"notice": "rp_24z4eW_notice",
|
|
8059
|
+
"viewport": "rp_24z4eW_viewport",
|
|
8060
|
+
"worldColumn": "rp_24z4eW_worldColumn"
|
|
7782
8061
|
};
|
|
7783
8062
|
//#endregion
|
|
7784
8063
|
//#region src/client/pages/sessions/SessionsPage.tsx
|
|
@@ -8283,27 +8562,27 @@ window.__ModuleLoader__.load({
|
|
|
8283
8562
|
}
|
|
8284
8563
|
//#endregion
|
|
8285
8564
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/world-card/WorldCard.module.css.mjs
|
|
8286
|
-
const css$
|
|
8287
|
-
const key$
|
|
8288
|
-
let tag$
|
|
8289
|
-
if (tag$
|
|
8290
|
-
tag$
|
|
8291
|
-
tag$
|
|
8292
|
-
tag$
|
|
8293
|
-
document.head.appendChild(tag$
|
|
8565
|
+
const css$12 = ".rp_Bvxx5q_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;flex:auto;min-width:0;transition:border-color .12s;display:flex;position:relative;overflow:hidden}.rp_Bvxx5q_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_Bvxx5q_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_cover{background:var(--dsw-alias-bg-layer-3);flex:1 1 0;min-height:0;position:relative;overflow:hidden}.rp_Bvxx5q_image{object-fit:cover;width:100%;height:100%;display:block}.rp_Bvxx5q_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:40px;font-weight:500;display:flex}.rp_Bvxx5q_play{z-index:2;corner-shape:round;color:#fff;opacity:.6;cursor:pointer;background:#00000059;border:0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:opacity .12s,background-color .12s;display:flex;position:absolute;top:8px;right:8px}.rp_Bvxx5q_card:hover .rp_Bvxx5q_play,.rp_Bvxx5q_play:focus-visible{opacity:1}.rp_Bvxx5q_play:hover{background:#0000008c}.rp_Bvxx5q_play:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_info{flex-direction:column;flex:none;gap:4px;padding:8px 10px;display:flex}.rp_Bvxx5q_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.rp_Bvxx5q_tags{gap:4px;display:flex;overflow:hidden;mask-image:linear-gradient(90deg,#000 calc(100% - 20px),#0000)}.rp_Bvxx5q_tag{flex:none}.rp_Bvxx5q_openButton{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;width:100%;padding:0;position:absolute;inset:0}.rp_Bvxx5q_openButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:-2px}";
|
|
8566
|
+
const key$12 = "src/client/widgets/world-card/WorldCard.module.css";
|
|
8567
|
+
let tag$12 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$12) + "]");
|
|
8568
|
+
if (tag$12 === null) {
|
|
8569
|
+
tag$12 = document.createElement("style");
|
|
8570
|
+
tag$12.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8571
|
+
tag$12.dataset.pluginCss = key$12;
|
|
8572
|
+
document.head.appendChild(tag$12);
|
|
8294
8573
|
}
|
|
8295
|
-
tag$
|
|
8574
|
+
tag$12.textContent = css$12;
|
|
8296
8575
|
var WorldCard_module_css_default = {
|
|
8297
|
-
"info": "rp_Bvxx5q_info",
|
|
8298
|
-
"name": "rp_Bvxx5q_name",
|
|
8299
|
-
"image": "rp_Bvxx5q_image",
|
|
8300
|
-
"placeholder": "rp_Bvxx5q_placeholder",
|
|
8301
|
-
"tags": "rp_Bvxx5q_tags",
|
|
8302
8576
|
"cover": "rp_Bvxx5q_cover",
|
|
8303
8577
|
"tag": "rp_Bvxx5q_tag",
|
|
8304
|
-
"card": "rp_Bvxx5q_card",
|
|
8305
8578
|
"play": "rp_Bvxx5q_play",
|
|
8306
|
-
"
|
|
8579
|
+
"info": "rp_Bvxx5q_info",
|
|
8580
|
+
"card": "rp_Bvxx5q_card",
|
|
8581
|
+
"image": "rp_Bvxx5q_image",
|
|
8582
|
+
"name": "rp_Bvxx5q_name",
|
|
8583
|
+
"tags": "rp_Bvxx5q_tags",
|
|
8584
|
+
"openButton": "rp_Bvxx5q_openButton",
|
|
8585
|
+
"placeholder": "rp_Bvxx5q_placeholder"
|
|
8307
8586
|
};
|
|
8308
8587
|
//#endregion
|
|
8309
8588
|
//#region src/client/widgets/world-card/WorldCard.tsx
|
|
@@ -8386,16 +8665,16 @@ window.__ModuleLoader__.load({
|
|
|
8386
8665
|
}
|
|
8387
8666
|
//#endregion
|
|
8388
8667
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/avatar-choices/AvatarChoices.module.css.mjs
|
|
8389
|
-
const css$
|
|
8390
|
-
const key$
|
|
8391
|
-
let tag$
|
|
8392
|
-
if (tag$
|
|
8393
|
-
tag$
|
|
8394
|
-
tag$
|
|
8395
|
-
tag$
|
|
8396
|
-
document.head.appendChild(tag$
|
|
8668
|
+
const css$11 = ".rp_YCstOG_option{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_YCstOG_option:has(input:checked){border-color:var(--dsw-alias-state-business-primary)}.rp_YCstOG_option input{accent-color:var(--dsw-alias-state-business-primary);margin:3px 0 0}.rp_YCstOG_text{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_YCstOG_name{font-size:13px;font-weight:500}.rp_YCstOG_summary{color:var(--dsw-alias-label-secondary);font-size:12px}";
|
|
8669
|
+
const key$11 = "src/client/widgets/avatar-choices/AvatarChoices.module.css";
|
|
8670
|
+
let tag$11 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$11) + "]");
|
|
8671
|
+
if (tag$11 === null) {
|
|
8672
|
+
tag$11 = document.createElement("style");
|
|
8673
|
+
tag$11.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8674
|
+
tag$11.dataset.pluginCss = key$11;
|
|
8675
|
+
document.head.appendChild(tag$11);
|
|
8397
8676
|
}
|
|
8398
|
-
tag$
|
|
8677
|
+
tag$11.textContent = css$11;
|
|
8399
8678
|
var AvatarChoices_module_css_default = {
|
|
8400
8679
|
"option": "rp_YCstOG_option",
|
|
8401
8680
|
"text": "rp_YCstOG_text",
|
|
@@ -8429,29 +8708,29 @@ window.__ModuleLoader__.load({
|
|
|
8429
8708
|
}
|
|
8430
8709
|
//#endregion
|
|
8431
8710
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/StartSessionDialog.module.css.mjs
|
|
8432
|
-
const css$
|
|
8433
|
-
const key$
|
|
8434
|
-
let tag$
|
|
8435
|
-
if (tag$
|
|
8436
|
-
tag$
|
|
8437
|
-
tag$
|
|
8438
|
-
tag$
|
|
8439
|
-
document.head.appendChild(tag$
|
|
8711
|
+
const css$10 = ".rp_AnbLKG_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_AnbLKG_field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.rp_AnbLKG_label{color:var(--dsw-alias-label-secondary);padding:0;font-size:12px}.rp_AnbLKG_option{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_AnbLKG_option:has(input:checked){border-color:var(--dsw-alias-state-business-primary)}.rp_AnbLKG_option input{accent-color:var(--dsw-alias-state-business-primary);margin:3px 0 0}.rp_AnbLKG_optionText{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_AnbLKG_optionName{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px}.rp_AnbLKG_optionSummary{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_AnbLKG_message{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_AnbLKG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_AnbLKG_advanced{flex-direction:column;gap:8px;display:flex}.rp_AnbLKG_advancedToggle{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:6px;padding:0;font-size:12px;display:inline-flex}.rp_AnbLKG_advancedToggle:hover{color:var(--dsw-alias-label-primary)}.rp_AnbLKG_advancedBody{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);flex-direction:column;gap:12px;max-height:320px;padding:12px;display:flex;overflow-y:auto}@media (width<=520px){.rp_AnbLKG_form{min-width:0}}";
|
|
8712
|
+
const key$10 = "src/client/pages/worlds/StartSessionDialog.module.css";
|
|
8713
|
+
let tag$10 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$10) + "]");
|
|
8714
|
+
if (tag$10 === null) {
|
|
8715
|
+
tag$10 = document.createElement("style");
|
|
8716
|
+
tag$10.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8717
|
+
tag$10.dataset.pluginCss = key$10;
|
|
8718
|
+
document.head.appendChild(tag$10);
|
|
8440
8719
|
}
|
|
8441
|
-
tag$
|
|
8720
|
+
tag$10.textContent = css$10;
|
|
8442
8721
|
var StartSessionDialog_module_css_default = {
|
|
8443
|
-
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
8444
|
-
"option": "rp_AnbLKG_option",
|
|
8445
|
-
"optionName": "rp_AnbLKG_optionName",
|
|
8446
|
-
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
8447
|
-
"message": "rp_AnbLKG_message",
|
|
8448
|
-
"label": "rp_AnbLKG_label",
|
|
8449
|
-
"field": "rp_AnbLKG_field",
|
|
8450
|
-
"error": "rp_AnbLKG_error",
|
|
8451
8722
|
"optionText": "rp_AnbLKG_optionText",
|
|
8723
|
+
"label": "rp_AnbLKG_label",
|
|
8724
|
+
"message": "rp_AnbLKG_message",
|
|
8452
8725
|
"advanced": "rp_AnbLKG_advanced",
|
|
8726
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
8727
|
+
"form": "rp_AnbLKG_form",
|
|
8453
8728
|
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
8454
|
-
"
|
|
8729
|
+
"field": "rp_AnbLKG_field",
|
|
8730
|
+
"error": "rp_AnbLKG_error",
|
|
8731
|
+
"optionName": "rp_AnbLKG_optionName",
|
|
8732
|
+
"option": "rp_AnbLKG_option",
|
|
8733
|
+
"optionSummary": "rp_AnbLKG_optionSummary"
|
|
8455
8734
|
};
|
|
8456
8735
|
//#endregion
|
|
8457
8736
|
//#region src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
@@ -8588,7 +8867,8 @@ window.__ModuleLoader__.load({
|
|
|
8588
8867
|
backlogRounds: integer(1, 100, 6),
|
|
8589
8868
|
overRetrieve: integer(1, 10, 4),
|
|
8590
8869
|
associate: integer(0, 10, 2),
|
|
8591
|
-
diversity: ratio(0, 1, .3)
|
|
8870
|
+
diversity: ratio(0, 1, .3),
|
|
8871
|
+
foldedFade: ratio(.05, 1, .5)
|
|
8592
8872
|
},
|
|
8593
8873
|
context: {
|
|
8594
8874
|
limitTokens: integer(0, 1e6, 0),
|
|
@@ -8743,6 +9023,12 @@ window.__ModuleLoader__.load({
|
|
|
8743
9023
|
label: "diversity",
|
|
8744
9024
|
help: "diversityHelp"
|
|
8745
9025
|
},
|
|
9026
|
+
{
|
|
9027
|
+
path: ["memory", "foldedFade"],
|
|
9028
|
+
kind: "decimal",
|
|
9029
|
+
label: "foldedFade",
|
|
9030
|
+
help: "foldedFadeHelp"
|
|
9031
|
+
},
|
|
8746
9032
|
{
|
|
8747
9033
|
path: ["memory", "lookup"],
|
|
8748
9034
|
kind: "flag",
|
|
@@ -9290,25 +9576,25 @@ window.__ModuleLoader__.load({
|
|
|
9290
9576
|
}
|
|
9291
9577
|
//#endregion
|
|
9292
9578
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/settings-form/SettingsFields.module.css.mjs
|
|
9293
|
-
const css$
|
|
9294
|
-
const key$
|
|
9295
|
-
let tag$
|
|
9296
|
-
if (tag$
|
|
9297
|
-
tag$
|
|
9298
|
-
tag$
|
|
9299
|
-
tag$
|
|
9300
|
-
document.head.appendChild(tag$
|
|
9579
|
+
const css$9 = ".rp_Rhi3yq_row{flex-direction:column;gap:6px;display:flex}.rp_Rhi3yq_field{flex-direction:column;gap:6px;width:min(100%,320px);display:flex}.rp_Rhi3yq_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Rhi3yq_help{max-width:560px;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_Rhi3yq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Rhi3yq_group{border-top:.5px solid var(--dsw-alias-border-l3);flex-direction:column;gap:12px;padding-top:12px;display:flex}.rp_Rhi3yq_groupTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_Rhi3yq_area{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;max-width:560px;min-height:96px;color:inherit;font:inherit;resize:vertical;padding:6px 8px;font-size:13px}.rp_Rhi3yq_area:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}";
|
|
9580
|
+
const key$9 = "src/client/settings-form/SettingsFields.module.css";
|
|
9581
|
+
let tag$9 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$9) + "]");
|
|
9582
|
+
if (tag$9 === null) {
|
|
9583
|
+
tag$9 = document.createElement("style");
|
|
9584
|
+
tag$9.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
9585
|
+
tag$9.dataset.pluginCss = key$9;
|
|
9586
|
+
document.head.appendChild(tag$9);
|
|
9301
9587
|
}
|
|
9302
|
-
tag$
|
|
9588
|
+
tag$9.textContent = css$9;
|
|
9303
9589
|
var SettingsFields_module_css_default = {
|
|
9304
|
-
"row": "rp_Rhi3yq_row",
|
|
9305
9590
|
"field": "rp_Rhi3yq_field",
|
|
9306
|
-
"label": "rp_Rhi3yq_label",
|
|
9307
|
-
"group": "rp_Rhi3yq_group",
|
|
9308
|
-
"error": "rp_Rhi3yq_error",
|
|
9309
|
-
"area": "rp_Rhi3yq_area",
|
|
9310
9591
|
"help": "rp_Rhi3yq_help",
|
|
9311
|
-
"groupTitle": "rp_Rhi3yq_groupTitle"
|
|
9592
|
+
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
9593
|
+
"error": "rp_Rhi3yq_error",
|
|
9594
|
+
"group": "rp_Rhi3yq_group",
|
|
9595
|
+
"row": "rp_Rhi3yq_row",
|
|
9596
|
+
"label": "rp_Rhi3yq_label",
|
|
9597
|
+
"area": "rp_Rhi3yq_area"
|
|
9312
9598
|
};
|
|
9313
9599
|
//#endregion
|
|
9314
9600
|
//#region src/client/settings-form/SettingsFields.tsx
|
|
@@ -9486,6 +9772,146 @@ window.__ModuleLoader__.load({
|
|
|
9486
9772
|
] });
|
|
9487
9773
|
}
|
|
9488
9774
|
//#endregion
|
|
9775
|
+
//#region src/client/pages/worlds/import-api.ts
|
|
9776
|
+
async function answer$1(response) {
|
|
9777
|
+
if (!response.ok) {
|
|
9778
|
+
const body = await response.json().catch(() => void 0);
|
|
9779
|
+
const problems = Array.isArray(body?.problems) ? body.problems.join("; ") : void 0;
|
|
9780
|
+
throw new Error(problems ?? (typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim()));
|
|
9781
|
+
}
|
|
9782
|
+
return await response.json();
|
|
9783
|
+
}
|
|
9784
|
+
/** Sends a card file to the host to be read; the answer is what it holds. */
|
|
9785
|
+
async function uploadCard(file) {
|
|
9786
|
+
return await answer$1(await fetch(`${API_PREFIX}/worlds/import/card`, {
|
|
9787
|
+
method: "POST",
|
|
9788
|
+
credentials: "same-origin",
|
|
9789
|
+
headers: {
|
|
9790
|
+
"x-file-name": encodeURIComponent(file.name),
|
|
9791
|
+
"content-type": file.type || "application/octet-stream"
|
|
9792
|
+
},
|
|
9793
|
+
body: file
|
|
9794
|
+
}));
|
|
9795
|
+
}
|
|
9796
|
+
async function startImport(id, choices, language) {
|
|
9797
|
+
return await answer$1(await fetch(`${API_PREFIX}/worlds/import/start?id=${encodeURIComponent(id)}`, {
|
|
9798
|
+
method: "POST",
|
|
9799
|
+
credentials: "same-origin",
|
|
9800
|
+
headers: { "content-type": "application/json" },
|
|
9801
|
+
body: JSON.stringify({
|
|
9802
|
+
...choices,
|
|
9803
|
+
language
|
|
9804
|
+
})
|
|
9805
|
+
}));
|
|
9806
|
+
}
|
|
9807
|
+
async function discardImport(id) {
|
|
9808
|
+
await fetch(`${API_PREFIX}/worlds/import?id=${encodeURIComponent(id)}`, {
|
|
9809
|
+
method: "DELETE",
|
|
9810
|
+
credentials: "same-origin"
|
|
9811
|
+
});
|
|
9812
|
+
}
|
|
9813
|
+
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
9814
|
+
//#endregion
|
|
9815
|
+
//#region src/client/pages/worlds/translate-api.ts
|
|
9816
|
+
/** The language a world is written in, or nothing when it has too little text to tell. */
|
|
9817
|
+
async function worldLanguage(worldId, signal) {
|
|
9818
|
+
const { language } = await answer$1(await fetch(`${API_PREFIX}/worlds/language?id=${encodeURIComponent(worldId)}`, {
|
|
9819
|
+
credentials: "same-origin",
|
|
9820
|
+
...signal === void 0 ? {} : { signal }
|
|
9821
|
+
}));
|
|
9822
|
+
return language ?? void 0;
|
|
9823
|
+
}
|
|
9824
|
+
/** Opens the authoring chat of the world and has it make a translated copy. */
|
|
9825
|
+
async function translateWorld(worldId, to, title, language) {
|
|
9826
|
+
return await answer$1(await fetch(`${API_PREFIX}/worlds/translate?id=${encodeURIComponent(worldId)}`, {
|
|
9827
|
+
method: "POST",
|
|
9828
|
+
credentials: "same-origin",
|
|
9829
|
+
headers: { "content-type": "application/json" },
|
|
9830
|
+
body: JSON.stringify({
|
|
9831
|
+
to,
|
|
9832
|
+
title,
|
|
9833
|
+
language
|
|
9834
|
+
})
|
|
9835
|
+
}));
|
|
9836
|
+
}
|
|
9837
|
+
/** The language of the interface or of a setting, as one of the two the plugin writes in. */
|
|
9838
|
+
const storyLanguageOf = (code) => code.trim().toLowerCase().startsWith("zh") ? "zh" : "en";
|
|
9839
|
+
//#endregion
|
|
9840
|
+
//#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
|
|
9841
|
+
const css$8 = ".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}";
|
|
9842
|
+
const key$8 = "src/client/pages/worlds/TranslateBanner.module.css";
|
|
9843
|
+
let tag$8 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$8) + "]");
|
|
9844
|
+
if (tag$8 === null) {
|
|
9845
|
+
tag$8 = document.createElement("style");
|
|
9846
|
+
tag$8.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
9847
|
+
tag$8.dataset.pluginCss = key$8;
|
|
9848
|
+
document.head.appendChild(tag$8);
|
|
9849
|
+
}
|
|
9850
|
+
tag$8.textContent = css$8;
|
|
9851
|
+
var TranslateBanner_module_css_default = {
|
|
9852
|
+
"text": "rp_Lx8vJa_text",
|
|
9853
|
+
"banner": "rp_Lx8vJa_banner",
|
|
9854
|
+
"error": "rp_Lx8vJa_error"
|
|
9855
|
+
};
|
|
9856
|
+
//#endregion
|
|
9857
|
+
//#region src/client/pages/worlds/TranslateBanner.tsx
|
|
9858
|
+
const languageName = (t, language) => language === "zh" ? t("languageChinese") : t("languageEnglish");
|
|
9859
|
+
/** The language a world is written in, read from the host; nothing while it is being read or when it cannot be told. */
|
|
9860
|
+
function useWorldLanguage(worldId) {
|
|
9861
|
+
const [language, setLanguage] = (0, react.useState)();
|
|
9862
|
+
(0, react.useEffect)(() => {
|
|
9863
|
+
const abort = new AbortController();
|
|
9864
|
+
setLanguage(void 0);
|
|
9865
|
+
worldLanguage(worldId, abort.signal).then(setLanguage, () => void 0);
|
|
9866
|
+
return () => {
|
|
9867
|
+
abort.abort();
|
|
9868
|
+
};
|
|
9869
|
+
}, [worldId]);
|
|
9870
|
+
return language;
|
|
9871
|
+
}
|
|
9872
|
+
/** Says that a world is written in another language than the person's, and offers to translate it into a copy. */
|
|
9873
|
+
function TranslateBanner({ t, worldId, worldName, openChat }) {
|
|
9874
|
+
const own = storyLanguageOf(t("language"));
|
|
9875
|
+
const written = useWorldLanguage(worldId);
|
|
9876
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
9877
|
+
const [failure, setFailure] = (0, react.useState)();
|
|
9878
|
+
if (written === void 0 || written === own) return null;
|
|
9879
|
+
const translate = () => {
|
|
9880
|
+
setBusy(true);
|
|
9881
|
+
setFailure(void 0);
|
|
9882
|
+
translateWorld(worldId, own, t("translateChatTitle", { name: worldName }), t("language")).then((opened) => {
|
|
9883
|
+
setBusy(false);
|
|
9884
|
+
if (!opened.started) setFailure(t("translateNotStarted", { message: opened.failure ?? "" }));
|
|
9885
|
+
openChat(opened.chatSessionId);
|
|
9886
|
+
}, (error) => {
|
|
9887
|
+
setBusy(false);
|
|
9888
|
+
setFailure(t("translateFailed", { message: error instanceof Error ? error.message : String(error) }));
|
|
9889
|
+
});
|
|
9890
|
+
};
|
|
9891
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9892
|
+
className: TranslateBanner_module_css_default.banner,
|
|
9893
|
+
role: "status",
|
|
9894
|
+
"data-testid": "roleplay-translate-banner",
|
|
9895
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9896
|
+
className: TranslateBanner_module_css_default.text,
|
|
9897
|
+
children: t("translateWarning", {
|
|
9898
|
+
from: languageName(t, written),
|
|
9899
|
+
to: languageName(t, own)
|
|
9900
|
+
})
|
|
9901
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
9902
|
+
variant: "outline",
|
|
9903
|
+
size: "sm",
|
|
9904
|
+
disabled: busy,
|
|
9905
|
+
onClick: translate,
|
|
9906
|
+
children: busy ? t("translateOpening") : t("translateAction", { to: languageName(t, own) })
|
|
9907
|
+
})]
|
|
9908
|
+
}), failure !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9909
|
+
className: TranslateBanner_module_css_default.error,
|
|
9910
|
+
role: "alert",
|
|
9911
|
+
children: failure
|
|
9912
|
+
})] });
|
|
9913
|
+
}
|
|
9914
|
+
//#endregion
|
|
9489
9915
|
//#region src/client/pages/worlds/StartSessionDialog.tsx
|
|
9490
9916
|
/** Asks what a new session needs: its name and which playable character the player takes. */
|
|
9491
9917
|
function StartSessionDialog({ t, dialog, onStart, onClose }) {
|
|
@@ -9518,6 +9944,9 @@ window.__ModuleLoader__.load({
|
|
|
9518
9944
|
...toDrafts(base, options),
|
|
9519
9945
|
...drafts
|
|
9520
9946
|
};
|
|
9947
|
+
const written = useWorldLanguage(dialog.worldId);
|
|
9948
|
+
const chosen = shown["prompts.language"];
|
|
9949
|
+
const played = storyLanguageOf(typeof chosen === "string" && chosen.trim() !== "" ? chosen : t("language"));
|
|
9521
9950
|
const canStart = dialog.status === "ready" && selected !== void 0 && !dialog.submitting && problemsOf(shown, options).size === 0;
|
|
9522
9951
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
9523
9952
|
open: true,
|
|
@@ -9566,6 +9995,14 @@ window.__ModuleLoader__.load({
|
|
|
9566
9995
|
}
|
|
9567
9996
|
})]
|
|
9568
9997
|
}),
|
|
9998
|
+
written !== void 0 && written !== played && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9999
|
+
className: StartSessionDialog_module_css_default.message,
|
|
10000
|
+
role: "status",
|
|
10001
|
+
children: t("startLanguageNote", {
|
|
10002
|
+
from: languageName(t, written),
|
|
10003
|
+
to: languageName(t, played)
|
|
10004
|
+
})
|
|
10005
|
+
}),
|
|
9569
10006
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("fieldset", {
|
|
9570
10007
|
className: StartSessionDialog_module_css_default.field,
|
|
9571
10008
|
disabled: dialog.status !== "ready" || dialog.submitting,
|
|
@@ -9851,7 +10288,7 @@ window.__ModuleLoader__.load({
|
|
|
9851
10288
|
}
|
|
9852
10289
|
//#endregion
|
|
9853
10290
|
//#region src/client/pages/worlds/starter-api.ts
|
|
9854
|
-
async function answer
|
|
10291
|
+
async function answer(response) {
|
|
9855
10292
|
if (!response.ok) {
|
|
9856
10293
|
const body = await response.json().catch(() => void 0);
|
|
9857
10294
|
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
@@ -9860,14 +10297,14 @@ window.__ModuleLoader__.load({
|
|
|
9860
10297
|
}
|
|
9861
10298
|
/** The worlds that ship with the plugin. */
|
|
9862
10299
|
async function loadStarters(signal) {
|
|
9863
|
-
return await answer
|
|
10300
|
+
return await answer(await fetch(`${API_PREFIX}/worlds/starter`, {
|
|
9864
10301
|
credentials: "same-origin",
|
|
9865
10302
|
signal
|
|
9866
10303
|
}));
|
|
9867
10304
|
}
|
|
9868
10305
|
/** Copies one into the person's worlds. */
|
|
9869
10306
|
async function addStarter(folder) {
|
|
9870
|
-
await answer
|
|
10307
|
+
await answer(await fetch(`${API_PREFIX}/worlds/starter`, {
|
|
9871
10308
|
method: "POST",
|
|
9872
10309
|
credentials: "same-origin",
|
|
9873
10310
|
headers: { "content-type": "application/json" },
|
|
@@ -9887,25 +10324,25 @@ window.__ModuleLoader__.load({
|
|
|
9887
10324
|
}
|
|
9888
10325
|
tag$7.textContent = css$7;
|
|
9889
10326
|
var WorldsPage_module_css_default = {
|
|
9890
|
-
"
|
|
9891
|
-
"
|
|
9892
|
-
"viewport": "rp_FHUyRq_viewport",
|
|
9893
|
-
"starters": "rp_FHUyRq_starters",
|
|
10327
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
10328
|
+
"authorButton": "rp_FHUyRq_authorButton",
|
|
9894
10329
|
"editHeader": "rp_FHUyRq_editHeader",
|
|
9895
|
-
"notice": "rp_FHUyRq_notice",
|
|
9896
|
-
"spin": "rp_FHUyRq_spin",
|
|
9897
|
-
"scrolls": "rp_FHUyRq_scrolls",
|
|
9898
10330
|
"fits": "rp_FHUyRq_fits",
|
|
10331
|
+
"count": "rp_FHUyRq_count",
|
|
9899
10332
|
"editTitle": "rp_FHUyRq_editTitle",
|
|
10333
|
+
"editBody": "rp_FHUyRq_editBody",
|
|
10334
|
+
"scrolls": "rp_FHUyRq_scrolls",
|
|
10335
|
+
"grid": "rp_FHUyRq_grid",
|
|
9900
10336
|
"starter": "rp_FHUyRq_starter",
|
|
9901
|
-
"
|
|
9902
|
-
"count": "rp_FHUyRq_count",
|
|
9903
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
9904
|
-
"authorButton": "rp_FHUyRq_authorButton",
|
|
10337
|
+
"page": "rp_FHUyRq_page",
|
|
9905
10338
|
"cell": "rp_FHUyRq_cell",
|
|
10339
|
+
"starters": "rp_FHUyRq_starters",
|
|
10340
|
+
"spin": "rp_FHUyRq_spin",
|
|
10341
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
10342
|
+
"notice": "rp_FHUyRq_notice",
|
|
9906
10343
|
"message": "rp_FHUyRq_message",
|
|
9907
|
-
"
|
|
9908
|
-
"
|
|
10344
|
+
"toolbar": "rp_FHUyRq_toolbar",
|
|
10345
|
+
"viewport": "rp_FHUyRq_viewport"
|
|
9909
10346
|
};
|
|
9910
10347
|
//#endregion
|
|
9911
10348
|
//#region src/client/pages/worlds/StarterWorlds.tsx
|
|
@@ -9963,46 +10400,6 @@ window.__ModuleLoader__.load({
|
|
|
9963
10400
|
});
|
|
9964
10401
|
}
|
|
9965
10402
|
//#endregion
|
|
9966
|
-
//#region src/client/pages/worlds/import-api.ts
|
|
9967
|
-
async function answer(response) {
|
|
9968
|
-
if (!response.ok) {
|
|
9969
|
-
const body = await response.json().catch(() => void 0);
|
|
9970
|
-
const problems = Array.isArray(body?.problems) ? body.problems.join("; ") : void 0;
|
|
9971
|
-
throw new Error(problems ?? (typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim()));
|
|
9972
|
-
}
|
|
9973
|
-
return await response.json();
|
|
9974
|
-
}
|
|
9975
|
-
/** Sends a card file to the host to be read; the answer is what it holds. */
|
|
9976
|
-
async function uploadCard(file) {
|
|
9977
|
-
return await answer(await fetch(`${API_PREFIX}/worlds/import/card`, {
|
|
9978
|
-
method: "POST",
|
|
9979
|
-
credentials: "same-origin",
|
|
9980
|
-
headers: {
|
|
9981
|
-
"x-file-name": encodeURIComponent(file.name),
|
|
9982
|
-
"content-type": file.type || "application/octet-stream"
|
|
9983
|
-
},
|
|
9984
|
-
body: file
|
|
9985
|
-
}));
|
|
9986
|
-
}
|
|
9987
|
-
async function startImport(id, choices, language) {
|
|
9988
|
-
return await answer(await fetch(`${API_PREFIX}/worlds/import/start?id=${encodeURIComponent(id)}`, {
|
|
9989
|
-
method: "POST",
|
|
9990
|
-
credentials: "same-origin",
|
|
9991
|
-
headers: { "content-type": "application/json" },
|
|
9992
|
-
body: JSON.stringify({
|
|
9993
|
-
...choices,
|
|
9994
|
-
language
|
|
9995
|
-
})
|
|
9996
|
-
}));
|
|
9997
|
-
}
|
|
9998
|
-
async function discardImport(id) {
|
|
9999
|
-
await fetch(`${API_PREFIX}/worlds/import?id=${encodeURIComponent(id)}`, {
|
|
10000
|
-
method: "DELETE",
|
|
10001
|
-
credentials: "same-origin"
|
|
10002
|
-
});
|
|
10003
|
-
}
|
|
10004
|
-
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
10005
|
-
//#endregion
|
|
10006
10403
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/ImportCardPage.module.css.mjs
|
|
10007
10404
|
const css$6 = ".rp_DmG_oG_page{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_DmG_oG_header{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_DmG_oG_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_DmG_oG_space{flex:auto}.rp_DmG_oG_error{color:var(--dsw-alias-state-error-primary);margin:0;padding:8px 16px;font-size:12px}.rp_DmG_oG_body{box-sizing:border-box;flex-direction:column;flex:1 1 0;gap:20px;min-height:0;padding:20px 24px 40px;display:flex;overflow-y:auto}.rp_DmG_oG_body>*{flex:none;width:100%;max-width:860px}.rp_DmG_oG_top{align-items:flex-start;gap:20px;display:flex}.rp_DmG_oG_picture{object-fit:cover;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:0 0 120px;width:120px;height:160px}.rp_DmG_oG_noPicture{box-sizing:border-box;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;font-size:12px;display:flex}.rp_DmG_oG_about{flex-direction:column;flex:1 1 0;gap:8px;min-width:0;display:flex}.rp_DmG_oG_label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:4px;font-size:12px;display:flex}.rp_DmG_oG_tags{flex-wrap:wrap;gap:6px;display:flex}.rp_DmG_oG_note{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_DmG_oG_section{flex-direction:column;gap:8px;display:flex}.rp_DmG_oG_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_DmG_oG_row{align-items:center;gap:8px;display:flex}.rp_DmG_oG_field,.rp_DmG_oG_entry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg)}.rp_DmG_oG_fieldHead,.rp_DmG_oG_entryHead{box-sizing:border-box;width:100%;font:inherit;text-align:left;color:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:8px 10px;display:flex}.rp_DmG_oG_fieldHead{cursor:pointer}.rp_DmG_oG_fieldTitle,.rp_DmG_oG_entryTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px}.rp_DmG_oG_entryTitle{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.rp_DmG_oG_fieldMeta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_DmG_oG_field .rp_DmG_oG_note,.rp_DmG_oG_entry .rp_DmG_oG_note{padding:0 10px 6px}.rp_DmG_oG_text{white-space:pre-wrap;word-break:break-word;max-height:320px;font:inherit;color:var(--dsw-alias-label-secondary);border-top:.5px solid var(--dsw-alias-border-l4);margin:0;padding:8px 10px 10px;font-size:12px;line-height:18px;overflow:auto}.rp_DmG_oG_entryOff .rp_DmG_oG_entryTitle{color:var(--dsw-alias-label-tertiary);text-decoration:line-through}.rp_DmG_oG_choice{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}@media (width<=640px){.rp_DmG_oG_body{padding-inline:16px}.rp_DmG_oG_top{flex-direction:column}.rp_DmG_oG_picture{width:96px;height:128px}.rp_DmG_oG_row{flex-wrap:wrap}}.rp_DmG_oG_choice input{margin-top:3px}.rp_DmG_oG_choiceText{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_DmG_oG_preview{white-space:pre-wrap;word-break:break-word;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}";
|
|
10008
10405
|
const key$6 = "src/client/pages/worlds/ImportCardPage.module.css";
|
|
@@ -10015,34 +10412,34 @@ window.__ModuleLoader__.load({
|
|
|
10015
10412
|
}
|
|
10016
10413
|
tag$6.textContent = css$6;
|
|
10017
10414
|
var ImportCardPage_module_css_default = {
|
|
10018
|
-
"
|
|
10019
|
-
"
|
|
10020
|
-
"
|
|
10415
|
+
"error": "rp_DmG_oG_error",
|
|
10416
|
+
"entry": "rp_DmG_oG_entry",
|
|
10417
|
+
"entryHead": "rp_DmG_oG_entryHead",
|
|
10021
10418
|
"entryOff": "rp_DmG_oG_entryOff",
|
|
10022
|
-
"picture": "rp_DmG_oG_picture",
|
|
10023
|
-
"heading": "rp_DmG_oG_heading",
|
|
10024
|
-
"about": "rp_DmG_oG_about",
|
|
10025
|
-
"title": "rp_DmG_oG_title",
|
|
10026
|
-
"tags": "rp_DmG_oG_tags",
|
|
10027
10419
|
"page": "rp_DmG_oG_page",
|
|
10028
|
-
"note": "rp_DmG_oG_note",
|
|
10029
|
-
"entryHead": "rp_DmG_oG_entryHead",
|
|
10030
10420
|
"body": "rp_DmG_oG_body",
|
|
10031
|
-
"
|
|
10032
|
-
"
|
|
10033
|
-
"
|
|
10421
|
+
"fieldTitle": "rp_DmG_oG_fieldTitle",
|
|
10422
|
+
"top": "rp_DmG_oG_top",
|
|
10423
|
+
"fieldHead": "rp_DmG_oG_fieldHead",
|
|
10424
|
+
"choice": "rp_DmG_oG_choice",
|
|
10425
|
+
"picture": "rp_DmG_oG_picture",
|
|
10034
10426
|
"choiceText": "rp_DmG_oG_choiceText",
|
|
10035
10427
|
"preview": "rp_DmG_oG_preview",
|
|
10036
|
-
"noPicture": "rp_DmG_oG_noPicture",
|
|
10037
|
-
"error": "rp_DmG_oG_error",
|
|
10038
10428
|
"space": "rp_DmG_oG_space",
|
|
10039
|
-
"
|
|
10429
|
+
"note": "rp_DmG_oG_note",
|
|
10430
|
+
"row": "rp_DmG_oG_row",
|
|
10431
|
+
"field": "rp_DmG_oG_field",
|
|
10432
|
+
"noPicture": "rp_DmG_oG_noPicture",
|
|
10433
|
+
"entryTitle": "rp_DmG_oG_entryTitle",
|
|
10434
|
+
"fieldMeta": "rp_DmG_oG_fieldMeta",
|
|
10435
|
+
"text": "rp_DmG_oG_text",
|
|
10436
|
+
"section": "rp_DmG_oG_section",
|
|
10437
|
+
"tags": "rp_DmG_oG_tags",
|
|
10040
10438
|
"header": "rp_DmG_oG_header",
|
|
10041
10439
|
"label": "rp_DmG_oG_label",
|
|
10042
|
-
"
|
|
10043
|
-
"
|
|
10044
|
-
"
|
|
10045
|
-
"field": "rp_DmG_oG_field"
|
|
10440
|
+
"heading": "rp_DmG_oG_heading",
|
|
10441
|
+
"title": "rp_DmG_oG_title",
|
|
10442
|
+
"about": "rp_DmG_oG_about"
|
|
10046
10443
|
};
|
|
10047
10444
|
//#endregion
|
|
10048
10445
|
//#region src/client/pages/worlds/ImportCardPage.tsx
|
|
@@ -10485,6 +10882,12 @@ window.__ModuleLoader__.load({
|
|
|
10485
10882
|
role: "alert",
|
|
10486
10883
|
children: t("authorWorldFailed", { message: state.authoring.error })
|
|
10487
10884
|
}),
|
|
10885
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TranslateBanner, {
|
|
10886
|
+
t,
|
|
10887
|
+
worldId: editing.id,
|
|
10888
|
+
worldName: editing.name,
|
|
10889
|
+
openChat
|
|
10890
|
+
}),
|
|
10488
10891
|
addingAvatars && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddAvatarsDialog, {
|
|
10489
10892
|
t,
|
|
10490
10893
|
worldId: editing.id,
|
|
@@ -10684,6 +11087,8 @@ window.__ModuleLoader__.load({
|
|
|
10684
11087
|
associateHelp: "The most extra memories a character is reminded of because they are strongly tied (the same people together with the same place or tags) to something the moment called to mind, and matter enough. 0 turns it off.",
|
|
10685
11088
|
diversity: "Spread of what is recalled",
|
|
10686
11089
|
diversityHelp: "From 0 to 1: how much a memory that says what one already chosen says counts against it, so that a character is not reminded of the same moment several times. 0 chooses by score alone.",
|
|
11090
|
+
foldedFade: "How long digested memories last",
|
|
11091
|
+
foldedFadeHelp: "From 0.05 to 1. Once a belief rests on something a character took in, that memory fades this much as fast (a half means it fades twice as soon), and it is not told again when the belief is. 1 changes nothing.",
|
|
10687
11092
|
lookup: "Characters can look up memories",
|
|
10688
11093
|
lookupHelp: "While it decides, a character can ask itself about something it remembers beyond what the moment already brought to mind. Each character only reaches its own memories. It makes a character's turn a little longer.",
|
|
10689
11094
|
lookupCalls: "Memory look-ups per decision",
|
|
@@ -10827,6 +11232,8 @@ window.__ModuleLoader__.load({
|
|
|
10827
11232
|
recallHelp: "角色每次行动时最多被唤起的记忆条数,按当前情境联想到的内容挑选。",
|
|
10828
11233
|
overRetrieve: "每条回忆的候选倍数",
|
|
10829
11234
|
overRetrieveHelp: "为了选出角色被唤起的记忆,会先检索出此倍数的候选(按情境线索、字词和语义),再保留最好的;若已配置重排序服务,则由它评判这张更大的网。1 表示直接从第一次检索中选取。",
|
|
11235
|
+
foldedFade: "已归纳记忆保留多久",
|
|
11236
|
+
foldedFadeHelp: "0.05 到 1。一旦某个信念建立在角色见闻之上,那条记忆的保留时间就缩短到这个比例(0.5 表示淡忘速度快一倍),并且在讲到该信念时不再重复讲它。1 表示不改变。",
|
|
10830
11237
|
diversity: "回忆的分散程度",
|
|
10831
11238
|
diversityHelp: "0 到 1:与已选中的某条记忆说的是同一件事的记忆要被扣多少分,这样角色就不会把同一个时刻想起好几遍。0 表示只按得分选择。",
|
|
10832
11239
|
associate: "顺带想起的记忆",
|
|
@@ -11041,6 +11448,15 @@ window.__ModuleLoader__.load({
|
|
|
11041
11448
|
openingAuthor: "Opening…",
|
|
11042
11449
|
authorWorldFailed: "Could not open the authoring chat: {message}",
|
|
11043
11450
|
authoringChatTitle: "Authoring {name}",
|
|
11451
|
+
translateWarning: "This world is written in {from}, but you use {to}. Names, descriptions and the characters' speech may mix the two languages.",
|
|
11452
|
+
translateAction: "Translate into {to}",
|
|
11453
|
+
translateOpening: "Opening…",
|
|
11454
|
+
translateChatTitle: "Translating {name}",
|
|
11455
|
+
translateFailed: "Could not start the translation: {message}",
|
|
11456
|
+
translateNotStarted: "The authoring chat opened but the translation did not start: {message}. Ask it to translate the world.",
|
|
11457
|
+
languageEnglish: "English",
|
|
11458
|
+
languageChinese: "Chinese",
|
|
11459
|
+
startLanguageNote: "This world is written in {from}, but the story will be played in {to}: names and descriptions stay in {from}. A translated copy can be made from the world's editor.",
|
|
11044
11460
|
addAvatars: "Add avatars",
|
|
11045
11461
|
addAvatarsTitle: "Add avatars to the world",
|
|
11046
11462
|
addAvatarsHelp: "Each avatar you tick becomes a playable character of this world, with its own copy of everything. It starts where the world's playable characters start.",
|
|
@@ -11137,6 +11553,15 @@ window.__ModuleLoader__.load({
|
|
|
11137
11553
|
openingAuthor: "正在打开…",
|
|
11138
11554
|
authorWorldFailed: "无法打开世界编辑对话:{message}",
|
|
11139
11555
|
authoringChatTitle: "编辑{name}",
|
|
11556
|
+
translateWarning: "这个世界是用{from}写的,而你使用的是{to}。名字、描述和角色的说话可能会两种语言混在一起。",
|
|
11557
|
+
translateAction: "翻译成{to}",
|
|
11558
|
+
translateOpening: "正在打开…",
|
|
11559
|
+
translateChatTitle: "翻译{name}",
|
|
11560
|
+
translateFailed: "无法开始翻译:{message}",
|
|
11561
|
+
translateNotStarted: "世界编辑对话已打开,但翻译没有开始:{message}。可以请它翻译这个世界。",
|
|
11562
|
+
languageEnglish: "英文",
|
|
11563
|
+
languageChinese: "中文",
|
|
11564
|
+
startLanguageNote: "这个世界是用{from}写的,而故事将用{to}进行:名字和描述仍是{from}。可以在世界编辑器里生成一个翻译后的副本。",
|
|
11140
11565
|
addAvatars: "添加角色形象",
|
|
11141
11566
|
addAvatarsTitle: "把角色形象加入世界",
|
|
11142
11567
|
addAvatarsHelp: "勾选的每个角色形象都会成为这个世界的可扮演角色,并带有自己的一份副本。它们从世界中可扮演角色的起始位置出发。",
|
|
@@ -11506,9 +11931,9 @@ window.__ModuleLoader__.load({
|
|
|
11506
11931
|
tag$5.textContent = css$5;
|
|
11507
11932
|
var BranchDialog_module_css_default = {
|
|
11508
11933
|
"form": "rp_Dy1TaW_form",
|
|
11934
|
+
"field": "rp_Dy1TaW_field",
|
|
11509
11935
|
"error": "rp_Dy1TaW_error",
|
|
11510
|
-
"label": "rp_Dy1TaW_label"
|
|
11511
|
-
"field": "rp_Dy1TaW_field"
|
|
11936
|
+
"label": "rp_Dy1TaW_label"
|
|
11512
11937
|
};
|
|
11513
11938
|
//#endregion
|
|
11514
11939
|
//#region src/client/branch/BranchDialog.tsx
|
|
@@ -11977,17 +12402,17 @@ window.__ModuleLoader__.load({
|
|
|
11977
12402
|
}
|
|
11978
12403
|
tag$4.textContent = css$4;
|
|
11979
12404
|
var SidebarPage_module_css_default = {
|
|
11980
|
-
"main": "rp_Ptco8a_main",
|
|
11981
12405
|
"bar": "rp_Ptco8a_bar",
|
|
11982
|
-
"
|
|
12406
|
+
"message": "rp_Ptco8a_message",
|
|
12407
|
+
"entry": "rp_Ptco8a_entry",
|
|
11983
12408
|
"name": "rp_Ptco8a_name",
|
|
11984
12409
|
"icon": "rp_Ptco8a_icon",
|
|
11985
|
-
"message": "rp_Ptco8a_message",
|
|
11986
12410
|
"page": "rp_Ptco8a_page",
|
|
11987
12411
|
"title": "rp_Ptco8a_title",
|
|
12412
|
+
"text": "rp_Ptco8a_text",
|
|
12413
|
+
"content": "rp_Ptco8a_content",
|
|
11988
12414
|
"description": "rp_Ptco8a_description",
|
|
11989
|
-
"
|
|
11990
|
-
"text": "rp_Ptco8a_text"
|
|
12415
|
+
"main": "rp_Ptco8a_main"
|
|
11991
12416
|
};
|
|
11992
12417
|
//#endregion
|
|
11993
12418
|
//#region src/client/interface/SidebarPage.tsx
|
|
@@ -12313,26 +12738,26 @@ window.__ModuleLoader__.load({
|
|
|
12313
12738
|
}
|
|
12314
12739
|
tag$3.textContent = css$3;
|
|
12315
12740
|
var ChatSettingsView_module_css_default = {
|
|
12741
|
+
"select": "rp_wLpbxW_select",
|
|
12742
|
+
"message": "rp_wLpbxW_message",
|
|
12316
12743
|
"actions": "rp_wLpbxW_actions",
|
|
12744
|
+
"saved": "rp_wLpbxW_saved",
|
|
12317
12745
|
"activity": "rp_wLpbxW_activity",
|
|
12318
|
-
"message": "rp_wLpbxW_message",
|
|
12319
|
-
"view": "rp_wLpbxW_view",
|
|
12320
|
-
"field": "rp_wLpbxW_field",
|
|
12321
12746
|
"table": "rp_wLpbxW_table",
|
|
12322
|
-
"help": "rp_wLpbxW_help",
|
|
12323
|
-
"reasons": "rp_wLpbxW_reasons",
|
|
12324
|
-
"pre": "rp_wLpbxW_pre",
|
|
12325
12747
|
"label": "rp_wLpbxW_label",
|
|
12326
|
-
"
|
|
12327
|
-
"title": "rp_wLpbxW_title",
|
|
12748
|
+
"description": "rp_wLpbxW_description",
|
|
12328
12749
|
"error": "rp_wLpbxW_error",
|
|
12329
|
-
"link": "rp_wLpbxW_link",
|
|
12330
|
-
"row": "rp_wLpbxW_row",
|
|
12331
12750
|
"run": "rp_wLpbxW_run",
|
|
12751
|
+
"field": "rp_wLpbxW_field",
|
|
12332
12752
|
"list": "rp_wLpbxW_list",
|
|
12333
|
-
"
|
|
12334
|
-
"
|
|
12335
|
-
"
|
|
12753
|
+
"notice": "rp_wLpbxW_notice",
|
|
12754
|
+
"reasons": "rp_wLpbxW_reasons",
|
|
12755
|
+
"view": "rp_wLpbxW_view",
|
|
12756
|
+
"title": "rp_wLpbxW_title",
|
|
12757
|
+
"pre": "rp_wLpbxW_pre",
|
|
12758
|
+
"link": "rp_wLpbxW_link",
|
|
12759
|
+
"help": "rp_wLpbxW_help",
|
|
12760
|
+
"row": "rp_wLpbxW_row"
|
|
12336
12761
|
};
|
|
12337
12762
|
//#endregion
|
|
12338
12763
|
//#region src/client/chat-settings/settings-api.ts
|
|
@@ -13603,25 +14028,25 @@ window.__ModuleLoader__.load({
|
|
|
13603
14028
|
}
|
|
13604
14029
|
tag$2.textContent = css$2;
|
|
13605
14030
|
var NarrationView_module_css_default = {
|
|
14031
|
+
"name": "rp_NFPimG_name",
|
|
14032
|
+
"narration": "rp_NFPimG_narration",
|
|
14033
|
+
"note": "rp_NFPimG_note",
|
|
14034
|
+
"oocRefused": "rp_NFPimG_oocRefused",
|
|
13606
14035
|
"line": "rp_NFPimG_line",
|
|
14036
|
+
"oocNote": "rp_NFPimG_oocNote",
|
|
14037
|
+
"images": "rp_NFPimG_images",
|
|
14038
|
+
"sceneImage": "rp_NFPimG_sceneImage",
|
|
14039
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
13607
14040
|
"playLine": "rp_NFPimG_playLine",
|
|
14041
|
+
"playAll": "rp_NFPimG_playAll",
|
|
13608
14042
|
"speech": "rp_NFPimG_speech",
|
|
13609
14043
|
"preview": "rp_NFPimG_preview",
|
|
14044
|
+
"avatar": "rp_NFPimG_avatar",
|
|
13610
14045
|
"output": "rp_NFPimG_output",
|
|
13611
|
-
"note": "rp_NFPimG_note",
|
|
13612
|
-
"oocLabel": "rp_NFPimG_oocLabel",
|
|
13613
|
-
"oocRefused": "rp_NFPimG_oocRefused",
|
|
13614
|
-
"sceneImage": "rp_NFPimG_sceneImage",
|
|
13615
14046
|
"words": "rp_NFPimG_words",
|
|
13616
|
-
"
|
|
13617
|
-
"
|
|
13618
|
-
"imageError": "rp_NFPimG_imageError"
|
|
13619
|
-
"playAll": "rp_NFPimG_playAll",
|
|
13620
|
-
"name": "rp_NFPimG_name",
|
|
13621
|
-
"narration": "rp_NFPimG_narration",
|
|
13622
|
-
"oocNote": "rp_NFPimG_oocNote",
|
|
13623
|
-
"imageButton": "rp_NFPimG_imageButton",
|
|
13624
|
-
"imageStatus": "rp_NFPimG_imageStatus"
|
|
14047
|
+
"oocLabel": "rp_NFPimG_oocLabel",
|
|
14048
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
14049
|
+
"imageError": "rp_NFPimG_imageError"
|
|
13625
14050
|
};
|
|
13626
14051
|
//#endregion
|
|
13627
14052
|
//#region src/client/transcript/PreviewNode.tsx
|
|
@@ -13871,11 +14296,11 @@ window.__ModuleLoader__.load({
|
|
|
13871
14296
|
}
|
|
13872
14297
|
tag$1.textContent = css$1;
|
|
13873
14298
|
var SuggestionsDock_module_css_default = {
|
|
14299
|
+
"label": "rp_rWH4DG_label",
|
|
14300
|
+
"card": "rp_rWH4DG_card",
|
|
13874
14301
|
"lines": "rp_rWH4DG_lines",
|
|
13875
14302
|
"dock": "rp_rWH4DG_dock",
|
|
13876
|
-
"chip": "rp_rWH4DG_chip"
|
|
13877
|
-
"label": "rp_rWH4DG_label",
|
|
13878
|
-
"card": "rp_rWH4DG_card"
|
|
14303
|
+
"chip": "rp_rWH4DG_chip"
|
|
13879
14304
|
};
|
|
13880
14305
|
//#endregion
|
|
13881
14306
|
//#region src/client/transcript/SuggestionsDock.tsx
|
|
@@ -13986,12 +14411,12 @@ window.__ModuleLoader__.load({
|
|
|
13986
14411
|
}
|
|
13987
14412
|
tag.textContent = css;
|
|
13988
14413
|
var TurnsDock_module_css_default = {
|
|
14414
|
+
"select": "rp_f4YLlq_select",
|
|
13989
14415
|
"error": "rp_f4YLlq_error",
|
|
13990
|
-
"button": "rp_f4YLlq_button",
|
|
13991
14416
|
"dock": "rp_f4YLlq_dock",
|
|
14417
|
+
"button": "rp_f4YLlq_button",
|
|
13992
14418
|
"group": "rp_f4YLlq_group",
|
|
13993
|
-
"count": "rp_f4YLlq_count"
|
|
13994
|
-
"select": "rp_f4YLlq_select"
|
|
14419
|
+
"count": "rp_f4YLlq_count"
|
|
13995
14420
|
};
|
|
13996
14421
|
//#endregion
|
|
13997
14422
|
//#region src/client/transcript/withdrawn.ts
|