MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / oneShot

Function oneShot

scripts/agent-eval/parse-run.mjs:1116–1122  ·  view source on GitHub ↗
(next)

Source from the content-addressed store, hash-verified

1114
1115 // Grep, and the shell equivalents of Read and Grep.
1116 const oneShot = (next) => suff([
1117 ...req(10000, 'm1', [use('e1', EXPLORE, { query: 'q' })]),
1118 exploreRes('e1', ['lib/response.js']),
1119 ...req(12000, 'm2', [next]),
1120 res(next.id, 100),
1121 done(),
1122 ]).calls[0];
1123 checkIs('explore → Grep', oneShot(use('g1', 'Grep', { pattern: 'send' })).bucket, 'search');
1124 checkIs('explore → Glob', oneShot(use('g1', 'Glob', { pattern: '**/*.js' })).bucket, 'search');
1125 checkIs('explore → Bash sed of a returned file',

Callers 1

selftestFunction · 0.85

Calls 6

suffFunction · 0.85
reqFunction · 0.85
useFunction · 0.85
exploreResFunction · 0.85
resFunction · 0.85
doneFunction · 0.70

Tested by

no test coverage detected