chore: rename project to clawdbot
This commit is contained in:
@@ -17,8 +17,8 @@ function isBun(): boolean {
|
||||
|
||||
function prefersSips(): boolean {
|
||||
return (
|
||||
process.env.CLAWDIS_IMAGE_BACKEND === "sips" ||
|
||||
(process.env.CLAWDIS_IMAGE_BACKEND !== "sharp" &&
|
||||
process.env.CLAWDBOT_IMAGE_BACKEND === "sips" ||
|
||||
(process.env.CLAWDBOT_IMAGE_BACKEND !== "sharp" &&
|
||||
isBun() &&
|
||||
process.platform === "darwin")
|
||||
);
|
||||
@@ -31,7 +31,7 @@ async function loadSharp(): Promise<(buffer: Buffer) => ReturnType<Sharp>> {
|
||||
}
|
||||
|
||||
async function withTempDir<T>(fn: (dir: string) => Promise<T>): Promise<T> {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdis-img-"));
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-img-"));
|
||||
try {
|
||||
return await fn(dir);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user