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
re-seat readProvider so each helper carries its own doc comment
[._.]/ Adam Eivy20a41b0b65c8
diff --git a/server/lib/aiToolkit/providers.js b/server/lib/aiToolkit/providers.jsindex 2ab206880d..a02340c2df 100644--- a/server/lib/aiToolkit/providers.js+++ b/server/lib/aiToolkit/providers.js@@ -91,16 +91,6 @@ function withGatewayApiKey(provider, providers) {* attaches the sibling key as a NON-ENUMERABLE property, which a spread here* would silently drop. This runs first and the key attach stays outermost.*/-/**- * One provider as a READ sees it: the gateway's model-access policy resolved,- * then the gateway's API key attached. In that order — the key rides as a- * NON-enumerable property, so a spread after it would silently drop the- * credential and every wrapper run would lose it.- */-const readProvider = (provider, providers) => (provider- ? withGatewayApiKey(withGatewayModelAccess(provider, providers), providers)- : null);-function withGatewayModelAccess(provider, providers) {if (!provider || typeof provider !== 'object') return provider;const own = normalizeModelAccess(provider.modelAccess);@@ -111,6 +101,16 @@ function withGatewayModelAccess(provider, providers) {return { ...provider, modelAccessEffective: inherited, modelAccessSource: gateway.id };}+/**+ * One provider as a READ sees it: the gateway's model-access policy resolved,+ * then the gateway's API key attached. In that order — the key rides as a+ * NON-enumerable property, so a spread after it would silently drop the+ * credential and every wrapper run would lose it.+ */+const readProvider = (provider, providers) => (provider+ ? withGatewayApiKey(withGatewayModelAccess(provider, providers), providers)+ : null);+// Extensions Windows can launch directly, checked in cmd.exe's own resolution// preference. Deliberately excludes an extension-less match — npm ships a// POSIX shell-script stub alongside a package's `.cmd`/`.bat`/`.ps1` Windows