tapps-agents 3.5.38__py3-none-any.whl → 3.5.39__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2698,10 +2698,10 @@ def init_project(
2698
2698
  version_after = get_framework_version()
2699
2699
  results["version_after"] = version_after
2700
2700
 
2701
- # --- Step order (dependencies): tech_stack -> config -> MCP -> rules -> presets
2701
+ # --- Step order (dependencies): tech_stack -> config -> MCP -> presets -> rules
2702
2702
  # -> skills -> customizations -> cursorignore -> tech_stack_config -> experts
2703
2703
  # -> cache (best-effort, non-blocking) -> validation
2704
- # MCP runs early so validation and npx/API-key checks surface before long steps.
2704
+ # Presets before rules so workflow-presets.mdc can be generated from YAML (critical after reset).
2705
2705
 
2706
2706
  # Detect tech stack early (needed for template application)
2707
2707
  tech_stack = detect_tech_stack(project_root)
@@ -2759,14 +2759,8 @@ def init_project(
2759
2759
  mcp_status["project_local_config"] = mcp_path
2760
2760
  mcp_status["note"] = "Project-local `.cursor/mcp.json` was created. Context7 MCP server configured."
2761
2761
 
2762
- # Initialize Cursor Rules
2763
- if include_cursor_rules:
2764
- success, rule_paths = init_cursor_rules(project_root)
2765
- results["cursor_rules"] = success
2766
- if rule_paths:
2767
- results["files_created"].extend(rule_paths)
2768
-
2769
- # Initialize workflow presets
2762
+ # Initialize workflow presets before Cursor Rules so workflow-presets.mdc can be
2763
+ # generated from YAML (required after init --reset when presets were just restored).
2770
2764
  if include_workflow_presets:
2771
2765
  success, preset_files = init_workflow_presets(project_root)
2772
2766
  results["workflow_presets"] = success
@@ -2775,6 +2769,13 @@ def init_project(
2775
2769
  [f"workflows/presets/{f}" for f in preset_files]
2776
2770
  )
2777
2771
 
2772
+ # Initialize Cursor Rules (depends on workflows/presets/*.yaml for workflow-presets.mdc)
2773
+ if include_cursor_rules:
2774
+ success, rule_paths = init_cursor_rules(project_root)
2775
+ results["cursor_rules"] = success
2776
+ if rule_paths:
2777
+ results["files_created"].extend(rule_paths)
2778
+
2778
2779
  # Initialize Skills for Cursor/Claude
2779
2780
  if include_skills:
2780
2781
  success, copied_skills = init_claude_skills(project_root)