diff --git a/.roo/tools/__tests__/system-time.spec.ts b/.roo/tools/__tests__/system-time.spec.ts deleted file mode 100644 index 375bc82e718..00000000000 --- a/.roo/tools/__tests__/system-time.spec.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { CustomToolContext, TaskLike } from "@roo-code/types" - -import systemTime from "../system-time.js" - -const mockContext: CustomToolContext = { - mode: "code", - task: { taskId: "test-task-id" } as unknown as TaskLike, -} - -describe("system-time tool", () => { - describe("execute", () => { - it("should return a formatted date/time string", async () => { - const result = await systemTime.execute({}, mockContext) - expect(result).toMatch(/^The current date and time is:/) - expect(result).toMatch(/(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)/) - expect(result).toMatch( - /(January|February|March|April|May|June|July|August|September|October|November|December)/, - ) - expect(result).toMatch(/\d{1,2}:\d{2}:\d{2}/) - }) - }) -}) diff --git a/.roo/tools/eslint.config.mjs b/.roo/tools/eslint.config.mjs deleted file mode 100644 index 694bf736642..00000000000 --- a/.roo/tools/eslint.config.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import { config } from "@roo-code/config-eslint/base" - -/** @type {import("eslint").Linter.Config} */ -export default [...config] diff --git a/.roo/tools/package.json b/.roo/tools/package.json deleted file mode 100644 index 6233d15c268..00000000000 --- a/.roo/tools/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@roo-code/custom-tools", - "version": "0.0.0", - "private": true, - "type": "module", - "description": "Custom tools for the Roo Code project itself", - "scripts": { - "lint": "eslint . --ext=ts --max-warnings=0", - "check-types": "tsc --noEmit", - "test": "vitest run" - }, - "devDependencies": { - "@roo-code/config-eslint": "workspace:^", - "@roo-code/config-typescript": "workspace:^", - "@roo-code/types": "workspace:^", - "vitest": "^3.2.3" - } -} diff --git a/.roo/tools/system-time.ts b/.roo/tools/system-time.ts deleted file mode 100644 index e7c886398c2..00000000000 --- a/.roo/tools/system-time.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { parametersSchema, defineCustomTool } from "@roo-code/types" - -export default defineCustomTool({ - name: "system_time", - description: "Returns the current system date and time in a friendly, human-readable format.", - parameters: parametersSchema.object({}), - async execute() { - const systemTime = new Date().toLocaleString("en-US", { - weekday: "long", - year: "numeric", - month: "long", - day: "numeric", - hour: "2-digit", - minute: "2-digit", - second: "2-digit", - timeZoneName: "short", - timeZone: "America/Los_Angeles", - }) - - return `The current date and time is: ${systemTime}` - }, -}) diff --git a/.roo/tools/tsconfig.json b/.roo/tools/tsconfig.json deleted file mode 100644 index 4164293c1d3..00000000000 --- a/.roo/tools/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@roo-code/config-typescript/base.json", - "compilerOptions": { - "noEmit": true, - "types": ["vitest/globals"] - }, - "include": ["*.ts", "__tests__/*.ts"], - "exclude": ["node_modules"] -} diff --git a/.roo/tools/vitest.config.ts b/.roo/tools/vitest.config.ts deleted file mode 100644 index b6d6dbb880f..00000000000 --- a/.roo/tools/vitest.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineConfig } from "vitest/config" - -export default defineConfig({ - test: { - globals: true, - environment: "node", - watch: false, - }, -}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 66228d425c7..5589df1b424 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,21 +78,6 @@ importers: specifier: ^5.4.5 version: 5.8.3 - .roo/tools: - devDependencies: - '@roo-code/config-eslint': - specifier: workspace:^ - version: link:../../packages/config-eslint - '@roo-code/config-typescript': - specifier: workspace:^ - version: link:../../packages/config-typescript - '@roo-code/types': - specifier: workspace:^ - version: link:../../packages/types - vitest: - specifier: ^3.2.3 - version: 3.2.4(@types/debug@4.1.12)(@types/node@24.2.1)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.30.1)(tsx@4.19.4)(yaml@2.8.0) - apps/vscode-e2e: devDependencies: '@roo-code/config-eslint': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 661aaa0254d..b16bbea1508 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,4 +3,3 @@ packages: - "webview-ui" # Should be apps/vscode-webview - "apps/*" - "packages/*" - - ".roo/tools" # Custom tools for this workspace