@runuai/host 0.9.157 → 0.9.158
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/main.ts +18 -2
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -773,9 +773,13 @@ const credentialsActivation = new CredentialsActivationAuthority<CredentialsReti
|
|
|
773
773
|
log: (line) => console.warn(line),
|
|
774
774
|
});
|
|
775
775
|
setCredentialsModeSource(() => credentialsActivation.mode());
|
|
776
|
-
/** ADR-154 §13:
|
|
777
|
-
*
|
|
776
|
+
/** ADR-154 §13: the steady/operator cadence. Active runners report their
|
|
777
|
+
* purge again here too, so keep it deliberately quiet. */
|
|
778
778
|
const CREDENTIALS_ACTIVATION_RETRY_MS = 5 * 60_000;
|
|
779
|
+
/** A newly assigned marked machine is already behind its floor. Retry a
|
|
780
|
+
* transient freshness/Files proof inside Cloud's boot budget, without making
|
|
781
|
+
* its eventual active purge report a five-second heartbeat. */
|
|
782
|
+
const TASK_MACHINE_CREDENTIALS_ACTIVATION_RETRY_MS = 5_000;
|
|
779
783
|
const CREDENTIALS_ACTIVATION_ANSWER_MS = 60_000;
|
|
780
784
|
// Started here, first fired long after the bridge's state exists.
|
|
781
785
|
const credentialsActivationTimer = setInterval(() => {
|
|
@@ -788,6 +792,18 @@ const credentialsActivationTimer = setInterval(() => {
|
|
|
788
792
|
void credentialsActivation.advance();
|
|
789
793
|
}, CREDENTIALS_ACTIVATION_RETRY_MS);
|
|
790
794
|
credentialsActivationTimer.unref?.();
|
|
795
|
+
const taskMachineCredentialsActivationTimer =
|
|
796
|
+
taskMachineCredentialsRequired && sidecarTaskId() !== null
|
|
797
|
+
? setInterval(() => {
|
|
798
|
+
if (
|
|
799
|
+
stopping ||
|
|
800
|
+
!credentialFramesReady ||
|
|
801
|
+
credentialsMode() !== "pending"
|
|
802
|
+
) return;
|
|
803
|
+
void credentialsActivation.advance();
|
|
804
|
+
}, TASK_MACHINE_CREDENTIALS_ACTIVATION_RETRY_MS)
|
|
805
|
+
: null;
|
|
806
|
+
taskMachineCredentialsActivationTimer?.unref?.();
|
|
791
807
|
|
|
792
808
|
const credentialsActivationAsks = new Map<
|
|
793
809
|
string,
|