UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

18 lines • 767 B
import { createFindToolDefinition } from "./find.js"; import { wrapToolDefinition } from "./tool-definition-wrapper.js"; export function createGlobToolDefinition(cwd, options) { const find = createFindToolDefinition(cwd, options); return { ...find, name: "glob", workspaceEffect: "read", label: "glob", exposure: "eval", description: "Find files by glob with tool.glob({ pattern, path }) inside eval. Returns matching paths relative to the search directory, respects .gitignore, and applies hooks and permissions.", promptSnippet: undefined, }; } export function createGlobTool(cwd, options) { return wrapToolDefinition(createGlobToolDefinition(cwd, options)); } //# sourceMappingURL=glob.js.map