MCPcopy Index your code
hub / github.com/Dimillian/CodexMonitor / findPathTokens

Function findPathTokens

src/utils/threadItems.explore.ts:183–188  ·  view source on GitHub ↗
(tokens: string[])

Source from the content-addressed store, hash-verified

181}
182
183function findPathTokens(tokens: string[]) {
184 const commandName = tokens[0]?.toLowerCase() ?? "";
185 const positional = collectNonFlagOperands(tokens, commandName);
186 const pathLike = positional.filter(isPathLike);
187 return pathLike.length > 0 ? pathLike : positional;
188}
189
190function normalizeCommandStatus(status?: string) {
191 const normalized = (status ?? "").toLowerCase();

Callers 3

parseSearchFunction · 0.85
parseReadFunction · 0.85
parseListFunction · 0.85

Calls 1

collectNonFlagOperandsFunction · 0.85

Tested by

no test coverage detected