@dsh-agentic-roleplay/core 0.1.0 → 0.1.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/{notes-CJzbN_-E.js → activity-BbqFG9-3.js} +35 -9
- package/lib/authoring.js +3 -3
- package/lib/client.js +880 -372
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +1 -1
- package/lib/{documents-BBq88wXP.js → documents-ZVoUTnD2.js} +54 -33
- package/lib/{gallery-CjG9_4Sz.js → gallery-KGCdeCnM.js} +2 -2
- package/lib/{generator-pxZS-pu-.js → generator-NYnNdpWb.js} +100 -9
- package/lib/images.js +3 -3
- package/lib/index.js +220 -15
- package/lib/{narration-tYy6Rkfr.js → narration-DcnCqA1l.js} +20 -3
- package/lib/orchestration.js +510 -82
- package/lib/{presenter-agent-DbZALurg.js → presenter-agent-7j1c7QEz.js} +3 -3
- package/lib/{worlds-Bj-EGS_i.js → worlds-DYgjdH8O.js} +28 -2
- package/package.json +3 -2
- package/prompts/en/roleplay/faction-strategist.md +5 -0
- package/prompts/en/roleplay/trigger-judge.md +3 -0
- package/prompts/zh/roleplay/faction-strategist.md +5 -0
- package/prompts/zh/roleplay/trigger-judge.md +3 -0
- package/starter-worlds/blackwater-observatory/characters/arthur-moore/character.json +65 -0
- package/starter-worlds/blackwater-observatory/characters/clara-whitlock/character.json +87 -0
- package/starter-worlds/blackwater-observatory/characters/eleanor-graves/character.json +80 -0
- package/starter-worlds/blackwater-observatory/characters/marcus-reed/character.json +73 -0
- package/starter-worlds/blackwater-observatory/items/anonymous-letter/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/brass-laboratory-key/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/claras-gossip-notebook/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/harlans-notebook/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/investigators-coat/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/investigators-notebook/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/locked-filing-cabinet/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/marcus-calibration-notes/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/mayors-administrative-seal/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/municipal-lockbox/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/pocket-revolver/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/room-7-cash-receipt/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/rusting-mine-cart/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/signal-recording-strip/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/silver-pocket-watch/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/survey-archive-cabinet/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/surveyors-map/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/unknown-visitors-note-fragment/item.json +10 -0
- package/starter-worlds/blackwater-observatory/locations/blackwater-ridge/location.json +5 -0
- package/starter-worlds/blackwater-observatory/locations/iron-stag-bar/location.json +30 -0
- package/starter-worlds/blackwater-observatory/locations/iron-stag-room-7/location.json +18 -0
- package/starter-worlds/blackwater-observatory/locations/north-forest-cabin/location.json +18 -0
- package/starter-worlds/blackwater-observatory/locations/observatory-directors-office/location.json +20 -0
- package/starter-worlds/blackwater-observatory/locations/observatory-telescope-chamber/location.json +25 -0
- package/starter-worlds/blackwater-observatory/locations/old-mine-entrance/location.json +27 -0
- package/starter-worlds/blackwater-observatory/locations/old-mine-main-tunnel/location.json +13 -0
- package/starter-worlds/blackwater-observatory/locations/town-hall-mayors-office/location.json +25 -0
- package/starter-worlds/blackwater-observatory/locations/town-hall-records-room/location.json +13 -0
- package/starter-worlds/blackwater-observatory/locations/town-square/location.json +30 -0
- package/starter-worlds/blackwater-observatory/triggers.json +20 -0
- package/starter-worlds/blackwater-observatory/variables.json +39 -0
- package/starter-worlds/blackwater-observatory/world.json +27 -0
package/lib/client.js
CHANGED
|
@@ -24,8 +24,8 @@ window.__ModuleLoader__.load({
|
|
|
24
24
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUsersOutlineRegular, { size });
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region \0css-module:/home/
|
|
28
|
-
const css$21 = ".
|
|
27
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/PageTabs.module.css.mjs
|
|
28
|
+
const css$21 = ".rp_Poldga_tabs{gap:24px;margin-bottom:-1px;display:flex}.rp_Poldga_tab{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;margin:0;padding:8px 0;font-size:13px;line-height:20px;box-shadow:inset 0 -2px #0000}.rp_Poldga_tab:hover{color:var(--dsw-alias-label-primary)}.rp_Poldga_tab[aria-selected=true]{color:var(--dsw-alias-state-business-primary);font-weight:500;box-shadow:inset 0 -2px}.rp_Poldga_tab:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px;border-radius:var(--dsw-radius-xs)}";
|
|
29
29
|
const key$21 = "src/client/panel/PageTabs.module.css";
|
|
30
30
|
let tag$21 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$21) + "]");
|
|
31
31
|
if (tag$21 === null) {
|
|
@@ -36,8 +36,8 @@ window.__ModuleLoader__.load({
|
|
|
36
36
|
}
|
|
37
37
|
tag$21.textContent = css$21;
|
|
38
38
|
var PageTabs_module_css_default = {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"tab": "rp_Poldga_tab",
|
|
40
|
+
"tabs": "rp_Poldga_tabs"
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/client/panel/PageTabs.tsx
|
|
@@ -80,8 +80,8 @@ window.__ModuleLoader__.load({
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
//#region \0css-module:/home/
|
|
84
|
-
const css$20 = ".
|
|
83
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/panel/RoleplayPanel.module.css.mjs
|
|
84
|
+
const css$20 = ".rp_ua5gBa_panel{min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;flex:1 1 0;display:flex}.rp_ua5gBa_header{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;padding:12px 24px 0}.rp_ua5gBa_title{margin:0 0 4px;font-size:14px;font-weight:500;line-height:22px}.rp_ua5gBa_body{flex-direction:column;flex:1 1 0;min-height:0;padding:12px 24px 16px;display:flex}";
|
|
85
85
|
const key$20 = "src/client/panel/RoleplayPanel.module.css";
|
|
86
86
|
let tag$20 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$20) + "]");
|
|
87
87
|
if (tag$20 === null) {
|
|
@@ -92,10 +92,10 @@ window.__ModuleLoader__.load({
|
|
|
92
92
|
}
|
|
93
93
|
tag$20.textContent = css$20;
|
|
94
94
|
var RoleplayPanel_module_css_default = {
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"header": "
|
|
95
|
+
"title": "rp_ua5gBa_title",
|
|
96
|
+
"panel": "rp_ua5gBa_panel",
|
|
97
|
+
"body": "rp_ua5gBa_body",
|
|
98
|
+
"header": "rp_ua5gBa_header"
|
|
99
99
|
};
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/client/panel/RoleplayPanel.tsx
|
|
@@ -362,7 +362,7 @@ window.__ModuleLoader__.load({
|
|
|
362
362
|
var NotEditableError = class extends Error {};
|
|
363
363
|
/** What the host said when it refused an edit, in its words. */
|
|
364
364
|
var RefusedEditError = class extends Error {};
|
|
365
|
-
async function answer$
|
|
365
|
+
async function answer$2(response) {
|
|
366
366
|
if (response.status === 404) throw new NotEditableError("not found");
|
|
367
367
|
if (!response.ok) {
|
|
368
368
|
const body = await response.json().catch(() => void 0);
|
|
@@ -372,7 +372,7 @@ window.__ModuleLoader__.load({
|
|
|
372
372
|
return await response.json();
|
|
373
373
|
}
|
|
374
374
|
async function put(url, edit, signal) {
|
|
375
|
-
return await answer$
|
|
375
|
+
return await answer$2(await fetch(url, {
|
|
376
376
|
method: "PUT",
|
|
377
377
|
credentials: "same-origin",
|
|
378
378
|
headers: { "content-type": "application/json" },
|
|
@@ -381,7 +381,7 @@ window.__ModuleLoader__.load({
|
|
|
381
381
|
}));
|
|
382
382
|
}
|
|
383
383
|
async function postJson(url, body, signal) {
|
|
384
|
-
return await answer$
|
|
384
|
+
return await answer$2(await fetch(url, {
|
|
385
385
|
method: "POST",
|
|
386
386
|
credentials: "same-origin",
|
|
387
387
|
headers: { "content-type": "application/json" },
|
|
@@ -390,19 +390,32 @@ window.__ModuleLoader__.load({
|
|
|
390
390
|
}));
|
|
391
391
|
}
|
|
392
392
|
async function remove(url, signal) {
|
|
393
|
-
return await answer$
|
|
393
|
+
return await answer$2(await fetch(url, {
|
|
394
394
|
method: "DELETE",
|
|
395
395
|
credentials: "same-origin",
|
|
396
396
|
signal
|
|
397
397
|
}));
|
|
398
398
|
}
|
|
399
399
|
async function post(url, signal) {
|
|
400
|
-
return await answer$
|
|
400
|
+
return await answer$2(await fetch(url, {
|
|
401
401
|
method: "POST",
|
|
402
402
|
credentials: "same-origin",
|
|
403
403
|
signal
|
|
404
404
|
}));
|
|
405
405
|
}
|
|
406
|
+
/** Sends a picture file as the body, with its name, and answers the refreshed world. */
|
|
407
|
+
async function postFile(url, file, signal) {
|
|
408
|
+
return await answer$2(await fetch(url, {
|
|
409
|
+
method: "POST",
|
|
410
|
+
credentials: "same-origin",
|
|
411
|
+
headers: {
|
|
412
|
+
"x-file-name": encodeURIComponent(file.name),
|
|
413
|
+
"content-type": file.type || "application/octet-stream"
|
|
414
|
+
},
|
|
415
|
+
body: file,
|
|
416
|
+
signal
|
|
417
|
+
}));
|
|
418
|
+
}
|
|
406
419
|
/** Voice discovery is optional: an unavailable or unsupported endpoint leaves manual entry usable. */
|
|
407
420
|
async function listVoices(url, signal) {
|
|
408
421
|
const response = await fetch(url, {
|
|
@@ -428,7 +441,7 @@ window.__ModuleLoader__.load({
|
|
|
428
441
|
const id = encodeURIComponent(worldId);
|
|
429
442
|
return {
|
|
430
443
|
worldId,
|
|
431
|
-
load: async (signal) => await answer$
|
|
444
|
+
load: async (signal) => await answer$2(await fetch(`${API_PREFIX}/worlds/state?id=${id}`, {
|
|
432
445
|
credentials: "same-origin",
|
|
433
446
|
signal
|
|
434
447
|
})),
|
|
@@ -443,7 +456,8 @@ window.__ModuleLoader__.load({
|
|
|
443
456
|
saveRelation: async (edit, signal) => await put(`${API_PREFIX}/worlds/state/relation?id=${id}`, edit, signal),
|
|
444
457
|
saveNarrationVoice: async (voice, signal) => await put(`${API_PREFIX}/worlds/state/narration-voice?id=${id}`, { voice }, signal),
|
|
445
458
|
listVoices: async (signal) => await listVoices(`${API_PREFIX}/speech/voices`, signal),
|
|
446
|
-
generatePortrait: async (key, signal) => await post(`${API_PREFIX}/worlds/state/character/portrait?id=${id}&key=${encodeURIComponent(key)}`, signal)
|
|
459
|
+
generatePortrait: async (key, signal) => await post(`${API_PREFIX}/worlds/state/character/portrait?id=${id}&key=${encodeURIComponent(key)}`, signal),
|
|
460
|
+
uploadPortrait: async (key, file, signal) => await postFile(`${API_PREFIX}/worlds/state/character/portrait/upload?id=${id}&key=${encodeURIComponent(key)}`, file, signal)
|
|
447
461
|
};
|
|
448
462
|
}
|
|
449
463
|
//#endregion
|
|
@@ -718,8 +732,8 @@ window.__ModuleLoader__.load({
|
|
|
718
732
|
}
|
|
719
733
|
const isDirty = (character, draft) => Object.keys(editOf$1(character, draft)).length > 0;
|
|
720
734
|
//#endregion
|
|
721
|
-
//#region \0css-module:/home/
|
|
722
|
-
const css$19 = ".
|
|
735
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/CharactersPanel.module.css.mjs
|
|
736
|
+
const css$19 = ".rp_5ZMIxq_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_5ZMIxq_tabs{border-bottom:1px solid var(--dsw-alias-border-l2);flex:none;gap:4px;padding:0 24px;display:flex;overflow-x:auto}.rp_5ZMIxq_tab{font:inherit;white-space:nowrap;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;margin-bottom:-1px;padding:12px 10px 10px;font-size:13px;line-height:20px}.rp_5ZMIxq_tabOn{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.rp_5ZMIxq_body{flex:1 1 0;min-height:0;overflow-y:auto}.rp_5ZMIxq_sheet{box-sizing:border-box;flex-direction:column;gap:20px;max-width:760px;padding:24px 24px 240px;display:flex}.rp_5ZMIxq_head{align-items:flex-start;gap:20px;display:flex}.rp_5ZMIxq_portrait{aspect-ratio:3/4;object-fit:cover;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:150px;height:auto;display:block}.rp_5ZMIxq_portraitBox{border-radius:var(--dsw-radius-sm);width:150px;height:200px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:0 0 150px;padding:0;display:block;position:relative}.rp_5ZMIxq_portraitBox:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.rp_5ZMIxq_portraitBox:disabled{cursor:not-allowed}.rp_5ZMIxq_portraitAction{box-sizing:border-box;border-radius:0 0 var(--dsw-radius-sm) var(--dsw-radius-sm);color:#fff;text-align:center;opacity:0;background:#0000009e;padding:7px 6px;font-size:12px;line-height:16px;transition:opacity .12s;position:absolute;bottom:1px;left:1px;right:1px}.rp_5ZMIxq_portraitBox:hover .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:focus-visible .rp_5ZMIxq_portraitAction,.rp_5ZMIxq_portraitBox:disabled .rp_5ZMIxq_portraitAction{opacity:1}.rp_5ZMIxq_portraitError,.rp_5ZMIxq_portraitHint{margin:12px 24px 0;font-size:12px}.rp_5ZMIxq_portraitError{color:var(--dsw-alias-state-danger-primary)}.rp_5ZMIxq_portraitHint{color:var(--dsw-alias-label-secondary)}.rp_5ZMIxq_placeholder{box-sizing:border-box;color:var(--dsw-alias-label-secondary);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_initial{opacity:.6;font-size:48px;font-weight:500;line-height:1}.rp_5ZMIxq_missing{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_meta{flex-direction:column;flex:1 1 0;gap:10px;min-width:0;display:flex}.rp_5ZMIxq_section{border-top:1px solid var(--dsw-alias-border-l4);flex-direction:column;gap:6px;padding-top:16px;display:flex}.rp_5ZMIxq_sectionTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:500;line-height:20px}.rp_5ZMIxq_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 24px;font-size:13px}.rp_5ZMIxq_section .rp_5ZMIxq_empty{padding:0}.rp_5ZMIxq_tabsSpace{flex:auto}.rp_5ZMIxq_voiceInline{min-width:220px;color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;font-size:12px;display:flex}.rp_5ZMIxq_bar{border-bottom:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);flex:none;justify-content:flex-end;align-items:center;gap:8px;padding:6px 24px;display:flex}.rp_5ZMIxq_barText{color:var(--dsw-alias-label-secondary);margin-right:auto;font-size:12px}.rp_5ZMIxq_nameInput{font-size:16px;font-weight:500}.rp_5ZMIxq_row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rp_5ZMIxq_grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px 12px;display:grid}.rp_5ZMIxq_field{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_5ZMIxq_wide{grid-column:1/-1}.rp_5ZMIxq_label,.rp_5ZMIxq_help{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_5ZMIxq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.rp_5ZMIxq_select{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:100%;min-height:32px;color:inherit;font:inherit;background:0 0;padding:4px 8px;font-size:13px}.rp_5ZMIxq_area{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:100%;color:inherit;font:inherit;resize:vertical;background:0 0;padding:6px 8px;font-size:13px;line-height:20px}.rp_5ZMIxq_goal{border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:8px;padding:10px;display:flex}.rp_5ZMIxq_row>.rp_5ZMIxq_select{width:auto;min-width:110px}";
|
|
723
737
|
const key$19 = "src/client/world-editor/CharactersPanel.module.css";
|
|
724
738
|
let tag$19 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$19) + "]");
|
|
725
739
|
if (tag$19 === null) {
|
|
@@ -730,40 +744,40 @@ window.__ModuleLoader__.load({
|
|
|
730
744
|
}
|
|
731
745
|
tag$19.textContent = css$19;
|
|
732
746
|
var CharactersPanel_module_css_default = {
|
|
733
|
-
"
|
|
734
|
-
"nameInput": "
|
|
735
|
-
"
|
|
736
|
-
"
|
|
737
|
-
"
|
|
738
|
-
"
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
"
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"
|
|
747
|
-
"
|
|
748
|
-
"
|
|
749
|
-
"area": "
|
|
750
|
-
"
|
|
751
|
-
"
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
"
|
|
758
|
-
"
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
"
|
|
762
|
-
"
|
|
763
|
-
"
|
|
764
|
-
"
|
|
765
|
-
"bar": "
|
|
766
|
-
"
|
|
747
|
+
"missing": "rp_5ZMIxq_missing",
|
|
748
|
+
"nameInput": "rp_5ZMIxq_nameInput",
|
|
749
|
+
"tabsSpace": "rp_5ZMIxq_tabsSpace",
|
|
750
|
+
"portraitAction": "rp_5ZMIxq_portraitAction",
|
|
751
|
+
"empty": "rp_5ZMIxq_empty",
|
|
752
|
+
"portraitHint": "rp_5ZMIxq_portraitHint",
|
|
753
|
+
"panel": "rp_5ZMIxq_panel",
|
|
754
|
+
"placeholder": "rp_5ZMIxq_placeholder",
|
|
755
|
+
"grid": "rp_5ZMIxq_grid",
|
|
756
|
+
"portraitBox": "rp_5ZMIxq_portraitBox",
|
|
757
|
+
"tabs": "rp_5ZMIxq_tabs",
|
|
758
|
+
"field": "rp_5ZMIxq_field",
|
|
759
|
+
"meta": "rp_5ZMIxq_meta",
|
|
760
|
+
"sectionTitle": "rp_5ZMIxq_sectionTitle",
|
|
761
|
+
"section": "rp_5ZMIxq_section",
|
|
762
|
+
"portraitError": "rp_5ZMIxq_portraitError",
|
|
763
|
+
"area": "rp_5ZMIxq_area",
|
|
764
|
+
"goal": "rp_5ZMIxq_goal",
|
|
765
|
+
"error": "rp_5ZMIxq_error",
|
|
766
|
+
"barText": "rp_5ZMIxq_barText",
|
|
767
|
+
"body": "rp_5ZMIxq_body",
|
|
768
|
+
"voiceInline": "rp_5ZMIxq_voiceInline",
|
|
769
|
+
"tab": "rp_5ZMIxq_tab",
|
|
770
|
+
"sheet": "rp_5ZMIxq_sheet",
|
|
771
|
+
"row": "rp_5ZMIxq_row",
|
|
772
|
+
"label": "rp_5ZMIxq_label",
|
|
773
|
+
"tabOn": "rp_5ZMIxq_tabOn",
|
|
774
|
+
"help": "rp_5ZMIxq_help",
|
|
775
|
+
"select": "rp_5ZMIxq_select",
|
|
776
|
+
"portrait": "rp_5ZMIxq_portrait",
|
|
777
|
+
"head": "rp_5ZMIxq_head",
|
|
778
|
+
"wide": "rp_5ZMIxq_wide",
|
|
779
|
+
"bar": "rp_5ZMIxq_bar",
|
|
780
|
+
"initial": "rp_5ZMIxq_initial"
|
|
767
781
|
};
|
|
768
782
|
//#endregion
|
|
769
783
|
//#region src/client/world-editor/CharactersPanel.tsx
|
|
@@ -1286,6 +1300,16 @@ window.__ModuleLoader__.load({
|
|
|
1286
1300
|
setDrafts(({ [current.key]: _discarded, ...rest }) => rest);
|
|
1287
1301
|
setSaving({ status: "idle" });
|
|
1288
1302
|
};
|
|
1303
|
+
const uploadPortrait = (file) => {
|
|
1304
|
+
if (file === void 0 || dirty) return;
|
|
1305
|
+
setPortrait({ key: current.key });
|
|
1306
|
+
source.uploadPortrait(current.key, file, new AbortController().signal).then((next) => {
|
|
1307
|
+
setPortrait({});
|
|
1308
|
+
onChanged(next);
|
|
1309
|
+
}, (failure) => {
|
|
1310
|
+
setPortrait({ error: failure instanceof Error ? failure.message : String(failure) });
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
1289
1313
|
const generatePortrait = () => {
|
|
1290
1314
|
if (dirty) return;
|
|
1291
1315
|
setPortrait({ key: current.key });
|
|
@@ -1366,6 +1390,23 @@ window.__ModuleLoader__.load({
|
|
|
1366
1390
|
className: CharactersPanel_module_css_default.body,
|
|
1367
1391
|
ref: body,
|
|
1368
1392
|
children: [
|
|
1393
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
1394
|
+
className: CharactersPanel_module_css_default.portraitHint,
|
|
1395
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
1396
|
+
type: "file",
|
|
1397
|
+
accept: "image/png",
|
|
1398
|
+
hidden: true,
|
|
1399
|
+
disabled: dirty || portrait.key === current.key,
|
|
1400
|
+
onChange: (event) => {
|
|
1401
|
+
uploadPortrait(event.target.files?.[0]);
|
|
1402
|
+
event.target.value = "";
|
|
1403
|
+
}
|
|
1404
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1405
|
+
role: "button",
|
|
1406
|
+
tabIndex: 0,
|
|
1407
|
+
children: t("portraitUpload")
|
|
1408
|
+
})]
|
|
1409
|
+
}) }),
|
|
1369
1410
|
portrait.error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
1370
1411
|
className: CharactersPanel_module_css_default.portraitError,
|
|
1371
1412
|
role: "alert",
|
|
@@ -1555,6 +1596,7 @@ window.__ModuleLoader__.load({
|
|
|
1555
1596
|
name: place.name,
|
|
1556
1597
|
description: place.description,
|
|
1557
1598
|
features: place.features,
|
|
1599
|
+
parent: place.parent?.key ?? "",
|
|
1558
1600
|
visual: visualDraft(place.visualIdentity)
|
|
1559
1601
|
};
|
|
1560
1602
|
const draft = drafts[place.key] ?? original;
|
|
@@ -1571,6 +1613,7 @@ window.__ModuleLoader__.load({
|
|
|
1571
1613
|
name: draft.name.trim(),
|
|
1572
1614
|
description: draft.description,
|
|
1573
1615
|
features: draft.features,
|
|
1616
|
+
parent: draft.parent === "" ? null : draft.parent,
|
|
1574
1617
|
visualIdentity: visual(draft.visual.description, draft.visual.tags, draft.visual.negativeTags, draft.visual.globalId)
|
|
1575
1618
|
};
|
|
1576
1619
|
setStatus({ state: "saving" });
|
|
@@ -1622,14 +1665,29 @@ window.__ModuleLoader__.load({
|
|
|
1622
1665
|
});
|
|
1623
1666
|
}
|
|
1624
1667
|
}),
|
|
1625
|
-
|
|
1626
|
-
|
|
1668
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
1669
|
+
className: CharactersPanel_module_css_default.field,
|
|
1670
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1627
1671
|
className: CharactersPanel_module_css_default.label,
|
|
1628
1672
|
children: t("insidePlace")
|
|
1629
|
-
}),
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1673
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
1674
|
+
className: CharactersPanel_module_css_default.select,
|
|
1675
|
+
value: draft.parent,
|
|
1676
|
+
onChange: (event) => {
|
|
1677
|
+
update({
|
|
1678
|
+
...draft,
|
|
1679
|
+
parent: event.target.value
|
|
1680
|
+
});
|
|
1681
|
+
},
|
|
1682
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1683
|
+
value: "",
|
|
1684
|
+
children: t("insideNothing")
|
|
1685
|
+
}), world.places.filter((other) => other.key !== place.key).map((other) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1686
|
+
value: other.key,
|
|
1687
|
+
children: other.name
|
|
1688
|
+
}, other.key))]
|
|
1689
|
+
})]
|
|
1690
|
+
}),
|
|
1633
1691
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
1634
1692
|
className: CharactersPanel_module_css_default.section,
|
|
1635
1693
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
@@ -1773,6 +1831,7 @@ window.__ModuleLoader__.load({
|
|
|
1773
1831
|
quality: thing.quality,
|
|
1774
1832
|
notable: thing.notable,
|
|
1775
1833
|
hidden: thing.hidden,
|
|
1834
|
+
owner: thing.owner?.key ?? "",
|
|
1776
1835
|
...thing.containerState === void 0 ? {} : { containerState: thing.containerState },
|
|
1777
1836
|
visual: visualDraft(thing.visualIdentity)
|
|
1778
1837
|
};
|
|
@@ -1793,6 +1852,7 @@ window.__ModuleLoader__.load({
|
|
|
1793
1852
|
quality: draft.quality,
|
|
1794
1853
|
notable: draft.notable,
|
|
1795
1854
|
hidden: draft.hidden,
|
|
1855
|
+
owner: draft.owner === "" ? null : draft.owner,
|
|
1796
1856
|
...draft.containerState === void 0 ? {} : { containerState: draft.containerState },
|
|
1797
1857
|
visualIdentity: visual(draft.visual.description, draft.visual.tags, draft.visual.negativeTags, draft.visual.globalId)
|
|
1798
1858
|
};
|
|
@@ -1850,8 +1910,7 @@ window.__ModuleLoader__.load({
|
|
|
1850
1910
|
children: [
|
|
1851
1911
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("heldAt", { holder: thing.holder }) }),
|
|
1852
1912
|
thing.unique && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("unique") }),
|
|
1853
|
-
thing.wearable !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("wearableAt", { slot: thing.wearable }) })
|
|
1854
|
-
thing.owner !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("ownedBy", { owner: thing.owner.name }) })
|
|
1913
|
+
thing.wearable !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("wearableAt", { slot: thing.wearable }) })
|
|
1855
1914
|
]
|
|
1856
1915
|
}),
|
|
1857
1916
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
@@ -1890,6 +1949,29 @@ window.__ModuleLoader__.load({
|
|
|
1890
1949
|
}
|
|
1891
1950
|
})]
|
|
1892
1951
|
}),
|
|
1952
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
1953
|
+
className: CharactersPanel_module_css_default.field,
|
|
1954
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1955
|
+
className: CharactersPanel_module_css_default.label,
|
|
1956
|
+
children: t("ownerLabel")
|
|
1957
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
1958
|
+
className: CharactersPanel_module_css_default.select,
|
|
1959
|
+
value: draft.owner,
|
|
1960
|
+
onChange: (event) => {
|
|
1961
|
+
update({
|
|
1962
|
+
...draft,
|
|
1963
|
+
owner: event.target.value
|
|
1964
|
+
});
|
|
1965
|
+
},
|
|
1966
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1967
|
+
value: "",
|
|
1968
|
+
children: t("ownerNobody")
|
|
1969
|
+
}), world.characters.map((person) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1970
|
+
value: person.key,
|
|
1971
|
+
children: person.name
|
|
1972
|
+
}, person.key))]
|
|
1973
|
+
})]
|
|
1974
|
+
}),
|
|
1893
1975
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
1894
1976
|
className: CharactersPanel_module_css_default.field,
|
|
1895
1977
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -2252,8 +2334,8 @@ window.__ModuleLoader__.load({
|
|
|
2252
2334
|
});
|
|
2253
2335
|
}
|
|
2254
2336
|
//#endregion
|
|
2255
|
-
//#region \0css-module:/home/
|
|
2256
|
-
const css$18 = ".
|
|
2337
|
+
//#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
|
|
2338
|
+
const css$18 = ".rp_7pEHTW_panel{flex-direction:column;flex:1 1 0;min-height:0;display:flex;position:relative}.rp_7pEHTW_toolbar{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:4px;padding:8px 16px;display:flex}.rp_7pEHTW_filter{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:5px 9px}.rp_7pEHTW_filterOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2)}.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:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);max-width:150px;color:inherit;background:0 0;padding:4px 6px}.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:1px solid var(--dsw-alias-border-l3);overflow-y:auto}.rp_7pEHTW_edge{border:0;border-bottom:1px solid var(--dsw-alias-border-l4);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;flex-direction:column;gap:2px;padding:10px 16px;display:flex}.rp_7pEHTW_edgeOn{background:var(--dsw-alias-bg-layer-2)}.rp_7pEHTW_edgeTitle{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rp_7pEHTW_edgeKind{color:var(--dsw-alias-label-tertiary);font-size:11px}.rp_7pEHTW_empty{color:var(--dsw-alias-label-tertiary);padding:20px}.rp_7pEHTW_inspector{min-width:0;padding:24px 24px 240px;overflow-y:auto}.rp_7pEHTW_head h2{margin:0 0 8px;font-size:17px}.rp_7pEHTW_entities{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:6px;display:flex}.rp_7pEHTW_notice{color:var(--dsw-alias-label-secondary);margin:24px 0}.rp_7pEHTW_form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;display:grid}.rp_7pEHTW_form label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:5px;font-size:12px;display:flex}.rp_7pEHTW_form select,.rp_7pEHTW_form textarea{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:100%;color:inherit;font:inherit;background:0 0;padding:7px 9px}.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:1px solid var(--dsw-alias-border-l4);justify-content:flex-end;align-items:center;gap:8px;margin-top:28px;padding-top:12px;display:flex}.rp_7pEHTW_status{color:var(--dsw-alias-label-secondary);margin-right:auto}.rp_7pEHTW_error{color:var(--dsw-alias-state-error-primary);margin-right:auto}.rp_7pEHTW_graph{background:radial-gradient(circle, var(--dsw-alias-bg-layer-2), transparent 70%);flex:1 1 0;min-height:360px;position:relative;overflow:hidden}.rp_7pEHTW_graph svg{width:100%;height:100%;min-height:520px}.rp_7pEHTW_graphEdge{cursor:pointer;stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_graphEdge:hover,.rp_7pEHTW_graphEdgeOn{stroke:var(--dsw-alias-state-business-primary);stroke-width:4px}.rp_7pEHTW_node circle{fill:var(--dsw-alias-bg-layer-1);stroke:var(--dsw-alias-border-l1);stroke-width:2px}.rp_7pEHTW_node_character circle{fill:color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_location circle{fill:color-mix(in srgb, #4a9 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_item circle{fill:color-mix(in srgb, #c90 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node_faction circle{fill:color-mix(in srgb, #96c 20%, var(--dsw-alias-bg-layer-1))}.rp_7pEHTW_node text{fill:var(--dsw-alias-label-primary);pointer-events:none;font-size:11px}.rp_7pEHTW_graphInspector{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:min(480px,100% - 40px);max-height:62%;padding:18px;position:absolute;bottom:20px;right:20px;overflow-y:auto;box-shadow:0 8px 30px #0000002e}@media (width<=760px){.rp_7pEHTW_workspace{grid-template-columns:1fr}.rp_7pEHTW_list{border-right:0;border-bottom:1px solid var(--dsw-alias-border-l3);max-height:220px}.rp_7pEHTW_metrics{grid-template-columns:repeat(2,1fr)}}";
|
|
2257
2339
|
const key$18 = "src/client/world-editor/RelationsPanel.module.css";
|
|
2258
2340
|
let tag$18 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$18) + "]");
|
|
2259
2341
|
if (tag$18 === null) {
|
|
@@ -2264,39 +2346,39 @@ window.__ModuleLoader__.load({
|
|
|
2264
2346
|
}
|
|
2265
2347
|
tag$18.textContent = css$18;
|
|
2266
2348
|
var RelationsPanel_module_css_default = {
|
|
2267
|
-
"
|
|
2268
|
-
"
|
|
2269
|
-
"
|
|
2270
|
-
"
|
|
2271
|
-
"
|
|
2272
|
-
"
|
|
2273
|
-
"
|
|
2274
|
-
"
|
|
2275
|
-
"
|
|
2276
|
-
"
|
|
2277
|
-
"
|
|
2278
|
-
"
|
|
2279
|
-
"
|
|
2280
|
-
"
|
|
2281
|
-
"
|
|
2282
|
-
"
|
|
2283
|
-
"
|
|
2284
|
-
"
|
|
2285
|
-
"
|
|
2286
|
-
"
|
|
2287
|
-
"
|
|
2288
|
-
"
|
|
2289
|
-
"
|
|
2290
|
-
"
|
|
2291
|
-
"
|
|
2292
|
-
"
|
|
2293
|
-
"
|
|
2294
|
-
"
|
|
2295
|
-
"
|
|
2296
|
-
"
|
|
2297
|
-
"
|
|
2298
|
-
"
|
|
2299
|
-
"
|
|
2349
|
+
"space": "rp_7pEHTW_space",
|
|
2350
|
+
"perspective": "rp_7pEHTW_perspective",
|
|
2351
|
+
"edgeKind": "rp_7pEHTW_edgeKind",
|
|
2352
|
+
"head": "rp_7pEHTW_head",
|
|
2353
|
+
"form": "rp_7pEHTW_form",
|
|
2354
|
+
"actions": "rp_7pEHTW_actions",
|
|
2355
|
+
"graphInspector": "rp_7pEHTW_graphInspector",
|
|
2356
|
+
"graph": "rp_7pEHTW_graph",
|
|
2357
|
+
"node_location": "rp_7pEHTW_node_location",
|
|
2358
|
+
"node": "rp_7pEHTW_node",
|
|
2359
|
+
"entities": "rp_7pEHTW_entities",
|
|
2360
|
+
"node_item": "rp_7pEHTW_node_item",
|
|
2361
|
+
"node_faction": "rp_7pEHTW_node_faction",
|
|
2362
|
+
"filter": "rp_7pEHTW_filter",
|
|
2363
|
+
"status": "rp_7pEHTW_status",
|
|
2364
|
+
"graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
|
|
2365
|
+
"edgeOn": "rp_7pEHTW_edgeOn",
|
|
2366
|
+
"metrics": "rp_7pEHTW_metrics",
|
|
2367
|
+
"edgeTitle": "rp_7pEHTW_edgeTitle",
|
|
2368
|
+
"error": "rp_7pEHTW_error",
|
|
2369
|
+
"panel": "rp_7pEHTW_panel",
|
|
2370
|
+
"edge": "rp_7pEHTW_edge",
|
|
2371
|
+
"notice": "rp_7pEHTW_notice",
|
|
2372
|
+
"empty": "rp_7pEHTW_empty",
|
|
2373
|
+
"wide": "rp_7pEHTW_wide",
|
|
2374
|
+
"inspector": "rp_7pEHTW_inspector",
|
|
2375
|
+
"list": "rp_7pEHTW_list",
|
|
2376
|
+
"graphEdge": "rp_7pEHTW_graphEdge",
|
|
2377
|
+
"toolbar": "rp_7pEHTW_toolbar",
|
|
2378
|
+
"check": "rp_7pEHTW_check",
|
|
2379
|
+
"workspace": "rp_7pEHTW_workspace",
|
|
2380
|
+
"node_character": "rp_7pEHTW_node_character",
|
|
2381
|
+
"filterOn": "rp_7pEHTW_filterOn"
|
|
2300
2382
|
};
|
|
2301
2383
|
//#endregion
|
|
2302
2384
|
//#region src/client/world-editor/RelationsPanel.tsx
|
|
@@ -3465,6 +3547,7 @@ window.__ModuleLoader__.load({
|
|
|
3465
3547
|
authorUrl: info.authorUrl,
|
|
3466
3548
|
timeZone: info.timeZone,
|
|
3467
3549
|
startingTime: info.startingTime,
|
|
3550
|
+
version: info.version,
|
|
3468
3551
|
alternates: info.alternateOpenings
|
|
3469
3552
|
});
|
|
3470
3553
|
const lines = (value) => value.split("\n").map((line) => line.trim()).filter((line) => line !== "");
|
|
@@ -3479,7 +3562,8 @@ window.__ModuleLoader__.load({
|
|
|
3479
3562
|
"authorName",
|
|
3480
3563
|
"authorUrl",
|
|
3481
3564
|
"timeZone",
|
|
3482
|
-
"startingTime"
|
|
3565
|
+
"startingTime",
|
|
3566
|
+
"version"
|
|
3483
3567
|
]) if (draft[key].trim() !== saved[key].trim()) edit[key] = draft[key];
|
|
3484
3568
|
if (JSON.stringify(words(draft.tags)) !== JSON.stringify(words(saved.tags))) edit["tags"] = words(draft.tags);
|
|
3485
3569
|
if (JSON.stringify(lines(draft.rules)) !== JSON.stringify(lines(saved.rules))) edit["rules"] = lines(draft.rules);
|
|
@@ -3713,6 +3797,7 @@ window.__ModuleLoader__.load({
|
|
|
3713
3797
|
className: CharactersPanel_module_css_default.grid,
|
|
3714
3798
|
children: [
|
|
3715
3799
|
field("authorName", "infoAuthor"),
|
|
3800
|
+
field("version", "infoVersion", "infoVersionHelp", { placeholder: "1.0" }),
|
|
3716
3801
|
field("authorUrl", "infoAuthorUrl", void 0, { placeholder: "https://" }),
|
|
3717
3802
|
field("timeZone", "infoTimeZone", "infoTimeZoneHelp", { placeholder: "Europe/London" }),
|
|
3718
3803
|
field("startingTime", "infoStartingTime", "infoStartingTimeHelp", { placeholder: "1912-04-14T23:40:00" })
|
|
@@ -4659,8 +4744,8 @@ window.__ModuleLoader__.load({
|
|
|
4659
4744
|
}
|
|
4660
4745
|
const imageUrl = (target, image) => `${route(target, "/file")}&path=${encodeURIComponent(image.path)}&v=${encodeURIComponent(image.createdAt)}`;
|
|
4661
4746
|
//#endregion
|
|
4662
|
-
//#region \0css-module:/home/
|
|
4663
|
-
const css$17 = ".
|
|
4747
|
+
//#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
|
|
4748
|
+
const css$17 = ".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{align-items:center;gap:8px;display:flex}.rp_9pSHmG_select{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);height:28px;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:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);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-sm);object-fit:contain;max-width:100%;max-height:32vh;margin:0 auto;display:block}.rp_9pSHmG_facts{grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.rp_9pSHmG_facts dt{color:var(--dsw-alias-label-tertiary)}.rp_9pSHmG_facts dd{min-width:0;color:var(--dsw-alias-label-primary);margin:0}.rp_9pSHmG_pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}.rp_9pSHmG_tags{flex-wrap:wrap;gap:4px;display:flex}.rp_9pSHmG_note{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_9pSHmG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_9pSHmG_status,.rp_9pSHmG_statusError{color:var(--dsw-alias-label-tertiary);padding:0 8px 6px;font-size:11px;line-height:16px}.rp_9pSHmG_statusError{color:var(--dsw-alias-state-error-primary)}.rp_9pSHmG_reusable{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:0 8px 6px;font-size:11px;display:flex}.rp_9pSHmG_reusable input{accent-color:var(--dsw-alias-state-business-primary);margin:0}.rp_9pSHmG_editButton{font:inherit;color:var(--dsw-alias-state-business-primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;margin:0 8px 4px;padding:0;font-size:11px}.rp_9pSHmG_edit{flex-direction:column;gap:12px;width:min(480px,100%);display:flex}.rp_9pSHmG_editField{flex-direction:column;gap:4px;display:flex}.rp_9pSHmG_editLabel{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_9pSHmG_editHelp{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_9pSHmG_editArea,.rp_9pSHmG_editInput{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);font:inherit;color:var(--dsw-alias-label-primary);padding:6px 8px;font-size:13px}.rp_9pSHmG_editArea{resize:vertical}";
|
|
4664
4749
|
const key$17 = "src/client/widgets/gallery-view/GalleryView.module.css";
|
|
4665
4750
|
let tag$17 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$17) + "]");
|
|
4666
4751
|
if (tag$17 === null) {
|
|
@@ -4671,35 +4756,35 @@ window.__ModuleLoader__.load({
|
|
|
4671
4756
|
}
|
|
4672
4757
|
tag$17.textContent = css$17;
|
|
4673
4758
|
var GalleryView_module_css_default = {
|
|
4674
|
-
"
|
|
4675
|
-
"
|
|
4676
|
-
"
|
|
4677
|
-
"
|
|
4678
|
-
"
|
|
4679
|
-
"
|
|
4680
|
-
"
|
|
4681
|
-
"
|
|
4682
|
-
"
|
|
4683
|
-
"
|
|
4684
|
-
"
|
|
4685
|
-
"
|
|
4686
|
-
"
|
|
4687
|
-
"
|
|
4688
|
-
"
|
|
4689
|
-
"
|
|
4690
|
-
"
|
|
4691
|
-
"
|
|
4692
|
-
"
|
|
4693
|
-
"
|
|
4694
|
-
"
|
|
4695
|
-
"
|
|
4696
|
-
"
|
|
4697
|
-
"
|
|
4698
|
-
"
|
|
4699
|
-
"
|
|
4700
|
-
"
|
|
4701
|
-
"
|
|
4702
|
-
"
|
|
4759
|
+
"reusable": "rp_9pSHmG_reusable",
|
|
4760
|
+
"editField": "rp_9pSHmG_editField",
|
|
4761
|
+
"facts": "rp_9pSHmG_facts",
|
|
4762
|
+
"caption": "rp_9pSHmG_caption",
|
|
4763
|
+
"editHelp": "rp_9pSHmG_editHelp",
|
|
4764
|
+
"grid": "rp_9pSHmG_grid",
|
|
4765
|
+
"detail": "rp_9pSHmG_detail",
|
|
4766
|
+
"error": "rp_9pSHmG_error",
|
|
4767
|
+
"page": "rp_9pSHmG_page",
|
|
4768
|
+
"cell": "rp_9pSHmG_cell",
|
|
4769
|
+
"select": "rp_9pSHmG_select",
|
|
4770
|
+
"pre": "rp_9pSHmG_pre",
|
|
4771
|
+
"editInput": "rp_9pSHmG_editInput",
|
|
4772
|
+
"note": "rp_9pSHmG_note",
|
|
4773
|
+
"count": "rp_9pSHmG_count",
|
|
4774
|
+
"status": "rp_9pSHmG_status",
|
|
4775
|
+
"actions": "rp_9pSHmG_actions",
|
|
4776
|
+
"editLabel": "rp_9pSHmG_editLabel",
|
|
4777
|
+
"editArea": "rp_9pSHmG_editArea",
|
|
4778
|
+
"thumb": "rp_9pSHmG_thumb",
|
|
4779
|
+
"edit": "rp_9pSHmG_edit",
|
|
4780
|
+
"editButton": "rp_9pSHmG_editButton",
|
|
4781
|
+
"open": "rp_9pSHmG_open",
|
|
4782
|
+
"message": "rp_9pSHmG_message",
|
|
4783
|
+
"statusError": "rp_9pSHmG_statusError",
|
|
4784
|
+
"image": "rp_9pSHmG_image",
|
|
4785
|
+
"toolbar": "rp_9pSHmG_toolbar",
|
|
4786
|
+
"large": "rp_9pSHmG_large",
|
|
4787
|
+
"tags": "rp_9pSHmG_tags"
|
|
4703
4788
|
};
|
|
4704
4789
|
//#endregion
|
|
4705
4790
|
//#region src/client/widgets/gallery-view/GalleryView.tsx
|
|
@@ -5028,8 +5113,8 @@ window.__ModuleLoader__.load({
|
|
|
5028
5113
|
});
|
|
5029
5114
|
}
|
|
5030
5115
|
//#endregion
|
|
5031
|
-
//#region \0css-module:/home/
|
|
5032
|
-
const css$16 = ".
|
|
5116
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/world-editor/WorldEditor.module.css.mjs
|
|
5117
|
+
const css$16 = ".rp__swA3a_view{flex:1 1 0;width:100%;min-height:0;display:flex}.rp__swA3a_message{color:var(--dsw-alias-label-secondary);margin:0;padding:24px;font-size:13px}.rp__swA3a_warning{color:var(--dsw-alias-label-primary);border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);margin:0 0 12px;padding:8px 12px;font-size:13px}.rp__swA3a_drawer{box-sizing:border-box;border-right:1px solid var(--dsw-alias-border-l3);flex-direction:column;flex:0 0 168px;gap:2px;padding:16px 8px;display:flex}.rp__swA3a_drawerItem{border-radius:var(--dsw-radius-sm);width:100%;font:inherit;text-align:left;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:6px 12px;font-size:13px;line-height:20px;display:block}.rp__swA3a_drawerItem:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.rp__swA3a_drawerItemOn{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-2);font-weight:500}.rp__swA3a_content{flex-direction:column;flex:1 1 0;min-width:0;min-height:0;display:flex}";
|
|
5033
5118
|
const key$16 = "src/client/world-editor/WorldEditor.module.css";
|
|
5034
5119
|
let tag$16 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$16) + "]");
|
|
5035
5120
|
if (tag$16 === null) {
|
|
@@ -5040,13 +5125,13 @@ window.__ModuleLoader__.load({
|
|
|
5040
5125
|
}
|
|
5041
5126
|
tag$16.textContent = css$16;
|
|
5042
5127
|
var WorldEditor_module_css_default = {
|
|
5043
|
-
"
|
|
5044
|
-
"
|
|
5045
|
-
"
|
|
5046
|
-
"
|
|
5047
|
-
"
|
|
5048
|
-
"
|
|
5049
|
-
"drawerItemOn": "
|
|
5128
|
+
"drawer": "rp__swA3a_drawer",
|
|
5129
|
+
"view": "rp__swA3a_view",
|
|
5130
|
+
"content": "rp__swA3a_content",
|
|
5131
|
+
"drawerItem": "rp__swA3a_drawerItem",
|
|
5132
|
+
"warning": "rp__swA3a_warning",
|
|
5133
|
+
"message": "rp__swA3a_message",
|
|
5134
|
+
"drawerItemOn": "rp__swA3a_drawerItemOn"
|
|
5050
5135
|
};
|
|
5051
5136
|
//#endregion
|
|
5052
5137
|
//#region src/client/world-editor/WorldEditor.tsx
|
|
@@ -5343,8 +5428,8 @@ window.__ModuleLoader__.load({
|
|
|
5343
5428
|
});
|
|
5344
5429
|
}
|
|
5345
5430
|
//#endregion
|
|
5346
|
-
//#region \0css-module:/home/
|
|
5347
|
-
const css$15 = ".
|
|
5431
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/avatars/AvatarsPage.module.css.mjs
|
|
5432
|
+
const css$15 = ".rp_pQOzEG_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_pQOzEG_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_pQOzEG_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_pQOzEG_actions{align-items:center;gap:8px;display:flex}.rp_pQOzEG_viewport{flex:1 1 0;min-height:0;padding:4px;overflow-y:auto}.rp_pQOzEG_grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.rp_pQOzEG_card{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);align-items:center;gap:4px;min-width:0;padding-right:8px;display:flex}.rp_pQOzEG_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_pQOzEG_open{min-width:0;font:inherit;text-align:left;color:inherit;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:12px;padding:10px 0 10px 10px;display:flex}.rp_pQOzEG_open:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_pQOzEG_portrait,.rp_pQOzEG_placeholder{border-radius:var(--dsw-radius-sm);object-fit:cover;flex:none;width:48px;height:48px}.rp_pQOzEG_placeholder{color:var(--dsw-alias-label-secondary);justify-content:center;align-items:center;font-size:20px;font-weight:500;display:flex}.rp_pQOzEG_text{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_pQOzEG_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;overflow:hidden}.rp_pQOzEG_summary{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.rp_pQOzEG_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_pQOzEG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_pQOzEG_editHeader{border-bottom:1px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_pQOzEG_editTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_pQOzEG_editBody{flex:1 1 0;min-height:0;display:flex}.rp_pQOzEG_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_pQOzEG_field{flex-direction:column;gap:6px;min-width:0;display:flex}.rp_pQOzEG_label{color:var(--dsw-alias-label-secondary);font-size:12px}";
|
|
5348
5433
|
const key$15 = "src/client/pages/avatars/AvatarsPage.module.css";
|
|
5349
5434
|
let tag$15 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$15) + "]");
|
|
5350
5435
|
if (tag$15 === null) {
|
|
@@ -5355,27 +5440,27 @@ window.__ModuleLoader__.load({
|
|
|
5355
5440
|
}
|
|
5356
5441
|
tag$15.textContent = css$15;
|
|
5357
5442
|
var AvatarsPage_module_css_default = {
|
|
5358
|
-
"
|
|
5359
|
-
"
|
|
5360
|
-
"
|
|
5361
|
-
"
|
|
5362
|
-
"
|
|
5363
|
-
"
|
|
5364
|
-
"
|
|
5365
|
-
"
|
|
5366
|
-
"
|
|
5367
|
-
"
|
|
5368
|
-
"portrait": "
|
|
5369
|
-
"
|
|
5370
|
-
"
|
|
5371
|
-
"
|
|
5372
|
-
"
|
|
5373
|
-
"
|
|
5374
|
-
"
|
|
5375
|
-
"count": "
|
|
5376
|
-
"
|
|
5377
|
-
"
|
|
5378
|
-
"
|
|
5443
|
+
"text": "rp_pQOzEG_text",
|
|
5444
|
+
"card": "rp_pQOzEG_card",
|
|
5445
|
+
"editHeader": "rp_pQOzEG_editHeader",
|
|
5446
|
+
"label": "rp_pQOzEG_label",
|
|
5447
|
+
"name": "rp_pQOzEG_name",
|
|
5448
|
+
"field": "rp_pQOzEG_field",
|
|
5449
|
+
"editTitle": "rp_pQOzEG_editTitle",
|
|
5450
|
+
"page": "rp_pQOzEG_page",
|
|
5451
|
+
"summary": "rp_pQOzEG_summary",
|
|
5452
|
+
"grid": "rp_pQOzEG_grid",
|
|
5453
|
+
"portrait": "rp_pQOzEG_portrait",
|
|
5454
|
+
"editBody": "rp_pQOzEG_editBody",
|
|
5455
|
+
"form": "rp_pQOzEG_form",
|
|
5456
|
+
"actions": "rp_pQOzEG_actions",
|
|
5457
|
+
"message": "rp_pQOzEG_message",
|
|
5458
|
+
"error": "rp_pQOzEG_error",
|
|
5459
|
+
"viewport": "rp_pQOzEG_viewport",
|
|
5460
|
+
"count": "rp_pQOzEG_count",
|
|
5461
|
+
"placeholder": "rp_pQOzEG_placeholder",
|
|
5462
|
+
"open": "rp_pQOzEG_open",
|
|
5463
|
+
"toolbar": "rp_pQOzEG_toolbar"
|
|
5379
5464
|
};
|
|
5380
5465
|
//#endregion
|
|
5381
5466
|
//#region src/client/pages/avatars/AvatarsPage.tsx
|
|
@@ -5806,6 +5891,8 @@ window.__ModuleLoader__.load({
|
|
|
5806
5891
|
infoAlternateRemove: "Remove",
|
|
5807
5892
|
infoStory: "Author and time",
|
|
5808
5893
|
infoAuthor: "Author",
|
|
5894
|
+
infoVersion: "Version",
|
|
5895
|
+
infoVersionHelp: "Your own label for this release of the world, such as 1.2. It is recorded in the sessions started from it.",
|
|
5809
5896
|
infoAuthorUrl: "Author link",
|
|
5810
5897
|
infoTimeZone: "Time zone",
|
|
5811
5898
|
infoTimeZoneHelp: "An IANA name such as Europe/London. Empty means UTC.",
|
|
@@ -5852,6 +5939,7 @@ window.__ModuleLoader__.load({
|
|
|
5852
5939
|
factions: "Factions",
|
|
5853
5940
|
noCharacters: "This story has no characters.",
|
|
5854
5941
|
portraitMissing: "No portrait",
|
|
5942
|
+
portraitUpload: "Upload a PNG portrait",
|
|
5855
5943
|
portraitGenerate: "Generate portrait",
|
|
5856
5944
|
portraitGenerating: "Generating…",
|
|
5857
5945
|
portraitRetry: "Regenerate portrait",
|
|
@@ -5925,6 +6013,9 @@ window.__ModuleLoader__.load({
|
|
|
5925
6013
|
noThings: "This story has no things.",
|
|
5926
6014
|
description: "Description",
|
|
5927
6015
|
insidePlace: "Inside",
|
|
6016
|
+
insideNothing: "(not inside another place)",
|
|
6017
|
+
ownerLabel: "Belongs to",
|
|
6018
|
+
ownerNobody: "(no one)",
|
|
5928
6019
|
features: "Features",
|
|
5929
6020
|
featureId: "Feature ID",
|
|
5930
6021
|
addFeature: "Add feature",
|
|
@@ -6058,6 +6149,8 @@ window.__ModuleLoader__.load({
|
|
|
6058
6149
|
infoAlternateRemove: "移除",
|
|
6059
6150
|
infoStory: "作者与时间",
|
|
6060
6151
|
infoAuthor: "作者",
|
|
6152
|
+
infoVersion: "版本",
|
|
6153
|
+
infoVersionHelp: "你为这个版本的世界取的标记,例如 1.2;从它开始的会话会记录这个版本。",
|
|
6061
6154
|
infoAuthorUrl: "作者链接",
|
|
6062
6155
|
infoTimeZone: "时区",
|
|
6063
6156
|
infoTimeZoneHelp: "IANA 名称,例如 Europe/London;留空为 UTC。",
|
|
@@ -6104,6 +6197,7 @@ window.__ModuleLoader__.load({
|
|
|
6104
6197
|
factions: "阵营",
|
|
6105
6198
|
noCharacters: "这个故事没有角色。",
|
|
6106
6199
|
portraitMissing: "暂无肖像",
|
|
6200
|
+
portraitUpload: "上传 PNG 肖像",
|
|
6107
6201
|
portraitGenerate: "生成肖像",
|
|
6108
6202
|
portraitGenerating: "正在生成…",
|
|
6109
6203
|
portraitRetry: "重新生成肖像",
|
|
@@ -6177,6 +6271,9 @@ window.__ModuleLoader__.load({
|
|
|
6177
6271
|
noThings: "这个故事没有物品。",
|
|
6178
6272
|
description: "描述",
|
|
6179
6273
|
insidePlace: "位于",
|
|
6274
|
+
insideNothing: "(不在其他地点内)",
|
|
6275
|
+
ownerLabel: "归属",
|
|
6276
|
+
ownerNobody: "(无人)",
|
|
6180
6277
|
features: "地点特征",
|
|
6181
6278
|
featureId: "特征 ID",
|
|
6182
6279
|
addFeature: "添加特征",
|
|
@@ -6343,8 +6440,8 @@ window.__ModuleLoader__.load({
|
|
|
6343
6440
|
return Math.min(Math.floor(Math.max(0, index) / pageSize), lastPage) * pageSize;
|
|
6344
6441
|
}
|
|
6345
6442
|
//#endregion
|
|
6346
|
-
//#region \0css-module:/home/
|
|
6347
|
-
const css$14 = ".
|
|
6443
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/pager/Pager.module.css.mjs
|
|
6444
|
+
const css$14 = ".rp_KBAD0W_pager{flex:none;justify-content:center;align-items:center;gap:8px;display:flex}.rp_KBAD0W_position{text-align:center;min-width:120px;color:var(--dsw-alias-label-tertiary);font-size:12px}";
|
|
6348
6445
|
const key$14 = "src/client/widgets/pager/Pager.module.css";
|
|
6349
6446
|
let tag$14 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$14) + "]");
|
|
6350
6447
|
if (tag$14 === null) {
|
|
@@ -6355,8 +6452,8 @@ window.__ModuleLoader__.load({
|
|
|
6355
6452
|
}
|
|
6356
6453
|
tag$14.textContent = css$14;
|
|
6357
6454
|
var Pager_module_css_default = {
|
|
6358
|
-
"pager": "
|
|
6359
|
-
"position": "
|
|
6455
|
+
"pager": "rp_KBAD0W_pager",
|
|
6456
|
+
"position": "rp_KBAD0W_position"
|
|
6360
6457
|
};
|
|
6361
6458
|
//#endregion
|
|
6362
6459
|
//#region src/client/widgets/pager/Pager.tsx
|
|
@@ -6390,8 +6487,8 @@ window.__ModuleLoader__.load({
|
|
|
6390
6487
|
});
|
|
6391
6488
|
}
|
|
6392
6489
|
//#endregion
|
|
6393
|
-
//#region \0css-module:/home/
|
|
6394
|
-
const css$13 = ".
|
|
6490
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/problem-list/ProblemList.module.css.mjs
|
|
6491
|
+
const css$13 = ".rp_LZh3Iq_problems{color:var(--dsw-alias-state-warn-primary);flex:none;font-size:12px}.rp_LZh3Iq_problems summary{cursor:pointer}.rp_LZh3Iq_problems ul{color:var(--dsw-alias-label-secondary);margin:8px 0 0;padding-left:20px}.rp_LZh3Iq_problems code{font-family:var(--dsw-font-mono);color:var(--dsw-alias-label-primary)}";
|
|
6395
6492
|
const key$13 = "src/client/widgets/problem-list/ProblemList.module.css";
|
|
6396
6493
|
let tag$13 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$13) + "]");
|
|
6397
6494
|
if (tag$13 === null) {
|
|
@@ -6401,7 +6498,7 @@ window.__ModuleLoader__.load({
|
|
|
6401
6498
|
document.head.appendChild(tag$13);
|
|
6402
6499
|
}
|
|
6403
6500
|
tag$13.textContent = css$13;
|
|
6404
|
-
var ProblemList_module_css_default = { "problems": "
|
|
6501
|
+
var ProblemList_module_css_default = { "problems": "rp_LZh3Iq_problems" };
|
|
6405
6502
|
//#endregion
|
|
6406
6503
|
//#region src/client/widgets/problem-list/ProblemList.tsx
|
|
6407
6504
|
/** A collapsed list of what went wrong while reading files; renders nothing when nothing did. */
|
|
@@ -6417,8 +6514,8 @@ window.__ModuleLoader__.load({
|
|
|
6417
6514
|
});
|
|
6418
6515
|
}
|
|
6419
6516
|
//#endregion
|
|
6420
|
-
//#region \0css-module:/home/
|
|
6421
|
-
const css$12 = ".
|
|
6517
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/sessions/DeleteSessionDialog.module.css.mjs
|
|
6518
|
+
const css$12 = ".rp_FifHrW_body{flex-direction:column;gap:8px;min-width:min(380px,100%);display:flex}.rp_FifHrW_body p{margin:0}.rp_FifHrW_question{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;font-size:13px;line-height:20px}.rp_FifHrW_warning{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_FifHrW_error{color:var(--dsw-alias-state-error-primary);font-size:12px}";
|
|
6422
6519
|
const key$12 = "src/client/pages/sessions/DeleteSessionDialog.module.css";
|
|
6423
6520
|
let tag$12 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$12) + "]");
|
|
6424
6521
|
if (tag$12 === null) {
|
|
@@ -6429,10 +6526,10 @@ window.__ModuleLoader__.load({
|
|
|
6429
6526
|
}
|
|
6430
6527
|
tag$12.textContent = css$12;
|
|
6431
6528
|
var DeleteSessionDialog_module_css_default = {
|
|
6432
|
-
"
|
|
6433
|
-
"
|
|
6434
|
-
"
|
|
6435
|
-
"
|
|
6529
|
+
"body": "rp_FifHrW_body",
|
|
6530
|
+
"question": "rp_FifHrW_question",
|
|
6531
|
+
"warning": "rp_FifHrW_warning",
|
|
6532
|
+
"error": "rp_FifHrW_error"
|
|
6436
6533
|
};
|
|
6437
6534
|
//#endregion
|
|
6438
6535
|
//#region src/client/pages/sessions/DeleteSessionDialog.tsx
|
|
@@ -6527,8 +6624,8 @@ window.__ModuleLoader__.load({
|
|
|
6527
6624
|
return useFit(viewport, rowFit);
|
|
6528
6625
|
}
|
|
6529
6626
|
//#endregion
|
|
6530
|
-
//#region \0css-module:/home/
|
|
6531
|
-
const css$11 = ".
|
|
6627
|
+
//#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
|
|
6628
|
+
const css$11 = ".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}.rp_24z4eW_scrolls{overflow-y:auto}.rp_24z4eW_fits{overflow:hidden}.rp_24z4eW_table{border-collapse:collapse;table-layout:fixed;width:100%}.rp_24z4eW_actionsColumn{width:132px}.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:1px 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:1px 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:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);margin-left:6px;padding:0 6px;font-size:11px}";
|
|
6532
6629
|
const key$11 = "src/client/pages/sessions/SessionsPage.module.css";
|
|
6533
6630
|
let tag$11 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$11) + "]");
|
|
6534
6631
|
if (tag$11 === null) {
|
|
@@ -6539,28 +6636,28 @@ window.__ModuleLoader__.load({
|
|
|
6539
6636
|
}
|
|
6540
6637
|
tag$11.textContent = css$11;
|
|
6541
6638
|
var SessionsPage_module_css_default = {
|
|
6542
|
-
"fits": "
|
|
6543
|
-
"
|
|
6544
|
-
"
|
|
6545
|
-
"
|
|
6546
|
-
"
|
|
6547
|
-
"
|
|
6548
|
-
"
|
|
6549
|
-
"
|
|
6550
|
-
"
|
|
6551
|
-
"
|
|
6552
|
-
"
|
|
6553
|
-
"
|
|
6554
|
-
"
|
|
6555
|
-
"
|
|
6556
|
-
"
|
|
6557
|
-
"
|
|
6558
|
-
"
|
|
6559
|
-
"
|
|
6560
|
-
"
|
|
6561
|
-
"
|
|
6562
|
-
"
|
|
6563
|
-
"worldColumn": "
|
|
6639
|
+
"fits": "rp_24z4eW_fits",
|
|
6640
|
+
"turnsColumn": "rp_24z4eW_turnsColumn",
|
|
6641
|
+
"count": "rp_24z4eW_count",
|
|
6642
|
+
"name": "rp_24z4eW_name",
|
|
6643
|
+
"secondary": "rp_24z4eW_secondary",
|
|
6644
|
+
"notice": "rp_24z4eW_notice",
|
|
6645
|
+
"number": "rp_24z4eW_number",
|
|
6646
|
+
"actions": "rp_24z4eW_actions",
|
|
6647
|
+
"archived": "rp_24z4eW_archived",
|
|
6648
|
+
"message": "rp_24z4eW_message",
|
|
6649
|
+
"spinning": "rp_24z4eW_spinning",
|
|
6650
|
+
"timeColumn": "rp_24z4eW_timeColumn",
|
|
6651
|
+
"actionsColumn": "rp_24z4eW_actionsColumn",
|
|
6652
|
+
"badge": "rp_24z4eW_badge",
|
|
6653
|
+
"nameColumn": "rp_24z4eW_nameColumn",
|
|
6654
|
+
"toolbar": "rp_24z4eW_toolbar",
|
|
6655
|
+
"page": "rp_24z4eW_page",
|
|
6656
|
+
"spin": "rp_24z4eW_spin",
|
|
6657
|
+
"viewport": "rp_24z4eW_viewport",
|
|
6658
|
+
"scrolls": "rp_24z4eW_scrolls",
|
|
6659
|
+
"table": "rp_24z4eW_table",
|
|
6660
|
+
"worldColumn": "rp_24z4eW_worldColumn"
|
|
6564
6661
|
};
|
|
6565
6662
|
//#endregion
|
|
6566
6663
|
//#region src/client/pages/sessions/SessionsPage.tsx
|
|
@@ -7058,8 +7155,8 @@ window.__ModuleLoader__.load({
|
|
|
7058
7155
|
}, SessionsPage));
|
|
7059
7156
|
}
|
|
7060
7157
|
//#endregion
|
|
7061
|
-
//#region \0css-module:/home/
|
|
7062
|
-
const css$10 = ".
|
|
7158
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/world-card/WorldCard.module.css.mjs
|
|
7159
|
+
const css$10 = ".rp_Bvxx5q_card{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);flex-direction:column;flex:auto;min-width:0;transition:border-color .12s;display:flex;overflow:hidden}.rp_Bvxx5q_card:hover{border-color:var(--dsw-alias-border-l4)}.rp_Bvxx5q_card:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_cover{background:var(--dsw-alias-bg-layer-3);flex:1 1 0;min-height:0;position:relative;overflow:hidden}.rp_Bvxx5q_image{object-fit:cover;width:100%;height:100%;display:block}.rp_Bvxx5q_placeholder{color:#ffffffd9;background:linear-gradient(145deg, hsl(var(--rp-hue) 38% 46%), hsl(calc(var(--rp-hue) + 35) 38% 32%));user-select:none;justify-content:center;align-items:center;width:100%;height:100%;font-size:40px;font-weight:500;display:flex}.rp_Bvxx5q_play{color:#fff;opacity:.6;cursor:pointer;background:#00000059;border:0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:opacity .12s,background-color .12s;display:flex;position:absolute;top:8px;right:8px}.rp_Bvxx5q_card:hover .rp_Bvxx5q_play,.rp_Bvxx5q_play:focus-visible{opacity:1}.rp_Bvxx5q_play:hover{background:#0000008c}.rp_Bvxx5q_play:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color);outline-offset:2px}.rp_Bvxx5q_info{flex-direction:column;flex:none;gap:4px;padding:8px 10px;display:flex}.rp_Bvxx5q_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.rp_Bvxx5q_tags{gap:4px;display:flex;overflow:hidden;mask-image:linear-gradient(90deg,#000 calc(100% - 20px),#0000)}.rp_Bvxx5q_tag{flex:none}.rp_Bvxx5q_open{cursor:pointer}";
|
|
7063
7160
|
const key$10 = "src/client/widgets/world-card/WorldCard.module.css";
|
|
7064
7161
|
let tag$10 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$10) + "]");
|
|
7065
7162
|
if (tag$10 === null) {
|
|
@@ -7070,16 +7167,16 @@ window.__ModuleLoader__.load({
|
|
|
7070
7167
|
}
|
|
7071
7168
|
tag$10.textContent = css$10;
|
|
7072
7169
|
var WorldCard_module_css_default = {
|
|
7073
|
-
"
|
|
7074
|
-
"
|
|
7075
|
-
"
|
|
7076
|
-
"
|
|
7077
|
-
"
|
|
7078
|
-
"
|
|
7079
|
-
"
|
|
7080
|
-
"
|
|
7081
|
-
"
|
|
7082
|
-
"
|
|
7170
|
+
"tag": "rp_Bvxx5q_tag",
|
|
7171
|
+
"info": "rp_Bvxx5q_info",
|
|
7172
|
+
"placeholder": "rp_Bvxx5q_placeholder",
|
|
7173
|
+
"cover": "rp_Bvxx5q_cover",
|
|
7174
|
+
"image": "rp_Bvxx5q_image",
|
|
7175
|
+
"card": "rp_Bvxx5q_card",
|
|
7176
|
+
"play": "rp_Bvxx5q_play",
|
|
7177
|
+
"tags": "rp_Bvxx5q_tags",
|
|
7178
|
+
"name": "rp_Bvxx5q_name",
|
|
7179
|
+
"open": "rp_Bvxx5q_open"
|
|
7083
7180
|
};
|
|
7084
7181
|
//#endregion
|
|
7085
7182
|
//#region src/client/widgets/world-card/WorldCard.tsx
|
|
@@ -7161,8 +7258,8 @@ window.__ModuleLoader__.load({
|
|
|
7161
7258
|
});
|
|
7162
7259
|
}
|
|
7163
7260
|
//#endregion
|
|
7164
|
-
//#region \0css-module:/home/
|
|
7165
|
-
const css$9 = ".
|
|
7261
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/widgets/avatar-choices/AvatarChoices.module.css.mjs
|
|
7262
|
+
const css$9 = ".rp_YCstOG_option{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_YCstOG_option:has(input:checked){border-color:var(--dsw-alias-state-business-primary)}.rp_YCstOG_option input{accent-color:var(--dsw-alias-state-business-primary);margin:3px 0 0}.rp_YCstOG_text{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_YCstOG_name{font-size:13px;font-weight:500}.rp_YCstOG_summary{color:var(--dsw-alias-label-secondary);font-size:12px}";
|
|
7166
7263
|
const key$9 = "src/client/widgets/avatar-choices/AvatarChoices.module.css";
|
|
7167
7264
|
let tag$9 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$9) + "]");
|
|
7168
7265
|
if (tag$9 === null) {
|
|
@@ -7173,10 +7270,10 @@ window.__ModuleLoader__.load({
|
|
|
7173
7270
|
}
|
|
7174
7271
|
tag$9.textContent = css$9;
|
|
7175
7272
|
var AvatarChoices_module_css_default = {
|
|
7176
|
-
"
|
|
7177
|
-
"
|
|
7178
|
-
"
|
|
7179
|
-
"summary": "
|
|
7273
|
+
"option": "rp_YCstOG_option",
|
|
7274
|
+
"name": "rp_YCstOG_name",
|
|
7275
|
+
"text": "rp_YCstOG_text",
|
|
7276
|
+
"summary": "rp_YCstOG_summary"
|
|
7180
7277
|
};
|
|
7181
7278
|
//#endregion
|
|
7182
7279
|
//#region src/client/widgets/avatar-choices/AvatarChoices.tsx
|
|
@@ -7204,8 +7301,8 @@ window.__ModuleLoader__.load({
|
|
|
7204
7301
|
}, avatar.key)) });
|
|
7205
7302
|
}
|
|
7206
7303
|
//#endregion
|
|
7207
|
-
//#region \0css-module:/home/
|
|
7208
|
-
const css$8 = ".
|
|
7304
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/StartSessionDialog.module.css.mjs
|
|
7305
|
+
const css$8 = ".rp_AnbLKG_form{flex-direction:column;gap:16px;min-width:min(420px,100%);display:flex}.rp_AnbLKG_field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.rp_AnbLKG_label{color:var(--dsw-alias-label-secondary);padding:0;font-size:12px}.rp_AnbLKG_option{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_AnbLKG_option:has(input:checked){border-color:var(--dsw-alias-state-business-primary)}.rp_AnbLKG_option input{accent-color:var(--dsw-alias-state-business-primary);margin:3px 0 0}.rp_AnbLKG_optionText{flex-direction:column;gap:2px;min-width:0;display:flex}.rp_AnbLKG_optionName{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px}.rp_AnbLKG_optionSummary{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.rp_AnbLKG_message{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px}.rp_AnbLKG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_AnbLKG_advanced{flex-direction:column;gap:8px;display:flex}.rp_AnbLKG_advancedToggle{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:6px;padding:0;font-size:12px;display:inline-flex}.rp_AnbLKG_advancedToggle:hover{color:var(--dsw-alias-label-primary)}.rp_AnbLKG_advancedBody{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:12px;max-height:320px;padding:12px;display:flex;overflow-y:auto}";
|
|
7209
7306
|
const key$8 = "src/client/pages/worlds/StartSessionDialog.module.css";
|
|
7210
7307
|
let tag$8 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$8) + "]");
|
|
7211
7308
|
if (tag$8 === null) {
|
|
@@ -7216,18 +7313,18 @@ window.__ModuleLoader__.load({
|
|
|
7216
7313
|
}
|
|
7217
7314
|
tag$8.textContent = css$8;
|
|
7218
7315
|
var StartSessionDialog_module_css_default = {
|
|
7219
|
-
"
|
|
7220
|
-
"
|
|
7221
|
-
"
|
|
7222
|
-
"
|
|
7223
|
-
"
|
|
7224
|
-
"
|
|
7225
|
-
"
|
|
7226
|
-
"
|
|
7227
|
-
"
|
|
7228
|
-
"
|
|
7229
|
-
"
|
|
7230
|
-
"
|
|
7316
|
+
"message": "rp_AnbLKG_message",
|
|
7317
|
+
"optionSummary": "rp_AnbLKG_optionSummary",
|
|
7318
|
+
"optionName": "rp_AnbLKG_optionName",
|
|
7319
|
+
"optionText": "rp_AnbLKG_optionText",
|
|
7320
|
+
"advancedBody": "rp_AnbLKG_advancedBody",
|
|
7321
|
+
"label": "rp_AnbLKG_label",
|
|
7322
|
+
"field": "rp_AnbLKG_field",
|
|
7323
|
+
"error": "rp_AnbLKG_error",
|
|
7324
|
+
"form": "rp_AnbLKG_form",
|
|
7325
|
+
"advanced": "rp_AnbLKG_advanced",
|
|
7326
|
+
"advancedToggle": "rp_AnbLKG_advancedToggle",
|
|
7327
|
+
"option": "rp_AnbLKG_option"
|
|
7231
7328
|
};
|
|
7232
7329
|
//#endregion
|
|
7233
7330
|
//#region src/client/pages/worlds/AddAvatarsDialog.tsx
|
|
@@ -7359,6 +7456,7 @@ window.__ModuleLoader__.load({
|
|
|
7359
7456
|
flaky: flag(true),
|
|
7360
7457
|
recall: integer(1, 30, 12),
|
|
7361
7458
|
lookup: flag(true),
|
|
7459
|
+
lookupCalls: integer(1, 20, 5),
|
|
7362
7460
|
verify: flag(true),
|
|
7363
7461
|
backlogRounds: integer(1, 100, 6),
|
|
7364
7462
|
overRetrieve: integer(1, 10, 4)
|
|
@@ -7385,6 +7483,7 @@ window.__ModuleLoader__.load({
|
|
|
7385
7483
|
offstage: {
|
|
7386
7484
|
perTurn: integer(0, 5, 2),
|
|
7387
7485
|
perCharacter: integer(1, 3, 1),
|
|
7486
|
+
joint: flag(true),
|
|
7388
7487
|
summary: flag(true)
|
|
7389
7488
|
},
|
|
7390
7489
|
sampling: {
|
|
@@ -7394,15 +7493,27 @@ window.__ModuleLoader__.load({
|
|
|
7394
7493
|
authoring: ratio(0, 2, .4),
|
|
7395
7494
|
records: ratio(0, 2, .1),
|
|
7396
7495
|
tools: choice(["auto", "required"], "required"),
|
|
7397
|
-
maxTokens: integer(256, 64e3, 8e3)
|
|
7496
|
+
maxTokens: integer(256, 64e3, 8e3),
|
|
7497
|
+
shortMaxTokens: integer(256, 64e3, 2e3)
|
|
7398
7498
|
},
|
|
7399
7499
|
prompts: { language: text(8, "en") },
|
|
7400
7500
|
reasoning: { children: text(40, "") },
|
|
7501
|
+
factions: {
|
|
7502
|
+
perTurn: integer(0, 3, 1),
|
|
7503
|
+
everyDays: integer(1, 365, 3)
|
|
7504
|
+
},
|
|
7505
|
+
models: {
|
|
7506
|
+
characters: text(200, ""),
|
|
7507
|
+
records: text(200, ""),
|
|
7508
|
+
suggestions: text(200, ""),
|
|
7509
|
+
authoring: text(200, "")
|
|
7510
|
+
},
|
|
7401
7511
|
triggers: {
|
|
7402
7512
|
enabled: flag(true),
|
|
7403
7513
|
maxFires: integer(1, 10, 3),
|
|
7404
7514
|
beatTurns: integer(1, 20, 3),
|
|
7405
|
-
cueTurns: integer(1, 20, 2)
|
|
7515
|
+
cueTurns: integer(1, 20, 2),
|
|
7516
|
+
judgedPerTurn: integer(0, 5, 2)
|
|
7406
7517
|
},
|
|
7407
7518
|
rewind: { keepSnapshots: integer(0, 500, 30) },
|
|
7408
7519
|
rules: { own: text(MAX_OWN_RULES, "") },
|
|
@@ -7442,6 +7553,8 @@ window.__ModuleLoader__.load({
|
|
|
7442
7553
|
return false;
|
|
7443
7554
|
}
|
|
7444
7555
|
}
|
|
7556
|
+
/** A model as `provider/model`: both parts present, no spaces. */
|
|
7557
|
+
const MODEL_NAME = /^[^\s/]+\/\S+$/;
|
|
7445
7558
|
//#endregion
|
|
7446
7559
|
//#region src/client/settings-form/fields.ts
|
|
7447
7560
|
/** The settings the form offers, in the order shown. The rest are in the settings file. */
|
|
@@ -7482,6 +7595,12 @@ window.__ModuleLoader__.load({
|
|
|
7482
7595
|
label: "lookup",
|
|
7483
7596
|
help: "lookupHelp"
|
|
7484
7597
|
},
|
|
7598
|
+
{
|
|
7599
|
+
path: ["memory", "lookupCalls"],
|
|
7600
|
+
kind: "integer",
|
|
7601
|
+
label: "lookupCalls",
|
|
7602
|
+
help: "lookupCallsHelp"
|
|
7603
|
+
},
|
|
7485
7604
|
{
|
|
7486
7605
|
path: ["memory", "verify"],
|
|
7487
7606
|
kind: "flag",
|
|
@@ -7576,6 +7695,50 @@ window.__ModuleLoader__.load({
|
|
|
7576
7695
|
zone: false,
|
|
7577
7696
|
placeholder: "off"
|
|
7578
7697
|
},
|
|
7698
|
+
{
|
|
7699
|
+
path: ["factions", "perTurn"],
|
|
7700
|
+
kind: "integer",
|
|
7701
|
+
label: "factionsPerTurn",
|
|
7702
|
+
help: "factionsPerTurnHelp"
|
|
7703
|
+
},
|
|
7704
|
+
{
|
|
7705
|
+
path: ["factions", "everyDays"],
|
|
7706
|
+
kind: "integer",
|
|
7707
|
+
label: "factionsEveryDays",
|
|
7708
|
+
help: "factionsEveryDaysHelp"
|
|
7709
|
+
},
|
|
7710
|
+
{
|
|
7711
|
+
path: ["models", "characters"],
|
|
7712
|
+
kind: "text",
|
|
7713
|
+
label: "modelsCharacters",
|
|
7714
|
+
help: "modelsCharactersHelp",
|
|
7715
|
+
zone: false,
|
|
7716
|
+
placeholder: "localai/model-id"
|
|
7717
|
+
},
|
|
7718
|
+
{
|
|
7719
|
+
path: ["models", "records"],
|
|
7720
|
+
kind: "text",
|
|
7721
|
+
label: "modelsRecords",
|
|
7722
|
+
help: "modelsRecordsHelp",
|
|
7723
|
+
zone: false,
|
|
7724
|
+
placeholder: "localai/model-id"
|
|
7725
|
+
},
|
|
7726
|
+
{
|
|
7727
|
+
path: ["models", "suggestions"],
|
|
7728
|
+
kind: "text",
|
|
7729
|
+
label: "modelsSuggestions",
|
|
7730
|
+
help: "modelsSuggestionsHelp",
|
|
7731
|
+
zone: false,
|
|
7732
|
+
placeholder: "localai/model-id"
|
|
7733
|
+
},
|
|
7734
|
+
{
|
|
7735
|
+
path: ["models", "authoring"],
|
|
7736
|
+
kind: "text",
|
|
7737
|
+
label: "modelsAuthoring",
|
|
7738
|
+
help: "modelsAuthoringHelp",
|
|
7739
|
+
zone: false,
|
|
7740
|
+
placeholder: "localai/model-id"
|
|
7741
|
+
},
|
|
7579
7742
|
{
|
|
7580
7743
|
path: ["triggers", "enabled"],
|
|
7581
7744
|
kind: "flag",
|
|
@@ -7588,6 +7751,12 @@ window.__ModuleLoader__.load({
|
|
|
7588
7751
|
label: "triggersMaxFires",
|
|
7589
7752
|
help: "triggersMaxFiresHelp"
|
|
7590
7753
|
},
|
|
7754
|
+
{
|
|
7755
|
+
path: ["triggers", "judgedPerTurn"],
|
|
7756
|
+
kind: "integer",
|
|
7757
|
+
label: "triggersJudged",
|
|
7758
|
+
help: "triggersJudgedHelp"
|
|
7759
|
+
},
|
|
7591
7760
|
{
|
|
7592
7761
|
path: ["triggers", "beatTurns"],
|
|
7593
7762
|
kind: "integer",
|
|
@@ -7728,6 +7897,12 @@ window.__ModuleLoader__.load({
|
|
|
7728
7897
|
label: "offstagePerCharacter",
|
|
7729
7898
|
help: "offstagePerCharacterHelp"
|
|
7730
7899
|
},
|
|
7900
|
+
{
|
|
7901
|
+
path: ["offstage", "joint"],
|
|
7902
|
+
kind: "flag",
|
|
7903
|
+
label: "offstageJoint",
|
|
7904
|
+
help: "offstageJointHelp"
|
|
7905
|
+
},
|
|
7731
7906
|
{
|
|
7732
7907
|
path: ["offstage", "summary"],
|
|
7733
7908
|
kind: "flag",
|
|
@@ -7810,6 +7985,7 @@ window.__ModuleLoader__.load({
|
|
|
7810
7985
|
if (field.kind === "text") {
|
|
7811
7986
|
const draft = drafts[keyOf(field)];
|
|
7812
7987
|
if (field.zone && typeof draft === "string" && draft.trim() !== "" && !isTimeZone(draft.trim())) bad.add(keyOf(field));
|
|
7988
|
+
if (field.path[0] === "models" && typeof draft === "string" && draft.trim() !== "" && !MODEL_NAME.test(draft.trim())) bad.add(keyOf(field));
|
|
7813
7989
|
continue;
|
|
7814
7990
|
}
|
|
7815
7991
|
const draft = drafts[keyOf(field)];
|
|
@@ -7894,8 +8070,8 @@ window.__ModuleLoader__.load({
|
|
|
7894
8070
|
return options;
|
|
7895
8071
|
}
|
|
7896
8072
|
//#endregion
|
|
7897
|
-
//#region \0css-module:/home/
|
|
7898
|
-
const css$7 = ".
|
|
8073
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/settings-form/SettingsFields.module.css.mjs
|
|
8074
|
+
const css$7 = ".rp_Rhi3yq_row{flex-direction:column;gap:6px;display:flex}.rp_Rhi3yq_field{flex-direction:column;gap:6px;max-width:200px;display:flex}.rp_Rhi3yq_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Rhi3yq_help{max-width:560px;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_Rhi3yq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_Rhi3yq_group{border-top:1px solid var(--dsw-alias-border-l3);flex-direction:column;gap:12px;padding-top:12px;display:flex}.rp_Rhi3yq_groupTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_Rhi3yq_area{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:100%;max-width:560px;color:inherit;font:inherit;resize:vertical;background:0 0;padding:6px 8px;font-size:13px}";
|
|
7899
8075
|
const key$7 = "src/client/settings-form/SettingsFields.module.css";
|
|
7900
8076
|
let tag$7 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$7) + "]");
|
|
7901
8077
|
if (tag$7 === null) {
|
|
@@ -7906,14 +8082,14 @@ window.__ModuleLoader__.load({
|
|
|
7906
8082
|
}
|
|
7907
8083
|
tag$7.textContent = css$7;
|
|
7908
8084
|
var SettingsFields_module_css_default = {
|
|
7909
|
-
"
|
|
7910
|
-
"
|
|
7911
|
-
"
|
|
7912
|
-
"
|
|
7913
|
-
"
|
|
7914
|
-
"
|
|
7915
|
-
"
|
|
7916
|
-
"
|
|
8085
|
+
"group": "rp_Rhi3yq_group",
|
|
8086
|
+
"groupTitle": "rp_Rhi3yq_groupTitle",
|
|
8087
|
+
"label": "rp_Rhi3yq_label",
|
|
8088
|
+
"area": "rp_Rhi3yq_area",
|
|
8089
|
+
"row": "rp_Rhi3yq_row",
|
|
8090
|
+
"field": "rp_Rhi3yq_field",
|
|
8091
|
+
"help": "rp_Rhi3yq_help",
|
|
8092
|
+
"error": "rp_Rhi3yq_error"
|
|
7917
8093
|
};
|
|
7918
8094
|
//#endregion
|
|
7919
8095
|
//#region src/client/settings-form/SettingsFields.tsx
|
|
@@ -8455,6 +8631,119 @@ window.__ModuleLoader__.load({
|
|
|
8455
8631
|
});
|
|
8456
8632
|
}
|
|
8457
8633
|
//#endregion
|
|
8634
|
+
//#region src/client/pages/worlds/starter-api.ts
|
|
8635
|
+
async function answer$1(response) {
|
|
8636
|
+
if (!response.ok) {
|
|
8637
|
+
const body = await response.json().catch(() => void 0);
|
|
8638
|
+
throw new Error(typeof body?.message === "string" ? body.message : `${response.status} ${response.statusText}`.trim());
|
|
8639
|
+
}
|
|
8640
|
+
return await response.json();
|
|
8641
|
+
}
|
|
8642
|
+
/** The worlds that ship with the plugin. */
|
|
8643
|
+
async function loadStarters(signal) {
|
|
8644
|
+
return await answer$1(await fetch(`${API_PREFIX}/worlds/starter`, {
|
|
8645
|
+
credentials: "same-origin",
|
|
8646
|
+
signal
|
|
8647
|
+
}));
|
|
8648
|
+
}
|
|
8649
|
+
/** Copies one into the person's worlds. */
|
|
8650
|
+
async function addStarter(folder) {
|
|
8651
|
+
await answer$1(await fetch(`${API_PREFIX}/worlds/starter`, {
|
|
8652
|
+
method: "POST",
|
|
8653
|
+
credentials: "same-origin",
|
|
8654
|
+
headers: { "content-type": "application/json" },
|
|
8655
|
+
body: JSON.stringify({ folder })
|
|
8656
|
+
}));
|
|
8657
|
+
}
|
|
8658
|
+
//#endregion
|
|
8659
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/WorldsPage.module.css.mjs
|
|
8660
|
+
const css$6 = ".rp_FHUyRq_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_FHUyRq_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_FHUyRq_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_FHUyRq_toolbarActions{align-items:center;gap:8px;display:flex}.rp_FHUyRq_spinning{animation:.9s linear infinite rp_FHUyRq_spin}@keyframes rp_FHUyRq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_FHUyRq_spinning{animation:none}}.rp_FHUyRq_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_FHUyRq_viewport{--rp-card-width:168px;--rp-card-height:288px;--rp-card-gap:16px;flex:1 1 0;min-height:0;padding:4px}.rp_FHUyRq_scrolls{overflow-y:auto}.rp_FHUyRq_fits{overflow:hidden}.rp_FHUyRq_grid{grid-auto-rows:var(--rp-card-height);grid-template-columns:repeat(auto-fill, var(--rp-card-width));gap:var(--rp-card-gap);margin:0;padding:0;list-style:none;display:grid}.rp_FHUyRq_cell{min-width:0;display:flex}.rp_FHUyRq_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_FHUyRq_editHeader{border-bottom:1px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_FHUyRq_editTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_FHUyRq_authorButton{margin-left:auto}.rp_FHUyRq_editBody{flex:1 1 0;min-height:0;display:flex}.rp_FHUyRq_starters{flex-direction:column;align-items:center;gap:8px;padding-bottom:24px;display:flex}.rp_FHUyRq_starter{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);text-align:center;max-width:480px;color:var(--dsw-alias-label-secondary);flex-direction:column;align-items:center;gap:6px;padding:12px 16px;font-size:13px;display:flex}";
|
|
8661
|
+
const key$6 = "src/client/pages/worlds/WorldsPage.module.css";
|
|
8662
|
+
let tag$6 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$6) + "]");
|
|
8663
|
+
if (tag$6 === null) {
|
|
8664
|
+
tag$6 = document.createElement("style");
|
|
8665
|
+
tag$6.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8666
|
+
tag$6.dataset.pluginCss = key$6;
|
|
8667
|
+
document.head.appendChild(tag$6);
|
|
8668
|
+
}
|
|
8669
|
+
tag$6.textContent = css$6;
|
|
8670
|
+
var WorldsPage_module_css_default = {
|
|
8671
|
+
"viewport": "rp_FHUyRq_viewport",
|
|
8672
|
+
"starters": "rp_FHUyRq_starters",
|
|
8673
|
+
"message": "rp_FHUyRq_message",
|
|
8674
|
+
"spin": "rp_FHUyRq_spin",
|
|
8675
|
+
"notice": "rp_FHUyRq_notice",
|
|
8676
|
+
"grid": "rp_FHUyRq_grid",
|
|
8677
|
+
"editTitle": "rp_FHUyRq_editTitle",
|
|
8678
|
+
"editBody": "rp_FHUyRq_editBody",
|
|
8679
|
+
"page": "rp_FHUyRq_page",
|
|
8680
|
+
"toolbar": "rp_FHUyRq_toolbar",
|
|
8681
|
+
"spinning": "rp_FHUyRq_spinning",
|
|
8682
|
+
"count": "rp_FHUyRq_count",
|
|
8683
|
+
"editHeader": "rp_FHUyRq_editHeader",
|
|
8684
|
+
"cell": "rp_FHUyRq_cell",
|
|
8685
|
+
"authorButton": "rp_FHUyRq_authorButton",
|
|
8686
|
+
"fits": "rp_FHUyRq_fits",
|
|
8687
|
+
"toolbarActions": "rp_FHUyRq_toolbarActions",
|
|
8688
|
+
"scrolls": "rp_FHUyRq_scrolls",
|
|
8689
|
+
"starter": "rp_FHUyRq_starter"
|
|
8690
|
+
};
|
|
8691
|
+
//#endregion
|
|
8692
|
+
//#region src/client/pages/worlds/StarterWorlds.tsx
|
|
8693
|
+
/** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
|
|
8694
|
+
function StarterWorlds({ t, onAdded }) {
|
|
8695
|
+
const [offered, setOffered] = (0, react.useState)([]);
|
|
8696
|
+
const [adding, setAdding] = (0, react.useState)();
|
|
8697
|
+
const [error, setError] = (0, react.useState)();
|
|
8698
|
+
(0, react.useEffect)(() => {
|
|
8699
|
+
const abort = new AbortController();
|
|
8700
|
+
loadStarters(abort.signal).then((found) => {
|
|
8701
|
+
setOffered(found.filter((world) => !world.installed));
|
|
8702
|
+
}, (failure) => {
|
|
8703
|
+
if (!abort.signal.aborted) setError(failure instanceof Error ? failure.message : String(failure));
|
|
8704
|
+
});
|
|
8705
|
+
return () => {
|
|
8706
|
+
abort.abort();
|
|
8707
|
+
};
|
|
8708
|
+
}, []);
|
|
8709
|
+
const add = (folder) => {
|
|
8710
|
+
setAdding(folder);
|
|
8711
|
+
setError(void 0);
|
|
8712
|
+
addStarter(folder).then(() => {
|
|
8713
|
+
setAdding(void 0);
|
|
8714
|
+
onAdded();
|
|
8715
|
+
}, (failure) => {
|
|
8716
|
+
setAdding(void 0);
|
|
8717
|
+
setError(failure instanceof Error ? failure.message : String(failure));
|
|
8718
|
+
});
|
|
8719
|
+
};
|
|
8720
|
+
if (offered.length === 0 && error === void 0) return null;
|
|
8721
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8722
|
+
className: WorldsPage_module_css_default.starters,
|
|
8723
|
+
"data-testid": "roleplay-starters",
|
|
8724
|
+
children: [offered.map((world) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8725
|
+
className: WorldsPage_module_css_default.starter,
|
|
8726
|
+
children: [
|
|
8727
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: world.name }),
|
|
8728
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: world.description.split("\n")[0] }),
|
|
8729
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
8730
|
+
variant: "primary",
|
|
8731
|
+
size: "sm",
|
|
8732
|
+
disabled: adding !== void 0,
|
|
8733
|
+
onClick: () => {
|
|
8734
|
+
add(world.folder);
|
|
8735
|
+
},
|
|
8736
|
+
children: adding === world.folder ? t("starterAdding") : t("starterAdd")
|
|
8737
|
+
})
|
|
8738
|
+
]
|
|
8739
|
+
}, world.folder)), error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
8740
|
+
className: WorldsPage_module_css_default.notice,
|
|
8741
|
+
role: "alert",
|
|
8742
|
+
children: t("starterFailed", { message: error })
|
|
8743
|
+
})]
|
|
8744
|
+
});
|
|
8745
|
+
}
|
|
8746
|
+
//#endregion
|
|
8458
8747
|
//#region src/client/pages/worlds/import-api.ts
|
|
8459
8748
|
async function answer(response) {
|
|
8460
8749
|
if (!response.ok) {
|
|
@@ -8495,46 +8784,46 @@ window.__ModuleLoader__.load({
|
|
|
8495
8784
|
}
|
|
8496
8785
|
const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
|
|
8497
8786
|
//#endregion
|
|
8498
|
-
//#region \0css-module:/home/
|
|
8499
|
-
const css$
|
|
8500
|
-
const key$
|
|
8501
|
-
let tag$
|
|
8502
|
-
if (tag$
|
|
8503
|
-
tag$
|
|
8504
|
-
tag$
|
|
8505
|
-
tag$
|
|
8506
|
-
document.head.appendChild(tag$
|
|
8787
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/ImportCardPage.module.css.mjs
|
|
8788
|
+
const css$5 = ".rp_DmG_oG_page{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.rp_DmG_oG_header{border-bottom:1px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_DmG_oG_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_DmG_oG_space{flex:auto}.rp_DmG_oG_error{color:var(--dsw-alias-state-error-primary);margin:0;padding:8px 16px;font-size:12px}.rp_DmG_oG_body{box-sizing:border-box;flex-direction:column;flex:1 1 0;gap:20px;min-height:0;padding:20px 24px 40px;display:flex;overflow-y:auto}.rp_DmG_oG_body>*{flex:none;width:100%;max-width:860px}.rp_DmG_oG_top{align-items:flex-start;gap:20px;display:flex}.rp_DmG_oG_picture{object-fit:cover;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex:0 0 120px;width:120px;height:160px}.rp_DmG_oG_noPicture{box-sizing:border-box;color:var(--dsw-alias-label-tertiary);justify-content:center;align-items:center;font-size:12px;display:flex}.rp_DmG_oG_about{flex-direction:column;flex:1 1 0;gap:8px;min-width:0;display:flex}.rp_DmG_oG_label{color:var(--dsw-alias-label-tertiary);flex-direction:column;gap:4px;font-size:12px;display:flex}.rp_DmG_oG_tags{flex-wrap:wrap;gap:6px;display:flex}.rp_DmG_oG_note{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.rp_DmG_oG_section{flex-direction:column;gap:8px;display:flex}.rp_DmG_oG_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500}.rp_DmG_oG_row{align-items:center;gap:8px;display:flex}.rp_DmG_oG_field,.rp_DmG_oG_entry{border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm)}.rp_DmG_oG_fieldHead,.rp_DmG_oG_entryHead{box-sizing:border-box;width:100%;font:inherit;text-align:left;color:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:8px 10px;display:flex}.rp_DmG_oG_fieldHead{cursor:pointer}.rp_DmG_oG_fieldTitle,.rp_DmG_oG_entryTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px}.rp_DmG_oG_entryTitle{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.rp_DmG_oG_fieldMeta{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_DmG_oG_field .rp_DmG_oG_note,.rp_DmG_oG_entry .rp_DmG_oG_note{padding:0 10px 6px}.rp_DmG_oG_text{white-space:pre-wrap;word-break:break-word;max-height:320px;font:inherit;color:var(--dsw-alias-label-secondary);border-top:1px solid var(--dsw-alias-border-l4);margin:0;padding:8px 10px 10px;font-size:12px;line-height:18px;overflow:auto}.rp_DmG_oG_entryOff .rp_DmG_oG_entryTitle{color:var(--dsw-alias-label-tertiary);text-decoration:line-through}.rp_DmG_oG_choice{border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.rp_DmG_oG_choice input{margin-top:3px}.rp_DmG_oG_choiceText{flex-direction:column;gap:4px;min-width:0;display:flex}.rp_DmG_oG_preview{white-space:pre-wrap;word-break:break-word;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}";
|
|
8789
|
+
const key$5 = "src/client/pages/worlds/ImportCardPage.module.css";
|
|
8790
|
+
let tag$5 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$5) + "]");
|
|
8791
|
+
if (tag$5 === null) {
|
|
8792
|
+
tag$5 = document.createElement("style");
|
|
8793
|
+
tag$5.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8794
|
+
tag$5.dataset.pluginCss = key$5;
|
|
8795
|
+
document.head.appendChild(tag$5);
|
|
8507
8796
|
}
|
|
8508
|
-
tag$
|
|
8797
|
+
tag$5.textContent = css$5;
|
|
8509
8798
|
var ImportCardPage_module_css_default = {
|
|
8510
|
-
"
|
|
8511
|
-
"
|
|
8512
|
-
"
|
|
8513
|
-
"
|
|
8514
|
-
"
|
|
8515
|
-
"
|
|
8516
|
-
"
|
|
8517
|
-
"
|
|
8518
|
-
"
|
|
8519
|
-
"
|
|
8520
|
-
"
|
|
8521
|
-
"
|
|
8522
|
-
"
|
|
8523
|
-
"
|
|
8524
|
-
"
|
|
8525
|
-
"
|
|
8526
|
-
"
|
|
8527
|
-
"
|
|
8528
|
-
"
|
|
8529
|
-
"
|
|
8530
|
-
"
|
|
8531
|
-
"
|
|
8532
|
-
"
|
|
8533
|
-
"
|
|
8534
|
-
"
|
|
8535
|
-
"
|
|
8536
|
-
"
|
|
8537
|
-
"
|
|
8799
|
+
"field": "rp_DmG_oG_field",
|
|
8800
|
+
"choiceText": "rp_DmG_oG_choiceText",
|
|
8801
|
+
"entryTitle": "rp_DmG_oG_entryTitle",
|
|
8802
|
+
"note": "rp_DmG_oG_note",
|
|
8803
|
+
"title": "rp_DmG_oG_title",
|
|
8804
|
+
"space": "rp_DmG_oG_space",
|
|
8805
|
+
"tags": "rp_DmG_oG_tags",
|
|
8806
|
+
"row": "rp_DmG_oG_row",
|
|
8807
|
+
"fieldMeta": "rp_DmG_oG_fieldMeta",
|
|
8808
|
+
"fieldTitle": "rp_DmG_oG_fieldTitle",
|
|
8809
|
+
"page": "rp_DmG_oG_page",
|
|
8810
|
+
"fieldHead": "rp_DmG_oG_fieldHead",
|
|
8811
|
+
"top": "rp_DmG_oG_top",
|
|
8812
|
+
"heading": "rp_DmG_oG_heading",
|
|
8813
|
+
"text": "rp_DmG_oG_text",
|
|
8814
|
+
"section": "rp_DmG_oG_section",
|
|
8815
|
+
"entry": "rp_DmG_oG_entry",
|
|
8816
|
+
"header": "rp_DmG_oG_header",
|
|
8817
|
+
"picture": "rp_DmG_oG_picture",
|
|
8818
|
+
"entryHead": "rp_DmG_oG_entryHead",
|
|
8819
|
+
"entryOff": "rp_DmG_oG_entryOff",
|
|
8820
|
+
"body": "rp_DmG_oG_body",
|
|
8821
|
+
"noPicture": "rp_DmG_oG_noPicture",
|
|
8822
|
+
"choice": "rp_DmG_oG_choice",
|
|
8823
|
+
"error": "rp_DmG_oG_error",
|
|
8824
|
+
"label": "rp_DmG_oG_label",
|
|
8825
|
+
"about": "rp_DmG_oG_about",
|
|
8826
|
+
"preview": "rp_DmG_oG_preview"
|
|
8538
8827
|
};
|
|
8539
8828
|
//#endregion
|
|
8540
8829
|
//#region src/client/pages/worlds/ImportCardPage.tsx
|
|
@@ -8873,37 +9162,6 @@ window.__ModuleLoader__.load({
|
|
|
8873
9162
|
});
|
|
8874
9163
|
}
|
|
8875
9164
|
//#endregion
|
|
8876
|
-
//#region \0css-module:/home/x/workspace/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/pages/worlds/WorldsPage.module.css.mjs
|
|
8877
|
-
const css$5 = ".rp_xwWrpW_page{flex-direction:column;flex:1 1 0;gap:8px;min-height:0;display:flex}.rp_xwWrpW_toolbar{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.rp_xwWrpW_count{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_xwWrpW_toolbarActions{align-items:center;gap:8px;display:flex}.rp_xwWrpW_spinning{animation:.9s linear infinite rp_xwWrpW_spin}@keyframes rp_xwWrpW_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.rp_xwWrpW_spinning{animation:none}}.rp_xwWrpW_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.rp_xwWrpW_viewport{--rp-card-width:168px;--rp-card-height:288px;--rp-card-gap:16px;flex:1 1 0;min-height:0;padding:4px}.rp_xwWrpW_scrolls{overflow-y:auto}.rp_xwWrpW_fits{overflow:hidden}.rp_xwWrpW_grid{grid-auto-rows:var(--rp-card-height);grid-template-columns:repeat(auto-fill, var(--rp-card-width));gap:var(--rp-card-gap);margin:0;padding:0;list-style:none;display:grid}.rp_xwWrpW_cell{min-width:0;display:flex}.rp_xwWrpW_message{text-align:center;color:var(--dsw-alias-label-secondary);margin:0;padding:40px 0;font-size:13px}.rp_xwWrpW_editHeader{border-bottom:1px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.rp_xwWrpW_editTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500}.rp_xwWrpW_authorButton{margin-left:auto}.rp_xwWrpW_editBody{flex:1 1 0;min-height:0;display:flex}";
|
|
8878
|
-
const key$5 = "src/client/pages/worlds/WorldsPage.module.css";
|
|
8879
|
-
let tag$5 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$5) + "]");
|
|
8880
|
-
if (tag$5 === null) {
|
|
8881
|
-
tag$5 = document.createElement("style");
|
|
8882
|
-
tag$5.dataset.plugin = "@dsh-agentic-roleplay/core";
|
|
8883
|
-
tag$5.dataset.pluginCss = key$5;
|
|
8884
|
-
document.head.appendChild(tag$5);
|
|
8885
|
-
}
|
|
8886
|
-
tag$5.textContent = css$5;
|
|
8887
|
-
var WorldsPage_module_css_default = {
|
|
8888
|
-
"grid": "rp_xwWrpW_grid",
|
|
8889
|
-
"toolbarActions": "rp_xwWrpW_toolbarActions",
|
|
8890
|
-
"spinning": "rp_xwWrpW_spinning",
|
|
8891
|
-
"viewport": "rp_xwWrpW_viewport",
|
|
8892
|
-
"toolbar": "rp_xwWrpW_toolbar",
|
|
8893
|
-
"editHeader": "rp_xwWrpW_editHeader",
|
|
8894
|
-
"count": "rp_xwWrpW_count",
|
|
8895
|
-
"scrolls": "rp_xwWrpW_scrolls",
|
|
8896
|
-
"editTitle": "rp_xwWrpW_editTitle",
|
|
8897
|
-
"editBody": "rp_xwWrpW_editBody",
|
|
8898
|
-
"spin": "rp_xwWrpW_spin",
|
|
8899
|
-
"message": "rp_xwWrpW_message",
|
|
8900
|
-
"authorButton": "rp_xwWrpW_authorButton",
|
|
8901
|
-
"page": "rp_xwWrpW_page",
|
|
8902
|
-
"fits": "rp_xwWrpW_fits",
|
|
8903
|
-
"cell": "rp_xwWrpW_cell",
|
|
8904
|
-
"notice": "rp_xwWrpW_notice"
|
|
8905
|
-
};
|
|
8906
|
-
//#endregion
|
|
8907
9165
|
//#region src/client/pages/worlds/WorldsPage.tsx
|
|
8908
9166
|
/** The worlds, one page of cards at a time. */
|
|
8909
9167
|
function WorldsPage({ t, useWorlds, load, refresh, openStartDialog, closeStartDialog, startSession, dismissStarted, openAuthoring, openChat }) {
|
|
@@ -9103,10 +9361,13 @@ window.__ModuleLoader__.load({
|
|
|
9103
9361
|
className: WorldsPage_module_css_default.message,
|
|
9104
9362
|
role: "alert",
|
|
9105
9363
|
children: t("loadFailed", { message: state.error ?? "" })
|
|
9106
|
-
}) : worlds.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9364
|
+
}) : worlds.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9107
9365
|
className: WorldsPage_module_css_default.message,
|
|
9108
9366
|
children: t("empty", { directory: state.payload?.directory ?? "" })
|
|
9109
|
-
})
|
|
9367
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StarterWorlds, {
|
|
9368
|
+
t,
|
|
9369
|
+
onAdded: refresh
|
|
9370
|
+
})] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
9110
9371
|
className: WorldsPage_module_css_default.grid,
|
|
9111
9372
|
children: visible.map((world) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
9112
9373
|
className: WorldsPage_module_css_default.cell,
|
|
@@ -9199,6 +9460,8 @@ window.__ModuleLoader__.load({
|
|
|
9199
9460
|
overRetrieveHelp: "To choose what a character is reminded of, this many times as many candidates are retrieved (by the moment's cues, by words and by meaning) and the best are kept; a reranking service, when one is configured, judges the wider net. 1 chooses straight from the first search.",
|
|
9200
9461
|
lookup: "Characters can look up memories",
|
|
9201
9462
|
lookupHelp: "While it decides, a character can ask itself about something it remembers beyond what the moment already brought to mind. Each character only reaches its own memories. It makes a character's turn a little longer.",
|
|
9463
|
+
lookupCalls: "Memory look-ups per decision",
|
|
9464
|
+
lookupCallsHelp: "The most times a character may look into its memory while it decides. After that it is told to answer. A character that keeps looking makes the turn much longer.",
|
|
9202
9465
|
verify: "Check the records",
|
|
9203
9466
|
verifyHelp: "The record keeper reads back what it wrote about each round, compares it with the round and fixes mistakes before it finishes. It runs in the background of the narration, so it rarely delays you; turn it off for speed or to save model calls.",
|
|
9204
9467
|
backlogRounds: "Most rounds waiting to be remembered",
|
|
@@ -9245,6 +9508,20 @@ window.__ModuleLoader__.load({
|
|
|
9245
9508
|
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.",
|
|
9246
9509
|
imagesCaptioner: "Captioning model",
|
|
9247
9510
|
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.",
|
|
9511
|
+
triggersJudged: "Statements judged after a turn",
|
|
9512
|
+
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.",
|
|
9513
|
+
factionsPerTurn: "Organisations acting on their own",
|
|
9514
|
+
factionsPerTurnHelp: "The most organisations that decide what they do after one of your messages, when story time has passed since they last did. Each is one request in the background. 0 turns it off.",
|
|
9515
|
+
factionsEveryDays: "Days between their decisions",
|
|
9516
|
+
factionsEveryDaysHelp: "How many days of story time pass before an organisation decides again.",
|
|
9517
|
+
modelsCharacters: "Model for characters",
|
|
9518
|
+
modelsCharactersHelp: "As provider/model. Leave empty to use the chat's own model. Characters run side by side and write short answers, so a smaller, faster model often does as well.",
|
|
9519
|
+
modelsRecords: "Model for the record keeper",
|
|
9520
|
+
modelsRecordsHelp: "As provider/model. Leave empty to use the chat's own model. The keeper runs in the background and must call tools correctly.",
|
|
9521
|
+
modelsSuggestions: "Model for suggested actions",
|
|
9522
|
+
modelsSuggestionsHelp: "As provider/model. Leave empty to use the chat's own model.",
|
|
9523
|
+
modelsAuthoring: "Model for the world and plot author",
|
|
9524
|
+
modelsAuthoringHelp: "As provider/model. Leave empty to use the chat's own model. Made-up characters, places and things are only as good as this model.",
|
|
9248
9525
|
imagesOff: "Off",
|
|
9249
9526
|
imagesManual: "Manual",
|
|
9250
9527
|
imagesEveryTurn: "Every turn",
|
|
@@ -9256,6 +9533,8 @@ window.__ModuleLoader__.load({
|
|
|
9256
9533
|
offstagePerTurn: "Characters acting off stage per turn",
|
|
9257
9534
|
offstagePerCharacter: "Times one character acts off stage per turn",
|
|
9258
9535
|
offstagePerCharacterHelp: "A character with several things due is asked about the first; the rest wait for your next turn. With the limit above, this caps what the world does without you: nothing runs while you are away from the chat, and each message you send lets at most this many characters act.",
|
|
9536
|
+
offstageJoint: "Meetings happen between people",
|
|
9537
|
+
offstageJointHelp: "The people of one off-stage commitment decide one after another, each told who has already meant to come, so they meet instead of each guessing. It takes longer in the background but asks the same number of times. Off: each decides alone, all at once.",
|
|
9259
9538
|
offstageSummary: "Tell me what happened meanwhile",
|
|
9260
9539
|
offstageSummaryHelp: "Characters acting off stage also say in a line what came of it, in the same request (no extra cost), and it is shown as a card beside the story until your next message, outside the conversation.",
|
|
9261
9540
|
offstagePerTurnHelp: "When something falls due for characters who are away from you (a meeting whose time has come, a deadline that passed), up to this many of them are asked, in the background after your turn, what they do about it. What they decide is recorded and can be seen in the story later. 0 turns it off.",
|
|
@@ -9304,6 +9583,8 @@ window.__ModuleLoader__.load({
|
|
|
9304
9583
|
overRetrieveHelp: "为了选出角色被唤起的记忆,会先检索出此倍数的候选(按情境线索、字词和语义),再保留最好的;若已配置重排序服务,则由它评判这张更大的网。1 表示直接从第一次检索中选取。",
|
|
9305
9584
|
lookup: "角色可主动回忆",
|
|
9306
9585
|
lookupHelp: "角色在决定行动时,可以主动向自己追问更多记忆,超出当前情境已唤起的部分。每个角色只能查到自己的记忆。会让角色的回合稍长一些。",
|
|
9586
|
+
lookupCalls: "每次决定的记忆查询次数",
|
|
9587
|
+
lookupCallsHelp: "角色在决定行动时最多可以查询自己记忆的次数,超过后会被要求直接作答。反复查询会让这一轮慢得多。",
|
|
9307
9588
|
verify: "核对记录",
|
|
9308
9589
|
verifyHelp: "记录员在结束前会回读自己写入的记录,对照回合内容并纠正错误。它在叙述的同时于后台运行,通常不会拖慢你;追求速度或想节省模型调用时可以关闭。",
|
|
9309
9590
|
backlogRounds: "等待记录的回合上限",
|
|
@@ -9350,6 +9631,20 @@ window.__ModuleLoader__.load({
|
|
|
9350
9631
|
imagesInterpreterModelHelp: "写成 提供方/模型。留空则使用对话自己的模型,它必须声明能读取图像。可用它让视觉模型描述图像,而故事用另一个模型运行。",
|
|
9351
9632
|
imagesCaptioner: "图像说明模型",
|
|
9352
9633
|
imagesCaptionerHelp: "写成 提供方/模型。只会给图片写说明文字的模型(不能调用工具)负责看图,再由对话的模型把说明整理成描述。留空则由一个视觉模型完成全部。",
|
|
9634
|
+
triggersJudged: "每回合评判的陈述数",
|
|
9635
|
+
triggersJudgedHelp: "触发器所等待的陈述(例如“市长已失去全镇信任”)中,你发送一条消息后最多让模型评判多少条,合并为一次后台请求。触发器在下一次检查时根据结论触发。0 表示关闭,此类触发器永远不会触发。",
|
|
9636
|
+
factionsPerTurn: "组织自主行动",
|
|
9637
|
+
factionsPerTurnHelp: "你发送一条消息后,最多让多少个组织决定自己的行动(前提是自它们上次行动以来故事时间已经过去)。每个组织占用一次后台请求。0 表示关闭。",
|
|
9638
|
+
factionsEveryDays: "决策间隔天数",
|
|
9639
|
+
factionsEveryDaysHelp: "组织再次决策之前要经过多少天故事时间。",
|
|
9640
|
+
modelsCharacters: "角色使用的模型",
|
|
9641
|
+
modelsCharactersHelp: "写成 提供方/模型。留空则使用对话自己的模型。角色并行运行且回答简短,较小较快的模型通常也能胜任。",
|
|
9642
|
+
modelsRecords: "记录员使用的模型",
|
|
9643
|
+
modelsRecordsHelp: "写成 提供方/模型。留空则使用对话自己的模型。记录员在后台运行,必须能正确调用工具。",
|
|
9644
|
+
modelsSuggestions: "行动建议使用的模型",
|
|
9645
|
+
modelsSuggestionsHelp: "写成 提供方/模型。留空则使用对话自己的模型。",
|
|
9646
|
+
modelsAuthoring: "世界与剧情作者使用的模型",
|
|
9647
|
+
modelsAuthoringHelp: "写成 提供方/模型。留空则使用对话自己的模型。新编造的角色、地点和物品的质量取决于这个模型。",
|
|
9353
9648
|
imagesOff: "关闭",
|
|
9354
9649
|
imagesManual: "手动",
|
|
9355
9650
|
imagesEveryTurn: "每轮",
|
|
@@ -9361,6 +9656,8 @@ window.__ModuleLoader__.load({
|
|
|
9361
9656
|
offstagePerTurn: "每轮台下行动的角色数",
|
|
9362
9657
|
offstagePerCharacter: "每个角色每轮台下行动次数",
|
|
9363
9658
|
offstagePerCharacterHelp: "同一角色有多件事到期时,只询问第一件,其余等你的下一轮。配合上面的上限,这限制了世界在无人操作时的行动:你离开聊天时什么都不会运行,你每发一条消息最多让这么多次角色行动。",
|
|
9659
|
+
offstageJoint: "约定在人与人之间发生",
|
|
9660
|
+
offstageJointHelp: "同一个台下约定的人依次决定,后者会被告知谁已决定前来,因此他们会碰面而不是各自猜测。后台耗时更长,但请求次数不变。关闭则各自同时独立决定。",
|
|
9364
9661
|
offstageSummary: "告诉我期间发生了什么",
|
|
9365
9662
|
offstageSummaryHelp: "台下行动的角色会在同一次请求里用一句话说明结果(不额外消耗请求),并以卡片形式显示在故事旁,直到你发送下一条消息,不会进入对话记录。",
|
|
9366
9663
|
offstagePerTurnHelp: "当有事对不在你身边的角色到期时(约定的时间到了、期限过了),每轮结束后会在后台最多询问这么多角色打算怎么办。他们的决定会被记录,之后可在故事中看到。0 表示关闭。",
|
|
@@ -9392,6 +9689,9 @@ window.__ModuleLoader__.load({
|
|
|
9392
9689
|
nav: "Worlds",
|
|
9393
9690
|
loading: "Loading worlds…",
|
|
9394
9691
|
loadFailed: "Could not load worlds: {message}",
|
|
9692
|
+
starterAdd: "Add this sample world",
|
|
9693
|
+
starterAdding: "Adding…",
|
|
9694
|
+
starterFailed: "Could not add the sample world: {message}",
|
|
9395
9695
|
empty: "No worlds yet. Create one here, or put a folder with a world.json inside {directory}.",
|
|
9396
9696
|
countOne: "{count} world",
|
|
9397
9697
|
countOther: "{count} worlds",
|
|
@@ -9484,6 +9784,9 @@ window.__ModuleLoader__.load({
|
|
|
9484
9784
|
nav: "世界卡",
|
|
9485
9785
|
loading: "正在加载世界卡…",
|
|
9486
9786
|
loadFailed: "无法加载世界卡:{message}",
|
|
9787
|
+
starterAdd: "添加这个示例世界",
|
|
9788
|
+
starterAdding: "正在添加…",
|
|
9789
|
+
starterFailed: "无法添加示例世界:{message}",
|
|
9487
9790
|
empty: "还没有世界卡。可在此创建,也可在 {directory} 中新建文件夹并放入 world.json。",
|
|
9488
9791
|
countOne: "{count} 张世界卡",
|
|
9489
9792
|
countOther: "{count} 张世界卡",
|
|
@@ -9918,8 +10221,8 @@ window.__ModuleLoader__.load({
|
|
|
9918
10221
|
}
|
|
9919
10222
|
};
|
|
9920
10223
|
//#endregion
|
|
9921
|
-
//#region \0css-module:/home/
|
|
9922
|
-
const css$4 = ".
|
|
10224
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/branch/BranchDialog.module.css.mjs
|
|
10225
|
+
const css$4 = ".rp_Dy1TaW_form{flex-direction:column;gap:12px;min-width:min(420px,100%);display:flex}.rp_Dy1TaW_field{flex-direction:column;gap:6px;min-width:0;display:flex}.rp_Dy1TaW_label{color:var(--dsw-alias-label-secondary);font-size:12px}.rp_Dy1TaW_error{color:var(--dsw-alias-state-danger-primary);margin:0;font-size:12px}";
|
|
9923
10226
|
const key$4 = "src/client/branch/BranchDialog.module.css";
|
|
9924
10227
|
let tag$4 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$4) + "]");
|
|
9925
10228
|
if (tag$4 === null) {
|
|
@@ -9930,10 +10233,10 @@ window.__ModuleLoader__.load({
|
|
|
9930
10233
|
}
|
|
9931
10234
|
tag$4.textContent = css$4;
|
|
9932
10235
|
var BranchDialog_module_css_default = {
|
|
9933
|
-
"label": "
|
|
9934
|
-
"
|
|
9935
|
-
"form": "
|
|
9936
|
-
"
|
|
10236
|
+
"label": "rp_Dy1TaW_label",
|
|
10237
|
+
"field": "rp_Dy1TaW_field",
|
|
10238
|
+
"form": "rp_Dy1TaW_form",
|
|
10239
|
+
"error": "rp_Dy1TaW_error"
|
|
9937
10240
|
};
|
|
9938
10241
|
//#endregion
|
|
9939
10242
|
//#region src/client/branch/BranchDialog.tsx
|
|
@@ -10107,7 +10410,7 @@ window.__ModuleLoader__.load({
|
|
|
10107
10410
|
function sessionSource(session) {
|
|
10108
10411
|
const id = encodeURIComponent(session);
|
|
10109
10412
|
return {
|
|
10110
|
-
load: async (signal) => await answer$
|
|
10413
|
+
load: async (signal) => await answer$2(await fetch(`${API_PREFIX}/sessions/world?id=${id}`, {
|
|
10111
10414
|
credentials: "same-origin",
|
|
10112
10415
|
signal
|
|
10113
10416
|
})),
|
|
@@ -10120,7 +10423,8 @@ window.__ModuleLoader__.load({
|
|
|
10120
10423
|
saveRelation: async (edit, signal) => await put(`${API_PREFIX}/sessions/world/relation?id=${id}`, edit, signal),
|
|
10121
10424
|
saveNarrationVoice: async (voice, signal) => await put(`${API_PREFIX}/sessions/world/narration-voice?id=${id}`, { voice }, signal),
|
|
10122
10425
|
listVoices: async (signal) => await listVoices(`${API_PREFIX}/speech/voices`, signal),
|
|
10123
|
-
generatePortrait: async (key, signal) => await post(`${API_PREFIX}/sessions/world/character/portrait?id=${id}&key=${encodeURIComponent(key)}`, signal)
|
|
10426
|
+
generatePortrait: async (key, signal) => await post(`${API_PREFIX}/sessions/world/character/portrait?id=${id}&key=${encodeURIComponent(key)}`, signal),
|
|
10427
|
+
uploadPortrait: async (key, file, signal) => await postFile(`${API_PREFIX}/sessions/world/character/portrait/upload?id=${id}&key=${encodeURIComponent(key)}`, file, signal)
|
|
10124
10428
|
};
|
|
10125
10429
|
}
|
|
10126
10430
|
//#endregion
|
|
@@ -10172,8 +10476,8 @@ window.__ModuleLoader__.load({
|
|
|
10172
10476
|
});
|
|
10173
10477
|
}
|
|
10174
10478
|
//#endregion
|
|
10175
|
-
//#region \0css-module:/home/
|
|
10176
|
-
const css$3 = ".
|
|
10479
|
+
//#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
|
|
10480
|
+
const css$3 = ".rp_wLpbxW_view{box-sizing:border-box;flex-direction:column;gap:16px;width:100%;max-width:640px;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;max-width:200px;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{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:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);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:1px solid var(--dsw-alias-border-l4);text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:3px 8px 3px 0}.rp_wLpbxW_table th{color:var(--dsw-alias-label-tertiary);font-weight:400}.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}";
|
|
10177
10481
|
const key$3 = "src/client/chat-settings/ChatSettingsView.module.css";
|
|
10178
10482
|
let tag$3 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$3) + "]");
|
|
10179
10483
|
if (tag$3 === null) {
|
|
@@ -10184,18 +10488,21 @@ window.__ModuleLoader__.load({
|
|
|
10184
10488
|
}
|
|
10185
10489
|
tag$3.textContent = css$3;
|
|
10186
10490
|
var ChatSettingsView_module_css_default = {
|
|
10187
|
-
"
|
|
10188
|
-
"
|
|
10189
|
-
"
|
|
10190
|
-
"
|
|
10191
|
-
"
|
|
10192
|
-
"
|
|
10193
|
-
"
|
|
10194
|
-
"
|
|
10195
|
-
"
|
|
10196
|
-
"
|
|
10197
|
-
"help": "
|
|
10198
|
-
"
|
|
10491
|
+
"saved": "rp_wLpbxW_saved",
|
|
10492
|
+
"activity": "rp_wLpbxW_activity",
|
|
10493
|
+
"view": "rp_wLpbxW_view",
|
|
10494
|
+
"field": "rp_wLpbxW_field",
|
|
10495
|
+
"description": "rp_wLpbxW_description",
|
|
10496
|
+
"message": "rp_wLpbxW_message",
|
|
10497
|
+
"link": "rp_wLpbxW_link",
|
|
10498
|
+
"row": "rp_wLpbxW_row",
|
|
10499
|
+
"actions": "rp_wLpbxW_actions",
|
|
10500
|
+
"label": "rp_wLpbxW_label",
|
|
10501
|
+
"help": "rp_wLpbxW_help",
|
|
10502
|
+
"title": "rp_wLpbxW_title",
|
|
10503
|
+
"table": "rp_wLpbxW_table",
|
|
10504
|
+
"error": "rp_wLpbxW_error",
|
|
10505
|
+
"notice": "rp_wLpbxW_notice"
|
|
10199
10506
|
};
|
|
10200
10507
|
//#endregion
|
|
10201
10508
|
//#region src/client/chat-settings/settings-api.ts
|
|
@@ -10227,6 +10534,112 @@ window.__ModuleLoader__.load({
|
|
|
10227
10534
|
signal
|
|
10228
10535
|
}));
|
|
10229
10536
|
}
|
|
10537
|
+
/** Forgets the chat's stored search vectors. */
|
|
10538
|
+
async function resetVectors(id, signal) {
|
|
10539
|
+
const response = await fetch(`${API_PREFIX}/sessions/vectors/reset?id=${encodeURIComponent(id)}`, {
|
|
10540
|
+
method: "POST",
|
|
10541
|
+
credentials: "same-origin",
|
|
10542
|
+
signal
|
|
10543
|
+
});
|
|
10544
|
+
if (!response.ok) throw new Error(`${response.status} ${response.statusText}`.trim());
|
|
10545
|
+
}
|
|
10546
|
+
//#endregion
|
|
10547
|
+
//#region src/client/chat-settings/VectorsSection.tsx
|
|
10548
|
+
/** What the search by meaning stands on, and a way to start it again with another embedding model. */
|
|
10549
|
+
function VectorsSection({ t, status, onReset, disabled }) {
|
|
10550
|
+
const [sure, setSure] = (0, react.useState)(false);
|
|
10551
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
10552
|
+
className: ChatSettingsView_module_css_default.activity,
|
|
10553
|
+
"data-testid": "roleplay-vectors",
|
|
10554
|
+
children: [
|
|
10555
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("vectorsTitle") }),
|
|
10556
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10557
|
+
className: ChatSettingsView_module_css_default.description,
|
|
10558
|
+
children: !status.available ? t("vectorsUnavailable") : status.model === void 0 ? t("vectorsNone", { pending: status.pending }) : t("vectorsStored", {
|
|
10559
|
+
model: status.model,
|
|
10560
|
+
dimensions: status.dimensions ?? 0,
|
|
10561
|
+
embedded: status.embedded,
|
|
10562
|
+
pending: status.pending
|
|
10563
|
+
})
|
|
10564
|
+
}),
|
|
10565
|
+
status.model !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
10566
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
10567
|
+
variant: "ghost",
|
|
10568
|
+
size: "sm",
|
|
10569
|
+
disabled,
|
|
10570
|
+
onClick: () => {
|
|
10571
|
+
if (sure) {
|
|
10572
|
+
setSure(false);
|
|
10573
|
+
onReset();
|
|
10574
|
+
} else setSure(true);
|
|
10575
|
+
},
|
|
10576
|
+
children: sure ? t("vectorsConfirm") : t("vectorsReset")
|
|
10577
|
+
}),
|
|
10578
|
+
sure && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
10579
|
+
type: "button",
|
|
10580
|
+
className: ChatSettingsView_module_css_default.link,
|
|
10581
|
+
onClick: () => {
|
|
10582
|
+
setSure(false);
|
|
10583
|
+
},
|
|
10584
|
+
children: t("vectorsCancel")
|
|
10585
|
+
}),
|
|
10586
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10587
|
+
className: ChatSettingsView_module_css_default.description,
|
|
10588
|
+
children: t("vectorsHelp")
|
|
10589
|
+
})
|
|
10590
|
+
] })
|
|
10591
|
+
]
|
|
10592
|
+
});
|
|
10593
|
+
}
|
|
10594
|
+
//#endregion
|
|
10595
|
+
//#region src/client/chat-settings/ActivityList.tsx
|
|
10596
|
+
const seconds = (ms) => `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)} s`;
|
|
10597
|
+
/** What the story's helper agents did lately and how long it took, newest first, to see where a slow turn went or why a helper gave up. */
|
|
10598
|
+
function ActivityList({ t, entries, onRefresh }) {
|
|
10599
|
+
const shown = entries.slice(-20).reverse();
|
|
10600
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
10601
|
+
className: ChatSettingsView_module_css_default.activity,
|
|
10602
|
+
"data-testid": "roleplay-activity",
|
|
10603
|
+
children: [
|
|
10604
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t("activityTitle") }),
|
|
10605
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10606
|
+
className: ChatSettingsView_module_css_default.description,
|
|
10607
|
+
children: t("activityHelp")
|
|
10608
|
+
}),
|
|
10609
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
10610
|
+
type: "button",
|
|
10611
|
+
className: ChatSettingsView_module_css_default.link,
|
|
10612
|
+
onClick: onRefresh,
|
|
10613
|
+
children: t("activityRefresh")
|
|
10614
|
+
}),
|
|
10615
|
+
shown.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10616
|
+
className: ChatSettingsView_module_css_default.description,
|
|
10617
|
+
children: t("activityEmpty")
|
|
10618
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
|
|
10619
|
+
className: ChatSettingsView_module_css_default.table,
|
|
10620
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
10621
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("activityWhen") }),
|
|
10622
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("activityHelper") }),
|
|
10623
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("activityModel") }),
|
|
10624
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("activityTook") }),
|
|
10625
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("activityCalls") }),
|
|
10626
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("activityResult") })
|
|
10627
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: shown.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
10628
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: new Date(entry.at).toLocaleTimeString() }),
|
|
10629
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: entry.label }),
|
|
10630
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: entry.model === "" ? t("activityOwnModel") : entry.model }),
|
|
10631
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: seconds(entry.ms) }),
|
|
10632
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: entry.calls }),
|
|
10633
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
10634
|
+
className: entry.error === void 0 ? void 0 : ChatSettingsView_module_css_default.error,
|
|
10635
|
+
title: entry.error,
|
|
10636
|
+
children: entry.error === void 0 ? t("activityDone") : t("activityFailed", { reason: entry.error })
|
|
10637
|
+
})
|
|
10638
|
+
] }, `${entry.at}-${entry.label}`)) })]
|
|
10639
|
+
})
|
|
10640
|
+
]
|
|
10641
|
+
});
|
|
10642
|
+
}
|
|
10230
10643
|
//#endregion
|
|
10231
10644
|
//#region src/client/chat-settings/ChatSettingsView.tsx
|
|
10232
10645
|
/** The settings of one chat. Ordinary DSH chats have ids of the same shape, so the host decides whether this one is a roleplay session. */
|
|
@@ -10281,6 +10694,29 @@ window.__ModuleLoader__.load({
|
|
|
10281
10694
|
});
|
|
10282
10695
|
setSaved(false);
|
|
10283
10696
|
};
|
|
10697
|
+
const reset = () => {
|
|
10698
|
+
if (session === void 0) return;
|
|
10699
|
+
resetVectors(session, new AbortController().signal).then(refreshActivity, (failure) => {
|
|
10700
|
+
setError(t("vectorsFailed", { message: failure instanceof Error ? failure.message : String(failure) }));
|
|
10701
|
+
});
|
|
10702
|
+
};
|
|
10703
|
+
const refreshActivity = () => {
|
|
10704
|
+
if (session === void 0) return;
|
|
10705
|
+
loadSettings(session, new AbortController().signal).then((next) => {
|
|
10706
|
+
setLoad({
|
|
10707
|
+
status: "ready",
|
|
10708
|
+
payload: {
|
|
10709
|
+
...payload,
|
|
10710
|
+
activity: next.activity,
|
|
10711
|
+
vectors: next.vectors,
|
|
10712
|
+
pendingRecords: next.pendingRecords,
|
|
10713
|
+
pendingConsolidation: next.pendingConsolidation
|
|
10714
|
+
}
|
|
10715
|
+
});
|
|
10716
|
+
}, (failure) => {
|
|
10717
|
+
setError(failure instanceof Error ? failure.message : String(failure));
|
|
10718
|
+
});
|
|
10719
|
+
};
|
|
10284
10720
|
const save = () => {
|
|
10285
10721
|
if (session === void 0 || !changed) return;
|
|
10286
10722
|
setSaving(true);
|
|
@@ -10340,6 +10776,17 @@ window.__ModuleLoader__.load({
|
|
|
10340
10776
|
disabled: saving,
|
|
10341
10777
|
locked: payload.clockMode === "simulated" ? { "clock.mode": { real: t("clockLocked") } } : {}
|
|
10342
10778
|
}),
|
|
10779
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(VectorsSection, {
|
|
10780
|
+
t,
|
|
10781
|
+
status: payload.vectors,
|
|
10782
|
+
disabled: saving,
|
|
10783
|
+
onReset: reset
|
|
10784
|
+
}),
|
|
10785
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActivityList, {
|
|
10786
|
+
t,
|
|
10787
|
+
entries: payload.activity,
|
|
10788
|
+
onRefresh: refreshActivity
|
|
10789
|
+
}),
|
|
10343
10790
|
error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10344
10791
|
className: ChatSettingsView_module_css_default.error,
|
|
10345
10792
|
role: "alert",
|
|
@@ -10371,6 +10818,28 @@ window.__ModuleLoader__.load({
|
|
|
10371
10818
|
notRoleplay: "This chat is not a roleplay session, so it has no roleplay settings.",
|
|
10372
10819
|
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.",
|
|
10373
10820
|
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.",
|
|
10821
|
+
activityTitle: "What the helpers did lately",
|
|
10822
|
+
activityHelp: "Characters, the record keeper, the suggestion writer and the authors run in the background of a turn. The latest runs are listed here, with how long each took.",
|
|
10823
|
+
activityRefresh: "Refresh",
|
|
10824
|
+
activityEmpty: "No helper has run yet.",
|
|
10825
|
+
activityWhen: "Ended",
|
|
10826
|
+
activityHelper: "Helper",
|
|
10827
|
+
activityModel: "Model",
|
|
10828
|
+
activityTook: "Took",
|
|
10829
|
+
activityCalls: "Calls",
|
|
10830
|
+
activityResult: "Result",
|
|
10831
|
+
activityOwnModel: "chat model",
|
|
10832
|
+
activityDone: "done",
|
|
10833
|
+
activityFailed: "failed: {reason}",
|
|
10834
|
+
vectorsTitle: "Search by meaning",
|
|
10835
|
+
vectorsUnavailable: "Vector search is not available here, so memories are found by their words only.",
|
|
10836
|
+
vectorsNone: "No vectors are stored yet ({pending} texts waiting). They are made in the background once an embedding model is selected and the story searches.",
|
|
10837
|
+
vectorsStored: "Made by {model} ({dimensions} dimensions): {embedded} stored, {pending} waiting.",
|
|
10838
|
+
vectorsReset: "Reset vectors",
|
|
10839
|
+
vectorsConfirm: "Click again to forget them",
|
|
10840
|
+
vectorsCancel: "Cancel",
|
|
10841
|
+
vectorsHelp: "Use this after you select another embedding model. The texts stay; they are embedded again by the new model as the story needs them, and until then memories are found by their words.",
|
|
10842
|
+
vectorsFailed: "Could not reset the vectors: {message}",
|
|
10374
10843
|
save: "Save",
|
|
10375
10844
|
saving: "Saving…",
|
|
10376
10845
|
saved: "Saved.",
|
|
@@ -10385,6 +10854,28 @@ window.__ModuleLoader__.load({
|
|
|
10385
10854
|
notRoleplay: "此对话不是角色扮演存档,没有角色扮演设置。",
|
|
10386
10855
|
pendingConsolidation: "有 {count} 个在故事中新建的角色、地点或物品等待融入世界(与其余部分建立连接和关系),将在后台完成。",
|
|
10387
10856
|
pendingRecords: "有 {count} 个回合等待写入故事记忆。主持人会在故事推进时记录,积压过多时也会自动记录。",
|
|
10857
|
+
activityTitle: "助手最近做了什么",
|
|
10858
|
+
activityHelp: "角色、记录员、建议作者和世界作者都在每一轮的后台运行。这里列出最近的运行及各自耗时。",
|
|
10859
|
+
activityRefresh: "刷新",
|
|
10860
|
+
activityEmpty: "还没有助手运行过。",
|
|
10861
|
+
activityWhen: "结束于",
|
|
10862
|
+
activityHelper: "助手",
|
|
10863
|
+
activityModel: "模型",
|
|
10864
|
+
activityTook: "耗时",
|
|
10865
|
+
activityCalls: "调用",
|
|
10866
|
+
activityResult: "结果",
|
|
10867
|
+
activityOwnModel: "对话模型",
|
|
10868
|
+
activityDone: "完成",
|
|
10869
|
+
activityFailed: "失败:{reason}",
|
|
10870
|
+
vectorsTitle: "按含义检索",
|
|
10871
|
+
vectorsUnavailable: "此处无法使用向量检索,记忆只按字词查找。",
|
|
10872
|
+
vectorsNone: "尚未存储向量({pending} 条文本等待中)。选择嵌入模型并在故事检索时会在后台生成。",
|
|
10873
|
+
vectorsStored: "由 {model}({dimensions} 维)生成:已存储 {embedded} 条,等待 {pending} 条。",
|
|
10874
|
+
vectorsReset: "重置向量",
|
|
10875
|
+
vectorsConfirm: "再次点击以清除",
|
|
10876
|
+
vectorsCancel: "取消",
|
|
10877
|
+
vectorsHelp: "更换嵌入模型后使用。文本会保留,之后按需由新模型重新生成向量,在此之前记忆只按字词查找。",
|
|
10878
|
+
vectorsFailed: "无法重置向量:{message}",
|
|
10388
10879
|
save: "保存",
|
|
10389
10880
|
saving: "正在保存…",
|
|
10390
10881
|
saved: "已保存。",
|
|
@@ -10694,8 +11185,8 @@ window.__ModuleLoader__.load({
|
|
|
10694
11185
|
}
|
|
10695
11186
|
};
|
|
10696
11187
|
//#endregion
|
|
10697
|
-
//#region \0css-module:/home/
|
|
10698
|
-
const css$2 = ".
|
|
11188
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/NarrationView.module.css.mjs
|
|
11189
|
+
const css$2 = ".rp_NFPimG_output{flex-direction:column;gap:8px;min-width:0;margin:8px 0;display:flex}.rp_NFPimG_narration{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:22px}.rp_NFPimG_line{align-items:flex-start;gap:10px;min-width:0;display:flex}.rp_NFPimG_avatar{color:#fff;border-radius:14px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:500;display:flex}.rp_NFPimG_speech{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);flex-direction:column;gap:2px;min-width:0;max-width:100%;padding:6px 10px;display:flex}.rp_NFPimG_name{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.rp_NFPimG_words{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:20px}.rp_NFPimG_note{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_NFPimG_preview{opacity:.8}.rp_NFPimG_oocNote,.rp_NFPimG_oocRefused{border-left:2px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);margin:0;padding:6px 10px;font-size:12px;line-height:18px}.rp_NFPimG_oocRefused{border-left-color:var(--dsw-alias-state-error-primary)}.rp_NFPimG_oocLabel{font-weight:500}.rp_NFPimG_images{flex-direction:column;align-items:flex-start;gap:6px;margin:8px 0 12px;display:flex}.rp_NFPimG_sceneImage{object-fit:contain;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:auto;max-width:min(100%,480px);height:auto;max-height:50vh;display:block}.rp_NFPimG_imageButton{cursor:zoom-in;background:0 0;border:0;padding:0}.rp_NFPimG_imageStatus,.rp_NFPimG_imageError{color:var(--dsw-alias-label-tertiary);font-size:12px}.rp_NFPimG_imageError{color:var(--dsw-alias-state-error-primary)}.rp_NFPimG_playAll,.rp_NFPimG_playLine{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0}.rp_NFPimG_playAll{float:right;margin:0 0 8px 12px;font-size:12px}.rp_NFPimG_playLine{margin-left:8px;padding:0 3px;font-size:10px}.rp_NFPimG_playAll:disabled,.rp_NFPimG_playLine:disabled{cursor:wait;opacity:.5}";
|
|
10699
11190
|
const key$2 = "src/client/transcript/NarrationView.module.css";
|
|
10700
11191
|
let tag$2 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$2) + "]");
|
|
10701
11192
|
if (tag$2 === null) {
|
|
@@ -10706,25 +11197,25 @@ window.__ModuleLoader__.load({
|
|
|
10706
11197
|
}
|
|
10707
11198
|
tag$2.textContent = css$2;
|
|
10708
11199
|
var NarrationView_module_css_default = {
|
|
10709
|
-
"
|
|
10710
|
-
"
|
|
10711
|
-
"
|
|
10712
|
-
"
|
|
10713
|
-
"
|
|
10714
|
-
"
|
|
10715
|
-
"
|
|
10716
|
-
"
|
|
10717
|
-
"
|
|
10718
|
-
"
|
|
10719
|
-
"
|
|
10720
|
-
"
|
|
10721
|
-
"note": "
|
|
10722
|
-
"
|
|
10723
|
-
"
|
|
10724
|
-
"
|
|
10725
|
-
"
|
|
10726
|
-
"
|
|
10727
|
-
"
|
|
11200
|
+
"oocLabel": "rp_NFPimG_oocLabel",
|
|
11201
|
+
"images": "rp_NFPimG_images",
|
|
11202
|
+
"output": "rp_NFPimG_output",
|
|
11203
|
+
"words": "rp_NFPimG_words",
|
|
11204
|
+
"speech": "rp_NFPimG_speech",
|
|
11205
|
+
"name": "rp_NFPimG_name",
|
|
11206
|
+
"imageButton": "rp_NFPimG_imageButton",
|
|
11207
|
+
"imageStatus": "rp_NFPimG_imageStatus",
|
|
11208
|
+
"imageError": "rp_NFPimG_imageError",
|
|
11209
|
+
"oocRefused": "rp_NFPimG_oocRefused",
|
|
11210
|
+
"playAll": "rp_NFPimG_playAll",
|
|
11211
|
+
"narration": "rp_NFPimG_narration",
|
|
11212
|
+
"note": "rp_NFPimG_note",
|
|
11213
|
+
"playLine": "rp_NFPimG_playLine",
|
|
11214
|
+
"avatar": "rp_NFPimG_avatar",
|
|
11215
|
+
"oocNote": "rp_NFPimG_oocNote",
|
|
11216
|
+
"sceneImage": "rp_NFPimG_sceneImage",
|
|
11217
|
+
"line": "rp_NFPimG_line",
|
|
11218
|
+
"preview": "rp_NFPimG_preview"
|
|
10728
11219
|
};
|
|
10729
11220
|
//#endregion
|
|
10730
11221
|
//#region src/client/transcript/PreviewNode.tsx
|
|
@@ -10950,8 +11441,8 @@ window.__ModuleLoader__.load({
|
|
|
10950
11441
|
};
|
|
10951
11442
|
}
|
|
10952
11443
|
//#endregion
|
|
10953
|
-
//#region \0css-module:/home/
|
|
10954
|
-
const css$1 = ".
|
|
11444
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/SuggestionsDock.module.css.mjs
|
|
11445
|
+
const css$1 = ".rp_rWH4DG_dock{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:4px;width:min(800px,100%);min-width:0;margin:0 auto 8px;padding:0 16px;display:flex}.rp_rWH4DG_label{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px}.rp_rWH4DG_chip{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);width:100%;color:var(--dsw-alias-label-secondary);font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere;background:0 0;padding:4px 10px;font-size:13px;line-height:20px}.rp_rWH4DG_chip:hover,.rp_rWH4DG_chip:focus-visible{border-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);outline:none}.rp_rWH4DG_card{border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);flex-direction:column;gap:2px;padding:6px 10px;display:flex}.rp_rWH4DG_lines{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;padding-left:16px;font-size:13px;line-height:20px}";
|
|
10955
11446
|
const key$1 = "src/client/transcript/SuggestionsDock.module.css";
|
|
10956
11447
|
let tag$1 = document.querySelector("style[data-plugin-css=" + JSON.stringify(key$1) + "]");
|
|
10957
11448
|
if (tag$1 === null) {
|
|
@@ -10962,11 +11453,11 @@ window.__ModuleLoader__.load({
|
|
|
10962
11453
|
}
|
|
10963
11454
|
tag$1.textContent = css$1;
|
|
10964
11455
|
var SuggestionsDock_module_css_default = {
|
|
10965
|
-
"
|
|
10966
|
-
"chip": "
|
|
10967
|
-
"
|
|
10968
|
-
"
|
|
10969
|
-
"
|
|
11456
|
+
"card": "rp_rWH4DG_card",
|
|
11457
|
+
"chip": "rp_rWH4DG_chip",
|
|
11458
|
+
"lines": "rp_rWH4DG_lines",
|
|
11459
|
+
"label": "rp_rWH4DG_label",
|
|
11460
|
+
"dock": "rp_rWH4DG_dock"
|
|
10970
11461
|
};
|
|
10971
11462
|
//#endregion
|
|
10972
11463
|
//#region src/client/transcript/SuggestionsDock.tsx
|
|
@@ -10976,7 +11467,7 @@ window.__ModuleLoader__.load({
|
|
|
10976
11467
|
/**
|
|
10977
11468
|
* What the player could do next, as chips stacked above the input; clicking one fills the input (the player may
|
|
10978
11469
|
* edit it before sending). They are made in the background once the output of a turn is shown, so the dock asks
|
|
10979
|
-
* the host for them for a while. What other characters did meanwhile (the `away` note) is a card above them, from the same notes. Shown only while they are the latest thing in the chat: once the player has sent
|
|
11470
|
+
* the host for them for a while. What other characters did meanwhile (the `away` note) is a card above them, from the same notes; what the world check found at the start (the `world` note) is another. Shown only while they are the latest thing in the chat: once the player has sent
|
|
10980
11471
|
* something, or a turn is running, they are gone.
|
|
10981
11472
|
*/
|
|
10982
11473
|
function SuggestionsDock({ useChat, useSession, pick, notes, t }) {
|
|
@@ -10989,9 +11480,11 @@ window.__ModuleLoader__.load({
|
|
|
10989
11480
|
});
|
|
10990
11481
|
const [offered, setOffered] = (0, react.useState)([]);
|
|
10991
11482
|
const [meanwhile, setMeanwhile] = (0, react.useState)([]);
|
|
11483
|
+
const [unfinished, setUnfinished] = (0, react.useState)([]);
|
|
10992
11484
|
(0, react.useEffect)(() => {
|
|
10993
11485
|
setOffered([]);
|
|
10994
11486
|
setMeanwhile([]);
|
|
11487
|
+
setUnfinished([]);
|
|
10995
11488
|
if (latest === void 0) return void 0;
|
|
10996
11489
|
let stopped = false;
|
|
10997
11490
|
let timer;
|
|
@@ -11000,6 +11493,8 @@ window.__ModuleLoader__.load({
|
|
|
11000
11493
|
if (stopped) return;
|
|
11001
11494
|
const away = found.find((note) => note.kind === "away")?.lines ?? [];
|
|
11002
11495
|
setMeanwhile((previous) => previous.join("\n") === away.join("\n") ? previous : away);
|
|
11496
|
+
const world = found.find((note) => note.kind === "world")?.lines ?? [];
|
|
11497
|
+
setUnfinished((previous) => previous.join("\n") === world.join("\n") ? previous : world);
|
|
11003
11498
|
const lines = found.find((note) => note.kind === "suggestions")?.lines;
|
|
11004
11499
|
if (lines !== void 0 && lines.length > 0) setOffered(lines);
|
|
11005
11500
|
else if (attempt < GIVE_UP_AFTER) timer = setTimeout(() => {
|
|
@@ -11015,11 +11510,22 @@ window.__ModuleLoader__.load({
|
|
|
11015
11510
|
if (timer !== void 0) clearTimeout(timer);
|
|
11016
11511
|
};
|
|
11017
11512
|
}, [latest, notes]);
|
|
11018
|
-
if (running || offered.length === 0 && meanwhile.length === 0) return null;
|
|
11513
|
+
if (running || offered.length === 0 && meanwhile.length === 0 && unfinished.length === 0) return null;
|
|
11019
11514
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11020
11515
|
className: SuggestionsDock_module_css_default.dock,
|
|
11021
11516
|
"data-testid": "roleplay-suggestions",
|
|
11022
11517
|
children: [
|
|
11518
|
+
unfinished.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11519
|
+
className: SuggestionsDock_module_css_default.card,
|
|
11520
|
+
"data-testid": "roleplay-world-findings",
|
|
11521
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
11522
|
+
className: SuggestionsDock_module_css_default.label,
|
|
11523
|
+
children: t("worldFindings")
|
|
11524
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
11525
|
+
className: SuggestionsDock_module_css_default.lines,
|
|
11526
|
+
children: unfinished.map((line) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: line }, line))
|
|
11527
|
+
})]
|
|
11528
|
+
}),
|
|
11023
11529
|
meanwhile.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11024
11530
|
className: SuggestionsDock_module_css_default.card,
|
|
11025
11531
|
"data-testid": "roleplay-meanwhile",
|
|
@@ -11048,8 +11554,8 @@ window.__ModuleLoader__.load({
|
|
|
11048
11554
|
});
|
|
11049
11555
|
}
|
|
11050
11556
|
//#endregion
|
|
11051
|
-
//#region \0css-module:/home/
|
|
11052
|
-
const css = ".
|
|
11557
|
+
//#region \0css-module:/home/runner/work/dsh-agentic-roleplay/dsh-agentic-roleplay/packages/dsh-agentic-roleplay-core/src/client/transcript/TurnsDock.module.css.mjs
|
|
11558
|
+
const css = ".rp_f4YLlq_dock{box-sizing:border-box;width:min(800px,100%);min-width:0;color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 auto 8px;padding:0 16px;font-size:12px;display:flex}.rp_f4YLlq_group{align-items:center;gap:2px;display:flex}.rp_f4YLlq_button{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;background:0 0;padding:2px 8px;line-height:18px}.rp_f4YLlq_button:hover:not(:disabled),.rp_f4YLlq_button:focus-visible{border-color:var(--dsw-alias-state-business-primary);color:var(--dsw-alias-state-business-primary);outline:none}.rp_f4YLlq_button:disabled{opacity:.5;cursor:default}.rp_f4YLlq_count{text-align:center;min-width:32px}.rp_f4YLlq_select{border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);max-width:220px;color:var(--dsw-alias-label-secondary);font:inherit;background:0 0;padding:2px 4px}.rp_f4YLlq_error{color:var(--dsw-alias-state-error-primary,#d1242f)}";
|
|
11053
11559
|
const key = "src/client/transcript/TurnsDock.module.css";
|
|
11054
11560
|
let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(key) + "]");
|
|
11055
11561
|
if (tag === null) {
|
|
@@ -11060,12 +11566,12 @@ window.__ModuleLoader__.load({
|
|
|
11060
11566
|
}
|
|
11061
11567
|
tag.textContent = css;
|
|
11062
11568
|
var TurnsDock_module_css_default = {
|
|
11063
|
-
"
|
|
11064
|
-
"
|
|
11065
|
-
"
|
|
11066
|
-
"
|
|
11067
|
-
"
|
|
11068
|
-
"
|
|
11569
|
+
"select": "rp_f4YLlq_select",
|
|
11570
|
+
"group": "rp_f4YLlq_group",
|
|
11571
|
+
"dock": "rp_f4YLlq_dock",
|
|
11572
|
+
"button": "rp_f4YLlq_button",
|
|
11573
|
+
"count": "rp_f4YLlq_count",
|
|
11574
|
+
"error": "rp_f4YLlq_error"
|
|
11069
11575
|
};
|
|
11070
11576
|
//#endregion
|
|
11071
11577
|
//#region src/client/transcript/withdrawn.ts
|
|
@@ -11273,6 +11779,7 @@ window.__ModuleLoader__.load({
|
|
|
11273
11779
|
repaired: "Corrected so that every spoken line is exactly what the character said.",
|
|
11274
11780
|
suggestions: "You could",
|
|
11275
11781
|
meanwhile: "Meanwhile",
|
|
11782
|
+
worldFindings: "Unfinished in this world",
|
|
11276
11783
|
suggestionHint: "Put it in the input box",
|
|
11277
11784
|
sceneImage: "Illustration of this scene",
|
|
11278
11785
|
imageGenerating: "Creating illustration…",
|
|
@@ -11308,6 +11815,7 @@ window.__ModuleLoader__.load({
|
|
|
11308
11815
|
repaired: "已修正,确保每句台词与角色原话一致。",
|
|
11309
11816
|
suggestions: "你可以",
|
|
11310
11817
|
meanwhile: "与此同时",
|
|
11818
|
+
worldFindings: "这个世界尚未完善之处",
|
|
11311
11819
|
suggestionHint: "填入输入框",
|
|
11312
11820
|
sceneImage: "本场景插图",
|
|
11313
11821
|
imageGenerating: "正在生成插图…",
|