Frontmatter
| id | 8310 |
| title | Feat: Environment-Aware Neural Link Config |
| state | Closed |
| labels | enhancementaiarchitecture |
| assignees | tobiu |
| createdAt | Jan 4, 2026, 2:19 PM |
| updatedAt | Jan 4, 2026, 2:23 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8310 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 4, 2026, 2:23 PM |
Context: Currently,
Neo.config.useAiClientis a boolean. This means the Neural Link is either always on or always off for a given configuration file. To support safer deployments (e.g., enabling AI only in 'development' but not 'production' using the same config file), we need environment-aware configuration similar touseServiceWorker.Scope:
src/DefaultConfig.mjs:useAiClienttype definition toBoolean|String|String[].'development',['development', 'dist/esm']).src/worker/App.mjs:onRegisterNeoConfig, implement logic to compareuseAiClientvalue againstNeo.config.environment.Neo.ai.Clientif the environment matches.Goal: Allow developers to restrict Neural Link access to specific environments.