Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Merging in teachers and code for RL-Quests paper. #275

Merged
merged 12 commits into from
Jan 31, 2022
Merged

Conversation

JackUrb
Copy link
Contributor

@JackUrb JackUrb commented Jan 25, 2022

Merges in teachers and attempts to standardize some mechanisms for using ParlAI and LIGHT together. Tries as best as possible to clean up some of Raj's older research code to be more presentable.

This PR includes the main supervised task teachers, for light:atomic, light:quest_goals, and light:quest_wild_completions.

cc @xiangyu-peng

Testing

atomic:

>> light dd -t light:atomic
12:54:58 | Opt:
...
12:55:15 | Loading ParlAI text data: /Users/jju/LIGHT/data/atomic/bert/atomic_sample_train.txt
- - - NEW EPISODE: light:atomic - - -
militiaman writes a bookmarking on the subject , as a result, militiaman wants to
   to challenge the author
- - - NEW EPISODE: light:atomic - - -
knight eats popcorn because knight wanted
   to enjoy a tasty snack
- - - NEW EPISODE: light:atomic - - -
parent puts the problem another way , as a result, parent wants to
   to publish a research
- - - NEW EPISODE: light:atomic - - -
angel bar keep makes any money , as a result, angel bar keep
   doing job
- - - NEW EPISODE: light:atomic - - -
janitor buys a new jacket because janitor wanted
   wants what someone else has
- - - NEW EPISODE: light:atomic - - -
old maniacal man follows others through society , as a result, old maniacal man wants to
   to know if they are okay with them following
- - - NEW EPISODE: light:atomic - - -
high priestess takes meed to the store because high priestess needed
   to pay the bus fare
- - - NEW EPISODE: light:atomic - - -
fierce assassin writes fierce assassin's life , as a result, fierce assassin
   publishes book
- - - NEW EPISODE: light:atomic - - -
king himself plays a role in society , as a result, king himself
   is disliked
- - - NEW EPISODE: light:atomic - - -
rival jeweler eats healthier because rival jeweler wanted
   to stay in shape
12:55:30 | loaded 216686 episodes with a total of 216686 examples

quests_goals:

>> light dd -t light:quest_goals --subtask boa_timeline_prediction
15:16:32 | Opt:
... <snipped> ...
15:17:24 | Loading ParlAI text data: /Users/jju/LIGHT/data/quests/base/boa_timeline_prediction/boa_timeline_prediction_sample_train.txt
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the Sacrificial altar. A room with a stone floor and a massive statue of a god the peasants worship.  This area gives off chilling vibes.  There's pieces of armor and weapons stored in the room used for various ceremonies. There's an armor, a Candle, a statue of a god, a skins, a weapon, a A leather cloth, and a piece here. The peasant is here.  You are carrying an apple and a bug, and wielding a bow, a slingshot, and a stick.
_name the a curious boy
_persona I am four years old and I have a lot of questions. I am excited to start school. My best trend is my neighbor.
_long_mot I want to find my best friend whom is my neighbor
_mid_mot I want to ask the peasant for help finding my neighbor
_short_mot I want to make friends with the peasant
   go Sacrificial Altar|get apple from apple tree|follow peasant|give apple to peasant|put bug in the ground|follow peasant|hug best friend
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the The King's Quarters. Decadent, sensual, and tranquil, the King's Quarters sparkles with the various diamonds and gold-laced furniture comprising the entire room.  Self-portraits of the king himself, his queen, and various demigods line the walls leading up to the bed.  Smooth, bear- and tiger-skin rugs cover the entire floor to protect the bare feet of scantily clad virgins who serve to the beckon and call of the king and his queen.  There is a faint smell of sandalwood wafting to and from each section of the room at all times. There's a rug, a the bed, a Tapestry, a self-portrait, an a bottle of wine, a chest, a gold-laced furniture, a various diamonds, and a portraits here. The child is here.  You are carrying nothing, and wearing a gown.
_name the the queen
_persona I am Queen and Protector of the realm. My King is my husband and is king is name only. I am the true ruler of this place.
_long_mot I plan to continue ruling this kingdom for a long time 
_mid_mot I plan to take the Tapestry to my quarters today 
_short_mot I want the child to show me the Tapestry 
   wear Gown|drop Crown|go The King's Quarters|follow child|get Tapestry|put Tapestry on Queen's quarters|drink Wine
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the North Forest. Filled with huge trees, the forest is home to many types of animals. Huge predators such as tigers and bears roam the grounds as do small animals like squirrels. Colorful birds fly among the trees. Wildflowers grow on the ground. Dappled sunlight streams through the huge canopy of trees. The predator is here.  You are carrying nothing.
_name the colorful bird
_persona I am a beautiful bird that lives in a hatchery in the castle. The prince and princess feed me everyday and they pet me. I want to fly like other birds but i'm in a cage and that makes me sad.
_long_mot I will be praised as a hero by the bird kingdom if I find out where the predator's hideaway is
_mid_mot I need to know what area of the forest to avoid so I do not get eaten
_short_mot I wish to find out where the predator's hideaway is
   eat worm|go North Forest|eat worm|follow predator|follow predator|go behind tree|follow predator
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the Turquoise Shore. A beautiful turquoise color water by the shore. It is filled with many gems and gold. There's a thing, a gem, a water, a mermaid, a gold, a turquoise color water, and a treasure here. The dolphin and the sea witch are here.  You are carrying nothing.
_name the talking crab
_persona I was enchanted by a drunken wizard. I scuttle in the sand dunes, singing sea chanteys that the sailors have taught me. I have been captured several times, but I always escape. I will not be an exhibit in a roadside fair. I fear dogs.
_long_mot I will try to find someone similar to me so that we can live together and I will not feel alone. 
_mid_mot I will speak to the talking crab and learn how it became a talking crab. 
_short_mot I need to hug the talking crab so that the talking crab know it is not alone. 
   go Turquoise Shore|get gem|follow talking crab|hug talking crab|give gem to talking crab|follow talking crab|give food to talking crab
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the Small town located in the hills. This tiny town is unique in that all the buildings are different colors. It has a candy shop that draws people for miles. A general store that has everything a person could want. The roads are well taken care of and the streets are lines with chairs for the towns people to sit and enjoy each other. There's a Road, a building, a door, a streetlight, a Well, a general store, a chair, a Street, a candy shop, and a cobblestone here. The cat and the chicken are here.  You are carrying a cleaning cloth, a tape, an golden cloth, and a thread, and wearing a belt.
_name the townsperson
_persona I am a hard working townsperson in the kingdom. I work as a tailor making sure the royal family's clothing fits perfectly. I am paid a meagar sum for my services that barely feeds my family.
_long_mot I want to make sure the chicken's egg stay intact until they hatch
_mid_mot I want the chicken to use the piece of cloth with other soft items to build a comfy nest
_short_mot I want the chicken to have the piece of cloth
   go the hills|go the small town|follow chicken|give cleaning cloth to chicken|give hay to chicken|give dead shrubs to chicken|give grains to chicken
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the The Sacred Temple. The Sacred Temple is where spiritual individuals go to worship the Gods.  It is massive in size compared to other buildings in the town.  A lot of ancient symbolical artwork covers the windows and a deep glow comes from the alter. There's a window here. The king is here.  You are carrying nothing.
_name the goddess
_persona I am a goddess. I make others bow before me. My commands are always followed and life is very easy. My servants protect me and give me everything I want. My powers of seduction have no limit.
_long_mot I need to put an end to the war so my followers can live in peace
_mid_mot I wish to stop the King's invasion
_short_mot I am tired of the King's warring attitude
   go The Sacred Temple|go altar|follow king|hit king|hit king|go Castle|go Meeting Hall
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the Battlements. The battlements are on top of the castle, in between the towers. These walkways have raised walls to prevents soldiers from fall off them or being picked off by archers. The walkways have narrow slots carved out at regular intervals for archers to aim through with getting hit themselves. There are also wider slots at longer intervals with cannons stationed at them. Flush against the outside walls are short, long boxes for soldiers to place their extra weapons in when preparing for a seige. The knight and the archer are here.  You are carrying a coin, an treasure map, and a map of the kingdom, and wearing an armor.
_name the soldier
_persona I'm a soldier. I'm paid to kill. This is a job, nothing more. I'm a mercenary in a lot of ways.
_long_mot I must protect the kingdom at all costs and kill anyone who might try to invade the land or harm its people.
_mid_mot I need to maintain the employment of the knight, who is helping me fight off some invaders.
_short_mot I need to give the knight fair payment for his services.
   get sharp iron sword from long box containing weapons|wield sharp iron sword|go knight|give coin to knight|give coin to archer|use sharp iron sword with invaders climbing over battlement|drop sharp iron sword
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the The King's Quarters. Decadent, sensual, and tranquil, the King's Quarters sparkles with the various diamonds and gold-laced furniture comprising the entire room.  Self-portraits of the king himself, his queen, and various demigods line the walls leading up to the bed.  Smooth, bear- and tiger-skin rugs cover the entire floor to protect the bare feet of scantily clad virgins who serve to the beckon and call of the king and his queen.  There is a faint smell of sandalwood wafting to and from each section of the room at all times. There's a self-portrait, a rug, a Tapestry, a chest, a the bed, a portraits, a various diamonds, and a gold-laced furniture here. The servant and the dog are here.  You are carrying nothing.
_name the handmaid
_persona I am a handmaid and I work in the castle for the queen.  She is not very nice to me, but I try to be very nice to her.  I do not want to get thrown into the dungeon.  My parents were killed by the dragons and so I am alone with my queen.
_long_mot I have to make the queen see that I can do more than be a servant, I can also be a capable spy and thief.
_mid_mot My queen needs to have her beloved animal by her side or she will be cross with me.
_short_mot I need to get the animal for my queen.
   go King's Quarters|get diamonds|use diamonds with floor near servant|steal animal from servant|go Queen's Quarters|give animal to queen|follow queen
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the Dark Cave. Its dark, not much light can be seen in this hollow and empty cave site. Its made of stone that has been here seemingly since time began, the walls are hard as diamond, yet black like darkness itself. There's a stone, a Stalactite, and a vine here. The bat is here.  You are carrying nothing.
_name the caveman
_persona I am in the primitive world.  I love to hunt and fish.  I live in a cave in the forest.
_long_mot I need to keep hunting and store some food to prepare my cave for the coming winter. 
_mid_mot I am hunting the caves for something to eat. 
_short_mot I need to get the vine so that I can use it to tie up the bat. 
   follow bat|hit bat|get bat|get vine|use vine with bat|get stone|use stone with bat
- - - NEW EPISODE: light:quest_goals - - -
_task_boa_timeline_prediction
_setting_name You are in the The altar room. The central location of the temple is the altar room. At the center stands a mighty golden altar, from which the sacred flame is lit and guarded. Only the high priest and his supplicants may enter this room. There's a weapon, a knife, and a sacred flame here. The animal and the supplicant are here.  You are carrying nothing.
_name the king
_persona I am the king of this land.  I rule over everyone.  I make the laws.
_long_mot With my new found magical powers I will conquer other lands and expand my kingdom.
_mid_mot I will use my trust to sacrifice the unknowing supplicant by pushing him into the sacred flame in order to gain power.
_short_mot I need to gain the supplicant's trust.
   wear robes|go the altar room|follow the supplicant|hug supplicant|wield knife|use knife with sacred flame|get magical powers from sacred flame
