MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / run

Function run

sdk/src/run.ts:174–191  ·  view source on GitHub ↗
(options: RunExecutionOptions)

Source from the content-addressed store, hash-verified

172type RunReturnType = RunState
173
174export async function run(options: RunExecutionOptions): Promise<RunState> {
175 const { signal } = options
176
177 if (signal?.aborted) {
178 const abortError = createAbortError(signal)
179 return {
180 sessionState: options.previousRun?.sessionState,
181 traceSessionId:
182 options.previousRun?.traceSessionId ?? crypto.randomUUID(),
183 output: {
184 type: 'error',
185 message: abortError.message,
186 },
187 }
188 }
189
190 return runOnce(options)
191}
192
193async function runOnce({
194 apiKey,

Callers 1

runMethod · 0.90

Calls 2

createAbortErrorFunction · 0.85
runOnceFunction · 0.70

Tested by

no test coverage detected