chore(cleanup): remove basic-only utility skills

Removes the system-action skills that were only ever available in the now
-retired Basic/Assistant modes (play_music, open/close_app, open_notepad,
create_document, create_powerpoint, control_volume, control_media_playback,
take_screenshot, clipboard, search_file, set_reminder, lock_screen,
empty_recycle_bin, show_notification, print_file, create_folder,
create_file, delete_file, fill_browser_field) along with their
windows/lib helpers (appRegistry, fileSearch, locations, sendVirtualKey)
and the fillField browser-window helper. Keeps the read-only, side-effect
-free transversal skills (search_web, navigate_browser and friends,
check_system_memory/storage/battery/internet). Drops the now-unused
docx/pptxgenjs dependencies and the stale coachStore/meetingStore entries
from the coverage exclude list.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-31 19:33:04 +01:00
parent 83043b5819
commit b8aec9ed6b
45 changed files with 7 additions and 1891 deletions
@@ -1,7 +1,6 @@
import { describe, it, expect, vi } from 'vitest'
const clickElementByText = vi.fn(async (text: string) => text !== 'introuvable')
const fillField = vi.fn(async (field: string) => field !== 'introuvable')
const goBack = vi.fn(async () => true)
const highlightText = vi.fn(async (text: string) => text !== 'introuvable')
const navigateTo = vi.fn(async () => 'Titre de la page')
@@ -9,7 +8,6 @@ const readPageText = vi.fn(async () => 'Contenu de la page')
vi.mock('../../src/main/browser/browserWindow', () => ({
clickElementByText,
fillField,
goBack,
highlightText,
navigateTo,
@@ -17,7 +15,6 @@ vi.mock('../../src/main/browser/browserWindow', () => ({
}))
const { clickBrowserElement } = await import('../../src/main/skills/browser/clickBrowserElement')
const { fillBrowserField } = await import('../../src/main/skills/browser/fillBrowserField')
const { goBackBrowser } = await import('../../src/main/skills/browser/goBackBrowser')
const { highlightBrowserText } = await import('../../src/main/skills/browser/highlightBrowserText')
const { navigateBrowser } = await import('../../src/main/skills/browser/navigateBrowser')
@@ -39,28 +36,6 @@ describe('click_browser_element', () => {
})
})
describe('fill_browser_field', () => {
it('should refuse an empty field name', async () => {
await expect(fillBrowserField.execute({ field: '', value: 'x' })).rejects.toThrow(
/field manquant/
)
})
it('should report success and mention submission when requested', async () => {
const result = await fillBrowserField.execute({
field: 'email',
value: 'a@b.com',
submit: true
})
expect(result).toMatch(/rempli et formulaire valide/)
})
it('should report failure when no matching field is found', async () => {
const result = await fillBrowserField.execute({ field: 'introuvable', value: 'x' })
expect(result).toMatch(/Echec/)
})
})
describe('go_back_browser', () => {
it('should report success when going back worked', async () => {
const result = await goBackBrowser.execute({})