MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / PN1

Function PN1

package/cli.js:520–520  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

518 - Pattern syntax: Uses ripgrep (not grep) - literal braces need escaping (use \`interface\\{\\}\` to find \`interface{}\` in Go code)
519 - Multiline matching: By default patterns match within single lines only. For cross-line patterns like \`struct \\{[\\s\\S]*?field\`, use \`multiline: true\`
520`}var n3="Grep";var qM=y(()=>{Z$()});var X4="Edit",Uf8="/.claude/**",Qf8="~/.claude/**",df8="File has been unexpectedly modified. Read it again before attempting to write it.";function PN1(q){let K=q.trim();if(!K)return null;if(K.endsWith("-")){let $=parseInt(K.slice(0,-1),10);if(isNaN($)||$<1)return null;return{firstPage:$,lastPage:1/0}}let _=K.indexOf("-");if(_===-1){let $=parseInt(K,10);if(isNaN($)||$<1)return null;return{firstPage:$,lastPage:$}}let z=parseInt(K.slice(0,_),10),Y=parseInt(K.slice(_+1),10);if(isNaN(z)||isNaN(Y)||z<1||Y<1||Y<z)return null;return{firstPage:z,lastPage:Y}}function uc6(){return!D5().toLowerCase().includes("claude-3-haiku")}function KT6(q){let K=q.startsWith(".")?q.slice(1):q;return VJ_.has(K.toLowerCase())}var VJ_;var cf8=y(()=>{aq();VJ_=new Set(["pdf"])});function koq(q,K,_){return`Reads a file from the local filesystem. You can access any file directly by using this tool.
521Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid. It is okay to read a file that does not exist; an error will be returned.
522
523Usage:

Callers 2

aDKFunction · 0.85
validateInputFunction · 0.85

Calls 3

trimMethod · 0.45
endsWithMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected