MCPcopy
hub / github.com/BuilderIO/agent-native / deleteRun

Function deleteRun

packages/core/src/progress/store.ts:231–242  ·  view source on GitHub ↗
(id: string, owner: string)

Source from the content-addressed store, hash-verified

229}
230
231export async function deleteRun(id: string, owner: string): Promise<boolean> {
232 await ensureTable();
233 const client = getDbExec();
234 const res = await client.execute({
235 sql: `DELETE FROM progress_runs WHERE id = ? AND owner = ?`,
236 args: [id, owner],
237 });
238 const deleted =
239 (res as unknown as { rowsAffected?: number }).rowsAffected !== 0;
240 if (deleted) bumpPoll(owner);
241 return deleted;
242}

Callers 1

createProgressHandlerFunction · 0.85

Calls 4

getDbExecFunction · 0.85
ensureTableFunction · 0.70
bumpPollFunction · 0.70
executeMethod · 0.65

Tested by

no test coverage detected