MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatLimitInfo

Function formatLimitInfo

src/tools/GrepTool/GrepTool.ts:134–142  ·  view source on GitHub ↗
(
  appliedLimit: number | undefined,
  appliedOffset: number | undefined,
)

Source from the content-addressed store, hash-verified

132// so it may be undefined even when appliedOffset is set — build parts conditionally
133// to avoid "limit: undefined" appearing in user-visible output.
134function formatLimitInfo(
135 appliedLimit: number | undefined,
136 appliedOffset: number | undefined,
137): string {
138 const parts: string[] = []
139 if (appliedLimit !== undefined) parts.push(`limit: ${appliedLimit}`)
140 if (appliedOffset) parts.push(`offset: ${appliedOffset}`)
141 return parts.join(', ')
142}
143
144const outputSchema = lazySchema(() =>
145 z.object({

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected