mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: use --add-dir flag for granting Claude read access to uploads
This commit is contained in:
@@ -260,6 +260,7 @@ export function query(config: {
|
||||
const {
|
||||
prompt,
|
||||
options: {
|
||||
additionalDirectories = [],
|
||||
allowedTools = [],
|
||||
appendSystemPrompt,
|
||||
customSystemPrompt,
|
||||
@@ -303,6 +304,7 @@ export function query(config: {
|
||||
if (settingsPath) args.push('--settings', settingsPath)
|
||||
if (allowedTools.length > 0) args.push('--allowedTools', allowedTools.join(','))
|
||||
if (disallowedTools.length > 0) args.push('--disallowedTools', disallowedTools.join(','))
|
||||
if (additionalDirectories.length > 0) args.push('--add-dir', ...additionalDirectories)
|
||||
if (strictMcpConfig) args.push('--strict-mcp-config')
|
||||
if (permissionMode) args.push('--permission-mode', permissionMode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user