mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
log prompt
This commit is contained in:
@@ -283,11 +283,16 @@ export const remoteAgentMode: Mode = {
|
|||||||
// Generate dispatch-specific prompt (just the task description)
|
// Generate dispatch-specific prompt (just the task description)
|
||||||
const promptContent = generateDispatchPrompt(taskDescription);
|
const promptContent = generateDispatchPrompt(taskDescription);
|
||||||
|
|
||||||
|
console.log("Writing prompt file...");
|
||||||
|
console.log("Contents: ", promptContent);
|
||||||
// Write the prompt file
|
// Write the prompt file
|
||||||
await writeFile(
|
await writeFile(
|
||||||
`${process.env.RUNNER_TEMP}/claude-prompts/claude-prompt.txt`,
|
`${process.env.RUNNER_TEMP}/claude-prompts/claude-prompt.txt`,
|
||||||
promptContent,
|
promptContent,
|
||||||
);
|
);
|
||||||
|
console.log(
|
||||||
|
`Prompt file written successfully to ${process.env.RUNNER_TEMP}/claude-prompts/claude-prompt.txt`,
|
||||||
|
);
|
||||||
|
|
||||||
// Set stream configuration for repository_dispatch events
|
// Set stream configuration for repository_dispatch events
|
||||||
if (context.progressTracking) {
|
if (context.progressTracking) {
|
||||||
|
|||||||
Reference in New Issue
Block a user