bmalph 2.7.2 → 2.7.4
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.
- package/README.md +14 -4
- package/dist/commands/doctor-checks.js +17 -10
- package/dist/commands/doctor-checks.js.map +1 -1
- package/dist/run/ralph-process.js +101 -7
- package/dist/run/ralph-process.js.map +1 -1
- package/dist/transition/artifact-collection.js +74 -0
- package/dist/transition/artifact-collection.js.map +1 -0
- package/dist/transition/artifacts.js +12 -1
- package/dist/transition/artifacts.js.map +1 -1
- package/dist/transition/context.js +17 -25
- package/dist/transition/context.js.map +1 -1
- package/dist/transition/fix-plan.js +12 -7
- package/dist/transition/fix-plan.js.map +1 -1
- package/dist/transition/orchestration.js +213 -116
- package/dist/transition/orchestration.js.map +1 -1
- package/dist/transition/preflight.js +30 -17
- package/dist/transition/preflight.js.map +1 -1
- package/dist/transition/section-patterns.js +56 -4
- package/dist/transition/section-patterns.js.map +1 -1
- package/dist/transition/specs-index.js +5 -2
- package/dist/transition/specs-index.js.map +1 -1
- package/dist/transition/specs-sync.js +23 -0
- package/dist/transition/specs-sync.js.map +1 -0
- package/dist/transition/sprint-status.js +91 -0
- package/dist/transition/sprint-status.js.map +1 -0
- package/dist/transition/story-id.js +46 -0
- package/dist/transition/story-id.js.map +1 -0
- package/dist/transition/story-parsing.js +7 -7
- package/dist/transition/story-parsing.js.map +1 -1
- package/dist/transition/tech-stack.js +1 -7
- package/dist/transition/tech-stack.js.map +1 -1
- package/package.json +1 -1
- package/ralph/RALPH-REFERENCE.md +50 -46
- package/ralph/drivers/claude-code.sh +44 -2
- package/ralph/drivers/codex.sh +10 -1
- package/ralph/drivers/copilot.sh +5 -0
- package/ralph/drivers/cursor-agent-wrapper.sh +13 -0
- package/ralph/drivers/cursor.sh +178 -14
- package/ralph/lib/circuit_breaker.sh +5 -5
- package/ralph/lib/enable_core.sh +10 -10
- package/ralph/lib/response_analyzer.sh +357 -111
- package/ralph/ralph_import.sh +14 -10
- package/ralph/ralph_loop.sh +168 -119
- package/ralph/ralph_monitor.sh +4 -4
- package/ralph/templates/AGENT.md +7 -7
- package/ralph/templates/PROMPT.md +13 -13
package/ralph/lib/enable_core.sh
CHANGED
|
@@ -83,8 +83,8 @@ check_existing_ralph() {
|
|
|
83
83
|
# Check for required files
|
|
84
84
|
local required_files=(
|
|
85
85
|
".ralph/PROMPT.md"
|
|
86
|
-
".ralph
|
|
87
|
-
".ralph
|
|
86
|
+
".ralph/@fix_plan.md"
|
|
87
|
+
".ralph/@AGENT.md"
|
|
88
88
|
)
|
|
89
89
|
|
|
90
90
|
local missing=()
|
|
@@ -505,7 +505,7 @@ generate_prompt_md() {
|
|
|
505
505
|
objectives_section="$objectives"
|
|
506
506
|
else
|
|
507
507
|
objectives_section="- Review the codebase and understand the current state
|
|
508
|
-
- Follow tasks in fix_plan.md
|
|
508
|
+
- Follow tasks in @fix_plan.md
|
|
509
509
|
- Implement one task per loop
|
|
510
510
|
- Write tests for new functionality
|
|
511
511
|
- Update documentation as needed"
|
|
@@ -527,7 +527,7 @@ ${objectives_section}
|
|
|
527
527
|
- ONE task per loop - focus on the most important thing
|
|
528
528
|
- Search the codebase before assuming something isn't implemented
|
|
529
529
|
- Write comprehensive tests with clear documentation
|
|
530
|
-
- Update fix_plan.md with your learnings
|
|
530
|
+
- Update @fix_plan.md with your learnings
|
|
531
531
|
- Commit working changes with descriptive messages
|
|
532
532
|
|
|
533
533
|
## Testing Guidelines
|
|
@@ -536,7 +536,7 @@ ${objectives_section}
|
|
|
536
536
|
- Only write tests for NEW functionality you implement
|
|
537
537
|
|
|
538
538
|
## Build & Run
|
|
539
|
-
See AGENT.md for build and run instructions.
|
|
539
|
+
See @AGENT.md for build and run instructions.
|
|
540
540
|
|
|
541
541
|
## Status Reporting (CRITICAL)
|
|
542
542
|
|
|
@@ -555,11 +555,11 @@ RECOMMENDATION: <one line summary of what to do next>
|
|
|
555
555
|
\`\`\`
|
|
556
556
|
|
|
557
557
|
## Current Task
|
|
558
|
-
Follow fix_plan.md and choose the most important item to implement next.
|
|
558
|
+
Follow @fix_plan.md and choose the most important item to implement next.
|
|
559
559
|
PROMPTEOF
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
# generate_agent_md - Generate AGENT.md with detected build commands
|
|
562
|
+
# generate_agent_md - Generate @AGENT.md with detected build commands
|
|
563
563
|
#
|
|
564
564
|
# Parameters:
|
|
565
565
|
# $1 (build_cmd) - Build command
|
|
@@ -604,7 +604,7 @@ ${run_cmd}
|
|
|
604
604
|
AGENTEOF
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
# generate_fix_plan_md - Generate fix_plan.md with imported tasks
|
|
607
|
+
# generate_fix_plan_md - Generate @fix_plan.md with imported tasks
|
|
608
608
|
#
|
|
609
609
|
# Parameters:
|
|
610
610
|
# $1 (tasks) - Tasks to include (newline-separated, markdown checkbox format)
|
|
@@ -768,11 +768,11 @@ enable_ralph_in_directory() {
|
|
|
768
768
|
|
|
769
769
|
local agent_content
|
|
770
770
|
agent_content=$(generate_agent_md "$DETECTED_BUILD_CMD" "$DETECTED_TEST_CMD" "$DETECTED_RUN_CMD")
|
|
771
|
-
safe_create_file ".ralph
|
|
771
|
+
safe_create_file ".ralph/@AGENT.md" "$agent_content"
|
|
772
772
|
|
|
773
773
|
local fix_plan_content
|
|
774
774
|
fix_plan_content=$(generate_fix_plan_md "$task_content")
|
|
775
|
-
safe_create_file ".ralph
|
|
775
|
+
safe_create_file ".ralph/@fix_plan.md" "$fix_plan_content"
|
|
776
776
|
|
|
777
777
|
# Detect task sources for .ralphrc
|
|
778
778
|
detect_task_sources
|