debasisdwivedy commited on
Commit
970061f
·
1 Parent(s): 739151e

SANDBOX MODE

Browse files
Develop_Software/software_development_agent.py CHANGED
@@ -361,7 +361,7 @@ project_manager = Agent(
361
  **Task:**
362
  Analyze the 'Critique/Suggestions'.
363
  Check the ** Final Decision ** in 'Critique/Suggestions'. If it `Approved` then:
364
- a) You MUST provide the summary of the `SPRINT` and Respond with `Success` Messageas below:
365
  ```json
366
  {{
367
  "STATUS": "SUCCESS",
 
361
  **Task:**
362
  Analyze the 'Critique/Suggestions'.
363
  Check the ** Final Decision ** in 'Critique/Suggestions'. If it `Approved` then:
364
+ a) You MUST provide the summary of the `SPRINT` and Respond with `Success` Message below:
365
  ```json
366
  {{
367
  "STATUS": "SUCCESS",
README.md CHANGED
@@ -93,7 +93,7 @@ Once the project is complete the user can download it. It will all the instrctio
93
 
94
  ### **[▶️ Watch Full Demo (2 minutes)](https://youtube.com/shorts/XYZ)**
95
 
96
- ## 𝕏 **X Post**
97
 
98
  ### **[▶️ Social ](https://x.com/debasis_dwivedy/status/1994336701318066616)**
99
 
@@ -132,6 +132,10 @@ uv pip install -r requirements.txt
132
  # 5. Run app
133
  uv run .
134
  ```
 
 
 
 
135
  ---
136
 
137
  ## ✅ **Hackathon Submission Checklist**
 
93
 
94
  ### **[▶️ Watch Full Demo (2 minutes)](https://youtube.com/shorts/XYZ)**
95
 
96
+ ## **𝕏 Post**
97
 
98
  ### **[▶️ Social ](https://x.com/debasis_dwivedy/status/1994336701318066616)**
99
 
 
132
  # 5. Run app
133
  uv run .
134
  ```
135
+
136
+ ### **Known Issues:**
137
+ 1. **TIMEOUT:** Currently the timeout is set to 600 secs i.e., 10 mins by default. Sometimes a `sprint` may take longer than that. Please increase the timeout if the `agent` fails.
138
+
139
  ---
140
 
141
  ## ✅ **Hackathon Submission Checklist**
coordinator.py CHANGED
@@ -182,7 +182,7 @@ class CoordinatorAgent:
182
  Before every task ask the user for approval to proceed and show the result of the previous task.
183
  If any agent asks for clarifying question to the user relay it back to the user.
184
 
185
- For **Requirement Gathering** task to be completed confirm with the remote agent that there are NO open clarifying questions.DO NOT proceed furture till all the clarifying questions are answered and `PROJECT_SCOPE.txt` file is created.
186
  For **Project Planning** task to be completed confirm with the remote agent that there are NO open clarifying questions. The task returns the number of SPRINTS created.
187
 
188
  For **Software Development** only assign a Particular Sprint Number to the remote agent e.g., Start sprint 1 or Start sprint 2 etc.
 
182
  Before every task ask the user for approval to proceed and show the result of the previous task.
183
  If any agent asks for clarifying question to the user relay it back to the user.
184
 
185
+ For **Requirement Gathering** task to be completed confirm with the remote agent that there are NO open clarifying questions.DO NOT PROCEED furture till `PROJECT_SCOPE.txt` file is created and all the clarifying questions are answered.
186
  For **Project Planning** task to be completed confirm with the remote agent that there are NO open clarifying questions. The task returns the number of SPRINTS created.
187
 
188
  For **Software Development** only assign a Particular Sprint Number to the remote agent e.g., Start sprint 1 or Start sprint 2 etc.
mcp_server/src/coderama_server.py CHANGED
@@ -215,9 +215,11 @@ async def execute_shell_code(shell_file_path:str)->dict:
215
  result = subprocess.run(cmd,capture_output=True, text=True, check=True)
216
  else:
217
  logger.info(" ===== SANDBOX IS UNSET===============")
218
- cmd = ["bash","-c",f"chmod +x {WORKSPACE_DIR+os.sep+shell_file_path} && ./{WORKSPACE_DIR+os.sep+shell_file_path}"]
 
 
219
  #subprocess.run(["chmod", "+x", WORKSPACE_DIR+os.sep+shell_file_path], capture_output=True, text=True,check=True)
220
- result = subprocess.run(cmd,capture_output=True, text=True, check=True)
221
  logger.info(" =====AFTER EXECUTE SUBPROCESS===============")
222
  # print("Output:", result.stdout,file=sys.stderr)
223
  # print("Errors:", result.stderr,file=sys.stderr)
 
215
  result = subprocess.run(cmd,capture_output=True, text=True, check=True)
216
  else:
217
  logger.info(" ===== SANDBOX IS UNSET===============")
218
+ script_path = os.path.join(WORKSPACE_DIR, shell_file_path)
219
+ cmd = ["bash", "-c", f"chmod +x {script_path} && ./{shell_file_path}"]
220
+ #cmd = ["bash","-c",f"chmod +x {WORKSPACE_DIR+os.sep+shell_file_path} && {WORKSPACE_DIR+os.sep+shell_file_path}"]
221
  #subprocess.run(["chmod", "+x", WORKSPACE_DIR+os.sep+shell_file_path], capture_output=True, text=True,check=True)
222
+ result = subprocess.run(cmd,cwd=WORKSPACE_DIR,capture_output=True, text=True, check=True)
223
  logger.info(" =====AFTER EXECUTE SUBPROCESS===============")
224
  # print("Output:", result.stdout,file=sys.stderr)
225
  # print("Errors:", result.stderr,file=sys.stderr)