rlhf-feedback-loop 0.6.9 → 0.6.10
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/adapters/mcp/server-stdio.js +10 -0
- package/package.json +1 -1
|
@@ -655,12 +655,22 @@ async function onData(chunk) {
|
|
|
655
655
|
function startStdioServer() {
|
|
656
656
|
if (stdioStarted) return;
|
|
657
657
|
stdioStarted = true;
|
|
658
|
+
|
|
659
|
+
// Keep the process alive even if stdin closes (prevents premature exit
|
|
660
|
+
// when launched by MCP clients like Claude Code, Codex, Gemini CLI).
|
|
661
|
+
const keepAlive = setInterval(() => {}, 60_000);
|
|
662
|
+
|
|
663
|
+
process.stdin.resume();
|
|
658
664
|
process.stdin.on('data', (chunk) => {
|
|
659
665
|
onData(chunk).catch((err) => {
|
|
660
666
|
const transport = err && err.transport === 'ndjson' ? 'ndjson' : 'framed';
|
|
661
667
|
writeMessage({ jsonrpc: '2.0', id: null, error: { code: -32603, message: err.message } }, transport);
|
|
662
668
|
});
|
|
663
669
|
});
|
|
670
|
+
process.stdin.on('end', () => {
|
|
671
|
+
// stdin closed — clean up and exit gracefully
|
|
672
|
+
clearInterval(keepAlive);
|
|
673
|
+
});
|
|
664
674
|
}
|
|
665
675
|
|
|
666
676
|
module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rlhf-feedback-loop",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "RLHF-ready human feedback capture and DPO data pipeline for AI agents. Optimize agentic reliability with Feedback-Driven Development (FDD): capture preference signals, enforce guardrails, and export training pairs for downstream optimization.",
|
|
5
5
|
"homepage": "https://github.com/IgorGanapolsky/rlhf-feedback-loop#readme",
|
|
6
6
|
"repository": {
|