Selaa lähdekoodia

Remove the "test" custom tools (#10255)

Co-authored-by: Roo Code <[email protected]>
Chris Estreich 1 kuukausi sitten
vanhempi
sitoutus
3beeac6f58

+ 0 - 22
.roo/tools/__tests__/system-time.spec.ts

@@ -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}/)
-		})
-	})
-})

+ 0 - 4
.roo/tools/eslint.config.mjs

@@ -1,4 +0,0 @@
-import { config } from "@roo-code/config-eslint/base"
-
-/** @type {import("eslint").Linter.Config} */
-export default [...config]

+ 0 - 18
.roo/tools/package.json

@@ -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"
-	}
-}

+ 0 - 22
.roo/tools/system-time.ts

@@ -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}`
-	},
-})

+ 0 - 9
.roo/tools/tsconfig.json

@@ -1,9 +0,0 @@
-{
-	"extends": "@roo-code/config-typescript/base.json",
-	"compilerOptions": {
-		"noEmit": true,
-		"types": ["vitest/globals"]
-	},
-	"include": ["*.ts", "__tests__/*.ts"],
-	"exclude": ["node_modules"]
-}

+ 0 - 9
.roo/tools/vitest.config.ts

@@ -1,9 +0,0 @@
-import { defineConfig } from "vitest/config"
-
-export default defineConfig({
-	test: {
-		globals: true,
-		environment: "node",
-		watch: false,
-	},
-})

+ 0 - 15
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/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
-
   apps/vscode-e2e:
     devDependencies:
       '@roo-code/config-eslint':

+ 0 - 1
pnpm-workspace.yaml

@@ -3,4 +3,3 @@ packages:
     - "webview-ui" # Should be apps/vscode-webview
     - "apps/*"
     - "packages/*"
-    - ".roo/tools" # Custom tools for this workspace