ConstBase directory for all JSONL markdown files
Absolute path to the JSONL file for this markdown type
WriteStream instance for append-only writes, null until initialized
Singleshot initialization function that creates directory and stream. Protected by singleshot to ensure one-time execution. Sets up error handler that emits to exitEmitter.
Timeout-protected write function with backpressure handling. Waits for drain event if write buffer is full. Times out after 15 seconds and returns TIMEOUT_SYMBOL.
Writes markdown content to JSONL file with metadata. Appends a single line with JSON object containing:
Markdown content to write
Path and metadata options
ReadonlymarkdownName: MarkdownNameInitializes the JSONL file and write stream. Safe to call multiple times - singleshot ensures one-time execution.
Promise that resolves when initialization is complete
JSONL-based markdown adapter with append-only writes.
Features:
File format: ./dump/markdown/{markdownName}.jsonl Each line contains: markdownName, data, symbol, strategyName, exchangeName, frameName, signalId, timestamp
Use this adapter for centralized logging and post-processing with JSONL tools.