MCPcopy
hub / github.com/anomalyco/opencode / within

Function within

packages/client/test/import-boundaries.test.ts:65–68  ·  view source on GitHub ↗
(inputs: ReadonlyArray<string>, directory: string)

Source from the content-addressed store, hash-verified

63}
64
65function within(inputs: ReadonlyArray<string>, directory: string) {
66 const prefix = directory.endsWith(sep) ? directory : directory + sep
67 return inputs.filter((input) => input === directory || input.startsWith(prefix))
68}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected