@dsh-agentic-roleplay/core 0.5.0 → 0.6.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/access-EbNdZFbk.js +25 -0
- package/lib/{authoring-tools-Ch_3oIKC.js → authoring-tools-BGzzW6O5.js} +5 -5
- package/lib/authoring.js +5 -5
- package/lib/{access-tN5D3WI8.js → child-D5SVNk4O.js} +58 -78
- package/lib/client.js +819 -327
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +3 -2
- package/lib/doctor.js +3 -3
- package/lib/helper.js +26 -0
- package/lib/{hooks-C7gt2c01.js → hooks-BLperIIB.js} +70 -7
- package/lib/images.js +1 -1
- package/lib/index.js +43 -11
- package/lib/{lorebook-author-tools-DII7Xt7Q.js → lorebook-author-tools-C-cFiE6E.js} +5 -5
- package/lib/lorebook-authoring.js +3 -3
- package/lib/{narration-DstnwrvX.js → narration-_dA9oIt2.js} +57 -2
- package/lib/orchestration.js +364 -46
- package/lib/{pack-jail-AzR6dCNm.js → pack-jail-BKFmbYP8.js} +8 -8
- package/lib/{packs-C7g534Mi.js → packs-ZTG7fWut.js} +2 -2
- package/lib/{presenter-agent-BsC6Vftz.js → presenter-agent-BHSbyWwZ.js} +3 -2
- package/lib/{preset-Drfu_K-H.js → preset-CJLW8Mp0.js} +3 -3
- package/lib/{preset-author-tools-CdIsFhQw.js → preset-author-tools-1RstgEZs.js} +5 -5
- package/lib/preset-authoring.js +4 -4
- package/lib/{presets-CADd77WB.js → presets-DcPCnn8O.js} +3 -3
- package/lib/{reflection-CUGuPAZR.js → reflection-6qfOC5OT.js} +235 -31
- package/package.json +4 -3
- package/prompts/en/roleplay/check-rule.md +3 -0
- package/prompts/en/roleplay/decide-reflection.md +3 -0
- package/prompts/en/roleplay/decide-trigger.md +3 -0
- package/prompts/en/roleplay/gate-agency.md +1 -0
- package/prompts/en/roleplay/gate-refusal.md +1 -0
- package/prompts/en/roleplay/gate-secret.md +3 -0
- package/prompts/zh/roleplay/check-rule.md +3 -0
- package/prompts/zh/roleplay/decide-reflection.md +3 -0
- package/prompts/zh/roleplay/decide-trigger.md +3 -0
- package/prompts/zh/roleplay/gate-agency.md +1 -0
- package/prompts/zh/roleplay/gate-refusal.md +1 -0
- package/prompts/zh/roleplay/gate-secret.md +3 -0
package/lib/client.js
CHANGED
|
@@ -37,8 +37,8 @@ window.__ModuleLoader__.load({
|
|
|
37
37
|
}
|
|
38
38
|
tag$32.textContent = css$32;
|
|
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
|
|
@@ -93,10 +93,10 @@ window.__ModuleLoader__.load({
|
|
|
93
93
|
}
|
|
94
94
|
tag$31.textContent = css$31;
|
|
95
95
|
var RoleplayPanel_module_css_default = {
|
|
96
|
-
"
|
|
97
|
-
"header": "rp_ua5gBa_header",
|
|
96
|
+
"body": "rp_ua5gBa_body",
|
|
98
97
|
"panel": "rp_ua5gBa_panel",
|
|
99
|
-
"
|
|
98
|
+
"header": "rp_ua5gBa_header",
|
|
99
|
+
"title": "rp_ua5gBa_title"
|
|
100
100
|
};
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/client/panel/RoleplayPanel.tsx
|
|
@@ -429,34 +429,34 @@ window.__ModuleLoader__.load({
|
|
|
429
429
|
}
|
|
430
430
|
tag$30.textContent = css$30;
|
|
431
431
|
var ImportCard_module_css_default = {
|
|
432
|
-
"noPicture": "rp_5cvtma_noPicture",
|
|
433
|
-
"picture": "rp_5cvtma_picture",
|
|
434
432
|
"title": "rp_5cvtma_title",
|
|
435
|
-
"body": "rp_5cvtma_body",
|
|
436
|
-
"page": "rp_5cvtma_page",
|
|
437
|
-
"section": "rp_5cvtma_section",
|
|
438
|
-
"row": "rp_5cvtma_row",
|
|
439
|
-
"entry": "rp_5cvtma_entry",
|
|
440
|
-
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
441
|
-
"entryTitle": "rp_5cvtma_entryTitle",
|
|
442
|
-
"choice": "rp_5cvtma_choice",
|
|
443
|
-
"label": "rp_5cvtma_label",
|
|
444
|
-
"choiceText": "rp_5cvtma_choiceText",
|
|
445
|
-
"header": "rp_5cvtma_header",
|
|
446
433
|
"error": "rp_5cvtma_error",
|
|
434
|
+
"heading": "rp_5cvtma_heading",
|
|
435
|
+
"top": "rp_5cvtma_top",
|
|
436
|
+
"note": "rp_5cvtma_note",
|
|
447
437
|
"field": "rp_5cvtma_field",
|
|
438
|
+
"row": "rp_5cvtma_row",
|
|
448
439
|
"tags": "rp_5cvtma_tags",
|
|
440
|
+
"about": "rp_5cvtma_about",
|
|
449
441
|
"fieldMeta": "rp_5cvtma_fieldMeta",
|
|
442
|
+
"entryTitle": "rp_5cvtma_entryTitle",
|
|
450
443
|
"text": "rp_5cvtma_text",
|
|
451
|
-
"
|
|
452
|
-
"
|
|
453
|
-
"
|
|
444
|
+
"noPicture": "rp_5cvtma_noPicture",
|
|
445
|
+
"header": "rp_5cvtma_header",
|
|
446
|
+
"fieldTitle": "rp_5cvtma_fieldTitle",
|
|
447
|
+
"choiceText": "rp_5cvtma_choiceText",
|
|
448
|
+
"section": "rp_5cvtma_section",
|
|
454
449
|
"fieldHead": "rp_5cvtma_fieldHead",
|
|
455
|
-
"
|
|
456
|
-
"
|
|
450
|
+
"label": "rp_5cvtma_label",
|
|
451
|
+
"picture": "rp_5cvtma_picture",
|
|
452
|
+
"entry": "rp_5cvtma_entry",
|
|
453
|
+
"entryHead": "rp_5cvtma_entryHead",
|
|
454
|
+
"body": "rp_5cvtma_body",
|
|
457
455
|
"entryOff": "rp_5cvtma_entryOff",
|
|
458
|
-
"
|
|
459
|
-
"
|
|
456
|
+
"page": "rp_5cvtma_page",
|
|
457
|
+
"choice": "rp_5cvtma_choice",
|
|
458
|
+
"preview": "rp_5cvtma_preview",
|
|
459
|
+
"space": "rp_5cvtma_space"
|
|
460
460
|
};
|
|
461
461
|
//#endregion
|
|
462
462
|
//#region src/client/widgets/import-card/ImportCard.tsx
|
|
@@ -804,7 +804,7 @@ window.__ModuleLoader__.load({
|
|
|
804
804
|
}
|
|
805
805
|
//#endregion
|
|
806
806
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/catalogue/CataloguePage.module.css.mjs
|
|
807
|
-
const css$29 = ".rp_qK1u-G_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_qK1u-G_toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:8px;min-height:32px;display:flex}.rp_qK1u-G_spacer{flex:auto}.rp_qK1u-G_select,.rp_qK1u-G_search{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_qK1u-G_search{min-width:200px}.rp_qK1u-G_select:focus-visible,.rp_qK1u-G_search:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_qK1u-G_status{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.rp_qK1u-G_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_qK1u-G_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_qK1u-G_grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_qK1u-G_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);min-width:0;font:inherit;text-align:left;color:inherit;background:var(--dsw-alias-settings-card-fill);cursor:pointer;flex-direction:column;padding:0;transition:border-color .12s;display:flex;overflow:hidden}.rp_qK1u-G_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_qK1u-G_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_qK1u-G_cover{aspect-ratio:4/3;background:var(--dsw-alias-bg-layer-3)}.rp_qK1u-G_image{object-fit:cover;width:100%;height:100%;display:block}.rp_qK1u-G_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:36px;font-weight:500;display:flex}.rp_qK1u-G_body{flex-direction:column;gap:4px;padding:8px 10px 10px;display:flex}.rp_qK1u-G_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_qK1u-G_meta{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_qK1u-G_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_qK1u-G_more{justify-content:center;padding:12px 0;display:flex}.rp_qK1u-G_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_qK1u-G_form{flex-direction:column;gap:8px;display:flex}.rp_qK1u-G_field{flex-direction:column;gap:4px;display:flex}.rp_qK1u-G_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_qK1u-G_detail{flex-direction:column;gap:8px;font-size:13px;display:flex}.rp_qK1u-G_description{white-space:pre-wrap;max-height:240px;color:var(--dsw-alias-label-secondary);margin:0;overflow-y:auto}.rp_qK1u-G_success{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_qK1u-G_kinds{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;gap:16px;display:flex}.rp_qK1u-G_kind{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:4px 0 6px;font-size:13px}.rp_qK1u-G_kind[aria-selected=true]{border-bottom-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_qK1u-G_kind:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_qK1u-G_updates{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.rp_qK1u-G_update{border:.5px solid var(--dsw-alias-state-business-primary);border-radius:var(--dsw-radius-sm);font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;padding:2px 8px}.rp_qK1u-G_warning{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);flex-direction:column;gap:8px;padding:8px 12px;font-size:12px;display:flex}.rp_qK1u-G_warning p{margin:0}.rp_qK1u-G_changes{font-family:var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-tertiary);margin:0;padding-left:16px;font-size:
|
|
807
|
+
const css$29 = ".rp_qK1u-G_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_qK1u-G_toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:8px;min-height:32px;display:flex}.rp_qK1u-G_spacer{flex:auto}.rp_qK1u-G_select,.rp_qK1u-G_search{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_qK1u-G_search{min-width:200px}.rp_qK1u-G_select:focus-visible,.rp_qK1u-G_search:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:none}.rp_qK1u-G_status{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.rp_qK1u-G_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_qK1u-G_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_qK1u-G_grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_qK1u-G_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);min-width:0;font:inherit;text-align:left;color:inherit;background:var(--dsw-alias-settings-card-fill);cursor:pointer;flex-direction:column;padding:0;transition:border-color .12s;display:flex;overflow:hidden}.rp_qK1u-G_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_qK1u-G_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_qK1u-G_cover{aspect-ratio:4/3;background:var(--dsw-alias-bg-layer-3)}.rp_qK1u-G_image{object-fit:cover;width:100%;height:100%;display:block}.rp_qK1u-G_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:36px;font-weight:500;display:flex}.rp_qK1u-G_body{flex-direction:column;gap:4px;padding:8px 10px 10px;display:flex}.rp_qK1u-G_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_qK1u-G_meta{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_qK1u-G_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_qK1u-G_more{justify-content:center;padding:12px 0;display:flex}.rp_qK1u-G_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 24px;font-size:13px}.rp_qK1u-G_form{flex-direction:column;gap:8px;display:flex}.rp_qK1u-G_field{flex-direction:column;gap:4px;display:flex}.rp_qK1u-G_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_qK1u-G_detail{flex-direction:column;gap:8px;font-size:13px;display:flex}.rp_qK1u-G_description{white-space:pre-wrap;max-height:240px;color:var(--dsw-alias-label-secondary);margin:0;overflow-y:auto}.rp_qK1u-G_success{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_qK1u-G_kinds{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;gap:16px;display:flex}.rp_qK1u-G_kind{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:4px 0 6px;font-size:13px}.rp_qK1u-G_kind[aria-selected=true]{border-bottom-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_qK1u-G_kind:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.rp_qK1u-G_updates{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.rp_qK1u-G_update{border:.5px solid var(--dsw-alias-state-business-primary);border-radius:var(--dsw-radius-sm);font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;padding:2px 8px}.rp_qK1u-G_warning{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);flex-direction:column;gap:8px;padding:8px 12px;font-size:12px;display:flex}.rp_qK1u-G_warning p{margin:0}.rp_qK1u-G_changes{font-family:var(--dsw-font-mono,monospace);color:var(--dsw-alias-label-tertiary);margin:0;padding-left:16px;font-size:12px}.rp_qK1u-G_actions{flex-wrap:wrap;gap:8px;display:flex}";
|
|
808
808
|
const key$29 = "src/client/pages/catalogue/CataloguePage.module.css";
|
|
809
809
|
let tag$29 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$29) + "]");
|
|
810
810
|
if (tag$29 === null) {
|
|
@@ -815,38 +815,38 @@ window.__ModuleLoader__.load({
|
|
|
815
815
|
}
|
|
816
816
|
tag$29.textContent = css$29;
|
|
817
817
|
var CataloguePage_module_css_default = {
|
|
818
|
+
"notice": "rp_qK1u-G_notice",
|
|
819
|
+
"field": "rp_qK1u-G_field",
|
|
820
|
+
"message": "rp_qK1u-G_message",
|
|
821
|
+
"name": "rp_qK1u-G_name",
|
|
822
|
+
"update": "rp_qK1u-G_update",
|
|
823
|
+
"kinds": "rp_qK1u-G_kinds",
|
|
818
824
|
"warning": "rp_qK1u-G_warning",
|
|
819
|
-
"
|
|
825
|
+
"actions": "rp_qK1u-G_actions",
|
|
826
|
+
"image": "rp_qK1u-G_image",
|
|
827
|
+
"toolbar": "rp_qK1u-G_toolbar",
|
|
828
|
+
"meta": "rp_qK1u-G_meta",
|
|
829
|
+
"status": "rp_qK1u-G_status",
|
|
820
830
|
"tags": "rp_qK1u-G_tags",
|
|
821
831
|
"grid": "rp_qK1u-G_grid",
|
|
822
|
-
"
|
|
823
|
-
"
|
|
824
|
-
"detail": "rp_qK1u-G_detail",
|
|
832
|
+
"updates": "rp_qK1u-G_updates",
|
|
833
|
+
"select": "rp_qK1u-G_select",
|
|
825
834
|
"viewport": "rp_qK1u-G_viewport",
|
|
826
|
-
"search": "rp_qK1u-G_search",
|
|
827
|
-
"notice": "rp_qK1u-G_notice",
|
|
828
|
-
"field": "rp_qK1u-G_field",
|
|
829
|
-
"message": "rp_qK1u-G_message",
|
|
830
|
-
"body": "rp_qK1u-G_body",
|
|
831
|
-
"changes": "rp_qK1u-G_changes",
|
|
832
|
-
"description": "rp_qK1u-G_description",
|
|
833
835
|
"cover": "rp_qK1u-G_cover",
|
|
836
|
+
"detail": "rp_qK1u-G_detail",
|
|
834
837
|
"success": "rp_qK1u-G_success",
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
"
|
|
839
|
-
"updates": "rp_qK1u-G_updates",
|
|
838
|
+
"search": "rp_qK1u-G_search",
|
|
839
|
+
"page": "rp_qK1u-G_page",
|
|
840
|
+
"more": "rp_qK1u-G_more",
|
|
841
|
+
"placeholder": "rp_qK1u-G_placeholder",
|
|
840
842
|
"card": "rp_qK1u-G_card",
|
|
841
|
-
"
|
|
842
|
-
"
|
|
843
|
-
"
|
|
843
|
+
"body": "rp_qK1u-G_body",
|
|
844
|
+
"kind": "rp_qK1u-G_kind",
|
|
845
|
+
"changes": "rp_qK1u-G_changes",
|
|
844
846
|
"label": "rp_qK1u-G_label",
|
|
845
|
-
"
|
|
847
|
+
"spacer": "rp_qK1u-G_spacer",
|
|
846
848
|
"form": "rp_qK1u-G_form",
|
|
847
|
-
"
|
|
848
|
-
"more": "rp_qK1u-G_more",
|
|
849
|
-
"update": "rp_qK1u-G_update"
|
|
849
|
+
"description": "rp_qK1u-G_description"
|
|
850
850
|
};
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region src/client/pages/catalogue/ImportUrlDialog.tsx
|
|
@@ -1049,19 +1049,19 @@ window.__ModuleLoader__.load({
|
|
|
1049
1049
|
}
|
|
1050
1050
|
tag$28.textContent = css$28;
|
|
1051
1051
|
var ImportSelection_module_css_default = {
|
|
1052
|
-
"extra": "rp_Jx0l4q_extra",
|
|
1053
|
-
"count": "rp_Jx0l4q_count",
|
|
1054
|
-
"text": "rp_Jx0l4q_text",
|
|
1055
|
-
"help": "rp_Jx0l4q_help",
|
|
1056
1052
|
"meta": "rp_Jx0l4q_meta",
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1053
|
+
"help": "rp_Jx0l4q_help",
|
|
1054
|
+
"extra": "rp_Jx0l4q_extra",
|
|
1059
1055
|
"bar": "rp_Jx0l4q_bar",
|
|
1060
1056
|
"list": "rp_Jx0l4q_list",
|
|
1061
|
-
"
|
|
1057
|
+
"full": "rp_Jx0l4q_full",
|
|
1058
|
+
"count": "rp_Jx0l4q_count",
|
|
1062
1059
|
"note": "rp_Jx0l4q_note",
|
|
1063
|
-
"
|
|
1064
|
-
"
|
|
1060
|
+
"body": "rp_Jx0l4q_body",
|
|
1061
|
+
"sampling": "rp_Jx0l4q_sampling",
|
|
1062
|
+
"text": "rp_Jx0l4q_text",
|
|
1063
|
+
"row": "rp_Jx0l4q_row",
|
|
1064
|
+
"error": "rp_Jx0l4q_error"
|
|
1065
1065
|
};
|
|
1066
1066
|
//#endregion
|
|
1067
1067
|
//#region src/client/widgets/import-selection/ImportSelection.tsx
|
|
@@ -2933,40 +2933,40 @@ window.__ModuleLoader__.load({
|
|
|
2933
2933
|
}
|
|
2934
2934
|
tag$27.textContent = css$27;
|
|
2935
2935
|
var CharactersPanel_module_css_default = {
|
|
2936
|
-
"
|
|
2937
|
-
"
|
|
2938
|
-
"sheet": "rp_5ZMIxq_sheet",
|
|
2939
|
-
"barText": "rp_5ZMIxq_barText",
|
|
2940
|
-
"grid": "rp_5ZMIxq_grid",
|
|
2936
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
2937
|
+
"tabs": "rp_5ZMIxq_tabs",
|
|
2941
2938
|
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
2942
|
-
"
|
|
2943
|
-
"
|
|
2944
|
-
"portrait": "rp_5ZMIxq_portrait",
|
|
2945
|
-
"section": "rp_5ZMIxq_section",
|
|
2946
|
-
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
2947
|
-
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
2948
|
-
"row": "rp_5ZMIxq_row",
|
|
2939
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
2940
|
+
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
2949
2941
|
"initial": "rp_5ZMIxq_initial",
|
|
2950
|
-
"
|
|
2951
|
-
"
|
|
2942
|
+
"grid": "rp_5ZMIxq_grid",
|
|
2943
|
+
"section": "rp_5ZMIxq_section",
|
|
2944
|
+
"panel": "rp_5ZMIxq_panel",
|
|
2945
|
+
"goal": "rp_5ZMIxq_goal",
|
|
2952
2946
|
"error": "rp_5ZMIxq_error",
|
|
2947
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
2948
|
+
"empty": "rp_5ZMIxq_empty",
|
|
2953
2949
|
"tab": "rp_5ZMIxq_tab",
|
|
2954
|
-
"
|
|
2955
|
-
"
|
|
2956
|
-
"
|
|
2957
|
-
"
|
|
2958
|
-
"
|
|
2950
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
2951
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
2952
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
2953
|
+
"select": "rp_5ZMIxq_select",
|
|
2954
|
+
"row": "rp_5ZMIxq_row",
|
|
2959
2955
|
"bar": "rp_5ZMIxq_bar",
|
|
2960
|
-
"
|
|
2956
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
2957
|
+
"field": "rp_5ZMIxq_field",
|
|
2958
|
+
"head": "rp_5ZMIxq_head",
|
|
2959
|
+
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
2960
|
+
"body": "rp_5ZMIxq_body",
|
|
2961
2961
|
"placeholder": "rp_5ZMIxq_placeholder",
|
|
2962
|
-
"
|
|
2963
|
-
"help": "rp_5ZMIxq_help",
|
|
2964
|
-
"panel": "rp_5ZMIxq_panel",
|
|
2962
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
2965
2963
|
"missing": "rp_5ZMIxq_missing",
|
|
2966
|
-
"
|
|
2967
|
-
"
|
|
2968
|
-
"
|
|
2969
|
-
"
|
|
2964
|
+
"label": "rp_5ZMIxq_label",
|
|
2965
|
+
"help": "rp_5ZMIxq_help",
|
|
2966
|
+
"area": "rp_5ZMIxq_area",
|
|
2967
|
+
"meta": "rp_5ZMIxq_meta",
|
|
2968
|
+
"barText": "rp_5ZMIxq_barText",
|
|
2969
|
+
"wide": "rp_5ZMIxq_wide"
|
|
2970
2970
|
};
|
|
2971
2971
|
//#endregion
|
|
2972
2972
|
//#region src/client/world-editor/EditorTabs.tsx
|
|
@@ -4680,7 +4680,7 @@ window.__ModuleLoader__.load({
|
|
|
4680
4680
|
}
|
|
4681
4681
|
//#endregion
|
|
4682
4682
|
//#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
|
|
4683
|
-
const css$26 = ".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:
|
|
4683
|
+
const css$26 = ".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:12px}.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:16px}.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:12px}.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}}";
|
|
4684
4684
|
const key$26 = "src/client/world-editor/RelationsPanel.module.css";
|
|
4685
4685
|
let tag$26 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$26) + "]");
|
|
4686
4686
|
if (tag$26 === null) {
|
|
@@ -4691,39 +4691,39 @@ window.__ModuleLoader__.load({
|
|
|
4691
4691
|
}
|
|
4692
4692
|
tag$26.textContent = css$26;
|
|
4693
4693
|
var RelationsPanel_module_css_default = {
|
|
4694
|
-
"
|
|
4695
|
-
"
|
|
4696
|
-
"
|
|
4697
|
-
"
|
|
4698
|
-
"node_location": "rp_7pEHTW_node_location",
|
|
4699
|
-
"error": "rp_7pEHTW_error",
|
|
4694
|
+
"metrics": "rp_7pEHTW_metrics",
|
|
4695
|
+
"status": "rp_7pEHTW_status",
|
|
4696
|
+
"node_character": "rp_7pEHTW_node_character",
|
|
4697
|
+
"actions": "rp_7pEHTW_actions",
|
|
4700
4698
|
"empty": "rp_7pEHTW_empty",
|
|
4701
|
-
"
|
|
4702
|
-
"perspective": "rp_7pEHTW_perspective",
|
|
4703
|
-
"panel": "rp_7pEHTW_panel",
|
|
4704
|
-
"entities": "rp_7pEHTW_entities",
|
|
4705
|
-
"workspace": "rp_7pEHTW_workspace",
|
|
4706
|
-
"list": "rp_7pEHTW_list",
|
|
4707
|
-
"edge": "rp_7pEHTW_edge",
|
|
4708
|
-
"head": "rp_7pEHTW_head",
|
|
4709
|
-
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
4699
|
+
"graph": "rp_7pEHTW_graph",
|
|
4710
4700
|
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
4711
|
-
"
|
|
4701
|
+
"wide": "rp_7pEHTW_wide",
|
|
4702
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
4703
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
4704
|
+
"entities": "rp_7pEHTW_entities",
|
|
4712
4705
|
"toolbar": "rp_7pEHTW_toolbar",
|
|
4713
|
-
"actions": "rp_7pEHTW_actions",
|
|
4714
|
-
"filter": "rp_7pEHTW_filter",
|
|
4715
4706
|
"filterOn": "rp_7pEHTW_filterOn",
|
|
4707
|
+
"space": "rp_7pEHTW_space",
|
|
4708
|
+
"head": "rp_7pEHTW_head",
|
|
4716
4709
|
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
4717
|
-
"wide": "rp_7pEHTW_wide",
|
|
4718
4710
|
"form": "rp_7pEHTW_form",
|
|
4719
|
-
"
|
|
4720
|
-
"status": "rp_7pEHTW_status",
|
|
4721
|
-
"node_item": "rp_7pEHTW_node_item",
|
|
4711
|
+
"edge": "rp_7pEHTW_edge",
|
|
4722
4712
|
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
4723
|
-
"
|
|
4713
|
+
"node": "rp_7pEHTW_node",
|
|
4714
|
+
"perspective": "rp_7pEHTW_perspective",
|
|
4715
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
4716
|
+
"notice": "rp_7pEHTW_notice",
|
|
4717
|
+
"node_faction": "rp_7pEHTW_node_faction",
|
|
4718
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
4719
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
4724
4720
|
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
4725
|
-
"
|
|
4726
|
-
"
|
|
4721
|
+
"error": "rp_7pEHTW_error",
|
|
4722
|
+
"filter": "rp_7pEHTW_filter",
|
|
4723
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
4724
|
+
"list": "rp_7pEHTW_list",
|
|
4725
|
+
"check": "rp_7pEHTW_check",
|
|
4726
|
+
"panel": "rp_7pEHTW_panel"
|
|
4727
4727
|
};
|
|
4728
4728
|
//#endregion
|
|
4729
4729
|
//#region src/client/world-editor/RelationsPanel.tsx
|
|
@@ -6098,12 +6098,12 @@ window.__ModuleLoader__.load({
|
|
|
6098
6098
|
}
|
|
6099
6099
|
tag$25.textContent = css$25;
|
|
6100
6100
|
var PackFrame_module_css_default = {
|
|
6101
|
-
"tab": "rp_h_sbFq_tab",
|
|
6102
|
-
"fill": "rp_h_sbFq_fill",
|
|
6103
|
-
"problems": "rp_h_sbFq_problems",
|
|
6104
6101
|
"frame": "rp_h_sbFq_frame",
|
|
6102
|
+
"tab": "rp_h_sbFq_tab",
|
|
6105
6103
|
"hud": "rp_h_sbFq_hud",
|
|
6106
|
-
"
|
|
6104
|
+
"fill": "rp_h_sbFq_fill",
|
|
6105
|
+
"message": "rp_h_sbFq_message",
|
|
6106
|
+
"problems": "rp_h_sbFq_problems"
|
|
6107
6107
|
};
|
|
6108
6108
|
//#endregion
|
|
6109
6109
|
//#region src/client/widgets/pack-frame/theme.ts
|
|
@@ -6366,13 +6366,13 @@ window.__ModuleLoader__.load({
|
|
|
6366
6366
|
}
|
|
6367
6367
|
tag$24.textContent = css$24;
|
|
6368
6368
|
var PacksPanel_module_css_default = {
|
|
6369
|
-
"group": "rp_FLaP7q_group",
|
|
6370
|
-
"log": "rp_FLaP7q_log",
|
|
6371
|
-
"stage": "rp_FLaP7q_stage",
|
|
6372
6369
|
"files": "rp_FLaP7q_files",
|
|
6373
|
-
"stageTall": "rp_FLaP7q_stageTall",
|
|
6374
6370
|
"note": "rp_FLaP7q_note",
|
|
6375
|
-
"
|
|
6371
|
+
"stage": "rp_FLaP7q_stage",
|
|
6372
|
+
"group": "rp_FLaP7q_group",
|
|
6373
|
+
"controls": "rp_FLaP7q_controls",
|
|
6374
|
+
"stageTall": "rp_FLaP7q_stageTall",
|
|
6375
|
+
"log": "rp_FLaP7q_log"
|
|
6376
6376
|
};
|
|
6377
6377
|
//#endregion
|
|
6378
6378
|
//#region src/client/world-editor/PacksPanel.tsx
|
|
@@ -7474,11 +7474,11 @@ window.__ModuleLoader__.load({
|
|
|
7474
7474
|
tag$23.textContent = css$23;
|
|
7475
7475
|
var SamplingFields_module_css_default = {
|
|
7476
7476
|
"field": "rp_9vxYSG_field",
|
|
7477
|
+
"help": "rp_9vxYSG_help",
|
|
7477
7478
|
"input": "rp_9vxYSG_input",
|
|
7478
|
-
"grid": "rp_9vxYSG_grid",
|
|
7479
|
-
"label": "rp_9vxYSG_label",
|
|
7480
7479
|
"root": "rp_9vxYSG_root",
|
|
7481
|
-
"
|
|
7480
|
+
"grid": "rp_9vxYSG_grid",
|
|
7481
|
+
"label": "rp_9vxYSG_label"
|
|
7482
7482
|
};
|
|
7483
7483
|
//#endregion
|
|
7484
7484
|
//#region src/client/widgets/sampling-fields/SamplingFields.tsx
|
|
@@ -8884,7 +8884,7 @@ window.__ModuleLoader__.load({
|
|
|
8884
8884
|
}
|
|
8885
8885
|
//#endregion
|
|
8886
8886
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/tool-switches/ToolSwitches.module.css.mjs
|
|
8887
|
-
const css$22 = ".rp_CjoFLq_root{flex-direction:column;gap:12px;display:flex}.rp_CjoFLq_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_CjoFLq_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_CjoFLq_agent{border-top:1px solid var(--dsw-alias-border-l3);flex-direction:column;gap:6px;padding:8px 0;display:flex}.rp_CjoFLq_agentName{font-size:14px;font-weight:500}.rp_CjoFLq_hint{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_CjoFLq_tool{cursor:pointer;align-items:flex-start;gap:8px;font-size:13px;display:flex}.rp_CjoFLq_tool input{margin-top:3px}.rp_CjoFLq_toolText{flex-direction:column;display:flex}.rp_CjoFLq_default{color:var(--dsw-alias-label-tertiary);margin-left:6px;font-size:
|
|
8887
|
+
const css$22 = ".rp_CjoFLq_root{flex-direction:column;gap:12px;display:flex}.rp_CjoFLq_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_CjoFLq_help{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_CjoFLq_agent{border-top:1px solid var(--dsw-alias-border-l3);flex-direction:column;gap:6px;padding:8px 0;display:flex}.rp_CjoFLq_agentName{font-size:14px;font-weight:500}.rp_CjoFLq_hint{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_CjoFLq_tool{cursor:pointer;align-items:flex-start;gap:8px;font-size:13px;display:flex}.rp_CjoFLq_tool input{margin-top:3px}.rp_CjoFLq_toolText{flex-direction:column;display:flex}.rp_CjoFLq_default{color:var(--dsw-alias-label-tertiary);margin-left:6px;font-size:12px}.rp_CjoFLq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_CjoFLq_external{flex-direction:column;gap:6px;margin-top:4px;display:flex}.rp_CjoFLq_external>summary{cursor:pointer}";
|
|
8888
8888
|
const key$22 = "src/client/widgets/tool-switches/ToolSwitches.module.css";
|
|
8889
8889
|
let tag$22 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$22) + "]");
|
|
8890
8890
|
if (tag$22 === null) {
|
|
@@ -8896,15 +8896,15 @@ window.__ModuleLoader__.load({
|
|
|
8896
8896
|
tag$22.textContent = css$22;
|
|
8897
8897
|
var ToolSwitches_module_css_default = {
|
|
8898
8898
|
"title": "rp_CjoFLq_title",
|
|
8899
|
-
"help": "rp_CjoFLq_help",
|
|
8900
8899
|
"agentName": "rp_CjoFLq_agentName",
|
|
8901
|
-
"toolText": "rp_CjoFLq_toolText",
|
|
8902
|
-
"agent": "rp_CjoFLq_agent",
|
|
8903
8900
|
"error": "rp_CjoFLq_error",
|
|
8904
|
-
"external": "rp_CjoFLq_external",
|
|
8905
8901
|
"hint": "rp_CjoFLq_hint",
|
|
8902
|
+
"help": "rp_CjoFLq_help",
|
|
8903
|
+
"agent": "rp_CjoFLq_agent",
|
|
8906
8904
|
"root": "rp_CjoFLq_root",
|
|
8905
|
+
"toolText": "rp_CjoFLq_toolText",
|
|
8907
8906
|
"default": "rp_CjoFLq_default",
|
|
8907
|
+
"external": "rp_CjoFLq_external",
|
|
8908
8908
|
"tool": "rp_CjoFLq_tool"
|
|
8909
8909
|
};
|
|
8910
8910
|
//#endregion
|
|
@@ -9905,7 +9905,7 @@ window.__ModuleLoader__.load({
|
|
|
9905
9905
|
const imageUrl = (target, image) => `${route(target, "/file")}&path=${encodeURIComponent(image.path)}&v=${encodeURIComponent(image.createdAt)}`;
|
|
9906
9906
|
//#endregion
|
|
9907
9907
|
//#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
|
|
9908
|
-
const css$21 = ".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:
|
|
9908
|
+
const css$21 = ".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:12px;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:12px;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:12px}.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))}}";
|
|
9909
9909
|
const key$21 = "src/client/widgets/gallery-view/GalleryView.module.css";
|
|
9910
9910
|
let tag$21 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$21) + "]");
|
|
9911
9911
|
if (tag$21 === null) {
|
|
@@ -9916,33 +9916,33 @@ window.__ModuleLoader__.load({
|
|
|
9916
9916
|
}
|
|
9917
9917
|
tag$21.textContent = css$21;
|
|
9918
9918
|
var GalleryView_module_css_default = {
|
|
9919
|
-
"
|
|
9920
|
-
"
|
|
9921
|
-
"count": "rp_9pSHmG_count",
|
|
9919
|
+
"actions": "rp_9pSHmG_actions",
|
|
9920
|
+
"page": "rp_9pSHmG_page",
|
|
9922
9921
|
"open": "rp_9pSHmG_open",
|
|
9923
|
-
"
|
|
9924
|
-
"
|
|
9925
|
-
"
|
|
9926
|
-
"
|
|
9922
|
+
"pre": "rp_9pSHmG_pre",
|
|
9923
|
+
"message": "rp_9pSHmG_message",
|
|
9924
|
+
"error": "rp_9pSHmG_error",
|
|
9925
|
+
"editHelp": "rp_9pSHmG_editHelp",
|
|
9926
|
+
"count": "rp_9pSHmG_count",
|
|
9927
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
9927
9928
|
"facts": "rp_9pSHmG_facts",
|
|
9929
|
+
"tags": "rp_9pSHmG_tags",
|
|
9930
|
+
"status": "rp_9pSHmG_status",
|
|
9931
|
+
"cell": "rp_9pSHmG_cell",
|
|
9932
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
9933
|
+
"image": "rp_9pSHmG_image",
|
|
9934
|
+
"edit": "rp_9pSHmG_edit",
|
|
9935
|
+
"large": "rp_9pSHmG_large",
|
|
9928
9936
|
"note": "rp_9pSHmG_note",
|
|
9937
|
+
"thumb": "rp_9pSHmG_thumb",
|
|
9938
|
+
"caption": "rp_9pSHmG_caption",
|
|
9929
9939
|
"statusError": "rp_9pSHmG_statusError",
|
|
9930
|
-
"
|
|
9940
|
+
"detail": "rp_9pSHmG_detail",
|
|
9941
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
9931
9942
|
"editInput": "rp_9pSHmG_editInput",
|
|
9932
|
-
"thumb": "rp_9pSHmG_thumb",
|
|
9933
|
-
"message": "rp_9pSHmG_message",
|
|
9934
|
-
"toolbar": "rp_9pSHmG_toolbar",
|
|
9935
|
-
"pre": "rp_9pSHmG_pre",
|
|
9936
|
-
"image": "rp_9pSHmG_image",
|
|
9937
|
-
"error": "rp_9pSHmG_error",
|
|
9938
|
-
"actions": "rp_9pSHmG_actions",
|
|
9939
|
-
"status": "rp_9pSHmG_status",
|
|
9940
9943
|
"editArea": "rp_9pSHmG_editArea",
|
|
9941
|
-
"
|
|
9942
|
-
"
|
|
9943
|
-
"editHelp": "rp_9pSHmG_editHelp",
|
|
9944
|
-
"tags": "rp_9pSHmG_tags",
|
|
9945
|
-
"page": "rp_9pSHmG_page",
|
|
9944
|
+
"select": "rp_9pSHmG_select",
|
|
9945
|
+
"reusable": "rp_9pSHmG_reusable",
|
|
9946
9946
|
"editField": "rp_9pSHmG_editField",
|
|
9947
9947
|
"grid": "rp_9pSHmG_grid"
|
|
9948
9948
|
};
|
|
@@ -10285,14 +10285,14 @@ window.__ModuleLoader__.load({
|
|
|
10285
10285
|
}
|
|
10286
10286
|
tag$20.textContent = css$20;
|
|
10287
10287
|
var WorldEditor_module_css_default = {
|
|
10288
|
-
"content": "rp__swA3a_content",
|
|
10289
|
-
"drawerItem": "rp__swA3a_drawerItem",
|
|
10290
|
-
"warning": "rp__swA3a_warning",
|
|
10291
|
-
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
10292
10288
|
"view": "rp__swA3a_view",
|
|
10293
10289
|
"message": "rp__swA3a_message",
|
|
10294
|
-
"
|
|
10295
|
-
|
|
10290
|
+
"drawerItemOn": "rp__swA3a_drawerItemOn",
|
|
10291
|
+
"drawer": "rp__swA3a_drawer",
|
|
10292
|
+
"warning": "rp__swA3a_warning",
|
|
10293
|
+
"drawerItem": "rp__swA3a_drawerItem",
|
|
10294
|
+
"content": "rp__swA3a_content"
|
|
10295
|
+
};
|
|
10296
10296
|
//#endregion
|
|
10297
10297
|
//#region src/client/world-editor/WorldEditor.tsx
|
|
10298
10298
|
const SECTIONS = [
|
|
@@ -10687,27 +10687,27 @@ window.__ModuleLoader__.load({
|
|
|
10687
10687
|
}
|
|
10688
10688
|
tag$19.textContent = css$19;
|
|
10689
10689
|
var AvatarsPage_module_css_default = {
|
|
10690
|
-
"grid": "rp_pQOzEG_grid",
|
|
10691
10690
|
"toolbar": "rp_pQOzEG_toolbar",
|
|
10692
|
-
"
|
|
10693
|
-
"
|
|
10694
|
-
"
|
|
10695
|
-
"
|
|
10691
|
+
"label": "rp_pQOzEG_label",
|
|
10692
|
+
"field": "rp_pQOzEG_field",
|
|
10693
|
+
"open": "rp_pQOzEG_open",
|
|
10694
|
+
"text": "rp_pQOzEG_text",
|
|
10695
|
+
"summary": "rp_pQOzEG_summary",
|
|
10696
|
+
"page": "rp_pQOzEG_page",
|
|
10696
10697
|
"count": "rp_pQOzEG_count",
|
|
10698
|
+
"card": "rp_pQOzEG_card",
|
|
10697
10699
|
"viewport": "rp_pQOzEG_viewport",
|
|
10700
|
+
"portrait": "rp_pQOzEG_portrait",
|
|
10698
10701
|
"placeholder": "rp_pQOzEG_placeholder",
|
|
10699
|
-
"
|
|
10700
|
-
"field": "rp_pQOzEG_field",
|
|
10701
|
-
"label": "rp_pQOzEG_label",
|
|
10702
|
-
"page": "rp_pQOzEG_page",
|
|
10703
|
-
"text": "rp_pQOzEG_text",
|
|
10702
|
+
"editTitle": "rp_pQOzEG_editTitle",
|
|
10704
10703
|
"name": "rp_pQOzEG_name",
|
|
10705
|
-
"message": "rp_pQOzEG_message",
|
|
10706
10704
|
"editBody": "rp_pQOzEG_editBody",
|
|
10707
|
-
"open": "rp_pQOzEG_open",
|
|
10708
|
-
"editHeader": "rp_pQOzEG_editHeader",
|
|
10709
10705
|
"actions": "rp_pQOzEG_actions",
|
|
10710
|
-
"
|
|
10706
|
+
"message": "rp_pQOzEG_message",
|
|
10707
|
+
"form": "rp_pQOzEG_form",
|
|
10708
|
+
"editHeader": "rp_pQOzEG_editHeader",
|
|
10709
|
+
"grid": "rp_pQOzEG_grid",
|
|
10710
|
+
"error": "rp_pQOzEG_error"
|
|
10711
10711
|
};
|
|
10712
10712
|
//#endregion
|
|
10713
10713
|
//#region src/client/pages/avatars/AvatarsPage.tsx
|
|
@@ -12153,37 +12153,37 @@ window.__ModuleLoader__.load({
|
|
|
12153
12153
|
}
|
|
12154
12154
|
tag$18.textContent = css$18;
|
|
12155
12155
|
var LorebooksPage_module_css_default = {
|
|
12156
|
-
"
|
|
12157
|
-
"
|
|
12158
|
-
"
|
|
12159
|
-
"viewport": "rp_VV-Eha_viewport",
|
|
12160
|
-
"editHeader": "rp_VV-Eha_editHeader",
|
|
12161
|
-
"input": "rp_VV-Eha_input",
|
|
12162
|
-
"warning": "rp_VV-Eha_warning",
|
|
12156
|
+
"sectionTitle": "rp_VV-Eha_sectionTitle",
|
|
12157
|
+
"row": "rp_VV-Eha_row",
|
|
12158
|
+
"select": "rp_VV-Eha_select",
|
|
12163
12159
|
"count": "rp_VV-Eha_count",
|
|
12160
|
+
"head": "rp_VV-Eha_head",
|
|
12164
12161
|
"area": "rp_VV-Eha_area",
|
|
12165
|
-
"
|
|
12162
|
+
"editTitle": "rp_VV-Eha_editTitle",
|
|
12163
|
+
"message": "rp_VV-Eha_message",
|
|
12164
|
+
"meta": "rp_VV-Eha_meta",
|
|
12165
|
+
"error": "rp_VV-Eha_error",
|
|
12166
12166
|
"actions": "rp_VV-Eha_actions",
|
|
12167
|
-
"
|
|
12168
|
-
"
|
|
12167
|
+
"label": "rp_VV-Eha_label",
|
|
12168
|
+
"entryArea": "rp_VV-Eha_entryArea",
|
|
12169
12169
|
"form": "rp_VV-Eha_form",
|
|
12170
|
-
"
|
|
12170
|
+
"title": "rp_VV-Eha_title",
|
|
12171
|
+
"description": "rp_VV-Eha_description",
|
|
12171
12172
|
"field": "rp_VV-Eha_field",
|
|
12172
|
-
"section": "rp_VV-Eha_section",
|
|
12173
|
-
"editBody": "rp_VV-Eha_editBody",
|
|
12174
12173
|
"toolbar": "rp_VV-Eha_toolbar",
|
|
12175
|
-
"
|
|
12176
|
-
"row": "rp_VV-Eha_row",
|
|
12177
|
-
"error": "rp_VV-Eha_error",
|
|
12174
|
+
"editBody": "rp_VV-Eha_editBody",
|
|
12178
12175
|
"page": "rp_VV-Eha_page",
|
|
12179
|
-
"
|
|
12180
|
-
"
|
|
12181
|
-
"grid": "rp_VV-Eha_grid",
|
|
12182
|
-
"title": "rp_VV-Eha_title",
|
|
12176
|
+
"cardActions": "rp_VV-Eha_cardActions",
|
|
12177
|
+
"editHeader": "rp_VV-Eha_editHeader",
|
|
12183
12178
|
"ok": "rp_VV-Eha_ok",
|
|
12184
|
-
"
|
|
12185
|
-
"
|
|
12186
|
-
"
|
|
12179
|
+
"input": "rp_VV-Eha_input",
|
|
12180
|
+
"name": "rp_VV-Eha_name",
|
|
12181
|
+
"section": "rp_VV-Eha_section",
|
|
12182
|
+
"grid": "rp_VV-Eha_grid",
|
|
12183
|
+
"warning": "rp_VV-Eha_warning",
|
|
12184
|
+
"card": "rp_VV-Eha_card",
|
|
12185
|
+
"help": "rp_VV-Eha_help",
|
|
12186
|
+
"viewport": "rp_VV-Eha_viewport"
|
|
12187
12187
|
};
|
|
12188
12188
|
//#endregion
|
|
12189
12189
|
//#region src/client/pages/lorebooks/LorebookEditor.tsx
|
|
@@ -13227,35 +13227,35 @@ window.__ModuleLoader__.load({
|
|
|
13227
13227
|
}
|
|
13228
13228
|
tag$17.textContent = css$17;
|
|
13229
13229
|
var PresetsPage_module_css_default = {
|
|
13230
|
-
"
|
|
13231
|
-
"editBody": "rp_ZK89ba_editBody",
|
|
13232
|
-
"message": "rp_ZK89ba_message",
|
|
13233
|
-
"editHeader": "rp_ZK89ba_editHeader",
|
|
13234
|
-
"row": "rp_ZK89ba_row",
|
|
13230
|
+
"sectionTitle": "rp_ZK89ba_sectionTitle",
|
|
13235
13231
|
"area": "rp_ZK89ba_area",
|
|
13232
|
+
"editHeader": "rp_ZK89ba_editHeader",
|
|
13233
|
+
"message": "rp_ZK89ba_message",
|
|
13234
|
+
"editTitle": "rp_ZK89ba_editTitle",
|
|
13235
|
+
"label": "rp_ZK89ba_label",
|
|
13236
13236
|
"head": "rp_ZK89ba_head",
|
|
13237
|
-
"
|
|
13238
|
-
"cardActions": "rp_ZK89ba_cardActions",
|
|
13239
|
-
"section": "rp_ZK89ba_section",
|
|
13237
|
+
"card": "rp_ZK89ba_card",
|
|
13240
13238
|
"count": "rp_ZK89ba_count",
|
|
13241
|
-
"
|
|
13239
|
+
"name": "rp_ZK89ba_name",
|
|
13242
13240
|
"actions": "rp_ZK89ba_actions",
|
|
13243
|
-
"
|
|
13241
|
+
"viewport": "rp_ZK89ba_viewport",
|
|
13244
13242
|
"form": "rp_ZK89ba_form",
|
|
13245
|
-
"card": "rp_ZK89ba_card",
|
|
13246
13243
|
"page": "rp_ZK89ba_page",
|
|
13247
|
-
"
|
|
13248
|
-
"
|
|
13249
|
-
"
|
|
13250
|
-
"
|
|
13244
|
+
"grid": "rp_ZK89ba_grid",
|
|
13245
|
+
"ok": "rp_ZK89ba_ok",
|
|
13246
|
+
"error": "rp_ZK89ba_error",
|
|
13247
|
+
"toolbar": "rp_ZK89ba_toolbar",
|
|
13248
|
+
"input": "rp_ZK89ba_input",
|
|
13249
|
+
"help": "rp_ZK89ba_help",
|
|
13250
|
+
"row": "rp_ZK89ba_row",
|
|
13251
|
+
"warning": "rp_ZK89ba_warning",
|
|
13252
|
+
"section": "rp_ZK89ba_section",
|
|
13251
13253
|
"meta": "rp_ZK89ba_meta",
|
|
13252
|
-
"title": "rp_ZK89ba_title",
|
|
13253
13254
|
"description": "rp_ZK89ba_description",
|
|
13254
13255
|
"field": "rp_ZK89ba_field",
|
|
13255
|
-
"
|
|
13256
|
-
"
|
|
13257
|
-
"
|
|
13258
|
-
"editTitle": "rp_ZK89ba_editTitle"
|
|
13256
|
+
"title": "rp_ZK89ba_title",
|
|
13257
|
+
"cardActions": "rp_ZK89ba_cardActions",
|
|
13258
|
+
"editBody": "rp_ZK89ba_editBody"
|
|
13259
13259
|
};
|
|
13260
13260
|
//#endregion
|
|
13261
13261
|
//#region src/client/pages/presets/PresetEditor.tsx
|
|
@@ -14392,10 +14392,10 @@ window.__ModuleLoader__.load({
|
|
|
14392
14392
|
}
|
|
14393
14393
|
tag$14.textContent = css$14;
|
|
14394
14394
|
var DeleteSessionDialog_module_css_default = {
|
|
14395
|
-
"body": "rp_FifHrW_body",
|
|
14396
|
-
"warning": "rp_FifHrW_warning",
|
|
14397
14395
|
"error": "rp_FifHrW_error",
|
|
14398
|
-
"question": "rp_FifHrW_question"
|
|
14396
|
+
"question": "rp_FifHrW_question",
|
|
14397
|
+
"warning": "rp_FifHrW_warning",
|
|
14398
|
+
"body": "rp_FifHrW_body"
|
|
14399
14399
|
};
|
|
14400
14400
|
//#endregion
|
|
14401
14401
|
//#region src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
@@ -14491,7 +14491,7 @@ window.__ModuleLoader__.load({
|
|
|
14491
14491
|
}
|
|
14492
14492
|
//#endregion
|
|
14493
14493
|
//#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
|
|
14494
|
-
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:
|
|
14494
|
+
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:12px}@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:12px;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}}";
|
|
14495
14495
|
const key$13 = "src/client/pages/sessions/SessionsPage.module.css";
|
|
14496
14496
|
let tag$13 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$13) + "]");
|
|
14497
14497
|
if (tag$13 === null) {
|
|
@@ -14502,28 +14502,28 @@ window.__ModuleLoader__.load({
|
|
|
14502
14502
|
}
|
|
14503
14503
|
tag$13.textContent = css$13;
|
|
14504
14504
|
var SessionsPage_module_css_default = {
|
|
14505
|
-
"toolbar": "rp_24z4eW_toolbar",
|
|
14506
|
-
"fits": "rp_24z4eW_fits",
|
|
14507
|
-
"number": "rp_24z4eW_number",
|
|
14508
14505
|
"page": "rp_24z4eW_page",
|
|
14509
|
-
"count": "rp_24z4eW_count",
|
|
14510
|
-
"actions": "rp_24z4eW_actions",
|
|
14511
|
-
"worldColumn": "rp_24z4eW_worldColumn",
|
|
14512
|
-
"scrolls": "rp_24z4eW_scrolls",
|
|
14513
|
-
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
14514
|
-
"archived": "rp_24z4eW_archived",
|
|
14515
|
-
"badge": "rp_24z4eW_badge",
|
|
14516
|
-
"table": "rp_24z4eW_table",
|
|
14517
|
-
"spin": "rp_24z4eW_spin",
|
|
14518
|
-
"name": "rp_24z4eW_name",
|
|
14519
14506
|
"spinning": "rp_24z4eW_spinning",
|
|
14520
|
-
"
|
|
14521
|
-
"
|
|
14507
|
+
"notice": "rp_24z4eW_notice",
|
|
14508
|
+
"badge": "rp_24z4eW_badge",
|
|
14522
14509
|
"nameColumn": "rp_24z4eW_nameColumn",
|
|
14523
|
-
"secondary": "rp_24z4eW_secondary",
|
|
14524
14510
|
"timeColumn": "rp_24z4eW_timeColumn",
|
|
14525
14511
|
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
14526
|
-
"
|
|
14512
|
+
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
14513
|
+
"number": "rp_24z4eW_number",
|
|
14514
|
+
"viewport": "rp_24z4eW_viewport",
|
|
14515
|
+
"message": "rp_24z4eW_message",
|
|
14516
|
+
"count": "rp_24z4eW_count",
|
|
14517
|
+
"fits": "rp_24z4eW_fits",
|
|
14518
|
+
"table": "rp_24z4eW_table",
|
|
14519
|
+
"archived": "rp_24z4eW_archived",
|
|
14520
|
+
"toolbar": "rp_24z4eW_toolbar",
|
|
14521
|
+
"name": "rp_24z4eW_name",
|
|
14522
|
+
"actions": "rp_24z4eW_actions",
|
|
14523
|
+
"spin": "rp_24z4eW_spin",
|
|
14524
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
14525
|
+
"worldColumn": "rp_24z4eW_worldColumn",
|
|
14526
|
+
"secondary": "rp_24z4eW_secondary"
|
|
14527
14527
|
};
|
|
14528
14528
|
//#endregion
|
|
14529
14529
|
//#region src/client/pages/sessions/SessionsPage.tsx
|
|
@@ -15039,16 +15039,16 @@ window.__ModuleLoader__.load({
|
|
|
15039
15039
|
}
|
|
15040
15040
|
tag$12.textContent = css$12;
|
|
15041
15041
|
var WorldCard_module_css_default = {
|
|
15042
|
-
"image": "rp_Bvxx5q_image",
|
|
15043
|
-
"info": "rp_Bvxx5q_info",
|
|
15044
15042
|
"openButton": "rp_Bvxx5q_openButton",
|
|
15045
|
-
"
|
|
15043
|
+
"image": "rp_Bvxx5q_image",
|
|
15044
|
+
"play": "rp_Bvxx5q_play",
|
|
15045
|
+
"cover": "rp_Bvxx5q_cover",
|
|
15046
15046
|
"name": "rp_Bvxx5q_name",
|
|
15047
|
+
"tag": "rp_Bvxx5q_tag",
|
|
15048
|
+
"info": "rp_Bvxx5q_info",
|
|
15047
15049
|
"card": "rp_Bvxx5q_card",
|
|
15048
|
-
"
|
|
15049
|
-
"
|
|
15050
|
-
"tags": "rp_Bvxx5q_tags",
|
|
15051
|
-
"tag": "rp_Bvxx5q_tag"
|
|
15050
|
+
"placeholder": "rp_Bvxx5q_placeholder",
|
|
15051
|
+
"tags": "rp_Bvxx5q_tags"
|
|
15052
15052
|
};
|
|
15053
15053
|
//#endregion
|
|
15054
15054
|
//#region src/client/widgets/world-card/WorldCard.tsx
|
|
@@ -15142,10 +15142,10 @@ window.__ModuleLoader__.load({
|
|
|
15142
15142
|
}
|
|
15143
15143
|
tag$11.textContent = css$11;
|
|
15144
15144
|
var AvatarChoices_module_css_default = {
|
|
15145
|
-
"
|
|
15146
|
-
"summary": "rp_YCstOG_summary",
|
|
15145
|
+
"name": "rp_YCstOG_name",
|
|
15147
15146
|
"option": "rp_YCstOG_option",
|
|
15148
|
-
"
|
|
15147
|
+
"text": "rp_YCstOG_text",
|
|
15148
|
+
"summary": "rp_YCstOG_summary"
|
|
15149
15149
|
};
|
|
15150
15150
|
//#endregion
|
|
15151
15151
|
//#region src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
@@ -15185,18 +15185,18 @@ window.__ModuleLoader__.load({
|
|
|
15185
15185
|
}
|
|
15186
15186
|
tag$10.textContent = css$10;
|
|
15187
15187
|
var StartSessionDialog_module_css_default = {
|
|
15188
|
-
"
|
|
15188
|
+
"option": "rp_AnbLKG_option",
|
|
15189
15189
|
"field": "rp_AnbLKG_field",
|
|
15190
|
-
"label": "rp_AnbLKG_label",
|
|
15191
15190
|
"error": "rp_AnbLKG_error",
|
|
15191
|
+
"form": "rp_AnbLKG_form",
|
|
15192
15192
|
"advanced": "rp_AnbLKG_advanced",
|
|
15193
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
15193
15194
|
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
15195
|
+
"optionText": "rp_AnbLKG_optionText",
|
|
15194
15196
|
"optionName": "rp_AnbLKG_optionName",
|
|
15195
15197
|
"message": "rp_AnbLKG_message",
|
|
15196
15198
|
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
15197
|
-
"
|
|
15198
|
-
"optionText": "rp_AnbLKG_optionText",
|
|
15199
|
-
"advancedToggle": "rp_AnbLKG_advancedToggle"
|
|
15199
|
+
"label": "rp_AnbLKG_label"
|
|
15200
15200
|
};
|
|
15201
15201
|
//#endregion
|
|
15202
15202
|
//#region src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
@@ -15286,6 +15286,33 @@ window.__ModuleLoader__.load({
|
|
|
15286
15286
|
});
|
|
15287
15287
|
}
|
|
15288
15288
|
//#endregion
|
|
15289
|
+
//#region src/shared/decisions.ts
|
|
15290
|
+
/** The places where a language model's closed-choice judgement can be given to a decision model instead, or, for the gates, a check can be made at all. */
|
|
15291
|
+
const DECISION_SITES = [
|
|
15292
|
+
"triggers",
|
|
15293
|
+
"reflection",
|
|
15294
|
+
"agency",
|
|
15295
|
+
"refusal",
|
|
15296
|
+
"rules",
|
|
15297
|
+
"secrets"
|
|
15298
|
+
];
|
|
15299
|
+
const EXTRA_MODES = ["off", "on"];
|
|
15300
|
+
/**
|
|
15301
|
+
* Who makes a site's judgements.
|
|
15302
|
+
* - `llm`: the language model, as before.
|
|
15303
|
+
* - `decision`: the decision model alone; a judgement it is not confident of counts as "no".
|
|
15304
|
+
* - `hybrid`: the decision model where it is confident, the language model for the rest.
|
|
15305
|
+
* - `shadow`: both, acting on the language model's answer and recording whether the decision model agreed.
|
|
15306
|
+
*/
|
|
15307
|
+
const DECISION_MODES = [
|
|
15308
|
+
"llm",
|
|
15309
|
+
"decision",
|
|
15310
|
+
"hybrid",
|
|
15311
|
+
"shadow"
|
|
15312
|
+
];
|
|
15313
|
+
/** What a gate can be set to: the modes of any site, or off. */
|
|
15314
|
+
const GATE_MODES = ["off", ...DECISION_MODES];
|
|
15315
|
+
//#endregion
|
|
15289
15316
|
//#region src/shared/rules.ts
|
|
15290
15317
|
/** The longest text of the player's own rules. */
|
|
15291
15318
|
const MAX_OWN_RULES = 2e3;
|
|
@@ -15412,6 +15439,16 @@ window.__ModuleLoader__.load({
|
|
|
15412
15439
|
cueTurns: integer(1, 20, 2),
|
|
15413
15440
|
judgedPerTurn: integer(0, 5, 2)
|
|
15414
15441
|
},
|
|
15442
|
+
decisions: {
|
|
15443
|
+
triggers: choice(DECISION_MODES, "llm"),
|
|
15444
|
+
reflection: choice(DECISION_MODES, "llm"),
|
|
15445
|
+
agency: choice(GATE_MODES, "off"),
|
|
15446
|
+
refusal: choice(GATE_MODES, "off"),
|
|
15447
|
+
rules: choice(EXTRA_MODES, "off"),
|
|
15448
|
+
secrets: choice(EXTRA_MODES, "off"),
|
|
15449
|
+
gateThreshold: ratio(.1, .95, .5),
|
|
15450
|
+
confidence: ratio(0, 1, .7)
|
|
15451
|
+
},
|
|
15415
15452
|
interface: { pack: text(60, "") },
|
|
15416
15453
|
rewind: { keepSnapshots: integer(0, 500, 30) },
|
|
15417
15454
|
rules: { own: text(MAX_OWN_RULES, "") },
|
|
@@ -15707,6 +15744,148 @@ window.__ModuleLoader__.load({
|
|
|
15707
15744
|
zone: false,
|
|
15708
15745
|
placeholder: "localai/model-id"
|
|
15709
15746
|
},
|
|
15747
|
+
{
|
|
15748
|
+
path: ["decisions", "triggers"],
|
|
15749
|
+
kind: "choice",
|
|
15750
|
+
label: "decisionsTriggers",
|
|
15751
|
+
help: "decisionsTriggersHelp",
|
|
15752
|
+
choices: [
|
|
15753
|
+
{
|
|
15754
|
+
value: "llm",
|
|
15755
|
+
label: "decisionLlm"
|
|
15756
|
+
},
|
|
15757
|
+
{
|
|
15758
|
+
value: "decision",
|
|
15759
|
+
label: "decisionDecision"
|
|
15760
|
+
},
|
|
15761
|
+
{
|
|
15762
|
+
value: "hybrid",
|
|
15763
|
+
label: "decisionHybrid"
|
|
15764
|
+
},
|
|
15765
|
+
{
|
|
15766
|
+
value: "shadow",
|
|
15767
|
+
label: "decisionShadow"
|
|
15768
|
+
}
|
|
15769
|
+
]
|
|
15770
|
+
},
|
|
15771
|
+
{
|
|
15772
|
+
path: ["decisions", "reflection"],
|
|
15773
|
+
kind: "choice",
|
|
15774
|
+
label: "decisionsReflection",
|
|
15775
|
+
help: "decisionsReflectionHelp",
|
|
15776
|
+
choices: [
|
|
15777
|
+
{
|
|
15778
|
+
value: "llm",
|
|
15779
|
+
label: "decisionLlm"
|
|
15780
|
+
},
|
|
15781
|
+
{
|
|
15782
|
+
value: "decision",
|
|
15783
|
+
label: "decisionDecision"
|
|
15784
|
+
},
|
|
15785
|
+
{
|
|
15786
|
+
value: "hybrid",
|
|
15787
|
+
label: "decisionHybrid"
|
|
15788
|
+
},
|
|
15789
|
+
{
|
|
15790
|
+
value: "shadow",
|
|
15791
|
+
label: "decisionShadow"
|
|
15792
|
+
}
|
|
15793
|
+
]
|
|
15794
|
+
},
|
|
15795
|
+
{
|
|
15796
|
+
path: ["decisions", "agency"],
|
|
15797
|
+
kind: "choice",
|
|
15798
|
+
label: "decisionsAgency",
|
|
15799
|
+
help: "decisionsAgencyHelp",
|
|
15800
|
+
choices: [
|
|
15801
|
+
{
|
|
15802
|
+
value: "off",
|
|
15803
|
+
label: "decisionOff"
|
|
15804
|
+
},
|
|
15805
|
+
{
|
|
15806
|
+
value: "llm",
|
|
15807
|
+
label: "decisionLlm"
|
|
15808
|
+
},
|
|
15809
|
+
{
|
|
15810
|
+
value: "decision",
|
|
15811
|
+
label: "decisionDecision"
|
|
15812
|
+
},
|
|
15813
|
+
{
|
|
15814
|
+
value: "hybrid",
|
|
15815
|
+
label: "decisionHybrid"
|
|
15816
|
+
},
|
|
15817
|
+
{
|
|
15818
|
+
value: "shadow",
|
|
15819
|
+
label: "decisionShadow"
|
|
15820
|
+
}
|
|
15821
|
+
]
|
|
15822
|
+
},
|
|
15823
|
+
{
|
|
15824
|
+
path: ["decisions", "refusal"],
|
|
15825
|
+
kind: "choice",
|
|
15826
|
+
label: "decisionsRefusal",
|
|
15827
|
+
help: "decisionsRefusalHelp",
|
|
15828
|
+
choices: [
|
|
15829
|
+
{
|
|
15830
|
+
value: "off",
|
|
15831
|
+
label: "decisionOff"
|
|
15832
|
+
},
|
|
15833
|
+
{
|
|
15834
|
+
value: "llm",
|
|
15835
|
+
label: "decisionLlm"
|
|
15836
|
+
},
|
|
15837
|
+
{
|
|
15838
|
+
value: "decision",
|
|
15839
|
+
label: "decisionDecision"
|
|
15840
|
+
},
|
|
15841
|
+
{
|
|
15842
|
+
value: "hybrid",
|
|
15843
|
+
label: "decisionHybrid"
|
|
15844
|
+
},
|
|
15845
|
+
{
|
|
15846
|
+
value: "shadow",
|
|
15847
|
+
label: "decisionShadow"
|
|
15848
|
+
}
|
|
15849
|
+
]
|
|
15850
|
+
},
|
|
15851
|
+
{
|
|
15852
|
+
path: ["decisions", "rules"],
|
|
15853
|
+
kind: "choice",
|
|
15854
|
+
label: "decisionsRules",
|
|
15855
|
+
help: "decisionsRulesHelp",
|
|
15856
|
+
choices: [{
|
|
15857
|
+
value: "off",
|
|
15858
|
+
label: "decisionOff"
|
|
15859
|
+
}, {
|
|
15860
|
+
value: "on",
|
|
15861
|
+
label: "decisionOn"
|
|
15862
|
+
}]
|
|
15863
|
+
},
|
|
15864
|
+
{
|
|
15865
|
+
path: ["decisions", "secrets"],
|
|
15866
|
+
kind: "choice",
|
|
15867
|
+
label: "decisionsSecrets",
|
|
15868
|
+
help: "decisionsSecretsHelp",
|
|
15869
|
+
choices: [{
|
|
15870
|
+
value: "off",
|
|
15871
|
+
label: "decisionOff"
|
|
15872
|
+
}, {
|
|
15873
|
+
value: "on",
|
|
15874
|
+
label: "decisionOn"
|
|
15875
|
+
}]
|
|
15876
|
+
},
|
|
15877
|
+
{
|
|
15878
|
+
path: ["decisions", "gateThreshold"],
|
|
15879
|
+
kind: "decimal",
|
|
15880
|
+
label: "decisionsGateThreshold",
|
|
15881
|
+
help: "decisionsGateThresholdHelp"
|
|
15882
|
+
},
|
|
15883
|
+
{
|
|
15884
|
+
path: ["decisions", "confidence"],
|
|
15885
|
+
kind: "decimal",
|
|
15886
|
+
label: "decisionsConfidence",
|
|
15887
|
+
help: "decisionsConfidenceHelp"
|
|
15888
|
+
},
|
|
15710
15889
|
{
|
|
15711
15890
|
path: ["triggers", "enabled"],
|
|
15712
15891
|
kind: "flag",
|
|
@@ -16064,7 +16243,7 @@ window.__ModuleLoader__.load({
|
|
|
16064
16243
|
return next;
|
|
16065
16244
|
}
|
|
16066
16245
|
//#endregion
|
|
16067
|
-
//#region ../../node_modules/.pnpm/@dsh-ai-providers+core@0.
|
|
16246
|
+
//#region ../../node_modules/.pnpm/@dsh-ai-providers+core@0.5.0_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-llm@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_/node_modules/@dsh-ai-providers/core/lib/index.js
|
|
16068
16247
|
/**
|
|
16069
16248
|
* The browser API of the main plugin, which the UI of the main plugin and of every vendor plugin
|
|
16070
16249
|
* uses. Paths are relative to the prefix, and the browser calls them with relative URLs so that a
|
|
@@ -16126,14 +16305,14 @@ window.__ModuleLoader__.load({
|
|
|
16126
16305
|
}
|
|
16127
16306
|
tag$9.textContent = css$9;
|
|
16128
16307
|
var SettingsFields_module_css_default = {
|
|
16129
|
-
"
|
|
16130
|
-
"label": "rp_Rhi3yq_label",
|
|
16131
|
-
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
16132
|
-
"error": "rp_Rhi3yq_error",
|
|
16308
|
+
"help": "rp_Rhi3yq_help",
|
|
16133
16309
|
"row": "rp_Rhi3yq_row",
|
|
16310
|
+
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
16134
16311
|
"field": "rp_Rhi3yq_field",
|
|
16135
|
-
"
|
|
16136
|
-
"group": "rp_Rhi3yq_group"
|
|
16312
|
+
"error": "rp_Rhi3yq_error",
|
|
16313
|
+
"group": "rp_Rhi3yq_group",
|
|
16314
|
+
"label": "rp_Rhi3yq_label",
|
|
16315
|
+
"area": "rp_Rhi3yq_area"
|
|
16137
16316
|
};
|
|
16138
16317
|
//#endregion
|
|
16139
16318
|
//#region src/client/settings-form/SettingsFields.tsx
|
|
@@ -16388,8 +16567,8 @@ window.__ModuleLoader__.load({
|
|
|
16388
16567
|
tag$8.textContent = css$8;
|
|
16389
16568
|
var TranslateBanner_module_css_default = {
|
|
16390
16569
|
"error": "rp_Lx8vJa_error",
|
|
16391
|
-
"
|
|
16392
|
-
"
|
|
16570
|
+
"banner": "rp_Lx8vJa_banner",
|
|
16571
|
+
"text": "rp_Lx8vJa_text"
|
|
16393
16572
|
};
|
|
16394
16573
|
//#endregion
|
|
16395
16574
|
//#region src/client/pages/worlds/TranslateBanner.tsx
|
|
@@ -16980,25 +17159,25 @@ window.__ModuleLoader__.load({
|
|
|
16980
17159
|
}
|
|
16981
17160
|
tag$7.textContent = css$7;
|
|
16982
17161
|
var WorldsPage_module_css_default = {
|
|
16983
|
-
"message": "rp_FHUyRq_message",
|
|
16984
|
-
"grid": "rp_FHUyRq_grid",
|
|
16985
|
-
"count": "rp_FHUyRq_count",
|
|
16986
|
-
"page": "rp_FHUyRq_page",
|
|
16987
|
-
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
16988
|
-
"viewport": "rp_FHUyRq_viewport",
|
|
16989
|
-
"spinning": "rp_FHUyRq_spinning",
|
|
16990
17162
|
"scrolls": "rp_FHUyRq_scrolls",
|
|
16991
|
-
"
|
|
16992
|
-
"notice": "rp_FHUyRq_notice",
|
|
16993
|
-
"starters": "rp_FHUyRq_starters",
|
|
17163
|
+
"fits": "rp_FHUyRq_fits",
|
|
16994
17164
|
"toolbar": "rp_FHUyRq_toolbar",
|
|
16995
|
-
"
|
|
17165
|
+
"starter": "rp_FHUyRq_starter",
|
|
17166
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
17167
|
+
"count": "rp_FHUyRq_count",
|
|
17168
|
+
"editBody": "rp_FHUyRq_editBody",
|
|
17169
|
+
"message": "rp_FHUyRq_message",
|
|
16996
17170
|
"editTitle": "rp_FHUyRq_editTitle",
|
|
17171
|
+
"notice": "rp_FHUyRq_notice",
|
|
16997
17172
|
"editHeader": "rp_FHUyRq_editHeader",
|
|
16998
|
-
"
|
|
16999
|
-
"
|
|
17173
|
+
"spin": "rp_FHUyRq_spin",
|
|
17174
|
+
"cell": "rp_FHUyRq_cell",
|
|
17175
|
+
"page": "rp_FHUyRq_page",
|
|
17176
|
+
"viewport": "rp_FHUyRq_viewport",
|
|
17000
17177
|
"authorButton": "rp_FHUyRq_authorButton",
|
|
17001
|
-
"
|
|
17178
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
17179
|
+
"grid": "rp_FHUyRq_grid",
|
|
17180
|
+
"starters": "rp_FHUyRq_starters"
|
|
17002
17181
|
};
|
|
17003
17182
|
//#endregion
|
|
17004
17183
|
//#region src/client/pages/worlds/StarterWorlds.tsx
|
|
@@ -17491,6 +17670,28 @@ window.__ModuleLoader__.load({
|
|
|
17491
17670
|
imagesInterpreterModelHelp: "As provider/model. Leave empty to use the chat's own model, which must be declared able to read images. Use this to describe images with a vision model while the story runs on another.",
|
|
17492
17671
|
imagesCaptioner: "Captioning model",
|
|
17493
17672
|
imagesCaptionerHelp: "As provider/model. A model that only writes a caption for a picture (it cannot call tools) looks at it, and the chat's model turns the caption into the description. Leave empty to have one vision model do both.",
|
|
17673
|
+
decisionsTriggers: "Judging trigger statements",
|
|
17674
|
+
decisionsTriggersHelp: "Who judges the statements that triggers wait on. The language model is the default. A decision model (from the Decisions provider of the AI providers plugin) answers the same questions much faster and beside the language model instead of queueing behind it. \"Decision model\" uses only it and counts an answer it is not sure of as no; \"Both, decision model when sure\" asks the language model for the rest; \"Both, compare\" always uses the language model and records how often the decision model agrees, shown below, so you can judge it on your own story. Without a decision service the language model is used.",
|
|
17675
|
+
decisionsReflection: "Checking beliefs against new evidence",
|
|
17676
|
+
decisionsReflectionHelp: "Who checks whether what a character took in since contradicts one of their beliefs, before the reflection pass. The same choices as for trigger statements. Doubts are raised only on answers the decision model is sure of.",
|
|
17677
|
+
decisionsAgency: "Checking the narration for speaking for you",
|
|
17678
|
+
decisionsAgencyHelp: "Checks each narration for words, actions, thoughts or feelings given to your character that your message did not state, and sends it back to the game master to rewrite (at most twice, then it is delivered as it is). Off by default: a check costs a request to the language model or a fast call to a decision model in every turn. The choices are the same as for trigger statements; the decision model counts a fault only when it is sure.",
|
|
17679
|
+
decisionsRefusal: "Checking the output for stepping out of the story",
|
|
17680
|
+
decisionsRefusalHelp: "Checks each output for a refusal to continue, an apology, a content warning, a disclaimer or a remark to you outside the story, which some hosted models add, and sends it back to the game master to write as the story (at most twice, then it is delivered as it is). Off by default. The same choices as for the check above.",
|
|
17681
|
+
decisionsRules: "Checking actions against the rules",
|
|
17682
|
+
decisionsRulesHelp: "When the game master judges your action allowed, a decision model also checks it against every rule of the world and your own rules in one fast pass. A rule it thinks is broken is put to the game master once, to judge again. Only a decision model does this: off by default, and off the story plays as it always did. Needs a decision service; without one nothing is checked.",
|
|
17683
|
+
decisionsSecrets: "Checking the output for giving away secrets",
|
|
17684
|
+
decisionsSecretsHelp: "A decision model checks each output for stating hidden lore that your character does not know (lore listed for other characters only) and sends it back to the game master to rewrite (at most twice, then it is delivered as it is). A revelation the story means to make can still go through the second time. Off by default, and off nothing changes. Needs a decision service; without one nothing is checked.",
|
|
17685
|
+
decisionsGateThreshold: "Probability that counts as a fault",
|
|
17686
|
+
decisionsGateThresholdHelp: "For the two checks above: the probability from which the decision model's answer counts as a fault, from 0.1 to 0.95; a little below it (0.15) the model is not sure, and the language model is asked in the mixed mode. Decision models give a rare fault a low probability even when they see it, so this is not the confidence below. Lower it if faults are missed, raise it if clean passages are sent back; the comparing mode shows the probabilities of the disagreements.",
|
|
17687
|
+
decisionOff: "Off",
|
|
17688
|
+
decisionsConfidence: "Confidence needed",
|
|
17689
|
+
decisionsConfidenceHelp: "How sure the decision model must be before its answer is used, from 0 to 1. At 0.7 a yes needs a probability of at least 0.85 and a no at most 0.15; in between, \"both, decision model when sure\" asks the language model and \"decision model\" counts it as no. A higher value uses it less and asks the language model more.",
|
|
17690
|
+
decisionLlm: "Language model",
|
|
17691
|
+
decisionDecision: "Decision model",
|
|
17692
|
+
decisionHybrid: "Both, decision model when sure",
|
|
17693
|
+
decisionShadow: "Both, compare",
|
|
17694
|
+
decisionOn: "On",
|
|
17494
17695
|
triggersJudged: "Statements judged after a turn",
|
|
17495
17696
|
triggersJudgedHelp: "The most statements that triggers wait on (such as \"the mayor has lost the town's trust\") that a model judges after one of your messages, in one background request. A trigger fires from the verdict at the next look. 0 turns it off, and such triggers never fire.",
|
|
17496
17697
|
factionsPerTurn: "Organisations acting on their own",
|
|
@@ -17660,6 +17861,28 @@ window.__ModuleLoader__.load({
|
|
|
17660
17861
|
imagesInterpreterModelHelp: "写成 提供方/模型。留空则使用对话自己的模型,它必须声明能读取图像。可用它让视觉模型描述图像,而故事用另一个模型运行。",
|
|
17661
17862
|
imagesCaptioner: "图像说明模型",
|
|
17662
17863
|
imagesCaptionerHelp: "写成 提供方/模型。只会给图片写说明文字的模型(不能调用工具)负责看图,再由对话的模型把说明整理成描述。留空则由一个视觉模型完成全部。",
|
|
17864
|
+
decisionsTriggers: "评判触发器陈述",
|
|
17865
|
+
decisionsTriggersHelp: "由谁来评判触发器所等待的陈述。默认由语言模型评判。决策模型(来自 AI 提供方插件的“决策”提供方)回答同样的问题要快得多,并且与语言模型并行,而不是排在它后面。“决策模型”只用它,并把它没有把握的答案视为否;“两者并用,有把握时用决策模型”会把其余的交给语言模型;“两者并用,对比”始终采用语言模型的答案,同时记录决策模型的一致程度,显示在下方,方便你在自己的故事里判断它。没有决策服务时使用语言模型。",
|
|
17866
|
+
decisionsReflection: "用新证据检查信念",
|
|
17867
|
+
decisionsReflectionHelp: "由谁在反思之前检查角色此后接收到的内容是否与其某个信念矛盾。选项与触发器陈述相同。只有决策模型有把握的答案才会引起怀疑。",
|
|
17868
|
+
decisionsAgency: "检查叙述是否替你说话",
|
|
17869
|
+
decisionsAgencyHelp: "检查每段叙述是否给了你的角色你的消息中没有写到的话语、动作、想法或感受,如有则退回给游戏主持人重写(最多两次,之后原样交付)。默认关闭:每个回合都要多一次语言模型请求,或一次决策模型的快速调用。选项与触发器陈述相同;决策模型只在有把握时才认定有问题。",
|
|
17870
|
+
decisionsRefusal: "检查输出是否跳出了故事",
|
|
17871
|
+
decisionsRefusalHelp: "检查每次输出里有没有拒绝继续、道歉、内容警告、免责声明或对你说的故事之外的话(有些托管模型会加上这些),如有则退回给游戏主持人按故事重写(最多两次,之后原样交付)。默认关闭。选项与上一项相同。",
|
|
17872
|
+
decisionsRules: "按规则检查行动",
|
|
17873
|
+
decisionsRulesHelp: "当游戏主持人判定你的行动可行时,决策模型会再一次快速地把它与世界的每条规则以及你自己的规则逐条对照。它认为被违反的规则会交给游戏主持人重新判断一次。只有决策模型能做这件事:默认关闭,关闭时故事与以往完全一样。需要决策服务;没有时不做任何检查。",
|
|
17874
|
+
decisionsSecrets: "检查输出是否泄露秘密",
|
|
17875
|
+
decisionsSecretsHelp: "决策模型检查每次输出有没有写出你的角色不知道的隐藏背景(只列给其他角色的背景),如有则退回给游戏主持人重写(最多两次,之后原样交付)。故事有意安排的揭示,第二次仍可通过。默认关闭,关闭时没有任何变化。需要决策服务;没有时不做任何检查。",
|
|
17876
|
+
decisionsGateThreshold: "算作问题的概率",
|
|
17877
|
+
decisionsGateThresholdHelp: "针对上面两项检查:决策模型的答案达到多大概率才算有问题,取值 0.1 到 0.95;略低于它(低 0.15 以内)时模型没有把握,混合模式下会交给语言模型。决策模型即使看出了罕见的问题,给出的概率也偏低,所以这不是下面的“所需把握”。漏掉问题就调低,把正常的文字退回去就调高;对比模式会显示分歧的概率。",
|
|
17878
|
+
decisionOff: "关闭",
|
|
17879
|
+
decisionsConfidence: "所需把握",
|
|
17880
|
+
decisionsConfidenceHelp: "采用决策模型的答案前,它至少要有多大把握,取值 0 到 1。取 0.7 时,“是”需要至少 0.85 的概率,“否”至多 0.15;介于两者之间时,“两者并用,有把握时用决策模型”会交给语言模型,“决策模型”则视为否。数值越高,越少用它、越多问语言模型。",
|
|
17881
|
+
decisionLlm: "语言模型",
|
|
17882
|
+
decisionDecision: "决策模型",
|
|
17883
|
+
decisionHybrid: "两者并用,有把握时用决策模型",
|
|
17884
|
+
decisionShadow: "两者并用,对比",
|
|
17885
|
+
decisionOn: "开启",
|
|
17663
17886
|
triggersJudged: "每回合评判的陈述数",
|
|
17664
17887
|
triggersJudgedHelp: "触发器所等待的陈述(例如“市长已失去全镇信任”)中,你发送一条消息后最多让模型评判多少条,合并为一次后台请求。触发器在下一次检查时根据结论触发。0 表示关闭,此类触发器永远不会触发。",
|
|
17665
17888
|
factionsPerTurn: "组织自主行动",
|
|
@@ -18305,9 +18528,9 @@ window.__ModuleLoader__.load({
|
|
|
18305
18528
|
tag$6.textContent = css$6;
|
|
18306
18529
|
var BranchDialog_module_css_default = {
|
|
18307
18530
|
"label": "rp_Dy1TaW_label",
|
|
18531
|
+
"form": "rp_Dy1TaW_form",
|
|
18308
18532
|
"field": "rp_Dy1TaW_field",
|
|
18309
|
-
"error": "rp_Dy1TaW_error"
|
|
18310
|
-
"form": "rp_Dy1TaW_form"
|
|
18533
|
+
"error": "rp_Dy1TaW_error"
|
|
18311
18534
|
};
|
|
18312
18535
|
//#endregion
|
|
18313
18536
|
//#region src/client/branch/BranchDialog.tsx
|
|
@@ -18765,7 +18988,7 @@ window.__ModuleLoader__.load({
|
|
|
18765
18988
|
}
|
|
18766
18989
|
//#endregion
|
|
18767
18990
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/interface/SidebarPage.module.css.mjs
|
|
18768
|
-
const css$5 = ".rp_Ptco8a_page{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.rp_Ptco8a_bar{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:4px 8px;display:flex}.rp_Ptco8a_name{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.rp_Ptco8a_content{flex:1 1 0;min-height:0;position:relative}.rp_Ptco8a_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px;font-size:13px;line-height:20px}.rp_Ptco8a_entry{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsl-guide-entry-radius,var(--dsw-radius-sm));background:var(--dsw-alias-bg-layer-1);align-items:center;gap:14px;width:100%;min-height:56px;padding:14px 20px;display:flex;position:relative;overflow:hidden}.rp_Ptco8a_main{border-radius:0;width:100%;height:100%;position:absolute;inset:0}.rp_Ptco8a_icon{width:26px;height:26px;color:var(--dsw-alias-label-secondary);pointer-events:none;flex:none;justify-content:center;align-items:center;display:flex;position:relative}.rp_Ptco8a_text{pointer-events:none;flex-direction:column;flex:1;gap:3px;min-width:0;display:flex;position:relative}.rp_Ptco8a_title{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;overflow:hidden}.rp_Ptco8a_description{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:
|
|
18991
|
+
const css$5 = ".rp_Ptco8a_page{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.rp_Ptco8a_bar{border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:4px 8px;display:flex}.rp_Ptco8a_name{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.rp_Ptco8a_content{flex:1 1 0;min-height:0;position:relative}.rp_Ptco8a_message{color:var(--dsw-alias-label-secondary);margin:0;padding:16px;font-size:13px;line-height:20px}.rp_Ptco8a_entry{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsl-guide-entry-radius,var(--dsw-radius-sm));background:var(--dsw-alias-bg-layer-1);align-items:center;gap:14px;width:100%;min-height:56px;padding:14px 20px;display:flex;position:relative;overflow:hidden}.rp_Ptco8a_main{border-radius:0;width:100%;height:100%;position:absolute;inset:0}.rp_Ptco8a_icon{width:26px;height:26px;color:var(--dsw-alias-label-secondary);pointer-events:none;flex:none;justify-content:center;align-items:center;display:flex;position:relative}.rp_Ptco8a_text{pointer-events:none;flex-direction:column;flex:1;gap:3px;min-width:0;display:flex;position:relative}.rp_Ptco8a_title{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;overflow:hidden}.rp_Ptco8a_description{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4;overflow:hidden}";
|
|
18769
18992
|
const key$5 = "src/client/interface/SidebarPage.module.css";
|
|
18770
18993
|
let tag$5 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$5) + "]");
|
|
18771
18994
|
if (tag$5 === null) {
|
|
@@ -18776,17 +18999,17 @@ window.__ModuleLoader__.load({
|
|
|
18776
18999
|
}
|
|
18777
19000
|
tag$5.textContent = css$5;
|
|
18778
19001
|
var SidebarPage_module_css_default = {
|
|
18779
|
-
"title": "rp_Ptco8a_title",
|
|
18780
|
-
"bar": "rp_Ptco8a_bar",
|
|
18781
|
-
"description": "rp_Ptco8a_description",
|
|
18782
|
-
"name": "rp_Ptco8a_name",
|
|
18783
|
-
"icon": "rp_Ptco8a_icon",
|
|
18784
19002
|
"text": "rp_Ptco8a_text",
|
|
19003
|
+
"main": "rp_Ptco8a_main",
|
|
19004
|
+
"name": "rp_Ptco8a_name",
|
|
19005
|
+
"description": "rp_Ptco8a_description",
|
|
18785
19006
|
"content": "rp_Ptco8a_content",
|
|
19007
|
+
"icon": "rp_Ptco8a_icon",
|
|
18786
19008
|
"message": "rp_Ptco8a_message",
|
|
18787
|
-
"
|
|
18788
|
-
"
|
|
18789
|
-
"
|
|
19009
|
+
"entry": "rp_Ptco8a_entry",
|
|
19010
|
+
"bar": "rp_Ptco8a_bar",
|
|
19011
|
+
"title": "rp_Ptco8a_title",
|
|
19012
|
+
"page": "rp_Ptco8a_page"
|
|
18790
19013
|
};
|
|
18791
19014
|
//#endregion
|
|
18792
19015
|
//#region src/client/interface/SidebarPage.tsx
|
|
@@ -19103,7 +19326,7 @@ window.__ModuleLoader__.load({
|
|
|
19103
19326
|
}
|
|
19104
19327
|
//#endregion
|
|
19105
19328
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/chat-settings/ChatSettingsView.module.css.mjs
|
|
19106
|
-
const css$4 = ".rp_wLpbxW_view{box-sizing:border-box;flex-direction:column;gap:16px;width:100%;max-width:720px;margin:0 auto;padding:24px 24px 240px;display:flex}.rp_wLpbxW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_wLpbxW_description{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_wLpbxW_field{flex-direction:column;gap:6px;width:min(100%,320px);display:flex}.rp_wLpbxW_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_wLpbxW_help{max-width:560px;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_wLpbxW_actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.rp_wLpbxW_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:40px 0;font-size:13px}.rp_wLpbxW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_wLpbxW_saved{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_wLpbxW_row{flex-direction:column;gap:6px;display:flex}.rp_wLpbxW_notice{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);margin:0;padding:8px 12px;font-size:12px}.rp_wLpbxW_activity{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;font-size:13px;display:flex}.rp_wLpbxW_activity summary{cursor:pointer;color:var(--dsw-alias-label-primary);font-weight:500}.rp_wLpbxW_link{font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0;font-size:12px}.rp_wLpbxW_table{border-collapse:collapse;width:100%;font-size:12px}.rp_wLpbxW_table th,.rp_wLpbxW_table td{border-bottom:.5px solid var(--dsw-alias-border-l4);text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:
|
|
19329
|
+
const css$4 = ".rp_wLpbxW_view{box-sizing:border-box;flex-direction:column;gap:16px;width:100%;max-width:720px;margin:0 auto;padding:24px 24px 240px;display:flex}.rp_wLpbxW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_wLpbxW_description{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_wLpbxW_field{flex-direction:column;gap:6px;width:min(100%,320px);display:flex}.rp_wLpbxW_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_wLpbxW_help{max-width:560px;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_wLpbxW_actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.rp_wLpbxW_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:40px 0;font-size:13px}.rp_wLpbxW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_wLpbxW_saved{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_wLpbxW_row{flex-direction:column;gap:6px;display:flex}.rp_wLpbxW_notice{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);margin:0;padding:8px 12px;font-size:12px}.rp_wLpbxW_activity{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;font-size:13px;display:flex}.rp_wLpbxW_activity summary{cursor:pointer;color:var(--dsw-alias-label-primary);font-weight:500}.rp_wLpbxW_activityBody{flex-direction:column;gap:8px;padding-top:8px;display:flex}.rp_wLpbxW_link{font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0;font-size:12px}.rp_wLpbxW_table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;min-width:920px;font-size:12px}.rp_wLpbxW_tableViewport{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);max-width:100%;overflow-x:auto}.rp_wLpbxW_tableViewport:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_wLpbxW_table th,.rp_wLpbxW_table td{border-bottom:.5px solid var(--dsw-alias-border-l4);text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:6px 10px}.rp_wLpbxW_table th{color:var(--dsw-alias-label-tertiary);font-weight:400}.rp_wLpbxW_table tbody th{color:var(--dsw-alias-label-primary);font-weight:500}.rp_wLpbxW_table tbody tr:last-child>*{border-bottom:0}.rp_wLpbxW_table th:first-child,.rp_wLpbxW_table td:first-child,.rp_wLpbxW_table th:nth-child(3),.rp_wLpbxW_table td:nth-child(3),.rp_wLpbxW_table th:nth-child(4),.rp_wLpbxW_table td:nth-child(4),.rp_wLpbxW_table th:nth-child(5),.rp_wLpbxW_table td:nth-child(5){white-space:nowrap}.rp_wLpbxW_run{flex-direction:column;gap:4px;padding:4px 0 8px;display:flex}.rp_wLpbxW_pre{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-markdown-code-block);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;margin:4px 0;padding:6px 8px;font-size:12px;overflow:auto}.rp_wLpbxW_reasons{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:4px 0;padding-left:20px;font-size:12px}.rp_wLpbxW_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%;max-width:320px;height:32px;color:var(--dsw-alias-label-primary);font:inherit;padding:0 8px;font-size:13px}.rp_wLpbxW_list{color:var(--dsw-alias-label-tertiary);margin:0;padding-left:18px;font-size:12px;line-height:18px}@media (width<=640px){.rp_wLpbxW_view{padding-inline:16px}}";
|
|
19107
19330
|
const key$4 = "src/client/chat-settings/ChatSettingsView.module.css";
|
|
19108
19331
|
let tag$4 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$4) + "]");
|
|
19109
19332
|
if (tag$4 === null) {
|
|
@@ -19114,26 +19337,28 @@ window.__ModuleLoader__.load({
|
|
|
19114
19337
|
}
|
|
19115
19338
|
tag$4.textContent = css$4;
|
|
19116
19339
|
var ChatSettingsView_module_css_default = {
|
|
19340
|
+
"pre": "rp_wLpbxW_pre",
|
|
19117
19341
|
"title": "rp_wLpbxW_title",
|
|
19118
|
-
"list": "rp_wLpbxW_list",
|
|
19119
|
-
"run": "rp_wLpbxW_run",
|
|
19120
|
-
"description": "rp_wLpbxW_description",
|
|
19121
|
-
"actions": "rp_wLpbxW_actions",
|
|
19122
|
-
"reasons": "rp_wLpbxW_reasons",
|
|
19123
|
-
"message": "rp_wLpbxW_message",
|
|
19124
|
-
"error": "rp_wLpbxW_error",
|
|
19125
|
-
"table": "rp_wLpbxW_table",
|
|
19126
|
-
"saved": "rp_wLpbxW_saved",
|
|
19127
|
-
"notice": "rp_wLpbxW_notice",
|
|
19128
19342
|
"field": "rp_wLpbxW_field",
|
|
19129
19343
|
"help": "rp_wLpbxW_help",
|
|
19344
|
+
"notice": "rp_wLpbxW_notice",
|
|
19345
|
+
"label": "rp_wLpbxW_label",
|
|
19130
19346
|
"activity": "rp_wLpbxW_activity",
|
|
19131
|
-
"
|
|
19132
|
-
"
|
|
19347
|
+
"message": "rp_wLpbxW_message",
|
|
19348
|
+
"description": "rp_wLpbxW_description",
|
|
19349
|
+
"tableViewport": "rp_wLpbxW_tableViewport",
|
|
19350
|
+
"error": "rp_wLpbxW_error",
|
|
19351
|
+
"run": "rp_wLpbxW_run",
|
|
19352
|
+
"activityBody": "rp_wLpbxW_activityBody",
|
|
19353
|
+
"row": "rp_wLpbxW_row",
|
|
19354
|
+
"saved": "rp_wLpbxW_saved",
|
|
19133
19355
|
"view": "rp_wLpbxW_view",
|
|
19356
|
+
"reasons": "rp_wLpbxW_reasons",
|
|
19357
|
+
"list": "rp_wLpbxW_list",
|
|
19358
|
+
"actions": "rp_wLpbxW_actions",
|
|
19359
|
+
"table": "rp_wLpbxW_table",
|
|
19134
19360
|
"link": "rp_wLpbxW_link",
|
|
19135
|
-
"
|
|
19136
|
-
"label": "rp_wLpbxW_label"
|
|
19361
|
+
"select": "rp_wLpbxW_select"
|
|
19137
19362
|
};
|
|
19138
19363
|
//#endregion
|
|
19139
19364
|
//#region src/client/chat-settings/settings-api.ts
|
|
@@ -19235,6 +19460,208 @@ window.__ModuleLoader__.load({
|
|
|
19235
19460
|
signal
|
|
19236
19461
|
}));
|
|
19237
19462
|
}
|
|
19463
|
+
/** Whether a decision service is there, which, and how the decision model has done in the chat's story. */
|
|
19464
|
+
async function loadDecisions(id, signal) {
|
|
19465
|
+
const response = await fetch(`${API_PREFIX}/sessions/decisions?id=${encodeURIComponent(id)}`, {
|
|
19466
|
+
credentials: "same-origin",
|
|
19467
|
+
signal
|
|
19468
|
+
});
|
|
19469
|
+
if (!response.ok) {
|
|
19470
|
+
const body = await response.json().catch(() => void 0);
|
|
19471
|
+
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
19472
|
+
}
|
|
19473
|
+
return await response.json();
|
|
19474
|
+
}
|
|
19475
|
+
//#endregion
|
|
19476
|
+
//#region src/client/chat-settings/decision-figures.ts
|
|
19477
|
+
/** The average time of a run, or a dash when the site has not run. */
|
|
19478
|
+
const perRun = (total, runs) => runs === 0 ? "–" : `${Math.round(total / runs)} ms`;
|
|
19479
|
+
/** The share of compared judgements that the decision model made the way the language model did, or a dash when none were compared. */
|
|
19480
|
+
const agreement = (stats) => stats.agreed + stats.disagreed === 0 ? "–" : `${Math.round(100 * stats.agreed / (stats.agreed + stats.disagreed))}%`;
|
|
19481
|
+
//#endregion
|
|
19482
|
+
//#region src/client/chat-settings/DecisionsSection.tsx
|
|
19483
|
+
const MODE_LABEL = {
|
|
19484
|
+
off: "decisionOff",
|
|
19485
|
+
llm: "decisionLlm",
|
|
19486
|
+
decision: "decisionDecision",
|
|
19487
|
+
hybrid: "decisionHybrid",
|
|
19488
|
+
shadow: "decisionShadow",
|
|
19489
|
+
on: "decisionOn"
|
|
19490
|
+
};
|
|
19491
|
+
const SITE_LABEL = {
|
|
19492
|
+
triggers: "decisionsSiteTriggers",
|
|
19493
|
+
reflection: "decisionsSiteReflection",
|
|
19494
|
+
agency: "decisionsSiteAgency",
|
|
19495
|
+
refusal: "decisionsSiteRefusal",
|
|
19496
|
+
rules: "decisionsSiteRules",
|
|
19497
|
+
secrets: "decisionsSiteSecrets"
|
|
19498
|
+
};
|
|
19499
|
+
/** Whether a decision model is there, and how the sites set to use one have done in this story. */
|
|
19500
|
+
function DecisionsSection({ t, session, modes }) {
|
|
19501
|
+
const [payload, setPayload] = (0, react.useState)();
|
|
19502
|
+
const [error, setError] = (0, react.useState)();
|
|
19503
|
+
const [refreshing, setRefreshing] = (0, react.useState)(false);
|
|
19504
|
+
const refresh = (0, react.useCallback)(() => {
|
|
19505
|
+
setRefreshing(true);
|
|
19506
|
+
setError(void 0);
|
|
19507
|
+
loadDecisions(session, new AbortController().signal).then((next) => {
|
|
19508
|
+
setPayload(next);
|
|
19509
|
+
setError(void 0);
|
|
19510
|
+
}, (failure) => {
|
|
19511
|
+
setError(failure instanceof Error ? failure.message : String(failure));
|
|
19512
|
+
}).finally(() => {
|
|
19513
|
+
setRefreshing(false);
|
|
19514
|
+
});
|
|
19515
|
+
}, [session]);
|
|
19516
|
+
(0, react.useEffect)(() => {
|
|
19517
|
+
const abort = new AbortController();
|
|
19518
|
+
loadDecisions(session, abort.signal).then((next) => {
|
|
19519
|
+
setPayload(next);
|
|
19520
|
+
setError(void 0);
|
|
19521
|
+
}, (failure) => {
|
|
19522
|
+
if (!abort.signal.aborted) setError(failure instanceof Error ? failure.message : String(failure));
|
|
19523
|
+
});
|
|
19524
|
+
return () => {
|
|
19525
|
+
abort.abort();
|
|
19526
|
+
};
|
|
19527
|
+
}, [session]);
|
|
19528
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
19529
|
+
className: ChatSettingsView_module_css_default.activity,
|
|
19530
|
+
"data-testid": "roleplay-decisions",
|
|
19531
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t("decisionsTitle") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19532
|
+
className: ChatSettingsView_module_css_default.activityBody,
|
|
19533
|
+
children: [
|
|
19534
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19535
|
+
className: ChatSettingsView_module_css_default.description,
|
|
19536
|
+
children: t("decisionsHelp")
|
|
19537
|
+
}),
|
|
19538
|
+
payload === void 0 && error === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19539
|
+
className: ChatSettingsView_module_css_default.description,
|
|
19540
|
+
role: "status",
|
|
19541
|
+
children: t("decisionsLoading")
|
|
19542
|
+
}),
|
|
19543
|
+
error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19544
|
+
className: ChatSettingsView_module_css_default.error,
|
|
19545
|
+
role: "alert",
|
|
19546
|
+
children: t("loadFailed", { message: error })
|
|
19547
|
+
}),
|
|
19548
|
+
payload !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
19549
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19550
|
+
className: ChatSettingsView_module_css_default.description,
|
|
19551
|
+
children: payload.available ? t("decisionsAvailable", {
|
|
19552
|
+
provider: payload.provider ?? "",
|
|
19553
|
+
model: payload.model ?? ""
|
|
19554
|
+
}) : t("decisionsUnavailable")
|
|
19555
|
+
}),
|
|
19556
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19557
|
+
className: ChatSettingsView_module_css_default.tableViewport,
|
|
19558
|
+
role: "region",
|
|
19559
|
+
"aria-label": t("decisionsTableLabel"),
|
|
19560
|
+
tabIndex: 0,
|
|
19561
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
|
|
19562
|
+
className: ChatSettingsView_module_css_default.table,
|
|
19563
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
19564
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19565
|
+
scope: "col",
|
|
19566
|
+
children: t("decisionsSite")
|
|
19567
|
+
}),
|
|
19568
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19569
|
+
scope: "col",
|
|
19570
|
+
children: t("decisionsMode")
|
|
19571
|
+
}),
|
|
19572
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19573
|
+
scope: "col",
|
|
19574
|
+
children: t("decisionsRuns")
|
|
19575
|
+
}),
|
|
19576
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19577
|
+
scope: "col",
|
|
19578
|
+
children: t("decisionsItems")
|
|
19579
|
+
}),
|
|
19580
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19581
|
+
scope: "col",
|
|
19582
|
+
children: t("decisionsDecided")
|
|
19583
|
+
}),
|
|
19584
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19585
|
+
scope: "col",
|
|
19586
|
+
children: t("decisionsEscalated")
|
|
19587
|
+
}),
|
|
19588
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19589
|
+
scope: "col",
|
|
19590
|
+
children: t("decisionsFallbacks")
|
|
19591
|
+
}),
|
|
19592
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19593
|
+
scope: "col",
|
|
19594
|
+
children: t("decisionsAgreement")
|
|
19595
|
+
}),
|
|
19596
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19597
|
+
scope: "col",
|
|
19598
|
+
children: t("decisionsDecisionTime")
|
|
19599
|
+
}),
|
|
19600
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19601
|
+
scope: "col",
|
|
19602
|
+
children: t("decisionsLlmTime")
|
|
19603
|
+
})
|
|
19604
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: DECISION_SITES.map((site) => {
|
|
19605
|
+
const stats = payload.stats.sites[site];
|
|
19606
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", {
|
|
19607
|
+
"data-testid": `roleplay-decisions-${site}`,
|
|
19608
|
+
children: [
|
|
19609
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
19610
|
+
scope: "row",
|
|
19611
|
+
children: t(SITE_LABEL[site])
|
|
19612
|
+
}),
|
|
19613
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: t(MODE_LABEL[modes[site]]) }),
|
|
19614
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: stats.runs }),
|
|
19615
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: stats.items }),
|
|
19616
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: stats.decided }),
|
|
19617
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: stats.escalated }),
|
|
19618
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: stats.fallbacks }),
|
|
19619
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: agreement(stats) }),
|
|
19620
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: perRun(stats.decisionMs, stats.runs) }),
|
|
19621
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: perRun(stats.llmMs, stats.runs) })
|
|
19622
|
+
]
|
|
19623
|
+
}, site);
|
|
19624
|
+
}) })]
|
|
19625
|
+
})
|
|
19626
|
+
}),
|
|
19627
|
+
DECISION_SITES.flatMap((site) => payload.stats.sites[site].problem === void 0 ? [] : [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19628
|
+
className: ChatSettingsView_module_css_default.error,
|
|
19629
|
+
role: "alert",
|
|
19630
|
+
children: t("decisionsProblem", {
|
|
19631
|
+
site: t(SITE_LABEL[site]),
|
|
19632
|
+
message: payload.stats.sites[site].problem ?? ""
|
|
19633
|
+
})
|
|
19634
|
+
}, `${site}-problem`)]),
|
|
19635
|
+
DECISION_SITES.flatMap((site) => payload.stats.sites[site].samples.length === 0 ? [] : [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19636
|
+
className: ChatSettingsView_module_css_default.description,
|
|
19637
|
+
children: t("decisionsSamples", { site: t(SITE_LABEL[site]) })
|
|
19638
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
19639
|
+
className: ChatSettingsView_module_css_default.description,
|
|
19640
|
+
children: [...payload.stats.sites[site].samples].reverse().map((sample) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: t("decisionsSample", {
|
|
19641
|
+
turn: sample.turn,
|
|
19642
|
+
what: sample.what,
|
|
19643
|
+
probability: Math.round(sample.probability * 100),
|
|
19644
|
+
decision: sample.decision ? t("decisionsYes") : t("decisionsNo"),
|
|
19645
|
+
llm: sample.llm ? t("decisionsYes") : t("decisionsNo")
|
|
19646
|
+
}) }, `${sample.turn}-${sample.what}`))
|
|
19647
|
+
})] }, `${site}-samples`)]),
|
|
19648
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19649
|
+
className: ChatSettingsView_module_css_default.description,
|
|
19650
|
+
children: t("decisionsSince", { since: payload.stats.since.slice(0, 10) })
|
|
19651
|
+
})
|
|
19652
|
+
] }),
|
|
19653
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
19654
|
+
variant: "ghost",
|
|
19655
|
+
size: "sm",
|
|
19656
|
+
disabled: refreshing,
|
|
19657
|
+
"aria-busy": refreshing,
|
|
19658
|
+
onClick: refresh,
|
|
19659
|
+
children: t(refreshing ? "decisionsRefreshing" : "decisionsRefresh")
|
|
19660
|
+
}) })
|
|
19661
|
+
]
|
|
19662
|
+
})]
|
|
19663
|
+
});
|
|
19664
|
+
}
|
|
19238
19665
|
//#endregion
|
|
19239
19666
|
//#region src/client/chat-settings/InterfaceSection.tsx
|
|
19240
19667
|
const message$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
|
|
@@ -20206,6 +20633,11 @@ window.__ModuleLoader__.load({
|
|
|
20206
20633
|
...toolsError === void 0 ? {} : { error: toolsError },
|
|
20207
20634
|
t
|
|
20208
20635
|
}),
|
|
20636
|
+
session !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DecisionsSection, {
|
|
20637
|
+
t,
|
|
20638
|
+
session,
|
|
20639
|
+
modes: payload.settings.decisions
|
|
20640
|
+
}),
|
|
20209
20641
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ReflectionSection, {
|
|
20210
20642
|
t,
|
|
20211
20643
|
status: payload.reflection,
|
|
@@ -20279,6 +20711,36 @@ window.__ModuleLoader__.load({
|
|
|
20279
20711
|
loading: "Loading settings…",
|
|
20280
20712
|
loadFailed: "Could not load the settings: {message}",
|
|
20281
20713
|
notRoleplay: "This chat is not a roleplay session, so it has no roleplay settings.",
|
|
20714
|
+
decisionsTitle: "Decision model",
|
|
20715
|
+
decisionsHelp: "How the sites that can use a decision model have done in this story. Judgements made by the decision model are counted under \"decided\"; \"escalated\" went to the language model because the decision model was not sure; \"fell back\" went to it because the decision model could not be used. In the comparing mode, agreement is how often the decision model, with the confidence set above, said what the language model said. The counts stay when the story is taken back.",
|
|
20716
|
+
decisionsLoading: "Loading decision statistics…",
|
|
20717
|
+
decisionsAvailable: "Decision service: {provider}, model {model}.",
|
|
20718
|
+
decisionsUnavailable: "No decision service is selected, or the selected one is not loaded, so sites set to use a decision model use the language model.",
|
|
20719
|
+
decisionsTableLabel: "Decision statistics by site",
|
|
20720
|
+
decisionsSite: "Site",
|
|
20721
|
+
decisionsMode: "Set to",
|
|
20722
|
+
decisionsRuns: "Runs",
|
|
20723
|
+
decisionsItems: "Judgements",
|
|
20724
|
+
decisionsDecided: "Decided",
|
|
20725
|
+
decisionsEscalated: "Escalated",
|
|
20726
|
+
decisionsFallbacks: "Fell back",
|
|
20727
|
+
decisionsAgreement: "Agreement",
|
|
20728
|
+
decisionsDecisionTime: "Decision model per run",
|
|
20729
|
+
decisionsLlmTime: "Language model per run",
|
|
20730
|
+
decisionsSiteTriggers: "Trigger statements",
|
|
20731
|
+
decisionsSiteReflection: "Belief checks",
|
|
20732
|
+
decisionsSiteAgency: "Narration speaking for you",
|
|
20733
|
+
decisionsSiteRefusal: "Output out of the story",
|
|
20734
|
+
decisionsSiteRules: "Actions against the rules",
|
|
20735
|
+
decisionsSiteSecrets: "Output giving away secrets",
|
|
20736
|
+
decisionsProblem: "{site}: the decision model could not be used the last time ({message}).",
|
|
20737
|
+
decisionsSamples: "{site}: latest disagreements",
|
|
20738
|
+
decisionsSample: "Turn {turn}: {what} (decision model {probability}% yes, so {decision}; language model {llm})",
|
|
20739
|
+
decisionsYes: "yes",
|
|
20740
|
+
decisionsNo: "no",
|
|
20741
|
+
decisionsSince: "Counted since {since}.",
|
|
20742
|
+
decisionsRefresh: "Refresh",
|
|
20743
|
+
decisionsRefreshing: "Refreshing…",
|
|
20282
20744
|
pendingConsolidation: "{count} character(s), place(s) or thing(s) made up in play are waiting to be fitted into the world (connected to the rest, given relationships). It is done in the background.",
|
|
20283
20745
|
pendingRecords: "{count} round(s) are waiting to be written into the story's memory. The game master records them when the story moves on, or once too many pile up.",
|
|
20284
20746
|
interventionsTitle: "What the world put in front of the story",
|
|
@@ -20430,6 +20892,36 @@ window.__ModuleLoader__.load({
|
|
|
20430
20892
|
loading: "正在加载设置…",
|
|
20431
20893
|
loadFailed: "无法加载设置:{message}",
|
|
20432
20894
|
notRoleplay: "此对话不是角色扮演存档,没有角色扮演设置。",
|
|
20895
|
+
decisionsTitle: "决策模型",
|
|
20896
|
+
decisionsHelp: "在本故事中,可以使用决策模型的各个环节表现如何。由决策模型做出的判断计入“已决策”;“已升级”表示决策模型没有把握而交给了语言模型;“已回退”表示决策模型无法使用而交给了语言模型。在对比模式下,一致率是指决策模型(按上方设置的把握程度)与语言模型给出相同答案的比例。故事回退时,这些计数不会改变。",
|
|
20897
|
+
decisionsLoading: "正在加载决策统计…",
|
|
20898
|
+
decisionsAvailable: "决策服务:{provider},模型 {model}。",
|
|
20899
|
+
decisionsUnavailable: "尚未选择决策服务,或所选服务未加载,因此设为使用决策模型的环节会改用语言模型。",
|
|
20900
|
+
decisionsTableLabel: "各环节的决策统计",
|
|
20901
|
+
decisionsSite: "环节",
|
|
20902
|
+
decisionsMode: "设置为",
|
|
20903
|
+
decisionsRuns: "运行次数",
|
|
20904
|
+
decisionsItems: "判断数",
|
|
20905
|
+
decisionsDecided: "已决策",
|
|
20906
|
+
decisionsEscalated: "已升级",
|
|
20907
|
+
decisionsFallbacks: "已回退",
|
|
20908
|
+
decisionsAgreement: "一致率",
|
|
20909
|
+
decisionsDecisionTime: "决策模型每次",
|
|
20910
|
+
decisionsLlmTime: "语言模型每次",
|
|
20911
|
+
decisionsSiteTriggers: "触发器陈述",
|
|
20912
|
+
decisionsSiteReflection: "信念检查",
|
|
20913
|
+
decisionsSiteAgency: "叙述替你说话",
|
|
20914
|
+
decisionsSiteRefusal: "输出跳出故事",
|
|
20915
|
+
decisionsSiteRules: "按规则检查行动",
|
|
20916
|
+
decisionsSiteSecrets: "输出泄露秘密",
|
|
20917
|
+
decisionsProblem: "{site}:上一次无法使用决策模型({message})。",
|
|
20918
|
+
decisionsSamples: "{site}:最近的分歧",
|
|
20919
|
+
decisionsSample: "第 {turn} 回合:{what}(决策模型认为 {probability}% 为是,因此为{decision};语言模型为{llm})",
|
|
20920
|
+
decisionsYes: "是",
|
|
20921
|
+
decisionsNo: "否",
|
|
20922
|
+
decisionsSince: "统计自 {since} 起。",
|
|
20923
|
+
decisionsRefresh: "刷新",
|
|
20924
|
+
decisionsRefreshing: "正在刷新…",
|
|
20433
20925
|
pendingConsolidation: "有 {count} 个在故事中新建的角色、地点或物品等待融入世界(与其余部分建立连接和关系),将在后台完成。",
|
|
20434
20926
|
pendingRecords: "有 {count} 个回合等待写入故事记忆。主持人会在故事推进时记录,积压过多时也会自动记录。",
|
|
20435
20927
|
interventionsTitle: "世界摆到故事面前的东西",
|
|
@@ -20606,7 +21098,7 @@ window.__ModuleLoader__.load({
|
|
|
20606
21098
|
}
|
|
20607
21099
|
//#endregion
|
|
20608
21100
|
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/settings/CatalogueSettings.module.css.mjs
|
|
20609
|
-
const css$3 = ".rp_KPhXDa_section{flex-direction:column;gap:8px;margin-top:24px;display:flex}.rp_KPhXDa_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_KPhXDa_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_KPhXDa_row{border-bottom:1px solid var(--dsw-alias-border-l3);grid-template-columns:minmax(80px,1fr) minmax(160px,2fr) auto;align-items:end;gap:8px;padding-bottom:8px;display:grid}.rp_KPhXDa_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_KPhXDa_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_KPhXDa_problem{color:var(--dsw-alias-state-
|
|
21101
|
+
const css$3 = ".rp_KPhXDa_section{flex-direction:column;gap:8px;margin-top:24px;display:flex}.rp_KPhXDa_title{margin:0;font-size:16px;font-weight:500;line-height:24px}.rp_KPhXDa_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px}.rp_KPhXDa_row{border-bottom:1px solid var(--dsw-alias-border-l3);grid-template-columns:minmax(80px,1fr) minmax(160px,2fr) auto;align-items:end;gap:8px;padding-bottom:8px;display:grid}.rp_KPhXDa_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_KPhXDa_label{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_KPhXDa_problem{color:var(--dsw-alias-state-error-primary);grid-column:1/-1;margin:0;font-size:12px}.rp_KPhXDa_keyHint{color:var(--dsw-alias-label-tertiary);grid-column:1/-1;margin:0;font-size:12px}.rp_KPhXDa_actions{gap:8px;display:flex}.rp_KPhXDa_keyArea{grid-column:1/-1;grid-template-columns:minmax(120px,1fr) minmax(160px,2fr) auto;align-items:end;gap:8px;display:grid}";
|
|
20610
21102
|
const key$3 = "src/client/settings/CatalogueSettings.module.css";
|
|
20611
21103
|
let tag$3 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$3) + "]");
|
|
20612
21104
|
if (tag$3 === null) {
|
|
@@ -20617,16 +21109,16 @@ window.__ModuleLoader__.load({
|
|
|
20617
21109
|
}
|
|
20618
21110
|
tag$3.textContent = css$3;
|
|
20619
21111
|
var CatalogueSettings_module_css_default = {
|
|
20620
|
-
"
|
|
20621
|
-
"field": "rp_KPhXDa_field",
|
|
20622
|
-
"label": "rp_KPhXDa_label",
|
|
21112
|
+
"keyHint": "rp_KPhXDa_keyHint",
|
|
20623
21113
|
"section": "rp_KPhXDa_section",
|
|
20624
21114
|
"problem": "rp_KPhXDa_problem",
|
|
21115
|
+
"field": "rp_KPhXDa_field",
|
|
21116
|
+
"title": "rp_KPhXDa_title",
|
|
21117
|
+
"hint": "rp_KPhXDa_hint",
|
|
21118
|
+
"row": "rp_KPhXDa_row",
|
|
20625
21119
|
"actions": "rp_KPhXDa_actions",
|
|
20626
21120
|
"keyArea": "rp_KPhXDa_keyArea",
|
|
20627
|
-
"
|
|
20628
|
-
"title": "rp_KPhXDa_title",
|
|
20629
|
-
"row": "rp_KPhXDa_row"
|
|
21121
|
+
"label": "rp_KPhXDa_label"
|
|
20630
21122
|
};
|
|
20631
21123
|
//#endregion
|
|
20632
21124
|
//#region src/client/settings/AuthoringToolSettings.tsx
|
|
@@ -21431,28 +21923,28 @@ window.__ModuleLoader__.load({
|
|
|
21431
21923
|
}
|
|
21432
21924
|
tag$2.textContent = css$2;
|
|
21433
21925
|
var NarrationView_module_css_default = {
|
|
21434
|
-
"output": "rp_NFPimG_output",
|
|
21435
|
-
"line": "rp_NFPimG_line",
|
|
21436
|
-
"words": "rp_NFPimG_words",
|
|
21437
|
-
"dice": "rp_NFPimG_dice",
|
|
21438
|
-
"avatar": "rp_NFPimG_avatar",
|
|
21439
|
-
"imageButton": "rp_NFPimG_imageButton",
|
|
21440
|
-
"oocNote": "rp_NFPimG_oocNote",
|
|
21441
|
-
"images": "rp_NFPimG_images",
|
|
21442
|
-
"playLine": "rp_NFPimG_playLine",
|
|
21443
|
-
"imageStatus": "rp_NFPimG_imageStatus",
|
|
21444
|
-
"name": "rp_NFPimG_name",
|
|
21445
|
-
"preview": "rp_NFPimG_preview",
|
|
21446
|
-
"oocLabel": "rp_NFPimG_oocLabel",
|
|
21447
|
-
"speech": "rp_NFPimG_speech",
|
|
21448
|
-
"playAll": "rp_NFPimG_playAll",
|
|
21449
21926
|
"oocRefused": "rp_NFPimG_oocRefused",
|
|
21450
21927
|
"narration": "rp_NFPimG_narration",
|
|
21928
|
+
"oocNote": "rp_NFPimG_oocNote",
|
|
21929
|
+
"output": "rp_NFPimG_output",
|
|
21930
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
21451
21931
|
"diceSummary": "rp_NFPimG_diceSummary",
|
|
21932
|
+
"preview": "rp_NFPimG_preview",
|
|
21933
|
+
"images": "rp_NFPimG_images",
|
|
21934
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
21452
21935
|
"sceneImage": "rp_NFPimG_sceneImage",
|
|
21453
|
-
"
|
|
21936
|
+
"dice": "rp_NFPimG_dice",
|
|
21454
21937
|
"imageError": "rp_NFPimG_imageError",
|
|
21455
|
-
"
|
|
21938
|
+
"playLine": "rp_NFPimG_playLine",
|
|
21939
|
+
"line": "rp_NFPimG_line",
|
|
21940
|
+
"note": "rp_NFPimG_note",
|
|
21941
|
+
"diceList": "rp_NFPimG_diceList",
|
|
21942
|
+
"name": "rp_NFPimG_name",
|
|
21943
|
+
"avatar": "rp_NFPimG_avatar",
|
|
21944
|
+
"playAll": "rp_NFPimG_playAll",
|
|
21945
|
+
"words": "rp_NFPimG_words",
|
|
21946
|
+
"speech": "rp_NFPimG_speech",
|
|
21947
|
+
"oocLabel": "rp_NFPimG_oocLabel"
|
|
21456
21948
|
};
|
|
21457
21949
|
//#endregion
|
|
21458
21950
|
//#region src/client/transcript/PreviewNode.tsx
|
|
@@ -21718,9 +22210,9 @@ window.__ModuleLoader__.load({
|
|
|
21718
22210
|
tag$1.textContent = css$1;
|
|
21719
22211
|
var SuggestionsDock_module_css_default = {
|
|
21720
22212
|
"dock": "rp_rWH4DG_dock",
|
|
21721
|
-
"card": "rp_rWH4DG_card",
|
|
21722
|
-
"chip": "rp_rWH4DG_chip",
|
|
21723
22213
|
"label": "rp_rWH4DG_label",
|
|
22214
|
+
"chip": "rp_rWH4DG_chip",
|
|
22215
|
+
"card": "rp_rWH4DG_card",
|
|
21724
22216
|
"lines": "rp_rWH4DG_lines"
|
|
21725
22217
|
};
|
|
21726
22218
|
//#endregion
|
|
@@ -21841,12 +22333,12 @@ window.__ModuleLoader__.load({
|
|
|
21841
22333
|
}
|
|
21842
22334
|
tag.textContent = css;
|
|
21843
22335
|
var TurnsDock_module_css_default = {
|
|
22336
|
+
"button": "rp_f4YLlq_button",
|
|
21844
22337
|
"error": "rp_f4YLlq_error",
|
|
21845
|
-
"count": "rp_f4YLlq_count",
|
|
21846
22338
|
"select": "rp_f4YLlq_select",
|
|
22339
|
+
"dock": "rp_f4YLlq_dock",
|
|
21847
22340
|
"group": "rp_f4YLlq_group",
|
|
21848
|
-
"
|
|
21849
|
-
"dock": "rp_f4YLlq_dock"
|
|
22341
|
+
"count": "rp_f4YLlq_count"
|
|
21850
22342
|
};
|
|
21851
22343
|
//#endregion
|
|
21852
22344
|
//#region src/client/transcript/withdrawn.ts
|