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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.242.0",
3
+ "version": "0.243.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -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`, ["-F", pipeFile], {
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 + config.parameters.key + "-" + i + "/";
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");