MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / run_manual_spec_flow

Function run_manual_spec_flow

start.py:271–307  ·  view source on GitHub ↗

Guide user through manual spec editing flow. Shows the paths to edit and waits for user to press Enter when ready.

(project_dir: Path)

Source from the content-addressed store, hash-verified

269
270
271def run_manual_spec_flow(project_dir: Path) -> bool:
272 """
273 Guide user through manual spec editing flow.
274
275 Shows the paths to edit and waits for user to press Enter when ready.
276 """
277 prompts_dir = get_project_prompts_dir(project_dir)
278
279 print("\n" + "-" * 50)
280 print(" Manual Specification Setup")
281 print("-" * 50)
282 print("\nTemplate files have been created. Edit these files in your editor:")
283 print("\n Required:")
284 print(f" {prompts_dir / 'app_spec.txt'}")
285 print("\n Optional (customize agent behavior):")
286 print(f" {prompts_dir / 'initializer_prompt.md'}")
287 print(f" {prompts_dir / 'coding_prompt.md'}")
288 print("\n" + "-" * 50)
289 print("\nThe app_spec.txt file contains a template with placeholders.")
290 print("Replace the placeholders with your actual project specification.")
291 print("\nWhen you're done editing, press Enter to continue...")
292
293 try:
294 input()
295 except KeyboardInterrupt:
296 print("\n\nCancelled.")
297 return False
298
299 # Validate that spec was edited
300 if check_spec_exists(project_dir):
301 print("\nSpec file validated successfully!")
302 return True
303 else:
304 print("\nWarning: The app_spec.txt file still contains the template placeholder.")
305 print("The agent may not work correctly without a proper specification.")
306 confirm = input("Continue anyway? [y/N]: ").strip().lower()
307 return confirm == 'y'
308
309
310def ask_spec_creation_choice() -> str | None:

Callers 1

create_new_project_flowFunction · 0.85

Calls 2

get_project_prompts_dirFunction · 0.90
check_spec_existsFunction · 0.85

Tested by

no test coverage detected