Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/web/client/src/server/api/routers/project/branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export const branchRouter = createTRPCRouter({
.input(
z.object({
branchId: z.uuid(),
positionOverride: z.object({
x: z.number(),
y: z.number(),
}).optional(),
}),
)
.mutation(async ({ ctx, input }) => {
Expand Down Expand Up @@ -178,7 +182,7 @@ export const branchRouter = createTRPCRouter({
id: uuidv4(),
branchId: newBranchId,
canvasId: canvas.id,
position: {
position: input.positionOverride ?? {
x: baseX + frameWidth + 100, // Initial offset to the right
y: baseY,
},
Expand Down
4 changes: 3 additions & 1 deletion packages/ai/src/agents/tool-lookup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BashEditTool, BashReadTool, CheckErrorsTool, FuzzyEditFileTool, GlobTool, GrepTool, ListBranchesTool, ListFilesTool, OnlookInstructionsTool, ReadFileTool, ReadStyleGuideTool, SandboxTool, ScrapeUrlTool, SearchReplaceEditTool, SearchReplaceMultiEditFileTool, TerminalCommandTool, TypecheckTool, WebSearchTool, WriteFileTool } from "../tools";
import { ArrangeBranchesTool, BashEditTool, BashReadTool, CheckErrorsTool, FuzzyEditFileTool, GlobTool, GrepTool, ListBranchesTool, ListFilesTool, OnlookInstructionsTool, ReadFileTool, ReadStyleGuideTool, SandboxTool, ScrapeUrlTool, SearchReplaceEditTool, SearchReplaceMultiEditFileTool, TerminalCommandTool, TypecheckTool, WebSearchTool, WriteFileTool } from "../tools";

export const allTools = [
ListFilesTool,
Expand All @@ -7,6 +7,7 @@ export const allTools = [
OnlookInstructionsTool,
ReadStyleGuideTool,
ListBranchesTool,
ArrangeBranchesTool,
ScrapeUrlTool,
WebSearchTool,
GlobTool,
Expand Down Expand Up @@ -37,6 +38,7 @@ export const readOnlyRootTools = [
CheckErrorsTool,
]
const editOnlyRootTools = [
ArrangeBranchesTool,
SearchReplaceEditTool,
SearchReplaceMultiEditFileTool,
FuzzyEditFileTool,
Expand Down
Loading
Loading