You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,6 +25,11 @@ export class CreateUiTool extends BaseTool {
25
25
.describe(
26
26
"Generate a search query for 21st.dev (library for searching UI components) to find a UI component that matches the user's message. Must be a two-four words max or phrase"
27
27
),
28
+
absolutePathToCurrentFile: z
29
+
.string()
30
+
.describe(
31
+
"Absolute path to the current file to which we want to apply changes"
32
+
),
28
33
absolutePathToProjectDirectory: z
29
34
.string()
30
35
.describe("Absolute path to the project root directory"),
@@ -34,6 +39,7 @@ export class CreateUiTool extends BaseTool {
34
39
message,
35
40
searchQuery,
36
41
absolutePathToProjectDirectory,
42
+
absolutePathToCurrentFile,
37
43
}: z.infer<typeofthis.schema>){
38
44
try{
39
45
const{ data }=awaittwentyFirstClient.post<CreateUiResponse>(
@@ -48,13 +54,19 @@ export class CreateUiTool extends BaseTool {
0 commit comments