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

Function getRun

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

Source from the content-addressed store, hash-verified

135}
136
137export async function getRun(
138 id: string,
139 owner: string,
140): Promise<AgentRun | null> {
141 await ensureTable();
142 const client = getDbExec();
143 const { rows } = await client.execute({
144 sql: `SELECT * FROM progress_runs WHERE id = ? AND owner = ?`,
145 args: [id, owner],
146 });
147 if (rows.length === 0) return null;
148 return parseRow(rows[0] as Record<string, unknown>);
149}
150
151export async function updateRun(
152 id: string,

Callers 2

updateRunFunction · 0.70
createProgressHandlerFunction · 0.70

Calls 4

getDbExecFunction · 0.85
ensureTableFunction · 0.70
parseRowFunction · 0.70
executeMethod · 0.65

Tested by

no test coverage detected