Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUve7fe0984985d
diff --git a/v3/@claude-flow/codex/src/validators/index.ts b/v3/@claude-flow/codex/src/validators/index.ts
index a30bf0740c..ea9743ea5b 100644
--- a/v3/@claude-flow/codex/src/validators/index.ts
+++ b/v3/@claude-flow/codex/src/validators/index.ts
@@ -962,13 +962,12 @@ function validateMarkdownStructure(
}
// Check for unclosed code blocks
- const codeBlockStarts = (content.match(/```[a-z]*/g) || []).length;
- const codeBlockEnds = (content.match(/```\s*$/gm) || []).length;
-
- if (codeBlockStarts !== codeBlockEnds) {
+ // Count all triple backticks - they should come in pairs
+ const tripleBackticks = (content.match(/```/g) || []).length;
+ if (tripleBackticks % 2 !== 0) {
errors.push({
path: 'AGENTS.md',
- message: 'Unclosed code block detected',
+ message: 'Unclosed code block detected (odd number of ``` markers)',
line: 1,
});
}