[api] refactor source#index_package too
[api] refactory source#file action too