@@ -6,19 +6,19 @@ type AgentDepsIncludesFn = (stdout: string, name: string) => boolean
66
77const { BUN , NPM , PNPM , VLT , YARN_BERRY , YARN_CLASSIC } = constants
88
9- function matchHumanStdout ( stdout : string , name : string ) {
9+ function matchLsCmdViewHumanStdout ( stdout : string , name : string ) {
1010 return stdout . includes ( ` ${ name } @` )
1111}
1212
13- function matchQueryStdout ( stdout : string , name : string ) {
13+ function matchQueryCmdStdout ( stdout : string , name : string ) {
1414 return stdout . includes ( `"${ name } "` )
1515}
1616
1717export const depsIncludesByAgent = new Map < Agent , AgentDepsIncludesFn > ( [
18- [ BUN , matchHumanStdout ] ,
19- [ NPM , matchQueryStdout ] ,
20- [ PNPM , matchQueryStdout ] ,
21- [ VLT , matchQueryStdout ] ,
22- [ YARN_BERRY , matchHumanStdout ] ,
23- [ YARN_CLASSIC , matchHumanStdout ]
18+ [ BUN , matchLsCmdViewHumanStdout ] ,
19+ [ NPM , matchQueryCmdStdout ] ,
20+ [ PNPM , matchQueryCmdStdout ] ,
21+ [ VLT , matchQueryCmdStdout ] ,
22+ [ YARN_BERRY , matchLsCmdViewHumanStdout ] ,
23+ [ YARN_CLASSIC , matchLsCmdViewHumanStdout ]
2424] )
0 commit comments