Clean up log.group
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ export const claude = agent({
|
|||||||
delete process.env.ANTHROPIC_API_KEY;
|
delete process.env.ANTHROPIC_API_KEY;
|
||||||
|
|
||||||
const prompt = addInstructions({ payload, prepResults, repo });
|
const prompt = addInstructions({ payload, prepResults, repo });
|
||||||
console.log(prompt);
|
log.group("Full prompt", (log) => log.info(prompt));
|
||||||
|
|
||||||
// configure sandbox mode if enabled
|
// configure sandbox mode if enabled
|
||||||
const sandboxOptions: Options = payload.sandbox
|
const sandboxOptions: Options = payload.sandbox
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ export const cursor = agent({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const fullPrompt = addInstructions({ payload, prepResults, repo });
|
const fullPrompt = addInstructions({ payload, prepResults, repo });
|
||||||
|
log.group("Full prompt", (log) => log.info(fullPrompt));
|
||||||
|
|
||||||
// configure sandbox mode if enabled
|
// configure sandbox mode if enabled
|
||||||
// in sandbox mode: remove --force flag and rely on cli-config.json sandbox settings
|
// in sandbox mode: remove --force flag and rely on cli-config.json sandbox settings
|
||||||
|
|||||||
+1
-1
@@ -162,7 +162,7 @@ export const gemini = agent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const sessionPrompt = addInstructions({ payload, prepResults, repo });
|
const sessionPrompt = addInstructions({ payload, prepResults, repo });
|
||||||
log.info(`Starting Gemini CLI with prompt: ${payload.prompt.substring(0, 100)}...`);
|
log.group("Full prompt", (log) => log.info(sessionPrompt));
|
||||||
|
|
||||||
// configure sandbox mode if enabled
|
// configure sandbox mode if enabled
|
||||||
// --allowed-tools restricts which tools are available (removes others from registry entirely)
|
// --allowed-tools restricts which tools are available (removes others from registry entirely)
|
||||||
|
|||||||
@@ -314,6 +314,7 @@ export const opencode = agent({
|
|||||||
configureOpenCodeSandbox({ sandbox: payload.sandbox ?? false });
|
configureOpenCodeSandbox({ sandbox: payload.sandbox ?? false });
|
||||||
|
|
||||||
const prompt = addInstructions({ payload, prepResults, repo });
|
const prompt = addInstructions({ payload, prepResults, repo });
|
||||||
|
log.group("Full prompt", (log) => log.info(prompt));
|
||||||
const args = ["run", "--format", "json", prompt];
|
const args = ["run", "--format", "json", prompt];
|
||||||
|
|
||||||
if (payload.sandbox) {
|
if (payload.sandbox) {
|
||||||
|
|||||||
@@ -316,6 +316,15 @@ export const log = {
|
|||||||
*/
|
*/
|
||||||
endGroup,
|
endGroup,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run a callback within a collapsed group
|
||||||
|
*/
|
||||||
|
group: (name: string, fn: (log: typeof log) => void): void => {
|
||||||
|
startGroup(name);
|
||||||
|
fn(log);
|
||||||
|
endGroup();
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log tool call information to console with formatted output
|
* Log tool call information to console with formatted output
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user