fix: use --add-dir flag for granting Claude read access to uploads

This commit is contained in:
weishu
2026-01-17 19:38:12 +08:00
parent 53e4de6684
commit c44eae0b17
6 changed files with 24 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
import { join } from 'path'
import { tmpdir } from 'os'
export const HAPI_BLOBS_DIR_NAME = 'hapi-blobs'
export function getHapiBlobsDir(): string {
return join(tmpdir(), HAPI_BLOBS_DIR_NAME)
}