@dsh-agentic-roleplay/core 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/lib/authoring.js +18 -223
  2. package/lib/client.js +1838 -489
  3. package/lib/client.js.map +1 -1
  4. package/lib/compaction.js +1 -1
  5. package/lib/deliver-BSsDtF6X.js +3443 -0
  6. package/lib/{documents-7GMc5NnW.js → documents-B5XAdfo2.js} +992 -14
  7. package/lib/{gallery-DUeBMHQX.js → gallery-DS5-qH9F.js} +2 -2
  8. package/lib/{generator-HPifO3Kk.js → generator-BzeepLd2.js} +3 -3
  9. package/lib/images.js +3 -3
  10. package/lib/index.js +351 -13
  11. package/lib/narration-DK2kiIjE.js +141 -0
  12. package/lib/orchestration.js +867 -1547
  13. package/lib/{packs-alJTiDM2.js → packs-BCGK9KZV.js} +51 -7
  14. package/lib/{presenter-agent-PX1WVaJB.js → presenter-agent-Cp-J0onD.js} +3 -3
  15. package/lib/{narration-CKZTk5UE.js → settings-CA6icLL_.js} +158 -142
  16. package/package.json +4 -4
  17. package/packs/scene/strip.js +1 -1
  18. package/prompts/en/roleplay/character-decide.md +1 -1
  19. package/prompts/en/roleplay/character-rules.md +1 -1
  20. package/prompts/en/roleplay/chronicler.md +1 -1
  21. package/prompts/en/roleplay/dice.md +7 -0
  22. package/prompts/en/roleplay/game-master.md +3 -1
  23. package/prompts/en/roleplay/reflection.md +4 -2
  24. package/prompts/en/roleplay/style.md +1 -1
  25. package/prompts/en/roleplay/suggester.md +1 -1
  26. package/prompts/en/translate/document.md +6 -0
  27. package/prompts/en/translate/glossary.md +5 -0
  28. package/prompts/en/translate/notice.md +2 -0
  29. package/prompts/zh/roleplay/character-decide.md +1 -1
  30. package/prompts/zh/roleplay/character-rules.md +1 -1
  31. package/prompts/zh/roleplay/chronicler.md +1 -1
  32. package/prompts/zh/roleplay/dice.md +7 -0
  33. package/prompts/zh/roleplay/game-master.md +3 -1
  34. package/prompts/zh/roleplay/reflection.md +4 -2
  35. package/prompts/zh/roleplay/style.md +1 -1
  36. package/prompts/zh/roleplay/suggester.md +1 -1
  37. package/prompts/zh/translate/document.md +6 -0
  38. package/prompts/zh/translate/glossary.md +5 -0
  39. package/prompts/zh/translate/notice.md +2 -0
  40. package/lib/deliver--uMhC6oO.js +0 -1878
  41. package/lib/src-CWTNeL6Y.js +0 -128
@@ -1,128 +0,0 @@
1
- //#region ../dsh-roleplay-model/src/variable.ts
2
- /** What a variable holds: a number within bounds, a yes or no, or one of a list of words. */
3
- const VARIABLE_KINDS = [
4
- "number",
5
- "flag",
6
- "choice"
7
- ];
8
- /** What a variable is about: each character, item or place has its own value; `world` has one value for the whole story. */
9
- const VARIABLE_SUBJECTS = [
10
- "character",
11
- "item",
12
- "location",
13
- "world"
14
- ];
15
- /**
16
- * Who can tell what the value is. `public`: anyone present (what shows). `private`: the character it belongs to, and the
17
- * game master (what it feels or knows of itself). `hidden`: only the game master and the record keeper.
18
- */
19
- const VARIABLE_VISIBILITIES = [
20
- "public",
21
- "private",
22
- "hidden"
23
- ];
24
- [
25
- {
26
- key: "valence",
27
- name: "Valence",
28
- description: "How pleasant its mood is: -1 very unpleasant, 0 neutral, 1 very pleasant.",
29
- labels: [
30
- {
31
- upTo: -.6,
32
- label: "miserable"
33
- },
34
- {
35
- upTo: -.25,
36
- label: "unhappy"
37
- },
38
- {
39
- upTo: .25,
40
- label: "even"
41
- },
42
- {
43
- upTo: .6,
44
- label: "pleased"
45
- },
46
- {
47
- upTo: 1,
48
- label: "delighted"
49
- }
50
- ]
51
- },
52
- {
53
- key: "arousal",
54
- name: "Arousal",
55
- description: "How worked up it is: -1 drowsy, 0 ordinary, 1 frantic.",
56
- labels: [
57
- {
58
- upTo: -.6,
59
- label: "drowsy"
60
- },
61
- {
62
- upTo: -.25,
63
- label: "calm"
64
- },
65
- {
66
- upTo: .25,
67
- label: "alert"
68
- },
69
- {
70
- upTo: .6,
71
- label: "keyed up"
72
- },
73
- {
74
- upTo: 1,
75
- label: "frantic"
76
- }
77
- ]
78
- },
79
- {
80
- key: "dominance",
81
- name: "Dominance",
82
- description: "How much in control it feels: -1 helpless, 0 even, 1 commanding.",
83
- labels: [
84
- {
85
- upTo: -.6,
86
- label: "helpless"
87
- },
88
- {
89
- upTo: -.25,
90
- label: "uneasy"
91
- },
92
- {
93
- upTo: .25,
94
- label: "steady"
95
- },
96
- {
97
- upTo: .6,
98
- label: "confident"
99
- },
100
- {
101
- upTo: 1,
102
- label: "commanding"
103
- }
104
- ]
105
- }
106
- ].map(({ labels, ...rest }) => ({
107
- ...rest,
108
- kind: "number",
109
- subject: "character",
110
- only: [],
111
- min: -1,
112
- max: 1,
113
- integer: false,
114
- options: [],
115
- default: 0,
116
- baseline: true,
117
- visibility: "private",
118
- bands: labels.map((band) => ({
119
- upTo: band.upTo,
120
- label: band.label
121
- })),
122
- always: false,
123
- builtin: true
124
- }));
125
- //#endregion
126
- export { VARIABLE_SUBJECTS as n, VARIABLE_VISIBILITIES as r, VARIABLE_KINDS as t };
127
-
128
- //# sourceMappingURL=src-CWTNeL6Y.js.map