fix: disable tool approve for old claude code version

This commit is contained in:
d-kimsuon
2025-10-14 12:18:29 +09:00
parent 1a29bc9612
commit b483e7e918
14 changed files with 295 additions and 96 deletions

View File

@@ -1,9 +1,7 @@
import { hc } from "hono/client";
import type { RouteType } from "../../server/hono/route";
import { env } from "../../server/lib/env";
export const honoClient = hc<RouteType>(
typeof window === "undefined"
? // biome-ignore lint/complexity/useLiteralKeys: TypeScript restriction
`http://localhost:${process.env["PORT"] ?? 3000}/`
: "/",
typeof window === "undefined" ? `http://localhost:${env.get("PORT")}/` : "/",
);