Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
forward injected deps through the readiness batch, and keep the mirror note inside its JSDoc
[._.]/ Adam Eivy1616ab240779
diff --git a/client/src/utils/providers.js b/client/src/utils/providers.jsindex 842fa56a27..b5c48d6d3b 100644--- a/client/src/utils/providers.js+++ b/client/src/utils/providers.js@@ -655,15 +655,17 @@ export const visionLocalModelFilter = (id, provider, visionIdsByProvider = null)* 11434; LM Studio defaults to 1234. The stable provider ids (`ollama` /* `lmstudio`) are checked too — AI Assignments' curated provider payload* omits `endpoint`, and a renamed display name would otherwise miss detection.+ *+ * Client mirror of `localBackendForProvider` in+ * server/lib/localProviderRuntime.js — keep in lockstep. The SERVER copy is+ * authoritative and stricter: it parses the endpoint as a URL and requires a+ * loopback/bind-all host, so a peer machine's daemon on the same port is not+ * claimed as local. This one only labels UI, so it stays a cheap regex; if it+ * ever gates an action, take the server's rules with it.+ ** @param {{id?:string,endpoint?:string,name?:string}} provider* @returns {'ollama'|'lmstudio'|null}*/-// Client mirror of `localBackendForProvider` in server/lib/localProviderRuntime.js-// — keep in lockstep. The SERVER copy is authoritative and stricter: it parses-// the endpoint as a URL and requires a loopback/bind-all host, so a peer-// machine's daemon on the same port is not claimed as local. This one only-// labels UI, so it stays a cheap regex; if it ever gates an action, take the-// server's rules with it.export const localBackendForProvider = (provider) => {if (!provider) return null;const id = String(provider.id || '').toLowerCase();diff --git a/server/services/providerReadiness.js b/server/services/providerReadiness.jsindex 274bbf492d..5e5c688908 100644--- a/server/services/providerReadiness.js+++ b/server/services/providerReadiness.js@@ -261,7 +261,9 @@ export async function getProviderReadinessMap(providers, deps = {}) {const probe = memoize(deps.probe || probeEndpointCached);const entries = await Promise.all(list.map(async (provider) => {- const readiness = await getProviderReadiness(provider, { findCommand, probe });+ // Spread `deps` first so any other injected dep (isAppInstalled) survives,+ // then override the two the batch memoizes.+ const readiness = await getProviderReadiness(provider, { ...deps, findCommand, probe });return readiness ? [provider.id, readiness] : null;}));return Object.fromEntries(entries.filter(Boolean));