|
|
@@ -22,8 +22,16 @@ export const ListTool = Tool.define({
|
|
|
id: "opencode.list",
|
|
|
description: DESCRIPTION,
|
|
|
parameters: z.object({
|
|
|
- path: z.string().describe("The absolute path to the directory to list (must be absolute, not relative)").optional(),
|
|
|
- ignore: z.array(z.string()).describe("List of glob patterns to ignore").optional(),
|
|
|
+ path: z
|
|
|
+ .string()
|
|
|
+ .describe(
|
|
|
+ "The absolute path to the directory to list (must be absolute, not relative)",
|
|
|
+ )
|
|
|
+ .nullable(),
|
|
|
+ ignore: z
|
|
|
+ .array(z.string())
|
|
|
+ .describe("List of glob patterns to ignore")
|
|
|
+ .nullable(),
|
|
|
}),
|
|
|
async execute(params) {
|
|
|
const app = App.info()
|