MCPcopy Create free account
hub / github.com/pingdotgg/t3code / primaryProjectScript

Function primaryProjectScript

apps/web/src/projectScripts.ts:59–62  ·  view source on GitHub ↗
(scripts: ReadonlyArray<ProjectScript>)

Source from the content-addressed store, hash-verified

57}
58
59export function primaryProjectScript(scripts: ReadonlyArray<ProjectScript>): ProjectScript | null {
60 const regular = scripts.find((script) => !script.runOnWorktreeCreate);
61 return regular ?? scripts[0] ?? null;
62}

Callers 2

ProjectScriptsControlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected