querysub 0.242.0 → 0.243.0
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
CHANGED
|
@@ -97,17 +97,10 @@ export async function streamScreenOutput(config: {
|
|
|
97
97
|
|
|
98
98
|
return (async () => {
|
|
99
99
|
try {
|
|
100
|
-
const captureCommand = `${prefix}tmux capture-pane -p -S -2000 -t ${screenName}`;
|
|
101
|
-
// Initial data
|
|
102
|
-
const initialContent = await runPromise(captureCommand, { quiet: true });
|
|
103
|
-
if (initialContent) {
|
|
104
|
-
await onDataWrapped(initialContent);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
100
|
const pipeFile = `${root}${screenName}/pipe.txt`;
|
|
108
101
|
|
|
109
102
|
// Use tail -f to follow the pipe file
|
|
110
|
-
childProcess = spawn(`tail`, ["-
|
|
103
|
+
childProcess = spawn(`tail`, ["-f", pipeFile, "--retry", "--lines", "1000"], {
|
|
111
104
|
stdio: "pipe",
|
|
112
105
|
});
|
|
113
106
|
|
|
@@ -372,7 +365,7 @@ async function quickIsOutdated() {
|
|
|
372
365
|
let screen = screens.find(x => x.screenName === screenName);
|
|
373
366
|
if (!screen) return true;
|
|
374
367
|
|
|
375
|
-
let folder = root +
|
|
368
|
+
let folder = root + screenName + "/";
|
|
376
369
|
let parameterPath = folder + "/parameters.json";
|
|
377
370
|
if (!fs.existsSync(parameterPath)) return true;
|
|
378
371
|
let prevParameters = await fs.promises.readFile(parameterPath, "utf8");
|