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
@@ -16,8 +16,6 @@ vi.mock('child_process', () => ({ execFile: execFileMock }))
const { systemStatus } = await import('../../src/main/skills/windows/systemStatus')
const { systemStorage } = await import('../../src/main/skills/windows/systemStorage')
const { checkInternet } = await import('../../src/main/skills/windows/checkInternet')
const { lockScreen } = await import('../../src/main/skills/windows/lockScreen')
const { emptyRecycleBin } = await import('../../src/main/skills/windows/emptyRecycleBin')
function mockStdout(json: unknown): void {
execFileMock.mockImplementation(
@@ -85,34 +83,3 @@ describe('check_internet_connection', () => {
expect(result).toMatch(/Pas de connexion internet/)
})
})
describe('lock_screen', () => {
it('should invoke the lock command and confirm immediately', async () => {
const result = await lockScreen.execute({})
expect(result).toBe('Ecran verrouille.')
})
})
describe('empty_recycle_bin', () => {
it('should confirm the recycle bin was emptied', async () => {
mockStdout({})
const result = await emptyRecycleBin.execute({})
expect(result).toBe('Corbeille videe.')
})
it('should still confirm even if the underlying command fails (bin already empty)', async () => {
execFileMock.mockImplementation(
(
_cmd: string,
_args: string[],
optsOrCb: unknown,
cb?: (err: Error | null, result: unknown) => void
) => {
const callback = typeof optsOrCb === 'function' ? (optsOrCb as typeof cb) : cb
callback?.(new Error('already empty'), null)
}
)
const result = await emptyRecycleBin.execute({})
expect(result).toBe('Corbeille videe.')
})
})