natureco-cli 5.6.33 → 5.6.34
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/package.json +1 -1
- package/src/tools/grep_search.js +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.34",
|
|
4
4
|
"description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"natureco": "bin/natureco.js"
|
package/src/tools/grep_search.js
CHANGED
|
@@ -118,21 +118,6 @@ async function grepWithRipgrep(pattern, cwd, caseSensitive, includePattern, maxR
|
|
|
118
118
|
setTimeout(finishOnce, 100);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
// v5.6.32: Memory taşmasını önle - max 5MB output
|
|
122
|
-
let stdoutBytes = 0;
|
|
123
|
-
const MAX_OUTPUT = 5 * 1024 * 1024; // 5MB
|
|
124
|
-
let truncated = false;
|
|
125
|
-
const addStdout = (d) => {
|
|
126
|
-
if (truncated) return;
|
|
127
|
-
stdoutBytes += d.length;
|
|
128
|
-
if (stdoutBytes > MAX_OUTPUT) {
|
|
129
|
-
truncated = true;
|
|
130
|
-
stdout += '\n[OUTPUT TRUNCATED - exceeded 5MB limit]';
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
stdout += d.toString();
|
|
134
|
-
};
|
|
135
|
-
proc.stdout.on('data', addStdout);
|
|
136
121
|
proc.stdout.on('end', () => { stdoutClosed = true; checkFinish(); });
|
|
137
122
|
proc.stderr.on('end', () => { stderrClosed = true; checkFinish(); });
|
|
138
123
|
proc.on('exit', (code) => { exitCode = code; checkFinish(); });
|