MCPcopy Create free account
hub / github.com/dyoshikawa/rulesync / resolveFeatures

Function resolveFeatures

src/lib/fetch.ts:222–227  ·  view source on GitHub ↗

* Resolve features from options, handling wildcard

(features?: string[])

Source from the content-addressed store, hash-verified

220 * Resolve features from options, handling wildcard
221 */
222function resolveFeatures(features?: string[]): Feature[] {
223 if (!features || features.length === 0 || features.includes("*")) {
224 return [...ALL_FEATURES];
225 }
226 return features.filter((f): f is Feature => ALL_FEATURES.includes(f as Feature));
227}
228
229/**
230 * Type guard for error objects with statusCode

Callers 1

fetchFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…