@promptbook/node 0.112.0-139 → 0.112.0-140

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/README.md CHANGED
@@ -35,7 +35,7 @@ Run the standalone VPS installer only on a fresh server. Interactive mode asks f
35
35
  sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash
36
36
  ```
37
37
 
38
- Non-interactive mode takes defaults from command-line options and skips initial code-runner CLI setup, which can be configured later from the UI or SSH:
38
+ Non-interactive mode takes defaults from command-line options. When `--openai-api-key` is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:
39
39
 
40
40
  ```bash
41
41
  sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash -s -- \
package/esm/index.es.js CHANGED
@@ -36,7 +36,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
36
36
  * @generated
37
37
  * @see https://github.com/webgptorg/promptbook
38
38
  */
39
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-139';
39
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-140';
40
40
  /**
41
41
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
42
42
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -3594,6 +3594,18 @@ async function runScriptUntilMarkerIdle(options) {
3594
3594
  settleOnce(handler);
3595
3595
  });
3596
3596
  };
3597
+ /**
3598
+ * Finishes a marker-completed run and then asks bash to stop.
3599
+ */
3600
+ const finishAfterIdleTimeout = () => {
3601
+ settleWithLog('completed after idle timeout', () => resolve(fullOutput));
3602
+ try {
3603
+ commandProcess.kill();
3604
+ }
3605
+ catch (_a) {
3606
+ // Windows can report EPERM when bash exits before the idle timer fires.
3607
+ }
3608
+ };
3597
3609
  /**
3598
3610
  * Resets the idle timer that triggers termination after inactivity.
3599
3611
  */
@@ -3601,10 +3613,7 @@ async function runScriptUntilMarkerIdle(options) {
3601
3613
  if (idleTimer) {
3602
3614
  clearTimeout(idleTimer);
3603
3615
  }
3604
- idleTimer = setTimeout(() => {
3605
- commandProcess.kill();
3606
- settleWithLog('completed after idle timeout', () => resolve(fullOutput));
3607
- }, idleTimeoutMs);
3616
+ idleTimer = setTimeout(finishAfterIdleTimeout, idleTimeoutMs);
3608
3617
  };
3609
3618
  /**
3610
3619
  * Processes completed output lines to detect completion markers.