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

Function addScript

src/core/bridge_coordinator.ts:14525–14533  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

14523function resolveGenericValidationCommands(goal: string, repoContext: AgentRepoContext): string[] {
14524 const commands: string[] = [];
14525 const addScript = (name: string) => {
14526 if (!repoContext.packageScripts.includes(name)) {
14527 return;
14528 }
14529 const command = formatRepoScriptCommand(repoContext.packageManager, name);
14530 if (!commands.includes(command)) {
14531 commands.push(command);
14532 }
14533 };
14534 const normalizedGoal = goal.toLowerCase();
14535 if (/test|测试/u.test(normalizedGoal)) {
14536 addScript('test');

Callers 1

Calls 1

formatRepoScriptCommandFunction · 0.85

Tested by

no test coverage detected