mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Remove the "test" custom tools (#10255)
Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
5ae4d4d635
commit
3beeac6f58
8 changed files with 0 additions and 100 deletions
|
|
@ -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}/)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { config } from "@roo-code/config-eslint/base"
|
||||
|
||||
/** @type {import("eslint").Linter.Config} */
|
||||
export default [...config]
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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}`
|
||||
},
|
||||
})
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"extends": "@roo-code/config-typescript/base.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"types": ["vitest/globals"]
|
||||
},
|
||||
"include": ["*.ts", "__tests__/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { defineConfig } from "vitest/config"
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: "node",
|
||||
watch: false,
|
||||
},
|
||||
})
|
||||
15
pnpm-lock.yaml
generated
15
pnpm-lock.yaml
generated
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -3,4 +3,3 @@ packages:
|
|||
- "webview-ui" # Should be apps/vscode-webview
|
||||
- "apps/*"
|
||||
- "packages/*"
|
||||
- ".roo/tools" # Custom tools for this workspace
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue