@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.
Files changed (55) hide show
  1. package/lib/{notes-CJzbN_-E.js → activity-BbqFG9-3.js} +35 -9
  2. package/lib/authoring.js +3 -3
  3. package/lib/client.js +880 -372
  4. package/lib/client.js.map +1 -1
  5. package/lib/compaction.js +1 -1
  6. package/lib/{documents-BBq88wXP.js → documents-ZVoUTnD2.js} +54 -33
  7. package/lib/{gallery-CjG9_4Sz.js → gallery-KGCdeCnM.js} +2 -2
  8. package/lib/{generator-pxZS-pu-.js → generator-NYnNdpWb.js} +100 -9
  9. package/lib/images.js +3 -3
  10. package/lib/index.js +220 -15
  11. package/lib/{narration-tYy6Rkfr.js → narration-DcnCqA1l.js} +20 -3
  12. package/lib/orchestration.js +510 -82
  13. package/lib/{presenter-agent-DbZALurg.js → presenter-agent-7j1c7QEz.js} +3 -3
  14. package/lib/{worlds-Bj-EGS_i.js → worlds-DYgjdH8O.js} +28 -2
  15. package/package.json +3 -2
  16. package/prompts/en/roleplay/faction-strategist.md +5 -0
  17. package/prompts/en/roleplay/trigger-judge.md +3 -0
  18. package/prompts/zh/roleplay/faction-strategist.md +5 -0
  19. package/prompts/zh/roleplay/trigger-judge.md +3 -0
  20. package/starter-worlds/blackwater-observatory/characters/arthur-moore/character.json +65 -0
  21. package/starter-worlds/blackwater-observatory/characters/clara-whitlock/character.json +87 -0
  22. package/starter-worlds/blackwater-observatory/characters/eleanor-graves/character.json +80 -0
  23. package/starter-worlds/blackwater-observatory/characters/marcus-reed/character.json +73 -0
  24. package/starter-worlds/blackwater-observatory/items/anonymous-letter/item.json +9 -0
  25. package/starter-worlds/blackwater-observatory/items/brass-laboratory-key/item.json +10 -0
  26. package/starter-worlds/blackwater-observatory/items/claras-gossip-notebook/item.json +9 -0
  27. package/starter-worlds/blackwater-observatory/items/harlans-notebook/item.json +10 -0
  28. package/starter-worlds/blackwater-observatory/items/investigators-coat/item.json +10 -0
  29. package/starter-worlds/blackwater-observatory/items/investigators-notebook/item.json +9 -0
  30. package/starter-worlds/blackwater-observatory/items/locked-filing-cabinet/item.json +10 -0
  31. package/starter-worlds/blackwater-observatory/items/marcus-calibration-notes/item.json +9 -0
  32. package/starter-worlds/blackwater-observatory/items/mayors-administrative-seal/item.json +9 -0
  33. package/starter-worlds/blackwater-observatory/items/municipal-lockbox/item.json +10 -0
  34. package/starter-worlds/blackwater-observatory/items/pocket-revolver/item.json +10 -0
  35. package/starter-worlds/blackwater-observatory/items/room-7-cash-receipt/item.json +9 -0
  36. package/starter-worlds/blackwater-observatory/items/rusting-mine-cart/item.json +10 -0
  37. package/starter-worlds/blackwater-observatory/items/signal-recording-strip/item.json +9 -0
  38. package/starter-worlds/blackwater-observatory/items/silver-pocket-watch/item.json +9 -0
  39. package/starter-worlds/blackwater-observatory/items/survey-archive-cabinet/item.json +10 -0
  40. package/starter-worlds/blackwater-observatory/items/surveyors-map/item.json +10 -0
  41. package/starter-worlds/blackwater-observatory/items/unknown-visitors-note-fragment/item.json +10 -0
  42. package/starter-worlds/blackwater-observatory/locations/blackwater-ridge/location.json +5 -0
  43. package/starter-worlds/blackwater-observatory/locations/iron-stag-bar/location.json +30 -0
  44. package/starter-worlds/blackwater-observatory/locations/iron-stag-room-7/location.json +18 -0
  45. package/starter-worlds/blackwater-observatory/locations/north-forest-cabin/location.json +18 -0
  46. package/starter-worlds/blackwater-observatory/locations/observatory-directors-office/location.json +20 -0
  47. package/starter-worlds/blackwater-observatory/locations/observatory-telescope-chamber/location.json +25 -0
  48. package/starter-worlds/blackwater-observatory/locations/old-mine-entrance/location.json +27 -0
  49. package/starter-worlds/blackwater-observatory/locations/old-mine-main-tunnel/location.json +13 -0
  50. package/starter-worlds/blackwater-observatory/locations/town-hall-mayors-office/location.json +25 -0
  51. package/starter-worlds/blackwater-observatory/locations/town-hall-records-room/location.json +13 -0
  52. package/starter-worlds/blackwater-observatory/locations/town-square/location.json +30 -0
  53. package/starter-worlds/blackwater-observatory/triggers.json +20 -0
  54. package/starter-worlds/blackwater-observatory/variables.json +39 -0
  55. package/starter-worlds/blackwater-observatory/world.json +27 -0
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "iron-stag-bar",
3
+ "name": "Iron Stag Inn - Bar",
4
+ "description": "The busy ground-floor bar of the Iron Stag Inn. Locals gather here for drink, gossip, and festival talk.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "visitors-room-ledger",
9
+ "name": "Visitor's Room Ledger",
10
+ "description": "The inn's ledger of room usage, dates, names, and payments."
11
+ },
12
+ {
13
+ "id": "notice-board",
14
+ "name": "Notice Board",
15
+ "description": "A cork board crowded with festival notices and handwritten messages."
16
+ }
17
+ ],
18
+ "exits": [
19
+ {
20
+ "to": "iron-stag-room-7",
21
+ "description": "a narrow stair to the guest rooms",
22
+ "travel_time_seconds": 30
23
+ },
24
+ {
25
+ "to": "town-square",
26
+ "description": "the inn door onto the square",
27
+ "travel_time_seconds": 60
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "iron-stag-room-7",
3
+ "name": "Iron Stag Inn - Room 7",
4
+ "description": "A modest guest room on the upper floor with a writing desk and a window over the side alley.",
5
+ "parent": "iron-stag-bar",
6
+ "features": [
7
+ {
8
+ "id": "writing-desk",
9
+ "name": "Room 7 Writing Desk",
10
+ "description": "A small desk with a lamp and a blotter."
11
+ },
12
+ {
13
+ "id": "guest-room-window",
14
+ "name": "Guest Room Window",
15
+ "description": "A narrow window over the side alley."
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "north-forest-cabin",
3
+ "name": "North Forest - Abandoned Cabin",
4
+ "description": "An abandoned cabin in the north forest.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "cabin-hearth",
9
+ "name": "Cabin Hearth",
10
+ "description": "A cold stone hearth."
11
+ },
12
+ {
13
+ "id": "loose-floorboard",
14
+ "name": "Loose Floorboard",
15
+ "description": "A floorboard that does not sit flat."
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "id": "observatory-directors-office",
3
+ "name": "Blackwater Observatory - Director's Office",
4
+ "description": "The private office of the missing Director Harlan. Tall windows face the mountains, while shelves of astronomical records, correspondence, and field notes line the walls.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "directors-desk",
9
+ "name": "Director's Desk",
10
+ "description": "A heavy oak desk used by Director Harlan. Its surface is neat and its drawers are closed."
11
+ }
12
+ ],
13
+ "exits": [
14
+ {
15
+ "to": "observatory-telescope-chamber",
16
+ "description": "a short corridor to the telescope chamber",
17
+ "travel_time_seconds": 30
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "id": "observatory-telescope-chamber",
3
+ "name": "Blackwater Observatory - Telescope Chamber",
4
+ "description": "The main chamber of the observatory, dominated by a large brass-and-steel telescope mounted beneath the rotating dome.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "main-telescope",
9
+ "name": "Main Telescope",
10
+ "description": "The observatory's primary telescope, functional but not set to its resting alignment."
11
+ },
12
+ {
13
+ "id": "signal-recording-apparatus",
14
+ "name": "Signal Recording Apparatus",
15
+ "description": "Coils, receivers, and paper rolls used to record strange underground signal patterns."
16
+ }
17
+ ],
18
+ "exits": [
19
+ {
20
+ "to": "town-square",
21
+ "description": "the long switchback road down to the town",
22
+ "travel_time_seconds": 900
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "id": "old-mine-entrance",
3
+ "name": "Old Mine - Mine Entrance",
4
+ "description": "The mouth of the old silver mine, with a boarded entrance and a faded warning sign.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "boarded-mine-entrance",
9
+ "name": "Boarded Mine Entrance",
10
+ "description": "Heavy boards nailed across the entrance."
11
+ },
12
+ {
13
+ "id": "old-warning-sign",
14
+ "name": "Old Warning Sign",
15
+ "description": "A faded sign warning against entering."
16
+ }
17
+ ],
18
+ "exits": [
19
+ {
20
+ "to": "old-mine-main-tunnel",
21
+ "description": "boarded-up entrance into the mine",
22
+ "state": "blocked",
23
+ "note": "the entrance is boarded up",
24
+ "travel_time_seconds": 60
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": "old-mine-main-tunnel",
3
+ "name": "Old Mine - Main Tunnel",
4
+ "description": "The main tunnel of the old mine.",
5
+ "parent": "old-mine-entrance",
6
+ "features": [
7
+ {
8
+ "id": "collapsed-side-passage",
9
+ "name": "Collapsed Side Passage",
10
+ "description": "A side passage choked with fallen rock."
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "id": "town-hall-mayors-office",
3
+ "name": "Town Hall - Mayor's Office",
4
+ "description": "Eleanor Graves's formal, controlled, carefully arranged office inside Town Hall.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "mayors-desk",
9
+ "name": "Mayor's Desk",
10
+ "description": "A large, immaculate desk."
11
+ }
12
+ ],
13
+ "exits": [
14
+ {
15
+ "to": "town-hall-records-room",
16
+ "description": "a door to the records room",
17
+ "travel_time_seconds": 20
18
+ },
19
+ {
20
+ "to": "town-square",
21
+ "description": "the Town Hall steps down to the square",
22
+ "travel_time_seconds": 60
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": "town-hall-records-room",
3
+ "name": "Town Hall - Records Room",
4
+ "description": "A cramped archival room filled with deeds, survey papers, council minutes, and tax records.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "property-record-shelves",
9
+ "name": "Property Record Shelves",
10
+ "description": "Shelves of property and survey records."
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "town-square",
3
+ "name": "Town Square - Festival Monument",
4
+ "description": "The town square around the festival monument, where the annual festival is held.",
5
+ "parent": "blackwater-ridge",
6
+ "features": [
7
+ {
8
+ "id": "festival-monument",
9
+ "name": "Festival Monument",
10
+ "description": "A weathered stone monument."
11
+ },
12
+ {
13
+ "id": "festival-stalls",
14
+ "name": "Festival Stalls",
15
+ "description": "Wooden stalls set up for the festival."
16
+ }
17
+ ],
18
+ "exits": [
19
+ {
20
+ "to": "old-mine-entrance",
21
+ "description": "the track up to the old mine",
22
+ "travel_time_seconds": 1200
23
+ },
24
+ {
25
+ "to": "north-forest-cabin",
26
+ "description": "a path into the north forest",
27
+ "travel_time_seconds": 1800
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "key": "festival-band",
4
+ "name": "The festival band strikes up",
5
+ "when": { "type": "time", "from": "1912-09-21T19:31" },
6
+ "effects": [
7
+ { "type": "beat", "text": "The festival band strikes up in the square outside, loud enough to be heard through the walls." },
8
+ { "type": "cue", "audience": { "place": "iron-stag-bar" }, "text": "The band has started early; the bar will fill up soon." }
9
+ ],
10
+ "announce": { "audience": "everyone", "text": "The Founder's Festival band plays on the square this evening.", "at": "1912-09-21T19:31" }
11
+ },
12
+ {
13
+ "key": "mayors-announcement",
14
+ "name": "The mayor's announcement",
15
+ "when": { "type": "time", "from": "1912-09-22T12:00" },
16
+ "effects": [
17
+ { "type": "edit", "edit": { "events": [{ "text": "Mayor Graves announced a curfew for the whole town.", "tags": ["curfew"], "importance": 4, "perceived_by": "everyone" }] } }
18
+ ]
19
+ }
20
+ ]
@@ -0,0 +1,39 @@
1
+ [
2
+ {
3
+ "key": "town_unrest",
4
+ "name": "Unrest in the town",
5
+ "description": "How close Blackwater Ridge is to open trouble over the director's disappearance: 0 calm, 10 a riot.",
6
+ "kind": "number",
7
+ "subject": "world",
8
+ "min": 0,
9
+ "max": 10,
10
+ "integer": true,
11
+ "default": 2,
12
+ "visibility": "hidden",
13
+ "always": true,
14
+ "bands": [
15
+ { "up_to": 2, "label": "calm" },
16
+ { "up_to": 5, "label": "uneasy" },
17
+ { "up_to": 8, "label": "tense" },
18
+ { "up_to": 10, "label": "volatile" }
19
+ ]
20
+ },
21
+ {
22
+ "key": "fatigue",
23
+ "name": "Fatigue",
24
+ "description": "How tired the character is: 0 rested, 10 exhausted.",
25
+ "kind": "number",
26
+ "subject": "character",
27
+ "min": 0,
28
+ "max": 10,
29
+ "integer": true,
30
+ "default": 0,
31
+ "visibility": "public",
32
+ "bands": [
33
+ { "up_to": 2, "label": "rested" },
34
+ { "up_to": 5, "label": "tired" },
35
+ { "up_to": 8, "label": "weary" },
36
+ { "up_to": 10, "label": "exhausted" }
37
+ ]
38
+ }
39
+ ]
@@ -0,0 +1,27 @@
1
+ {
2
+ "id": "51e09bac-6c9e-4ffd-a285-82fbc9c4399c",
3
+ "name": "The Blackwater Observatory",
4
+ "description": "The year is 1912. The isolated mountain town of Blackwater Ridge was built around an astronomical observatory that once conducted secret government-funded research.\n\nThree weeks ago, the observatory's director vanished. Officially, he left without notice. However, nobody believes that. The player arrives in town during the annual Founder's Festival, where tensions between residents are beginning to surface.",
5
+ "starting_time": "1912-09-21T19:30",
6
+ "time_zone": "UTC",
7
+ "author": {
8
+ "name": "Firefox2100",
9
+ "url": "https://github.com/Firefox2100"
10
+ },
11
+ "metadata": {
12
+ "tags": [
13
+ "mystery",
14
+ "historical",
15
+ "1912",
16
+ "gothic",
17
+ "small town",
18
+ "conspiracy"
19
+ ]
20
+ },
21
+ "rules": [
22
+ "There is no magic or supernatural power: nothing happens that could not happen in 1912.",
23
+ "Guns are rare in Blackwater Ridge."
24
+ ],
25
+ "version": "1.0",
26
+ "opening_message": "Blackwater Ridge is loud tonight. Lanterns hang across the square for the Founder's Festival, and the band is warming up somewhere beyond the Iron Stag's fogged windows.\n\nYou sit at the bar with a glass you have barely touched. A letter without a signature brought you to this town; the director of the observatory has been missing for three weeks; and the woman behind the counter has been watching you since you sat down, polishing the same glass.\n\nSomeone in this room knows what happened on the hill. You have until the festival ends to find out who."
27
+ }