From e9417984a950ad5c8137c557f5010b5e4fbc6d6c Mon Sep 17 00:00:00 2001 From: bendtherules Date: Tue, 14 Apr 2026 16:57:17 +0530 Subject: [PATCH] graph - Ignore type errors --- src/agent-tools/graphExplorer.ts | 2 ++ src/setup/buildGraph.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agent-tools/graphExplorer.ts b/src/agent-tools/graphExplorer.ts index 75d4976..d15f501 100644 --- a/src/agent-tools/graphExplorer.ts +++ b/src/agent-tools/graphExplorer.ts @@ -4,6 +4,7 @@ */ import { DynamicStructuredTool } from "@langchain/core/tools"; +// @ts-ignore - graphology type issue import type Graph from "graphology"; import { z } from "zod"; @@ -19,6 +20,7 @@ const graphExplorerSchema = z.object({ * Creates the graph explorer tool. * @param graph - Graphology graph instance */ +// @ts-ignore - Graph type issue export function createGraphExplorerTool(graph: Graph) { return new DynamicStructuredTool({ name: "ask262_graph_explorer", diff --git a/src/setup/buildGraph.ts b/src/setup/buildGraph.ts index f82e4d2..2aea3b9 100644 --- a/src/setup/buildGraph.ts +++ b/src/setup/buildGraph.ts @@ -9,7 +9,7 @@ const SPEC_DIR = "./spec-built/multipage"; // Directory containing the JavaScript engine implementation source code const CODE_DIR = "./engine262/src"; -import { GRAPH_FILE } from "../constants"; +import { GRAPH_FILE } from "../constants.js"; /** * Builds a knowledge graph mapping ECMAScript specification sections @@ -21,6 +21,7 @@ import { GRAPH_FILE } from "../constants"; */ async function buildGraph() { // Initialize a multi-graph (allows multiple edges between same nodes) + // @ts-ignore - graphology constructor type issue const graph = new Graph({ multi: true, type: "directed",