mirror of
https://github.com/markwylde/claude-code-gitea-action.git
synced 2026-02-20 02:22:49 +08:00
Attempt to make this work
This commit is contained in:
@@ -172,11 +172,19 @@ export class ClaudeExecutor {
|
|||||||
|
|
||||||
// Build Claude Code command arguments
|
// Build Claude Code command arguments
|
||||||
const args = [
|
const args = [
|
||||||
"--file", promptFile,
|
"-p", `@${promptFile}`
|
||||||
"--mcp-config", mcpConfigFile,
|
|
||||||
"--model", this.config.model || "claude-3-7-sonnet-20250219"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Add MCP config if available
|
||||||
|
if (mcpConfigFile) {
|
||||||
|
args.push("--mcp-config", mcpConfigFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add model if specified
|
||||||
|
if (this.config.model) {
|
||||||
|
args.push("--model", this.config.model);
|
||||||
|
}
|
||||||
|
|
||||||
// Add allowed tools if specified
|
// Add allowed tools if specified
|
||||||
if (tools.allowed.length > 0) {
|
if (tools.allowed.length > 0) {
|
||||||
args.push("--allowed-tools", tools.allowed.join(","));
|
args.push("--allowed-tools", tools.allowed.join(","));
|
||||||
|
|||||||
Reference in New Issue
Block a user