/** * `codebase-outgoing-calls` tool — find all callees/dependencies of a symbol. * * Usage: codebase-outgoing-calls({ * symbol: string, // function/method/type name to look up * file?: string, // scope to one file when multiple symbols share a name * limit?: number, // max results (default 50, max 200) * }) * * Returns: [{ symbol: { name, kind, file, line, signature }, callType, line }, ...] * * The query executes against the SQLite index's refs graph — it resolves the * symbol name to IDs, then finds every ref edge going FROM those IDs. The * result carries the callee's full metadata so no second lookup is needed. */ import type { Tool } from '@wrongstack/core/types'; import type { CallSite } from './schema.js'; export declare const codebaseOutgoingCallsTool: Tool; export interface OutgoingCallsInput { symbol: string; file?: string | undefined; limit?: number | undefined; transitive?: boolean | undefined; } export type CodebaseOutgoingCallsInput = OutgoingCallsInput; export interface OutgoingCallsOutput { symbol: string; calls: CallSite[]; total: number; /** * True when the project server served a previous generation's cached * answer during a refresh. Results are internally consistent but may lag * the files currently being indexed. */ stale?: boolean | undefined; /** Advisory note when the symbol was not found, or unresolved refs exist. */ note?: string | undefined; } export type CodebaseOutgoingCallsOutput = OutgoingCallsOutput; //# sourceMappingURL=codebase-outgoing-calls-tool.d.ts.map