probe-research 0.35.0 → 0.36.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/bin/probe-research.js +9 -5
- package/package.json +1 -1
package/bin/probe-research.js
CHANGED
|
@@ -741,14 +741,18 @@ const NONE_SETUP = Object.freeze({
|
|
|
741
741
|
});
|
|
742
742
|
/** Kept back from the budget for the CLI's own work once the download is in. */
|
|
743
743
|
const WAIT_RESERVE_MS = 20 * 1000;
|
|
744
|
+
/**
|
|
745
|
+
* Kept from `sign-in --wait`'s budget for its one approval read after a stop: the read's own timeout + 1 s
|
|
746
|
+
* (#4602 review). The CLI's deadline moves earlier by as much.
|
|
747
|
+
*/
|
|
748
|
+
const APPROVAL_READ_RESERVE_MS = signIn.APPROVAL_TIMEOUT_MS + 1000;
|
|
744
749
|
/**
|
|
745
750
|
* What an approved sign-in's CLI needs left once a download is in (PR39): its first start through a new
|
|
746
|
-
* service, then the exchange before its own save reserve (12 s)
|
|
747
|
-
* answer `waiting_for_approval` though the person approved,
|
|
751
|
+
* service, then the exchange before its own save reserve (12 s), margin (3 s) and the launcher's
|
|
752
|
+
* approval-read reserve. With less, it would answer `waiting_for_approval` though the person approved,
|
|
753
|
+
* so the agent runs it again instead (#4661 review: 15 s for the start and the exchange, as before).
|
|
748
754
|
*/
|
|
749
|
-
const APPROVED_RESERVE_MS = 30 * 1000;
|
|
750
|
-
/** Kept from `sign-in --wait`'s budget for its one approval read after a stop (the read's own 3 s timeout + 1 s). */
|
|
751
|
-
const APPROVAL_READ_RESERVE_MS = 4 * 1000;
|
|
755
|
+
const APPROVED_RESERVE_MS = 30 * 1000 + APPROVAL_READ_RESERVE_MS;
|
|
752
756
|
/** How often a running download is looked at again. */
|
|
753
757
|
const DOWNLOAD_POLL_MS = 1000;
|
|
754
758
|
/** The uninstall barrier (`probe.shared.updates.uninstall_barrier.path`). */
|