@dsh-agentic-roleplay/core 0.1.1 → 0.3.0

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 (52) hide show
  1. package/README.md +1 -1
  2. package/lib/{chat-AKrVcWIC.js → access-EbNdZFbk.js} +10 -2
  3. package/lib/authoring.js +469 -17
  4. package/lib/client.js +3013 -607
  5. package/lib/client.js.map +1 -1
  6. package/lib/compaction.js +2 -3
  7. package/lib/{activity-BbqFG9-3.js → deliver--uMhC6oO.js} +741 -55
  8. package/lib/{documents-ZVoUTnD2.js → documents-7GMc5NnW.js} +108 -5
  9. package/lib/{gallery-KGCdeCnM.js → gallery-DUeBMHQX.js} +2 -2
  10. package/lib/{generator-NYnNdpWb.js → generator-HPifO3Kk.js} +125 -20
  11. package/lib/images.js +3 -3
  12. package/lib/index.js +865 -15
  13. package/lib/{narration-DcnCqA1l.js → narration-CKZTk5UE.js} +19 -4
  14. package/lib/orchestration.js +373 -207
  15. package/lib/packs-alJTiDM2.js +1336 -0
  16. package/lib/{presenter-agent-7j1c7QEz.js → presenter-agent-PX1WVaJB.js} +4 -4
  17. package/package.json +5 -3
  18. package/packs/scene/map.html +12 -0
  19. package/packs/scene/map.js +55 -0
  20. package/packs/scene/pack.json +11 -0
  21. package/packs/scene/strip.html +11 -0
  22. package/packs/scene/strip.js +26 -0
  23. package/packs/scene/style.css +16 -0
  24. package/prompts/en/roleplay/ask-answerer.md +3 -0
  25. package/prompts/en/roleplay/ask-question.md +2 -0
  26. package/prompts/en/roleplay/character-decide.md +1 -1
  27. package/prompts/en/roleplay/character-lookup.md +1 -1
  28. package/prompts/en/roleplay/game-master.md +5 -1
  29. package/prompts/en/roleplay/ooc-empty.md +1 -1
  30. package/prompts/en/roleplay/reflection.md +9 -0
  31. package/prompts/en/world/procedure.md +1 -1
  32. package/prompts/en/world/welcome.md +1 -1
  33. package/prompts/zh/roleplay/ask-answerer.md +3 -0
  34. package/prompts/zh/roleplay/ask-question.md +2 -0
  35. package/prompts/zh/roleplay/character-decide.md +1 -1
  36. package/prompts/zh/roleplay/character-lookup.md +1 -1
  37. package/prompts/zh/roleplay/game-master.md +5 -1
  38. package/prompts/zh/roleplay/ooc-empty.md +1 -1
  39. package/prompts/zh/roleplay/reflection.md +9 -0
  40. package/prompts/zh/world/procedure.md +1 -1
  41. package/prompts/zh/world/welcome.md +1 -1
  42. package/starter-worlds/blackwater-observatory/ui/notebook/map.html +12 -0
  43. package/starter-worlds/blackwater-observatory/ui/notebook/map.js +40 -0
  44. package/starter-worlds/blackwater-observatory/ui/notebook/notebook.html +29 -0
  45. package/starter-worlds/blackwater-observatory/ui/notebook/notebook.js +45 -0
  46. package/starter-worlds/blackwater-observatory/ui/notebook/pack.json +31 -0
  47. package/starter-worlds/blackwater-observatory/ui/notebook/skin.css +16 -0
  48. package/starter-worlds/blackwater-observatory/ui/notebook/strip.html +11 -0
  49. package/starter-worlds/blackwater-observatory/ui/notebook/strip.js +12 -0
  50. package/starter-worlds/blackwater-observatory/ui/notebook/style.css +23 -0
  51. package/lib/access-C1nFQiyT.js +0 -12
  52. package/lib/worlds-DYgjdH8O.js +0 -504
@@ -57,7 +57,9 @@ const SETTINGS_SPEC = {
57
57
  lookupCalls: integer(1, 20, 5),
58
58
  verify: flag(true),
59
59
  backlogRounds: integer(1, 100, 6),
60
- overRetrieve: integer(1, 10, 4)
60
+ overRetrieve: integer(1, 10, 4),
61
+ associate: integer(0, 10, 2),
62
+ diversity: ratio(0, 1, .3)
61
63
  },
62
64
  context: {
63
65
  limitTokens: integer(0, 1e6, 0),
@@ -78,6 +80,7 @@ const SETTINGS_SPEC = {
78
80
  roundSeconds: integer(0, 3600, 30),
79
81
  maxSkipDays: integer(1, 3650, 30)
80
82
  },
83
+ diagnostics: { keepRuns: flag(false) },
81
84
  offstage: {
82
85
  perTurn: integer(0, 5, 2),
83
86
  perCharacter: integer(1, 3, 1),
@@ -87,12 +90,13 @@ const SETTINGS_SPEC = {
87
90
  sampling: {
88
91
  master: ratio(0, 2, .7),
89
92
  characters: ratio(0, 2, .8),
90
- suggestions: ratio(0, 2, .8),
93
+ suggestions: ratio(0, 2, .2),
91
94
  authoring: ratio(0, 2, .4),
92
95
  records: ratio(0, 2, .1),
93
96
  tools: choice(["auto", "required"], "required"),
94
97
  maxTokens: integer(256, 64e3, 8e3),
95
- shortMaxTokens: integer(256, 64e3, 2e3)
98
+ shortMaxTokens: integer(256, 64e3, 2e3),
99
+ headroom: ratio(1, 10, 2)
96
100
  },
97
101
  prompts: { language: text(8, "en") },
98
102
  reasoning: { children: text(40, "") },
@@ -100,8 +104,18 @@ const SETTINGS_SPEC = {
100
104
  perTurn: integer(0, 3, 1),
101
105
  everyDays: integer(1, 365, 3)
102
106
  },
107
+ reflection: {
108
+ auto: flag(true),
109
+ everyTurns: integer(0, 500, 20),
110
+ onSceneChange: flag(true),
111
+ sceneDays: integer(0, 365, 1),
112
+ minTurns: integer(1, 100, 5),
113
+ perRun: integer(1, 6, 3),
114
+ minNew: integer(1, 50, 4)
115
+ },
103
116
  models: {
104
117
  characters: text(200, ""),
118
+ background: text(200, ""),
105
119
  records: text(200, ""),
106
120
  suggestions: text(200, ""),
107
121
  authoring: text(200, "")
@@ -113,6 +127,7 @@ const SETTINGS_SPEC = {
113
127
  cueTurns: integer(1, 20, 2),
114
128
  judgedPerTurn: integer(0, 5, 2)
115
129
  },
130
+ interface: { pack: text(60, "") },
116
131
  rewind: { keepSnapshots: integer(0, 500, 30) },
117
132
  rules: { own: text(MAX_OWN_RULES, "") },
118
133
  preview: { enabled: flag(true) },
@@ -349,4 +364,4 @@ function decodeOutput(text) {
349
364
  //#endregion
350
365
  export { liveSettings as a, writeSettings as c, parseSettings as d, WORLD_RULES_KEY as f, InvalidSettingsError as i, DEFAULT_SETTINGS as l, encodeOutput as n, readSettings as o, rulesOf as p, encodePreview as r, useChildReasoning as s, decodeOutput as t, SETTINGS_SPEC as u };
351
366
 
352
- //# sourceMappingURL=narration-DcnCqA1l.js.map
367
+ //# sourceMappingURL=narration-CKZTk5UE.js.map