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
@@ -73,13 +73,11 @@ const {
goBack,
readPageText,
clickElementByText,
fillField,
collectTranslatableElements,
applyTranslations,
highlightText,
dismissCookieBannerInPage,
clickByTextInPage,
fillFieldInPage,
collectInPage,
applyInPage,
highlightInPage
@@ -216,47 +214,6 @@ describe('page interaction functions (require an open window)', () => {
expect(await clickElementByText('Envoyer')).toBe(true)
})
it('fillField() should fill a matching input by its name/placeholder/label', async () => {
document.body.innerHTML = '<input name="email" placeholder="Votre email" />'
const result = await fillField('email', 'test@example.com', false)
expect(result).toBe(true)
expect((document.querySelector('input') as HTMLInputElement).value).toBe('test@example.com')
})
it('fillField() should return false when no matching field is found', async () => {
document.body.innerHTML = '<input name="phone" />'
expect(await fillField('adresse', 'x', false)).toBe(false)
})
it('fillField() should match a field by its associated <label>', async () => {
document.body.innerHTML = '<label for="champ1">Numero de telephone</label><input id="champ1" />'
expect(await fillField('telephone', '0600000000', false)).toBe(true)
})
it('fillField() should fill a textarea too', async () => {
document.body.innerHTML = '<textarea name="message"></textarea>'
expect(await fillField('message', 'Bonjour', false)).toBe(true)
expect((document.querySelector('textarea') as HTMLTextAreaElement).value).toBe('Bonjour')
})
it('fillField() should submit the enclosing form when submit is requested', async () => {
document.body.innerHTML = '<form><input name="q" /></form>'
const form = document.querySelector('form') as HTMLFormElement
const requestSubmit = vi.fn()
form.requestSubmit = requestSubmit
await fillField('q', 'recherche', true)
expect(requestSubmit).toHaveBeenCalled()
})
it('fillField() should dispatch an Enter keydown when submitting a field with no form', async () => {
document.body.innerHTML = '<input name="q" />'
const input = document.querySelector('input')!
const keydown = vi.fn()
input.addEventListener('keydown', keydown)
await fillField('q', 'recherche', true)
expect(keydown).toHaveBeenCalled()
})
it('collectTranslatableElements() should collect visible leaf text nodes', async () => {
document.body.innerHTML = '<p>Un paragraphe</p><div><span>Imbrique</span></div>'
const elements = await collectTranslatableElements()
@@ -344,36 +301,6 @@ describe('clickByTextInPage()', () => {
})
})
describe('fillFieldInPage()', () => {
beforeEach(() => {
document.body.innerHTML = ''
})
it('should return false when there are no input/textarea elements at all', () => {
expect(fillFieldInPage('email', 'x', false)).toBe(false)
})
it('should match by aria-label', () => {
document.body.innerHTML = '<input aria-label="Code postal" />'
expect(fillFieldInPage('code postal', '75000', false)).toBe(true)
})
it('should match by id', () => {
document.body.innerHTML = '<input id="search-box" />'
expect(fillFieldInPage('search', 'chaussures', false)).toBe(true)
})
it('should fall back to form.submit() when requestSubmit is unavailable', () => {
document.body.innerHTML = '<form><input name="q" /></form>'
const form = document.querySelector('form') as HTMLFormElement
;(form as unknown as { requestSubmit: unknown }).requestSubmit = undefined
const submit = vi.fn()
form.submit = submit
fillFieldInPage('q', 'recherche', true)
expect(submit).toHaveBeenCalled()
})
})
describe('collectInPage()', () => {
beforeEach(() => {
document.body.innerHTML = ''