MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / residentProbeSkip

Function residentProbeSkip

src/auth.js:1037–1049  ·  view source on GitHub ↗
(account, admission = getLsAdmissionForAccount(account.id))

Source from the content-addressed store, hash-verified

1035}
1036
1037function residentProbeSkip(account, admission = getLsAdmissionForAccount(account.id)) {
1038 const busyReason = isAccountBusyForProbe(account) ? 'account_busy' : null;
1039 if (!admission.ok || admission.reason !== 'already_running' || (admission.activeRequests || 0) > 0 || (admission.maintenanceRequests || 0) > 0 || busyReason) {
1040 return {
1041 skipped: true,
1042 reason: busyReason || admission.errorType || admission.reason || 'ls_not_idle_resident',
1043 tier: account.tier || 'unknown',
1044 capabilities: account.capabilities || {},
1045 admission,
1046 };
1047 }
1048 return null;
1049}
1050
1051/**
1052 * Mark an account as rate-limited for a duration (default 5 min).

Callers 3

fetchUserStatusFunction · 0.85
probeAccountFunction · 0.85
_probeAccountImplFunction · 0.85

Calls 2

getLsAdmissionForAccountFunction · 0.85
isAccountBusyForProbeFunction · 0.85

Tested by

no test coverage detected