briyah 1.0.5 → 1.0.6
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/data/common/config/image_models.json +15 -0
- package/data/common/config/image_models_full.json +48 -0
- package/data/common/config/model_prices.json +37274 -0
- package/data/common/config/random_words.txt +2241 -0
- package/data/common/config/story_ideas.txt +6 -0
- package/data/common/config/story_models.json +23 -0
- package/data/common/config/story_models_full.json +45 -0
- package/data/common/prompts/character/compact_story.json +0 -0
- package/data/common/prompts/character/compact_story.mock +1 -0
- package/data/common/prompts/character/compact_story.prompt +18 -0
- package/data/common/prompts/character/create_character.json +29 -0
- package/data/common/prompts/character/create_character.mock +7 -0
- package/data/common/prompts/character/create_character.prompt +85 -0
- package/data/common/prompts/character/create_user_character.json +28 -0
- package/data/common/prompts/character/create_user_character.mock +7 -0
- package/data/common/prompts/character/create_user_character.prompt +60 -0
- package/data/common/prompts/character/describe_character.json +0 -0
- package/data/common/prompts/character/describe_character.prompt +32 -0
- package/data/common/prompts/character/import_character.json +29 -0
- package/data/common/prompts/character/import_character.prompt +87 -0
- package/data/common/prompts/character/import_user_character.json +28 -0
- package/data/common/prompts/character/import_user_character.prompt +69 -0
- package/data/common/prompts/character/perceive.json +0 -0
- package/data/common/prompts/character/perceive.mock +5 -0
- package/data/common/prompts/character/perceive.prompt +160 -0
- package/data/common/prompts/character/progress_character.json +18 -0
- package/data/common/prompts/character/progress_character.mock +4 -0
- package/data/common/prompts/character/progress_character.prompt +74 -0
- package/data/common/prompts/character/system_instruction.prompt +0 -0
- package/data/common/prompts/default/attach_file.prompt +1 -0
- package/data/common/prompts/default/identify.prompt +1 -0
- package/data/common/prompts/default/schema_test.json +28 -0
- package/data/common/prompts/default/schema_test.prompt +10 -0
- package/data/common/prompts/default/system_instruction.prompt +1 -0
- package/data/common/prompts/greeting.json +16 -0
- package/data/common/prompts/greeting.prompt +8 -0
- package/data/common/prompts/illustrator/describe_scene.json +33 -0
- package/data/common/prompts/illustrator/describe_scene.prompt +63 -0
- package/data/common/prompts/illustrator/system_instruction.prompt +9 -0
- package/data/common/prompts/narrator/compact_story.json +0 -0
- package/data/common/prompts/narrator/compact_story.mock +1 -0
- package/data/common/prompts/narrator/compact_story.prompt +17 -0
- package/data/common/prompts/narrator/create_chapter.mock +1 -0
- package/data/common/prompts/narrator/create_chapter.prompt +34 -0
- package/data/common/prompts/narrator/create_plot.json +0 -0
- package/data/common/prompts/narrator/create_plot.mock +11 -0
- package/data/common/prompts/narrator/create_plot.prompt +71 -0
- package/data/common/prompts/narrator/create_story.json +63 -0
- package/data/common/prompts/narrator/create_story.mock +22 -0
- package/data/common/prompts/narrator/create_story.prompt +85 -0
- package/data/common/prompts/narrator/import_plot.json +0 -0
- package/data/common/prompts/narrator/import_plot.mock +11 -0
- package/data/common/prompts/narrator/import_plot.prompt +55 -0
- package/data/common/prompts/narrator/import_story.json +63 -0
- package/data/common/prompts/narrator/import_story.mock +22 -0
- package/data/common/prompts/narrator/import_story.prompt +82 -0
- package/data/common/prompts/narrator/perceive.json +0 -0
- package/data/common/prompts/narrator/perceive.mock +3 -0
- package/data/common/prompts/narrator/perceive.prompt +186 -0
- package/data/common/prompts/narrator/progress_plot.json +0 -0
- package/data/common/prompts/narrator/progress_plot.mock +9 -0
- package/data/common/prompts/narrator/progress_plot.prompt +93 -0
- package/data/common/prompts/narrator/system_instruction.prompt +0 -0
- package/data/common/prompts/pdf_converter/convert_pdf.prompt +45 -0
- package/data/common/prompts/pdf_converter/convert_pdf_page.prompt +55 -0
- package/data/common/prompts/perceive.json +29 -0
- package/data/common/prompts/perceive.prompt +229 -0
- package/data/common/prompts/room_moderator/moderate.json +29 -0
- package/data/common/prompts/room_moderator/moderate.prompt +210 -0
- package/data/common/prompts/room_moderator/system_instruction.prompt +0 -0
- package/data/common/prompts/story_moderator/moderate.json +29 -0
- package/data/common/prompts/story_moderator/moderate.mock +6 -0
- package/data/common/prompts/story_moderator/moderate.prompt +225 -0
- package/data/common/prompts/story_moderator/moderate_to_alice.mock +6 -0
- package/data/common/prompts/story_moderator/moderate_to_bob.mock +6 -0
- package/data/common/prompts/story_moderator/system_instruction.prompt +0 -0
- package/data/common/story_ideas/biblical.json +122 -0
- package/data/common/story_ideas/fantasy.json +82 -0
- package/data/common/story_ideas/historical_fiction.json +82 -0
- package/data/common/story_ideas/science_fiction.json +82 -0
- package/dist/server/src/sdk/briyah.d.ts +1 -0
- package/dist/server/src/sdk/briyah.js +52 -0
- package/package.json +8 -1
- package/.prettierrc +0 -7
- package/eslint.config.js +0 -29
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "The Ember Throne",
|
|
4
|
+
"idea": "A blacksmith's apprentice discovers she can forge weapons imbued with living fire, drawing the attention of a exiled prince who needs her gift to reclaim his stolen kingdom. Together they must cross a war-torn land and learn to trust each other before the usurper's assassins catch up to them."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "The Last Familiar",
|
|
8
|
+
"idea": "A young witch whose magic has mysteriously gone dormant and a wisecracking shape-shifting fox — the last known familiar in the realm — are bound together by an ancient spell neither of them wanted. They must journey to the heart of a dying forest to restore the source of all magic before it fades forever."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "The Cartographer of Forgotten Lands",
|
|
12
|
+
"idea": "A mapmaker who can draw doorways into places that no longer exist and a skeptical knight errant stumble into a kingdom that was supposedly destroyed centuries ago. They must navigate its very much alive — and very hostile — inhabitants to find a way back before the doorway closes behind them."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "Tidebound",
|
|
16
|
+
"idea": "A fisherman's son born with the ability to breathe underwater and a selkie girl trapped in human form must work together to break an ancient curse that is slowly pulling their coastal village beneath the waves. The cure lies deep in an underwater kingdom that neither of them is sure they'll be welcome in."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "The Dragon's Debt",
|
|
20
|
+
"idea": "A young shepherd saves the life of an injured dragon hatchling, only to learn that dragon law now binds them together in a life-debt. With the help of a wandering bard who knows more about dragon lore than she lets on, they must return the hatchling to its mother — a fearsome beast who does not trust humans."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Hollow Crown",
|
|
24
|
+
"idea": "Twin siblings discover they are the secret heirs to a fallen kingdom now ruled by a necromancer. One twin can speak to the dead and the other can silence them, and they must master their opposite gifts and infiltrate the necromancer's court to free their people from an army of the risen."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "The Golem's Garden",
|
|
28
|
+
"idea": "A lonely old enchantress creates a golem to tend her magical garden, but the golem begins developing thoughts and feelings of its own. When a ruthless alchemist arrives to steal the garden's rarest plants, the enchantress and her creation must defend their home — and each other."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Stormcallers",
|
|
32
|
+
"idea": "A headstrong weather mage and a ship captain who despises magic are forced to share a vessel when a supernatural hurricane traps an entire fleet in a deadly stretch of ocean. They must overcome their mutual distrust to calm the storm before it drags every ship to the bottom."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "The Witch Market",
|
|
36
|
+
"idea": "A pickpocket and a runaway apothecary's apprentice discover a hidden night market where witches trade in secrets, curses, and stolen years. When they accidentally purchase a curse meant for someone else, they must navigate the market's treacherous vendors to return it before it takes hold."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "The Wordsmith's Apprentice",
|
|
40
|
+
"idea": "A stammering orphan is taken in by a mysterious scribe whose written words literally become reality. When the scribe is kidnapped by a warlord who wants to weaponize his power, the apprentice and a clever street thief must rescue him before the warlord rewrites the fate of the entire kingdom."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Ironwood",
|
|
44
|
+
"idea": "A ranger sworn to protect an ancient enchanted forest and a lumberjack's daughter who desperately needs its wood to save her starving village find themselves at bitter odds. When a dark blight begins consuming the forest from within, they must set aside their conflict and venture into its corrupted heart together."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "The Lantern Bearer",
|
|
48
|
+
"idea": "A blind lamplighter who can see only by the glow of enchanted lanterns and a fugitive shadow dancer who can vanish into darkness form an unlikely pair in a city plagued by creatures that emerge when the lights go out. They must reach the city's great lighthouse and rekindle it before permanent nightfall descends."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "A Feast for the Fae",
|
|
52
|
+
"idea": "A baker's apprentice accidentally uses fae-touched flour and creates pastries that grant anyone who eats them a single fae ability. A mischievous sprite appears to collect the debt, and together they must retrieve every pastry sold before the unsuspecting townspeople tear the village apart with their new powers."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "The Stone Singers",
|
|
56
|
+
"idea": "A young dwarf who can hear the songs hidden inside stone and an elf ambassador trapped underground by a cave-in must cooperate despite generations of enmity between their peoples. Following the music in the rock, they must find a path to the surface before an ancient creature awakened by the collapse hunts them down."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "Blood and Broomstick",
|
|
60
|
+
"idea": "A vampire cursed to crave sunlight instead of blood and a witch who has lost the ability to fly strike a bargain — each will help the other break their curse. Their quest leads them to a trickster god who offers a cure, but at a price that will test whether their newfound friendship can survive."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "The Moonlit Rebellion",
|
|
64
|
+
"idea": "A werewolf who can control her transformation and a human hunter raised to kill her kind discover that a shadowy guild is capturing werewolves and selling them as weapons of war. They must infiltrate the guild together, each risking betrayal by the world they came from."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "The Clockwork Kingdom",
|
|
68
|
+
"idea": "A tinker's daughter and a wind-up automaton who has somehow gained a soul arrive at a kingdom where all labor is performed by mechanical servants. When the automatons begin waking up one by one, the two must decide — do they help the machines claim their freedom, or prevent a revolution that could destroy both sides?"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "The Bone Oracle",
|
|
72
|
+
"idea": "A grave keeper's son who can read futures in the bones of the dead and a traveling warrior seeking her lost brother form a reluctant partnership. The bones keep pointing them toward a forbidden mountain where an exiled oracle holds the answers — and a terrible bargain."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "Wings of Ash",
|
|
76
|
+
"idea": "A grounded griffin rider whose mount was killed in battle and a fledgling griffin rejected by its own kind find each other in the aftermath of a devastating war. Together with a field medic trying to heal them both, they must bond and take to the skies again to stop a second wave of invaders approaching the kingdom's last stronghold."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "The Wishing Well War",
|
|
80
|
+
"idea": "Two rival village children — one from the hill folk and one from the valley folk — both toss a coin into a magic wishing well at the same moment, accidentally merging their wishes into a single chaotic spell. They must journey together to the well's ancient guardian and undo the wish before their tangled magic reshapes the countryside beyond repair."
|
|
81
|
+
}
|
|
82
|
+
]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Ashes of Vesuvius",
|
|
4
|
+
"idea": "Two best friends, a young potter and a fisherman's daughter, notice strange rumblings from Mount Vesuvius days before the eruption that will destroy Pompeii. They must convince their skeptical families to flee before it's too late."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "The Plague Wardens",
|
|
8
|
+
"idea": "A traveling monk and a headstrong village healer clash over how to treat the sick when the Black Plague arrives at a remote English abbey in 1348. They must set aside their differences and work together to save who they can while the world crumbles around them."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Ronin's Road",
|
|
12
|
+
"idea": "A disgraced samurai and his young apprentice find themselves on the losing side after the Battle of Sekigahara in 1600. They must disguise themselves and navigate a countryside full of enemies to reach safe harbor before the new shogunate's soldiers find them."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "The Liberty Conspiracy",
|
|
16
|
+
"idea": "A printer's apprentice and a British soldier's rebellious daughter stumble upon a plot to sabotage the Continental Congress in 1776 Philadelphia. They must decide where their loyalties lie and find a way to expose the conspiracy before independence is lost."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Westward Bound",
|
|
20
|
+
"idea": "Three strangers — a widowed schoolteacher, a formerly enslaved blacksmith, and a teenage runaway — join the same wagon train on the Oregon Trail in 1845. They must form an unlikely alliance to survive river crossings, harsh terrain, and growing tensions within the caravan."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "The Pharaoh's Architects",
|
|
24
|
+
"idea": "A brother and sister, both skilled stonecutters, are conscripted to help build a great pyramid in ancient Egypt around 2500 BC. They must navigate palace intrigue, brutal working conditions, and a ruthless overseer to protect each other and earn their freedom."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "The Silk Road Gambit",
|
|
28
|
+
"idea": "A young Chinese merchant and a Persian translator join a caravan along the Silk Road in the 7th century. When bandits scatter their group, the two must rely on each other to cross unforgiving deserts and hostile territories to reach Constantinople with their cargo intact."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Shields of Sparta",
|
|
32
|
+
"idea": "Two young Spartan soldiers, one born to nobility and one the son of a helot, are assigned to the same unit on the eve of the Persian invasion in 480 BC. They must overcome deep class divisions and prove their worth to each other as the Battle of Thermopylae approaches."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "The Viking's Vow",
|
|
36
|
+
"idea": "A Norse shieldmaiden and a captured Irish monk form an uneasy truce aboard a Viking longship sailing toward an unknown coast around 900 AD. They must cooperate to survive a mutiny led by a power-hungry raider who threatens to take control of the expedition."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "The Mapmaker's Daughter",
|
|
40
|
+
"idea": "A Portuguese mapmaker's daughter stows away on one of Magellan's ships in 1519, and a young cabin boy discovers her secret. Together they must keep her identity hidden while navigating storms, starvation, and a crew on the brink of mutiny during the first circumnavigation of the globe."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Chains Unwound",
|
|
44
|
+
"idea": "Two enslaved people on a Southern plantation in 1855 — a field worker and a house servant — learn of a secret route on the Underground Railroad. They must trust each other completely as they make a harrowing escape north, pursued by relentless bounty hunters."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "The Trenches Between Us",
|
|
48
|
+
"idea": "A British medic and a German soldier are trapped together in a collapsed dugout during the Battle of the Somme in 1916. They must overcome the hatred of war and work together to dig their way out before the tunnel floods."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "Dust and Dignity",
|
|
52
|
+
"idea": "A teenage girl and her stubborn grandfather refuse to abandon their Oklahoma farm during the Dust Bowl of 1934. They must battle relentless dust storms, failing crops, and predatory land buyers to hold onto everything their family has built."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "The Court of the Sun King",
|
|
56
|
+
"idea": "A young composer and a rebellious noblewoman form a secret alliance at the court of Louis XIV in 1680s Versailles. They must navigate deadly palace politics and jealous rivals to stage a performance that could win them the King's favor — or cost them everything."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "The Great Wall Builders",
|
|
60
|
+
"idea": "A conscripted farmer and an exiled scholar are forced to labor on the Great Wall of China under the Qin Dynasty around 210 BC. They must survive a cruel commander and hatch a daring escape plan before the brutal winter claims their lives."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Fire Over London",
|
|
64
|
+
"idea": "A baker's apprentice and a street-smart orphan girl witness the first sparks of the Great Fire of London in 1666. As the city burns around them, they must rescue trapped neighbors and find a way across the river to safety before the flames cut off every escape route."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "The Last Samurai's Student",
|
|
68
|
+
"idea": "An aging samurai and a headstrong teenage girl defy tradition when he agrees to train her in swordsmanship during the final days of the samurai era in 1870s Japan. They must face down local warlords resisting modernization while grappling with the end of everything they know."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "Whispers of the Resistance",
|
|
72
|
+
"idea": "A French café owner and a downed British pilot must work together to evade Nazi patrols in occupied Paris in 1943. With the help of a fearless teenage courier, they must make contact with the Resistance and find a way out of the city before the Gestapo closes in."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "The Inca's Warning",
|
|
76
|
+
"idea": "A young Inca messenger and a skeptical priestess receive troubling reports of strange pale men arriving on their shores in 1532. They must race across the empire to warn the Sapa Inca before the Spanish conquistadors reach the heart of Tawantinsuyu."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Across the Ice",
|
|
80
|
+
"idea": "Two members of Shackleton's Antarctic expedition — a seasoned navigator and a young photographer on his first voyage — are stranded when the Endurance is crushed by pack ice in 1915. They must keep the crew's spirits alive and help devise a seemingly impossible plan to reach civilization."
|
|
81
|
+
}
|
|
82
|
+
]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "The Last Signal",
|
|
4
|
+
"idea": "A deep-space communications officer and a skeptical engineer aboard a lonely relay station detect a repeating signal from a star system thought to be devoid of life. They must decode the message and decide whether to respond before their corporate employers silence the discovery forever."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "Colony Zero",
|
|
8
|
+
"idea": "Two teenagers — the daughter of the colony's governor and the son of a maintenance worker — discover that the life-support systems on humanity's first Mars colony are failing faster than anyone admits. They must work together across class lines to find a solution before the adults' political infighting dooms everyone."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "The Memory Merchant",
|
|
12
|
+
"idea": "A black-market memory dealer and a grieving detective form an uneasy partnership in a future city where human memories can be extracted, bought, and sold. They must track down a stolen memory that holds the key to a murder — and confront what happens when identity itself becomes a commodity."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "Adrift",
|
|
16
|
+
"idea": "A cargo pilot and her android co-pilot are knocked off course by a solar storm and left drifting toward uncharted space with dwindling supplies. They must navigate an increasingly tense relationship — and a growing philosophical divide about what it means to survive — to find their way home."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "The Terraform Gamble",
|
|
20
|
+
"idea": "A bioengineer and a indigenous-rights advocate clash over the ethics of terraforming a seemingly barren planet that may harbor microbial life. When sabotage threatens the project, they must set aside their bitter rivalry to save the crew and determine the planet's true nature."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Lightspeed Orphans",
|
|
24
|
+
"idea": "Two siblings board a near-lightspeed vessel as children, but due to time dilation, everyone they knew on Earth has aged decades by the time they arrive at their destination. They must build new lives on a colony world full of strangers who see them as relics of a forgotten age."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "The Quarantine Directive",
|
|
28
|
+
"idea": "A starship medic and a paranoid security chief discover an unknown pathogen spreading through their generation ship midway through a 200-year voyage. They must contain the outbreak without causing a panic that could tear the fragile shipboard society apart."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Echoes in the Code",
|
|
32
|
+
"idea": "A young programmer discovers the digital ghost of her late grandmother embedded in an obsolete AI system scheduled for deletion. With the help of a rogue archivist, she must extract the echo before the servers are wiped — and decide whether preserving it is an act of love or something more troubling."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "The Gravity Thieves",
|
|
36
|
+
"idea": "A scrappy salvage diver and a disgraced physicist living on a run-down space station discover that someone is secretly siphoning the station's artificial gravity generators. They must follow the trail through black-market dealers and corrupt officials before the station literally falls apart."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "First Contact Protocol",
|
|
40
|
+
"idea": "A xenolinguist and a military officer are the first humans to encounter an alien species on a remote moon. Their conflicting approaches — communication versus containment — threaten to turn first contact into humanity's greatest triumph or its deadliest mistake."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "The Clone Clause",
|
|
44
|
+
"idea": "A factory worker discovers she is one of hundreds of illegal clones created by a megacorporation, and a journalist risks everything to help her expose the truth. They must evade corporate enforcers and navigate a society that doesn't consider clones to be people."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Beneath the Ice",
|
|
48
|
+
"idea": "A submarine pilot and a marine biologist are sent to explore a vast ocean discovered beneath the frozen surface of Europa. When their vessel is damaged by something massive moving in the deep, they must survive long enough to transmit their findings back to the surface team."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "The Time Tax",
|
|
52
|
+
"idea": "In a future where citizens pay taxes in years of their lifespan, a young auditor and a charismatic rebel discover that the wealthy have found a way to cheat the system. They must gather proof and expose the scheme before the authorities — or the elite — silence them permanently."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "Starborn Refugees",
|
|
56
|
+
"idea": "A retired freighter captain and a resourceful teenage stowaway lead a convoy of refugee ships fleeing a dying solar system. They must hold the fragile fleet together through resource shortages, internal power struggles, and the vast emptiness between stars."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "The Uplift Experiment",
|
|
60
|
+
"idea": "A primatologist and her lab assistant form a bond with a genetically enhanced gorilla who has gained human-level intelligence. When the corporation funding the experiment decides to weaponize the research, the three must escape the facility and find somewhere safe to hide."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Wired Worlds",
|
|
64
|
+
"idea": "A teenager addicted to a hyper-realistic virtual world and a burned-out systems administrator discover a glitch that reveals the game is harvesting players' neural data. They must work from opposite sides of the screen — one inside, one outside — to shut it down before millions of minds are compromised."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "The Seed Vault",
|
|
68
|
+
"idea": "A botanist and a combat-hardened escort must cross a post-apocalyptic wasteland to deliver the last known cache of viable crop seeds to a distant settlement. Every faction they encounter wants the seeds for themselves, and trust between the two travelers is fragile at best."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "Solar Winds",
|
|
72
|
+
"idea": "Two rival solar-sail racers — a cocky veteran and a gifted newcomer — are forced to team up when a catastrophic solar flare disables their vessels mid-race near Mercury. They must jury-rig a single working ship from the wreckage and ride the radiation wave to safety."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "The Ancestor Simulation",
|
|
76
|
+
"idea": "A philosopher and a hacker discover undeniable proof that their reality is a simulation run by a post-human civilization. They must decide whether to reveal the truth to the world or protect the comfortable lie — all while the simulation's overseers begin to take notice."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Outpost Epsilon",
|
|
80
|
+
"idea": "A grizzled station commander and a freshly transferred technician are the only two people staffing a deep-space early warning outpost when they detect an unidentified object on a collision course with Earth. With communications jammed, they must find a way to send a warning across the void before time runs out."
|
|
81
|
+
}
|
|
82
|
+
]
|
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.Briyah = void 0;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
4
39
|
const ai_factory_service_1 = require("../ai/ai-factory.service");
|
|
5
40
|
const openai_service_1 = require("../ai/LLM/openai.service");
|
|
6
41
|
const anthropic_service_1 = require("../ai/LLM/anthropic.service");
|
|
@@ -82,10 +117,27 @@ class Briyah {
|
|
|
82
117
|
console.warn('[Briyah] Already initialized');
|
|
83
118
|
return;
|
|
84
119
|
}
|
|
120
|
+
this.seedCommonData();
|
|
85
121
|
this.publishedAgentsService.onModuleInit();
|
|
86
122
|
this.userServiceManager.onModuleInit();
|
|
87
123
|
this.initialized = true;
|
|
88
124
|
}
|
|
125
|
+
seedCommonData() {
|
|
126
|
+
const dataPath = this.configService.get('SERVER_DATA_PATH') || path.resolve(process.cwd(), 'data');
|
|
127
|
+
const userCommonDir = path.resolve(dataPath, 'common');
|
|
128
|
+
const packageCommonDir = path.resolve(__dirname, '../../../../data/common');
|
|
129
|
+
if (!fs.existsSync(packageCommonDir)) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
for (const subdir of ['config', 'prompts', 'story_ideas']) {
|
|
133
|
+
const source = path.resolve(packageCommonDir, subdir);
|
|
134
|
+
const target = path.resolve(userCommonDir, subdir);
|
|
135
|
+
if (!fs.existsSync(source))
|
|
136
|
+
continue;
|
|
137
|
+
fs.mkdirSync(target, { recursive: true });
|
|
138
|
+
fs.cpSync(source, target, { recursive: true, force: false, errorOnExist: false });
|
|
139
|
+
}
|
|
140
|
+
}
|
|
89
141
|
getAppService(userId) {
|
|
90
142
|
if (!this.initialized) {
|
|
91
143
|
throw new Error('[Briyah] Must call init() before getAppService()');
|
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "briyah",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Briyah multi-agent AI SDK",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/server/src/sdk/index.js",
|
|
7
7
|
"types": "dist/server/src/sdk/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/",
|
|
10
|
+
"data/common/config",
|
|
11
|
+
"data/common/prompts",
|
|
12
|
+
"data/common/story_ideas",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
8
15
|
"exports": {
|
|
9
16
|
".": {
|
|
10
17
|
"import": "./dist/server/src/sdk/index.js",
|
package/.prettierrc
DELETED
package/eslint.config.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const tseslint = require('@typescript-eslint/eslint-plugin');
|
|
2
|
-
const tsparser = require('@typescript-eslint/parser');
|
|
3
|
-
|
|
4
|
-
module.exports = [
|
|
5
|
-
{
|
|
6
|
-
ignores: ['dist/**', 'node_modules/**', 'data/**', 'coverage/**'],
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
files: ['**/*.ts'],
|
|
10
|
-
languageOptions: {
|
|
11
|
-
parser: tsparser,
|
|
12
|
-
parserOptions: {
|
|
13
|
-
project: './tsconfig.json',
|
|
14
|
-
tsconfigRootDir: __dirname,
|
|
15
|
-
sourceType: 'module',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
plugins: {
|
|
19
|
-
'@typescript-eslint': tseslint,
|
|
20
|
-
},
|
|
21
|
-
rules: {
|
|
22
|
-
...tseslint.configs['recommended'].rules,
|
|
23
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
24
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
25
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
26
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
];
|