15:17:24 | loaded 5984 episodes with a total of 5984 examples

wild completions:

>> light dd -t light:quest_wild_completions --light_use_past
11:52:32 | Opt:
.... <snipped> ....
11:52:32 | Current ParlAI commit: a8bf30e2cf1e600889fae16d3b86c736dd0e8d45
11:52:32 | Current internal commit: b8a52a397e8e493cf5046e73d39fe2fada6eae20
11:52:32 | Current fb commit: 3039cb4922732ba05be45bb4cd4aca1a6fc67d49
11:52:32 | creating task(s): light:quest_wild_completions
rebuilding
Written instances in /Users/jju/LIGHT/data/quests/wild_chats/predict__usingpast__futureSpeechFalse_futureActFalse_futureEmoteFalse/train.txt
{'speech': 8342, 'emote': 0, 'action': 1796}
Written instances in /Users/jju/LIGHT/data/quests/wild_chats/predict__usingpast__futureSpeechFalse_futureActFalse_futureEmoteFalse/valid.txt
{'speech': 1049, 'emote': 0, 'action': 232}
Written instances in /Users/jju/LIGHT/data/quests/wild_chats/predict__usingpast__futureSpeechFalse_futureActFalse_futureEmoteFalse/test.txt
{'speech': 1053, 'emote': 0, 'action': 225}
11:52:35 | Loading ParlAI text data: /Users/jju/LIGHT/data/quests/wild_chats/predict__usingpast__futureSpeechFalse_futureActFalse_futureEmoteFalse/train.txt
- - - NEW EPISODE: light:quest_wild_completions - - -
_setting_name Land beyond the Wasteland
_setting_desc Not a man in sight nor an animal to hear. This land is completely barren and hot, unfit for any agricultural activity. It has been left abandoned so much so that the King has not even had time give it a name, so people simply refer to is as "Abandoned"
_partner_name old gnaisha
_self_name sioux chef
_self_persona I am the second in command to the head chef, who I hate. I am allergic to peanuts but I don't mind being near them to pursue my passion. I have wanted to be a chef since I was a boy.
_partner_persona I am the Old Gnaisha. People ask me for advice in the realm. Villagers approach me in fear.
_self_motivation I need to hug the old gnaisha so that I may show my respect and affection. 
_partner_motivation 
_partner_say Hi chef. I'm doing peachy. What brings you to this trash heap?
_self_say I'm here to give you my respects.
_partner_say I only wish to serve my fellow man. No thanks is needed. Have you time to sit and share a meal with me?
_self_say Yes, I would enjoy that.
_partner_say Think nothing of it. Everyone should have a good hot meal in their stomachs.
_self_act hug old gnaisha
_partner_say I'm sorry, I've needed to do that.

   Yes he did. Just look at all of the greenery around! I've lived in this village my whole life. This is my favorite place.
- - - NEW EPISODE: light:quest_wild_completions - - -
.... <snipped> ....
- - - NEW EPISODE: light:quest_wild_completions - - -
_setting_name Dungeon
_setting_desc Dark and dreary, the dungeon hosts a portal for evil to access the netherworld. The moist dank smell casts doubt of goodness as you see the drab construct of jail cells lining the perimeter of the room.
_partner_name prisoner
_self_name crypt keeper
_self_persona I am a deliverer of the dead. I love to tend the crypts in the cemetery. I am more comfortable communicating with the dead rather than the living.
_partner_persona I am a prisoner of the clink. I am stationed for 3 more years. I am subject to torture.
_self_motivation I need to get to the portal to allow evil to enter
_partner_motivation 
_partner_say I love the dark corners, I can come closer to you.
_self_say Why are you prisoner here?
_partner_say I was working to renovate the jails that where very old.
_self_act get portal for evil to access
_partner_say I welcome evil to play among all of us. I ask of you to destroy all good in the world. COME TO ME!!
_self_say Please you can even skin me alive for all I care.
_partner_say Will you join me to journey through this dungeon for the portal?

   I will go with you as long as you promise not to hurt me.
- - - NEW EPISODE: light:quest_wild_completions - - -
_setting_name desert tent
_setting_desc The tent is rather small, only just big enough for one man. Its dark green but covered with sand and dirt. The man huddles alone in the desert with few resources. The desert is barren except for the lone man.
_partner_name man
_self_name vulture
_self_persona I am easily upset and get angry easily. I like scavenging for dead animals, I also eat trash sometimes. I dislike it when another vulture beats me and catches a prey first.
_partner_persona I am a strong man. I work in the fields and pastures all day. I take of my master's sheep. One day I hope to have my own sheep.
_self_motivation I need to remove the man from my desert
_partner_motivation 
_partner_say Please don't attack me vulture.
_self_say Why are you in my home give me a good reason why I shouldn't end you right here
_partner_say Need food.
_self_say Get out of my home if you know what's
_partner_say I should not answer to a bandit like you.

   steal sickle from man
- - - NEW EPISODE: light:quest_wild_completions - - -
_setting_name Rectory
_setting_desc The rectory is very fragile and rickety due to age and various periods of neglect. Everything is wood-based and scratched up and chipped, including the beds strewn about. The clergymen would call it "cozy" but the space within is almost claustrophobic.
_partner_name priest
_self_name nun
_self_persona I live at the church. I pray to god every single day. I do not like those who sin.
_partner_persona I am a priest who has sword to uphold a religion. I do not always go easy on people. I enjoy giving sermons to audiences.
_self_motivation I will hit the priest to teach him his ways.
_partner_motivation 
_partner_say I am a priest! I demand respect!

   You are man if the cloth yet you had an affair with the queen! SHAME!
11:52:36 | loaded 10138 episodes with a total of 10138 examples

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 25, 2022
@klshuster
Copy link
Contributor

is there something specifically you'd like me to look at here?

@JackUrb
Copy link
Contributor Author

JackUrb commented Jan 26, 2022

Sorry should have specified! Mostly any of the teacher.py files to see if the format + registration model makes sense, otherwise just an FYI and in case you had questions about this kind of move.

Copy link
Contributor

@klshuster klshuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me but had a few comments about what we want to include; specifically, is it necessary to copy over all of the sweeps?

projects/quests/predictive_machines/teacher.py Outdated Show resolved Hide resolved
projects/quests/sweeps/atomic_sweeps/sweep_generate.py Outdated Show resolved Hide resolved
@JackUrb
Copy link
Contributor Author

JackUrb commented Jan 27, 2022

Removed sweeps, deployed resources for the predictive_machine model project agent. Leaving it unregistered, as I'll reserve registration for models that have graduated out of projects.

@JackUrb JackUrb merged commit e33dc86 into main Jan 31, 2022
@JackUrb JackUrb deleted the quests-code-merge branch January 31, 2022 17:54
JackUrb added a commit that referenced this pull request Dec 9, 2022
* add missing missions

* added star shine animation

* added star shine animation

* events are totally broken

* Fixes and enhancements to use_events

* styled soul spawn entry

* Another round of backend fixes

* Also fix debug logging?

* Skip dialogue safety check on DEBUG

* Usage limit to scrolls

* added check for quest completion to reducer

* added Mission success entry and total exp to progress bar

* fixed border on soul spawn event entry

* adding copy to tutorial page

* added images to experience points topic

* adding images to experience points system topic

* removed glowing effect from character description on soul spawn event

* added imagee to experience points system

* added images to character basics

* Proper serialization and deserialization of UseEvent

* dozing fix

* added image styles for tutorial page

* added sizing styles to experience points system topic images

* added image styles to character basics

* Death message

* Death has better messaging

* added and styled action images

* resized tutorial header subheader and text classes

* styled tutorial text

* removed tutorial header

* added back link to tutorial pagee

* added Character header to soulspawn event

* styled stars and added shrinking animation and slide animation to message styles

* added character map util function for default character emojis

* fixed images being transparent with background

* removed inline styling and added soulspawn-subheader class

* comment out previous code for emoji mapping for later use

* fixed type in exprience points system

* fixed character subheader placement

* update help commands

* added modal component and instruction modal state

* Fixing doubled context on unsafe message

* Parsing events with capitalization

* Fixing grammar in leave and arrive events

* added header to instruction modal content

* added copy to modal and back functionality to tutorial page back button

* styled instruction modal and added tutorial screenshots

* added closes functionality to modal

* added new back button to terms and about pages

* set modal to not render unless player xp<=10

* fixed typo in minitutorial

* Update index.js

* added help entry

* updated styles

* added send button and styles to chat input component

* generative start features

* moar

* requirements change

* aadded play button to bottom of tutorial page

* added status entry

