The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
Make source quality gates portable on Windows
Davidc8ec56bae29b
diff --git a/src/components/__tests__/der-steckplatzname-steht-nirgends.test.ts b/src/components/__tests__/der-steckplatzname-steht-nirgends.test.tsindex db6ef05c..526ed63d 100644--- a/src/components/__tests__/der-steckplatzname-steht-nirgends.test.ts+++ b/src/components/__tests__/der-steckplatzname-steht-nirgends.test.ts@@ -71,6 +71,8 @@ const OHNE_STECKPLATZ = new Set(['models/DiscoverModels.tsx',])+const portableComponentPath = (path: string) => path.replace(/\\/g, '/')+describe('kein Steckplatz-Praefix in der Oberflaeche', () => {const dateien = alleDateien(WURZEL)@@ -78,10 +80,19 @@ describe('kein Steckplatz-Praefix in der Oberflaeche', () => {expect(dateien.length).toBeGreaterThan(30)})+ it('uses the same exact exceptions with Windows and POSIX separators', () => {+ for (const path of OHNE_STECKPLATZ) {+ expect(OHNE_STECKPLATZ.has(portableComponentPath(path))).toBe(true)+ expect(OHNE_STECKPLATZ.has(portableComponentPath(path.replace(/\//g, '\\')))).toBe(true)+ }+ expect(OHNE_STECKPLATZ.has(portableComponentPath('chat\\ModelSelector.tsx'))).toBe(false)+ expect(OHNE_STECKPLATZ.has(portableComponentPath('other\\MlxMediaSettings.tsx'))).toBe(false)+ })+it('schreibt nirgends einen nackten Modellnamen in die Oberflaeche', () => {const treffer: string[] = []for (const datei of dateien) {- const kurz = datei.slice(WURZEL.length + 1)+ const kurz = portableComponentPath(datei.slice(WURZEL.length + 1))if (OHNE_STECKPLATZ.has(kurz)) continueconst quelle = readFileSync(datei, 'utf8')for (const zeile of quelle.split('\n')) {diff --git a/src/lib/__tests__/das-gate-bleibt-scharf.test.ts b/src/lib/__tests__/das-gate-bleibt-scharf.test.tsindex c726a620..2a0f6634 100644--- a/src/lib/__tests__/das-gate-bleibt-scharf.test.ts+++ b/src/lib/__tests__/das-gate-bleibt-scharf.test.ts@@ -43,8 +43,13 @@ import { ESLint } from 'eslint'const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '../../..')let eslint: ESLint-beforeAll(() => {+beforeAll(async () => {eslint = new ESLint({ cwd: ROOT })+ // Load the real configuration and parser during bounded suite setup, not the first assertion.+ const [warmup] = await eslint.lintText('export const warmup: number = 1\n', {+ filePath: resolve(ROOT, 'src/lib/__lint-probe.ts'),+ })+ expect(warmup.errorCount).toBe(0)})/** Regel-IDs, die eslint fuer diesen Quelltext meldet. */