Merge pull request #881 from Pythagora-io/info

send to extension project description and list of features
This commit is contained in:
Senko Rašić
2024-04-16 14:43:37 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ MESSAGE_TYPE = {
'projectStats': 'projectStats', # Project stats for extension only
'keyExpired': 'keyExpired', # (Free trial) key expired message - for extension only
'inputPrefill': 'inputPrefill', # Prefill input field with text in extension
'projectDescription': 'projectDescription', # Project description for extension only
'featuresList': 'featuresList', # Features list for extension only
}
LOCAL_IGNORE_MESSAGE_TYPES = [
@@ -35,4 +37,6 @@ LOCAL_IGNORE_MESSAGE_TYPES = [
'projectStats',
'keyExpired',
'inputPrefill',
'projectDescription',
'featuresList',
]

View File

@@ -199,6 +199,7 @@ class Project:
print('', type='verbose', category='agent:product-owner')
self.project_manager.get_project_description(self.spec_writer)
print({ "project_description": self.project_description }, type='projectDescription')
self.project_manager.get_user_stories()
# self.user_tasks = self.project_manager.get_user_tasks()
@@ -237,6 +238,7 @@ class Project:
self.finish_loading()
self.previous_features = get_features_by_app_id(self.args['app_id'])
print({"featuresList": self.previous_features}, type='featuresList')
if not self.skip_steps:
print('', type='verbose', category='pythagora')
if self.run_command and self.check_ipc():