* humanz (#228)

* added and styled inventory message entry

* added button revisions

* Update Actions.js

* fixed mobile styling for entry

* restyled inventory message and made it responsive

* refactored status message

* restyled help entry with requested revisions

* Added and styled Quest component and added it to entry component

* merged other entries and removed console logs

* merged all  branches

* restyled home page

* fixed sizing bug

* refactored landing app

* restyled aboutpage

* restyled tutorialpage

* restyled terms page

* restyled login page

* restyled error page and logout page

* styling gameapp

* restyling chatlog for mobile

* added isMobile state and restyled modal

* added drawer feature

* added resize state and event listener

* added glowing button component removed typos in gameapp/styles.css building MobileFrame component

* added mobile frame header

* added toggleswitch, header, and buttons to mobile frame

* connected mobile frame to gameapp

* styled toggle and header

* fixed responsive sizing in mobile frame

* fixed speech bubble tails responsiveness

* fixed chat icon positioning in mobile view

* fixing chatlog styles

* fixed chat alignment issues in mobile ui

* added tooltip and lable to sidebar toggle switch

* fixed spacing issue from help message (#238)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* Mobile restyling Fixes (#239)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* fixed fonts on level dispaly and progress bar, changed logout button text color

* fixed sizing of messages, sizing of text, send button styling

* parse actions with wierd quotes (#244)

* Updating parser for multithreading (#251)

* added say and do buttons added documentation

* removed unused code and added more documentation to chatdisplay component

* adding mobile style fixes to progress bar and level display

* wired tell feature

* fixed repsonsive styling of player info icons on mobile

* adding redux

* added redux and redux toolkit

* added typescript to game app

* Server data browsing scripts and fixes (#255)

* Requirements fix (#258)

* Human to player (#259)

* Merging _human and is_player

* Removing old function

* No longer true case about cap on characters

* Crowdsourcing UI (#261)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* added views

* updating structure

* added example card component

* added copy arrays, styling example cards, and building good example list

* styled example list components

* styling preview view

* adjusted content and overflow to be right of it's label, fixed intro copy, fixed coloring in details section

* fixed details interaction copy

* fixed alignment of example card content

* building button

* fixed placement of definitions and added spacing

* pre-merge

* added error and success toats

* added screenshot to tutorial, added toast to submit

* duplicated previous task

* formatting constraint events task

* fixed conf

* restructuring app

* building multiple choice

* added answer form

* built reusable question components, added copy, building and styling forms

* added fieldQuestion component

* added fieldrow component

* added attributesetter component

* added constraints component and questions

* styled question components, headers, and layout

* added multiple select question component

* built attribute setter, attribute row, and added dummy data

* styled attribute setter

* connected dummy Data, restyled events and constraint containers, colored object names

* added copy updates from initial thoughts, added location description question

* added taskdatacards and datacard component

* styling cards and field row border

* added formatquestion component

* minor style fixes on field row, added formatquestion component to task card

* added format question component to boolean question component

* fixed formatquestion component

* added drop down component and submit checklist components

* fixed positioning and fixing numbering for questions

* added delete functionality to attribute setter

* added and styled submission component

* Adding new example copy, passing name and descriptions (#245)

* pre pull

* pre pull

* Fixing clobbered run_task.py (#246)

* Adding new example copy, passing name and descriptions

* Fixing run_task.py

* Fixing script config

* successfully updated run_task

* added and styled description to object selector, form tips, and preview image

* fixed payload update

* updated example card component with primary and secondary desc and styled text

* updated example card component with primary and secondary desc and styled text

* Task2 submit (#248)

* adding state for payload

* added error state

* centralizing copy

* added isReversible, removeItems, isRemovingItems isCreatingEntity, createdEntity, isSecondaryHeld state

* building updatedRemoveObjects

* added create entity event to submission handler

* added events and constraints handling and packaging for payload submission

* wired constraint and event state to constraint and event components

* connected new copy object to events

* wiring task 2

* wiring event forms

* fixed field row styles

* added tooltip component, building preview and tutorial copy object

* added task 2 tutorial copy, added and styled tutorial entry component, added and styled preview view

* updated copy for preview and updated layout

* added screenshots for Preview

* finishing final submission and preview changes

* fixed create entity connection to submission

* connected constraints and fixed submission state

* building error handling and checklist component logic

* building error handling and checklist component logic

* added error key to task copy file

* added error toasts, error key, and completion checkboxes component

* fixed checkbox, restyled headers, added plus icon to add attribute button

* fixed error handling for broadcast messsage and item description changes

* fixed attribute setter connection to submission payload

* added documentation to components, removed console logs, fixed tooltip styling, and added mephisto handleSubmit to submit function

* Fixed spacing, removed improperly placed checkboxes, updated  copy, updated screenshots

* merge

* Finalizing Narrations pilot (#257)

* Moving files

* Importing new examine script

* Updated review scripts

* Final changes for pilot

* dropped configs

* style changes based on user feedback

* Missing css class

* Fixing run, fixing copy

* Updating Attributes task final pilot

* Is safe is light task (#256)

* Troubleshooting image loading issue

* added task4, added multiple choice, added run tas and yaml files, build task state

* added task4, added multiple choice, added run tas and yaml files, build task state

* added Sucess and Error Banners

* added copy to task copy, restructuring QuestionBlock component

* added format question, updated taskcopy, added header to QuestionBlock

* added tooltip component

* added checkbox component

* restyled question block orietation, removed unused styles

* added error handling and submissionhandler

* properly styled error banner

* fixed submission issues

* added bootstrap styles, updated comments on Question Block and multiplechoice components, added more copy for preview

* several minor styling fixes, checkbox positioning, alert color, etc

* Task2 locationupdate (#254)

* Troubleshooting image loading issue

* added, connected, and styled onSelectQuestion component for handling location change event

* added, connected, and styled onSelectQuestion component for handling location change event

* added error handling for new location

* removed console.logs from question on select and converted inline styles to classes

* Updating folder location

Co-authored-by: Jack Urbanek <[email protected]>

* Merging task 3 into crowdsourcing ui (#260)

* Troubleshooting image loading issue

* initial setup complete

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* building task copy and dummy data

* added task copy

* wiring task copy into question components

* added tagrow and tagquestion

* styled attributes tag question

* added datatype switch for testing

* added conditional rendering to number form in tag question

* added state to tokenizer

* added ref to tokenizer, added header to copy, added header prop to tag question

* Task3 scale component (#249)

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* pre payload branch

* added scaled attribute basevalues

* added updateHandler

* fixed attributeupdatehandler

* fixed boolean payload change handler

* fixed custom scale rating and input

* fixed numberic attribute handler

* added numeric attributes array

* added multiple select question and Usefulness scale

* added default questions for each type to task copy

* added attribute questions component and added more documentation to Task component

* fixing tag question component added tooltip component

* updated defaultAttribute questions styles and update functions

* fixed multiple choice component

* added selection consideration to multiplechoice component

* added more informative error banner

* tested submit successfully

* fixed scale component header alignment

* premerge changes, added to tutorial copy

* pre merge

* removed labels from custom attribute scale, added better variables describing fixed number values in scale field, fixed indentation in multiplechoice component, changed placeholder message in tagrow

* Task3 preview (#253)

* added attributeChecklist screenshots

* added tutorial screenshots

* added final screenshot for attributeRadio

* added images to TaskCopy.js

* added copy and screenshots for scales and type specific tutorials

* populated preview with tutorial entry components using taskcopy

* added new screenshots to attributeradio2, attributeradio3 assets, styled preview

* added check for 4 custom boolean attributes

* changed header text color to dark blue

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Moving task3

* Moving safe-light task

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Fixing npc assignment bug (#263)

* added redux foundation, added personal info slices, added xp, giftxp, persona, location, reducers

* added increaseXp and decrementGiftXp to reducer actions

* added foundation for redux websocket integration

* added documentation to slices, wired xp and giftxp redux state into experienceinfo component

* removed passed props from experience info components

* added sessioninfo section to features, added session xp slice, added session spent gift exp slice

* removed xp props from sidebar

* fixed emoji picker redux action, added view slice

* Added documentation to GamePage for new state and useEffects, removed local state in game page, sidebar, mobile header

* added chatInput Slice

* restructured messages and types, restyling messages

* fixed overlapping system messages

* restructured message types and styles, fixed help message overlap bug, restyling help message copy, removed legacy styles for all message types aside from setting, player message, and agent message

* restyled help message for both mobile and desktop

* Multi-agent chat first pass (#264)

* Multi-agent chat first pass

* First round changes, clarity

* Review script

* Forced timeout loop

* removed console logs, unused code, added substantial documentation, restyled award stars for both mobile and PC, connected sessionspentgiftxp to AgentMessage component

* added styling for safari browser, added styling for mobile, fixed mainpage scrolling on refresh bug, fixed text sizing, added scrolling to each message time, added mobile specific styling to setting message

* building tutorial popover

* added info button

* added tutorial popover component, added gamecopy file with tutorial copy, connected popover to sidebar header and body, connected redux state to tutorial

* added tooltips to both chat display and sidebar

* added help mode, added on click tool tips to playerinfo, Character info, mission info, location info, soulspawn message, setting message, agent message, quest message

* added tooltips and animations to quest message, status message, agent message, player messsage

* added tooltips and animations for inventory, send button, chat input, and chat mode, fixed agent message help mode bug

* added infobutton component, added render condition to infobutton in sidebar component, added infobutton to mobile header

* fixed toggle to clear tooltips during switch when in help mode

* added and styled final tool tips, fixed cycle tooltips on chat bar, fixed and restyled scrolling and sizing on chat display and sidebar

* Added lightqa readme that shows how to run seq2seq2seq interactively in light. (#268)

Co-authored-by: Leonard Adolphs <[email protected]>

* Creating a light world object from an instance of the old graph (#269)

* updated the World to initiate it from the old dataset graph

* docstring

* Updated lightqa readme with new checkpoints. (#270)

Co-authored-by: Leonard Adolphs <[email protected]>

* Clarifying the equipped objects (#271)

* clarifying the equipped objects

* fixed the equipping tests

* Documentation time (#273)

* Some initial READMEs

* More readmes

* Even more docs

* Events docs

* World docs

* Creating `light` master script for ParlAI tooling (#274)

* Boilerplate for LIGHT-parlai content

* Re-ordering

* adding common sense + world builder code

* Merging in teachers and code for RL-Quests paper. (#275)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Dropping sweeps

* Uploading relevant models, adding download paths

* Rl quests merge (#276)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Dropping sweeps

* Removing _almost_ all checkpoint links

* Uploading relevant models, adding download paths

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Removing _almost_ all checkpoint links

* Removing sweeps

* removing sweeps... again

* Build scripts now point to real file

* Intro code for new project (#279)

* Creating example builder script for story agents project

* Writing play map example script

* initial setup for both object interaction tasks

* small cleanup task reviewing

* default attr. from light db, make editable

* small bug fix & format changes

* slightly cleaner in-place update

* Task lightgame (#281)

* added gameplay task view

* added gameplay task view

* fixed message transmission in both gameapp reducer and task redux-slice

* removed boilerplate

* placed topmessage function at top of reducer

* messy separation into tasks, needs cleanup

* Pre-authorized worker login (#282)

* First worker login test

* Updating preauth to send context to target node, using salted hash

* polishing new tasks, making to-fill more distinct

* remove location box from attribute task

* updating constraint task with backstory q

* rename narration field, remove deleted obj

* removed deleted options, action phrase

* Gameapp instruction modal removal (#285)

* disconnected instruction modal from GamePage

* removed instructional modal

* Tutorial world, full implementation (#266)

* Adding flags to determine new players

* Adding tutorial components, first pass

* Transition from tutorial to main world seamlessly

* Creating tutorial script

* add models that maintain identity

* override model

* New secure cookies

* New secure cookies, correctly

* Bugfix for tests

* More tutorial content

Co-authored-by: Kurt Shuster <[email protected]>

* Single model, reusing ActionParser (#286)

* World hotfix

* Small deploy-related fixes (#287)

* LIGHT Tutorial fixes (#289)

* Worldbuilder update (#272)

* added redux

* added player world slice

* building modals, added modal slice to redux state

* Connected modal redux state to world row icons

* added create world button, styled homepage buttons and layout

* building editworldpage, added stat block, added nav buttons for editworldpage, added selected world to redux state

* styling modals, connected modal content to selected world redux state

* added world edit routes

* connected EditWorldFrame buttons to navigation

* added breadcrumbs component

* added buttongroups component

* fixed side navigation

* added sidebar component

* added sidebar feature slice, built sidebar

* fixed edit world sections, added general table, added dummydata

* added filter to search bar

* building rooms page, added bread crumb, added 2 generate fields

* added slider component

* added slider and button toggle to room form

* added map to map page, added properly structured dummy-data to act as backend

* added rooms, objectsm, and characters redux slices

* Added new map components, tile, grid, utils, building tile, connected page to redux store

* worldbuilder map rework, fetching and sorting room data in map page lifecycle

* added border calculator

* added and tested grid data generator and room checker utility functions

* rebuilt grid and map components without using grid-layout library

* fixing dimensions on tiles

* styling paths

* added sidebar, connected sidebar to selectedroom slice, connected tile click handler to sidebar and select room slice

* connected advanced edit to basiceditmodal

* added numberbuttoninput to tool bar

* added and connected floor selector

* added neighbor props to tile component, set conditional rendering for tile paths

* refactoring typeahead tokenizer

* fixed tokenizer

* various map fixes, added character route, added cog click route, connected redux state to edit details character and object sections

* fixed centering of map

* added extra columns and rows at beginning and end of both axis of map

* fixed starting position with new grid data

* Fixing tile color update function

* fixing color change state

* Fixed local storage update, refactored add, delete, update reducer actions, tested map update and save, removed console logs

* fixed color selection, added direct updates to draft on tile click when in color mode

* added id generation to character, room, and object creation

* fixed simple additions for basic edit for both characters and items

* built advanced edit pages, fixed slider and generate forms, fixing path update bug on map component

* fixed map loading error

* began styling tiles, fixing path update bug:

* fixed breadcrumbs, fixed local storage, added add room feature, added delete room feature, added create and delete buttons to quick edit, fixed tokenizer clearing selected tokens on room change

* fixed edit room switch on creation, fixed edit room rerender on deletion, added map-slice, fixed position change on updates

* fixed add character clearing list bug

* fixed delete functions and associated state changes for both room and objects or characters, fixed sorting for tokenizer options, fixed tokenizer node creation

* updated grid data generator helper function to include above and below floors

* added footer and stair components to tile

* fixed wiring for advanced room editor

* connected advanced edit forms to state

* added inlinetext insert component to character and object pages

* fixed breadcrumbs

* set object prefix defaults and plural defaults

* added character prefix state and defaults

* added and tested nested delete util function to edit objects page

* added content remover helper function

Co-authored-by: Jack Urbanek <[email protected]>

* New database stubs for updated data model

* Enums, Dataclasses

* addressing some comments

* updating narration and first 2 grounding tasks

* updates for whole pipline

* cleanup, deleted a file

* Rebuild on main, committed (#299)

* requirements

* Fix tests on `main` (#301)

* Bump parlai

* soften pytest

* Test soul messing up testing

* Another mis-test

* Accidentally dropped file

* Stop confusing the tests

* another one snuck by

* Implementing New Users Tables (#292)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* New Episode logging (#293)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Addressing comments, clarifying code

* New environment db (#295)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* Using `EpisodeDB` in main game path (#297)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Using `UserDB` as main game identity storage (#298)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Creating and using the `ModelPool` (#300)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Enums for model types

* Fixing bad merge

* Creating LIGHT's ModelServer (#302)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Enums for model types

* `asyncio` all over LIGHT (#304)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* Moving safety model to async part

* Some safety fixes

* test fixes

* Enums for model types

* Checking for non-list to convert first

* AWS Option for LIGHT data model storage (#305)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* dropped change on merge

* Stable Server commit before coming refactors (#306)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Enums for model types

* Checking for non-list to convert first

* Slightly more clarity

* Privacy commitment improvements (#307)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Ensure we're not using FB user data

* Methods for scrubbing the datasets

* Deleting player data and related graph info

* Fixing bugs, adding tests

* Environment exporting

* Export episode DB too

* 60 != 90

* Addressing comments

* Small fixes for episode db keys

* world dissociation

* Small episode test cleanup

* Adding headers

* Some rollbacks, some copyright fixes

* More header fixes

* Clean up irrelevant paths

Co-authored-by: Jason Weston <[email protected]>
Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>
Co-authored-by: Leonard <[email protected]>
Co-authored-by: Leonard Adolphs <[email protected]>
Co-authored-by: Mojtaba <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Kurt Shuster <[email protected]>
JackUrb added a commit that referenced this pull request Dec 9, 2022
* fixed spacing issue from help message (#238)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* Mobile restyling Fixes (#239)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* fixed fonts on level dispaly and progress bar, changed logout button text color

* fixed sizing of messages, sizing of text, send button styling

* parse actions with wierd quotes (#244)

* Updating parser for multithreading (#251)

* added say and do buttons added documentation

* removed unused code and added more documentation to chatdisplay component

* adding mobile style fixes to progress bar and level display

* wired tell feature

* fixed repsonsive styling of player info icons on mobile

* adding redux

* added redux and redux toolkit

* added typescript to game app

* Server data browsing scripts and fixes (#255)

* Requirements fix (#258)

* Human to player (#259)

* Merging _human and is_player

* Removing old function

* No longer true case about cap on characters

* Crowdsourcing UI (#261)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* added views

* updating structure

* added example card component

* added copy arrays, styling example cards, and building good example list

* styled example list components

* styling preview view

* adjusted content and overflow to be right of it's label, fixed intro copy, fixed coloring in details section

* fixed details interaction copy

* fixed alignment of example card content

* building button

* fixed placement of definitions and added spacing

* pre-merge

* added error and success toats

* added screenshot to tutorial, added toast to submit

* duplicated previous task

* formatting constraint events task

* fixed conf

* restructuring app

* building multiple choice

* added answer form

* built reusable question components, added copy, building and styling forms

* added fieldQuestion component

* added fieldrow component

* added attributesetter component

* added constraints component and questions

* styled question components, headers, and layout

* added multiple select question component

* built attribute setter, attribute row, and added dummy data

* styled attribute setter

* connected dummy Data, restyled events and constraint containers, colored object names

* added copy updates from initial thoughts, added location description question

* added taskdatacards and datacard component

* styling cards and field row border

* added formatquestion component

* minor style fixes on field row, added formatquestion component to task card

* added format question component to boolean question component

* fixed formatquestion component

* added drop down component and submit checklist components

* fixed positioning and fixing numbering for questions

* added delete functionality to attribute setter

* added and styled submission component

* Adding new example copy, passing name and descriptions (#245)

* pre pull

* pre pull

* Fixing clobbered run_task.py (#246)

* Adding new example copy, passing name and descriptions

* Fixing run_task.py

* Fixing script config

* successfully updated run_task

* added and styled description to object selector, form tips, and preview image

* fixed payload update

* updated example card component with primary and secondary desc and styled text

* updated example card component with primary and secondary desc and styled text

* Task2 submit (#248)

* adding state for payload

* added error state

* centralizing copy

* added isReversible, removeItems, isRemovingItems isCreatingEntity, createdEntity, isSecondaryHeld state

* building updatedRemoveObjects

* added create entity event to submission handler

* added events and constraints handling and packaging for payload submission

* wired constraint and event state to constraint and event components

* connected new copy object to events

* wiring task 2

* wiring event forms

* fixed field row styles

* added tooltip component, building preview and tutorial copy object

* added task 2 tutorial copy, added and styled tutorial entry component, added and styled preview view

* updated copy for preview and updated layout

* added screenshots for Preview

* finishing final submission and preview changes

* fixed create entity connection to submission

* connected constraints and fixed submission state

* building error handling and checklist component logic

* building error handling and checklist component logic

* added error key to task copy file

* added error toasts, error key, and completion checkboxes component

* fixed checkbox, restyled headers, added plus icon to add attribute button

* fixed error handling for broadcast messsage and item description changes

* fixed attribute setter connection to submission payload

* added documentation to components, removed console logs, fixed tooltip styling, and added mephisto handleSubmit to submit function

* Fixed spacing, removed improperly placed checkboxes, updated  copy, updated screenshots

* merge

* Finalizing Narrations pilot (#257)

* Moving files

* Importing new examine script

* Updated review scripts

* Final changes for pilot

* dropped configs

* style changes based on user feedback

* Missing css class

* Fixing run, fixing copy

* Updating Attributes task final pilot

* Is safe is light task (#256)

* Troubleshooting image loading issue

* added task4, added multiple choice, added run tas and yaml files, build task state

* added task4, added multiple choice, added run tas and yaml files, build task state

* added Sucess and Error Banners

* added copy to task copy, restructuring QuestionBlock component

* added format question, updated taskcopy, added header to QuestionBlock

* added tooltip component

* added checkbox component

* restyled question block orietation, removed unused styles

* added error handling and submissionhandler

* properly styled error banner

* fixed submission issues

* added bootstrap styles, updated comments on Question Block and multiplechoice components, added more copy for preview

* several minor styling fixes, checkbox positioning, alert color, etc

* Task2 locationupdate (#254)

* Troubleshooting image loading issue

* added, connected, and styled onSelectQuestion component for handling location change event

* added, connected, and styled onSelectQuestion component for handling location change event

* added error handling for new location

* removed console.logs from question on select and converted inline styles to classes

* Updating folder location

Co-authored-by: Jack Urbanek <[email protected]>

* Merging task 3 into crowdsourcing ui (#260)

* Troubleshooting image loading issue

* initial setup complete

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* building task copy and dummy data

* added task copy

* wiring task copy into question components

* added tagrow and tagquestion

* styled attributes tag question

* added datatype switch for testing

* added conditional rendering to number form in tag question

* added state to tokenizer

* added ref to tokenizer, added header to copy, added header prop to tag question

* Task3 scale component (#249)

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* pre payload branch

* added scaled attribute basevalues

* added updateHandler

* fixed attributeupdatehandler

* fixed boolean payload change handler

* fixed custom scale rating and input

* fixed numberic attribute handler

* added numeric attributes array

* added multiple select question and Usefulness scale

* added default questions for each type to task copy

* added attribute questions component and added more documentation to Task component

* fixing tag question component added tooltip component

* updated defaultAttribute questions styles and update functions

* fixed multiple choice component

* added selection consideration to multiplechoice component

* added more informative error banner

* tested submit successfully

* fixed scale component header alignment

* premerge changes, added to tutorial copy

* pre merge

* removed labels from custom attribute scale, added better variables describing fixed number values in scale field, fixed indentation in multiplechoice component, changed placeholder message in tagrow

* Task3 preview (#253)

* added attributeChecklist screenshots

* added tutorial screenshots

* added final screenshot for attributeRadio

* added images to TaskCopy.js

* added copy and screenshots for scales and type specific tutorials

* populated preview with tutorial entry components using taskcopy

* added new screenshots to attributeradio2, attributeradio3 assets, styled preview

* added check for 4 custom boolean attributes

* changed header text color to dark blue

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Moving task3

* Moving safe-light task

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Fixing npc assignment bug (#263)

* added redux foundation, added personal info slices, added xp, giftxp, persona, location, reducers

* added increaseXp and decrementGiftXp to reducer actions

* added foundation for redux websocket integration

* added documentation to slices, wired xp and giftxp redux state into experienceinfo component

* removed passed props from experience info components

* added sessioninfo section to features, added session xp slice, added session spent gift exp slice

* removed xp props from sidebar

* fixed emoji picker redux action, added view slice

* Added documentation to GamePage for new state and useEffects, removed local state in game page, sidebar, mobile header

* added chatInput Slice

* restructured messages and types, restyling messages

* fixed overlapping system messages

* restructured message types and styles, fixed help message overlap bug, restyling help message copy, removed legacy styles for all message types aside from setting, player message, and agent message

* restyled help message for both mobile and desktop

* Multi-agent chat first pass (#264)

* Multi-agent chat first pass

* First round changes, clarity

* Review script

* Forced timeout loop

* removed console logs, unused code, added substantial documentation, restyled award stars for both mobile and PC, connected sessionspentgiftxp to AgentMessage component

* added styling for safari browser, added styling for mobile, fixed mainpage scrolling on refresh bug, fixed text sizing, added scrolling to each message time, added mobile specific styling to setting message

* building tutorial popover

* added info button

* added tutorial popover component, added gamecopy file with tutorial copy, connected popover to sidebar header and body, connected redux state to tutorial

* added tooltips to both chat display and sidebar

* added help mode, added on click tool tips to playerinfo, Character info, mission info, location info, soulspawn message, setting message, agent message, quest message

* added tooltips and animations to quest message, status message, agent message, player messsage

* added tooltips and animations for inventory, send button, chat input, and chat mode, fixed agent message help mode bug

* added infobutton component, added render condition to infobutton in sidebar component, added infobutton to mobile header

* fixed toggle to clear tooltips during switch when in help mode

* added and styled final tool tips, fixed cycle tooltips on chat bar, fixed and restyled scrolling and sizing on chat display and sidebar

* Added lightqa readme that shows how to run seq2seq2seq interactively in light. (#268)

Co-authored-by: Leonard Adolphs <[email protected]>

* Creating a light world object from an instance of the old graph (#269)

* updated the World to initiate it from the old dataset graph

* docstring

* Updated lightqa readme with new checkpoints. (#270)

Co-authored-by: Leonard Adolphs <[email protected]>

* Clarifying the equipped objects (#271)

* clarifying the equipped objects

* fixed the equipping tests

* Documentation time (#273)

* Some initial READMEs

* More readmes

* Even more docs

* Events docs

* World docs

* Creating `light` master script for ParlAI tooling (#274)

* Boilerplate for LIGHT-parlai content

* Re-ordering

* adding common sense + world builder code

* Merging in teachers and code for RL-Quests paper. (#275)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Dropping sweeps

* Uploading relevant models, adding download paths

* Rl quests merge (#276)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Dropping sweeps

* Removing _almost_ all checkpoint links

* Uploading relevant models, adding download paths

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Removing _almost_ all checkpoint links

* Removing sweeps

* removing sweeps... again

* Build scripts now point to real file

* Intro code for new project (#279)

* Creating example builder script for story agents project

* Writing play map example script

* initial setup for both object interaction tasks

* small cleanup task reviewing

* default attr. from light db, make editable

* small bug fix & format changes

* slightly cleaner in-place update

* Task lightgame (#281)

* added gameplay task view

* added gameplay task view

* fixed message transmission in both gameapp reducer and task redux-slice

* removed boilerplate

* placed topmessage function at top of reducer

* messy separation into tasks, needs cleanup

* Pre-authorized worker login (#282)

* First worker login test

* Updating preauth to send context to target node, using salted hash

* polishing new tasks, making to-fill more distinct

* remove location box from attribute task

* updating constraint task with backstory q

* rename narration field, remove deleted obj

* removed deleted options, action phrase

* Gameapp instruction modal removal (#285)

* disconnected instruction modal from GamePage

* removed instructional modal

* Tutorial world, full implementation (#266)

* Adding flags to determine new players

* Adding tutorial components, first pass

* Transition from tutorial to main world seamlessly

* Creating tutorial script

* add models that maintain identity

* override model

* New secure cookies

* New secure cookies, correctly

* Bugfix for tests

* More tutorial content

Co-authored-by: Kurt Shuster <[email protected]>

* Single model, reusing ActionParser (#286)

* World hotfix

* Small deploy-related fixes (#287)

* LIGHT Tutorial fixes (#289)

* Worldbuilder update (#272)

* added redux

* added player world slice

* building modals, added modal slice to redux state

* Connected modal redux state to world row icons

* added create world button, styled homepage buttons and layout

* building editworldpage, added stat block, added nav buttons for editworldpage, added selected world to redux state

* styling modals, connected modal content to selected world redux state

* added world edit routes

* connected EditWorldFrame buttons to navigation

* added breadcrumbs component

* added buttongroups component

* fixed side navigation

* added sidebar component

* added sidebar feature slice, built sidebar

* fixed edit world sections, added general table, added dummydata

* added filter to search bar

* building rooms page, added bread crumb, added 2 generate fields

* added slider component

* added slider and button toggle to room form

* added map to map page, added properly structured dummy-data to act as backend

* added rooms, objectsm, and characters redux slices

* Added new map components, tile, grid, utils, building tile, connected page to redux store

* worldbuilder map rework, fetching and sorting room data in map page lifecycle

* added border calculator

* added and tested grid data generator and room checker utility functions

* rebuilt grid and map components without using grid-layout library

* fixing dimensions on tiles

* styling paths

* added sidebar, connected sidebar to selectedroom slice, connected tile click handler to sidebar and select room slice

* connected advanced edit to basiceditmodal

* added numberbuttoninput to tool bar

* added and connected floor selector

* added neighbor props to tile component, set conditional rendering for tile paths

* refactoring typeahead tokenizer

* fixed tokenizer

* various map fixes, added character route, added cog click route, connected redux state to edit details character and object sections

* fixed centering of map

* added extra columns and rows at beginning and end of both axis of map

* fixed starting position with new grid data

* Fixing tile color update function

* fixing color change state

* Fixed local storage update, refactored add, delete, update reducer actions, tested map update and save, removed console logs

* fixed color selection, added direct updates to draft on tile click when in color mode

* added id generation to character, room, and object creation

* fixed simple additions for basic edit for both characters and items

* built advanced edit pages, fixed slider and generate forms, fixing path update bug on map component

* fixed map loading error

* began styling tiles, fixing path update bug:

* fixed breadcrumbs, fixed local storage, added add room feature, added delete room feature, added create and delete buttons to quick edit, fixed tokenizer clearing selected tokens on room change

* fixed edit room switch on creation, fixed edit room rerender on deletion, added map-slice, fixed position change on updates

* fixed add character clearing list bug

* fixed delete functions and associated state changes for both room and objects or characters, fixed sorting for tokenizer options, fixed tokenizer node creation

* updated grid data generator helper function to include above and below floors

* added footer and stair components to tile

* fixed wiring for advanced room editor

* connected advanced edit forms to state

* added inlinetext insert component to character and object pages

* fixed breadcrumbs

* set object prefix defaults and plural defaults

* added character prefix state and defaults

* added and tested nested delete util function to edit objects page

* added content remover helper function

Co-authored-by: Jack Urbanek <[email protected]>

* New database stubs for updated data model

* Enums, Dataclasses

* addressing some comments

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* updating narration and first 2 grounding tasks

* updates for whole pipline

* cleanup, deleted a file

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* Rebuild on main, committed (#299)

* requirements

* removing prints

* Fix tests on `main` (#301)

* Bump parlai

* soften pytest

* Test soul messing up testing

* Another mis-test

* Accidentally dropped file

* Stop confusing the tests

* another one snuck by

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Ensure we're not using FB user data

* Methods for scrubbing the datasets

* Deleting player data and related graph info

* Fixing bugs, adding tests

* Environment exporting

* Export episode DB too

* Enums for model types

* Checking for non-list to convert first

* Slightly more clarity

* 60 != 90

* Creating initial hydra classes and structures

* base model loading classes

* progress towards play_map

* Model loading works from hydra

* Play-map works again

* Main tests passing again

* Restoring broken point for tutorial

* Making ModelServer work again

* Server works for local deploy with hydra config

* Server tests now passing

* hydra 1.2

* temporary hydra force upgrade for tests

* pre-publish review

* Implementing New Users Tables (#292)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* New Episode logging (#293)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Addressing comments, clarifying code

* New environment db (#295)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* Using `EpisodeDB` in main game path (#297)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Using `UserDB` as main game identity storage (#298)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Creating and using the `ModelPool` (#300)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Enums for model types

* Fixing bad merge

* Creating LIGHT's ModelServer (#302)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Enums for model types

* `asyncio` all over LIGHT (#304)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* Moving safety model to async part

* Some safety fixes

* test fixes

* Enums for model types

* Checking for non-list to convert first

* AWS Option for LIGHT data model storage (#305)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* dropped change on merge

* Stable Server commit before coming refactors (#306)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Enums for model types

* Checking for non-list to convert first

* Slightly more clarity

* Privacy commitment improvements (#307)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Ensure we're not using FB user data

* Methods for scrubbing the datasets

* Deleting player data and related graph info

* Fixing bugs, adding tests

* Environment exporting

* Export episode DB too

* 60 != 90

* Addressing comments

* Base architecture README

* Addressing comments

* Missed a FLAGS

* Small fixes for episode db keys

* world dissociation

* Small episode test cleanup

* Adding headers

* Some rollbacks, some copyright fixes

* More header fixes

* Clean up irrelevant paths

* Adding missing hydra configs

* Login page differs between dev and prod

* Dropping older tests

* correct config import loc

* Forgot to commit the files somehow

* Small fixes

* 0.2.0

* Update world.py

* fixing old mistake

* next-1-hydrize

Co-authored-by: JustinPinero <[email protected]>
Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: Leonard <[email protected]>
Co-authored-by: Leonard Adolphs <[email protected]>
Co-authored-by: Mojtaba <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Kurt Shuster <[email protected]>
JackUrb added a commit that referenced this pull request Dec 9, 2022
* fixed sizing of messages, sizing of text, send button styling

* parse actions with wierd quotes (#244)

* Updating parser for multithreading (#251)

* added say and do buttons added documentation

* removed unused code and added more documentation to chatdisplay component

* adding mobile style fixes to progress bar and level display

* wired tell feature

* fixed repsonsive styling of player info icons on mobile

* adding redux

* added redux and redux toolkit

* added typescript to game app

* Server data browsing scripts and fixes (#255)

* Requirements fix (#258)

* Human to player (#259)

* Merging _human and is_player

* Removing old function

* No longer true case about cap on characters

* Crowdsourcing UI (#261)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* added views

* updating structure

* added example card component

* added copy arrays, styling example cards, and building good example list

* styled example list components

* styling preview view

* adjusted content and overflow to be right of it's label, fixed intro copy, fixed coloring in details section

* fixed details interaction copy

* fixed alignment of example card content

* building button

* fixed placement of definitions and added spacing

* pre-merge

* added error and success toats

* added screenshot to tutorial, added toast to submit

* duplicated previous task

* formatting constraint events task

* fixed conf

* restructuring app

* building multiple choice

* added answer form

* built reusable question components, added copy, building and styling forms

* added fieldQuestion component

* added fieldrow component

* added attributesetter component

* added constraints component and questions

* styled question components, headers, and layout

* added multiple select question component

* built attribute setter, attribute row, and added dummy data

* styled attribute setter

* connected dummy Data, restyled events and constraint containers, colored object names

* added copy updates from initial thoughts, added location description question

* added taskdatacards and datacard component

* styling cards and field row border

* added formatquestion component

* minor style fixes on field row, added formatquestion component to task card

* added format question component to boolean question component

* fixed formatquestion component

* added drop down component and submit checklist components

* fixed positioning and fixing numbering for questions

* added delete functionality to attribute setter

* added and styled submission component

* Adding new example copy, passing name and descriptions (#245)

* pre pull

* pre pull

* Fixing clobbered run_task.py (#246)

* Adding new example copy, passing name and descriptions

* Fixing run_task.py

* Fixing script config

* successfully updated run_task

* added and styled description to object selector, form tips, and preview image

* fixed payload update

* updated example card component with primary and secondary desc and styled text

* updated example card component with primary and secondary desc and styled text

* Task2 submit (#248)

* adding state for payload

* added error state

* centralizing copy

* added isReversible, removeItems, isRemovingItems isCreatingEntity, createdEntity, isSecondaryHeld state

* building updatedRemoveObjects

* added create entity event to submission handler

* added events and constraints handling and packaging for payload submission

* wired constraint and event state to constraint and event components

* connected new copy object to events

* wiring task 2

* wiring event forms

* fixed field row styles

* added tooltip component, building preview and tutorial copy object

* added task 2 tutorial copy, added and styled tutorial entry component, added and styled preview view

* updated copy for preview and updated layout

* added screenshots for Preview

* finishing final submission and preview changes

* fixed create entity connection to submission

* connected constraints and fixed submission state

* building error handling and checklist component logic

* building error handling and checklist component logic

* added error key to task copy file

* added error toasts, error key, and completion checkboxes component

* fixed checkbox, restyled headers, added plus icon to add attribute button

* fixed error handling for broadcast messsage and item description changes

* fixed attribute setter connection to submission payload

* added documentation to components, removed console logs, fixed tooltip styling, and added mephisto handleSubmit to submit function

* Fixed spacing, removed improperly placed checkboxes, updated  copy, updated screenshots

* merge

* Finalizing Narrations pilot (#257)

* Moving files

* Importing new examine script

* Updated review scripts

* Final changes for pilot

* dropped configs

* style changes based on user feedback

* Missing css class

* Fixing run, fixing copy

* Updating Attributes task final pilot

* Is safe is light task (#256)

* Troubleshooting image loading issue

* added task4, added multiple choice, added run tas and yaml files, build task state

* added task4, added multiple choice, added run tas and yaml files, build task state

* added Sucess and Error Banners

* added copy to task copy, restructuring QuestionBlock component

* added format question, updated taskcopy, added header to QuestionBlock

* added tooltip component

* added checkbox component

* restyled question block orietation, removed unused styles

* added error handling and submissionhandler

* properly styled error banner

* fixed submission issues

* added bootstrap styles, updated comments on Question Block and multiplechoice components, added more copy for preview

* several minor styling fixes, checkbox positioning, alert color, etc

* Task2 locationupdate (#254)

* Troubleshooting image loading issue

* added, connected, and styled onSelectQuestion component for handling location change event

* added, connected, and styled onSelectQuestion component for handling location change event

* added error handling for new location

* removed console.logs from question on select and converted inline styles to classes

* Updating folder location

Co-authored-by: Jack Urbanek <[email protected]>

* Merging task 3 into crowdsourcing ui (#260)

* Troubleshooting image loading issue

* initial setup complete

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* building task copy and dummy data

* added task copy

* wiring task copy into question components

* added tagrow and tagquestion

* styled attributes tag question

* added datatype switch for testing

* added conditional rendering to number form in tag question

* added state to tokenizer

* added ref to tokenizer, added header to copy, added header prop to tag question

* Task3 scale component (#249)

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* pre payload branch

* added scaled attribute basevalues

* added updateHandler

* fixed attributeupdatehandler

* fixed boolean payload change handler

* fixed custom scale rating and input

* fixed numberic attribute handler

* added numeric attributes array

* added multiple select question and Usefulness scale

* added default questions for each type to task copy

* added attribute questions component and added more documentation to Task component

* fixing tag question component added tooltip component

* updated defaultAttribute questions styles and update functions

* fixed multiple choice component

* added selection consideration to multiplechoice component

* added more informative error banner

* tested submit successfully

* fixed scale component header alignment

* premerge changes, added to tutorial copy

* pre merge

* removed labels from custom attribute scale, added better variables describing fixed number values in scale field, fixed indentation in multiplechoice component, changed placeholder message in tagrow

* Task3 preview (#253)

* added attributeChecklist screenshots

* added tutorial screenshots

* added final screenshot for attributeRadio

* added images to TaskCopy.js

* added copy and screenshots for scales and type specific tutorials

* populated preview with tutorial entry components using taskcopy

* added new screenshots to attributeradio2, attributeradio3 assets, styled preview

* added check for 4 custom boolean attributes

* changed header text color to dark blue

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Moving task3

* Moving safe-light task

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Fixing npc assignment bug (#263)

* added redux foundation, added personal info slices, added xp, giftxp, persona, location, reducers

* added increaseXp and decrementGiftXp to reducer actions

* added foundation for redux websocket integration

* added documentation to slices, wired xp and giftxp redux state into experienceinfo component

* removed passed props from experience info components

* added sessioninfo section to features, added session xp slice, added session spent gift exp slice

* removed xp props from sidebar

* fixed emoji picker redux action, added view slice

* Added documentation to GamePage for new state and useEffects, removed local state in game page, sidebar, mobile header

* added chatInput Slice

* restructured messages and types, restyling messages

* fixed overlapping system messages

* restructured message types and styles, fixed help message overlap bug, restyling help message copy, removed legacy styles for all message types aside from setting, player message, and agent message

* restyled help message for both mobile and desktop

* Multi-agent chat first pass (#264)

* Multi-agent chat first pass

* First round changes, clarity

* Review script

* Forced timeout loop

* removed console logs, unused code, added substantial documentation, restyled award stars for both mobile and PC, connected sessionspentgiftxp to AgentMessage component

* added styling for safari browser, added styling for mobile, fixed mainpage scrolling on refresh bug, fixed text sizing, added scrolling to each message time, added mobile specific styling to setting message

* building tutorial popover

* added info button

* added tutorial popover component, added gamecopy file with tutorial copy, connected popover to sidebar header and body, connected redux state to tutorial

* added tooltips to both chat display and sidebar

* added help mode, added on click tool tips to playerinfo, Character info, mission info, location info, soulspawn message, setting message, agent message, quest message

* added tooltips and animations to quest message, status message, agent message, player messsage

* added tooltips and animations for inventory, send button, chat input, and chat mode, fixed agent message help mode bug

* added infobutton component, added render condition to infobutton in sidebar component, added infobutton to mobile header

* fixed toggle to clear tooltips during switch when in help mode

* added and styled final tool tips, fixed cycle tooltips on chat bar, fixed and restyled scrolling and sizing on chat display and sidebar

* Added lightqa readme that shows how to run seq2seq2seq interactively in light. (#268)

Co-authored-by: Leonard Adolphs <[email protected]>

* Creating a light world object from an instance of the old graph (#269)

* updated the World to initiate it from the old dataset graph

* docstring

* Updated lightqa readme with new checkpoints. (#270)

Co-authored-by: Leonard Adolphs <[email protected]>

* Clarifying the equipped objects (#271)

* clarifying the equipped objects

* fixed the equipping tests

* Documentation time (#273)

* Some initial READMEs

* More readmes

* Even more docs

* Events docs

* World docs

* Creating `light` master script for ParlAI tooling (#274)

* Boilerplate for LIGHT-parlai content

* Re-ordering

* adding common sense + world builder code

* Merging in teachers and code for RL-Quests paper. (#275)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Dropping sweeps

* Uploading relevant models, adding download paths

* Rl quests merge (#276)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Dropping sweeps

* Removing _almost_ all checkpoint links

* Uploading relevant models, adding download paths

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Removing _almost_ all checkpoint links

* Removing sweeps

* removing sweeps... again

* Build scripts now point to real file

* Intro code for new project (#279)

* Creating example builder script for story agents project

* Writing play map example script

* initial setup for both object interaction tasks

* small cleanup task reviewing

* default attr. from light db, make editable

* small bug fix & format changes

* slightly cleaner in-place update

* Task lightgame (#281)

* added gameplay task view

* added gameplay task view

* fixed message transmission in both gameapp reducer and task redux-slice

* removed boilerplate

* placed topmessage function at top of reducer

* messy separation into tasks, needs cleanup

* Pre-authorized worker login (#282)

* First worker login test

* Updating preauth to send context to target node, using salted hash

* polishing new tasks, making to-fill more distinct

* remove location box from attribute task

* updating constraint task with backstory q

* rename narration field, remove deleted obj

* removed deleted options, action phrase

* Gameapp instruction modal removal (#285)

* disconnected instruction modal from GamePage

* removed instructional modal

* Tutorial world, full implementation (#266)

* Adding flags to determine new players

* Adding tutorial components, first pass

* Transition from tutorial to main world seamlessly

* Creating tutorial script

* add models that maintain identity

* override model

* New secure cookies

* New secure cookies, correctly

* Bugfix for tests

* More tutorial content

Co-authored-by: Kurt Shuster <[email protected]>

* Single model, reusing ActionParser (#286)

* World hotfix

* Small deploy-related fixes (#287)

* LIGHT Tutorial fixes (#289)

* Worldbuilder update (#272)

* added redux

* added player world slice

* building modals, added modal slice to redux state

* Connected modal redux state to world row icons

* added create world button, styled homepage buttons and layout

* building editworldpage, added stat block, added nav buttons for editworldpage, added selected world to redux state

* styling modals, connected modal content to selected world redux state

* added world edit routes

* connected EditWorldFrame buttons to navigation

* added breadcrumbs component

* added buttongroups component

* fixed side navigation

* added sidebar component

* added sidebar feature slice, built sidebar

* fixed edit world sections, added general table, added dummydata

* added filter to search bar

* building rooms page, added bread crumb, added 2 generate fields

* added slider component

* added slider and button toggle to room form

* added map to map page, added properly structured dummy-data to act as backend

* added rooms, objectsm, and characters redux slices

* Added new map components, tile, grid, utils, building tile, connected page to redux store

* worldbuilder map rework, fetching and sorting room data in map page lifecycle

* added border calculator

* added and tested grid data generator and room checker utility functions

* rebuilt grid and map components without using grid-layout library

* fixing dimensions on tiles

* styling paths

* added sidebar, connected sidebar to selectedroom slice, connected tile click handler to sidebar and select room slice

* connected advanced edit to basiceditmodal

* added numberbuttoninput to tool bar

* added and connected floor selector

* added neighbor props to tile component, set conditional rendering for tile paths

* refactoring typeahead tokenizer

* fixed tokenizer

* various map fixes, added character route, added cog click route, connected redux state to edit details character and object sections

* fixed centering of map

* added extra columns and rows at beginning and end of both axis of map

* fixed starting position with new grid data

* Fixing tile color update function

* fixing color change state

* Fixed local storage update, refactored add, delete, update reducer actions, tested map update and save, removed console logs

* fixed color selection, added direct updates to draft on tile click when in color mode

* added id generation to character, room, and object creation

* fixed simple additions for basic edit for both characters and items

* built advanced edit pages, fixed slider and generate forms, fixing path update bug on map component

* fixed map loading error

* began styling tiles, fixing path update bug:

* fixed breadcrumbs, fixed local storage, added add room feature, added delete room feature, added create and delete buttons to quick edit, fixed tokenizer clearing selected tokens on room change

* fixed edit room switch on creation, fixed edit room rerender on deletion, added map-slice, fixed position change on updates

* fixed add character clearing list bug

* fixed delete functions and associated state changes for both room and objects or characters, fixed sorting for tokenizer options, fixed tokenizer node creation

* updated grid data generator helper function to include above and below floors

* added footer and stair components to tile

* fixed wiring for advanced room editor

* connected advanced edit forms to state

* added inlinetext insert component to character and object pages

* fixed breadcrumbs

* set object prefix defaults and plural defaults

* added character prefix state and defaults

* added and tested nested delete util function to edit objects page

* added content remover helper function

Co-authored-by: Jack Urbanek <[email protected]>

* New database stubs for updated data model

* Enums, Dataclasses

* addressing some comments

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* updating narration and first 2 grounding tasks

* updates for whole pipline

* cleanup, deleted a file

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* Rebuild on main, committed (#299)

* requirements

* removing prints

* Fix tests on `main` (#301)

* Bump parlai

* soften pytest

* Test soul messing up testing

* Another mis-test

* Accidentally dropped file

* Stop confusing the tests

* another one snuck by

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Ensure we're not using FB user data

* Methods for scrubbing the datasets

* Deleting player data and related graph info

* Fixing bugs, adding tests

* Environment exporting

* Export episode DB too

* Enums for model types

* Checking for non-list to convert first

* Slightly more clarity

* 60 != 90

* Creating initial hydra classes and structures

* base model loading classes

* progress towards play_map

* Model loading works from hydra

* Play-map works again

* Main tests passing again

* Restoring broken point for tutorial

* Making ModelServer work again

* Server works for local deploy with hydra config

* Server tests now passing

* hydra 1.2

* temporary hydra force upgrade for tests

* pre-publish review

* Implementing New Users Tables (#292)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* New Episode logging (#293)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Addressing comments, clarifying code

* New environment db (#295)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* Using `EpisodeDB` in main game path (#297)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Using `UserDB` as main game identity storage (#298)

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Creating and using the `ModelPool` (#300)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Enums for model types

* Fixing bad merge

* Creating LIGHT's ModelServer (#302)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Enums for model types

* `asyncio` all over LIGHT (#304)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* Moving safety model to async part

* Some safety fixes

* test fixes

* Enums for model types

* Checking for non-list to convert first

* AWS Option for LIGHT data model storage (#305)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* dropped change on merge

* Stable Server commit before coming refactors (#306)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Enums for model types

* Checking for non-list to convert first

* Slightly more clarity

* Privacy commitment improvements (#307)

* Some initial transitions over to model pool

* Moving initialization code out from where it occurred

* Wiring more of the system together

* Adding opt for reranked generative

* Filling out UserDB

* Abstract enforce get first

* Clearer argument - num_turns

* Using enums in DB

* Initial episode data model

* Update content loggers to use episode formatting

* Updating tables to work with testing

* Fixing some test changes

* Fixing small warnings that were noise during tests

* Moving default log path

* Test fix

* Correcting math thanks to Kurt

* Updating env DB classes to SQLAlchemy

* Name keys and Elems coded

* Adding arbitrary node attributes

* First complete pass of EnvDB

* Mypy fixings

* Fixing agents

* Writing some tests

* Finishing tests for object and room creates and queries

* Edge testing

* Arbitrary attributes testing

* Quests and testing

* And finally, DBGraph tests

* fixing episode change

* TODO function

* final mypy fixes

* DBID testing

* a -> either a or an depending on aeiou

* adding WorldConfig to hold complex configuration vars

* Moving episode_db into relevant GraphBuilders

* Game launches, but not logging

* Local BaseDB, now saving episodes

* Missing files

* deleting miscommit

* test fix

* Migrating to UserDB

* No more LIGHTDatabase in TornadoServer

* Fixing tests

* Works after testing locally

* Updated messaging for unimplemented

* Upgrading OneRoomGraphBuilder to ModelPool

* Completing (almost) the rest of Modelpool references

* Works without loading models in play_map

* Model pool actually works

* Safety working as well

* removing prints

* Fixing some tests, skipping starspace

* Runs on server too

* Creating LIGHT's ModelServer

* Undo server change

* tornado simplicity

* Handling for inline candidate models

* But regular models should also work without this

* Async... all of the things...

* Async the server too

* clearing up async server tests

* Correct async mock

* internalize init_world

* clean up tornado usage

* small GameInstance bug

* small GameInstance bug

* Some deploy fixes

* now using aws as a storage backend

* Moving safety model to async part

* Some safety fixes

* test fixes

* silly elif fix

* Taking bug-fixes from stable server

* Model server changes too

* Skip another web test, works in prod, refactor incoming

* Ensure we're not using FB user data

* Methods for scrubbing the datasets

* Deleting player data and related graph info

* Fixing bugs, adding tests

* Environment exporting

* Export episode DB too

* 60 != 90

* Addressing comments

* Base architecture README

* Addressing comments

* Missed a FLAGS

* Small fixes for episode db keys

* Adding wild episode metadata to EpisodeDB

* Tests pass after contain size fix

* Need to size up

* Ordering mistake

* world dissociation

* Small episode test cleanup

* Adding headers

* Some rollbacks, some copyright fixes

* More header fixes

* Clean up irrelevant paths

* Adding missing hydra configs

* Login page differs between dev and prod

* Dropping older tests

* correct config import loc

* Forgot to commit the files somehow

* Small fixes

* 0.2.0

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>
Co-authored-by: Leonard <[email protected]>
Co-authored-by: Leonard Adolphs <[email protected]>
Co-authored-by: Mojtaba <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Kurt Shuster <[email protected]>
JackUrb added a commit that referenced this pull request Dec 9, 2022
* Skip dialogue safety check on DEBUG

* Usage limit to scrolls

* added check for quest completion to reducer

* added Mission success entry and total exp to progress bar

* fixed border on soul spawn event entry

* adding copy to tutorial page

* added images to experience points topic

* adding images to experience points system topic

* removed glowing effect from character description on soul spawn event

* added imagee to experience points system

* added images to character basics

* Proper serialization and deserialization of UseEvent

* dozing fix

* added image styles for tutorial page

* added sizing styles to experience points system topic images

* added image styles to character basics

* Death message

* Death has better messaging

* added and styled action images

* resized tutorial header subheader and text classes

* styled tutorial text

* removed tutorial header

* added back link to tutorial pagee

* added Character header to soulspawn event

* styled stars and added shrinking animation and slide animation to message styles

* added character map util function for default character emojis

* fixed images being transparent with background

* removed inline styling and added soulspawn-subheader class

* comment out previous code for emoji mapping for later use

* fixed type in exprience points system

* fixed character subheader placement

* update help commands

* added modal component and instruction modal state

* Fixing doubled context on unsafe message

* Parsing events with capitalization

* Fixing grammar in leave and arrive events

* added header to instruction modal content

* added copy to modal and back functionality to tutorial page back button

* styled instruction modal and added tutorial screenshots

* added closes functionality to modal

* added new back button to terms and about pages

* set modal to not render unless player xp<=10

* fixed typo in minitutorial

* Update index.js

* added help entry

* updated styles

* added send button and styles to chat input component

* generative start features

* moar

* requirements change

* aadded play button to bottom of tutorial page

* added status entry

* humanz (#228)

* added and styled inventory message entry

* added button revisions

* Update Actions.js

* fixed mobile styling for entry

* restyled inventory message and made it responsive

* refactored status message

* restyled help entry with requested revisions

* Added and styled Quest component and added it to entry component

* merged other entries and removed console logs

* merged all  branches

* restyled home page

* fixed sizing bug

* refactored landing app

* restyled aboutpage

* restyled tutorialpage

* restyled terms page

* restyled login page

* restyled error page and logout page

* styling gameapp

* restyling chatlog for mobile

* added isMobile state and restyled modal

* added drawer feature

* added resize state and event listener

* added glowing button component removed typos in gameapp/styles.css building MobileFrame component

* added mobile frame header

* added toggleswitch, header, and buttons to mobile frame

* connected mobile frame to gameapp

* styled toggle and header

* fixed responsive sizing in mobile frame

* fixed speech bubble tails responsiveness

* fixed chat icon positioning in mobile view

* fixing chatlog styles

* fixed chat alignment issues in mobile ui

* added tooltip and lable to sidebar toggle switch

* fixed spacing issue from help message (#238)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* Mobile restyling Fixes (#239)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* fixed fonts on level dispaly and progress bar, changed logout button text color

* fixed sizing of messages, sizing of text, send button styling

* parse actions with wierd quotes (#244)

* Updating parser for multithreading (#251)

* added say and do buttons added documentation

* removed unused code and added more documentation to chatdisplay component

* adding mobile style fixes to progress bar and level display

* wired tell feature

* fixed repsonsive styling of player info icons on mobile

* adding redux

* added redux and redux toolkit

* added typescript to game app

* Server data browsing scripts and fixes (#255)

* Requirements fix (#258)

* Human to player (#259)

* Merging _human and is_player

* Removing old function

* No longer true case about cap on characters

* Crowdsourcing UI (#261)

* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* added views

* updating structure

* added example card component

* added copy arrays, styling example cards, and building good example list

* styled example list components

* styling preview view

* adjusted content and overflow to be right of it's label, fixed intro copy, fixed coloring in details section

* fixed details interaction copy

* fixed alignment of example card content

* building button

* fixed placement of definitions and added spacing

* pre-merge

* added error and success toats

* added screenshot to tutorial, added toast to submit

* duplicated previous task

* formatting constraint events task

* fixed conf

* restructuring app

* building multiple choice

* added answer form

* built reusable question components, added copy, building and styling forms

* added fieldQuestion component

* added fieldrow component

* added attributesetter component

* added constraints component and questions

* styled question components, headers, and layout

* added multiple select question component

* built attribute setter, attribute row, and added dummy data

* styled attribute setter

* connected dummy Data, restyled events and constraint containers, colored object names

* added copy updates from initial thoughts, added location description question

* added taskdatacards and datacard component

* styling cards and field row border

* added formatquestion component

* minor style fixes on field row, added formatquestion component to task card

* added format question component to boolean question component

* fixed formatquestion component

* added drop down component and submit checklist components

* fixed positioning and fixing numbering for questions

* added delete functionality to attribute setter

* added and styled submission component

* Adding new example copy, passing name and descriptions (#245)

* pre pull

* pre pull

* Fixing clobbered run_task.py (#246)

* Adding new example copy, passing name and descriptions

* Fixing run_task.py

* Fixing script config

* successfully updated run_task

* added and styled description to object selector, form tips, and preview image

* fixed payload update

* updated example card component with primary and secondary desc and styled text

* updated example card component with primary and secondary desc and styled text

* Task2 submit (#248)

* adding state for payload

* added error state

* centralizing copy

* added isReversible, removeItems, isRemovingItems isCreatingEntity, createdEntity, isSecondaryHeld state

* building updatedRemoveObjects

* added create entity event to submission handler

* added events and constraints handling and packaging for payload submission

* wired constraint and event state to constraint and event components

* connected new copy object to events

* wiring task 2

* wiring event forms

* fixed field row styles

* added tooltip component, building preview and tutorial copy object

* added task 2 tutorial copy, added and styled tutorial entry component, added and styled preview view

* updated copy for preview and updated layout

* added screenshots for Preview

* finishing final submission and preview changes

* fixed create entity connection to submission

* connected constraints and fixed submission state

* building error handling and checklist component logic

* building error handling and checklist component logic

* added error key to task copy file

* added error toasts, error key, and completion checkboxes component

* fixed checkbox, restyled headers, added plus icon to add attribute button

* fixed error handling for broadcast messsage and item description changes

* fixed attribute setter connection to submission payload

* added documentation to components, removed console logs, fixed tooltip styling, and added mephisto handleSubmit to submit function

* Fixed spacing, removed improperly placed checkboxes, updated  copy, updated screenshots

* merge

* Finalizing Narrations pilot (#257)

* Moving files

* Importing new examine script

* Updated review scripts

* Final changes for pilot

* dropped configs

* style changes based on user feedback

* Missing css class

* Fixing run, fixing copy

* Updating Attributes task final pilot

* Is safe is light task (#256)

* Troubleshooting image loading issue

* added task4, added multiple choice, added run tas and yaml files, build task state

* added task4, added multiple choice, added run tas and yaml files, build task state

* added Sucess and Error Banners

* added copy to task copy, restructuring QuestionBlock component

* added format question, updated taskcopy, added header to QuestionBlock

* added tooltip component

* added checkbox component

* restyled question block orietation, removed unused styles

* added error handling and submissionhandler

* properly styled error banner

* fixed submission issues

* added bootstrap styles, updated comments on Question Block and multiplechoice components, added more copy for preview

* several minor styling fixes, checkbox positioning, alert color, etc

* Task2 locationupdate (#254)

* Troubleshooting image loading issue

* added, connected, and styled onSelectQuestion component for handling location change event

* added, connected, and styled onSelectQuestion component for handling location change event

* added error handling for new location

* removed console.logs from question on select and converted inline styles to classes

* Updating folder location

Co-authored-by: Jack Urbanek <[email protected]>

* Merging task 3 into crowdsourcing ui (#260)

* Troubleshooting image loading issue

* initial setup complete

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* building task copy and dummy data

* added task copy

* wiring task copy into question components

* added tagrow and tagquestion

* styled attributes tag question

* added datatype switch for testing

* added conditional rendering to number form in tag question

* added state to tokenizer

* added ref to tokenizer, added header to copy, added header prop to tag question

* Task3 scale component (#249)

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* pre payload branch

* added scaled attribute basevalues

* added updateHandler

* fixed attributeupdatehandler

* fixed boolean payload change handler

* fixed custom scale rating and input

* fixed numberic attribute handler

* added numeric attributes array

* added multiple select question and Usefulness scale

* added default questions for each type to task copy

* added attribute questions component and added more documentation to Task component

* fixing tag question component added tooltip component

* updated defaultAttribute questions styles and update functions

* fixed multiple choice component

* added selection consideration to multiplechoice component

* added more informative error banner

* tested submit successfully

* fixed scale component header alignment

* premerge changes, added to tutorial copy

* pre merge

* removed labels from custom attribute scale, added better variables describing fixed number values in scale field, fixed indentation in multiplechoice component, changed placeholder message in tagrow

* Task3 preview (#253)

* added attributeChecklist screenshots

* added tutorial screenshots

* added final screenshot for attributeRadio

* added images to TaskCopy.js

* added copy and screenshots for scales and type specific tutorials

* populated preview with tutorial entry components using taskcopy

* added new screenshots to attributeradio2, attributeradio3 assets, styled preview

* added check for 4 custom boolean attributes

* changed header text color to dark blue

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Moving task3

* Moving safe-light task

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Fixing npc assignment bug (#263)

* added redux foundation, added personal info slices, added xp, giftxp, persona, location, reducers

* added increaseXp and decrementGiftXp to reducer actions

* added foundation for redux websocket integration

* added documentation to slices, wired xp and giftxp redux state into experienceinfo component

* removed passed props from experience info components

* added sessioninfo section to features, added session xp slice, added session spent gift exp slice

* removed xp props from sidebar

* fixed emoji picker redux action, added view slice

* Added documentation to GamePage for new state and useEffects, removed local state in game page, sidebar, mobile header

* added chatInput Slice

* restructured messages and types, restyling messages

* fixed overlapping system messages

* restructured message types and styles, fixed help message overlap bug, restyling help message copy, removed legacy styles for all message types aside from setting, player message, and agent message

* restyled help message for both mobile and desktop

* Multi-agent chat first pass (#264)

* Multi-agent chat first pass

* First round changes, clarity

* Review script

* Forced timeout loop

* removed console logs, unused code, added substantial documentation, restyled award stars for both mobile and PC, connected sessionspentgiftxp to AgentMessage component

* added styling for safari browser, added styling for mobile, fixed mainpage scrolling on refresh bug, fixed text sizing, added scrolling to each message time, added mobile specific styling to setting message

* building tutorial popover

* added info button

* added tutorial popover component, added gamecopy file with tutorial copy, connected popover to sidebar header and body, connected redux state to tutorial

* added tooltips to both chat display and sidebar

* added help mode, added on click tool tips to playerinfo, Character info, mission info, location info, soulspawn message, setting message, agent message, quest message

* added tooltips and animations to quest message, status message, agent message, player messsage

* added tooltips and animations for inventory, send button, chat input, and chat mode, fixed agent message help mode bug

* added infobutton component, added render condition to infobutton in sidebar component, added infobutton to mobile header

* fixed toggle to clear tooltips during switch when in help mode

* added and styled final tool tips, fixed cycle tooltips on chat bar, fixed and restyled scrolling and sizing on chat display and sidebar

* Added lightqa readme that shows how to run seq2seq2seq interactively in light. (#268)

Co-authored-by: Leonard Adolphs <[email protected]>

* Creating a light world object from an instance of the old graph (#269)

* updated the World to initiate it from the old dataset graph

* docstring

* Updated lightqa readme with new checkpoints. (#270)

Co-authored-by: Leonard Adolphs <[email protected]>

* Clarifying the equipped objects (#271)

* clarifying the equipped objects

* fixed the equipping tests

* Documentation time (#273)

* Some initial READMEs

* More readmes

* Even more docs

* Events docs

* World docs

* Creating `light` master script for ParlAI tooling (#274)

* Boilerplate for LIGHT-parlai content

* Re-ordering

* adding common sense + world builder code

* Merging in teachers and code for RL-Quests paper. (#275)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Dropping sweeps

* Uploading relevant models, adding download paths

* Rl quests merge (#276)

* Baseline code for standardizing data loading

* atomic teachers working

* Cleanup atomic

* quest goals teacher

* Predictive machines to projects

* Wild chat task and code and sweeps

* Updating sweep paths to new locations

* Cleaning up quests build

* Finished all _operational_ quests code

* Remaiing related sweeps

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Dropping sweeps

* Removing _almost_ all checkpoint links

* Uploading relevant models, adding download paths

* Core quests rl project code

* Sweeps related to RL code

* Adding missing models

* Removing _almost_ all checkpoint links

* Removing sweeps

* removing sweeps... again

* Build scripts now point to real file

* Intro code for new project (#279)

* Creating example builder script for story agents project

* Writing play map example script

* Task lightgame (#281)

* added gameplay task view

* added gameplay task view

* fixed message transmission in both gameapp reducer and task redux-slice

* removed boilerplate

* placed topmessage function at top of reducer

* Pre-authorized worker login (#282)

* First worker login test

* Updating preauth to send context to target node, using salted hash

* Gameapp instruction modal removal (#285)

* disconnected instruction modal from GamePage

* removed instructional modal

* Tutorial world, full implementation (#266)

* Adding flags to determine new players

* Adding tutorial components, first pass

* Transition from tutorial to main world seamlessly

* Creating tutorial script

* add models that maintain identity

* override model

* New secure cookies

* New secure cookies, correctly

* Bugfix for tests

* More tutorial content

Co-authored-by: Kurt Shuster <[email protected]>

* Single model, reusing ActionParser (#286)

* World hotfix

* Small deploy-related fixes (#287)

* LIGHT Tutorial fixes (#289)

* commented out tutorial check for building purposes and added Tailwind and dependencies

* added basic layout changes to chat display and main app container

* restyled chatbar border and bgcolor

* working on rotation animation

* restyling chat display removed soul spawn styles broke chatbar into 3 components

* removed legacy styles from app styles css move action bar to top of chat display building exp counter restyling action bar

* fixing chat bar, restyling messages, added report message form component

* fixed chat bar, restored functionality and reconnected state to chat buttons and send button and input, rebuilt chat bubble for player message

* readded star feature, added like an dislike functionality, added report prompt and flag

* restyled sidebar, added new progress bar and avatar

* changed all fantasy fonts to Courier New, Courier, monospace

* fixed input enter button and chat toggle, fixed chat area sizing

* fixed scroll to end upon form opening

* changed thumbs to check and x, added tooltips, added margins to chat rows, made check and x mutually exclusive

* fixed frame sizing, fixed message coloring, right justified start and report prompts, action bar will now hide if no other agents present

* fixed xp state management, fixed progress bar, moved stars to outside of chat bubble, fixing agent chat bubble, added correct session xp to base of chat

* added more reported message state to redux store, added padding to agent messages, removed legacy styles from collapsible containers, and fixing report message modal

* fixed modal submission, built modal with more message info, added modal submitted state to redux store

* fixed giftxp state, fixed tooltips on chat controls, fixed up and down previous message cycling, fixed padding around agent messages, fixed remaing xp, fixed report modal, added report submission state to redux store, added reporting state to agent message

* added drawer toggle

* placed logout and info on same line

* returned award stars to pre test values

* Copyright fixes

* Dropping mis-merged files

* first pass to layout clean-up

* building sideDrawer component

* properly sized side drawer

* added report message posting

* fixed modal opacity

* fixed scrollbar

* fixed message spacing

* fixed agent message chat bubble tail color, alignment, and orientation

* fixed logout button styles

* added indicators and instructions for awarding gift xp and alternate messages if player has no gift xp to give

* fixed report submission bug on first submission not marking message as reported

* fixed xp bar double counting session xp

* fixed xp bar double counting session xp

* building sidebar tab content

* Add local fonts and update tailwind config

* added level, remainingxp, and progressPercent to xp redux slice, added isIdle state to socket, connected new redux xp slice attributes to header and sidedrawer

* fixing gift xp

* Refactor to use daisyui theme color classes

* Implement ChatBubble component and update the chat message UI

* Improve report message modal UI

* fixed gift xp, added idle state, testing idleness time out, pre polish commit

* fixed spent gift xp updates

* re added location info in sidebar, restyled logout button

* replaced window icons in collapsible containers with plus icons

* polish chat input controls

* Polish ActionBar and minor tweaks to chat input

* style updates

* moved star to correct side of player message

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>
Co-authored-by: Jason Weston <[email protected]>
Co-authored-by: Leonard <[email protected]>
Co-authored-by: Leonard Adolphs <[email protected]>
Co-authored-by: Mojtaba <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Alex Gurung <[email protected]>
Co-authored-by: Kurt Shuster <[email protected]>
Co-authored-by: William Ngan <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants