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,29 +1,4 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
const execFileMock = vi.fn((_cmd: string, _args: string[], cb: (err: Error | null) => void) =>
cb(null)
)
vi.mock('child_process', () => ({ execFile: execFileMock }))
const { pressVirtualKey } = await import('../../src/main/skills/windows/lib/sendVirtualKey')
describe('pressVirtualKey()', () => {
beforeEach(() => vi.clearAllMocks())
it('should invoke the PowerShell script once by default', async () => {
await pressVirtualKey(0xaf)
expect(execFileMock).toHaveBeenCalledTimes(1)
const script = execFileMock.mock.calls[0]?.[1]?.[2] as string
expect(script).toContain('175')
expect(script).toContain('$i -lt 1')
})
it('should bake the requested repeat count into the script', async () => {
await pressVirtualKey(0xae, 5)
const script = execFileMock.mock.calls[0]?.[1]?.[2] as string
expect(script).toContain('$i -lt 5')
})
})
import { describe, it, expect, vi, afterEach } from 'vitest'
describe('systemPaths', () => {
const originalSystemRoot = process.env.SystemRoot