mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
format
This commit is contained in:
@@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
prompt:
|
prompt:
|
||||||
description: 'Prompt for Claude'
|
description: "Prompt for Claude"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|||||||
@@ -62,10 +62,16 @@ export const agentMode: Mode = {
|
|||||||
// No default tools are enforced - Claude Code's defaults will apply
|
// No default tools are enforced - Claude Code's defaults will apply
|
||||||
// Export user-specified tools only if provided
|
// Export user-specified tools only if provided
|
||||||
if (context.inputs.allowedTools.length > 0) {
|
if (context.inputs.allowedTools.length > 0) {
|
||||||
core.exportVariable("INPUT_ALLOWED_TOOLS", context.inputs.allowedTools.join(","));
|
core.exportVariable(
|
||||||
|
"INPUT_ALLOWED_TOOLS",
|
||||||
|
context.inputs.allowedTools.join(","),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (context.inputs.disallowedTools.length > 0) {
|
if (context.inputs.disallowedTools.length > 0) {
|
||||||
core.exportVariable("INPUT_DISALLOWED_TOOLS", context.inputs.disallowedTools.join(","));
|
core.exportVariable(
|
||||||
|
"INPUT_DISALLOWED_TOOLS",
|
||||||
|
context.inputs.disallowedTools.join(","),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Agent mode uses a minimal MCP configuration
|
// Agent mode uses a minimal MCP configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user