chore: generate
This commit is contained in:
@@ -42,10 +42,7 @@ export const LspTool = Tool.define(
|
|||||||
return {
|
return {
|
||||||
description: DESCRIPTION,
|
description: DESCRIPTION,
|
||||||
parameters: Parameters,
|
parameters: Parameters,
|
||||||
execute: (
|
execute: (args: Schema.Schema.Type<typeof Parameters>, ctx: Tool.Context) =>
|
||||||
args: Schema.Schema.Type<typeof Parameters>,
|
|
||||||
ctx: Tool.Context,
|
|
||||||
) =>
|
|
||||||
Effect.gen(function* () {
|
Effect.gen(function* () {
|
||||||
const file = path.isAbsolute(args.filePath) ? args.filePath : path.join(Instance.directory, args.filePath)
|
const file = path.isAbsolute(args.filePath) ? args.filePath : path.join(Instance.directory, args.filePath)
|
||||||
yield* assertExternalDirectoryEffect(ctx, file)
|
yield* assertExternalDirectoryEffect(ctx, file)
|
||||||
|
|||||||
Reference in New Issue
Block a user