Show local AI activity feedback
Build and publish static assets / publish (push) Successful in 8m21s
Build and publish static assets / publish (push) Successful in 8m21s
This commit is contained in:
@@ -8,7 +8,7 @@ const source = fs.readFileSync(path.join(__dirname, '..', 'client', 'local-ai.js
|
||||
test('local AI runtime rejects assets outside the same-origin static service', () => {
|
||||
assert.match(source, /parsed\.origin !== location\.origin/);
|
||||
assert.match(source, /parsed\.pathname\.startsWith\('\/static\/'\)/);
|
||||
assert.match(source, /\/static\/wllama-gemma3-v1\//);
|
||||
assert.match(source, /\/static\/wllama-gemma3-v2\//);
|
||||
assert.doesNotMatch(source, /huggingface\.co|registry\.npmjs\.org/);
|
||||
});
|
||||
|
||||
@@ -19,6 +19,13 @@ test('local assistance includes preflight, bounded continuity, and unsaved offli
|
||||
assert.match(source, /Jag kan inte skapa ett lokalt förslag/);
|
||||
});
|
||||
|
||||
test('local AI reports when on-device inference starts, finishes, or fails', () => {
|
||||
assert.match(source, /type: 'activity', text: 'Lokal Gemma 3 körs på den här enheten/);
|
||||
assert.match(source, /Lokal Gemma 3 är klar\. Originalhandlingen skickas nu vidare/);
|
||||
assert.match(source, /Lokal Gemma 3 kunde inte förbereda handlingen/);
|
||||
assert.match(source, /Lokal Gemma 3 arbetar offline med ett osparat hjälpförslag/);
|
||||
});
|
||||
|
||||
test('local diagnostics are opt-in, stored in IndexedDB, exportable, and deletable', () => {
|
||||
assert.match(source, /ai-spel-local-ai-logs/);
|
||||
assert.match(source, /indexedDB\.open/);
|
||||
|
||||
Reference in New Issue
Block a user