{"_id":"@agent-sh/harness-grep","_rev":"2-2ccdf2804a019476412e014f1b98f86e","name":"@agent-sh/harness-grep","dist-tags":{"latest":"0.4.0"},"versions":{"0.2.0":{"name":"@agent-sh/harness-grep","version":"0.2.0","keywords":["ai","agent","llm","tool-use","grep","ripgrep","search","bedrock","openai"],"author":{"name":"Avi Fenesh"},"license":"MIT","_id":"@agent-sh/harness-grep@0.2.0","maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"homepage":"https://github.com/avifenesh/tools/tree/main/packages/grep#readme","bugs":{"url":"https://github.com/avifenesh/tools/issues"},"dist":{"shasum":"012eef8c59196274fb9aeb00956a6cdc7c2469c3","tarball":"https://registry.npmjs.org/@agent-sh/harness-grep/-/harness-grep-0.2.0.tgz","fileCount":9,"integrity":"sha512-i/LVKUoNaAfUWm3LonccwQ8V94UshlY4V89zliBTZX7mubrfp15vUKwD0H9PCKLU2OKF5htPH5pXblyAQTav1w==","signatures":[{"sig":"MEQCIDGVc6V0dvWFrXt8vVTamW1NixE1KjnuDnBh5HG5FiGIAiBxOoq/OXPxxf/vHcvqUKYtW3LIlNz2rjpN9NIxmM8enQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":226304},"main":"./dist/index.cjs","type":"module","_from":"file:agent-sh-harness-grep-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist .turbo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"avifenesh","email":"aviarchi1994@gmail.com"},"_resolved":"/tmp/21da689cab7f9a806e09c67ce4ded515/agent-sh-harness-grep-0.2.0.tgz","_integrity":"sha512-i/LVKUoNaAfUWm3LonccwQ8V94UshlY4V89zliBTZX7mubrfp15vUKwD0H9PCKLU2OKF5htPH5pXblyAQTav1w==","repository":{"url":"git+https://github.com/avifenesh/tools.git","type":"git","directory":"packages/grep"},"_npmVersion":"10.8.2","description":"Grep tool for AI agent harnesses — ripgrep-backed content search with structured output modes, pagination, .gitignore respect, and a WASM-bundled engine","directories":{},"_nodeVersion":"20.20.2","dependencies":{"ripgrep":"^0.3.1","valibot":"^0.42.1","@agent-sh/harness-core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.4","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/harness-grep_0.2.0_1776853080962_0.4550801314618731","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@agent-sh/harness-grep","version":"0.4.0","description":"Grep tool for AI agent harnesses — ripgrep-backed content search with structured output modes, pagination, .gitignore respect, and a WASM-bundled engine","keywords":["ai","agent","llm","tool-use","grep","ripgrep","search","bedrock","openai"],"license":"MIT","author":{"name":"Avi Fenesh"},"homepage":"https://github.com/avifenesh/tools/tree/main/packages/grep#readme","bugs":{"url":"https://github.com/avifenesh/tools/issues"},"repository":{"type":"git","url":"git+https://github.com/avifenesh/tools.git","directory":"packages/grep"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"dependencies":{"ripgrep":"^0.3.1","valibot":"^1.2.0","@agent-sh/harness-core":"0.2.0"},"devDependencies":{"@types/node":"^22.9.0","tsup":"^8.3.5","typescript":"^5.6.3","vitest":"^2.1.4"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","clean":"rm -rf dist .turbo"},"_id":"@agent-sh/harness-grep@0.4.0","_integrity":"sha512-Bj8pWtUBByEpZF7bgPlwdvY4DHY9Oowhr4Q1eYPNj+iv8wZfgudVZdOSpMaRSmb5XUHM5aHoUPD4y2tSVNUw3w==","_resolved":"/tmp/74cffef96429ea503cb8ddb19c28cab8/agent-sh-harness-grep-0.4.0.tgz","_from":"file:agent-sh-harness-grep-0.4.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Bj8pWtUBByEpZF7bgPlwdvY4DHY9Oowhr4Q1eYPNj+iv8wZfgudVZdOSpMaRSmb5XUHM5aHoUPD4y2tSVNUw3w==","shasum":"e018e352979955f8f9cc9d68c380baf714605e30","tarball":"https://registry.npmjs.org/@agent-sh/harness-grep/-/harness-grep-0.4.0.tgz","fileCount":9,"unpackedSize":231579,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC3c5dCjLeoCMF35hpUmtYsI9V8ZfVkmD+tHw6ZdynuAAiEAi0ulPAOCrOn6VKi3mektfGOUOGEBKPE3dOmo3YY0KAU="}]},"_npmUser":{"name":"avifenesh","email":"aviarchi1994@gmail.com"},"directories":{},"maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/harness-grep_0.4.0_1780428524907_0.7685651396137754"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-22T10:18:00.901Z","modified":"2026-06-02T19:28:45.199Z","0.2.0":"2026-04-22T10:18:01.110Z","0.4.0":"2026-06-02T19:28:45.086Z"},"bugs":{"url":"https://github.com/avifenesh/tools/issues"},"author":{"name":"Avi Fenesh"},"license":"MIT","homepage":"https://github.com/avifenesh/tools/tree/main/packages/grep#readme","keywords":["ai","agent","llm","tool-use","grep","ripgrep","search","bedrock","openai"],"repository":{"type":"git","url":"git+https://github.com/avifenesh/tools.git","directory":"packages/grep"},"description":"Grep tool for AI agent harnesses — ripgrep-backed content search with structured output modes, pagination, .gitignore respect, and a WASM-bundled engine","maintainers":[{"name":"avifenesh","email":"aviarchi1994@gmail.com"}],"readme":"# @agent-sh/harness-grep\n\nripgrep-backed content search with discriminated `output_mode`, regex-escape hints, and pagination.\n\nPart of the [`@agent-sh/harness-*`](https://github.com/avifenesh/tools) monorepo — see the top-level README for architectural context and the full tool surface.\n\n## Install\n\n```sh\nnpm install @agent-sh/harness-grep\n```\n\nRequires Node ≥ 20.\n\n## Usage\n\n```ts\nimport { grep } from \"@agent-sh/harness-grep\";\n\nconst r = await grep(\n  { pattern: \"TODO\", output_mode: \"content\", glob: \"**/*.ts\", context_before: 2, context_after: 2 },\n  { cwd: process.cwd(), permissions: { roots: [process.cwd()], sensitivePatterns: [] } },\n);\n```\n\n## Contract\n\nThe full contract — input shape, output discriminated-union, error codes, permission model, and acceptance tests — lives in [`agent-knowledge/design/grep.md`](https://github.com/avifenesh/tools/blob/main/agent-knowledge/design/grep.md). Changes to this package must stay in sync with that spec.\n\n## License\n\nMIT © Avi Fenesh\n","readmeFilename":"README.md"}