Files
grok-cli/vitest.config.ts
T
Ismail Pelaseyed 76498778d5 feat: add scheduled headless runs with daemon and agent tools (#214)
* feat: add scheduled headless runs with daemon and agent tools

Add schedule_create, schedule_list, schedule_remove, schedule_read_log,
schedule_daemon_status, schedule_daemon_start, and schedule_daemon_stop
agent tools. Schedules are persisted under ~/.grok/schedules/ and fired
by a lightweight `grok daemon` background process. Includes /schedule
TUI slash command, browser modal, README section, and tests.

* fix: resolve pre-existing test failures across the suite

Add vitest.config.ts to exclude dist/ from test runs. Fix whisper-cpp
and instructions tests to isolate from local filesystem state by setting
process.env.HOME to a temp dir. Fix bridge test lint errors by replacing
`any` with proper types.

* fix: address code review findings in schedule system

- Prevent path traversal in schedule IDs by stripping dots from allowed
  chars and adding assertInsideSchedulesDir guard
- Fix day-of-week cron ranges including 7 (e.g. 5-7) by validating raw
  values before normalization and handling wrap-around in matching
- Pass log file descriptor directly to child stdio instead of piping
  through the parent process
- Isolate per-schedule errors in daemon tick so one broken schedule
  does not block the rest
2026-03-25 12:53:30 +01:00

8 lines
141 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
exclude: ["dist/**", "node_modules/**"],
},
});