UNPKG

@buger/probe

Version:

Node.js wrapper for the probe code search tool

55 lines (53 loc) 1.39 kB
/** * @buger/probe - Node.js wrapper for the probe code search tool * * This module provides JavaScript functions that wrap the probe binary functionality, * making it easy to use probe's powerful code search capabilities in Node.js scripts. * * @module @buger/probe */ import { search } from './search.js'; import { query } from './query.js'; import { extract } from './extract.js'; import { getBinaryPath, setBinaryPath } from './utils.js'; import * as tools from './tools/index.js'; import { listFilesByLevel } from './utils/file-lister.js'; import { DEFAULT_SYSTEM_MESSAGE } from './tools/system-message.js'; import { searchSchema, querySchema, extractSchema, attemptCompletionSchema, searchToolDefinition, queryToolDefinition, extractToolDefinition, attemptCompletionToolDefinition, parseXmlToolCall } from './tools/common.js'; import { searchTool, queryTool, extractTool } from './tools/vercel.js'; export { search, query, extract, getBinaryPath, setBinaryPath, listFilesByLevel, tools, DEFAULT_SYSTEM_MESSAGE, // Export tool generators directly searchTool, queryTool, extractTool, // Export schemas searchSchema, querySchema, extractSchema, attemptCompletionSchema, // Export tool definitions searchToolDefinition, queryToolDefinition, extractToolDefinition, attemptCompletionToolDefinition, // Export parser function parseXmlToolCall };