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

rUv5a73c9af5810
diff --git a/v3/@claude-flow/guidance/src/ledger.ts b/v3/@claude-flow/guidance/src/ledger.ts
index 924d850fbf..d187700ae8 100644
--- a/v3/@claude-flow/guidance/src/ledger.ts
+++ b/v3/@claude-flow/guidance/src/ledger.ts
@@ -453,7 +453,9 @@ export class RunLedger {
/**
* Create a run ledger instance
+ *
+ * @param maxEvents - Maximum events to retain in memory (0 = unlimited).
*/
-export function createLedger(): RunLedger {
- return new RunLedger();
+export function createLedger(maxEvents = 0): RunLedger {
+ return new RunLedger(maxEvents);
}