MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / formatRepoScriptCommand

Function formatRepoScriptCommand

src/core/bridge_coordinator.ts:14550–14565  ·  view source on GitHub ↗
(
  packageManager: AgentRepoContext['packageManager'],
  script: string,
)

Source from the content-addressed store, hash-verified

14548}
14549
14550function formatRepoScriptCommand(
14551 packageManager: AgentRepoContext['packageManager'],
14552 script: string,
14553): string {
14554 switch (packageManager) {
14555 case 'pnpm':
14556 return `pnpm ${script}`;
14557 case 'yarn':
14558 return `yarn ${script}`;
14559 case 'bun':
14560 return `bun run ${script}`;
14561 case 'npm':
14562 default:
14563 return `npm run ${script}`;
14564 }
14565}
14566
14567function filterExistingRepoPaths(repoRoot: string | null, relativePaths: string[]): string[] {
14568 if (!repoRoot) {

Callers 2

addScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected