From 606896a676c7d0c40ed5097f99789ee728d9cd86 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Wed, 8 Apr 2026 19:03:53 +0530 Subject: [PATCH] chore: remove debug console.log statements from agent tool implementations (evaluateInEngine262, graphExplorer, searchSpecSections) --- src/agent-tools/evaluateInEngine262.ts | 6 ------ src/agent-tools/graphExplorer.ts | 2 -- src/agent-tools/searchSpecSections.ts | 4 ---- 3 files changed, 12 deletions(-) diff --git a/src/agent-tools/evaluateInEngine262.ts b/src/agent-tools/evaluateInEngine262.ts index 218e3e7..ba082c8 100644 --- a/src/agent-tools/evaluateInEngine262.ts +++ b/src/agent-tools/evaluateInEngine262.ts @@ -45,8 +45,6 @@ export function createEvaluateInEngine262Tool() { "Executes JavaScript code in the engine262 JavaScript engine and captures which ECMAScript specification sections are hit during execution. Returns the full marks array as JSON. Useful for understanding how specific JavaScript operations map to the ECMAScript spec.", schema: evaluateSchema, func: async ({ code }) => { - console.log(`[Tool: ask262_evaluate_in_engine262] Executing code...`); - try { const engine = await loadEngine262(); const ask262Debug = engine.ask262Debug as { @@ -129,10 +127,6 @@ export function createEvaluateInEngine262Tool() { // Get captured marks const marks = ask262Debug.marks; - console.log( - `[Tool: ask262_evaluate_in_engine262] Captured ${marks.length} unique marks`, - ); - // Filter and group marks by important flag const importantMarks = marks.filter((m) => m.important); const otherMarks = marks.filter((m) => !m.important); diff --git a/src/agent-tools/graphExplorer.ts b/src/agent-tools/graphExplorer.ts index ed2b1ab..009478c 100644 --- a/src/agent-tools/graphExplorer.ts +++ b/src/agent-tools/graphExplorer.ts @@ -26,8 +26,6 @@ export function createGraphExplorerTool(graph: Graph) { "Explores structural relationships between specification sections and implementation code (functions). Use this to find which spec section a function implements.", schema: graphExplorerSchema, func: async ({ query }) => { - console.log(`[Tool: ask262_graph_explorer] Querying for: ${query}`); - let nodeId = query; if (!graph.hasNode(nodeId)) { if (graph.hasNode(`func-${query}`)) { diff --git a/src/agent-tools/searchSpecSections.ts b/src/agent-tools/searchSpecSections.ts index 07f7544..a414d08 100644 --- a/src/agent-tools/searchSpecSections.ts +++ b/src/agent-tools/searchSpecSections.ts @@ -36,10 +36,6 @@ export function createSearchSpecSectionsTool( // Search using LanceDB directly, limit to top 5 results const results = await table.search(queryVector).limit(5).toArray(); - console.log( - `[ask262_search_spec_sections] Query: "${query.slice(0, 50)}..." - Fetched ${results.length} results`, - ); - // Return documents with metadata as JSON const output = results.map((r: Record) => ({ sectionId: String(r.sectionid || "unknown"),